@wix/form-elements 1.146.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 (111) hide show
  1. package/dist/component/{appointment-rac-scUix9QX.js → appointment-rac-BG5-bIZU.js} +98 -98
  2. package/dist/component/{bookings-address-rac-CKemkJOO.js → bookings-address-rac-8e8PqKsp.js} +1 -1
  3. package/dist/component/{bookings-email-rac-CDqdhPAB.js → bookings-email-rac-CtlnU8ws.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DEy_7Hjb.js → bookings-first-name-rac-CrivNlXM.js} +1 -1
  5. package/dist/component/{bookings-header-rac-Bl4xy9lB.js → bookings-header-rac-DWDAjfqq.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CsL9xQ1W.js → bookings-last-name-rac-qAthWem2.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DkHYQ4No.js → bookings-login-bar-rac-BNyUDqlM.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-BoBiFwbV.js → bookings-phone-rac-Tc39XLr7.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DZZnPKWA.js → bookings-rich-text-rac-CPNaPtFK.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-UgLmJxB-.js → checkbox-field-rac-DEa78Tpf.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-C809nB0Q.js → checkbox-group-field-headless-BxBaMg29.js} +68 -68
  12. package/dist/component/{checkbox-group-field-rac-u4i4wG21.js → checkbox-group-field-rac-CRRP03Qk.js} +7 -7
  13. package/dist/component/{checkbox-group-rac-DBAQhSo3.js → checkbox-group-rac-TOofMGl3.js} +1 -1
  14. package/dist/component/{checkbox-rac-FDQVsI5-.js → checkbox-rac-CHMHr8Ry.js} +1 -1
  15. package/dist/component/{contacts-address-rac-DnArylPa.js → contacts-address-rac-Bc5yDvTL.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-C19jhGEO.js → contacts-birthdate-rac-Ubtg5ncv.js} +1 -1
  17. package/dist/component/{contacts-company-rac-Dxs0hs_i.js → contacts-company-rac-BksH9IoV.js} +1 -1
  18. package/dist/component/{contacts-email-rac-D-H43L8r.js → contacts-email-rac-DDPEtMAm.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-DwV5NESk.js → contacts-first-name-rac-DUlCvEdx.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-C5v2xurf.js → contacts-last-name-rac-BikqNgUr.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-D9a5x-xl.js → contacts-phone-rac-B4OEgM_8.js} +1 -1
  22. package/dist/component/{contacts-position-rac-DfsgOv-k.js → contacts-position-rac-BfybzySV.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-B-Hho0Kb.js → contacts-subscribe-rac-CMHb33v1.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-q6TQkB4b.js → contacts-tax-id-rac-C-qEqwO5.js} +1 -1
  25. package/dist/component/{date-availability-CMDvf5VU.js → date-availability-DZ3J3LLm.js} +1 -1
  26. package/dist/component/{date-input-field-rac-C1WLUct3.js → date-input-field-rac-DeL5vuE7.js} +39 -39
  27. package/dist/component/{date-input-rac-cNQ-nr4D.js → date-input-rac-Di6TQvFf.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-mx11z-MO.js → date-picker-field-rac-BcdpTkjV.js} +107 -103
  29. package/dist/component/{date-picker-rac-DeTz17zC.js → date-picker-rac-Brne65gr.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-feQ2E1eU.js → date-time-input-field-rac-BtQfAxRp.js} +49 -49
  31. package/dist/component/{date-time-input-rac-G0s0xP4v.js → date-time-input-rac-DM_HXiqV.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-BcTN1nJb.js → dext-checkbox-group-rac-WTVwhGG0.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-DX0TOrCO.js → dext-checkbox-rac-BR5YwmLQ.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-CpDp11oa.js → dext-date-picker-rac-DvDuRGYi.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-BRvO8izU.js → dext-date-time-input-rac-C6RgbaVv.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-DGZ4Yi_X.js → dext-dropdown-rac-CWjSdcZx.js} +1 -1
  37. package/dist/component/{dext-email-rac-B9YCFHB4.js → dext-email-rac-D-C1gVTq.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-D890dBZf.js → dext-number-input-rac-YKzZS2ZG.js} +1 -1
  39. package/dist/component/{dext-phone-rac-BAQftbXo.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-BqQKVaHo.js → dext-rating-input-rac-D0s-i0qO.js} +1 -1
  42. package/dist/component/{dext-tags-rac-zxxKcNUe.js → dext-tags-rac-Br48OQQ5.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-Ctp9SwPg.js → dext-text-area-rac-6jG8gJ7i.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-c_QMlyjr.js → dext-text-input-rac-FAJTCXuf.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-96pv15aC.js → dext-url-input-rac-BoMP8sQB.js} +1 -1
  46. package/dist/component/{donation-rac-GEWKSLJY.js → donation-rac-DNi4p-v5.js} +69 -69
  47. package/dist/component/{dropdown-field-headless-C3OxMhLE.js → dropdown-field-headless-7SCC-xOC.js} +27 -27
  48. package/dist/component/{dropdown-field-rac-CCXfBmSc.js → dropdown-field-rac-CMzZh6J6.js} +8 -9
  49. package/dist/component/{dropdown-rac-CR7hswXE.js → dropdown-rac-qeugpHXY.js} +1 -1
  50. package/dist/component/{ecom-address-rac-khMuxEFD.js → ecom-address-rac-D8b_L5md.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-CAi_AHpb.js → ecom-subscription-checkbox-rac-BnAuR9La.js} +5 -5
  52. package/dist/component/{email-input-field-rac-B83mY2lg.js → email-input-field-rac-CunXRyc5.js} +62 -62
  53. package/dist/component/{events-repeater-rac-ClEwXgmb.js → events-repeater-rac-DMjyIOkB.js} +17 -17
  54. package/dist/component/{events-rsvp-rac-BJ5q2SVR.js → events-rsvp-rac-BsuDPq2K.js} +8 -8
  55. package/dist/component/{field-error-headless-CsYQCsiT.js → field-error-headless-E8WjFr_n.js} +6 -6
  56. package/dist/component/{field-label-headless-Yg_1PMSg.js → field-label-headless-BakLOu5E.js} +15 -15
  57. package/dist/component/{file-upload-rac-DJsuI_lR.js → file-upload-rac-Clu_c--0.js} +43 -43
  58. package/dist/component/{fixed-payment-rac-BMFe9wxU.js → fixed-payment-rac-CzAXxsb-.js} +12 -12
  59. package/dist/component/{form-Bed4Kfz8.js → form-DHAKwnLt.js} +311 -305
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +2 -2
  62. package/dist/component/{header-field-rac-DPQTrOSZ.js → header-field-rac-CwmVpz3r.js} +4 -4
  63. package/dist/component/{header-rac-CzXsuLmE.js → header-rac-ahkGRjSy.js} +1 -1
  64. package/dist/component/{image-choice-rac-R_4pbOSr.js → image-choice-rac-BwxkkdUu.js} +17 -17
  65. package/dist/component/{index-qSZCe_WC.js → index-BFi_n6B7.js} +2 -2
  66. package/dist/component/{index-DZxHlvzt.js → index-BQf23zZi.js} +91 -91
  67. package/dist/component/{isObjectLike-B-a5uaU-.js → isObjectLike-DHcMRYYH.js} +15 -15
  68. package/dist/component/{multiline-address-field-rac-rv4IZZy_.js → multiline-address-field-rac-C6xaqNOk.js} +60 -60
  69. package/dist/component/{multiline-address-rac-DZ7cYtgn.js → multiline-address-rac-DF4TFuDx.js} +1 -1
  70. package/dist/component/{number-input-field-rac-CL9iXKIf.js → number-input-field-rac-uVJ3SBv2.js} +27 -27
  71. package/dist/component/{number-input-rac-BeGn6qJR.js → number-input-rac-D6ERhrSM.js} +1 -1
  72. package/dist/component/{password-rac-DfvhdsKG.js → password-rac-CAiC0ZKl.js} +23 -23
  73. package/dist/component/{payment-input-rac-BmMfi5rf.js → payment-input-rac-Bu25xvby.js} +26 -26
  74. package/dist/component/{phone-input-field-rac-DW0a1pXs.js → phone-input-field-rac-32qUvCsC.js} +45 -45
  75. package/dist/component/{phone-rac-quZjJ08H.js → phone-rac-mNrpj30q.js} +1 -1
  76. package/dist/component/{product-list-rac-Ci0KB7sN.js → product-list-rac-zHdM9rHw.js} +53 -53
  77. package/dist/component/{quiz-radio-group-rac--UUtGx2t.js → quiz-radio-group-rac-BaSlT8w3.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-CqdBGknT.js → radio-button-module-classes-BdWjkBlX.js} +9 -9
  79. package/dist/component/{radio-group-field-rac-w8fHpFKJ.js → radio-group-field-rac-DI0UgTBr.js} +12 -12
  80. package/dist/component/{radio-group-rac-jO8aghii.js → radio-group-rac-D2ESG8J4.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-BRc2PtqE.js → rating-input-field-rac-BYT2XqOK.js} +26 -26
  82. package/dist/component/{rating-input-rac-D9zs06xR.js → rating-input-rac-D-5CmVAX.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-Cv3ZmD00.js → rich-content-rac.module-Dp9Advo9.js} +8 -8
  84. package/dist/component/{rich-text-field-rac-BmWuIfA8.js → rich-text-field-rac-COEUwoXQ.js} +4 -4
  85. package/dist/component/{rich-text-rac-BnqnrvB1.js → rich-text-rac-CQZLjBQ0.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-Cl81KfJU.js → service-dropdown-rac-BTtJVFv8.js} +44 -45
  87. package/dist/component/{services-multi-choice-rac-sQ1NF9hY.js → services-multi-choice-rac-hbY3g0Kb.js} +11 -11
  88. package/dist/component/{signature-rac-Huairu7V.js → signature-rac-CTCNclwL.js} +67 -67
  89. package/dist/component/{submit-button-rac-Dpg7N0TG.js → submit-button-rac-kKGeVgsG.js} +25 -25
  90. package/dist/component/{tags-field-rac-BQ8TEqXH.js → tags-field-rac-CVf7oQr_.js} +35 -35
  91. package/dist/component/{tags-rac-CFOmyCCc.js → tags-rac-DiX1_nTT.js} +1 -1
  92. package/dist/component/{text-area-field-rac-DNiMa7d3.js → text-area-field-rac-IhBNXiDl.js} +22 -22
  93. package/dist/component/{text-area-rac-kLFe-KbZ.js → text-area-rac-DHevCtFF.js} +1 -1
  94. package/dist/component/{text-input-field-rac-CqENSUUX.js → text-input-field-rac-Da3_wTdh.js} +5 -5
  95. package/dist/component/{text-input-headless-BdPkEeK2.js → text-input-headless-DcZRRXCp.js} +9 -9
  96. package/dist/component/{text-input-rac-uYQEfOtE.js → text-input-rac-564LIZ1_.js} +1 -1
  97. package/dist/component/{time-input-rac-BYoojlJ9.js → time-input-rac-p-Nnsxp_.js} +54 -54
  98. package/dist/component/{url-input-field-rac-BioH7kuz.js → url-input-field-rac-DjrcpRtm.js} +25 -25
  99. package/dist/component/{url-input-rac-D2VSSyqW.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-oiKCauK-.js → use-element-state-class-name-CUZuhFvZ.js} +3 -3
  102. package/dist/component/{use-hoverable-input-class-name-BW3nCyhG.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-DXG60hA5.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/dext-radio-group-rac-CtEjnu_X.js +0 -18
  109. package/dist/component/use-dropdown-option-class-name-BEmvU-Gg.js +0 -115
  110. package/dist/component/use-dropdown-trigger-class-name-qj9skLWZ.js +0 -40
  111. package/dist/component/use-text-input-class-name-BhQFcXYH.js +0 -6
@@ -2,16 +2,16 @@ import r, { useCallback as P, useRef as j } from "react";
2
2
  import { RicosViewer as w } from "@wix/ricos/viewer";
3
3
  import p from "classnames";
4
4
  import { TextField as z, Group as J, Input as K } from "react-aria-components";
5
- import { bn as N, bk as D, bf as T, bx as W, bp as X, R as Y, $ as Z, G as ee, u as re } from "./form-Bed4Kfz8.js";
5
+ import { bo as R, bl as D, bg as T, by as W, bq as X, S as Y, a0 as Z, H as ee, v as re } from "./form-DHAKwnLt.js";
6
6
  import { f as i } from "./find-child-C60k4CxG.js";
7
- import { D as te, E as ne } from "./field-error-headless-CsYQCsiT.js";
8
- import { L as ae } from "./field-label-headless-Yg_1PMSg.js";
9
- import { f as L, g as se } from "./payment-field-utils-DobiK5Xh.js";
7
+ import { D as te, E as ne } from "./field-error-headless-E8WjFr_n.js";
8
+ import { L as ae } from "./field-label-headless-BakLOu5E.js";
9
+ import { f as N, g as se } from "./payment-field-utils-DobiK5Xh.js";
10
10
  import { u as oe } from "./use-synced-display-value-DcAxdn3M.js";
11
11
  import { E as le } from "./error-icon-hZxQ6DEy.js";
12
12
  import { H as ce } from "./custom-focus-class-_483Pkwp.js";
13
13
  import { s as d } from "./field-rac.module-DfEb7pBp.js";
14
- import { u as ie } from "./use-text-input-class-name-BhQFcXYH.js";
14
+ import { u as ie } from "./use-text-input-class-name-wp9dzpEy.js";
15
15
  function ue(e, t) {
16
16
  return {
17
17
  productId: e.id,
@@ -19,7 +19,7 @@ function ue(e, t) {
19
19
  quantity: 1
20
20
  };
21
21
  }
22
- function x(e) {
22
+ function h(e) {
23
23
  if (e == null || e === "")
24
24
  return;
25
25
  const t = Number(String(e).replace(/,/g, "."));
@@ -27,28 +27,28 @@ function x(e) {
27
27
  }
28
28
  const n = ({ children: e }) => {
29
29
  var O, g, A, V;
30
- const { id: t, value: a, onChange: s, disabled: u, readOnly: m, required: I, hasError: y, onBlur: o, onFocus: E, FieldLayout: M, validation: C } = N(), { labelId: G, prefixId: $ } = D(), { regionalFormat: c } = T(), S = (A = (g = (O = C == null ? void 0 : C.predefined) == null ? void 0 : O.paymentOptions) == null ? void 0 : g.products) == null ? void 0 : A[0], _ = (V = a == null ? void 0 : a.at(0)) == null ? void 0 : V.price, [F, b] = oe({
30
+ const { id: t, value: a, onChange: s, disabled: u, readOnly: m, required: I, hasError: y, onBlur: o, onFocus: E, FieldLayout: M, validation: C } = R(), { labelId: q, prefixId: G } = D(), { regionalFormat: c } = T(), S = (A = (g = (O = C == null ? void 0 : C.predefined) == null ? void 0 : O.paymentOptions) == null ? void 0 : g.products) == null ? void 0 : A[0], _ = (V = a == null ? void 0 : a.at(0)) == null ? void 0 : V.price, [F, b] = oe({
31
31
  sourceValue: _,
32
- format: (l) => L(String(l ?? ""), c),
32
+ format: (l) => N(String(l ?? ""), c),
33
33
  regionalFormat: c
34
- }), q = P(() => {
35
- const l = L(F, c);
34
+ }), $ = P(() => {
35
+ const l = N(F, c);
36
36
  b(l || ""), o == null || o();
37
37
  }, [
38
38
  F,
39
39
  c,
40
40
  o,
41
41
  b
42
- ]), k = P((l) => {
42
+ ]), v = P((l) => {
43
43
  b(l);
44
- const R = x(L(l, c)), Q = x(_);
45
- if (R !== Q) {
46
- if (R === void 0) {
44
+ const L = h(N(l, c)), Q = h(_);
45
+ if (L !== Q) {
46
+ if (L === void 0) {
47
47
  s(null);
48
48
  return;
49
49
  }
50
50
  s([
51
- ue(S, R)
51
+ ue(S, L)
52
52
  ]);
53
53
  }
54
54
  }, [
@@ -57,25 +57,25 @@ const n = ({ children: e }) => {
57
57
  c,
58
58
  _,
59
59
  b
60
- ]), B = i(e, n.Label), U = i(e, n.Input), v = i(e, n.Description), H = i(e, n.Error);
60
+ ]), B = i(e, n.Label), H = i(e, n.Input), U = i(e, n.Description), k = i(e, n.Error);
61
61
  return /* @__PURE__ */ r.createElement(M, {
62
62
  fieldId: t,
63
63
  renderLabel: () => B,
64
64
  renderInput: () => /* @__PURE__ */ r.createElement(z, {
65
- "aria-labelledby": `${G} ${$}`,
65
+ "aria-labelledby": `${q} ${G}`,
66
66
  value: a ? F : "",
67
- onChange: k,
67
+ onChange: v,
68
68
  isDisabled: u,
69
69
  isReadOnly: m,
70
70
  isRequired: I,
71
71
  isInvalid: y,
72
- onBlur: q,
72
+ onBlur: $,
73
73
  onFocus: E
74
- }, U),
75
- renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, H, v)
74
+ }, H),
75
+ renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, k, U)
76
76
  });
77
77
  }, f = ({ children: e, className: t }) => {
78
- const { disabled: a, hasError: s } = N(), u = i(e, f.Currency), m = i(e, f.Value);
78
+ const { disabled: a, hasError: s } = R(), u = i(e, f.Currency), m = i(e, f.Value);
79
79
  return /* @__PURE__ */ r.createElement(J, {
80
80
  className: t,
81
81
  isDisabled: a,
@@ -90,7 +90,7 @@ const n = ({ children: e }) => {
90
90
  className: e
91
91
  }, t.sign || t.code) : null;
92
92
  }, pe = ({ className: e }) => {
93
- const { id: t, placeholder: a, label: s } = N(), { inputId: u, labelId: m, prefixId: I, ariaDescribedBy: y } = D(), o = j(null);
93
+ const { id: t, placeholder: a, label: s } = R(), { inputId: u, labelId: m, prefixId: I, ariaDescribedBy: y } = D(), o = j(null);
94
94
  return X(() => {
95
95
  var E;
96
96
  (E = o.current) == null || E.focus();
@@ -112,14 +112,14 @@ n.Label = ae;
112
112
  n.Input = f;
113
113
  n.Description = te;
114
114
  n.Error = ne;
115
- const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", h = {
115
+ const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", x = {
116
116
  inputGroup: de,
117
117
  currency: fe
118
118
  }, Ee = ({ content: e, locale: t }) => /* @__PURE__ */ r.createElement(w, {
119
119
  content: e,
120
120
  locale: t
121
121
  }), be = () => {
122
- const e = ie(h.inputGroup);
122
+ const e = ie(x.inputGroup);
123
123
  return /* @__PURE__ */ r.createElement(n, null, /* @__PURE__ */ r.createElement(n.Label, {
124
124
  className: p(Y, d.label)
125
125
  }, /* @__PURE__ */ r.createElement(n.Label.Required, {
@@ -127,7 +127,7 @@ const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", h = {
127
127
  })), /* @__PURE__ */ r.createElement(n.Input, {
128
128
  className: e
129
129
  }, /* @__PURE__ */ r.createElement(n.Input.Currency, {
130
- className: h.currency
130
+ className: x.currency
131
131
  }), /* @__PURE__ */ r.createElement(n.Input.Value, {
132
132
  className: p(d.innerInput, ce)
133
133
  })), /* @__PURE__ */ r.createElement(n.Error, {
@@ -1,24 +1,24 @@
1
1
  import { RicosViewer as Ce } from "@wix/ricos/viewer";
2
2
  import h from "classnames";
3
- import t, { useMemo as $, useState as j, useRef as F, useEffect as k, useCallback as Q, createContext as ee, useContext as G, useId as de } from "react";
4
- import { b6 as ye, bx as w, bf as te, bw as Ee, bn as D, bk as ne, bp as fe, R as ge, $ as he, Q as be, x as Oe, G as _e, u as Ne } from "./form-Bed4Kfz8.js";
3
+ import t, { useMemo as j, useState as $, useRef as F, useEffect as k, useCallback as W, createContext as ee, useContext as H, useId as de } from "react";
4
+ import { b7 as ye, by as D, bg as te, bx as Ee, bo as w, bl as ne, bq as fe, S as ge, a0 as he, R as be, y as Oe, H as _e, v as Ne } from "./form-DHAKwnLt.js";
5
5
  import { UNSAFE_PortalProvider as Se } from "react-aria";
6
- import { Dialog as oe, OverlayTriggerStateContext as Le, ModalOverlay as Ie, Modal as ve, SearchField as Pe, Group as q, ListBoxItem as Fe, DialogTrigger as we, Select as De, Input as re, Autocomplete as Be } from "react-aria-components";
6
+ import { Dialog as oe, OverlayTriggerStateContext as Le, ModalOverlay as Ie, Modal as ve, SearchField as Pe, Group as q, ListBoxItem as Fe, DialogTrigger as De, Select as we, Input as re, Autocomplete as Be } from "react-aria-components";
7
7
  import { f as g, a as I } from "./find-child-C60k4CxG.js";
8
- import { D as Re, E as xe } from "./field-error-headless-CsYQCsiT.js";
9
- import { L as Me } from "./field-label-headless-Yg_1PMSg.js";
10
- import { N as Te, S as $e } from "./non-modal-popover-D-u13tmp.js";
11
- import { u as je } from "./use-invoke-callback-UH73A_J3.js";
12
- import { a as Ae, u as ke } from "./use-dropdown-trigger-class-name-qj9skLWZ.js";
13
- import { V as Ue, u as Ve } from "./use-dropdown-option-class-name-BEmvU-Gg.js";
14
- import ae, { AsYouType as qe, isValidPhoneNumber as Ge, isSupportedCountry as He } from "libphonenumber-js";
8
+ import { D as Re, E as xe } from "./field-error-headless-E8WjFr_n.js";
9
+ import { L as Me } from "./field-label-headless-BakLOu5E.js";
10
+ import { N as Te, S as je } from "./non-modal-popover-D-u13tmp.js";
11
+ import { u as $e } from "./use-invoke-callback-UH73A_J3.js";
12
+ import { a as Ae } from "./use-is-forced-open-dropdown-DUZMvWpk.js";
13
+ import { V as ke, u as Ue, a as Ve } from "./use-dropdown-trigger-class-name-BWTT7ltv.js";
14
+ import ae, { AsYouType as qe, isValidPhoneNumber as He, isSupportedCountry as Ge } from "libphonenumber-js";
15
15
  import "libphonenumber-js/metadata.min.json";
16
- import { C as W } from "./calling-country-codes-PyWuOTmF.js";
16
+ import { C as Z } from "./calling-country-codes-PyWuOTmF.js";
17
17
  import { C as Ye } from "./chevron-down-icon-CcpVm6B-.js";
18
18
  import { E as ze } from "./error-icon-hZxQ6DEy.js";
19
- import { H as Z } from "./custom-focus-class-_483Pkwp.js";
19
+ import { H as Q } from "./custom-focus-class-_483Pkwp.js";
20
20
  import { s as O } from "./field-rac.module-DfEb7pBp.js";
21
- import { u as Ke } from "./use-text-input-class-name-BhQFcXYH.js";
21
+ import { u as Ke } from "./use-text-input-class-name-wp9dzpEy.js";
22
22
  function J(e) {
23
23
  const n = e ? ae(e) : void 0, r = n == null ? void 0 : n.country;
24
24
  if (r)
@@ -26,7 +26,7 @@ function J(e) {
26
26
  const o = new qe();
27
27
  return e && o.input(e), o.getCountry();
28
28
  }
29
- function H(e) {
29
+ function G(e) {
30
30
  var n;
31
31
  return e && ((n = ye.getCountryByKey(e)) == null ? void 0 : n.dialCode);
32
32
  }
@@ -37,17 +37,17 @@ function X(e, n) {
37
37
  if (e && n)
38
38
  try {
39
39
  const r = ae(e, n), o = r == null ? void 0 : r.formatInternational();
40
- if (o && Ge(o))
40
+ if (o && He(o))
41
41
  return o.replace(/\s+/g, "");
42
42
  } catch {
43
43
  }
44
44
  return e;
45
45
  }
46
- function Qe() {
47
- const { t: e } = w(), { language: n } = te();
48
- return $(() => Object.keys(W).reduce((o, a) => {
49
- const c = W[a], l = H(c), i = e(`locale-dataset.countries.${c.toUpperCase()}`);
50
- return l && He(a) && o.push({
46
+ function We() {
47
+ const { t: e } = D(), { language: n } = te();
48
+ return j(() => Object.keys(Z).reduce((o, a) => {
49
+ const c = Z[a], l = G(c), i = e(`locale-dataset.countries.${c.toUpperCase()}`);
50
+ return l && Ge(a) && o.push({
51
51
  countryName: i,
52
52
  longCountryCode: c,
53
53
  shortCountryCode: a,
@@ -58,10 +58,10 @@ function Qe() {
58
58
  n
59
59
  ]);
60
60
  }
61
- function We(e, n) {
61
+ function Ze(e, n) {
62
62
  return e.filter((r) => n && n.length > 0 ? n.includes(r.shortCountryCode) : !0);
63
63
  }
64
- function Ze(e, n) {
64
+ function Qe(e, n) {
65
65
  const { countryName: r, callingCode: o, shortCountryCode: a } = e;
66
66
  return !!(V(r, n) || V(o, n) || V(a, n));
67
67
  }
@@ -69,11 +69,11 @@ function V(e, n) {
69
69
  return e.toLowerCase().includes(n.toLowerCase());
70
70
  }
71
71
  function Je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange: o }) {
72
- const [a, c] = j(e || ""), l = F(U(e ?? null) ?? ""), [i, u] = j(n);
72
+ const [a, c] = $(e || ""), l = F(U(e ?? null) ?? ""), [i, u] = $(n);
73
73
  Ee(() => {
74
74
  c(""), l.current = "", u(n), o("");
75
75
  });
76
- const m = $(() => J(a), [
76
+ const m = j(() => J(a), [
77
77
  a
78
78
  ]);
79
79
  k(() => {
@@ -92,7 +92,7 @@ function Je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
92
92
  m,
93
93
  n
94
94
  ]);
95
- const C = Q((p) => {
95
+ const C = W((p) => {
96
96
  if (c(p), !p) {
97
97
  l.current = "", o(null);
98
98
  return;
@@ -105,7 +105,7 @@ function Je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
105
105
  }, [
106
106
  r,
107
107
  o
108
- ]), d = Q((p) => {
108
+ ]), d = W((p) => {
109
109
  u(p), c((f) => {
110
110
  const y = U(X(f, p));
111
111
  return l.current = y ?? "", o(y), f;
@@ -121,12 +121,12 @@ function Je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
121
121
  };
122
122
  }
123
123
  const se = /* @__PURE__ */ ee(null), _ = () => {
124
- const e = G(se);
124
+ const e = H(se);
125
125
  if (!e)
126
126
  throw new Error("Phone input components must be used within PhoneInput component");
127
127
  return e;
128
128
  }, ce = /* @__PURE__ */ ee(null), Y = () => {
129
- const e = G(ce);
129
+ const e = H(ce);
130
130
  if (!e)
131
131
  throw new Error("Option sub-components must be used within Option component");
132
132
  return e;
@@ -146,10 +146,10 @@ const se = /* @__PURE__ */ ee(null), _ = () => {
146
146
  });
147
147
  }, s = ({ children: e }) => {
148
148
  var S, P;
149
- const { id: n, value: r, onChange: o, FieldLayout: a, defaultCountry: c, validation: l } = D(), [i, u] = j(null), m = (P = (S = l == null ? void 0 : l.string) == null ? void 0 : S.phoneOptions) == null ? void 0 : P.allowedCountryCodes, C = Qe(), d = $(() => We(C, m), [
149
+ const { id: n, value: r, onChange: o, FieldLayout: a, defaultCountry: c, validation: l } = w(), [i, u] = $(null), m = (P = (S = l == null ? void 0 : l.string) == null ? void 0 : S.phoneOptions) == null ? void 0 : P.allowedCountryCodes, C = We(), d = j(() => Ze(C, m), [
150
150
  C,
151
151
  m
152
- ]), p = $(() => d.map((T) => T.shortCountryCode), [
152
+ ]), p = j(() => d.map((T) => T.shortCountryCode), [
153
153
  d
154
154
  ]), { currentValue: f, selectedCountryCode: y, handlePhoneChange: L, handleCountryCodeChange: N } = Je({
155
155
  value: r,
@@ -179,8 +179,8 @@ const se = /* @__PURE__ */ ee(null), _ = () => {
179
179
  renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, M, x)
180
180
  }));
181
181
  }, K = ({ children: e, className: n }) => {
182
- const { labelId: r } = ne(), { hasError: o, disabled: a, readOnly: c } = D(), { t: l } = w(), { selectedCountryCode: i, countries: u } = _(), m = de(), C = i ? u.find((y) => y.shortCountryCode === i) : void 0, d = C && H(C.longCountryCode) || "", p = l("field.phone.country-code.aria-label"), f = C ? `${p}, ${C.countryName}, ${d}` : p;
183
- return /* @__PURE__ */ t.createElement($e, {
182
+ const { labelId: r } = ne(), { hasError: o, disabled: a, readOnly: c } = w(), { t: l } = D(), { selectedCountryCode: i, countries: u } = _(), m = de(), C = i ? u.find((y) => y.shortCountryCode === i) : void 0, d = C && G(C.longCountryCode) || "", p = l("field.phone.country-code.aria-label"), f = C ? `${p}, ${C.countryName}, ${d}` : p;
183
+ return /* @__PURE__ */ t.createElement(je, {
184
184
  isDisabled: a || c,
185
185
  id: m,
186
186
  "aria-label": f,
@@ -222,7 +222,7 @@ const b = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
222
222
  "aria-label": r
223
223
  }, p) : p));
224
224
  }, tt = ({ children: e, className: n, overlayClassName: r, "aria-label": o, portalContainer: a = t.Fragment, ...c }) => {
225
- const { optionsRef: l } = c, { selectedCountryCode: i, handleCountryCodeChange: u } = _(), m = G(Le);
225
+ const { optionsRef: l } = c, { selectedCountryCode: i, handleCountryCodeChange: u } = _(), m = H(Le);
226
226
  return /* @__PURE__ */ t.createElement(Ie, {
227
227
  className: r,
228
228
  isDismissable: !0
@@ -245,12 +245,12 @@ const b = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
245
245
  }
246
246
  }, e)))));
247
247
  }, le = ({ children: e, listBoxProps: n, isForcedOpen: r }) => {
248
- const { countries: o } = _(), a = g(e, b.Option), c = g(e, b.Search), l = g(e, b.EmptyState), i = /* @__PURE__ */ t.createElement(Ue, {
248
+ const { countries: o } = _(), a = g(e, b.Option), c = g(e, b.Search), l = g(e, b.EmptyState), i = /* @__PURE__ */ t.createElement(ke, {
249
249
  isForcedOpen: r === !0,
250
250
  ...n,
251
251
  renderEmptyState: l ? () => l : void 0
252
252
  }, o.map((u) => {
253
- const m = H(u.longCountryCode) || "";
253
+ const m = G(u.longCountryCode) || "";
254
254
  return I(a, {
255
255
  key: u.shortCountryCode,
256
256
  countryCode: u.shortCountryCode,
@@ -262,7 +262,7 @@ const b = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
262
262
  return c ? /* @__PURE__ */ t.createElement(Be, {
263
263
  filter: (u, m, C) => {
264
264
  const d = o.find((p) => p.shortCountryCode === C.key);
265
- return !!d && Ze(d, m);
265
+ return !!d && Qe(d, m);
266
266
  }
267
267
  }, r ? I(c, {
268
268
  autoFocus: !1
@@ -324,7 +324,7 @@ A.Name = me;
324
324
  A.Code = pe;
325
325
  b.Option = A;
326
326
  const rt = ({ className: e }) => {
327
- const { t: n } = w(), { inputId: r, ariaDescribedBy: o } = ne(), { id: a, placeholder: c, disabled: l, readOnly: i, required: u, label: m, hasError: C } = D(), { currentValue: d, handlePhoneChange: p } = _(), f = F(null);
327
+ const { t: n } = D(), { inputId: r, ariaDescribedBy: o } = ne(), { id: a, placeholder: c, disabled: l, readOnly: i, required: u, label: m, hasError: C } = w(), { currentValue: d, handlePhoneChange: p } = _(), f = F(null);
328
328
  return fe(() => {
329
329
  var y;
330
330
  (y = f.current) == null || y.focus({
@@ -347,8 +347,8 @@ const rt = ({ className: e }) => {
347
347
  className: e
348
348
  });
349
349
  }, at = ({ children: e, ...n }) => {
350
- const r = n, { isForcedOpen: o } = r, { disabled: a, readOnly: c, required: l, hasError: i } = D(), [u, m] = j(!1), { t: C } = w(), { selectedCountryCode: d, handleCountryCodeChange: p } = _(), f = o || u && !a && !c;
351
- return /* @__PURE__ */ t.createElement(De, {
350
+ const r = n, { isForcedOpen: o } = r, { disabled: a, readOnly: c, required: l, hasError: i } = w(), [u, m] = $(!1), { t: C } = D(), { selectedCountryCode: d, handleCountryCodeChange: p } = _(), f = o || u && !a && !c;
351
+ return /* @__PURE__ */ t.createElement(we, {
352
352
  "aria-label": C("field.phone.country-code.aria-label"),
353
353
  value: d ?? null,
354
354
  onChange: (y) => p(y),
@@ -365,9 +365,9 @@ const rt = ({ className: e }) => {
365
365
  }));
366
366
  }, st = ({ children: e, ...n }) => {
367
367
  const r = n;
368
- return /* @__PURE__ */ t.createElement(we, null, g(e, s.CountryButton), I(g(e, s.CountryOptions.Modal), r));
368
+ return /* @__PURE__ */ t.createElement(De, null, g(e, s.CountryButton), I(g(e, s.CountryOptions.Modal), r));
369
369
  }, ct = ({ children: e, className: n }) => {
370
- const r = F(null), o = F(null), a = F(!1), { id: c, disabled: l, hasError: i, showFlag: u, onFocus: m, onBlur: C } = D(), d = je(C), { countries: p } = _(), f = g(e, s.CountryDrawer), y = g(e, s.CountryPopover), L = g(e, s.PhoneNumber), N = p.length > 1, B = Ae(c) && !!y && N, R = typeof n == "function" ? ({ isHovered: v, isFocusWithin: S }) => n({
370
+ const r = F(null), o = F(null), a = F(!1), { id: c, disabled: l, hasError: i, showFlag: u, onFocus: m, onBlur: C } = w(), d = $e(C), { countries: p } = _(), f = g(e, s.CountryDrawer), y = g(e, s.CountryPopover), L = g(e, s.PhoneNumber), N = p.length > 1, B = Ae(c) && !!y && N, R = typeof n == "function" ? ({ isHovered: v, isFocusWithin: S }) => n({
371
371
  hasCountryOptions: N,
372
372
  isHovered: v,
373
373
  isFocusWithin: S
@@ -453,14 +453,14 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
453
453
  }), vt = () => /* @__PURE__ */ t.createElement("span", {
454
454
  className: E.chevron,
455
455
  "aria-hidden": "true"
456
- }, /* @__PURE__ */ t.createElement(Ye, null)), Qt = () => {
457
- const e = Ve(O.selectOptionWithoutFocusRing, E.option, Z), n = ke(E.control), r = Ke(E.countrySearch), { t: o } = w(), { PortalContainer: a } = te(), c = /* @__PURE__ */ t.createElement(s.CountryOptions.Search, {
456
+ }, /* @__PURE__ */ t.createElement(Ye, null)), Wt = () => {
457
+ const e = Ue(O.selectOptionWithoutFocusRing, E.option, Q), n = Ve(E.control), r = Ke(E.countrySearch), { t: o } = D(), { PortalContainer: a } = te(), c = /* @__PURE__ */ t.createElement(s.CountryOptions.Search, {
458
458
  className: r,
459
459
  "aria-label": o("field.phone.country-search-input.aria-label")
460
460
  }, /* @__PURE__ */ t.createElement(ut, {
461
461
  className: E.searchIcon
462
462
  }), /* @__PURE__ */ t.createElement(s.CountryOptions.Search.Input, {
463
- className: h(O.innerInput, Z),
463
+ className: h(O.innerInput, Q),
464
464
  placeholder: o("field.phone.country-search-input.placeholder")
465
465
  })), l = /* @__PURE__ */ t.createElement(s.CountryOptions.EmptyState, null, o("field.phone.country-selector-dropdown.no-result")), i = /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(s.CountryButton.Flag, {
466
466
  className: E.flag
@@ -504,5 +504,5 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
504
504
  }, It));
505
505
  };
506
506
  export {
507
- Qt as P
507
+ Wt as P
508
508
  };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { P as o } from "./phone-input-field-rac-DW0a1pXs.js";
2
+ import { P as o } from "./phone-input-field-rac-32qUvCsC.js";
3
3
  const r = () => /* @__PURE__ */ e.createElement(o, null);
4
4
  export {
5
5
  r as PhoneRAC
@@ -1,20 +1,20 @@
1
- import t, { useMemo as H, useCallback as M, useRef as U } from "react";
2
- import { RicosViewer as K } from "@wix/ricos/viewer";
3
- import _ from "classnames";
4
- import { CheckboxField as z, CheckboxButton as X, NumberField as j, Group as J, Button as Q, Input as W } from "react-aria-components";
5
- import { bn as x, bk as Y, bf as w, bx as Z, bp as ee, R as te, $ as ne, S as ae, V as oe, U as re, Q as se, G as le, u as ie, T as ce } from "./form-Bed4Kfz8.js";
6
- import { f as I, a as b } from "./find-child-C60k4CxG.js";
7
- import { L as ue, g as me } from "./field-label-headless-Yg_1PMSg.js";
1
+ import t, { useMemo as $, useCallback as M, useRef as x } from "react";
2
+ import { RicosViewer as z } from "@wix/ricos/viewer";
3
+ import b from "classnames";
4
+ import { CheckboxField as G, CheckboxButton as W, NumberField as X, Group as j, Button as Q, Input as J } from "react-aria-components";
5
+ import { bo as U, bl as Y, bg as w, by as Z, bq as ee, S as te, a0 as ne, T as ae, W as oe, V as re, R as se, H as le, v as ie, U as ce } from "./form-DHAKwnLt.js";
6
+ import { f as I, a as f } from "./find-child-C60k4CxG.js";
7
+ import { L as ue, g as me } from "./field-label-headless-BakLOu5E.js";
8
8
  import { f as pe } from "./format-currency-BwShJ9vM.js";
9
- import { D as de, E as Ee } from "./field-error-headless-CsYQCsiT.js";
9
+ import { D as de, E as Ee } from "./field-error-headless-E8WjFr_n.js";
10
10
  import { F as ye } from "./fieldset-headless-CD3fds9J.js";
11
- import { g as fe } from "./payment-field-utils-DobiK5Xh.js";
12
- import { S as _e } from "./selection-indicator-XQ8MYHUQ.js";
13
- import { E as be } from "./error-icon-hZxQ6DEy.js";
11
+ import { g as _e } from "./payment-field-utils-DobiK5Xh.js";
12
+ import { S as be } from "./selection-indicator-XQ8MYHUQ.js";
13
+ import { E as fe } from "./error-icon-hZxQ6DEy.js";
14
14
  import { C as Ie } from "./checkbox-indicator-module-classes-6173wvuW.js";
15
15
  import { s as q } from "./field-rac.module-DfEb7pBp.js";
16
16
  import { o as V } from "./options-rac.module-_THNq6Qq.js";
17
- import { u as Oe } from "./use-element-state-class-name-oiKCauK-.js";
17
+ import { u as Oe } from "./use-element-state-class-name-CUZuhFvZ.js";
18
18
  var Le = /* @__PURE__ */ (function(e) {
19
19
  return e.crop = "CROP", e.fit = "FIT", e;
20
20
  })({}), k = /* @__PURE__ */ (function(e) {
@@ -28,10 +28,10 @@ function Ce({ maxItems: e, products: a } = {}) {
28
28
  }
29
29
  const o = ({ children: e }) => {
30
30
  var D;
31
- const { id: a, value: s, onChange: n, disabled: r, readOnly: c, required: y, onBlur: O, onFocus: l, hasError: u, validation: m, FieldLayout: p } = x(), { inputId: v, labelId: N, ariaDescribedBy: h } = Y(), f = I(e, o.Label), g = I(e, o.Options), A = I(e, o.Description), L = I(e, o.Error), i = H(() => s || [], [
31
+ const { id: a, value: s, onChange: n, disabled: r, readOnly: c, required: y, onBlur: O, onFocus: l, hasError: u, validation: m, FieldLayout: p } = U(), { inputId: v, labelId: N, ariaDescribedBy: h } = Y(), _ = I(e, o.Label), g = I(e, o.Options), A = I(e, o.Description), L = I(e, o.Error), i = $(() => s || [], [
32
32
  s
33
33
  ]), T = Ce((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === k.many, F = M((S, R) => {
34
- const d = i.filter((G) => G.productId !== S.productId), B = R ? [
34
+ const d = i.filter((K) => K.productId !== S.productId), B = R ? [
35
35
  ...d,
36
36
  S
37
37
  ] : d;
@@ -42,7 +42,7 @@ const o = ({ children: e }) => {
42
42
  ]);
43
43
  return /* @__PURE__ */ t.createElement(p, {
44
44
  fieldId: a,
45
- renderLabel: () => f,
45
+ renderLabel: () => _,
46
46
  renderInput: () => /* @__PURE__ */ t.createElement(ye, {
47
47
  id: v,
48
48
  ariaLabelledBy: N,
@@ -50,7 +50,7 @@ const o = ({ children: e }) => {
50
50
  required: y,
51
51
  onBlur: O,
52
52
  onFocus: l
53
- }, g ? b(g, {
53
+ }, g ? f(g, {
54
54
  allowMany: T,
55
55
  productValues: i,
56
56
  onProductChange: F,
@@ -60,16 +60,16 @@ const o = ({ children: e }) => {
60
60
  }) : null),
61
61
  renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, A)
62
62
  });
63
- }, $ = ({ children: e, className: a, ...s }) => {
64
- const { allowMany: n, productValues: r, onProductChange: c, disabled: y, readOnly: O, hasError: l } = s, { options: u, validation: m, imageResize: p } = x(), { currency: v } = w(), { t: N } = Z(), h = I(e, o.Option);
63
+ }, H = ({ children: e, className: a, ...s }) => {
64
+ const { allowMany: n, productValues: r, onProductChange: c, disabled: y, readOnly: O, hasError: l } = s, { options: u, validation: m, imageResize: p } = U(), { currency: v } = w(), { t: N } = Z(), h = I(e, o.Option);
65
65
  return /* @__PURE__ */ t.createElement("div", {
66
66
  className: a
67
- }, u == null ? void 0 : u.map((f, g) => {
67
+ }, u == null ? void 0 : u.map((_, g) => {
68
68
  var C, T, F, D, S;
69
- const A = ((S = (D = (F = (T = (C = m == null ? void 0 : m.predefined) == null ? void 0 : C.paymentOptions) == null ? void 0 : T.products) == null ? void 0 : F.find((R) => R.id === f.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : S.price) || "0", L = fe(N, v), i = r.find((R) => R.productId === f.value);
70
- return b(h, {
71
- key: f.id || f.value || f.label,
72
- option: f,
69
+ const A = ((S = (D = (F = (T = (C = m == null ? void 0 : m.predefined) == null ? void 0 : C.paymentOptions) == null ? void 0 : T.products) == null ? void 0 : F.find((R) => R.id === _.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : S.price) || "0", L = _e(N, v), i = r.find((R) => R.productId === _.value);
70
+ return f(h, {
71
+ key: _.id || _.value || _.label,
72
+ option: _,
73
73
  price: A,
74
74
  quantity: i == null ? void 0 : i.quantity,
75
75
  isSelected: !!i,
@@ -84,13 +84,13 @@ const o = ({ children: e }) => {
84
84
  });
85
85
  }));
86
86
  }, E = ({ children: e, className: a, ...s }) => {
87
- const { option: n, price: r, quantity: c = 0, isSelected: y, allowMany: O, onProductChange: l, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: v, imageResize: N, isFirst: h } = s, { id: f } = x(), g = U(null), A = U(null), L = I(e, E.Image), i = I(e, E.Label), C = I(e, E.Price), T = I(e, E.Input), F = I(e, E.Quantity);
87
+ const { option: n, price: r, quantity: c = 0, isSelected: y, allowMany: O, onProductChange: l, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: v, imageResize: N, isFirst: h } = s, { id: _ } = U(), g = x(null), A = x(null), L = I(e, E.Image), i = I(e, E.Label), C = I(e, E.Price), T = I(e, E.Input), F = I(e, E.Quantity);
88
88
  ee(() => {
89
89
  var d;
90
90
  h && ((d = g.current ?? A.current) == null || d.focus({
91
91
  preventScroll: !0
92
92
  }));
93
- }, f);
93
+ }, _);
94
94
  const D = M((d) => {
95
95
  l({
96
96
  productId: n.value,
@@ -115,14 +115,14 @@ const o = ({ children: e }) => {
115
115
  return O ? /* @__PURE__ */ t.createElement("div", {
116
116
  className: a,
117
117
  "data-hook": "product"
118
- }, L ? b(L, {
118
+ }, L ? f(L, {
119
119
  option: n,
120
120
  imageResize: N
121
- }) : null, i ? b(i, {
121
+ }) : null, i ? f(i, {
122
122
  label: n.label
123
- }) : null, C ? b(C, {
123
+ }) : null, C ? f(C, {
124
124
  price: r
125
- }) : null, F ? b(F, {
125
+ }) : null, F ? f(F, {
126
126
  quantity: c,
127
127
  onQuantityChange: S,
128
128
  disabled: u,
@@ -130,25 +130,25 @@ const o = ({ children: e }) => {
130
130
  hasError: p,
131
131
  ariaLabel: R,
132
132
  inputRef: h ? A : void 0
133
- }) : null) : /* @__PURE__ */ t.createElement(z, {
133
+ }) : null) : /* @__PURE__ */ t.createElement(G, {
134
134
  isSelected: y,
135
135
  onChange: D,
136
136
  isDisabled: u,
137
137
  isReadOnly: m,
138
138
  isInvalid: p,
139
139
  "aria-label": R
140
- }, /* @__PURE__ */ t.createElement(X, {
140
+ }, /* @__PURE__ */ t.createElement(W, {
141
141
  ref: g,
142
142
  className: a,
143
143
  "data-hook": "product"
144
- }, ({ isHovered: d, isFocused: B }) => /* @__PURE__ */ t.createElement(t.Fragment, null, L ? b(L, {
144
+ }, ({ isHovered: d, isFocused: B }) => /* @__PURE__ */ t.createElement(t.Fragment, null, L ? f(L, {
145
145
  option: n,
146
146
  imageResize: N
147
- }) : null, i ? b(i, {
147
+ }) : null, i ? f(i, {
148
148
  label: n.label
149
- }) : null, C ? b(C, {
149
+ }) : null, C ? f(C, {
150
150
  price: r
151
- }) : null, b(T, {
151
+ }) : null, f(T, {
152
152
  isSelected: y,
153
153
  isHovered: d,
154
154
  isFocused: B
@@ -195,7 +195,7 @@ const o = ({ children: e }) => {
195
195
  }, [
196
196
  u
197
197
  ]);
198
- return /* @__PURE__ */ t.createElement(j, {
198
+ return /* @__PURE__ */ t.createElement(X, {
199
199
  value: s,
200
200
  onChange: u,
201
201
  minValue: 0,
@@ -206,11 +206,11 @@ const o = ({ children: e }) => {
206
206
  "aria-label": O,
207
207
  className: e,
208
208
  "data-hook": "product-quantity"
209
- }, /* @__PURE__ */ t.createElement(J, {
209
+ }, /* @__PURE__ */ t.createElement(j, {
210
210
  onKeyDown: m
211
211
  }, /* @__PURE__ */ t.createElement(Q, {
212
212
  slot: "decrement"
213
- }, "-"), /* @__PURE__ */ t.createElement(W, {
213
+ }, "-"), /* @__PURE__ */ t.createElement(J, {
214
214
  ref: l
215
215
  }), /* @__PURE__ */ t.createElement(Q, {
216
216
  slot: "increment"
@@ -219,11 +219,11 @@ const o = ({ children: e }) => {
219
219
  E.Image = Re;
220
220
  E.Label = ge;
221
221
  E.Price = Fe;
222
- E.Input = _e;
222
+ E.Input = be;
223
223
  E.Quantity = De;
224
- $.Option = E;
224
+ H.Option = E;
225
225
  o.Label = ue;
226
- o.Options = $;
226
+ o.Options = H;
227
227
  o.Option = E;
228
228
  o.Description = de;
229
229
  o.Error = Ee;
@@ -235,7 +235,7 @@ const Se = "_options_519is_1", Pe = "_option_519is_1", Ne = "_optionInput_519is_
235
235
  optionLabel: Ae,
236
236
  optionPrice: Te,
237
237
  quantity: qe
238
- }, ve = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(K, {
238
+ }, ve = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(z, {
239
239
  content: e,
240
240
  locale: a
241
241
  }), Me = () => {
@@ -244,27 +244,27 @@ const Se = "_options_519is_1", Pe = "_option_519is_1", Ne = "_optionInput_519is_
244
244
  moduleClasses: Ie
245
245
  });
246
246
  return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
247
- className: _(te, q.label)
247
+ className: b(te, q.label)
248
248
  }, /* @__PURE__ */ t.createElement(o.Label.Required, {
249
- className: _(ne, q.requiredMark)
249
+ className: b(ne, q.requiredMark)
250
250
  })), /* @__PURE__ */ t.createElement(o.Options, {
251
- className: _(ae, V.options, P.options)
251
+ className: b(ae, V.options, P.options)
252
252
  }, /* @__PURE__ */ t.createElement(o.Option, {
253
- className: _(q.checkbox, P.option)
253
+ className: b(q.checkbox, P.option)
254
254
  }, /* @__PURE__ */ t.createElement(o.Option.Image, {
255
255
  className: P.optionImage
256
256
  }), /* @__PURE__ */ t.createElement(o.Option.Label, {
257
- className: _(oe, V.optionLabel, P.optionLabel)
257
+ className: b(oe, V.optionLabel, P.optionLabel)
258
258
  }), /* @__PURE__ */ t.createElement(o.Option.Price, {
259
- className: _(re, P.optionPrice)
259
+ className: b(re, P.optionPrice)
260
260
  }), /* @__PURE__ */ t.createElement(o.Option.Input, {
261
- className: (a) => _(e(a), P.optionInput)
261
+ className: (a) => b(e(a), P.optionInput)
262
262
  }), /* @__PURE__ */ t.createElement(o.Option.Quantity, {
263
- className: _(se, q.inputGroup, P.quantity)
263
+ className: b(se, q.inputGroup, P.quantity)
264
264
  }))), /* @__PURE__ */ t.createElement(o.Error, {
265
- className: _(le, q.error)
266
- }, /* @__PURE__ */ t.createElement(be, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
267
- className: _(ie, q.description)
265
+ className: b(le, q.error)
266
+ }, /* @__PURE__ */ t.createElement(fe, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
267
+ className: b(ie, q.description)
268
268
  }, ve));
269
269
  }, Ze = () => /* @__PURE__ */ t.createElement(Me, null);
270
270
  export {
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { R as r } from "./radio-group-field-rac-w8fHpFKJ.js";
2
+ import { R as r } from "./radio-group-field-rac-DI0UgTBr.js";
3
3
  const i = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  i as QuizRadioGroupRAC