@wix/form-elements 1.107.0 → 1.109.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 (115) hide show
  1. package/dist/component/{appointment-rac-D2F4vgf1.js → appointment-rac-C9-XwsPI.js} +295 -296
  2. package/dist/component/{bookings-address-rac-_5S8J8_i.js → bookings-address-rac-jrrCPWjw.js} +1 -1
  3. package/dist/component/{bookings-email-rac-6vmDR9nS.js → bookings-email-rac-J9-RMEbf.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DtTJ4T2K.js → bookings-first-name-rac-CH7-6JmA.js} +1 -1
  5. package/dist/component/{bookings-header-rac-B3dsEwzR.js → bookings-header-rac-C2JV-ciN.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-B3idkbi8.js → bookings-last-name-rac-0a9CwiaV.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CrRBcQwT.js → bookings-login-bar-rac-4Mb7MQYe.js} +21 -22
  8. package/dist/component/{bookings-phone-rac-BE0yWNnj.js → bookings-phone-rac-vYx5r5jn.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CYo1l0-6.js → bookings-rich-text-rac-CWg1FgUp.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-boTtXVEt.js → checkbox-field-rac-Dwx1leKA.js} +27 -28
  11. package/dist/component/{checkbox-group-field-headless-DnkUvDm8.js → checkbox-group-field-headless-AFWgXzx_.js} +41 -41
  12. package/dist/component/{checkbox-group-field-rac-DrDTgHMg.js → checkbox-group-field-rac-CO8kmWJp.js} +6 -6
  13. package/dist/component/{checkbox-group-rac-v3ozUBpo.js → checkbox-group-rac-_79HsFF4.js} +1 -1
  14. package/dist/component/{checkbox-rac-YSLE-RnG.js → checkbox-rac-B_tbMfjo.js} +1 -1
  15. package/dist/component/{contacts-address-rac-C653yaHZ.js → contacts-address-rac-SJ5Tvzd0.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BeAQ6shx.js → contacts-birthdate-rac-BU1L3sbW.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BglKOoTG.js → contacts-company-rac-Y4B8KhDa.js} +1 -1
  18. package/dist/component/{contacts-email-rac-D6m7ynfc.js → contacts-email-rac-CQW84o7C.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-Dgxn0tUJ.js → contacts-first-name-rac-Dtai-wtH.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-1UyIuRKH.js → contacts-last-name-rac--ixuu3ri.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BQ77BlW4.js → contacts-phone-rac-HOHfSvT-.js} +1 -1
  22. package/dist/component/{contacts-position-rac-BUDUv7lv.js → contacts-position-rac-BPMkh6yf.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-DdtA0qKW.js → contacts-subscribe-rac-D0_RMwJb.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-WUaKcNl0.js → contacts-tax-id-rac-CZJmMiVf.js} +1 -1
  25. package/dist/component/{date-availability-XjBFq8jt.js → date-availability-C4dDHvuc.js} +1 -1
  26. package/dist/component/{date-input-field-rac-aY2zuuKs.js → date-input-field-rac-8oERZcqh.js} +79 -80
  27. package/dist/component/{date-input-rac-DRiP2_97.js → date-input-rac-CYRojmW6.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-Bzl-d3Uj.js → date-picker-field-rac-CIspU7No.js} +87 -88
  29. package/dist/component/{date-picker-rac-DHHUh8vn.js → date-picker-rac-D0Y0zf2J.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-DP_StuLr.js → date-time-input-field-rac-0daWK65I.js} +73 -74
  31. package/dist/component/{date-time-input-rac-B11KIxsf.js → date-time-input-rac-BemKPk1j.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-BHZBqyWv.js → dext-checkbox-group-rac-BpFNn56W.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-BIlAqEvV.js → dext-checkbox-rac-DOISgubJ.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-CHBXNrZi.js → dext-date-picker-rac-CNGhFg_g.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-BYtliKry.js → dext-date-time-input-rac-BuUIvJRr.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-C2VPSFV5.js → dext-dropdown-rac-DtND-Dbo.js} +1 -1
  37. package/dist/component/{dext-email-rac-Fnb0Ggcs.js → dext-email-rac-CmjLFOi8.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DopfSyFi.js → dext-number-input-rac-DHTNg1dh.js} +1 -1
  39. package/dist/component/{dext-phone-rac-Rn4i_2rc.js → dext-phone-rac-BrrU5qH_.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-bNaskJpK.js → dext-radio-group-rac-CD3MGfAM.js} +4 -4
  41. package/dist/component/{dext-rating-input-rac-DL6ZZd7d.js → dext-rating-input-rac-BETGJZmt.js} +1 -1
  42. package/dist/component/{dext-tags-rac-TsUPoImO.js → dext-tags-rac-Coo9jN-T.js} +4 -4
  43. package/dist/component/{dext-text-area-rac-BIuY7LTd.js → dext-text-area-rac-CNWjqhUT.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-CSYPW0Qi.js → dext-text-input-rac-CCWyDexv.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-_g0lqGfW.js → dext-url-input-rac-Dtakkgmk.js} +1 -1
  46. package/dist/component/{donation-rac-BYKFtsyR.js → donation-rac-BboGm_k_.js} +101 -102
  47. package/dist/component/{dropdown-field-headless-CBaqlNZi.js → dropdown-field-headless-BTMJGUwY.js} +16 -16
  48. package/dist/component/{dropdown-field-rac-CCAGSMm3.js → dropdown-field-rac-CDRV8ckB.js} +5 -5
  49. package/dist/component/{dropdown-rac-C_EqUsZ1.js → dropdown-rac-kEuU2pXW.js} +1 -1
  50. package/dist/component/{ecom-address-rac-Bw9eH0iF.js → ecom-address-rac-BgKL9ElH.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-B5PVOO2a.js → ecom-subscription-checkbox-rac-CDhJsNPD.js} +6 -6
  52. package/dist/component/{email-input-field-rac-B2kqQ6yo.js → email-input-field-rac-DdOd86NX.js} +54 -55
  53. package/dist/component/{events-repeater-rac--4OnUxWE.js → events-repeater-rac-_VJ30dpB.js} +62 -63
  54. package/dist/component/{events-rsvp-rac-CczCoo3T.js → events-rsvp-rac-DA-261bq.js} +5 -5
  55. package/dist/component/{field-error-headless-D3-1L5sf.js → field-error-headless-CovyN0GI.js} +8 -8
  56. package/dist/component/{field-label-headless-Du4ckIVy.js → field-label-headless-DVvX2QaH.js} +11 -11
  57. package/dist/component/file-upload-rac-bhEPUJPs.js +561 -0
  58. package/dist/component/fixed-payment-rac-DmI6MeKc.js +61 -0
  59. package/dist/component/{form-DQauhsho.js → form-BTDgyr54.js} +3430 -3244
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +3 -3
  62. package/dist/component/header-field-rac-C0rUjmo0.js +24 -0
  63. package/dist/component/{header-rac-CR9T3Pnu.js → header-rac-DRMO22PV.js} +1 -1
  64. package/dist/component/{image-choice-rac-DJ_8v467.js → image-choice-rac-CQDQ7AlD.js} +32 -33
  65. package/dist/component/{index-CcUTIUWM.js → index-B9QlosT1.js} +12 -12
  66. package/dist/component/{index-BB7d_9Dv.js → index-CNWT9t6j.js} +66 -66
  67. package/dist/component/{isObjectLike-xvPa_08X.js → isObjectLike-c0td2WCR.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-CyaFOloE.js → multiline-address-field-rac-D8bVxRsD.js} +124 -125
  69. package/dist/component/{multiline-address-rac-CaHGUN_f.js → multiline-address-rac-g-6RB7o8.js} +1 -1
  70. package/dist/component/number-input-field-rac-BaOwQ5Ya.js +92 -0
  71. package/dist/component/{number-input-rac-DMKX6nhk.js → number-input-rac-BXv8-Pnj.js} +1 -1
  72. package/dist/component/{password-rac-0RUXPAn6.js → password-rac-BB9XeSSZ.js} +36 -37
  73. package/dist/component/{payment-input-rac-CHSZ3-Lt.js → payment-input-rac-DwnSV9rM.js} +41 -42
  74. package/dist/component/{phone-input-field-rac-JmIFcP1e.js → phone-input-field-rac-CC3C4ToW.js} +56 -57
  75. package/dist/component/{phone-rac-BLRnAPXP.js → phone-rac-DpNhSaE0.js} +1 -1
  76. package/dist/component/{product-list-rac-BkF5tDwt.js → product-list-rac-BAESk3B6.js} +74 -75
  77. package/dist/component/{quiz-radio-group-rac-32cCMTUS.js → quiz-radio-group-rac-PS6AZr63.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-IOulhuSH.js → radio-button-module-classes-CXcn5unY.js} +30 -30
  79. package/dist/component/{radio-group-field-rac-CJwku6e0.js → radio-group-field-rac-pt8xbDfS.js} +6 -6
  80. package/dist/component/{radio-group-rac-BiW-9Abj.js → radio-group-rac-DkzkM6N_.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-B9cwaROK.js → rating-input-field-rac-DDHBkR4x.js} +43 -44
  82. package/dist/component/{rating-input-rac-BpwlNvzQ.js → rating-input-rac-CcsDmLus.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-B1uyPmtK.js → rich-content-rac.module-B2vsO6fj.js} +4 -4
  84. package/dist/component/rich-text-field-rac-CvKht2eC.js +21 -0
  85. package/dist/component/{rich-text-rac-VfeZxS27.js → rich-text-rac-CRpSffQB.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-BCfs8IhW.js → service-dropdown-rac-BOpdXNjG.js} +36 -37
  87. package/dist/component/{services-multi-choice-rac-CCqdF_7P.js → services-multi-choice-rac-t0wdSt_T.js} +20 -21
  88. package/dist/component/{signature-rac-DOyMo3u0.js → signature-rac-2LsIYYIX.js} +141 -142
  89. package/dist/component/{submit-button-rac-C2uA5DeE.js → submit-button-rac-BbE8dS35.js} +26 -27
  90. package/dist/component/{tags-field-rac-C_uIw2by.js → tags-field-rac-BnsBxReU.js} +44 -45
  91. package/dist/component/{tags-rac-1pQ-fpe_.js → tags-rac-BFH4RINA.js} +1 -1
  92. package/dist/component/{text-area-field-rac-DqlOkm7e.js → text-area-field-rac-Ag7_gniM.js} +28 -29
  93. package/dist/component/{text-area-rac-DPdkrFcH.js → text-area-rac-ByUX0p2O.js} +1 -1
  94. package/dist/component/{text-input-field-rac-CmXm6r1w.js → text-input-field-rac-D3MZ8teu.js} +3 -3
  95. package/dist/component/{text-input-headless-DD__2DFf.js → text-input-headless-CwONErsY.js} +12 -12
  96. package/dist/component/{text-input-rac-DRHyQEH7.js → text-input-rac-DLXdAhkK.js} +1 -1
  97. package/dist/component/{time-input-rac-BJPIymQY.js → time-input-rac-Bs55lTON.js} +33 -34
  98. package/dist/component/url-input-field-rac-FG-bCh-E.js +74 -0
  99. package/dist/component/{url-input-rac-C0ChQUzq.js → url-input-rac-BOKuCMTe.js} +1 -1
  100. package/dist/component/use-dropdown-option-class-name-DjV7FW5y.js +21 -0
  101. package/dist/component/{use-element-state-class-name-BatTc2bw.js → use-element-state-class-name-DB1AzkvF.js} +1 -1
  102. package/dist/component/{use-is-forced-open-dropdown-B0jiPTmS.js → use-is-forced-open-dropdown-ifUIpuwL.js} +7 -7
  103. package/dist/component/{use-service-options-base-oeE7xszw.js → use-service-options-base-B11cq0HH.js} +7 -7
  104. package/dist/component/use-text-input-class-name-va1PzWFg.js +23 -0
  105. package/dist/form.d.ts +21 -1
  106. package/package.json +2 -2
  107. package/dist/component/file-upload-rac-DbdkUbWM.js +0 -484
  108. package/dist/component/fixed-payment-rac-f9-01iDN.js +0 -62
  109. package/dist/component/form-element-classes-bLFmhsKw.js +0 -137
  110. package/dist/component/header-field-rac-DamDk5BR.js +0 -25
  111. package/dist/component/number-input-field-rac-BuYUzDWV.js +0 -93
  112. package/dist/component/rich-text-field-rac-C_qE7Ykg.js +0 -22
  113. package/dist/component/url-input-field-rac-CFDYkZ6I.js +0 -75
  114. package/dist/component/use-dropdown-option-class-name-3L5ZmNLK.js +0 -21
  115. package/dist/component/use-text-input-class-name-LQ5S-NLh.js +0 -24
@@ -1,21 +1,21 @@
1
- import l, { useRef as S, useState as V, useEffect as T, useCallback as B } from "react";
1
+ import a, { useRef as S, useState as V, useEffect as T, useCallback as B } from "react";
2
2
  import { RadioGroup as H, RadioField as k, RadioButton as A, TextField as G, Input as P } from "react-aria-components";
3
- import { ak as v, ah as $, au as F, am as x } from "./form-DQauhsho.js";
3
+ import { b9 as v, b6 as $, bj as F, bb as x } from "./form-BTDgyr54.js";
4
4
  import { f as u, a as g } from "./find-child-C60k4CxG.js";
5
- import { D as U, E as M } from "./field-error-headless-D3-1L5sf.js";
6
- import { L as j } from "./field-label-headless-Du4ckIVy.js";
5
+ import { D as U, E as j } from "./field-error-headless-CovyN0GI.js";
6
+ import { L as M } from "./field-label-headless-DVvX2QaH.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), y = (e, t) => !!t && !z(e, t), J = (e, t) => {
9
- const a = t ? t.length + 2 : 0;
10
- return e.slice(a);
9
+ const l = t ? t.length + 2 : 0;
10
+ return e.slice(l);
11
11
  }, i = ({ children: e, className: t }) => {
12
- const { id: n, value: a, onChange: O, disabled: d, readOnly: _, required: m, onBlur: f, onFocus: b, hasError: r, FieldLayout: c, options: o } = v(), { inputId: h, labelId: C, ariaDescribedBy: I } = $(), s = u(e, i.Label), E = u(e, i.Options), q = u(e, i.Description), D = u(e, i.Error), N = y(o, a) ? L : a || null;
13
- return /* @__PURE__ */ l.createElement(c, {
12
+ const { id: n, value: l, onChange: O, disabled: d, readOnly: _, required: m, onBlur: f, onFocus: b, hasError: r, FieldLayout: c, options: o } = v(), { inputId: h, labelId: C, ariaDescribedBy: I } = $(), s = u(e, i.Label), E = u(e, i.Options), q = u(e, i.Description), D = u(e, i.Error), N = y(o, l) ? L : l || null;
13
+ return /* @__PURE__ */ a.createElement(c, {
14
14
  fieldId: n,
15
15
  renderLabel: () => g(s, {
16
16
  as: "div"
17
17
  }),
18
- renderInput: () => /* @__PURE__ */ l.createElement(H, {
18
+ renderInput: () => /* @__PURE__ */ a.createElement(H, {
19
19
  id: h,
20
20
  className: t,
21
21
  "aria-labelledby": C,
@@ -29,14 +29,14 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
29
29
  onBlur: f,
30
30
  onFocus: b
31
31
  }, E),
32
- renderDescription: () => /* @__PURE__ */ l.createElement(l.Fragment, null, D, q)
32
+ renderDescription: () => /* @__PURE__ */ a.createElement(a.Fragment, null, D, q)
33
33
  });
34
34
  }, K = ({ children: e, className: t }) => {
35
- const { options: n, addOther: a, addOtherLabel: O, id: d, numberOfColumns: _, hasError: m } = v(), { t: f } = F(), b = u(e, i.Option), r = S(null), c = O || f("add-other.default-other-option-label") || L;
35
+ const { options: n, addOther: l, addOtherLabel: O, id: d, numberOfColumns: _, hasError: m } = v(), { t: f } = F(), b = u(e, i.Option), r = S(null), c = O || f("add-other.default-other-option-label") || L;
36
36
  return x(() => {
37
37
  var o;
38
38
  (o = r.current) == null || o.focus();
39
- }, d), /* @__PURE__ */ l.createElement("div", {
39
+ }, d), /* @__PURE__ */ a.createElement("div", {
40
40
  className: t,
41
41
  "data-columns": _,
42
42
  "data-invalid": m
@@ -46,7 +46,7 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
46
46
  label: o.label,
47
47
  index: h,
48
48
  radioRef: h === 0 ? r : void 0
49
- })), a && g(b, {
49
+ })), l && g(b, {
50
50
  key: L,
51
51
  value: L,
52
52
  label: c,
@@ -54,15 +54,15 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
54
54
  }));
55
55
  }, p = ({ children: e, className: t, ...n }) => {
56
56
  var I;
57
- const { value: a, label: O, isOther: d = !1, radioRef: _ } = n, { value: m, options: f } = v(), b = u(e, p.Label), r = u(e, p.Input), c = u(e, p.Control), o = u(e, p.OtherInput), h = d ? y(f, m) : m === a, C = (I = r == null ? void 0 : r.props) == null ? void 0 : I.className;
58
- return /* @__PURE__ */ l.createElement("div", {
57
+ const { value: l, label: O, isOther: d = !1, radioRef: _ } = n, { value: m, options: f } = v(), b = u(e, p.Label), r = u(e, p.Input), c = u(e, p.Control), o = u(e, p.OtherInput), h = d ? y(f, m) : m === l, C = (I = r == null ? void 0 : r.props) == null ? void 0 : I.className;
58
+ return /* @__PURE__ */ a.createElement("div", {
59
59
  className: t
60
- }, /* @__PURE__ */ l.createElement(k, {
61
- value: a
62
- }, /* @__PURE__ */ l.createElement(A, {
60
+ }, /* @__PURE__ */ a.createElement(k, {
61
+ value: l
62
+ }, /* @__PURE__ */ a.createElement(A, {
63
63
  ref: _,
64
64
  className: C
65
- }, ({ isSelected: s, isHovered: E }) => /* @__PURE__ */ l.createElement(l.Fragment, null, g(c, {
65
+ }, ({ isSelected: s, isHovered: E }) => /* @__PURE__ */ a.createElement(a.Fragment, null, g(c, {
66
66
  isSelected: s,
67
67
  isHovered: E
68
68
  }), g(b, {
@@ -70,11 +70,11 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
70
70
  })))), d && h && o);
71
71
  }, Q = ({ className: e, ...t }) => {
72
72
  const { label: n } = t;
73
- return /* @__PURE__ */ l.createElement("span", {
73
+ return /* @__PURE__ */ a.createElement("span", {
74
74
  className: e
75
75
  }, n);
76
76
  }, W = (e) => null, X = ({ className: e }) => {
77
- const { value: t, onChange: n, addOtherLabel: a, addOtherPlaceholder: O, otherInputCharacterLimit: d, disabled: _, readOnly: m, options: f } = v(), { t: b } = F(), r = S(null), c = y(f, t), o = a || b("add-other.default-other-option-label") || L, [h, C] = V(c && t ? J(t, a) : "");
77
+ const { value: t, onChange: n, addOtherLabel: l, addOtherPlaceholder: O, otherInputCharacterLimit: d, disabled: _, readOnly: m, options: f } = v(), { t: b } = F(), r = S(null), c = y(f, t), o = l || b("add-other.default-other-option-label") || L, [h, C] = V(c && t ? J(t, l) : "");
78
78
  T(() => {
79
79
  var s;
80
80
  c && r.current && ((s = r.current) == null || s.focus());
@@ -83,19 +83,19 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
83
83
  ]);
84
84
  const I = B((s) => {
85
85
  let E;
86
- s ? E = `${a}: ${s}` : E = o, n(E), C(s);
86
+ s ? E = `${l}: ${s}` : E = o, n(E), C(s);
87
87
  }, [
88
88
  n,
89
- a,
89
+ l,
90
90
  o
91
91
  ]);
92
- return /* @__PURE__ */ l.createElement(G, {
92
+ return /* @__PURE__ */ a.createElement(G, {
93
93
  "aria-label": o,
94
94
  value: h,
95
95
  onChange: I,
96
96
  isDisabled: _,
97
97
  isReadOnly: m
98
- }, /* @__PURE__ */ l.createElement(P, {
98
+ }, /* @__PURE__ */ a.createElement(P, {
99
99
  ref: r,
100
100
  className: e,
101
101
  placeholder: O,
@@ -106,20 +106,20 @@ p.Label = Q;
106
106
  p.Input = W;
107
107
  p.Control = w;
108
108
  p.OtherInput = X;
109
- i.Label = j;
109
+ i.Label = M;
110
110
  i.Options = K;
111
111
  i.Option = p;
112
112
  i.Description = U;
113
- i.Error = M;
114
- const Y = "_labelImage_t7q71_1", Z = "_group_t7q71_26", ee = "_options_t7q71_30", te = "_option_t7q71_30", oe = "_optionInput_t7q71_57", ne = "_optionControl_t7q71_75", ae = "_optionControlHover_t7q71_97", le = "_optionControlSelected_t7q71_115", re = "_optionLabel_t7q71_150", R = {
113
+ i.Error = j;
114
+ const Y = "_labelImage_t7q71_1", Z = "_group_t7q71_26", ee = "_options_t7q71_30", te = "_option_t7q71_30", oe = "_optionInput_t7q71_57", ne = "_optionControl_t7q71_75", le = "_optionControlHover_t7q71_97", ae = "_optionControlSelected_t7q71_115", re = "_optionLabel_t7q71_150", R = {
115
115
  labelImage: Y,
116
116
  group: Z,
117
117
  options: ee,
118
118
  option: te,
119
119
  optionInput: oe,
120
120
  optionControl: ne,
121
- optionControlHover: ae,
122
- optionControlSelected: le,
121
+ optionControlHover: le,
122
+ optionControlSelected: ae,
123
123
  optionLabel: re
124
124
  }, be = {
125
125
  base: R.optionControl,
@@ -1,12 +1,12 @@
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-IOulhuSH.js";
4
+ import { a, s, R as n } from "./radio-button-module-classes-CXcn5unY.js";
5
5
  import { E as c } from "./error-icon-hZxQ6DEy.js";
6
6
  import { s as r } from "./field-rac.module-B4l_0KRU.js";
7
- import { v as E, J as i, D as p, E as O, o as R, j as _, G as I } from "./form-element-classes-bLFmhsKw.js";
8
- import { u as L } from "./use-element-state-class-name-BatTc2bw.js";
9
- import { u as N } from "./use-text-input-class-name-LQ5S-NLh.js";
7
+ import { I as E, U as i, P as p, Q as R, v as O, p as _, R as I } from "./form-BTDgyr54.js";
8
+ import { u as L } from "./use-element-state-class-name-DB1AzkvF.js";
9
+ import { u as N } from "./use-text-input-class-name-va1PzWFg.js";
10
10
  const u = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
11
11
  content: o,
12
12
  locale: l
@@ -32,11 +32,11 @@ const u = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
32
32
  }), /* @__PURE__ */ e.createElement(a.Option.Control, {
33
33
  className: o
34
34
  }), /* @__PURE__ */ e.createElement(a.Option.Label, {
35
- className: t(O, s.optionLabel)
35
+ className: t(R, s.optionLabel)
36
36
  }), /* @__PURE__ */ e.createElement(a.Option.OtherInput, {
37
37
  className: l
38
38
  }))), /* @__PURE__ */ e.createElement(a.Error, {
39
- className: t(R, r.error)
39
+ className: t(O, r.error)
40
40
  }, /* @__PURE__ */ e.createElement(c, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
41
41
  className: t(_, r.description)
42
42
  }, u));
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { R as r } from "./radio-group-field-rac-CJwku6e0.js";
2
+ import { R as r } from "./radio-group-field-rac-pt8xbDfS.js";
3
3
  const R = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  R as RadioGroupRAC
@@ -1,27 +1,26 @@
1
1
  import { RicosViewer as y } from "@wix/ricos/viewer";
2
2
  import m from "classnames";
3
3
  import e, { useCallback as N, useState as O, useRef as A } from "react";
4
- import { ak as v, ah as b, au as H } from "./form-DQauhsho.js";
5
- import { RadioGroup as T, RadioField as M, RadioButton as w } from "react-aria-components";
6
- import { f as u, a as B } from "./find-child-C60k4CxG.js";
7
- import { D as P, E as k } from "./field-error-headless-D3-1L5sf.js";
8
- import { L as q } from "./field-label-headless-Du4ckIVy.js";
9
- import { E as G } from "./error-icon-hZxQ6DEy.js";
4
+ import { b9 as I, b6 as v, bj as T, I as H, U as M, S as w, v as B, p as P, T as q } from "./form-BTDgyr54.js";
5
+ import { RadioGroup as G, RadioField as k, RadioButton as x } from "react-aria-components";
6
+ import { f as u, a as U } from "./find-child-C60k4CxG.js";
7
+ import { D as j, E as z } from "./field-error-headless-CovyN0GI.js";
8
+ import { L as Q } from "./field-label-headless-DVvX2QaH.js";
9
+ import { E as Z } from "./error-icon-hZxQ6DEy.js";
10
10
  import { s as g } from "./field-rac.module-B4l_0KRU.js";
11
- import { v as x, J as U, H as j, o as z, j as J, I as Q } from "./form-element-classes-bLFmhsKw.js";
12
- import { u as Z } from "./use-element-state-class-name-BatTc2bw.js";
11
+ import { u as J } from "./use-element-state-class-name-DB1AzkvF.js";
13
12
  const t = ({ children: a }) => {
14
- const { id: n, value: r, onChange: l, disabled: o, readOnly: d, required: c, hasError: i, onBlur: E, onFocus: C, FieldLayout: R } = v(), { labelId: _ } = b(), L = N((D) => l(Number(D)), [
15
- l
16
- ]), f = u(a, t.Label), s = u(a, t.Ratings), S = u(a, t.Description), h = u(a, t.Error);
13
+ const { id: n, value: r, onChange: o, disabled: l, readOnly: d, required: c, hasError: i, onBlur: E, onFocus: C, FieldLayout: R } = I(), { labelId: _ } = v(), L = N((D) => o(Number(D)), [
14
+ o
15
+ ]), S = u(a, t.Label), s = u(a, t.Ratings), f = u(a, t.Description), h = u(a, t.Error);
17
16
  return /* @__PURE__ */ e.createElement(R, {
18
17
  fieldId: n,
19
- renderLabel: () => f,
20
- renderInput: () => /* @__PURE__ */ e.createElement(T, {
18
+ renderLabel: () => S,
19
+ renderInput: () => /* @__PURE__ */ e.createElement(G, {
21
20
  "aria-labelledby": _,
22
21
  value: r ? String(r) : void 0,
23
22
  onChange: L,
24
- isDisabled: o,
23
+ isDisabled: l,
25
24
  isReadOnly: d,
26
25
  isRequired: c,
27
26
  isInvalid: i,
@@ -29,28 +28,28 @@ const t = ({ children: a }) => {
29
28
  onFocus: C,
30
29
  orientation: "horizontal"
31
30
  }, s),
32
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, S)
31
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, f)
33
32
  });
34
- }, I = ({ children: a, className: n, getReactionLabel: r }) => {
35
- const { value: l, readOnly: o, hasError: d } = v(), { inputId: c, ariaDescribedBy: i } = b(), [E, C] = O(), R = A(null), _ = u(a, I.Rating), L = [
33
+ }, b = ({ children: a, className: n, getReactionLabel: r }) => {
34
+ const { value: o, readOnly: l, hasError: d } = I(), { inputId: c, ariaDescribedBy: i } = v(), [E, C] = O(), R = A(null), _ = u(a, b.Rating), L = [
36
35
  "1",
37
36
  "2",
38
37
  "3",
39
38
  "4",
40
39
  "5"
41
- ], f = (s) => E && !o ? E >= s : !!l && l >= Number(s);
40
+ ], S = (s) => E && !l ? E >= s : !!o && o >= Number(s);
42
41
  return /* @__PURE__ */ e.createElement("div", {
43
42
  ref: R,
44
43
  id: c,
45
44
  "aria-describedby": i,
46
45
  className: n,
47
46
  "data-invalid": d,
48
- "data-readonly": o
49
- }, L.map((s) => B(_, {
47
+ "data-readonly": l
48
+ }, L.map((s) => U(_, {
50
49
  key: s,
51
50
  value: s,
52
- isSelected: f(s),
53
- onHoverChange: (S) => C(S ? s : void 0),
51
+ isSelected: S(s),
52
+ onHoverChange: (f) => C(f ? s : void 0),
54
53
  label: r == null ? void 0 : r(Number(s))
55
54
  })));
56
55
  }, K = {
@@ -64,29 +63,29 @@ const t = ({ children: a }) => {
64
63
  width: 1,
65
64
  whiteSpace: "nowrap"
66
65
  }, F = ({ className: a, children: n, ...r }) => {
67
- const { value: l, isSelected: o, onHoverChange: d, label: c } = r;
68
- return /* @__PURE__ */ e.createElement(M, {
69
- value: l
70
- }, /* @__PURE__ */ e.createElement(w, {
66
+ const { value: o, isSelected: l, onHoverChange: d, label: c } = r;
67
+ return /* @__PURE__ */ e.createElement(k, {
68
+ value: o
69
+ }, /* @__PURE__ */ e.createElement(x, {
71
70
  className: ({ isHovered: i }) => typeof a == "function" ? a({
72
- isSelected: o,
71
+ isSelected: l,
73
72
  isHovered: i
74
73
  }) : a ?? "",
75
- "data-active": o || void 0,
74
+ "data-active": l || void 0,
76
75
  onHoverChange: d
77
76
  }, ({ isHovered: i }) => /* @__PURE__ */ e.createElement(e.Fragment, null, typeof n == "function" ? n({
78
- isSelected: o,
77
+ isSelected: l,
79
78
  isHovered: i
80
79
  }) : n, c ? /* @__PURE__ */ e.createElement("span", {
81
80
  style: K
82
81
  }, c) : null)));
83
82
  };
84
- I.Rating = F;
85
- t.Label = q;
86
- t.Ratings = I;
83
+ b.Rating = F;
84
+ t.Label = Q;
85
+ t.Ratings = b;
87
86
  t.Rating = F;
88
- t.Description = P;
89
- t.Error = k;
87
+ t.Description = j;
88
+ t.Error = z;
90
89
  const W = (a) => /* @__PURE__ */ e.createElement("svg", {
91
90
  viewBox: "0 0 32 32",
92
91
  width: 32,
@@ -109,28 +108,28 @@ const W = (a) => /* @__PURE__ */ e.createElement("svg", {
109
108
  base: p.rating,
110
109
  selected: p.ratingSelected,
111
110
  hover: p.ratingHover
112
- }, ge = () => {
113
- const { t: a } = H(), n = Z({
114
- globalClasses: Q,
111
+ }, Ee = () => {
112
+ const { t: a } = T(), n = J({
113
+ globalClasses: q,
115
114
  moduleClasses: te
116
115
  });
117
116
  return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
118
- className: m(x, g.label)
117
+ className: m(H, g.label)
119
118
  }, /* @__PURE__ */ e.createElement(t.Label.Required, {
120
- className: m(U, g.requiredMark)
119
+ className: m(M, g.requiredMark)
121
120
  })), /* @__PURE__ */ e.createElement(t.Ratings, {
122
- className: m(j, p.ratings),
121
+ className: m(w, p.ratings),
123
122
  getReactionLabel: (r) => a("rating-input.a11y.reaction-label", {
124
123
  count: r
125
124
  })
126
125
  }, /* @__PURE__ */ e.createElement(t.Rating, {
127
126
  className: n
128
127
  }, /* @__PURE__ */ e.createElement(W, null))), /* @__PURE__ */ e.createElement(t.Error, {
129
- className: m(z, g.error)
130
- }, /* @__PURE__ */ e.createElement(G, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
131
- className: m(J, g.description)
128
+ className: m(B, g.error)
129
+ }, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
130
+ className: m(P, g.description)
132
131
  }, ee));
133
132
  };
134
133
  export {
135
- ge as R
134
+ Ee as R
136
135
  };
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { R as e } from "./rating-input-field-rac-B9cwaROK.js";
2
+ import { R as e } from "./rating-input-field-rac-DDHBkR4x.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as RatingInputRAC
@@ -1,5 +1,5 @@
1
- import c, { useState as l } from "react";
2
- import { ak as a, ac as i, au as T } from "./form-DQauhsho.js";
1
+ import c, { useState as u } from "react";
2
+ import { b9 as a, b1 as i, bj as T } from "./form-BTDgyr54.js";
3
3
  import { Button as d } from "react-aria-components";
4
4
  import { D as r } from "./data-hooks-Dkw1pbRj.js";
5
5
  import { truncateRichContent as _ } from "@wix/ricos/content";
@@ -25,9 +25,9 @@ const O = ({ children: e }) => {
25
25
  }, o);
26
26
  };
27
27
  function B(e, t) {
28
- const [n, o] = l(!0);
28
+ const [n, o] = u(!0);
29
29
  function s() {
30
- o((u) => !u);
30
+ o((l) => !l);
31
31
  }
32
32
  return {
33
33
  displayedContent: t && n ? _(e, {
@@ -0,0 +1,21 @@
1
+ import l from "classnames";
2
+ import e from "react";
3
+ import { b9 as m, an as i, a5 as u, aM as R, aP as T } from "./form-BTDgyr54.js";
4
+ import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-B2vsO6fj.js";
5
+ const h = {
6
+ colorPalette: T(),
7
+ customStyles: R()
8
+ }, f = ({ truncate: t = !0 } = {}) => {
9
+ const { content: a, maxShownParagraphs: s } = m(), { displayedContent: n, isTruncated: o, isTruncateButtonShown: r, toggleTruncate: c } = C(a, t ? s : void 0);
10
+ return /* @__PURE__ */ e.createElement(d, null, () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(i, {
11
+ className: l(u, g.richContent),
12
+ content: n,
13
+ customTheme: h
14
+ }), r && /* @__PURE__ */ e.createElement(p, {
15
+ isTruncated: o,
16
+ onClick: c
17
+ })));
18
+ };
19
+ export {
20
+ f as R
21
+ };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { R as t } from "./rich-text-field-rac-C_qE7Ykg.js";
2
+ import { R as t } from "./rich-text-field-rac-CvKht2eC.js";
3
3
  const R = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  R as RichTextRAC
@@ -1,22 +1,21 @@
1
- import t, { useRef as P, useMemo as L, useCallback as h, useEffect as T } from "react";
2
- import { RicosViewer as w } from "@wix/ricos/viewer";
1
+ import t, { useRef as b, useMemo as g, useCallback as D, useEffect as P } from "react";
2
+ import { RicosViewer as T } from "@wix/ricos/viewer";
3
3
  import u from "classnames";
4
- import { ag as A, au as b, F as M, ak as y, ac as x, h as V } from "./form-DQauhsho.js";
5
- import { u as k } from "./use-service-options-base-oeE7xszw.js";
6
- import { D as d } from "./dropdown-field-headless-CBaqlNZi.js";
7
- import { C as H } from "./chevron-down-icon-CcpVm6B-.js";
8
- import { E as U } from "./error-icon-hZxQ6DEy.js";
9
- import { H as W } from "./custom-focus-class-_483Pkwp.js";
4
+ import { b5 as w, bj as A, F as M, b9 as y, b1 as U, ac as V, I as x, U as H, t as W, K as k, v as q, p as B } from "./form-BTDgyr54.js";
5
+ import { u as G } from "./use-service-options-base-B11cq0HH.js";
6
+ import { D as d } from "./dropdown-field-headless-BTMJGUwY.js";
7
+ import { C as j } from "./chevron-down-icon-CcpVm6B-.js";
8
+ import { E as K } from "./error-icon-hZxQ6DEy.js";
9
+ import { H as Q } from "./custom-focus-class-_483Pkwp.js";
10
10
  import { s as i } from "./field-rac.module-B4l_0KRU.js";
11
- import { v as q, J as B, n as G, x as j, o as J, j as Q } from "./form-element-classes-bLFmhsKw.js";
12
- import { u as Y } from "./use-dropdown-option-class-name-3L5ZmNLK.js";
13
- const z = "00000000-0000-0000-0000-000000000000", K = (e) => {
14
- const { actions: r } = A(), { t: D } = b(), { addOther: n, addOtherLabel: p } = e, c = p || D("add-other.default-other-option-label"), a = P(!0), E = L(() => {
11
+ import { u as Y } from "./use-dropdown-option-class-name-DjV7FW5y.js";
12
+ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
13
+ const { actions: r } = w(), { t: h } = A(), { addOther: n, addOtherLabel: p } = e, c = p || h("add-other.default-other-option-label"), a = b(!0), E = g(() => {
15
14
  var s;
16
15
  return ((s = e.options) == null ? void 0 : s.map((m) => m.id ?? "")) ?? [];
17
16
  }, [
18
17
  e.options
19
- ]), O = h((s) => n ? [
18
+ ]), O = D((s) => n ? [
20
19
  ...s,
21
20
  {
22
21
  value: c,
@@ -26,11 +25,11 @@ const z = "00000000-0000-0000-0000-000000000000", K = (e) => {
26
25
  ] : s, [
27
26
  n,
28
27
  c
29
- ]), { isLoading: f, options: l, isEmpty: C, shouldRender: I, setIsLoading: R, setOptions: _, setIsEmpty: S, processOptions: g } = k({
28
+ ]), { isLoading: f, options: l, isEmpty: C, shouldRender: I, setIsLoading: R, setOptions: _, setIsEmpty: S, processOptions: F } = G({
30
29
  fieldType: M.SERVICES_DROPDOWN,
31
30
  isEditor: e.isEditor,
32
31
  postProcessOptions: O
33
- }), F = h(async () => {
32
+ }), L = D(async () => {
34
33
  if (a.current && (r != null && r.fetchServices) && E.length > 0) {
35
34
  a.current = !1, R(!0);
36
35
  let s;
@@ -42,7 +41,7 @@ const z = "00000000-0000-0000-0000-000000000000", K = (e) => {
42
41
  console.error(m);
43
42
  }
44
43
  if (s) {
45
- const m = g(s);
44
+ const m = F(s);
46
45
  S(!n && m.length === 0), _(m);
47
46
  } else
48
47
  a.current = !0;
@@ -51,13 +50,13 @@ const z = "00000000-0000-0000-0000-000000000000", K = (e) => {
51
50
  }, [
52
51
  r,
53
52
  E,
54
- g,
53
+ F,
55
54
  n,
56
55
  R,
57
56
  _,
58
57
  S
59
58
  ]);
60
- T(() => {
59
+ P(() => {
61
60
  if (!e.isEditor && l.length > 0) {
62
61
  const s = n ? l.length - 1 : l.length;
63
62
  S(s === 0);
@@ -68,12 +67,12 @@ const z = "00000000-0000-0000-0000-000000000000", K = (e) => {
68
67
  S,
69
68
  e.isEditor
70
69
  ]);
71
- const v = h(() => {
72
- e.onFocus && e.onFocus(), a.current && F();
70
+ const v = D(() => {
71
+ e.onFocus && e.onFocus(), a.current && L();
73
72
  }, [
74
- F,
73
+ L,
75
74
  e.onFocus
76
- ]), N = h(
75
+ ]), N = D(
77
76
  (s) => {
78
77
  e.onChange && e.onChange(s), a.current = !0;
79
78
  },
@@ -91,10 +90,10 @@ const z = "00000000-0000-0000-0000-000000000000", K = (e) => {
91
90
  shouldRender: I
92
91
  };
93
92
  }, o = ({ children: e }) => {
94
- const r = y(), { addOther: D } = r, n = x(), p = r.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: E, onFocus: O, onChange: f, shouldRender: l } = K({
93
+ const r = y(), { addOther: h } = r, n = U(), p = r.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: E, onFocus: O, onChange: f, shouldRender: l } = J({
95
94
  ...r,
96
95
  isEditor: p
97
- }), C = L(() => ({
96
+ }), C = g(() => ({
98
97
  ...r,
99
98
  options: c ? [] : a,
100
99
  isLoading: c,
@@ -107,7 +106,7 @@ const z = "00000000-0000-0000-0000-000000000000", K = (e) => {
107
106
  O,
108
107
  f
109
108
  ]);
110
- return !p && E && !D || !l ? null : /* @__PURE__ */ t.createElement(V.Provider, {
109
+ return !p && E && !h || !l ? null : /* @__PURE__ */ t.createElement(V.Provider, {
111
110
  value: {
112
111
  v2: C
113
112
  }
@@ -118,29 +117,29 @@ o.Trigger = d.Trigger;
118
117
  o.Options = d.Options;
119
118
  o.Description = d.Description;
120
119
  o.Error = d.Error;
121
- const X = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(w, {
120
+ const X = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(T, {
122
121
  content: e,
123
122
  locale: r
124
123
  }), Z = () => {
125
- const e = Y(W);
124
+ const e = Y(Q);
126
125
  return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
127
- className: u(q, i.label)
126
+ className: u(x, i.label)
128
127
  }, /* @__PURE__ */ t.createElement(o.Label.Required, {
129
- className: u(B, i.requiredMark)
128
+ className: u(H, i.requiredMark)
130
129
  })), /* @__PURE__ */ t.createElement(o.Trigger, {
131
- className: u(G, i.input, i.dropdownTrigger)
132
- }, /* @__PURE__ */ t.createElement(H, {
130
+ className: u(W, i.input, i.dropdownTrigger)
131
+ }, /* @__PURE__ */ t.createElement(j, {
133
132
  className: i.dropdownIcon
134
133
  })), /* @__PURE__ */ t.createElement(o.Options, {
135
- className: u(j, i.selectPopover, i.dropdownPopover)
134
+ className: u(k, i.selectPopover, i.dropdownPopover)
136
135
  }, /* @__PURE__ */ t.createElement(o.Options.Option, {
137
136
  className: e
138
137
  })), /* @__PURE__ */ t.createElement(o.Error, {
139
- className: u(J, i.error)
140
- }, /* @__PURE__ */ t.createElement(U, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
141
- className: u(Q, i.description)
138
+ className: u(q, i.error)
139
+ }, /* @__PURE__ */ t.createElement(K, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
140
+ className: u(B, i.description)
142
141
  }, X));
143
- }, ue = () => /* @__PURE__ */ t.createElement(Z, null);
142
+ }, me = () => /* @__PURE__ */ t.createElement(Z, null);
144
143
  export {
145
- ue as ServiceDropdownRAC
144
+ me as ServiceDropdownRAC
146
145
  };
@@ -1,19 +1,18 @@
1
1
  import e, { useEffect as I, useMemo as L } from "react";
2
2
  import { RicosViewer as S } from "@wix/ricos/viewer";
3
3
  import a from "classnames";
4
- import { F as R, ak as d, h as D } from "./form-DQauhsho.js";
5
- import { u as N } from "./use-service-options-base-oeE7xszw.js";
6
- import { C as n } from "./checkbox-group-field-headless-DnkUvDm8.js";
7
- import { E as f } from "./error-icon-hZxQ6DEy.js";
8
- import { C as F } from "./checkbox-indicator-module-classes-BpeSpGsW.js";
4
+ import { F as R, b9 as d, ac as D, I as N, U as F, i as f, k as h, v as b, p as M, j as A } from "./form-BTDgyr54.js";
5
+ import { u as v } from "./use-service-options-base-B11cq0HH.js";
6
+ import { C as n } from "./checkbox-group-field-headless-AFWgXzx_.js";
7
+ import { E as x } from "./error-icon-hZxQ6DEy.js";
8
+ import { C as P } from "./checkbox-indicator-module-classes-BpeSpGsW.js";
9
9
  import { s as i } from "./field-rac.module-B4l_0KRU.js";
10
- import { v as h, J as b, c as M, e as A, o as v, j as x, d as P } from "./form-element-classes-bLFmhsKw.js";
11
10
  import { o as p } from "./options-rac.module-CTDdATiz.js";
12
- import { u as T } from "./use-element-state-class-name-BatTc2bw.js";
13
- import { u as k } from "./use-text-input-class-name-LQ5S-NLh.js";
11
+ import { u as T } from "./use-element-state-class-name-DB1AzkvF.js";
12
+ import { u as k } from "./use-text-input-class-name-va1PzWFg.js";
14
13
  const y = (s) => {
15
14
  var O;
16
- const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded: u } = N({
15
+ const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded: u } = v({
17
16
  fieldType: R.SERVICES_MULTI_CHOICE,
18
17
  isEditor: s.isEditor
19
18
  }), C = (O = s.options) == null ? void 0 : O.every((_) => _.label && _.id);
@@ -57,33 +56,33 @@ t.Error = n.Error;
57
56
  const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
58
57
  content: s,
59
58
  locale: o
60
- }), g = () => {
59
+ }), U = () => {
61
60
  const s = T({
62
- globalClasses: P,
63
- moduleClasses: F
61
+ globalClasses: A,
62
+ moduleClasses: P
64
63
  }), o = k();
65
64
  return /* @__PURE__ */ e.createElement(t, {
66
65
  className: p.group
67
66
  }, /* @__PURE__ */ e.createElement(t.Label, {
68
- className: a(h, i.label)
67
+ className: a(N, i.label)
69
68
  }, /* @__PURE__ */ e.createElement(t.Label.Required, {
70
- className: a(b, i.requiredMark)
69
+ className: a(F, i.requiredMark)
71
70
  })), /* @__PURE__ */ e.createElement(t.Options, {
72
- className: a(M, p.options)
71
+ className: a(f, p.options)
73
72
  }, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
74
73
  className: i.checkbox
75
74
  }, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Input, {
76
75
  className: s
77
76
  }), /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Label, {
78
- className: a(A, p.optionLabel)
77
+ className: a(h, p.optionLabel)
79
78
  })), /* @__PURE__ */ e.createElement(t.Options.Option.OtherInput, {
80
79
  inputClassName: o
81
80
  }))), /* @__PURE__ */ e.createElement(t.Error, {
82
- className: a(v, i.error)
83
- }, /* @__PURE__ */ e.createElement(f, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
84
- className: a(x, i.description)
81
+ className: a(b, i.error)
82
+ }, /* @__PURE__ */ e.createElement(x, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
83
+ className: a(M, i.description)
85
84
  }, B));
86
- }, W = () => /* @__PURE__ */ e.createElement(g, null);
85
+ }, J = () => /* @__PURE__ */ e.createElement(U, null);
87
86
  export {
88
- W as ServicesMultiChoiceRAC
87
+ J as ServicesMultiChoiceRAC
89
88
  };