@wix/form-elements 1.227.0 → 1.229.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-C2ClvRys.js → appointment-rac-GPiMmJxP.js} +100 -100
- package/dist/component/{bookings-address-rac-CPQjosbZ.js → bookings-address-rac-_6H0cpOX.js} +1 -1
- package/dist/component/{bookings-email-rac-DWvVUcBN.js → bookings-email-rac-BXu7vlfv.js} +1 -1
- package/dist/component/{bookings-first-name-rac-_iG2xJiA.js → bookings-first-name-rac-B5EFteC7.js} +1 -1
- package/dist/component/{bookings-header-rac-BbGm_Z8W.js → bookings-header-rac-BNpHdVDM.js} +1 -1
- package/dist/component/{bookings-last-name-rac-77Z29aHO.js → bookings-last-name-rac-39_YaErh.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DfqRpARE.js → bookings-login-bar-rac-C2HiveJf.js} +1 -1
- package/dist/component/{bookings-phone-rac-BKoU7X0X.js → bookings-phone-rac-DUDjc-hx.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DgSN4_f0.js → bookings-rich-text-rac-C3gHsHqM.js} +1 -1
- package/dist/component/{checkbox-field-rac-BLJ3Xb7C.js → checkbox-field-rac-B1boTUAd.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-BeU8DG0A.js → checkbox-group-field-headless-Bult4ASq.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-ClRi6Ljp.js → checkbox-group-field-rac-C8X3HPwE.js} +4 -4
- package/dist/component/{checkbox-group-rac--cM57qqw.js → checkbox-group-rac-7Lqjo_yR.js} +1 -1
- package/dist/component/{checkbox-rac-DnslW6as.js → checkbox-rac-syMEVhI-.js} +1 -1
- package/dist/component/{contacts-address-rac-Bpq_0vvi.js → contacts-address-rac-C0-tMLNC.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CB1h6kRm.js → contacts-birthdate-rac-1cDTvHzJ.js} +1 -1
- package/dist/component/{contacts-company-rac-DvYX4SLX.js → contacts-company-rac-jBk0H-Px.js} +1 -1
- package/dist/component/{contacts-email-rac-sxbgKBUR.js → contacts-email-rac-CoYOGP1q.js} +1 -1
- package/dist/component/{contacts-first-name-rac-C4_o2nwv.js → contacts-first-name-rac-D3j38Wak.js} +1 -1
- package/dist/component/{contacts-last-name-rac-B3s96wWt.js → contacts-last-name-rac-BONsoL5A.js} +1 -1
- package/dist/component/{contacts-phone-rac-B5NZeYaI.js → contacts-phone-rac-DEFAfwFw.js} +1 -1
- package/dist/component/{contacts-position-rac-CO4Bo4jG.js → contacts-position-rac-KN_26yxw.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CWmo3C6c.js → contacts-subscribe-rac-BLCx2wUt.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-pi_bJeA7.js → contacts-tax-id-rac-DeEskHYJ.js} +1 -1
- package/dist/component/{date-availability-DL8Xboob.js → date-availability-Dt_ccalt.js} +1 -1
- package/dist/component/{date-input-field-rac-Di2pwVW7.js → date-input-field-rac-B-CpcccZ.js} +8 -8
- package/dist/component/{date-input-rac-C5xC7fbz.js → date-input-rac-C1m26mdc.js} +1 -1
- package/dist/component/{date-picker-field-rac-DyPkuVVe.js → date-picker-field-rac-BIUDi3_7.js} +8 -8
- package/dist/component/{date-picker-rac-CKNlOGZG.js → date-picker-rac-7-tC9pvJ.js} +1 -1
- package/dist/component/{date-time-input-field-rac-Dk15pWyb.js → date-time-input-field-rac-5pVViPTl.js} +8 -8
- package/dist/component/{date-time-input-rac-oOUelldq.js → date-time-input-rac-CJVXFHSK.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac--jmNDOV2.js → dext-checkbox-group-rac-CQ95cLrs.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BOjbBRrg.js → dext-checkbox-rac-Cv3-fvFw.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CHi5TisB.js → dext-date-picker-rac-Dgbzkk-Q.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-CcF4ocHx.js → dext-date-time-input-rac-7vt7qkXQ.js} +1 -1
- package/dist/component/{dext-dropdown-rac-LLYhuGt_.js → dext-dropdown-rac-COYjf4Uk.js} +1 -1
- package/dist/component/{dext-email-rac-CbC1crzT.js → dext-email-rac-BO6Yskyl.js} +1 -1
- package/dist/component/{dext-number-input-rac-3-U9Hxre.js → dext-number-input-rac-BuJsFHQD.js} +1 -1
- package/dist/component/{dext-phone-rac-CdMFXUNf.js → dext-phone-rac-DRhEZS0m.js} +1 -1
- package/dist/component/{dext-radio-group-rac-Bg33r95T.js → dext-radio-group-rac-B-SA0ITv.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DV8jA90b.js → dext-rating-input-rac-BcpLyQSP.js} +1 -1
- package/dist/component/{dext-tags-rac-B-hpvZgE.js → dext-tags-rac-B1WsqTOk.js} +2 -2
- package/dist/component/{dext-text-area-rac-kBBc0Xjo.js → dext-text-area-rac-CKmb1-ax.js} +1 -1
- package/dist/component/{dext-text-input-rac-CImXblhX.js → dext-text-input-rac-BuaASOlx.js} +1 -1
- package/dist/component/{dext-url-input-rac-J-7QABnD.js → dext-url-input-rac-CfgYYrVy.js} +1 -1
- package/dist/component/{dismiss-icon-Bw_zbdk_.js → dismiss-icon-D3_Zzj5l.js} +1 -1
- package/dist/component/{donation-rac-CvWwng6S.js → donation-rac-V5cUDRDx.js} +5 -5
- package/dist/component/{dropdown-field-rac-Dm9Qs8bh.js → dropdown-field-rac-CONU5tZT.js} +3 -3
- package/dist/component/{dropdown-rac-BHqeUIje.js → dropdown-rac-C-cZX6Xk.js} +1 -1
- package/dist/component/{ecom-address-rac-NtuG7Q_T.js → ecom-address-rac-Tyicsyps.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DAJnX_RJ.js → ecom-subscription-checkbox-rac-CbDEpoPe.js} +2 -2
- package/dist/component/{email-input-field-rac-ompvaCLM.js → email-input-field-rac-XB5amz6S.js} +3 -3
- package/dist/component/{events-repeater-rac-kHEFBH7l.js → events-repeater-rac-BJFbVm9p.js} +4 -4
- package/dist/component/{events-rsvp-rac-R4F9aw6y.js → events-rsvp-rac-D4cdZGgV.js} +3 -3
- package/dist/component/{field-error-headless-o2u5ldAp.js → field-error-headless-BsV6YLEM.js} +1 -1
- package/dist/component/{field-label-headless-DvNWYzXc.js → field-label-headless-D-kBcceK.js} +1 -1
- package/dist/component/{file-upload-rac-DlE4dp0D.js → file-upload-rac-C43lnrDd.js} +4 -4
- package/dist/component/{fixed-payment-rac-BxsFHhXP.js → fixed-payment-rac-CEUGUzXs.js} +3 -3
- package/dist/component/{form-Co7SkMqj.js → form-CX77qB-O.js} +106 -106
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-D56CKAtM.js → header-field-rac-DMRhxDkn.js} +2 -2
- package/dist/component/{header-rac-DdYSBcq1.js → header-rac-CH6Japn4.js} +1 -1
- package/dist/component/{image-choice-rac-g23R5qLL.js → image-choice-rac-D7B03yyE.js} +4 -4
- package/dist/component/{index-BmOwghzn.js → index-K1Qe5Lva.js} +2 -2
- package/dist/component/{index-C0yPsVXz.js → index-bEqqR2UB.js} +4 -4
- package/dist/component/{isObjectLike-mlNAmhLJ.js → isObjectLike-B3s7YV-O.js} +1 -1
- package/dist/component/{messages_ar-Dhf97hZN.js → messages_ar-B6uCTgcN.js} +1 -0
- package/dist/component/{messages_bg-BeJMZnb1.js → messages_bg-BFuS7TPj.js} +1 -0
- package/dist/component/{messages_ca-FzoGNoi6.js → messages_ca-CvVD9mIv.js} +1 -0
- package/dist/component/{messages_cs-dJg-S-VV.js → messages_cs-CWmB4Kz9.js} +1 -0
- package/dist/component/{messages_da-C2-Fog1K.js → messages_da-B9s-tqCO.js} +1 -0
- package/dist/component/{messages_de-CrJmBBnw.js → messages_de-BY27LmJ4.js} +1 -0
- package/dist/component/{messages_el-C-h7hh9l.js → messages_el-J5LMcTZs.js} +1 -0
- package/dist/component/{messages_en-BoLHYzfk.js → messages_en-DDof8mV7.js} +1 -0
- package/dist/component/{messages_es-Bqncgrm3.js → messages_es-DKrlHNYT.js} +1 -0
- package/dist/component/{messages_fi-m9PtcTFj.js → messages_fi-CXk1cPhB.js} +1 -0
- package/dist/component/{messages_fr-DfJ58fol.js → messages_fr-C_lxUyul.js} +1 -0
- package/dist/component/{messages_he-CoclVWwo.js → messages_he-hc43rTsV.js} +1 -0
- package/dist/component/{messages_hi-Darb2Wre.js → messages_hi-ZrTPuaQM.js} +1 -0
- package/dist/component/{messages_hr-DCj--HTl.js → messages_hr-CroIWJjw.js} +1 -0
- package/dist/component/{messages_hu-_bnixMGc.js → messages_hu-CIPloTUq.js} +1 -0
- package/dist/component/{messages_id-yes_fXE1.js → messages_id-MozJSkHs.js} +1 -0
- package/dist/component/{messages_it-BudI37gU.js → messages_it-eBibvIY6.js} +1 -0
- package/dist/component/{messages_ja-CJTuWnh9.js → messages_ja-DiMta9AM.js} +1 -0
- package/dist/component/{messages_ko-DEaDT3oj.js → messages_ko-kaXc3Nbs.js} +1 -0
- package/dist/component/{messages_lt-BvUk2JkF.js → messages_lt-cCevoO30.js} +1 -0
- package/dist/component/{messages_lv-DCiE-_f6.js → messages_lv-BeNCa5qQ.js} +1 -0
- package/dist/component/{messages_ms-DvPCPAKs.js → messages_ms-xEnRDKOZ.js} +1 -0
- package/dist/component/{messages_nl-D65liJio.js → messages_nl-D6_hXFvr.js} +1 -0
- package/dist/component/{messages_no-Pe1StTZy.js → messages_no-BVaDEh--.js} +1 -0
- package/dist/component/{messages_pl-BNLtxXCG.js → messages_pl-C0exvdXI.js} +1 -0
- package/dist/component/{messages_pt-SO-GIQyK.js → messages_pt-Dkla49UJ.js} +1 -0
- package/dist/component/{messages_ro-JcT63Xu7.js → messages_ro-BpvEyVQv.js} +1 -0
- package/dist/component/{messages_ru-CPvSPih6.js → messages_ru-BT14xpfy.js} +1 -0
- package/dist/component/{messages_sk--ehi9Nro.js → messages_sk-wHlAmpoI.js} +1 -0
- package/dist/component/{messages_sl-B9P4YEyY.js → messages_sl-DGaP8nJp.js} +1 -0
- package/dist/component/{messages_sv-Bc10MHfh.js → messages_sv-XA33BRUx.js} +1 -0
- package/dist/component/{messages_th-CQ51IfmH.js → messages_th-B_INKeJ7.js} +1 -0
- package/dist/component/{messages_tl-B5dCLtFs.js → messages_tl-BK7JuHIh.js} +1 -0
- package/dist/component/{messages_tr-WJiUU0ct.js → messages_tr-C7dImceu.js} +1 -0
- package/dist/component/{messages_uk-Dg4znI3c.js → messages_uk-VTWRJdy2.js} +1 -0
- package/dist/component/{messages_vi-CUnl67kQ.js → messages_vi-C1M6Yv8J.js} +1 -0
- package/dist/component/{messages_zh-CV-gVrcI.js → messages_zh-Bi5Wx-Fv.js} +1 -0
- package/dist/component/multiline-address-field-rac-kV04oJUn.js +1828 -0
- package/dist/component/{multiline-address-rac-tdENoXBT.js → multiline-address-rac-CLrhCkDN.js} +1 -1
- package/dist/component/{number-input-field-rac-CCIuPPeP.js → number-input-field-rac-9p3pjh_D.js} +4 -4
- package/dist/component/{number-input-rac-DxodjaRb.js → number-input-rac-BRWBLJxB.js} +1 -1
- package/dist/component/{password-rac-h9U6siGg.js → password-rac-DVGgr_Mk.js} +4 -4
- package/dist/component/{payment-input-rac-YFXgnLS6.js → payment-input-rac-BX0d3hQr.js} +4 -4
- package/dist/component/phone-input-field-rac-BmZgXCpn.js +603 -0
- package/dist/component/{phone-rac-B1Q9HXAB.js → phone-rac-B2RRuoqK.js} +1 -1
- package/dist/component/{product-list-rac-D63k_IAW.js → product-list-rac-D6c1IsnT.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-Bl6DYjmg.js → quiz-radio-group-rac-RnpAxtzg.js} +1 -1
- package/dist/component/{radio-button-module-classes-BRHKk6XZ.js → radio-button-module-classes-bz-Ns1Ze.js} +3 -3
- package/dist/component/{radio-group-field-rac-B8yEmx79.js → radio-group-field-rac-D_GV6yUr.js} +4 -4
- package/dist/component/{radio-group-rac-xX_sfxL0.js → radio-group-rac-Cd8Qs8ot.js} +1 -1
- package/dist/component/{rating-input-field-rac-_p1u5oCL.js → rating-input-field-rac-BtkAsxnV.js} +4 -4
- package/dist/component/{rating-input-rac-C_i6Nwdz.js → rating-input-rac-BRbonnej.js} +1 -1
- package/dist/component/{rich-content-rac.module-BlHWoitq.js → rich-content-rac.module-pbp1zCM5.js} +1 -1
- package/dist/component/{rich-text-field-rac-EiH-NdJm.js → rich-text-field-rac-1L72ZPhI.js} +2 -2
- package/dist/component/{rich-text-rac-eZvghmFV.js → rich-text-rac-DobfXm_8.js} +1 -1
- package/dist/component/{service-dropdown-rac-bujnhWyl.js → service-dropdown-rac-BMhCmTAX.js} +4 -4
- package/dist/component/{services-multi-choice-rac-FXrJOBdY.js → services-multi-choice-rac-D7lRSVJl.js} +5 -5
- package/dist/component/{signature-rac-CoVHMOpK.js → signature-rac-Bco76ERn.js} +4 -4
- package/dist/component/{submit-button-rac-B8w753Be.js → submit-button-rac-DQ17YXxg.js} +2 -2
- package/dist/component/{tags-field-rac-iitBlZ8l.js → tags-field-rac-C1yKETDx.js} +5 -5
- package/dist/component/{tags-rac-DJSUQlkc.js → tags-rac-BcCspqlQ.js} +1 -1
- package/dist/component/{text-area-field-rac-CePWfCbx.js → text-area-field-rac-C3XojWXx.js} +4 -4
- package/dist/component/{text-area-rac-m18L6Zwk.js → text-area-rac-C0JcRjAe.js} +1 -1
- package/dist/component/{text-input-field-rac-BSo_dbkm.js → text-input-field-rac-CHTVRczd.js} +3 -3
- package/dist/component/{text-input-headless-D-o9wyGb.js → text-input-headless-B2tCTuxV.js} +3 -3
- package/dist/component/{text-input-rac-CcGgoWaF.js → text-input-rac-CfTBffAi.js} +1 -1
- package/dist/component/{time-input-rac-DRIFM107.js → time-input-rac-BWE01iMt.js} +6 -6
- package/dist/component/{url-input-field-rac-Dpn9-sDD.js → url-input-field-rac-C-8qKrsK.js} +4 -4
- package/dist/component/{url-input-rac-CDSl1LX1.js → url-input-rac-C0638Rq7.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CHg44uaJ.js → use-dropdown-option-class-name-CpJ8B7ag.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-Dpwl6OCY.js → use-dropdown-trigger-class-name-yVvlOwvq.js} +7 -7
- package/dist/component/{use-element-state-class-name-BUu6zq-d.js → use-element-state-class-name-Dn2rGGPS.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-B1V7zCNe.js → use-hoverable-input-class-name-P-qLEa8M.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-BbHOZTaj.js → use-is-forced-open-dropdown-COLJ2DzU.js} +1 -1
- package/dist/component/{use-native-mobile-input-Ct8ysLL3.js → use-native-mobile-input-CFCIHZiu.js} +1 -1
- package/dist/component/{use-service-options-base-u-WCeJHQ.js → use-service-options-base-D8BHHfgi.js} +1 -1
- package/dist/component/use-text-input-class-name-D7eW2Lkq.js +6 -0
- package/package.json +2 -2
- package/dist/component/multiline-address-field-rac-ApBLSWB_.js +0 -1818
- package/dist/component/phone-input-field-rac-B9PUQJUP.js +0 -558
- package/dist/component/use-text-input-class-name-DfNU2oQf.js +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import o, { useRef as J, useState as Q, useEffect as
|
|
1
|
+
import o, { useRef as J, useState as Q, useEffect as U, createContext as Ke, useContext as $e, useMemo as P, useCallback as re } from "react";
|
|
2
2
|
import { RicosViewer as it } from "@wix/ricos/viewer";
|
|
3
3
|
import g from "classnames";
|
|
4
4
|
import { C as he } from "./chevron-down-icon-CcpVm6B-.js";
|
|
@@ -6,16 +6,16 @@ import { E as lt } from "./error-icon-hZxQ6DEy.js";
|
|
|
6
6
|
import { g as ct, c as Ce } from "./calendar.module-BMUyMVja.js";
|
|
7
7
|
import { H as me } from "./custom-focus-class-_483Pkwp.js";
|
|
8
8
|
import { s as ue } from "./field-rac.module-D0QzJXUv.js";
|
|
9
|
-
import { bF as Ee, bE as mt, bJ as ge, bH as ut, bY as dt, bX as Dt, bN as ie, bK as le, bP as ft, bM as Et, F as St, h as _t, X as Nt, am as pt, g as At, j as We, i as yt, n as It, k as Ot, l as Lt, M as Tt, I as bt, m as gt } from "./form-
|
|
10
|
-
import { u as
|
|
11
|
-
import { ListBox as
|
|
12
|
-
import { f as
|
|
13
|
-
import { D as ht, E as Ct } from "./field-error-headless-
|
|
14
|
-
import { L as Wt } from "./field-label-headless-
|
|
15
|
-
import { F as
|
|
9
|
+
import { bF as Ee, bE as mt, bJ as ge, bH as ut, bY as dt, bX as Dt, bN as ie, bK as le, bP as ft, bM as Et, F as St, h as _t, X as Nt, am as pt, g as At, j as We, i as yt, n as It, k as Ot, l as Lt, M as Tt, I as bt, m as gt } from "./form-CX77qB-O.js";
|
|
10
|
+
import { u as kt } from "./use-element-state-class-name-Dn2rGGPS.js";
|
|
11
|
+
import { ListBox as vt, Button as ke, ListBoxItem as Rt, RadioGroup as Mt, RadioField as Ft, RadioButton as wt } from "react-aria-components";
|
|
12
|
+
import { f as k, a as Se } from "./find-child-C60k4CxG.js";
|
|
13
|
+
import { D as ht, E as Ct } from "./field-error-headless-BsV6YLEM.js";
|
|
14
|
+
import { L as Wt } from "./field-label-headless-D-kBcceK.js";
|
|
15
|
+
import { F as Bt } from "./fieldset-headless-CD3fds9J.js";
|
|
16
16
|
import "date-fns";
|
|
17
17
|
import { V as Ge } from "./headless-styles-CmcyA_pi.js";
|
|
18
|
-
function
|
|
18
|
+
function Pt(e) {
|
|
19
19
|
return { evid: 40, src: 16, endpoint: "", params: e };
|
|
20
20
|
}
|
|
21
21
|
var De = /* @__PURE__ */ (function(e) {
|
|
@@ -29,14 +29,14 @@ var X = /* @__PURE__ */ (function(e) {
|
|
|
29
29
|
})({}), ne = /* @__PURE__ */ (function(e) {
|
|
30
30
|
return e.LOAD = "load", e.CLICK = "click", e;
|
|
31
31
|
})({});
|
|
32
|
-
const
|
|
32
|
+
const Ut = (e) => {
|
|
33
33
|
var t;
|
|
34
34
|
return {
|
|
35
35
|
bookingsServiceId: e == null ? void 0 : e.id,
|
|
36
36
|
formGuid: (t = e == null ? void 0 : e.form) == null ? void 0 : t.id,
|
|
37
|
-
serviceProperties:
|
|
37
|
+
serviceProperties: xt(e)
|
|
38
38
|
};
|
|
39
|
-
},
|
|
39
|
+
}, xt = (e) => {
|
|
40
40
|
var t;
|
|
41
41
|
return JSON.stringify({
|
|
42
42
|
serviceId: e == null ? void 0 : e.id,
|
|
@@ -47,12 +47,12 @@ const Pt = (e) => {
|
|
|
47
47
|
});
|
|
48
48
|
}, Ze = (e) => {
|
|
49
49
|
var l;
|
|
50
|
-
const { appointmentFieldProps: t } =
|
|
50
|
+
const { appointmentFieldProps: t } = ve(), { isEditor: n, isComposer: a } = Ee(), r = mt(), s = e || ((l = t == null ? void 0 : t.initialData) == null ? void 0 : l.service);
|
|
51
51
|
if (!(n || a))
|
|
52
52
|
return {
|
|
53
53
|
...r,
|
|
54
|
-
report: (i) => r == null ? void 0 : r.report(
|
|
55
|
-
...
|
|
54
|
+
report: (i) => r == null ? void 0 : r.report(Pt({
|
|
55
|
+
...Ut(s),
|
|
56
56
|
...i
|
|
57
57
|
}))
|
|
58
58
|
};
|
|
@@ -61,22 +61,22 @@ var Te;
|
|
|
61
61
|
(function(e) {
|
|
62
62
|
e.UNDEFINED = "UNDEFINED", e.OWNER_BUSINESS = "OWNER_BUSINESS", e.OWNER_CUSTOM = "OWNER_CUSTOM", e.CUSTOM = "CUSTOM";
|
|
63
63
|
})(Te || (Te = {}));
|
|
64
|
-
var xe;
|
|
65
|
-
(function(e) {
|
|
66
|
-
e.UNKNOWN_REQUESTED_GENDER = "UNKNOWN_REQUESTED_GENDER", e.ANY_MALE = "ANY_MALE", e.ANY_FEMALE = "ANY_FEMALE";
|
|
67
|
-
})(xe || (xe = {}));
|
|
68
64
|
var Be;
|
|
69
65
|
(function(e) {
|
|
70
|
-
e.
|
|
66
|
+
e.UNKNOWN_REQUESTED_GENDER = "UNKNOWN_REQUESTED_GENDER", e.ANY_MALE = "ANY_MALE", e.ANY_FEMALE = "ANY_FEMALE";
|
|
71
67
|
})(Be || (Be = {}));
|
|
72
68
|
var Pe;
|
|
73
69
|
(function(e) {
|
|
74
|
-
e.
|
|
70
|
+
e.UNKNOWN_LOCATION_TYPE = "UNKNOWN_LOCATION_TYPE", e.BUSINESS = "BUSINESS", e.CUSTOM = "CUSTOM", e.CUSTOMER = "CUSTOMER";
|
|
75
71
|
})(Pe || (Pe = {}));
|
|
76
72
|
var Ue;
|
|
77
73
|
(function(e) {
|
|
78
|
-
e.
|
|
74
|
+
e.UNKNOWN_REQUESTED_GENDER = "UNKNOWN_REQUESTED_GENDER", e.ANY_MALE = "ANY_MALE", e.ANY_FEMALE = "ANY_FEMALE";
|
|
79
75
|
})(Ue || (Ue = {}));
|
|
76
|
+
var xe;
|
|
77
|
+
(function(e) {
|
|
78
|
+
e.ASC = "ASC", e.DESC = "DESC";
|
|
79
|
+
})(xe || (xe = {}));
|
|
80
80
|
const zt = (e) => {
|
|
81
81
|
const { service: t } = e || {};
|
|
82
82
|
return (t == null ? void 0 : t.id) ? null : {
|
|
@@ -160,9 +160,9 @@ function Gt(e) {
|
|
|
160
160
|
const { initialData: t, onChange: n, value: a } = e, { isEditor: r, isComposer: s } = Ee(), l = (d = t == null ? void 0 : t.service) == null ? void 0 : d.id, { actions: i } = ge(), c = J(i);
|
|
161
161
|
c.current = i;
|
|
162
162
|
const D = !!(i != null && i.getAvailabilityDates && (i != null && i.getAvailabilitySlots)), [u, S] = Q(null), E = Ze(t == null ? void 0 : t.service);
|
|
163
|
-
return
|
|
163
|
+
return U(() => {
|
|
164
164
|
l && !r && !s && D && (async () => {
|
|
165
|
-
var I, O,
|
|
165
|
+
var I, O, x, z, Y;
|
|
166
166
|
const M = Ve(), A = {
|
|
167
167
|
currentSlotBulkSize: q,
|
|
168
168
|
timezone: M,
|
|
@@ -192,7 +192,7 @@ function Gt(e) {
|
|
|
192
192
|
});
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
|
-
A.selectedDate = Kt(A.availabilityDates), A.selectedDate && (A.availabilitySlots = await ((z = (
|
|
195
|
+
A.selectedDate = Kt(A.availabilityDates), A.selectedDate && (A.availabilitySlots = await ((z = (x = c.current) == null ? void 0 : x.getAvailabilitySlots) == null ? void 0 : z.call(x, {
|
|
196
196
|
serviceId: l,
|
|
197
197
|
timeZone: M,
|
|
198
198
|
selectedDate: A.selectedDate
|
|
@@ -237,7 +237,7 @@ const qe = /* @__PURE__ */ Ke({
|
|
|
237
237
|
isEditor: n,
|
|
238
238
|
isComposer: a
|
|
239
239
|
})), i = Gt(e);
|
|
240
|
-
return
|
|
240
|
+
return U(() => {
|
|
241
241
|
i && l({
|
|
242
242
|
...s,
|
|
243
243
|
...i
|
|
@@ -254,7 +254,7 @@ const qe = /* @__PURE__ */ Ke({
|
|
|
254
254
|
})
|
|
255
255
|
}
|
|
256
256
|
}, t);
|
|
257
|
-
},
|
|
257
|
+
}, ve = () => $e(qe), qt = (e, t) => {
|
|
258
258
|
if (e.startOfWeek.getMonth() === e.endOfWeek.getMonth())
|
|
259
259
|
return new Intl.DateTimeFormat(t, {
|
|
260
260
|
month: "long",
|
|
@@ -297,8 +297,8 @@ const qe = /* @__PURE__ */ Ke({
|
|
|
297
297
|
toDate: a
|
|
298
298
|
};
|
|
299
299
|
}, Jt = ({ setIsReloadingSlots: e }) => {
|
|
300
|
-
const { appointmentFieldProps: t, appointmentState: n, setAppointmentState: a } =
|
|
301
|
-
|
|
300
|
+
const { appointmentFieldProps: t, appointmentState: n, setAppointmentState: a } = ve(), { value: r } = t, { actions: s } = ge();
|
|
301
|
+
U(() => {
|
|
302
302
|
(async () => {
|
|
303
303
|
var i, c;
|
|
304
304
|
if (r != null && r.startDate && (n != null && n.selectedDate) && (n == null ? void 0 : n.dataStatus) === W.DONE && !ae(new Date(r.startDate), n == null ? void 0 : n.selectedDate)) {
|
|
@@ -360,7 +360,7 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
360
360
|
return ((t = e == null ? void 0 : e.params) == null ? void 0 : t.reason) === sn;
|
|
361
361
|
}, ln = ({ error: e, selectedSlot: t }) => {
|
|
362
362
|
const [n, a] = Q([]), r = rn(e), s = t == null ? void 0 : t.startDate, l = J(!1);
|
|
363
|
-
return
|
|
363
|
+
return U(() => {
|
|
364
364
|
if (!r) {
|
|
365
365
|
l.current = !1;
|
|
366
366
|
return;
|
|
@@ -396,35 +396,35 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
396
396
|
return !!((a = n.slot) != null && a.startDate) && ae(new Date(n.slot.startDate), e);
|
|
397
397
|
}), Dn = () => {
|
|
398
398
|
var we;
|
|
399
|
-
const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } =
|
|
399
|
+
const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } = ve(), { language: a, isEditor: r, isComposer: s } = Ee(), { t: l } = dt(), { actions: i } = ge(), c = Ze(), [D, u] = Q(!1), [S, E] = Q(!1), [d, b] = Q(), [M, A] = Q();
|
|
400
400
|
Jt({
|
|
401
401
|
setIsReloadingSlots: u
|
|
402
402
|
});
|
|
403
|
-
const { onChange: I, value: O, target:
|
|
403
|
+
const { onChange: I, value: O, target: x, initialData: z, formatDescription: Y, locationType: H, error: oe } = e, { availabilityDates: $, availabilitySlots: F, timezone: _ = "", selectedDate: N, currentSlotBulkSize: v, dataStatus: G, error: Z } = t, K = (we = z == null ? void 0 : z.service) == null ? void 0 : we.id, V = G === W.LOADING, ee = D || S, _e = !!Z, Me = ln({
|
|
404
404
|
error: oe,
|
|
405
405
|
selectedSlot: O
|
|
406
|
-
}), y =
|
|
406
|
+
}), y = P(() => en(F, Me), [
|
|
407
407
|
F,
|
|
408
408
|
Me
|
|
409
409
|
]);
|
|
410
|
-
|
|
410
|
+
U(() => {
|
|
411
411
|
I == null || I(jt(O));
|
|
412
412
|
}, [
|
|
413
413
|
O == null ? void 0 : O.startDate,
|
|
414
414
|
O == null ? void 0 : O.endDate,
|
|
415
415
|
_
|
|
416
416
|
]), Dt((f) => {
|
|
417
|
-
const L = f == null ? void 0 : f[
|
|
417
|
+
const L = f == null ? void 0 : f[x];
|
|
418
418
|
F != null && F.length && n({
|
|
419
419
|
availabilitySlots: F.filter((T) => {
|
|
420
|
-
var
|
|
421
|
-
return ((
|
|
420
|
+
var R;
|
|
421
|
+
return ((R = T == null ? void 0 : T.slot) == null ? void 0 : R.startDate) !== (L == null ? void 0 : L.startDate);
|
|
422
422
|
})
|
|
423
423
|
});
|
|
424
|
-
}),
|
|
425
|
-
if (y != null && y.length &&
|
|
424
|
+
}), U(() => {
|
|
425
|
+
if (y != null && y.length && v) {
|
|
426
426
|
const f = an(de(O ?? void 0), y);
|
|
427
|
-
f && f + 1 >
|
|
427
|
+
f && f + 1 > v && n({
|
|
428
428
|
currentSlotBulkSize: f + 1
|
|
429
429
|
});
|
|
430
430
|
} else !(y != null && y.length) && O && (I == null || I(void 0));
|
|
@@ -433,25 +433,25 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
433
433
|
y,
|
|
434
434
|
$
|
|
435
435
|
]);
|
|
436
|
-
const Ne =
|
|
436
|
+
const Ne = P(() => ct(a), [
|
|
437
437
|
a
|
|
438
438
|
]), Fe = J(N);
|
|
439
|
-
|
|
439
|
+
U(() => {
|
|
440
440
|
const f = Fe.current;
|
|
441
441
|
Fe.current = N, !!N && (!f || !ae(f, N)) && b(void 0);
|
|
442
442
|
}, [
|
|
443
443
|
N
|
|
444
444
|
]);
|
|
445
|
-
const h =
|
|
445
|
+
const h = P(() => d ?? Ye(N ?? /* @__PURE__ */ new Date(), Ne), [
|
|
446
446
|
d,
|
|
447
447
|
N,
|
|
448
448
|
Ne
|
|
449
|
-
]), Je =
|
|
449
|
+
]), Je = P(() => {
|
|
450
450
|
const f = be(/* @__PURE__ */ new Date()), L = new Intl.DateTimeFormat(a, {
|
|
451
451
|
weekday: "short"
|
|
452
452
|
}), T = new Intl.DateTimeFormat(a, {
|
|
453
453
|
day: "numeric"
|
|
454
|
-
}),
|
|
454
|
+
}), R = new Intl.DateTimeFormat(a, {
|
|
455
455
|
weekday: "long",
|
|
456
456
|
month: "long",
|
|
457
457
|
day: "numeric"
|
|
@@ -459,17 +459,17 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
459
459
|
return Array.from({
|
|
460
460
|
length: j
|
|
461
461
|
}, (se, Oe) => {
|
|
462
|
-
const
|
|
462
|
+
const B = te(h, Oe), Le = !!N && ae(B, N), rt = be(B) < f;
|
|
463
463
|
return {
|
|
464
|
-
key: mn(
|
|
465
|
-
date:
|
|
464
|
+
key: mn(B),
|
|
465
|
+
date: B,
|
|
466
466
|
isSelected: Le,
|
|
467
|
-
isAvailable: !V && !ee && !Le && dn(
|
|
467
|
+
isAvailable: !V && !ee && !Le && dn(B, $),
|
|
468
468
|
isDisabled: rt || ee && !Le,
|
|
469
|
-
isToday: ae(
|
|
470
|
-
dayOfMonthLabel: T.format(
|
|
471
|
-
weekdayLabel: L.format(
|
|
472
|
-
label:
|
|
469
|
+
isToday: ae(B, f),
|
|
470
|
+
dayOfMonthLabel: T.format(B),
|
|
471
|
+
weekdayLabel: L.format(B),
|
|
472
|
+
label: R.format(B),
|
|
473
473
|
availabilityLabel: l("form.appointment.accessibility.calendar.has-availability.aria-label")
|
|
474
474
|
};
|
|
475
475
|
});
|
|
@@ -481,17 +481,17 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
481
481
|
ee,
|
|
482
482
|
a,
|
|
483
483
|
l
|
|
484
|
-
]), pe = de(O ?? void 0) || void 0, Ae =
|
|
484
|
+
]), pe = de(O ?? void 0) || void 0, Ae = P(() => V || D ? [] : (y ?? []).slice(0, v).flatMap((f) => {
|
|
485
485
|
const { startDate: L, endDate: T } = f.slot ?? {};
|
|
486
486
|
if (!L || !T)
|
|
487
487
|
return [];
|
|
488
|
-
const
|
|
488
|
+
const R = de({
|
|
489
489
|
startDate: L,
|
|
490
490
|
endDate: T
|
|
491
491
|
});
|
|
492
492
|
return [
|
|
493
493
|
{
|
|
494
|
-
key:
|
|
494
|
+
key: R,
|
|
495
495
|
startDate: L,
|
|
496
496
|
endDate: T,
|
|
497
497
|
timeRange: tn({
|
|
@@ -500,18 +500,18 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
500
500
|
locale: a,
|
|
501
501
|
timezone: _
|
|
502
502
|
}),
|
|
503
|
-
isSelected:
|
|
503
|
+
isSelected: R === pe
|
|
504
504
|
}
|
|
505
505
|
];
|
|
506
506
|
}), [
|
|
507
507
|
y,
|
|
508
|
-
|
|
508
|
+
v,
|
|
509
509
|
V,
|
|
510
510
|
D,
|
|
511
511
|
a,
|
|
512
512
|
_,
|
|
513
513
|
pe
|
|
514
|
-
]), ye = !D && !!(y != null && y.length) && (
|
|
514
|
+
]), ye = !D && !!(y != null && y.length) && (v || q) < y.length, Ie = h > Ye(/* @__PURE__ */ new Date(), Ne), et = re(
|
|
515
515
|
async (f) => {
|
|
516
516
|
var L;
|
|
517
517
|
if (!(ee || N && ae(f, N))) {
|
|
@@ -558,7 +558,7 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
558
558
|
const L = h, T = te(h, f * j);
|
|
559
559
|
if (b(T), r || s)
|
|
560
560
|
return;
|
|
561
|
-
const
|
|
561
|
+
const R = ++ce.current;
|
|
562
562
|
E(!0), c == null || c.report({
|
|
563
563
|
action: ne.CLICK,
|
|
564
564
|
component: X.PAGINATION
|
|
@@ -570,13 +570,13 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
570
570
|
fromDate: T,
|
|
571
571
|
toDate: cn(te(T, j - 1))
|
|
572
572
|
}));
|
|
573
|
-
|
|
573
|
+
R === ce.current && n({
|
|
574
574
|
availabilityDates: Oe
|
|
575
575
|
});
|
|
576
576
|
} catch {
|
|
577
|
-
|
|
577
|
+
R === ce.current && b(L);
|
|
578
578
|
} finally {
|
|
579
|
-
|
|
579
|
+
R === ce.current && E(!1);
|
|
580
580
|
}
|
|
581
581
|
},
|
|
582
582
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -595,15 +595,15 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
595
595
|
const L = Ae.find((se) => se.key === f);
|
|
596
596
|
if (!L)
|
|
597
597
|
return;
|
|
598
|
-
const { startDate: T, endDate:
|
|
598
|
+
const { startDate: T, endDate: R } = L;
|
|
599
599
|
c == null || c.report({
|
|
600
600
|
action: ne.CLICK,
|
|
601
601
|
component: X.SLOT,
|
|
602
602
|
startTime: new Date(T).valueOf(),
|
|
603
|
-
endTime: new Date(
|
|
603
|
+
endTime: new Date(R).valueOf()
|
|
604
604
|
}), I == null || I({
|
|
605
605
|
startDate: T,
|
|
606
|
-
endDate:
|
|
606
|
+
endDate: R,
|
|
607
607
|
timeZone: _
|
|
608
608
|
});
|
|
609
609
|
},
|
|
@@ -617,7 +617,7 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
617
617
|
), at = re(() => {
|
|
618
618
|
if (!ye)
|
|
619
619
|
return;
|
|
620
|
-
const f =
|
|
620
|
+
const f = v || q;
|
|
621
621
|
c == null || c.report({
|
|
622
622
|
action: ne.CLICK,
|
|
623
623
|
component: X.SHOW_MORE
|
|
@@ -626,9 +626,9 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
626
626
|
});
|
|
627
627
|
}, [
|
|
628
628
|
ye,
|
|
629
|
-
|
|
629
|
+
v,
|
|
630
630
|
c
|
|
631
|
-
]), ot = re(() => A(void 0), []), st =
|
|
631
|
+
]), ot = re(() => A(void 0), []), st = P(() => {
|
|
632
632
|
if (_e)
|
|
633
633
|
return l("form.appointment.empty-state.notification.text");
|
|
634
634
|
if (!V && !D && !(y != null && y.length))
|
|
@@ -681,13 +681,13 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
681
681
|
if (typeof e > "u")
|
|
682
682
|
throw new Error("Appointment parts must be used inside an <Appointment> component");
|
|
683
683
|
return e;
|
|
684
|
-
},
|
|
684
|
+
}, Re = () => {
|
|
685
685
|
const { disabled: e, readOnly: t } = ie();
|
|
686
686
|
return !!e || !!t;
|
|
687
687
|
}, C = ({ children: e, className: t }) => {
|
|
688
|
-
const { days: n, selectDate: a, weekRangeLabel: r } = w(), s =
|
|
688
|
+
const { days: n, selectDate: a, weekRangeLabel: r } = w(), s = k(e, C.PreviousWeek), l = k(e, C.Heading), i = k(e, C.NextWeek), c = k(e, C.Day) ?? /* @__PURE__ */ o.createElement(C.Day, null), D = P(() => n.filter((d) => d.isSelected).map((d) => d.key), [
|
|
689
689
|
n
|
|
690
|
-
]), u =
|
|
690
|
+
]), u = Re(), S = P(() => n.filter((d) => u || d.isDisabled).map((d) => d.key), [
|
|
691
691
|
n,
|
|
692
692
|
u
|
|
693
693
|
]), E = (d) => {
|
|
@@ -700,7 +700,7 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
700
700
|
};
|
|
701
701
|
return /* @__PURE__ */ o.createElement("div", {
|
|
702
702
|
className: t
|
|
703
|
-
}, s, l, i, /* @__PURE__ */ o.createElement(
|
|
703
|
+
}, s, l, i, /* @__PURE__ */ o.createElement(vt, {
|
|
704
704
|
"aria-label": r,
|
|
705
705
|
orientation: "horizontal",
|
|
706
706
|
selectionMode: "single",
|
|
@@ -712,8 +712,8 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
712
712
|
day: d
|
|
713
713
|
}))));
|
|
714
714
|
}, fn = ({ children: e, className: t }) => {
|
|
715
|
-
const { changeWeek: n, canGoToPreviousWeek: a, previousWeekLabel: r, nextWeekLabel: s } = w(), l =
|
|
716
|
-
return
|
|
715
|
+
const { changeWeek: n, canGoToPreviousWeek: a, previousWeekLabel: r, nextWeekLabel: s } = w(), l = Re(), i = J(null), c = J(!1);
|
|
716
|
+
return U(() => {
|
|
717
717
|
var S, E, d;
|
|
718
718
|
if (a || !c.current)
|
|
719
719
|
return;
|
|
@@ -726,7 +726,7 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
726
726
|
}, [
|
|
727
727
|
a,
|
|
728
728
|
s
|
|
729
|
-
]), /* @__PURE__ */ o.createElement(
|
|
729
|
+
]), /* @__PURE__ */ o.createElement(ke, {
|
|
730
730
|
ref: i,
|
|
731
731
|
className: t,
|
|
732
732
|
"aria-label": r,
|
|
@@ -736,8 +736,8 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
736
736
|
}
|
|
737
737
|
}, e ?? "‹");
|
|
738
738
|
}, En = ({ children: e, className: t }) => {
|
|
739
|
-
const { changeWeek: n, nextWeekLabel: a } = w(), r =
|
|
740
|
-
return /* @__PURE__ */ o.createElement(
|
|
739
|
+
const { changeWeek: n, nextWeekLabel: a } = w(), r = Re();
|
|
740
|
+
return /* @__PURE__ */ o.createElement(ke, {
|
|
741
741
|
className: t,
|
|
742
742
|
"aria-label": a,
|
|
743
743
|
isDisabled: r,
|
|
@@ -758,7 +758,7 @@ const sn = "SLOT_UNAVAILABLE", rn = (e) => {
|
|
|
758
758
|
}, a)));
|
|
759
759
|
}, _n = ({ children: e, className: t, ...n }) => {
|
|
760
760
|
const { day: a } = n;
|
|
761
|
-
return /* @__PURE__ */ o.createElement(
|
|
761
|
+
return /* @__PURE__ */ o.createElement(Rt, {
|
|
762
762
|
id: a.key,
|
|
763
763
|
className: t,
|
|
764
764
|
textValue: a.label,
|
|
@@ -775,12 +775,12 @@ C.Heading = Sn;
|
|
|
775
775
|
C.NextWeek = En;
|
|
776
776
|
C.Day = _n;
|
|
777
777
|
const He = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) => {
|
|
778
|
-
const { hasTimezoneNote: a, hasDateTitle: r } = n, { slots: s, selectedSlotKey: l, selectSlot: i, selectedDateLabel: c, isReloadingSlots: D, timezoneLabel: u, pendingFocusIndex: S, consumePendingFocusIndex: E } = w(), { id: d, disabled: b, readOnly: M, required: A, hasError: I } = ie(), { inputId: O, labelId:
|
|
778
|
+
const { hasTimezoneNote: a, hasDateTitle: r } = n, { slots: s, selectedSlotKey: l, selectSlot: i, selectedDateLabel: c, isReloadingSlots: D, timezoneLabel: u, pendingFocusIndex: S, consumePendingFocusIndex: E } = w(), { id: d, disabled: b, readOnly: M, required: A, hasError: I } = ie(), { inputId: O, labelId: x, ariaDescribedBy: z } = le(), Y = J(null), H = k(e, fe.Slot) ?? /* @__PURE__ */ o.createElement(fe.Slot, null), oe = !!r && !!c, $ = [
|
|
779
779
|
z,
|
|
780
780
|
a && u ? Qe(O) : void 0
|
|
781
781
|
].filter(Boolean).join(" ") || void 0, F = (_, N) => {
|
|
782
|
-
var
|
|
783
|
-
(Z = (G = (
|
|
782
|
+
var v, G, Z;
|
|
783
|
+
(Z = (G = (v = Y.current) == null ? void 0 : v.querySelectorAll(He)) == null ? void 0 : G[_]) == null || Z.focus(N);
|
|
784
784
|
};
|
|
785
785
|
return ft(() => {
|
|
786
786
|
var G, Z;
|
|
@@ -790,11 +790,11 @@ const He = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) =>
|
|
|
790
790
|
});
|
|
791
791
|
return;
|
|
792
792
|
}
|
|
793
|
-
const N = Array.from(((Z = document.getElementById(O)) == null ? void 0 : Z.querySelectorAll('[role="option"]')) ?? []),
|
|
794
|
-
|
|
793
|
+
const N = Array.from(((Z = document.getElementById(O)) == null ? void 0 : Z.querySelectorAll('[role="option"]')) ?? []), v = N.find((K) => K.getAttribute("aria-selected") === "true") ?? N.find((K) => K.getAttribute("aria-disabled") !== "true");
|
|
794
|
+
v == null || v.focus({
|
|
795
795
|
preventScroll: !0
|
|
796
796
|
});
|
|
797
|
-
}, d),
|
|
797
|
+
}, d), U(() => {
|
|
798
798
|
S !== void 0 && (F(S), E());
|
|
799
799
|
}, [
|
|
800
800
|
S,
|
|
@@ -811,7 +811,7 @@ const He = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) =>
|
|
|
811
811
|
isReadOnly: M,
|
|
812
812
|
isRequired: A,
|
|
813
813
|
isInvalid: I,
|
|
814
|
-
"aria-labelledby": oe ? Xe(O) :
|
|
814
|
+
"aria-labelledby": oe ? Xe(O) : x,
|
|
815
815
|
"aria-describedby": $,
|
|
816
816
|
"data-refetch": D || void 0
|
|
817
817
|
}, s.map((_) => Se(H, {
|
|
@@ -829,7 +829,7 @@ const He = 'input[type="radio"]', fe = ({ children: e, className: t, ...n }) =>
|
|
|
829
829
|
};
|
|
830
830
|
fe.Slot = Nn;
|
|
831
831
|
const m = ({ children: e, className: t }) => {
|
|
832
|
-
const n = ie(), { id: a, FieldLayout: r } = n, { labelId: s, inputId: l, ariaDescribedBy: i } = le(), c = Et(St.APPOINTMENT), D =
|
|
832
|
+
const n = ie(), { id: a, FieldLayout: r } = n, { labelId: s, inputId: l, ariaDescribedBy: i } = le(), c = Et(St.APPOINTMENT), D = P(() => ({
|
|
833
833
|
...n,
|
|
834
834
|
initialData: c,
|
|
835
835
|
inputId: l,
|
|
@@ -843,7 +843,7 @@ const m = ({ children: e, className: t }) => {
|
|
|
843
843
|
s,
|
|
844
844
|
i,
|
|
845
845
|
a
|
|
846
|
-
]), u =
|
|
846
|
+
]), u = k(e, m.Label), S = k(e, m.Description), E = k(e, m.Error);
|
|
847
847
|
return /* @__PURE__ */ o.createElement(r, {
|
|
848
848
|
fieldId: a,
|
|
849
849
|
renderLabel: () => Se(u, {
|
|
@@ -859,10 +859,10 @@ const m = ({ children: e, className: t }) => {
|
|
|
859
859
|
}, pn = {
|
|
860
860
|
visibility: "hidden"
|
|
861
861
|
}, An = ({ children: e, className: t }) => {
|
|
862
|
-
const { required: n, onFocus: a, onBlur: r } = ie(), { inputId: s, labelId: l, ariaDescribedBy: i } = le(), c = Dn(), D =
|
|
862
|
+
const { required: n, onFocus: a, onBlur: r } = ie(), { inputId: s, labelId: l, ariaDescribedBy: i } = le(), c = Dn(), D = k(e, m.Loader), u = k(e, m.Notification), S = k(e, m.Dates), E = k(e, m.Timezone), d = k(e, m.Format), b = k(e, m.DateTitle), M = k(e, m.Slots), A = k(e, m.ShowMoreSlots);
|
|
863
863
|
return /* @__PURE__ */ o.createElement(je.Provider, {
|
|
864
864
|
value: c
|
|
865
|
-
}, /* @__PURE__ */ o.createElement(
|
|
865
|
+
}, /* @__PURE__ */ o.createElement(Bt, {
|
|
866
866
|
id: s,
|
|
867
867
|
className: t,
|
|
868
868
|
ariaLabelledBy: l,
|
|
@@ -918,7 +918,7 @@ const m = ({ children: e, className: t }) => {
|
|
|
918
918
|
}) : n) : null;
|
|
919
919
|
}, bn = ({ children: e, className: t }) => {
|
|
920
920
|
const { hasMoreSlots: n, showMoreSlots: a, showMoreSlotsLabel: r } = w(), { disabled: s, readOnly: l } = ie();
|
|
921
|
-
return n ? /* @__PURE__ */ o.createElement(
|
|
921
|
+
return n ? /* @__PURE__ */ o.createElement(ke, {
|
|
922
922
|
className: t,
|
|
923
923
|
isDisabled: !!s || !!l,
|
|
924
924
|
onPress: a
|
|
@@ -937,21 +937,21 @@ m.Slots = fe;
|
|
|
937
937
|
m.ShowMoreSlots = bn;
|
|
938
938
|
m.Description = ht;
|
|
939
939
|
m.Error = Ct;
|
|
940
|
-
const gn = "
|
|
940
|
+
const gn = "_appointment_ki27o_1", kn = "_dates_ki27o_5", vn = "_weekHeading_ki27o_30", Rn = "_weekButton_ki27o_36", Mn = "_previousWeek_ki27o_68", Fn = "_nextWeek_ki27o_72", wn = "_day_ki27o_84", hn = "_weekdayLabel_ki27o_94", Cn = "_dayNumber_ki27o_103", Wn = "_indicator_ki27o_107", Bn = "_hint_ki27o_130", Pn = "_slots_ki27o_143", Un = "_dateTitle_ki27o_157", xn = "_slot_ki27o_143", zn = "_slotHover_ki27o_199", Yn = "_slotSelected_ki27o_207", Hn = "_showMoreSlots_ki27o_261", Kn = "_loader_ki27o_292", $n = "_notification_ki27o_328", p = {
|
|
941
941
|
appointment: gn,
|
|
942
|
-
dates:
|
|
943
|
-
weekHeading:
|
|
944
|
-
weekButton:
|
|
942
|
+
dates: kn,
|
|
943
|
+
weekHeading: vn,
|
|
944
|
+
weekButton: Rn,
|
|
945
945
|
previousWeek: Mn,
|
|
946
946
|
nextWeek: Fn,
|
|
947
947
|
day: wn,
|
|
948
948
|
weekdayLabel: hn,
|
|
949
949
|
dayNumber: Cn,
|
|
950
950
|
indicator: Wn,
|
|
951
|
-
hint:
|
|
952
|
-
slots:
|
|
953
|
-
dateTitle:
|
|
954
|
-
slot:
|
|
951
|
+
hint: Bn,
|
|
952
|
+
slots: Pn,
|
|
953
|
+
dateTitle: Un,
|
|
954
|
+
slot: xn,
|
|
955
955
|
slotHover: zn,
|
|
956
956
|
slotSelected: Yn,
|
|
957
957
|
showMoreSlots: Hn,
|
|
@@ -965,7 +965,7 @@ const gn = "_appointment_14etx_1", vn = "_dates_14etx_5", Rn = "_weekHeading_14e
|
|
|
965
965
|
selected: p.slotSelected,
|
|
966
966
|
hover: p.slotHover
|
|
967
967
|
}, Vn = () => {
|
|
968
|
-
const e =
|
|
968
|
+
const e = kt({
|
|
969
969
|
globalClasses: gt,
|
|
970
970
|
moduleClasses: Zn
|
|
971
971
|
});
|
package/dist/component/{bookings-login-bar-rac-DfqRpARE.js → bookings-login-bar-rac-C2HiveJf.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
2
|
import E from "classnames";
|
|
3
|
-
import { bN as d, bY as b, bF as f, bJ as x, W as p } from "./form-
|
|
3
|
+
import { bN as d, bY as b, bF as f, bJ as x, W as p } from "./form-CX77qB-O.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 }) => {
|
|
@@ -2,16 +2,16 @@ import { RicosViewer as $n } from "@wix/ricos/viewer";
|
|
|
2
2
|
import B from "classnames";
|
|
3
3
|
import g, { useMemo as Jn, useRef as Yn, useCallback as Qn } from "react";
|
|
4
4
|
import { CheckboxField as Zn, CheckboxButton as ei } from "react-aria-components";
|
|
5
|
-
import { bk as ri, bN as et, b2 as Zr, b1 as ln, bY as ti, bF as ai, bs as ni, bK as ii, bP as si, bW as oi, o as ui, am as ci, t as fi, aY as li, M as _i, I as vi, s as hi } from "./form-
|
|
5
|
+
import { bk as ri, bN as et, b2 as Zr, b1 as ln, bY as ti, bF as ai, bs as ni, bK as ii, bP as si, bW as oi, o as ui, am as ci, t as fi, aY as li, M as _i, I as vi, s as hi } from "./form-CX77qB-O.js";
|
|
6
6
|
import { f as W, a as yt } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as pi, E as di } from "./field-error-headless-
|
|
7
|
+
import { D as pi, E as di } from "./field-error-headless-BsV6YLEM.js";
|
|
8
8
|
import { Node_Type as yi } from "@wix/ricos/schema";
|
|
9
|
-
import { c as re, r as $, e as E, a as J, d as bi, b as gi } from "./isObjectLike-
|
|
9
|
+
import { c as re, r as $, e as E, a as J, d as bi, b as gi } from "./isObjectLike-B3s7YV-O.js";
|
|
10
10
|
import { S as qi } from "./selection-indicator-XQ8MYHUQ.js";
|
|
11
11
|
import { E as Ci } from "./error-icon-hZxQ6DEy.js";
|
|
12
12
|
import { C as Ai } from "./checkbox-indicator-module-classes-Cozvs_kk.js";
|
|
13
13
|
import { s as oe } from "./field-rac.module-D0QzJXUv.js";
|
|
14
|
-
import { u as mi } from "./use-element-state-class-name-
|
|
14
|
+
import { u as mi } from "./use-element-state-class-name-Dn2rGGPS.js";
|
|
15
15
|
var ue, bt;
|
|
16
16
|
function Ii() {
|
|
17
17
|
if (bt) return ue;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import o, { useRef as q, useMemo as F, useCallback as $, useState as w, useEffect as K } from "react";
|
|
2
2
|
import { CheckboxGroup as A, CheckboxField as M, CheckboxButton as Y, TextField as j, Input as z } from "react-aria-components";
|
|
3
3
|
import { debounce as J } from "ts-debounce";
|
|
4
|
-
import { bN as R, bK as Q, bW as U, bY as X, bP as Z } from "./form-
|
|
4
|
+
import { bN as R, bK as Q, bW as U, bY as X, bP as Z } from "./form-CX77qB-O.js";
|
|
5
5
|
import { f as I, 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-BsV6YLEM.js";
|
|
7
|
+
import { L as ae } from "./field-label-headless-D-kBcceK.js";
|
|
8
8
|
import { F as ne } from "./fieldset-headless-CD3fds9J.js";
|
|
9
9
|
import { S as le } from "./selection-indicator-XQ8MYHUQ.js";
|
|
10
10
|
const N = "Other", se = (e, t) => e.some((r) => !t.includes(r)), B = (e, t) => e.length > 0 && se(e, t), re = (e, t) => {
|