@wix/form-elements 1.147.0 → 1.149.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/dist/component/{appointment-rac-BG5-bIZU.js → appointment-rac-CeJ6tmgt.js} +93 -89
- package/dist/component/{bookings-address-rac-8e8PqKsp.js → bookings-address-rac-CEObYEbj.js} +1 -1
- package/dist/component/{bookings-email-rac-CtlnU8ws.js → bookings-email-rac-DmW99D5W.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CrivNlXM.js → bookings-first-name-rac-GmKet4hL.js} +1 -1
- package/dist/component/{bookings-header-rac-DWDAjfqq.js → bookings-header-rac-C_J1YzAq.js} +1 -1
- package/dist/component/{bookings-last-name-rac-qAthWem2.js → bookings-last-name-rac-Bj-gwK0F.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BNyUDqlM.js → bookings-login-bar-rac-ol4QLAP6.js} +1 -1
- package/dist/component/{bookings-phone-rac-Tc39XLr7.js → bookings-phone-rac-oaCG294y.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CPNaPtFK.js → bookings-rich-text-rac-sMiikQgk.js} +1 -1
- package/dist/component/{checkbox-field-rac-DEa78Tpf.js → checkbox-field-rac-DxGaRbDj.js} +9 -7
- package/dist/component/{checkbox-group-field-headless-BxBaMg29.js → checkbox-group-field-headless-C3ZaCvQz.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CRRP03Qk.js → checkbox-group-field-rac-CMj-kfFN.js} +6 -6
- package/dist/component/{checkbox-group-rac-TOofMGl3.js → checkbox-group-rac-DpOT4H7g.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-6173wvuW.js → checkbox-indicator-module-classes-akWZsZNn.js} +1 -1
- package/dist/component/{checkbox-rac-CHMHr8Ry.js → checkbox-rac-CwdOkW8r.js} +1 -1
- package/dist/component/{contacts-address-rac-Bc5yDvTL.js → contacts-address-rac-CQvt1Epy.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-Ubtg5ncv.js → contacts-birthdate-rac-VRGtjIMf.js} +1 -1
- package/dist/component/{contacts-company-rac-BksH9IoV.js → contacts-company-rac-B_XDJTL9.js} +1 -1
- package/dist/component/{contacts-email-rac-DDPEtMAm.js → contacts-email-rac-BJ0EdzZo.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DUlCvEdx.js → contacts-first-name-rac-DzBzJXj7.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BikqNgUr.js → contacts-last-name-rac-DAHlHpW7.js} +1 -1
- package/dist/component/{contacts-phone-rac-B4OEgM_8.js → contacts-phone-rac-C4D1TMqv.js} +1 -1
- package/dist/component/{contacts-position-rac-BfybzySV.js → contacts-position-rac-g0CJQJLc.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CMHb33v1.js → contacts-subscribe-rac-C54jQIum.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-C-qEqwO5.js → contacts-tax-id-rac-D_JlmKJb.js} +1 -1
- package/dist/component/{date-availability-DZ3J3LLm.js → date-availability-CFp_AHpE.js} +1 -1
- package/dist/component/{date-input-field-rac-DeL5vuE7.js → date-input-field-rac-CxOU5_P5.js} +75 -69
- package/dist/component/{date-input-rac-Di6TQvFf.js → date-input-rac-CEuyvgIp.js} +1 -1
- package/dist/component/{date-picker-field-rac-BcdpTkjV.js → date-picker-field-rac-DC8gw2Qe.js} +10 -8
- package/dist/component/{date-picker-rac-Brne65gr.js → date-picker-rac-B8prCy1F.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BtQfAxRp.js → date-time-input-field-rac-FwScqIVQ.js} +115 -109
- package/dist/component/{date-time-input-rac-DM_HXiqV.js → date-time-input-rac-gdstXM2G.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-WTVwhGG0.js → dext-checkbox-group-rac-DdEAXUYC.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BR5YwmLQ.js → dext-checkbox-rac-DYgl82IR.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DvDuRGYi.js → dext-date-picker-rac-SaO61461.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-C6RgbaVv.js → dext-date-time-input-rac-CQ2klkyf.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CWjSdcZx.js → dext-dropdown-rac-CYINWMm2.js} +1 -1
- package/dist/component/{dext-email-rac-D-C1gVTq.js → dext-email-rac-7e49-L1S.js} +1 -1
- package/dist/component/{dext-number-input-rac-YKzZS2ZG.js → dext-number-input-rac-BxECUZaK.js} +1 -1
- package/dist/component/{dext-phone-rac-CFZlEH2a.js → dext-phone-rac-BCUCWcrF.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DiH0wIIl.js → dext-radio-group-rac-Bs_64hFW.js} +2 -2
- package/dist/component/{dext-rating-input-rac-D0s-i0qO.js → dext-rating-input-rac-Bl-MBjGQ.js} +1 -1
- package/dist/component/{dext-tags-rac-Br48OQQ5.js → dext-tags-rac-D98sEqwj.js} +2 -2
- package/dist/component/{dext-text-area-rac-6jG8gJ7i.js → dext-text-area-rac-Dsbsk2z4.js} +1 -1
- package/dist/component/{dext-text-input-rac-FAJTCXuf.js → dext-text-input-rac-vYtTnV5G.js} +1 -1
- package/dist/component/{dext-url-input-rac-BoMP8sQB.js → dext-url-input-rac-tJJZOvtn.js} +1 -1
- package/dist/component/{donation-rac-DNi4p-v5.js → donation-rac-CPPSHRbF.js} +60 -58
- package/dist/component/{dropdown-field-headless-7SCC-xOC.js → dropdown-field-headless-BWbsB155.js} +29 -27
- package/dist/component/{dropdown-field-rac-CMzZh6J6.js → dropdown-field-rac-BYyLHTVV.js} +4 -4
- package/dist/component/{dropdown-rac-qeugpHXY.js → dropdown-rac-CyWVQHvW.js} +1 -1
- package/dist/component/{ecom-address-rac-D8b_L5md.js → ecom-address-rac-DLWEUZg7.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BnAuR9La.js → ecom-subscription-checkbox-rac-DY-Vzmr5.js} +2 -2
- package/dist/component/{email-input-field-rac-CunXRyc5.js → email-input-field-rac-00Q0cH3p.js} +4 -4
- package/dist/component/{events-repeater-rac-DMjyIOkB.js → events-repeater-rac-C_TDB0VL.js} +12 -8
- package/dist/component/{events-rsvp-rac-BsuDPq2K.js → events-rsvp-rac-Cly4TgEv.js} +4 -4
- package/dist/component/{field-error-headless-E8WjFr_n.js → field-error-headless-sUpR20_V.js} +1 -1
- package/dist/component/{field-label-headless-BakLOu5E.js → field-label-headless-xEHyxl62.js} +1 -1
- package/dist/component/field-rac.module-DP0lkkEv.js +25 -0
- package/dist/component/{file-upload-rac-Clu_c--0.js → file-upload-rac-BLTYhgrR.js} +148 -144
- package/dist/component/{fixed-payment-rac-CzAXxsb-.js → fixed-payment-rac-BBSzAU8U.js} +4 -4
- package/dist/component/{form-DHAKwnLt.js → form-DbRjIc40.js} +2212 -2217
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CwmVpz3r.js → header-field-rac-DdF0EtGw.js} +2 -2
- package/dist/component/{header-rac-ahkGRjSy.js → header-rac-CQzVj2se.js} +1 -1
- package/dist/component/{image-choice-rac-BwxkkdUu.js → image-choice-rac-F4il5nrs.js} +32 -32
- package/dist/component/{index-BFi_n6B7.js → index-3lV2ezGk.js} +2 -2
- package/dist/component/{index-BQf23zZi.js → index-ClGqqyFk.js} +4 -4
- package/dist/component/{isObjectLike-DHcMRYYH.js → isObjectLike-CbFuWC1b.js} +1 -1
- package/dist/component/{multiline-address-field-rac-C6xaqNOk.js → multiline-address-field-rac-Bhkmy-UH.js} +106 -88
- package/dist/component/{multiline-address-rac-DF4TFuDx.js → multiline-address-rac-CH6ZAJ_l.js} +1 -1
- package/dist/component/{number-input-field-rac-uVJ3SBv2.js → number-input-field-rac-DEBHQQqw.js} +16 -14
- package/dist/component/{number-input-rac-D6ERhrSM.js → number-input-rac-DL3ReqMc.js} +1 -1
- package/dist/component/{password-rac-CAiC0ZKl.js → password-rac-Bo7Va46-.js} +13 -11
- package/dist/component/{payment-input-rac-Bu25xvby.js → payment-input-rac-CyT2kcLF.js} +13 -11
- package/dist/component/{phone-input-field-rac-32qUvCsC.js → phone-input-field-rac-CKCkS2mG.js} +7 -7
- package/dist/component/{phone-rac-mNrpj30q.js → phone-rac-BcW_3aA5.js} +1 -1
- package/dist/component/{product-list-rac-zHdM9rHw.js → product-list-rac-Cxu5KYQ1.js} +49 -49
- package/dist/component/{quiz-radio-group-rac-BaSlT8w3.js → quiz-radio-group-rac-Bam3nw3m.js} +1 -1
- package/dist/component/radio-button-module-classes-D6cil49f.js +134 -0
- package/dist/component/{radio-group-field-rac-DI0UgTBr.js → radio-group-field-rac-BgWnXO5Q.js} +5 -5
- package/dist/component/{radio-group-rac-D2ESG8J4.js → radio-group-rac-BMepx9xD.js} +1 -1
- package/dist/component/{rating-input-field-rac-BYT2XqOK.js → rating-input-field-rac-BmdQzQ1t.js} +5 -5
- package/dist/component/{rating-input-rac-D-5CmVAX.js → rating-input-rac-BuNTgro2.js} +1 -1
- package/dist/component/{rich-content-rac.module-Dp9Advo9.js → rich-content-rac.module-DIShgYK1.js} +1 -1
- package/dist/component/{rich-text-field-rac-COEUwoXQ.js → rich-text-field-rac-CfcWsMcr.js} +2 -2
- package/dist/component/{rich-text-rac-CQZLjBQ0.js → rich-text-rac-CbpbC1i1.js} +1 -1
- package/dist/component/{service-dropdown-rac-BTtJVFv8.js → service-dropdown-rac-_ph-8eMR.js} +5 -5
- package/dist/component/{services-multi-choice-rac-hbY3g0Kb.js → services-multi-choice-rac-VS-18f_N.js} +7 -7
- package/dist/component/{signature-rac-CTCNclwL.js → signature-rac-CgCdt4im.js} +286 -284
- package/dist/component/{submit-button-rac-kKGeVgsG.js → submit-button-rac-CAnahSZG.js} +2 -2
- package/dist/component/{tags-field-rac-CVf7oQr_.js → tags-field-rac-TdxHJoT1.js} +75 -75
- package/dist/component/{tags-rac-DiX1_nTT.js → tags-rac-ivZy_kqq.js} +1 -1
- package/dist/component/{text-area-field-rac-IhBNXiDl.js → text-area-field-rac-C4dg7l8s.js} +15 -13
- package/dist/component/{text-area-rac-DHevCtFF.js → text-area-rac-Dqcg7ApJ.js} +1 -1
- package/dist/component/{text-input-field-rac-Da3_wTdh.js → text-input-field-rac-C6VjmvWa.js} +4 -4
- package/dist/component/text-input-headless-CUsCjQmX.js +47 -0
- package/dist/component/{text-input-rac-564LIZ1_.js → text-input-rac-CMFWBJKG.js} +1 -1
- package/dist/component/{time-input-rac-p-Nnsxp_.js → time-input-rac-cbG7WRTS.js} +29 -27
- package/dist/component/{url-input-field-rac-DjrcpRtm.js → url-input-field-rac-7yh9eqH3.js} +20 -18
- package/dist/component/{url-input-rac-B3brpyop.js → url-input-rac-D_rkLxU0.js} +1 -1
- package/dist/component/{use-dropdown-trigger-class-name-BWTT7ltv.js → use-dropdown-trigger-class-name-B53A0SXh.js} +4 -4
- package/dist/component/{use-element-state-class-name-CUZuhFvZ.js → use-element-state-class-name-glM9I1ZZ.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-ugX8-g4E.js → use-hoverable-input-class-name-DpOCZ2hg.js} +3 -3
- package/dist/component/{use-is-forced-open-dropdown-DUZMvWpk.js → use-is-forced-open-dropdown-B0M0FaQ-.js} +1 -1
- package/dist/component/{use-service-options-base-hqO9Ev38.js → use-service-options-base-CqZd8Yl3.js} +1 -1
- package/dist/component/use-text-input-class-name-DPUN9lls.js +6 -0
- package/dist/form.d.ts +3 -3
- package/package.json +2 -2
- package/dist/component/field-rac.module-DfEb7pBp.js +0 -25
- package/dist/component/radio-button-module-classes-BdWjkBlX.js +0 -132
- package/dist/component/text-input-headless-DcZRRXCp.js +0 -45
- package/dist/component/use-text-input-class-name-wp9dzpEy.js +0 -6
|
@@ -2,14 +2,14 @@ import t, { useState as Y, useRef as k, useMemo as fe, useEffect as ne, useCallb
|
|
|
2
2
|
import Le from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import { RicosViewer as xe } from "@wix/ricos/viewer";
|
|
4
4
|
import Z from "classnames";
|
|
5
|
-
import { bk as Ce, by as
|
|
5
|
+
import { bk as Ce, by as re, bt as ve, ar as Ne, bw as De, ak as ie, bx as Se, bl as Ee, bo as V, bq as Te, bi as Be, bh as ye, S as Ie, a0 as Re, b as Ze, K as Ae, L as ce, v as ue, I as de, H as pe, J as Me, f as te } from "./form-DbRjIc40.js";
|
|
6
6
|
import { E as Oe } from "./error-icon-hZxQ6DEy.js";
|
|
7
|
-
import { s as $ } from "./field-rac.module-
|
|
8
|
-
import { u as
|
|
7
|
+
import { s as $ } from "./field-rac.module-DP0lkkEv.js";
|
|
8
|
+
import { u as me } from "./use-element-state-class-name-glM9I1ZZ.js";
|
|
9
9
|
import { DropZone as Ue, Text as we, FileTrigger as He, Button as Fe, ProgressBar as Pe, VisuallyHidden as ke } from "react-aria-components";
|
|
10
10
|
import { f as L, a as W } from "./find-child-C60k4CxG.js";
|
|
11
|
-
import { b as
|
|
12
|
-
import { L as je } from "./field-label-headless-
|
|
11
|
+
import { b as ze, a as Ve, D as qe, E as Ke } from "./field-error-headless-sUpR20_V.js";
|
|
12
|
+
import { L as je } from "./field-label-headless-xEHyxl62.js";
|
|
13
13
|
const $e = {
|
|
14
14
|
Video: "video/*",
|
|
15
15
|
Image: "image/*",
|
|
@@ -18,36 +18,36 @@ const $e = {
|
|
|
18
18
|
Archive: ".zip, .rar, .tar, .tar.gz, .gz, .gzip, .jar, .7z, .fgz, .webarchive",
|
|
19
19
|
Model3D: ".gltf, .glb"
|
|
20
20
|
}, Ye = (e) => {
|
|
21
|
-
const { actions: n, formId:
|
|
21
|
+
const { actions: n, formId: r } = Ce();
|
|
22
22
|
return async (l, s, d) => {
|
|
23
23
|
if (!(n != null && n.uploadFile) || !l.length)
|
|
24
24
|
return n != null && n.uploadFile || console.error("No uploadFile action"), l.length || console.error("No files to upload"), [];
|
|
25
|
-
const E = l.map(({ file:
|
|
26
|
-
file:
|
|
27
|
-
formId:
|
|
25
|
+
const E = l.map(({ file: o }) => n.uploadFile({
|
|
26
|
+
file: o,
|
|
27
|
+
formId: r,
|
|
28
28
|
uploadTarget: e
|
|
29
29
|
}).then((i) => {
|
|
30
|
-
const { id: C, displayName:
|
|
30
|
+
const { id: C, displayName: p, url: m, isPrivate: c } = i, S = {
|
|
31
31
|
fileId: C,
|
|
32
|
-
displayName:
|
|
33
|
-
url: c ? void 0 :
|
|
34
|
-
fileType:
|
|
32
|
+
displayName: p || o.name,
|
|
33
|
+
url: c ? void 0 : m,
|
|
34
|
+
fileType: o.type || "application/octet-stream"
|
|
35
35
|
};
|
|
36
36
|
return s({
|
|
37
|
-
file:
|
|
38
|
-
uploadedFile:
|
|
39
|
-
}),
|
|
37
|
+
file: o,
|
|
38
|
+
uploadedFile: S
|
|
39
|
+
}), S;
|
|
40
40
|
}).catch((i) => {
|
|
41
|
-
d(i,
|
|
41
|
+
d(i, o);
|
|
42
42
|
}));
|
|
43
|
-
return (await Promise.all(E)).filter((
|
|
43
|
+
return (await Promise.all(E)).filter((o) => o !== void 0);
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
|
-
function We({ valueSliderLimit: e, value: n, explanationText:
|
|
47
|
-
const [
|
|
46
|
+
function We({ valueSliderLimit: e, value: n, explanationText: r, target: l, onChange: s, uploadFileFormats: d, onBlur: E, onFilesCleared: x }) {
|
|
47
|
+
const [o, i] = Y(Je(n)), [C, p] = Y(n || []), [m, c] = Y(), S = Ye(l), { t: v } = re(), g = ve().includes(Ne.BUTTONS_HOVER), { setFormStatus: B } = De(), I = k(!1), y = k(s);
|
|
48
48
|
y.current = s;
|
|
49
|
-
const N = fe(() =>
|
|
50
|
-
|
|
49
|
+
const N = fe(() => o.some((f) => f.state === "uploading"), [
|
|
50
|
+
o
|
|
51
51
|
]);
|
|
52
52
|
ne(() => {
|
|
53
53
|
I.current !== N && (I.current = N, B(l, N ? ie.BUSY : ie.READY));
|
|
@@ -57,31 +57,31 @@ function We({ valueSliderLimit: e, value: n, explanationText: o, target: l, onCh
|
|
|
57
57
|
l
|
|
58
58
|
]);
|
|
59
59
|
const u = M(() => {
|
|
60
|
-
if (!
|
|
60
|
+
if (!o.length)
|
|
61
61
|
return;
|
|
62
|
-
const h =
|
|
62
|
+
const h = o.filter((f) => f.state === "uploading").length;
|
|
63
63
|
if (h) {
|
|
64
|
-
const f =
|
|
64
|
+
const f = o.filter((F) => F.state === "uploaded" && F.file.size > 0).length, _ = f / (f + h);
|
|
65
65
|
return v("form.file-upload.uploading", {
|
|
66
66
|
count: Math.round(_ * 100)
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
return v("form.file-upload.explanation-text", {
|
|
70
|
-
count:
|
|
70
|
+
count: o.length
|
|
71
71
|
});
|
|
72
72
|
}, [
|
|
73
|
-
|
|
73
|
+
o,
|
|
74
74
|
v
|
|
75
|
-
]), R = M(() =>
|
|
76
|
-
r,
|
|
75
|
+
]), R = M(() => o.length ? o.some((f) => f.state === "uploading") ? u() : r || u() : r, [
|
|
77
76
|
o,
|
|
77
|
+
r,
|
|
78
78
|
u
|
|
79
|
-
]),
|
|
80
|
-
await
|
|
79
|
+
]), T = M(async (h) => {
|
|
80
|
+
await S(h, ({ file: f, uploadedFile: _ }) => {
|
|
81
81
|
i((F) => F.map((b) => b.file === f ? {
|
|
82
82
|
file: f,
|
|
83
83
|
state: "uploaded"
|
|
84
|
-
} : b)),
|
|
84
|
+
} : b)), p((F) => {
|
|
85
85
|
var w;
|
|
86
86
|
const b = [
|
|
87
87
|
...F
|
|
@@ -96,44 +96,44 @@ function We({ valueSliderLimit: e, value: n, explanationText: o, target: l, onCh
|
|
|
96
96
|
} : b));
|
|
97
97
|
});
|
|
98
98
|
}, [
|
|
99
|
-
|
|
99
|
+
S,
|
|
100
100
|
v
|
|
101
101
|
]), K = async (h) => {
|
|
102
|
-
if (
|
|
103
|
-
if (
|
|
102
|
+
if (m && c(void 0), h) {
|
|
103
|
+
if (o.length + h.length > e) {
|
|
104
104
|
c(v("form.file-upload.error.upload-limit", {
|
|
105
105
|
limit: e
|
|
106
106
|
}));
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
|
-
const F = Array.from(h).reduce((b, w) => (
|
|
109
|
+
const F = Array.from(h).reduce((b, w) => (o.some((H) => H.file.name === w.name) || b.push({
|
|
110
110
|
file: w,
|
|
111
111
|
state: "uploading"
|
|
112
112
|
}), b), []);
|
|
113
113
|
i([
|
|
114
|
-
...
|
|
114
|
+
...o,
|
|
115
115
|
...F
|
|
116
|
-
]), await
|
|
116
|
+
]), await T(F);
|
|
117
117
|
}
|
|
118
118
|
}, U = (h) => {
|
|
119
|
-
const f =
|
|
119
|
+
const f = o[h];
|
|
120
120
|
if (C && s && f.state !== "error") {
|
|
121
121
|
const _ = C.filter((b) => b.displayName !== f.file.name);
|
|
122
|
-
s(_),
|
|
123
|
-
const F =
|
|
122
|
+
s(_), p(_);
|
|
123
|
+
const F = o.filter((b) => b.file.name !== f.file.name);
|
|
124
124
|
i(F), F.length === 0 && x();
|
|
125
125
|
} else {
|
|
126
|
-
const _ =
|
|
126
|
+
const _ = o.filter((F) => F !== f);
|
|
127
127
|
i(_), _.length === 0 && x();
|
|
128
128
|
}
|
|
129
129
|
}, j = () => {
|
|
130
|
-
|
|
130
|
+
m && c(void 0), E();
|
|
131
131
|
}, J = d.map((h) => $e[h]).join(), X = M(() => {
|
|
132
|
-
i([]),
|
|
132
|
+
i([]), p([]);
|
|
133
133
|
}, []);
|
|
134
|
-
return
|
|
135
|
-
files:
|
|
136
|
-
limitError:
|
|
134
|
+
return Se(X), {
|
|
135
|
+
files: o,
|
|
136
|
+
limitError: m,
|
|
137
137
|
hover: g,
|
|
138
138
|
getExplanationText: R,
|
|
139
139
|
getStatusText: u,
|
|
@@ -146,135 +146,135 @@ function We({ valueSliderLimit: e, value: n, explanationText: o, target: l, onCh
|
|
|
146
146
|
function Je(e = []) {
|
|
147
147
|
const n = e || [];
|
|
148
148
|
try {
|
|
149
|
-
return n.map((
|
|
149
|
+
return n.map((r) => ({
|
|
150
150
|
file: new File([
|
|
151
151
|
new Int8Array(0)
|
|
152
|
-
],
|
|
153
|
-
type:
|
|
152
|
+
], r.displayName, {
|
|
153
|
+
type: r.fileType
|
|
154
154
|
}),
|
|
155
155
|
state: "uploaded"
|
|
156
156
|
}));
|
|
157
|
-
} catch (
|
|
158
|
-
console.error(
|
|
157
|
+
} catch (r) {
|
|
158
|
+
console.error(r);
|
|
159
159
|
}
|
|
160
160
|
return [];
|
|
161
161
|
}
|
|
162
162
|
const be = /* @__PURE__ */ he(void 0);
|
|
163
|
-
function
|
|
163
|
+
function q() {
|
|
164
164
|
const e = _e(be);
|
|
165
165
|
if (typeof e > "u")
|
|
166
166
|
throw new Error("FileUpload components must be used within FileUpload");
|
|
167
167
|
return e;
|
|
168
168
|
}
|
|
169
|
-
const
|
|
170
|
-
const { ariaDescribedBy:
|
|
169
|
+
const z = ({ children: e, className: n }) => {
|
|
170
|
+
const { ariaDescribedBy: r } = Ee(), { disabled: l, hasError: s } = V(), { handleFileChange: d, limitReached: E } = q();
|
|
171
171
|
if (E)
|
|
172
172
|
return null;
|
|
173
|
-
const x = L(e,
|
|
173
|
+
const x = L(e, z.Title), o = L(e, z.Subtitle), i = L(e, z.Button);
|
|
174
174
|
return /* @__PURE__ */ t.createElement(Ue, {
|
|
175
|
-
"aria-describedby":
|
|
175
|
+
"aria-describedby": r,
|
|
176
176
|
className: n,
|
|
177
177
|
"data-invalid": s,
|
|
178
178
|
isDisabled: l,
|
|
179
179
|
onDrop: async (C) => {
|
|
180
|
-
const
|
|
181
|
-
for (const
|
|
182
|
-
if (
|
|
183
|
-
const c = await
|
|
184
|
-
c &&
|
|
180
|
+
const p = [];
|
|
181
|
+
for (const m of C.items)
|
|
182
|
+
if (m.kind === "file") {
|
|
183
|
+
const c = await m.getFile();
|
|
184
|
+
c && p.push(c);
|
|
185
185
|
}
|
|
186
|
-
if (
|
|
187
|
-
const
|
|
188
|
-
|
|
186
|
+
if (p.length > 0) {
|
|
187
|
+
const m = new DataTransfer();
|
|
188
|
+
p.forEach((c) => m.items.add(c)), d(m.files);
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
}, /* @__PURE__ */ t.createElement(we, {
|
|
192
192
|
slot: "label"
|
|
193
|
-
}, x,
|
|
193
|
+
}, x, o), i);
|
|
194
194
|
}, Qe = ({ className: e, children: n }) => {
|
|
195
|
-
const { limitReached:
|
|
195
|
+
const { limitReached: r } = q();
|
|
196
196
|
return /* @__PURE__ */ t.createElement("p", {
|
|
197
197
|
className: e
|
|
198
198
|
}, n({
|
|
199
|
-
limitReached:
|
|
199
|
+
limitReached: r
|
|
200
200
|
}));
|
|
201
201
|
}, Ge = ({ className: e, children: n }) => {
|
|
202
|
-
const { limitReached:
|
|
202
|
+
const { limitReached: r } = q(), { explanationText: l } = V();
|
|
203
203
|
return /* @__PURE__ */ t.createElement("p", {
|
|
204
204
|
className: e
|
|
205
205
|
}, l || n({
|
|
206
|
-
limitReached:
|
|
206
|
+
limitReached: r
|
|
207
207
|
}));
|
|
208
|
-
},
|
|
209
|
-
const { ariaDescribedBy: E, inputId: x, labelId:
|
|
208
|
+
}, oe = ({ className: e, children: n, "aria-roledescription": r, onHoverStart: l, onHoverEnd: s, onFocusChange: d }) => {
|
|
209
|
+
const { ariaDescribedBy: E, inputId: x, labelId: o, errorId: i } = Ee(), { disabled: C, required: p, onFocus: m, hasError: c, errorMessage: S } = V(), { handleFileChange: v, accept: O, multiple: g, buttonRef: B, handleBlur: I, limitError: y, files: N } = q(), u = (N == null ? void 0 : N.some((T) => T.errorMessage)) ?? !1, R = !!(c || S || y || u);
|
|
210
210
|
return /* @__PURE__ */ t.createElement(He, {
|
|
211
211
|
acceptedFileTypes: O ? O.split(",") : void 0,
|
|
212
212
|
allowsMultiple: g,
|
|
213
|
-
onSelect: (
|
|
214
|
-
if (
|
|
215
|
-
const K = Array.from(
|
|
213
|
+
onSelect: (T) => {
|
|
214
|
+
if (T) {
|
|
215
|
+
const K = Array.from(T), U = new DataTransfer();
|
|
216
216
|
K.forEach((j) => U.items.add(j)), v(U.files);
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
}, /* @__PURE__ */ t.createElement(Fe, {
|
|
220
220
|
ref: B,
|
|
221
221
|
id: x,
|
|
222
|
-
"aria-labelledby":
|
|
222
|
+
"aria-labelledby": o,
|
|
223
223
|
"aria-describedby": [
|
|
224
224
|
E,
|
|
225
225
|
i
|
|
226
226
|
].filter(Boolean).join(" "),
|
|
227
|
-
render: (
|
|
228
|
-
...
|
|
229
|
-
"aria-roledescription":
|
|
227
|
+
render: (T) => /* @__PURE__ */ t.createElement("button", {
|
|
228
|
+
...T,
|
|
229
|
+
"aria-roledescription": r,
|
|
230
230
|
"aria-invalid": R || void 0,
|
|
231
|
-
"aria-required":
|
|
231
|
+
"aria-required": p
|
|
232
232
|
}),
|
|
233
233
|
isDisabled: C,
|
|
234
234
|
className: e,
|
|
235
|
-
onFocus:
|
|
235
|
+
onFocus: m,
|
|
236
236
|
onBlur: I,
|
|
237
237
|
onHoverStart: l,
|
|
238
238
|
onHoverEnd: s,
|
|
239
239
|
onFocusChange: d
|
|
240
240
|
}, n));
|
|
241
241
|
}, Xe = ({ className: e }) => {
|
|
242
|
-
const { buttonText: n } =
|
|
242
|
+
const { buttonText: n } = V();
|
|
243
243
|
return /* @__PURE__ */ t.createElement("span", {
|
|
244
244
|
className: e
|
|
245
245
|
}, n);
|
|
246
246
|
};
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
const A = ({ children: e, className: n, ...
|
|
252
|
-
const { file: l, index: s } =
|
|
247
|
+
oe.Text = Xe;
|
|
248
|
+
z.Title = Qe;
|
|
249
|
+
z.Subtitle = Ge;
|
|
250
|
+
z.Button = oe;
|
|
251
|
+
const A = ({ children: e, className: n, ...r }) => {
|
|
252
|
+
const { file: l, index: s } = r, d = l.file.name, E = L(e, A.Name), x = L(e, A.Remove), o = L(e, A.Spinner), i = L(e, A.Error);
|
|
253
253
|
return /* @__PURE__ */ t.createElement("div", {
|
|
254
254
|
className: n
|
|
255
255
|
}, W(E, {
|
|
256
256
|
fileName: d
|
|
257
|
-
}), l.state === "uploading" ?
|
|
257
|
+
}), l.state === "uploading" ? o : W(x, {
|
|
258
258
|
index: s,
|
|
259
259
|
fileName: d
|
|
260
260
|
}), l.errorMessage && W(i, {
|
|
261
261
|
errorMessage: l.errorMessage
|
|
262
262
|
}));
|
|
263
263
|
}, et = ({ className: e, ...n }) => {
|
|
264
|
-
const { fileName:
|
|
264
|
+
const { fileName: r } = n;
|
|
265
265
|
return /* @__PURE__ */ t.createElement("span", {
|
|
266
266
|
className: e
|
|
267
|
-
},
|
|
268
|
-
}, tt = ({ className: e, "aria-label": n, children:
|
|
269
|
-
const { fileName: s, index: d } = l, { disabled: E } =
|
|
267
|
+
}, r);
|
|
268
|
+
}, tt = ({ className: e, "aria-label": n, children: r, ...l }) => {
|
|
269
|
+
const { fileName: s, index: d } = l, { disabled: E } = V(), { handleDelete: x, fileRemoveButtonRefs: o } = q(), i = k(null);
|
|
270
270
|
ne(() => {
|
|
271
|
-
const
|
|
272
|
-
return m
|
|
273
|
-
m
|
|
271
|
+
const p = o.current, m = s;
|
|
272
|
+
return p[m] = i, () => {
|
|
273
|
+
p[m] === i && (p[m] = void 0);
|
|
274
274
|
};
|
|
275
275
|
}, [
|
|
276
276
|
s,
|
|
277
|
-
|
|
277
|
+
o
|
|
278
278
|
]);
|
|
279
279
|
const C = () => {
|
|
280
280
|
x(d);
|
|
@@ -287,30 +287,30 @@ const A = ({ children: e, className: n, ...o }) => {
|
|
|
287
287
|
onClick: C,
|
|
288
288
|
className: e,
|
|
289
289
|
isDisabled: E
|
|
290
|
-
},
|
|
291
|
-
}, ge = ({ className: e, children: n, ...
|
|
292
|
-
const { errorMessage: l } =
|
|
293
|
-
return l ? /* @__PURE__ */ t.createElement(
|
|
290
|
+
}, r);
|
|
291
|
+
}, ge = ({ className: e, children: n, ...r }) => {
|
|
292
|
+
const { errorMessage: l } = r;
|
|
293
|
+
return l ? /* @__PURE__ */ t.createElement(Ve, {
|
|
294
294
|
value: l
|
|
295
295
|
}, /* @__PURE__ */ t.createElement("div", {
|
|
296
296
|
className: e,
|
|
297
297
|
role: "alert"
|
|
298
298
|
}, n)) : null;
|
|
299
|
-
}, nt = ({ className: e, "aria-label": n, children:
|
|
299
|
+
}, nt = ({ className: e, "aria-label": n, children: r }) => /* @__PURE__ */ t.createElement(Pe, {
|
|
300
300
|
"aria-label": n,
|
|
301
301
|
className: e,
|
|
302
302
|
isIndeterminate: !0
|
|
303
|
-
},
|
|
303
|
+
}, r);
|
|
304
304
|
A.Name = et;
|
|
305
305
|
A.Remove = tt;
|
|
306
306
|
A.Spinner = nt;
|
|
307
307
|
A.Error = ge;
|
|
308
|
-
ge.Text =
|
|
308
|
+
ge.Text = ze;
|
|
309
309
|
const le = ({ children: e, className: n }) => {
|
|
310
|
-
const { files:
|
|
311
|
-
return !
|
|
310
|
+
const { files: r } = q(), l = L(e, le.File);
|
|
311
|
+
return !r || r.length === 0 ? null : /* @__PURE__ */ t.createElement("div", {
|
|
312
312
|
className: n
|
|
313
|
-
},
|
|
313
|
+
}, r.map((s, d) => W(l, {
|
|
314
314
|
key: s.file.name || d,
|
|
315
315
|
file: s,
|
|
316
316
|
index: d
|
|
@@ -318,12 +318,12 @@ const le = ({ children: e, className: n }) => {
|
|
|
318
318
|
};
|
|
319
319
|
le.File = A;
|
|
320
320
|
const G = (e) => e.file.name, a = ({ children: e }) => {
|
|
321
|
-
const { t: n } =
|
|
321
|
+
const { t: n } = re(), { id: r, value: l, onChange: s, uploadFileFormats: d, valueSliderLimit: E, target: x, explanationText: o, onBlur: i, hasError: C, errorMessage: p, FieldLayout: m } = V(), c = k(null), S = k({}), v = k(!1), O = M(() => {
|
|
322
322
|
c.current ? c.current.focus() : v.current = !0;
|
|
323
|
-
}, []), { files: g, limitError: B, hover: I, getExplanationText: y, getStatusText: N, handleBlur: u, handleChange: R, handleDelete:
|
|
323
|
+
}, []), { files: g, limitError: B, hover: I, getExplanationText: y, getStatusText: N, handleBlur: u, handleChange: R, handleDelete: T, accept: K } = We({
|
|
324
324
|
valueSliderLimit: E,
|
|
325
325
|
value: l,
|
|
326
|
-
explanationText:
|
|
326
|
+
explanationText: o,
|
|
327
327
|
target: x,
|
|
328
328
|
onChange: s,
|
|
329
329
|
uploadFileFormats: d,
|
|
@@ -332,9 +332,9 @@ const G = (e) => e.file.name, a = ({ children: e }) => {
|
|
|
332
332
|
}), U = M((H) => {
|
|
333
333
|
var se;
|
|
334
334
|
const Q = g[H], P = G(Q);
|
|
335
|
-
g.length > 1 && ((se = (g.filter((ee) => G(ee) !== P).map((ee) =>
|
|
335
|
+
g.length > 1 && ((se = (g.filter((ee) => G(ee) !== P).map((ee) => S.current[G(ee)]).find(Boolean) ?? c).current) == null || se.focus()), T(H);
|
|
336
336
|
}, [
|
|
337
|
-
|
|
337
|
+
T,
|
|
338
338
|
g
|
|
339
339
|
]);
|
|
340
340
|
ne(() => {
|
|
@@ -355,7 +355,7 @@ const G = (e) => e.file.name, a = ({ children: e }) => {
|
|
|
355
355
|
hover: I,
|
|
356
356
|
limitError: B,
|
|
357
357
|
buttonRef: c,
|
|
358
|
-
fileRemoveButtonRefs:
|
|
358
|
+
fileRemoveButtonRefs: S
|
|
359
359
|
}), [
|
|
360
360
|
R,
|
|
361
361
|
u,
|
|
@@ -369,22 +369,26 @@ const G = (e) => e.file.name, a = ({ children: e }) => {
|
|
|
369
369
|
I,
|
|
370
370
|
B
|
|
371
371
|
]), h = L(e, a.Label), f = L(e, a.DropZone), _ = L(e, a.Button), F = L(e, a.Explanation), b = L(e, a.Files), w = L(e, a.Description), ae = L(e, a.Error);
|
|
372
|
-
return
|
|
372
|
+
return Te(() => {
|
|
373
373
|
var H, Q;
|
|
374
374
|
if (c.current) {
|
|
375
|
-
c.current.focus(
|
|
375
|
+
c.current.focus({
|
|
376
|
+
preventScroll: !0
|
|
377
|
+
});
|
|
376
378
|
return;
|
|
377
379
|
}
|
|
378
|
-
(Q = (H = g.map((P) =>
|
|
379
|
-
|
|
380
|
+
(Q = (H = g.map((P) => S.current[G(P)]).find((P) => P == null ? void 0 : P.current)) == null ? void 0 : H.current) == null || Q.focus({
|
|
381
|
+
preventScroll: !0
|
|
382
|
+
});
|
|
383
|
+
}, r), /* @__PURE__ */ t.createElement(be.Provider, {
|
|
380
384
|
value: X
|
|
381
|
-
}, /* @__PURE__ */ t.createElement(
|
|
382
|
-
fieldId:
|
|
385
|
+
}, /* @__PURE__ */ t.createElement(m, {
|
|
386
|
+
fieldId: r,
|
|
383
387
|
renderLabel: () => h,
|
|
384
388
|
renderInput: () => f ?? _,
|
|
385
389
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, W(ae, {
|
|
386
390
|
hasError: !!(C || B),
|
|
387
|
-
errorMessage: B ??
|
|
391
|
+
errorMessage: B ?? p
|
|
388
392
|
}), /* @__PURE__ */ t.createElement(ke, {
|
|
389
393
|
role: "status",
|
|
390
394
|
"aria-live": "polite",
|
|
@@ -393,20 +397,20 @@ const G = (e) => e.file.name, a = ({ children: e }) => {
|
|
|
393
397
|
count: g.length
|
|
394
398
|
})), F, b, w)
|
|
395
399
|
}));
|
|
396
|
-
},
|
|
397
|
-
const { files:
|
|
398
|
-
return
|
|
400
|
+
}, rt = ({ className: e, showUploadStatusOnly: n }) => {
|
|
401
|
+
const { files: r, getExplanationText: l, getStatusText: s } = q(), d = n ? s() : l();
|
|
402
|
+
return r.length === 1 || !d ? null : /* @__PURE__ */ t.createElement("p", {
|
|
399
403
|
className: e
|
|
400
404
|
}, d);
|
|
401
405
|
};
|
|
402
406
|
a.Label = je;
|
|
403
|
-
a.DropZone =
|
|
404
|
-
a.Button =
|
|
405
|
-
a.Explanation =
|
|
407
|
+
a.DropZone = z;
|
|
408
|
+
a.Button = oe;
|
|
409
|
+
a.Explanation = rt;
|
|
406
410
|
a.Files = le;
|
|
407
|
-
a.Description =
|
|
411
|
+
a.Description = qe;
|
|
408
412
|
a.Error = Ke;
|
|
409
|
-
const
|
|
413
|
+
const ot = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
410
414
|
viewBox: "0 0 24 24",
|
|
411
415
|
width: 24,
|
|
412
416
|
height: 24,
|
|
@@ -465,13 +469,13 @@ const rt = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
465
469
|
values: "0;360",
|
|
466
470
|
repeatCount: "indefinite"
|
|
467
471
|
})));
|
|
468
|
-
}, it = "
|
|
472
|
+
}, it = "_dropZone_8sprf_1", ct = "_dropZoneHover_8sprf_27", ut = "_dropZoneTitle_8sprf_69", dt = "_dropZoneSubtitle_8sprf_74", pt = "_button_8sprf_78", mt = "_buttonHover_8sprf_131", ft = "_explanation_8sprf_148", Et = "_files_8sprf_152", Ft = "_file_8sprf_152", bt = "_fileName_8sprf_202", gt = "_buttonLabel_8sprf_210", ht = "_removeButton_8sprf_214", _t = "_spinner_8sprf_261", Lt = "_fileError_8sprf_277", D = {
|
|
469
473
|
dropZone: it,
|
|
470
474
|
dropZoneHover: ct,
|
|
471
475
|
dropZoneTitle: ut,
|
|
472
476
|
dropZoneSubtitle: dt,
|
|
473
|
-
button:
|
|
474
|
-
buttonHover:
|
|
477
|
+
button: pt,
|
|
478
|
+
buttonHover: mt,
|
|
475
479
|
explanation: ft,
|
|
476
480
|
files: Et,
|
|
477
481
|
file: Ft,
|
|
@@ -485,33 +489,33 @@ const rt = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
485
489
|
locale: n
|
|
486
490
|
}), Ct = () => {
|
|
487
491
|
var B, I, y, N;
|
|
488
|
-
const { t: e } =
|
|
492
|
+
const { t: e } = re(), { disabled: n, readOnly: r } = V(), l = !n && !r, s = me({
|
|
489
493
|
globalClasses: de,
|
|
490
494
|
moduleClasses: {
|
|
491
495
|
base: D.dropZone,
|
|
492
496
|
hover: D.dropZoneHover
|
|
493
497
|
}
|
|
494
|
-
}), d =
|
|
498
|
+
}), d = me({
|
|
495
499
|
globalClasses: Me,
|
|
496
500
|
moduleClasses: {
|
|
497
501
|
base: D.button,
|
|
498
502
|
hover: D.buttonHover
|
|
499
503
|
}
|
|
500
|
-
}), E = (N = (y = (I = (B = Be().fileUpload) == null ? void 0 : B.elementProps) == null ? void 0 : I.uploadButton) == null ? void 0 : y.elementProps) == null ? void 0 : N.icon, { wix: x, className:
|
|
504
|
+
}), E = (N = (y = (I = (B = Be().fileUpload) == null ? void 0 : B.elementProps) == null ? void 0 : I.uploadButton) == null ? void 0 : y.elementProps) == null ? void 0 : N.icon, { wix: x, className: o, ...i } = E ?? {}, C = ye(te.FILE_UPLOAD, te.UPLOAD_BUTTON, te.UPLOAD_BUTTON_LABEL), p = k(null), [m, c] = Y(!1), [S, v] = Y(!1), O = M(() => {
|
|
501
505
|
var u;
|
|
502
|
-
c(!0), (u =
|
|
506
|
+
c(!0), (u = p.current) == null || u.runAnimationForward();
|
|
503
507
|
}, []), g = M(() => {
|
|
504
508
|
var u;
|
|
505
|
-
c(!1), (u =
|
|
509
|
+
c(!1), (u = p.current) == null || u.runAnimationBackward();
|
|
506
510
|
}, []);
|
|
507
511
|
return /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(a.Label, {
|
|
508
512
|
className: Z(Ie, $.label)
|
|
509
513
|
}, /* @__PURE__ */ t.createElement(a.Label.Required, {
|
|
510
514
|
className: Z(Re, $.requiredMark)
|
|
511
515
|
})), /* @__PURE__ */ t.createElement(a.DropZone, {
|
|
512
|
-
className: ({ isHovered: u, isFocused: R, isDropTarget:
|
|
516
|
+
className: ({ isHovered: u, isFocused: R, isDropTarget: T }) => s({
|
|
513
517
|
isSelected: !1,
|
|
514
|
-
isHovered: u ||
|
|
518
|
+
isHovered: u || T,
|
|
515
519
|
isFocused: R,
|
|
516
520
|
isInteractive: l
|
|
517
521
|
})
|
|
@@ -532,11 +536,11 @@ const rt = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
532
536
|
onFocusChange: v
|
|
533
537
|
}, i.svg ? /* @__PURE__ */ t.createElement(Le, {
|
|
534
538
|
...i,
|
|
535
|
-
ref:
|
|
536
|
-
className: Z(Ze, Ae,
|
|
537
|
-
}) : E ? null : /* @__PURE__ */ t.createElement(
|
|
539
|
+
ref: p,
|
|
540
|
+
className: Z(Ze, Ae, o)
|
|
541
|
+
}) : E ? null : /* @__PURE__ */ t.createElement(ot, null), /* @__PURE__ */ t.createElement(a.DropZone.Button.Text, {
|
|
538
542
|
className: Z(ce.base, D.buttonLabel, C, {
|
|
539
|
-
[ce.hover]: l && (
|
|
543
|
+
[ce.hover]: l && (m || S)
|
|
540
544
|
})
|
|
541
545
|
}))), /* @__PURE__ */ t.createElement(a.Explanation, {
|
|
542
546
|
className: Z(ue, $.description, D.explanation),
|
|
@@ -554,11 +558,11 @@ const rt = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
554
558
|
className: D.removeButton,
|
|
555
559
|
"aria-label": e("file-upload.delete-file.aria-label")
|
|
556
560
|
}, /* @__PURE__ */ t.createElement(at, null)), /* @__PURE__ */ t.createElement(a.Files.File.Error, {
|
|
557
|
-
className: Z(
|
|
561
|
+
className: Z(pe, $.error, D.fileError)
|
|
558
562
|
}, /* @__PURE__ */ t.createElement(lt, null), /* @__PURE__ */ t.createElement(a.Files.File.Error.Text, null)))), /* @__PURE__ */ t.createElement(a.Description, {
|
|
559
563
|
className: Z(ue, $.description)
|
|
560
564
|
}, xt), /* @__PURE__ */ t.createElement(a.Error, {
|
|
561
|
-
className: Z(
|
|
565
|
+
className: Z(pe, $.error)
|
|
562
566
|
}, /* @__PURE__ */ t.createElement(Oe, null), /* @__PURE__ */ t.createElement(a.Error.Text, null)));
|
|
563
567
|
}, Ut = () => /* @__PURE__ */ t.createElement(Ct, null);
|
|
564
568
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import t, { useMemo as _ } from "react";
|
|
2
2
|
import { RicosViewer as A } from "@wix/ricos/viewer";
|
|
3
3
|
import u from "classnames";
|
|
4
|
-
import { bo as C, bg as I, bl as P, S, M as x, v as N } from "./form-
|
|
4
|
+
import { bo as C, bg as I, bl as P, S, M as x, v as N } from "./form-DbRjIc40.js";
|
|
5
5
|
import { f as c, a as R } from "./find-child-C60k4CxG.js";
|
|
6
6
|
import { f as O } from "./format-currency-BwShJ9vM.js";
|
|
7
|
-
import { D as v, E as M } from "./field-error-headless-
|
|
8
|
-
import { L as g } from "./field-label-headless-
|
|
9
|
-
import { s as F } from "./field-rac.module-
|
|
7
|
+
import { D as v, E as M } from "./field-error-headless-sUpR20_V.js";
|
|
8
|
+
import { L as g } from "./field-label-headless-xEHyxl62.js";
|
|
9
|
+
import { s as F } from "./field-rac.module-DP0lkkEv.js";
|
|
10
10
|
const e = ({ children: r }) => {
|
|
11
11
|
var p;
|
|
12
12
|
const { id: a, validation: n, FieldLayout: l } = C(), { currency: o, regionalFormat: m } = I(), s = _(() => {
|