@wix/form-elements 1.113.0 → 1.114.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 (109) hide show
  1. package/dist/component/{appointment-rac-BZ9sCf_L.js → appointment-rac-DB5qRsIN.js} +204 -204
  2. package/dist/component/{bookings-address-rac-DDisJZwl.js → bookings-address-rac-D_TiEBCS.js} +1 -1
  3. package/dist/component/{bookings-email-rac-ovewChXn.js → bookings-email-rac-CnuNzKzB.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CyudJnHy.js → bookings-first-name-rac-CJlHncEH.js} +1 -1
  5. package/dist/component/{bookings-header-rac-BSN_BoC0.js → bookings-header-rac-CJ2zaC3p.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-SdX5IANy.js → bookings-last-name-rac-Bm4U8oN4.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-COQ2BOsY.js → bookings-login-bar-rac-3ZHGtHwE.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-DlUfTzEz.js → bookings-phone-rac-pnck0K81.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-Dx0uxbQc.js → bookings-rich-text-rac-CnTF8Vf0.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-DueJINhA.js → checkbox-field-rac-BibRtzvr.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-wj9ITlbE.js → checkbox-group-field-headless-B-c-7mfP.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-CrD849TZ.js → checkbox-group-field-rac-4LVlM83p.js} +8 -10
  13. package/dist/component/{checkbox-group-rac-Wdz1ShJh.js → checkbox-group-rac-DtKJqhfZ.js} +1 -1
  14. package/dist/component/{checkbox-rac-BC7A8y2w.js → checkbox-rac-BCcSFRuj.js} +1 -1
  15. package/dist/component/{contacts-address-rac-DoWo8zyH.js → contacts-address-rac-DMxBARdp.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-CEXkyOuk.js → contacts-birthdate-rac-CYl_4jS_.js} +1 -1
  17. package/dist/component/{contacts-company-rac-CYaVpLCk.js → contacts-company-rac-CksPQX7x.js} +1 -1
  18. package/dist/component/{contacts-email-rac-teBI-Rpu.js → contacts-email-rac-BFZ1UFjL.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-BOPuOgk1.js → contacts-first-name-rac-BRI3j67R.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-DdRhuv9q.js → contacts-last-name-rac-B7EM45sk.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BMiop0kR.js → contacts-phone-rac-BhXt3qey.js} +1 -1
  22. package/dist/component/{contacts-position-rac-C8iM62rN.js → contacts-position-rac-CmF_panE.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-CkToH-f2.js → contacts-subscribe-rac-DCezIm0y.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-JM0KJre8.js → contacts-tax-id-rac-Sv0Yzx5G.js} +1 -1
  25. package/dist/component/{date-availability-DJyvNJ6w.js → date-availability-BCydK-T5.js} +1 -1
  26. package/dist/component/{date-input-field-rac-CStB2jP7.js → date-input-field-rac-KVHLsUOt.js} +42 -42
  27. package/dist/component/{date-input-rac-DUSJH8am.js → date-input-rac-BMDi95xl.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-6xffgnXB.js → date-picker-field-rac-B4Q7dyvM.js} +5 -5
  29. package/dist/component/{date-picker-rac-Dpe0w0G6.js → date-picker-rac-RtAg78AP.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-CX39V3G1.js → date-time-input-field-rac-BhjYbmKL.js} +32 -32
  31. package/dist/component/{date-time-input-rac-DBVMIbom.js → date-time-input-rac-DNAYgPqx.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-CAxyCWQY.js → dext-checkbox-group-rac-B2QNQmGW.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-CRBzElbv.js → dext-checkbox-rac-Qc27trxC.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-DNzXwBkg.js → dext-date-picker-rac-DRAarTeN.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-D2W3buJP.js → dext-date-time-input-rac-Dlhazq4O.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-CTTreT77.js → dext-dropdown-rac-DR-8xYfz.js} +1 -1
  37. package/dist/component/{dext-email-rac-BwI4-hML.js → dext-email-rac-C4_sJMjZ.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DT5pQiC3.js → dext-number-input-rac-C_T8FSm8.js} +1 -1
  39. package/dist/component/{dext-phone-rac-MA6wyUxM.js → dext-phone-rac-CZO1hIHJ.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-3PYEgYHn.js → dext-radio-group-rac-C2qHeolg.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-I3e9k3Tp.js → dext-rating-input-rac-CX6z5cEp.js} +1 -1
  42. package/dist/component/{dext-tags-rac-Bf4tEUAW.js → dext-tags-rac-CL6eim3H.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-5oOAM6zJ.js → dext-text-area-rac-B3s2RBH0.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-8nHhvQfO.js → dext-text-input-rac-GeSBd9pz.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-DSAfDqx1.js → dext-url-input-rac-gLnhSj9e.js} +1 -1
  46. package/dist/component/{donation-rac-DJiD7Fel.js → donation-rac-CT__F2Q7.js} +70 -70
  47. package/dist/component/{dropdown-field-headless-B_W8kD-t.js → dropdown-field-headless-NTFuCOLG.js} +4 -4
  48. package/dist/component/{dropdown-field-rac-IDVaMgoc.js → dropdown-field-rac-BjLuDeYQ.js} +3 -3
  49. package/dist/component/{dropdown-rac-I2ZO66jF.js → dropdown-rac-BCEkYpfm.js} +1 -1
  50. package/dist/component/{ecom-address-rac-B1knDuog.js → ecom-address-rac-CvnJK1t4.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-BQPJb2kl.js → ecom-subscription-checkbox-rac-DF0yT8Xc.js} +2 -2
  52. package/dist/component/{email-input-field-rac-DsjMnxGw.js → email-input-field-rac-D516Urul.js} +3 -3
  53. package/dist/component/{events-repeater-rac-CT7scvgS.js → events-repeater-rac-BMm1sHSF.js} +4 -4
  54. package/dist/component/events-rsvp-rac-EuK-80dr.js +48 -0
  55. package/dist/component/{field-error-headless-DRkkbv__.js → field-error-headless-CijTssZX.js} +1 -1
  56. package/dist/component/{field-label-headless-m633nF93.js → field-label-headless-D5nW8IPL.js} +1 -1
  57. package/dist/component/{file-upload-rac-DaExm5ny.js → file-upload-rac-CKHWtIyC.js} +4 -4
  58. package/dist/component/{fixed-payment-rac-BglZ8zc0.js → fixed-payment-rac-Gh-AYPvD.js} +3 -3
  59. package/dist/component/{form-CY-iFZdC.js → form-ug6JXjA8.js} +69 -69
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +1 -1
  62. package/dist/component/{header-field-rac-B6Mzqr3b.js → header-field-rac-BOfE3kQP.js} +2 -2
  63. package/dist/component/{header-rac-CB2NDeCJ.js → header-rac-DK-wmljx.js} +1 -1
  64. package/dist/component/{image-choice-rac-gtYrnTGg.js → image-choice-rac-Z4Bf2PEM.js} +54 -57
  65. package/dist/component/{index-wR-OU2AH.js → index-DTPJaILI.js} +4 -4
  66. package/dist/component/{index-Ozpoh9do.js → index-Dedbx25s.js} +2 -2
  67. package/dist/component/{isObjectLike-DsBVSQ_O.js → isObjectLike-_ZXuJgiI.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-Z4hKy_B_.js → multiline-address-field-rac-BuzVvgiq.js} +7 -7
  69. package/dist/component/{multiline-address-rac-DWV0BZHX.js → multiline-address-rac-3oThDhLI.js} +1 -1
  70. package/dist/component/{number-input-field-rac-DKpSb1S_.js → number-input-field-rac-CyYDQY_P.js} +4 -4
  71. package/dist/component/{number-input-rac-Di7Q8CH9.js → number-input-rac-B6lkd3Ux.js} +1 -1
  72. package/dist/component/options-rac.module-_THNq6Qq.js +7 -0
  73. package/dist/component/{password-rac-B9RT0izw.js → password-rac-sVxPXrGd.js} +4 -4
  74. package/dist/component/{payment-input-rac-DdGNnPcd.js → payment-input-rac-DEtEvgaM.js} +4 -4
  75. package/dist/component/{phone-input-field-rac-B-5gHBXY.js → phone-input-field-rac-Bj6gYAIn.js} +6 -6
  76. package/dist/component/{phone-rac-CmZwJyH7.js → phone-rac-D6uxCSG-.js} +1 -1
  77. package/dist/component/{product-list-rac-BInJ4cw_.js → product-list-rac--XkErO-j.js} +5 -5
  78. package/dist/component/{quiz-radio-group-rac-B1EIBOt5.js → quiz-radio-group-rac-Cxhp2mQV.js} +1 -1
  79. package/dist/component/radio-button-module-classes-CX8cTuqj.js +131 -0
  80. package/dist/component/{radio-group-field-rac-DAwCG8w2.js → radio-group-field-rac-Duu_EH1m.js} +15 -16
  81. package/dist/component/{radio-group-rac-CExbY0aw.js → radio-group-rac-Dksg8iEU.js} +1 -1
  82. package/dist/component/{rating-input-field-rac-DTeubyLu.js → rating-input-field-rac-BUQdT5vs.js} +4 -4
  83. package/dist/component/{rating-input-rac-P7Fdwrm3.js → rating-input-rac-AiePlWfl.js} +1 -1
  84. package/dist/component/{rich-content-rac.module-DgQubdPj.js → rich-content-rac.module-Dw6wAyWa.js} +1 -1
  85. package/dist/component/{rich-text-field-rac-8dkTMWKw.js → rich-text-field-rac-C2F4XmHl.js} +2 -2
  86. package/dist/component/{rich-text-rac-C6u_hF5R.js → rich-text-rac-DBqxSGfX.js} +1 -1
  87. package/dist/component/{service-dropdown-rac-CTSCew5q.js → service-dropdown-rac-DOsSqpp4.js} +4 -4
  88. package/dist/component/{services-multi-choice-rac-BUFJHq-l.js → services-multi-choice-rac-a1t5dGyv.js} +27 -29
  89. package/dist/component/{signature-rac-yO924Qfv.js → signature-rac-BZxhmfGi.js} +3 -3
  90. package/dist/component/{submit-button-rac-BurhcqZP.js → submit-button-rac-e4UsJuTX.js} +1 -1
  91. package/dist/component/{tags-field-rac-qbNQcwnE.js → tags-field-rac-DZeZdN2B.js} +54 -54
  92. package/dist/component/{tags-rac-DVHcpxNG.js → tags-rac-tOZ1UsBq.js} +1 -1
  93. package/dist/component/{text-area-field-rac-BKhGX0CL.js → text-area-field-rac-DWcy1mUr.js} +4 -4
  94. package/dist/component/{text-area-rac-CHHEDeUX.js → text-area-rac-BNNYJaYU.js} +1 -1
  95. package/dist/component/{text-input-field-rac-BGitxCuC.js → text-input-field-rac-D8b68TP0.js} +3 -3
  96. package/dist/component/{text-input-headless-BBn1G2s9.js → text-input-headless-CY2dvZqY.js} +3 -3
  97. package/dist/component/{text-input-rac-CHX-U7Kp.js → text-input-rac-BflmvAp3.js} +1 -1
  98. package/dist/component/{time-input-rac-Bp6B2gO3.js → time-input-rac-B1xcZeK6.js} +4 -4
  99. package/dist/component/{url-input-field-rac-CPibLAWz.js → url-input-field-rac-DVXFTNlr.js} +4 -4
  100. package/dist/component/{url-input-rac-Bj4PV2YJ.js → url-input-rac-BEm7QPK6.js} +1 -1
  101. package/dist/component/{use-dropdown-option-class-name-CE1u4RLT.js → use-dropdown-option-class-name-DZQUnZz4.js} +2 -2
  102. package/dist/component/{use-element-state-class-name-Dn_LpP1k.js → use-element-state-class-name-DKacixau.js} +1 -1
  103. package/dist/component/{use-is-forced-open-dropdown-B2mdY7ku.js → use-is-forced-open-dropdown-GzE8GcCX.js} +1 -1
  104. package/dist/component/{use-service-options-base-DBvqU30V.js → use-service-options-base-DuInZhF_.js} +1 -1
  105. package/dist/component/{use-text-input-class-name-BUW0svzK.js → use-text-input-class-name-DhLYHlKO.js} +2 -2
  106. package/package.json +2 -2
  107. package/dist/component/events-rsvp-rac-Dcrc1yxR.js +0 -49
  108. package/dist/component/options-rac.module-CTDdATiz.js +0 -8
  109. package/dist/component/radio-button-module-classes-CjDU2x_m.js +0 -133
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "classnames";
4
4
  import "@wix/fed-cli-i18next";
5
- import { af as f, aA as i } from "./form-CY-iFZdC.js";
5
+ import { af as f, aA as i } from "./form-ug6JXjA8.js";
6
6
  export {
7
7
  f as default,
8
8
  i as defaultProps
@@ -1,7 +1,7 @@
1
1
  import m from "classnames";
2
2
  import e from "react";
3
- import { b9 as u, aN as i, aM as C, aP as R, an as T, a5 as d } from "./form-CY-iFZdC.js";
4
- import { u as g, R as p, s as S, T as h } from "./rich-content-rac.module-DgQubdPj.js";
3
+ import { b9 as u, aN as i, aM as C, aP as R, an as T, a5 as d } from "./form-ug6JXjA8.js";
4
+ import { u as g, R as p, s as S, T as h } from "./rich-content-rac.module-Dw6wAyWa.js";
5
5
  const f = ({ truncate: t = !0 } = {}) => {
6
6
  const { content: a, maxShownParagraphs: s } = u(), n = e.useMemo(() => ({
7
7
  colorPalette: R(),
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { H as r } from "./header-field-rac-B6Mzqr3b.js";
2
+ import { H as r } from "./header-field-rac-BOfE3kQP.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as HeaderRAC
@@ -1,51 +1,51 @@
1
1
  import e, { useMemo as H, useCallback as T, useRef as G } from "react";
2
2
  import { RicosViewer as k } from "@wix/ricos/viewer";
3
3
  import I from "classnames";
4
- import { b9 as b, b6 as x, bb as P, b2 as B, I as q, U, w, y as V, v as z, p as K, x as Q, f } from "./form-CY-iFZdC.js";
4
+ import { b9 as b, b6 as x, bb as P, b2 as B, I as q, U, w, y as V, v as z, p as K, x as Q, f as g } from "./form-ug6JXjA8.js";
5
5
  import { CheckboxGroup as Y, CheckboxField as $, CheckboxButton as j } from "react-aria-components";
6
- import { f as p, a as h } from "./find-child-C60k4CxG.js";
7
- import { L as J, g as W } from "./field-label-headless-m633nF93.js";
8
- import { D as X, E as Z } from "./field-error-headless-DRkkbv__.js";
6
+ import { f as m, a as F } from "./find-child-C60k4CxG.js";
7
+ import { L as J, g as W } from "./field-label-headless-D5nW8IPL.js";
8
+ import { D as X, E as Z } from "./field-error-headless-CijTssZX.js";
9
9
  import { F as ee } from "./fieldset-headless-CD3fds9J.js";
10
10
  import { E as te } from "./error-icon-hZxQ6DEy.js";
11
11
  import { s as O } from "./field-rac.module-B4l_0KRU.js";
12
- import { u as oe } from "./use-element-state-class-name-Dn_LpP1k.js";
12
+ import { u as oe } from "./use-element-state-class-name-DKacixau.js";
13
13
  const o = ({ children: t, className: s }) => {
14
- const { id: n, value: a, onChange: i, disabled: l, readOnly: r, required: c, onBlur: u, onFocus: E, hasError: C, FieldLayout: g } = b(), { inputId: L, labelId: _, ariaDescribedBy: N } = x(), R = p(t, o.Label), S = p(t, o.Options), y = p(t, o.Description), A = p(t, o.Error), D = H(() => a || [], [
14
+ const { id: n, value: a, onChange: i, disabled: l, readOnly: r, required: c, onBlur: u, onFocus: p, hasError: C, FieldLayout: L } = b(), { inputId: f, labelId: _, ariaDescribedBy: R } = x(), S = m(t, o.Label), A = m(t, o.Options), D = m(t, o.Description), h = m(t, o.Error), M = H(() => a || [], [
15
15
  a
16
- ]), M = T((v) => {
17
- i == null || i(v);
16
+ ]), v = T((y) => {
17
+ i == null || i(y);
18
18
  }, [
19
19
  i
20
20
  ]);
21
- return /* @__PURE__ */ e.createElement(g, {
21
+ return /* @__PURE__ */ e.createElement(L, {
22
22
  fieldId: n,
23
- renderLabel: () => R,
23
+ renderLabel: () => S,
24
24
  renderInput: () => /* @__PURE__ */ e.createElement(ee, {
25
- id: L,
25
+ id: f,
26
26
  ariaLabelledBy: _,
27
- ariaDescribedBy: N,
27
+ ariaDescribedBy: R,
28
28
  required: c,
29
29
  onBlur: u,
30
- onFocus: E
30
+ onFocus: p
31
31
  }, /* @__PURE__ */ e.createElement(Y, {
32
32
  className: s,
33
33
  "aria-labelledby": _,
34
- value: D,
35
- onChange: M,
34
+ value: M,
35
+ onChange: v,
36
36
  isDisabled: l,
37
37
  isReadOnly: r,
38
38
  isRequired: c,
39
39
  isInvalid: C
40
- }, S)),
41
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, A, y)
40
+ }, A)),
41
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, D)
42
42
  });
43
- }, F = ({ children: t, className: s }) => {
44
- const { id: n, options: a, numberOfColumns: i } = b(), l = p(t, F.Option);
43
+ }, N = ({ children: t, className: s }) => {
44
+ const { id: n, options: a, numberOfColumns: i } = b(), l = m(t, N.Option);
45
45
  return /* @__PURE__ */ e.createElement("div", {
46
46
  className: s,
47
47
  "data-columns": i
48
- }, a == null ? void 0 : a.map((r, c) => h(l, {
48
+ }, a == null ? void 0 : a.map((r, c) => F(l, {
49
49
  key: r.id || r.label,
50
50
  option: r,
51
51
  isFirst: c === 0,
@@ -55,7 +55,7 @@ const o = ({ children: t, className: s }) => {
55
55
  "aria-hidden": "true",
56
56
  className: t
57
57
  }), ne = ({ className: t, ...s }) => {
58
- var u, E;
58
+ var u, p;
59
59
  const { option: n } = s, { choiceImageResize: a, choiceImageAlignment: i } = b(), l = (u = n.media) == null ? void 0 : u.image, r = l && W(l, l.width, l.height);
60
60
  if (!l || !r)
61
61
  return /* @__PURE__ */ e.createElement("div", {
@@ -63,7 +63,7 @@ const o = ({ children: t, className: s }) => {
63
63
  "data-placeholder": !0,
64
64
  "data-hook": "image-choice-option-image"
65
65
  });
66
- const c = ((E = n.media) == null ? void 0 : E.altText) || n.altText || l.altText || "";
66
+ const c = ((p = n.media) == null ? void 0 : p.altText) || n.altText || l.altText || "";
67
67
  return /* @__PURE__ */ e.createElement("img", {
68
68
  className: t,
69
69
  src: r,
@@ -78,27 +78,27 @@ const o = ({ children: t, className: s }) => {
78
78
  className: t
79
79
  }, n.label);
80
80
  }, d = ({ children: t, className: s, ...n }) => {
81
- const { option: a, isFirst: i = !1, fieldId: l } = n, { disabled: r, readOnly: c, hasError: u } = b(), E = G(null);
81
+ const { option: a, isFirst: i = !1, fieldId: l } = n, { disabled: r, readOnly: c, hasError: u } = b(), p = G(null);
82
82
  P(() => {
83
83
  var _;
84
- i && ((_ = E.current) == null || _.focus({
84
+ i && ((_ = p.current) == null || _.focus({
85
85
  preventScroll: !0
86
86
  }));
87
87
  }, l);
88
- const C = p(t, d.Input), g = p(t, d.Image), L = p(t, d.Label);
88
+ const C = m(t, d.Input), L = m(t, d.Image), f = m(t, d.Label);
89
89
  return /* @__PURE__ */ e.createElement($, {
90
90
  value: a.label,
91
91
  isDisabled: r,
92
92
  isReadOnly: c,
93
93
  isInvalid: u
94
94
  }, /* @__PURE__ */ e.createElement(j, {
95
- ref: E,
95
+ ref: p,
96
96
  "aria-label": a.isLabelHidden ? a.label : void 0,
97
97
  className: s,
98
98
  "data-hook": `image-choice-${a.label}`
99
- }, C, h(g, {
99
+ }, C, F(L, {
100
100
  option: a
101
- }), h(L, {
101
+ }), F(f, {
102
102
  option: a
103
103
  })));
104
104
  };
@@ -106,56 +106,53 @@ d.Input = ae;
106
106
  d.Image = ne;
107
107
  d.Label = se;
108
108
  o.Label = J;
109
- o.Options = F;
110
- F.Option = d;
109
+ o.Options = N;
110
+ N.Option = d;
111
111
  o.Description = X;
112
112
  o.Error = Z;
113
- const le = "_group_1yn0h_1", ie = "_options_1yn0h_5", re = "_optionInput_1yn0h_36", ce = "_option_1yn0h_5", me = "_optionHover_1yn0h_72", pe = "_optionSelected_1yn0h_72", Ee = "_optionLabel_1yn0h_112", de = "_optionImage_1yn0h_143", m = {
114
- group: le,
115
- options: ie,
116
- optionInput: re,
117
- option: ce,
118
- optionHover: me,
119
- optionSelected: pe,
120
- optionLabel: Ee,
121
- optionImage: de
122
- }, ue = ({ content: t, locale: s }) => /* @__PURE__ */ e.createElement(k, {
113
+ const le = "_options_eo1fu_1", ie = "_optionInput_eo1fu_33", re = "_option_eo1fu_1", ce = "_optionHover_eo1fu_69", me = "_optionSelected_eo1fu_69", pe = "_optionLabel_eo1fu_109", Ee = "_optionImage_eo1fu_140", E = {
114
+ options: le,
115
+ optionInput: ie,
116
+ option: re,
117
+ optionHover: ce,
118
+ optionSelected: me,
119
+ optionLabel: pe,
120
+ optionImage: Ee
121
+ }, de = ({ content: t, locale: s }) => /* @__PURE__ */ e.createElement(k, {
123
122
  content: t,
124
123
  locale: s
125
- }), Ie = {
126
- base: m.option,
127
- selected: m.optionSelected,
128
- hover: m.optionHover
129
- }, _e = () => {
124
+ }), ue = {
125
+ base: E.option,
126
+ selected: E.optionSelected,
127
+ hover: E.optionHover
128
+ }, Ie = () => {
130
129
  const t = oe({
131
130
  globalClasses: Q,
132
- moduleClasses: Ie
133
- }), s = B(f.IMAGE_CHOICE, f.IMAGE_CHOICE_OPTION, f.IMAGE_CHOICE_OPTION_IMAGE);
134
- return /* @__PURE__ */ e.createElement(o, {
135
- className: m.group
136
- }, /* @__PURE__ */ e.createElement(o.Label, {
131
+ moduleClasses: ue
132
+ }), s = B(g.IMAGE_CHOICE, g.IMAGE_CHOICE_OPTION, g.IMAGE_CHOICE_OPTION_IMAGE);
133
+ return /* @__PURE__ */ e.createElement(o, null, /* @__PURE__ */ e.createElement(o.Label, {
137
134
  className: I(q, O.label)
138
135
  }, /* @__PURE__ */ e.createElement(o.Label.Required, {
139
136
  className: I(U, O.requiredMark)
140
137
  })), /* @__PURE__ */ e.createElement(o.Options, {
141
- className: I(w, m.options)
138
+ className: I(w, E.options)
142
139
  }, /* @__PURE__ */ e.createElement(o.Options.Option, {
143
140
  className: ({ isSelected: n, isHovered: a }) => t({
144
141
  isSelected: n,
145
142
  isHovered: a
146
143
  })
147
144
  }, /* @__PURE__ */ e.createElement(o.Options.Option.Input, {
148
- className: m.optionInput
145
+ className: E.optionInput
149
146
  }), /* @__PURE__ */ e.createElement(o.Options.Option.Image, {
150
- className: I(V, m.optionImage, s)
147
+ className: I(V, E.optionImage, s)
151
148
  }), /* @__PURE__ */ e.createElement(o.Options.Option.Label, {
152
- className: m.optionLabel
149
+ className: E.optionLabel
153
150
  }))), /* @__PURE__ */ e.createElement(o.Error, {
154
151
  className: I(z, O.error)
155
152
  }, /* @__PURE__ */ e.createElement(te, null), /* @__PURE__ */ e.createElement(o.Error.Text, null)), /* @__PURE__ */ e.createElement(o.Description, {
156
153
  className: I(K, O.description)
157
- }, ue));
158
- }, Ae = () => /* @__PURE__ */ e.createElement(_e, null);
154
+ }, de));
155
+ }, De = () => /* @__PURE__ */ e.createElement(Ie, null);
159
156
  export {
160
- Ae as ImageChoiceRAC
157
+ De as ImageChoiceRAC
161
158
  };
@@ -1,13 +1,13 @@
1
- import { e as R, av as _, aJ as de, aw as O, ab as Ge, B as Be, ap as qe, ai as He, ah as I, aq as Ee, az as re, at as Fe, c as B, aj as M, aV as Te, al as je, ak as he, am as q } from "./form-CY-iFZdC.js";
2
- import { aQ as Mn } from "./form-CY-iFZdC.js";
1
+ import { e as R, av as _, aJ as de, aw as O, ab as Ge, B as Be, ap as qe, ai as He, ah as I, aq as Ee, az as re, at as Fe, c as B, aj as M, aV as Te, al as je, ak as he, am as q } from "./form-ug6JXjA8.js";
2
+ import { aQ as Mn } from "./form-ug6JXjA8.js";
3
3
  import ke from "ajv";
4
4
  import Xe from "ajv-errors";
5
5
  import We from "ajv-formats";
6
6
  import Ke from "fast-deep-equal";
7
7
  import { parsePhoneNumber as ze, parsePhoneNumberWithError as Ve, ParseError as Ze } from "libphonenumber-js/max";
8
8
  import Je from "libphonenumber-js/metadata.max.json";
9
- import { p as Qe, i as et } from "./date-availability-DJyvNJ6w.js";
10
- import { a as Sn } from "./date-availability-DJyvNJ6w.js";
9
+ import { p as Qe, i as et } from "./date-availability-BCydK-T5.js";
10
+ import { a as Sn } from "./date-availability-BCydK-T5.js";
11
11
  import { C as tt } from "./calling-country-codes-PyWuOTmF.js";
12
12
  function rt(e) {
13
13
  var t, r;
@@ -1,5 +1,5 @@
1
- import { aU as n } from "./form-CY-iFZdC.js";
2
- import { A as S, a as p, C as N, ao as g, aE as q, aF as D, aW as L } from "./form-CY-iFZdC.js";
1
+ import { aU as n } from "./form-ug6JXjA8.js";
2
+ import { A as S, a as p, C as N, ao as g, aE as q, aF as D, aW as L } from "./form-ug6JXjA8.js";
3
3
  const l = (e = !1) => ({
4
4
  country: {
5
5
  required: e
@@ -1,4 +1,4 @@
1
- import { ax as c } from "./form-CY-iFZdC.js";
1
+ import { ax as c } from "./form-ug6JXjA8.js";
2
2
  var b, d;
3
3
  function k() {
4
4
  if (d) return b;
@@ -2,21 +2,21 @@ import { RicosViewer as X } from "@wix/ricos/viewer";
2
2
  import L from "classnames";
3
3
  import r, { useMemo as q, createContext as We, useContext as Ce, useState as be, useRef as x, useCallback as R, useEffect as Pe } from "react";
4
4
  import { UNSAFE_PortalProvider as Pt } from "react-aria";
5
- import { b4 as yt, d as Ct, a$ as Tt, b1 as It, aE as Mt, aF as wt, ay as qt, aD as V, F as K, bj as Te, aU as lt, b9 as P, b6 as T, bb as ae, b5 as Lt, aJ as xt, C as ve, aS as Bt, aW as kt, bg as $t, ba as Ut, bf as Wt, aZ as Vt, aO as Kt, aY as Yt, bc as Ht, ae as jt, I as z, U as Q, t as it, K as ge, v as Z, p as ee } from "./form-CY-iFZdC.js";
5
+ import { b4 as yt, d as Ct, a$ as Tt, b1 as It, aE as Mt, aF as wt, ay as qt, aD as V, F as K, bj as Te, aU as lt, b9 as P, b6 as T, bb as ae, b5 as Lt, aJ as xt, C as ve, aS as Bt, aW as kt, bg as $t, ba as Ut, bf as Wt, aZ as Vt, aO as Kt, aY as Yt, bc as Ht, ae as jt, I as z, U as Q, t as it, K as ge, v as Z, p as ee } from "./form-ug6JXjA8.js";
6
6
  import { f as E, a as F } from "./find-child-C60k4CxG.js";
7
7
  import { F as Jt, V as Gt } from "./headless-styles-CmcyA_pi.js";
8
- import { u as Xt } from "./use-is-forced-open-dropdown-B2mdY7ku.js";
8
+ import { u as Xt } from "./use-is-forced-open-dropdown-GzE8GcCX.js";
9
9
  import { TextField as fe, Input as le, ComboBoxStateContext as Ve, ComboBox as De, Popover as Se, ListBox as Re, ListBoxItem as Ae, Group as Nt, Button as gt } from "react-aria-components";
10
- import { D as ie, E as ce } from "./field-error-headless-DRkkbv__.js";
11
- import { L as de } from "./field-label-headless-m633nF93.js";
12
- import { e as zt, c as Qt, a as Zt, r as Ot } from "./isObjectLike-DsBVSQ_O.js";
10
+ import { D as ie, E as ce } from "./field-error-headless-CijTssZX.js";
11
+ import { L as de } from "./field-label-headless-D5nW8IPL.js";
12
+ import { e as zt, c as Qt, a as Zt, r as Ot } from "./isObjectLike-_ZXuJgiI.js";
13
13
  import { u as en } from "./use-invoke-callback-UH73A_J3.js";
14
14
  import { C as ct } from "./chevron-down-icon-CcpVm6B-.js";
15
15
  import { E as te } from "./error-icon-hZxQ6DEy.js";
16
16
  import { H as Me } from "./custom-focus-class-_483Pkwp.js";
17
17
  import { s as C } from "./field-rac.module-B4l_0KRU.js";
18
- import { u as tn } from "./use-dropdown-option-class-name-CE1u4RLT.js";
19
- import { u as nn } from "./use-text-input-class-name-BUW0svzK.js";
18
+ import { u as tn } from "./use-dropdown-option-class-name-DZQUnZz4.js";
19
+ import { u as nn } from "./use-text-input-class-name-DhLYHlKO.js";
20
20
  const rn = (e, t, o) => {
21
21
  var l, a, i, s;
22
22
  const n = (l = e.steps) == null ? void 0 : l.map((d) => {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { M as t } from "./multiline-address-field-rac-Z4hKy_B_.js";
2
+ import { M as t } from "./multiline-address-field-rac-BuzVvgiq.js";
3
3
  const i = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  i as MultilineAddressRAC
@@ -2,15 +2,15 @@ import { RicosViewer as P } from "@wix/ricos/viewer";
2
2
  import i from "classnames";
3
3
  import r, { useState as U, useCallback as j, useEffect as Q, useRef as $ } from "react";
4
4
  import { NumberField as z, Input as G } from "react-aria-components";
5
- import { b9 as _, b6 as S, bj as H, bb as J, I as K, U as W, v as X, p as Y } from "./form-CY-iFZdC.js";
5
+ import { b9 as _, b6 as S, bj as H, bb as J, I as K, U as W, v as X, p as Y } from "./form-ug6JXjA8.js";
6
6
  import { f as c } from "./find-child-C60k4CxG.js";
7
- import { D as Z, E as w } from "./field-error-headless-DRkkbv__.js";
8
- import { L as ee } from "./field-label-headless-m633nF93.js";
7
+ import { D as Z, E as w } from "./field-error-headless-CijTssZX.js";
8
+ import { L as ee } from "./field-label-headless-D5nW8IPL.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
12
  import { s as p } from "./field-rac.module-B4l_0KRU.js";
13
- import { u as se } from "./use-text-input-class-name-BUW0svzK.js";
13
+ import { u as se } from "./use-text-input-class-name-DhLYHlKO.js";
14
14
  const e = ({ children: t }) => {
15
15
  var F, L, R;
16
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: y } = S(), D = ((F = n == null ? void 0 : n.number) == null ? void 0 : F.multipleOf) || 1, A = (L = n == null ? void 0 : n.number) == null ? void 0 : L.maximum, g = (R = n == null ? void 0 : n.number) == null ? void 0 : R.minimum, x = O(s), [T, I] = U(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) => {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { N as r } from "./number-input-field-rac-DKpSb1S_.js";
2
+ import { N as r } from "./number-input-field-rac-CyYDQY_P.js";
3
3
  const n = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  n as NumberInputRAC
@@ -0,0 +1,7 @@
1
+ const o = "_options_1opz7_5", t = "_optionLabel_1opz7_34", n = {
2
+ options: o,
3
+ optionLabel: t
4
+ };
5
+ export {
6
+ n as o
7
+ };
@@ -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 { b9 as E, b6 as I, bb as O, bj as A, I as B, U as v, v as V, p as P } from "./form-CY-iFZdC.js";
4
+ import { b9 as E, b6 as I, bb as O, bj as A, I as B, U as v, v as V, p as P } from "./form-ug6JXjA8.js";
5
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 j, E as H } from "./field-error-headless-DRkkbv__.js";
8
- import { L as W } from "./field-label-headless-m633nF93.js";
7
+ import { D as j, E as H } from "./field-error-headless-CijTssZX.js";
8
+ import { L as W } from "./field-label-headless-D5nW8IPL.js";
9
9
  import { E as Z } from "./error-icon-hZxQ6DEy.js";
10
10
  import { H as G } from "./custom-focus-class-_483Pkwp.js";
11
11
  import { s as p } from "./field-rac.module-B4l_0KRU.js";
12
- import { u as Q } from "./use-text-input-class-name-BUW0svzK.js";
12
+ import { u as Q } from "./use-text-input-class-name-DhLYHlKO.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(_, {
@@ -2,16 +2,16 @@ import r, { useCallback as P, useRef as Q } 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 { b9 as R, b6 as D, b1 as T, bj as W, bb as X, I as Y, U as Z, v as ee, p as re } from "./form-CY-iFZdC.js";
5
+ import { b9 as R, b6 as D, b1 as T, bj as W, bb as X, I as Y, U as Z, v as ee, p as re } from "./form-ug6JXjA8.js";
6
6
  import { f as i } from "./find-child-C60k4CxG.js";
7
- import { D as te, E as ne } from "./field-error-headless-DRkkbv__.js";
8
- import { L as ae } from "./field-label-headless-m633nF93.js";
7
+ import { D as te, E as ne } from "./field-error-headless-CijTssZX.js";
8
+ import { L as ae } from "./field-label-headless-D5nW8IPL.js";
9
9
  import { f as N, g as se } from "./payment-field-utils-DobiK5Xh.js";
10
10
  import { u as oe } from "./use-synced-display-value-DcAxdn3M.js";
11
11
  import { E as le } from "./error-icon-hZxQ6DEy.js";
12
12
  import { H as ce } from "./custom-focus-class-_483Pkwp.js";
13
13
  import { s as d } from "./field-rac.module-B4l_0KRU.js";
14
- import { u as ie } from "./use-text-input-class-name-BUW0svzK.js";
14
+ import { u as ie } from "./use-text-input-class-name-DhLYHlKO.js";
15
15
  function ue(e, t) {
16
16
  return {
17
17
  productId: e.id,
@@ -1,15 +1,15 @@
1
1
  import { RicosViewer as Ce } from "@wix/ricos/viewer";
2
2
  import g from "classnames";
3
3
  import t, { useMemo as A, useState as T, useRef as P, useEffect as k, useCallback as W, createContext as ee, useContext as H, useId as de } from "react";
4
- import { aU as ye, bj as F, b1 as te, bi as Ee, b9 as D, b6 as ne, bb as fe, I as he, U as ge, t as be, H as Oe, K as _e, v as Ne, p as Se } from "./form-CY-iFZdC.js";
4
+ import { aU as ye, bj as F, b1 as te, bi as Ee, b9 as D, b6 as ne, bb as fe, I as he, U as ge, t as be, H as Oe, K as _e, v as Ne, p as Se } from "./form-ug6JXjA8.js";
5
5
  import { UNSAFE_PortalProvider as Le } from "react-aria";
6
6
  import { Dialog as oe, OverlayTriggerStateContext as Ie, ModalOverlay as ve, Modal as Pe, SearchField as Fe, Group as G, ListBoxItem as De, DialogTrigger as Be, Select as Re, Input as re, ListBox as xe, Autocomplete as we } from "react-aria-components";
7
7
  import { f as h, a as L } from "./find-child-C60k4CxG.js";
8
- import { D as Me, E as Ae } from "./field-error-headless-DRkkbv__.js";
9
- import { L as Te } from "./field-label-headless-m633nF93.js";
8
+ import { D as Me, E as Ae } from "./field-error-headless-CijTssZX.js";
9
+ import { L as Te } from "./field-label-headless-D5nW8IPL.js";
10
10
  import { N as $e, S as Ue } from "./non-modal-popover-DtIMXHbe.js";
11
11
  import { u as ke } from "./use-invoke-callback-UH73A_J3.js";
12
- import { u as Ve } from "./use-is-forced-open-dropdown-B2mdY7ku.js";
12
+ import { u as Ve } from "./use-is-forced-open-dropdown-GzE8GcCX.js";
13
13
  import ae, { AsYouType as qe, isValidPhoneNumber as Ge, isSupportedCountry as He } from "libphonenumber-js";
14
14
  import "libphonenumber-js/metadata.min.json";
15
15
  import { C as Z } from "./calling-country-codes-PyWuOTmF.js";
@@ -17,8 +17,8 @@ import { C as Ke } from "./chevron-down-icon-CcpVm6B-.js";
17
17
  import { E as Ye } from "./error-icon-hZxQ6DEy.js";
18
18
  import { H as Q } from "./custom-focus-class-_483Pkwp.js";
19
19
  import { s as O } from "./field-rac.module-B4l_0KRU.js";
20
- import { u as je } from "./use-dropdown-option-class-name-CE1u4RLT.js";
21
- import { u as ze } from "./use-text-input-class-name-BUW0svzK.js";
20
+ import { u as je } from "./use-dropdown-option-class-name-DZQUnZz4.js";
21
+ import { u as ze } from "./use-text-input-class-name-DhLYHlKO.js";
22
22
  function J(e) {
23
23
  const n = e ? ae(e) : void 0, o = n == null ? void 0 : n.country;
24
24
  if (o)
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { P as o } from "./phone-input-field-rac-B-5gHBXY.js";
2
+ import { P as o } from "./phone-input-field-rac-Bj6gYAIn.js";
3
3
  const r = () => /* @__PURE__ */ e.createElement(o, null);
4
4
  export {
5
5
  r as PhoneRAC
@@ -2,19 +2,19 @@ import t, { useMemo as $, useCallback as M, useRef as B } from "react";
2
2
  import { RicosViewer as z } from "@wix/ricos/viewer";
3
3
  import _ from "classnames";
4
4
  import { CheckboxField as G, CheckboxButton as j, NumberField as X, Group as J, Button as U, Input as W } from "react-aria-components";
5
- import { b9 as k, b6 as Y, b1 as w, bj as Z, bb as ee, I as te, U as ne, L as ae, O as oe, N as re, H as le, v as se, p as ie, M as ce } from "./form-CY-iFZdC.js";
5
+ import { b9 as k, b6 as Y, b1 as w, bj as Z, bb as ee, I as te, U as ne, L as ae, O as oe, N as re, H as le, v as se, p as ie, M as ce } from "./form-ug6JXjA8.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-m633nF93.js";
7
+ import { L as ue, g as me } from "./field-label-headless-D5nW8IPL.js";
8
8
  import { f as pe } from "./format-currency-BwShJ9vM.js";
9
- import { D as de, E as Ee } from "./field-error-headless-DRkkbv__.js";
9
+ import { D as de, E as Ee } from "./field-error-headless-CijTssZX.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-BpeSpGsW.js";
15
15
  import { s as T } from "./field-rac.module-B4l_0KRU.js";
16
- import { o as Q } from "./options-rac.module-CTDdATiz.js";
17
- import { u as Oe } from "./use-element-state-class-name-Dn_LpP1k.js";
16
+ import { o as Q } from "./options-rac.module-_THNq6Qq.js";
17
+ import { u as Oe } from "./use-element-state-class-name-DKacixau.js";
18
18
  var Le = /* @__PURE__ */ (function(e) {
19
19
  return e.crop = "CROP", e.fit = "FIT", e;
20
20
  })({}), x = /* @__PURE__ */ (function(e) {
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { R as r } from "./radio-group-field-rac-DAwCG8w2.js";
2
+ import { R as r } from "./radio-group-field-rac-Duu_EH1m.js";
3
3
  const i = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  i as QuizRadioGroupRAC
@@ -0,0 +1,131 @@
1
+ import a, { useRef as S, 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 { b9 as g, b6 as $, bj as F, bb as x } from "./form-ug6JXjA8.js";
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-CijTssZX.js";
6
+ import { L as M } from "./field-label-headless-D5nW8IPL.js";
7
+ import { S as w } from "./selection-indicator-XQ8MYHUQ.js";
8
+ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ?? n.label) === t), y = (e, t) => !!t && !z(e, t), J = (e, t) => {
9
+ const l = t ? t.length + 2 : 0;
10
+ return e.slice(l);
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), D = d(e, i.Description), q = d(e, i.Error), N = y(o, l) ? L : l || null;
13
+ return /* @__PURE__ */ a.createElement(c, {
14
+ fieldId: n,
15
+ renderLabel: () => v(s, {
16
+ as: "div"
17
+ }),
18
+ renderInput: () => /* @__PURE__ */ a.createElement(H, {
19
+ id: h,
20
+ className: t,
21
+ "aria-labelledby": C,
22
+ "aria-describedby": I,
23
+ value: N,
24
+ onChange: O,
25
+ isDisabled: p,
26
+ isReadOnly: f,
27
+ isRequired: b,
28
+ isInvalid: r,
29
+ onBlur: E,
30
+ onFocus: m
31
+ }, _),
32
+ renderDescription: () => /* @__PURE__ */ a.createElement(a.Fragment, null, q, D)
33
+ });
34
+ }, K = ({ children: e, className: t }) => {
35
+ const { options: n, addOther: l, addOtherLabel: O, id: p, numberOfColumns: f, hasError: b } = g(), { t: E } = F(), m = d(e, i.Option), r = S(null), c = O || E("add-other.default-other-option-label") || L;
36
+ return x(() => {
37
+ var o;
38
+ (o = r.current) == null || o.focus();
39
+ }, p), /* @__PURE__ */ a.createElement("div", {
40
+ className: t,
41
+ "data-columns": f,
42
+ "data-invalid": b
43
+ }, n.map((o, h) => v(m, {
44
+ key: o.value ?? o.label,
45
+ value: o.value ?? o.label,
46
+ label: o.label,
47
+ index: h,
48
+ radioRef: h === 0 ? r : void 0
49
+ })), l && v(m, {
50
+ key: L,
51
+ value: L,
52
+ label: c,
53
+ isOther: !0
54
+ }));
55
+ }, u = ({ children: e, className: t, ...n }) => {
56
+ var I;
57
+ const { value: l, label: O, isOther: p = !1, radioRef: f } = n, { value: b, options: E } = g(), m = d(e, u.Label), r = d(e, u.Input), c = d(e, u.Control), o = d(e, u.OtherInput), h = p ? y(E, b) : b === l, C = (I = r == null ? void 0 : r.props) == null ? void 0 : I.className;
58
+ return /* @__PURE__ */ a.createElement("div", {
59
+ className: t
60
+ }, /* @__PURE__ */ a.createElement(k, {
61
+ value: l
62
+ }, /* @__PURE__ */ a.createElement(A, {
63
+ ref: f,
64
+ className: C
65
+ }, ({ isSelected: s, isHovered: _ }) => /* @__PURE__ */ a.createElement(a.Fragment, null, v(c, {
66
+ isSelected: s,
67
+ isHovered: _
68
+ }), v(m, {
69
+ label: O
70
+ })))), p && h && o);
71
+ }, Q = ({ className: e, ...t }) => {
72
+ const { label: n } = t;
73
+ return /* @__PURE__ */ a.createElement("span", {
74
+ className: e
75
+ }, n);
76
+ }, W = (e) => null, X = ({ className: e }) => {
77
+ const { value: t, onChange: n, addOtherLabel: l, addOtherPlaceholder: O, otherInputCharacterLimit: p, disabled: f, readOnly: b, options: E } = g(), { t: m } = F(), r = S(null), c = y(E, t), o = l || m("add-other.default-other-option-label") || L, [h, C] = V(c && t ? J(t, l) : "");
78
+ T(() => {
79
+ var s;
80
+ c && r.current && ((s = r.current) == null || s.focus());
81
+ }, [
82
+ c
83
+ ]);
84
+ const I = B((s) => {
85
+ let _;
86
+ s ? _ = `${l}: ${s}` : _ = o, n(_), C(s);
87
+ }, [
88
+ n,
89
+ l,
90
+ o
91
+ ]);
92
+ return /* @__PURE__ */ a.createElement(G, {
93
+ "aria-label": o,
94
+ value: h,
95
+ onChange: I,
96
+ isDisabled: f,
97
+ isReadOnly: b
98
+ }, /* @__PURE__ */ a.createElement(P, {
99
+ ref: r,
100
+ className: e,
101
+ placeholder: O,
102
+ maxLength: p
103
+ }));
104
+ };
105
+ u.Label = Q;
106
+ u.Input = W;
107
+ u.Control = w;
108
+ u.OtherInput = X;
109
+ i.Label = M;
110
+ i.Options = K;
111
+ i.Option = u;
112
+ i.Description = U;
113
+ i.Error = j;
114
+ 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", R = {
115
+ labelImage: Y,
116
+ option: Z,
117
+ optionInput: ee,
118
+ optionControl: te,
119
+ optionControlHover: oe,
120
+ optionControlSelected: ne,
121
+ optionLabel: le
122
+ }, pe = {
123
+ base: R.optionControl,
124
+ selected: R.optionControlSelected,
125
+ hover: R.optionControlHover
126
+ };
127
+ export {
128
+ pe as R,
129
+ i as a,
130
+ R as s
131
+ };