@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,13 +1,13 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
-
* VERSION: 2.
|
4
|
-
* BUILD_TIMESTAMP:
|
5
|
-
* BUILD_DATE:
|
3
|
+
* VERSION: 2.111.0-alpha.0
|
4
|
+
* BUILD_TIMESTAMP: 1748974041865
|
5
|
+
* BUILD_DATE: Tue Jun 03 2025 18:07:21 GMT+0000 (Coordinated Universal Time)
|
6
6
|
* BUILD_COMMIT: 1131f80d20a6bbdb0dedde7ae8aefd5ede8d726e
|
7
7
|
*/
|
8
|
-
import { aY as
|
9
|
-
import * as
|
10
|
-
import Yt, { forwardRef as Ht, useImperativeHandle as zt, Fragment as Vt, useMemo as
|
8
|
+
import { aY as q, aZ as Z, a_ as It, a$ as h, j as t, b0 as n, aP as u, at as Ce, aD as Et, e as vt, b1 as Ut, i as jt, b2 as We, r as Dt, A as _t, b3 as At, b4 as wt, b5 as Rt, z as Ft, b6 as Nt, b7 as Tt, b8 as Ot, p as Ct, l as Se, V as be, b9 as St, ba as Lt, bb as Mt, bc as kt, q as Ge, bd as Pt, be as Bt } from "./es6-poxVoIzJ.js";
|
9
|
+
import * as ve from "react";
|
10
|
+
import Yt, { forwardRef as Ht, useImperativeHandle as zt, Fragment as Vt, useMemo as ye, useRef as Le, useReducer as Wt, useEffect as $e, useCallback as F, useState as ne } from "react";
|
11
11
|
import { FormattedHTMLMessage as m, injectIntl as Gt } from "react-intl";
|
12
12
|
var $t = /* @__PURE__ */ new Map([
|
13
13
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
|
@@ -91,23 +91,23 @@ var $t = /* @__PURE__ */ new Map([
|
|
91
91
|
["mov", "video/quicktime"],
|
92
92
|
["msg", "application/vnd.ms-outlook"]
|
93
93
|
]);
|
94
|
-
function ie(e,
|
95
|
-
var
|
96
|
-
if (typeof
|
94
|
+
function ie(e, a) {
|
95
|
+
var o = Kt(e);
|
96
|
+
if (typeof o.path != "string") {
|
97
97
|
var r = e.webkitRelativePath;
|
98
|
-
Object.defineProperty(
|
99
|
-
value: typeof
|
98
|
+
Object.defineProperty(o, "path", {
|
99
|
+
value: typeof a == "string" ? a : typeof r == "string" && r.length > 0 ? r : e.name,
|
100
100
|
writable: !1,
|
101
101
|
configurable: !1,
|
102
102
|
enumerable: !0
|
103
103
|
});
|
104
104
|
}
|
105
|
-
return
|
105
|
+
return o;
|
106
106
|
}
|
107
107
|
function Kt(e) {
|
108
|
-
var
|
109
|
-
if (
|
110
|
-
var r =
|
108
|
+
var a = e.name, o = a && a.lastIndexOf(".") !== -1;
|
109
|
+
if (o && !e.type) {
|
110
|
+
var r = a.split(".").pop().toLowerCase(), i = $t.get(r);
|
111
111
|
i && Object.defineProperty(e, "type", {
|
112
112
|
value: i,
|
113
113
|
writable: !1,
|
@@ -124,58 +124,58 @@ var qt = [
|
|
124
124
|
// Windows
|
125
125
|
];
|
126
126
|
function Zt(e) {
|
127
|
-
return
|
128
|
-
return
|
129
|
-
return
|
130
|
-
return "getFile" in
|
131
|
-
}) ? [2,
|
127
|
+
return q(this, void 0, void 0, function() {
|
128
|
+
return Z(this, function(a) {
|
129
|
+
return Ue(e) && Qt(e) ? [2, ta(e.dataTransfer, e.type)] : Xt(e) ? [2, Jt(e)] : Array.isArray(e) && e.every(function(o) {
|
130
|
+
return "getFile" in o && typeof o.getFile == "function";
|
131
|
+
}) ? [2, ea(e)] : [2, []];
|
132
132
|
});
|
133
133
|
});
|
134
134
|
}
|
135
135
|
function Qt(e) {
|
136
|
-
return
|
136
|
+
return Ue(e.dataTransfer);
|
137
137
|
}
|
138
138
|
function Xt(e) {
|
139
|
-
return
|
139
|
+
return Ue(e) && Ue(e.target);
|
140
140
|
}
|
141
|
-
function
|
141
|
+
function Ue(e) {
|
142
142
|
return typeof e == "object" && e !== null;
|
143
143
|
}
|
144
144
|
function Jt(e) {
|
145
|
-
return
|
146
|
-
return ie(
|
145
|
+
return ke(e.target.files).map(function(a) {
|
146
|
+
return ie(a);
|
147
147
|
});
|
148
148
|
}
|
149
|
-
function
|
150
|
-
return
|
151
|
-
var
|
152
|
-
return
|
153
|
-
switch (
|
149
|
+
function ea(e) {
|
150
|
+
return q(this, void 0, void 0, function() {
|
151
|
+
var a;
|
152
|
+
return Z(this, function(o) {
|
153
|
+
switch (o.label) {
|
154
154
|
case 0:
|
155
155
|
return [4, Promise.all(e.map(function(r) {
|
156
156
|
return r.getFile();
|
157
157
|
}))];
|
158
158
|
case 1:
|
159
|
-
return
|
159
|
+
return a = o.sent(), [2, a.map(function(r) {
|
160
160
|
return ie(r);
|
161
161
|
})];
|
162
162
|
}
|
163
163
|
});
|
164
164
|
});
|
165
165
|
}
|
166
|
-
function
|
167
|
-
return
|
168
|
-
var
|
169
|
-
return
|
166
|
+
function ta(e, a) {
|
167
|
+
return q(this, void 0, void 0, function() {
|
168
|
+
var o, r;
|
169
|
+
return Z(this, function(i) {
|
170
170
|
switch (i.label) {
|
171
171
|
case 0:
|
172
|
-
return e === null ? [2, []] : e.items ? (
|
172
|
+
return e === null ? [2, []] : e.items ? (o = ke(e.items).filter(function(d) {
|
173
173
|
return d.kind === "file";
|
174
|
-
}),
|
174
|
+
}), a !== "drop" ? [2, o] : [4, Promise.all(o.map(aa))]) : [3, 2];
|
175
175
|
case 1:
|
176
176
|
return r = i.sent(), [2, Ke(lt(r))];
|
177
177
|
case 2:
|
178
|
-
return [2, Ke(
|
178
|
+
return [2, Ke(ke(e.files).map(function(d) {
|
179
179
|
return ie(d);
|
180
180
|
}))];
|
181
181
|
}
|
@@ -183,68 +183,68 @@ function to(e, o) {
|
|
183
183
|
});
|
184
184
|
}
|
185
185
|
function Ke(e) {
|
186
|
-
return e.filter(function(
|
187
|
-
return qt.indexOf(
|
186
|
+
return e.filter(function(a) {
|
187
|
+
return qt.indexOf(a.name) === -1;
|
188
188
|
});
|
189
189
|
}
|
190
|
-
function
|
190
|
+
function ke(e) {
|
191
191
|
if (e === null)
|
192
192
|
return [];
|
193
|
-
for (var
|
194
|
-
var r = e[
|
195
|
-
|
193
|
+
for (var a = [], o = 0; o < e.length; o++) {
|
194
|
+
var r = e[o];
|
195
|
+
a.push(r);
|
196
196
|
}
|
197
|
-
return
|
197
|
+
return a;
|
198
198
|
}
|
199
|
-
function
|
199
|
+
function aa(e) {
|
200
200
|
if (typeof e.webkitGetAsEntry != "function")
|
201
201
|
return qe(e);
|
202
|
-
var
|
203
|
-
return
|
202
|
+
var a = e.webkitGetAsEntry();
|
203
|
+
return a && a.isDirectory ? dt(a) : qe(e);
|
204
204
|
}
|
205
205
|
function lt(e) {
|
206
|
-
return e.reduce(function(
|
207
|
-
return It(
|
206
|
+
return e.reduce(function(a, o) {
|
207
|
+
return It(a, Array.isArray(o) ? lt(o) : [o]);
|
208
208
|
}, []);
|
209
209
|
}
|
210
210
|
function qe(e) {
|
211
|
-
var
|
212
|
-
if (!
|
211
|
+
var a = e.getAsFile();
|
212
|
+
if (!a)
|
213
213
|
return Promise.reject(e + " is not a File");
|
214
|
-
var
|
215
|
-
return Promise.resolve(
|
214
|
+
var o = ie(a);
|
215
|
+
return Promise.resolve(o);
|
216
216
|
}
|
217
|
-
function
|
218
|
-
return
|
219
|
-
return
|
220
|
-
return [2, e.isDirectory ? dt(e) :
|
217
|
+
function oa(e) {
|
218
|
+
return q(this, void 0, void 0, function() {
|
219
|
+
return Z(this, function(a) {
|
220
|
+
return [2, e.isDirectory ? dt(e) : ra(e)];
|
221
221
|
});
|
222
222
|
});
|
223
223
|
}
|
224
224
|
function dt(e) {
|
225
|
-
var
|
226
|
-
return new Promise(function(
|
225
|
+
var a = e.createReader();
|
226
|
+
return new Promise(function(o, r) {
|
227
227
|
var i = [];
|
228
228
|
function d() {
|
229
229
|
var f = this;
|
230
|
-
|
231
|
-
return
|
230
|
+
a.readEntries(function(c) {
|
231
|
+
return q(f, void 0, void 0, function() {
|
232
232
|
var E, g, A;
|
233
|
-
return
|
234
|
-
switch (
|
233
|
+
return Z(this, function(v) {
|
234
|
+
switch (v.label) {
|
235
235
|
case 0:
|
236
236
|
if (c.length) return [3, 5];
|
237
|
-
|
237
|
+
v.label = 1;
|
238
238
|
case 1:
|
239
|
-
return
|
239
|
+
return v.trys.push([1, 3, , 4]), [4, Promise.all(i)];
|
240
240
|
case 2:
|
241
|
-
return E =
|
241
|
+
return E = v.sent(), o(E), [3, 4];
|
242
242
|
case 3:
|
243
|
-
return g =
|
243
|
+
return g = v.sent(), r(g), [3, 4];
|
244
244
|
case 4:
|
245
245
|
return [3, 6];
|
246
246
|
case 5:
|
247
|
-
A = Promise.all(c.map(
|
247
|
+
A = Promise.all(c.map(oa)), i.push(A), d(), v.label = 6;
|
248
248
|
case 6:
|
249
249
|
return [
|
250
250
|
2
|
@@ -260,13 +260,13 @@ function dt(e) {
|
|
260
260
|
d();
|
261
261
|
});
|
262
262
|
}
|
263
|
-
function
|
264
|
-
return
|
265
|
-
return
|
266
|
-
return [2, new Promise(function(
|
263
|
+
function ra(e) {
|
264
|
+
return q(this, void 0, void 0, function() {
|
265
|
+
return Z(this, function(a) {
|
266
|
+
return [2, new Promise(function(o, r) {
|
267
267
|
e.file(function(i) {
|
268
268
|
var d = ie(i, e.fullPath);
|
269
|
-
|
269
|
+
o(d);
|
270
270
|
}, function(i) {
|
271
271
|
r(i);
|
272
272
|
});
|
@@ -274,76 +274,76 @@ function ro(e) {
|
|
274
274
|
});
|
275
275
|
});
|
276
276
|
}
|
277
|
-
var
|
278
|
-
if (e &&
|
279
|
-
var
|
280
|
-
if (
|
277
|
+
var na = function(e, a) {
|
278
|
+
if (e && a) {
|
279
|
+
var o = Array.isArray(a) ? a : a.split(",");
|
280
|
+
if (o.length === 0)
|
281
281
|
return !0;
|
282
282
|
var r = e.name || "", i = (e.type || "").toLowerCase(), d = i.replace(/\/.*$/, "");
|
283
|
-
return
|
283
|
+
return o.some(function(f) {
|
284
284
|
var c = f.trim().toLowerCase();
|
285
285
|
return c.charAt(0) === "." ? r.toLowerCase().endsWith(c) : c.endsWith("/*") ? d === c.replace(/\/.*$/, "") : i === c;
|
286
286
|
});
|
287
287
|
}
|
288
288
|
return !0;
|
289
289
|
};
|
290
|
-
function Ze(e,
|
291
|
-
var
|
290
|
+
function Ze(e, a) {
|
291
|
+
var o = Object.keys(e);
|
292
292
|
if (Object.getOwnPropertySymbols) {
|
293
293
|
var r = Object.getOwnPropertySymbols(e);
|
294
|
-
|
294
|
+
a && (r = r.filter(function(i) {
|
295
295
|
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
296
|
-
})),
|
296
|
+
})), o.push.apply(o, r);
|
297
297
|
}
|
298
|
-
return
|
298
|
+
return o;
|
299
299
|
}
|
300
300
|
function Qe(e) {
|
301
|
-
for (var
|
302
|
-
var
|
303
|
-
|
304
|
-
ct(e, r,
|
305
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(
|
306
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(
|
301
|
+
for (var a = 1; a < arguments.length; a++) {
|
302
|
+
var o = arguments[a] != null ? arguments[a] : {};
|
303
|
+
a % 2 ? Ze(Object(o), !0).forEach(function(r) {
|
304
|
+
ct(e, r, o[r]);
|
305
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : Ze(Object(o)).forEach(function(r) {
|
306
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(o, r));
|
307
307
|
});
|
308
308
|
}
|
309
309
|
return e;
|
310
310
|
}
|
311
|
-
function ct(e,
|
312
|
-
return
|
311
|
+
function ct(e, a, o) {
|
312
|
+
return a in e ? Object.defineProperty(e, a, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = o, e;
|
313
313
|
}
|
314
|
-
function Xe(e,
|
315
|
-
return
|
314
|
+
function Xe(e, a) {
|
315
|
+
return da(e) || la(e, a) || sa(e, a) || ia();
|
316
316
|
}
|
317
|
-
function
|
317
|
+
function ia() {
|
318
318
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
319
319
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
320
320
|
}
|
321
|
-
function
|
321
|
+
function sa(e, a) {
|
322
322
|
if (e) {
|
323
|
-
if (typeof e == "string") return Je(e,
|
324
|
-
var
|
325
|
-
if (
|
326
|
-
if (
|
323
|
+
if (typeof e == "string") return Je(e, a);
|
324
|
+
var o = Object.prototype.toString.call(e).slice(8, -1);
|
325
|
+
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set") return Array.from(e);
|
326
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return Je(e, a);
|
327
327
|
}
|
328
328
|
}
|
329
|
-
function Je(e,
|
330
|
-
(
|
331
|
-
for (var
|
332
|
-
r[
|
329
|
+
function Je(e, a) {
|
330
|
+
(a == null || a > e.length) && (a = e.length);
|
331
|
+
for (var o = 0, r = new Array(a); o < a; o++)
|
332
|
+
r[o] = e[o];
|
333
333
|
return r;
|
334
334
|
}
|
335
|
-
function
|
336
|
-
var
|
337
|
-
if (
|
335
|
+
function la(e, a) {
|
336
|
+
var o = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
337
|
+
if (o != null) {
|
338
338
|
var r = [], i = !0, d = !1, f, c;
|
339
339
|
try {
|
340
|
-
for (
|
340
|
+
for (o = o.call(e); !(i = (f = o.next()).done) && (r.push(f.value), !(a && r.length === a)); i = !0)
|
341
341
|
;
|
342
342
|
} catch (E) {
|
343
343
|
d = !0, c = E;
|
344
344
|
} finally {
|
345
345
|
try {
|
346
|
-
!i &&
|
346
|
+
!i && o.return != null && o.return();
|
347
347
|
} finally {
|
348
348
|
if (d) throw c;
|
349
349
|
}
|
@@ -351,148 +351,148 @@ function lo(e, o) {
|
|
351
351
|
return r;
|
352
352
|
}
|
353
353
|
}
|
354
|
-
function
|
354
|
+
function da(e) {
|
355
355
|
if (Array.isArray(e)) return e;
|
356
356
|
}
|
357
|
-
var
|
358
|
-
|
359
|
-
var
|
357
|
+
var ca = "file-invalid-type", pa = "file-too-large", ua = "file-too-small", fa = "too-many-files", ma = function(a) {
|
358
|
+
a = Array.isArray(a) && a.length === 1 ? a[0] : a;
|
359
|
+
var o = Array.isArray(a) ? "one of ".concat(a.join(", ")) : a;
|
360
360
|
return {
|
361
|
-
code:
|
362
|
-
message: "File type must be ".concat(
|
361
|
+
code: ca,
|
362
|
+
message: "File type must be ".concat(o)
|
363
363
|
};
|
364
|
-
}, et = function(
|
364
|
+
}, et = function(a) {
|
365
365
|
return {
|
366
|
-
code:
|
367
|
-
message: "File is larger than ".concat(
|
366
|
+
code: pa,
|
367
|
+
message: "File is larger than ".concat(a, " ").concat(a === 1 ? "byte" : "bytes")
|
368
368
|
};
|
369
|
-
}, tt = function(
|
369
|
+
}, tt = function(a) {
|
370
370
|
return {
|
371
|
-
code:
|
372
|
-
message: "File is smaller than ".concat(
|
371
|
+
code: ua,
|
372
|
+
message: "File is smaller than ".concat(a, " ").concat(a === 1 ? "byte" : "bytes")
|
373
373
|
};
|
374
|
-
},
|
375
|
-
code:
|
374
|
+
}, ha = {
|
375
|
+
code: fa,
|
376
376
|
message: "Too many files"
|
377
377
|
};
|
378
|
-
function pt(e,
|
379
|
-
var
|
380
|
-
return [
|
378
|
+
function pt(e, a) {
|
379
|
+
var o = e.type === "application/x-moz-file" || na(e, a);
|
380
|
+
return [o, o ? null : ma(a)];
|
381
381
|
}
|
382
|
-
function ut(e,
|
383
|
-
if (
|
384
|
-
if (
|
385
|
-
if (e.size >
|
386
|
-
if (e.size <
|
382
|
+
function ut(e, a, o) {
|
383
|
+
if (re(e.size))
|
384
|
+
if (re(a) && re(o)) {
|
385
|
+
if (e.size > o) return [!1, et(o)];
|
386
|
+
if (e.size < a) return [!1, tt(a)];
|
387
387
|
} else {
|
388
|
-
if (
|
389
|
-
if (
|
388
|
+
if (re(a) && e.size < a) return [!1, tt(a)];
|
389
|
+
if (re(o) && e.size > o) return [!1, et(o)];
|
390
390
|
}
|
391
391
|
return [!0, null];
|
392
392
|
}
|
393
|
-
function
|
393
|
+
function re(e) {
|
394
394
|
return e != null;
|
395
395
|
}
|
396
|
-
function
|
397
|
-
var
|
398
|
-
return !d &&
|
399
|
-
var E = pt(c,
|
400
|
-
return A &&
|
396
|
+
function ga(e) {
|
397
|
+
var a = e.files, o = e.accept, r = e.minSize, i = e.maxSize, d = e.multiple, f = e.maxFiles;
|
398
|
+
return !d && a.length > 1 || d && f >= 1 && a.length > f ? !1 : a.every(function(c) {
|
399
|
+
var E = pt(c, o), g = Xe(E, 1), A = g[0], v = ut(c, r, i), N = Xe(v, 1), w = N[0];
|
400
|
+
return A && w;
|
401
401
|
});
|
402
402
|
}
|
403
|
-
function
|
403
|
+
function je(e) {
|
404
404
|
return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
|
405
405
|
}
|
406
|
-
function
|
407
|
-
return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(
|
408
|
-
return
|
406
|
+
function Ie(e) {
|
407
|
+
return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(a) {
|
408
|
+
return a === "Files" || a === "application/x-moz-file";
|
409
409
|
}) : !!e.target && !!e.target.files;
|
410
410
|
}
|
411
|
-
function
|
411
|
+
function at(e) {
|
412
412
|
e.preventDefault();
|
413
413
|
}
|
414
|
-
function
|
414
|
+
function xa(e) {
|
415
415
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
416
416
|
}
|
417
|
-
function
|
417
|
+
function ba(e) {
|
418
418
|
return e.indexOf("Edge/") !== -1;
|
419
419
|
}
|
420
|
-
function
|
420
|
+
function ya() {
|
421
421
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
422
|
-
return
|
422
|
+
return xa(e) || ba(e);
|
423
423
|
}
|
424
|
-
function
|
425
|
-
for (var e = arguments.length,
|
426
|
-
o
|
424
|
+
function S() {
|
425
|
+
for (var e = arguments.length, a = new Array(e), o = 0; o < e; o++)
|
426
|
+
a[o] = arguments[o];
|
427
427
|
return function(r) {
|
428
428
|
for (var i = arguments.length, d = new Array(i > 1 ? i - 1 : 0), f = 1; f < i; f++)
|
429
429
|
d[f - 1] = arguments[f];
|
430
|
-
return
|
431
|
-
return !
|
430
|
+
return a.some(function(c) {
|
431
|
+
return !je(r) && c && c.apply(void 0, [r].concat(d)), je(r);
|
432
432
|
});
|
433
433
|
};
|
434
434
|
}
|
435
|
-
function
|
435
|
+
function ot() {
|
436
436
|
return "showOpenFilePicker" in window;
|
437
437
|
}
|
438
|
-
function
|
438
|
+
function Ia(e) {
|
439
439
|
return e = typeof e == "string" ? e.split(",") : e, [{
|
440
440
|
description: "everything",
|
441
441
|
// TODO: Need to handle filtering more elegantly than this!
|
442
|
-
accept: Array.isArray(e) ? e.filter(function(
|
443
|
-
return
|
444
|
-
}).reduce(function(
|
445
|
-
return Qe(Qe({},
|
442
|
+
accept: Array.isArray(e) ? e.filter(function(a) {
|
443
|
+
return a === "audio/*" || a === "video/*" || a === "image/*" || a === "text/*" || /\w+\/[-+.\w]+/g.test(a);
|
444
|
+
}).reduce(function(a, o) {
|
445
|
+
return Qe(Qe({}, a), {}, ct({}, o, []));
|
446
446
|
}, {}) : {}
|
447
447
|
}];
|
448
448
|
}
|
449
|
-
var
|
450
|
-
function
|
451
|
-
return
|
449
|
+
var Ea = ["children"], va = ["open"], Ua = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], ja = ["refKey", "onChange", "onClick"];
|
450
|
+
function Da(e) {
|
451
|
+
return wa(e) || Aa(e) || ft(e) || _a();
|
452
452
|
}
|
453
|
-
function
|
453
|
+
function _a() {
|
454
454
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
455
455
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
456
456
|
}
|
457
|
-
function
|
457
|
+
function Aa(e) {
|
458
458
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
459
459
|
}
|
460
|
-
function
|
461
|
-
if (Array.isArray(e)) return
|
460
|
+
function wa(e) {
|
461
|
+
if (Array.isArray(e)) return Pe(e);
|
462
462
|
}
|
463
|
-
function
|
464
|
-
return
|
463
|
+
function Me(e, a) {
|
464
|
+
return Na(e) || Fa(e, a) || ft(e, a) || Ra();
|
465
465
|
}
|
466
|
-
function
|
466
|
+
function Ra() {
|
467
467
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
468
468
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
469
469
|
}
|
470
|
-
function ft(e,
|
470
|
+
function ft(e, a) {
|
471
471
|
if (e) {
|
472
|
-
if (typeof e == "string") return
|
473
|
-
var
|
474
|
-
if (
|
475
|
-
if (
|
472
|
+
if (typeof e == "string") return Pe(e, a);
|
473
|
+
var o = Object.prototype.toString.call(e).slice(8, -1);
|
474
|
+
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set") return Array.from(e);
|
475
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return Pe(e, a);
|
476
476
|
}
|
477
477
|
}
|
478
|
-
function
|
479
|
-
(
|
480
|
-
for (var
|
481
|
-
r[
|
478
|
+
function Pe(e, a) {
|
479
|
+
(a == null || a > e.length) && (a = e.length);
|
480
|
+
for (var o = 0, r = new Array(a); o < a; o++)
|
481
|
+
r[o] = e[o];
|
482
482
|
return r;
|
483
483
|
}
|
484
|
-
function
|
485
|
-
var
|
486
|
-
if (
|
484
|
+
function Fa(e, a) {
|
485
|
+
var o = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
486
|
+
if (o != null) {
|
487
487
|
var r = [], i = !0, d = !1, f, c;
|
488
488
|
try {
|
489
|
-
for (
|
489
|
+
for (o = o.call(e); !(i = (f = o.next()).done) && (r.push(f.value), !(a && r.length === a)); i = !0)
|
490
490
|
;
|
491
491
|
} catch (E) {
|
492
492
|
d = !0, c = E;
|
493
493
|
} finally {
|
494
494
|
try {
|
495
|
-
!i &&
|
495
|
+
!i && o.return != null && o.return();
|
496
496
|
} finally {
|
497
497
|
if (d) throw c;
|
498
498
|
}
|
@@ -500,57 +500,57 @@ function No(e, o) {
|
|
500
500
|
return r;
|
501
501
|
}
|
502
502
|
}
|
503
|
-
function
|
503
|
+
function Na(e) {
|
504
504
|
if (Array.isArray(e)) return e;
|
505
505
|
}
|
506
|
-
function rt(e,
|
507
|
-
var
|
506
|
+
function rt(e, a) {
|
507
|
+
var o = Object.keys(e);
|
508
508
|
if (Object.getOwnPropertySymbols) {
|
509
509
|
var r = Object.getOwnPropertySymbols(e);
|
510
|
-
|
510
|
+
a && (r = r.filter(function(i) {
|
511
511
|
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
512
|
-
})),
|
512
|
+
})), o.push.apply(o, r);
|
513
513
|
}
|
514
|
-
return
|
514
|
+
return o;
|
515
515
|
}
|
516
516
|
function x(e) {
|
517
|
-
for (var
|
518
|
-
var
|
519
|
-
|
520
|
-
|
521
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(
|
522
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(
|
517
|
+
for (var a = 1; a < arguments.length; a++) {
|
518
|
+
var o = arguments[a] != null ? arguments[a] : {};
|
519
|
+
a % 2 ? rt(Object(o), !0).forEach(function(r) {
|
520
|
+
Be(e, r, o[r]);
|
521
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : rt(Object(o)).forEach(function(r) {
|
522
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(o, r));
|
523
523
|
});
|
524
524
|
}
|
525
525
|
return e;
|
526
526
|
}
|
527
|
-
function
|
528
|
-
return
|
527
|
+
function Be(e, a, o) {
|
528
|
+
return a in e ? Object.defineProperty(e, a, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = o, e;
|
529
529
|
}
|
530
|
-
function
|
530
|
+
function De(e, a) {
|
531
531
|
if (e == null) return {};
|
532
|
-
var
|
532
|
+
var o = Ta(e, a), r, i;
|
533
533
|
if (Object.getOwnPropertySymbols) {
|
534
534
|
var d = Object.getOwnPropertySymbols(e);
|
535
535
|
for (i = 0; i < d.length; i++)
|
536
|
-
r = d[i], !(
|
536
|
+
r = d[i], !(a.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
537
537
|
}
|
538
|
-
return
|
538
|
+
return o;
|
539
539
|
}
|
540
|
-
function
|
540
|
+
function Ta(e, a) {
|
541
541
|
if (e == null) return {};
|
542
|
-
var
|
542
|
+
var o = {}, r = Object.keys(e), i, d;
|
543
543
|
for (d = 0; d < r.length; d++)
|
544
|
-
i = r[d], !(
|
545
|
-
return
|
544
|
+
i = r[d], !(a.indexOf(i) >= 0) && (o[i] = e[i]);
|
545
|
+
return o;
|
546
546
|
}
|
547
|
-
var se = /* @__PURE__ */ Ht(function(e,
|
548
|
-
var
|
549
|
-
return zt(
|
547
|
+
var se = /* @__PURE__ */ Ht(function(e, a) {
|
548
|
+
var o = e.children, r = De(e, Ea), i = Oa(r), d = i.open, f = De(i, va);
|
549
|
+
return zt(a, function() {
|
550
550
|
return {
|
551
551
|
open: d
|
552
552
|
};
|
553
|
-
}, [d]), /* @__PURE__ */ Yt.createElement(Vt, null,
|
553
|
+
}, [d]), /* @__PURE__ */ Yt.createElement(Vt, null, o(x(x({}, f), {}, {
|
554
554
|
open: d
|
555
555
|
})));
|
556
556
|
});
|
@@ -731,7 +731,7 @@ se.propTypes = {
|
|
731
731
|
*/
|
732
732
|
validator: h.func
|
733
733
|
};
|
734
|
-
var
|
734
|
+
var Ye = {
|
735
735
|
isFocused: !1,
|
736
736
|
isFileDialogActive: !1,
|
737
737
|
isDragActive: !1,
|
@@ -741,108 +741,108 @@ var He = {
|
|
741
741
|
acceptedFiles: [],
|
742
742
|
fileRejections: []
|
743
743
|
};
|
744
|
-
function
|
745
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
744
|
+
function Oa() {
|
745
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = x(x({}, mt), e), o = a.accept, r = a.disabled, i = a.getFilesFromEvent, d = a.maxSize, f = a.minSize, c = a.multiple, E = a.maxFiles, g = a.onDragEnter, A = a.onDragLeave, v = a.onDragOver, N = a.onDrop, w = a.onDropAccepted, Q = a.onDropRejected, B = a.onFileDialogCancel, z = a.onFileDialogOpen, V = a.useFsAccessApi, X = a.preventDropOnDocument, b = a.noClick, J = a.noKeyboard, T = a.noDrag, P = a.noDragEventsBubbling, O = a.validator, Y = ye(function() {
|
746
|
+
return typeof z == "function" ? z : nt;
|
747
|
+
}, [z]), H = ye(function() {
|
746
748
|
return typeof B == "function" ? B : nt;
|
747
|
-
}, [B]),
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
if (w.current) {
|
752
|
-
var p = w.current.files;
|
749
|
+
}, [B]), U = Le(null), j = Le(null), He = Wt(Ca, Ye), le = Me(He, 2), W = le[0], D = le[1], de = W.isFocused, ee = W.isFileDialogActive, ce = W.draggedFiles, pe = function() {
|
750
|
+
ee && setTimeout(function() {
|
751
|
+
if (j.current) {
|
752
|
+
var p = j.current.files;
|
753
753
|
p.length || (D({
|
754
754
|
type: "closeDialog"
|
755
|
-
}),
|
755
|
+
}), H());
|
756
756
|
}
|
757
757
|
}, 300);
|
758
758
|
};
|
759
759
|
$e(function() {
|
760
|
-
return
|
761
|
-
} : (window.addEventListener("focus",
|
762
|
-
window.removeEventListener("focus",
|
760
|
+
return V && ot() ? function() {
|
761
|
+
} : (window.addEventListener("focus", pe, !1), function() {
|
762
|
+
window.removeEventListener("focus", pe, !1);
|
763
763
|
});
|
764
|
-
}, [
|
765
|
-
var
|
766
|
-
U.current && U.current.contains(p.target) || (p.preventDefault(),
|
764
|
+
}, [j, ee, H, V]);
|
765
|
+
var C = Le([]), ue = function(p) {
|
766
|
+
U.current && U.current.contains(p.target) || (p.preventDefault(), C.current = []);
|
767
767
|
};
|
768
768
|
$e(function() {
|
769
|
-
return
|
770
|
-
|
769
|
+
return X && (document.addEventListener("dragover", at, !1), document.addEventListener("drop", ue, !1)), function() {
|
770
|
+
X && (document.removeEventListener("dragover", at), document.removeEventListener("drop", ue));
|
771
771
|
};
|
772
|
-
}, [U,
|
773
|
-
var fe =
|
774
|
-
l.preventDefault(), l.persist(),
|
775
|
-
|
772
|
+
}, [U, X]);
|
773
|
+
var fe = F(function(l) {
|
774
|
+
l.preventDefault(), l.persist(), ge(l), C.current = [].concat(Da(C.current), [l.target]), Ie(l) && Promise.resolve(i(l)).then(function(p) {
|
775
|
+
je(l) && !P || (D({
|
776
776
|
draggedFiles: p,
|
777
777
|
isDragActive: !0,
|
778
778
|
type: "setDraggedFiles"
|
779
779
|
}), g && g(l));
|
780
780
|
});
|
781
|
-
}, [i, g,
|
782
|
-
l.preventDefault(), l.persist(),
|
783
|
-
var p =
|
781
|
+
}, [i, g, P]), me = F(function(l) {
|
782
|
+
l.preventDefault(), l.persist(), ge(l);
|
783
|
+
var p = Ie(l);
|
784
784
|
if (p && l.dataTransfer)
|
785
785
|
try {
|
786
786
|
l.dataTransfer.dropEffect = "copy";
|
787
787
|
} catch {
|
788
788
|
}
|
789
|
-
return p &&
|
790
|
-
}, [
|
791
|
-
l.preventDefault(), l.persist(),
|
792
|
-
var p =
|
789
|
+
return p && v && v(l), !1;
|
790
|
+
}, [v, P]), G = F(function(l) {
|
791
|
+
l.preventDefault(), l.persist(), ge(l);
|
792
|
+
var p = C.current.filter(function(_) {
|
793
793
|
return U.current && U.current.contains(_);
|
794
794
|
}), I = p.indexOf(l.target);
|
795
|
-
I !== -1 && p.splice(I, 1),
|
795
|
+
I !== -1 && p.splice(I, 1), C.current = p, !(p.length > 0) && (D({
|
796
796
|
isDragActive: !1,
|
797
797
|
type: "setDraggedFiles",
|
798
798
|
draggedFiles: []
|
799
|
-
}),
|
800
|
-
}, [U, A,
|
799
|
+
}), Ie(l) && A && A(l));
|
800
|
+
}, [U, A, P]), s = F(function(l, p) {
|
801
801
|
var I = [], _ = [];
|
802
|
-
l.forEach(function(
|
803
|
-
var oe = pt(
|
804
|
-
if (
|
805
|
-
I.push(
|
802
|
+
l.forEach(function(R) {
|
803
|
+
var oe = pt(R, o), K = Me(oe, 2), Ae = K[0], we = K[1], Re = ut(R, f, d), xe = Me(Re, 2), Fe = xe[0], Ne = xe[1], Te = O ? O(R) : null;
|
804
|
+
if (Ae && Fe && !Te)
|
805
|
+
I.push(R);
|
806
806
|
else {
|
807
|
-
var
|
808
|
-
|
809
|
-
file:
|
810
|
-
errors:
|
807
|
+
var Oe = [we, Ne];
|
808
|
+
Te && (Oe = Oe.concat(Te)), _.push({
|
809
|
+
file: R,
|
810
|
+
errors: Oe.filter(function(yt) {
|
811
811
|
return yt;
|
812
812
|
})
|
813
813
|
});
|
814
814
|
}
|
815
|
-
}), (!c && I.length > 1 || c && E >= 1 && I.length > E) && (I.forEach(function(
|
815
|
+
}), (!c && I.length > 1 || c && E >= 1 && I.length > E) && (I.forEach(function(R) {
|
816
816
|
_.push({
|
817
|
-
file:
|
818
|
-
errors: [
|
817
|
+
file: R,
|
818
|
+
errors: [ha]
|
819
819
|
});
|
820
820
|
}), I.splice(0)), D({
|
821
821
|
acceptedFiles: I,
|
822
822
|
fileRejections: _,
|
823
823
|
type: "setFiles"
|
824
|
-
}),
|
825
|
-
}, [D, c,
|
826
|
-
l.preventDefault(), l.persist(),
|
827
|
-
|
824
|
+
}), N && N(I, _, p), _.length > 0 && Q && Q(_, p), I.length > 0 && w && w(I, p);
|
825
|
+
}, [D, c, o, f, d, E, N, w, Q, O]), y = F(function(l) {
|
826
|
+
l.preventDefault(), l.persist(), ge(l), C.current = [], Ie(l) && Promise.resolve(i(l)).then(function(p) {
|
827
|
+
je(l) && !P || s(p, l);
|
828
828
|
}), D({
|
829
829
|
type: "reset"
|
830
830
|
});
|
831
|
-
}, [i,
|
832
|
-
if (
|
831
|
+
}, [i, s, P]), L = F(function() {
|
832
|
+
if (V && ot()) {
|
833
833
|
D({
|
834
834
|
type: "openDialog"
|
835
|
-
}),
|
835
|
+
}), Y();
|
836
836
|
var l = {
|
837
837
|
multiple: c,
|
838
|
-
types:
|
838
|
+
types: Ia(o)
|
839
839
|
};
|
840
840
|
window.showOpenFilePicker(l).then(function(p) {
|
841
841
|
return i(p);
|
842
842
|
}).then(function(p) {
|
843
|
-
return
|
843
|
+
return s(p, null);
|
844
844
|
}).catch(function(p) {
|
845
|
-
return
|
845
|
+
return H(p);
|
846
846
|
}).finally(function() {
|
847
847
|
return D({
|
848
848
|
type: "closeDialog"
|
@@ -850,85 +850,85 @@ function Co() {
|
|
850
850
|
});
|
851
851
|
return;
|
852
852
|
}
|
853
|
-
|
853
|
+
j.current && (D({
|
854
854
|
type: "openDialog"
|
855
|
-
}),
|
856
|
-
}, [D,
|
857
|
-
!U.current || !U.current.isEqualNode(l.target) || (l.keyCode === 32 || l.keyCode === 13) && (l.preventDefault(),
|
858
|
-
}, [U,
|
855
|
+
}), Y(), j.current.value = null, j.current.click());
|
856
|
+
}, [D, Y, H, V, s, o, c]), $ = F(function(l) {
|
857
|
+
!U.current || !U.current.isEqualNode(l.target) || (l.keyCode === 32 || l.keyCode === 13) && (l.preventDefault(), L());
|
858
|
+
}, [U, j, L]), te = F(function() {
|
859
859
|
D({
|
860
860
|
type: "focus"
|
861
861
|
});
|
862
|
-
}, []),
|
862
|
+
}, []), ae = F(function() {
|
863
863
|
D({
|
864
864
|
type: "blur"
|
865
865
|
});
|
866
|
-
}, []),
|
867
|
-
|
868
|
-
}, [
|
866
|
+
}, []), M = F(function() {
|
867
|
+
b || (ya() ? setTimeout(L, 0) : L());
|
868
|
+
}, [j, b, L]), k = function(p) {
|
869
869
|
return r ? null : p;
|
870
|
-
},
|
871
|
-
return
|
870
|
+
}, _e = function(p) {
|
871
|
+
return J ? null : k(p);
|
872
|
+
}, he = function(p) {
|
873
|
+
return T ? null : k(p);
|
872
874
|
}, ge = function(p) {
|
873
|
-
|
874
|
-
},
|
875
|
-
v && p.stopPropagation();
|
876
|
-
}, ht = Ee(function() {
|
875
|
+
P && p.stopPropagation();
|
876
|
+
}, ht = ye(function() {
|
877
877
|
return function() {
|
878
|
-
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, I = p === void 0 ? "ref" : p, _ = l.role,
|
879
|
-
return x(x(
|
880
|
-
onKeyDown:
|
881
|
-
onFocus:
|
882
|
-
onBlur:
|
883
|
-
onClick:
|
884
|
-
onDragEnter:
|
885
|
-
onDragOver:
|
886
|
-
onDragLeave:
|
887
|
-
onDrop:
|
878
|
+
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, I = p === void 0 ? "ref" : p, _ = l.role, R = l.onKeyDown, oe = l.onFocus, K = l.onBlur, Ae = l.onClick, we = l.onDragEnter, Re = l.onDragOver, xe = l.onDragLeave, Fe = l.onDrop, Ne = De(l, Ua);
|
879
|
+
return x(x(Be({
|
880
|
+
onKeyDown: _e(S(R, $)),
|
881
|
+
onFocus: _e(S(oe, te)),
|
882
|
+
onBlur: _e(S(K, ae)),
|
883
|
+
onClick: k(S(Ae, M)),
|
884
|
+
onDragEnter: he(S(we, fe)),
|
885
|
+
onDragOver: he(S(Re, me)),
|
886
|
+
onDragLeave: he(S(xe, G)),
|
887
|
+
onDrop: he(S(Fe, y)),
|
888
888
|
role: typeof _ == "string" && _ !== "" ? _ : "button"
|
889
|
-
}, I, U), !r && !
|
889
|
+
}, I, U), !r && !J ? {
|
890
890
|
tabIndex: 0
|
891
|
-
} : {}),
|
891
|
+
} : {}), Ne);
|
892
892
|
};
|
893
|
-
}, [U,
|
893
|
+
}, [U, $, te, ae, M, fe, me, G, y, J, T, r]), gt = F(function(l) {
|
894
894
|
l.stopPropagation();
|
895
|
-
}, []), xt =
|
895
|
+
}, []), xt = ye(function() {
|
896
896
|
return function() {
|
897
|
-
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, I = p === void 0 ? "ref" : p, _ = l.onChange,
|
898
|
-
accept:
|
897
|
+
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, I = p === void 0 ? "ref" : p, _ = l.onChange, R = l.onClick, oe = De(l, ja), K = Be({
|
898
|
+
accept: o,
|
899
899
|
multiple: c,
|
900
900
|
type: "file",
|
901
901
|
style: {
|
902
902
|
display: "none"
|
903
903
|
},
|
904
|
-
onChange:
|
905
|
-
onClick:
|
904
|
+
onChange: k(S(_, y)),
|
905
|
+
onClick: k(S(R, gt)),
|
906
906
|
autoComplete: "off",
|
907
907
|
tabIndex: -1
|
908
|
-
}, I,
|
909
|
-
return x(x({},
|
908
|
+
}, I, j);
|
909
|
+
return x(x({}, K), oe);
|
910
910
|
};
|
911
|
-
}, [
|
912
|
-
files:
|
913
|
-
accept:
|
911
|
+
}, [j, o, c, y, r]), ze = ce.length, Ve = ze > 0 && ga({
|
912
|
+
files: ce,
|
913
|
+
accept: o,
|
914
914
|
minSize: f,
|
915
915
|
maxSize: d,
|
916
916
|
multiple: c,
|
917
917
|
maxFiles: E
|
918
918
|
}), bt = ze > 0 && !Ve;
|
919
|
-
return x(x({},
|
919
|
+
return x(x({}, W), {}, {
|
920
920
|
isDragAccept: Ve,
|
921
921
|
isDragReject: bt,
|
922
|
-
isFocused:
|
922
|
+
isFocused: de && !r,
|
923
923
|
getRootProps: ht,
|
924
924
|
getInputProps: xt,
|
925
925
|
rootRef: U,
|
926
|
-
inputRef:
|
927
|
-
open:
|
926
|
+
inputRef: j,
|
927
|
+
open: k(L)
|
928
928
|
});
|
929
929
|
}
|
930
|
-
function
|
931
|
-
switch (
|
930
|
+
function Ca(e, a) {
|
931
|
+
switch (a.type) {
|
932
932
|
case "focus":
|
933
933
|
return x(x({}, e), {}, {
|
934
934
|
isFocused: !0
|
@@ -938,7 +938,7 @@ function So(e, o) {
|
|
938
938
|
isFocused: !1
|
939
939
|
});
|
940
940
|
case "openDialog":
|
941
|
-
return x(x({},
|
941
|
+
return x(x({}, Ye), {}, {
|
942
942
|
isFileDialogActive: !0
|
943
943
|
});
|
944
944
|
case "closeDialog":
|
@@ -946,42 +946,42 @@ function So(e, o) {
|
|
946
946
|
isFileDialogActive: !1
|
947
947
|
});
|
948
948
|
case "setDraggedFiles":
|
949
|
-
var
|
949
|
+
var o = a.isDragActive, r = a.draggedFiles;
|
950
950
|
return x(x({}, e), {}, {
|
951
951
|
draggedFiles: r,
|
952
|
-
isDragActive:
|
952
|
+
isDragActive: o
|
953
953
|
});
|
954
954
|
case "setFiles":
|
955
955
|
return x(x({}, e), {}, {
|
956
|
-
acceptedFiles:
|
957
|
-
fileRejections:
|
956
|
+
acceptedFiles: a.acceptedFiles,
|
957
|
+
fileRejections: a.fileRejections
|
958
958
|
});
|
959
959
|
case "reset":
|
960
|
-
return x({},
|
960
|
+
return x({}, Ye);
|
961
961
|
default:
|
962
962
|
return e;
|
963
963
|
}
|
964
964
|
}
|
965
965
|
function nt() {
|
966
966
|
}
|
967
|
-
function
|
967
|
+
function Ee({
|
968
968
|
title: e,
|
969
|
-
children:
|
970
|
-
id:
|
969
|
+
children: a,
|
970
|
+
id: o,
|
971
971
|
defaultState: r = "closed"
|
972
972
|
}) {
|
973
|
-
const [i, d] = ne(r === "open"), f = `${
|
973
|
+
const [i, d] = ne(r === "open"), f = `${o}-region`, c = () => d(!i);
|
974
974
|
return /* @__PURE__ */ t.jsxs(
|
975
975
|
"section",
|
976
976
|
{
|
977
|
-
className: `sid-expanding-section sid-expanding-section-${
|
977
|
+
className: `sid-expanding-section sid-expanding-section-${o} sid-l-space-top-sm sid-l-space-btm-sm`,
|
978
978
|
children: [
|
979
979
|
/* @__PURE__ */ t.jsx("header", { children: /* @__PURE__ */ t.jsxs(
|
980
980
|
"button",
|
981
981
|
{
|
982
982
|
"aria-controls": f,
|
983
983
|
"aria-expanded": i,
|
984
|
-
id:
|
984
|
+
id: o,
|
985
985
|
type: "button",
|
986
986
|
className: "sid-expanding-section__title",
|
987
987
|
onClick: c,
|
@@ -996,12 +996,12 @@ function re({
|
|
996
996
|
]
|
997
997
|
}
|
998
998
|
) }),
|
999
|
-
/* @__PURE__ */ t.jsx("div", { id: f, role: "region", "aria-labelledby":
|
999
|
+
/* @__PURE__ */ t.jsx("div", { id: f, role: "region", "aria-labelledby": o, children: i && /* @__PURE__ */ t.jsx("div", { className: "sid-expanding-section__children", children: a }) })
|
1000
1000
|
]
|
1001
1001
|
}
|
1002
1002
|
);
|
1003
1003
|
}
|
1004
|
-
const
|
1004
|
+
const Sa = {
|
1005
1005
|
[u.STUDENT]: [
|
1006
1006
|
"step.docUpload.acceptableUploads.student.idCard",
|
1007
1007
|
"step.docUpload.acceptableUploads.student.classSchedule",
|
@@ -1057,7 +1057,7 @@ const Lo = {
|
|
1057
1057
|
"step.docUpload.acceptableUploads.lowIncome.programApprovalScreenshot",
|
1058
1058
|
"step.docUpload.acceptableUploads.lowIncome.programBankStatement"
|
1059
1059
|
]
|
1060
|
-
},
|
1060
|
+
}, La = {
|
1061
1061
|
[n.ACTIVE_DUTY]: [
|
1062
1062
|
"step.docUpload.acceptableUploads.military.active.leaveEarningStatement",
|
1063
1063
|
"step.docUpload.acceptableUploads.military.active.uniformedServicesId"
|
@@ -1103,7 +1103,7 @@ const Lo = {
|
|
1103
1103
|
[n.LICENSED_REAL_ESTATE_AGENT]: [
|
1104
1104
|
"step.docUpload.acceptableUploads.licensedProfessional.license"
|
1105
1105
|
],
|
1106
|
-
[n.VETERINARIAN]: [],
|
1106
|
+
[n.VETERINARIAN]: ["step.docUpload.acceptableUploads.licensedProfessional.license"],
|
1107
1107
|
[n.SNAP_BENEFITS]: [
|
1108
1108
|
"step.docUpload.acceptableUploads.lowIncome.programCard",
|
1109
1109
|
"step.docUpload.acceptableUploads.lowIncome.programApprovalLetter",
|
@@ -1116,7 +1116,9 @@ const Lo = {
|
|
1116
1116
|
"step.docUpload.acceptableUploads.lowIncome.programApprovalScreenshot",
|
1117
1117
|
"step.docUpload.acceptableUploads.lowIncome.programBankStatement"
|
1118
1118
|
],
|
1119
|
-
[n.CHILD_CARE_WORKER]: [
|
1119
|
+
[n.CHILD_CARE_WORKER]: [
|
1120
|
+
"step.docUpload.acceptableUploads.licensedProfessional.license"
|
1121
|
+
],
|
1120
1122
|
[n.LIBRARIAN]: [],
|
1121
1123
|
[n.INTERIOR_DESIGNER]: [],
|
1122
1124
|
[n.ARCHITECT]: [],
|
@@ -1124,7 +1126,7 @@ const Lo = {
|
|
1124
1126
|
[n.NUTRITION_PROFESSIONAL]: [
|
1125
1127
|
"step.docUpload.acceptableUploads.licensedProfessional.license"
|
1126
1128
|
]
|
1127
|
-
},
|
1129
|
+
}, Ma = {
|
1128
1130
|
[u.STUDENT]: [
|
1129
1131
|
"step.docUpload.uploadInfo.fullName",
|
1130
1132
|
"step.docUpload.uploadInfo.institutionName",
|
@@ -1182,7 +1184,7 @@ const Lo = {
|
|
1182
1184
|
"step.docUpload.uploadInfo.fullName",
|
1183
1185
|
"step.docUpload.uploadInfo.lowIncome.validDate"
|
1184
1186
|
]
|
1185
|
-
},
|
1187
|
+
}, ka = {
|
1186
1188
|
[n.ACTIVE_DUTY]: ["step.docUpload.uploadInfo.military.activeDuty.status"],
|
1187
1189
|
[n.VETERAN]: ["step.docUpload.uploadInfo.military.veteran.status"],
|
1188
1190
|
[n.RESERVIST]: ["step.docUpload.uploadInfo.military.reservist.status"],
|
@@ -1211,37 +1213,37 @@ const Lo = {
|
|
1211
1213
|
[n.ARCHITECT]: [],
|
1212
1214
|
[n.GENERAL_CONTRACTOR]: [],
|
1213
1215
|
[n.NUTRITION_PROFESSIONAL]: []
|
1214
|
-
},
|
1216
|
+
}, Pa = {
|
1215
1217
|
// MILITARY_FAMILY is overridden to not show branch of service.
|
1216
1218
|
[n.MILITARY_FAMILY]: [
|
1217
1219
|
"step.docUpload.uploadInfo.fullName",
|
1218
1220
|
"step.docUpload.uploadInfo.military.militaryFamily.status"
|
1219
1221
|
]
|
1220
1222
|
};
|
1221
|
-
function
|
1223
|
+
function Ba(e, a) {
|
1222
1224
|
return [
|
1223
1225
|
.../* @__PURE__ */ new Set([
|
1224
|
-
...
|
1225
|
-
...
|
1226
|
+
...La[a] || [],
|
1227
|
+
...Sa[e] || []
|
1226
1228
|
])
|
1227
1229
|
];
|
1228
1230
|
}
|
1229
|
-
function
|
1230
|
-
return
|
1231
|
+
function Ya(e, a) {
|
1232
|
+
return Pa[a] || [
|
1231
1233
|
.../* @__PURE__ */ new Set([
|
1232
|
-
...
|
1233
|
-
...
|
1234
|
+
...ka[a] || [],
|
1235
|
+
...Ma[e] || []
|
1234
1236
|
])
|
1235
1237
|
];
|
1236
1238
|
}
|
1237
|
-
const
|
1239
|
+
const Ha = ({
|
1238
1240
|
options: e,
|
1239
|
-
selected:
|
1240
|
-
onChange:
|
1241
|
+
selected: a,
|
1242
|
+
onChange: o,
|
1241
1243
|
showError: r
|
1242
1244
|
}) => {
|
1243
1245
|
const i = (d, f) => {
|
1244
|
-
f.target.checked ? a
|
1246
|
+
f.target.checked ? o(a.concat(d)) : o(a.filter((c) => c !== d));
|
1245
1247
|
};
|
1246
1248
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
1247
1249
|
/* @__PURE__ */ t.jsx("h2", { className: "sid-header__subtitle sid-l-space-top-md sid-l-space-btm-md", children: /* @__PURE__ */ t.jsx(
|
@@ -1261,14 +1263,14 @@ const zo = ({
|
|
1261
1263
|
type: "checkbox",
|
1262
1264
|
name: "requirements",
|
1263
1265
|
value: d,
|
1264
|
-
checked:
|
1266
|
+
checked: a.includes(d),
|
1265
1267
|
onChange: i.bind(null, d),
|
1266
|
-
"aria-invalid": r && !
|
1268
|
+
"aria-invalid": r && !a.includes(d)
|
1267
1269
|
}
|
1268
1270
|
),
|
1269
1271
|
/* @__PURE__ */ t.jsxs("div", { className: "sid-l-space-btm-md", children: [
|
1270
1272
|
/* @__PURE__ */ t.jsx(m, { id: d }),
|
1271
|
-
r && !
|
1273
|
+
r && !a.includes(d) && /* @__PURE__ */ t.jsx("div", { className: "sid-field-error", children: /* @__PURE__ */ t.jsx(
|
1272
1274
|
m,
|
1273
1275
|
{
|
1274
1276
|
id: "step.docUpload.confirm",
|
@@ -1279,16 +1281,16 @@ const zo = ({
|
|
1279
1281
|
] })
|
1280
1282
|
)) })
|
1281
1283
|
] });
|
1282
|
-
},
|
1284
|
+
}, za = ({ children: e }) => /* @__PURE__ */ t.jsxs("div", { className: "sid-named-divider", children: [
|
1283
1285
|
/* @__PURE__ */ t.jsx("hr", { className: "sid-named-divider__rule" }),
|
1284
1286
|
/* @__PURE__ */ t.jsx("p", { className: "sid-named-divider__text", children: e })
|
1285
1287
|
] });
|
1286
|
-
function
|
1288
|
+
function Va({
|
1287
1289
|
title: e,
|
1288
|
-
titleId:
|
1289
|
-
...
|
1290
|
+
titleId: a,
|
1291
|
+
...o
|
1290
1292
|
}, r) {
|
1291
|
-
return /* @__PURE__ */
|
1293
|
+
return /* @__PURE__ */ ve.createElement("svg", Object.assign({
|
1292
1294
|
xmlns: "http://www.w3.org/2000/svg",
|
1293
1295
|
fill: "none",
|
1294
1296
|
viewBox: "0 0 24 24",
|
@@ -1297,16 +1299,16 @@ function Wo({
|
|
1297
1299
|
"aria-hidden": "true",
|
1298
1300
|
"data-slot": "icon",
|
1299
1301
|
ref: r,
|
1300
|
-
"aria-labelledby":
|
1301
|
-
},
|
1302
|
-
id:
|
1303
|
-
}, e) : null, /* @__PURE__ */
|
1302
|
+
"aria-labelledby": a
|
1303
|
+
}, o), e ? /* @__PURE__ */ ve.createElement("title", {
|
1304
|
+
id: a
|
1305
|
+
}, e) : null, /* @__PURE__ */ ve.createElement("path", {
|
1304
1306
|
strokeLinecap: "round",
|
1305
1307
|
strokeLinejoin: "round",
|
1306
1308
|
d: "M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
|
1307
1309
|
}));
|
1308
1310
|
}
|
1309
|
-
const
|
1311
|
+
const Wa = /* @__PURE__ */ ve.forwardRef(Va), Ga = (e) => /* @__PURE__ */ t.jsxs(
|
1310
1312
|
"svg",
|
1311
1313
|
{
|
1312
1314
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1474,7 +1476,7 @@ const Go = /* @__PURE__ */ Ue.forwardRef(Wo), $o = (e) => /* @__PURE__ */ t.jsxs
|
|
1474
1476
|
)
|
1475
1477
|
]
|
1476
1478
|
}
|
1477
|
-
),
|
1479
|
+
), $a = (e) => /* @__PURE__ */ t.jsxs(
|
1478
1480
|
"svg",
|
1479
1481
|
{
|
1480
1482
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1539,7 +1541,7 @@ const Go = /* @__PURE__ */ Ue.forwardRef(Wo), $o = (e) => /* @__PURE__ */ t.jsxs
|
|
1539
1541
|
)
|
1540
1542
|
]
|
1541
1543
|
}
|
1542
|
-
),
|
1544
|
+
), Ka = (e) => /* @__PURE__ */ t.jsxs(
|
1543
1545
|
"svg",
|
1544
1546
|
{
|
1545
1547
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1603,21 +1605,21 @@ const Go = /* @__PURE__ */ Ue.forwardRef(Wo), $o = (e) => /* @__PURE__ */ t.jsxs
|
|
1603
1605
|
)
|
1604
1606
|
]
|
1605
1607
|
}
|
1606
|
-
),
|
1607
|
-
function
|
1608
|
-
return e === "ID_CARD" &&
|
1608
|
+
), qa = ["ID_CARD", "SCHEDULE"];
|
1609
|
+
function Za(e, a) {
|
1610
|
+
return e === "ID_CARD" && a === "large" ? Ga : e === "ID_CARD" && a === "small" ? it : e === "SCHEDULE" && a === "large" ? $a : e === "SCHEDULE" && a === "small" ? Ka : it;
|
1609
1611
|
}
|
1610
|
-
const
|
1611
|
-
const r =
|
1612
|
-
return /* @__PURE__ */ t.jsx(se, { onDrop: (i) => e(i,
|
1612
|
+
const Qa = ({ onFileDrop: e, type: a, style: o = "small" }) => {
|
1613
|
+
const r = Za(a, o);
|
1614
|
+
return /* @__PURE__ */ t.jsx(se, { onDrop: (i) => e(i, a), children: ({ getRootProps: i, getInputProps: d }) => /* @__PURE__ */ t.jsxs("section", { ...i(), className: "sid-document-type-attachment-wrap", children: [
|
1613
1615
|
/* @__PURE__ */ t.jsx("input", { ...d() }),
|
1614
|
-
|
1616
|
+
o === "small" ? /* @__PURE__ */ t.jsxs("button", { className: "sid-document-type-attachment", type: "button", children: [
|
1615
1617
|
/* @__PURE__ */ t.jsx(r, { className: "sid-document-type-attachment__icon-small" }),
|
1616
1618
|
/* @__PURE__ */ t.jsxs("span", { className: "sid-document-type-attachment__text", children: [
|
1617
|
-
|
1618
|
-
|
1619
|
+
a === "ID_CARD" && /* @__PURE__ */ t.jsx(t.Fragment, { children: "Dated School ID card" }),
|
1620
|
+
a === "SCHEDULE" && /* @__PURE__ */ t.jsx(t.Fragment, { children: "Class Schedule" })
|
1619
1621
|
] }),
|
1620
|
-
/* @__PURE__ */ t.jsx(
|
1622
|
+
/* @__PURE__ */ t.jsx(Wa, { className: "sid-document-type-attachment__plus" })
|
1621
1623
|
] }) : /* @__PURE__ */ t.jsxs(
|
1622
1624
|
"button",
|
1623
1625
|
{
|
@@ -1626,14 +1628,14 @@ const Xo = ({ onFileDrop: e, type: o, style: a = "small" }) => {
|
|
1626
1628
|
children: [
|
1627
1629
|
/* @__PURE__ */ t.jsx(r, { className: "sid-document-type-attachment__icon-large" }),
|
1628
1630
|
/* @__PURE__ */ t.jsxs("span", { className: "sid-document-type-attachment__text-large", children: [
|
1629
|
-
|
1630
|
-
|
1631
|
+
a === "ID_CARD" && /* @__PURE__ */ t.jsx(t.Fragment, { children: "Add your dated school ID card" }),
|
1632
|
+
a === "SCHEDULE" && /* @__PURE__ */ t.jsx(t.Fragment, { children: "Add your class schedule" })
|
1631
1633
|
] })
|
1632
1634
|
]
|
1633
1635
|
}
|
1634
1636
|
)
|
1635
1637
|
] }) });
|
1636
|
-
},
|
1638
|
+
}, Xa = {
|
1637
1639
|
[u.STUDENT]: [
|
1638
1640
|
"step.docUpload.uploadInfo.fullName",
|
1639
1641
|
"step.docUpload.uploadInfo.student.school",
|
@@ -1696,7 +1698,7 @@ const Xo = ({ onFileDrop: e, type: o, style: a = "small" }) => {
|
|
1696
1698
|
"step.docUpload.uploadInfo.recentMover.address",
|
1697
1699
|
"step.docUpload.uploadInfo.recentMover.validDate"
|
1698
1700
|
]
|
1699
|
-
},
|
1701
|
+
}, Ja = {
|
1700
1702
|
[n.ACTIVE_DUTY]: [],
|
1701
1703
|
[n.VETERAN]: [],
|
1702
1704
|
[n.RESERVIST]: [],
|
@@ -1725,95 +1727,95 @@ const Xo = ({ onFileDrop: e, type: o, style: a = "small" }) => {
|
|
1725
1727
|
[n.ARCHITECT]: [],
|
1726
1728
|
[n.GENERAL_CONTRACTOR]: [],
|
1727
1729
|
[n.NUTRITION_PROFESSIONAL]: []
|
1728
|
-
},
|
1730
|
+
}, eo = {
|
1729
1731
|
// MILITARY_FAMILY is overridden to not show branch of service.
|
1730
1732
|
[n.MILITARY_FAMILY]: [
|
1731
1733
|
"step.docUpload.uploadInfo.military.uploadInstructionsDependent"
|
1732
1734
|
]
|
1733
1735
|
};
|
1734
|
-
function
|
1735
|
-
return
|
1736
|
-
...
|
1737
|
-
...
|
1736
|
+
function to(e, a) {
|
1737
|
+
return eo[a] || [
|
1738
|
+
...Ja[a] || [],
|
1739
|
+
...Xa[e] || []
|
1738
1740
|
];
|
1739
1741
|
}
|
1740
|
-
const st = ({ errorId: e, erroredFileNames:
|
1742
|
+
const st = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e ? /* @__PURE__ */ t.jsxs("div", { className: "sid-field-error sid-field-error-redesign__doc-upload", children: [
|
1741
1743
|
/* @__PURE__ */ t.jsx(
|
1742
1744
|
m,
|
1743
1745
|
{
|
1744
|
-
id: `errorId.${
|
1746
|
+
id: `errorId.${o.docUpload}`,
|
1745
1747
|
defaultMessage: "No valid files"
|
1746
1748
|
}
|
1747
1749
|
),
|
1748
|
-
|
1749
|
-
] }) : null,
|
1750
|
-
const [
|
1750
|
+
a ? a.map((r) => /* @__PURE__ */ t.jsx("div", { className: "sid-field-error-redesign__doc-upload__span", children: r }, `error-${r}`)) : null
|
1751
|
+
] }) : null, ao = ({ verificationService: e, intl: a }) => {
|
1752
|
+
const [o, r] = ne(!1), i = e.verificationResponse, { rejectionReasons: d, segment: f, subSegment: c } = i, { programTheme: E } = e, g = e.viewModel, { fieldValidationErrors: A } = e, { overrideEnabled: v } = e.programTheme, N = Ce("doc-upload-redesign-use-legacy-message-keys"), w = (N ? to : Ya)(
|
1751
1753
|
f,
|
1752
1754
|
c
|
1753
|
-
),
|
1755
|
+
), Q = e.verificationResponse.country === "US", B = (s) => ({
|
1754
1756
|
name: s.name,
|
1755
1757
|
url: s.type.includes("image") ? URL.createObjectURL(s) : ""
|
1756
|
-
}), [
|
1757
|
-
vt(Ut) &&
|
1758
|
+
}), [z, V] = ne({}), { userDidConvert: X } = Et(f), b = [], J = Ce("doc-upload-may24"), T = i.segment === "student" && i.locale === "en-US" ? J : "default", O = Ce("docUpload-assertion-checklist") === "checklist", [Y, H] = ne([]), [U, j] = ne(!1);
|
1759
|
+
vt(Ut) && b.push({
|
1758
1760
|
name: "myFile.png",
|
1759
1761
|
url: ""
|
1760
1762
|
});
|
1761
|
-
const
|
1763
|
+
const le = a.formatMessage({
|
1762
1764
|
id: "step.docUpload.addFile",
|
1763
1765
|
defaultMessage: "Add documents"
|
1764
1766
|
});
|
1765
|
-
g.file1 && g.file1.name &&
|
1766
|
-
const
|
1767
|
-
r(!1), e.updateViewModel(Bt(g, s,
|
1768
|
-
},
|
1769
|
-
const
|
1770
|
-
r(!1),
|
1771
|
-
},
|
1772
|
-
const
|
1773
|
-
for (const
|
1774
|
-
const
|
1775
|
-
|
1776
|
-
|
1767
|
+
g.file1 && g.file1.name && b.push(B(g.file1)), g.file2 && g.file2.name && b.push(B(g.file2)), g.file3 && g.file3.name && b.push(B(g.file3));
|
1768
|
+
const W = b.map((s) => z[s.name]), D = (s, y) => {
|
1769
|
+
r(!1), e.updateViewModel(Bt(g, s, y));
|
1770
|
+
}, de = (s) => {
|
1771
|
+
const y = s + 1;
|
1772
|
+
r(!1), H([]), j(!1), e.updateViewModel(St(g, y));
|
1773
|
+
}, ee = A.docUpload || jt(() => e.verificationResponse.errorIds[0], void 0), ce = (s, y) => {
|
1774
|
+
const L = [], $ = [], te = [];
|
1775
|
+
for (const M of s) {
|
1776
|
+
const k = Pt(
|
1777
|
+
be.docUpload,
|
1778
|
+
M,
|
1777
1779
|
e.formValidationOptions
|
1778
1780
|
);
|
1779
|
-
|
1781
|
+
k === void 0 ? (y && V({ ...z, [M.name]: y }), L.push(M)) : (te.push(M.name), $.push(k));
|
1780
1782
|
}
|
1781
|
-
let
|
1782
|
-
|
1783
|
-
|
1784
|
-
})), e.updateFieldValidationErrors(
|
1785
|
-
},
|
1786
|
-
|
1787
|
-
|
1783
|
+
let ae;
|
1784
|
+
$ && (ae = Ge(A, (M) => {
|
1785
|
+
M.docUpload = $[0];
|
1786
|
+
})), e.updateFieldValidationErrors(ae), D(L, te);
|
1787
|
+
}, pe = () => {
|
1788
|
+
Se.info("StepDocUploadComponent submitting form"), j(!0), (O && w.every((s) => Y.includes(s)) || !O) && (e.submitStep(
|
1789
|
+
be.docUpload,
|
1788
1790
|
g,
|
1789
1791
|
e.verificationResponse
|
1790
|
-
),
|
1791
|
-
},
|
1792
|
-
s.length > 0 ?
|
1792
|
+
), X(Mt, kt));
|
1793
|
+
}, C = (s, y) => {
|
1794
|
+
s.length > 0 ? ce(s, y) : s.length <= 0 && Se.error(
|
1793
1795
|
"No files were accepted or rejected. Unknown error.",
|
1794
|
-
|
1796
|
+
be.docUpload
|
1795
1797
|
);
|
1798
|
+
}, ue = (s) => {
|
1799
|
+
C(Array.from(s.target.files));
|
1796
1800
|
}, fe = (s) => {
|
1797
|
-
|
1798
|
-
|
1799
|
-
|
1800
|
-
(
|
1801
|
-
}, he = async () => {
|
1802
|
-
Le.info("StepDocUploadComponent submitting form after skipping document upload");
|
1801
|
+
const y = Lt("addFile");
|
1802
|
+
(s.key === "Enter" || s.key === " ") && (s.preventDefault(), s.stopPropagation(), y.click());
|
1803
|
+
}, me = async () => {
|
1804
|
+
Se.info("StepDocUploadComponent submitting form after skipping document upload");
|
1803
1805
|
const s = Ge(g, () => {
|
1804
1806
|
});
|
1805
1807
|
e.submitStep(
|
1806
|
-
|
1808
|
+
be.cancelDocUpload,
|
1807
1809
|
s,
|
1808
1810
|
e.verificationResponse
|
1809
1811
|
);
|
1810
|
-
},
|
1811
|
-
(s) => !
|
1812
|
-
|
1812
|
+
}, G = /* @__PURE__ */ t.jsx("div", { className: "sid-upload-wrap sid-l-space-top-md sid-l-space-btm-md", children: T === "doc-type-icons" ? /* @__PURE__ */ t.jsx(t.Fragment, { children: qa.map(
|
1813
|
+
(s) => !W.includes(s) && /* @__PURE__ */ t.jsx(
|
1814
|
+
Qa,
|
1813
1815
|
{
|
1814
|
-
onFileDrop:
|
1816
|
+
onFileDrop: C,
|
1815
1817
|
type: s,
|
1816
|
-
style: s === "ID_CARD" &&
|
1818
|
+
style: s === "ID_CARD" && b.length === 0 ? "large" : "small"
|
1817
1819
|
}
|
1818
1820
|
)
|
1819
1821
|
) }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
@@ -1821,24 +1823,24 @@ const st = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
|
|
1821
1823
|
st,
|
1822
1824
|
{
|
1823
1825
|
fieldValidationErrors: A,
|
1824
|
-
errorId:
|
1826
|
+
errorId: ee,
|
1825
1827
|
erroredFileNames: g.erroredFileNames
|
1826
1828
|
}
|
1827
1829
|
),
|
1828
|
-
/* @__PURE__ */ t.jsx("div", { className: "sid-docdrop-wrap", children: /* @__PURE__ */ t.jsx(se, { onDrop: (s) =>
|
1830
|
+
/* @__PURE__ */ t.jsx("div", { className: "sid-docdrop-wrap", children: /* @__PURE__ */ t.jsx(se, { onDrop: (s) => C(s), accept: We.join(","), children: ({ getRootProps: s, getInputProps: y }) => /* @__PURE__ */ t.jsxs(
|
1829
1831
|
"div",
|
1830
1832
|
{
|
1831
1833
|
...s(),
|
1832
1834
|
className: "sid-docdrop-wrap__dropzone sid-docdrop-wrap__dropzone_height",
|
1833
1835
|
children: [
|
1834
|
-
/* @__PURE__ */ t.jsx("input", { ...
|
1836
|
+
/* @__PURE__ */ t.jsx("input", { ...y({ accept: We.join(",") }) }),
|
1835
1837
|
/* @__PURE__ */ t.jsx(
|
1836
1838
|
"button",
|
1837
1839
|
{
|
1838
1840
|
tabIndex: -1,
|
1839
1841
|
className: "sid-btn sid-btn--dark sid-doc-upload-submit-btn sid-submit__continue border-radius",
|
1840
1842
|
type: "button",
|
1841
|
-
"aria-label":
|
1843
|
+
"aria-label": le,
|
1842
1844
|
children: /* @__PURE__ */ t.jsx(
|
1843
1845
|
m,
|
1844
1846
|
{
|
@@ -1856,7 +1858,7 @@ const st = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
|
|
1856
1858
|
"div",
|
1857
1859
|
{
|
1858
1860
|
id: "sid-step-doc-upload",
|
1859
|
-
className: `sid-doc-upload-redesign-container sid-l-container sid-may24-variation__${
|
1861
|
+
className: `sid-doc-upload-redesign-container sid-l-container sid-may24-variation__${T}`,
|
1860
1862
|
children: [
|
1861
1863
|
/* @__PURE__ */ t.jsxs("div", { role: "main", children: [
|
1862
1864
|
/* @__PURE__ */ t.jsxs("div", { className: "sid-header sid-l-space-top-md", children: [
|
@@ -1887,21 +1889,21 @@ const st = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
|
|
1887
1889
|
) })
|
1888
1890
|
] })
|
1889
1891
|
] }),
|
1890
|
-
|
1891
|
-
(O &&
|
1892
|
+
T === "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" }),
|
1893
|
+
(O && b.length === 0 || !O) && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
1892
1894
|
/* @__PURE__ */ t.jsx("h2", { className: "sid-header__subtitle sid-l-space-btm-md sid-l-space-top-md", children: /* @__PURE__ */ t.jsx(
|
1893
1895
|
m,
|
1894
1896
|
{
|
1895
|
-
id:
|
1897
|
+
id: N ? "step.docUpload.uploadInstructions" : "step.docUpload.documentsMustInclude",
|
1896
1898
|
defaultMessage: "Your documents must include:"
|
1897
1899
|
}
|
1898
1900
|
) }),
|
1899
|
-
/* @__PURE__ */ t.jsx("ul", { className: "sid-doc-upload-requirements", children:
|
1901
|
+
/* @__PURE__ */ t.jsx("ul", { className: "sid-doc-upload-requirements", children: w.map((s) => /* @__PURE__ */ t.jsx("li", { className: "sid-doc-upload-requirements__definition", children: /* @__PURE__ */ t.jsx(m, { id: s }) }, s)) })
|
1900
1902
|
] }),
|
1901
|
-
|
1902
|
-
|
1903
|
+
b.length === 0 && G,
|
1904
|
+
b.length > 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
1903
1905
|
/* @__PURE__ */ t.jsxs("div", { className: "sid-file-list sid-l-space-top-md", children: [
|
1904
|
-
|
1906
|
+
b.map((s, y) => /* @__PURE__ */ t.jsxs("div", { className: "sid-file-list__file", children: [
|
1905
1907
|
/* @__PURE__ */ t.jsx("div", { className: "sid-file-list__thumbnail-wrapper", children: s.url ? /* @__PURE__ */ t.jsx(
|
1906
1908
|
"img",
|
1907
1909
|
{
|
@@ -1925,19 +1927,19 @@ const st = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
|
|
1925
1927
|
tabIndex: 0,
|
1926
1928
|
"aria-label": `Remove file ${s.name}`,
|
1927
1929
|
className: "sid-file-list__remove-btn",
|
1928
|
-
onClick: () =>
|
1929
|
-
onKeyPress: () =>
|
1930
|
+
onClick: () => de(y),
|
1931
|
+
onKeyPress: () => de(y)
|
1930
1932
|
}
|
1931
1933
|
)
|
1932
1934
|
] })
|
1933
1935
|
] }, s.name)),
|
1934
|
-
|
1936
|
+
b.length < wt && T !== "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(
|
1935
1937
|
"label",
|
1936
1938
|
{
|
1937
1939
|
className: "sid-docdrop-wrap__dropzone thumbnail_wrapper",
|
1938
1940
|
htmlFor: "sid-take-photo-input",
|
1939
1941
|
role: "button",
|
1940
|
-
onKeyUp: (s) =>
|
1942
|
+
onKeyUp: (s) => fe(s),
|
1941
1943
|
tabIndex: 0,
|
1942
1944
|
children: [
|
1943
1945
|
/* @__PURE__ */ t.jsx(Rt, { className: "sid-uploadzone__icon", width: "16px" }),
|
@@ -1951,7 +1953,7 @@ const st = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
|
|
1951
1953
|
/* @__PURE__ */ t.jsx(
|
1952
1954
|
"input",
|
1953
1955
|
{
|
1954
|
-
onChange:
|
1956
|
+
onChange: ue,
|
1955
1957
|
type: "file",
|
1956
1958
|
id: "sid-take-photo-input",
|
1957
1959
|
hidden: !0,
|
@@ -1968,28 +1970,28 @@ const st = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
|
|
1968
1970
|
st,
|
1969
1971
|
{
|
1970
1972
|
fieldValidationErrors: A,
|
1971
|
-
errorId:
|
1973
|
+
errorId: ee,
|
1972
1974
|
erroredFileNames: g.erroredFileNames
|
1973
1975
|
}
|
1974
1976
|
),
|
1975
|
-
O &&
|
1976
|
-
|
1977
|
+
O && b.length >= 1 && /* @__PURE__ */ t.jsx(
|
1978
|
+
Ha,
|
1977
1979
|
{
|
1978
|
-
options:
|
1979
|
-
selected:
|
1980
|
-
onChange:
|
1981
|
-
showError:
|
1980
|
+
options: w,
|
1981
|
+
selected: Y,
|
1982
|
+
onChange: H,
|
1983
|
+
showError: U
|
1982
1984
|
}
|
1983
1985
|
),
|
1984
1986
|
/* @__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(
|
1985
1987
|
"button",
|
1986
1988
|
{
|
1987
1989
|
id: "sid-submit-doc-upload",
|
1988
|
-
onClick:
|
1990
|
+
onClick: pe,
|
1989
1991
|
type: "submit",
|
1990
1992
|
className: "sid-btn sid-btn--dark sid-doc-upload-submit-btn sid-submit__continue border-radius",
|
1991
|
-
"aria-disabled":
|
1992
|
-
children:
|
1993
|
+
"aria-disabled": b.length <= 0 || O && !w.every((s) => Y.includes(s)),
|
1994
|
+
children: T === "doc-type-icons" ? /* @__PURE__ */ t.jsx(
|
1993
1995
|
m,
|
1994
1996
|
{
|
1995
1997
|
id: "_EXPERIMENTAL-VARIATION.step.docUpload.submitButtonLabel",
|
@@ -1998,48 +2000,55 @@ const st = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
|
|
1998
2000
|
two {documents}
|
1999
2001
|
other {documents}
|
2000
2002
|
}`,
|
2001
|
-
values: { count:
|
2003
|
+
values: { count: b.length }
|
2002
2004
|
}
|
2003
2005
|
) : /* @__PURE__ */ t.jsx(
|
2004
2006
|
m,
|
2005
2007
|
{
|
2006
2008
|
id: "step.docUpload.submitButtonLabel",
|
2007
2009
|
defaultMessage: "Submit",
|
2008
|
-
values: { count:
|
2010
|
+
values: { count: b.length }
|
2009
2011
|
}
|
2010
2012
|
)
|
2011
2013
|
}
|
2012
2014
|
) })
|
2013
2015
|
] }) : null,
|
2014
|
-
|
2015
|
-
|
2016
|
-
/* @__PURE__ */ t.jsx(
|
2017
|
-
|
2016
|
+
T === "doc-type-icons" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2017
|
+
b.length > 0 && b.length < 2 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2018
|
+
/* @__PURE__ */ t.jsx(za, { children: "Add another document" }),
|
2019
|
+
G
|
2018
2020
|
] }),
|
2019
2021
|
/* @__PURE__ */ t.jsx("h3", { children: "FAQ" }),
|
2020
|
-
/* @__PURE__ */ t.jsx(
|
2021
|
-
] }) : /* @__PURE__ */ t.jsxs(
|
2022
|
-
|
2023
|
-
|
2024
|
-
|
2025
|
-
|
2026
|
-
|
2027
|
-
|
2028
|
-
|
2029
|
-
|
2030
|
-
|
2031
|
-
|
2032
|
-
|
2033
|
-
|
2034
|
-
|
2035
|
-
|
2022
|
+
/* @__PURE__ */ t.jsx(Ee, { id: "suggestedDocs", title: "What information is needed?", children: /* @__PURE__ */ t.jsx("ul", { className: "sid-doc-upload-requirements", children: w.map((s) => /* @__PURE__ */ t.jsx("li", { className: "sid-doc-upload-requirements__definition", children: /* @__PURE__ */ t.jsx(m, { id: s }) }, s)) }) })
|
2023
|
+
] }) : /* @__PURE__ */ t.jsxs(
|
2024
|
+
Ee,
|
2025
|
+
{
|
2026
|
+
id: "suggestedDocs",
|
2027
|
+
title: /* @__PURE__ */ t.jsx(
|
2028
|
+
m,
|
2029
|
+
{
|
2030
|
+
id: "step.docUpload.suggestedDocumentTypes",
|
2031
|
+
defaultMessage: "Suggested document types"
|
2032
|
+
}
|
2033
|
+
),
|
2034
|
+
defaultState: T === "checkbox-requirements" ? "closed" : "open",
|
2035
|
+
children: [
|
2036
|
+
N && /* @__PURE__ */ t.jsx(m, { id: "step.docUpload.acceptableUploadExamples" }),
|
2037
|
+
/* @__PURE__ */ t.jsxs("ul", { className: "sid-acceptable-document-types", children: [
|
2038
|
+
(N ? Nt : Ba)(
|
2039
|
+
f,
|
2040
|
+
c
|
2041
|
+
).map((s) => /* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(m, { id: s }) }, s)),
|
2042
|
+
/* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(m, { id: "step.docUpload.acceptedTypes" }) })
|
2043
|
+
] }),
|
2044
|
+
Q && (c === "activeDuty" || c === "reservist") && /* @__PURE__ */ t.jsx("div", { className: "sid-acceptable-document-types", children: /* @__PURE__ */ t.jsxs("p", { children: [
|
2045
|
+
/* @__PURE__ */ t.jsx("span", { className: "display-block", children: /* @__PURE__ */ t.jsx("strong", { children: /* @__PURE__ */ t.jsx(
|
2036
2046
|
m,
|
2037
2047
|
{
|
2038
2048
|
id: "step.docUpload.acceptableUploads.doNotUploadMilitaryIdTitle",
|
2039
2049
|
defaultMessage: "Do not upload a photo of your military ID."
|
2040
2050
|
}
|
2041
|
-
) }),
|
2042
|
-
" ",
|
2051
|
+
) }) }),
|
2043
2052
|
/* @__PURE__ */ t.jsx(
|
2044
2053
|
m,
|
2045
2054
|
{
|
@@ -2048,51 +2057,11 @@ const st = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
|
|
2048
2057
|
}
|
2049
2058
|
)
|
2050
2059
|
] }) })
|
2051
|
-
|
2052
|
-
|
2053
|
-
|
2054
|
-
re,
|
2055
|
-
{
|
2056
|
-
id: "suggestedDocs",
|
2057
|
-
title: /* @__PURE__ */ t.jsx(
|
2058
|
-
m,
|
2059
|
-
{
|
2060
|
-
id: "step.docUpload.suggestedDocumentTypes",
|
2061
|
-
defaultMessage: "Suggested document types"
|
2062
|
-
}
|
2063
|
-
),
|
2064
|
-
defaultState: v === "checkbox-requirements" ? "closed" : "open",
|
2065
|
-
children: [
|
2066
|
-
T && /* @__PURE__ */ t.jsx(m, { id: "step.docUpload.acceptableUploadExamples" }),
|
2067
|
-
/* @__PURE__ */ t.jsxs("ul", { className: "sid-acceptable-document-types", children: [
|
2068
|
-
(T ? Nt : Yo)(
|
2069
|
-
f,
|
2070
|
-
c
|
2071
|
-
).map((s) => /* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(m, { id: s }) }, s)),
|
2072
|
-
/* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(m, { id: "step.docUpload.acceptedTypes" }) })
|
2073
|
-
] }),
|
2074
|
-
L !== "add-doc-considerations" && H && (c === "activeDuty" || c === "reservist") && /* @__PURE__ */ t.jsx("div", { className: "sid-acceptable-document-types", children: /* @__PURE__ */ t.jsxs("p", { children: [
|
2075
|
-
/* @__PURE__ */ t.jsx("span", { className: "display-block", children: /* @__PURE__ */ t.jsx("strong", { children: /* @__PURE__ */ t.jsx(
|
2076
|
-
m,
|
2077
|
-
{
|
2078
|
-
id: "step.docUpload.acceptableUploads.doNotUploadMilitaryIdTitle",
|
2079
|
-
defaultMessage: "Do not upload a photo of your military ID."
|
2080
|
-
}
|
2081
|
-
) }) }),
|
2082
|
-
/* @__PURE__ */ t.jsx(
|
2083
|
-
m,
|
2084
|
-
{
|
2085
|
-
id: "step.docUpload.acceptableUploads.doNotUploadMilitaryIdContent",
|
2086
|
-
defaultMessage: "In accordance with federal law, SheerID does not accept submissions of active duty/reservist military ID cards."
|
2087
|
-
}
|
2088
|
-
)
|
2089
|
-
] }) })
|
2090
|
-
]
|
2091
|
-
}
|
2092
|
-
)
|
2093
|
-
] }),
|
2060
|
+
]
|
2061
|
+
}
|
2062
|
+
),
|
2094
2063
|
/* @__PURE__ */ t.jsxs(
|
2095
|
-
|
2064
|
+
Ee,
|
2096
2065
|
{
|
2097
2066
|
id: "whatHappensNext",
|
2098
2067
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2124,7 +2093,7 @@ const st = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
|
|
2124
2093
|
id: "step.docUpload.reviewTime",
|
2125
2094
|
defaultMessage: "Expected review time is {estimatedWaitTime}.",
|
2126
2095
|
values: {
|
2127
|
-
estimatedWaitTime: Tt(i, E,
|
2096
|
+
estimatedWaitTime: Tt(i, E, a).estReviewTime
|
2128
2097
|
}
|
2129
2098
|
}
|
2130
2099
|
) }),
|
@@ -2133,7 +2102,7 @@ const st = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
|
|
2133
2102
|
}
|
2134
2103
|
),
|
2135
2104
|
/* @__PURE__ */ t.jsx(
|
2136
|
-
|
2105
|
+
Ee,
|
2137
2106
|
{
|
2138
2107
|
id: "canIFinishLater",
|
2139
2108
|
title: /* @__PURE__ */ t.jsx(
|
@@ -2152,12 +2121,12 @@ const st = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
|
|
2152
2121
|
) })
|
2153
2122
|
}
|
2154
2123
|
),
|
2155
|
-
|
2124
|
+
v && /* @__PURE__ */ t.jsx("div", { className: "sid-submit sid-override-submit sid-l-space-top-sm", children: /* @__PURE__ */ t.jsx(
|
2156
2125
|
"a",
|
2157
2126
|
{
|
2158
2127
|
href: "#",
|
2159
2128
|
className: "sid-link sid-override-link",
|
2160
|
-
onClick: () =>
|
2129
|
+
onClick: () => me(),
|
2161
2130
|
role: "button",
|
2162
2131
|
children: /* @__PURE__ */ t.jsx(
|
2163
2132
|
m,
|
@@ -2173,7 +2142,7 @@ const st = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
|
|
2173
2142
|
]
|
2174
2143
|
}
|
2175
2144
|
);
|
2176
|
-
},
|
2145
|
+
}, io = Gt(ao);
|
2177
2146
|
export {
|
2178
|
-
|
2147
|
+
io as default
|
2179
2148
|
};
|