@wix/form-elements 1.135.0 → 1.136.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.
- package/dist/component/appointment-rac-DsD7xLmb.js +1010 -0
- package/dist/component/{bookings-address-rac-BK-sU26E.js → bookings-address-rac-ByaFu51U.js} +1 -1
- package/dist/component/{bookings-email-rac-DZ3HVkyn.js → bookings-email-rac-CxuvkcYw.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Ci4PHqOr.js → bookings-first-name-rac-JXLJa_7E.js} +1 -1
- package/dist/component/{bookings-header-rac-C_MYNrDA.js → bookings-header-rac-CIQTbf9d.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CdNlwyjm.js → bookings-last-name-rac-_2Xt4BPe.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CP2JcaVr.js → bookings-login-bar-rac-BUjys5i9.js} +6 -6
- package/dist/component/{bookings-phone-rac-BV8sqxil.js → bookings-phone-rac-DlsdGmOt.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DQtcYRsh.js → bookings-rich-text-rac-BvRdhL7M.js} +1 -1
- package/dist/component/{checkbox-field-rac-DPNqHTNc.js → checkbox-field-rac-Be6wicaA.js} +121 -121
- package/dist/component/{checkbox-group-field-headless-DhhynlgN.js → checkbox-group-field-headless-BJ0pGvXi.js} +19 -19
- package/dist/component/{checkbox-group-field-rac-B3zOW7qr.js → checkbox-group-field-rac-D7xqqVf6.js} +4 -4
- package/dist/component/{checkbox-group-rac-Qy03hO31.js → checkbox-group-rac-DtCS-gEH.js} +1 -1
- package/dist/component/{checkbox-rac-DYr3RaHj.js → checkbox-rac-ub7MFwY-.js} +1 -1
- package/dist/component/{contacts-address-rac-Bi-etpfX.js → contacts-address-rac-Bwsdpg11.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-D2LLjX9P.js → contacts-birthdate-rac-D54hibhb.js} +1 -1
- package/dist/component/{contacts-company-rac-C9ImoG_i.js → contacts-company-rac-CKqzgKio.js} +1 -1
- package/dist/component/{contacts-email-rac-DeGblC9V.js → contacts-email-rac-Dxm31wuY.js} +1 -1
- package/dist/component/{contacts-first-name-rac-Xk3m57jK.js → contacts-first-name-rac-CXHsx6Vy.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BKE-1IYB.js → contacts-last-name-rac-B0S268f3.js} +1 -1
- package/dist/component/{contacts-phone-rac-CHmtTutD.js → contacts-phone-rac-DEbgIiEj.js} +1 -1
- package/dist/component/{contacts-position-rac-BS3TySLG.js → contacts-position-rac-D31uoOlR.js} +1 -1
- package/dist/component/{contacts-subscribe-rac--fpczJiB.js → contacts-subscribe-rac-DJ8NtoxZ.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-CHkn8vkL.js → contacts-tax-id-rac-DTQffHAo.js} +1 -1
- package/dist/component/{date-availability-70Vb-dlb.js → date-availability-DmhJ9apH.js} +1 -1
- package/dist/component/{date-input-field-rac-BlkYEYM_.js → date-input-field-rac-BwM_q4FW.js} +52 -52
- package/dist/component/{date-input-rac-JdNFk07Q.js → date-input-rac-C93pgocp.js} +1 -1
- package/dist/component/{date-picker-field-rac-DHu11mY1.js → date-picker-field-rac-CtZL368W.js} +5 -5
- package/dist/component/{date-picker-rac-CZtWhFzM.js → date-picker-rac-4DNe6hOX.js} +1 -1
- package/dist/component/{date-time-input-field-rac-cHAALqS5.js → date-time-input-field-rac-MlCVy3Oz.js} +58 -58
- package/dist/component/{date-time-input-rac-Dz7GfoJO.js → date-time-input-rac-ByyBvFgo.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-ZNKzyWda.js → dext-checkbox-group-rac-BP76Xwiq.js} +4 -4
- package/dist/component/{dext-checkbox-rac-DfPFXrKu.js → dext-checkbox-rac-DGaKSh4Z.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BPbl65qK.js → dext-date-picker-rac-UEXbMSlL.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-D5ywbLtW.js → dext-date-time-input-rac-CsJcGK4I.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BuVsPZOU.js → dext-dropdown-rac-BzbRzloh.js} +1 -1
- package/dist/component/{dext-email-rac-DRjt3lqT.js → dext-email-rac-DufFAnTi.js} +1 -1
- package/dist/component/{dext-number-input-rac-Bzrl87fo.js → dext-number-input-rac-D6xXi7B2.js} +1 -1
- package/dist/component/{dext-phone-rac-LibvQb8h.js → dext-phone-rac-svy9CDHW.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BTWnIvwW.js → dext-radio-group-rac-C4p9NuQS.js} +4 -4
- package/dist/component/{dext-rating-input-rac-DTlnOcC8.js → dext-rating-input-rac-wJ7-RFFN.js} +1 -1
- package/dist/component/{dext-tags-rac-YdeijviH.js → dext-tags-rac-D2myHrSZ.js} +4 -4
- package/dist/component/{dext-text-area-rac-CdCzQYey.js → dext-text-area-rac-B4Fw_9mF.js} +1 -1
- package/dist/component/{dext-text-input-rac-B28RTezm.js → dext-text-input-rac-DlZanFMT.js} +1 -1
- package/dist/component/{dext-url-input-rac-B0ZBPbAb.js → dext-url-input-rac-DYjl3wuk.js} +1 -1
- package/dist/component/{donation-rac-_0cwsIAq.js → donation-rac-B6LwJxik.js} +72 -72
- package/dist/component/{dropdown-field-headless-DVZnbZAM.js → dropdown-field-headless-BAt2RoAH.js} +8 -8
- package/dist/component/{dropdown-field-rac-DWCj_Grt.js → dropdown-field-rac-DFjn3ecV.js} +7 -7
- package/dist/component/{dropdown-rac-Bpo-F5sc.js → dropdown-rac-DQ6keNRI.js} +1 -1
- package/dist/component/{ecom-address-rac-vJ0ku_Ld.js → ecom-address-rac-j1T2zp0k.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DgVReM6c.js → ecom-subscription-checkbox-rac-viTaRZsk.js} +2 -2
- package/dist/component/{email-input-field-rac-BXJGOBg-.js → email-input-field-rac-5eb-1w7B.js} +46 -46
- package/dist/component/{events-repeater-rac-CrXE_ppd.js → events-repeater-rac-BtcoN_Ra.js} +23 -23
- package/dist/component/{events-rsvp-rac-BGg3P1CQ.js → events-rsvp-rac-DSzFEmty.js} +10 -10
- package/dist/component/{field-error-headless-C3eOy1_l.js → field-error-headless-Bpe041x2.js} +6 -6
- package/dist/component/{field-label-headless-BMmR_IeF.js → field-label-headless-BUuK1Ftv.js} +7 -7
- package/dist/component/{file-upload-rac-Umix6wXx.js → file-upload-rac-CfU8Ygwq.js} +50 -50
- package/dist/component/{fixed-payment-rac-CfIJCBjb.js → fixed-payment-rac-CYp7zNq8.js} +12 -12
- package/dist/component/{form-CYPNOMwk.js → form-C6lnbh2O.js} +831 -823
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-oxHUTKYV.js → header-field-rac-B7YfrhId.js} +4 -4
- package/dist/component/{header-rac-DTGV923r.js → header-rac-BtJKAKAz.js} +1 -1
- package/dist/component/{image-choice-rac-B9JGl_h7.js → image-choice-rac-Bmq7Pyg6.js} +32 -32
- package/dist/component/{index-BOKSOnDK.js → index-BjPSeVyh.js} +107 -107
- package/dist/component/{index-C_ktc-yO.js → index-CQdUOkIN.js} +5 -5
- package/dist/component/{isObjectLike-Di8V7txC.js → isObjectLike-CxNqKfU5.js} +7 -7
- package/dist/component/{multiline-address-field-rac-zgmTbXlg.js → multiline-address-field-rac-BeiUJWKd.js} +115 -115
- package/dist/component/{multiline-address-rac-Cyb3dvBf.js → multiline-address-rac-B2mocF6M.js} +1 -1
- package/dist/component/{number-input-field-rac-DquqqRy_.js → number-input-field-rac-CQX7_S2O.js} +24 -24
- package/dist/component/{number-input-rac-G2DdTbk2.js → number-input-rac-BZri-E8P.js} +1 -1
- package/dist/component/{password-rac-DJCU0F38.js → password-rac-CdwrtDJU.js} +50 -50
- package/dist/component/{payment-input-rac-DlIYza6N.js → payment-input-rac-ClQiqmjm.js} +38 -38
- package/dist/component/{phone-input-field-rac-B10TInMa.js → phone-input-field-rac-BtG_Rado.js} +56 -56
- package/dist/component/{phone-rac-BuyttJpM.js → phone-rac-CdcAMa5E.js} +1 -1
- package/dist/component/{product-list-rac-WrSJwQ_g.js → product-list-rac-Dp_YK6mo.js} +61 -61
- package/dist/component/{quiz-radio-group-rac-CHxZ_pK_.js → quiz-radio-group-rac-CorojxKD.js} +1 -1
- package/dist/component/{radio-button-module-classes-DjJU-8ZB.js → radio-button-module-classes-ZX12Fyj4.js} +3 -3
- package/dist/component/{radio-group-field-rac-BImiqcKa.js → radio-group-field-rac-BifCDpE4.js} +10 -10
- package/dist/component/{radio-group-rac-CDkJeGpN.js → radio-group-rac-CJ2fzqnY.js} +1 -1
- package/dist/component/{rating-input-field-rac-Dsr_S5qN.js → rating-input-field-rac-Dg1T0DZW.js} +28 -28
- package/dist/component/{rating-input-rac-BJUW8U93.js → rating-input-rac-Ba4YK13i.js} +1 -1
- package/dist/component/{rich-content-rac.module-BfQJqA-x.js → rich-content-rac.module-BehwBL3L.js} +3 -3
- package/dist/component/{rich-text-field-rac-DIuZbu_u.js → rich-text-field-rac-DtIWdB-S.js} +7 -7
- package/dist/component/{rich-text-rac-C39fpEiP.js → rich-text-rac-BX4eDDFw.js} +1 -1
- package/dist/component/service-dropdown-rac-68WLBlsa.js +146 -0
- package/dist/component/{services-multi-choice-rac-GVb4qA7g.js → services-multi-choice-rac-8yNdAHfS.js} +7 -7
- package/dist/component/{signature-rac-nC5pr6nB.js → signature-rac-DeVOyl5O.js} +73 -73
- package/dist/component/{submit-button-rac-eUjgrx9Q.js → submit-button-rac-IOr1g-G-.js} +12 -12
- package/dist/component/{tags-field-rac-zv30chSd.js → tags-field-rac-DaiMlAxt.js} +27 -27
- package/dist/component/{tags-rac-PnS2SxVP.js → tags-rac-BgrUkY0A.js} +1 -1
- package/dist/component/{text-area-field-rac-DLeOMD4g.js → text-area-field-rac-CLPZEY93.js} +16 -16
- package/dist/component/{text-area-rac-jZ_mh45C.js → text-area-rac-C8PdPSzX.js} +1 -1
- package/dist/component/{text-input-field-rac-DifV7Erd.js → text-input-field-rac-Dm-xU8Rg.js} +5 -5
- package/dist/component/{text-input-headless-DhVEjorY.js → text-input-headless-BEmRjL8Z.js} +6 -6
- package/dist/component/{text-input-rac-Ce4qKN9M.js → text-input-rac-C-FnaOXT.js} +1 -1
- package/dist/component/{time-input-rac-1kW3aDIo.js → time-input-rac-VmTURkiK.js} +46 -46
- package/dist/component/{url-input-field-rac-D9xXAQCq.js → url-input-field-rac-CnnS0tVx.js} +23 -23
- package/dist/component/{url-input-rac-SaAybDdN.js → url-input-rac-6nd_ccoP.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-C_MO_0JS.js → use-dropdown-option-class-name-CcZl1qrj.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-D7EMiD-M.js → use-dropdown-trigger-class-name-BNc0mkdK.js} +4 -4
- package/dist/component/{use-element-state-class-name-DZFi3Z42.js → use-element-state-class-name-BU6RXqBy.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-JAZ1mif0.js → use-hoverable-input-class-name-CkXPkbiP.js} +2 -2
- package/dist/component/{use-service-options-base-ZX4iaxzr.js → use-service-options-base-B5afDbnr.js} +4 -4
- package/dist/component/use-text-input-class-name-BB3V6Q0b.js +6 -0
- package/package.json +2 -2
- package/dist/component/appointment-rac-CYCddSl9.js +0 -1010
- package/dist/component/service-dropdown-rac-Bc9hEpx3.js +0 -146
- package/dist/component/use-text-input-class-name-XFjQX8q1.js +0 -6
|
@@ -1,1010 +0,0 @@
|
|
|
1
|
-
import s, { useRef as X, useState as Q, useEffect as H, createContext as Ke, useContext as $e, useMemo as P, useCallback as ie } from "react";
|
|
2
|
-
import { RicosViewer as rt } from "@wix/ricos/viewer";
|
|
3
|
-
import R from "classnames";
|
|
4
|
-
import { C as Me } from "./chevron-down-icon-CcpVm6B-.js";
|
|
5
|
-
import { E as it } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { g as lt, c as Ce } from "./calendar.module-CKCBG_Pg.js";
|
|
7
|
-
import { H as ue } from "./custom-focus-class-_483Pkwp.js";
|
|
8
|
-
import { s as de } from "./field-rac.module-DfEb7pBp.js";
|
|
9
|
-
import { b9 as De, b8 as ct, bd as Te, br as mt, bq as ut, bh as ce, be as Ee, bj as dt, bg as ft, F as Dt, I as Et, U as St, g as yt, G as We, o as pt, V as _t, v as Lt, p as At, a6 as Nt } from "./form-CYPNOMwk.js";
|
|
10
|
-
import { u as bt } from "./use-element-state-class-name-DZFi3Z42.js";
|
|
11
|
-
import { ListBox as It, Button as he, ListBoxItem as Ot, RadioGroup as gt, RadioField as Tt, RadioButton as ht } from "react-aria-components";
|
|
12
|
-
import { f as T, a as le } from "./find-child-C60k4CxG.js";
|
|
13
|
-
import { D as vt, E as kt } from "./field-error-headless-C3eOy1_l.js";
|
|
14
|
-
import { L as Rt } from "./field-label-headless-BMmR_IeF.js";
|
|
15
|
-
import { F as wt } from "./fieldset-headless-CD3fds9J.js";
|
|
16
|
-
import "date-fns";
|
|
17
|
-
import { V as Ge } from "./headless-styles-CmcyA_pi.js";
|
|
18
|
-
function Ft(e) {
|
|
19
|
-
return { evid: 40, src: 16, endpoint: "", params: e };
|
|
20
|
-
}
|
|
21
|
-
var Ie = /* @__PURE__ */ (function(e) {
|
|
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) {
|
|
24
|
-
return e.LOADING = "LOADING", e.DONE = "DONE", e.ERROR = "ERROR", e;
|
|
25
|
-
})({});
|
|
26
|
-
const q = 4;
|
|
27
|
-
var J = /* @__PURE__ */ (function(e) {
|
|
28
|
-
return e.FORM = "form", e.NO_AVAILABILITY_FOR_DATE = "no availability for date empty state", e.NO_AVAILABILITY_AT_ALL = "no availability at all empty state", e.SLOT = "slot", e.DATE = "date", e.PAGINATION = "pagination", e.SHOW_MORE = "show more", e;
|
|
29
|
-
})({}), ne = /* @__PURE__ */ (function(e) {
|
|
30
|
-
return e.LOAD = "load", e.CLICK = "click", e;
|
|
31
|
-
})({});
|
|
32
|
-
const Mt = (e) => {
|
|
33
|
-
var t;
|
|
34
|
-
return {
|
|
35
|
-
bookingsServiceId: e == null ? void 0 : e.id,
|
|
36
|
-
formGuid: (t = e == null ? void 0 : e.form) == null ? void 0 : t.id,
|
|
37
|
-
serviceProperties: Ct(e)
|
|
38
|
-
};
|
|
39
|
-
}, Ct = (e) => {
|
|
40
|
-
var t;
|
|
41
|
-
return JSON.stringify({
|
|
42
|
-
serviceId: e == null ? void 0 : e.id,
|
|
43
|
-
serviceType: e == null ? void 0 : e.type,
|
|
44
|
-
locationIds: (t = e == null ? void 0 : e.locations) == null ? void 0 : t.map((n) => n.id).filter((n) => n),
|
|
45
|
-
staffMemberIds: e == null ? void 0 : e.staffMemberIds,
|
|
46
|
-
isOfferedAsPricingPlan: !1
|
|
47
|
-
});
|
|
48
|
-
}, Ze = (e) => {
|
|
49
|
-
var l;
|
|
50
|
-
const { appointmentFieldProps: t } = ve(), { isEditor: n, isComposer: a } = De(), o = ct(), r = e || ((l = t == null ? void 0 : t.initialData) == null ? void 0 : l.service);
|
|
51
|
-
if (!(n || a))
|
|
52
|
-
return {
|
|
53
|
-
...o,
|
|
54
|
-
report: (i) => o == null ? void 0 : o.report(Ft({
|
|
55
|
-
...Mt(r),
|
|
56
|
-
...i
|
|
57
|
-
}))
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
var Oe;
|
|
61
|
-
(function(e) {
|
|
62
|
-
e.UNDEFINED = "UNDEFINED", e.OWNER_BUSINESS = "OWNER_BUSINESS", e.OWNER_CUSTOM = "OWNER_CUSTOM", e.CUSTOM = "CUSTOM";
|
|
63
|
-
})(Oe || (Oe = {}));
|
|
64
|
-
var Be;
|
|
65
|
-
(function(e) {
|
|
66
|
-
e.UNKNOWN_REQUESTED_GENDER = "UNKNOWN_REQUESTED_GENDER", e.ANY_MALE = "ANY_MALE", e.ANY_FEMALE = "ANY_FEMALE";
|
|
67
|
-
})(Be || (Be = {}));
|
|
68
|
-
var Ue;
|
|
69
|
-
(function(e) {
|
|
70
|
-
e.UNKNOWN_LOCATION_TYPE = "UNKNOWN_LOCATION_TYPE", e.BUSINESS = "BUSINESS", e.CUSTOM = "CUSTOM", e.CUSTOMER = "CUSTOMER";
|
|
71
|
-
})(Ue || (Ue = {}));
|
|
72
|
-
var xe;
|
|
73
|
-
(function(e) {
|
|
74
|
-
e.UNKNOWN_REQUESTED_GENDER = "UNKNOWN_REQUESTED_GENDER", e.ANY_MALE = "ANY_MALE", e.ANY_FEMALE = "ANY_FEMALE";
|
|
75
|
-
})(xe || (xe = {}));
|
|
76
|
-
var Pe;
|
|
77
|
-
(function(e) {
|
|
78
|
-
e.ASC = "ASC", e.DESC = "DESC";
|
|
79
|
-
})(Pe || (Pe = {}));
|
|
80
|
-
const Wt = (e) => {
|
|
81
|
-
const { service: t } = e || {};
|
|
82
|
-
return (t == null ? void 0 : t.id) ? null : {
|
|
83
|
-
type: Ie.GENERAL,
|
|
84
|
-
message: "Service ID is missing"
|
|
85
|
-
};
|
|
86
|
-
}, Bt = ({ appointmentFieldProps: e, isEditor: t, isComposer: n }) => {
|
|
87
|
-
const { initialData: a } = e, o = Pt();
|
|
88
|
-
if (t || n)
|
|
89
|
-
return {
|
|
90
|
-
...o,
|
|
91
|
-
timezone: Ve(),
|
|
92
|
-
dataStatus: z.DONE
|
|
93
|
-
};
|
|
94
|
-
{
|
|
95
|
-
const r = Wt(a);
|
|
96
|
-
if (r)
|
|
97
|
-
return {
|
|
98
|
-
dataStatus: z.ERROR,
|
|
99
|
-
error: r
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
return {
|
|
103
|
-
...o,
|
|
104
|
-
dataStatus: z.LOADING
|
|
105
|
-
};
|
|
106
|
-
}, Ut = (e, t) => {
|
|
107
|
-
const n = /* @__PURE__ */ new Date(), a = new Date(n);
|
|
108
|
-
a.setMonth(a.getMonth() + e);
|
|
109
|
-
const o = new Date(n.toLocaleString("en-US", {
|
|
110
|
-
timeZone: t
|
|
111
|
-
})), r = new Date(a.toLocaleString("en-US", {
|
|
112
|
-
timeZone: t
|
|
113
|
-
}));
|
|
114
|
-
return {
|
|
115
|
-
startDate: o,
|
|
116
|
-
endDate: r
|
|
117
|
-
};
|
|
118
|
-
}, Ve = () => Intl.DateTimeFormat().resolvedOptions().timeZone, xt = (e) => {
|
|
119
|
-
var t, n, a;
|
|
120
|
-
if ((n = (t = e == null ? void 0 : e[0]) == null ? void 0 : t.slot) != null && n.startDate)
|
|
121
|
-
return new Date((a = e[0].slot) == null ? void 0 : a.startDate);
|
|
122
|
-
}, Pt = ({ duration: e = 60, timezone: t = "UTC" } = {}) => {
|
|
123
|
-
var E, d;
|
|
124
|
-
const n = "267d1c11-8019-4e3d-b9c6-cd2b859c69e2", a = /* @__PURE__ */ new Date(), o = [], r = [], l = a.toISOString().split("T")[0], i = 10, c = 18;
|
|
125
|
-
let D = /* @__PURE__ */ new Date(`${l}T${i}:00:00`), u = new Date(D);
|
|
126
|
-
u.setMinutes(u.getMinutes() + e);
|
|
127
|
-
let y = !1;
|
|
128
|
-
for (; u.getHours() < c || u.getHours() === c && u.getMinutes() === 0; ) {
|
|
129
|
-
const O = {
|
|
130
|
-
slot: {
|
|
131
|
-
serviceId: n,
|
|
132
|
-
startDate: D.toISOString(),
|
|
133
|
-
endDate: u.toISOString(),
|
|
134
|
-
location: {
|
|
135
|
-
locationType: Oe.CUSTOM
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
bookable: !0,
|
|
139
|
-
totalSpots: 1,
|
|
140
|
-
openSpots: 1,
|
|
141
|
-
bookingPolicyViolations: {
|
|
142
|
-
tooEarlyToBook: !1,
|
|
143
|
-
tooLateToBook: !1,
|
|
144
|
-
bookOnlineDisabled: !1
|
|
145
|
-
},
|
|
146
|
-
nestedSlots: []
|
|
147
|
-
};
|
|
148
|
-
r.push(O), y || (o.push(O), y = !0), D = new Date(u), u = new Date(D), u.setMinutes(u.getMinutes() + e);
|
|
149
|
-
}
|
|
150
|
-
return {
|
|
151
|
-
availabilitySlots: r,
|
|
152
|
-
availabilityDates: o,
|
|
153
|
-
timezone: t,
|
|
154
|
-
currentSlotBulkSize: q,
|
|
155
|
-
selectedDate: o.length > 0 && ((d = (E = o[0]) == null ? void 0 : E.slot) != null && d.startDate) ? new Date(o[0].slot.startDate) : void 0
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
function zt(e) {
|
|
159
|
-
var d;
|
|
160
|
-
const { initialData: t, onChange: n, value: a } = e, { isEditor: o, isComposer: r } = De(), l = (d = t == null ? void 0 : t.service) == null ? void 0 : d.id, { actions: i } = Te(), c = X(i);
|
|
161
|
-
c.current = i;
|
|
162
|
-
const D = !!(i != null && i.getAvailabilityDates && (i != null && i.getAvailabilitySlots)), [u, y] = Q(null), E = Ze(t == null ? void 0 : t.service);
|
|
163
|
-
return H(() => {
|
|
164
|
-
l && !o && !r && D && (async () => {
|
|
165
|
-
var p, g, Y, M, $;
|
|
166
|
-
const v = Ve(), I = {
|
|
167
|
-
currentSlotBulkSize: q,
|
|
168
|
-
timezone: v,
|
|
169
|
-
dataStatus: z.LOADING
|
|
170
|
-
};
|
|
171
|
-
try {
|
|
172
|
-
const U = async (oe) => {
|
|
173
|
-
var _, S;
|
|
174
|
-
const { startDate: G, endDate: C } = Ut(oe, v);
|
|
175
|
-
return (S = (_ = c.current) == null ? void 0 : _.getAvailabilityDates) == null ? void 0 : S.call(_, {
|
|
176
|
-
serviceId: l,
|
|
177
|
-
fromDate: G,
|
|
178
|
-
toDate: C,
|
|
179
|
-
timeZone: v
|
|
180
|
-
});
|
|
181
|
-
};
|
|
182
|
-
if (I.availabilityDates = await U(2), (p = I.availabilityDates) != null && p.length || (I.availabilityDates = await U(6)), !((g = I.availabilityDates) != null && g.length)) {
|
|
183
|
-
E == null || E.report({
|
|
184
|
-
action: ne.LOAD,
|
|
185
|
-
component: J.NO_AVAILABILITY_AT_ALL
|
|
186
|
-
}), y({
|
|
187
|
-
dataStatus: z.ERROR,
|
|
188
|
-
error: {
|
|
189
|
-
type: Ie.NO_AVAILABILITY_DATES_FOUND,
|
|
190
|
-
message: "No availability dates found"
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
return;
|
|
194
|
-
}
|
|
195
|
-
I.selectedDate = xt(I.availabilityDates), I.selectedDate && (I.availabilitySlots = await ((M = (Y = c.current) == null ? void 0 : Y.getAvailabilitySlots) == null ? void 0 : M.call(Y, {
|
|
196
|
-
serviceId: l,
|
|
197
|
-
timeZone: v,
|
|
198
|
-
selectedDate: I.selectedDate
|
|
199
|
-
}))), E == null || E.report({
|
|
200
|
-
action: ne.LOAD,
|
|
201
|
-
component: ($ = I.availabilityDates) != null && $.length ? J.FORM : J.NO_AVAILABILITY_FOR_DATE
|
|
202
|
-
}), a != null && a.startDate || n(void 0), y({
|
|
203
|
-
...I,
|
|
204
|
-
dataStatus: z.DONE
|
|
205
|
-
});
|
|
206
|
-
} catch (U) {
|
|
207
|
-
console.error(U), y({
|
|
208
|
-
dataStatus: z.ERROR,
|
|
209
|
-
error: {
|
|
210
|
-
type: Ie.GENERAL,
|
|
211
|
-
message: "An error occurred in initialAppointmentState"
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
})();
|
|
216
|
-
}, [
|
|
217
|
-
o,
|
|
218
|
-
r,
|
|
219
|
-
l,
|
|
220
|
-
D
|
|
221
|
-
]), u;
|
|
222
|
-
}
|
|
223
|
-
const qe = /* @__PURE__ */ Ke({
|
|
224
|
-
appointmentState: {},
|
|
225
|
-
setAppointmentState: () => {
|
|
226
|
-
}
|
|
227
|
-
}), Ht = ({ appointmentFieldProps: e, children: t }) => {
|
|
228
|
-
const { isEditor: n, isComposer: a } = De(), [o, r] = Q(() => Bt({
|
|
229
|
-
appointmentFieldProps: e,
|
|
230
|
-
isEditor: n,
|
|
231
|
-
isComposer: a
|
|
232
|
-
})), l = zt(e);
|
|
233
|
-
return H(() => {
|
|
234
|
-
l && r({
|
|
235
|
-
...o,
|
|
236
|
-
...l
|
|
237
|
-
});
|
|
238
|
-
}, [
|
|
239
|
-
l
|
|
240
|
-
]), /* @__PURE__ */ s.createElement(qe.Provider, {
|
|
241
|
-
value: {
|
|
242
|
-
appointmentFieldProps: e,
|
|
243
|
-
appointmentState: o,
|
|
244
|
-
setAppointmentState: (i) => r({
|
|
245
|
-
...o,
|
|
246
|
-
...i
|
|
247
|
-
})
|
|
248
|
-
}
|
|
249
|
-
}, t);
|
|
250
|
-
}, ve = () => $e(qe), Yt = (e, t) => {
|
|
251
|
-
if (e.startOfWeek.getMonth() === e.endOfWeek.getMonth())
|
|
252
|
-
return new Intl.DateTimeFormat(t, {
|
|
253
|
-
month: "long",
|
|
254
|
-
year: "numeric"
|
|
255
|
-
}).format(e.endOfWeek);
|
|
256
|
-
const n = new Intl.DateTimeFormat(t, {
|
|
257
|
-
month: "short"
|
|
258
|
-
}).format(e.startOfWeek), a = new Intl.DateTimeFormat(t, {
|
|
259
|
-
month: "short",
|
|
260
|
-
year: "numeric"
|
|
261
|
-
}).format(e.endOfWeek);
|
|
262
|
-
return `${n} - ${a}`;
|
|
263
|
-
}, Kt = (e) => !(e != null && e.startDate) || !(e != null && e.endDate) || !(e != null && e.timeZone) ? null : {
|
|
264
|
-
startDate: e == null ? void 0 : e.startDate,
|
|
265
|
-
endDate: e == null ? void 0 : e.endDate,
|
|
266
|
-
timeZone: e == null ? void 0 : e.timeZone
|
|
267
|
-
}, ze = ({ timezone: e, language: t, formatType: n }) => {
|
|
268
|
-
var o;
|
|
269
|
-
return (o = new Intl.DateTimeFormat(t, {
|
|
270
|
-
timeZone: e,
|
|
271
|
-
timeZoneName: n === "name" ? "long" : "short"
|
|
272
|
-
}).formatToParts(/* @__PURE__ */ new Date()).find(({ type: r }) => r === "timeZoneName")) == null ? void 0 : o.value;
|
|
273
|
-
}, $t = ({ timezone: e, language: t }) => {
|
|
274
|
-
const n = ze({
|
|
275
|
-
timezone: e,
|
|
276
|
-
language: t,
|
|
277
|
-
formatType: "name"
|
|
278
|
-
}), a = ze({
|
|
279
|
-
timezone: e,
|
|
280
|
-
language: t,
|
|
281
|
-
formatType: "offset"
|
|
282
|
-
});
|
|
283
|
-
return `${n} (${a})`;
|
|
284
|
-
}, ae = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Gt = (e, t) => {
|
|
285
|
-
const n = new Date(e);
|
|
286
|
-
n.setDate(e.getDate() - t);
|
|
287
|
-
const a = new Date(e);
|
|
288
|
-
return a.setDate(e.getDate() + t), {
|
|
289
|
-
fromDate: n,
|
|
290
|
-
toDate: a
|
|
291
|
-
};
|
|
292
|
-
}, Zt = ({ setIsReloadingSlots: e }) => {
|
|
293
|
-
const { appointmentFieldProps: t, appointmentState: n, setAppointmentState: a } = ve(), { value: o } = t, { actions: r } = Te();
|
|
294
|
-
H(() => {
|
|
295
|
-
(async () => {
|
|
296
|
-
var i, c;
|
|
297
|
-
if (o != null && o.startDate && (n != null && n.selectedDate) && (n == null ? void 0 : n.dataStatus) === z.DONE && !ae(new Date(o.startDate), n == null ? void 0 : n.selectedDate)) {
|
|
298
|
-
e(!0);
|
|
299
|
-
const u = new Date(o.startDate), { fromDate: y, toDate: E } = Gt(u, 8), [d, O] = await Promise.all([
|
|
300
|
-
(i = r == null ? void 0 : r.getAvailabilityDates) == null ? void 0 : i.call(r, {
|
|
301
|
-
serviceId: t == null ? void 0 : t.initialData.service.id,
|
|
302
|
-
timeZone: (n == null ? void 0 : n.timezone) || "",
|
|
303
|
-
fromDate: y,
|
|
304
|
-
toDate: E
|
|
305
|
-
}),
|
|
306
|
-
(c = r == null ? void 0 : r.getAvailabilitySlots) == null ? void 0 : c.call(r, {
|
|
307
|
-
serviceId: t == null ? void 0 : t.initialData.service.id,
|
|
308
|
-
timeZone: (n == null ? void 0 : n.timezone) || "",
|
|
309
|
-
selectedDate: u
|
|
310
|
-
})
|
|
311
|
-
]);
|
|
312
|
-
a({
|
|
313
|
-
availabilityDates: d,
|
|
314
|
-
selectedDate: u,
|
|
315
|
-
availabilitySlots: O
|
|
316
|
-
}), e(!1);
|
|
317
|
-
}
|
|
318
|
-
})();
|
|
319
|
-
}, [
|
|
320
|
-
o,
|
|
321
|
-
n == null ? void 0 : n.dataStatus
|
|
322
|
-
]);
|
|
323
|
-
}, Vt = (e, t) => !e || !t.length ? e : e.filter((n) => {
|
|
324
|
-
var a;
|
|
325
|
-
return !t.includes(((a = n == null ? void 0 : n.slot) == null ? void 0 : a.startDate) ?? "");
|
|
326
|
-
}), fe = (e) => !(e != null && e.startDate) || !(e != null && e.endDate) ? "" : `${e == null ? void 0 : e.startDate}_${e == null ? void 0 : e.endDate}`, qt = ({ locale: e, endDate: t, startDate: n, timezone: a }) => {
|
|
327
|
-
const o = {
|
|
328
|
-
hour: "numeric",
|
|
329
|
-
minute: "numeric",
|
|
330
|
-
timeZone: a
|
|
331
|
-
}, r = new Intl.DateTimeFormat(e, o).format(new Date(n)), l = new Intl.DateTimeFormat(e, o).format(new Date(t));
|
|
332
|
-
return `${r} - ${l}`;
|
|
333
|
-
}, jt = ({ selectedDate: e, locale: t, timezone: n }) => e ? new Intl.DateTimeFormat(t, {
|
|
334
|
-
weekday: "long",
|
|
335
|
-
month: "short",
|
|
336
|
-
day: "numeric",
|
|
337
|
-
timeZone: n
|
|
338
|
-
}).format(e) : "", Qt = (e, t) => {
|
|
339
|
-
let n;
|
|
340
|
-
return t.forEach((a, o) => {
|
|
341
|
-
var r, l;
|
|
342
|
-
fe({
|
|
343
|
-
startDate: (r = a == null ? void 0 : a.slot) == null ? void 0 : r.startDate,
|
|
344
|
-
endDate: (l = a == null ? void 0 : a.slot) == null ? void 0 : l.endDate
|
|
345
|
-
}) === e && (n = o);
|
|
346
|
-
}), n;
|
|
347
|
-
};
|
|
348
|
-
var Jt = /* @__PURE__ */ (function(e) {
|
|
349
|
-
return e.OS_LOCATION = "OS_LOCATION", e.CUSTOM_LOCATION = "CUSTOM_LOCATION", e;
|
|
350
|
-
})({});
|
|
351
|
-
const Xt = "SLOT_UNAVAILABLE", en = (e) => {
|
|
352
|
-
var t;
|
|
353
|
-
return ((t = e == null ? void 0 : e.params) == null ? void 0 : t.reason) === Xt;
|
|
354
|
-
}, tn = ({ error: e, selectedSlot: t }) => {
|
|
355
|
-
const [n, a] = Q([]), o = en(e), r = t == null ? void 0 : t.startDate, l = X(!1);
|
|
356
|
-
return H(() => {
|
|
357
|
-
if (!o) {
|
|
358
|
-
l.current = !1;
|
|
359
|
-
return;
|
|
360
|
-
}
|
|
361
|
-
l.current || (l.current = !0, r && a((i) => i.includes(r) ? i : [
|
|
362
|
-
...i,
|
|
363
|
-
r
|
|
364
|
-
]));
|
|
365
|
-
}, [
|
|
366
|
-
o,
|
|
367
|
-
r
|
|
368
|
-
]), n;
|
|
369
|
-
}, j = 7, ge = (e) => {
|
|
370
|
-
const t = new Date(e);
|
|
371
|
-
return t.setHours(0, 0, 0, 0), t;
|
|
372
|
-
}, nn = (e) => {
|
|
373
|
-
const t = new Date(e);
|
|
374
|
-
return t.setHours(23, 59, 59, 999), t;
|
|
375
|
-
}, te = (e, t) => {
|
|
376
|
-
const n = new Date(e);
|
|
377
|
-
return n.setDate(n.getDate() + t), n;
|
|
378
|
-
}, He = (e, t) => {
|
|
379
|
-
const n = ge(e), a = (n.getDay() - t + j) % j;
|
|
380
|
-
return te(n, -a);
|
|
381
|
-
}, an = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, sn = (e, t, n) => {
|
|
382
|
-
const a = new Intl.DateTimeFormat(n, {
|
|
383
|
-
month: "short",
|
|
384
|
-
day: "numeric"
|
|
385
|
-
});
|
|
386
|
-
return typeof a.formatRange == "function" ? a.formatRange(e, t) : `${a.format(e)} - ${a.format(t)}`;
|
|
387
|
-
}, on = (e, t = []) => t.some((n) => {
|
|
388
|
-
var a;
|
|
389
|
-
return !!((a = n.slot) != null && a.startDate) && ae(new Date(n.slot.startDate), e);
|
|
390
|
-
}), rn = () => {
|
|
391
|
-
var Fe;
|
|
392
|
-
const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } = ve(), { language: a, isEditor: o, isComposer: r } = De(), { t: l } = mt(), { actions: i } = Te(), c = Ze(), [D, u] = Q(!1), [y, E] = Q(!1), [d, O] = Q(), [v, I] = Q();
|
|
393
|
-
Zt({
|
|
394
|
-
setIsReloadingSlots: u
|
|
395
|
-
});
|
|
396
|
-
const { onChange: p, value: g, target: Y, initialData: M, formatDescription: $, locationType: U, error: oe } = e, { availabilityDates: G, availabilitySlots: C, timezone: _ = "", selectedDate: S, currentSlotBulkSize: k, dataStatus: K, error: Z } = t, V = (Fe = M == null ? void 0 : M.service) == null ? void 0 : Fe.id, w = K === z.LOADING, ee = D || y, Se = !!Z, Re = tn({
|
|
397
|
-
error: oe,
|
|
398
|
-
selectedSlot: g
|
|
399
|
-
}), L = P(() => Vt(C, Re), [
|
|
400
|
-
C,
|
|
401
|
-
Re
|
|
402
|
-
]);
|
|
403
|
-
H(() => {
|
|
404
|
-
p == null || p(Kt(g));
|
|
405
|
-
}, [
|
|
406
|
-
g == null ? void 0 : g.startDate,
|
|
407
|
-
g == null ? void 0 : g.endDate,
|
|
408
|
-
_
|
|
409
|
-
]), ut((f) => {
|
|
410
|
-
const N = f == null ? void 0 : f[Y];
|
|
411
|
-
C != null && C.length && n({
|
|
412
|
-
availabilitySlots: C.filter((b) => {
|
|
413
|
-
var h;
|
|
414
|
-
return ((h = b == null ? void 0 : b.slot) == null ? void 0 : h.startDate) !== (N == null ? void 0 : N.startDate);
|
|
415
|
-
})
|
|
416
|
-
});
|
|
417
|
-
}), H(() => {
|
|
418
|
-
if (L != null && L.length && k) {
|
|
419
|
-
const f = Qt(fe(g ?? void 0), L);
|
|
420
|
-
f && f + 1 > k && n({
|
|
421
|
-
currentSlotBulkSize: f + 1
|
|
422
|
-
});
|
|
423
|
-
} else !(L != null && L.length) && g && (p == null || p(void 0));
|
|
424
|
-
}, [
|
|
425
|
-
g,
|
|
426
|
-
L,
|
|
427
|
-
G
|
|
428
|
-
]);
|
|
429
|
-
const ye = P(() => lt(a), [
|
|
430
|
-
a
|
|
431
|
-
]), we = X(S);
|
|
432
|
-
H(() => {
|
|
433
|
-
const f = we.current;
|
|
434
|
-
we.current = S, !!S && (!f || !ae(f, S)) && O(void 0);
|
|
435
|
-
}, [
|
|
436
|
-
S
|
|
437
|
-
]);
|
|
438
|
-
const W = P(() => d ?? He(S ?? /* @__PURE__ */ new Date(), ye), [
|
|
439
|
-
d,
|
|
440
|
-
S,
|
|
441
|
-
ye
|
|
442
|
-
]), Je = P(() => {
|
|
443
|
-
const f = ge(/* @__PURE__ */ new Date()), N = new Intl.DateTimeFormat(a, {
|
|
444
|
-
weekday: "short"
|
|
445
|
-
}), b = new Intl.DateTimeFormat(a, {
|
|
446
|
-
day: "numeric"
|
|
447
|
-
}), h = new Intl.DateTimeFormat(a, {
|
|
448
|
-
weekday: "long",
|
|
449
|
-
month: "long",
|
|
450
|
-
day: "numeric"
|
|
451
|
-
});
|
|
452
|
-
return Array.from({
|
|
453
|
-
length: j
|
|
454
|
-
}, (re, Ne) => {
|
|
455
|
-
const x = te(W, Ne), be = !!S && ae(x, S), ot = ge(x) < f;
|
|
456
|
-
return {
|
|
457
|
-
key: an(x),
|
|
458
|
-
date: x,
|
|
459
|
-
isSelected: be,
|
|
460
|
-
isAvailable: !w && !ee && !be && on(x, G),
|
|
461
|
-
isDisabled: ot || ee && !be,
|
|
462
|
-
isToday: ae(x, f),
|
|
463
|
-
dayOfMonthLabel: b.format(x),
|
|
464
|
-
weekdayLabel: N.format(x),
|
|
465
|
-
label: h.format(x),
|
|
466
|
-
availabilityLabel: l("form.appointment.accessibility.calendar.has-availability.aria-label")
|
|
467
|
-
};
|
|
468
|
-
});
|
|
469
|
-
}, [
|
|
470
|
-
W,
|
|
471
|
-
S,
|
|
472
|
-
G,
|
|
473
|
-
w,
|
|
474
|
-
ee,
|
|
475
|
-
a,
|
|
476
|
-
l
|
|
477
|
-
]), pe = fe(g ?? void 0) || void 0, _e = P(() => w || D ? [] : (L ?? []).slice(0, k).flatMap((f) => {
|
|
478
|
-
const { startDate: N, endDate: b } = f.slot ?? {};
|
|
479
|
-
if (!N || !b)
|
|
480
|
-
return [];
|
|
481
|
-
const h = fe({
|
|
482
|
-
startDate: N,
|
|
483
|
-
endDate: b
|
|
484
|
-
});
|
|
485
|
-
return [
|
|
486
|
-
{
|
|
487
|
-
key: h,
|
|
488
|
-
startDate: N,
|
|
489
|
-
endDate: b,
|
|
490
|
-
timeRange: qt({
|
|
491
|
-
startDate: N,
|
|
492
|
-
endDate: b,
|
|
493
|
-
locale: a,
|
|
494
|
-
timezone: _
|
|
495
|
-
}),
|
|
496
|
-
isSelected: h === pe
|
|
497
|
-
}
|
|
498
|
-
];
|
|
499
|
-
}), [
|
|
500
|
-
L,
|
|
501
|
-
k,
|
|
502
|
-
w,
|
|
503
|
-
D,
|
|
504
|
-
a,
|
|
505
|
-
_,
|
|
506
|
-
pe
|
|
507
|
-
]), Le = !D && !!(L != null && L.length) && (k || q) < L.length, Ae = W > He(/* @__PURE__ */ new Date(), ye), Xe = ie(
|
|
508
|
-
async (f) => {
|
|
509
|
-
var N;
|
|
510
|
-
if (!(ee || S && ae(f, S))) {
|
|
511
|
-
u(!0), p == null || p(void 0), n({
|
|
512
|
-
currentSlotBulkSize: q,
|
|
513
|
-
selectedDate: f,
|
|
514
|
-
availabilitySlots: void 0
|
|
515
|
-
}), c == null || c.report({
|
|
516
|
-
action: ne.CLICK,
|
|
517
|
-
component: J.DATE
|
|
518
|
-
});
|
|
519
|
-
try {
|
|
520
|
-
const b = await ((N = i == null ? void 0 : i.getAvailabilitySlots) == null ? void 0 : N.call(i, {
|
|
521
|
-
serviceId: V,
|
|
522
|
-
timeZone: _,
|
|
523
|
-
selectedDate: f
|
|
524
|
-
}));
|
|
525
|
-
n({
|
|
526
|
-
currentSlotBulkSize: q,
|
|
527
|
-
selectedDate: f,
|
|
528
|
-
availabilitySlots: b
|
|
529
|
-
});
|
|
530
|
-
} catch {
|
|
531
|
-
} finally {
|
|
532
|
-
u(!1);
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
},
|
|
536
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
537
|
-
[
|
|
538
|
-
ee,
|
|
539
|
-
S,
|
|
540
|
-
V,
|
|
541
|
-
_,
|
|
542
|
-
i,
|
|
543
|
-
p,
|
|
544
|
-
c
|
|
545
|
-
]
|
|
546
|
-
), me = X(0), et = ie(
|
|
547
|
-
async (f) => {
|
|
548
|
-
var re;
|
|
549
|
-
if (f < 0 && !Ae)
|
|
550
|
-
return;
|
|
551
|
-
const N = W, b = te(W, f * j);
|
|
552
|
-
if (O(b), o || r)
|
|
553
|
-
return;
|
|
554
|
-
const h = ++me.current;
|
|
555
|
-
E(!0), c == null || c.report({
|
|
556
|
-
action: ne.CLICK,
|
|
557
|
-
component: J.PAGINATION
|
|
558
|
-
});
|
|
559
|
-
try {
|
|
560
|
-
const Ne = await ((re = i == null ? void 0 : i.getAvailabilityDates) == null ? void 0 : re.call(i, {
|
|
561
|
-
serviceId: V,
|
|
562
|
-
timeZone: _,
|
|
563
|
-
fromDate: b,
|
|
564
|
-
toDate: nn(te(b, j - 1))
|
|
565
|
-
}));
|
|
566
|
-
h === me.current && n({
|
|
567
|
-
availabilityDates: Ne
|
|
568
|
-
});
|
|
569
|
-
} catch {
|
|
570
|
-
h === me.current && O(N);
|
|
571
|
-
} finally {
|
|
572
|
-
h === me.current && E(!1);
|
|
573
|
-
}
|
|
574
|
-
},
|
|
575
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
576
|
-
[
|
|
577
|
-
Ae,
|
|
578
|
-
W,
|
|
579
|
-
o,
|
|
580
|
-
r,
|
|
581
|
-
V,
|
|
582
|
-
_,
|
|
583
|
-
i,
|
|
584
|
-
c
|
|
585
|
-
]
|
|
586
|
-
), tt = ie(
|
|
587
|
-
(f) => {
|
|
588
|
-
const N = _e.find((re) => re.key === f);
|
|
589
|
-
if (!N)
|
|
590
|
-
return;
|
|
591
|
-
const { startDate: b, endDate: h } = N;
|
|
592
|
-
c == null || c.report({
|
|
593
|
-
action: ne.CLICK,
|
|
594
|
-
component: J.SLOT,
|
|
595
|
-
startTime: new Date(b).valueOf(),
|
|
596
|
-
endTime: new Date(h).valueOf()
|
|
597
|
-
}), p == null || p({
|
|
598
|
-
startDate: b,
|
|
599
|
-
endDate: h,
|
|
600
|
-
timeZone: _
|
|
601
|
-
});
|
|
602
|
-
},
|
|
603
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
604
|
-
[
|
|
605
|
-
_e,
|
|
606
|
-
_,
|
|
607
|
-
p,
|
|
608
|
-
c
|
|
609
|
-
]
|
|
610
|
-
), nt = ie(() => {
|
|
611
|
-
if (!Le)
|
|
612
|
-
return;
|
|
613
|
-
const f = k || q;
|
|
614
|
-
c == null || c.report({
|
|
615
|
-
action: ne.CLICK,
|
|
616
|
-
component: J.SHOW_MORE
|
|
617
|
-
}), I(f), n({
|
|
618
|
-
currentSlotBulkSize: f + q
|
|
619
|
-
});
|
|
620
|
-
}, [
|
|
621
|
-
Le,
|
|
622
|
-
k,
|
|
623
|
-
c
|
|
624
|
-
]), at = ie(() => I(void 0), []), st = P(() => {
|
|
625
|
-
if (Se)
|
|
626
|
-
return l("form.appointment.empty-state.notification.text");
|
|
627
|
-
if (!w && !D && !(L != null && L.length))
|
|
628
|
-
return l("form.appointment.slots-not-found.text");
|
|
629
|
-
}, [
|
|
630
|
-
Se,
|
|
631
|
-
w,
|
|
632
|
-
D,
|
|
633
|
-
L == null ? void 0 : L.length,
|
|
634
|
-
l
|
|
635
|
-
]);
|
|
636
|
-
return {
|
|
637
|
-
days: Je,
|
|
638
|
-
slots: _e,
|
|
639
|
-
selectedSlotKey: pe,
|
|
640
|
-
selectDate: Xe,
|
|
641
|
-
selectSlot: tt,
|
|
642
|
-
changeWeek: et,
|
|
643
|
-
showMoreSlots: nt,
|
|
644
|
-
canGoToPreviousWeek: Ae,
|
|
645
|
-
hasMoreSlots: Le,
|
|
646
|
-
hasError: Se,
|
|
647
|
-
isLoading: w,
|
|
648
|
-
isRefetching: ee,
|
|
649
|
-
isReloadingSlots: D,
|
|
650
|
-
weekRangeLabel: sn(W, te(W, j - 1), a),
|
|
651
|
-
weekCaptionLabel: Yt({
|
|
652
|
-
startOfWeek: W,
|
|
653
|
-
endOfWeek: te(W, j - 1)
|
|
654
|
-
}, a),
|
|
655
|
-
selectedDateLabel: jt({
|
|
656
|
-
selectedDate: S,
|
|
657
|
-
locale: a,
|
|
658
|
-
timezone: _
|
|
659
|
-
}),
|
|
660
|
-
timezoneLabel: _ ? `${l("form.appointment.timezone.label")}: ${$t({
|
|
661
|
-
timezone: _,
|
|
662
|
-
language: a
|
|
663
|
-
})}` : "",
|
|
664
|
-
formatLabel: U === Jt.OS_LOCATION ? l("form.appointment.meeting-format.in-person-location-method-os-location") : $,
|
|
665
|
-
notificationMessage: st,
|
|
666
|
-
showMoreSlotsLabel: l("form.appointment.show-more-slots.text"),
|
|
667
|
-
previousWeekLabel: l("form.appointment.accessibility.calendar.previous-week.aria-label"),
|
|
668
|
-
nextWeekLabel: l("form.appointment.accessibility.calendar.next-week.aria-label"),
|
|
669
|
-
pendingFocusIndex: v,
|
|
670
|
-
consumePendingFocusIndex: at
|
|
671
|
-
};
|
|
672
|
-
}, je = Ke(void 0), Qe = (e) => `${e}-timezone-note`, F = () => {
|
|
673
|
-
const e = $e(je);
|
|
674
|
-
if (typeof e > "u")
|
|
675
|
-
throw new Error("Appointment parts must be used inside an <Appointment> component");
|
|
676
|
-
return e;
|
|
677
|
-
}, ke = () => {
|
|
678
|
-
const { disabled: e, readOnly: t } = ce();
|
|
679
|
-
return !!e || !!t;
|
|
680
|
-
}, B = ({ children: e, className: t }) => {
|
|
681
|
-
const { days: n, selectDate: a, weekRangeLabel: o } = F(), r = T(e, B.PreviousWeek), l = T(e, B.Heading), i = T(e, B.NextWeek), c = T(e, B.Day) ?? /* @__PURE__ */ s.createElement(B.Day, null), D = P(() => n.filter((d) => d.isSelected).map((d) => d.key), [
|
|
682
|
-
n
|
|
683
|
-
]), u = ke(), y = P(() => n.filter((d) => u || d.isDisabled).map((d) => d.key), [
|
|
684
|
-
n,
|
|
685
|
-
u
|
|
686
|
-
]), E = (d) => {
|
|
687
|
-
if (d === "all")
|
|
688
|
-
return;
|
|
689
|
-
const [O] = [
|
|
690
|
-
...d
|
|
691
|
-
], v = n.find(({ key: I }) => I === O);
|
|
692
|
-
v && a(v.date);
|
|
693
|
-
};
|
|
694
|
-
return /* @__PURE__ */ s.createElement("div", {
|
|
695
|
-
className: t
|
|
696
|
-
}, r, l, i, /* @__PURE__ */ s.createElement(It, {
|
|
697
|
-
"aria-label": o,
|
|
698
|
-
orientation: "horizontal",
|
|
699
|
-
selectionMode: "single",
|
|
700
|
-
selectedKeys: D,
|
|
701
|
-
disabledKeys: y,
|
|
702
|
-
onSelectionChange: E
|
|
703
|
-
}, n.map((d) => le(c, {
|
|
704
|
-
key: d.key,
|
|
705
|
-
day: d
|
|
706
|
-
}))));
|
|
707
|
-
}, ln = ({ children: e, className: t }) => {
|
|
708
|
-
const { changeWeek: n, canGoToPreviousWeek: a, previousWeekLabel: o, nextWeekLabel: r } = F(), l = ke(), i = X(null), c = X(!1);
|
|
709
|
-
return H(() => {
|
|
710
|
-
var y, E, d;
|
|
711
|
-
if (a || !c.current)
|
|
712
|
-
return;
|
|
713
|
-
c.current = !1;
|
|
714
|
-
const D = document.activeElement;
|
|
715
|
-
if (D !== document.body && D !== i.current)
|
|
716
|
-
return;
|
|
717
|
-
const u = ((E = (y = i.current) == null ? void 0 : y.closest("fieldset")) == null ? void 0 : E.querySelectorAll("button")) ?? [];
|
|
718
|
-
(d = Array.from(u).find((O) => O.getAttribute("aria-label") === r)) == null || d.focus();
|
|
719
|
-
}, [
|
|
720
|
-
a,
|
|
721
|
-
r
|
|
722
|
-
]), /* @__PURE__ */ s.createElement(he, {
|
|
723
|
-
ref: i,
|
|
724
|
-
className: t,
|
|
725
|
-
"aria-label": o,
|
|
726
|
-
isDisabled: !a || l,
|
|
727
|
-
onPress: () => {
|
|
728
|
-
c.current = !0, n(-1);
|
|
729
|
-
}
|
|
730
|
-
}, e ?? "‹");
|
|
731
|
-
}, cn = ({ children: e, className: t }) => {
|
|
732
|
-
const { changeWeek: n, nextWeekLabel: a } = F(), o = ke();
|
|
733
|
-
return /* @__PURE__ */ s.createElement(he, {
|
|
734
|
-
className: t,
|
|
735
|
-
"aria-label": a,
|
|
736
|
-
isDisabled: o,
|
|
737
|
-
onPress: () => n(1)
|
|
738
|
-
}, e ?? "›");
|
|
739
|
-
}, mn = ({ children: e, className: t }) => {
|
|
740
|
-
const { weekCaptionLabel: n, weekRangeLabel: a } = F();
|
|
741
|
-
return /* @__PURE__ */ s.createElement("span", {
|
|
742
|
-
className: t,
|
|
743
|
-
"aria-live": "polite"
|
|
744
|
-
}, e ? e({
|
|
745
|
-
label: n,
|
|
746
|
-
weekRange: a
|
|
747
|
-
}) : /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("span", {
|
|
748
|
-
"aria-hidden": "true"
|
|
749
|
-
}, n), /* @__PURE__ */ s.createElement("span", {
|
|
750
|
-
style: Ge
|
|
751
|
-
}, a)));
|
|
752
|
-
}, un = ({ children: e, className: t, ...n }) => {
|
|
753
|
-
const { day: a } = n;
|
|
754
|
-
return /* @__PURE__ */ s.createElement(Ot, {
|
|
755
|
-
id: a.key,
|
|
756
|
-
className: t,
|
|
757
|
-
textValue: a.label,
|
|
758
|
-
"aria-label": a.isAvailable ? `${a.label}, ${a.availabilityLabel}` : a.label,
|
|
759
|
-
"data-available": a.isAvailable || void 0,
|
|
760
|
-
"data-today": a.isToday || void 0
|
|
761
|
-
}, e ? e({
|
|
762
|
-
...a,
|
|
763
|
-
date: new Date(a.date)
|
|
764
|
-
}) : /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("span", null, a.weekdayLabel), /* @__PURE__ */ s.createElement("span", null, a.dayOfMonthLabel)));
|
|
765
|
-
};
|
|
766
|
-
B.PreviousWeek = ln;
|
|
767
|
-
B.Heading = mn;
|
|
768
|
-
B.NextWeek = cn;
|
|
769
|
-
B.Day = un;
|
|
770
|
-
const Ye = 'input[type="radio"]', se = ({ children: e, className: t, ...n }) => {
|
|
771
|
-
const { hasTimezoneNote: a } = n, { slots: o, selectedSlotKey: r, selectSlot: l, selectedDateLabel: i, isReloadingSlots: c, timezoneLabel: D, pendingFocusIndex: u, consumePendingFocusIndex: y } = F(), { id: E, disabled: d, readOnly: O, required: v, hasError: I } = ce(), { inputId: p, labelId: g, ariaDescribedBy: Y } = Ee(), M = X(null), $ = `${p}-slots-label`, U = T(e, se.Label), oe = T(e, se.Slot) ?? /* @__PURE__ */ s.createElement(se.Slot, null), G = !!U && !!i, C = [
|
|
772
|
-
Y,
|
|
773
|
-
a && D ? Qe(p) : void 0
|
|
774
|
-
].filter(Boolean).join(" ") || void 0, _ = (S) => {
|
|
775
|
-
var k, K, Z;
|
|
776
|
-
(Z = (K = (k = M.current) == null ? void 0 : k.querySelectorAll(Ye)) == null ? void 0 : K[S]) == null || Z.focus();
|
|
777
|
-
};
|
|
778
|
-
return dt(() => {
|
|
779
|
-
var Z, V;
|
|
780
|
-
if (!!((Z = M.current) != null && Z.querySelector(Ye))) {
|
|
781
|
-
_(0);
|
|
782
|
-
return;
|
|
783
|
-
}
|
|
784
|
-
const k = Array.from(((V = document.getElementById(p)) == null ? void 0 : V.querySelectorAll('[role="option"]')) ?? []), K = k.find((w) => w.getAttribute("aria-selected") === "true") ?? k.find((w) => w.getAttribute("aria-disabled") !== "true");
|
|
785
|
-
K == null || K.focus();
|
|
786
|
-
}, E), H(() => {
|
|
787
|
-
u !== void 0 && (_(u), y());
|
|
788
|
-
}, [
|
|
789
|
-
u,
|
|
790
|
-
o.length
|
|
791
|
-
]), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", {
|
|
792
|
-
role: "status",
|
|
793
|
-
style: Ge
|
|
794
|
-
}, o.length > 0 ? i : void 0), /* @__PURE__ */ s.createElement(gt, {
|
|
795
|
-
ref: M,
|
|
796
|
-
className: t,
|
|
797
|
-
value: r ?? null,
|
|
798
|
-
onChange: l,
|
|
799
|
-
isDisabled: d,
|
|
800
|
-
isReadOnly: O,
|
|
801
|
-
isRequired: v,
|
|
802
|
-
isInvalid: I,
|
|
803
|
-
"aria-labelledby": G ? $ : g,
|
|
804
|
-
"aria-describedby": C,
|
|
805
|
-
"data-refetch": c || void 0
|
|
806
|
-
}, le(U, {
|
|
807
|
-
labelId: $
|
|
808
|
-
}), o.map((S) => le(oe, {
|
|
809
|
-
key: S.key,
|
|
810
|
-
slot: S
|
|
811
|
-
}))));
|
|
812
|
-
}, dn = ({ children: e, className: t, ...n }) => {
|
|
813
|
-
const { selectedDateLabel: a } = F(), { labelId: o } = n;
|
|
814
|
-
return a ? /* @__PURE__ */ s.createElement("div", {
|
|
815
|
-
id: o,
|
|
816
|
-
className: t
|
|
817
|
-
}, e ? e({
|
|
818
|
-
label: a
|
|
819
|
-
}) : a) : null;
|
|
820
|
-
}, fn = ({ children: e, className: t, ...n }) => {
|
|
821
|
-
const { slot: a } = n;
|
|
822
|
-
return /* @__PURE__ */ s.createElement(Tt, {
|
|
823
|
-
value: a.key,
|
|
824
|
-
"aria-label": a.timeRange
|
|
825
|
-
}, /* @__PURE__ */ s.createElement(ht, {
|
|
826
|
-
className: t
|
|
827
|
-
}, e ? e(a) : a.timeRange));
|
|
828
|
-
};
|
|
829
|
-
se.Label = dn;
|
|
830
|
-
se.Slot = fn;
|
|
831
|
-
const m = ({ children: e, className: t }) => {
|
|
832
|
-
const n = ce(), { id: a, FieldLayout: o } = n, { labelId: r, inputId: l, ariaDescribedBy: i } = Ee(), c = ft(Dt.APPOINTMENT), D = P(() => ({
|
|
833
|
-
...n,
|
|
834
|
-
initialData: c,
|
|
835
|
-
inputId: l,
|
|
836
|
-
ariaLabelledBy: r,
|
|
837
|
-
ariaDescribedBy: i,
|
|
838
|
-
fieldId: a
|
|
839
|
-
}), [
|
|
840
|
-
n,
|
|
841
|
-
c,
|
|
842
|
-
l,
|
|
843
|
-
r,
|
|
844
|
-
i,
|
|
845
|
-
a
|
|
846
|
-
]), u = T(e, m.Label), y = T(e, m.Description), E = T(e, m.Error);
|
|
847
|
-
return /* @__PURE__ */ s.createElement(o, {
|
|
848
|
-
fieldId: a,
|
|
849
|
-
renderLabel: () => le(u, {
|
|
850
|
-
as: "div"
|
|
851
|
-
}),
|
|
852
|
-
renderInput: () => /* @__PURE__ */ s.createElement(Ht, {
|
|
853
|
-
appointmentFieldProps: D
|
|
854
|
-
}, /* @__PURE__ */ s.createElement(En, {
|
|
855
|
-
className: t
|
|
856
|
-
}, e)),
|
|
857
|
-
renderDescription: () => /* @__PURE__ */ s.createElement(s.Fragment, null, E, y)
|
|
858
|
-
});
|
|
859
|
-
}, Dn = {
|
|
860
|
-
visibility: "hidden"
|
|
861
|
-
}, En = ({ children: e, className: t }) => {
|
|
862
|
-
const { required: n, onFocus: a, onBlur: o } = ce(), { inputId: r, labelId: l, ariaDescribedBy: i } = Ee(), c = rn(), D = T(e, m.Loader), u = T(e, m.Notification), y = T(e, m.Dates), E = T(e, m.Timezone), d = T(e, m.Format), O = T(e, m.Slots), v = T(e, m.ShowMoreSlots);
|
|
863
|
-
return /* @__PURE__ */ s.createElement(je.Provider, {
|
|
864
|
-
value: c
|
|
865
|
-
}, /* @__PURE__ */ s.createElement(wt, {
|
|
866
|
-
id: r,
|
|
867
|
-
className: t,
|
|
868
|
-
ariaLabelledBy: l,
|
|
869
|
-
ariaDescribedBy: i,
|
|
870
|
-
required: n,
|
|
871
|
-
onFocus: a,
|
|
872
|
-
onBlur: o
|
|
873
|
-
}, D, c.hasError ? u : /* @__PURE__ */ s.createElement("div", {
|
|
874
|
-
style: c.isLoading ? Dn : void 0
|
|
875
|
-
}, y, E, d, le(O, {
|
|
876
|
-
hasTimezoneNote: !!E
|
|
877
|
-
}), u, v)));
|
|
878
|
-
}, Sn = ({ children: e, className: t }) => {
|
|
879
|
-
const { isLoading: n, isRefetching: a } = F();
|
|
880
|
-
return !n && !a ? null : /* @__PURE__ */ s.createElement("div", {
|
|
881
|
-
className: t,
|
|
882
|
-
role: "status",
|
|
883
|
-
"aria-live": "polite",
|
|
884
|
-
"data-initial": n || void 0,
|
|
885
|
-
"data-refetch": !n && a || void 0
|
|
886
|
-
}, e);
|
|
887
|
-
}, yn = ({ children: e, className: t }) => {
|
|
888
|
-
const { notificationMessage: n } = F();
|
|
889
|
-
return n ? /* @__PURE__ */ s.createElement("div", {
|
|
890
|
-
className: t,
|
|
891
|
-
role: "status"
|
|
892
|
-
}, e ? e({
|
|
893
|
-
message: n
|
|
894
|
-
}) : n) : null;
|
|
895
|
-
}, pn = ({ children: e, className: t }) => {
|
|
896
|
-
const { timezoneLabel: n } = F(), { inputId: a } = Ee();
|
|
897
|
-
return n ? /* @__PURE__ */ s.createElement("span", {
|
|
898
|
-
id: Qe(a),
|
|
899
|
-
className: t
|
|
900
|
-
}, e ? e({
|
|
901
|
-
label: n
|
|
902
|
-
}) : n) : null;
|
|
903
|
-
}, _n = ({ children: e, className: t }) => {
|
|
904
|
-
const { formatLabel: n } = F();
|
|
905
|
-
return n ? /* @__PURE__ */ s.createElement("span", {
|
|
906
|
-
className: t
|
|
907
|
-
}, e ? e({
|
|
908
|
-
label: n
|
|
909
|
-
}) : n) : null;
|
|
910
|
-
}, Ln = ({ children: e, className: t }) => {
|
|
911
|
-
const { hasMoreSlots: n, showMoreSlots: a, showMoreSlotsLabel: o } = F(), { disabled: r, readOnly: l } = ce();
|
|
912
|
-
return n ? /* @__PURE__ */ s.createElement(he, {
|
|
913
|
-
className: t,
|
|
914
|
-
isDisabled: !!r || !!l,
|
|
915
|
-
onPress: a
|
|
916
|
-
}, e ? e({
|
|
917
|
-
label: o
|
|
918
|
-
}) : o) : null;
|
|
919
|
-
};
|
|
920
|
-
m.Label = Rt;
|
|
921
|
-
m.Loader = Sn;
|
|
922
|
-
m.Notification = yn;
|
|
923
|
-
m.Dates = B;
|
|
924
|
-
m.Timezone = pn;
|
|
925
|
-
m.Format = _n;
|
|
926
|
-
m.Slots = se;
|
|
927
|
-
m.ShowMoreSlots = Ln;
|
|
928
|
-
m.Description = vt;
|
|
929
|
-
m.Error = kt;
|
|
930
|
-
const An = "_appointment_14yhs_1", Nn = "_dates_14yhs_5", bn = "_weekHeading_14yhs_26", In = "_weekButton_14yhs_35", On = "_previousWeek_14yhs_67", gn = "_nextWeek_14yhs_71", Tn = "_day_14yhs_83", hn = "_weekdayLabel_14yhs_95", vn = "_indicator_14yhs_107", kn = "_hint_14yhs_130", Rn = "_slots_14yhs_143", wn = "_slotsLabel_14yhs_158", Fn = "_slot_14yhs_143", Mn = "_slotHover_14yhs_197", Cn = "_slotSelected_14yhs_205", Wn = "_showMoreSlots_14yhs_259", Bn = "_loader_14yhs_290", Un = "_notification_14yhs_326", A = {
|
|
931
|
-
appointment: An,
|
|
932
|
-
dates: Nn,
|
|
933
|
-
weekHeading: bn,
|
|
934
|
-
weekButton: In,
|
|
935
|
-
previousWeek: On,
|
|
936
|
-
nextWeek: gn,
|
|
937
|
-
day: Tn,
|
|
938
|
-
weekdayLabel: hn,
|
|
939
|
-
indicator: vn,
|
|
940
|
-
hint: kn,
|
|
941
|
-
slots: Rn,
|
|
942
|
-
slotsLabel: wn,
|
|
943
|
-
slot: Fn,
|
|
944
|
-
slotHover: Mn,
|
|
945
|
-
slotSelected: Cn,
|
|
946
|
-
showMoreSlots: Wn,
|
|
947
|
-
loader: Bn,
|
|
948
|
-
notification: Un
|
|
949
|
-
}, xn = ({ content: e, locale: t }) => /* @__PURE__ */ s.createElement(rt, {
|
|
950
|
-
content: e,
|
|
951
|
-
locale: t
|
|
952
|
-
}), Pn = {
|
|
953
|
-
base: A.slot,
|
|
954
|
-
selected: A.slotSelected,
|
|
955
|
-
hover: A.slotHover
|
|
956
|
-
}, zn = () => {
|
|
957
|
-
const e = bt({
|
|
958
|
-
globalClasses: Nt,
|
|
959
|
-
moduleClasses: Pn
|
|
960
|
-
});
|
|
961
|
-
return /* @__PURE__ */ s.createElement(m, {
|
|
962
|
-
className: A.appointment
|
|
963
|
-
}, /* @__PURE__ */ s.createElement(m.Label, {
|
|
964
|
-
className: R(Et, de.label)
|
|
965
|
-
}, /* @__PURE__ */ s.createElement(m.Label.Required, {
|
|
966
|
-
className: R(St, de.requiredMark)
|
|
967
|
-
})), /* @__PURE__ */ s.createElement(m.Loader, {
|
|
968
|
-
className: A.loader
|
|
969
|
-
}), /* @__PURE__ */ s.createElement(m.Dates, {
|
|
970
|
-
className: R(yt, A.dates)
|
|
971
|
-
}, /* @__PURE__ */ s.createElement(m.Dates.PreviousWeek, {
|
|
972
|
-
className: R(ue, A.weekButton, A.previousWeek)
|
|
973
|
-
}, /* @__PURE__ */ s.createElement(Me, null)), /* @__PURE__ */ s.createElement(m.Dates.Heading, {
|
|
974
|
-
className: A.weekHeading
|
|
975
|
-
}), /* @__PURE__ */ s.createElement(m.Dates.NextWeek, {
|
|
976
|
-
className: R(ue, A.weekButton, A.nextWeek)
|
|
977
|
-
}, /* @__PURE__ */ s.createElement(Me, null)), /* @__PURE__ */ s.createElement(m.Dates.Day, {
|
|
978
|
-
className: R(ue, Ce.day, A.day)
|
|
979
|
-
}, (t) => /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("span", {
|
|
980
|
-
className: A.weekdayLabel
|
|
981
|
-
}, t.weekdayLabel), /* @__PURE__ */ s.createElement("span", {
|
|
982
|
-
className: Ce.dayNumber
|
|
983
|
-
}, t.dayOfMonthLabel, /* @__PURE__ */ s.createElement("span", {
|
|
984
|
-
className: A.indicator
|
|
985
|
-
}))))), /* @__PURE__ */ s.createElement(m.Timezone, {
|
|
986
|
-
className: R(We, A.hint)
|
|
987
|
-
}), /* @__PURE__ */ s.createElement(m.Format, {
|
|
988
|
-
className: R(We, A.hint)
|
|
989
|
-
}), /* @__PURE__ */ s.createElement(m.Slots, {
|
|
990
|
-
className: A.slots
|
|
991
|
-
}, /* @__PURE__ */ s.createElement(m.Slots.Label, {
|
|
992
|
-
className: R(pt, A.slotsLabel)
|
|
993
|
-
}), /* @__PURE__ */ s.createElement(m.Slots.Slot, {
|
|
994
|
-
className: ({ isSelected: t, isHovered: n, isFocused: a, isDisabled: o, isReadOnly: r }) => e({
|
|
995
|
-
isSelected: t,
|
|
996
|
-
isHovered: (n || a) && !t && !o && !r
|
|
997
|
-
})
|
|
998
|
-
}, (t) => t.timeRange)), /* @__PURE__ */ s.createElement(m.Notification, {
|
|
999
|
-
className: A.notification
|
|
1000
|
-
}), /* @__PURE__ */ s.createElement(m.ShowMoreSlots, {
|
|
1001
|
-
className: R(_t, ue, A.showMoreSlots)
|
|
1002
|
-
}), /* @__PURE__ */ s.createElement(m.Error, {
|
|
1003
|
-
className: R(Lt, de.error)
|
|
1004
|
-
}, /* @__PURE__ */ s.createElement(it, null), /* @__PURE__ */ s.createElement(m.Error.Text, null)), /* @__PURE__ */ s.createElement(m.Description, {
|
|
1005
|
-
className: R(At, de.description)
|
|
1006
|
-
}, xn));
|
|
1007
|
-
}, oa = () => /* @__PURE__ */ s.createElement(zn, null);
|
|
1008
|
-
export {
|
|
1009
|
-
oa as AppointmentRAC
|
|
1010
|
-
};
|