@wix/form-elements 1.166.0 → 1.167.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-BXpWILhi.js → appointment-rac-BbXyKTd7.js} +72 -72
  2. package/dist/component/{bookings-address-rac-Cf--TgsR.js → bookings-address-rac-VJkR_U9L.js} +1 -1
  3. package/dist/component/{bookings-email-rac-BtB8owOl.js → bookings-email-rac-_EupwXpQ.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CBFDjB_k.js → bookings-first-name-rac-DTZixHYj.js} +1 -1
  5. package/dist/component/{bookings-header-rac-CrJORcuL.js → bookings-header-rac-BKbKTv5g.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-erG4ldFt.js → bookings-last-name-rac-BDy860-C.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-Di4qLQUH.js → bookings-login-bar-rac-DgNP-YNZ.js} +5 -5
  8. package/dist/component/{bookings-phone-rac-DdM48Obh.js → bookings-phone-rac-B_I6n96b.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-Cl8zOiU1.js → bookings-rich-text-rac-prYPbIiz.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CzIDF6aj.js → checkbox-field-rac-C-4PXuxG.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-B8tsQCwV.js → checkbox-group-field-headless-D16bAcaq.js} +35 -35
  12. package/dist/component/{checkbox-group-field-rac-h02K8CPA.js → checkbox-group-field-rac-GUQ5dO_s.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-GfebLnuS.js → checkbox-group-rac-Bl6xL5-H.js} +1 -1
  14. package/dist/component/{checkbox-rac-Dn24U4oG.js → checkbox-rac-Blg0KVyP.js} +1 -1
  15. package/dist/component/{contacts-address-rac-CtVtIwOV.js → contacts-address-rac-BfOhCAj8.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-CK2odpbJ.js → contacts-birthdate-rac-DYBvDh62.js} +1 -1
  17. package/dist/component/{contacts-company-rac-ue8vAn9A.js → contacts-company-rac-DIJr7zjA.js} +1 -1
  18. package/dist/component/{contacts-email-rac-lleErjYl.js → contacts-email-rac-DjmqELhC.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-D5wtz4Z1.js → contacts-first-name-rac-DGNll7gw.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-Cj9GKWBY.js → contacts-last-name-rac-BJ8AZYQN.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BP6unckw.js → contacts-phone-rac-BC-QtpEN.js} +1 -1
  22. package/dist/component/{contacts-position-rac-XjUdZglr.js → contacts-position-rac-BQia__74.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-Dnpbgw5C.js → contacts-subscribe-rac-CTFptz01.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-pNFMOZl6.js → contacts-tax-id-rac-Cy72Jouc.js} +1 -1
  25. package/dist/component/{date-availability-BRA7k6ep.js → date-availability-BC6updcS.js} +1 -1
  26. package/dist/component/{date-input-field-rac-B15XH-D_.js → date-input-field-rac-b_T1yf8D.js} +38 -38
  27. package/dist/component/{date-input-rac-B7XvsFeB.js → date-input-rac-KkRyWRP_.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-BNgKcgVi.js → date-picker-field-rac-BLWVJbTJ.js} +6 -6
  29. package/dist/component/{date-picker-rac-P54cHP86.js → date-picker-rac-DKCQza7v.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-Dt-jUznP.js → date-time-input-field-rac-CZxZW6fz.js} +45 -45
  31. package/dist/component/{date-time-input-rac-DHmOLCvg.js → date-time-input-rac-DQ-iBwmr.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-Bo2ZRcJc.js → dext-checkbox-group-rac-kp1Jbwt-.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-BdA2i9PR.js → dext-checkbox-rac-CBm9cRUz.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-BME9ZDFy.js → dext-date-picker-rac-DsVKWsRy.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-owEU8r5-.js → dext-date-time-input-rac-CO26-8Qo.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-BAeN43fo.js → dext-dropdown-rac-eRzu2C-y.js} +1 -1
  37. package/dist/component/{dext-email-rac-D7HBfCis.js → dext-email-rac-DDrZzE_G.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DEB2ji5S.js → dext-number-input-rac-Dj7sInLk.js} +1 -1
  39. package/dist/component/{dext-phone-rac-TOfFCmhD.js → dext-phone-rac-g8M77F7m.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-DGsQLres.js → dext-radio-group-rac-BjhygC0R.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-CFcRQeE7.js → dext-rating-input-rac-BraNjvyA.js} +1 -1
  42. package/dist/component/{dext-tags-rac-CGsaKVfb.js → dext-tags-rac-B5mAIuDi.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-BqbLXOdt.js → dext-text-area-rac-D_YBnaWi.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-CpXfQV53.js → dext-text-input-rac-BzeWH1jv.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-Bbm3_OG9.js → dext-url-input-rac-Cn0h_vx3.js} +1 -1
  46. package/dist/component/{donation-rac-DvBAOz6H.js → donation-rac-CQRdHxWh.js} +46 -46
  47. package/dist/component/{dropdown-field-rac-BW0UDoBO.js → dropdown-field-rac-C7LL0W5Z.js} +3 -3
  48. package/dist/component/{dropdown-rac-B6ZD6Qgb.js → dropdown-rac-Nb2VyJ0x.js} +1 -1
  49. package/dist/component/{ecom-address-rac-Dnv9Yswd.js → ecom-address-rac-_c2YIIwg.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-BVqvUwn4.js → ecom-subscription-checkbox-rac-Bma7TAVj.js} +2 -2
  51. package/dist/component/{email-input-field-rac-CuaMcfZR.js → email-input-field-rac-2E2tEaS5.js} +47 -47
  52. package/dist/component/events-repeater-rac-COWHYBFD.js +280 -0
  53. package/dist/component/{events-rsvp-rac-D4hSrIsE.js → events-rsvp-rac-CXp8j19Y.js} +3 -3
  54. package/dist/component/{field-error-headless-NGaTm3dF.js → field-error-headless-S-ugOQQX.js} +7 -7
  55. package/dist/component/{field-label-headless-Bx1UjEcp.js → field-label-headless-_n4I0_tX.js} +14 -14
  56. package/dist/component/{file-upload-rac-oOnemmUg.js → file-upload-rac-DCH_iwDg.js} +79 -79
  57. package/dist/component/{fixed-payment-rac-C9YkIvQO.js → fixed-payment-rac-CYkKJUfM.js} +14 -14
  58. package/dist/component/{form-sH9m0ReT.js → form-jK8ezTss.js} +1110 -1109
  59. package/dist/component/form.css +1 -1
  60. package/dist/component/form.js +1 -1
  61. package/dist/component/{header-field-rac-N5Oclne_.js → header-field-rac-DnbjI6W5.js} +6 -6
  62. package/dist/component/{header-rac-CTmSJdoY.js → header-rac-DKUICrni.js} +1 -1
  63. package/dist/component/{image-choice-rac-BYZ61yof.js → image-choice-rac-B_9ponST.js} +4 -4
  64. package/dist/component/{index-B56GTN_5.js → index-BxdMzOvN.js} +68 -68
  65. package/dist/component/{index-SHZx7XzS.js → index-ZYnsxY-a.js} +2 -2
  66. package/dist/component/{isObjectLike-BFpR7Q-o.js → isObjectLike-BW-9QEQl.js} +9 -9
  67. package/dist/component/{multiline-address-field-rac-DvMyN2gF.js → multiline-address-field-rac-k-P0ijWG.js} +40 -40
  68. package/dist/component/{multiline-address-rac-Cfv0QzzV.js → multiline-address-rac-Bbn9mNDa.js} +1 -1
  69. package/dist/component/{number-input-field-rac-CWQw7p2k.js → number-input-field-rac--lom-B_X.js} +7 -7
  70. package/dist/component/{number-input-rac-DJ2Nh9Vm.js → number-input-rac-Bhbd6T9S.js} +1 -1
  71. package/dist/component/{password-rac-ayoa5FQV.js → password-rac-BV_uTHb3.js} +14 -14
  72. package/dist/component/{payment-input-rac-CBjP_xjz.js → payment-input-rac-cawyGN_t.js} +28 -28
  73. package/dist/component/{phone-input-field-rac-BWOEiUK7.js → phone-input-field-rac-CsElHRto.js} +67 -67
  74. package/dist/component/{phone-rac-Dp7FouV3.js → phone-rac-XrHN5Nko.js} +1 -1
  75. package/dist/component/{product-list-rac-D_EoPXl-.js → product-list-rac-cxv_xz7K.js} +30 -30
  76. package/dist/component/{quiz-radio-group-rac-RWM0riuU.js → quiz-radio-group-rac-DGaxOPE1.js} +1 -1
  77. package/dist/component/{radio-button-module-classes-nK-xhmxh.js → radio-button-module-classes-Xv2Jn01x.js} +21 -21
  78. package/dist/component/{radio-group-field-rac-Cc-pvwZn.js → radio-group-field-rac-DgGqgTql.js} +4 -4
  79. package/dist/component/{radio-group-rac-xvesuLSn.js → radio-group-rac-Bh0E-oe1.js} +1 -1
  80. package/dist/component/{rating-input-field-rac-BgMRUXQy.js → rating-input-field-rac-C3YLV971.js} +10 -10
  81. package/dist/component/{rating-input-rac-CeZtJR2S.js → rating-input-rac-CfcC5EUh.js} +1 -1
  82. package/dist/component/{rich-content-rac.module-Cv7PIbmM.js → rich-content-rac.module-DUjzLGtX.js} +5 -5
  83. package/dist/component/{rich-text-field-rac-CmbNBe2u.js → rich-text-field-rac-BmguoJhk.js} +5 -5
  84. package/dist/component/{rich-text-rac-9hwPCQXl.js → rich-text-rac-BWhHcq25.js} +1 -1
  85. package/dist/component/{service-dropdown-rac-2Wjgmo75.js → service-dropdown-rac-C5oX-ql7.js} +30 -30
  86. package/dist/component/{services-multi-choice-rac-cZ7elBhc.js → services-multi-choice-rac-C1fem9NB.js} +12 -12
  87. package/dist/component/{signature-rac-BfE2328G.js → signature-rac-BtHqiWj1.js} +62 -62
  88. package/dist/component/{submit-button-rac-oYO7pska.js → submit-button-rac-OYeKJFF8.js} +39 -39
  89. package/dist/component/{tags-field-rac-B-_LzCFU.js → tags-field-rac-kA2RSijL.js} +37 -37
  90. package/dist/component/{tags-rac-D5bRM462.js → tags-rac-B_2qCZGu.js} +1 -1
  91. package/dist/component/{text-area-field-rac-fwtICvjX.js → text-area-field-rac-DeO609Mv.js} +17 -17
  92. package/dist/component/{text-area-rac-C4EkhfB5.js → text-area-rac-BAQFBOZd.js} +1 -1
  93. package/dist/component/{text-input-field-rac-CxZYUtxX.js → text-input-field-rac-CCcKwuLZ.js} +3 -3
  94. package/dist/component/{text-input-headless-DK5wBGBb.js → text-input-headless-D8-jkaYm.js} +8 -8
  95. package/dist/component/{text-input-rac-FS49SxCK.js → text-input-rac-BVcgjj8g.js} +1 -1
  96. package/dist/component/{time-input-rac-CDUVS7kp.js → time-input-rac-BYctyHgU.js} +11 -11
  97. package/dist/component/{url-input-field-rac-B2ypvh7T.js → url-input-field-rac-COC9qgcs.js} +23 -23
  98. package/dist/component/{url-input-rac-DbJx2T1R.js → url-input-rac-BZXLh0Ej.js} +1 -1
  99. package/dist/component/{use-dropdown-option-class-name-0ZlT4g7h.js → use-dropdown-option-class-name-BTltqRl1.js} +2 -2
  100. package/dist/component/use-dropdown-trigger-class-name-BjJZfl3i.js +98 -0
  101. package/dist/component/{use-element-state-class-name-DCAoZgWT.js → use-element-state-class-name-CkT6Ga8t.js} +3 -3
  102. package/dist/component/{use-hoverable-input-class-name-BvP8fzTQ.js → use-hoverable-input-class-name-BkoSr6tr.js} +2 -2
  103. package/dist/component/{use-is-forced-open-dropdown-B-eR29aQ.js → use-is-forced-open-dropdown-fo_NCnSk.js} +1 -1
  104. package/dist/component/{use-service-options-base-BF_peAsS.js → use-service-options-base-Wp8RZ4Z8.js} +1 -1
  105. package/dist/component/use-text-input-class-name-DS7i03Gk.js +6 -0
  106. package/package.json +2 -2
  107. package/dist/component/events-repeater-rac-CNsh8NRh.js +0 -271
  108. package/dist/component/use-dropdown-trigger-class-name-PItHRYWo.js +0 -96
  109. package/dist/component/use-text-input-class-name-CQf8yep5.js +0 -6
@@ -1,18 +1,18 @@
1
- import { RicosViewer as D } from "@wix/ricos/viewer";
1
+ import { RicosViewer as N } from "@wix/ricos/viewer";
2
2
  import u from "classnames";
3
- import e, { useCallback as N, useState as O, useRef as A } from "react";
4
- import { by as I, bv as v, bI as T, U as H, aa as M, a8 as w, K as B, G as P, a9 as G } from "./form-sH9m0ReT.js";
3
+ import e, { useCallback as y, useState as O, useRef as A } from "react";
4
+ import { bD as I, bA as v, bN as T, U as H, af as M, a8 as w, K as B, G as P, a9 as G } from "./form-jK8ezTss.js";
5
5
  import { RadioGroup as q, RadioField as k, RadioButton as x } from "react-aria-components";
6
6
  import { f as E, a as U } from "./find-child-C60k4CxG.js";
7
- import { D as z, E as K } from "./field-error-headless-NGaTm3dF.js";
8
- import { L as Q } from "./field-label-headless-Bx1UjEcp.js";
7
+ import { D as z, E as K } from "./field-error-headless-S-ugOQQX.js";
8
+ import { L as Q } from "./field-label-headless-_n4I0_tX.js";
9
9
  import { E as Z } from "./error-icon-hZxQ6DEy.js";
10
10
  import { s as g } from "./field-rac.module-ts2t4WUO.js";
11
- import { u as j } from "./use-element-state-class-name-DCAoZgWT.js";
11
+ import { u as j } from "./use-element-state-class-name-CkT6Ga8t.js";
12
12
  const t = ({ children: a }) => {
13
- const { id: n, value: r, onChange: i, disabled: l, readOnly: m, required: d, hasError: c, onBlur: o, onFocus: C, FieldLayout: R } = I(), { labelId: _ } = v(), L = N((y) => i(Number(y)), [
13
+ const { id: n, value: r, onChange: i, disabled: l, readOnly: m, required: d, hasError: c, onBlur: o, onFocus: C, FieldLayout: R } = I(), { labelId: _ } = v(), L = y((h) => i(Number(h)), [
14
14
  i
15
- ]), f = E(a, t.Label), s = E(a, t.Ratings), S = E(a, t.Description), h = E(a, t.Error);
15
+ ]), f = E(a, t.Label), s = E(a, t.Ratings), S = E(a, t.Description), D = E(a, t.Error);
16
16
  return /* @__PURE__ */ e.createElement(R, {
17
17
  fieldId: n,
18
18
  renderLabel: () => f,
@@ -28,7 +28,7 @@ const t = ({ children: a }) => {
28
28
  onFocus: C,
29
29
  orientation: "horizontal"
30
30
  }, s),
31
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, S)
31
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, D, S)
32
32
  });
33
33
  }, b = ({ children: a, className: n, getReactionLabel: r }) => {
34
34
  const { value: i, readOnly: l, hasError: m } = I(), { inputId: d, ariaDescribedBy: c } = v(), [o, C] = O(), R = A(null), _ = E(a, b.Rating), L = [
@@ -103,7 +103,7 @@ const W = (a) => /* @__PURE__ */ e.createElement("svg", {
103
103
  rating: Y,
104
104
  ratingSelected: $,
105
105
  ratingHover: V
106
- }, ee = ({ content: a, locale: n }) => /* @__PURE__ */ e.createElement(D, {
106
+ }, ee = ({ content: a, locale: n }) => /* @__PURE__ */ e.createElement(N, {
107
107
  content: a,
108
108
  locale: n
109
109
  }), te = {
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { R as e } from "./rating-input-field-rac-BgMRUXQy.js";
2
+ import { R as e } from "./rating-input-field-rac-C3YLV971.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as RatingInputRAC
@@ -1,5 +1,5 @@
1
1
  import c, { useState as u } from "react";
2
- import { by as a, bq as i, bI as T } from "./form-sH9m0ReT.js";
2
+ import { bD as a, bv as i, bN as T } from "./form-jK8ezTss.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";
@@ -24,7 +24,7 @@ const O = ({ children: e }) => {
24
24
  "data-hook": s
25
25
  }, o);
26
26
  };
27
- function y(e, t) {
27
+ function D(e, t) {
28
28
  const [n, o] = u(!0);
29
29
  function s() {
30
30
  o((l) => !l);
@@ -38,12 +38,12 @@ function y(e, t) {
38
38
  toggleTruncate: s
39
39
  };
40
40
  }
41
- const C = "_richContent_1galb_1", B = {
41
+ const C = "_richContent_1galb_1", N = {
42
42
  richContent: C
43
43
  };
44
44
  export {
45
45
  O as R,
46
46
  p as T,
47
- B as s,
48
- y as u
47
+ N as s,
48
+ D as u
49
49
  };
@@ -1,8 +1,8 @@
1
1
  import l from "classnames";
2
2
  import e from "react";
3
- import { by as m, aL as i, at as u, b9 as R, bc as T } from "./form-sH9m0ReT.js";
4
- import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-Cv7PIbmM.js";
5
- const h = {
3
+ import { bD as m, aQ as i, ay as u, be as R, bh as T } from "./form-jK8ezTss.js";
4
+ import { u as C, R as d, s as g, T as h } from "./rich-content-rac.module-DUjzLGtX.js";
5
+ const p = {
6
6
  colorPalette: T(),
7
7
  customStyles: R()
8
8
  }, y = ({ truncate: t = !0 } = {}) => {
@@ -10,8 +10,8 @@ const h = {
10
10
  return /* @__PURE__ */ e.createElement(d, null, () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(i, {
11
11
  className: l(u, g.richContent),
12
12
  content: n,
13
- customTheme: h
14
- }), r && /* @__PURE__ */ e.createElement(p, {
13
+ customTheme: p
14
+ }), r && /* @__PURE__ */ e.createElement(h, {
15
15
  isTruncated: o,
16
16
  onClick: c
17
17
  })));
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { R as t } from "./rich-text-field-rac-CmbNBe2u.js";
2
+ import { R as t } from "./rich-text-field-rac-BmguoJhk.js";
3
3
  const R = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  R as RichTextRAC
@@ -1,35 +1,35 @@
1
- import o, { useRef as T, useMemo as _, useCallback as C, useEffect as b } from "react";
1
+ import o, { useRef as T, useMemo as _, useCallback as D, useEffect as b } from "react";
2
2
  import { RicosViewer as w } from "@wix/ricos/viewer";
3
3
  import E from "classnames";
4
- import { bu as P, bI as A, F as y, by as M, bq as H, aA as U, U as V, aa as q, H as x, K as W, G as k } from "./form-sH9m0ReT.js";
5
- import { u as B } from "./use-service-options-base-BF_peAsS.js";
6
- import { D as u, u as G } from "./use-dropdown-trigger-class-name-PItHRYWo.js";
7
- import { C as K } from "./chevron-down-icon-CcpVm6B-.js";
8
- import { E as Q } from "./error-icon-hZxQ6DEy.js";
9
- import { H as Y } from "./custom-focus-class-_483Pkwp.js";
4
+ import { bz as P, bN as A, F as M, bD as y, bv as H, aF as U, U as V, af as x, H as W, K as k, G as q } from "./form-jK8ezTss.js";
5
+ import { u as B } from "./use-service-options-base-Wp8RZ4Z8.js";
6
+ import { D as u, u as z } from "./use-dropdown-trigger-class-name-BjJZfl3i.js";
7
+ import { C as G } 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-ts2t4WUO.js";
11
- import { u as j } from "./use-dropdown-option-class-name-0ZlT4g7h.js";
12
- const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
13
- const { actions: t } = P(), { t: D } = A(), { addOther: n, addOtherLabel: p } = e, c = p || D("add-other.default-other-option-label"), a = T(!0), d = _(() => {
11
+ import { u as Y } from "./use-dropdown-option-class-name-BTltqRl1.js";
12
+ const j = "00000000-0000-0000-0000-000000000000", J = (e) => {
13
+ const { actions: t } = P(), { t: C } = A(), { addOther: n, addOtherLabel: p } = e, c = p || C("add-other.default-other-option-label"), a = T(!0), d = _(() => {
14
14
  var s;
15
15
  return ((s = e.options) == null ? void 0 : s.map((m) => m.id ?? "")) ?? [];
16
16
  }, [
17
17
  e.options
18
- ]), O = C((s) => n ? [
18
+ ]), O = D((s) => n ? [
19
19
  ...s,
20
20
  {
21
21
  value: c,
22
22
  label: c,
23
- id: z
23
+ id: j
24
24
  }
25
25
  ] : s, [
26
26
  n,
27
27
  c
28
- ]), { isLoading: f, options: l, isEmpty: h, shouldRender: I, setIsLoading: S, setOptions: R, setIsEmpty: g, processOptions: F } = B({
29
- fieldType: y.SERVICES_DROPDOWN,
28
+ ]), { isLoading: f, options: l, isEmpty: h, shouldRender: I, setIsLoading: S, setOptions: F, setIsEmpty: g, processOptions: R } = B({
29
+ fieldType: M.SERVICES_DROPDOWN,
30
30
  isEditor: e.isEditor,
31
31
  postProcessOptions: O
32
- }), L = C(async () => {
32
+ }), L = D(async () => {
33
33
  if (a.current && (t != null && t.fetchServices) && d.length > 0) {
34
34
  a.current = !1, S(!0);
35
35
  let s;
@@ -41,8 +41,8 @@ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
41
41
  console.error(m);
42
42
  }
43
43
  if (s) {
44
- const m = F(s);
45
- g(!n && m.length === 0), R(m);
44
+ const m = R(s);
45
+ g(!n && m.length === 0), F(m);
46
46
  } else
47
47
  a.current = !0;
48
48
  S(!1);
@@ -50,10 +50,10 @@ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
50
50
  }, [
51
51
  t,
52
52
  d,
53
- F,
53
+ R,
54
54
  n,
55
55
  S,
56
- R,
56
+ F,
57
57
  g
58
58
  ]);
59
59
  b(() => {
@@ -67,12 +67,12 @@ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
67
67
  g,
68
68
  e.isEditor
69
69
  ]);
70
- const N = C(() => {
70
+ const N = D(() => {
71
71
  e.onFocus && e.onFocus(), a.current && L();
72
72
  }, [
73
73
  L,
74
74
  e.onFocus
75
- ]), v = C(
75
+ ]), v = D(
76
76
  (s) => {
77
77
  e.onChange && e.onChange(s), a.current = !0;
78
78
  },
@@ -90,7 +90,7 @@ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
90
90
  shouldRender: I
91
91
  };
92
92
  }, r = ({ children: e }) => {
93
- const t = M(), { addOther: D } = t, n = H(), p = t.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: d, onFocus: O, onChange: f, shouldRender: l } = J({
93
+ const t = y(), { addOther: C } = t, n = H(), p = t.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: d, onFocus: O, onChange: f, shouldRender: l } = J({
94
94
  ...t,
95
95
  isEditor: p
96
96
  }), h = _(() => ({
@@ -106,7 +106,7 @@ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
106
106
  O,
107
107
  f
108
108
  ]);
109
- return !p && d && !D || !l ? null : /* @__PURE__ */ o.createElement(U.Provider, {
109
+ return !p && d && !C || !l ? null : /* @__PURE__ */ o.createElement(U.Provider, {
110
110
  value: {
111
111
  v2: h
112
112
  }
@@ -121,23 +121,23 @@ const X = ({ content: e, locale: t }) => /* @__PURE__ */ o.createElement(w, {
121
121
  content: e,
122
122
  locale: t
123
123
  }), Z = () => {
124
- const e = G(i.dropdownTrigger), t = j(Y);
124
+ const e = z(i.dropdownTrigger), t = Y(Q);
125
125
  return /* @__PURE__ */ o.createElement(r, null, /* @__PURE__ */ o.createElement(r.Label, {
126
126
  className: E(V, i.label)
127
127
  }, /* @__PURE__ */ o.createElement(r.Label.Required, {
128
- className: E(q, i.requiredMark)
128
+ className: E(x, i.requiredMark)
129
129
  })), /* @__PURE__ */ o.createElement(r.Trigger, {
130
130
  className: e
131
- }, /* @__PURE__ */ o.createElement(K, {
131
+ }, /* @__PURE__ */ o.createElement(G, {
132
132
  className: i.dropdownIcon
133
133
  })), /* @__PURE__ */ o.createElement(r.Options, {
134
- className: E(x, i.selectPopover, i.dropdownPopover)
134
+ className: E(W, i.selectPopover, i.dropdownPopover)
135
135
  }, /* @__PURE__ */ o.createElement(r.Options.Option, {
136
136
  className: t
137
137
  })), /* @__PURE__ */ o.createElement(r.Error, {
138
- className: E(W, i.error)
139
- }, /* @__PURE__ */ o.createElement(Q, null), /* @__PURE__ */ o.createElement(r.Error.Text, null)), /* @__PURE__ */ o.createElement(r.Description, {
140
- className: E(k, i.description)
138
+ className: E(k, i.error)
139
+ }, /* @__PURE__ */ o.createElement(K, null), /* @__PURE__ */ o.createElement(r.Error.Text, null)), /* @__PURE__ */ o.createElement(r.Description, {
140
+ className: E(q, i.description)
141
141
  }, X));
142
142
  }, me = () => /* @__PURE__ */ o.createElement(Z, null);
143
143
  export {
@@ -1,16 +1,16 @@
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, by as d, aA as D, U as F, aa as N, p as f, r as h, K as b, G as A, q as M } from "./form-sH9m0ReT.js";
5
- import { u as v } from "./use-service-options-base-BF_peAsS.js";
6
- import { C as i } from "./checkbox-group-field-headless-B8tsQCwV.js";
4
+ import { F as R, bD as d, aF as D, U as F, af as f, p as N, r as h, K as b, G as M, q as A } from "./form-jK8ezTss.js";
5
+ import { u as v } from "./use-service-options-base-Wp8RZ4Z8.js";
6
+ import { C as i } from "./checkbox-group-field-headless-D16bAcaq.js";
7
7
  import { E as x } from "./error-icon-hZxQ6DEy.js";
8
8
  import { C as P } from "./checkbox-indicator-module-classes-DUTR4mcg.js";
9
9
  import { s as n } from "./field-rac.module-ts2t4WUO.js";
10
10
  import { o as _ } from "./options-rac.module-_THNq6Qq.js";
11
- import { u as T } from "./use-element-state-class-name-DCAoZgWT.js";
12
- import { u as y } from "./use-text-input-class-name-CQf8yep5.js";
13
- const k = (s) => {
11
+ import { u as T } from "./use-element-state-class-name-CkT6Ga8t.js";
12
+ import { u as k } from "./use-text-input-class-name-DS7i03Gk.js";
13
+ const y = (s) => {
14
14
  var C;
15
15
  const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded: p } = v({
16
16
  fieldType: R.SERVICES_MULTI_CHOICE,
@@ -34,7 +34,7 @@ const k = (s) => {
34
34
  shouldRender: E
35
35
  };
36
36
  }, t = ({ children: s, className: o }) => {
37
- const r = d(), { options: l, isEmpty: E, shouldRender: c } = k(r), m = L(() => ({
37
+ const r = d(), { options: l, isEmpty: E, shouldRender: c } = y(r), m = L(() => ({
38
38
  ...r,
39
39
  options: l
40
40
  }), [
@@ -58,15 +58,15 @@ const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
58
58
  locale: o
59
59
  }), U = () => {
60
60
  const s = T({
61
- globalClasses: M,
61
+ globalClasses: A,
62
62
  moduleClasses: P
63
- }), o = y();
63
+ }), o = k();
64
64
  return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
65
65
  className: a(F, n.label)
66
66
  }, /* @__PURE__ */ e.createElement(t.Label.Required, {
67
- className: a(N, n.requiredMark)
67
+ className: a(f, n.requiredMark)
68
68
  })), /* @__PURE__ */ e.createElement(t.Options, {
69
- className: a(f, _.options)
69
+ className: a(N, _.options)
70
70
  }, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
71
71
  className: n.checkbox
72
72
  }, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Input, {
@@ -78,7 +78,7 @@ const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
78
78
  }))), /* @__PURE__ */ e.createElement(t.Error, {
79
79
  className: a(b, n.error)
80
80
  }, /* @__PURE__ */ e.createElement(x, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
81
- className: a(A, n.description)
81
+ className: a(M, n.description)
82
82
  }, B));
83
83
  }, J = () => /* @__PURE__ */ e.createElement(U, null);
84
84
  export {