@wix/form-elements 1.93.0 → 1.95.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 (112) hide show
  1. package/dist/component/{appointment-rac-bw0pvoxP.js → appointment-rac-mhQIjy3A.js} +310 -311
  2. package/dist/component/{bookings-address-rac-DECq7eWR.js → bookings-address-rac-pcZeAN2d.js} +1 -1
  3. package/dist/component/{bookings-email-rac-DTLjh6Zw.js → bookings-email-rac-BHdvWhcv.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DObRe-Gq.js → bookings-first-name-rac-mPNuMBGo.js} +1 -1
  5. package/dist/component/{bookings-header-rac-DjpmYRJG.js → bookings-header-rac-CUzR91gM.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-Ds3o0ABM.js → bookings-last-name-rac-q2bsOPke.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DPUL2jWj.js → bookings-login-bar-rac-BpwVjQwz.js} +4 -4
  8. package/dist/component/{bookings-phone-rac-DIIHPxEP.js → bookings-phone-rac-DWdDpi-n.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-BrcQO9xx.js → bookings-rich-text-rac-CZnGLPwv.js} +1 -1
  10. package/dist/component/{get-first-day-of-the-week-DvnsxYhQ.js → calendar.module-DnhTT4QT.js} +23 -18
  11. package/dist/component/{checkbox-field-rac-CD1MP1LT.js → checkbox-field-rac-DRVjITJ_.js} +7 -7
  12. package/dist/component/{checkbox-group-field-headless-C0V6zq0u.js → checkbox-group-field-headless-CKXgbUdv.js} +3 -3
  13. package/dist/component/{checkbox-group-field-rac-B-MYpz53.js → checkbox-group-field-rac-Dt3yWmua.js} +14 -14
  14. package/dist/component/{checkbox-group-rac-BejQjiO2.js → checkbox-group-rac-BTFoDjxn.js} +1 -1
  15. package/dist/component/{checkbox-indicator-module-classes-mJ7hl_8K.js → checkbox-indicator-module-classes-DhbNznSB.js} +1 -1
  16. package/dist/component/{checkbox-rac-B0YgCj29.js → checkbox-rac-Crn5HP7E.js} +1 -1
  17. package/dist/component/{contacts-address-rac-B1QNl3Lb.js → contacts-address-rac-c1zfBJgx.js} +1 -1
  18. package/dist/component/{contacts-birthdate-rac-Cp-gh3P-.js → contacts-birthdate-rac-BaaSPZgO.js} +1 -1
  19. package/dist/component/{contacts-company-rac-CSCU7JGm.js → contacts-company-rac-CzuRjr1D.js} +1 -1
  20. package/dist/component/{contacts-email-rac-B1Oov6-3.js → contacts-email-rac-hL98o3x4.js} +1 -1
  21. package/dist/component/{contacts-first-name-rac-rsHIOcjr.js → contacts-first-name-rac-BXTnd1aU.js} +1 -1
  22. package/dist/component/{contacts-last-name-rac-Csgq53Wm.js → contacts-last-name-rac-DYjmWO4_.js} +1 -1
  23. package/dist/component/{contacts-phone-rac-r9SwjDZ4.js → contacts-phone-rac-KMnorQhu.js} +1 -1
  24. package/dist/component/{contacts-position-rac-D7VcCM7v.js → contacts-position-rac-ylzvuGhD.js} +1 -1
  25. package/dist/component/{contacts-subscribe-rac-8Nu9ncZW.js → contacts-subscribe-rac-Bi3ZazuW.js} +2 -2
  26. package/dist/component/{contacts-tax-id-rac-CL_JSl_W.js → contacts-tax-id-rac-C01LkO1D.js} +1 -1
  27. package/dist/component/{date-availability-DLOKY9C4.js → date-availability-BXwnYCBt.js} +1 -1
  28. package/dist/component/{date-input-field-rac-D23Al-Mr.js → date-input-field-rac-BMdPQoFk.js} +58 -57
  29. package/dist/component/{date-input-rac-B6zgkw-L.js → date-input-rac-D2mDdJ_4.js} +1 -1
  30. package/dist/component/date-picker-field-rac-7gyRMkPp.js +317 -0
  31. package/dist/component/{date-picker-rac-C7g6aceb.js → date-picker-rac-FyNcNbTc.js} +1 -1
  32. package/dist/component/{date-time-input-field-rac-BENzf6gc.js → date-time-input-field-rac-BTjqn_g-.js} +54 -53
  33. package/dist/component/{date-time-input-rac-CVpK3mgw.js → date-time-input-rac-C81cN7rJ.js} +1 -1
  34. package/dist/component/{dext-checkbox-group-rac-CbEFDD3H.js → dext-checkbox-group-rac-DAjQPdi_.js} +2 -2
  35. package/dist/component/{dext-checkbox-rac-BdtZvn6I.js → dext-checkbox-rac-DVt9mAXM.js} +1 -1
  36. package/dist/component/{dext-date-picker-rac-BAhFvUEx.js → dext-date-picker-rac-BnaExh1i.js} +1 -1
  37. package/dist/component/{dext-date-time-input-rac-iXMKMwQY.js → dext-date-time-input-rac-DPAW4eBA.js} +1 -1
  38. package/dist/component/{dext-dropdown-rac-D-NPziZS.js → dext-dropdown-rac-P9T1vh24.js} +1 -1
  39. package/dist/component/{dext-email-rac-DYSwyB80.js → dext-email-rac-BfEuFGaV.js} +1 -1
  40. package/dist/component/{dext-number-input-rac-DXx8hgFg.js → dext-number-input-rac-B5eN2rLP.js} +1 -1
  41. package/dist/component/{dext-phone-rac-BtuLROzm.js → dext-phone-rac-DA-h_tpZ.js} +1 -1
  42. package/dist/component/{dext-radio-group-rac-MdKNiJ2i.js → dext-radio-group-rac-BjpkApRr.js} +2 -2
  43. package/dist/component/{dext-rating-input-rac-d998xond.js → dext-rating-input-rac-DUMRW9uI.js} +1 -1
  44. package/dist/component/{dext-tags-rac-DnSpOM9T.js → dext-tags-rac-s0WchM4X.js} +2 -2
  45. package/dist/component/{dext-text-area-rac-KqjeDDWe.js → dext-text-area-rac-BRMsiGEH.js} +1 -1
  46. package/dist/component/{dext-text-input-rac-CtCnClfX.js → dext-text-input-rac-BBZi3D8V.js} +1 -1
  47. package/dist/component/{dext-url-input-rac-DSJQcLLr.js → dext-url-input-rac-jKMWbCGB.js} +1 -1
  48. package/dist/component/{donation-rac-B_KGkBgo.js → donation-rac-DyeKbodo.js} +30 -30
  49. package/dist/component/{dropdown-field-headless-BUilB8wZ.js → dropdown-field-headless-BK8BN3u4.js} +4 -4
  50. package/dist/component/{dropdown-field-rac-COupYC1a.js → dropdown-field-rac-B6yzL_R0.js} +6 -6
  51. package/dist/component/{dropdown-rac-Dj0UZrE0.js → dropdown-rac-CQaMpex2.js} +1 -1
  52. package/dist/component/{ecom-address-rac-C0xnn86e.js → ecom-address-rac-DQr3-QeV.js} +1 -1
  53. package/dist/component/{ecom-subscription-checkbox-rac-D-ekxwUE.js → ecom-subscription-checkbox-rac-CZ-pj21A.js} +3 -3
  54. package/dist/component/{email-input-field-rac-DVj1qz_R.js → email-input-field-rac-Vp0YfQOe.js} +41 -41
  55. package/dist/component/{events-repeater-rac-U0aq9Z4Q.js → events-repeater-rac-BPE4Hn_G.js} +6 -6
  56. package/dist/component/{events-rsvp-rac-C7J58_5q.js → events-rsvp-rac-u_BDmDJ2.js} +21 -21
  57. package/dist/component/{field-error-headless-2nYJ2792.js → field-error-headless-BOlFtckJ.js} +1 -1
  58. package/dist/component/{field-label-headless-D97ACnmc.js → field-label-headless-Dx3VrM-U.js} +1 -1
  59. package/dist/component/field-rac.module-DobpyqOd.js +26 -0
  60. package/dist/component/{file-upload-rac-BR7QpuPW.js → file-upload-rac-DaFuvO-g.js} +44 -44
  61. package/dist/component/{fixed-payment-rac-COl18wW1.js → fixed-payment-rac-DpBwOtOf.js} +11 -11
  62. package/dist/component/{form-DKKTSAj1.js → form-Wsx4lguO.js} +69 -69
  63. package/dist/component/{form-element-classes-CLZXu-91.js → form-element-classes-BtKlobUX.js} +60 -59
  64. package/dist/component/form.css +1 -1
  65. package/dist/component/form.js +1 -1
  66. package/dist/component/{header-field-rac-B6DyMG3U.js → header-field-rac-C8FlksmH.js} +3 -3
  67. package/dist/component/{header-rac-x4H2qMky.js → header-rac-C2J-pLq-.js} +1 -1
  68. package/dist/component/{image-choice-rac-BVgmKTKk.js → image-choice-rac-i4C_OXyb.js} +16 -16
  69. package/dist/component/{index-C47UMGhd.js → index-C34urqyX.js} +4 -4
  70. package/dist/component/{index-DnpqBcg5.js → index-CRI82pG6.js} +2 -2
  71. package/dist/component/{isObjectLike-BrrFBP4f.js → isObjectLike-D-9JnXmU.js} +1 -1
  72. package/dist/component/{multiline-address-field-rac-B6ka-2Wy.js → multiline-address-field-rac-Dkfso46f.js} +87 -86
  73. package/dist/component/{multiline-address-rac-Bh58qUEe.js → multiline-address-rac-BjrwDwOk.js} +1 -1
  74. package/dist/component/{number-input-field-rac-pAmxvk3A.js → number-input-field-rac-CgHi83Q1.js} +19 -19
  75. package/dist/component/{number-input-rac-mKA2njIU.js → number-input-rac-BinBxOCS.js} +1 -1
  76. package/dist/component/{password-rac-BbD7PQXO.js → password-rac-CDGqIRW5.js} +38 -38
  77. package/dist/component/{payment-input-rac-UdkwC1ek.js → payment-input-rac-f4uuGeJF.js} +23 -23
  78. package/dist/component/{phone-input-field-rac-BVLVVDTq.js → phone-input-field-rac-IdBqjM9Q.js} +33 -32
  79. package/dist/component/{phone-rac-LixcB9WV.js → phone-rac-VHPMrSpw.js} +1 -1
  80. package/dist/component/{product-list-rac-B_dL1Ov-.js → product-list-rac-Bk8q5y5L.js} +17 -17
  81. package/dist/component/{quiz-radio-group-rac-Bj5XfqNf.js → quiz-radio-group-rac-kTWqvAoW.js} +2 -2
  82. package/dist/component/{radio-button-module-classes-y_PtsZPP.js → radio-button-module-classes-D77Nc48M.js} +3 -3
  83. package/dist/component/{radio-group-field-rac-C8OElNAQ.js → radio-group-field-rac-DC-AYSOH.js} +5 -5
  84. package/dist/component/{radio-group-rac-BqJFboHE.js → radio-group-rac-BkswH1Py.js} +1 -1
  85. package/dist/component/{rating-input-field-rac-C9_ITvEh.js → rating-input-field-rac-Cqgw6PjV.js} +32 -32
  86. package/dist/component/{rating-input-rac-CvTpEUoU.js → rating-input-rac-CbZhlK3h.js} +1 -1
  87. package/dist/component/{rich-content-rac.module-D4pEN-TY.js → rich-content-rac.module-j_9YbXMI.js} +1 -1
  88. package/dist/component/{rich-text-field-rac-B8cqCmaf.js → rich-text-field-rac-Da1EIb3b.js} +3 -3
  89. package/dist/component/{rich-text-rac-C1o-tfXG.js → rich-text-rac-BarNBtgP.js} +1 -1
  90. package/dist/component/{service-dropdown-rac-BOXqB2aq.js → service-dropdown-rac-DLIC_csj.js} +36 -36
  91. package/dist/component/{services-multi-choice-rac-Dk4rz-fw.js → services-multi-choice-rac-vyxtwSM2.js} +14 -14
  92. package/dist/component/{signature-rac-h9GWVdez.js → signature-rac-DIM2Uwsg.js} +102 -102
  93. package/dist/component/{submit-button-rac-qNaTyCxd.js → submit-button-rac-DgxjomCu.js} +2 -2
  94. package/dist/component/{tags-field-rac-NMRn0YnW.js → tags-field-rac-BFlkxifd.js} +67 -67
  95. package/dist/component/{tags-rac-DGx4KxEn.js → tags-rac-D4TwrAWc.js} +1 -1
  96. package/dist/component/{text-area-field-rac-C7u0D4l3.js → text-area-field-rac-Dcz7VUQ5.js} +28 -28
  97. package/dist/component/{text-area-rac-Yo-RIyLm.js → text-area-rac-DhloXdO2.js} +1 -1
  98. package/dist/component/{text-input-field-rac-CvU-1clq.js → text-input-field-rac-C8e3TMxI.js} +8 -8
  99. package/dist/component/{text-input-headless-DLRwVmwf.js → text-input-headless-fl7qoZzR.js} +3 -3
  100. package/dist/component/{text-input-rac-CWh5xjZA.js → text-input-rac-CBn6bHtP.js} +1 -1
  101. package/dist/component/{time-input-rac-BZlso9qK.js → time-input-rac-Dsm7_vrf.js} +26 -26
  102. package/dist/component/{url-input-field-rac-Bax0TB4Q.js → url-input-field-rac-9Hfx1xzO.js} +20 -20
  103. package/dist/component/{url-input-rac-Bw2nfybR.js → url-input-rac-CVlE4pcg.js} +1 -1
  104. package/dist/component/use-dropdown-option-class-name-Dsxto42_.js +21 -0
  105. package/dist/component/{use-element-state-class-name-C0zLrsDR.js → use-element-state-class-name-BIqDbVvI.js} +1 -1
  106. package/dist/component/use-is-forced-open-dropdown-BMPqRDVW.js +41 -0
  107. package/dist/component/{use-service-options-base-Bkj6BSQL.js → use-service-options-base-07_rqXcG.js} +1 -1
  108. package/dist/component/{use-text-input-class-name-Biu89Ma7.js → use-text-input-class-name-DqFt59gd.js} +4 -4
  109. package/package.json +2 -2
  110. package/dist/component/date-picker-field-rac-BqdzPPzK.js +0 -304
  111. package/dist/component/field-rac.module-BUvPquav.js +0 -26
  112. package/dist/component/use-dropdown-option-class-name-vKSagp3b.js +0 -57
@@ -1,38 +1,38 @@
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 b, ah as v, au as T } from "./form-DKKTSAj1.js";
4
+ import { ak as b, ah as v, au as T } from "./form-Wsx4lguO.js";
5
5
  import { RadioGroup as H, RadioField as M, RadioButton as w } from "react-aria-components";
6
6
  import { f as u, a as B } from "./find-child-C60k4CxG.js";
7
- import { D as P, E as q } from "./field-error-headless-2nYJ2792.js";
8
- import { L as k } from "./field-label-headless-D97ACnmc.js";
7
+ import { D as P, E as k } from "./field-error-headless-BOlFtckJ.js";
8
+ import { L as q } from "./field-label-headless-Dx3VrM-U.js";
9
9
  import { E as G } from "./error-icon-hZxQ6DEy.js";
10
- import { s as g } from "./field-rac.module-BUvPquav.js";
11
- import { B as x, R as Q, P as U, q as z, i as Z, Q as j } from "./form-element-classes-CLZXu-91.js";
12
- import { u as J } from "./use-element-state-class-name-C0zLrsDR.js";
10
+ import { s as g } from "./field-rac.module-DobpyqOd.js";
11
+ import { C as x, S as Q, Q as U, r as j, j as z, R as Z } from "./form-element-classes-BtKlobUX.js";
12
+ import { u as J } from "./use-element-state-class-name-BIqDbVvI.js";
13
13
  const t = ({ children: a }) => {
14
- const { id: n, value: r, onChange: l, disabled: o, readOnly: d, required: c, hasError: i, onBlur: E, onFocus: R, FieldLayout: C } = b(), { labelId: _ } = v(), L = N((D) => l(Number(D)), [
14
+ const { id: r, value: n, onChange: l, disabled: o, readOnly: d, required: c, hasError: i, onBlur: E, onFocus: C, FieldLayout: R } = b(), { labelId: _ } = v(), L = N((D) => l(Number(D)), [
15
15
  l
16
16
  ]), f = u(a, t.Label), s = u(a, t.Ratings), S = u(a, t.Description), h = u(a, t.Error);
17
- return /* @__PURE__ */ e.createElement(C, {
18
- fieldId: n,
17
+ return /* @__PURE__ */ e.createElement(R, {
18
+ fieldId: r,
19
19
  renderLabel: () => f,
20
20
  renderInput: () => /* @__PURE__ */ e.createElement(H, {
21
21
  "aria-labelledby": _,
22
- value: r ? String(r) : void 0,
22
+ value: n ? String(n) : void 0,
23
23
  onChange: L,
24
24
  isDisabled: o,
25
25
  isReadOnly: d,
26
26
  isRequired: c,
27
27
  isInvalid: i,
28
28
  onBlur: E,
29
- onFocus: R,
29
+ onFocus: C,
30
30
  orientation: "horizontal"
31
31
  }, s),
32
32
  renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, S)
33
33
  });
34
- }, I = ({ children: a, className: n, getReactionLabel: r }) => {
35
- const { value: l, readOnly: o, hasError: d } = b(), { inputId: c, ariaDescribedBy: i } = v(), [E, R] = O(), C = A(null), _ = u(a, I.Rating), L = [
34
+ }, I = ({ children: a, className: r, getReactionLabel: n }) => {
35
+ const { value: l, readOnly: o, hasError: d } = b(), { inputId: c, ariaDescribedBy: i } = v(), [E, C] = O(), R = A(null), _ = u(a, I.Rating), L = [
36
36
  "1",
37
37
  "2",
38
38
  "3",
@@ -40,18 +40,18 @@ const t = ({ children: a }) => {
40
40
  "5"
41
41
  ], f = (s) => E && !o ? E >= s : !!l && l >= Number(s);
42
42
  return /* @__PURE__ */ e.createElement("div", {
43
- ref: C,
43
+ ref: R,
44
44
  id: c,
45
45
  "aria-describedby": i,
46
- className: n,
46
+ className: r,
47
47
  "data-invalid": d,
48
48
  "data-readonly": o
49
49
  }, L.map((s) => B(_, {
50
50
  key: s,
51
51
  value: s,
52
52
  isSelected: f(s),
53
- onHoverChange: (S) => R(S ? s : void 0),
54
- label: r == null ? void 0 : r(Number(s))
53
+ onHoverChange: (S) => C(S ? s : void 0),
54
+ label: n == null ? void 0 : n(Number(s))
55
55
  })));
56
56
  }, K = {
57
57
  border: 0,
@@ -63,8 +63,8 @@ const t = ({ children: a }) => {
63
63
  position: "absolute",
64
64
  width: 1,
65
65
  whiteSpace: "nowrap"
66
- }, F = ({ className: a, children: n, ...r }) => {
67
- const { value: l, isSelected: o, onHoverChange: d, label: c } = r;
66
+ }, F = ({ className: a, children: r, ...n }) => {
67
+ const { value: l, isSelected: o, onHoverChange: d, label: c } = n;
68
68
  return /* @__PURE__ */ e.createElement(M, {
69
69
  value: l
70
70
  }, /* @__PURE__ */ e.createElement(w, {
@@ -74,19 +74,19 @@ const t = ({ children: a }) => {
74
74
  }) : a ?? "",
75
75
  "data-active": o || void 0,
76
76
  onHoverChange: d
77
- }, ({ isHovered: i }) => /* @__PURE__ */ e.createElement(e.Fragment, null, typeof n == "function" ? n({
77
+ }, ({ isHovered: i }) => /* @__PURE__ */ e.createElement(e.Fragment, null, typeof r == "function" ? r({
78
78
  isSelected: o,
79
79
  isHovered: i
80
- }) : n, c ? /* @__PURE__ */ e.createElement("span", {
80
+ }) : r, c ? /* @__PURE__ */ e.createElement("span", {
81
81
  style: K
82
82
  }, c) : null)));
83
83
  };
84
84
  I.Rating = F;
85
- t.Label = k;
85
+ t.Label = q;
86
86
  t.Ratings = I;
87
87
  t.Rating = F;
88
88
  t.Description = P;
89
- t.Error = q;
89
+ t.Error = k;
90
90
  const W = (a) => /* @__PURE__ */ e.createElement("svg", {
91
91
  viewBox: "0 0 32 32",
92
92
  width: 32,
@@ -102,16 +102,16 @@ const W = (a) => /* @__PURE__ */ e.createElement("svg", {
102
102
  rating: Y,
103
103
  ratingSelected: $,
104
104
  ratingHover: V
105
- }, ee = ({ content: a, locale: n }) => /* @__PURE__ */ e.createElement(y, {
105
+ }, ee = ({ content: a, locale: r }) => /* @__PURE__ */ e.createElement(y, {
106
106
  content: a,
107
- locale: n
107
+ locale: r
108
108
  }), te = {
109
109
  base: p.rating,
110
110
  selected: p.ratingSelected,
111
111
  hover: p.ratingHover
112
112
  }, ge = () => {
113
- const { t: a } = T(), n = J({
114
- globalClasses: j,
113
+ const { t: a } = T(), r = J({
114
+ globalClasses: Z,
115
115
  moduleClasses: te
116
116
  });
117
117
  return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
@@ -120,15 +120,15 @@ const W = (a) => /* @__PURE__ */ e.createElement("svg", {
120
120
  className: m(Q, g.requiredMark)
121
121
  })), /* @__PURE__ */ e.createElement(t.Ratings, {
122
122
  className: m(U, p.ratings),
123
- getReactionLabel: (r) => a("rating-input.a11y.reaction-label", {
124
- count: r
123
+ getReactionLabel: (n) => a("rating-input.a11y.reaction-label", {
124
+ count: n
125
125
  })
126
126
  }, /* @__PURE__ */ e.createElement(t.Rating, {
127
- className: n
127
+ className: r
128
128
  }, /* @__PURE__ */ e.createElement(W, null))), /* @__PURE__ */ e.createElement(t.Error, {
129
- className: m(z, g.error)
129
+ className: m(j, g.error)
130
130
  }, /* @__PURE__ */ e.createElement(G, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
131
- className: m(Z, g.description)
131
+ className: m(z, g.description)
132
132
  }, ee));
133
133
  };
134
134
  export {
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { R as e } from "./rating-input-field-rac-C9_ITvEh.js";
2
+ import { R as e } from "./rating-input-field-rac-Cqgw6PjV.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 l } from "react";
2
- import { ak as a, ac as i, au as T } from "./form-DKKTSAj1.js";
2
+ import { ak as a, ac as i, au as T } from "./form-Wsx4lguO.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";
@@ -1,8 +1,8 @@
1
1
  import l from "classnames";
2
2
  import e from "react";
3
- import { ak as m, L as i, X as u, _ as R } from "./form-DKKTSAj1.js";
4
- import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-D4pEN-TY.js";
5
- import { a5 as g } from "./form-element-classes-CLZXu-91.js";
3
+ import { ak as m, L as i, X as u, _ as R } from "./form-Wsx4lguO.js";
4
+ import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-j_9YbXMI.js";
5
+ import { a6 as g } from "./form-element-classes-BtKlobUX.js";
6
6
  const h = {
7
7
  colorPalette: R(),
8
8
  customStyles: u()
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { R as t } from "./rich-text-field-rac-B8cqCmaf.js";
2
+ import { R as t } from "./rich-text-field-rac-Da1EIb3b.js";
3
3
  const R = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  R as RichTextRAC
@@ -1,22 +1,22 @@
1
- import t, { useRef as P, useMemo as L, useCallback as S, useEffect as T } from "react";
1
+ import t, { useRef as P, useMemo as L, useCallback as h, useEffect as T } from "react";
2
2
  import { RicosViewer as w } 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 V, h as k } from "./form-DKKTSAj1.js";
5
- import { u as q } from "./use-service-options-base-Bkj6BSQL.js";
6
- import { D as d } from "./dropdown-field-headless-BUilB8wZ.js";
7
- import { C as x } from "./chevron-down-icon-CcpVm6B-.js";
8
- import { E as B } from "./error-icon-hZxQ6DEy.js";
9
- import { H } from "./custom-focus-class-_483Pkwp.js";
10
- import { s as i } from "./field-rac.module-BUvPquav.js";
11
- import { B as U, R as W, m as G, D as Q, q as Y, i as j } from "./form-element-classes-CLZXu-91.js";
12
- import { u as z } from "./use-dropdown-option-class-name-vKSagp3b.js";
4
+ import { ag as A, au as b, F as M, ak as y, ac as V, h as k } from "./form-Wsx4lguO.js";
5
+ import { u as x } from "./use-service-options-base-07_rqXcG.js";
6
+ import { D as d } from "./dropdown-field-headless-BK8BN3u4.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";
10
+ import { s as i } from "./field-rac.module-DobpyqOd.js";
11
+ import { C as q, S as B, n as G, E as j, r as Q, j as Y } from "./form-element-classes-BtKlobUX.js";
12
+ import { u as z } from "./use-dropdown-option-class-name-Dsxto42_.js";
13
13
  const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
14
- const { actions: r } = A(), { t: h } = b(), { addOther: n, addOtherLabel: p } = e, c = p || h("add-other.default-other-option-label"), a = P(!0), E = L(() => {
14
+ const { actions: r } = A(), { t: C } = b(), { addOther: n, addOtherLabel: p } = e, c = p || C("add-other.default-other-option-label"), a = P(!0), E = L(() => {
15
15
  var s;
16
16
  return ((s = e.options) == null ? void 0 : s.map((m) => m.id ?? "")) ?? [];
17
17
  }, [
18
18
  e.options
19
- ]), O = S((s) => n ? [
19
+ ]), O = h((s) => n ? [
20
20
  ...s,
21
21
  {
22
22
  value: c,
@@ -26,13 +26,13 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
26
26
  ] : s, [
27
27
  n,
28
28
  c
29
- ]), { isLoading: f, options: l, isEmpty: R, shouldRender: I, setIsLoading: C, setOptions: _, setIsEmpty: D, processOptions: g } = q({
29
+ ]), { isLoading: f, options: l, isEmpty: D, shouldRender: I, setIsLoading: R, setOptions: _, setIsEmpty: S, processOptions: g } = x({
30
30
  fieldType: M.SERVICES_DROPDOWN,
31
31
  isEditor: e.isEditor,
32
32
  postProcessOptions: O
33
- }), F = S(async () => {
33
+ }), F = h(async () => {
34
34
  if (a.current && (r != null && r.fetchServices) && E.length > 0) {
35
- a.current = !1, C(!0);
35
+ a.current = !1, R(!0);
36
36
  let s;
37
37
  try {
38
38
  s = await r.fetchServices({
@@ -43,37 +43,37 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
43
43
  }
44
44
  if (s) {
45
45
  const m = g(s);
46
- D(!n && m.length === 0), _(m);
46
+ S(!n && m.length === 0), _(m);
47
47
  } else
48
48
  a.current = !0;
49
- C(!1);
49
+ R(!1);
50
50
  }
51
51
  }, [
52
52
  r,
53
53
  E,
54
54
  g,
55
55
  n,
56
- C,
56
+ R,
57
57
  _,
58
- D
58
+ S
59
59
  ]);
60
60
  T(() => {
61
61
  if (!e.isEditor && l.length > 0) {
62
62
  const s = n ? l.length - 1 : l.length;
63
- D(s === 0);
63
+ S(s === 0);
64
64
  }
65
65
  }, [
66
66
  l,
67
67
  n,
68
- D,
68
+ S,
69
69
  e.isEditor
70
70
  ]);
71
- const v = S(() => {
71
+ const v = h(() => {
72
72
  e.onFocus && e.onFocus(), a.current && F();
73
73
  }, [
74
74
  F,
75
75
  e.onFocus
76
- ]), N = S(
76
+ ]), N = h(
77
77
  (s) => {
78
78
  e.onChange && e.onChange(s), a.current = !0;
79
79
  },
@@ -85,16 +85,16 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
85
85
  return {
86
86
  isLoading: f,
87
87
  options: l,
88
- isEmpty: R,
88
+ isEmpty: D,
89
89
  onFocus: v,
90
90
  onChange: N,
91
91
  shouldRender: I
92
92
  };
93
93
  }, o = ({ children: e }) => {
94
- const r = y(), { addOther: h } = r, n = V(), p = r.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: E, onFocus: O, onChange: f, shouldRender: l } = K({
94
+ const r = y(), { addOther: C } = r, n = V(), p = r.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: E, onFocus: O, onChange: f, shouldRender: l } = K({
95
95
  ...r,
96
96
  isEditor: p
97
- }), R = L(() => ({
97
+ }), D = L(() => ({
98
98
  ...r,
99
99
  options: c ? [] : a,
100
100
  isLoading: c,
@@ -107,9 +107,9 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
107
107
  O,
108
108
  f
109
109
  ]);
110
- return !p && E && !h || !l ? null : /* @__PURE__ */ t.createElement(k.Provider, {
110
+ return !p && E && !C || !l ? null : /* @__PURE__ */ t.createElement(k.Provider, {
111
111
  value: {
112
- v2: R
112
+ v2: D
113
113
  }
114
114
  }, /* @__PURE__ */ t.createElement(d, null, e));
115
115
  };
@@ -122,23 +122,23 @@ const X = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(w, {
122
122
  content: e,
123
123
  locale: r
124
124
  }), Z = () => {
125
- const e = z(H);
125
+ const e = z(W);
126
126
  return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
127
- className: u(U, i.label)
127
+ className: u(q, i.label)
128
128
  }, /* @__PURE__ */ t.createElement(o.Label.Required, {
129
- className: u(W, i.requiredMark)
129
+ className: u(B, i.requiredMark)
130
130
  })), /* @__PURE__ */ t.createElement(o.Trigger, {
131
131
  className: u(G, i.input, i.dropdownTrigger)
132
- }, /* @__PURE__ */ t.createElement(x, {
132
+ }, /* @__PURE__ */ t.createElement(H, {
133
133
  className: i.dropdownIcon
134
134
  })), /* @__PURE__ */ t.createElement(o.Options, {
135
- className: u(Q, i.selectPopover, i.dropdownPopover)
135
+ className: u(j, i.selectPopover, i.dropdownPopover)
136
136
  }, /* @__PURE__ */ t.createElement(o.Options.Option, {
137
137
  className: e
138
138
  })), /* @__PURE__ */ t.createElement(o.Error, {
139
- className: u(Y, i.error)
140
- }, /* @__PURE__ */ t.createElement(B, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
141
- className: u(j, i.description)
139
+ className: u(Q, i.error)
140
+ }, /* @__PURE__ */ t.createElement(U, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
141
+ className: u(Y, i.description)
142
142
  }, X));
143
143
  }, ue = () => /* @__PURE__ */ t.createElement(Z, null);
144
144
  export {
@@ -1,20 +1,20 @@
1
1
  import e, { useEffect as I, useMemo as L } from "react";
2
- import { RicosViewer as R } from "@wix/ricos/viewer";
2
+ import { RicosViewer as S } from "@wix/ricos/viewer";
3
3
  import r from "classnames";
4
- import { F as S, ak as d, h as D } from "./form-DKKTSAj1.js";
5
- import { u as f } from "./use-service-options-base-Bkj6BSQL.js";
6
- import { C as n } from "./checkbox-group-field-headless-C0V6zq0u.js";
4
+ import { F as R, ak as d, h as D } from "./form-Wsx4lguO.js";
5
+ import { u as f } from "./use-service-options-base-07_rqXcG.js";
6
+ import { C as n } from "./checkbox-group-field-headless-CKXgbUdv.js";
7
7
  import { E as F } from "./error-icon-hZxQ6DEy.js";
8
- import { C as N } from "./checkbox-indicator-module-classes-mJ7hl_8K.js";
9
- import { s as a } from "./field-rac.module-BUvPquav.js";
10
- import { B as h, R as b, c as M, e as A, q as v, i as x, d as P } from "./form-element-classes-CLZXu-91.js";
8
+ import { C as N } from "./checkbox-indicator-module-classes-DhbNznSB.js";
9
+ import { s as a } from "./field-rac.module-DobpyqOd.js";
10
+ import { C as h, S as b, c as M, e as A, r as v, j as x, d as P } from "./form-element-classes-BtKlobUX.js";
11
11
  import { o as _ } from "./options-rac.module-KM-VT_KY.js";
12
- import { u as T } from "./use-element-state-class-name-C0zLrsDR.js";
13
- import { u as k } from "./use-text-input-class-name-Biu89Ma7.js";
14
- const B = (s) => {
12
+ import { u as T } from "./use-element-state-class-name-BIqDbVvI.js";
13
+ import { u as k } from "./use-text-input-class-name-DqFt59gd.js";
14
+ const y = (s) => {
15
15
  var C;
16
16
  const { isLoading: o, options: i, isEmpty: c, shouldRender: m, setOptions: l, setIsEmpty: E, setHasInitialDataLoaded: p } = f({
17
- fieldType: S.SERVICES_MULTI_CHOICE,
17
+ fieldType: R.SERVICES_MULTI_CHOICE,
18
18
  isEditor: s.isEditor
19
19
  }), u = (C = s.options) == null ? void 0 : C.every((O) => O.label && O.id);
20
20
  return I(() => {
@@ -35,7 +35,7 @@ const B = (s) => {
35
35
  shouldRender: m
36
36
  };
37
37
  }, t = ({ children: s }) => {
38
- const o = d(), { options: i, isEmpty: c, shouldRender: m } = B(o), l = L(() => ({
38
+ const o = d(), { options: i, isEmpty: c, shouldRender: m } = y(o), l = L(() => ({
39
39
  ...o,
40
40
  options: i
41
41
  }), [
@@ -52,7 +52,7 @@ t.Label = n.Label;
52
52
  t.Options = n.Options;
53
53
  t.Description = n.Description;
54
54
  t.Error = n.Error;
55
- const y = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(R, {
55
+ const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
56
56
  content: s,
57
57
  locale: o
58
58
  }), H = () => {
@@ -78,7 +78,7 @@ const y = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(R, {
78
78
  className: r(v, a.error)
79
79
  }, /* @__PURE__ */ e.createElement(F, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
80
80
  className: r(x, a.description)
81
- }, y));
81
+ }, B));
82
82
  }, W = () => /* @__PURE__ */ e.createElement(H, null);
83
83
  export {
84
84
  W as ServicesMultiChoiceRAC