@wix/form-elements 1.242.0 → 1.243.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-Bab9tSUj.js → appointment-rac-D-dMrhRb.js} +43 -43
- package/dist/component/{bookings-address-rac-DcpXlUvQ.js → bookings-address-rac-B6aQ4P5I.js} +1 -1
- package/dist/component/{bookings-email-rac-Bp0i-XuQ.js → bookings-email-rac-Bh849hrc.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BWSlc38n.js → bookings-first-name-rac-C69Ind1o.js} +1 -1
- package/dist/component/{bookings-header-rac-C2jB1zfG.js → bookings-header-rac-DGUzMGRj.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BkwCVLE2.js → bookings-last-name-rac-Ch9Bm-sr.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DpGFo3D_.js → bookings-login-bar-rac-CUhHuZm-.js} +1 -1
- package/dist/component/{bookings-phone-rac-BtgTVsj2.js → bookings-phone-rac-BI4PoSu3.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DsOs6O8q.js → bookings-rich-text-rac-B4D2ZCJs.js} +1 -1
- package/dist/component/{checkbox-field-rac-DysYJ41o.js → checkbox-field-rac-zE0dzJYu.js} +81 -81
- package/dist/component/{checkbox-group-field-headless-Df-A3KXl.js → checkbox-group-field-headless-C2x-la-e.js} +44 -44
- package/dist/component/{checkbox-group-field-rac-DFnJDZWN.js → checkbox-group-field-rac-iJkQGTiJ.js} +4 -4
- package/dist/component/{checkbox-group-rac-B7TaGbZy.js → checkbox-group-rac-DoK5e4c8.js} +1 -1
- package/dist/component/{checkbox-rac-Di0BHQqP.js → checkbox-rac-8i-6GMze.js} +1 -1
- package/dist/component/{contacts-address-rac-DhSjIORz.js → contacts-address-rac-CHcRQBjy.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-B3nWdWka.js → contacts-birthdate-rac-CkSsvQ6R.js} +1 -1
- package/dist/component/{contacts-company-rac-DFYyTkvq.js → contacts-company-rac-CIsmil8s.js} +1 -1
- package/dist/component/{contacts-email-rac-DGzgN38U.js → contacts-email-rac-AEvRJfWd.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CZ3e4Pxp.js → contacts-first-name-rac-CLSJ2cna.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Dvu7FY_c.js → contacts-last-name-rac-o59dmvVn.js} +1 -1
- package/dist/component/{contacts-phone-rac-DeLq3Efe.js → contacts-phone-rac-jh-YSD-N.js} +1 -1
- package/dist/component/{contacts-position-rac-YhEGkgEL.js → contacts-position-rac-Ak4X2gV_.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DzVP-ujl.js → contacts-subscribe-rac-By9Bk1YL.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-CU4sTn5G.js → contacts-tax-id-rac-B1enZgKk.js} +1 -1
- package/dist/component/{date-availability-1nR4MMNM.js → date-availability--3J2b6Ur.js} +1 -1
- package/dist/component/{date-input-field-rac-CM_aSFwq.js → date-input-field-rac-BFt0DKA9.js} +66 -66
- package/dist/component/{date-input-rac-BKDGvMhS.js → date-input-rac-D8BA8S1A.js} +1 -1
- package/dist/component/{date-picker-field-rac-Cy3E6oIi.js → date-picker-field-rac-cwYdVf60.js} +40 -40
- package/dist/component/{date-picker-rac-P7Rt52yN.js → date-picker-rac-B7uR5ZnA.js} +1 -1
- package/dist/component/{date-time-input-field-rac-Dy0yHP_r.js → date-time-input-field-rac-PaKyrMb9.js} +98 -98
- package/dist/component/{date-time-input-rac-Bte2ExkW.js → date-time-input-rac-Ck8Edatx.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-aDNIkDPY.js → dext-checkbox-group-rac-Cru3Lq4c.js} +2 -2
- package/dist/component/{dext-checkbox-rac-7cCDU8rx.js → dext-checkbox-rac-wtMsRxly.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CiKlP583.js → dext-date-picker-rac-B34DtxLN.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Cg0rG4Qg.js → dext-date-time-input-rac-BsdfLty5.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BqQfNIBY.js → dext-dropdown-rac-DeZYnwo7.js} +1 -1
- package/dist/component/{dext-email-rac-BfeJHd-1.js → dext-email-rac-B4GTK5H8.js} +1 -1
- package/dist/component/{dext-number-input-rac-Co2-0GIg.js → dext-number-input-rac-BIyJJ9h0.js} +1 -1
- package/dist/component/{dext-phone-rac-nruJqfOS.js → dext-phone-rac-lf64Ywlp.js} +1 -1
- package/dist/component/{dext-radio-group-rac-D4dpTCbP.js → dext-radio-group-rac-CGt1_jue.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DZdFsFwX.js → dext-rating-input-rac-CbaW1lxS.js} +1 -1
- package/dist/component/{dext-tags-rac-Bo06MMsK.js → dext-tags-rac-DnHDnzD_.js} +2 -2
- package/dist/component/{dext-text-area-rac-DFilJP7d.js → dext-text-area-rac-C8DVKWKo.js} +1 -1
- package/dist/component/{dext-text-input-rac-Btnz_-2P.js → dext-text-input-rac-DVl-1SDY.js} +1 -1
- package/dist/component/{dext-url-input-rac-YpJVis2h.js → dext-url-input-rac-CkpAMLF9.js} +1 -1
- package/dist/component/{dismiss-icon-DNnhVj3P.js → dismiss-icon-CwZIlL7w.js} +6 -6
- package/dist/component/{donation-rac-CgrtVdQ9.js → donation-rac-DCNG5ByO.js} +44 -44
- package/dist/component/{dropdown-field-rac-CWdttDy1.js → dropdown-field-rac-CVbM-0KX.js} +3 -3
- package/dist/component/{dropdown-rac-Bn29r6Vt.js → dropdown-rac-CE9IjTvE.js} +1 -1
- package/dist/component/{ecom-address-rac-DPSadNy1.js → ecom-address-rac-BD_okFDt.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-C5RN2TfZ.js → ecom-subscription-checkbox-rac-C7zdxqra.js} +2 -2
- package/dist/component/{email-input-field-rac-Bl_i7BQ3.js → email-input-field-rac-CY4wE0eP.js} +35 -35
- package/dist/component/{events-repeater-rac-8MaxRBKl.js → events-repeater-rac-Bh-TBEQG.js} +26 -26
- package/dist/component/{events-rsvp-rac-DgduOqZJ.js → events-rsvp-rac-BPhzKqUb.js} +3 -3
- package/dist/component/{field-error-headless-CBz8B75M.js → field-error-headless-D3lVhOaC.js} +1 -1
- package/dist/component/{field-label-headless-5GuAGL0Y.js → field-label-headless-CrZoTwxs.js} +5 -5
- package/dist/component/{file-upload-rac-BQbXxpk9.js → file-upload-rac-DYP83swC.js} +187 -186
- package/dist/component/{fixed-payment-rac-zRYih9qW.js → fixed-payment-rac-DY7hXK7g.js} +11 -11
- package/dist/component/{form-Bc8sA308.js → form-DpFQ9uO1.js} +3059 -2934
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-C6f6tpfn.js → header-field-rac-9wOBV_rW.js} +2 -2
- package/dist/component/{header-rac-Dv-9gQlw.js → header-rac-gzKNBkq_.js} +1 -1
- package/dist/component/{image-choice-rac-DgmQKZLT.js → image-choice-rac-B6dvv6Jc.js} +25 -25
- package/dist/component/{index-Btc2rtde.js → index-CbCZUvYt.js} +2 -2
- package/dist/component/{index-BH3c1lm6.js → index-DCl2274b.js} +4 -4
- package/dist/component/{isObjectLike-DUAmJpnS.js → isObjectLike-DDBjMXgH.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CD692gBt.js → multiline-address-field-rac-CPkSpMMb.js} +210 -210
- package/dist/component/{multiline-address-rac-DRInxa21.js → multiline-address-rac-DCnk-LvE.js} +1 -1
- package/dist/component/{number-input-field-rac-D7Uf9yNQ.js → number-input-field-rac-Dt0hM2jA.js} +19 -19
- package/dist/component/{number-input-rac-C600LCBk.js → number-input-rac-pjmjC2-7.js} +1 -1
- package/dist/component/{password-rac-BLi1E4nU.js → password-rac-D9Gmp1yw.js} +32 -32
- package/dist/component/{payment-input-rac-DhtjMf3j.js → payment-input-rac-CI78trIl.js} +33 -33
- package/dist/component/{phone-input-field-rac-DcmI5WGt.js → phone-input-field-rac-BCPj6vEP.js} +39 -39
- package/dist/component/{phone-rac-KcmTZZ9n.js → phone-rac-FAGNDAR-.js} +1 -1
- package/dist/component/{product-list-rac-DqcTH4Uz.js → product-list-rac-D7n9P2wQ.js} +14 -14
- package/dist/component/{quiz-radio-group-rac-BhE36x3f.js → quiz-radio-group-rac-BO55azn2.js} +1 -1
- package/dist/component/{radio-button-module-classes-Bb8FJ98H.js → radio-button-module-classes-BIraDyOu.js} +35 -35
- package/dist/component/{radio-group-field-rac-ZRFBSw-k.js → radio-group-field-rac-BvUZ-DmS.js} +4 -4
- package/dist/component/{radio-group-rac-DJzh_9Rz.js → radio-group-rac-qc0JijX9.js} +1 -1
- package/dist/component/{rating-input-field-rac-O761Lr7O.js → rating-input-field-rac-D3u_T_la.js} +18 -18
- package/dist/component/{rating-input-rac-N5UUwsk9.js → rating-input-rac-CqlPfSQQ.js} +1 -1
- package/dist/component/{rich-content-rac.module-CyyY4g0Y.js → rich-content-rac.module-B4TapWZL.js} +7 -7
- package/dist/component/{rich-text-field-rac-G1dCddAG.js → rich-text-field-rac-LgoEQuKS.js} +4 -4
- package/dist/component/{rich-text-rac-DRls3PAt.js → rich-text-rac-1IcHKfEb.js} +1 -1
- package/dist/component/{service-dropdown-rac-CQtdLY6W.js → service-dropdown-rac-CMkRaLmg.js} +22 -22
- package/dist/component/{services-multi-choice-rac-GXHhjMdj.js → services-multi-choice-rac-DzwHkD-j.js} +7 -7
- package/dist/component/{signature-rac-Bthr2qFV.js → signature-rac-D3X5-ScB.js} +71 -71
- package/dist/component/{submit-button-rac-CZpKTkAI.js → submit-button-rac-BWL76gny.js} +15 -15
- package/dist/component/{tags-field-rac-C7tkzxNX.js → tags-field-rac-BwGeFDfH.js} +24 -24
- package/dist/component/{tags-rac-CWgu9IXx.js → tags-rac-DU7-Kl1T.js} +1 -1
- package/dist/component/{text-area-field-rac-BFRW0mfT.js → text-area-field-rac-BO_9zG3x.js} +19 -19
- package/dist/component/{text-area-rac-DaJColM3.js → text-area-rac-CG7vi5-F.js} +1 -1
- package/dist/component/{text-input-field-rac-D4QPznxH.js → text-input-field-rac-FWkVzsiY.js} +3 -3
- package/dist/component/{text-input-headless-B3LeZbMa.js → text-input-headless-COFlfx6N.js} +9 -9
- package/dist/component/{text-input-rac-D6t913v4.js → text-input-rac-D_7yUDzw.js} +1 -1
- package/dist/component/{time-input-rac-BRXeAxLy.js → time-input-rac-0Ggsm6qE.js} +24 -24
- package/dist/component/{url-input-field-rac-C7AeMSCu.js → url-input-field-rac-CH7kG_Qf.js} +25 -25
- package/dist/component/{url-input-rac-Crya6SOE.js → url-input-rac-CjBn6ZWh.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CF6Nkoi8.js → use-dropdown-option-class-name-Cy_iJyiA.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-CPKkbYSD.js → use-dropdown-trigger-class-name-Ddu4_w_z.js} +26 -26
- package/dist/component/{use-element-state-class-name-c_YzmI-w.js → use-element-state-class-name-DNjpnp27.js} +2 -2
- package/dist/component/{use-hoverable-input-class-name-DPft9EoC.js → use-hoverable-input-class-name-Wy3Ujp2_.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-DTCIHm6F.js → use-is-forced-open-dropdown-Vu0JjNY7.js} +4 -4
- package/dist/component/{use-native-mobile-input-CuS4DTkh.js → use-native-mobile-input-l8hf9N2p.js} +3 -3
- package/dist/component/{use-service-options-base-D_sHL_KM.js → use-service-options-base-Di4c__b_.js} +3 -3
- package/dist/component/use-text-input-class-name-BBZXre-_.js +6 -0
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-BCtZ8l6Q.js +0 -6
|
@@ -6,12 +6,12 @@ import { E as mt } from "./error-icon-hZxQ6DEy.js";
|
|
|
6
6
|
import { g as ut, c as Be } 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-D0QzJXUv.js";
|
|
9
|
-
import {
|
|
10
|
-
import { u as Rt } from "./use-element-state-class-name-
|
|
11
|
-
import { ListBox as
|
|
9
|
+
import { bG as Ee, bF as dt, bK as ve, bI as ft, bZ as Dt, bY as Et, bO as ie, bL as le, bQ as St, bN as _t, F as Nt, h as At, X as pt, am as yt, g as It, j as Pe, i as Ot, n as Lt, k as Tt, l as bt, M as gt, I as kt, m as vt } from "./form-DpFQ9uO1.js";
|
|
10
|
+
import { u as Rt } from "./use-element-state-class-name-DNjpnp27.js";
|
|
11
|
+
import { ListBox as Ft, Button as Re, ListBoxItem as Mt, RadioGroup as ht, RadioField as wt, RadioButton as Ct } from "react-aria-components";
|
|
12
12
|
import { f as k, a as Se } from "./find-child-C60k4CxG.js";
|
|
13
|
-
import { D as Wt, E as Bt } from "./field-error-headless-
|
|
14
|
-
import { L as Pt } from "./field-label-headless-
|
|
13
|
+
import { D as Wt, E as Bt } from "./field-error-headless-D3lVhOaC.js";
|
|
14
|
+
import { L as Pt } from "./field-label-headless-CrZoTwxs.js";
|
|
15
15
|
import { F as Ut } from "./fieldset-headless-CD3fds9J.js";
|
|
16
16
|
import { parseAbsolute as xt } from "@internationalized/date";
|
|
17
17
|
import { startOfDay as zt } from "date-fns";
|
|
@@ -48,7 +48,7 @@ const Ht = (e) => {
|
|
|
48
48
|
});
|
|
49
49
|
}, qe = (e) => {
|
|
50
50
|
var l;
|
|
51
|
-
const { appointmentFieldProps: n } =
|
|
51
|
+
const { appointmentFieldProps: n } = Fe(), { isEditor: t, isComposer: a } = Ee(), s = dt(), r = e || ((l = n == null ? void 0 : n.initialData) == null ? void 0 : l.service);
|
|
52
52
|
if (!(t || a))
|
|
53
53
|
return {
|
|
54
54
|
...s,
|
|
@@ -213,11 +213,11 @@ function en(e) {
|
|
|
213
213
|
try {
|
|
214
214
|
const H = async (oe) => {
|
|
215
215
|
var D, N;
|
|
216
|
-
const { startDate: $, endDate:
|
|
216
|
+
const { startDate: $, endDate: M } = jt(oe, v);
|
|
217
217
|
return (N = (D = c.current) == null ? void 0 : D.getAvailabilityDates) == null ? void 0 : N.call(D, {
|
|
218
218
|
serviceId: l,
|
|
219
219
|
fromDate: $,
|
|
220
|
-
toDate:
|
|
220
|
+
toDate: M,
|
|
221
221
|
timeZone: v
|
|
222
222
|
});
|
|
223
223
|
};
|
|
@@ -296,7 +296,7 @@ const je = /* @__PURE__ */ Ge({
|
|
|
296
296
|
})
|
|
297
297
|
}
|
|
298
298
|
}, n);
|
|
299
|
-
},
|
|
299
|
+
}, Fe = () => Ze(je), an = (e, n) => {
|
|
300
300
|
if (e.startOfWeek.getMonth() === e.endOfWeek.getMonth())
|
|
301
301
|
return new Intl.DateTimeFormat(n, {
|
|
302
302
|
month: "long",
|
|
@@ -317,7 +317,7 @@ const je = /* @__PURE__ */ Ge({
|
|
|
317
317
|
timeZone: t
|
|
318
318
|
};
|
|
319
319
|
}, sn = ({ setIsReloadingSlots: e }) => {
|
|
320
|
-
const { appointmentFieldProps: n, appointmentState: t, setAppointmentState: a } =
|
|
320
|
+
const { appointmentFieldProps: n, appointmentState: t, setAppointmentState: a } = Fe(), { value: s } = n, { actions: r } = ve();
|
|
321
321
|
U(() => {
|
|
322
322
|
(async () => {
|
|
323
323
|
var i, c;
|
|
@@ -415,15 +415,15 @@ const dn = "SLOT_UNAVAILABLE", fn = (e) => {
|
|
|
415
415
|
return typeof a.formatRange == "function" ? a.formatRange(e, n) : `${a.format(e)} - ${a.format(n)}`;
|
|
416
416
|
}, Nn = () => {
|
|
417
417
|
var Ce;
|
|
418
|
-
const { appointmentFieldProps: e, appointmentState: n, setAppointmentState: t } =
|
|
418
|
+
const { appointmentFieldProps: e, appointmentState: n, setAppointmentState: t } = Fe(), { language: a, isEditor: s, isComposer: r } = Ee(), { t: l } = Dt(), { actions: i } = ve(), c = qe(), [u, f] = Q(!1), [_, S] = Q(!1), [d, b] = Q(), [v, p] = Q();
|
|
419
419
|
sn({
|
|
420
420
|
setIsReloadingSlots: f
|
|
421
421
|
});
|
|
422
|
-
const { onChange: I, value: O, target: x, initialData: z, formatDescription: Y, locationType: H, error: oe } = e, { availabilityDates: $, availabilitySlots:
|
|
422
|
+
const { onChange: I, value: O, target: x, initialData: z, formatDescription: Y, locationType: H, error: oe } = e, { availabilityDates: $, availabilitySlots: M, timezone: D = "", selectedDate: N, currentSlotBulkSize: R, dataStatus: G, error: Z } = n, K = (Ce = z == null ? void 0 : z.service) == null ? void 0 : Ce.id, V = G === W.LOADING, ee = u || _, Ne = !!Z, he = Dn({
|
|
423
423
|
error: oe,
|
|
424
424
|
selectedSlot: O
|
|
425
|
-
}), y = P(() => rn(
|
|
426
|
-
|
|
425
|
+
}), y = P(() => rn(M, he), [
|
|
426
|
+
M,
|
|
427
427
|
he
|
|
428
428
|
]);
|
|
429
429
|
U(() => {
|
|
@@ -434,10 +434,10 @@ const dn = "SLOT_UNAVAILABLE", fn = (e) => {
|
|
|
434
434
|
D
|
|
435
435
|
]), Et((E) => {
|
|
436
436
|
const L = E == null ? void 0 : E[x];
|
|
437
|
-
|
|
438
|
-
availabilitySlots:
|
|
439
|
-
var
|
|
440
|
-
return ((
|
|
437
|
+
M != null && M.length && t({
|
|
438
|
+
availabilitySlots: M.filter((T) => {
|
|
439
|
+
var F;
|
|
440
|
+
return ((F = T == null ? void 0 : T.slot) == null ? void 0 : F.startDate) !== (L == null ? void 0 : L.startDate);
|
|
441
441
|
})
|
|
442
442
|
});
|
|
443
443
|
}), U(() => {
|
|
@@ -471,7 +471,7 @@ const dn = "SLOT_UNAVAILABLE", fn = (e) => {
|
|
|
471
471
|
weekday: "short"
|
|
472
472
|
}), T = new Intl.DateTimeFormat(a, {
|
|
473
473
|
day: "numeric"
|
|
474
|
-
}),
|
|
474
|
+
}), F = new Intl.DateTimeFormat(a, {
|
|
475
475
|
weekday: "long",
|
|
476
476
|
month: "long",
|
|
477
477
|
day: "numeric"
|
|
@@ -489,7 +489,7 @@ const dn = "SLOT_UNAVAILABLE", fn = (e) => {
|
|
|
489
489
|
isToday: ae(B, E),
|
|
490
490
|
dayOfMonthLabel: T.format(B),
|
|
491
491
|
weekdayLabel: L.format(B),
|
|
492
|
-
label:
|
|
492
|
+
label: F.format(B),
|
|
493
493
|
availabilityLabel: l("form.appointment.accessibility.calendar.has-availability.aria-label")
|
|
494
494
|
};
|
|
495
495
|
});
|
|
@@ -506,13 +506,13 @@ const dn = "SLOT_UNAVAILABLE", fn = (e) => {
|
|
|
506
506
|
const { startDate: L, endDate: T } = E.slot ?? {};
|
|
507
507
|
if (!L || !T)
|
|
508
508
|
return [];
|
|
509
|
-
const
|
|
509
|
+
const F = de({
|
|
510
510
|
startDate: L,
|
|
511
511
|
endDate: T
|
|
512
512
|
});
|
|
513
513
|
return [
|
|
514
514
|
{
|
|
515
|
-
key:
|
|
515
|
+
key: F,
|
|
516
516
|
startDate: L,
|
|
517
517
|
endDate: T,
|
|
518
518
|
timeRange: ln({
|
|
@@ -521,7 +521,7 @@ const dn = "SLOT_UNAVAILABLE", fn = (e) => {
|
|
|
521
521
|
locale: a,
|
|
522
522
|
timezone: D
|
|
523
523
|
}),
|
|
524
|
-
isSelected:
|
|
524
|
+
isSelected: F === pe
|
|
525
525
|
}
|
|
526
526
|
];
|
|
527
527
|
}), [
|
|
@@ -579,7 +579,7 @@ const dn = "SLOT_UNAVAILABLE", fn = (e) => {
|
|
|
579
579
|
const L = w, T = te(w, E * j);
|
|
580
580
|
if (b(T), s || r)
|
|
581
581
|
return;
|
|
582
|
-
const
|
|
582
|
+
const F = ++ce.current;
|
|
583
583
|
S(!0), c == null || c.report({
|
|
584
584
|
action: ne.CLICK,
|
|
585
585
|
component: X.PAGINATION
|
|
@@ -591,13 +591,13 @@ const dn = "SLOT_UNAVAILABLE", fn = (e) => {
|
|
|
591
591
|
fromDate: T,
|
|
592
592
|
toDate: En(te(T, j - 1))
|
|
593
593
|
}));
|
|
594
|
-
|
|
594
|
+
F === ce.current && t({
|
|
595
595
|
availabilityDates: Le
|
|
596
596
|
});
|
|
597
597
|
} catch {
|
|
598
|
-
|
|
598
|
+
F === ce.current && b(L);
|
|
599
599
|
} finally {
|
|
600
|
-
|
|
600
|
+
F === ce.current && S(!1);
|
|
601
601
|
}
|
|
602
602
|
},
|
|
603
603
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -616,15 +616,15 @@ const dn = "SLOT_UNAVAILABLE", fn = (e) => {
|
|
|
616
616
|
const L = ye.find((se) => se.key === E);
|
|
617
617
|
if (!L)
|
|
618
618
|
return;
|
|
619
|
-
const { startDate: T, endDate:
|
|
619
|
+
const { startDate: T, endDate: F } = L;
|
|
620
620
|
c == null || c.report({
|
|
621
621
|
action: ne.CLICK,
|
|
622
622
|
component: X.SLOT,
|
|
623
623
|
startTime: new Date(T).valueOf(),
|
|
624
|
-
endTime: new Date(
|
|
624
|
+
endTime: new Date(F).valueOf()
|
|
625
625
|
}), I == null || I({
|
|
626
626
|
startDate: T,
|
|
627
|
-
endDate:
|
|
627
|
+
endDate: F,
|
|
628
628
|
timeZone: D
|
|
629
629
|
});
|
|
630
630
|
},
|
|
@@ -701,13 +701,13 @@ const dn = "SLOT_UNAVAILABLE", fn = (e) => {
|
|
|
701
701
|
if (typeof e > "u")
|
|
702
702
|
throw new Error("Appointment parts must be used inside an <Appointment> component");
|
|
703
703
|
return e;
|
|
704
|
-
},
|
|
704
|
+
}, Me = () => {
|
|
705
705
|
const { disabled: e, readOnly: n } = ie();
|
|
706
706
|
return !!e || !!n;
|
|
707
707
|
}, C = ({ children: e, className: n }) => {
|
|
708
708
|
const { days: t, selectDate: a, weekRangeLabel: s } = h(), r = k(e, C.PreviousWeek), l = k(e, C.Heading), i = k(e, C.NextWeek), c = k(e, C.Day) ?? /* @__PURE__ */ o.createElement(C.Day, null), u = P(() => t.filter((d) => d.isSelected).map((d) => d.key), [
|
|
709
709
|
t
|
|
710
|
-
]), f =
|
|
710
|
+
]), f = Me(), _ = P(() => t.filter((d) => f || d.isDisabled).map((d) => d.key), [
|
|
711
711
|
t,
|
|
712
712
|
f
|
|
713
713
|
]), S = (d) => {
|
|
@@ -720,7 +720,7 @@ const dn = "SLOT_UNAVAILABLE", fn = (e) => {
|
|
|
720
720
|
};
|
|
721
721
|
return /* @__PURE__ */ o.createElement("div", {
|
|
722
722
|
className: n
|
|
723
|
-
}, r, l, i, /* @__PURE__ */ o.createElement(
|
|
723
|
+
}, r, l, i, /* @__PURE__ */ o.createElement(Ft, {
|
|
724
724
|
"aria-label": s,
|
|
725
725
|
orientation: "horizontal",
|
|
726
726
|
selectionMode: "single",
|
|
@@ -732,7 +732,7 @@ const dn = "SLOT_UNAVAILABLE", fn = (e) => {
|
|
|
732
732
|
day: d
|
|
733
733
|
}))));
|
|
734
734
|
}, An = ({ children: e, className: n }) => {
|
|
735
|
-
const { changeWeek: t, canGoToPreviousWeek: a, previousWeekLabel: s, nextWeekLabel: r } = h(), l =
|
|
735
|
+
const { changeWeek: t, canGoToPreviousWeek: a, previousWeekLabel: s, nextWeekLabel: r } = h(), l = Me(), i = J(null), c = J(!1);
|
|
736
736
|
return U(() => {
|
|
737
737
|
var _, S, d;
|
|
738
738
|
if (a || !c.current)
|
|
@@ -756,7 +756,7 @@ const dn = "SLOT_UNAVAILABLE", fn = (e) => {
|
|
|
756
756
|
}
|
|
757
757
|
}, e ?? "‹");
|
|
758
758
|
}, pn = ({ children: e, className: n }) => {
|
|
759
|
-
const { changeWeek: t, nextWeekLabel: a } = h(), s =
|
|
759
|
+
const { changeWeek: t, nextWeekLabel: a } = h(), s = Me();
|
|
760
760
|
return /* @__PURE__ */ o.createElement(Re, {
|
|
761
761
|
className: n,
|
|
762
762
|
"aria-label": a,
|
|
@@ -778,7 +778,7 @@ const dn = "SLOT_UNAVAILABLE", fn = (e) => {
|
|
|
778
778
|
}, a)));
|
|
779
779
|
}, In = ({ children: e, className: n, ...t }) => {
|
|
780
780
|
const { day: a } = t;
|
|
781
|
-
return /* @__PURE__ */ o.createElement(
|
|
781
|
+
return /* @__PURE__ */ o.createElement(Mt, {
|
|
782
782
|
id: a.key,
|
|
783
783
|
className: n,
|
|
784
784
|
textValue: a.label,
|
|
@@ -798,14 +798,14 @@ const $e = 'input[type="radio"]', De = ({ children: e, className: n, ...t }) =>
|
|
|
798
798
|
const { hasTimezoneNote: a, hasDateTitle: s } = t, { slots: r, selectedSlotKey: l, selectSlot: i, selectedDateLabel: c, isReloadingSlots: u, timezoneLabel: f, pendingFocusIndex: _, consumePendingFocusIndex: S } = h(), { id: d, disabled: b, readOnly: v, required: p, hasError: I } = ie(), { inputId: O, labelId: x, ariaDescribedBy: z } = le(), Y = J(null), H = k(e, De.Slot) ?? /* @__PURE__ */ o.createElement(De.Slot, null), oe = !!s && !!c, $ = [
|
|
799
799
|
z,
|
|
800
800
|
a && f ? Je(O) : void 0
|
|
801
|
-
].filter(Boolean).join(" ") || void 0,
|
|
801
|
+
].filter(Boolean).join(" ") || void 0, M = (D, N) => {
|
|
802
802
|
var R, G, Z;
|
|
803
803
|
(Z = (G = (R = Y.current) == null ? void 0 : R.querySelectorAll($e)) == null ? void 0 : G[D]) == null || Z.focus(N);
|
|
804
804
|
};
|
|
805
805
|
return St(() => {
|
|
806
806
|
var G, Z;
|
|
807
807
|
if (!!((G = Y.current) != null && G.querySelector($e))) {
|
|
808
|
-
|
|
808
|
+
M(0, {
|
|
809
809
|
preventScroll: !0
|
|
810
810
|
});
|
|
811
811
|
return;
|
|
@@ -815,7 +815,7 @@ const $e = 'input[type="radio"]', De = ({ children: e, className: n, ...t }) =>
|
|
|
815
815
|
preventScroll: !0
|
|
816
816
|
});
|
|
817
817
|
}, d), U(() => {
|
|
818
|
-
_ !== void 0 && (
|
|
818
|
+
_ !== void 0 && (M(_), S());
|
|
819
819
|
}, [
|
|
820
820
|
_,
|
|
821
821
|
r.length
|
|
@@ -936,7 +936,7 @@ const m = ({ children: e, className: n }) => {
|
|
|
936
936
|
}, e ? e({
|
|
937
937
|
label: t
|
|
938
938
|
}) : t) : null;
|
|
939
|
-
},
|
|
939
|
+
}, Fn = ({ children: e, className: n }) => {
|
|
940
940
|
const { hasMoreSlots: t, showMoreSlots: a, showMoreSlotsLabel: s } = h(), { disabled: r, readOnly: l } = ie();
|
|
941
941
|
return t ? /* @__PURE__ */ o.createElement(Re, {
|
|
942
942
|
className: n,
|
|
@@ -954,11 +954,11 @@ m.Timezone = kn;
|
|
|
954
954
|
m.Format = vn;
|
|
955
955
|
m.DateTitle = Rn;
|
|
956
956
|
m.Slots = De;
|
|
957
|
-
m.ShowMoreSlots =
|
|
957
|
+
m.ShowMoreSlots = Fn;
|
|
958
958
|
m.Description = Wt;
|
|
959
959
|
m.Error = Bt;
|
|
960
|
-
const
|
|
961
|
-
appointment:
|
|
960
|
+
const Mn = "_appointment_ki27o_1", hn = "_dates_ki27o_5", wn = "_weekHeading_ki27o_30", Cn = "_weekButton_ki27o_36", Wn = "_previousWeek_ki27o_68", Bn = "_nextWeek_ki27o_72", Pn = "_day_ki27o_84", Un = "_weekdayLabel_ki27o_94", xn = "_dayNumber_ki27o_103", zn = "_indicator_ki27o_107", Yn = "_hint_ki27o_130", Hn = "_slots_ki27o_143", Kn = "_dateTitle_ki27o_157", $n = "_slot_ki27o_143", Gn = "_slotHover_ki27o_199", Zn = "_slotSelected_ki27o_207", Vn = "_showMoreSlots_ki27o_261", qn = "_loader_ki27o_292", jn = "_notification_ki27o_328", A = {
|
|
961
|
+
appointment: Mn,
|
|
962
962
|
dates: hn,
|
|
963
963
|
weekHeading: wn,
|
|
964
964
|
weekButton: Cn,
|
package/dist/component/{bookings-login-bar-rac-DpGFo3D_.js → bookings-login-bar-rac-CUhHuZm-.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
2
|
import E from "classnames";
|
|
3
|
-
import {
|
|
3
|
+
import { bO as d, bZ as b, bG as f, bK as x, W as p } from "./form-DpFQ9uO1.js";
|
|
4
4
|
import { Button as L } from "react-aria-components";
|
|
5
5
|
import { a as m, f as g } from "./find-child-C60k4CxG.js";
|
|
6
6
|
const l = ({ children: n }) => {
|