@wix/form-elements 1.82.0 → 1.83.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 (118) hide show
  1. package/dist/component/{appointment-rac-DmwbqZse.js → appointment-rac-ky2cE6hE.js} +6 -6
  2. package/dist/component/{bookings-address-rac-RCzVU87c.js → bookings-address-rac-Bxc6H9Pb.js} +1 -1
  3. package/dist/component/{bookings-email-rac-Df_Wte1_.js → bookings-email-rac-Dw1Xttdx.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-BmdRGYxF.js → bookings-first-name-rac-dgHOrJaJ.js} +1 -1
  5. package/dist/component/{bookings-header-rac-DewQWtkZ.js → bookings-header-rac-Bl9RYGWo.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-DmmNBuqy.js → bookings-last-name-rac-BeqYpbZq.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-QskvFo0C.js → bookings-login-bar-rac-C1k6o0A5.js} +2 -2
  8. package/dist/component/{bookings-phone-rac-7wn8IXna.js → bookings-phone-rac-ByhaJrwE.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-B5nk0BlD.js → bookings-rich-text-rac-Mw5-ZiIn.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-BnVNfYWL.js → checkbox-field-rac-CMEI5t4Y.js} +7 -7
  11. package/dist/component/{checkbox-group-field-headless-Bx5Y-RMP.js → checkbox-group-field-headless-CP21R7_s.js} +3 -3
  12. package/dist/component/checkbox-group-field-rac-DGOZjSIY.js +42 -0
  13. package/dist/component/{checkbox-group-rac-B20t8dTB.js → checkbox-group-rac-CEGtshrl.js} +1 -1
  14. package/dist/component/{checkbox-indicator-module-classes-DqzGZQRQ.js → checkbox-indicator-module-classes-Bb3xB1ve.js} +1 -1
  15. package/dist/component/{checkbox-rac-ifC6qSE8.js → checkbox-rac-DCnRh1WF.js} +1 -1
  16. package/dist/component/{contacts-address-rac-XJRKvPlp.js → contacts-address-rac-CZb_5N5o.js} +1 -1
  17. package/dist/component/{contacts-birthdate-rac-CKYESrPO.js → contacts-birthdate-rac-DZlwSyp5.js} +1 -1
  18. package/dist/component/{contacts-company-rac-BXwEeb0p.js → contacts-company-rac-BNEF6LjB.js} +1 -1
  19. package/dist/component/{contacts-email-rac-D8Yspo_m.js → contacts-email-rac-CAgk_zfN.js} +1 -1
  20. package/dist/component/{contacts-first-name-rac-mvCGP1LJ.js → contacts-first-name-rac-DyTVcmrX.js} +1 -1
  21. package/dist/component/{contacts-last-name-rac-Clg9RXal.js → contacts-last-name-rac-DrFcDcGr.js} +1 -1
  22. package/dist/component/{contacts-phone-rac-qEwjhByI.js → contacts-phone-rac-UAPALlFx.js} +1 -1
  23. package/dist/component/{contacts-position-rac-Bh8fvf2M.js → contacts-position-rac-CJ1M4kJJ.js} +1 -1
  24. package/dist/component/{contacts-subscribe-rac-DEQ2XkZo.js → contacts-subscribe-rac-1cEd5s1l.js} +2 -2
  25. package/dist/component/{contacts-tax-id-rac-0DUZ4tJz.js → contacts-tax-id-rac-CqnO__fd.js} +1 -1
  26. package/dist/component/{date-availability-2ek2RtXx.js → date-availability-COM2EaRy.js} +1 -1
  27. package/dist/component/{date-input-field-rac-Bp4SQB-t.js → date-input-field-rac-CuuWbw42.js} +80 -79
  28. package/dist/component/{date-input-rac-CYsJcMe5.js → date-input-rac-DfVmj9Gc.js} +1 -1
  29. package/dist/component/{date-picker-field-rac-BGQvnSYI.js → date-picker-field-rac-BFCZik9T.js} +6 -6
  30. package/dist/component/{date-picker-rac-BVncggYR.js → date-picker-rac-C2vajJpb.js} +1 -1
  31. package/dist/component/{date-time-input-field-rac-B1mggelc.js → date-time-input-field-rac-B7ne2emo.js} +127 -126
  32. package/dist/component/{date-time-input-rac-DzdCno0L.js → date-time-input-rac-D4FEieQz.js} +1 -1
  33. package/dist/component/{dext-checkbox-group-rac-CNCpeolD.js → dext-checkbox-group-rac-BDBBTNNo.js} +2 -2
  34. package/dist/component/{dext-checkbox-rac-BYDQ58Mo.js → dext-checkbox-rac-DAAhNboR.js} +1 -1
  35. package/dist/component/{dext-date-picker-rac-aYYk8Nrl.js → dext-date-picker-rac-me7XbR5z.js} +1 -1
  36. package/dist/component/{dext-date-time-input-rac-v2v974p5.js → dext-date-time-input-rac-DLsUl2Eg.js} +1 -1
  37. package/dist/component/{dext-dropdown-rac-C846KZCe.js → dext-dropdown-rac-C3vVIRir.js} +1 -1
  38. package/dist/component/{dext-email-rac-izjbfME9.js → dext-email-rac-a8qXYTLP.js} +1 -1
  39. package/dist/component/{dext-number-input-rac-CnOFsD7l.js → dext-number-input-rac-DdDnL_fX.js} +1 -1
  40. package/dist/component/{dext-phone-rac-D8GMXD88.js → dext-phone-rac-ByaxbHpO.js} +1 -1
  41. package/dist/component/{dext-radio-group-rac-BtiyGCRh.js → dext-radio-group-rac-Bzubt7Uy.js} +2 -2
  42. package/dist/component/{dext-rating-input-rac-BHJ1kitb.js → dext-rating-input-rac-BZ1EvOkG.js} +1 -1
  43. package/dist/component/{dext-tags-rac-CvNjwS5R.js → dext-tags-rac-C_R89noV.js} +2 -2
  44. package/dist/component/{dext-text-area-rac-X5L0Q3sC.js → dext-text-area-rac-DRpYeQ-K.js} +1 -1
  45. package/dist/component/{dext-text-input-rac-swkyAJqC.js → dext-text-input-rac-D_RtbQQ-.js} +1 -1
  46. package/dist/component/{dext-url-input-rac-BYlXOAkz.js → dext-url-input-rac-BSSjSbIo.js} +1 -1
  47. package/dist/component/{donation-rac-CDWLBZZM.js → donation-rac-De0KyyGR.js} +92 -91
  48. package/dist/component/{dropdown-field-headless-JJzbZvps.js → dropdown-field-headless-DNhnTDlD.js} +3 -3
  49. package/dist/component/{dropdown-field-rac-BodpIQ9Q.js → dropdown-field-rac-Bq_FNv9a.js} +3 -3
  50. package/dist/component/{dropdown-rac-Bfbxxx9k.js → dropdown-rac-0UIyqF15.js} +1 -1
  51. package/dist/component/{ecom-address-rac-BCnsL5tr.js → ecom-address-rac-7IVbvs3J.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-CNSdI_ty.js → ecom-subscription-checkbox-rac-DilgIpiG.js} +3 -3
  53. package/dist/component/{email-input-field-rac-Btaa4O5T.js → email-input-field-rac-CHJ6RSGy.js} +83 -79
  54. package/dist/component/{events-repeater-rac-xBwqJddt.js → events-repeater-rac-v18FFLC7.js} +6 -6
  55. package/dist/component/{events-rsvp-rac-D90PwkHd.js → events-rsvp-rac-BpGLrxsf.js} +4 -4
  56. package/dist/component/{field-error-headless-BErhh9GG.js → field-error-headless-DAy-1oAQ.js} +1 -1
  57. package/dist/component/{field-label-headless-BGyK-5xW.js → field-label-headless-BWxHmO0c.js} +1 -1
  58. package/dist/component/field-rac.module-D06m9T9x.js +24 -0
  59. package/dist/component/{file-upload-rac-MxH3CVml.js → file-upload-rac-BfWN27JT.js} +5 -5
  60. package/dist/component/{fixed-payment-rac-DpBA9irF.js → fixed-payment-rac-Bha61SB4.js} +5 -5
  61. package/dist/component/{form-f0tqdMye.js → form-D0eeH0lX.js} +69 -69
  62. package/dist/component/{form-element-classes-jC8D0LnK.js → form-element-classes-Ct1UaxuQ.js} +38 -32
  63. package/dist/component/form.css +1 -1
  64. package/dist/component/form.js +1 -1
  65. package/dist/component/{header-field-rac-BXxFqu9u.js → header-field-rac-uNzfDMbv.js} +3 -3
  66. package/dist/component/{header-rac-BN70esac.js → header-rac-B91q4fHl.js} +1 -1
  67. package/dist/component/{image-choice-rac-DLBGIBXL.js → image-choice-rac-BKcnNGPp.js} +6 -6
  68. package/dist/component/{index-BvB-uE1H.js → index-BWHymomM.js} +2 -2
  69. package/dist/component/{index-DXLEHYlA.js → index-BvzLLTKc.js} +4 -4
  70. package/dist/component/{isObjectLike-BYOX5XY4.js → isObjectLike-D7Mkqoju.js} +1 -1
  71. package/dist/component/multiline-address-field-rac-Avd9Vlv1.js +1617 -0
  72. package/dist/component/{multiline-address-rac-D82Gbj3n.js → multiline-address-rac-BwQOoejw.js} +1 -1
  73. package/dist/component/number-input-field-rac-CRqPXDl0.js +93 -0
  74. package/dist/component/{number-input-rac-Bnsvb-SO.js → number-input-rac-0Y8K4e6K.js} +1 -1
  75. package/dist/component/password-rac-C7F6sEB3.js +143 -0
  76. package/dist/component/payment-input-rac-CTJr4QTK.js +141 -0
  77. package/dist/component/{phone-input-field-rac-Ce_wuE46.js → phone-input-field-rac-jjSmYCI1.js} +5 -5
  78. package/dist/component/{phone-rac-DslINtcH.js → phone-rac-BwSnmgYF.js} +1 -1
  79. package/dist/component/{product-list-rac-C4P_SOyG.js → product-list-rac-CTN2wvHE.js} +7 -7
  80. package/dist/component/{quiz-radio-group-rac-noy4fmD8.js → quiz-radio-group-rac-CZHEDJxr.js} +2 -2
  81. package/dist/component/{radio-button-module-classes-DXQ1UlmI.js → radio-button-module-classes-DCz6XS1X.js} +3 -3
  82. package/dist/component/radio-group-field-rac-60MF_9DO.js +48 -0
  83. package/dist/component/{radio-group-rac-CGHQFyJY.js → radio-group-rac-Dqo-Earp.js} +1 -1
  84. package/dist/component/{rating-input-field-rac-elaferlI.js → rating-input-field-rac-CzWTwWT8.js} +6 -6
  85. package/dist/component/{rating-input-rac-fnOtTKN8.js → rating-input-rac-Nq4tll2Z.js} +1 -1
  86. package/dist/component/{rich-content-rac.module-DbwuwQeo.js → rich-content-rac.module-sUUSbcSy.js} +1 -1
  87. package/dist/component/{rich-text-field-rac-DtcQC8zU.js → rich-text-field-rac-BvLfS4I5.js} +3 -3
  88. package/dist/component/{rich-text-rac-CuT97sby.js → rich-text-rac-BWkTbWk3.js} +1 -1
  89. package/dist/component/{service-dropdown-rac-rk2tzikX.js → service-dropdown-rac-DZ3USe7_.js} +5 -5
  90. package/dist/component/{services-multi-choice-rac-BMQyF_xs.js → services-multi-choice-rac-D-og7fMo.js} +7 -7
  91. package/dist/component/{signature-rac-DeV9C6ta.js → signature-rac-D3c4fnvN.js} +5 -5
  92. package/dist/component/{submit-button-rac-BpN-FYtM.js → submit-button-rac-Dn_BGt1n.js} +2 -2
  93. package/dist/component/tags-field-rac-DXmZBcpO.js +218 -0
  94. package/dist/component/{tags-rac-Dabz4jHd.js → tags-rac-CoXWx42D.js} +1 -1
  95. package/dist/component/text-area-field-rac-Cy0Mr29Z.js +73 -0
  96. package/dist/component/{text-area-rac-CDLF-_56.js → text-area-rac-C3Mjmgpa.js} +1 -1
  97. package/dist/component/text-input-field-rac-D1TB9B_M.js +28 -0
  98. package/dist/component/{text-input-headless-BwVLU9cp.js → text-input-headless-BUa59Rgn.js} +3 -3
  99. package/dist/component/{text-input-rac-CoGTzfo1.js → text-input-rac-BQ3Z9ws4.js} +1 -1
  100. package/dist/component/{time-input-rac-DQDupKTA.js → time-input-rac-Wi0oD5YF.js} +5 -5
  101. package/dist/component/url-input-field-rac-DINXfZdf.js +75 -0
  102. package/dist/component/{url-input-rac-_d6XRdKX.js → url-input-rac-Ch9eTIF_.js} +1 -1
  103. package/dist/component/use-element-state-class-name-j8W1zbdG.js +20 -0
  104. package/dist/component/{use-service-options-base-CRgxxz7b.js → use-service-options-base-BJZhzDyO.js} +1 -1
  105. package/dist/component/use-text-input-class-name-8gMUWeCb.js +24 -0
  106. package/package.json +2 -2
  107. package/dist/component/checkbox-group-field-rac-CZW28rj5.js +0 -41
  108. package/dist/component/field-rac.module-ColNPUt0.js +0 -23
  109. package/dist/component/multiline-address-field-rac-fcQYnPlO.js +0 -1613
  110. package/dist/component/number-input-field-rac-B0-4Rz3w.js +0 -89
  111. package/dist/component/password-rac-BdBjFa8y.js +0 -142
  112. package/dist/component/payment-input-rac-DkAGOvaF.js +0 -137
  113. package/dist/component/radio-group-field-rac-CYBDq7R1.js +0 -47
  114. package/dist/component/tags-field-rac-ByC9DnyH.js +0 -217
  115. package/dist/component/text-area-field-rac-CtSa8XW_.js +0 -69
  116. package/dist/component/text-input-field-rac-C6fQYKhI.js +0 -24
  117. package/dist/component/url-input-field-rac-4T8gcMHH.js +0 -71
  118. package/dist/component/use-element-state-class-name-BqmaTba3.js +0 -15
@@ -1,6 +1,6 @@
1
1
  import r from "react";
2
- import { ai as e, h as o } from "./form-f0tqdMye.js";
3
- import { T as s } from "./tags-field-rac-ByC9DnyH.js";
2
+ import { ai as e, h as o } from "./form-D0eeH0lX.js";
3
+ import { T as s } from "./tags-field-rac-DXmZBcpO.js";
4
4
  import { b as a } from "./default-limits-D7qVv_Hv.js";
5
5
  const l = () => {
6
6
  const t = {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as t } from "./text-area-field-rac-CtSa8XW_.js";
2
+ import { T as t } from "./text-area-field-rac-Cy0Mr29Z.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  a as DextTextAreaRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-C6fQYKhI.js";
2
+ import { T as e } from "./text-input-field-rac-D1TB9B_M.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as DextTextInputRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { U as r } from "./url-input-field-rac-4T8gcMHH.js";
2
+ import { U as r } from "./url-input-field-rac-DINXfZdf.js";
3
3
  const n = () => /* @__PURE__ */ t.createElement(r, null);
4
4
  export {
5
5
  n as DextUrlInputRAC
@@ -1,30 +1,31 @@
1
- import n, { useMemo as x, useCallback as S, useRef as oe } from "react";
1
+ import n, { useMemo as x, useCallback as F, useRef as oe } from "react";
2
2
  import { RicosViewer as re } from "@wix/ricos/viewer";
3
- import g from "classnames";
3
+ import D from "classnames";
4
4
  import { RadioGroup as se, RadioField as G, RadioButton as Y, TextField as ae, Group as le, Input as ie } from "react-aria-components";
5
5
  import { debounce as ce } from "ts-debounce";
6
- import { P as Q, ai as v, af as B, as as ue, ab as A, ak as me } from "./form-f0tqdMye.js";
6
+ import { P as Q, ai as L, af as B, as as ue, ab as A, ak as me } from "./form-D0eeH0lX.js";
7
7
  import { f, a as y } from "./find-child-C60k4CxG.js";
8
8
  import { a as W } from "./format-currency-BwShJ9vM.js";
9
- import { D as pe, E as de } from "./field-error-headless-BErhh9GG.js";
10
- import { L as Ie } from "./field-label-headless-BGyK-5xW.js";
11
- import { N as Ce } from "./options-layout-constants-DEfIEJWD.js";
9
+ import { D as pe, E as de } from "./field-error-headless-DAy-1oAQ.js";
10
+ import { L as Ce } from "./field-label-headless-BWxHmO0c.js";
11
+ import { N as Ie } from "./options-layout-constants-DEfIEJWD.js";
12
12
  import { a as Ee, b as fe } from "./numeric-input-utils-CuBMi4-a.js";
13
13
  import { g as Oe } from "./payment-field-utils-DobiK5Xh.js";
14
14
  import { u as he } from "./use-synced-display-value-DcAxdn3M.js";
15
15
  import { E as _e } from "./error-icon-hZxQ6DEy.js";
16
- import { s as D } from "./field-rac.module-ColNPUt0.js";
17
- import { y as be, O as ye, j as Ne, x as Fe, o as ge, i as De, k as Se } from "./form-element-classes-jC8D0LnK.js";
18
- import { o as Le } from "./options-rac.module-KM-VT_KY.js";
19
- import { u as Re } from "./use-element-state-class-name-BqmaTba3.js";
20
- function ve(e, t) {
16
+ import { s as S } from "./field-rac.module-D06m9T9x.js";
17
+ import { y as be, O as ye, j as Ne, o as ge, i as Fe, k as De } from "./form-element-classes-Ct1UaxuQ.js";
18
+ import { o as Se } from "./options-rac.module-KM-VT_KY.js";
19
+ import { u as Re } from "./use-element-state-class-name-j8W1zbdG.js";
20
+ import { u as ve } from "./use-text-input-class-name-8gMUWeCb.js";
21
+ function Le(e, t) {
21
22
  return e.reduce((o, r) => (o[r[t]] = r, o), {});
22
23
  }
23
24
  function Ae(e) {
24
- return ve(e, "id");
25
+ return Le(e, "id");
25
26
  }
26
27
  const je = 0.01;
27
- function Me(e) {
28
+ function Te(e) {
28
29
  var t;
29
30
  return ((t = e == null ? void 0 : e.fixedPriceOptions) == null ? void 0 : t.price) || "0";
30
31
  }
@@ -36,41 +37,41 @@ function z(e, t) {
36
37
  quantity: 1
37
38
  };
38
39
  }
39
- function Pe(e) {
40
+ function Me(e) {
40
41
  return e.find((t) => t.priceType === Q.DYNAMIC_PRICE);
41
42
  }
42
- function Te(e, t) {
43
+ function Pe(e, t) {
43
44
  return (e == null ? void 0 : e.productId) === (t == null ? void 0 : t.id) ? String((e == null ? void 0 : e.price) ?? "") : "";
44
45
  }
45
46
  function xe(e, t, o) {
46
47
  const r = (t == null ? void 0 : t.productId) === e ? void 0 : e, a = r ? o[r] : void 0;
47
48
  return a ? [
48
- z(a, Me(a))
49
+ z(a, Te(a))
49
50
  ] : [];
50
51
  }
51
52
  const s = ({ children: e }) => {
52
- const { id: t, value: o, onChange: r, disabled: a, required: m, onBlur: p, onFocus: h, validation: c, addOther: u, addOtherPlaceholder: i, FieldLayout: I, hasError: O } = v(), { labelId: _ } = B(), { t: C } = ue(), { currency: j, regionalFormat: N } = A(), d = o == null ? void 0 : o[0], F = x(() => {
53
- var E, T;
54
- return ((T = (E = c == null ? void 0 : c.predefined) == null ? void 0 : E.paymentOptions) == null ? void 0 : T.products) || [];
53
+ const { id: t, value: o, onChange: r, disabled: a, required: m, onBlur: p, onFocus: h, validation: c, addOther: u, addOtherPlaceholder: i, FieldLayout: C, hasError: O } = L(), { labelId: _ } = B(), { t: I } = ue(), { currency: j, regionalFormat: N } = A(), d = o == null ? void 0 : o[0], g = x(() => {
54
+ var E, P;
55
+ return ((P = (E = c == null ? void 0 : c.predefined) == null ? void 0 : E.paymentOptions) == null ? void 0 : P.products) || [];
55
56
  }, [
56
57
  c
57
- ]), M = x(() => Ae(F), [
58
- F
59
- ]), l = x(() => u ? Pe(F) : void 0, [
60
- F,
58
+ ]), T = x(() => Ae(g), [
59
+ g
60
+ ]), l = x(() => u ? Me(g) : void 0, [
61
+ g,
61
62
  u
62
- ]), J = Te(d, l), [U, P] = he({
63
+ ]), J = Pe(d, l), [k, M] = he({
63
64
  sourceValue: J,
64
65
  format: (E) => fe(String(E ?? ""), N),
65
66
  regionalFormat: N
66
- }), k = S((E) => {
67
- r(xe(E, d, M)), P("");
67
+ }), q = F((E) => {
68
+ r(xe(E, d, T)), M("");
68
69
  }, [
69
70
  r,
70
- M,
71
+ T,
71
72
  d,
72
- P
73
- ]), H = S((E) => {
73
+ M
74
+ ]), H = F((E) => {
74
75
  l && r(typeof E == "number" ? [
75
76
  z(l, String(E))
76
77
  ] : []);
@@ -79,52 +80,52 @@ const s = ({ children: e }) => {
79
80
  l
80
81
  ]), $ = x(() => ce(H, 500), [
81
82
  H
82
- ]), K = S((E) => {
83
+ ]), K = F((E) => {
83
84
  (d == null ? void 0 : d.productId) !== (l == null ? void 0 : l.id) && r(void 0);
84
- const { validInput: T, validNumber: ne } = Ee(E.target.value, je, U, N);
85
- P(T), $(ne);
85
+ const { validInput: P, validNumber: ne } = Ee(E.target.value, je, k, N);
86
+ M(P), $(ne);
86
87
  }, [
87
88
  N,
88
89
  r,
89
90
  d,
90
91
  l,
91
- U,
92
+ k,
92
93
  $,
93
- P
94
- ]), q = (d == null ? void 0 : d.productId) || null, X = S(() => {
95
- l != null && l.id && q !== l.id && k(l.id);
94
+ M
95
+ ]), w = (d == null ? void 0 : d.productId) || null, X = F(() => {
96
+ l != null && l.id && w !== l.id && q(l.id);
96
97
  }, [
97
98
  l == null ? void 0 : l.id,
98
- q,
99
- k
99
+ w,
100
+ q
100
101
  ]), Z = f(e, s.Label), V = f(e, s.Control), ee = f(e, s.Description), te = f(e, s.Error);
101
- return /* @__PURE__ */ n.createElement(I, {
102
+ return /* @__PURE__ */ n.createElement(C, {
102
103
  fieldId: t,
103
104
  renderLabel: () => Z,
104
105
  renderInput: () => /* @__PURE__ */ n.createElement(se, {
105
106
  "aria-labelledby": _,
106
- value: q,
107
- onChange: k,
107
+ value: w,
108
+ onChange: q,
108
109
  isDisabled: a,
109
110
  isInvalid: O,
110
111
  isRequired: m,
111
112
  onBlur: p,
112
113
  onFocus: h
113
114
  }, V ? y(V, {
114
- productsById: M,
115
+ productsById: T,
115
116
  addOther: u,
116
- customAmount: U,
117
+ customAmount: k,
117
118
  onCustomAmountInputChange: K,
118
119
  currency: j,
119
- t: C,
120
- placeholder: i === void 0 ? C("donation.other-option.placeholder") : i,
120
+ t: I,
121
+ placeholder: i === void 0 ? I("donation.other-option.placeholder") : i,
121
122
  customAmountProductId: l == null ? void 0 : l.id,
122
123
  onFocusCustomInput: X
123
124
  }) : null),
124
125
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, te, ee)
125
126
  });
126
127
  }, Be = ({ children: e, className: t, ...o }) => {
127
- const { productsById: r, addOther: a, customAmount: m, onCustomAmountInputChange: p, currency: h, t: c, placeholder: u, customAmountProductId: i, onFocusCustomInput: I } = o, { hasError: O } = v(), _ = f(e, s.Options), C = f(e, s.OtherInput);
128
+ const { productsById: r, addOther: a, customAmount: m, onCustomAmountInputChange: p, currency: h, t: c, placeholder: u, customAmountProductId: i, onFocusCustomInput: C } = o, { hasError: O } = L(), _ = f(e, s.Options), I = f(e, s.OtherInput);
128
129
  return /* @__PURE__ */ n.createElement("div", {
129
130
  className: t,
130
131
  "data-invalid": O
@@ -145,38 +146,38 @@ const s = ({ children: e }) => {
145
146
  }
146
147
  }, /* @__PURE__ */ n.createElement(Y, {
147
148
  "aria-label": c("donation.other-option.label", "Custom amount")
148
- }, c("donation.other-option.label", "Custom amount"))), C && a ? y(C, {
149
+ }, c("donation.other-option.label", "Custom amount"))), I && a ? y(I, {
149
150
  customAmount: m,
150
151
  onCustomAmountInputChange: p,
151
152
  currency: h,
152
153
  t: c,
153
154
  placeholder: u,
154
155
  customAmountProductId: i,
155
- onFocusCustomInput: I
156
+ onFocusCustomInput: C
156
157
  }) : null);
157
- }, w = ({ children: e, className: t, ...o }) => {
158
- const { productsById: r } = o, { options: a, numberOfColumns: m } = v(), { isMobile: p } = A(), h = f(e, w.Option), c = p ? Ce.ONE : m;
158
+ }, U = ({ children: e, className: t, ...o }) => {
159
+ const { productsById: r } = o, { options: a, numberOfColumns: m } = L(), { isMobile: p } = A(), h = f(e, U.Option), c = p ? Ie.ONE : m;
159
160
  return /* @__PURE__ */ n.createElement("div", {
160
161
  className: t,
161
162
  "data-columns": c
162
163
  }, a.map((u) => {
163
164
  var O;
164
- const i = r[u.value], I = (O = i == null ? void 0 : i.fixedPriceOptions) == null ? void 0 : O.price;
165
+ const i = r[u.value], C = (O = i == null ? void 0 : i.fixedPriceOptions) == null ? void 0 : O.price;
165
166
  return y(h, {
166
167
  key: u.value,
167
168
  value: u.value,
168
- price: I || "0"
169
+ price: C || "0"
169
170
  });
170
171
  }));
171
- }, L = ({ children: e, className: t, ...o }) => {
172
- const { value: r, price: a } = o, { id: m } = v(), { currency: p, regionalFormat: h } = A(), c = f(e, L.Value), u = f(e, L.Currency), { isCurrencyPrefixed: i } = W({
172
+ }, R = ({ children: e, className: t, ...o }) => {
173
+ const { value: r, price: a } = o, { id: m } = L(), { currency: p, regionalFormat: h } = A(), c = f(e, R.Value), u = f(e, R.Currency), { isCurrencyPrefixed: i } = W({
173
174
  amount: a,
174
175
  currency: p == null ? void 0 : p.code,
175
176
  locale: h
176
- }), I = oe(null);
177
+ }), C = oe(null);
177
178
  me(() => {
178
- var _, C;
179
- (C = (_ = I.current) == null ? void 0 : _.querySelector("input")) == null || C.focus();
179
+ var _, I;
180
+ (I = (_ = C.current) == null ? void 0 : _.querySelector("input")) == null || I.focus();
180
181
  }, m);
181
182
  const O = c ? y(c, {
182
183
  price: a
@@ -185,9 +186,9 @@ const s = ({ children: e }) => {
185
186
  value: r
186
187
  }, /* @__PURE__ */ n.createElement(Y, {
187
188
  className: t,
188
- ref: I
189
+ ref: C
189
190
  }, /* @__PURE__ */ n.createElement(n.Fragment, null, i && u, O, !i && u)));
190
- }, Ue = ({ className: e, ...t }) => {
191
+ }, ke = ({ className: e, ...t }) => {
191
192
  const { price: o } = t, { currency: r, regionalFormat: a } = A(), { value: m } = W({
192
193
  amount: o,
193
194
  currency: r == null ? void 0 : r.code,
@@ -196,24 +197,24 @@ const s = ({ children: e }) => {
196
197
  return /* @__PURE__ */ n.createElement("span", {
197
198
  className: e
198
199
  }, m);
199
- }, ke = ({ className: e }) => {
200
+ }, qe = ({ className: e }) => {
200
201
  const { currency: t } = A();
201
202
  return /* @__PURE__ */ n.createElement("span", {
202
203
  className: e
203
204
  }, (t == null ? void 0 : t.sign) || (t == null ? void 0 : t.code) || "");
204
205
  };
205
- L.Value = Ue;
206
- L.Currency = ke;
207
- const R = ({ children: e, className: t, ...o }) => {
208
- const { customAmount: r, onCustomAmountInputChange: a, currency: m, t: p, placeholder: h, customAmountProductId: c, onFocusCustomInput: u } = o, { disabled: i, hasError: I } = v(), { labelId: O, prefixId: _ } = B(), C = f(e, R.Currency), j = f(e, R.Value), N = S((F) => {
206
+ R.Value = ke;
207
+ R.Currency = qe;
208
+ const v = ({ children: e, className: t, ...o }) => {
209
+ const { customAmount: r, onCustomAmountInputChange: a, currency: m, t: p, placeholder: h, customAmountProductId: c, onFocusCustomInput: u } = o, { disabled: i, hasError: C } = L(), { labelId: O, prefixId: _ } = B(), I = f(e, v.Currency), j = f(e, v.Value), N = F((g) => {
209
210
  a({
210
211
  target: {
211
- value: F
212
+ value: g
212
213
  }
213
214
  });
214
215
  }, [
215
216
  a
216
- ]), d = S(() => {
217
+ ]), d = F(() => {
217
218
  u();
218
219
  }, [
219
220
  u
@@ -224,19 +225,19 @@ const R = ({ children: e, className: t, ...o }) => {
224
225
  onChange: N,
225
226
  onFocus: d,
226
227
  isDisabled: i,
227
- isInvalid: I
228
+ isInvalid: C
228
229
  }, /* @__PURE__ */ n.createElement(le, {
229
230
  className: t,
230
231
  isDisabled: i,
231
- isInvalid: I
232
- }, r && m && C ? y(C, {
232
+ isInvalid: C
233
+ }, r && m && I ? y(I, {
233
234
  currency: m,
234
235
  t: p
235
236
  }) : null, j ? y(j, {
236
237
  placeholder: h,
237
238
  customAmountProductId: c
238
239
  }) : null));
239
- }, qe = ({ className: e, ...t }) => {
240
+ }, we = ({ className: e, ...t }) => {
240
241
  const { currency: o, t: r } = t, { prefixId: a } = B();
241
242
  return /* @__PURE__ */ n.createElement("span", {
242
243
  id: a,
@@ -244,7 +245,7 @@ const R = ({ children: e, className: t, ...o }) => {
244
245
  "aria-label": Oe(r, o),
245
246
  className: e
246
247
  }, (o == null ? void 0 : o.sign) || (o == null ? void 0 : o.code) || "");
247
- }, we = ({ className: e, ...t }) => {
248
+ }, Ue = ({ className: e, ...t }) => {
248
249
  const { placeholder: o, customAmountProductId: r } = t, { ariaDescribedBy: a, labelId: m, prefixId: p } = B();
249
250
  return /* @__PURE__ */ n.createElement(ie, {
250
251
  id: r,
@@ -256,13 +257,13 @@ const R = ({ children: e, className: t, ...o }) => {
256
257
  className: e
257
258
  });
258
259
  };
259
- R.Currency = qe;
260
- R.Value = we;
261
- w.Option = L;
262
- s.Label = Ie;
260
+ v.Currency = we;
261
+ v.Value = Ue;
262
+ U.Option = R;
263
+ s.Label = Ce;
263
264
  s.Control = Be;
264
- s.Options = w;
265
- s.OtherInput = R;
265
+ s.Options = U;
266
+ s.OtherInput = v;
266
267
  s.Description = pe;
267
268
  s.Error = de;
268
269
  const He = "_control_1jl2j_1", $e = "_options_1jl2j_7", Ve = "_option_1jl2j_7", Ge = "_optionHover_1jl2j_43", Ye = "_optionSelected_1jl2j_43", Qe = "_optionCurrency_1jl2j_93", We = "_otherInput_1jl2j_97", ze = "_otherInputCurrency_1jl2j_116", b = {
@@ -282,37 +283,37 @@ const He = "_control_1jl2j_1", $e = "_options_1jl2j_7", Ve = "_option_1jl2j_7",
282
283
  selected: b.optionSelected,
283
284
  hover: b.optionHover
284
285
  }, Xe = () => {
285
- const e = Re({
286
- globalClasses: Se,
286
+ const e = ve(b.otherInput), t = Re({
287
+ globalClasses: De,
287
288
  moduleClasses: Ke
288
289
  });
289
290
  return /* @__PURE__ */ n.createElement(s, null, /* @__PURE__ */ n.createElement(s.Label, {
290
- className: g(be, D.label)
291
+ className: D(be, S.label)
291
292
  }, /* @__PURE__ */ n.createElement(s.Label.Required, {
292
- className: g(ye, D.requiredMark)
293
+ className: D(ye, S.requiredMark)
293
294
  })), /* @__PURE__ */ n.createElement(s.Control, {
294
295
  className: b.control
295
296
  }, /* @__PURE__ */ n.createElement(s.Options, {
296
- className: g(Ne, Le.options, b.options)
297
+ className: D(Ne, Se.options, b.options)
297
298
  }, /* @__PURE__ */ n.createElement(s.Options.Option, {
298
- className: ({ isSelected: t, isHovered: o }) => e({
299
- isSelected: t,
300
- isHovered: o
299
+ className: ({ isSelected: o, isHovered: r }) => t({
300
+ isSelected: o,
301
+ isHovered: r
301
302
  })
302
303
  }, /* @__PURE__ */ n.createElement(s.Options.Option.Value, null), /* @__PURE__ */ n.createElement(s.Options.Option.Currency, {
303
304
  className: b.optionCurrency
304
305
  }))), /* @__PURE__ */ n.createElement(s.OtherInput, {
305
- className: g(Fe, D.input, b.otherInput)
306
+ className: e
306
307
  }, /* @__PURE__ */ n.createElement(s.OtherInput.Currency, {
307
308
  className: b.otherInputCurrency
308
309
  }), /* @__PURE__ */ n.createElement(s.OtherInput.Value, {
309
- className: D.innerInput
310
+ className: S.innerInput
310
311
  }))), /* @__PURE__ */ n.createElement(s.Error, {
311
- className: g(ge, D.error)
312
+ className: D(ge, S.error)
312
313
  }, /* @__PURE__ */ n.createElement(_e, null), /* @__PURE__ */ n.createElement(s.Error.Text, null)), /* @__PURE__ */ n.createElement(s.Description, {
313
- className: g(De, D.description)
314
+ className: D(Fe, S.description)
314
315
  }, Je));
315
- }, Ot = () => /* @__PURE__ */ n.createElement(Xe, null);
316
+ }, ht = () => /* @__PURE__ */ n.createElement(Xe, null);
316
317
  export {
317
- Ot as DonationRAC
318
+ ht as DonationRAC
318
319
  };
@@ -1,10 +1,10 @@
1
1
  import e, { useState as E, useCallback as g, useRef as q } from "react";
2
2
  import { UNSAFE_PortalProvider as A } from "react-aria";
3
3
  import { Select as w, SelectValue as M, ListBox as U, ListBoxItem as _ } from "react-aria-components";
4
- import { ai as p, af as b, ak as j } from "./form-f0tqdMye.js";
4
+ import { ai as p, af as b, ak as j } from "./form-D0eeH0lX.js";
5
5
  import { f as d, a as z } from "./find-child-C60k4CxG.js";
6
- import { D as G, E as H } from "./field-error-headless-BErhh9GG.js";
7
- import { L as J } from "./field-label-headless-BGyK-5xW.js";
6
+ import { D as G, E as H } from "./field-error-headless-DAy-1oAQ.js";
7
+ import { L as J } from "./field-label-headless-BWxHmO0c.js";
8
8
  import { S as K, N as Q } from "./non-modal-popover-DtIMXHbe.js";
9
9
  const n = ({ children: t }) => {
10
10
  const { id: o, value: r, defaultValue: l, options: a = [], readOnly: s, onChange: u, placeholder: m, disabled: i, required: v, onBlur: O, onFocus: y, FieldLayout: F, hasError: C } = p(), [D, L] = E(!1), [h, I] = E(null), B = r && a.some((c) => (c.value ?? c.label) === r) ? r : l || null, { labelId: N } = b(), P = g((c) => {
@@ -1,12 +1,12 @@
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 o } from "./dropdown-field-headless-JJzbZvps.js";
4
+ import { D as o } from "./dropdown-field-headless-DNhnTDlD.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 r } from "./field-rac.module-ColNPUt0.js";
9
- import { y as i, O as E, x as p, A as _, o as S, i as O } from "./form-element-classes-jC8D0LnK.js";
8
+ import { s as r } from "./field-rac.module-D06m9T9x.js";
9
+ import { y as i, O as E, x as p, A as _, o as S, i as O } from "./form-element-classes-Ct1UaxuQ.js";
10
10
  const R = ({ content: a, locale: s }) => /* @__PURE__ */ e.createElement(m, {
11
11
  content: a,
12
12
  locale: s
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { D as r } from "./dropdown-field-rac-BodpIQ9Q.js";
2
+ import { D as r } from "./dropdown-field-rac-Bq_FNv9a.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-fcQYnPlO.js";
2
+ import { M as r } from "./multiline-address-field-rac-Avd9Vlv1.js";
3
3
  const l = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  l as EcomAddressRAC
@@ -1,7 +1,7 @@
1
1
  import o, { useMemo as a } from "react";
2
- import { ai as n, as as c, h as i } from "./form-f0tqdMye.js";
3
- import { C } from "./checkbox-field-rac-BnVNfYWL.js";
4
- import { m as l, n as m, l as p } from "./form-element-classes-jC8D0LnK.js";
2
+ import { ai as n, as as c, h as i } from "./form-D0eeH0lX.js";
3
+ import { C } from "./checkbox-field-rac-CMEI5t4Y.js";
4
+ import { m as l, n as m, l as p } from "./form-element-classes-Ct1UaxuQ.js";
5
5
  const _ = (e) => ({
6
6
  nodes: [
7
7
  {