@wix/form-elements 1.107.0 → 1.108.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-D2F4vgf1.js → appointment-rac-ZAp8oWbK.js} +289 -290
  2. package/dist/component/{bookings-address-rac-_5S8J8_i.js → bookings-address-rac-x-Az7vHf.js} +1 -1
  3. package/dist/component/{bookings-email-rac-6vmDR9nS.js → bookings-email-rac-MoF_CaqB.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DtTJ4T2K.js → bookings-first-name-rac-CWh3Rb0M.js} +1 -1
  5. package/dist/component/{bookings-header-rac-B3dsEwzR.js → bookings-header-rac-BVTiXUWk.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-B3idkbi8.js → bookings-last-name-rac-kXRRlyHl.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CrRBcQwT.js → bookings-login-bar-rac-C4Zr6kXE.js} +23 -24
  8. package/dist/component/{bookings-phone-rac-BE0yWNnj.js → bookings-phone-rac-2rz1m_xi.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CYo1l0-6.js → bookings-rich-text-rac-BEjGypQw.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-boTtXVEt.js → checkbox-field-rac-DwEQLIaz.js} +66 -67
  11. package/dist/component/{checkbox-group-field-headless-DnkUvDm8.js → checkbox-group-field-headless-BsOww_QB.js} +37 -37
  12. package/dist/component/{checkbox-group-field-rac-DrDTgHMg.js → checkbox-group-field-rac-DTcZcVS6.js} +6 -6
  13. package/dist/component/{checkbox-group-rac-v3ozUBpo.js → checkbox-group-rac-DQsML-pW.js} +1 -1
  14. package/dist/component/{checkbox-rac-YSLE-RnG.js → checkbox-rac-irEBBOxP.js} +1 -1
  15. package/dist/component/{contacts-address-rac-C653yaHZ.js → contacts-address-rac-B5bSAYrm.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BeAQ6shx.js → contacts-birthdate-rac-DyScj8f4.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BglKOoTG.js → contacts-company-rac-C5X9-jXa.js} +1 -1
  18. package/dist/component/{contacts-email-rac-D6m7ynfc.js → contacts-email-rac-B0vkfmrS.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-Dgxn0tUJ.js → contacts-first-name-rac-Cfil3U_e.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-1UyIuRKH.js → contacts-last-name-rac-CtPLE-7-.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BQ77BlW4.js → contacts-phone-rac-YkzsAoBZ.js} +1 -1
  22. package/dist/component/{contacts-position-rac-BUDUv7lv.js → contacts-position-rac-BS4j8QC-.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-DdtA0qKW.js → contacts-subscribe-rac-z_9VsEZL.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-WUaKcNl0.js → contacts-tax-id-rac-WFkmKyZv.js} +1 -1
  25. package/dist/component/{date-availability-XjBFq8jt.js → date-availability-NN3rxosk.js} +1 -1
  26. package/dist/component/{date-input-field-rac-aY2zuuKs.js → date-input-field-rac-mdhEC3oq.js} +88 -89
  27. package/dist/component/{date-input-rac-DRiP2_97.js → date-input-rac-CGciuoTx.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-Bzl-d3Uj.js → date-picker-field-rac-CRZVODfF.js} +90 -91
  29. package/dist/component/{date-picker-rac-DHHUh8vn.js → date-picker-rac-Bfbvjy8W.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-DP_StuLr.js → date-time-input-field-rac-TDWBXZ44.js} +76 -77
  31. package/dist/component/{date-time-input-rac-B11KIxsf.js → date-time-input-rac-DY0qdSix.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-BHZBqyWv.js → dext-checkbox-group-rac-BFGM7SOt.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-BIlAqEvV.js → dext-checkbox-rac-DPZvTeUZ.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-CHBXNrZi.js → dext-date-picker-rac-Xd5kojsQ.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-BYtliKry.js → dext-date-time-input-rac-C0RIdxJW.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-C2VPSFV5.js → dext-dropdown-rac-D1m8vJvm.js} +1 -1
  37. package/dist/component/{dext-email-rac-Fnb0Ggcs.js → dext-email-rac-BC81RFYY.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DopfSyFi.js → dext-number-input-rac-Z_ih9FfX.js} +1 -1
  39. package/dist/component/{dext-phone-rac-Rn4i_2rc.js → dext-phone-rac-s3BOnXuI.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-bNaskJpK.js → dext-radio-group-rac-CL3jcezs.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-DL6ZZd7d.js → dext-rating-input-rac-wz1EyP5b.js} +1 -1
  42. package/dist/component/{dext-tags-rac-TsUPoImO.js → dext-tags-rac-BY4Rf2BP.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-BIuY7LTd.js → dext-text-area-rac-DRJzlsq8.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-CSYPW0Qi.js → dext-text-input-rac-BGcRNNAi.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-_g0lqGfW.js → dext-url-input-rac-CRAIm8yp.js} +1 -1
  46. package/dist/component/{donation-rac-BYKFtsyR.js → donation-rac-BlTfOIlE.js} +83 -84
  47. package/dist/component/{dropdown-field-headless-CBaqlNZi.js → dropdown-field-headless-DhzRAMcM.js} +12 -12
  48. package/dist/component/{dropdown-field-rac-CCAGSMm3.js → dropdown-field-rac-DXyY5we-.js} +5 -5
  49. package/dist/component/{dropdown-rac-C_EqUsZ1.js → dropdown-rac-C6YM6qxm.js} +1 -1
  50. package/dist/component/{ecom-address-rac-Bw9eH0iF.js → ecom-address-rac-CAdr7wya.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-B5PVOO2a.js → ecom-subscription-checkbox-rac-Z2VMuCbt.js} +6 -6
  52. package/dist/component/{email-input-field-rac-B2kqQ6yo.js → email-input-field-rac-DpkfunVK.js} +53 -54
  53. package/dist/component/{events-repeater-rac--4OnUxWE.js → events-repeater-rac-CuJkdrPo.js} +61 -62
  54. package/dist/component/{events-rsvp-rac-CczCoo3T.js → events-rsvp-rac-BKWlSeQ9.js} +8 -8
  55. package/dist/component/{field-error-headless-D3-1L5sf.js → field-error-headless-tsg9FQ-_.js} +12 -12
  56. package/dist/component/{field-label-headless-Du4ckIVy.js → field-label-headless-CB8dEat8.js} +11 -11
  57. package/dist/component/{file-upload-rac-DbdkUbWM.js → file-upload-rac-ZdgYt646.js} +67 -68
  58. package/dist/component/{fixed-payment-rac-f9-01iDN.js → fixed-payment-rac-CuIQEeHh.js} +20 -21
  59. package/dist/component/{form-DQauhsho.js → form-0jt4L5xo.js} +3045 -2896
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +1 -1
  62. package/dist/component/header-field-rac-CWVGzxKb.js +24 -0
  63. package/dist/component/{header-rac-CR9T3Pnu.js → header-rac-D6KsV-ko.js} +1 -1
  64. package/dist/component/{image-choice-rac-DJ_8v467.js → image-choice-rac-CUCyVS8c.js} +29 -30
  65. package/dist/component/{index-BB7d_9Dv.js → index-TJSnVtCO.js} +72 -72
  66. package/dist/component/{index-CcUTIUWM.js → index-iOqQidgV.js} +12 -12
  67. package/dist/component/{isObjectLike-xvPa_08X.js → isObjectLike-DQbx8r1c.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-CyaFOloE.js → multiline-address-field-rac-DtZ1NTfD.js} +186 -187
  69. package/dist/component/{multiline-address-rac-CaHGUN_f.js → multiline-address-rac-ub-_XzHU.js} +1 -1
  70. package/dist/component/number-input-field-rac-DLItn4DK.js +92 -0
  71. package/dist/component/{number-input-rac-DMKX6nhk.js → number-input-rac-UuxJzqEx.js} +1 -1
  72. package/dist/component/{password-rac-0RUXPAn6.js → password-rac-Di6q96Rn.js} +37 -38
  73. package/dist/component/{payment-input-rac-CHSZ3-Lt.js → payment-input-rac-CG6c4-Ge.js} +52 -53
  74. package/dist/component/{phone-input-field-rac-JmIFcP1e.js → phone-input-field-rac-D4JphCuT.js} +75 -76
  75. package/dist/component/{phone-rac-BLRnAPXP.js → phone-rac-_vDw2usa.js} +1 -1
  76. package/dist/component/{product-list-rac-BkF5tDwt.js → product-list-rac-CgxRlj1f.js} +73 -74
  77. package/dist/component/{quiz-radio-group-rac-32cCMTUS.js → quiz-radio-group-rac-bi26aGxN.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-IOulhuSH.js → radio-button-module-classes-DDJq2ESf.js} +33 -33
  79. package/dist/component/{radio-group-field-rac-CJwku6e0.js → radio-group-field-rac-D1aMVO6l.js} +4 -4
  80. package/dist/component/{radio-group-rac-BiW-9Abj.js → radio-group-rac-HKC85M6t.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-B9cwaROK.js → rating-input-field-rac-CpRehxFB.js} +42 -43
  82. package/dist/component/{rating-input-rac-BpwlNvzQ.js → rating-input-rac-BMuCZ3oj.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-B1uyPmtK.js → rich-content-rac.module-mZ6xoAOd.js} +4 -4
  84. package/dist/component/rich-text-field-rac-CUK8V8Kf.js +21 -0
  85. package/dist/component/{rich-text-rac-VfeZxS27.js → rich-text-rac-B-7sR2FJ.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-BCfs8IhW.js → service-dropdown-rac-1DDNT5bn.js} +43 -44
  87. package/dist/component/{services-multi-choice-rac-CCqdF_7P.js → services-multi-choice-rac-CB-6dwxz.js} +21 -22
  88. package/dist/component/{signature-rac-DOyMo3u0.js → signature-rac-7XBci6P2.js} +35 -36
  89. package/dist/component/{submit-button-rac-C2uA5DeE.js → submit-button-rac-B1-Mk8Gg.js} +21 -22
  90. package/dist/component/{tags-field-rac-C_uIw2by.js → tags-field-rac-CQ9Y7mq-.js} +49 -50
  91. package/dist/component/{tags-rac-1pQ-fpe_.js → tags-rac-Visic-Ml.js} +1 -1
  92. package/dist/component/{text-area-field-rac-DqlOkm7e.js → text-area-field-rac-C8fP1g-w.js} +31 -32
  93. package/dist/component/{text-area-rac-DPdkrFcH.js → text-area-rac-B6yZxzxm.js} +1 -1
  94. package/dist/component/{text-input-field-rac-CmXm6r1w.js → text-input-field-rac-CNjbOxD1.js} +5 -5
  95. package/dist/component/{text-input-headless-DD__2DFf.js → text-input-headless-Bm8PJGep.js} +12 -12
  96. package/dist/component/{text-input-rac-DRHyQEH7.js → text-input-rac-BEPC1Z-4.js} +1 -1
  97. package/dist/component/{time-input-rac-BJPIymQY.js → time-input-rac-3m6C_Jp5.js} +41 -42
  98. package/dist/component/url-input-field-rac-CIk_6Lf6.js +74 -0
  99. package/dist/component/{url-input-rac-C0ChQUzq.js → url-input-rac-DyVoygXH.js} +1 -1
  100. package/dist/component/use-dropdown-option-class-name-McG3ayOT.js +21 -0
  101. package/dist/component/{use-element-state-class-name-BatTc2bw.js → use-element-state-class-name-B9MBWX44.js} +1 -1
  102. package/dist/component/{use-is-forced-open-dropdown-B0jiPTmS.js → use-is-forced-open-dropdown-r5G_sZsO.js} +7 -7
  103. package/dist/component/{use-service-options-base-oeE7xszw.js → use-service-options-base-hcbkvhpw.js} +7 -7
  104. package/dist/component/use-text-input-class-name-SnurFqAr.js +23 -0
  105. package/dist/form.d.ts +3 -1
  106. package/package.json +2 -2
  107. package/dist/component/form-element-classes-bLFmhsKw.js +0 -137
  108. package/dist/component/header-field-rac-DamDk5BR.js +0 -25
  109. package/dist/component/number-input-field-rac-BuYUzDWV.js +0 -93
  110. package/dist/component/rich-text-field-rac-C_qE7Ykg.js +0 -22
  111. package/dist/component/url-input-field-rac-CFDYkZ6I.js +0 -75
  112. package/dist/component/use-dropdown-option-class-name-3L5ZmNLK.js +0 -21
  113. package/dist/component/use-text-input-class-name-LQ5S-NLh.js +0 -24
@@ -1,22 +1,21 @@
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 J, TextField as le, Group as ie, Input as ce } from "react-aria-components";
4
+ import { RadioGroup as ae, RadioField as Y, RadioButton as Q, TextField as le, Group as ie, Input as ce } from "react-aria-components";
5
5
  import { debounce as ue } from "ts-debounce";
6
- import { P as Q, ak as L, ah as B, au as me, ac as j, am as pe } from "./form-DQauhsho.js";
7
- import { f as E, a as b } from "./find-child-C60k4CxG.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
- import { g as he } from "./payment-field-utils-DobiK5Xh.js";
13
- import { u as Oe } from "./use-synced-display-value-DcAxdn3M.js";
14
- import { E as _e } from "./error-icon-hZxQ6DEy.js";
15
- import { s as 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";
6
+ import { am as W, b5 as L, b2 as B, bf as me, aZ as j, b7 as pe, H as de, T as fe, q as Ie, u as Ce, p as Ee, r as he } from "./form-0jt4L5xo.js";
7
+ import { f as E, a as y } from "./find-child-C60k4CxG.js";
8
+ import { a as Z } from "./format-currency-BwShJ9vM.js";
9
+ import { D as Oe, E as _e } from "./field-error-headless-tsg9FQ-_.js";
10
+ import { L as be } from "./field-label-headless-CB8dEat8.js";
11
+ import { a as ye, b as ge } from "./numeric-input-utils-CuBMi4-a.js";
12
+ import { g as Ne } from "./payment-field-utils-DobiK5Xh.js";
13
+ import { u as Fe } from "./use-synced-display-value-DcAxdn3M.js";
14
+ import { E as De } from "./error-icon-hZxQ6DEy.js";
15
+ import { s as S } from "./field-rac.module-B4l_0KRU.js";
17
16
  import { o as G } from "./options-rac.module-CTDdATiz.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";
17
+ import { u as Se } from "./use-element-state-class-name-B9MBWX44.js";
18
+ import { u as ve } from "./use-text-input-class-name-SnurFqAr.js";
20
19
  function Re(e, t) {
21
20
  return e.reduce((o, r) => (o[r[t]] = r, o), {});
22
21
  }
@@ -32,12 +31,12 @@ function z(e, t) {
32
31
  const o = Number(t || "0");
33
32
  return {
34
33
  productId: e.id,
35
- price: e.priceType === Q.DYNAMIC_PRICE ? o : String(o),
34
+ price: e.priceType === W.DYNAMIC_PRICE ? o : String(o),
36
35
  quantity: 1
37
36
  };
38
37
  }
39
38
  function Pe(e) {
40
- return e.find((t) => t.priceType === Q.DYNAMIC_PRICE);
39
+ return e.find((t) => t.priceType === W.DYNAMIC_PRICE);
41
40
  }
42
41
  function xe(e, t) {
43
42
  return (e == null ? void 0 : e.productId) === (t == null ? void 0 : t.id) ? String((e == null ? void 0 : e.price) ?? "") : "";
@@ -49,7 +48,7 @@ function Me(e, t, o) {
49
48
  ] : [];
50
49
  }
51
50
  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: I } = me(), { currency: A, regionalFormat: g } = j(), d = o == null ? void 0 : o[0], N = M(() => {
51
+ const { id: t, value: o, onChange: r, disabled: a, required: u, onBlur: m, onFocus: f, validation: i, addOther: p, addOtherPlaceholder: c, FieldLayout: h, hasError: b } = L(), { labelId: O } = B(), { t: I } = me(), { currency: A, regionalFormat: g } = j(), d = o == null ? void 0 : o[0], N = M(() => {
53
52
  var C, x;
54
53
  return ((x = (C = i == null ? void 0 : i.predefined) == null ? void 0 : C.paymentOptions) == null ? void 0 : x.products) || [];
55
54
  }, [
@@ -59,11 +58,11 @@ const s = ({ children: e }) => {
59
58
  ]), l = M(() => p ? Pe(N) : void 0, [
60
59
  N,
61
60
  p
62
- ]), K = xe(d, l), [k, P] = Oe({
63
- sourceValue: K,
64
- format: (C) => Ee(String(C ?? ""), g),
61
+ ]), J = xe(d, l), [q, P] = Fe({
62
+ sourceValue: J,
63
+ format: (C) => ge(String(C ?? ""), g),
65
64
  regionalFormat: g
66
- }), q = D((C) => {
65
+ }), w = D((C) => {
67
66
  r(Me(C, d, T)), P("");
68
67
  }, [
69
68
  r,
@@ -79,56 +78,56 @@ const s = ({ children: e }) => {
79
78
  l
80
79
  ]), $ = M(() => ue(U, 500), [
81
80
  U
82
- ]), X = D((C) => {
81
+ ]), K = D((C) => {
83
82
  (d == null ? void 0 : d.productId) !== (l == null ? void 0 : l.id) && r(void 0);
84
- const { validInput: x, validNumber: oe } = Ce(C.target.value, Ae, k, g);
83
+ const { validInput: x, validNumber: oe } = ye(C.target.value, Ae, q, g);
85
84
  P(x), $(oe);
86
85
  }, [
87
86
  g,
88
87
  r,
89
88
  d,
90
89
  l,
91
- k,
90
+ q,
92
91
  $,
93
92
  P
94
- ]), w = (d == null ? void 0 : d.productId) || null, Z = D(() => {
95
- l != null && l.id && w !== l.id && q(l.id);
93
+ ]), H = (d == null ? void 0 : d.productId) || null, X = D(() => {
94
+ l != null && l.id && H !== l.id && w(l.id);
96
95
  }, [
97
96
  l == null ? void 0 : l.id,
98
- w,
99
- q
97
+ H,
98
+ w
100
99
  ]), ee = E(e, s.Label), V = E(e, s.Control), te = E(e, s.Description), ne = E(e, s.Error);
101
100
  return /* @__PURE__ */ n.createElement(h, {
102
101
  fieldId: t,
103
102
  renderLabel: () => ee,
104
103
  renderInput: () => /* @__PURE__ */ n.createElement(ae, {
105
104
  "aria-labelledby": O,
106
- value: w,
107
- onChange: q,
105
+ value: H,
106
+ onChange: w,
108
107
  isDisabled: a,
109
- isInvalid: y,
108
+ isInvalid: b,
110
109
  isRequired: u,
111
110
  onBlur: m,
112
111
  onFocus: f
113
- }, V ? b(V, {
112
+ }, V ? y(V, {
114
113
  productsById: T,
115
114
  addOther: p,
116
- customAmount: k,
117
- onCustomAmountInputChange: X,
115
+ customAmount: q,
116
+ onCustomAmountInputChange: K,
118
117
  currency: A,
119
118
  t: I,
120
119
  placeholder: c === void 0 ? I("donation.other-option.placeholder") : c,
121
120
  customAmountProductId: l == null ? void 0 : l.id,
122
- onFocusCustomInput: Z
121
+ onFocusCustomInput: X
123
122
  }) : null),
124
123
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, ne, te)
125
124
  });
126
125
  }, 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), I = E(e, s.OtherInput);
126
+ const { productsById: r, addOther: a, customAmount: u, onCustomAmountInputChange: m, currency: f, t: i, placeholder: p, customAmountProductId: c, onFocusCustomInput: h } = o, { hasError: b } = L(), O = E(e, s.Options), I = E(e, s.OtherInput);
128
127
  return /* @__PURE__ */ n.createElement("div", {
129
128
  className: t,
130
- "data-invalid": y
131
- }, O ? b(O, {
129
+ "data-invalid": b
130
+ }, O ? y(O, {
132
131
  productsById: r
133
132
  }) : null, a && c && /* @__PURE__ */ n.createElement(Y, {
134
133
  value: c,
@@ -143,9 +142,9 @@ const s = ({ children: e }) => {
143
142
  whiteSpace: "nowrap",
144
143
  border: "0"
145
144
  }
146
- }, /* @__PURE__ */ n.createElement(J, {
145
+ }, /* @__PURE__ */ n.createElement(Q, {
147
146
  "aria-label": i("donation.other-option.label", "Custom amount")
148
- }, i("donation.other-option.label", "Custom amount"))), I && a ? b(I, {
147
+ }, i("donation.other-option.label", "Custom amount"))), I && a ? y(I, {
149
148
  customAmount: u,
150
149
  onCustomAmountInputChange: m,
151
150
  currency: f,
@@ -154,22 +153,22 @@ const s = ({ children: e }) => {
154
153
  customAmountProductId: c,
155
154
  onFocusCustomInput: h
156
155
  }) : null);
157
- }, H = ({ children: e, className: t, ...o }) => {
158
- const { productsById: r } = o, { options: a, numberOfColumns: u } = L(), m = E(e, H.Option);
156
+ }, k = ({ children: e, className: t, ...o }) => {
157
+ const { productsById: r } = o, { options: a, numberOfColumns: u } = L(), m = E(e, k.Option);
159
158
  return /* @__PURE__ */ n.createElement("div", {
160
159
  className: t,
161
160
  "data-columns": u
162
161
  }, a.map((f) => {
163
162
  var c;
164
163
  const i = r[f.value], p = (c = i == null ? void 0 : i.fixedPriceOptions) == null ? void 0 : c.price;
165
- return b(m, {
164
+ return y(m, {
166
165
  key: f.value,
167
166
  value: f.value,
168
167
  price: p || "0"
169
168
  });
170
169
  }));
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({
170
+ }, v = ({ children: e, className: t, ...o }) => {
171
+ const { value: r, price: a } = o, { id: u } = L(), { currency: m, regionalFormat: f } = j(), i = E(e, v.Value), p = E(e, v.Currency), { isCurrencyPrefixed: c } = Z({
173
172
  amount: a,
174
173
  currency: m == null ? void 0 : m.code,
175
174
  locale: f
@@ -178,17 +177,17 @@ const s = ({ children: e }) => {
178
177
  var O, I;
179
178
  (I = (O = h.current) == null ? void 0 : O.querySelector("input")) == null || I.focus();
180
179
  }, u);
181
- const y = i ? b(i, {
180
+ const b = i ? y(i, {
182
181
  price: a
183
182
  }) : null;
184
183
  return /* @__PURE__ */ n.createElement(Y, {
185
184
  value: r
186
- }, /* @__PURE__ */ n.createElement(J, {
185
+ }, /* @__PURE__ */ n.createElement(Q, {
187
186
  className: t,
188
187
  ref: h
189
- }, /* @__PURE__ */ n.createElement(n.Fragment, null, c && p, y, !c && p)));
188
+ }, /* @__PURE__ */ n.createElement(n.Fragment, null, c && p, b, !c && p)));
190
189
  }, je = ({ className: e, ...t }) => {
191
- const { price: o } = t, { currency: r, regionalFormat: a } = j(), { value: u } = W({
190
+ const { price: o } = t, { currency: r, regionalFormat: a } = j(), { value: u } = Z({
192
191
  amount: o,
193
192
  currency: r == null ? void 0 : r.code,
194
193
  locale: a
@@ -196,16 +195,16 @@ const s = ({ children: e }) => {
196
195
  return /* @__PURE__ */ n.createElement("span", {
197
196
  className: e
198
197
  }, u);
199
- }, ke = ({ className: e }) => {
198
+ }, qe = ({ className: e }) => {
200
199
  const { currency: t } = j();
201
200
  return /* @__PURE__ */ n.createElement("span", {
202
201
  className: e
203
202
  }, (t == null ? void 0 : t.sign) || (t == null ? void 0 : t.code) || "");
204
203
  };
205
- S.Value = je;
206
- S.Currency = ke;
204
+ v.Value = je;
205
+ v.Currency = qe;
207
206
  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(), I = E(e, R.Currency), A = E(e, R.Value), g = D((N) => {
207
+ const { customAmount: r, onCustomAmountInputChange: a, currency: u, t: m, placeholder: f, customAmountProductId: i, onFocusCustomInput: p } = o, { disabled: c, hasError: h } = L(), { labelId: b, prefixId: O } = B(), I = E(e, R.Currency), A = E(e, R.Value), g = D((N) => {
209
208
  a({
210
209
  target: {
211
210
  value: N
@@ -219,7 +218,7 @@ const R = ({ children: e, className: t, ...o }) => {
219
218
  p
220
219
  ]);
221
220
  return /* @__PURE__ */ n.createElement(le, {
222
- "aria-labelledby": `${y} ${O}`,
221
+ "aria-labelledby": `${b} ${O}`,
223
222
  value: r,
224
223
  onChange: g,
225
224
  onFocus: d,
@@ -229,22 +228,22 @@ const R = ({ children: e, className: t, ...o }) => {
229
228
  className: t,
230
229
  isDisabled: c,
231
230
  isInvalid: h
232
- }, r && u && I ? b(I, {
231
+ }, r && u && I ? y(I, {
233
232
  currency: u,
234
233
  t: m
235
- }) : null, A ? b(A, {
234
+ }) : null, A ? y(A, {
236
235
  placeholder: f,
237
236
  customAmountProductId: i
238
237
  }) : null));
239
- }, qe = ({ className: e, ...t }) => {
238
+ }, we = ({ className: e, ...t }) => {
240
239
  const { currency: o, t: r } = t, { prefixId: a } = B();
241
240
  return /* @__PURE__ */ n.createElement("span", {
242
241
  id: a,
243
242
  "aria-hidden": !1,
244
- "aria-label": he(r, o),
243
+ "aria-label": Ne(r, o),
245
244
  className: e
246
245
  }, (o == null ? void 0 : o.sign) || (o == null ? void 0 : o.code) || "");
247
- }, we = ({ className: e, ...t }) => {
246
+ }, He = ({ className: e, ...t }) => {
248
247
  const { placeholder: o, customAmountProductId: r } = t, { ariaDescribedBy: a, labelId: u, prefixId: m } = B();
249
248
  return /* @__PURE__ */ n.createElement(ce, {
250
249
  id: r,
@@ -256,44 +255,44 @@ const R = ({ children: e, className: t, ...o }) => {
256
255
  className: e
257
256
  });
258
257
  };
259
- R.Currency = qe;
260
- R.Value = we;
261
- H.Option = S;
262
- s.Label = Ie;
258
+ R.Currency = we;
259
+ R.Value = He;
260
+ k.Option = v;
261
+ s.Label = be;
263
262
  s.Control = Be;
264
- s.Options = H;
263
+ s.Options = k;
265
264
  s.OtherInput = R;
266
- s.Description = de;
267
- s.Error = fe;
268
- const He = "_control_1fjsf_1", Ue = "_options_1fjsf_7", $e = "_option_1fjsf_7", Ve = "_optionHover_1fjsf_44", Ge = "_optionSelected_1fjsf_44", Ye = "_optionCurrency_1fjsf_94", Je = "_otherInput_1fjsf_98", Qe = "_otherInputCurrency_1fjsf_117", _ = {
269
- control: He,
265
+ s.Description = Oe;
266
+ s.Error = _e;
267
+ const ke = "_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
+ control: ke,
270
269
  options: Ue,
271
270
  option: $e,
272
271
  optionHover: Ve,
273
272
  optionSelected: Ge,
274
273
  optionCurrency: Ye,
275
- otherInput: Je,
276
- otherInputCurrency: Qe
277
- }, We = ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(se, {
274
+ otherInput: Qe,
275
+ otherInputCurrency: We
276
+ }, Ze = ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(se, {
278
277
  content: e,
279
278
  locale: t
280
279
  }), ze = {
281
280
  base: _.option,
282
281
  selected: _.optionSelected,
283
282
  hover: _.optionHover
284
- }, Ke = () => {
285
- const e = Se(_.otherInput), t = ve({
286
- globalClasses: De,
283
+ }, Je = () => {
284
+ const e = ve(_.otherInput), t = Se({
285
+ globalClasses: he,
287
286
  moduleClasses: ze
288
287
  });
289
288
  return /* @__PURE__ */ n.createElement(s, null, /* @__PURE__ */ n.createElement(s.Label, {
290
- className: F(ye, v.label)
289
+ className: F(de, S.label)
291
290
  }, /* @__PURE__ */ n.createElement(s.Label.Required, {
292
- className: F(be, v.requiredMark)
291
+ className: F(fe, S.requiredMark)
293
292
  })), /* @__PURE__ */ n.createElement(s.Control, {
294
293
  className: F(_.control, G.group)
295
294
  }, /* @__PURE__ */ n.createElement(s.Options, {
296
- className: F(ge, G.options, _.options)
295
+ className: F(Ie, G.options, _.options)
297
296
  }, /* @__PURE__ */ n.createElement(s.Options.Option, {
298
297
  className: ({ isSelected: o, isHovered: r }) => t({
299
298
  isSelected: o,
@@ -306,13 +305,13 @@ const He = "_control_1fjsf_1", Ue = "_options_1fjsf_7", $e = "_option_1fjsf_7",
306
305
  }, /* @__PURE__ */ n.createElement(s.OtherInput.Currency, {
307
306
  className: _.otherInputCurrency
308
307
  }), /* @__PURE__ */ n.createElement(s.OtherInput.Value, {
309
- className: v.innerInput
308
+ className: S.innerInput
310
309
  }))), /* @__PURE__ */ n.createElement(s.Error, {
311
- className: F(Ne, v.error)
312
- }, /* @__PURE__ */ n.createElement(_e, null), /* @__PURE__ */ n.createElement(s.Error.Text, null)), /* @__PURE__ */ n.createElement(s.Description, {
313
- className: F(Fe, v.description)
314
- }, We));
315
- }, Et = () => /* @__PURE__ */ n.createElement(Ke, null);
310
+ className: F(Ce, S.error)
311
+ }, /* @__PURE__ */ n.createElement(De, null), /* @__PURE__ */ n.createElement(s.Error.Text, null)), /* @__PURE__ */ n.createElement(s.Description, {
312
+ className: F(Ee, S.description)
313
+ }, Ze));
314
+ }, Ct = () => /* @__PURE__ */ n.createElement(Je, null);
316
315
  export {
317
- Et as DonationRAC
316
+ Ct as DonationRAC
318
317
  };
@@ -1,23 +1,23 @@
1
- import e, { useState as g, useCallback as b, useRef as A } from "react";
1
+ import e, { useState as b, useCallback as g, 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-DQauhsho.js";
4
+ import { b5 as f, b2 as O, b7 as G } from "./form-0jt4L5xo.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-D3-1L5sf.js";
7
- import { L as K } from "./field-label-headless-Du4ckIVy.js";
6
+ import { D as H, E as J } from "./field-error-headless-tsg9FQ-_.js";
7
+ import { L as K } from "./field-label-headless-CB8dEat8.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-B0jiPTmS.js";
9
+ import { u as X } from "./use-is-forced-open-dropdown-r5G_sZsO.js";
10
10
  const r = ({ children: n }) => {
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) => {
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: C, hasError: I } = f(), [L, h] = b(!1), p = X(l), [B, N] = b(null), P = a && u.some((c) => (c.value ?? c.label) === a) ? a : s || null, { labelId: S } = O(), T = g((c) => {
12
12
  o || t(typeof c == "string" ? c : null);
13
13
  }, [
14
14
  t,
15
15
  o
16
- ]), x = b((c) => L(c && !i && !o), [
16
+ ]), x = g((c) => h(c && !i && !o), [
17
17
  i,
18
18
  o
19
- ]), V = d(n, r.Label), k = d(n, r.Trigger), R = d(n, r.Options), q = d(n, r.Description), w = d(n, r.Error);
20
- return /* @__PURE__ */ e.createElement(h, {
19
+ ]), V = d(n, r.Label), R = d(n, r.Trigger), k = d(n, r.Options), q = d(n, r.Description), w = d(n, r.Error);
20
+ return /* @__PURE__ */ e.createElement(C, {
21
21
  fieldId: l,
22
22
  renderLabel: () => V,
23
23
  renderInput: () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", {
@@ -30,16 +30,16 @@ const r = ({ children: n }) => {
30
30
  }, /* @__PURE__ */ e.createElement(U, {
31
31
  "aria-labelledby": S,
32
32
  value: P,
33
- isOpen: p || I && !i && !o,
33
+ isOpen: p || L && !i && !o,
34
34
  onOpenChange: p ? void 0 : x,
35
35
  onChange: T,
36
36
  isDisabled: i,
37
- isInvalid: C,
37
+ isInvalid: I,
38
38
  isRequired: v,
39
39
  placeholder: m,
40
40
  onBlur: y,
41
41
  onFocus: D
42
- }, k, F(R, {
42
+ }, R, F(k, {
43
43
  isForcedOpen: p
44
44
  })))),
45
45
  renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, w, q)
@@ -1,13 +1,13 @@
1
1
  import { RicosViewer as m } from "@wix/ricos/viewer";
2
2
  import t from "classnames";
3
3
  import e from "react";
4
- import { D as r } from "./dropdown-field-headless-CBaqlNZi.js";
4
+ import { D as r } from "./dropdown-field-headless-DhzRAMcM.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-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";
9
+ import { H as i, T as p, t as E, J as _, u as R, p as D } from "./form-0jt4L5xo.js";
10
+ import { u as O } from "./use-dropdown-option-class-name-McG3ayOT.js";
11
11
  const S = ({ content: a, locale: s }) => /* @__PURE__ */ e.createElement(m, {
12
12
  content: a,
13
13
  locale: s
@@ -16,9 +16,9 @@ const S = ({ content: a, locale: s }) => /* @__PURE__ */ e.createElement(m, {
16
16
  return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
17
17
  className: t(i, o.label)
18
18
  }, /* @__PURE__ */ e.createElement(r.Label.Required, {
19
- className: t(E, o.requiredMark)
19
+ className: t(p, o.requiredMark)
20
20
  })), /* @__PURE__ */ e.createElement(r.Trigger, {
21
- className: t(p, o.input, o.dropdownTrigger)
21
+ className: t(E, o.input, o.dropdownTrigger)
22
22
  }, /* @__PURE__ */ e.createElement(n, {
23
23
  className: o.dropdownIcon
24
24
  })), /* @__PURE__ */ e.createElement(r.Options, {
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { D as r } from "./dropdown-field-rac-CCAGSMm3.js";
2
+ import { D as r } from "./dropdown-field-rac-DXyY5we-.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-CyaFOloE.js";
2
+ import { M as r } from "./multiline-address-field-rac-DtZ1NTfD.js";
3
3
  const l = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  l as EcomAddressRAC
@@ -1,6 +1,6 @@
1
- import o, { useMemo as a } from "react";
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";
1
+ import o, { useMemo as n } from "react";
2
+ import { b5 as a, bf as c, a8 as i } from "./form-0jt4L5xo.js";
3
+ import { C as l } from "./checkbox-field-rac-DwEQLIaz.js";
4
4
  const p = (e) => ({
5
5
  nodes: [
6
6
  {
@@ -24,8 +24,8 @@ const p = (e) => ({
24
24
  id: "8k8yy2"
25
25
  }
26
26
  ]
27
- }), b = () => {
28
- const e = n(), { t } = c(), r = a(() => p(t), [
27
+ }), u = () => {
28
+ const e = a(), { t } = c(), r = n(() => p(t), [
29
29
  t
30
30
  ]), s = {
31
31
  ...e,
@@ -38,5 +38,5 @@ const p = (e) => ({
38
38
  }, /* @__PURE__ */ o.createElement(l, null));
39
39
  };
40
40
  export {
41
- b as EcomSubscriptionCheckboxRAC
41
+ u as EcomSubscriptionCheckboxRAC
42
42
  };