@wix/form-elements 1.172.0 → 1.173.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-DZ0SFXmL.js → appointment-rac-DIV9zgmZ.js} +80 -80
- package/dist/component/{bookings-address-rac-BW9grc77.js → bookings-address-rac-C5cT4gkX.js} +1 -1
- package/dist/component/{bookings-email-rac-D8gMaAfB.js → bookings-email-rac-CQEhRS7N.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CAjcs7b6.js → bookings-first-name-rac-BwdasJXd.js} +1 -1
- package/dist/component/{bookings-header-rac-BhKZ1kku.js → bookings-header-rac-CWzKq3yr.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DpsMDuU0.js → bookings-last-name-rac-CoVWqEy5.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BVdWmKS8.js → bookings-login-bar-rac-DwoI-iRQ.js} +4 -4
- package/dist/component/{bookings-phone-rac-DsqNi2mI.js → bookings-phone-rac-WAZU-1kD.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-elM4Ne3f.js → bookings-rich-text-rac-I5Uo-q87.js} +1 -1
- package/dist/component/{checkbox-field-rac-BU4E73fD.js → checkbox-field-rac-CKbKBNcQ.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-6yJdIbP2.js → checkbox-group-field-headless-7PMj-zW6.js} +47 -47
- package/dist/component/{checkbox-group-field-rac-CojbCWSF.js → checkbox-group-field-rac-BZ-YgEYR.js} +4 -4
- package/dist/component/{checkbox-group-rac-3qUVUc-C.js → checkbox-group-rac-CED8h4qI.js} +1 -1
- package/dist/component/{checkbox-rac-DwbTapd_.js → checkbox-rac-CbpEXMBz.js} +1 -1
- package/dist/component/{contacts-address-rac-BL7XDZuP.js → contacts-address-rac-F3Ui7iJu.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DeJYIHAg.js → contacts-birthdate-rac-CcxRV3RQ.js} +1 -1
- package/dist/component/{contacts-company-rac-BeImf5uc.js → contacts-company-rac-mDY20HzW.js} +1 -1
- package/dist/component/{contacts-email-rac-CtacwrZ0.js → contacts-email-rac-CoBPNuCj.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CAdOqOOA.js → contacts-first-name-rac-DzbpBmNm.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Db9mHzCW.js → contacts-last-name-rac-DEmV-MNE.js} +1 -1
- package/dist/component/{contacts-phone-rac-W0OLEbzL.js → contacts-phone-rac-BlEpatWP.js} +1 -1
- package/dist/component/{contacts-position-rac-CV4Ibt4Z.js → contacts-position-rac-DlZahRQc.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CQ3Q1pjZ.js → contacts-subscribe-rac-LXCEPvXl.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-Dux-pk6r.js → contacts-tax-id-rac-DS0SDAtC.js} +1 -1
- package/dist/component/{date-availability-RkX-Qw7G.js → date-availability-DTFyrU8J.js} +1 -1
- package/dist/component/{date-input-field-rac-CYCT6qoa.js → date-input-field-rac-D7Pv-hqW.js} +62 -62
- package/dist/component/{date-input-rac-BkYZ7q_o.js → date-input-rac-BEsh54Gz.js} +1 -1
- package/dist/component/{date-picker-field-rac-eMidYtsl.js → date-picker-field-rac-DJirD93a.js} +15 -15
- package/dist/component/{date-picker-rac-D23rxZcF.js → date-picker-rac-B1fUqj_w.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BjIj4dXQ.js → date-time-input-field-rac-CPFaQUXF.js} +38 -38
- package/dist/component/{date-time-input-rac-BSGAdk9L.js → date-time-input-rac-CAozBO0e.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Xmb5IKrb.js → dext-checkbox-group-rac-B0yqJoj8.js} +2 -2
- package/dist/component/{dext-checkbox-rac-2eA7y0ld.js → dext-checkbox-rac-yZaUdHz1.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CmLxVGGT.js → dext-date-picker-rac-AJ7XIW-h.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Cd9nwSjb.js → dext-date-time-input-rac-CPs79sUY.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BKdQ0nGS.js → dext-dropdown-rac-W2QzqPG4.js} +1 -1
- package/dist/component/{dext-email-rac-07zDPxyf.js → dext-email-rac-CCW1Dk1m.js} +1 -1
- package/dist/component/{dext-number-input-rac-DRvGuppY.js → dext-number-input-rac-BAInaxoF.js} +1 -1
- package/dist/component/{dext-phone-rac-CKtTVjFg.js → dext-phone-rac-CYYgZiFW.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BsBmMufq.js → dext-radio-group-rac-Dqvmxoai.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CcFSTAIh.js → dext-rating-input-rac-CWl7X0zW.js} +1 -1
- package/dist/component/{dext-tags-rac-CCTDlCvX.js → dext-tags-rac-BpAfPh55.js} +2 -2
- package/dist/component/{dext-text-area-rac-Cif8po9h.js → dext-text-area-rac-CLTg8XXH.js} +1 -1
- package/dist/component/{dext-text-input-rac-2118X4iF.js → dext-text-input-rac-BV-F-ZsP.js} +1 -1
- package/dist/component/{dext-url-input-rac-DDImGkQe.js → dext-url-input-rac-B9wHRaZr.js} +1 -1
- package/dist/component/{donation-rac-Dnylss1d.js → donation-rac-Be4swKWD.js} +50 -50
- package/dist/component/{dropdown-field-rac-DDI4ZgZH.js → dropdown-field-rac-BFEB_WuX.js} +3 -3
- package/dist/component/{dropdown-rac-DX0Z3R_8.js → dropdown-rac-Dz7QtFVB.js} +1 -1
- package/dist/component/{ecom-address-rac-D9MeEQsk.js → ecom-address-rac-Bu6msDgo.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DKJ9j5dj.js → ecom-subscription-checkbox-rac-BRovQqrM.js} +2 -2
- package/dist/component/{email-input-field-rac-DaKrmlwe.js → email-input-field-rac-EERVxm6G.js} +42 -42
- package/dist/component/{events-repeater-rac-DWrOLT0Y.js → events-repeater-rac-xs0pooBs.js} +49 -49
- package/dist/component/{events-rsvp-rac-YBTR1tR0.js → events-rsvp-rac-CMi-8EqK.js} +3 -3
- package/dist/component/{field-error-headless-jksFrezt.js → field-error-headless-DbFXeaud.js} +8 -8
- package/dist/component/{field-label-headless-BBvJAVxI.js → field-label-headless-CWOYHPsb.js} +11 -11
- package/dist/component/{file-upload-rac-CgdmfUZG.js → file-upload-rac-vbMTIdDc.js} +61 -61
- package/dist/component/{fixed-payment-rac-v6rKwzFs.js → fixed-payment-rac-BRk7ams_.js} +7 -7
- package/dist/component/{form-BsiK682r.js → form-BjeODFzx.js} +238 -237
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BuXybl7K.js → header-field-rac-CQexwZn7.js} +2 -2
- package/dist/component/{header-rac-CDyaLosW.js → header-rac-CYbPDl4_.js} +1 -1
- package/dist/component/{image-choice-rac-BRlMroBw.js → image-choice-rac-DDvlaK6K.js} +15 -15
- package/dist/component/{index-BanOeCAF.js → index-B6wFpWpe.js} +4 -4
- package/dist/component/{index-y9URYGEE.js → index-Bs9ypEe2.js} +6 -6
- package/dist/component/{isObjectLike-BG9nJ-rx.js → isObjectLike-Xcw2hQQ6.js} +1 -1
- package/dist/component/{multiline-address-field-rac-DRAkxI1l.js → multiline-address-field-rac-CYJR-MUz.js} +209 -209
- package/dist/component/{multiline-address-rac-JjTzWsEb.js → multiline-address-rac-DO1j_w6S.js} +1 -1
- package/dist/component/{number-input-field-rac-QrouG7Hv.js → number-input-field-rac-C-qvd8v9.js} +18 -18
- package/dist/component/{number-input-rac-DGmE7cLv.js → number-input-rac-CQSaifZE.js} +1 -1
- package/dist/component/{password-rac-DeyY228m.js → password-rac-CqnbZtR_.js} +28 -28
- package/dist/component/{payment-input-rac-DmIennLi.js → payment-input-rac-CbOcztkp.js} +28 -28
- package/dist/component/{phone-input-field-rac-F7e74TGA.js → phone-input-field-rac-BQ187I2C.js} +55 -55
- package/dist/component/{phone-rac-CQfB2CQD.js → phone-rac-CbA2xqF3.js} +1 -1
- package/dist/component/{product-list-rac--GGG8vvO.js → product-list-rac-MxB9tRiE.js} +103 -103
- package/dist/component/{quiz-radio-group-rac-DF2C2vNq.js → quiz-radio-group-rac-IViaDVRW.js} +1 -1
- package/dist/component/{radio-button-module-classes-DmpNo6F2.js → radio-button-module-classes-jtnooKMO.js} +33 -33
- package/dist/component/{radio-group-field-rac-BGcPYfKO.js → radio-group-field-rac-g3SQGJPp.js} +4 -4
- package/dist/component/{radio-group-rac-CqysUMCE.js → radio-group-rac-D8wmzlbu.js} +1 -1
- package/dist/component/{rating-input-field-rac-D-ei917Y.js → rating-input-field-rac-BqPXKKdi.js} +15 -15
- package/dist/component/{rating-input-rac-a9zJ74fw.js → rating-input-rac-CeZIpOmm.js} +1 -1
- package/dist/component/{rich-content-rac.module-CvyLVlXL.js → rich-content-rac.module-BLgdpRh_.js} +5 -5
- package/dist/component/{rich-text-field-rac-vf19nvyw.js → rich-text-field-rac-BpSVobCQ.js} +6 -6
- package/dist/component/{rich-text-rac-Cx_wpoxC.js → rich-text-rac-DqpaqbFH.js} +1 -1
- package/dist/component/{service-dropdown-rac-DITzKQxd.js → service-dropdown-rac-DKgtga1t.js} +30 -30
- package/dist/component/{services-multi-choice-rac-BtisN0Aq.js → services-multi-choice-rac-CAyB0b4q.js} +9 -9
- package/dist/component/{signature-rac-DUeIoS5O.js → signature-rac-DC20YN4f.js} +97 -97
- package/dist/component/{submit-button-rac-C8h6zeTw.js → submit-button-rac-ClWtqIkR.js} +30 -30
- package/dist/component/{tags-field-rac-CjFuiB0n.js → tags-field-rac-DHM9k8uf.js} +18 -18
- package/dist/component/{tags-rac-BO7rwyLl.js → tags-rac-Clg50jwY.js} +1 -1
- package/dist/component/{text-area-field-rac-CgUx3nQ0.js → text-area-field-rac-B2qJZ6wR.js} +16 -16
- package/dist/component/{text-area-rac-WgXYXIaf.js → text-area-rac-BwsVk7u7.js} +1 -1
- package/dist/component/{text-input-field-rac-DaxWFha-.js → text-input-field-rac-BQbo-3Ly.js} +6 -6
- package/dist/component/{text-input-headless-hjuRJTZN.js → text-input-headless-WICGIHcN.js} +3 -3
- package/dist/component/{text-input-rac-BzumrJBj.js → text-input-rac-D7BRYDZr.js} +1 -1
- package/dist/component/{time-input-rac-2FEkpQ7M.js → time-input-rac-Dnp-0_Js.js} +22 -22
- package/dist/component/{url-input-field-rac-BZ9f8D8I.js → url-input-field-rac-MC13zKST.js} +19 -19
- package/dist/component/{url-input-rac-D-AVlxkD.js → url-input-rac-DfAtTmKv.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-DwAAtzgX.js → use-dropdown-option-class-name-CVUEosg4.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-D-6n9YVG.js → use-dropdown-trigger-class-name-BHLG7EB-.js} +25 -25
- package/dist/component/{use-element-state-class-name-C5auxwhj.js → use-element-state-class-name-BVJylHPn.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-Nd2jqfz4.js → use-hoverable-input-class-name-DO9ctJ81.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-CKaHhCqp.js → use-is-forced-open-dropdown-Czuo32Nq.js} +8 -8
- package/dist/component/{use-service-options-base-CvluFheT.js → use-service-options-base-DUuGIm38.js} +1 -1
- package/dist/component/use-text-input-class-name-LEnNGX0a.js +6 -0
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-DGTlYJxC.js +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import o, { useRef as
|
|
1
|
+
import o, { useRef as J, useState as Q, useEffect as P, createContext as Ke, useContext as $e, useMemo as B, useCallback as re } from "react";
|
|
2
2
|
import { RicosViewer as it } from "@wix/ricos/viewer";
|
|
3
3
|
import g from "classnames";
|
|
4
4
|
import { C as he } from "./chevron-down-icon-CcpVm6B-.js";
|
|
@@ -6,12 +6,12 @@ import { E as lt } from "./error-icon-hZxQ6DEy.js";
|
|
|
6
6
|
import { g as ct, c as Ce } from "./calendar.module-BMUyMVja.js";
|
|
7
7
|
import { H as me } from "./custom-focus-class-_483Pkwp.js";
|
|
8
8
|
import { s as ue } from "./field-rac.module-ts2t4WUO.js";
|
|
9
|
-
import {
|
|
10
|
-
import { u as vt } from "./use-element-state-class-name-
|
|
11
|
-
import { ListBox as Rt, Button as ve, ListBoxItem as kt, RadioGroup as
|
|
9
|
+
import { bD as Ee, bC as mt, bH as ge, bF as ut, bV as dt, bU as Dt, bL as ie, bI as le, bN as ft, bK as Et, F as St, h as _t, X as Nt, am as pt, g as At, j as We, i as yt, n as It, k as Ot, l as Lt, M as Tt, I as bt, m as gt } from "./form-BjeODFzx.js";
|
|
10
|
+
import { u as vt } from "./use-element-state-class-name-BVJylHPn.js";
|
|
11
|
+
import { ListBox as Rt, Button as ve, ListBoxItem as kt, RadioGroup as Ft, RadioField as Mt, RadioButton as wt } from "react-aria-components";
|
|
12
12
|
import { f as v, a as Se } from "./find-child-C60k4CxG.js";
|
|
13
|
-
import { D as ht, E as Ct } from "./field-error-headless-
|
|
14
|
-
import { L as Wt } from "./field-label-headless-
|
|
13
|
+
import { D as ht, E as Ct } from "./field-error-headless-DbFXeaud.js";
|
|
14
|
+
import { L as Wt } from "./field-label-headless-CWOYHPsb.js";
|
|
15
15
|
import { F as xt } from "./fieldset-headless-CD3fds9J.js";
|
|
16
16
|
import "date-fns";
|
|
17
17
|
import { V as Ge } from "./headless-styles-CmcyA_pi.js";
|
|
@@ -24,7 +24,7 @@ var De = /* @__PURE__ */ (function(e) {
|
|
|
24
24
|
return e.LOADING = "LOADING", e.DONE = "DONE", e.ERROR = "ERROR", e;
|
|
25
25
|
})({});
|
|
26
26
|
const q = 4;
|
|
27
|
-
var
|
|
27
|
+
var X = /* @__PURE__ */ (function(e) {
|
|
28
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
29
|
})({}), ne = /* @__PURE__ */ (function(e) {
|
|
30
30
|
return e.LOAD = "load", e.CLICK = "click", e;
|
|
@@ -45,7 +45,7 @@ const Pt = (e) => {
|
|
|
45
45
|
staffMemberIds: e == null ? void 0 : e.staffMemberIds,
|
|
46
46
|
isOfferedAsPricingPlan: !1
|
|
47
47
|
});
|
|
48
|
-
},
|
|
48
|
+
}, Ve = (e) => {
|
|
49
49
|
var l;
|
|
50
50
|
const { appointmentFieldProps: t } = Re(), { isEditor: n, isComposer: a } = Ee(), r = mt(), s = e || ((l = t == null ? void 0 : t.initialData) == null ? void 0 : l.service);
|
|
51
51
|
if (!(n || a))
|
|
@@ -88,7 +88,7 @@ const zt = (e) => {
|
|
|
88
88
|
if (t || n)
|
|
89
89
|
return {
|
|
90
90
|
...r,
|
|
91
|
-
timezone:
|
|
91
|
+
timezone: Ze(),
|
|
92
92
|
dataStatus: W.DONE
|
|
93
93
|
};
|
|
94
94
|
{
|
|
@@ -115,7 +115,7 @@ const zt = (e) => {
|
|
|
115
115
|
startDate: r,
|
|
116
116
|
endDate: s
|
|
117
117
|
};
|
|
118
|
-
},
|
|
118
|
+
}, Ze = () => Intl.DateTimeFormat().resolvedOptions().timeZone, Kt = (e) => {
|
|
119
119
|
var t, n, a;
|
|
120
120
|
if ((n = (t = e == null ? void 0 : e[0]) == null ? void 0 : t.slot) != null && n.startDate)
|
|
121
121
|
return new Date((a = e[0].slot) == null ? void 0 : a.startDate);
|
|
@@ -157,32 +157,32 @@ const zt = (e) => {
|
|
|
157
157
|
};
|
|
158
158
|
function Gt(e) {
|
|
159
159
|
var d;
|
|
160
|
-
const { initialData: t, onChange: n, value: a } = e, { isEditor: r, isComposer: s } = Ee(), l = (d = t == null ? void 0 : t.service) == null ? void 0 : d.id, { actions: i } = ge(), c =
|
|
160
|
+
const { initialData: t, onChange: n, value: a } = e, { isEditor: r, isComposer: s } = Ee(), l = (d = t == null ? void 0 : t.service) == null ? void 0 : d.id, { actions: i } = ge(), c = J(i);
|
|
161
161
|
c.current = i;
|
|
162
|
-
const D = !!(i != null && i.getAvailabilityDates && (i != null && i.getAvailabilitySlots)), [u, S] = Q(null), E =
|
|
162
|
+
const D = !!(i != null && i.getAvailabilityDates && (i != null && i.getAvailabilitySlots)), [u, S] = Q(null), E = Ve(t == null ? void 0 : t.service);
|
|
163
163
|
return P(() => {
|
|
164
164
|
l && !r && !s && D && (async () => {
|
|
165
165
|
var I, O, U, z, H;
|
|
166
|
-
const
|
|
166
|
+
const F = Ze(), A = {
|
|
167
167
|
currentSlotBulkSize: q,
|
|
168
|
-
timezone:
|
|
168
|
+
timezone: F,
|
|
169
169
|
dataStatus: W.LOADING
|
|
170
170
|
};
|
|
171
171
|
try {
|
|
172
172
|
const Y = async (oe) => {
|
|
173
173
|
var _, N;
|
|
174
|
-
const { startDate: $, endDate:
|
|
174
|
+
const { startDate: $, endDate: M } = Yt(oe, F);
|
|
175
175
|
return (N = (_ = c.current) == null ? void 0 : _.getAvailabilityDates) == null ? void 0 : N.call(_, {
|
|
176
176
|
serviceId: l,
|
|
177
177
|
fromDate: $,
|
|
178
|
-
toDate:
|
|
179
|
-
timeZone:
|
|
178
|
+
toDate: M,
|
|
179
|
+
timeZone: F
|
|
180
180
|
});
|
|
181
181
|
};
|
|
182
182
|
if (A.availabilityDates = await Y(2), (I = A.availabilityDates) != null && I.length || (A.availabilityDates = await Y(6)), !((O = A.availabilityDates) != null && O.length)) {
|
|
183
183
|
E == null || E.report({
|
|
184
184
|
action: ne.LOAD,
|
|
185
|
-
component:
|
|
185
|
+
component: X.NO_AVAILABILITY_AT_ALL
|
|
186
186
|
}), S({
|
|
187
187
|
dataStatus: W.ERROR,
|
|
188
188
|
error: {
|
|
@@ -194,11 +194,11 @@ function Gt(e) {
|
|
|
194
194
|
}
|
|
195
195
|
A.selectedDate = Kt(A.availabilityDates), A.selectedDate && (A.availabilitySlots = await ((z = (U = c.current) == null ? void 0 : U.getAvailabilitySlots) == null ? void 0 : z.call(U, {
|
|
196
196
|
serviceId: l,
|
|
197
|
-
timeZone:
|
|
197
|
+
timeZone: F,
|
|
198
198
|
selectedDate: A.selectedDate
|
|
199
199
|
}))), E == null || E.report({
|
|
200
200
|
action: ne.LOAD,
|
|
201
|
-
component: (H = A.availabilityDates) != null && H.length ?
|
|
201
|
+
component: (H = A.availabilityDates) != null && H.length ? X.FORM : X.NO_AVAILABILITY_FOR_DATE
|
|
202
202
|
}), a != null && a.startDate || n(void 0), S({
|
|
203
203
|
...A,
|
|
204
204
|
dataStatus: W.DONE
|
|
@@ -224,13 +224,13 @@ const qe = /* @__PURE__ */ Ke({
|
|
|
224
224
|
appointmentState: {},
|
|
225
225
|
setAppointmentState: () => {
|
|
226
226
|
}
|
|
227
|
-
}),
|
|
227
|
+
}), Vt = {
|
|
228
228
|
dataStatus: W.ERROR,
|
|
229
229
|
error: {
|
|
230
230
|
type: De.NO_AVAILABILITY_DATES_FOUND,
|
|
231
231
|
message: "No availability dates found"
|
|
232
232
|
}
|
|
233
|
-
},
|
|
233
|
+
}, Zt = ({ appointmentFieldProps: e, children: t }) => {
|
|
234
234
|
var c;
|
|
235
235
|
const { isEditor: n, isComposer: a } = Ee(), r = ((c = ut().appointment) == null ? void 0 : c.noAvailability) === !0, [s, l] = Q(() => Ht({
|
|
236
236
|
appointmentFieldProps: e,
|
|
@@ -247,7 +247,7 @@ const qe = /* @__PURE__ */ Ke({
|
|
|
247
247
|
]), /* @__PURE__ */ o.createElement(qe.Provider, {
|
|
248
248
|
value: {
|
|
249
249
|
appointmentFieldProps: e,
|
|
250
|
-
appointmentState: r ?
|
|
250
|
+
appointmentState: r ? Vt : s,
|
|
251
251
|
setAppointmentState: (D) => l({
|
|
252
252
|
...s,
|
|
253
253
|
...D
|
|
@@ -288,7 +288,7 @@ const qe = /* @__PURE__ */ Ke({
|
|
|
288
288
|
formatType: "offset"
|
|
289
289
|
});
|
|
290
290
|
return `${n} (${a})`;
|
|
291
|
-
}, ae = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(),
|
|
291
|
+
}, ae = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Xt = (e, t) => {
|
|
292
292
|
const n = new Date(e);
|
|
293
293
|
n.setDate(e.getDate() - t);
|
|
294
294
|
const a = new Date(e);
|
|
@@ -296,14 +296,14 @@ const qe = /* @__PURE__ */ Ke({
|
|
|
296
296
|
fromDate: n,
|
|
297
297
|
toDate: a
|
|
298
298
|
};
|
|
299
|
-
},
|
|
299
|
+
}, Jt = ({ setIsReloadingSlots: e }) => {
|
|
300
300
|
const { appointmentFieldProps: t, appointmentState: n, setAppointmentState: a } = Re(), { value: r } = t, { actions: s } = ge();
|
|
301
301
|
P(() => {
|
|
302
302
|
(async () => {
|
|
303
303
|
var i, c;
|
|
304
304
|
if (r != null && r.startDate && (n != null && n.selectedDate) && (n == null ? void 0 : n.dataStatus) === W.DONE && !ae(new Date(r.startDate), n == null ? void 0 : n.selectedDate)) {
|
|
305
305
|
e(!0);
|
|
306
|
-
const u = new Date(r.startDate), { fromDate: S, toDate: E } =
|
|
306
|
+
const u = new Date(r.startDate), { fromDate: S, toDate: E } = Xt(u, 8), [d, b] = await Promise.all([
|
|
307
307
|
(i = s == null ? void 0 : s.getAvailabilityDates) == null ? void 0 : i.call(s, {
|
|
308
308
|
serviceId: t == null ? void 0 : t.initialData.service.id,
|
|
309
309
|
timeZone: (n == null ? void 0 : n.timezone) || "",
|
|
@@ -359,7 +359,7 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
359
359
|
var t;
|
|
360
360
|
return ((t = e == null ? void 0 : e.params) == null ? void 0 : t.reason) === sn;
|
|
361
361
|
}, ln = ({ error: e, selectedSlot: t }) => {
|
|
362
|
-
const [n, a] = Q([]), r = rn(e), s = t == null ? void 0 : t.startDate, l =
|
|
362
|
+
const [n, a] = Q([]), r = rn(e), s = t == null ? void 0 : t.startDate, l = J(!1);
|
|
363
363
|
return P(() => {
|
|
364
364
|
if (!r) {
|
|
365
365
|
l.current = !1;
|
|
@@ -396,16 +396,16 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
396
396
|
return !!((a = n.slot) != null && a.startDate) && ae(new Date(n.slot.startDate), e);
|
|
397
397
|
}), Dn = () => {
|
|
398
398
|
var we;
|
|
399
|
-
const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } = Re(), { language: a, isEditor: r, isComposer: s } = Ee(), { t: l } = dt(), { actions: i } = ge(), c =
|
|
400
|
-
|
|
399
|
+
const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } = Re(), { language: a, isEditor: r, isComposer: s } = Ee(), { t: l } = dt(), { actions: i } = ge(), c = Ve(), [D, u] = Q(!1), [S, E] = Q(!1), [d, b] = Q(), [F, A] = Q();
|
|
400
|
+
Jt({
|
|
401
401
|
setIsReloadingSlots: u
|
|
402
402
|
});
|
|
403
|
-
const { onChange: I, value: O, target: U, initialData: z, formatDescription: H, locationType: Y, error: oe } = e, { availabilityDates: $, availabilitySlots:
|
|
403
|
+
const { onChange: I, value: O, target: U, initialData: z, formatDescription: H, locationType: Y, error: oe } = e, { availabilityDates: $, availabilitySlots: M, timezone: _ = "", selectedDate: N, currentSlotBulkSize: R, dataStatus: G, error: V } = t, K = (we = z == null ? void 0 : z.service) == null ? void 0 : we.id, Z = G === W.LOADING, ee = D || S, _e = !!V, Fe = ln({
|
|
404
404
|
error: oe,
|
|
405
405
|
selectedSlot: O
|
|
406
|
-
}), y = B(() => en(
|
|
407
|
-
|
|
408
|
-
|
|
406
|
+
}), y = B(() => en(M, Fe), [
|
|
407
|
+
M,
|
|
408
|
+
Fe
|
|
409
409
|
]);
|
|
410
410
|
P(() => {
|
|
411
411
|
I == null || I(jt(O));
|
|
@@ -415,8 +415,8 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
415
415
|
_
|
|
416
416
|
]), Dt((f) => {
|
|
417
417
|
const L = f == null ? void 0 : f[U];
|
|
418
|
-
|
|
419
|
-
availabilitySlots:
|
|
418
|
+
M != null && M.length && n({
|
|
419
|
+
availabilitySlots: M.filter((T) => {
|
|
420
420
|
var k;
|
|
421
421
|
return ((k = T == null ? void 0 : T.slot) == null ? void 0 : k.startDate) !== (L == null ? void 0 : L.startDate);
|
|
422
422
|
})
|
|
@@ -435,10 +435,10 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
435
435
|
]);
|
|
436
436
|
const Ne = B(() => ct(a), [
|
|
437
437
|
a
|
|
438
|
-
]),
|
|
438
|
+
]), Me = J(N);
|
|
439
439
|
P(() => {
|
|
440
|
-
const f =
|
|
441
|
-
|
|
440
|
+
const f = Me.current;
|
|
441
|
+
Me.current = N, !!N && (!f || !ae(f, N)) && b(void 0);
|
|
442
442
|
}, [
|
|
443
443
|
N
|
|
444
444
|
]);
|
|
@@ -446,7 +446,7 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
446
446
|
d,
|
|
447
447
|
N,
|
|
448
448
|
Ne
|
|
449
|
-
]),
|
|
449
|
+
]), Je = B(() => {
|
|
450
450
|
const f = be(/* @__PURE__ */ new Date()), L = new Intl.DateTimeFormat(a, {
|
|
451
451
|
weekday: "short"
|
|
452
452
|
}), T = new Intl.DateTimeFormat(a, {
|
|
@@ -464,7 +464,7 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
464
464
|
key: mn(x),
|
|
465
465
|
date: x,
|
|
466
466
|
isSelected: Le,
|
|
467
|
-
isAvailable: !
|
|
467
|
+
isAvailable: !Z && !ee && !Le && dn(x, $),
|
|
468
468
|
isDisabled: rt || ee && !Le,
|
|
469
469
|
isToday: ae(x, f),
|
|
470
470
|
dayOfMonthLabel: T.format(x),
|
|
@@ -477,11 +477,11 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
477
477
|
h,
|
|
478
478
|
N,
|
|
479
479
|
$,
|
|
480
|
-
|
|
480
|
+
Z,
|
|
481
481
|
ee,
|
|
482
482
|
a,
|
|
483
483
|
l
|
|
484
|
-
]), pe = de(O ?? void 0) || void 0, Ae = B(() =>
|
|
484
|
+
]), pe = de(O ?? void 0) || void 0, Ae = B(() => Z || D ? [] : (y ?? []).slice(0, R).flatMap((f) => {
|
|
485
485
|
const { startDate: L, endDate: T } = f.slot ?? {};
|
|
486
486
|
if (!L || !T)
|
|
487
487
|
return [];
|
|
@@ -506,7 +506,7 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
506
506
|
}), [
|
|
507
507
|
y,
|
|
508
508
|
R,
|
|
509
|
-
|
|
509
|
+
Z,
|
|
510
510
|
D,
|
|
511
511
|
a,
|
|
512
512
|
_,
|
|
@@ -521,7 +521,7 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
521
521
|
availabilitySlots: void 0
|
|
522
522
|
}), c == null || c.report({
|
|
523
523
|
action: ne.CLICK,
|
|
524
|
-
component:
|
|
524
|
+
component: X.DATE
|
|
525
525
|
});
|
|
526
526
|
try {
|
|
527
527
|
const T = await ((L = i == null ? void 0 : i.getAvailabilitySlots) == null ? void 0 : L.call(i, {
|
|
@@ -550,7 +550,7 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
550
550
|
I,
|
|
551
551
|
c
|
|
552
552
|
]
|
|
553
|
-
), ce =
|
|
553
|
+
), ce = J(0), tt = re(
|
|
554
554
|
async (f) => {
|
|
555
555
|
var se;
|
|
556
556
|
if (f < 0 && !Ie)
|
|
@@ -561,7 +561,7 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
561
561
|
const k = ++ce.current;
|
|
562
562
|
E(!0), c == null || c.report({
|
|
563
563
|
action: ne.CLICK,
|
|
564
|
-
component:
|
|
564
|
+
component: X.PAGINATION
|
|
565
565
|
});
|
|
566
566
|
try {
|
|
567
567
|
const Oe = await ((se = i == null ? void 0 : i.getAvailabilityDates) == null ? void 0 : se.call(i, {
|
|
@@ -598,7 +598,7 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
598
598
|
const { startDate: T, endDate: k } = L;
|
|
599
599
|
c == null || c.report({
|
|
600
600
|
action: ne.CLICK,
|
|
601
|
-
component:
|
|
601
|
+
component: X.SLOT,
|
|
602
602
|
startTime: new Date(T).valueOf(),
|
|
603
603
|
endTime: new Date(k).valueOf()
|
|
604
604
|
}), I == null || I({
|
|
@@ -620,7 +620,7 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
620
620
|
const f = R || q;
|
|
621
621
|
c == null || c.report({
|
|
622
622
|
action: ne.CLICK,
|
|
623
|
-
component:
|
|
623
|
+
component: X.SHOW_MORE
|
|
624
624
|
}), A(f), n({
|
|
625
625
|
currentSlotBulkSize: f + q
|
|
626
626
|
});
|
|
@@ -631,17 +631,17 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
631
631
|
]), ot = re(() => A(void 0), []), st = B(() => {
|
|
632
632
|
if (_e)
|
|
633
633
|
return l("form.appointment.empty-state.notification.text");
|
|
634
|
-
if (!
|
|
634
|
+
if (!Z && !D && !(y != null && y.length))
|
|
635
635
|
return l("form.appointment.slots-not-found.text");
|
|
636
636
|
}, [
|
|
637
637
|
_e,
|
|
638
|
-
|
|
638
|
+
Z,
|
|
639
639
|
D,
|
|
640
640
|
y == null ? void 0 : y.length,
|
|
641
641
|
l
|
|
642
642
|
]);
|
|
643
643
|
return {
|
|
644
|
-
days:
|
|
644
|
+
days: Je,
|
|
645
645
|
slots: Ae,
|
|
646
646
|
selectedSlotKey: pe,
|
|
647
647
|
selectDate: et,
|
|
@@ -651,7 +651,7 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
651
651
|
canGoToPreviousWeek: Ie,
|
|
652
652
|
hasMoreSlots: ye,
|
|
653
653
|
hasError: _e,
|
|
654
|
-
isLoading:
|
|
654
|
+
isLoading: Z,
|
|
655
655
|
isRefetching: ee,
|
|
656
656
|
isReloadingSlots: D,
|
|
657
657
|
weekRangeLabel: un(h, te(h, j - 1), a),
|
|
@@ -673,10 +673,10 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
673
673
|
showMoreSlotsLabel: l("form.appointment.show-more-slots.text"),
|
|
674
674
|
previousWeekLabel: l("form.appointment.accessibility.calendar.previous-week.aria-label"),
|
|
675
675
|
nextWeekLabel: l("form.appointment.accessibility.calendar.next-week.aria-label"),
|
|
676
|
-
pendingFocusIndex:
|
|
676
|
+
pendingFocusIndex: F,
|
|
677
677
|
consumePendingFocusIndex: ot
|
|
678
678
|
};
|
|
679
|
-
}, je = Ke(void 0), Qe = (e) => `${e}-timezone-note`,
|
|
679
|
+
}, je = Ke(void 0), Qe = (e) => `${e}-timezone-note`, Xe = (e) => `${e}-date-title`, w = () => {
|
|
680
680
|
const e = $e(je);
|
|
681
681
|
if (typeof e > "u")
|
|
682
682
|
throw new Error("Appointment parts must be used inside an <Appointment> component");
|
|
@@ -695,8 +695,8 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
695
695
|
return;
|
|
696
696
|
const [b] = [
|
|
697
697
|
...d
|
|
698
|
-
],
|
|
699
|
-
|
|
698
|
+
], F = n.find(({ key: A }) => A === b);
|
|
699
|
+
F && a(F.date);
|
|
700
700
|
};
|
|
701
701
|
return /* @__PURE__ */ o.createElement("div", {
|
|
702
702
|
className: t
|
|
@@ -712,7 +712,7 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
712
712
|
day: d
|
|
713
713
|
}))));
|
|
714
714
|
}, fn = ({ children: e, className: t }) => {
|
|
715
|
-
const { changeWeek: n, canGoToPreviousWeek: a, previousWeekLabel: r, nextWeekLabel: s } = w(), l = ke(), i =
|
|
715
|
+
const { changeWeek: n, canGoToPreviousWeek: a, previousWeekLabel: r, nextWeekLabel: s } = w(), l = ke(), i = J(null), c = J(!1);
|
|
716
716
|
return P(() => {
|
|
717
717
|
var S, E, d;
|
|
718
718
|
if (a || !c.current)
|
|
@@ -775,43 +775,43 @@ C.Heading = Sn;
|
|
|
775
775
|
C.NextWeek = En;
|
|
776
776
|
C.Day = _n;
|
|
777
777
|
const Ye = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) => {
|
|
778
|
-
const { hasTimezoneNote: a, hasDateTitle: r } = n, { slots: s, selectedSlotKey: l, selectSlot: i, selectedDateLabel: c, isReloadingSlots: D, timezoneLabel: u, pendingFocusIndex: S, consumePendingFocusIndex: E } = w(), { id: d, disabled: b, readOnly:
|
|
778
|
+
const { hasTimezoneNote: a, hasDateTitle: r } = n, { slots: s, selectedSlotKey: l, selectSlot: i, selectedDateLabel: c, isReloadingSlots: D, timezoneLabel: u, pendingFocusIndex: S, consumePendingFocusIndex: E } = w(), { id: d, disabled: b, readOnly: F, required: A, hasError: I } = ie(), { inputId: O, labelId: U, ariaDescribedBy: z } = le(), H = J(null), Y = v(e, fe.Slot) ?? /* @__PURE__ */ o.createElement(fe.Slot, null), oe = !!r && !!c, $ = [
|
|
779
779
|
z,
|
|
780
780
|
a && u ? Qe(O) : void 0
|
|
781
|
-
].filter(Boolean).join(" ") || void 0,
|
|
782
|
-
var R, G,
|
|
783
|
-
(
|
|
781
|
+
].filter(Boolean).join(" ") || void 0, M = (_, N) => {
|
|
782
|
+
var R, G, V;
|
|
783
|
+
(V = (G = (R = H.current) == null ? void 0 : R.querySelectorAll(Ye)) == null ? void 0 : G[_]) == null || V.focus(N);
|
|
784
784
|
};
|
|
785
785
|
return ft(() => {
|
|
786
|
-
var G,
|
|
786
|
+
var G, V;
|
|
787
787
|
if (!!((G = H.current) != null && G.querySelector(Ye))) {
|
|
788
|
-
|
|
788
|
+
M(0, {
|
|
789
789
|
preventScroll: !0
|
|
790
790
|
});
|
|
791
791
|
return;
|
|
792
792
|
}
|
|
793
|
-
const N = Array.from(((
|
|
793
|
+
const N = Array.from(((V = document.getElementById(O)) == null ? void 0 : V.querySelectorAll('[role="option"]')) ?? []), R = N.find((K) => K.getAttribute("aria-selected") === "true") ?? N.find((K) => K.getAttribute("aria-disabled") !== "true");
|
|
794
794
|
R == null || R.focus({
|
|
795
795
|
preventScroll: !0
|
|
796
796
|
});
|
|
797
797
|
}, d), P(() => {
|
|
798
|
-
S !== void 0 && (
|
|
798
|
+
S !== void 0 && (M(S), E());
|
|
799
799
|
}, [
|
|
800
800
|
S,
|
|
801
801
|
s.length
|
|
802
802
|
]), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("div", {
|
|
803
803
|
role: "status",
|
|
804
804
|
style: Ge
|
|
805
|
-
}, s.length > 0 ? c : void 0), /* @__PURE__ */ o.createElement(
|
|
805
|
+
}, s.length > 0 ? c : void 0), /* @__PURE__ */ o.createElement(Ft, {
|
|
806
806
|
ref: H,
|
|
807
807
|
className: t,
|
|
808
808
|
value: l ?? null,
|
|
809
809
|
onChange: i,
|
|
810
810
|
isDisabled: b,
|
|
811
|
-
isReadOnly:
|
|
811
|
+
isReadOnly: F,
|
|
812
812
|
isRequired: A,
|
|
813
813
|
isInvalid: I,
|
|
814
|
-
"aria-labelledby": oe ?
|
|
814
|
+
"aria-labelledby": oe ? Xe(O) : U,
|
|
815
815
|
"aria-describedby": $,
|
|
816
816
|
"data-refetch": D || void 0
|
|
817
817
|
}, s.map((_) => Se(Y, {
|
|
@@ -820,7 +820,7 @@ const Ye = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) =>
|
|
|
820
820
|
}))));
|
|
821
821
|
}, Nn = ({ children: e, className: t, ...n }) => {
|
|
822
822
|
const { slot: a } = n;
|
|
823
|
-
return /* @__PURE__ */ o.createElement(
|
|
823
|
+
return /* @__PURE__ */ o.createElement(Mt, {
|
|
824
824
|
value: a.key,
|
|
825
825
|
"aria-label": a.timeRange
|
|
826
826
|
}, /* @__PURE__ */ o.createElement(wt, {
|
|
@@ -849,7 +849,7 @@ const m = ({ children: e, className: t }) => {
|
|
|
849
849
|
renderLabel: () => Se(u, {
|
|
850
850
|
as: "div"
|
|
851
851
|
}),
|
|
852
|
-
renderInput: () => /* @__PURE__ */ o.createElement(
|
|
852
|
+
renderInput: () => /* @__PURE__ */ o.createElement(Zt, {
|
|
853
853
|
appointmentFieldProps: D
|
|
854
854
|
}, /* @__PURE__ */ o.createElement(An, {
|
|
855
855
|
className: t
|
|
@@ -859,7 +859,7 @@ const m = ({ children: e, className: t }) => {
|
|
|
859
859
|
}, pn = {
|
|
860
860
|
visibility: "hidden"
|
|
861
861
|
}, An = ({ children: e, className: t }) => {
|
|
862
|
-
const { required: n, onFocus: a, onBlur: r } = ie(), { inputId: s, labelId: l, ariaDescribedBy: i } = le(), c = Dn(), D = v(e, m.Loader), u = v(e, m.Notification), S = v(e, m.Dates), E = v(e, m.Timezone), d = v(e, m.Format), b = v(e, m.DateTitle),
|
|
862
|
+
const { required: n, onFocus: a, onBlur: r } = ie(), { inputId: s, labelId: l, ariaDescribedBy: i } = le(), c = Dn(), D = v(e, m.Loader), u = v(e, m.Notification), S = v(e, m.Dates), E = v(e, m.Timezone), d = v(e, m.Format), b = v(e, m.DateTitle), F = v(e, m.Slots), A = v(e, m.ShowMoreSlots);
|
|
863
863
|
return /* @__PURE__ */ o.createElement(je.Provider, {
|
|
864
864
|
value: c
|
|
865
865
|
}, /* @__PURE__ */ o.createElement(xt, {
|
|
@@ -872,7 +872,7 @@ const m = ({ children: e, className: t }) => {
|
|
|
872
872
|
onBlur: r
|
|
873
873
|
}, D, c.hasError ? u : /* @__PURE__ */ o.createElement("div", {
|
|
874
874
|
style: c.isLoading ? pn : void 0
|
|
875
|
-
}, S, E, d, b, Se(
|
|
875
|
+
}, S, E, d, b, Se(F, {
|
|
876
876
|
hasTimezoneNote: !!E,
|
|
877
877
|
hasDateTitle: !!b
|
|
878
878
|
}), u, A)));
|
|
@@ -911,7 +911,7 @@ const m = ({ children: e, className: t }) => {
|
|
|
911
911
|
}, Tn = ({ children: e, className: t }) => {
|
|
912
912
|
const { selectedDateLabel: n } = w(), { inputId: a } = le();
|
|
913
913
|
return n ? /* @__PURE__ */ o.createElement("div", {
|
|
914
|
-
id:
|
|
914
|
+
id: Xe(a),
|
|
915
915
|
className: t
|
|
916
916
|
}, e ? e({
|
|
917
917
|
label: n
|
|
@@ -937,13 +937,13 @@ m.Slots = fe;
|
|
|
937
937
|
m.ShowMoreSlots = bn;
|
|
938
938
|
m.Description = ht;
|
|
939
939
|
m.Error = Ct;
|
|
940
|
-
const gn = "_appointment_14etx_1", vn = "_dates_14etx_5", Rn = "_weekHeading_14etx_30", kn = "_weekButton_14etx_36",
|
|
940
|
+
const gn = "_appointment_14etx_1", vn = "_dates_14etx_5", Rn = "_weekHeading_14etx_30", kn = "_weekButton_14etx_36", Fn = "_previousWeek_14etx_68", Mn = "_nextWeek_14etx_72", wn = "_day_14etx_84", hn = "_weekdayLabel_14etx_94", Cn = "_dayNumber_14etx_103", Wn = "_indicator_14etx_107", xn = "_hint_14etx_130", Bn = "_slots_14etx_143", Pn = "_dateTitle_14etx_157", Un = "_slot_14etx_143", zn = "_slotHover_14etx_199", Hn = "_slotSelected_14etx_207", Yn = "_showMoreSlots_14etx_261", Kn = "_loader_14etx_292", $n = "_notification_14etx_328", p = {
|
|
941
941
|
appointment: gn,
|
|
942
942
|
dates: vn,
|
|
943
943
|
weekHeading: Rn,
|
|
944
944
|
weekButton: kn,
|
|
945
|
-
previousWeek:
|
|
946
|
-
nextWeek:
|
|
945
|
+
previousWeek: Fn,
|
|
946
|
+
nextWeek: Mn,
|
|
947
947
|
day: wn,
|
|
948
948
|
weekdayLabel: hn,
|
|
949
949
|
dayNumber: Cn,
|
|
@@ -960,14 +960,14 @@ const gn = "_appointment_14etx_1", vn = "_dates_14etx_5", Rn = "_weekHeading_14e
|
|
|
960
960
|
}, Gn = ({ content: e, locale: t }) => /* @__PURE__ */ o.createElement(it, {
|
|
961
961
|
content: e,
|
|
962
962
|
locale: t
|
|
963
|
-
}),
|
|
963
|
+
}), Vn = {
|
|
964
964
|
base: p.slot,
|
|
965
965
|
selected: p.slotSelected,
|
|
966
966
|
hover: p.slotHover
|
|
967
|
-
},
|
|
967
|
+
}, Zn = () => {
|
|
968
968
|
const e = vt({
|
|
969
969
|
globalClasses: gt,
|
|
970
|
-
moduleClasses:
|
|
970
|
+
moduleClasses: Vn
|
|
971
971
|
});
|
|
972
972
|
return /* @__PURE__ */ o.createElement(m, {
|
|
973
973
|
className: g(_t, p.appointment)
|
|
@@ -1015,7 +1015,7 @@ const gn = "_appointment_14etx_1", vn = "_dates_14etx_5", Rn = "_weekHeading_14e
|
|
|
1015
1015
|
}, /* @__PURE__ */ o.createElement(lt, null), /* @__PURE__ */ o.createElement(m.Error.Text, null)), /* @__PURE__ */ o.createElement(m.Description, {
|
|
1016
1016
|
className: g(bt, ue.description)
|
|
1017
1017
|
}, Gn));
|
|
1018
|
-
}, da = () => /* @__PURE__ */ o.createElement(
|
|
1018
|
+
}, da = () => /* @__PURE__ */ o.createElement(Zn, null);
|
|
1019
1019
|
export {
|
|
1020
1020
|
da as AppointmentRAC
|
|
1021
1021
|
};
|
package/dist/component/{bookings-login-bar-rac-BVdWmKS8.js → bookings-login-bar-rac-DwoI-iRQ.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "react";
|
|
2
2
|
import E from "classnames";
|
|
3
|
-
import {
|
|
4
|
-
import { Button as
|
|
3
|
+
import { bL as d, bV as b, bD as f, bH as x, W as L } from "./form-BjeODFzx.js";
|
|
4
|
+
import { Button as p } from "react-aria-components";
|
|
5
5
|
import { a as m, f as g } from "./find-child-C60k4CxG.js";
|
|
6
6
|
const l = ({ children: n }) => {
|
|
7
7
|
const { id: r, FieldLayout: t } = d();
|
|
@@ -36,7 +36,7 @@ const l = ({ children: n }) => {
|
|
|
36
36
|
}, c, !a && t);
|
|
37
37
|
}, F = ({ className: n, ...r }) => {
|
|
38
38
|
const { t } = b(), { isLoggedIn: e, login: a, logout: s } = r, c = t(e ? "form.login-bar.action.logout" : "form.login-bar.actions.login"), i = () => e ? s == null ? void 0 : s() : a == null ? void 0 : a();
|
|
39
|
-
return /* @__PURE__ */ o.createElement(
|
|
39
|
+
return /* @__PURE__ */ o.createElement(p, {
|
|
40
40
|
className: n,
|
|
41
41
|
onPress: i
|
|
42
42
|
}, c);
|
|
@@ -61,7 +61,7 @@ const T = "_container_1ixk2_1", C = "_text_1ixk2_34", k = "_button_1ixk2_39", u
|
|
|
61
61
|
var e;
|
|
62
62
|
return (e = t == null ? void 0 : t.requestLogout) == null ? void 0 : e.call(t);
|
|
63
63
|
},
|
|
64
|
-
className: E(
|
|
64
|
+
className: E(L, u.container)
|
|
65
65
|
}, /* @__PURE__ */ o.createElement(l.Text, {
|
|
66
66
|
className: u.text
|
|
67
67
|
}), /* @__PURE__ */ o.createElement(l.Button, {
|