@wix/form-elements 1.62.0 → 1.64.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 (113) hide show
  1. package/dist/component/{appointment-rac-Dqib2upI.js → appointment-rac-DojiZqx9.js} +35 -35
  2. package/dist/component/{bookings-address-rac-E-qq4-KG.js → bookings-address-rac-Bm_lQchD.js} +1 -1
  3. package/dist/component/{bookings-email-rac-DA_Hwn2j.js → bookings-email-rac-vwuy0kW8.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-o1n3lnRo.js → bookings-first-name-rac-BbWuLoeg.js} +1 -1
  5. package/dist/component/{bookings-header-rac-DQ0YvhxZ.js → bookings-header-rac-DVknNH29.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-BqL_84Sg.js → bookings-last-name-rac-BnT3Cq0b.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CAN7roRc.js → bookings-login-bar-rac-DKi-VAXc.js} +16 -16
  8. package/dist/component/{bookings-phone-rac-CCJVdvkd.js → bookings-phone-rac-Bfy8rheB.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CCklquEC.js → bookings-rich-text-rac-DGiBDcXw.js} +1 -1
  10. package/dist/component/checkbox-field-rac-CYADRY54.js +1312 -0
  11. package/dist/component/checkbox-group-field-headless-BDAFpX5F.js +210 -0
  12. package/dist/component/checkbox-group-field-rac-2YUsOmDI.js +40 -0
  13. package/dist/component/{checkbox-group-rac-DWPClKpf.js → checkbox-group-rac-CQf1C9H5.js} +1 -1
  14. package/dist/component/{checkbox-rac-CvbOws2U.js → checkbox-rac-Bjv8jZjs.js} +1 -1
  15. package/dist/component/{contacts-address-rac-CWFHC5LT.js → contacts-address-rac-BBTiEec9.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DPmJPp8M.js → contacts-birthdate-rac-XReeFHVW.js} +1 -1
  17. package/dist/component/{contacts-company-rac-UWP9uDqI.js → contacts-company-rac-B-fUQszu.js} +1 -1
  18. package/dist/component/{contacts-email-rac-BCkkWYhr.js → contacts-email-rac-DBtcCcsV.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-KNRf92yT.js → contacts-first-name-rac-mkwU3706.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-C_EotEpo.js → contacts-last-name-rac-DY5N-AZx.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-DJGEWLsl.js → contacts-phone-rac-Ce1rMz_z.js} +1 -1
  22. package/dist/component/{contacts-position-rac-s1pZ662O.js → contacts-position-rac-B65H8PDu.js} +1 -1
  23. package/dist/component/contacts-subscribe-rac-BxO8rIyL.js +13 -0
  24. package/dist/component/{contacts-tax-id-rac-3MUvKEqW.js → contacts-tax-id-rac-Jtt0ySK2.js} +1 -1
  25. package/dist/component/{date-availability-CRsSX5_d.js → date-availability-B8UwvTJa.js} +1 -1
  26. package/dist/component/{date-input-field-rac-DPo7waqI.js → date-input-field-rac-RL2a0xoD.js} +23 -23
  27. package/dist/component/{date-input-rac-DsY8ehb1.js → date-input-rac-ak3G7V07.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-BtzlxVDB.js → date-picker-field-rac-SL_Roltf.js} +31 -31
  29. package/dist/component/{date-picker-rac-C-Aw6W87.js → date-picker-rac-ByrM0YIX.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-zre1vJ2m.js → date-time-input-field-rac-DOE7xcKi.js} +87 -87
  31. package/dist/component/{date-time-input-rac-CUvTUzbT.js → date-time-input-rac-BA-GyrAc.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-D4mhJU8E.js → dext-checkbox-group-rac-EwUnBO80.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-BeYmKpAZ.js → dext-checkbox-rac-CIRKi4B5.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-Mr0M3sNQ.js → dext-date-picker-rac-BYO_Q1zM.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-dgxfrHUw.js → dext-date-time-input-rac-BOahPeaH.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-CdZOoA5M.js → dext-dropdown-rac-sTD_r-0H.js} +1 -1
  37. package/dist/component/{dext-email-rac-TBiHlKjv.js → dext-email-rac-e-2_h3he.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-S78swyZ9.js → dext-number-input-rac-D6LACzWl.js} +1 -1
  39. package/dist/component/{dext-phone-rac-BhIaSHez.js → dext-phone-rac-kUycy5Od.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-B4xG4N8A.js → dext-radio-group-rac-DPD2UkrV.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-Bp2Pi5cP.js → dext-rating-input-rac-DUsnrl9W.js} +1 -1
  42. package/dist/component/{dext-tags-rac-Bnjgmyk-.js → dext-tags-rac-D6z69HuO.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-f1nJTM_n.js → dext-text-area-rac-C-DVtFJ1.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-B9m6oI-e.js → dext-text-input-rac-CIa2MdC6.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-CfEUdRdY.js → dext-url-input-rac-8rVVW5us.js} +1 -1
  46. package/dist/component/{donation-rac-BqKbQD_H.js → donation-rac-BjmSBabc.js} +62 -62
  47. package/dist/component/{dropdown-field-headless-CzoD076g.js → dropdown-field-headless-DReo519l.js} +5 -5
  48. package/dist/component/{dropdown-field-rac-5kD98Ubc.js → dropdown-field-rac-DzrjA2O6.js} +7 -7
  49. package/dist/component/{dropdown-rac-C9NpsRYi.js → dropdown-rac-CS7oLTp_.js} +1 -1
  50. package/dist/component/{ecom-address-rac-DdvJEnAO.js → ecom-address-rac-EIb88J_6.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-D7Lf1ETL.js → ecom-subscription-checkbox-rac-CE0Ks6qS.js} +5 -5
  52. package/dist/component/{email-input-field-rac-DUordV5X.js → email-input-field-rac-BScZxYHw.js} +47 -47
  53. package/dist/component/{events-repeater-rac-B1yDrnvJ.js → events-repeater-rac-Y0rH2Jli.js} +66 -66
  54. package/dist/component/{events-rsvp-rac-B65NtAMH.js → events-rsvp-rac-BiAYVv_b.js} +12 -12
  55. package/dist/component/{field-error-headless-DP4WSQU3.js → field-error-headless-DrnFrGun.js} +4 -4
  56. package/dist/component/{field-label-headless-BKmi7Fjg.js → field-label-headless-BIYf1BIh.js} +7 -7
  57. package/dist/component/field-rac.module-CWkwwhq4.js +21 -0
  58. package/dist/component/{file-upload-rac-DAg_G0_l.js → file-upload-rac-br--tZLp.js} +83 -83
  59. package/dist/component/{fixed-payment-rac-yO1w1gE2.js → fixed-payment-rac-XEtrsaMy.js} +15 -15
  60. package/dist/component/{form-D6A2hUbV.js → form-9yjqDnxY.js} +2719 -2709
  61. package/dist/component/form-element-classes-KRzHUNLu.js +57 -0
  62. package/dist/component/form.css +1 -1
  63. package/dist/component/form.js +1 -1
  64. package/dist/component/{header-field-rac-D3Bi6tTS.js → header-field-rac-CLELgzqY.js} +5 -5
  65. package/dist/component/{header-rac-Blv89pdS.js → header-rac-D8KGkVVp.js} +1 -1
  66. package/dist/component/{image-choice-rac-BLUZRNm0.js → image-choice-rac-Cl09CLP4.js} +30 -30
  67. package/dist/component/{index-BiYk1mJi.js → index-C4y71e1i.js} +2 -2
  68. package/dist/component/{index-Cv3_acT1.js → index-PHkE0Ru4.js} +4 -4
  69. package/dist/component/isObjectLike-srCDplej.js +86 -0
  70. package/dist/component/multiline-address-field-rac-CsBLI9y-.js +1613 -0
  71. package/dist/component/{multiline-address-rac-B9yHNebZ.js → multiline-address-rac-DFDPFfXh.js} +1 -1
  72. package/dist/component/{number-input-field-rac-SaC7jFUi.js → number-input-field-rac-DZRR7gdt.js} +19 -19
  73. package/dist/component/{number-input-rac-KYcJJPrs.js → number-input-rac-BCS5lkff.js} +1 -1
  74. package/dist/component/{password-rac-CD5bSL2g.js → password-rac-ClDGgR3E.js} +27 -27
  75. package/dist/component/{payment-input-rac-BlAscmFz.js → payment-input-rac-COydWmUE.js} +34 -34
  76. package/dist/component/{phone-input-field-rac-D-AosrgV.js → phone-input-field-rac-DYCibqe1.js} +54 -54
  77. package/dist/component/{phone-rac-DXLYlz5G.js → phone-rac-BS-dmWkJ.js} +1 -1
  78. package/dist/component/{product-list-rac-CGt4Gnj4.js → product-list-rac-hxOhaA-r.js} +84 -84
  79. package/dist/component/quiz-radio-group-rac-BT-YZO2Q.js +13 -0
  80. package/dist/component/{radio-group-field-rac-D8NS7qDq.js → radio-group-field-rac-DKqWnMBJ.js} +3 -3
  81. package/dist/component/{radio-group-field-rac.module-wK26tCZq.js → radio-group-field-rac.module-BwUynK_5.js} +9 -9
  82. package/dist/component/{radio-group-rac-HalDjwk1.js → radio-group-rac-DHURQZKK.js} +1 -1
  83. package/dist/component/{rating-input-field-rac-BBhMkSyL.js → rating-input-field-rac-CZRdSVrf.js} +37 -37
  84. package/dist/component/{rating-input-rac-BpgFnNoD.js → rating-input-rac-BaH52DYm.js} +1 -1
  85. package/dist/component/{rich-content-rac.module-BgJ2fteu.js → rich-content-rac.module-ILBfxEmN.js} +4 -4
  86. package/dist/component/{rich-text-field-rac-BZfCgvHc.js → rich-text-field-rac-B58q8Is7.js} +7 -7
  87. package/dist/component/{rich-text-rac-CG3V04Gr.js → rich-text-rac-DGbZh1eX.js} +1 -1
  88. package/dist/component/{service-dropdown-rac-Bc_y-R5O.js → service-dropdown-rac-DUiNIbdv.js} +42 -42
  89. package/dist/component/{services-multi-choice-rac-BeBdZpRV.js → services-multi-choice-rac-B7y9s2l8.js} +29 -29
  90. package/dist/component/{signature-rac-DNdpHxFp.js → signature-rac-CydpvQJZ.js} +37 -37
  91. package/dist/component/{submit-button-rac-Bogk1xYc.js → submit-button-rac-OO53h4H8.js} +8 -8
  92. package/dist/component/{tags-field-rac-COJG3T_9.js → tags-field-rac-eX3d3JEH.js} +50 -50
  93. package/dist/component/{tags-rac-DsaUqJ4w.js → tags-rac-CdIB_48Z.js} +1 -1
  94. package/dist/component/{text-area-field-rac-BVq5p83p.js → text-area-field-rac-Bir5Q7gz.js} +22 -22
  95. package/dist/component/{text-area-rac-D-uiOy62.js → text-area-rac-Ct1UNU04.js} +1 -1
  96. package/dist/component/{text-input-field-rac-wYvY_eBR.js → text-input-field-rac-onGUXC9J.js} +6 -6
  97. package/dist/component/{text-input-headless-BsL6OYhp.js → text-input-headless-Bs9m7QFg.js} +10 -10
  98. package/dist/component/{text-input-rac-Bu8kXhrN.js → text-input-rac-DK4nEw4D.js} +1 -1
  99. package/dist/component/{time-input-rac-PWXUi1qL.js → time-input-rac-BCG9ktFa.js} +40 -40
  100. package/dist/component/{url-input-field-rac-B4qgrssx.js → url-input-field-rac-mUkrVTcL.js} +25 -25
  101. package/dist/component/{url-input-rac-Bo51kTsG.js → url-input-rac-Cl7LFYlr.js} +1 -1
  102. package/dist/component/{use-service-options-base-Du6B6AP9.js → use-service-options-base-BYVuKRj2.js} +8 -8
  103. package/dist/form.d.ts +3 -1
  104. package/package.json +2 -14
  105. package/dist/component/checkbox-field-rac-DhAEMdL9.js +0 -625
  106. package/dist/component/checkbox-group-field-headless-EGVW3vG0.js +0 -204
  107. package/dist/component/checkbox-group-field-rac-DUDWNOwV.js +0 -33
  108. package/dist/component/contacts-subscribe-rac-D_2wIX9p.js +0 -13
  109. package/dist/component/field-rac.module-DtugsLiL.js +0 -21
  110. package/dist/component/form-element-classes-Bi-nNM8q.js +0 -55
  111. package/dist/component/isObject-BAwJJxQ3.js +0 -34
  112. package/dist/component/multiline-address-field-rac-_Sb56AEM.js +0 -1574
  113. package/dist/component/quiz-radio-group-rac-DaStzNZZ.js +0 -13
@@ -1,6 +1,6 @@
1
1
  import r from "react";
2
- import { ag as e, h as t } from "./form-D6A2hUbV.js";
3
- import { R as p } from "./radio-group-field-rac-D8NS7qDq.js";
2
+ import { ai as e, h as t } from "./form-9yjqDnxY.js";
3
+ import { R as p } from "./radio-group-field-rac-DKqWnMBJ.js";
4
4
  import { a } from "./default-limits-D7qVv_Hv.js";
5
5
  const l = () => {
6
6
  const o = {
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { R as e } from "./rating-input-field-rac-BBhMkSyL.js";
2
+ import { R as e } from "./rating-input-field-rac-CZRdSVrf.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 { ag as e, h as o } from "./form-D6A2hUbV.js";
3
- import { T as s } from "./tags-field-rac-COJG3T_9.js";
2
+ import { ai as e, h as o } from "./form-9yjqDnxY.js";
3
+ import { T as s } from "./tags-field-rac-eX3d3JEH.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-BVq5p83p.js";
2
+ import { T as t } from "./text-area-field-rac-Bir5Q7gz.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-wYvY_eBR.js";
2
+ import { T as e } from "./text-input-field-rac-onGUXC9J.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-B4qgrssx.js";
2
+ import { U as r } from "./url-input-field-rac-mUkrVTcL.js";
3
3
  const n = () => /* @__PURE__ */ t.createElement(r, null);
4
4
  export {
5
5
  n as DextUrlInputRAC
@@ -1,28 +1,28 @@
1
- import n, { useMemo as w, useCallback as L, useRef as ae } from "react";
1
+ import n, { useMemo as w, useCallback as D, useRef as ae } from "react";
2
2
  import { RicosViewer as se } from "@wix/ricos/viewer";
3
3
  import _ from "classnames";
4
- import { RadioGroup as le, RadioField as Q, RadioButton as W, TextField as ce, Input as ie } from "react-aria-components";
4
+ import { RadioGroup as le, RadioField as j, RadioButton as J, TextField as ce, Input as ie } from "react-aria-components";
5
5
  import { debounce as ue } from "ts-debounce";
6
- import { P as j, ag as P, ad as V, aq as me, aa as M, ai as pe } from "./form-D6A2hUbV.js";
6
+ import { P as Q, ai as P, af as V, as as me, ab as M, ak as pe } from "./form-9yjqDnxY.js";
7
7
  import { f as h, a as g } from "./find-child-C60k4CxG.js";
8
- import { a as J } from "./format-currency-BwShJ9vM.js";
9
- import { D as de, E as Ie } from "./field-error-headless-DP4WSQU3.js";
10
- import { L as Ce } from "./field-label-headless-BKmi7Fjg.js";
8
+ import { a as W } from "./format-currency-BwShJ9vM.js";
9
+ import { D as de, E as Ie } from "./field-error-headless-DrnFrGun.js";
10
+ import { L as Ce } from "./field-label-headless-BIYf1BIh.js";
11
11
  import { N as Ee } from "./options-layout-constants-DEfIEJWD.js";
12
12
  import { a as fe, b as he } from "./numeric-input-utils-CuBMi4-a.js";
13
13
  import { g as Oe } from "./payment-field-utils-DobiK5Xh.js";
14
14
  import { u as ye } from "./use-synced-display-value-DcAxdn3M.js";
15
15
  import { E as _e } from "./error-icon-hZxQ6DEy.js";
16
- import { s as v } from "./field-rac.module-DtugsLiL.js";
17
- import { r as be, H as ge, f as Y, t as B, l as Fe, h as Ne } from "./form-element-classes-Bi-nNM8q.js";
18
- import { o as De } from "./options-rac.module-KM-VT_KY.js";
19
- function Le(e, t) {
16
+ import { s as R } from "./field-rac.module-CWkwwhq4.js";
17
+ import { t as be, J as ge, h as Y, v as B, n as Fe, j as Ne } from "./form-element-classes-KRzHUNLu.js";
18
+ import { o as ve } from "./options-rac.module-KM-VT_KY.js";
19
+ function De(e, t) {
20
20
  return e.reduce((r, o) => (r[o[t]] = o, r), {});
21
21
  }
22
- function Re(e) {
23
- return Le(e, "id");
22
+ function Le(e) {
23
+ return De(e, "id");
24
24
  }
25
- const ve = 0.01;
25
+ const Re = 0.01;
26
26
  function Se(e) {
27
27
  var t;
28
28
  return ((t = e == null ? void 0 : e.fixedPriceOptions) == null ? void 0 : t.price) || "0";
@@ -31,12 +31,12 @@ function K(e, t) {
31
31
  const r = Number(t || "0");
32
32
  return {
33
33
  productId: e.id,
34
- price: e.priceType === j.DYNAMIC_PRICE ? r : String(r),
34
+ price: e.priceType === Q.DYNAMIC_PRICE ? r : String(r),
35
35
  quantity: 1
36
36
  };
37
37
  }
38
38
  function Ae(e) {
39
- return e.find((t) => t.priceType === j.DYNAMIC_PRICE);
39
+ return e.find((t) => t.priceType === Q.DYNAMIC_PRICE);
40
40
  }
41
41
  function Pe(e, t) {
42
42
  return (e == null ? void 0 : e.productId) === (t == null ? void 0 : t.id) ? String((e == null ? void 0 : e.price) ?? "") : "";
@@ -53,7 +53,7 @@ const a = ({ children: e }) => {
53
53
  return ((T = (f = u == null ? void 0 : u.predefined) == null ? void 0 : f.paymentOptions) == null ? void 0 : T.products) || [];
54
54
  }, [
55
55
  u
56
- ]), R = w(() => Re(N), [
56
+ ]), L = w(() => Le(N), [
57
57
  N
58
58
  ]), l = w(() => m ? Ae(N) : void 0, [
59
59
  N,
@@ -62,55 +62,55 @@ const a = ({ children: e }) => {
62
62
  sourceValue: X,
63
63
  format: (f) => he(String(f ?? ""), F),
64
64
  regionalFormat: F
65
- }), z = L((f) => {
66
- o(Me(f, C, R)), x("");
65
+ }), z = D((f) => {
66
+ o(Me(f, C, L)), x("");
67
67
  }, [
68
68
  o,
69
- R,
69
+ L,
70
70
  C,
71
71
  x
72
- ]), $ = L((f) => {
72
+ ]), $ = D((f) => {
73
73
  l && o(typeof f == "number" ? [
74
74
  K(l, String(f))
75
75
  ] : []);
76
76
  }, [
77
77
  o,
78
78
  l
79
- ]), H = w(() => ue($, 500), [
79
+ ]), G = w(() => ue($, 500), [
80
80
  $
81
- ]), Z = L((f) => {
81
+ ]), Z = D((f) => {
82
82
  (C == null ? void 0 : C.productId) !== (l == null ? void 0 : l.id) && o(void 0);
83
- const { validInput: T, validNumber: re } = fe(f.target.value, ve, q, F);
84
- x(T), H(re);
83
+ const { validInput: T, validNumber: re } = fe(f.target.value, Re, q, F);
84
+ x(T), G(re);
85
85
  }, [
86
86
  F,
87
87
  o,
88
88
  C,
89
89
  l,
90
90
  q,
91
- H,
91
+ G,
92
92
  x
93
- ]), U = (C == null ? void 0 : C.productId) || null, ee = L(() => {
94
- l != null && l.id && U !== l.id && z(l.id);
93
+ ]), k = (C == null ? void 0 : C.productId) || null, ee = D(() => {
94
+ l != null && l.id && k !== l.id && z(l.id);
95
95
  }, [
96
96
  l == null ? void 0 : l.id,
97
- U,
97
+ k,
98
98
  z
99
- ]), te = h(e, a.Label), G = h(e, a.Control), ne = h(e, a.Description), oe = h(e, a.Error);
99
+ ]), te = h(e, a.Label), H = h(e, a.Control), ne = h(e, a.Description), oe = h(e, a.Error);
100
100
  return /* @__PURE__ */ n.createElement(O, {
101
101
  fieldId: t,
102
102
  renderLabel: () => te,
103
103
  renderInput: () => /* @__PURE__ */ n.createElement(le, {
104
104
  "aria-labelledby": p,
105
- value: U,
105
+ value: k,
106
106
  onChange: z,
107
107
  isDisabled: s,
108
108
  isInvalid: E,
109
109
  isRequired: c,
110
110
  onBlur: i,
111
111
  onFocus: y
112
- }, G ? g(G, {
113
- productsById: R,
112
+ }, H ? g(H, {
113
+ productsById: L,
114
114
  addOther: m,
115
115
  customAmount: q,
116
116
  onCustomAmountInputChange: Z,
@@ -141,8 +141,8 @@ const a = ({ children: e }) => {
141
141
  customAmountProductId: I,
142
142
  onFocusCustomInput: O
143
143
  }) : null);
144
- }, k = ({ children: e, className: t, ...r }) => {
145
- const { productsById: o, addOther: s, customAmountProductId: c, t: i } = r, { options: y, numberOfColumns: u } = P(), { isMobile: m } = M(), I = h(e, k.Option), O = m ? Ee.ONE : u;
144
+ }, U = ({ children: e, className: t, ...r }) => {
145
+ const { productsById: o, addOther: s, customAmountProductId: c, t: i } = r, { options: y, numberOfColumns: u } = P(), { isMobile: m } = M(), I = h(e, U.Option), O = m ? Ee.ONE : u;
146
146
  return /* @__PURE__ */ n.createElement("div", {
147
147
  className: t,
148
148
  "data-columns": O
@@ -154,7 +154,7 @@ const a = ({ children: e }) => {
154
154
  value: E.value,
155
155
  price: d || "0"
156
156
  });
157
- }), s && c && /* @__PURE__ */ n.createElement(Q, {
157
+ }), s && c && /* @__PURE__ */ n.createElement(j, {
158
158
  value: c,
159
159
  style: {
160
160
  position: "absolute",
@@ -167,11 +167,11 @@ const a = ({ children: e }) => {
167
167
  whiteSpace: "nowrap",
168
168
  border: "0"
169
169
  }
170
- }, /* @__PURE__ */ n.createElement(W, {
170
+ }, /* @__PURE__ */ n.createElement(J, {
171
171
  "aria-label": i("donation.other-option.label", "Custom amount")
172
172
  }, i("donation.other-option.label", "Custom amount"))));
173
173
  }, S = ({ children: e, className: t, ...r }) => {
174
- const { value: o, price: s } = r, { id: c } = P(), { currency: i, regionalFormat: y } = M(), u = h(e, S.Value), m = h(e, S.Currency), { isCurrencyPrefixed: I } = J({
174
+ const { value: o, price: s } = r, { id: c } = P(), { currency: i, regionalFormat: y } = M(), u = h(e, S.Value), m = h(e, S.Currency), { isCurrencyPrefixed: I } = W({
175
175
  amount: s,
176
176
  currency: i == null ? void 0 : i.code,
177
177
  locale: y
@@ -183,14 +183,14 @@ const a = ({ children: e }) => {
183
183
  const E = u ? g(u, {
184
184
  price: s
185
185
  }) : null;
186
- return /* @__PURE__ */ n.createElement(Q, {
186
+ return /* @__PURE__ */ n.createElement(j, {
187
187
  value: o
188
- }, /* @__PURE__ */ n.createElement(W, {
188
+ }, /* @__PURE__ */ n.createElement(J, {
189
189
  className: t,
190
190
  ref: O
191
191
  }, /* @__PURE__ */ n.createElement(n.Fragment, null, I && m, E, !I && m)));
192
192
  }, Te = ({ className: e, ...t }) => {
193
- const { price: r } = t, { currency: o, regionalFormat: s } = M(), { value: c } = J({
193
+ const { price: r } = t, { currency: o, regionalFormat: s } = M(), { value: c } = W({
194
194
  amount: r,
195
195
  currency: o == null ? void 0 : o.code,
196
196
  locale: s
@@ -207,15 +207,15 @@ const a = ({ children: e }) => {
207
207
  S.Value = Te;
208
208
  S.Currency = we;
209
209
  const A = ({ children: e, className: t, ...r }) => {
210
- const { customAmount: o, onCustomAmountInputChange: s, currency: c, t: i, placeholder: y, customAmountProductId: u, onFocusCustomInput: m } = r, { disabled: I, hasError: O } = P(), { labelId: E, prefixId: p } = V(), d = h(e, A.Currency), b = h(e, A.Value), F = L((R) => {
210
+ const { customAmount: o, onCustomAmountInputChange: s, currency: c, t: i, placeholder: y, customAmountProductId: u, onFocusCustomInput: m } = r, { disabled: I, hasError: O } = P(), { labelId: E, prefixId: p } = V(), d = h(e, A.Currency), b = h(e, A.Value), F = D((L) => {
211
211
  s({
212
212
  target: {
213
- value: R
213
+ value: L
214
214
  }
215
215
  });
216
216
  }, [
217
217
  s
218
- ]), C = L(() => {
218
+ ]), C = D(() => {
219
219
  m();
220
220
  }, [
221
221
  m
@@ -258,48 +258,48 @@ const A = ({ children: e, className: t, ...r }) => {
258
258
  };
259
259
  A.Currency = Be;
260
260
  A.Value = Ve;
261
- k.Option = S;
261
+ U.Option = S;
262
262
  a.Label = Ce;
263
263
  a.Control = xe;
264
- a.Options = k;
264
+ a.Options = U;
265
265
  a.OtherInput = A;
266
266
  a.Description = de;
267
267
  a.Error = Ie;
268
- const qe = "_control_7gwzv_1", ze = "_option_7gwzv_7", Ue = "_optionCurrency_7gwzv_91", ke = "_otherInput_7gwzv_95", $e = "_otherInputValue_7gwzv_112", He = "_otherInputCurrency_7gwzv_165", D = {
268
+ const qe = "_control_7gwzv_1", ze = "_option_7gwzv_7", ke = "_optionCurrency_7gwzv_91", Ue = "_otherInput_7gwzv_95", $e = "_otherInputValue_7gwzv_112", Ge = "_otherInputCurrency_7gwzv_165", v = {
269
269
  control: qe,
270
270
  option: ze,
271
- optionCurrency: Ue,
272
- otherInput: ke,
271
+ optionCurrency: ke,
272
+ otherInput: Ue,
273
273
  otherInputValue: $e,
274
- otherInputCurrency: He
275
- }, Ge = ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(se, {
274
+ otherInputCurrency: Ge
275
+ }, He = ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(se, {
276
276
  content: e,
277
277
  locale: t
278
278
  }), Ye = () => /* @__PURE__ */ n.createElement(a, null, /* @__PURE__ */ n.createElement(a.Label, {
279
- className: _(be, v.label)
279
+ className: _(be, R.label)
280
280
  }, /* @__PURE__ */ n.createElement(a.Label.Required, {
281
- className: _(ge, v.requiredMark)
281
+ className: _(ge, R.requiredMark)
282
282
  })), /* @__PURE__ */ n.createElement(a.Control, {
283
- className: D.control
283
+ className: v.control
284
284
  }, /* @__PURE__ */ n.createElement(a.Options, {
285
- className: De.options
285
+ className: ve.options
286
286
  }, /* @__PURE__ */ n.createElement(a.Options.Option, {
287
- className: _(Y, D.option)
287
+ className: _(Y, v.option)
288
288
  }, /* @__PURE__ */ n.createElement(a.Options.Option.Value, {
289
289
  className: B
290
290
  }), /* @__PURE__ */ n.createElement(a.Options.Option.Currency, {
291
- className: _(B, D.optionCurrency)
291
+ className: _(B, v.optionCurrency)
292
292
  }))), /* @__PURE__ */ n.createElement(a.OtherInput, {
293
- className: _(Y, v.input, D.otherInput)
293
+ className: _(Y, R.input, v.otherInput)
294
294
  }, /* @__PURE__ */ n.createElement(a.OtherInput.Currency, {
295
- className: _(B, D.otherInputCurrency)
295
+ className: _(B, v.otherInputCurrency)
296
296
  }), /* @__PURE__ */ n.createElement(a.OtherInput.Value, {
297
- className: _(B, D.otherInputValue)
297
+ className: _(B, v.otherInputValue)
298
298
  }))), /* @__PURE__ */ n.createElement(a.Error, {
299
- className: _(Fe, v.error)
299
+ className: _(Fe, R.error)
300
300
  }, /* @__PURE__ */ n.createElement(_e, null), /* @__PURE__ */ n.createElement(a.Error.Text, null)), /* @__PURE__ */ n.createElement(a.Description, {
301
- className: _(Ne, v.description)
302
- }, Ge)), mt = () => /* @__PURE__ */ n.createElement(Ye, null);
301
+ className: _(Ne, R.description)
302
+ }, He)), mt = () => /* @__PURE__ */ n.createElement(Ye, null);
303
303
  export {
304
304
  mt as DonationRAC
305
305
  };
@@ -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 { ag as p, ad as b, ai as j } from "./form-D6A2hUbV.js";
4
+ import { ai as p, af as b, ak as j } from "./form-9yjqDnxY.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-DP4WSQU3.js";
7
- import { L as J } from "./field-label-headless-BKmi7Fjg.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";
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) => {
@@ -15,7 +15,7 @@ const n = ({ children: t }) => {
15
15
  ]), S = g((c) => L(c && !i && !s), [
16
16
  i,
17
17
  s
18
- ]), T = d(t, n.Label), x = d(t, n.Trigger), V = d(t, n.Options), R = d(t, n.Description), k = d(t, n.Error);
18
+ ]), T = d(t, n.Label), x = d(t, n.Trigger), V = d(t, n.Options), k = d(t, n.Description), R = d(t, n.Error);
19
19
  return /* @__PURE__ */ e.createElement(F, {
20
20
  fieldId: o,
21
21
  renderLabel: () => T,
@@ -39,7 +39,7 @@ const n = ({ children: t }) => {
39
39
  onBlur: O,
40
40
  onFocus: y
41
41
  }, x, V))),
42
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, k, R)
42
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, R, k)
43
43
  });
44
44
  }, W = ({ children: t, className: o }) => {
45
45
  const { inputId: r, ariaDescribedBy: l } = b(), { id: a, hasError: s, isLoading: u } = p(), m = q(null);
@@ -1,13 +1,13 @@
1
- import { RicosViewer as l } from "@wix/ricos/viewer";
1
+ import { RicosViewer as n } 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-CzoD076g.js";
4
+ import { D as o } from "./dropdown-field-headless-DReo519l.js";
5
5
  import { C as m } from "./chevron-down-icon-CcpVm6B-.js";
6
- import { E as n } from "./error-icon-hZxQ6DEy.js";
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-DtugsLiL.js";
9
- import { r as E, H as i, q as p, u as _, l as S, h as R } from "./form-element-classes-Bi-nNM8q.js";
10
- const D = ({ content: a, locale: s }) => /* @__PURE__ */ e.createElement(l, {
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, {
11
11
  content: a,
12
12
  locale: s
13
13
  }), u = () => /* @__PURE__ */ e.createElement(o, null, /* @__PURE__ */ e.createElement(o.Label, {
@@ -24,7 +24,7 @@ const D = ({ content: a, locale: s }) => /* @__PURE__ */ e.createElement(l, {
24
24
  className: t(r.selectOption, c)
25
25
  })), /* @__PURE__ */ e.createElement(o.Error, {
26
26
  className: t(S, r.error)
27
- }, /* @__PURE__ */ e.createElement(n, null), /* @__PURE__ */ e.createElement(o.Error.Text, null)), /* @__PURE__ */ e.createElement(o.Description, {
27
+ }, /* @__PURE__ */ e.createElement(l, null), /* @__PURE__ */ e.createElement(o.Error.Text, null)), /* @__PURE__ */ e.createElement(o.Description, {
28
28
  className: t(R, r.description)
29
29
  }, D));
30
30
  export {
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { D as r } from "./dropdown-field-rac-5kD98Ubc.js";
2
+ import { D as r } from "./dropdown-field-rac-DzrjA2O6.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-_Sb56AEM.js";
2
+ import { M as r } from "./multiline-address-field-rac-CsBLI9y-.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 { ag as n, aq as c, h as i } from "./form-D6A2hUbV.js";
3
- import { C } from "./checkbox-field-rac-DhAEMdL9.js";
4
- import { j as l, k as p, i as m } from "./form-element-classes-Bi-nNM8q.js";
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";
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: m,
42
- label: p,
41
+ container: p,
42
+ label: m,
43
43
  control: l
44
44
  }
45
45
  }));