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