@wix/form-elements 1.160.0 → 1.162.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 (115) hide show
  1. package/dist/component/{appointment-rac-BmHu56e5.js → appointment-rac-3Z1wiBX6.js} +366 -359
  2. package/dist/component/{bookings-address-rac-DY9l2g0h.js → bookings-address-rac-2zV-a8SW.js} +1 -1
  3. package/dist/component/{bookings-email-rac-B5vNSOsS.js → bookings-email-rac-C1WakVnh.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CJiefCNz.js → bookings-first-name-rac-6f18uXA0.js} +1 -1
  5. package/dist/component/{bookings-header-rac-BFu7Ko5w.js → bookings-header-rac-BeaxlPQl.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-DegMM13h.js → bookings-last-name-rac-CsLZaKfO.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DrA-5tBH.js → bookings-login-bar-rac-B3TRivWU.js} +5 -5
  8. package/dist/component/{bookings-phone-rac-DsaeqxCI.js → bookings-phone-rac-BnFEknvv.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-jRHiwqi8.js → bookings-rich-text-rac-CFPqDZay.js} +1 -1
  10. package/dist/component/{calendar.module-CKCBG_Pg.js → calendar.module-BMUyMVja.js} +19 -19
  11. package/dist/component/{checkbox-field-rac-CyoBb6Yf.js → checkbox-field-rac-DqGbxAd0.js} +45 -45
  12. package/dist/component/{checkbox-group-field-headless-Bv1gU3oL.js → checkbox-group-field-headless-CiobdaVa.js} +38 -38
  13. package/dist/component/{checkbox-group-field-rac-DasArcdV.js → checkbox-group-field-rac-Dxrc2F4x.js} +14 -14
  14. package/dist/component/{checkbox-group-rac-CzmufV1U.js → checkbox-group-rac-C3tL4YSr.js} +1 -1
  15. package/dist/component/{checkbox-indicator-module-classes-akWZsZNn.js → checkbox-indicator-module-classes-DUTR4mcg.js} +1 -1
  16. package/dist/component/{checkbox-rac-6C7XoUoZ.js → checkbox-rac-DhZsIMuk.js} +1 -1
  17. package/dist/component/{contacts-address-rac-BZobbFtz.js → contacts-address-rac--GiWpa6C.js} +1 -1
  18. package/dist/component/{contacts-birthdate-rac-DIzf41DS.js → contacts-birthdate-rac-CmI2nPpr.js} +1 -1
  19. package/dist/component/{contacts-company-rac-BiBDO28r.js → contacts-company-rac-DcSLvPnR.js} +1 -1
  20. package/dist/component/{contacts-email-rac-5mqokCSD.js → contacts-email-rac-BLOIHGP9.js} +1 -1
  21. package/dist/component/{contacts-first-name-rac-BXe3_Nz5.js → contacts-first-name-rac-DgMCKLeE.js} +1 -1
  22. package/dist/component/{contacts-last-name-rac-Cfqgh7u1.js → contacts-last-name-rac-tcEQP1Db.js} +1 -1
  23. package/dist/component/{contacts-phone-rac-cmLUWnAc.js → contacts-phone-rac-CK664cfW.js} +1 -1
  24. package/dist/component/{contacts-position-rac-DTyvklfN.js → contacts-position-rac-B8skwXy6.js} +1 -1
  25. package/dist/component/{contacts-subscribe-rac-D-ZEX1A3.js → contacts-subscribe-rac-DQZYJjMo.js} +1 -1
  26. package/dist/component/{contacts-tax-id-rac-B4NYJwWt.js → contacts-tax-id-rac-Ci24ixLu.js} +1 -1
  27. package/dist/component/{date-availability-Dach9aRC.js → date-availability-Va6_2NAZ.js} +1 -1
  28. package/dist/component/{date-input-field-rac-B72mHcya.js → date-input-field-rac-lAKyuHOI.js} +98 -98
  29. package/dist/component/{date-input-rac-CYix11gT.js → date-input-rac-ClEesupR.js} +1 -1
  30. package/dist/component/{date-picker-field-rac-B8pvtPir.js → date-picker-field-rac-h45jfoso.js} +72 -72
  31. package/dist/component/{date-picker-rac-D6cR0zH9.js → date-picker-rac-B-pvqBn0.js} +1 -1
  32. package/dist/component/{date-time-input-field-rac-B7Y3Yf5l.js → date-time-input-field-rac-41QpurJp.js} +72 -72
  33. package/dist/component/{date-time-input-rac-DMN-noQX.js → date-time-input-rac-BQOUl7It.js} +1 -1
  34. package/dist/component/{dext-checkbox-group-rac-Kq0GnteP.js → dext-checkbox-group-rac-C4Q6tfBD.js} +2 -2
  35. package/dist/component/{dext-checkbox-rac-BY9GZ4n1.js → dext-checkbox-rac-Yo2PHNDA.js} +1 -1
  36. package/dist/component/{dext-date-picker-rac-CXArIddp.js → dext-date-picker-rac-jM9x8W6a.js} +1 -1
  37. package/dist/component/{dext-date-time-input-rac-B39TtxGq.js → dext-date-time-input-rac-BgW_4WIg.js} +1 -1
  38. package/dist/component/{dext-dropdown-rac-C3y0G8cS.js → dext-dropdown-rac-DCL7D6-G.js} +1 -1
  39. package/dist/component/{dext-email-rac-BIg3cq7Q.js → dext-email-rac-Dz7yBqkd.js} +1 -1
  40. package/dist/component/{dext-number-input-rac-27sHJ7yN.js → dext-number-input-rac-BdMjBpH9.js} +1 -1
  41. package/dist/component/{dext-phone-rac-CcohoFQp.js → dext-phone-rac-D2i9fXL3.js} +1 -1
  42. package/dist/component/{dext-radio-group-rac-eead3Gve.js → dext-radio-group-rac-Br2f1Ahx.js} +2 -2
  43. package/dist/component/{dext-rating-input-rac-B_E6OcBr.js → dext-rating-input-rac-OkfJ7Eb0.js} +1 -1
  44. package/dist/component/{dext-tags-rac-Yd9aAtnF.js → dext-tags-rac-43vDoDdM.js} +2 -2
  45. package/dist/component/{dext-text-area-rac-CMACri2C.js → dext-text-area-rac-C072pWO9.js} +1 -1
  46. package/dist/component/{dext-text-input-rac-sNjSCfQ-.js → dext-text-input-rac-BiHJpJCt.js} +1 -1
  47. package/dist/component/{dext-url-input-rac-DwhbzJty.js → dext-url-input-rac-YOGYMj5C.js} +1 -1
  48. package/dist/component/{donation-rac-BVAN3kMk.js → donation-rac-fCt3mddA.js} +106 -106
  49. package/dist/component/{dropdown-field-rac-DdoGigWx.js → dropdown-field-rac-EQrQJ2-C.js} +4 -4
  50. package/dist/component/{dropdown-rac-CRkt5w47.js → dropdown-rac-MPCcjrFd.js} +1 -1
  51. package/dist/component/{ecom-address-rac-C36hFHW0.js → ecom-address-rac-DSgpHqzV.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-BKfQ348w.js → ecom-subscription-checkbox-rac-Dw6Ke0Fb.js} +2 -2
  53. package/dist/component/{email-input-field-rac-MOaISYxa.js → email-input-field-rac-DVmvH4u4.js} +80 -80
  54. package/dist/component/{events-repeater-rac-D6p-NgE8.js → events-repeater-rac-Uwpo7XF4.js} +25 -25
  55. package/dist/component/{events-rsvp-rac-DVpgN8gm.js → events-rsvp-rac-D2DJAkep.js} +4 -4
  56. package/dist/component/{field-error-headless-XNWmDH3E.js → field-error-headless-DAc8FpKI.js} +7 -7
  57. package/dist/component/{field-label-headless-CORRAJGt.js → field-label-headless-DxxwJtjh.js} +17 -17
  58. package/dist/component/field-rac.module-ts2t4WUO.js +25 -0
  59. package/dist/component/{file-upload-rac-DRMr7E4b.js → file-upload-rac-CBKIeaxX.js} +194 -194
  60. package/dist/component/{fixed-payment-rac-BUXzNex9.js → fixed-payment-rac-BsCDoc1p.js} +20 -20
  61. package/dist/component/{form-DSpx-AO8.js → form-GAuLAdjq.js} +338 -347
  62. package/dist/component/form.css +1 -1
  63. package/dist/component/form.js +1 -1
  64. package/dist/component/{header-field-rac-CiDXlNsa.js → header-field-rac-DtZCjzLJ.js} +6 -6
  65. package/dist/component/{header-rac-B5Rg-h8u.js → header-rac-B1hlVDf8.js} +1 -1
  66. package/dist/component/image-choice-rac-DQaCg_Xk.js +155 -0
  67. package/dist/component/{index-CwruESwc.js → index-BaVjVNYj.js} +5 -5
  68. package/dist/component/{index-Bz7ZhQsF.js → index-C1EXd9jU.js} +50 -50
  69. package/dist/component/{isObjectLike-C5dHxHP0.js → isObjectLike-m2dqIREj.js} +3 -3
  70. package/dist/component/{multiline-address-field-rac-Z-qF366L.js → multiline-address-field-rac-CMMdLb-J.js} +41 -41
  71. package/dist/component/{multiline-address-rac-CJIHTMw5.js → multiline-address-rac-VUQNp-Tz.js} +1 -1
  72. package/dist/component/{number-input-field-rac-D4vf6I6N.js → number-input-field-rac-B5bsGDKm.js} +24 -24
  73. package/dist/component/{number-input-rac-B2jW6JUQ.js → number-input-rac-BzzW0p9R.js} +1 -1
  74. package/dist/component/{password-rac-DGRZ17Jl.js → password-rac-2Rr7lvNO.js} +25 -25
  75. package/dist/component/{payment-input-rac-BtD-tAKv.js → payment-input-rac-CEUzIrJA.js} +31 -31
  76. package/dist/component/{phone-input-field-rac-KD4-APhr.js → phone-input-field-rac-BDBaqAzE.js} +59 -59
  77. package/dist/component/{phone-rac-Cw2yccgg.js → phone-rac-BTK8-tkq.js} +1 -1
  78. package/dist/component/{product-list-rac-XbzTDdbp.js → product-list-rac-1QbeT5RH.js} +43 -43
  79. package/dist/component/{quiz-radio-group-rac-BDw_mAw5.js → quiz-radio-group-rac-tn2CzdCu.js} +1 -1
  80. package/dist/component/{radio-button-module-classes-CFGf0Hzh.js → radio-button-module-classes-aK1SQcLG.js} +30 -30
  81. package/dist/component/{radio-group-field-rac-CXN7tyVu.js → radio-group-field-rac-DlMXhW_S.js} +7 -7
  82. package/dist/component/{radio-group-rac-COHzqjBh.js → radio-group-rac-BmU_5tBK.js} +1 -1
  83. package/dist/component/{rating-input-field-rac-DCXNZgf1.js → rating-input-field-rac-DUPJUAX2.js} +27 -27
  84. package/dist/component/{rating-input-rac-DwQt9ML7.js → rating-input-rac-BLhkZdj8.js} +1 -1
  85. package/dist/component/{rich-content-rac.module-B7rPwNns.js → rich-content-rac.module-C9bGXB69.js} +5 -5
  86. package/dist/component/{rich-text-field-rac-DlER7NRD.js → rich-text-field-rac-CVqmsZzZ.js} +6 -6
  87. package/dist/component/{rich-text-rac-CjicsHA7.js → rich-text-rac-D8K6445F.js} +1 -1
  88. package/dist/component/{service-dropdown-rac-B81LC_6_.js → service-dropdown-rac-PR_iLdmo.js} +31 -31
  89. package/dist/component/{services-multi-choice-rac-BR6gZeHk.js → services-multi-choice-rac-BvMadJCf.js} +19 -19
  90. package/dist/component/{signature-rac-XFj7Ddtp.js → signature-rac-Cpjv6kcl.js} +235 -235
  91. package/dist/component/{submit-button-rac-Bz7zs_3W.js → submit-button-rac-DpDk7cMb.js} +7 -7
  92. package/dist/component/{tags-field-rac-DWWkNKqc.js → tags-field-rac-DnyWNHXT.js} +67 -67
  93. package/dist/component/{tags-rac-BXyiQ9i1.js → tags-rac-D5Do7BNm.js} +1 -1
  94. package/dist/component/{text-area-field-rac-DsIRYi0d.js → text-area-field-rac-DLBgla0L.js} +27 -27
  95. package/dist/component/{text-area-rac-CF9pDP9d.js → text-area-rac-Bfsl2gSn.js} +1 -1
  96. package/dist/component/{text-input-field-rac-BwIDZACz.js → text-input-field-rac-hLsUcQNw.js} +4 -4
  97. package/dist/component/{text-input-headless-5kQs2_Xu.js → text-input-headless-Otd7Uy7V.js} +13 -13
  98. package/dist/component/{text-input-rac-CRmSuw1k.js → text-input-rac-jpnc-v91.js} +1 -1
  99. package/dist/component/{time-input-rac-BRMNpe51.js → time-input-rac-DnjrmZZw.js} +26 -26
  100. package/dist/component/url-input-field-rac-C90NYHb8.js +77 -0
  101. package/dist/component/{url-input-rac-Dv-kp50D.js → url-input-rac-C3wfEnqs.js} +1 -1
  102. package/dist/component/{use-dropdown-option-class-name-BQi_qE_-.js → use-dropdown-option-class-name-CYkLlKBs.js} +12 -12
  103. package/dist/component/{use-dropdown-trigger-class-name-bAK8aHiG.js → use-dropdown-trigger-class-name-CTt4Z67m.js} +17 -17
  104. package/dist/component/{use-element-state-class-name-rXM_lHug.js → use-element-state-class-name-ByDw6j7c.js} +1 -1
  105. package/dist/component/{use-hoverable-input-class-name-BnV_uerV.js → use-hoverable-input-class-name-Duhgtn2I.js} +3 -3
  106. package/dist/component/use-is-forced-open-dropdown-B5gNY4Zm.js +53 -0
  107. package/dist/component/{use-service-options-base-CLeE9-Tx.js → use-service-options-base-DE-QaNDw.js} +8 -8
  108. package/dist/component/use-text-input-class-name-CmxSw6bY.js +6 -0
  109. package/dist/form.d.ts +3 -0
  110. package/package.json +2 -2
  111. package/dist/component/field-rac.module-DP0lkkEv.js +0 -25
  112. package/dist/component/image-choice-rac-CtoA_KDp.js +0 -155
  113. package/dist/component/url-input-field-rac-CKLS3QDk.js +0 -77
  114. package/dist/component/use-is-forced-open-dropdown-Bp-5Xpmw.js +0 -53
  115. package/dist/component/use-text-input-class-name-DIKWvfkm.js +0 -6
@@ -1,26 +1,26 @@
1
- import o, { useRef as X, useState as Q, useEffect as P, createContext as Ke, useContext as $e, useMemo as x, 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 B, useCallback as re } from "react";
2
2
  import { RicosViewer as it } from "@wix/ricos/viewer";
3
- import v from "classnames";
3
+ import g from "classnames";
4
4
  import { C as he } from "./chevron-down-icon-CcpVm6B-.js";
5
5
  import { E as lt } from "./error-icon-hZxQ6DEy.js";
6
- import { g as ct, c as Ce } from "./calendar.module-CKCBG_Pg.js";
6
+ import { g as ct, c as Ce } from "./calendar.module-BMUyMVja.js";
7
7
  import { H as me } from "./custom-focus-class-_483Pkwp.js";
8
- import { s as ue } from "./field-rac.module-DP0lkkEv.js";
9
- import { br as De, bq as mt, bv as ge, bJ as ut, bI as dt, bz as ie, bw as le, bB as ft, by as Dt, F as Et, h as St, V as _t, ab as pt, g as Nt, j as We, i as yt, m as At, k as It, L as Lt, z as Ot, l as Tt } from "./form-DSpx-AO8.js";
10
- import { u as bt } from "./use-element-state-class-name-rXM_lHug.js";
11
- import { ListBox as gt, Button as ve, ListBoxItem as vt, RadioGroup as kt, RadioField as Rt, RadioButton as wt } from "react-aria-components";
12
- import { f as g, a as Ee } from "./find-child-C60k4CxG.js";
13
- import { D as Mt, E as Ft } from "./field-error-headless-XNWmDH3E.js";
14
- import { L as ht } from "./field-label-headless-CORRAJGt.js";
15
- import { F as Ct } from "./fieldset-headless-CD3fds9J.js";
8
+ import { s as ue } from "./field-rac.module-ts2t4WUO.js";
9
+ import { bq as Ee, bp as mt, bu as ge, bs as ut, bI as dt, bH as Dt, by as ie, bv as le, bA as ft, bx as Et, F as St, h as _t, U as pt, aa as Nt, g as At, j as xe, i as yt, n as It, k as Ot, l as Lt, K as Tt, G as bt, m as gt } from "./form-GAuLAdjq.js";
10
+ import { u as vt } from "./use-element-state-class-name-ByDw6j7c.js";
11
+ import { ListBox as Rt, Button as ve, ListBoxItem as kt, RadioGroup as Ft, RadioField as Mt, RadioButton as wt } from "react-aria-components";
12
+ import { f as v, a as Se } from "./find-child-C60k4CxG.js";
13
+ import { D as ht, E as Ct } from "./field-error-headless-DAc8FpKI.js";
14
+ import { L as xt } from "./field-label-headless-DxxwJtjh.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 Wt(e) {
18
+ function Bt(e) {
19
19
  return { evid: 40, src: 16, endpoint: "", params: e };
20
20
  }
21
- var Oe = /* @__PURE__ */ (function(e) {
21
+ var De = /* @__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
- })({}), B = /* @__PURE__ */ (function(e) {
23
+ })({}), x = /* @__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 xt = (e) => {
32
+ const Pt = (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: Bt(e)
37
+ serviceProperties: Ut(e)
38
38
  };
39
- }, Bt = (e) => {
39
+ }, Ut = (e) => {
40
40
  var t;
41
41
  return JSON.stringify({
42
42
  serviceId: e == null ? void 0 : e.id,
@@ -46,14 +46,14 @@ const xt = (e) => {
46
46
  isOfferedAsPricingPlan: !1
47
47
  });
48
48
  }, Ze = (e) => {
49
- var i;
50
- const { appointmentFieldProps: t } = ke(), { isEditor: n, isComposer: a } = De(), s = mt(), r = e || ((i = t == null ? void 0 : t.initialData) == null ? void 0 : i.service);
49
+ var l;
50
+ const { appointmentFieldProps: t } = Re(), { isEditor: n, isComposer: a } = Ee(), r = mt(), s = 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: (l) => s == null ? void 0 : s.report(Wt({
55
- ...xt(r),
56
- ...l
53
+ ...r,
54
+ report: (i) => r == null ? void 0 : r.report(Bt({
55
+ ...Pt(s),
56
+ ...i
57
57
  }))
58
58
  };
59
59
  };
@@ -61,10 +61,10 @@ 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
63
  })(Te || (Te = {}));
64
- var xe;
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
- })(xe || (xe = {}));
67
+ })(We || (We = {}));
68
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";
@@ -77,52 +77,52 @@ var Ue;
77
77
  (function(e) {
78
78
  e.ASC = "ASC", e.DESC = "DESC";
79
79
  })(Ue || (Ue = {}));
80
- const Pt = (e) => {
80
+ const zt = (e) => {
81
81
  const { service: t } = e || {};
82
82
  return (t == null ? void 0 : t.id) ? null : {
83
- type: Oe.GENERAL,
83
+ type: De.GENERAL,
84
84
  message: "Service ID is missing"
85
85
  };
86
- }, Ut = ({ appointmentFieldProps: e, isEditor: t, isComposer: n }) => {
87
- const { initialData: a } = e, s = Yt();
86
+ }, Ht = ({ appointmentFieldProps: e, isEditor: t, isComposer: n }) => {
87
+ const { initialData: a } = e, r = $t();
88
88
  if (t || n)
89
89
  return {
90
- ...s,
90
+ ...r,
91
91
  timezone: Ve(),
92
- dataStatus: B.DONE
92
+ dataStatus: x.DONE
93
93
  };
94
94
  {
95
- const r = Pt(a);
96
- if (r)
95
+ const s = zt(a);
96
+ if (s)
97
97
  return {
98
- dataStatus: B.ERROR,
99
- error: r
98
+ dataStatus: x.ERROR,
99
+ error: s
100
100
  };
101
101
  }
102
102
  return {
103
- ...s,
104
- dataStatus: B.LOADING
103
+ ...r,
104
+ dataStatus: x.LOADING
105
105
  };
106
- }, zt = (e, t) => {
106
+ }, Yt = (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 r = new Date(n.toLocaleString("en-US", {
110
110
  timeZone: t
111
- })), r = new Date(a.toLocaleString("en-US", {
111
+ })), s = new Date(a.toLocaleString("en-US", {
112
112
  timeZone: t
113
113
  }));
114
114
  return {
115
- startDate: s,
116
- endDate: r
115
+ startDate: r,
116
+ endDate: s
117
117
  };
118
- }, Ve = () => Intl.DateTimeFormat().resolvedOptions().timeZone, Ht = (e) => {
118
+ }, Ve = () => Intl.DateTimeFormat().resolvedOptions().timeZone, Kt = (e) => {
119
119
  var t, n, a;
120
120
  if ((n = (t = e == null ? void 0 : e[0]) == null ? void 0 : t.slot) != null && n.startDate)
121
121
  return new Date((a = e[0].slot) == null ? void 0 : a.startDate);
122
- }, Yt = ({ duration: e = 60, timezone: t = "UTC" } = {}) => {
122
+ }, $t = ({ 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 = [], i = a.toISOString().split("T")[0], l = 10, c = 18;
125
- let D = /* @__PURE__ */ new Date(`${i}T${l}:00:00`), u = new Date(D);
124
+ const n = "267d1c11-8019-4e3d-b9c6-cd2b859c69e2", a = /* @__PURE__ */ new Date(), r = [], s = [], l = a.toISOString().split("T")[0], i = 10, c = 18;
125
+ let D = /* @__PURE__ */ new Date(`${l}T${i}:00:00`), u = new Date(D);
126
126
  u.setMinutes(u.getMinutes() + e);
127
127
  let S = !1;
128
128
  for (; u.getHours() < c || u.getHours() === c && u.getMinutes() === 0; ) {
@@ -145,78 +145,78 @@ const Pt = (e) => {
145
145
  },
146
146
  nestedSlots: []
147
147
  };
148
- r.push(b), S || (s.push(b), S = !0), D = new Date(u), u = new Date(D), u.setMinutes(u.getMinutes() + e);
148
+ s.push(b), S || (r.push(b), S = !0), D = new Date(u), u = new Date(D), u.setMinutes(u.getMinutes() + e);
149
149
  }
150
150
  return {
151
- availabilitySlots: r,
152
- availabilityDates: s,
151
+ availabilitySlots: s,
152
+ availabilityDates: r,
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: r.length > 0 && ((d = (E = r[0]) == null ? void 0 : E.slot) != null && d.startDate) ? new Date(r[0].slot.startDate) : void 0
156
156
  };
157
157
  };
158
- function Kt(e) {
158
+ function Gt(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 } = ge(), c = X(l);
161
- c.current = l;
162
- const D = !!(l != null && l.getAvailabilityDates && (l != null && l.getAvailabilitySlots)), [u, S] = Q(null), E = Ze(t == null ? void 0 : t.service);
160
+ const { initialData: t, onChange: n, value: a } = e, { isEditor: r, isComposer: s } = Ee(), l = (d = t == null ? void 0 : t.service) == null ? void 0 : d.id, { actions: i } = ge(), c = X(i);
161
+ c.current = i;
162
+ const D = !!(i != null && i.getAvailabilityDates && (i != null && i.getAvailabilitySlots)), [u, S] = Q(null), E = Ze(t == null ? void 0 : t.service);
163
163
  return P(() => {
164
- i && !s && !r && D && (async () => {
165
- var I, L, U, z, H;
166
- const w = Ve(), y = {
164
+ l && !r && !s && D && (async () => {
165
+ var I, O, U, z, H;
166
+ const F = Ve(), A = {
167
167
  currentSlotBulkSize: q,
168
- timezone: w,
169
- dataStatus: B.LOADING
168
+ timezone: F,
169
+ dataStatus: x.LOADING
170
170
  };
171
171
  try {
172
172
  const Y = async (oe) => {
173
173
  var _, p;
174
- const { startDate: $, endDate: M } = zt(oe, w);
174
+ const { startDate: $, endDate: M } = Yt(oe, F);
175
175
  return (p = (_ = c.current) == null ? void 0 : _.getAvailabilityDates) == null ? void 0 : p.call(_, {
176
- serviceId: i,
176
+ serviceId: l,
177
177
  fromDate: $,
178
178
  toDate: M,
179
- timeZone: w
179
+ timeZone: F
180
180
  });
181
181
  };
182
- if (y.availabilityDates = await Y(2), (I = y.availabilityDates) != null && I.length || (y.availabilityDates = await Y(6)), !((L = y.availabilityDates) != null && L.length)) {
182
+ if (A.availabilityDates = await Y(2), (I = A.availabilityDates) != null && I.length || (A.availabilityDates = await Y(6)), !((O = A.availabilityDates) != null && O.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: B.ERROR,
187
+ dataStatus: x.ERROR,
188
188
  error: {
189
- type: Oe.NO_AVAILABILITY_DATES_FOUND,
189
+ type: De.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 ((z = (U = c.current) == null ? void 0 : U.getAvailabilitySlots) == null ? void 0 : z.call(U, {
196
- serviceId: i,
197
- timeZone: w,
198
- selectedDate: y.selectedDate
195
+ A.selectedDate = Kt(A.availabilityDates), A.selectedDate && (A.availabilitySlots = await ((z = (U = c.current) == null ? void 0 : U.getAvailabilitySlots) == null ? void 0 : z.call(U, {
196
+ serviceId: l,
197
+ timeZone: F,
198
+ selectedDate: A.selectedDate
199
199
  }))), E == null || E.report({
200
200
  action: ne.LOAD,
201
- component: (H = y.availabilityDates) != null && H.length ? J.FORM : J.NO_AVAILABILITY_FOR_DATE
201
+ component: (H = A.availabilityDates) != null && H.length ? J.FORM : J.NO_AVAILABILITY_FOR_DATE
202
202
  }), a != null && a.startDate || n(void 0), S({
203
- ...y,
204
- dataStatus: B.DONE
203
+ ...A,
204
+ dataStatus: x.DONE
205
205
  });
206
206
  } catch (Y) {
207
207
  console.error(Y), S({
208
- dataStatus: B.ERROR,
208
+ dataStatus: x.ERROR,
209
209
  error: {
210
- type: Oe.GENERAL,
210
+ type: De.GENERAL,
211
211
  message: "An error occurred in initialAppointmentState"
212
212
  }
213
213
  });
214
214
  }
215
215
  })();
216
216
  }, [
217
- s,
218
217
  r,
219
- i,
218
+ s,
219
+ l,
220
220
  D
221
221
  ]), u;
222
222
  }
@@ -224,14 +224,21 @@ const qe = /* @__PURE__ */ Ke({
224
224
  appointmentState: {},
225
225
  setAppointmentState: () => {
226
226
  }
227
- }), $t = ({ appointmentFieldProps: e, children: t }) => {
228
- const { isEditor: n, isComposer: a } = De(), [s, r] = Q(() => Ut({
227
+ }), Zt = {
228
+ dataStatus: x.ERROR,
229
+ error: {
230
+ type: De.NO_AVAILABILITY_DATES_FOUND,
231
+ message: "No availability dates found"
232
+ }
233
+ }, Vt = ({ appointmentFieldProps: e, children: t }) => {
234
+ var c;
235
+ const { isEditor: n, isComposer: a } = Ee(), r = ((c = ut().appointment) == null ? void 0 : c.noAvailability) === !0, [s, l] = Q(() => Ht({
229
236
  appointmentFieldProps: e,
230
237
  isEditor: n,
231
238
  isComposer: a
232
- })), i = Kt(e);
239
+ })), i = Gt(e);
233
240
  return P(() => {
234
- i && r({
241
+ i && l({
235
242
  ...s,
236
243
  ...i
237
244
  });
@@ -240,14 +247,14 @@ const qe = /* @__PURE__ */ Ke({
240
247
  ]), /* @__PURE__ */ o.createElement(qe.Provider, {
241
248
  value: {
242
249
  appointmentFieldProps: e,
243
- appointmentState: s,
244
- setAppointmentState: (l) => r({
250
+ appointmentState: r ? Zt : s,
251
+ setAppointmentState: (D) => l({
245
252
  ...s,
246
- ...l
253
+ ...D
247
254
  })
248
255
  }
249
256
  }, t);
250
- }, ke = () => $e(qe), Gt = (e, t) => {
257
+ }, Re = () => $e(qe), qt = (e, t) => {
251
258
  if (e.startOfWeek.getMonth() === e.endOfWeek.getMonth())
252
259
  return new Intl.DateTimeFormat(t, {
253
260
  month: "long",
@@ -260,17 +267,17 @@ const qe = /* @__PURE__ */ Ke({
260
267
  year: "numeric"
261
268
  }).format(e.endOfWeek);
262
269
  return `${n} - ${a}`;
263
- }, Zt = (e) => !(e != null && e.startDate) || !(e != null && e.endDate) || !(e != null && e.timeZone) ? null : {
270
+ }, jt = (e) => !(e != null && e.startDate) || !(e != null && e.endDate) || !(e != null && e.timeZone) ? null : {
264
271
  startDate: e == null ? void 0 : e.startDate,
265
272
  endDate: e == null ? void 0 : e.endDate,
266
273
  timeZone: e == null ? void 0 : e.timeZone
267
274
  }, ze = ({ timezone: e, language: t, formatType: n }) => {
268
- var s;
269
- return (s = new Intl.DateTimeFormat(t, {
275
+ var r;
276
+ return (r = new Intl.DateTimeFormat(t, {
270
277
  timeZone: e,
271
278
  timeZoneName: n === "name" ? "long" : "short"
272
- }).formatToParts(/* @__PURE__ */ new Date()).find(({ type: r }) => r === "timeZoneName")) == null ? void 0 : s.value;
273
- }, Vt = ({ timezone: e, language: t }) => {
279
+ }).formatToParts(/* @__PURE__ */ new Date()).find(({ type: s }) => s === "timeZoneName")) == null ? void 0 : r.value;
280
+ }, Qt = ({ timezone: e, language: t }) => {
274
281
  const n = ze({
275
282
  timezone: e,
276
283
  language: t,
@@ -281,7 +288,7 @@ const qe = /* @__PURE__ */ Ke({
281
288
  formatType: "offset"
282
289
  });
283
290
  return `${n} (${a})`;
284
- }, ae = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), qt = (e, t) => {
291
+ }, ae = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Jt = (e, t) => {
285
292
  const n = new Date(e);
286
293
  n.setDate(e.getDate() - t);
287
294
  const a = new Date(e);
@@ -289,21 +296,21 @@ const qe = /* @__PURE__ */ Ke({
289
296
  fromDate: n,
290
297
  toDate: a
291
298
  };
292
- }, jt = ({ setIsReloadingSlots: e }) => {
293
- const { appointmentFieldProps: t, appointmentState: n, setAppointmentState: a } = ke(), { value: s } = t, { actions: r } = ge();
299
+ }, Xt = ({ setIsReloadingSlots: e }) => {
300
+ const { appointmentFieldProps: t, appointmentState: n, setAppointmentState: a } = Re(), { value: r } = t, { actions: s } = ge();
294
301
  P(() => {
295
302
  (async () => {
296
- var l, c;
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)) {
303
+ var i, c;
304
+ if (r != null && r.startDate && (n != null && n.selectedDate) && (n == null ? void 0 : n.dataStatus) === x.DONE && !ae(new Date(r.startDate), n == null ? void 0 : n.selectedDate)) {
298
305
  e(!0);
299
- const u = new Date(s.startDate), { fromDate: S, toDate: E } = qt(u, 8), [d, b] = await Promise.all([
300
- (l = r == null ? void 0 : r.getAvailabilityDates) == null ? void 0 : l.call(r, {
306
+ const u = new Date(r.startDate), { fromDate: S, toDate: E } = Jt(u, 8), [d, b] = await Promise.all([
307
+ (i = s == null ? void 0 : s.getAvailabilityDates) == null ? void 0 : i.call(s, {
301
308
  serviceId: t == null ? void 0 : t.initialData.service.id,
302
309
  timeZone: (n == null ? void 0 : n.timezone) || "",
303
310
  fromDate: S,
304
311
  toDate: E
305
312
  }),
306
- (c = r == null ? void 0 : r.getAvailabilitySlots) == null ? void 0 : c.call(r, {
313
+ (c = s == null ? void 0 : s.getAvailabilitySlots) == null ? void 0 : c.call(s, {
307
314
  serviceId: t == null ? void 0 : t.initialData.service.id,
308
315
  timeZone: (n == null ? void 0 : n.timezone) || "",
309
316
  selectedDate: u
@@ -317,59 +324,59 @@ const qe = /* @__PURE__ */ Ke({
317
324
  }
318
325
  })();
319
326
  }, [
320
- s,
327
+ r,
321
328
  n == null ? void 0 : n.dataStatus
322
329
  ]);
323
- }, Qt = (e, t) => !e || !t.length ? e : e.filter((n) => {
330
+ }, en = (e, t) => !e || !t.length ? e : e.filter((n) => {
324
331
  var a;
325
332
  return !t.includes(((a = n == null ? void 0 : n.slot) == null ? void 0 : a.startDate) ?? "");
326
- }), de = (e) => !(e != null && e.startDate) || !(e != null && e.endDate) ? "" : `${e == null ? void 0 : e.startDate}_${e == null ? void 0 : e.endDate}`, Jt = ({ locale: e, endDate: t, startDate: n, timezone: a }) => {
327
- const s = {
333
+ }), de = (e) => !(e != null && e.startDate) || !(e != null && e.endDate) ? "" : `${e == null ? void 0 : e.startDate}_${e == null ? void 0 : e.endDate}`, tn = ({ locale: e, endDate: t, startDate: n, timezone: a }) => {
334
+ const r = {
328
335
  hour: "numeric",
329
336
  minute: "numeric",
330
337
  timeZone: a
331
- }, r = new Intl.DateTimeFormat(e, s).format(new Date(n)), i = new Intl.DateTimeFormat(e, s).format(new Date(t));
332
- return `${r} - ${i}`;
333
- }, Xt = ({ selectedDate: e, locale: t, timezone: n }) => e ? new Intl.DateTimeFormat(t, {
338
+ }, s = new Intl.DateTimeFormat(e, r).format(new Date(n)), l = new Intl.DateTimeFormat(e, r).format(new Date(t));
339
+ return `${s} - ${l}`;
340
+ }, nn = ({ selectedDate: e, locale: t, timezone: n }) => e ? new Intl.DateTimeFormat(t, {
334
341
  weekday: "long",
335
342
  month: "short",
336
343
  day: "numeric",
337
344
  timeZone: n
338
- }).format(e) : "", en = (e, t) => {
345
+ }).format(e) : "", an = (e, t) => {
339
346
  let n;
340
- return t.forEach((a, s) => {
341
- var r, i;
347
+ return t.forEach((a, r) => {
348
+ var s, l;
342
349
  de({
343
- startDate: (r = a == null ? void 0 : a.slot) == null ? void 0 : r.startDate,
344
- endDate: (i = a == null ? void 0 : a.slot) == null ? void 0 : i.endDate
345
- }) === e && (n = s);
350
+ startDate: (s = a == null ? void 0 : a.slot) == null ? void 0 : s.startDate,
351
+ endDate: (l = a == null ? void 0 : a.slot) == null ? void 0 : l.endDate
352
+ }) === e && (n = r);
346
353
  }), n;
347
354
  };
348
- var tn = /* @__PURE__ */ (function(e) {
355
+ var on = /* @__PURE__ */ (function(e) {
349
356
  return e.OS_LOCATION = "OS_LOCATION", e.CUSTOM_LOCATION = "CUSTOM_LOCATION", e;
350
357
  })({});
351
- const nn = "SLOT_UNAVAILABLE", an = (e) => {
358
+ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
352
359
  var t;
353
- return ((t = e == null ? void 0 : e.params) == null ? void 0 : t.reason) === nn;
354
- }, on = ({ error: e, selectedSlot: t }) => {
355
- const [n, a] = Q([]), s = an(e), r = t == null ? void 0 : t.startDate, i = X(!1);
360
+ return ((t = e == null ? void 0 : e.params) == null ? void 0 : t.reason) === sn;
361
+ }, ln = ({ error: e, selectedSlot: t }) => {
362
+ const [n, a] = Q([]), r = rn(e), s = t == null ? void 0 : t.startDate, l = X(!1);
356
363
  return P(() => {
357
- if (!s) {
358
- i.current = !1;
364
+ if (!r) {
365
+ l.current = !1;
359
366
  return;
360
367
  }
361
- i.current || (i.current = !0, r && a((l) => l.includes(r) ? l : [
362
- ...l,
363
- r
368
+ l.current || (l.current = !0, s && a((i) => i.includes(s) ? i : [
369
+ ...i,
370
+ s
364
371
  ]));
365
372
  }, [
366
- s,
367
- r
373
+ r,
374
+ s
368
375
  ]), n;
369
376
  }, j = 7, be = (e) => {
370
377
  const t = new Date(e);
371
378
  return t.setHours(0, 0, 0, 0), t;
372
- }, sn = (e) => {
379
+ }, cn = (e) => {
373
380
  const t = new Date(e);
374
381
  return t.setHours(23, 59, 59, 999), t;
375
382
  }, te = (e, t) => {
@@ -378,55 +385,55 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
378
385
  }, He = (e, t) => {
379
386
  const n = be(e), a = (n.getDay() - t + j) % j;
380
387
  return te(n, -a);
381
- }, rn = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, ln = (e, t, n) => {
388
+ }, mn = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, un = (e, t, n) => {
382
389
  const a = new Intl.DateTimeFormat(n, {
383
390
  month: "short",
384
391
  day: "numeric"
385
392
  });
386
393
  return typeof a.formatRange == "function" ? a.formatRange(e, t) : `${a.format(e)} - ${a.format(t)}`;
387
- }, cn = (e, t = []) => t.some((n) => {
394
+ }, dn = (e, t = []) => t.some((n) => {
388
395
  var a;
389
396
  return !!((a = n.slot) != null && a.startDate) && ae(new Date(n.slot.startDate), e);
390
- }), mn = () => {
391
- var Fe;
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(), [w, y] = Q();
393
- jt({
397
+ }), Dn = () => {
398
+ var we;
399
+ const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } = Re(), { language: a, isEditor: r, isComposer: s } = Ee(), { t: l } = dt(), { actions: i } = ge(), c = Ze(), [D, u] = Q(!1), [S, E] = Q(!1), [d, b] = Q(), [F, A] = Q();
400
+ Xt({
394
401
  setIsReloadingSlots: u
395
402
  });
396
- const { onChange: I, value: L, target: U, initialData: z, formatDescription: H, locationType: Y, error: oe } = e, { availabilityDates: $, availabilitySlots: M, 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, we = on({
403
+ const { onChange: I, value: O, target: U, initialData: z, formatDescription: H, locationType: Y, error: oe } = e, { availabilityDates: $, availabilitySlots: M, timezone: _ = "", selectedDate: p, currentSlotBulkSize: R, dataStatus: G, error: Z } = t, K = (we = z == null ? void 0 : z.service) == null ? void 0 : we.id, V = G === x.LOADING, ee = D || S, _e = !!Z, Fe = ln({
397
404
  error: oe,
398
- selectedSlot: L
399
- }), A = x(() => Qt(M, we), [
405
+ selectedSlot: O
406
+ }), y = B(() => en(M, Fe), [
400
407
  M,
401
- we
408
+ Fe
402
409
  ]);
403
410
  P(() => {
404
- I == null || I(Zt(L));
411
+ I == null || I(jt(O));
405
412
  }, [
406
- L == null ? void 0 : L.startDate,
407
- L == null ? void 0 : L.endDate,
413
+ O == null ? void 0 : O.startDate,
414
+ O == null ? void 0 : O.endDate,
408
415
  _
409
- ]), dt((f) => {
410
- const O = f == null ? void 0 : f[U];
416
+ ]), Dt((f) => {
417
+ const L = f == null ? void 0 : f[U];
411
418
  M != null && M.length && n({
412
419
  availabilitySlots: M.filter((T) => {
413
- var R;
414
- return ((R = T == null ? void 0 : T.slot) == null ? void 0 : R.startDate) !== (O == null ? void 0 : O.startDate);
420
+ var k;
421
+ return ((k = T == null ? void 0 : T.slot) == null ? void 0 : k.startDate) !== (L == null ? void 0 : L.startDate);
415
422
  })
416
423
  });
417
424
  }), P(() => {
418
- if (A != null && A.length && k) {
419
- const f = en(de(L ?? void 0), A);
420
- f && f + 1 > k && n({
425
+ if (y != null && y.length && R) {
426
+ const f = an(de(O ?? void 0), y);
427
+ f && f + 1 > R && n({
421
428
  currentSlotBulkSize: f + 1
422
429
  });
423
- } else !(A != null && A.length) && L && (I == null || I(void 0));
430
+ } else !(y != null && y.length) && O && (I == null || I(void 0));
424
431
  }, [
425
- L,
426
- A,
432
+ O,
433
+ y,
427
434
  $
428
435
  ]);
429
- const _e = x(() => ct(a), [
436
+ const pe = B(() => ct(a), [
430
437
  a
431
438
  ]), Me = X(p);
432
439
  P(() => {
@@ -435,35 +442,35 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
435
442
  }, [
436
443
  p
437
444
  ]);
438
- const h = x(() => d ?? He(p ?? /* @__PURE__ */ new Date(), _e), [
445
+ const h = B(() => d ?? He(p ?? /* @__PURE__ */ new Date(), pe), [
439
446
  d,
440
447
  p,
441
- _e
442
- ]), Xe = x(() => {
443
- const f = be(/* @__PURE__ */ new Date()), O = new Intl.DateTimeFormat(a, {
448
+ pe
449
+ ]), Xe = B(() => {
450
+ const f = be(/* @__PURE__ */ new Date()), L = new Intl.DateTimeFormat(a, {
444
451
  weekday: "short"
445
452
  }), T = new Intl.DateTimeFormat(a, {
446
453
  day: "numeric"
447
- }), R = new Intl.DateTimeFormat(a, {
454
+ }), k = new Intl.DateTimeFormat(a, {
448
455
  weekday: "long",
449
456
  month: "long",
450
457
  day: "numeric"
451
458
  });
452
459
  return Array.from({
453
460
  length: j
454
- }, (se, Ie) => {
455
- const W = te(h, Ie), Le = !!p && ae(W, p), rt = be(W) < f;
461
+ }, (se, Oe) => {
462
+ const W = te(h, Oe), Le = !!p && ae(W, p), rt = be(W) < f;
456
463
  return {
457
- key: rn(W),
464
+ key: mn(W),
458
465
  date: W,
459
466
  isSelected: Le,
460
- isAvailable: !V && !ee && !Le && cn(W, $),
467
+ isAvailable: !V && !ee && !Le && dn(W, $),
461
468
  isDisabled: rt || ee && !Le,
462
469
  isToday: ae(W, f),
463
470
  dayOfMonthLabel: T.format(W),
464
- weekdayLabel: O.format(W),
465
- label: R.format(W),
466
- availabilityLabel: i("form.appointment.accessibility.calendar.has-availability.aria-label")
471
+ weekdayLabel: L.format(W),
472
+ label: k.format(W),
473
+ availabilityLabel: l("form.appointment.accessibility.calendar.has-availability.aria-label")
467
474
  };
468
475
  });
469
476
  }, [
@@ -473,40 +480,40 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
473
480
  V,
474
481
  ee,
475
482
  a,
476
- i
477
- ]), pe = de(L ?? void 0) || void 0, Ne = x(() => V || D ? [] : (A ?? []).slice(0, k).flatMap((f) => {
478
- const { startDate: O, endDate: T } = f.slot ?? {};
479
- if (!O || !T)
483
+ l
484
+ ]), Ne = de(O ?? void 0) || void 0, Ae = B(() => V || D ? [] : (y ?? []).slice(0, R).flatMap((f) => {
485
+ const { startDate: L, endDate: T } = f.slot ?? {};
486
+ if (!L || !T)
480
487
  return [];
481
- const R = de({
482
- startDate: O,
488
+ const k = de({
489
+ startDate: L,
483
490
  endDate: T
484
491
  });
485
492
  return [
486
493
  {
487
- key: R,
488
- startDate: O,
494
+ key: k,
495
+ startDate: L,
489
496
  endDate: T,
490
- timeRange: Jt({
491
- startDate: O,
497
+ timeRange: tn({
498
+ startDate: L,
492
499
  endDate: T,
493
500
  locale: a,
494
501
  timezone: _
495
502
  }),
496
- isSelected: R === pe
503
+ isSelected: k === Ne
497
504
  }
498
505
  ];
499
506
  }), [
500
- A,
501
- k,
507
+ y,
508
+ R,
502
509
  V,
503
510
  D,
504
511
  a,
505
512
  _,
506
- pe
507
- ]), ye = !D && !!(A != null && A.length) && (k || q) < A.length, Ae = h > He(/* @__PURE__ */ new Date(), _e), et = re(
513
+ Ne
514
+ ]), ye = !D && !!(y != null && y.length) && (R || q) < y.length, Ie = h > He(/* @__PURE__ */ new Date(), pe), et = re(
508
515
  async (f) => {
509
- var O;
516
+ var L;
510
517
  if (!(ee || p && ae(f, p))) {
511
518
  u(!0), I == null || I(void 0), n({
512
519
  currentSlotBulkSize: q,
@@ -517,7 +524,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
517
524
  component: J.DATE
518
525
  });
519
526
  try {
520
- const T = await ((O = l == null ? void 0 : l.getAvailabilitySlots) == null ? void 0 : O.call(l, {
527
+ const T = await ((L = i == null ? void 0 : i.getAvailabilitySlots) == null ? void 0 : L.call(i, {
521
528
  serviceId: K,
522
529
  timeZone: _,
523
530
  selectedDate: f
@@ -539,70 +546,70 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
539
546
  p,
540
547
  K,
541
548
  _,
542
- l,
549
+ i,
543
550
  I,
544
551
  c
545
552
  ]
546
553
  ), ce = X(0), tt = re(
547
554
  async (f) => {
548
555
  var se;
549
- if (f < 0 && !Ae)
556
+ if (f < 0 && !Ie)
550
557
  return;
551
- const O = h, T = te(h, f * j);
552
- if (b(T), s || r)
558
+ const L = h, T = te(h, f * j);
559
+ if (b(T), r || s)
553
560
  return;
554
- const R = ++ce.current;
561
+ const k = ++ce.current;
555
562
  E(!0), c == null || c.report({
556
563
  action: ne.CLICK,
557
564
  component: J.PAGINATION
558
565
  });
559
566
  try {
560
- const Ie = await ((se = l == null ? void 0 : l.getAvailabilityDates) == null ? void 0 : se.call(l, {
567
+ const Oe = await ((se = i == null ? void 0 : i.getAvailabilityDates) == null ? void 0 : se.call(i, {
561
568
  serviceId: K,
562
569
  timeZone: _,
563
570
  fromDate: T,
564
- toDate: sn(te(T, j - 1))
571
+ toDate: cn(te(T, j - 1))
565
572
  }));
566
- R === ce.current && n({
567
- availabilityDates: Ie
573
+ k === ce.current && n({
574
+ availabilityDates: Oe
568
575
  });
569
576
  } catch {
570
- R === ce.current && b(O);
577
+ k === ce.current && b(L);
571
578
  } finally {
572
- R === ce.current && E(!1);
579
+ k === ce.current && E(!1);
573
580
  }
574
581
  },
575
582
  // eslint-disable-next-line react-hooks/exhaustive-deps
576
583
  [
577
- Ae,
584
+ Ie,
578
585
  h,
579
- s,
580
586
  r,
587
+ s,
581
588
  K,
582
589
  _,
583
- l,
590
+ i,
584
591
  c
585
592
  ]
586
593
  ), nt = re(
587
594
  (f) => {
588
- const O = Ne.find((se) => se.key === f);
589
- if (!O)
595
+ const L = Ae.find((se) => se.key === f);
596
+ if (!L)
590
597
  return;
591
- const { startDate: T, endDate: R } = O;
598
+ const { startDate: T, endDate: k } = L;
592
599
  c == null || c.report({
593
600
  action: ne.CLICK,
594
601
  component: J.SLOT,
595
602
  startTime: new Date(T).valueOf(),
596
- endTime: new Date(R).valueOf()
603
+ endTime: new Date(k).valueOf()
597
604
  }), I == null || I({
598
605
  startDate: T,
599
- endDate: R,
606
+ endDate: k,
600
607
  timeZone: _
601
608
  });
602
609
  },
603
610
  // eslint-disable-next-line react-hooks/exhaustive-deps
604
611
  [
605
- Ne,
612
+ Ae,
606
613
  _,
607
614
  I,
608
615
  c
@@ -610,77 +617,77 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
610
617
  ), at = re(() => {
611
618
  if (!ye)
612
619
  return;
613
- const f = k || q;
620
+ const f = R || q;
614
621
  c == null || c.report({
615
622
  action: ne.CLICK,
616
623
  component: J.SHOW_MORE
617
- }), y(f), n({
624
+ }), A(f), n({
618
625
  currentSlotBulkSize: f + q
619
626
  });
620
627
  }, [
621
628
  ye,
622
- k,
629
+ R,
623
630
  c
624
- ]), ot = re(() => y(void 0), []), st = x(() => {
625
- if (Se)
626
- return i("form.appointment.empty-state.notification.text");
627
- if (!V && !D && !(A != null && A.length))
628
- return i("form.appointment.slots-not-found.text");
631
+ ]), ot = re(() => A(void 0), []), st = B(() => {
632
+ if (_e)
633
+ return l("form.appointment.empty-state.notification.text");
634
+ if (!V && !D && !(y != null && y.length))
635
+ return l("form.appointment.slots-not-found.text");
629
636
  }, [
630
- Se,
637
+ _e,
631
638
  V,
632
639
  D,
633
- A == null ? void 0 : A.length,
634
- i
640
+ y == null ? void 0 : y.length,
641
+ l
635
642
  ]);
636
643
  return {
637
644
  days: Xe,
638
- slots: Ne,
639
- selectedSlotKey: pe,
645
+ slots: Ae,
646
+ selectedSlotKey: Ne,
640
647
  selectDate: et,
641
648
  selectSlot: nt,
642
649
  changeWeek: tt,
643
650
  showMoreSlots: at,
644
- canGoToPreviousWeek: Ae,
651
+ canGoToPreviousWeek: Ie,
645
652
  hasMoreSlots: ye,
646
- hasError: Se,
653
+ hasError: _e,
647
654
  isLoading: V,
648
655
  isRefetching: ee,
649
656
  isReloadingSlots: D,
650
- weekRangeLabel: ln(h, te(h, j - 1), a),
651
- weekCaptionLabel: Gt({
657
+ weekRangeLabel: un(h, te(h, j - 1), a),
658
+ weekCaptionLabel: qt({
652
659
  startOfWeek: h,
653
660
  endOfWeek: te(h, j - 1)
654
661
  }, a),
655
- selectedDateLabel: Xt({
662
+ selectedDateLabel: nn({
656
663
  selectedDate: p,
657
664
  locale: a,
658
665
  timezone: _
659
666
  }),
660
- timezoneLabel: _ ? `${i("form.appointment.timezone.label")}: ${Vt({
667
+ timezoneLabel: _ ? `${l("form.appointment.timezone.label")}: ${Qt({
661
668
  timezone: _,
662
669
  language: a
663
670
  })}` : "",
664
- formatLabel: Y === tn.OS_LOCATION ? i("form.appointment.meeting-format.in-person-location-method-os-location") : H,
671
+ formatLabel: Y === on.OS_LOCATION ? l("form.appointment.meeting-format.in-person-location-method-os-location") : H,
665
672
  notificationMessage: st,
666
- showMoreSlotsLabel: i("form.appointment.show-more-slots.text"),
667
- previousWeekLabel: i("form.appointment.accessibility.calendar.previous-week.aria-label"),
668
- nextWeekLabel: i("form.appointment.accessibility.calendar.next-week.aria-label"),
669
- pendingFocusIndex: w,
673
+ showMoreSlotsLabel: l("form.appointment.show-more-slots.text"),
674
+ previousWeekLabel: l("form.appointment.accessibility.calendar.previous-week.aria-label"),
675
+ nextWeekLabel: l("form.appointment.accessibility.calendar.next-week.aria-label"),
676
+ pendingFocusIndex: F,
670
677
  consumePendingFocusIndex: ot
671
678
  };
672
- }, je = Ke(void 0), Qe = (e) => `${e}-timezone-note`, Je = (e) => `${e}-date-title`, F = () => {
679
+ }, je = Ke(void 0), Qe = (e) => `${e}-timezone-note`, Je = (e) => `${e}-date-title`, w = () => {
673
680
  const e = $e(je);
674
681
  if (typeof e > "u")
675
682
  throw new Error("Appointment parts must be used inside an <Appointment> component");
676
683
  return e;
677
- }, Re = () => {
684
+ }, ke = () => {
678
685
  const { disabled: e, readOnly: t } = ie();
679
686
  return !!e || !!t;
680
687
  }, C = ({ children: e, className: t }) => {
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 = x(() => n.filter((d) => d.isSelected).map((d) => d.key), [
688
+ const { days: n, selectDate: a, weekRangeLabel: r } = w(), s = v(e, C.PreviousWeek), l = v(e, C.Heading), i = v(e, C.NextWeek), c = v(e, C.Day) ?? /* @__PURE__ */ o.createElement(C.Day, null), D = B(() => n.filter((d) => d.isSelected).map((d) => d.key), [
682
689
  n
683
- ]), u = Re(), S = x(() => n.filter((d) => u || d.isDisabled).map((d) => d.key), [
690
+ ]), u = ke(), S = B(() => n.filter((d) => u || d.isDisabled).map((d) => d.key), [
684
691
  n,
685
692
  u
686
693
  ]), E = (d) => {
@@ -688,56 +695,56 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
688
695
  return;
689
696
  const [b] = [
690
697
  ...d
691
- ], w = n.find(({ key: y }) => y === b);
692
- w && a(w.date);
698
+ ], F = n.find(({ key: A }) => A === b);
699
+ F && a(F.date);
693
700
  };
694
701
  return /* @__PURE__ */ o.createElement("div", {
695
702
  className: t
696
- }, r, i, l, /* @__PURE__ */ o.createElement(gt, {
697
- "aria-label": s,
703
+ }, s, l, i, /* @__PURE__ */ o.createElement(Rt, {
704
+ "aria-label": r,
698
705
  orientation: "horizontal",
699
706
  selectionMode: "single",
700
707
  selectedKeys: D,
701
708
  disabledKeys: S,
702
709
  onSelectionChange: E
703
- }, n.map((d) => Ee(c, {
710
+ }, n.map((d) => Se(c, {
704
711
  key: d.key,
705
712
  day: d
706
713
  }))));
707
- }, un = ({ children: e, className: t }) => {
708
- const { changeWeek: n, canGoToPreviousWeek: a, previousWeekLabel: s, nextWeekLabel: r } = F(), i = Re(), l = X(null), c = X(!1);
714
+ }, fn = ({ children: e, className: t }) => {
715
+ const { changeWeek: n, canGoToPreviousWeek: a, previousWeekLabel: r, nextWeekLabel: s } = w(), l = ke(), i = X(null), c = X(!1);
709
716
  return P(() => {
710
717
  var S, E, d;
711
718
  if (a || !c.current)
712
719
  return;
713
720
  c.current = !1;
714
721
  const D = document.activeElement;
715
- if (D !== document.body && D !== l.current)
722
+ if (D !== document.body && D !== i.current)
716
723
  return;
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((b) => b.getAttribute("aria-label") === r)) == null || d.focus();
724
+ const u = ((E = (S = i.current) == null ? void 0 : S.closest("fieldset")) == null ? void 0 : E.querySelectorAll("button")) ?? [];
725
+ (d = Array.from(u).find((b) => b.getAttribute("aria-label") === s)) == null || d.focus();
719
726
  }, [
720
727
  a,
721
- r
728
+ s
722
729
  ]), /* @__PURE__ */ o.createElement(ve, {
723
- ref: l,
730
+ ref: i,
724
731
  className: t,
725
- "aria-label": s,
726
- isDisabled: !a || i,
732
+ "aria-label": r,
733
+ isDisabled: !a || l,
727
734
  onPress: () => {
728
735
  c.current = !0, n(-1);
729
736
  }
730
737
  }, e ?? "‹");
731
- }, dn = ({ children: e, className: t }) => {
732
- const { changeWeek: n, nextWeekLabel: a } = F(), s = Re();
738
+ }, En = ({ children: e, className: t }) => {
739
+ const { changeWeek: n, nextWeekLabel: a } = w(), r = ke();
733
740
  return /* @__PURE__ */ o.createElement(ve, {
734
741
  className: t,
735
742
  "aria-label": a,
736
- isDisabled: s,
743
+ isDisabled: r,
737
744
  onPress: () => n(1)
738
745
  }, e ?? "›");
739
- }, fn = ({ children: e, className: t }) => {
740
- const { weekCaptionLabel: n, weekRangeLabel: a } = F();
746
+ }, Sn = ({ children: e, className: t }) => {
747
+ const { weekCaptionLabel: n, weekRangeLabel: a } = w();
741
748
  return /* @__PURE__ */ o.createElement("span", {
742
749
  className: t,
743
750
  "aria-live": "polite"
@@ -749,9 +756,9 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
749
756
  }, n), /* @__PURE__ */ o.createElement("span", {
750
757
  style: Ge
751
758
  }, a)));
752
- }, Dn = ({ children: e, className: t, ...n }) => {
759
+ }, _n = ({ children: e, className: t, ...n }) => {
753
760
  const { day: a } = n;
754
- return /* @__PURE__ */ o.createElement(vt, {
761
+ return /* @__PURE__ */ o.createElement(kt, {
755
762
  id: a.key,
756
763
  className: t,
757
764
  textValue: a.label,
@@ -763,17 +770,17 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
763
770
  date: new Date(a.date)
764
771
  }) : /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("span", null, a.weekdayLabel), /* @__PURE__ */ o.createElement("span", null, a.dayOfMonthLabel)));
765
772
  };
766
- C.PreviousWeek = un;
767
- C.Heading = fn;
768
- C.NextWeek = dn;
769
- C.Day = Dn;
773
+ C.PreviousWeek = fn;
774
+ C.Heading = Sn;
775
+ C.NextWeek = En;
776
+ C.Day = _n;
770
777
  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: b, readOnly: w, 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, $ = [
778
+ const { hasTimezoneNote: a, hasDateTitle: r } = n, { slots: s, selectedSlotKey: l, selectSlot: i, selectedDateLabel: c, isReloadingSlots: D, timezoneLabel: u, pendingFocusIndex: S, consumePendingFocusIndex: E } = w(), { id: d, disabled: b, readOnly: F, required: A, hasError: I } = ie(), { inputId: O, labelId: U, ariaDescribedBy: z } = le(), H = X(null), Y = v(e, fe.Slot) ?? /* @__PURE__ */ o.createElement(fe.Slot, null), oe = !!r && !!c, $ = [
772
779
  z,
773
- a && u ? Qe(L) : void 0
780
+ a && u ? Qe(O) : void 0
774
781
  ].filter(Boolean).join(" ") || void 0, M = (_, p) => {
775
- var k, G, Z;
776
- (Z = (G = (k = H.current) == null ? void 0 : k.querySelectorAll(Ye)) == null ? void 0 : G[_]) == null || Z.focus(p);
782
+ var R, G, Z;
783
+ (Z = (G = (R = H.current) == null ? void 0 : R.querySelectorAll(Ye)) == null ? void 0 : G[_]) == null || Z.focus(p);
777
784
  };
778
785
  return ft(() => {
779
786
  var G, Z;
@@ -783,94 +790,94 @@ const Ye = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) =>
783
790
  });
784
791
  return;
785
792
  }
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
- k == null || k.focus({
793
+ const p = Array.from(((Z = document.getElementById(O)) == null ? void 0 : Z.querySelectorAll('[role="option"]')) ?? []), R = p.find((K) => K.getAttribute("aria-selected") === "true") ?? p.find((K) => K.getAttribute("aria-disabled") !== "true");
794
+ R == null || R.focus({
788
795
  preventScroll: !0
789
796
  });
790
797
  }, d), P(() => {
791
798
  S !== void 0 && (M(S), E());
792
799
  }, [
793
800
  S,
794
- r.length
801
+ s.length
795
802
  ]), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("div", {
796
803
  role: "status",
797
804
  style: Ge
798
- }, r.length > 0 ? c : void 0), /* @__PURE__ */ o.createElement(kt, {
805
+ }, s.length > 0 ? c : void 0), /* @__PURE__ */ o.createElement(Ft, {
799
806
  ref: H,
800
807
  className: t,
801
- value: i ?? null,
802
- onChange: l,
808
+ value: l ?? null,
809
+ onChange: i,
803
810
  isDisabled: b,
804
- isReadOnly: w,
805
- isRequired: y,
811
+ isReadOnly: F,
812
+ isRequired: A,
806
813
  isInvalid: I,
807
- "aria-labelledby": oe ? Je(L) : U,
814
+ "aria-labelledby": oe ? Je(O) : U,
808
815
  "aria-describedby": $,
809
816
  "data-refetch": D || void 0
810
- }, r.map((_) => Ee(Y, {
817
+ }, s.map((_) => Se(Y, {
811
818
  key: _.key,
812
819
  slot: _
813
820
  }))));
814
- }, En = ({ children: e, className: t, ...n }) => {
821
+ }, pn = ({ children: e, className: t, ...n }) => {
815
822
  const { slot: a } = n;
816
- return /* @__PURE__ */ o.createElement(Rt, {
823
+ return /* @__PURE__ */ o.createElement(Mt, {
817
824
  value: a.key,
818
825
  "aria-label": a.timeRange
819
826
  }, /* @__PURE__ */ o.createElement(wt, {
820
827
  className: t
821
828
  }, e ? e(a) : a.timeRange));
822
829
  };
823
- fe.Slot = En;
830
+ fe.Slot = pn;
824
831
  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 = x(() => ({
832
+ const n = ie(), { id: a, FieldLayout: r } = n, { labelId: s, inputId: l, ariaDescribedBy: i } = le(), c = Et(St.APPOINTMENT), D = B(() => ({
826
833
  ...n,
827
834
  initialData: c,
828
- inputId: i,
829
- ariaLabelledBy: r,
830
- ariaDescribedBy: l,
835
+ inputId: l,
836
+ ariaLabelledBy: s,
837
+ ariaDescribedBy: i,
831
838
  fieldId: a
832
839
  }), [
833
840
  n,
834
841
  c,
835
- i,
836
- r,
837
842
  l,
843
+ s,
844
+ i,
838
845
  a
839
- ]), u = g(e, m.Label), S = g(e, m.Description), E = g(e, m.Error);
840
- return /* @__PURE__ */ o.createElement(s, {
846
+ ]), u = v(e, m.Label), S = v(e, m.Description), E = v(e, m.Error);
847
+ return /* @__PURE__ */ o.createElement(r, {
841
848
  fieldId: a,
842
- renderLabel: () => Ee(u, {
849
+ renderLabel: () => Se(u, {
843
850
  as: "div"
844
851
  }),
845
- renderInput: () => /* @__PURE__ */ o.createElement($t, {
852
+ renderInput: () => /* @__PURE__ */ o.createElement(Vt, {
846
853
  appointmentFieldProps: D
847
- }, /* @__PURE__ */ o.createElement(_n, {
854
+ }, /* @__PURE__ */ o.createElement(An, {
848
855
  className: t
849
856
  }, e)),
850
857
  renderDescription: () => /* @__PURE__ */ o.createElement(o.Fragment, null, E, S)
851
858
  });
852
- }, Sn = {
859
+ }, Nn = {
853
860
  visibility: "hidden"
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 = 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), w = g(e, m.Slots), y = g(e, m.ShowMoreSlots);
861
+ }, An = ({ children: e, className: t }) => {
862
+ const { required: n, onFocus: a, onBlur: r } = ie(), { inputId: s, labelId: l, ariaDescribedBy: i } = le(), c = Dn(), D = v(e, m.Loader), u = v(e, m.Notification), S = v(e, m.Dates), E = v(e, m.Timezone), d = v(e, m.Format), b = v(e, m.DateTitle), F = v(e, m.Slots), A = v(e, m.ShowMoreSlots);
856
863
  return /* @__PURE__ */ o.createElement(je.Provider, {
857
864
  value: c
858
- }, /* @__PURE__ */ o.createElement(Ct, {
859
- id: r,
865
+ }, /* @__PURE__ */ o.createElement(Wt, {
866
+ id: s,
860
867
  className: t,
861
- ariaLabelledBy: i,
862
- ariaDescribedBy: l,
868
+ ariaLabelledBy: l,
869
+ ariaDescribedBy: i,
863
870
  required: n,
864
871
  onFocus: a,
865
- onBlur: s
872
+ onBlur: r
866
873
  }, D, c.hasError ? u : /* @__PURE__ */ o.createElement("div", {
867
- style: c.isLoading ? Sn : void 0
868
- }, S, E, d, b, Ee(w, {
874
+ style: c.isLoading ? Nn : void 0
875
+ }, S, E, d, b, Se(F, {
869
876
  hasTimezoneNote: !!E,
870
877
  hasDateTitle: !!b
871
- }), u, y)));
872
- }, pn = ({ children: e, className: t }) => {
873
- const { isLoading: n, isRefetching: a } = F();
878
+ }), u, A)));
879
+ }, yn = ({ children: e, className: t }) => {
880
+ const { isLoading: n, isRefetching: a } = w();
874
881
  return !n && !a ? null : /* @__PURE__ */ o.createElement("div", {
875
882
  className: t,
876
883
  role: "status",
@@ -878,137 +885,137 @@ const m = ({ children: e, className: t }) => {
878
885
  "data-initial": n || void 0,
879
886
  "data-refetch": !n && a || void 0
880
887
  }, e);
881
- }, Nn = ({ children: e, className: t }) => {
882
- const { notificationMessage: n } = F();
888
+ }, In = ({ children: e, className: t }) => {
889
+ const { notificationMessage: n } = w();
883
890
  return n ? /* @__PURE__ */ o.createElement("div", {
884
891
  className: t,
885
892
  role: "status"
886
893
  }, e ? e({
887
894
  message: n
888
895
  }) : n) : null;
889
- }, yn = ({ children: e, className: t }) => {
890
- const { timezoneLabel: n } = F(), { inputId: a } = le();
896
+ }, On = ({ children: e, className: t }) => {
897
+ const { timezoneLabel: n } = w(), { inputId: a } = le();
891
898
  return n ? /* @__PURE__ */ o.createElement("span", {
892
899
  id: Qe(a),
893
900
  className: t
894
901
  }, e ? e({
895
902
  label: n
896
903
  }) : n) : null;
897
- }, An = ({ children: e, className: t }) => {
898
- const { formatLabel: n } = F();
904
+ }, Ln = ({ children: e, className: t }) => {
905
+ const { formatLabel: n } = w();
899
906
  return n ? /* @__PURE__ */ o.createElement("span", {
900
907
  className: t
901
908
  }, e ? e({
902
909
  label: n
903
910
  }) : n) : null;
904
- }, In = ({ children: e, className: t }) => {
905
- const { selectedDateLabel: n } = F(), { inputId: a } = le();
911
+ }, Tn = ({ children: e, className: t }) => {
912
+ const { selectedDateLabel: n } = w(), { inputId: a } = le();
906
913
  return n ? /* @__PURE__ */ o.createElement("div", {
907
914
  id: Je(a),
908
915
  className: t
909
916
  }, e ? e({
910
917
  label: n
911
918
  }) : n) : null;
912
- }, Ln = ({ children: e, className: t }) => {
913
- const { hasMoreSlots: n, showMoreSlots: a, showMoreSlotsLabel: s } = F(), { disabled: r, readOnly: i } = ie();
919
+ }, bn = ({ children: e, className: t }) => {
920
+ const { hasMoreSlots: n, showMoreSlots: a, showMoreSlotsLabel: r } = w(), { disabled: s, readOnly: l } = ie();
914
921
  return n ? /* @__PURE__ */ o.createElement(ve, {
915
922
  className: t,
916
- isDisabled: !!r || !!i,
923
+ isDisabled: !!s || !!l,
917
924
  onPress: a
918
925
  }, e ? e({
919
- label: s
920
- }) : s) : null;
926
+ label: r
927
+ }) : r) : null;
921
928
  };
922
- m.Label = ht;
923
- m.Loader = pn;
924
- m.Notification = Nn;
929
+ m.Label = xt;
930
+ m.Loader = yn;
931
+ m.Notification = In;
925
932
  m.Dates = C;
926
- m.Timezone = yn;
927
- m.Format = An;
928
- m.DateTitle = In;
933
+ m.Timezone = On;
934
+ m.Format = Ln;
935
+ m.DateTitle = Tn;
929
936
  m.Slots = fe;
930
- m.ShowMoreSlots = Ln;
931
- m.Description = Mt;
932
- m.Error = Ft;
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", wn = "_weekdayLabel_14etx_94", Mn = "_dayNumber_14etx_103", Fn = "_indicator_14etx_107", hn = "_hint_14etx_130", Cn = "_slots_14etx_143", Wn = "_dateTitle_14etx_157", xn = "_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
- previousWeek: vn,
939
- nextWeek: kn,
940
- day: Rn,
941
- weekdayLabel: wn,
942
- dayNumber: Mn,
943
- indicator: Fn,
944
- hint: hn,
945
- slots: Cn,
946
- dateTitle: Wn,
947
- slot: xn,
948
- slotHover: Bn,
949
- slotSelected: Pn,
950
- showMoreSlots: Un,
951
- loader: zn,
952
- notification: Hn
953
- }, Yn = ({ content: e, locale: t }) => /* @__PURE__ */ o.createElement(it, {
937
+ m.ShowMoreSlots = bn;
938
+ m.Description = ht;
939
+ m.Error = Ct;
940
+ const gn = "_appointment_14etx_1", vn = "_dates_14etx_5", Rn = "_weekHeading_14etx_30", kn = "_weekButton_14etx_36", Fn = "_previousWeek_14etx_68", Mn = "_nextWeek_14etx_72", wn = "_day_14etx_84", hn = "_weekdayLabel_14etx_94", Cn = "_dayNumber_14etx_103", xn = "_indicator_14etx_107", Wn = "_hint_14etx_130", Bn = "_slots_14etx_143", Pn = "_dateTitle_14etx_157", Un = "_slot_14etx_143", zn = "_slotHover_14etx_199", Hn = "_slotSelected_14etx_207", Yn = "_showMoreSlots_14etx_261", Kn = "_loader_14etx_292", $n = "_notification_14etx_328", N = {
941
+ appointment: gn,
942
+ dates: vn,
943
+ weekHeading: Rn,
944
+ weekButton: kn,
945
+ previousWeek: Fn,
946
+ nextWeek: Mn,
947
+ day: wn,
948
+ weekdayLabel: hn,
949
+ dayNumber: Cn,
950
+ indicator: xn,
951
+ hint: Wn,
952
+ slots: Bn,
953
+ dateTitle: Pn,
954
+ slot: Un,
955
+ slotHover: zn,
956
+ slotSelected: Hn,
957
+ showMoreSlots: Yn,
958
+ loader: Kn,
959
+ notification: $n
960
+ }, Gn = ({ content: e, locale: t }) => /* @__PURE__ */ o.createElement(it, {
954
961
  content: e,
955
962
  locale: t
956
- }), Kn = {
963
+ }), Zn = {
957
964
  base: N.slot,
958
965
  selected: N.slotSelected,
959
966
  hover: N.slotHover
960
- }, $n = () => {
961
- const e = bt({
962
- globalClasses: Tt,
963
- moduleClasses: Kn
967
+ }, Vn = () => {
968
+ const e = vt({
969
+ globalClasses: gt,
970
+ moduleClasses: Zn
964
971
  });
965
972
  return /* @__PURE__ */ o.createElement(m, {
966
- className: v(St, N.appointment)
973
+ className: g(_t, N.appointment)
967
974
  }, /* @__PURE__ */ o.createElement(m.Label, {
968
- className: v(_t, ue.label)
975
+ className: g(pt, ue.label)
969
976
  }, /* @__PURE__ */ o.createElement(m.Label.Required, {
970
- className: v(pt, ue.requiredMark)
977
+ className: g(Nt, ue.requiredMark)
971
978
  })), /* @__PURE__ */ o.createElement(m.Loader, {
972
979
  className: N.loader
973
980
  }), /* @__PURE__ */ o.createElement(m.Dates, {
974
- className: v(Nt, N.dates)
981
+ className: g(At, N.dates)
975
982
  }, /* @__PURE__ */ o.createElement(m.Dates.PreviousWeek, {
976
- className: v(me, N.weekButton, N.previousWeek)
983
+ className: g(me, N.weekButton, N.previousWeek)
977
984
  }, /* @__PURE__ */ o.createElement(he, null)), /* @__PURE__ */ o.createElement(m.Dates.Heading, {
978
985
  className: N.weekHeading
979
986
  }), /* @__PURE__ */ o.createElement(m.Dates.NextWeek, {
980
- className: v(me, N.weekButton, N.nextWeek)
987
+ className: g(me, N.weekButton, N.nextWeek)
981
988
  }, /* @__PURE__ */ o.createElement(he, null)), /* @__PURE__ */ o.createElement(m.Dates.Day, {
982
- className: v(me, Ce.day, N.day)
989
+ className: g(me, Ce.day, N.day)
983
990
  }, (t) => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("span", {
984
991
  className: N.weekdayLabel
985
992
  }, t.weekdayLabel), /* @__PURE__ */ o.createElement("span", {
986
- className: v(Ce.dayNumber, N.dayNumber)
993
+ className: g(Ce.dayNumber, N.dayNumber)
987
994
  }, t.dayOfMonthLabel, /* @__PURE__ */ o.createElement("span", {
988
995
  className: N.indicator
989
996
  }))))), /* @__PURE__ */ o.createElement(m.Timezone, {
990
- className: v(We, N.hint)
997
+ className: g(xe, N.hint)
991
998
  }), /* @__PURE__ */ o.createElement(m.Format, {
992
- className: v(We, N.hint)
999
+ className: g(xe, N.hint)
993
1000
  }), /* @__PURE__ */ o.createElement(m.DateTitle, {
994
- className: v(yt, N.dateTitle)
1001
+ className: g(yt, N.dateTitle)
995
1002
  }), /* @__PURE__ */ o.createElement(m.Slots, {
996
- className: v(At, N.slots)
1003
+ className: g(It, N.slots)
997
1004
  }, /* @__PURE__ */ o.createElement(m.Slots.Slot, {
998
- className: ({ isSelected: t, isHovered: n, isFocused: a, isDisabled: s, isReadOnly: r }) => e({
1005
+ className: ({ isSelected: t, isHovered: n, isFocused: a, isDisabled: r, isReadOnly: s }) => e({
999
1006
  isSelected: t,
1000
- isHovered: (n || a) && !t && !s && !r
1007
+ isHovered: (n || a) && !t && !r && !s
1001
1008
  })
1002
1009
  }, (t) => t.timeRange)), /* @__PURE__ */ o.createElement(m.Notification, {
1003
- className: N.notification
1010
+ className: g(Ot, N.notification)
1004
1011
  }), /* @__PURE__ */ o.createElement(m.ShowMoreSlots, {
1005
- className: v(It, me, N.showMoreSlots)
1012
+ className: g(Lt, me, N.showMoreSlots)
1006
1013
  }), /* @__PURE__ */ o.createElement(m.Error, {
1007
- className: v(Lt, ue.error)
1014
+ className: g(Tt, ue.error)
1008
1015
  }, /* @__PURE__ */ o.createElement(lt, null), /* @__PURE__ */ o.createElement(m.Error.Text, null)), /* @__PURE__ */ o.createElement(m.Description, {
1009
- className: v(Ot, ue.description)
1010
- }, Yn));
1011
- }, ca = () => /* @__PURE__ */ o.createElement($n, null);
1016
+ className: g(bt, ue.description)
1017
+ }, Gn));
1018
+ }, da = () => /* @__PURE__ */ o.createElement(Vn, null);
1012
1019
  export {
1013
- ca as AppointmentRAC
1020
+ da as AppointmentRAC
1014
1021
  };