@wix/form-elements 1.79.0 → 1.81.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-lokvpd_p.js → appointment-rac-DmwbqZse.js} +82 -82
- package/dist/component/{bookings-address-rac-CU5NjBsy.js → bookings-address-rac-RCzVU87c.js} +1 -1
- package/dist/component/{bookings-email-rac-h3VGXrSQ.js → bookings-email-rac-Df_Wte1_.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BtsTk_1b.js → bookings-first-name-rac-BmdRGYxF.js} +1 -1
- package/dist/component/{bookings-header-rac-BApE1hIE.js → bookings-header-rac-DewQWtkZ.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BnO5iij1.js → bookings-last-name-rac-DmmNBuqy.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BT1npKru.js → bookings-login-bar-rac-QskvFo0C.js} +5 -5
- package/dist/component/{bookings-phone-rac-DWf0haGa.js → bookings-phone-rac-7wn8IXna.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-C79XHlRL.js → bookings-rich-text-rac-B5nk0BlD.js} +1 -1
- package/dist/component/{checkbox-field-rac-DNvhTChN.js → checkbox-field-rac-BnVNfYWL.js} +5 -5
- package/dist/component/{checkbox-group-field-headless-6hzWQkif.js → checkbox-group-field-headless-Bx5Y-RMP.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-DbaB5Fx6.js → checkbox-group-field-rac-CZW28rj5.js} +7 -7
- package/dist/component/{checkbox-group-rac-BsKKhTeh.js → checkbox-group-rac-B20t8dTB.js} +1 -1
- package/dist/component/{checkbox-rac-Dx7LXOdw.js → checkbox-rac-ifC6qSE8.js} +1 -1
- package/dist/component/{contacts-address-rac-DJZ8_DKm.js → contacts-address-rac-XJRKvPlp.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CWvsa7Kq.js → contacts-birthdate-rac-CKYESrPO.js} +1 -1
- package/dist/component/{contacts-company-rac-DgF8QpOb.js → contacts-company-rac-BXwEeb0p.js} +1 -1
- package/dist/component/{contacts-email-rac-CVqiij34.js → contacts-email-rac-D8Yspo_m.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BwsRVRHq.js → contacts-first-name-rac-mvCGP1LJ.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Blgm2DBB.js → contacts-last-name-rac-Clg9RXal.js} +1 -1
- package/dist/component/{contacts-phone-rac-Dhtv3PGY.js → contacts-phone-rac-qEwjhByI.js} +1 -1
- package/dist/component/{contacts-position-rac-DYebFQea.js → contacts-position-rac-Bh8fvf2M.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-B_cvGaYj.js → contacts-subscribe-rac-DEQ2XkZo.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-B_F4I7rf.js → contacts-tax-id-rac-0DUZ4tJz.js} +1 -1
- package/dist/component/{date-availability-Cc4kd1Yk.js → date-availability-2ek2RtXx.js} +1 -1
- package/dist/component/{date-input-field-rac-C__QbeDM.js → date-input-field-rac-Bp4SQB-t.js} +29 -29
- package/dist/component/{date-input-rac-BhzbmHYK.js → date-input-rac-CYsJcMe5.js} +1 -1
- package/dist/component/{date-picker-field-rac-CASH891N.js → date-picker-field-rac-BGQvnSYI.js} +9 -9
- package/dist/component/{date-picker-rac-CMYAA925.js → date-picker-rac-BVncggYR.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DPuxZ68o.js → date-time-input-field-rac-B1mggelc.js} +33 -33
- package/dist/component/{date-time-input-rac-BTJhrUXG.js → date-time-input-rac-DzdCno0L.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-5zlp2x1M.js → dext-checkbox-group-rac-CNCpeolD.js} +2 -2
- package/dist/component/{dext-checkbox-rac-Cn5u395b.js → dext-checkbox-rac-BYDQ58Mo.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CFfQwbC_.js → dext-date-picker-rac-aYYk8Nrl.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-zRYi-0W6.js → dext-date-time-input-rac-v2v974p5.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CtlNh5vF.js → dext-dropdown-rac-C846KZCe.js} +1 -1
- package/dist/component/{dext-email-rac-BQF4M5Mf.js → dext-email-rac-izjbfME9.js} +1 -1
- package/dist/component/{dext-number-input-rac-GR4vTWMp.js → dext-number-input-rac-CnOFsD7l.js} +1 -1
- package/dist/component/{dext-phone-rac-COCdZPr9.js → dext-phone-rac-D8GMXD88.js} +1 -1
- package/dist/component/{dext-radio-group-rac-ZpHitbT0.js → dext-radio-group-rac-BtiyGCRh.js} +2 -2
- package/dist/component/{dext-rating-input-rac-Er2HC9eD.js → dext-rating-input-rac-BHJ1kitb.js} +1 -1
- package/dist/component/{dext-tags-rac-EciVMPQ0.js → dext-tags-rac-CvNjwS5R.js} +2 -2
- package/dist/component/{dext-text-area-rac-D6JxrykV.js → dext-text-area-rac-X5L0Q3sC.js} +1 -1
- package/dist/component/{dext-text-input-rac-CD3xkLpw.js → dext-text-input-rac-swkyAJqC.js} +1 -1
- package/dist/component/{dext-url-input-rac-BNqCYy-H.js → dext-url-input-rac-BYlXOAkz.js} +1 -1
- package/dist/component/donation-rac-CDWLBZZM.js +318 -0
- package/dist/component/{dropdown-field-headless-NMc4cFx2.js → dropdown-field-headless-JJzbZvps.js} +3 -3
- package/dist/component/{dropdown-field-rac-hSbwxz3M.js → dropdown-field-rac-BodpIQ9Q.js} +5 -5
- package/dist/component/{dropdown-rac-DY2QSx-Q.js → dropdown-rac-Bfbxxx9k.js} +1 -1
- package/dist/component/{ecom-address-rac-CGlQmW6l.js → ecom-address-rac-BCnsL5tr.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-K3Dx-Boa.js → ecom-subscription-checkbox-rac-CNSdI_ty.js} +3 -3
- package/dist/component/{email-input-field-rac-DCKR6Yco.js → email-input-field-rac-Btaa4O5T.js} +48 -48
- package/dist/component/{events-repeater-rac-DS2hIZ81.js → events-repeater-rac-xBwqJddt.js} +10 -10
- package/dist/component/{events-rsvp-rac-iSG0hWt3.js → events-rsvp-rac-D90PwkHd.js} +3 -3
- package/dist/component/{field-error-headless-Lb5aaoR3.js → field-error-headless-BErhh9GG.js} +1 -1
- package/dist/component/{field-label-headless-C1VDQVhB.js → field-label-headless-BGyK-5xW.js} +1 -1
- package/dist/component/{file-upload-rac-BEUXTVXa.js → file-upload-rac-MxH3CVml.js} +21 -21
- package/dist/component/{fixed-payment-rac-BwrQJQ6w.js → fixed-payment-rac-DpBA9irF.js} +13 -13
- package/dist/component/{form-element-classes-BuM-vthE.js → form-element-classes-jC8D0LnK.js} +77 -63
- package/dist/component/{form-1k13yOes.js → form-f0tqdMye.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BeFf5qfw.js → header-field-rac-BXxFqu9u.js} +3 -3
- package/dist/component/{header-rac-Cqvmjc8G.js → header-rac-BN70esac.js} +1 -1
- package/dist/component/image-choice-rac-DLBGIBXL.js +158 -0
- package/dist/component/{index-DhL-iYwY.js → index-BvB-uE1H.js} +2 -2
- package/dist/component/{index-B0SdXZJm.js → index-DXLEHYlA.js} +4 -4
- package/dist/component/{isObjectLike-DOWF1bjK.js → isObjectLike-BYOX5XY4.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CBhxL2MB.js → multiline-address-field-rac-fcQYnPlO.js} +52 -52
- package/dist/component/{multiline-address-rac-BgZnu3UR.js → multiline-address-rac-D82Gbj3n.js} +1 -1
- package/dist/component/{number-input-field-rac-Cq0KLrSv.js → number-input-field-rac-B0-4Rz3w.js} +16 -16
- package/dist/component/{number-input-rac-ovbP_aP5.js → number-input-rac-Bnsvb-SO.js} +1 -1
- package/dist/component/{password-rac-DLKw8FXz.js → password-rac-BdBjFa8y.js} +15 -15
- package/dist/component/{payment-input-rac-EHufj8Y0.js → payment-input-rac-DkAGOvaF.js} +18 -18
- package/dist/component/{phone-input-field-rac-D1KzskYy.js → phone-input-field-rac-Ce_wuE46.js} +54 -54
- package/dist/component/{phone-rac-D71sfMS7.js → phone-rac-DslINtcH.js} +1 -1
- package/dist/component/{product-list-rac-BGrTM8kv.js → product-list-rac-C4P_SOyG.js} +25 -25
- package/dist/component/{quiz-radio-group-rac-BU2GBlqo.js → quiz-radio-group-rac-noy4fmD8.js} +2 -2
- package/dist/component/{radio-button-module-classes-BqNsWvgU.js → radio-button-module-classes-DXQ1UlmI.js} +3 -3
- package/dist/component/{radio-group-field-rac-BSY-fyxl.js → radio-group-field-rac-CYBDq7R1.js} +5 -5
- package/dist/component/{radio-group-rac-geRsORyh.js → radio-group-rac-CGHQFyJY.js} +1 -1
- package/dist/component/{rating-input-field-rac-D6gRUiSX.js → rating-input-field-rac-elaferlI.js} +18 -18
- package/dist/component/{rating-input-rac-BMtu7e5q.js → rating-input-rac-fnOtTKN8.js} +1 -1
- package/dist/component/{rich-content-rac.module-CFMzPWHV.js → rich-content-rac.module-DbwuwQeo.js} +1 -1
- package/dist/component/{rich-text-field-rac-D0Klsdj7.js → rich-text-field-rac-DtcQC8zU.js} +3 -3
- package/dist/component/{rich-text-rac-o7idQY51.js → rich-text-rac-CuT97sby.js} +1 -1
- package/dist/component/{service-dropdown-rac-BXq358Pw.js → service-dropdown-rac-rk2tzikX.js} +24 -24
- package/dist/component/{services-multi-choice-rac-DVRk7Ayt.js → services-multi-choice-rac-BMQyF_xs.js} +7 -7
- package/dist/component/{signature-rac-CblU7c_6.js → signature-rac-DeV9C6ta.js} +41 -41
- package/dist/component/{submit-button-rac-DYz_oLbv.js → submit-button-rac-BpN-FYtM.js} +2 -2
- package/dist/component/tags-field-rac-ByC9DnyH.js +217 -0
- package/dist/component/{tags-rac-yRjGACmm.js → tags-rac-Dabz4jHd.js} +1 -1
- package/dist/component/{text-area-field-rac-C4ytlqwT.js → text-area-field-rac-CtSa8XW_.js} +14 -14
- package/dist/component/{text-area-rac-DkCdp41z.js → text-area-rac-CDLF-_56.js} +1 -1
- package/dist/component/{text-input-field-rac-TSY90sCu.js → text-input-field-rac-C6fQYKhI.js} +5 -5
- package/dist/component/{text-input-headless-D3b0XErK.js → text-input-headless-BwVLU9cp.js} +3 -3
- package/dist/component/{text-input-rac-CKiScYKV.js → text-input-rac-CoGTzfo1.js} +1 -1
- package/dist/component/{time-input-rac-Cjs21F9f.js → time-input-rac-DQDupKTA.js} +17 -17
- package/dist/component/{url-input-field-rac-Bf5NoN4o.js → url-input-field-rac-4T8gcMHH.js} +8 -8
- package/dist/component/{url-input-rac-DqgvJboS.js → url-input-rac-_d6XRdKX.js} +1 -1
- package/dist/component/{use-element-state-class-name-DkaI8J4Y.js → use-element-state-class-name-BqmaTba3.js} +1 -1
- package/dist/component/{use-service-options-base-cL2N21mJ.js → use-service-options-base-CRgxxz7b.js} +1 -1
- package/package.json +2 -2
- package/dist/component/donation-rac-Du_qsPD6.js +0 -307
- package/dist/component/image-choice-rac-DU1Tf2-T.js +0 -146
- package/dist/component/tags-field-rac-D068ijAD.js +0 -206
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import o, { useRef as J, useState as j, useEffect as H, createContext as $e, useContext as Ge, useMemo as P, useCallback as ie } from "react";
|
|
2
2
|
import { RicosViewer as it } from "@wix/ricos/viewer";
|
|
3
3
|
import M from "classnames";
|
|
4
|
-
import { ab as ce, aa as lt, ae as ve, ad as ct, c as mt, as as ut, ar as dt, ai as me, af as Se, ak as ft, ah as Dt, F as Et } from "./form-
|
|
4
|
+
import { ab as ce, aa as lt, ae as ve, ad as ct, c as mt, as as ut, ar as dt, ai as me, af as Se, ak as ft, ah as Dt, F as Et } from "./form-f0tqdMye.js";
|
|
5
5
|
import { C as Ce } from "./chevron-down-icon-CcpVm6B-.js";
|
|
6
6
|
import { E as St } from "./error-icon-hZxQ6DEy.js";
|
|
7
7
|
import { H as fe } from "./custom-focus-class-_483Pkwp.js";
|
|
8
8
|
import { s as De } from "./field-rac.module-ColNPUt0.js";
|
|
9
|
-
import {
|
|
10
|
-
import { u as
|
|
9
|
+
import { y as pt, O as _t, a as yt, w as We, h as Lt, V as Nt, o as At, i as bt, a0 as Ot } from "./form-element-classes-jC8D0LnK.js";
|
|
10
|
+
import { u as It } from "./use-element-state-class-name-BqmaTba3.js";
|
|
11
11
|
import { ListBox as gt, Button as ke, ListBoxItem as Tt, RadioGroup as vt, RadioField as kt, RadioButton as Rt } from "react-aria-components";
|
|
12
12
|
import { f as T, a as le } from "./find-child-C60k4CxG.js";
|
|
13
|
-
import { D as wt, E as Mt } from "./field-error-headless-
|
|
14
|
-
import { L as Ft } from "./field-label-headless-
|
|
13
|
+
import { D as wt, E as Mt } from "./field-error-headless-BErhh9GG.js";
|
|
14
|
+
import { L as Ft } from "./field-label-headless-BGyK-5xW.js";
|
|
15
15
|
import { F as ht } from "./fieldset-headless-CD3fds9J.js";
|
|
16
16
|
import { g as Ct } from "./get-first-day-of-the-week-DvnsxYhQ.js";
|
|
17
17
|
import "date-fns";
|
|
@@ -19,7 +19,7 @@ import { V as Ze } from "./headless-styles-CmcyA_pi.js";
|
|
|
19
19
|
function Wt(e) {
|
|
20
20
|
return { evid: 40, src: 16, endpoint: "", params: e };
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var Ie = /* @__PURE__ */ (function(e) {
|
|
23
23
|
return e.BOOKING_NOT_INSTALL = "BOOKING_NOT_INSTALL", e.NO_AVAILABILITY_DATES_FOUND = "NO_AVAILABILITY_DATES_FOUND", e.GENERAL = "GENERAL", e;
|
|
24
24
|
})({}), z = /* @__PURE__ */ (function(e) {
|
|
25
25
|
return e.LOADING = "LOADING", e.DONE = "DONE", e.ERROR = "ERROR", e;
|
|
@@ -81,7 +81,7 @@ var Pe;
|
|
|
81
81
|
const xt = (e) => {
|
|
82
82
|
const { service: n } = e || {};
|
|
83
83
|
return (n == null ? void 0 : n.id) ? null : {
|
|
84
|
-
type:
|
|
84
|
+
type: Ie.GENERAL,
|
|
85
85
|
message: "Service ID is missing"
|
|
86
86
|
};
|
|
87
87
|
}, Pt = ({ appointmentFieldProps: e, isEditor: n, isComposer: t }) => {
|
|
@@ -164,7 +164,7 @@ function Kt(e) {
|
|
|
164
164
|
return H(() => {
|
|
165
165
|
u && !s && !r && c && (async () => {
|
|
166
166
|
var W, N, A, Y, B;
|
|
167
|
-
const v = qe(),
|
|
167
|
+
const v = qe(), I = {
|
|
168
168
|
currentSlotBulkSize: V,
|
|
169
169
|
timezone: v,
|
|
170
170
|
dataStatus: z.LOADING
|
|
@@ -180,35 +180,35 @@ function Kt(e) {
|
|
|
180
180
|
timeZone: v
|
|
181
181
|
});
|
|
182
182
|
};
|
|
183
|
-
if (
|
|
183
|
+
if (I.availabilityDates = await U(2), (W = I.availabilityDates) != null && W.length || (I.availabilityDates = await U(6)), !((N = I.availabilityDates) != null && N.length)) {
|
|
184
184
|
E == null || E.report({
|
|
185
185
|
action: te.LOAD,
|
|
186
186
|
component: Q.NO_AVAILABILITY_AT_ALL
|
|
187
187
|
}), S({
|
|
188
188
|
dataStatus: z.ERROR,
|
|
189
189
|
error: {
|
|
190
|
-
type:
|
|
190
|
+
type: Ie.NO_AVAILABILITY_DATES_FOUND,
|
|
191
191
|
message: "No availability dates found"
|
|
192
192
|
}
|
|
193
193
|
});
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
|
-
|
|
196
|
+
I.selectedDate = Ht(I.availabilityDates), I.selectedDate && (I.availabilitySlots = await ((Y = (A = l.current) == null ? void 0 : A.getAvailabilitySlots) == null ? void 0 : Y.call(A, {
|
|
197
197
|
serviceId: u,
|
|
198
198
|
timeZone: v,
|
|
199
|
-
selectedDate:
|
|
199
|
+
selectedDate: I.selectedDate
|
|
200
200
|
}))), E == null || E.report({
|
|
201
201
|
action: te.LOAD,
|
|
202
|
-
component: (B =
|
|
202
|
+
component: (B = I.availabilityDates) != null && B.length ? Q.FORM : Q.NO_AVAILABILITY_FOR_DATE
|
|
203
203
|
}), a != null && a.startDate || t(void 0), S({
|
|
204
|
-
...
|
|
204
|
+
...I,
|
|
205
205
|
dataStatus: z.DONE
|
|
206
206
|
});
|
|
207
207
|
} catch (U) {
|
|
208
208
|
console.error(U), S({
|
|
209
209
|
dataStatus: z.ERROR,
|
|
210
210
|
error: {
|
|
211
|
-
type:
|
|
211
|
+
type: Ie.GENERAL,
|
|
212
212
|
message: "An error occurred in initialAppointmentState"
|
|
213
213
|
}
|
|
214
214
|
});
|
|
@@ -390,14 +390,14 @@ const nn = "SLOT_UNAVAILABLE", He = [], an = (e) => {
|
|
|
390
390
|
return !!((a = t.slot) != null && a.startDate) && ne(new Date(t.slot.startDate), e);
|
|
391
391
|
}), mn = () => {
|
|
392
392
|
var he;
|
|
393
|
-
const { appointmentFieldProps: e, appointmentState: n, setAppointmentState: t } = Re(), { language: a, isEditor: s, isComposer: r, isMobile: u } = ce(), { t: i } = ut(), { actions: l } = ve(), c = Ve(), [d, S] = j(!1), [E, f] = j(!1), [g, v] = j(), [
|
|
393
|
+
const { appointmentFieldProps: e, appointmentState: n, setAppointmentState: t } = Re(), { language: a, isEditor: s, isComposer: r, isMobile: u } = ce(), { t: i } = ut(), { actions: l } = ve(), c = Ve(), [d, S] = j(!1), [E, f] = j(!1), [g, v] = j(), [I, W] = j();
|
|
394
394
|
jt({
|
|
395
395
|
setIsReloadingSlots: S
|
|
396
396
|
});
|
|
397
|
-
const { onChange: N, value: A, target: Y, initialData: B, formatDescription: U, locationType: oe, error: se } = e, { availabilityDates: $, availabilitySlots: k, timezone: _ = "", selectedDate:
|
|
397
|
+
const { onChange: N, value: A, target: Y, initialData: B, formatDescription: U, locationType: oe, error: se } = e, { availabilityDates: $, availabilitySlots: k, timezone: _ = "", selectedDate: y, currentSlotBulkSize: R, dataStatus: G, error: ue } = n, K = (he = B == null ? void 0 : B.service) == null ? void 0 : he.id, Z = G === z.LOADING, X = d || E, pe = !!ue, Me = on({
|
|
398
398
|
error: se,
|
|
399
399
|
selectedSlot: A
|
|
400
|
-
}),
|
|
400
|
+
}), L = P(() => Qt(k, Me), [
|
|
401
401
|
k,
|
|
402
402
|
Me
|
|
403
403
|
]);
|
|
@@ -410,40 +410,40 @@ const nn = "SLOT_UNAVAILABLE", He = [], an = (e) => {
|
|
|
410
410
|
]), dt((D) => {
|
|
411
411
|
const b = D == null ? void 0 : D[Y];
|
|
412
412
|
k != null && k.length && t({
|
|
413
|
-
availabilitySlots: k.filter((
|
|
413
|
+
availabilitySlots: k.filter((O) => {
|
|
414
414
|
var w;
|
|
415
|
-
return ((w =
|
|
415
|
+
return ((w = O == null ? void 0 : O.slot) == null ? void 0 : w.startDate) !== (b == null ? void 0 : b.startDate);
|
|
416
416
|
})
|
|
417
417
|
});
|
|
418
418
|
}), H(() => {
|
|
419
|
-
if (
|
|
420
|
-
const D = en(Ee(A ?? void 0),
|
|
419
|
+
if (L != null && L.length && R) {
|
|
420
|
+
const D = en(Ee(A ?? void 0), L);
|
|
421
421
|
D && D + 1 > R && t({
|
|
422
422
|
currentSlotBulkSize: D + 1
|
|
423
423
|
});
|
|
424
|
-
} else !(
|
|
424
|
+
} else !(L != null && L.length) && A && (N == null || N(void 0));
|
|
425
425
|
}, [
|
|
426
426
|
A,
|
|
427
|
-
|
|
427
|
+
L,
|
|
428
428
|
$
|
|
429
429
|
]);
|
|
430
430
|
const _e = P(() => Ct(a), [
|
|
431
431
|
a
|
|
432
|
-
]), Fe = J(
|
|
432
|
+
]), Fe = J(y);
|
|
433
433
|
H(() => {
|
|
434
434
|
const D = Fe.current;
|
|
435
|
-
Fe.current =
|
|
435
|
+
Fe.current = y, !!y && (!D || !ne(D, y)) && v(void 0);
|
|
436
436
|
}, [
|
|
437
|
-
|
|
437
|
+
y
|
|
438
438
|
]);
|
|
439
|
-
const h = P(() => g ?? Ye(
|
|
439
|
+
const h = P(() => g ?? Ye(y ?? /* @__PURE__ */ new Date(), _e), [
|
|
440
440
|
g,
|
|
441
|
-
|
|
441
|
+
y,
|
|
442
442
|
_e
|
|
443
443
|
]), Xe = P(() => {
|
|
444
444
|
const D = Te(/* @__PURE__ */ new Date()), b = new Intl.DateTimeFormat(a, {
|
|
445
445
|
weekday: u ? "narrow" : "short"
|
|
446
|
-
}),
|
|
446
|
+
}), O = new Intl.DateTimeFormat(a, {
|
|
447
447
|
day: "numeric"
|
|
448
448
|
}), w = new Intl.DateTimeFormat(a, {
|
|
449
449
|
weekday: "long",
|
|
@@ -453,15 +453,15 @@ const nn = "SLOT_UNAVAILABLE", He = [], an = (e) => {
|
|
|
453
453
|
return Array.from({
|
|
454
454
|
length: q
|
|
455
455
|
}, (re, be) => {
|
|
456
|
-
const x = ee(h, be),
|
|
456
|
+
const x = ee(h, be), Oe = !!y && ne(x, y), rt = Te(x) < D;
|
|
457
457
|
return {
|
|
458
458
|
key: rn(x),
|
|
459
459
|
date: x,
|
|
460
|
-
isSelected:
|
|
461
|
-
isAvailable: !Z && !X && !
|
|
462
|
-
isDisabled: rt || X && !
|
|
460
|
+
isSelected: Oe,
|
|
461
|
+
isAvailable: !Z && !X && !Oe && cn(x, $),
|
|
462
|
+
isDisabled: rt || X && !Oe,
|
|
463
463
|
isToday: ne(x, D),
|
|
464
|
-
dayOfMonthLabel:
|
|
464
|
+
dayOfMonthLabel: O.format(x),
|
|
465
465
|
weekdayLabel: b.format(x),
|
|
466
466
|
label: w.format(x),
|
|
467
467
|
availabilityLabel: i("form.appointment.accessibility.calendar.has-availability.aria-label")
|
|
@@ -469,47 +469,47 @@ const nn = "SLOT_UNAVAILABLE", He = [], an = (e) => {
|
|
|
469
469
|
});
|
|
470
470
|
}, [
|
|
471
471
|
h,
|
|
472
|
-
|
|
472
|
+
y,
|
|
473
473
|
$,
|
|
474
474
|
Z,
|
|
475
475
|
X,
|
|
476
476
|
a,
|
|
477
477
|
u,
|
|
478
478
|
i
|
|
479
|
-
]),
|
|
480
|
-
const { startDate: b, endDate:
|
|
481
|
-
if (!b || !
|
|
479
|
+
]), ye = Ee(A ?? void 0) || void 0, Le = P(() => Z || d ? [] : (L ?? []).slice(0, R).flatMap((D) => {
|
|
480
|
+
const { startDate: b, endDate: O } = D.slot ?? {};
|
|
481
|
+
if (!b || !O)
|
|
482
482
|
return [];
|
|
483
483
|
const w = Ee({
|
|
484
484
|
startDate: b,
|
|
485
|
-
endDate:
|
|
485
|
+
endDate: O
|
|
486
486
|
});
|
|
487
487
|
return [
|
|
488
488
|
{
|
|
489
489
|
key: w,
|
|
490
490
|
startDate: b,
|
|
491
|
-
endDate:
|
|
491
|
+
endDate: O,
|
|
492
492
|
timeRange: Jt({
|
|
493
493
|
startDate: b,
|
|
494
|
-
endDate:
|
|
494
|
+
endDate: O,
|
|
495
495
|
locale: a,
|
|
496
496
|
timezone: _
|
|
497
497
|
}),
|
|
498
|
-
isSelected: w ===
|
|
498
|
+
isSelected: w === ye
|
|
499
499
|
}
|
|
500
500
|
];
|
|
501
501
|
}), [
|
|
502
|
-
|
|
502
|
+
L,
|
|
503
503
|
R,
|
|
504
504
|
Z,
|
|
505
505
|
d,
|
|
506
506
|
a,
|
|
507
507
|
_,
|
|
508
|
-
|
|
509
|
-
]), Ne = !d && !!(
|
|
508
|
+
ye
|
|
509
|
+
]), Ne = !d && !!(L != null && L.length) && (R || V) < L.length, Ae = h > Ye(/* @__PURE__ */ new Date(), _e), et = ie(
|
|
510
510
|
async (D) => {
|
|
511
511
|
var b;
|
|
512
|
-
if (!(X ||
|
|
512
|
+
if (!(X || y && ne(D, y))) {
|
|
513
513
|
S(!0), N == null || N(void 0), t({
|
|
514
514
|
currentSlotBulkSize: V,
|
|
515
515
|
selectedDate: D,
|
|
@@ -519,7 +519,7 @@ const nn = "SLOT_UNAVAILABLE", He = [], an = (e) => {
|
|
|
519
519
|
component: Q.DATE
|
|
520
520
|
});
|
|
521
521
|
try {
|
|
522
|
-
const
|
|
522
|
+
const O = await ((b = l == null ? void 0 : l.getAvailabilitySlots) == null ? void 0 : b.call(l, {
|
|
523
523
|
serviceId: K,
|
|
524
524
|
timeZone: _,
|
|
525
525
|
selectedDate: D
|
|
@@ -527,7 +527,7 @@ const nn = "SLOT_UNAVAILABLE", He = [], an = (e) => {
|
|
|
527
527
|
t({
|
|
528
528
|
currentSlotBulkSize: V,
|
|
529
529
|
selectedDate: D,
|
|
530
|
-
availabilitySlots:
|
|
530
|
+
availabilitySlots: O
|
|
531
531
|
});
|
|
532
532
|
} catch {
|
|
533
533
|
} finally {
|
|
@@ -538,7 +538,7 @@ const nn = "SLOT_UNAVAILABLE", He = [], an = (e) => {
|
|
|
538
538
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
539
539
|
[
|
|
540
540
|
X,
|
|
541
|
-
|
|
541
|
+
y,
|
|
542
542
|
K,
|
|
543
543
|
_,
|
|
544
544
|
l,
|
|
@@ -550,8 +550,8 @@ const nn = "SLOT_UNAVAILABLE", He = [], an = (e) => {
|
|
|
550
550
|
var re;
|
|
551
551
|
if (D < 0 && !Ae)
|
|
552
552
|
return;
|
|
553
|
-
const b = h,
|
|
554
|
-
if (v(
|
|
553
|
+
const b = h, O = ee(h, D * q);
|
|
554
|
+
if (v(O), s || r)
|
|
555
555
|
return;
|
|
556
556
|
const w = ++de.current;
|
|
557
557
|
f(!0), c == null || c.report({
|
|
@@ -562,8 +562,8 @@ const nn = "SLOT_UNAVAILABLE", He = [], an = (e) => {
|
|
|
562
562
|
const be = await ((re = l == null ? void 0 : l.getAvailabilityDates) == null ? void 0 : re.call(l, {
|
|
563
563
|
serviceId: K,
|
|
564
564
|
timeZone: _,
|
|
565
|
-
fromDate:
|
|
566
|
-
toDate: sn(ee(
|
|
565
|
+
fromDate: O,
|
|
566
|
+
toDate: sn(ee(O, q - 1))
|
|
567
567
|
}));
|
|
568
568
|
w === de.current && t({
|
|
569
569
|
availabilityDates: be
|
|
@@ -587,24 +587,24 @@ const nn = "SLOT_UNAVAILABLE", He = [], an = (e) => {
|
|
|
587
587
|
]
|
|
588
588
|
), nt = ie(
|
|
589
589
|
(D) => {
|
|
590
|
-
const b =
|
|
590
|
+
const b = Le.find((re) => re.key === D);
|
|
591
591
|
if (!b)
|
|
592
592
|
return;
|
|
593
|
-
const { startDate:
|
|
593
|
+
const { startDate: O, endDate: w } = b;
|
|
594
594
|
c == null || c.report({
|
|
595
595
|
action: te.CLICK,
|
|
596
596
|
component: Q.SLOT,
|
|
597
|
-
startTime: new Date(
|
|
597
|
+
startTime: new Date(O).valueOf(),
|
|
598
598
|
endTime: new Date(w).valueOf()
|
|
599
599
|
}), N == null || N({
|
|
600
|
-
startDate:
|
|
600
|
+
startDate: O,
|
|
601
601
|
endDate: w,
|
|
602
602
|
timeZone: _
|
|
603
603
|
});
|
|
604
604
|
},
|
|
605
605
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
606
606
|
[
|
|
607
|
-
|
|
607
|
+
Le,
|
|
608
608
|
_,
|
|
609
609
|
N,
|
|
610
610
|
c
|
|
@@ -626,19 +626,19 @@ const nn = "SLOT_UNAVAILABLE", He = [], an = (e) => {
|
|
|
626
626
|
]), ot = ie(() => W(void 0), []), st = P(() => {
|
|
627
627
|
if (pe)
|
|
628
628
|
return i("form.appointment.empty-state.notification.text");
|
|
629
|
-
if (!Z && !d && !(
|
|
629
|
+
if (!Z && !d && !(L != null && L.length))
|
|
630
630
|
return i("form.appointment.slots-not-found.text");
|
|
631
631
|
}, [
|
|
632
632
|
pe,
|
|
633
633
|
Z,
|
|
634
634
|
d,
|
|
635
|
-
|
|
635
|
+
L == null ? void 0 : L.length,
|
|
636
636
|
i
|
|
637
637
|
]);
|
|
638
638
|
return {
|
|
639
639
|
days: Xe,
|
|
640
|
-
slots:
|
|
641
|
-
selectedSlotKey:
|
|
640
|
+
slots: Le,
|
|
641
|
+
selectedSlotKey: ye,
|
|
642
642
|
selectDate: et,
|
|
643
643
|
selectSlot: nt,
|
|
644
644
|
changeWeek: tt,
|
|
@@ -655,7 +655,7 @@ const nn = "SLOT_UNAVAILABLE", He = [], an = (e) => {
|
|
|
655
655
|
endOfWeek: ee(h, q - 1)
|
|
656
656
|
}, a),
|
|
657
657
|
selectedDateLabel: Xt({
|
|
658
|
-
selectedDate:
|
|
658
|
+
selectedDate: y,
|
|
659
659
|
locale: a,
|
|
660
660
|
timezone: _
|
|
661
661
|
}),
|
|
@@ -668,7 +668,7 @@ const nn = "SLOT_UNAVAILABLE", He = [], an = (e) => {
|
|
|
668
668
|
showMoreSlotsLabel: i("form.appointment.show-more-slots.text"),
|
|
669
669
|
previousWeekLabel: i("form.appointment.accessibility.calendar.previous-week.aria-label"),
|
|
670
670
|
nextWeekLabel: i("form.appointment.accessibility.calendar.next-week.aria-label"),
|
|
671
|
-
pendingFocusIndex:
|
|
671
|
+
pendingFocusIndex: I,
|
|
672
672
|
consumePendingFocusIndex: ot
|
|
673
673
|
};
|
|
674
674
|
}, Qe = $e(void 0), Je = (e) => `${e}-timezone-note`, F = () => {
|
|
@@ -690,7 +690,7 @@ const nn = "SLOT_UNAVAILABLE", He = [], an = (e) => {
|
|
|
690
690
|
return;
|
|
691
691
|
const [g] = [
|
|
692
692
|
...f
|
|
693
|
-
], v = t.find(({ key:
|
|
693
|
+
], v = t.find(({ key: I }) => I === g);
|
|
694
694
|
v && a(v.date);
|
|
695
695
|
};
|
|
696
696
|
return /* @__PURE__ */ o.createElement("div", {
|
|
@@ -770,12 +770,12 @@ C.Heading = fn;
|
|
|
770
770
|
C.NextWeek = dn;
|
|
771
771
|
C.Day = Dn;
|
|
772
772
|
const Ke = 'input[type="radio"]', ae = ({ children: e, className: n, ...t }) => {
|
|
773
|
-
const { hasTimezoneNote: a } = t, { slots: s, selectedSlotKey: r, selectSlot: u, selectedDateLabel: i, isReloadingSlots: l, timezoneLabel: c, pendingFocusIndex: d, consumePendingFocusIndex: S } = F(), { id: E, disabled: f, readOnly: g, required: v, hasError:
|
|
773
|
+
const { hasTimezoneNote: a } = t, { slots: s, selectedSlotKey: r, selectSlot: u, selectedDateLabel: i, isReloadingSlots: l, timezoneLabel: c, pendingFocusIndex: d, consumePendingFocusIndex: S } = F(), { id: E, disabled: f, readOnly: g, required: v, hasError: I } = me(), { inputId: W, labelId: N, ariaDescribedBy: A } = Se(), Y = J(null), B = `${W}-slots-label`, U = T(e, ae.Label), oe = T(e, ae.Slot) ?? /* @__PURE__ */ o.createElement(ae.Slot, null), se = !!U && !!i, $ = [
|
|
774
774
|
A,
|
|
775
775
|
a && c ? Je(W) : void 0
|
|
776
776
|
].filter(Boolean).join(" ") || void 0, k = (_) => {
|
|
777
|
-
var
|
|
778
|
-
(G = (R = (
|
|
777
|
+
var y, R, G;
|
|
778
|
+
(G = (R = (y = Y.current) == null ? void 0 : y.querySelectorAll(Ke)) == null ? void 0 : R[_]) == null || G.focus();
|
|
779
779
|
};
|
|
780
780
|
return ft(() => {
|
|
781
781
|
var G, ue;
|
|
@@ -783,7 +783,7 @@ const Ke = 'input[type="radio"]', ae = ({ children: e, className: n, ...t }) =>
|
|
|
783
783
|
k(0);
|
|
784
784
|
return;
|
|
785
785
|
}
|
|
786
|
-
const
|
|
786
|
+
const y = Array.from(((ue = document.getElementById(W)) == null ? void 0 : ue.querySelectorAll('[role="option"]')) ?? []), R = y.find((K) => K.getAttribute("aria-selected") === "true") ?? y.find((K) => K.getAttribute("aria-disabled") !== "true");
|
|
787
787
|
R == null || R.focus();
|
|
788
788
|
}, E), H(() => {
|
|
789
789
|
d !== void 0 && (k(d), S());
|
|
@@ -801,7 +801,7 @@ const Ke = 'input[type="radio"]', ae = ({ children: e, className: n, ...t }) =>
|
|
|
801
801
|
isDisabled: f,
|
|
802
802
|
isReadOnly: g,
|
|
803
803
|
isRequired: v,
|
|
804
|
-
isInvalid:
|
|
804
|
+
isInvalid: I,
|
|
805
805
|
"aria-labelledby": se ? B : N,
|
|
806
806
|
"aria-describedby": $,
|
|
807
807
|
"data-refetch": l || void 0
|
|
@@ -877,7 +877,7 @@ const m = ({ children: e, className: n }) => {
|
|
|
877
877
|
}, S, E, f, le(g, {
|
|
878
878
|
hasTimezoneNote: !!E
|
|
879
879
|
}), d, v)));
|
|
880
|
-
},
|
|
880
|
+
}, yn = ({ children: e, className: n }) => {
|
|
881
881
|
const { isLoading: t, isRefetching: a } = F();
|
|
882
882
|
return !t && !a ? null : /* @__PURE__ */ o.createElement("div", {
|
|
883
883
|
className: n,
|
|
@@ -886,7 +886,7 @@ const m = ({ children: e, className: n }) => {
|
|
|
886
886
|
"data-initial": t || void 0,
|
|
887
887
|
"data-refetch": !t && a || void 0
|
|
888
888
|
}, e);
|
|
889
|
-
},
|
|
889
|
+
}, Ln = ({ children: e, className: n }) => {
|
|
890
890
|
const { notificationMessage: t } = F();
|
|
891
891
|
return t ? /* @__PURE__ */ o.createElement("div", {
|
|
892
892
|
className: n,
|
|
@@ -920,8 +920,8 @@ const m = ({ children: e, className: n }) => {
|
|
|
920
920
|
}) : s) : null;
|
|
921
921
|
};
|
|
922
922
|
m.Label = Ft;
|
|
923
|
-
m.Loader =
|
|
924
|
-
m.Notification =
|
|
923
|
+
m.Loader = yn;
|
|
924
|
+
m.Notification = Ln;
|
|
925
925
|
m.Dates = C;
|
|
926
926
|
m.Timezone = Nn;
|
|
927
927
|
m.Format = An;
|
|
@@ -929,9 +929,9 @@ m.Slots = ae;
|
|
|
929
929
|
m.ShowMoreSlots = bn;
|
|
930
930
|
m.Description = wt;
|
|
931
931
|
m.Error = Mt;
|
|
932
|
-
const
|
|
933
|
-
appointment:
|
|
934
|
-
dates:
|
|
932
|
+
const On = "_appointment_743lv_1", In = "_dates_743lv_5", gn = "_weekHeading_743lv_26", Tn = "_weekButton_743lv_35", vn = "_previousWeek_743lv_67", kn = "_nextWeek_743lv_71", Rn = "_day_743lv_83", wn = "_weekdayLabel_743lv_97", Mn = "_dayNumber_743lv_109", Fn = "_indicator_743lv_174", hn = "_hint_743lv_204", Cn = "_slots_743lv_217", Wn = "_slotsMobile_743lv_226", Bn = "_slotsLabel_743lv_230", Un = "_slot_743lv_217", xn = "_slotHover_743lv_269", Pn = "_slotSelected_743lv_277", zn = "_showMoreSlots_743lv_331", Hn = "_loader_743lv_361", Yn = "_notification_743lv_397", p = {
|
|
933
|
+
appointment: On,
|
|
934
|
+
dates: In,
|
|
935
935
|
weekHeading: gn,
|
|
936
936
|
weekButton: Tn,
|
|
937
937
|
previousWeek: vn,
|
|
@@ -958,8 +958,8 @@ const In = "_appointment_743lv_1", On = "_dates_743lv_5", gn = "_weekHeading_743
|
|
|
958
958
|
selected: p.slotSelected,
|
|
959
959
|
hover: p.slotHover
|
|
960
960
|
}, Gn = () => {
|
|
961
|
-
const { isMobile: e } = ce(), n =
|
|
962
|
-
globalClasses:
|
|
961
|
+
const { isMobile: e } = ce(), n = It({
|
|
962
|
+
globalClasses: Ot,
|
|
963
963
|
moduleClasses: $n
|
|
964
964
|
});
|
|
965
965
|
return /* @__PURE__ */ o.createElement(m, {
|
|
@@ -971,7 +971,7 @@ const In = "_appointment_743lv_1", On = "_dates_743lv_5", gn = "_weekHeading_743
|
|
|
971
971
|
})), /* @__PURE__ */ o.createElement(m.Loader, {
|
|
972
972
|
className: p.loader
|
|
973
973
|
}), /* @__PURE__ */ o.createElement(m.Dates, {
|
|
974
|
-
className: M(
|
|
974
|
+
className: M(yt, p.dates)
|
|
975
975
|
}, /* @__PURE__ */ o.createElement(m.Dates.PreviousWeek, {
|
|
976
976
|
className: M(fe, p.weekButton, p.previousWeek)
|
|
977
977
|
}, /* @__PURE__ */ o.createElement(Ce, null)), /* @__PURE__ */ o.createElement(m.Dates.Heading, {
|
|
@@ -995,7 +995,7 @@ const In = "_appointment_743lv_1", On = "_dates_743lv_5", gn = "_weekHeading_743
|
|
|
995
995
|
[p.slotsMobile]: e
|
|
996
996
|
})
|
|
997
997
|
}, /* @__PURE__ */ o.createElement(m.Slots.Label, {
|
|
998
|
-
className: M(
|
|
998
|
+
className: M(Lt, p.slotsLabel)
|
|
999
999
|
}), /* @__PURE__ */ o.createElement(m.Slots.Slot, {
|
|
1000
1000
|
className: ({ isSelected: t, isHovered: a, isDisabled: s, isReadOnly: r }) => n({
|
|
1001
1001
|
isSelected: t,
|
package/dist/component/{bookings-login-bar-rac-BT1npKru.js → bookings-login-bar-rac-QskvFo0C.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-f0tqdMye.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 { v as _ } from "./form-element-classes-jC8D0LnK.js";
|
|
7
7
|
const a = ({ children: n }) => {
|
|
8
8
|
const { id: r, FieldLayout: t } = d();
|
|
9
9
|
return /* @__PURE__ */ o.createElement(t, {
|
|
@@ -45,10 +45,10 @@ const a = ({ children: n }) => {
|
|
|
45
45
|
a.LoginBar = x;
|
|
46
46
|
a.Text = N;
|
|
47
47
|
a.Button = F;
|
|
48
|
-
const T = "_container_1mvrn_1",
|
|
48
|
+
const T = "_container_1mvrn_1", v = "_text_1mvrn_34", C = "_button_1mvrn_39", u = {
|
|
49
49
|
container: T,
|
|
50
|
-
text:
|
|
51
|
-
button:
|
|
50
|
+
text: v,
|
|
51
|
+
button: C
|
|
52
52
|
}, A = () => {
|
|
53
53
|
const { userData: n, language: r } = f(), { actions: t } = p();
|
|
54
54
|
return /* @__PURE__ */ o.createElement(a, null, /* @__PURE__ */ o.createElement(a.LoginBar, {
|
|
@@ -2,17 +2,17 @@ import { RicosViewer as $n } from "@wix/ricos/viewer";
|
|
|
2
2
|
import U from "classnames";
|
|
3
3
|
import b, { useMemo as Xn, useRef as Jn, useCallback as Yn } from "react";
|
|
4
4
|
import { CheckboxField as Qn, CheckboxButton as Zn } from "react-aria-components";
|
|
5
|
-
import { Q as ei, ai as Zr, q as Qr, R as fn, as as ri, ab as ti, $ as ai, af as ni, ak as ii, L as si } from "./form-
|
|
5
|
+
import { Q as ei, ai as Zr, q as Qr, R as fn, as as ri, ab as ti, $ as ai, af as ni, ak as ii, L as si } from "./form-f0tqdMye.js";
|
|
6
6
|
import { f as W, a as oi } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as ui, E as ci } from "./field-error-headless-
|
|
7
|
+
import { D as ui, E as ci } from "./field-error-headless-BErhh9GG.js";
|
|
8
8
|
import { Node_Type as fi } from "@wix/ricos/schema";
|
|
9
|
-
import { c as re, r as X, e as R, a as J, d as li, b as _i } from "./isObjectLike-
|
|
9
|
+
import { c as re, r as X, e as R, a as J, d as li, b as _i } from "./isObjectLike-BYOX5XY4.js";
|
|
10
10
|
import { S as vi } from "./selection-indicator-XQ8MYHUQ.js";
|
|
11
11
|
import { E as hi } from "./error-icon-hZxQ6DEy.js";
|
|
12
12
|
import { C as pi } from "./checkbox-indicator-module-classes-DqzGZQRQ.js";
|
|
13
13
|
import { s as oe } from "./field-rac.module-ColNPUt0.js";
|
|
14
|
-
import { f as di, g as yi, b as bi,
|
|
15
|
-
import { u as Ai } from "./use-element-state-class-name-
|
|
14
|
+
import { f as di, g as yi, b as bi, O as gi, o as qi, i as Ci } from "./form-element-classes-jC8D0LnK.js";
|
|
15
|
+
import { u as Ai } from "./use-element-state-class-name-BqmaTba3.js";
|
|
16
16
|
var ue, dt;
|
|
17
17
|
function mi() {
|
|
18
18
|
if (dt) return ue;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import i, { useMemo as F, useCallback as _, useRef as P, useState as w, useEffect as U } from "react";
|
|
2
2
|
import { CheckboxGroup as W, CheckboxField as A, CheckboxButton as j, TextField as z, Input as J } from "react-aria-components";
|
|
3
3
|
import { debounce as K } from "ts-debounce";
|
|
4
|
-
import { ai as N, af as Q, as as X, ab as Y, ak as Z } from "./form-
|
|
4
|
+
import { ai as N, af as Q, as as X, ab as Y, ak as Z } from "./form-f0tqdMye.js";
|
|
5
5
|
import { f as L, a as k } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as ee, E as te } from "./field-error-headless-
|
|
7
|
-
import { L as ae } from "./field-label-headless-
|
|
6
|
+
import { D as ee, E as te } from "./field-error-headless-BErhh9GG.js";
|
|
7
|
+
import { L as ae } from "./field-label-headless-BGyK-5xW.js";
|
|
8
8
|
import { F as ne } from "./fieldset-headless-CD3fds9J.js";
|
|
9
9
|
import { N as se } from "./options-layout-constants-DEfIEJWD.js";
|
|
10
10
|
import { S as le } from "./selection-indicator-XQ8MYHUQ.js";
|
package/dist/component/{checkbox-group-field-rac-DbaB5Fx6.js → checkbox-group-field-rac-CZW28rj5.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { RicosViewer as n } from "@wix/ricos/viewer";
|
|
2
2
|
import a from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { C as t } from "./checkbox-group-field-headless-
|
|
4
|
+
import { C as t } from "./checkbox-group-field-headless-Bx5Y-RMP.js";
|
|
5
5
|
import { E as m } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { C as c } from "./checkbox-indicator-module-classes-DqzGZQRQ.js";
|
|
7
7
|
import { s } from "./field-rac.module-ColNPUt0.js";
|
|
8
|
-
import {
|
|
8
|
+
import { y as i, O as E, c as O, e as p, x as C, o as _, i as L, d as R } from "./form-element-classes-jC8D0LnK.js";
|
|
9
9
|
import { o as r } from "./options-rac.module-KM-VT_KY.js";
|
|
10
|
-
import { u as I } from "./use-element-state-class-name-
|
|
10
|
+
import { u as I } from "./use-element-state-class-name-BqmaTba3.js";
|
|
11
11
|
const S = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(n, {
|
|
12
12
|
content: o,
|
|
13
13
|
locale: l
|
|
14
|
-
}),
|
|
14
|
+
}), h = () => {
|
|
15
15
|
const o = I({
|
|
16
16
|
globalClasses: R,
|
|
17
17
|
moduleClasses: c
|
|
@@ -21,13 +21,13 @@ const S = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(n, {
|
|
|
21
21
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
22
22
|
className: a(E, s.requiredMark)
|
|
23
23
|
})), /* @__PURE__ */ e.createElement(t.Options, {
|
|
24
|
-
className: a(
|
|
24
|
+
className: a(O, r.options)
|
|
25
25
|
}, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
|
|
26
26
|
className: s.checkbox
|
|
27
27
|
}, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Input, {
|
|
28
28
|
className: o
|
|
29
29
|
}), /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Label, {
|
|
30
|
-
className: a(
|
|
30
|
+
className: a(p, r.optionLabel)
|
|
31
31
|
})), /* @__PURE__ */ e.createElement(t.Options.Option.OtherInput, {
|
|
32
32
|
inputClassName: a(C, s.input)
|
|
33
33
|
}))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
@@ -37,5 +37,5 @@ const S = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(n, {
|
|
|
37
37
|
}, S));
|
|
38
38
|
};
|
|
39
39
|
export {
|
|
40
|
-
|
|
40
|
+
h as C
|
|
41
41
|
};
|