@wix/form-elements 1.165.0 → 1.167.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-Cskf9hxi.js → appointment-rac-BbXyKTd7.js} +72 -72
- package/dist/component/{bookings-address-rac-C18tuPai.js → bookings-address-rac-VJkR_U9L.js} +1 -1
- package/dist/component/{bookings-email-rac-C2GL3cJg.js → bookings-email-rac-_EupwXpQ.js} +1 -1
- package/dist/component/{bookings-first-name-rac-IEklnchg.js → bookings-first-name-rac-DTZixHYj.js} +1 -1
- package/dist/component/{bookings-header-rac-iwcrj5Kj.js → bookings-header-rac-BKbKTv5g.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CXZfq3Rw.js → bookings-last-name-rac-BDy860-C.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DP0MBFTm.js → bookings-login-bar-rac-DgNP-YNZ.js} +5 -5
- package/dist/component/{bookings-phone-rac-uJGk_tzr.js → bookings-phone-rac-B_I6n96b.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-BerRAnFy.js → bookings-rich-text-rac-prYPbIiz.js} +1 -1
- package/dist/component/{checkbox-field-rac-BBftIi_U.js → checkbox-field-rac-C-4PXuxG.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-BiQ4coe6.js → checkbox-group-field-headless-D16bAcaq.js} +35 -35
- package/dist/component/{checkbox-group-field-rac-moHc5Cyu.js → checkbox-group-field-rac-GUQ5dO_s.js} +4 -4
- package/dist/component/{checkbox-group-rac-iuPzxN7i.js → checkbox-group-rac-Bl6xL5-H.js} +1 -1
- package/dist/component/{checkbox-rac-BwfHAeFo.js → checkbox-rac-Blg0KVyP.js} +1 -1
- package/dist/component/{contacts-address-rac-DuyEL5YR.js → contacts-address-rac-BfOhCAj8.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-Mkoplu3x.js → contacts-birthdate-rac-DYBvDh62.js} +1 -1
- package/dist/component/{contacts-company-rac-B-3QghQg.js → contacts-company-rac-DIJr7zjA.js} +1 -1
- package/dist/component/{contacts-email-rac-CqooKQl8.js → contacts-email-rac-DjmqELhC.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CAOu0GIH.js → contacts-first-name-rac-DGNll7gw.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Cd-wCTC3.js → contacts-last-name-rac-BJ8AZYQN.js} +1 -1
- package/dist/component/{contacts-phone-rac-OGE6eaJc.js → contacts-phone-rac-BC-QtpEN.js} +1 -1
- package/dist/component/{contacts-position-rac-eSsV63RC.js → contacts-position-rac-BQia__74.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-19d4uPR-.js → contacts-subscribe-rac-CTFptz01.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-TtyrAftZ.js → contacts-tax-id-rac-Cy72Jouc.js} +1 -1
- package/dist/component/{date-availability-CudIaav_.js → date-availability-BC6updcS.js} +1 -1
- package/dist/component/{date-input-field-rac-DzMiQLxS.js → date-input-field-rac-b_T1yf8D.js} +38 -38
- package/dist/component/{date-input-rac-BWfmwcmK.js → date-input-rac-KkRyWRP_.js} +1 -1
- package/dist/component/{date-picker-field-rac-w4Wf-m0I.js → date-picker-field-rac-BLWVJbTJ.js} +6 -6
- package/dist/component/{date-picker-rac-Bejo7tOm.js → date-picker-rac-DKCQza7v.js} +1 -1
- package/dist/component/{date-time-input-field-rac-D6JPrbGb.js → date-time-input-field-rac-CZxZW6fz.js} +45 -45
- package/dist/component/{date-time-input-rac-CAK5NgC4.js → date-time-input-rac-DQ-iBwmr.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BqoHMQwI.js → dext-checkbox-group-rac-kp1Jbwt-.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BEis8bxo.js → dext-checkbox-rac-CBm9cRUz.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DDQTy3BG.js → dext-date-picker-rac-DsVKWsRy.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Dp3UEXEu.js → dext-date-time-input-rac-CO26-8Qo.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DisXIXNb.js → dext-dropdown-rac-eRzu2C-y.js} +1 -1
- package/dist/component/{dext-email-rac-CBv4umUC.js → dext-email-rac-DDrZzE_G.js} +1 -1
- package/dist/component/{dext-number-input-rac-0UNC_1Ac.js → dext-number-input-rac-Dj7sInLk.js} +1 -1
- package/dist/component/{dext-phone-rac-CQVzz499.js → dext-phone-rac-g8M77F7m.js} +1 -1
- package/dist/component/{dext-radio-group-rac-3lhx-xxX.js → dext-radio-group-rac-BjhygC0R.js} +2 -2
- package/dist/component/{dext-rating-input-rac-2fwxV3iY.js → dext-rating-input-rac-BraNjvyA.js} +1 -1
- package/dist/component/{dext-tags-rac-DCL78ClS.js → dext-tags-rac-B5mAIuDi.js} +2 -2
- package/dist/component/{dext-text-area-rac-WTCWYySB.js → dext-text-area-rac-D_YBnaWi.js} +1 -1
- package/dist/component/{dext-text-input-rac-DMCzSYAI.js → dext-text-input-rac-BzeWH1jv.js} +1 -1
- package/dist/component/{dext-url-input-rac-Bzvt5zTa.js → dext-url-input-rac-Cn0h_vx3.js} +1 -1
- package/dist/component/{donation-rac-B3YHu0bl.js → donation-rac-CQRdHxWh.js} +46 -46
- package/dist/component/{dropdown-field-rac-y4GPpf0W.js → dropdown-field-rac-C7LL0W5Z.js} +3 -3
- package/dist/component/{dropdown-rac-Dj7OnxJL.js → dropdown-rac-Nb2VyJ0x.js} +1 -1
- package/dist/component/{ecom-address-rac-Bnc60jDw.js → ecom-address-rac-_c2YIIwg.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CesTpjav.js → ecom-subscription-checkbox-rac-Bma7TAVj.js} +2 -2
- package/dist/component/{email-input-field-rac-BT2FrAEM.js → email-input-field-rac-2E2tEaS5.js} +47 -47
- package/dist/component/events-repeater-rac-COWHYBFD.js +280 -0
- package/dist/component/{events-rsvp-rac-wVpVt7-p.js → events-rsvp-rac-CXp8j19Y.js} +3 -3
- package/dist/component/{field-error-headless-CX95bMbk.js → field-error-headless-S-ugOQQX.js} +7 -7
- package/dist/component/{field-label-headless-niuFY6Mw.js → field-label-headless-_n4I0_tX.js} +14 -14
- package/dist/component/{file-upload-rac-ByO8l8lE.js → file-upload-rac-DCH_iwDg.js} +79 -79
- package/dist/component/{fixed-payment-rac-BNDAdNeQ.js → fixed-payment-rac-CYkKJUfM.js} +14 -14
- package/dist/component/{form-CCQN_rPn.js → form-jK8ezTss.js} +1110 -1109
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-C1RySfYy.js → header-field-rac-DnbjI6W5.js} +6 -6
- package/dist/component/{header-rac-BaFPV0vy.js → header-rac-DKUICrni.js} +1 -1
- package/dist/component/{image-choice-rac-BShUj92P.js → image-choice-rac-B_9ponST.js} +4 -4
- package/dist/component/{index-DHLfweXD.js → index-BxdMzOvN.js} +68 -68
- package/dist/component/{index-0_YjLphg.js → index-ZYnsxY-a.js} +2 -2
- package/dist/component/{isObjectLike-D7tbAd6O.js → isObjectLike-BW-9QEQl.js} +9 -9
- package/dist/component/{multiline-address-field-rac-CFJKE5vA.js → multiline-address-field-rac-k-P0ijWG.js} +40 -40
- package/dist/component/{multiline-address-rac-BlzCkwEH.js → multiline-address-rac-Bbn9mNDa.js} +1 -1
- package/dist/component/{number-input-field-rac-XqxdqTRV.js → number-input-field-rac--lom-B_X.js} +7 -7
- package/dist/component/{number-input-rac-CQTg0QSm.js → number-input-rac-Bhbd6T9S.js} +1 -1
- package/dist/component/{password-rac-DPE-U2xs.js → password-rac-BV_uTHb3.js} +14 -14
- package/dist/component/{payment-input-rac-oOh04431.js → payment-input-rac-cawyGN_t.js} +28 -28
- package/dist/component/{phone-input-field-rac-DW2vQhjC.js → phone-input-field-rac-CsElHRto.js} +67 -67
- package/dist/component/{phone-rac-BB9B-Hpl.js → phone-rac-XrHN5Nko.js} +1 -1
- package/dist/component/{product-list-rac-K53VvPJV.js → product-list-rac-cxv_xz7K.js} +30 -30
- package/dist/component/{quiz-radio-group-rac-gikcMV2I.js → quiz-radio-group-rac-DGaxOPE1.js} +1 -1
- package/dist/component/{radio-button-module-classes-CY883yGO.js → radio-button-module-classes-Xv2Jn01x.js} +21 -21
- package/dist/component/{radio-group-field-rac-BOEWcfT9.js → radio-group-field-rac-DgGqgTql.js} +4 -4
- package/dist/component/{radio-group-rac-gKhmLMm3.js → radio-group-rac-Bh0E-oe1.js} +1 -1
- package/dist/component/{rating-input-field-rac-83FXIVpy.js → rating-input-field-rac-C3YLV971.js} +10 -10
- package/dist/component/{rating-input-rac-XDwakrtR.js → rating-input-rac-CfcC5EUh.js} +1 -1
- package/dist/component/{rich-content-rac.module-Bdx8hK3J.js → rich-content-rac.module-DUjzLGtX.js} +5 -5
- package/dist/component/{rich-text-field-rac-ksEKBaYG.js → rich-text-field-rac-BmguoJhk.js} +5 -5
- package/dist/component/{rich-text-rac-XEFBeQrz.js → rich-text-rac-BWhHcq25.js} +1 -1
- package/dist/component/{service-dropdown-rac-CjFiqV1n.js → service-dropdown-rac-C5oX-ql7.js} +30 -30
- package/dist/component/{services-multi-choice-rac-DNut4K3I.js → services-multi-choice-rac-C1fem9NB.js} +12 -12
- package/dist/component/{signature-rac-BhWPZpwu.js → signature-rac-BtHqiWj1.js} +62 -62
- package/dist/component/{submit-button-rac-CWmz_JCl.js → submit-button-rac-OYeKJFF8.js} +60 -60
- package/dist/component/{tags-field-rac-D9P1jVrz.js → tags-field-rac-kA2RSijL.js} +37 -37
- package/dist/component/{tags-rac-0zEd-xYa.js → tags-rac-B_2qCZGu.js} +1 -1
- package/dist/component/{text-area-field-rac-D_55oi2b.js → text-area-field-rac-DeO609Mv.js} +17 -17
- package/dist/component/{text-area-rac-CpkFyXCH.js → text-area-rac-BAQFBOZd.js} +1 -1
- package/dist/component/{text-input-field-rac-b7RXb4Ob.js → text-input-field-rac-CCcKwuLZ.js} +3 -3
- package/dist/component/{text-input-headless-b1TEpdit.js → text-input-headless-D8-jkaYm.js} +8 -8
- package/dist/component/{text-input-rac-CoVcg1S0.js → text-input-rac-BVcgjj8g.js} +1 -1
- package/dist/component/{time-input-rac-DE7OyzgQ.js → time-input-rac-BYctyHgU.js} +11 -11
- package/dist/component/{url-input-field-rac-_yxWlb3a.js → url-input-field-rac-COC9qgcs.js} +23 -23
- package/dist/component/{url-input-rac-wguMUqug.js → url-input-rac-BZXLh0Ej.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-DdQ0sFRF.js → use-dropdown-option-class-name-BTltqRl1.js} +2 -2
- package/dist/component/use-dropdown-trigger-class-name-BjJZfl3i.js +98 -0
- package/dist/component/{use-element-state-class-name-C2tQgxUX.js → use-element-state-class-name-CkT6Ga8t.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-C8iuzofb.js → use-hoverable-input-class-name-BkoSr6tr.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-DkIrJPsK.js → use-is-forced-open-dropdown-fo_NCnSk.js} +1 -1
- package/dist/component/{use-service-options-base-B-xAR-tx.js → use-service-options-base-Wp8RZ4Z8.js} +1 -1
- package/dist/component/use-text-input-class-name-DS7i03Gk.js +6 -0
- package/package.json +2 -2
- package/dist/component/events-repeater-rac-CA2yjEEk.js +0 -271
- package/dist/component/use-dropdown-trigger-class-name-hB8KYv-I.js +0 -96
- package/dist/component/use-text-input-class-name-CK4rZeSM.js +0 -6
|
@@ -2,17 +2,17 @@ import r, { useRef as V, useContext as Ne, useMemo as be, useCallback as _, useS
|
|
|
2
2
|
import we from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import { RicosViewer as xe } from "@wix/ricos/viewer";
|
|
4
4
|
import F from "classnames";
|
|
5
|
-
import {
|
|
6
|
-
import { useHover as
|
|
5
|
+
import { b5 as Ue, bx as Te, aJ as Be, F as Oe, bz as Pe, bv as Me, bL as Ce, E as me, az as oe, bD as x, bA as z, bF as Ie, bN as He, bw as ze, U as We, af as Ye, ag as Ze, G as pe, b as ke, am as Ge, an as fe, K as Ve, ah as $e, ak as Xe, ai as qe, al as je, f as ne, aj as Je } from "./form-jK8ezTss.js";
|
|
6
|
+
import { useHover as Ke, useFocusRing as Qe, mergeProps as et } from "react-aria";
|
|
7
7
|
import { RadioGroup as tt, Button as ye, TextField as nt, DropZone as at, Input as ot, FileTrigger as st, RadioField as rt, RadioButton as lt } from "react-aria-components";
|
|
8
8
|
import _e from "signature_pad";
|
|
9
9
|
import { f as I, a as N } from "./find-child-C60k4CxG.js";
|
|
10
|
-
import { D as it, E as ct } from "./field-error-headless-
|
|
11
|
-
import { L as ut } from "./field-label-headless-
|
|
10
|
+
import { D as it, E as ct } from "./field-error-headless-S-ugOQQX.js";
|
|
11
|
+
import { L as ut } from "./field-label-headless-_n4I0_tX.js";
|
|
12
12
|
import { D as dt } from "./data-hooks-Dkw1pbRj.js";
|
|
13
13
|
import { E as mt } from "./error-icon-hZxQ6DEy.js";
|
|
14
14
|
import { s as ae } from "./field-rac.module-ts2t4WUO.js";
|
|
15
|
-
import { u as X } from "./use-element-state-class-name-
|
|
15
|
+
import { u as X } from "./use-element-state-class-name-CkT6Ga8t.js";
|
|
16
16
|
const pt = typeof r.useId == "function" ? r.useId : () => V(Ue()).current, ft = ({ properties: e }) => e.uploadEnabled === !0, Et = (e, t) => e.fieldType === Oe.SIGNATURE && !e.properties.hidden && !e.properties.disabled && !e.properties.readOnly && (t !== "upload" || ft(e)), gt = (e, t) => e.layout.row - t.layout.row || e.layout.column - t.layout.column, ht = (e) => {
|
|
17
17
|
var o;
|
|
18
18
|
const t = (o = Te().signature) == null ? void 0 : o.signatureMode, a = Ne(Be);
|
|
@@ -112,11 +112,11 @@ function ge(e, t) {
|
|
|
112
112
|
const a = e.getContext("2d"), n = e.offsetWidth, o = e.offsetHeight, s = Math.max(window.devicePixelRatio || 1, 1), l = n * s, i = o * s;
|
|
113
113
|
return (e.width !== l || e.height !== i) && a ? (e.width = l, e.height = i, a.scale(s, s), t == null || t.redraw(), !0) : !1;
|
|
114
114
|
}
|
|
115
|
-
const
|
|
115
|
+
const G = 480, yt = (e) => Se({
|
|
116
116
|
data: JSON.stringify(e),
|
|
117
117
|
mimeType: A.POINTS
|
|
118
118
|
}), ve = (e) => {
|
|
119
|
-
const t =
|
|
119
|
+
const t = W(e);
|
|
120
120
|
if ((t == null ? void 0 : t.mimeType) === A.POINTS)
|
|
121
121
|
try {
|
|
122
122
|
return JSON.parse(t.data);
|
|
@@ -151,7 +151,7 @@ const Re = /^data:([^;,]+)(?:;([^,]+))?,(.+)$/;
|
|
|
151
151
|
function Dt(e) {
|
|
152
152
|
return Re.test(e);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function W(e) {
|
|
155
155
|
if (!e)
|
|
156
156
|
return;
|
|
157
157
|
const t = e.match(Re);
|
|
@@ -169,7 +169,7 @@ function Se({ data: e, mimeType: t, encoding: a = "text" }) {
|
|
|
169
169
|
return `data:${a === "base64" ? `${t};base64` : t},${n}`;
|
|
170
170
|
}
|
|
171
171
|
function At(e, t) {
|
|
172
|
-
const a =
|
|
172
|
+
const a = W(e);
|
|
173
173
|
if (!a)
|
|
174
174
|
return;
|
|
175
175
|
let n = a.data.length;
|
|
@@ -184,7 +184,7 @@ function At(e, t) {
|
|
|
184
184
|
});
|
|
185
185
|
}
|
|
186
186
|
function ie(e, t = "temp") {
|
|
187
|
-
const a =
|
|
187
|
+
const a = W(e);
|
|
188
188
|
return {
|
|
189
189
|
fileId: "temp",
|
|
190
190
|
displayName: t,
|
|
@@ -193,12 +193,12 @@ function ie(e, t = "temp") {
|
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
195
|
async function Rt(e, t) {
|
|
196
|
-
const a =
|
|
196
|
+
const a = W(e);
|
|
197
197
|
if (!a)
|
|
198
198
|
return e;
|
|
199
199
|
const n = a.mimeType;
|
|
200
200
|
if (n === A.TEXT) {
|
|
201
|
-
const o = j(
|
|
201
|
+
const o = j(G * 20, G, 1);
|
|
202
202
|
vt(o, a.data, "black", t, "white");
|
|
203
203
|
const s = re(o, "white");
|
|
204
204
|
return (s == null ? void 0 : s.toDataURL("image/jpeg", 0.7)) ?? null;
|
|
@@ -210,14 +210,14 @@ async function Rt(e, t) {
|
|
|
210
210
|
const s = o.map((d) => ({
|
|
211
211
|
...d,
|
|
212
212
|
penColor: "black"
|
|
213
|
-
})), l = j(
|
|
213
|
+
})), l = j(G * 20, G, Math.max(window.devicePixelRatio || 1, 1));
|
|
214
214
|
new _e(l).fromData(s);
|
|
215
215
|
const c = re(l);
|
|
216
|
-
return c ? Ee(c, void 0,
|
|
216
|
+
return c ? Ee(c, void 0, G, "white").toDataURL("image/jpeg", 0.7) : null;
|
|
217
217
|
}
|
|
218
218
|
if (n != null && n.startsWith("image/")) {
|
|
219
219
|
const o = await It(e), s = re(o);
|
|
220
|
-
return s ? Ee(s, void 0,
|
|
220
|
+
return s ? Ee(s, void 0, G).toDataURL("image/jpeg", 0.7) : null;
|
|
221
221
|
}
|
|
222
222
|
return e;
|
|
223
223
|
}
|
|
@@ -235,7 +235,7 @@ const Nt = ({ value: e, onChange: t, target: a }) => {
|
|
|
235
235
|
]);
|
|
236
236
|
const u = _(() => {
|
|
237
237
|
c.current && (clearTimeout(c.current), c.current = null);
|
|
238
|
-
}, []), d = n == null ? void 0 : n[0], f = d != null && d.url ?
|
|
238
|
+
}, []), d = n == null ? void 0 : n[0], f = d != null && d.url ? W(d.url) : void 0, m = _(async (h) => {
|
|
239
239
|
try {
|
|
240
240
|
const p = (h == null ? void 0 : h.url) ?? "";
|
|
241
241
|
if (Dt(p)) {
|
|
@@ -339,10 +339,10 @@ function xt(e, t, a) {
|
|
|
339
339
|
return t && wt[e](a) ? t : void 0;
|
|
340
340
|
}
|
|
341
341
|
const Ut = (e) => {
|
|
342
|
-
const t = e.url ?
|
|
342
|
+
const t = e.url ? W(e.url) : void 0;
|
|
343
343
|
return t ? t.mimeType !== A.POINTS && t.mimeType !== A.TEXT : !0;
|
|
344
344
|
}, ce = () => {
|
|
345
|
-
const { hoverProps: e, isHovered: t } =
|
|
345
|
+
const { hoverProps: e, isHovered: t } = Ke({}), { focusProps: a, isFocused: n, isFocusVisible: o } = Qe({
|
|
346
346
|
within: !0
|
|
347
347
|
});
|
|
348
348
|
return {
|
|
@@ -363,12 +363,12 @@ const Ut = (e) => {
|
|
|
363
363
|
[C.DRAW]: R.DRAW,
|
|
364
364
|
[C.TYPE]: R.TYPE,
|
|
365
365
|
[C.UPLOAD]: R.UPLOAD
|
|
366
|
-
},
|
|
366
|
+
}, J = ({ children: e, className: t }) => {
|
|
367
367
|
const { id: a, value: n, onChange: o, target: s, readOnly: l } = x(), i = ht(a), { signatureMode: c, setSignatureMode: u, handleClear: d, clearable: f, signatureView: m, signatureValueForView: L, handleChange: h, handleBeforeChange: p } = Ft({
|
|
368
368
|
target: s,
|
|
369
369
|
value: n,
|
|
370
370
|
onChange: o
|
|
371
|
-
}), g = I(e,
|
|
371
|
+
}), g = I(e, J.Header), E = I(e, J.Value), S = {
|
|
372
372
|
signatureMode: i ?? c,
|
|
373
373
|
setSignatureMode: u,
|
|
374
374
|
handleClear: d,
|
|
@@ -382,8 +382,8 @@ const Ut = (e) => {
|
|
|
382
382
|
className: t,
|
|
383
383
|
"data-hook": "signature-container"
|
|
384
384
|
}, !l && N(g, S), N(E, S));
|
|
385
|
-
},
|
|
386
|
-
const { signatureMode: n, setSignatureMode: o, clearable: s, handleClear: l } = a, { uploadEnabled: i } = x(), c = I(e,
|
|
385
|
+
}, K = ({ children: e, className: t, ...a }) => {
|
|
386
|
+
const { signatureMode: n, setSignatureMode: o, clearable: s, handleClear: l } = a, { uploadEnabled: i } = x(), c = I(e, K.Tabs), u = I(e, K.Clear);
|
|
387
387
|
return /* @__PURE__ */ r.createElement("div", {
|
|
388
388
|
className: t
|
|
389
389
|
}, N(c, {
|
|
@@ -394,7 +394,7 @@ const Ut = (e) => {
|
|
|
394
394
|
handleClear: l
|
|
395
395
|
}));
|
|
396
396
|
}, M = ({ children: e, className: t, ...a }) => {
|
|
397
|
-
const { signatureMode: n, setSignatureMode: o, uploadEnabled: s } = a, { disabled: l } = x(), { labelId: i, inputId: c } =
|
|
397
|
+
const { signatureMode: n, setSignatureMode: o, uploadEnabled: s } = a, { disabled: l } = x(), { labelId: i, inputId: c } = z(), u = _((L) => {
|
|
398
398
|
o(L);
|
|
399
399
|
}, [
|
|
400
400
|
o
|
|
@@ -437,8 +437,8 @@ const Ut = (e) => {
|
|
|
437
437
|
}), Ht = (e) => /* @__PURE__ */ r.createElement(ue, {
|
|
438
438
|
...e,
|
|
439
439
|
mode: C.UPLOAD
|
|
440
|
-
}),
|
|
441
|
-
const { handleClear: o } = n, { disabled: s, target: l } = x(), { inputId: i } =
|
|
440
|
+
}), zt = ({ children: e, className: t, "aria-label": a, ...n }) => {
|
|
441
|
+
const { handleClear: o } = n, { disabled: s, target: l } = x(), { inputId: i } = z();
|
|
442
442
|
return /* @__PURE__ */ r.createElement(ye, {
|
|
443
443
|
onPress: o,
|
|
444
444
|
isDisabled: s,
|
|
@@ -480,8 +480,8 @@ const Ut = (e) => {
|
|
|
480
480
|
onBlur: u,
|
|
481
481
|
onFocus: d
|
|
482
482
|
}));
|
|
483
|
-
},
|
|
484
|
-
const { value: o, onChange: s, onBeforeChange: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = n, { id: f } = x(), { inputId: m, ariaDescribedBy: L } =
|
|
483
|
+
}, Wt = ({ className: e, emptyLabel: t, signedLabel: a, ...n }) => {
|
|
484
|
+
const { value: o, onChange: s, onBeforeChange: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = n, { id: f } = x(), { inputId: m, ariaDescribedBy: L } = z(), h = ce(), p = V(), g = V(), E = V(null), S = o == null ? void 0 : o.url, [Y, P] = q(!1);
|
|
485
485
|
Ie(() => {
|
|
486
486
|
var y;
|
|
487
487
|
(y = g.current) == null || y.focus({
|
|
@@ -507,7 +507,7 @@ const Ut = (e) => {
|
|
|
507
507
|
}, [
|
|
508
508
|
ee,
|
|
509
509
|
s
|
|
510
|
-
]),
|
|
510
|
+
]), Z = _(() => {
|
|
511
511
|
l == null || l();
|
|
512
512
|
}, [
|
|
513
513
|
l
|
|
@@ -518,19 +518,19 @@ const Ut = (e) => {
|
|
|
518
518
|
...v,
|
|
519
519
|
penColor: getComputedStyle(y).color || void 0
|
|
520
520
|
}), ge(g.current, p.current), S) {
|
|
521
|
-
const
|
|
522
|
-
|
|
521
|
+
const k = ve(S);
|
|
522
|
+
k && (p.current.fromData(k), P(!0));
|
|
523
523
|
} else
|
|
524
524
|
p.current.clear(), P(!1);
|
|
525
|
-
p.current.addEventListener("beginStroke",
|
|
525
|
+
p.current.addEventListener("beginStroke", Z), p.current.addEventListener("endStroke", $), typeof ResizeObserver < "u" && !E.current && (E.current = new ResizeObserver(() => {
|
|
526
526
|
g.current && ge(g.current, p == null ? void 0 : p.current);
|
|
527
527
|
})), (U = E.current) == null || U.observe(y);
|
|
528
528
|
} else
|
|
529
|
-
(B = E.current) == null || B.disconnect(), (D = p.current) == null || D.removeEventListener("endStroke", $), (O = p.current) == null || O.removeEventListener("beginStroke",
|
|
529
|
+
(B = E.current) == null || B.disconnect(), (D = p.current) == null || D.removeEventListener("endStroke", $), (O = p.current) == null || O.removeEventListener("beginStroke", Z);
|
|
530
530
|
}, [
|
|
531
531
|
v,
|
|
532
532
|
S,
|
|
533
|
-
|
|
533
|
+
Z,
|
|
534
534
|
$
|
|
535
535
|
]);
|
|
536
536
|
return le(() => {
|
|
@@ -554,7 +554,7 @@ const Ut = (e) => {
|
|
|
554
554
|
"aria-describedby": L
|
|
555
555
|
}));
|
|
556
556
|
}, de = ({ children: e, className: t, ...a }) => {
|
|
557
|
-
const { value: n, onChange: o, onBeforeChange: s, disabled: l, readOnly: i, onBlur: c, onFocus: u } = a, { id: d, required: f, hasError: m } = x(), { inputId: L, ariaDescribedBy: h, labelId: p } =
|
|
557
|
+
const { value: n, onChange: o, onBeforeChange: s, disabled: l, readOnly: i, onBlur: c, onFocus: u } = a, { id: d, required: f, hasError: m } = x(), { inputId: L, ariaDescribedBy: h, labelId: p } = z(), g = ce(), E = n != null && n.url ? W(n.url) : void 0, { data: S = "" } = E ?? {
|
|
558
558
|
data: ""
|
|
559
559
|
};
|
|
560
560
|
Ie(() => {
|
|
@@ -608,7 +608,7 @@ const Ut = (e) => {
|
|
|
608
608
|
className: e
|
|
609
609
|
});
|
|
610
610
|
}, Q = ({ children: e, className: t, ...a }) => {
|
|
611
|
-
const { value: n, onChange: o, disabled: s, readOnly: l, onBlur: i, onFocus: c } = a, { labelId: u, ariaDescribedBy: d } =
|
|
611
|
+
const { value: n, onChange: o, disabled: s, readOnly: l, onBlur: i, onFocus: c } = a, { labelId: u, ariaDescribedBy: d } = z(), f = I(e, Q.Button), m = I(e, Q.Preview), L = _((p) => {
|
|
612
612
|
const g = p[0];
|
|
613
613
|
if (!g) {
|
|
614
614
|
o(null);
|
|
@@ -648,8 +648,8 @@ const Ut = (e) => {
|
|
|
648
648
|
onBlur: i,
|
|
649
649
|
onFocus: c
|
|
650
650
|
}));
|
|
651
|
-
},
|
|
652
|
-
const { value: n } = a, { inputId: o } =
|
|
651
|
+
}, Zt = ({ className: e, imageAlt: t, ...a }) => {
|
|
652
|
+
const { value: n } = a, { inputId: o } = z(), s = ce();
|
|
653
653
|
return /* @__PURE__ */ r.createElement("div", {
|
|
654
654
|
className: e,
|
|
655
655
|
"data-has-value": !0,
|
|
@@ -664,7 +664,7 @@ const Ut = (e) => {
|
|
|
664
664
|
"data-hook": "signature-image"
|
|
665
665
|
}, n.displayName || t));
|
|
666
666
|
}, se = ({ children: e, className: t, onHoverStart: a, onHoverEnd: n, onFocusChange: o, ...s }) => {
|
|
667
|
-
const { onSelectFiles: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = s, { inputId: f, ariaDescribedBy: m, labelId: L } =
|
|
667
|
+
const { onSelectFiles: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = s, { inputId: f, ariaDescribedBy: m, labelId: L } = z(), h = pt(), g = !!I(e, se.Text) ? Fe.map(e, (E) => /* @__PURE__ */ Le(E) && E.type === se.Text ? N(E, {
|
|
668
668
|
textId: h
|
|
669
669
|
}) : E) : /* @__PURE__ */ r.createElement("span", {
|
|
670
670
|
id: h
|
|
@@ -689,7 +689,7 @@ const Ut = (e) => {
|
|
|
689
689
|
onHoverEnd: n,
|
|
690
690
|
onFocusChange: o
|
|
691
691
|
}, g));
|
|
692
|
-
},
|
|
692
|
+
}, kt = ({ children: e, className: t, ...a }) => {
|
|
693
693
|
const { textId: n } = a;
|
|
694
694
|
return /* @__PURE__ */ r.createElement("span", {
|
|
695
695
|
id: n,
|
|
@@ -697,24 +697,24 @@ const Ut = (e) => {
|
|
|
697
697
|
}, e);
|
|
698
698
|
};
|
|
699
699
|
b.Label = ut;
|
|
700
|
-
b.Input =
|
|
700
|
+
b.Input = J;
|
|
701
701
|
b.Description = it;
|
|
702
702
|
b.Error = ct;
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
703
|
+
J.Header = K;
|
|
704
|
+
J.Value = H;
|
|
705
|
+
K.Tabs = M;
|
|
706
|
+
K.Clear = zt;
|
|
707
707
|
M.Draw = Pt;
|
|
708
708
|
M.Type = Mt;
|
|
709
709
|
M.Upload = Ht;
|
|
710
|
-
H.Canvas =
|
|
710
|
+
H.Canvas = Wt;
|
|
711
711
|
H.Type = de;
|
|
712
712
|
H.Upload = Q;
|
|
713
713
|
de.Value = Yt;
|
|
714
|
-
Q.Preview =
|
|
714
|
+
Q.Preview = Zt;
|
|
715
715
|
Q.Button = se;
|
|
716
|
-
se.Text =
|
|
717
|
-
const
|
|
716
|
+
se.Text = kt;
|
|
717
|
+
const Gt = () => {
|
|
718
718
|
const { t: e } = He();
|
|
719
719
|
return {
|
|
720
720
|
drawLabel: e("field.signature.mode.draw.label"),
|
|
@@ -770,10 +770,10 @@ const kt = () => {
|
|
|
770
770
|
}, /* @__PURE__ */ r.createElement("path", {
|
|
771
771
|
fillRule: "evenodd",
|
|
772
772
|
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"
|
|
773
|
-
})), jt = "_container_63unz_1",
|
|
773
|
+
})), jt = "_container_63unz_1", Jt = "_header_63unz_7", Kt = "_tabs_63unz_13", Qt = "_tab_63unz_13", en = "_tabHover_63unz_43", tn = "_tabSelected_63unz_48", nn = "_tabIcon_63unz_78", an = "_uploadButton_63unz_85", on = "_uploadButtonHover_63unz_138", sn = "_uploadButtonLabel_63unz_155", rn = "_clear_63unz_159", ln = "_value_63unz_191", cn = "_box_63unz_196", un = "_uploadBox_63unz_197", dn = "_dropZone_63unz_228", mn = "_dropZoneHover_63unz_243", pn = "_boxHover_63unz_280", fn = "_typeInput_63unz_335", T = {
|
|
774
774
|
container: jt,
|
|
775
|
-
header:
|
|
776
|
-
tabs:
|
|
775
|
+
header: Jt,
|
|
776
|
+
tabs: Kt,
|
|
777
777
|
tab: Qt,
|
|
778
778
|
tabHover: en,
|
|
779
779
|
tabSelected: tn,
|
|
@@ -793,18 +793,18 @@ const kt = () => {
|
|
|
793
793
|
content: e,
|
|
794
794
|
locale: t
|
|
795
795
|
}), gn = () => {
|
|
796
|
-
var
|
|
797
|
-
const e =
|
|
798
|
-
globalClasses:
|
|
796
|
+
var Z, te, y, w, U, B;
|
|
797
|
+
const e = Gt(), { disabled: t, readOnly: a } = x(), n = !t && !a, o = X({
|
|
798
|
+
globalClasses: Je,
|
|
799
799
|
moduleClasses: {
|
|
800
800
|
base: T.tab,
|
|
801
801
|
hover: T.tabHover,
|
|
802
802
|
selected: T.tabSelected
|
|
803
803
|
}
|
|
804
|
-
}), s = ({ isSelected: D, isHovered: O, isFocused:
|
|
804
|
+
}), s = ({ isSelected: D, isHovered: O, isFocused: k }) => o({
|
|
805
805
|
isSelected: D,
|
|
806
806
|
isHovered: O,
|
|
807
|
-
isFocused:
|
|
807
|
+
isFocused: k,
|
|
808
808
|
isInteractive: n
|
|
809
809
|
}), i = X({
|
|
810
810
|
globalClasses: $e,
|
|
@@ -838,7 +838,7 @@ const kt = () => {
|
|
|
838
838
|
base: T.uploadButton,
|
|
839
839
|
hover: T.uploadButtonHover
|
|
840
840
|
}
|
|
841
|
-
}), m = (B = (U = (w = (y = (te = (
|
|
841
|
+
}), m = (B = (U = (w = (y = (te = (Z = Te().signature) == null ? void 0 : Z.elementProps) == null ? void 0 : te.dropZone) == null ? void 0 : y.elementProps) == null ? void 0 : w.uploadButton) == null ? void 0 : U.elementProps) == null ? void 0 : B.icon, { wix: L, className: h, ...p } = m ?? {}, g = ze(ne.SIGNATURE, ne.SIGNATURE_DROP_ZONE, ne.SIGNATURE_UPLOAD_BUTTON, ne.UPLOAD_BUTTON_LABEL), E = V(null), [S, Y] = q(!1), [P, v] = q(!1), ee = _(() => {
|
|
842
842
|
var D;
|
|
843
843
|
Y(!0), (D = E.current) == null || D.runAnimationForward();
|
|
844
844
|
}, []), $ = _(() => {
|
|
@@ -846,11 +846,11 @@ const kt = () => {
|
|
|
846
846
|
Y(!1), (D = E.current) == null || D.runAnimationBackward();
|
|
847
847
|
}, []);
|
|
848
848
|
return /* @__PURE__ */ r.createElement(b, null, /* @__PURE__ */ r.createElement(b.Label, {
|
|
849
|
-
className: F(
|
|
849
|
+
className: F(We, ae.label)
|
|
850
850
|
}, /* @__PURE__ */ r.createElement(b.Label.Required, {
|
|
851
851
|
className: F(Ye, ae.requiredMark)
|
|
852
852
|
})), /* @__PURE__ */ r.createElement(b.Input, {
|
|
853
|
-
className: F(
|
|
853
|
+
className: F(Ze, T.container)
|
|
854
854
|
}, /* @__PURE__ */ r.createElement(b.Input.Header, {
|
|
855
855
|
className: T.header
|
|
856
856
|
}, /* @__PURE__ */ r.createElement(b.Input.Header.Tabs, {
|
|
@@ -888,9 +888,9 @@ const kt = () => {
|
|
|
888
888
|
className: T.typeInput,
|
|
889
889
|
placeholder: e.placeholder
|
|
890
890
|
})), /* @__PURE__ */ r.createElement(b.Input.Value.Upload, {
|
|
891
|
-
className: ({ isHovered: D, isFocused: O, isDropTarget:
|
|
891
|
+
className: ({ isHovered: D, isFocused: O, isDropTarget: k }) => F(T.uploadBox, d({
|
|
892
892
|
isSelected: !1,
|
|
893
|
-
isHovered: D ||
|
|
893
|
+
isHovered: D || k,
|
|
894
894
|
isFocused: O,
|
|
895
895
|
isInteractive: n
|
|
896
896
|
}))
|
|
@@ -910,7 +910,7 @@ const kt = () => {
|
|
|
910
910
|
}, p.svg ? /* @__PURE__ */ r.createElement(we, {
|
|
911
911
|
...p,
|
|
912
912
|
ref: E,
|
|
913
|
-
className: F(
|
|
913
|
+
className: F(ke, Ge, h)
|
|
914
914
|
}) : null, /* @__PURE__ */ r.createElement(b.Input.Value.Upload.Button.Text, {
|
|
915
915
|
className: F(fe.base, T.uploadButtonLabel, g, {
|
|
916
916
|
[fe.hover]: n && (S || P)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import t, { useRef as
|
|
2
|
-
import
|
|
1
|
+
import t, { useRef as X, useCallback as y } from "react";
|
|
2
|
+
import $ from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import p from "classnames";
|
|
4
|
-
import {
|
|
4
|
+
import { bD as b, bx as j, ax as q, aw as z, au as G, at as J, aC as K, aB as Q, av as Y, b as Z, as as tt, aA as et } from "./form-jK8ezTss.js";
|
|
5
5
|
import { ProgressBar as nt, Button as w } from "react-aria-components";
|
|
6
|
-
import { f as
|
|
7
|
-
import { u as
|
|
6
|
+
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { u as T } from "./use-element-state-class-name-CkT6Ga8t.js";
|
|
8
8
|
function ot(e) {
|
|
9
9
|
const s = "calc(50% - 2px)";
|
|
10
10
|
return /* @__PURE__ */ t.createElement(nt, {
|
|
@@ -38,7 +38,7 @@ function ot(e) {
|
|
|
38
38
|
})))));
|
|
39
39
|
}
|
|
40
40
|
const r = ({ children: e }) => {
|
|
41
|
-
const { id: o, FieldLayout: s } =
|
|
41
|
+
const { id: o, FieldLayout: s } = b(), n = c(e, r.SubmitButton);
|
|
42
42
|
return /* @__PURE__ */ t.createElement(s, {
|
|
43
43
|
fieldId: o,
|
|
44
44
|
renderLabel: () => null,
|
|
@@ -46,95 +46,95 @@ const r = ({ children: e }) => {
|
|
|
46
46
|
renderDescription: () => null
|
|
47
47
|
});
|
|
48
48
|
}, g = ({ className: e, children: o }) => {
|
|
49
|
-
const s =
|
|
49
|
+
const s = c(o, S), n = c(o, E), a = c(o, B);
|
|
50
50
|
return /* @__PURE__ */ t.createElement("div", {
|
|
51
51
|
className: e
|
|
52
52
|
}, s, n, a);
|
|
53
53
|
}, S = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
|
|
54
|
-
const { showPreviousButton: a, onPreviousClick:
|
|
54
|
+
const { showPreviousButton: a, onPreviousClick: i, previousText: v } = b();
|
|
55
55
|
if (!a)
|
|
56
56
|
return null;
|
|
57
|
-
const
|
|
57
|
+
const l = c(n, S.Label), m = c(n, S.Icon);
|
|
58
58
|
return /* @__PURE__ */ t.createElement(w, {
|
|
59
59
|
className: e,
|
|
60
60
|
"aria-label": v,
|
|
61
|
-
onPress:
|
|
61
|
+
onPress: i,
|
|
62
62
|
onHoverStart: o,
|
|
63
63
|
onHoverEnd: s
|
|
64
|
-
}, m,
|
|
64
|
+
}, m, l ?? /* @__PURE__ */ t.createElement(W, null));
|
|
65
65
|
}, E = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
|
|
66
|
-
const { showNextButton: a, onNextClick:
|
|
66
|
+
const { showNextButton: a, onNextClick: i, nextText: v } = b();
|
|
67
67
|
if (!a)
|
|
68
68
|
return null;
|
|
69
|
-
const
|
|
69
|
+
const l = c(n, E.Label), m = c(n, E.Icon);
|
|
70
70
|
return /* @__PURE__ */ t.createElement(w, {
|
|
71
71
|
className: e,
|
|
72
72
|
"aria-label": v,
|
|
73
|
-
onPress:
|
|
73
|
+
onPress: i,
|
|
74
74
|
onHoverStart: o,
|
|
75
75
|
onHoverEnd: s
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
const { showSubmitButton: a, onSubmitClick:
|
|
76
|
+
}, l ?? /* @__PURE__ */ t.createElement(V, null), m);
|
|
77
|
+
}, B = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
|
|
78
|
+
const { showSubmitButton: a, onSubmitClick: i, submitText: v, isDisabled: l, isInProgress: m, isSubmitting: C } = b();
|
|
79
79
|
if (!a)
|
|
80
80
|
return null;
|
|
81
|
-
const f =
|
|
81
|
+
const f = c(n, B.Label), I = c(n, B.Icon), d = c(n, B.Loader), _ = C || m;
|
|
82
82
|
return /* @__PURE__ */ t.createElement(w, {
|
|
83
83
|
className: e,
|
|
84
84
|
"aria-label": v,
|
|
85
|
-
onPress: _ ? void 0 :
|
|
85
|
+
onPress: _ ? void 0 : i,
|
|
86
86
|
onHoverStart: o,
|
|
87
87
|
onHoverEnd: s,
|
|
88
|
-
isDisabled:
|
|
88
|
+
isDisabled: l && !_,
|
|
89
89
|
"aria-disabled": _ || void 0,
|
|
90
90
|
"data-in-progress": m
|
|
91
|
-
}, m && d ? d : /* @__PURE__ */ t.createElement(t.Fragment, null, f ?? /* @__PURE__ */ t.createElement(
|
|
92
|
-
},
|
|
93
|
-
const { submitText: o } =
|
|
91
|
+
}, m && d ? d : /* @__PURE__ */ t.createElement(t.Fragment, null, f ?? /* @__PURE__ */ t.createElement(D, null), I));
|
|
92
|
+
}, D = ({ className: e }) => {
|
|
93
|
+
const { submitText: o } = b();
|
|
94
94
|
return /* @__PURE__ */ t.createElement("span", {
|
|
95
95
|
className: e
|
|
96
96
|
}, o);
|
|
97
|
-
},
|
|
98
|
-
const { previousText: o } =
|
|
97
|
+
}, W = ({ className: e }) => {
|
|
98
|
+
const { previousText: o } = b();
|
|
99
99
|
return /* @__PURE__ */ t.createElement("span", {
|
|
100
100
|
className: e
|
|
101
101
|
}, o);
|
|
102
|
-
},
|
|
103
|
-
const { nextText: o } =
|
|
102
|
+
}, V = ({ className: e }) => {
|
|
103
|
+
const { nextText: o } = b();
|
|
104
104
|
return /* @__PURE__ */ t.createElement("span", {
|
|
105
105
|
className: e
|
|
106
106
|
}, o);
|
|
107
107
|
}, R = ({ children: e }) => /* @__PURE__ */ t.createElement(t.Fragment, null, e), st = ({ className: e }) => /* @__PURE__ */ t.createElement("span", {
|
|
108
108
|
className: e
|
|
109
109
|
}, /* @__PURE__ */ t.createElement(ot, null));
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
S.Label =
|
|
110
|
+
B.Label = D;
|
|
111
|
+
B.Icon = R;
|
|
112
|
+
B.Loader = st;
|
|
113
|
+
S.Label = W;
|
|
114
114
|
S.Icon = R;
|
|
115
|
-
E.Label =
|
|
115
|
+
E.Label = V;
|
|
116
116
|
E.Icon = R;
|
|
117
117
|
g.PreviousButton = S;
|
|
118
118
|
g.NextButton = E;
|
|
119
|
-
g.SubmitButton =
|
|
119
|
+
g.SubmitButton = B;
|
|
120
120
|
r.SubmitButton = g;
|
|
121
|
-
const at = "
|
|
121
|
+
const at = "_navigationContainer_16wic_1", rt = "_rowSpacing_16wic_6", ut = "_navigationButton_16wic_10", ct = "_nextButton_16wic_33", it = "_previousButton_16wic_59", lt = "_navigationButtonHover_16wic_100", mt = "_button_16wic_138", Bt = "_buttonNoSteps_16wic_186", bt = "_buttonWithSteps_16wic_190", vt = "_buttonHover_16wic_194", St = "_progress_16wic_260", u = {
|
|
122
122
|
navigationContainer: at,
|
|
123
123
|
rowSpacing: rt,
|
|
124
124
|
navigationButton: ut,
|
|
125
|
-
nextButton:
|
|
126
|
-
previousButton:
|
|
127
|
-
navigationButtonHover:
|
|
125
|
+
nextButton: ct,
|
|
126
|
+
previousButton: it,
|
|
127
|
+
navigationButtonHover: lt,
|
|
128
128
|
button: mt,
|
|
129
|
-
buttonNoSteps:
|
|
130
|
-
buttonWithSteps:
|
|
129
|
+
buttonNoSteps: Bt,
|
|
130
|
+
buttonWithSteps: bt,
|
|
131
131
|
buttonHover: vt,
|
|
132
132
|
progress: St
|
|
133
133
|
}, P = () => {
|
|
134
|
-
const e =
|
|
134
|
+
const e = X(null), o = y(() => {
|
|
135
135
|
var n;
|
|
136
136
|
return (n = e.current) == null ? void 0 : n.runAnimationForward();
|
|
137
|
-
}, []), s =
|
|
137
|
+
}, []), s = y(() => {
|
|
138
138
|
var n;
|
|
139
139
|
return (n = e.current) == null ? void 0 : n.runAnimationBackward();
|
|
140
140
|
}, []);
|
|
@@ -144,27 +144,27 @@ const at = "_navigationContainer_i93zw_1", rt = "_rowSpacing_i93zw_6", ut = "_na
|
|
|
144
144
|
onHoverEnd: s
|
|
145
145
|
};
|
|
146
146
|
}, O = ({ icon: e, iconRef: o, iconClassName: s }) => {
|
|
147
|
-
const { wix: n, className: a, ...
|
|
148
|
-
return
|
|
149
|
-
...
|
|
147
|
+
const { wix: n, className: a, ...i } = e ?? {};
|
|
148
|
+
return i.svg ? /* @__PURE__ */ t.createElement($, {
|
|
149
|
+
...i,
|
|
150
150
|
ref: o,
|
|
151
151
|
className: p(Z, s, a)
|
|
152
152
|
}) : null;
|
|
153
153
|
}, Et = () => {
|
|
154
|
-
var A, F, h, U, M,
|
|
155
|
-
const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } =
|
|
154
|
+
var A, F, h, U, M, k;
|
|
155
|
+
const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = b(), v = !s && !(a || n), l = j(), m = (F = (A = l.submitButton) == null ? void 0 : A.elementProps) == null ? void 0 : F.icon, C = (U = (h = l.nextButton) == null ? void 0 : h.elementProps) == null ? void 0 : U.icon, f = (k = (M = l.previousButton) == null ? void 0 : M.elementProps) == null ? void 0 : k.icon, I = T({
|
|
156
156
|
globalClasses: Y,
|
|
157
157
|
moduleClasses: {
|
|
158
158
|
base: p(u.navigationButton, u.previousButton),
|
|
159
159
|
hover: u.navigationButtonHover
|
|
160
160
|
}
|
|
161
|
-
}), d =
|
|
161
|
+
}), d = T({
|
|
162
162
|
globalClasses: tt,
|
|
163
163
|
moduleClasses: {
|
|
164
164
|
base: p(u.navigationButton, u.nextButton),
|
|
165
165
|
hover: u.navigationButtonHover
|
|
166
166
|
}
|
|
167
|
-
}), _ =
|
|
167
|
+
}), _ = T({
|
|
168
168
|
globalClasses: et,
|
|
169
169
|
moduleClasses: {
|
|
170
170
|
base: p(u.button, {
|
|
@@ -173,7 +173,7 @@ const at = "_navigationContainer_i93zw_1", rt = "_rowSpacing_i93zw_6", ut = "_na
|
|
|
173
173
|
}),
|
|
174
174
|
hover: u.buttonHover
|
|
175
175
|
}
|
|
176
|
-
}),
|
|
176
|
+
}), x = P(), H = P(), L = P();
|
|
177
177
|
return /* @__PURE__ */ t.createElement(r, null, /* @__PURE__ */ t.createElement(r.SubmitButton, {
|
|
178
178
|
className: p({
|
|
179
179
|
[u.navigationContainer]: e,
|
|
@@ -184,26 +184,26 @@ const at = "_navigationContainer_i93zw_1", rt = "_rowSpacing_i93zw_6", ut = "_na
|
|
|
184
184
|
isSelected: !1,
|
|
185
185
|
isHovered: N
|
|
186
186
|
}),
|
|
187
|
-
onHoverStart:
|
|
188
|
-
onHoverEnd:
|
|
187
|
+
onHoverStart: L.onHoverStart,
|
|
188
|
+
onHoverEnd: L.onHoverEnd
|
|
189
189
|
}, /* @__PURE__ */ t.createElement(r.SubmitButton.PreviousButton.Label, {
|
|
190
|
-
className:
|
|
190
|
+
className: q
|
|
191
191
|
}), /* @__PURE__ */ t.createElement(r.SubmitButton.PreviousButton.Icon, null, /* @__PURE__ */ t.createElement(O, {
|
|
192
192
|
icon: f,
|
|
193
|
-
iconRef:
|
|
194
|
-
iconClassName:
|
|
193
|
+
iconRef: L.iconRef,
|
|
194
|
+
iconClassName: z
|
|
195
195
|
}))), /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton, {
|
|
196
196
|
className: ({ isHovered: N }) => d({
|
|
197
197
|
isSelected: !1,
|
|
198
198
|
isHovered: N
|
|
199
199
|
}),
|
|
200
|
-
onHoverStart:
|
|
201
|
-
onHoverEnd:
|
|
200
|
+
onHoverStart: H.onHoverStart,
|
|
201
|
+
onHoverEnd: H.onHoverEnd
|
|
202
202
|
}, /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton.Label, {
|
|
203
203
|
className: G
|
|
204
204
|
}), /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton.Icon, null, /* @__PURE__ */ t.createElement(O, {
|
|
205
205
|
icon: C,
|
|
206
|
-
iconRef:
|
|
206
|
+
iconRef: H.iconRef,
|
|
207
207
|
iconClassName: J
|
|
208
208
|
}))), /* @__PURE__ */ t.createElement(r.SubmitButton.SubmitButton, {
|
|
209
209
|
className: ({ isHovered: N }) => _({
|
|
@@ -211,13 +211,13 @@ const at = "_navigationContainer_i93zw_1", rt = "_rowSpacing_i93zw_6", ut = "_na
|
|
|
211
211
|
isHovered: N,
|
|
212
212
|
isInteractive: v
|
|
213
213
|
}),
|
|
214
|
-
onHoverStart:
|
|
215
|
-
onHoverEnd:
|
|
214
|
+
onHoverStart: x.onHoverStart,
|
|
215
|
+
onHoverEnd: x.onHoverEnd
|
|
216
216
|
}, /* @__PURE__ */ t.createElement(r.SubmitButton.SubmitButton.Label, {
|
|
217
217
|
className: K
|
|
218
218
|
}), /* @__PURE__ */ t.createElement(r.SubmitButton.SubmitButton.Icon, null, /* @__PURE__ */ t.createElement(O, {
|
|
219
219
|
icon: m,
|
|
220
|
-
iconRef:
|
|
220
|
+
iconRef: x.iconRef,
|
|
221
221
|
iconClassName: Q
|
|
222
222
|
})), /* @__PURE__ */ t.createElement(r.SubmitButton.SubmitButton.Loader, {
|
|
223
223
|
className: u.progress
|