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