@wix/form-elements 1.143.0 → 1.144.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 (110) hide show
  1. package/dist/component/{appointment-rac-BAwonF75.js → appointment-rac-BxrHjvGM.js} +93 -93
  2. package/dist/component/{bookings-address-rac-xhj2n7jK.js → bookings-address-rac-CLWQa4ND.js} +1 -1
  3. package/dist/component/{bookings-email-rac-BGjeAwgm.js → bookings-email-rac-DZemUnFy.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-l392yYAU.js → bookings-first-name-rac-DyGMqRWi.js} +1 -1
  5. package/dist/component/{bookings-header-rac-JwIo7hsJ.js → bookings-header-rac-DmUeRhWl.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CJp81BPl.js → bookings-last-name-rac-DOuCYe0Q.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-BiPklGE_.js → bookings-login-bar-rac-BnmS1sak.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-mQfDJGkK.js → bookings-phone-rac-F5YJaXHy.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-BOfHn2EU.js → bookings-rich-text-rac-DAuqLM8j.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CA6SeM0c.js → checkbox-field-rac-DsQrwgzd.js} +83 -83
  11. package/dist/component/{checkbox-group-field-headless-ChLT0zKA.js → checkbox-group-field-headless-oPw2miey.js} +61 -61
  12. package/dist/component/{checkbox-group-field-rac-_Fkre79S.js → checkbox-group-field-rac-hPscGPkW.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-esBLJZ6Y.js → checkbox-group-rac-DuIn-RKl.js} +1 -1
  14. package/dist/component/{checkbox-rac-C3vXtbJh.js → checkbox-rac-C_-b9_8s.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BuBBBt19.js → contacts-address-rac-CbIN1ubI.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BMBJeVOK.js → contacts-birthdate-rac-B-ek4Puf.js} +1 -1
  17. package/dist/component/{contacts-company-rac-CZl168-E.js → contacts-company-rac-D2xGgOC0.js} +1 -1
  18. package/dist/component/{contacts-email-rac-CJgVzCns.js → contacts-email-rac-CpbAyHUl.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-9ZNYKQeb.js → contacts-first-name-rac-DM0Uki6x.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-KgylQwHW.js → contacts-last-name-rac-DV9wrigX.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-DYr30FLP.js → contacts-phone-rac-mIYYC0y2.js} +1 -1
  22. package/dist/component/{contacts-position-rac-B9BZZ3K9.js → contacts-position-rac-fYTx4IXC.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-DOQb2GLm.js → contacts-subscribe-rac-nm5CFJHt.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-cYE1ehXN.js → contacts-tax-id-rac-D4RFJf-S.js} +1 -1
  25. package/dist/component/{date-availability-BOKvA8w-.js → date-availability-DKQ4Swlg.js} +1 -1
  26. package/dist/component/{date-input-field-rac-BwY53gNr.js → date-input-field-rac-DKZ-7UN1.js} +45 -45
  27. package/dist/component/{date-input-rac-Cgg4QJbB.js → date-input-rac-BbpWo9w0.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-0Ue6uiCM.js → date-picker-field-rac-Bza70SYg.js} +11 -11
  29. package/dist/component/{date-picker-rac-CgICj33f.js → date-picker-rac-Ck7bd17y.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-ChRCMk7_.js → date-time-input-field-rac-DpAx183s.js} +21 -21
  31. package/dist/component/{date-time-input-rac-B8tRZrri.js → date-time-input-rac-CAL-qDqR.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-B_qjx1QD.js → dext-checkbox-group-rac-DLk1zE8Z.js} +4 -4
  33. package/dist/component/{dext-checkbox-rac-Bw9SyhHA.js → dext-checkbox-rac-K0JY8ypt.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-Bzn28zNq.js → dext-date-picker-rac-BIkqhNQ0.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-7Cuk3PoA.js → dext-date-time-input-rac-heYLj9qT.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-Md1VI5pc.js → dext-dropdown-rac-CE-hsE0g.js} +1 -1
  37. package/dist/component/{dext-email-rac-DbHwHGKz.js → dext-email-rac-Djui3aGr.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DIVk3zXL.js → dext-number-input-rac-Up-zsZwY.js} +1 -1
  39. package/dist/component/{dext-phone-rac-ZIya63UJ.js → dext-phone-rac-BnBq1KKf.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-DV1xHkOD.js → dext-radio-group-rac-D8EsvhLV.js} +4 -4
  41. package/dist/component/{dext-rating-input-rac-YRIYgeT4.js → dext-rating-input-rac-BW6NPU1S.js} +1 -1
  42. package/dist/component/{dext-tags-rac-DTJ6Pz_x.js → dext-tags-rac--c_tiq-o.js} +4 -4
  43. package/dist/component/{dext-text-area-rac-V-d9i95A.js → dext-text-area-rac-CKFhfgDq.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-ccrundX-.js → dext-text-input-rac-CEcBfKSe.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-Bd5SZ2U4.js → dext-url-input-rac-C4tT1NeS.js} +1 -1
  46. package/dist/component/{donation-rac-BFmpW-3b.js → donation-rac-Bqo7AUci.js} +52 -52
  47. package/dist/component/{dropdown-field-headless-C2qgeReH.js → dropdown-field-headless-DMQSalL1.js} +22 -22
  48. package/dist/component/{dropdown-field-rac-Bj1YSgpT.js → dropdown-field-rac-C31YjVhV.js} +4 -4
  49. package/dist/component/{dropdown-rac-DfdvX5I5.js → dropdown-rac-B6AZlzZ8.js} +1 -1
  50. package/dist/component/{ecom-address-rac-DOWNQhhX.js → ecom-address-rac-3pW-jse0.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-2ELdC1ql.js → ecom-subscription-checkbox-rac-Ms4JDivZ.js} +5 -5
  52. package/dist/component/{email-input-field-rac-CY0U6vEM.js → email-input-field-rac-UJOSd8si.js} +46 -46
  53. package/dist/component/{events-repeater-rac-C2oo_RZt.js → events-repeater-rac-fs9cQREp.js} +4 -4
  54. package/dist/component/{events-rsvp-rac-BrimIo0r.js → events-rsvp-rac-DRLspNfK.js} +3 -3
  55. package/dist/component/{field-error-headless-r0fX50xw.js → field-error-headless-CyoNrDMA.js} +9 -9
  56. package/dist/component/field-label-headless-vs578Vt6.js +52 -0
  57. package/dist/component/{file-upload-rac-Beb2BcFK.js → file-upload-rac-DDAMgm1b.js} +53 -53
  58. package/dist/component/{fixed-payment-rac-DGFWYMZG.js → fixed-payment-rac-DRs5yPZ8.js} +12 -12
  59. package/dist/component/{form-DtzwuBIo.js → form-D-pcluMZ.js} +373 -341
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +2 -2
  62. package/dist/component/{header-field-rac-CVmGSa0E.js → header-field-rac-BtLFBccj.js} +4 -4
  63. package/dist/component/{header-rac-C3AEJmYN.js → header-rac-CNx4qpAR.js} +1 -1
  64. package/dist/component/{image-choice-rac-Ch-mxLgP.js → image-choice-rac-D-PsWyfU.js} +10 -10
  65. package/dist/component/{index-CmqLlW8X.js → index-B7rRv0cm.js} +43 -43
  66. package/dist/component/{index-CTn6AQ3A.js → index-D4Jdw7jg.js} +2 -2
  67. package/dist/component/{isObjectLike-iyypwAQL.js → isObjectLike-DyNk-Hsj.js} +7 -7
  68. package/dist/component/{multiline-address-field-rac-DJXcb6NG.js → multiline-address-field-rac-CowUg4Dk.js} +94 -94
  69. package/dist/component/{multiline-address-rac-DcZgTx1c.js → multiline-address-rac-CHLN9iqR.js} +1 -1
  70. package/dist/component/{number-input-field-rac-W3TqQGhC.js → number-input-field-rac-Clow9sWB.js} +21 -21
  71. package/dist/component/{number-input-rac-CdXigsba.js → number-input-rac-CeUW4WGL.js} +1 -1
  72. package/dist/component/{password-rac-Dph6984u.js → password-rac-_FBw3XON.js} +7 -7
  73. package/dist/component/{payment-input-rac-D5ARk1lF.js → payment-input-rac-CmeiCGKm.js} +17 -17
  74. package/dist/component/{phone-input-field-rac-BUfe-B2i.js → phone-input-field-rac-PIpEcS6h.js} +24 -24
  75. package/dist/component/{phone-rac-DTiWT1uy.js → phone-rac-D-RF_Dc1.js} +1 -1
  76. package/dist/component/{product-list-rac-1_Q2JYwH.js → product-list-rac-CveI0FCQ.js} +31 -31
  77. package/dist/component/{quiz-radio-group-rac-iyBhi0wJ.js → quiz-radio-group-rac-DmL5sv4m.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-DwfobXBe.js → radio-button-module-classes-D6eJdPov.js} +11 -11
  79. package/dist/component/{radio-group-field-rac-BkKNVwMi.js → radio-group-field-rac-CuTxslBP.js} +4 -4
  80. package/dist/component/{radio-group-rac-CH0nkJ8V.js → radio-group-rac-D1N9mKdI.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-CUUUlgZi.js → rating-input-field-rac-tPHYwerw.js} +12 -12
  82. package/dist/component/{rating-input-rac-8yEiqBR5.js → rating-input-rac-BoYlGaYG.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-DeKU0pwh.js → rich-content-rac.module-BEpM1wGw.js} +3 -3
  84. package/dist/component/{rich-text-field-rac-Cwd-RWTi.js → rich-text-field-rac-DIBDp9fN.js} +4 -4
  85. package/dist/component/{rich-text-rac-C5-jPNYP.js → rich-text-rac-QNvqlXOl.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-DBGAnsut.js → service-dropdown-rac-BUka_sF2.js} +30 -30
  87. package/dist/component/{services-multi-choice-rac-CqEoGsuw.js → services-multi-choice-rac-Dsy5tWby.js} +5 -5
  88. package/dist/component/{signature-rac-Cq3y66Cr.js → signature-rac-K1d_jHlU.js} +37 -37
  89. package/dist/component/submit-button-rac-BRJtuej2.js +228 -0
  90. package/dist/component/{tags-field-rac-CpJ0O9f_.js → tags-field-rac-BaBbtHcw.js} +16 -16
  91. package/dist/component/{tags-rac-BPjw67Po.js → tags-rac-DDg6W18e.js} +1 -1
  92. package/dist/component/{text-area-field-rac-BG6MJuIW.js → text-area-field-rac-CB97Y6o1.js} +9 -9
  93. package/dist/component/{text-area-rac-BAS4F4VC.js → text-area-rac-E091fvmB.js} +1 -1
  94. package/dist/component/{text-input-field-rac-BhMktcEd.js → text-input-field-rac-BiSQ4pDp.js} +3 -3
  95. package/dist/component/{text-input-headless-Bpjd70nh.js → text-input-headless-BKxooAsH.js} +7 -7
  96. package/dist/component/{text-input-rac-Bj21XKGA.js → text-input-rac-N2D8bqU4.js} +1 -1
  97. package/dist/component/{time-input-rac-DBpRHdnX.js → time-input-rac-CMVYeoxi.js} +33 -33
  98. package/dist/component/{url-input-field-rac-B_EMXVWh.js → url-input-field-rac-BWpn4TfK.js} +24 -24
  99. package/dist/component/{url-input-rac-D0Ck-9KV.js → url-input-rac-U19lGKwd.js} +1 -1
  100. package/dist/component/{use-dropdown-option-class-name-CkpHwC6t.js → use-dropdown-option-class-name-DK1HCEOC.js} +2 -2
  101. package/dist/component/{use-dropdown-trigger-class-name-DmDwpAVn.js → use-dropdown-trigger-class-name-XS469pt3.js} +4 -4
  102. package/dist/component/{use-element-state-class-name-BrgdwHYP.js → use-element-state-class-name-BdjEjAk1.js} +3 -3
  103. package/dist/component/{use-hoverable-input-class-name-qVo45l-t.js → use-hoverable-input-class-name-7nSuBlNd.js} +6 -6
  104. package/dist/component/{use-service-options-base-Dlqs4p0Z.js → use-service-options-base-Bxw3_pyC.js} +1 -1
  105. package/dist/component/use-text-input-class-name-BB5fT5S6.js +6 -0
  106. package/dist/form.d.ts +36 -0
  107. package/package.json +2 -2
  108. package/dist/component/field-label-headless-D-kCfg8j.js +0 -52
  109. package/dist/component/submit-button-rac-CKM7yUL4.js +0 -172
  110. package/dist/component/use-text-input-class-name-CP2VJOso.js +0 -6
@@ -1,19 +1,19 @@
1
1
  import { RicosViewer as P } from "@wix/ricos/viewer";
2
2
  import i from "classnames";
3
- import r, { useState as $, useCallback as j, useEffect as G, useRef as Q } from "react";
4
- import { NumberField as U, Input as z } from "react-aria-components";
5
- import { bj as _, bg as S, bt as H, bl as J, R as K, $ as W, G as X, u as Y } from "./form-DtzwuBIo.js";
3
+ import r, { useState as $, useCallback as G, useEffect as Q, useRef as U } from "react";
4
+ import { NumberField as j, Input as z } from "react-aria-components";
5
+ import { bn as _, bk as S, bx as H, bp as J, R as K, $ as W, G as X, u as Y } from "./form-D-pcluMZ.js";
6
6
  import { f as c } from "./find-child-C60k4CxG.js";
7
- import { D as Z, E as w } from "./field-error-headless-r0fX50xw.js";
8
- import { L as ee } from "./field-label-headless-D-kCfg8j.js";
7
+ import { D as Z, E as w } from "./field-error-headless-CyoNrDMA.js";
8
+ import { L as ee } from "./field-label-headless-vs578Vt6.js";
9
9
  import { g as re, c as te } from "./numeric-input-utils-CuBMi4-a.js";
10
10
  import { u as ne } from "./use-invoke-callback-UH73A_J3.js";
11
11
  import { E as ae } from "./error-icon-hZxQ6DEy.js";
12
- import { s as d } from "./field-rac.module-DfEb7pBp.js";
13
- import { u as se } from "./use-text-input-class-name-CP2VJOso.js";
12
+ import { s as p } from "./field-rac.module-DfEb7pBp.js";
13
+ import { u as se } from "./use-text-input-class-name-BB5fT5S6.js";
14
14
  const e = ({ children: t }) => {
15
15
  var F, R, L;
16
- const { id: a, value: s, onChange: l, disabled: p, required: b, readOnly: o, onBlur: E, onFocus: f, FieldLayout: m, hasError: u, validation: n } = _(), { labelId: g } = S(), D = ((F = n == null ? void 0 : n.number) == null ? void 0 : F.multipleOf) || 1, y = (R = n == null ? void 0 : n.number) == null ? void 0 : R.maximum, A = (L = n == null ? void 0 : n.number) == null ? void 0 : L.minimum, x = O(s), [T, I] = $(x), V = ne(E), h = c(t, e.Label), q = c(t, e.Input), M = c(t, e.Description), k = c(t, e.Error), B = j((N) => {
16
+ const { id: a, value: s, onChange: l, disabled: d, required: b, readOnly: o, onBlur: E, onFocus: f, FieldLayout: m, hasError: u, validation: n } = _(), { labelId: x } = S(), D = ((F = n == null ? void 0 : n.number) == null ? void 0 : F.multipleOf) || 1, y = (R = n == null ? void 0 : n.number) == null ? void 0 : R.maximum, A = (L = n == null ? void 0 : n.number) == null ? void 0 : L.minimum, g = O(s), [T, I] = $(g), V = ne(E), h = c(t, e.Label), k = c(t, e.Input), q = c(t, e.Description), M = c(t, e.Error), B = G((N) => {
17
17
  if (N === void 0 || Number.isNaN(N)) {
18
18
  l(""), I(NaN);
19
19
  return;
@@ -24,18 +24,18 @@ const e = ({ children: t }) => {
24
24
  D,
25
25
  l
26
26
  ]);
27
- return G(() => {
27
+ return Q(() => {
28
28
  I(O(s));
29
29
  }, [
30
30
  s
31
31
  ]), /* @__PURE__ */ r.createElement(m, {
32
32
  fieldId: a,
33
33
  renderLabel: () => h,
34
- renderInput: () => /* @__PURE__ */ r.createElement(U, {
35
- "aria-labelledby": g,
34
+ renderInput: () => /* @__PURE__ */ r.createElement(j, {
35
+ "aria-labelledby": x,
36
36
  value: T,
37
37
  onChange: B,
38
- isDisabled: p,
38
+ isDisabled: d,
39
39
  isRequired: b,
40
40
  isReadOnly: o,
41
41
  isInvalid: u,
@@ -43,18 +43,18 @@ const e = ({ children: t }) => {
43
43
  onFocus: f,
44
44
  minValue: A ?? void 0,
45
45
  maxValue: y ?? void 0
46
- }, q),
47
- renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, k, M)
46
+ }, k),
47
+ renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, M, q)
48
48
  });
49
49
  }, le = ({ className: t }) => {
50
50
  var u;
51
- const { t: a } = H(), { inputId: s, ariaDescribedBy: l } = S(), { id: p, placeholder: b, validation: o, label: E, required: f } = _();
51
+ const { t: a } = H(), { inputId: s, ariaDescribedBy: l } = S(), { id: d, placeholder: b, validation: o, label: E, required: f } = _();
52
52
  (u = o == null ? void 0 : o.number) != null && u.multipleOf;
53
- const m = Q(null);
53
+ const m = U(null);
54
54
  return J(() => {
55
55
  var n;
56
56
  (n = m.current) == null || n.focus();
57
- }, p), /* @__PURE__ */ r.createElement(z, {
57
+ }, d), /* @__PURE__ */ r.createElement(z, {
58
58
  ref: m,
59
59
  id: s,
60
60
  "aria-describedby": l,
@@ -76,15 +76,15 @@ const O = (t) => te(t) ?? NaN, oe = ({ content: t, locale: a }) => /* @__PURE__
76
76
  }), Re = () => {
77
77
  const t = se();
78
78
  return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
79
- className: i(K, d.label)
79
+ className: i(K, p.label)
80
80
  }, /* @__PURE__ */ r.createElement(e.Label.Required, {
81
- className: i(W, d.requiredMark)
81
+ className: i(W, p.requiredMark)
82
82
  })), /* @__PURE__ */ r.createElement(e.Input, {
83
83
  className: t
84
84
  }), /* @__PURE__ */ r.createElement(e.Error, {
85
- className: i(X, d.error)
85
+ className: i(X, p.error)
86
86
  }, /* @__PURE__ */ r.createElement(ae, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
87
- className: i(Y, d.description)
87
+ className: i(Y, p.description)
88
88
  }, oe));
89
89
  };
90
90
  export {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { N as r } from "./number-input-field-rac-W3TqQGhC.js";
2
+ import { N as r } from "./number-input-field-rac-Clow9sWB.js";
3
3
  const n = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  n as NumberInputRAC
@@ -1,15 +1,15 @@
1
1
  import e, { useState as N, useRef as S } from "react";
2
2
  import { RicosViewer as x } from "@wix/ricos/viewer";
3
3
  import d from "classnames";
4
- import { bj as E, bg as I, bl as O, bt as A, R as B, $ as V, G as v, u as P } from "./form-DtzwuBIo.js";
5
- import { TextField as M, Group as k, Input as q, Button as j } from "react-aria-components";
4
+ import { bn as E, bk as I, bp as O, bx as A, R as B, $ as V, G as v, u as P } from "./form-D-pcluMZ.js";
5
+ import { TextField as M, Group as k, Input as q, Button as U } from "react-aria-components";
6
6
  import { f as u, a as b } from "./find-child-C60k4CxG.js";
7
- import { D as U, E as G } from "./field-error-headless-r0fX50xw.js";
8
- import { L as H } from "./field-label-headless-D-kCfg8j.js";
7
+ import { D as j, E as G } from "./field-error-headless-CyoNrDMA.js";
8
+ import { L as H } from "./field-label-headless-vs578Vt6.js";
9
9
  import { E as W } from "./error-icon-hZxQ6DEy.js";
10
10
  import { H as Z } from "./custom-focus-class-_483Pkwp.js";
11
11
  import { s as p } from "./field-rac.module-DfEb7pBp.js";
12
- import { u as $ } from "./use-text-input-class-name-CP2VJOso.js";
12
+ import { u as $ } from "./use-text-input-class-name-BB5fT5S6.js";
13
13
  const t = ({ children: o, className: r }) => {
14
14
  const { id: l, value: s, onChange: c, disabled: n, readOnly: m, required: a, hasError: i, onBlur: f, onFocus: C, FieldLayout: _ } = E(), { labelId: y } = I(), [R, D] = N(!1), F = u(o, t.Label), L = u(o, t.Control), T = u(o, t.Description), w = u(o, t.Error);
15
15
  return /* @__PURE__ */ e.createElement(_, {
@@ -59,7 +59,7 @@ const t = ({ children: o, className: r }) => {
59
59
  });
60
60
  }, J = ({ className: o, showPasswordTooltipText: r, hidePasswordTooltipText: l, children: s, ...c }) => {
61
61
  const { isVisible: n, onToggleVisibility: m } = c, { disabled: a } = E(), i = n ? l : r;
62
- return /* @__PURE__ */ e.createElement(j, {
62
+ return /* @__PURE__ */ e.createElement(U, {
63
63
  type: "button",
64
64
  isDisabled: a,
65
65
  onPress: m,
@@ -74,7 +74,7 @@ t.Label = H;
74
74
  t.Control = Q;
75
75
  t.Input = z;
76
76
  t.Toggle = J;
77
- t.Description = U;
77
+ t.Description = j;
78
78
  t.Error = G;
79
79
  const K = (o) => /* @__PURE__ */ e.createElement("svg", {
80
80
  viewBox: "0 0 24 24",
@@ -1,17 +1,17 @@
1
- import r, { useCallback as P, useRef as Q } from "react";
1
+ 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 { 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";
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-D-pcluMZ.js";
6
6
  import { f as u } from "./find-child-C60k4CxG.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";
7
+ import { D as te, E as ne } from "./field-error-headless-CyoNrDMA.js";
8
+ import { L as ae } from "./field-label-headless-vs578Vt6.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-CP2VJOso.js";
14
+ import { u as ue } from "./use-text-input-class-name-BB5fT5S6.js";
15
15
  function ie(e, t) {
16
16
  return {
17
17
  productId: e.id,
@@ -19,7 +19,7 @@ function ie(e, t) {
19
19
  quantity: 1
20
20
  };
21
21
  }
22
- function h(e) {
22
+ function x(e) {
23
23
  if (e == null || e === "")
24
24
  return;
25
25
  const t = Number(String(e).replace(/,/g, "."));
@@ -39,10 +39,10 @@ const n = ({ children: e }) => {
39
39
  c,
40
40
  o,
41
41
  b
42
- ]), B = P((l) => {
42
+ ]), k = P((l) => {
43
43
  b(l);
44
- const R = h(L(l, c)), j = h(_);
45
- if (R !== j) {
44
+ const R = x(L(l, c)), Q = x(_);
45
+ if (R !== Q) {
46
46
  if (R === void 0) {
47
47
  s(null);
48
48
  return;
@@ -57,21 +57,21 @@ const n = ({ children: e }) => {
57
57
  c,
58
58
  _,
59
59
  b
60
- ]), U = u(e, n.Label), k = u(e, n.Input), v = u(e, n.Description), H = u(e, n.Error);
60
+ ]), B = u(e, n.Label), U = u(e, n.Input), v = u(e, n.Description), H = u(e, n.Error);
61
61
  return /* @__PURE__ */ r.createElement(G, {
62
62
  fieldId: t,
63
- renderLabel: () => U,
63
+ renderLabel: () => B,
64
64
  renderInput: () => /* @__PURE__ */ r.createElement(z, {
65
65
  "aria-labelledby": `${M} ${$}`,
66
66
  value: a ? F : "",
67
- onChange: B,
67
+ onChange: k,
68
68
  isDisabled: i,
69
69
  isReadOnly: m,
70
70
  isRequired: I,
71
71
  isInvalid: y,
72
72
  onBlur: q,
73
73
  onFocus: E
74
- }, k),
74
+ }, U),
75
75
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, H, v)
76
76
  });
77
77
  }, f = ({ children: e, className: t }) => {
@@ -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: i, labelId: m, prefixId: I, ariaDescribedBy: y } = D(), o = Q(null);
93
+ const { id: t, placeholder: a, label: s } = N(), { inputId: i, 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();
@@ -111,14 +111,14 @@ n.Label = ae;
111
111
  n.Input = f;
112
112
  n.Description = te;
113
113
  n.Error = ne;
114
- const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", x = {
114
+ const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", h = {
115
115
  inputGroup: de,
116
116
  currency: fe
117
117
  }, Ee = ({ content: e, locale: t }) => /* @__PURE__ */ r.createElement(w, {
118
118
  content: e,
119
119
  locale: t
120
120
  }), be = () => {
121
- const e = ue(x.inputGroup);
121
+ const e = ue(h.inputGroup);
122
122
  return /* @__PURE__ */ r.createElement(n, null, /* @__PURE__ */ r.createElement(n.Label, {
123
123
  className: p(Y, d.label)
124
124
  }, /* @__PURE__ */ r.createElement(n.Label.Required, {
@@ -126,7 +126,7 @@ const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", x = {
126
126
  })), /* @__PURE__ */ r.createElement(n.Input, {
127
127
  className: e
128
128
  }, /* @__PURE__ */ r.createElement(n.Input.Currency, {
129
- className: x.currency
129
+ className: h.currency
130
130
  }), /* @__PURE__ */ r.createElement(n.Input.Value, {
131
131
  className: p(d.innerInput, ce)
132
132
  })), /* @__PURE__ */ r.createElement(n.Error, {
@@ -1,16 +1,16 @@
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 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";
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-D-pcluMZ.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 De, Select as we, 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 we, Select as De, 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-r0fX50xw.js";
9
- import { L as Me } from "./field-label-headless-D-kCfg8j.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, 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";
8
+ import { D as Re, E as xe } from "./field-error-headless-CyoNrDMA.js";
9
+ import { L as Me } from "./field-label-headless-vs578Vt6.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-XS469pt3.js";
13
+ import { V as Ue, u as Ve } from "./use-dropdown-option-class-name-DK1HCEOC.js";
14
14
  import ae, { AsYouType as qe, isValidPhoneNumber as Ge, isSupportedCountry as He } from "libphonenumber-js";
15
15
  import "libphonenumber-js/metadata.min.json";
16
16
  import { C as W } from "./calling-country-codes-PyWuOTmF.js";
@@ -18,7 +18,7 @@ import { C as Ye } from "./chevron-down-icon-CcpVm6B-.js";
18
18
  import { E as ze } from "./error-icon-hZxQ6DEy.js";
19
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-CP2VJOso.js";
21
+ import { u as Ke } from "./use-text-input-class-name-BB5fT5S6.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)
@@ -44,8 +44,8 @@ function X(e, n) {
44
44
  return e;
45
45
  }
46
46
  function Qe() {
47
- const { t: e } = D(), { language: n } = te();
48
- return j(() => Object.keys(W).reduce((o, a) => {
47
+ const { t: e } = w(), { language: n } = te();
48
+ return $(() => Object.keys(W).reduce((o, a) => {
49
49
  const c = W[a], l = H(c), i = e(`locale-dataset.countries.${c.toUpperCase()}`);
50
50
  return l && He(a) && o.push({
51
51
  countryName: i,
@@ -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] = $(e || ""), l = F(U(e ?? null) ?? ""), [i, u] = $(n);
72
+ const [a, c] = j(e || ""), l = F(U(e ?? null) ?? ""), [i, u] = j(n);
73
73
  Ee(() => {
74
74
  c(""), l.current = "", u(n), o("");
75
75
  });
76
- const m = j(() => J(a), [
76
+ const m = $(() => J(a), [
77
77
  a
78
78
  ]);
79
79
  k(() => {
@@ -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 } = 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), [
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), [
150
150
  C,
151
151
  m
152
- ]), p = j(() => d.map((T) => T.shortCountryCode), [
152
+ ]), p = $(() => 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 } = 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
- return /* @__PURE__ */ t.createElement(je, {
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, {
184
184
  isDisabled: a || c,
185
185
  id: m,
186
186
  "aria-label": f,
@@ -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 } = 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);
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);
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 } = w(), [u, m] = $(!1), { t: C } = D(), { selectedCountryCode: d, handleCountryCodeChange: p } = _(), f = o || u && !a && !c;
350
- return /* @__PURE__ */ t.createElement(we, {
349
+ 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;
350
+ return /* @__PURE__ */ t.createElement(De, {
351
351
  "aria-label": C("field.phone.country-code.aria-label"),
352
352
  value: d ?? null,
353
353
  onChange: (y) => p(y),
@@ -364,9 +364,9 @@ const rt = ({ className: e }) => {
364
364
  }));
365
365
  }, st = ({ children: e, ...n }) => {
366
366
  const r = n;
367
- return /* @__PURE__ */ t.createElement(De, null, g(e, s.CountryButton), I(g(e, s.CountryOptions.Modal), r));
367
+ return /* @__PURE__ */ t.createElement(we, 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 } = 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({
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 = 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
370
  hasCountryOptions: N,
371
371
  isHovered: v,
372
372
  isFocusWithin: S
@@ -453,7 +453,7 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
453
453
  className: E.chevron,
454
454
  "aria-hidden": "true"
455
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, {
456
+ 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, {
457
457
  className: r,
458
458
  "aria-label": o("field.phone.country-search-input.aria-label")
459
459
  }, /* @__PURE__ */ t.createElement(ut, {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { P as o } from "./phone-input-field-rac-BUfe-B2i.js";
2
+ import { P as o } from "./phone-input-field-rac-PIpEcS6h.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 x } from "react";
1
+ import t, { useMemo as H, useCallback as M, useRef as U } from "react";
2
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 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
- import { f as I, a as f } from "./find-child-C60k4CxG.js";
7
- import { L as ue, g as me } from "./field-label-headless-D-kCfg8j.js";
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-D-pcluMZ.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-vs578Vt6.js";
8
8
  import { f as pe } from "./format-currency-BwShJ9vM.js";
9
- import { D as de, E as Ee } from "./field-error-headless-r0fX50xw.js";
9
+ import { D as de, E as Ee } from "./field-error-headless-CyoNrDMA.js";
10
10
  import { F as ye } from "./fieldset-headless-CD3fds9J.js";
11
- import { g as be } from "./payment-field-utils-DobiK5Xh.js";
11
+ import { g as fe } from "./payment-field-utils-DobiK5Xh.js";
12
12
  import { S as _e } from "./selection-indicator-XQ8MYHUQ.js";
13
- import { E as fe } from "./error-icon-hZxQ6DEy.js";
13
+ import { E as be } 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-BrgdwHYP.js";
17
+ import { u as Oe } from "./use-element-state-class-name-BdjEjAk1.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,7 +28,7 @@ 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 } = 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 || [], [
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 || [], [
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
34
  const d = i.filter((G) => G.productId !== S.productId), B = R ? [
@@ -42,7 +42,7 @@ const o = ({ children: e }) => {
42
42
  ]);
43
43
  return /* @__PURE__ */ t.createElement(p, {
44
44
  fieldId: a,
45
- renderLabel: () => b,
45
+ renderLabel: () => f,
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 ? f(g, {
53
+ }, g ? b(g, {
54
54
  allowMany: T,
55
55
  productValues: i,
56
56
  onProductChange: F,
@@ -61,15 +61,15 @@ const o = ({ children: e }) => {
61
61
  renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, A)
62
62
  });
63
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);
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);
65
65
  return /* @__PURE__ */ t.createElement("div", {
66
66
  className: a
67
- }, u == null ? void 0 : u.map((b, g) => {
67
+ }, u == null ? void 0 : u.map((f, 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, v), i = r.find((R) => R.productId === b.value);
70
- return f(h, {
71
- key: b.id || b.value || b.label,
72
- option: b,
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,
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: 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);
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);
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
- }, b);
93
+ }, f);
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 ? f(L, {
118
+ }, L ? b(L, {
119
119
  option: n,
120
120
  imageResize: N
121
- }) : null, i ? f(i, {
121
+ }) : null, i ? b(i, {
122
122
  label: n.label
123
- }) : null, C ? f(C, {
123
+ }) : null, C ? b(C, {
124
124
  price: r
125
- }) : null, F ? f(F, {
125
+ }) : null, F ? b(F, {
126
126
  quantity: c,
127
127
  onQuantityChange: S,
128
128
  disabled: u,
@@ -137,18 +137,18 @@ const o = ({ children: e }) => {
137
137
  isReadOnly: m,
138
138
  isInvalid: p,
139
139
  "aria-label": R
140
- }, /* @__PURE__ */ t.createElement(j, {
140
+ }, /* @__PURE__ */ t.createElement(X, {
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 ? f(L, {
144
+ }, ({ isHovered: d, isFocused: B }) => /* @__PURE__ */ t.createElement(t.Fragment, null, L ? b(L, {
145
145
  option: n,
146
146
  imageResize: N
147
- }) : null, i ? f(i, {
147
+ }) : null, i ? b(i, {
148
148
  label: n.label
149
- }) : null, C ? f(C, {
149
+ }) : null, C ? b(C, {
150
150
  price: r
151
- }) : null, f(T, {
151
+ }) : null, b(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(X, {
198
+ return /* @__PURE__ */ t.createElement(j, {
199
199
  value: s,
200
200
  onChange: u,
201
201
  minValue: 0,
@@ -263,7 +263,7 @@ const Se = "_options_519is_1", Pe = "_option_519is_1", Ne = "_optionInput_519is_
263
263
  className: _(se, q.inputGroup, P.quantity)
264
264
  }))), /* @__PURE__ */ t.createElement(o.Error, {
265
265
  className: _(le, q.error)
266
- }, /* @__PURE__ */ t.createElement(fe, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
266
+ }, /* @__PURE__ */ t.createElement(be, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
267
267
  className: _(ie, q.description)
268
268
  }, ve));
269
269
  }, Ze = () => /* @__PURE__ */ t.createElement(Me, null);
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { R as r } from "./radio-group-field-rac-BkKNVwMi.js";
2
+ import { R as r } from "./radio-group-field-rac-CuTxslBP.js";
3
3
  const i = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  i as QuizRadioGroupRAC
@@ -1,15 +1,15 @@
1
1
  import a, { useRef as F, useState as V, useEffect as T, useCallback as B } from "react";
2
- import { RadioGroup as H, RadioField as k, RadioButton as A, TextField as G, Input as P } from "react-aria-components";
3
- import { bj as g, bg as $, bt as D, bl as x } from "./form-DtzwuBIo.js";
2
+ import { RadioGroup as H, RadioField as k, RadioButton as x, TextField as A, Input as G } from "react-aria-components";
3
+ import { bn as g, bk as P, bx as D, bp as $ } from "./form-D-pcluMZ.js";
4
4
  import { f as d, a as v } from "./find-child-C60k4CxG.js";
5
- import { D as U, E as j } from "./field-error-headless-r0fX50xw.js";
6
- import { L as M } from "./field-label-headless-D-kCfg8j.js";
5
+ import { D as U, E as M } from "./field-error-headless-CyoNrDMA.js";
6
+ import { L as j } from "./field-label-headless-vs578Vt6.js";
7
7
  import { S as w } from "./selection-indicator-XQ8MYHUQ.js";
8
8
  const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ?? n.label) === t), S = (e, t) => !!t && !z(e, t), J = (e, t) => {
9
9
  const l = t ? t.length + 2 : 0;
10
10
  return e.slice(l);
11
11
  }, i = ({ children: e, className: t }) => {
12
- const { id: n, value: l, onChange: O, disabled: p, readOnly: f, required: b, onBlur: E, onFocus: m, hasError: r, FieldLayout: c, options: o } = g(), { inputId: h, labelId: C, ariaDescribedBy: I } = $(), s = d(e, i.Label), _ = d(e, i.Options), R = d(e, i.Description), q = d(e, i.Error), N = S(o, l) ? L : l || null;
12
+ const { id: n, value: l, onChange: O, disabled: p, readOnly: f, required: b, onBlur: E, onFocus: m, hasError: r, FieldLayout: c, options: o } = g(), { inputId: h, labelId: C, ariaDescribedBy: I } = P(), s = d(e, i.Label), _ = d(e, i.Options), R = d(e, i.Description), q = d(e, i.Error), N = S(o, l) ? L : l || null;
13
13
  return /* @__PURE__ */ a.createElement(c, {
14
14
  fieldId: n,
15
15
  renderLabel: () => v(s, {
@@ -33,7 +33,7 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
33
33
  });
34
34
  }, K = ({ children: e, className: t }) => {
35
35
  const { options: n, addOther: l, addOtherLabel: O, id: p, numberOfColumns: f, hasError: b } = g(), { t: E } = D(), m = d(e, i.Option), r = F(null), c = O || E("add-other.default-other-option-label") || L;
36
- return x(() => {
36
+ return $(() => {
37
37
  var o;
38
38
  (o = r.current) == null || o.focus();
39
39
  }, p), /* @__PURE__ */ a.createElement("div", {
@@ -59,7 +59,7 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
59
59
  className: t
60
60
  }, /* @__PURE__ */ a.createElement(k, {
61
61
  value: l
62
- }, /* @__PURE__ */ a.createElement(A, {
62
+ }, /* @__PURE__ */ a.createElement(x, {
63
63
  ref: f,
64
64
  className: C
65
65
  }, ({ isSelected: s, isHovered: _, isFocused: R }) => /* @__PURE__ */ a.createElement(a.Fragment, null, v(c, {
@@ -90,13 +90,13 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
90
90
  l,
91
91
  o
92
92
  ]);
93
- return /* @__PURE__ */ a.createElement(G, {
93
+ return /* @__PURE__ */ a.createElement(A, {
94
94
  "aria-label": o,
95
95
  value: h,
96
96
  onChange: I,
97
97
  isDisabled: f,
98
98
  isReadOnly: b
99
- }, /* @__PURE__ */ a.createElement(P, {
99
+ }, /* @__PURE__ */ a.createElement(G, {
100
100
  ref: r,
101
101
  className: e,
102
102
  placeholder: O,
@@ -107,11 +107,11 @@ u.Label = Q;
107
107
  u.Input = W;
108
108
  u.Control = w;
109
109
  u.OtherInput = X;
110
- i.Label = M;
110
+ i.Label = j;
111
111
  i.Options = K;
112
112
  i.Option = u;
113
113
  i.Description = U;
114
- i.Error = j;
114
+ i.Error = M;
115
115
  const Y = "_labelImage_1bq4s_1", Z = "_option_1bq4s_26", ee = "_optionInput_1bq4s_32", te = "_optionControl_1bq4s_50", oe = "_optionControlHover_1bq4s_72", ne = "_optionControlSelected_1bq4s_90", le = "_optionLabel_1bq4s_125", y = {
116
116
  labelImage: Y,
117
117
  option: Z,
@@ -1,13 +1,13 @@
1
1
  import { RicosViewer as m } from "@wix/ricos/viewer";
2
2
  import t from "classnames";
3
3
  import e from "react";
4
- import { a, s, R as n } from "./radio-button-module-classes-DwfobXBe.js";
4
+ import { a, s, R as n } from "./radio-button-module-classes-D6eJdPov.js";
5
5
  import { E as c } from "./error-icon-hZxQ6DEy.js";
6
6
  import { s as r } from "./field-rac.module-DfEb7pBp.js";
7
- import { R as i, $ as E, W as p, X as R, G as O, u as _, Y as I } from "./form-DtzwuBIo.js";
7
+ import { R as i, $ as E, W as p, X as R, G as O, u as _, Y as I } from "./form-D-pcluMZ.js";
8
8
  import { o as L } from "./options-rac.module-_THNq6Qq.js";
9
- import { u } from "./use-element-state-class-name-BrgdwHYP.js";
10
- import { u as N } from "./use-text-input-class-name-CP2VJOso.js";
9
+ import { u } from "./use-element-state-class-name-BdjEjAk1.js";
10
+ import { u as N } from "./use-text-input-class-name-BB5fT5S6.js";
11
11
  const D = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
12
12
  content: o,
13
13
  locale: l
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { R as r } from "./radio-group-field-rac-BkKNVwMi.js";
2
+ import { R as r } from "./radio-group-field-rac-CuTxslBP.js";
3
3
  const R = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  R as RadioGroupRAC