@wix/form-elements 1.63.0 → 1.65.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-B1VVk_Ui.js → appointment-rac-0kUk8XQJ.js} +5 -5
- package/dist/component/{bookings-address-rac-IQeHFdHT.js → bookings-address-rac-BUM0wpw0.js} +1 -1
- package/dist/component/{bookings-email-rac-z26A790r.js → bookings-email-rac-BHlvupVS.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Djf0GPP4.js → bookings-first-name-rac-Bwn6xv1U.js} +1 -1
- package/dist/component/{bookings-header-rac-CXOzAOpz.js → bookings-header-rac-BkRvQMi4.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CbB8alM9.js → bookings-last-name-rac-DRTj4VdX.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CXrLx7Pn.js → bookings-login-bar-rac-D-2Bt7Kx.js} +5 -5
- package/dist/component/{bookings-phone-rac-DGYx7h5g.js → bookings-phone-rac-CTcHHpDr.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-viJG57XF.js → bookings-rich-text-rac-n-w9iWII.js} +1 -1
- package/dist/component/{checkbox-field-rac-e-RAmupX.js → checkbox-field-rac-BamOJv3P.js} +43 -43
- package/dist/component/checkbox-group-field-headless-BmKJbEi0.js +210 -0
- package/dist/component/checkbox-group-field-rac-CC8qfj0Y.js +40 -0
- package/dist/component/{checkbox-group-rac-CDfDTWqz.js → checkbox-group-rac-CsrP7zD5.js} +1 -1
- package/dist/component/{checkbox-rac-BRBKYD_5.js → checkbox-rac-X6E-fJ8k.js} +1 -1
- package/dist/component/{contacts-address-rac-BtWWQi77.js → contacts-address-rac-oYnkIZ6m.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DaEUXJTf.js → contacts-birthdate-rac-B7p8LgYA.js} +1 -1
- package/dist/component/{contacts-company-rac-IgRyjtcM.js → contacts-company-rac-cjLRO5J-.js} +1 -1
- package/dist/component/{contacts-email-rac-BS1MDrMk.js → contacts-email-rac-BlJJSkGK.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BAvXypDF.js → contacts-first-name-rac-Nl-MDndn.js} +1 -1
- package/dist/component/{contacts-last-name-rac-C289RYPl.js → contacts-last-name-rac-DhxAobRI.js} +1 -1
- package/dist/component/{contacts-phone-rac-DIpyskam.js → contacts-phone-rac-CZLWlH0T.js} +1 -1
- package/dist/component/{contacts-position-rac-nPeh3lKU.js → contacts-position-rac-DlKC0lCU.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-Ci5OLk68.js → contacts-subscribe-rac-POSKh1Ta.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-C4WB-SR0.js → contacts-tax-id-rac-uyBKxOJn.js} +1 -1
- package/dist/component/{date-availability-HHjPx4Uv.js → date-availability-DnFJD1aS.js} +1 -1
- package/dist/component/{date-input-field-rac-GFgFcpX2.js → date-input-field-rac-DojzGm-i.js} +22 -22
- package/dist/component/{date-input-rac-B9BUEIA-.js → date-input-rac-BaPKcAuU.js} +1 -1
- package/dist/component/{date-picker-field-rac-BfjYIIuY.js → date-picker-field-rac-C1rzJMV8.js} +24 -24
- package/dist/component/{date-picker-rac-Bd2UN0ZF.js → date-picker-rac-BHsOfkYn.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CAXnxLQP.js → date-time-input-field-rac-B4jAAxU8.js} +32 -32
- package/dist/component/{date-time-input-rac-BuJ3Awlh.js → date-time-input-rac-XyL5z_ma.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DKp4cBVa.js → dext-checkbox-group-rac-DzpdOP3i.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BMu_k06A.js → dext-checkbox-rac-BUWkvW5s.js} +1 -1
- package/dist/component/{dext-date-picker-rac-L3sdldhT.js → dext-date-picker-rac-CR0PUoOn.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-UmabFzDN.js → dext-date-time-input-rac-D3WhLSKK.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DbjgYaG-.js → dext-dropdown-rac-BJ1UfAIM.js} +1 -1
- package/dist/component/{dext-email-rac-rNudrOOK.js → dext-email-rac-xk_5C79-.js} +1 -1
- package/dist/component/{dext-number-input-rac-hw1FTrJL.js → dext-number-input-rac-Cu1Sqoac.js} +1 -1
- package/dist/component/{dext-phone-rac-DrZ_Vwv2.js → dext-phone-rac-S34qxXwg.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DAt2ax-I.js → dext-radio-group-rac-DXnAk_eU.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BW2Ike11.js → dext-rating-input-rac-ewGpgB63.js} +1 -1
- package/dist/component/{dext-tags-rac-DDzwlKrR.js → dext-tags-rac-BApZKGqP.js} +2 -2
- package/dist/component/{dext-text-area-rac-D0xf4z3z.js → dext-text-area-rac-DBtuaiwM.js} +1 -1
- package/dist/component/{dext-text-input-rac-Da04OLmq.js → dext-text-input-rac-qI8VECmA.js} +1 -1
- package/dist/component/{dext-url-input-rac-B-g4xTqh.js → dext-url-input-rac-C6vzqNjn.js} +1 -1
- package/dist/component/donation-rac-BDVKvG4j.js +302 -0
- package/dist/component/{dropdown-field-headless-Js5TxdU4.js → dropdown-field-headless-DBl8vGed.js} +16 -16
- package/dist/component/{dropdown-field-rac-BDxcvX00.js → dropdown-field-rac-O6G7_kSn.js} +9 -9
- package/dist/component/{dropdown-rac-B5UHNzV-.js → dropdown-rac-BImZ5Jwe.js} +1 -1
- package/dist/component/{ecom-address-rac-0zm4bX37.js → ecom-address-rac-BU4XZ_Do.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DCXoI33l.js → ecom-subscription-checkbox-rac-DLzpoNYm.js} +3 -3
- package/dist/component/{email-input-field-rac-svf6hUHF.js → email-input-field-rac-Ui0p35z5.js} +45 -45
- package/dist/component/{events-repeater-rac-DMIqzuVK.js → events-repeater-rac-bPKOOOit.js} +49 -49
- package/dist/component/{events-rsvp-rac-B_YD4ckO.js → events-rsvp-rac-lsRBBfPQ.js} +3 -3
- package/dist/component/{field-error-headless-DTKnr5Zx.js → field-error-headless-D6iejMQP.js} +3 -3
- package/dist/component/{field-label-headless-DV4aNd5Y.js → field-label-headless-BWLfU3YB.js} +4 -4
- package/dist/component/field-rac.module-DnUIb9Oh.js +21 -0
- package/dist/component/{file-upload-rac-lGKJjG3m.js → file-upload-rac-DqKL8QQZ.js} +116 -116
- package/dist/component/{fixed-payment-rac-BVS6glii.js → fixed-payment-rac-BDtRB8w2.js} +14 -14
- package/dist/component/{form-DzjdnO7t.js → form-CtWkUmxc.js} +1563 -1556
- package/dist/component/form-element-classes-BSMjWijd.js +63 -0
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-tzBH-8Yh.js → header-field-rac-BLM8RCDY.js} +7 -7
- package/dist/component/{header-rac-6thQAvVF.js → header-rac-DViRwafg.js} +1 -1
- package/dist/component/image-choice-rac-D76t2y-b.js +141 -0
- package/dist/component/{index-Lnx0829a.js → index--iRBHLXJ.js} +4 -4
- package/dist/component/{index-DIP7KB8P.js → index-pEItT2oo.js} +2 -2
- package/dist/component/{isObjectLike-B_1KizZV.js → isObjectLike-968AHV2b.js} +1 -1
- package/dist/component/{multiline-address-field-rac-BY2SUp2d.js → multiline-address-field-rac-CObOc8KE.js} +82 -82
- package/dist/component/{multiline-address-rac-BL8Yp4F0.js → multiline-address-rac-1qVZkN41.js} +1 -1
- package/dist/component/{number-input-field-rac-x0yFmXbe.js → number-input-field-rac-CPQ3u0N7.js} +19 -19
- package/dist/component/{number-input-rac-pJXc2YsD.js → number-input-rac-Bq1UyUPZ.js} +1 -1
- package/dist/component/{password-rac-B4XCP64b.js → password-rac-BZPK1VkN.js} +15 -15
- package/dist/component/{payment-input-rac-CZdOAjK4.js → payment-input-rac-CQrV0WmN.js} +28 -28
- package/dist/component/{phone-input-field-rac-DO_V5Z_T.js → phone-input-field-rac-DzUE1-RF.js} +39 -39
- package/dist/component/{phone-rac-D16nLDjP.js → phone-rac-BovOZ7V5.js} +1 -1
- package/dist/component/{product-list-rac-DER8gVqy.js → product-list-rac-CeGm1_WN.js} +71 -71
- package/dist/component/quiz-radio-group-rac-Lw2thQqC.js +13 -0
- package/dist/component/{radio-group-field-rac-Dt2pU0VV.js → radio-group-field-rac-BSVmjEgZ.js} +8 -8
- package/dist/component/{radio-group-field-rac.module--sO0VqCA.js → radio-group-field-rac.module-Cb3mm0f2.js} +7 -7
- package/dist/component/{radio-group-rac-CqCmtkNQ.js → radio-group-rac-BHhOCSQ2.js} +1 -1
- package/dist/component/{rating-input-field-rac-xDrHHcL2.js → rating-input-field-rac-BvbBZZDO.js} +31 -31
- package/dist/component/{rating-input-rac-Bo5E9N87.js → rating-input-rac-DDe1EBpt.js} +1 -1
- package/dist/component/{rich-content-rac.module-CJXbNca9.js → rich-content-rac.module-BacYkzEv.js} +1 -1
- package/dist/component/{rich-text-field-rac-CkV0Z9F-.js → rich-text-field-rac-D1W0mUjr.js} +3 -3
- package/dist/component/{rich-text-rac-59DbKpXz.js → rich-text-rac-B-cOn0RU.js} +1 -1
- package/dist/component/{service-dropdown-rac-BLnflnUr.js → service-dropdown-rac-CebfMkGP.js} +41 -41
- package/dist/component/services-multi-choice-rac-C4bF1xhB.js +76 -0
- package/dist/component/{signature-rac-Bb5IaS28.js → signature-rac-DWWT65Ez.js} +48 -48
- package/dist/component/{submit-button-rac-Bjyi8sUA.js → submit-button-rac-_mgn4ChE.js} +6 -6
- package/dist/component/{tags-field-rac-C_VO3_69.js → tags-field-rac-7coCWj0y.js} +39 -39
- package/dist/component/{tags-rac-CKiutCWe.js → tags-rac-rgsn8Os0.js} +1 -1
- package/dist/component/{text-area-field-rac-Cg-vIhFe.js → text-area-field-rac-5lUQxnNM.js} +15 -15
- package/dist/component/{text-area-rac-tMFx38UD.js → text-area-rac-DpGOBzN3.js} +1 -1
- package/dist/component/{text-input-field-rac-CgN_2hOD.js → text-input-field-rac-CgWadDfM.js} +6 -6
- package/dist/component/{text-input-headless-CkhvKrFp.js → text-input-headless-fhxuPytc.js} +11 -11
- package/dist/component/{text-input-rac-BsyBgd3b.js → text-input-rac-kgWS3UUV.js} +1 -1
- package/dist/component/{time-input-rac-BxRVJtHE.js → time-input-rac-CuLUJcBH.js} +34 -34
- package/dist/component/{url-input-field-rac-B_1yVniS.js → url-input-field-rac-CAGHb2na.js} +22 -22
- package/dist/component/{url-input-rac-D8VrKYVe.js → url-input-rac-s5_SVi0h.js} +1 -1
- package/dist/component/{use-service-options-base-Ci9gIluo.js → use-service-options-base-CYAEJ75H.js} +6 -6
- package/dist/form.d.ts +3 -1
- package/package.json +2 -2
- package/dist/component/checkbox-group-field-headless-Cvia4lL6.js +0 -204
- package/dist/component/checkbox-group-field-rac-BXxk90dk.js +0 -33
- package/dist/component/donation-rac-gKeq72jg.js +0 -305
- package/dist/component/field-rac.module-DtugsLiL.js +0 -21
- package/dist/component/form-element-classes-Bi-nNM8q.js +0 -55
- package/dist/component/image-choice-rac-Dx1b-saW.js +0 -141
- package/dist/component/quiz-radio-group-rac-BgTmHHi4.js +0 -13
- package/dist/component/services-multi-choice-rac-C-bFjwx8.js +0 -76
package/dist/component/{service-dropdown-rac-BLnflnUr.js → service-dropdown-rac-CebfMkGP.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import t, { useRef as
|
|
1
|
+
import t, { useRef as N, useMemo as g, useCallback as h, useEffect as T } from "react";
|
|
2
2
|
import { RicosViewer as A } from "@wix/ricos/viewer";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import { D as
|
|
7
|
-
import { C as
|
|
8
|
-
import { E as
|
|
3
|
+
import m from "classnames";
|
|
4
|
+
import { ae as w, as as b, F as M, ai as y, ab as U, h as V } from "./form-CtWkUmxc.js";
|
|
5
|
+
import { u as q } from "./use-service-options-base-CYAEJ75H.js";
|
|
6
|
+
import { D as d } from "./dropdown-field-headless-DBl8vGed.js";
|
|
7
|
+
import { C as x } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
|
+
import { E as H } from "./error-icon-hZxQ6DEy.js";
|
|
9
9
|
import { H as k } from "./custom-focus-class-_483Pkwp.js";
|
|
10
|
-
import { s as n } from "./field-rac.module-
|
|
11
|
-
import {
|
|
10
|
+
import { s as n } from "./field-rac.module-DnUIb9Oh.js";
|
|
11
|
+
import { z as B, P as W, y as j, C as z, q as Q, j as Y } from "./form-element-classes-BSMjWijd.js";
|
|
12
12
|
const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
13
|
-
const { actions: r } = w(), { t: C } = b(), { addOther: i, addOtherLabel: p } = e, c = p || C("add-other.default-other-option-label"), a =
|
|
13
|
+
const { actions: r } = w(), { t: C } = b(), { addOther: i, addOtherLabel: p } = e, c = p || C("add-other.default-other-option-label"), a = N(!0), E = g(() => {
|
|
14
14
|
var s;
|
|
15
|
-
return ((s = e.options) == null ? void 0 : s.map((
|
|
15
|
+
return ((s = e.options) == null ? void 0 : s.map((u) => u.id ?? "")) ?? [];
|
|
16
16
|
}, [
|
|
17
17
|
e.options
|
|
18
|
-
]), O =
|
|
18
|
+
]), O = h((s) => i ? [
|
|
19
19
|
...s,
|
|
20
20
|
{
|
|
21
21
|
value: c,
|
|
@@ -25,11 +25,11 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
25
25
|
] : s, [
|
|
26
26
|
i,
|
|
27
27
|
c
|
|
28
|
-
]), { isLoading: f, options: l, isEmpty: D, shouldRender: I, setIsLoading: F, setOptions: L, setIsEmpty:
|
|
28
|
+
]), { isLoading: f, options: l, isEmpty: D, shouldRender: I, setIsLoading: F, setOptions: L, setIsEmpty: S, processOptions: _ } = q({
|
|
29
29
|
fieldType: M.SERVICES_DROPDOWN,
|
|
30
30
|
isEditor: e.isEditor,
|
|
31
31
|
postProcessOptions: O
|
|
32
|
-
}), R =
|
|
32
|
+
}), R = h(async () => {
|
|
33
33
|
if (a.current && (r != null && r.fetchServices) && E.length > 0) {
|
|
34
34
|
a.current = !1, F(!0);
|
|
35
35
|
let s;
|
|
@@ -37,12 +37,12 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
37
37
|
s = await r.fetchServices({
|
|
38
38
|
serviceIds: E
|
|
39
39
|
});
|
|
40
|
-
} catch (
|
|
41
|
-
console.error(
|
|
40
|
+
} catch (u) {
|
|
41
|
+
console.error(u);
|
|
42
42
|
}
|
|
43
43
|
if (s) {
|
|
44
|
-
const
|
|
45
|
-
|
|
44
|
+
const u = _(s);
|
|
45
|
+
S(!i && u.length === 0), L(u);
|
|
46
46
|
} else
|
|
47
47
|
a.current = !0;
|
|
48
48
|
F(!1);
|
|
@@ -54,25 +54,25 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
54
54
|
i,
|
|
55
55
|
F,
|
|
56
56
|
L,
|
|
57
|
-
|
|
57
|
+
S
|
|
58
58
|
]);
|
|
59
59
|
T(() => {
|
|
60
60
|
if (!e.isEditor && l.length > 0) {
|
|
61
61
|
const s = i ? l.length - 1 : l.length;
|
|
62
|
-
|
|
62
|
+
S(s === 0);
|
|
63
63
|
}
|
|
64
64
|
}, [
|
|
65
65
|
l,
|
|
66
66
|
i,
|
|
67
|
-
|
|
67
|
+
S,
|
|
68
68
|
e.isEditor
|
|
69
69
|
]);
|
|
70
|
-
const v =
|
|
70
|
+
const v = h(() => {
|
|
71
71
|
e.onFocus && e.onFocus(), a.current && R();
|
|
72
72
|
}, [
|
|
73
73
|
R,
|
|
74
74
|
e.onFocus
|
|
75
|
-
]),
|
|
75
|
+
]), P = h(
|
|
76
76
|
(s) => {
|
|
77
77
|
e.onChange && e.onChange(s), a.current = !0;
|
|
78
78
|
},
|
|
@@ -86,11 +86,11 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
86
86
|
options: l,
|
|
87
87
|
isEmpty: D,
|
|
88
88
|
onFocus: v,
|
|
89
|
-
onChange:
|
|
89
|
+
onChange: P,
|
|
90
90
|
shouldRender: I
|
|
91
91
|
};
|
|
92
92
|
}, o = ({ children: e }) => {
|
|
93
|
-
const r = y(), { addOther: C } = r, i =
|
|
93
|
+
const r = y(), { addOther: C } = r, i = U(), p = r.isEditor || i.isEditor || i.isComposer, { isLoading: c, options: a, isEmpty: E, onFocus: O, onChange: f, shouldRender: l } = J({
|
|
94
94
|
...r,
|
|
95
95
|
isEditor: p
|
|
96
96
|
}), D = g(() => ({
|
|
@@ -106,36 +106,36 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
106
106
|
O,
|
|
107
107
|
f
|
|
108
108
|
]);
|
|
109
|
-
return !p && E && !C || !l ? null : /* @__PURE__ */ t.createElement(
|
|
109
|
+
return !p && E && !C || !l ? null : /* @__PURE__ */ t.createElement(V.Provider, {
|
|
110
110
|
value: {
|
|
111
111
|
v2: D
|
|
112
112
|
}
|
|
113
|
-
}, /* @__PURE__ */ t.createElement(
|
|
113
|
+
}, /* @__PURE__ */ t.createElement(d, null, e));
|
|
114
114
|
};
|
|
115
|
-
o.Label =
|
|
116
|
-
o.Trigger =
|
|
117
|
-
o.Options =
|
|
118
|
-
o.Description =
|
|
119
|
-
o.Error =
|
|
115
|
+
o.Label = d.Label;
|
|
116
|
+
o.Trigger = d.Trigger;
|
|
117
|
+
o.Options = d.Options;
|
|
118
|
+
o.Description = d.Description;
|
|
119
|
+
o.Error = d.Error;
|
|
120
120
|
const K = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(A, {
|
|
121
121
|
content: e,
|
|
122
122
|
locale: r
|
|
123
123
|
}), X = () => /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
|
|
124
|
-
className:
|
|
124
|
+
className: m(B, n.label)
|
|
125
125
|
}, /* @__PURE__ */ t.createElement(o.Label.Required, {
|
|
126
|
-
className:
|
|
126
|
+
className: m(W, n.requiredMark)
|
|
127
127
|
})), /* @__PURE__ */ t.createElement(o.Trigger, {
|
|
128
|
-
className:
|
|
129
|
-
}, /* @__PURE__ */ t.createElement(
|
|
128
|
+
className: m(j, n.input, n.dropdownTrigger)
|
|
129
|
+
}, /* @__PURE__ */ t.createElement(x, {
|
|
130
130
|
className: n.dropdownIcon
|
|
131
131
|
})), /* @__PURE__ */ t.createElement(o.Options, {
|
|
132
|
-
className:
|
|
132
|
+
className: m(z, n.selectPopover, n.dropdownPopover)
|
|
133
133
|
}, /* @__PURE__ */ t.createElement(o.Options.Option, {
|
|
134
|
-
className:
|
|
134
|
+
className: m(n.selectOption, k)
|
|
135
135
|
})), /* @__PURE__ */ t.createElement(o.Error, {
|
|
136
|
-
className:
|
|
137
|
-
}, /* @__PURE__ */ t.createElement(
|
|
138
|
-
className:
|
|
136
|
+
className: m(Q, n.error)
|
|
137
|
+
}, /* @__PURE__ */ t.createElement(H, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
|
|
138
|
+
className: m(Y, n.description)
|
|
139
139
|
}, K)), le = () => /* @__PURE__ */ t.createElement(X, null);
|
|
140
140
|
export {
|
|
141
141
|
le as ServiceDropdownRAC
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import e, { useEffect as C, useMemo as I } from "react";
|
|
2
|
+
import { RicosViewer as L } from "@wix/ricos/viewer";
|
|
3
|
+
import s from "classnames";
|
|
4
|
+
import { F as R, ai as F, h as d } from "./form-CtWkUmxc.js";
|
|
5
|
+
import { u as D } from "./use-service-options-base-CYAEJ75H.js";
|
|
6
|
+
import { C as n } from "./checkbox-group-field-headless-BmKJbEi0.js";
|
|
7
|
+
import { E as h } from "./error-icon-hZxQ6DEy.js";
|
|
8
|
+
import { s as i } from "./field-rac.module-DnUIb9Oh.js";
|
|
9
|
+
import { z as f, P as b, T as M, U as N, V as A, y as v, q as x, j as T } from "./form-element-classes-BSMjWijd.js";
|
|
10
|
+
import { o as _ } from "./options-rac.module-KM-VT_KY.js";
|
|
11
|
+
const P = (o) => {
|
|
12
|
+
var S;
|
|
13
|
+
const { isLoading: r, options: a, isEmpty: c, shouldRender: E, setOptions: l, setIsEmpty: m, setHasInitialDataLoaded: p } = D({
|
|
14
|
+
fieldType: R.SERVICES_MULTI_CHOICE,
|
|
15
|
+
isEditor: o.isEditor
|
|
16
|
+
}), u = (S = o.options) == null ? void 0 : S.every((O) => O.label && O.id);
|
|
17
|
+
return C(() => {
|
|
18
|
+
if (u && o.options) {
|
|
19
|
+
l(o.options), m(o.options.length === 0), p(!0);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
}, [
|
|
23
|
+
u,
|
|
24
|
+
o.options,
|
|
25
|
+
l,
|
|
26
|
+
m,
|
|
27
|
+
p
|
|
28
|
+
]), {
|
|
29
|
+
isLoading: r,
|
|
30
|
+
options: a,
|
|
31
|
+
isEmpty: c,
|
|
32
|
+
shouldRender: E
|
|
33
|
+
};
|
|
34
|
+
}, t = ({ children: o }) => {
|
|
35
|
+
const r = F(), { options: a, isEmpty: c, shouldRender: E } = P(r), l = I(() => ({
|
|
36
|
+
...r,
|
|
37
|
+
options: a
|
|
38
|
+
}), [
|
|
39
|
+
r,
|
|
40
|
+
a
|
|
41
|
+
]);
|
|
42
|
+
return !r.isEditor && c || !E ? null : /* @__PURE__ */ e.createElement(d.Provider, {
|
|
43
|
+
value: {
|
|
44
|
+
v2: l
|
|
45
|
+
}
|
|
46
|
+
}, /* @__PURE__ */ e.createElement(n, null, o));
|
|
47
|
+
};
|
|
48
|
+
t.Label = n.Label;
|
|
49
|
+
t.Options = n.Options;
|
|
50
|
+
t.Description = n.Description;
|
|
51
|
+
t.Error = n.Error;
|
|
52
|
+
const k = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(L, {
|
|
53
|
+
content: o,
|
|
54
|
+
locale: r
|
|
55
|
+
}), y = () => /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
56
|
+
className: s(f, i.label)
|
|
57
|
+
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
58
|
+
className: s(b, i.requiredMark)
|
|
59
|
+
})), /* @__PURE__ */ e.createElement(t.Options, {
|
|
60
|
+
className: s(M, _.options)
|
|
61
|
+
}, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
|
|
62
|
+
className: i.checkbox
|
|
63
|
+
}, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Input, {
|
|
64
|
+
className: s(N, i.checkboxInput)
|
|
65
|
+
}), /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Label, {
|
|
66
|
+
className: s(A, _.optionLabel)
|
|
67
|
+
})), /* @__PURE__ */ e.createElement(t.Options.Option.OtherInput, {
|
|
68
|
+
inputClassName: s(v, i.input)
|
|
69
|
+
}))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
70
|
+
className: s(x, i.error)
|
|
71
|
+
}, /* @__PURE__ */ e.createElement(h, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
72
|
+
className: s(T, i.description)
|
|
73
|
+
}, k)), Q = () => /* @__PURE__ */ e.createElement(y, null);
|
|
74
|
+
export {
|
|
75
|
+
Q as ServicesMultiChoiceRAC
|
|
76
|
+
};
|
|
@@ -2,17 +2,17 @@ import s, { useRef as W, useCallback as I, useState as K, useEffect as Q, useMem
|
|
|
2
2
|
import { RicosViewer as Re } from "@wix/ricos/viewer";
|
|
3
3
|
import v from "classnames";
|
|
4
4
|
import { useHover as ve, useFocusRing as xe, mergeProps as Se } from "react-aria";
|
|
5
|
-
import { RadioGroup as Fe, Button as fe, TextField as Ae, Input as
|
|
5
|
+
import { RadioGroup as Fe, Button as fe, TextField as Ae, Input as Pe, RadioField as _e, RadioButton as Ne } from "react-aria-components";
|
|
6
6
|
import he from "signature_pad";
|
|
7
|
-
import { z as Ue,
|
|
7
|
+
import { z as Ue, ae as Oe, ab as Be, aq as ge, E as ce, e as q, ai as A, af as H, ak as Ee, as as Me } from "./form-CtWkUmxc.js";
|
|
8
8
|
import { f as T, a as F } from "./find-child-C60k4CxG.js";
|
|
9
|
-
import { D as We, E as He } from "./field-error-headless-
|
|
10
|
-
import { L as Ye } from "./field-label-headless-
|
|
9
|
+
import { D as We, E as He } from "./field-error-headless-D6iejMQP.js";
|
|
10
|
+
import { L as Ye } from "./field-label-headless-BWLfU3YB.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 {
|
|
15
|
-
const
|
|
13
|
+
import { s as z } from "./field-rac.module-DnUIb9Oh.js";
|
|
14
|
+
import { z as ue, P as ze, y as B, a1 as Ve, q as Ze, j as Xe } from "./form-element-classes-BSMjWijd.js";
|
|
15
|
+
const qe = typeof s.useId == "function" ? s.useId : () => W(Ue()).current;
|
|
16
16
|
var w = /* @__PURE__ */ (function(e) {
|
|
17
17
|
return e.TEXT = "text/plain", e.POINTS = "points/json", e;
|
|
18
18
|
})({}), b = /* @__PURE__ */ (function(e) {
|
|
@@ -20,7 +20,7 @@ var w = /* @__PURE__ */ (function(e) {
|
|
|
20
20
|
})({}), S = /* @__PURE__ */ (function(e) {
|
|
21
21
|
return e.DRAW = "draw", e.TYPE = "type", e.IMAGE = "image", e.UPLOAD = "upload", e;
|
|
22
22
|
})({});
|
|
23
|
-
const
|
|
23
|
+
const Ge = (e) => {
|
|
24
24
|
const { actions: t, formId: a } = Oe(), n = t == null ? void 0 : t.uploadFile;
|
|
25
25
|
return I(async (r) => {
|
|
26
26
|
if (!n)
|
|
@@ -43,7 +43,7 @@ const qe = (e) => {
|
|
|
43
43
|
]);
|
|
44
44
|
};
|
|
45
45
|
function je(e) {
|
|
46
|
-
const a =
|
|
46
|
+
const a = V(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 V(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 = V(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,7 +94,7 @@ 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 = V(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) {
|
|
@@ -187,7 +187,7 @@ async function ot(e, t) {
|
|
|
187
187
|
return e;
|
|
188
188
|
const n = a.mimeType;
|
|
189
189
|
if (n === w.TEXT) {
|
|
190
|
-
const r =
|
|
190
|
+
const r = V(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;
|
|
@@ -199,7 +199,7 @@ async function ot(e, t) {
|
|
|
199
199
|
const o = r.map((u) => ({
|
|
200
200
|
...u,
|
|
201
201
|
penColor: "black"
|
|
202
|
-
})), i =
|
|
202
|
+
})), i = V(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;
|
|
@@ -216,7 +216,7 @@ async function st(e, t) {
|
|
|
216
216
|
return rt(a, "signature");
|
|
217
217
|
}
|
|
218
218
|
const it = ({ value: e, onChange: t, target: a }) => {
|
|
219
|
-
const [n, r] = K(e), { isRTL: o } = Be(), i =
|
|
219
|
+
const [n, r] = K(e), { isRTL: o } = Be(), i = Ge(a), { setFormStatus: l } = ge(), c = W();
|
|
220
220
|
Q(() => {
|
|
221
221
|
e === ce && r(ce);
|
|
222
222
|
}, [
|
|
@@ -239,7 +239,7 @@ const it = ({ value: e, onChange: t, target: a }) => {
|
|
|
239
239
|
}
|
|
240
240
|
c.current = null;
|
|
241
241
|
} finally {
|
|
242
|
-
l(a,
|
|
242
|
+
l(a, q.READY);
|
|
243
243
|
}
|
|
244
244
|
}, [
|
|
245
245
|
l,
|
|
@@ -255,7 +255,7 @@ const it = ({ value: e, onChange: t, target: a }) => {
|
|
|
255
255
|
};
|
|
256
256
|
E ? (c.current && (clearTimeout(c.current), c.current = null), r([
|
|
257
257
|
E
|
|
258
|
-
]), p(E)) : (t == null || t(null), r(void 0), l(a,
|
|
258
|
+
]), p(E)) : (t == null || t(null), r(void 0), l(a, q.READY));
|
|
259
259
|
}, [
|
|
260
260
|
m,
|
|
261
261
|
t,
|
|
@@ -283,13 +283,13 @@ const it = ({ value: e, onChange: t, target: a }) => {
|
|
|
283
283
|
return b.UPLOAD;
|
|
284
284
|
}
|
|
285
285
|
}), { setFormStatus: d } = ge(), u = I(() => {
|
|
286
|
-
r(), d(e,
|
|
286
|
+
r(), d(e, q.BUSY);
|
|
287
287
|
}, [
|
|
288
288
|
r,
|
|
289
289
|
d,
|
|
290
290
|
e
|
|
291
291
|
]), f = I(() => {
|
|
292
|
-
r(), n(null), d(e,
|
|
292
|
+
r(), n(null), d(e, q.READY);
|
|
293
293
|
}, [
|
|
294
294
|
r,
|
|
295
295
|
n,
|
|
@@ -375,15 +375,15 @@ const dt = (e) => {
|
|
|
375
375
|
}), o && F(d, {
|
|
376
376
|
handleClear: i
|
|
377
377
|
}));
|
|
378
|
-
},
|
|
378
|
+
}, P = ({ children: e, className: t, ...a }) => {
|
|
379
379
|
const { signatureMode: n, setSignatureMode: r, uploadEnabled: o } = a, { disabled: i } = A(), { labelId: l, inputId: c } = H(), d = I((h) => {
|
|
380
380
|
r(h);
|
|
381
381
|
}, [
|
|
382
382
|
r
|
|
383
383
|
]), u = {
|
|
384
|
-
[b.DRAW]: T(e,
|
|
385
|
-
[b.TYPE]: T(e,
|
|
386
|
-
[b.UPLOAD]: o ? T(e,
|
|
384
|
+
[b.DRAW]: T(e, P.Draw),
|
|
385
|
+
[b.TYPE]: T(e, P.Type),
|
|
386
|
+
[b.UPLOAD]: o ? T(e, P.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__ */ we(e), ne = ({ mode: e, children: t, className: a, "aria-label": n }) => /* @__PURE__ */ s.createElement(
|
|
407
|
+
}, mt = (e) => /* @__PURE__ */ we(e), ne = ({ mode: e, children: t, className: a, "aria-label": n }) => /* @__PURE__ */ s.createElement(_e, {
|
|
408
408
|
value: e,
|
|
409
409
|
"aria-label": n
|
|
410
410
|
}, /* @__PURE__ */ s.createElement(Ne, {
|
|
@@ -429,8 +429,8 @@ const dt = (e) => {
|
|
|
429
429
|
"data-hook": `clear-${i}`,
|
|
430
430
|
className: t
|
|
431
431
|
}, e);
|
|
432
|
-
},
|
|
433
|
-
const { signatureView: n, signatureValueForView: r, handleChange: o, handleBeforeChange: i } = a, { disabled: l, readOnly: c, onBlur: d, onFocus: u, hasError: f } = A(), m = T(e,
|
|
432
|
+
}, _ = ({ 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 = T(e, _.Canvas), h = T(e, _.Type), E = T(e, _.Upload);
|
|
434
434
|
return /* @__PURE__ */ s.createElement("div", {
|
|
435
435
|
className: t,
|
|
436
436
|
"data-hook": "signature-input",
|
|
@@ -480,7 +480,7 @@ const dt = (e) => {
|
|
|
480
480
|
return "";
|
|
481
481
|
const D = (k = p.current) == null ? void 0 : k.toData();
|
|
482
482
|
return D ? et(D) : (($ = p.current) == null ? void 0 : $.toDataURL()) ?? "";
|
|
483
|
-
}, []),
|
|
483
|
+
}, []), G = I(() => {
|
|
484
484
|
var O;
|
|
485
485
|
const D = (O = p.current) == null ? void 0 : O.isEmpty();
|
|
486
486
|
Y(!D), o(ee(oe()));
|
|
@@ -502,16 +502,16 @@ const dt = (e) => {
|
|
|
502
502
|
le && (p.current.fromData(le), Y(!0));
|
|
503
503
|
} else
|
|
504
504
|
p.current.clear(), Y(!1);
|
|
505
|
-
p.current.addEventListener("beginStroke", j), p.current.addEventListener("endStroke",
|
|
505
|
+
p.current.addEventListener("beginStroke", j), p.current.addEventListener("endStroke", G), typeof ResizeObserver < "u" && !y.current && (y.current = new ResizeObserver(() => {
|
|
506
506
|
L.current && me(L.current, p == null ? void 0 : p.current);
|
|
507
507
|
})), (k = y.current) == null || k.observe(D);
|
|
508
508
|
} else
|
|
509
|
-
($ = y.current) == null || $.disconnect(), (se = p.current) == null || se.removeEventListener("endStroke",
|
|
509
|
+
($ = y.current) == null || $.disconnect(), (se = p.current) == null || se.removeEventListener("endStroke", G), (ie = p.current) == null || ie.removeEventListener("beginStroke", j);
|
|
510
510
|
}, [
|
|
511
511
|
R,
|
|
512
512
|
x,
|
|
513
513
|
j,
|
|
514
|
-
|
|
514
|
+
G
|
|
515
515
|
]);
|
|
516
516
|
return Q(() => {
|
|
517
517
|
p.current && (c || l ? p.current.off() : p.current.on());
|
|
@@ -580,7 +580,7 @@ const dt = (e) => {
|
|
|
580
580
|
})));
|
|
581
581
|
}, Lt = ({ className: e, placeholder: t, ...a }) => {
|
|
582
582
|
const { inputId: n, ariaDescribedBy: r } = a;
|
|
583
|
-
return /* @__PURE__ */ s.createElement(
|
|
583
|
+
return /* @__PURE__ */ s.createElement(Pe, {
|
|
584
584
|
id: n,
|
|
585
585
|
"data-hook": "signature-text",
|
|
586
586
|
"aria-describedby": r,
|
|
@@ -632,7 +632,7 @@ const dt = (e) => {
|
|
|
632
632
|
"data-hook": "signature-image"
|
|
633
633
|
}, r.displayName || a)));
|
|
634
634
|
}, yt = ({ children: e, className: t, ...a }) => {
|
|
635
|
-
const { fileInputRef: n, disabled: r, readOnly: o, onBlur: i, onFocus: l } = a, { inputId: c, ariaDescribedBy: d, labelId: u } = H(), f =
|
|
635
|
+
const { fileInputRef: n, disabled: r, readOnly: o, onBlur: i, onFocus: l } = a, { inputId: c, ariaDescribedBy: d, labelId: u } = H(), f = qe(), m = I(() => {
|
|
636
636
|
var h;
|
|
637
637
|
(h = n.current) == null || h.click();
|
|
638
638
|
}, [
|
|
@@ -657,15 +657,15 @@ g.Input = Z;
|
|
|
657
657
|
g.Description = We;
|
|
658
658
|
g.Error = He;
|
|
659
659
|
Z.Header = X;
|
|
660
|
-
Z.Value =
|
|
661
|
-
X.Tabs =
|
|
660
|
+
Z.Value = _;
|
|
661
|
+
X.Tabs = P;
|
|
662
662
|
X.Clear = gt;
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
663
|
+
P.Draw = pt;
|
|
664
|
+
P.Type = ft;
|
|
665
|
+
P.Upload = ht;
|
|
666
|
+
_.Canvas = Et;
|
|
667
|
+
_.Type = ae;
|
|
668
|
+
_.Upload = re;
|
|
669
669
|
ae.Value = Lt;
|
|
670
670
|
re.Button = yt;
|
|
671
671
|
const Tt = () => {
|
|
@@ -724,15 +724,15 @@ 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
|
-
})), Rt = "_header_15ti0_1", vt = "_tabs_15ti0_8", xt = "_tab_15ti0_8", St = "_tabIcon_15ti0_74", Ft = "_clear_15ti0_81", At = "_value_15ti0_113",
|
|
727
|
+
})), Rt = "_header_15ti0_1", vt = "_tabs_15ti0_8", xt = "_tab_15ti0_8", St = "_tabIcon_15ti0_74", Ft = "_clear_15ti0_81", At = "_value_15ti0_113", Pt = "_box_15ti0_118", _t = "_uploadBox_15ti0_119", Nt = "_typeInput_15ti0_230", C = {
|
|
728
728
|
header: Rt,
|
|
729
729
|
tabs: vt,
|
|
730
730
|
tab: xt,
|
|
731
731
|
tabIcon: St,
|
|
732
732
|
clear: Ft,
|
|
733
733
|
value: At,
|
|
734
|
-
box:
|
|
735
|
-
uploadBox:
|
|
734
|
+
box: Pt,
|
|
735
|
+
uploadBox: _t,
|
|
736
736
|
typeInput: Nt
|
|
737
737
|
}, Ut = ({ content: e, locale: t }) => /* @__PURE__ */ s.createElement(Re, {
|
|
738
738
|
content: e,
|
|
@@ -740,9 +740,9 @@ const Tt = () => {
|
|
|
740
740
|
}), Ot = () => {
|
|
741
741
|
const e = Tt();
|
|
742
742
|
return /* @__PURE__ */ s.createElement(g, null, /* @__PURE__ */ s.createElement(g.Label, {
|
|
743
|
-
className: v(ue,
|
|
743
|
+
className: v(ue, z.label)
|
|
744
744
|
}, /* @__PURE__ */ s.createElement(g.Label.Required, {
|
|
745
|
-
className: v(
|
|
745
|
+
className: v(ze, z.requiredMark)
|
|
746
746
|
})), /* @__PURE__ */ s.createElement(g.Input, null, /* @__PURE__ */ s.createElement(g.Input.Header, {
|
|
747
747
|
className: C.header
|
|
748
748
|
}, /* @__PURE__ */ s.createElement(g.Input.Header.Tabs, {
|
|
@@ -783,11 +783,11 @@ const Tt = () => {
|
|
|
783
783
|
className: v(B, C.uploadBox),
|
|
784
784
|
imageAlt: e.imageAlt
|
|
785
785
|
}, /* @__PURE__ */ s.createElement(g.Input.Value.Upload.Button, {
|
|
786
|
-
className: v(
|
|
786
|
+
className: v(Ve, z.uploadButton)
|
|
787
787
|
}, e.uploadLabel)))), /* @__PURE__ */ s.createElement(g.Error, {
|
|
788
|
-
className: v(Ze,
|
|
788
|
+
className: v(Ze, z.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, z.description)
|
|
791
791
|
}, Ut));
|
|
792
792
|
}, Jt = () => /* @__PURE__ */ s.createElement(Ot, null);
|
|
793
793
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import t from "react";
|
|
2
2
|
import l from "classnames";
|
|
3
|
-
import {
|
|
3
|
+
import { ai as c } from "./form-CtWkUmxc.js";
|
|
4
4
|
import { ProgressBar as N, Button as S } from "react-aria-components";
|
|
5
5
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import {
|
|
6
|
+
import { a3 as d, a2 as g, a5 as f } from "./form-element-classes-BSMjWijd.js";
|
|
7
7
|
function x(e) {
|
|
8
8
|
const s = "calc(50% - 2px)";
|
|
9
9
|
return /* @__PURE__ */ t.createElement(N, {
|
|
@@ -72,16 +72,16 @@ const u = ({ children: e }) => {
|
|
|
72
72
|
isDisabled: v || p,
|
|
73
73
|
"data-in-progress": p
|
|
74
74
|
}, p && _ ? _ : a);
|
|
75
|
-
},
|
|
75
|
+
}, C = ({ className: e }) => /* @__PURE__ */ t.createElement("span", {
|
|
76
76
|
className: e
|
|
77
77
|
}, /* @__PURE__ */ t.createElement(x, null));
|
|
78
|
-
B.Loader =
|
|
78
|
+
B.Loader = C;
|
|
79
79
|
m.PreviousButton = b;
|
|
80
80
|
m.NextButton = E;
|
|
81
81
|
m.SubmitButton = B;
|
|
82
82
|
u.SubmitButton = m;
|
|
83
|
-
const
|
|
84
|
-
navigationContainer:
|
|
83
|
+
const h = "_navigationContainer_1yuje_1", y = "_rowSpacing_1yuje_6", P = "_navigationButton_1yuje_10", T = "_nextButton_1yuje_24", L = "_previousButton_1yuje_47", w = "_button_1yuje_90", j = "_buttonNoSteps_1yuje_122", k = "_buttonWithSteps_1yuje_126", F = "_progress_1yuje_153", r = {
|
|
84
|
+
navigationContainer: h,
|
|
85
85
|
rowSpacing: y,
|
|
86
86
|
navigationButton: P,
|
|
87
87
|
nextButton: T,
|