@wix/form-elements 1.102.0 → 1.104.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 (105) hide show
  1. package/dist/component/{appointment-rac-DW5YPIgy.js → appointment-rac-CCciYQ_h.js} +4 -4
  2. package/dist/component/{bookings-address-rac-7ODYuuSG.js → bookings-address-rac-bOPrbrFn.js} +1 -1
  3. package/dist/component/{bookings-email-rac-BCnhC0YX.js → bookings-email-rac-DSpy4yfX.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DvpfHse1.js → bookings-first-name-rac-Dw0U4kHG.js} +1 -1
  5. package/dist/component/{bookings-header-rac-Dohy9hCz.js → bookings-header-rac-Czrqn8yy.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CVDRbwd7.js → bookings-last-name-rac-CVxRqG5b.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DavjHZGh.js → bookings-login-bar-rac-s_2BlBcX.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-Cj6Dz0vX.js → bookings-phone-rac-B2SgZsIb.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DjmnegM6.js → bookings-rich-text-rac-b3K__6c9.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-DbJQI0lK.js → checkbox-field-rac-Gt2JioDC.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-BWCsolHw.js → checkbox-group-field-headless-cKefepGi.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-Cmc2pwQi.js → checkbox-group-field-rac-B14obB-6.js} +3 -3
  13. package/dist/component/{checkbox-group-rac-q3wI6hQH.js → checkbox-group-rac-B6cixM2X.js} +1 -1
  14. package/dist/component/{checkbox-rac-BsutELL1.js → checkbox-rac-COwblKlm.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BUCtejza.js → contacts-address-rac-BJrwGPo4.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-1E453ZgP.js → contacts-birthdate-rac-BaotTtEN.js} +1 -1
  17. package/dist/component/{contacts-company-rac-DrK20x29.js → contacts-company-rac-BjTc-e_S.js} +1 -1
  18. package/dist/component/{contacts-email-rac-CMiWMV_P.js → contacts-email-rac-DVFF485m.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-DPwXc8-1.js → contacts-first-name-rac-C4Fht3FS.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-CeuRsbGC.js → contacts-last-name-rac-BTbOJedX.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-Cwjc5too.js → contacts-phone-rac-GePv5BT7.js} +1 -1
  22. package/dist/component/{contacts-position-rac-C8w3NNCn.js → contacts-position-rac-BZ1ASqF_.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-CFejp0de.js → contacts-subscribe-rac-CmyBcsLP.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-xNks1IAv.js → contacts-tax-id-rac-A2tdbIvB.js} +1 -1
  25. package/dist/component/{date-availability-xTIFwK6x.js → date-availability-b1h4CrSQ.js} +1 -1
  26. package/dist/component/{date-input-field-rac-DcoJJUZc.js → date-input-field-rac-moOjGzUv.js} +6 -6
  27. package/dist/component/{date-input-rac-CnZAuOkP.js → date-input-rac-DTqZCOqB.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-D__137lA.js → date-picker-field-rac-flB4Hw18.js} +5 -5
  29. package/dist/component/{date-picker-rac-DQ42fhVP.js → date-picker-rac-B2fqOP6H.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-BHBAMq3g.js → date-time-input-field-rac-BtLGRGf5.js} +6 -6
  31. package/dist/component/{date-time-input-rac-DbIAF6nq.js → date-time-input-rac-CRfUmOim.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-Ds2w4V3q.js → dext-checkbox-group-rac-Ds4t475J.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-DSidRTEl.js → dext-checkbox-rac-BC6EGH5R.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-Derm4Q3d.js → dext-date-picker-rac-DyydPJyC.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-BcyPuijC.js → dext-date-time-input-rac-DhssYv6t.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-kDuk--KF.js → dext-dropdown-rac-Bn0C1Ry8.js} +1 -1
  37. package/dist/component/{dext-email-rac-xys-YMg2.js → dext-email-rac-DKhk_v_w.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-BZpAijhk.js → dext-number-input-rac-u92WD8VD.js} +1 -1
  39. package/dist/component/{dext-phone-rac-CMPboOsF.js → dext-phone-rac-DTzdQAe9.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-5h9c9bW2.js → dext-radio-group-rac-CoOYhInI.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-BobDzEXB.js → dext-rating-input-rac-DPdyJsCZ.js} +1 -1
  42. package/dist/component/{dext-tags-rac-DoJWzkrn.js → dext-tags-rac-Bh3pQ-Ck.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-BIRCFM2F.js → dext-text-area-rac-Cefsz8ct.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-Bzx5hcyp.js → dext-text-input-rac-Bj_pAChP.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-C9hlh97b.js → dext-url-input-rac-Bk_kwZzM.js} +1 -1
  46. package/dist/component/{donation-rac-CpEduCy1.js → donation-rac-wRWkCjYg.js} +95 -95
  47. package/dist/component/{dropdown-field-headless-Dcbu807N.js → dropdown-field-headless-CedOXKAH.js} +4 -4
  48. package/dist/component/{dropdown-field-rac-mJwCTpQA.js → dropdown-field-rac-CENh9Khw.js} +2 -2
  49. package/dist/component/{dropdown-rac-N5I5XU3B.js → dropdown-rac-CeCNULzS.js} +1 -1
  50. package/dist/component/{ecom-address-rac-_0TO5pFZ.js → ecom-address-rac-BLJ0UHrV.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-DNdz6UCu.js → ecom-subscription-checkbox-rac-xJDzCasS.js} +2 -2
  52. package/dist/component/{email-input-field-rac-VDJC1JLs.js → email-input-field-rac-CeTVUWeX.js} +3 -3
  53. package/dist/component/{events-repeater-rac-CzBVzG00.js → events-repeater-rac-CT9LAF22.js} +4 -4
  54. package/dist/component/{events-rsvp-rac--ADJlIQz.js → events-rsvp-rac-Bu8tqcVi.js} +2 -2
  55. package/dist/component/{field-error-headless-_ADCIvnx.js → field-error-headless-gLZVlnQV.js} +1 -1
  56. package/dist/component/{field-label-headless-DiDxuhCI.js → field-label-headless-yc46NPmu.js} +1 -1
  57. package/dist/component/{file-upload-rac-CiYo9UQA.js → file-upload-rac-LkVTFtZb.js} +3 -3
  58. package/dist/component/{fixed-payment-rac-DgNVdELB.js → fixed-payment-rac-DEbV0w-8.js} +3 -3
  59. package/dist/component/{form-DPmF8iaT.js → form-DV231fmJ.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-BuJTUp5S.js → header-field-rac-BzB5dm6C.js} +2 -2
  63. package/dist/component/{header-rac-BphcUkmo.js → header-rac-BzS5HfUt.js} +1 -1
  64. package/dist/component/{image-choice-rac-CZSMzLY2.js → image-choice-rac-8YqUqetS.js} +21 -21
  65. package/dist/component/{index-BEIxTlpO.js → index-BzRG28bH.js} +2 -2
  66. package/dist/component/{index-B0DLHSXg.js → index-CMtf-So7.js} +4 -4
  67. package/dist/component/{isObjectLike-DuXP52EV.js → isObjectLike--gPCPyGa.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-CNJyTqJt.js → multiline-address-field-rac-CJWdu5LV.js} +7 -7
  69. package/dist/component/{multiline-address-rac-DG7xjt6A.js → multiline-address-rac-Cw5VweB0.js} +1 -1
  70. package/dist/component/{number-input-field-rac-Bj2AK7Oj.js → number-input-field-rac-D8NRpCCM.js} +4 -4
  71. package/dist/component/{number-input-rac-JPgr87Xh.js → number-input-rac-CM_CQHE_.js} +1 -1
  72. package/dist/component/{password-rac-J0ySzA6j.js → password-rac-I6vynKG4.js} +4 -4
  73. package/dist/component/{payment-input-rac-B1VmJQeD.js → payment-input-rac-B4rXCs7V.js} +4 -4
  74. package/dist/component/{phone-input-field-rac-SWP8Xkh-.js → phone-input-field-rac-B-k2e0Np.js} +6 -6
  75. package/dist/component/{phone-rac-BU33sXKk.js → phone-rac-D443psAx.js} +1 -1
  76. package/dist/component/{product-list-rac-dk3gFLyb.js → product-list-rac-B6qUWxkz.js} +4 -4
  77. package/dist/component/{quiz-radio-group-rac-BFlVZj9U.js → quiz-radio-group-rac-DdPJQmV5.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-DgiY7sw3.js → radio-button-module-classes--on7xGzb.js} +3 -3
  79. package/dist/component/{radio-group-field-rac-qD-GQu2A.js → radio-group-field-rac-CjiGr1rO.js} +3 -3
  80. package/dist/component/{radio-group-rac-CIY9Gj99.js → radio-group-rac-CjbSQydw.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-BVWuvhkf.js → rating-input-field-rac-yVgqxBKi.js} +4 -4
  82. package/dist/component/{rating-input-rac-C3HFmqHX.js → rating-input-rac-D6BKC4oS.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-QBgwAjEA.js → rich-content-rac.module-Ca4LYv7k.js} +1 -1
  84. package/dist/component/{rich-text-field-rac-BohVUJm1.js → rich-text-field-rac-DIeBS-ux.js} +2 -2
  85. package/dist/component/{rich-text-rac-BST0y6Gq.js → rich-text-rac-BgjP0ngh.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-DZSY9T2v.js → service-dropdown-rac-DjOMT7dx.js} +4 -4
  87. package/dist/component/{services-multi-choice-rac-hD8TI7n7.js → services-multi-choice-rac-C0Rp9Sng.js} +5 -5
  88. package/dist/component/{signature-rac-D9G6D7Pa.js → signature-rac-CFT-Fni_.js} +3 -3
  89. package/dist/component/{submit-button-rac-D4vOTaQ9.js → submit-button-rac-BOluGZI0.js} +1 -1
  90. package/dist/component/{tags-field-rac-CoNoLUAV.js → tags-field-rac-CP0RS4SG.js} +63 -66
  91. package/dist/component/{tags-rac-BGT8KWvN.js → tags-rac-Dtp3VCKk.js} +1 -1
  92. package/dist/component/{text-area-field-rac-x-LWaPSL.js → text-area-field-rac-DUKg8kgN.js} +4 -4
  93. package/dist/component/{text-area-rac-B0KN3TR1.js → text-area-rac-Clh7zMTL.js} +1 -1
  94. package/dist/component/{text-input-field-rac-DH5j0Tvv.js → text-input-field-rac-DY60Q6da.js} +2 -2
  95. package/dist/component/{text-input-headless-Slo-xa7H.js → text-input-headless-BBv0nukI.js} +3 -3
  96. package/dist/component/{text-input-rac-_VrGU08X.js → text-input-rac-FVD6iJ1i.js} +1 -1
  97. package/dist/component/{time-input-rac-DS5uFTDp.js → time-input-rac-DsctZB28.js} +4 -4
  98. package/dist/component/{url-input-field-rac-yCewMKD-.js → url-input-field-rac-Du4HlhH3.js} +4 -4
  99. package/dist/component/{url-input-rac-D7cuZG08.js → url-input-rac-3QPdK0xz.js} +1 -1
  100. package/dist/component/{use-dropdown-option-class-name-DbjgH9K1.js → use-dropdown-option-class-name-Bze6ghRl.js} +1 -1
  101. package/dist/component/{use-element-state-class-name-C2_dMWlH.js → use-element-state-class-name-4CDAF1S-.js} +1 -1
  102. package/dist/component/{use-is-forced-open-dropdown-VcOCKx-3.js → use-is-forced-open-dropdown--w4f5dWP.js} +1 -1
  103. package/dist/component/{use-service-options-base-Cu9nE-aZ.js → use-service-options-base-9vUuIThY.js} +1 -1
  104. package/dist/component/{use-text-input-class-name-DMokiXwB.js → use-text-input-class-name-Ch91llI_.js} +2 -2
  105. package/package.json +2 -2
@@ -1,22 +1,22 @@
1
- import n, { useMemo as x, useCallback as D, useRef as re } from "react";
2
- import { RicosViewer as ae } from "@wix/ricos/viewer";
1
+ import n, { useMemo as M, useCallback as D, useRef as re } from "react";
2
+ import { RicosViewer as se } from "@wix/ricos/viewer";
3
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";
4
+ import { RadioGroup as ae, RadioField as Y, RadioButton as Q, TextField as le, Group as ie, Input as ce } from "react-aria-components";
5
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";
6
+ import { P as W, ak as L, ah as B, au as me, ac as j, am as pe } from "./form-DV231fmJ.js";
7
+ import { f as E, a as b } from "./find-child-C60k4CxG.js";
8
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";
9
+ import { D as de, E as fe } from "./field-error-headless-gLZVlnQV.js";
10
+ import { L as Ce } from "./field-label-headless-yc46NPmu.js";
11
+ import { a as Ie, b as Ee } from "./numeric-input-utils-CuBMi4-a.js";
12
12
  import { g as he } from "./payment-field-utils-DobiK5Xh.js";
13
13
  import { u as Oe } from "./use-synced-display-value-DcAxdn3M.js";
14
14
  import { E as _e } from "./error-icon-hZxQ6DEy.js";
15
15
  import { s as S } from "./field-rac.module-DobpyqOd.js";
16
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
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";
18
+ import { u as Se } from "./use-element-state-class-name-4CDAF1S-.js";
19
+ import { u as ve } from "./use-text-input-class-name-Ch91llI_.js";
20
20
  function Re(e, t) {
21
21
  return e.reduce((o, r) => (o[r[t]] = r, o), {});
22
22
  }
@@ -24,7 +24,7 @@ function Le(e) {
24
24
  return Re(e, "id");
25
25
  }
26
26
  const Ae = 0.01;
27
- function je(e) {
27
+ function Te(e) {
28
28
  var t;
29
29
  return ((t = e == null ? void 0 : e.fixedPriceOptions) == null ? void 0 : t.price) || "0";
30
30
  }
@@ -36,53 +36,53 @@ function J(e, t) {
36
36
  quantity: 1
37
37
  };
38
38
  }
39
- function Te(e) {
39
+ function Pe(e) {
40
40
  return e.find((t) => t.priceType === W.DYNAMIC_PRICE);
41
41
  }
42
- function Pe(e, t) {
42
+ function xe(e, t) {
43
43
  return (e == null ? void 0 : e.productId) === (t == null ? void 0 : t.id) ? String((e == null ? void 0 : e.price) ?? "") : "";
44
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))
45
+ function Me(e, t, o) {
46
+ const r = (t == null ? void 0 : t.productId) === e ? void 0 : e, a = r ? o[r] : void 0;
47
+ return a ? [
48
+ J(a, Te(a))
49
49
  ] : [];
50
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) || [];
51
+ const s = ({ children: e }) => {
52
+ const { id: t, value: o, onChange: r, disabled: a, required: u, onBlur: m, onFocus: f, validation: i, addOther: p, addOtherPlaceholder: c, FieldLayout: h, hasError: y } = L(), { labelId: O } = B(), { t: C } = me(), { currency: A, regionalFormat: g } = j(), d = o == null ? void 0 : o[0], N = M(() => {
53
+ var I, x;
54
+ return ((x = (I = i == null ? void 0 : i.predefined) == null ? void 0 : I.paymentOptions) == null ? void 0 : x.products) || [];
55
55
  }, [
56
56
  i
57
- ]), j = x(() => Le(N), [
57
+ ]), T = M(() => Le(N), [
58
58
  N
59
- ]), l = x(() => p ? Te(N) : void 0, [
59
+ ]), l = M(() => p ? Pe(N) : void 0, [
60
60
  N,
61
61
  p
62
- ]), K = Pe(d, l), [k, T] = Oe({
62
+ ]), K = xe(d, l), [k, P] = Oe({
63
63
  sourceValue: K,
64
- format: (E) => fe(String(E ?? ""), g),
64
+ format: (I) => Ee(String(I ?? ""), g),
65
65
  regionalFormat: g
66
- }), q = D((E) => {
67
- r(xe(E, d, j)), T("");
66
+ }), q = D((I) => {
67
+ r(Me(I, d, T)), P("");
68
68
  }, [
69
69
  r,
70
- j,
70
+ T,
71
71
  d,
72
- T
73
- ]), U = D((E) => {
74
- l && r(typeof E == "number" ? [
75
- J(l, String(E))
72
+ P
73
+ ]), U = D((I) => {
74
+ l && r(typeof I == "number" ? [
75
+ J(l, String(I))
76
76
  ] : []);
77
77
  }, [
78
78
  r,
79
79
  l
80
- ]), $ = x(() => ue(U, 500), [
80
+ ]), $ = M(() => ue(U, 500), [
81
81
  U
82
- ]), X = D((E) => {
82
+ ]), X = D((I) => {
83
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);
84
+ const { validInput: x, validNumber: oe } = Ie(I.target.value, Ae, k, g);
85
+ P(x), $(oe);
86
86
  }, [
87
87
  g,
88
88
  r,
@@ -90,47 +90,47 @@ const a = ({ children: e }) => {
90
90
  l,
91
91
  k,
92
92
  $,
93
- T
93
+ P
94
94
  ]), w = (d == null ? void 0 : d.productId) || null, Z = D(() => {
95
95
  l != null && l.id && w !== l.id && q(l.id);
96
96
  }, [
97
97
  l == null ? void 0 : l.id,
98
98
  w,
99
99
  q
100
- ]), ee = f(e, a.Label), V = f(e, a.Control), te = f(e, a.Description), ne = f(e, a.Error);
100
+ ]), ee = E(e, s.Label), V = E(e, s.Control), te = E(e, s.Description), ne = E(e, s.Error);
101
101
  return /* @__PURE__ */ n.createElement(h, {
102
102
  fieldId: t,
103
103
  renderLabel: () => ee,
104
- renderInput: () => /* @__PURE__ */ n.createElement(se, {
104
+ renderInput: () => /* @__PURE__ */ n.createElement(ae, {
105
105
  "aria-labelledby": O,
106
106
  value: w,
107
107
  onChange: q,
108
- isDisabled: s,
108
+ isDisabled: a,
109
109
  isInvalid: y,
110
110
  isRequired: u,
111
111
  onBlur: m,
112
- onFocus: C
112
+ onFocus: f
113
113
  }, V ? b(V, {
114
- productsById: j,
114
+ productsById: T,
115
115
  addOther: p,
116
116
  customAmount: k,
117
117
  onCustomAmountInputChange: X,
118
118
  currency: A,
119
- t: I,
120
- placeholder: c === void 0 ? I("donation.other-option.placeholder") : c,
119
+ t: C,
120
+ placeholder: c === void 0 ? C("donation.other-option.placeholder") : c,
121
121
  customAmountProductId: l == null ? void 0 : l.id,
122
122
  onFocusCustomInput: Z
123
123
  }) : null),
124
124
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, ne, te)
125
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);
126
+ }, Be = ({ children: e, className: t, ...o }) => {
127
+ const { productsById: r, addOther: a, customAmount: u, onCustomAmountInputChange: m, currency: f, t: i, placeholder: p, customAmountProductId: c, onFocusCustomInput: h } = o, { hasError: y } = L(), O = E(e, s.Options), C = E(e, s.OtherInput);
128
128
  return /* @__PURE__ */ n.createElement("div", {
129
129
  className: t,
130
130
  "data-invalid": y
131
131
  }, O ? b(O, {
132
132
  productsById: r
133
- }) : null, s && c && /* @__PURE__ */ n.createElement(Y, {
133
+ }) : null, a && c && /* @__PURE__ */ n.createElement(Y, {
134
134
  value: c,
135
135
  style: {
136
136
  position: "absolute",
@@ -145,41 +145,41 @@ const a = ({ children: e }) => {
145
145
  }
146
146
  }, /* @__PURE__ */ n.createElement(Q, {
147
147
  "aria-label": i("donation.other-option.label", "Custom amount")
148
- }, i("donation.other-option.label", "Custom amount"))), I && s ? b(I, {
148
+ }, i("donation.other-option.label", "Custom amount"))), C && a ? b(C, {
149
149
  customAmount: u,
150
150
  onCustomAmountInputChange: m,
151
- currency: C,
151
+ currency: f,
152
152
  t: i,
153
153
  placeholder: p,
154
154
  customAmountProductId: c,
155
155
  onFocusCustomInput: h
156
156
  }) : null);
157
157
  }, H = ({ children: e, className: t, ...o }) => {
158
- const { productsById: r } = o, { options: s, numberOfColumns: u } = L(), m = f(e, H.Option);
158
+ const { productsById: r } = o, { options: a, numberOfColumns: u } = L(), m = E(e, H.Option);
159
159
  return /* @__PURE__ */ n.createElement("div", {
160
160
  className: t,
161
161
  "data-columns": u
162
- }, s.map((C) => {
162
+ }, a.map((f) => {
163
163
  var c;
164
- const i = r[C.value], p = (c = i == null ? void 0 : i.fixedPriceOptions) == null ? void 0 : c.price;
164
+ const i = r[f.value], p = (c = i == null ? void 0 : i.fixedPriceOptions) == null ? void 0 : c.price;
165
165
  return b(m, {
166
- key: C.value,
167
- value: C.value,
166
+ key: f.value,
167
+ value: f.value,
168
168
  price: p || "0"
169
169
  });
170
170
  }));
171
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,
172
+ const { value: r, price: a } = o, { id: u } = L(), { currency: m, regionalFormat: f } = j(), i = E(e, v.Value), p = E(e, v.Currency), { isCurrencyPrefixed: c } = z({
173
+ amount: a,
174
174
  currency: m == null ? void 0 : m.code,
175
- locale: C
175
+ locale: f
176
176
  }), h = re(null);
177
177
  pe(() => {
178
- var O, I;
179
- (I = (O = h.current) == null ? void 0 : O.querySelector("input")) == null || I.focus();
178
+ var O, C;
179
+ (C = (O = h.current) == null ? void 0 : O.querySelector("input")) == null || C.focus();
180
180
  }, u);
181
181
  const y = i ? b(i, {
182
- price: s
182
+ price: a
183
183
  }) : null;
184
184
  return /* @__PURE__ */ n.createElement(Y, {
185
185
  value: r
@@ -187,32 +187,32 @@ const a = ({ children: e }) => {
187
187
  className: t,
188
188
  ref: h
189
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({
190
+ }, je = ({ className: e, ...t }) => {
191
+ const { price: o } = t, { currency: r, regionalFormat: a } = j(), { value: u } = z({
192
192
  amount: o,
193
193
  currency: r == null ? void 0 : r.code,
194
- locale: s
194
+ locale: a
195
195
  });
196
196
  return /* @__PURE__ */ n.createElement("span", {
197
197
  className: e
198
198
  }, u);
199
199
  }, ke = ({ className: e }) => {
200
- const { currency: t } = B();
200
+ const { currency: t } = j();
201
201
  return /* @__PURE__ */ n.createElement("span", {
202
202
  className: e
203
203
  }, (t == null ? void 0 : t.sign) || (t == null ? void 0 : t.code) || "");
204
204
  };
205
- v.Value = Be;
205
+ v.Value = je;
206
206
  v.Currency = ke;
207
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({
208
+ const { customAmount: r, onCustomAmountInputChange: a, currency: u, t: m, placeholder: f, customAmountProductId: i, onFocusCustomInput: p } = o, { disabled: c, hasError: h } = L(), { labelId: y, prefixId: O } = B(), C = E(e, R.Currency), A = E(e, R.Value), g = D((N) => {
209
+ a({
210
210
  target: {
211
211
  value: N
212
212
  }
213
213
  });
214
214
  }, [
215
- s
215
+ a
216
216
  ]), d = D(() => {
217
217
  p();
218
218
  }, [
@@ -229,27 +229,27 @@ const R = ({ children: e, className: t, ...o }) => {
229
229
  className: t,
230
230
  isDisabled: c,
231
231
  isInvalid: h
232
- }, r && u && I ? b(I, {
232
+ }, r && u && C ? b(C, {
233
233
  currency: u,
234
234
  t: m
235
235
  }) : null, A ? b(A, {
236
- placeholder: C,
236
+ placeholder: f,
237
237
  customAmountProductId: i
238
238
  }) : null));
239
239
  }, qe = ({ className: e, ...t }) => {
240
- const { currency: o, t: r } = t, { prefixId: s } = M();
240
+ const { currency: o, t: r } = t, { prefixId: a } = B();
241
241
  return /* @__PURE__ */ n.createElement("span", {
242
- id: s,
242
+ id: a,
243
243
  "aria-hidden": !1,
244
244
  "aria-label": he(r, o),
245
245
  className: e
246
246
  }, (o == null ? void 0 : o.sign) || (o == null ? void 0 : o.code) || "");
247
247
  }, we = ({ className: e, ...t }) => {
248
- const { placeholder: o, customAmountProductId: r } = t, { ariaDescribedBy: s, labelId: u, prefixId: m } = M();
248
+ const { placeholder: o, customAmountProductId: r } = t, { ariaDescribedBy: a, labelId: u, prefixId: m } = B();
249
249
  return /* @__PURE__ */ n.createElement(ce, {
250
250
  id: r,
251
251
  "aria-labelledby": `${u} ${m}`,
252
- "aria-describedby": s,
252
+ "aria-describedby": a,
253
253
  placeholder: o,
254
254
  inputMode: "decimal",
255
255
  autoComplete: "off",
@@ -259,13 +259,13 @@ const R = ({ children: e, className: t, ...o }) => {
259
259
  R.Currency = qe;
260
260
  R.Value = we;
261
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", _ = {
262
+ s.Label = Ce;
263
+ s.Control = Be;
264
+ s.Options = H;
265
+ s.OtherInput = R;
266
+ s.Description = de;
267
+ s.Error = fe;
268
+ const He = "_control_1fjsf_1", Ue = "_options_1fjsf_7", $e = "_option_1fjsf_7", Ve = "_optionHover_1fjsf_44", Ge = "_optionSelected_1fjsf_44", Ye = "_optionCurrency_1fjsf_94", Qe = "_otherInput_1fjsf_98", We = "_otherInputCurrency_1fjsf_117", _ = {
269
269
  control: He,
270
270
  options: Ue,
271
271
  option: $e,
@@ -274,7 +274,7 @@ const He = "_control_1jl2j_1", Ue = "_options_1jl2j_7", $e = "_option_1jl2j_7",
274
274
  optionCurrency: Ye,
275
275
  otherInput: Qe,
276
276
  otherInputCurrency: We
277
- }, ze = ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(ae, {
277
+ }, ze = ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(se, {
278
278
  content: e,
279
279
  locale: t
280
280
  }), Je = {
@@ -286,33 +286,33 @@ const He = "_control_1jl2j_1", Ue = "_options_1jl2j_7", $e = "_option_1jl2j_7",
286
286
  globalClasses: De,
287
287
  moduleClasses: Je
288
288
  });
289
- return /* @__PURE__ */ n.createElement(a, null, /* @__PURE__ */ n.createElement(a.Label, {
289
+ return /* @__PURE__ */ n.createElement(s, null, /* @__PURE__ */ n.createElement(s.Label, {
290
290
  className: F(ye, S.label)
291
- }, /* @__PURE__ */ n.createElement(a.Label.Required, {
291
+ }, /* @__PURE__ */ n.createElement(s.Label.Required, {
292
292
  className: F(be, S.requiredMark)
293
- })), /* @__PURE__ */ n.createElement(a.Control, {
293
+ })), /* @__PURE__ */ n.createElement(s.Control, {
294
294
  className: F(_.control, G.group)
295
- }, /* @__PURE__ */ n.createElement(a.Options, {
295
+ }, /* @__PURE__ */ n.createElement(s.Options, {
296
296
  className: F(ge, G.options, _.options)
297
- }, /* @__PURE__ */ n.createElement(a.Options.Option, {
297
+ }, /* @__PURE__ */ n.createElement(s.Options.Option, {
298
298
  className: ({ isSelected: o, isHovered: r }) => t({
299
299
  isSelected: o,
300
300
  isHovered: r
301
301
  })
302
- }, /* @__PURE__ */ n.createElement(a.Options.Option.Value, null), /* @__PURE__ */ n.createElement(a.Options.Option.Currency, {
302
+ }, /* @__PURE__ */ n.createElement(s.Options.Option.Value, null), /* @__PURE__ */ n.createElement(s.Options.Option.Currency, {
303
303
  className: _.optionCurrency
304
- }))), /* @__PURE__ */ n.createElement(a.OtherInput, {
304
+ }))), /* @__PURE__ */ n.createElement(s.OtherInput, {
305
305
  className: e
306
- }, /* @__PURE__ */ n.createElement(a.OtherInput.Currency, {
306
+ }, /* @__PURE__ */ n.createElement(s.OtherInput.Currency, {
307
307
  className: _.otherInputCurrency
308
- }), /* @__PURE__ */ n.createElement(a.OtherInput.Value, {
308
+ }), /* @__PURE__ */ n.createElement(s.OtherInput.Value, {
309
309
  className: S.innerInput
310
- }))), /* @__PURE__ */ n.createElement(a.Error, {
310
+ }))), /* @__PURE__ */ n.createElement(s.Error, {
311
311
  className: F(Ne, S.error)
312
- }, /* @__PURE__ */ n.createElement(_e, null), /* @__PURE__ */ n.createElement(a.Error.Text, null)), /* @__PURE__ */ n.createElement(a.Description, {
312
+ }, /* @__PURE__ */ n.createElement(_e, null), /* @__PURE__ */ n.createElement(s.Error.Text, null)), /* @__PURE__ */ n.createElement(s.Description, {
313
313
  className: F(Fe, S.description)
314
314
  }, ze));
315
- }, ft = () => /* @__PURE__ */ n.createElement(Ke, null);
315
+ }, Et = () => /* @__PURE__ */ n.createElement(Ke, null);
316
316
  export {
317
- ft as DonationRAC
317
+ Et as DonationRAC
318
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-DPmF8iaT.js";
4
+ import { ak as f, ah as O, am as G } from "./form-DV231fmJ.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-_ADCIvnx.js";
7
- import { L as K } from "./field-label-headless-DiDxuhCI.js";
6
+ import { D as H, E as J } from "./field-error-headless-gLZVlnQV.js";
7
+ import { L as K } from "./field-label-headless-yc46NPmu.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-VcOCKx-3.js";
9
+ import { u as X } from "./use-is-forced-open-dropdown--w4f5dWP.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-Dcbu807N.js";
4
+ import { D as r } from "./dropdown-field-headless-CedOXKAH.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-DbjgH9K1.js";
10
+ import { u as O } from "./use-dropdown-option-class-name-Bze6ghRl.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-mJwCTpQA.js";
2
+ import { D as r } from "./dropdown-field-rac-CENh9Khw.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-CNJyTqJt.js";
2
+ import { M as r } from "./multiline-address-field-rac-CJWdu5LV.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-DPmF8iaT.js";
3
- import { C } from "./checkbox-field-rac-DbJQI0lK.js";
2
+ import { ak as n, au as c, h as i } from "./form-DV231fmJ.js";
3
+ import { C } from "./checkbox-field-rac-Gt2JioDC.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-DPmF8iaT.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-DV231fmJ.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-Slo-xa7H.js";
13
+ import { T as U } from "./text-input-headless-BBv0nukI.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-DMokiXwB.js";
17
+ import { u as De } from "./use-text-input-class-name-Ch91llI_.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-DPmF8iaT.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-DV231fmJ.js";
5
5
  import { f as C, a as y } from "./find-child-C60k4CxG.js";
6
- import { L as te } from "./field-label-headless-DiDxuhCI.js";
6
+ import { L as te } from "./field-label-headless-yc46NPmu.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-C2_dMWlH.js";
14
- import { u as me } from "./use-text-input-class-name-DMokiXwB.js";
13
+ import { u as ue } from "./use-element-state-class-name-4CDAF1S-.js";
14
+ import { u as me } from "./use-text-input-class-name-Ch91llI_.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,11 +1,11 @@
1
1
  import t from "react";
2
2
  import { RicosViewer as m } from "@wix/ricos/viewer";
3
3
  import s from "classnames";
4
- import { a, s as o, R as c } from "./radio-button-module-classes-DgiY7sw3.js";
4
+ import { a, s as o, R as c } from "./radio-button-module-classes--on7xGzb.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 as N } from "./use-element-state-class-name-C2_dMWlH.js";
8
+ import { u as N } from "./use-element-state-class-name-4CDAF1S-.js";
9
9
  const e = ({ children: r, className: n }) => /* @__PURE__ */ t.createElement(a, {
10
10
  className: n
11
11
  }, r);
@@ -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-DPmF8iaT.js";
2
+ import { ak as c, ah as i, ac as f, U as h, W as x } from "./form-DV231fmJ.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-DPmF8iaT.js";
1
+ import { ak as m, R as d, r as p, ah as D, au as B } from "./form-DV231fmJ.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-DPmF8iaT.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-DV231fmJ.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-_ADCIvnx.js";
10
- import { L as Be } from "./field-label-headless-DiDxuhCI.js";
9
+ import { b as ve, a as ye, D as _e, E as Te } from "./field-error-headless-gLZVlnQV.js";
10
+ import { L as Be } from "./field-label-headless-yc46NPmu.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-DPmF8iaT.js";
4
+ import { ak as C, ac as I, ah as P } from "./form-DV231fmJ.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-_ADCIvnx.js";
8
- import { L as R } from "./field-label-headless-DiDxuhCI.js";
7
+ import { D as x, E as N } from "./field-error-headless-gLZVlnQV.js";
8
+ import { L as R } from "./field-label-headless-yc46NPmu.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 }) => {