@alfadocs/ui-kit 1.115.0 → 1.117.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/accessible-target-D3j6F-AG.js +7 -0
- package/dist/_chunks/{actions-cell-renderer-bI27uXXC.js → actions-cell-renderer-DTaIQKp9.js} +3 -3
- package/dist/_chunks/{address-autocomplete-DC-H-MZw.js → address-autocomplete-Bnc9ieKO.js} +2 -2
- package/dist/_chunks/{address-fields-D5Ije0S2.js → address-fields-RIaGnpnm.js} +4 -4
- package/dist/_chunks/{anamnesis-card-Ddnrdfx3.js → anamnesis-card-sUFT0dpF.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-card-S1H_AARG.js → anamnesis-summary-card-BtFPpegp.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-BZ36ULQk.js → anamnesis-summary-rows-BbAREK-3.js} +7 -7
- package/dist/_chunks/{antenatal-schedule-timeline-va9zx7tJ.js → antenatal-schedule-timeline-86YVlMYJ.js} +2 -2
- package/dist/_chunks/{appointment-card-D_-aBrx5.js → appointment-card-0PebvrOS.js} +3 -3
- package/dist/_chunks/{appointment-peek-DWfcpoGy.js → appointment-peek-DdUhqfEi.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DxLu3afn.js → appointment-timeline-CC7nmBOH.js} +3 -3
- package/dist/_chunks/{appointment-tray-BhXOJpIJ.js → appointment-tray-B04zKY7g.js} +2 -2
- package/dist/_chunks/arrow-down-left-DECv-dJt.js +15 -0
- package/dist/_chunks/{balance-badge-cell-CXHihM22.js → balance-badge-cell-DPjab0eJ.js} +6 -6
- package/dist/_chunks/bill-line-table-vCnVo7_a.js +1565 -0
- package/dist/_chunks/{bishop-score-QJu-sM1y.js → bishop-score-CKztphVz.js} +2 -2
- package/dist/_chunks/{bmi-calculator-Ba4yoR31.js → bmi-calculator-rri5vvMt.js} +3 -3
- package/dist/_chunks/{button-group-CUnNnt8a.js → button-group-B2MJo0Se.js} +2 -2
- package/dist/_chunks/{calculator-dialog-D4TyJwqy.js → calculator-dialog-BGX5XQCM.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BVzFi4hH.js → calendar-appointment-editor-dialog-BEmBcb61.js} +18 -18
- package/dist/_chunks/{card-DVO3x8E-.js → card-n6W6LW-N.js} +78 -47
- package/dist/_chunks/{care-plan-card-BA3MfdfZ.js → care-plan-card-bGTIliXc.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-CUtFZ813.js → care-plan-entry-card-cdojypxu.js} +3 -3
- package/dist/_chunks/{chart-DebrFZ6L.js → chart-Aue_2dMb.js} +2 -2
- package/dist/_chunks/circle-off-DuT9pVy2.js +16 -0
- package/dist/_chunks/{clinical-note-card-Zz5_GEz-.js → clinical-note-card-DHn5W_bv.js} +2 -2
- package/dist/_chunks/combobox-BBCVQS-S.js +935 -0
- package/dist/_chunks/{compact-editor-fields-cP6yh7xv.js → compact-editor-fields-6sTWRLtf.js} +3 -3
- package/dist/_chunks/{connection-status-DjarASoU.js → connection-status-DWClakYw.js} +2 -2
- package/dist/_chunks/{contact-card-Cv-Nwvac.js → contact-card-CGpbYuxl.js} +2 -2
- package/dist/_chunks/{contact-profile-card-DMXWBBkU.js → contact-profile-card-BubJPyRB.js} +3 -3
- package/dist/_chunks/{country-select-CUuGOAoZ.js → country-select-C2GdvRtS.js} +2 -2
- package/dist/_chunks/{cycle-calculator-C68V9rdH.js → cycle-calculator-C8nWAeTk.js} +3 -3
- package/dist/_chunks/{dashboard-grid-DrOkTtya.js → dashboard-grid-CaxgaEgI.js} +2 -2
- package/dist/_chunks/{toolbar-Bc3pjfG5.js → data-grid-DiBSbN2Y.js} +3017 -3106
- package/dist/_chunks/{data-grid-tabs-CsLbIv0h.js → data-grid-tabs-D9Y4DeeH.js} +2 -2
- package/dist/_chunks/{data-table-DXaE2Ret.js → data-table-DhYx-hCD.js} +101 -100
- package/dist/_chunks/{date-range-panel-CBFfkgmz.js → date-range-panel-CT6nXjRM.js} +7 -7
- package/dist/_chunks/default-tabs-CD285u0C.js +2250 -0
- package/dist/_chunks/dialog-CIUn5oLb.js +348 -0
- package/dist/_chunks/{document-preview-WvJKHJOP.js → document-preview-BWDTCEHI.js} +3 -3
- package/dist/_chunks/dropdown-menu-Dw6sgQwJ.js +679 -0
- package/dist/_chunks/{due-date-calculator-C1UA5jpS.js → due-date-calculator-c1NJPw9F.js} +4 -4
- package/dist/_chunks/{editable-currency-cell-renderer-CtlMhLai.js → editable-currency-cell-renderer-BlK-8A7b.js} +2 -2
- package/dist/_chunks/{entity-summary-DGCBQDt1.js → entity-summary-BanguTa6.js} +2 -2
- package/dist/_chunks/export-files-BByoK9Cg.js +248 -0
- package/dist/_chunks/{face-scheme-DkoxiDCh.js → face-scheme-Bt07zQJU.js} +20 -19
- package/dist/_chunks/{fetal-weight-DmZzMRzB.js → fetal-weight-D0KofJJw.js} +3 -3
- package/dist/_chunks/{file-manager-DFFExyym.js → file-manager-CV1_GtjC.js} +5 -5
- package/dist/_chunks/{finished-terminal-BKTFUk3S.js → finished-terminal-FR8uc_Ws.js} +2 -2
- package/dist/_chunks/{forgot-password-form-Bc_UPax6.js → forgot-password-form-YvI9vX-G.js} +2 -2
- package/dist/_chunks/format-price-CIX0YJZn.js +179 -0
- package/dist/_chunks/{gestational-age-calculator-60y1RyQL.js → gestational-age-calculator-Cg4Gq42R.js} +3 -3
- package/dist/_chunks/{grid-context-AwsLJRhH.js → grid-context-jn9y8tNE.js} +4 -4
- package/dist/_chunks/{hcg-doubling-CC-dbKE8.js → hcg-doubling-BjTa_77t.js} +3 -3
- package/dist/_chunks/{header-settings-Df9q1uHt.js → header-settings-DsvheAOt.js} +160 -147
- package/dist/_chunks/{heatmap-eXdtmEoU.js → heatmap-BurtKmeu.js} +3 -3
- package/dist/_chunks/{help-me-write-templates-CWxgjDZl.js → help-me-write-templates-C28E_rOt.js} +2 -2
- package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
- package/dist/_chunks/{icon-button-group-C9mPK-bX.js → icon-button-group-BKtkVZ1W.js} +2 -2
- package/dist/_chunks/{kit-extensions-CzG0RmhQ.js → kit-extensions-C3oL0WTp.js} +7 -7
- package/dist/_chunks/{link-cell-renderer-Ditt5mvT.js → link-cell-renderer-NFNGdAGt.js} +4 -4
- package/dist/_chunks/{login-dev-card-CPndtWdz.js → login-dev-card-Dz3ezx1o.js} +2 -2
- package/dist/_chunks/map-view-Frj8vE7n.js +1105 -0
- package/dist/_chunks/{maps-core-gate-DkNqGkm3.js → maps-core-gate-Dgs7jXxy.js} +6 -6
- package/dist/_chunks/{marketplace-app-shell-CcEHJgDd.js → marketplace-app-shell-BOBWmzoT.js} +6 -6
- package/dist/_chunks/money-OE6_oDPH.js +138 -0
- package/dist/_chunks/{muscle-scheme-BkmDUTmk.js → muscle-scheme-C9dnSxzw.js} +2 -2
- package/dist/_chunks/{notes-panel-BVYG_MJE.js → notes-panel-CHR-Jv6N.js} +5 -5
- package/dist/_chunks/{notification-card-CPW4poUr.js → notification-card-DRMv2_pW.js} +20 -20
- package/dist/_chunks/{notification-tray-CQK3lw87.js → notification-tray-mlCfxNRH.js} +2 -2
- package/dist/_chunks/number-input-DUSvP7Dq.js +625 -0
- package/dist/_chunks/{operator-hero-BWayX73x.js → operator-hero-CnfWckNQ.js} +2 -2
- package/dist/_chunks/{optical-prescription-CvbN8yD2.js → optical-prescription-Da_r8pMr.js} +2 -2
- package/dist/_chunks/parts-CcyRkB8t.js +869 -0
- package/dist/_chunks/{patient-details-DlT-vpSe.js → patient-details-C4dHR4iu.js} +3 -3
- package/dist/_chunks/{patient-field-row-B54uzvu-.js → patient-field-row-0QP8KCVp.js} +5 -5
- package/dist/_chunks/{patient-search-DDRDCjZi.js → patient-search-D_S7joff.js} +3 -3
- package/dist/_chunks/{patient-summary-card-Dy9-CzON.js → patient-summary-card-x0-AhCyC.js} +4 -4
- package/dist/_chunks/{payment-automation-upsell-D7yaD4u1.js → payment-automation-upsell-CGdG2Mwk.js} +2 -2
- package/dist/_chunks/{payment-request-card-BmV2pLoM.js → payment-request-card-CEIalOtr.js} +15 -14
- package/dist/_chunks/{periodontal-chart-Bjz7O4wT.js → periodontal-chart-DqHrQY4e.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-CxEXHl2x.js → periodontal-chart-card-q9WSHRC2.js} +2 -2
- package/dist/_chunks/{periodontal-diagnosis-DnZuZD14.js → periodontal-diagnosis-CJPWluQU.js} +2 -2
- package/dist/_chunks/{periodontal-risk-chart-BBPB9wf1.js → periodontal-risk-chart-CKkyOROk.js} +2 -2
- package/dist/_chunks/{practice-profile-hero-Cw4NZp0A.js → practice-profile-hero-BFS6lO2a.js} +2 -2
- package/dist/_chunks/{practice-results-BlxfBx-D.js → practice-results-CzHWprX4.js} +922 -787
- package/dist/_chunks/{pregnancy-dating-qZpw3zj8.js → pregnancy-dating-BO6diQMZ.js} +4 -4
- package/dist/_chunks/{pregnancy-weight-gain-DQoOM8QV.js → pregnancy-weight-gain-DkGcEc_l.js} +3 -3
- package/dist/_chunks/{privacy-mask-BlJK51MD.js → privacy-mask-DJ1gee4c.js} +2 -2
- package/dist/_chunks/{province-select-cVOlwEc5.js → province-select-CTM8A9SM.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-C1LGeX-G.js → radiograph-panel.agent-9jwXlOXB.js} +2 -2
- package/dist/_chunks/{registration-form-DW-0X7S4.js → registration-form-CMXefBnC.js} +2 -2
- package/dist/_chunks/{reserved.agent-6p3Hm4oH.js → reserved.agent-TaZfI3yj.js} +5 -5
- package/dist/_chunks/{reset-password-form-C93SH0Tx.js → reset-password-form-D_TePSM1.js} +2 -2
- package/dist/_chunks/{reviews-panel-CfJPEkH7.js → reviews-panel-CdHUSndF.js} +2 -2
- package/dist/_chunks/{rich-text-editor-efaMWbYz.js → rich-text-editor-CMPA5Wgy.js} +12 -11
- package/dist/_chunks/row-actions-Dpf9CrCP.js +213 -0
- package/dist/_chunks/{section-card-DFr2wGal.js → section-card-CYfeQ6EQ.js} +2 -2
- package/dist/_chunks/{send-registration-link-form-DWxWa_cJ.js → send-registration-link-form-DuZQuKnI.js} +2 -2
- package/dist/_chunks/{signature-request-BnTihryS.js → signature-request-Dzs0jZsd.js} +3 -3
- package/dist/_chunks/{tab-bar-C_pggqVr.js → tab-bar-CF8R38Og.js} +2 -2
- package/dist/_chunks/{tabs-CXYjr_8O.js → tabs-P4qFmxk5.js} +2 -2
- package/dist/_chunks/{task-editor-CSa6vQ9r.js → task-editor-WdDCqbIL.js} +168 -178
- package/dist/_chunks/{tasks-panel-CVjY1d7Q.js → tasks-panel-DBSm3WjK.js} +2 -2
- package/dist/_chunks/{theme-toggle-CObX2Ffa.js → theme-toggle-CeKl8f_f.js} +3 -3
- package/dist/_chunks/{timeline-AMqE-c2T.js → timeline-DXko0M1t.js} +2 -2
- package/dist/_chunks/{token-insert-menu-Dl3x2ekR.js → token-insert-menu-BrK5NQIq.js} +2 -2
- package/dist/_chunks/toolbar-z8vXnpXz.js +159 -0
- package/dist/_chunks/{tooth-scheme-C-ALCHaV.js → tooth-scheme-DHRxV2sE.js} +2 -2
- package/dist/_chunks/{transaction-chip-CohY6sTA.js → transaction-chip-CkYd-3ky.js} +47 -57
- package/dist/_chunks/{treatment-receipt-BydbojdD.js → treatment-receipt-1VnuinhY.js} +2 -2
- package/dist/_chunks/undo-2-EBxWjj1W.js +15 -0
- package/dist/_chunks/{unit-converter-D77vmlzN.js → unit-converter-YKlHyUC2.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-BMAiQYo6.js → use-appointment-details-read-B-SXnszJ.js} +10 -10
- package/dist/_chunks/{verify-identity-types-C85EXNzy.js → verify-identity-types-D_LdByCp.js} +2 -2
- package/dist/_chunks/{widget-picker-U4JsEhQE.js → widget-picker-DrxJjEkv.js} +2 -2
- package/dist/_chunks/{workflow-map-B4XkcET0.js → workflow-map-DCjkRuS_.js} +3 -3
- package/dist/_chunks/{workflow-status-9wb7iWUd.js → workflow-status-D0avpoeS.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-DNSe65yd.js → workflow-webhook-action-dgUjv9T7.js} +3 -3
- package/dist/agent-catalog.json +1080 -1
- package/dist/agent-i18n/en.json +50 -0
- package/dist/browser-support.js +2 -0
- package/dist/components/_shared/accessible-target.d.ts +19 -0
- package/dist/components/_shared/decimal.d.ts +171 -0
- package/dist/components/_shared/focus-visible.d.ts +8 -0
- package/dist/components/_shared/format-price.d.ts +54 -2
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/address-fields/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/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/bill-line-table/bill-line-table.agent.d.ts +4 -0
- package/dist/components/bill-line-table/bill-line-table.columns.d.ts +49 -0
- package/dist/components/bill-line-table/bill-line-table.d.ts +4 -0
- package/dist/components/bill-line-table/bill-line-table.model.d.ts +173 -0
- package/dist/components/bill-line-table/bill-line-table.types.d.ts +443 -0
- package/dist/components/bill-line-table/bill-line-table.variants.d.ts +36 -0
- package/dist/components/bill-line-table/index.d.ts +6 -0
- package/dist/components/bill-line-table/index.js +23 -0
- package/dist/components/bill-table/bill-table.agent.d.ts +4 -0
- package/dist/components/bill-table/bill-table.d.ts +13 -0
- package/dist/components/bill-table/bill-table.variants.d.ts +55 -0
- package/dist/components/bill-table/cells.d.ts +89 -0
- package/dist/components/bill-table/columns.d.ts +21 -0
- package/dist/components/bill-table/default-tabs.d.ts +21 -0
- package/dist/components/bill-table/handle.d.ts +19 -0
- package/dist/components/bill-table/index.d.ts +7 -0
- package/dist/components/bill-table/index.js +19 -0
- package/dist/components/bill-table/model.d.ts +103 -0
- package/dist/components/bill-table/row-actions.d.ts +27 -0
- package/dist/components/bill-table/status-maps.d.ts +225 -0
- package/dist/components/bill-table/types.d.ts +542 -0
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/card/card.d.ts +9 -2
- 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/chart/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts +59 -1
- package/dist/components/combobox/index.d.ts +1 -1
- 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/country-select/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-grid/body.d.ts +6 -0
- package/dist/components/data-grid/data-grid.variants.d.ts +1 -9
- package/dist/components/data-grid/editors.d.ts +7 -1
- package/dist/components/data-grid/index.js +9 -8
- package/dist/components/data-grid/selection.d.ts +10 -0
- package/dist/components/data-grid/types.d.ts +61 -11
- package/dist/components/data-grid-tabs/index.js +1 -1
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/dialog/focus-return.d.ts +12 -0
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -0
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/fetal-weight/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/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header-settings/header-settings.d.ts +7 -3
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/map-view/index.d.ts +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +48 -0
- package/dist/components/money/index.js +1 -1
- package/dist/components/money/money.d.ts +39 -6
- package/dist/components/muscle-scheme/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-card/notification-card.d.ts +2 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/number-input/index.d.ts +2 -2
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input.d.ts +43 -2
- package/dist/components/number-input/use-locale-number.d.ts +67 -3
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/optical-prescription/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/periodontal-chart/index.js +1 -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/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +20 -0
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/province-select/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/row-actions/index.d.ts +3 -0
- package/dist/components/row-actions/index.js +5 -0
- package/dist/components/row-actions/row-actions.d.ts +63 -0
- package/dist/components/section-card/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/smart-date/smart-date.d.ts +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/token-insert-menu/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/unit-converter/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 +1 -1
- package/dist/core.css +1 -1
- package/dist/decimal/index.js +149 -0
- package/dist/host-compat.css +7 -1
- package/dist/i18n/locales/ar.d.ts +262 -0
- package/dist/i18n/locales/ar.js +263 -1
- package/dist/i18n/locales/de.d.ts +262 -0
- package/dist/i18n/locales/de.js +263 -1
- package/dist/i18n/locales/el.d.ts +262 -0
- package/dist/i18n/locales/el.js +263 -1
- package/dist/i18n/locales/en.d.ts +262 -0
- package/dist/i18n/locales/en.js +263 -1
- package/dist/i18n/locales/es.d.ts +262 -0
- package/dist/i18n/locales/es.js +263 -1
- package/dist/i18n/locales/fr.d.ts +262 -0
- package/dist/i18n/locales/fr.js +263 -1
- package/dist/i18n/locales/hi.d.ts +262 -0
- package/dist/i18n/locales/hi.js +263 -1
- package/dist/i18n/locales/it.d.ts +262 -0
- package/dist/i18n/locales/it.js +263 -1
- package/dist/i18n/locales/ja.d.ts +262 -0
- package/dist/i18n/locales/ja.js +263 -1
- package/dist/i18n/locales/nl.d.ts +262 -0
- package/dist/i18n/locales/nl.js +263 -1
- package/dist/i18n/locales/pl.d.ts +262 -0
- package/dist/i18n/locales/pl.js +263 -1
- package/dist/i18n/locales/pt.d.ts +262 -0
- package/dist/i18n/locales/pt.js +263 -1
- package/dist/i18n/locales/ro.d.ts +262 -0
- package/dist/i18n/locales/ro.js +263 -1
- package/dist/i18n/locales/ru.d.ts +262 -0
- package/dist/i18n/locales/ru.js +263 -1
- package/dist/i18n/locales/sq.d.ts +262 -0
- package/dist/i18n/locales/sq.js +263 -1
- package/dist/i18n/locales/sv.d.ts +262 -0
- package/dist/i18n/locales/sv.js +263 -1
- package/dist/i18n/locales/tr.d.ts +262 -0
- package/dist/i18n/locales/tr.js +263 -1
- package/dist/i18n/locales/zh.d.ts +262 -0
- package/dist/i18n/locales/zh.js +263 -1
- package/dist/index.js +1298 -1246
- package/dist/locales/ar.json +263 -1
- package/dist/locales/de.json +263 -1
- package/dist/locales/el.json +263 -1
- package/dist/locales/en.json +263 -1
- package/dist/locales/es.json +263 -1
- package/dist/locales/fr.json +263 -1
- package/dist/locales/hi.json +263 -1
- package/dist/locales/it.json +263 -1
- package/dist/locales/ja.json +263 -1
- package/dist/locales/nl.json +263 -1
- package/dist/locales/pl.json +263 -1
- package/dist/locales/pt.json +263 -1
- package/dist/locales/ro.json +263 -1
- package/dist/locales/ru.json +263 -1
- package/dist/locales/sq.json +263 -1
- package/dist/locales/sv.json +263 -1
- package/dist/locales/tr.json +263 -1
- package/dist/locales/zh.json +263 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- 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/reset-password-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/verify-identity/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +22 -3
- package/dist/_chunks/combobox-duuDRI1t.js +0 -688
- package/dist/_chunks/dialog-BTjSQjdY.js +0 -274
- package/dist/_chunks/dropdown-menu-CqxBthww.js +0 -595
- package/dist/_chunks/format-price-BcFBa-WP.js +0 -52
- package/dist/_chunks/map-view-Bny79cWa.js +0 -856
- package/dist/_chunks/money-Tsczpjfz.js +0 -102
- package/dist/_chunks/number-input-CVwI1ltI.js +0 -423
- package/dist/_chunks/parts-Wz2LeGnH.js +0 -1113
- package/dist/_chunks/undo-2-CYNAzclj.js +0 -26
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import { jsx as n, jsxs as g, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { A as
|
|
6
|
-
import { A as
|
|
7
|
-
import { B as
|
|
8
|
-
import { D as
|
|
9
|
-
import { E as
|
|
10
|
-
import { M as
|
|
11
|
-
import { R as
|
|
12
|
-
import { S as
|
|
13
|
-
import { S as
|
|
14
|
-
import { S as
|
|
15
|
-
import { B as
|
|
16
|
-
import { u as
|
|
17
|
-
import { u as
|
|
18
|
-
import { m as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { C as
|
|
1
|
+
import { jsx as n, jsxs as g, Fragment as Tt } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as _t, useState as G, useRef as F, useMemo as T, useImperativeHandle as Ot, useCallback as H, useEffect as J } from "react";
|
|
3
|
+
import { c as Z } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as P } from "react-i18next";
|
|
5
|
+
import { A as fe } from "./alert-C4WKViaS.js";
|
|
6
|
+
import { A as Ae } from "./avatar-Dp5apm1d.js";
|
|
7
|
+
import { B as pe } from "./button-DohK_Ak_.js";
|
|
8
|
+
import { D as U } from "./dropdown-menu-Dw6sgQwJ.js";
|
|
9
|
+
import { E as Vt } from "./empty-state-DwJ5YNzz.js";
|
|
10
|
+
import { M as Bt, i as He } from "./map-view-Frj8vE7n.js";
|
|
11
|
+
import { R as Fe } from "./rating-CGYpg5dj.js";
|
|
12
|
+
import { S as K } from "./sheet-uZZXaO_S.js";
|
|
13
|
+
import { S as Dt } from "./skeleton-tTWJpvAq.js";
|
|
14
|
+
import { S as $t } from "./spinner-CoflYlEx.js";
|
|
15
|
+
import { B as j } from "./badge-BUk4RjTS.js";
|
|
16
|
+
import { u as Te } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
17
|
+
import { u as _e } from "./use-media-query-CcAx5SMM.js";
|
|
18
|
+
import { m as zt } from "./motion-is-off-BvAuNV5O.js";
|
|
19
|
+
import { l as We } from "./length-token-DwMnGEYT.js";
|
|
20
|
+
import { b as Et, a as Qe } from "./format-price-CIX0YJZn.js";
|
|
21
|
+
import { u as Kt } from "./registry-DvAUVLHh.js";
|
|
22
|
+
import { c as jt } from "./createLucideIcon-DhHxpK9K.js";
|
|
23
|
+
import { R as qt } from "./refresh-cw-DnI0cLFC.js";
|
|
24
|
+
import { C as et } from "./chevron-down-DWE7GSq9.js";
|
|
25
|
+
import { L as tt } from "./languages-CGLX6Qpe.js";
|
|
26
|
+
import { S as nt } from "./shield-check-DCJALLVh.js";
|
|
27
|
+
import { H as at } from "./heart--qCA4ffe.js";
|
|
28
|
+
import { M as he } from "./map-pin-BaY37-Km.js";
|
|
29
|
+
import { C as Ut } from "./calendar-clock-hbObjfGY.js";
|
|
30
|
+
import { C as Gt } from "./calendar-plus-BFrIRE4r.js";
|
|
30
31
|
/**
|
|
31
32
|
* @license lucide-react v1.22.0 - ISC
|
|
32
33
|
*
|
|
33
34
|
* This source code is licensed under the ISC license.
|
|
34
35
|
* See the LICENSE file in the root directory of this source tree.
|
|
35
36
|
*/
|
|
36
|
-
const
|
|
37
|
+
const Zt = [
|
|
37
38
|
[
|
|
38
39
|
"path",
|
|
39
40
|
{
|
|
@@ -43,7 +44,7 @@ const jt = [
|
|
|
43
44
|
],
|
|
44
45
|
["path", { d: "M15 5.764v15", key: "1pn4in" }],
|
|
45
46
|
["path", { d: "M9 3.236v15", key: "1uimfh" }]
|
|
46
|
-
],
|
|
47
|
+
], Wt = jt("map", Zt), Qt = {
|
|
47
48
|
id: "practice-results",
|
|
48
49
|
// `scroll` backs scroll_to_result (light highlight, no selection). focus_pin
|
|
49
50
|
// follows the pin-click rules: on a map variant at `lg` and up it chooses the
|
|
@@ -127,18 +128,18 @@ const jt = [
|
|
|
127
128
|
description: 'Stable result id emitted on each rendered result card. Used by scroll_to_result / focus_pin to address a single result. The non-focusable card group is labelled by the practice-result-{id}-name heading, which contains data-component="practice-result-name-link": a visible link to result.href that navigates without firing onResultSelect or click telemetry. Each card also carries up to two CTA anchors: data-component="practice-result-open-cta" (practice page; absent when the consumer sets showCardOpenButton=false) and data-component="practice-result-book-cta" (booking flow; data-slot-aware="true" when it deep-links to a next slot). Card content carries its own read-only hooks: data-component="practice-result-tagline", data-component="practice-result-description", data-component="practice-result-latest-review" (the newest approved review as one truncated line under the rating, from latestReview; its text span carries the language of the review as lang; absent without latestReview), and data-component="practice-result-price" (the kit-formatted first-visit cost: firstVisitPrice supports fixed, from and range amounts plus an optional practice-written label; it takes precedence over the older firstVisitPriceCents fixed-price field. Absent when neither price is set).'
|
|
128
129
|
}
|
|
129
130
|
}
|
|
130
|
-
},
|
|
131
|
+
}, Jt = 13, Je = [
|
|
131
132
|
"distance",
|
|
132
133
|
"rating",
|
|
133
134
|
"next-available",
|
|
134
135
|
"price",
|
|
135
136
|
"relevance"
|
|
136
137
|
];
|
|
137
|
-
function
|
|
138
|
+
function it(e, t, i) {
|
|
138
139
|
const s = `languages.${e}`;
|
|
139
140
|
return i.exists(s) ? t(s) : e.toUpperCase();
|
|
140
141
|
}
|
|
141
|
-
function
|
|
142
|
+
function q(e, t) {
|
|
142
143
|
if (typeof window > "u") return;
|
|
143
144
|
const i = window.track;
|
|
144
145
|
try {
|
|
@@ -146,28 +147,28 @@ function E(e, t) {
|
|
|
146
147
|
} catch {
|
|
147
148
|
}
|
|
148
149
|
}
|
|
149
|
-
function
|
|
150
|
-
const r = e.findIndex((
|
|
150
|
+
function ae(e, t, i, s) {
|
|
151
|
+
const r = e.findIndex((l) => l.id === t);
|
|
151
152
|
if (r < 0) return;
|
|
152
153
|
const a = e[r];
|
|
153
|
-
a && (
|
|
154
|
+
a && (q("serp_result_clicked", { resultId: t, source: i, position: r }), s(a, i));
|
|
154
155
|
}
|
|
155
|
-
function
|
|
156
|
-
const s = (t.lat - e.lat) * Math.PI / 180, r = (t.lng - e.lng) * Math.PI / 180, a = e.lat * Math.PI / 180,
|
|
157
|
-
return 2 * 6371 * Math.asin(Math.min(1, Math.sqrt(
|
|
156
|
+
function Xt(e, t) {
|
|
157
|
+
const s = (t.lat - e.lat) * Math.PI / 180, r = (t.lng - e.lng) * Math.PI / 180, a = e.lat * Math.PI / 180, l = t.lat * Math.PI / 180, m = Math.sin(s / 2), c = Math.sin(r / 2), o = m * m + Math.cos(a) * Math.cos(l) * c * c;
|
|
158
|
+
return 2 * 6371 * Math.asin(Math.min(1, Math.sqrt(o)));
|
|
158
159
|
}
|
|
159
|
-
function
|
|
160
|
+
function Yt(e, t, i) {
|
|
160
161
|
var r;
|
|
161
162
|
const s = [];
|
|
162
163
|
for (const a of e) {
|
|
163
|
-
const
|
|
164
|
-
(
|
|
164
|
+
const l = a.field ?? a.key, m = (((r = i == null ? void 0 : i[a.key]) == null ? void 0 : r.length) ?? 0) > 0, c = a.type === "boolean" || a.type !== "options" && a.options.length === 0 && (m || t.some(
|
|
165
|
+
(o) => typeof o[l] == "boolean"
|
|
165
166
|
));
|
|
166
|
-
!
|
|
167
|
+
!c && a.options.length === 0 || s.push({ ...a, boolean: c, booleanField: l });
|
|
167
168
|
}
|
|
168
169
|
return s;
|
|
169
170
|
}
|
|
170
|
-
function
|
|
171
|
+
function en(e, t, i) {
|
|
171
172
|
return !t || Object.keys(t).length === 0 ? e : e.filter((s) => {
|
|
172
173
|
for (const r of i) {
|
|
173
174
|
const a = t[r.key];
|
|
@@ -176,47 +177,47 @@ function Wt(e, t, i) {
|
|
|
176
177
|
if (s[r.booleanField] !== !0) return !1;
|
|
177
178
|
continue;
|
|
178
179
|
}
|
|
179
|
-
const
|
|
180
|
-
if (!Array.isArray(
|
|
180
|
+
const l = r.key === "insurance" ? s.insurances : r.key === "language" ? s.languages : s[r.key];
|
|
181
|
+
if (!Array.isArray(l) || !(r.multi ? a.some((c) => l.includes(c)) : l.includes(a[0]))) return !1;
|
|
181
182
|
}
|
|
182
183
|
return !0;
|
|
183
184
|
});
|
|
184
185
|
}
|
|
185
|
-
function
|
|
186
|
+
function tn(e) {
|
|
186
187
|
const t = e.firstVisitPrice && Number.isFinite(e.firstVisitPrice.minCents) ? e.firstVisitPrice.minCents : e.firstVisitPriceCents;
|
|
187
188
|
return t != null && Number.isFinite(t) && t >= 0 ? t : 1 / 0;
|
|
188
189
|
}
|
|
189
|
-
function
|
|
190
|
+
function nn(e) {
|
|
190
191
|
return e.firstVisitPrice && Number.isFinite(e.firstVisitPrice.minCents) ? e.firstVisitPrice.kind === "fixed" : !0;
|
|
191
192
|
}
|
|
192
|
-
function
|
|
193
|
+
function Xe(e, t) {
|
|
193
194
|
return e == null && t == null ? 0 : e == null ? 1 : t == null ? -1 : e - t;
|
|
194
195
|
}
|
|
195
|
-
function
|
|
196
|
+
function an(e, t, i) {
|
|
196
197
|
const s = e.map((a) => {
|
|
197
|
-
const
|
|
198
|
+
const l = a.location ? a.location.distanceKm ?? (i ? Xt(i, a.location) : void 0) : void 0;
|
|
198
199
|
return {
|
|
199
200
|
result: a,
|
|
200
|
-
distanceKm:
|
|
201
|
-
price: t === "price" ?
|
|
202
|
-
fixed: t === "price" ?
|
|
201
|
+
distanceKm: l,
|
|
202
|
+
price: t === "price" ? tn(a) : void 0,
|
|
203
|
+
fixed: t === "price" ? nn(a) : !1
|
|
203
204
|
};
|
|
204
|
-
}), r = (a,
|
|
205
|
-
var
|
|
205
|
+
}), r = (a, l) => {
|
|
206
|
+
var m, c, o, d;
|
|
206
207
|
switch (t) {
|
|
207
208
|
case "distance":
|
|
208
|
-
return
|
|
209
|
+
return Xe(a.distanceKm, l.distanceKm);
|
|
209
210
|
case "price": {
|
|
210
|
-
const
|
|
211
|
-
return
|
|
211
|
+
const p = a.price ?? 1 / 0, f = l.price ?? 1 / 0;
|
|
212
|
+
return p !== f ? p - f : p !== 1 / 0 && a.fixed !== l.fixed ? a.fixed ? -1 : 1 : Xe(a.distanceKm, l.distanceKm);
|
|
212
213
|
}
|
|
213
214
|
case "rating": {
|
|
214
|
-
const
|
|
215
|
-
return (((
|
|
215
|
+
const p = ((m = a.result.rating) == null ? void 0 : m.value) ?? -1;
|
|
216
|
+
return (((c = l.result.rating) == null ? void 0 : c.value) ?? -1) - p;
|
|
216
217
|
}
|
|
217
218
|
case "next-available": {
|
|
218
|
-
const
|
|
219
|
-
return !
|
|
219
|
+
const p = ((o = a.result.nextAvailableSlot) == null ? void 0 : o.dateTime) ?? "", f = ((d = l.result.nextAvailableSlot) == null ? void 0 : d.dateTime) ?? "";
|
|
220
|
+
return !p && !f ? 0 : p ? f ? p.localeCompare(f) : -1 : 1;
|
|
220
221
|
}
|
|
221
222
|
case "relevance":
|
|
222
223
|
default:
|
|
@@ -224,24 +225,24 @@ function Xt(e, t, i) {
|
|
|
224
225
|
}
|
|
225
226
|
};
|
|
226
227
|
return [...s].sort(r).map(
|
|
227
|
-
({ result: a, distanceKm:
|
|
228
|
+
({ result: a, distanceKm: l }) => l != null && a.location ? {
|
|
228
229
|
...a,
|
|
229
|
-
location: { ...a.location, distanceKm:
|
|
230
|
+
location: { ...a.location, distanceKm: l }
|
|
230
231
|
} : a
|
|
231
232
|
);
|
|
232
233
|
}
|
|
233
|
-
function
|
|
234
|
+
function sn(e) {
|
|
234
235
|
let t = -1 / 0, i = 1 / 0, s = -1 / 0, r = 1 / 0, a = !1;
|
|
235
|
-
for (const
|
|
236
|
-
if (!
|
|
236
|
+
for (const l of e) {
|
|
237
|
+
if (!l.location) continue;
|
|
237
238
|
a = !0;
|
|
238
|
-
const { lat:
|
|
239
|
-
|
|
239
|
+
const { lat: m, lng: c } = l.location;
|
|
240
|
+
m > t && (t = m), m < i && (i = m), c > s && (s = c), c < r && (r = c);
|
|
240
241
|
}
|
|
241
242
|
if (a)
|
|
242
243
|
return { north: t, south: i, east: s, west: r };
|
|
243
244
|
}
|
|
244
|
-
const
|
|
245
|
+
const rn = Z(
|
|
245
246
|
"ds:flex ds:w-full ds:flex-col ds:text-[var(--foreground)] ds:gap-[var(--spacing-md)]",
|
|
246
247
|
{
|
|
247
248
|
variants: {
|
|
@@ -254,33 +255,33 @@ const en = q(
|
|
|
254
255
|
defaultVariants: { variant: "split-list-map" }
|
|
255
256
|
}
|
|
256
257
|
);
|
|
257
|
-
function
|
|
258
|
+
function st({
|
|
258
259
|
heading: e,
|
|
259
260
|
headingLevel: t,
|
|
260
261
|
intro: i,
|
|
261
262
|
totalCount: s,
|
|
262
263
|
searchCentreLabel: r
|
|
263
264
|
}) {
|
|
264
|
-
const { t: a } =
|
|
265
|
+
const { t: a } = P("ui"), l = `h${t}`;
|
|
265
266
|
if (!e && !i && s == null) return null;
|
|
266
|
-
const
|
|
267
|
+
const m = s != null ? r ? a("practiceResults.results.heading", {
|
|
267
268
|
count: s,
|
|
268
269
|
place: r
|
|
269
270
|
}) : a("practiceResults.results.summary", { count: s }) : void 0;
|
|
270
271
|
return /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
271
|
-
e ? /* @__PURE__ */ n(
|
|
272
|
+
e ? /* @__PURE__ */ n(l, { className: "type-title-section ds:m-0 ds:text-[var(--foreground)]", children: e }) : null,
|
|
272
273
|
i ? /* @__PURE__ */ n("p", { className: "type-body ds:m-0 ds:text-[var(--muted-foreground)]", children: i }) : null,
|
|
273
|
-
|
|
274
|
+
m ? /* @__PURE__ */ n(
|
|
274
275
|
"p",
|
|
275
276
|
{
|
|
276
277
|
className: "type-body-sm ds:m-0 ds:text-[var(--muted-foreground)]",
|
|
277
278
|
"aria-live": "polite",
|
|
278
|
-
children:
|
|
279
|
+
children: m
|
|
279
280
|
}
|
|
280
281
|
) : null
|
|
281
282
|
] });
|
|
282
283
|
}
|
|
283
|
-
const
|
|
284
|
+
const ge = Z(
|
|
284
285
|
[
|
|
285
286
|
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
286
287
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -302,7 +303,7 @@ const de = q(
|
|
|
302
303
|
},
|
|
303
304
|
defaultVariants: { state: "idle" }
|
|
304
305
|
}
|
|
305
|
-
),
|
|
306
|
+
), on = Z(
|
|
306
307
|
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
307
308
|
{
|
|
308
309
|
variants: {
|
|
@@ -321,7 +322,7 @@ const de = q(
|
|
|
321
322
|
},
|
|
322
323
|
defaultVariants: { placement: "inline" }
|
|
323
324
|
}
|
|
324
|
-
),
|
|
325
|
+
), ln = Z(
|
|
325
326
|
[
|
|
326
327
|
"ds:ms-[var(--spacing-xs)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
327
328
|
"ds:min-h-[var(--min-target-size)] ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]",
|
|
@@ -332,26 +333,26 @@ const de = q(
|
|
|
332
333
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
333
334
|
].join(" ")
|
|
334
335
|
);
|
|
335
|
-
function
|
|
336
|
+
function rt({
|
|
336
337
|
facets: e,
|
|
337
338
|
value: t,
|
|
338
339
|
onChange: i,
|
|
339
340
|
floating: s
|
|
340
341
|
}) {
|
|
341
|
-
const { t: r } =
|
|
342
|
-
() => Object.values(a).some((
|
|
342
|
+
const { t: r } = P("ui"), a = T(() => t ?? {}, [t]), l = T(
|
|
343
|
+
() => Object.values(a).some((d) => d && d.length > 0),
|
|
343
344
|
[a]
|
|
344
|
-
),
|
|
345
|
-
const
|
|
346
|
-
|
|
347
|
-
},
|
|
348
|
-
var
|
|
349
|
-
const
|
|
350
|
-
|
|
351
|
-
},
|
|
352
|
-
const
|
|
345
|
+
), m = (d, p) => {
|
|
346
|
+
const f = { ...a };
|
|
347
|
+
p.length === 0 ? delete f[d] : f[d] = p, i(f), q("serp_filter_changed", { key: d, values: p });
|
|
348
|
+
}, c = (d) => {
|
|
349
|
+
var f;
|
|
350
|
+
const p = (((f = a[d]) == null ? void 0 : f.length) ?? 0) > 0;
|
|
351
|
+
m(d, p ? [] : ["true"]);
|
|
352
|
+
}, o = (d, p) => {
|
|
353
|
+
const f = a[d.key] ?? [], x = f.includes(p);
|
|
353
354
|
let b;
|
|
354
|
-
|
|
355
|
+
d.multi ? b = x ? f.filter((y) => y !== p) : [...f, p] : b = x ? [] : [p], m(d.key, b);
|
|
355
356
|
};
|
|
356
357
|
return e.length === 0 ? null : /* @__PURE__ */ g(
|
|
357
358
|
"div",
|
|
@@ -359,44 +360,44 @@ function Je({
|
|
|
359
360
|
"data-component": "practice-results-filters",
|
|
360
361
|
role: "group",
|
|
361
362
|
"aria-label": r("practiceResults.filters.label"),
|
|
362
|
-
className:
|
|
363
|
+
className: on({
|
|
363
364
|
placement: s ? "floating" : "inline"
|
|
364
365
|
}),
|
|
365
366
|
children: [
|
|
366
|
-
e.map((
|
|
367
|
-
const
|
|
368
|
-
if (
|
|
367
|
+
e.map((d) => {
|
|
368
|
+
const p = d.boolean, f = a[d.key] ?? [], x = f.length > 0;
|
|
369
|
+
if (p)
|
|
369
370
|
return /* @__PURE__ */ n(
|
|
370
371
|
"button",
|
|
371
372
|
{
|
|
372
373
|
type: "button",
|
|
373
374
|
"aria-pressed": x,
|
|
374
|
-
"aria-label":
|
|
375
|
-
onClick: () =>
|
|
376
|
-
className:
|
|
375
|
+
"aria-label": d.label,
|
|
376
|
+
onClick: () => c(d.key),
|
|
377
|
+
className: ge({
|
|
377
378
|
state: x ? "active" : "idle"
|
|
378
379
|
}),
|
|
379
|
-
children: /* @__PURE__ */ n("span", { children:
|
|
380
|
+
children: /* @__PURE__ */ n("span", { children: d.label })
|
|
380
381
|
},
|
|
381
|
-
|
|
382
|
+
d.key
|
|
382
383
|
);
|
|
383
|
-
const b = x ? ` (${
|
|
384
|
-
return /* @__PURE__ */ g(
|
|
385
|
-
/* @__PURE__ */ n(
|
|
384
|
+
const b = x ? ` (${f.length})` : "";
|
|
385
|
+
return /* @__PURE__ */ g(U.Root, { children: [
|
|
386
|
+
/* @__PURE__ */ n(U.Trigger, { asChild: !0, children: /* @__PURE__ */ g(
|
|
386
387
|
"button",
|
|
387
388
|
{
|
|
388
389
|
type: "button",
|
|
389
|
-
"aria-label": `${
|
|
390
|
-
className:
|
|
390
|
+
"aria-label": `${d.label}${b}`,
|
|
391
|
+
className: ge({
|
|
391
392
|
state: x ? "active" : "idle"
|
|
392
393
|
}),
|
|
393
394
|
children: [
|
|
394
395
|
/* @__PURE__ */ g("span", { children: [
|
|
395
|
-
|
|
396
|
+
d.label,
|
|
396
397
|
b
|
|
397
398
|
] }),
|
|
398
399
|
/* @__PURE__ */ n(
|
|
399
|
-
|
|
400
|
+
et,
|
|
400
401
|
{
|
|
401
402
|
"aria-hidden": "true",
|
|
402
403
|
className: "ds:size-3.5 ds:shrink-0"
|
|
@@ -405,27 +406,27 @@ function Je({
|
|
|
405
406
|
]
|
|
406
407
|
}
|
|
407
408
|
) }),
|
|
408
|
-
/* @__PURE__ */ n(
|
|
409
|
-
|
|
409
|
+
/* @__PURE__ */ n(U.Content, { sideOffset: 8, align: "start", children: d.options.map((y) => /* @__PURE__ */ n(
|
|
410
|
+
U.CheckboxItem,
|
|
410
411
|
{
|
|
411
|
-
checked:
|
|
412
|
-
onSelect: (
|
|
413
|
-
|
|
412
|
+
checked: f.includes(y.value),
|
|
413
|
+
onSelect: (N) => {
|
|
414
|
+
d.multi && N.preventDefault(), o(d, y.value);
|
|
414
415
|
},
|
|
415
|
-
children:
|
|
416
|
+
children: y.label
|
|
416
417
|
},
|
|
417
|
-
|
|
418
|
+
y.value
|
|
418
419
|
)) })
|
|
419
|
-
] },
|
|
420
|
+
] }, d.key);
|
|
420
421
|
}),
|
|
421
|
-
|
|
422
|
+
l ? /* @__PURE__ */ n(
|
|
422
423
|
"button",
|
|
423
424
|
{
|
|
424
425
|
type: "button",
|
|
425
426
|
onClick: () => {
|
|
426
|
-
i({}),
|
|
427
|
+
i({}), q("serp_filter_changed", { key: "*", values: [] });
|
|
427
428
|
},
|
|
428
|
-
className:
|
|
429
|
+
className: ln(),
|
|
429
430
|
children: r("practiceResults.filters.clear")
|
|
430
431
|
}
|
|
431
432
|
) : null
|
|
@@ -433,8 +434,8 @@ function Je({
|
|
|
433
434
|
}
|
|
434
435
|
);
|
|
435
436
|
}
|
|
436
|
-
function
|
|
437
|
-
const { t: s } =
|
|
437
|
+
function Pe({ value: e, options: t, onChange: i }) {
|
|
438
|
+
const { t: s } = P("ui"), r = (a) => {
|
|
438
439
|
switch (a) {
|
|
439
440
|
case "distance":
|
|
440
441
|
return s("practiceResults.sort.distance");
|
|
@@ -449,47 +450,47 @@ function Ce({ value: e, options: t, onChange: i }) {
|
|
|
449
450
|
return s("practiceResults.sort.relevance");
|
|
450
451
|
}
|
|
451
452
|
};
|
|
452
|
-
return /* @__PURE__ */ g(
|
|
453
|
-
/* @__PURE__ */ n(
|
|
453
|
+
return /* @__PURE__ */ g(U.Root, { children: [
|
|
454
|
+
/* @__PURE__ */ n(U.Trigger, { asChild: !0, children: /* @__PURE__ */ g(
|
|
454
455
|
"button",
|
|
455
456
|
{
|
|
456
457
|
type: "button",
|
|
457
458
|
"aria-label": `${s("practiceResults.sort.label")}: ${r(e)}`,
|
|
458
|
-
className:
|
|
459
|
+
className: ge({ state: "idle" }),
|
|
459
460
|
children: [
|
|
460
461
|
/* @__PURE__ */ g("span", { children: [
|
|
461
462
|
s("practiceResults.sort.label"),
|
|
462
463
|
": ",
|
|
463
464
|
r(e)
|
|
464
465
|
] }),
|
|
465
|
-
/* @__PURE__ */ n(
|
|
466
|
+
/* @__PURE__ */ n(et, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" })
|
|
466
467
|
]
|
|
467
468
|
}
|
|
468
469
|
) }),
|
|
469
|
-
/* @__PURE__ */ n(
|
|
470
|
-
|
|
470
|
+
/* @__PURE__ */ n(U.Content, { sideOffset: 8, align: "end", children: /* @__PURE__ */ n(
|
|
471
|
+
U.RadioGroup,
|
|
471
472
|
{
|
|
472
473
|
value: e,
|
|
473
474
|
onValueChange: (a) => {
|
|
474
|
-
const
|
|
475
|
-
|
|
475
|
+
const l = a;
|
|
476
|
+
l !== e && (i(l), q("serp_sort_changed", { sort: l }));
|
|
476
477
|
},
|
|
477
|
-
children: t.map((a) => /* @__PURE__ */ n(
|
|
478
|
+
children: t.map((a) => /* @__PURE__ */ n(U.RadioItem, { value: a, children: r(a) }, a))
|
|
478
479
|
}
|
|
479
480
|
) })
|
|
480
481
|
] });
|
|
481
482
|
}
|
|
482
|
-
function
|
|
483
|
-
const { t, i18n: i } =
|
|
483
|
+
function cn({ distanceKm: e }) {
|
|
484
|
+
const { t, i18n: i } = P("ui"), s = T(() => {
|
|
484
485
|
if (e < 1) return t("practiceResults.distance.below");
|
|
485
486
|
const r = new Intl.NumberFormat(i.language, {
|
|
486
487
|
maximumFractionDigits: 1
|
|
487
488
|
}).format(e);
|
|
488
489
|
return t("practiceResults.distance.km", { distance: r });
|
|
489
490
|
}, [e, t, i.language]);
|
|
490
|
-
return /* @__PURE__ */ n(
|
|
491
|
+
return /* @__PURE__ */ n(j, { variant: "neutral", leading: /* @__PURE__ */ n(he, { "aria-hidden": "true" }), children: s });
|
|
491
492
|
}
|
|
492
|
-
const
|
|
493
|
+
const Me = Z(
|
|
493
494
|
[
|
|
494
495
|
"ds:w-[12rem] ds:h-[8rem] ds:shrink-0",
|
|
495
496
|
"ds:rounded-[var(--radius-md)] ds:overflow-hidden"
|
|
@@ -508,54 +509,78 @@ const Ke = q(
|
|
|
508
509
|
defaultVariants: { state: "placeholder" }
|
|
509
510
|
}
|
|
510
511
|
);
|
|
511
|
-
function
|
|
512
|
+
function dn() {
|
|
512
513
|
if (typeof document > "u") return "4945a3";
|
|
513
514
|
const e = getComputedStyle(document.documentElement).getPropertyValue("--map-marker-color").trim(), t = /^#?([0-9a-fA-F]{6})$/.exec(e);
|
|
514
515
|
return t ? t[1] : "4945a3";
|
|
515
516
|
}
|
|
516
|
-
function
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
zoom: i = 14,
|
|
520
|
-
address: s,
|
|
521
|
-
addressLang: r
|
|
517
|
+
function Ye({
|
|
518
|
+
address: e,
|
|
519
|
+
addressLang: t
|
|
522
520
|
}) {
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
"
|
|
521
|
+
return /* @__PURE__ */ g(
|
|
522
|
+
"div",
|
|
523
|
+
{
|
|
524
|
+
"aria-hidden": e ? void 0 : "true",
|
|
525
|
+
className: Me({ state: "placeholder" }),
|
|
526
|
+
children: [
|
|
527
|
+
/* @__PURE__ */ n(he, { "aria-hidden": "true", className: "ds:size-5 ds:shrink-0" }),
|
|
528
|
+
e ? /* @__PURE__ */ n(
|
|
529
|
+
"span",
|
|
530
|
+
{
|
|
531
|
+
lang: t,
|
|
532
|
+
dir: "auto",
|
|
533
|
+
className: "type-meta ds:[overflow-wrap:anywhere]",
|
|
534
|
+
children: e
|
|
535
|
+
}
|
|
536
|
+
) : null
|
|
537
|
+
]
|
|
538
|
+
}
|
|
539
|
+
);
|
|
540
|
+
}
|
|
541
|
+
function un({
|
|
542
|
+
image: e,
|
|
543
|
+
apiKey: t,
|
|
544
|
+
center: i,
|
|
545
|
+
zoom: s = 14,
|
|
546
|
+
address: r,
|
|
547
|
+
addressLang: a
|
|
548
|
+
}) {
|
|
549
|
+
const { t: l } = P("ui"), [m, c] = G(null);
|
|
550
|
+
if (e && m !== e.src)
|
|
551
|
+
return /* @__PURE__ */ n(
|
|
552
|
+
"img",
|
|
527
553
|
{
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
className: "type-meta ds:[overflow-wrap:anywhere]",
|
|
538
|
-
children: s
|
|
539
|
-
}
|
|
540
|
-
) : null
|
|
541
|
-
]
|
|
554
|
+
src: e.src,
|
|
555
|
+
srcSet: e.srcSet,
|
|
556
|
+
alt: "",
|
|
557
|
+
loading: "lazy",
|
|
558
|
+
decoding: "async",
|
|
559
|
+
width: 240,
|
|
560
|
+
height: 160,
|
|
561
|
+
onError: () => c(e.src),
|
|
562
|
+
className: Me({ state: "image" })
|
|
542
563
|
}
|
|
543
564
|
);
|
|
544
|
-
|
|
565
|
+
if (e)
|
|
566
|
+
return /* @__PURE__ */ n(Ye, { address: r, addressLang: a });
|
|
567
|
+
if (!t)
|
|
568
|
+
return /* @__PURE__ */ n(Ye, { address: r, addressLang: a });
|
|
569
|
+
const o = dn(), d = `https://maps.googleapis.com/maps/api/staticmap?center=${i.lat},${i.lng}&zoom=${s}&size=240x160&scale=2&markers=color:0x${o}%7C${i.lat},${i.lng}&key=${encodeURIComponent(t)}`;
|
|
545
570
|
return /* @__PURE__ */ n(
|
|
546
571
|
"img",
|
|
547
572
|
{
|
|
548
|
-
src:
|
|
549
|
-
alt:
|
|
573
|
+
src: d,
|
|
574
|
+
alt: l("practiceResults.thumbnail.alt"),
|
|
550
575
|
loading: "lazy",
|
|
551
576
|
decoding: "async",
|
|
552
577
|
width: 240,
|
|
553
578
|
height: 160,
|
|
554
|
-
className:
|
|
579
|
+
className: Me({ state: "image" })
|
|
555
580
|
}
|
|
556
581
|
);
|
|
557
582
|
}
|
|
558
|
-
function
|
|
583
|
+
function mn({ tagline: e, lang: t }) {
|
|
559
584
|
return e ? /* @__PURE__ */ n(
|
|
560
585
|
"span",
|
|
561
586
|
{
|
|
@@ -567,7 +592,7 @@ function on({ tagline: e, lang: t }) {
|
|
|
567
592
|
}
|
|
568
593
|
) : null;
|
|
569
594
|
}
|
|
570
|
-
function
|
|
595
|
+
function fn(e) {
|
|
571
596
|
if (typeof e != "string") return;
|
|
572
597
|
const t = e.trim().replace(/_/g, "-");
|
|
573
598
|
if (t)
|
|
@@ -577,10 +602,10 @@ function ln(e) {
|
|
|
577
602
|
return;
|
|
578
603
|
}
|
|
579
604
|
}
|
|
580
|
-
function
|
|
605
|
+
function ot({
|
|
581
606
|
review: e
|
|
582
607
|
}) {
|
|
583
|
-
const { t } =
|
|
608
|
+
const { t } = P("ui"), i = typeof (e == null ? void 0 : e.text) == "string" ? e.text.trim() : "";
|
|
584
609
|
return !e || !i ? null : /* @__PURE__ */ g(
|
|
585
610
|
"p",
|
|
586
611
|
{
|
|
@@ -592,7 +617,7 @@ function Xe({
|
|
|
592
617
|
/* @__PURE__ */ n(
|
|
593
618
|
"span",
|
|
594
619
|
{
|
|
595
|
-
lang:
|
|
620
|
+
lang: fn(e.lang),
|
|
596
621
|
dir: "auto",
|
|
597
622
|
className: "ds:min-w-0 ds:truncate",
|
|
598
623
|
children: i
|
|
@@ -602,7 +627,7 @@ function Xe({
|
|
|
602
627
|
}
|
|
603
628
|
);
|
|
604
629
|
}
|
|
605
|
-
const
|
|
630
|
+
const pn = Z(
|
|
606
631
|
"type-body-sm ds:m-0 ds:text-[var(--muted-foreground)] ds:whitespace-pre-line ds:break-words",
|
|
607
632
|
{
|
|
608
633
|
variants: {
|
|
@@ -614,7 +639,7 @@ const cn = q(
|
|
|
614
639
|
defaultVariants: { density: "compact" }
|
|
615
640
|
}
|
|
616
641
|
);
|
|
617
|
-
function
|
|
642
|
+
function lt({
|
|
618
643
|
description: e,
|
|
619
644
|
density: t,
|
|
620
645
|
lang: i
|
|
@@ -625,26 +650,26 @@ function Ye({
|
|
|
625
650
|
"data-component": "practice-result-description",
|
|
626
651
|
lang: i,
|
|
627
652
|
dir: "auto",
|
|
628
|
-
className:
|
|
653
|
+
className: pn({ density: t }),
|
|
629
654
|
children: e
|
|
630
655
|
}
|
|
631
656
|
) : null;
|
|
632
657
|
}
|
|
633
|
-
function
|
|
658
|
+
function hn(e, t, i, s) {
|
|
634
659
|
if (e.kind === "fixed")
|
|
635
|
-
return
|
|
660
|
+
return Et(
|
|
636
661
|
e.minCents,
|
|
637
662
|
t,
|
|
638
663
|
i,
|
|
639
664
|
s("common.freeOfCharge")
|
|
640
665
|
);
|
|
641
|
-
const r =
|
|
666
|
+
const r = Qe(e.minCents, t, i);
|
|
642
667
|
return e.kind === "range" && e.maxCents != null && Number.isFinite(e.maxCents) && e.maxCents > e.minCents ? s("practiceResults.card.priceRange", {
|
|
643
668
|
min: r,
|
|
644
|
-
max:
|
|
669
|
+
max: Qe(e.maxCents, t, i)
|
|
645
670
|
}) : s("practiceResults.card.priceFrom", { price: r });
|
|
646
671
|
}
|
|
647
|
-
const
|
|
672
|
+
const gn = Z(
|
|
648
673
|
"ds:min-w-0 ds:max-w-full ds:[overflow-wrap:anywhere]",
|
|
649
674
|
{
|
|
650
675
|
variants: {
|
|
@@ -652,23 +677,23 @@ const un = q(
|
|
|
652
677
|
}
|
|
653
678
|
}
|
|
654
679
|
);
|
|
655
|
-
function
|
|
680
|
+
function vn({
|
|
656
681
|
price: e,
|
|
657
682
|
cents: t,
|
|
658
683
|
currencyCode: i = "EUR"
|
|
659
684
|
}) {
|
|
660
|
-
var
|
|
661
|
-
const { t: s, i18n: r } =
|
|
662
|
-
() =>
|
|
663
|
-
{ kind:
|
|
685
|
+
var f;
|
|
686
|
+
const { t: s, i18n: r } = P("ui"), a = e && Number.isFinite(e.minCents) ? e : void 0, l = (a == null ? void 0 : a.kind) ?? "fixed", m = (a == null ? void 0 : a.minCents) ?? t, c = a == null ? void 0 : a.maxCents, o = T(
|
|
687
|
+
() => m == null ? void 0 : hn(
|
|
688
|
+
{ kind: l, minCents: m, maxCents: c },
|
|
664
689
|
i,
|
|
665
690
|
r.language ?? "en",
|
|
666
691
|
s
|
|
667
692
|
),
|
|
668
|
-
[
|
|
693
|
+
[l, m, c, i, r.language, s]
|
|
669
694
|
);
|
|
670
|
-
if (
|
|
671
|
-
const
|
|
695
|
+
if (o === void 0) return null;
|
|
696
|
+
const d = (f = a == null ? void 0 : a.label) == null ? void 0 : f.trim().replace(/:$/, "").trim(), p = d || s("practiceResults.card.firstVisitPrice");
|
|
672
697
|
return /* @__PURE__ */ g(
|
|
673
698
|
"span",
|
|
674
699
|
{
|
|
@@ -679,33 +704,33 @@ function mn({
|
|
|
679
704
|
"span",
|
|
680
705
|
{
|
|
681
706
|
dir: "auto",
|
|
682
|
-
title:
|
|
683
|
-
className:
|
|
684
|
-
practiceWritten: !!
|
|
707
|
+
title: p,
|
|
708
|
+
className: gn({
|
|
709
|
+
practiceWritten: !!d
|
|
685
710
|
}),
|
|
686
|
-
children:
|
|
711
|
+
children: p
|
|
687
712
|
}
|
|
688
713
|
),
|
|
689
714
|
/* @__PURE__ */ n("span", { className: "ds:sr-only", children: ": " }),
|
|
690
715
|
/* @__PURE__ */ n(
|
|
691
|
-
|
|
716
|
+
j,
|
|
692
717
|
{
|
|
693
718
|
variant: "accentSoft",
|
|
694
719
|
size: "lg",
|
|
695
720
|
dir: "auto",
|
|
696
721
|
className: "ds:h-auto ds:min-h-6 ds:min-w-0 ds:max-w-full ds:whitespace-normal ds:[overflow-wrap:anywhere]",
|
|
697
|
-
children:
|
|
722
|
+
children: o
|
|
698
723
|
}
|
|
699
724
|
)
|
|
700
725
|
]
|
|
701
726
|
}
|
|
702
727
|
);
|
|
703
728
|
}
|
|
704
|
-
function
|
|
705
|
-
const { t } =
|
|
729
|
+
function Oe({ time: e }) {
|
|
730
|
+
const { t } = P("ui");
|
|
706
731
|
return /* @__PURE__ */ g("span", { className: "type-body-sm ds:text-[var(--muted-foreground)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
707
732
|
/* @__PURE__ */ n(
|
|
708
|
-
|
|
733
|
+
Ut,
|
|
709
734
|
{
|
|
710
735
|
"aria-hidden": "true",
|
|
711
736
|
className: "ds:size-4 ds:text-[var(--primary)]"
|
|
@@ -714,7 +739,7 @@ function Le({ time: e }) {
|
|
|
714
739
|
t("practiceResults.nextSlot.summary", { time: e })
|
|
715
740
|
] });
|
|
716
741
|
}
|
|
717
|
-
function
|
|
742
|
+
function ct({
|
|
718
743
|
result: e,
|
|
719
744
|
openLabel: t,
|
|
720
745
|
bookLabel: i,
|
|
@@ -722,29 +747,29 @@ function et({
|
|
|
722
747
|
onOpenClick: r,
|
|
723
748
|
onBookClick: a
|
|
724
749
|
}) {
|
|
725
|
-
const { t:
|
|
750
|
+
const { t: l } = P("ui"), m = e.nextAvailableSlot, c = (m == null ? void 0 : m.bookingHref) ?? e.bookingHref ?? e.href, o = m && s ? l("practiceResults.nextSlot.cta", { time: s }) : i;
|
|
726
751
|
return /* @__PURE__ */ g("div", { className: "ds:mt-[var(--spacing-xs)] ds:flex ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)]", children: [
|
|
727
|
-
t !== void 0 ? /* @__PURE__ */ n(
|
|
752
|
+
t !== void 0 ? /* @__PURE__ */ n(pe, { intent: "secondary", size: "sm", asChild: !0, onClick: r, children: /* @__PURE__ */ g("a", { href: e.href, "data-component": "practice-result-open-cta", children: [
|
|
728
753
|
t,
|
|
729
754
|
" ",
|
|
730
755
|
/* @__PURE__ */ n("span", { className: "ds:sr-only", children: e.name })
|
|
731
756
|
] }) }) : null,
|
|
732
757
|
/* @__PURE__ */ n(
|
|
733
|
-
|
|
758
|
+
pe,
|
|
734
759
|
{
|
|
735
760
|
intent: "primary",
|
|
736
761
|
size: "sm",
|
|
737
762
|
asChild: !0,
|
|
738
|
-
startIcon: /* @__PURE__ */ n(
|
|
763
|
+
startIcon: /* @__PURE__ */ n(Gt, { "aria-hidden": "true" }),
|
|
739
764
|
onClick: a,
|
|
740
765
|
children: /* @__PURE__ */ g(
|
|
741
766
|
"a",
|
|
742
767
|
{
|
|
743
|
-
href:
|
|
768
|
+
href: c,
|
|
744
769
|
"data-component": "practice-result-book-cta",
|
|
745
|
-
"data-slot-aware":
|
|
770
|
+
"data-slot-aware": m ? "true" : void 0,
|
|
746
771
|
children: [
|
|
747
|
-
|
|
772
|
+
o,
|
|
748
773
|
" ",
|
|
749
774
|
/* @__PURE__ */ n("span", { className: "ds:sr-only", children: e.name })
|
|
750
775
|
]
|
|
@@ -754,7 +779,7 @@ function et({
|
|
|
754
779
|
)
|
|
755
780
|
] });
|
|
756
781
|
}
|
|
757
|
-
const
|
|
782
|
+
const dt = Z(
|
|
758
783
|
[
|
|
759
784
|
"ds:@container/result-card ds:relative ds:flex ds:w-full ds:cursor-pointer",
|
|
760
785
|
"ds:rounded-[var(--radius-lg)]",
|
|
@@ -792,18 +817,18 @@ const tt = q(
|
|
|
792
817
|
},
|
|
793
818
|
defaultVariants: { density: "compact" }
|
|
794
819
|
}
|
|
795
|
-
),
|
|
820
|
+
), bn = Z([
|
|
796
821
|
"ds:text-[var(--foreground)] ds:no-underline ds:hover:underline",
|
|
797
822
|
"ds:rounded-[var(--radius-xs)]",
|
|
798
823
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
799
824
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
800
825
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
801
826
|
]);
|
|
802
|
-
function
|
|
827
|
+
function xn({
|
|
803
828
|
result: e,
|
|
804
829
|
headingLevel: t
|
|
805
830
|
}) {
|
|
806
|
-
const i = `h${
|
|
831
|
+
const i = `h${De(t)}`;
|
|
807
832
|
return /* @__PURE__ */ n(
|
|
808
833
|
i,
|
|
809
834
|
{
|
|
@@ -816,20 +841,20 @@ function pn({
|
|
|
816
841
|
href: e.href,
|
|
817
842
|
dir: "auto",
|
|
818
843
|
"data-component": "practice-result-name-link",
|
|
819
|
-
className:
|
|
844
|
+
className: bn(),
|
|
820
845
|
children: e.name
|
|
821
846
|
}
|
|
822
847
|
)
|
|
823
848
|
}
|
|
824
849
|
);
|
|
825
850
|
}
|
|
826
|
-
function
|
|
851
|
+
function ut({
|
|
827
852
|
result: e,
|
|
828
853
|
headingLevel: t,
|
|
829
854
|
selected: i = !1
|
|
830
855
|
}) {
|
|
831
856
|
var r, a;
|
|
832
|
-
const { t: s } =
|
|
857
|
+
const { t: s } = P("ui");
|
|
833
858
|
return /* @__PURE__ */ n(
|
|
834
859
|
"div",
|
|
835
860
|
{
|
|
@@ -838,27 +863,27 @@ function nt({
|
|
|
838
863
|
children: /* @__PURE__ */ g("div", { className: "ds:flex ds:min-w-0 ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)] ds:sm:@min-[280px]/result-heading:flex-row ds:sm:@min-[280px]/result-heading:gap-[var(--spacing-md)]", children: [
|
|
839
864
|
/* @__PURE__ */ g("div", { className: "ds:flex ds:min-w-0 ds:w-full ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
840
865
|
/* @__PURE__ */ g("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
841
|
-
/* @__PURE__ */ n(
|
|
842
|
-
((r = e.location) == null ? void 0 : r.distanceKm) != null ? /* @__PURE__ */ n(
|
|
866
|
+
/* @__PURE__ */ n(xn, { result: e, headingLevel: t }),
|
|
867
|
+
((r = e.location) == null ? void 0 : r.distanceKm) != null ? /* @__PURE__ */ n(cn, { distanceKm: e.location.distanceKm }) : null,
|
|
843
868
|
i ? /* @__PURE__ */ n(
|
|
844
|
-
|
|
869
|
+
j,
|
|
845
870
|
{
|
|
846
871
|
variant: "brand",
|
|
847
872
|
"data-component": "practice-result-selected-tag",
|
|
848
|
-
leading: /* @__PURE__ */ n(
|
|
873
|
+
leading: /* @__PURE__ */ n(he, { "aria-hidden": "true" }),
|
|
849
874
|
children: s("practiceResults.selectedOnMap")
|
|
850
875
|
}
|
|
851
876
|
) : null
|
|
852
877
|
] }),
|
|
853
878
|
e.subtitle ? /* @__PURE__ */ n("span", { className: "type-body-sm ds:text-[var(--muted-foreground)]", children: e.subtitle }) : null,
|
|
854
|
-
/* @__PURE__ */ n(
|
|
879
|
+
/* @__PURE__ */ n(mn, { tagline: e.tagline, lang: e.contentLang }),
|
|
855
880
|
(a = e.location) != null && a.address ? /* @__PURE__ */ g(
|
|
856
881
|
"span",
|
|
857
882
|
{
|
|
858
883
|
"data-component": "practice-result-address",
|
|
859
884
|
className: "type-meta ds:text-[var(--muted-foreground)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
860
885
|
children: [
|
|
861
|
-
/* @__PURE__ */ n(
|
|
886
|
+
/* @__PURE__ */ n(he, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
|
|
862
887
|
/* @__PURE__ */ n(
|
|
863
888
|
"span",
|
|
864
889
|
{
|
|
@@ -873,7 +898,7 @@ function nt({
|
|
|
873
898
|
) : null
|
|
874
899
|
] }),
|
|
875
900
|
/* @__PURE__ */ n(
|
|
876
|
-
|
|
901
|
+
vn,
|
|
877
902
|
{
|
|
878
903
|
price: e.firstVisitPrice,
|
|
879
904
|
cents: e.firstVisitPriceCents,
|
|
@@ -884,55 +909,48 @@ function nt({
|
|
|
884
909
|
}
|
|
885
910
|
);
|
|
886
911
|
}
|
|
887
|
-
function
|
|
912
|
+
function mt(e) {
|
|
888
913
|
const t = e.target.closest(
|
|
889
914
|
'a, button, [role="button"], input, select, textarea, label'
|
|
890
915
|
);
|
|
891
916
|
return t !== null && t !== e.currentTarget && e.currentTarget.contains(t);
|
|
892
917
|
}
|
|
893
|
-
function
|
|
918
|
+
function ve() {
|
|
894
919
|
return !(typeof window.matchMedia == "function" && !window.matchMedia("(hover: hover)").matches);
|
|
895
920
|
}
|
|
896
|
-
function
|
|
897
|
-
try {
|
|
898
|
-
return e.matches(":focus-visible");
|
|
899
|
-
} catch {
|
|
900
|
-
return !0;
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
function it(e) {
|
|
921
|
+
function ft(e) {
|
|
904
922
|
if (e)
|
|
905
923
|
return (t) => {
|
|
906
924
|
const i = document.activeElement;
|
|
907
|
-
i && t.currentTarget.contains(i) &&
|
|
925
|
+
i && t.currentTarget.contains(i) && He(i) || e();
|
|
908
926
|
};
|
|
909
927
|
}
|
|
910
|
-
function
|
|
928
|
+
function pt(e) {
|
|
911
929
|
if (e)
|
|
912
930
|
return (t) => {
|
|
913
931
|
t.currentTarget.contains(t.relatedTarget) || e();
|
|
914
932
|
};
|
|
915
933
|
}
|
|
916
|
-
function
|
|
934
|
+
function wn({
|
|
917
935
|
result: e,
|
|
918
936
|
headingLevel: t,
|
|
919
937
|
highlighted: i,
|
|
920
938
|
selected: s = !1,
|
|
921
939
|
onSelect: r,
|
|
922
940
|
onOpenClick: a,
|
|
923
|
-
onHover:
|
|
924
|
-
onLeave:
|
|
925
|
-
density:
|
|
926
|
-
openLabel:
|
|
927
|
-
bookLabel:
|
|
928
|
-
onBookClick:
|
|
929
|
-
nextSlotText:
|
|
941
|
+
onHover: l,
|
|
942
|
+
onLeave: m,
|
|
943
|
+
density: c = "compact",
|
|
944
|
+
openLabel: o,
|
|
945
|
+
bookLabel: d,
|
|
946
|
+
onBookClick: p,
|
|
947
|
+
nextSlotText: f,
|
|
930
948
|
maxInsuranceChips: x = 3,
|
|
931
949
|
maxLanguageChips: b = 4,
|
|
932
|
-
children:
|
|
950
|
+
children: y
|
|
933
951
|
}) {
|
|
934
|
-
var
|
|
935
|
-
const { t:
|
|
952
|
+
var D, W, ee, Q;
|
|
953
|
+
const { t: N, i18n: k } = P("ui"), I = e.rating, M = (((D = e.languages) == null ? void 0 : D.length) ?? 0) > 0, R = (((W = e.insurances) == null ? void 0 : W.length) ?? 0) > 0, h = e.specializedInFearPatients, L = M || R || h, _ = (e.languages ?? []).slice(0, b), B = (((ee = e.languages) == null ? void 0 : ee.length) ?? 0) - _.length, z = (e.insurances ?? []).slice(0, x), v = (((Q = e.insurances) == null ? void 0 : Q.length) ?? 0) - z.length;
|
|
936
954
|
return (
|
|
937
955
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events -- card is role="group" by design (axe nested-interactive); click handler is mouse-only sync.
|
|
938
956
|
/* @__PURE__ */ g(
|
|
@@ -944,17 +962,17 @@ function hn({
|
|
|
944
962
|
"data-selected": s ? "true" : "false",
|
|
945
963
|
role: "group",
|
|
946
964
|
"aria-labelledby": `practice-result-${e.id}-name`,
|
|
947
|
-
onClick: (
|
|
948
|
-
|
|
965
|
+
onClick: (O) => {
|
|
966
|
+
mt(O) || r();
|
|
949
967
|
},
|
|
950
|
-
onMouseEnter: () =>
|
|
951
|
-
onFocus: (
|
|
952
|
-
onMouseLeave:
|
|
953
|
-
onBlur:
|
|
954
|
-
className:
|
|
968
|
+
onMouseEnter: () => l(ve()),
|
|
969
|
+
onFocus: (O) => l(He(O.target)),
|
|
970
|
+
onMouseLeave: ft(m),
|
|
971
|
+
onBlur: pt(m),
|
|
972
|
+
className: dt({ density: c }),
|
|
955
973
|
children: [
|
|
956
974
|
/* @__PURE__ */ n(
|
|
957
|
-
|
|
975
|
+
Ae,
|
|
958
976
|
{
|
|
959
977
|
src: e.imageUrl,
|
|
960
978
|
alt: e.imageAlt,
|
|
@@ -968,7 +986,7 @@ function hn({
|
|
|
968
986
|
),
|
|
969
987
|
/* @__PURE__ */ g("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
970
988
|
/* @__PURE__ */ n(
|
|
971
|
-
|
|
989
|
+
ut,
|
|
972
990
|
{
|
|
973
991
|
result: e,
|
|
974
992
|
headingLevel: t,
|
|
@@ -976,56 +994,56 @@ function hn({
|
|
|
976
994
|
}
|
|
977
995
|
),
|
|
978
996
|
I && I.count > 0 ? /* @__PURE__ */ n(
|
|
979
|
-
|
|
997
|
+
Fe,
|
|
980
998
|
{
|
|
981
999
|
value: I.value,
|
|
982
1000
|
reviews: { count: I.count },
|
|
983
1001
|
size: "sm"
|
|
984
1002
|
}
|
|
985
1003
|
) : null,
|
|
986
|
-
/* @__PURE__ */ n(
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
1004
|
+
/* @__PURE__ */ n(ot, { review: e.latestReview }),
|
|
1005
|
+
L ? /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
1006
|
+
_.map((O) => /* @__PURE__ */ n(
|
|
1007
|
+
j,
|
|
990
1008
|
{
|
|
991
1009
|
variant: "neutral",
|
|
992
|
-
leading: /* @__PURE__ */ n(
|
|
993
|
-
children:
|
|
1010
|
+
leading: /* @__PURE__ */ n(tt, { "aria-hidden": "true" }),
|
|
1011
|
+
children: it(O, N, k)
|
|
994
1012
|
},
|
|
995
|
-
`lang-${
|
|
1013
|
+
`lang-${O}`
|
|
996
1014
|
)),
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1015
|
+
B > 0 ? /* @__PURE__ */ n(j, { variant: "neutral", children: `+${B}` }) : null,
|
|
1016
|
+
z.map((O) => /* @__PURE__ */ n(
|
|
1017
|
+
j,
|
|
1000
1018
|
{
|
|
1001
1019
|
variant: "info",
|
|
1002
|
-
leading: /* @__PURE__ */ n(
|
|
1003
|
-
children:
|
|
1020
|
+
leading: /* @__PURE__ */ n(nt, { "aria-hidden": "true" }),
|
|
1021
|
+
children: O
|
|
1004
1022
|
},
|
|
1005
|
-
`ins-${
|
|
1023
|
+
`ins-${O}`
|
|
1006
1024
|
)),
|
|
1007
|
-
|
|
1008
|
-
|
|
1025
|
+
v > 0 ? /* @__PURE__ */ n(j, { variant: "neutral", children: `+${v}` }) : null,
|
|
1026
|
+
h ? /* @__PURE__ */ n(j, { variant: "info", leading: /* @__PURE__ */ n(at, { "aria-hidden": "true" }), children: N("practiceResults.fearPatient.label") }) : null
|
|
1009
1027
|
] }) : null,
|
|
1010
1028
|
/* @__PURE__ */ n(
|
|
1011
|
-
|
|
1029
|
+
lt,
|
|
1012
1030
|
{
|
|
1013
1031
|
description: e.description,
|
|
1014
1032
|
density: "compact",
|
|
1015
1033
|
lang: e.contentLang
|
|
1016
1034
|
}
|
|
1017
1035
|
),
|
|
1018
|
-
e.nextAvailableSlot &&
|
|
1019
|
-
|
|
1036
|
+
e.nextAvailableSlot && f ? /* @__PURE__ */ n(Oe, { time: f }) : null,
|
|
1037
|
+
y,
|
|
1020
1038
|
/* @__PURE__ */ n(
|
|
1021
|
-
|
|
1039
|
+
ct,
|
|
1022
1040
|
{
|
|
1023
1041
|
result: e,
|
|
1024
|
-
openLabel:
|
|
1025
|
-
bookLabel:
|
|
1026
|
-
nextSlotText:
|
|
1042
|
+
openLabel: o,
|
|
1043
|
+
bookLabel: d,
|
|
1044
|
+
nextSlotText: f,
|
|
1027
1045
|
onOpenClick: a,
|
|
1028
|
-
onBookClick:
|
|
1046
|
+
onBookClick: p
|
|
1029
1047
|
}
|
|
1030
1048
|
)
|
|
1031
1049
|
] })
|
|
@@ -1034,22 +1052,22 @@ function hn({
|
|
|
1034
1052
|
)
|
|
1035
1053
|
);
|
|
1036
1054
|
}
|
|
1037
|
-
function
|
|
1055
|
+
function yn({
|
|
1038
1056
|
result: e,
|
|
1039
1057
|
headingLevel: t,
|
|
1040
1058
|
apiKey: i,
|
|
1041
1059
|
highlighted: s,
|
|
1042
1060
|
selected: r = !1,
|
|
1043
1061
|
onSelect: a,
|
|
1044
|
-
onOpenClick:
|
|
1045
|
-
onBookClick:
|
|
1046
|
-
onHover:
|
|
1047
|
-
onLeave:
|
|
1048
|
-
openLabel:
|
|
1049
|
-
bookLabel:
|
|
1062
|
+
onOpenClick: l,
|
|
1063
|
+
onBookClick: m,
|
|
1064
|
+
onHover: c,
|
|
1065
|
+
onLeave: o,
|
|
1066
|
+
openLabel: d,
|
|
1067
|
+
bookLabel: p
|
|
1050
1068
|
}) {
|
|
1051
|
-
var
|
|
1052
|
-
const { t:
|
|
1069
|
+
var M, R;
|
|
1070
|
+
const { t: f, i18n: x } = P("ui"), b = T(() => {
|
|
1053
1071
|
if (e.nextAvailableSlot)
|
|
1054
1072
|
try {
|
|
1055
1073
|
return new Intl.DateTimeFormat(x.language, {
|
|
@@ -1060,7 +1078,7 @@ function gn({
|
|
|
1060
1078
|
} catch {
|
|
1061
1079
|
return e.nextAvailableSlot.dateTime;
|
|
1062
1080
|
}
|
|
1063
|
-
}, [e.nextAvailableSlot, x.language]),
|
|
1081
|
+
}, [e.nextAvailableSlot, x.language]), y = (((M = e.languages) == null ? void 0 : M.length) ?? 0) > 0, N = (((R = e.insurances) == null ? void 0 : R.length) ?? 0) > 0, k = e.specializedInFearPatients, I = y || N || k;
|
|
1064
1082
|
return (
|
|
1065
1083
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events -- card is role="group" by design (axe nested-interactive); click handler is mouse-only sync.
|
|
1066
1084
|
/* @__PURE__ */ g(
|
|
@@ -1073,18 +1091,19 @@ function gn({
|
|
|
1073
1091
|
"data-selected": r ? "true" : "false",
|
|
1074
1092
|
role: "group",
|
|
1075
1093
|
"aria-labelledby": `practice-result-${e.id}-name`,
|
|
1076
|
-
onClick: (
|
|
1077
|
-
|
|
1094
|
+
onClick: (h) => {
|
|
1095
|
+
mt(h) || a();
|
|
1078
1096
|
},
|
|
1079
|
-
onMouseEnter: () =>
|
|
1080
|
-
onFocus: (
|
|
1081
|
-
onMouseLeave:
|
|
1082
|
-
onBlur:
|
|
1083
|
-
className:
|
|
1097
|
+
onMouseEnter: () => c(ve()),
|
|
1098
|
+
onFocus: (h) => c(He(h.target)),
|
|
1099
|
+
onMouseLeave: ft(o),
|
|
1100
|
+
onBlur: pt(o),
|
|
1101
|
+
className: dt({ density: "rich" }),
|
|
1084
1102
|
children: [
|
|
1085
1103
|
e.location ? /* @__PURE__ */ n("div", { className: "ds:hidden ds:@min-[640px]/result-card:block", children: /* @__PURE__ */ n(
|
|
1086
|
-
|
|
1104
|
+
un,
|
|
1087
1105
|
{
|
|
1106
|
+
image: e.mapImage,
|
|
1088
1107
|
apiKey: i,
|
|
1089
1108
|
center: {
|
|
1090
1109
|
lat: e.location.lat,
|
|
@@ -1097,7 +1116,7 @@ function gn({
|
|
|
1097
1116
|
/* @__PURE__ */ g("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1098
1117
|
/* @__PURE__ */ g("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-md)]", children: [
|
|
1099
1118
|
/* @__PURE__ */ n(
|
|
1100
|
-
|
|
1119
|
+
Ae,
|
|
1101
1120
|
{
|
|
1102
1121
|
src: e.imageUrl,
|
|
1103
1122
|
alt: e.imageAlt,
|
|
@@ -1110,7 +1129,7 @@ function gn({
|
|
|
1110
1129
|
}
|
|
1111
1130
|
),
|
|
1112
1131
|
/* @__PURE__ */ n(
|
|
1113
|
-
|
|
1132
|
+
ut,
|
|
1114
1133
|
{
|
|
1115
1134
|
result: e,
|
|
1116
1135
|
headingLevel: t,
|
|
@@ -1119,53 +1138,53 @@ function gn({
|
|
|
1119
1138
|
)
|
|
1120
1139
|
] }),
|
|
1121
1140
|
e.rating && e.rating.count > 0 ? /* @__PURE__ */ n(
|
|
1122
|
-
|
|
1141
|
+
Fe,
|
|
1123
1142
|
{
|
|
1124
1143
|
value: e.rating.value,
|
|
1125
1144
|
reviews: { count: e.rating.count },
|
|
1126
1145
|
size: "md"
|
|
1127
1146
|
}
|
|
1128
1147
|
) : null,
|
|
1129
|
-
/* @__PURE__ */ n(
|
|
1148
|
+
/* @__PURE__ */ n(ot, { review: e.latestReview }),
|
|
1130
1149
|
I ? /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
1131
|
-
|
|
1132
|
-
|
|
1150
|
+
y ? (e.languages ?? []).map((h) => /* @__PURE__ */ n(
|
|
1151
|
+
j,
|
|
1133
1152
|
{
|
|
1134
1153
|
variant: "neutral",
|
|
1135
|
-
leading: /* @__PURE__ */ n(
|
|
1136
|
-
children:
|
|
1154
|
+
leading: /* @__PURE__ */ n(tt, { "aria-hidden": "true" }),
|
|
1155
|
+
children: it(h, f, x)
|
|
1137
1156
|
},
|
|
1138
|
-
`lang-${
|
|
1157
|
+
`lang-${h}`
|
|
1139
1158
|
)) : null,
|
|
1140
|
-
|
|
1141
|
-
|
|
1159
|
+
N ? (e.insurances ?? []).map((h) => /* @__PURE__ */ n(
|
|
1160
|
+
j,
|
|
1142
1161
|
{
|
|
1143
1162
|
variant: "info",
|
|
1144
|
-
leading: /* @__PURE__ */ n(
|
|
1145
|
-
children:
|
|
1163
|
+
leading: /* @__PURE__ */ n(nt, { "aria-hidden": "true" }),
|
|
1164
|
+
children: h
|
|
1146
1165
|
},
|
|
1147
|
-
`ins-${
|
|
1166
|
+
`ins-${h}`
|
|
1148
1167
|
)) : null,
|
|
1149
|
-
|
|
1168
|
+
k ? /* @__PURE__ */ n(j, { variant: "info", leading: /* @__PURE__ */ n(at, { "aria-hidden": "true" }), children: f("practiceResults.fearPatient.label") }) : null
|
|
1150
1169
|
] }) : null,
|
|
1151
1170
|
/* @__PURE__ */ n(
|
|
1152
|
-
|
|
1171
|
+
lt,
|
|
1153
1172
|
{
|
|
1154
1173
|
description: e.description,
|
|
1155
1174
|
density: "rich",
|
|
1156
1175
|
lang: e.contentLang
|
|
1157
1176
|
}
|
|
1158
1177
|
),
|
|
1159
|
-
e.nextAvailableSlot && b ? /* @__PURE__ */ n(
|
|
1178
|
+
e.nextAvailableSlot && b ? /* @__PURE__ */ n(Oe, { time: b }) : null,
|
|
1160
1179
|
/* @__PURE__ */ n(
|
|
1161
|
-
|
|
1180
|
+
ct,
|
|
1162
1181
|
{
|
|
1163
1182
|
result: e,
|
|
1164
|
-
openLabel:
|
|
1165
|
-
bookLabel:
|
|
1183
|
+
openLabel: d,
|
|
1184
|
+
bookLabel: p,
|
|
1166
1185
|
nextSlotText: b,
|
|
1167
|
-
onOpenClick:
|
|
1168
|
-
onBookClick:
|
|
1186
|
+
onOpenClick: l,
|
|
1187
|
+
onBookClick: m
|
|
1169
1188
|
}
|
|
1170
1189
|
)
|
|
1171
1190
|
] })
|
|
@@ -1174,56 +1193,56 @@ function gn({
|
|
|
1174
1193
|
)
|
|
1175
1194
|
);
|
|
1176
1195
|
}
|
|
1177
|
-
function
|
|
1196
|
+
function Ve({
|
|
1178
1197
|
results: e,
|
|
1179
1198
|
headingLevel: t,
|
|
1180
1199
|
hoveredId: i,
|
|
1181
1200
|
selectedId: s,
|
|
1182
1201
|
softId: r,
|
|
1183
1202
|
onCardHover: a,
|
|
1184
|
-
onCardLeave:
|
|
1185
|
-
onCardSelect:
|
|
1186
|
-
onCardOpenClick:
|
|
1187
|
-
onCardBookClick:
|
|
1188
|
-
openLabel:
|
|
1189
|
-
bookLabel:
|
|
1190
|
-
formatNextSlot:
|
|
1203
|
+
onCardLeave: l,
|
|
1204
|
+
onCardSelect: m,
|
|
1205
|
+
onCardOpenClick: c,
|
|
1206
|
+
onCardBookClick: o,
|
|
1207
|
+
openLabel: d,
|
|
1208
|
+
bookLabel: p,
|
|
1209
|
+
formatNextSlot: f,
|
|
1191
1210
|
onLoadMore: x,
|
|
1192
1211
|
loadingMore: b,
|
|
1193
|
-
loadingSkeletons:
|
|
1194
|
-
density:
|
|
1195
|
-
apiKey:
|
|
1212
|
+
loadingSkeletons: y,
|
|
1213
|
+
density: N = "compact",
|
|
1214
|
+
apiKey: k,
|
|
1196
1215
|
containerRef: I
|
|
1197
1216
|
}) {
|
|
1198
|
-
const { t:
|
|
1199
|
-
return
|
|
1217
|
+
const { t: M } = P("ui"), R = F(null);
|
|
1218
|
+
return J(() => {
|
|
1200
1219
|
if (!x) return;
|
|
1201
|
-
const
|
|
1202
|
-
if (!
|
|
1203
|
-
const
|
|
1204
|
-
(
|
|
1205
|
-
for (const
|
|
1206
|
-
|
|
1220
|
+
const h = R.current;
|
|
1221
|
+
if (!h || typeof IntersectionObserver > "u") return;
|
|
1222
|
+
const L = new IntersectionObserver(
|
|
1223
|
+
(_) => {
|
|
1224
|
+
for (const B of _)
|
|
1225
|
+
B.isIntersecting && (q("serp_load_more", {
|
|
1207
1226
|
currentCount: e.length
|
|
1208
1227
|
}), x());
|
|
1209
1228
|
},
|
|
1210
1229
|
{ root: null, rootMargin: "200px" }
|
|
1211
1230
|
);
|
|
1212
|
-
return
|
|
1213
|
-
}, [x, e.length]),
|
|
1231
|
+
return L.observe(h), () => L.disconnect();
|
|
1232
|
+
}, [x, e.length]), y ? /* @__PURE__ */ n(
|
|
1214
1233
|
"div",
|
|
1215
1234
|
{
|
|
1216
1235
|
role: "status",
|
|
1217
1236
|
"aria-live": "polite",
|
|
1218
|
-
"aria-label":
|
|
1237
|
+
"aria-label": M("practiceResults.loading"),
|
|
1219
1238
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
1220
|
-
children: Array.from({ length: 4 }).map((
|
|
1221
|
-
|
|
1239
|
+
children: Array.from({ length: 4 }).map((h, L) => /* @__PURE__ */ n(
|
|
1240
|
+
Dt,
|
|
1222
1241
|
{
|
|
1223
1242
|
variant: "rounded",
|
|
1224
|
-
height:
|
|
1243
|
+
height: N === "rich" ? "11rem" : "7rem"
|
|
1225
1244
|
},
|
|
1226
|
-
`pr-skel-${
|
|
1245
|
+
`pr-skel-${L}`
|
|
1227
1246
|
))
|
|
1228
1247
|
}
|
|
1229
1248
|
) : /* @__PURE__ */ g(
|
|
@@ -1232,56 +1251,56 @@ function Me({
|
|
|
1232
1251
|
ref: I,
|
|
1233
1252
|
"data-component": "practice-results-list",
|
|
1234
1253
|
role: "list",
|
|
1235
|
-
"aria-label":
|
|
1254
|
+
"aria-label": M("practiceResults.list.label"),
|
|
1236
1255
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:overflow-y-auto",
|
|
1237
1256
|
children: [
|
|
1238
|
-
e.map((
|
|
1239
|
-
|
|
1257
|
+
e.map((h) => /* @__PURE__ */ n("div", { role: "listitem", children: N === "rich" ? /* @__PURE__ */ n(
|
|
1258
|
+
yn,
|
|
1240
1259
|
{
|
|
1241
|
-
result:
|
|
1260
|
+
result: h,
|
|
1242
1261
|
headingLevel: t,
|
|
1243
|
-
apiKey:
|
|
1244
|
-
highlighted: i ===
|
|
1245
|
-
selected: s ===
|
|
1246
|
-
onSelect: () =>
|
|
1247
|
-
onOpenClick: () =>
|
|
1248
|
-
onBookClick: () =>
|
|
1249
|
-
onHover: (
|
|
1250
|
-
onLeave:
|
|
1251
|
-
openLabel:
|
|
1252
|
-
bookLabel:
|
|
1262
|
+
apiKey: k,
|
|
1263
|
+
highlighted: i === h.id || s === h.id || r === h.id,
|
|
1264
|
+
selected: s === h.id,
|
|
1265
|
+
onSelect: () => m(h.id),
|
|
1266
|
+
onOpenClick: () => c(h.id),
|
|
1267
|
+
onBookClick: () => o(h.id),
|
|
1268
|
+
onHover: (L) => a(h.id, L),
|
|
1269
|
+
onLeave: l,
|
|
1270
|
+
openLabel: d,
|
|
1271
|
+
bookLabel: p
|
|
1253
1272
|
}
|
|
1254
1273
|
) : /* @__PURE__ */ n(
|
|
1255
|
-
|
|
1274
|
+
wn,
|
|
1256
1275
|
{
|
|
1257
|
-
result:
|
|
1276
|
+
result: h,
|
|
1258
1277
|
headingLevel: t,
|
|
1259
|
-
highlighted: i ===
|
|
1260
|
-
selected: s ===
|
|
1261
|
-
onSelect: () =>
|
|
1262
|
-
onOpenClick: () =>
|
|
1263
|
-
onBookClick: () =>
|
|
1264
|
-
onHover: (
|
|
1265
|
-
onLeave:
|
|
1266
|
-
openLabel:
|
|
1267
|
-
bookLabel:
|
|
1268
|
-
nextSlotText:
|
|
1278
|
+
highlighted: i === h.id || s === h.id || r === h.id,
|
|
1279
|
+
selected: s === h.id,
|
|
1280
|
+
onSelect: () => m(h.id),
|
|
1281
|
+
onOpenClick: () => c(h.id),
|
|
1282
|
+
onBookClick: () => o(h.id),
|
|
1283
|
+
onHover: (L) => a(h.id, L),
|
|
1284
|
+
onLeave: l,
|
|
1285
|
+
openLabel: d,
|
|
1286
|
+
bookLabel: p,
|
|
1287
|
+
nextSlotText: f(h)
|
|
1269
1288
|
}
|
|
1270
|
-
) },
|
|
1289
|
+
) }, h.id)),
|
|
1271
1290
|
x ? /* @__PURE__ */ n(
|
|
1272
1291
|
"div",
|
|
1273
1292
|
{
|
|
1274
|
-
ref:
|
|
1293
|
+
ref: R,
|
|
1275
1294
|
"aria-hidden": "true",
|
|
1276
1295
|
className: "ds:flex ds:items-center ds:justify-center ds:py-[var(--spacing-md)]",
|
|
1277
|
-
children: b ? /* @__PURE__ */ n(
|
|
1296
|
+
children: b ? /* @__PURE__ */ n($t, { size: "md", variant: "pulse" }) : /* @__PURE__ */ n("span", { className: "ds:size-1" })
|
|
1278
1297
|
}
|
|
1279
1298
|
) : null
|
|
1280
1299
|
]
|
|
1281
1300
|
}
|
|
1282
1301
|
);
|
|
1283
1302
|
}
|
|
1284
|
-
function
|
|
1303
|
+
function kn({
|
|
1285
1304
|
result: e,
|
|
1286
1305
|
nextSlotText: t
|
|
1287
1306
|
}) {
|
|
@@ -1293,7 +1312,7 @@ function vn({
|
|
|
1293
1312
|
className: "ds:flex ds:[inline-size:16rem] ds:max-w-full ds:items-center ds:gap-[var(--spacing-sm)] ds:rounded-[var(--radius-lg)] ds:border ds:border-[color:var(--card-border)] ds:bg-[var(--card)] ds:p-[var(--spacing-sm)] ds:text-[var(--card-foreground)] ds:shadow-[var(--shadow-lg)]",
|
|
1294
1313
|
children: [
|
|
1295
1314
|
/* @__PURE__ */ n(
|
|
1296
|
-
|
|
1315
|
+
Ae,
|
|
1297
1316
|
{
|
|
1298
1317
|
src: e.imageUrl,
|
|
1299
1318
|
name: e.name,
|
|
@@ -1314,38 +1333,41 @@ function vn({
|
|
|
1314
1333
|
}
|
|
1315
1334
|
),
|
|
1316
1335
|
i && i.count > 0 ? /* @__PURE__ */ n(
|
|
1317
|
-
|
|
1336
|
+
Fe,
|
|
1318
1337
|
{
|
|
1319
1338
|
value: i.value,
|
|
1320
1339
|
reviews: { count: i.count },
|
|
1321
1340
|
size: "sm"
|
|
1322
1341
|
}
|
|
1323
1342
|
) : null,
|
|
1324
|
-
e.nextAvailableSlot && t ? /* @__PURE__ */ n(
|
|
1343
|
+
e.nextAvailableSlot && t ? /* @__PURE__ */ n(Oe, { time: t }) : null
|
|
1325
1344
|
] })
|
|
1326
1345
|
]
|
|
1327
1346
|
}
|
|
1328
1347
|
);
|
|
1329
1348
|
}
|
|
1330
|
-
function
|
|
1349
|
+
function Ie({
|
|
1331
1350
|
results: e,
|
|
1332
1351
|
searchCentre: t,
|
|
1333
1352
|
zoom: i,
|
|
1334
1353
|
apiKey: s,
|
|
1335
1354
|
mapId: r,
|
|
1336
1355
|
hoveredId: a,
|
|
1337
|
-
selectedId:
|
|
1338
|
-
onMapClick:
|
|
1339
|
-
|
|
1356
|
+
selectedId: l,
|
|
1357
|
+
onMapClick: m,
|
|
1358
|
+
showMarkerCard: c = !1,
|
|
1359
|
+
formatNextSlot: o,
|
|
1360
|
+
onPinHoverChange: d,
|
|
1340
1361
|
onPinClick: p,
|
|
1341
|
-
onPinHover:
|
|
1342
|
-
onPinFirstInteract:
|
|
1343
|
-
onBoundsChange:
|
|
1344
|
-
consentGranted:
|
|
1345
|
-
onConsentRequest:
|
|
1346
|
-
|
|
1362
|
+
onPinHover: f,
|
|
1363
|
+
onPinFirstInteract: x,
|
|
1364
|
+
onBoundsChange: b,
|
|
1365
|
+
consentGranted: y,
|
|
1366
|
+
onConsentRequest: N,
|
|
1367
|
+
staticPreview: k,
|
|
1368
|
+
mapHandleRef: I
|
|
1347
1369
|
}) {
|
|
1348
|
-
const { t:
|
|
1370
|
+
const { t: M } = P("ui"), R = T(
|
|
1349
1371
|
() => e.filter(
|
|
1350
1372
|
(v) => !!v.location
|
|
1351
1373
|
).map((v) => ({
|
|
@@ -1357,36 +1379,36 @@ function ke({
|
|
|
1357
1379
|
label: v.name
|
|
1358
1380
|
})),
|
|
1359
1381
|
[e]
|
|
1360
|
-
),
|
|
1361
|
-
() =>
|
|
1362
|
-
[
|
|
1363
|
-
),
|
|
1364
|
-
() =>
|
|
1365
|
-
[
|
|
1366
|
-
),
|
|
1382
|
+
), h = T(
|
|
1383
|
+
() => R.map((v) => ({ ...v.position, id: v.id })),
|
|
1384
|
+
[R]
|
|
1385
|
+
), L = T(
|
|
1386
|
+
() => R.map((v) => v.id).sort().join("|"),
|
|
1387
|
+
[R]
|
|
1388
|
+
), _ = T(() => {
|
|
1367
1389
|
if (t) return t;
|
|
1368
|
-
const v =
|
|
1390
|
+
const v = sn(e);
|
|
1369
1391
|
return v ? {
|
|
1370
1392
|
lat: (v.north + v.south) / 2,
|
|
1371
1393
|
lng: (v.east + v.west) / 2
|
|
1372
1394
|
} : { lat: 45.4642, lng: 9.19 };
|
|
1373
|
-
}, [e, t]),
|
|
1374
|
-
() =>
|
|
1375
|
-
const
|
|
1376
|
-
return
|
|
1377
|
-
|
|
1395
|
+
}, [e, t]), B = T(
|
|
1396
|
+
() => c ? (v) => {
|
|
1397
|
+
const D = e.find((W) => W.id === v);
|
|
1398
|
+
return D ? /* @__PURE__ */ n(
|
|
1399
|
+
kn,
|
|
1378
1400
|
{
|
|
1379
|
-
result:
|
|
1380
|
-
nextSlotText:
|
|
1401
|
+
result: D,
|
|
1402
|
+
nextSlotText: o == null ? void 0 : o(D)
|
|
1381
1403
|
}
|
|
1382
1404
|
) : null;
|
|
1383
1405
|
} : void 0,
|
|
1384
|
-
[
|
|
1385
|
-
),
|
|
1386
|
-
(v, { userInteraction:
|
|
1387
|
-
|
|
1406
|
+
[c, o, e]
|
|
1407
|
+
), z = H(
|
|
1408
|
+
(v, { userInteraction: D }) => {
|
|
1409
|
+
b == null || b(v), D && q("serp_map_panned", { bounds: v });
|
|
1388
1410
|
},
|
|
1389
|
-
[
|
|
1411
|
+
[b]
|
|
1390
1412
|
);
|
|
1391
1413
|
return /* @__PURE__ */ n(
|
|
1392
1414
|
"div",
|
|
@@ -1394,30 +1416,32 @@ function ke({
|
|
|
1394
1416
|
"data-component": "practice-results-map-panel",
|
|
1395
1417
|
className: "ds:relative ds:flex ds:size-full ds:min-h-[24rem] ds:flex-col",
|
|
1396
1418
|
children: /* @__PURE__ */ n(
|
|
1397
|
-
|
|
1419
|
+
Bt,
|
|
1398
1420
|
{
|
|
1399
|
-
ref:
|
|
1421
|
+
ref: I,
|
|
1400
1422
|
apiKey: s ?? "",
|
|
1401
1423
|
mapId: r,
|
|
1402
|
-
center:
|
|
1424
|
+
center: _,
|
|
1403
1425
|
zoom: i,
|
|
1404
|
-
markers:
|
|
1405
|
-
fitToPoints:
|
|
1406
|
-
fitKey:
|
|
1407
|
-
selectedMarkerId:
|
|
1426
|
+
markers: R,
|
|
1427
|
+
fitToPoints: h,
|
|
1428
|
+
fitKey: L,
|
|
1429
|
+
selectedMarkerId: l,
|
|
1408
1430
|
hoveredMarkerId: a,
|
|
1409
|
-
renderMarkerCard:
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1431
|
+
renderMarkerCard: B,
|
|
1432
|
+
onMarkerHover: c ? d : void 0,
|
|
1433
|
+
consentGranted: !!y,
|
|
1434
|
+
staticPreview: k,
|
|
1435
|
+
onConsentRequest: N,
|
|
1436
|
+
onBoundsChange: z,
|
|
1413
1437
|
onMarkerClick: (v) => {
|
|
1414
1438
|
if (v == null) {
|
|
1415
|
-
|
|
1439
|
+
m();
|
|
1416
1440
|
return;
|
|
1417
1441
|
}
|
|
1418
|
-
|
|
1442
|
+
f(v), x(v), p(v);
|
|
1419
1443
|
},
|
|
1420
|
-
ariaLabel:
|
|
1444
|
+
ariaLabel: M("practiceResults.map.label"),
|
|
1421
1445
|
size: "fill",
|
|
1422
1446
|
surface: "bordered",
|
|
1423
1447
|
className: "ds:size-full"
|
|
@@ -1426,7 +1450,7 @@ function ke({
|
|
|
1426
1450
|
}
|
|
1427
1451
|
);
|
|
1428
1452
|
}
|
|
1429
|
-
function
|
|
1453
|
+
function Be({
|
|
1430
1454
|
variantBodyProps: e
|
|
1431
1455
|
}) {
|
|
1432
1456
|
const {
|
|
@@ -1435,116 +1459,116 @@ function Ae({
|
|
|
1435
1459
|
sortOptions: s,
|
|
1436
1460
|
onChange: r,
|
|
1437
1461
|
heading: a,
|
|
1438
|
-
intro:
|
|
1439
|
-
totalCount:
|
|
1440
|
-
searchCentre:
|
|
1462
|
+
intro: l,
|
|
1463
|
+
totalCount: m,
|
|
1464
|
+
searchCentre: c
|
|
1441
1465
|
} = e;
|
|
1442
|
-
return !a && !
|
|
1466
|
+
return !a && !l && m == null && t.length === 0 && s.length === 0 ? null : /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1443
1467
|
/* @__PURE__ */ n(
|
|
1444
|
-
|
|
1468
|
+
st,
|
|
1445
1469
|
{
|
|
1446
1470
|
heading: a,
|
|
1447
1471
|
headingLevel: e.headingLevel,
|
|
1448
|
-
intro:
|
|
1449
|
-
totalCount:
|
|
1450
|
-
searchCentreLabel:
|
|
1472
|
+
intro: l,
|
|
1473
|
+
totalCount: m,
|
|
1474
|
+
searchCentreLabel: c == null ? void 0 : c.label
|
|
1451
1475
|
}
|
|
1452
1476
|
),
|
|
1453
1477
|
t.length > 0 ? /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
1454
1478
|
/* @__PURE__ */ n(
|
|
1455
|
-
|
|
1479
|
+
rt,
|
|
1456
1480
|
{
|
|
1457
1481
|
facets: t,
|
|
1458
1482
|
value: i.facets,
|
|
1459
|
-
onChange: (
|
|
1483
|
+
onChange: (o) => r({ ...i, facets: o })
|
|
1460
1484
|
}
|
|
1461
1485
|
),
|
|
1462
1486
|
s.length > 0 ? /* @__PURE__ */ n(
|
|
1463
|
-
|
|
1487
|
+
Pe,
|
|
1464
1488
|
{
|
|
1465
1489
|
options: s,
|
|
1466
1490
|
value: i.sort ?? "relevance",
|
|
1467
|
-
onChange: (
|
|
1491
|
+
onChange: (o) => r({ ...i, sort: o })
|
|
1468
1492
|
}
|
|
1469
1493
|
) : null
|
|
1470
1494
|
] }) : s.length > 0 ? /* @__PURE__ */ n("div", { className: "ds:flex ds:justify-end", children: /* @__PURE__ */ n(
|
|
1471
|
-
|
|
1495
|
+
Pe,
|
|
1472
1496
|
{
|
|
1473
1497
|
options: s,
|
|
1474
1498
|
value: i.sort ?? "relevance",
|
|
1475
|
-
onChange: (
|
|
1499
|
+
onChange: (o) => r({ ...i, sort: o })
|
|
1476
1500
|
}
|
|
1477
1501
|
) }) : null
|
|
1478
1502
|
] });
|
|
1479
1503
|
}
|
|
1480
|
-
function
|
|
1504
|
+
function De(e) {
|
|
1481
1505
|
return Math.min(e + 1, 6);
|
|
1482
1506
|
}
|
|
1483
|
-
function
|
|
1507
|
+
function $e({
|
|
1484
1508
|
headingLevel: e
|
|
1485
1509
|
}) {
|
|
1486
|
-
const { t } =
|
|
1510
|
+
const { t } = P("ui");
|
|
1487
1511
|
return /* @__PURE__ */ n(
|
|
1488
|
-
|
|
1512
|
+
Vt,
|
|
1489
1513
|
{
|
|
1490
1514
|
variant: "no-results",
|
|
1491
|
-
headingLevel:
|
|
1515
|
+
headingLevel: De(e),
|
|
1492
1516
|
title: t("practiceResults.empty.title"),
|
|
1493
1517
|
description: t("practiceResults.empty.description")
|
|
1494
1518
|
}
|
|
1495
1519
|
);
|
|
1496
1520
|
}
|
|
1497
|
-
function
|
|
1521
|
+
function ze({
|
|
1498
1522
|
onRetry: e,
|
|
1499
1523
|
headingLevel: t
|
|
1500
1524
|
}) {
|
|
1501
|
-
const { t: i } =
|
|
1502
|
-
return /* @__PURE__ */ g(
|
|
1503
|
-
/* @__PURE__ */ n(
|
|
1504
|
-
/* @__PURE__ */ n(
|
|
1505
|
-
e ? /* @__PURE__ */ n(
|
|
1506
|
-
|
|
1525
|
+
const { t: i } = P("ui"), s = De(t);
|
|
1526
|
+
return /* @__PURE__ */ g(fe, { variant: "error", children: [
|
|
1527
|
+
/* @__PURE__ */ n(fe.Title, { as: `h${s}`, children: i("practiceResults.error.title") }),
|
|
1528
|
+
/* @__PURE__ */ n(fe.Description, { children: i("practiceResults.error.description") }),
|
|
1529
|
+
e ? /* @__PURE__ */ n(fe.Action, { children: /* @__PURE__ */ n(
|
|
1530
|
+
pe,
|
|
1507
1531
|
{
|
|
1508
1532
|
intent: "secondary",
|
|
1509
1533
|
size: "sm",
|
|
1510
|
-
startIcon: /* @__PURE__ */ n(
|
|
1534
|
+
startIcon: /* @__PURE__ */ n(qt, { "aria-hidden": "true" }),
|
|
1511
1535
|
onClick: e,
|
|
1512
1536
|
children: i("practiceResults.error.retry")
|
|
1513
1537
|
}
|
|
1514
1538
|
) }) : null
|
|
1515
1539
|
] });
|
|
1516
1540
|
}
|
|
1517
|
-
function
|
|
1541
|
+
function Cn(e) {
|
|
1518
1542
|
const {
|
|
1519
1543
|
results: t,
|
|
1520
1544
|
apiKey: i,
|
|
1521
1545
|
mapId: s,
|
|
1522
1546
|
zoom: r,
|
|
1523
1547
|
searchCentre: a,
|
|
1524
|
-
onLoadMore:
|
|
1525
|
-
loadingMore:
|
|
1526
|
-
loadingSkeletons:
|
|
1527
|
-
emptyResultsSlot:
|
|
1528
|
-
errorSlot:
|
|
1529
|
-
error:
|
|
1530
|
-
onRetry:
|
|
1548
|
+
onLoadMore: l,
|
|
1549
|
+
loadingMore: m,
|
|
1550
|
+
loadingSkeletons: c,
|
|
1551
|
+
emptyResultsSlot: o,
|
|
1552
|
+
errorSlot: d,
|
|
1553
|
+
error: p,
|
|
1554
|
+
onRetry: f,
|
|
1531
1555
|
hoveredId: x,
|
|
1532
1556
|
selectedId: b,
|
|
1533
|
-
onCardHover:
|
|
1534
|
-
onPinClick:
|
|
1535
|
-
consentGranted:
|
|
1557
|
+
onCardHover: y,
|
|
1558
|
+
onPinClick: N,
|
|
1559
|
+
consentGranted: k,
|
|
1536
1560
|
onConsentRequest: I,
|
|
1537
|
-
onBoundsChange:
|
|
1538
|
-
listContainerRef:
|
|
1539
|
-
} = e, { t:
|
|
1540
|
-
|
|
1561
|
+
onBoundsChange: M,
|
|
1562
|
+
listContainerRef: R
|
|
1563
|
+
} = e, { t: h } = P("ui"), [L, _] = G(!1), B = _e("(min-width: 1024px)"), z = p ? d ?? /* @__PURE__ */ n(ze, { onRetry: f, headingLevel: e.headingLevel }) : t.length === 0 && !c ? o ?? /* @__PURE__ */ n($e, { headingLevel: e.headingLevel }) : /* @__PURE__ */ n(
|
|
1564
|
+
Ve,
|
|
1541
1565
|
{
|
|
1542
1566
|
results: t,
|
|
1543
1567
|
headingLevel: e.headingLevel,
|
|
1544
1568
|
hoveredId: x,
|
|
1545
1569
|
selectedId: b,
|
|
1546
1570
|
softId: e.softId,
|
|
1547
|
-
onCardHover:
|
|
1571
|
+
onCardHover: y,
|
|
1548
1572
|
onCardLeave: e.onCardLeave,
|
|
1549
1573
|
onCardSelect: e.onCardSelect,
|
|
1550
1574
|
onCardOpenClick: e.onCardOpenClick,
|
|
@@ -1552,19 +1576,19 @@ function bn(e) {
|
|
|
1552
1576
|
openLabel: e.openLabel,
|
|
1553
1577
|
bookLabel: e.bookLabel,
|
|
1554
1578
|
formatNextSlot: e.formatNextSlot,
|
|
1555
|
-
onLoadMore:
|
|
1556
|
-
loadingMore:
|
|
1557
|
-
loadingSkeletons:
|
|
1579
|
+
onLoadMore: l,
|
|
1580
|
+
loadingMore: m,
|
|
1581
|
+
loadingSkeletons: c,
|
|
1558
1582
|
density: "compact",
|
|
1559
|
-
containerRef:
|
|
1583
|
+
containerRef: R
|
|
1560
1584
|
}
|
|
1561
1585
|
);
|
|
1562
1586
|
return /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
1563
|
-
/* @__PURE__ */ n(
|
|
1587
|
+
/* @__PURE__ */ n(Be, { variantBodyProps: e }),
|
|
1564
1588
|
/* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:lg:grid ds:lg:grid-cols-[55fr_45fr] ds:lg:gap-[var(--spacing-lg)] ds:lg:items-start", children: [
|
|
1565
|
-
/* @__PURE__ */ n("div", { className: "ds:min-w-0", children:
|
|
1589
|
+
/* @__PURE__ */ n("div", { className: "ds:min-w-0", children: z }),
|
|
1566
1590
|
/* @__PURE__ */ n("div", { className: "ds:hidden ds:lg:block ds:sticky ds:top-[var(--spacing-md)] ds:h-[40rem]", children: /* @__PURE__ */ n(
|
|
1567
|
-
|
|
1591
|
+
Ie,
|
|
1568
1592
|
{
|
|
1569
1593
|
results: t,
|
|
1570
1594
|
searchCentre: a,
|
|
@@ -1574,36 +1598,39 @@ function bn(e) {
|
|
|
1574
1598
|
hoveredId: e.mapHoveredId,
|
|
1575
1599
|
selectedId: e.mapSelectedId,
|
|
1576
1600
|
onMapClick: e.onMapClick,
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1601
|
+
showMarkerCard: B,
|
|
1602
|
+
formatNextSlot: e.formatNextSlot,
|
|
1603
|
+
onPinHoverChange: e.onPinHoverChange,
|
|
1604
|
+
onPinClick: (v) => {
|
|
1605
|
+
ae(t, v, "pin", e.onResultSelect), N(v);
|
|
1580
1606
|
},
|
|
1581
1607
|
onPinHover: e.onPinHover,
|
|
1582
1608
|
onPinFirstInteract: e.onPinFirstInteract,
|
|
1583
|
-
onBoundsChange:
|
|
1584
|
-
consentGranted:
|
|
1609
|
+
onBoundsChange: M,
|
|
1610
|
+
consentGranted: k,
|
|
1611
|
+
staticPreview: e.mapPreview,
|
|
1585
1612
|
onConsentRequest: I,
|
|
1586
1613
|
mapHandleRef: e.mapHandleRef
|
|
1587
1614
|
}
|
|
1588
1615
|
) })
|
|
1589
1616
|
] }),
|
|
1590
1617
|
/* @__PURE__ */ n("div", { className: "ds:flex ds:lg:hidden ds:sticky ds:bottom-[var(--spacing-md)] ds:justify-center", children: /* @__PURE__ */ n(
|
|
1591
|
-
|
|
1618
|
+
pe,
|
|
1592
1619
|
{
|
|
1593
1620
|
intent: "primary",
|
|
1594
1621
|
size: "md",
|
|
1595
|
-
startIcon: /* @__PURE__ */ n(
|
|
1596
|
-
onClick: () =>
|
|
1597
|
-
children:
|
|
1622
|
+
startIcon: /* @__PURE__ */ n(Wt, { "aria-hidden": "true" }),
|
|
1623
|
+
onClick: () => _(!0),
|
|
1624
|
+
children: h("practiceResults.viewMap")
|
|
1598
1625
|
}
|
|
1599
1626
|
) }),
|
|
1600
|
-
/* @__PURE__ */ n(
|
|
1601
|
-
/* @__PURE__ */ n(
|
|
1602
|
-
/* @__PURE__ */ g(
|
|
1603
|
-
/* @__PURE__ */ n(
|
|
1627
|
+
/* @__PURE__ */ n(K.Root, { open: L, onOpenChange: _, children: /* @__PURE__ */ g(K.Content, { side: "bottom", size: "lg", children: [
|
|
1628
|
+
/* @__PURE__ */ n(K.Header, { children: /* @__PURE__ */ n(K.Title, { children: h("practiceResults.map.label") }) }),
|
|
1629
|
+
/* @__PURE__ */ g(K.Body, { children: [
|
|
1630
|
+
/* @__PURE__ */ n(K.Description, { className: "ds:sr-only", children: h("practiceResults.sheet.description") }),
|
|
1604
1631
|
/* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
1605
|
-
/* @__PURE__ */ n("div", { className: "ds:h-[
|
|
1606
|
-
|
|
1632
|
+
/* @__PURE__ */ n("div", { className: "ds:h-[24rem]", children: /* @__PURE__ */ n(
|
|
1633
|
+
Ie,
|
|
1607
1634
|
{
|
|
1608
1635
|
results: t,
|
|
1609
1636
|
searchCentre: a,
|
|
@@ -1613,63 +1640,64 @@ function bn(e) {
|
|
|
1613
1640
|
hoveredId: e.mapHoveredId,
|
|
1614
1641
|
selectedId: e.mapSelectedId,
|
|
1615
1642
|
onMapClick: e.onMapClick,
|
|
1616
|
-
onPinClick: (
|
|
1617
|
-
|
|
1643
|
+
onPinClick: (v) => {
|
|
1644
|
+
ae(t, v, "pin", e.onResultSelect), N(v);
|
|
1618
1645
|
},
|
|
1619
1646
|
onPinHover: e.onPinHover,
|
|
1620
1647
|
onPinFirstInteract: e.onPinFirstInteract,
|
|
1621
|
-
onBoundsChange:
|
|
1622
|
-
consentGranted:
|
|
1648
|
+
onBoundsChange: M,
|
|
1649
|
+
consentGranted: k,
|
|
1650
|
+
staticPreview: e.mapPreview,
|
|
1623
1651
|
onConsentRequest: I,
|
|
1624
1652
|
mapHandleRef: e.mapHandleRef
|
|
1625
1653
|
}
|
|
1626
1654
|
) }),
|
|
1627
|
-
|
|
1655
|
+
z
|
|
1628
1656
|
] })
|
|
1629
1657
|
] })
|
|
1630
1658
|
] }) })
|
|
1631
1659
|
] });
|
|
1632
1660
|
}
|
|
1633
|
-
const
|
|
1661
|
+
const Rn = {
|
|
1634
1662
|
peek: "sm",
|
|
1635
1663
|
half: "md",
|
|
1636
1664
|
full: "lg"
|
|
1637
|
-
},
|
|
1665
|
+
}, Y = [
|
|
1638
1666
|
"peek",
|
|
1639
1667
|
"half",
|
|
1640
1668
|
"full"
|
|
1641
1669
|
];
|
|
1642
|
-
function
|
|
1643
|
-
const { t: i, i18n: s } =
|
|
1670
|
+
function Sn({ value: e, onChange: t }) {
|
|
1671
|
+
const { t: i, i18n: s } = P("ui"), r = s.dir() === "rtl", a = F(
|
|
1644
1672
|
/* @__PURE__ */ new Map()
|
|
1645
|
-
),
|
|
1646
|
-
var
|
|
1647
|
-
(
|
|
1648
|
-
}, []),
|
|
1649
|
-
(
|
|
1650
|
-
const
|
|
1673
|
+
), l = H((c) => {
|
|
1674
|
+
var o;
|
|
1675
|
+
(o = a.current.get(c)) == null || o.focus();
|
|
1676
|
+
}, []), m = H(
|
|
1677
|
+
(c, o) => {
|
|
1678
|
+
const d = Y.indexOf(o), p = Y.length, f = r ? "ArrowLeft" : "ArrowRight", x = r ? "ArrowRight" : "ArrowLeft";
|
|
1651
1679
|
let b = null;
|
|
1652
|
-
switch (
|
|
1653
|
-
case
|
|
1680
|
+
switch (c.key) {
|
|
1681
|
+
case f:
|
|
1654
1682
|
case "ArrowDown":
|
|
1655
|
-
b =
|
|
1683
|
+
b = Y[(d + 1) % p];
|
|
1656
1684
|
break;
|
|
1657
1685
|
case x:
|
|
1658
1686
|
case "ArrowUp":
|
|
1659
|
-
b =
|
|
1687
|
+
b = Y[(d - 1 + p) % p];
|
|
1660
1688
|
break;
|
|
1661
1689
|
case "Home":
|
|
1662
|
-
b =
|
|
1690
|
+
b = Y[0];
|
|
1663
1691
|
break;
|
|
1664
1692
|
case "End":
|
|
1665
|
-
b =
|
|
1693
|
+
b = Y[p - 1];
|
|
1666
1694
|
break;
|
|
1667
1695
|
default:
|
|
1668
1696
|
return;
|
|
1669
1697
|
}
|
|
1670
|
-
|
|
1698
|
+
c.preventDefault(), b && b !== o && t(b), b && l(b);
|
|
1671
1699
|
},
|
|
1672
|
-
[
|
|
1700
|
+
[l, r, t]
|
|
1673
1701
|
);
|
|
1674
1702
|
return /* @__PURE__ */ n(
|
|
1675
1703
|
"div",
|
|
@@ -1677,66 +1705,128 @@ function yn({ value: e, onChange: t }) {
|
|
|
1677
1705
|
role: "radiogroup",
|
|
1678
1706
|
"aria-label": i("practiceResults.sheet.snap.label"),
|
|
1679
1707
|
className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
1680
|
-
children:
|
|
1681
|
-
const
|
|
1708
|
+
children: Y.map((c) => {
|
|
1709
|
+
const o = e === c;
|
|
1682
1710
|
return /* @__PURE__ */ n(
|
|
1683
1711
|
"button",
|
|
1684
1712
|
{
|
|
1685
|
-
ref: (
|
|
1686
|
-
|
|
1713
|
+
ref: (d) => {
|
|
1714
|
+
d ? a.current.set(c, d) : a.current.delete(c);
|
|
1687
1715
|
},
|
|
1688
1716
|
type: "button",
|
|
1689
1717
|
role: "radio",
|
|
1690
|
-
"aria-checked":
|
|
1691
|
-
"aria-label": i(`practiceResults.sheet.snap.${
|
|
1692
|
-
tabIndex:
|
|
1693
|
-
onClick: () => t(
|
|
1694
|
-
onKeyDown: (
|
|
1695
|
-
className:
|
|
1696
|
-
state:
|
|
1718
|
+
"aria-checked": o,
|
|
1719
|
+
"aria-label": i(`practiceResults.sheet.snap.${c}`),
|
|
1720
|
+
tabIndex: o ? 0 : -1,
|
|
1721
|
+
onClick: () => t(c),
|
|
1722
|
+
onKeyDown: (d) => m(d, c),
|
|
1723
|
+
className: ge({
|
|
1724
|
+
state: o ? "active" : "idle"
|
|
1697
1725
|
}),
|
|
1698
|
-
children: i(`practiceResults.sheet.snap.${
|
|
1726
|
+
children: i(`practiceResults.sheet.snap.${c}`)
|
|
1699
1727
|
},
|
|
1700
|
-
|
|
1728
|
+
c
|
|
1701
1729
|
);
|
|
1702
1730
|
})
|
|
1703
1731
|
}
|
|
1704
1732
|
);
|
|
1705
1733
|
}
|
|
1706
|
-
function
|
|
1734
|
+
function Nn(e, t, i) {
|
|
1735
|
+
const [s, r] = G(null), [a, l] = G(null);
|
|
1736
|
+
return Te(() => {
|
|
1737
|
+
const m = e.current;
|
|
1738
|
+
if (!i || !m || typeof window > "u") {
|
|
1739
|
+
r(null), l(null);
|
|
1740
|
+
return;
|
|
1741
|
+
}
|
|
1742
|
+
let c = 0, o = null, d = null;
|
|
1743
|
+
const p = () => {
|
|
1744
|
+
const b = t.current;
|
|
1745
|
+
r(b ? b.offsetHeight : null);
|
|
1746
|
+
const y = m.querySelector(
|
|
1747
|
+
'[data-testid="map-view-preview-plate"]'
|
|
1748
|
+
) ?? m.querySelector(
|
|
1749
|
+
'[data-testid="map-view-consent-actions"]'
|
|
1750
|
+
);
|
|
1751
|
+
if (y !== d && (d && (o == null || o.unobserve(d)), y && (o == null || o.observe(y, { box: "border-box" })), d = y), !y) {
|
|
1752
|
+
l(null);
|
|
1753
|
+
return;
|
|
1754
|
+
}
|
|
1755
|
+
const N = y.getBoundingClientRect().bottom;
|
|
1756
|
+
if (N <= 0) {
|
|
1757
|
+
l(null);
|
|
1758
|
+
return;
|
|
1759
|
+
}
|
|
1760
|
+
const k = window.innerHeight - N - We("--spacing-sm", m, 8);
|
|
1761
|
+
l(
|
|
1762
|
+
Math.max(
|
|
1763
|
+
Math.round(k),
|
|
1764
|
+
We("--min-target-size", m, 44) * 2
|
|
1765
|
+
)
|
|
1766
|
+
);
|
|
1767
|
+
}, f = () => {
|
|
1768
|
+
cancelAnimationFrame(c), c = requestAnimationFrame(p);
|
|
1769
|
+
};
|
|
1770
|
+
o = typeof ResizeObserver > "u" ? null : new ResizeObserver(f), p(), o == null || o.observe(m), t.current && (o == null || o.observe(t.current)), o == null || o.observe(document.body);
|
|
1771
|
+
const x = new MutationObserver(f);
|
|
1772
|
+
return x.observe(m, { childList: !0, subtree: !0 }), window.addEventListener("resize", f), window.addEventListener("scroll", f, { passive: !0 }), () => {
|
|
1773
|
+
cancelAnimationFrame(c), o == null || o.disconnect(), x.disconnect(), window.removeEventListener("resize", f), window.removeEventListener("scroll", f);
|
|
1774
|
+
};
|
|
1775
|
+
}, [i, e, t]), i ? {
|
|
1776
|
+
mapStyle: s === null ? void 0 : {
|
|
1777
|
+
"--map-preview-inset-block-start": `calc(var(--spacing-md) + ${s}px + var(--spacing-xs))`
|
|
1778
|
+
},
|
|
1779
|
+
sheetStyle: a === null ? void 0 : {
|
|
1780
|
+
"--map-first-sheet-max-block-size": `${a}px`
|
|
1781
|
+
}
|
|
1782
|
+
} : {};
|
|
1783
|
+
}
|
|
1784
|
+
function Ln(e) {
|
|
1707
1785
|
const {
|
|
1708
1786
|
results: t,
|
|
1709
1787
|
apiKey: i,
|
|
1710
1788
|
mapId: s,
|
|
1711
1789
|
zoom: r,
|
|
1712
1790
|
searchCentre: a,
|
|
1713
|
-
onLoadMore:
|
|
1714
|
-
loadingMore:
|
|
1715
|
-
loadingSkeletons:
|
|
1716
|
-
emptyResultsSlot:
|
|
1717
|
-
errorSlot:
|
|
1718
|
-
error:
|
|
1719
|
-
onRetry:
|
|
1791
|
+
onLoadMore: l,
|
|
1792
|
+
loadingMore: m,
|
|
1793
|
+
loadingSkeletons: c,
|
|
1794
|
+
emptyResultsSlot: o,
|
|
1795
|
+
errorSlot: d,
|
|
1796
|
+
error: p,
|
|
1797
|
+
onRetry: f,
|
|
1720
1798
|
hoveredId: x,
|
|
1721
1799
|
selectedId: b,
|
|
1722
|
-
onCardHover:
|
|
1723
|
-
onPinClick:
|
|
1724
|
-
consentGranted:
|
|
1800
|
+
onCardHover: y,
|
|
1801
|
+
onPinClick: N,
|
|
1802
|
+
consentGranted: k,
|
|
1725
1803
|
onConsentRequest: I,
|
|
1726
|
-
onBoundsChange:
|
|
1727
|
-
listContainerRef:
|
|
1728
|
-
facets:
|
|
1729
|
-
value:
|
|
1730
|
-
onChange:
|
|
1731
|
-
} = e, { t:
|
|
1732
|
-
|
|
1804
|
+
onBoundsChange: M,
|
|
1805
|
+
listContainerRef: R,
|
|
1806
|
+
facets: h,
|
|
1807
|
+
value: L,
|
|
1808
|
+
onChange: _
|
|
1809
|
+
} = e, { t: B } = P("ui"), [z, v] = G(
|
|
1810
|
+
() => e.mapPreview && !k ? "peek" : "half"
|
|
1811
|
+
), D = F(!1), W = H((S) => {
|
|
1812
|
+
D.current = !0, v(S);
|
|
1813
|
+
}, []);
|
|
1814
|
+
Te(() => {
|
|
1815
|
+
k && !D.current && v((S) => S === "peek" ? "half" : S);
|
|
1816
|
+
}, [k]);
|
|
1817
|
+
const ee = Rn[z], Q = _e("(min-width: 1024px)"), O = F(null), se = F(null), te = Nn(
|
|
1818
|
+
O,
|
|
1819
|
+
se,
|
|
1820
|
+
!Q && !!e.mapPreview
|
|
1821
|
+
), re = p ? d ?? /* @__PURE__ */ n(ze, { onRetry: f, headingLevel: e.headingLevel }) : t.length === 0 && !c ? o ?? /* @__PURE__ */ n($e, { headingLevel: e.headingLevel }) : /* @__PURE__ */ n(
|
|
1822
|
+
Ve,
|
|
1733
1823
|
{
|
|
1734
1824
|
results: t,
|
|
1735
1825
|
headingLevel: e.headingLevel,
|
|
1736
1826
|
hoveredId: x,
|
|
1737
1827
|
selectedId: b,
|
|
1738
1828
|
softId: e.softId,
|
|
1739
|
-
onCardHover:
|
|
1829
|
+
onCardHover: y,
|
|
1740
1830
|
onCardLeave: e.onCardLeave,
|
|
1741
1831
|
onCardSelect: e.onCardSelect,
|
|
1742
1832
|
onCardOpenClick: e.onCardOpenClick,
|
|
@@ -1744,15 +1834,15 @@ function wn(e) {
|
|
|
1744
1834
|
openLabel: e.openLabel,
|
|
1745
1835
|
bookLabel: e.bookLabel,
|
|
1746
1836
|
formatNextSlot: e.formatNextSlot,
|
|
1747
|
-
onLoadMore:
|
|
1748
|
-
loadingMore:
|
|
1749
|
-
loadingSkeletons:
|
|
1837
|
+
onLoadMore: l,
|
|
1838
|
+
loadingMore: m,
|
|
1839
|
+
loadingSkeletons: c,
|
|
1750
1840
|
density: "compact",
|
|
1751
1841
|
apiKey: i,
|
|
1752
|
-
containerRef:
|
|
1842
|
+
containerRef: R
|
|
1753
1843
|
}
|
|
1754
|
-
),
|
|
1755
|
-
|
|
1844
|
+
), oe = /* @__PURE__ */ n(
|
|
1845
|
+
Ie,
|
|
1756
1846
|
{
|
|
1757
1847
|
results: t,
|
|
1758
1848
|
searchCentre: a,
|
|
@@ -1762,27 +1852,37 @@ function wn(e) {
|
|
|
1762
1852
|
hoveredId: e.mapHoveredId,
|
|
1763
1853
|
selectedId: e.mapSelectedId,
|
|
1764
1854
|
onMapClick: e.onMapClick,
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1855
|
+
showMarkerCard: Q,
|
|
1856
|
+
formatNextSlot: e.formatNextSlot,
|
|
1857
|
+
onPinHoverChange: e.onPinHoverChange,
|
|
1858
|
+
onPinClick: (S) => {
|
|
1859
|
+
ae(t, S, "pin", e.onResultSelect), N(S);
|
|
1768
1860
|
},
|
|
1769
1861
|
onPinHover: e.onPinHover,
|
|
1770
1862
|
onPinFirstInteract: e.onPinFirstInteract,
|
|
1771
|
-
onBoundsChange:
|
|
1772
|
-
consentGranted:
|
|
1863
|
+
onBoundsChange: M,
|
|
1864
|
+
consentGranted: k,
|
|
1865
|
+
staticPreview: e.mapPreview,
|
|
1773
1866
|
onConsentRequest: I,
|
|
1774
1867
|
mapHandleRef: e.mapHandleRef
|
|
1775
1868
|
}
|
|
1776
|
-
),
|
|
1777
|
-
|
|
1869
|
+
), be = h.length > 0 ? /* @__PURE__ */ n(
|
|
1870
|
+
"div",
|
|
1778
1871
|
{
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1872
|
+
ref: se,
|
|
1873
|
+
className: "ds:absolute ds:start-[var(--spacing-md)] ds:top-[var(--spacing-md)] ds:max-w-[calc(100%-var(--spacing-lg))]",
|
|
1874
|
+
children: /* @__PURE__ */ n(
|
|
1875
|
+
rt,
|
|
1876
|
+
{
|
|
1877
|
+
facets: h,
|
|
1878
|
+
value: L.facets,
|
|
1879
|
+
onChange: (S) => _({ ...L, facets: S }),
|
|
1880
|
+
floating: !0
|
|
1881
|
+
}
|
|
1882
|
+
)
|
|
1783
1883
|
}
|
|
1784
|
-
)
|
|
1785
|
-
return /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children:
|
|
1884
|
+
) : null;
|
|
1885
|
+
return /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: Q ? (
|
|
1786
1886
|
// Desktop: 65/35 map left + cards rail right. NO Sheet (the
|
|
1787
1887
|
// Sheet would portal to body and occlude the desktop layout
|
|
1788
1888
|
// regardless of the parent's `lg:hidden` class).
|
|
@@ -1800,11 +1900,11 @@ function wn(e) {
|
|
|
1800
1900
|
// the map column is `lg:sticky lg:h-[44rem]` (stays visible
|
|
1801
1901
|
// as the patient scrolls cards) and the rail renders at
|
|
1802
1902
|
// natural height. Single page scroll.
|
|
1803
|
-
/* @__PURE__ */ g(
|
|
1804
|
-
/* @__PURE__ */ n(
|
|
1903
|
+
/* @__PURE__ */ g(Tt, { children: [
|
|
1904
|
+
/* @__PURE__ */ n(Be, { variantBodyProps: e }),
|
|
1805
1905
|
/* @__PURE__ */ g("div", { className: "ds:grid ds:grid-cols-[65fr_35fr] ds:gap-[var(--spacing-lg)] ds:items-start", children: [
|
|
1806
|
-
/* @__PURE__ */ n("div", { className: "ds:sticky ds:top-[var(--spacing-md)] ds:h-[44rem]", children:
|
|
1807
|
-
/* @__PURE__ */ n("div", { className: "ds:min-w-0", children:
|
|
1906
|
+
/* @__PURE__ */ n("div", { className: "ds:sticky ds:top-[var(--spacing-md)] ds:h-[44rem]", children: oe }),
|
|
1907
|
+
/* @__PURE__ */ n("div", { className: "ds:min-w-0", children: re })
|
|
1808
1908
|
] })
|
|
1809
1909
|
] })
|
|
1810
1910
|
) : (
|
|
@@ -1816,7 +1916,7 @@ function wn(e) {
|
|
|
1816
1916
|
// chrome, so floating chips are the only place for them.
|
|
1817
1917
|
/* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
1818
1918
|
/* @__PURE__ */ n(
|
|
1819
|
-
|
|
1919
|
+
st,
|
|
1820
1920
|
{
|
|
1821
1921
|
heading: e.heading,
|
|
1822
1922
|
headingLevel: e.headingLevel,
|
|
@@ -1825,71 +1925,82 @@ function wn(e) {
|
|
|
1825
1925
|
searchCentreLabel: a == null ? void 0 : a.label
|
|
1826
1926
|
}
|
|
1827
1927
|
),
|
|
1828
|
-
/* @__PURE__ */ g(
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1928
|
+
/* @__PURE__ */ g(
|
|
1929
|
+
"div",
|
|
1930
|
+
{
|
|
1931
|
+
ref: O,
|
|
1932
|
+
className: "ds:relative ds:h-[60vh] ds:min-h-[20rem]",
|
|
1933
|
+
style: te.mapStyle,
|
|
1934
|
+
children: [
|
|
1935
|
+
oe,
|
|
1936
|
+
be
|
|
1937
|
+
]
|
|
1938
|
+
}
|
|
1939
|
+
),
|
|
1940
|
+
/* @__PURE__ */ n(K.Root, { open: !0, modal: !1, children: /* @__PURE__ */ n(
|
|
1941
|
+
K.Content,
|
|
1834
1942
|
{
|
|
1835
1943
|
side: "bottom",
|
|
1836
|
-
size:
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1944
|
+
size: ee,
|
|
1945
|
+
className: "ds:max-h-[var(--map-first-sheet-max-block-size,100dvh)] ds:[&_[data-radix-scroll-area-viewport]]:overscroll-contain",
|
|
1946
|
+
style: te.sheetStyle,
|
|
1947
|
+
onEscapeKeyDown: (S) => S.preventDefault(),
|
|
1948
|
+
onPointerDownOutside: (S) => S.preventDefault(),
|
|
1949
|
+
onInteractOutside: (S) => S.preventDefault(),
|
|
1950
|
+
onOpenAutoFocus: (S) => S.preventDefault(),
|
|
1951
|
+
children: /* @__PURE__ */ g(K.Body, { children: [
|
|
1952
|
+
/* @__PURE__ */ n(K.Description, { className: "ds:sr-only", children: B("practiceResults.sheet.descriptionMapFirst") }),
|
|
1842
1953
|
/* @__PURE__ */ g("div", { className: "ds:flex ds:items-start ds:justify-between ds:gap-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]", children: [
|
|
1843
|
-
/* @__PURE__ */ n(
|
|
1954
|
+
/* @__PURE__ */ n(K.Title, { className: "type-title-card ds:m-0 ds:text-[var(--foreground)]", children: B("practiceResults.sheet.title", {
|
|
1844
1955
|
count: e.totalCount ?? t.length
|
|
1845
1956
|
}) }),
|
|
1846
1957
|
/* @__PURE__ */ n(
|
|
1847
|
-
|
|
1958
|
+
Sn,
|
|
1848
1959
|
{
|
|
1849
|
-
value:
|
|
1850
|
-
onChange:
|
|
1960
|
+
value: z,
|
|
1961
|
+
onChange: W
|
|
1851
1962
|
}
|
|
1852
1963
|
)
|
|
1853
1964
|
] }),
|
|
1854
1965
|
e.sortOptions.length > 0 ? /* @__PURE__ */ n("div", { className: "ds:pb-[var(--spacing-sm)]", children: /* @__PURE__ */ n(
|
|
1855
|
-
|
|
1966
|
+
Pe,
|
|
1856
1967
|
{
|
|
1857
1968
|
options: e.sortOptions,
|
|
1858
|
-
value:
|
|
1859
|
-
onChange: (
|
|
1969
|
+
value: L.sort ?? "relevance",
|
|
1970
|
+
onChange: (S) => _({ ...L, sort: S })
|
|
1860
1971
|
}
|
|
1861
1972
|
) }) : null,
|
|
1862
|
-
|
|
1973
|
+
re
|
|
1863
1974
|
] })
|
|
1864
1975
|
}
|
|
1865
1976
|
) })
|
|
1866
1977
|
] })
|
|
1867
1978
|
) });
|
|
1868
1979
|
}
|
|
1869
|
-
function
|
|
1980
|
+
function Pn(e) {
|
|
1870
1981
|
const {
|
|
1871
1982
|
results: t,
|
|
1872
1983
|
apiKey: i,
|
|
1873
1984
|
onLoadMore: s,
|
|
1874
1985
|
loadingMore: r,
|
|
1875
1986
|
loadingSkeletons: a,
|
|
1876
|
-
emptyResultsSlot:
|
|
1877
|
-
errorSlot:
|
|
1878
|
-
error:
|
|
1879
|
-
onRetry:
|
|
1880
|
-
hoveredId:
|
|
1881
|
-
selectedId:
|
|
1882
|
-
onCardHover:
|
|
1987
|
+
emptyResultsSlot: l,
|
|
1988
|
+
errorSlot: m,
|
|
1989
|
+
error: c,
|
|
1990
|
+
onRetry: o,
|
|
1991
|
+
hoveredId: d,
|
|
1992
|
+
selectedId: p,
|
|
1993
|
+
onCardHover: f,
|
|
1883
1994
|
listContainerRef: x
|
|
1884
|
-
} = e, b =
|
|
1885
|
-
|
|
1995
|
+
} = e, b = c ? m ?? /* @__PURE__ */ n(ze, { onRetry: o, headingLevel: e.headingLevel }) : t.length === 0 && !a ? l ?? /* @__PURE__ */ n($e, { headingLevel: e.headingLevel }) : /* @__PURE__ */ n(
|
|
1996
|
+
Ve,
|
|
1886
1997
|
{
|
|
1887
1998
|
results: t,
|
|
1888
1999
|
headingLevel: e.headingLevel,
|
|
1889
|
-
hoveredId:
|
|
1890
|
-
selectedId:
|
|
2000
|
+
hoveredId: d,
|
|
2001
|
+
selectedId: p,
|
|
1891
2002
|
softId: e.softId,
|
|
1892
|
-
onCardHover:
|
|
2003
|
+
onCardHover: f,
|
|
1893
2004
|
onCardLeave: e.onCardLeave,
|
|
1894
2005
|
onCardSelect: e.onCardSelect,
|
|
1895
2006
|
onCardOpenClick: e.onCardOpenClick,
|
|
@@ -1906,276 +2017,300 @@ function Cn(e) {
|
|
|
1906
2017
|
}
|
|
1907
2018
|
);
|
|
1908
2019
|
return /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
1909
|
-
/* @__PURE__ */ n(
|
|
2020
|
+
/* @__PURE__ */ n(Be, { variantBodyProps: e }),
|
|
1910
2021
|
b
|
|
1911
2022
|
] });
|
|
1912
2023
|
}
|
|
1913
|
-
const
|
|
2024
|
+
const Mn = _t(function({
|
|
1914
2025
|
variant: t = "split-list-map",
|
|
1915
2026
|
results: i,
|
|
1916
2027
|
contentLang: s,
|
|
1917
2028
|
totalCount: r,
|
|
1918
2029
|
searchCentre: a,
|
|
1919
|
-
facets:
|
|
1920
|
-
googleMapsApiKey:
|
|
1921
|
-
mapId:
|
|
1922
|
-
defaultZoom:
|
|
1923
|
-
onBoundsChange:
|
|
1924
|
-
consentGranted:
|
|
1925
|
-
onConsentRequest:
|
|
2030
|
+
facets: l,
|
|
2031
|
+
googleMapsApiKey: m,
|
|
2032
|
+
mapId: c,
|
|
2033
|
+
defaultZoom: o = Jt,
|
|
2034
|
+
onBoundsChange: d,
|
|
2035
|
+
consentGranted: p,
|
|
2036
|
+
onConsentRequest: f,
|
|
1926
2037
|
skipConsentGate: x = !1,
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
2038
|
+
mapPreview: b,
|
|
2039
|
+
onLoadMore: y,
|
|
2040
|
+
loadingMore: N,
|
|
2041
|
+
value: k,
|
|
2042
|
+
onChange: I,
|
|
2043
|
+
sortOptions: M,
|
|
2044
|
+
onResultSelect: R,
|
|
2045
|
+
loading: h,
|
|
2046
|
+
emptyResultsSlot: L,
|
|
2047
|
+
errorSlot: _,
|
|
2048
|
+
error: B,
|
|
2049
|
+
onRetry: z,
|
|
2050
|
+
heading: v,
|
|
2051
|
+
headingLevel: D = 2,
|
|
2052
|
+
intro: W,
|
|
2053
|
+
cardOpenButtonLabel: ee,
|
|
2054
|
+
cardBookButtonLabel: Q,
|
|
2055
|
+
showCardOpenButton: O = !0,
|
|
2056
|
+
"aria-label": se,
|
|
2057
|
+
id: te,
|
|
2058
|
+
className: re,
|
|
2059
|
+
...oe
|
|
2060
|
+
}, be) {
|
|
2061
|
+
const { t: S, i18n: Ee } = P("ui"), [ie, $] = G(null), [Ke, ne] = G(null), [xe, E] = G(null), [we, ht] = G(null), V = _e("(min-width: 1024px)"), le = F(/* @__PURE__ */ new Set()), ye = F(/* @__PURE__ */ new Set()), gt = F(null), ce = F(null), ke = T(
|
|
1950
2062
|
() => ({
|
|
1951
2063
|
getVariant: () => t,
|
|
1952
|
-
scrollToResult: (
|
|
1953
|
-
const
|
|
1954
|
-
if (!
|
|
1955
|
-
const
|
|
1956
|
-
`[data-component="practice-result-card"][data-result-id="${CSS.escape(
|
|
2064
|
+
scrollToResult: (u) => {
|
|
2065
|
+
const C = ce.current;
|
|
2066
|
+
if (!C) return;
|
|
2067
|
+
const w = C.querySelector(
|
|
2068
|
+
`[data-component="practice-result-card"][data-result-id="${CSS.escape(u)}"]`
|
|
1957
2069
|
);
|
|
1958
|
-
|
|
2070
|
+
w && (w.scrollIntoView({ behavior: "smooth", block: "nearest" }), V || $(null), E(u));
|
|
1959
2071
|
},
|
|
1960
|
-
focusPin: (
|
|
1961
|
-
|
|
2072
|
+
focusPin: (u) => {
|
|
2073
|
+
V && t !== "rich-cards" ? (E(null), ne(u)) : (V || $(null), E(u));
|
|
1962
2074
|
}
|
|
1963
2075
|
}),
|
|
1964
|
-
[t,
|
|
2076
|
+
[t, V]
|
|
1965
2077
|
);
|
|
1966
|
-
|
|
1967
|
-
const
|
|
1968
|
-
(
|
|
1969
|
-
if (
|
|
2078
|
+
Ot(be, () => ke, [ke]), Kt(Qt, ke, te);
|
|
2079
|
+
const vt = O ? ee ?? S("practiceResults.card.open") : void 0, bt = Q ?? S("practiceResults.card.book"), xt = H(
|
|
2080
|
+
(u) => {
|
|
2081
|
+
if (u.nextAvailableSlot)
|
|
1970
2082
|
try {
|
|
1971
|
-
return new Intl.DateTimeFormat(
|
|
2083
|
+
return new Intl.DateTimeFormat(Ee.language, {
|
|
1972
2084
|
weekday: "short",
|
|
1973
2085
|
hour: "numeric",
|
|
1974
2086
|
minute: "numeric"
|
|
1975
|
-
}).format(new Date(
|
|
2087
|
+
}).format(new Date(u.nextAvailableSlot.dateTime));
|
|
1976
2088
|
} catch {
|
|
1977
|
-
return
|
|
2089
|
+
return u.nextAvailableSlot.dateTime;
|
|
1978
2090
|
}
|
|
1979
2091
|
},
|
|
1980
|
-
[
|
|
1981
|
-
),
|
|
1982
|
-
|
|
1983
|
-
|
|
2092
|
+
[Ee.language]
|
|
2093
|
+
), je = F(null);
|
|
2094
|
+
J(() => {
|
|
2095
|
+
je.current !== t && (je.current = t, q("serp_variant_exposed", {
|
|
1984
2096
|
variant: t,
|
|
1985
2097
|
totalCount: r ?? i.length
|
|
1986
|
-
}),
|
|
2098
|
+
}), le.current = /* @__PURE__ */ new Set(), ye.current = /* @__PURE__ */ new Set());
|
|
1987
2099
|
}, [t]);
|
|
1988
|
-
const
|
|
1989
|
-
() =>
|
|
1990
|
-
[
|
|
1991
|
-
),
|
|
1992
|
-
() =>
|
|
1993
|
-
[
|
|
1994
|
-
),
|
|
1995
|
-
const
|
|
1996
|
-
return
|
|
1997
|
-
}, [i,
|
|
2100
|
+
const Ce = F(!1), Re = T(
|
|
2101
|
+
() => Yt(l ?? [], i, k.facets),
|
|
2102
|
+
[l, i, k.facets]
|
|
2103
|
+
), de = T(
|
|
2104
|
+
() => M ? Je.filter((u) => M.includes(u)) : Je,
|
|
2105
|
+
[M]
|
|
2106
|
+
), ue = a ? "distance" : "relevance", qe = k.sort ?? ue, Se = de.includes(qe) ? qe : de.includes(ue) ? ue : de[0] ?? ue, A = T(() => {
|
|
2107
|
+
const u = en(i, k.facets, Re);
|
|
2108
|
+
return an(u, Se, a);
|
|
2109
|
+
}, [i, k.facets, Re, Se, a]), wt = T(
|
|
1998
2110
|
() => s ? A.map(
|
|
1999
|
-
(
|
|
2111
|
+
(u) => u.contentLang ? u : { ...u, contentLang: s }
|
|
2000
2112
|
) : A,
|
|
2001
2113
|
[A, s]
|
|
2002
2114
|
);
|
|
2003
|
-
|
|
2004
|
-
const
|
|
2005
|
-
|
|
2006
|
-
appliedFacets:
|
|
2007
|
-
}),
|
|
2008
|
-
}, [A.length,
|
|
2009
|
-
const
|
|
2010
|
-
|
|
2011
|
-
}, [A]),
|
|
2012
|
-
|
|
2115
|
+
J(() => {
|
|
2116
|
+
const u = A.length === 0;
|
|
2117
|
+
u && !Ce.current ? (q("serp_empty_results", {
|
|
2118
|
+
appliedFacets: k.facets ?? {}
|
|
2119
|
+
}), Ce.current = !0) : u || (Ce.current = !1);
|
|
2120
|
+
}, [A.length, k.facets]), J(() => {
|
|
2121
|
+
const u = new Set(A.map((w) => w.id)), C = (w) => w !== null && u.has(w) ? w : null;
|
|
2122
|
+
$(C), ne(C), E(C);
|
|
2123
|
+
}, [A]), J(() => {
|
|
2124
|
+
$(null), ne(null), E(null);
|
|
2013
2125
|
}, [t]);
|
|
2014
|
-
const
|
|
2015
|
-
|
|
2126
|
+
const X = F(null), Ue = F(null);
|
|
2127
|
+
J(
|
|
2016
2128
|
() => () => {
|
|
2017
|
-
|
|
2129
|
+
X.current && clearTimeout(X.current);
|
|
2018
2130
|
},
|
|
2019
2131
|
[]
|
|
2020
2132
|
);
|
|
2021
|
-
const
|
|
2022
|
-
|
|
2023
|
-
|
|
2133
|
+
const Ne = H((u) => {
|
|
2134
|
+
le.current.has(u) || Ue.current === u && X.current || (X.current && clearTimeout(X.current), Ue.current = u, X.current = setTimeout(() => {
|
|
2135
|
+
le.current.has(u) || (le.current.add(u), q("serp_result_hovered_card", { resultId: u })), X.current = null;
|
|
2024
2136
|
}, 500));
|
|
2025
|
-
}, []),
|
|
2026
|
-
(
|
|
2027
|
-
|
|
2137
|
+
}, []), yt = H(
|
|
2138
|
+
(u, C) => {
|
|
2139
|
+
Ne(u), C && ($(u), E(null));
|
|
2140
|
+
},
|
|
2141
|
+
[Ne]
|
|
2142
|
+
), kt = H(() => $(null), []);
|
|
2143
|
+
J(() => {
|
|
2144
|
+
if (ie === null) return;
|
|
2145
|
+
const u = (C) => {
|
|
2146
|
+
C.key === "Escape" && $(null);
|
|
2147
|
+
};
|
|
2148
|
+
return document.addEventListener("keydown", u), () => document.removeEventListener("keydown", u);
|
|
2149
|
+
}, [ie]);
|
|
2150
|
+
const Ct = H(
|
|
2151
|
+
(u, C, w) => {
|
|
2152
|
+
if (!C) {
|
|
2153
|
+
$((me) => me === u ? null : me);
|
|
2154
|
+
return;
|
|
2155
|
+
}
|
|
2156
|
+
V && (w === "pointer" && !ve() || ($(u), E(null)));
|
|
2028
2157
|
},
|
|
2029
|
-
[
|
|
2030
|
-
),
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2158
|
+
[V]
|
|
2159
|
+
), Ge = F(V);
|
|
2160
|
+
J(() => {
|
|
2161
|
+
Ge.current && !V && $(null), Ge.current = V;
|
|
2162
|
+
}, [V]);
|
|
2163
|
+
const Rt = H(() => {
|
|
2164
|
+
ne(null), E(null);
|
|
2165
|
+
}, []), St = H(
|
|
2166
|
+
(u) => {
|
|
2167
|
+
var C;
|
|
2168
|
+
if (!V) {
|
|
2169
|
+
const w = (C = ce.current) == null ? void 0 : C.querySelector(
|
|
2170
|
+
`[data-component="practice-result-card"][data-result-id="${CSS.escape(u)}"]`
|
|
2038
2171
|
);
|
|
2039
|
-
|
|
2172
|
+
$(null), E(u), w == null || w.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
2040
2173
|
return;
|
|
2041
2174
|
}
|
|
2042
|
-
|
|
2175
|
+
E(null), ne(u), ht((w) => ({ id: u, n: ((w == null ? void 0 : w.n) ?? 0) + 1 }));
|
|
2043
2176
|
},
|
|
2044
|
-
[
|
|
2177
|
+
[V]
|
|
2045
2178
|
);
|
|
2046
|
-
|
|
2047
|
-
if (!
|
|
2048
|
-
const
|
|
2049
|
-
`[data-component="practice-result-card"][data-result-id="${CSS.escape(
|
|
2179
|
+
Te(() => {
|
|
2180
|
+
if (!we) return;
|
|
2181
|
+
const u = ce.current, C = u == null ? void 0 : u.querySelector(
|
|
2182
|
+
`[data-component="practice-result-card"][data-result-id="${CSS.escape(we.id)}"]`
|
|
2050
2183
|
);
|
|
2051
|
-
|
|
2052
|
-
behavior:
|
|
2184
|
+
C == null || C.scrollIntoView({
|
|
2185
|
+
behavior: zt(C) ? "instant" : "smooth",
|
|
2053
2186
|
block: "start"
|
|
2054
2187
|
});
|
|
2055
|
-
}, [
|
|
2056
|
-
const
|
|
2057
|
-
|
|
2058
|
-
}, []),
|
|
2059
|
-
(
|
|
2060
|
-
|
|
2061
|
-
const
|
|
2062
|
-
if (
|
|
2063
|
-
if (
|
|
2064
|
-
const
|
|
2065
|
-
|
|
2066
|
-
lat:
|
|
2067
|
-
lng:
|
|
2068
|
-
}),
|
|
2188
|
+
}, [we]);
|
|
2189
|
+
const Nt = H((u) => {
|
|
2190
|
+
ye.current.has(u) || (ye.current.add(u), q("serp_result_hovered_pin", { resultId: u }));
|
|
2191
|
+
}, []), Ze = F(null), Lt = H(
|
|
2192
|
+
(u) => {
|
|
2193
|
+
ne(null), ve() ? (E(null), $(u)) : ($(null), E(u));
|
|
2194
|
+
const C = A.find((w) => w.id === u);
|
|
2195
|
+
if (C) {
|
|
2196
|
+
if (C.location) {
|
|
2197
|
+
const w = Ze.current;
|
|
2198
|
+
w == null || w.panTo({
|
|
2199
|
+
lat: C.location.lat,
|
|
2200
|
+
lng: C.location.lng
|
|
2201
|
+
}), w == null || w.setZoom(16);
|
|
2069
2202
|
}
|
|
2070
|
-
|
|
2203
|
+
ae(A, u, "card", R);
|
|
2071
2204
|
}
|
|
2072
2205
|
},
|
|
2073
|
-
[A,
|
|
2074
|
-
),
|
|
2075
|
-
(
|
|
2076
|
-
|
|
2206
|
+
[A, R]
|
|
2207
|
+
), Pt = H(
|
|
2208
|
+
(u) => {
|
|
2209
|
+
ae(
|
|
2077
2210
|
A,
|
|
2078
|
-
|
|
2211
|
+
u,
|
|
2079
2212
|
"open-button",
|
|
2080
|
-
|
|
2213
|
+
R
|
|
2081
2214
|
);
|
|
2082
2215
|
},
|
|
2083
|
-
[A,
|
|
2084
|
-
),
|
|
2085
|
-
(
|
|
2086
|
-
|
|
2216
|
+
[A, R]
|
|
2217
|
+
), Mt = H(
|
|
2218
|
+
(u) => {
|
|
2219
|
+
ae(
|
|
2087
2220
|
A,
|
|
2088
|
-
|
|
2221
|
+
u,
|
|
2089
2222
|
"book-button",
|
|
2090
|
-
|
|
2223
|
+
R
|
|
2091
2224
|
);
|
|
2092
2225
|
},
|
|
2093
|
-
[A,
|
|
2094
|
-
),
|
|
2095
|
-
(
|
|
2096
|
-
const
|
|
2097
|
-
|
|
2226
|
+
[A, R]
|
|
2227
|
+
), It = !!h && i.length === 0, At = H(
|
|
2228
|
+
(u, C) => {
|
|
2229
|
+
const w = A.find((me) => me.id === u.id);
|
|
2230
|
+
R(w ?? u, C);
|
|
2098
2231
|
},
|
|
2099
|
-
[A,
|
|
2100
|
-
),
|
|
2101
|
-
results:
|
|
2232
|
+
[A, R]
|
|
2233
|
+
), Le = {
|
|
2234
|
+
results: wt,
|
|
2102
2235
|
totalCount: r,
|
|
2103
2236
|
searchCentre: a,
|
|
2104
|
-
facets:
|
|
2105
|
-
value: { ...
|
|
2106
|
-
sortOptions:
|
|
2107
|
-
onChange:
|
|
2108
|
-
onResultSelect:
|
|
2109
|
-
onLoadMore:
|
|
2110
|
-
loadingMore:
|
|
2111
|
-
apiKey:
|
|
2112
|
-
mapId:
|
|
2113
|
-
zoom:
|
|
2237
|
+
facets: Re,
|
|
2238
|
+
value: { ...k, sort: Se },
|
|
2239
|
+
sortOptions: de,
|
|
2240
|
+
onChange: I,
|
|
2241
|
+
onResultSelect: At,
|
|
2242
|
+
onLoadMore: y,
|
|
2243
|
+
loadingMore: N,
|
|
2244
|
+
apiKey: m,
|
|
2245
|
+
mapId: c,
|
|
2246
|
+
zoom: o,
|
|
2114
2247
|
// 0.31.4: when `skipConsentGate` is true the kit synthesises
|
|
2115
2248
|
// `consentGranted=true` for every internal MapView; the consumer's
|
|
2116
2249
|
// CMP at the page level is responsible for whether the Google Maps
|
|
2117
2250
|
// loader script is present at all. `onConsentRequest` is dropped
|
|
2118
2251
|
// because no placeholder renders — nothing to fire it from.
|
|
2119
|
-
consentGranted: x ? !0 :
|
|
2120
|
-
onConsentRequest: x ? void 0 :
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2252
|
+
consentGranted: x ? !0 : p,
|
|
2253
|
+
onConsentRequest: x ? void 0 : f,
|
|
2254
|
+
mapPreview: b,
|
|
2255
|
+
onBoundsChange: d,
|
|
2256
|
+
loadingSkeletons: It,
|
|
2257
|
+
emptyResultsSlot: L,
|
|
2258
|
+
errorSlot: _,
|
|
2259
|
+
error: B,
|
|
2260
|
+
onRetry: z,
|
|
2261
|
+
heading: v,
|
|
2262
|
+
headingLevel: D,
|
|
2263
|
+
intro: W,
|
|
2264
|
+
hoveredId: ie,
|
|
2265
|
+
selectedId: Ke,
|
|
2266
|
+
softId: xe,
|
|
2267
|
+
mapHoveredId: V ? ie : null,
|
|
2268
|
+
mapSelectedId: V ? Ke ?? xe : ie ?? xe,
|
|
2269
|
+
onCardHover: yt,
|
|
2270
|
+
onCardLeave: kt,
|
|
2271
|
+
onPinHover: Ne,
|
|
2272
|
+
onPinHoverChange: Ct,
|
|
2273
|
+
onMapClick: Rt,
|
|
2274
|
+
onPinClick: St,
|
|
2275
|
+
onPinFirstInteract: Nt,
|
|
2276
|
+
onCardSelect: Lt,
|
|
2277
|
+
onCardOpenClick: Pt,
|
|
2278
|
+
onCardBookClick: Mt,
|
|
2279
|
+
openLabel: vt,
|
|
2280
|
+
bookLabel: bt,
|
|
2281
|
+
formatNextSlot: xt,
|
|
2282
|
+
listContainerRef: gt,
|
|
2283
|
+
mapHandleRef: Ze
|
|
2284
|
+
}, Ht = (() => {
|
|
2150
2285
|
switch (t) {
|
|
2151
2286
|
case "map-first":
|
|
2152
|
-
return /* @__PURE__ */ n(
|
|
2287
|
+
return /* @__PURE__ */ n(Ln, { ...Le });
|
|
2153
2288
|
case "rich-cards":
|
|
2154
|
-
return /* @__PURE__ */ n(
|
|
2289
|
+
return /* @__PURE__ */ n(Pn, { ...Le });
|
|
2155
2290
|
case "split-list-map":
|
|
2156
2291
|
default:
|
|
2157
|
-
return /* @__PURE__ */ n(
|
|
2292
|
+
return /* @__PURE__ */ n(Cn, { ...Le });
|
|
2158
2293
|
}
|
|
2159
|
-
})(),
|
|
2294
|
+
})(), Ft = se ?? S("practiceResults.regionLabel");
|
|
2160
2295
|
return /* @__PURE__ */ n(
|
|
2161
2296
|
"div",
|
|
2162
2297
|
{
|
|
2163
|
-
ref:
|
|
2298
|
+
ref: ce,
|
|
2164
2299
|
role: "region",
|
|
2165
|
-
"aria-label":
|
|
2166
|
-
id:
|
|
2300
|
+
"aria-label": Ft,
|
|
2301
|
+
id: te,
|
|
2167
2302
|
"data-component": "practice-results",
|
|
2168
|
-
"data-component-id":
|
|
2303
|
+
"data-component-id": te,
|
|
2169
2304
|
"data-variant": t,
|
|
2170
|
-
className:
|
|
2171
|
-
...
|
|
2172
|
-
children:
|
|
2305
|
+
className: rn({ variant: t, className: re }),
|
|
2306
|
+
...oe,
|
|
2307
|
+
children: Ht
|
|
2173
2308
|
}
|
|
2174
2309
|
);
|
|
2175
2310
|
});
|
|
2176
|
-
|
|
2311
|
+
Mn.displayName = "PracticeResults";
|
|
2177
2312
|
export {
|
|
2178
|
-
|
|
2179
|
-
|
|
2313
|
+
Mn as P,
|
|
2314
|
+
Qt as p
|
|
2180
2315
|
};
|
|
2181
|
-
//# sourceMappingURL=practice-results-
|
|
2316
|
+
//# sourceMappingURL=practice-results-CzHWprX4.js.map
|