@wix/form-elements 1.145.0 → 1.147.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-De-uH9rz.js → appointment-rac-BG5-bIZU.js} +98 -98
  2. package/dist/component/{bookings-address-rac-DB6QCMQJ.js → bookings-address-rac-8e8PqKsp.js} +1 -1
  3. package/dist/component/{bookings-email-rac-g6ZdB_BO.js → bookings-email-rac-CtlnU8ws.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DQgL_VHl.js → bookings-first-name-rac-CrivNlXM.js} +1 -1
  5. package/dist/component/{bookings-header-rac-DAnIm-Oq.js → bookings-header-rac-DWDAjfqq.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-D62jNdDb.js → bookings-last-name-rac-qAthWem2.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-5z8HfBhU.js → bookings-login-bar-rac-BNyUDqlM.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-D0gu-_wy.js → bookings-phone-rac-Tc39XLr7.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-b4J1HcdI.js → bookings-rich-text-rac-CPNaPtFK.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CmRRc9Dz.js → checkbox-field-rac-DEa78Tpf.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-CB8yAfMe.js → checkbox-group-field-headless-BxBaMg29.js} +68 -68
  12. package/dist/component/{checkbox-group-field-rac-C5gRZRTd.js → checkbox-group-field-rac-CRRP03Qk.js} +7 -7
  13. package/dist/component/{checkbox-group-rac-DNDF1Irh.js → checkbox-group-rac-TOofMGl3.js} +1 -1
  14. package/dist/component/{checkbox-rac-B9vztGBU.js → checkbox-rac-CHMHr8Ry.js} +1 -1
  15. package/dist/component/{contacts-address-rac-CKZeSncj.js → contacts-address-rac-Bc5yDvTL.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BbpNNQgF.js → contacts-birthdate-rac-Ubtg5ncv.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BX2KT201.js → contacts-company-rac-BksH9IoV.js} +1 -1
  18. package/dist/component/{contacts-email-rac-5Irzx1mA.js → contacts-email-rac-DDPEtMAm.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-CxKp8_2u.js → contacts-first-name-rac-DUlCvEdx.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BDCbSv5I.js → contacts-last-name-rac-BikqNgUr.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BM_PV_uH.js → contacts-phone-rac-B4OEgM_8.js} +1 -1
  22. package/dist/component/{contacts-position-rac-1aqthQSi.js → contacts-position-rac-BfybzySV.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-CdqXs4kp.js → contacts-subscribe-rac-CMHb33v1.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-BKHpcDb6.js → contacts-tax-id-rac-C-qEqwO5.js} +1 -1
  25. package/dist/component/{date-availability-DmFFTX8p.js → date-availability-DZ3J3LLm.js} +1 -1
  26. package/dist/component/date-input-field-rac-DeL5vuE7.js +297 -0
  27. package/dist/component/{date-input-rac-BB6qZ16w.js → date-input-rac-Di6TQvFf.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-Ckwu2vD6.js → date-picker-field-rac-BcdpTkjV.js} +107 -103
  29. package/dist/component/{date-picker-rac-DSqzUAaH.js → date-picker-rac-Brne65gr.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-DO-iRdkW.js → date-time-input-field-rac-BtQfAxRp.js} +49 -49
  31. package/dist/component/{date-time-input-rac-smVCCxdY.js → date-time-input-rac-DM_HXiqV.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-B8bx3rT2.js → dext-checkbox-group-rac-WTVwhGG0.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-x8VLGRbc.js → dext-checkbox-rac-BR5YwmLQ.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-D2a9NXap.js → dext-date-picker-rac-DvDuRGYi.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-Cp5XjpGv.js → dext-date-time-input-rac-C6RgbaVv.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-nWgEvyxt.js → dext-dropdown-rac-CWjSdcZx.js} +1 -1
  37. package/dist/component/{dext-email-rac-CkX6ya8p.js → dext-email-rac-D-C1gVTq.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-CKT0MS1x.js → dext-number-input-rac-YKzZS2ZG.js} +1 -1
  39. package/dist/component/{dext-phone-rac-DM2E7zW_.js → dext-phone-rac-CFZlEH2a.js} +1 -1
  40. package/dist/component/dext-radio-group-rac-DiH0wIIl.js +18 -0
  41. package/dist/component/{dext-rating-input-rac-CKWNpFuu.js → dext-rating-input-rac-D0s-i0qO.js} +1 -1
  42. package/dist/component/{dext-tags-rac-6AskGGTp.js → dext-tags-rac-Br48OQQ5.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-ClGLD7sD.js → dext-text-area-rac-6jG8gJ7i.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-Blbk53d4.js → dext-text-input-rac-FAJTCXuf.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-BuitmJU0.js → dext-url-input-rac-BoMP8sQB.js} +1 -1
  46. package/dist/component/{donation-rac-DOifFCD7.js → donation-rac-DNi4p-v5.js} +69 -69
  47. package/dist/component/{dropdown-field-headless-m2P6s7X5.js → dropdown-field-headless-7SCC-xOC.js} +27 -27
  48. package/dist/component/{dropdown-field-rac-5e6wWJBl.js → dropdown-field-rac-CMzZh6J6.js} +8 -9
  49. package/dist/component/{dropdown-rac-BGxE9pJB.js → dropdown-rac-qeugpHXY.js} +1 -1
  50. package/dist/component/{ecom-address-rac-kbD9qW5Y.js → ecom-address-rac-D8b_L5md.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-CE-Yixnj.js → ecom-subscription-checkbox-rac-BnAuR9La.js} +5 -5
  52. package/dist/component/{email-input-field-rac-CbwcB33o.js → email-input-field-rac-CunXRyc5.js} +64 -62
  53. package/dist/component/{events-repeater-rac-CGhUscBr.js → events-repeater-rac-DMjyIOkB.js} +17 -17
  54. package/dist/component/{events-rsvp-rac-AQ33zPTe.js → events-rsvp-rac-BsuDPq2K.js} +8 -8
  55. package/dist/component/{field-error-headless-ClPQ03Jc.js → field-error-headless-E8WjFr_n.js} +6 -6
  56. package/dist/component/{field-label-headless-DhN8Lkuq.js → field-label-headless-BakLOu5E.js} +15 -15
  57. package/dist/component/{file-upload-rac-yTx1ZRhZ.js → file-upload-rac-Clu_c--0.js} +43 -43
  58. package/dist/component/{fixed-payment-rac-nlyxa9nB.js → fixed-payment-rac-CzAXxsb-.js} +12 -12
  59. package/dist/component/{form-D3iU18lh.js → form-DHAKwnLt.js} +3850 -3872
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +2 -2
  62. package/dist/component/{header-field-rac-DAEzcleV.js → header-field-rac-CwmVpz3r.js} +4 -4
  63. package/dist/component/{header-rac-CJZ4qMFg.js → header-rac-ahkGRjSy.js} +1 -1
  64. package/dist/component/{image-choice-rac-BFAMHwPh.js → image-choice-rac-BwxkkdUu.js} +17 -17
  65. package/dist/component/{index-DQW26cnX.js → index-BFi_n6B7.js} +2 -2
  66. package/dist/component/{index-W7GOFnq8.js → index-BQf23zZi.js} +91 -91
  67. package/dist/component/{isObjectLike-CE8eaxSI.js → isObjectLike-DHcMRYYH.js} +15 -15
  68. package/dist/component/{multiline-address-field-rac-FbJO0HFf.js → multiline-address-field-rac-C6xaqNOk.js} +68 -60
  69. package/dist/component/{multiline-address-rac-CI-vt6Pm.js → multiline-address-rac-DF4TFuDx.js} +1 -1
  70. package/dist/component/{number-input-field-rac-BRVAr7LL.js → number-input-field-rac-uVJ3SBv2.js} +27 -27
  71. package/dist/component/{number-input-rac-C8hCiJiu.js → number-input-rac-D6ERhrSM.js} +1 -1
  72. package/dist/component/{password-rac-Baslr6Ga.js → password-rac-CAiC0ZKl.js} +47 -46
  73. package/dist/component/{payment-input-rac-CfJSKxYz.js → payment-input-rac-Bu25xvby.js} +33 -32
  74. package/dist/component/{phone-input-field-rac-Dqh4CXdC.js → phone-input-field-rac-32qUvCsC.js} +46 -45
  75. package/dist/component/{phone-rac-DaLuGuxd.js → phone-rac-mNrpj30q.js} +1 -1
  76. package/dist/component/{product-list-rac-PNMwRBtL.js → product-list-rac-zHdM9rHw.js} +53 -53
  77. package/dist/component/{quiz-radio-group-rac-DN8vY-oM.js → quiz-radio-group-rac-BaSlT8w3.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-DlJi9a2f.js → radio-button-module-classes-BdWjkBlX.js} +9 -9
  79. package/dist/component/{radio-group-field-rac-C0tLXhl5.js → radio-group-field-rac-DI0UgTBr.js} +12 -12
  80. package/dist/component/{radio-group-rac-FAk7PYgP.js → radio-group-rac-D2ESG8J4.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-Cl1kH_uu.js → rating-input-field-rac-BYT2XqOK.js} +26 -26
  82. package/dist/component/{rating-input-rac-D9p-0pkI.js → rating-input-rac-D-5CmVAX.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-Dkr46kPC.js → rich-content-rac.module-Dp9Advo9.js} +8 -8
  84. package/dist/component/{rich-text-field-rac-DthhTvTp.js → rich-text-field-rac-COEUwoXQ.js} +4 -4
  85. package/dist/component/{rich-text-rac-DqZX4NeB.js → rich-text-rac-CQZLjBQ0.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-BMOGLU2Z.js → service-dropdown-rac-BTtJVFv8.js} +44 -45
  87. package/dist/component/{services-multi-choice-rac-DcdUewzJ.js → services-multi-choice-rac-hbY3g0Kb.js} +11 -11
  88. package/dist/component/{signature-rac-BRvN6kUW.js → signature-rac-CTCNclwL.js} +67 -67
  89. package/dist/component/{submit-button-rac-B70UC8eS.js → submit-button-rac-kKGeVgsG.js} +25 -25
  90. package/dist/component/{tags-field-rac-NpYyV8X4.js → tags-field-rac-CVf7oQr_.js} +35 -35
  91. package/dist/component/{tags-rac-BMEbpJ-z.js → tags-rac-DiX1_nTT.js} +1 -1
  92. package/dist/component/{text-area-field-rac-BLSrNwJ6.js → text-area-field-rac-IhBNXiDl.js} +22 -22
  93. package/dist/component/{text-area-rac-Cm7aAfIz.js → text-area-rac-DHevCtFF.js} +1 -1
  94. package/dist/component/{text-input-field-rac-BDqV7s0M.js → text-input-field-rac-Da3_wTdh.js} +5 -5
  95. package/dist/component/text-input-headless-DcZRRXCp.js +45 -0
  96. package/dist/component/{text-input-rac-Cc_SkCCS.js → text-input-rac-564LIZ1_.js} +1 -1
  97. package/dist/component/{time-input-rac-DDCiAFe2.js → time-input-rac-p-Nnsxp_.js} +54 -54
  98. package/dist/component/{url-input-field-rac-jen6pbz7.js → url-input-field-rac-DjrcpRtm.js} +27 -26
  99. package/dist/component/{url-input-rac-BWh6udtS.js → url-input-rac-B3brpyop.js} +1 -1
  100. package/dist/component/use-dropdown-trigger-class-name-BWTT7ltv.js +117 -0
  101. package/dist/component/{use-element-state-class-name-B1r_nXW1.js → use-element-state-class-name-CUZuhFvZ.js} +3 -3
  102. package/dist/component/{use-hoverable-input-class-name-B-FhrcyQ.js → use-hoverable-input-class-name-ugX8-g4E.js} +6 -6
  103. package/dist/component/use-is-forced-open-dropdown-DUZMvWpk.js +48 -0
  104. package/dist/component/{use-service-options-base-CTA_43F3.js → use-service-options-base-hqO9Ev38.js} +6 -6
  105. package/dist/component/use-text-input-class-name-wp9dzpEy.js +6 -0
  106. package/dist/form.d.ts +5 -0
  107. package/package.json +2 -2
  108. package/dist/component/date-input-field-rac-BnlAOn12.js +0 -290
  109. package/dist/component/dext-radio-group-rac-Czr5yY3K.js +0 -18
  110. package/dist/component/text-input-headless-B0jcwDev.js +0 -44
  111. package/dist/component/use-dropdown-option-class-name-OD8brKoy.js +0 -115
  112. package/dist/component/use-dropdown-trigger-class-name-BrkmG0ad.js +0 -40
  113. package/dist/component/use-text-input-class-name-BXuk3TK7.js +0 -6
@@ -3,20 +3,20 @@ import { RicosViewer as ne } from "@wix/ricos/viewer";
3
3
  import L from "classnames";
4
4
  import { ToggleButtonGroup as oe, TextField as re, Group as se, ToggleButton as ae, Input as le } from "react-aria-components";
5
5
  import { debounce as ce } from "ts-debounce";
6
- import { aD as K, bn as T, bk as P, bx as ie, bf as x, bp as ue, R as me, $ as pe, v as de, G as Ie, u as Ce, w as Ee } from "./form-D3iU18lh.js";
7
- import { f as O, a as D } from "./find-child-C60k4CxG.js";
6
+ import { aE as K, bo as T, bl as P, by as ie, bg as x, bq as ue, S as me, a0 as pe, w as de, H as Ie, v as Ce, x as Ee } from "./form-DHAKwnLt.js";
7
+ import { f as O, a as F } from "./find-child-C60k4CxG.js";
8
8
  import { a as Q } from "./format-currency-BwShJ9vM.js";
9
- import { D as fe, E as Oe } from "./field-error-headless-ClPQ03Jc.js";
10
- import { L as be } from "./field-label-headless-DhN8Lkuq.js";
11
- import { F as ye } from "./fieldset-headless-CD3fds9J.js";
9
+ import { D as fe, E as Oe } from "./field-error-headless-E8WjFr_n.js";
10
+ import { L as ye } from "./field-label-headless-BakLOu5E.js";
11
+ import { F as be } from "./fieldset-headless-CD3fds9J.js";
12
12
  import { a as _e, b as he } from "./numeric-input-utils-CuBMi4-a.js";
13
13
  import { g as Ne } from "./payment-field-utils-DobiK5Xh.js";
14
14
  import { u as ge } from "./use-synced-display-value-DcAxdn3M.js";
15
- import { E as De } from "./error-icon-hZxQ6DEy.js";
15
+ import { E as Fe } from "./error-icon-hZxQ6DEy.js";
16
16
  import { s as v } from "./field-rac.module-DfEb7pBp.js";
17
- import { o as Fe } from "./options-rac.module-_THNq6Qq.js";
18
- import { u as Se } from "./use-element-state-class-name-B1r_nXW1.js";
19
- import { u as Le } from "./use-text-input-class-name-BXuk3TK7.js";
17
+ import { o as De } from "./options-rac.module-_THNq6Qq.js";
18
+ import { u as Se } from "./use-element-state-class-name-CUZuhFvZ.js";
19
+ import { u as Le } from "./use-text-input-class-name-wp9dzpEy.js";
20
20
  function ve(e, t) {
21
21
  return e.reduce((o, r) => (o[r[t]] = r, o), {});
22
22
  }
@@ -43,21 +43,21 @@ function Be(e, t) {
43
43
  return (e == null ? void 0 : e.productId) === (t == null ? void 0 : t.id) ? String((e == null ? void 0 : e.price) ?? "") : "";
44
44
  }
45
45
  const s = ({ children: e }) => {
46
- const { id: t, value: o, onChange: r, required: l, onBlur: i, onFocus: C, validation: u, addOther: E, addOtherPlaceholder: p, FieldLayout: f } = T(), { inputId: c, labelId: d, ariaDescribedBy: y } = P(), { t: m } = ie(), { currency: g, regionalFormat: _ } = x(), b = o == null ? void 0 : o[0], F = q(() => {
46
+ const { id: t, value: o, onChange: r, required: l, onBlur: i, onFocus: C, validation: u, addOther: E, addOtherPlaceholder: p, FieldLayout: f } = T(), { inputId: c, labelId: d, ariaDescribedBy: b } = P(), { t: m } = ie(), { currency: g, regionalFormat: _ } = x(), y = o == null ? void 0 : o[0], D = q(() => {
47
47
  var I, h;
48
48
  return ((h = (I = u == null ? void 0 : u.predefined) == null ? void 0 : I.paymentOptions) == null ? void 0 : h.products) || [];
49
49
  }, [
50
50
  u
51
- ]), B = q(() => Re(F), [
52
- F
53
- ]), a = q(() => E ? Pe(F) : void 0, [
54
- F,
51
+ ]), B = q(() => Re(D), [
52
+ D
53
+ ]), a = q(() => E ? Pe(D) : void 0, [
54
+ D,
55
55
  E
56
- ]), W = Be(b, a), [V, M] = ge({
56
+ ]), W = Be(y, a), [H, M] = ge({
57
57
  sourceValue: W,
58
58
  format: (I) => he(String(I ?? ""), _),
59
59
  regionalFormat: _
60
- }), H = S((I) => {
60
+ }), V = S((I) => {
61
61
  const h = I === void 0 ? void 0 : B[I];
62
62
  r(h ? [
63
63
  Y(h, Te(h))
@@ -66,50 +66,50 @@ const s = ({ children: e }) => {
66
66
  r,
67
67
  B,
68
68
  M
69
- ]), U = S((I) => {
69
+ ]), k = S((I) => {
70
70
  a && r(typeof I == "number" ? [
71
71
  Y(a, String(I))
72
72
  ] : []);
73
73
  }, [
74
74
  r,
75
75
  a
76
- ]), G = q(() => ce(U, 500), [
77
- U
76
+ ]), w = q(() => ce(k, 500), [
77
+ k
78
78
  ]), j = S((I) => {
79
- (b == null ? void 0 : b.productId) !== (a == null ? void 0 : a.id) && r(void 0);
80
- const { validInput: h, validNumber: ee } = _e(I.target.value, Ae, V, _);
81
- M(h), G(ee);
79
+ (y == null ? void 0 : y.productId) !== (a == null ? void 0 : a.id) && r(void 0);
80
+ const { validInput: h, validNumber: ee } = _e(I.target.value, Ae, H, _);
81
+ M(h), w(ee);
82
82
  }, [
83
83
  _,
84
84
  r,
85
- b,
85
+ y,
86
86
  a,
87
- V,
88
- G,
87
+ H,
88
+ w,
89
89
  M
90
- ]), $ = (b == null ? void 0 : b.productId) || null, z = S(() => {
91
- a != null && a.id && $ !== a.id && H(a.id);
90
+ ]), U = (y == null ? void 0 : y.productId) || null, z = S(() => {
91
+ a != null && a.id && U !== a.id && V(a.id);
92
92
  }, [
93
93
  a == null ? void 0 : a.id,
94
- $,
95
- H
96
- ]), J = O(e, s.Label), w = O(e, s.Control), X = O(e, s.Description), Z = O(e, s.Error);
94
+ U,
95
+ V
96
+ ]), J = O(e, s.Label), G = O(e, s.Control), X = O(e, s.Description), Z = O(e, s.Error);
97
97
  return /* @__PURE__ */ n.createElement(f, {
98
98
  fieldId: t,
99
99
  renderLabel: () => J,
100
- renderInput: () => /* @__PURE__ */ n.createElement(ye, {
100
+ renderInput: () => /* @__PURE__ */ n.createElement(be, {
101
101
  id: c,
102
102
  ariaLabelledBy: d,
103
- ariaDescribedBy: y,
103
+ ariaDescribedBy: b,
104
104
  required: l,
105
105
  onBlur: i,
106
106
  onFocus: C
107
- }, w ? D(w, {
107
+ }, G ? F(G, {
108
108
  productsById: B,
109
- selectedValue: $,
110
- onSelectProduct: H,
109
+ selectedValue: U,
110
+ onSelectProduct: V,
111
111
  addOther: E,
112
- customAmount: V,
112
+ customAmount: H,
113
113
  onCustomAmountInputChange: j,
114
114
  currency: g,
115
115
  t: m,
@@ -120,25 +120,25 @@ const s = ({ children: e }) => {
120
120
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, Z, X)
121
121
  });
122
122
  }, Me = ({ children: e, className: t, ...o }) => {
123
- const { productsById: r, selectedValue: l, onSelectProduct: i, addOther: C, customAmount: u, onCustomAmountInputChange: E, currency: p, t: f, placeholder: c, customAmountProductId: d, onFocusCustomInput: y } = o, { hasError: m } = T(), g = O(e, s.Options), _ = O(e, s.OtherInput);
123
+ const { productsById: r, selectedValue: l, onSelectProduct: i, addOther: C, customAmount: u, onCustomAmountInputChange: E, currency: p, t: f, placeholder: c, customAmountProductId: d, onFocusCustomInput: b } = o, { hasError: m } = T(), g = O(e, s.Options), _ = O(e, s.OtherInput);
124
124
  return /* @__PURE__ */ n.createElement("div", {
125
125
  className: t,
126
126
  "data-invalid": m
127
- }, g ? D(g, {
127
+ }, g ? F(g, {
128
128
  productsById: r,
129
129
  selectedValue: l,
130
130
  onSelectProduct: i
131
- }) : null, _ && C ? D(_, {
131
+ }) : null, _ && C ? F(_, {
132
132
  customAmount: u,
133
133
  onCustomAmountInputChange: E,
134
134
  currency: p,
135
135
  t: f,
136
136
  placeholder: c,
137
137
  customAmountProductId: d,
138
- onFocusCustomInput: y
138
+ onFocusCustomInput: b
139
139
  }) : null);
140
- }, k = ({ children: e, className: t, ...o }) => {
141
- const { productsById: r, selectedValue: l, onSelectProduct: i } = o, { options: C, numberOfColumns: u, disabled: E } = T(), { labelId: p } = P(), f = O(e, k.Option);
140
+ }, $ = ({ children: e, className: t, ...o }) => {
141
+ const { productsById: r, selectedValue: l, onSelectProduct: i } = o, { options: C, numberOfColumns: u, disabled: E } = T(), { labelId: p } = P(), f = O(e, $.Option);
142
142
  return /* @__PURE__ */ n.createElement(oe, {
143
143
  className: t,
144
144
  "data-columns": u,
@@ -153,11 +153,11 @@ const s = ({ children: e }) => {
153
153
  isDisabled: E
154
154
  }, C.map((c) => {
155
155
  var m;
156
- const d = r[c.value], y = (m = d == null ? void 0 : d.fixedPriceOptions) == null ? void 0 : m.price;
157
- return D(f, {
156
+ const d = r[c.value], b = (m = d == null ? void 0 : d.fixedPriceOptions) == null ? void 0 : m.price;
157
+ return F(f, {
158
158
  key: c.value,
159
159
  value: c.value,
160
- price: y || "0"
160
+ price: b || "0"
161
161
  });
162
162
  }));
163
163
  }, R = ({ children: e, className: t, ...o }) => {
@@ -170,7 +170,7 @@ const s = ({ children: e }) => {
170
170
  var m;
171
171
  (m = d.current) == null || m.focus();
172
172
  }, i);
173
- const y = p ? D(p, {
173
+ const b = p ? F(p, {
174
174
  price: l
175
175
  }) : null;
176
176
  return /* @__PURE__ */ n.createElement(ae, {
@@ -178,7 +178,7 @@ const s = ({ children: e }) => {
178
178
  className: t,
179
179
  ref: d,
180
180
  "data-invalid": C || void 0
181
- }, /* @__PURE__ */ n.createElement(n.Fragment, null, c && f, y, !c && f));
181
+ }, /* @__PURE__ */ n.createElement(n.Fragment, null, c && f, b, !c && f));
182
182
  }, qe = ({ className: e, ...t }) => {
183
183
  const { price: o } = t, { currency: r, regionalFormat: l } = x(), { value: i } = Q({
184
184
  amount: o,
@@ -197,38 +197,38 @@ const s = ({ children: e }) => {
197
197
  R.Value = qe;
198
198
  R.Currency = xe;
199
199
  const A = ({ children: e, className: t, ...o }) => {
200
- const { customAmount: r, onCustomAmountInputChange: l, currency: i, t: C, placeholder: u, customAmountProductId: E, onFocusCustomInput: p } = o, { disabled: f, hasError: c } = T(), { labelId: d, prefixId: y } = P(), m = O(e, A.Currency), g = O(e, A.Value), _ = S((F) => {
200
+ const { customAmount: r, onCustomAmountInputChange: l, currency: i, t: C, placeholder: u, customAmountProductId: E, onFocusCustomInput: p } = o, { disabled: f, hasError: c } = T(), { labelId: d, prefixId: b } = P(), m = O(e, A.Currency), g = O(e, A.Value), _ = S((D) => {
201
201
  l({
202
202
  target: {
203
- value: F
203
+ value: D
204
204
  }
205
205
  });
206
206
  }, [
207
207
  l
208
- ]), b = S(() => {
208
+ ]), y = S(() => {
209
209
  p();
210
210
  }, [
211
211
  p
212
212
  ]);
213
213
  return /* @__PURE__ */ n.createElement(re, {
214
- "aria-labelledby": `${d} ${y}`,
214
+ "aria-labelledby": `${d} ${b}`,
215
215
  value: r,
216
216
  onChange: _,
217
- onFocus: b,
217
+ onFocus: y,
218
218
  isDisabled: f,
219
219
  isInvalid: c
220
220
  }, /* @__PURE__ */ n.createElement(se, {
221
221
  className: t,
222
222
  isDisabled: f,
223
223
  isInvalid: c
224
- }, r && i && m ? D(m, {
224
+ }, r && i && m ? F(m, {
225
225
  currency: i,
226
226
  t: C
227
- }) : null, g ? D(g, {
227
+ }) : null, g ? F(g, {
228
228
  placeholder: u,
229
229
  customAmountProductId: E
230
230
  }) : null));
231
- }, Ve = ({ className: e, ...t }) => {
231
+ }, He = ({ className: e, ...t }) => {
232
232
  const { currency: o, t: r } = t, { prefixId: l } = P();
233
233
  return /* @__PURE__ */ n.createElement("span", {
234
234
  id: l,
@@ -236,7 +236,7 @@ const A = ({ children: e, className: t, ...o }) => {
236
236
  "aria-label": Ne(r, o),
237
237
  className: e
238
238
  }, (o == null ? void 0 : o.sign) || (o == null ? void 0 : o.code) || "");
239
- }, He = ({ className: e, ...t }) => {
239
+ }, Ve = ({ className: e, ...t }) => {
240
240
  const { placeholder: o, customAmountProductId: r } = t, { ariaDescribedBy: l, labelId: i, prefixId: C } = P();
241
241
  return /* @__PURE__ */ n.createElement(le, {
242
242
  id: r,
@@ -248,21 +248,21 @@ const A = ({ children: e, className: t, ...o }) => {
248
248
  className: e
249
249
  });
250
250
  };
251
- A.Currency = Ve;
252
- A.Value = He;
253
- k.Option = R;
254
- s.Label = be;
251
+ A.Currency = He;
252
+ A.Value = Ve;
253
+ $.Option = R;
254
+ s.Label = ye;
255
255
  s.Control = Me;
256
- s.Options = k;
256
+ s.Options = $;
257
257
  s.OtherInput = A;
258
258
  s.Description = fe;
259
259
  s.Error = Oe;
260
- const $e = "_control_n5tqu_1", ke = "_option_n5tqu_7", Ue = "_optionHover_n5tqu_37", Ge = "_optionSelected_n5tqu_37", we = "_optionCurrency_n5tqu_87", Ye = "_otherInput_n5tqu_91", Ke = "_otherInputCurrency_n5tqu_110", N = {
261
- control: $e,
262
- option: ke,
263
- optionHover: Ue,
264
- optionSelected: Ge,
265
- optionCurrency: we,
260
+ const Ue = "_control_n5tqu_1", $e = "_option_n5tqu_7", ke = "_optionHover_n5tqu_37", we = "_optionSelected_n5tqu_37", Ge = "_optionCurrency_n5tqu_87", Ye = "_otherInput_n5tqu_91", Ke = "_otherInputCurrency_n5tqu_110", N = {
261
+ control: Ue,
262
+ option: $e,
263
+ optionHover: ke,
264
+ optionSelected: we,
265
+ optionCurrency: Ge,
266
266
  otherInput: Ye,
267
267
  otherInputCurrency: Ke
268
268
  }, Qe = ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(ne, {
@@ -284,7 +284,7 @@ const $e = "_control_n5tqu_1", ke = "_option_n5tqu_7", Ue = "_optionHover_n5tqu_
284
284
  })), /* @__PURE__ */ n.createElement(s.Control, {
285
285
  className: N.control
286
286
  }, /* @__PURE__ */ n.createElement(s.Options, {
287
- className: L(de, Fe.options, N.options)
287
+ className: L(de, De.options, N.options)
288
288
  }, /* @__PURE__ */ n.createElement(s.Options.Option, {
289
289
  className: t
290
290
  }, /* @__PURE__ */ n.createElement(s.Options.Option.Value, null), /* @__PURE__ */ n.createElement(s.Options.Option.Currency, {
@@ -297,7 +297,7 @@ const $e = "_control_n5tqu_1", ke = "_option_n5tqu_7", Ue = "_optionHover_n5tqu_
297
297
  className: v.innerInput
298
298
  }))), /* @__PURE__ */ n.createElement(s.Error, {
299
299
  className: L(Ie, v.error)
300
- }, /* @__PURE__ */ n.createElement(De, null), /* @__PURE__ */ n.createElement(s.Error.Text, null)), /* @__PURE__ */ n.createElement(s.Description, {
300
+ }, /* @__PURE__ */ n.createElement(Fe, null), /* @__PURE__ */ n.createElement(s.Error.Text, null)), /* @__PURE__ */ n.createElement(s.Description, {
301
301
  className: L(Ce, v.description)
302
302
  }, Qe));
303
303
  }, Ct = () => /* @__PURE__ */ n.createElement(je, null);
@@ -1,15 +1,15 @@
1
1
  import e, { useState as b, useCallback as g, useRef as _ } from "react";
2
- import { UNSAFE_PortalProvider as q } from "react-aria";
2
+ import { UNSAFE_PortalProvider as k } from "react-aria";
3
3
  import { Select as M, SelectValue as H, ListBoxItem as U } from "react-aria-components";
4
- import { bn as E, bk as O, bp as Y } from "./form-D3iU18lh.js";
4
+ import { bo as E, bl as O, bq as Y } from "./form-DHAKwnLt.js";
5
5
  import { f as d, a as F } from "./find-child-C60k4CxG.js";
6
- import { D as j, E as z } from "./field-error-headless-ClPQ03Jc.js";
7
- import { L as G } from "./field-label-headless-DhN8Lkuq.js";
6
+ import { D as j, E as z } from "./field-error-headless-E8WjFr_n.js";
7
+ import { L as G } from "./field-label-headless-BakLOu5E.js";
8
8
  import { E as J, S as K, N as Q } from "./non-modal-popover-D-u13tmp.js";
9
- import { a as W } from "./use-dropdown-trigger-class-name-BrkmG0ad.js";
10
- import { V as X } from "./use-dropdown-option-class-name-OD8brKoy.js";
9
+ import { a as W } from "./use-is-forced-open-dropdown-DUZMvWpk.js";
10
+ import { V as X } from "./use-dropdown-trigger-class-name-BWTT7ltv.js";
11
11
  const r = ({ children: n }) => {
12
- const { id: l, value: a, defaultValue: o, options: u = [], readOnly: s, onChange: t, placeholder: p, disabled: i, required: v, onBlur: L, onFocus: y, FieldLayout: C, hasError: D } = E(), [I, h] = b(!1), m = W(l), [P, S] = b(null), T = a && u.some((c) => (c.value ?? c.label) === a) ? a : o || null, { labelId: B } = O(), N = g((c) => {
12
+ const { id: l, value: o, defaultValue: a, options: u = [], readOnly: s, onChange: t, placeholder: m, disabled: i, required: v, onBlur: L, onFocus: y, FieldLayout: C, hasError: D } = E(), [I, h] = b(!1), p = W(l), [P, S] = b(null), T = o && u.some((c) => (c.value ?? c.label) === o) ? o : a || null, { labelId: B } = O(), N = g((c) => {
13
13
  s || t(typeof c == "string" ? c : null);
14
14
  }, [
15
15
  t,
@@ -17,7 +17,7 @@ const r = ({ children: n }) => {
17
17
  ]), V = g((c) => h(c && !i && !s), [
18
18
  i,
19
19
  s
20
- ]), R = d(n, r.Label), x = d(n, r.Trigger), k = d(n, r.Options), w = d(n, r.Description), A = d(n, r.Error);
20
+ ]), R = d(n, r.Label), x = d(n, r.Trigger), q = d(n, r.Options), w = d(n, r.Description), A = d(n, r.Error);
21
21
  return /* @__PURE__ */ e.createElement(C, {
22
22
  fieldId: l,
23
23
  renderLabel: () => R,
@@ -26,59 +26,59 @@ const r = ({ children: n }) => {
26
26
  style: {
27
27
  display: "contents"
28
28
  }
29
- }), /* @__PURE__ */ e.createElement(q, {
29
+ }), /* @__PURE__ */ e.createElement(k, {
30
30
  getContainer: () => P
31
31
  }, /* @__PURE__ */ e.createElement(M, {
32
32
  "aria-labelledby": B,
33
33
  value: T,
34
- isOpen: m || I && !i && !s,
35
- onOpenChange: m ? void 0 : V,
34
+ isOpen: p || I && !i && !s,
35
+ onOpenChange: p ? void 0 : V,
36
36
  onChange: N,
37
37
  isDisabled: i,
38
38
  isInvalid: D,
39
39
  isRequired: v,
40
- placeholder: p || J,
40
+ placeholder: m || J,
41
41
  onBlur: L,
42
42
  onFocus: y
43
- }, x, F(k, {
44
- isForcedOpen: m
43
+ }, x, F(q, {
44
+ isForcedOpen: p
45
45
  })))),
46
46
  renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, A, w)
47
47
  });
48
48
  }, Z = ({ children: n, className: l }) => {
49
- const { inputId: a, ariaDescribedBy: o } = O(), { id: u, hasError: s, isLoading: t } = E(), p = _(null);
49
+ const { inputId: o, ariaDescribedBy: a } = O(), { id: u, hasError: s, isLoading: t } = E(), m = _(null);
50
50
  return Y(() => {
51
51
  var i;
52
- (i = p.current) == null || i.focus();
52
+ (i = m.current) == null || i.focus();
53
53
  }, u), /* @__PURE__ */ e.createElement(K, {
54
- ref: p,
55
- id: a,
56
- "aria-describedby": o,
54
+ ref: m,
55
+ id: o,
56
+ "aria-describedby": a,
57
57
  className: l,
58
58
  "data-invalid": s || void 0,
59
59
  "data-loading": t || void 0
60
60
  }, /* @__PURE__ */ e.createElement(H, null), n);
61
- }, f = ({ children: n, className: l, ...a }) => {
62
- const { isForcedOpen: o } = a, { options: u = [] } = E(), s = d(n, f.Option);
61
+ }, f = ({ children: n, className: l, ...o }) => {
62
+ const { isForcedOpen: a } = o, { options: u = [] } = E(), s = d(n, f.Option);
63
63
  return /* @__PURE__ */ e.createElement(Q, {
64
64
  className: l,
65
65
  containerPadding: 0,
66
66
  offset: 0
67
67
  }, /* @__PURE__ */ e.createElement(X, {
68
- isForcedOpen: o,
69
- autoFocus: o ? !1 : void 0
68
+ isForcedOpen: a,
69
+ autoFocus: a ? !1 : void 0
70
70
  }, u.map((t) => F(s, {
71
71
  key: t.value ?? t.label,
72
72
  value: t.value ?? t.label,
73
73
  label: t.label
74
74
  }))));
75
75
  }, $ = ({ className: n, ...l }) => {
76
- const { value: a, label: o } = l;
76
+ const { value: o, label: a } = l;
77
77
  return /* @__PURE__ */ e.createElement(U, {
78
78
  className: n,
79
- id: a,
80
- textValue: o
81
- }, o);
79
+ id: o,
80
+ textValue: a
81
+ }, a);
82
82
  };
83
83
  f.Option = $;
84
84
  r.Label = G;
@@ -1,19 +1,18 @@
1
1
  import { RicosViewer as m } from "@wix/ricos/viewer";
2
2
  import a from "classnames";
3
3
  import e from "react";
4
- import { D as r } from "./dropdown-field-headless-m2P6s7X5.js";
4
+ import { D as r } from "./dropdown-field-headless-7SCC-xOC.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-DfEb7pBp.js";
9
- import { R as i, $ as p, x as E, G as D, u as _ } from "./form-D3iU18lh.js";
10
- import { u as O } from "./use-dropdown-option-class-name-OD8brKoy.js";
11
- import { u as R } from "./use-dropdown-trigger-class-name-BrkmG0ad.js";
12
- const C = ({ content: t, locale: s }) => /* @__PURE__ */ e.createElement(m, {
9
+ import { S as i, a0 as p, y as E, H as D, v as _ } from "./form-DHAKwnLt.js";
10
+ import { a as O, u as R } from "./use-dropdown-trigger-class-name-BWTT7ltv.js";
11
+ const S = ({ content: t, locale: s }) => /* @__PURE__ */ e.createElement(m, {
13
12
  content: t,
14
13
  locale: s
15
- }), T = () => {
16
- const t = R(o.dropdownTrigger), s = O(c);
14
+ }), w = () => {
15
+ const t = O(o.dropdownTrigger), s = R(c);
17
16
  return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
18
17
  className: a(i, o.label)
19
18
  }, /* @__PURE__ */ e.createElement(r.Label.Required, {
@@ -30,8 +29,8 @@ const C = ({ content: t, locale: s }) => /* @__PURE__ */ e.createElement(m, {
30
29
  className: a(D, o.error)
31
30
  }, /* @__PURE__ */ e.createElement(l, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
32
31
  className: a(_, o.description)
33
- }, C));
32
+ }, S));
34
33
  };
35
34
  export {
36
- T as D
35
+ w as D
37
36
  };
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { D as r } from "./dropdown-field-rac-5e6wWJBl.js";
2
+ import { D as r } from "./dropdown-field-rac-CMzZh6J6.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-FbJO0HFf.js";
2
+ import { M as r } from "./multiline-address-field-rac-C6xaqNOk.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 n } from "react";
2
- import { bn as a, bx as c, ap as i } from "./form-D3iU18lh.js";
3
- import { C as p } from "./checkbox-field-rac-CmRRc9Dz.js";
4
- const l = (e) => ({
2
+ import { bo as a, by as c, aq as i } from "./form-DHAKwnLt.js";
3
+ import { C as l } from "./checkbox-field-rac-DEa78Tpf.js";
4
+ const p = (e) => ({
5
5
  nodes: [
6
6
  {
7
7
  paragraphData: {
@@ -25,7 +25,7 @@ const l = (e) => ({
25
25
  }
26
26
  ]
27
27
  }), u = () => {
28
- const e = a(), { t } = c(), r = n(() => l(t), [
28
+ const e = a(), { t } = c(), r = n(() => p(t), [
29
29
  t
30
30
  ]), s = {
31
31
  ...e,
@@ -35,7 +35,7 @@ const l = (e) => ({
35
35
  value: {
36
36
  v2: s
37
37
  }
38
- }, /* @__PURE__ */ o.createElement(p, null));
38
+ }, /* @__PURE__ */ o.createElement(l, null));
39
39
  };
40
40
  export {
41
41
  u as EcomSubscriptionCheckboxRAC