@alfadocs/ui-kit 1.54.3 → 1.56.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/{accordion-C11v9ouP.js → accordion-Ch3xp0mX.js} +9 -9
- package/dist/_chunks/{actions-cell-renderer-CjzSqMgn.js → actions-cell-renderer-Dj1ZkvJj.js} +4 -4
- package/dist/_chunks/{address-autocomplete-BBZ0u_U1.js → address-autocomplete-bPR2mNBt.js} +2 -2
- package/dist/_chunks/address-fields-BfjxS05Z.js +298 -0
- package/dist/_chunks/{agenda-card-CakEvwnM.js → agenda-card-DauvvKX6.js} +2 -2
- package/dist/_chunks/{agenda-tray-B8vuZKjH.js → agenda-tray-ZKhDxlfw.js} +24 -24
- package/dist/_chunks/{ai-credits-notice-D9_qP2xc.js → ai-credits-notice-BoNJtOuE.js} +4 -4
- package/dist/_chunks/ai-fab-pill-BOu96kCx.js +30 -0
- package/dist/_chunks/{ai-permission-notice-Cr6o1f0f.js → ai-permission-notice-5vpblPCx.js} +3 -3
- package/dist/_chunks/{ai-prompt-input-DkL8W-nt.js → ai-prompt-input-Beh-O_rJ.js} +4 -4
- package/dist/_chunks/{alia-sidebar-DSUQ2RpK.js → alia-sidebar-DOei4Iyu.js} +12 -12
- package/dist/_chunks/{anamnesis-card-BT1tMt5O.js → anamnesis-card-BSlAhaoG.js} +4 -4
- package/dist/_chunks/{anamnesis-summary-card-Bv0CZ-mk.js → anamnesis-summary-card-2YfIYY2j.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-Brru7JrH.js → anamnesis-summary-rows-CQ-XGr0T.js} +427 -426
- package/dist/_chunks/{antenatal-schedule-timeline-BZzgjfyd.js → antenatal-schedule-timeline-Kf2Yg8uo.js} +4 -4
- package/dist/_chunks/{app-frame-Cos-GSfw.js → app-frame-B-0O9CrU.js} +40 -38
- package/dist/_chunks/{appointment-card-CA2ynsmN.js → appointment-card-Dh3fAcyf.js} +12 -12
- package/dist/_chunks/{appointment-peek-Cbrg36wj.js → appointment-peek-BIZaDeCi.js} +6 -6
- package/dist/_chunks/{appointment-timeline-CssAJLpL.js → appointment-timeline-DmqYEIT9.js} +32 -33
- package/dist/_chunks/{appointment-tray-EQUjllVy.js → appointment-tray-CyI_p3zU.js} +28 -28
- package/dist/_chunks/{appointment-workflow-status-DrWCNLbB.js → appointment-workflow-status-DMjuIK90.js} +2 -2
- package/dist/_chunks/{audio-recorder-BM68r6fe.js → audio-recorder-DWKKjGPt.js} +5 -6
- package/dist/_chunks/{auth-form-parts-Celi-TLV.js → auth-form-parts-CravOf0L.js} +6 -5
- package/dist/_chunks/{autocomplete-BXm1rnT0.js → autocomplete-DosDnGie.js} +3 -3
- package/dist/_chunks/{avatar-DYtwj1-R.js → avatar-WZY3eGE7.js} +10 -10
- package/dist/_chunks/{balance-badge-cell-C5hmahoB.js → balance-badge-cell-DmDcXw0c.js} +5 -5
- package/dist/_chunks/{benefit-card-DB1Kdrmc.js → benefit-card-BWBClvdF.js} +46 -45
- package/dist/_chunks/{bishop-score-BzvVol-u.js → bishop-score-BxA20j9T.js} +5 -5
- package/dist/_chunks/{bmi-calculator-CDmQk0b5.js → bmi-calculator-C0UTxB7R.js} +6 -6
- package/dist/_chunks/{booking-BGY3LUi8.js → booking-WyNGKPE2.js} +1553 -1458
- package/dist/_chunks/{breadcrumb-xgVpPH2H.js → breadcrumb-Boan-5n8.js} +39 -39
- package/dist/_chunks/{button-CYPx2xFq.js → button-Bn16lcFM.js} +10 -7
- package/dist/_chunks/{button-group-CpEycMps.js → button-group-CWlwR-A5.js} +3 -3
- package/dist/_chunks/{calculator-dialog-BRjZMWuE.js → calculator-dialog-pCPWta7h.js} +2 -2
- package/dist/_chunks/{calendar-BwF5nQuW.js → calendar-6-24PQ1u.js} +4 -4
- package/dist/_chunks/{calendar-workspace-BJPhMb2c.js → calendar-workspace-Du2ryaI-.js} +870 -885
- package/dist/_chunks/{card-DPmk26CL.js → card-DMO2nkt4.js} +45 -42
- package/dist/_chunks/{care-plan-card-BqI-_B4T.js → care-plan-card-Ddjh5Doc.js} +5 -5
- package/dist/_chunks/{care-plan-entry-card-CbsZmfQM.js → care-plan-entry-card-0rpR-4Te.js} +5 -5
- package/dist/_chunks/{care-plan-header-BIS4CGcp.js → care-plan-header-DUX_SVvF.js} +3 -3
- package/dist/_chunks/{carousel.agent-DW9iPLdy.js → carousel.agent-D3xthzTf.js} +44 -45
- package/dist/_chunks/chart-HsF1KHbx.js +909 -0
- package/dist/_chunks/{chat-container-CAfyTxat.js → chat-container-baxzy8k8.js} +21 -22
- package/dist/_chunks/{chat-input-Bg99kcl3.js → chat-input-PtrSu1ZC.js} +27 -27
- package/dist/_chunks/{chat-message-D4rvLoIJ.js → chat-message-CmGUcajG.js} +4 -4
- package/dist/_chunks/city-input-BC_nYINn.js +185 -0
- package/dist/_chunks/{clinical-note-card-gmWXEwSu.js → clinical-note-card-14JIoUR0.js} +3 -3
- package/dist/_chunks/{code-block-CRVa-Thh.js → code-block-BQgK70mO.js} +2 -2
- package/dist/_chunks/{collapsible-CTjxzGuF.js → collapsible-DVPM46bq.js} +27 -27
- package/dist/_chunks/{color-picker-Bu0wM8xv.js → color-picker-BRQ4Y9SO.js} +3 -3
- package/dist/_chunks/{combobox-DppVSuUm.js → combobox-U5yfO6o0.js} +262 -218
- package/dist/_chunks/{connection-status-BwTnjnUj.js → connection-status-ncTjUPt6.js} +4 -4
- package/dist/_chunks/{contact-card-CIVCcicP.js → contact-card-CmK05vNb.js} +2 -2
- package/dist/_chunks/{contact-profile-card-B-HzocbB.js → contact-profile-card-Ci8lBQ6a.js} +4 -4
- package/dist/_chunks/{control-room-rail-g4vNSPFi.js → control-room-rail-Tx2jW250.js} +3 -3
- package/dist/_chunks/{copy-field-CiIuVbKe.js → copy-field-CvTIuA_p.js} +3 -3
- package/dist/_chunks/{country-select-r3QC7cVA.js → country-select-DF5Bd_mn.js} +2 -2
- package/dist/_chunks/{cycle-calculator-LjsQd9Gl.js → cycle-calculator-Dgfqr4Q4.js} +7 -7
- package/dist/_chunks/dashboard-grid-DfEY2qci.js +844 -0
- package/dist/_chunks/{data-table-BErtJzaT.js → data-table-D8fuhqO1.js} +244 -240
- package/dist/_chunks/{data-table-tabs-D5nFZKxg.js → data-table-tabs-Xhg5G0gU.js} +4 -4
- package/dist/_chunks/{date-picker-variants-B3AFKDSu.js → date-picker-variants-BnF-sHzq.js} +19 -10
- package/dist/_chunks/{date-picker-BnhBmcH6.js → date-picker-wRAcq2lt.js} +49 -49
- package/dist/_chunks/{date-range-picker-Dg050N1d.js → date-range-picker-CtUOI38x.js} +189 -183
- package/dist/_chunks/{date-time-picker-Ckl6ezCL.js → date-time-picker-CLeLKuv9.js} +5 -5
- package/dist/_chunks/{dependent-selector-CPiolWiw.js → dependent-selector-DgaAQc-c.js} +91 -86
- package/dist/_chunks/{description-list-BKQMUiXv.js → description-list-DkLeHiew.js} +2 -2
- package/dist/_chunks/{dev-bypass-button-Y1s7gPSD.js → dev-bypass-button-BhGn6evf.js} +2 -2
- package/dist/_chunks/{dialog-D52AI4nF.js → dialog-CUzbnKLw.js} +86 -69
- package/dist/_chunks/{document-preview-C_6R_VZK.js → document-preview-uoTekVR7.js} +5 -5
- package/dist/_chunks/{document-scanner-pADVX447.js → document-scanner-CQS9kv84.js} +17 -17
- package/dist/_chunks/{dropdown-menu-B5mgV1kV.js → dropdown-menu-BQSNVp4x.js} +2 -2
- package/dist/_chunks/{due-date-calculator-mDvGKmRV.js → due-date-calculator-CSjklbyw.js} +9 -9
- package/dist/_chunks/{editable-currency-cell-renderer-CfFp_1hI.js → editable-currency-cell-renderer-CmYcMuwi.js} +4 -4
- package/dist/_chunks/{editable-description-CCrAEJMq.js → editable-description-DuJlvltc.js} +3 -3
- package/dist/_chunks/editor-overlay-NMxzcO6J.js +90 -0
- package/dist/_chunks/{email-input-DQixfopu.js → email-input-C7THAwh2.js} +3 -3
- package/dist/_chunks/{empty-state-CgvmPPvW.js → empty-state-gNG3qYCX.js} +2 -2
- package/dist/_chunks/{entity-card-D1Yrh9wf.js → entity-card-fpm-KUKc.js} +26 -27
- package/dist/_chunks/{entity-summary-C3E4JKVr.js → entity-summary-DcB0fIiv.js} +5 -5
- package/dist/_chunks/{error-boundary-Bzjk9Q2l.js → error-boundary-ChowhO6w.js} +2 -2
- package/dist/_chunks/error-page-CpuYbpOB.js +344 -0
- package/dist/_chunks/{error-page-illustration-bFti0VEc.js → error-page-illustration-BdJLuMdV.js} +12 -12
- package/dist/_chunks/error-summary-BhM8FEkl.js +101 -0
- package/dist/_chunks/{face-scheme-Doodi6A6.js → face-scheme-BicuUA2K.js} +8 -8
- package/dist/_chunks/{fetal-weight-DBgEaMoJ.js → fetal-weight-BWaqqjea.js} +5 -5
- package/dist/_chunks/{field-array-DGiIHCdy.js → field-array-BO-kaKFK.js} +3 -3
- package/dist/_chunks/{file-manager-BDNSnr7f.js → file-manager-Cc_uO8r2.js} +54 -54
- package/dist/_chunks/{finished-terminal-BguGAUdg.js → finished-terminal-CPSDrIMB.js} +3 -3
- package/dist/_chunks/{fiscal-code-input-DNA_SbQx.js → fiscal-code-input-DesSQ6Fh.js} +168 -168
- package/dist/_chunks/floating-clearance-nIx9fFLy.js +20 -0
- package/dist/_chunks/forgot-password-form-DEx-M_QR.js +234 -0
- package/dist/_chunks/{form-field-Db0liyI8.js → form-field-Ani72sVY.js} +46 -44
- package/dist/_chunks/format-price-BKle6Xwt.js +52 -0
- package/dist/_chunks/{freemium-paywall-CtUCj-ND.js → freemium-paywall-DIKuhX8b.js} +88 -82
- package/dist/_chunks/{gestational-age-calculator-BVBz_5dm.js → gestational-age-calculator-DqVeJke2.js} +10 -10
- package/dist/_chunks/glass-surface-CPok0jEe.js +20 -0
- package/dist/_chunks/{hcg-doubling-BECrAUu3.js → hcg-doubling-BIYyI2Yo.js} +7 -7
- package/dist/_chunks/{header--a4ZTiM5.js → header-B9552pLh.js} +15 -14
- package/dist/_chunks/{header-settings-kkVm9VP3.js → header-settings-ge_3gYEq.js} +4 -4
- package/dist/_chunks/heatmap-Gf9r7Tn1.js +2865 -0
- package/dist/_chunks/{help-me-write-templates-B4Y8dBv1.js → help-me-write-templates-fV-Apf72.js} +29 -29
- package/dist/_chunks/{hover-card-CcRSI4gy.js → hover-card-BnTueNS2.js} +2 -2
- package/dist/_chunks/{iban-input-CpOUMMR-.js → iban-input-B9L2QDHh.js} +2 -2
- package/dist/_chunks/{icon-button-mKIvw90h.js → icon-button-COX76Jdj.js} +2 -2
- package/dist/_chunks/{icon-button-group-BsQkbCX4.js → icon-button-group-C5hhI-R5.js} +3 -3
- package/dist/_chunks/{icon-picker-JZzs1ol_.js → icon-picker-DWrqmI1c.js} +20 -20
- package/dist/_chunks/{image-cropper-CNBGkG7P.js → image-cropper-D0kkQ4lG.js} +2 -2
- package/dist/_chunks/{info-tip-Czh1izZ6.js → info-tip-B0jmIt6M.js} +2 -2
- package/dist/_chunks/{input-surface-xyERuLU_.js → input-surface-iBmxVBfr.js} +11 -12
- package/dist/_chunks/{insert-result-BuWQl11Z.js → insert-result-C1C2OCc3.js} +2 -2
- package/dist/_chunks/intl-locale-ySteXlDD.js +23 -0
- package/dist/_chunks/{kbd-BLovyx1R.js → kbd-Bx7eQv9f.js} +70 -66
- package/dist/_chunks/{key-value-pair-BkXjt88Z.js → key-value-pair-BNNITp6S.js} +26 -20
- package/dist/_chunks/{kit-extensions-GQHKTLWI.js → kit-extensions-Byfxy6sy.js} +6 -6
- package/dist/_chunks/{link-cell-renderer-D-xv2HMS.js → link-cell-renderer-TeJNvymP.js} +9 -9
- package/dist/_chunks/{locale-picker-BhNIgeXA.js → locale-picker-DfNSdOpy.js} +4 -4
- package/dist/_chunks/login-dev-card-DmZ1B0lB.js +309 -0
- package/dist/_chunks/{logo-CuaqxTGK.js → logo-hIsyVE96.js} +19 -19
- package/dist/_chunks/{map-view-CQmqQJwK.js → map-view-CO2v0hfp.js} +9 -9
- package/dist/_chunks/{marketplace-app-shell-DbEfoNxe.js → marketplace-app-shell-Dcx-JEjg.js} +11 -11
- package/dist/_chunks/{message-card-C1buKlzM.js → message-card-DVo8-dOm.js} +36 -28
- package/dist/_chunks/{message-tray-DyBVqlGj.js → message-tray-BB95DA82.js} +5 -5
- package/dist/_chunks/{money-GypsuFk2.js → money-CeClE1nH.js} +2 -2
- package/dist/_chunks/multi-select-BT23EnSA.js +688 -0
- package/dist/_chunks/{muscle-scheme-DfYQ0Z3v.js → muscle-scheme-BDgIaGeW.js} +2 -2
- package/dist/_chunks/{nav-grid-BPbmzHY0.js → nav-grid-BqCPH8sm.js} +16 -17
- package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js +65 -0
- package/dist/_chunks/{notes-panel-DWJY3WV8.js → notes-panel-DceRhthG.js} +54 -53
- package/dist/_chunks/{notification-card-DubeUbVJ.js → notification-card-BGCIL6Mu.js} +56 -48
- package/dist/_chunks/{notification-tray-DJ0gtfu6.js → notification-tray-__sJXnsz.js} +5 -5
- package/dist/_chunks/{number-input-DRDRYZJg.js → number-input-CVwI1ltI.js} +2 -2
- package/dist/_chunks/{operator-hero-BnBPxwOi.js → operator-hero-Dyd2IGbR.js} +4 -4
- package/dist/_chunks/{optical-prescription-DBvebioV.js → optical-prescription-Do6e3wfs.js} +5 -5
- package/dist/_chunks/option-row-Dc7BrbK8.js +37 -0
- package/dist/_chunks/{otp-input-BedEqmIV.js → otp-input-CGMu30_e.js} +2 -2
- package/dist/_chunks/{pagination-CzEkpfti.js → pagination-BR1_GfD_.js} +2 -2
- package/dist/_chunks/{panel-subview-D8HGXaUa.js → panel-subview-BT-Apwgb.js} +3 -3
- package/dist/_chunks/{parse-DeDYl04y.js → parse-jZ-i8Xgj.js} +2 -2
- package/dist/_chunks/{password-input-6Yl6x1IO.js → password-input-BokZ_rnT.js} +162 -140
- package/dist/_chunks/{patient-details-D7QlsGK1.js → patient-details-DsTtjpuX.js} +6 -6
- package/dist/_chunks/{patient-field-row-Dr-ndtG8.js → patient-field-row-BvZ9luz-.js} +212 -211
- package/dist/_chunks/{patient-search-Dm3w0jWw.js → patient-search-D5xlXmd2.js} +5 -5
- package/dist/_chunks/{patient-summary-card-A3WhxFwp.js → patient-summary-card-9nQWTQf6.js} +12 -8
- package/dist/_chunks/{payment-automation-upsell-DNiraNhF.js → payment-automation-upsell-DiHovmUL.js} +5 -5
- package/dist/_chunks/{payment-form-B08gHZIY.js → payment-form-v6zZuV1_.js} +60 -56
- package/dist/_chunks/{payment-request-card-CR7SjsRs.js → payment-request-card-CwDpwXUC.js} +5 -5
- package/dist/_chunks/{pdf-viewer-zv7pkUPA.js → pdf-viewer-C3minW5b.js} +5 -5
- package/dist/_chunks/periodontal-chart-DD5C0M3l.js +1413 -0
- package/dist/_chunks/{periodontal-chart-card-Djr3en8Q.js → periodontal-chart-card-CxdXvsPU.js} +3 -3
- package/dist/_chunks/{periodontal-diagnosis-DmVIqXtC.js → periodontal-diagnosis-D-PJv7KS.js} +3 -3
- package/dist/_chunks/{periodontal-risk-chart-C1Y5f-md.js → periodontal-risk-chart-D3DjIymT.js} +2 -2
- package/dist/_chunks/{phone-input-BzeUr49H.js → phone-input-DxkHMYmu.js} +139 -139
- package/dist/_chunks/{popover-9_v-7fJc.js → popover-BI3oV3eY.js} +2 -2
- package/dist/_chunks/{position-grid-D2D5_Tze.js → position-grid-CBB88EaH.js} +38 -36
- package/dist/_chunks/{postal-code-input-lCk8me6K.js → postal-code-input-CfZOnIkW.js} +2 -2
- package/dist/_chunks/{practice-profile-hero-Bc3AyBiM.js → practice-profile-hero-C8RPACCi.js} +3 -3
- package/dist/_chunks/{practice-results-D3liWOz1.js → practice-results-Dhbo-fc_.js} +9 -9
- package/dist/_chunks/{pregnancy-dating-BEmsMys4.js → pregnancy-dating-Bfu0Cq4H.js} +11 -11
- package/dist/_chunks/{pregnancy-weight-gain-DMVPvM3a.js → pregnancy-weight-gain-CUUrBTBo.js} +6 -6
- package/dist/_chunks/{privacy-lock-KDPKiTpH.js → privacy-lock-WkUgwIj_.js} +4 -4
- package/dist/_chunks/{privacy-mask-H8yYwgIb.js → privacy-mask-ChIjELJC.js} +3 -3
- package/dist/_chunks/{product-hub-panel-M5X3TYzq.js → product-hub-panel-BSSiGGG4.js} +49 -49
- package/dist/_chunks/{progress-TIAsNHQW.js → progress-D_g_Sl2g.js} +3 -5
- package/dist/_chunks/{province-select-DtF2ukoC.js → province-select-Bd20Z9Br.js} +2 -2
- package/dist/_chunks/{public-footer-Bfs81Qzp.js → public-footer-CxpG6J1M.js} +93 -90
- package/dist/_chunks/{public-header.agent-CrXkGtTF.js → public-header.agent-pr2hyiND.js} +3 -3
- package/dist/_chunks/{qr-code-Ofx7ryyu.js → qr-code-DHEma21c.js} +47 -48
- package/dist/_chunks/{radio-group-BT97ty7o.js → radio-group-DicxWJXP.js} +111 -106
- package/dist/_chunks/{radiograph-panel.agent-rS3Tegx6.js → radiograph-panel.agent-DkUokbEa.js} +9 -9
- package/dist/_chunks/registration-form-D7iNqMBF.js +819 -0
- package/dist/_chunks/{reviews-panel-CyxZ0VmZ.js → reviews-panel-CDcK6W3b.js} +6 -6
- package/dist/_chunks/{rich-text-editor-DmnWavgl.js → rich-text-editor-CkFfmA3v.js} +791 -799
- package/dist/_chunks/{scroll-area-BZOvUhwQ.js → scroll-area-ZtFCv9K7.js} +56 -46
- package/dist/_chunks/{search-bar-ORcfuK9A.js → search-bar-DQJS0wJN.js} +209 -199
- package/dist/_chunks/search-input-BAlDd05M.js +246 -0
- package/dist/_chunks/{section-card-XR2bW1Ie.js → section-card-ChJdOlBU.js} +2 -2
- package/dist/_chunks/{select-DHPmASkG.js → select-Ce5RMk93.js} +274 -236
- package/dist/_chunks/{session-countdown-DWUVDDox.js → session-countdown-CBINYw8H.js} +3 -3
- package/dist/_chunks/{sheet-BTgxkDJS.js → sheet-C7SwIxwB.js} +95 -79
- package/dist/_chunks/{sidebar-2GBc0ZUa.js → sidebar-DLsG2AIk.js} +123 -124
- package/dist/_chunks/{sign-document-B_3U-S6g.js → sign-document-B6HlyCGV.js} +22 -22
- package/dist/_chunks/{sign-in-with-alfadocs-button-DFmgQuDo.js → sign-in-with-alfadocs-button-D91_x8DX.js} +4 -4
- package/dist/_chunks/{signature-capture-F6KViBF_.js → signature-capture-Chqh62Pc.js} +19 -20
- package/dist/_chunks/{signature-field-DLDznGnB.js → signature-field-Y01UB5DA.js} +2 -2
- package/dist/_chunks/{signature-request-BdolmJk4.js → signature-request-DhbpB9N9.js} +9 -9
- package/dist/_chunks/{signed-out-frame-dz1rLJ65.js → signed-out-frame-B2GTIeqA.js} +51 -51
- package/dist/_chunks/sliders-horizontal-D-F97cnE.js +22 -0
- package/dist/_chunks/{slot-grid-kCDoV3k4.js → slot-grid-sVZriOiQ.js} +4 -4
- package/dist/_chunks/{social-sign-in-button-BMGNlUWs.js → social-sign-in-button-yUqwhnPZ.js} +2 -2
- package/dist/_chunks/{spinner-a0FTYX9Q.js → spinner-CoflYlEx.js} +2 -2
- package/dist/_chunks/{stat-Ce9ymEKm.js → stat-DmjGfXND.js} +116 -108
- package/dist/_chunks/state-backed-text-input-DECQy5aA.js +12 -0
- package/dist/_chunks/{stepper-accordion-BPNS6J6B.js → stepper-accordion-DDTSOUHc.js} +63 -52
- package/dist/_chunks/{streaming-text-BAPn_sZs.js → streaming-text-BKZmbW1Q.js} +31 -32
- package/dist/_chunks/subDays-DlMw8Xng.js +8 -0
- package/dist/_chunks/{tab-bar-DRKiomgj.js → tab-bar-Bm-rJB7Y.js} +7 -8
- package/dist/_chunks/{tabs-yIY-RySP.js → tabs-I2wf_nC7.js} +3 -3
- package/dist/_chunks/{task-card-C02Km4Gb.js → task-card-BMXMh3uE.js} +9 -9
- package/dist/_chunks/{task-editor-i-juLk76.js → task-editor-ByyRu29Y.js} +157 -159
- package/dist/_chunks/{task-tray-By6DPwbT.js → task-tray-DsBO-AaP.js} +31 -31
- package/dist/_chunks/{tasks-panel-BkN9sROF.js → tasks-panel-CdgZQQgG.js} +130 -131
- package/dist/_chunks/{text-area-CDuItrvL.js → text-area-COMVJ1yE.js} +106 -96
- package/dist/_chunks/text-input-CaG9ApoE.js +333 -0
- package/dist/_chunks/{theme-toggle-BAHz3itd.js → theme-toggle-PpFcFoYK.js} +4 -4
- package/dist/_chunks/time-picker-DVfyAR81.js +871 -0
- package/dist/_chunks/{timeline-CVLjybJ3.js → timeline-DG8wAlAx.js} +3 -3
- package/dist/_chunks/{toast-UMUvXFsA.js → toast-CPqguP7G.js} +2 -2
- package/dist/_chunks/{token-insert-menu-DgtBIbNu.js → token-insert-menu-B-pWFDKX.js} +3 -3
- package/dist/_chunks/{tool-rail-CwXN-sDC.js → tool-rail-Bwyuw_Ot.js} +113 -110
- package/dist/_chunks/{tooth-scheme-BAMhwCZe.js → tooth-scheme-BAO_voUO.js} +97 -97
- package/dist/_chunks/{transcript-panel-jOCW4Ycl.js → transcript-panel-CjsiDB1K.js} +4 -4
- package/dist/_chunks/{treatment-receipt-DF2Slh-x.js → treatment-receipt-BSVOfStA.js} +2 -2
- package/dist/_chunks/{typing-indicator-BmwMQSxw.js → typing-indicator-B1RkE8jD.js} +16 -15
- package/dist/_chunks/{unit-converter-Bvhj9r3m.js → unit-converter-DS4UB_59.js} +5 -5
- package/dist/_chunks/{use-appointment-details-read-B6dBBgDa.js → use-appointment-details-read-JsDM48tf.js} +214 -214
- package/dist/_chunks/use-dom-value-DTxHhQAN.js +16 -0
- package/dist/_chunks/{use-prism-DaspP8w-.js → use-prism-DBOiELx7.js} +9 -9
- package/dist/_chunks/use-registration-submit-eWAECgUC.js +171 -0
- package/dist/_chunks/use-select-on-arrow-Cr4iBuW5.js +26 -0
- package/dist/_chunks/use-state-backed-input-C7ESmxKB.js +59 -0
- package/dist/_chunks/voice-control-panel-Bg1eklL0.js +1009 -0
- package/dist/_chunks/{wallet-pay-button-Dew8Pmgq.js → wallet-pay-button-DFP5FW0D.js} +2 -2
- package/dist/_chunks/{warning-stack-B_v_qMBI.js → warning-stack-ubD0IZCy.js} +25 -25
- package/dist/_chunks/{widget-picker-Ck8HTsil.js → widget-picker-DXYBMTfe.js} +39 -39
- package/dist/_chunks/{workflow-map-PzamnfJK.js → workflow-map-Demlpy39.js} +8 -8
- package/dist/_chunks/{workflow-status-DDnsIrLt.js → workflow-status-BT27_fQp.js} +3 -3
- package/dist/agent-catalog.json +610 -23
- package/dist/agent-i18n/en.json +59 -17
- package/dist/components/_shared/ai-fab-pill.d.ts +18 -0
- package/dist/components/_shared/floating-clearance.d.ts +12 -0
- package/dist/components/_shared/glass-surface.d.ts +22 -0
- package/dist/components/_shared/input-surface.d.ts +1 -1
- package/dist/components/_shared/intl-locale.d.ts +7 -0
- package/dist/components/_shared/non-modal-tab-exit.d.ts +8 -0
- package/dist/components/_shared/option-row.d.ts +30 -0
- package/dist/components/_shared/option.d.ts +2 -0
- package/dist/components/_shared/state-backed-text-input.d.ts +16 -0
- package/dist/components/_shared/use-apex-chart-semantics.d.ts +6 -0
- package/dist/components/_shared/use-dom-value.d.ts +20 -0
- package/dist/components/_shared/use-select-on-arrow.d.ts +20 -0
- package/dist/components/_shared/use-state-backed-input.d.ts +31 -0
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/address-fields/address-fields.d.ts +4 -0
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-credits-notice/index.js +1 -1
- package/dist/components/ai-permission-notice/ai-permission-notice.d.ts +34 -0
- package/dist/components/ai-permission-notice/index.d.ts +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/app-frame/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/benefit-card/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/booking-types.d.ts +10 -5
- package/dist/components/booking/index.js +1 -1
- package/dist/components/booking/payment.d.ts +19 -0
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card/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/care-plan-header/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chart/chart.d.ts +10 -5
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/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/city-input/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts +6 -0
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/copy-field/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/dashboard-grid-engine.d.ts +22 -0
- package/dist/components/dashboard-grid/dashboard-grid.d.ts +48 -4
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/date-picker/date-picker.d.ts +3 -3
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts +3 -3
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dev-bypass-button/index.js +1 -1
- package/dist/components/dialog/dialog.d.ts +2 -2
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/editable-description/index.js +1 -1
- package/dist/components/editor-overlay/index.js +1 -1
- package/dist/components/email-input/email-input.d.ts +1 -1
- package/dist/components/email-input/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/error-boundary/index.js +1 -1
- package/dist/components/error-summary/error-summary.d.ts +50 -0
- package/dist/components/error-summary/index.d.ts +2 -0
- package/dist/components/error-summary/index.js +5 -0
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/field-array/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/form-field/form-field.d.ts +9 -0
- package/dist/components/form-field/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/heatmap/heatmap-context.d.ts +21 -0
- package/dist/components/heatmap/heatmap-format.d.ts +59 -0
- package/dist/components/heatmap/heatmap-grid.d.ts +66 -0
- package/dist/components/heatmap/heatmap-legend.d.ts +36 -0
- package/dist/components/heatmap/heatmap-model.d.ts +152 -0
- package/dist/components/heatmap/heatmap-scale.d.ts +125 -0
- package/dist/components/heatmap/heatmap-table-view.d.ts +35 -0
- package/dist/components/heatmap/heatmap-tooltip.d.ts +40 -0
- package/dist/components/heatmap/heatmap-variants.d.ts +87 -0
- package/dist/components/heatmap/heatmap-window.d.ts +54 -0
- package/dist/components/heatmap/heatmap.agent.d.ts +4 -0
- package/dist/components/heatmap/heatmap.d.ts +186 -0
- package/dist/components/heatmap/index.d.ts +8 -0
- package/dist/components/heatmap/index.js +8 -0
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/iban-input/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/image-cropper/index.js +1 -1
- package/dist/components/index.d.ts +3 -0
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/kbd/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/map-view/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/money/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/multi-select/multi-select.d.ts +6 -0
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/nav-grid/index.js +1 -1
- package/dist/components/notes-panel/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/number-input/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/panel-subview/index.js +1 -1
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/patient-details/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/patient-table/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/index.d.ts +1 -1
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart/periodontal-chart.d.ts +44 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/periodontal-risk-chart/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/position-grid/index.js +1 -1
- package/dist/components/postal-code-input/index.js +1 -1
- package/dist/components/practice-profile-hero/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/progress/index.js +1 -1
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/qr-code/index.js +1 -1
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +5 -20
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/scroll-area.d.ts +17 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/section-card/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +41 -0
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sheet/sheet.d.ts +2 -2
- 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-capture/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/social-sign-in-button/index.js +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/stat/index.d.ts +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stat/stat.d.ts +9 -0
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/time-picker/time-picker.d.ts +26 -5
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/token-insert-menu/index.js +1 -1
- package/dist/components/tool-rail/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/treatment-receipt/index.js +1 -1
- package/dist/components/typing-indicator/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/voice-control-panel/index.d.ts +5 -0
- package/dist/components/voice-control-panel/index.js +6 -0
- package/dist/components/voice-control-panel/voice-control-panel.agent.d.ts +4 -0
- package/dist/components/voice-control-panel/voice-control-panel.d.ts +179 -0
- package/dist/components/wallet-pay-button/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/components/workflow-status/index.js +2 -2
- package/dist/error-pages/400.ar.html +1 -1
- package/dist/error-pages/400.de.html +1 -1
- package/dist/error-pages/400.el.html +1 -1
- package/dist/error-pages/400.en.html +1 -1
- package/dist/error-pages/400.es.html +1 -1
- package/dist/error-pages/400.fr.html +1 -1
- package/dist/error-pages/400.hi.html +1 -1
- package/dist/error-pages/400.html +1 -1
- package/dist/error-pages/400.it.html +1 -1
- package/dist/error-pages/400.ja.html +1 -1
- package/dist/error-pages/400.nl.html +1 -1
- package/dist/error-pages/400.pl.html +1 -1
- package/dist/error-pages/400.pt.html +1 -1
- package/dist/error-pages/400.ro.html +1 -1
- package/dist/error-pages/400.ru.html +1 -1
- package/dist/error-pages/400.sq.html +1 -1
- package/dist/error-pages/400.sv.html +1 -1
- package/dist/error-pages/400.tr.html +1 -1
- package/dist/error-pages/400.zh.html +1 -1
- package/dist/error-pages/410.ar.html +1 -1
- package/dist/error-pages/410.de.html +1 -1
- package/dist/error-pages/410.el.html +1 -1
- package/dist/error-pages/410.en.html +1 -1
- package/dist/error-pages/410.es.html +1 -1
- package/dist/error-pages/410.fr.html +1 -1
- package/dist/error-pages/410.hi.html +1 -1
- package/dist/error-pages/410.html +1 -1
- package/dist/error-pages/410.it.html +1 -1
- package/dist/error-pages/410.ja.html +1 -1
- package/dist/error-pages/410.nl.html +1 -1
- package/dist/error-pages/410.pl.html +1 -1
- package/dist/error-pages/410.pt.html +1 -1
- package/dist/error-pages/410.ro.html +1 -1
- package/dist/error-pages/410.ru.html +1 -1
- package/dist/error-pages/410.sq.html +1 -1
- package/dist/error-pages/410.sv.html +1 -1
- package/dist/error-pages/410.tr.html +1 -1
- package/dist/error-pages/410.zh.html +1 -1
- package/dist/error-pages/419.ar.html +1 -1
- package/dist/error-pages/419.de.html +1 -1
- package/dist/error-pages/419.el.html +1 -1
- package/dist/error-pages/419.en.html +1 -1
- package/dist/error-pages/419.es.html +1 -1
- package/dist/error-pages/419.fr.html +1 -1
- package/dist/error-pages/419.hi.html +1 -1
- package/dist/error-pages/419.html +1 -1
- package/dist/error-pages/419.it.html +1 -1
- package/dist/error-pages/419.ja.html +1 -1
- package/dist/error-pages/419.nl.html +1 -1
- package/dist/error-pages/419.pl.html +1 -1
- package/dist/error-pages/419.pt.html +1 -1
- package/dist/error-pages/419.ro.html +1 -1
- package/dist/error-pages/419.ru.html +1 -1
- package/dist/error-pages/419.sq.html +1 -1
- package/dist/error-pages/419.sv.html +1 -1
- package/dist/error-pages/419.tr.html +1 -1
- package/dist/error-pages/419.zh.html +1 -1
- package/dist/error-pages/429.ar.html +1 -1
- package/dist/error-pages/429.de.html +1 -1
- package/dist/error-pages/429.el.html +1 -1
- package/dist/error-pages/429.en.html +1 -1
- package/dist/error-pages/429.es.html +1 -1
- package/dist/error-pages/429.fr.html +1 -1
- package/dist/error-pages/429.hi.html +1 -1
- package/dist/error-pages/429.html +1 -1
- package/dist/error-pages/429.it.html +1 -1
- package/dist/error-pages/429.ja.html +1 -1
- package/dist/error-pages/429.nl.html +1 -1
- package/dist/error-pages/429.pl.html +1 -1
- package/dist/error-pages/429.pt.html +1 -1
- package/dist/error-pages/429.ro.html +1 -1
- package/dist/error-pages/429.ru.html +1 -1
- package/dist/error-pages/429.sq.html +1 -1
- package/dist/error-pages/429.sv.html +1 -1
- package/dist/error-pages/429.tr.html +1 -1
- package/dist/error-pages/429.zh.html +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/host-compat.css +9 -2
- package/dist/host-legacy.css +97 -0
- package/dist/i18n/locales/ar.d.ts +120 -3
- package/dist/i18n/locales/ar.js +123 -6
- package/dist/i18n/locales/de.d.ts +120 -3
- package/dist/i18n/locales/de.js +123 -6
- package/dist/i18n/locales/el.d.ts +120 -3
- package/dist/i18n/locales/el.js +123 -6
- package/dist/i18n/locales/en.d.ts +120 -3
- package/dist/i18n/locales/en.js +123 -6
- package/dist/i18n/locales/es.d.ts +120 -3
- package/dist/i18n/locales/es.js +123 -6
- package/dist/i18n/locales/fr.d.ts +120 -3
- package/dist/i18n/locales/fr.js +123 -6
- package/dist/i18n/locales/hi.d.ts +120 -3
- package/dist/i18n/locales/hi.js +123 -6
- package/dist/i18n/locales/it.d.ts +120 -3
- package/dist/i18n/locales/it.js +123 -6
- package/dist/i18n/locales/ja.d.ts +120 -3
- package/dist/i18n/locales/ja.js +123 -6
- package/dist/i18n/locales/nl.d.ts +120 -3
- package/dist/i18n/locales/nl.js +123 -6
- package/dist/i18n/locales/pl.d.ts +120 -3
- package/dist/i18n/locales/pl.js +123 -6
- package/dist/i18n/locales/pt.d.ts +120 -3
- package/dist/i18n/locales/pt.js +123 -6
- package/dist/i18n/locales/ro.d.ts +120 -3
- package/dist/i18n/locales/ro.js +123 -6
- package/dist/i18n/locales/ru.d.ts +120 -3
- package/dist/i18n/locales/ru.js +123 -6
- package/dist/i18n/locales/sq.d.ts +120 -3
- package/dist/i18n/locales/sq.js +123 -6
- package/dist/i18n/locales/sv.d.ts +120 -3
- package/dist/i18n/locales/sv.js +123 -6
- package/dist/i18n/locales/tr.d.ts +120 -3
- package/dist/i18n/locales/tr.js +123 -6
- package/dist/i18n/locales/zh.d.ts +120 -3
- package/dist/i18n/locales/zh.js +123 -6
- package/dist/index.js +766 -756
- package/dist/locales/ar.json +123 -6
- package/dist/locales/de.json +123 -6
- package/dist/locales/el.json +123 -6
- package/dist/locales/en.json +123 -6
- package/dist/locales/es.json +123 -6
- package/dist/locales/fr.json +123 -6
- package/dist/locales/hi.json +123 -6
- package/dist/locales/it.json +123 -6
- package/dist/locales/ja.json +123 -6
- package/dist/locales/nl.json +123 -6
- package/dist/locales/pl.json +123 -6
- package/dist/locales/pt.json +123 -6
- package/dist/locales/ro.json +123 -6
- package/dist/locales/ru.json +123 -6
- package/dist/locales/sq.json +123 -6
- package/dist/locales/sv.json +123 -6
- package/dist/locales/tr.json +123 -6
- package/dist/locales/zh.json +123 -6
- package/dist/patterns/_shared/auth-form-parts.d.ts +4 -0
- package/dist/patterns/_shared/use-error-summary.d.ts +34 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/error-page/error-page.d.ts +29 -5
- package/dist/patterns/error-page/index.js +2 -2
- package/dist/patterns/forgot-password-form/forgot-password-form.d.ts +3 -2
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +2 -2
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/login-form/login-form.d.ts +5 -4
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/registration-form/registration-form.d.ts +3 -2
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/tokens.css +22 -14
- package/package.json +19 -2
- package/dist/_chunks/address-fields-BaClzQLM.js +0 -292
- package/dist/_chunks/chart-C134Ibwm.js +0 -705
- package/dist/_chunks/city-input-BL5WsGJ3.js +0 -170
- package/dist/_chunks/dashboard-grid--rkojX6m.js +0 -691
- package/dist/_chunks/editor-overlay-CWV0chPV.js +0 -93
- package/dist/_chunks/error-page-C15GfNEj.js +0 -312
- package/dist/_chunks/forgot-password-form-Duu3pZDU.js +0 -203
- package/dist/_chunks/format-price-DAbh61Lz.js +0 -51
- package/dist/_chunks/intl-locale-CXM-B8EP.js +0 -16
- package/dist/_chunks/login-dev-card-DletSsX3.js +0 -275
- package/dist/_chunks/multi-select-CVb6PJOK.js +0 -638
- package/dist/_chunks/periodontal-chart-5nLsSuRM.js +0 -1305
- package/dist/_chunks/registration-form-Lz9iKrKo.js +0 -759
- package/dist/_chunks/search-input-6SoR2Rf4.js +0 -237
- package/dist/_chunks/subDays-XBMBTVOO.js +0 -8
- package/dist/_chunks/text-input-rzLEKhRU.js +0 -331
- package/dist/_chunks/time-picker-DKKmpFh3.js +0 -425
- package/dist/_chunks/use-registration-submit-DxCWic5_.js +0 -141
|
@@ -1,55 +1,56 @@
|
|
|
1
|
-
import { jsx as s, jsxs as v, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { u as
|
|
6
|
-
import { A as
|
|
7
|
-
import { B as
|
|
8
|
-
import { C as
|
|
9
|
-
import { C as
|
|
10
|
-
import { D as
|
|
11
|
-
import { E as
|
|
12
|
-
import { F as
|
|
13
|
-
import { P as
|
|
14
|
-
import { T as
|
|
15
|
-
import { T as
|
|
16
|
-
import { A as
|
|
17
|
-
import { S as
|
|
18
|
-
import { a as
|
|
19
|
-
import { C as
|
|
20
|
-
import { B as
|
|
21
|
-
import { I as
|
|
22
|
-
import { S as Vt } from "./select-
|
|
23
|
-
import { C as
|
|
24
|
-
import { M as
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import { S as
|
|
29
|
-
import { S as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { s as
|
|
35
|
-
import {
|
|
36
|
-
import { C as
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import { S as
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
1
|
+
import { jsx as s, jsxs as v, Fragment as ae } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as ms, useId as Rt, useRef as _, useCallback as ye, useState as se, useEffect as K, useMemo as L, Fragment as qs, useImperativeHandle as Ks } from "react";
|
|
3
|
+
import { c as It } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as W, Trans as zs } from "react-i18next";
|
|
5
|
+
import { u as js } from "./registry-DvAUVLHh.js";
|
|
6
|
+
import { A as ie } from "./alert-BhCstf2h.js";
|
|
7
|
+
import { B as et } from "./button-Bn16lcFM.js";
|
|
8
|
+
import { C as at } from "./checkbox--ndmyokr.js";
|
|
9
|
+
import { C as Us } from "./checkbox-group-B0oZHNT3.js";
|
|
10
|
+
import { D as Hs } from "./date-picker-wRAcq2lt.js";
|
|
11
|
+
import { E as Gs } from "./email-input-C7THAwh2.js";
|
|
12
|
+
import { F as Ge } from "./form-field-Ani72sVY.js";
|
|
13
|
+
import { P as Js } from "./phone-input-DxkHMYmu.js";
|
|
14
|
+
import { T as Ws } from "./text-area-COMVJ1yE.js";
|
|
15
|
+
import { T as Tt } from "./text-input-CaG9ApoE.js";
|
|
16
|
+
import { A as Ys } from "./address-fields-BfjxS05Z.js";
|
|
17
|
+
import { S as fs } from "./spinner-CoflYlEx.js";
|
|
18
|
+
import { a as Pt } from "./format-price-BKle6Xwt.js";
|
|
19
|
+
import { C as Zs } from "./credit-card-D9XZsHGA.js";
|
|
20
|
+
import { B as gs } from "./badge-hnBt8o7n.js";
|
|
21
|
+
import { I as is } from "./icon-button-COX76Jdj.js";
|
|
22
|
+
import { S as Vt } from "./select-Ce5RMk93.js";
|
|
23
|
+
import { C as Qt } from "./combobox-U5yfO6o0.js";
|
|
24
|
+
import { M as Xt } from "./multi-select-BT23EnSA.js";
|
|
25
|
+
import { c as Qs } from "./option-row-Dc7BrbK8.js";
|
|
26
|
+
import { S as Lt } from "./skeleton-B1KTdJ4N.js";
|
|
27
|
+
import { E as hs } from "./empty-state-gNG3qYCX.js";
|
|
28
|
+
import { S as Xs } from "./stepper-accordion-DDTSOUHc.js";
|
|
29
|
+
import { S as en } from "./stepper-progress-D6H8wQiV.js";
|
|
30
|
+
import { S as tn } from "./slot-grid-sVZriOiQ.js";
|
|
31
|
+
import { p as be } from "./parseISO-y3LncvfO.js";
|
|
32
|
+
import { C as sn } from "./chevron-down-DWE7GSq9.js";
|
|
33
|
+
import { r as ct, f as _t, b as rs } from "./format-D-1gTdHF.js";
|
|
34
|
+
import { x as vs, d as dt, a as Gt, i as nn, s as xt, m as rn, y as Ot } from "./date-picker-variants-BnF-sHzq.js";
|
|
35
|
+
import { s as on } from "./subDays-DlMw8Xng.js";
|
|
36
|
+
import { C as an } from "./chevron-left-B8cOyH-V.js";
|
|
37
|
+
import { C as cn } from "./chevron-right-I9AeSxH2.js";
|
|
38
|
+
import { c as Oe } from "./createLucideIcon-DhHxpK9K.js";
|
|
39
|
+
import { M as dn, S as ln } from "./sun-Bj9Mr553.js";
|
|
40
|
+
import { S as un } from "./stethoscope-sZXGC43m.js";
|
|
41
|
+
import { H as pn } from "./heart-pulse-BCppJyN2.js";
|
|
42
|
+
import { E as mn } from "./eye-BjhN2nYf.js";
|
|
43
|
+
import { B as fn } from "./baby-Dku-Xvg9.js";
|
|
44
|
+
import { S as gn } from "./scan-line-CNseIHQ0.js";
|
|
45
|
+
import { A as hn } from "./astroid-BN4f5VXU.js";
|
|
46
|
+
import { C as vn } from "./clipboard-check-BeAGxDVT.js";
|
|
46
47
|
/**
|
|
47
48
|
* @license lucide-react v1.22.0 - ISC
|
|
48
49
|
*
|
|
49
50
|
* This source code is licensed under the ISC license.
|
|
50
51
|
* See the LICENSE file in the root directory of this source tree.
|
|
51
52
|
*/
|
|
52
|
-
const
|
|
53
|
+
const bn = [
|
|
53
54
|
[
|
|
54
55
|
"path",
|
|
55
56
|
{
|
|
@@ -57,14 +58,14 @@ const fn = [
|
|
|
57
58
|
key: "169zse"
|
|
58
59
|
}
|
|
59
60
|
]
|
|
60
|
-
],
|
|
61
|
+
], yn = Oe("activity", bn);
|
|
61
62
|
/**
|
|
62
63
|
* @license lucide-react v1.22.0 - ISC
|
|
63
64
|
*
|
|
64
65
|
* This source code is licensed under the ISC license.
|
|
65
66
|
* See the LICENSE file in the root directory of this source tree.
|
|
66
67
|
*/
|
|
67
|
-
const
|
|
68
|
+
const kn = [
|
|
68
69
|
[
|
|
69
70
|
"path",
|
|
70
71
|
{
|
|
@@ -72,14 +73,14 @@ const hn = [
|
|
|
72
73
|
key: "w610uw"
|
|
73
74
|
}
|
|
74
75
|
]
|
|
75
|
-
],
|
|
76
|
+
], Sn = Oe("bone", kn);
|
|
76
77
|
/**
|
|
77
78
|
* @license lucide-react v1.22.0 - ISC
|
|
78
79
|
*
|
|
79
80
|
* This source code is licensed under the ISC license.
|
|
80
81
|
* See the LICENSE file in the root directory of this source tree.
|
|
81
82
|
*/
|
|
82
|
-
const
|
|
83
|
+
const xn = [
|
|
83
84
|
["path", { d: "M12 18V5", key: "adv99a" }],
|
|
84
85
|
["path", { d: "M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4", key: "1e3is1" }],
|
|
85
86
|
["path", { d: "M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5", key: "1gqd8o" }],
|
|
@@ -88,14 +89,14 @@ const bn = [
|
|
|
88
89
|
["path", { d: "M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517", key: "1gq6am" }],
|
|
89
90
|
["path", { d: "M6 18a4 4 0 0 1-2-7.464", key: "k1g0md" }],
|
|
90
91
|
["path", { d: "M6.003 5.125a4 4 0 0 0-2.526 5.77", key: "q97ue3" }]
|
|
91
|
-
],
|
|
92
|
+
], In = Oe("brain", xn);
|
|
92
93
|
/**
|
|
93
94
|
* @license lucide-react v1.22.0 - ISC
|
|
94
95
|
*
|
|
95
96
|
* This source code is licensed under the ISC license.
|
|
96
97
|
* See the LICENSE file in the root directory of this source tree.
|
|
97
98
|
*/
|
|
98
|
-
const
|
|
99
|
+
const Nn = [
|
|
99
100
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
100
101
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
101
102
|
["path", { d: "M3 10h18", key: "8toen8" }],
|
|
@@ -104,76 +105,76 @@ const kn = [
|
|
|
104
105
|
["path", { d: "M13 18H7", key: "bb0bb7" }],
|
|
105
106
|
["path", { d: "M7 14h.01", key: "1qa3f1" }],
|
|
106
107
|
["path", { d: "M17 18h.01", key: "1bdyru" }]
|
|
107
|
-
],
|
|
108
|
+
], wn = Oe("calendar-range", Nn);
|
|
108
109
|
/**
|
|
109
110
|
* @license lucide-react v1.22.0 - ISC
|
|
110
111
|
*
|
|
111
112
|
* This source code is licensed under the ISC license.
|
|
112
113
|
* See the LICENSE file in the root directory of this source tree.
|
|
113
114
|
*/
|
|
114
|
-
const
|
|
115
|
+
const Cn = [
|
|
115
116
|
["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" }],
|
|
116
117
|
["path", { d: "M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4", key: "1qnva7" }]
|
|
117
|
-
],
|
|
118
|
+
], An = Oe("ear", Cn);
|
|
118
119
|
/**
|
|
119
120
|
* @license lucide-react v1.22.0 - ISC
|
|
120
121
|
*
|
|
121
122
|
* This source code is licensed under the ISC license.
|
|
122
123
|
* See the LICENSE file in the root directory of this source tree.
|
|
123
124
|
*/
|
|
124
|
-
const
|
|
125
|
+
const Tn = [
|
|
125
126
|
["path", { d: "M6 18h8", key: "1borvv" }],
|
|
126
127
|
["path", { d: "M3 22h18", key: "8prr45" }],
|
|
127
128
|
["path", { d: "M14 22a7 7 0 1 0 0-14h-1", key: "1jwaiy" }],
|
|
128
129
|
["path", { d: "M9 14h2", key: "197e7h" }],
|
|
129
130
|
["path", { d: "M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z", key: "1bmzmy" }],
|
|
130
131
|
["path", { d: "M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3", key: "1drr47" }]
|
|
131
|
-
],
|
|
132
|
+
], On = Oe("microscope", Tn);
|
|
132
133
|
/**
|
|
133
134
|
* @license lucide-react v1.22.0 - ISC
|
|
134
135
|
*
|
|
135
136
|
* This source code is licensed under the ISC license.
|
|
136
137
|
* See the LICENSE file in the root directory of this source tree.
|
|
137
138
|
*/
|
|
138
|
-
const
|
|
139
|
+
const Dn = [
|
|
139
140
|
[
|
|
140
141
|
"path",
|
|
141
142
|
{ d: "m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z", key: "wa1lgi" }
|
|
142
143
|
],
|
|
143
144
|
["path", { d: "m8.5 8.5 7 7", key: "rvfmvr" }]
|
|
144
|
-
],
|
|
145
|
+
], En = Oe("pill", Dn);
|
|
145
146
|
/**
|
|
146
147
|
* @license lucide-react v1.22.0 - ISC
|
|
147
148
|
*
|
|
148
149
|
* This source code is licensed under the ISC license.
|
|
149
150
|
* See the LICENSE file in the root directory of this source tree.
|
|
150
151
|
*/
|
|
151
|
-
const
|
|
152
|
+
const Fn = [
|
|
152
153
|
["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
|
|
153
154
|
["path", { d: "M8.12 8.12 12 12", key: "1alkpv" }],
|
|
154
155
|
["path", { d: "M20 4 8.12 15.88", key: "xgtan2" }],
|
|
155
156
|
["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
|
|
156
157
|
["path", { d: "M14.8 14.8 20 20", key: "ptml3r" }]
|
|
157
|
-
],
|
|
158
|
+
], Mn = Oe("scissors", Fn);
|
|
158
159
|
/**
|
|
159
160
|
* @license lucide-react v1.22.0 - ISC
|
|
160
161
|
*
|
|
161
162
|
* This source code is licensed under the ISC license.
|
|
162
163
|
* See the LICENSE file in the root directory of this source tree.
|
|
163
164
|
*/
|
|
164
|
-
const
|
|
165
|
+
const _n = [
|
|
165
166
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
166
167
|
["path", { d: "M8 14s1.5 2 4 2 4-2 4-2", key: "1y1vjs" }],
|
|
167
168
|
["line", { x1: "9", x2: "9.01", y1: "9", y2: "9", key: "yxxnd0" }],
|
|
168
169
|
["line", { x1: "15", x2: "15.01", y1: "9", y2: "9", key: "1p4y9e" }]
|
|
169
|
-
],
|
|
170
|
+
], Ln = Oe("smile", _n);
|
|
170
171
|
/**
|
|
171
172
|
* @license lucide-react v1.22.0 - ISC
|
|
172
173
|
*
|
|
173
174
|
* This source code is licensed under the ISC license.
|
|
174
175
|
* See the LICENSE file in the root directory of this source tree.
|
|
175
176
|
*/
|
|
176
|
-
const
|
|
177
|
+
const Bn = [
|
|
177
178
|
["path", { d: "M12 10V2", key: "16sf7g" }],
|
|
178
179
|
["path", { d: "m4.93 10.93 1.41 1.41", key: "2a7f42" }],
|
|
179
180
|
["path", { d: "M2 18h2", key: "j10viu" }],
|
|
@@ -182,25 +183,25 @@ const Fn = [
|
|
|
182
183
|
["path", { d: "M22 22H2", key: "19qnx5" }],
|
|
183
184
|
["path", { d: "m16 6-4 4-4-4", key: "6wukr" }],
|
|
184
185
|
["path", { d: "M16 18a4 4 0 0 0-8 0", key: "1lzouq" }]
|
|
185
|
-
],
|
|
186
|
+
], Rn = Oe("sunset", Bn);
|
|
186
187
|
/**
|
|
187
188
|
* @license lucide-react v1.22.0 - ISC
|
|
188
189
|
*
|
|
189
190
|
* This source code is licensed under the ISC license.
|
|
190
191
|
* See the LICENSE file in the root directory of this source tree.
|
|
191
192
|
*/
|
|
192
|
-
const
|
|
193
|
+
const Pn = [
|
|
193
194
|
["path", { d: "m18 2 4 4", key: "22kx64" }],
|
|
194
195
|
["path", { d: "m17 7 3-3", key: "1w1zoj" }],
|
|
195
196
|
["path", { d: "M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5", key: "1exhtz" }],
|
|
196
197
|
["path", { d: "m9 11 4 4", key: "rovt3i" }],
|
|
197
198
|
["path", { d: "m5 19-3 3", key: "59f2uf" }],
|
|
198
199
|
["path", { d: "m14 4 6 6", key: "yqp9t2" }]
|
|
199
|
-
],
|
|
200
|
-
function
|
|
201
|
-
return
|
|
200
|
+
], os = Oe("syringe", Pn);
|
|
201
|
+
function Vn(e, t, n) {
|
|
202
|
+
return vs(e, -1, n);
|
|
202
203
|
}
|
|
203
|
-
const
|
|
204
|
+
const $n = {
|
|
204
205
|
id: "booking",
|
|
205
206
|
// `view_change` removed (0.69): the layout `variant` is a fixed prop — the
|
|
206
207
|
// handle exposes only `getVariant` (state), no action mutates it. The flow's
|
|
@@ -275,29 +276,29 @@ const En = {
|
|
|
275
276
|
description: "Sourced from the id prop."
|
|
276
277
|
}
|
|
277
278
|
}
|
|
278
|
-
},
|
|
279
|
+
}, Yt = [
|
|
279
280
|
"email",
|
|
280
281
|
"whatsapp",
|
|
281
282
|
"sms"
|
|
282
|
-
],
|
|
283
|
-
function
|
|
283
|
+
], _e = "all", qn = "de";
|
|
284
|
+
function Kn(e) {
|
|
284
285
|
const t = e.lockedOperatorId;
|
|
285
286
|
return [...t ? e.operatorsByService ? e.specialties.filter(
|
|
286
287
|
(r) => e.services.some(
|
|
287
288
|
(i) => {
|
|
288
|
-
var
|
|
289
|
-
return i.specialtyId === r.id && ((
|
|
289
|
+
var o;
|
|
290
|
+
return i.specialtyId === r.id && ((o = i.operatorIds) == null ? void 0 : o.includes(t));
|
|
290
291
|
}
|
|
291
292
|
)
|
|
292
293
|
) : e.specialties.filter((r) => {
|
|
293
294
|
var i;
|
|
294
295
|
return (i = r.operatorIds) == null ? void 0 : i.includes(t);
|
|
295
296
|
}) : e.specialties].sort((r, i) => {
|
|
296
|
-
const
|
|
297
|
-
return
|
|
297
|
+
const o = r.sequenceNumber ?? Number.POSITIVE_INFINITY, c = i.sequenceNumber ?? Number.POSITIVE_INFINITY;
|
|
298
|
+
return o - c;
|
|
298
299
|
});
|
|
299
300
|
}
|
|
300
|
-
function
|
|
301
|
+
function zn(e) {
|
|
301
302
|
let t = e.services;
|
|
302
303
|
if (e.lockedOperatorId && (t = t.filter(
|
|
303
304
|
(r) => {
|
|
@@ -305,65 +306,65 @@ function Vn(e) {
|
|
|
305
306
|
return (i = r.operatorIds) == null ? void 0 : i.includes(e.lockedOperatorId);
|
|
306
307
|
}
|
|
307
308
|
)), e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) {
|
|
308
|
-
const r =
|
|
309
|
+
const r = Je(e.value);
|
|
309
310
|
r.length > 0 && (t = t.filter(
|
|
310
311
|
(i) => i.specialtyId !== void 0 && r.includes(i.specialtyId)
|
|
311
312
|
));
|
|
312
313
|
}
|
|
313
314
|
return t;
|
|
314
315
|
}
|
|
315
|
-
function
|
|
316
|
-
const t = e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties, n =
|
|
316
|
+
function jn(e) {
|
|
317
|
+
const t = e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties, n = qe(e.value);
|
|
317
318
|
if ((!t || e.operatorsByService) && n.length > 0)
|
|
318
319
|
return e.operators.filter(
|
|
319
320
|
(r) => {
|
|
320
321
|
var i;
|
|
321
|
-
return (i = r.appointmentBookingReasonIds) == null ? void 0 : i.some((
|
|
322
|
+
return (i = r.appointmentBookingReasonIds) == null ? void 0 : i.some((o) => n.includes(o));
|
|
322
323
|
}
|
|
323
324
|
);
|
|
324
325
|
if (t) {
|
|
325
|
-
const r =
|
|
326
|
+
const r = Je(e.value);
|
|
326
327
|
if (r.length > 0)
|
|
327
328
|
return e.operators.filter(
|
|
328
329
|
(i) => {
|
|
329
|
-
var
|
|
330
|
-
return (
|
|
330
|
+
var o;
|
|
331
|
+
return (o = i.specialtyIds) == null ? void 0 : o.some((c) => r.includes(c));
|
|
331
332
|
}
|
|
332
333
|
);
|
|
333
334
|
}
|
|
334
335
|
return [];
|
|
335
336
|
}
|
|
336
|
-
function
|
|
337
|
-
const n = e.country ===
|
|
337
|
+
function Un(e, t) {
|
|
338
|
+
const n = e.country === qn, r = !n || e.value.insuranceType !== void 0, o = (e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) && r, c = Je(e.value).length > 0, m = !o || c, p = qe(e.value).length > 0, g = !m || p, l = t.operators, a = !!e.allowOperatorSelection && g && p && !e.lockedOperatorId && l.length > 1, u = g && p, x = (!u || e.value.date !== void 0) && e.value.date !== void 0, E = (!x || e.value.slotKey !== void 0) && e.value.slotKey !== void 0, N = p && l.length === 0;
|
|
338
339
|
return {
|
|
339
340
|
insurance: n,
|
|
340
|
-
specialty:
|
|
341
|
-
service:
|
|
342
|
-
operator:
|
|
341
|
+
specialty: o,
|
|
342
|
+
service: m,
|
|
343
|
+
operator: a,
|
|
343
344
|
date: u,
|
|
344
|
-
slot:
|
|
345
|
-
details:
|
|
346
|
-
onboardingIncomplete:
|
|
345
|
+
slot: x,
|
|
346
|
+
details: E,
|
|
347
|
+
onboardingIncomplete: N
|
|
347
348
|
};
|
|
348
349
|
}
|
|
349
|
-
function
|
|
350
|
+
function Hn(e, t) {
|
|
350
351
|
const n = [];
|
|
351
352
|
return t.insurance && n.push(1), t.specialty && n.push(2), n.push(3), t.operator && n.push(4), n.push(5), n.push(6), n.push(7), {
|
|
352
353
|
currentStep: n.find(
|
|
353
|
-
(i) =>
|
|
354
|
+
(i) => !$e(i, e.value)
|
|
354
355
|
) ?? 7,
|
|
355
356
|
visibleSteps: n
|
|
356
357
|
};
|
|
357
358
|
}
|
|
358
|
-
function
|
|
359
|
+
function $e(e, t) {
|
|
359
360
|
switch (e) {
|
|
360
361
|
case 1:
|
|
361
362
|
return t.insuranceType !== void 0;
|
|
362
363
|
// 0.34.0: array-or-single — satisfied when EITHER form is present.
|
|
363
364
|
case 2:
|
|
364
|
-
return
|
|
365
|
+
return Je(t).length > 0;
|
|
365
366
|
case 3:
|
|
366
|
-
return
|
|
367
|
+
return qe(t).length > 0;
|
|
367
368
|
// Always satisfied, like its gate: "no preference" is a valid answer,
|
|
368
369
|
// whether it is the `'all'` sentinel or an empty multi-select.
|
|
369
370
|
case 4:
|
|
@@ -377,30 +378,30 @@ function Fe(e, t) {
|
|
|
377
378
|
return !1;
|
|
378
379
|
}
|
|
379
380
|
}
|
|
380
|
-
function
|
|
381
|
+
function Gn(e) {
|
|
381
382
|
const t = {
|
|
382
|
-
specialties:
|
|
383
|
-
services:
|
|
384
|
-
operators:
|
|
385
|
-
}, n =
|
|
386
|
-
let
|
|
383
|
+
specialties: Kn(e),
|
|
384
|
+
services: zn(e),
|
|
385
|
+
operators: jn(e)
|
|
386
|
+
}, n = Un(e, t), { currentStep: r, visibleSteps: i } = Hn(e, n);
|
|
387
|
+
let o;
|
|
387
388
|
if (e.value.date && e.value.slotKey) {
|
|
388
389
|
const g = e.availableSlots[e.value.date];
|
|
389
|
-
g && (
|
|
390
|
+
g && (o = g.find((l) => l.key === e.value.slotKey));
|
|
390
391
|
}
|
|
391
|
-
const c =
|
|
392
|
+
const c = qe(e.value), f = c.length > 0 ? e.services.find((g) => g.id === c[0]) : void 0, m = Je(e.value).length > 0, p = c.length > 0 && e.value.date !== void 0 && e.value.slotKey !== void 0 && (!n.insurance || e.value.insuranceType !== void 0) && (!n.specialty || m);
|
|
392
393
|
return {
|
|
393
394
|
gates: n,
|
|
394
395
|
filtered: t,
|
|
395
396
|
currentStep: r,
|
|
396
397
|
totalSteps: i.length,
|
|
397
398
|
visibleSteps: i,
|
|
398
|
-
isReadyToSubmit:
|
|
399
|
+
isReadyToSubmit: p,
|
|
399
400
|
durationMin: f == null ? void 0 : f.durationMin,
|
|
400
|
-
selectedSlot:
|
|
401
|
+
selectedSlot: o
|
|
401
402
|
};
|
|
402
403
|
}
|
|
403
|
-
function
|
|
404
|
+
function bs(e, t) {
|
|
404
405
|
return {
|
|
405
406
|
...e,
|
|
406
407
|
insuranceType: t,
|
|
@@ -412,7 +413,7 @@ function hs(e, t) {
|
|
|
412
413
|
details: void 0
|
|
413
414
|
};
|
|
414
415
|
}
|
|
415
|
-
function
|
|
416
|
+
function ys(e, t) {
|
|
416
417
|
return {
|
|
417
418
|
...e,
|
|
418
419
|
specialtyId: t,
|
|
@@ -426,7 +427,7 @@ function vs(e, t) {
|
|
|
426
427
|
details: void 0
|
|
427
428
|
};
|
|
428
429
|
}
|
|
429
|
-
function
|
|
430
|
+
function ks(e, t) {
|
|
430
431
|
return {
|
|
431
432
|
...e,
|
|
432
433
|
specialtyId: void 0,
|
|
@@ -440,7 +441,7 @@ function bs(e, t) {
|
|
|
440
441
|
details: void 0
|
|
441
442
|
};
|
|
442
443
|
}
|
|
443
|
-
function
|
|
444
|
+
function Ss(e, t) {
|
|
444
445
|
return {
|
|
445
446
|
...e,
|
|
446
447
|
serviceId: t,
|
|
@@ -448,27 +449,27 @@ function ys(e, t) {
|
|
|
448
449
|
// Default the operator to the "All operators" sentinel so a patient
|
|
449
450
|
// who doesn't care about picking lands on a satisfied step 4 without
|
|
450
451
|
// any further input.
|
|
451
|
-
operatorId: t ?
|
|
452
|
+
operatorId: t ? _e : void 0,
|
|
452
453
|
operatorIds: void 0,
|
|
453
454
|
date: void 0,
|
|
454
455
|
slotKey: void 0,
|
|
455
456
|
details: void 0
|
|
456
457
|
};
|
|
457
458
|
}
|
|
458
|
-
function
|
|
459
|
+
function xs(e, t) {
|
|
459
460
|
const n = !!t && t.length > 0;
|
|
460
461
|
return {
|
|
461
462
|
...e,
|
|
462
463
|
serviceId: void 0,
|
|
463
464
|
serviceIds: t,
|
|
464
|
-
operatorId: n ?
|
|
465
|
+
operatorId: n ? _e : void 0,
|
|
465
466
|
operatorIds: void 0,
|
|
466
467
|
date: void 0,
|
|
467
468
|
slotKey: void 0,
|
|
468
469
|
details: void 0
|
|
469
470
|
};
|
|
470
471
|
}
|
|
471
|
-
function
|
|
472
|
+
function Is(e, t) {
|
|
472
473
|
return {
|
|
473
474
|
...e,
|
|
474
475
|
operatorId: t,
|
|
@@ -478,7 +479,7 @@ function Ss(e, t) {
|
|
|
478
479
|
details: void 0
|
|
479
480
|
};
|
|
480
481
|
}
|
|
481
|
-
function
|
|
482
|
+
function Ns(e, t) {
|
|
482
483
|
return {
|
|
483
484
|
...e,
|
|
484
485
|
operatorId: void 0,
|
|
@@ -488,13 +489,13 @@ function xs(e, t) {
|
|
|
488
489
|
details: void 0
|
|
489
490
|
};
|
|
490
491
|
}
|
|
491
|
-
function
|
|
492
|
+
function Je(e) {
|
|
492
493
|
return e.specialtyIds && e.specialtyIds.length > 0 ? e.specialtyIds : e.specialtyId ? [e.specialtyId] : [];
|
|
493
494
|
}
|
|
494
|
-
function
|
|
495
|
+
function qe(e) {
|
|
495
496
|
return e.serviceIds && e.serviceIds.length > 0 ? e.serviceIds : e.serviceId ? [e.serviceId] : [];
|
|
496
497
|
}
|
|
497
|
-
function
|
|
498
|
+
function Zt(e) {
|
|
498
499
|
return e.operatorIds && e.operatorIds.length > 0 ? e.operatorIds : e.operatorId ? [e.operatorId] : [];
|
|
499
500
|
}
|
|
500
501
|
function $t(e, t) {
|
|
@@ -506,49 +507,49 @@ function $t(e, t) {
|
|
|
506
507
|
// since the user has already filled some fields.
|
|
507
508
|
};
|
|
508
509
|
}
|
|
509
|
-
function
|
|
510
|
+
function ws(e, t) {
|
|
510
511
|
return {
|
|
511
512
|
...e,
|
|
512
513
|
slotKey: t
|
|
513
514
|
};
|
|
514
515
|
}
|
|
515
|
-
function
|
|
516
|
+
function Jn(e, t) {
|
|
516
517
|
let n = e;
|
|
517
518
|
if (t.lockedOperatorId && n.operatorId !== t.lockedOperatorId && (n = { ...n, operatorId: t.lockedOperatorId }), (t.useSpecialties === void 0 ? t.specialties.length > 0 : t.useSpecialties) && t.specialties.length === 1 && n.specialtyId === void 0 && n.specialtyIds === void 0 && (n = { ...n, specialtyId: t.specialties[0].id }), t.autoSelectSingleService) {
|
|
518
|
-
const i =
|
|
519
|
+
const i = Je(n), o = i.length > 0 ? t.services.filter(
|
|
519
520
|
(c) => c.specialtyId && i.includes(c.specialtyId)
|
|
520
521
|
) : t.services;
|
|
521
|
-
|
|
522
|
+
o.length === 1 && n.serviceId === void 0 && n.serviceIds === void 0 && (n = { ...n, serviceId: o[0].id }, n.operatorId === void 0 && n.operatorIds === void 0 && (n = { ...n, operatorId: _e }));
|
|
522
523
|
}
|
|
523
524
|
return n;
|
|
524
525
|
}
|
|
525
|
-
function
|
|
526
|
-
if (e.operatorId && e.operatorId !==
|
|
526
|
+
function Cs(e) {
|
|
527
|
+
if (e.operatorId && e.operatorId !== _e)
|
|
527
528
|
return e.operatorId;
|
|
528
529
|
}
|
|
529
|
-
function
|
|
530
|
+
function Wn(e) {
|
|
530
531
|
if (!e) return !1;
|
|
531
532
|
const t = e.trim();
|
|
532
533
|
return /^\+?\d[\d\s\-()]{6,}$/.test(t);
|
|
533
534
|
}
|
|
534
|
-
function
|
|
535
|
+
function As(e) {
|
|
535
536
|
const t = e && e.length > 0 ? e : ["email"], n = new Set(t);
|
|
536
|
-
return
|
|
537
|
+
return Yt.filter((r) => n.has(r));
|
|
537
538
|
}
|
|
538
|
-
function
|
|
539
|
-
const r =
|
|
539
|
+
function Yn(e, t, n) {
|
|
540
|
+
const r = As(e), i = new Set(r);
|
|
540
541
|
if (n)
|
|
541
|
-
return
|
|
542
|
-
(
|
|
542
|
+
return Yt.filter(
|
|
543
|
+
(p) => n.includes(p) && i.has(p)
|
|
543
544
|
);
|
|
544
|
-
const
|
|
545
|
-
i.has("email") &&
|
|
546
|
-
const c =
|
|
547
|
-
f && c &&
|
|
548
|
-
const
|
|
549
|
-
return
|
|
550
|
-
}
|
|
551
|
-
const
|
|
545
|
+
const o = [];
|
|
546
|
+
i.has("email") && o.push("email");
|
|
547
|
+
const c = Wn(t), f = i.has("whatsapp");
|
|
548
|
+
f && c && o.push("whatsapp"), !f && i.has("sms") && o.push("sms");
|
|
549
|
+
const m = new Set(o);
|
|
550
|
+
return Yt.filter((p) => m.has(p));
|
|
551
|
+
}
|
|
552
|
+
const Zn = /https?:\/\/(?:(?![.,;:!?'»›]https?:\/\/)[^\s<>"\u060C\u061B\u061F\u06D4\u2000-\u206F\u3000-\u303F\uFF00-\uFFEF])+/gi, Qn = /* @__PURE__ */ new Set([
|
|
552
553
|
".",
|
|
553
554
|
",",
|
|
554
555
|
";",
|
|
@@ -558,15 +559,15 @@ const Hn = /https?:\/\/(?:(?![.,;:!?'»›]https?:\/\/)[^\s<>"\u060C\u061B\u061F
|
|
|
558
559
|
"'",
|
|
559
560
|
"»",
|
|
560
561
|
"›"
|
|
561
|
-
]),
|
|
562
|
-
function
|
|
562
|
+
]), Xn = { ")": "(", "]": "[", "}": "{" }, as = (e, t) => e.split(t).length - 1;
|
|
563
|
+
function ei(e) {
|
|
563
564
|
const t = {};
|
|
564
|
-
for (const [r, i] of Object.entries(
|
|
565
|
+
for (const [r, i] of Object.entries(Xn))
|
|
565
566
|
t[r] = as(e, r) - as(e, i);
|
|
566
567
|
let n = e.length;
|
|
567
568
|
for (; n > 0; ) {
|
|
568
569
|
const r = e[n - 1];
|
|
569
|
-
if (
|
|
570
|
+
if (Qn.has(r))
|
|
570
571
|
n -= 1;
|
|
571
572
|
else if (r in t && t[r] > 0)
|
|
572
573
|
t[r] -= 1, n -= 1;
|
|
@@ -575,12 +576,12 @@ function Yn(e) {
|
|
|
575
576
|
}
|
|
576
577
|
return e.slice(0, n);
|
|
577
578
|
}
|
|
578
|
-
const
|
|
579
|
-
function
|
|
580
|
-
const t = e.search(
|
|
581
|
-
return t > 0 &&
|
|
579
|
+
const ti = /[\u0600-\u06FF\u3040-\u30FF\u3400-\u9FFF\uAC00-\uD7AF]/, si = /[A-Za-z0-9]/;
|
|
580
|
+
function ni(e) {
|
|
581
|
+
const t = e.search(ti);
|
|
582
|
+
return t > 0 && si.test(e[t - 1]) ? e.slice(0, t) : e;
|
|
582
583
|
}
|
|
583
|
-
function
|
|
584
|
+
function ii(e) {
|
|
584
585
|
try {
|
|
585
586
|
const { protocol: t, hostname: n } = new URL(e);
|
|
586
587
|
return (t === "http:" || t === "https:") && n !== "";
|
|
@@ -588,21 +589,21 @@ function ei(e) {
|
|
|
588
589
|
return !1;
|
|
589
590
|
}
|
|
590
591
|
}
|
|
591
|
-
function
|
|
592
|
+
function ri(e) {
|
|
592
593
|
const t = [];
|
|
593
594
|
let n = 0;
|
|
594
595
|
const r = (i) => {
|
|
595
596
|
if (i === "") return;
|
|
596
|
-
const
|
|
597
|
-
(
|
|
597
|
+
const o = t[t.length - 1];
|
|
598
|
+
(o == null ? void 0 : o.kind) === "text" ? o.text += i : t.push({ kind: "text", text: i });
|
|
598
599
|
};
|
|
599
|
-
for (const i of e.matchAll(
|
|
600
|
-
const
|
|
601
|
-
|
|
600
|
+
for (const i of e.matchAll(Zn)) {
|
|
601
|
+
const o = i.index ?? 0, c = ei(ni(i[0]));
|
|
602
|
+
ii(c) && (r(e.slice(n, o)), t.push({ kind: "link", text: c, href: c }), n = o + c.length);
|
|
602
603
|
}
|
|
603
604
|
return r(e.slice(n)), t;
|
|
604
605
|
}
|
|
605
|
-
const
|
|
606
|
+
const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 300, Jt = "ds:rounded-[var(--radius-sm)] ds:underline ds:text-[var(--foreground)] ds:focus-visible:outline-solid ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]", Dt = (e) => e && /^https?:\/\//i.test(e) ? e : void 0, ci = (e, t) => ({
|
|
606
607
|
street: (e == null ? void 0 : e.address.line1) ?? "",
|
|
607
608
|
city: (e == null ? void 0 : e.address.city) ?? "",
|
|
608
609
|
postcode: (e == null ? void 0 : e.address.postalCode) ?? "",
|
|
@@ -610,7 +611,7 @@ const os = 500, si = /^[A-Z0-9]{16}$/, ni = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, cs = 3
|
|
|
610
611
|
// The practice's country only until the patient has an address at all.
|
|
611
612
|
country: (e ? e.address.country : t).toLowerCase(),
|
|
612
613
|
formatted: ""
|
|
613
|
-
}),
|
|
614
|
+
}), di = (e, t, n = null) => ({
|
|
614
615
|
name: t,
|
|
615
616
|
address: {
|
|
616
617
|
line1: e.street,
|
|
@@ -620,25 +621,25 @@ const os = 500, si = /^[A-Z0-9]{16}$/, ni = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, cs = 3
|
|
|
620
621
|
postalCode: e.postcode,
|
|
621
622
|
country: e.country.toUpperCase()
|
|
622
623
|
}
|
|
623
|
-
}),
|
|
624
|
+
}), li = It("ds:flex ds:flex-col ds:border", {
|
|
624
625
|
variants: {
|
|
625
626
|
noticeStyle: {
|
|
626
627
|
plain: "ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-md)] ds:border-[var(--border)] ds:bg-[var(--muted)] ds:p-[var(--spacing-sm)]",
|
|
627
628
|
highlighted: "ds:gap-[var(--spacing-sm)] ds:rounded-[var(--radius-lg)] ds:border-[color-mix(in_srgb,var(--primary)_30%,var(--border))] ds:bg-[color-mix(in_srgb,var(--primary)_8%,var(--card))] ds:p-[var(--spacing-md)]"
|
|
628
629
|
}
|
|
629
630
|
},
|
|
630
|
-
defaultVariants: { noticeStyle: "
|
|
631
|
-
}),
|
|
631
|
+
defaultVariants: { noticeStyle: "highlighted" }
|
|
632
|
+
}), ui = ["it", "ch", "de", "at", "fr", "sm"], V = {
|
|
632
633
|
country: "billing.country",
|
|
633
634
|
street: "billing.street",
|
|
634
635
|
city: "billing.city",
|
|
635
636
|
postcode: "billing.postcode",
|
|
636
637
|
province: "billing.province"
|
|
637
|
-
},
|
|
638
|
+
}, Ts = /^\d{5}$/, pi = (e) => {
|
|
638
639
|
if (!e) return !1;
|
|
639
|
-
const { line1: t, city: n, postalCode: r, country: i, state:
|
|
640
|
-
return !t.trim() || !n.trim() || !r.trim() || !i.trim() ? !1 : i.toUpperCase() !== "IT" ? !0 : !!
|
|
641
|
-
},
|
|
640
|
+
const { line1: t, city: n, postalCode: r, country: i, state: o } = e.address;
|
|
641
|
+
return !t.trim() || !n.trim() || !r.trim() || !i.trim() ? !1 : i.toUpperCase() !== "IT" ? !0 : !!o.trim() && Ts.test(r.trim());
|
|
642
|
+
}, mi = (e, t) => {
|
|
642
643
|
var n;
|
|
643
644
|
return {
|
|
644
645
|
name: t,
|
|
@@ -651,229 +652,268 @@ const os = 500, si = /^[A-Z0-9]{16}$/, ni = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, cs = 3
|
|
|
651
652
|
country: e.address.country.trim().toUpperCase()
|
|
652
653
|
}
|
|
653
654
|
};
|
|
654
|
-
},
|
|
655
|
+
}, Et = { state: "idle" }, ls = [
|
|
656
|
+
"firstName",
|
|
657
|
+
"lastName",
|
|
658
|
+
"email",
|
|
659
|
+
"mobilePhone",
|
|
660
|
+
"codiceFiscale",
|
|
661
|
+
"dateOfBirth",
|
|
662
|
+
"insuranceNumber",
|
|
663
|
+
V.country,
|
|
664
|
+
V.street,
|
|
665
|
+
V.city,
|
|
666
|
+
V.postcode,
|
|
667
|
+
V.province
|
|
668
|
+
], fi = /* @__PURE__ */ new Set(), es = ms(
|
|
655
669
|
({
|
|
656
670
|
value: e,
|
|
657
671
|
onChange: t,
|
|
658
672
|
onSubmit: n,
|
|
659
673
|
requireCodiceFiscale: r = !1,
|
|
660
674
|
requireDateOfBirth: i = !1,
|
|
661
|
-
requireInsuranceNumber:
|
|
675
|
+
requireInsuranceNumber: o = !1,
|
|
662
676
|
insuranceType: c,
|
|
663
677
|
showNote: f = !1,
|
|
664
|
-
showReturningPatientFlag:
|
|
665
|
-
privacyPolicyUrl:
|
|
678
|
+
showReturningPatientFlag: m = !1,
|
|
679
|
+
privacyPolicyUrl: p,
|
|
666
680
|
termsUrl: g,
|
|
667
681
|
practiceConsent: l,
|
|
668
|
-
payment:
|
|
682
|
+
payment: a,
|
|
669
683
|
paymentTermsUrl: u,
|
|
670
|
-
paymentBlocked:
|
|
671
|
-
billingInDetails:
|
|
672
|
-
paymentNoticeStyle:
|
|
673
|
-
criticalInformationToAccept:
|
|
674
|
-
validateCodiceFiscale:
|
|
675
|
-
validateInsuranceNumber:
|
|
676
|
-
submitting:
|
|
677
|
-
summarySlot:
|
|
678
|
-
defaultPhoneCountry:
|
|
684
|
+
paymentBlocked: y = !1,
|
|
685
|
+
billingInDetails: x = !1,
|
|
686
|
+
paymentNoticeStyle: k = "highlighted",
|
|
687
|
+
criticalInformationToAccept: E,
|
|
688
|
+
validateCodiceFiscale: N,
|
|
689
|
+
validateInsuranceNumber: S,
|
|
690
|
+
submitting: I = !1,
|
|
691
|
+
summarySlot: C,
|
|
692
|
+
defaultPhoneCountry: O,
|
|
679
693
|
confirmationChannels: T,
|
|
680
694
|
defaultConfirmationChannels: h,
|
|
681
|
-
submitError:
|
|
695
|
+
submitError: w
|
|
682
696
|
}, $) => {
|
|
683
|
-
var
|
|
684
|
-
const { t: b, i18n:
|
|
697
|
+
var A, B, R, J, ne;
|
|
698
|
+
const { t: b, i18n: ke } = W("ui"), F = Rt(), G = _(null), M = ye(
|
|
685
699
|
(d) => {
|
|
686
|
-
|
|
700
|
+
G.current = d, typeof $ == "function" ? $(d) : $ && ($.current = d);
|
|
687
701
|
},
|
|
688
702
|
[$]
|
|
689
|
-
), [
|
|
690
|
-
|
|
691
|
-
var
|
|
692
|
-
if (
|
|
693
|
-
const d = (
|
|
703
|
+
), [Se, ut] = se(0);
|
|
704
|
+
K(() => {
|
|
705
|
+
var D;
|
|
706
|
+
if (Se === 0) return;
|
|
707
|
+
const d = (D = G.current) == null ? void 0 : D.querySelectorAll(
|
|
694
708
|
'[aria-invalid="true"], [role="checkbox"][aria-required="true"][aria-checked="false"], [data-unanswered] [role="checkbox"]'
|
|
695
709
|
);
|
|
696
|
-
for (const
|
|
697
|
-
if (
|
|
698
|
-
}, [
|
|
699
|
-
const fe =
|
|
700
|
-
(d) =>
|
|
710
|
+
for (const U of d ?? [])
|
|
711
|
+
if (U.focus(), document.activeElement === U) return;
|
|
712
|
+
}, [Se]);
|
|
713
|
+
const fe = _(!1), [We, Ke] = se(!1), [Z, ze] = se(!1), ce = I || We, [X, ge] = se(Et), [xe, De] = se(Et), [ee, Le] = se({}), de = ye(
|
|
714
|
+
(d) => Le((D) => ({ ...D, [d]: !0 })),
|
|
701
715
|
[]
|
|
702
|
-
),
|
|
716
|
+
), [Be, Ie] = se(fi), Q = _(null), je = _(
|
|
703
717
|
null
|
|
704
718
|
);
|
|
705
|
-
|
|
719
|
+
K(
|
|
706
720
|
() => () => {
|
|
707
|
-
|
|
721
|
+
Q.current && clearTimeout(Q.current), je.current && clearTimeout(je.current);
|
|
708
722
|
},
|
|
709
723
|
[]
|
|
710
724
|
);
|
|
711
|
-
const
|
|
725
|
+
const q = ye(
|
|
712
726
|
(d) => {
|
|
713
|
-
|
|
727
|
+
ze(!1), t({ ...e, ...d });
|
|
714
728
|
},
|
|
715
729
|
[e, t]
|
|
716
|
-
),
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
730
|
+
), le = a ? JSON.stringify([
|
|
731
|
+
a.serviceId,
|
|
732
|
+
a.kind,
|
|
733
|
+
a.amountCents,
|
|
734
|
+
a.currencyCode,
|
|
721
735
|
u
|
|
722
|
-
]) : void 0, [Kt,
|
|
723
|
-
() => e.paymentAccepted ?
|
|
724
|
-
),
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
}, [
|
|
728
|
-
const
|
|
736
|
+
]) : void 0, [Kt, tt] = se(
|
|
737
|
+
() => e.paymentAccepted ? le : void 0
|
|
738
|
+
), st = _(le), Nt = !!(a && e.paymentAccepted && Kt === le);
|
|
739
|
+
K(() => {
|
|
740
|
+
st.current !== le && (st.current = le, tt(void 0), e.paymentAccepted !== void 0 && q({ paymentAccepted: a ? !1 : void 0 }));
|
|
741
|
+
}, [le, a, q, e.paymentAccepted]);
|
|
742
|
+
const nt = typeof (l == null ? void 0 : l.label) == "string" && l.label.trim() !== "", z = l && nt ? JSON.stringify([
|
|
729
743
|
l.label,
|
|
730
744
|
l.url ?? null,
|
|
731
745
|
l.required
|
|
732
|
-
]) : void 0, [zt,
|
|
733
|
-
() => e.practiceConsentAccepted ?
|
|
734
|
-
),
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
}, [
|
|
738
|
-
const
|
|
746
|
+
]) : void 0, [zt, ue] = se(
|
|
747
|
+
() => e.practiceConsentAccepted ? z : void 0
|
|
748
|
+
), Ye = _(z), Ne = !!(z !== void 0 && e.practiceConsentAccepted && zt === z);
|
|
749
|
+
K(() => {
|
|
750
|
+
Ye.current !== z && (Ye.current = z, ue(void 0), e.practiceConsentAccepted !== void 0 && q({ practiceConsentAccepted: void 0 }));
|
|
751
|
+
}, [z, q, e.practiceConsentAccepted]);
|
|
752
|
+
const Ee = a ? Pt(a.amountCents, a.currencyCode, ke.language) : "", P = Dt(u), we = x && !!a && !y, he = r, wt = (O || "it").toLowerCase(), pe = !we || pi(e.billing), ve = ci(e.billing, wt), Ze = ve.country === "it", pt = _(null), re = _(
|
|
739
753
|
null
|
|
740
|
-
),
|
|
741
|
-
|
|
754
|
+
), Re = (A = e.billing) == null ? void 0 : A.address.line1.trim(), it = ((R = (B = e.billing) == null ? void 0 : B.address.line2) == null ? void 0 : R.trim()) || null;
|
|
755
|
+
K(() => {
|
|
742
756
|
var d;
|
|
743
|
-
|
|
744
|
-
}, [
|
|
745
|
-
const
|
|
746
|
-
//
|
|
747
|
-
d === "
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
757
|
+
Re !== void 0 && it ? re.current = { street: Re, line2: it } : (Re === void 0 || Re === ((d = re.current) == null ? void 0 : d.street)) && (re.current = null);
|
|
758
|
+
}, [Re, it]);
|
|
759
|
+
const Qe = (d) => (
|
|
760
|
+
// Nothing for a block not shown, nor for a province outside Italy.
|
|
761
|
+
!we || !ee[V[d]] || d === "province" && !Ze ? void 0 : ve[d].trim() ? (
|
|
762
|
+
// The one format the block itself checks: an Italian CAP.
|
|
763
|
+
d === "postcode" && Ze && !Ts.test(ve.postcode.trim()) ? b("inputs.postalCode.invalid") : void 0
|
|
764
|
+
) : b("booking.details.fieldRequired")
|
|
765
|
+
), jt = ye(
|
|
766
|
+
() => Le(
|
|
767
|
+
(d) => d[V.province] ? d : {
|
|
751
768
|
...d,
|
|
752
769
|
codiceFiscale: !0,
|
|
753
770
|
...Object.fromEntries(
|
|
754
|
-
Object.values(
|
|
771
|
+
Object.values(V).map((D) => [D, !0])
|
|
755
772
|
)
|
|
756
773
|
}
|
|
757
774
|
),
|
|
758
775
|
[]
|
|
759
|
-
),
|
|
760
|
-
() =>
|
|
776
|
+
), Fe = L(
|
|
777
|
+
() => As(T),
|
|
761
778
|
[T]
|
|
762
|
-
),
|
|
763
|
-
|
|
764
|
-
if (
|
|
765
|
-
if (
|
|
766
|
-
e.confirmationChannels !== void 0 &&
|
|
779
|
+
), Ce = !a && !y && Fe.length >= 2, H = _(!1);
|
|
780
|
+
K(() => {
|
|
781
|
+
if (a || y) return;
|
|
782
|
+
if (!Ce) {
|
|
783
|
+
e.confirmationChannels !== void 0 && q({ confirmationChannels: void 0 });
|
|
767
784
|
return;
|
|
768
785
|
}
|
|
769
786
|
if (e.confirmationChannels !== void 0) {
|
|
770
|
-
|
|
787
|
+
H.current = !0;
|
|
771
788
|
return;
|
|
772
789
|
}
|
|
773
|
-
const d =
|
|
774
|
-
|
|
790
|
+
const d = Yn(
|
|
791
|
+
Fe,
|
|
775
792
|
e.mobilePhone,
|
|
776
793
|
h
|
|
777
794
|
);
|
|
778
|
-
|
|
795
|
+
H.current = !0, q({ confirmationChannels: d });
|
|
779
796
|
}, [
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
797
|
+
Ce,
|
|
798
|
+
a,
|
|
799
|
+
y,
|
|
800
|
+
Fe,
|
|
784
801
|
e.mobilePhone,
|
|
785
802
|
h
|
|
786
803
|
]);
|
|
787
|
-
const
|
|
804
|
+
const j = L(
|
|
788
805
|
() => e.confirmationChannels ?? [],
|
|
789
806
|
[e.confirmationChannels]
|
|
790
|
-
),
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
}, [
|
|
794
|
-
const
|
|
795
|
-
|
|
807
|
+
), mt = Ce && j.length === 0, rt = _(N), ft = _(S);
|
|
808
|
+
K(() => {
|
|
809
|
+
rt.current = N, ft.current = S;
|
|
810
|
+
}, [N, S]);
|
|
811
|
+
const gt = !!N, ht = !!S;
|
|
812
|
+
K(() => {
|
|
796
813
|
const d = e.codiceFiscale;
|
|
797
|
-
if (!
|
|
798
|
-
|
|
814
|
+
if (!he || !gt || !d) {
|
|
815
|
+
ge(Et);
|
|
799
816
|
return;
|
|
800
817
|
}
|
|
801
|
-
if (!
|
|
802
|
-
|
|
818
|
+
if (!oi.test(d)) {
|
|
819
|
+
ge({
|
|
803
820
|
state: "invalid",
|
|
804
821
|
hint: b("booking.details.codiceFiscale.invalidFormat")
|
|
805
822
|
});
|
|
806
823
|
return;
|
|
807
824
|
}
|
|
808
|
-
|
|
809
|
-
let
|
|
810
|
-
return
|
|
825
|
+
ge({ state: "pending" });
|
|
826
|
+
let D = !0;
|
|
827
|
+
return Q.current && clearTimeout(Q.current), Q.current = setTimeout(async () => {
|
|
811
828
|
try {
|
|
812
|
-
const
|
|
813
|
-
if (!
|
|
814
|
-
const
|
|
815
|
-
|
|
816
|
-
state:
|
|
817
|
-
hint:
|
|
829
|
+
const U = rt.current;
|
|
830
|
+
if (!U) return;
|
|
831
|
+
const ns = await U(d);
|
|
832
|
+
D && ge({
|
|
833
|
+
state: ns.valid ? "valid" : "invalid",
|
|
834
|
+
hint: ns.hint,
|
|
818
835
|
value: d
|
|
819
836
|
});
|
|
820
837
|
} catch {
|
|
821
|
-
|
|
838
|
+
D && ge({
|
|
822
839
|
state: "invalid",
|
|
823
840
|
hint: b("booking.details.codiceFiscale.unavailable"),
|
|
824
841
|
value: d
|
|
825
842
|
});
|
|
826
843
|
}
|
|
827
|
-
},
|
|
828
|
-
|
|
844
|
+
}, ds), () => {
|
|
845
|
+
D = !1, Q.current && clearTimeout(Q.current);
|
|
829
846
|
};
|
|
830
|
-
}, [
|
|
831
|
-
const
|
|
832
|
-
|
|
847
|
+
}, [he, gt, e.codiceFiscale, b]);
|
|
848
|
+
const Ue = o && c === "public";
|
|
849
|
+
K(() => {
|
|
833
850
|
const d = e.insuranceNumber;
|
|
834
|
-
if (!
|
|
835
|
-
|
|
851
|
+
if (!Ue || !ht || !d) {
|
|
852
|
+
De(Et);
|
|
836
853
|
return;
|
|
837
854
|
}
|
|
838
|
-
|
|
839
|
-
const
|
|
840
|
-
|
|
841
|
-
(
|
|
842
|
-
|
|
855
|
+
De({ state: "pending" }), je.current && clearTimeout(je.current), je.current = setTimeout(() => {
|
|
856
|
+
const D = ft.current;
|
|
857
|
+
D && D(d).then(
|
|
858
|
+
(U) => De(
|
|
859
|
+
U.valid ? { state: "valid" } : { state: "invalid", hint: U.hint }
|
|
843
860
|
)
|
|
844
861
|
).catch(
|
|
845
|
-
() =>
|
|
862
|
+
() => De({
|
|
846
863
|
state: "invalid",
|
|
847
864
|
hint: b("booking.details.insuranceNumber.unavailable")
|
|
848
865
|
})
|
|
849
866
|
);
|
|
850
|
-
},
|
|
851
|
-
}, [
|
|
852
|
-
const
|
|
853
|
-
() => !!(e.email &&
|
|
867
|
+
}, ds);
|
|
868
|
+
}, [Ue, ht, e.insuranceNumber, b]);
|
|
869
|
+
const ot = L(
|
|
870
|
+
() => !!(e.email && ai.test(e.email)),
|
|
854
871
|
[e.email]
|
|
855
|
-
),
|
|
872
|
+
), Pe = L(
|
|
856
873
|
() => !!(e.mobilePhone && e.mobilePhone.length >= 6),
|
|
857
874
|
[e.mobilePhone]
|
|
858
|
-
),
|
|
859
|
-
var d,
|
|
860
|
-
return !(!((d = e.firstName) != null && d.trim()) || !((
|
|
875
|
+
), Ct = L(() => {
|
|
876
|
+
var d, D;
|
|
877
|
+
return !(!((d = e.firstName) != null && d.trim()) || !((D = e.lastName) != null && D.trim()) || !ot || !Pe || he && (X.state !== "valid" || X.value !== e.codiceFiscale) || !pe || i && !e.dateOfBirth || Ue && xe.state !== "valid");
|
|
861
878
|
}, [
|
|
862
879
|
e.firstName,
|
|
863
880
|
e.lastName,
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
881
|
+
ot,
|
|
882
|
+
Pe,
|
|
883
|
+
he,
|
|
884
|
+
pe,
|
|
885
|
+
X.state,
|
|
886
|
+
X.value,
|
|
870
887
|
e.codiceFiscale,
|
|
871
888
|
i,
|
|
872
889
|
e.dateOfBirth,
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
]),
|
|
876
|
-
|
|
890
|
+
Ue,
|
|
891
|
+
xe.state
|
|
892
|
+
]), Ve = E != null && E.trim() ? E : void 0, vt = Ve !== void 0, Ut = !vt || !!e.criticalInformationAccepted, Ae = !nt || !(l != null && l.required) || Ne, Ht = !!(e.privacyConsent && e.termsConsent && Ut && Ae), bt = !Ce || j.length > 0, Me = Ct && Ht && bt && (!a || Nt) && !y && !ce, me = !Me && !ce && !y, He = `${F}-submit-hint`, te = {
|
|
893
|
+
firstName: ee.firstName && !((J = e.firstName) != null && J.trim()) ? b("booking.details.firstName.required") : void 0,
|
|
894
|
+
lastName: ee.lastName && !((ne = e.lastName) != null && ne.trim()) ? b("booking.details.lastName.required") : void 0,
|
|
895
|
+
email: ee.email && !ot ? b("booking.details.email.invalid") : void 0,
|
|
896
|
+
mobilePhone: ee.mobilePhone && !Pe ? b("booking.details.mobilePhone.invalid") : void 0,
|
|
897
|
+
codiceFiscale: ee.codiceFiscale && X.state === "invalid" ? X.hint ?? b("booking.details.codiceFiscale.invalid") : ee.codiceFiscale && !e.codiceFiscale ? b("booking.details.fieldRequired") : void 0,
|
|
898
|
+
dateOfBirth: ee.dateOfBirth && !e.dateOfBirth ? b("booking.details.dateOfBirth.required") : void 0,
|
|
899
|
+
insuranceNumber: ee.insuranceNumber && xe.state === "invalid" ? xe.hint ?? b("booking.details.insuranceNumber.invalid") : void 0,
|
|
900
|
+
[V.country]: Qe("country"),
|
|
901
|
+
[V.street]: Qe("street"),
|
|
902
|
+
[V.city]: Qe("city"),
|
|
903
|
+
[V.postcode]: Qe("postcode"),
|
|
904
|
+
[V.province]: Qe("province")
|
|
905
|
+
}, yt = ls.filter(
|
|
906
|
+
(d) => Be.has(d) && te[d] !== void 0
|
|
907
|
+
);
|
|
908
|
+
yt.length !== Be.size && Ie(new Set(yt));
|
|
909
|
+
const oe = (d) => !Be.has(d), At = async (d) => {
|
|
910
|
+
if (d.preventDefault(), !ce && !fe.current && !Me && Ie(
|
|
911
|
+
new Set(
|
|
912
|
+
ls.filter(
|
|
913
|
+
(U) => Be.has(U) || !te[U]
|
|
914
|
+
)
|
|
915
|
+
)
|
|
916
|
+
), Le({
|
|
877
917
|
firstName: !0,
|
|
878
918
|
lastName: !0,
|
|
879
919
|
email: !0,
|
|
@@ -882,14 +922,14 @@ const os = 500, si = /^[A-Z0-9]{16}$/, ni = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, cs = 3
|
|
|
882
922
|
dateOfBirth: !0,
|
|
883
923
|
insuranceNumber: !0,
|
|
884
924
|
...Object.fromEntries(
|
|
885
|
-
Object.values(
|
|
925
|
+
Object.values(V).map((U) => [U, !0])
|
|
886
926
|
)
|
|
887
|
-
}),
|
|
888
|
-
if (!
|
|
889
|
-
|
|
927
|
+
}), ce || fe.current) return;
|
|
928
|
+
if (!Me) {
|
|
929
|
+
ut((U) => U + 1);
|
|
890
930
|
return;
|
|
891
931
|
}
|
|
892
|
-
const
|
|
932
|
+
const D = {
|
|
893
933
|
firstName: e.firstName.trim(),
|
|
894
934
|
lastName: e.lastName.trim(),
|
|
895
935
|
email: e.email.trim(),
|
|
@@ -898,11 +938,11 @@ const os = 500, si = /^[A-Z0-9]{16}$/, ni = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, cs = 3
|
|
|
898
938
|
termsConsent: !0,
|
|
899
939
|
// Only present when the service carried text to accept — a
|
|
900
940
|
// reason without it leaves the key out of the payload entirely.
|
|
901
|
-
...
|
|
941
|
+
...vt ? { criticalInformationAccepted: !0 } : {},
|
|
902
942
|
// Sent whenever the practice's box is shown, ticked or not, so the
|
|
903
943
|
// server can record the answer; left out when there is no box.
|
|
904
|
-
...
|
|
905
|
-
...
|
|
944
|
+
...nt ? { practiceConsentAccepted: Ne } : {},
|
|
945
|
+
...a ? { paymentAccepted: !0 } : {},
|
|
906
946
|
codiceFiscale: e.codiceFiscale,
|
|
907
947
|
dateOfBirth: e.dateOfBirth,
|
|
908
948
|
insuranceNumber: e.insuranceNumber,
|
|
@@ -911,45 +951,46 @@ const os = 500, si = /^[A-Z0-9]{16}$/, ni = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, cs = 3
|
|
|
911
951
|
// Only include when the picker was visible; otherwise the single
|
|
912
952
|
// implicit channel is inferred backend-side from the practice
|
|
913
953
|
// config.
|
|
914
|
-
confirmationChannels:
|
|
915
|
-
...
|
|
916
|
-
billing:
|
|
954
|
+
confirmationChannels: Ce ? j : void 0,
|
|
955
|
+
...we && e.billing ? {
|
|
956
|
+
billing: mi(
|
|
917
957
|
e.billing,
|
|
918
958
|
`${e.firstName.trim()} ${e.lastName.trim()}`
|
|
919
959
|
)
|
|
920
960
|
} : {}
|
|
921
961
|
};
|
|
922
|
-
fe.current = !0,
|
|
962
|
+
fe.current = !0, Ke(!0), ze(!1);
|
|
923
963
|
try {
|
|
924
|
-
await n(
|
|
964
|
+
await n(D);
|
|
925
965
|
} catch {
|
|
926
|
-
|
|
966
|
+
ze(!0);
|
|
927
967
|
} finally {
|
|
928
|
-
fe.current = !1,
|
|
968
|
+
fe.current = !1, Ke(!1);
|
|
929
969
|
}
|
|
930
|
-
},
|
|
931
|
-
|
|
970
|
+
}, kt = /* @__PURE__ */ s(
|
|
971
|
+
Ge,
|
|
932
972
|
{
|
|
933
973
|
label: b("booking.details.codiceFiscale.label"),
|
|
934
974
|
required: !0,
|
|
935
|
-
description:
|
|
936
|
-
error:
|
|
975
|
+
description: X.state === "pending" ? b("booking.details.codiceFiscale.checking") : b("booking.details.codiceFiscale.helper"),
|
|
976
|
+
error: te.codiceFiscale,
|
|
977
|
+
announceError: oe("codiceFiscale"),
|
|
937
978
|
children: /* @__PURE__ */ s(
|
|
938
|
-
|
|
979
|
+
Tt,
|
|
939
980
|
{
|
|
940
981
|
value: e.codiceFiscale ?? "",
|
|
941
982
|
maxLength: 16,
|
|
942
|
-
onChange: (d) =>
|
|
983
|
+
onChange: (d) => q({
|
|
943
984
|
codiceFiscale: d.target.value.slice(0, 16).toUpperCase()
|
|
944
985
|
}),
|
|
945
|
-
onBlur: () =>
|
|
986
|
+
onBlur: () => de("codiceFiscale")
|
|
946
987
|
}
|
|
947
988
|
)
|
|
948
989
|
}
|
|
949
|
-
),
|
|
950
|
-
const
|
|
951
|
-
return
|
|
952
|
-
|
|
990
|
+
), St = (d, D) => {
|
|
991
|
+
const U = Dt(D);
|
|
992
|
+
return U ? /* @__PURE__ */ s(
|
|
993
|
+
zs,
|
|
953
994
|
{
|
|
954
995
|
ns: "ui",
|
|
955
996
|
i18nKey: d,
|
|
@@ -964,10 +1005,10 @@ const os = 500, si = /^[A-Z0-9]{16}$/, ni = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, cs = 3
|
|
|
964
1005
|
/* @__PURE__ */ s(
|
|
965
1006
|
"a",
|
|
966
1007
|
{
|
|
967
|
-
href:
|
|
1008
|
+
href: U,
|
|
968
1009
|
target: "_blank",
|
|
969
1010
|
rel: "noopener noreferrer",
|
|
970
|
-
className:
|
|
1011
|
+
className: Jt
|
|
971
1012
|
}
|
|
972
1013
|
)
|
|
973
1014
|
)
|
|
@@ -978,49 +1019,51 @@ const os = 500, si = /^[A-Z0-9]{16}$/, ni = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, cs = 3
|
|
|
978
1019
|
return /* @__PURE__ */ v(
|
|
979
1020
|
"form",
|
|
980
1021
|
{
|
|
981
|
-
ref:
|
|
1022
|
+
ref: M,
|
|
982
1023
|
id: F,
|
|
983
1024
|
noValidate: !0,
|
|
984
|
-
onSubmit:
|
|
1025
|
+
onSubmit: At,
|
|
985
1026
|
onFocus: (d) => {
|
|
986
|
-
const
|
|
987
|
-
!
|
|
1027
|
+
const D = pt.current;
|
|
1028
|
+
!D || !d.currentTarget.contains(d.target) || !D.contains(d.target) && D.compareDocumentPosition(d.target) & Node.DOCUMENT_POSITION_FOLLOWING && jt();
|
|
988
1029
|
},
|
|
989
|
-
"aria-busy":
|
|
1030
|
+
"aria-busy": ce || void 0,
|
|
990
1031
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
991
1032
|
children: [
|
|
992
|
-
|
|
1033
|
+
C,
|
|
993
1034
|
/* @__PURE__ */ v("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
|
|
994
1035
|
/* @__PURE__ */ s(
|
|
995
|
-
|
|
1036
|
+
Ge,
|
|
996
1037
|
{
|
|
997
1038
|
label: b("booking.details.firstName.label"),
|
|
998
1039
|
required: !0,
|
|
999
|
-
error:
|
|
1040
|
+
error: te.firstName,
|
|
1041
|
+
announceError: oe("firstName"),
|
|
1000
1042
|
children: /* @__PURE__ */ s(
|
|
1001
|
-
|
|
1043
|
+
Tt,
|
|
1002
1044
|
{
|
|
1003
1045
|
autoComplete: "given-name",
|
|
1004
1046
|
value: e.firstName ?? "",
|
|
1005
|
-
onChange: (d) =>
|
|
1006
|
-
onBlur: () =>
|
|
1047
|
+
onChange: (d) => q({ firstName: d.target.value }),
|
|
1048
|
+
onBlur: () => de("firstName")
|
|
1007
1049
|
}
|
|
1008
1050
|
)
|
|
1009
1051
|
}
|
|
1010
1052
|
),
|
|
1011
1053
|
/* @__PURE__ */ s(
|
|
1012
|
-
|
|
1054
|
+
Ge,
|
|
1013
1055
|
{
|
|
1014
1056
|
label: b("booking.details.lastName.label"),
|
|
1015
1057
|
required: !0,
|
|
1016
|
-
error:
|
|
1058
|
+
error: te.lastName,
|
|
1059
|
+
announceError: oe("lastName"),
|
|
1017
1060
|
children: /* @__PURE__ */ s(
|
|
1018
|
-
|
|
1061
|
+
Tt,
|
|
1019
1062
|
{
|
|
1020
1063
|
autoComplete: "family-name",
|
|
1021
1064
|
value: e.lastName ?? "",
|
|
1022
|
-
onChange: (d) =>
|
|
1023
|
-
onBlur: () =>
|
|
1065
|
+
onChange: (d) => q({ lastName: d.target.value }),
|
|
1066
|
+
onBlur: () => de("lastName")
|
|
1024
1067
|
}
|
|
1025
1068
|
)
|
|
1026
1069
|
}
|
|
@@ -1028,92 +1071,96 @@ const os = 500, si = /^[A-Z0-9]{16}$/, ni = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, cs = 3
|
|
|
1028
1071
|
] }),
|
|
1029
1072
|
/* @__PURE__ */ v("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
|
|
1030
1073
|
/* @__PURE__ */ s(
|
|
1031
|
-
|
|
1074
|
+
Ge,
|
|
1032
1075
|
{
|
|
1033
1076
|
label: b("booking.details.email.label"),
|
|
1034
1077
|
required: !0,
|
|
1035
|
-
error:
|
|
1078
|
+
error: te.email,
|
|
1079
|
+
announceError: oe("email"),
|
|
1036
1080
|
children: /* @__PURE__ */ s(
|
|
1037
|
-
|
|
1081
|
+
Gs,
|
|
1038
1082
|
{
|
|
1039
1083
|
value: e.email ?? "",
|
|
1040
|
-
onChange: (d) =>
|
|
1041
|
-
onBlur: () =>
|
|
1084
|
+
onChange: (d) => q({ email: d.target.value }),
|
|
1085
|
+
onBlur: () => de("email")
|
|
1042
1086
|
}
|
|
1043
1087
|
)
|
|
1044
1088
|
}
|
|
1045
1089
|
),
|
|
1046
1090
|
/* @__PURE__ */ s(
|
|
1047
|
-
|
|
1091
|
+
Ge,
|
|
1048
1092
|
{
|
|
1049
1093
|
label: b("booking.details.mobilePhone.label"),
|
|
1050
1094
|
required: !0,
|
|
1051
|
-
error:
|
|
1095
|
+
error: te.mobilePhone,
|
|
1096
|
+
announceError: oe("mobilePhone"),
|
|
1052
1097
|
children: /* @__PURE__ */ s(
|
|
1053
|
-
|
|
1098
|
+
Js,
|
|
1054
1099
|
{
|
|
1055
1100
|
value: e.mobilePhone ?? "",
|
|
1056
|
-
defaultCountry:
|
|
1101
|
+
defaultCountry: O == null ? void 0 : O.toUpperCase(),
|
|
1057
1102
|
onChange: (d) => {
|
|
1058
|
-
|
|
1103
|
+
q({ mobilePhone: d }), de("mobilePhone");
|
|
1059
1104
|
}
|
|
1060
1105
|
}
|
|
1061
1106
|
)
|
|
1062
1107
|
}
|
|
1063
1108
|
)
|
|
1064
1109
|
] }),
|
|
1065
|
-
|
|
1066
|
-
|
|
1110
|
+
he && !we || i ? /* @__PURE__ */ v("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
|
|
1111
|
+
he && !we ? kt : null,
|
|
1067
1112
|
i ? /* @__PURE__ */ s(
|
|
1068
|
-
|
|
1113
|
+
Ge,
|
|
1069
1114
|
{
|
|
1070
1115
|
label: b("booking.details.dateOfBirth.label"),
|
|
1071
1116
|
required: !0,
|
|
1072
|
-
error:
|
|
1117
|
+
error: te.dateOfBirth,
|
|
1118
|
+
announceError: oe("dateOfBirth"),
|
|
1073
1119
|
children: /* @__PURE__ */ s(
|
|
1074
|
-
|
|
1120
|
+
Hs,
|
|
1075
1121
|
{
|
|
1076
1122
|
value: e.dateOfBirth ? new Date(e.dateOfBirth) : void 0,
|
|
1077
1123
|
onChange: (d) => {
|
|
1078
|
-
|
|
1124
|
+
q({
|
|
1079
1125
|
dateOfBirth: d ? d.toISOString().slice(0, 10) : void 0
|
|
1080
|
-
}),
|
|
1126
|
+
}), de("dateOfBirth");
|
|
1081
1127
|
}
|
|
1082
1128
|
}
|
|
1083
1129
|
)
|
|
1084
1130
|
}
|
|
1085
1131
|
) : null
|
|
1086
1132
|
] }) : null,
|
|
1087
|
-
|
|
1088
|
-
|
|
1133
|
+
Ue ? /* @__PURE__ */ s(
|
|
1134
|
+
Ge,
|
|
1089
1135
|
{
|
|
1090
1136
|
label: b("booking.details.insuranceNumber.label"),
|
|
1091
1137
|
required: !0,
|
|
1092
|
-
description:
|
|
1093
|
-
error:
|
|
1138
|
+
description: xe.state === "pending" ? b("booking.details.insuranceNumber.checking") : void 0,
|
|
1139
|
+
error: te.insuranceNumber,
|
|
1140
|
+
announceError: oe("insuranceNumber"),
|
|
1094
1141
|
children: /* @__PURE__ */ s(
|
|
1095
|
-
|
|
1142
|
+
Tt,
|
|
1096
1143
|
{
|
|
1097
1144
|
value: e.insuranceNumber ?? "",
|
|
1098
|
-
onChange: (d) =>
|
|
1099
|
-
onBlur: () =>
|
|
1145
|
+
onChange: (d) => q({ insuranceNumber: d.target.value }),
|
|
1146
|
+
onBlur: () => de("insuranceNumber")
|
|
1100
1147
|
}
|
|
1101
1148
|
)
|
|
1102
1149
|
}
|
|
1103
1150
|
) : null,
|
|
1104
|
-
|
|
1151
|
+
we ? /* @__PURE__ */ v(
|
|
1105
1152
|
"div",
|
|
1106
1153
|
{
|
|
1107
|
-
ref:
|
|
1154
|
+
ref: pt,
|
|
1108
1155
|
"data-component": "booking-billing",
|
|
1109
1156
|
role: "group",
|
|
1110
1157
|
"aria-labelledby": `${F}-billing-heading`,
|
|
1111
1158
|
"aria-describedby": `${F}-billing-intro`,
|
|
1112
1159
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:rounded-[var(--radius-md)] ds:border ds:border-[var(--border)] ds:p-[var(--spacing-sm)]",
|
|
1113
1160
|
onBlur: (d) => {
|
|
1114
|
-
var
|
|
1115
|
-
const
|
|
1116
|
-
(
|
|
1161
|
+
var U;
|
|
1162
|
+
const D = (U = d.target.closest("[data-address-field]")) == null ? void 0 : U.getAttribute("data-address-field");
|
|
1163
|
+
(D === "street" || D === "city" || D === "postcode") && de(V[D]);
|
|
1117
1164
|
},
|
|
1118
1165
|
children: [
|
|
1119
1166
|
/* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
@@ -1134,36 +1181,43 @@ const os = 500, si = /^[A-Z0-9]{16}$/, ni = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, cs = 3
|
|
|
1134
1181
|
}
|
|
1135
1182
|
)
|
|
1136
1183
|
] }),
|
|
1137
|
-
|
|
1184
|
+
he ? kt : null,
|
|
1138
1185
|
/* @__PURE__ */ s(
|
|
1139
|
-
|
|
1186
|
+
Ys,
|
|
1140
1187
|
{
|
|
1141
|
-
value:
|
|
1188
|
+
value: ve,
|
|
1142
1189
|
onChange: (d) => {
|
|
1143
|
-
var
|
|
1190
|
+
var D;
|
|
1144
1191
|
return (
|
|
1145
1192
|
// The name is set from the patient's own on submit.
|
|
1146
|
-
|
|
1147
|
-
billing:
|
|
1193
|
+
q({
|
|
1194
|
+
billing: di(
|
|
1148
1195
|
d,
|
|
1149
1196
|
"",
|
|
1150
1197
|
// A second line belongs to its street: it goes when the
|
|
1151
1198
|
// patient writes another, and returns with the first.
|
|
1152
|
-
d.street.trim() === ((
|
|
1199
|
+
d.street.trim() === ((D = re.current) == null ? void 0 : D.street) ? re.current.line2 : null
|
|
1153
1200
|
)
|
|
1154
1201
|
})
|
|
1155
1202
|
);
|
|
1156
1203
|
},
|
|
1157
|
-
popularCountries:
|
|
1204
|
+
popularCountries: ui,
|
|
1158
1205
|
layout: "grid",
|
|
1159
|
-
fields:
|
|
1160
|
-
required:
|
|
1206
|
+
fields: Ze ? void 0 : ["street", "city", "postcode"],
|
|
1207
|
+
required: Ze ? ["country", "street", "city", "postcode", "province"] : ["country", "street", "city", "postcode"],
|
|
1161
1208
|
errors: {
|
|
1162
|
-
country:
|
|
1163
|
-
street:
|
|
1164
|
-
city:
|
|
1165
|
-
postcode:
|
|
1166
|
-
province:
|
|
1209
|
+
country: te[V.country],
|
|
1210
|
+
street: te[V.street],
|
|
1211
|
+
city: te[V.city],
|
|
1212
|
+
postcode: te[V.postcode],
|
|
1213
|
+
province: te[V.province]
|
|
1214
|
+
},
|
|
1215
|
+
announceErrors: {
|
|
1216
|
+
country: oe(V.country),
|
|
1217
|
+
street: oe(V.street),
|
|
1218
|
+
city: oe(V.city),
|
|
1219
|
+
postcode: oe(V.postcode),
|
|
1220
|
+
province: oe(V.province)
|
|
1167
1221
|
}
|
|
1168
1222
|
}
|
|
1169
1223
|
)
|
|
@@ -1171,32 +1225,32 @@ const os = 500, si = /^[A-Z0-9]{16}$/, ni = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, cs = 3
|
|
|
1171
1225
|
}
|
|
1172
1226
|
) : null,
|
|
1173
1227
|
f ? /* @__PURE__ */ s(
|
|
1174
|
-
|
|
1228
|
+
Ge,
|
|
1175
1229
|
{
|
|
1176
1230
|
label: b("booking.details.note.label"),
|
|
1177
1231
|
description: b("booking.details.note.helper", {
|
|
1178
|
-
max:
|
|
1232
|
+
max: cs
|
|
1179
1233
|
}),
|
|
1180
1234
|
children: /* @__PURE__ */ s(
|
|
1181
|
-
|
|
1235
|
+
Ws,
|
|
1182
1236
|
{
|
|
1183
1237
|
value: e.note ?? "",
|
|
1184
|
-
maxLength:
|
|
1238
|
+
maxLength: cs,
|
|
1185
1239
|
rows: 3,
|
|
1186
|
-
onChange: (d) =>
|
|
1240
|
+
onChange: (d) => q({ note: d.target.value })
|
|
1187
1241
|
}
|
|
1188
1242
|
)
|
|
1189
1243
|
}
|
|
1190
1244
|
) : null,
|
|
1191
|
-
|
|
1192
|
-
|
|
1245
|
+
m ? /* @__PURE__ */ s(
|
|
1246
|
+
at,
|
|
1193
1247
|
{
|
|
1194
1248
|
checked: !!e.returningPatient,
|
|
1195
|
-
onCheckedChange: (d) =>
|
|
1249
|
+
onCheckedChange: (d) => q({ returningPatient: d === !0 }),
|
|
1196
1250
|
label: b("booking.details.returningPatient.label")
|
|
1197
1251
|
}
|
|
1198
1252
|
) : null,
|
|
1199
|
-
|
|
1253
|
+
Ve !== void 0 ? /* @__PURE__ */ v(
|
|
1200
1254
|
"div",
|
|
1201
1255
|
{
|
|
1202
1256
|
"data-component": "booking-critical-information",
|
|
@@ -1212,26 +1266,26 @@ const os = 500, si = /^[A-Z0-9]{16}$/, ni = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, cs = 3
|
|
|
1212
1266
|
children: b("booking.details.criticalInformation.heading")
|
|
1213
1267
|
}
|
|
1214
1268
|
),
|
|
1215
|
-
/* @__PURE__ */ s("p", { className: "type-body-sm ds:m-0 ds:whitespace-pre-wrap ds:break-words ds:text-[var(--foreground)]", children:
|
|
1216
|
-
(d,
|
|
1269
|
+
/* @__PURE__ */ s("p", { className: "type-body-sm ds:m-0 ds:whitespace-pre-wrap ds:break-words ds:text-[var(--foreground)]", children: ri(Ve).map(
|
|
1270
|
+
(d, D) => d.kind === "link" ? /* @__PURE__ */ s(
|
|
1217
1271
|
"a",
|
|
1218
1272
|
{
|
|
1219
1273
|
href: d.href,
|
|
1220
1274
|
target: "_blank",
|
|
1221
1275
|
rel: "noopener noreferrer",
|
|
1222
|
-
className:
|
|
1276
|
+
className: Jt,
|
|
1223
1277
|
children: d.text
|
|
1224
1278
|
},
|
|
1225
|
-
|
|
1226
|
-
) : /* @__PURE__ */ s(
|
|
1279
|
+
D
|
|
1280
|
+
) : /* @__PURE__ */ s(qs, { children: d.text }, D)
|
|
1227
1281
|
) }),
|
|
1228
1282
|
/* @__PURE__ */ s(
|
|
1229
|
-
|
|
1283
|
+
at,
|
|
1230
1284
|
{
|
|
1231
1285
|
checked: !!e.criticalInformationAccepted,
|
|
1232
|
-
onCheckedChange: (d) =>
|
|
1286
|
+
onCheckedChange: (d) => q({ criticalInformationAccepted: d === !0 }),
|
|
1233
1287
|
"aria-required": !0,
|
|
1234
|
-
label: /* @__PURE__ */ v(
|
|
1288
|
+
label: /* @__PURE__ */ v(ae, { children: [
|
|
1235
1289
|
b("booking.details.criticalInformation.accept"),
|
|
1236
1290
|
/* @__PURE__ */ s(
|
|
1237
1291
|
"span",
|
|
@@ -1247,19 +1301,19 @@ const os = 500, si = /^[A-Z0-9]{16}$/, ni = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, cs = 3
|
|
|
1247
1301
|
]
|
|
1248
1302
|
}
|
|
1249
1303
|
) : null,
|
|
1250
|
-
|
|
1304
|
+
a ? /* @__PURE__ */ v(
|
|
1251
1305
|
"div",
|
|
1252
1306
|
{
|
|
1253
1307
|
"data-component": "booking-payment-notice",
|
|
1254
1308
|
role: "group",
|
|
1255
1309
|
"aria-labelledby": `${F}-payment-heading`,
|
|
1256
|
-
"data-notice-style":
|
|
1257
|
-
className:
|
|
1258
|
-
noticeStyle:
|
|
1310
|
+
"data-notice-style": k,
|
|
1311
|
+
className: li({
|
|
1312
|
+
noticeStyle: k
|
|
1259
1313
|
}),
|
|
1260
1314
|
children: [
|
|
1261
|
-
|
|
1262
|
-
/* @__PURE__ */ s("span", { className: "ds:flex ds:size-9 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-full ds:bg-[var(--primary)] ds:text-[var(--primary-foreground)]", children: /* @__PURE__ */ s(
|
|
1315
|
+
k === "highlighted" ? /* @__PURE__ */ v("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
1316
|
+
/* @__PURE__ */ s("span", { className: "ds:flex ds:size-9 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-full ds:bg-[var(--primary)] ds:text-[var(--primary-foreground)]", children: /* @__PURE__ */ s(Zs, { "aria-hidden": "true", className: "ds:size-5" }) }),
|
|
1263
1317
|
/* @__PURE__ */ s(
|
|
1264
1318
|
"h3",
|
|
1265
1319
|
{
|
|
@@ -1273,7 +1327,7 @@ const os = 500, si = /^[A-Z0-9]{16}$/, ni = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, cs = 3
|
|
|
1273
1327
|
{
|
|
1274
1328
|
"aria-hidden": "true",
|
|
1275
1329
|
className: "type-title-card ds:shrink-0 ds:text-[var(--foreground)]",
|
|
1276
|
-
children:
|
|
1330
|
+
children: Ee
|
|
1277
1331
|
}
|
|
1278
1332
|
)
|
|
1279
1333
|
] }) : /* @__PURE__ */ s(
|
|
@@ -1284,11 +1338,11 @@ const os = 500, si = /^[A-Z0-9]{16}$/, ni = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, cs = 3
|
|
|
1284
1338
|
children: b("booking.payment.noticeTitle")
|
|
1285
1339
|
}
|
|
1286
1340
|
),
|
|
1287
|
-
/* @__PURE__ */ s("p", { className: "type-body-sm ds:m-0", children: b("booking.payment.noticeBody", { amount:
|
|
1288
|
-
|
|
1341
|
+
/* @__PURE__ */ s("p", { className: "type-body-sm ds:m-0", children: b("booking.payment.noticeBody", { amount: Ee }) }),
|
|
1342
|
+
P ? /* @__PURE__ */ s(
|
|
1289
1343
|
"a",
|
|
1290
1344
|
{
|
|
1291
|
-
href:
|
|
1345
|
+
href: P,
|
|
1292
1346
|
target: "_blank",
|
|
1293
1347
|
rel: "noopener noreferrer",
|
|
1294
1348
|
className: "type-body-sm ds:inline-flex ds:items-center ds:self-start ds:min-h-[var(--min-target-size)] ds:rounded-[var(--radius-sm)] ds:underline ds:text-[var(--foreground)] ds:focus-visible:outline-solid ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
@@ -1296,17 +1350,17 @@ const os = 500, si = /^[A-Z0-9]{16}$/, ni = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, cs = 3
|
|
|
1296
1350
|
}
|
|
1297
1351
|
) : null,
|
|
1298
1352
|
/* @__PURE__ */ s(
|
|
1299
|
-
|
|
1353
|
+
at,
|
|
1300
1354
|
{
|
|
1301
|
-
checked:
|
|
1355
|
+
checked: Nt,
|
|
1302
1356
|
onCheckedChange: (d) => {
|
|
1303
|
-
|
|
1304
|
-
d === !0 ?
|
|
1305
|
-
),
|
|
1357
|
+
tt(
|
|
1358
|
+
d === !0 ? le : void 0
|
|
1359
|
+
), q({ paymentAccepted: d === !0 });
|
|
1306
1360
|
},
|
|
1307
1361
|
"aria-required": !0,
|
|
1308
|
-
label: /* @__PURE__ */ v(
|
|
1309
|
-
b("booking.payment.accept", { amount:
|
|
1362
|
+
label: /* @__PURE__ */ v(ae, { children: [
|
|
1363
|
+
b("booking.payment.accept", { amount: Ee }),
|
|
1310
1364
|
/* @__PURE__ */ s(
|
|
1311
1365
|
"span",
|
|
1312
1366
|
{
|
|
@@ -1323,15 +1377,15 @@ const os = 500, si = /^[A-Z0-9]{16}$/, ni = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, cs = 3
|
|
|
1323
1377
|
) : null,
|
|
1324
1378
|
/* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
1325
1379
|
/* @__PURE__ */ s(
|
|
1326
|
-
|
|
1380
|
+
at,
|
|
1327
1381
|
{
|
|
1328
1382
|
checked: !!e.privacyConsent,
|
|
1329
|
-
onCheckedChange: (d) =>
|
|
1383
|
+
onCheckedChange: (d) => q({ privacyConsent: d === !0 }),
|
|
1330
1384
|
"aria-required": !0,
|
|
1331
|
-
label: /* @__PURE__ */ v(
|
|
1332
|
-
|
|
1385
|
+
label: /* @__PURE__ */ v(ae, { children: [
|
|
1386
|
+
St(
|
|
1333
1387
|
"booking.details.consent.privacy.label",
|
|
1334
|
-
|
|
1388
|
+
p
|
|
1335
1389
|
),
|
|
1336
1390
|
/* @__PURE__ */ s(
|
|
1337
1391
|
"span",
|
|
@@ -1345,13 +1399,13 @@ const os = 500, si = /^[A-Z0-9]{16}$/, ni = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, cs = 3
|
|
|
1345
1399
|
}
|
|
1346
1400
|
),
|
|
1347
1401
|
/* @__PURE__ */ s(
|
|
1348
|
-
|
|
1402
|
+
at,
|
|
1349
1403
|
{
|
|
1350
1404
|
checked: !!e.termsConsent,
|
|
1351
|
-
onCheckedChange: (d) =>
|
|
1405
|
+
onCheckedChange: (d) => q({ termsConsent: d === !0 }),
|
|
1352
1406
|
"aria-required": !0,
|
|
1353
|
-
label: /* @__PURE__ */ v(
|
|
1354
|
-
|
|
1407
|
+
label: /* @__PURE__ */ v(ae, { children: [
|
|
1408
|
+
St(
|
|
1355
1409
|
"booking.details.consent.terms.label",
|
|
1356
1410
|
g
|
|
1357
1411
|
),
|
|
@@ -1366,24 +1420,24 @@ const os = 500, si = /^[A-Z0-9]{16}$/, ni = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, cs = 3
|
|
|
1366
1420
|
] })
|
|
1367
1421
|
}
|
|
1368
1422
|
),
|
|
1369
|
-
l &&
|
|
1370
|
-
|
|
1423
|
+
l && nt ? /* @__PURE__ */ s(
|
|
1424
|
+
at,
|
|
1371
1425
|
{
|
|
1372
|
-
checked:
|
|
1426
|
+
checked: Ne,
|
|
1373
1427
|
onCheckedChange: (d) => {
|
|
1374
|
-
|
|
1375
|
-
d === !0 ?
|
|
1376
|
-
),
|
|
1428
|
+
ue(
|
|
1429
|
+
d === !0 ? z : void 0
|
|
1430
|
+
), q({ practiceConsentAccepted: d === !0 });
|
|
1377
1431
|
},
|
|
1378
1432
|
"aria-required": l.required || void 0,
|
|
1379
|
-
label: /* @__PURE__ */ v(
|
|
1380
|
-
|
|
1433
|
+
label: /* @__PURE__ */ v(ae, { children: [
|
|
1434
|
+
Dt(l.url) ? /* @__PURE__ */ s(
|
|
1381
1435
|
"a",
|
|
1382
1436
|
{
|
|
1383
|
-
href:
|
|
1437
|
+
href: Dt(l.url),
|
|
1384
1438
|
target: "_blank",
|
|
1385
1439
|
rel: "noopener noreferrer",
|
|
1386
|
-
className:
|
|
1440
|
+
className: Jt,
|
|
1387
1441
|
children: l.label
|
|
1388
1442
|
}
|
|
1389
1443
|
) : l.label,
|
|
@@ -1399,53 +1453,65 @@ const os = 500, si = /^[A-Z0-9]{16}$/, ni = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, cs = 3
|
|
|
1399
1453
|
}
|
|
1400
1454
|
) : null
|
|
1401
1455
|
] }),
|
|
1402
|
-
|
|
1456
|
+
Ce ? /* @__PURE__ */ s(
|
|
1403
1457
|
"div",
|
|
1404
1458
|
{
|
|
1405
1459
|
"data-component": "booking-confirmation-channels",
|
|
1406
|
-
"data-unanswered":
|
|
1460
|
+
"data-unanswered": mt || void 0,
|
|
1407
1461
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
1408
1462
|
children: /* @__PURE__ */ s(
|
|
1409
|
-
|
|
1463
|
+
Us,
|
|
1410
1464
|
{
|
|
1411
1465
|
label: b("booking.confirmation.heading"),
|
|
1412
1466
|
helperText: b("booking.confirmation.helper"),
|
|
1413
|
-
value:
|
|
1414
|
-
onChange: (d) =>
|
|
1467
|
+
value: j,
|
|
1468
|
+
onChange: (d) => q({
|
|
1415
1469
|
confirmationChannels: d
|
|
1416
1470
|
}),
|
|
1417
1471
|
orientation: "vertical",
|
|
1418
|
-
options:
|
|
1472
|
+
options: Fe.map((d) => ({
|
|
1419
1473
|
value: d,
|
|
1420
1474
|
label: b(`booking.confirmation.channel.${d}`)
|
|
1421
1475
|
})),
|
|
1422
|
-
error:
|
|
1476
|
+
error: mt ? b("booking.confirmation.atLeastOne") : void 0
|
|
1423
1477
|
}
|
|
1424
1478
|
)
|
|
1425
1479
|
}
|
|
1426
1480
|
) : null,
|
|
1427
|
-
|
|
1428
|
-
|
|
1481
|
+
w || Z || y ? /* @__PURE__ */ s(ie, { variant: "error", children: /* @__PURE__ */ s(ie.Description, { children: w ?? b(
|
|
1482
|
+
y ? "booking.payment.unavailable" : "booking.payment.submitFailed"
|
|
1429
1483
|
) }) }) : null,
|
|
1430
|
-
/* @__PURE__ */
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1484
|
+
/* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
1485
|
+
me ? /* @__PURE__ */ s(
|
|
1486
|
+
"p",
|
|
1487
|
+
{
|
|
1488
|
+
id: He,
|
|
1489
|
+
"data-slot": "submit-hint",
|
|
1490
|
+
className: "type-body-sm ds:m-0 ds:text-[var(--muted-foreground)]",
|
|
1491
|
+
children: b("booking.details.submitHint")
|
|
1492
|
+
}
|
|
1493
|
+
) : null,
|
|
1494
|
+
/* @__PURE__ */ s(
|
|
1495
|
+
et,
|
|
1496
|
+
{
|
|
1497
|
+
intent: "primary",
|
|
1498
|
+
size: "md",
|
|
1499
|
+
type: "submit",
|
|
1500
|
+
disabled: ce || y,
|
|
1501
|
+
"aria-disabled": !Me || void 0,
|
|
1502
|
+
"aria-describedby": me ? He : void 0,
|
|
1503
|
+
startIcon: ce ? /* @__PURE__ */ s(fs, { variant: "pulse", size: "sm" }) : void 0,
|
|
1504
|
+
children: a ? b("booking.payment.submit", { amount: Ee }) : b("booking.details.submit")
|
|
1505
|
+
}
|
|
1506
|
+
)
|
|
1507
|
+
] })
|
|
1442
1508
|
]
|
|
1443
1509
|
}
|
|
1444
1510
|
);
|
|
1445
1511
|
}
|
|
1446
1512
|
);
|
|
1447
|
-
|
|
1448
|
-
function
|
|
1513
|
+
es.displayName = "BookingDetailsForm";
|
|
1514
|
+
function Os(e) {
|
|
1449
1515
|
const t = e.payment;
|
|
1450
1516
|
if (!t) return;
|
|
1451
1517
|
const n = (t.currencyCode ?? "EUR").toUpperCase();
|
|
@@ -1457,19 +1523,29 @@ function Qt(e) {
|
|
|
1457
1523
|
currencyCode: n
|
|
1458
1524
|
};
|
|
1459
1525
|
}
|
|
1460
|
-
function
|
|
1526
|
+
function gi(e) {
|
|
1527
|
+
var i;
|
|
1528
|
+
const t = (i = e.priceLabel) != null && i.trim() ? e.priceLabel : void 0, n = t ? { label: t } : void 0;
|
|
1529
|
+
if (!e.payment) return { price: n };
|
|
1530
|
+
const r = Os(e);
|
|
1531
|
+
return r ? {
|
|
1532
|
+
price: n ?? (r.kind === "full" ? { amount: r } : void 0),
|
|
1533
|
+
payment: r
|
|
1534
|
+
} : { price: n, payment: "unavailable" };
|
|
1535
|
+
}
|
|
1536
|
+
function hi(e, t, n) {
|
|
1461
1537
|
const r = e.filter(
|
|
1462
|
-
(
|
|
1538
|
+
(o) => t.includes(o.id)
|
|
1463
1539
|
), i = (n == null ? void 0 : n.serviceId) ?? (t.length === 1 ? t[0] : void 0);
|
|
1464
1540
|
if (i) {
|
|
1465
|
-
const
|
|
1466
|
-
if (!
|
|
1467
|
-
const c =
|
|
1468
|
-
return { payment: c, blocked: !!(
|
|
1541
|
+
const o = r.find((f) => f.id === i);
|
|
1542
|
+
if (!o) return { blocked: !0 };
|
|
1543
|
+
const c = Os(o);
|
|
1544
|
+
return { payment: c, blocked: !!(o.payment && !c) };
|
|
1469
1545
|
}
|
|
1470
|
-
return { blocked: r.some((
|
|
1546
|
+
return { blocked: r.some((o) => !!o.payment) };
|
|
1471
1547
|
}
|
|
1472
|
-
function
|
|
1548
|
+
function Ft(e) {
|
|
1473
1549
|
return e ? JSON.stringify([
|
|
1474
1550
|
e.serviceId,
|
|
1475
1551
|
e.kind,
|
|
@@ -1477,135 +1553,135 @@ function _t(e) {
|
|
|
1477
1553
|
e.currencyCode
|
|
1478
1554
|
]) : "";
|
|
1479
1555
|
}
|
|
1480
|
-
function
|
|
1556
|
+
function vi({
|
|
1481
1557
|
services: e,
|
|
1482
1558
|
value: t,
|
|
1483
1559
|
availableSlots: n,
|
|
1484
1560
|
onSubmit: r,
|
|
1485
1561
|
onChange: i,
|
|
1486
|
-
paymentState:
|
|
1562
|
+
paymentState: o,
|
|
1487
1563
|
submitting: c,
|
|
1488
1564
|
paymentTermsUrl: f,
|
|
1489
|
-
renderPayment:
|
|
1565
|
+
renderPayment: m
|
|
1490
1566
|
}) {
|
|
1491
|
-
var fe,
|
|
1492
|
-
const
|
|
1567
|
+
var fe, We, Ke;
|
|
1568
|
+
const p = JSON.stringify([
|
|
1493
1569
|
t.insuranceType,
|
|
1494
1570
|
t.specialtyId,
|
|
1495
1571
|
t.specialtyIds,
|
|
1496
|
-
|
|
1572
|
+
qe(t),
|
|
1497
1573
|
t.operatorId,
|
|
1498
1574
|
t.operatorIds,
|
|
1499
1575
|
t.date,
|
|
1500
1576
|
t.slotKey
|
|
1501
|
-
]), g =
|
|
1577
|
+
]), g = _(
|
|
1502
1578
|
void 0
|
|
1503
|
-
),
|
|
1579
|
+
), a = (t.date ? (fe = n[t.date]) == null ? void 0 : fe.find((Z) => Z.key === t.slotKey) : void 0) ?? (((We = g.current) == null ? void 0 : We.selection) === p ? g.current.slot : void 0), u = hi(
|
|
1504
1580
|
e,
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
),
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1581
|
+
qe(t),
|
|
1582
|
+
a
|
|
1583
|
+
), y = u.blocked || !!(u.payment && !m), x = JSON.stringify([
|
|
1584
|
+
p,
|
|
1585
|
+
a == null ? void 0 : a.serviceId,
|
|
1586
|
+
Ft(u.payment),
|
|
1511
1587
|
f,
|
|
1512
|
-
|
|
1513
|
-
]),
|
|
1514
|
-
|
|
1515
|
-
if (!
|
|
1516
|
-
else if (
|
|
1588
|
+
y
|
|
1589
|
+
]), k = u.payment ? JSON.stringify([Ft(u.payment), f]) : "", E = _(void 0), N = !!((Ke = t.details) != null && Ke.paymentAccepted);
|
|
1590
|
+
K(() => {
|
|
1591
|
+
if (!N) E.current = void 0;
|
|
1592
|
+
else if (k) E.current === void 0 ? E.current = k : E.current !== k && (E.current = void 0, i({
|
|
1517
1593
|
...t,
|
|
1518
1594
|
details: { ...t.details, paymentAccepted: !1 }
|
|
1519
1595
|
}));
|
|
1520
1596
|
else return;
|
|
1521
|
-
}, [
|
|
1522
|
-
const
|
|
1523
|
-
|
|
1524
|
-
const [
|
|
1525
|
-
|
|
1526
|
-
h.current = !1,
|
|
1597
|
+
}, [N, k, i, t]);
|
|
1598
|
+
const S = _(x);
|
|
1599
|
+
S.current = x;
|
|
1600
|
+
const [I, C] = se({ status: "idle" }), O = _(0), T = _(!1), h = _(!0), w = _(!1), $ = _(void 0), b = _(x);
|
|
1601
|
+
K(() => (h.current = !0, () => {
|
|
1602
|
+
h.current = !1, O.current += 1;
|
|
1527
1603
|
}), []);
|
|
1528
|
-
const
|
|
1529
|
-
|
|
1530
|
-
b.current ===
|
|
1531
|
-
}, [
|
|
1532
|
-
const F =
|
|
1533
|
-
() => F && (
|
|
1534
|
-
[F,
|
|
1604
|
+
const ke = I.status === "payment" || I.status === "success";
|
|
1605
|
+
K(() => {
|
|
1606
|
+
b.current === x || w.current || ke || (b.current = x, O.current += 1, T.current = !1, C({ status: "idle" }));
|
|
1607
|
+
}, [x, ke]);
|
|
1608
|
+
const F = ke || b.current === x ? I.session : void 0, G = L(
|
|
1609
|
+
() => F && (o == null ? void 0 : o.sessionId) === F.id ? o : F ? { sessionId: F.id, status: "ready" } : void 0,
|
|
1610
|
+
[F, o]
|
|
1535
1611
|
);
|
|
1536
|
-
F &&
|
|
1537
|
-
const
|
|
1538
|
-
() => F && $.current === F.id &&
|
|
1612
|
+
F && G && "phase" in G && G.phase === "completion" && ($.current = F.id);
|
|
1613
|
+
const M = L(
|
|
1614
|
+
() => F && $.current === F.id && G && G.status !== "paid" && (!("phase" in G) || G.phase !== "completion") ? {
|
|
1539
1615
|
sessionId: F.id,
|
|
1540
1616
|
status: "processing",
|
|
1541
1617
|
phase: "completion"
|
|
1542
|
-
} :
|
|
1543
|
-
[F,
|
|
1618
|
+
} : G,
|
|
1619
|
+
[F, G]
|
|
1544
1620
|
);
|
|
1545
|
-
|
|
1546
|
-
!F || !
|
|
1621
|
+
K(() => {
|
|
1622
|
+
!F || !M || w.current || (M.status === "paid" ? (w.current = !0, C((Z) => ({ ...Z, status: "success" }))) : M.status === "cancelled" && (O.current += 1, T.current = !1, g.current = void 0, i({
|
|
1547
1623
|
...t,
|
|
1548
1624
|
details: { ...t.details, paymentAccepted: !1 }
|
|
1549
|
-
}),
|
|
1550
|
-
}, [F,
|
|
1551
|
-
const
|
|
1552
|
-
|
|
1553
|
-
},
|
|
1554
|
-
var
|
|
1555
|
-
if (!(
|
|
1556
|
-
T.current = !0, g.current = { selection:
|
|
1557
|
-
const
|
|
1558
|
-
b.current =
|
|
1559
|
-
const
|
|
1560
|
-
slot: { ...
|
|
1625
|
+
}), C({ status: "idle", cancelled: !0 })));
|
|
1626
|
+
}, [F, M, i, t]);
|
|
1627
|
+
const Se = () => {
|
|
1628
|
+
O.current += 1, T.current = !1, w.current = !1, $.current = void 0, g.current = void 0, b.current = S.current, C({ status: "idle" });
|
|
1629
|
+
}, ut = async (Z) => {
|
|
1630
|
+
var De, ee, Le, de, Be;
|
|
1631
|
+
if (!(a != null && a.available) || y || c || T.current || I.status === "payment" || w.current || u.payment && !Z.paymentAccepted) return;
|
|
1632
|
+
T.current = !0, g.current = { selection: p, slot: { ...a } };
|
|
1633
|
+
const ze = ++O.current, ce = x;
|
|
1634
|
+
b.current = ce;
|
|
1635
|
+
const X = {
|
|
1636
|
+
slot: { ...a, meta: a.meta ? { ...a.meta } : void 0 },
|
|
1561
1637
|
value: {
|
|
1562
1638
|
...t,
|
|
1563
|
-
serviceIds: (
|
|
1564
|
-
specialtyIds: (
|
|
1565
|
-
operatorIds: (
|
|
1566
|
-
operatorId:
|
|
1567
|
-
details: { ...
|
|
1639
|
+
serviceIds: (De = t.serviceIds) == null ? void 0 : De.slice(),
|
|
1640
|
+
specialtyIds: (ee = t.specialtyIds) == null ? void 0 : ee.slice(),
|
|
1641
|
+
operatorIds: (Le = t.operatorIds) == null ? void 0 : Le.slice(),
|
|
1642
|
+
operatorId: Cs(t) ?? t.operatorId,
|
|
1643
|
+
details: { ...Z }
|
|
1568
1644
|
},
|
|
1569
1645
|
details: {
|
|
1570
|
-
...
|
|
1571
|
-
confirmationChannels: (
|
|
1646
|
+
...Z,
|
|
1647
|
+
confirmationChannels: (de = Z.confirmationChannels) == null ? void 0 : de.slice()
|
|
1572
1648
|
},
|
|
1573
1649
|
...u.payment ? { payment: { ...u.payment } } : {}
|
|
1574
|
-
},
|
|
1575
|
-
|
|
1576
|
-
let
|
|
1650
|
+
}, ge = () => h.current && O.current === ze && S.current === ce;
|
|
1651
|
+
C({ status: "submitting" });
|
|
1652
|
+
let xe = !1;
|
|
1577
1653
|
try {
|
|
1578
|
-
const
|
|
1579
|
-
if (!
|
|
1580
|
-
if (
|
|
1581
|
-
const
|
|
1582
|
-
if (!((
|
|
1583
|
-
|
|
1654
|
+
const Ie = await r(X);
|
|
1655
|
+
if (!ge()) return;
|
|
1656
|
+
if (X.payment) {
|
|
1657
|
+
const Q = Ie == null ? void 0 : Ie.paymentSession;
|
|
1658
|
+
if (!((Be = Q == null ? void 0 : Q.id) != null && Be.trim()) || Ft(Q.payment) !== Ft(X.payment)) {
|
|
1659
|
+
C({ status: "error" });
|
|
1584
1660
|
return;
|
|
1585
1661
|
}
|
|
1586
|
-
|
|
1662
|
+
xe = !0, C({
|
|
1587
1663
|
status: "payment",
|
|
1588
|
-
snapshot:
|
|
1589
|
-
session: { id:
|
|
1664
|
+
snapshot: X,
|
|
1665
|
+
session: { id: Q.id, payment: { ...Q.payment } }
|
|
1590
1666
|
});
|
|
1591
|
-
} else
|
|
1667
|
+
} else Ie != null && Ie.paymentSession ? C({ status: "error" }) : (w.current = !0, C({ status: "success", snapshot: X }));
|
|
1592
1668
|
} catch {
|
|
1593
|
-
|
|
1669
|
+
ge() && C({ status: "error" });
|
|
1594
1670
|
} finally {
|
|
1595
|
-
|
|
1671
|
+
ge() && !xe && (T.current = !1);
|
|
1596
1672
|
}
|
|
1597
1673
|
};
|
|
1598
1674
|
return {
|
|
1599
|
-
...
|
|
1675
|
+
...I,
|
|
1600
1676
|
payment: u.payment,
|
|
1601
|
-
blocked:
|
|
1602
|
-
state:
|
|
1677
|
+
blocked: y,
|
|
1678
|
+
state: M,
|
|
1603
1679
|
activeSession: F,
|
|
1604
|
-
submit:
|
|
1605
|
-
reset:
|
|
1680
|
+
submit: ut,
|
|
1681
|
+
reset: Se
|
|
1606
1682
|
};
|
|
1607
1683
|
}
|
|
1608
|
-
const
|
|
1684
|
+
const bi = It(
|
|
1609
1685
|
"ds:flex ds:w-full ds:flex-col ds:text-[var(--foreground)]",
|
|
1610
1686
|
{
|
|
1611
1687
|
variants: {
|
|
@@ -1633,44 +1709,57 @@ const pi = bt(
|
|
|
1633
1709
|
},
|
|
1634
1710
|
defaultVariants: { variant: "inline-list", surface: "flat" }
|
|
1635
1711
|
}
|
|
1636
|
-
),
|
|
1712
|
+
), yi = [
|
|
1637
1713
|
[
|
|
1638
1714
|
/\b(estetic|aesthetic|botox|filler|mesoterap|chirurgia\s*plastic)/i,
|
|
1639
|
-
|
|
1715
|
+
os
|
|
1640
1716
|
],
|
|
1641
|
-
[/\b(cardio|ecg|elettrocardio|ecocardio|cuore|heart)/i,
|
|
1642
|
-
[/\b(dent|odonto|tooth|teeth|pulizia|igien|smile)/i,
|
|
1643
|
-
[/\b(oftalmo|ocul|ophthal|vision|occhi|eye)/i,
|
|
1644
|
-
[/\b(otorin|udito|orecchi|hearing|ear)/i,
|
|
1645
|
-
[/\b(neuro|brain|cervello)/i,
|
|
1646
|
-
[/\b(pediatr|child|bambin)/i,
|
|
1647
|
-
[/\b(ortop|ortho|osteo|skeleton|ossa|bone)/i,
|
|
1648
|
-
[/\b(lab|analis|test|sang|esami)/i,
|
|
1649
|
-
[/\b(farmaco|pharm|pillol|refill)/i,
|
|
1650
|
-
[/\b(chirurg|surg|intervent|operat)/i,
|
|
1651
|
-
[/\b(scan|rx|x-?ray|raggi|imag|radio|risonan|ecograf|ultras)/i,
|
|
1652
|
-
[/\b(vacc|inject|inie|punto)/i,
|
|
1653
|
-
[/\b(derma|skin|pelle)/i,
|
|
1654
|
-
[/\b(prima\s*visit|first\s*visit|consult|consulto|valutaz)/i,
|
|
1655
|
-
[/\b(general|medicin|family|control|check[-\s]?up)/i,
|
|
1717
|
+
[/\b(cardio|ecg|elettrocardio|ecocardio|cuore|heart)/i, pn],
|
|
1718
|
+
[/\b(dent|odonto|tooth|teeth|pulizia|igien|smile)/i, Ln],
|
|
1719
|
+
[/\b(oftalmo|ocul|ophthal|vision|occhi|eye)/i, mn],
|
|
1720
|
+
[/\b(otorin|udito|orecchi|hearing|ear)/i, An],
|
|
1721
|
+
[/\b(neuro|brain|cervello)/i, In],
|
|
1722
|
+
[/\b(pediatr|child|bambin)/i, fn],
|
|
1723
|
+
[/\b(ortop|ortho|osteo|skeleton|ossa|bone)/i, Sn],
|
|
1724
|
+
[/\b(lab|analis|test|sang|esami)/i, On],
|
|
1725
|
+
[/\b(farmaco|pharm|pillol|refill)/i, En],
|
|
1726
|
+
[/\b(chirurg|surg|intervent|operat)/i, Mn],
|
|
1727
|
+
[/\b(scan|rx|x-?ray|raggi|imag|radio|risonan|ecograf|ultras)/i, gn],
|
|
1728
|
+
[/\b(vacc|inject|inie|punto)/i, os],
|
|
1729
|
+
[/\b(derma|skin|pelle)/i, hn],
|
|
1730
|
+
[/\b(prima\s*visit|first\s*visit|consult|consulto|valutaz)/i, vn],
|
|
1731
|
+
[/\b(general|medicin|family|control|check[-\s]?up)/i, yn]
|
|
1656
1732
|
];
|
|
1657
|
-
function
|
|
1658
|
-
for (const [t, n] of
|
|
1733
|
+
function ki(e) {
|
|
1734
|
+
for (const [t, n] of yi)
|
|
1659
1735
|
if (t.test(e)) return n;
|
|
1660
1736
|
return null;
|
|
1661
1737
|
}
|
|
1662
|
-
function
|
|
1663
|
-
const t =
|
|
1738
|
+
function Si(e) {
|
|
1739
|
+
const t = ki(e.label) ?? un;
|
|
1664
1740
|
return /* @__PURE__ */ s(t, { "aria-hidden": "true", className: "ds:size-5" });
|
|
1665
1741
|
}
|
|
1666
|
-
function
|
|
1667
|
-
|
|
1668
|
-
return (
|
|
1742
|
+
function Ds() {
|
|
1743
|
+
const { t: e, i18n: t } = W("ui");
|
|
1744
|
+
return (n) => {
|
|
1745
|
+
const r = gi(n), i = (c) => Pt(c.amountCents, c.currencyCode, t.language), o = r.price ? "label" in r.price ? r.price.label : i(r.price.amount) : void 0;
|
|
1746
|
+
return r.payment === "unavailable" ? {
|
|
1747
|
+
price: o,
|
|
1748
|
+
payment: e("booking.payment.unavailable"),
|
|
1749
|
+
paymentTone: "error"
|
|
1750
|
+
} : {
|
|
1751
|
+
price: o,
|
|
1752
|
+
payment: r.payment ? e(`booking.payment.${r.payment.kind}`, {
|
|
1753
|
+
amount: i(r.payment)
|
|
1754
|
+
}) : void 0,
|
|
1755
|
+
paymentTone: "default"
|
|
1756
|
+
};
|
|
1757
|
+
};
|
|
1669
1758
|
}
|
|
1670
|
-
function
|
|
1671
|
-
return
|
|
1759
|
+
function Xe(e) {
|
|
1760
|
+
return _t(e, "yyyy-MM-dd");
|
|
1672
1761
|
}
|
|
1673
|
-
const
|
|
1762
|
+
const xi = [
|
|
1674
1763
|
"ds:relative ds:flex ds:items-center ds:justify-center",
|
|
1675
1764
|
"ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
|
|
1676
1765
|
"ds:rounded-[var(--radius-sm)]",
|
|
@@ -1680,7 +1769,7 @@ const hi = [
|
|
|
1680
1769
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
1681
1770
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1682
1771
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
1683
|
-
].join(" "),
|
|
1772
|
+
].join(" "), Ii = It(xi, {
|
|
1684
1773
|
variants: {
|
|
1685
1774
|
state: {
|
|
1686
1775
|
available: "ds:cursor-pointer ds:text-[var(--foreground)] ds:hover:bg-[var(--muted)]/30",
|
|
@@ -1691,116 +1780,116 @@ const hi = [
|
|
|
1691
1780
|
},
|
|
1692
1781
|
defaultVariants: { state: "unavailable" }
|
|
1693
1782
|
});
|
|
1694
|
-
function
|
|
1783
|
+
function Ni({
|
|
1695
1784
|
availableDates: e,
|
|
1696
1785
|
selectedDate: t,
|
|
1697
1786
|
onSelectDate: n,
|
|
1698
1787
|
locale: r,
|
|
1699
1788
|
loading: i
|
|
1700
1789
|
}) {
|
|
1701
|
-
const { t:
|
|
1702
|
-
const
|
|
1703
|
-
for (let T =
|
|
1704
|
-
const h = new Date(
|
|
1705
|
-
h.setDate(
|
|
1790
|
+
const { t: o } = W("ui"), c = L(() => t ? xt(be(t)) : e.length > 0 ? xt(be(e[0])) : xt(/* @__PURE__ */ new Date()), [t, e]), [f, m] = se(c), [p, g] = se(null), l = L(() => {
|
|
1791
|
+
const N = xt(f), S = rn(f), I = N.getDay(), C = S.getDate(), O = [];
|
|
1792
|
+
for (let T = I; T > 0; T -= 1) {
|
|
1793
|
+
const h = new Date(N);
|
|
1794
|
+
h.setDate(N.getDate() - T), O.push(h);
|
|
1706
1795
|
}
|
|
1707
|
-
for (let T = 0; T <
|
|
1708
|
-
const h = new Date(
|
|
1709
|
-
h.setDate(
|
|
1796
|
+
for (let T = 0; T < C; T += 1) {
|
|
1797
|
+
const h = new Date(N);
|
|
1798
|
+
h.setDate(N.getDate() + T), O.push(h);
|
|
1710
1799
|
}
|
|
1711
|
-
for (;
|
|
1712
|
-
const T =
|
|
1713
|
-
h.setDate(T.getDate() + 1),
|
|
1800
|
+
for (; O.length < 42; ) {
|
|
1801
|
+
const T = O[O.length - 1], h = new Date(T);
|
|
1802
|
+
h.setDate(T.getDate() + 1), O.push(h);
|
|
1714
1803
|
}
|
|
1715
|
-
return
|
|
1716
|
-
}, [f]),
|
|
1804
|
+
return O;
|
|
1805
|
+
}, [f]), a = L(() => {
|
|
1717
1806
|
try {
|
|
1718
1807
|
return new Intl.DateTimeFormat(r, {
|
|
1719
1808
|
month: "long",
|
|
1720
1809
|
year: "numeric"
|
|
1721
1810
|
}).format(f);
|
|
1722
1811
|
} catch {
|
|
1723
|
-
return
|
|
1812
|
+
return _t(f, "MMMM yyyy");
|
|
1724
1813
|
}
|
|
1725
|
-
}, [f, r]), u =
|
|
1726
|
-
const
|
|
1727
|
-
return Array.from({ length: 7 }, (
|
|
1728
|
-
const
|
|
1729
|
-
|
|
1814
|
+
}, [f, r]), u = L(() => {
|
|
1815
|
+
const N = new Date(2024, 0, 7);
|
|
1816
|
+
return Array.from({ length: 7 }, (S, I) => {
|
|
1817
|
+
const C = new Date(N);
|
|
1818
|
+
C.setDate(N.getDate() + I);
|
|
1730
1819
|
try {
|
|
1731
|
-
return new Intl.DateTimeFormat(r, { weekday: "short" }).format(
|
|
1820
|
+
return new Intl.DateTimeFormat(r, { weekday: "short" }).format(C);
|
|
1732
1821
|
} catch {
|
|
1733
|
-
return
|
|
1822
|
+
return _t(C, "EEE");
|
|
1734
1823
|
}
|
|
1735
1824
|
});
|
|
1736
|
-
}, [r]),
|
|
1737
|
-
(
|
|
1738
|
-
[
|
|
1739
|
-
),
|
|
1740
|
-
if (
|
|
1741
|
-
if (t) return
|
|
1742
|
-
const
|
|
1743
|
-
(
|
|
1825
|
+
}, [r]), y = L(() => new Set(e), [e]), x = ye(
|
|
1826
|
+
(N) => y.has(Xe(N)),
|
|
1827
|
+
[y]
|
|
1828
|
+
), k = L(() => {
|
|
1829
|
+
if (p) return p;
|
|
1830
|
+
if (t) return be(t);
|
|
1831
|
+
const N = l.find(
|
|
1832
|
+
(S) => Ot(S, f) && x(S)
|
|
1744
1833
|
);
|
|
1745
|
-
return
|
|
1746
|
-
}, [
|
|
1747
|
-
(
|
|
1748
|
-
let
|
|
1749
|
-
switch (
|
|
1834
|
+
return N || (l.find((S) => Ot(S, f)) ?? null);
|
|
1835
|
+
}, [p, t, l, f, x]), E = ye(
|
|
1836
|
+
(N, S) => {
|
|
1837
|
+
let I = null;
|
|
1838
|
+
switch (N.key) {
|
|
1750
1839
|
case "ArrowLeft":
|
|
1751
|
-
|
|
1840
|
+
I = new Date(S), I.setDate(S.getDate() - 1);
|
|
1752
1841
|
break;
|
|
1753
1842
|
case "ArrowRight":
|
|
1754
|
-
|
|
1843
|
+
I = new Date(S), I.setDate(S.getDate() + 1);
|
|
1755
1844
|
break;
|
|
1756
1845
|
case "ArrowUp":
|
|
1757
|
-
|
|
1846
|
+
I = new Date(S), I.setDate(S.getDate() - 7);
|
|
1758
1847
|
break;
|
|
1759
1848
|
case "ArrowDown":
|
|
1760
|
-
|
|
1849
|
+
I = new Date(S), I.setDate(S.getDate() + 7);
|
|
1761
1850
|
break;
|
|
1762
1851
|
case "Home":
|
|
1763
|
-
|
|
1852
|
+
I = new Date(S), I.setDate(S.getDate() - S.getDay());
|
|
1764
1853
|
break;
|
|
1765
1854
|
case "End":
|
|
1766
|
-
|
|
1855
|
+
I = new Date(S), I.setDate(S.getDate() + (6 - S.getDay()));
|
|
1767
1856
|
break;
|
|
1768
1857
|
case "Enter":
|
|
1769
1858
|
case " ": {
|
|
1770
|
-
|
|
1859
|
+
N.preventDefault(), x(S) && n(Xe(S));
|
|
1771
1860
|
return;
|
|
1772
1861
|
}
|
|
1773
1862
|
default:
|
|
1774
1863
|
return;
|
|
1775
1864
|
}
|
|
1776
|
-
|
|
1865
|
+
I && (N.preventDefault(), Ot(I, f) || m(xt(I)), g(I));
|
|
1777
1866
|
},
|
|
1778
|
-
[
|
|
1867
|
+
[x, n, f]
|
|
1779
1868
|
);
|
|
1780
1869
|
return i ? /* @__PURE__ */ v(
|
|
1781
1870
|
"div",
|
|
1782
1871
|
{
|
|
1783
1872
|
role: "status",
|
|
1784
1873
|
"aria-live": "polite",
|
|
1785
|
-
"aria-label":
|
|
1874
|
+
"aria-label": o("common.loading"),
|
|
1786
1875
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
1787
1876
|
children: [
|
|
1788
|
-
/* @__PURE__ */ s(
|
|
1789
|
-
/* @__PURE__ */ s("div", { className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]", children: Array.from({ length: 42 }, (
|
|
1877
|
+
/* @__PURE__ */ s(Lt, { variant: "text", width: "40%" }),
|
|
1878
|
+
/* @__PURE__ */ s("div", { className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]", children: Array.from({ length: 42 }, (N, S) => /* @__PURE__ */ s(Lt, { variant: "rounded", height: "2.5rem" }, `mg-skel-${S}`)) })
|
|
1790
1879
|
]
|
|
1791
1880
|
}
|
|
1792
1881
|
) : /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1793
1882
|
/* @__PURE__ */ v("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
1794
1883
|
/* @__PURE__ */ s(
|
|
1795
|
-
|
|
1884
|
+
is,
|
|
1796
1885
|
{
|
|
1797
|
-
icon: /* @__PURE__ */ s(
|
|
1798
|
-
"aria-label":
|
|
1886
|
+
icon: /* @__PURE__ */ s(an, {}),
|
|
1887
|
+
"aria-label": o("booking.previousMonth"),
|
|
1799
1888
|
size: "sm",
|
|
1800
1889
|
intent: "ghost",
|
|
1801
1890
|
flipIconInRtl: !0,
|
|
1802
1891
|
onClick: () => {
|
|
1803
|
-
|
|
1892
|
+
m((N) => Vn(N)), g(null);
|
|
1804
1893
|
}
|
|
1805
1894
|
}
|
|
1806
1895
|
),
|
|
@@ -1809,19 +1898,19 @@ function bi({
|
|
|
1809
1898
|
{
|
|
1810
1899
|
className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]",
|
|
1811
1900
|
"aria-live": "polite",
|
|
1812
|
-
children:
|
|
1901
|
+
children: a
|
|
1813
1902
|
}
|
|
1814
1903
|
),
|
|
1815
1904
|
/* @__PURE__ */ s(
|
|
1816
|
-
|
|
1905
|
+
is,
|
|
1817
1906
|
{
|
|
1818
|
-
icon: /* @__PURE__ */ s(
|
|
1819
|
-
"aria-label":
|
|
1907
|
+
icon: /* @__PURE__ */ s(cn, {}),
|
|
1908
|
+
"aria-label": o("booking.nextMonth"),
|
|
1820
1909
|
size: "sm",
|
|
1821
1910
|
intent: "ghost",
|
|
1822
1911
|
flipIconInRtl: !0,
|
|
1823
1912
|
onClick: () => {
|
|
1824
|
-
|
|
1913
|
+
m((N) => vs(N, 1)), g(null);
|
|
1825
1914
|
}
|
|
1826
1915
|
}
|
|
1827
1916
|
)
|
|
@@ -1830,7 +1919,7 @@ function bi({
|
|
|
1830
1919
|
"div",
|
|
1831
1920
|
{
|
|
1832
1921
|
role: "grid",
|
|
1833
|
-
"aria-label":
|
|
1922
|
+
"aria-label": o("booking.monthGridLabel"),
|
|
1834
1923
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
|
|
1835
1924
|
children: [
|
|
1836
1925
|
/* @__PURE__ */ s(
|
|
@@ -1838,30 +1927,30 @@ function bi({
|
|
|
1838
1927
|
{
|
|
1839
1928
|
role: "row",
|
|
1840
1929
|
className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]",
|
|
1841
|
-
children: u.map((
|
|
1930
|
+
children: u.map((N, S) => /* @__PURE__ */ s(
|
|
1842
1931
|
"div",
|
|
1843
1932
|
{
|
|
1844
1933
|
role: "columnheader",
|
|
1845
1934
|
className: "type-meta ds:text-center ds:text-[var(--muted-foreground)] ds:font-[var(--font-weight-medium)]",
|
|
1846
|
-
children:
|
|
1935
|
+
children: N
|
|
1847
1936
|
},
|
|
1848
|
-
`wd-${
|
|
1937
|
+
`wd-${S}`
|
|
1849
1938
|
))
|
|
1850
1939
|
}
|
|
1851
1940
|
),
|
|
1852
|
-
Array.from({ length: 6 }, (
|
|
1941
|
+
Array.from({ length: 6 }, (N, S) => /* @__PURE__ */ s(
|
|
1853
1942
|
"div",
|
|
1854
1943
|
{
|
|
1855
1944
|
role: "row",
|
|
1856
1945
|
className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]",
|
|
1857
|
-
children: l.slice(
|
|
1858
|
-
const
|
|
1946
|
+
children: l.slice(S * 7, S * 7 + 7).map((I, C) => {
|
|
1947
|
+
const O = S * 7 + C, T = Ot(I, f), h = T && x(I), w = t ? rs(I, be(t)) : !1, $ = T ? w ? "selected" : h ? "available" : "unavailable" : "outside", b = k ? rs(k, I) : !1, ke = (() => {
|
|
1859
1948
|
try {
|
|
1860
1949
|
return new Intl.DateTimeFormat(r, {
|
|
1861
1950
|
dateStyle: "full"
|
|
1862
|
-
}).format(
|
|
1951
|
+
}).format(I);
|
|
1863
1952
|
} catch {
|
|
1864
|
-
return
|
|
1953
|
+
return _t(I, "PPP");
|
|
1865
1954
|
}
|
|
1866
1955
|
})();
|
|
1867
1956
|
return /* @__PURE__ */ s(
|
|
@@ -1869,30 +1958,30 @@ function bi({
|
|
|
1869
1958
|
{
|
|
1870
1959
|
type: "button",
|
|
1871
1960
|
role: "gridcell",
|
|
1872
|
-
"aria-label":
|
|
1873
|
-
"aria-selected":
|
|
1961
|
+
"aria-label": ke,
|
|
1962
|
+
"aria-selected": w || void 0,
|
|
1874
1963
|
"aria-disabled": !h || void 0,
|
|
1875
1964
|
tabIndex: b ? 0 : -1,
|
|
1876
1965
|
disabled: !h,
|
|
1877
1966
|
onClick: () => {
|
|
1878
|
-
h && n(
|
|
1967
|
+
h && n(Xe(I));
|
|
1879
1968
|
},
|
|
1880
|
-
onKeyDown: (F) =>
|
|
1881
|
-
className:
|
|
1882
|
-
children: /* @__PURE__ */ s("span", { "aria-hidden": "true", children:
|
|
1969
|
+
onKeyDown: (F) => E(F, I),
|
|
1970
|
+
className: Ii({ state: $ }),
|
|
1971
|
+
children: /* @__PURE__ */ s("span", { "aria-hidden": "true", children: I.getDate() })
|
|
1883
1972
|
},
|
|
1884
|
-
`mg-cell-${
|
|
1973
|
+
`mg-cell-${O}`
|
|
1885
1974
|
);
|
|
1886
1975
|
})
|
|
1887
1976
|
},
|
|
1888
|
-
`mg-row-${
|
|
1977
|
+
`mg-row-${S}`
|
|
1889
1978
|
))
|
|
1890
1979
|
]
|
|
1891
1980
|
}
|
|
1892
1981
|
)
|
|
1893
1982
|
] });
|
|
1894
1983
|
}
|
|
1895
|
-
const
|
|
1984
|
+
const wi = It(
|
|
1896
1985
|
[
|
|
1897
1986
|
"ds:relative ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-md)]",
|
|
1898
1987
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -1918,53 +2007,53 @@ const yi = bt(
|
|
|
1918
2007
|
defaultVariants: { state: "idle" }
|
|
1919
2008
|
}
|
|
1920
2009
|
);
|
|
1921
|
-
function
|
|
2010
|
+
function Ci({
|
|
1922
2011
|
services: e,
|
|
1923
2012
|
selectedServiceId: t,
|
|
1924
2013
|
onSelect: n,
|
|
1925
2014
|
showDuration: r
|
|
1926
2015
|
}) {
|
|
1927
|
-
const { t: i
|
|
2016
|
+
const { t: i } = W("ui"), o = Ds(), c = Rt(), [f, m] = se(() => {
|
|
1928
2017
|
if (t) {
|
|
1929
|
-
const
|
|
1930
|
-
if (
|
|
2018
|
+
const a = e.findIndex((u) => u.id === t);
|
|
2019
|
+
if (a >= 0) return a;
|
|
1931
2020
|
}
|
|
1932
2021
|
return 0;
|
|
1933
|
-
}),
|
|
2022
|
+
}), p = _(/* @__PURE__ */ new Map()), g = ye((a) => {
|
|
1934
2023
|
var u;
|
|
1935
|
-
(u =
|
|
1936
|
-
}, []), l =
|
|
1937
|
-
(
|
|
1938
|
-
const
|
|
1939
|
-
if (
|
|
1940
|
-
switch (
|
|
2024
|
+
(u = p.current.get(a)) == null || u.focus();
|
|
2025
|
+
}, []), l = ye(
|
|
2026
|
+
(a, u, y) => {
|
|
2027
|
+
const x = e.length;
|
|
2028
|
+
if (x !== 0)
|
|
2029
|
+
switch (a.key) {
|
|
1941
2030
|
case "ArrowDown":
|
|
1942
2031
|
case "ArrowRight": {
|
|
1943
|
-
|
|
1944
|
-
const
|
|
1945
|
-
|
|
2032
|
+
a.preventDefault();
|
|
2033
|
+
const k = (u + 1) % x;
|
|
2034
|
+
m(k), g(k);
|
|
1946
2035
|
break;
|
|
1947
2036
|
}
|
|
1948
2037
|
case "ArrowUp":
|
|
1949
2038
|
case "ArrowLeft": {
|
|
1950
|
-
|
|
1951
|
-
const
|
|
1952
|
-
|
|
2039
|
+
a.preventDefault();
|
|
2040
|
+
const k = (u - 1 + x) % x;
|
|
2041
|
+
m(k), g(k);
|
|
1953
2042
|
break;
|
|
1954
2043
|
}
|
|
1955
2044
|
case "Home": {
|
|
1956
|
-
|
|
2045
|
+
a.preventDefault(), m(0), g(0);
|
|
1957
2046
|
break;
|
|
1958
2047
|
}
|
|
1959
2048
|
case "End": {
|
|
1960
|
-
|
|
1961
|
-
const
|
|
1962
|
-
|
|
2049
|
+
a.preventDefault();
|
|
2050
|
+
const k = x - 1;
|
|
2051
|
+
m(k), g(k);
|
|
1963
2052
|
break;
|
|
1964
2053
|
}
|
|
1965
2054
|
case "Enter":
|
|
1966
2055
|
case " ": {
|
|
1967
|
-
|
|
2056
|
+
a.preventDefault(), n(y);
|
|
1968
2057
|
break;
|
|
1969
2058
|
}
|
|
1970
2059
|
}
|
|
@@ -1978,36 +2067,37 @@ function ki({
|
|
|
1978
2067
|
"aria-label": i("booking.serviceListLabel"),
|
|
1979
2068
|
id: c,
|
|
1980
2069
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
1981
|
-
children: e.map((
|
|
1982
|
-
const
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
2070
|
+
children: e.map((a, u) => {
|
|
2071
|
+
const y = t === a.id, x = f === u, { price: k, payment: E, paymentTone: N } = o(a), S = k ? E ? i("booking.serviceCardLabelPayment", {
|
|
2072
|
+
label: a.label,
|
|
2073
|
+
price: k,
|
|
2074
|
+
payment: E
|
|
2075
|
+
}) : i("booking.serviceCardLabelPrice", {
|
|
2076
|
+
label: a.label,
|
|
2077
|
+
price: k
|
|
2078
|
+
}) : E ? i("booking.serviceCardLabelPaymentNoPrice", {
|
|
2079
|
+
label: a.label,
|
|
2080
|
+
payment: E
|
|
1991
2081
|
}) : r ? i("booking.serviceCardLabel", {
|
|
1992
|
-
label:
|
|
1993
|
-
duration:
|
|
1994
|
-
}) :
|
|
2082
|
+
label: a.label,
|
|
2083
|
+
duration: a.durationMin
|
|
2084
|
+
}) : a.label, I = Si(a);
|
|
1995
2085
|
return /* @__PURE__ */ v(
|
|
1996
2086
|
"button",
|
|
1997
2087
|
{
|
|
1998
|
-
ref: (
|
|
1999
|
-
|
|
2088
|
+
ref: (C) => {
|
|
2089
|
+
C ? p.current.set(u, C) : p.current.delete(u);
|
|
2000
2090
|
},
|
|
2001
2091
|
type: "button",
|
|
2002
2092
|
role: "radio",
|
|
2003
|
-
"aria-checked":
|
|
2004
|
-
"aria-label":
|
|
2005
|
-
tabIndex:
|
|
2006
|
-
onClick: () => n(
|
|
2007
|
-
onFocus: () =>
|
|
2008
|
-
onKeyDown: (
|
|
2009
|
-
className:
|
|
2010
|
-
state:
|
|
2093
|
+
"aria-checked": y,
|
|
2094
|
+
"aria-label": S,
|
|
2095
|
+
tabIndex: x ? 0 : -1,
|
|
2096
|
+
onClick: () => n(a.id),
|
|
2097
|
+
onFocus: () => m(u),
|
|
2098
|
+
onKeyDown: (C) => l(C, u, a.id),
|
|
2099
|
+
className: wi({
|
|
2100
|
+
state: y ? "selected" : "idle"
|
|
2011
2101
|
}),
|
|
2012
2102
|
children: [
|
|
2013
2103
|
/* @__PURE__ */ s(
|
|
@@ -2015,32 +2105,38 @@ function ki({
|
|
|
2015
2105
|
{
|
|
2016
2106
|
"aria-hidden": "true",
|
|
2017
2107
|
className: "ds:flex ds:size-10 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-[var(--radius-sm)] ds:bg-[var(--primary)]/10 ds:text-[var(--primary)]",
|
|
2018
|
-
children:
|
|
2108
|
+
children: I
|
|
2019
2109
|
}
|
|
2020
2110
|
),
|
|
2021
2111
|
/* @__PURE__ */ v("span", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
2022
|
-
/* @__PURE__ */ s("span", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]", children:
|
|
2023
|
-
|
|
2024
|
-
|
|
2112
|
+
/* @__PURE__ */ s("span", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:break-words", children: a.label }),
|
|
2113
|
+
E ? /* @__PURE__ */ s(
|
|
2114
|
+
"span",
|
|
2115
|
+
{
|
|
2116
|
+
className: Qs({ tone: N }),
|
|
2117
|
+
children: E
|
|
2118
|
+
}
|
|
2119
|
+
) : k || !r ? null : /* @__PURE__ */ s("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: i("booking.serviceSummary", {
|
|
2120
|
+
minutes: a.durationMin
|
|
2025
2121
|
}) })
|
|
2026
2122
|
] }),
|
|
2027
|
-
|
|
2123
|
+
k ? /* @__PURE__ */ s(
|
|
2028
2124
|
"span",
|
|
2029
2125
|
{
|
|
2030
2126
|
"aria-hidden": "true",
|
|
2031
2127
|
className: "ds:inline-flex ds:shrink-0 ds:items-center ds:ms-auto",
|
|
2032
|
-
children: /* @__PURE__ */ s(
|
|
2128
|
+
children: /* @__PURE__ */ s(gs, { variant: "accentSoft", size: "lg", children: k })
|
|
2033
2129
|
}
|
|
2034
2130
|
) : null
|
|
2035
2131
|
]
|
|
2036
2132
|
},
|
|
2037
|
-
|
|
2133
|
+
a.id
|
|
2038
2134
|
);
|
|
2039
2135
|
})
|
|
2040
2136
|
}
|
|
2041
2137
|
);
|
|
2042
2138
|
}
|
|
2043
|
-
const
|
|
2139
|
+
const Ai = It(
|
|
2044
2140
|
[
|
|
2045
2141
|
"ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-2xs)]",
|
|
2046
2142
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -2066,58 +2162,58 @@ const Si = bt(
|
|
|
2066
2162
|
defaultVariants: { state: "idle" }
|
|
2067
2163
|
}
|
|
2068
2164
|
);
|
|
2069
|
-
function
|
|
2165
|
+
function Ti(e) {
|
|
2070
2166
|
const [t] = e.split(":").map((r) => parseInt(r, 10)), n = Number.isFinite(t) ? t : 0;
|
|
2071
2167
|
return n < 12 ? "morning" : n < 17 ? "afternoon" : "evening";
|
|
2072
2168
|
}
|
|
2073
|
-
const
|
|
2074
|
-
morning:
|
|
2075
|
-
afternoon:
|
|
2076
|
-
evening:
|
|
2169
|
+
const Oi = {
|
|
2170
|
+
morning: ln,
|
|
2171
|
+
afternoon: Rn,
|
|
2172
|
+
evening: dn
|
|
2077
2173
|
};
|
|
2078
|
-
function
|
|
2174
|
+
function Di({
|
|
2079
2175
|
date: e,
|
|
2080
2176
|
slots: t,
|
|
2081
2177
|
selectedSlotKey: n,
|
|
2082
2178
|
onSelect: r,
|
|
2083
2179
|
loading: i,
|
|
2084
|
-
locale:
|
|
2180
|
+
locale: o
|
|
2085
2181
|
}) {
|
|
2086
|
-
const { t: c } =
|
|
2182
|
+
const { t: c } = W("ui"), f = L(() => {
|
|
2087
2183
|
try {
|
|
2088
|
-
return new Intl.DateTimeFormat(
|
|
2184
|
+
return new Intl.DateTimeFormat(o, {
|
|
2089
2185
|
weekday: "long",
|
|
2090
2186
|
day: "numeric",
|
|
2091
2187
|
month: "long"
|
|
2092
|
-
}).format(
|
|
2188
|
+
}).format(be(e));
|
|
2093
2189
|
} catch {
|
|
2094
2190
|
return e;
|
|
2095
2191
|
}
|
|
2096
|
-
}, [e,
|
|
2192
|
+
}, [e, o]), m = L(() => {
|
|
2097
2193
|
const l = {
|
|
2098
2194
|
morning: [],
|
|
2099
2195
|
afternoon: [],
|
|
2100
2196
|
evening: []
|
|
2101
2197
|
};
|
|
2102
|
-
for (const
|
|
2103
|
-
l[
|
|
2198
|
+
for (const a of t)
|
|
2199
|
+
l[Ti(a.time)].push(a);
|
|
2104
2200
|
return l;
|
|
2105
|
-
}, [t]),
|
|
2201
|
+
}, [t]), p = t.filter((l) => l.available).length, g = ["morning", "afternoon", "evening"];
|
|
2106
2202
|
return i ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2107
|
-
/* @__PURE__ */ s(
|
|
2203
|
+
/* @__PURE__ */ s(Lt, { variant: "text", width: "60%" }),
|
|
2108
2204
|
[0, 1].map((l) => /* @__PURE__ */ s(
|
|
2109
2205
|
"div",
|
|
2110
2206
|
{
|
|
2111
2207
|
className: "ds:grid ds:grid-cols-3 ds:gap-[var(--spacing-xs)]",
|
|
2112
|
-
children: [0, 1, 2].map((
|
|
2208
|
+
children: [0, 1, 2].map((a) => /* @__PURE__ */ s(Lt, { variant: "rounded", height: "44px" }, a))
|
|
2113
2209
|
},
|
|
2114
2210
|
l
|
|
2115
2211
|
))
|
|
2116
|
-
] }) :
|
|
2212
|
+
] }) : p === 0 ? /* @__PURE__ */ s(hs, { variant: "no-results", title: c("booking.noSlotsForDate") }) : /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
2117
2213
|
/* @__PURE__ */ v("div", { className: "ds:flex ds:items-baseline ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
2118
2214
|
/* @__PURE__ */ v("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
2119
2215
|
/* @__PURE__ */ s(
|
|
2120
|
-
|
|
2216
|
+
wn,
|
|
2121
2217
|
{
|
|
2122
2218
|
"aria-hidden": "true",
|
|
2123
2219
|
className: "ds:size-4 ds:text-[color:var(--accent)]"
|
|
@@ -2125,12 +2221,12 @@ function Ni({
|
|
|
2125
2221
|
),
|
|
2126
2222
|
/* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: f })
|
|
2127
2223
|
] }),
|
|
2128
|
-
/* @__PURE__ */ s("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: c("booking.slotsAvailable", { count:
|
|
2224
|
+
/* @__PURE__ */ s("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: c("booking.slotsAvailable", { count: p }) })
|
|
2129
2225
|
] }),
|
|
2130
2226
|
g.map((l) => {
|
|
2131
|
-
const
|
|
2132
|
-
if (
|
|
2133
|
-
const u =
|
|
2227
|
+
const a = m[l];
|
|
2228
|
+
if (a.length === 0) return null;
|
|
2229
|
+
const u = Oi[l];
|
|
2134
2230
|
return /* @__PURE__ */ v(
|
|
2135
2231
|
"div",
|
|
2136
2232
|
{
|
|
@@ -2146,23 +2242,23 @@ function Ni({
|
|
|
2146
2242
|
role: "group",
|
|
2147
2243
|
"aria-label": c(`booking.timeOfDay.${l}`),
|
|
2148
2244
|
className: "ds:grid ds:grid-cols-3 ds:gap-[var(--spacing-xs)] ds:sm:grid-cols-4",
|
|
2149
|
-
children:
|
|
2150
|
-
const
|
|
2245
|
+
children: a.map((y) => {
|
|
2246
|
+
const x = y.key === n, k = y.available ? x ? "selected" : "idle" : "unavailable";
|
|
2151
2247
|
return /* @__PURE__ */ s(
|
|
2152
2248
|
"button",
|
|
2153
2249
|
{
|
|
2154
2250
|
type: "button",
|
|
2155
|
-
"data-slot-id":
|
|
2156
|
-
disabled: !
|
|
2157
|
-
"aria-pressed":
|
|
2251
|
+
"data-slot-id": y.key,
|
|
2252
|
+
disabled: !y.available,
|
|
2253
|
+
"aria-pressed": x,
|
|
2158
2254
|
"aria-label": c("booking.slotAvailableLabel", {
|
|
2159
|
-
time:
|
|
2255
|
+
time: y.time
|
|
2160
2256
|
}),
|
|
2161
|
-
onClick: () =>
|
|
2162
|
-
className:
|
|
2163
|
-
children:
|
|
2257
|
+
onClick: () => y.available && r(y),
|
|
2258
|
+
className: Ai({ state: k }),
|
|
2259
|
+
children: y.time
|
|
2164
2260
|
},
|
|
2165
|
-
|
|
2261
|
+
y.key
|
|
2166
2262
|
);
|
|
2167
2263
|
})
|
|
2168
2264
|
}
|
|
@@ -2174,152 +2270,152 @@ function Ni({
|
|
|
2174
2270
|
})
|
|
2175
2271
|
] });
|
|
2176
2272
|
}
|
|
2177
|
-
const
|
|
2178
|
-
function
|
|
2273
|
+
const Mt = 4;
|
|
2274
|
+
function Ei({
|
|
2179
2275
|
availableDates: e,
|
|
2180
2276
|
availableSlots: t,
|
|
2181
2277
|
value: n,
|
|
2182
2278
|
onChange: r,
|
|
2183
2279
|
onDateSelect: i,
|
|
2184
|
-
onWindowChange:
|
|
2280
|
+
onWindowChange: o,
|
|
2185
2281
|
loadingDates: c,
|
|
2186
2282
|
loadingSlots: f,
|
|
2187
|
-
locale:
|
|
2188
|
-
agentIdBase:
|
|
2283
|
+
locale: m,
|
|
2284
|
+
agentIdBase: p
|
|
2189
2285
|
}) {
|
|
2190
|
-
const g =
|
|
2286
|
+
const g = L(() => ct(/* @__PURE__ */ new Date()), []), [l, a] = se(() => {
|
|
2191
2287
|
if (n.date) {
|
|
2192
|
-
const h =
|
|
2193
|
-
if (!
|
|
2288
|
+
const h = ct(be(n.date));
|
|
2289
|
+
if (!dt(g, h)) return h;
|
|
2194
2290
|
}
|
|
2195
2291
|
if (e.length > 0) {
|
|
2196
|
-
const h =
|
|
2197
|
-
if (
|
|
2292
|
+
const h = ct(be(e[0]));
|
|
2293
|
+
if (dt(h, g)) return h;
|
|
2198
2294
|
}
|
|
2199
2295
|
return g;
|
|
2200
|
-
}), u =
|
|
2201
|
-
() =>
|
|
2296
|
+
}), u = L(
|
|
2297
|
+
() => Gt(l, Mt - 1),
|
|
2202
2298
|
[l]
|
|
2203
|
-
),
|
|
2204
|
-
const $ =
|
|
2205
|
-
id:
|
|
2299
|
+
), y = L(() => Array.from({ length: Mt }, (h, w) => {
|
|
2300
|
+
const $ = Gt(l, w), b = Xe($), F = (t[b] ?? []).map((G) => ({
|
|
2301
|
+
id: G.key,
|
|
2206
2302
|
// SlotGrid formats `start` as a time via Intl.DateTimeFormat —
|
|
2207
2303
|
// compose a full ISO from the column's date + the slot's HH:mm
|
|
2208
2304
|
// so the locale-formatter has a real timestamp to work with.
|
|
2209
|
-
start: `${b}T${
|
|
2210
|
-
available:
|
|
2305
|
+
start: `${b}T${G.time}:00`,
|
|
2306
|
+
available: G.available
|
|
2211
2307
|
}));
|
|
2212
2308
|
return { date: b, slots: F };
|
|
2213
|
-
}), [l, t]),
|
|
2214
|
-
|
|
2215
|
-
const
|
|
2216
|
-
return
|
|
2309
|
+
}), [l, t]), x = dt(l, g), k = !0, E = ye(() => {
|
|
2310
|
+
a((h) => {
|
|
2311
|
+
const w = on(h, Mt);
|
|
2312
|
+
return dt(g, w) ? g : w;
|
|
2217
2313
|
});
|
|
2218
|
-
}, [g]),
|
|
2219
|
-
|
|
2314
|
+
}, [g]), N = ye(() => {
|
|
2315
|
+
a((h) => Gt(h, Mt));
|
|
2220
2316
|
}, []);
|
|
2221
|
-
|
|
2317
|
+
K(() => {
|
|
2222
2318
|
if (e.length === 0) return;
|
|
2223
|
-
const h =
|
|
2224
|
-
!
|
|
2225
|
-
const b =
|
|
2226
|
-
return !
|
|
2227
|
-
}) ||
|
|
2228
|
-
}, [e]),
|
|
2229
|
-
|
|
2230
|
-
}, [l, u,
|
|
2231
|
-
const
|
|
2232
|
-
(h,
|
|
2233
|
-
const $ = typeof
|
|
2319
|
+
const h = ct(be(e[0]));
|
|
2320
|
+
!dt(h, g) || e.some(($) => {
|
|
2321
|
+
const b = ct(be($));
|
|
2322
|
+
return !dt(b, u) && !nn(b, l);
|
|
2323
|
+
}) || a(h);
|
|
2324
|
+
}, [e]), K(() => {
|
|
2325
|
+
o == null || o(Xe(l), Xe(u));
|
|
2326
|
+
}, [l, u, o]);
|
|
2327
|
+
const S = ye(
|
|
2328
|
+
(h, w) => {
|
|
2329
|
+
const $ = typeof w.date == "string" ? w.date : Xe(w.date);
|
|
2234
2330
|
r({
|
|
2235
|
-
...
|
|
2331
|
+
...ws($t(n, $), h.id)
|
|
2236
2332
|
}), i == null || i($);
|
|
2237
2333
|
},
|
|
2238
2334
|
[r, i, n]
|
|
2239
|
-
),
|
|
2335
|
+
), I = c || f ? "loading" : "default", C = y.some((h) => h.slots.length > 0), O = e[0];
|
|
2240
2336
|
return /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2241
|
-
!
|
|
2242
|
-
|
|
2337
|
+
!C && !!O ? /* @__PURE__ */ s(
|
|
2338
|
+
ts,
|
|
2243
2339
|
{
|
|
2244
|
-
nextAvailableDate:
|
|
2245
|
-
onJump: () =>
|
|
2246
|
-
locale:
|
|
2340
|
+
nextAvailableDate: O,
|
|
2341
|
+
onJump: () => a(ct(be(O))),
|
|
2342
|
+
locale: m
|
|
2247
2343
|
}
|
|
2248
2344
|
) : null,
|
|
2249
2345
|
/* @__PURE__ */ s(
|
|
2250
|
-
|
|
2346
|
+
tn,
|
|
2251
2347
|
{
|
|
2252
|
-
id:
|
|
2253
|
-
days:
|
|
2254
|
-
state:
|
|
2348
|
+
id: p ? `${p}-slots` : void 0,
|
|
2349
|
+
days: y,
|
|
2350
|
+
state: I,
|
|
2255
2351
|
selectedSlotId: n.slotKey,
|
|
2256
2352
|
maxInitialSlotsPerDay: 6,
|
|
2257
|
-
locale:
|
|
2258
|
-
hasPrevious:
|
|
2259
|
-
hasNext:
|
|
2260
|
-
onSlotSelect:
|
|
2261
|
-
onPreviousDays:
|
|
2262
|
-
onNextDays:
|
|
2353
|
+
locale: m,
|
|
2354
|
+
hasPrevious: x,
|
|
2355
|
+
hasNext: k,
|
|
2356
|
+
onSlotSelect: S,
|
|
2357
|
+
onPreviousDays: E,
|
|
2358
|
+
onNextDays: N
|
|
2263
2359
|
}
|
|
2264
2360
|
)
|
|
2265
2361
|
] });
|
|
2266
2362
|
}
|
|
2267
|
-
function
|
|
2363
|
+
function Es(e) {
|
|
2268
2364
|
const {
|
|
2269
2365
|
inputs: t,
|
|
2270
2366
|
value: n,
|
|
2271
2367
|
onChange: r,
|
|
2272
2368
|
onDateSelect: i,
|
|
2273
|
-
onWindowChange:
|
|
2369
|
+
onWindowChange: o,
|
|
2274
2370
|
loadingDates: c,
|
|
2275
2371
|
loadingSlots: f,
|
|
2276
|
-
locale:
|
|
2277
|
-
datePickerStyle:
|
|
2372
|
+
locale: m,
|
|
2373
|
+
datePickerStyle: p,
|
|
2278
2374
|
agentIdBase: g
|
|
2279
2375
|
} = e;
|
|
2280
|
-
return
|
|
2281
|
-
|
|
2376
|
+
return p === "four-day-grid" ? /* @__PURE__ */ s(
|
|
2377
|
+
Ei,
|
|
2282
2378
|
{
|
|
2283
2379
|
availableDates: t.availableDates,
|
|
2284
2380
|
availableSlots: t.availableSlots,
|
|
2285
2381
|
value: n,
|
|
2286
2382
|
onChange: r,
|
|
2287
2383
|
onDateSelect: i,
|
|
2288
|
-
onWindowChange:
|
|
2384
|
+
onWindowChange: o,
|
|
2289
2385
|
loadingDates: c,
|
|
2290
2386
|
loadingSlots: f,
|
|
2291
|
-
locale:
|
|
2387
|
+
locale: m,
|
|
2292
2388
|
agentIdBase: g
|
|
2293
2389
|
}
|
|
2294
2390
|
) : /* @__PURE__ */ s(
|
|
2295
|
-
|
|
2391
|
+
Ni,
|
|
2296
2392
|
{
|
|
2297
2393
|
availableDates: t.availableDates,
|
|
2298
2394
|
selectedDate: n.date,
|
|
2299
2395
|
onSelectDate: (l) => {
|
|
2300
2396
|
r($t(n, l)), i == null || i(l);
|
|
2301
2397
|
},
|
|
2302
|
-
locale:
|
|
2398
|
+
locale: m,
|
|
2303
2399
|
loading: c ?? f
|
|
2304
2400
|
}
|
|
2305
2401
|
);
|
|
2306
2402
|
}
|
|
2307
|
-
function
|
|
2308
|
-
const { inputs: t, value: n, onChange: r, loadingSlots: i, locale:
|
|
2403
|
+
function Fs(e) {
|
|
2404
|
+
const { inputs: t, value: n, onChange: r, loadingSlots: i, locale: o, datePickerStyle: c } = e;
|
|
2309
2405
|
return c === "four-day-grid" || !n.date ? null : /* @__PURE__ */ s(
|
|
2310
|
-
|
|
2406
|
+
Di,
|
|
2311
2407
|
{
|
|
2312
2408
|
date: n.date,
|
|
2313
2409
|
slots: t.availableSlots[n.date] ?? [],
|
|
2314
2410
|
selectedSlotKey: n.slotKey,
|
|
2315
|
-
onSelect: (f) => r(
|
|
2411
|
+
onSelect: (f) => r(ws(n, f.key)),
|
|
2316
2412
|
loading: i,
|
|
2317
|
-
locale:
|
|
2413
|
+
locale: o
|
|
2318
2414
|
}
|
|
2319
2415
|
);
|
|
2320
2416
|
}
|
|
2321
|
-
function
|
|
2322
|
-
const { t: n } =
|
|
2417
|
+
function Ms({ value: e, onChange: t }) {
|
|
2418
|
+
const { t: n } = W("ui"), r = [
|
|
2323
2419
|
{ value: "private", label: n("booking.insurance.private") },
|
|
2324
2420
|
{ value: "public", label: n("booking.insurance.public") }
|
|
2325
2421
|
];
|
|
@@ -2339,22 +2435,22 @@ function Os({ value: e, onChange: t }) {
|
|
|
2339
2435
|
)
|
|
2340
2436
|
] });
|
|
2341
2437
|
}
|
|
2342
|
-
function
|
|
2438
|
+
function _s({
|
|
2343
2439
|
specialties: e,
|
|
2344
2440
|
value: t,
|
|
2345
2441
|
valueIds: n,
|
|
2346
2442
|
onChange: r,
|
|
2347
2443
|
onChangeIds: i,
|
|
2348
|
-
pickerStyle:
|
|
2444
|
+
pickerStyle: o = "select"
|
|
2349
2445
|
}) {
|
|
2350
|
-
const { t: c } =
|
|
2351
|
-
value:
|
|
2352
|
-
label:
|
|
2353
|
-
})),
|
|
2354
|
-
return
|
|
2355
|
-
|
|
2446
|
+
const { t: c } = W("ui"), f = e.map((p) => ({
|
|
2447
|
+
value: p.id,
|
|
2448
|
+
label: p.label
|
|
2449
|
+
})), m = /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: c("booking.specialty.heading") });
|
|
2450
|
+
return o === "multi-select" && i ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2451
|
+
m,
|
|
2356
2452
|
/* @__PURE__ */ s(
|
|
2357
|
-
|
|
2453
|
+
Xt,
|
|
2358
2454
|
{
|
|
2359
2455
|
options: f,
|
|
2360
2456
|
value: n ?? [],
|
|
@@ -2364,104 +2460,103 @@ function Ms({
|
|
|
2364
2460
|
allowClear: !0
|
|
2365
2461
|
}
|
|
2366
2462
|
)
|
|
2367
|
-
] }) :
|
|
2368
|
-
|
|
2463
|
+
] }) : o === "combobox" ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2464
|
+
m,
|
|
2369
2465
|
/* @__PURE__ */ s(
|
|
2370
|
-
|
|
2466
|
+
Qt,
|
|
2371
2467
|
{
|
|
2372
2468
|
options: f,
|
|
2373
2469
|
value: t ?? "",
|
|
2374
|
-
onValueChange: (
|
|
2470
|
+
onValueChange: (p) => r(p === "" ? "" : p),
|
|
2375
2471
|
placeholder: c("booking.specialty.placeholder"),
|
|
2376
2472
|
"aria-label": c("booking.specialty.heading"),
|
|
2377
2473
|
clearable: !0
|
|
2378
2474
|
}
|
|
2379
2475
|
)
|
|
2380
2476
|
] }) : /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2381
|
-
|
|
2477
|
+
m,
|
|
2382
2478
|
/* @__PURE__ */ s(
|
|
2383
2479
|
Vt,
|
|
2384
2480
|
{
|
|
2385
2481
|
options: f,
|
|
2386
2482
|
value: t ?? "",
|
|
2387
|
-
onValueChange: (
|
|
2483
|
+
onValueChange: (p) => r(p),
|
|
2388
2484
|
placeholder: c("booking.specialty.placeholder"),
|
|
2389
2485
|
"aria-label": c("booking.specialty.heading")
|
|
2390
2486
|
}
|
|
2391
2487
|
)
|
|
2392
2488
|
] });
|
|
2393
2489
|
}
|
|
2394
|
-
function
|
|
2490
|
+
function Ls({
|
|
2395
2491
|
services: e,
|
|
2396
2492
|
value: t,
|
|
2397
2493
|
valueIds: n,
|
|
2398
2494
|
onChange: r,
|
|
2399
2495
|
onChangeIds: i,
|
|
2400
|
-
pickerStyle:
|
|
2496
|
+
pickerStyle: o,
|
|
2401
2497
|
compact: c,
|
|
2402
2498
|
showDuration: f
|
|
2403
2499
|
}) {
|
|
2404
|
-
const { t:
|
|
2405
|
-
const
|
|
2406
|
-
|
|
2407
|
-
k.amountCents,
|
|
2408
|
-
k.currencyCode,
|
|
2409
|
-
m.language
|
|
2410
|
-
)
|
|
2411
|
-
}) : p("booking.payment.unavailable") : As(u);
|
|
2412
|
-
return I ? {
|
|
2413
|
-
value: u.id,
|
|
2414
|
-
label: u.label,
|
|
2415
|
-
endContent: /* @__PURE__ */ s(ms, { variant: "accentSoft", size: "lg", children: I })
|
|
2416
|
-
} : {
|
|
2500
|
+
const { t: m } = W("ui"), p = Ds(), g = o ?? (c ? "select" : "cards"), l = e.map((u) => {
|
|
2501
|
+
const { price: y, payment: x, paymentTone: k } = p(u);
|
|
2502
|
+
return {
|
|
2417
2503
|
value: u.id,
|
|
2418
|
-
label: f ? `${u.label} · ${
|
|
2504
|
+
label: y || x || !f ? u.label : `${u.label} · ${m("booking.serviceSummary", {
|
|
2419
2505
|
minutes: u.durationMin
|
|
2420
|
-
})}
|
|
2506
|
+
})}`,
|
|
2507
|
+
...y ? {
|
|
2508
|
+
endContent: /* @__PURE__ */ s(gs, { variant: "accentSoft", size: "lg", children: y })
|
|
2509
|
+
} : {},
|
|
2510
|
+
...x ? { description: x, descriptionTone: k } : {}
|
|
2421
2511
|
};
|
|
2422
|
-
}),
|
|
2512
|
+
}), a = /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: m("booking.service.heading") });
|
|
2423
2513
|
return g === "multi-select" && i ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2424
|
-
|
|
2514
|
+
a,
|
|
2425
2515
|
/* @__PURE__ */ s(
|
|
2426
|
-
|
|
2516
|
+
Xt,
|
|
2427
2517
|
{
|
|
2428
2518
|
options: l,
|
|
2429
2519
|
value: n ?? [],
|
|
2430
2520
|
onChange: i,
|
|
2431
|
-
placeholder:
|
|
2432
|
-
"aria-label":
|
|
2433
|
-
allowClear: !0
|
|
2521
|
+
placeholder: m("booking.service.placeholder"),
|
|
2522
|
+
"aria-label": m("booking.service.heading"),
|
|
2523
|
+
allowClear: !0,
|
|
2524
|
+
wrapOptionLabels: !0
|
|
2434
2525
|
}
|
|
2435
2526
|
)
|
|
2436
2527
|
] }) : g === "combobox" ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2437
|
-
|
|
2528
|
+
a,
|
|
2438
2529
|
/* @__PURE__ */ s(
|
|
2439
|
-
|
|
2530
|
+
Qt,
|
|
2440
2531
|
{
|
|
2441
2532
|
options: l,
|
|
2442
2533
|
value: t ?? "",
|
|
2443
2534
|
onValueChange: (u) => r(u === "" ? "" : u),
|
|
2444
|
-
placeholder:
|
|
2445
|
-
"aria-label":
|
|
2446
|
-
clearable: !0
|
|
2535
|
+
placeholder: m("booking.service.placeholder"),
|
|
2536
|
+
"aria-label": m("booking.service.heading"),
|
|
2537
|
+
clearable: !0,
|
|
2538
|
+
wrapOptionLabels: !0
|
|
2447
2539
|
}
|
|
2448
2540
|
)
|
|
2449
2541
|
] }) : g === "select" ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2450
|
-
|
|
2542
|
+
a,
|
|
2451
2543
|
/* @__PURE__ */ s(
|
|
2452
2544
|
Vt,
|
|
2453
2545
|
{
|
|
2454
2546
|
options: l,
|
|
2455
2547
|
value: t ?? "",
|
|
2456
2548
|
onValueChange: (u) => r(u),
|
|
2457
|
-
placeholder:
|
|
2458
|
-
"aria-label":
|
|
2549
|
+
placeholder: m("booking.service.placeholder"),
|
|
2550
|
+
"aria-label": m("booking.service.heading"),
|
|
2551
|
+
showDescriptions: !0,
|
|
2552
|
+
descriptionInName: !0,
|
|
2553
|
+
wrapOptionLabels: !0
|
|
2459
2554
|
}
|
|
2460
2555
|
)
|
|
2461
2556
|
] }) : /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2462
|
-
|
|
2557
|
+
a,
|
|
2463
2558
|
/* @__PURE__ */ s(
|
|
2464
|
-
|
|
2559
|
+
Ci,
|
|
2465
2560
|
{
|
|
2466
2561
|
services: e,
|
|
2467
2562
|
selectedServiceId: t,
|
|
@@ -2471,26 +2566,26 @@ function Fs({
|
|
|
2471
2566
|
)
|
|
2472
2567
|
] });
|
|
2473
2568
|
}
|
|
2474
|
-
function
|
|
2569
|
+
function Bs({
|
|
2475
2570
|
operators: e,
|
|
2476
2571
|
value: t,
|
|
2477
2572
|
valueIds: n,
|
|
2478
2573
|
onChange: r,
|
|
2479
2574
|
onChangeIds: i,
|
|
2480
|
-
pickerStyle:
|
|
2575
|
+
pickerStyle: o = "select"
|
|
2481
2576
|
}) {
|
|
2482
|
-
const { t: c } =
|
|
2483
|
-
if (
|
|
2484
|
-
const
|
|
2577
|
+
const { t: c } = W("ui"), f = /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: c("booking.operator.heading") });
|
|
2578
|
+
if (o === "multi-select" && i) {
|
|
2579
|
+
const p = e.map((g) => ({
|
|
2485
2580
|
value: g.id,
|
|
2486
2581
|
label: g.name
|
|
2487
2582
|
}));
|
|
2488
2583
|
return /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2489
2584
|
f,
|
|
2490
2585
|
/* @__PURE__ */ s(
|
|
2491
|
-
|
|
2586
|
+
Xt,
|
|
2492
2587
|
{
|
|
2493
|
-
options:
|
|
2588
|
+
options: p,
|
|
2494
2589
|
value: n ?? [],
|
|
2495
2590
|
onChange: i,
|
|
2496
2591
|
placeholder: c("booking.operator.placeholder"),
|
|
@@ -2500,18 +2595,18 @@ function _s({
|
|
|
2500
2595
|
)
|
|
2501
2596
|
] });
|
|
2502
2597
|
}
|
|
2503
|
-
const
|
|
2504
|
-
{ value:
|
|
2505
|
-
...e.map((
|
|
2598
|
+
const m = [
|
|
2599
|
+
{ value: _e, label: c("booking.operator.all") },
|
|
2600
|
+
...e.map((p) => ({ value: p.id, label: p.name }))
|
|
2506
2601
|
];
|
|
2507
|
-
return
|
|
2602
|
+
return o === "combobox" ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2508
2603
|
f,
|
|
2509
2604
|
/* @__PURE__ */ s(
|
|
2510
|
-
|
|
2605
|
+
Qt,
|
|
2511
2606
|
{
|
|
2512
|
-
options:
|
|
2513
|
-
value: t ??
|
|
2514
|
-
onValueChange: (
|
|
2607
|
+
options: m,
|
|
2608
|
+
value: t ?? _e,
|
|
2609
|
+
onValueChange: (p) => r(p === "" ? _e : p),
|
|
2515
2610
|
placeholder: c("booking.operator.placeholder"),
|
|
2516
2611
|
"aria-label": c("booking.operator.heading"),
|
|
2517
2612
|
clearable: !0
|
|
@@ -2522,151 +2617,151 @@ function _s({
|
|
|
2522
2617
|
/* @__PURE__ */ s(
|
|
2523
2618
|
Vt,
|
|
2524
2619
|
{
|
|
2525
|
-
options:
|
|
2526
|
-
value: t ??
|
|
2527
|
-
onValueChange: (
|
|
2620
|
+
options: m,
|
|
2621
|
+
value: t ?? _e,
|
|
2622
|
+
onValueChange: (p) => r(p),
|
|
2528
2623
|
placeholder: c("booking.operator.placeholder"),
|
|
2529
2624
|
"aria-label": c("booking.operator.heading")
|
|
2530
2625
|
}
|
|
2531
2626
|
)
|
|
2532
2627
|
] });
|
|
2533
2628
|
}
|
|
2534
|
-
function
|
|
2629
|
+
function Rs({
|
|
2535
2630
|
customSlot: e
|
|
2536
2631
|
}) {
|
|
2537
|
-
const { t } =
|
|
2538
|
-
return e ? /* @__PURE__ */ s(
|
|
2539
|
-
/* @__PURE__ */ s(
|
|
2540
|
-
/* @__PURE__ */ s(
|
|
2632
|
+
const { t } = W("ui");
|
|
2633
|
+
return e ? /* @__PURE__ */ s(ae, { children: e }) : /* @__PURE__ */ v(ie, { variant: "warning", children: [
|
|
2634
|
+
/* @__PURE__ */ s(ie.Title, { as: "h4", children: t("booking.onboardingIncomplete.title") }),
|
|
2635
|
+
/* @__PURE__ */ s(ie.Description, { children: t("booking.onboardingIncomplete.description") })
|
|
2541
2636
|
] });
|
|
2542
2637
|
}
|
|
2543
|
-
function
|
|
2638
|
+
function ts({
|
|
2544
2639
|
nextAvailableDate: e,
|
|
2545
2640
|
onJump: t,
|
|
2546
2641
|
locale: n
|
|
2547
2642
|
}) {
|
|
2548
|
-
const { t: r } =
|
|
2643
|
+
const { t: r } = W("ui"), i = L(() => {
|
|
2549
2644
|
try {
|
|
2550
2645
|
return new Intl.DateTimeFormat(n, { dateStyle: "long" }).format(
|
|
2551
|
-
|
|
2646
|
+
be(e)
|
|
2552
2647
|
);
|
|
2553
2648
|
} catch {
|
|
2554
2649
|
return e;
|
|
2555
2650
|
}
|
|
2556
2651
|
}, [e, n]);
|
|
2557
|
-
return /* @__PURE__ */ v(
|
|
2558
|
-
/* @__PURE__ */ s(
|
|
2559
|
-
/* @__PURE__ */ s(
|
|
2652
|
+
return /* @__PURE__ */ v(ie, { variant: "info", children: [
|
|
2653
|
+
/* @__PURE__ */ s(ie.Description, { children: r("booking.nextAvailable.description", { date: i }) }),
|
|
2654
|
+
/* @__PURE__ */ s(ie.Action, { children: /* @__PURE__ */ s(et, { intent: "secondary", size: "sm", onClick: t, children: r("booking.nextAvailable.cta") }) })
|
|
2560
2655
|
] });
|
|
2561
2656
|
}
|
|
2562
|
-
function
|
|
2657
|
+
function Fi({
|
|
2563
2658
|
payment: e,
|
|
2564
2659
|
snapshot: t,
|
|
2565
2660
|
operators: n,
|
|
2566
2661
|
specialties: r,
|
|
2567
2662
|
services: i,
|
|
2568
|
-
locale:
|
|
2663
|
+
locale: o,
|
|
2569
2664
|
mode: c,
|
|
2570
2665
|
showModify: f,
|
|
2571
|
-
onReset:
|
|
2572
|
-
onModify:
|
|
2666
|
+
onReset: m,
|
|
2667
|
+
onModify: p,
|
|
2573
2668
|
focusWasLost: g
|
|
2574
2669
|
}) {
|
|
2575
|
-
const { t: l } =
|
|
2576
|
-
|
|
2577
|
-
const
|
|
2578
|
-
!e || !
|
|
2670
|
+
const { t: l } = W("ui"), a = _(null);
|
|
2671
|
+
K(() => {
|
|
2672
|
+
const C = a.current, O = document.activeElement, T = C == null ? void 0 : C.closest('[data-component="booking"]');
|
|
2673
|
+
!e || !C || (O && (T != null && T.contains(O)) || g()) && C.focus();
|
|
2579
2674
|
}, []);
|
|
2580
|
-
const
|
|
2581
|
-
(
|
|
2582
|
-
),
|
|
2675
|
+
const y = (t.details.confirmationChannels ?? ["email"]).map(
|
|
2676
|
+
(C) => l(`booking.confirmation.channel.${C}`)
|
|
2677
|
+
), x = e ? Pt(e.amountCents, e.currencyCode, o) : "", k = e ? l(
|
|
2583
2678
|
c === "demo" ? "booking.payment.paidDemo" : "booking.payment.paidBody",
|
|
2584
|
-
{ amount:
|
|
2585
|
-
) : c === "demo" ? l("booking.success.descriptionDemo") :
|
|
2586
|
-
channels:
|
|
2587
|
-
}) : l("booking.success.descriptionSingle", { channel:
|
|
2679
|
+
{ amount: x }
|
|
2680
|
+
) : c === "demo" ? l("booking.success.descriptionDemo") : y.length > 1 ? l("booking.success.descriptionMultiple", {
|
|
2681
|
+
channels: y.join(" · ")
|
|
2682
|
+
}) : l("booking.success.descriptionSingle", { channel: y[0] }), E = L(() => {
|
|
2588
2683
|
if (t.date)
|
|
2589
2684
|
try {
|
|
2590
|
-
return new Intl.DateTimeFormat(
|
|
2685
|
+
return new Intl.DateTimeFormat(o, {
|
|
2591
2686
|
weekday: "long",
|
|
2592
2687
|
day: "numeric",
|
|
2593
2688
|
month: "long"
|
|
2594
|
-
}).format(
|
|
2689
|
+
}).format(be(t.date));
|
|
2595
2690
|
} catch {
|
|
2596
2691
|
return t.date;
|
|
2597
2692
|
}
|
|
2598
|
-
}, [t.date,
|
|
2599
|
-
const
|
|
2693
|
+
}, [t.date, o]), N = L(() => {
|
|
2694
|
+
const O = (t.operatorIds && t.operatorIds.length > 0 ? t.operatorIds : t.operatorId ? [t.operatorId] : []).filter((T) => T !== _e).map((T) => {
|
|
2600
2695
|
var h;
|
|
2601
|
-
return (h = n.find((
|
|
2696
|
+
return (h = n.find((w) => w.id === T)) == null ? void 0 : h.name;
|
|
2602
2697
|
}).filter((T) => T !== void 0);
|
|
2603
|
-
if (
|
|
2698
|
+
if (O.length === 0) return "";
|
|
2604
2699
|
try {
|
|
2605
|
-
return new Intl.ListFormat(
|
|
2700
|
+
return new Intl.ListFormat(o === "en" ? "en-GB" : o, {
|
|
2606
2701
|
style: "long",
|
|
2607
2702
|
type: "conjunction"
|
|
2608
|
-
}).format(
|
|
2703
|
+
}).format(O);
|
|
2609
2704
|
} catch {
|
|
2610
|
-
return
|
|
2705
|
+
return O.join(", ");
|
|
2611
2706
|
}
|
|
2612
|
-
}, [t.operatorIds, t.operatorId, n,
|
|
2707
|
+
}, [t.operatorIds, t.operatorId, n, o]), S = t.specialtyId ? r.find((C) => C.id === t.specialtyId) : void 0, I = t.serviceId ? i.find((C) => C.id === t.serviceId) : void 0;
|
|
2613
2708
|
return /* @__PURE__ */ v(
|
|
2614
2709
|
"div",
|
|
2615
2710
|
{
|
|
2616
2711
|
"data-component": "booking-success",
|
|
2617
2712
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
2618
2713
|
children: [
|
|
2619
|
-
/* @__PURE__ */ v(
|
|
2714
|
+
/* @__PURE__ */ v(ie, { variant: "success", children: [
|
|
2620
2715
|
/* @__PURE__ */ s(
|
|
2621
|
-
|
|
2716
|
+
ie.Title,
|
|
2622
2717
|
{
|
|
2623
2718
|
as: "h3",
|
|
2624
|
-
ref:
|
|
2719
|
+
ref: a,
|
|
2625
2720
|
tabIndex: e ? -1 : void 0,
|
|
2626
|
-
className: e ?
|
|
2721
|
+
className: e ? Bt : void 0,
|
|
2627
2722
|
children: l(
|
|
2628
2723
|
e ? c === "demo" ? "booking.payment.paidDemoTitle" : "booking.payment.paidTitle" : "booking.success.heading"
|
|
2629
2724
|
)
|
|
2630
2725
|
}
|
|
2631
2726
|
),
|
|
2632
|
-
/* @__PURE__ */ s(
|
|
2727
|
+
/* @__PURE__ */ s(ie.Description, { children: k })
|
|
2633
2728
|
] }),
|
|
2634
2729
|
/* @__PURE__ */ s("div", { className: "ds:rounded-[var(--radius-md)] ds:bg-[var(--secondary)] ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ v("dl", { className: "ds:grid ds:grid-cols-[auto_minmax(0,1fr)] ds:gap-x-[var(--spacing-md)] ds:gap-y-[var(--spacing-xs)] ds:m-0", children: [
|
|
2635
|
-
e && c !== "demo" ? /* @__PURE__ */ v(
|
|
2730
|
+
e && c !== "demo" ? /* @__PURE__ */ v(ae, { children: [
|
|
2636
2731
|
/* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: l("booking.payment.summaryPaid") }),
|
|
2637
|
-
/* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children:
|
|
2732
|
+
/* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: x })
|
|
2638
2733
|
] }) : null,
|
|
2639
|
-
|
|
2734
|
+
S ? /* @__PURE__ */ v(ae, { children: [
|
|
2640
2735
|
/* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: l("booking.success.summarySpecialty") }),
|
|
2641
|
-
/* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children:
|
|
2736
|
+
/* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: S.label })
|
|
2642
2737
|
] }) : null,
|
|
2643
|
-
|
|
2738
|
+
I ? /* @__PURE__ */ v(ae, { children: [
|
|
2644
2739
|
/* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: l("booking.success.summaryService") }),
|
|
2645
|
-
/* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children:
|
|
2740
|
+
/* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: I.label })
|
|
2646
2741
|
] }) : null,
|
|
2647
|
-
|
|
2742
|
+
E ? /* @__PURE__ */ v(ae, { children: [
|
|
2648
2743
|
/* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: l("booking.success.summaryDate") }),
|
|
2649
|
-
/* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children:
|
|
2744
|
+
/* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: E })
|
|
2650
2745
|
] }) : null,
|
|
2651
2746
|
/* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: l("booking.success.summaryTime") }),
|
|
2652
2747
|
/* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: t.slot.time }),
|
|
2653
|
-
|
|
2748
|
+
N ? /* @__PURE__ */ v(ae, { children: [
|
|
2654
2749
|
/* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: l("booking.success.summaryProvider") }),
|
|
2655
|
-
/* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children:
|
|
2750
|
+
/* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: N })
|
|
2656
2751
|
] }) : null
|
|
2657
2752
|
] }) }),
|
|
2658
2753
|
/* @__PURE__ */ v("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
2659
|
-
/* @__PURE__ */ s(
|
|
2660
|
-
f ? /* @__PURE__ */ s(
|
|
2754
|
+
/* @__PURE__ */ s(et, { intent: "secondary", size: "md", onClick: m, children: l("booking.success.bookAnother") }),
|
|
2755
|
+
f ? /* @__PURE__ */ s(et, { intent: "ghost", size: "md", onClick: p, children: l("booking.success.modifyBooking") }) : null
|
|
2661
2756
|
] })
|
|
2662
2757
|
]
|
|
2663
2758
|
}
|
|
2664
2759
|
);
|
|
2665
2760
|
}
|
|
2666
|
-
function
|
|
2667
|
-
const { t } =
|
|
2668
|
-
return e ? /* @__PURE__ */ s(
|
|
2669
|
-
|
|
2761
|
+
function Ps({ customSlot: e }) {
|
|
2762
|
+
const { t } = W("ui");
|
|
2763
|
+
return e ? /* @__PURE__ */ s(ae, { children: e }) : /* @__PURE__ */ s(
|
|
2764
|
+
hs,
|
|
2670
2765
|
{
|
|
2671
2766
|
variant: "no-results",
|
|
2672
2767
|
title: t("booking.emptyServices.title"),
|
|
@@ -2674,14 +2769,14 @@ function Bs({ customSlot: e }) {
|
|
|
2674
2769
|
}
|
|
2675
2770
|
);
|
|
2676
2771
|
}
|
|
2677
|
-
const
|
|
2772
|
+
const Vs = "data-booking-step-active", Mi = `[${Vs}]`, Bt = [
|
|
2678
2773
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
2679
2774
|
"ds:focus-visible:outline-solid",
|
|
2680
2775
|
"ds:focus-visible:outline-[var(--ring)]",
|
|
2681
2776
|
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
2682
2777
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
2683
2778
|
].join(" ");
|
|
2684
|
-
function
|
|
2779
|
+
function Y({
|
|
2685
2780
|
step: e,
|
|
2686
2781
|
active: t,
|
|
2687
2782
|
className: n,
|
|
@@ -2693,255 +2788,255 @@ function U({
|
|
|
2693
2788
|
{
|
|
2694
2789
|
id: r,
|
|
2695
2790
|
"data-booking-step": String(e),
|
|
2696
|
-
...t ? { [
|
|
2791
|
+
...t ? { [Vs]: "" } : null,
|
|
2697
2792
|
tabIndex: -1,
|
|
2698
|
-
className: n ? `${n} ${
|
|
2793
|
+
className: n ? `${n} ${Bt}` : Bt,
|
|
2699
2794
|
children: i
|
|
2700
2795
|
}
|
|
2701
2796
|
);
|
|
2702
2797
|
}
|
|
2703
|
-
function
|
|
2798
|
+
function ss(e, t) {
|
|
2704
2799
|
return t === "four-day-grid" ? e.filter((n) => n !== 6) : e;
|
|
2705
2800
|
}
|
|
2706
|
-
function
|
|
2801
|
+
function _i(e) {
|
|
2707
2802
|
const {
|
|
2708
2803
|
cascade: t,
|
|
2709
2804
|
inputs: n,
|
|
2710
2805
|
value: r,
|
|
2711
2806
|
onChange: i,
|
|
2712
|
-
onSubmit:
|
|
2807
|
+
onSubmit: o,
|
|
2713
2808
|
emptyServicesSlot: c,
|
|
2714
2809
|
onboardingIncompleteSlot: f,
|
|
2715
|
-
loadingDates:
|
|
2716
|
-
loadingSlots:
|
|
2810
|
+
loadingDates: m,
|
|
2811
|
+
loadingSlots: p,
|
|
2717
2812
|
onDateSelect: g,
|
|
2718
2813
|
onWindowChange: l,
|
|
2719
|
-
datePickerStyle:
|
|
2814
|
+
datePickerStyle: a,
|
|
2720
2815
|
specialtyPickerStyle: u,
|
|
2721
|
-
servicePickerStyle:
|
|
2722
|
-
showServiceDuration:
|
|
2723
|
-
operatorPickerStyle:
|
|
2724
|
-
submitting:
|
|
2725
|
-
locale:
|
|
2726
|
-
detailsProps:
|
|
2727
|
-
agentIdBase:
|
|
2728
|
-
activeStep:
|
|
2729
|
-
} = e, { t:
|
|
2730
|
-
step:
|
|
2731
|
-
active:
|
|
2816
|
+
servicePickerStyle: y,
|
|
2817
|
+
showServiceDuration: x,
|
|
2818
|
+
operatorPickerStyle: k,
|
|
2819
|
+
submitting: E,
|
|
2820
|
+
locale: N,
|
|
2821
|
+
detailsProps: S,
|
|
2822
|
+
agentIdBase: I,
|
|
2823
|
+
activeStep: C
|
|
2824
|
+
} = e, { t: O } = W("ui"), T = lt(C, a), h = (w, $) => ({
|
|
2825
|
+
step: w,
|
|
2826
|
+
active: w === T,
|
|
2732
2827
|
className: $
|
|
2733
2828
|
});
|
|
2734
2829
|
return /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
2735
|
-
t.gates.insurance ? /* @__PURE__ */ s(
|
|
2736
|
-
|
|
2830
|
+
t.gates.insurance ? /* @__PURE__ */ s(Y, { ...h(1), children: /* @__PURE__ */ s(
|
|
2831
|
+
Ms,
|
|
2737
2832
|
{
|
|
2738
2833
|
value: r.insuranceType,
|
|
2739
|
-
onChange: (
|
|
2834
|
+
onChange: (w) => i(bs(r, w))
|
|
2740
2835
|
}
|
|
2741
2836
|
) }) : null,
|
|
2742
|
-
t.gates.specialty ? /* @__PURE__ */ s(
|
|
2743
|
-
|
|
2837
|
+
t.gates.specialty ? /* @__PURE__ */ s(Y, { ...h(2), children: /* @__PURE__ */ s(
|
|
2838
|
+
_s,
|
|
2744
2839
|
{
|
|
2745
2840
|
specialties: t.filtered.specialties,
|
|
2746
2841
|
value: r.specialtyId,
|
|
2747
2842
|
valueIds: r.specialtyIds,
|
|
2748
|
-
onChange: (
|
|
2749
|
-
onChangeIds: (
|
|
2843
|
+
onChange: (w) => i(ys(r, w)),
|
|
2844
|
+
onChangeIds: (w) => i(ks(r, w)),
|
|
2750
2845
|
pickerStyle: u
|
|
2751
2846
|
}
|
|
2752
2847
|
) }) : null,
|
|
2753
|
-
t.gates.service ? /* @__PURE__ */ s(
|
|
2754
|
-
|
|
2848
|
+
t.gates.service ? /* @__PURE__ */ s(Y, { ...h(3), children: t.filtered.services.length === 0 ? /* @__PURE__ */ s(Ps, { customSlot: c }) : /* @__PURE__ */ s(
|
|
2849
|
+
Ls,
|
|
2755
2850
|
{
|
|
2756
2851
|
services: t.filtered.services,
|
|
2757
2852
|
value: r.serviceId,
|
|
2758
2853
|
valueIds: r.serviceIds,
|
|
2759
|
-
onChange: (
|
|
2760
|
-
onChangeIds: (
|
|
2761
|
-
pickerStyle:
|
|
2762
|
-
showDuration:
|
|
2854
|
+
onChange: (w) => i(Ss(r, w)),
|
|
2855
|
+
onChangeIds: (w) => i(xs(r, w)),
|
|
2856
|
+
pickerStyle: y,
|
|
2857
|
+
showDuration: x
|
|
2763
2858
|
}
|
|
2764
2859
|
) }) : null,
|
|
2765
|
-
t.gates.onboardingIncomplete ? /* @__PURE__ */ s(
|
|
2766
|
-
t.gates.operator ? /* @__PURE__ */ s(
|
|
2767
|
-
|
|
2860
|
+
t.gates.onboardingIncomplete ? /* @__PURE__ */ s(Rs, { customSlot: f }) : null,
|
|
2861
|
+
t.gates.operator ? /* @__PURE__ */ s(Y, { ...h(4), children: /* @__PURE__ */ s(
|
|
2862
|
+
Bs,
|
|
2768
2863
|
{
|
|
2769
2864
|
operators: t.filtered.operators,
|
|
2770
2865
|
value: r.operatorId,
|
|
2771
2866
|
valueIds: r.operatorIds,
|
|
2772
|
-
onChange: (
|
|
2773
|
-
onChangeIds: (
|
|
2774
|
-
pickerStyle:
|
|
2867
|
+
onChange: (w) => i(Is(r, w)),
|
|
2868
|
+
onChangeIds: (w) => i(Ns(r, w)),
|
|
2869
|
+
pickerStyle: k
|
|
2775
2870
|
}
|
|
2776
2871
|
) }) : null,
|
|
2777
2872
|
t.gates.date ? /* @__PURE__ */ v(
|
|
2778
|
-
|
|
2873
|
+
Y,
|
|
2779
2874
|
{
|
|
2780
2875
|
...h(5, "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"),
|
|
2781
2876
|
children: [
|
|
2782
|
-
/* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children:
|
|
2877
|
+
/* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: O("booking.date.heading") }),
|
|
2783
2878
|
n.availableDates.length === 0 && n.nextAvailableDate ? /* @__PURE__ */ s(
|
|
2784
|
-
|
|
2879
|
+
ts,
|
|
2785
2880
|
{
|
|
2786
2881
|
nextAvailableDate: n.nextAvailableDate,
|
|
2787
2882
|
onJump: () => i($t(r, n.nextAvailableDate)),
|
|
2788
|
-
locale:
|
|
2883
|
+
locale: N
|
|
2789
2884
|
}
|
|
2790
|
-
) :
|
|
2885
|
+
) : Es({
|
|
2791
2886
|
inputs: n,
|
|
2792
2887
|
value: r,
|
|
2793
2888
|
onChange: i,
|
|
2794
2889
|
onDateSelect: g,
|
|
2795
2890
|
onWindowChange: l,
|
|
2796
|
-
loadingDates:
|
|
2797
|
-
loadingSlots:
|
|
2798
|
-
locale:
|
|
2799
|
-
datePickerStyle:
|
|
2800
|
-
agentIdBase:
|
|
2891
|
+
loadingDates: m,
|
|
2892
|
+
loadingSlots: p,
|
|
2893
|
+
locale: N,
|
|
2894
|
+
datePickerStyle: a,
|
|
2895
|
+
agentIdBase: I
|
|
2801
2896
|
})
|
|
2802
2897
|
]
|
|
2803
2898
|
}
|
|
2804
2899
|
) : null,
|
|
2805
|
-
t.gates.slot && r.date &&
|
|
2806
|
-
|
|
2900
|
+
t.gates.slot && r.date && a === "month-calendar" ? /* @__PURE__ */ v(
|
|
2901
|
+
Y,
|
|
2807
2902
|
{
|
|
2808
2903
|
...h(6, "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"),
|
|
2809
2904
|
children: [
|
|
2810
|
-
/* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children:
|
|
2811
|
-
|
|
2905
|
+
/* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: O("booking.slot.heading") }),
|
|
2906
|
+
Fs({
|
|
2812
2907
|
inputs: n,
|
|
2813
2908
|
value: r,
|
|
2814
2909
|
onChange: i,
|
|
2815
|
-
loadingSlots:
|
|
2816
|
-
locale:
|
|
2817
|
-
datePickerStyle:
|
|
2910
|
+
loadingSlots: p,
|
|
2911
|
+
locale: N,
|
|
2912
|
+
datePickerStyle: a
|
|
2818
2913
|
})
|
|
2819
2914
|
]
|
|
2820
2915
|
}
|
|
2821
2916
|
) : null,
|
|
2822
|
-
t.gates.details && t.selectedSlot ? /* @__PURE__ */ s(
|
|
2823
|
-
|
|
2917
|
+
t.gates.details && t.selectedSlot ? /* @__PURE__ */ s(Y, { ...h(7), children: /* @__PURE__ */ s(
|
|
2918
|
+
es,
|
|
2824
2919
|
{
|
|
2825
|
-
...
|
|
2920
|
+
...S,
|
|
2826
2921
|
value: r.details ?? {},
|
|
2827
|
-
onChange: (
|
|
2828
|
-
onSubmit:
|
|
2829
|
-
submitting:
|
|
2922
|
+
onChange: (w) => i({ ...r, details: w }),
|
|
2923
|
+
onSubmit: o,
|
|
2924
|
+
submitting: E,
|
|
2830
2925
|
defaultPhoneCountry: e.policy.country
|
|
2831
2926
|
}
|
|
2832
2927
|
) }) : null
|
|
2833
2928
|
] });
|
|
2834
2929
|
}
|
|
2835
|
-
function
|
|
2930
|
+
function Te(e, t, n = {}) {
|
|
2836
2931
|
const {
|
|
2837
2932
|
cascade: r,
|
|
2838
2933
|
inputs: i,
|
|
2839
|
-
value:
|
|
2934
|
+
value: o,
|
|
2840
2935
|
onChange: c,
|
|
2841
2936
|
onSubmit: f,
|
|
2842
|
-
emptyServicesSlot:
|
|
2843
|
-
onboardingIncompleteSlot:
|
|
2937
|
+
emptyServicesSlot: m,
|
|
2938
|
+
onboardingIncompleteSlot: p,
|
|
2844
2939
|
loadingDates: g,
|
|
2845
2940
|
loadingSlots: l,
|
|
2846
|
-
onDateSelect:
|
|
2941
|
+
onDateSelect: a,
|
|
2847
2942
|
onWindowChange: u,
|
|
2848
|
-
datePickerStyle:
|
|
2849
|
-
specialtyPickerStyle:
|
|
2850
|
-
servicePickerStyle:
|
|
2851
|
-
showServiceDuration:
|
|
2852
|
-
operatorPickerStyle:
|
|
2853
|
-
submitting:
|
|
2854
|
-
locale:
|
|
2855
|
-
detailsProps:
|
|
2856
|
-
policy:
|
|
2943
|
+
datePickerStyle: y,
|
|
2944
|
+
specialtyPickerStyle: x,
|
|
2945
|
+
servicePickerStyle: k,
|
|
2946
|
+
showServiceDuration: E,
|
|
2947
|
+
operatorPickerStyle: N,
|
|
2948
|
+
submitting: S,
|
|
2949
|
+
locale: I,
|
|
2950
|
+
detailsProps: C,
|
|
2951
|
+
policy: O,
|
|
2857
2952
|
agentIdBase: T
|
|
2858
2953
|
} = t;
|
|
2859
2954
|
switch (e) {
|
|
2860
2955
|
case 1:
|
|
2861
2956
|
return /* @__PURE__ */ s(
|
|
2862
|
-
|
|
2957
|
+
Ms,
|
|
2863
2958
|
{
|
|
2864
|
-
value:
|
|
2865
|
-
onChange: (h) => c(
|
|
2959
|
+
value: o.insuranceType,
|
|
2960
|
+
onChange: (h) => c(bs(o, h))
|
|
2866
2961
|
}
|
|
2867
2962
|
);
|
|
2868
2963
|
case 2:
|
|
2869
2964
|
return /* @__PURE__ */ s(
|
|
2870
|
-
|
|
2965
|
+
_s,
|
|
2871
2966
|
{
|
|
2872
2967
|
specialties: r.filtered.specialties,
|
|
2873
|
-
value:
|
|
2874
|
-
valueIds:
|
|
2875
|
-
onChange: (h) => c(
|
|
2876
|
-
onChangeIds: (h) => c(
|
|
2877
|
-
pickerStyle:
|
|
2968
|
+
value: o.specialtyId,
|
|
2969
|
+
valueIds: o.specialtyIds,
|
|
2970
|
+
onChange: (h) => c(ys(o, h)),
|
|
2971
|
+
onChangeIds: (h) => c(ks(o, h)),
|
|
2972
|
+
pickerStyle: x
|
|
2878
2973
|
}
|
|
2879
2974
|
);
|
|
2880
2975
|
case 3:
|
|
2881
|
-
return r.filtered.services.length === 0 ? /* @__PURE__ */ s(
|
|
2882
|
-
|
|
2976
|
+
return r.filtered.services.length === 0 ? /* @__PURE__ */ s(Ps, { customSlot: m }) : r.gates.onboardingIncomplete ? /* @__PURE__ */ s(Rs, { customSlot: p }) : /* @__PURE__ */ s(
|
|
2977
|
+
Ls,
|
|
2883
2978
|
{
|
|
2884
2979
|
services: r.filtered.services,
|
|
2885
|
-
value:
|
|
2886
|
-
valueIds:
|
|
2887
|
-
onChange: (h) => c(
|
|
2888
|
-
onChangeIds: (h) => c(
|
|
2889
|
-
pickerStyle:
|
|
2980
|
+
value: o.serviceId,
|
|
2981
|
+
valueIds: o.serviceIds,
|
|
2982
|
+
onChange: (h) => c(Ss(o, h)),
|
|
2983
|
+
onChangeIds: (h) => c(xs(o, h)),
|
|
2984
|
+
pickerStyle: k,
|
|
2890
2985
|
compact: n.compactService,
|
|
2891
|
-
showDuration:
|
|
2986
|
+
showDuration: E
|
|
2892
2987
|
}
|
|
2893
2988
|
);
|
|
2894
2989
|
case 4:
|
|
2895
2990
|
return /* @__PURE__ */ s(
|
|
2896
|
-
|
|
2991
|
+
Bs,
|
|
2897
2992
|
{
|
|
2898
2993
|
operators: r.filtered.operators,
|
|
2899
|
-
value:
|
|
2900
|
-
valueIds:
|
|
2901
|
-
onChange: (h) => c(
|
|
2902
|
-
onChangeIds: (h) => c(
|
|
2903
|
-
pickerStyle:
|
|
2994
|
+
value: o.operatorId,
|
|
2995
|
+
valueIds: o.operatorIds,
|
|
2996
|
+
onChange: (h) => c(Is(o, h)),
|
|
2997
|
+
onChangeIds: (h) => c(Ns(o, h)),
|
|
2998
|
+
pickerStyle: N
|
|
2904
2999
|
}
|
|
2905
3000
|
);
|
|
2906
3001
|
case 5:
|
|
2907
3002
|
return i.availableDates.length === 0 && i.nextAvailableDate ? /* @__PURE__ */ s(
|
|
2908
|
-
|
|
3003
|
+
ts,
|
|
2909
3004
|
{
|
|
2910
3005
|
nextAvailableDate: i.nextAvailableDate,
|
|
2911
|
-
onJump: () => c($t(
|
|
2912
|
-
locale:
|
|
3006
|
+
onJump: () => c($t(o, i.nextAvailableDate)),
|
|
3007
|
+
locale: I
|
|
2913
3008
|
}
|
|
2914
|
-
) :
|
|
3009
|
+
) : Es({
|
|
2915
3010
|
inputs: i,
|
|
2916
|
-
value:
|
|
3011
|
+
value: o,
|
|
2917
3012
|
onChange: c,
|
|
2918
|
-
onDateSelect:
|
|
3013
|
+
onDateSelect: a,
|
|
2919
3014
|
onWindowChange: u,
|
|
2920
3015
|
loadingDates: g,
|
|
2921
3016
|
loadingSlots: l,
|
|
2922
|
-
locale:
|
|
2923
|
-
datePickerStyle:
|
|
3017
|
+
locale: I,
|
|
3018
|
+
datePickerStyle: y,
|
|
2924
3019
|
agentIdBase: T
|
|
2925
3020
|
});
|
|
2926
3021
|
case 6:
|
|
2927
|
-
return
|
|
3022
|
+
return Fs({
|
|
2928
3023
|
inputs: i,
|
|
2929
|
-
value:
|
|
3024
|
+
value: o,
|
|
2930
3025
|
onChange: c,
|
|
2931
3026
|
loadingSlots: l,
|
|
2932
|
-
locale:
|
|
2933
|
-
datePickerStyle:
|
|
3027
|
+
locale: I,
|
|
3028
|
+
datePickerStyle: y
|
|
2934
3029
|
});
|
|
2935
3030
|
case 7:
|
|
2936
3031
|
return r.selectedSlot ? /* @__PURE__ */ s(
|
|
2937
|
-
|
|
3032
|
+
es,
|
|
2938
3033
|
{
|
|
2939
|
-
...
|
|
2940
|
-
value:
|
|
2941
|
-
onChange: (h) => c({ ...
|
|
3034
|
+
...C,
|
|
3035
|
+
value: o.details ?? {},
|
|
3036
|
+
onChange: (h) => c({ ...o, details: h }),
|
|
2942
3037
|
onSubmit: f,
|
|
2943
|
-
submitting:
|
|
2944
|
-
defaultPhoneCountry:
|
|
3038
|
+
submitting: S,
|
|
3039
|
+
defaultPhoneCountry: O.country
|
|
2945
3040
|
}
|
|
2946
3041
|
) : null;
|
|
2947
3042
|
/* c8 ignore next 2 */
|
|
@@ -2950,8 +3045,8 @@ function ye(e, t, n = {}) {
|
|
|
2950
3045
|
}
|
|
2951
3046
|
}
|
|
2952
3047
|
function qt() {
|
|
2953
|
-
const { t: e } =
|
|
2954
|
-
return
|
|
3048
|
+
const { t: e } = W("ui");
|
|
3049
|
+
return L(
|
|
2955
3050
|
() => ({
|
|
2956
3051
|
1: e("booking.insurance.heading"),
|
|
2957
3052
|
2: e("booking.specialty.heading"),
|
|
@@ -2964,74 +3059,74 @@ function qt() {
|
|
|
2964
3059
|
[e]
|
|
2965
3060
|
);
|
|
2966
3061
|
}
|
|
2967
|
-
function
|
|
3062
|
+
function lt(e, t) {
|
|
2968
3063
|
return t === "four-day-grid" && e === 6 ? 5 : e;
|
|
2969
3064
|
}
|
|
2970
|
-
function
|
|
2971
|
-
const { cascade: t, value: n, activeStep: r, setActiveStep: i, datePickerStyle:
|
|
2972
|
-
() =>
|
|
2973
|
-
[t.visibleSteps,
|
|
2974
|
-
), g =
|
|
2975
|
-
() =>
|
|
3065
|
+
function Li(e) {
|
|
3066
|
+
const { cascade: t, value: n, activeStep: r, setActiveStep: i, datePickerStyle: o } = e, c = qt(), { t: f } = W("ui"), m = f("booking.operator.all"), p = L(
|
|
3067
|
+
() => ss(t.visibleSteps, o),
|
|
3068
|
+
[t.visibleSteps, o]
|
|
3069
|
+
), g = lt(r, o), l = Math.max(0, p.indexOf(g)), a = L(
|
|
3070
|
+
() => p.map((u) => ({
|
|
2976
3071
|
label: c[u],
|
|
2977
|
-
summary:
|
|
2978
|
-
status:
|
|
2979
|
-
content: /* @__PURE__ */ s(
|
|
3072
|
+
summary: $s(u, n, t, m),
|
|
3073
|
+
status: Bi(u, n, t),
|
|
3074
|
+
content: /* @__PURE__ */ s(Y, { step: u, active: u === g, children: Te(u, e, { compactService: !0 }) })
|
|
2980
3075
|
})),
|
|
2981
3076
|
[
|
|
2982
|
-
|
|
3077
|
+
p,
|
|
2983
3078
|
n,
|
|
2984
3079
|
c,
|
|
2985
3080
|
t,
|
|
2986
3081
|
e,
|
|
2987
3082
|
g,
|
|
2988
|
-
|
|
3083
|
+
m
|
|
2989
3084
|
]
|
|
2990
3085
|
);
|
|
2991
3086
|
return /* @__PURE__ */ s(
|
|
2992
|
-
|
|
3087
|
+
Xs,
|
|
2993
3088
|
{
|
|
2994
3089
|
activeStep: l,
|
|
2995
|
-
steps:
|
|
3090
|
+
steps: a,
|
|
2996
3091
|
onStepChange: (u) => {
|
|
2997
|
-
const
|
|
2998
|
-
|
|
3092
|
+
const y = p[u];
|
|
3093
|
+
y && i(y);
|
|
2999
3094
|
}
|
|
3000
3095
|
}
|
|
3001
3096
|
);
|
|
3002
3097
|
}
|
|
3003
|
-
function
|
|
3004
|
-
return
|
|
3098
|
+
function Bi(e, t, n) {
|
|
3099
|
+
return $e(e, t) && e < n.currentStep ? "completed" : e <= n.currentStep ? "unlocked" : void 0;
|
|
3005
3100
|
}
|
|
3006
|
-
function
|
|
3007
|
-
return e !== 4 ?
|
|
3101
|
+
function us(e, t) {
|
|
3102
|
+
return e !== 4 ? $e(e, t) : t.operatorIds && t.operatorIds.length > 0 ? !0 : Cs(t) !== void 0;
|
|
3008
3103
|
}
|
|
3009
|
-
function
|
|
3104
|
+
function Wt(e, t) {
|
|
3010
3105
|
const n = e.map((r) => {
|
|
3011
3106
|
var i;
|
|
3012
|
-
return (i = t.find((
|
|
3107
|
+
return (i = t.find((o) => o.id === r)) == null ? void 0 : i.label;
|
|
3013
3108
|
}).filter((r) => r !== void 0);
|
|
3014
3109
|
return n.length > 0 ? n.join(", ") : void 0;
|
|
3015
3110
|
}
|
|
3016
|
-
function
|
|
3111
|
+
function $s(e, t, n, r) {
|
|
3017
3112
|
var i;
|
|
3018
|
-
if (
|
|
3113
|
+
if ($e(e, t))
|
|
3019
3114
|
switch (e) {
|
|
3020
3115
|
case 1:
|
|
3021
3116
|
return t.insuranceType;
|
|
3022
3117
|
case 2:
|
|
3023
|
-
return
|
|
3024
|
-
|
|
3118
|
+
return Wt(
|
|
3119
|
+
Je(t),
|
|
3025
3120
|
n.filtered.specialties
|
|
3026
3121
|
);
|
|
3027
3122
|
case 3:
|
|
3028
|
-
return
|
|
3123
|
+
return Wt(qe(t), n.filtered.services);
|
|
3029
3124
|
case 4: {
|
|
3030
|
-
const c =
|
|
3125
|
+
const c = Zt(t).filter((m) => m !== _e), f = Wt(
|
|
3031
3126
|
c,
|
|
3032
|
-
n.filtered.operators.map((
|
|
3033
|
-
id:
|
|
3034
|
-
label:
|
|
3127
|
+
n.filtered.operators.map((m) => ({
|
|
3128
|
+
id: m.id,
|
|
3129
|
+
label: m.name
|
|
3035
3130
|
}))
|
|
3036
3131
|
);
|
|
3037
3132
|
return f !== void 0 ? f : c.length === 0 ? r : void 0;
|
|
@@ -3044,50 +3139,50 @@ function Rs(e, t, n, r) {
|
|
|
3044
3139
|
return;
|
|
3045
3140
|
}
|
|
3046
3141
|
}
|
|
3047
|
-
function
|
|
3048
|
-
const { cascade: t, value: n, activeStep: r, setActiveStep: i } = e, { t:
|
|
3142
|
+
function Ri(e) {
|
|
3143
|
+
const { cascade: t, value: n, activeStep: r, setActiveStep: i } = e, { t: o } = W("ui"), c = qt(), f = o("booking.operator.all"), m = `${Rt()}-filter`, p = lt(r, e.datePickerStyle), g = t.visibleSteps.filter(
|
|
3049
3144
|
(u) => u === 1 || u === 2 || u === 3 || u === 4
|
|
3050
3145
|
), l = g.some(
|
|
3051
|
-
(u) =>
|
|
3052
|
-
),
|
|
3146
|
+
(u) => !$e(u, n)
|
|
3147
|
+
), a = g.some(
|
|
3053
3148
|
(u) => u === r
|
|
3054
|
-
) ? r : g.find((u) =>
|
|
3149
|
+
) ? r : g.find((u) => !$e(u, n));
|
|
3055
3150
|
return /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
3056
3151
|
g.length > 0 ? /* @__PURE__ */ s(
|
|
3057
3152
|
"div",
|
|
3058
3153
|
{
|
|
3059
3154
|
role: "group",
|
|
3060
|
-
"aria-label":
|
|
3155
|
+
"aria-label": o("booking.filtersLabel"),
|
|
3061
3156
|
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
3062
3157
|
children: g.map((u) => {
|
|
3063
|
-
const
|
|
3158
|
+
const y = $s(
|
|
3064
3159
|
u,
|
|
3065
3160
|
n,
|
|
3066
3161
|
t,
|
|
3067
3162
|
f
|
|
3068
|
-
),
|
|
3163
|
+
), x = u === a, k = $e(u, n);
|
|
3069
3164
|
return /* @__PURE__ */ s(
|
|
3070
|
-
|
|
3165
|
+
et,
|
|
3071
3166
|
{
|
|
3072
|
-
intent:
|
|
3167
|
+
intent: x ? "primary" : "outline",
|
|
3073
3168
|
size: "sm",
|
|
3074
3169
|
endIcon: /* @__PURE__ */ s(
|
|
3075
|
-
|
|
3170
|
+
sn,
|
|
3076
3171
|
{
|
|
3077
3172
|
"aria-hidden": "true",
|
|
3078
|
-
className:
|
|
3173
|
+
className: x ? "ds:rotate-180" : void 0
|
|
3079
3174
|
}
|
|
3080
3175
|
),
|
|
3081
|
-
"aria-expanded":
|
|
3082
|
-
"aria-controls":
|
|
3083
|
-
"aria-current": !
|
|
3176
|
+
"aria-expanded": k ? x : void 0,
|
|
3177
|
+
"aria-controls": k && x ? m : void 0,
|
|
3178
|
+
"aria-current": !k && x ? "step" : void 0,
|
|
3084
3179
|
onClick: () => i(
|
|
3085
|
-
|
|
3180
|
+
k && x ? t.currentStep : u
|
|
3086
3181
|
),
|
|
3087
|
-
children:
|
|
3182
|
+
children: y ? /* @__PURE__ */ v(ae, { children: [
|
|
3088
3183
|
c[u],
|
|
3089
3184
|
": ",
|
|
3090
|
-
|
|
3185
|
+
y
|
|
3091
3186
|
] }) : c[u]
|
|
3092
3187
|
},
|
|
3093
3188
|
`csc-${u}`
|
|
@@ -3095,13 +3190,13 @@ function Mi(e) {
|
|
|
3095
3190
|
})
|
|
3096
3191
|
}
|
|
3097
3192
|
) : null,
|
|
3098
|
-
|
|
3099
|
-
|
|
3193
|
+
a !== void 0 ? /* @__PURE__ */ s(
|
|
3194
|
+
Y,
|
|
3100
3195
|
{
|
|
3101
|
-
step:
|
|
3102
|
-
active:
|
|
3103
|
-
id:
|
|
3104
|
-
children:
|
|
3196
|
+
step: a,
|
|
3197
|
+
active: a === p,
|
|
3198
|
+
id: m,
|
|
3199
|
+
children: Te(a, e, { compactService: !0 })
|
|
3105
3200
|
}
|
|
3106
3201
|
) : null,
|
|
3107
3202
|
!l && t.gates.date ? (
|
|
@@ -3109,32 +3204,32 @@ function Mi(e) {
|
|
|
3109
3204
|
// historic 2-col date|slot split collapses to a single column
|
|
3110
3205
|
// so the picker spans the full width instead of orphaning an
|
|
3111
3206
|
// empty right cell.
|
|
3112
|
-
e.datePickerStyle === "four-day-grid" ? /* @__PURE__ */ s(
|
|
3207
|
+
e.datePickerStyle === "four-day-grid" ? /* @__PURE__ */ s(Y, { step: 5, active: p === 5, children: Te(5, e) }) : /* @__PURE__ */ v("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:md:grid-cols-2", children: [
|
|
3113
3208
|
/* @__PURE__ */ s(
|
|
3114
|
-
|
|
3209
|
+
Y,
|
|
3115
3210
|
{
|
|
3116
3211
|
step: 5,
|
|
3117
|
-
active:
|
|
3212
|
+
active: p === 5,
|
|
3118
3213
|
className: "ds:min-w-0",
|
|
3119
|
-
children:
|
|
3214
|
+
children: Te(5, e)
|
|
3120
3215
|
}
|
|
3121
3216
|
),
|
|
3122
3217
|
n.date ? /* @__PURE__ */ s(
|
|
3123
|
-
|
|
3218
|
+
Y,
|
|
3124
3219
|
{
|
|
3125
3220
|
step: 6,
|
|
3126
|
-
active:
|
|
3221
|
+
active: p === 6,
|
|
3127
3222
|
className: "ds:min-w-0",
|
|
3128
|
-
children:
|
|
3223
|
+
children: Te(6, e)
|
|
3129
3224
|
}
|
|
3130
3225
|
) : /* @__PURE__ */ s("div", { className: "ds:min-w-0" })
|
|
3131
3226
|
] })
|
|
3132
3227
|
) : null,
|
|
3133
|
-
t.gates.details ? /* @__PURE__ */ s(
|
|
3228
|
+
t.gates.details ? /* @__PURE__ */ s(Y, { step: 7, active: p === 7, children: Te(7, e) }) : null
|
|
3134
3229
|
] });
|
|
3135
3230
|
}
|
|
3136
|
-
function
|
|
3137
|
-
const { cascade: t, datePickerStyle: n, activeStep: r } = e, i =
|
|
3231
|
+
function Pi(e) {
|
|
3232
|
+
const { cascade: t, datePickerStyle: n, activeStep: r } = e, i = lt(r, n), o = t.visibleSteps.filter(
|
|
3138
3233
|
(f) => f === 1 || f === 2 || f === 3 || f === 4
|
|
3139
3234
|
);
|
|
3140
3235
|
return /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
@@ -3143,51 +3238,51 @@ function Fi(e) {
|
|
|
3143
3238
|
{
|
|
3144
3239
|
className: n === "four-day-grid" ? "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]" : "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:md:grid-cols-2",
|
|
3145
3240
|
children: [
|
|
3146
|
-
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children:
|
|
3241
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: o.map((f) => /* @__PURE__ */ s(Y, { step: f, active: f === i, children: Te(f, e, { compactService: !0 }) }, `fbf-${f}`)) }),
|
|
3147
3242
|
/* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
3148
|
-
t.gates.date ? /* @__PURE__ */ s(
|
|
3149
|
-
t.gates.slot && e.value.date && n === "month-calendar" ? /* @__PURE__ */ s(
|
|
3243
|
+
t.gates.date ? /* @__PURE__ */ s(Y, { step: 5, active: i === 5, children: Te(5, e) }) : null,
|
|
3244
|
+
t.gates.slot && e.value.date && n === "month-calendar" ? /* @__PURE__ */ s(Y, { step: 6, active: i === 6, children: Te(6, e) }) : null
|
|
3150
3245
|
] })
|
|
3151
3246
|
]
|
|
3152
3247
|
}
|
|
3153
3248
|
),
|
|
3154
|
-
t.gates.details ? /* @__PURE__ */ s(
|
|
3249
|
+
t.gates.details ? /* @__PURE__ */ s(Y, { step: 7, active: i === 7, children: Te(7, e) }) : null
|
|
3155
3250
|
] });
|
|
3156
3251
|
}
|
|
3157
|
-
function
|
|
3158
|
-
const { cascade: t, value: n, activeStep: r, setActiveStep: i, datePickerStyle:
|
|
3159
|
-
() =>
|
|
3160
|
-
[t.visibleSteps,
|
|
3161
|
-
),
|
|
3162
|
-
() =>
|
|
3163
|
-
[
|
|
3164
|
-
), u = g > 0,
|
|
3252
|
+
function Vi(e) {
|
|
3253
|
+
const { cascade: t, value: n, activeStep: r, setActiveStep: i, datePickerStyle: o } = e, { t: c } = W("ui"), f = qt(), m = L(
|
|
3254
|
+
() => ss(t.visibleSteps, o),
|
|
3255
|
+
[t.visibleSteps, o]
|
|
3256
|
+
), p = lt(r, o), g = Math.max(0, m.indexOf(p)), l = m.length, a = L(
|
|
3257
|
+
() => m.map((k) => ({ label: f[k] })),
|
|
3258
|
+
[m, f]
|
|
3259
|
+
), u = g > 0, y = p === 5 && o === "four-day-grid", x = g < l - 1 && $e(p, n) && (!y || $e(6, n));
|
|
3165
3260
|
return /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
3166
|
-
/* @__PURE__ */ s(
|
|
3167
|
-
/* @__PURE__ */ s(
|
|
3261
|
+
/* @__PURE__ */ s(en, { activeStep: g, steps: a }),
|
|
3262
|
+
/* @__PURE__ */ s(Y, { step: p, active: !0, children: Te(p, e, { compactService: !0 }) }),
|
|
3168
3263
|
/* @__PURE__ */ v("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
3169
3264
|
/* @__PURE__ */ s(
|
|
3170
|
-
|
|
3265
|
+
et,
|
|
3171
3266
|
{
|
|
3172
3267
|
intent: "ghost",
|
|
3173
3268
|
size: "md",
|
|
3174
3269
|
disabled: !u,
|
|
3175
3270
|
onClick: () => {
|
|
3176
|
-
const
|
|
3177
|
-
|
|
3271
|
+
const k = m[g - 1];
|
|
3272
|
+
k && i(k);
|
|
3178
3273
|
},
|
|
3179
3274
|
children: c("booking.actions.back")
|
|
3180
3275
|
}
|
|
3181
3276
|
),
|
|
3182
|
-
|
|
3183
|
-
|
|
3277
|
+
p < 7 ? /* @__PURE__ */ s(
|
|
3278
|
+
et,
|
|
3184
3279
|
{
|
|
3185
3280
|
intent: "primary",
|
|
3186
3281
|
size: "md",
|
|
3187
|
-
disabled: !
|
|
3282
|
+
disabled: !x,
|
|
3188
3283
|
onClick: () => {
|
|
3189
|
-
const
|
|
3190
|
-
|
|
3284
|
+
const k = m[g + 1];
|
|
3285
|
+
k && i(k);
|
|
3191
3286
|
},
|
|
3192
3287
|
children: c("booking.actions.next")
|
|
3193
3288
|
}
|
|
@@ -3195,11 +3290,11 @@ function _i(e) {
|
|
|
3195
3290
|
] })
|
|
3196
3291
|
] });
|
|
3197
3292
|
}
|
|
3198
|
-
const
|
|
3199
|
-
function
|
|
3293
|
+
const $i = [], qi = [];
|
|
3294
|
+
function ps() {
|
|
3200
3295
|
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
3201
3296
|
}
|
|
3202
|
-
const
|
|
3297
|
+
const Ki = ms(
|
|
3203
3298
|
({
|
|
3204
3299
|
variant: e = "inline-list",
|
|
3205
3300
|
country: t,
|
|
@@ -3209,483 +3304,483 @@ const Ei = us(
|
|
|
3209
3304
|
useSpecialties: n,
|
|
3210
3305
|
allowOperatorSelection: r = !1,
|
|
3211
3306
|
lockedOperatorId: i,
|
|
3212
|
-
operatorsByService:
|
|
3307
|
+
operatorsByService: o = !1,
|
|
3213
3308
|
autoSelectSingleService: c = !1,
|
|
3214
3309
|
specialties: f,
|
|
3215
|
-
services:
|
|
3216
|
-
operators:
|
|
3310
|
+
services: m,
|
|
3311
|
+
operators: p,
|
|
3217
3312
|
availableDates: g,
|
|
3218
3313
|
availableSlots: l,
|
|
3219
|
-
nextAvailableDate:
|
|
3314
|
+
nextAvailableDate: a,
|
|
3220
3315
|
requireCodiceFiscale: u,
|
|
3221
|
-
requireDateOfBirth:
|
|
3222
|
-
requireInsuranceNumber:
|
|
3223
|
-
billingInDetails:
|
|
3224
|
-
paymentNoticeStyle:
|
|
3225
|
-
showNote:
|
|
3226
|
-
showReturningPatientFlag:
|
|
3227
|
-
privacyPolicyUrl:
|
|
3228
|
-
termsUrl:
|
|
3229
|
-
practiceConsent:
|
|
3316
|
+
requireDateOfBirth: y,
|
|
3317
|
+
requireInsuranceNumber: x,
|
|
3318
|
+
billingInDetails: k = !1,
|
|
3319
|
+
paymentNoticeStyle: E = "highlighted",
|
|
3320
|
+
showNote: N,
|
|
3321
|
+
showReturningPatientFlag: S,
|
|
3322
|
+
privacyPolicyUrl: I,
|
|
3323
|
+
termsUrl: C,
|
|
3324
|
+
practiceConsent: O,
|
|
3230
3325
|
paymentTermsUrl: T,
|
|
3231
3326
|
paymentState: h,
|
|
3232
|
-
renderPayment:
|
|
3327
|
+
renderPayment: w,
|
|
3233
3328
|
renderPaymentCompletion: $,
|
|
3234
3329
|
validateCodiceFiscale: b,
|
|
3235
|
-
validateInsuranceNumber:
|
|
3330
|
+
validateInsuranceNumber: ke,
|
|
3236
3331
|
confirmationChannels: F,
|
|
3237
|
-
defaultConfirmationChannels:
|
|
3238
|
-
value:
|
|
3239
|
-
onChange:
|
|
3240
|
-
onSubmit:
|
|
3332
|
+
defaultConfirmationChannels: G,
|
|
3333
|
+
value: M,
|
|
3334
|
+
onChange: Se,
|
|
3335
|
+
onSubmit: ut,
|
|
3241
3336
|
onStepChange: fe,
|
|
3242
|
-
onDateSelect:
|
|
3243
|
-
onWindowChange:
|
|
3244
|
-
datePickerStyle:
|
|
3245
|
-
specialtyPickerStyle:
|
|
3246
|
-
servicePickerStyle:
|
|
3247
|
-
showServiceDuration:
|
|
3248
|
-
operatorPickerStyle:
|
|
3249
|
-
loadingDates:
|
|
3250
|
-
loadingSlots:
|
|
3251
|
-
submitting:
|
|
3252
|
-
submitError:
|
|
3253
|
-
mode:
|
|
3254
|
-
showModifyOnSuccess:
|
|
3255
|
-
surface:
|
|
3256
|
-
emptyServicesSlot:
|
|
3257
|
-
onboardingIncompleteSlot:
|
|
3258
|
-
"aria-label":
|
|
3259
|
-
id:
|
|
3260
|
-
className:
|
|
3261
|
-
onFocus:
|
|
3262
|
-
onBlur:
|
|
3263
|
-
...
|
|
3264
|
-
},
|
|
3265
|
-
var
|
|
3266
|
-
const { t:
|
|
3267
|
-
|
|
3268
|
-
const
|
|
3337
|
+
onDateSelect: We,
|
|
3338
|
+
onWindowChange: Ke,
|
|
3339
|
+
datePickerStyle: Z = "month-calendar",
|
|
3340
|
+
specialtyPickerStyle: ze,
|
|
3341
|
+
servicePickerStyle: ce,
|
|
3342
|
+
showServiceDuration: X = !0,
|
|
3343
|
+
operatorPickerStyle: ge,
|
|
3344
|
+
loadingDates: xe,
|
|
3345
|
+
loadingSlots: De,
|
|
3346
|
+
submitting: ee,
|
|
3347
|
+
submitError: Le,
|
|
3348
|
+
mode: de = "live",
|
|
3349
|
+
showModifyOnSuccess: Be = !0,
|
|
3350
|
+
surface: Ie = "flat",
|
|
3351
|
+
emptyServicesSlot: Q,
|
|
3352
|
+
onboardingIncompleteSlot: je,
|
|
3353
|
+
"aria-label": q,
|
|
3354
|
+
id: le,
|
|
3355
|
+
className: Kt,
|
|
3356
|
+
onFocus: tt,
|
|
3357
|
+
onBlur: st,
|
|
3358
|
+
...Nt
|
|
3359
|
+
}, nt) => {
|
|
3360
|
+
var At, kt, St;
|
|
3361
|
+
const { t: z, i18n: zt } = W("ui"), ue = e ?? "inline-list", Ye = zt.language ?? "en", Ne = f ?? $i, Ee = p ?? qi;
|
|
3362
|
+
K(() => {
|
|
3363
|
+
const A = Jn(M, {
|
|
3269
3364
|
useSpecialties: n,
|
|
3270
3365
|
lockedOperatorId: i,
|
|
3271
3366
|
autoSelectSingleService: c,
|
|
3272
3367
|
specialties: Ne,
|
|
3273
|
-
services:
|
|
3368
|
+
services: m
|
|
3274
3369
|
});
|
|
3275
|
-
(
|
|
3370
|
+
(A.specialtyId !== M.specialtyId || A.operatorId !== M.operatorId || A.serviceId !== M.serviceId) && Se(A);
|
|
3276
3371
|
}, [
|
|
3277
3372
|
i,
|
|
3278
3373
|
n,
|
|
3279
3374
|
c,
|
|
3280
3375
|
Ne,
|
|
3281
|
-
|
|
3376
|
+
m
|
|
3282
3377
|
]);
|
|
3283
|
-
const
|
|
3284
|
-
() =>
|
|
3378
|
+
const P = L(
|
|
3379
|
+
() => Gn({
|
|
3285
3380
|
country: t,
|
|
3286
3381
|
useSpecialties: n,
|
|
3287
3382
|
allowOperatorSelection: r,
|
|
3288
3383
|
lockedOperatorId: i,
|
|
3289
|
-
operatorsByService:
|
|
3384
|
+
operatorsByService: o,
|
|
3290
3385
|
specialties: Ne,
|
|
3291
|
-
services:
|
|
3292
|
-
operators:
|
|
3386
|
+
services: m,
|
|
3387
|
+
operators: Ee,
|
|
3293
3388
|
availableSlots: l,
|
|
3294
|
-
value:
|
|
3389
|
+
value: M
|
|
3295
3390
|
}),
|
|
3296
3391
|
[
|
|
3297
3392
|
t,
|
|
3298
3393
|
n,
|
|
3299
3394
|
r,
|
|
3300
3395
|
i,
|
|
3301
|
-
|
|
3396
|
+
o,
|
|
3302
3397
|
c,
|
|
3303
3398
|
Ne,
|
|
3304
|
-
|
|
3305
|
-
|
|
3399
|
+
m,
|
|
3400
|
+
Ee,
|
|
3306
3401
|
g,
|
|
3307
3402
|
l,
|
|
3308
|
-
|
|
3403
|
+
M
|
|
3309
3404
|
]
|
|
3310
|
-
),
|
|
3405
|
+
), we = L(
|
|
3311
3406
|
() => [
|
|
3312
|
-
JSON.stringify(
|
|
3313
|
-
JSON.stringify(
|
|
3314
|
-
JSON.stringify(
|
|
3315
|
-
JSON.stringify(
|
|
3316
|
-
JSON.stringify(
|
|
3317
|
-
JSON.stringify(
|
|
3407
|
+
JSON.stringify(M.insuranceType),
|
|
3408
|
+
JSON.stringify(Je(M)),
|
|
3409
|
+
JSON.stringify(qe(M)),
|
|
3410
|
+
JSON.stringify(Zt(M)),
|
|
3411
|
+
JSON.stringify(M.date),
|
|
3412
|
+
JSON.stringify(M.slotKey)
|
|
3318
3413
|
],
|
|
3319
|
-
[
|
|
3320
|
-
),
|
|
3321
|
-
(
|
|
3322
|
-
if (
|
|
3323
|
-
return Math.min(4,
|
|
3324
|
-
if (!
|
|
3325
|
-
const
|
|
3326
|
-
(
|
|
3414
|
+
[M]
|
|
3415
|
+
), he = ue === "progress", wt = ye(
|
|
3416
|
+
(A) => {
|
|
3417
|
+
if (A === 4 && P.visibleSteps.includes(4) && Zt(M).length === 0)
|
|
3418
|
+
return Math.min(4, P.currentStep);
|
|
3419
|
+
if (!he) return P.currentStep;
|
|
3420
|
+
const B = P.visibleSteps.find(
|
|
3421
|
+
(R) => R > A && !us(R, M)
|
|
3327
3422
|
);
|
|
3328
|
-
return
|
|
3423
|
+
return B === void 0 ? P.currentStep : Math.min(B, P.currentStep);
|
|
3329
3424
|
},
|
|
3330
|
-
[
|
|
3331
|
-
), [
|
|
3332
|
-
|
|
3333
|
-
),
|
|
3334
|
-
|
|
3335
|
-
const
|
|
3336
|
-
|
|
3337
|
-
const
|
|
3338
|
-
(
|
|
3425
|
+
[he, P.visibleSteps, P.currentStep, M]
|
|
3426
|
+
), [pe, ve] = se(
|
|
3427
|
+
P.currentStep
|
|
3428
|
+
), Ze = _(we), pt = _(P.visibleSteps);
|
|
3429
|
+
K(() => {
|
|
3430
|
+
const A = Ze.current, B = pt.current;
|
|
3431
|
+
Ze.current = we, pt.current = P.visibleSteps;
|
|
3432
|
+
const R = we.findIndex(
|
|
3433
|
+
(ne, d) => ne !== A[d]
|
|
3339
3434
|
);
|
|
3340
|
-
if (
|
|
3341
|
-
|
|
3435
|
+
if (R !== -1) {
|
|
3436
|
+
ve(wt(R + 1));
|
|
3342
3437
|
return;
|
|
3343
3438
|
}
|
|
3344
|
-
const
|
|
3345
|
-
(
|
|
3439
|
+
const J = he ? P.visibleSteps.find(
|
|
3440
|
+
(ne) => ne < pe && !B.includes(ne) && !us(ne, M)
|
|
3346
3441
|
) : void 0;
|
|
3347
|
-
if (
|
|
3348
|
-
|
|
3442
|
+
if (J !== void 0) {
|
|
3443
|
+
ve(J);
|
|
3349
3444
|
return;
|
|
3350
3445
|
}
|
|
3351
|
-
|
|
3446
|
+
P.visibleSteps.includes(pe) || ve(P.currentStep);
|
|
3352
3447
|
}, [
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3448
|
+
we,
|
|
3449
|
+
wt,
|
|
3450
|
+
he,
|
|
3451
|
+
P.currentStep,
|
|
3452
|
+
P.visibleSteps,
|
|
3453
|
+
pe,
|
|
3454
|
+
M
|
|
3360
3455
|
]);
|
|
3361
|
-
const
|
|
3362
|
-
() =>
|
|
3363
|
-
[
|
|
3364
|
-
),
|
|
3365
|
-
|
|
3366
|
-
const
|
|
3367
|
-
if (
|
|
3368
|
-
|
|
3456
|
+
const re = _(null), Re = L(
|
|
3457
|
+
() => ss(P.visibleSteps, Z),
|
|
3458
|
+
[P.visibleSteps, Z]
|
|
3459
|
+
), it = qt(), [Qe, jt] = se(""), Fe = _(null), Ce = _(null);
|
|
3460
|
+
K(() => {
|
|
3461
|
+
const A = lt(pe, Z);
|
|
3462
|
+
if (Ce.current === null) {
|
|
3463
|
+
Ce.current = A;
|
|
3369
3464
|
return;
|
|
3370
3465
|
}
|
|
3371
|
-
if (
|
|
3372
|
-
|
|
3373
|
-
const
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
current:
|
|
3377
|
-
total:
|
|
3378
|
-
label:
|
|
3466
|
+
if (Ce.current === A) return;
|
|
3467
|
+
Ce.current = A;
|
|
3468
|
+
const B = Re.indexOf(A);
|
|
3469
|
+
jt(
|
|
3470
|
+
B === -1 ? "" : z("booking.stepAnnouncement", {
|
|
3471
|
+
current: B + 1,
|
|
3472
|
+
total: Re.length,
|
|
3473
|
+
label: it[A]
|
|
3379
3474
|
})
|
|
3380
3475
|
);
|
|
3381
|
-
const
|
|
3382
|
-
if (!
|
|
3383
|
-
const
|
|
3384
|
-
if (!
|
|
3385
|
-
const
|
|
3386
|
-
if (!(
|
|
3387
|
-
const
|
|
3388
|
-
if (
|
|
3476
|
+
const R = Fe.current;
|
|
3477
|
+
if (!R || R.isConnected) return;
|
|
3478
|
+
const J = re.current;
|
|
3479
|
+
if (!J) return;
|
|
3480
|
+
const ne = document.activeElement;
|
|
3481
|
+
if (!(ne === null || ne === document.body || !J.contains(ne))) return;
|
|
3482
|
+
const D = J.querySelector(Mi) ?? J;
|
|
3483
|
+
if (D.focus({ preventScroll: !0 }), typeof D.scrollIntoView == "function")
|
|
3389
3484
|
try {
|
|
3390
|
-
|
|
3391
|
-
behavior:
|
|
3485
|
+
D.scrollIntoView({
|
|
3486
|
+
behavior: ps() ? "auto" : "smooth",
|
|
3392
3487
|
block: "nearest"
|
|
3393
3488
|
});
|
|
3394
3489
|
} catch {
|
|
3395
|
-
|
|
3490
|
+
D.scrollIntoView();
|
|
3396
3491
|
}
|
|
3397
|
-
}, [
|
|
3398
|
-
const
|
|
3399
|
-
services:
|
|
3400
|
-
value:
|
|
3492
|
+
}, [pe, Z, Re, it, z]);
|
|
3493
|
+
const H = vi({
|
|
3494
|
+
services: m,
|
|
3495
|
+
value: M,
|
|
3401
3496
|
availableSlots: l,
|
|
3402
|
-
onSubmit:
|
|
3403
|
-
onChange:
|
|
3497
|
+
onSubmit: ut,
|
|
3498
|
+
onChange: Se,
|
|
3404
3499
|
paymentState: h,
|
|
3405
|
-
submitting:
|
|
3500
|
+
submitting: ee,
|
|
3406
3501
|
paymentTermsUrl: T,
|
|
3407
|
-
renderPayment:
|
|
3408
|
-
}), j =
|
|
3409
|
-
|
|
3410
|
-
const
|
|
3411
|
-
|
|
3412
|
-
var
|
|
3502
|
+
renderPayment: w
|
|
3503
|
+
}), j = H.status, mt = H.submit, rt = _(H.reset);
|
|
3504
|
+
rt.current = H.reset;
|
|
3505
|
+
const ft = Rt(), gt = _(null), ht = _(null), Ue = ((At = H.state) == null ? void 0 : At.status) === "failed", ot = H.state && "phase" in H.state && H.state.phase === "completion";
|
|
3506
|
+
K(() => {
|
|
3507
|
+
var A, B;
|
|
3413
3508
|
if (j === "payment") {
|
|
3414
|
-
const
|
|
3415
|
-
(!
|
|
3509
|
+
const R = document.activeElement;
|
|
3510
|
+
(!ot || !R || R === document.body || !((A = re.current) != null && A.contains(R))) && ((B = gt.current) == null || B.focus());
|
|
3416
3511
|
}
|
|
3417
|
-
}, [j,
|
|
3418
|
-
var
|
|
3419
|
-
j === "payment" &&
|
|
3420
|
-
}, [j,
|
|
3421
|
-
const
|
|
3422
|
-
|
|
3423
|
-
if (
|
|
3512
|
+
}, [j, ot]), K(() => {
|
|
3513
|
+
var A;
|
|
3514
|
+
j === "payment" && Ue && ((A = ht.current) == null || A.focus());
|
|
3515
|
+
}, [j, Ue]), Ks(nt, () => re.current, []);
|
|
3516
|
+
const Pe = j === "success" ? 8 : j === "payment" ? 7 : P.currentStep, Ct = _(null);
|
|
3517
|
+
K(() => {
|
|
3518
|
+
if (Pe !== Ct.current && (Ct.current = Pe, fe == null || fe(Pe), Pe === 8 && re.current))
|
|
3424
3519
|
try {
|
|
3425
|
-
|
|
3426
|
-
behavior:
|
|
3520
|
+
re.current.scrollIntoView({
|
|
3521
|
+
behavior: ps() ? "auto" : "smooth",
|
|
3427
3522
|
block: "start"
|
|
3428
3523
|
});
|
|
3429
3524
|
} catch {
|
|
3430
|
-
|
|
3525
|
+
re.current.scrollIntoView();
|
|
3431
3526
|
}
|
|
3432
|
-
}, [
|
|
3433
|
-
const
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
}, [
|
|
3437
|
-
const
|
|
3527
|
+
}, [Pe, fe]);
|
|
3528
|
+
const Ve = _({ activeStep: pe, cascade: P, submitState: j });
|
|
3529
|
+
K(() => {
|
|
3530
|
+
Ve.current = { activeStep: pe, cascade: P, submitState: j };
|
|
3531
|
+
}, [pe, P, j]);
|
|
3532
|
+
const vt = L(
|
|
3438
3533
|
() => ({
|
|
3439
|
-
getVariant: () =>
|
|
3534
|
+
getVariant: () => ue,
|
|
3440
3535
|
getCurrentStep: () => {
|
|
3441
|
-
const
|
|
3442
|
-
return
|
|
3536
|
+
const A = Ve.current;
|
|
3537
|
+
return A.submitState === "success" ? 8 : A.submitState === "payment" ? 7 : A.activeStep;
|
|
3443
3538
|
},
|
|
3444
3539
|
reset: () => {
|
|
3445
|
-
|
|
3540
|
+
Ve.current.submitState !== "payment" && (Se({}), rt.current(), ve(1));
|
|
3446
3541
|
},
|
|
3447
|
-
goToStep: (
|
|
3448
|
-
const
|
|
3449
|
-
|
|
3542
|
+
goToStep: (A) => {
|
|
3543
|
+
const B = Ve.current, R = B.cascade.visibleSteps.includes(A), J = B.cascade.currentStep, ne = B.submitState === "payment" ? 7 : !R || A > J ? J : A;
|
|
3544
|
+
Ve.current = { ...B, activeStep: ne }, ve(ne);
|
|
3450
3545
|
}
|
|
3451
3546
|
}),
|
|
3452
|
-
[
|
|
3547
|
+
[ue, Se]
|
|
3453
3548
|
);
|
|
3454
|
-
|
|
3455
|
-
const
|
|
3456
|
-
|
|
3549
|
+
js($n, vt, le);
|
|
3550
|
+
const Ut = q ?? z("booking.regionLabel"), Ae = H.snapshot, Ht = j === "success" && Ae ? /* @__PURE__ */ s(
|
|
3551
|
+
Fi,
|
|
3457
3552
|
{
|
|
3458
|
-
payment:
|
|
3553
|
+
payment: Ae.payment,
|
|
3459
3554
|
snapshot: {
|
|
3460
|
-
...
|
|
3461
|
-
slot:
|
|
3462
|
-
details:
|
|
3463
|
-
serviceId: ((
|
|
3555
|
+
...Ae.value,
|
|
3556
|
+
slot: Ae.slot,
|
|
3557
|
+
details: Ae.details,
|
|
3558
|
+
serviceId: ((kt = Ae.payment) == null ? void 0 : kt.serviceId) ?? Ae.slot.serviceId ?? Ae.value.serviceId
|
|
3464
3559
|
},
|
|
3465
|
-
operators:
|
|
3560
|
+
operators: Ee,
|
|
3466
3561
|
specialties: Ne,
|
|
3467
|
-
services:
|
|
3468
|
-
locale:
|
|
3469
|
-
mode:
|
|
3470
|
-
showModify:
|
|
3471
|
-
onReset: () =>
|
|
3562
|
+
services: m,
|
|
3563
|
+
locale: Ye,
|
|
3564
|
+
mode: de,
|
|
3565
|
+
showModify: Be && !Ae.payment,
|
|
3566
|
+
onReset: () => vt.reset(),
|
|
3472
3567
|
focusWasLost: () => {
|
|
3473
|
-
const
|
|
3474
|
-
return !!(
|
|
3568
|
+
const A = Fe.current, B = document.activeElement;
|
|
3569
|
+
return !!(A && !A.isConnected) && (!B || B === document.body);
|
|
3475
3570
|
},
|
|
3476
3571
|
onModify: () => {
|
|
3477
|
-
|
|
3572
|
+
rt.current(), ve(7);
|
|
3478
3573
|
}
|
|
3479
3574
|
}
|
|
3480
|
-
) : null,
|
|
3481
|
-
session:
|
|
3482
|
-
payment:
|
|
3483
|
-
state:
|
|
3484
|
-
billing: (
|
|
3485
|
-
} : void 0,
|
|
3575
|
+
) : null, bt = H.activeSession, Me = H.state, me = bt && Me ? {
|
|
3576
|
+
session: bt,
|
|
3577
|
+
payment: bt.payment,
|
|
3578
|
+
state: Me,
|
|
3579
|
+
billing: (St = H.snapshot) == null ? void 0 : St.details.billing
|
|
3580
|
+
} : void 0, He = Me && "phase" in Me && Me.phase === "completion", te = j === "payment" && me ? /* @__PURE__ */ v(
|
|
3486
3581
|
"section",
|
|
3487
3582
|
{
|
|
3488
|
-
"aria-labelledby":
|
|
3583
|
+
"aria-labelledby": ft,
|
|
3489
3584
|
"data-component": "booking-payment",
|
|
3490
|
-
"data-payment-status":
|
|
3585
|
+
"data-payment-status": me.state.status,
|
|
3491
3586
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
3492
3587
|
children: [
|
|
3493
3588
|
/* @__PURE__ */ s(
|
|
3494
3589
|
"h3",
|
|
3495
3590
|
{
|
|
3496
|
-
ref:
|
|
3497
|
-
id:
|
|
3591
|
+
ref: gt,
|
|
3592
|
+
id: ft,
|
|
3498
3593
|
tabIndex: -1,
|
|
3499
3594
|
className: "type-title-card ds:m-0",
|
|
3500
|
-
children:
|
|
3501
|
-
|
|
3595
|
+
children: z(
|
|
3596
|
+
He ? "booking.payment.confirming" : "booking.payment.heading"
|
|
3502
3597
|
)
|
|
3503
3598
|
}
|
|
3504
3599
|
),
|
|
3505
|
-
|
|
3506
|
-
amount:
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3600
|
+
He ? null : /* @__PURE__ */ s("p", { className: "type-body ds:m-0", children: z("booking.payment.noticeBody", {
|
|
3601
|
+
amount: Pt(
|
|
3602
|
+
me.payment.amountCents,
|
|
3603
|
+
me.payment.currencyCode,
|
|
3604
|
+
Ye
|
|
3510
3605
|
)
|
|
3511
3606
|
}) }),
|
|
3512
3607
|
/* @__PURE__ */ s(
|
|
3513
3608
|
"p",
|
|
3514
3609
|
{
|
|
3515
3610
|
role: "status",
|
|
3516
|
-
className:
|
|
3517
|
-
children:
|
|
3518
|
-
/* @__PURE__ */ s(
|
|
3519
|
-
/* @__PURE__ */ s("span", { children:
|
|
3520
|
-
|
|
3611
|
+
className: me.state.status === "processing" ? "type-body ds:m-0 ds:flex ds:items-center ds:gap-[var(--spacing-sm)]" : "ds:sr-only",
|
|
3612
|
+
children: me.state.status === "processing" ? /* @__PURE__ */ v(ae, { children: [
|
|
3613
|
+
/* @__PURE__ */ s(fs, { variant: "pulse", size: "lg", "aria-hidden": "true" }),
|
|
3614
|
+
/* @__PURE__ */ s("span", { children: z(
|
|
3615
|
+
He ? "booking.payment.confirming" : "booking.payment.processing"
|
|
3521
3616
|
) })
|
|
3522
3617
|
] }) : null
|
|
3523
3618
|
}
|
|
3524
3619
|
),
|
|
3525
|
-
|
|
3526
|
-
|
|
3620
|
+
me.state.status === "failed" ? /* @__PURE__ */ s(
|
|
3621
|
+
ie,
|
|
3527
3622
|
{
|
|
3528
|
-
ref:
|
|
3623
|
+
ref: ht,
|
|
3529
3624
|
variant: "error",
|
|
3530
3625
|
tabIndex: -1,
|
|
3531
|
-
className:
|
|
3532
|
-
children: /* @__PURE__ */ s(
|
|
3533
|
-
|
|
3626
|
+
className: Bt,
|
|
3627
|
+
children: /* @__PURE__ */ s(ie.Description, { children: me.state.error ?? z(
|
|
3628
|
+
He ? "booking.payment.completionFailed" : "booking.payment.failed"
|
|
3534
3629
|
) })
|
|
3535
3630
|
}
|
|
3536
3631
|
) : null,
|
|
3537
|
-
|
|
3632
|
+
He ? $ == null ? void 0 : $(me) : w == null ? void 0 : w(me)
|
|
3538
3633
|
]
|
|
3539
3634
|
}
|
|
3540
|
-
) : null,
|
|
3541
|
-
const
|
|
3542
|
-
var
|
|
3635
|
+
) : null, yt = L(() => {
|
|
3636
|
+
const A = new Set(qe(M)), B = m.filter((R) => A.has(R.id)).map((R) => {
|
|
3637
|
+
var J;
|
|
3543
3638
|
return {
|
|
3544
|
-
label:
|
|
3545
|
-
text: ((
|
|
3639
|
+
label: R.label,
|
|
3640
|
+
text: ((J = R.criticalInformationToAccept) == null ? void 0 : J.trim()) ?? ""
|
|
3546
3641
|
};
|
|
3547
|
-
}).filter((
|
|
3548
|
-
if (
|
|
3549
|
-
return
|
|
3642
|
+
}).filter((R) => R.text.length > 0);
|
|
3643
|
+
if (B.length !== 0)
|
|
3644
|
+
return B.length === 1 ? B[0].text : B.map((R) => `${R.label}: ${R.text}`).join(`
|
|
3550
3645
|
|
|
3551
3646
|
`);
|
|
3552
|
-
}, [
|
|
3647
|
+
}, [m, M]), oe = L(() => {
|
|
3553
3648
|
if (j === "success" || j === "payment") return null;
|
|
3554
|
-
const
|
|
3555
|
-
cascade:
|
|
3649
|
+
const A = ue === "accordion" ? Li : ue === "calendar" ? Ri : ue === "flexible" ? Pi : ue === "progress" ? Vi : _i, B = {
|
|
3650
|
+
cascade: P,
|
|
3556
3651
|
inputs: {
|
|
3557
3652
|
specialties: Ne,
|
|
3558
|
-
services:
|
|
3559
|
-
operators:
|
|
3653
|
+
services: m,
|
|
3654
|
+
operators: Ee,
|
|
3560
3655
|
availableDates: g,
|
|
3561
3656
|
availableSlots: l,
|
|
3562
|
-
nextAvailableDate:
|
|
3657
|
+
nextAvailableDate: a
|
|
3563
3658
|
},
|
|
3564
|
-
value:
|
|
3565
|
-
onChange:
|
|
3566
|
-
onSubmit:
|
|
3659
|
+
value: M,
|
|
3660
|
+
onChange: Se,
|
|
3661
|
+
onSubmit: mt,
|
|
3567
3662
|
policy: { country: t, lockedOperatorId: i },
|
|
3568
3663
|
detailsProps: {
|
|
3569
3664
|
requireCodiceFiscale: u,
|
|
3570
|
-
requireDateOfBirth:
|
|
3571
|
-
requireInsuranceNumber:
|
|
3572
|
-
insuranceType:
|
|
3573
|
-
showNote:
|
|
3574
|
-
showReturningPatientFlag:
|
|
3575
|
-
privacyPolicyUrl:
|
|
3576
|
-
termsUrl:
|
|
3577
|
-
practiceConsent:
|
|
3578
|
-
criticalInformationToAccept:
|
|
3579
|
-
payment:
|
|
3665
|
+
requireDateOfBirth: y,
|
|
3666
|
+
requireInsuranceNumber: x,
|
|
3667
|
+
insuranceType: M.insuranceType,
|
|
3668
|
+
showNote: N,
|
|
3669
|
+
showReturningPatientFlag: S,
|
|
3670
|
+
privacyPolicyUrl: I,
|
|
3671
|
+
termsUrl: C,
|
|
3672
|
+
practiceConsent: O,
|
|
3673
|
+
criticalInformationToAccept: yt,
|
|
3674
|
+
payment: H.payment,
|
|
3580
3675
|
paymentTermsUrl: T,
|
|
3581
|
-
paymentBlocked:
|
|
3582
|
-
billingInDetails:
|
|
3583
|
-
paymentNoticeStyle:
|
|
3676
|
+
paymentBlocked: H.blocked,
|
|
3677
|
+
billingInDetails: k,
|
|
3678
|
+
paymentNoticeStyle: E,
|
|
3584
3679
|
validateCodiceFiscale: b,
|
|
3585
|
-
validateInsuranceNumber:
|
|
3680
|
+
validateInsuranceNumber: ke,
|
|
3586
3681
|
confirmationChannels: F,
|
|
3587
|
-
defaultConfirmationChannels:
|
|
3588
|
-
submitError:
|
|
3682
|
+
defaultConfirmationChannels: G,
|
|
3683
|
+
submitError: Le ?? (j === "error" ? z("booking.payment.submitFailed") : void 0)
|
|
3589
3684
|
},
|
|
3590
|
-
emptyServicesSlot:
|
|
3591
|
-
onboardingIncompleteSlot:
|
|
3592
|
-
loadingDates:
|
|
3593
|
-
loadingSlots:
|
|
3594
|
-
onDateSelect:
|
|
3595
|
-
onWindowChange:
|
|
3596
|
-
datePickerStyle:
|
|
3597
|
-
specialtyPickerStyle:
|
|
3598
|
-
servicePickerStyle:
|
|
3599
|
-
showServiceDuration:
|
|
3600
|
-
operatorPickerStyle:
|
|
3601
|
-
submitting:
|
|
3602
|
-
locale:
|
|
3603
|
-
activeStep:
|
|
3604
|
-
setActiveStep:
|
|
3605
|
-
agentIdBase:
|
|
3685
|
+
emptyServicesSlot: Q,
|
|
3686
|
+
onboardingIncompleteSlot: je,
|
|
3687
|
+
loadingDates: xe,
|
|
3688
|
+
loadingSlots: De,
|
|
3689
|
+
onDateSelect: We,
|
|
3690
|
+
onWindowChange: Ke,
|
|
3691
|
+
datePickerStyle: Z,
|
|
3692
|
+
specialtyPickerStyle: ze,
|
|
3693
|
+
servicePickerStyle: ce,
|
|
3694
|
+
showServiceDuration: X,
|
|
3695
|
+
operatorPickerStyle: ge,
|
|
3696
|
+
submitting: ee || j === "submitting",
|
|
3697
|
+
locale: Ye,
|
|
3698
|
+
activeStep: pe,
|
|
3699
|
+
setActiveStep: ve,
|
|
3700
|
+
agentIdBase: le
|
|
3606
3701
|
};
|
|
3607
|
-
return /* @__PURE__ */ s(
|
|
3702
|
+
return /* @__PURE__ */ s(A, { ...B });
|
|
3608
3703
|
}, [
|
|
3609
3704
|
j,
|
|
3610
|
-
|
|
3611
|
-
|
|
3705
|
+
H.payment,
|
|
3706
|
+
H.blocked,
|
|
3612
3707
|
T,
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3708
|
+
z,
|
|
3709
|
+
ue,
|
|
3710
|
+
P,
|
|
3616
3711
|
Ne,
|
|
3617
|
-
|
|
3618
|
-
|
|
3712
|
+
m,
|
|
3713
|
+
Ee,
|
|
3619
3714
|
g,
|
|
3620
3715
|
l,
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3716
|
+
a,
|
|
3717
|
+
M,
|
|
3718
|
+
Se,
|
|
3719
|
+
mt,
|
|
3625
3720
|
t,
|
|
3626
3721
|
i,
|
|
3627
3722
|
u,
|
|
3723
|
+
y,
|
|
3724
|
+
x,
|
|
3628
3725
|
k,
|
|
3629
|
-
|
|
3726
|
+
E,
|
|
3727
|
+
Le,
|
|
3630
3728
|
N,
|
|
3631
|
-
M,
|
|
3632
|
-
Ae,
|
|
3633
|
-
w,
|
|
3634
|
-
x,
|
|
3635
3729
|
S,
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3730
|
+
I,
|
|
3731
|
+
C,
|
|
3732
|
+
O,
|
|
3733
|
+
yt,
|
|
3639
3734
|
b,
|
|
3640
|
-
|
|
3735
|
+
ke,
|
|
3641
3736
|
F,
|
|
3642
|
-
|
|
3643
|
-
|
|
3737
|
+
G,
|
|
3738
|
+
Q,
|
|
3739
|
+
je,
|
|
3644
3740
|
xe,
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
ge,
|
|
3652
|
-
J,
|
|
3653
|
-
ae,
|
|
3654
|
-
W,
|
|
3655
|
-
Te,
|
|
3741
|
+
De,
|
|
3742
|
+
We,
|
|
3743
|
+
Ke,
|
|
3744
|
+
Z,
|
|
3745
|
+
ze,
|
|
3746
|
+
ce,
|
|
3656
3747
|
X,
|
|
3657
|
-
|
|
3748
|
+
ge,
|
|
3749
|
+
ee,
|
|
3750
|
+
Ye,
|
|
3751
|
+
pe,
|
|
3752
|
+
le
|
|
3658
3753
|
]);
|
|
3659
3754
|
return /* @__PURE__ */ v(
|
|
3660
3755
|
"div",
|
|
3661
3756
|
{
|
|
3662
|
-
ref:
|
|
3757
|
+
ref: re,
|
|
3663
3758
|
role: "region",
|
|
3664
|
-
"aria-label":
|
|
3665
|
-
id:
|
|
3759
|
+
"aria-label": Ut,
|
|
3760
|
+
id: le,
|
|
3666
3761
|
"data-component": "booking",
|
|
3667
|
-
"data-component-id":
|
|
3668
|
-
"data-variant":
|
|
3669
|
-
className:
|
|
3670
|
-
variant:
|
|
3671
|
-
surface:
|
|
3672
|
-
className:
|
|
3762
|
+
"data-component-id": le,
|
|
3763
|
+
"data-variant": ue,
|
|
3764
|
+
className: bi({
|
|
3765
|
+
variant: ue,
|
|
3766
|
+
surface: Ie,
|
|
3767
|
+
className: Kt
|
|
3673
3768
|
}),
|
|
3674
3769
|
tabIndex: -1,
|
|
3675
|
-
onFocus: (
|
|
3676
|
-
|
|
3770
|
+
onFocus: (A) => {
|
|
3771
|
+
Fe.current = A.target, tt == null || tt(A);
|
|
3677
3772
|
},
|
|
3678
|
-
onBlur: (
|
|
3679
|
-
const
|
|
3773
|
+
onBlur: (A) => {
|
|
3774
|
+
const B = A.target;
|
|
3680
3775
|
window.setTimeout(() => {
|
|
3681
|
-
var
|
|
3682
|
-
const
|
|
3683
|
-
|
|
3684
|
-
}),
|
|
3776
|
+
var J;
|
|
3777
|
+
const R = document.activeElement;
|
|
3778
|
+
Fe.current === B && B.isConnected && !(R && ((J = re.current) != null && J.contains(R))) && (Fe.current = null);
|
|
3779
|
+
}), st == null || st(A);
|
|
3685
3780
|
},
|
|
3686
|
-
...
|
|
3781
|
+
...Nt,
|
|
3687
3782
|
children: [
|
|
3688
|
-
/* @__PURE__ */ s("div", { role: "status", className: "ds:sr-only", children:
|
|
3783
|
+
/* @__PURE__ */ s("div", { role: "status", className: "ds:sr-only", children: Qe }),
|
|
3689
3784
|
/* @__PURE__ */ v(
|
|
3690
3785
|
"div",
|
|
3691
3786
|
{
|
|
@@ -3698,23 +3793,23 @@ const Ei = us(
|
|
|
3698
3793
|
"ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]"
|
|
3699
3794
|
].join(" "),
|
|
3700
3795
|
children: [
|
|
3701
|
-
/* @__PURE__ */ s("h2", { className: "type-title-card ds:text-[var(--foreground)] ds:m-0", children:
|
|
3702
|
-
/* @__PURE__ */ s("p", { className: "type-body-sm ds:text-[var(--foreground)] ds:m-0", children:
|
|
3796
|
+
/* @__PURE__ */ s("h2", { className: "type-title-card ds:text-[var(--foreground)] ds:m-0", children: z("booking.regionLabel") }),
|
|
3797
|
+
/* @__PURE__ */ s("p", { className: "type-body-sm ds:text-[var(--foreground)] ds:m-0", children: z("booking.headingSubtitle") })
|
|
3703
3798
|
]
|
|
3704
3799
|
}
|
|
3705
3800
|
),
|
|
3706
|
-
|
|
3707
|
-
|
|
3801
|
+
H.cancelled ? /* @__PURE__ */ s(ie, { variant: "info", children: /* @__PURE__ */ s(ie.Description, { children: z("booking.payment.cancelled") }) }) : null,
|
|
3802
|
+
Ht ?? te ?? oe
|
|
3708
3803
|
]
|
|
3709
3804
|
}
|
|
3710
3805
|
);
|
|
3711
3806
|
}
|
|
3712
3807
|
);
|
|
3713
|
-
|
|
3808
|
+
Ki.displayName = "Booking";
|
|
3714
3809
|
export {
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3810
|
+
Ki as B,
|
|
3811
|
+
Yt as C,
|
|
3812
|
+
_e as O,
|
|
3813
|
+
$n as b
|
|
3719
3814
|
};
|
|
3720
|
-
//# sourceMappingURL=booking-
|
|
3815
|
+
//# sourceMappingURL=booking-WyNGKPE2.js.map
|