@wix/form-elements 1.157.0 → 1.158.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 (107) hide show
  1. package/dist/component/{appointment-rac-tHM5tqUo.js → appointment-rac-m5-FH9kU.js} +146 -146
  2. package/dist/component/{bookings-address-rac-wrGfkOz7.js → bookings-address-rac-VtG7wH0l.js} +1 -1
  3. package/dist/component/{bookings-email-rac-Cb8sq7hf.js → bookings-email-rac-C8T3aTQH.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-BD56qBtd.js → bookings-first-name-rac-BlhIWWNj.js} +1 -1
  5. package/dist/component/{bookings-header-rac-D3tBRKqn.js → bookings-header-rac-adwR7PKJ.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-Bm3HJSBf.js → bookings-last-name-rac-z5z1GJQL.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-BeHjULcN.js → bookings-login-bar-rac-DMgVxy8J.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-MWT57RG3.js → bookings-phone-rac-DS7ffO6T.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-BiqiJ-Nc.js → bookings-rich-text-rac-BNWI0o60.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-x-PZaFOf.js → checkbox-field-rac-CUKZ9NHF.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-oeTynU3y.js → checkbox-group-field-headless-Didam2ZD.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-2fyiwyB3.js → checkbox-group-field-rac-C3WCeVA8.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-BjXQ8PDF.js → checkbox-group-rac-Bkq-wm7_.js} +1 -1
  14. package/dist/component/{checkbox-rac-Kyj7Zwpu.js → checkbox-rac-66ga9Lph.js} +1 -1
  15. package/dist/component/{contacts-address-rac-Ce7LFuRD.js → contacts-address-rac-DSOk97te.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-B5eul9At.js → contacts-birthdate-rac-1qguKm9O.js} +1 -1
  17. package/dist/component/{contacts-company-rac-ltD1Z-1i.js → contacts-company-rac-Chefzmw3.js} +1 -1
  18. package/dist/component/{contacts-email-rac-s0BcVZG9.js → contacts-email-rac-DG6eAnz2.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-m5ZgJ7dk.js → contacts-first-name-rac-tSGE0w5w.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-DrV5F6_x.js → contacts-last-name-rac-BjZWfbM5.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BI3_TWL9.js → contacts-phone-rac-jfGNKLoZ.js} +1 -1
  22. package/dist/component/{contacts-position-rac-BtFToj0w.js → contacts-position-rac-kv8I-m_Q.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-CjwWYOJi.js → contacts-subscribe-rac-BkUG0AMs.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-C1xi3GeO.js → contacts-tax-id-rac-BtFrK_Ci.js} +1 -1
  25. package/dist/component/{date-availability-CULQxWpk.js → date-availability-_A9DS6za.js} +1 -1
  26. package/dist/component/{date-input-field-rac-BkAyC-pf.js → date-input-field-rac-QZUxFX5e.js} +6 -6
  27. package/dist/component/{date-input-rac-CLXlmHfL.js → date-input-rac-CpseQkV4.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-SJJANtKU.js → date-picker-field-rac-B4gjhxG6.js} +6 -6
  29. package/dist/component/{date-picker-rac-D0K5YwTe.js → date-picker-rac-DDJfUDCM.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-DEz6KUnw.js → date-time-input-field-rac-DcwKQKHf.js} +6 -6
  31. package/dist/component/{date-time-input-rac-Cfmh9782.js → date-time-input-rac-BkvcyU3H.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-Cnr0LnHA.js → dext-checkbox-group-rac-UWDhIjU-.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-C6r_za2s.js → dext-checkbox-rac-q9UJnqsC.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-CVZlRxA_.js → dext-date-picker-rac-C164FDSF.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-cBfbJN6M.js → dext-date-time-input-rac-BvbnfRYU.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-Jp3ECOrR.js → dext-dropdown-rac-z0xU1mRO.js} +1 -1
  37. package/dist/component/{dext-email-rac-CTPOiOAK.js → dext-email-rac-BkiWpfNw.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-B3buLRvv.js → dext-number-input-rac-DeQWO-RK.js} +1 -1
  39. package/dist/component/{dext-phone-rac-5h0Q4A0A.js → dext-phone-rac-CGlVpadW.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-C5KL3ImR.js → dext-radio-group-rac-D8hMWNIQ.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-cA6kt-Kx.js → dext-rating-input-rac-ibIctxU_.js} +1 -1
  42. package/dist/component/{dext-tags-rac-DId_ouLg.js → dext-tags-rac-snCgM6u0.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-a_Ctq-nW.js → dext-text-area-rac-BHVs8ixR.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-Celrb1dd.js → dext-text-input-rac-DGI747Od.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-DhDFh4bJ.js → dext-url-input-rac-CpO2VDPE.js} +1 -1
  46. package/dist/component/{donation-rac-D9Mp3tdd.js → donation-rac-Ck6HkRcW.js} +5 -5
  47. package/dist/component/{dropdown-field-headless-DV-5awlM.js → dropdown-field-headless-Bv6LrkeA.js} +5 -5
  48. package/dist/component/{dropdown-field-rac-CLkVHVA1.js → dropdown-field-rac-e5MjWn5B.js} +3 -3
  49. package/dist/component/{dropdown-rac-Ct-aswuU.js → dropdown-rac-B2jprC8G.js} +1 -1
  50. package/dist/component/{ecom-address-rac-DVPknl-N.js → ecom-address-rac-D0stOqRv.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-CKgGWrh-.js → ecom-subscription-checkbox-rac-BRzaQKx3.js} +2 -2
  52. package/dist/component/{email-input-field-rac-OWZo2iom.js → email-input-field-rac-0UIjNipg.js} +3 -3
  53. package/dist/component/{events-repeater-rac-DCabB0du.js → events-repeater-rac-BBQZzP7U.js} +4 -4
  54. package/dist/component/{events-rsvp-rac-DxRgqNul.js → events-rsvp-rac-Ck7BXGKy.js} +3 -3
  55. package/dist/component/{field-error-headless-Dk7k-KYB.js → field-error-headless-vApyo-y9.js} +1 -1
  56. package/dist/component/{field-label-headless-y39tsCsZ.js → field-label-headless-C8-ShLxy.js} +1 -1
  57. package/dist/component/{file-upload-rac-C4WD5qpr.js → file-upload-rac-BzWJOM6C.js} +4 -4
  58. package/dist/component/{fixed-payment-rac-DKcK_tmF.js → fixed-payment-rac-C4_xI103.js} +3 -3
  59. package/dist/component/{form-DLDT85R3.js → form-D7ulDPh1.js} +69 -69
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +1 -1
  62. package/dist/component/{header-field-rac-ogGgRx6j.js → header-field-rac-BnBbhsOZ.js} +2 -2
  63. package/dist/component/{header-rac-iFaKa8f4.js → header-rac-CEWayr6b.js} +1 -1
  64. package/dist/component/{image-choice-rac-DfNqokUb.js → image-choice-rac-DTZrz6oP.js} +4 -4
  65. package/dist/component/{index-Dul6nI_B.js → index-CKtw7kvn.js} +4 -4
  66. package/dist/component/{index-ByrW-HXz.js → index-DBbgIHYT.js} +2 -2
  67. package/dist/component/{isObjectLike-DFXNzcW0.js → isObjectLike-BHfPE26c.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-CNUJS91c.js → multiline-address-field-rac-jhcWn4wT.js} +7 -7
  69. package/dist/component/{multiline-address-rac-CPjFn5Gy.js → multiline-address-rac-YQj_QROS.js} +1 -1
  70. package/dist/component/{number-input-field-rac-Bt19FjdI.js → number-input-field-rac-A7xM2c6F.js} +4 -4
  71. package/dist/component/{number-input-rac-Dae61Bec.js → number-input-rac-DeDatLY5.js} +1 -1
  72. package/dist/component/{password-rac-B7tvoqt9.js → password-rac-7Si7JHee.js} +4 -4
  73. package/dist/component/{payment-input-rac-BXu5WL3D.js → payment-input-rac-D4JKZl-5.js} +4 -4
  74. package/dist/component/{phone-input-field-rac-C9BDbA2d.js → phone-input-field-rac-GxcQ_Pyl.js} +6 -6
  75. package/dist/component/{phone-rac-C3_9F6v7.js → phone-rac-Y2mWnseb.js} +1 -1
  76. package/dist/component/{product-list-rac-CCofgn5n.js → product-list-rac-CYUcNqf3.js} +4 -4
  77. package/dist/component/{quiz-radio-group-rac-CbgIWiXV.js → quiz-radio-group-rac-f3O7fksW.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-BM9JBNUT.js → radio-button-module-classes-BgVUqcvD.js} +3 -3
  79. package/dist/component/{radio-group-field-rac-B-lyFud_.js → radio-group-field-rac-DrOiyk5C.js} +4 -4
  80. package/dist/component/{radio-group-rac-D9M0dAMi.js → radio-group-rac-Btt_bz_K.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-pUUIQrrg.js → rating-input-field-rac-CwN7wyaw.js} +4 -4
  82. package/dist/component/{rating-input-rac-CLkZVIk_.js → rating-input-rac-sTy0SV3L.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-FwArrWcN.js → rich-content-rac.module-C11w9mXa.js} +1 -1
  84. package/dist/component/{rich-text-field-rac-DIt4OKaV.js → rich-text-field-rac-kGwuDtNs.js} +2 -2
  85. package/dist/component/{rich-text-rac-CUVXdxHj.js → rich-text-rac-T4ic2hrA.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-BtvnLQzE.js → service-dropdown-rac-BfliE4hs.js} +4 -4
  87. package/dist/component/{services-multi-choice-rac-Dcwixkmz.js → services-multi-choice-rac-CLQ4dLxO.js} +5 -5
  88. package/dist/component/{signature-rac-T2mxYE6y.js → signature-rac-DLiFeCNL.js} +4 -4
  89. package/dist/component/{submit-button-rac-7f5ljpl2.js → submit-button-rac-CccO80E1.js} +2 -2
  90. package/dist/component/{tags-field-rac-mjYhQFhJ.js → tags-field-rac-DaghCGJU.js} +5 -5
  91. package/dist/component/{tags-rac-CTJf0X1i.js → tags-rac-3ly5shW2.js} +1 -1
  92. package/dist/component/{text-area-field-rac-1ODzSZeG.js → text-area-field-rac-2-TYC5Lb.js} +4 -4
  93. package/dist/component/{text-area-rac-CJz4kwRV.js → text-area-rac-Bx0pgw80.js} +1 -1
  94. package/dist/component/{text-input-field-rac-Cl6vApZ6.js → text-input-field-rac-Dyur2Wby.js} +3 -3
  95. package/dist/component/{text-input-headless-CziSavtB.js → text-input-headless-DZ-Pjpm4.js} +3 -3
  96. package/dist/component/{text-input-rac-DSnAqQmb.js → text-input-rac-BuBtJDX_.js} +1 -1
  97. package/dist/component/{time-input-rac-BX1vg4gy.js → time-input-rac-AlDEpfXZ.js} +4 -4
  98. package/dist/component/{url-input-field-rac-CFYK2mFr.js → url-input-field-rac-BzP4-8yP.js} +4 -4
  99. package/dist/component/{url-input-rac-BBbbaYk7.js → url-input-rac-DaBXuedf.js} +1 -1
  100. package/dist/component/{use-dropdown-trigger-class-name-xAxAlTKU.js → use-dropdown-trigger-class-name-BKOFwNvc.js} +3 -3
  101. package/dist/component/{use-element-state-class-name-DoNi06OU.js → use-element-state-class-name-DY0UyIQg.js} +1 -1
  102. package/dist/component/{use-hoverable-input-class-name-CM5BhwNW.js → use-hoverable-input-class-name-C_Wh4Qfc.js} +2 -2
  103. package/dist/component/{use-is-forced-open-dropdown-Ds2ghFRN.js → use-is-forced-open-dropdown-Bw_IFUKt.js} +1 -1
  104. package/dist/component/{use-service-options-base-BN6XeglC.js → use-service-options-base-DgSaAuGy.js} +1 -1
  105. package/dist/component/use-text-input-class-name-DFMQAg_E.js +6 -0
  106. package/package.json +2 -2
  107. package/dist/component/use-text-input-class-name-DVmUTFro.js +0 -6
@@ -1,4 +1,4 @@
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";
1
+ import o, { useRef as X, useState as Q, useEffect as P, createContext as Ke, useContext as $e, useMemo as W, 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";
@@ -6,21 +6,21 @@ 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
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, R 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-DLDT85R3.js";
10
- import { u as gt } from "./use-element-state-class-name-DoNi06OU.js";
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
- import { f as T, a as Ee } from "./find-child-C60k4CxG.js";
13
- import { D as wt, E as Ft } from "./field-error-headless-Dk7k-KYB.js";
14
- import { L as ht } from "./field-label-headless-y39tsCsZ.js";
9
+ import { bg as De, bf as mt, bk as ge, by as ut, bx as dt, bo as ie, bl as le, bq as ft, bn as Dt, F as Et, h as St, R as _t, a0 as pt, g as Nt, j as xe, i as yt, m as At, k as It, H as Lt, v as Ot, l as Tt } from "./form-D7ulDPh1.js";
10
+ import { u as bt } from "./use-element-state-class-name-DY0UyIQg.js";
11
+ import { ListBox as gt, Button as ve, ListBoxItem as vt, RadioGroup as kt, RadioField as Rt, RadioButton as Mt } from "react-aria-components";
12
+ import { f as g, a as Ee } from "./find-child-C60k4CxG.js";
13
+ import { D as wt, E as Ft } from "./field-error-headless-vApyo-y9.js";
14
+ import { L as ht } from "./field-label-headless-C8-ShLxy.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";
18
- function Wt(e) {
18
+ function xt(e) {
19
19
  return { evid: 40, src: 16, endpoint: "", params: e };
20
20
  }
21
- var Le = /* @__PURE__ */ (function(e) {
21
+ var Oe = /* @__PURE__ */ (function(e) {
22
22
  return e.BOOKING_NOT_INSTALL = "BOOKING_NOT_INSTALL", e.NO_AVAILABILITY_DATES_FOUND = "NO_AVAILABILITY_DATES_FOUND", e.GENERAL = "GENERAL", e;
23
- })({}), z = /* @__PURE__ */ (function(e) {
23
+ })({}), B = /* @__PURE__ */ (function(e) {
24
24
  return e.LOADING = "LOADING", e.DONE = "DONE", e.ERROR = "ERROR", e;
25
25
  })({});
26
26
  const q = 4;
@@ -29,14 +29,14 @@ var J = /* @__PURE__ */ (function(e) {
29
29
  })({}), ne = /* @__PURE__ */ (function(e) {
30
30
  return e.LOAD = "load", e.CLICK = "click", e;
31
31
  })({});
32
- const Bt = (e) => {
32
+ const Wt = (e) => {
33
33
  var t;
34
34
  return {
35
35
  bookingsServiceId: e == null ? void 0 : e.id,
36
36
  formGuid: (t = e == null ? void 0 : e.form) == null ? void 0 : t.id,
37
- serviceProperties: zt(e)
37
+ serviceProperties: Bt(e)
38
38
  };
39
- }, zt = (e) => {
39
+ }, Bt = (e) => {
40
40
  var t;
41
41
  return JSON.stringify({
42
42
  serviceId: e == null ? void 0 : e.id,
@@ -51,24 +51,24 @@ const Bt = (e) => {
51
51
  if (!(n || a))
52
52
  return {
53
53
  ...s,
54
- report: (l) => s == null ? void 0 : s.report(Wt({
55
- ...Bt(r),
54
+ report: (l) => s == null ? void 0 : s.report(xt({
55
+ ...Wt(r),
56
56
  ...l
57
57
  }))
58
58
  };
59
59
  };
60
- var Oe;
60
+ var Te;
61
61
  (function(e) {
62
62
  e.UNDEFINED = "UNDEFINED", e.OWNER_BUSINESS = "OWNER_BUSINESS", e.OWNER_CUSTOM = "OWNER_CUSTOM", e.CUSTOM = "CUSTOM";
63
- })(Oe || (Oe = {}));
64
- var Be;
63
+ })(Te || (Te = {}));
64
+ var We;
65
65
  (function(e) {
66
66
  e.UNKNOWN_REQUESTED_GENDER = "UNKNOWN_REQUESTED_GENDER", e.ANY_MALE = "ANY_MALE", e.ANY_FEMALE = "ANY_FEMALE";
67
- })(Be || (Be = {}));
68
- var ze;
67
+ })(We || (We = {}));
68
+ var Be;
69
69
  (function(e) {
70
70
  e.UNKNOWN_LOCATION_TYPE = "UNKNOWN_LOCATION_TYPE", e.BUSINESS = "BUSINESS", e.CUSTOM = "CUSTOM", e.CUSTOMER = "CUSTOMER";
71
- })(ze || (ze = {}));
71
+ })(Be || (Be = {}));
72
72
  var Pe;
73
73
  (function(e) {
74
74
  e.UNKNOWN_REQUESTED_GENDER = "UNKNOWN_REQUESTED_GENDER", e.ANY_MALE = "ANY_MALE", e.ANY_FEMALE = "ANY_FEMALE";
@@ -80,7 +80,7 @@ var Ue;
80
80
  const Pt = (e) => {
81
81
  const { service: t } = e || {};
82
82
  return (t == null ? void 0 : t.id) ? null : {
83
- type: Le.GENERAL,
83
+ type: Oe.GENERAL,
84
84
  message: "Service ID is missing"
85
85
  };
86
86
  }, Ut = ({ appointmentFieldProps: e, isEditor: t, isComposer: n }) => {
@@ -89,21 +89,21 @@ const Pt = (e) => {
89
89
  return {
90
90
  ...s,
91
91
  timezone: Ve(),
92
- dataStatus: z.DONE
92
+ dataStatus: B.DONE
93
93
  };
94
94
  {
95
95
  const r = Pt(a);
96
96
  if (r)
97
97
  return {
98
- dataStatus: z.ERROR,
98
+ dataStatus: B.ERROR,
99
99
  error: r
100
100
  };
101
101
  }
102
102
  return {
103
103
  ...s,
104
- dataStatus: z.LOADING
104
+ dataStatus: B.LOADING
105
105
  };
106
- }, xt = (e, t) => {
106
+ }, zt = (e, t) => {
107
107
  const n = /* @__PURE__ */ new Date(), a = new Date(n);
108
108
  a.setMonth(a.getMonth() + e);
109
109
  const s = new Date(n.toLocaleString("en-US", {
@@ -126,13 +126,13 @@ const Pt = (e) => {
126
126
  u.setMinutes(u.getMinutes() + e);
127
127
  let S = !1;
128
128
  for (; u.getHours() < c || u.getHours() === c && u.getMinutes() === 0; ) {
129
- const g = {
129
+ const b = {
130
130
  slot: {
131
131
  serviceId: n,
132
132
  startDate: D.toISOString(),
133
133
  endDate: u.toISOString(),
134
134
  location: {
135
- locationType: Oe.CUSTOM
135
+ locationType: Te.CUSTOM
136
136
  }
137
137
  },
138
138
  bookable: !0,
@@ -145,7 +145,7 @@ const Pt = (e) => {
145
145
  },
146
146
  nestedSlots: []
147
147
  };
148
- r.push(g), S || (s.push(g), S = !0), D = new Date(u), u = new Date(D), u.setMinutes(u.getMinutes() + e);
148
+ r.push(b), S || (s.push(b), S = !0), D = new Date(u), u = new Date(D), u.setMinutes(u.getMinutes() + e);
149
149
  }
150
150
  return {
151
151
  availabilitySlots: r,
@@ -157,21 +157,21 @@ const Pt = (e) => {
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 = X(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 } = ge(), c = X(l);
161
161
  c.current = l;
162
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
- var b, I, U, x, H;
165
+ var I, L, U, z, H;
166
166
  const M = Ve(), y = {
167
167
  currentSlotBulkSize: q,
168
168
  timezone: M,
169
- dataStatus: z.LOADING
169
+ dataStatus: B.LOADING
170
170
  };
171
171
  try {
172
172
  const Y = async (oe) => {
173
173
  var _, p;
174
- const { startDate: $, endDate: w } = xt(oe, M);
174
+ const { startDate: $, endDate: w } = zt(oe, M);
175
175
  return (p = (_ = c.current) == null ? void 0 : _.getAvailabilityDates) == null ? void 0 : p.call(_, {
176
176
  serviceId: i,
177
177
  fromDate: $,
@@ -179,20 +179,20 @@ function Kt(e) {
179
179
  timeZone: M
180
180
  });
181
181
  };
182
- if (y.availabilityDates = await Y(2), (b = y.availabilityDates) != null && b.length || (y.availabilityDates = await Y(6)), !((I = y.availabilityDates) != null && I.length)) {
182
+ if (y.availabilityDates = await Y(2), (I = y.availabilityDates) != null && I.length || (y.availabilityDates = await Y(6)), !((L = y.availabilityDates) != null && L.length)) {
183
183
  E == null || E.report({
184
184
  action: ne.LOAD,
185
185
  component: J.NO_AVAILABILITY_AT_ALL
186
186
  }), S({
187
- dataStatus: z.ERROR,
187
+ dataStatus: B.ERROR,
188
188
  error: {
189
- type: Le.NO_AVAILABILITY_DATES_FOUND,
189
+ type: Oe.NO_AVAILABILITY_DATES_FOUND,
190
190
  message: "No availability dates found"
191
191
  }
192
192
  });
193
193
  return;
194
194
  }
195
- y.selectedDate = Ht(y.availabilityDates), y.selectedDate && (y.availabilitySlots = await ((x = (U = c.current) == null ? void 0 : U.getAvailabilitySlots) == null ? void 0 : x.call(U, {
195
+ y.selectedDate = Ht(y.availabilityDates), y.selectedDate && (y.availabilitySlots = await ((z = (U = c.current) == null ? void 0 : U.getAvailabilitySlots) == null ? void 0 : z.call(U, {
196
196
  serviceId: i,
197
197
  timeZone: M,
198
198
  selectedDate: y.selectedDate
@@ -201,13 +201,13 @@ function Kt(e) {
201
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
- dataStatus: z.DONE
204
+ dataStatus: B.DONE
205
205
  });
206
206
  } catch (Y) {
207
207
  console.error(Y), S({
208
- dataStatus: z.ERROR,
208
+ dataStatus: B.ERROR,
209
209
  error: {
210
- type: Le.GENERAL,
210
+ type: Oe.GENERAL,
211
211
  message: "An error occurred in initialAppointmentState"
212
212
  }
213
213
  });
@@ -264,18 +264,18 @@ const qe = /* @__PURE__ */ Ke({
264
264
  startDate: e == null ? void 0 : e.startDate,
265
265
  endDate: e == null ? void 0 : e.endDate,
266
266
  timeZone: e == null ? void 0 : e.timeZone
267
- }, xe = ({ timezone: e, language: t, formatType: n }) => {
267
+ }, ze = ({ timezone: e, language: t, formatType: n }) => {
268
268
  var s;
269
269
  return (s = new Intl.DateTimeFormat(t, {
270
270
  timeZone: e,
271
271
  timeZoneName: n === "name" ? "long" : "short"
272
272
  }).formatToParts(/* @__PURE__ */ new Date()).find(({ type: r }) => r === "timeZoneName")) == null ? void 0 : s.value;
273
273
  }, Vt = ({ timezone: e, language: t }) => {
274
- const n = xe({
274
+ const n = ze({
275
275
  timezone: e,
276
276
  language: t,
277
277
  formatType: "name"
278
- }), a = xe({
278
+ }), a = ze({
279
279
  timezone: e,
280
280
  language: t,
281
281
  formatType: "offset"
@@ -290,13 +290,13 @@ const qe = /* @__PURE__ */ Ke({
290
290
  toDate: a
291
291
  };
292
292
  }, jt = ({ setIsReloadingSlots: e }) => {
293
- const { appointmentFieldProps: t, appointmentState: n, setAppointmentState: a } = ke(), { value: s } = t, { actions: r } = Te();
293
+ const { appointmentFieldProps: t, appointmentState: n, setAppointmentState: a } = ke(), { value: s } = t, { actions: r } = ge();
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 && !ae(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) === B.DONE && !ae(new Date(s.startDate), n == null ? void 0 : n.selectedDate)) {
298
298
  e(!0);
299
- const u = new Date(s.startDate), { fromDate: S, toDate: E } = qt(u, 8), [d, g] = await Promise.all([
299
+ const u = new Date(s.startDate), { fromDate: S, toDate: E } = qt(u, 8), [d, b] = await Promise.all([
300
300
  (l = r == null ? void 0 : r.getAvailabilityDates) == null ? void 0 : l.call(r, {
301
301
  serviceId: t == null ? void 0 : t.initialData.service.id,
302
302
  timeZone: (n == null ? void 0 : n.timezone) || "",
@@ -312,7 +312,7 @@ const qe = /* @__PURE__ */ Ke({
312
312
  a({
313
313
  availabilityDates: d,
314
314
  selectedDate: u,
315
- availabilitySlots: g
315
+ availabilitySlots: b
316
316
  }), e(!1);
317
317
  }
318
318
  })();
@@ -366,7 +366,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
366
366
  s,
367
367
  r
368
368
  ]), n;
369
- }, j = 7, ge = (e) => {
369
+ }, j = 7, be = (e) => {
370
370
  const t = new Date(e);
371
371
  return t.setHours(0, 0, 0, 0), t;
372
372
  }, sn = (e) => {
@@ -376,7 +376,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
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 + j) % j;
379
+ const n = be(e), a = (n.getDay() - t + j) % j;
380
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, {
@@ -389,60 +389,60 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
389
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] = Q(!1), [S, E] = Q(!1), [d, g] = Q(), [M, y] = Q();
392
+ const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } = ke(), { language: a, isEditor: s, isComposer: r } = De(), { t: i } = ut(), { actions: l } = ge(), c = Ze(), [D, u] = Q(!1), [S, E] = Q(!1), [d, b] = 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: 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({
396
+ const { onChange: I, value: L, target: U, initialData: z, formatDescription: H, locationType: Y, error: oe } = e, { availabilityDates: $, availabilitySlots: w, timezone: _ = "", selectedDate: p, currentSlotBulkSize: k, dataStatus: G, error: Z } = t, K = (Fe = z == null ? void 0 : z.service) == null ? void 0 : Fe.id, V = G === B.LOADING, ee = D || S, Se = !!Z, Me = on({
397
397
  error: oe,
398
- selectedSlot: I
399
- }), A = B(() => Qt(w, Me), [
398
+ selectedSlot: L
399
+ }), A = W(() => Qt(w, Me), [
400
400
  w,
401
401
  Me
402
402
  ]);
403
403
  P(() => {
404
- b == null || b(Zt(I));
404
+ I == null || I(Zt(L));
405
405
  }, [
406
- I == null ? void 0 : I.startDate,
407
- I == null ? void 0 : I.endDate,
406
+ L == null ? void 0 : L.startDate,
407
+ L == null ? void 0 : L.endDate,
408
408
  _
409
409
  ]), dt((f) => {
410
- const L = f == null ? void 0 : f[U];
410
+ const O = f == null ? void 0 : f[U];
411
411
  w != null && w.length && n({
412
- availabilitySlots: w.filter((O) => {
412
+ availabilitySlots: w.filter((T) => {
413
413
  var R;
414
- return ((R = O == null ? void 0 : O.slot) == null ? void 0 : R.startDate) !== (L == null ? void 0 : L.startDate);
414
+ return ((R = T == null ? void 0 : T.slot) == null ? void 0 : R.startDate) !== (O == null ? void 0 : O.startDate);
415
415
  })
416
416
  });
417
417
  }), P(() => {
418
418
  if (A != null && A.length && k) {
419
- const f = en(de(I ?? void 0), A);
419
+ const f = en(de(L ?? void 0), A);
420
420
  f && f + 1 > k && n({
421
421
  currentSlotBulkSize: f + 1
422
422
  });
423
- } else !(A != null && A.length) && I && (b == null || b(void 0));
423
+ } else !(A != null && A.length) && L && (I == null || I(void 0));
424
424
  }, [
425
- I,
425
+ L,
426
426
  A,
427
427
  $
428
428
  ]);
429
- const _e = B(() => ct(a), [
429
+ const _e = W(() => ct(a), [
430
430
  a
431
431
  ]), we = X(p);
432
432
  P(() => {
433
433
  const f = we.current;
434
- we.current = p, !!p && (!f || !ae(f, p)) && g(void 0);
434
+ we.current = p, !!p && (!f || !ae(f, p)) && b(void 0);
435
435
  }, [
436
436
  p
437
437
  ]);
438
- const h = B(() => d ?? He(p ?? /* @__PURE__ */ new Date(), _e), [
438
+ const h = W(() => d ?? He(p ?? /* @__PURE__ */ new Date(), _e), [
439
439
  d,
440
440
  p,
441
441
  _e
442
- ]), Xe = B(() => {
443
- const f = ge(/* @__PURE__ */ new Date()), L = new Intl.DateTimeFormat(a, {
442
+ ]), Xe = W(() => {
443
+ const f = be(/* @__PURE__ */ new Date()), O = new Intl.DateTimeFormat(a, {
444
444
  weekday: "short"
445
- }), O = new Intl.DateTimeFormat(a, {
445
+ }), T = new Intl.DateTimeFormat(a, {
446
446
  day: "numeric"
447
447
  }), R = new Intl.DateTimeFormat(a, {
448
448
  weekday: "long",
@@ -451,18 +451,18 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
451
451
  });
452
452
  return Array.from({
453
453
  length: j
454
- }, (se, be) => {
455
- const W = te(h, be), Ie = !!p && ae(W, p), rt = ge(W) < f;
454
+ }, (se, Ie) => {
455
+ const x = te(h, Ie), Le = !!p && ae(x, p), rt = be(x) < f;
456
456
  return {
457
- key: rn(W),
458
- date: W,
459
- isSelected: Ie,
460
- isAvailable: !V && !ee && !Ie && cn(W, $),
461
- isDisabled: rt || ee && !Ie,
462
- isToday: ae(W, f),
463
- dayOfMonthLabel: O.format(W),
464
- weekdayLabel: L.format(W),
465
- label: R.format(W),
457
+ key: rn(x),
458
+ date: x,
459
+ isSelected: Le,
460
+ isAvailable: !V && !ee && !Le && cn(x, $),
461
+ isDisabled: rt || ee && !Le,
462
+ isToday: ae(x, f),
463
+ dayOfMonthLabel: T.format(x),
464
+ weekdayLabel: O.format(x),
465
+ label: R.format(x),
466
466
  availabilityLabel: i("form.appointment.accessibility.calendar.has-availability.aria-label")
467
467
  };
468
468
  });
@@ -474,22 +474,22 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
474
474
  ee,
475
475
  a,
476
476
  i
477
- ]), pe = de(I ?? void 0) || void 0, Ne = B(() => V || D ? [] : (A ?? []).slice(0, k).flatMap((f) => {
478
- const { startDate: L, endDate: O } = f.slot ?? {};
479
- if (!L || !O)
477
+ ]), pe = de(L ?? void 0) || void 0, Ne = W(() => V || D ? [] : (A ?? []).slice(0, k).flatMap((f) => {
478
+ const { startDate: O, endDate: T } = f.slot ?? {};
479
+ if (!O || !T)
480
480
  return [];
481
481
  const R = de({
482
- startDate: L,
483
- endDate: O
482
+ startDate: O,
483
+ endDate: T
484
484
  });
485
485
  return [
486
486
  {
487
487
  key: R,
488
- startDate: L,
489
- endDate: O,
488
+ startDate: O,
489
+ endDate: T,
490
490
  timeRange: Jt({
491
- startDate: L,
492
- endDate: O,
491
+ startDate: O,
492
+ endDate: T,
493
493
  locale: a,
494
494
  timezone: _
495
495
  }),
@@ -506,9 +506,9 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
506
506
  pe
507
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
- var L;
509
+ var O;
510
510
  if (!(ee || p && ae(f, p))) {
511
- u(!0), b == null || b(void 0), n({
511
+ u(!0), I == null || I(void 0), n({
512
512
  currentSlotBulkSize: q,
513
513
  selectedDate: f,
514
514
  availabilitySlots: void 0
@@ -517,7 +517,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
517
517
  component: J.DATE
518
518
  });
519
519
  try {
520
- const O = await ((L = l == null ? void 0 : l.getAvailabilitySlots) == null ? void 0 : L.call(l, {
520
+ const T = await ((O = l == null ? void 0 : l.getAvailabilitySlots) == null ? void 0 : O.call(l, {
521
521
  serviceId: K,
522
522
  timeZone: _,
523
523
  selectedDate: f
@@ -525,7 +525,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
525
525
  n({
526
526
  currentSlotBulkSize: q,
527
527
  selectedDate: f,
528
- availabilitySlots: O
528
+ availabilitySlots: T
529
529
  });
530
530
  } catch {
531
531
  } finally {
@@ -540,7 +540,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
540
540
  K,
541
541
  _,
542
542
  l,
543
- b,
543
+ I,
544
544
  c
545
545
  ]
546
546
  ), ce = X(0), tt = re(
@@ -548,8 +548,8 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
548
548
  var se;
549
549
  if (f < 0 && !Ae)
550
550
  return;
551
- const L = h, O = te(h, f * j);
552
- if (g(O), s || r)
551
+ const O = h, T = te(h, f * j);
552
+ if (b(T), s || r)
553
553
  return;
554
554
  const R = ++ce.current;
555
555
  E(!0), c == null || c.report({
@@ -557,17 +557,17 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
557
557
  component: J.PAGINATION
558
558
  });
559
559
  try {
560
- const be = await ((se = l == null ? void 0 : l.getAvailabilityDates) == null ? void 0 : se.call(l, {
560
+ const Ie = await ((se = l == null ? void 0 : l.getAvailabilityDates) == null ? void 0 : se.call(l, {
561
561
  serviceId: K,
562
562
  timeZone: _,
563
- fromDate: O,
564
- toDate: sn(te(O, j - 1))
563
+ fromDate: T,
564
+ toDate: sn(te(T, j - 1))
565
565
  }));
566
566
  R === ce.current && n({
567
- availabilityDates: be
567
+ availabilityDates: Ie
568
568
  });
569
569
  } catch {
570
- R === ce.current && g(L);
570
+ R === ce.current && b(O);
571
571
  } finally {
572
572
  R === ce.current && E(!1);
573
573
  }
@@ -585,17 +585,17 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
585
585
  ]
586
586
  ), nt = re(
587
587
  (f) => {
588
- const L = Ne.find((se) => se.key === f);
589
- if (!L)
588
+ const O = Ne.find((se) => se.key === f);
589
+ if (!O)
590
590
  return;
591
- const { startDate: O, endDate: R } = L;
591
+ const { startDate: T, endDate: R } = O;
592
592
  c == null || c.report({
593
593
  action: ne.CLICK,
594
594
  component: J.SLOT,
595
- startTime: new Date(O).valueOf(),
595
+ startTime: new Date(T).valueOf(),
596
596
  endTime: new Date(R).valueOf()
597
- }), b == null || b({
598
- startDate: O,
597
+ }), I == null || I({
598
+ startDate: T,
599
599
  endDate: R,
600
600
  timeZone: _
601
601
  });
@@ -604,7 +604,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
604
604
  [
605
605
  Ne,
606
606
  _,
607
- b,
607
+ I,
608
608
  c
609
609
  ]
610
610
  ), at = re(() => {
@@ -621,7 +621,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
621
621
  ye,
622
622
  k,
623
623
  c
624
- ]), ot = re(() => y(void 0), []), st = B(() => {
624
+ ]), ot = re(() => y(void 0), []), st = W(() => {
625
625
  if (Se)
626
626
  return i("form.appointment.empty-state.notification.text");
627
627
  if (!V && !D && !(A != null && A.length))
@@ -678,22 +678,22 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
678
678
  const { disabled: e, readOnly: t } = ie();
679
679
  return !!e || !!t;
680
680
  }, C = ({ children: e, className: t }) => {
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), [
681
+ const { days: n, selectDate: a, weekRangeLabel: s } = F(), r = g(e, C.PreviousWeek), i = g(e, C.Heading), l = g(e, C.NextWeek), c = g(e, C.Day) ?? /* @__PURE__ */ o.createElement(C.Day, null), D = W(() => n.filter((d) => d.isSelected).map((d) => d.key), [
682
682
  n
683
- ]), u = Re(), S = B(() => n.filter((d) => u || d.isDisabled).map((d) => d.key), [
683
+ ]), u = Re(), S = W(() => n.filter((d) => u || d.isDisabled).map((d) => d.key), [
684
684
  n,
685
685
  u
686
686
  ]), E = (d) => {
687
687
  if (d === "all")
688
688
  return;
689
- const [g] = [
689
+ const [b] = [
690
690
  ...d
691
- ], M = n.find(({ key: y }) => y === g);
691
+ ], M = n.find(({ key: y }) => y === b);
692
692
  M && a(M.date);
693
693
  };
694
694
  return /* @__PURE__ */ o.createElement("div", {
695
695
  className: t
696
- }, r, i, l, /* @__PURE__ */ o.createElement(Tt, {
696
+ }, r, i, l, /* @__PURE__ */ o.createElement(gt, {
697
697
  "aria-label": s,
698
698
  orientation: "horizontal",
699
699
  selectionMode: "single",
@@ -715,7 +715,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
715
715
  if (D !== document.body && D !== l.current)
716
716
  return;
717
717
  const u = ((E = (S = l.current) == null ? void 0 : S.closest("fieldset")) == null ? void 0 : E.querySelectorAll("button")) ?? [];
718
- (d = Array.from(u).find((g) => g.getAttribute("aria-label") === r)) == null || d.focus();
718
+ (d = Array.from(u).find((b) => b.getAttribute("aria-label") === r)) == null || d.focus();
719
719
  }, [
720
720
  a,
721
721
  r
@@ -768,9 +768,9 @@ 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 } = 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
- x,
773
- a && u ? Qe(I) : void 0
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: b, readOnly: M, required: y, hasError: I } = ie(), { inputId: L, labelId: U, ariaDescribedBy: z } = le(), H = X(null), Y = g(e, fe.Slot) ?? /* @__PURE__ */ o.createElement(fe.Slot, null), oe = !!s && !!c, $ = [
772
+ z,
773
+ a && u ? Qe(L) : void 0
774
774
  ].filter(Boolean).join(" ") || void 0, w = (_, p) => {
775
775
  var k, G, Z;
776
776
  (Z = (G = (k = H.current) == null ? void 0 : k.querySelectorAll(Ye)) == null ? void 0 : G[_]) == null || Z.focus(p);
@@ -783,7 +783,7 @@ const Ye = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) =>
783
783
  });
784
784
  return;
785
785
  }
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");
786
+ const p = Array.from(((Z = document.getElementById(L)) == 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
787
  k == null || k.focus({
788
788
  preventScroll: !0
789
789
  });
@@ -800,11 +800,11 @@ const Ye = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) =>
800
800
  className: t,
801
801
  value: i ?? null,
802
802
  onChange: l,
803
- isDisabled: g,
803
+ isDisabled: b,
804
804
  isReadOnly: M,
805
805
  isRequired: y,
806
- isInvalid: b,
807
- "aria-labelledby": oe ? Je(I) : U,
806
+ isInvalid: I,
807
+ "aria-labelledby": oe ? Je(L) : U,
808
808
  "aria-describedby": $,
809
809
  "data-refetch": D || void 0
810
810
  }, r.map((_) => Ee(Y, {
@@ -822,7 +822,7 @@ const Ye = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) =>
822
822
  };
823
823
  fe.Slot = En;
824
824
  const m = ({ children: e, className: t }) => {
825
- const n = ie(), { id: a, FieldLayout: s } = n, { labelId: r, inputId: i, ariaDescribedBy: l } = le(), 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 = W(() => ({
826
826
  ...n,
827
827
  initialData: c,
828
828
  inputId: i,
@@ -836,7 +836,7 @@ const m = ({ children: e, className: t }) => {
836
836
  r,
837
837
  l,
838
838
  a
839
- ]), u = T(e, m.Label), S = T(e, m.Description), E = T(e, m.Error);
839
+ ]), u = g(e, m.Label), S = g(e, m.Description), E = g(e, m.Error);
840
840
  return /* @__PURE__ */ o.createElement(s, {
841
841
  fieldId: a,
842
842
  renderLabel: () => Ee(u, {
@@ -852,7 +852,7 @@ const m = ({ children: e, className: t }) => {
852
852
  }, Sn = {
853
853
  visibility: "hidden"
854
854
  }, _n = ({ children: e, className: t }) => {
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);
855
+ const { required: n, onFocus: a, onBlur: s } = ie(), { inputId: r, labelId: i, ariaDescribedBy: l } = le(), c = mn(), D = g(e, m.Loader), u = g(e, m.Notification), S = g(e, m.Dates), E = g(e, m.Timezone), d = g(e, m.Format), b = g(e, m.DateTitle), M = g(e, m.Slots), y = g(e, m.ShowMoreSlots);
856
856
  return /* @__PURE__ */ o.createElement(je.Provider, {
857
857
  value: c
858
858
  }, /* @__PURE__ */ o.createElement(Ct, {
@@ -865,9 +865,9 @@ const m = ({ children: e, className: t }) => {
865
865
  onBlur: s
866
866
  }, D, c.hasError ? u : /* @__PURE__ */ o.createElement("div", {
867
867
  style: c.isLoading ? Sn : void 0
868
- }, S, E, d, g, Ee(M, {
868
+ }, S, E, d, b, Ee(M, {
869
869
  hasTimezoneNote: !!E,
870
- hasDateTitle: !!g
870
+ hasDateTitle: !!b
871
871
  }), u, y)));
872
872
  }, pn = ({ children: e, className: t }) => {
873
873
  const { isLoading: n, isRefetching: a } = F();
@@ -901,7 +901,7 @@ const m = ({ children: e, className: t }) => {
901
901
  }, e ? e({
902
902
  label: n
903
903
  }) : n) : null;
904
- }, bn = ({ children: e, className: t }) => {
904
+ }, In = ({ children: e, className: t }) => {
905
905
  const { selectedDateLabel: n } = F(), { inputId: a } = le();
906
906
  return n ? /* @__PURE__ */ o.createElement("div", {
907
907
  id: Je(a),
@@ -909,7 +909,7 @@ const m = ({ children: e, className: t }) => {
909
909
  }, e ? e({
910
910
  label: n
911
911
  }) : n) : null;
912
- }, In = ({ children: e, className: t }) => {
912
+ }, Ln = ({ children: e, className: t }) => {
913
913
  const { hasMoreSlots: n, showMoreSlots: a, showMoreSlotsLabel: s } = F(), { disabled: r, readOnly: i } = ie();
914
914
  return n ? /* @__PURE__ */ o.createElement(ve, {
915
915
  className: t,
@@ -925,16 +925,16 @@ m.Notification = Nn;
925
925
  m.Dates = C;
926
926
  m.Timezone = yn;
927
927
  m.Format = An;
928
- m.DateTitle = bn;
928
+ m.DateTitle = In;
929
929
  m.Slots = fe;
930
- m.ShowMoreSlots = In;
930
+ m.ShowMoreSlots = Ln;
931
931
  m.Description = wt;
932
932
  m.Error = Ft;
933
- const Ln = "_appointment_ig6bz_1", On = "_dates_ig6bz_5", gn = "_weekHeading_ig6bz_27", Tn = "_weekButton_ig6bz_37", vn = "_previousWeek_ig6bz_69", kn = "_nextWeek_ig6bz_73", Rn = "_day_ig6bz_85", Mn = "_weekdayLabel_ig6bz_97", wn = "_dayNumber_ig6bz_110", Fn = "_indicator_ig6bz_114", hn = "_hint_ig6bz_137", Cn = "_slots_ig6bz_150", Wn = "_dateTitle_ig6bz_164", Bn = "_slot_ig6bz_150", zn = "_slotHover_ig6bz_206", Pn = "_slotSelected_ig6bz_214", Un = "_showMoreSlots_ig6bz_268", xn = "_loader_ig6bz_299", Hn = "_notification_ig6bz_335", N = {
934
- appointment: Ln,
935
- dates: On,
936
- weekHeading: gn,
937
- weekButton: Tn,
933
+ const On = "_appointment_14etx_1", Tn = "_dates_14etx_5", bn = "_weekHeading_14etx_30", gn = "_weekButton_14etx_36", vn = "_previousWeek_14etx_68", kn = "_nextWeek_14etx_72", Rn = "_day_14etx_84", Mn = "_weekdayLabel_14etx_94", wn = "_dayNumber_14etx_103", Fn = "_indicator_14etx_107", hn = "_hint_14etx_130", Cn = "_slots_14etx_143", xn = "_dateTitle_14etx_157", Wn = "_slot_14etx_143", Bn = "_slotHover_14etx_199", Pn = "_slotSelected_14etx_207", Un = "_showMoreSlots_14etx_261", zn = "_loader_14etx_292", Hn = "_notification_14etx_328", N = {
934
+ appointment: On,
935
+ dates: Tn,
936
+ weekHeading: bn,
937
+ weekButton: gn,
938
938
  previousWeek: vn,
939
939
  nextWeek: kn,
940
940
  day: Rn,
@@ -943,12 +943,12 @@ const Ln = "_appointment_ig6bz_1", On = "_dates_ig6bz_5", gn = "_weekHeading_ig6
943
943
  indicator: Fn,
944
944
  hint: hn,
945
945
  slots: Cn,
946
- dateTitle: Wn,
947
- slot: Bn,
948
- slotHover: zn,
946
+ dateTitle: xn,
947
+ slot: Wn,
948
+ slotHover: Bn,
949
949
  slotSelected: Pn,
950
950
  showMoreSlots: Un,
951
- loader: xn,
951
+ loader: zn,
952
952
  notification: Hn
953
953
  }, Yn = ({ content: e, locale: t }) => /* @__PURE__ */ o.createElement(it, {
954
954
  content: e,
@@ -958,8 +958,8 @@ const Ln = "_appointment_ig6bz_1", On = "_dates_ig6bz_5", gn = "_weekHeading_ig6
958
958
  selected: N.slotSelected,
959
959
  hover: N.slotHover
960
960
  }, $n = () => {
961
- const e = gt({
962
- globalClasses: Ot,
961
+ const e = bt({
962
+ globalClasses: Tt,
963
963
  moduleClasses: Kn
964
964
  });
965
965
  return /* @__PURE__ */ o.createElement(m, {
@@ -987,9 +987,9 @@ const Ln = "_appointment_ig6bz_1", On = "_dates_ig6bz_5", gn = "_weekHeading_ig6
987
987
  }, t.dayOfMonthLabel, /* @__PURE__ */ o.createElement("span", {
988
988
  className: N.indicator
989
989
  }))))), /* @__PURE__ */ o.createElement(m.Timezone, {
990
- className: v(We, N.hint)
990
+ className: v(xe, N.hint)
991
991
  }), /* @__PURE__ */ o.createElement(m.Format, {
992
- className: v(We, N.hint)
992
+ className: v(xe, N.hint)
993
993
  }), /* @__PURE__ */ o.createElement(m.DateTitle, {
994
994
  className: v(yt, N.dateTitle)
995
995
  }), /* @__PURE__ */ o.createElement(m.Slots, {
@@ -1002,11 +1002,11 @@ const Ln = "_appointment_ig6bz_1", On = "_dates_ig6bz_5", gn = "_weekHeading_ig6
1002
1002
  }, (t) => t.timeRange)), /* @__PURE__ */ o.createElement(m.Notification, {
1003
1003
  className: N.notification
1004
1004
  }), /* @__PURE__ */ o.createElement(m.ShowMoreSlots, {
1005
- className: v(bt, me, N.showMoreSlots)
1005
+ className: v(It, me, N.showMoreSlots)
1006
1006
  }), /* @__PURE__ */ o.createElement(m.Error, {
1007
- className: v(It, ue.error)
1007
+ className: v(Lt, ue.error)
1008
1008
  }, /* @__PURE__ */ o.createElement(lt, null), /* @__PURE__ */ o.createElement(m.Error.Text, null)), /* @__PURE__ */ o.createElement(m.Description, {
1009
- className: v(Lt, ue.description)
1009
+ className: v(Ot, ue.description)
1010
1010
  }, Yn));
1011
1011
  }, ca = () => /* @__PURE__ */ o.createElement($n, null);
1012
1012
  export {