@wix/form-elements 1.101.0 → 1.103.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 (114) hide show
  1. package/dist/component/{appointment-rac-Bz666XRl.js → appointment-rac-DW5YPIgy.js} +4 -4
  2. package/dist/component/{bookings-address-rac-BeOnUsml.js → bookings-address-rac-7ODYuuSG.js} +1 -1
  3. package/dist/component/{bookings-email-rac-DG28agAj.js → bookings-email-rac-BCnhC0YX.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-gR3z4-ab.js → bookings-first-name-rac-DvpfHse1.js} +1 -1
  5. package/dist/component/{bookings-header-rac-Z8uH4Ld4.js → bookings-header-rac-Dohy9hCz.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-BQIL81Rd.js → bookings-last-name-rac-CVDRbwd7.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DLDBFIUw.js → bookings-login-bar-rac-DavjHZGh.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-DZBdi31-.js → bookings-phone-rac-Cj6Dz0vX.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-uJfFKnlR.js → bookings-rich-text-rac-DjmnegM6.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CESygdpa.js → checkbox-field-rac-DbJQI0lK.js} +4 -4
  11. package/dist/component/checkbox-group-field-headless-BWCsolHw.js +205 -0
  12. package/dist/component/{checkbox-group-field-rac-B4xHxrnm.js → checkbox-group-field-rac-Cmc2pwQi.js} +7 -5
  13. package/dist/component/{checkbox-group-rac-Cj1QP0mi.js → checkbox-group-rac-q3wI6hQH.js} +1 -1
  14. package/dist/component/{checkbox-rac-CwDeLVTg.js → checkbox-rac-BsutELL1.js} +1 -1
  15. package/dist/component/{contacts-address-rac-CR0VgQjc.js → contacts-address-rac-BUCtejza.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BKP3MEUH.js → contacts-birthdate-rac-1E453ZgP.js} +1 -1
  17. package/dist/component/{contacts-company-rac-2KfK3HUv.js → contacts-company-rac-DrK20x29.js} +1 -1
  18. package/dist/component/{contacts-email-rac-C-StCCdk.js → contacts-email-rac-CMiWMV_P.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-DluPdJrM.js → contacts-first-name-rac-DPwXc8-1.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BPFDtu0m.js → contacts-last-name-rac-CeuRsbGC.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-DCjYThvu.js → contacts-phone-rac-Cwjc5too.js} +1 -1
  22. package/dist/component/{contacts-position-rac-70Y5K0-2.js → contacts-position-rac-C8w3NNCn.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-CkpV9O6Z.js → contacts-subscribe-rac-CFejp0de.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-Cc7RlBvQ.js → contacts-tax-id-rac-xNks1IAv.js} +1 -1
  25. package/dist/component/{date-availability-BNMZIIVi.js → date-availability-xTIFwK6x.js} +1 -1
  26. package/dist/component/{date-input-field-rac-B7U8YKrm.js → date-input-field-rac-DcoJJUZc.js} +6 -6
  27. package/dist/component/{date-input-rac-CYooWhMb.js → date-input-rac-CnZAuOkP.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-FmHlyJdB.js → date-picker-field-rac-D__137lA.js} +5 -5
  29. package/dist/component/{date-picker-rac-DLwn7AKn.js → date-picker-rac-DQ42fhVP.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-eGxHBFDW.js → date-time-input-field-rac-BHBAMq3g.js} +6 -6
  31. package/dist/component/{date-time-input-rac-2E-AZjJU.js → date-time-input-rac-DbIAF6nq.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-1yuZvgHa.js → dext-checkbox-group-rac-Ds2w4V3q.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-DM0XXP68.js → dext-checkbox-rac-DSidRTEl.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-CMzKfaWk.js → dext-date-picker-rac-Derm4Q3d.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-CFq1kbpd.js → dext-date-time-input-rac-BcyPuijC.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-BdhFCJOG.js → dext-dropdown-rac-kDuk--KF.js} +1 -1
  37. package/dist/component/{dext-email-rac-B7pSx32V.js → dext-email-rac-xys-YMg2.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-BySDR8wu.js → dext-number-input-rac-BZpAijhk.js} +1 -1
  39. package/dist/component/{dext-phone-rac-BG5s3WRz.js → dext-phone-rac-CMPboOsF.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-rLbHat4_.js → dext-radio-group-rac-5h9c9bW2.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-Q6sOA59G.js → dext-rating-input-rac-BobDzEXB.js} +1 -1
  42. package/dist/component/{dext-tags-rac-ChmYbfhb.js → dext-tags-rac-DoJWzkrn.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-D3sAPT-i.js → dext-text-area-rac-BIRCFM2F.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-Pt4j-NHE.js → dext-text-input-rac-Bzx5hcyp.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-jVL0Hmzh.js → dext-url-input-rac-C9hlh97b.js} +1 -1
  46. package/dist/component/donation-rac-CpEduCy1.js +318 -0
  47. package/dist/component/{dropdown-field-headless-CppwKBfX.js → dropdown-field-headless-Dcbu807N.js} +4 -4
  48. package/dist/component/{dropdown-field-rac-CgBmIDaT.js → dropdown-field-rac-mJwCTpQA.js} +2 -2
  49. package/dist/component/{dropdown-rac-BMweA5uI.js → dropdown-rac-N5I5XU3B.js} +1 -1
  50. package/dist/component/{ecom-address-rac-O0_CQxUW.js → ecom-address-rac-_0TO5pFZ.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-Cmu1KuGg.js → ecom-subscription-checkbox-rac-DNdz6UCu.js} +2 -2
  52. package/dist/component/{email-input-field-rac-D_5MccPr.js → email-input-field-rac-VDJC1JLs.js} +3 -3
  53. package/dist/component/{events-repeater-rac-8Y4pq7V2.js → events-repeater-rac-CzBVzG00.js} +4 -4
  54. package/dist/component/{events-rsvp-rac-BYydUMNS.js → events-rsvp-rac--ADJlIQz.js} +24 -20
  55. package/dist/component/{field-error-headless-gUwzDWOe.js → field-error-headless-_ADCIvnx.js} +1 -1
  56. package/dist/component/{field-label-headless-Co6yOqfY.js → field-label-headless-DiDxuhCI.js} +1 -1
  57. package/dist/component/{file-upload-rac-DCPcAuy6.js → file-upload-rac-CiYo9UQA.js} +3 -3
  58. package/dist/component/{fixed-payment-rac-BYxHFMz7.js → fixed-payment-rac-DgNVdELB.js} +3 -3
  59. package/dist/component/{form-xpXT6sSe.js → form-DPmF8iaT.js} +69 -69
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +1 -1
  62. package/dist/component/{header-field-rac-D6Ooi7Mr.js → header-field-rac-BuJTUp5S.js} +2 -2
  63. package/dist/component/{header-rac-DnGs8ZQz.js → header-rac-BphcUkmo.js} +1 -1
  64. package/dist/component/image-choice-rac-CZSMzLY2.js +162 -0
  65. package/dist/component/{index-DDN9WMAP.js → index-B0DLHSXg.js} +4 -4
  66. package/dist/component/{index-BycimQIL.js → index-BEIxTlpO.js} +2 -2
  67. package/dist/component/{isObjectLike-CO5vOu2v.js → isObjectLike-DuXP52EV.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-Ceqa3t-S.js → multiline-address-field-rac-CNJyTqJt.js} +7 -7
  69. package/dist/component/{multiline-address-rac-DUEzLbEj.js → multiline-address-rac-DG7xjt6A.js} +1 -1
  70. package/dist/component/{number-input-field-rac-bpQgiO2z.js → number-input-field-rac-Bj2AK7Oj.js} +4 -4
  71. package/dist/component/{number-input-rac-igcMPISW.js → number-input-rac-JPgr87Xh.js} +1 -1
  72. package/dist/component/options-rac.module-CTDdATiz.js +8 -0
  73. package/dist/component/{password-rac-BT1z4LAW.js → password-rac-J0ySzA6j.js} +4 -4
  74. package/dist/component/{payment-input-rac-COxjqEMn.js → payment-input-rac-B1VmJQeD.js} +4 -4
  75. package/dist/component/{phone-input-field-rac-CDeMaVl7.js → phone-input-field-rac-SWP8Xkh-.js} +6 -6
  76. package/dist/component/{phone-rac-BCL0hoBl.js → phone-rac-BU33sXKk.js} +1 -1
  77. package/dist/component/{product-list-rac-BI9J6Cv5.js → product-list-rac-dk3gFLyb.js} +5 -5
  78. package/dist/component/{quiz-radio-group-rac-oevpys_A.js → quiz-radio-group-rac-BFlVZj9U.js} +1 -1
  79. package/dist/component/radio-button-module-classes-DgiY7sw3.js +133 -0
  80. package/dist/component/{radio-group-field-rac-2y5gEEt7.js → radio-group-field-rac-qD-GQu2A.js} +23 -21
  81. package/dist/component/{radio-group-rac-DF769GN5.js → radio-group-rac-CIY9Gj99.js} +1 -1
  82. package/dist/component/{rating-input-field-rac-DzuWl96q.js → rating-input-field-rac-BVWuvhkf.js} +4 -4
  83. package/dist/component/{rating-input-rac-DOwiqhty.js → rating-input-rac-C3HFmqHX.js} +1 -1
  84. package/dist/component/{rich-content-rac.module-B0CKQkBJ.js → rich-content-rac.module-QBgwAjEA.js} +1 -1
  85. package/dist/component/{rich-text-field-rac-CHfUVOQg.js → rich-text-field-rac-BohVUJm1.js} +2 -2
  86. package/dist/component/{rich-text-rac-CyfDUzdG.js → rich-text-rac-BST0y6Gq.js} +1 -1
  87. package/dist/component/{service-dropdown-rac-DSOEw_Pz.js → service-dropdown-rac-DZSY9T2v.js} +4 -4
  88. package/dist/component/services-multi-choice-rac-hD8TI7n7.js +89 -0
  89. package/dist/component/{signature-rac-CQgKDpSA.js → signature-rac-D9G6D7Pa.js} +3 -3
  90. package/dist/component/{submit-button-rac-CkcToyXk.js → submit-button-rac-D4vOTaQ9.js} +1 -1
  91. package/dist/component/tags-field-rac-CoNoLUAV.js +220 -0
  92. package/dist/component/{tags-rac-De-oJJeH.js → tags-rac-BGT8KWvN.js} +1 -1
  93. package/dist/component/{text-area-field-rac-Abh_6vvi.js → text-area-field-rac-x-LWaPSL.js} +4 -4
  94. package/dist/component/{text-area-rac-CPtigptv.js → text-area-rac-B0KN3TR1.js} +1 -1
  95. package/dist/component/{text-input-field-rac-mmA4MWmn.js → text-input-field-rac-DH5j0Tvv.js} +2 -2
  96. package/dist/component/{text-input-headless-_LKXMy0W.js → text-input-headless-Slo-xa7H.js} +3 -3
  97. package/dist/component/{text-input-rac-Dwc5DpDr.js → text-input-rac-_VrGU08X.js} +1 -1
  98. package/dist/component/{time-input-rac-DXaTD0kX.js → time-input-rac-DS5uFTDp.js} +4 -4
  99. package/dist/component/{url-input-field-rac-DmFkKHcU.js → url-input-field-rac-yCewMKD-.js} +4 -4
  100. package/dist/component/{url-input-rac-B0_9AJIF.js → url-input-rac-D7cuZG08.js} +1 -1
  101. package/dist/component/{use-dropdown-option-class-name-DXfUR3FK.js → use-dropdown-option-class-name-DbjgH9K1.js} +1 -1
  102. package/dist/component/{use-element-state-class-name-DnTajLN7.js → use-element-state-class-name-C2_dMWlH.js} +1 -1
  103. package/dist/component/{use-is-forced-open-dropdown-aQ729ktc.js → use-is-forced-open-dropdown-VcOCKx-3.js} +1 -1
  104. package/dist/component/{use-service-options-base-DY2mUh8f.js → use-service-options-base-Cu9nE-aZ.js} +1 -1
  105. package/dist/component/{use-text-input-class-name-ZQJA7JHr.js → use-text-input-class-name-DMokiXwB.js} +2 -2
  106. package/package.json +2 -2
  107. package/dist/component/checkbox-group-field-headless-Bz_FnjxO.js +0 -205
  108. package/dist/component/donation-rac-D_ljVWm9.js +0 -319
  109. package/dist/component/image-choice-rac-B9t4gM5n.js +0 -158
  110. package/dist/component/options-layout-constants-DEfIEJWD.js +0 -6
  111. package/dist/component/options-rac.module-KM-VT_KY.js +0 -7
  112. package/dist/component/radio-button-module-classes-CJ00fK3C.js +0 -132
  113. package/dist/component/services-multi-choice-rac-Bw3adRvE.js +0 -85
  114. package/dist/component/tags-field-rac-BEuOFlHS.js +0 -218
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { R as e } from "./rating-input-field-rac-DzuWl96q.js";
2
+ import { R as e } from "./rating-input-field-rac-BVWuvhkf.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as DextRatingInputRAC
@@ -1,6 +1,6 @@
1
1
  import r from "react";
2
- import { ak as e, h as o } from "./form-xpXT6sSe.js";
3
- import { T as s } from "./tags-field-rac-BEuOFlHS.js";
2
+ import { ak as e, h as o } from "./form-DPmF8iaT.js";
3
+ import { T as s } from "./tags-field-rac-CoNoLUAV.js";
4
4
  import { b as a } from "./default-limits-D7qVv_Hv.js";
5
5
  const l = () => {
6
6
  const t = {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as t } from "./text-area-field-rac-Abh_6vvi.js";
2
+ import { T as t } from "./text-area-field-rac-x-LWaPSL.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  a as DextTextAreaRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-mmA4MWmn.js";
2
+ import { T as e } from "./text-input-field-rac-DH5j0Tvv.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as DextTextInputRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { U as r } from "./url-input-field-rac-DmFkKHcU.js";
2
+ import { U as r } from "./url-input-field-rac-yCewMKD-.js";
3
3
  const n = () => /* @__PURE__ */ t.createElement(r, null);
4
4
  export {
5
5
  n as DextUrlInputRAC
@@ -0,0 +1,318 @@
1
+ import n, { useMemo as x, useCallback as D, useRef as re } from "react";
2
+ import { RicosViewer as ae } from "@wix/ricos/viewer";
3
+ import F from "classnames";
4
+ import { RadioGroup as se, RadioField as Y, RadioButton as Q, TextField as le, Group as ie, Input as ce } from "react-aria-components";
5
+ import { debounce as ue } from "ts-debounce";
6
+ import { P as W, ak as L, ah as M, au as me, ac as B, am as pe } from "./form-DPmF8iaT.js";
7
+ import { f, a as b } from "./find-child-C60k4CxG.js";
8
+ import { a as z } from "./format-currency-BwShJ9vM.js";
9
+ import { D as de, E as Ce } from "./field-error-headless-_ADCIvnx.js";
10
+ import { L as Ie } from "./field-label-headless-DiDxuhCI.js";
11
+ import { a as Ee, b as fe } from "./numeric-input-utils-CuBMi4-a.js";
12
+ import { g as he } from "./payment-field-utils-DobiK5Xh.js";
13
+ import { u as Oe } from "./use-synced-display-value-DcAxdn3M.js";
14
+ import { E as _e } from "./error-icon-hZxQ6DEy.js";
15
+ import { s as S } from "./field-rac.module-DobpyqOd.js";
16
+ import { C as ye, S as be, k as ge, r as Ne, j as Fe, l as De } from "./form-element-classes-BtKlobUX.js";
17
+ import { o as G } from "./options-rac.module-CTDdATiz.js";
18
+ import { u as Se } from "./use-element-state-class-name-C2_dMWlH.js";
19
+ import { u as ve } from "./use-text-input-class-name-DMokiXwB.js";
20
+ function Re(e, t) {
21
+ return e.reduce((o, r) => (o[r[t]] = r, o), {});
22
+ }
23
+ function Le(e) {
24
+ return Re(e, "id");
25
+ }
26
+ const Ae = 0.01;
27
+ function je(e) {
28
+ var t;
29
+ return ((t = e == null ? void 0 : e.fixedPriceOptions) == null ? void 0 : t.price) || "0";
30
+ }
31
+ function J(e, t) {
32
+ const o = Number(t || "0");
33
+ return {
34
+ productId: e.id,
35
+ price: e.priceType === W.DYNAMIC_PRICE ? o : String(o),
36
+ quantity: 1
37
+ };
38
+ }
39
+ function Te(e) {
40
+ return e.find((t) => t.priceType === W.DYNAMIC_PRICE);
41
+ }
42
+ function Pe(e, t) {
43
+ return (e == null ? void 0 : e.productId) === (t == null ? void 0 : t.id) ? String((e == null ? void 0 : e.price) ?? "") : "";
44
+ }
45
+ function xe(e, t, o) {
46
+ const r = (t == null ? void 0 : t.productId) === e ? void 0 : e, s = r ? o[r] : void 0;
47
+ return s ? [
48
+ J(s, je(s))
49
+ ] : [];
50
+ }
51
+ const a = ({ children: e }) => {
52
+ const { id: t, value: o, onChange: r, disabled: s, required: u, onBlur: m, onFocus: C, validation: i, addOther: p, addOtherPlaceholder: c, FieldLayout: h, hasError: y } = L(), { labelId: O } = M(), { t: I } = me(), { currency: A, regionalFormat: g } = B(), d = o == null ? void 0 : o[0], N = x(() => {
53
+ var E, P;
54
+ return ((P = (E = i == null ? void 0 : i.predefined) == null ? void 0 : E.paymentOptions) == null ? void 0 : P.products) || [];
55
+ }, [
56
+ i
57
+ ]), j = x(() => Le(N), [
58
+ N
59
+ ]), l = x(() => p ? Te(N) : void 0, [
60
+ N,
61
+ p
62
+ ]), K = Pe(d, l), [k, T] = Oe({
63
+ sourceValue: K,
64
+ format: (E) => fe(String(E ?? ""), g),
65
+ regionalFormat: g
66
+ }), q = D((E) => {
67
+ r(xe(E, d, j)), T("");
68
+ }, [
69
+ r,
70
+ j,
71
+ d,
72
+ T
73
+ ]), U = D((E) => {
74
+ l && r(typeof E == "number" ? [
75
+ J(l, String(E))
76
+ ] : []);
77
+ }, [
78
+ r,
79
+ l
80
+ ]), $ = x(() => ue(U, 500), [
81
+ U
82
+ ]), X = D((E) => {
83
+ (d == null ? void 0 : d.productId) !== (l == null ? void 0 : l.id) && r(void 0);
84
+ const { validInput: P, validNumber: oe } = Ee(E.target.value, Ae, k, g);
85
+ T(P), $(oe);
86
+ }, [
87
+ g,
88
+ r,
89
+ d,
90
+ l,
91
+ k,
92
+ $,
93
+ T
94
+ ]), w = (d == null ? void 0 : d.productId) || null, Z = D(() => {
95
+ l != null && l.id && w !== l.id && q(l.id);
96
+ }, [
97
+ l == null ? void 0 : l.id,
98
+ w,
99
+ q
100
+ ]), ee = f(e, a.Label), V = f(e, a.Control), te = f(e, a.Description), ne = f(e, a.Error);
101
+ return /* @__PURE__ */ n.createElement(h, {
102
+ fieldId: t,
103
+ renderLabel: () => ee,
104
+ renderInput: () => /* @__PURE__ */ n.createElement(se, {
105
+ "aria-labelledby": O,
106
+ value: w,
107
+ onChange: q,
108
+ isDisabled: s,
109
+ isInvalid: y,
110
+ isRequired: u,
111
+ onBlur: m,
112
+ onFocus: C
113
+ }, V ? b(V, {
114
+ productsById: j,
115
+ addOther: p,
116
+ customAmount: k,
117
+ onCustomAmountInputChange: X,
118
+ currency: A,
119
+ t: I,
120
+ placeholder: c === void 0 ? I("donation.other-option.placeholder") : c,
121
+ customAmountProductId: l == null ? void 0 : l.id,
122
+ onFocusCustomInput: Z
123
+ }) : null),
124
+ renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, ne, te)
125
+ });
126
+ }, Me = ({ children: e, className: t, ...o }) => {
127
+ const { productsById: r, addOther: s, customAmount: u, onCustomAmountInputChange: m, currency: C, t: i, placeholder: p, customAmountProductId: c, onFocusCustomInput: h } = o, { hasError: y } = L(), O = f(e, a.Options), I = f(e, a.OtherInput);
128
+ return /* @__PURE__ */ n.createElement("div", {
129
+ className: t,
130
+ "data-invalid": y
131
+ }, O ? b(O, {
132
+ productsById: r
133
+ }) : null, s && c && /* @__PURE__ */ n.createElement(Y, {
134
+ value: c,
135
+ style: {
136
+ position: "absolute",
137
+ width: "1px",
138
+ height: "1px",
139
+ padding: "0",
140
+ margin: "-1px",
141
+ overflow: "hidden",
142
+ clip: "rect(0, 0, 0, 0)",
143
+ whiteSpace: "nowrap",
144
+ border: "0"
145
+ }
146
+ }, /* @__PURE__ */ n.createElement(Q, {
147
+ "aria-label": i("donation.other-option.label", "Custom amount")
148
+ }, i("donation.other-option.label", "Custom amount"))), I && s ? b(I, {
149
+ customAmount: u,
150
+ onCustomAmountInputChange: m,
151
+ currency: C,
152
+ t: i,
153
+ placeholder: p,
154
+ customAmountProductId: c,
155
+ onFocusCustomInput: h
156
+ }) : null);
157
+ }, H = ({ children: e, className: t, ...o }) => {
158
+ const { productsById: r } = o, { options: s, numberOfColumns: u } = L(), m = f(e, H.Option);
159
+ return /* @__PURE__ */ n.createElement("div", {
160
+ className: t,
161
+ "data-columns": u
162
+ }, s.map((C) => {
163
+ var c;
164
+ const i = r[C.value], p = (c = i == null ? void 0 : i.fixedPriceOptions) == null ? void 0 : c.price;
165
+ return b(m, {
166
+ key: C.value,
167
+ value: C.value,
168
+ price: p || "0"
169
+ });
170
+ }));
171
+ }, v = ({ children: e, className: t, ...o }) => {
172
+ const { value: r, price: s } = o, { id: u } = L(), { currency: m, regionalFormat: C } = B(), i = f(e, v.Value), p = f(e, v.Currency), { isCurrencyPrefixed: c } = z({
173
+ amount: s,
174
+ currency: m == null ? void 0 : m.code,
175
+ locale: C
176
+ }), h = re(null);
177
+ pe(() => {
178
+ var O, I;
179
+ (I = (O = h.current) == null ? void 0 : O.querySelector("input")) == null || I.focus();
180
+ }, u);
181
+ const y = i ? b(i, {
182
+ price: s
183
+ }) : null;
184
+ return /* @__PURE__ */ n.createElement(Y, {
185
+ value: r
186
+ }, /* @__PURE__ */ n.createElement(Q, {
187
+ className: t,
188
+ ref: h
189
+ }, /* @__PURE__ */ n.createElement(n.Fragment, null, c && p, y, !c && p)));
190
+ }, Be = ({ className: e, ...t }) => {
191
+ const { price: o } = t, { currency: r, regionalFormat: s } = B(), { value: u } = z({
192
+ amount: o,
193
+ currency: r == null ? void 0 : r.code,
194
+ locale: s
195
+ });
196
+ return /* @__PURE__ */ n.createElement("span", {
197
+ className: e
198
+ }, u);
199
+ }, ke = ({ className: e }) => {
200
+ const { currency: t } = B();
201
+ return /* @__PURE__ */ n.createElement("span", {
202
+ className: e
203
+ }, (t == null ? void 0 : t.sign) || (t == null ? void 0 : t.code) || "");
204
+ };
205
+ v.Value = Be;
206
+ v.Currency = ke;
207
+ const R = ({ children: e, className: t, ...o }) => {
208
+ const { customAmount: r, onCustomAmountInputChange: s, currency: u, t: m, placeholder: C, customAmountProductId: i, onFocusCustomInput: p } = o, { disabled: c, hasError: h } = L(), { labelId: y, prefixId: O } = M(), I = f(e, R.Currency), A = f(e, R.Value), g = D((N) => {
209
+ s({
210
+ target: {
211
+ value: N
212
+ }
213
+ });
214
+ }, [
215
+ s
216
+ ]), d = D(() => {
217
+ p();
218
+ }, [
219
+ p
220
+ ]);
221
+ return /* @__PURE__ */ n.createElement(le, {
222
+ "aria-labelledby": `${y} ${O}`,
223
+ value: r,
224
+ onChange: g,
225
+ onFocus: d,
226
+ isDisabled: c,
227
+ isInvalid: h
228
+ }, /* @__PURE__ */ n.createElement(ie, {
229
+ className: t,
230
+ isDisabled: c,
231
+ isInvalid: h
232
+ }, r && u && I ? b(I, {
233
+ currency: u,
234
+ t: m
235
+ }) : null, A ? b(A, {
236
+ placeholder: C,
237
+ customAmountProductId: i
238
+ }) : null));
239
+ }, qe = ({ className: e, ...t }) => {
240
+ const { currency: o, t: r } = t, { prefixId: s } = M();
241
+ return /* @__PURE__ */ n.createElement("span", {
242
+ id: s,
243
+ "aria-hidden": !1,
244
+ "aria-label": he(r, o),
245
+ className: e
246
+ }, (o == null ? void 0 : o.sign) || (o == null ? void 0 : o.code) || "");
247
+ }, we = ({ className: e, ...t }) => {
248
+ const { placeholder: o, customAmountProductId: r } = t, { ariaDescribedBy: s, labelId: u, prefixId: m } = M();
249
+ return /* @__PURE__ */ n.createElement(ce, {
250
+ id: r,
251
+ "aria-labelledby": `${u} ${m}`,
252
+ "aria-describedby": s,
253
+ placeholder: o,
254
+ inputMode: "decimal",
255
+ autoComplete: "off",
256
+ className: e
257
+ });
258
+ };
259
+ R.Currency = qe;
260
+ R.Value = we;
261
+ H.Option = v;
262
+ a.Label = Ie;
263
+ a.Control = Me;
264
+ a.Options = H;
265
+ a.OtherInput = R;
266
+ a.Description = de;
267
+ a.Error = Ce;
268
+ const He = "_control_1jl2j_1", Ue = "_options_1jl2j_7", $e = "_option_1jl2j_7", Ve = "_optionHover_1jl2j_43", Ge = "_optionSelected_1jl2j_43", Ye = "_optionCurrency_1jl2j_93", Qe = "_otherInput_1jl2j_97", We = "_otherInputCurrency_1jl2j_116", _ = {
269
+ control: He,
270
+ options: Ue,
271
+ option: $e,
272
+ optionHover: Ve,
273
+ optionSelected: Ge,
274
+ optionCurrency: Ye,
275
+ otherInput: Qe,
276
+ otherInputCurrency: We
277
+ }, ze = ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(ae, {
278
+ content: e,
279
+ locale: t
280
+ }), Je = {
281
+ base: _.option,
282
+ selected: _.optionSelected,
283
+ hover: _.optionHover
284
+ }, Ke = () => {
285
+ const e = ve(_.otherInput), t = Se({
286
+ globalClasses: De,
287
+ moduleClasses: Je
288
+ });
289
+ return /* @__PURE__ */ n.createElement(a, null, /* @__PURE__ */ n.createElement(a.Label, {
290
+ className: F(ye, S.label)
291
+ }, /* @__PURE__ */ n.createElement(a.Label.Required, {
292
+ className: F(be, S.requiredMark)
293
+ })), /* @__PURE__ */ n.createElement(a.Control, {
294
+ className: F(_.control, G.group)
295
+ }, /* @__PURE__ */ n.createElement(a.Options, {
296
+ className: F(ge, G.options, _.options)
297
+ }, /* @__PURE__ */ n.createElement(a.Options.Option, {
298
+ className: ({ isSelected: o, isHovered: r }) => t({
299
+ isSelected: o,
300
+ isHovered: r
301
+ })
302
+ }, /* @__PURE__ */ n.createElement(a.Options.Option.Value, null), /* @__PURE__ */ n.createElement(a.Options.Option.Currency, {
303
+ className: _.optionCurrency
304
+ }))), /* @__PURE__ */ n.createElement(a.OtherInput, {
305
+ className: e
306
+ }, /* @__PURE__ */ n.createElement(a.OtherInput.Currency, {
307
+ className: _.otherInputCurrency
308
+ }), /* @__PURE__ */ n.createElement(a.OtherInput.Value, {
309
+ className: S.innerInput
310
+ }))), /* @__PURE__ */ n.createElement(a.Error, {
311
+ className: F(Ne, S.error)
312
+ }, /* @__PURE__ */ n.createElement(_e, null), /* @__PURE__ */ n.createElement(a.Error.Text, null)), /* @__PURE__ */ n.createElement(a.Description, {
313
+ className: F(Fe, S.description)
314
+ }, ze));
315
+ }, ft = () => /* @__PURE__ */ n.createElement(Ke, null);
316
+ export {
317
+ ft as DonationRAC
318
+ };
@@ -1,12 +1,12 @@
1
1
  import e, { useState as g, useCallback as b, useRef as A } from "react";
2
2
  import { UNSAFE_PortalProvider as M } from "react-aria";
3
3
  import { Select as U, SelectValue as _, ListBox as j, ListBoxItem as z } from "react-aria-components";
4
- import { ak as f, ah as O, am as G } from "./form-xpXT6sSe.js";
4
+ import { ak as f, ah as O, am as G } from "./form-DPmF8iaT.js";
5
5
  import { f as d, a as F } from "./find-child-C60k4CxG.js";
6
- import { D as H, E as J } from "./field-error-headless-gUwzDWOe.js";
7
- import { L as K } from "./field-label-headless-Co6yOqfY.js";
6
+ import { D as H, E as J } from "./field-error-headless-_ADCIvnx.js";
7
+ import { L as K } from "./field-label-headless-DiDxuhCI.js";
8
8
  import { S as Q, N as W } from "./non-modal-popover-DtIMXHbe.js";
9
- import { u as X } from "./use-is-forced-open-dropdown-aQ729ktc.js";
9
+ import { u as X } from "./use-is-forced-open-dropdown-VcOCKx-3.js";
10
10
  const r = ({ children: n }) => {
11
11
  const { id: l, value: a, defaultValue: s, options: u = [], readOnly: o, onChange: t, placeholder: m, disabled: i, required: v, onBlur: y, onFocus: D, FieldLayout: h, hasError: C } = f(), [I, L] = g(!1), p = X(l), [B, N] = g(null), P = a && u.some((c) => (c.value ?? c.label) === a) ? a : s || null, { labelId: S } = O(), T = b((c) => {
12
12
  o || t(typeof c == "string" ? c : null);
@@ -1,13 +1,13 @@
1
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 r } from "./dropdown-field-headless-CppwKBfX.js";
4
+ import { D as r } from "./dropdown-field-headless-Dcbu807N.js";
5
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
8
  import { s as o } from "./field-rac.module-DobpyqOd.js";
9
9
  import { C as E, S as i, n as p, E as _, r as R, j as D } from "./form-element-classes-BtKlobUX.js";
10
- import { u as O } from "./use-dropdown-option-class-name-DXfUR3FK.js";
10
+ import { u as O } from "./use-dropdown-option-class-name-DbjgH9K1.js";
11
11
  const S = ({ content: a, locale: s }) => /* @__PURE__ */ e.createElement(m, {
12
12
  content: a,
13
13
  locale: s
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { D as r } from "./dropdown-field-rac-CgBmIDaT.js";
2
+ import { D as r } from "./dropdown-field-rac-mJwCTpQA.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-Ceqa3t-S.js";
2
+ import { M as r } from "./multiline-address-field-rac-CNJyTqJt.js";
3
3
  const l = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  l as EcomAddressRAC
@@ -1,6 +1,6 @@
1
1
  import o, { useMemo as a } from "react";
2
- import { ak as n, au as c, h as i } from "./form-xpXT6sSe.js";
3
- import { C } from "./checkbox-field-rac-CESygdpa.js";
2
+ import { ak as n, au as c, h as i } from "./form-DPmF8iaT.js";
3
+ import { C } from "./checkbox-field-rac-DbJQI0lK.js";
4
4
  import { p, q as l, o as m } from "./form-element-classes-BtKlobUX.js";
5
5
  const _ = (e) => ({
6
6
  nodes: [
@@ -2,7 +2,7 @@ import { RicosViewer as ie } from "@wix/ricos/viewer";
2
2
  import D from "classnames";
3
3
  import u, { createContext as z, useContext as Z, createElement as R, isValidElement as B, cloneElement as w, useState as le, useCallback as me, useEffect as ue } from "react";
4
4
  import { TextField as pe } from "react-aria-components";
5
- import { ah as fe, au as ge, af as ve, c as ye, ak as Ee, ao as de, ai as be, f as Se } from "./form-xpXT6sSe.js";
5
+ import { ah as fe, au as ge, af as ve, c as ye, ak as Ee, ao as de, ai as be, f as Se } from "./form-DPmF8iaT.js";
6
6
  import { f as C } from "./find-child-C60k4CxG.js";
7
7
  import ee from "@babel/runtime/helpers/objectWithoutProperties";
8
8
  import L from "@babel/runtime/helpers/typeof";
@@ -10,11 +10,11 @@ import Oe from "@babel/runtime/helpers/defineProperty";
10
10
  import he from "html-parse-stringify";
11
11
  import Ie from "@babel/runtime/helpers/classCallCheck";
12
12
  import Ne from "@babel/runtime/helpers/createClass";
13
- import { T as U } from "./text-input-headless-_LKXMy0W.js";
13
+ import { T as U } from "./text-input-headless-Slo-xa7H.js";
14
14
  import { E as Ae } from "./error-icon-hZxQ6DEy.js";
15
15
  import { s as H } from "./field-rac.module-DobpyqOd.js";
16
16
  import { C as ke, S as Fe, r as Te, j as xe, _ as je } from "./form-element-classes-BtKlobUX.js";
17
- import { u as De } from "./use-text-input-class-name-ZQJA7JHr.js";
17
+ import { u as De } from "./use-text-input-class-name-DMokiXwB.js";
18
18
  var Ce = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Le = {
19
19
  "&": "&",
20
20
  "&": "&",
@@ -1,17 +1,17 @@
1
1
  import t, { useState as $, useMemo as B, useCallback as T, useRef as M } from "react";
2
2
  import k from "classnames";
3
3
  import { NumberField as q, CheckboxField as J, CheckboxButton as Q, Group as W, Input as Y, Button as w } from "react-aria-components";
4
- import { aq as U, ar as z, ag as H, al as K, v as Z, ak as L, ah as P, am as X, j as ee } from "./form-xpXT6sSe.js";
4
+ import { aq as U, ar as z, ag as H, al as K, v as Z, ak as L, ah as P, am as X, j as ee } from "./form-DPmF8iaT.js";
5
5
  import { f as C, a as y } from "./find-child-C60k4CxG.js";
6
- import { L as te } from "./field-label-headless-Co6yOqfY.js";
6
+ import { L as te } from "./field-label-headless-DiDxuhCI.js";
7
7
  import { S as se } from "./selection-indicator-XQ8MYHUQ.js";
8
8
  import { u as ne } from "./use-invoke-callback-UH73A_J3.js";
9
9
  import { C as x } from "./chevron-down-icon-CcpVm6B-.js";
10
10
  import { C as oe } from "./checkbox-indicator-module-classes-DhbNznSB.js";
11
11
  import { s as v } from "./field-rac.module-DobpyqOd.js";
12
12
  import { C as re, s as ae, u as le, t as ce } from "./form-element-classes-BtKlobUX.js";
13
- import { u as ue } from "./use-element-state-class-name-DnTajLN7.js";
14
- import { u as me } from "./use-text-input-class-name-ZQJA7JHr.js";
13
+ import { u as ue } from "./use-element-state-class-name-C2_dMWlH.js";
14
+ import { u as me } from "./use-text-input-class-name-DMokiXwB.js";
15
15
  const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, errors: l = ie, validation: c }) => {
16
16
  const [m, i] = $((o == null ? void 0 : o.length) || 0), u = B(() => o ?? [], [
17
17
  o
@@ -1,43 +1,47 @@
1
1
  import t from "react";
2
2
  import { RicosViewer as m } from "@wix/ricos/viewer";
3
- import r from "classnames";
4
- import { a as s, s as o, R as c } from "./radio-button-module-classes-CJ00fK3C.js";
3
+ import s from "classnames";
4
+ import { a, s as o, R as c } from "./radio-button-module-classes-DgiY7sw3.js";
5
5
  import { E } from "./error-icon-hZxQ6DEy.js";
6
6
  import { s as l } from "./field-rac.module-DobpyqOd.js";
7
7
  import { C as i, S as p, T as R, U as _, r as O, j as L, V as S } from "./form-element-classes-BtKlobUX.js";
8
- import { u } from "./use-element-state-class-name-DnTajLN7.js";
9
- const e = ({ children: a }) => /* @__PURE__ */ t.createElement(s, null, a);
10
- e.Label = s.Label;
11
- e.Options = s.Options;
12
- e.Option = s.Option;
13
- e.Description = s.Description;
14
- e.Error = s.Error;
15
- const D = ({ content: a, locale: n }) => /* @__PURE__ */ t.createElement(m, {
16
- content: a,
8
+ import { u as N } from "./use-element-state-class-name-C2_dMWlH.js";
9
+ const e = ({ children: r, className: n }) => /* @__PURE__ */ t.createElement(a, {
10
+ className: n
11
+ }, r);
12
+ e.Label = a.Label;
13
+ e.Options = a.Options;
14
+ e.Option = a.Option;
15
+ e.Description = a.Description;
16
+ e.Error = a.Error;
17
+ const D = ({ content: r, locale: n }) => /* @__PURE__ */ t.createElement(m, {
18
+ content: r,
17
19
  locale: n
18
20
  }), I = () => {
19
- const a = u({
21
+ const r = N({
20
22
  globalClasses: S,
21
23
  moduleClasses: c
22
24
  });
23
- return /* @__PURE__ */ t.createElement(e, null, /* @__PURE__ */ t.createElement(e.Label, {
24
- className: r(i, l.label)
25
+ return /* @__PURE__ */ t.createElement(e, {
26
+ className: o.group
27
+ }, /* @__PURE__ */ t.createElement(e.Label, {
28
+ className: s(i, l.label)
25
29
  }, /* @__PURE__ */ t.createElement(e.Label.Required, {
26
- className: r(p, l.requiredMark)
30
+ className: s(p, l.requiredMark)
27
31
  })), /* @__PURE__ */ t.createElement(e.Options, {
28
- className: r(R, o.options)
32
+ className: s(R, o.options)
29
33
  }, /* @__PURE__ */ t.createElement(e.Option, {
30
34
  className: o.option
31
35
  }, /* @__PURE__ */ t.createElement(e.Option.Input, {
32
36
  className: o.optionInput
33
37
  }), /* @__PURE__ */ t.createElement(e.Option.Control, {
34
- className: a
38
+ className: r
35
39
  }), /* @__PURE__ */ t.createElement(e.Option.Label, {
36
- className: r(_, o.optionLabel)
40
+ className: s(_, o.optionLabel)
37
41
  }))), /* @__PURE__ */ t.createElement(e.Error, {
38
- className: r(O, l.error)
42
+ className: s(O, l.error)
39
43
  }, /* @__PURE__ */ t.createElement(E, null), /* @__PURE__ */ t.createElement(e.Error.Text, null)), /* @__PURE__ */ t.createElement(e.Description, {
40
- className: r(L, l.description)
44
+ className: s(L, l.description)
41
45
  }, D));
42
46
  }, b = () => /* @__PURE__ */ t.createElement(I, null);
43
47
  export {
@@ -1,5 +1,5 @@
1
1
  import t, { createContext as m, useContext as M } from "react";
2
- import { ak as c, ah as i, ac as f, U as h, W as x } from "./form-xpXT6sSe.js";
2
+ import { ak as c, ah as i, ac as f, U as h, W as x } from "./form-DPmF8iaT.js";
3
3
  const N = ({ className: r, children: e }) => {
4
4
  const { description: s, target: o } = c(), { descriptionId: a } = i(), { language: n } = f();
5
5
  return s ? /* @__PURE__ */ t.createElement("div", {
@@ -1,4 +1,4 @@
1
- import { ak as m, R as d, r as p, ah as D, au as B } from "./form-xpXT6sSe.js";
1
+ import { ak as m, R as d, r as p, ah as D, au as B } from "./form-DPmF8iaT.js";
2
2
  import l from "react";
3
3
  import { f as L } from "./find-child-C60k4CxG.js";
4
4
  import { sdk as R } from "@wix/image-kit";
@@ -1,13 +1,13 @@
1
1
  import t, { useState as Q, useRef as V, useMemo as oe, useEffect as se, useCallback as P, createContext as pe, useContext as fe } from "react";
2
2
  import { RicosViewer as Ee } from "@wix/ricos/viewer";
3
3
  import B from "classnames";
4
- import { ag as Fe, au as ie, ap as ge, i as he, as as xe, e as re, at as be, ah as ce, ak as j, am as Ce } from "./form-xpXT6sSe.js";
4
+ import { ag as Fe, au as ie, ap as ge, i as he, as as xe, e as re, at as be, ah as ce, ak as j, am as Ce } from "./form-DPmF8iaT.js";
5
5
  import { E as Le } from "./error-icon-hZxQ6DEy.js";
6
6
  import { s as I } from "./field-rac.module-DobpyqOd.js";
7
7
  import { C as ne, S as De, a3 as Ne, j as ae, r as le } from "./form-element-classes-BtKlobUX.js";
8
8
  import { f as h, a as z } from "./find-child-C60k4CxG.js";
9
- import { b as ve, a as ye, D as _e, E as Te } from "./field-error-headless-gUwzDWOe.js";
10
- import { L as Be } from "./field-label-headless-Co6yOqfY.js";
9
+ import { b as ve, a as ye, D as _e, E as Te } from "./field-error-headless-_ADCIvnx.js";
10
+ import { L as Be } from "./field-label-headless-DiDxuhCI.js";
11
11
  import { DropZone as Re, Text as Se, FileTrigger as Me, Button as de, ProgressBar as Ie } from "react-aria-components";
12
12
  const we = {
13
13
  Video: "video/*",
@@ -1,11 +1,11 @@
1
1
  import t, { useMemo as b } from "react";
2
2
  import { RicosViewer as A } from "@wix/ricos/viewer";
3
3
  import u from "classnames";
4
- import { ak as C, ac as I, ah as P } from "./form-xpXT6sSe.js";
4
+ import { ak as C, ac as I, ah as P } from "./form-DPmF8iaT.js";
5
5
  import { f as c, a as O } from "./find-child-C60k4CxG.js";
6
6
  import { f as S } from "./format-currency-BwShJ9vM.js";
7
- import { D as x, E as N } from "./field-error-headless-gUwzDWOe.js";
8
- import { L as R } from "./field-label-headless-Co6yOqfY.js";
7
+ import { D as x, E as N } from "./field-error-headless-_ADCIvnx.js";
8
+ import { L as R } from "./field-label-headless-DiDxuhCI.js";
9
9
  import { s as L } from "./field-rac.module-DobpyqOd.js";
10
10
  import { C as v, D as M, j as g } from "./form-element-classes-BtKlobUX.js";
11
11
  const e = ({ children: r }) => {