@wix/form-elements 1.133.0 → 1.134.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 (114) hide show
  1. package/dist/component/{appointment-rac-D0mwr3TL.js → appointment-rac-CZHb5jGz.js} +246 -246
  2. package/dist/component/{bookings-address-rac-BEnmwXax.js → bookings-address-rac-F39MfGmX.js} +1 -1
  3. package/dist/component/{bookings-email-rac-D56j9PXc.js → bookings-email-rac-D4CurQjr.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-xu3S-ih_.js → bookings-first-name-rac-Bz9o1eLl.js} +1 -1
  5. package/dist/component/{bookings-header-rac-hfBabv7v.js → bookings-header-rac-6mfX0WGf.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-6bMvN0Cm.js → bookings-last-name-rac-CD1-B7Ao.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DE70Omwf.js → bookings-login-bar-rac-2eQkfhBb.js} +17 -17
  8. package/dist/component/{bookings-phone-rac-D_EHRAiU.js → bookings-phone-rac-X6sSnHiH.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-BxgI9Zt6.js → bookings-rich-text-rac-f2artJnn.js} +1 -1
  10. package/dist/component/{calendar.module-DnhTT4QT.js → calendar.module-CKCBG_Pg.js} +11 -11
  11. package/dist/component/{checkbox-field-rac-BLDUOAXM.js → checkbox-field-rac-DoZ9bcw3.js} +26 -25
  12. package/dist/component/{checkbox-group-field-headless-CugSJIBp.js → checkbox-group-field-headless-B-d37T4z.js} +32 -31
  13. package/dist/component/{checkbox-group-field-rac-D4m9SmRX.js → checkbox-group-field-rac-0qYHz3g1.js} +6 -6
  14. package/dist/component/{checkbox-group-rac-BYqEsCwa.js → checkbox-group-rac-BqUJdAju.js} +1 -1
  15. package/dist/component/{checkbox-indicator-module-classes-zXKP5rD4.js → checkbox-indicator-module-classes-6173wvuW.js} +1 -1
  16. package/dist/component/{checkbox-rac-DkIBUAN7.js → checkbox-rac-BN-qNzpH.js} +1 -1
  17. package/dist/component/{contacts-address-rac-D1tzbiTM.js → contacts-address-rac-B7vWOTFf.js} +1 -1
  18. package/dist/component/{contacts-birthdate-rac-DO-1xG0u.js → contacts-birthdate-rac-Dl0OatzW.js} +1 -1
  19. package/dist/component/{contacts-company-rac-CzJK3YIo.js → contacts-company-rac-DIeGU0Bf.js} +1 -1
  20. package/dist/component/{contacts-email-rac-DLvMErBI.js → contacts-email-rac-BCH6ogWv.js} +1 -1
  21. package/dist/component/{contacts-first-name-rac-3RcSXL0h.js → contacts-first-name-rac-Cx-USWmx.js} +1 -1
  22. package/dist/component/{contacts-last-name-rac-BYoSi_QX.js → contacts-last-name-rac-CUZdJI9J.js} +1 -1
  23. package/dist/component/{contacts-phone-rac-DMYn0orB.js → contacts-phone-rac-hNCW_2UC.js} +1 -1
  24. package/dist/component/{contacts-position-rac-K1R6ihXo.js → contacts-position-rac-CJfOgxZc.js} +1 -1
  25. package/dist/component/{contacts-subscribe-rac-DsWNSH6t.js → contacts-subscribe-rac-69721_c9.js} +1 -1
  26. package/dist/component/{contacts-tax-id-rac-D7NjPiRf.js → contacts-tax-id-rac-CXXBqWIm.js} +1 -1
  27. package/dist/component/{date-availability-D3n6-g3h.js → date-availability-NQGPIrdZ.js} +1 -1
  28. package/dist/component/{date-input-field-rac-SyAmInlu.js → date-input-field-rac-C-we-suG.js} +60 -60
  29. package/dist/component/{date-input-rac-BQNOsWz1.js → date-input-rac-Cif7Bqxc.js} +1 -1
  30. package/dist/component/{date-picker-field-rac-DO1epod7.js → date-picker-field-rac-CHDkTXVH.js} +63 -63
  31. package/dist/component/{date-picker-rac-DQElftUu.js → date-picker-rac-DdhgbY6W.js} +1 -1
  32. package/dist/component/{date-time-input-field-rac-CV5wZSXO.js → date-time-input-field-rac-BjtDbiqE.js} +7 -7
  33. package/dist/component/{date-time-input-rac-DvHwpjnk.js → date-time-input-rac-BDP5SN-i.js} +1 -1
  34. package/dist/component/{dext-checkbox-group-rac-BfcKoslb.js → dext-checkbox-group-rac-CkF41kIR.js} +2 -2
  35. package/dist/component/{dext-checkbox-rac-DhadtXb5.js → dext-checkbox-rac-DjYpsxmq.js} +1 -1
  36. package/dist/component/{dext-date-picker-rac-0Dmo3mrG.js → dext-date-picker-rac-BxXZLogr.js} +1 -1
  37. package/dist/component/{dext-date-time-input-rac-Cnh7Aqiq.js → dext-date-time-input-rac-e4y_JjEx.js} +1 -1
  38. package/dist/component/{dext-dropdown-rac-CajXcYsB.js → dext-dropdown-rac-DsjB3ZX7.js} +1 -1
  39. package/dist/component/{dext-email-rac-DynJaiZt.js → dext-email-rac-ClPp1g4D.js} +1 -1
  40. package/dist/component/{dext-number-input-rac-LmTKwb80.js → dext-number-input-rac-D2nZNzyN.js} +1 -1
  41. package/dist/component/{dext-phone-rac-Cw2roq1_.js → dext-phone-rac-PNiQZ-Lr.js} +1 -1
  42. package/dist/component/{dext-radio-group-rac-CaNZJrkc.js → dext-radio-group-rac-DUltmMHM.js} +2 -2
  43. package/dist/component/{dext-rating-input-rac-CAL1jb0q.js → dext-rating-input-rac-C_apsfGT.js} +1 -1
  44. package/dist/component/{dext-tags-rac-BOp_amVK.js → dext-tags-rac-DkB_CmOD.js} +2 -2
  45. package/dist/component/{dext-text-area-rac-6DYTHIeh.js → dext-text-area-rac-CfoIK0S7.js} +1 -1
  46. package/dist/component/{dext-text-input-rac-CDWthvV3.js → dext-text-input-rac-CIOXlk6U.js} +1 -1
  47. package/dist/component/{dext-url-input-rac-CsS4NPYO.js → dext-url-input-rac-UHJAs3ck.js} +1 -1
  48. package/dist/component/{donation-rac-B7lFkotu.js → donation-rac-BJfvVi_d.js} +7 -10
  49. package/dist/component/{dropdown-field-headless-ajQghLaj.js → dropdown-field-headless-0DB-T-3t.js} +5 -5
  50. package/dist/component/{dropdown-field-rac-Bf5LQqSL.js → dropdown-field-rac-DB-pd2a8.js} +5 -5
  51. package/dist/component/{dropdown-rac-CJmA_ePl.js → dropdown-rac-4T4zRBVy.js} +1 -1
  52. package/dist/component/{ecom-address-rac-B49ZP2qc.js → ecom-address-rac-BjWD1sRX.js} +1 -1
  53. package/dist/component/{ecom-subscription-checkbox-rac-C8qImtxo.js → ecom-subscription-checkbox-rac-CYCufut6.js} +2 -2
  54. package/dist/component/{email-input-field-rac-B_bEWp5N.js → email-input-field-rac-DlLoY9jB.js} +4 -4
  55. package/dist/component/{events-repeater-rac-DXxqmIBX.js → events-repeater-rac-CPHJbWcZ.js} +48 -47
  56. package/dist/component/{events-rsvp-rac-BaJQLSv3.js → events-rsvp-rac-NXf8Fv3A.js} +4 -4
  57. package/dist/component/{field-error-headless-BxEFPwKI.js → field-error-headless-C-wyL0uw.js} +1 -1
  58. package/dist/component/{field-label-headless-5mewgrhq.js → field-label-headless-32mvEUId.js} +1 -1
  59. package/dist/component/field-rac.module-DfEb7pBp.js +25 -0
  60. package/dist/component/file-upload-rac-BicD_Bhj.js +566 -0
  61. package/dist/component/{fixed-payment-rac-S68bqvbB.js → fixed-payment-rac-DxHalHUv.js} +4 -4
  62. package/dist/component/{form-CPY-PtxT.js → form-B2wZnWX9.js} +69 -69
  63. package/dist/component/form.css +1 -1
  64. package/dist/component/form.js +1 -1
  65. package/dist/component/{header-field-rac-r6dYbnvA.js → header-field-rac-C47Te_oW.js} +2 -2
  66. package/dist/component/{header-rac-C9gaKsaE.js → header-rac-ChDYKTx5.js} +1 -1
  67. package/dist/component/{image-choice-rac-BbES5dAK.js → image-choice-rac-CqTBWpcY.js} +42 -45
  68. package/dist/component/{index-o-TpCHqo.js → index-BF_Aifc-.js} +4 -4
  69. package/dist/component/{index-C6zuIVeJ.js → index-Br8x_xx8.js} +2 -2
  70. package/dist/component/{isObjectLike-BSRiBVs9.js → isObjectLike-D4VXbd0T.js} +1 -1
  71. package/dist/component/{multiline-address-field-rac-BfVIiFyM.js → multiline-address-field-rac-DYcfzGJb.js} +8 -8
  72. package/dist/component/{multiline-address-rac-BOKBExhi.js → multiline-address-rac-DcGDGyL-.js} +1 -1
  73. package/dist/component/{number-input-field-rac-BRKFm8aA.js → number-input-field-rac-C_Fh8oeD.js} +5 -5
  74. package/dist/component/{number-input-rac-BNbCCb-g.js → number-input-rac-J2tCaAYx.js} +1 -1
  75. package/dist/component/{password-rac-BygVJf7f.js → password-rac-wlfBhft8.js} +5 -5
  76. package/dist/component/{payment-input-rac-CoMbHcHG.js → payment-input-rac-DKxy3uE0.js} +5 -5
  77. package/dist/component/{phone-input-field-rac-dFjxptEr.js → phone-input-field-rac-ClXUOLpB.js} +28 -29
  78. package/dist/component/{phone-rac-Dup3AP9J.js → phone-rac-D0-Poz1e.js} +1 -1
  79. package/dist/component/{product-list-rac-B62mNB_W.js → product-list-rac-TF5fgLyc.js} +69 -68
  80. package/dist/component/{quiz-radio-group-rac-DPMhDtr7.js → quiz-radio-group-rac-BX4V_6wg.js} +1 -1
  81. package/dist/component/{radio-button-module-classes-BMvPai_6.js → radio-button-module-classes-D8UpzVUK.js} +18 -17
  82. package/dist/component/{radio-group-field-rac-DPt2Zl4G.js → radio-group-field-rac-C0zCVtjj.js} +5 -5
  83. package/dist/component/{radio-group-rac-BZyGqFzr.js → radio-group-rac-DrKqgPRT.js} +1 -1
  84. package/dist/component/{rating-input-field-rac-C3E0KzV-.js → rating-input-field-rac-DjxfTgv5.js} +35 -33
  85. package/dist/component/{rating-input-rac-BKLz4l_D.js → rating-input-rac-DO4Bpdj3.js} +1 -1
  86. package/dist/component/{rich-content-rac.module-CQ1qa_zz.js → rich-content-rac.module-DUNKiTkT.js} +1 -1
  87. package/dist/component/{rich-text-field-rac-BfdA5KNz.js → rich-text-field-rac-DIOTzVwj.js} +2 -2
  88. package/dist/component/{rich-text-rac-BFbhfFuF.js → rich-text-rac-C_E_vEGz.js} +1 -1
  89. package/dist/component/{service-dropdown-rac-VulpHBki.js → service-dropdown-rac-B3gQT9Tj.js} +6 -6
  90. package/dist/component/{services-multi-choice-rac-CIx5UpfD.js → services-multi-choice-rac-D40hZhBB.js} +7 -7
  91. package/dist/component/{signature-rac-BdxMBfl9.js → signature-rac-CKXpb2WN.js} +269 -264
  92. package/dist/component/{submit-button-rac-CkuWGEyL.js → submit-button-rac-CDS-vtXq.js} +2 -2
  93. package/dist/component/{tags-field-rac-DKo_Yb5i.js → tags-field-rac-CdQWq8k5.js} +54 -57
  94. package/dist/component/{tags-rac-BimVd3ym.js → tags-rac-BwChqdGx.js} +1 -1
  95. package/dist/component/{text-area-field-rac-DEiLtCnb.js → text-area-field-rac-VCFJuHx4.js} +5 -5
  96. package/dist/component/{text-area-rac-CHZtsq0f.js → text-area-rac-BICVNsdn.js} +1 -1
  97. package/dist/component/{text-input-field-rac-CSHvUtRG.js → text-input-field-rac-C9gyRhcK.js} +4 -4
  98. package/dist/component/{text-input-headless-BYcExFPS.js → text-input-headless-BdkaD-re.js} +3 -3
  99. package/dist/component/{text-input-rac-D-R9btYo.js → text-input-rac-B7buOGbq.js} +1 -1
  100. package/dist/component/{time-input-rac-wkHemVzj.js → time-input-rac-CSFhEYi0.js} +5 -5
  101. package/dist/component/{url-input-field-rac-KJEcLyFk.js → url-input-field-rac-BIXokgHy.js} +5 -5
  102. package/dist/component/{url-input-rac-JFfEH389.js → url-input-rac-tTN0GaTH.js} +1 -1
  103. package/dist/component/{use-dropdown-option-class-name-BetaTWbW.js → use-dropdown-option-class-name-C6zB6TNA.js} +3 -3
  104. package/dist/component/{use-dropdown-trigger-class-name-C0ffAjFn.js → use-dropdown-trigger-class-name-CEq68SuK.js} +2 -2
  105. package/dist/component/use-element-state-class-name-BFZzVwqe.js +23 -0
  106. package/dist/component/use-hoverable-input-class-name-CzZmczhf.js +25 -0
  107. package/dist/component/{use-service-options-base-q0JTA7UI.js → use-service-options-base-DOCVW9ax.js} +1 -1
  108. package/dist/component/use-text-input-class-name-BNX3qkmh.js +6 -0
  109. package/package.json +2 -2
  110. package/dist/component/field-rac.module-BGN-O8tV.js +0 -25
  111. package/dist/component/file-upload-rac-D9Z1Cumr.js +0 -562
  112. package/dist/component/use-element-state-class-name-BOks3she.js +0 -20
  113. package/dist/component/use-hoverable-input-class-name-jxtCw16L.js +0 -23
  114. package/dist/component/use-text-input-class-name-CTa0bC4T.js +0 -6
@@ -1,21 +1,21 @@
1
- import o, { useRef as X, useState as Q, useEffect as H, createContext as Ke, useContext as $e, useMemo as P, useCallback as ie } from "react";
1
+ import s, { useRef as X, useState as Q, useEffect as H, createContext as Ke, useContext as $e, useMemo as P, useCallback as ie } from "react";
2
2
  import { RicosViewer as rt } from "@wix/ricos/viewer";
3
- import w from "classnames";
3
+ import R from "classnames";
4
4
  import { C as Me } from "./chevron-down-icon-CcpVm6B-.js";
5
5
  import { E as it } from "./error-icon-hZxQ6DEy.js";
6
- import { g as lt, c as Ce } from "./calendar.module-DnhTT4QT.js";
6
+ import { g as lt, c as Ce } from "./calendar.module-CKCBG_Pg.js";
7
7
  import { H as ue } from "./custom-focus-class-_483Pkwp.js";
8
- import { s as de } from "./field-rac.module-BGN-O8tV.js";
9
- import { b9 as De, b8 as ct, bd as Te, br as mt, bq as ut, bh as ce, be as Ee, bj as dt, bg as ft, F as Dt, I as Et, U as St, g as pt, G as We, o as _t, V as yt, v as Lt, p as At, a6 as Nt } from "./form-CPY-PtxT.js";
10
- import { u as bt } from "./use-element-state-class-name-BOks3she.js";
11
- import { ListBox as It, Button as ke, ListBoxItem as Ot, RadioGroup as gt, RadioField as Tt, RadioButton as kt } from "react-aria-components";
8
+ import { s as de } from "./field-rac.module-DfEb7pBp.js";
9
+ import { b9 as De, b8 as ct, bd as Te, br as mt, bq as ut, bh as ce, be as Ee, bj as dt, bg as ft, F as Dt, I as Et, U as St, g as yt, G as We, o as pt, V as _t, v as Lt, p as At, a6 as Nt } from "./form-B2wZnWX9.js";
10
+ import { u as bt } from "./use-element-state-class-name-BFZzVwqe.js";
11
+ import { ListBox as It, Button as he, ListBoxItem as Ot, RadioGroup as gt, RadioField as Tt, RadioButton as ht } from "react-aria-components";
12
12
  import { f as T, a as le } from "./find-child-C60k4CxG.js";
13
- import { D as vt, E as Rt } from "./field-error-headless-BxEFPwKI.js";
14
- import { L as wt } from "./field-label-headless-5mewgrhq.js";
15
- import { F as Ft } from "./fieldset-headless-CD3fds9J.js";
13
+ import { D as vt, E as kt } from "./field-error-headless-C-wyL0uw.js";
14
+ import { L as Rt } from "./field-label-headless-32mvEUId.js";
15
+ import { F as wt } from "./fieldset-headless-CD3fds9J.js";
16
16
  import "date-fns";
17
17
  import { V as Ge } from "./headless-styles-CmcyA_pi.js";
18
- function ht(e) {
18
+ function Ft(e) {
19
19
  return { evid: 40, src: 16, endpoint: "", params: e };
20
20
  }
21
21
  var Ie = /* @__PURE__ */ (function(e) {
@@ -47,11 +47,11 @@ const Mt = (e) => {
47
47
  });
48
48
  }, Ze = (e) => {
49
49
  var l;
50
- const { appointmentFieldProps: t } = ve(), { isEditor: n, isComposer: a } = De(), s = ct(), r = e || ((l = t == null ? void 0 : t.initialData) == null ? void 0 : l.service);
50
+ const { appointmentFieldProps: t } = ve(), { isEditor: n, isComposer: a } = De(), o = ct(), r = e || ((l = t == null ? void 0 : t.initialData) == null ? void 0 : l.service);
51
51
  if (!(n || a))
52
52
  return {
53
- ...s,
54
- report: (i) => s == null ? void 0 : s.report(ht({
53
+ ...o,
54
+ report: (i) => o == null ? void 0 : o.report(Ft({
55
55
  ...Mt(r),
56
56
  ...i
57
57
  }))
@@ -84,10 +84,10 @@ const Wt = (e) => {
84
84
  message: "Service ID is missing"
85
85
  };
86
86
  }, Bt = ({ appointmentFieldProps: e, isEditor: t, isComposer: n }) => {
87
- const { initialData: a } = e, s = Pt();
87
+ const { initialData: a } = e, o = Pt();
88
88
  if (t || n)
89
89
  return {
90
- ...s,
90
+ ...o,
91
91
  timezone: Ve(),
92
92
  dataStatus: z.DONE
93
93
  };
@@ -100,19 +100,19 @@ const Wt = (e) => {
100
100
  };
101
101
  }
102
102
  return {
103
- ...s,
103
+ ...o,
104
104
  dataStatus: z.LOADING
105
105
  };
106
106
  }, Ut = (e, t) => {
107
107
  const n = /* @__PURE__ */ new Date(), a = new Date(n);
108
108
  a.setMonth(a.getMonth() + e);
109
- const s = new Date(n.toLocaleString("en-US", {
109
+ const o = new Date(n.toLocaleString("en-US", {
110
110
  timeZone: t
111
111
  })), r = new Date(a.toLocaleString("en-US", {
112
112
  timeZone: t
113
113
  }));
114
114
  return {
115
- startDate: s,
115
+ startDate: o,
116
116
  endDate: r
117
117
  };
118
118
  }, Ve = () => Intl.DateTimeFormat().resolvedOptions().timeZone, xt = (e) => {
@@ -121,10 +121,10 @@ const Wt = (e) => {
121
121
  return new Date((a = e[0].slot) == null ? void 0 : a.startDate);
122
122
  }, Pt = ({ duration: e = 60, timezone: t = "UTC" } = {}) => {
123
123
  var E, d;
124
- const n = "267d1c11-8019-4e3d-b9c6-cd2b859c69e2", a = /* @__PURE__ */ new Date(), s = [], r = [], l = a.toISOString().split("T")[0], i = 10, c = 18;
124
+ const n = "267d1c11-8019-4e3d-b9c6-cd2b859c69e2", a = /* @__PURE__ */ new Date(), o = [], r = [], l = a.toISOString().split("T")[0], i = 10, c = 18;
125
125
  let D = /* @__PURE__ */ new Date(`${l}T${i}:00:00`), u = new Date(D);
126
126
  u.setMinutes(u.getMinutes() + e);
127
- let p = !1;
127
+ let y = !1;
128
128
  for (; u.getHours() < c || u.getHours() === c && u.getMinutes() === 0; ) {
129
129
  const O = {
130
130
  slot: {
@@ -145,45 +145,45 @@ const Wt = (e) => {
145
145
  },
146
146
  nestedSlots: []
147
147
  };
148
- r.push(O), p || (s.push(O), p = !0), D = new Date(u), u = new Date(D), u.setMinutes(u.getMinutes() + e);
148
+ r.push(O), y || (o.push(O), y = !0), D = new Date(u), u = new Date(D), u.setMinutes(u.getMinutes() + e);
149
149
  }
150
150
  return {
151
151
  availabilitySlots: r,
152
- availabilityDates: s,
152
+ availabilityDates: o,
153
153
  timezone: t,
154
154
  currentSlotBulkSize: q,
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
155
+ selectedDate: o.length > 0 && ((d = (E = o[0]) == null ? void 0 : E.slot) != null && d.startDate) ? new Date(o[0].slot.startDate) : void 0
156
156
  };
157
157
  };
158
158
  function zt(e) {
159
159
  var d;
160
- const { initialData: t, onChange: n, value: a } = e, { isEditor: s, isComposer: r } = De(), l = (d = t == null ? void 0 : t.service) == null ? void 0 : d.id, { actions: i } = Te(), c = X(i);
160
+ const { initialData: t, onChange: n, value: a } = e, { isEditor: o, isComposer: r } = De(), l = (d = t == null ? void 0 : t.service) == null ? void 0 : d.id, { actions: i } = Te(), c = X(i);
161
161
  c.current = i;
162
- const D = !!(i != null && i.getAvailabilityDates && (i != null && i.getAvailabilitySlots)), [u, p] = Q(null), E = Ze(t == null ? void 0 : t.service);
162
+ const D = !!(i != null && i.getAvailabilityDates && (i != null && i.getAvailabilitySlots)), [u, y] = Q(null), E = Ze(t == null ? void 0 : t.service);
163
163
  return H(() => {
164
- l && !s && !r && D && (async () => {
165
- var _, g, Y, M, $;
164
+ l && !o && !r && D && (async () => {
165
+ var p, g, Y, M, $;
166
166
  const v = Ve(), I = {
167
167
  currentSlotBulkSize: q,
168
168
  timezone: v,
169
169
  dataStatus: z.LOADING
170
170
  };
171
171
  try {
172
- const U = async (se) => {
173
- var y, S;
174
- const { startDate: G, endDate: C } = Ut(se, v);
175
- return (S = (y = c.current) == null ? void 0 : y.getAvailabilityDates) == null ? void 0 : S.call(y, {
172
+ const U = async (oe) => {
173
+ var _, S;
174
+ const { startDate: G, endDate: C } = Ut(oe, v);
175
+ return (S = (_ = c.current) == null ? void 0 : _.getAvailabilityDates) == null ? void 0 : S.call(_, {
176
176
  serviceId: l,
177
177
  fromDate: G,
178
178
  toDate: C,
179
179
  timeZone: v
180
180
  });
181
181
  };
182
- if (I.availabilityDates = await U(2), (_ = I.availabilityDates) != null && _.length || (I.availabilityDates = await U(6)), !((g = I.availabilityDates) != null && g.length)) {
182
+ if (I.availabilityDates = await U(2), (p = I.availabilityDates) != null && p.length || (I.availabilityDates = await U(6)), !((g = I.availabilityDates) != null && g.length)) {
183
183
  E == null || E.report({
184
184
  action: ne.LOAD,
185
185
  component: J.NO_AVAILABILITY_AT_ALL
186
- }), p({
186
+ }), y({
187
187
  dataStatus: z.ERROR,
188
188
  error: {
189
189
  type: Ie.NO_AVAILABILITY_DATES_FOUND,
@@ -199,12 +199,12 @@ function zt(e) {
199
199
  }))), E == null || E.report({
200
200
  action: ne.LOAD,
201
201
  component: ($ = I.availabilityDates) != null && $.length ? J.FORM : J.NO_AVAILABILITY_FOR_DATE
202
- }), a != null && a.startDate || n(void 0), p({
202
+ }), a != null && a.startDate || n(void 0), y({
203
203
  ...I,
204
204
  dataStatus: z.DONE
205
205
  });
206
206
  } catch (U) {
207
- console.error(U), p({
207
+ console.error(U), y({
208
208
  dataStatus: z.ERROR,
209
209
  error: {
210
210
  type: Ie.GENERAL,
@@ -214,7 +214,7 @@ function zt(e) {
214
214
  }
215
215
  })();
216
216
  }, [
217
- s,
217
+ o,
218
218
  r,
219
219
  l,
220
220
  D
@@ -225,24 +225,24 @@ const qe = /* @__PURE__ */ Ke({
225
225
  setAppointmentState: () => {
226
226
  }
227
227
  }), Ht = ({ appointmentFieldProps: e, children: t }) => {
228
- const { isEditor: n, isComposer: a } = De(), [s, r] = Q(() => Bt({
228
+ const { isEditor: n, isComposer: a } = De(), [o, r] = Q(() => Bt({
229
229
  appointmentFieldProps: e,
230
230
  isEditor: n,
231
231
  isComposer: a
232
232
  })), l = zt(e);
233
233
  return H(() => {
234
234
  l && r({
235
- ...s,
235
+ ...o,
236
236
  ...l
237
237
  });
238
238
  }, [
239
239
  l
240
- ]), /* @__PURE__ */ o.createElement(qe.Provider, {
240
+ ]), /* @__PURE__ */ s.createElement(qe.Provider, {
241
241
  value: {
242
242
  appointmentFieldProps: e,
243
- appointmentState: s,
243
+ appointmentState: o,
244
244
  setAppointmentState: (i) => r({
245
- ...s,
245
+ ...o,
246
246
  ...i
247
247
  })
248
248
  }
@@ -265,11 +265,11 @@ const qe = /* @__PURE__ */ Ke({
265
265
  endDate: e == null ? void 0 : e.endDate,
266
266
  timeZone: e == null ? void 0 : e.timeZone
267
267
  }, ze = ({ timezone: e, language: t, formatType: n }) => {
268
- var s;
269
- return (s = new Intl.DateTimeFormat(t, {
268
+ var o;
269
+ return (o = new Intl.DateTimeFormat(t, {
270
270
  timeZone: e,
271
271
  timeZoneName: n === "name" ? "long" : "short"
272
- }).formatToParts(/* @__PURE__ */ new Date()).find(({ type: r }) => r === "timeZoneName")) == null ? void 0 : s.value;
272
+ }).formatToParts(/* @__PURE__ */ new Date()).find(({ type: r }) => r === "timeZoneName")) == null ? void 0 : o.value;
273
273
  }, $t = ({ timezone: e, language: t }) => {
274
274
  const n = ze({
275
275
  timezone: e,
@@ -290,17 +290,17 @@ const qe = /* @__PURE__ */ Ke({
290
290
  toDate: a
291
291
  };
292
292
  }, Zt = ({ setIsReloadingSlots: e }) => {
293
- const { appointmentFieldProps: t, appointmentState: n, setAppointmentState: a } = ve(), { value: s } = t, { actions: r } = Te();
293
+ const { appointmentFieldProps: t, appointmentState: n, setAppointmentState: a } = ve(), { value: o } = t, { actions: r } = Te();
294
294
  H(() => {
295
295
  (async () => {
296
296
  var i, c;
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)) {
297
+ if (o != null && o.startDate && (n != null && n.selectedDate) && (n == null ? void 0 : n.dataStatus) === z.DONE && !ae(new Date(o.startDate), n == null ? void 0 : n.selectedDate)) {
298
298
  e(!0);
299
- const u = new Date(s.startDate), { fromDate: p, toDate: E } = Gt(u, 8), [d, O] = await Promise.all([
299
+ const u = new Date(o.startDate), { fromDate: y, toDate: E } = Gt(u, 8), [d, O] = await Promise.all([
300
300
  (i = r == null ? void 0 : r.getAvailabilityDates) == null ? void 0 : i.call(r, {
301
301
  serviceId: t == null ? void 0 : t.initialData.service.id,
302
302
  timeZone: (n == null ? void 0 : n.timezone) || "",
303
- fromDate: p,
303
+ fromDate: y,
304
304
  toDate: E
305
305
  }),
306
306
  (c = r == null ? void 0 : r.getAvailabilitySlots) == null ? void 0 : c.call(r, {
@@ -317,18 +317,18 @@ const qe = /* @__PURE__ */ Ke({
317
317
  }
318
318
  })();
319
319
  }, [
320
- s,
320
+ o,
321
321
  n == null ? void 0 : n.dataStatus
322
322
  ]);
323
323
  }, Vt = (e, t) => !e || !t.length ? e : e.filter((n) => {
324
324
  var a;
325
325
  return !t.includes(((a = n == null ? void 0 : n.slot) == null ? void 0 : a.startDate) ?? "");
326
326
  }), fe = (e) => !(e != null && e.startDate) || !(e != null && e.endDate) ? "" : `${e == null ? void 0 : e.startDate}_${e == null ? void 0 : e.endDate}`, qt = ({ locale: e, endDate: t, startDate: n, timezone: a }) => {
327
- const s = {
327
+ const o = {
328
328
  hour: "numeric",
329
329
  minute: "numeric",
330
330
  timeZone: a
331
- }, r = new Intl.DateTimeFormat(e, s).format(new Date(n)), l = new Intl.DateTimeFormat(e, s).format(new Date(t));
331
+ }, r = new Intl.DateTimeFormat(e, o).format(new Date(n)), l = new Intl.DateTimeFormat(e, o).format(new Date(t));
332
332
  return `${r} - ${l}`;
333
333
  }, jt = ({ selectedDate: e, locale: t, timezone: n }) => e ? new Intl.DateTimeFormat(t, {
334
334
  weekday: "long",
@@ -337,12 +337,12 @@ const qe = /* @__PURE__ */ Ke({
337
337
  timeZone: n
338
338
  }).format(e) : "", Qt = (e, t) => {
339
339
  let n;
340
- return t.forEach((a, s) => {
340
+ return t.forEach((a, o) => {
341
341
  var r, l;
342
342
  fe({
343
343
  startDate: (r = a == null ? void 0 : a.slot) == null ? void 0 : r.startDate,
344
344
  endDate: (l = a == null ? void 0 : a.slot) == null ? void 0 : l.endDate
345
- }) === e && (n = s);
345
+ }) === e && (n = o);
346
346
  }), n;
347
347
  };
348
348
  var Jt = /* @__PURE__ */ (function(e) {
@@ -352,9 +352,9 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
352
352
  var t;
353
353
  return ((t = e == null ? void 0 : e.params) == null ? void 0 : t.reason) === Xt;
354
354
  }, tn = ({ error: e, selectedSlot: t }) => {
355
- const [n, a] = Q([]), s = en(e), r = t == null ? void 0 : t.startDate, l = X(!1);
355
+ const [n, a] = Q([]), o = en(e), r = t == null ? void 0 : t.startDate, l = X(!1);
356
356
  return H(() => {
357
- if (!s) {
357
+ if (!o) {
358
358
  l.current = !1;
359
359
  return;
360
360
  }
@@ -363,7 +363,7 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
363
363
  r
364
364
  ]));
365
365
  }, [
366
- s,
366
+ o,
367
367
  r
368
368
  ]), n;
369
369
  }, j = 7, ge = (e) => {
@@ -378,73 +378,73 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
378
378
  }, He = (e, t) => {
379
379
  const n = ge(e), a = (n.getDay() - t + j) % j;
380
380
  return te(n, -a);
381
- }, an = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, on = (e, t, n) => {
381
+ }, an = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, sn = (e, t, n) => {
382
382
  const a = new Intl.DateTimeFormat(n, {
383
383
  month: "short",
384
384
  day: "numeric"
385
385
  });
386
386
  return typeof a.formatRange == "function" ? a.formatRange(e, t) : `${a.format(e)} - ${a.format(t)}`;
387
- }, sn = (e, t = []) => t.some((n) => {
387
+ }, on = (e, t = []) => t.some((n) => {
388
388
  var a;
389
389
  return !!((a = n.slot) != null && a.startDate) && ae(new Date(n.slot.startDate), e);
390
390
  }), rn = () => {
391
- var he;
392
- const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } = ve(), { language: a, isEditor: s, isComposer: r } = De(), { t: l } = mt(), { actions: i } = Te(), c = Ze(), [D, u] = Q(!1), [p, E] = Q(!1), [d, O] = Q(), [v, I] = Q();
391
+ var Fe;
392
+ const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } = ve(), { language: a, isEditor: o, isComposer: r } = De(), { t: l } = mt(), { actions: i } = Te(), c = Ze(), [D, u] = Q(!1), [y, E] = Q(!1), [d, O] = Q(), [v, I] = Q();
393
393
  Zt({
394
394
  setIsReloadingSlots: u
395
395
  });
396
- const { onChange: _, value: g, target: Y, initialData: M, formatDescription: $, locationType: U, error: se } = e, { availabilityDates: G, availabilitySlots: C, timezone: y = "", selectedDate: S, currentSlotBulkSize: R, dataStatus: K, error: Z } = t, V = (he = M == null ? void 0 : M.service) == null ? void 0 : he.id, F = K === z.LOADING, ee = D || p, Se = !!Z, we = tn({
397
- error: se,
396
+ const { onChange: p, value: g, target: Y, initialData: M, formatDescription: $, locationType: U, error: oe } = e, { availabilityDates: G, availabilitySlots: C, timezone: _ = "", selectedDate: S, currentSlotBulkSize: k, dataStatus: K, error: Z } = t, V = (Fe = M == null ? void 0 : M.service) == null ? void 0 : Fe.id, w = K === z.LOADING, ee = D || y, Se = !!Z, Re = tn({
397
+ error: oe,
398
398
  selectedSlot: g
399
- }), L = P(() => Vt(C, we), [
399
+ }), L = P(() => Vt(C, Re), [
400
400
  C,
401
- we
401
+ Re
402
402
  ]);
403
403
  H(() => {
404
- _ == null || _(Kt(g));
404
+ p == null || p(Kt(g));
405
405
  }, [
406
406
  g == null ? void 0 : g.startDate,
407
407
  g == null ? void 0 : g.endDate,
408
- y
408
+ _
409
409
  ]), ut((f) => {
410
410
  const N = f == null ? void 0 : f[Y];
411
411
  C != null && C.length && n({
412
412
  availabilitySlots: C.filter((b) => {
413
- var k;
414
- return ((k = b == null ? void 0 : b.slot) == null ? void 0 : k.startDate) !== (N == null ? void 0 : N.startDate);
413
+ var h;
414
+ return ((h = b == null ? void 0 : b.slot) == null ? void 0 : h.startDate) !== (N == null ? void 0 : N.startDate);
415
415
  })
416
416
  });
417
417
  }), H(() => {
418
- if (L != null && L.length && R) {
418
+ if (L != null && L.length && k) {
419
419
  const f = Qt(fe(g ?? void 0), L);
420
- f && f + 1 > R && n({
420
+ f && f + 1 > k && n({
421
421
  currentSlotBulkSize: f + 1
422
422
  });
423
- } else !(L != null && L.length) && g && (_ == null || _(void 0));
423
+ } else !(L != null && L.length) && g && (p == null || p(void 0));
424
424
  }, [
425
425
  g,
426
426
  L,
427
427
  G
428
428
  ]);
429
- const pe = P(() => lt(a), [
429
+ const ye = P(() => lt(a), [
430
430
  a
431
- ]), Fe = X(S);
431
+ ]), we = X(S);
432
432
  H(() => {
433
- const f = Fe.current;
434
- Fe.current = S, !!S && (!f || !ae(f, S)) && O(void 0);
433
+ const f = we.current;
434
+ we.current = S, !!S && (!f || !ae(f, S)) && O(void 0);
435
435
  }, [
436
436
  S
437
437
  ]);
438
- const W = P(() => d ?? He(S ?? /* @__PURE__ */ new Date(), pe), [
438
+ const W = P(() => d ?? He(S ?? /* @__PURE__ */ new Date(), ye), [
439
439
  d,
440
440
  S,
441
- pe
441
+ ye
442
442
  ]), Je = P(() => {
443
443
  const f = ge(/* @__PURE__ */ new Date()), N = new Intl.DateTimeFormat(a, {
444
444
  weekday: "short"
445
445
  }), b = new Intl.DateTimeFormat(a, {
446
446
  day: "numeric"
447
- }), k = new Intl.DateTimeFormat(a, {
447
+ }), h = new Intl.DateTimeFormat(a, {
448
448
  weekday: "long",
449
449
  month: "long",
450
450
  day: "numeric"
@@ -452,17 +452,17 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
452
452
  return Array.from({
453
453
  length: j
454
454
  }, (re, Ne) => {
455
- const x = te(W, Ne), be = !!S && ae(x, S), st = ge(x) < f;
455
+ const x = te(W, Ne), be = !!S && ae(x, S), ot = ge(x) < f;
456
456
  return {
457
457
  key: an(x),
458
458
  date: x,
459
459
  isSelected: be,
460
- isAvailable: !F && !ee && !be && sn(x, G),
461
- isDisabled: st || ee && !be,
460
+ isAvailable: !w && !ee && !be && on(x, G),
461
+ isDisabled: ot || ee && !be,
462
462
  isToday: ae(x, f),
463
463
  dayOfMonthLabel: b.format(x),
464
464
  weekdayLabel: N.format(x),
465
- label: k.format(x),
465
+ label: h.format(x),
466
466
  availabilityLabel: l("form.appointment.accessibility.calendar.has-availability.aria-label")
467
467
  };
468
468
  });
@@ -470,45 +470,45 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
470
470
  W,
471
471
  S,
472
472
  G,
473
- F,
473
+ w,
474
474
  ee,
475
475
  a,
476
476
  l
477
- ]), _e = fe(g ?? void 0) || void 0, ye = P(() => F || D ? [] : (L ?? []).slice(0, R).flatMap((f) => {
477
+ ]), pe = fe(g ?? void 0) || void 0, _e = P(() => w || D ? [] : (L ?? []).slice(0, k).flatMap((f) => {
478
478
  const { startDate: N, endDate: b } = f.slot ?? {};
479
479
  if (!N || !b)
480
480
  return [];
481
- const k = fe({
481
+ const h = fe({
482
482
  startDate: N,
483
483
  endDate: b
484
484
  });
485
485
  return [
486
486
  {
487
- key: k,
487
+ key: h,
488
488
  startDate: N,
489
489
  endDate: b,
490
490
  timeRange: qt({
491
491
  startDate: N,
492
492
  endDate: b,
493
493
  locale: a,
494
- timezone: y
494
+ timezone: _
495
495
  }),
496
- isSelected: k === _e
496
+ isSelected: h === pe
497
497
  }
498
498
  ];
499
499
  }), [
500
500
  L,
501
- R,
502
- F,
501
+ k,
502
+ w,
503
503
  D,
504
504
  a,
505
- y,
506
- _e
507
- ]), Le = !D && !!(L != null && L.length) && (R || q) < L.length, Ae = W > He(/* @__PURE__ */ new Date(), pe), Xe = ie(
505
+ _,
506
+ pe
507
+ ]), Le = !D && !!(L != null && L.length) && (k || q) < L.length, Ae = W > He(/* @__PURE__ */ new Date(), ye), Xe = ie(
508
508
  async (f) => {
509
509
  var N;
510
510
  if (!(ee || S && ae(f, S))) {
511
- u(!0), _ == null || _(void 0), n({
511
+ u(!0), p == null || p(void 0), n({
512
512
  currentSlotBulkSize: q,
513
513
  selectedDate: f,
514
514
  availabilitySlots: void 0
@@ -519,7 +519,7 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
519
519
  try {
520
520
  const b = await ((N = i == null ? void 0 : i.getAvailabilitySlots) == null ? void 0 : N.call(i, {
521
521
  serviceId: V,
522
- timeZone: y,
522
+ timeZone: _,
523
523
  selectedDate: f
524
524
  }));
525
525
  n({
@@ -538,9 +538,9 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
538
538
  ee,
539
539
  S,
540
540
  V,
541
- y,
542
- i,
543
541
  _,
542
+ i,
543
+ p,
544
544
  c
545
545
  ]
546
546
  ), me = X(0), et = ie(
@@ -549,9 +549,9 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
549
549
  if (f < 0 && !Ae)
550
550
  return;
551
551
  const N = W, b = te(W, f * j);
552
- if (O(b), s || r)
552
+ if (O(b), o || r)
553
553
  return;
554
- const k = ++me.current;
554
+ const h = ++me.current;
555
555
  E(!0), c == null || c.report({
556
556
  action: ne.CLICK,
557
557
  component: J.PAGINATION
@@ -559,58 +559,58 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
559
559
  try {
560
560
  const Ne = await ((re = i == null ? void 0 : i.getAvailabilityDates) == null ? void 0 : re.call(i, {
561
561
  serviceId: V,
562
- timeZone: y,
562
+ timeZone: _,
563
563
  fromDate: b,
564
564
  toDate: nn(te(b, j - 1))
565
565
  }));
566
- k === me.current && n({
566
+ h === me.current && n({
567
567
  availabilityDates: Ne
568
568
  });
569
569
  } catch {
570
- k === me.current && O(N);
570
+ h === me.current && O(N);
571
571
  } finally {
572
- k === me.current && E(!1);
572
+ h === me.current && E(!1);
573
573
  }
574
574
  },
575
575
  // eslint-disable-next-line react-hooks/exhaustive-deps
576
576
  [
577
577
  Ae,
578
578
  W,
579
- s,
579
+ o,
580
580
  r,
581
581
  V,
582
- y,
582
+ _,
583
583
  i,
584
584
  c
585
585
  ]
586
586
  ), tt = ie(
587
587
  (f) => {
588
- const N = ye.find((re) => re.key === f);
588
+ const N = _e.find((re) => re.key === f);
589
589
  if (!N)
590
590
  return;
591
- const { startDate: b, endDate: k } = N;
591
+ const { startDate: b, endDate: h } = N;
592
592
  c == null || c.report({
593
593
  action: ne.CLICK,
594
594
  component: J.SLOT,
595
595
  startTime: new Date(b).valueOf(),
596
- endTime: new Date(k).valueOf()
597
- }), _ == null || _({
596
+ endTime: new Date(h).valueOf()
597
+ }), p == null || p({
598
598
  startDate: b,
599
- endDate: k,
600
- timeZone: y
599
+ endDate: h,
600
+ timeZone: _
601
601
  });
602
602
  },
603
603
  // eslint-disable-next-line react-hooks/exhaustive-deps
604
604
  [
605
- ye,
606
- y,
605
+ _e,
607
606
  _,
607
+ p,
608
608
  c
609
609
  ]
610
610
  ), nt = ie(() => {
611
611
  if (!Le)
612
612
  return;
613
- const f = R || q;
613
+ const f = k || q;
614
614
  c == null || c.report({
615
615
  action: ne.CLICK,
616
616
  component: J.SHOW_MORE
@@ -619,24 +619,24 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
619
619
  });
620
620
  }, [
621
621
  Le,
622
- R,
622
+ k,
623
623
  c
624
- ]), at = ie(() => I(void 0), []), ot = P(() => {
624
+ ]), at = ie(() => I(void 0), []), st = P(() => {
625
625
  if (Se)
626
626
  return l("form.appointment.empty-state.notification.text");
627
- if (!F && !D && !(L != null && L.length))
627
+ if (!w && !D && !(L != null && L.length))
628
628
  return l("form.appointment.slots-not-found.text");
629
629
  }, [
630
630
  Se,
631
- F,
631
+ w,
632
632
  D,
633
633
  L == null ? void 0 : L.length,
634
634
  l
635
635
  ]);
636
636
  return {
637
637
  days: Je,
638
- slots: ye,
639
- selectedSlotKey: _e,
638
+ slots: _e,
639
+ selectedSlotKey: pe,
640
640
  selectDate: Xe,
641
641
  selectSlot: tt,
642
642
  changeWeek: et,
@@ -644,10 +644,10 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
644
644
  canGoToPreviousWeek: Ae,
645
645
  hasMoreSlots: Le,
646
646
  hasError: Se,
647
- isLoading: F,
647
+ isLoading: w,
648
648
  isRefetching: ee,
649
649
  isReloadingSlots: D,
650
- weekRangeLabel: on(W, te(W, j - 1), a),
650
+ weekRangeLabel: sn(W, te(W, j - 1), a),
651
651
  weekCaptionLabel: Yt({
652
652
  startOfWeek: W,
653
653
  endOfWeek: te(W, j - 1)
@@ -655,32 +655,32 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
655
655
  selectedDateLabel: jt({
656
656
  selectedDate: S,
657
657
  locale: a,
658
- timezone: y
658
+ timezone: _
659
659
  }),
660
- timezoneLabel: y ? `${l("form.appointment.timezone.label")}: ${$t({
661
- timezone: y,
660
+ timezoneLabel: _ ? `${l("form.appointment.timezone.label")}: ${$t({
661
+ timezone: _,
662
662
  language: a
663
663
  })}` : "",
664
664
  formatLabel: U === Jt.OS_LOCATION ? l("form.appointment.meeting-format.in-person-location-method-os-location") : $,
665
- notificationMessage: ot,
665
+ notificationMessage: st,
666
666
  showMoreSlotsLabel: l("form.appointment.show-more-slots.text"),
667
667
  previousWeekLabel: l("form.appointment.accessibility.calendar.previous-week.aria-label"),
668
668
  nextWeekLabel: l("form.appointment.accessibility.calendar.next-week.aria-label"),
669
669
  pendingFocusIndex: v,
670
670
  consumePendingFocusIndex: at
671
671
  };
672
- }, je = Ke(void 0), Qe = (e) => `${e}-timezone-note`, h = () => {
672
+ }, je = Ke(void 0), Qe = (e) => `${e}-timezone-note`, F = () => {
673
673
  const e = $e(je);
674
674
  if (typeof e > "u")
675
675
  throw new Error("Appointment parts must be used inside an <Appointment> component");
676
676
  return e;
677
- }, Re = () => {
677
+ }, ke = () => {
678
678
  const { disabled: e, readOnly: t } = ce();
679
679
  return !!e || !!t;
680
680
  }, B = ({ children: e, className: t }) => {
681
- const { days: n, selectDate: a, weekRangeLabel: s } = h(), r = T(e, B.PreviousWeek), l = T(e, B.Heading), i = T(e, B.NextWeek), c = T(e, B.Day) ?? /* @__PURE__ */ o.createElement(B.Day, null), D = P(() => n.filter((d) => d.isSelected).map((d) => d.key), [
681
+ const { days: n, selectDate: a, weekRangeLabel: o } = F(), r = T(e, B.PreviousWeek), l = T(e, B.Heading), i = T(e, B.NextWeek), c = T(e, B.Day) ?? /* @__PURE__ */ s.createElement(B.Day, null), D = P(() => n.filter((d) => d.isSelected).map((d) => d.key), [
682
682
  n
683
- ]), u = Re(), p = P(() => n.filter((d) => u || d.isDisabled).map((d) => d.key), [
683
+ ]), u = ke(), y = P(() => n.filter((d) => u || d.isDisabled).map((d) => d.key), [
684
684
  n,
685
685
  u
686
686
  ]), E = (d) => {
@@ -691,67 +691,67 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
691
691
  ], v = n.find(({ key: I }) => I === O);
692
692
  v && a(v.date);
693
693
  };
694
- return /* @__PURE__ */ o.createElement("div", {
694
+ return /* @__PURE__ */ s.createElement("div", {
695
695
  className: t
696
- }, r, l, i, /* @__PURE__ */ o.createElement(It, {
697
- "aria-label": s,
696
+ }, r, l, i, /* @__PURE__ */ s.createElement(It, {
697
+ "aria-label": o,
698
698
  orientation: "horizontal",
699
699
  selectionMode: "single",
700
700
  selectedKeys: D,
701
- disabledKeys: p,
701
+ disabledKeys: y,
702
702
  onSelectionChange: E
703
703
  }, n.map((d) => le(c, {
704
704
  key: d.key,
705
705
  day: d
706
706
  }))));
707
707
  }, ln = ({ children: e, className: t }) => {
708
- const { changeWeek: n, canGoToPreviousWeek: a, previousWeekLabel: s, nextWeekLabel: r } = h(), l = Re(), i = X(null), c = X(!1);
708
+ const { changeWeek: n, canGoToPreviousWeek: a, previousWeekLabel: o, nextWeekLabel: r } = F(), l = ke(), i = X(null), c = X(!1);
709
709
  return H(() => {
710
- var p, E, d;
710
+ var y, E, d;
711
711
  if (a || !c.current)
712
712
  return;
713
713
  c.current = !1;
714
714
  const D = document.activeElement;
715
715
  if (D !== document.body && D !== i.current)
716
716
  return;
717
- const u = ((E = (p = i.current) == null ? void 0 : p.closest("fieldset")) == null ? void 0 : E.querySelectorAll("button")) ?? [];
717
+ const u = ((E = (y = i.current) == null ? void 0 : y.closest("fieldset")) == null ? void 0 : E.querySelectorAll("button")) ?? [];
718
718
  (d = Array.from(u).find((O) => O.getAttribute("aria-label") === r)) == null || d.focus();
719
719
  }, [
720
720
  a,
721
721
  r
722
- ]), /* @__PURE__ */ o.createElement(ke, {
722
+ ]), /* @__PURE__ */ s.createElement(he, {
723
723
  ref: i,
724
724
  className: t,
725
- "aria-label": s,
725
+ "aria-label": o,
726
726
  isDisabled: !a || l,
727
727
  onPress: () => {
728
728
  c.current = !0, n(-1);
729
729
  }
730
730
  }, e ?? "‹");
731
731
  }, cn = ({ children: e, className: t }) => {
732
- const { changeWeek: n, nextWeekLabel: a } = h(), s = Re();
733
- return /* @__PURE__ */ o.createElement(ke, {
732
+ const { changeWeek: n, nextWeekLabel: a } = F(), o = ke();
733
+ return /* @__PURE__ */ s.createElement(he, {
734
734
  className: t,
735
735
  "aria-label": a,
736
- isDisabled: s,
736
+ isDisabled: o,
737
737
  onPress: () => n(1)
738
738
  }, e ?? "›");
739
739
  }, mn = ({ children: e, className: t }) => {
740
- const { weekCaptionLabel: n, weekRangeLabel: a } = h();
741
- return /* @__PURE__ */ o.createElement("span", {
740
+ const { weekCaptionLabel: n, weekRangeLabel: a } = F();
741
+ return /* @__PURE__ */ s.createElement("span", {
742
742
  className: t,
743
743
  "aria-live": "polite"
744
744
  }, e ? e({
745
745
  label: n,
746
746
  weekRange: a
747
- }) : /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("span", {
747
+ }) : /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("span", {
748
748
  "aria-hidden": "true"
749
- }, n), /* @__PURE__ */ o.createElement("span", {
749
+ }, n), /* @__PURE__ */ s.createElement("span", {
750
750
  style: Ge
751
751
  }, a)));
752
752
  }, un = ({ children: e, className: t, ...n }) => {
753
753
  const { day: a } = n;
754
- return /* @__PURE__ */ o.createElement(Ot, {
754
+ return /* @__PURE__ */ s.createElement(Ot, {
755
755
  id: a.key,
756
756
  className: t,
757
757
  textValue: a.label,
@@ -761,37 +761,37 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
761
761
  }, e ? e({
762
762
  ...a,
763
763
  date: new Date(a.date)
764
- }) : /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("span", null, a.weekdayLabel), /* @__PURE__ */ o.createElement("span", null, a.dayOfMonthLabel)));
764
+ }) : /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("span", null, a.weekdayLabel), /* @__PURE__ */ s.createElement("span", null, a.dayOfMonthLabel)));
765
765
  };
766
766
  B.PreviousWeek = ln;
767
767
  B.Heading = mn;
768
768
  B.NextWeek = cn;
769
769
  B.Day = un;
770
- const Ye = 'input[type="radio"]', oe = ({ children: e, className: t, ...n }) => {
771
- const { hasTimezoneNote: a } = n, { slots: s, selectedSlotKey: r, selectSlot: l, selectedDateLabel: i, isReloadingSlots: c, timezoneLabel: D, pendingFocusIndex: u, consumePendingFocusIndex: p } = h(), { id: E, disabled: d, readOnly: O, required: v, hasError: I } = ce(), { inputId: _, labelId: g, ariaDescribedBy: Y } = Ee(), M = X(null), $ = `${_}-slots-label`, U = T(e, oe.Label), se = T(e, oe.Slot) ?? /* @__PURE__ */ o.createElement(oe.Slot, null), G = !!U && !!i, C = [
770
+ const Ye = 'input[type="radio"]', se = ({ children: e, className: t, ...n }) => {
771
+ const { hasTimezoneNote: a } = n, { slots: o, selectedSlotKey: r, selectSlot: l, selectedDateLabel: i, isReloadingSlots: c, timezoneLabel: D, pendingFocusIndex: u, consumePendingFocusIndex: y } = F(), { id: E, disabled: d, readOnly: O, required: v, hasError: I } = ce(), { inputId: p, labelId: g, ariaDescribedBy: Y } = Ee(), M = X(null), $ = `${p}-slots-label`, U = T(e, se.Label), oe = T(e, se.Slot) ?? /* @__PURE__ */ s.createElement(se.Slot, null), G = !!U && !!i, C = [
772
772
  Y,
773
- a && D ? Qe(_) : void 0
774
- ].filter(Boolean).join(" ") || void 0, y = (S) => {
775
- var R, K, Z;
776
- (Z = (K = (R = M.current) == null ? void 0 : R.querySelectorAll(Ye)) == null ? void 0 : K[S]) == null || Z.focus();
773
+ a && D ? Qe(p) : void 0
774
+ ].filter(Boolean).join(" ") || void 0, _ = (S) => {
775
+ var k, K, Z;
776
+ (Z = (K = (k = M.current) == null ? void 0 : k.querySelectorAll(Ye)) == null ? void 0 : K[S]) == null || Z.focus();
777
777
  };
778
778
  return dt(() => {
779
779
  var Z, V;
780
780
  if (!!((Z = M.current) != null && Z.querySelector(Ye))) {
781
- y(0);
781
+ _(0);
782
782
  return;
783
783
  }
784
- const R = Array.from(((V = document.getElementById(_)) == null ? void 0 : V.querySelectorAll('[role="option"]')) ?? []), K = R.find((F) => F.getAttribute("aria-selected") === "true") ?? R.find((F) => F.getAttribute("aria-disabled") !== "true");
784
+ const k = Array.from(((V = document.getElementById(p)) == null ? void 0 : V.querySelectorAll('[role="option"]')) ?? []), K = k.find((w) => w.getAttribute("aria-selected") === "true") ?? k.find((w) => w.getAttribute("aria-disabled") !== "true");
785
785
  K == null || K.focus();
786
786
  }, E), H(() => {
787
- u !== void 0 && (y(u), p());
787
+ u !== void 0 && (_(u), y());
788
788
  }, [
789
789
  u,
790
- s.length
791
- ]), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("div", {
790
+ o.length
791
+ ]), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", {
792
792
  role: "status",
793
793
  style: Ge
794
- }, s.length > 0 ? i : void 0), /* @__PURE__ */ o.createElement(gt, {
794
+ }, o.length > 0 ? i : void 0), /* @__PURE__ */ s.createElement(gt, {
795
795
  ref: M,
796
796
  className: t,
797
797
  value: r ?? null,
@@ -805,31 +805,31 @@ const Ye = 'input[type="radio"]', oe = ({ children: e, className: t, ...n }) =>
805
805
  "data-refetch": c || void 0
806
806
  }, le(U, {
807
807
  labelId: $
808
- }), s.map((S) => le(se, {
808
+ }), o.map((S) => le(oe, {
809
809
  key: S.key,
810
810
  slot: S
811
811
  }))));
812
812
  }, dn = ({ children: e, className: t, ...n }) => {
813
- const { selectedDateLabel: a } = h(), { labelId: s } = n;
814
- return a ? /* @__PURE__ */ o.createElement("div", {
815
- id: s,
813
+ const { selectedDateLabel: a } = F(), { labelId: o } = n;
814
+ return a ? /* @__PURE__ */ s.createElement("div", {
815
+ id: o,
816
816
  className: t
817
817
  }, e ? e({
818
818
  label: a
819
819
  }) : a) : null;
820
820
  }, fn = ({ children: e, className: t, ...n }) => {
821
821
  const { slot: a } = n;
822
- return /* @__PURE__ */ o.createElement(Tt, {
822
+ return /* @__PURE__ */ s.createElement(Tt, {
823
823
  value: a.key,
824
824
  "aria-label": a.timeRange
825
- }, /* @__PURE__ */ o.createElement(kt, {
825
+ }, /* @__PURE__ */ s.createElement(ht, {
826
826
  className: t
827
827
  }, e ? e(a) : a.timeRange));
828
828
  };
829
- oe.Label = dn;
830
- oe.Slot = fn;
829
+ se.Label = dn;
830
+ se.Slot = fn;
831
831
  const m = ({ children: e, className: t }) => {
832
- const n = ce(), { id: a, FieldLayout: s } = n, { labelId: r, inputId: l, ariaDescribedBy: i } = Ee(), c = ft(Dt.APPOINTMENT), D = P(() => ({
832
+ const n = ce(), { id: a, FieldLayout: o } = n, { labelId: r, inputId: l, ariaDescribedBy: i } = Ee(), c = ft(Dt.APPOINTMENT), D = P(() => ({
833
833
  ...n,
834
834
  initialData: c,
835
835
  inputId: l,
@@ -843,91 +843,91 @@ const m = ({ children: e, className: t }) => {
843
843
  r,
844
844
  i,
845
845
  a
846
- ]), u = T(e, m.Label), p = T(e, m.Description), E = T(e, m.Error);
847
- return /* @__PURE__ */ o.createElement(s, {
846
+ ]), u = T(e, m.Label), y = T(e, m.Description), E = T(e, m.Error);
847
+ return /* @__PURE__ */ s.createElement(o, {
848
848
  fieldId: a,
849
849
  renderLabel: () => le(u, {
850
850
  as: "div"
851
851
  }),
852
- renderInput: () => /* @__PURE__ */ o.createElement(Ht, {
852
+ renderInput: () => /* @__PURE__ */ s.createElement(Ht, {
853
853
  appointmentFieldProps: D
854
- }, /* @__PURE__ */ o.createElement(En, {
854
+ }, /* @__PURE__ */ s.createElement(En, {
855
855
  className: t
856
856
  }, e)),
857
- renderDescription: () => /* @__PURE__ */ o.createElement(o.Fragment, null, E, p)
857
+ renderDescription: () => /* @__PURE__ */ s.createElement(s.Fragment, null, E, y)
858
858
  });
859
859
  }, Dn = {
860
860
  visibility: "hidden"
861
861
  }, En = ({ children: e, className: t }) => {
862
- const { required: n, onFocus: a, onBlur: s } = ce(), { inputId: r, labelId: l, ariaDescribedBy: i } = Ee(), c = rn(), D = T(e, m.Loader), u = T(e, m.Notification), p = T(e, m.Dates), E = T(e, m.Timezone), d = T(e, m.Format), O = T(e, m.Slots), v = T(e, m.ShowMoreSlots);
863
- return /* @__PURE__ */ o.createElement(je.Provider, {
862
+ const { required: n, onFocus: a, onBlur: o } = ce(), { inputId: r, labelId: l, ariaDescribedBy: i } = Ee(), c = rn(), D = T(e, m.Loader), u = T(e, m.Notification), y = T(e, m.Dates), E = T(e, m.Timezone), d = T(e, m.Format), O = T(e, m.Slots), v = T(e, m.ShowMoreSlots);
863
+ return /* @__PURE__ */ s.createElement(je.Provider, {
864
864
  value: c
865
- }, /* @__PURE__ */ o.createElement(Ft, {
865
+ }, /* @__PURE__ */ s.createElement(wt, {
866
866
  id: r,
867
867
  className: t,
868
868
  ariaLabelledBy: l,
869
869
  ariaDescribedBy: i,
870
870
  required: n,
871
871
  onFocus: a,
872
- onBlur: s
873
- }, D, c.hasError ? u : /* @__PURE__ */ o.createElement("div", {
872
+ onBlur: o
873
+ }, D, c.hasError ? u : /* @__PURE__ */ s.createElement("div", {
874
874
  style: c.isLoading ? Dn : void 0
875
- }, p, E, d, le(O, {
875
+ }, y, E, d, le(O, {
876
876
  hasTimezoneNote: !!E
877
877
  }), u, v)));
878
878
  }, Sn = ({ children: e, className: t }) => {
879
- const { isLoading: n, isRefetching: a } = h();
880
- return !n && !a ? null : /* @__PURE__ */ o.createElement("div", {
879
+ const { isLoading: n, isRefetching: a } = F();
880
+ return !n && !a ? null : /* @__PURE__ */ s.createElement("div", {
881
881
  className: t,
882
882
  role: "status",
883
883
  "aria-live": "polite",
884
884
  "data-initial": n || void 0,
885
885
  "data-refetch": !n && a || void 0
886
886
  }, e);
887
- }, pn = ({ children: e, className: t }) => {
888
- const { notificationMessage: n } = h();
889
- return n ? /* @__PURE__ */ o.createElement("div", {
887
+ }, yn = ({ children: e, className: t }) => {
888
+ const { notificationMessage: n } = F();
889
+ return n ? /* @__PURE__ */ s.createElement("div", {
890
890
  className: t,
891
891
  role: "status"
892
892
  }, e ? e({
893
893
  message: n
894
894
  }) : n) : null;
895
- }, _n = ({ children: e, className: t }) => {
896
- const { timezoneLabel: n } = h(), { inputId: a } = Ee();
897
- return n ? /* @__PURE__ */ o.createElement("span", {
895
+ }, pn = ({ children: e, className: t }) => {
896
+ const { timezoneLabel: n } = F(), { inputId: a } = Ee();
897
+ return n ? /* @__PURE__ */ s.createElement("span", {
898
898
  id: Qe(a),
899
899
  className: t
900
900
  }, e ? e({
901
901
  label: n
902
902
  }) : n) : null;
903
- }, yn = ({ children: e, className: t }) => {
904
- const { formatLabel: n } = h();
905
- return n ? /* @__PURE__ */ o.createElement("span", {
903
+ }, _n = ({ children: e, className: t }) => {
904
+ const { formatLabel: n } = F();
905
+ return n ? /* @__PURE__ */ s.createElement("span", {
906
906
  className: t
907
907
  }, e ? e({
908
908
  label: n
909
909
  }) : n) : null;
910
910
  }, Ln = ({ children: e, className: t }) => {
911
- const { hasMoreSlots: n, showMoreSlots: a, showMoreSlotsLabel: s } = h(), { disabled: r, readOnly: l } = ce();
912
- return n ? /* @__PURE__ */ o.createElement(ke, {
911
+ const { hasMoreSlots: n, showMoreSlots: a, showMoreSlotsLabel: o } = F(), { disabled: r, readOnly: l } = ce();
912
+ return n ? /* @__PURE__ */ s.createElement(he, {
913
913
  className: t,
914
914
  isDisabled: !!r || !!l,
915
915
  onPress: a
916
916
  }, e ? e({
917
- label: s
918
- }) : s) : null;
917
+ label: o
918
+ }) : o) : null;
919
919
  };
920
- m.Label = wt;
920
+ m.Label = Rt;
921
921
  m.Loader = Sn;
922
- m.Notification = pn;
922
+ m.Notification = yn;
923
923
  m.Dates = B;
924
- m.Timezone = _n;
925
- m.Format = yn;
926
- m.Slots = oe;
924
+ m.Timezone = pn;
925
+ m.Format = _n;
926
+ m.Slots = se;
927
927
  m.ShowMoreSlots = Ln;
928
928
  m.Description = vt;
929
- m.Error = Rt;
930
- const An = "_appointment_1397k_1", Nn = "_dates_1397k_5", bn = "_weekHeading_1397k_26", In = "_weekButton_1397k_35", On = "_previousWeek_1397k_67", gn = "_nextWeek_1397k_71", Tn = "_day_1397k_83", kn = "_weekdayLabel_1397k_95", vn = "_indicator_1397k_107", Rn = "_hint_1397k_130", wn = "_slots_1397k_143", Fn = "_slotsLabel_1397k_158", hn = "_slot_1397k_143", Mn = "_slotHover_1397k_197", Cn = "_slotSelected_1397k_205", Wn = "_showMoreSlots_1397k_259", Bn = "_loader_1397k_289", Un = "_notification_1397k_325", A = {
929
+ m.Error = kt;
930
+ const An = "_appointment_14yhs_1", Nn = "_dates_14yhs_5", bn = "_weekHeading_14yhs_26", In = "_weekButton_14yhs_35", On = "_previousWeek_14yhs_67", gn = "_nextWeek_14yhs_71", Tn = "_day_14yhs_83", hn = "_weekdayLabel_14yhs_95", vn = "_indicator_14yhs_107", kn = "_hint_14yhs_130", Rn = "_slots_14yhs_143", wn = "_slotsLabel_14yhs_158", Fn = "_slot_14yhs_143", Mn = "_slotHover_14yhs_197", Cn = "_slotSelected_14yhs_205", Wn = "_showMoreSlots_14yhs_259", Bn = "_loader_14yhs_290", Un = "_notification_14yhs_326", A = {
931
931
  appointment: An,
932
932
  dates: Nn,
933
933
  weekHeading: bn,
@@ -935,18 +935,18 @@ const An = "_appointment_1397k_1", Nn = "_dates_1397k_5", bn = "_weekHeading_139
935
935
  previousWeek: On,
936
936
  nextWeek: gn,
937
937
  day: Tn,
938
- weekdayLabel: kn,
938
+ weekdayLabel: hn,
939
939
  indicator: vn,
940
- hint: Rn,
941
- slots: wn,
942
- slotsLabel: Fn,
943
- slot: hn,
940
+ hint: kn,
941
+ slots: Rn,
942
+ slotsLabel: wn,
943
+ slot: Fn,
944
944
  slotHover: Mn,
945
945
  slotSelected: Cn,
946
946
  showMoreSlots: Wn,
947
947
  loader: Bn,
948
948
  notification: Un
949
- }, xn = ({ content: e, locale: t }) => /* @__PURE__ */ o.createElement(rt, {
949
+ }, xn = ({ content: e, locale: t }) => /* @__PURE__ */ s.createElement(rt, {
950
950
  content: e,
951
951
  locale: t
952
952
  }), Pn = {
@@ -958,53 +958,53 @@ const An = "_appointment_1397k_1", Nn = "_dates_1397k_5", bn = "_weekHeading_139
958
958
  globalClasses: Nt,
959
959
  moduleClasses: Pn
960
960
  });
961
- return /* @__PURE__ */ o.createElement(m, {
961
+ return /* @__PURE__ */ s.createElement(m, {
962
962
  className: A.appointment
963
- }, /* @__PURE__ */ o.createElement(m.Label, {
964
- className: w(Et, de.label)
965
- }, /* @__PURE__ */ o.createElement(m.Label.Required, {
966
- className: w(St, de.requiredMark)
967
- })), /* @__PURE__ */ o.createElement(m.Loader, {
963
+ }, /* @__PURE__ */ s.createElement(m.Label, {
964
+ className: R(Et, de.label)
965
+ }, /* @__PURE__ */ s.createElement(m.Label.Required, {
966
+ className: R(St, de.requiredMark)
967
+ })), /* @__PURE__ */ s.createElement(m.Loader, {
968
968
  className: A.loader
969
- }), /* @__PURE__ */ o.createElement(m.Dates, {
970
- className: w(pt, A.dates)
971
- }, /* @__PURE__ */ o.createElement(m.Dates.PreviousWeek, {
972
- className: w(ue, A.weekButton, A.previousWeek)
973
- }, /* @__PURE__ */ o.createElement(Me, null)), /* @__PURE__ */ o.createElement(m.Dates.Heading, {
969
+ }), /* @__PURE__ */ s.createElement(m.Dates, {
970
+ className: R(yt, A.dates)
971
+ }, /* @__PURE__ */ s.createElement(m.Dates.PreviousWeek, {
972
+ className: R(ue, A.weekButton, A.previousWeek)
973
+ }, /* @__PURE__ */ s.createElement(Me, null)), /* @__PURE__ */ s.createElement(m.Dates.Heading, {
974
974
  className: A.weekHeading
975
- }), /* @__PURE__ */ o.createElement(m.Dates.NextWeek, {
976
- className: w(ue, A.weekButton, A.nextWeek)
977
- }, /* @__PURE__ */ o.createElement(Me, null)), /* @__PURE__ */ o.createElement(m.Dates.Day, {
978
- className: w(ue, Ce.day, A.day)
979
- }, (t) => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("span", {
975
+ }), /* @__PURE__ */ s.createElement(m.Dates.NextWeek, {
976
+ className: R(ue, A.weekButton, A.nextWeek)
977
+ }, /* @__PURE__ */ s.createElement(Me, null)), /* @__PURE__ */ s.createElement(m.Dates.Day, {
978
+ className: R(ue, Ce.day, A.day)
979
+ }, (t) => /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("span", {
980
980
  className: A.weekdayLabel
981
- }, t.weekdayLabel), /* @__PURE__ */ o.createElement("span", {
981
+ }, t.weekdayLabel), /* @__PURE__ */ s.createElement("span", {
982
982
  className: Ce.dayNumber
983
- }, t.dayOfMonthLabel, /* @__PURE__ */ o.createElement("span", {
983
+ }, t.dayOfMonthLabel, /* @__PURE__ */ s.createElement("span", {
984
984
  className: A.indicator
985
- }))))), /* @__PURE__ */ o.createElement(m.Timezone, {
986
- className: w(We, A.hint)
987
- }), /* @__PURE__ */ o.createElement(m.Format, {
988
- className: w(We, A.hint)
989
- }), /* @__PURE__ */ o.createElement(m.Slots, {
985
+ }))))), /* @__PURE__ */ s.createElement(m.Timezone, {
986
+ className: R(We, A.hint)
987
+ }), /* @__PURE__ */ s.createElement(m.Format, {
988
+ className: R(We, A.hint)
989
+ }), /* @__PURE__ */ s.createElement(m.Slots, {
990
990
  className: A.slots
991
- }, /* @__PURE__ */ o.createElement(m.Slots.Label, {
992
- className: w(_t, A.slotsLabel)
993
- }), /* @__PURE__ */ o.createElement(m.Slots.Slot, {
994
- className: ({ isSelected: t, isHovered: n, isDisabled: a, isReadOnly: s }) => e({
991
+ }, /* @__PURE__ */ s.createElement(m.Slots.Label, {
992
+ className: R(pt, A.slotsLabel)
993
+ }), /* @__PURE__ */ s.createElement(m.Slots.Slot, {
994
+ className: ({ isSelected: t, isHovered: n, isFocused: a, isDisabled: o, isReadOnly: r }) => e({
995
995
  isSelected: t,
996
- isHovered: n && !t && !a && !s
996
+ isHovered: (n || a) && !t && !o && !r
997
997
  })
998
- }, (t) => t.timeRange)), /* @__PURE__ */ o.createElement(m.Notification, {
998
+ }, (t) => t.timeRange)), /* @__PURE__ */ s.createElement(m.Notification, {
999
999
  className: A.notification
1000
- }), /* @__PURE__ */ o.createElement(m.ShowMoreSlots, {
1001
- className: w(yt, ue, A.showMoreSlots)
1002
- }), /* @__PURE__ */ o.createElement(m.Error, {
1003
- className: w(Lt, de.error)
1004
- }, /* @__PURE__ */ o.createElement(it, null), /* @__PURE__ */ o.createElement(m.Error.Text, null)), /* @__PURE__ */ o.createElement(m.Description, {
1005
- className: w(At, de.description)
1000
+ }), /* @__PURE__ */ s.createElement(m.ShowMoreSlots, {
1001
+ className: R(_t, ue, A.showMoreSlots)
1002
+ }), /* @__PURE__ */ s.createElement(m.Error, {
1003
+ className: R(Lt, de.error)
1004
+ }, /* @__PURE__ */ s.createElement(it, null), /* @__PURE__ */ s.createElement(m.Error.Text, null)), /* @__PURE__ */ s.createElement(m.Description, {
1005
+ className: R(At, de.description)
1006
1006
  }, xn));
1007
- }, sa = () => /* @__PURE__ */ o.createElement(zn, null);
1007
+ }, oa = () => /* @__PURE__ */ s.createElement(zn, null);
1008
1008
  export {
1009
- sa as AppointmentRAC
1009
+ oa as AppointmentRAC
1010
1010
  };