@wix/form-elements 1.146.0 → 1.147.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-scUix9QX.js → appointment-rac-BG5-bIZU.js} +98 -98
- package/dist/component/{bookings-address-rac-CKemkJOO.js → bookings-address-rac-8e8PqKsp.js} +1 -1
- package/dist/component/{bookings-email-rac-CDqdhPAB.js → bookings-email-rac-CtlnU8ws.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DEy_7Hjb.js → bookings-first-name-rac-CrivNlXM.js} +1 -1
- package/dist/component/{bookings-header-rac-Bl4xy9lB.js → bookings-header-rac-DWDAjfqq.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CsL9xQ1W.js → bookings-last-name-rac-qAthWem2.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DkHYQ4No.js → bookings-login-bar-rac-BNyUDqlM.js} +6 -6
- package/dist/component/{bookings-phone-rac-BoBiFwbV.js → bookings-phone-rac-Tc39XLr7.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DZZnPKWA.js → bookings-rich-text-rac-CPNaPtFK.js} +1 -1
- package/dist/component/{checkbox-field-rac-UgLmJxB-.js → checkbox-field-rac-DEa78Tpf.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-C809nB0Q.js → checkbox-group-field-headless-BxBaMg29.js} +68 -68
- package/dist/component/{checkbox-group-field-rac-u4i4wG21.js → checkbox-group-field-rac-CRRP03Qk.js} +7 -7
- package/dist/component/{checkbox-group-rac-DBAQhSo3.js → checkbox-group-rac-TOofMGl3.js} +1 -1
- package/dist/component/{checkbox-rac-FDQVsI5-.js → checkbox-rac-CHMHr8Ry.js} +1 -1
- package/dist/component/{contacts-address-rac-DnArylPa.js → contacts-address-rac-Bc5yDvTL.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-C19jhGEO.js → contacts-birthdate-rac-Ubtg5ncv.js} +1 -1
- package/dist/component/{contacts-company-rac-Dxs0hs_i.js → contacts-company-rac-BksH9IoV.js} +1 -1
- package/dist/component/{contacts-email-rac-D-H43L8r.js → contacts-email-rac-DDPEtMAm.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DwV5NESk.js → contacts-first-name-rac-DUlCvEdx.js} +1 -1
- package/dist/component/{contacts-last-name-rac-C5v2xurf.js → contacts-last-name-rac-BikqNgUr.js} +1 -1
- package/dist/component/{contacts-phone-rac-D9a5x-xl.js → contacts-phone-rac-B4OEgM_8.js} +1 -1
- package/dist/component/{contacts-position-rac-DfsgOv-k.js → contacts-position-rac-BfybzySV.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-B-Hho0Kb.js → contacts-subscribe-rac-CMHb33v1.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-q6TQkB4b.js → contacts-tax-id-rac-C-qEqwO5.js} +1 -1
- package/dist/component/{date-availability-CMDvf5VU.js → date-availability-DZ3J3LLm.js} +1 -1
- package/dist/component/{date-input-field-rac-C1WLUct3.js → date-input-field-rac-DeL5vuE7.js} +39 -39
- package/dist/component/{date-input-rac-cNQ-nr4D.js → date-input-rac-Di6TQvFf.js} +1 -1
- package/dist/component/{date-picker-field-rac-mx11z-MO.js → date-picker-field-rac-BcdpTkjV.js} +107 -103
- package/dist/component/{date-picker-rac-DeTz17zC.js → date-picker-rac-Brne65gr.js} +1 -1
- package/dist/component/{date-time-input-field-rac-feQ2E1eU.js → date-time-input-field-rac-BtQfAxRp.js} +49 -49
- package/dist/component/{date-time-input-rac-G0s0xP4v.js → date-time-input-rac-DM_HXiqV.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BcTN1nJb.js → dext-checkbox-group-rac-WTVwhGG0.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DX0TOrCO.js → dext-checkbox-rac-BR5YwmLQ.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CpDp11oa.js → dext-date-picker-rac-DvDuRGYi.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BRvO8izU.js → dext-date-time-input-rac-C6RgbaVv.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DGZ4Yi_X.js → dext-dropdown-rac-CWjSdcZx.js} +1 -1
- package/dist/component/{dext-email-rac-B9YCFHB4.js → dext-email-rac-D-C1gVTq.js} +1 -1
- package/dist/component/{dext-number-input-rac-D890dBZf.js → dext-number-input-rac-YKzZS2ZG.js} +1 -1
- package/dist/component/{dext-phone-rac-BAQftbXo.js → dext-phone-rac-CFZlEH2a.js} +1 -1
- package/dist/component/dext-radio-group-rac-DiH0wIIl.js +18 -0
- package/dist/component/{dext-rating-input-rac-BqQKVaHo.js → dext-rating-input-rac-D0s-i0qO.js} +1 -1
- package/dist/component/{dext-tags-rac-zxxKcNUe.js → dext-tags-rac-Br48OQQ5.js} +2 -2
- package/dist/component/{dext-text-area-rac-Ctp9SwPg.js → dext-text-area-rac-6jG8gJ7i.js} +1 -1
- package/dist/component/{dext-text-input-rac-c_QMlyjr.js → dext-text-input-rac-FAJTCXuf.js} +1 -1
- package/dist/component/{dext-url-input-rac-96pv15aC.js → dext-url-input-rac-BoMP8sQB.js} +1 -1
- package/dist/component/{donation-rac-GEWKSLJY.js → donation-rac-DNi4p-v5.js} +69 -69
- package/dist/component/{dropdown-field-headless-C3OxMhLE.js → dropdown-field-headless-7SCC-xOC.js} +27 -27
- package/dist/component/{dropdown-field-rac-CCXfBmSc.js → dropdown-field-rac-CMzZh6J6.js} +8 -9
- package/dist/component/{dropdown-rac-CR7hswXE.js → dropdown-rac-qeugpHXY.js} +1 -1
- package/dist/component/{ecom-address-rac-khMuxEFD.js → ecom-address-rac-D8b_L5md.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CAi_AHpb.js → ecom-subscription-checkbox-rac-BnAuR9La.js} +5 -5
- package/dist/component/{email-input-field-rac-B83mY2lg.js → email-input-field-rac-CunXRyc5.js} +62 -62
- package/dist/component/{events-repeater-rac-ClEwXgmb.js → events-repeater-rac-DMjyIOkB.js} +17 -17
- package/dist/component/{events-rsvp-rac-BJ5q2SVR.js → events-rsvp-rac-BsuDPq2K.js} +8 -8
- package/dist/component/{field-error-headless-CsYQCsiT.js → field-error-headless-E8WjFr_n.js} +6 -6
- package/dist/component/{field-label-headless-Yg_1PMSg.js → field-label-headless-BakLOu5E.js} +15 -15
- package/dist/component/{file-upload-rac-DJsuI_lR.js → file-upload-rac-Clu_c--0.js} +43 -43
- package/dist/component/{fixed-payment-rac-BMFe9wxU.js → fixed-payment-rac-CzAXxsb-.js} +12 -12
- package/dist/component/{form-Bed4Kfz8.js → form-DHAKwnLt.js} +311 -305
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +2 -2
- package/dist/component/{header-field-rac-DPQTrOSZ.js → header-field-rac-CwmVpz3r.js} +4 -4
- package/dist/component/{header-rac-CzXsuLmE.js → header-rac-ahkGRjSy.js} +1 -1
- package/dist/component/{image-choice-rac-R_4pbOSr.js → image-choice-rac-BwxkkdUu.js} +17 -17
- package/dist/component/{index-qSZCe_WC.js → index-BFi_n6B7.js} +2 -2
- package/dist/component/{index-DZxHlvzt.js → index-BQf23zZi.js} +91 -91
- package/dist/component/{isObjectLike-B-a5uaU-.js → isObjectLike-DHcMRYYH.js} +15 -15
- package/dist/component/{multiline-address-field-rac-rv4IZZy_.js → multiline-address-field-rac-C6xaqNOk.js} +60 -60
- package/dist/component/{multiline-address-rac-DZ7cYtgn.js → multiline-address-rac-DF4TFuDx.js} +1 -1
- package/dist/component/{number-input-field-rac-CL9iXKIf.js → number-input-field-rac-uVJ3SBv2.js} +27 -27
- package/dist/component/{number-input-rac-BeGn6qJR.js → number-input-rac-D6ERhrSM.js} +1 -1
- package/dist/component/{password-rac-DfvhdsKG.js → password-rac-CAiC0ZKl.js} +23 -23
- package/dist/component/{payment-input-rac-BmMfi5rf.js → payment-input-rac-Bu25xvby.js} +26 -26
- package/dist/component/{phone-input-field-rac-DW0a1pXs.js → phone-input-field-rac-32qUvCsC.js} +45 -45
- package/dist/component/{phone-rac-quZjJ08H.js → phone-rac-mNrpj30q.js} +1 -1
- package/dist/component/{product-list-rac-Ci0KB7sN.js → product-list-rac-zHdM9rHw.js} +53 -53
- package/dist/component/{quiz-radio-group-rac--UUtGx2t.js → quiz-radio-group-rac-BaSlT8w3.js} +1 -1
- package/dist/component/{radio-button-module-classes-CqdBGknT.js → radio-button-module-classes-BdWjkBlX.js} +9 -9
- package/dist/component/{radio-group-field-rac-w8fHpFKJ.js → radio-group-field-rac-DI0UgTBr.js} +12 -12
- package/dist/component/{radio-group-rac-jO8aghii.js → radio-group-rac-D2ESG8J4.js} +1 -1
- package/dist/component/{rating-input-field-rac-BRc2PtqE.js → rating-input-field-rac-BYT2XqOK.js} +26 -26
- package/dist/component/{rating-input-rac-D9zs06xR.js → rating-input-rac-D-5CmVAX.js} +1 -1
- package/dist/component/{rich-content-rac.module-Cv3ZmD00.js → rich-content-rac.module-Dp9Advo9.js} +8 -8
- package/dist/component/{rich-text-field-rac-BmWuIfA8.js → rich-text-field-rac-COEUwoXQ.js} +4 -4
- package/dist/component/{rich-text-rac-BnqnrvB1.js → rich-text-rac-CQZLjBQ0.js} +1 -1
- package/dist/component/{service-dropdown-rac-Cl81KfJU.js → service-dropdown-rac-BTtJVFv8.js} +44 -45
- package/dist/component/{services-multi-choice-rac-sQ1NF9hY.js → services-multi-choice-rac-hbY3g0Kb.js} +11 -11
- package/dist/component/{signature-rac-Huairu7V.js → signature-rac-CTCNclwL.js} +67 -67
- package/dist/component/{submit-button-rac-Dpg7N0TG.js → submit-button-rac-kKGeVgsG.js} +25 -25
- package/dist/component/{tags-field-rac-BQ8TEqXH.js → tags-field-rac-CVf7oQr_.js} +35 -35
- package/dist/component/{tags-rac-CFOmyCCc.js → tags-rac-DiX1_nTT.js} +1 -1
- package/dist/component/{text-area-field-rac-DNiMa7d3.js → text-area-field-rac-IhBNXiDl.js} +22 -22
- package/dist/component/{text-area-rac-kLFe-KbZ.js → text-area-rac-DHevCtFF.js} +1 -1
- package/dist/component/{text-input-field-rac-CqENSUUX.js → text-input-field-rac-Da3_wTdh.js} +5 -5
- package/dist/component/{text-input-headless-BdPkEeK2.js → text-input-headless-DcZRRXCp.js} +9 -9
- package/dist/component/{text-input-rac-uYQEfOtE.js → text-input-rac-564LIZ1_.js} +1 -1
- package/dist/component/{time-input-rac-BYoojlJ9.js → time-input-rac-p-Nnsxp_.js} +54 -54
- package/dist/component/{url-input-field-rac-BioH7kuz.js → url-input-field-rac-DjrcpRtm.js} +25 -25
- package/dist/component/{url-input-rac-D2VSSyqW.js → url-input-rac-B3brpyop.js} +1 -1
- package/dist/component/use-dropdown-trigger-class-name-BWTT7ltv.js +117 -0
- package/dist/component/{use-element-state-class-name-oiKCauK-.js → use-element-state-class-name-CUZuhFvZ.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-BW3nCyhG.js → use-hoverable-input-class-name-ugX8-g4E.js} +6 -6
- package/dist/component/use-is-forced-open-dropdown-DUZMvWpk.js +48 -0
- package/dist/component/{use-service-options-base-DXG60hA5.js → use-service-options-base-hqO9Ev38.js} +6 -6
- package/dist/component/use-text-input-class-name-wp9dzpEy.js +6 -0
- package/dist/form.d.ts +5 -0
- package/package.json +2 -2
- package/dist/component/dext-radio-group-rac-CtEjnu_X.js +0 -18
- package/dist/component/use-dropdown-option-class-name-BEmvU-Gg.js +0 -115
- package/dist/component/use-dropdown-trigger-class-name-qj9skLWZ.js +0 -40
- package/dist/component/use-text-input-class-name-BhQFcXYH.js +0 -6
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import o, { useRef as J, useState as j, useEffect as P, createContext as Ke, useContext as $e, useMemo as B, useCallback as se } from "react";
|
|
2
2
|
import { RicosViewer as it } from "@wix/ricos/viewer";
|
|
3
|
-
import
|
|
3
|
+
import v from "classnames";
|
|
4
4
|
import { C as he } from "./chevron-down-icon-CcpVm6B-.js";
|
|
5
5
|
import { E as lt } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { g as ct, c as Ce } from "./calendar.module-CKCBG_Pg.js";
|
|
7
7
|
import { H as me } from "./custom-focus-class-_483Pkwp.js";
|
|
8
8
|
import { s as ue } from "./field-rac.module-DfEb7pBp.js";
|
|
9
|
-
import {
|
|
10
|
-
import { u as gt } from "./use-element-state-class-name-
|
|
11
|
-
import { ListBox as Tt, Button as
|
|
9
|
+
import { bg as De, bf as mt, bk as Te, by as ut, bx as dt, bo as re, bl as ie, bq as ft, bn as Dt, F as Et, h as St, S as _t, a0 as pt, g as Nt, j as We, i as yt, m as At, k as bt, H as It, v as Lt, l as Ot } from "./form-DHAKwnLt.js";
|
|
10
|
+
import { u as gt } from "./use-element-state-class-name-CUZuhFvZ.js";
|
|
11
|
+
import { ListBox as Tt, Button as ve, ListBoxItem as vt, RadioGroup as kt, RadioField as Rt, RadioButton as Mt } from "react-aria-components";
|
|
12
12
|
import { f as T, a as Ee } from "./find-child-C60k4CxG.js";
|
|
13
|
-
import { D as
|
|
14
|
-
import { L as ht } from "./field-label-headless-
|
|
13
|
+
import { D as wt, E as Ft } from "./field-error-headless-E8WjFr_n.js";
|
|
14
|
+
import { L as ht } from "./field-label-headless-BakLOu5E.js";
|
|
15
15
|
import { F as Ct } from "./fieldset-headless-CD3fds9J.js";
|
|
16
16
|
import "date-fns";
|
|
17
17
|
import { V as Ge } from "./headless-styles-CmcyA_pi.js";
|
|
@@ -47,7 +47,7 @@ const Bt = (e) => {
|
|
|
47
47
|
});
|
|
48
48
|
}, Ze = (e) => {
|
|
49
49
|
var i;
|
|
50
|
-
const { appointmentFieldProps: t } =
|
|
50
|
+
const { appointmentFieldProps: t } = ke(), { isEditor: n, isComposer: a } = De(), s = mt(), r = e || ((i = t == null ? void 0 : t.initialData) == null ? void 0 : i.service);
|
|
51
51
|
if (!(n || a))
|
|
52
52
|
return {
|
|
53
53
|
...s,
|
|
@@ -163,23 +163,23 @@ function Kt(e) {
|
|
|
163
163
|
return P(() => {
|
|
164
164
|
i && !s && !r && D && (async () => {
|
|
165
165
|
var b, I, U, x, H;
|
|
166
|
-
const
|
|
166
|
+
const M = Ve(), y = {
|
|
167
167
|
currentSlotBulkSize: V,
|
|
168
|
-
timezone:
|
|
168
|
+
timezone: M,
|
|
169
169
|
dataStatus: z.LOADING
|
|
170
170
|
};
|
|
171
171
|
try {
|
|
172
172
|
const Y = async (ae) => {
|
|
173
173
|
var _, p;
|
|
174
|
-
const { startDate: $, endDate:
|
|
174
|
+
const { startDate: $, endDate: w } = xt(ae, M);
|
|
175
175
|
return (p = (_ = c.current) == null ? void 0 : _.getAvailabilityDates) == null ? void 0 : p.call(_, {
|
|
176
176
|
serviceId: i,
|
|
177
177
|
fromDate: $,
|
|
178
|
-
toDate:
|
|
179
|
-
timeZone:
|
|
178
|
+
toDate: w,
|
|
179
|
+
timeZone: M
|
|
180
180
|
});
|
|
181
181
|
};
|
|
182
|
-
if (
|
|
182
|
+
if (y.availabilityDates = await Y(2), (b = y.availabilityDates) != null && b.length || (y.availabilityDates = await Y(6)), !((I = y.availabilityDates) != null && I.length)) {
|
|
183
183
|
E == null || E.report({
|
|
184
184
|
action: te.LOAD,
|
|
185
185
|
component: Q.NO_AVAILABILITY_AT_ALL
|
|
@@ -192,15 +192,15 @@ function Kt(e) {
|
|
|
192
192
|
});
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
|
-
|
|
195
|
+
y.selectedDate = Ht(y.availabilityDates), y.selectedDate && (y.availabilitySlots = await ((x = (U = c.current) == null ? void 0 : U.getAvailabilitySlots) == null ? void 0 : x.call(U, {
|
|
196
196
|
serviceId: i,
|
|
197
|
-
timeZone:
|
|
198
|
-
selectedDate:
|
|
197
|
+
timeZone: M,
|
|
198
|
+
selectedDate: y.selectedDate
|
|
199
199
|
}))), E == null || E.report({
|
|
200
200
|
action: te.LOAD,
|
|
201
|
-
component: (H =
|
|
201
|
+
component: (H = y.availabilityDates) != null && H.length ? Q.FORM : Q.NO_AVAILABILITY_FOR_DATE
|
|
202
202
|
}), a != null && a.startDate || n(void 0), S({
|
|
203
|
-
...
|
|
203
|
+
...y,
|
|
204
204
|
dataStatus: z.DONE
|
|
205
205
|
});
|
|
206
206
|
} catch (Y) {
|
|
@@ -247,7 +247,7 @@ const qe = /* @__PURE__ */ Ke({
|
|
|
247
247
|
})
|
|
248
248
|
}
|
|
249
249
|
}, t);
|
|
250
|
-
},
|
|
250
|
+
}, ke = () => $e(qe), Gt = (e, t) => {
|
|
251
251
|
if (e.startOfWeek.getMonth() === e.endOfWeek.getMonth())
|
|
252
252
|
return new Intl.DateTimeFormat(t, {
|
|
253
253
|
month: "long",
|
|
@@ -290,7 +290,7 @@ const qe = /* @__PURE__ */ Ke({
|
|
|
290
290
|
toDate: a
|
|
291
291
|
};
|
|
292
292
|
}, jt = ({ setIsReloadingSlots: e }) => {
|
|
293
|
-
const { appointmentFieldProps: t, appointmentState: n, setAppointmentState: a } =
|
|
293
|
+
const { appointmentFieldProps: t, appointmentState: n, setAppointmentState: a } = ke(), { value: s } = t, { actions: r } = Te();
|
|
294
294
|
P(() => {
|
|
295
295
|
(async () => {
|
|
296
296
|
var l, c;
|
|
@@ -389,16 +389,16 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
389
389
|
return !!((a = n.slot) != null && a.startDate) && ne(new Date(n.slot.startDate), e);
|
|
390
390
|
}), mn = () => {
|
|
391
391
|
var Fe;
|
|
392
|
-
const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } =
|
|
392
|
+
const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } = ke(), { language: a, isEditor: s, isComposer: r } = De(), { t: i } = ut(), { actions: l } = Te(), c = Ze(), [D, u] = j(!1), [S, E] = j(!1), [d, g] = j(), [M, y] = j();
|
|
393
393
|
jt({
|
|
394
394
|
setIsReloadingSlots: u
|
|
395
395
|
});
|
|
396
|
-
const { onChange: b, value: I, target: U, initialData: x, formatDescription: H, locationType: Y, error: ae } = e, { availabilityDates: $, availabilitySlots:
|
|
396
|
+
const { onChange: b, value: I, target: U, initialData: x, formatDescription: H, locationType: Y, error: ae } = e, { availabilityDates: $, availabilitySlots: w, timezone: _ = "", selectedDate: p, currentSlotBulkSize: k, dataStatus: G, error: le } = t, K = (Fe = x == null ? void 0 : x.service) == null ? void 0 : Fe.id, Z = G === z.LOADING, X = D || S, Se = !!le, Me = on({
|
|
397
397
|
error: ae,
|
|
398
398
|
selectedSlot: I
|
|
399
|
-
}),
|
|
400
|
-
|
|
401
|
-
|
|
399
|
+
}), A = B(() => Qt(w, Me), [
|
|
400
|
+
w,
|
|
401
|
+
Me
|
|
402
402
|
]);
|
|
403
403
|
P(() => {
|
|
404
404
|
b == null || b(Zt(I));
|
|
@@ -408,30 +408,30 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
408
408
|
_
|
|
409
409
|
]), dt((f) => {
|
|
410
410
|
const L = f == null ? void 0 : f[U];
|
|
411
|
-
|
|
412
|
-
availabilitySlots:
|
|
411
|
+
w != null && w.length && n({
|
|
412
|
+
availabilitySlots: w.filter((O) => {
|
|
413
413
|
var R;
|
|
414
414
|
return ((R = O == null ? void 0 : O.slot) == null ? void 0 : R.startDate) !== (L == null ? void 0 : L.startDate);
|
|
415
415
|
})
|
|
416
416
|
});
|
|
417
417
|
}), P(() => {
|
|
418
|
-
if (
|
|
419
|
-
const f = en(de(I ?? void 0),
|
|
420
|
-
f && f + 1 >
|
|
418
|
+
if (A != null && A.length && k) {
|
|
419
|
+
const f = en(de(I ?? void 0), A);
|
|
420
|
+
f && f + 1 > k && n({
|
|
421
421
|
currentSlotBulkSize: f + 1
|
|
422
422
|
});
|
|
423
|
-
} else !(
|
|
423
|
+
} else !(A != null && A.length) && I && (b == null || b(void 0));
|
|
424
424
|
}, [
|
|
425
425
|
I,
|
|
426
|
-
|
|
426
|
+
A,
|
|
427
427
|
$
|
|
428
428
|
]);
|
|
429
429
|
const _e = B(() => ct(a), [
|
|
430
430
|
a
|
|
431
|
-
]),
|
|
431
|
+
]), we = J(p);
|
|
432
432
|
P(() => {
|
|
433
|
-
const f =
|
|
434
|
-
|
|
433
|
+
const f = we.current;
|
|
434
|
+
we.current = p, !!p && (!f || !ne(f, p)) && g(void 0);
|
|
435
435
|
}, [
|
|
436
436
|
p
|
|
437
437
|
]);
|
|
@@ -474,7 +474,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
474
474
|
X,
|
|
475
475
|
a,
|
|
476
476
|
i
|
|
477
|
-
]), pe = de(I ?? void 0) || void 0, Ne = B(() => Z || D ? [] : (
|
|
477
|
+
]), pe = de(I ?? void 0) || void 0, Ne = B(() => Z || D ? [] : (A ?? []).slice(0, k).flatMap((f) => {
|
|
478
478
|
const { startDate: L, endDate: O } = f.slot ?? {};
|
|
479
479
|
if (!L || !O)
|
|
480
480
|
return [];
|
|
@@ -497,14 +497,14 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
497
497
|
}
|
|
498
498
|
];
|
|
499
499
|
}), [
|
|
500
|
-
|
|
501
|
-
|
|
500
|
+
A,
|
|
501
|
+
k,
|
|
502
502
|
Z,
|
|
503
503
|
D,
|
|
504
504
|
a,
|
|
505
505
|
_,
|
|
506
506
|
pe
|
|
507
|
-
]),
|
|
507
|
+
]), ye = !D && !!(A != null && A.length) && (k || V) < A.length, Ae = h > He(/* @__PURE__ */ new Date(), _e), et = se(
|
|
508
508
|
async (f) => {
|
|
509
509
|
var L;
|
|
510
510
|
if (!(X || p && ne(f, p))) {
|
|
@@ -546,7 +546,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
546
546
|
), ce = J(0), tt = se(
|
|
547
547
|
async (f) => {
|
|
548
548
|
var oe;
|
|
549
|
-
if (f < 0 && !
|
|
549
|
+
if (f < 0 && !Ae)
|
|
550
550
|
return;
|
|
551
551
|
const L = h, O = ee(h, f * q);
|
|
552
552
|
if (g(O), s || r)
|
|
@@ -574,7 +574,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
574
574
|
},
|
|
575
575
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
576
576
|
[
|
|
577
|
-
|
|
577
|
+
Ae,
|
|
578
578
|
h,
|
|
579
579
|
s,
|
|
580
580
|
r,
|
|
@@ -608,29 +608,29 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
608
608
|
c
|
|
609
609
|
]
|
|
610
610
|
), at = se(() => {
|
|
611
|
-
if (!
|
|
611
|
+
if (!ye)
|
|
612
612
|
return;
|
|
613
|
-
const f =
|
|
613
|
+
const f = k || V;
|
|
614
614
|
c == null || c.report({
|
|
615
615
|
action: te.CLICK,
|
|
616
616
|
component: Q.SHOW_MORE
|
|
617
|
-
}),
|
|
617
|
+
}), y(f), n({
|
|
618
618
|
currentSlotBulkSize: f + V
|
|
619
619
|
});
|
|
620
620
|
}, [
|
|
621
|
-
|
|
622
|
-
|
|
621
|
+
ye,
|
|
622
|
+
k,
|
|
623
623
|
c
|
|
624
|
-
]), ot = se(() =>
|
|
624
|
+
]), ot = se(() => y(void 0), []), st = B(() => {
|
|
625
625
|
if (Se)
|
|
626
626
|
return i("form.appointment.empty-state.notification.text");
|
|
627
|
-
if (!Z && !D && !(
|
|
627
|
+
if (!Z && !D && !(A != null && A.length))
|
|
628
628
|
return i("form.appointment.slots-not-found.text");
|
|
629
629
|
}, [
|
|
630
630
|
Se,
|
|
631
631
|
Z,
|
|
632
632
|
D,
|
|
633
|
-
|
|
633
|
+
A == null ? void 0 : A.length,
|
|
634
634
|
i
|
|
635
635
|
]);
|
|
636
636
|
return {
|
|
@@ -641,8 +641,8 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
641
641
|
selectSlot: nt,
|
|
642
642
|
changeWeek: tt,
|
|
643
643
|
showMoreSlots: at,
|
|
644
|
-
canGoToPreviousWeek:
|
|
645
|
-
hasMoreSlots:
|
|
644
|
+
canGoToPreviousWeek: Ae,
|
|
645
|
+
hasMoreSlots: ye,
|
|
646
646
|
hasError: Se,
|
|
647
647
|
isLoading: Z,
|
|
648
648
|
isRefetching: X,
|
|
@@ -666,7 +666,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
666
666
|
showMoreSlotsLabel: i("form.appointment.show-more-slots.text"),
|
|
667
667
|
previousWeekLabel: i("form.appointment.accessibility.calendar.previous-week.aria-label"),
|
|
668
668
|
nextWeekLabel: i("form.appointment.accessibility.calendar.next-week.aria-label"),
|
|
669
|
-
pendingFocusIndex:
|
|
669
|
+
pendingFocusIndex: M,
|
|
670
670
|
consumePendingFocusIndex: ot
|
|
671
671
|
};
|
|
672
672
|
}, je = Ke(void 0), Qe = (e) => `${e}-timezone-note`, Je = (e) => `${e}-date-title`, F = () => {
|
|
@@ -688,8 +688,8 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
688
688
|
return;
|
|
689
689
|
const [g] = [
|
|
690
690
|
...d
|
|
691
|
-
],
|
|
692
|
-
|
|
691
|
+
], M = n.find(({ key: y }) => y === g);
|
|
692
|
+
M && a(M.date);
|
|
693
693
|
};
|
|
694
694
|
return /* @__PURE__ */ o.createElement("div", {
|
|
695
695
|
className: t
|
|
@@ -719,7 +719,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
719
719
|
}, [
|
|
720
720
|
a,
|
|
721
721
|
r
|
|
722
|
-
]), /* @__PURE__ */ o.createElement(
|
|
722
|
+
]), /* @__PURE__ */ o.createElement(ve, {
|
|
723
723
|
ref: l,
|
|
724
724
|
className: t,
|
|
725
725
|
"aria-label": s,
|
|
@@ -730,7 +730,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
730
730
|
}, e ?? "‹");
|
|
731
731
|
}, dn = ({ children: e, className: t }) => {
|
|
732
732
|
const { changeWeek: n, nextWeekLabel: a } = F(), s = Re();
|
|
733
|
-
return /* @__PURE__ */ o.createElement(
|
|
733
|
+
return /* @__PURE__ */ o.createElement(ve, {
|
|
734
734
|
className: t,
|
|
735
735
|
"aria-label": a,
|
|
736
736
|
isDisabled: s,
|
|
@@ -751,7 +751,7 @@ const nn = "SLOT_UNAVAILABLE", an = (e) => {
|
|
|
751
751
|
}, a)));
|
|
752
752
|
}, Dn = ({ children: e, className: t, ...n }) => {
|
|
753
753
|
const { day: a } = n;
|
|
754
|
-
return /* @__PURE__ */ o.createElement(
|
|
754
|
+
return /* @__PURE__ */ o.createElement(vt, {
|
|
755
755
|
id: a.key,
|
|
756
756
|
className: t,
|
|
757
757
|
textValue: a.label,
|
|
@@ -768,37 +768,37 @@ C.Heading = fn;
|
|
|
768
768
|
C.NextWeek = dn;
|
|
769
769
|
C.Day = Dn;
|
|
770
770
|
const Ye = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) => {
|
|
771
|
-
const { hasTimezoneNote: a, hasDateTitle: s } = n, { slots: r, selectedSlotKey: i, selectSlot: l, selectedDateLabel: c, isReloadingSlots: D, timezoneLabel: u, pendingFocusIndex: S, consumePendingFocusIndex: E } = F(), { id: d, disabled: g, readOnly:
|
|
771
|
+
const { hasTimezoneNote: a, hasDateTitle: s } = n, { slots: r, selectedSlotKey: i, selectSlot: l, selectedDateLabel: c, isReloadingSlots: D, timezoneLabel: u, pendingFocusIndex: S, consumePendingFocusIndex: E } = F(), { id: d, disabled: g, readOnly: M, required: y, hasError: b } = re(), { inputId: I, labelId: U, ariaDescribedBy: x } = ie(), H = J(null), Y = T(e, fe.Slot) ?? /* @__PURE__ */ o.createElement(fe.Slot, null), ae = !!s && !!c, $ = [
|
|
772
772
|
x,
|
|
773
773
|
a && u ? Qe(I) : void 0
|
|
774
|
-
].filter(Boolean).join(" ") || void 0,
|
|
775
|
-
var p,
|
|
776
|
-
(G = (
|
|
774
|
+
].filter(Boolean).join(" ") || void 0, w = (_) => {
|
|
775
|
+
var p, k, G;
|
|
776
|
+
(G = (k = (p = H.current) == null ? void 0 : p.querySelectorAll(Ye)) == null ? void 0 : k[_]) == null || G.focus();
|
|
777
777
|
};
|
|
778
778
|
return ft(() => {
|
|
779
779
|
var G, le;
|
|
780
780
|
if (!!((G = H.current) != null && G.querySelector(Ye))) {
|
|
781
|
-
|
|
781
|
+
w(0);
|
|
782
782
|
return;
|
|
783
783
|
}
|
|
784
|
-
const p = Array.from(((le = document.getElementById(I)) == null ? void 0 : le.querySelectorAll('[role="option"]')) ?? []),
|
|
785
|
-
|
|
784
|
+
const p = Array.from(((le = document.getElementById(I)) == null ? void 0 : le.querySelectorAll('[role="option"]')) ?? []), k = p.find((K) => K.getAttribute("aria-selected") === "true") ?? p.find((K) => K.getAttribute("aria-disabled") !== "true");
|
|
785
|
+
k == null || k.focus();
|
|
786
786
|
}, d), P(() => {
|
|
787
|
-
S !== void 0 && (
|
|
787
|
+
S !== void 0 && (w(S), E());
|
|
788
788
|
}, [
|
|
789
789
|
S,
|
|
790
790
|
r.length
|
|
791
791
|
]), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("div", {
|
|
792
792
|
role: "status",
|
|
793
793
|
style: Ge
|
|
794
|
-
}, r.length > 0 ? c : void 0), /* @__PURE__ */ o.createElement(
|
|
794
|
+
}, r.length > 0 ? c : void 0), /* @__PURE__ */ o.createElement(kt, {
|
|
795
795
|
ref: H,
|
|
796
796
|
className: t,
|
|
797
797
|
value: i ?? null,
|
|
798
798
|
onChange: l,
|
|
799
799
|
isDisabled: g,
|
|
800
|
-
isReadOnly:
|
|
801
|
-
isRequired:
|
|
800
|
+
isReadOnly: M,
|
|
801
|
+
isRequired: y,
|
|
802
802
|
isInvalid: b,
|
|
803
803
|
"aria-labelledby": ae ? Je(I) : U,
|
|
804
804
|
"aria-describedby": $,
|
|
@@ -812,7 +812,7 @@ const Ye = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) =>
|
|
|
812
812
|
return /* @__PURE__ */ o.createElement(Rt, {
|
|
813
813
|
value: a.key,
|
|
814
814
|
"aria-label": a.timeRange
|
|
815
|
-
}, /* @__PURE__ */ o.createElement(
|
|
815
|
+
}, /* @__PURE__ */ o.createElement(Mt, {
|
|
816
816
|
className: t
|
|
817
817
|
}, e ? e(a) : a.timeRange));
|
|
818
818
|
};
|
|
@@ -848,7 +848,7 @@ const m = ({ children: e, className: t }) => {
|
|
|
848
848
|
}, Sn = {
|
|
849
849
|
visibility: "hidden"
|
|
850
850
|
}, _n = ({ children: e, className: t }) => {
|
|
851
|
-
const { required: n, onFocus: a, onBlur: s } = re(), { inputId: r, labelId: i, ariaDescribedBy: l } = ie(), c = mn(), D = T(e, m.Loader), u = T(e, m.Notification), S = T(e, m.Dates), E = T(e, m.Timezone), d = T(e, m.Format), g = T(e, m.DateTitle),
|
|
851
|
+
const { required: n, onFocus: a, onBlur: s } = re(), { inputId: r, labelId: i, ariaDescribedBy: l } = ie(), c = mn(), D = T(e, m.Loader), u = T(e, m.Notification), S = T(e, m.Dates), E = T(e, m.Timezone), d = T(e, m.Format), g = T(e, m.DateTitle), M = T(e, m.Slots), y = T(e, m.ShowMoreSlots);
|
|
852
852
|
return /* @__PURE__ */ o.createElement(je.Provider, {
|
|
853
853
|
value: c
|
|
854
854
|
}, /* @__PURE__ */ o.createElement(Ct, {
|
|
@@ -861,10 +861,10 @@ const m = ({ children: e, className: t }) => {
|
|
|
861
861
|
onBlur: s
|
|
862
862
|
}, D, c.hasError ? u : /* @__PURE__ */ o.createElement("div", {
|
|
863
863
|
style: c.isLoading ? Sn : void 0
|
|
864
|
-
}, S, E, d, g, Ee(
|
|
864
|
+
}, S, E, d, g, Ee(M, {
|
|
865
865
|
hasTimezoneNote: !!E,
|
|
866
866
|
hasDateTitle: !!g
|
|
867
|
-
}), u,
|
|
867
|
+
}), u, y)));
|
|
868
868
|
}, pn = ({ children: e, className: t }) => {
|
|
869
869
|
const { isLoading: n, isRefetching: a } = F();
|
|
870
870
|
return !n && !a ? null : /* @__PURE__ */ o.createElement("div", {
|
|
@@ -882,7 +882,7 @@ const m = ({ children: e, className: t }) => {
|
|
|
882
882
|
}, e ? e({
|
|
883
883
|
message: n
|
|
884
884
|
}) : n) : null;
|
|
885
|
-
},
|
|
885
|
+
}, yn = ({ children: e, className: t }) => {
|
|
886
886
|
const { timezoneLabel: n } = F(), { inputId: a } = ie();
|
|
887
887
|
return n ? /* @__PURE__ */ o.createElement("span", {
|
|
888
888
|
id: Qe(a),
|
|
@@ -890,7 +890,7 @@ const m = ({ children: e, className: t }) => {
|
|
|
890
890
|
}, e ? e({
|
|
891
891
|
label: n
|
|
892
892
|
}) : n) : null;
|
|
893
|
-
},
|
|
893
|
+
}, An = ({ children: e, className: t }) => {
|
|
894
894
|
const { formatLabel: n } = F();
|
|
895
895
|
return n ? /* @__PURE__ */ o.createElement("span", {
|
|
896
896
|
className: t
|
|
@@ -907,7 +907,7 @@ const m = ({ children: e, className: t }) => {
|
|
|
907
907
|
}) : n) : null;
|
|
908
908
|
}, In = ({ children: e, className: t }) => {
|
|
909
909
|
const { hasMoreSlots: n, showMoreSlots: a, showMoreSlotsLabel: s } = F(), { disabled: r, readOnly: i } = re();
|
|
910
|
-
return n ? /* @__PURE__ */ o.createElement(
|
|
910
|
+
return n ? /* @__PURE__ */ o.createElement(ve, {
|
|
911
911
|
className: t,
|
|
912
912
|
isDisabled: !!r || !!i,
|
|
913
913
|
onPress: a
|
|
@@ -919,23 +919,23 @@ m.Label = ht;
|
|
|
919
919
|
m.Loader = pn;
|
|
920
920
|
m.Notification = Nn;
|
|
921
921
|
m.Dates = C;
|
|
922
|
-
m.Timezone =
|
|
923
|
-
m.Format =
|
|
922
|
+
m.Timezone = yn;
|
|
923
|
+
m.Format = An;
|
|
924
924
|
m.DateTitle = bn;
|
|
925
925
|
m.Slots = fe;
|
|
926
926
|
m.ShowMoreSlots = In;
|
|
927
|
-
m.Description =
|
|
927
|
+
m.Description = wt;
|
|
928
928
|
m.Error = Ft;
|
|
929
|
-
const Ln = "_appointment_ig6bz_1", On = "_dates_ig6bz_5", gn = "_weekHeading_ig6bz_27", Tn = "_weekButton_ig6bz_37",
|
|
929
|
+
const Ln = "_appointment_ig6bz_1", On = "_dates_ig6bz_5", gn = "_weekHeading_ig6bz_27", Tn = "_weekButton_ig6bz_37", vn = "_previousWeek_ig6bz_69", kn = "_nextWeek_ig6bz_73", Rn = "_day_ig6bz_85", Mn = "_weekdayLabel_ig6bz_97", wn = "_dayNumber_ig6bz_110", Fn = "_indicator_ig6bz_114", hn = "_hint_ig6bz_137", Cn = "_slots_ig6bz_150", Wn = "_dateTitle_ig6bz_164", Bn = "_slot_ig6bz_150", zn = "_slotHover_ig6bz_206", Pn = "_slotSelected_ig6bz_214", Un = "_showMoreSlots_ig6bz_268", xn = "_loader_ig6bz_299", Hn = "_notification_ig6bz_335", N = {
|
|
930
930
|
appointment: Ln,
|
|
931
931
|
dates: On,
|
|
932
932
|
weekHeading: gn,
|
|
933
933
|
weekButton: Tn,
|
|
934
|
-
previousWeek:
|
|
935
|
-
nextWeek:
|
|
934
|
+
previousWeek: vn,
|
|
935
|
+
nextWeek: kn,
|
|
936
936
|
day: Rn,
|
|
937
|
-
weekdayLabel:
|
|
938
|
-
dayNumber:
|
|
937
|
+
weekdayLabel: Mn,
|
|
938
|
+
dayNumber: wn,
|
|
939
939
|
indicator: Fn,
|
|
940
940
|
hint: hn,
|
|
941
941
|
slots: Cn,
|
|
@@ -959,37 +959,37 @@ const Ln = "_appointment_ig6bz_1", On = "_dates_ig6bz_5", gn = "_weekHeading_ig6
|
|
|
959
959
|
moduleClasses: Kn
|
|
960
960
|
});
|
|
961
961
|
return /* @__PURE__ */ o.createElement(m, {
|
|
962
|
-
className:
|
|
962
|
+
className: v(St, N.appointment)
|
|
963
963
|
}, /* @__PURE__ */ o.createElement(m.Label, {
|
|
964
|
-
className:
|
|
964
|
+
className: v(_t, ue.label)
|
|
965
965
|
}, /* @__PURE__ */ o.createElement(m.Label.Required, {
|
|
966
|
-
className:
|
|
966
|
+
className: v(pt, ue.requiredMark)
|
|
967
967
|
})), /* @__PURE__ */ o.createElement(m.Loader, {
|
|
968
968
|
className: N.loader
|
|
969
969
|
}), /* @__PURE__ */ o.createElement(m.Dates, {
|
|
970
|
-
className:
|
|
970
|
+
className: v(Nt, N.dates)
|
|
971
971
|
}, /* @__PURE__ */ o.createElement(m.Dates.PreviousWeek, {
|
|
972
|
-
className:
|
|
972
|
+
className: v(me, N.weekButton, N.previousWeek)
|
|
973
973
|
}, /* @__PURE__ */ o.createElement(he, null)), /* @__PURE__ */ o.createElement(m.Dates.Heading, {
|
|
974
974
|
className: N.weekHeading
|
|
975
975
|
}), /* @__PURE__ */ o.createElement(m.Dates.NextWeek, {
|
|
976
|
-
className:
|
|
976
|
+
className: v(me, N.weekButton, N.nextWeek)
|
|
977
977
|
}, /* @__PURE__ */ o.createElement(he, null)), /* @__PURE__ */ o.createElement(m.Dates.Day, {
|
|
978
|
-
className:
|
|
978
|
+
className: v(me, Ce.day, N.day)
|
|
979
979
|
}, (t) => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("span", {
|
|
980
980
|
className: N.weekdayLabel
|
|
981
981
|
}, t.weekdayLabel), /* @__PURE__ */ o.createElement("span", {
|
|
982
|
-
className:
|
|
982
|
+
className: v(Ce.dayNumber, N.dayNumber)
|
|
983
983
|
}, t.dayOfMonthLabel, /* @__PURE__ */ o.createElement("span", {
|
|
984
984
|
className: N.indicator
|
|
985
985
|
}))))), /* @__PURE__ */ o.createElement(m.Timezone, {
|
|
986
|
-
className:
|
|
986
|
+
className: v(We, N.hint)
|
|
987
987
|
}), /* @__PURE__ */ o.createElement(m.Format, {
|
|
988
|
-
className:
|
|
988
|
+
className: v(We, N.hint)
|
|
989
989
|
}), /* @__PURE__ */ o.createElement(m.DateTitle, {
|
|
990
|
-
className:
|
|
990
|
+
className: v(yt, N.dateTitle)
|
|
991
991
|
}), /* @__PURE__ */ o.createElement(m.Slots, {
|
|
992
|
-
className:
|
|
992
|
+
className: v(At, N.slots)
|
|
993
993
|
}, /* @__PURE__ */ o.createElement(m.Slots.Slot, {
|
|
994
994
|
className: ({ isSelected: t, isHovered: n, isFocused: a, isDisabled: s, isReadOnly: r }) => e({
|
|
995
995
|
isSelected: t,
|
|
@@ -998,11 +998,11 @@ const Ln = "_appointment_ig6bz_1", On = "_dates_ig6bz_5", gn = "_weekHeading_ig6
|
|
|
998
998
|
}, (t) => t.timeRange)), /* @__PURE__ */ o.createElement(m.Notification, {
|
|
999
999
|
className: N.notification
|
|
1000
1000
|
}), /* @__PURE__ */ o.createElement(m.ShowMoreSlots, {
|
|
1001
|
-
className:
|
|
1001
|
+
className: v(bt, me, N.showMoreSlots)
|
|
1002
1002
|
}), /* @__PURE__ */ o.createElement(m.Error, {
|
|
1003
|
-
className:
|
|
1003
|
+
className: v(It, ue.error)
|
|
1004
1004
|
}, /* @__PURE__ */ o.createElement(lt, null), /* @__PURE__ */ o.createElement(m.Error.Text, null)), /* @__PURE__ */ o.createElement(m.Description, {
|
|
1005
|
-
className:
|
|
1005
|
+
className: v(Lt, ue.description)
|
|
1006
1006
|
}, Yn));
|
|
1007
1007
|
}, ca = () => /* @__PURE__ */ o.createElement($n, null);
|
|
1008
1008
|
export {
|
package/dist/component/{bookings-login-bar-rac-DkHYQ4No.js → bookings-login-bar-rac-BNyUDqlM.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, by as b, bg as f, bk as x, Q as p } from "./form-DHAKwnLt.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 }) => {
|
|
@@ -44,11 +44,11 @@ const l = ({ children: n }) => {
|
|
|
44
44
|
l.LoginBar = _;
|
|
45
45
|
l.Text = N;
|
|
46
46
|
l.Button = F;
|
|
47
|
-
const T = "_container_1ixk2_1",
|
|
47
|
+
const T = "_container_1ixk2_1", k = "_text_1ixk2_34", C = "_button_1ixk2_39", u = {
|
|
48
48
|
container: T,
|
|
49
|
-
text:
|
|
50
|
-
button:
|
|
51
|
-
},
|
|
49
|
+
text: k,
|
|
50
|
+
button: C
|
|
51
|
+
}, y = () => {
|
|
52
52
|
const { userData: n, language: r } = f(), { actions: t } = x();
|
|
53
53
|
return /* @__PURE__ */ o.createElement(l, null, /* @__PURE__ */ o.createElement(l.LoginBar, {
|
|
54
54
|
email: n == null ? void 0 : n.email,
|
|
@@ -67,7 +67,7 @@ const T = "_container_1ixk2_1", C = "_text_1ixk2_34", k = "_button_1ixk2_39", u
|
|
|
67
67
|
}), /* @__PURE__ */ o.createElement(l.Button, {
|
|
68
68
|
className: u.button
|
|
69
69
|
})));
|
|
70
|
-
}, h = () => /* @__PURE__ */ o.createElement(
|
|
70
|
+
}, h = () => /* @__PURE__ */ o.createElement(y, null);
|
|
71
71
|
export {
|
|
72
72
|
h as BookingsLoginBarRAC
|
|
73
73
|
};
|
|
@@ -2,16 +2,16 @@ import { RicosViewer as Xn } from "@wix/ricos/viewer";
|
|
|
2
2
|
import U from "classnames";
|
|
3
3
|
import b, { useMemo as $n, useRef as Jn, useCallback as Yn } from "react";
|
|
4
4
|
import { CheckboxField as Qn, CheckboxButton as Zn } from "react-aria-components";
|
|
5
|
-
import {
|
|
5
|
+
import { aY as ei, bo as Zr, aG as Qr, aF as fn, by as ri, bg as ti, b4 as ai, bl as ni, bq as ii, n as si, a0 as oi, s as ui, aB as ci, H as fi, v as li, r as _i } from "./form-DHAKwnLt.js";
|
|
6
6
|
import { f as W, a as vi } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as hi, E as pi } from "./field-error-headless-
|
|
7
|
+
import { D as hi, E as pi } from "./field-error-headless-E8WjFr_n.js";
|
|
8
8
|
import { Node_Type as di } from "@wix/ricos/schema";
|
|
9
|
-
import { c as re, r as $, e as S, a as J, d as yi, b as bi } from "./isObjectLike-
|
|
9
|
+
import { c as re, r as $, e as S, a as J, d as yi, b as bi } from "./isObjectLike-DHcMRYYH.js";
|
|
10
10
|
import { S as gi } from "./selection-indicator-XQ8MYHUQ.js";
|
|
11
11
|
import { E as qi } from "./error-icon-hZxQ6DEy.js";
|
|
12
12
|
import { C as Ci } from "./checkbox-indicator-module-classes-6173wvuW.js";
|
|
13
13
|
import { s as oe } from "./field-rac.module-DfEb7pBp.js";
|
|
14
|
-
import { u as Ai } from "./use-element-state-class-name-
|
|
14
|
+
import { u as Ai } from "./use-element-state-class-name-CUZuhFvZ.js";
|
|
15
15
|
var ue, dt;
|
|
16
16
|
function mi() {
|
|
17
17
|
if (dt) return ue;
|