@wix/form-elements 1.64.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-DojiZqx9.js → appointment-rac-0kUk8XQJ.js} +35 -35
- package/dist/component/{bookings-address-rac-Bm_lQchD.js → bookings-address-rac-BUM0wpw0.js} +1 -1
- package/dist/component/{bookings-email-rac-vwuy0kW8.js → bookings-email-rac-BHlvupVS.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BbWuLoeg.js → bookings-first-name-rac-Bwn6xv1U.js} +1 -1
- package/dist/component/{bookings-header-rac-DVknNH29.js → bookings-header-rac-BkRvQMi4.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BnT3Cq0b.js → bookings-last-name-rac-DRTj4VdX.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DKi-VAXc.js → bookings-login-bar-rac-D-2Bt7Kx.js} +2 -2
- package/dist/component/{bookings-phone-rac-Bfy8rheB.js → bookings-phone-rac-CTcHHpDr.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DGiBDcXw.js → bookings-rich-text-rac-n-w9iWII.js} +1 -1
- package/dist/component/{checkbox-field-rac-CYADRY54.js → checkbox-field-rac-BamOJv3P.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-BDAFpX5F.js → checkbox-group-field-headless-BmKJbEi0.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-2YUsOmDI.js → checkbox-group-field-rac-CC8qfj0Y.js} +6 -6
- package/dist/component/{checkbox-group-rac-CQf1C9H5.js → checkbox-group-rac-CsrP7zD5.js} +1 -1
- package/dist/component/{checkbox-rac-Bjv8jZjs.js → checkbox-rac-X6E-fJ8k.js} +1 -1
- package/dist/component/{contacts-address-rac-BBTiEec9.js → contacts-address-rac-oYnkIZ6m.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-XReeFHVW.js → contacts-birthdate-rac-B7p8LgYA.js} +1 -1
- package/dist/component/{contacts-company-rac-B-fUQszu.js → contacts-company-rac-cjLRO5J-.js} +1 -1
- package/dist/component/{contacts-email-rac-DBtcCcsV.js → contacts-email-rac-BlJJSkGK.js} +1 -1
- package/dist/component/{contacts-first-name-rac-mkwU3706.js → contacts-first-name-rac-Nl-MDndn.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DY5N-AZx.js → contacts-last-name-rac-DhxAobRI.js} +1 -1
- package/dist/component/{contacts-phone-rac-Ce1rMz_z.js → contacts-phone-rac-CZLWlH0T.js} +1 -1
- package/dist/component/{contacts-position-rac-B65H8PDu.js → contacts-position-rac-DlKC0lCU.js} +1 -1
- package/dist/component/contacts-subscribe-rac-POSKh1Ta.js +13 -0
- package/dist/component/{contacts-tax-id-rac-Jtt0ySK2.js → contacts-tax-id-rac-uyBKxOJn.js} +1 -1
- package/dist/component/{date-availability-B8UwvTJa.js → date-availability-DnFJD1aS.js} +1 -1
- package/dist/component/{date-input-field-rac-RL2a0xoD.js → date-input-field-rac-DojzGm-i.js} +30 -30
- package/dist/component/{date-input-rac-ak3G7V07.js → date-input-rac-BaPKcAuU.js} +1 -1
- package/dist/component/{date-picker-field-rac-SL_Roltf.js → date-picker-field-rac-C1rzJMV8.js} +16 -16
- package/dist/component/{date-picker-rac-ByrM0YIX.js → date-picker-rac-BHsOfkYn.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DOE7xcKi.js → date-time-input-field-rac-B4jAAxU8.js} +15 -15
- package/dist/component/{date-time-input-rac-BA-GyrAc.js → date-time-input-rac-XyL5z_ma.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-EwUnBO80.js → dext-checkbox-group-rac-DzpdOP3i.js} +2 -2
- package/dist/component/{dext-checkbox-rac-CIRKi4B5.js → dext-checkbox-rac-BUWkvW5s.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BYO_Q1zM.js → dext-date-picker-rac-CR0PUoOn.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BOahPeaH.js → dext-date-time-input-rac-D3WhLSKK.js} +1 -1
- package/dist/component/{dext-dropdown-rac-sTD_r-0H.js → dext-dropdown-rac-BJ1UfAIM.js} +1 -1
- package/dist/component/{dext-email-rac-e-2_h3he.js → dext-email-rac-xk_5C79-.js} +1 -1
- package/dist/component/{dext-number-input-rac-D6LACzWl.js → dext-number-input-rac-Cu1Sqoac.js} +1 -1
- package/dist/component/{dext-phone-rac-kUycy5Od.js → dext-phone-rac-S34qxXwg.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DPD2UkrV.js → dext-radio-group-rac-DXnAk_eU.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DUsnrl9W.js → dext-rating-input-rac-ewGpgB63.js} +1 -1
- package/dist/component/{dext-tags-rac-D6z69HuO.js → dext-tags-rac-BApZKGqP.js} +2 -2
- package/dist/component/{dext-text-area-rac-C-DVtFJ1.js → dext-text-area-rac-DBtuaiwM.js} +1 -1
- package/dist/component/{dext-text-input-rac-CIa2MdC6.js → dext-text-input-rac-qI8VECmA.js} +1 -1
- package/dist/component/{dext-url-input-rac-8rVVW5us.js → dext-url-input-rac-C6vzqNjn.js} +1 -1
- package/dist/component/donation-rac-BDVKvG4j.js +302 -0
- package/dist/component/{dropdown-field-headless-DReo519l.js → dropdown-field-headless-DBl8vGed.js} +3 -3
- package/dist/component/{dropdown-field-rac-DzrjA2O6.js → dropdown-field-rac-O6G7_kSn.js} +7 -7
- package/dist/component/{dropdown-rac-CS7oLTp_.js → dropdown-rac-BImZ5Jwe.js} +1 -1
- package/dist/component/{ecom-address-rac-EIb88J_6.js → ecom-address-rac-BU4XZ_Do.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CE0Ks6qS.js → ecom-subscription-checkbox-rac-DLzpoNYm.js} +5 -5
- package/dist/component/{email-input-field-rac-BScZxYHw.js → email-input-field-rac-Ui0p35z5.js} +59 -59
- package/dist/component/{events-repeater-rac-Y0rH2Jli.js → events-repeater-rac-bPKOOOit.js} +8 -8
- package/dist/component/{events-rsvp-rac-BiAYVv_b.js → events-rsvp-rac-lsRBBfPQ.js} +12 -12
- package/dist/component/{field-error-headless-DrnFrGun.js → field-error-headless-D6iejMQP.js} +1 -1
- package/dist/component/{field-label-headless-BIYf1BIh.js → field-label-headless-BWLfU3YB.js} +1 -1
- package/dist/component/field-rac.module-DnUIb9Oh.js +21 -0
- package/dist/component/{file-upload-rac-br--tZLp.js → file-upload-rac-DqKL8QQZ.js} +87 -87
- package/dist/component/{fixed-payment-rac-XEtrsaMy.js → fixed-payment-rac-BDtRB8w2.js} +9 -9
- package/dist/component/{form-9yjqDnxY.js → form-CtWkUmxc.js} +69 -69
- 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-CLELgzqY.js → header-field-rac-BLM8RCDY.js} +3 -3
- package/dist/component/{header-rac-D8KGkVVp.js → header-rac-DViRwafg.js} +1 -1
- package/dist/component/image-choice-rac-D76t2y-b.js +141 -0
- package/dist/component/{index-PHkE0Ru4.js → index--iRBHLXJ.js} +4 -4
- package/dist/component/{index-C4y71e1i.js → index-pEItT2oo.js} +2 -2
- package/dist/component/{isObjectLike-srCDplej.js → isObjectLike-968AHV2b.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CsBLI9y-.js → multiline-address-field-rac-CObOc8KE.js} +98 -98
- package/dist/component/{multiline-address-rac-DFDPFfXh.js → multiline-address-rac-1qVZkN41.js} +1 -1
- package/dist/component/{number-input-field-rac-DZRR7gdt.js → number-input-field-rac-CPQ3u0N7.js} +20 -20
- package/dist/component/{number-input-rac-BCS5lkff.js → number-input-rac-Bq1UyUPZ.js} +1 -1
- package/dist/component/{password-rac-ClDGgR3E.js → password-rac-BZPK1VkN.js} +9 -9
- package/dist/component/{payment-input-rac-COydWmUE.js → payment-input-rac-CQrV0WmN.js} +11 -11
- package/dist/component/{phone-input-field-rac-DYCibqe1.js → phone-input-field-rac-DzUE1-RF.js} +56 -56
- package/dist/component/{phone-rac-BS-dmWkJ.js → phone-rac-BovOZ7V5.js} +1 -1
- package/dist/component/{product-list-rac-hxOhaA-r.js → product-list-rac-CeGm1_WN.js} +22 -22
- package/dist/component/quiz-radio-group-rac-Lw2thQqC.js +13 -0
- package/dist/component/{radio-group-field-rac-DKqWnMBJ.js → radio-group-field-rac-BSVmjEgZ.js} +8 -8
- package/dist/component/{radio-group-field-rac.module-BwUynK_5.js → radio-group-field-rac.module-Cb3mm0f2.js} +3 -3
- package/dist/component/{radio-group-rac-DHURQZKK.js → radio-group-rac-BHhOCSQ2.js} +1 -1
- package/dist/component/{rating-input-field-rac-CZRdSVrf.js → rating-input-field-rac-BvbBZZDO.js} +21 -21
- package/dist/component/{rating-input-rac-BaH52DYm.js → rating-input-rac-DDe1EBpt.js} +1 -1
- package/dist/component/{rich-content-rac.module-ILBfxEmN.js → rich-content-rac.module-BacYkzEv.js} +1 -1
- package/dist/component/{rich-text-field-rac-B58q8Is7.js → rich-text-field-rac-D1W0mUjr.js} +5 -5
- package/dist/component/{rich-text-rac-DGbZh1eX.js → rich-text-rac-B-cOn0RU.js} +1 -1
- package/dist/component/{service-dropdown-rac-DUiNIbdv.js → service-dropdown-rac-CebfMkGP.js} +22 -22
- package/dist/component/{services-multi-choice-rac-B7y9s2l8.js → services-multi-choice-rac-C4bF1xhB.js} +29 -29
- package/dist/component/{signature-rac-CydpvQJZ.js → signature-rac-DWWT65Ez.js} +46 -46
- package/dist/component/{submit-button-rac-OO53h4H8.js → submit-button-rac-_mgn4ChE.js} +2 -2
- package/dist/component/{tags-field-rac-eX3d3JEH.js → tags-field-rac-7coCWj0y.js} +59 -59
- package/dist/component/{tags-rac-CdIB_48Z.js → tags-rac-rgsn8Os0.js} +1 -1
- package/dist/component/{text-area-field-rac-Bir5Q7gz.js → text-area-field-rac-5lUQxnNM.js} +15 -15
- package/dist/component/{text-area-rac-Ct1UNU04.js → text-area-rac-DpGOBzN3.js} +1 -1
- package/dist/component/{text-input-field-rac-onGUXC9J.js → text-input-field-rac-CgWadDfM.js} +3 -3
- package/dist/component/{text-input-headless-Bs9m7QFg.js → text-input-headless-fhxuPytc.js} +3 -3
- package/dist/component/{text-input-rac-DK4nEw4D.js → text-input-rac-kgWS3UUV.js} +1 -1
- package/dist/component/{time-input-rac-BCG9ktFa.js → time-input-rac-CuLUJcBH.js} +15 -15
- package/dist/component/{url-input-field-rac-mUkrVTcL.js → url-input-field-rac-CAGHb2na.js} +18 -18
- package/dist/component/{url-input-rac-Cl7LFYlr.js → url-input-rac-s5_SVi0h.js} +1 -1
- package/dist/component/{use-service-options-base-BYVuKRj2.js → use-service-options-base-CYAEJ75H.js} +1 -1
- package/package.json +2 -2
- package/dist/component/contacts-subscribe-rac-BxO8rIyL.js +0 -13
- package/dist/component/donation-rac-BjmSBabc.js +0 -305
- package/dist/component/field-rac.module-CWkwwhq4.js +0 -21
- package/dist/component/form-element-classes-KRzHUNLu.js +0 -57
- package/dist/component/image-choice-rac-Cl09CLP4.js +0 -141
- package/dist/component/quiz-radio-group-rac-BT-YZO2Q.js +0 -13
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
import n, { useMemo as w, useCallback as D, useRef as ae } from "react";
|
|
2
|
-
import { RicosViewer as se } from "@wix/ricos/viewer";
|
|
3
|
-
import _ from "classnames";
|
|
4
|
-
import { RadioGroup as le, RadioField as j, RadioButton as J, TextField as ce, Input as ie } from "react-aria-components";
|
|
5
|
-
import { debounce as ue } from "ts-debounce";
|
|
6
|
-
import { P as Q, ai as P, af as V, as as me, ab as M, ak as pe } from "./form-9yjqDnxY.js";
|
|
7
|
-
import { f as h, a as g } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { a as W } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as de, E as Ie } from "./field-error-headless-DrnFrGun.js";
|
|
10
|
-
import { L as Ce } from "./field-label-headless-BIYf1BIh.js";
|
|
11
|
-
import { N as Ee } from "./options-layout-constants-DEfIEJWD.js";
|
|
12
|
-
import { a as fe, b as he } from "./numeric-input-utils-CuBMi4-a.js";
|
|
13
|
-
import { g as Oe } from "./payment-field-utils-DobiK5Xh.js";
|
|
14
|
-
import { u as ye } from "./use-synced-display-value-DcAxdn3M.js";
|
|
15
|
-
import { E as _e } from "./error-icon-hZxQ6DEy.js";
|
|
16
|
-
import { s as R } from "./field-rac.module-CWkwwhq4.js";
|
|
17
|
-
import { t as be, J as ge, h as Y, v as B, n as Fe, j as Ne } from "./form-element-classes-KRzHUNLu.js";
|
|
18
|
-
import { o as ve } from "./options-rac.module-KM-VT_KY.js";
|
|
19
|
-
function De(e, t) {
|
|
20
|
-
return e.reduce((r, o) => (r[o[t]] = o, r), {});
|
|
21
|
-
}
|
|
22
|
-
function Le(e) {
|
|
23
|
-
return De(e, "id");
|
|
24
|
-
}
|
|
25
|
-
const Re = 0.01;
|
|
26
|
-
function Se(e) {
|
|
27
|
-
var t;
|
|
28
|
-
return ((t = e == null ? void 0 : e.fixedPriceOptions) == null ? void 0 : t.price) || "0";
|
|
29
|
-
}
|
|
30
|
-
function K(e, t) {
|
|
31
|
-
const r = Number(t || "0");
|
|
32
|
-
return {
|
|
33
|
-
productId: e.id,
|
|
34
|
-
price: e.priceType === Q.DYNAMIC_PRICE ? r : String(r),
|
|
35
|
-
quantity: 1
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
function Ae(e) {
|
|
39
|
-
return e.find((t) => t.priceType === Q.DYNAMIC_PRICE);
|
|
40
|
-
}
|
|
41
|
-
function Pe(e, t) {
|
|
42
|
-
return (e == null ? void 0 : e.productId) === (t == null ? void 0 : t.id) ? String((e == null ? void 0 : e.price) ?? "") : "";
|
|
43
|
-
}
|
|
44
|
-
function Me(e, t, r) {
|
|
45
|
-
const o = (t == null ? void 0 : t.productId) === e ? void 0 : e, s = o ? r[o] : void 0;
|
|
46
|
-
return s ? [
|
|
47
|
-
K(s, Se(s))
|
|
48
|
-
] : [];
|
|
49
|
-
}
|
|
50
|
-
const a = ({ children: e }) => {
|
|
51
|
-
const { id: t, value: r, onChange: o, disabled: s, required: c, onBlur: i, onFocus: y, validation: u, addOther: m, addOtherPlaceholder: I, FieldLayout: O, hasError: E } = P(), { labelId: p } = V(), { t: d } = me(), { currency: b, regionalFormat: F } = M(), C = r == null ? void 0 : r[0], N = w(() => {
|
|
52
|
-
var f, T;
|
|
53
|
-
return ((T = (f = u == null ? void 0 : u.predefined) == null ? void 0 : f.paymentOptions) == null ? void 0 : T.products) || [];
|
|
54
|
-
}, [
|
|
55
|
-
u
|
|
56
|
-
]), L = w(() => Le(N), [
|
|
57
|
-
N
|
|
58
|
-
]), l = w(() => m ? Ae(N) : void 0, [
|
|
59
|
-
N,
|
|
60
|
-
m
|
|
61
|
-
]), X = Pe(C, l), [q, x] = ye({
|
|
62
|
-
sourceValue: X,
|
|
63
|
-
format: (f) => he(String(f ?? ""), F),
|
|
64
|
-
regionalFormat: F
|
|
65
|
-
}), z = D((f) => {
|
|
66
|
-
o(Me(f, C, L)), x("");
|
|
67
|
-
}, [
|
|
68
|
-
o,
|
|
69
|
-
L,
|
|
70
|
-
C,
|
|
71
|
-
x
|
|
72
|
-
]), $ = D((f) => {
|
|
73
|
-
l && o(typeof f == "number" ? [
|
|
74
|
-
K(l, String(f))
|
|
75
|
-
] : []);
|
|
76
|
-
}, [
|
|
77
|
-
o,
|
|
78
|
-
l
|
|
79
|
-
]), G = w(() => ue($, 500), [
|
|
80
|
-
$
|
|
81
|
-
]), Z = D((f) => {
|
|
82
|
-
(C == null ? void 0 : C.productId) !== (l == null ? void 0 : l.id) && o(void 0);
|
|
83
|
-
const { validInput: T, validNumber: re } = fe(f.target.value, Re, q, F);
|
|
84
|
-
x(T), G(re);
|
|
85
|
-
}, [
|
|
86
|
-
F,
|
|
87
|
-
o,
|
|
88
|
-
C,
|
|
89
|
-
l,
|
|
90
|
-
q,
|
|
91
|
-
G,
|
|
92
|
-
x
|
|
93
|
-
]), k = (C == null ? void 0 : C.productId) || null, ee = D(() => {
|
|
94
|
-
l != null && l.id && k !== l.id && z(l.id);
|
|
95
|
-
}, [
|
|
96
|
-
l == null ? void 0 : l.id,
|
|
97
|
-
k,
|
|
98
|
-
z
|
|
99
|
-
]), te = h(e, a.Label), H = h(e, a.Control), ne = h(e, a.Description), oe = h(e, a.Error);
|
|
100
|
-
return /* @__PURE__ */ n.createElement(O, {
|
|
101
|
-
fieldId: t,
|
|
102
|
-
renderLabel: () => te,
|
|
103
|
-
renderInput: () => /* @__PURE__ */ n.createElement(le, {
|
|
104
|
-
"aria-labelledby": p,
|
|
105
|
-
value: k,
|
|
106
|
-
onChange: z,
|
|
107
|
-
isDisabled: s,
|
|
108
|
-
isInvalid: E,
|
|
109
|
-
isRequired: c,
|
|
110
|
-
onBlur: i,
|
|
111
|
-
onFocus: y
|
|
112
|
-
}, H ? g(H, {
|
|
113
|
-
productsById: L,
|
|
114
|
-
addOther: m,
|
|
115
|
-
customAmount: q,
|
|
116
|
-
onCustomAmountInputChange: Z,
|
|
117
|
-
currency: b,
|
|
118
|
-
t: d,
|
|
119
|
-
placeholder: I === void 0 ? d("donation.other-option.placeholder") : I,
|
|
120
|
-
customAmountProductId: l == null ? void 0 : l.id,
|
|
121
|
-
onFocusCustomInput: ee
|
|
122
|
-
}) : null),
|
|
123
|
-
renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, oe, ne)
|
|
124
|
-
});
|
|
125
|
-
}, xe = ({ children: e, className: t, ...r }) => {
|
|
126
|
-
const { productsById: o, addOther: s, customAmount: c, onCustomAmountInputChange: i, currency: y, t: u, placeholder: m, customAmountProductId: I, onFocusCustomInput: O } = r, { hasError: E } = P(), p = h(e, a.Options), d = h(e, a.OtherInput);
|
|
127
|
-
return /* @__PURE__ */ n.createElement("div", {
|
|
128
|
-
className: t,
|
|
129
|
-
"data-invalid": E
|
|
130
|
-
}, p ? g(p, {
|
|
131
|
-
productsById: o,
|
|
132
|
-
addOther: s,
|
|
133
|
-
customAmountProductId: I,
|
|
134
|
-
t: u
|
|
135
|
-
}) : null, d && s ? g(d, {
|
|
136
|
-
customAmount: c,
|
|
137
|
-
onCustomAmountInputChange: i,
|
|
138
|
-
currency: y,
|
|
139
|
-
t: u,
|
|
140
|
-
placeholder: m,
|
|
141
|
-
customAmountProductId: I,
|
|
142
|
-
onFocusCustomInput: O
|
|
143
|
-
}) : null);
|
|
144
|
-
}, U = ({ children: e, className: t, ...r }) => {
|
|
145
|
-
const { productsById: o, addOther: s, customAmountProductId: c, t: i } = r, { options: y, numberOfColumns: u } = P(), { isMobile: m } = M(), I = h(e, U.Option), O = m ? Ee.ONE : u;
|
|
146
|
-
return /* @__PURE__ */ n.createElement("div", {
|
|
147
|
-
className: t,
|
|
148
|
-
"data-columns": O
|
|
149
|
-
}, y.map((E) => {
|
|
150
|
-
var b;
|
|
151
|
-
const p = o[E.value], d = (b = p == null ? void 0 : p.fixedPriceOptions) == null ? void 0 : b.price;
|
|
152
|
-
return g(I, {
|
|
153
|
-
key: E.value,
|
|
154
|
-
value: E.value,
|
|
155
|
-
price: d || "0"
|
|
156
|
-
});
|
|
157
|
-
}), s && c && /* @__PURE__ */ n.createElement(j, {
|
|
158
|
-
value: c,
|
|
159
|
-
style: {
|
|
160
|
-
position: "absolute",
|
|
161
|
-
width: "1px",
|
|
162
|
-
height: "1px",
|
|
163
|
-
padding: "0",
|
|
164
|
-
margin: "-1px",
|
|
165
|
-
overflow: "hidden",
|
|
166
|
-
clip: "rect(0, 0, 0, 0)",
|
|
167
|
-
whiteSpace: "nowrap",
|
|
168
|
-
border: "0"
|
|
169
|
-
}
|
|
170
|
-
}, /* @__PURE__ */ n.createElement(J, {
|
|
171
|
-
"aria-label": i("donation.other-option.label", "Custom amount")
|
|
172
|
-
}, i("donation.other-option.label", "Custom amount"))));
|
|
173
|
-
}, S = ({ children: e, className: t, ...r }) => {
|
|
174
|
-
const { value: o, price: s } = r, { id: c } = P(), { currency: i, regionalFormat: y } = M(), u = h(e, S.Value), m = h(e, S.Currency), { isCurrencyPrefixed: I } = W({
|
|
175
|
-
amount: s,
|
|
176
|
-
currency: i == null ? void 0 : i.code,
|
|
177
|
-
locale: y
|
|
178
|
-
}), O = ae(null);
|
|
179
|
-
pe(() => {
|
|
180
|
-
var p, d;
|
|
181
|
-
(d = (p = O.current) == null ? void 0 : p.querySelector("input")) == null || d.focus();
|
|
182
|
-
}, c);
|
|
183
|
-
const E = u ? g(u, {
|
|
184
|
-
price: s
|
|
185
|
-
}) : null;
|
|
186
|
-
return /* @__PURE__ */ n.createElement(j, {
|
|
187
|
-
value: o
|
|
188
|
-
}, /* @__PURE__ */ n.createElement(J, {
|
|
189
|
-
className: t,
|
|
190
|
-
ref: O
|
|
191
|
-
}, /* @__PURE__ */ n.createElement(n.Fragment, null, I && m, E, !I && m)));
|
|
192
|
-
}, Te = ({ className: e, ...t }) => {
|
|
193
|
-
const { price: r } = t, { currency: o, regionalFormat: s } = M(), { value: c } = W({
|
|
194
|
-
amount: r,
|
|
195
|
-
currency: o == null ? void 0 : o.code,
|
|
196
|
-
locale: s
|
|
197
|
-
});
|
|
198
|
-
return /* @__PURE__ */ n.createElement("span", {
|
|
199
|
-
className: e
|
|
200
|
-
}, c);
|
|
201
|
-
}, we = ({ className: e }) => {
|
|
202
|
-
const { currency: t } = M();
|
|
203
|
-
return /* @__PURE__ */ n.createElement("span", {
|
|
204
|
-
className: e
|
|
205
|
-
}, (t == null ? void 0 : t.sign) || (t == null ? void 0 : t.code) || "");
|
|
206
|
-
};
|
|
207
|
-
S.Value = Te;
|
|
208
|
-
S.Currency = we;
|
|
209
|
-
const A = ({ children: e, className: t, ...r }) => {
|
|
210
|
-
const { customAmount: o, onCustomAmountInputChange: s, currency: c, t: i, placeholder: y, customAmountProductId: u, onFocusCustomInput: m } = r, { disabled: I, hasError: O } = P(), { labelId: E, prefixId: p } = V(), d = h(e, A.Currency), b = h(e, A.Value), F = D((L) => {
|
|
211
|
-
s({
|
|
212
|
-
target: {
|
|
213
|
-
value: L
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
}, [
|
|
217
|
-
s
|
|
218
|
-
]), C = D(() => {
|
|
219
|
-
m();
|
|
220
|
-
}, [
|
|
221
|
-
m
|
|
222
|
-
]), N = o && o.trim() !== "";
|
|
223
|
-
return /* @__PURE__ */ n.createElement(ce, {
|
|
224
|
-
"aria-labelledby": `${E} ${p}`,
|
|
225
|
-
value: o,
|
|
226
|
-
onChange: F,
|
|
227
|
-
onFocus: C,
|
|
228
|
-
isDisabled: I,
|
|
229
|
-
isInvalid: O,
|
|
230
|
-
className: t,
|
|
231
|
-
"data-selected": N ? "true" : void 0
|
|
232
|
-
}, o && c && d ? g(d, {
|
|
233
|
-
currency: c,
|
|
234
|
-
t: i
|
|
235
|
-
}) : null, b ? g(b, {
|
|
236
|
-
placeholder: y,
|
|
237
|
-
customAmountProductId: u
|
|
238
|
-
}) : null);
|
|
239
|
-
}, Be = ({ className: e, ...t }) => {
|
|
240
|
-
const { currency: r, t: o } = t, { prefixId: s } = V();
|
|
241
|
-
return /* @__PURE__ */ n.createElement("span", {
|
|
242
|
-
id: s,
|
|
243
|
-
"aria-hidden": !1,
|
|
244
|
-
"aria-label": Oe(o, r),
|
|
245
|
-
className: e
|
|
246
|
-
}, (r == null ? void 0 : r.sign) || (r == null ? void 0 : r.code) || "");
|
|
247
|
-
}, Ve = ({ className: e, ...t }) => {
|
|
248
|
-
const { placeholder: r, customAmountProductId: o } = t, { ariaDescribedBy: s, labelId: c, prefixId: i } = V();
|
|
249
|
-
return /* @__PURE__ */ n.createElement(ie, {
|
|
250
|
-
id: o,
|
|
251
|
-
"aria-labelledby": `${c} ${i}`,
|
|
252
|
-
"aria-describedby": s,
|
|
253
|
-
placeholder: r,
|
|
254
|
-
inputMode: "decimal",
|
|
255
|
-
autoComplete: "off",
|
|
256
|
-
className: e
|
|
257
|
-
});
|
|
258
|
-
};
|
|
259
|
-
A.Currency = Be;
|
|
260
|
-
A.Value = Ve;
|
|
261
|
-
U.Option = S;
|
|
262
|
-
a.Label = Ce;
|
|
263
|
-
a.Control = xe;
|
|
264
|
-
a.Options = U;
|
|
265
|
-
a.OtherInput = A;
|
|
266
|
-
a.Description = de;
|
|
267
|
-
a.Error = Ie;
|
|
268
|
-
const qe = "_control_7gwzv_1", ze = "_option_7gwzv_7", ke = "_optionCurrency_7gwzv_91", Ue = "_otherInput_7gwzv_95", $e = "_otherInputValue_7gwzv_112", Ge = "_otherInputCurrency_7gwzv_165", v = {
|
|
269
|
-
control: qe,
|
|
270
|
-
option: ze,
|
|
271
|
-
optionCurrency: ke,
|
|
272
|
-
otherInput: Ue,
|
|
273
|
-
otherInputValue: $e,
|
|
274
|
-
otherInputCurrency: Ge
|
|
275
|
-
}, He = ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(se, {
|
|
276
|
-
content: e,
|
|
277
|
-
locale: t
|
|
278
|
-
}), Ye = () => /* @__PURE__ */ n.createElement(a, null, /* @__PURE__ */ n.createElement(a.Label, {
|
|
279
|
-
className: _(be, R.label)
|
|
280
|
-
}, /* @__PURE__ */ n.createElement(a.Label.Required, {
|
|
281
|
-
className: _(ge, R.requiredMark)
|
|
282
|
-
})), /* @__PURE__ */ n.createElement(a.Control, {
|
|
283
|
-
className: v.control
|
|
284
|
-
}, /* @__PURE__ */ n.createElement(a.Options, {
|
|
285
|
-
className: ve.options
|
|
286
|
-
}, /* @__PURE__ */ n.createElement(a.Options.Option, {
|
|
287
|
-
className: _(Y, v.option)
|
|
288
|
-
}, /* @__PURE__ */ n.createElement(a.Options.Option.Value, {
|
|
289
|
-
className: B
|
|
290
|
-
}), /* @__PURE__ */ n.createElement(a.Options.Option.Currency, {
|
|
291
|
-
className: _(B, v.optionCurrency)
|
|
292
|
-
}))), /* @__PURE__ */ n.createElement(a.OtherInput, {
|
|
293
|
-
className: _(Y, R.input, v.otherInput)
|
|
294
|
-
}, /* @__PURE__ */ n.createElement(a.OtherInput.Currency, {
|
|
295
|
-
className: _(B, v.otherInputCurrency)
|
|
296
|
-
}), /* @__PURE__ */ n.createElement(a.OtherInput.Value, {
|
|
297
|
-
className: _(B, v.otherInputValue)
|
|
298
|
-
}))), /* @__PURE__ */ n.createElement(a.Error, {
|
|
299
|
-
className: _(Fe, R.error)
|
|
300
|
-
}, /* @__PURE__ */ n.createElement(_e, null), /* @__PURE__ */ n.createElement(a.Error.Text, null)), /* @__PURE__ */ n.createElement(a.Description, {
|
|
301
|
-
className: _(Ne, R.description)
|
|
302
|
-
}, He)), mt = () => /* @__PURE__ */ n.createElement(Ye, null);
|
|
303
|
-
export {
|
|
304
|
-
mt as DonationRAC
|
|
305
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const o = "_label_1j5hc_1", c = "_requiredMark_1j5hc_11", n = "_input_1j5hc_16", t = "_inputGroup_1j5hc_17", e = "_innerInput_1j5hc_123", r = "_dropdownTrigger_1j5hc_166", _ = "_dropdownIcon_1j5hc_176", p = "_dropdownPopover_1j5hc_195", s = "_selectPopover_1j5hc_199", i = "_selectOption_1j5hc_226", u = "_selectOptionWithoutFocusRing_1j5hc_250", d = "_description_1j5hc_256", h = "_error_1j5hc_272", l = "_checkbox_1j5hc_291", j = "_checkboxInput_1j5hc_314", a = "_uploadButton_1j5hc_409", b = {
|
|
2
|
-
label: o,
|
|
3
|
-
requiredMark: c,
|
|
4
|
-
input: n,
|
|
5
|
-
inputGroup: t,
|
|
6
|
-
innerInput: e,
|
|
7
|
-
dropdownTrigger: r,
|
|
8
|
-
dropdownIcon: _,
|
|
9
|
-
dropdownPopover: p,
|
|
10
|
-
selectPopover: s,
|
|
11
|
-
selectOption: i,
|
|
12
|
-
selectOptionWithoutFocusRing: u,
|
|
13
|
-
description: d,
|
|
14
|
-
error: h,
|
|
15
|
-
checkbox: l,
|
|
16
|
-
checkboxInput: j,
|
|
17
|
-
uploadButton: a
|
|
18
|
-
};
|
|
19
|
-
export {
|
|
20
|
-
b as s
|
|
21
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
const _ = "form-field-label", o = "form-field-required-indicator", O = "form-field-description", s = "form-field-error", S = "form-field-input", L = "form-field-upload-button", c = "form-field-popover", C = "form-field-suggestion", i = "form-field-option-label", I = "form-field-radio-group", t = "form-field-radio-group-option-label", r = "form-field-radio-group-radio-button", e = "form-field-quiz-radio-group", R = "form-field-quiz-radio-group-option-label", E = "form-field-quiz-radio-group-radio-button", f = "form-field-rsvp", F = "form-field-rsvp-option-label", n = "form-field-rsvp-radio-button", a = "form-field-checkbox-group", A = "form-field-checkbox-group-option-label", d = "form-field-checkbox-group-indicator", l = "form-field-checkbox-group-indicator--selected", D = "form-field-checkbox-group-indicator--hover", T = "form-field-services", m = "form-field-services-option-label", M = "form-field-services-indicator", b = "form-field-checkbox", B = "form-field-checkbox-label", N = "form-field-checkbox-indicator", u = "form-field-subscribe-checkbox", U = "form-field-subscribe-checkbox-label", p = "form-field-subscribe-checkbox-indicator", P = "form-field-ecom-subscription-checkbox", g = "form-field-ecom-subscription-checkbox-label", G = "form-field-ecom-subscription-checkbox-indicator", h = "form-field-guest-checkbox", H = "form-field-guest-checkbox-label", x = "form-field-guest-checkbox-indicator", k = "form-field-product-list", K = "form-field-product-list-product-name", X = "form-field-product-list-price", v = "form-field-product-list-indicator", V = "form-field-tags", q = "form-field-tags-option", Q = "form-field-tags-option-selected", z = "form-field-choice-tag", Z = "form-field-info-banner", y = "form-field-day-option", Y = "form-field-rating-option", j = "form-field-link", w = "form-rich-content", J = "form-submit-button", W = "form-next-button", $ = "form-previous-button";
|
|
2
|
-
export {
|
|
3
|
-
J as $,
|
|
4
|
-
K as A,
|
|
5
|
-
e as B,
|
|
6
|
-
R as C,
|
|
7
|
-
E as D,
|
|
8
|
-
I as E,
|
|
9
|
-
b as F,
|
|
10
|
-
t as G,
|
|
11
|
-
r as H,
|
|
12
|
-
Y as I,
|
|
13
|
-
o as J,
|
|
14
|
-
f as K,
|
|
15
|
-
F as L,
|
|
16
|
-
n as M,
|
|
17
|
-
T as N,
|
|
18
|
-
M as O,
|
|
19
|
-
m as P,
|
|
20
|
-
u as Q,
|
|
21
|
-
p as R,
|
|
22
|
-
U as S,
|
|
23
|
-
C as T,
|
|
24
|
-
V as U,
|
|
25
|
-
q as V,
|
|
26
|
-
Q as W,
|
|
27
|
-
L as X,
|
|
28
|
-
W as Y,
|
|
29
|
-
$ as Z,
|
|
30
|
-
w as _,
|
|
31
|
-
a,
|
|
32
|
-
d as b,
|
|
33
|
-
D as c,
|
|
34
|
-
l as d,
|
|
35
|
-
A as e,
|
|
36
|
-
N as f,
|
|
37
|
-
B as g,
|
|
38
|
-
z as h,
|
|
39
|
-
y as i,
|
|
40
|
-
O as j,
|
|
41
|
-
P as k,
|
|
42
|
-
G as l,
|
|
43
|
-
g as m,
|
|
44
|
-
s as n,
|
|
45
|
-
h as o,
|
|
46
|
-
x as p,
|
|
47
|
-
H as q,
|
|
48
|
-
Z as r,
|
|
49
|
-
S as s,
|
|
50
|
-
_ as t,
|
|
51
|
-
j as u,
|
|
52
|
-
i as v,
|
|
53
|
-
c as w,
|
|
54
|
-
k as x,
|
|
55
|
-
v as y,
|
|
56
|
-
X as z
|
|
57
|
-
};
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import e, { useMemo as x, useCallback as w, useRef as v } from "react";
|
|
2
|
-
import { RicosViewer as k } from "@wix/ricos/viewer";
|
|
3
|
-
import E from "classnames";
|
|
4
|
-
import { CheckboxGroup as M, CheckboxField as T, CheckboxButton as B } from "react-aria-components";
|
|
5
|
-
import { ai as O, af as q, ab as H, ak as P } from "./form-9yjqDnxY.js";
|
|
6
|
-
import { f as p, a as F } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { L as U, g as G } from "./field-label-headless-BIYf1BIh.js";
|
|
8
|
-
import { D as V, E as j } from "./field-error-headless-DrnFrGun.js";
|
|
9
|
-
import { F as z } from "./fieldset-headless-CD3fds9J.js";
|
|
10
|
-
import { E as J } from "./error-icon-hZxQ6DEy.js";
|
|
11
|
-
import { s as _ } from "./field-rac.module-CWkwwhq4.js";
|
|
12
|
-
import { t as Q, J as $, h as K, v as W, n as X, j as Y } from "./form-element-classes-KRzHUNLu.js";
|
|
13
|
-
const t = ({ children: a }) => {
|
|
14
|
-
const { id: s, value: o, onChange: n, disabled: l, readOnly: i, required: r, onBlur: c, onFocus: m, hasError: u, FieldLayout: f } = O(), { inputId: g, labelId: b, ariaDescribedBy: L } = q(), h = p(a, t.Label), C = p(a, t.Options), D = p(a, t.Description), N = p(a, t.Error), A = x(() => o || [], [
|
|
15
|
-
o
|
|
16
|
-
]), S = w((y) => {
|
|
17
|
-
n == null || n(y);
|
|
18
|
-
}, [
|
|
19
|
-
n
|
|
20
|
-
]);
|
|
21
|
-
return /* @__PURE__ */ e.createElement(f, {
|
|
22
|
-
fieldId: s,
|
|
23
|
-
renderLabel: () => h,
|
|
24
|
-
renderInput: () => /* @__PURE__ */ e.createElement(z, {
|
|
25
|
-
id: g,
|
|
26
|
-
ariaLabelledBy: b,
|
|
27
|
-
ariaDescribedBy: L,
|
|
28
|
-
required: r,
|
|
29
|
-
onBlur: c,
|
|
30
|
-
onFocus: m
|
|
31
|
-
}, /* @__PURE__ */ e.createElement(M, {
|
|
32
|
-
"aria-labelledby": b,
|
|
33
|
-
value: A,
|
|
34
|
-
onChange: S,
|
|
35
|
-
isDisabled: l,
|
|
36
|
-
isReadOnly: i,
|
|
37
|
-
isRequired: r,
|
|
38
|
-
isInvalid: u
|
|
39
|
-
}, C)),
|
|
40
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, N, D)
|
|
41
|
-
});
|
|
42
|
-
}, R = ({ children: a, className: s }) => {
|
|
43
|
-
const { isMobile: o } = H(), { id: n, options: l, numberOfColumns: i } = O(), r = p(a, R.Option);
|
|
44
|
-
return /* @__PURE__ */ e.createElement("div", {
|
|
45
|
-
className: s,
|
|
46
|
-
"data-columns": o ? 1 : i
|
|
47
|
-
}, l == null ? void 0 : l.map((c, m) => F(r, {
|
|
48
|
-
key: c.id || c.label,
|
|
49
|
-
option: c,
|
|
50
|
-
isFirst: m === 0,
|
|
51
|
-
fieldId: n
|
|
52
|
-
})));
|
|
53
|
-
}, Z = ({ className: a }) => /* @__PURE__ */ e.createElement("div", {
|
|
54
|
-
"aria-hidden": "true",
|
|
55
|
-
className: a
|
|
56
|
-
}), ee = ({ className: a, ...s }) => {
|
|
57
|
-
var m, u;
|
|
58
|
-
const { option: o } = s, { choiceImageResize: n, choiceImageAlignment: l } = O(), i = (m = o.media) == null ? void 0 : m.image;
|
|
59
|
-
if (!i)
|
|
60
|
-
return null;
|
|
61
|
-
const r = G(i, i.width, i.height);
|
|
62
|
-
if (!r)
|
|
63
|
-
return null;
|
|
64
|
-
const c = ((u = o.media) == null ? void 0 : u.altText) || o.altText || i.altText || "";
|
|
65
|
-
return /* @__PURE__ */ e.createElement("img", {
|
|
66
|
-
className: a,
|
|
67
|
-
src: r,
|
|
68
|
-
alt: c,
|
|
69
|
-
"data-fit": n,
|
|
70
|
-
"data-alignment": l,
|
|
71
|
-
"data-hook": "image-choice-option-image"
|
|
72
|
-
});
|
|
73
|
-
}, te = ({ className: a, ...s }) => {
|
|
74
|
-
const { option: o } = s;
|
|
75
|
-
return !o.label || o.isLabelHidden ? null : /* @__PURE__ */ e.createElement("span", {
|
|
76
|
-
className: a
|
|
77
|
-
}, o.label);
|
|
78
|
-
}, d = ({ children: a, className: s, ...o }) => {
|
|
79
|
-
const { option: n, isFirst: l = !1, fieldId: i } = o, { disabled: r, readOnly: c, hasError: m } = O(), u = v(null);
|
|
80
|
-
P(() => {
|
|
81
|
-
var L;
|
|
82
|
-
l && ((L = u.current) == null || L.focus({
|
|
83
|
-
preventScroll: !0
|
|
84
|
-
}));
|
|
85
|
-
}, i);
|
|
86
|
-
const f = p(a, d.Input), g = p(a, d.Image), b = p(a, d.Label);
|
|
87
|
-
return /* @__PURE__ */ e.createElement(T, {
|
|
88
|
-
value: n.label,
|
|
89
|
-
isDisabled: r,
|
|
90
|
-
isReadOnly: c,
|
|
91
|
-
isInvalid: m
|
|
92
|
-
}, /* @__PURE__ */ e.createElement(B, {
|
|
93
|
-
ref: u,
|
|
94
|
-
"aria-label": n.isLabelHidden ? n.label : void 0,
|
|
95
|
-
className: s,
|
|
96
|
-
"data-hook": `image-choice-${n.label}`
|
|
97
|
-
}, f, F(g, {
|
|
98
|
-
option: n
|
|
99
|
-
}), F(b, {
|
|
100
|
-
option: n
|
|
101
|
-
})));
|
|
102
|
-
};
|
|
103
|
-
d.Input = Z;
|
|
104
|
-
d.Image = ee;
|
|
105
|
-
d.Label = te;
|
|
106
|
-
t.Label = U;
|
|
107
|
-
t.Options = R;
|
|
108
|
-
R.Option = d;
|
|
109
|
-
t.Description = V;
|
|
110
|
-
t.Error = j;
|
|
111
|
-
const ae = "_options_hwxpw_1", ne = "_optionInput_hwxpw_25", oe = "_option_hwxpw_1", se = "_optionLabel_hwxpw_105", ie = "_optionImage_hwxpw_136", I = {
|
|
112
|
-
options: ae,
|
|
113
|
-
optionInput: ne,
|
|
114
|
-
option: oe,
|
|
115
|
-
optionLabel: se,
|
|
116
|
-
optionImage: ie
|
|
117
|
-
}, le = ({ content: a, locale: s }) => /* @__PURE__ */ e.createElement(k, {
|
|
118
|
-
content: a,
|
|
119
|
-
locale: s
|
|
120
|
-
}), re = () => /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
121
|
-
className: E(Q, _.label)
|
|
122
|
-
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
123
|
-
className: E($, _.requiredMark)
|
|
124
|
-
})), /* @__PURE__ */ e.createElement(t.Options, {
|
|
125
|
-
className: I.options
|
|
126
|
-
}, /* @__PURE__ */ e.createElement(t.Options.Option, {
|
|
127
|
-
className: E(K, I.option)
|
|
128
|
-
}, /* @__PURE__ */ e.createElement(t.Options.Option.Input, {
|
|
129
|
-
className: I.optionInput
|
|
130
|
-
}), /* @__PURE__ */ e.createElement(t.Options.Option.Image, {
|
|
131
|
-
className: I.optionImage
|
|
132
|
-
}), /* @__PURE__ */ e.createElement(t.Options.Option.Label, {
|
|
133
|
-
className: E(W, I.optionLabel)
|
|
134
|
-
}))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
135
|
-
className: E(X, _.error)
|
|
136
|
-
}, /* @__PURE__ */ e.createElement(J, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
137
|
-
className: E(Y, _.description)
|
|
138
|
-
}, le)), ge = () => /* @__PURE__ */ e.createElement(re, null);
|
|
139
|
-
export {
|
|
140
|
-
ge as ImageChoiceRAC
|
|
141
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import _ from "react";
|
|
2
|
-
import { R } from "./radio-group-field-rac-DKqWnMBJ.js";
|
|
3
|
-
import { D as o, C as r, B as O } from "./form-element-classes-KRzHUNLu.js";
|
|
4
|
-
const I = () => /* @__PURE__ */ _.createElement(R, {
|
|
5
|
-
classes: {
|
|
6
|
-
container: O,
|
|
7
|
-
label: r,
|
|
8
|
-
control: o
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
export {
|
|
12
|
-
I as QuizRadioGroupRAC
|
|
13
|
-
};
|