@wix/form-elements 1.193.0 → 1.194.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-7eD_yW7i.js → appointment-rac-BOlB-nhK.js} +4 -4
  2. package/dist/component/{bookings-address-rac-Bpt7DrEs.js → bookings-address-rac-CMSkssTG.js} +1 -1
  3. package/dist/component/{bookings-email-rac-BYgeQczn.js → bookings-email-rac-BV32ot0w.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-N7cvqHVh.js → bookings-first-name-rac-C9RwXivg.js} +1 -1
  5. package/dist/component/{bookings-header-rac-TCezj9Ur.js → bookings-header-rac-DDQvjR-4.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-t4O2yMDP.js → bookings-last-name-rac-DXuhrAI5.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CJSoMvyZ.js → bookings-login-bar-rac-DnKkBwS6.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-D9DS7Vkl.js → bookings-phone-rac-Cu9TBbiw.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-9SxwdW6F.js → bookings-rich-text-rac-BCzyg13x.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-BBccyPVf.js → checkbox-field-rac-Bv2WFAgt.js} +141 -141
  11. package/dist/component/{checkbox-group-field-headless-Dwnolboz.js → checkbox-group-field-headless-CU6Q8J3c.js} +79 -76
  12. package/dist/component/{checkbox-group-field-rac-BqcHS2rI.js → checkbox-group-field-rac-9AmcX9Y9.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-D1eH4xRZ.js → checkbox-group-rac-BG2OEZiT.js} +1 -1
  14. package/dist/component/{checkbox-rac-D8KBjt2N.js → checkbox-rac-CeUFeQHr.js} +1 -1
  15. package/dist/component/{contacts-address-rac-Cl-McrL_.js → contacts-address-rac-V-D7xNOr.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-tD574IDc.js → contacts-birthdate-rac-BXUo5-QN.js} +1 -1
  17. package/dist/component/{contacts-company-rac-p09ntN6y.js → contacts-company-rac-BHDvioep.js} +1 -1
  18. package/dist/component/{contacts-email-rac-hFxe_vYm.js → contacts-email-rac-CHp2NL68.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-CRQalepX.js → contacts-first-name-rac-BXPTCsGX.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BxWC_dQK.js → contacts-last-name-rac-uZTOHcsZ.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BoESpvX4.js → contacts-phone-rac-CRkQ-XTE.js} +1 -1
  22. package/dist/component/{contacts-position-rac-C-dEH79x.js → contacts-position-rac-CxVEsR18.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-Wevw2yIs.js → contacts-subscribe-rac-B-ZpI_vj.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-C_YoCoUk.js → contacts-tax-id-rac-BmNl9Uwc.js} +1 -1
  25. package/dist/component/{date-availability-zeRtXneN.js → date-availability-preR1uDm.js} +1 -1
  26. package/dist/component/{date-input-field-rac-wl1J79Lm.js → date-input-field-rac-BZWKkoQc.js} +6 -6
  27. package/dist/component/{date-input-rac-DZG0E4dR.js → date-input-rac-zc0FomDx.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-BgVpHr0x.js → date-picker-field-rac-B0bkFPKW.js} +6 -6
  29. package/dist/component/{date-picker-rac-Cxncpp-S.js → date-picker-rac-C65qDHnd.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-BybKpDmr.js → date-time-input-field-rac-DQg7hTT_.js} +6 -6
  31. package/dist/component/{date-time-input-rac-BV45ahu6.js → date-time-input-rac-rM7o1P1a.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-CcnOnG3r.js → dext-checkbox-group-rac-LGvagnTA.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-DZMbVP-v.js → dext-checkbox-rac-DzJrBfoG.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-Ch7gU188.js → dext-date-picker-rac-Cg9jRzyp.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-DUssq9pN.js → dext-date-time-input-rac-CNmUZ9Ui.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-MZNHRD4Y.js → dext-dropdown-rac-D4z-cBEl.js} +1 -1
  37. package/dist/component/{dext-email-rac-bzMikfP7.js → dext-email-rac-DaX9oxBu.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-BDx2sZKk.js → dext-number-input-rac-CI3CwEyq.js} +1 -1
  39. package/dist/component/{dext-phone-rac-DBiQKWp5.js → dext-phone-rac-BmQkPsc6.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-DQ0cJ_AF.js → dext-radio-group-rac-CcKxMXMf.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-DB8BVtRj.js → dext-rating-input-rac-DnkSbHsG.js} +1 -1
  42. package/dist/component/{dext-tags-rac-BlwcMf4S.js → dext-tags-rac-Ct036T_Q.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-RAxzXAFv.js → dext-text-area-rac-ChOJhY72.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-bCmpx20f.js → dext-text-input-rac-DxKFoTBa.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-CF9E7GBh.js → dext-url-input-rac-DB4mFEnJ.js} +1 -1
  46. package/dist/component/{donation-rac-CVWZE3yz.js → donation-rac-DQ-bH8mJ.js} +5 -5
  47. package/dist/component/{dropdown-field-rac-BnxTiejT.js → dropdown-field-rac-eJs-ORuZ.js} +3 -3
  48. package/dist/component/{dropdown-rac-BSj6tud_.js → dropdown-rac-ClU5tIv1.js} +1 -1
  49. package/dist/component/{ecom-address-rac-Dsht1oXo.js → ecom-address-rac-BeLuT2lt.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-NdMstAuc.js → ecom-subscription-checkbox-rac-DXdhucxN.js} +2 -2
  51. package/dist/component/{email-input-field-rac-BCxurSsa.js → email-input-field-rac-b7DnYb-Q.js} +3 -3
  52. package/dist/component/{events-repeater-rac-Dz59WhGX.js → events-repeater-rac-B8423fSN.js} +4 -4
  53. package/dist/component/{events-rsvp-rac-M4068R7R.js → events-rsvp-rac-lIJScRxo.js} +3 -3
  54. package/dist/component/{field-error-headless-DQ-jwMtX.js → field-error-headless-DA6AMthK.js} +1 -1
  55. package/dist/component/{field-label-headless-D0N5zbDh.js → field-label-headless-1OrR7YHQ.js} +1 -1
  56. package/dist/component/{file-upload-rac-Cy9ymgFI.js → file-upload-rac-Dxhfcc5F.js} +4 -4
  57. package/dist/component/{fixed-payment-rac-DHL9zRaN.js → fixed-payment-rac-C3weOBaO.js} +3 -3
  58. package/dist/component/{form-ur8Cb2nw.js → form-Btp89piS.js} +2907 -2885
  59. package/dist/component/form.js +1 -1
  60. package/dist/component/{header-field-rac-DmRHkStT.js → header-field-rac-BZlZ0uk2.js} +2 -2
  61. package/dist/component/{header-rac-BMxv-FJ_.js → header-rac-CzB6pQZo.js} +1 -1
  62. package/dist/component/{image-choice-rac-Bj54Ms5f.js → image-choice-rac-B8-lOxCL.js} +71 -68
  63. package/dist/component/{index-D1Nkz9Je.js → index-Cyutja6W.js} +4 -4
  64. package/dist/component/{index-DwxUwvfW.js → index-gp3tjYJR.js} +2 -2
  65. package/dist/component/{isObjectLike-CA05Trvx.js → isObjectLike-DVQDteBM.js} +1 -1
  66. package/dist/component/{multiline-address-field-rac-O10IwOCo.js → multiline-address-field-rac-Bk14yixn.js} +7 -7
  67. package/dist/component/{multiline-address-rac-BHsYqS8U.js → multiline-address-rac-BtbyfXx9.js} +1 -1
  68. package/dist/component/{number-input-field-rac-Dv6mIcWK.js → number-input-field-rac-BW_Kdtif.js} +4 -4
  69. package/dist/component/{number-input-rac-DB4aCeZ3.js → number-input-rac-CxV_r8xX.js} +1 -1
  70. package/dist/component/{password-rac-Bzyoy7Ue.js → password-rac-CdqVsV2r.js} +4 -4
  71. package/dist/component/{payment-input-rac-d3XhrKDL.js → payment-input-rac-BoXfBGcr.js} +4 -4
  72. package/dist/component/{phone-input-field-rac-B1fOUnoX.js → phone-input-field-rac-Cbqj1mRX.js} +6 -6
  73. package/dist/component/{phone-rac-CIourqo0.js → phone-rac-B5KOqC4s.js} +1 -1
  74. package/dist/component/{product-list-rac-2b6ZKst8.js → product-list-rac-eDk2c6Tj.js} +4 -4
  75. package/dist/component/{quiz-radio-group-rac-UzeDK6Fb.js → quiz-radio-group-rac-BO1HH4qV.js} +1 -1
  76. package/dist/component/{radio-button-module-classes-BQiTZl4N.js → radio-button-module-classes-B0aJa-nf.js} +48 -45
  77. package/dist/component/{radio-group-field-rac-DMly0YyR.js → radio-group-field-rac-CxkaF2XW.js} +4 -4
  78. package/dist/component/{radio-group-rac-DWnKmLpT.js → radio-group-rac-Zi_UbGPv.js} +1 -1
  79. package/dist/component/{rating-input-field-rac-B8b5CdR7.js → rating-input-field-rac-CC6Wg28j.js} +45 -43
  80. package/dist/component/{rating-input-rac-BqRJ0so2.js → rating-input-rac-DLuqhhor.js} +1 -1
  81. package/dist/component/{rich-content-rac.module-BgjdfUpM.js → rich-content-rac.module-CL7YjLhM.js} +1 -1
  82. package/dist/component/{rich-text-field-rac-Drh-o9ma.js → rich-text-field-rac-VJjUGfvh.js} +2 -2
  83. package/dist/component/{rich-text-rac-BhUjaWGI.js → rich-text-rac-DJLy7AzE.js} +1 -1
  84. package/dist/component/{service-dropdown-rac-Cj4BuLCe.js → service-dropdown-rac-BZAGh6sc.js} +4 -4
  85. package/dist/component/{services-multi-choice-rac-BWgmoaGp.js → services-multi-choice-rac-CMX1MLyY.js} +5 -5
  86. package/dist/component/{signature-rac-DEFLilBW.js → signature-rac-DCamCLQL.js} +4 -4
  87. package/dist/component/{submit-button-rac-_Lluhrls.js → submit-button-rac-B2oeA5CE.js} +2 -2
  88. package/dist/component/tags-field-rac-BVPowgp5.js +216 -0
  89. package/dist/component/{tags-rac-DsBzlrwA.js → tags-rac-D9BRw5rq.js} +1 -1
  90. package/dist/component/{text-area-field-rac-COU0UfH0.js → text-area-field-rac-Dw7ywVk3.js} +4 -4
  91. package/dist/component/{text-area-rac-DY2np20s.js → text-area-rac-CAG91hMP.js} +1 -1
  92. package/dist/component/{text-input-field-rac-Jl4gKN4D.js → text-input-field-rac-BQCwdi0a.js} +3 -3
  93. package/dist/component/{text-input-headless-DsIKhwwK.js → text-input-headless-ByTB_SoB.js} +3 -3
  94. package/dist/component/{text-input-rac-Dwoai7Y2.js → text-input-rac-DQMaPy6q.js} +1 -1
  95. package/dist/component/{time-input-rac-CeUzBpvQ.js → time-input-rac-DlaA4b2y.js} +4 -4
  96. package/dist/component/{url-input-field-rac-D5dK0qXo.js → url-input-field-rac-BO7WSxf-.js} +4 -4
  97. package/dist/component/{url-input-rac-DGC2_VVy.js → url-input-rac-BWRXlB6g.js} +1 -1
  98. package/dist/component/{use-dropdown-option-class-name-DCf8o4bn.js → use-dropdown-option-class-name-CofwyYPw.js} +2 -2
  99. package/dist/component/{use-dropdown-trigger-class-name-VcbNtj9H.js → use-dropdown-trigger-class-name-BQq79FWu.js} +6 -6
  100. package/dist/component/{use-element-state-class-name-Dc9b8x0t.js → use-element-state-class-name-DV-k6djy.js} +1 -1
  101. package/dist/component/{use-hoverable-input-class-name-BNb7P_5E.js → use-hoverable-input-class-name-CwCi7XA4.js} +2 -2
  102. package/dist/component/{use-is-forced-open-dropdown-BlG9NkCS.js → use-is-forced-open-dropdown-DEAhUhvR.js} +1 -1
  103. package/dist/component/{use-service-options-base-DB4bYGFa.js → use-service-options-base-BUY3SFfK.js} +1 -1
  104. package/dist/component/use-text-input-class-name-DusXY0Ou.js +6 -0
  105. package/package.json +3 -3
  106. package/dist/component/tags-field-rac-C7nXKUBj.js +0 -213
  107. package/dist/component/use-text-input-class-name-BxX9CE3F.js +0 -6
@@ -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 { aQ as i, ba as e } from "./form-ur8Cb2nw.js";
5
+ import { aQ as i, ba as e } from "./form-Btp89piS.js";
6
6
  export {
7
7
  i as default,
8
8
  e as defaultProps
@@ -1,7 +1,7 @@
1
1
  import m from "classnames";
2
2
  import e from "react";
3
- import { bM as u, bo as i, bn as C, bq as R, aY as T, aG as d } from "./form-ur8Cb2nw.js";
4
- import { u as g, R as p, s as S, T as h } from "./rich-content-rac.module-BgjdfUpM.js";
3
+ import { bM as u, bo as i, bn as C, bq as R, aY as T, aG as d } from "./form-Btp89piS.js";
4
+ import { u as g, R as p, s as S, T as h } from "./rich-content-rac.module-CL7YjLhM.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-DmRHkStT.js";
2
+ import { H as r } from "./header-field-rac-BZlZ0uk2.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as HeaderRAC
@@ -1,47 +1,50 @@
1
- import e, { useMemo as H, useCallback as T, useRef as G } from "react";
2
- import { RicosViewer as k } from "@wix/ricos/viewer";
1
+ import e, { useRef as S, useMemo as G, useCallback as k } from "react";
2
+ import { RicosViewer as P } from "@wix/ricos/viewer";
3
3
  import I from "classnames";
4
- import { bM as b, bJ as x, bO as P, bF as j, X as B, am as q, T as U, V, M as w, I as z, U as J, f } from "./form-ur8Cb2nw.js";
5
- import { CheckboxGroup as K, CheckboxField as Q, CheckboxButton as X } from "react-aria-components";
4
+ import { bM as b, bJ as x, bV as j, bO as B, bF as q, X as U, am as V, T as w, V as K, M as z, I as J, U as Q, f } from "./form-Btp89piS.js";
5
+ import { CheckboxGroup as X, CheckboxField as Y, CheckboxButton as $ } from "react-aria-components";
6
6
  import { f as m, a as F } from "./find-child-C60k4CxG.js";
7
- import { L as Y, g as $ } from "./field-label-headless-D0N5zbDh.js";
8
- import { D as W, E as Z } from "./field-error-headless-DQ-jwMtX.js";
9
- import { F as ee } from "./fieldset-headless-CD3fds9J.js";
10
- import { E as te } from "./error-icon-hZxQ6DEy.js";
7
+ import { L as W, g as Z } from "./field-label-headless-1OrR7YHQ.js";
8
+ import { D as ee, E as te } from "./field-error-headless-DA6AMthK.js";
9
+ import { F as oe } from "./fieldset-headless-CD3fds9J.js";
10
+ import { E as ae } from "./error-icon-hZxQ6DEy.js";
11
11
  import { s as O } from "./field-rac.module-DcyJyi2B.js";
12
- import { u as oe } from "./use-element-state-class-name-Dc9b8x0t.js";
12
+ import { u as ne } from "./use-element-state-class-name-DV-k6djy.js";
13
13
  const o = ({ children: t, className: n }) => {
14
- const { id: s, value: a, onChange: i, disabled: l, readOnly: r, required: c, onBlur: u, onFocus: p, hasError: C, FieldLayout: L } = b(), { inputId: g, labelId: _, ariaDescribedBy: R } = x(), S = m(t, o.Label), A = m(t, o.Options), D = m(t, o.Description), M = m(t, o.Error), h = H(() => a || [], [
14
+ const { id: s, value: a, onChange: i, disabled: l, readOnly: r, required: c, onBlur: d, onFocus: p, hasError: C, FieldLayout: L } = b(), { inputId: g, labelId: _, ariaDescribedBy: A } = x(), N = S(null);
15
+ j(N);
16
+ const D = m(t, o.Label), M = m(t, o.Options), h = m(t, o.Description), v = m(t, o.Error), y = G(() => a || [], [
15
17
  a
16
- ]), v = T((y) => {
17
- i == null || i(y);
18
+ ]), H = k((T) => {
19
+ i == null || i(T);
18
20
  }, [
19
21
  i
20
22
  ]);
21
23
  return /* @__PURE__ */ e.createElement(L, {
22
24
  fieldId: s,
23
- renderLabel: () => S,
24
- renderInput: () => /* @__PURE__ */ e.createElement(ee, {
25
+ renderLabel: () => D,
26
+ renderInput: () => /* @__PURE__ */ e.createElement(oe, {
25
27
  id: g,
26
28
  ariaLabelledBy: _,
27
- ariaDescribedBy: R,
29
+ ariaDescribedBy: A,
28
30
  required: c,
29
- onBlur: u,
31
+ onBlur: d,
30
32
  onFocus: p
31
- }, /* @__PURE__ */ e.createElement(K, {
33
+ }, /* @__PURE__ */ e.createElement(X, {
34
+ ref: N,
32
35
  className: n,
33
36
  "aria-labelledby": _,
34
- value: h,
35
- onChange: v,
37
+ value: y,
38
+ onChange: H,
36
39
  isDisabled: l,
37
40
  isReadOnly: r,
38
41
  isRequired: c,
39
42
  isInvalid: C
40
- }, A)),
41
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, M, D)
43
+ }, M)),
44
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, v, h)
42
45
  });
43
- }, N = ({ children: t, className: n }) => {
44
- const { id: s, options: a, numberOfColumns: i } = b(), l = m(t, N.Option);
46
+ }, R = ({ children: t, className: n }) => {
47
+ const { id: s, options: a, numberOfColumns: i } = b(), l = m(t, R.Option);
45
48
  return /* @__PURE__ */ e.createElement("div", {
46
49
  className: n,
47
50
  "data-columns": i
@@ -51,12 +54,12 @@ const o = ({ children: t, className: n }) => {
51
54
  isFirst: c === 0,
52
55
  fieldId: s
53
56
  })));
54
- }, ae = ({ className: t }) => /* @__PURE__ */ e.createElement("div", {
57
+ }, se = ({ className: t }) => /* @__PURE__ */ e.createElement("div", {
55
58
  "aria-hidden": "true",
56
59
  className: t
57
- }), ne = ({ className: t, ...n }) => {
58
- var u, p;
59
- const { option: s } = n, { choiceImageResize: a, choiceImageAlignment: i } = b(), l = (u = s.media) == null ? void 0 : u.image, r = l && $(l, l.width, l.height);
60
+ }), le = ({ className: t, ...n }) => {
61
+ var d, p;
62
+ const { option: s } = n, { choiceImageResize: a, choiceImageAlignment: i } = b(), l = (d = s.media) == null ? void 0 : d.image, r = l && Z(l, l.width, l.height);
60
63
  if (!l || !r)
61
64
  return /* @__PURE__ */ e.createElement("div", {
62
65
  className: t,
@@ -72,26 +75,26 @@ const o = ({ children: t, className: n }) => {
72
75
  "data-alignment": i,
73
76
  "data-hook": "image-choice-option-image"
74
77
  });
75
- }, se = ({ className: t, ...n }) => {
78
+ }, ie = ({ className: t, ...n }) => {
76
79
  const { option: s } = n;
77
80
  return !s.label || s.isLabelHidden ? null : /* @__PURE__ */ e.createElement("span", {
78
81
  className: t
79
82
  }, s.label);
80
- }, d = ({ children: t, className: n, ...s }) => {
81
- const { option: a, isFirst: i = !1, fieldId: l } = s, { disabled: r, readOnly: c, hasError: u } = b(), p = G(null);
82
- P(() => {
83
+ }, u = ({ children: t, className: n, ...s }) => {
84
+ const { option: a, isFirst: i = !1, fieldId: l } = s, { disabled: r, readOnly: c, hasError: d } = b(), p = S(null);
85
+ B(() => {
83
86
  var _;
84
87
  i && ((_ = p.current) == null || _.focus({
85
88
  preventScroll: !0
86
89
  }));
87
90
  }, l);
88
- const C = m(t, d.Input), L = m(t, d.Image), g = m(t, d.Label);
89
- return /* @__PURE__ */ e.createElement(Q, {
91
+ const C = m(t, u.Input), L = m(t, u.Image), g = m(t, u.Label);
92
+ return /* @__PURE__ */ e.createElement(Y, {
90
93
  value: a.label,
91
94
  isDisabled: r,
92
95
  isReadOnly: c,
93
- isInvalid: u
94
- }, /* @__PURE__ */ e.createElement(X, {
96
+ isInvalid: d
97
+ }, /* @__PURE__ */ e.createElement($, {
95
98
  ref: p,
96
99
  "aria-label": a.isLabelHidden ? a.label : void 0,
97
100
  className: n,
@@ -102,54 +105,54 @@ const o = ({ children: t, className: n }) => {
102
105
  option: a
103
106
  })));
104
107
  };
105
- d.Input = ae;
106
- d.Image = ne;
107
- d.Label = se;
108
- o.Label = Y;
109
- o.Options = N;
110
- N.Option = d;
111
- o.Description = W;
112
- o.Error = Z;
113
- const le = "_options_j8uno_1", ie = "_optionInput_j8uno_33", re = "_option_j8uno_1", ce = "_optionHover_j8uno_64", me = "_optionSelected_j8uno_64", pe = "_optionLabel_j8uno_104", Ee = "_optionImage_j8uno_144", 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: n }) => /* @__PURE__ */ e.createElement(k, {
108
+ u.Input = se;
109
+ u.Image = le;
110
+ u.Label = ie;
111
+ o.Label = W;
112
+ o.Options = R;
113
+ R.Option = u;
114
+ o.Description = ee;
115
+ o.Error = te;
116
+ const re = "_options_j8uno_1", ce = "_optionInput_j8uno_33", me = "_option_j8uno_1", pe = "_optionHover_j8uno_64", Ee = "_optionSelected_j8uno_64", ue = "_optionLabel_j8uno_104", de = "_optionImage_j8uno_144", E = {
117
+ options: re,
118
+ optionInput: ce,
119
+ option: me,
120
+ optionHover: pe,
121
+ optionSelected: Ee,
122
+ optionLabel: ue,
123
+ optionImage: de
124
+ }, Ie = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(P, {
122
125
  content: t,
123
126
  locale: n
124
- }), ue = {
127
+ }), _e = {
125
128
  base: E.option,
126
129
  selected: E.optionSelected,
127
130
  hover: E.optionHover
128
- }, Ie = () => {
129
- const t = oe({
130
- globalClasses: J,
131
- moduleClasses: ue
132
- }), n = j(f.IMAGE_CHOICE, f.IMAGE_CHOICE_OPTION, f.IMAGE_CHOICE_OPTION_IMAGE);
131
+ }, Oe = () => {
132
+ const t = ne({
133
+ globalClasses: Q,
134
+ moduleClasses: _e
135
+ }), n = q(f.IMAGE_CHOICE, f.IMAGE_CHOICE_OPTION, f.IMAGE_CHOICE_OPTION_IMAGE);
133
136
  return /* @__PURE__ */ e.createElement(o, null, /* @__PURE__ */ e.createElement(o.Label, {
134
- className: I(B, O.label)
137
+ className: I(U, O.label)
135
138
  }, /* @__PURE__ */ e.createElement(o.Label.Required, {
136
- className: I(q, O.requiredMark)
139
+ className: I(V, O.requiredMark)
137
140
  })), /* @__PURE__ */ e.createElement(o.Options, {
138
- className: I(U, E.options)
141
+ className: I(w, E.options)
139
142
  }, /* @__PURE__ */ e.createElement(o.Options.Option, {
140
143
  className: t
141
144
  }, /* @__PURE__ */ e.createElement(o.Options.Option.Input, {
142
145
  className: E.optionInput
143
146
  }), /* @__PURE__ */ e.createElement(o.Options.Option.Image, {
144
- className: I(V, E.optionImage, n)
147
+ className: I(K, E.optionImage, n)
145
148
  }), /* @__PURE__ */ e.createElement(o.Options.Option.Label, {
146
149
  className: E.optionLabel
147
150
  }))), /* @__PURE__ */ e.createElement(o.Error, {
148
- className: I(w, O.error)
149
- }, /* @__PURE__ */ e.createElement(te, null), /* @__PURE__ */ e.createElement(o.Error.Text, null)), /* @__PURE__ */ e.createElement(o.Description, {
150
- className: I(z, O.description)
151
- }, de));
152
- }, De = () => /* @__PURE__ */ e.createElement(Ie, null);
151
+ className: I(z, O.error)
152
+ }, /* @__PURE__ */ e.createElement(ae, null), /* @__PURE__ */ e.createElement(o.Error.Text, null)), /* @__PURE__ */ e.createElement(o.Description, {
153
+ className: I(J, O.description)
154
+ }, Ie));
155
+ }, he = () => /* @__PURE__ */ e.createElement(Oe, null);
153
156
  export {
154
- De as ImageChoiceRAC
157
+ he as ImageChoiceRAC
155
158
  };
@@ -1,13 +1,13 @@
1
- import { e as R, b5 as _, bk as fe, b6 as O, aM as Ge, B as Be, a_ as qe, aT as He, aS as A, b0 as le, b9 as re, b3 as Ce, c as B, aU as M, bw as Ee, aW as je, aV as Te, aX as q } from "./form-ur8Cb2nw.js";
2
- import { br as Sn } from "./form-ur8Cb2nw.js";
1
+ import { e as R, b5 as _, bk as fe, b6 as O, aM as Ge, B as Be, a_ as qe, aT as He, aS as A, b0 as le, b9 as re, b3 as Ce, c as B, aU as M, bw as Ee, aW as je, aV as Te, aX as q } from "./form-Btp89piS.js";
2
+ import { br as Sn } from "./form-Btp89piS.js";
3
3
  import Xe from "ajv";
4
4
  import ke 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-zeRtXneN.js";
10
- import { a as Cn } from "./date-availability-zeRtXneN.js";
9
+ import { p as Qe, i as et } from "./date-availability-preR1uDm.js";
10
+ import { a as Cn } from "./date-availability-preR1uDm.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 { bv as n } from "./form-ur8Cb2nw.js";
2
- import { A as S, a as g, C as p, aZ as N, bf as q, bg as D, bx as L } from "./form-ur8Cb2nw.js";
1
+ import { bv as n } from "./form-Btp89piS.js";
2
+ import { A as S, a as g, C as p, aZ as N, bf as q, bg as D, bx as L } from "./form-Btp89piS.js";
3
3
  const l = (e = !1) => ({
4
4
  country: {
5
5
  required: e
@@ -1,4 +1,4 @@
1
- import { b7 as c } from "./form-ur8Cb2nw.js";
1
+ import { b7 as c } from "./form-Btp89piS.js";
2
2
  var b, d;
3
3
  function k() {
4
4
  if (d) return b;
@@ -2,21 +2,21 @@ import { RicosViewer as z } from "@wix/ricos/viewer";
2
2
  import L from "classnames";
3
3
  import n, { useMemo as w, createContext as We, useContext as Ie, useState as Ee, useRef as x, useCallback as _, useEffect as Pe } from "react";
4
4
  import { UNSAFE_PortalProvider as Mt } from "react-aria";
5
- import { bH as It, d as Lt, bC as qt, bE as Nt, bf as wt, bg as xt, b8 as Bt, be as W, F as K, bX as Te, bv as ct, bM as P, bJ as M, bO as ae, bV as be, bI as Ot, bk as kt, C as ge, bt as Ut, bx as Vt, bT as $t, bN as Wt, bS as Kt, bA as Yt, bp as Ht, bz as jt, bP as Jt, aP as Xt, Y as zt, _ as G, am as Q, $ as Oe, M as Z, I as ee, Z as Gt, a0 as Qt, a1 as Zt } from "./form-ur8Cb2nw.js";
5
+ import { bH as It, d as Lt, bC as qt, bE as Nt, bf as wt, bg as xt, b8 as Bt, be as W, F as K, bX as Te, bv as ct, bM as P, bJ as M, bO as ae, bV as be, bI as Ot, bk as kt, C as ge, bt as Ut, bx as Vt, bT as $t, bN as Wt, bS as Kt, bA as Yt, bp as Ht, bz as jt, bP as Jt, aP as Xt, Y as zt, _ as G, am as Q, $ as Oe, M as Z, I as ee, Z as Gt, a0 as Qt, a1 as Zt } from "./form-Btp89piS.js";
6
6
  import { f as b, a as v } from "./find-child-C60k4CxG.js";
7
7
  import { F as en, V as tn } from "./headless-styles-CmcyA_pi.js";
8
- import { c as nn } from "./use-is-forced-open-dropdown-BlG9NkCS.js";
8
+ import { c as nn } from "./use-is-forced-open-dropdown-DEAhUhvR.js";
9
9
  import { TextField as fe, Input as le, ComboBoxStateContext as Ke, ComboBox as Fe, Popover as De, ListBox as Me, ListBoxItem as he, Group as gt, Button as vt } from "react-aria-components";
10
- import { D as ie, E as ce } from "./field-error-headless-DQ-jwMtX.js";
11
- import { L as de } from "./field-label-headless-D0N5zbDh.js";
12
- import { e as rn, c as on, a as sn, r as St } from "./isObjectLike-CA05Trvx.js";
13
- import { V as an, a as ln } from "./use-dropdown-option-class-name-DCf8o4bn.js";
10
+ import { D as ie, E as ce } from "./field-error-headless-DA6AMthK.js";
11
+ import { L as de } from "./field-label-headless-1OrR7YHQ.js";
12
+ import { e as rn, c as on, a as sn, r as St } from "./isObjectLike-DVQDteBM.js";
13
+ import { V as an, a as ln } from "./use-dropdown-option-class-name-CofwyYPw.js";
14
14
  import { u as cn } from "./use-invoke-callback-UH73A_J3.js";
15
15
  import { C as dt } from "./chevron-down-icon-CcpVm6B-.js";
16
16
  import { E as te } from "./error-icon-hZxQ6DEy.js";
17
17
  import { H as qe } from "./custom-focus-class-_483Pkwp.js";
18
18
  import { s as C } from "./field-rac.module-DcyJyi2B.js";
19
- import { u as ut } from "./use-hoverable-input-class-name-BNb7P_5E.js";
19
+ import { u as ut } from "./use-hoverable-input-class-name-CwCi7XA4.js";
20
20
  const dn = (e, t, o) => {
21
21
  var s, l, i, a;
22
22
  const r = (s = e.steps) == null ? void 0 : s.map((d) => {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { M as t } from "./multiline-address-field-rac-O10IwOCo.js";
2
+ import { M as t } from "./multiline-address-field-rac-Bk14yixn.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 X, useCallback as J, useEffect as Q, useRef as U } from "react";
4
4
  import { NumberField as $, Input as j } from "react-aria-components";
5
- import { bM as _, bJ as S, bX as z, bO as G, X as H, am as K, M as W, I as Y } from "./form-ur8Cb2nw.js";
5
+ import { bM as _, bJ as S, bX as z, bO as G, X as H, am as K, M as W, I as Y } from "./form-Btp89piS.js";
6
6
  import { f as c } from "./find-child-C60k4CxG.js";
7
- import { D as Z, E as w } from "./field-error-headless-DQ-jwMtX.js";
8
- import { L as ee } from "./field-label-headless-D0N5zbDh.js";
7
+ import { D as Z, E as w } from "./field-error-headless-DA6AMthK.js";
8
+ import { L as ee } from "./field-label-headless-1OrR7YHQ.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-DcyJyi2B.js";
13
- import { u as se } from "./use-text-input-class-name-BxX9CE3F.js";
13
+ import { u as se } from "./use-text-input-class-name-DusXY0Ou.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, M = (R = n == null ? void 0 : n.number) == null ? void 0 : R.minimum, g = C(s), [x, I] = X(g), T = ne(E), V = c(t, e.Label), h = c(t, e.Input), q = 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-Dv6mIcWK.js";
2
+ import { N as r } from "./number-input-field-rac-BW_Kdtif.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 O } from "react";
2
2
  import { RicosViewer as x } from "@wix/ricos/viewer";
3
3
  import d from "classnames";
4
- import { bM as E, bJ as I, bO as V, bV as A, bX as B, X as v, am as M, M as P, I as k } from "./form-ur8Cb2nw.js";
4
+ import { bM as E, bJ as I, bO as V, bV as A, bX as B, X as v, am as M, M as P, I as k } from "./form-Btp89piS.js";
5
5
  import { TextField as q, Group as U, Input as j, Button as H } from "react-aria-components";
6
6
  import { f as u, a as b } from "./find-child-C60k4CxG.js";
7
- import { D as W, E as X } from "./field-error-headless-DQ-jwMtX.js";
8
- import { L as Z } from "./field-label-headless-D0N5zbDh.js";
7
+ import { D as W, E as X } from "./field-error-headless-DA6AMthK.js";
8
+ import { L as Z } from "./field-label-headless-1OrR7YHQ.js";
9
9
  import { E as G } from "./error-icon-hZxQ6DEy.js";
10
10
  import { H as J } from "./custom-focus-class-_483Pkwp.js";
11
11
  import { s as p } from "./field-rac.module-DcyJyi2B.js";
12
- import { u as K } from "./use-text-input-class-name-BxX9CE3F.js";
12
+ import { u as K } from "./use-text-input-class-name-DusXY0Ou.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, autoComplete: y, FieldLayout: _ } = E(), { labelId: R } = I(), [D, F] = N(!1), L = u(o, t.Label), T = u(o, t.Control), h = 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 J } from "react";
2
2
  import { RicosViewer as Q } from "@wix/ricos/viewer";
3
3
  import p from "classnames";
4
4
  import { TextField as j, Group as w, Input as z } from "react-aria-components";
5
- import { bM as R, bJ as D, bE as x, bX as K, bO as W, X as Y, am as Z, M as ee, I as re } from "./form-ur8Cb2nw.js";
5
+ import { bM as R, bJ as D, bE as x, bX as K, bO as W, X as Y, am as Z, M as ee, I as re } from "./form-Btp89piS.js";
6
6
  import { f as i } from "./find-child-C60k4CxG.js";
7
- import { D as te, E as ne } from "./field-error-headless-DQ-jwMtX.js";
8
- import { L as ae } from "./field-label-headless-D0N5zbDh.js";
7
+ import { D as te, E as ne } from "./field-error-headless-DA6AMthK.js";
8
+ import { L as ae } from "./field-label-headless-1OrR7YHQ.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-DcyJyi2B.js";
14
- import { u as ie } from "./use-text-input-class-name-BxX9CE3F.js";
14
+ import { u as ie } from "./use-text-input-class-name-DusXY0Ou.js";
15
15
  function ue(e, t) {
16
16
  return {
17
17
  productId: e.id,
@@ -1,16 +1,16 @@
1
1
  import { RicosViewer as ye } from "@wix/ricos/viewer";
2
2
  import O from "classnames";
3
3
  import t, { useMemo as $, useState as A, useRef as F, useEffect as k, useCallback as W, createContext as ne, useContext as q, useId as Ee } from "react";
4
- import { bv as fe, bX as D, bE as oe, bW as he, bM as w, bJ as re, bO as ge, X as Oe, am as be, a3 as X, M as _e, I as Ne, a5 as Le, a4 as Se, a2 as Ie } from "./form-ur8Cb2nw.js";
4
+ import { bv as fe, bX as D, bE as oe, bW as he, bM as w, bJ as re, bO as ge, X as Oe, am as be, a3 as X, M as _e, I as Ne, a5 as Le, a4 as Se, a2 as Ie } from "./form-Btp89piS.js";
5
5
  import { UNSAFE_PortalProvider as Pe } from "react-aria";
6
6
  import { Dialog as ae, OverlayTriggerStateContext as ve, ModalOverlay as Fe, Modal as De, SearchField as we, Group as U, ListBoxItem as Be, DialogTrigger as Re, Select as xe, Input as se, Autocomplete as Me } from "react-aria-components";
7
7
  import { f as h, a as I } from "./find-child-C60k4CxG.js";
8
- import { D as je, E as $e } from "./field-error-headless-DQ-jwMtX.js";
9
- import { L as Ae } from "./field-label-headless-D0N5zbDh.js";
8
+ import { D as je, E as $e } from "./field-error-headless-DA6AMthK.js";
9
+ import { L as Ae } from "./field-label-headless-1OrR7YHQ.js";
10
10
  import { N as Te, S as ke } from "./non-modal-popover-D-u13tmp.js";
11
11
  import { u as Ve } from "./use-invoke-callback-UH73A_J3.js";
12
- import { d as He } from "./use-is-forced-open-dropdown-BlG9NkCS.js";
13
- import { V as Ue, a as qe } from "./use-dropdown-option-class-name-DCf8o4bn.js";
12
+ import { d as He } from "./use-is-forced-open-dropdown-DEAhUhvR.js";
13
+ import { V as Ue, a as qe } from "./use-dropdown-option-class-name-CofwyYPw.js";
14
14
  import ce, { AsYouType as Ge, isValidPhoneNumber as Ye, isSupportedCountry as ze } from "libphonenumber-js";
15
15
  import "libphonenumber-js/metadata.min.json";
16
16
  import { C as Z } from "./calling-country-codes-PyWuOTmF.js";
@@ -18,7 +18,7 @@ import { C as Ke } from "./chevron-down-icon-CcpVm6B-.js";
18
18
  import { E as We } from "./error-icon-hZxQ6DEy.js";
19
19
  import { H as J } from "./custom-focus-class-_483Pkwp.js";
20
20
  import { s as b } from "./field-rac.module-DcyJyi2B.js";
21
- import { u as Q } from "./use-hoverable-input-class-name-BNb7P_5E.js";
21
+ import { u as Q } from "./use-hoverable-input-class-name-CwCi7XA4.js";
22
22
  function ee(e) {
23
23
  const n = e ? ce(e) : void 0, r = n == null ? void 0 : n.country;
24
24
  if (r)
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { P as o } from "./phone-input-field-rac-B1fOUnoX.js";
2
+ import { P as o } from "./phone-input-field-rac-Cbqj1mRX.js";
3
3
  const r = () => /* @__PURE__ */ e.createElement(o, null);
4
4
  export {
5
5
  r as PhoneRAC
@@ -2,11 +2,11 @@ import t, { useMemo as K, useCallback as v, useRef as x } from "react";
2
2
  import { RicosViewer as X } from "@wix/ricos/viewer";
3
3
  import y from "classnames";
4
4
  import { CheckboxField as $, CheckboxButton as z, NumberField as J, Group as Y, Button as Q, Input as j } from "react-aria-components";
5
- import { bM as U, bJ as W, bE as V, bX as Z, bO as ee, X as te, am as ne, a6 as ae, a7 as oe, aa as re, a9 as le, ab as se, M as ie, I as ce, a8 as ue } from "./form-ur8Cb2nw.js";
5
+ import { bM as U, bJ as W, bE as V, bX as Z, bO as ee, X as te, am as ne, a6 as ae, a7 as oe, aa as re, a9 as le, ab as se, M as ie, I as ce, a8 as ue } from "./form-Btp89piS.js";
6
6
  import { f, a as b } from "./find-child-C60k4CxG.js";
7
- import { L as me, g as pe } from "./field-label-headless-D0N5zbDh.js";
7
+ import { L as me, g as pe } from "./field-label-headless-1OrR7YHQ.js";
8
8
  import { f as de } from "./format-currency-BwShJ9vM.js";
9
- import { D as Ee, E as _e } from "./field-error-headless-DQ-jwMtX.js";
9
+ import { D as Ee, E as _e } from "./field-error-headless-DA6AMthK.js";
10
10
  import { F as ye } from "./fieldset-headless-CD3fds9J.js";
11
11
  import { g as Ie } from "./payment-field-utils-DobiK5Xh.js";
12
12
  import { S as be } from "./selection-indicator-XQ8MYHUQ.js";
@@ -14,7 +14,7 @@ import { E as fe } from "./error-icon-hZxQ6DEy.js";
14
14
  import { C as Oe } from "./checkbox-indicator-module-classes-DOxE4UQg.js";
15
15
  import { s as A } from "./field-rac.module-DcyJyi2B.js";
16
16
  import { o as w } from "./options-rac.module-_THNq6Qq.js";
17
- import { u as Le } from "./use-element-state-class-name-Dc9b8x0t.js";
17
+ import { u as Le } from "./use-element-state-class-name-DV-k6djy.js";
18
18
  var Ce = /* @__PURE__ */ (function(e) {
19
19
  return e.crop = "CROP", e.fit = "FIT", e;
20
20
  })({}), k = /* @__PURE__ */ (function(e) {
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { R as r } from "./radio-group-field-rac-DMly0YyR.js";
2
+ import { R as r } from "./radio-group-field-rac-CxkaF2XW.js";
3
3
  const i = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  i as QuizRadioGroupRAC
@@ -1,26 +1,29 @@
1
- import a, { useRef as F, useState as T, useEffect as B, useCallback as H } from "react";
2
- import { RadioGroup as k, RadioField as A, RadioButton as G, TextField as P, Input as $ } from "react-aria-components";
3
- import { bM as g, bJ as q, bX as D, bO as x } from "./form-ur8Cb2nw.js";
1
+ import a, { useRef as S, useState as B, useEffect as H, useCallback as P } from "react";
2
+ import { RadioGroup as k, RadioField as A, RadioButton as G, TextField as $, Input as q } from "react-aria-components";
3
+ import { bM as g, bJ as x, bV as M, bX as D, bO as U } from "./form-Btp89piS.js";
4
4
  import { f as u, a as L } from "./find-child-C60k4CxG.js";
5
- import { D as M, E as U } from "./field-error-headless-DQ-jwMtX.js";
6
- import { L as J } from "./field-label-headless-D0N5zbDh.js";
7
- import { S as X } from "./selection-indicator-XQ8MYHUQ.js";
8
- const v = "Other", j = (e, t) => e == null ? void 0 : e.find((n) => (n.value ?? n.label) === t), y = (e, t) => !!t && !j(e, t), w = (e, t) => {
5
+ import { D as J, E as K } from "./field-error-headless-DA6AMthK.js";
6
+ import { L as X } from "./field-label-headless-1OrR7YHQ.js";
7
+ import { S as j } from "./selection-indicator-XQ8MYHUQ.js";
8
+ const v = "Other", w = (e, t) => e == null ? void 0 : e.find((n) => (n.value ?? n.label) === t), F = (e, t) => !!t && !w(e, t), z = (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: h, disabled: p, readOnly: O, required: m, onBlur: E, onFocus: b, hasError: r, FieldLayout: c, options: o } = g(), { inputId: f, labelId: C, ariaDescribedBy: I } = q(), s = u(e, i.Label), _ = u(e, i.Options), R = u(e, i.Description), N = u(e, i.Error), V = y(o, l) ? v : l || null;
12
+ const { id: n, value: l, onChange: h, disabled: p, readOnly: O, required: m, onBlur: E, onFocus: b, hasError: r, FieldLayout: c, options: o } = g(), { inputId: f, labelId: C, ariaDescribedBy: I } = x(), s = S(null);
13
+ M(s);
14
+ const _ = u(e, i.Label), R = u(e, i.Options), V = u(e, i.Description), N = u(e, i.Error), T = F(o, l) ? v : l || null;
13
15
  return /* @__PURE__ */ a.createElement(c, {
14
16
  fieldId: n,
15
- renderLabel: () => L(s, {
17
+ renderLabel: () => L(_, {
16
18
  as: "div"
17
19
  }),
18
20
  renderInput: () => /* @__PURE__ */ a.createElement(k, {
21
+ ref: s,
19
22
  id: f,
20
23
  className: t,
21
24
  "aria-labelledby": C,
22
25
  "aria-describedby": I,
23
- value: V,
26
+ value: T,
24
27
  onChange: h,
25
28
  isDisabled: p,
26
29
  isReadOnly: O,
@@ -28,12 +31,12 @@ const v = "Other", j = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
28
31
  isInvalid: r,
29
32
  onBlur: E,
30
33
  onFocus: b
31
- }, _),
32
- renderDescription: () => /* @__PURE__ */ a.createElement(a.Fragment, null, N, R)
34
+ }, R),
35
+ renderDescription: () => /* @__PURE__ */ a.createElement(a.Fragment, null, N, V)
33
36
  });
34
- }, z = ({ children: e, className: t }) => {
35
- const { options: n, addOther: l, addOtherLabel: h, id: p, numberOfColumns: O, hasError: m } = g(), { t: E } = D(), b = u(e, i.Option), r = F(null), c = h || E("add-other.default-other-option-label") || v;
36
- return x(() => {
37
+ }, Q = ({ children: e, className: t }) => {
38
+ const { options: n, addOther: l, addOtherLabel: h, id: p, numberOfColumns: O, hasError: m } = g(), { t: E } = D(), b = u(e, i.Option), r = S(null), c = h || E("add-other.default-other-option-label") || v;
39
+ return U(() => {
37
40
  var o;
38
41
  (o = r.current) == null || o.focus({
39
42
  preventScroll: !0
@@ -56,7 +59,7 @@ const v = "Other", j = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
56
59
  }));
57
60
  }, d = ({ children: e, className: t, ...n }) => {
58
61
  var I;
59
- const { value: l, label: h, isOther: p = !1, radioRef: O } = n, { value: m, options: E } = g(), b = u(e, d.Label), r = u(e, d.Input), c = u(e, d.Control), o = u(e, d.OtherInput), f = p ? y(E, m) : m === l, C = (I = r == null ? void 0 : r.props) == null ? void 0 : I.className;
62
+ const { value: l, label: h, isOther: p = !1, radioRef: O } = n, { value: m, options: E } = g(), b = u(e, d.Label), r = u(e, d.Input), c = u(e, d.Control), o = u(e, d.OtherInput), f = p ? F(E, m) : m === l, C = (I = r == null ? void 0 : r.props) == null ? void 0 : I.className;
60
63
  return /* @__PURE__ */ a.createElement("div", {
61
64
  className: t
62
65
  }, /* @__PURE__ */ a.createElement(A, {
@@ -71,20 +74,20 @@ const v = "Other", j = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
71
74
  }), L(b, {
72
75
  label: h
73
76
  })))), p && f && o);
74
- }, K = ({ className: e, ...t }) => {
77
+ }, W = ({ className: e, ...t }) => {
75
78
  const { label: n } = t;
76
79
  return /* @__PURE__ */ a.createElement("span", {
77
80
  className: e
78
81
  }, n);
79
- }, Q = (e) => null, W = ({ className: e }) => {
80
- const { value: t, onChange: n, addOtherLabel: l, addOtherPlaceholder: h, otherInputCharacterLimit: p, disabled: O, readOnly: m, options: E } = g(), { t: b } = D(), r = F(null), c = y(E, t), o = l || b("add-other.default-other-option-label") || v, [f, C] = T(c && t ? w(t, l) : "");
81
- B(() => {
82
+ }, Y = (e) => null, Z = ({ className: e }) => {
83
+ const { value: t, onChange: n, addOtherLabel: l, addOtherPlaceholder: h, otherInputCharacterLimit: p, disabled: O, readOnly: m, options: E } = g(), { t: b } = D(), r = S(null), c = F(E, t), o = l || b("add-other.default-other-option-label") || v, [f, C] = B(c && t ? z(t, l) : "");
84
+ H(() => {
82
85
  var s;
83
86
  c && r.current && ((s = r.current) == null || s.focus());
84
87
  }, [
85
88
  c
86
89
  ]);
87
- const I = H((s) => {
90
+ const I = P((s) => {
88
91
  let _;
89
92
  s ? _ = `${l}: ${s}` : _ = o, n(_), C(s);
90
93
  }, [
@@ -92,43 +95,43 @@ const v = "Other", j = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
92
95
  l,
93
96
  o
94
97
  ]);
95
- return /* @__PURE__ */ a.createElement(P, {
98
+ return /* @__PURE__ */ a.createElement($, {
96
99
  "aria-label": o,
97
100
  value: f,
98
101
  onChange: I,
99
102
  isDisabled: O,
100
103
  isReadOnly: m
101
- }, /* @__PURE__ */ a.createElement($, {
104
+ }, /* @__PURE__ */ a.createElement(q, {
102
105
  ref: r,
103
106
  className: e,
104
107
  placeholder: h,
105
108
  maxLength: p
106
109
  }));
107
110
  };
108
- d.Label = K;
109
- d.Input = Q;
110
- d.Control = X;
111
- d.OtherInput = W;
112
- i.Label = J;
113
- i.Options = z;
111
+ d.Label = W;
112
+ d.Input = Y;
113
+ d.Control = j;
114
+ d.OtherInput = Z;
115
+ i.Label = X;
116
+ i.Options = Q;
114
117
  i.Option = d;
115
- i.Description = M;
116
- i.Error = U;
117
- const Y = "_labelImage_1u9f2_1", Z = "_option_1u9f2_26", ee = "_optionInput_1u9f2_32", te = "_optionControl_1u9f2_50", oe = "_optionControlHover_1u9f2_72", ne = "_optionControlSelected_1u9f2_90", le = "_optionLabel_1u9f2_137", S = {
118
- labelImage: Y,
119
- option: Z,
120
- optionInput: ee,
121
- optionControl: te,
122
- optionControlHover: oe,
123
- optionControlSelected: ne,
124
- optionLabel: le
125
- }, pe = {
126
- base: S.optionControl,
127
- selected: S.optionControlSelected,
128
- hover: S.optionControlHover
118
+ i.Description = J;
119
+ i.Error = K;
120
+ const ee = "_labelImage_1u9f2_1", te = "_option_1u9f2_26", oe = "_optionInput_1u9f2_32", ne = "_optionControl_1u9f2_50", le = "_optionControlHover_1u9f2_72", ae = "_optionControlSelected_1u9f2_90", re = "_optionLabel_1u9f2_137", y = {
121
+ labelImage: ee,
122
+ option: te,
123
+ optionInput: oe,
124
+ optionControl: ne,
125
+ optionControlHover: le,
126
+ optionControlSelected: ae,
127
+ optionLabel: re
128
+ }, be = {
129
+ base: y.optionControl,
130
+ selected: y.optionControlSelected,
131
+ hover: y.optionControlHover
129
132
  };
130
133
  export {
131
- pe as R,
134
+ be as R,
132
135
  i as a,
133
- S as s
136
+ y as s
134
137
  };