@alfadocs/ui-kit 0.64.0 → 0.66.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/_chunks/{agenda-tray-DA6qj8BL.js → agenda-tray-Bh1KfEOG.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-DBKV27je.js → ai-consent-banner-Btzmk8OH.js} +3 -2
- package/dist/_chunks/{ai-prompt-input-Dx8eXoPm.js → ai-prompt-input-BwEACCPm.js} +2 -2
- package/dist/_chunks/{ai-tools-rail-7tC3GT4h.js → ai-tools-rail-DAfaW8eA.js} +65 -56
- package/dist/_chunks/{alia-sidebar-DlvyXgVC.js → alia-sidebar-CN8pA6c-.js} +7 -7
- package/dist/_chunks/{anamnesis-card-CmkBVAln.js → anamnesis-card-qeLYRG79.js} +2 -2
- package/dist/_chunks/{antenatal-schedule-timeline-CdiqkF05.js → antenatal-schedule-timeline-BfzFjEyb.js} +3 -3
- package/dist/_chunks/{appointment-tray-BwDHhWWC.js → appointment-tray-BQnJEora.js} +2 -2
- package/dist/_chunks/{ar-C68WKG5a.js → ar-Cn5Fq48Z.js} +2 -2
- package/dist/_chunks/{audio-recorder-CdXuT9ln.js → audio-recorder-DjXLP4aF.js} +2 -2
- package/dist/_chunks/{autocomplete-CDqxB68B.js → autocomplete-CcCFlVf-.js} +4 -4
- package/dist/_chunks/{bishop-score-CzjSx-dm.js → bishop-score-DPN4Ched.js} +2 -2
- package/dist/_chunks/{bmi-calculator-DA2NGmVK.js → bmi-calculator-DuUneHuZ.js} +2 -2
- package/dist/_chunks/{booking-ChfvWy3P.js → booking-L8-YP8BJ.js} +148 -148
- package/dist/_chunks/calendar-B6soK1Yb.js +17 -0
- package/dist/_chunks/{calendar-CkuJIg3s.js → calendar-oYWOCrnf.js} +1 -1
- package/dist/_chunks/{care-plan-card-DhZNoXs4.js → care-plan-card-D42WD4-T.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-DW70yBOD.js → care-plan-entry-card-BukNI7Uy.js} +2 -2
- package/dist/_chunks/{carousel.agent-DrX96W-1.js → carousel.agent-vt21A_el.js} +2 -2
- package/dist/_chunks/{chat-input-CFwc7JxL.js → chat-input-B5zjNEUN.js} +2 -2
- package/dist/_chunks/{chat-message-Dm8U2RY1.js → chat-message-3V54YipB.js} +2 -2
- package/dist/_chunks/{code-block-HoddNOKJ.js → code-block-BBWHhIc8.js} +2 -2
- package/dist/_chunks/columns-2-BTOBZbep.js +15 -0
- package/dist/_chunks/{contact-profile-card-DvvVfAA2.js → contact-profile-card-CCeJmjbd.js} +2 -2
- package/dist/_chunks/{cycle-calculator-C_t1Hs8V.js → cycle-calculator-D6LTmtQt.js} +4 -4
- package/dist/_chunks/{date-picker-BfHblqwA.js → date-picker-oGg5BnXL.js} +12 -11
- package/dist/_chunks/{date-picker-variants-CXEAx3O_.js → date-picker-variants-DAcSLTua.js} +358 -372
- package/dist/_chunks/{date-range-picker-hcAMs1wO.js → date-range-picker-C5BWfH_T.js} +34 -25
- package/dist/_chunks/{date-time-picker-H-3Pwqlb.js → date-time-picker-Ze1My59T.js} +18 -17
- package/dist/_chunks/{de-DK4A9_a8.js → de-CrJs4ZsX.js} +2 -2
- package/dist/_chunks/{description-list-BEbK2g93.js → description-list-gkNGWk5G.js} +2 -2
- package/dist/_chunks/{due-date-calculator-Q8MIwEVV.js → due-date-calculator-CIG194vq.js} +4 -4
- package/dist/_chunks/{editable-currency-cell-renderer-BQgaKFCz.js → editable-currency-cell-renderer-f3d0Rhue.js} +535 -535
- package/dist/_chunks/editor-overlay-wYm22wZK.js +88 -0
- package/dist/_chunks/{el-B29HXhG5.js → el-DHdMOIhL.js} +6 -6
- package/dist/_chunks/{es-BOwPVwWn.js → es-DCATCfqo.js} +2 -2
- package/dist/_chunks/{fetal-weight-D1a6BmM-.js → fetal-weight-Xf8-ZoDy.js} +2 -2
- package/dist/_chunks/{fiscal-code-input-BZ0FxwUl.js → fiscal-code-input-DPtqluVb.js} +2 -2
- package/dist/_chunks/{fr-DoDBtn0T.js → fr-BfGEMshF.js} +2 -2
- package/dist/_chunks/{freemium-paywall-gHGA44dW.js → freemium-paywall-CkWjv3o6.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-D85E8lGN.js → gestational-age-calculator-BGsZaWXW.js} +6 -6
- package/dist/_chunks/{hcg-doubling-Dg0Hr7ey.js → hcg-doubling-LH5i6oM7.js} +3 -3
- package/dist/_chunks/{header-Ce1Br27u.js → header-CNszv2WQ.js} +2 -2
- package/dist/_chunks/{header-settings-D5Z2B_Yz.js → header-settings-CNOqIhoW.js} +3 -3
- package/dist/_chunks/{hi-DGByrKby.js → hi-CBFRXEIm.js} +2 -2
- package/dist/_chunks/icon-button-LqoiKcUN.js +78 -0
- package/dist/_chunks/image-C6RM5hfF.js +16 -0
- package/dist/_chunks/{insert-result-C1SYdueh.js → insert-result-njqBthzT.js} +115 -125
- package/dist/_chunks/{isSameWeek-B1odL2vR.js → isSameWeek-I3DfXUp1.js} +2 -2
- package/dist/_chunks/{it-B16rEecm.js → it-nz6vAKwG.js} +7 -7
- package/dist/_chunks/{ja-B0viOgft.js → ja-DQcqdAEJ.js} +2 -2
- package/dist/_chunks/{key-value-pair-CkQIb9EG.js → key-value-pair-BrgbMfbF.js} +2 -2
- package/dist/_chunks/{locale-picker-D99UyZVJ.js → locale-picker-C9JmBht3.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-C4OYAC22.js → marketplace-app-shell-Cou6XnMJ.js} +5 -5
- package/dist/_chunks/{message-card-Dvl1TgaN.js → message-card-Bgcvfj6-.js} +2 -2
- package/dist/_chunks/{message-tray-Dl6GQaaV.js → message-tray-saAVMeHP.js} +3 -3
- package/dist/_chunks/{multi-select-DOLO3K_z.js → multi-select-BcPylvHR.js} +100 -90
- package/dist/_chunks/{nl-cBxEX2QU.js → nl-L5SuDjyl.js} +2 -2
- package/dist/_chunks/{notification-card-CObnGdJu.js → notification-card-BiESdm8q.js} +2 -2
- package/dist/_chunks/{notification-tray-BWHDIjgd.js → notification-tray-DlgenTEe.js} +3 -3
- package/dist/_chunks/{patient-search-CArmRKeg.js → patient-search-Bw9ONucF.js} +2 -2
- package/dist/_chunks/{patient-shell-Coarf346.js → patient-shell-Tgpv0HND.js} +4 -4
- package/dist/_chunks/{patient-summary-card-BnTqxcTr.js → patient-summary-card-Bgso0p_l.js} +2 -2
- package/dist/_chunks/{payment-form-DJ9vnzrT.js → payment-form-nXocS_MX.js} +11 -4
- package/dist/_chunks/{payment-request-card-B_lyobd0.js → payment-request-card-DBz3hVDz.js} +3 -3
- package/dist/_chunks/{pdf-viewer-chMpwpA4.js → pdf-viewer-GsfNqeeT.js} +3 -3
- package/dist/_chunks/{periodontal-chart-card-BYs9hax1.js → periodontal-chart-card-AYyHtU9K.js} +2 -2
- package/dist/_chunks/phone-input-DVXhNlIl.js +563 -0
- package/dist/_chunks/{pl-DtS08ioY.js → pl-YAn5z2wR.js} +3 -3
- package/dist/_chunks/{popover-Devce-tT.js → popover-DTbfAuR0.js} +2 -2
- package/dist/_chunks/{practice-results-CtfciF2v.js → practice-results-CVAgY2RZ.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-7NUaAfob.js → pregnancy-dating-f9aJbiAk.js} +6 -6
- package/dist/_chunks/{pregnancy-weight-gain-DI7X-0JX.js → pregnancy-weight-gain-BMRBeA8V.js} +2 -2
- package/dist/_chunks/{privacy-lock-BN3L-alb.js → privacy-lock-C7JyMf0y.js} +2 -2
- package/dist/_chunks/{product-hub-panel-CkfZBA3t.js → product-hub-panel-CAXDFeGP.js} +2 -2
- package/dist/_chunks/{pt-yFXs1VvH.js → pt-D9xdT5KQ.js} +6 -6
- package/dist/_chunks/{public-header.agent-CYQK6T6F.js → public-header.agent-BOhJgZEU.js} +3 -3
- package/dist/_chunks/{reviews-panel-CPrXu5TX.js → reviews-panel-DBktKm7i.js} +2 -2
- package/dist/_chunks/rich-text-editor-B5XQNxe8.js +1586 -0
- package/dist/_chunks/{ro-DsCzSrzR.js → ro-Cp--52bT.js} +2 -2
- package/dist/_chunks/{ru-DgDxL0pc.js → ru-BM8eX_Zz.js} +3 -3
- package/dist/_chunks/{search-bar-CvN_S0jW.js → search-bar-SY2BcV2N.js} +2 -2
- package/dist/_chunks/{search-input-D3aMvi4l.js → search-input-DbxrnHkW.js} +3 -3
- package/dist/_chunks/{sheet-xbzu4YiY.js → sheet-taJer-Ha.js} +2 -2
- package/dist/_chunks/{sidebar-DPEHzxLZ.js → sidebar-BFwbx74W.js} +12 -1
- package/dist/_chunks/{sign-document--nr5cxsB.js → sign-document-CdAiHiCh.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-BpAjVmsI.js → sign-in-with-alfadocs-button-LppxjlFt.js} +2 -2
- package/dist/_chunks/{signature-field-DbhbpLha.js → signature-field-Dy1JRjzE.js} +10 -3
- package/dist/_chunks/{slot-grid-BlHHP9Qy.js → slot-grid-FsqumOaS.js} +2 -2
- package/dist/_chunks/smart-date-CWikAqZx.js +114 -0
- package/dist/_chunks/{social-sign-in-button-uJYLM366.js → social-sign-in-button-dlpPI5l7.js} +2 -2
- package/dist/_chunks/{spinner-OjQNn8oN.js → spinner-hbwuKwMf.js} +10 -10
- package/dist/_chunks/{sq-DHlCYN67.js → sq-XRpr0r49.js} +6 -6
- package/dist/_chunks/{streaming-text-CfhDqtIT.js → streaming-text-BB9mvK4m.js} +2 -2
- package/dist/_chunks/subDays-BcYv1Lxi.js +8 -0
- package/dist/_chunks/{sv-O0QaQs_s.js → sv-Z3APomE8.js} +2 -2
- package/dist/_chunks/{task-tray-Cb_hK4yb.js → task-tray-CAncV-QQ.js} +2 -2
- package/dist/_chunks/{theme-toggle-DAW7uC0B.js → theme-toggle-DETmSu_h.js} +2 -2
- package/dist/_chunks/{toast.agent-B0MCsvdZ.js → toast.agent-vuLRRn2a.js} +2 -2
- package/dist/_chunks/{tooth-scheme-CiphQaON.js → tooth-scheme-BIx1O2aJ.js} +3 -3
- package/dist/_chunks/{tr-BmNDRuio.js → tr-e0-P4FON.js} +2 -2
- package/dist/_chunks/{transcript-panel-B4HiC7ed.js → transcript-panel-CLHmv83g.js} +2 -2
- package/dist/_chunks/trash-2-rPAKaRgB.js +18 -0
- package/dist/_chunks/{unit-converter-BIbXHIQA.js → unit-converter-C1V3ACM9.js} +2 -2
- package/dist/_chunks/{wallet-pay-button-DuDPBlCO.js → wallet-pay-button--dnR6NfJ.js} +2 -2
- package/dist/_chunks/{workflow-map-BJDUNYlX.js → workflow-map-Bt4Of5dT.js} +137 -149
- package/dist/_chunks/{zh-CN-CgVJZEzz.js → zh-CN-B-igM5gY.js} +3 -3
- package/dist/agent-catalog.json +32 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/ai-tools-rail/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/editor-overlay/editor-overlay.d.ts +19 -0
- package/dist/components/editor-overlay/index.d.ts +3 -0
- package/dist/components/editor-overlay/index.js +5 -0
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/phone-input/phone-input.d.ts +9 -0
- package/dist/components/popover/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +26 -0
- package/dist/components/rich-text-editor/help-me-write-overlay.d.ts +25 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +43 -0
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/smart-date/index.d.ts +3 -0
- package/dist/components/smart-date/index.js +5 -0
- package/dist/components/smart-date/smart-date.d.ts +32 -0
- package/dist/components/social-sign-in-button/index.js +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/wallet-pay-button/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +60 -0
- package/dist/i18n/locales/ar.js +61 -1
- package/dist/i18n/locales/de.d.ts +60 -0
- package/dist/i18n/locales/de.js +61 -1
- package/dist/i18n/locales/el.d.ts +60 -0
- package/dist/i18n/locales/el.js +61 -1
- package/dist/i18n/locales/en.d.ts +60 -0
- package/dist/i18n/locales/en.js +65 -1
- package/dist/i18n/locales/es.d.ts +60 -0
- package/dist/i18n/locales/es.js +61 -1
- package/dist/i18n/locales/fr.d.ts +60 -0
- package/dist/i18n/locales/fr.js +61 -1
- package/dist/i18n/locales/hi.d.ts +60 -0
- package/dist/i18n/locales/hi.js +61 -1
- package/dist/i18n/locales/it.d.ts +60 -0
- package/dist/i18n/locales/it.js +61 -1
- package/dist/i18n/locales/ja.d.ts +60 -0
- package/dist/i18n/locales/ja.js +61 -1
- package/dist/i18n/locales/nl.d.ts +60 -0
- package/dist/i18n/locales/nl.js +61 -1
- package/dist/i18n/locales/pl.d.ts +60 -0
- package/dist/i18n/locales/pl.js +61 -1
- package/dist/i18n/locales/pt.d.ts +60 -0
- package/dist/i18n/locales/pt.js +61 -1
- package/dist/i18n/locales/ro.d.ts +60 -0
- package/dist/i18n/locales/ro.js +61 -1
- package/dist/i18n/locales/ru.d.ts +60 -0
- package/dist/i18n/locales/ru.js +61 -1
- package/dist/i18n/locales/sq.d.ts +60 -0
- package/dist/i18n/locales/sq.js +61 -1
- package/dist/i18n/locales/sv.d.ts +60 -0
- package/dist/i18n/locales/sv.js +61 -1
- package/dist/i18n/locales/tr.d.ts +60 -0
- package/dist/i18n/locales/tr.js +61 -1
- package/dist/i18n/locales/zh.d.ts +60 -0
- package/dist/i18n/locales/zh.js +61 -1
- package/dist/index.js +494 -490
- package/dist/locales/ar.json +61 -1
- package/dist/locales/de.json +61 -1
- package/dist/locales/el.json +61 -1
- package/dist/locales/en.json +61 -1
- package/dist/locales/es.json +61 -1
- package/dist/locales/fr.json +61 -1
- package/dist/locales/hi.json +61 -1
- package/dist/locales/it.json +61 -1
- package/dist/locales/ja.json +61 -1
- package/dist/locales/nl.json +61 -1
- package/dist/locales/pl.json +61 -1
- package/dist/locales/pt.json +61 -1
- package/dist/locales/ro.json +61 -1
- package/dist/locales/ru.json +61 -1
- package/dist/locales/sq.json +61 -1
- package/dist/locales/sv.json +61 -1
- package/dist/locales/tr.json +61 -1
- package/dist/locales/zh.json +61 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +36 -22
- package/package.json +10 -1
- package/dist/_chunks/icon-button-CKEOrN37.js +0 -70
- package/dist/_chunks/phone-input-DfZbPPvh.js +0 -525
- package/dist/_chunks/rich-text-editor-B03qM22-.js +0 -334
- package/dist/_chunks/subDays-Bs00akhK.js +0 -8
|
@@ -7,25 +7,25 @@ import { A as z } from "./alert-_mUKLmwA.js";
|
|
|
7
7
|
import { B as ie } from "./button-DD_0Xdmr.js";
|
|
8
8
|
import { C as Ke } from "./checkbox-DRcOdmXv.js";
|
|
9
9
|
import { C as Bt } from "./checkbox-group-CpUwlHug.js";
|
|
10
|
-
import { D as Et } from "./date-picker-
|
|
10
|
+
import { D as Et } from "./date-picker-oGg5BnXL.js";
|
|
11
11
|
import { E as Vt } from "./email-input-lQivsFrw.js";
|
|
12
12
|
import { F as Z } from "./form-field-BOm9hK35.js";
|
|
13
|
-
import { P as Lt } from "./phone-input-
|
|
13
|
+
import { P as Lt } from "./phone-input-DVXhNlIl.js";
|
|
14
14
|
import { T as Rt } from "./text-area-BIx0tZ05.js";
|
|
15
15
|
import { T as Ce } from "./text-input-BaClJL8Y.js";
|
|
16
|
-
import { S as Ft } from "./spinner-
|
|
17
|
-
import { I as tt } from "./icon-button-
|
|
16
|
+
import { S as Ft } from "./spinner-hbwuKwMf.js";
|
|
17
|
+
import { I as tt } from "./icon-button-LqoiKcUN.js";
|
|
18
18
|
import { S as Oe } from "./select-CEtRcon5.js";
|
|
19
19
|
import { C as Ge } from "./combobox-BC-DFx8G.js";
|
|
20
|
-
import { M as Ue } from "./multi-select-
|
|
20
|
+
import { M as Ue } from "./multi-select-BcPylvHR.js";
|
|
21
21
|
import { S as _e } from "./skeleton-CZbwyJAA.js";
|
|
22
22
|
import { E as dt } from "./empty-state-BLy7tigq.js";
|
|
23
23
|
import { S as $t } from "./stepper-accordion-Dki6r9ZE.js";
|
|
24
24
|
import { S as zt } from "./stepper-progress-DDjq5nei.js";
|
|
25
|
-
import { p as F, S as Kt } from "./slot-grid-
|
|
25
|
+
import { p as F, S as Kt } from "./slot-grid-FsqumOaS.js";
|
|
26
26
|
import { s as le, i as at } from "./isSameDay-DUEiAT0G.js";
|
|
27
|
-
import {
|
|
28
|
-
import { s as Ht } from "./subDays-
|
|
27
|
+
import { w as lt, i as ce, a as je, n as jt, f as ye, d as qt, h as Te, x as Me } from "./date-picker-variants-DAcSLTua.js";
|
|
28
|
+
import { s as Ht } from "./subDays-BcYv1Lxi.js";
|
|
29
29
|
import { C as Gt } from "./chevron-left-CX1jqD2M.js";
|
|
30
30
|
import { C as Ut } from "./chevron-right-BrpYejk0.js";
|
|
31
31
|
import { c as L } from "./createLucideIcon-CrFbzy84.js";
|
|
@@ -131,17 +131,17 @@ const ua = [
|
|
|
131
131
|
}
|
|
132
132
|
],
|
|
133
133
|
["path", { d: "m9 14 2 2 4-4", key: "df797q" }]
|
|
134
|
-
],
|
|
134
|
+
], pa = L("clipboard-check", ua);
|
|
135
135
|
/**
|
|
136
136
|
* @license lucide-react v1.8.0 - ISC
|
|
137
137
|
*
|
|
138
138
|
* This source code is licensed under the ISC license.
|
|
139
139
|
* See the LICENSE file in the root directory of this source tree.
|
|
140
140
|
*/
|
|
141
|
-
const
|
|
141
|
+
const ma = [
|
|
142
142
|
["path", { d: "M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0", key: "1dfaln" }],
|
|
143
143
|
["path", { d: "M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4", key: "1qnva7" }]
|
|
144
|
-
], ga = L("ear",
|
|
144
|
+
], ga = L("ear", ma);
|
|
145
145
|
/**
|
|
146
146
|
* @license lucide-react v1.8.0 - ISC
|
|
147
147
|
*
|
|
@@ -325,11 +325,11 @@ function _a(e) {
|
|
|
325
325
|
return [];
|
|
326
326
|
}
|
|
327
327
|
function Pa(e, t) {
|
|
328
|
-
const a = e.country === Da, i = !a || e.value.insuranceType !== void 0, o = (e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) && i, l = ue(e.value).length > 0,
|
|
328
|
+
const a = e.country === Da, i = !a || e.value.insuranceType !== void 0, o = (e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) && i, l = ue(e.value).length > 0, p = !o || l, r = Be(e.value).length > 0, c = !p || r, m = t.operators, k = !!e.allowOperatorSelection && c && r && !e.lockedOperatorId && m.length > 1, I = c && r, N = (!I || e.value.date !== void 0) && e.value.date !== void 0, D = (!N || e.value.slotKey !== void 0) && e.value.slotKey !== void 0, y = r && m.length === 0;
|
|
329
329
|
return {
|
|
330
330
|
insurance: a,
|
|
331
331
|
specialty: o,
|
|
332
|
-
service:
|
|
332
|
+
service: p,
|
|
333
333
|
operator: k,
|
|
334
334
|
date: I,
|
|
335
335
|
slot: N,
|
|
@@ -365,9 +365,9 @@ function Ba(e) {
|
|
|
365
365
|
let o;
|
|
366
366
|
if (e.value.date && e.value.slotKey) {
|
|
367
367
|
const c = e.availableSlots[e.value.date];
|
|
368
|
-
c && (o = c.find((
|
|
368
|
+
c && (o = c.find((m) => m.key === e.value.slotKey));
|
|
369
369
|
}
|
|
370
|
-
const l = Be(e.value), u = l.length > 0 ? e.services.find((c) => c.id === l[0]) : void 0,
|
|
370
|
+
const l = Be(e.value), u = l.length > 0 ? e.services.find((c) => c.id === l[0]) : void 0, p = ue(e.value).length > 0, r = l.length > 0 && e.value.date !== void 0 && e.value.slotKey !== void 0 && (!a.insurance || e.value.insuranceType !== void 0) && (!a.specialty || p);
|
|
371
371
|
return {
|
|
372
372
|
gates: a,
|
|
373
373
|
filtered: t,
|
|
@@ -405,7 +405,7 @@ function ut(e, t) {
|
|
|
405
405
|
details: void 0
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function pt(e, t) {
|
|
409
409
|
return {
|
|
410
410
|
...e,
|
|
411
411
|
specialtyId: void 0,
|
|
@@ -419,7 +419,7 @@ function mt(e, t) {
|
|
|
419
419
|
details: void 0
|
|
420
420
|
};
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function mt(e, t) {
|
|
423
423
|
return {
|
|
424
424
|
...e,
|
|
425
425
|
serviceId: t,
|
|
@@ -521,8 +521,8 @@ function La(e, t, a) {
|
|
|
521
521
|
n.has("email") && o.push("email");
|
|
522
522
|
const l = Va(t), u = n.has("whatsapp");
|
|
523
523
|
u && l && o.push("whatsapp"), !u && n.has("sms") && o.push("sms");
|
|
524
|
-
const
|
|
525
|
-
return qe.filter((r) =>
|
|
524
|
+
const p = new Set(o);
|
|
525
|
+
return qe.filter((r) => p.has(r));
|
|
526
526
|
}
|
|
527
527
|
const it = 500, Ra = /^[A-Z0-9]{16}$/, Fa = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 300, De = { state: "idle" }, Ye = ot(
|
|
528
528
|
({
|
|
@@ -534,10 +534,10 @@ const it = 500, Ra = /^[A-Z0-9]{16}$/, Fa = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
534
534
|
requireInsuranceNumber: o = !1,
|
|
535
535
|
insuranceType: l,
|
|
536
536
|
showNote: u = !1,
|
|
537
|
-
showReturningPatientFlag:
|
|
537
|
+
showReturningPatientFlag: p = !1,
|
|
538
538
|
privacyPolicyUrl: r,
|
|
539
539
|
termsUrl: c,
|
|
540
|
-
validateCodiceFiscale:
|
|
540
|
+
validateCodiceFiscale: m,
|
|
541
541
|
validateInsuranceNumber: k,
|
|
542
542
|
submitting: I = !1,
|
|
543
543
|
summarySlot: v,
|
|
@@ -565,14 +565,14 @@ const it = 500, Ra = /^[A-Z0-9]{16}$/, Fa = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
565
565
|
), Q = w(
|
|
566
566
|
() => bt(M),
|
|
567
567
|
[M]
|
|
568
|
-
), q = Q.length >= 2,
|
|
568
|
+
), q = Q.length >= 2, pe = se(!1);
|
|
569
569
|
H(() => {
|
|
570
570
|
if (!q) {
|
|
571
571
|
e.confirmationChannels !== void 0 && P({ confirmationChannels: void 0 });
|
|
572
572
|
return;
|
|
573
573
|
}
|
|
574
574
|
if (e.confirmationChannels !== void 0) {
|
|
575
|
-
|
|
575
|
+
pe.current = !0;
|
|
576
576
|
return;
|
|
577
577
|
}
|
|
578
578
|
const h = La(
|
|
@@ -580,7 +580,7 @@ const it = 500, Ra = /^[A-Z0-9]{16}$/, Fa = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
580
580
|
e.mobilePhone,
|
|
581
581
|
D
|
|
582
582
|
);
|
|
583
|
-
|
|
583
|
+
pe.current = !0, P({ confirmationChannels: h });
|
|
584
584
|
}, [
|
|
585
585
|
q,
|
|
586
586
|
Q,
|
|
@@ -593,7 +593,7 @@ const it = 500, Ra = /^[A-Z0-9]{16}$/, Fa = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
593
593
|
), xe = q && ee.length === 0;
|
|
594
594
|
H(() => {
|
|
595
595
|
const h = e.codiceFiscale;
|
|
596
|
-
if (!i || !
|
|
596
|
+
if (!i || !m || !h) {
|
|
597
597
|
g(De);
|
|
598
598
|
return;
|
|
599
599
|
}
|
|
@@ -605,7 +605,7 @@ const it = 500, Ra = /^[A-Z0-9]{16}$/, Fa = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
605
605
|
return;
|
|
606
606
|
}
|
|
607
607
|
g({ state: "pending" }), E.current && clearTimeout(E.current), E.current = setTimeout(() => {
|
|
608
|
-
|
|
608
|
+
m(h).then(
|
|
609
609
|
(C) => g(
|
|
610
610
|
C.valid ? { state: "valid" } : { state: "invalid", hint: C.hint }
|
|
611
611
|
)
|
|
@@ -616,7 +616,7 @@ const it = 500, Ra = /^[A-Z0-9]{16}$/, Fa = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
616
616
|
})
|
|
617
617
|
);
|
|
618
618
|
}, nt);
|
|
619
|
-
}, [i,
|
|
619
|
+
}, [i, m, e.codiceFiscale, d]);
|
|
620
620
|
const Y = o && l === "public";
|
|
621
621
|
H(() => {
|
|
622
622
|
const h = e.insuranceNumber;
|
|
@@ -640,17 +640,17 @@ const it = 500, Ra = /^[A-Z0-9]{16}$/, Fa = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
640
640
|
const ne = w(
|
|
641
641
|
() => !!(e.email && Fa.test(e.email)),
|
|
642
642
|
[e.email]
|
|
643
|
-
),
|
|
643
|
+
), me = w(
|
|
644
644
|
() => !!(e.mobilePhone && e.mobilePhone.length >= 6),
|
|
645
645
|
[e.mobilePhone]
|
|
646
646
|
), Se = w(() => {
|
|
647
647
|
var h, C;
|
|
648
|
-
return !(!((h = e.firstName) != null && h.trim()) || !((C = e.lastName) != null && C.trim()) || !ne || !
|
|
648
|
+
return !(!((h = e.firstName) != null && h.trim()) || !((C = e.lastName) != null && C.trim()) || !ne || !me || i && x.state !== "valid" || n && !e.dateOfBirth || Y && S.state !== "valid");
|
|
649
649
|
}, [
|
|
650
650
|
e.firstName,
|
|
651
651
|
e.lastName,
|
|
652
652
|
ne,
|
|
653
|
-
|
|
653
|
+
me,
|
|
654
654
|
i,
|
|
655
655
|
x.state,
|
|
656
656
|
n,
|
|
@@ -781,7 +781,7 @@ const it = 500, Ra = /^[A-Z0-9]{16}$/, Fa = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
781
781
|
{
|
|
782
782
|
label: d("booking.details.mobilePhone.label"),
|
|
783
783
|
required: !0,
|
|
784
|
-
error: A.mobilePhone && !
|
|
784
|
+
error: A.mobilePhone && !me ? d("booking.details.mobilePhone.invalid") : void 0,
|
|
785
785
|
children: /* @__PURE__ */ s(
|
|
786
786
|
Lt,
|
|
787
787
|
{
|
|
@@ -871,7 +871,7 @@ const it = 500, Ra = /^[A-Z0-9]{16}$/, Fa = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
871
871
|
)
|
|
872
872
|
}
|
|
873
873
|
) : null,
|
|
874
|
-
|
|
874
|
+
p ? /* @__PURE__ */ s(
|
|
875
875
|
Ke,
|
|
876
876
|
{
|
|
877
877
|
checked: !!e.returningPatient,
|
|
@@ -955,7 +955,7 @@ const it = 500, Ra = /^[A-Z0-9]{16}$/, Fa = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
955
955
|
size: "md",
|
|
956
956
|
type: "submit",
|
|
957
957
|
disabled: !oe,
|
|
958
|
-
startIcon: I ? /* @__PURE__ */ s(Ft, { size: "sm" }) : void 0,
|
|
958
|
+
startIcon: I ? /* @__PURE__ */ s(Ft, { variant: "pulse", size: "sm" }) : void 0,
|
|
959
959
|
children: d("booking.details.submit")
|
|
960
960
|
}
|
|
961
961
|
)
|
|
@@ -1011,7 +1011,7 @@ const $a = Pe(
|
|
|
1011
1011
|
[/\b(scan|rx|x-?ray|raggi|imag|radio|risonan|ecograf|ultras)/i, Qt],
|
|
1012
1012
|
[/\b(vacc|inject|inie|punto)/i, st],
|
|
1013
1013
|
[/\b(derma|skin|pelle)/i, ea],
|
|
1014
|
-
[/\b(prima\s*visit|first\s*visit|consult|consulto|valutaz)/i,
|
|
1014
|
+
[/\b(prima\s*visit|first\s*visit|consult|consulto|valutaz)/i, pa],
|
|
1015
1015
|
[/\b(general|medicin|family|control|check[-\s]?up)/i, aa]
|
|
1016
1016
|
];
|
|
1017
1017
|
function Ka(e) {
|
|
@@ -1054,7 +1054,7 @@ function Ga({
|
|
|
1054
1054
|
locale: i,
|
|
1055
1055
|
loading: n
|
|
1056
1056
|
}) {
|
|
1057
|
-
const { t: o } = O(), l = w(() => t ? ye(F(t)) : e.length > 0 ? ye(F(e[0])) : ye(/* @__PURE__ */ new Date()), [t, e]), [u,
|
|
1057
|
+
const { t: o } = O(), l = w(() => t ? ye(F(t)) : e.length > 0 ? ye(F(e[0])) : ye(/* @__PURE__ */ new Date()), [t, e]), [u, p] = K(l), [r, c] = K(null), m = w(() => {
|
|
1058
1058
|
const y = ye(u), b = qt(u), d = y.getDay(), T = b.getDate(), x = [];
|
|
1059
1059
|
for (let g = d; g > 0; g -= 1) {
|
|
1060
1060
|
const S = new Date(y);
|
|
@@ -1095,11 +1095,11 @@ function Ga({
|
|
|
1095
1095
|
), M = w(() => {
|
|
1096
1096
|
if (r) return r;
|
|
1097
1097
|
if (t) return F(t);
|
|
1098
|
-
const y =
|
|
1098
|
+
const y = m.find(
|
|
1099
1099
|
(b) => Me(b, u) && N(b)
|
|
1100
1100
|
);
|
|
1101
|
-
return y || (
|
|
1102
|
-
}, [r, t,
|
|
1101
|
+
return y || (m.find((b) => Me(b, u)) ?? null);
|
|
1102
|
+
}, [r, t, m, u, N]), D = j(
|
|
1103
1103
|
(y, b) => {
|
|
1104
1104
|
let d = null;
|
|
1105
1105
|
switch (y.key) {
|
|
@@ -1129,7 +1129,7 @@ function Ga({
|
|
|
1129
1129
|
default:
|
|
1130
1130
|
return;
|
|
1131
1131
|
}
|
|
1132
|
-
d && (y.preventDefault(), Me(d, u) ||
|
|
1132
|
+
d && (y.preventDefault(), Me(d, u) || p(ye(d)), c(d));
|
|
1133
1133
|
},
|
|
1134
1134
|
[N, a, u]
|
|
1135
1135
|
);
|
|
@@ -1156,7 +1156,7 @@ function Ga({
|
|
|
1156
1156
|
intent: "ghost",
|
|
1157
1157
|
flipIconInRtl: !0,
|
|
1158
1158
|
onClick: () => {
|
|
1159
|
-
|
|
1159
|
+
p((y) => Ca(y)), c(null);
|
|
1160
1160
|
}
|
|
1161
1161
|
}
|
|
1162
1162
|
),
|
|
@@ -1177,7 +1177,7 @@ function Ga({
|
|
|
1177
1177
|
intent: "ghost",
|
|
1178
1178
|
flipIconInRtl: !0,
|
|
1179
1179
|
onClick: () => {
|
|
1180
|
-
|
|
1180
|
+
p((y) => lt(y, 1)), c(null);
|
|
1181
1181
|
}
|
|
1182
1182
|
}
|
|
1183
1183
|
)
|
|
@@ -1210,7 +1210,7 @@ function Ga({
|
|
|
1210
1210
|
{
|
|
1211
1211
|
role: "row",
|
|
1212
1212
|
className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]",
|
|
1213
|
-
children:
|
|
1213
|
+
children: m.slice(b * 7, b * 7 + 7).map((d, T) => {
|
|
1214
1214
|
const x = b * 7 + T, g = Me(d, u), S = g && N(d), _ = t ? at(d, F(t)) : !1, A = g ? _ ? "selected" : S ? "available" : "unavailable" : "outside", G = M ? at(M, d) : !1, B = (() => {
|
|
1215
1215
|
try {
|
|
1216
1216
|
return new Intl.DateTimeFormat(i, {
|
|
@@ -1281,40 +1281,40 @@ function Ya({
|
|
|
1281
1281
|
}) {
|
|
1282
1282
|
const { t: i } = O(), n = rt(), [o, l] = K(() => {
|
|
1283
1283
|
if (t) {
|
|
1284
|
-
const c = e.findIndex((
|
|
1284
|
+
const c = e.findIndex((m) => m.id === t);
|
|
1285
1285
|
if (c >= 0) return c;
|
|
1286
1286
|
}
|
|
1287
1287
|
return 0;
|
|
1288
|
-
}), u = se(/* @__PURE__ */ new Map()),
|
|
1289
|
-
var
|
|
1290
|
-
(
|
|
1288
|
+
}), u = se(/* @__PURE__ */ new Map()), p = j((c) => {
|
|
1289
|
+
var m;
|
|
1290
|
+
(m = u.current.get(c)) == null || m.focus();
|
|
1291
1291
|
}, []), r = j(
|
|
1292
|
-
(c,
|
|
1292
|
+
(c, m, k) => {
|
|
1293
1293
|
const I = e.length;
|
|
1294
1294
|
if (I !== 0)
|
|
1295
1295
|
switch (c.key) {
|
|
1296
1296
|
case "ArrowDown":
|
|
1297
1297
|
case "ArrowRight": {
|
|
1298
1298
|
c.preventDefault();
|
|
1299
|
-
const v = (
|
|
1300
|
-
l(v),
|
|
1299
|
+
const v = (m + 1) % I;
|
|
1300
|
+
l(v), p(v);
|
|
1301
1301
|
break;
|
|
1302
1302
|
}
|
|
1303
1303
|
case "ArrowUp":
|
|
1304
1304
|
case "ArrowLeft": {
|
|
1305
1305
|
c.preventDefault();
|
|
1306
|
-
const v = (
|
|
1307
|
-
l(v),
|
|
1306
|
+
const v = (m - 1 + I) % I;
|
|
1307
|
+
l(v), p(v);
|
|
1308
1308
|
break;
|
|
1309
1309
|
}
|
|
1310
1310
|
case "Home": {
|
|
1311
|
-
c.preventDefault(), l(0),
|
|
1311
|
+
c.preventDefault(), l(0), p(0);
|
|
1312
1312
|
break;
|
|
1313
1313
|
}
|
|
1314
1314
|
case "End": {
|
|
1315
1315
|
c.preventDefault();
|
|
1316
1316
|
const v = I - 1;
|
|
1317
|
-
l(v),
|
|
1317
|
+
l(v), p(v);
|
|
1318
1318
|
break;
|
|
1319
1319
|
}
|
|
1320
1320
|
case "Enter":
|
|
@@ -1324,7 +1324,7 @@ function Ya({
|
|
|
1324
1324
|
}
|
|
1325
1325
|
}
|
|
1326
1326
|
},
|
|
1327
|
-
[e.length,
|
|
1327
|
+
[e.length, p, a]
|
|
1328
1328
|
);
|
|
1329
1329
|
return e.length === 0 ? null : /* @__PURE__ */ s(
|
|
1330
1330
|
"div",
|
|
@@ -1333,8 +1333,8 @@ function Ya({
|
|
|
1333
1333
|
"aria-label": i("booking.serviceListLabel"),
|
|
1334
1334
|
id: n,
|
|
1335
1335
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
1336
|
-
children: e.map((c,
|
|
1337
|
-
const k = t === c.id, I = o ===
|
|
1336
|
+
children: e.map((c, m) => {
|
|
1337
|
+
const k = t === c.id, I = o === m, v = i("booking.serviceCardLabel", {
|
|
1338
1338
|
label: c.label,
|
|
1339
1339
|
duration: c.durationMin
|
|
1340
1340
|
}), N = ja(c);
|
|
@@ -1342,7 +1342,7 @@ function Ya({
|
|
|
1342
1342
|
"button",
|
|
1343
1343
|
{
|
|
1344
1344
|
ref: (M) => {
|
|
1345
|
-
M ? u.current.set(
|
|
1345
|
+
M ? u.current.set(m, M) : u.current.delete(m);
|
|
1346
1346
|
},
|
|
1347
1347
|
type: "button",
|
|
1348
1348
|
role: "radio",
|
|
@@ -1350,8 +1350,8 @@ function Ya({
|
|
|
1350
1350
|
"aria-label": v,
|
|
1351
1351
|
tabIndex: I ? 0 : -1,
|
|
1352
1352
|
onClick: () => a(c.id),
|
|
1353
|
-
onFocus: () => l(
|
|
1354
|
-
onKeyDown: (M) => r(M,
|
|
1353
|
+
onFocus: () => l(m),
|
|
1354
|
+
onKeyDown: (M) => r(M, m, c.id),
|
|
1355
1355
|
className: Ua({
|
|
1356
1356
|
state: k ? "selected" : "idle"
|
|
1357
1357
|
}),
|
|
@@ -1429,25 +1429,25 @@ function Xa({
|
|
|
1429
1429
|
} catch {
|
|
1430
1430
|
return e;
|
|
1431
1431
|
}
|
|
1432
|
-
}, [e, o]),
|
|
1433
|
-
const
|
|
1432
|
+
}, [e, o]), p = w(() => {
|
|
1433
|
+
const m = {
|
|
1434
1434
|
morning: [],
|
|
1435
1435
|
afternoon: [],
|
|
1436
1436
|
evening: []
|
|
1437
1437
|
};
|
|
1438
1438
|
for (const k of t)
|
|
1439
|
-
|
|
1440
|
-
return
|
|
1441
|
-
}, [t]), r = t.filter((
|
|
1439
|
+
m[Za(k.time)].push(k);
|
|
1440
|
+
return m;
|
|
1441
|
+
}, [t]), r = t.filter((m) => m.available).length, c = ["morning", "afternoon", "evening"];
|
|
1442
1442
|
return n ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1443
1443
|
/* @__PURE__ */ s(_e, { variant: "text", width: "60%" }),
|
|
1444
|
-
[0, 1].map((
|
|
1444
|
+
[0, 1].map((m) => /* @__PURE__ */ s(
|
|
1445
1445
|
"div",
|
|
1446
1446
|
{
|
|
1447
1447
|
className: "ds:grid ds:grid-cols-3 ds:gap-[var(--spacing-xs)]",
|
|
1448
1448
|
children: [0, 1, 2].map((k) => /* @__PURE__ */ s(_e, { variant: "rounded", height: "44px" }, k))
|
|
1449
1449
|
},
|
|
1450
|
-
|
|
1450
|
+
m
|
|
1451
1451
|
))
|
|
1452
1452
|
] }) : r === 0 ? /* @__PURE__ */ s(dt, { variant: "no-results", title: l("booking.noSlotsForDate") }) : /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
1453
1453
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:items-baseline ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
@@ -1463,10 +1463,10 @@ function Xa({
|
|
|
1463
1463
|
] }),
|
|
1464
1464
|
/* @__PURE__ */ s("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: l("booking.slotsAvailable", { count: r }) })
|
|
1465
1465
|
] }),
|
|
1466
|
-
c.map((
|
|
1467
|
-
const k = m
|
|
1466
|
+
c.map((m) => {
|
|
1467
|
+
const k = p[m];
|
|
1468
1468
|
if (k.length === 0) return null;
|
|
1469
|
-
const I = Wa[
|
|
1469
|
+
const I = Wa[m];
|
|
1470
1470
|
return /* @__PURE__ */ f(
|
|
1471
1471
|
"div",
|
|
1472
1472
|
{
|
|
@@ -1474,13 +1474,13 @@ function Xa({
|
|
|
1474
1474
|
children: [
|
|
1475
1475
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:text-[color:var(--muted-foreground)]", children: [
|
|
1476
1476
|
/* @__PURE__ */ s(I, { "aria-hidden": "true", className: "ds:size-3.5" }),
|
|
1477
|
-
/* @__PURE__ */ s("span", { className: "type-meta ds:font-[var(--font-weight-semibold)] ds:uppercase", children: l(`booking.timeOfDay.${
|
|
1477
|
+
/* @__PURE__ */ s("span", { className: "type-meta ds:font-[var(--font-weight-semibold)] ds:uppercase", children: l(`booking.timeOfDay.${m}`) })
|
|
1478
1478
|
] }),
|
|
1479
1479
|
/* @__PURE__ */ s(
|
|
1480
1480
|
"div",
|
|
1481
1481
|
{
|
|
1482
1482
|
role: "group",
|
|
1483
|
-
"aria-label": l(`booking.timeOfDay.${
|
|
1483
|
+
"aria-label": l(`booking.timeOfDay.${m}`),
|
|
1484
1484
|
className: "ds:grid ds:grid-cols-3 ds:gap-[var(--spacing-xs)] ds:sm:grid-cols-4",
|
|
1485
1485
|
children: k.map((v) => {
|
|
1486
1486
|
const N = v.key === a, M = v.available ? N ? "selected" : "idle" : "unavailable";
|
|
@@ -1505,7 +1505,7 @@ function Xa({
|
|
|
1505
1505
|
)
|
|
1506
1506
|
]
|
|
1507
1507
|
},
|
|
1508
|
-
|
|
1508
|
+
m
|
|
1509
1509
|
);
|
|
1510
1510
|
})
|
|
1511
1511
|
] });
|
|
@@ -1520,9 +1520,9 @@ function Qa({
|
|
|
1520
1520
|
onWindowChange: o,
|
|
1521
1521
|
loadingDates: l,
|
|
1522
1522
|
loadingSlots: u,
|
|
1523
|
-
locale:
|
|
1523
|
+
locale: p
|
|
1524
1524
|
}) {
|
|
1525
|
-
const r = w(() => le(/* @__PURE__ */ new Date()), []), [c,
|
|
1525
|
+
const r = w(() => le(/* @__PURE__ */ new Date()), []), [c, m] = K(() => {
|
|
1526
1526
|
if (a.date) {
|
|
1527
1527
|
const g = le(F(a.date));
|
|
1528
1528
|
if (!ce(r, g)) return g;
|
|
@@ -1546,12 +1546,12 @@ function Qa({
|
|
|
1546
1546
|
}));
|
|
1547
1547
|
return { date: A, slots: B };
|
|
1548
1548
|
}), [c, t]), v = ce(c, r), N = !0, M = j(() => {
|
|
1549
|
-
|
|
1549
|
+
m((g) => {
|
|
1550
1550
|
const S = Ht(g, Ae);
|
|
1551
1551
|
return ce(r, S) ? r : S;
|
|
1552
1552
|
});
|
|
1553
1553
|
}, [r]), D = j(() => {
|
|
1554
|
-
|
|
1554
|
+
m((g) => je(g, Ae));
|
|
1555
1555
|
}, []);
|
|
1556
1556
|
H(() => {
|
|
1557
1557
|
if (e.length === 0) return;
|
|
@@ -1559,7 +1559,7 @@ function Qa({
|
|
|
1559
1559
|
!ce(g, r) || e.some((_) => {
|
|
1560
1560
|
const A = le(F(_));
|
|
1561
1561
|
return !ce(A, k) && !jt(A, c);
|
|
1562
|
-
}) ||
|
|
1562
|
+
}) || m(g);
|
|
1563
1563
|
}, [e]), H(() => {
|
|
1564
1564
|
o == null || o(ae(c), ae(k));
|
|
1565
1565
|
}, [c, k, o]);
|
|
@@ -1577,8 +1577,8 @@ function Qa({
|
|
|
1577
1577
|
Je,
|
|
1578
1578
|
{
|
|
1579
1579
|
nextAvailableDate: T,
|
|
1580
|
-
onJump: () =>
|
|
1581
|
-
locale:
|
|
1580
|
+
onJump: () => m(le(F(T))),
|
|
1581
|
+
locale: p
|
|
1582
1582
|
}
|
|
1583
1583
|
) : null,
|
|
1584
1584
|
/* @__PURE__ */ s(
|
|
@@ -1588,7 +1588,7 @@ function Qa({
|
|
|
1588
1588
|
state: b,
|
|
1589
1589
|
selectedSlotId: a.slotKey,
|
|
1590
1590
|
maxInitialSlotsPerDay: 6,
|
|
1591
|
-
locale:
|
|
1591
|
+
locale: p,
|
|
1592
1592
|
hasPrevious: v,
|
|
1593
1593
|
hasNext: N,
|
|
1594
1594
|
onSlotSelect: y,
|
|
@@ -1607,7 +1607,7 @@ function yt(e) {
|
|
|
1607
1607
|
onWindowChange: o,
|
|
1608
1608
|
loadingDates: l,
|
|
1609
1609
|
loadingSlots: u,
|
|
1610
|
-
locale:
|
|
1610
|
+
locale: p,
|
|
1611
1611
|
datePickerStyle: r
|
|
1612
1612
|
} = e;
|
|
1613
1613
|
return r === "four-day-grid" ? /* @__PURE__ */ s(
|
|
@@ -1621,7 +1621,7 @@ function yt(e) {
|
|
|
1621
1621
|
onWindowChange: o,
|
|
1622
1622
|
loadingDates: l,
|
|
1623
1623
|
loadingSlots: u,
|
|
1624
|
-
locale:
|
|
1624
|
+
locale: p
|
|
1625
1625
|
}
|
|
1626
1626
|
) : /* @__PURE__ */ s(
|
|
1627
1627
|
Ga,
|
|
@@ -1631,7 +1631,7 @@ function yt(e) {
|
|
|
1631
1631
|
onSelectDate: (c) => {
|
|
1632
1632
|
i(Ee(a, c)), n == null || n(c);
|
|
1633
1633
|
},
|
|
1634
|
-
locale:
|
|
1634
|
+
locale: p,
|
|
1635
1635
|
loading: l ?? u
|
|
1636
1636
|
}
|
|
1637
1637
|
);
|
|
@@ -1682,9 +1682,9 @@ function St({
|
|
|
1682
1682
|
const { t: l } = O(), u = e.map((r) => ({
|
|
1683
1683
|
value: r.id,
|
|
1684
1684
|
label: r.label
|
|
1685
|
-
})),
|
|
1685
|
+
})), p = /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: l("booking.specialty.heading") });
|
|
1686
1686
|
return o === "multi-select" && n ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1687
|
-
|
|
1687
|
+
p,
|
|
1688
1688
|
/* @__PURE__ */ s(
|
|
1689
1689
|
Ue,
|
|
1690
1690
|
{
|
|
@@ -1697,7 +1697,7 @@ function St({
|
|
|
1697
1697
|
}
|
|
1698
1698
|
)
|
|
1699
1699
|
] }) : o === "combobox" ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1700
|
-
|
|
1700
|
+
p,
|
|
1701
1701
|
/* @__PURE__ */ s(
|
|
1702
1702
|
Ge,
|
|
1703
1703
|
{
|
|
@@ -1710,7 +1710,7 @@ function St({
|
|
|
1710
1710
|
}
|
|
1711
1711
|
)
|
|
1712
1712
|
] }) : /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1713
|
-
|
|
1713
|
+
p,
|
|
1714
1714
|
/* @__PURE__ */ s(
|
|
1715
1715
|
Oe,
|
|
1716
1716
|
{
|
|
@@ -1732,13 +1732,13 @@ function It({
|
|
|
1732
1732
|
pickerStyle: o,
|
|
1733
1733
|
compact: l
|
|
1734
1734
|
}) {
|
|
1735
|
-
const { t: u } = O(),
|
|
1736
|
-
value:
|
|
1737
|
-
label: `${
|
|
1738
|
-
minutes:
|
|
1735
|
+
const { t: u } = O(), p = o ?? (l ? "select" : "cards"), r = e.map((m) => ({
|
|
1736
|
+
value: m.id,
|
|
1737
|
+
label: `${m.label} · ${u("booking.serviceSummary", {
|
|
1738
|
+
minutes: m.durationMin
|
|
1739
1739
|
})}`
|
|
1740
1740
|
})), c = /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: u("booking.service.heading") });
|
|
1741
|
-
return
|
|
1741
|
+
return p === "multi-select" && n ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1742
1742
|
c,
|
|
1743
1743
|
/* @__PURE__ */ s(
|
|
1744
1744
|
Ue,
|
|
@@ -1751,27 +1751,27 @@ function It({
|
|
|
1751
1751
|
allowClear: !0
|
|
1752
1752
|
}
|
|
1753
1753
|
)
|
|
1754
|
-
] }) :
|
|
1754
|
+
] }) : p === "combobox" ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1755
1755
|
c,
|
|
1756
1756
|
/* @__PURE__ */ s(
|
|
1757
1757
|
Ge,
|
|
1758
1758
|
{
|
|
1759
1759
|
options: r,
|
|
1760
1760
|
value: t ?? "",
|
|
1761
|
-
onValueChange: (
|
|
1761
|
+
onValueChange: (m) => i(m === "" ? "" : m),
|
|
1762
1762
|
placeholder: u("booking.service.placeholder"),
|
|
1763
1763
|
"aria-label": u("booking.service.heading"),
|
|
1764
1764
|
clearable: !0
|
|
1765
1765
|
}
|
|
1766
1766
|
)
|
|
1767
|
-
] }) :
|
|
1767
|
+
] }) : p === "select" ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1768
1768
|
c,
|
|
1769
1769
|
/* @__PURE__ */ s(
|
|
1770
1770
|
Oe,
|
|
1771
1771
|
{
|
|
1772
1772
|
options: r,
|
|
1773
1773
|
value: t ?? "",
|
|
1774
|
-
onValueChange: (
|
|
1774
|
+
onValueChange: (m) => i(m),
|
|
1775
1775
|
placeholder: u("booking.service.placeholder"),
|
|
1776
1776
|
"aria-label": u("booking.service.heading")
|
|
1777
1777
|
}
|
|
@@ -1817,7 +1817,7 @@ function Nt({
|
|
|
1817
1817
|
)
|
|
1818
1818
|
] });
|
|
1819
1819
|
}
|
|
1820
|
-
const
|
|
1820
|
+
const p = [
|
|
1821
1821
|
{ value: X, label: l("booking.operator.all") },
|
|
1822
1822
|
...e.map((r) => ({ value: r.id, label: r.name }))
|
|
1823
1823
|
];
|
|
@@ -1826,7 +1826,7 @@ function Nt({
|
|
|
1826
1826
|
/* @__PURE__ */ s(
|
|
1827
1827
|
Ge,
|
|
1828
1828
|
{
|
|
1829
|
-
options:
|
|
1829
|
+
options: p,
|
|
1830
1830
|
value: t ?? X,
|
|
1831
1831
|
onValueChange: (r) => i(r === "" ? X : r),
|
|
1832
1832
|
placeholder: l("booking.operator.placeholder"),
|
|
@@ -1839,7 +1839,7 @@ function Nt({
|
|
|
1839
1839
|
/* @__PURE__ */ s(
|
|
1840
1840
|
Oe,
|
|
1841
1841
|
{
|
|
1842
|
-
options:
|
|
1842
|
+
options: p,
|
|
1843
1843
|
value: t ?? X,
|
|
1844
1844
|
onValueChange: (r) => i(r),
|
|
1845
1845
|
placeholder: l("booking.operator.placeholder"),
|
|
@@ -1885,13 +1885,13 @@ function es({
|
|
|
1885
1885
|
mode: o,
|
|
1886
1886
|
showModify: l,
|
|
1887
1887
|
onReset: u,
|
|
1888
|
-
onModify:
|
|
1888
|
+
onModify: p
|
|
1889
1889
|
}) {
|
|
1890
|
-
const { t: r } = O(),
|
|
1890
|
+
const { t: r } = O(), m = (e.details.confirmationChannels ?? ["email"]).map(
|
|
1891
1891
|
(D) => r(`booking.confirmation.channel.${D}`)
|
|
1892
|
-
), k = o === "demo" ? r("booking.success.descriptionDemo") :
|
|
1893
|
-
channels:
|
|
1894
|
-
}) : r("booking.success.descriptionSingle", { channel:
|
|
1892
|
+
), k = o === "demo" ? r("booking.success.descriptionDemo") : m.length > 1 ? r("booking.success.descriptionMultiple", {
|
|
1893
|
+
channels: m.join(" · ")
|
|
1894
|
+
}) : r("booking.success.descriptionSingle", { channel: m[0] }), I = w(() => {
|
|
1895
1895
|
if (e.date)
|
|
1896
1896
|
try {
|
|
1897
1897
|
return new Intl.DateTimeFormat(n, {
|
|
@@ -1935,7 +1935,7 @@ function es({
|
|
|
1935
1935
|
] }) }),
|
|
1936
1936
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
1937
1937
|
/* @__PURE__ */ s(ie, { intent: "secondary", size: "md", onClick: u, children: r("booking.success.bookAnother") }),
|
|
1938
|
-
l ? /* @__PURE__ */ s(ie, { intent: "ghost", size: "md", onClick:
|
|
1938
|
+
l ? /* @__PURE__ */ s(ie, { intent: "ghost", size: "md", onClick: p, children: r("booking.success.modifyBooking") }) : null
|
|
1939
1939
|
] })
|
|
1940
1940
|
]
|
|
1941
1941
|
}
|
|
@@ -1961,10 +1961,10 @@ function ts(e) {
|
|
|
1961
1961
|
onSubmit: o,
|
|
1962
1962
|
emptyServicesSlot: l,
|
|
1963
1963
|
onboardingIncompleteSlot: u,
|
|
1964
|
-
loadingDates:
|
|
1964
|
+
loadingDates: p,
|
|
1965
1965
|
loadingSlots: r,
|
|
1966
1966
|
onDateSelect: c,
|
|
1967
|
-
onWindowChange:
|
|
1967
|
+
onWindowChange: m,
|
|
1968
1968
|
datePickerStyle: k,
|
|
1969
1969
|
specialtyPickerStyle: I,
|
|
1970
1970
|
servicePickerStyle: v,
|
|
@@ -1988,7 +1988,7 @@ function ts(e) {
|
|
|
1988
1988
|
value: i.specialtyId,
|
|
1989
1989
|
valueIds: i.specialtyIds,
|
|
1990
1990
|
onChange: (d) => n(ut(i, d)),
|
|
1991
|
-
onChangeIds: (d) => n(
|
|
1991
|
+
onChangeIds: (d) => n(pt(i, d)),
|
|
1992
1992
|
pickerStyle: I
|
|
1993
1993
|
}
|
|
1994
1994
|
) : null,
|
|
@@ -1998,7 +1998,7 @@ function ts(e) {
|
|
|
1998
1998
|
services: t.filtered.services,
|
|
1999
1999
|
value: i.serviceId,
|
|
2000
2000
|
valueIds: i.serviceIds,
|
|
2001
|
-
onChange: (d) => n(
|
|
2001
|
+
onChange: (d) => n(mt(i, d)),
|
|
2002
2002
|
onChangeIds: (d) => n(gt(i, d)),
|
|
2003
2003
|
pickerStyle: v
|
|
2004
2004
|
}
|
|
@@ -2029,8 +2029,8 @@ function ts(e) {
|
|
|
2029
2029
|
value: i,
|
|
2030
2030
|
onChange: n,
|
|
2031
2031
|
onDateSelect: c,
|
|
2032
|
-
onWindowChange:
|
|
2033
|
-
loadingDates:
|
|
2032
|
+
onWindowChange: m,
|
|
2033
|
+
loadingDates: p,
|
|
2034
2034
|
loadingSlots: r,
|
|
2035
2035
|
locale: D,
|
|
2036
2036
|
datePickerStyle: k
|
|
@@ -2067,10 +2067,10 @@ function $(e, t, a = {}) {
|
|
|
2067
2067
|
value: o,
|
|
2068
2068
|
onChange: l,
|
|
2069
2069
|
onSubmit: u,
|
|
2070
|
-
emptyServicesSlot:
|
|
2070
|
+
emptyServicesSlot: p,
|
|
2071
2071
|
onboardingIncompleteSlot: r,
|
|
2072
2072
|
loadingDates: c,
|
|
2073
|
-
loadingSlots:
|
|
2073
|
+
loadingSlots: m,
|
|
2074
2074
|
onDateSelect: k,
|
|
2075
2075
|
onWindowChange: I,
|
|
2076
2076
|
datePickerStyle: v,
|
|
@@ -2099,18 +2099,18 @@ function $(e, t, a = {}) {
|
|
|
2099
2099
|
value: o.specialtyId,
|
|
2100
2100
|
valueIds: o.specialtyIds,
|
|
2101
2101
|
onChange: (x) => l(ut(o, x)),
|
|
2102
|
-
onChangeIds: (x) => l(
|
|
2102
|
+
onChangeIds: (x) => l(pt(o, x)),
|
|
2103
2103
|
pickerStyle: N
|
|
2104
2104
|
}
|
|
2105
2105
|
);
|
|
2106
2106
|
case 3:
|
|
2107
|
-
return i.filtered.services.length === 0 ? /* @__PURE__ */ s(Ct, { customSlot:
|
|
2107
|
+
return i.filtered.services.length === 0 ? /* @__PURE__ */ s(Ct, { customSlot: p }) : i.gates.onboardingIncomplete ? /* @__PURE__ */ s(wt, { customSlot: r }) : /* @__PURE__ */ s(
|
|
2108
2108
|
It,
|
|
2109
2109
|
{
|
|
2110
2110
|
services: i.filtered.services,
|
|
2111
2111
|
value: o.serviceId,
|
|
2112
2112
|
valueIds: o.serviceIds,
|
|
2113
|
-
onChange: (x) => l(
|
|
2113
|
+
onChange: (x) => l(mt(o, x)),
|
|
2114
2114
|
onChangeIds: (x) => l(gt(o, x)),
|
|
2115
2115
|
pickerStyle: M,
|
|
2116
2116
|
compact: a.compactService
|
|
@@ -2143,7 +2143,7 @@ function $(e, t, a = {}) {
|
|
|
2143
2143
|
onDateSelect: k,
|
|
2144
2144
|
onWindowChange: I,
|
|
2145
2145
|
loadingDates: c,
|
|
2146
|
-
loadingSlots:
|
|
2146
|
+
loadingSlots: m,
|
|
2147
2147
|
locale: b,
|
|
2148
2148
|
datePickerStyle: v
|
|
2149
2149
|
});
|
|
@@ -2152,7 +2152,7 @@ function $(e, t, a = {}) {
|
|
|
2152
2152
|
inputs: n,
|
|
2153
2153
|
value: o,
|
|
2154
2154
|
onChange: l,
|
|
2155
|
-
loadingSlots:
|
|
2155
|
+
loadingSlots: m,
|
|
2156
2156
|
locale: b,
|
|
2157
2157
|
datePickerStyle: v
|
|
2158
2158
|
});
|
|
@@ -2192,7 +2192,7 @@ function as(e) {
|
|
|
2192
2192
|
const { cascade: t, value: a, activeStep: i, setActiveStep: n, datePickerStyle: o } = e, l = Ze(), u = w(
|
|
2193
2193
|
() => o === "four-day-grid" ? t.visibleSteps.filter((c) => c !== 6) : t.visibleSteps,
|
|
2194
2194
|
[t.visibleSteps, o]
|
|
2195
|
-
),
|
|
2195
|
+
), p = w(
|
|
2196
2196
|
() => u.map((c) => ({
|
|
2197
2197
|
label: l[c],
|
|
2198
2198
|
summary: Mt(c, a, t),
|
|
@@ -2205,10 +2205,10 @@ function as(e) {
|
|
|
2205
2205
|
$t,
|
|
2206
2206
|
{
|
|
2207
2207
|
activeStep: r,
|
|
2208
|
-
steps:
|
|
2208
|
+
steps: p,
|
|
2209
2209
|
onStepChange: (c) => {
|
|
2210
|
-
const
|
|
2211
|
-
|
|
2210
|
+
const m = t.visibleSteps[c];
|
|
2211
|
+
m && n(m);
|
|
2212
2212
|
}
|
|
2213
2213
|
}
|
|
2214
2214
|
);
|
|
@@ -2265,32 +2265,32 @@ function Mt(e, t, a) {
|
|
|
2265
2265
|
}
|
|
2266
2266
|
function ss(e) {
|
|
2267
2267
|
const { cascade: t, value: a, setActiveStep: i } = e, { t: n } = O(), o = Ze(), l = t.visibleSteps.filter(
|
|
2268
|
-
(
|
|
2268
|
+
(p) => p === 1 || p === 2 || p === 3 || p === 4
|
|
2269
2269
|
), u = l.some(
|
|
2270
|
-
(
|
|
2270
|
+
(p) => !ke(p, a)
|
|
2271
2271
|
);
|
|
2272
2272
|
return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
2273
|
-
u ? l.filter((
|
|
2273
|
+
u ? l.filter((p) => !ke(p, a)).slice(0, 1).map((p) => /* @__PURE__ */ s("div", { children: $(p, e, { compactService: !0 }) }, `csf-${p}`)) : /* @__PURE__ */ s(
|
|
2274
2274
|
"div",
|
|
2275
2275
|
{
|
|
2276
2276
|
role: "group",
|
|
2277
2277
|
"aria-label": n("booking.regionLabel"),
|
|
2278
2278
|
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
2279
|
-
children: l.map((
|
|
2280
|
-
const r = Mt(
|
|
2279
|
+
children: l.map((p) => {
|
|
2280
|
+
const r = Mt(p, a, t);
|
|
2281
2281
|
return r ? /* @__PURE__ */ f(
|
|
2282
2282
|
ie,
|
|
2283
2283
|
{
|
|
2284
2284
|
intent: "tonal",
|
|
2285
2285
|
size: "sm",
|
|
2286
|
-
onClick: () => i(
|
|
2286
|
+
onClick: () => i(p),
|
|
2287
2287
|
children: [
|
|
2288
|
-
o[
|
|
2288
|
+
o[p],
|
|
2289
2289
|
": ",
|
|
2290
2290
|
r
|
|
2291
2291
|
]
|
|
2292
2292
|
},
|
|
2293
|
-
`csc-${
|
|
2293
|
+
`csc-${p}`
|
|
2294
2294
|
) : null;
|
|
2295
2295
|
})
|
|
2296
2296
|
}
|
|
@@ -2330,15 +2330,15 @@ function is(e) {
|
|
|
2330
2330
|
] });
|
|
2331
2331
|
}
|
|
2332
2332
|
function ns(e) {
|
|
2333
|
-
const { cascade: t, value: a, activeStep: i, setActiveStep: n, datePickerStyle: o } = e, { t: l } = O(), u = Ze(),
|
|
2333
|
+
const { cascade: t, value: a, activeStep: i, setActiveStep: n, datePickerStyle: o } = e, { t: l } = O(), u = Ze(), p = w(
|
|
2334
2334
|
() => o === "four-day-grid" ? t.visibleSteps.filter((v) => v !== 6) : t.visibleSteps,
|
|
2335
2335
|
[t.visibleSteps, o]
|
|
2336
|
-
), r = Math.max(0,
|
|
2337
|
-
() =>
|
|
2338
|
-
[
|
|
2336
|
+
), r = Math.max(0, p.indexOf(i)), c = p.length, m = w(
|
|
2337
|
+
() => p.map((v) => ({ label: u[v] })),
|
|
2338
|
+
[p, u]
|
|
2339
2339
|
), k = r > 0, I = r < c - 1 && ke(i, a);
|
|
2340
2340
|
return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
2341
|
-
/* @__PURE__ */ s(zt, { activeStep: r, steps:
|
|
2341
|
+
/* @__PURE__ */ s(zt, { activeStep: r, steps: m }),
|
|
2342
2342
|
/* @__PURE__ */ s("div", { children: $(i, e, { compactService: !0 }) }),
|
|
2343
2343
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
2344
2344
|
/* @__PURE__ */ s(
|
|
@@ -2348,7 +2348,7 @@ function ns(e) {
|
|
|
2348
2348
|
size: "md",
|
|
2349
2349
|
disabled: !k,
|
|
2350
2350
|
onClick: () => {
|
|
2351
|
-
const v =
|
|
2351
|
+
const v = p[r - 1];
|
|
2352
2352
|
v && n(v);
|
|
2353
2353
|
},
|
|
2354
2354
|
children: l("booking.actions.back")
|
|
@@ -2361,7 +2361,7 @@ function ns(e) {
|
|
|
2361
2361
|
size: "md",
|
|
2362
2362
|
disabled: !I,
|
|
2363
2363
|
onClick: () => {
|
|
2364
|
-
const v =
|
|
2364
|
+
const v = p[r + 1];
|
|
2365
2365
|
v && n(v);
|
|
2366
2366
|
},
|
|
2367
2367
|
children: l("booking.actions.next")
|
|
@@ -2383,10 +2383,10 @@ const os = [], rs = [], ds = ot(
|
|
|
2383
2383
|
autoSelectSingleService: o = !1,
|
|
2384
2384
|
specialties: l,
|
|
2385
2385
|
services: u,
|
|
2386
|
-
operators:
|
|
2386
|
+
operators: p,
|
|
2387
2387
|
availableDates: r,
|
|
2388
2388
|
availableSlots: c,
|
|
2389
|
-
nextAvailableDate:
|
|
2389
|
+
nextAvailableDate: m,
|
|
2390
2390
|
requireCodiceFiscale: k,
|
|
2391
2391
|
requireDateOfBirth: I,
|
|
2392
2392
|
requireInsuranceNumber: v,
|
|
@@ -2409,12 +2409,12 @@ const os = [], rs = [], ds = ot(
|
|
|
2409
2409
|
servicePickerStyle: P,
|
|
2410
2410
|
operatorPickerStyle: Q,
|
|
2411
2411
|
loadingDates: q,
|
|
2412
|
-
loadingSlots:
|
|
2412
|
+
loadingSlots: pe,
|
|
2413
2413
|
submitting: ee,
|
|
2414
2414
|
submitError: xe,
|
|
2415
2415
|
mode: Y = "live",
|
|
2416
2416
|
showModifyOnSuccess: ne = !0,
|
|
2417
|
-
surface:
|
|
2417
|
+
surface: me = "flat",
|
|
2418
2418
|
emptyServicesSlot: Se,
|
|
2419
2419
|
onboardingIncompleteSlot: Ie,
|
|
2420
2420
|
"aria-label": Ve,
|
|
@@ -2422,7 +2422,7 @@ const os = [], rs = [], ds = ot(
|
|
|
2422
2422
|
className: Le,
|
|
2423
2423
|
...Ne
|
|
2424
2424
|
}, we) => {
|
|
2425
|
-
const { t: re, i18n: h } = O(), C = e ?? "inline-list", te = h.language ?? "en", J = l ?? os, de =
|
|
2425
|
+
const { t: re, i18n: h } = O(), C = e ?? "inline-list", te = h.language ?? "en", J = l ?? os, de = p ?? rs;
|
|
2426
2426
|
H(() => {
|
|
2427
2427
|
const R = Ea(g, {
|
|
2428
2428
|
useSpecialties: a,
|
|
@@ -2560,7 +2560,7 @@ const os = [], rs = [], ds = ot(
|
|
|
2560
2560
|
operators: de,
|
|
2561
2561
|
availableDates: r,
|
|
2562
2562
|
availableSlots: c,
|
|
2563
|
-
nextAvailableDate:
|
|
2563
|
+
nextAvailableDate: m
|
|
2564
2564
|
},
|
|
2565
2565
|
value: g,
|
|
2566
2566
|
onChange: S,
|
|
@@ -2584,7 +2584,7 @@ const os = [], rs = [], ds = ot(
|
|
|
2584
2584
|
emptyServicesSlot: Se,
|
|
2585
2585
|
onboardingIncompleteSlot: Ie,
|
|
2586
2586
|
loadingDates: q,
|
|
2587
|
-
loadingSlots:
|
|
2587
|
+
loadingSlots: pe,
|
|
2588
2588
|
onDateSelect: G,
|
|
2589
2589
|
onWindowChange: B,
|
|
2590
2590
|
datePickerStyle: E,
|
|
@@ -2606,7 +2606,7 @@ const os = [], rs = [], ds = ot(
|
|
|
2606
2606
|
de,
|
|
2607
2607
|
r,
|
|
2608
2608
|
c,
|
|
2609
|
-
|
|
2609
|
+
m,
|
|
2610
2610
|
g,
|
|
2611
2611
|
S,
|
|
2612
2612
|
Qe,
|
|
@@ -2627,7 +2627,7 @@ const os = [], rs = [], ds = ot(
|
|
|
2627
2627
|
Se,
|
|
2628
2628
|
Ie,
|
|
2629
2629
|
q,
|
|
2630
|
-
|
|
2630
|
+
pe,
|
|
2631
2631
|
G,
|
|
2632
2632
|
B,
|
|
2633
2633
|
E,
|
|
@@ -2650,7 +2650,7 @@ const os = [], rs = [], ds = ot(
|
|
|
2650
2650
|
"data-variant": C,
|
|
2651
2651
|
className: $a({
|
|
2652
2652
|
variant: C,
|
|
2653
|
-
surface:
|
|
2653
|
+
surface: me,
|
|
2654
2654
|
className: Le
|
|
2655
2655
|
}),
|
|
2656
2656
|
...Ne,
|
|
@@ -2685,4 +2685,4 @@ export {
|
|
|
2685
2685
|
X as O,
|
|
2686
2686
|
Ma as b
|
|
2687
2687
|
};
|
|
2688
|
-
//# sourceMappingURL=booking-
|
|
2688
|
+
//# sourceMappingURL=booking-L8-YP8BJ.js.map
|