@wix/form-elements 1.158.0 → 1.159.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 (107) hide show
  1. package/dist/component/{appointment-rac-m5-FH9kU.js → appointment-rac-CpiyUOXo.js} +4 -4
  2. package/dist/component/{bookings-address-rac-VtG7wH0l.js → bookings-address-rac-BBEUV1t7.js} +1 -1
  3. package/dist/component/{bookings-email-rac-C8T3aTQH.js → bookings-email-rac-DdfoeLFV.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-BlhIWWNj.js → bookings-first-name-rac-DH39yvQ-.js} +1 -1
  5. package/dist/component/{bookings-header-rac-adwR7PKJ.js → bookings-header-rac-StLm7b4I.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-z5z1GJQL.js → bookings-last-name-rac-DHZMPMOO.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DMgVxy8J.js → bookings-login-bar-rac-DrHp1ojM.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-DS7ffO6T.js → bookings-phone-rac-6aGjbavK.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-BNWI0o60.js → bookings-rich-text-rac-DBlGZUM5.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CUKZ9NHF.js → checkbox-field-rac-Cna1Va1X.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-Didam2ZD.js → checkbox-group-field-headless-m_-10Mdx.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-C3WCeVA8.js → checkbox-group-field-rac-BSCi5hmx.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-Bkq-wm7_.js → checkbox-group-rac-BWYQZmAI.js} +1 -1
  14. package/dist/component/{checkbox-rac-66ga9Lph.js → checkbox-rac-BsUTfSUf.js} +1 -1
  15. package/dist/component/{contacts-address-rac-DSOk97te.js → contacts-address-rac-DwCLW8rV.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-1qguKm9O.js → contacts-birthdate-rac-DnNgxbKb.js} +1 -1
  17. package/dist/component/{contacts-company-rac-Chefzmw3.js → contacts-company-rac-BQqXzpNl.js} +1 -1
  18. package/dist/component/{contacts-email-rac-DG6eAnz2.js → contacts-email-rac-BINnZzxp.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-tSGE0w5w.js → contacts-first-name-rac-DBWKFkIU.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BjZWfbM5.js → contacts-last-name-rac-D_-qrF7I.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-jfGNKLoZ.js → contacts-phone-rac-7n7JkSDr.js} +1 -1
  22. package/dist/component/{contacts-position-rac-kv8I-m_Q.js → contacts-position-rac-DvXP8nvT.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-BkUG0AMs.js → contacts-subscribe-rac-DnLnV5Gm.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-BtFrK_Ci.js → contacts-tax-id-rac-BJVWhvYW.js} +1 -1
  25. package/dist/component/{date-availability-_A9DS6za.js → date-availability-Df807-eN.js} +1 -1
  26. package/dist/component/{date-input-field-rac-QZUxFX5e.js → date-input-field-rac-CEuPElMH.js} +6 -6
  27. package/dist/component/{date-input-rac-CpseQkV4.js → date-input-rac-CSB3MWHW.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-B4gjhxG6.js → date-picker-field-rac-CySThPfz.js} +6 -6
  29. package/dist/component/{date-picker-rac-DDJfUDCM.js → date-picker-rac-Fp8_pxtf.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-DcwKQKHf.js → date-time-input-field-rac-DG5KSBHe.js} +6 -6
  31. package/dist/component/{date-time-input-rac-BkvcyU3H.js → date-time-input-rac-wctMR4uM.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-UWDhIjU-.js → dext-checkbox-group-rac-erMPfwFL.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-q9UJnqsC.js → dext-checkbox-rac-DQSq9Lqd.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-C164FDSF.js → dext-date-picker-rac-RCLcd1VV.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-BvbnfRYU.js → dext-date-time-input-rac-DMolWzvy.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-z0xU1mRO.js → dext-dropdown-rac-wQ2GJL4V.js} +1 -1
  37. package/dist/component/{dext-email-rac-BkiWpfNw.js → dext-email-rac-BtymBVTW.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DeQWO-RK.js → dext-number-input-rac-DHPiK0Z3.js} +1 -1
  39. package/dist/component/{dext-phone-rac-CGlVpadW.js → dext-phone-rac-C58vHEEe.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-D8hMWNIQ.js → dext-radio-group-rac-Cp-I94HW.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-ibIctxU_.js → dext-rating-input-rac-DI0k3tVa.js} +1 -1
  42. package/dist/component/{dext-tags-rac-snCgM6u0.js → dext-tags-rac-DmF6ctvQ.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-BHVs8ixR.js → dext-text-area-rac-Bv6ridbR.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-DGI747Od.js → dext-text-input-rac-DoTAdUgU.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-CpO2VDPE.js → dext-url-input-rac-BuoMS6g2.js} +1 -1
  46. package/dist/component/{donation-rac-Ck6HkRcW.js → donation-rac-CjZalSgn.js} +49 -49
  47. package/dist/component/{dropdown-field-headless-Bv6LrkeA.js → dropdown-field-headless-BYEjiIUf.js} +5 -5
  48. package/dist/component/{dropdown-field-rac-e5MjWn5B.js → dropdown-field-rac-By_fpqhx.js} +3 -3
  49. package/dist/component/{dropdown-rac-B2jprC8G.js → dropdown-rac-BnIEC4RX.js} +1 -1
  50. package/dist/component/{ecom-address-rac-D0stOqRv.js → ecom-address-rac-B6Usk1Ty.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-BRzaQKx3.js → ecom-subscription-checkbox-rac-B4B0wzlC.js} +2 -2
  52. package/dist/component/{email-input-field-rac-0UIjNipg.js → email-input-field-rac-Df3KI3_v.js} +3 -3
  53. package/dist/component/{events-repeater-rac-BBQZzP7U.js → events-repeater-rac-B2iBk8lV.js} +4 -4
  54. package/dist/component/{events-rsvp-rac-Ck7BXGKy.js → events-rsvp-rac-xl_qCIh3.js} +3 -3
  55. package/dist/component/{field-error-headless-vApyo-y9.js → field-error-headless-DWc76YmY.js} +1 -1
  56. package/dist/component/{field-label-headless-C8-ShLxy.js → field-label-headless-DKBKqI2X.js} +1 -1
  57. package/dist/component/{file-upload-rac-BzWJOM6C.js → file-upload-rac-BVj4cRqe.js} +4 -4
  58. package/dist/component/{fixed-payment-rac-C4_xI103.js → fixed-payment-rac-BS1Hb4hg.js} +3 -3
  59. package/dist/component/{form-D7ulDPh1.js → form-BTUoOcqB.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-BnBbhsOZ.js → header-field-rac-DTJ_Us6u.js} +2 -2
  63. package/dist/component/{header-rac-CEWayr6b.js → header-rac-CvYp0Jjo.js} +1 -1
  64. package/dist/component/{image-choice-rac-DTZrz6oP.js → image-choice-rac--qrYqKJl.js} +42 -42
  65. package/dist/component/{index-DBbgIHYT.js → index-CoEV4QEy.js} +2 -2
  66. package/dist/component/{index-CKtw7kvn.js → index-DIl9BH2M.js} +4 -4
  67. package/dist/component/{isObjectLike-BHfPE26c.js → isObjectLike-CLN09X5V.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-jhcWn4wT.js → multiline-address-field-rac-BjWzx-LH.js} +7 -7
  69. package/dist/component/{multiline-address-rac-YQj_QROS.js → multiline-address-rac-DtaAJjbR.js} +1 -1
  70. package/dist/component/{number-input-field-rac-A7xM2c6F.js → number-input-field-rac-2gqDUlw9.js} +4 -4
  71. package/dist/component/{number-input-rac-DeDatLY5.js → number-input-rac-BlciEPLN.js} +1 -1
  72. package/dist/component/{password-rac-7Si7JHee.js → password-rac-BvvQgafk.js} +4 -4
  73. package/dist/component/{payment-input-rac-D4JKZl-5.js → payment-input-rac-CSRyOPPr.js} +4 -4
  74. package/dist/component/{phone-input-field-rac-GxcQ_Pyl.js → phone-input-field-rac-BVWzH_TY.js} +6 -6
  75. package/dist/component/{phone-rac-Y2mWnseb.js → phone-rac-DMP1MoRs.js} +1 -1
  76. package/dist/component/{product-list-rac-CYUcNqf3.js → product-list-rac-WQ9Qhzum.js} +4 -4
  77. package/dist/component/{quiz-radio-group-rac-f3O7fksW.js → quiz-radio-group-rac-DzrL3-gZ.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-BgVUqcvD.js → radio-button-module-classes-CJk18LzO.js} +3 -3
  79. package/dist/component/{radio-group-field-rac-DrOiyk5C.js → radio-group-field-rac-DGoMoSgo.js} +4 -4
  80. package/dist/component/{radio-group-rac-Btt_bz_K.js → radio-group-rac-DhAELVNV.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-CwN7wyaw.js → rating-input-field-rac-CFoesqmC.js} +4 -4
  82. package/dist/component/{rating-input-rac-sTy0SV3L.js → rating-input-rac-CFMIxche.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-C11w9mXa.js → rich-content-rac.module-xJ03MegT.js} +1 -1
  84. package/dist/component/{rich-text-field-rac-kGwuDtNs.js → rich-text-field-rac-CBMY4JOB.js} +2 -2
  85. package/dist/component/{rich-text-rac-T4ic2hrA.js → rich-text-rac-CvZ7s1Ct.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-BfliE4hs.js → service-dropdown-rac-B627AgPG.js} +4 -4
  87. package/dist/component/{services-multi-choice-rac-CLQ4dLxO.js → services-multi-choice-rac-fXOov4K7.js} +5 -5
  88. package/dist/component/{signature-rac-DLiFeCNL.js → signature-rac-CG_Q9Oxr.js} +4 -4
  89. package/dist/component/{submit-button-rac-CccO80E1.js → submit-button-rac-DAsovEp2.js} +2 -2
  90. package/dist/component/{tags-field-rac-DaghCGJU.js → tags-field-rac-9mpOMPLm.js} +74 -74
  91. package/dist/component/{tags-rac-3ly5shW2.js → tags-rac-CNBJ08wS.js} +1 -1
  92. package/dist/component/{text-area-field-rac-2-TYC5Lb.js → text-area-field-rac-D4aTm7CM.js} +4 -4
  93. package/dist/component/{text-area-rac-Bx0pgw80.js → text-area-rac-DoKiH_Kv.js} +1 -1
  94. package/dist/component/{text-input-field-rac-Dyur2Wby.js → text-input-field-rac-BbvPB26b.js} +3 -3
  95. package/dist/component/{text-input-headless-DZ-Pjpm4.js → text-input-headless-BGaBRrP1.js} +3 -3
  96. package/dist/component/{text-input-rac-BuBtJDX_.js → text-input-rac-1ac1EKad.js} +1 -1
  97. package/dist/component/{time-input-rac-AlDEpfXZ.js → time-input-rac-BS0rR-89.js} +4 -4
  98. package/dist/component/{url-input-field-rac-BzP4-8yP.js → url-input-field-rac-DbO6ATng.js} +4 -4
  99. package/dist/component/{url-input-rac-DaBXuedf.js → url-input-rac-DHuny3d-.js} +1 -1
  100. package/dist/component/{use-dropdown-trigger-class-name-BKOFwNvc.js → use-dropdown-trigger-class-name-rcGBzxI1.js} +3 -3
  101. package/dist/component/{use-element-state-class-name-DY0UyIQg.js → use-element-state-class-name-BUsFQfoW.js} +1 -1
  102. package/dist/component/{use-hoverable-input-class-name-C_Wh4Qfc.js → use-hoverable-input-class-name-C2l3G8gb.js} +2 -2
  103. package/dist/component/{use-is-forced-open-dropdown-Bw_IFUKt.js → use-is-forced-open-dropdown-CoOk4W4i.js} +1 -1
  104. package/dist/component/{use-service-options-base-DgSaAuGy.js → use-service-options-base-D_enm38a.js} +1 -1
  105. package/dist/component/use-text-input-class-name-BLtPQoYE.js +6 -0
  106. package/package.json +2 -2
  107. package/dist/component/use-text-input-class-name-DFMQAg_E.js +0 -6
@@ -1,27 +1,27 @@
1
- import n, { useMemo as x, useCallback as S, useRef as te } from "react";
1
+ import n, { useMemo as x, useCallback as v, useRef as te } from "react";
2
2
  import { RicosViewer as ne } from "@wix/ricos/viewer";
3
- import L from "classnames";
3
+ import S from "classnames";
4
4
  import { ToggleButtonGroup as oe, TextField as re, Group as se, ToggleButton as ae, Input as le } from "react-aria-components";
5
5
  import { debounce as ce } from "ts-debounce";
6
- import { aE as K, bo as T, bl as P, by as ie, bg as H, bq as ue, R as me, a0 as de, w as pe, H as Ie, v as Ce, x as Ee } from "./form-D7ulDPh1.js";
7
- import { f as y, a as F } from "./find-child-C60k4CxG.js";
6
+ import { aE as K, bo as T, bl as P, by as ie, bg as H, bq as ue, R as me, a0 as pe, w as de, H as Ie, v as Ce, x as Ee } from "./form-BTUoOcqB.js";
7
+ import { f as O, a as F } from "./find-child-C60k4CxG.js";
8
8
  import { a as Q } from "./format-currency-BwShJ9vM.js";
9
- import { D as fe, E as ye } from "./field-error-headless-vApyo-y9.js";
10
- import { L as Oe } from "./field-label-headless-C8-ShLxy.js";
9
+ import { D as fe, E as Oe } from "./field-error-headless-DWc76YmY.js";
10
+ import { L as ye } from "./field-label-headless-DKBKqI2X.js";
11
11
  import { F as be } from "./fieldset-headless-CD3fds9J.js";
12
12
  import { a as _e, b as he } from "./numeric-input-utils-CuBMi4-a.js";
13
13
  import { g as Ne } from "./payment-field-utils-DobiK5Xh.js";
14
14
  import { u as ge } from "./use-synced-display-value-DcAxdn3M.js";
15
15
  import { E as Fe } from "./error-icon-hZxQ6DEy.js";
16
- import { s as v } from "./field-rac.module-DP0lkkEv.js";
16
+ import { s as L } from "./field-rac.module-DP0lkkEv.js";
17
17
  import { o as De } from "./options-rac.module-_THNq6Qq.js";
18
- import { u as Se } from "./use-element-state-class-name-DY0UyIQg.js";
19
- import { u as Le } from "./use-text-input-class-name-DFMQAg_E.js";
20
- function ve(e, t) {
18
+ import { u as ve } from "./use-element-state-class-name-BUsFQfoW.js";
19
+ import { u as Se } from "./use-text-input-class-name-BLtPQoYE.js";
20
+ function Le(e, t) {
21
21
  return e.reduce((o, r) => (o[r[t]] = r, o), {});
22
22
  }
23
23
  function Re(e) {
24
- return ve(e, "id");
24
+ return Le(e, "id");
25
25
  }
26
26
  const Ae = 0.01;
27
27
  function Te(e) {
@@ -43,7 +43,7 @@ function Be(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
45
  const s = ({ children: e }) => {
46
- const { id: t, value: o, onChange: r, required: l, onBlur: i, onFocus: C, validation: u, addOther: E, addOtherPlaceholder: d, FieldLayout: f } = T(), { inputId: c, labelId: p, ariaDescribedBy: b } = P(), { t: m } = ie(), { currency: g, regionalFormat: _ } = H(), O = o == null ? void 0 : o[0], D = x(() => {
46
+ const { id: t, value: o, onChange: r, required: l, onBlur: i, onFocus: C, validation: u, addOther: E, addOtherPlaceholder: p, FieldLayout: f } = T(), { inputId: c, labelId: d, ariaDescribedBy: b } = P(), { t: m } = ie(), { currency: g, regionalFormat: _ } = H(), y = o == null ? void 0 : o[0], D = x(() => {
47
47
  var I, h;
48
48
  return ((h = (I = u == null ? void 0 : u.predefined) == null ? void 0 : I.paymentOptions) == null ? void 0 : h.products) || [];
49
49
  }, [
@@ -53,11 +53,11 @@ const s = ({ children: e }) => {
53
53
  ]), a = x(() => E ? Pe(D) : void 0, [
54
54
  D,
55
55
  E
56
- ]), W = Be(O, a), [V, M] = ge({
56
+ ]), W = Be(y, a), [V, M] = ge({
57
57
  sourceValue: W,
58
58
  format: (I) => he(String(I ?? ""), _),
59
59
  regionalFormat: _
60
- }), q = S((I) => {
60
+ }), q = v((I) => {
61
61
  const h = I === void 0 ? void 0 : B[I];
62
62
  r(h ? [
63
63
  Y(h, Te(h))
@@ -66,7 +66,7 @@ const s = ({ children: e }) => {
66
66
  r,
67
67
  B,
68
68
  M
69
- ]), k = S((I) => {
69
+ ]), k = v((I) => {
70
70
  a && r(typeof I == "number" ? [
71
71
  Y(a, String(I))
72
72
  ] : []);
@@ -75,31 +75,31 @@ const s = ({ children: e }) => {
75
75
  a
76
76
  ]), w = x(() => ce(k, 500), [
77
77
  k
78
- ]), j = S((I) => {
79
- (O == null ? void 0 : O.productId) !== (a == null ? void 0 : a.id) && r(void 0);
78
+ ]), j = v((I) => {
79
+ (y == null ? void 0 : y.productId) !== (a == null ? void 0 : a.id) && r(void 0);
80
80
  const { validInput: h, validNumber: ee } = _e(I.target.value, Ae, V, _);
81
81
  M(h), w(ee);
82
82
  }, [
83
83
  _,
84
84
  r,
85
- O,
85
+ y,
86
86
  a,
87
87
  V,
88
88
  w,
89
89
  M
90
- ]), U = (O == null ? void 0 : O.productId) || null, z = S(() => {
90
+ ]), U = (y == null ? void 0 : y.productId) || null, z = v(() => {
91
91
  a != null && a.id && U !== a.id && q(a.id);
92
92
  }, [
93
93
  a == null ? void 0 : a.id,
94
94
  U,
95
95
  q
96
- ]), J = y(e, s.Label), G = y(e, s.Control), X = y(e, s.Description), Z = y(e, s.Error);
96
+ ]), J = O(e, s.Label), G = O(e, s.Control), X = O(e, s.Description), Z = O(e, s.Error);
97
97
  return /* @__PURE__ */ n.createElement(f, {
98
98
  fieldId: t,
99
99
  renderLabel: () => J,
100
100
  renderInput: () => /* @__PURE__ */ n.createElement(be, {
101
101
  id: c,
102
- ariaLabelledBy: p,
102
+ ariaLabelledBy: d,
103
103
  ariaDescribedBy: b,
104
104
  required: l,
105
105
  onBlur: i,
@@ -113,14 +113,14 @@ const s = ({ children: e }) => {
113
113
  onCustomAmountInputChange: j,
114
114
  currency: g,
115
115
  t: m,
116
- placeholder: d === void 0 ? m("donation.other-option.placeholder") : d,
116
+ placeholder: p === void 0 ? m("donation.other-option.placeholder") : p,
117
117
  customAmountProductId: a == null ? void 0 : a.id,
118
118
  onFocusCustomInput: z
119
119
  }) : null),
120
120
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, Z, X)
121
121
  });
122
122
  }, Me = ({ children: e, className: t, ...o }) => {
123
- const { productsById: r, selectedValue: l, onSelectProduct: i, addOther: C, customAmount: u, onCustomAmountInputChange: E, currency: d, t: f, placeholder: c, customAmountProductId: p, onFocusCustomInput: b } = o, { hasError: m } = T(), g = y(e, s.Options), _ = y(e, s.OtherInput);
123
+ const { productsById: r, selectedValue: l, onSelectProduct: i, addOther: C, customAmount: u, onCustomAmountInputChange: E, currency: p, t: f, placeholder: c, customAmountProductId: d, onFocusCustomInput: b } = o, { hasError: m } = T(), g = O(e, s.Options), _ = O(e, s.OtherInput);
124
124
  return /* @__PURE__ */ n.createElement("div", {
125
125
  className: t,
126
126
  "data-invalid": m
@@ -131,18 +131,18 @@ const s = ({ children: e }) => {
131
131
  }) : null, _ && C ? F(_, {
132
132
  customAmount: u,
133
133
  onCustomAmountInputChange: E,
134
- currency: d,
134
+ currency: p,
135
135
  t: f,
136
136
  placeholder: c,
137
- customAmountProductId: p,
137
+ customAmountProductId: d,
138
138
  onFocusCustomInput: b
139
139
  }) : null);
140
140
  }, $ = ({ children: e, className: t, ...o }) => {
141
- const { productsById: r, selectedValue: l, onSelectProduct: i } = o, { options: C, numberOfColumns: u, disabled: E } = T(), { labelId: d } = P(), f = y(e, $.Option);
141
+ const { productsById: r, selectedValue: l, onSelectProduct: i } = o, { options: C, numberOfColumns: u, disabled: E } = T(), { labelId: p } = P(), f = O(e, $.Option);
142
142
  return /* @__PURE__ */ n.createElement(oe, {
143
143
  className: t,
144
144
  "data-columns": u,
145
- "aria-labelledby": d,
145
+ "aria-labelledby": p,
146
146
  selectionMode: "single",
147
147
  selectedKeys: l ? [
148
148
  l
@@ -153,7 +153,7 @@ const s = ({ children: e }) => {
153
153
  isDisabled: E
154
154
  }, C.map((c) => {
155
155
  var m;
156
- const p = r[c.value], b = (m = p == null ? void 0 : p.fixedPriceOptions) == null ? void 0 : m.price;
156
+ const d = r[c.value], b = (m = d == null ? void 0 : d.fixedPriceOptions) == null ? void 0 : m.price;
157
157
  return F(f, {
158
158
  key: c.value,
159
159
  value: c.value,
@@ -161,24 +161,24 @@ const s = ({ children: e }) => {
161
161
  });
162
162
  }));
163
163
  }, R = ({ children: e, className: t, ...o }) => {
164
- const { value: r, price: l } = o, { id: i, hasError: C } = T(), { currency: u, regionalFormat: E } = H(), d = y(e, R.Value), f = y(e, R.Currency), { isCurrencyPrefixed: c } = Q({
164
+ const { value: r, price: l } = o, { id: i, hasError: C } = T(), { currency: u, regionalFormat: E } = H(), p = O(e, R.Value), f = O(e, R.Currency), { isCurrencyPrefixed: c } = Q({
165
165
  amount: l,
166
166
  currency: u == null ? void 0 : u.code,
167
167
  locale: E
168
- }), p = te(null);
168
+ }), d = te(null);
169
169
  ue(() => {
170
170
  var m;
171
- (m = p.current) == null || m.focus({
171
+ (m = d.current) == null || m.focus({
172
172
  preventScroll: !0
173
173
  });
174
174
  }, i);
175
- const b = d ? F(d, {
175
+ const b = p ? F(p, {
176
176
  price: l
177
177
  }) : null;
178
178
  return /* @__PURE__ */ n.createElement(ae, {
179
179
  id: r,
180
180
  className: t,
181
- ref: p,
181
+ ref: d,
182
182
  "data-invalid": C || void 0
183
183
  }, /* @__PURE__ */ n.createElement(n.Fragment, null, c && f, b, !c && f));
184
184
  }, xe = ({ className: e, ...t }) => {
@@ -199,7 +199,7 @@ const s = ({ children: e }) => {
199
199
  R.Value = xe;
200
200
  R.Currency = He;
201
201
  const A = ({ children: e, className: t, ...o }) => {
202
- const { customAmount: r, onCustomAmountInputChange: l, currency: i, t: C, placeholder: u, customAmountProductId: E, onFocusCustomInput: d } = o, { disabled: f, hasError: c } = T(), { labelId: p, prefixId: b } = P(), m = y(e, A.Currency), g = y(e, A.Value), _ = S((D) => {
202
+ const { customAmount: r, onCustomAmountInputChange: l, currency: i, t: C, placeholder: u, customAmountProductId: E, onFocusCustomInput: p } = o, { disabled: f, hasError: c } = T(), { labelId: d, prefixId: b } = P(), m = O(e, A.Currency), g = O(e, A.Value), _ = v((D) => {
203
203
  l({
204
204
  target: {
205
205
  value: D
@@ -207,16 +207,16 @@ const A = ({ children: e, className: t, ...o }) => {
207
207
  });
208
208
  }, [
209
209
  l
210
- ]), O = S(() => {
211
- d();
210
+ ]), y = v(() => {
211
+ p();
212
212
  }, [
213
- d
213
+ p
214
214
  ]);
215
215
  return /* @__PURE__ */ n.createElement(re, {
216
- "aria-labelledby": `${p} ${b}`,
216
+ "aria-labelledby": `${d} ${b}`,
217
217
  value: r,
218
218
  onChange: _,
219
- onFocus: O,
219
+ onFocus: y,
220
220
  isDisabled: f,
221
221
  isInvalid: c
222
222
  }, /* @__PURE__ */ n.createElement(se, {
@@ -253,13 +253,13 @@ const A = ({ children: e, className: t, ...o }) => {
253
253
  A.Currency = Ve;
254
254
  A.Value = qe;
255
255
  $.Option = R;
256
- s.Label = Oe;
256
+ s.Label = ye;
257
257
  s.Control = Me;
258
258
  s.Options = $;
259
259
  s.OtherInput = A;
260
260
  s.Description = fe;
261
- s.Error = ye;
262
- const Ue = "_control_1sfyd_1", $e = "_option_1sfyd_7", ke = "_optionHover_1sfyd_37", we = "_optionSelected_1sfyd_37", Ge = "_optionCurrency_1sfyd_90", Ye = "_otherInput_1sfyd_94", Ke = "_otherInputCurrency_1sfyd_116", N = {
261
+ s.Error = Oe;
262
+ const Ue = "_control_lovol_1", $e = "_option_lovol_7", ke = "_optionHover_lovol_39", we = "_optionSelected_lovol_39", Ge = "_optionCurrency_lovol_92", Ye = "_otherInput_lovol_96", Ke = "_otherInputCurrency_lovol_118", N = {
263
263
  control: Ue,
264
264
  option: $e,
265
265
  optionHover: ke,
@@ -275,18 +275,18 @@ const Ue = "_control_1sfyd_1", $e = "_option_1sfyd_7", ke = "_optionHover_1sfyd_
275
275
  selected: N.optionSelected,
276
276
  hover: N.optionHover
277
277
  }, je = () => {
278
- const e = Le(N.otherInput), t = Se({
278
+ const e = Se(N.otherInput), t = ve({
279
279
  globalClasses: Ee,
280
280
  moduleClasses: We
281
281
  });
282
282
  return /* @__PURE__ */ n.createElement(s, null, /* @__PURE__ */ n.createElement(s.Label, {
283
- className: L(me, v.label)
283
+ className: S(me, L.label)
284
284
  }, /* @__PURE__ */ n.createElement(s.Label.Required, {
285
- className: L(de, v.requiredMark)
285
+ className: S(pe, L.requiredMark)
286
286
  })), /* @__PURE__ */ n.createElement(s.Control, {
287
287
  className: N.control
288
288
  }, /* @__PURE__ */ n.createElement(s.Options, {
289
- className: L(pe, De.options, N.options)
289
+ className: S(de, De.options, N.options)
290
290
  }, /* @__PURE__ */ n.createElement(s.Options.Option, {
291
291
  className: t
292
292
  }, /* @__PURE__ */ n.createElement(s.Options.Option.Value, null), /* @__PURE__ */ n.createElement(s.Options.Option.Currency, {
@@ -296,11 +296,11 @@ const Ue = "_control_1sfyd_1", $e = "_option_1sfyd_7", ke = "_optionHover_1sfyd_
296
296
  }, /* @__PURE__ */ n.createElement(s.OtherInput.Currency, {
297
297
  className: N.otherInputCurrency
298
298
  }), /* @__PURE__ */ n.createElement(s.OtherInput.Value, {
299
- className: v.innerInput
299
+ className: L.innerInput
300
300
  }))), /* @__PURE__ */ n.createElement(s.Error, {
301
- className: L(Ie, v.error)
301
+ className: S(Ie, L.error)
302
302
  }, /* @__PURE__ */ n.createElement(Fe, null), /* @__PURE__ */ n.createElement(s.Error.Text, null)), /* @__PURE__ */ n.createElement(s.Description, {
303
- className: L(Ce, v.description)
303
+ className: S(Ce, L.description)
304
304
  }, Qe));
305
305
  }, Ct = () => /* @__PURE__ */ n.createElement(je, null);
306
306
  export {
@@ -1,13 +1,13 @@
1
1
  import e, { useState as b, useCallback as g, useRef as _ } from "react";
2
2
  import { UNSAFE_PortalProvider as k } from "react-aria";
3
3
  import { Select as M, SelectValue as H, ListBoxItem as U } from "react-aria-components";
4
- import { bo as E, bl as O, bq as Y } from "./form-D7ulDPh1.js";
4
+ import { bo as E, bl as O, bq as Y } from "./form-BTUoOcqB.js";
5
5
  import { f as d, a as F } from "./find-child-C60k4CxG.js";
6
- import { D as j, E as z } from "./field-error-headless-vApyo-y9.js";
7
- import { L as G } from "./field-label-headless-C8-ShLxy.js";
6
+ import { D as j, E as z } from "./field-error-headless-DWc76YmY.js";
7
+ import { L as G } from "./field-label-headless-DKBKqI2X.js";
8
8
  import { E as J, S as K, N as Q } from "./non-modal-popover-D-u13tmp.js";
9
- import { a as W } from "./use-is-forced-open-dropdown-Bw_IFUKt.js";
10
- import { V as X } from "./use-dropdown-trigger-class-name-BKOFwNvc.js";
9
+ import { a as W } from "./use-is-forced-open-dropdown-CoOk4W4i.js";
10
+ import { V as X } from "./use-dropdown-trigger-class-name-rcGBzxI1.js";
11
11
  const r = ({ children: n }) => {
12
12
  const { id: s, value: o, defaultValue: a, options: u = [], readOnly: l, onChange: t, placeholder: p, disabled: i, required: v, onBlur: L, onFocus: y, FieldLayout: C, hasError: D } = E(), [I, h] = b(!1), m = W(s), [P, S] = b(null), T = o && u.some((c) => (c.value ?? c.label) === o) ? o : a || null, { labelId: B } = O(), N = g((c) => {
13
13
  l || t(typeof c == "string" ? c : null);
@@ -1,13 +1,13 @@
1
1
  import { RicosViewer as m } from "@wix/ricos/viewer";
2
2
  import a from "classnames";
3
3
  import e from "react";
4
- import { D as r } from "./dropdown-field-headless-Bv6LrkeA.js";
4
+ import { D as r } from "./dropdown-field-headless-BYEjiIUf.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-DP0lkkEv.js";
9
- import { R as i, a0 as p, y as E, H as D, v as _ } from "./form-D7ulDPh1.js";
10
- import { a as O, u as R } from "./use-dropdown-trigger-class-name-BKOFwNvc.js";
9
+ import { R as i, a0 as p, y as E, H as D, v as _ } from "./form-BTUoOcqB.js";
10
+ import { a as O, u as R } from "./use-dropdown-trigger-class-name-rcGBzxI1.js";
11
11
  const C = ({ content: t, locale: s }) => /* @__PURE__ */ e.createElement(m, {
12
12
  content: t,
13
13
  locale: s
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { D as r } from "./dropdown-field-rac-e5MjWn5B.js";
2
+ import { D as r } from "./dropdown-field-rac-By_fpqhx.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-jhcWn4wT.js";
2
+ import { M as r } from "./multiline-address-field-rac-BjWzx-LH.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 n } from "react";
2
- import { bo as a, by as c, aq as i } from "./form-D7ulDPh1.js";
3
- import { C as l } from "./checkbox-field-rac-CUKZ9NHF.js";
2
+ import { bo as a, by as c, aq as i } from "./form-BTUoOcqB.js";
3
+ import { C as l } from "./checkbox-field-rac-Cna1Va1X.js";
4
4
  const p = (e) => ({
5
5
  nodes: [
6
6
  {
@@ -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 { bl as fe, by as ge, bj as ve, d as ye, bo as Ee, bs as de, bm as be, ao as Se, R as Oe, a0 as he, H as Ie, v as Ne, a9 as Ae } from "./form-D7ulDPh1.js";
5
+ import { bl as fe, by as ge, bj as ve, d as ye, bo as Ee, bs as de, bm as be, ao as Se, R as Oe, a0 as he, H as Ie, v as Ne, a9 as Ae } from "./form-BTUoOcqB.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,10 +10,10 @@ import Fe from "@babel/runtime/helpers/defineProperty";
10
10
  import ke from "html-parse-stringify";
11
11
  import Te from "@babel/runtime/helpers/classCallCheck";
12
12
  import xe from "@babel/runtime/helpers/createClass";
13
- import { T as U } from "./text-input-headless-DZ-Pjpm4.js";
13
+ import { T as U } from "./text-input-headless-BGaBRrP1.js";
14
14
  import { E as je } from "./error-icon-hZxQ6DEy.js";
15
15
  import { s as H } from "./field-rac.module-DP0lkkEv.js";
16
- import { u as De } from "./use-text-input-class-name-DFMQAg_E.js";
16
+ import { u as De } from "./use-text-input-class-name-BLtPQoYE.js";
17
17
  var Ce = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Le = {
18
18
  "&": "&",
19
19
  "&": "&",
@@ -1,16 +1,16 @@
1
1
  import t, { useState as j, useMemo as h, useCallback as V, useRef as x } from "react";
2
2
  import M from "classnames";
3
3
  import { NumberField as z, CheckboxField as J, CheckboxButton as Q, Group as W, Input as Y, Button as w } from "react-aria-components";
4
- import { bu as q, bv as H, bk as K, bp as P, aM as Z, bo as y, bl as X, bq as U, as as ee, R as te, n as se, s as ne, r as oe } from "./form-D7ulDPh1.js";
4
+ import { bu as q, bv as H, bk as K, bp as P, aM as Z, bo as y, bl as X, bq as U, as as ee, R as te, n as se, s as ne, r as oe } from "./form-BTUoOcqB.js";
5
5
  import { f as b, a as L } from "./find-child-C60k4CxG.js";
6
- import { L as re } from "./field-label-headless-C8-ShLxy.js";
6
+ import { L as re } from "./field-label-headless-DKBKqI2X.js";
7
7
  import { S as ae } from "./selection-indicator-XQ8MYHUQ.js";
8
8
  import { u as le } from "./use-invoke-callback-UH73A_J3.js";
9
9
  import { C as k } from "./chevron-down-icon-CcpVm6B-.js";
10
10
  import { C as ce } from "./checkbox-indicator-module-classes-akWZsZNn.js";
11
11
  import { s as v } from "./field-rac.module-DP0lkkEv.js";
12
- import { u as ue } from "./use-element-state-class-name-DY0UyIQg.js";
13
- import { u as me } from "./use-text-input-class-name-DFMQAg_E.js";
12
+ import { u as ue } from "./use-element-state-class-name-BUsFQfoW.js";
13
+ import { u as me } from "./use-text-input-class-name-BLtPQoYE.js";
14
14
  const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, errors: l = ie, validation: c }) => {
15
15
  const [m, i] = j((o == null ? void 0 : o.length) || 0), u = h(() => o ?? [], [
16
16
  o
@@ -1,12 +1,12 @@
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 n, R as c } from "./radio-button-module-classes-BgVUqcvD.js";
4
+ import { a, s as n, R as c } from "./radio-button-module-classes-CJk18LzO.js";
5
5
  import { E as i } from "./error-icon-hZxQ6DEy.js";
6
6
  import { s as o } from "./field-rac.module-DP0lkkEv.js";
7
- import { R as E, a0 as p, X as R, Y as O, H as _, v as L, Z as D } from "./form-D7ulDPh1.js";
7
+ import { R as E, a0 as p, X as R, Y as O, H as _, v as L, Z as D } from "./form-BTUoOcqB.js";
8
8
  import { o as I } from "./options-rac.module-_THNq6Qq.js";
9
- import { u as S } from "./use-element-state-class-name-DY0UyIQg.js";
9
+ import { u as S } from "./use-element-state-class-name-BUsFQfoW.js";
10
10
  const e = ({ children: r, className: l }) => /* @__PURE__ */ t.createElement(a, {
11
11
  className: l
12
12
  }, r);
@@ -1,5 +1,5 @@
1
1
  import t, { createContext as m, useContext as M } from "react";
2
- import { bo as c, bl as i, bg as f, aZ as x, a_ as b } from "./form-D7ulDPh1.js";
2
+ import { bo as c, bl as i, bg as f, aZ as x, a_ as b } from "./form-BTUoOcqB.js";
3
3
  const H = ({ 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 { bo as m, aF as d, aG as p, bl as D, by as B } from "./form-D7ulDPh1.js";
1
+ import { bo as m, aF as d, aG as p, bl as D, by as B } from "./form-BTUoOcqB.js";
2
2
  import l from "react";
3
3
  import { f as L } from "./find-child-C60k4CxG.js";
4
4
  import { sdk as g } from "@wix/image-kit";
@@ -2,14 +2,14 @@ import t, { useState as Y, useRef as k, useMemo as fe, useEffect as ne, useCallb
2
2
  import Le from "@wix/editor-react-components/AnimatedIcon";
3
3
  import { RicosViewer as xe } from "@wix/ricos/viewer";
4
4
  import Z from "classnames";
5
- import { bk as Ce, by as re, bt as ve, ar as Ne, bw as De, ak as ie, bx as Te, bl as Ee, bo as V, bq as Se, bi as Be, bh as ye, R as Ie, a0 as Re, b as Ze, K as Ae, L as ce, v as ue, I as de, H as pe, J as Me, f as te } from "./form-D7ulDPh1.js";
5
+ import { bk as Ce, by as re, bt as ve, ar as Ne, bw as De, ak as ie, bx as Te, bl as Ee, bo as V, bq as Se, bi as Be, bh as ye, R as Ie, a0 as Re, b as Ze, K as Ae, L as ce, v as ue, I as de, H as pe, J as Me, f as te } from "./form-BTUoOcqB.js";
6
6
  import { E as Oe } from "./error-icon-hZxQ6DEy.js";
7
7
  import { s as $ } from "./field-rac.module-DP0lkkEv.js";
8
- import { u as me } from "./use-element-state-class-name-DY0UyIQg.js";
8
+ import { u as me } from "./use-element-state-class-name-BUsFQfoW.js";
9
9
  import { DropZone as Ue, Text as we, FileTrigger as He, Button as Fe, ProgressBar as Pe, VisuallyHidden as ke } from "react-aria-components";
10
10
  import { f as L, a as W } from "./find-child-C60k4CxG.js";
11
- import { b as ze, a as Ve, D as qe, E as Ke } from "./field-error-headless-vApyo-y9.js";
12
- import { L as je } from "./field-label-headless-C8-ShLxy.js";
11
+ import { b as ze, a as Ve, D as qe, E as Ke } from "./field-error-headless-DWc76YmY.js";
12
+ import { L as je } from "./field-label-headless-DKBKqI2X.js";
13
13
  const $e = {
14
14
  Video: "video/*",
15
15
  Image: "image/*",
@@ -1,11 +1,11 @@
1
1
  import t, { useMemo as _ } from "react";
2
2
  import { RicosViewer as A } from "@wix/ricos/viewer";
3
3
  import u from "classnames";
4
- import { bo as C, bg as I, bl as P, R, M as S, v as x } from "./form-D7ulDPh1.js";
4
+ import { bo as C, bg as I, bl as P, R, M as S, v as x } from "./form-BTUoOcqB.js";
5
5
  import { f as c, a as N } from "./find-child-C60k4CxG.js";
6
6
  import { f as O } from "./format-currency-BwShJ9vM.js";
7
- import { D as v, E as M } from "./field-error-headless-vApyo-y9.js";
8
- import { L as g } from "./field-label-headless-C8-ShLxy.js";
7
+ import { D as v, E as M } from "./field-error-headless-DWc76YmY.js";
8
+ import { L as g } from "./field-label-headless-DKBKqI2X.js";
9
9
  import { s as F } from "./field-rac.module-DP0lkkEv.js";
10
10
  const e = ({ children: r }) => {
11
11
  var p;