@wix/form-elements 1.147.0 → 1.148.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-BG5-bIZU.js → appointment-rac-BNqXl3dq.js} +93 -89
  2. package/dist/component/{bookings-address-rac-8e8PqKsp.js → bookings-address-rac-DzLf588z.js} +1 -1
  3. package/dist/component/{bookings-email-rac-CtlnU8ws.js → bookings-email-rac-BCNWH7ss.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CrivNlXM.js → bookings-first-name-rac-D36aHUOJ.js} +1 -1
  5. package/dist/component/{bookings-header-rac-DWDAjfqq.js → bookings-header-rac-CNr2y2ES.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-qAthWem2.js → bookings-last-name-rac-yHE6ZIxr.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-BNyUDqlM.js → bookings-login-bar-rac-C3weOc1i.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-Tc39XLr7.js → bookings-phone-rac-CIo_ApRf.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CPNaPtFK.js → bookings-rich-text-rac-rgKnvt57.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-DEa78Tpf.js → checkbox-field-rac-CMaVxLNe.js} +9 -7
  11. package/dist/component/{checkbox-group-field-headless-BxBaMg29.js → checkbox-group-field-headless-XPtqS8Km.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-CRRP03Qk.js → checkbox-group-field-rac-C_58XfQt.js} +6 -6
  13. package/dist/component/{checkbox-group-rac-TOofMGl3.js → checkbox-group-rac-FQrWViSh.js} +1 -1
  14. package/dist/component/{checkbox-indicator-module-classes-6173wvuW.js → checkbox-indicator-module-classes-akWZsZNn.js} +1 -1
  15. package/dist/component/{checkbox-rac-CHMHr8Ry.js → checkbox-rac-C5Lj2b1N.js} +1 -1
  16. package/dist/component/{contacts-address-rac-Bc5yDvTL.js → contacts-address-rac-OhpLzD0X.js} +1 -1
  17. package/dist/component/{contacts-birthdate-rac-Ubtg5ncv.js → contacts-birthdate-rac-Dnqq84ct.js} +1 -1
  18. package/dist/component/{contacts-company-rac-BksH9IoV.js → contacts-company-rac-DMnTF55t.js} +1 -1
  19. package/dist/component/{contacts-email-rac-DDPEtMAm.js → contacts-email-rac-DmZhScW2.js} +1 -1
  20. package/dist/component/{contacts-first-name-rac-DUlCvEdx.js → contacts-first-name-rac-B6A4fuzK.js} +1 -1
  21. package/dist/component/{contacts-last-name-rac-BikqNgUr.js → contacts-last-name-rac-DVz97lew.js} +1 -1
  22. package/dist/component/{contacts-phone-rac-B4OEgM_8.js → contacts-phone-rac-DV8aO0uS.js} +1 -1
  23. package/dist/component/{contacts-position-rac-BfybzySV.js → contacts-position-rac-BP_yBIE4.js} +1 -1
  24. package/dist/component/{contacts-subscribe-rac-CMHb33v1.js → contacts-subscribe-rac-wmTprtLf.js} +1 -1
  25. package/dist/component/{contacts-tax-id-rac-C-qEqwO5.js → contacts-tax-id-rac-CUEPBQye.js} +1 -1
  26. package/dist/component/{date-availability-DZ3J3LLm.js → date-availability-BK_0gLRv.js} +1 -1
  27. package/dist/component/{date-input-field-rac-DeL5vuE7.js → date-input-field-rac-BfWPvRnd.js} +75 -69
  28. package/dist/component/{date-input-rac-Di6TQvFf.js → date-input-rac-B7vAMRBX.js} +1 -1
  29. package/dist/component/{date-picker-field-rac-BcdpTkjV.js → date-picker-field-rac-CpDY4EkU.js} +10 -8
  30. package/dist/component/{date-picker-rac-Brne65gr.js → date-picker-rac-BCswaZB1.js} +1 -1
  31. package/dist/component/{date-time-input-field-rac-BtQfAxRp.js → date-time-input-field-rac-D9w4eEa0.js} +115 -109
  32. package/dist/component/{date-time-input-rac-DM_HXiqV.js → date-time-input-rac-_im8-JRC.js} +1 -1
  33. package/dist/component/{dext-checkbox-group-rac-WTVwhGG0.js → dext-checkbox-group-rac-Di7B1Wzv.js} +2 -2
  34. package/dist/component/{dext-checkbox-rac-BR5YwmLQ.js → dext-checkbox-rac-BPendOsP.js} +1 -1
  35. package/dist/component/{dext-date-picker-rac-DvDuRGYi.js → dext-date-picker-rac-_-Ig9Qn6.js} +1 -1
  36. package/dist/component/{dext-date-time-input-rac-C6RgbaVv.js → dext-date-time-input-rac-dKFW87yu.js} +1 -1
  37. package/dist/component/{dext-dropdown-rac-CWjSdcZx.js → dext-dropdown-rac-Cpdpps7P.js} +1 -1
  38. package/dist/component/{dext-email-rac-D-C1gVTq.js → dext-email-rac-D4UmYH5m.js} +1 -1
  39. package/dist/component/{dext-number-input-rac-YKzZS2ZG.js → dext-number-input-rac-DUetGnYJ.js} +1 -1
  40. package/dist/component/{dext-phone-rac-CFZlEH2a.js → dext-phone-rac-Bsz_DAT9.js} +1 -1
  41. package/dist/component/{dext-radio-group-rac-DiH0wIIl.js → dext-radio-group-rac-B_soj2FD.js} +2 -2
  42. package/dist/component/{dext-rating-input-rac-D0s-i0qO.js → dext-rating-input-rac-cm40qt4O.js} +1 -1
  43. package/dist/component/{dext-tags-rac-Br48OQQ5.js → dext-tags-rac-D1ULx6t1.js} +2 -2
  44. package/dist/component/{dext-text-area-rac-6jG8gJ7i.js → dext-text-area-rac-IkL67rHB.js} +1 -1
  45. package/dist/component/{dext-text-input-rac-FAJTCXuf.js → dext-text-input-rac-DsYSTEL2.js} +1 -1
  46. package/dist/component/{dext-url-input-rac-BoMP8sQB.js → dext-url-input-rac-BKvEkpYu.js} +1 -1
  47. package/dist/component/{donation-rac-DNi4p-v5.js → donation-rac-CaCXMa-H.js} +60 -58
  48. package/dist/component/{dropdown-field-headless-7SCC-xOC.js → dropdown-field-headless-DcrQK8mL.js} +29 -27
  49. package/dist/component/{dropdown-field-rac-CMzZh6J6.js → dropdown-field-rac-CuGoz_6I.js} +4 -4
  50. package/dist/component/{dropdown-rac-qeugpHXY.js → dropdown-rac-rIe6ZqaZ.js} +1 -1
  51. package/dist/component/{ecom-address-rac-D8b_L5md.js → ecom-address-rac-DT0rzvvp.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-BnAuR9La.js → ecom-subscription-checkbox-rac-ZfbiME6e.js} +2 -2
  53. package/dist/component/{email-input-field-rac-CunXRyc5.js → email-input-field-rac-8Qn3yskh.js} +4 -4
  54. package/dist/component/{events-repeater-rac-DMjyIOkB.js → events-repeater-rac-DyHrMd3y.js} +12 -8
  55. package/dist/component/{events-rsvp-rac-BsuDPq2K.js → events-rsvp-rac-CoL-euuc.js} +4 -4
  56. package/dist/component/{field-error-headless-E8WjFr_n.js → field-error-headless-RylIeqXr.js} +1 -1
  57. package/dist/component/{field-label-headless-BakLOu5E.js → field-label-headless-d3hZxIEc.js} +1 -1
  58. package/dist/component/field-rac.module-DP0lkkEv.js +25 -0
  59. package/dist/component/{file-upload-rac-Clu_c--0.js → file-upload-rac-rXbabrgc.js} +148 -144
  60. package/dist/component/{fixed-payment-rac-CzAXxsb-.js → fixed-payment-rac-CaR7pXXA.js} +4 -4
  61. package/dist/component/{form-DHAKwnLt.js → form-DhIEC3nB.js} +2251 -2256
  62. package/dist/component/form.css +1 -1
  63. package/dist/component/form.js +1 -1
  64. package/dist/component/{header-field-rac-CwmVpz3r.js → header-field-rac-nELbyGjP.js} +2 -2
  65. package/dist/component/{header-rac-ahkGRjSy.js → header-rac-q80EQNmM.js} +1 -1
  66. package/dist/component/{image-choice-rac-BwxkkdUu.js → image-choice-rac-CLMiTQK0.js} +32 -32
  67. package/dist/component/{index-BQf23zZi.js → index-C-jVrv9Y.js} +4 -4
  68. package/dist/component/{index-BFi_n6B7.js → index-DnLJzPM-.js} +2 -2
  69. package/dist/component/{isObjectLike-DHcMRYYH.js → isObjectLike-Bf577MHV.js} +1 -1
  70. package/dist/component/{multiline-address-field-rac-C6xaqNOk.js → multiline-address-field-rac-BVAv1w9F.js} +106 -88
  71. package/dist/component/{multiline-address-rac-DF4TFuDx.js → multiline-address-rac-qMuUHA9U.js} +1 -1
  72. package/dist/component/{number-input-field-rac-uVJ3SBv2.js → number-input-field-rac-B_vnBWFG.js} +16 -14
  73. package/dist/component/{number-input-rac-D6ERhrSM.js → number-input-rac-BPCIW8Fz.js} +1 -1
  74. package/dist/component/{password-rac-CAiC0ZKl.js → password-rac-D72HG72u.js} +13 -11
  75. package/dist/component/{payment-input-rac-Bu25xvby.js → payment-input-rac-DthVgsAi.js} +13 -11
  76. package/dist/component/{phone-input-field-rac-32qUvCsC.js → phone-input-field-rac-XIPkH8Fb.js} +7 -7
  77. package/dist/component/{phone-rac-mNrpj30q.js → phone-rac-U94fCfer.js} +1 -1
  78. package/dist/component/{product-list-rac-zHdM9rHw.js → product-list-rac-BRMGPyhr.js} +49 -49
  79. package/dist/component/{quiz-radio-group-rac-BaSlT8w3.js → quiz-radio-group-rac-DafNzzgX.js} +1 -1
  80. package/dist/component/radio-button-module-classes-DtFlHID_.js +134 -0
  81. package/dist/component/{radio-group-field-rac-DI0UgTBr.js → radio-group-field-rac-BXrYWjew.js} +5 -5
  82. package/dist/component/{radio-group-rac-D2ESG8J4.js → radio-group-rac-BNyFfQYV.js} +1 -1
  83. package/dist/component/{rating-input-field-rac-BYT2XqOK.js → rating-input-field-rac-KbkiVCZ7.js} +5 -5
  84. package/dist/component/{rating-input-rac-D-5CmVAX.js → rating-input-rac-zT4vPkwP.js} +1 -1
  85. package/dist/component/{rich-content-rac.module-Dp9Advo9.js → rich-content-rac.module-C0OQetct.js} +1 -1
  86. package/dist/component/{rich-text-field-rac-COEUwoXQ.js → rich-text-field-rac-T4NoShC0.js} +2 -2
  87. package/dist/component/{rich-text-rac-CQZLjBQ0.js → rich-text-rac-m6VRCRZu.js} +1 -1
  88. package/dist/component/{service-dropdown-rac-BTtJVFv8.js → service-dropdown-rac-BFwKhL1l.js} +5 -5
  89. package/dist/component/{services-multi-choice-rac-hbY3g0Kb.js → services-multi-choice-rac-DjzcuRWv.js} +7 -7
  90. package/dist/component/{signature-rac-CTCNclwL.js → signature-rac-B1LPKnIw.js} +271 -269
  91. package/dist/component/{submit-button-rac-kKGeVgsG.js → submit-button-rac-Cz3PVtW4.js} +2 -2
  92. package/dist/component/{tags-field-rac-CVf7oQr_.js → tags-field-rac-DzSoL__s.js} +75 -75
  93. package/dist/component/{tags-rac-DiX1_nTT.js → tags-rac-DMYJDrm-.js} +1 -1
  94. package/dist/component/{text-area-field-rac-IhBNXiDl.js → text-area-field-rac-SuMzBm-Q.js} +15 -13
  95. package/dist/component/{text-area-rac-DHevCtFF.js → text-area-rac-C-zmnJgt.js} +1 -1
  96. package/dist/component/{text-input-field-rac-Da3_wTdh.js → text-input-field-rac-BmQlXTK9.js} +4 -4
  97. package/dist/component/text-input-headless-BsrjGTK4.js +47 -0
  98. package/dist/component/{text-input-rac-564LIZ1_.js → text-input-rac-DhQFKG4h.js} +1 -1
  99. package/dist/component/{time-input-rac-p-Nnsxp_.js → time-input-rac-CRZZdbTI.js} +29 -27
  100. package/dist/component/{url-input-field-rac-DjrcpRtm.js → url-input-field-rac-D617Pvsf.js} +20 -18
  101. package/dist/component/{url-input-rac-B3brpyop.js → url-input-rac-CLvxaWZz.js} +1 -1
  102. package/dist/component/{use-dropdown-trigger-class-name-BWTT7ltv.js → use-dropdown-trigger-class-name-C4uqTKFP.js} +4 -4
  103. package/dist/component/{use-element-state-class-name-CUZuhFvZ.js → use-element-state-class-name-DJx-T0zf.js} +1 -1
  104. package/dist/component/{use-hoverable-input-class-name-ugX8-g4E.js → use-hoverable-input-class-name-pwVZXwrY.js} +3 -3
  105. package/dist/component/{use-is-forced-open-dropdown-DUZMvWpk.js → use-is-forced-open-dropdown-DBpm1D-o.js} +1 -1
  106. package/dist/component/{use-service-options-base-hqO9Ev38.js → use-service-options-base-xHeVTve3.js} +1 -1
  107. package/dist/component/use-text-input-class-name-CrEjJ2Z8.js +6 -0
  108. package/package.json +2 -2
  109. package/dist/component/field-rac.module-DfEb7pBp.js +0 -25
  110. package/dist/component/radio-button-module-classes-BdWjkBlX.js +0 -132
  111. package/dist/component/text-input-headless-DcZRRXCp.js +0 -45
  112. package/dist/component/use-text-input-class-name-wp9dzpEy.js +0 -6
@@ -1,17 +1,17 @@
1
- import o, { useRef as J, useState as j, useEffect as P, createContext as Ke, useContext as $e, useMemo as B, useCallback as se } from "react";
1
+ import o, { useRef as X, useState as Q, useEffect as P, createContext as Ke, useContext as $e, useMemo as B, useCallback as re } from "react";
2
2
  import { RicosViewer as it } from "@wix/ricos/viewer";
3
3
  import v from "classnames";
4
4
  import { C as he } from "./chevron-down-icon-CcpVm6B-.js";
5
5
  import { E as lt } from "./error-icon-hZxQ6DEy.js";
6
6
  import { g as ct, c as Ce } from "./calendar.module-CKCBG_Pg.js";
7
7
  import { H as me } from "./custom-focus-class-_483Pkwp.js";
8
- import { s as ue } from "./field-rac.module-DfEb7pBp.js";
9
- import { bg as De, bf as mt, bk as Te, by as ut, bx as dt, bo as re, bl as ie, bq as ft, bn as Dt, F as Et, h as St, S as _t, a0 as pt, g as Nt, j as We, i as yt, m as At, k as bt, H as It, v as Lt, l as Ot } from "./form-DHAKwnLt.js";
10
- import { u as gt } from "./use-element-state-class-name-CUZuhFvZ.js";
8
+ import { s as ue } from "./field-rac.module-DP0lkkEv.js";
9
+ import { bg as De, bf as mt, bk as Te, by as ut, bx as dt, bo as ie, bl as le, bq as ft, bn as Dt, F as Et, h as St, S as _t, a0 as pt, g as Nt, j as We, i as yt, m as At, k as bt, H as It, v as Lt, l as Ot } from "./form-DhIEC3nB.js";
10
+ import { u as gt } from "./use-element-state-class-name-DJx-T0zf.js";
11
11
  import { ListBox as Tt, Button as ve, ListBoxItem as vt, RadioGroup as kt, RadioField as Rt, RadioButton as Mt } from "react-aria-components";
12
12
  import { f as T, a as Ee } from "./find-child-C60k4CxG.js";
13
- import { D as wt, E as Ft } from "./field-error-headless-E8WjFr_n.js";
14
- import { L as ht } from "./field-label-headless-BakLOu5E.js";
13
+ import { D as wt, E as Ft } from "./field-error-headless-RylIeqXr.js";
14
+ import { L as ht } from "./field-label-headless-d3hZxIEc.js";
15
15
  import { F as Ct } from "./fieldset-headless-CD3fds9J.js";
16
16
  import "date-fns";
17
17
  import { V as Ge } from "./headless-styles-CmcyA_pi.js";
@@ -23,10 +23,10 @@ var Le = /* @__PURE__ */ (function(e) {
23
23
  })({}), z = /* @__PURE__ */ (function(e) {
24
24
  return e.LOADING = "LOADING", e.DONE = "DONE", e.ERROR = "ERROR", e;
25
25
  })({});
26
- const V = 4;
27
- var Q = /* @__PURE__ */ (function(e) {
26
+ const q = 4;
27
+ var J = /* @__PURE__ */ (function(e) {
28
28
  return e.FORM = "form", e.NO_AVAILABILITY_FOR_DATE = "no availability for date empty state", e.NO_AVAILABILITY_AT_ALL = "no availability at all empty state", e.SLOT = "slot", e.DATE = "date", e.PAGINATION = "pagination", e.SHOW_MORE = "show more", e;
29
- })({}), te = /* @__PURE__ */ (function(e) {
29
+ })({}), ne = /* @__PURE__ */ (function(e) {
30
30
  return e.LOAD = "load", e.CLICK = "click", e;
31
31
  })({});
32
32
  const Bt = (e) => {
@@ -151,27 +151,27 @@ const Pt = (e) => {
151
151
  availabilitySlots: r,
152
152
  availabilityDates: s,
153
153
  timezone: t,
154
- currentSlotBulkSize: V,
154
+ currentSlotBulkSize: q,
155
155
  selectedDate: s.length > 0 && ((d = (E = s[0]) == null ? void 0 : E.slot) != null && d.startDate) ? new Date(s[0].slot.startDate) : void 0
156
156
  };
157
157
  };
158
158
  function Kt(e) {
159
159
  var d;
160
- const { initialData: t, onChange: n, value: a } = e, { isEditor: s, isComposer: r } = De(), i = (d = t == null ? void 0 : t.service) == null ? void 0 : d.id, { actions: l } = Te(), c = J(l);
160
+ const { initialData: t, onChange: n, value: a } = e, { isEditor: s, isComposer: r } = De(), i = (d = t == null ? void 0 : t.service) == null ? void 0 : d.id, { actions: l } = Te(), c = X(l);
161
161
  c.current = l;
162
- const D = !!(l != null && l.getAvailabilityDates && (l != null && l.getAvailabilitySlots)), [u, S] = j(null), E = Ze(t == null ? void 0 : t.service);
162
+ const D = !!(l != null && l.getAvailabilityDates && (l != null && l.getAvailabilitySlots)), [u, S] = Q(null), E = Ze(t == null ? void 0 : t.service);
163
163
  return P(() => {
164
164
  i && !s && !r && D && (async () => {
165
165
  var b, I, U, x, H;
166
166
  const M = Ve(), y = {
167
- currentSlotBulkSize: V,
167
+ currentSlotBulkSize: q,
168
168
  timezone: M,
169
169
  dataStatus: z.LOADING
170
170
  };
171
171
  try {
172
- const Y = async (ae) => {
172
+ const Y = async (oe) => {
173
173
  var _, p;
174
- const { startDate: $, endDate: w } = xt(ae, M);
174
+ const { startDate: $, endDate: w } = xt(oe, M);
175
175
  return (p = (_ = c.current) == null ? void 0 : _.getAvailabilityDates) == null ? void 0 : p.call(_, {
176
176
  serviceId: i,
177
177
  fromDate: $,
@@ -181,8 +181,8 @@ function Kt(e) {
181
181
  };
182
182
  if (y.availabilityDates = await Y(2), (b = y.availabilityDates) != null && b.length || (y.availabilityDates = await Y(6)), !((I = y.availabilityDates) != null && I.length)) {
183
183
  E == null || E.report({
184
- action: te.LOAD,
185
- component: Q.NO_AVAILABILITY_AT_ALL
184
+ action: ne.LOAD,
185
+ component: J.NO_AVAILABILITY_AT_ALL
186
186
  }), S({
187
187
  dataStatus: z.ERROR,
188
188
  error: {
@@ -197,8 +197,8 @@ function Kt(e) {
197
197
  timeZone: M,
198
198
  selectedDate: y.selectedDate
199
199
  }))), E == null || E.report({
200
- action: te.LOAD,
201
- component: (H = y.availabilityDates) != null && H.length ? Q.FORM : Q.NO_AVAILABILITY_FOR_DATE
200
+ action: ne.LOAD,
201
+ component: (H = y.availabilityDates) != null && H.length ? J.FORM : J.NO_AVAILABILITY_FOR_DATE
202
202
  }), a != null && a.startDate || n(void 0), S({
203
203
  ...y,
204
204
  dataStatus: z.DONE
@@ -225,7 +225,7 @@ const qe = /* @__PURE__ */ Ke({
225
225
  setAppointmentState: () => {
226
226
  }
227
227
  }), $t = ({ appointmentFieldProps: e, children: t }) => {
228
- const { isEditor: n, isComposer: a } = De(), [s, r] = j(() => Ut({
228
+ const { isEditor: n, isComposer: a } = De(), [s, r] = Q(() => Ut({
229
229
  appointmentFieldProps: e,
230
230
  isEditor: n,
231
231
  isComposer: a
@@ -281,7 +281,7 @@ const qe = /* @__PURE__ */ Ke({
281
281
  formatType: "offset"
282
282
  });
283
283
  return `${n} (${a})`;
284
- }, ne = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), qt = (e, t) => {
284
+ }, ae = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), qt = (e, t) => {
285
285
  const n = new Date(e);
286
286
  n.setDate(e.getDate() - t);
287
287
  const a = new Date(e);
@@ -294,7 +294,7 @@ const qe = /* @__PURE__ */ Ke({
294
294
  P(() => {
295
295
  (async () => {
296
296
  var l, c;
297
- if (s != null && s.startDate && (n != null && n.selectedDate) && (n == null ? void 0 : n.dataStatus) === z.DONE && !ne(new Date(s.startDate), n == null ? void 0 : n.selectedDate)) {
297
+ if (s != null && s.startDate && (n != null && n.selectedDate) && (n == null ? void 0 : n.dataStatus) === z.DONE && !ae(new Date(s.startDate), n == null ? void 0 : n.selectedDate)) {
298
298
  e(!0);
299
299
  const u = new Date(s.startDate), { fromDate: S, toDate: E } = qt(u, 8), [d, g] = await Promise.all([
300
300
  (l = r == null ? void 0 : r.getAvailabilityDates) == null ? void 0 : l.call(r, {
@@ -352,7 +352,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
352
352
  var t;
353
353
  return ((t = e == null ? void 0 : e.params) == null ? void 0 : t.reason) === nn;
354
354
  }, on = ({ error: e, selectedSlot: t }) => {
355
- const [n, a] = j([]), s = an(e), r = t == null ? void 0 : t.startDate, i = J(!1);
355
+ const [n, a] = Q([]), s = an(e), r = t == null ? void 0 : t.startDate, i = X(!1);
356
356
  return P(() => {
357
357
  if (!s) {
358
358
  i.current = !1;
@@ -366,18 +366,18 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
366
366
  s,
367
367
  r
368
368
  ]), n;
369
- }, q = 7, ge = (e) => {
369
+ }, j = 7, ge = (e) => {
370
370
  const t = new Date(e);
371
371
  return t.setHours(0, 0, 0, 0), t;
372
372
  }, sn = (e) => {
373
373
  const t = new Date(e);
374
374
  return t.setHours(23, 59, 59, 999), t;
375
- }, ee = (e, t) => {
375
+ }, te = (e, t) => {
376
376
  const n = new Date(e);
377
377
  return n.setDate(n.getDate() + t), n;
378
378
  }, He = (e, t) => {
379
- const n = ge(e), a = (n.getDay() - t + q) % q;
380
- return ee(n, -a);
379
+ const n = ge(e), a = (n.getDay() - t + j) % j;
380
+ return te(n, -a);
381
381
  }, rn = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, ln = (e, t, n) => {
382
382
  const a = new Intl.DateTimeFormat(n, {
383
383
  month: "short",
@@ -386,15 +386,15 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
386
386
  return typeof a.formatRange == "function" ? a.formatRange(e, t) : `${a.format(e)} - ${a.format(t)}`;
387
387
  }, cn = (e, t = []) => t.some((n) => {
388
388
  var a;
389
- return !!((a = n.slot) != null && a.startDate) && ne(new Date(n.slot.startDate), e);
389
+ return !!((a = n.slot) != null && a.startDate) && ae(new Date(n.slot.startDate), e);
390
390
  }), mn = () => {
391
391
  var Fe;
392
- const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } = ke(), { language: a, isEditor: s, isComposer: r } = De(), { t: i } = ut(), { actions: l } = Te(), c = Ze(), [D, u] = j(!1), [S, E] = j(!1), [d, g] = j(), [M, y] = j();
392
+ const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } = ke(), { language: a, isEditor: s, isComposer: r } = De(), { t: i } = ut(), { actions: l } = Te(), c = Ze(), [D, u] = Q(!1), [S, E] = Q(!1), [d, g] = Q(), [M, y] = Q();
393
393
  jt({
394
394
  setIsReloadingSlots: u
395
395
  });
396
- const { onChange: b, value: I, target: U, initialData: x, formatDescription: H, locationType: Y, error: ae } = e, { availabilityDates: $, availabilitySlots: w, timezone: _ = "", selectedDate: p, currentSlotBulkSize: k, dataStatus: G, error: le } = t, K = (Fe = x == null ? void 0 : x.service) == null ? void 0 : Fe.id, Z = G === z.LOADING, X = D || S, Se = !!le, Me = on({
397
- error: ae,
396
+ const { onChange: b, value: I, target: U, initialData: x, formatDescription: H, locationType: Y, error: oe } = e, { availabilityDates: $, availabilitySlots: w, timezone: _ = "", selectedDate: p, currentSlotBulkSize: k, dataStatus: G, error: Z } = t, K = (Fe = x == null ? void 0 : x.service) == null ? void 0 : Fe.id, V = G === z.LOADING, ee = D || S, Se = !!Z, Me = on({
397
+ error: oe,
398
398
  selectedSlot: I
399
399
  }), A = B(() => Qt(w, Me), [
400
400
  w,
@@ -428,10 +428,10 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
428
428
  ]);
429
429
  const _e = B(() => ct(a), [
430
430
  a
431
- ]), we = J(p);
431
+ ]), we = X(p);
432
432
  P(() => {
433
433
  const f = we.current;
434
- we.current = p, !!p && (!f || !ne(f, p)) && g(void 0);
434
+ we.current = p, !!p && (!f || !ae(f, p)) && g(void 0);
435
435
  }, [
436
436
  p
437
437
  ]);
@@ -450,16 +450,16 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
450
450
  day: "numeric"
451
451
  });
452
452
  return Array.from({
453
- length: q
454
- }, (oe, be) => {
455
- const W = ee(h, be), Ie = !!p && ne(W, p), rt = ge(W) < f;
453
+ length: j
454
+ }, (se, be) => {
455
+ const W = te(h, be), Ie = !!p && ae(W, p), rt = ge(W) < f;
456
456
  return {
457
457
  key: rn(W),
458
458
  date: W,
459
459
  isSelected: Ie,
460
- isAvailable: !Z && !X && !Ie && cn(W, $),
461
- isDisabled: rt || X && !Ie,
462
- isToday: ne(W, f),
460
+ isAvailable: !V && !ee && !Ie && cn(W, $),
461
+ isDisabled: rt || ee && !Ie,
462
+ isToday: ae(W, f),
463
463
  dayOfMonthLabel: O.format(W),
464
464
  weekdayLabel: L.format(W),
465
465
  label: R.format(W),
@@ -470,11 +470,11 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
470
470
  h,
471
471
  p,
472
472
  $,
473
- Z,
474
- X,
473
+ V,
474
+ ee,
475
475
  a,
476
476
  i
477
- ]), pe = de(I ?? void 0) || void 0, Ne = B(() => Z || D ? [] : (A ?? []).slice(0, k).flatMap((f) => {
477
+ ]), pe = de(I ?? void 0) || void 0, Ne = B(() => V || D ? [] : (A ?? []).slice(0, k).flatMap((f) => {
478
478
  const { startDate: L, endDate: O } = f.slot ?? {};
479
479
  if (!L || !O)
480
480
  return [];
@@ -499,22 +499,22 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
499
499
  }), [
500
500
  A,
501
501
  k,
502
- Z,
502
+ V,
503
503
  D,
504
504
  a,
505
505
  _,
506
506
  pe
507
- ]), ye = !D && !!(A != null && A.length) && (k || V) < A.length, Ae = h > He(/* @__PURE__ */ new Date(), _e), et = se(
507
+ ]), ye = !D && !!(A != null && A.length) && (k || q) < A.length, Ae = h > He(/* @__PURE__ */ new Date(), _e), et = re(
508
508
  async (f) => {
509
509
  var L;
510
- if (!(X || p && ne(f, p))) {
510
+ if (!(ee || p && ae(f, p))) {
511
511
  u(!0), b == null || b(void 0), n({
512
- currentSlotBulkSize: V,
512
+ currentSlotBulkSize: q,
513
513
  selectedDate: f,
514
514
  availabilitySlots: void 0
515
515
  }), c == null || c.report({
516
- action: te.CLICK,
517
- component: Q.DATE
516
+ action: ne.CLICK,
517
+ component: J.DATE
518
518
  });
519
519
  try {
520
520
  const O = await ((L = l == null ? void 0 : l.getAvailabilitySlots) == null ? void 0 : L.call(l, {
@@ -523,7 +523,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
523
523
  selectedDate: f
524
524
  }));
525
525
  n({
526
- currentSlotBulkSize: V,
526
+ currentSlotBulkSize: q,
527
527
  selectedDate: f,
528
528
  availabilitySlots: O
529
529
  });
@@ -535,7 +535,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
535
535
  },
536
536
  // eslint-disable-next-line react-hooks/exhaustive-deps
537
537
  [
538
- X,
538
+ ee,
539
539
  p,
540
540
  K,
541
541
  _,
@@ -543,25 +543,25 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
543
543
  b,
544
544
  c
545
545
  ]
546
- ), ce = J(0), tt = se(
546
+ ), ce = X(0), tt = re(
547
547
  async (f) => {
548
- var oe;
548
+ var se;
549
549
  if (f < 0 && !Ae)
550
550
  return;
551
- const L = h, O = ee(h, f * q);
551
+ const L = h, O = te(h, f * j);
552
552
  if (g(O), s || r)
553
553
  return;
554
554
  const R = ++ce.current;
555
555
  E(!0), c == null || c.report({
556
- action: te.CLICK,
557
- component: Q.PAGINATION
556
+ action: ne.CLICK,
557
+ component: J.PAGINATION
558
558
  });
559
559
  try {
560
- const be = await ((oe = l == null ? void 0 : l.getAvailabilityDates) == null ? void 0 : oe.call(l, {
560
+ const be = await ((se = l == null ? void 0 : l.getAvailabilityDates) == null ? void 0 : se.call(l, {
561
561
  serviceId: K,
562
562
  timeZone: _,
563
563
  fromDate: O,
564
- toDate: sn(ee(O, q - 1))
564
+ toDate: sn(te(O, j - 1))
565
565
  }));
566
566
  R === ce.current && n({
567
567
  availabilityDates: be
@@ -583,15 +583,15 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
583
583
  l,
584
584
  c
585
585
  ]
586
- ), nt = se(
586
+ ), nt = re(
587
587
  (f) => {
588
- const L = Ne.find((oe) => oe.key === f);
588
+ const L = Ne.find((se) => se.key === f);
589
589
  if (!L)
590
590
  return;
591
591
  const { startDate: O, endDate: R } = L;
592
592
  c == null || c.report({
593
- action: te.CLICK,
594
- component: Q.SLOT,
593
+ action: ne.CLICK,
594
+ component: J.SLOT,
595
595
  startTime: new Date(O).valueOf(),
596
596
  endTime: new Date(R).valueOf()
597
597
  }), b == null || b({
@@ -607,28 +607,28 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
607
607
  b,
608
608
  c
609
609
  ]
610
- ), at = se(() => {
610
+ ), at = re(() => {
611
611
  if (!ye)
612
612
  return;
613
- const f = k || V;
613
+ const f = k || q;
614
614
  c == null || c.report({
615
- action: te.CLICK,
616
- component: Q.SHOW_MORE
615
+ action: ne.CLICK,
616
+ component: J.SHOW_MORE
617
617
  }), y(f), n({
618
- currentSlotBulkSize: f + V
618
+ currentSlotBulkSize: f + q
619
619
  });
620
620
  }, [
621
621
  ye,
622
622
  k,
623
623
  c
624
- ]), ot = se(() => y(void 0), []), st = B(() => {
624
+ ]), ot = re(() => y(void 0), []), st = B(() => {
625
625
  if (Se)
626
626
  return i("form.appointment.empty-state.notification.text");
627
- if (!Z && !D && !(A != null && A.length))
627
+ if (!V && !D && !(A != null && A.length))
628
628
  return i("form.appointment.slots-not-found.text");
629
629
  }, [
630
630
  Se,
631
- Z,
631
+ V,
632
632
  D,
633
633
  A == null ? void 0 : A.length,
634
634
  i
@@ -644,13 +644,13 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
644
644
  canGoToPreviousWeek: Ae,
645
645
  hasMoreSlots: ye,
646
646
  hasError: Se,
647
- isLoading: Z,
648
- isRefetching: X,
647
+ isLoading: V,
648
+ isRefetching: ee,
649
649
  isReloadingSlots: D,
650
- weekRangeLabel: ln(h, ee(h, q - 1), a),
650
+ weekRangeLabel: ln(h, te(h, j - 1), a),
651
651
  weekCaptionLabel: Gt({
652
652
  startOfWeek: h,
653
- endOfWeek: ee(h, q - 1)
653
+ endOfWeek: te(h, j - 1)
654
654
  }, a),
655
655
  selectedDateLabel: Xt({
656
656
  selectedDate: p,
@@ -675,7 +675,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
675
675
  throw new Error("Appointment parts must be used inside an <Appointment> component");
676
676
  return e;
677
677
  }, Re = () => {
678
- const { disabled: e, readOnly: t } = re();
678
+ const { disabled: e, readOnly: t } = ie();
679
679
  return !!e || !!t;
680
680
  }, C = ({ children: e, className: t }) => {
681
681
  const { days: n, selectDate: a, weekRangeLabel: s } = F(), r = T(e, C.PreviousWeek), i = T(e, C.Heading), l = T(e, C.NextWeek), c = T(e, C.Day) ?? /* @__PURE__ */ o.createElement(C.Day, null), D = B(() => n.filter((d) => d.isSelected).map((d) => d.key), [
@@ -705,7 +705,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
705
705
  day: d
706
706
  }))));
707
707
  }, un = ({ children: e, className: t }) => {
708
- const { changeWeek: n, canGoToPreviousWeek: a, previousWeekLabel: s, nextWeekLabel: r } = F(), i = Re(), l = J(null), c = J(!1);
708
+ const { changeWeek: n, canGoToPreviousWeek: a, previousWeekLabel: s, nextWeekLabel: r } = F(), i = Re(), l = X(null), c = X(!1);
709
709
  return P(() => {
710
710
  var S, E, d;
711
711
  if (a || !c.current)
@@ -768,21 +768,25 @@ C.Heading = fn;
768
768
  C.NextWeek = dn;
769
769
  C.Day = Dn;
770
770
  const Ye = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) => {
771
- const { hasTimezoneNote: a, hasDateTitle: s } = n, { slots: r, selectedSlotKey: i, selectSlot: l, selectedDateLabel: c, isReloadingSlots: D, timezoneLabel: u, pendingFocusIndex: S, consumePendingFocusIndex: E } = F(), { id: d, disabled: g, readOnly: M, required: y, hasError: b } = re(), { inputId: I, labelId: U, ariaDescribedBy: x } = ie(), H = J(null), Y = T(e, fe.Slot) ?? /* @__PURE__ */ o.createElement(fe.Slot, null), ae = !!s && !!c, $ = [
771
+ const { hasTimezoneNote: a, hasDateTitle: s } = n, { slots: r, selectedSlotKey: i, selectSlot: l, selectedDateLabel: c, isReloadingSlots: D, timezoneLabel: u, pendingFocusIndex: S, consumePendingFocusIndex: E } = F(), { id: d, disabled: g, readOnly: M, required: y, hasError: b } = ie(), { inputId: I, labelId: U, ariaDescribedBy: x } = le(), H = X(null), Y = T(e, fe.Slot) ?? /* @__PURE__ */ o.createElement(fe.Slot, null), oe = !!s && !!c, $ = [
772
772
  x,
773
773
  a && u ? Qe(I) : void 0
774
- ].filter(Boolean).join(" ") || void 0, w = (_) => {
775
- var p, k, G;
776
- (G = (k = (p = H.current) == null ? void 0 : p.querySelectorAll(Ye)) == null ? void 0 : k[_]) == null || G.focus();
774
+ ].filter(Boolean).join(" ") || void 0, w = (_, p) => {
775
+ var k, G, Z;
776
+ (Z = (G = (k = H.current) == null ? void 0 : k.querySelectorAll(Ye)) == null ? void 0 : G[_]) == null || Z.focus(p);
777
777
  };
778
778
  return ft(() => {
779
- var G, le;
779
+ var G, Z;
780
780
  if (!!((G = H.current) != null && G.querySelector(Ye))) {
781
- w(0);
781
+ w(0, {
782
+ preventScroll: !0
783
+ });
782
784
  return;
783
785
  }
784
- const p = Array.from(((le = document.getElementById(I)) == null ? void 0 : le.querySelectorAll('[role="option"]')) ?? []), k = p.find((K) => K.getAttribute("aria-selected") === "true") ?? p.find((K) => K.getAttribute("aria-disabled") !== "true");
785
- k == null || k.focus();
786
+ const p = Array.from(((Z = document.getElementById(I)) == null ? void 0 : Z.querySelectorAll('[role="option"]')) ?? []), k = p.find((K) => K.getAttribute("aria-selected") === "true") ?? p.find((K) => K.getAttribute("aria-disabled") !== "true");
787
+ k == null || k.focus({
788
+ preventScroll: !0
789
+ });
786
790
  }, d), P(() => {
787
791
  S !== void 0 && (w(S), E());
788
792
  }, [
@@ -800,7 +804,7 @@ const Ye = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) =>
800
804
  isReadOnly: M,
801
805
  isRequired: y,
802
806
  isInvalid: b,
803
- "aria-labelledby": ae ? Je(I) : U,
807
+ "aria-labelledby": oe ? Je(I) : U,
804
808
  "aria-describedby": $,
805
809
  "data-refetch": D || void 0
806
810
  }, r.map((_) => Ee(Y, {
@@ -818,7 +822,7 @@ const Ye = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) =>
818
822
  };
819
823
  fe.Slot = En;
820
824
  const m = ({ children: e, className: t }) => {
821
- const n = re(), { id: a, FieldLayout: s } = n, { labelId: r, inputId: i, ariaDescribedBy: l } = ie(), c = Dt(Et.APPOINTMENT), D = B(() => ({
825
+ const n = ie(), { id: a, FieldLayout: s } = n, { labelId: r, inputId: i, ariaDescribedBy: l } = le(), c = Dt(Et.APPOINTMENT), D = B(() => ({
822
826
  ...n,
823
827
  initialData: c,
824
828
  inputId: i,
@@ -848,7 +852,7 @@ const m = ({ children: e, className: t }) => {
848
852
  }, Sn = {
849
853
  visibility: "hidden"
850
854
  }, _n = ({ children: e, className: t }) => {
851
- const { required: n, onFocus: a, onBlur: s } = re(), { inputId: r, labelId: i, ariaDescribedBy: l } = ie(), c = mn(), D = T(e, m.Loader), u = T(e, m.Notification), S = T(e, m.Dates), E = T(e, m.Timezone), d = T(e, m.Format), g = T(e, m.DateTitle), M = T(e, m.Slots), y = T(e, m.ShowMoreSlots);
855
+ const { required: n, onFocus: a, onBlur: s } = ie(), { inputId: r, labelId: i, ariaDescribedBy: l } = le(), c = mn(), D = T(e, m.Loader), u = T(e, m.Notification), S = T(e, m.Dates), E = T(e, m.Timezone), d = T(e, m.Format), g = T(e, m.DateTitle), M = T(e, m.Slots), y = T(e, m.ShowMoreSlots);
852
856
  return /* @__PURE__ */ o.createElement(je.Provider, {
853
857
  value: c
854
858
  }, /* @__PURE__ */ o.createElement(Ct, {
@@ -883,7 +887,7 @@ const m = ({ children: e, className: t }) => {
883
887
  message: n
884
888
  }) : n) : null;
885
889
  }, yn = ({ children: e, className: t }) => {
886
- const { timezoneLabel: n } = F(), { inputId: a } = ie();
890
+ const { timezoneLabel: n } = F(), { inputId: a } = le();
887
891
  return n ? /* @__PURE__ */ o.createElement("span", {
888
892
  id: Qe(a),
889
893
  className: t
@@ -898,7 +902,7 @@ const m = ({ children: e, className: t }) => {
898
902
  label: n
899
903
  }) : n) : null;
900
904
  }, bn = ({ children: e, className: t }) => {
901
- const { selectedDateLabel: n } = F(), { inputId: a } = ie();
905
+ const { selectedDateLabel: n } = F(), { inputId: a } = le();
902
906
  return n ? /* @__PURE__ */ o.createElement("div", {
903
907
  id: Je(a),
904
908
  className: t
@@ -906,7 +910,7 @@ const m = ({ children: e, className: t }) => {
906
910
  label: n
907
911
  }) : n) : null;
908
912
  }, In = ({ children: e, className: t }) => {
909
- const { hasMoreSlots: n, showMoreSlots: a, showMoreSlotsLabel: s } = F(), { disabled: r, readOnly: i } = re();
913
+ const { hasMoreSlots: n, showMoreSlots: a, showMoreSlotsLabel: s } = F(), { disabled: r, readOnly: i } = ie();
910
914
  return n ? /* @__PURE__ */ o.createElement(ve, {
911
915
  className: t,
912
916
  isDisabled: !!r || !!i,
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { M as o } from "./multiline-address-field-rac-C6xaqNOk.js";
2
+ import { M as o } from "./multiline-address-field-rac-BVAv1w9F.js";
3
3
  const s = () => /* @__PURE__ */ e.createElement(o, null);
4
4
  export {
5
5
  s as BookingsAddressRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { E as e } from "./email-input-field-rac-CunXRyc5.js";
2
+ import { E as e } from "./email-input-field-rac-8Qn3yskh.js";
3
3
  const m = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  m as BookingsEmailRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-Da3_wTdh.js";
2
+ import { T as e } from "./text-input-field-rac-BmQlXTK9.js";
3
3
  const m = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  m as BookingsFirstNameRAC
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { H as r } from "./header-field-rac-CwmVpz3r.js";
2
+ import { H as r } from "./header-field-rac-nELbyGjP.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, {
4
4
  truncate: !1
5
5
  });
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-Da3_wTdh.js";
2
+ import { T as e } from "./text-input-field-rac-BmQlXTK9.js";
3
3
  const m = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  m as BookingsLastNameRAC
@@ -1,6 +1,6 @@
1
1
  import o from "react";
2
2
  import E from "classnames";
3
- import { bo as d, by as b, bg as f, bk as x, Q as p } from "./form-DHAKwnLt.js";
3
+ import { bo as d, by as b, bg as f, bk as x, Q as p } from "./form-DhIEC3nB.js";
4
4
  import { Button as L } from "react-aria-components";
5
5
  import { a as m, f as g } from "./find-child-C60k4CxG.js";
6
6
  const l = ({ children: n }) => {
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { P as e } from "./phone-input-field-rac-32qUvCsC.js";
2
+ import { P as e } from "./phone-input-field-rac-XIPkH8Fb.js";
3
3
  const r = () => /* @__PURE__ */ o.createElement(e, null);
4
4
  export {
5
5
  r as BookingsPhoneRAC
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { R as t } from "./rich-text-field-rac-COEUwoXQ.js";
2
+ import { R as t } from "./rich-text-field-rac-T4NoShC0.js";
3
3
  const c = () => /* @__PURE__ */ e.createElement(t, {
4
4
  truncate: !1
5
5
  });
@@ -2,16 +2,16 @@ import { RicosViewer as Xn } from "@wix/ricos/viewer";
2
2
  import U from "classnames";
3
3
  import b, { useMemo as $n, useRef as Jn, useCallback as Yn } from "react";
4
4
  import { CheckboxField as Qn, CheckboxButton as Zn } from "react-aria-components";
5
- import { aY as ei, bo as Zr, aG as Qr, aF as fn, by as ri, bg as ti, b4 as ai, bl as ni, bq as ii, n as si, a0 as oi, s as ui, aB as ci, H as fi, v as li, r as _i } from "./form-DHAKwnLt.js";
5
+ import { aY as ei, bo as Zr, aG as Qr, aF as fn, by as ri, bg as ti, b4 as ai, bl as ni, bq as ii, n as si, a0 as oi, s as ui, aB as ci, H as fi, v as li, r as _i } from "./form-DhIEC3nB.js";
6
6
  import { f as W, a as vi } from "./find-child-C60k4CxG.js";
7
- import { D as hi, E as pi } from "./field-error-headless-E8WjFr_n.js";
7
+ import { D as hi, E as pi } from "./field-error-headless-RylIeqXr.js";
8
8
  import { Node_Type as di } from "@wix/ricos/schema";
9
- import { c as re, r as $, e as S, a as J, d as yi, b as bi } from "./isObjectLike-DHcMRYYH.js";
9
+ import { c as re, r as $, e as S, a as J, d as yi, b as bi } from "./isObjectLike-Bf577MHV.js";
10
10
  import { S as gi } from "./selection-indicator-XQ8MYHUQ.js";
11
11
  import { E as qi } from "./error-icon-hZxQ6DEy.js";
12
- import { C as Ci } from "./checkbox-indicator-module-classes-6173wvuW.js";
13
- import { s as oe } from "./field-rac.module-DfEb7pBp.js";
14
- import { u as Ai } from "./use-element-state-class-name-CUZuhFvZ.js";
12
+ import { C as Ci } from "./checkbox-indicator-module-classes-akWZsZNn.js";
13
+ import { s as oe } from "./field-rac.module-DP0lkkEv.js";
14
+ import { u as Ai } from "./use-element-state-class-name-DJx-T0zf.js";
15
15
  var ue, dt;
16
16
  function mi() {
17
17
  if (dt) return ue;
@@ -1254,7 +1254,9 @@ const Bs = /* @__PURE__ */ ei(Ks), ks = (e, r, t) => {
1254
1254
  const { id: t, value: a, onChange: n, disabled: i, required: s, readOnly: o, onBlur: u, onFocus: c, hasError: v } = Zr(), { inputId: _, ariaDescribedBy: p } = ni(), y = Jn(null);
1255
1255
  ii(() => {
1256
1256
  var g;
1257
- (g = y.current) == null || g.focus();
1257
+ (g = y.current) == null || g.focus({
1258
+ preventScroll: !0
1259
+ });
1258
1260
  }, t);
1259
1261
  const q = W(e, X.RichTextLabel), C = W(e, X.Input), m = Yn((g) => {
1260
1262
  n(g);
@@ -1,10 +1,10 @@
1
1
  import r, { useMemo as y, useCallback as $, useRef as w, useState as W, useEffect as A } from "react";
2
2
  import { CheckboxGroup as M, CheckboxField as j, CheckboxButton as z, TextField as J, Input as K } from "react-aria-components";
3
3
  import { debounce as Q } from "ts-debounce";
4
- import { bo as R, bl as U, by as X, bq as Y } from "./form-DHAKwnLt.js";
4
+ import { bo as R, bl as U, by as X, bq as Y } from "./form-DhIEC3nB.js";
5
5
  import { f as I, a as F } from "./find-child-C60k4CxG.js";
6
- import { D as Z, E as ee } from "./field-error-headless-E8WjFr_n.js";
7
- import { L as te } from "./field-label-headless-BakLOu5E.js";
6
+ import { D as Z, E as ee } from "./field-error-headless-RylIeqXr.js";
7
+ import { L as te } from "./field-label-headless-d3hZxIEc.js";
8
8
  import { F as ae } from "./fieldset-headless-CD3fds9J.js";
9
9
  import { S as ne } from "./selection-indicator-XQ8MYHUQ.js";
10
10
  const B = "Other", le = (e, t) => e.some((o) => !t.includes(o)), N = (e, t) => e.length > 0 && le(e, t), se = (e, t) => {
@@ -1,14 +1,14 @@
1
1
  import { RicosViewer as m } from "@wix/ricos/viewer";
2
2
  import a from "classnames";
3
3
  import e from "react";
4
- import { C as t } from "./checkbox-group-field-headless-BxBaMg29.js";
4
+ import { C as t } from "./checkbox-group-field-headless-XPtqS8Km.js";
5
5
  import { E as n } from "./error-icon-hZxQ6DEy.js";
6
- import { C as c } from "./checkbox-indicator-module-classes-6173wvuW.js";
7
- import { s } from "./field-rac.module-DfEb7pBp.js";
8
- import { S as i, a0 as E, o as p, q as C, H as O, v as _, p as I } from "./form-DHAKwnLt.js";
6
+ import { C as c } from "./checkbox-indicator-module-classes-akWZsZNn.js";
7
+ import { s } from "./field-rac.module-DP0lkkEv.js";
8
+ import { S as i, a0 as E, o as p, q as C, H as O, v as _, p as I } from "./form-DhIEC3nB.js";
9
9
  import { o as l } from "./options-rac.module-_THNq6Qq.js";
10
- import { u as L } from "./use-element-state-class-name-CUZuhFvZ.js";
11
- import { u as R } from "./use-text-input-class-name-wp9dzpEy.js";
10
+ import { u as L } from "./use-element-state-class-name-DJx-T0zf.js";
11
+ import { u as R } from "./use-text-input-class-name-CrEjJ2Z8.js";
12
12
  const u = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(m, {
13
13
  content: o,
14
14
  locale: r
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { C as o } from "./checkbox-group-field-rac-CRRP03Qk.js";
2
+ import { C as o } from "./checkbox-group-field-rac-C_58XfQt.js";
3
3
  const c = () => /* @__PURE__ */ e.createElement(o, null);
4
4
  export {
5
5
  c as CheckboxGroupRAC
@@ -1,4 +1,4 @@
1
- import { s as e } from "./field-rac.module-DfEb7pBp.js";
1
+ import { s as e } from "./field-rac.module-DP0lkkEv.js";
2
2
  const o = {
3
3
  base: e.checkboxInput,
4
4
  selected: e.checkboxInputSelected,
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { C as o } from "./checkbox-field-rac-DEa78Tpf.js";
2
+ import { C as o } from "./checkbox-field-rac-CMaVxLNe.js";
3
3
  const c = () => /* @__PURE__ */ e.createElement(o, null);
4
4
  export {
5
5
  c as CheckboxRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-Da3_wTdh.js";
2
+ import { T as e } from "./text-input-field-rac-BmQlXTK9.js";
3
3
  const n = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  n as ContactsAddressRAC