@wix/form-elements 1.94.0 → 1.96.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-CNIizm60.js → appointment-rac-BKgRKq3j.js} +309 -310
- package/dist/component/{bookings-address-rac-C7ukrF1D.js → bookings-address-rac-C87x19gw.js} +1 -1
- package/dist/component/{bookings-email-rac-DnzbLEmf.js → bookings-email-rac-f4nuC_pb.js} +1 -1
- package/dist/component/{bookings-first-name-rac-8Krm-3QK.js → bookings-first-name-rac-BGmuAmbu.js} +1 -1
- package/dist/component/{bookings-header-rac-WRILbKeE.js → bookings-header-rac-CoyxHljp.js} +1 -1
- package/dist/component/{bookings-last-name-rac-C0-yWBLa.js → bookings-last-name-rac-D2mBYwcR.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-Bc9u_rn_.js → bookings-login-bar-rac-BH2Mi6TR.js} +4 -4
- package/dist/component/{bookings-phone-rac-BaBlg7f7.js → bookings-phone-rac-Dz78ybFV.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DR-Ngu_b.js → bookings-rich-text-rac-8_h0cOoy.js} +1 -1
- package/dist/component/{get-first-day-of-the-week-DvnsxYhQ.js → calendar.module-DnhTT4QT.js} +23 -18
- package/dist/component/{checkbox-field-rac-Cqr57TgJ.js → checkbox-field-rac-CJnegjvL.js} +5 -5
- package/dist/component/{checkbox-group-field-headless-Bgcvavr3.js → checkbox-group-field-headless-CrA7Gx2Y.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-Bcsowjwp.js → checkbox-group-field-rac-DMg75l5Q.js} +12 -12
- package/dist/component/{checkbox-group-rac-38j0b8_U.js → checkbox-group-rac-C9XWlO5D.js} +1 -1
- package/dist/component/{checkbox-rac-Bb5ZxZo7.js → checkbox-rac-CrqhH4z9.js} +1 -1
- package/dist/component/{contacts-address-rac-gaOhfztb.js → contacts-address-rac-C2mqTiPg.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DAIPR64p.js → contacts-birthdate-rac-i7_RMona.js} +1 -1
- package/dist/component/{contacts-company-rac-DVPQrcfN.js → contacts-company-rac-7sdIosaG.js} +1 -1
- package/dist/component/{contacts-email-rac-qMyFjz_2.js → contacts-email-rac-CrsksJ9G.js} +1 -1
- package/dist/component/{contacts-first-name-rac-OVPtHcde.js → contacts-first-name-rac-I5xIYxgD.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BmLQrJ2D.js → contacts-last-name-rac-DnzJYJh7.js} +1 -1
- package/dist/component/{contacts-phone-rac-D7waZc1q.js → contacts-phone-rac-Cx1jpYmv.js} +1 -1
- package/dist/component/{contacts-position-rac-DnI3o3Am.js → contacts-position-rac-CxddG_cE.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-P8zn8_GS.js → contacts-subscribe-rac-C1nTAhnd.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-9CBr2KkR.js → contacts-tax-id-rac-B1lzfrj_.js} +1 -1
- package/dist/component/{date-availability--ntpBDiI.js → date-availability-LN33GU7O.js} +1 -1
- package/dist/component/{date-input-field-rac-Don2tz5U.js → date-input-field-rac-zTcw6Mxx.js} +57 -56
- package/dist/component/{date-input-rac-Du3e8Hcu.js → date-input-rac-NfVbrcoO.js} +1 -1
- package/dist/component/date-picker-field-rac-Cc9hJloJ.js +317 -0
- package/dist/component/{date-picker-rac-BsCMkfHV.js → date-picker-rac-C5iXyKdf.js} +1 -1
- package/dist/component/{date-time-input-field-rac-LLF1UdUD.js → date-time-input-field-rac-Cp34u7cC.js} +53 -52
- package/dist/component/{date-time-input-rac-KYqrNgbb.js → date-time-input-rac-CfFd56Xf.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DaOY9Cb6.js → dext-checkbox-group-rac-BVx7XXwR.js} +2 -2
- package/dist/component/{dext-checkbox-rac-Ceu5q9xf.js → dext-checkbox-rac-CmUOLx_w.js} +1 -1
- package/dist/component/{dext-date-picker-rac-iop0XEpQ.js → dext-date-picker-rac-XDrLGVTQ.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DJB_fMiN.js → dext-date-time-input-rac-ZLCq_taK.js} +1 -1
- package/dist/component/{dext-dropdown-rac-Dhp4CUZ5.js → dext-dropdown-rac-C74zBq3M.js} +1 -1
- package/dist/component/{dext-email-rac-BIr9RxhQ.js → dext-email-rac-CqS9HcdY.js} +1 -1
- package/dist/component/{dext-number-input-rac-Q8p3NeKN.js → dext-number-input-rac-DszjJDT-.js} +1 -1
- package/dist/component/{dext-phone-rac-DRdRLIvr.js → dext-phone-rac-wt7T8hpM.js} +1 -1
- package/dist/component/{dext-radio-group-rac-D1N_wBhO.js → dext-radio-group-rac-BvRnaWP0.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BQIMl7oQ.js → dext-rating-input-rac-D1Lt9M3c.js} +1 -1
- package/dist/component/{dext-tags-rac-C52jiu1I.js → dext-tags-rac-70YO5CJH.js} +2 -2
- package/dist/component/{dext-text-area-rac-BWmSs4mb.js → dext-text-area-rac-CC5RCvWh.js} +1 -1
- package/dist/component/{dext-text-input-rac-BnAJ-7Hs.js → dext-text-input-rac-s487DzPW.js} +1 -1
- package/dist/component/{dext-url-input-rac-CvGn3KHo.js → dext-url-input-rac-DEKwUh2a.js} +1 -1
- package/dist/component/{donation-rac-DsFRs16V.js → donation-rac-C2bCFVHP.js} +30 -30
- package/dist/component/{dropdown-field-headless-K0AM4AAs.js → dropdown-field-headless-BMWwkydq.js} +4 -4
- package/dist/component/{dropdown-field-rac-CMEB8ZQN.js → dropdown-field-rac-Cw5Cbpg0.js} +5 -5
- package/dist/component/{dropdown-rac-BakYShkm.js → dropdown-rac-CEmlDY3w.js} +1 -1
- package/dist/component/{ecom-address-rac-A_Aj5CX0.js → ecom-address-rac-Dv6asnf_.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-Ddol0N03.js → ecom-subscription-checkbox-rac-DOwH-Ebd.js} +3 -3
- package/dist/component/{email-input-field-rac-B7yOMDWB.js → email-input-field-rac-CeFXPibq.js} +41 -41
- package/dist/component/events-repeater-rac-BUk5Qc8n.js +267 -0
- package/dist/component/{events-rsvp-rac-DfjqTM7C.js → events-rsvp-rac-CtFkVzUy.js} +20 -20
- package/dist/component/{field-error-headless-CONyKitA.js → field-error-headless-B6x_cVEi.js} +1 -1
- package/dist/component/{field-label-headless-tf9QXhMi.js → field-label-headless-BibCD8xx.js} +1 -1
- package/dist/component/{file-upload-rac-Bng5Yew9.js → file-upload-rac-BUcktluW.js} +43 -43
- package/dist/component/{fixed-payment-rac-CXIv7_Oj.js → fixed-payment-rac-BMSBSo5c.js} +10 -10
- package/dist/component/{form-Lv-a47BN.js → form-9WmwgGNc.js} +1120 -1108
- package/dist/component/{form-element-classes-CLZXu-91.js → form-element-classes-BtKlobUX.js} +60 -59
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BZdYszfP.js → header-field-rac-CxUuHOic.js} +3 -3
- package/dist/component/{header-rac-BNeqoDyT.js → header-rac-DejI69X7.js} +1 -1
- package/dist/component/{image-choice-rac-aSKDRo51.js → image-choice-rac-BjI5a_co.js} +15 -15
- package/dist/component/{index-DnNA6zNR.js → index-Csso-2QH.js} +2 -2
- package/dist/component/{index-CWZfskEy.js → index-Dz2hV2_S.js} +4 -4
- package/dist/component/{isObjectLike-C9ogbjhq.js → isObjectLike-BN_BZMhy.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CHE1mE_b.js → multiline-address-field-rac-CYfphmfr.js} +86 -85
- package/dist/component/{multiline-address-rac-wxJunvdU.js → multiline-address-rac-Ccujt2bd.js} +1 -1
- package/dist/component/{number-input-field-rac-ore1oi9q.js → number-input-field-rac-CfnRCRar.js} +18 -18
- package/dist/component/{number-input-rac-DU-rCrjJ.js → number-input-rac-DnTO9d8P.js} +1 -1
- package/dist/component/{password-rac-Dkqv0AIm.js → password-rac-Be_YSb-Q.js} +37 -37
- package/dist/component/{payment-input-rac-CsTcFhQ5.js → payment-input-rac-DXUf5iYb.js} +22 -22
- package/dist/component/{phone-input-field-rac-lIVKt7ge.js → phone-input-field-rac-DYAwLuvJ.js} +32 -31
- package/dist/component/{phone-rac-CZlsXHRM.js → phone-rac-BlsvDmER.js} +1 -1
- package/dist/component/{product-list-rac-UebyHfhC.js → product-list-rac-DdXwRSc2.js} +15 -15
- package/dist/component/{quiz-radio-group-rac-ORLTYxdR.js → quiz-radio-group-rac-B0yiKdbu.js} +2 -2
- package/dist/component/{radio-button-module-classes-CEQr0hKB.js → radio-button-module-classes-t1jsWYpT.js} +3 -3
- package/dist/component/{radio-group-field-rac-t_Dj1_4p.js → radio-group-field-rac-Cug1TtSq.js} +4 -4
- package/dist/component/{radio-group-rac-CC_35nq4.js → radio-group-rac-_O5T0Pt8.js} +1 -1
- package/dist/component/{rating-input-field-rac-BU66cRhy.js → rating-input-field-rac-BSKzQ3fq.js} +31 -31
- package/dist/component/{rating-input-rac-KgNbgchh.js → rating-input-rac-B71q44YO.js} +1 -1
- package/dist/component/{rich-content-rac.module-oGcFL-hl.js → rich-content-rac.module-BJuoKIOt.js} +1 -1
- package/dist/component/{rich-text-field-rac-CiwMiMv7.js → rich-text-field-rac-CiSR82Fw.js} +3 -3
- package/dist/component/{rich-text-rac-Dmp0xxpi.js → rich-text-rac-Bo6UBwOg.js} +1 -1
- package/dist/component/{service-dropdown-rac-_QBi8_AO.js → service-dropdown-rac-BJ7V-g8M.js} +35 -35
- package/dist/component/{services-multi-choice-rac-C2e3xL9O.js → services-multi-choice-rac-CtBcc9WH.js} +12 -12
- package/dist/component/{signature-rac-Dj3aYMvJ.js → signature-rac-yvrHr1he.js} +102 -102
- package/dist/component/{submit-button-rac-C-BVXga7.js → submit-button-rac-s-JdZgq7.js} +2 -2
- package/dist/component/{tags-field-rac-CcOUcsCd.js → tags-field-rac-g_W0RMod.js} +66 -66
- package/dist/component/{tags-rac-p68DA4Mq.js → tags-rac-DmvIH6HU.js} +1 -1
- package/dist/component/{text-area-field-rac-DubIcKTn.js → text-area-field-rac-Duja5xOA.js} +27 -27
- package/dist/component/{text-area-rac-CygfUB6z.js → text-area-rac-DzRxgG6u.js} +1 -1
- package/dist/component/{text-input-field-rac-C7JZRcCX.js → text-input-field-rac-C2eXeoBC.js} +7 -7
- package/dist/component/{text-input-headless-D1xcxxNE.js → text-input-headless-d1WK0nqR.js} +3 -3
- package/dist/component/{text-input-rac-C5lfqJCN.js → text-input-rac-DM9MnoQs.js} +1 -1
- package/dist/component/{time-input-rac-BNxceC-R.js → time-input-rac-CxVZ3USX.js} +25 -25
- package/dist/component/{url-input-field-rac-DH_STwmd.js → url-input-field-rac-4oVJMr1a.js} +19 -19
- package/dist/component/{url-input-rac-C2VOzCis.js → url-input-rac--T-FnskQ.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-BFHRYpVL.js +21 -0
- package/dist/component/{use-element-state-class-name-CITSBXT8.js → use-element-state-class-name-De5YnxMK.js} +1 -1
- package/dist/component/use-is-forced-open-dropdown-CWvcd9Ex.js +41 -0
- package/dist/component/{use-service-options-base-DVBmOiRh.js → use-service-options-base-CD1EVWRE.js} +1 -1
- package/dist/component/{use-text-input-class-name-COw61iUf.js → use-text-input-class-name-BYwXccvO.js} +3 -3
- package/package.json +4 -3
- package/dist/component/date-picker-field-rac-Wxmz-O7r.js +0 -304
- package/dist/component/events-repeater-rac-bp8gFHXQ.js +0 -256
- package/dist/component/use-dropdown-option-class-name-CKRu4ERM.js +0 -57
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import s, { useRef as W, useCallback as I, useState as K, useEffect as Q, useMemo as De, isValidElement as
|
|
2
|
-
import { RicosViewer as
|
|
1
|
+
import s, { useRef as W, useCallback as I, useState as K, useEffect as Q, useMemo as De, isValidElement as we } from "react";
|
|
2
|
+
import { RicosViewer as Re } from "@wix/ricos/viewer";
|
|
3
3
|
import v from "classnames";
|
|
4
|
-
import { useHover as ve, useFocusRing as
|
|
4
|
+
import { useHover as ve, useFocusRing as Se, mergeProps as xe } from "react-aria";
|
|
5
5
|
import { RadioGroup as Fe, Button as fe, TextField as Ae, Input as _e, RadioField as Pe, RadioButton as Ne } from "react-aria-components";
|
|
6
6
|
import he from "signature_pad";
|
|
7
|
-
import { G as Ue, ag as Oe, ac as Be, as as ge, E as ce, e as G, ak as A, ah as H, am as Ee, au as Me } from "./form-
|
|
8
|
-
import { f as
|
|
9
|
-
import { D as We, E as He } from "./field-error-headless-
|
|
10
|
-
import { L as Ye } from "./field-label-headless-
|
|
7
|
+
import { G as Ue, ag as Oe, ac as Be, as as ge, E as ce, e as G, ak as A, ah as H, am as Ee, au as Me } from "./form-9WmwgGNc.js";
|
|
8
|
+
import { f as C, a as F } from "./find-child-C60k4CxG.js";
|
|
9
|
+
import { D as We, E as He } from "./field-error-headless-B6x_cVEi.js";
|
|
10
|
+
import { L as Ye } from "./field-label-headless-BibCD8xx.js";
|
|
11
11
|
import { D as ke } from "./data-hooks-Dkw1pbRj.js";
|
|
12
12
|
import { E as $e } from "./error-icon-hZxQ6DEy.js";
|
|
13
|
-
import { s as
|
|
14
|
-
import {
|
|
13
|
+
import { s as V } from "./field-rac.module-DobpyqOd.js";
|
|
14
|
+
import { C as ue, S as Ve, B, a3 as ze, r as Ze, j as Xe } from "./form-element-classes-BtKlobUX.js";
|
|
15
15
|
const Ge = typeof s.useId == "function" ? s.useId : () => W(Ue()).current;
|
|
16
|
-
var
|
|
16
|
+
var w = /* @__PURE__ */ (function(e) {
|
|
17
17
|
return e.TEXT = "text/plain", e.POINTS = "points/json", e;
|
|
18
18
|
})({}), b = /* @__PURE__ */ (function(e) {
|
|
19
19
|
return e.DRAW = "draw", e.TYPE = "type", e.UPLOAD = "upload", e;
|
|
20
|
-
})({}),
|
|
20
|
+
})({}), x = /* @__PURE__ */ (function(e) {
|
|
21
21
|
return e.DRAW = "draw", e.TYPE = "type", e.IMAGE = "image", e.UPLOAD = "upload", e;
|
|
22
22
|
})({});
|
|
23
23
|
const qe = (e) => {
|
|
@@ -43,7 +43,7 @@ const qe = (e) => {
|
|
|
43
43
|
]);
|
|
44
44
|
};
|
|
45
45
|
function je(e) {
|
|
46
|
-
const a =
|
|
46
|
+
const a = z(1, 1).getContext("2d");
|
|
47
47
|
a.fillStyle = e, a.fillRect(0, 0, 1, 1);
|
|
48
48
|
const n = a.getImageData(0, 0, 1, 1);
|
|
49
49
|
return n.data[0] * 65536 + n.data[1] * 256 + n.data[2];
|
|
@@ -72,7 +72,7 @@ function J(e, t) {
|
|
|
72
72
|
const p = a.getImageData(l, d, h, E), L = document.createElement("canvas"), y = L.getContext("2d");
|
|
73
73
|
return L.width = h, L.height = E, t ? (y.fillStyle = t, y.fillRect(0, 0, h, E)) : y.clearRect(0, 0, h, E), y.putImageData(p, 0, 0), L;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function z(e, t, a) {
|
|
76
76
|
const n = document.createElement("canvas");
|
|
77
77
|
if (n.width = e, n.height = t, a) {
|
|
78
78
|
const r = n.getContext("2d", {
|
|
@@ -86,7 +86,7 @@ function Qe(e, t) {
|
|
|
86
86
|
return new Promise((a, n) => {
|
|
87
87
|
const r = new Image();
|
|
88
88
|
r.onload = () => {
|
|
89
|
-
const o =
|
|
89
|
+
const o = z(r.width, r.height), i = o.getContext("2d", {
|
|
90
90
|
willReadFrequently: !0
|
|
91
91
|
});
|
|
92
92
|
i == null || i.drawImage(r, 0, 0), a(o);
|
|
@@ -94,19 +94,19 @@ function Qe(e, t) {
|
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
function de(e, t, a, n) {
|
|
97
|
-
const r = e.width, o = e.height, i = 1, l = a / o, c = Math.min(l, i), d = r * c, u = o * c, f =
|
|
97
|
+
const r = e.width, o = e.height, i = 1, l = a / o, c = Math.min(l, i), d = r * c, u = o * c, f = z(d, u), m = f.getContext("2d");
|
|
98
98
|
return n && m && (m.fillStyle = n, m.fillRect(0, 0, d, u)), m == null || m.drawImage(e, 0, 0, r, o, 0, 0, d, u), f;
|
|
99
99
|
}
|
|
100
100
|
function me(e, t) {
|
|
101
101
|
const a = e.getContext("2d"), n = e.offsetWidth, r = e.offsetHeight, o = Math.max(window.devicePixelRatio || 1, 1), i = n * o, l = r * o;
|
|
102
102
|
return (e.width !== i || e.height !== l) && a ? (e.width = i, e.height = l, a.scale(o, o), t == null || t.redraw(), !0) : !1;
|
|
103
103
|
}
|
|
104
|
-
const M = 480, et = (e) =>
|
|
104
|
+
const M = 480, et = (e) => Te({
|
|
105
105
|
data: JSON.stringify(e),
|
|
106
|
-
mimeType:
|
|
106
|
+
mimeType: w.POINTS
|
|
107
107
|
}), Le = (e) => {
|
|
108
108
|
const t = N(e);
|
|
109
|
-
if ((t == null ? void 0 : t.mimeType) ===
|
|
109
|
+
if ((t == null ? void 0 : t.mimeType) === w.POINTS)
|
|
110
110
|
try {
|
|
111
111
|
return JSON.parse(t.data);
|
|
112
112
|
} catch {
|
|
@@ -136,14 +136,14 @@ function nt(e, t, a = "black", n = !1, r) {
|
|
|
136
136
|
const m = (l - d) / 2;
|
|
137
137
|
o.fillText(t, n ? l - m : m, (c - u) / 2 + f);
|
|
138
138
|
}
|
|
139
|
-
const
|
|
139
|
+
const Ce = /^data:([^;,]+)(?:;([^,]+))?,(.+)$/;
|
|
140
140
|
function at(e) {
|
|
141
|
-
return
|
|
141
|
+
return Ce.test(e);
|
|
142
142
|
}
|
|
143
143
|
function N(e) {
|
|
144
144
|
if (!e)
|
|
145
145
|
return;
|
|
146
|
-
const t = e.match(
|
|
146
|
+
const t = e.match(Ce);
|
|
147
147
|
if (!t)
|
|
148
148
|
return;
|
|
149
149
|
const [, a, n, r] = t;
|
|
@@ -153,7 +153,7 @@ function N(e) {
|
|
|
153
153
|
encoding: n
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Te({ data: e, mimeType: t, encoding: a = "text" }) {
|
|
157
157
|
const n = a === "base64" ? btoa(e) : encodeURI(e);
|
|
158
158
|
return `data:${a === "base64" ? `${t};base64` : t},${n}`;
|
|
159
159
|
}
|
|
@@ -186,20 +186,20 @@ async function ot(e, t) {
|
|
|
186
186
|
if (!a)
|
|
187
187
|
return e;
|
|
188
188
|
const n = a.mimeType;
|
|
189
|
-
if (n ===
|
|
190
|
-
const r =
|
|
189
|
+
if (n === w.TEXT) {
|
|
190
|
+
const r = z(M * 20, M, 1);
|
|
191
191
|
nt(r, a.data, "black", t, "white");
|
|
192
192
|
const o = J(r, "white");
|
|
193
193
|
return (o == null ? void 0 : o.toDataURL("image/jpeg", 0.7)) ?? null;
|
|
194
194
|
}
|
|
195
|
-
if (n ===
|
|
195
|
+
if (n === w.POINTS) {
|
|
196
196
|
const r = Le(e);
|
|
197
197
|
if (!r)
|
|
198
198
|
return null;
|
|
199
199
|
const o = r.map((u) => ({
|
|
200
200
|
...u,
|
|
201
201
|
penColor: "black"
|
|
202
|
-
})), i =
|
|
202
|
+
})), i = z(M * 20, M, Math.max(window.devicePixelRatio || 1, 1));
|
|
203
203
|
new he(i).fromData(o);
|
|
204
204
|
const c = J(i);
|
|
205
205
|
return c ? de(c, void 0, M, "white").toDataURL("image/jpeg", 0.7) : null;
|
|
@@ -275,9 +275,9 @@ const it = ({ value: e, onChange: t, target: a }) => {
|
|
|
275
275
|
if (o == null)
|
|
276
276
|
return b.DRAW;
|
|
277
277
|
switch (i == null ? void 0 : i.mimeType) {
|
|
278
|
-
case
|
|
278
|
+
case w.POINTS:
|
|
279
279
|
return b.DRAW;
|
|
280
|
-
case
|
|
280
|
+
case w.TEXT:
|
|
281
281
|
return b.TYPE;
|
|
282
282
|
default:
|
|
283
283
|
return b.UPLOAD;
|
|
@@ -298,13 +298,13 @@ const it = ({ value: e, onChange: t, target: a }) => {
|
|
|
298
298
|
]), m = o != null, h = ut(l, o, i), E = (() => {
|
|
299
299
|
switch (l) {
|
|
300
300
|
case b.DRAW:
|
|
301
|
-
return
|
|
301
|
+
return x.DRAW;
|
|
302
302
|
case b.TYPE:
|
|
303
|
-
return
|
|
303
|
+
return x.TYPE;
|
|
304
304
|
case b.UPLOAD:
|
|
305
|
-
return h != null ?
|
|
305
|
+
return h != null ? x.IMAGE : x.UPLOAD;
|
|
306
306
|
default:
|
|
307
|
-
return
|
|
307
|
+
return x.DRAW;
|
|
308
308
|
}
|
|
309
309
|
})();
|
|
310
310
|
return {
|
|
@@ -320,28 +320,28 @@ const it = ({ value: e, onChange: t, target: a }) => {
|
|
|
320
320
|
handleClear: f
|
|
321
321
|
};
|
|
322
322
|
}, ct = {
|
|
323
|
-
[b.DRAW]: (e) => (e == null ? void 0 : e.mimeType) ===
|
|
324
|
-
[b.TYPE]: (e) => (e == null ? void 0 : e.mimeType) ===
|
|
325
|
-
[b.UPLOAD]: (e) => (e == null ? void 0 : e.mimeType) !==
|
|
323
|
+
[b.DRAW]: (e) => (e == null ? void 0 : e.mimeType) === w.POINTS,
|
|
324
|
+
[b.TYPE]: (e) => (e == null ? void 0 : e.mimeType) === w.TEXT,
|
|
325
|
+
[b.UPLOAD]: (e) => (e == null ? void 0 : e.mimeType) !== w.POINTS && (e == null ? void 0 : e.mimeType) !== w.TEXT
|
|
326
326
|
};
|
|
327
327
|
function ut(e, t, a) {
|
|
328
328
|
return t && ct[e](a) ? t : void 0;
|
|
329
329
|
}
|
|
330
330
|
const dt = (e) => {
|
|
331
331
|
const t = e.url ? N(e.url) : void 0;
|
|
332
|
-
return t ? t.mimeType !==
|
|
332
|
+
return t ? t.mimeType !== w.POINTS && t.mimeType !== w.TEXT : !0;
|
|
333
333
|
}, te = () => {
|
|
334
|
-
const { hoverProps: e, isHovered: t } = ve({}), { focusProps: a, isFocused: n, isFocusVisible: r } =
|
|
334
|
+
const { hoverProps: e, isHovered: t } = ve({}), { focusProps: a, isFocused: n, isFocusVisible: r } = Se({
|
|
335
335
|
within: !0
|
|
336
336
|
});
|
|
337
337
|
return {
|
|
338
|
-
...
|
|
338
|
+
...xe(e, a),
|
|
339
339
|
"data-hovered": t || void 0,
|
|
340
340
|
"data-focus-within": n || void 0,
|
|
341
341
|
"data-focus-visible": r || void 0
|
|
342
342
|
};
|
|
343
343
|
}, g = ({ children: e }) => {
|
|
344
|
-
const { id: t, FieldLayout: a } = A(), n =
|
|
344
|
+
const { id: t, FieldLayout: a } = A(), n = C(e, g.Label), r = C(e, g.Input), o = C(e, g.Description), i = C(e, g.Error);
|
|
345
345
|
return /* @__PURE__ */ s.createElement(a, {
|
|
346
346
|
fieldId: t,
|
|
347
347
|
renderLabel: () => n,
|
|
@@ -353,7 +353,7 @@ const dt = (e) => {
|
|
|
353
353
|
target: n,
|
|
354
354
|
value: t,
|
|
355
355
|
onChange: a
|
|
356
|
-
}), h =
|
|
356
|
+
}), h = C(e, Z.Header), E = C(e, Z.Value), p = {
|
|
357
357
|
signatureMode: o,
|
|
358
358
|
setSignatureMode: i,
|
|
359
359
|
handleClear: l,
|
|
@@ -365,7 +365,7 @@ const dt = (e) => {
|
|
|
365
365
|
};
|
|
366
366
|
return /* @__PURE__ */ s.createElement(s.Fragment, null, !r && F(h, p), F(E, p));
|
|
367
367
|
}, X = ({ children: e, className: t, ...a }) => {
|
|
368
|
-
const { signatureMode: n, setSignatureMode: r, clearable: o, handleClear: i } = a, { uploadEnabled: l } = A(), c =
|
|
368
|
+
const { signatureMode: n, setSignatureMode: r, clearable: o, handleClear: i } = a, { uploadEnabled: l } = A(), c = C(e, X.Tabs), d = C(e, X.Clear);
|
|
369
369
|
return /* @__PURE__ */ s.createElement("div", {
|
|
370
370
|
className: t
|
|
371
371
|
}, F(c, {
|
|
@@ -381,9 +381,9 @@ const dt = (e) => {
|
|
|
381
381
|
}, [
|
|
382
382
|
r
|
|
383
383
|
]), u = {
|
|
384
|
-
[b.DRAW]:
|
|
385
|
-
[b.TYPE]:
|
|
386
|
-
[b.UPLOAD]: o ?
|
|
384
|
+
[b.DRAW]: C(e, _.Draw),
|
|
385
|
+
[b.TYPE]: C(e, _.Type),
|
|
386
|
+
[b.UPLOAD]: o ? C(e, _.Upload) : null
|
|
387
387
|
}, f = u[n], m = mt(f) ? f.props.description : void 0;
|
|
388
388
|
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", {
|
|
389
389
|
role: "status",
|
|
@@ -404,7 +404,7 @@ const dt = (e) => {
|
|
|
404
404
|
"data-hook": ke.SIGNATURE_FIELD_MODE_SELECT,
|
|
405
405
|
className: t
|
|
406
406
|
}, u[b.DRAW], u[b.TYPE], u[b.UPLOAD]));
|
|
407
|
-
}, mt = (e) => /* @__PURE__ */
|
|
407
|
+
}, mt = (e) => /* @__PURE__ */ we(e), ne = ({ mode: e, children: t, className: a, "aria-label": n }) => /* @__PURE__ */ s.createElement(Pe, {
|
|
408
408
|
value: e,
|
|
409
409
|
"aria-label": n
|
|
410
410
|
}, /* @__PURE__ */ s.createElement(Ne, {
|
|
@@ -430,14 +430,14 @@ const dt = (e) => {
|
|
|
430
430
|
className: t
|
|
431
431
|
}, e);
|
|
432
432
|
}, P = ({ children: e, className: t, ...a }) => {
|
|
433
|
-
const { signatureView: n, signatureValueForView: r, handleChange: o, handleBeforeChange: i } = a, { disabled: l, readOnly: c, onBlur: d, onFocus: u, hasError: f } = A(), m =
|
|
433
|
+
const { signatureView: n, signatureValueForView: r, handleChange: o, handleBeforeChange: i } = a, { disabled: l, readOnly: c, onBlur: d, onFocus: u, hasError: f } = A(), m = C(e, P.Canvas), h = C(e, P.Type), E = C(e, P.Upload);
|
|
434
434
|
return /* @__PURE__ */ s.createElement("div", {
|
|
435
435
|
className: t,
|
|
436
436
|
"data-hook": "signature-input",
|
|
437
437
|
"data-invalid": f,
|
|
438
438
|
"data-disabled": l,
|
|
439
439
|
"data-readonly": c
|
|
440
|
-
}, n ===
|
|
440
|
+
}, n === x.DRAW && F(m, {
|
|
441
441
|
value: r,
|
|
442
442
|
onChange: o,
|
|
443
443
|
onBeforeChange: i,
|
|
@@ -445,7 +445,7 @@ const dt = (e) => {
|
|
|
445
445
|
readOnly: c,
|
|
446
446
|
onBlur: d,
|
|
447
447
|
onFocus: u
|
|
448
|
-
}), n ===
|
|
448
|
+
}), n === x.TYPE && F(h, {
|
|
449
449
|
value: r,
|
|
450
450
|
onChange: o,
|
|
451
451
|
onBeforeChange: i,
|
|
@@ -453,7 +453,7 @@ const dt = (e) => {
|
|
|
453
453
|
readOnly: c,
|
|
454
454
|
onBlur: d,
|
|
455
455
|
onFocus: u
|
|
456
|
-
}), (n ===
|
|
456
|
+
}), (n === x.UPLOAD || n === x.IMAGE) && F(E, {
|
|
457
457
|
value: r,
|
|
458
458
|
onChange: o,
|
|
459
459
|
onBeforeChange: i,
|
|
@@ -463,12 +463,12 @@ const dt = (e) => {
|
|
|
463
463
|
onFocus: u
|
|
464
464
|
}));
|
|
465
465
|
}, Et = ({ className: e, emptyLabel: t, signedLabel: a, ...n }) => {
|
|
466
|
-
const { value: r, onChange: o, onBeforeChange: i, disabled: l, readOnly: c, onBlur: d, onFocus: u } = n, { id: f } = A(), { inputId: m, ariaDescribedBy: h } = H(), E = te(), p = W(), L = W(), y = W(null),
|
|
466
|
+
const { value: r, onChange: o, onBeforeChange: i, disabled: l, readOnly: c, onBlur: d, onFocus: u } = n, { id: f } = A(), { inputId: m, ariaDescribedBy: h } = H(), E = te(), p = W(), L = W(), y = W(null), S = r == null ? void 0 : r.url, [U, Y] = K(!1);
|
|
467
467
|
Ee(() => {
|
|
468
468
|
var D;
|
|
469
469
|
(D = L.current) == null || D.focus();
|
|
470
470
|
}, f);
|
|
471
|
-
const
|
|
471
|
+
const R = De(() => ({
|
|
472
472
|
throttle: 0,
|
|
473
473
|
dotSize: 2,
|
|
474
474
|
minWidth: 1,
|
|
@@ -495,10 +495,10 @@ const dt = (e) => {
|
|
|
495
495
|
var k, $, se, ie;
|
|
496
496
|
if (D != null) {
|
|
497
497
|
if (L.current = D, p.current = new he(D, {
|
|
498
|
-
...
|
|
498
|
+
...R,
|
|
499
499
|
penColor: getComputedStyle(D).color || void 0
|
|
500
|
-
}), me(L.current, p.current),
|
|
501
|
-
const le = Le(
|
|
500
|
+
}), me(L.current, p.current), S) {
|
|
501
|
+
const le = Le(S);
|
|
502
502
|
le && (p.current.fromData(le), Y(!0));
|
|
503
503
|
} else
|
|
504
504
|
p.current.clear(), Y(!1);
|
|
@@ -508,8 +508,8 @@ const dt = (e) => {
|
|
|
508
508
|
} else
|
|
509
509
|
($ = y.current) == null || $.disconnect(), (se = p.current) == null || se.removeEventListener("endStroke", q), (ie = p.current) == null || ie.removeEventListener("beginStroke", j);
|
|
510
510
|
}, [
|
|
511
|
-
|
|
512
|
-
|
|
511
|
+
R,
|
|
512
|
+
S,
|
|
513
513
|
j,
|
|
514
514
|
q
|
|
515
515
|
]);
|
|
@@ -526,7 +526,7 @@ const dt = (e) => {
|
|
|
526
526
|
id: m,
|
|
527
527
|
"data-hook": "signature-canvas",
|
|
528
528
|
"data-input-id": m,
|
|
529
|
-
"data-has-value": !!
|
|
529
|
+
"data-has-value": !!S,
|
|
530
530
|
onFocus: u,
|
|
531
531
|
onBlur: d,
|
|
532
532
|
role: "img",
|
|
@@ -534,35 +534,35 @@ const dt = (e) => {
|
|
|
534
534
|
"aria-describedby": h
|
|
535
535
|
}));
|
|
536
536
|
}, ae = ({ children: e, className: t, ...a }) => {
|
|
537
|
-
const { value: n, onChange: r, onBeforeChange: o, disabled: i, readOnly: l, onBlur: c, onFocus: d } = a, { id: u, required: f, hasError: m } = A(), { inputId: h, ariaDescribedBy: E, labelId: p } = H(), L = te(), y = n != null && n.url ? N(n.url) : void 0, { data:
|
|
537
|
+
const { value: n, onChange: r, onBeforeChange: o, disabled: i, readOnly: l, onBlur: c, onFocus: d } = a, { id: u, required: f, hasError: m } = A(), { inputId: h, ariaDescribedBy: E, labelId: p } = H(), L = te(), y = n != null && n.url ? N(n.url) : void 0, { data: S = "" } = y ?? {
|
|
538
538
|
data: ""
|
|
539
539
|
};
|
|
540
540
|
Ee(() => {
|
|
541
|
-
const
|
|
542
|
-
|
|
541
|
+
const R = document.getElementById(h);
|
|
542
|
+
R == null || R.focus({
|
|
543
543
|
preventScroll: !0
|
|
544
544
|
});
|
|
545
545
|
}, u), Q(() => {
|
|
546
546
|
if (!n) {
|
|
547
|
-
const
|
|
548
|
-
|
|
547
|
+
const R = document.getElementById(h);
|
|
548
|
+
R && (R.value = "");
|
|
549
549
|
}
|
|
550
550
|
}, [
|
|
551
551
|
n,
|
|
552
552
|
h
|
|
553
553
|
]);
|
|
554
|
-
const U = I((
|
|
555
|
-
o == null || o(),
|
|
556
|
-
data:
|
|
557
|
-
mimeType:
|
|
554
|
+
const U = I((R) => {
|
|
555
|
+
o == null || o(), R.trim() ? r(ee(Te({
|
|
556
|
+
data: R,
|
|
557
|
+
mimeType: w.TEXT
|
|
558
558
|
}))) : r(null);
|
|
559
559
|
}, [
|
|
560
560
|
o,
|
|
561
561
|
r
|
|
562
|
-
]), Y =
|
|
562
|
+
]), Y = C(e, ae.Value);
|
|
563
563
|
return /* @__PURE__ */ s.createElement(Ae, {
|
|
564
564
|
"aria-labelledby": p,
|
|
565
|
-
value:
|
|
565
|
+
value: S,
|
|
566
566
|
onChange: U,
|
|
567
567
|
onBlur: c,
|
|
568
568
|
onFocus: d,
|
|
@@ -590,16 +590,16 @@ const dt = (e) => {
|
|
|
590
590
|
}, bt = {
|
|
591
591
|
display: "none"
|
|
592
592
|
}, re = ({ children: e, className: t, imageAlt: a, ...n }) => {
|
|
593
|
-
const { value: r, onChange: o, disabled: i, readOnly: l, onBlur: c, onFocus: d } = n, { inputId: u } = H(), f = te(), m =
|
|
593
|
+
const { value: r, onChange: o, disabled: i, readOnly: l, onBlur: c, onFocus: d } = n, { inputId: u } = H(), f = te(), m = C(e, re.Button), h = W(null), E = I((L) => {
|
|
594
594
|
const y = L.target.files;
|
|
595
595
|
if (!y || y.length === 0) {
|
|
596
596
|
o(null);
|
|
597
597
|
return;
|
|
598
598
|
}
|
|
599
|
-
const
|
|
599
|
+
const S = y[0], U = new FileReader();
|
|
600
600
|
U.onload = function() {
|
|
601
|
-
o(ee(this.result,
|
|
602
|
-
}, U.readAsDataURL(
|
|
601
|
+
o(ee(this.result, S.name));
|
|
602
|
+
}, U.readAsDataURL(S);
|
|
603
603
|
}, [
|
|
604
604
|
o
|
|
605
605
|
]), p = r && dt(r);
|
|
@@ -668,7 +668,7 @@ P.Type = ae;
|
|
|
668
668
|
P.Upload = re;
|
|
669
669
|
ae.Value = Lt;
|
|
670
670
|
re.Button = yt;
|
|
671
|
-
const
|
|
671
|
+
const Ct = () => {
|
|
672
672
|
const { t: e } = Me();
|
|
673
673
|
return {
|
|
674
674
|
drawLabel: e("field.signature.mode.draw.label"),
|
|
@@ -684,7 +684,7 @@ const Tt = () => {
|
|
|
684
684
|
imageAlt: e("field.signature.a11y.state.signed"),
|
|
685
685
|
uploadLabel: e("field.signature.settings.upload-button.label")
|
|
686
686
|
};
|
|
687
|
-
},
|
|
687
|
+
}, Tt = (e) => /* @__PURE__ */ s.createElement("svg", {
|
|
688
688
|
viewBox: "0 0 24 24",
|
|
689
689
|
width: 24,
|
|
690
690
|
height: 24,
|
|
@@ -714,7 +714,7 @@ const Tt = () => {
|
|
|
714
714
|
}, /* @__PURE__ */ s.createElement("path", {
|
|
715
715
|
fillRule: "evenodd",
|
|
716
716
|
d: "M18.8525,7.543 L17.7515,8.644 L15.3565,6.248 L16.4575,5.147 C16.5555,5.05 16.6835,5.001 16.8105,5.001 C16.9385,5.001 17.0665,5.05 17.1645,5.147 L18.8525,6.835 C19.0475,7.03 19.0475,7.348 18.8525,7.543 L18.8525,7.543 Z M8.1895,18.206 C8.1185,18.276 8.0275,18.324 7.9295,18.344 L5.1275,18.873 L5.6575,16.07 C5.6755,15.972 5.7225,15.882 5.7945,15.811 L14.6495,6.955 L17.0445,9.351 L8.1895,18.206 Z M19.5595,6.128 L17.8715,4.44 C17.2865,3.856 16.3355,3.856 15.7505,4.44 L5.0875,15.103 C4.8735,15.317 4.7295,15.588 4.6745,15.886 L4.0085,19.407 C3.9775,19.569 4.0295,19.736 4.1465,19.854 C4.2415,19.948 4.3685,20 4.4995,20 C4.5305,20 4.5615,19.997 4.5925,19.991 L8.1165,19.326 C8.4145,19.269 8.6855,19.125 8.8965,18.912 L19.5595,8.25 C20.1445,7.665 20.1445,6.713 19.5595,6.128 L19.5595,6.128 Z"
|
|
717
|
-
})),
|
|
717
|
+
})), wt = (e) => /* @__PURE__ */ s.createElement("svg", {
|
|
718
718
|
viewBox: "0 0 20 20",
|
|
719
719
|
width: 24,
|
|
720
720
|
height: 24,
|
|
@@ -724,70 +724,70 @@ const Tt = () => {
|
|
|
724
724
|
}, /* @__PURE__ */ s.createElement("path", {
|
|
725
725
|
fillRule: "evenodd",
|
|
726
726
|
d: "M12,4 L12,5 L8,5 L8,16 L7,16 L7,5 L3,5 L3,4 L12,4 Z M18,8 L18,9 L15,9 L15,16 L14,16 L14,9 L11,9 L11,8 L18,8 Z"
|
|
727
|
-
})),
|
|
728
|
-
header:
|
|
727
|
+
})), Rt = "_header_15ti0_1", vt = "_tabs_15ti0_8", St = "_tab_15ti0_8", xt = "_tabIcon_15ti0_74", Ft = "_clear_15ti0_81", At = "_value_15ti0_113", _t = "_box_15ti0_118", Pt = "_uploadBox_15ti0_119", Nt = "_typeInput_15ti0_230", T = {
|
|
728
|
+
header: Rt,
|
|
729
729
|
tabs: vt,
|
|
730
|
-
tab:
|
|
731
|
-
tabIcon:
|
|
730
|
+
tab: St,
|
|
731
|
+
tabIcon: xt,
|
|
732
732
|
clear: Ft,
|
|
733
733
|
value: At,
|
|
734
734
|
box: _t,
|
|
735
735
|
uploadBox: Pt,
|
|
736
736
|
typeInput: Nt
|
|
737
|
-
}, Ut = ({ content: e, locale: t }) => /* @__PURE__ */ s.createElement(
|
|
737
|
+
}, Ut = ({ content: e, locale: t }) => /* @__PURE__ */ s.createElement(Re, {
|
|
738
738
|
content: e,
|
|
739
739
|
locale: t
|
|
740
740
|
}), Ot = () => {
|
|
741
|
-
const e =
|
|
741
|
+
const e = Ct();
|
|
742
742
|
return /* @__PURE__ */ s.createElement(g, null, /* @__PURE__ */ s.createElement(g.Label, {
|
|
743
|
-
className: v(ue,
|
|
743
|
+
className: v(ue, V.label)
|
|
744
744
|
}, /* @__PURE__ */ s.createElement(g.Label.Required, {
|
|
745
|
-
className: v(
|
|
745
|
+
className: v(Ve, V.requiredMark)
|
|
746
746
|
})), /* @__PURE__ */ s.createElement(g.Input, null, /* @__PURE__ */ s.createElement(g.Input.Header, {
|
|
747
|
-
className:
|
|
747
|
+
className: T.header
|
|
748
748
|
}, /* @__PURE__ */ s.createElement(g.Input.Header.Tabs, {
|
|
749
|
-
className:
|
|
749
|
+
className: T.tabs
|
|
750
750
|
}, /* @__PURE__ */ s.createElement(g.Input.Header.Tabs.Draw, {
|
|
751
|
-
className: v(B,
|
|
751
|
+
className: v(B, T.tab),
|
|
752
752
|
"aria-label": e.drawLabel,
|
|
753
753
|
description: e.drawDescription
|
|
754
754
|
}, /* @__PURE__ */ s.createElement(Dt, {
|
|
755
|
-
className:
|
|
755
|
+
className: T.tabIcon
|
|
756
756
|
})), /* @__PURE__ */ s.createElement(g.Input.Header.Tabs.Type, {
|
|
757
|
-
className: v(B,
|
|
757
|
+
className: v(B, T.tab),
|
|
758
758
|
"aria-label": e.typeLabel,
|
|
759
759
|
description: e.typeDescription
|
|
760
|
-
}, /* @__PURE__ */ s.createElement(
|
|
761
|
-
className:
|
|
760
|
+
}, /* @__PURE__ */ s.createElement(wt, {
|
|
761
|
+
className: T.tabIcon
|
|
762
762
|
})), /* @__PURE__ */ s.createElement(g.Input.Header.Tabs.Upload, {
|
|
763
|
-
className: v(B,
|
|
763
|
+
className: v(B, T.tab),
|
|
764
764
|
"aria-label": e.uploadModeLabel,
|
|
765
765
|
description: e.uploadDescription
|
|
766
766
|
}, /* @__PURE__ */ s.createElement(It, {
|
|
767
|
-
className:
|
|
767
|
+
className: T.tabIcon
|
|
768
768
|
}))), /* @__PURE__ */ s.createElement(g.Input.Header.Clear, {
|
|
769
|
-
className: v(ue,
|
|
769
|
+
className: v(ue, T.clear),
|
|
770
770
|
"aria-label": e.clearLabel
|
|
771
|
-
}, /* @__PURE__ */ s.createElement(
|
|
772
|
-
className:
|
|
771
|
+
}, /* @__PURE__ */ s.createElement(Tt, null))), /* @__PURE__ */ s.createElement(g.Input.Value, {
|
|
772
|
+
className: T.value
|
|
773
773
|
}, /* @__PURE__ */ s.createElement(g.Input.Value.Canvas, {
|
|
774
|
-
className: v(B,
|
|
774
|
+
className: v(B, T.box),
|
|
775
775
|
emptyLabel: e.emptyLabel,
|
|
776
776
|
signedLabel: e.signedLabel
|
|
777
777
|
}), /* @__PURE__ */ s.createElement(g.Input.Value.Type, {
|
|
778
|
-
className: v(B,
|
|
778
|
+
className: v(B, T.box)
|
|
779
779
|
}, /* @__PURE__ */ s.createElement(g.Input.Value.Type.Value, {
|
|
780
|
-
className:
|
|
780
|
+
className: T.typeInput,
|
|
781
781
|
placeholder: e.placeholder
|
|
782
782
|
})), /* @__PURE__ */ s.createElement(g.Input.Value.Upload, {
|
|
783
|
-
className: v(B,
|
|
783
|
+
className: v(B, T.uploadBox),
|
|
784
784
|
imageAlt: e.imageAlt
|
|
785
785
|
}, /* @__PURE__ */ s.createElement(g.Input.Value.Upload.Button, {
|
|
786
|
-
className: v(
|
|
786
|
+
className: v(ze, V.uploadButton)
|
|
787
787
|
}, e.uploadLabel)))), /* @__PURE__ */ s.createElement(g.Error, {
|
|
788
|
-
className: v(Ze,
|
|
788
|
+
className: v(Ze, V.error)
|
|
789
789
|
}, /* @__PURE__ */ s.createElement($e, null), /* @__PURE__ */ s.createElement(g.Error.Text, null)), /* @__PURE__ */ s.createElement(g.Description, {
|
|
790
|
-
className: v(Xe,
|
|
790
|
+
className: v(Xe, V.description)
|
|
791
791
|
}, Ut));
|
|
792
792
|
}, Jt = () => /* @__PURE__ */ s.createElement(Ot, null);
|
|
793
793
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import t, { useRef as y, useCallback as f } from "react";
|
|
2
2
|
import P from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import b from "classnames";
|
|
4
|
-
import { ak as B, ae as h } from "./form-
|
|
4
|
+
import { ak as B, ae as h } from "./form-9WmwgGNc.js";
|
|
5
5
|
import { ProgressBar as A, Button as N } from "react-aria-components";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import {
|
|
7
|
+
import { a5 as I, a4 as O, a7 as w, a9 as F, A as k, a8 as R } from "./form-element-classes-BtKlobUX.js";
|
|
8
8
|
function M(n) {
|
|
9
9
|
const s = "calc(50% - 2px)";
|
|
10
10
|
return /* @__PURE__ */ t.createElement(A, {
|