@wix/form-elements 1.73.0 → 1.75.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-Bze1s2XD.js → appointment-rac-7xVKSm2N.js} +27 -27
- package/dist/component/{bookings-address-rac-BcrkXf63.js → bookings-address-rac-VXnUSx8U.js} +1 -1
- package/dist/component/{bookings-email-rac-DYq5RxOP.js → bookings-email-rac-B2_ad7Y2.js} +1 -1
- package/dist/component/{bookings-first-name-rac-ZJ_sQ-01.js → bookings-first-name-rac-9BAY5vLx.js} +1 -1
- package/dist/component/{bookings-header-rac-Cv8kl01f.js → bookings-header-rac-B6IgiMOA.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BmnulSZ6.js → bookings-last-name-rac-DoXEDO8K.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-Bdi4xs9y.js → bookings-login-bar-rac-DprQIFyj.js} +2 -2
- package/dist/component/{bookings-phone-rac-C8DjSzUY.js → bookings-phone-rac-VMoXtejZ.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DYu011oy.js → bookings-rich-text-rac-DSzD2jBy.js} +1 -1
- package/dist/component/{checkbox-field-rac-BH3yEE5j.js → checkbox-field-rac-BLihwz3C.js} +327 -320
- package/dist/component/checkbox-group-field-headless-BItyo_iD.js +205 -0
- package/dist/component/checkbox-group-field-rac-Bov3yFC6.js +40 -0
- package/dist/component/{checkbox-group-rac-CgW0DnhX.js → checkbox-group-rac-Fit-qssk.js} +1 -1
- package/dist/component/{checkbox-rac-DOAYMMsi.js → checkbox-rac-CSsY83Nx.js} +1 -1
- package/dist/component/{contacts-address-rac-DXJa4J_k.js → contacts-address-rac-iJuzUQe4.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CVsuRq3B.js → contacts-birthdate-rac-0g2e8cQP.js} +1 -1
- package/dist/component/{contacts-company-rac-b2bwHSNC.js → contacts-company-rac-BC0tK4WQ.js} +1 -1
- package/dist/component/{contacts-email-rac-DMPcpQ1c.js → contacts-email-rac-dkuclkiH.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CL2BsHuJ.js → contacts-first-name-rac-BSUkCuht.js} +1 -1
- package/dist/component/{contacts-last-name-rac-hdBsWaqb.js → contacts-last-name-rac-08bjVdN2.js} +1 -1
- package/dist/component/{contacts-phone-rac-DQF6aV9B.js → contacts-phone-rac-DVb0Z_0M.js} +1 -1
- package/dist/component/{contacts-position-rac-CVX-WCfx.js → contacts-position-rac-AGUDkv7U.js} +1 -1
- package/dist/component/contacts-subscribe-rac-6jAQHibT.js +13 -0
- package/dist/component/{contacts-tax-id-rac-0KTXvF81.js → contacts-tax-id-rac-C7moEz5b.js} +1 -1
- package/dist/component/{date-availability-DBljhBgO.js → date-availability-DagbE0C8.js} +1 -1
- package/dist/component/{date-input-field-rac-CfflD2Ar.js → date-input-field-rac-BWHKsJGy.js} +30 -30
- package/dist/component/{date-input-rac-fQclCKoa.js → date-input-rac-BlZlmf-s.js} +1 -1
- package/dist/component/{date-picker-field-rac-BSmFOaH-.js → date-picker-field-rac-BSNbYirD.js} +36 -36
- package/dist/component/{date-picker-rac-D7I3ramu.js → date-picker-rac-D3IWMst5.js} +1 -1
- package/dist/component/{date-time-input-field-rac-vjZDQ_Fp.js → date-time-input-field-rac-YKTwuIUs.js} +25 -25
- package/dist/component/{date-time-input-rac-CDbS0VZR.js → date-time-input-rac-CZRsKm1P.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BBiPt6_a.js → dext-checkbox-group-rac-BE7ILz-f.js} +2 -2
- package/dist/component/{dext-checkbox-rac-Cqp--0SO.js → dext-checkbox-rac-B6-94A1N.js} +1 -1
- package/dist/component/{dext-date-picker-rac-5Wft0w9m.js → dext-date-picker-rac-Bx2hUFNm.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Bbs7bgtn.js → dext-date-time-input-rac-DPKD6quz.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CSvhtqbc.js → dext-dropdown-rac-WrSfNRa5.js} +1 -1
- package/dist/component/{dext-email-rac-BoLeXqyI.js → dext-email-rac-8PSMKNYG.js} +1 -1
- package/dist/component/{dext-number-input-rac-DzaJYTSz.js → dext-number-input-rac-b9YSzEkN.js} +1 -1
- package/dist/component/{dext-phone-rac-BagPg_CT.js → dext-phone-rac-CkapN3c1.js} +1 -1
- package/dist/component/{dext-radio-group-rac-B5HSQt7a.js → dext-radio-group-rac-CfNMkwUa.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DrtaAf-E.js → dext-rating-input-rac-Cun_t7HQ.js} +1 -1
- package/dist/component/{dext-tags-rac-Cg4jJ4jr.js → dext-tags-rac-DLZ91c3w.js} +2 -2
- package/dist/component/{dext-text-area-rac-C_t-W7lk.js → dext-text-area-rac-N9A7QfYw.js} +1 -1
- package/dist/component/{dext-text-input-rac-ChvV21Jf.js → dext-text-input-rac-XbVzAPHH.js} +1 -1
- package/dist/component/{dext-url-input-rac-DclbSYTr.js → dext-url-input-rac-BiaWZ49r.js} +1 -1
- package/dist/component/{donation-rac-FYQIMm5m.js → donation-rac-BEIBjLHK.js} +46 -47
- package/dist/component/{dropdown-field-headless-CTZ-zGqZ.js → dropdown-field-headless-CQfZ3zPD.js} +3 -3
- package/dist/component/{dropdown-field-rac-C1KVtxwv.js → dropdown-field-rac-ubZN_Abg.js} +7 -7
- package/dist/component/{dropdown-rac-CkkDEDje.js → dropdown-rac-CHYFrEjY.js} +1 -1
- package/dist/component/{ecom-address-rac-BOuugSxX.js → ecom-address-rac-C7qJlrsv.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-IZeMlljb.js → ecom-subscription-checkbox-rac-CONIZsTy.js} +6 -6
- package/dist/component/{email-input-field-rac-CNzmm1j7.js → email-input-field-rac-Dg0p6WZe.js} +63 -63
- package/dist/component/events-repeater-rac-BoxNl7gn.js +254 -0
- package/dist/component/{events-rsvp-rac-BmjboAco.js → events-rsvp-rac-BU5d2n4k.js} +3 -3
- package/dist/component/{field-error-headless-DQZ5XAdn.js → field-error-headless-uQOcm2Ak.js} +1 -1
- package/dist/component/{field-label-headless-DoxfHHaj.js → field-label-headless-Bzh7f2Ji.js} +1 -1
- package/dist/component/field-rac.module-DjmaTYkc.js +23 -0
- package/dist/component/{file-upload-rac-YEQ7uXhm.js → file-upload-rac-BTt-rJE5.js} +74 -74
- package/dist/component/{fixed-payment-rac-DDufIQBT.js → fixed-payment-rac-1NOx3D-U.js} +17 -17
- package/dist/component/{form-C6WwBcGP.js → form-DCmjj8mZ.js} +69 -69
- package/dist/component/form-element-classes-Dn33C01k.js +111 -0
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-DGfjrjQC.js → header-field-rac-lyvjy6h2.js} +3 -3
- package/dist/component/{header-rac-C_JE2cTg.js → header-rac-B4iPEbNj.js} +1 -1
- package/dist/component/{image-choice-rac-LDLPQwrN.js → image-choice-rac-CmEG-waj.js} +29 -30
- package/dist/component/{index-C2srcuHD.js → index-D-CKLZBh.js} +4 -4
- package/dist/component/{index-CIOoaQ8Z.js → index-UZsDOe8e.js} +2 -2
- package/dist/component/{isObjectLike-E5QfEa1u.js → isObjectLike-BSGOU4jF.js} +1 -1
- package/dist/component/{multiline-address-field-rac-Biyj2tIN.js → multiline-address-field-rac-Dz0NEjSO.js} +125 -125
- package/dist/component/{multiline-address-rac-BCqCvG7a.js → multiline-address-rac-D_MAanxb.js} +1 -1
- package/dist/component/{number-input-field-rac-CwUoIbM8.js → number-input-field-rac-CvjeAm-W.js} +13 -13
- package/dist/component/{number-input-rac-CdYdTDem.js → number-input-rac-oKo2Wx_c.js} +1 -1
- package/dist/component/{password-rac-D62npVHY.js → password-rac-CrnkKtfp.js} +21 -21
- package/dist/component/{payment-input-rac-D4u-3vcW.js → payment-input-rac-BoVdGyvV.js} +18 -18
- package/dist/component/{phone-input-field-rac-uHxR3ozd.js → phone-input-field-rac-DksXoAnr.js} +54 -54
- package/dist/component/{phone-rac-Bf99_BGi.js → phone-rac-BR0iX5TL.js} +1 -1
- package/dist/component/product-list-rac-C4rvv5k-.js +270 -0
- package/dist/component/{quiz-radio-group-rac-CPGS0LEb.js → quiz-radio-group-rac-BxKmUUf8.js} +2 -2
- package/dist/component/{radio-group-field-rac-BWpTNAbO.js → radio-group-field-rac-Dj4rkkKF.js} +3 -3
- package/dist/component/{radio-group-field-rac.module-WxU5zxvM.js → radio-group-field-rac.module-CeBLm9QF.js} +3 -3
- package/dist/component/{radio-group-rac-dA4WZ1Vj.js → radio-group-rac-BpnfptSZ.js} +1 -1
- package/dist/component/{rating-input-field-rac-CJnFsBvH.js → rating-input-field-rac-BP0928qI.js} +30 -31
- package/dist/component/{rating-input-rac-DXVYozFV.js → rating-input-rac-DaEgvjIS.js} +1 -1
- package/dist/component/{rich-content-rac.module-DkKwzJS7.js → rich-content-rac.module-zvvH-tWq.js} +1 -1
- package/dist/component/{rich-text-field-rac-8FWCRrpb.js → rich-text-field-rac-CFCRiMl_.js} +3 -3
- package/dist/component/{rich-text-rac-OeM_mPRy.js → rich-text-rac-BRuLnyN4.js} +1 -1
- package/dist/component/{service-dropdown-rac-mvUMpcS_.js → service-dropdown-rac-C82l5y0C.js} +21 -21
- package/dist/component/services-multi-choice-rac-BAHBSgAT.js +83 -0
- package/dist/component/{signature-rac-D44U9Uyp.js → signature-rac-CIkm3SCW.js} +56 -56
- package/dist/component/{submit-button-rac-BqtcgVAn.js → submit-button-rac-Bz-X9Tbo.js} +2 -2
- package/dist/component/{tags-field-rac-CemsTKWz.js → tags-field-rac-Dn8VyPzT.js} +29 -30
- package/dist/component/{tags-rac-fVjCf6qo.js → tags-rac-BJpVdunR.js} +1 -1
- package/dist/component/{text-area-field-rac-BPciZlZb.js → text-area-field-rac-Pp9HnCS5.js} +18 -18
- package/dist/component/{text-area-rac-CRTORdZM.js → text-area-rac-DbwAFdel.js} +1 -1
- package/dist/component/{text-input-field-rac-CvFoWlRN.js → text-input-field-rac-x4ByKmBv.js} +6 -6
- package/dist/component/{text-input-headless-BQ3TWU9G.js → text-input-headless-fbiKci5q.js} +3 -3
- package/dist/component/{text-input-rac-DSFkEmob.js → text-input-rac-jyCKxyCt.js} +1 -1
- package/dist/component/{time-input-rac-CGgs7ncp.js → time-input-rac-C5Cvmxtt.js} +17 -17
- package/dist/component/{url-input-field-rac-CqvgTc-F.js → url-input-field-rac-CGpCEn2A.js} +20 -20
- package/dist/component/{url-input-rac-C45KOwnr.js → url-input-rac-DhFL8fGq.js} +1 -1
- package/dist/component/use-element-state-class-name-Bnw7sY9P.js +29 -0
- package/dist/component/{use-service-options-base-D4Zl-iGW.js → use-service-options-base-CgT1IKB3.js} +1 -1
- package/package.json +3 -3
- package/dist/component/checkbox-group-field-headless-D_GG5LHM.js +0 -210
- package/dist/component/checkbox-group-field-rac-Cj7Erubs.js +0 -41
- package/dist/component/contacts-subscribe-rac-Dl1ot9qw.js +0 -13
- package/dist/component/events-repeater-rac-CMV0Lmwz.js +0 -247
- package/dist/component/field-rac.module-Cac83bU5.js +0 -21
- package/dist/component/form-element-classes-DDKCTFQj.js +0 -65
- package/dist/component/form-element-keys-D0sEdpFo.js +0 -8
- package/dist/component/product-list-rac-iRf6Ra7i.js +0 -263
- package/dist/component/services-multi-choice-rac-DrgUrn_N.js +0 -76
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import o, { useRef as J, useState as
|
|
1
|
+
import o, { useRef as J, useState as Q, useEffect as Y, createContext as Ge, useContext as Ze, useMemo as P, useCallback as ie } from "react";
|
|
2
2
|
import { RicosViewer as lt } from "@wix/ricos/viewer";
|
|
3
3
|
import T from "classnames";
|
|
4
|
-
import { ab as ce, aa as ct, ae as ke, ad as mt, c as ut, as as dt, ar as ft, ai as me, af as Se, ak as Dt, ah as Et, F as St } from "./form-
|
|
4
|
+
import { ab as ce, aa as ct, ae as ke, ad as mt, c as ut, as as dt, ar as ft, ai as me, af as Se, ak as Dt, ah as Et, F as St } from "./form-DCmjj8mZ.js";
|
|
5
5
|
import { C as Be } from "./chevron-down-icon-CcpVm6B-.js";
|
|
6
6
|
import { E as pt } from "./error-icon-hZxQ6DEy.js";
|
|
7
|
-
import { s as fe } from "./field-rac.module-
|
|
8
|
-
import {
|
|
7
|
+
import { s as fe } from "./field-rac.module-DjmaTYkc.js";
|
|
8
|
+
import { y as De, Q as yt, z as Ie, h as Lt, i as Oe, g as _t, A as Nt, p as At } from "./form-element-classes-Dn33C01k.js";
|
|
9
9
|
import { ListBox as bt, Button as Re, ListBoxItem as gt, RadioGroup as It, RadioField as Ot, RadioButton as Tt } from "react-aria-components";
|
|
10
10
|
import { f as w, a as le } from "./find-child-C60k4CxG.js";
|
|
11
|
-
import { D as wt, E as vt } from "./field-error-headless-
|
|
12
|
-
import { L as kt } from "./field-label-headless-
|
|
11
|
+
import { D as wt, E as vt } from "./field-error-headless-uQOcm2Ak.js";
|
|
12
|
+
import { L as kt } from "./field-label-headless-Bzh7f2Ji.js";
|
|
13
13
|
import { F as Rt } from "./fieldset-headless-CD3fds9J.js";
|
|
14
14
|
import { g as ht } from "./get-first-day-of-the-week-DvnsxYhQ.js";
|
|
15
15
|
import "date-fns";
|
|
@@ -23,7 +23,7 @@ var Te = /* @__PURE__ */ (function(e) {
|
|
|
23
23
|
return e.LOADING = "LOADING", e.DONE = "DONE", e.ERROR = "ERROR", e;
|
|
24
24
|
})({});
|
|
25
25
|
const V = 4;
|
|
26
|
-
var
|
|
26
|
+
var j = /* @__PURE__ */ (function(e) {
|
|
27
27
|
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;
|
|
28
28
|
})({}), te = /* @__PURE__ */ (function(e) {
|
|
29
29
|
return e.LOAD = "load", e.CLICK = "click", e;
|
|
@@ -87,7 +87,7 @@ const Wt = (e) => {
|
|
|
87
87
|
if (t || n)
|
|
88
88
|
return {
|
|
89
89
|
...s,
|
|
90
|
-
timezone:
|
|
90
|
+
timezone: Qe(),
|
|
91
91
|
dataStatus: z.DONE
|
|
92
92
|
};
|
|
93
93
|
{
|
|
@@ -114,7 +114,7 @@ const Wt = (e) => {
|
|
|
114
114
|
startDate: s,
|
|
115
115
|
endDate: r
|
|
116
116
|
};
|
|
117
|
-
},
|
|
117
|
+
}, Qe = () => Intl.DateTimeFormat().resolvedOptions().timeZone, xt = (e) => {
|
|
118
118
|
var t, n, a;
|
|
119
119
|
if ((n = (t = e == null ? void 0 : e[0]) == null ? void 0 : t.slot) != null && n.startDate)
|
|
120
120
|
return new Date((a = e[0].slot) == null ? void 0 : a.startDate);
|
|
@@ -158,11 +158,11 @@ function zt(e) {
|
|
|
158
158
|
var f;
|
|
159
159
|
const { initialData: t, onChange: n, value: a } = e, { isEditor: s, isComposer: r } = ce(), u = (f = t == null ? void 0 : t.service) == null ? void 0 : f.id, { actions: i } = ke(), l = J(i);
|
|
160
160
|
l.current = i;
|
|
161
|
-
const c = !!(i != null && i.getAvailabilityDates && (i != null && i.getAvailabilitySlots)), [d, S] =
|
|
161
|
+
const c = !!(i != null && i.getAvailabilityDates && (i != null && i.getAvailabilitySlots)), [d, S] = Q(null), E = qe(t == null ? void 0 : t.service);
|
|
162
162
|
return Y(() => {
|
|
163
163
|
u && !s && !r && c && (async () => {
|
|
164
164
|
var W, N, A, K, B;
|
|
165
|
-
const v =
|
|
165
|
+
const v = Qe(), I = {
|
|
166
166
|
currentSlotBulkSize: V,
|
|
167
167
|
timezone: v,
|
|
168
168
|
dataStatus: z.LOADING
|
|
@@ -181,7 +181,7 @@ function zt(e) {
|
|
|
181
181
|
if (I.availabilityDates = await U(2), (W = I.availabilityDates) != null && W.length || (I.availabilityDates = await U(6)), !((N = I.availabilityDates) != null && N.length)) {
|
|
182
182
|
E == null || E.report({
|
|
183
183
|
action: te.LOAD,
|
|
184
|
-
component:
|
|
184
|
+
component: j.NO_AVAILABILITY_AT_ALL
|
|
185
185
|
}), S({
|
|
186
186
|
dataStatus: z.ERROR,
|
|
187
187
|
error: {
|
|
@@ -197,7 +197,7 @@ function zt(e) {
|
|
|
197
197
|
selectedDate: I.selectedDate
|
|
198
198
|
}))), E == null || E.report({
|
|
199
199
|
action: te.LOAD,
|
|
200
|
-
component: (B = I.availabilityDates) != null && B.length ?
|
|
200
|
+
component: (B = I.availabilityDates) != null && B.length ? j.FORM : j.NO_AVAILABILITY_FOR_DATE
|
|
201
201
|
}), a != null && a.startDate || n(void 0), S({
|
|
202
202
|
...I,
|
|
203
203
|
dataStatus: z.DONE
|
|
@@ -219,12 +219,12 @@ function zt(e) {
|
|
|
219
219
|
c
|
|
220
220
|
]), d;
|
|
221
221
|
}
|
|
222
|
-
const
|
|
222
|
+
const je = /* @__PURE__ */ Ge({
|
|
223
223
|
appointmentState: {},
|
|
224
224
|
setAppointmentState: () => {
|
|
225
225
|
}
|
|
226
226
|
}), Yt = ({ appointmentFieldProps: e, children: t }) => {
|
|
227
|
-
const { isEditor: n, isComposer: a } = ce(), [s, r] =
|
|
227
|
+
const { isEditor: n, isComposer: a } = ce(), [s, r] = Q(() => Bt({
|
|
228
228
|
appointmentFieldProps: e,
|
|
229
229
|
isEditor: n,
|
|
230
230
|
isComposer: a
|
|
@@ -236,7 +236,7 @@ const Qe = /* @__PURE__ */ Ge({
|
|
|
236
236
|
});
|
|
237
237
|
}, [
|
|
238
238
|
u
|
|
239
|
-
]), /* @__PURE__ */ o.createElement(
|
|
239
|
+
]), /* @__PURE__ */ o.createElement(je.Provider, {
|
|
240
240
|
value: {
|
|
241
241
|
appointmentFieldProps: e,
|
|
242
242
|
appointmentState: s,
|
|
@@ -246,7 +246,7 @@ const Qe = /* @__PURE__ */ Ge({
|
|
|
246
246
|
})
|
|
247
247
|
}
|
|
248
248
|
}, t);
|
|
249
|
-
}, he = () => Ze(
|
|
249
|
+
}, he = () => Ze(je), Kt = (e, t) => {
|
|
250
250
|
if (e.startOfWeek.getMonth() === e.endOfWeek.getMonth())
|
|
251
251
|
return new Intl.DateTimeFormat(t, {
|
|
252
252
|
month: "long",
|
|
@@ -329,12 +329,12 @@ const Qe = /* @__PURE__ */ Ge({
|
|
|
329
329
|
timeZone: a
|
|
330
330
|
}, r = new Intl.DateTimeFormat(e, s).format(new Date(n)), u = new Intl.DateTimeFormat(e, s).format(new Date(t));
|
|
331
331
|
return `${r} - ${u}`;
|
|
332
|
-
},
|
|
332
|
+
}, Qt = ({ selectedDate: e, locale: t, timezone: n }) => e ? new Intl.DateTimeFormat(t, {
|
|
333
333
|
weekday: "long",
|
|
334
334
|
month: "short",
|
|
335
335
|
day: "numeric",
|
|
336
336
|
timeZone: n
|
|
337
|
-
}).format(e) : "",
|
|
337
|
+
}).format(e) : "", jt = (e, t) => {
|
|
338
338
|
let n;
|
|
339
339
|
return t.forEach((a, s) => {
|
|
340
340
|
var r, u;
|
|
@@ -351,7 +351,7 @@ const Xt = "SLOT_UNAVAILABLE", Ke = [], en = (e) => {
|
|
|
351
351
|
var t;
|
|
352
352
|
return ((t = e == null ? void 0 : e.params) == null ? void 0 : t.reason) === Xt;
|
|
353
353
|
}, tn = ({ error: e, selectedSlot: t }) => {
|
|
354
|
-
const { isExperimentEnabled: n } = mt(), a = n(ut.BIF_SLOT_HOLD), [s, r] =
|
|
354
|
+
const { isExperimentEnabled: n } = mt(), a = n(ut.BIF_SLOT_HOLD), [s, r] = Q(Ke), u = a && en(e), i = t == null ? void 0 : t.startDate, l = J(!1);
|
|
355
355
|
return Y(() => {
|
|
356
356
|
if (!u) {
|
|
357
357
|
l.current = !1;
|
|
@@ -388,7 +388,7 @@ const Xt = "SLOT_UNAVAILABLE", Ke = [], en = (e) => {
|
|
|
388
388
|
return !!((a = n.slot) != null && a.startDate) && ne(new Date(n.slot.startDate), e);
|
|
389
389
|
}), rn = () => {
|
|
390
390
|
var We;
|
|
391
|
-
const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } = he(), { language: a, isEditor: s, isComposer: r, isMobile: u } = ce(), { t: i } = dt(), { actions: l } = ke(), c = qe(), [d, S] =
|
|
391
|
+
const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } = he(), { language: a, isEditor: s, isComposer: r, isMobile: u } = ce(), { t: i } = dt(), { actions: l } = ke(), c = qe(), [d, S] = Q(!1), [E, f] = Q(!1), [O, v] = Q(), [I, W] = Q();
|
|
392
392
|
Zt({
|
|
393
393
|
setIsReloadingSlots: S
|
|
394
394
|
});
|
|
@@ -415,7 +415,7 @@ const Xt = "SLOT_UNAVAILABLE", Ke = [], en = (e) => {
|
|
|
415
415
|
});
|
|
416
416
|
}), Y(() => {
|
|
417
417
|
if (_ != null && _.length && R) {
|
|
418
|
-
const D =
|
|
418
|
+
const D = jt(Ee(A ?? void 0), _);
|
|
419
419
|
D && D + 1 > R && n({
|
|
420
420
|
currentSlotBulkSize: D + 1
|
|
421
421
|
});
|
|
@@ -514,7 +514,7 @@ const Xt = "SLOT_UNAVAILABLE", Ke = [], en = (e) => {
|
|
|
514
514
|
availabilitySlots: void 0
|
|
515
515
|
}), c == null || c.report({
|
|
516
516
|
action: te.CLICK,
|
|
517
|
-
component:
|
|
517
|
+
component: j.DATE
|
|
518
518
|
});
|
|
519
519
|
try {
|
|
520
520
|
const g = await ((b = l == null ? void 0 : l.getAvailabilitySlots) == null ? void 0 : b.call(l, {
|
|
@@ -554,7 +554,7 @@ const Xt = "SLOT_UNAVAILABLE", Ke = [], en = (e) => {
|
|
|
554
554
|
const h = ++de.current;
|
|
555
555
|
f(!0), c == null || c.report({
|
|
556
556
|
action: te.CLICK,
|
|
557
|
-
component:
|
|
557
|
+
component: j.PAGINATION
|
|
558
558
|
});
|
|
559
559
|
try {
|
|
560
560
|
const be = await ((re = l == null ? void 0 : l.getAvailabilityDates) == null ? void 0 : re.call(l, {
|
|
@@ -591,7 +591,7 @@ const Xt = "SLOT_UNAVAILABLE", Ke = [], en = (e) => {
|
|
|
591
591
|
const { startDate: g, endDate: h } = b;
|
|
592
592
|
c == null || c.report({
|
|
593
593
|
action: te.CLICK,
|
|
594
|
-
component:
|
|
594
|
+
component: j.SLOT,
|
|
595
595
|
startTime: new Date(g).valueOf(),
|
|
596
596
|
endTime: new Date(h).valueOf()
|
|
597
597
|
}), N == null || N({
|
|
@@ -613,7 +613,7 @@ const Xt = "SLOT_UNAVAILABLE", Ke = [], en = (e) => {
|
|
|
613
613
|
const D = R || V;
|
|
614
614
|
c == null || c.report({
|
|
615
615
|
action: te.CLICK,
|
|
616
|
-
component:
|
|
616
|
+
component: j.SHOW_MORE
|
|
617
617
|
}), W(D), n({
|
|
618
618
|
currentSlotBulkSize: D + V
|
|
619
619
|
});
|
|
@@ -652,7 +652,7 @@ const Xt = "SLOT_UNAVAILABLE", Ke = [], en = (e) => {
|
|
|
652
652
|
startOfWeek: M,
|
|
653
653
|
endOfWeek: ee(M, q - 1)
|
|
654
654
|
}, a),
|
|
655
|
-
selectedDateLabel:
|
|
655
|
+
selectedDateLabel: Qt({
|
|
656
656
|
selectedDate: L,
|
|
657
657
|
locale: a,
|
|
658
658
|
timezone: p
|
package/dist/component/{bookings-login-bar-rac-Bdi4xs9y.js → bookings-login-bar-rac-DprQIFyj.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import o from "react";
|
|
2
2
|
import E from "classnames";
|
|
3
|
-
import { ai as d, as as B, ab as f, ae as p } from "./form-
|
|
3
|
+
import { ai as d, as as B, ab as f, ae as p } from "./form-DCmjj8mZ.js";
|
|
4
4
|
import { Button as L } from "react-aria-components";
|
|
5
5
|
import { a as i, f as g } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import {
|
|
6
|
+
import { w as _ } from "./form-element-classes-Dn33C01k.js";
|
|
7
7
|
const a = ({ children: n }) => {
|
|
8
8
|
const { id: r, FieldLayout: t } = d();
|
|
9
9
|
return /* @__PURE__ */ o.createElement(t, {
|