@wix/form-elements 1.141.0 → 1.142.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 (107) hide show
  1. package/dist/component/{appointment-rac-CBgveDfU.js → appointment-rac-BAwonF75.js} +85 -85
  2. package/dist/component/{bookings-address-rac-BJqKQGM7.js → bookings-address-rac-xhj2n7jK.js} +1 -1
  3. package/dist/component/{bookings-email-rac-BEBnQQtI.js → bookings-email-rac-BGjeAwgm.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CcLe5bPh.js → bookings-first-name-rac-l392yYAU.js} +1 -1
  5. package/dist/component/{bookings-header-rac-C2CRP5vX.js → bookings-header-rac-JwIo7hsJ.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-D9EPB2o-.js → bookings-last-name-rac-CJp81BPl.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DaDoExJQ.js → bookings-login-bar-rac-BiPklGE_.js} +4 -4
  8. package/dist/component/{bookings-phone-rac-C4rfNh9m.js → bookings-phone-rac-mQfDJGkK.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CHupwGUy.js → bookings-rich-text-rac-BOfHn2EU.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-JA4-Un3S.js → checkbox-field-rac-CA6SeM0c.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-ikYtTUSV.js → checkbox-group-field-headless-ChLT0zKA.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-CkkSPle4.js → checkbox-group-field-rac-_Fkre79S.js} +7 -7
  13. package/dist/component/{checkbox-group-rac-BYXab1TV.js → checkbox-group-rac-esBLJZ6Y.js} +1 -1
  14. package/dist/component/{checkbox-rac-MsaKpbsM.js → checkbox-rac-C3vXtbJh.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BG5KM6Mu.js → contacts-address-rac-BuBBBt19.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-CIJtY0ml.js → contacts-birthdate-rac-BMBJeVOK.js} +1 -1
  17. package/dist/component/{contacts-company-rac-qQxsdn-g.js → contacts-company-rac-CZl168-E.js} +1 -1
  18. package/dist/component/{contacts-email-rac-Cb_zFMQd.js → contacts-email-rac-CJgVzCns.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-L0IsiQmM.js → contacts-first-name-rac-9ZNYKQeb.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BNgF4RBx.js → contacts-last-name-rac-KgylQwHW.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BhOsgxwZ.js → contacts-phone-rac-DYr30FLP.js} +1 -1
  22. package/dist/component/{contacts-position-rac-B2JM9fSY.js → contacts-position-rac-B9BZZ3K9.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-CVSWNhBY.js → contacts-subscribe-rac-DOQb2GLm.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-BtdNdxYS.js → contacts-tax-id-rac-cYE1ehXN.js} +1 -1
  25. package/dist/component/{date-availability-BVSO1Gbz.js → date-availability-BOKvA8w-.js} +1 -1
  26. package/dist/component/{date-input-field-rac-DFCPKpI2.js → date-input-field-rac-BwY53gNr.js} +47 -47
  27. package/dist/component/{date-input-rac-CcC5JdTU.js → date-input-rac-Cgg4QJbB.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-CAr7r5k3.js → date-picker-field-rac-0Ue6uiCM.js} +5 -5
  29. package/dist/component/{date-picker-rac-0WEGa3ZQ.js → date-picker-rac-CgICj33f.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-DPlFlkrF.js → date-time-input-field-rac-ChRCMk7_.js} +60 -60
  31. package/dist/component/{date-time-input-rac-c0dm0pdf.js → date-time-input-rac-B8tRZrri.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-B1db5jv3.js → dext-checkbox-group-rac-B_qjx1QD.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-C03w68Ta.js → dext-checkbox-rac-Bw9SyhHA.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-DTjysj_k.js → dext-date-picker-rac-Bzn28zNq.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-CnL2o6YR.js → dext-date-time-input-rac-7Cuk3PoA.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-CJxC-Wr0.js → dext-dropdown-rac-Md1VI5pc.js} +1 -1
  37. package/dist/component/{dext-email-rac-CewA7bXc.js → dext-email-rac-DbHwHGKz.js} +1 -1
  38. package/dist/component/{dext-number-input-rac--_aUE6C8.js → dext-number-input-rac-DIVk3zXL.js} +1 -1
  39. package/dist/component/{dext-phone-rac-_ObccrwR.js → dext-phone-rac-ZIya63UJ.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-DXBCI2mT.js → dext-radio-group-rac-DV1xHkOD.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-CS3VY3B3.js → dext-rating-input-rac-YRIYgeT4.js} +1 -1
  42. package/dist/component/{dext-tags-rac-CyTea3vl.js → dext-tags-rac-DTJ6Pz_x.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-C_qN16CX.js → dext-text-area-rac-V-d9i95A.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-DhqfiI_U.js → dext-text-input-rac-ccrundX-.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-CxI4MbMH.js → dext-url-input-rac-Bd5SZ2U4.js} +1 -1
  46. package/dist/component/{donation-rac-BZmT89_j.js → donation-rac-BFmpW-3b.js} +23 -23
  47. package/dist/component/{dropdown-field-headless-CO82AsyC.js → dropdown-field-headless-C2qgeReH.js} +5 -5
  48. package/dist/component/{dropdown-field-rac-BqPHSq7k.js → dropdown-field-rac-Bj1YSgpT.js} +9 -9
  49. package/dist/component/{dropdown-rac-pOLj9tRE.js → dropdown-rac-DfdvX5I5.js} +1 -1
  50. package/dist/component/{ecom-address-rac-DBQ0rVmy.js → ecom-address-rac-DOWNQhhX.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-BJoMvht8.js → ecom-subscription-checkbox-rac-2ELdC1ql.js} +2 -2
  52. package/dist/component/{email-input-field-rac-DTqYXW-m.js → email-input-field-rac-CY0U6vEM.js} +34 -34
  53. package/dist/component/{events-repeater-rac-3gkcVOh6.js → events-repeater-rac-C2oo_RZt.js} +4 -4
  54. package/dist/component/{events-rsvp-rac-DYMvnjuz.js → events-rsvp-rac-BrimIo0r.js} +8 -8
  55. package/dist/component/{field-error-headless-CQ8PHjtA.js → field-error-headless-r0fX50xw.js} +1 -1
  56. package/dist/component/{field-label-headless-BgAx-Enb.js → field-label-headless-D-kCfg8j.js} +1 -1
  57. package/dist/component/{file-upload-rac-B8TgLoCU.js → file-upload-rac-Beb2BcFK.js} +160 -160
  58. package/dist/component/{fixed-payment-rac-CRupF7Fu.js → fixed-payment-rac-DGFWYMZG.js} +9 -9
  59. package/dist/component/{form-BzzldBcB.js → form-DtzwuBIo.js} +296 -293
  60. package/dist/component/form.js +1 -1
  61. package/dist/component/{header-field-rac-iFuM4bGC.js → header-field-rac-CVmGSa0E.js} +2 -2
  62. package/dist/component/{header-rac-CLOeCzLk.js → header-rac-C3AEJmYN.js} +1 -1
  63. package/dist/component/{image-choice-rac-C6UBnrn3.js → image-choice-rac-Ch-mxLgP.js} +16 -16
  64. package/dist/component/{index-BHGQWZ7f.js → index-CTn6AQ3A.js} +2 -2
  65. package/dist/component/{index-CtMQ3oqe.js → index-CmqLlW8X.js} +4 -4
  66. package/dist/component/{isObjectLike-BVz2g6jF.js → isObjectLike-iyypwAQL.js} +1 -1
  67. package/dist/component/{multiline-address-field-rac-CKBpkEET.js → multiline-address-field-rac-DJXcb6NG.js} +41 -41
  68. package/dist/component/{multiline-address-rac-DcGF1aWF.js → multiline-address-rac-DcZgTx1c.js} +1 -1
  69. package/dist/component/{number-input-field-rac-CODTSfX-.js → number-input-field-rac-W3TqQGhC.js} +20 -20
  70. package/dist/component/{number-input-rac-ByT6DN8A.js → number-input-rac-CdXigsba.js} +1 -1
  71. package/dist/component/{password-rac-Bwnpd70V.js → password-rac-Dph6984u.js} +19 -19
  72. package/dist/component/{payment-input-rac-DmfJZmgO.js → payment-input-rac-D5ARk1lF.js} +23 -23
  73. package/dist/component/{phone-input-field-rac-B2exX67y.js → phone-input-field-rac-BUfe-B2i.js} +55 -55
  74. package/dist/component/{phone-rac-9HksdhZY.js → phone-rac-DTiWT1uy.js} +1 -1
  75. package/dist/component/{product-list-rac-DnhtTpJC.js → product-list-rac-1_Q2JYwH.js} +32 -32
  76. package/dist/component/{quiz-radio-group-rac-BNVLQ2YS.js → quiz-radio-group-rac-iyBhi0wJ.js} +1 -1
  77. package/dist/component/{radio-button-module-classes-D2nPj405.js → radio-button-module-classes-DwfobXBe.js} +3 -3
  78. package/dist/component/{radio-group-field-rac-BT657aHX.js → radio-group-field-rac-BkKNVwMi.js} +8 -8
  79. package/dist/component/{radio-group-rac-yjr7rBFf.js → radio-group-rac-CH0nkJ8V.js} +1 -1
  80. package/dist/component/{rating-input-field-rac-DJzVLTkF.js → rating-input-field-rac-CUUUlgZi.js} +27 -27
  81. package/dist/component/{rating-input-rac-Cpzm_Rbk.js → rating-input-rac-8yEiqBR5.js} +1 -1
  82. package/dist/component/{rich-content-rac.module-B8WTFbve.js → rich-content-rac.module-DeKU0pwh.js} +1 -1
  83. package/dist/component/{rich-text-field-rac-DCiBRkow.js → rich-text-field-rac-Cwd-RWTi.js} +2 -2
  84. package/dist/component/{rich-text-rac-DiP1GwaU.js → rich-text-rac-C5-jPNYP.js} +1 -1
  85. package/dist/component/{service-dropdown-rac-D5YlC7mU.js → service-dropdown-rac-DBGAnsut.js} +37 -37
  86. package/dist/component/{services-multi-choice-rac-D5uwtGzk.js → services-multi-choice-rac-CqEoGsuw.js} +12 -12
  87. package/dist/component/{signature-rac-g7pBfp7A.js → signature-rac-Cq3y66Cr.js} +36 -36
  88. package/dist/component/{submit-button-rac-WVz4yWjl.js → submit-button-rac-CKM7yUL4.js} +2 -2
  89. package/dist/component/{tags-field-rac-BS7qlHyA.js → tags-field-rac-CpJ0O9f_.js} +15 -15
  90. package/dist/component/{tags-rac-CQGlk8GO.js → tags-rac-BPjw67Po.js} +1 -1
  91. package/dist/component/{text-area-field-rac-B2rsUGoZ.js → text-area-field-rac-BG6MJuIW.js} +16 -16
  92. package/dist/component/{text-area-rac-CwJXAFKH.js → text-area-rac-BAS4F4VC.js} +1 -1
  93. package/dist/component/{text-input-field-rac-CiZ83ULN.js → text-input-field-rac-BhMktcEd.js} +5 -5
  94. package/dist/component/{text-input-headless-C56J6s10.js → text-input-headless-Bpjd70nh.js} +3 -3
  95. package/dist/component/{text-input-rac-BMSWPbrZ.js → text-input-rac-Bj21XKGA.js} +1 -1
  96. package/dist/component/{time-input-rac-DrKC1wiN.js → time-input-rac-DBpRHdnX.js} +12 -12
  97. package/dist/component/{url-input-field-rac-HPvjYmsV.js → url-input-field-rac-B_EMXVWh.js} +11 -11
  98. package/dist/component/{url-input-rac-gQIszvK3.js → url-input-rac-D0Ck-9KV.js} +1 -1
  99. package/dist/component/{use-dropdown-option-class-name-nZCgStzg.js → use-dropdown-option-class-name-CkpHwC6t.js} +21 -21
  100. package/dist/component/{use-dropdown-trigger-class-name-Ba9Ej9xC.js → use-dropdown-trigger-class-name-DmDwpAVn.js} +2 -2
  101. package/dist/component/{use-element-state-class-name-CEMjabjh.js → use-element-state-class-name-BrgdwHYP.js} +1 -1
  102. package/dist/component/{use-hoverable-input-class-name-BSiPBu4i.js → use-hoverable-input-class-name-qVo45l-t.js} +2 -2
  103. package/dist/component/{use-service-options-base-DSkh5Ayp.js → use-service-options-base-Dlqs4p0Z.js} +1 -1
  104. package/dist/component/use-text-input-class-name-CP2VJOso.js +6 -0
  105. package/dist/form.d.ts +12 -2
  106. package/package.json +2 -2
  107. package/dist/component/use-text-input-class-name-B2pSCrTD.js +0 -6
@@ -1,17 +1,17 @@
1
1
  import r, { useCallback as P, useRef as Q } from "react";
2
- import { RicosViewer as Y } from "@wix/ricos/viewer";
2
+ import { RicosViewer as w } from "@wix/ricos/viewer";
3
3
  import p from "classnames";
4
- import { TextField as w, Group as z, Input as J } from "react-aria-components";
5
- import { bj as R, bg as D, bb as T, bt as K, bl as W, N as X, Y as Z, G as ee, u as re } from "./form-BzzldBcB.js";
4
+ import { TextField as z, Group as J, Input as K } from "react-aria-components";
5
+ import { bj as N, bg as D, bb as T, bt as W, bl as X, R as Y, $ as Z, G as ee, u as re } from "./form-DtzwuBIo.js";
6
6
  import { f as u } from "./find-child-C60k4CxG.js";
7
- import { D as te, E as ne } from "./field-error-headless-CQ8PHjtA.js";
8
- import { L as ae } from "./field-label-headless-BgAx-Enb.js";
7
+ import { D as te, E as ne } from "./field-error-headless-r0fX50xw.js";
8
+ import { L as ae } from "./field-label-headless-D-kCfg8j.js";
9
9
  import { f as L, 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 ue } from "./use-text-input-class-name-B2pSCrTD.js";
14
+ import { u as ue } from "./use-text-input-class-name-CP2VJOso.js";
15
15
  function ie(e, t) {
16
16
  return {
17
17
  productId: e.id,
@@ -27,11 +27,11 @@ function h(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: i, readOnly: m, required: I, hasError: y, onBlur: o, onFocus: E, FieldLayout: G, validation: C } = R(), { labelId: M, prefixId: q } = 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: i, readOnly: m, required: I, hasError: y, onBlur: o, onFocus: E, FieldLayout: G, validation: C } = N(), { labelId: M, 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({
31
31
  sourceValue: _,
32
32
  format: (l) => L(String(l ?? ""), c),
33
33
  regionalFormat: c
34
- }), $ = P(() => {
34
+ }), q = P(() => {
35
35
  const l = L(F, c);
36
36
  b(l || ""), o == null || o();
37
37
  }, [
@@ -41,14 +41,14 @@ const n = ({ children: e }) => {
41
41
  b
42
42
  ]), B = P((l) => {
43
43
  b(l);
44
- const N = h(L(l, c)), j = h(_);
45
- if (N !== j) {
46
- if (N === void 0) {
44
+ const R = h(L(l, c)), j = h(_);
45
+ if (R !== j) {
46
+ if (R === void 0) {
47
47
  s(null);
48
48
  return;
49
49
  }
50
50
  s([
51
- ie(S, N)
51
+ ie(S, R)
52
52
  ]);
53
53
  }
54
54
  }, [
@@ -61,28 +61,28 @@ const n = ({ children: e }) => {
61
61
  return /* @__PURE__ */ r.createElement(G, {
62
62
  fieldId: t,
63
63
  renderLabel: () => U,
64
- renderInput: () => /* @__PURE__ */ r.createElement(w, {
65
- "aria-labelledby": `${M} ${q}`,
64
+ renderInput: () => /* @__PURE__ */ r.createElement(z, {
65
+ "aria-labelledby": `${M} ${$}`,
66
66
  value: a ? F : "",
67
67
  onChange: B,
68
68
  isDisabled: i,
69
69
  isReadOnly: m,
70
70
  isRequired: I,
71
71
  isInvalid: y,
72
- onBlur: $,
72
+ onBlur: q,
73
73
  onFocus: E
74
74
  }, k),
75
75
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, H, v)
76
76
  });
77
77
  }, f = ({ children: e, className: t }) => {
78
- const { disabled: a, hasError: s } = R(), i = u(e, f.Currency), m = u(e, f.Value);
79
- return /* @__PURE__ */ r.createElement(z, {
78
+ const { disabled: a, hasError: s } = N(), i = u(e, f.Currency), m = u(e, f.Value);
79
+ return /* @__PURE__ */ r.createElement(J, {
80
80
  className: t,
81
81
  isDisabled: a,
82
82
  isInvalid: s
83
83
  }, i, m);
84
84
  }, me = ({ className: e }) => {
85
- const { currency: t } = T(), { t: a } = K(), { prefixId: s } = D();
85
+ const { currency: t } = T(), { t: a } = W(), { prefixId: s } = D();
86
86
  return t ? /* @__PURE__ */ r.createElement("span", {
87
87
  id: s,
88
88
  "aria-hidden": !1,
@@ -90,11 +90,11 @@ 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 } = R(), { inputId: i, labelId: m, prefixId: I, ariaDescribedBy: y } = D(), o = Q(null);
94
- return W(() => {
93
+ const { id: t, placeholder: a, label: s } = N(), { inputId: i, labelId: m, prefixId: I, ariaDescribedBy: y } = D(), o = Q(null);
94
+ return X(() => {
95
95
  var E;
96
96
  (E = o.current) == null || E.focus();
97
- }, t), /* @__PURE__ */ r.createElement(J, {
97
+ }, t), /* @__PURE__ */ r.createElement(K, {
98
98
  ref: o,
99
99
  id: i,
100
100
  className: e,
@@ -114,13 +114,13 @@ n.Error = ne;
114
114
  const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", x = {
115
115
  inputGroup: de,
116
116
  currency: fe
117
- }, Ee = ({ content: e, locale: t }) => /* @__PURE__ */ r.createElement(Y, {
117
+ }, Ee = ({ content: e, locale: t }) => /* @__PURE__ */ r.createElement(w, {
118
118
  content: e,
119
119
  locale: t
120
120
  }), be = () => {
121
121
  const e = ue(x.inputGroup);
122
122
  return /* @__PURE__ */ r.createElement(n, null, /* @__PURE__ */ r.createElement(n.Label, {
123
- className: p(X, d.label)
123
+ className: p(Y, d.label)
124
124
  }, /* @__PURE__ */ r.createElement(n.Label.Required, {
125
125
  className: p(Z, d.requiredMark)
126
126
  })), /* @__PURE__ */ r.createElement(n.Input, {
@@ -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 j, useState as $, useRef as F, useEffect as k, useCallback as Z, createContext as ee, useContext as G, useId as de } from "react";
4
- import { b2 as ye, bt as w, bb as te, bs as Ee, bj as D, bg as ne, bl as fe, N as ge, Y as he, M as be, O as Oe, G as Ne, u as _e } from "./form-BzzldBcB.js";
3
+ import t, { useMemo as j, useState as $, useRef as F, useEffect as k, useCallback as Q, createContext as ee, useContext as G, useId as de } from "react";
4
+ import { b2 as ye, bt as D, bb as te, bs as Ee, bj as w, bg as ne, bl as fe, R as ge, $ as he, Q as be, x as Oe, G as _e, u as Ne } from "./form-DtzwuBIo.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-CQ8PHjtA.js";
9
- import { L as Me } from "./field-label-headless-BgAx-Enb.js";
8
+ import { D as Re, E as xe } from "./field-error-headless-r0fX50xw.js";
9
+ import { L as Me } from "./field-label-headless-D-kCfg8j.js";
10
10
  import { N as Te, S as je } from "./non-modal-popover-D-u13tmp.js";
11
11
  import { u as $e } from "./use-invoke-callback-UH73A_J3.js";
12
- import { a as Ae, u as ke } from "./use-dropdown-trigger-class-name-Ba9Ej9xC.js";
13
- import { V as Ue, u as Ve } from "./use-dropdown-option-class-name-nZCgStzg.js";
14
- import ae, { AsYouType as qe, isValidPhoneNumber as Ge, isSupportedCountry as Ye } from "libphonenumber-js";
12
+ import { a as Ae, u as ke } from "./use-dropdown-trigger-class-name-DmDwpAVn.js";
13
+ import { V as Ue, u as Ve } from "./use-dropdown-option-class-name-CkpHwC6t.js";
14
+ import ae, { AsYouType as qe, isValidPhoneNumber as Ge, isSupportedCountry as He } from "libphonenumber-js";
15
15
  import "libphonenumber-js/metadata.min.json";
16
- import { C as Q } from "./calling-country-codes-PyWuOTmF.js";
17
- import { C as He } from "./chevron-down-icon-CcpVm6B-.js";
16
+ import { C as W } from "./calling-country-codes-PyWuOTmF.js";
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 W } from "./custom-focus-class-_483Pkwp.js";
19
+ import { H as Z } 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-B2pSCrTD.js";
21
+ import { u as Ke } from "./use-text-input-class-name-CP2VJOso.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 Y(e) {
29
+ function H(e) {
30
30
  var n;
31
31
  return e && ((n = ye.getCountryByKey(e)) == null ? void 0 : n.dialCode);
32
32
  }
@@ -43,11 +43,11 @@ function X(e, n) {
43
43
  }
44
44
  return e;
45
45
  }
46
- function Ze() {
47
- const { t: e } = w(), { language: n } = te();
48
- return j(() => Object.keys(Q).reduce((o, a) => {
49
- const c = Q[a], l = Y(c), i = e(`locale-dataset.countries.${c.toUpperCase()}`);
50
- return l && Ye(a) && o.push({
46
+ function Qe() {
47
+ const { t: e } = D(), { language: n } = te();
48
+ return j(() => 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({
51
51
  countryName: i,
52
52
  longCountryCode: c,
53
53
  shortCountryCode: a,
@@ -58,10 +58,10 @@ function Ze() {
58
58
  n
59
59
  ]);
60
60
  }
61
- function Qe(e, n) {
61
+ function We(e, n) {
62
62
  return e.filter((r) => n && n.length > 0 ? n.includes(r.shortCountryCode) : !0);
63
63
  }
64
- function We(e, n) {
64
+ function Ze(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
  }
@@ -92,20 +92,20 @@ function Je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
92
92
  m,
93
93
  n
94
94
  ]);
95
- const C = Z((p) => {
95
+ const C = Q((p) => {
96
96
  if (c(p), !p) {
97
97
  l.current = "", o(null);
98
98
  return;
99
99
  }
100
100
  const f = J(p);
101
101
  u((y) => {
102
- const L = f || y || ((r == null ? void 0 : r.length) === 1 ? r[0] : void 0), _ = U(X(p, L));
103
- return l.current = _ ?? "", o(_), f || y;
102
+ const L = f || y || ((r == null ? void 0 : r.length) === 1 ? r[0] : void 0), N = U(X(p, L));
103
+ return l.current = N ?? "", o(N), f || y;
104
104
  });
105
105
  }, [
106
106
  r,
107
107
  o
108
- ]), d = Z((p) => {
108
+ ]), d = Q((p) => {
109
109
  u(p), c((f) => {
110
110
  const y = U(X(f, p));
111
111
  return l.current = y ?? "", o(y), f;
@@ -120,12 +120,12 @@ function Je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
120
120
  handleCountryCodeChange: d
121
121
  };
122
122
  }
123
- const se = /* @__PURE__ */ ee(null), N = () => {
123
+ const se = /* @__PURE__ */ ee(null), _ = () => {
124
124
  const e = G(se);
125
125
  if (!e)
126
126
  throw new Error("Phone input components must be used within PhoneInput component");
127
127
  return e;
128
- }, ce = /* @__PURE__ */ ee(null), H = () => {
128
+ }, ce = /* @__PURE__ */ ee(null), Y = () => {
129
129
  const e = G(ce);
130
130
  if (!e)
131
131
  throw new Error("Option sub-components must be used within Option component");
@@ -146,12 +146,12 @@ const se = /* @__PURE__ */ ee(null), N = () => {
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] = $(null), m = (P = (S = l == null ? void 0 : l.string) == null ? void 0 : S.phoneOptions) == null ? void 0 : P.allowedCountryCodes, C = Ze(), d = j(() => Qe(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 = Qe(), d = j(() => We(C, m), [
150
150
  C,
151
151
  m
152
152
  ]), p = j(() => d.map((T) => T.shortCountryCode), [
153
153
  d
154
- ]), { currentValue: f, selectedCountryCode: y, handlePhoneChange: L, handleCountryCodeChange: _ } = Je({
154
+ ]), { currentValue: f, selectedCountryCode: y, handlePhoneChange: L, handleCountryCodeChange: N } = Je({
155
155
  value: r,
156
156
  defaultCountryCode: c,
157
157
  allowedCountryCodes: p,
@@ -160,7 +160,7 @@ const se = /* @__PURE__ */ ee(null), N = () => {
160
160
  currentValue: f,
161
161
  selectedCountryCode: y,
162
162
  handlePhoneChange: L,
163
- handleCountryCodeChange: _,
163
+ handleCountryCodeChange: N,
164
164
  countryCodes: p,
165
165
  countries: d,
166
166
  popoverContainer: i
@@ -179,7 +179,7 @@ const se = /* @__PURE__ */ ee(null), N = () => {
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 } = N(), m = de(), C = i ? u.find((y) => y.shortCountryCode === i) : void 0, d = C && Y(C.longCountryCode) || "", p = l("field.phone.country-code.aria-label"), f = C ? `${p}, ${C.countryName}, ${d}` : p;
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 && H(C.longCountryCode) || "", p = l("field.phone.country-code.aria-label"), f = C ? `${p}, ${C.countryName}, ${d}` : p;
183
183
  return /* @__PURE__ */ t.createElement(je, {
184
184
  isDisabled: a || c,
185
185
  id: m,
@@ -189,13 +189,13 @@ const se = /* @__PURE__ */ ee(null), N = () => {
189
189
  "data-invalid": o || void 0
190
190
  }, e);
191
191
  }, Xe = ({ className: e }) => {
192
- const { selectedCountryCode: n, countries: r } = N(), o = r.find((a) => a.shortCountryCode === n);
192
+ const { selectedCountryCode: n, countries: r } = _(), o = r.find((a) => a.shortCountryCode === n);
193
193
  return o ? /* @__PURE__ */ t.createElement(z, {
194
194
  className: e,
195
195
  longCountryCode: o.longCountryCode
196
196
  }) : null;
197
197
  }, et = ({ children: e, className: n }) => {
198
- const { selectedCountryCode: r, countries: o } = N();
198
+ const { selectedCountryCode: r, countries: o } = _();
199
199
  return o.some((c) => c.shortCountryCode === r) ? null : /* @__PURE__ */ t.createElement("span", {
200
200
  className: n
201
201
  }, e);
@@ -203,7 +203,7 @@ const se = /* @__PURE__ */ ee(null), N = () => {
203
203
  K.Flag = Xe;
204
204
  K.EmptyState = et;
205
205
  const b = ({ children: e, className: n, "aria-label": r, placement: o, offset: a, ...c }) => {
206
- const { triggerRef: l, optionsRef: i, isForcedOpen: u, isOpen: m } = c, { popoverContainer: C } = N(), d = g(e, b.Search);
206
+ const { triggerRef: l, optionsRef: i, isForcedOpen: u, isOpen: m } = c, { popoverContainer: C } = _(), d = g(e, b.Search);
207
207
  if (!m)
208
208
  return null;
209
209
  const p = /* @__PURE__ */ t.createElement(le, {
@@ -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 } = N(), m = G(Le);
225
+ const { optionsRef: l } = c, { selectedCountryCode: i, handleCountryCodeChange: u } = _(), m = G(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 } = N(), 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(Ue, {
249
249
  isForcedOpen: r === !0,
250
250
  ...n,
251
251
  renderEmptyState: l ? () => l : void 0
252
252
  }, o.map((u) => {
253
- const m = Y(u.longCountryCode) || "";
253
+ const m = H(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 && We(d, m);
265
+ return !!d && Ze(d, m);
266
266
  }
267
267
  }, r ? I(c, {
268
268
  autoFocus: !1
@@ -303,18 +303,18 @@ const A = ({ children: e, className: n, ...r }) => {
303
303
  value: i
304
304
  }, u));
305
305
  }, ie = ({ className: e }) => {
306
- const { longCountryCode: n } = H();
306
+ const { longCountryCode: n } = Y();
307
307
  return /* @__PURE__ */ t.createElement(z, {
308
308
  className: e,
309
309
  longCountryCode: n
310
310
  });
311
311
  }, me = ({ className: e }) => {
312
- const { countryName: n } = H();
312
+ const { countryName: n } = Y();
313
313
  return /* @__PURE__ */ t.createElement("span", {
314
314
  className: e
315
315
  }, n);
316
316
  }, pe = ({ className: e }) => {
317
- const { dialingCode: n } = H();
317
+ const { dialingCode: n } = Y();
318
318
  return /* @__PURE__ */ t.createElement("span", {
319
319
  className: e
320
320
  }, n);
@@ -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 } = N(), 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({
@@ -346,8 +346,8 @@ const rt = ({ className: e }) => {
346
346
  className: e
347
347
  });
348
348
  }, at = ({ children: e, ...n }) => {
349
- const r = n, { isForcedOpen: o } = r, { disabled: a, readOnly: c, required: l, hasError: i } = D(), [u, m] = $(!1), { t: C } = w(), { selectedCountryCode: d, handleCountryCodeChange: p } = N(), f = o || u && !a && !c;
350
- return /* @__PURE__ */ t.createElement(De, {
349
+ 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;
350
+ return /* @__PURE__ */ t.createElement(we, {
351
351
  "aria-label": C("field.phone.country-code.aria-label"),
352
352
  value: d ?? null,
353
353
  onChange: (y) => p(y),
@@ -364,10 +364,10 @@ const rt = ({ className: e }) => {
364
364
  }));
365
365
  }, st = ({ children: e, ...n }) => {
366
366
  const r = n;
367
- return /* @__PURE__ */ t.createElement(we, null, g(e, s.CountryButton), I(g(e, s.CountryOptions.Modal), r));
367
+ return /* @__PURE__ */ t.createElement(De, null, g(e, s.CountryButton), I(g(e, s.CountryOptions.Modal), r));
368
368
  }, ct = ({ children: e, className: n }) => {
369
- const r = F(null), o = F(null), a = F(!1), { id: c, disabled: l, hasError: i, showFlag: u, onFocus: m, onBlur: C } = D(), d = $e(C), { countries: p } = N(), f = g(e, s.CountryDrawer), y = g(e, s.CountryPopover), L = g(e, s.PhoneNumber), _ = p.length > 1, B = Ae(c) && !!y && _, R = typeof n == "function" ? ({ isHovered: v, isFocusWithin: S }) => n({
370
- hasCountryOptions: _,
369
+ 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({
370
+ hasCountryOptions: N,
371
371
  isHovered: v,
372
372
  isFocusWithin: S
373
373
  }) : n, x = {
@@ -429,7 +429,7 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
429
429
  }, /* @__PURE__ */ t.createElement("path", {
430
430
  fillRule: "evenodd",
431
431
  d: "M6.6108,14.3887 C5.5718,13.3497 4.9998,11.9687 4.9998,10.4997 C4.9998,9.0317 5.5718,7.6507 6.6108,6.6117 C7.6498,5.5727 9.0308,4.9997 10.4998,4.9997 C11.9688,4.9997 13.3498,5.5727 14.3888,6.6117 C15.4278,7.6507 15.9998,9.0317 15.9998,10.4997 C15.9998,11.9687 15.4278,13.3497 14.3888,14.3887 C13.3498,15.4277 11.9688,15.9997 10.4998,15.9997 C9.0308,15.9997 7.6498,15.4277 6.6108,14.3887 L6.6108,14.3887 Z M20.0028,19.2957 L15.4328,14.7247 C16.4438,13.5477 16.9998,12.0687 16.9998,10.4997 C16.9998,8.7637 16.3238,7.1317 15.0958,5.9047 C13.8688,4.6767 12.2358,3.9997 10.4998,3.9997 C8.7638,3.9997 7.1318,4.6767 5.9038,5.9047 C4.6758,7.1317 3.9998,8.7637 3.9998,10.4997 C3.9998,12.2367 4.6758,13.8677 5.9038,15.0957 C7.1318,16.3237 8.7638,16.9997 10.4998,16.9997 C12.0688,16.9997 13.5478,16.4437 14.7258,15.4317 L19.2958,20.0027 L20.0028,19.2957 Z"
432
- })), it = "_control_o9wij_1", mt = "_countryButton_o9wij_9", pt = "_drawerButton_o9wij_25", Ct = "_popoverButton_o9wij_34", dt = "_chevron_o9wij_39", yt = "_globeIcon_o9wij_48", Et = "_searchIcon_o9wij_56", ft = "_flag_o9wij_61", gt = "_option_o9wij_67", ht = "_phoneNumber_o9wij_80", bt = "_countryOptions_o9wij_106", Ot = "_countrySearch_o9wij_123", Nt = "_mobileDrawer_o9wij_131", _t = "_name_o9wij_140", St = "_code_o9wij_144", Lt = "_mobileOverlay_o9wij_161", E = {
432
+ })), it = "_control_o9wij_1", mt = "_countryButton_o9wij_9", pt = "_drawerButton_o9wij_25", Ct = "_popoverButton_o9wij_34", dt = "_chevron_o9wij_39", yt = "_globeIcon_o9wij_48", Et = "_searchIcon_o9wij_56", ft = "_flag_o9wij_61", gt = "_option_o9wij_67", ht = "_phoneNumber_o9wij_80", bt = "_countryOptions_o9wij_106", Ot = "_countrySearch_o9wij_123", _t = "_mobileDrawer_o9wij_131", Nt = "_name_o9wij_140", St = "_code_o9wij_144", Lt = "_mobileOverlay_o9wij_161", E = {
433
433
  control: it,
434
434
  countryButton: mt,
435
435
  drawerButton: pt,
@@ -442,8 +442,8 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
442
442
  phoneNumber: ht,
443
443
  countryOptions: bt,
444
444
  countrySearch: Ot,
445
- mobileDrawer: Nt,
446
- name: _t,
445
+ mobileDrawer: _t,
446
+ name: Nt,
447
447
  code: St,
448
448
  mobileOverlay: Lt
449
449
  }, It = ({ content: e, locale: n }) => /* @__PURE__ */ t.createElement(Ce, {
@@ -452,14 +452,14 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
452
452
  }), vt = () => /* @__PURE__ */ t.createElement("span", {
453
453
  className: E.chevron,
454
454
  "aria-hidden": "true"
455
- }, /* @__PURE__ */ t.createElement(He, null)), Zt = () => {
456
- const e = Ve(O.selectOptionWithoutFocusRing, E.option, W), n = ke(E.control), r = Ke(E.countrySearch), { t: o } = w(), { PortalContainer: a } = te(), c = /* @__PURE__ */ t.createElement(s.CountryOptions.Search, {
455
+ }, /* @__PURE__ */ t.createElement(Ye, null)), Qt = () => {
456
+ const e = Ve(O.selectOptionWithoutFocusRing, E.option, Z), n = ke(E.control), r = Ke(E.countrySearch), { t: o } = D(), { PortalContainer: a } = te(), c = /* @__PURE__ */ t.createElement(s.CountryOptions.Search, {
457
457
  className: r,
458
458
  "aria-label": o("field.phone.country-search-input.aria-label")
459
459
  }, /* @__PURE__ */ t.createElement(ut, {
460
460
  className: E.searchIcon
461
461
  }), /* @__PURE__ */ t.createElement(s.CountryOptions.Search.Input, {
462
- className: h(O.innerInput, W),
462
+ className: h(O.innerInput, Z),
463
463
  placeholder: o("field.phone.country-search-input.placeholder")
464
464
  })), 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, {
465
465
  className: E.flag
@@ -497,11 +497,11 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
497
497
  }, c, l, u)), /* @__PURE__ */ t.createElement(s.PhoneNumber, {
498
498
  className: h(O.innerInput, E.phoneNumber)
499
499
  })), /* @__PURE__ */ t.createElement(s.Error, {
500
- className: h(Ne, O.error)
500
+ className: h(_e, O.error)
501
501
  }, /* @__PURE__ */ t.createElement(ze, null), /* @__PURE__ */ t.createElement(s.Error.Text, null)), /* @__PURE__ */ t.createElement(s.Description, {
502
- className: h(_e, O.description)
502
+ className: h(Ne, O.description)
503
503
  }, It));
504
504
  };
505
505
  export {
506
- Zt as P
506
+ Qt as P
507
507
  };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { P as o } from "./phone-input-field-rac-B2exX67y.js";
2
+ import { P as o } from "./phone-input-field-rac-BUfe-B2i.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 K, useCallback as v, useRef as U } from "react";
2
- import { RicosViewer as $ } from "@wix/ricos/viewer";
1
+ import t, { useMemo as H, useCallback as M, useRef as x } from "react";
2
+ import { RicosViewer as K } from "@wix/ricos/viewer";
3
3
  import _ from "classnames";
4
- import { CheckboxField as z, CheckboxButton as j, NumberField as X, Group as Y, Button as Q, Input as J } from "react-aria-components";
5
- import { bj as x, bg as W, bb as V, bt as Z, bl as ee, N as te, Y as ne, P as ae, S as oe, R as re, M as se, G as le, u as ie, Q as ce } from "./form-BzzldBcB.js";
4
+ import { CheckboxField as z, CheckboxButton as j, NumberField as X, Group as J, Button as Q, Input as W } from "react-aria-components";
5
+ import { bj as U, bg as Y, bb as w, bt as Z, bl 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-DtzwuBIo.js";
6
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-BgAx-Enb.js";
7
+ import { L as ue, g as me } from "./field-label-headless-D-kCfg8j.js";
8
8
  import { f as pe } from "./format-currency-BwShJ9vM.js";
9
- import { D as de, E as Ee } from "./field-error-headless-CQ8PHjtA.js";
9
+ import { D as de, E as Ee } from "./field-error-headless-r0fX50xw.js";
10
10
  import { F as ye } from "./fieldset-headless-CD3fds9J.js";
11
11
  import { g as be } from "./payment-field-utils-DobiK5Xh.js";
12
12
  import { S as _e } from "./selection-indicator-XQ8MYHUQ.js";
13
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
- import { o as w } from "./options-rac.module-_THNq6Qq.js";
17
- import { u as Oe } from "./use-element-state-class-name-CEMjabjh.js";
16
+ import { o as V } from "./options-rac.module-_THNq6Qq.js";
17
+ import { u as Oe } from "./use-element-state-class-name-BrgdwHYP.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: M, labelId: N, ariaDescribedBy: h } = W(), b = I(e, o.Label), g = I(e, o.Options), A = I(e, o.Description), L = I(e, o.Error), i = K(() => 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(), b = I(e, o.Label), g = I(e, o.Options), A = I(e, o.Description), L = I(e, o.Error), i = H(() => s || [], [
32
32
  s
33
- ]), T = Ce((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === k.many, F = v((S, R) => {
34
- const d = i.filter((H) => H.productId !== S.productId), B = R ? [
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 ? [
35
35
  ...d,
36
36
  S
37
37
  ] : d;
@@ -44,7 +44,7 @@ const o = ({ children: e }) => {
44
44
  fieldId: a,
45
45
  renderLabel: () => b,
46
46
  renderInput: () => /* @__PURE__ */ t.createElement(ye, {
47
- id: M,
47
+ id: v,
48
48
  ariaLabelledBy: N,
49
49
  ariaDescribedBy: h,
50
50
  required: y,
@@ -60,13 +60,13 @@ const o = ({ children: e }) => {
60
60
  }) : null),
61
61
  renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, A)
62
62
  });
63
- }, G = ({ 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: M } = V(), { t: N } = Z(), h = I(e, o.Option);
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 } = U(), { currency: v } = w(), { t: N } = Z(), h = I(e, o.Option);
65
65
  return /* @__PURE__ */ t.createElement("div", {
66
66
  className: a
67
67
  }, u == null ? void 0 : u.map((b, 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 === b.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : S.price) || "0", L = be(N, M), i = r.find((R) => R.productId === b.value);
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 === b.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : S.price) || "0", L = be(N, v), i = r.find((R) => R.productId === b.value);
70
70
  return f(h, {
71
71
  key: b.id || b.value || b.label,
72
72
  option: b,
@@ -84,14 +84,14 @@ 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: M, imageResize: N, isFirst: h } = s, { id: b } = 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: b } = 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
93
  }, b);
94
- const D = v((d) => {
94
+ const D = M((d) => {
95
95
  l({
96
96
  productId: n.value,
97
97
  price: r,
@@ -101,7 +101,7 @@ const o = ({ children: e }) => {
101
101
  l,
102
102
  n.value,
103
103
  r
104
- ]), S = v((d) => {
104
+ ]), S = M((d) => {
105
105
  l({
106
106
  productId: n.value,
107
107
  price: r,
@@ -111,7 +111,7 @@ const o = ({ children: e }) => {
111
111
  l,
112
112
  n.value,
113
113
  r
114
- ]), R = `${n.label} ${M} ${r}`;
114
+ ]), R = `${n.label} ${v} ${r}`;
115
115
  return O ? /* @__PURE__ */ t.createElement("div", {
116
116
  className: a,
117
117
  "data-hook": "product"
@@ -176,7 +176,7 @@ const o = ({ children: e }) => {
176
176
  "data-hook": "product-label"
177
177
  }, s || "");
178
178
  }, Fe = ({ className: e, ...a }) => {
179
- const { price: s } = a, { currency: n, regionalFormat: r } = V(), c = pe({
179
+ const { price: s } = a, { currency: n, regionalFormat: r } = w(), c = pe({
180
180
  amount: s,
181
181
  currency: n == null ? void 0 : n.code,
182
182
  locale: r
@@ -186,11 +186,11 @@ const o = ({ children: e }) => {
186
186
  "data-hook": "product-price"
187
187
  }, c);
188
188
  }, De = ({ className: e, ...a }) => {
189
- const { quantity: s, onQuantityChange: n, disabled: r, readOnly: c, hasError: y, ariaLabel: O, inputRef: l } = a, u = v((p) => {
189
+ const { quantity: s, onQuantityChange: n, disabled: r, readOnly: c, hasError: y, ariaLabel: O, inputRef: l } = a, u = M((p) => {
190
190
  n(p < 0 ? 0 : p);
191
191
  }, [
192
192
  n
193
- ]), m = v((p) => {
193
+ ]), m = M((p) => {
194
194
  p.key === "Home" && (p.preventDefault(), u(0));
195
195
  }, [
196
196
  u
@@ -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(Y, {
209
+ }, /* @__PURE__ */ t.createElement(J, {
210
210
  onKeyDown: m
211
211
  }, /* @__PURE__ */ t.createElement(Q, {
212
212
  slot: "decrement"
213
- }, "-"), /* @__PURE__ */ t.createElement(J, {
213
+ }, "-"), /* @__PURE__ */ t.createElement(W, {
214
214
  ref: l
215
215
  }), /* @__PURE__ */ t.createElement(Q, {
216
216
  slot: "increment"
@@ -221,9 +221,9 @@ E.Label = ge;
221
221
  E.Price = Fe;
222
222
  E.Input = _e;
223
223
  E.Quantity = De;
224
- G.Option = E;
224
+ $.Option = E;
225
225
  o.Label = ue;
226
- o.Options = G;
226
+ o.Options = $;
227
227
  o.Option = E;
228
228
  o.Description = de;
229
229
  o.Error = Ee;
@@ -235,10 +235,10 @@ 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
- }, Me = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement($, {
238
+ }, ve = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(K, {
239
239
  content: e,
240
240
  locale: a
241
- }), ve = () => {
241
+ }), Me = () => {
242
242
  const e = Oe({
243
243
  globalClasses: ce,
244
244
  moduleClasses: Ie
@@ -248,13 +248,13 @@ const Se = "_options_519is_1", Pe = "_option_519is_1", Ne = "_optionInput_519is_
248
248
  }, /* @__PURE__ */ t.createElement(o.Label.Required, {
249
249
  className: _(ne, q.requiredMark)
250
250
  })), /* @__PURE__ */ t.createElement(o.Options, {
251
- className: _(ae, w.options, P.options)
251
+ className: _(ae, V.options, P.options)
252
252
  }, /* @__PURE__ */ t.createElement(o.Option, {
253
253
  className: _(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, w.optionLabel, P.optionLabel)
257
+ className: _(oe, V.optionLabel, P.optionLabel)
258
258
  }), /* @__PURE__ */ t.createElement(o.Option.Price, {
259
259
  className: _(re, P.optionPrice)
260
260
  }), /* @__PURE__ */ t.createElement(o.Option.Input, {
@@ -265,8 +265,8 @@ const Se = "_options_519is_1", Pe = "_option_519is_1", Ne = "_optionInput_519is_
265
265
  className: _(le, q.error)
266
266
  }, /* @__PURE__ */ t.createElement(fe, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
267
267
  className: _(ie, q.description)
268
- }, Me));
269
- }, Ze = () => /* @__PURE__ */ t.createElement(ve, null);
268
+ }, ve));
269
+ }, Ze = () => /* @__PURE__ */ t.createElement(Me, null);
270
270
  export {
271
271
  Ze as ProductListRAC
272
272
  };
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { R as r } from "./radio-group-field-rac-BT657aHX.js";
2
+ import { R as r } from "./radio-group-field-rac-BkKNVwMi.js";
3
3
  const i = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  i as QuizRadioGroupRAC