@wix/form-elements 1.104.0 → 1.106.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/dist/component/appointment-rac-D2F4vgf1.js +1011 -0
  2. package/dist/component/{bookings-address-rac-bOPrbrFn.js → bookings-address-rac-_5S8J8_i.js} +1 -1
  3. package/dist/component/{bookings-email-rac-DSpy4yfX.js → bookings-email-rac-6vmDR9nS.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-Dw0U4kHG.js → bookings-first-name-rac-DtTJ4T2K.js} +1 -1
  5. package/dist/component/{bookings-header-rac-Czrqn8yy.js → bookings-header-rac-B3dsEwzR.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CVxRqG5b.js → bookings-last-name-rac-B3idkbi8.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-s_2BlBcX.js → bookings-login-bar-rac-CrRBcQwT.js} +4 -4
  8. package/dist/component/{bookings-phone-rac-B2SgZsIb.js → bookings-phone-rac-BE0yWNnj.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-b3K__6c9.js → bookings-rich-text-rac-CYo1l0-6.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-Gt2JioDC.js → checkbox-field-rac-boTtXVEt.js} +18 -22
  11. package/dist/component/{checkbox-group-field-headless-cKefepGi.js → checkbox-group-field-headless-DnkUvDm8.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-B14obB-6.js → checkbox-group-field-rac-DrDTgHMg.js} +13 -13
  13. package/dist/component/{checkbox-group-rac-B6cixM2X.js → checkbox-group-rac-v3ozUBpo.js} +1 -1
  14. package/dist/component/{checkbox-indicator-module-classes-DhbNznSB.js → checkbox-indicator-module-classes-BpeSpGsW.js} +1 -1
  15. package/dist/component/{checkbox-rac-COwblKlm.js → checkbox-rac-YSLE-RnG.js} +1 -1
  16. package/dist/component/{contacts-address-rac-BJrwGPo4.js → contacts-address-rac-C653yaHZ.js} +1 -1
  17. package/dist/component/{contacts-birthdate-rac-BaotTtEN.js → contacts-birthdate-rac-BeAQ6shx.js} +1 -1
  18. package/dist/component/{contacts-company-rac-BjTc-e_S.js → contacts-company-rac-BglKOoTG.js} +1 -1
  19. package/dist/component/{contacts-email-rac-DVFF485m.js → contacts-email-rac-D6m7ynfc.js} +1 -1
  20. package/dist/component/{contacts-first-name-rac-C4Fht3FS.js → contacts-first-name-rac-Dgxn0tUJ.js} +1 -1
  21. package/dist/component/{contacts-last-name-rac-BTbOJedX.js → contacts-last-name-rac-1UyIuRKH.js} +1 -1
  22. package/dist/component/{contacts-phone-rac-GePv5BT7.js → contacts-phone-rac-BQ77BlW4.js} +1 -1
  23. package/dist/component/{contacts-position-rac-BZ1ASqF_.js → contacts-position-rac-BUDUv7lv.js} +1 -1
  24. package/dist/component/contacts-subscribe-rac-DdtA0qKW.js +6 -0
  25. package/dist/component/{contacts-tax-id-rac-A2tdbIvB.js → contacts-tax-id-rac-WUaKcNl0.js} +1 -1
  26. package/dist/component/{date-availability-b1h4CrSQ.js → date-availability-XjBFq8jt.js} +1 -1
  27. package/dist/component/{date-input-field-rac-moOjGzUv.js → date-input-field-rac-aY2zuuKs.js} +14 -14
  28. package/dist/component/{date-input-rac-DTqZCOqB.js → date-input-rac-DRiP2_97.js} +1 -1
  29. package/dist/component/{date-picker-field-rac-flB4Hw18.js → date-picker-field-rac-Bzl-d3Uj.js} +70 -70
  30. package/dist/component/{date-picker-rac-B2fqOP6H.js → date-picker-rac-DHHUh8vn.js} +1 -1
  31. package/dist/component/{date-time-input-field-rac-BtLGRGf5.js → date-time-input-field-rac-DP_StuLr.js} +27 -27
  32. package/dist/component/{date-time-input-rac-CRfUmOim.js → date-time-input-rac-B11KIxsf.js} +1 -1
  33. package/dist/component/{dext-checkbox-group-rac-Ds4t475J.js → dext-checkbox-group-rac-BHZBqyWv.js} +2 -2
  34. package/dist/component/{dext-checkbox-rac-BC6EGH5R.js → dext-checkbox-rac-BIlAqEvV.js} +1 -1
  35. package/dist/component/{dext-date-picker-rac-DyydPJyC.js → dext-date-picker-rac-CHBXNrZi.js} +1 -1
  36. package/dist/component/{dext-date-time-input-rac-DhssYv6t.js → dext-date-time-input-rac-BYtliKry.js} +1 -1
  37. package/dist/component/{dext-dropdown-rac-Bn0C1Ry8.js → dext-dropdown-rac-C2VPSFV5.js} +1 -1
  38. package/dist/component/{dext-email-rac-DKhk_v_w.js → dext-email-rac-Fnb0Ggcs.js} +1 -1
  39. package/dist/component/{dext-number-input-rac-u92WD8VD.js → dext-number-input-rac-DopfSyFi.js} +1 -1
  40. package/dist/component/{dext-phone-rac-DTzdQAe9.js → dext-phone-rac-Rn4i_2rc.js} +1 -1
  41. package/dist/component/{dext-radio-group-rac-CoOYhInI.js → dext-radio-group-rac-bNaskJpK.js} +2 -2
  42. package/dist/component/{dext-rating-input-rac-DPdyJsCZ.js → dext-rating-input-rac-DL6ZZd7d.js} +1 -1
  43. package/dist/component/{dext-tags-rac-Bh3pQ-Ck.js → dext-tags-rac-TsUPoImO.js} +2 -2
  44. package/dist/component/{dext-text-area-rac-Cefsz8ct.js → dext-text-area-rac-BIuY7LTd.js} +1 -1
  45. package/dist/component/{dext-text-input-rac-Bj_pAChP.js → dext-text-input-rac-CSYPW0Qi.js} +1 -1
  46. package/dist/component/{dext-url-input-rac-Bk_kwZzM.js → dext-url-input-rac-_g0lqGfW.js} +1 -1
  47. package/dist/component/{donation-rac-wRWkCjYg.js → donation-rac-BYKFtsyR.js} +55 -55
  48. package/dist/component/{dropdown-field-headless-CedOXKAH.js → dropdown-field-headless-CBaqlNZi.js} +4 -4
  49. package/dist/component/{dropdown-field-rac-CENh9Khw.js → dropdown-field-rac-CCAGSMm3.js} +6 -6
  50. package/dist/component/{dropdown-rac-CeCNULzS.js → dropdown-rac-C_EqUsZ1.js} +1 -1
  51. package/dist/component/{ecom-address-rac-BLJ0UHrV.js → ecom-address-rac-Bw9eH0iF.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-xJDzCasS.js → ecom-subscription-checkbox-rac-B5PVOO2a.js} +10 -17
  53. package/dist/component/{email-input-field-rac-CeTVUWeX.js → email-input-field-rac-B2kqQ6yo.js} +14 -14
  54. package/dist/component/{events-repeater-rac-CT9LAF22.js → events-repeater-rac--4OnUxWE.js} +55 -55
  55. package/dist/component/{events-rsvp-rac-Bu8tqcVi.js → events-rsvp-rac-CczCoo3T.js} +13 -13
  56. package/dist/component/{field-error-headless-gLZVlnQV.js → field-error-headless-D3-1L5sf.js} +1 -1
  57. package/dist/component/{field-label-headless-yc46NPmu.js → field-label-headless-Du4ckIVy.js} +1 -1
  58. package/dist/component/field-rac.module-B4l_0KRU.js +26 -0
  59. package/dist/component/{file-upload-rac-LkVTFtZb.js → file-upload-rac-DbdkUbWM.js} +80 -80
  60. package/dist/component/{fixed-payment-rac-DEbV0w-8.js → fixed-payment-rac-f9-01iDN.js} +8 -8
  61. package/dist/component/{form-DV231fmJ.js → form-DQauhsho.js} +69 -69
  62. package/dist/component/form-element-classes-bLFmhsKw.js +137 -0
  63. package/dist/component/form.css +1 -1
  64. package/dist/component/form.js +1 -1
  65. package/dist/component/{header-field-rac-BzB5dm6C.js → header-field-rac-DamDk5BR.js} +3 -3
  66. package/dist/component/{header-rac-BzS5HfUt.js → header-rac-CR9T3Pnu.js} +1 -1
  67. package/dist/component/{image-choice-rac-8YqUqetS.js → image-choice-rac-DJ_8v467.js} +13 -13
  68. package/dist/component/{index-CMtf-So7.js → index-BB7d_9Dv.js} +4 -4
  69. package/dist/component/{index-BzRG28bH.js → index-CcUTIUWM.js} +2 -2
  70. package/dist/component/{isObjectLike--gPCPyGa.js → isObjectLike-xvPa_08X.js} +1 -1
  71. package/dist/component/{multiline-address-field-rac-CJWdu5LV.js → multiline-address-field-rac-CyaFOloE.js} +80 -80
  72. package/dist/component/{multiline-address-rac-Cw5VweB0.js → multiline-address-rac-CaHGUN_f.js} +1 -1
  73. package/dist/component/{number-input-field-rac-D8NRpCCM.js → number-input-field-rac-BuYUzDWV.js} +15 -15
  74. package/dist/component/{number-input-rac-CM_CQHE_.js → number-input-rac-DMKX6nhk.js} +1 -1
  75. package/dist/component/{password-rac-I6vynKG4.js → password-rac-0RUXPAn6.js} +38 -38
  76. package/dist/component/{payment-input-rac-B4rXCs7V.js → payment-input-rac-CHSZ3-Lt.js} +17 -17
  77. package/dist/component/{phone-input-field-rac-B-k2e0Np.js → phone-input-field-rac-JmIFcP1e.js} +29 -29
  78. package/dist/component/{phone-rac-D443psAx.js → phone-rac-BLRnAPXP.js} +1 -1
  79. package/dist/component/{product-list-rac-B6qUWxkz.js → product-list-rac-BkF5tDwt.js} +11 -11
  80. package/dist/component/quiz-radio-group-rac-32cCMTUS.js +6 -0
  81. package/dist/component/{radio-button-module-classes--on7xGzb.js → radio-button-module-classes-IOulhuSH.js} +28 -28
  82. package/dist/component/radio-group-field-rac-CJwku6e0.js +46 -0
  83. package/dist/component/{radio-group-rac-CjbSQydw.js → radio-group-rac-BiW-9Abj.js} +1 -1
  84. package/dist/component/{rating-input-field-rac-yVgqxBKi.js → rating-input-field-rac-B9cwaROK.js} +30 -30
  85. package/dist/component/{rating-input-rac-D6BKC4oS.js → rating-input-rac-BpwlNvzQ.js} +1 -1
  86. package/dist/component/{rich-content-rac.module-Ca4LYv7k.js → rich-content-rac.module-B1uyPmtK.js} +1 -1
  87. package/dist/component/{rich-text-field-rac-DIeBS-ux.js → rich-text-field-rac-C_qE7Ykg.js} +3 -3
  88. package/dist/component/{rich-text-rac-BgjP0ngh.js → rich-text-rac-VfeZxS27.js} +1 -1
  89. package/dist/component/{service-dropdown-rac-DjOMT7dx.js → service-dropdown-rac-BCfs8IhW.js} +18 -18
  90. package/dist/component/{services-multi-choice-rac-C0Rp9Sng.js → services-multi-choice-rac-CCqdF_7P.js} +8 -8
  91. package/dist/component/{signature-rac-CFT-Fni_.js → signature-rac-DOyMo3u0.js} +73 -73
  92. package/dist/component/{submit-button-rac-BOluGZI0.js → submit-button-rac-C2uA5DeE.js} +11 -11
  93. package/dist/component/{tags-field-rac-CP0RS4SG.js → tags-field-rac-C_uIw2by.js} +36 -36
  94. package/dist/component/{tags-rac-Dtp3VCKk.js → tags-rac-1pQ-fpe_.js} +1 -1
  95. package/dist/component/{text-area-field-rac-DUKg8kgN.js → text-area-field-rac-DqlOkm7e.js} +23 -23
  96. package/dist/component/{text-area-rac-Clh7zMTL.js → text-area-rac-DPdkrFcH.js} +1 -1
  97. package/dist/component/{text-input-field-rac-DY60Q6da.js → text-input-field-rac-CmXm6r1w.js} +6 -6
  98. package/dist/component/{text-input-headless-BBv0nukI.js → text-input-headless-DD__2DFf.js} +3 -3
  99. package/dist/component/{text-input-rac-FVD6iJ1i.js → text-input-rac-DRHyQEH7.js} +1 -1
  100. package/dist/component/{time-input-rac-DsctZB28.js → time-input-rac-BJPIymQY.js} +22 -22
  101. package/dist/component/{url-input-field-rac-Du4HlhH3.js → url-input-field-rac-CFDYkZ6I.js} +15 -15
  102. package/dist/component/{url-input-rac-3QPdK0xz.js → url-input-rac-C0ChQUzq.js} +1 -1
  103. package/dist/component/{use-dropdown-option-class-name-Bze6ghRl.js → use-dropdown-option-class-name-3L5ZmNLK.js} +3 -3
  104. package/dist/component/{use-element-state-class-name-4CDAF1S-.js → use-element-state-class-name-BatTc2bw.js} +1 -1
  105. package/dist/component/{use-is-forced-open-dropdown--w4f5dWP.js → use-is-forced-open-dropdown-B0jiPTmS.js} +1 -1
  106. package/dist/component/{use-service-options-base-9vUuIThY.js → use-service-options-base-oeE7xszw.js} +1 -1
  107. package/dist/component/{use-text-input-class-name-Ch91llI_.js → use-text-input-class-name-LQ5S-NLh.js} +4 -4
  108. package/package.json +5 -5
  109. package/dist/component/appointment-rac-CCciYQ_h.js +0 -1012
  110. package/dist/component/contacts-subscribe-rac-CmyBcsLP.js +0 -13
  111. package/dist/component/field-rac.module-DobpyqOd.js +0 -26
  112. package/dist/component/form-element-classes-BtKlobUX.js +0 -192
  113. package/dist/component/quiz-radio-group-rac-DdPJQmV5.js +0 -13
  114. package/dist/component/radio-group-field-rac-CjiGr1rO.js +0 -50
@@ -1,22 +1,22 @@
1
1
  import n, { useMemo as M, useCallback as D, useRef as re } from "react";
2
2
  import { RicosViewer as se } from "@wix/ricos/viewer";
3
3
  import F from "classnames";
4
- import { RadioGroup as ae, 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 J, 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 B, au as me, ac as j, am as pe } from "./form-DV231fmJ.js";
6
+ import { P as Q, ak as L, ah as B, au as me, ac as j, am as pe } from "./form-DQauhsho.js";
7
7
  import { f as E, a as b } from "./find-child-C60k4CxG.js";
8
- import { a as z } from "./format-currency-BwShJ9vM.js";
9
- import { D as de, E as 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";
8
+ import { a as W } from "./format-currency-BwShJ9vM.js";
9
+ import { D as de, E as fe } from "./field-error-headless-D3-1L5sf.js";
10
+ import { L as Ie } from "./field-label-headless-Du4ckIVy.js";
11
+ import { a as Ce, 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
- import { s as S } from "./field-rac.module-DobpyqOd.js";
16
- import { C as ye, S as be, k as ge, r as Ne, j as Fe, l as De } from "./form-element-classes-BtKlobUX.js";
15
+ import { s as v } from "./field-rac.module-B4l_0KRU.js";
16
+ import { v as ye, J as be, k as ge, o as Ne, j as Fe, l as De } from "./form-element-classes-bLFmhsKw.js";
17
17
  import { o as G } from "./options-rac.module-CTDdATiz.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";
18
+ import { u as ve } from "./use-element-state-class-name-BatTc2bw.js";
19
+ import { u as Se } from "./use-text-input-class-name-LQ5S-NLh.js";
20
20
  function Re(e, t) {
21
21
  return e.reduce((o, r) => (o[r[t]] = r, o), {});
22
22
  }
@@ -28,16 +28,16 @@ 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
  }
31
- function J(e, t) {
31
+ function z(e, t) {
32
32
  const o = Number(t || "0");
33
33
  return {
34
34
  productId: e.id,
35
- price: e.priceType === W.DYNAMIC_PRICE ? o : String(o),
35
+ price: e.priceType === Q.DYNAMIC_PRICE ? o : String(o),
36
36
  quantity: 1
37
37
  };
38
38
  }
39
39
  function Pe(e) {
40
- return e.find((t) => t.priceType === W.DYNAMIC_PRICE);
40
+ return e.find((t) => t.priceType === Q.DYNAMIC_PRICE);
41
41
  }
42
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) ?? "") : "";
@@ -45,13 +45,13 @@ function xe(e, t) {
45
45
  function Me(e, t, o) {
46
46
  const r = (t == null ? void 0 : t.productId) === e ? void 0 : e, a = r ? o[r] : void 0;
47
47
  return a ? [
48
- J(a, Te(a))
48
+ z(a, Te(a))
49
49
  ] : [];
50
50
  }
51
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) || [];
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: I } = me(), { currency: A, regionalFormat: g } = j(), d = o == null ? void 0 : o[0], N = M(() => {
53
+ var C, x;
54
+ return ((x = (C = i == null ? void 0 : i.predefined) == null ? void 0 : C.paymentOptions) == null ? void 0 : x.products) || [];
55
55
  }, [
56
56
  i
57
57
  ]), T = M(() => Le(N), [
@@ -61,27 +61,27 @@ const s = ({ children: e }) => {
61
61
  p
62
62
  ]), K = xe(d, l), [k, P] = Oe({
63
63
  sourceValue: K,
64
- format: (I) => Ee(String(I ?? ""), g),
64
+ format: (C) => Ee(String(C ?? ""), g),
65
65
  regionalFormat: g
66
- }), q = D((I) => {
67
- r(Me(I, d, T)), P("");
66
+ }), q = D((C) => {
67
+ r(Me(C, d, T)), P("");
68
68
  }, [
69
69
  r,
70
70
  T,
71
71
  d,
72
72
  P
73
- ]), U = D((I) => {
74
- l && r(typeof I == "number" ? [
75
- J(l, String(I))
73
+ ]), U = D((C) => {
74
+ l && r(typeof C == "number" ? [
75
+ z(l, String(C))
76
76
  ] : []);
77
77
  }, [
78
78
  r,
79
79
  l
80
80
  ]), $ = M(() => ue(U, 500), [
81
81
  U
82
- ]), X = D((I) => {
82
+ ]), X = D((C) => {
83
83
  (d == null ? void 0 : d.productId) !== (l == null ? void 0 : l.id) && r(void 0);
84
- const { validInput: x, validNumber: oe } = Ie(I.target.value, Ae, k, g);
84
+ const { validInput: x, validNumber: oe } = Ce(C.target.value, Ae, k, g);
85
85
  P(x), $(oe);
86
86
  }, [
87
87
  g,
@@ -116,15 +116,15 @@ const s = ({ children: e }) => {
116
116
  customAmount: k,
117
117
  onCustomAmountInputChange: X,
118
118
  currency: A,
119
- t: C,
120
- placeholder: c === void 0 ? C("donation.other-option.placeholder") : c,
119
+ t: I,
120
+ placeholder: c === void 0 ? I("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
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);
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), I = E(e, s.OtherInput);
128
128
  return /* @__PURE__ */ n.createElement("div", {
129
129
  className: t,
130
130
  "data-invalid": y
@@ -143,9 +143,9 @@ const s = ({ children: e }) => {
143
143
  whiteSpace: "nowrap",
144
144
  border: "0"
145
145
  }
146
- }, /* @__PURE__ */ n.createElement(Q, {
146
+ }, /* @__PURE__ */ n.createElement(J, {
147
147
  "aria-label": i("donation.other-option.label", "Custom amount")
148
- }, i("donation.other-option.label", "Custom amount"))), C && a ? b(C, {
148
+ }, i("donation.other-option.label", "Custom amount"))), I && a ? b(I, {
149
149
  customAmount: u,
150
150
  onCustomAmountInputChange: m,
151
151
  currency: f,
@@ -168,27 +168,27 @@ const s = ({ children: e }) => {
168
168
  price: p || "0"
169
169
  });
170
170
  }));
171
- }, v = ({ children: e, className: t, ...o }) => {
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({
171
+ }, S = ({ children: e, className: t, ...o }) => {
172
+ const { value: r, price: a } = o, { id: u } = L(), { currency: m, regionalFormat: f } = j(), i = E(e, S.Value), p = E(e, S.Currency), { isCurrencyPrefixed: c } = W({
173
173
  amount: a,
174
174
  currency: m == null ? void 0 : m.code,
175
175
  locale: f
176
176
  }), h = re(null);
177
177
  pe(() => {
178
- var O, C;
179
- (C = (O = h.current) == null ? void 0 : O.querySelector("input")) == null || C.focus();
178
+ var O, I;
179
+ (I = (O = h.current) == null ? void 0 : O.querySelector("input")) == null || I.focus();
180
180
  }, u);
181
181
  const y = i ? b(i, {
182
182
  price: a
183
183
  }) : null;
184
184
  return /* @__PURE__ */ n.createElement(Y, {
185
185
  value: r
186
- }, /* @__PURE__ */ n.createElement(Q, {
186
+ }, /* @__PURE__ */ n.createElement(J, {
187
187
  className: t,
188
188
  ref: h
189
189
  }, /* @__PURE__ */ n.createElement(n.Fragment, null, c && p, y, !c && p)));
190
190
  }, je = ({ className: e, ...t }) => {
191
- const { price: o } = t, { currency: r, regionalFormat: a } = j(), { value: u } = z({
191
+ const { price: o } = t, { currency: r, regionalFormat: a } = j(), { value: u } = W({
192
192
  amount: o,
193
193
  currency: r == null ? void 0 : r.code,
194
194
  locale: a
@@ -202,10 +202,10 @@ const s = ({ children: e }) => {
202
202
  className: e
203
203
  }, (t == null ? void 0 : t.sign) || (t == null ? void 0 : t.code) || "");
204
204
  };
205
- v.Value = je;
206
- v.Currency = ke;
205
+ S.Value = je;
206
+ S.Currency = ke;
207
207
  const R = ({ children: e, className: t, ...o }) => {
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) => {
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(), I = E(e, R.Currency), A = E(e, R.Value), g = D((N) => {
209
209
  a({
210
210
  target: {
211
211
  value: N
@@ -229,7 +229,7 @@ const R = ({ children: e, className: t, ...o }) => {
229
229
  className: t,
230
230
  isDisabled: c,
231
231
  isInvalid: h
232
- }, r && u && C ? b(C, {
232
+ }, r && u && I ? b(I, {
233
233
  currency: u,
234
234
  t: m
235
235
  }) : null, A ? b(A, {
@@ -258,38 +258,38 @@ const R = ({ children: e, className: t, ...o }) => {
258
258
  };
259
259
  R.Currency = qe;
260
260
  R.Value = we;
261
- H.Option = v;
262
- s.Label = Ce;
261
+ H.Option = S;
262
+ s.Label = Ie;
263
263
  s.Control = Be;
264
264
  s.Options = H;
265
265
  s.OtherInput = R;
266
266
  s.Description = de;
267
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", _ = {
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", Je = "_otherInput_1fjsf_98", Qe = "_otherInputCurrency_1fjsf_117", _ = {
269
269
  control: He,
270
270
  options: Ue,
271
271
  option: $e,
272
272
  optionHover: Ve,
273
273
  optionSelected: Ge,
274
274
  optionCurrency: Ye,
275
- otherInput: Qe,
276
- otherInputCurrency: We
277
- }, ze = ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(se, {
275
+ otherInput: Je,
276
+ otherInputCurrency: Qe
277
+ }, We = ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(se, {
278
278
  content: e,
279
279
  locale: t
280
- }), Je = {
280
+ }), ze = {
281
281
  base: _.option,
282
282
  selected: _.optionSelected,
283
283
  hover: _.optionHover
284
284
  }, Ke = () => {
285
- const e = ve(_.otherInput), t = Se({
285
+ const e = Se(_.otherInput), t = ve({
286
286
  globalClasses: De,
287
- moduleClasses: Je
287
+ moduleClasses: ze
288
288
  });
289
289
  return /* @__PURE__ */ n.createElement(s, null, /* @__PURE__ */ n.createElement(s.Label, {
290
- className: F(ye, S.label)
290
+ className: F(ye, v.label)
291
291
  }, /* @__PURE__ */ n.createElement(s.Label.Required, {
292
- className: F(be, S.requiredMark)
292
+ className: F(be, v.requiredMark)
293
293
  })), /* @__PURE__ */ n.createElement(s.Control, {
294
294
  className: F(_.control, G.group)
295
295
  }, /* @__PURE__ */ n.createElement(s.Options, {
@@ -306,12 +306,12 @@ const He = "_control_1fjsf_1", Ue = "_options_1fjsf_7", $e = "_option_1fjsf_7",
306
306
  }, /* @__PURE__ */ n.createElement(s.OtherInput.Currency, {
307
307
  className: _.otherInputCurrency
308
308
  }), /* @__PURE__ */ n.createElement(s.OtherInput.Value, {
309
- className: S.innerInput
309
+ className: v.innerInput
310
310
  }))), /* @__PURE__ */ n.createElement(s.Error, {
311
- className: F(Ne, S.error)
311
+ className: F(Ne, v.error)
312
312
  }, /* @__PURE__ */ n.createElement(_e, null), /* @__PURE__ */ n.createElement(s.Error.Text, null)), /* @__PURE__ */ n.createElement(s.Description, {
313
- className: F(Fe, S.description)
314
- }, ze));
313
+ className: F(Fe, v.description)
314
+ }, We));
315
315
  }, Et = () => /* @__PURE__ */ n.createElement(Ke, null);
316
316
  export {
317
317
  Et as DonationRAC
@@ -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-DV231fmJ.js";
4
+ import { ak as f, ah as O, am as G } from "./form-DQauhsho.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-gLZVlnQV.js";
7
- import { L as K } from "./field-label-headless-yc46NPmu.js";
6
+ import { D as H, E as J } from "./field-error-headless-D3-1L5sf.js";
7
+ import { L as K } from "./field-label-headless-Du4ckIVy.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--w4f5dWP.js";
9
+ import { u as X } from "./use-is-forced-open-dropdown-B0jiPTmS.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,22 +1,22 @@
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-CedOXKAH.js";
4
+ import { D as r } from "./dropdown-field-headless-CBaqlNZi.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
- import { s as o } from "./field-rac.module-DobpyqOd.js";
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-Bze6ghRl.js";
8
+ import { s as o } from "./field-rac.module-B4l_0KRU.js";
9
+ import { v as i, J as E, n as p, x as _, o as R, j as D } from "./form-element-classes-bLFmhsKw.js";
10
+ import { u as O } from "./use-dropdown-option-class-name-3L5ZmNLK.js";
11
11
  const S = ({ content: a, locale: s }) => /* @__PURE__ */ e.createElement(m, {
12
12
  content: a,
13
13
  locale: s
14
14
  }), M = () => {
15
15
  const a = O(c);
16
16
  return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
17
- className: t(E, o.label)
17
+ className: t(i, o.label)
18
18
  }, /* @__PURE__ */ e.createElement(r.Label.Required, {
19
- className: t(i, o.requiredMark)
19
+ className: t(E, o.requiredMark)
20
20
  })), /* @__PURE__ */ e.createElement(r.Trigger, {
21
21
  className: t(p, o.input, o.dropdownTrigger)
22
22
  }, /* @__PURE__ */ e.createElement(n, {
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { D as r } from "./dropdown-field-rac-CENh9Khw.js";
2
+ import { D as r } from "./dropdown-field-rac-CCAGSMm3.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-CJWdu5LV.js";
2
+ import { M as r } from "./multiline-address-field-rac-CyaFOloE.js";
3
3
  const l = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  l as EcomAddressRAC
@@ -1,8 +1,7 @@
1
1
  import o, { useMemo as a } from "react";
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
- import { p, q as l, o as m } from "./form-element-classes-BtKlobUX.js";
5
- const _ = (e) => ({
2
+ import { ak as n, au as c, h as i } from "./form-DQauhsho.js";
3
+ import { C as l } from "./checkbox-field-rac-boTtXVEt.js";
4
+ const p = (e) => ({
6
5
  nodes: [
7
6
  {
8
7
  paragraphData: {
@@ -25,25 +24,19 @@ const _ = (e) => ({
25
24
  id: "8k8yy2"
26
25
  }
27
26
  ]
28
- }), R = () => {
29
- const e = n(), { t } = c(), s = a(() => _(t), [
27
+ }), b = () => {
28
+ const e = n(), { t } = c(), r = a(() => p(t), [
30
29
  t
31
- ]), r = {
30
+ ]), s = {
32
31
  ...e,
33
- label: s
32
+ label: r
34
33
  };
35
34
  return /* @__PURE__ */ o.createElement(i.Provider, {
36
35
  value: {
37
- v2: r
36
+ v2: s
38
37
  }
39
- }, /* @__PURE__ */ o.createElement(C, {
40
- classes: {
41
- container: m,
42
- label: l,
43
- indicator: p
44
- }
45
- }));
38
+ }, /* @__PURE__ */ o.createElement(l, null));
46
39
  };
47
40
  export {
48
- R as EcomSubscriptionCheckboxRAC
41
+ b as EcomSubscriptionCheckboxRAC
49
42
  };
@@ -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-DV231fmJ.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-DQauhsho.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-BBv0nukI.js";
13
+ import { T as U } from "./text-input-headless-DD__2DFf.js";
14
14
  import { E as Ae } from "./error-icon-hZxQ6DEy.js";
15
- import { s as H } from "./field-rac.module-DobpyqOd.js";
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-Ch91llI_.js";
15
+ import { s as H } from "./field-rac.module-B4l_0KRU.js";
16
+ import { v as ke, J as Fe, o as Te, j as xe, L as je } from "./form-element-classes-bLFmhsKw.js";
17
+ import { u as De } from "./use-text-input-class-name-LQ5S-NLh.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
  "&": "&",
@@ -82,11 +82,11 @@ function K() {
82
82
  typeof a[0] == "string" && (a[0] = "react-i18next:: ".concat(a[0])), (e = console).warn.apply(e, a);
83
83
  }
84
84
  }
85
- var J = {};
85
+ var X = {};
86
86
  function Be() {
87
87
  for (var e = arguments.length, t = new Array(e), a = 0; a < e; a++)
88
88
  t[a] = arguments[a];
89
- typeof t[0] == "string" && J[t[0]] || (typeof t[0] == "string" && (J[t[0]] = /* @__PURE__ */ new Date()), K.apply(void 0, t));
89
+ typeof t[0] == "string" && X[t[0]] || (typeof t[0] == "string" && (X[t[0]] = /* @__PURE__ */ new Date()), K.apply(void 0, t));
90
90
  }
91
91
  var Ue = ["format"], Ve = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
92
92
  function Q(e, t) {
@@ -236,10 +236,10 @@ function Ge(e, t, a, o, c, r) {
236
236
  key: E
237
237
  })));
238
238
  } else if (n.type === "text") {
239
- var W = o.transWrapTextNodes, X = r ? o.unescape(a.services.interpolator.interpolate(n.content, O, a.language)) : a.services.interpolator.interpolate(n.content, O, a.language);
239
+ var W = o.transWrapTextNodes, J = r ? o.unescape(a.services.interpolator.interpolate(n.content, O, a.language)) : a.services.interpolator.interpolate(n.content, O, a.language);
240
240
  W ? l.push(R(W, {
241
241
  key: "".concat(n.name, "-").concat(E)
242
- }, X)) : l.push(X);
242
+ }, J)) : l.push(J);
243
243
  }
244
244
  return l;
245
245
  }, []);
@@ -273,8 +273,8 @@ function $e(e) {
273
273
  }), V = N ? I(N, x) : E, P = Ge(T || t, V, i, l, x, S), _ = o !== void 0 ? o : l.defaultTransParent;
274
274
  return _ ? R(_, j, P) : P;
275
275
  }
276
- const We = "email-mistype-suggestion", Xe = "email-mistype-suggestion-link", ae = /* @__PURE__ */ z(void 0);
277
- function Je() {
276
+ const We = "email-mistype-suggestion", Je = "email-mistype-suggestion-link", ae = /* @__PURE__ */ z(void 0);
277
+ function Xe() {
278
278
  const e = Z(ae);
279
279
  if (e === void 0)
280
280
  throw new Error("useEmailSuggestion must be used inside <EmailInput>");
@@ -286,7 +286,7 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
286
286
  applySuggestion: t
287
287
  }
288
288
  }, a), ze = ({ className: e }) => {
289
- const { suggestionId: t } = fe(), { activeSuggestion: a, applySuggestion: o } = Je(), { t: c, i18n: r } = ge();
289
+ const { suggestionId: t } = fe(), { activeSuggestion: a, applySuggestion: o } = Xe(), { t: c, i18n: r } = ge();
290
290
  return /* @__PURE__ */ u.createElement("div", {
291
291
  id: t,
292
292
  "data-hook": We,
@@ -303,7 +303,7 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
303
303
  /* @__PURE__ */ u.createElement("button", {
304
304
  key: "0",
305
305
  type: "button",
306
- "data-hook": Xe,
306
+ "data-hook": Je,
307
307
  "aria-label": c("input.email.mistype-check.fix-aria-label", {
308
308
  email: a
309
309
  }),
@@ -485,7 +485,7 @@ f.Input = U.Input;
485
485
  f.Description = U.Description;
486
486
  f.Error = U.Error;
487
487
  f.Suggestion = ze;
488
- const nt = "_suggestion_di65n_1", ot = {
488
+ const nt = "_suggestion_lysve_1", ot = {
489
489
  suggestion: nt
490
490
  }, rt = ({ content: e, locale: t }) => /* @__PURE__ */ u.createElement(ie, {
491
491
  content: e,