@alfadocs/ui-kit-debug 1.104.0 → 1.105.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/{ai-credits-exhausted-notice-CwZnSACy.js → ai-credits-exhausted-notice-Lws3113e.js} +2 -2
- package/dist/_chunks/{ai-credits-exhausted-notice-CwZnSACy.js.map → ai-credits-exhausted-notice-Lws3113e.js.map} +1 -1
- package/dist/_chunks/{ai-permission-notice-VNh3W57L.js → ai-permission-notice-BkgcGmu8.js} +2 -2
- package/dist/_chunks/{ai-permission-notice-VNh3W57L.js.map → ai-permission-notice-BkgcGmu8.js.map} +1 -1
- package/dist/_chunks/{alert-9kEwDza3.js → alert-C4WKViaS.js} +59 -50
- package/dist/_chunks/alert-C4WKViaS.js.map +1 -0
- package/dist/_chunks/{anamnesis-summary-rows-B9HqOGd7.js → anamnesis-summary-rows-QhbDdY7b.js} +4 -4
- package/dist/_chunks/{anamnesis-summary-rows-B9HqOGd7.js.map → anamnesis-summary-rows-QhbDdY7b.js.map} +1 -1
- package/dist/_chunks/{audio-recorder-BOm2FgEu.js → audio-recorder-BlDozxdU.js} +2 -2
- package/dist/_chunks/{audio-recorder-BOm2FgEu.js.map → audio-recorder-BlDozxdU.js.map} +1 -1
- package/dist/_chunks/{auth-form-parts-B3GWChvG.js → auth-form-parts-DVHfqnp6.js} +2 -2
- package/dist/_chunks/{auth-form-parts-B3GWChvG.js.map → auth-form-parts-DVHfqnp6.js.map} +1 -1
- package/dist/_chunks/{balance-badge-cell-DGFm2jfP.js → balance-badge-cell-wJ6cTD_h.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-DGFm2jfP.js.map → balance-badge-cell-wJ6cTD_h.js.map} +1 -1
- package/dist/_chunks/{calendar-appointment-editor-dialog-DqyATSh3.js → calendar-appointment-editor-dialog-D8DblVjW.js} +8 -8
- package/dist/_chunks/{calendar-appointment-editor-dialog-DqyATSh3.js.map → calendar-appointment-editor-dialog-D8DblVjW.js.map} +1 -1
- package/dist/_chunks/{care-plan-card-YWKV8Kjq.js → care-plan-card-DMjlYlFc.js} +2 -2
- package/dist/_chunks/{care-plan-card-YWKV8Kjq.js.map → care-plan-card-DMjlYlFc.js.map} +1 -1
- package/dist/_chunks/{care-plan-entry-card-CApivtMW.js → care-plan-entry-card-3hguBW45.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-CApivtMW.js.map → care-plan-entry-card-3hguBW45.js.map} +1 -1
- package/dist/_chunks/{contact-profile-card-uExd3pKC.js → contact-profile-card-CAL66GaH.js} +120 -111
- package/dist/_chunks/contact-profile-card-CAL66GaH.js.map +1 -0
- package/dist/_chunks/{data-table-C5uN4ato.js → data-table-zXBxFYpJ.js} +761 -715
- package/dist/_chunks/data-table-zXBxFYpJ.js.map +1 -0
- package/dist/_chunks/{date-range-picker-B_j4VQlV.js → date-range-picker-DCADIR8o.js} +2 -2
- package/dist/_chunks/{date-range-picker-B_j4VQlV.js.map → date-range-picker-DCADIR8o.js.map} +1 -1
- package/dist/_chunks/{date-time-picker-cwsWiB4q.js → date-time-picker-CT2bC7-A.js} +2 -2
- package/dist/_chunks/{date-time-picker-cwsWiB4q.js.map → date-time-picker-CT2bC7-A.js.map} +1 -1
- package/dist/_chunks/{document-preview-U8H6tnDJ.js → document-preview-BalyZqnn.js} +2 -2
- package/dist/_chunks/{document-preview-U8H6tnDJ.js.map → document-preview-BalyZqnn.js.map} +1 -1
- package/dist/_chunks/{document-scanner-Bf3VUp00.js → document-scanner-5p-Uu8dy.js} +2 -2
- package/dist/_chunks/{document-scanner-Bf3VUp00.js.map → document-scanner-5p-Uu8dy.js.map} +1 -1
- package/dist/_chunks/{entity-summary-BKfR4Vws.js → entity-summary-BbqqYqF1.js} +2 -2
- package/dist/_chunks/{entity-summary-BKfR4Vws.js.map → entity-summary-BbqqYqF1.js.map} +1 -1
- package/dist/_chunks/{error-summary-mGxIyDAY.js → error-summary-DxNhwf_G.js} +2 -2
- package/dist/_chunks/{error-summary-mGxIyDAY.js.map → error-summary-DxNhwf_G.js.map} +1 -1
- package/dist/_chunks/{face-scheme-DdVLQ5dP.js → face-scheme-e2M2HJGz.js} +2 -2
- package/dist/_chunks/{face-scheme-DdVLQ5dP.js.map → face-scheme-e2M2HJGz.js.map} +1 -1
- package/dist/_chunks/{file-manager-CnGBVX_q.js → file-manager-BDKe59sg.js} +2 -2
- package/dist/_chunks/{file-manager-CnGBVX_q.js.map → file-manager-BDKe59sg.js.map} +1 -1
- package/dist/_chunks/{forgot-password-form-CeTb5p-x.js → forgot-password-form-vfCO2-Tt.js} +4 -4
- package/dist/_chunks/{forgot-password-form-CeTb5p-x.js.map → forgot-password-form-vfCO2-Tt.js.map} +1 -1
- package/dist/_chunks/{freemium-paywall-CM0zQSDE.js → freemium-paywall-BDeq9QWR.js} +2 -2
- package/dist/_chunks/{freemium-paywall-CM0zQSDE.js.map → freemium-paywall-BDeq9QWR.js.map} +1 -1
- package/dist/_chunks/{gestational-age-calculator-CXcDKQqC.js → gestational-age-calculator-AnaH00nk.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-CXcDKQqC.js.map → gestational-age-calculator-AnaH00nk.js.map} +1 -1
- package/dist/_chunks/{hcg-doubling-BJFR3onB.js → hcg-doubling-DdyUt4gz.js} +2 -2
- package/dist/_chunks/{hcg-doubling-BJFR3onB.js.map → hcg-doubling-DdyUt4gz.js.map} +1 -1
- package/dist/_chunks/{heatmap-Cz0Krieg.js → heatmap-D4qqpCEj.js} +1550 -1547
- package/dist/_chunks/{heatmap-Cz0Krieg.js.map → heatmap-D4qqpCEj.js.map} +1 -1
- package/dist/_chunks/{help-me-write-templates-ra5a__Yy.js → help-me-write-templates-YmceSxf5.js} +3 -3
- package/dist/_chunks/{help-me-write-templates-ra5a__Yy.js.map → help-me-write-templates-YmceSxf5.js.map} +1 -1
- package/dist/_chunks/info-tip-C-MPkShR.js +266 -0
- package/dist/_chunks/info-tip-C-MPkShR.js.map +1 -0
- package/dist/_chunks/{kit-extensions-C4o_tFN4.js → kit-extensions-BOnTM4Yf.js} +3 -3
- package/dist/_chunks/{kit-extensions-C4o_tFN4.js.map → kit-extensions-BOnTM4Yf.js.map} +1 -1
- package/dist/_chunks/{link-cell-renderer-BRek9kz7.js → link-cell-renderer-C8vfCOEp.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-BRek9kz7.js.map → link-cell-renderer-C8vfCOEp.js.map} +1 -1
- package/dist/_chunks/{login-dev-card-D5BV5j1i.js → login-dev-card-Cz1Clugq.js} +3 -3
- package/dist/_chunks/{login-dev-card-D5BV5j1i.js.map → login-dev-card-Cz1Clugq.js.map} +1 -1
- package/dist/_chunks/{marketplace-app-shell-BsctSegT.js → marketplace-app-shell-C-4QF6mp.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-BsctSegT.js.map → marketplace-app-shell-C-4QF6mp.js.map} +1 -1
- package/dist/_chunks/{notes-panel-BjTpaz8d.js → notes-panel-SlzUL8in.js} +4 -4
- package/dist/_chunks/{notes-panel-BjTpaz8d.js.map → notes-panel-SlzUL8in.js.map} +1 -1
- package/dist/_chunks/{notice-group-DkYzKyAZ.js → notice-group-B-trhof8.js} +3 -3
- package/dist/_chunks/{notice-group-DkYzKyAZ.js.map → notice-group-B-trhof8.js.map} +1 -1
- package/dist/_chunks/{patient-details-BXM3dRKb.js → patient-details-wMgTFtpp.js} +2 -2
- package/dist/_chunks/{patient-details-BXM3dRKb.js.map → patient-details-wMgTFtpp.js.map} +1 -1
- package/dist/_chunks/{patient-field-row--dCDO5oB.js → patient-field-row-Bhm2Ig1P.js} +2 -2
- package/dist/_chunks/{patient-field-row--dCDO5oB.js.map → patient-field-row-Bhm2Ig1P.js.map} +1 -1
- package/dist/_chunks/{patient-summary-card-DB7fv-Tr.js → patient-summary-card-DMdPPG3n.js} +2 -2
- package/dist/_chunks/{patient-summary-card-DB7fv-Tr.js.map → patient-summary-card-DMdPPG3n.js.map} +1 -1
- package/dist/_chunks/{payment-automation-upsell-BPF0c-5D.js → payment-automation-upsell-u5EuFyCY.js} +2 -2
- package/dist/_chunks/{payment-automation-upsell-BPF0c-5D.js.map → payment-automation-upsell-u5EuFyCY.js.map} +1 -1
- package/dist/_chunks/{payment-form-PBuh8PIa.js → payment-form-C-s1x-bU.js} +2 -2
- package/dist/_chunks/{payment-form-PBuh8PIa.js.map → payment-form-C-s1x-bU.js.map} +1 -1
- package/dist/_chunks/{pdf-viewer-DlceXkfW.js → pdf-viewer-BnBKdx0y.js} +2 -2
- package/dist/_chunks/{pdf-viewer-DlceXkfW.js.map → pdf-viewer-BnBKdx0y.js.map} +1 -1
- package/dist/_chunks/{practice-profile-hero-BAvGdQmt.js → practice-profile-hero-Bb4YyxHA.js} +31 -29
- package/dist/_chunks/practice-profile-hero-Bb4YyxHA.js.map +1 -0
- package/dist/_chunks/{practice-results-ChBP9x2r.js → practice-results-BXz01sti.js} +485 -445
- package/dist/_chunks/practice-results-BXz01sti.js.map +1 -0
- package/dist/_chunks/{pregnancy-dating-D0Kf9s7s.js → pregnancy-dating-D6dLkMpl.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-D0Kf9s7s.js.map → pregnancy-dating-D6dLkMpl.js.map} +1 -1
- package/dist/_chunks/{progress-notice-DiHWZ8Ms.js → progress-notice-F7ao70ZP.js} +2 -2
- package/dist/_chunks/{progress-notice-DiHWZ8Ms.js.map → progress-notice-F7ao70ZP.js.map} +1 -1
- package/dist/_chunks/{radiograph-panel.agent-BQ95uFCd.js → radiograph-panel.agent-0ngF2sGS.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-BQ95uFCd.js.map → radiograph-panel.agent-0ngF2sGS.js.map} +1 -1
- package/dist/_chunks/{registration-form-JzzTomhd.js → registration-form-CEJRUS9G.js} +3 -3
- package/dist/_chunks/{registration-form-JzzTomhd.js.map → registration-form-CEJRUS9G.js.map} +1 -1
- package/dist/_chunks/{reserved.agent-BxD0gnbt.js → reserved.agent-C-C9cvO5.js} +2 -2
- package/dist/_chunks/{reserved.agent-BxD0gnbt.js.map → reserved.agent-C-C9cvO5.js.map} +1 -1
- package/dist/_chunks/{reset-password-form-DDdGEoIL.js → reset-password-form-B0acanDD.js} +4 -4
- package/dist/_chunks/{reset-password-form-DDdGEoIL.js.map → reset-password-form-B0acanDD.js.map} +1 -1
- package/dist/_chunks/{rich-text-editor-F04przIt.js → rich-text-editor-C3nANKZt.js} +2 -2
- package/dist/_chunks/{rich-text-editor-F04przIt.js.map → rich-text-editor-C3nANKZt.js.map} +1 -1
- package/dist/_chunks/{send-registration-link-form-DHCQpA4C.js → send-registration-link-form-Nn0jf65G.js} +3 -3
- package/dist/_chunks/{send-registration-link-form-DHCQpA4C.js.map → send-registration-link-form-Nn0jf65G.js.map} +1 -1
- package/dist/_chunks/{sign-document-B5qZhthO.js → sign-document-CQZVzfpk.js} +2 -2
- package/dist/_chunks/{sign-document-B5qZhthO.js.map → sign-document-CQZVzfpk.js.map} +1 -1
- package/dist/_chunks/{signature-request-DB6kePIm.js → signature-request-DtLph5Z4.js} +3 -3
- package/dist/_chunks/{signature-request-DB6kePIm.js.map → signature-request-DtLph5Z4.js.map} +1 -1
- package/dist/_chunks/{switch-D--x7n6h.js → switch-DO6uC4HJ.js} +40 -36
- package/dist/_chunks/switch-DO6uC4HJ.js.map +1 -0
- package/dist/_chunks/{task-editor-BiPGFXtB.js → task-editor-CmXcj6cC.js} +4 -4
- package/dist/_chunks/{task-editor-BiPGFXtB.js.map → task-editor-CmXcj6cC.js.map} +1 -1
- package/dist/_chunks/{tasks-panel-iVeuu9a8.js → tasks-panel-CFo5uIHx.js} +3 -3
- package/dist/_chunks/{tasks-panel-iVeuu9a8.js.map → tasks-panel-CFo5uIHx.js.map} +1 -1
- package/dist/_chunks/{theme-toggle-jZRbAidE.js → theme-toggle-Czq3K9jB.js} +2 -2
- package/dist/_chunks/{theme-toggle-jZRbAidE.js.map → theme-toggle-Czq3K9jB.js.map} +1 -1
- package/dist/_chunks/{time-picker-DSt-ns5F.js → time-picker-DDr5vhwQ.js} +344 -332
- package/dist/_chunks/time-picker-DDr5vhwQ.js.map +1 -0
- package/dist/_chunks/{tooth-scheme-Bd7xECuj.js → tooth-scheme-C-ALCHaV.js} +2 -2
- package/dist/_chunks/{tooth-scheme-Bd7xECuj.js.map → tooth-scheme-C-ALCHaV.js.map} +1 -1
- package/dist/_chunks/{use-appointment-details-read-CmqGGYCy.js → use-appointment-details-read-VI26Z-pc.js} +3 -3
- package/dist/_chunks/{use-appointment-details-read-CmqGGYCy.js.map → use-appointment-details-read-VI26Z-pc.js.map} +1 -1
- package/dist/_chunks/{voice-control-panel-BGJjUwnY.js → voice-control-panel-B0TUZAiP.js} +3 -3
- package/dist/_chunks/{voice-control-panel-BGJjUwnY.js.map → voice-control-panel-B0TUZAiP.js.map} +1 -1
- package/dist/_chunks/{warning-stack-3S7e2q07.js → warning-stack-Dx7cpj10.js} +2 -2
- package/dist/_chunks/{warning-stack-3S7e2q07.js.map → warning-stack-Dx7cpj10.js.map} +1 -1
- package/dist/_chunks/week-availability-CsTiwtYj.js +318 -0
- package/dist/_chunks/week-availability-CsTiwtYj.js.map +1 -0
- package/dist/_chunks/weekly-hours-editor-BsVsgeOc.js +252 -0
- package/dist/_chunks/weekly-hours-editor-BsVsgeOc.js.map +1 -0
- package/dist/_chunks/{workflow-map-B1jf6QaB.js → workflow-map-DWk-rZse.js} +2 -2
- package/dist/_chunks/{workflow-map-B1jf6QaB.js.map → workflow-map-DWk-rZse.js.map} +1 -1
- package/dist/_chunks/{workflow-webhook-action-B_52rH7O.js → workflow-webhook-action-DILFqAVd.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-B_52rH7O.js.map → workflow-webhook-action-DILFqAVd.js.map} +1 -1
- package/dist/ag-grid.css +5 -1
- package/dist/agent-catalog.json +1 -1
- package/dist/components/ai-credits-notice/index.js +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/booking/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/contact-profile-card/contact-profile-card.d.ts +8 -0
- package/dist/components/contact-profile-card/contact-profile-card.d.ts.map +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/data-table/data-table.d.ts +6 -0
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/header-min-width.d.ts +21 -0
- package/dist/components/data-table/header-min-width.d.ts.map +1 -0
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/error-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/heatmap/heatmap.d.ts +5 -0
- package/dist/components/heatmap/heatmap.d.ts.map +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/info-tip/info-tip.d.ts +10 -0
- package/dist/components/info-tip/info-tip.d.ts.map +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notice-group/index.js +1 -1
- package/dist/components/patient-details/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-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +7 -0
- package/dist/components/practice-profile-hero/practice-profile-hero.d.ts.map +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +13 -0
- package/dist/components/practice-results/practice-results.d.ts.map +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/progress-notice/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/switch.d.ts +2 -0
- package/dist/components/switch/switch.d.ts.map +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/time-picker/index.js +1 -1
- package/dist/components/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/week-availability/index.d.ts +3 -0
- package/dist/components/week-availability/index.d.ts.map +1 -0
- package/dist/components/week-availability/index.js +10 -0
- package/dist/components/week-availability/index.js.map +1 -0
- package/dist/components/week-availability/week-availability.d.ts +68 -0
- package/dist/components/week-availability/week-availability.d.ts.map +1 -0
- package/dist/components/weekly-hours-editor/index.d.ts +3 -0
- package/dist/components/weekly-hours-editor/index.d.ts.map +1 -0
- package/dist/components/weekly-hours-editor/index.js +9 -0
- package/dist/components/weekly-hours-editor/index.js.map +1 -0
- package/dist/components/weekly-hours-editor/weekly-hours-editor.d.ts +42 -0
- package/dist/components/weekly-hours-editor/weekly-hours-editor.d.ts.map +1 -0
- package/dist/components/workflow/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/i18n/locales/ar.d.ts +34 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +34 -0
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +34 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +34 -0
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +34 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +34 -0
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +34 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +34 -0
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +34 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +34 -0
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +34 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +34 -0
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +34 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +34 -0
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +34 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +34 -0
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +34 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +34 -0
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +34 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +34 -0
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +34 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +34 -0
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +34 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +34 -0
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +34 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +34 -0
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +34 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +34 -0
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +34 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +34 -0
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +34 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +34 -0
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +34 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +34 -0
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +34 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +34 -0
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +879 -866
- package/dist/index.js.map +1 -1
- package/dist/locales/ar.json +34 -0
- package/dist/locales/de.json +34 -0
- package/dist/locales/el.json +34 -0
- package/dist/locales/en.json +34 -0
- package/dist/locales/es.json +34 -0
- package/dist/locales/fr.json +34 -0
- package/dist/locales/hi.json +34 -0
- package/dist/locales/it.json +34 -0
- package/dist/locales/ja.json +34 -0
- package/dist/locales/nl.json +34 -0
- package/dist/locales/pl.json +34 -0
- package/dist/locales/pt.json +34 -0
- package/dist/locales/ro.json +34 -0
- package/dist/locales/ru.json +34 -0
- package/dist/locales/sq.json +34 -0
- package/dist/locales/sv.json +34 -0
- package/dist/locales/tr.json +34 -0
- package/dist/locales/zh.json +34 -0
- 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 +2 -2
- 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/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +3 -1
- package/package.json +9 -1
- package/dist/_chunks/alert-9kEwDza3.js.map +0 -1
- package/dist/_chunks/contact-profile-card-uExd3pKC.js.map +0 -1
- package/dist/_chunks/data-table-C5uN4ato.js.map +0 -1
- package/dist/_chunks/info-tip-1Xsq9GLi.js +0 -230
- package/dist/_chunks/info-tip-1Xsq9GLi.js.map +0 -1
- package/dist/_chunks/practice-profile-hero-BAvGdQmt.js.map +0 -1
- package/dist/_chunks/practice-results-ChBP9x2r.js.map +0 -1
- package/dist/_chunks/switch-D--x7n6h.js.map +0 -1
- package/dist/_chunks/time-picker-DSt-ns5F.js.map +0 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as t, jsxs as g, Fragment as ot } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as ct, useState as me, useRef as T, useMemo as M, useImperativeHandle as lt, useCallback as _, useEffect as X } from "react";
|
|
3
3
|
import { c as O } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { A as
|
|
4
|
+
import { useTranslation as k } from "react-i18next";
|
|
5
|
+
import { A as J } from "./alert-C4WKViaS.js";
|
|
6
6
|
import { A as Se } from "./avatar-Dp5apm1d.js";
|
|
7
|
-
import { B as
|
|
7
|
+
import { B as Y } from "./button-DohK_Ak_.js";
|
|
8
8
|
import { D } from "./dropdown-menu-CqxBthww.js";
|
|
9
|
-
import { E as
|
|
10
|
-
import { M as
|
|
9
|
+
import { E as dt } from "./empty-state-DwJ5YNzz.js";
|
|
10
|
+
import { M as ut } from "./map-view-V7etHnyF.js";
|
|
11
11
|
import { R as Le } from "./rating-CGYpg5dj.js";
|
|
12
|
-
import { S as
|
|
13
|
-
import { S as
|
|
14
|
-
import { S as
|
|
12
|
+
import { S as V } from "./sheet-uZZXaO_S.js";
|
|
13
|
+
import { S as mt } from "./skeleton-tTWJpvAq.js";
|
|
14
|
+
import { S as ft } from "./spinner-CoflYlEx.js";
|
|
15
15
|
import { B as $ } from "./badge-BUk4RjTS.js";
|
|
16
|
-
import { u as
|
|
17
|
-
import { b as
|
|
18
|
-
import { u as
|
|
19
|
-
import { c as
|
|
20
|
-
import { R as
|
|
16
|
+
import { u as pt } from "./use-media-query-CcAx5SMM.js";
|
|
17
|
+
import { b as ht, a as Ce } from "./format-price-BcFBa-WP.js";
|
|
18
|
+
import { u as gt } from "./registry-DvAUVLHh.js";
|
|
19
|
+
import { c as vt } from "./createLucideIcon-DhHxpK9K.js";
|
|
20
|
+
import { R as bt } from "./refresh-cw-DnI0cLFC.js";
|
|
21
21
|
import { C as Pe } from "./chevron-down-DWE7GSq9.js";
|
|
22
22
|
import { L as Ae } from "./languages-CGLX6Qpe.js";
|
|
23
23
|
import { S as Me } from "./shield-check-DCJALLVh.js";
|
|
24
24
|
import { H as Fe } from "./heart--qCA4ffe.js";
|
|
25
25
|
import { M as fe } from "./map-pin-BaY37-Km.js";
|
|
26
|
-
import { C as
|
|
27
|
-
import { C as
|
|
26
|
+
import { C as xt } from "./calendar-clock-hbObjfGY.js";
|
|
27
|
+
import { C as yt } from "./calendar-plus-BFrIRE4r.js";
|
|
28
28
|
/**
|
|
29
29
|
* @license lucide-react v1.22.0 - ISC
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the ISC license.
|
|
32
32
|
* See the LICENSE file in the root directory of this source tree.
|
|
33
33
|
*/
|
|
34
|
-
const
|
|
34
|
+
const wt = [
|
|
35
35
|
[
|
|
36
36
|
"path",
|
|
37
37
|
{
|
|
@@ -41,7 +41,7 @@ const vt = [
|
|
|
41
41
|
],
|
|
42
42
|
["path", { d: "M15 5.764v15", key: "1pn4in" }],
|
|
43
43
|
["path", { d: "M9 3.236v15", key: "1uimfh" }]
|
|
44
|
-
],
|
|
44
|
+
], kt = vt("map", wt), Ct = {
|
|
45
45
|
id: "practice-results",
|
|
46
46
|
// `scroll` backs scroll_to_result; `pick` backs focus_pin (a non-persisting
|
|
47
47
|
// pin highlight). The active variant is consumer-owned via props, so there is
|
|
@@ -120,7 +120,7 @@ const vt = [
|
|
|
120
120
|
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", 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).'
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
},
|
|
123
|
+
}, Rt = 13, Nt = [
|
|
124
124
|
"distance",
|
|
125
125
|
"rating",
|
|
126
126
|
"next-available",
|
|
@@ -145,22 +145,22 @@ function Z(e, n, i, s) {
|
|
|
145
145
|
const a = e[r];
|
|
146
146
|
a && (B("serp_result_clicked", { resultId: n, source: i, position: r }), s(a, i));
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
const s = (n.lat - e.lat) * Math.PI / 180, r = (n.lng - e.lng) * Math.PI / 180, a = e.lat * Math.PI / 180, l = n.lat * Math.PI / 180, d = Math.sin(s / 2), o = Math.sin(r / 2),
|
|
150
|
-
return 2 * 6371 * Math.asin(Math.min(1, Math.sqrt(
|
|
148
|
+
function St(e, n) {
|
|
149
|
+
const s = (n.lat - e.lat) * Math.PI / 180, r = (n.lng - e.lng) * Math.PI / 180, a = e.lat * Math.PI / 180, l = n.lat * Math.PI / 180, d = Math.sin(s / 2), o = Math.sin(r / 2), h = d * d + Math.cos(a) * Math.cos(l) * o * o;
|
|
150
|
+
return 2 * 6371 * Math.asin(Math.min(1, Math.sqrt(h)));
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Lt(e, n, i) {
|
|
153
153
|
var r;
|
|
154
154
|
const s = [];
|
|
155
155
|
for (const a of e) {
|
|
156
156
|
const l = a.field ?? a.key, d = (((r = i == null ? void 0 : i[a.key]) == null ? void 0 : r.length) ?? 0) > 0, o = a.type === "boolean" || a.type !== "options" && a.options.length === 0 && (d || n.some(
|
|
157
|
-
(
|
|
157
|
+
(h) => typeof h[l] == "boolean"
|
|
158
158
|
));
|
|
159
159
|
!o && a.options.length === 0 || s.push({ ...a, boolean: o, booleanField: l });
|
|
160
160
|
}
|
|
161
161
|
return s;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Pt(e, n, i) {
|
|
164
164
|
return !n || Object.keys(n).length === 0 ? e : e.filter((s) => {
|
|
165
165
|
for (const r of i) {
|
|
166
166
|
const a = n[r.key];
|
|
@@ -175,27 +175,27 @@ function Rt(e, n, i) {
|
|
|
175
175
|
return !0;
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function At(e) {
|
|
179
179
|
const n = e.firstVisitPrice && Number.isFinite(e.firstVisitPrice.minCents) ? e.firstVisitPrice.minCents : e.firstVisitPriceCents;
|
|
180
180
|
return n != null && Number.isFinite(n) && n >= 0 ? n : 1 / 0;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Mt(e) {
|
|
183
183
|
return e.firstVisitPrice && Number.isFinite(e.firstVisitPrice.minCents) ? e.firstVisitPrice.kind === "fixed" : !0;
|
|
184
184
|
}
|
|
185
185
|
function Re(e, n) {
|
|
186
186
|
return e == null && n == null ? 0 : e == null ? 1 : n == null ? -1 : e - n;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Ft(e, n, i) {
|
|
189
189
|
const s = e.map((a) => {
|
|
190
|
-
const l = a.location ? a.location.distanceKm ?? (i ?
|
|
190
|
+
const l = a.location ? a.location.distanceKm ?? (i ? St(i, a.location) : void 0) : void 0;
|
|
191
191
|
return {
|
|
192
192
|
result: a,
|
|
193
193
|
distanceKm: l,
|
|
194
|
-
price: n === "price" ?
|
|
195
|
-
fixed: n === "price" ?
|
|
194
|
+
price: n === "price" ? At(a) : void 0,
|
|
195
|
+
fixed: n === "price" ? Mt(a) : !1
|
|
196
196
|
};
|
|
197
197
|
}), r = (a, l) => {
|
|
198
|
-
var d, o,
|
|
198
|
+
var d, o, h, c;
|
|
199
199
|
switch (n) {
|
|
200
200
|
case "distance":
|
|
201
201
|
return Re(a.distanceKm, l.distanceKm);
|
|
@@ -208,7 +208,7 @@ function Lt(e, n, i) {
|
|
|
208
208
|
return (((o = l.result.rating) == null ? void 0 : o.value) ?? -1) - u;
|
|
209
209
|
}
|
|
210
210
|
case "next-available": {
|
|
211
|
-
const u = ((
|
|
211
|
+
const u = ((h = a.result.nextAvailableSlot) == null ? void 0 : h.dateTime) ?? "", f = ((c = l.result.nextAvailableSlot) == null ? void 0 : c.dateTime) ?? "";
|
|
212
212
|
return !u && !f ? 0 : u ? f ? u.localeCompare(f) : -1 : 1;
|
|
213
213
|
}
|
|
214
214
|
case "relevance":
|
|
@@ -223,7 +223,7 @@ function Lt(e, n, i) {
|
|
|
223
223
|
} : a
|
|
224
224
|
);
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function It(e) {
|
|
227
227
|
let n = -1 / 0, i = 1 / 0, s = -1 / 0, r = 1 / 0, a = !1;
|
|
228
228
|
for (const l of e) {
|
|
229
229
|
if (!l.location) continue;
|
|
@@ -234,7 +234,7 @@ function Pt(e) {
|
|
|
234
234
|
if (a)
|
|
235
235
|
return { north: n, south: i, east: s, west: r };
|
|
236
236
|
}
|
|
237
|
-
const
|
|
237
|
+
const Tt = O(
|
|
238
238
|
"ds:flex ds:w-full ds:flex-col ds:text-[var(--foreground)] ds:gap-[var(--spacing-md)]",
|
|
239
239
|
{
|
|
240
240
|
variants: {
|
|
@@ -254,13 +254,13 @@ function Te({
|
|
|
254
254
|
totalCount: s,
|
|
255
255
|
searchCentreLabel: r
|
|
256
256
|
}) {
|
|
257
|
-
const { t: a } =
|
|
257
|
+
const { t: a } = k("ui"), l = `h${n}`;
|
|
258
258
|
if (!e && !i && s == null) return null;
|
|
259
259
|
const d = s != null ? r ? a("practiceResults.results.heading", {
|
|
260
260
|
count: s,
|
|
261
261
|
place: r
|
|
262
262
|
}) : a("practiceResults.results.summary", { count: s }) : void 0;
|
|
263
|
-
return /* @__PURE__ */
|
|
263
|
+
return /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
264
264
|
e ? /* @__PURE__ */ t(l, { className: "type-title-section ds:m-0 ds:text-[var(--foreground)]", children: e }) : null,
|
|
265
265
|
i ? /* @__PURE__ */ t("p", { className: "type-body ds:m-0 ds:text-[var(--muted-foreground)]", children: i }) : null,
|
|
266
266
|
d ? /* @__PURE__ */ t(
|
|
@@ -273,7 +273,7 @@ function Te({
|
|
|
273
273
|
) : null
|
|
274
274
|
] });
|
|
275
275
|
}
|
|
276
|
-
const
|
|
276
|
+
const ee = O(
|
|
277
277
|
[
|
|
278
278
|
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
279
279
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -295,7 +295,7 @@ const te = O(
|
|
|
295
295
|
},
|
|
296
296
|
defaultVariants: { state: "idle" }
|
|
297
297
|
}
|
|
298
|
-
),
|
|
298
|
+
), _t = O(
|
|
299
299
|
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
300
300
|
{
|
|
301
301
|
variants: {
|
|
@@ -314,7 +314,7 @@ const te = O(
|
|
|
314
314
|
},
|
|
315
315
|
defaultVariants: { placement: "inline" }
|
|
316
316
|
}
|
|
317
|
-
),
|
|
317
|
+
), Vt = O(
|
|
318
318
|
[
|
|
319
319
|
"ds:ms-[var(--spacing-xs)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
320
320
|
"ds:min-h-[var(--min-target-size)] ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]",
|
|
@@ -331,7 +331,7 @@ function _e({
|
|
|
331
331
|
onChange: i,
|
|
332
332
|
floating: s
|
|
333
333
|
}) {
|
|
334
|
-
const { t: r } =
|
|
334
|
+
const { t: r } = k("ui"), a = M(() => n ?? {}, [n]), l = M(
|
|
335
335
|
() => Object.values(a).some((c) => c && c.length > 0),
|
|
336
336
|
[a]
|
|
337
337
|
), d = (c, u) => {
|
|
@@ -341,18 +341,18 @@ function _e({
|
|
|
341
341
|
var f;
|
|
342
342
|
const u = (((f = a[c]) == null ? void 0 : f.length) ?? 0) > 0;
|
|
343
343
|
d(c, u ? [] : ["true"]);
|
|
344
|
-
},
|
|
344
|
+
}, h = (c, u) => {
|
|
345
345
|
const f = a[c.key] ?? [], x = f.includes(u);
|
|
346
|
-
let
|
|
347
|
-
c.multi ?
|
|
346
|
+
let v;
|
|
347
|
+
c.multi ? v = x ? f.filter((w) => w !== u) : [...f, u] : v = x ? [] : [u], d(c.key, v);
|
|
348
348
|
};
|
|
349
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
349
|
+
return e.length === 0 ? null : /* @__PURE__ */ g(
|
|
350
350
|
"div",
|
|
351
351
|
{
|
|
352
352
|
"data-component": "practice-results-filters",
|
|
353
353
|
role: "group",
|
|
354
354
|
"aria-label": r("practiceResults.filters.label"),
|
|
355
|
-
className:
|
|
355
|
+
className: _t({
|
|
356
356
|
placement: s ? "floating" : "inline"
|
|
357
357
|
}),
|
|
358
358
|
children: [
|
|
@@ -366,27 +366,27 @@ function _e({
|
|
|
366
366
|
"aria-pressed": x,
|
|
367
367
|
"aria-label": c.label,
|
|
368
368
|
onClick: () => o(c.key),
|
|
369
|
-
className:
|
|
369
|
+
className: ee({
|
|
370
370
|
state: x ? "active" : "idle"
|
|
371
371
|
}),
|
|
372
372
|
children: /* @__PURE__ */ t("span", { children: c.label })
|
|
373
373
|
},
|
|
374
374
|
c.key
|
|
375
375
|
);
|
|
376
|
-
const
|
|
377
|
-
return /* @__PURE__ */
|
|
378
|
-
/* @__PURE__ */ t(D.Trigger, { asChild: !0, children: /* @__PURE__ */
|
|
376
|
+
const v = x ? ` (${f.length})` : "";
|
|
377
|
+
return /* @__PURE__ */ g(D.Root, { children: [
|
|
378
|
+
/* @__PURE__ */ t(D.Trigger, { asChild: !0, children: /* @__PURE__ */ g(
|
|
379
379
|
"button",
|
|
380
380
|
{
|
|
381
381
|
type: "button",
|
|
382
|
-
"aria-label": `${c.label}${
|
|
383
|
-
className:
|
|
382
|
+
"aria-label": `${c.label}${v}`,
|
|
383
|
+
className: ee({
|
|
384
384
|
state: x ? "active" : "idle"
|
|
385
385
|
}),
|
|
386
386
|
children: [
|
|
387
|
-
/* @__PURE__ */
|
|
387
|
+
/* @__PURE__ */ g("span", { children: [
|
|
388
388
|
c.label,
|
|
389
|
-
|
|
389
|
+
v
|
|
390
390
|
] }),
|
|
391
391
|
/* @__PURE__ */ t(
|
|
392
392
|
Pe,
|
|
@@ -398,16 +398,16 @@ function _e({
|
|
|
398
398
|
]
|
|
399
399
|
}
|
|
400
400
|
) }),
|
|
401
|
-
/* @__PURE__ */ t(D.Content, { sideOffset: 8, align: "start", children: c.options.map((
|
|
401
|
+
/* @__PURE__ */ t(D.Content, { sideOffset: 8, align: "start", children: c.options.map((w) => /* @__PURE__ */ t(
|
|
402
402
|
D.CheckboxItem,
|
|
403
403
|
{
|
|
404
|
-
checked: f.includes(
|
|
405
|
-
onSelect: (
|
|
406
|
-
c.multi &&
|
|
404
|
+
checked: f.includes(w.value),
|
|
405
|
+
onSelect: (y) => {
|
|
406
|
+
c.multi && y.preventDefault(), h(c, w.value);
|
|
407
407
|
},
|
|
408
|
-
children:
|
|
408
|
+
children: w.label
|
|
409
409
|
},
|
|
410
|
-
|
|
410
|
+
w.value
|
|
411
411
|
)) })
|
|
412
412
|
] }, c.key);
|
|
413
413
|
}),
|
|
@@ -418,7 +418,7 @@ function _e({
|
|
|
418
418
|
onClick: () => {
|
|
419
419
|
i({}), B("serp_filter_changed", { key: "*", values: [] });
|
|
420
420
|
},
|
|
421
|
-
className:
|
|
421
|
+
className: Vt(),
|
|
422
422
|
children: r("practiceResults.filters.clear")
|
|
423
423
|
}
|
|
424
424
|
) : null
|
|
@@ -427,7 +427,7 @@ function _e({
|
|
|
427
427
|
);
|
|
428
428
|
}
|
|
429
429
|
function de({ value: e, onChange: n }) {
|
|
430
|
-
const { t: i } =
|
|
430
|
+
const { t: i } = k("ui"), s = (r) => {
|
|
431
431
|
switch (r) {
|
|
432
432
|
case "distance":
|
|
433
433
|
return i("practiceResults.sort.distance");
|
|
@@ -442,15 +442,15 @@ function de({ value: e, onChange: n }) {
|
|
|
442
442
|
return i("practiceResults.sort.relevance");
|
|
443
443
|
}
|
|
444
444
|
};
|
|
445
|
-
return /* @__PURE__ */
|
|
446
|
-
/* @__PURE__ */ t(D.Trigger, { asChild: !0, children: /* @__PURE__ */
|
|
445
|
+
return /* @__PURE__ */ g(D.Root, { children: [
|
|
446
|
+
/* @__PURE__ */ t(D.Trigger, { asChild: !0, children: /* @__PURE__ */ g(
|
|
447
447
|
"button",
|
|
448
448
|
{
|
|
449
449
|
type: "button",
|
|
450
450
|
"aria-label": `${i("practiceResults.sort.label")}: ${s(e)}`,
|
|
451
|
-
className:
|
|
451
|
+
className: ee({ state: "idle" }),
|
|
452
452
|
children: [
|
|
453
|
-
/* @__PURE__ */
|
|
453
|
+
/* @__PURE__ */ g("span", { children: [
|
|
454
454
|
i("practiceResults.sort.label"),
|
|
455
455
|
": ",
|
|
456
456
|
s(e)
|
|
@@ -467,13 +467,13 @@ function de({ value: e, onChange: n }) {
|
|
|
467
467
|
const a = r;
|
|
468
468
|
a !== e && (n(a), B("serp_sort_changed", { sort: a }));
|
|
469
469
|
},
|
|
470
|
-
children:
|
|
470
|
+
children: Nt.map((r) => /* @__PURE__ */ t(D.RadioItem, { value: r, children: s(r) }, r))
|
|
471
471
|
}
|
|
472
472
|
) })
|
|
473
473
|
] });
|
|
474
474
|
}
|
|
475
|
-
function
|
|
476
|
-
const { t: n, i18n: i } =
|
|
475
|
+
function Ht({ distanceKm: e }) {
|
|
476
|
+
const { t: n, i18n: i } = k("ui"), s = M(() => {
|
|
477
477
|
if (e < 1) return n("practiceResults.distance.below");
|
|
478
478
|
const r = new Intl.NumberFormat(i.language, {
|
|
479
479
|
maximumFractionDigits: 1
|
|
@@ -501,36 +501,45 @@ const Ne = O(
|
|
|
501
501
|
defaultVariants: { state: "placeholder" }
|
|
502
502
|
}
|
|
503
503
|
);
|
|
504
|
-
function
|
|
504
|
+
function zt() {
|
|
505
505
|
if (typeof document > "u") return "4945a3";
|
|
506
506
|
const e = getComputedStyle(document.documentElement).getPropertyValue("--map-marker-color").trim(), n = /^#?([0-9a-fA-F]{6})$/.exec(e);
|
|
507
507
|
return n ? n[1] : "4945a3";
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function $t({
|
|
510
510
|
apiKey: e,
|
|
511
511
|
center: n,
|
|
512
512
|
zoom: i = 14,
|
|
513
|
-
address: s
|
|
513
|
+
address: s,
|
|
514
|
+
addressLang: r
|
|
514
515
|
}) {
|
|
515
|
-
const { t:
|
|
516
|
+
const { t: a } = k("ui");
|
|
516
517
|
if (!e)
|
|
517
|
-
return /* @__PURE__ */
|
|
518
|
+
return /* @__PURE__ */ g(
|
|
518
519
|
"div",
|
|
519
520
|
{
|
|
520
521
|
"aria-hidden": s ? void 0 : "true",
|
|
521
522
|
className: Ne({ state: "placeholder" }),
|
|
522
523
|
children: [
|
|
523
524
|
/* @__PURE__ */ t(fe, { "aria-hidden": "true", className: "ds:size-5 ds:shrink-0" }),
|
|
524
|
-
s ? /* @__PURE__ */ t(
|
|
525
|
+
s ? /* @__PURE__ */ t(
|
|
526
|
+
"span",
|
|
527
|
+
{
|
|
528
|
+
lang: r,
|
|
529
|
+
dir: "auto",
|
|
530
|
+
className: "type-meta ds:[overflow-wrap:anywhere]",
|
|
531
|
+
children: s
|
|
532
|
+
}
|
|
533
|
+
) : null
|
|
525
534
|
]
|
|
526
535
|
}
|
|
527
536
|
);
|
|
528
|
-
const
|
|
537
|
+
const l = zt(), d = `https://maps.googleapis.com/maps/api/staticmap?center=${n.lat},${n.lng}&zoom=${i}&size=240x160&scale=2&markers=color:0x${l}%7C${n.lat},${n.lng}&key=${encodeURIComponent(e)}`;
|
|
529
538
|
return /* @__PURE__ */ t(
|
|
530
539
|
"img",
|
|
531
540
|
{
|
|
532
|
-
src:
|
|
533
|
-
alt:
|
|
541
|
+
src: d,
|
|
542
|
+
alt: a("practiceResults.thumbnail.alt"),
|
|
534
543
|
loading: "lazy",
|
|
535
544
|
decoding: "async",
|
|
536
545
|
width: 240,
|
|
@@ -539,18 +548,19 @@ function _t({
|
|
|
539
548
|
}
|
|
540
549
|
);
|
|
541
550
|
}
|
|
542
|
-
function
|
|
551
|
+
function Bt({ tagline: e, lang: n }) {
|
|
543
552
|
return e ? /* @__PURE__ */ t(
|
|
544
553
|
"span",
|
|
545
554
|
{
|
|
546
555
|
"data-component": "practice-result-tagline",
|
|
556
|
+
lang: n,
|
|
547
557
|
dir: "auto",
|
|
548
558
|
className: "type-body-sm ds:font-[var(--font-weight-medium)] ds:text-[var(--foreground)]",
|
|
549
559
|
children: e
|
|
550
560
|
}
|
|
551
561
|
) : null;
|
|
552
562
|
}
|
|
553
|
-
const
|
|
563
|
+
const Dt = O(
|
|
554
564
|
"type-body-sm ds:m-0 ds:text-[var(--muted-foreground)] ds:whitespace-pre-line ds:break-words",
|
|
555
565
|
{
|
|
556
566
|
variants: {
|
|
@@ -564,21 +574,23 @@ const Ht = O(
|
|
|
564
574
|
);
|
|
565
575
|
function Ve({
|
|
566
576
|
description: e,
|
|
567
|
-
density: n
|
|
577
|
+
density: n,
|
|
578
|
+
lang: i
|
|
568
579
|
}) {
|
|
569
580
|
return e ? /* @__PURE__ */ t(
|
|
570
581
|
"p",
|
|
571
582
|
{
|
|
572
583
|
"data-component": "practice-result-description",
|
|
584
|
+
lang: i,
|
|
573
585
|
dir: "auto",
|
|
574
|
-
className:
|
|
586
|
+
className: Dt({ density: n }),
|
|
575
587
|
children: e
|
|
576
588
|
}
|
|
577
589
|
) : null;
|
|
578
590
|
}
|
|
579
|
-
function
|
|
591
|
+
function Ot(e, n, i, s) {
|
|
580
592
|
if (e.kind === "fixed")
|
|
581
|
-
return
|
|
593
|
+
return ht(
|
|
582
594
|
e.minCents,
|
|
583
595
|
n,
|
|
584
596
|
i,
|
|
@@ -590,7 +602,7 @@ function zt(e, n, i, s) {
|
|
|
590
602
|
max: Ce(e.maxCents, n, i)
|
|
591
603
|
}) : s("practiceResults.card.priceFrom", { price: r });
|
|
592
604
|
}
|
|
593
|
-
const
|
|
605
|
+
const Et = O(
|
|
594
606
|
"ds:min-w-0 ds:max-w-full ds:[overflow-wrap:anywhere]",
|
|
595
607
|
{
|
|
596
608
|
variants: {
|
|
@@ -598,14 +610,14 @@ const $t = O(
|
|
|
598
610
|
}
|
|
599
611
|
}
|
|
600
612
|
);
|
|
601
|
-
function
|
|
613
|
+
function jt({
|
|
602
614
|
price: e,
|
|
603
615
|
cents: n,
|
|
604
616
|
currencyCode: i = "EUR"
|
|
605
617
|
}) {
|
|
606
618
|
var f;
|
|
607
|
-
const { t: s, i18n: r } =
|
|
608
|
-
() => d == null ? void 0 :
|
|
619
|
+
const { t: s, i18n: r } = k("ui"), a = e && Number.isFinite(e.minCents) ? e : void 0, l = (a == null ? void 0 : a.kind) ?? "fixed", d = (a == null ? void 0 : a.minCents) ?? n, o = a == null ? void 0 : a.maxCents, h = M(
|
|
620
|
+
() => d == null ? void 0 : Ot(
|
|
609
621
|
{ kind: l, minCents: d, maxCents: o },
|
|
610
622
|
i,
|
|
611
623
|
r.language ?? "en",
|
|
@@ -613,9 +625,9 @@ function Bt({
|
|
|
613
625
|
),
|
|
614
626
|
[l, d, o, i, r.language, s]
|
|
615
627
|
);
|
|
616
|
-
if (
|
|
628
|
+
if (h === void 0) return null;
|
|
617
629
|
const c = (f = a == null ? void 0 : a.label) == null ? void 0 : f.trim().replace(/:$/, "").trim(), u = c || s("practiceResults.card.firstVisitPrice");
|
|
618
|
-
return /* @__PURE__ */
|
|
630
|
+
return /* @__PURE__ */ g(
|
|
619
631
|
"span",
|
|
620
632
|
{
|
|
621
633
|
"data-component": "practice-result-price",
|
|
@@ -626,7 +638,7 @@ function Bt({
|
|
|
626
638
|
{
|
|
627
639
|
dir: "auto",
|
|
628
640
|
title: u,
|
|
629
|
-
className:
|
|
641
|
+
className: Et({
|
|
630
642
|
practiceWritten: !!c
|
|
631
643
|
}),
|
|
632
644
|
children: u
|
|
@@ -640,7 +652,7 @@ function Bt({
|
|
|
640
652
|
size: "lg",
|
|
641
653
|
dir: "auto",
|
|
642
654
|
className: "ds:h-auto ds:min-h-6 ds:min-w-0 ds:max-w-full ds:whitespace-normal ds:[overflow-wrap:anywhere]",
|
|
643
|
-
children:
|
|
655
|
+
children: h
|
|
644
656
|
}
|
|
645
657
|
)
|
|
646
658
|
]
|
|
@@ -648,10 +660,10 @@ function Bt({
|
|
|
648
660
|
);
|
|
649
661
|
}
|
|
650
662
|
function He({ time: e }) {
|
|
651
|
-
const { t: n } =
|
|
652
|
-
return /* @__PURE__ */
|
|
663
|
+
const { t: n } = k("ui");
|
|
664
|
+
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: [
|
|
653
665
|
/* @__PURE__ */ t(
|
|
654
|
-
|
|
666
|
+
xt,
|
|
655
667
|
{
|
|
656
668
|
"aria-hidden": "true",
|
|
657
669
|
className: "ds:size-4 ds:text-[var(--primary)]"
|
|
@@ -668,29 +680,29 @@ function ze({
|
|
|
668
680
|
onOpenClick: r,
|
|
669
681
|
onBookClick: a
|
|
670
682
|
}) {
|
|
671
|
-
const { t: l } =
|
|
672
|
-
return /* @__PURE__ */
|
|
673
|
-
n !== void 0 ? /* @__PURE__ */ t(
|
|
683
|
+
const { t: l } = k("ui"), d = e.nextAvailableSlot, o = (d == null ? void 0 : d.bookingHref) ?? e.bookingHref ?? e.href, h = d && s ? l("practiceResults.nextSlot.cta", { time: s }) : i;
|
|
684
|
+
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: [
|
|
685
|
+
n !== void 0 ? /* @__PURE__ */ t(Y, { intent: "secondary", size: "sm", asChild: !0, onClick: r, children: /* @__PURE__ */ g("a", { href: e.href, "data-component": "practice-result-open-cta", children: [
|
|
674
686
|
n,
|
|
675
687
|
" ",
|
|
676
688
|
/* @__PURE__ */ t("span", { className: "ds:sr-only", children: e.name })
|
|
677
689
|
] }) }) : null,
|
|
678
690
|
/* @__PURE__ */ t(
|
|
679
|
-
|
|
691
|
+
Y,
|
|
680
692
|
{
|
|
681
693
|
intent: "primary",
|
|
682
694
|
size: "sm",
|
|
683
695
|
asChild: !0,
|
|
684
|
-
startIcon: /* @__PURE__ */ t(
|
|
696
|
+
startIcon: /* @__PURE__ */ t(yt, { "aria-hidden": "true" }),
|
|
685
697
|
onClick: a,
|
|
686
|
-
children: /* @__PURE__ */
|
|
698
|
+
children: /* @__PURE__ */ g(
|
|
687
699
|
"a",
|
|
688
700
|
{
|
|
689
701
|
href: o,
|
|
690
702
|
"data-component": "practice-result-book-cta",
|
|
691
703
|
"data-slot-aware": d ? "true" : void 0,
|
|
692
704
|
children: [
|
|
693
|
-
|
|
705
|
+
h,
|
|
694
706
|
" ",
|
|
695
707
|
/* @__PURE__ */ t("span", { className: "ds:sr-only", children: e.name })
|
|
696
708
|
]
|
|
@@ -728,14 +740,14 @@ const $e = O(
|
|
|
728
740
|
},
|
|
729
741
|
defaultVariants: { density: "compact" }
|
|
730
742
|
}
|
|
731
|
-
),
|
|
743
|
+
), Kt = O([
|
|
732
744
|
"ds:text-[var(--foreground)] ds:no-underline ds:hover:underline",
|
|
733
745
|
"ds:rounded-[var(--radius-xs)]",
|
|
734
746
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
735
747
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
736
748
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
737
749
|
]);
|
|
738
|
-
function
|
|
750
|
+
function qt({
|
|
739
751
|
result: e,
|
|
740
752
|
headingLevel: n
|
|
741
753
|
}) {
|
|
@@ -752,7 +764,7 @@ function Ot({
|
|
|
752
764
|
href: e.href,
|
|
753
765
|
dir: "auto",
|
|
754
766
|
"data-component": "practice-result-name-link",
|
|
755
|
-
className:
|
|
767
|
+
className: Kt(),
|
|
756
768
|
children: e.name
|
|
757
769
|
}
|
|
758
770
|
)
|
|
@@ -769,15 +781,15 @@ function Be({
|
|
|
769
781
|
{
|
|
770
782
|
"data-component": "practice-result-heading",
|
|
771
783
|
className: "ds:@container/result-heading ds:min-w-0 ds:flex-1",
|
|
772
|
-
children: /* @__PURE__ */
|
|
773
|
-
/* @__PURE__ */
|
|
774
|
-
/* @__PURE__ */
|
|
775
|
-
/* @__PURE__ */ t(
|
|
776
|
-
((i = e.location) == null ? void 0 : i.distanceKm) != null ? /* @__PURE__ */ t(
|
|
784
|
+
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: [
|
|
785
|
+
/* @__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: [
|
|
786
|
+
/* @__PURE__ */ g("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
787
|
+
/* @__PURE__ */ t(qt, { result: e, headingLevel: n }),
|
|
788
|
+
((i = e.location) == null ? void 0 : i.distanceKm) != null ? /* @__PURE__ */ t(Ht, { distanceKm: e.location.distanceKm }) : null
|
|
777
789
|
] }),
|
|
778
790
|
e.subtitle ? /* @__PURE__ */ t("span", { className: "type-body-sm ds:text-[var(--muted-foreground)]", children: e.subtitle }) : null,
|
|
779
|
-
/* @__PURE__ */ t(
|
|
780
|
-
(s = e.location) != null && s.address ? /* @__PURE__ */
|
|
791
|
+
/* @__PURE__ */ t(Bt, { tagline: e.tagline, lang: e.contentLang }),
|
|
792
|
+
(s = e.location) != null && s.address ? /* @__PURE__ */ g(
|
|
781
793
|
"span",
|
|
782
794
|
{
|
|
783
795
|
"data-component": "practice-result-address",
|
|
@@ -787,6 +799,7 @@ function Be({
|
|
|
787
799
|
/* @__PURE__ */ t(
|
|
788
800
|
"span",
|
|
789
801
|
{
|
|
802
|
+
lang: e.contentLang,
|
|
790
803
|
dir: "auto",
|
|
791
804
|
className: "ds:min-w-0 ds:[overflow-wrap:anywhere]",
|
|
792
805
|
children: e.location.address
|
|
@@ -797,7 +810,7 @@ function Be({
|
|
|
797
810
|
) : null
|
|
798
811
|
] }),
|
|
799
812
|
/* @__PURE__ */ t(
|
|
800
|
-
|
|
813
|
+
jt,
|
|
801
814
|
{
|
|
802
815
|
price: e.firstVisitPrice,
|
|
803
816
|
cents: e.firstVisitPriceCents,
|
|
@@ -814,7 +827,7 @@ function De(e) {
|
|
|
814
827
|
);
|
|
815
828
|
return n !== null && n !== e.currentTarget && e.currentTarget.contains(n);
|
|
816
829
|
}
|
|
817
|
-
function
|
|
830
|
+
function Ut({
|
|
818
831
|
result: e,
|
|
819
832
|
headingLevel: n,
|
|
820
833
|
highlighted: i,
|
|
@@ -824,17 +837,17 @@ function Et({
|
|
|
824
837
|
density: l = "compact",
|
|
825
838
|
openLabel: d,
|
|
826
839
|
bookLabel: o,
|
|
827
|
-
onBookClick:
|
|
840
|
+
onBookClick: h,
|
|
828
841
|
nextSlotText: c,
|
|
829
842
|
maxInsuranceChips: u = 3,
|
|
830
843
|
maxLanguageChips: f = 4,
|
|
831
844
|
children: x
|
|
832
845
|
}) {
|
|
833
846
|
var q, U, G, E;
|
|
834
|
-
const { t:
|
|
847
|
+
const { t: v, i18n: w } = k("ui"), y = e.rating, R = (((q = e.languages) == null ? void 0 : q.length) ?? 0) > 0, b = (((U = e.insurances) == null ? void 0 : U.length) ?? 0) > 0, m = e.specializedInFearPatients, S = R || b || m, P = (e.languages ?? []).slice(0, f), H = (((G = e.languages) == null ? void 0 : G.length) ?? 0) - P.length, z = (e.insurances ?? []).slice(0, u), A = (((E = e.insurances) == null ? void 0 : E.length) ?? 0) - z.length;
|
|
835
848
|
return (
|
|
836
849
|
// 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.
|
|
837
|
-
/* @__PURE__ */
|
|
850
|
+
/* @__PURE__ */ g(
|
|
838
851
|
"div",
|
|
839
852
|
{
|
|
840
853
|
"data-component": "practice-result-card",
|
|
@@ -842,8 +855,8 @@ function Et({
|
|
|
842
855
|
"data-highlighted": i ? "true" : "false",
|
|
843
856
|
role: "group",
|
|
844
857
|
"aria-labelledby": `practice-result-${e.id}-name`,
|
|
845
|
-
onClick: (
|
|
846
|
-
De(
|
|
858
|
+
onClick: (F) => {
|
|
859
|
+
De(F) || s();
|
|
847
860
|
},
|
|
848
861
|
onMouseEnter: a,
|
|
849
862
|
onFocus: a,
|
|
@@ -862,40 +875,47 @@ function Et({
|
|
|
862
875
|
height: 48
|
|
863
876
|
}
|
|
864
877
|
),
|
|
865
|
-
/* @__PURE__ */
|
|
878
|
+
/* @__PURE__ */ g("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
866
879
|
/* @__PURE__ */ t(Be, { result: e, headingLevel: n }),
|
|
867
|
-
|
|
880
|
+
y && y.count > 0 ? /* @__PURE__ */ t(
|
|
868
881
|
Le,
|
|
869
882
|
{
|
|
870
|
-
value:
|
|
871
|
-
reviews: { count:
|
|
883
|
+
value: y.value,
|
|
884
|
+
reviews: { count: y.count },
|
|
872
885
|
size: "sm"
|
|
873
886
|
}
|
|
874
887
|
) : null,
|
|
875
|
-
|
|
876
|
-
|
|
888
|
+
S ? /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
889
|
+
P.map((F) => /* @__PURE__ */ t(
|
|
877
890
|
$,
|
|
878
891
|
{
|
|
879
892
|
variant: "neutral",
|
|
880
893
|
leading: /* @__PURE__ */ t(Ae, { "aria-hidden": "true" }),
|
|
881
|
-
children: Ie(
|
|
894
|
+
children: Ie(F, v, w)
|
|
882
895
|
},
|
|
883
|
-
`lang-${
|
|
896
|
+
`lang-${F}`
|
|
884
897
|
)),
|
|
885
|
-
|
|
886
|
-
|
|
898
|
+
H > 0 ? /* @__PURE__ */ t($, { variant: "neutral", children: `+${H}` }) : null,
|
|
899
|
+
z.map((F) => /* @__PURE__ */ t(
|
|
887
900
|
$,
|
|
888
901
|
{
|
|
889
902
|
variant: "info",
|
|
890
903
|
leading: /* @__PURE__ */ t(Me, { "aria-hidden": "true" }),
|
|
891
|
-
children:
|
|
904
|
+
children: F
|
|
892
905
|
},
|
|
893
|
-
`ins-${
|
|
906
|
+
`ins-${F}`
|
|
894
907
|
)),
|
|
895
|
-
|
|
896
|
-
m ? /* @__PURE__ */ t($, { variant: "info", leading: /* @__PURE__ */ t(Fe, { "aria-hidden": "true" }), children:
|
|
908
|
+
A > 0 ? /* @__PURE__ */ t($, { variant: "neutral", children: `+${A}` }) : null,
|
|
909
|
+
m ? /* @__PURE__ */ t($, { variant: "info", leading: /* @__PURE__ */ t(Fe, { "aria-hidden": "true" }), children: v("practiceResults.fearPatient.label") }) : null
|
|
897
910
|
] }) : null,
|
|
898
|
-
/* @__PURE__ */ t(
|
|
911
|
+
/* @__PURE__ */ t(
|
|
912
|
+
Ve,
|
|
913
|
+
{
|
|
914
|
+
description: e.description,
|
|
915
|
+
density: "compact",
|
|
916
|
+
lang: e.contentLang
|
|
917
|
+
}
|
|
918
|
+
),
|
|
899
919
|
e.nextAvailableSlot && c ? /* @__PURE__ */ t(He, { time: c }) : null,
|
|
900
920
|
x,
|
|
901
921
|
/* @__PURE__ */ t(
|
|
@@ -906,7 +926,7 @@ function Et({
|
|
|
906
926
|
bookLabel: o,
|
|
907
927
|
nextSlotText: c,
|
|
908
928
|
onOpenClick: r,
|
|
909
|
-
onBookClick:
|
|
929
|
+
onBookClick: h
|
|
910
930
|
}
|
|
911
931
|
)
|
|
912
932
|
] })
|
|
@@ -915,7 +935,7 @@ function Et({
|
|
|
915
935
|
)
|
|
916
936
|
);
|
|
917
937
|
}
|
|
918
|
-
function
|
|
938
|
+
function Gt({
|
|
919
939
|
result: e,
|
|
920
940
|
headingLevel: n,
|
|
921
941
|
apiKey: i,
|
|
@@ -925,10 +945,10 @@ function jt({
|
|
|
925
945
|
onBookClick: l,
|
|
926
946
|
onHover: d,
|
|
927
947
|
openLabel: o,
|
|
928
|
-
bookLabel:
|
|
948
|
+
bookLabel: h
|
|
929
949
|
}) {
|
|
930
|
-
var
|
|
931
|
-
const { t: c, i18n: u } =
|
|
950
|
+
var R, b;
|
|
951
|
+
const { t: c, i18n: u } = k("ui"), f = M(() => {
|
|
932
952
|
if (e.nextAvailableSlot)
|
|
933
953
|
try {
|
|
934
954
|
return new Intl.DateTimeFormat(u.language, {
|
|
@@ -939,10 +959,10 @@ function jt({
|
|
|
939
959
|
} catch {
|
|
940
960
|
return e.nextAvailableSlot.dateTime;
|
|
941
961
|
}
|
|
942
|
-
}, [e.nextAvailableSlot, u.language]), x = (((
|
|
962
|
+
}, [e.nextAvailableSlot, u.language]), x = (((R = e.languages) == null ? void 0 : R.length) ?? 0) > 0, v = (((b = e.insurances) == null ? void 0 : b.length) ?? 0) > 0, w = e.specializedInFearPatients, y = x || v || w;
|
|
943
963
|
return (
|
|
944
964
|
// 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.
|
|
945
|
-
/* @__PURE__ */
|
|
965
|
+
/* @__PURE__ */ g(
|
|
946
966
|
"div",
|
|
947
967
|
{
|
|
948
968
|
"data-component": "practice-result-card",
|
|
@@ -959,18 +979,19 @@ function jt({
|
|
|
959
979
|
className: $e({ density: "rich" }),
|
|
960
980
|
children: [
|
|
961
981
|
e.location ? /* @__PURE__ */ t("div", { className: "ds:hidden ds:@min-[640px]/result-card:block", children: /* @__PURE__ */ t(
|
|
962
|
-
|
|
982
|
+
$t,
|
|
963
983
|
{
|
|
964
984
|
apiKey: i,
|
|
965
985
|
center: {
|
|
966
986
|
lat: e.location.lat,
|
|
967
987
|
lng: e.location.lng
|
|
968
988
|
},
|
|
969
|
-
address: e.location.address
|
|
989
|
+
address: e.location.address,
|
|
990
|
+
addressLang: e.contentLang
|
|
970
991
|
}
|
|
971
992
|
) }) : null,
|
|
972
|
-
/* @__PURE__ */
|
|
973
|
-
/* @__PURE__ */
|
|
993
|
+
/* @__PURE__ */ g("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
994
|
+
/* @__PURE__ */ g("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-md)]", children: [
|
|
974
995
|
/* @__PURE__ */ t(
|
|
975
996
|
Se,
|
|
976
997
|
{
|
|
@@ -994,7 +1015,7 @@ function jt({
|
|
|
994
1015
|
size: "md"
|
|
995
1016
|
}
|
|
996
1017
|
) : null,
|
|
997
|
-
|
|
1018
|
+
y ? /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
998
1019
|
x ? (e.languages ?? []).map((m) => /* @__PURE__ */ t(
|
|
999
1020
|
$,
|
|
1000
1021
|
{
|
|
@@ -1004,7 +1025,7 @@ function jt({
|
|
|
1004
1025
|
},
|
|
1005
1026
|
`lang-${m}`
|
|
1006
1027
|
)) : null,
|
|
1007
|
-
|
|
1028
|
+
v ? (e.insurances ?? []).map((m) => /* @__PURE__ */ t(
|
|
1008
1029
|
$,
|
|
1009
1030
|
{
|
|
1010
1031
|
variant: "info",
|
|
@@ -1013,16 +1034,23 @@ function jt({
|
|
|
1013
1034
|
},
|
|
1014
1035
|
`ins-${m}`
|
|
1015
1036
|
)) : null,
|
|
1016
|
-
|
|
1037
|
+
w ? /* @__PURE__ */ t($, { variant: "info", leading: /* @__PURE__ */ t(Fe, { "aria-hidden": "true" }), children: c("practiceResults.fearPatient.label") }) : null
|
|
1017
1038
|
] }) : null,
|
|
1018
|
-
/* @__PURE__ */ t(
|
|
1039
|
+
/* @__PURE__ */ t(
|
|
1040
|
+
Ve,
|
|
1041
|
+
{
|
|
1042
|
+
description: e.description,
|
|
1043
|
+
density: "rich",
|
|
1044
|
+
lang: e.contentLang
|
|
1045
|
+
}
|
|
1046
|
+
),
|
|
1019
1047
|
e.nextAvailableSlot && f ? /* @__PURE__ */ t(He, { time: f }) : null,
|
|
1020
1048
|
/* @__PURE__ */ t(
|
|
1021
1049
|
ze,
|
|
1022
1050
|
{
|
|
1023
1051
|
result: e,
|
|
1024
1052
|
openLabel: o,
|
|
1025
|
-
bookLabel:
|
|
1053
|
+
bookLabel: h,
|
|
1026
1054
|
nextSlotText: f,
|
|
1027
1055
|
onOpenClick: a,
|
|
1028
1056
|
onBookClick: l
|
|
@@ -1044,23 +1072,23 @@ function pe({
|
|
|
1044
1072
|
onCardBookClick: l,
|
|
1045
1073
|
openLabel: d,
|
|
1046
1074
|
bookLabel: o,
|
|
1047
|
-
formatNextSlot:
|
|
1075
|
+
formatNextSlot: h,
|
|
1048
1076
|
onLoadMore: c,
|
|
1049
1077
|
loadingMore: u,
|
|
1050
1078
|
loadingSkeletons: f,
|
|
1051
1079
|
density: x = "compact",
|
|
1052
|
-
apiKey:
|
|
1053
|
-
containerRef:
|
|
1080
|
+
apiKey: v,
|
|
1081
|
+
containerRef: w
|
|
1054
1082
|
}) {
|
|
1055
|
-
const { t:
|
|
1056
|
-
return
|
|
1083
|
+
const { t: y } = k("ui"), R = T(null);
|
|
1084
|
+
return X(() => {
|
|
1057
1085
|
if (!c) return;
|
|
1058
|
-
const b =
|
|
1086
|
+
const b = R.current;
|
|
1059
1087
|
if (!b || typeof IntersectionObserver > "u") return;
|
|
1060
1088
|
const m = new IntersectionObserver(
|
|
1061
|
-
(
|
|
1062
|
-
for (const
|
|
1063
|
-
|
|
1089
|
+
(S) => {
|
|
1090
|
+
for (const P of S)
|
|
1091
|
+
P.isIntersecting && (B("serp_load_more", {
|
|
1064
1092
|
currentCount: e.length
|
|
1065
1093
|
}), c());
|
|
1066
1094
|
},
|
|
@@ -1072,10 +1100,10 @@ function pe({
|
|
|
1072
1100
|
{
|
|
1073
1101
|
role: "status",
|
|
1074
1102
|
"aria-live": "polite",
|
|
1075
|
-
"aria-label":
|
|
1103
|
+
"aria-label": y("practiceResults.loading"),
|
|
1076
1104
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
1077
1105
|
children: Array.from({ length: 4 }).map((b, m) => /* @__PURE__ */ t(
|
|
1078
|
-
|
|
1106
|
+
mt,
|
|
1079
1107
|
{
|
|
1080
1108
|
variant: "rounded",
|
|
1081
1109
|
height: x === "rich" ? "11rem" : "7rem"
|
|
@@ -1083,21 +1111,21 @@ function pe({
|
|
|
1083
1111
|
`pr-skel-${m}`
|
|
1084
1112
|
))
|
|
1085
1113
|
}
|
|
1086
|
-
) : /* @__PURE__ */
|
|
1114
|
+
) : /* @__PURE__ */ g(
|
|
1087
1115
|
"div",
|
|
1088
1116
|
{
|
|
1089
|
-
ref:
|
|
1117
|
+
ref: w,
|
|
1090
1118
|
"data-component": "practice-results-list",
|
|
1091
1119
|
role: "list",
|
|
1092
|
-
"aria-label":
|
|
1120
|
+
"aria-label": y("practiceResults.list.label"),
|
|
1093
1121
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:overflow-y-auto",
|
|
1094
1122
|
children: [
|
|
1095
1123
|
e.map((b) => /* @__PURE__ */ t("div", { role: "listitem", children: x === "rich" ? /* @__PURE__ */ t(
|
|
1096
|
-
|
|
1124
|
+
Gt,
|
|
1097
1125
|
{
|
|
1098
1126
|
result: b,
|
|
1099
1127
|
headingLevel: n,
|
|
1100
|
-
apiKey:
|
|
1128
|
+
apiKey: v,
|
|
1101
1129
|
highlighted: i === b.id,
|
|
1102
1130
|
onSelect: () => r(b.id),
|
|
1103
1131
|
onOpenClick: () => a(b.id),
|
|
@@ -1107,7 +1135,7 @@ function pe({
|
|
|
1107
1135
|
bookLabel: o
|
|
1108
1136
|
}
|
|
1109
1137
|
) : /* @__PURE__ */ t(
|
|
1110
|
-
|
|
1138
|
+
Ut,
|
|
1111
1139
|
{
|
|
1112
1140
|
result: b,
|
|
1113
1141
|
headingLevel: n,
|
|
@@ -1118,16 +1146,16 @@ function pe({
|
|
|
1118
1146
|
onHover: () => s(b.id),
|
|
1119
1147
|
openLabel: d,
|
|
1120
1148
|
bookLabel: o,
|
|
1121
|
-
nextSlotText:
|
|
1149
|
+
nextSlotText: h(b)
|
|
1122
1150
|
}
|
|
1123
1151
|
) }, b.id)),
|
|
1124
1152
|
c ? /* @__PURE__ */ t(
|
|
1125
1153
|
"div",
|
|
1126
1154
|
{
|
|
1127
|
-
ref:
|
|
1155
|
+
ref: R,
|
|
1128
1156
|
"aria-hidden": "true",
|
|
1129
1157
|
className: "ds:flex ds:items-center ds:justify-center ds:py-[var(--spacing-md)]",
|
|
1130
|
-
children: u ? /* @__PURE__ */ t(
|
|
1158
|
+
children: u ? /* @__PURE__ */ t(ft, { size: "md", variant: "pulse" }) : /* @__PURE__ */ t("span", { className: "ds:size-1" })
|
|
1131
1159
|
}
|
|
1132
1160
|
) : null
|
|
1133
1161
|
]
|
|
@@ -1144,12 +1172,12 @@ function ue({
|
|
|
1144
1172
|
onPinClick: l,
|
|
1145
1173
|
onPinHover: d,
|
|
1146
1174
|
onPinFirstInteract: o,
|
|
1147
|
-
onBoundsChange:
|
|
1175
|
+
onBoundsChange: h,
|
|
1148
1176
|
consentGranted: c,
|
|
1149
1177
|
onConsentRequest: u,
|
|
1150
1178
|
mapHandleRef: f
|
|
1151
1179
|
}) {
|
|
1152
|
-
const { t: x } =
|
|
1180
|
+
const { t: x } = k("ui"), v = M(
|
|
1153
1181
|
() => e.filter(
|
|
1154
1182
|
(m) => !!m.location
|
|
1155
1183
|
).map((m) => ({
|
|
@@ -1161,24 +1189,24 @@ function ue({
|
|
|
1161
1189
|
label: m.name
|
|
1162
1190
|
})),
|
|
1163
1191
|
[e]
|
|
1192
|
+
), w = M(
|
|
1193
|
+
() => v.map((m) => ({ ...m.position, id: m.id })),
|
|
1194
|
+
[v]
|
|
1164
1195
|
), y = M(
|
|
1165
|
-
() =>
|
|
1166
|
-
[
|
|
1167
|
-
),
|
|
1168
|
-
() => g.map((m) => m.id).sort().join("|"),
|
|
1169
|
-
[g]
|
|
1170
|
-
), w = M(() => {
|
|
1196
|
+
() => v.map((m) => m.id).sort().join("|"),
|
|
1197
|
+
[v]
|
|
1198
|
+
), R = M(() => {
|
|
1171
1199
|
if (n) return n;
|
|
1172
|
-
const m =
|
|
1200
|
+
const m = It(e);
|
|
1173
1201
|
return m ? {
|
|
1174
1202
|
lat: (m.north + m.south) / 2,
|
|
1175
1203
|
lng: (m.east + m.west) / 2
|
|
1176
1204
|
} : { lat: 45.4642, lng: 9.19 };
|
|
1177
|
-
}, [e, n]), b =
|
|
1178
|
-
(m, { userInteraction:
|
|
1179
|
-
|
|
1205
|
+
}, [e, n]), b = _(
|
|
1206
|
+
(m, { userInteraction: S }) => {
|
|
1207
|
+
h == null || h(m), S && B("serp_map_panned", { bounds: m });
|
|
1180
1208
|
},
|
|
1181
|
-
[
|
|
1209
|
+
[h]
|
|
1182
1210
|
);
|
|
1183
1211
|
return /* @__PURE__ */ t(
|
|
1184
1212
|
"div",
|
|
@@ -1186,16 +1214,16 @@ function ue({
|
|
|
1186
1214
|
"data-component": "practice-results-map-panel",
|
|
1187
1215
|
className: "ds:relative ds:flex ds:size-full ds:min-h-[24rem] ds:flex-col",
|
|
1188
1216
|
children: /* @__PURE__ */ t(
|
|
1189
|
-
|
|
1217
|
+
ut,
|
|
1190
1218
|
{
|
|
1191
1219
|
ref: f,
|
|
1192
1220
|
apiKey: s ?? "",
|
|
1193
1221
|
mapId: r,
|
|
1194
|
-
center:
|
|
1222
|
+
center: R,
|
|
1195
1223
|
zoom: i,
|
|
1196
|
-
markers:
|
|
1197
|
-
fitToPoints:
|
|
1198
|
-
fitKey:
|
|
1224
|
+
markers: v,
|
|
1225
|
+
fitToPoints: w,
|
|
1226
|
+
fitKey: y,
|
|
1199
1227
|
selectedMarkerId: a,
|
|
1200
1228
|
consentGranted: !!c,
|
|
1201
1229
|
onConsentRequest: u,
|
|
@@ -1216,7 +1244,7 @@ function he({
|
|
|
1216
1244
|
variantBodyProps: e
|
|
1217
1245
|
}) {
|
|
1218
1246
|
const { facets: n, value: i, onChange: s, heading: r, intro: a, totalCount: l, searchCentre: d } = e;
|
|
1219
|
-
return /* @__PURE__ */
|
|
1247
|
+
return /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1220
1248
|
/* @__PURE__ */ t(
|
|
1221
1249
|
Te,
|
|
1222
1250
|
{
|
|
@@ -1227,7 +1255,7 @@ function he({
|
|
|
1227
1255
|
searchCentreLabel: d == null ? void 0 : d.label
|
|
1228
1256
|
}
|
|
1229
1257
|
),
|
|
1230
|
-
n.length > 0 ? /* @__PURE__ */
|
|
1258
|
+
n.length > 0 ? /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
1231
1259
|
/* @__PURE__ */ t(
|
|
1232
1260
|
_e,
|
|
1233
1261
|
{
|
|
@@ -1258,9 +1286,9 @@ function ge(e) {
|
|
|
1258
1286
|
function ve({
|
|
1259
1287
|
headingLevel: e
|
|
1260
1288
|
}) {
|
|
1261
|
-
const { t: n } =
|
|
1289
|
+
const { t: n } = k("ui");
|
|
1262
1290
|
return /* @__PURE__ */ t(
|
|
1263
|
-
|
|
1291
|
+
dt,
|
|
1264
1292
|
{
|
|
1265
1293
|
variant: "no-results",
|
|
1266
1294
|
headingLevel: ge(e),
|
|
@@ -1273,23 +1301,23 @@ function be({
|
|
|
1273
1301
|
onRetry: e,
|
|
1274
1302
|
headingLevel: n
|
|
1275
1303
|
}) {
|
|
1276
|
-
const { t: i } =
|
|
1277
|
-
return /* @__PURE__ */
|
|
1278
|
-
/* @__PURE__ */ t(
|
|
1279
|
-
/* @__PURE__ */ t(
|
|
1280
|
-
e ? /* @__PURE__ */ t(
|
|
1281
|
-
|
|
1304
|
+
const { t: i } = k("ui"), s = ge(n);
|
|
1305
|
+
return /* @__PURE__ */ g(J, { variant: "error", children: [
|
|
1306
|
+
/* @__PURE__ */ t(J.Title, { as: `h${s}`, children: i("practiceResults.error.title") }),
|
|
1307
|
+
/* @__PURE__ */ t(J.Description, { children: i("practiceResults.error.description") }),
|
|
1308
|
+
e ? /* @__PURE__ */ t(J.Action, { children: /* @__PURE__ */ t(
|
|
1309
|
+
Y,
|
|
1282
1310
|
{
|
|
1283
1311
|
intent: "secondary",
|
|
1284
1312
|
size: "sm",
|
|
1285
|
-
startIcon: /* @__PURE__ */ t(
|
|
1313
|
+
startIcon: /* @__PURE__ */ t(bt, { "aria-hidden": "true" }),
|
|
1286
1314
|
onClick: e,
|
|
1287
1315
|
children: i("practiceResults.error.retry")
|
|
1288
1316
|
}
|
|
1289
1317
|
) }) : null
|
|
1290
1318
|
] });
|
|
1291
1319
|
}
|
|
1292
|
-
function
|
|
1320
|
+
function Zt(e) {
|
|
1293
1321
|
const {
|
|
1294
1322
|
results: n,
|
|
1295
1323
|
apiKey: i,
|
|
@@ -1299,24 +1327,24 @@ function Kt(e) {
|
|
|
1299
1327
|
onLoadMore: l,
|
|
1300
1328
|
loadingMore: d,
|
|
1301
1329
|
loadingSkeletons: o,
|
|
1302
|
-
emptyResultsSlot:
|
|
1330
|
+
emptyResultsSlot: h,
|
|
1303
1331
|
errorSlot: c,
|
|
1304
1332
|
error: u,
|
|
1305
1333
|
onRetry: f,
|
|
1306
1334
|
highlightedId: x,
|
|
1307
|
-
onCardHover:
|
|
1308
|
-
onPinClick:
|
|
1309
|
-
consentGranted:
|
|
1310
|
-
onConsentRequest:
|
|
1335
|
+
onCardHover: v,
|
|
1336
|
+
onPinClick: w,
|
|
1337
|
+
consentGranted: y,
|
|
1338
|
+
onConsentRequest: R,
|
|
1311
1339
|
onBoundsChange: b,
|
|
1312
1340
|
listContainerRef: m
|
|
1313
|
-
} = e, { t:
|
|
1341
|
+
} = e, { t: S } = k("ui"), [P, H] = me(!1), z = u ? c ?? /* @__PURE__ */ t(be, { onRetry: f, headingLevel: e.headingLevel }) : n.length === 0 && !o ? h ?? /* @__PURE__ */ t(ve, { headingLevel: e.headingLevel }) : /* @__PURE__ */ t(
|
|
1314
1342
|
pe,
|
|
1315
1343
|
{
|
|
1316
1344
|
results: n,
|
|
1317
1345
|
headingLevel: e.headingLevel,
|
|
1318
1346
|
highlightedId: x,
|
|
1319
|
-
onCardHover:
|
|
1347
|
+
onCardHover: v,
|
|
1320
1348
|
onCardSelect: e.onCardSelect,
|
|
1321
1349
|
onCardOpenClick: e.onCardOpenClick,
|
|
1322
1350
|
onCardBookClick: e.onCardBookClick,
|
|
@@ -1330,10 +1358,10 @@ function Kt(e) {
|
|
|
1330
1358
|
containerRef: m
|
|
1331
1359
|
}
|
|
1332
1360
|
);
|
|
1333
|
-
return /* @__PURE__ */
|
|
1361
|
+
return /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
1334
1362
|
/* @__PURE__ */ t(he, { variantBodyProps: e }),
|
|
1335
|
-
/* @__PURE__ */
|
|
1336
|
-
/* @__PURE__ */ t("div", { className: "ds:min-w-0", children:
|
|
1363
|
+
/* @__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: [
|
|
1364
|
+
/* @__PURE__ */ t("div", { className: "ds:min-w-0", children: z }),
|
|
1337
1365
|
/* @__PURE__ */ t("div", { className: "ds:hidden ds:lg:block ds:sticky ds:top-[var(--spacing-md)] ds:h-[40rem]", children: /* @__PURE__ */ t(
|
|
1338
1366
|
ue,
|
|
1339
1367
|
{
|
|
@@ -1343,33 +1371,33 @@ function Kt(e) {
|
|
|
1343
1371
|
apiKey: i,
|
|
1344
1372
|
mapId: s,
|
|
1345
1373
|
highlightedId: x,
|
|
1346
|
-
onPinClick: (
|
|
1347
|
-
Z(n,
|
|
1374
|
+
onPinClick: (A) => {
|
|
1375
|
+
Z(n, A, "pin", e.onResultSelect), w(A);
|
|
1348
1376
|
},
|
|
1349
|
-
onPinHover:
|
|
1377
|
+
onPinHover: v,
|
|
1350
1378
|
onPinFirstInteract: e.onPinFirstInteract,
|
|
1351
1379
|
onBoundsChange: b,
|
|
1352
|
-
consentGranted:
|
|
1353
|
-
onConsentRequest:
|
|
1380
|
+
consentGranted: y,
|
|
1381
|
+
onConsentRequest: R,
|
|
1354
1382
|
mapHandleRef: e.mapHandleRef
|
|
1355
1383
|
}
|
|
1356
1384
|
) })
|
|
1357
1385
|
] }),
|
|
1358
1386
|
/* @__PURE__ */ t("div", { className: "ds:flex ds:lg:hidden ds:sticky ds:bottom-[var(--spacing-md)] ds:justify-center", children: /* @__PURE__ */ t(
|
|
1359
|
-
|
|
1387
|
+
Y,
|
|
1360
1388
|
{
|
|
1361
1389
|
intent: "primary",
|
|
1362
1390
|
size: "md",
|
|
1363
|
-
startIcon: /* @__PURE__ */ t(
|
|
1364
|
-
onClick: () =>
|
|
1365
|
-
children:
|
|
1391
|
+
startIcon: /* @__PURE__ */ t(kt, { "aria-hidden": "true" }),
|
|
1392
|
+
onClick: () => H(!0),
|
|
1393
|
+
children: S("practiceResults.viewMap")
|
|
1366
1394
|
}
|
|
1367
1395
|
) }),
|
|
1368
|
-
/* @__PURE__ */ t(
|
|
1369
|
-
/* @__PURE__ */ t(
|
|
1370
|
-
/* @__PURE__ */
|
|
1371
|
-
/* @__PURE__ */ t(
|
|
1372
|
-
/* @__PURE__ */
|
|
1396
|
+
/* @__PURE__ */ t(V.Root, { open: P, onOpenChange: H, children: /* @__PURE__ */ g(V.Content, { side: "bottom", size: "lg", children: [
|
|
1397
|
+
/* @__PURE__ */ t(V.Header, { children: /* @__PURE__ */ t(V.Title, { children: S("practiceResults.map.label") }) }),
|
|
1398
|
+
/* @__PURE__ */ g(V.Body, { children: [
|
|
1399
|
+
/* @__PURE__ */ t(V.Description, { className: "ds:sr-only", children: S("practiceResults.sheet.description") }),
|
|
1400
|
+
/* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
1373
1401
|
/* @__PURE__ */ t("div", { className: "ds:h-[20rem]", children: /* @__PURE__ */ t(
|
|
1374
1402
|
ue,
|
|
1375
1403
|
{
|
|
@@ -1379,24 +1407,24 @@ function Kt(e) {
|
|
|
1379
1407
|
apiKey: i,
|
|
1380
1408
|
mapId: s,
|
|
1381
1409
|
highlightedId: x,
|
|
1382
|
-
onPinClick: (
|
|
1383
|
-
Z(n,
|
|
1410
|
+
onPinClick: (A) => {
|
|
1411
|
+
Z(n, A, "pin", e.onResultSelect), w(A);
|
|
1384
1412
|
},
|
|
1385
|
-
onPinHover:
|
|
1413
|
+
onPinHover: v,
|
|
1386
1414
|
onPinFirstInteract: e.onPinFirstInteract,
|
|
1387
1415
|
onBoundsChange: b,
|
|
1388
|
-
consentGranted:
|
|
1389
|
-
onConsentRequest:
|
|
1416
|
+
consentGranted: y,
|
|
1417
|
+
onConsentRequest: R,
|
|
1390
1418
|
mapHandleRef: e.mapHandleRef
|
|
1391
1419
|
}
|
|
1392
1420
|
) }),
|
|
1393
|
-
|
|
1421
|
+
z
|
|
1394
1422
|
] })
|
|
1395
1423
|
] })
|
|
1396
1424
|
] }) })
|
|
1397
1425
|
] });
|
|
1398
1426
|
}
|
|
1399
|
-
const
|
|
1427
|
+
const Wt = {
|
|
1400
1428
|
peek: "sm",
|
|
1401
1429
|
half: "md",
|
|
1402
1430
|
full: "lg"
|
|
@@ -1405,35 +1433,35 @@ const qt = {
|
|
|
1405
1433
|
"half",
|
|
1406
1434
|
"full"
|
|
1407
1435
|
];
|
|
1408
|
-
function
|
|
1409
|
-
const { t: i, i18n: s } =
|
|
1436
|
+
function Qt({ value: e, onChange: n }) {
|
|
1437
|
+
const { t: i, i18n: s } = k("ui"), r = s.dir() === "rtl", a = T(
|
|
1410
1438
|
/* @__PURE__ */ new Map()
|
|
1411
|
-
), l =
|
|
1412
|
-
var
|
|
1413
|
-
(
|
|
1414
|
-
}, []), d =
|
|
1415
|
-
(o,
|
|
1416
|
-
const c = K.indexOf(
|
|
1417
|
-
let
|
|
1439
|
+
), l = _((o) => {
|
|
1440
|
+
var h;
|
|
1441
|
+
(h = a.current.get(o)) == null || h.focus();
|
|
1442
|
+
}, []), d = _(
|
|
1443
|
+
(o, h) => {
|
|
1444
|
+
const c = K.indexOf(h), u = K.length, f = r ? "ArrowLeft" : "ArrowRight", x = r ? "ArrowRight" : "ArrowLeft";
|
|
1445
|
+
let v = null;
|
|
1418
1446
|
switch (o.key) {
|
|
1419
1447
|
case f:
|
|
1420
1448
|
case "ArrowDown":
|
|
1421
|
-
|
|
1449
|
+
v = K[(c + 1) % u];
|
|
1422
1450
|
break;
|
|
1423
1451
|
case x:
|
|
1424
1452
|
case "ArrowUp":
|
|
1425
|
-
|
|
1453
|
+
v = K[(c - 1 + u) % u];
|
|
1426
1454
|
break;
|
|
1427
1455
|
case "Home":
|
|
1428
|
-
|
|
1456
|
+
v = K[0];
|
|
1429
1457
|
break;
|
|
1430
1458
|
case "End":
|
|
1431
|
-
|
|
1459
|
+
v = K[u - 1];
|
|
1432
1460
|
break;
|
|
1433
1461
|
default:
|
|
1434
1462
|
return;
|
|
1435
1463
|
}
|
|
1436
|
-
o.preventDefault(),
|
|
1464
|
+
o.preventDefault(), v && v !== h && n(v), v && l(v);
|
|
1437
1465
|
},
|
|
1438
1466
|
[l, r, n]
|
|
1439
1467
|
);
|
|
@@ -1444,7 +1472,7 @@ function Ut({ value: e, onChange: n }) {
|
|
|
1444
1472
|
"aria-label": i("practiceResults.sheet.snap.label"),
|
|
1445
1473
|
className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
1446
1474
|
children: K.map((o) => {
|
|
1447
|
-
const
|
|
1475
|
+
const h = e === o;
|
|
1448
1476
|
return /* @__PURE__ */ t(
|
|
1449
1477
|
"button",
|
|
1450
1478
|
{
|
|
@@ -1453,13 +1481,13 @@ function Ut({ value: e, onChange: n }) {
|
|
|
1453
1481
|
},
|
|
1454
1482
|
type: "button",
|
|
1455
1483
|
role: "radio",
|
|
1456
|
-
"aria-checked":
|
|
1484
|
+
"aria-checked": h,
|
|
1457
1485
|
"aria-label": i(`practiceResults.sheet.snap.${o}`),
|
|
1458
|
-
tabIndex:
|
|
1486
|
+
tabIndex: h ? 0 : -1,
|
|
1459
1487
|
onClick: () => n(o),
|
|
1460
1488
|
onKeyDown: (c) => d(c, o),
|
|
1461
|
-
className:
|
|
1462
|
-
state:
|
|
1489
|
+
className: ee({
|
|
1490
|
+
state: h ? "active" : "idle"
|
|
1463
1491
|
}),
|
|
1464
1492
|
children: i(`practiceResults.sheet.snap.${o}`)
|
|
1465
1493
|
},
|
|
@@ -1469,7 +1497,7 @@ function Ut({ value: e, onChange: n }) {
|
|
|
1469
1497
|
}
|
|
1470
1498
|
);
|
|
1471
1499
|
}
|
|
1472
|
-
function
|
|
1500
|
+
function Jt(e) {
|
|
1473
1501
|
const {
|
|
1474
1502
|
results: n,
|
|
1475
1503
|
apiKey: i,
|
|
@@ -1479,27 +1507,27 @@ function Gt(e) {
|
|
|
1479
1507
|
onLoadMore: l,
|
|
1480
1508
|
loadingMore: d,
|
|
1481
1509
|
loadingSkeletons: o,
|
|
1482
|
-
emptyResultsSlot:
|
|
1510
|
+
emptyResultsSlot: h,
|
|
1483
1511
|
errorSlot: c,
|
|
1484
1512
|
error: u,
|
|
1485
1513
|
onRetry: f,
|
|
1486
1514
|
highlightedId: x,
|
|
1487
|
-
onCardHover:
|
|
1488
|
-
onPinClick:
|
|
1489
|
-
consentGranted:
|
|
1490
|
-
onConsentRequest:
|
|
1515
|
+
onCardHover: v,
|
|
1516
|
+
onPinClick: w,
|
|
1517
|
+
consentGranted: y,
|
|
1518
|
+
onConsentRequest: R,
|
|
1491
1519
|
onBoundsChange: b,
|
|
1492
1520
|
listContainerRef: m,
|
|
1493
|
-
facets:
|
|
1494
|
-
value:
|
|
1495
|
-
onChange:
|
|
1496
|
-
} = e, { t:
|
|
1521
|
+
facets: S,
|
|
1522
|
+
value: P,
|
|
1523
|
+
onChange: H
|
|
1524
|
+
} = e, { t: z } = k("ui"), [A, q] = me("half"), U = Wt[A], G = pt("(min-width: 1024px)"), E = u ? c ?? /* @__PURE__ */ t(be, { onRetry: f, headingLevel: e.headingLevel }) : n.length === 0 && !o ? h ?? /* @__PURE__ */ t(ve, { headingLevel: e.headingLevel }) : /* @__PURE__ */ t(
|
|
1497
1525
|
pe,
|
|
1498
1526
|
{
|
|
1499
1527
|
results: n,
|
|
1500
1528
|
headingLevel: e.headingLevel,
|
|
1501
1529
|
highlightedId: x,
|
|
1502
|
-
onCardHover:
|
|
1530
|
+
onCardHover: v,
|
|
1503
1531
|
onCardSelect: e.onCardSelect,
|
|
1504
1532
|
onCardOpenClick: e.onCardOpenClick,
|
|
1505
1533
|
onCardBookClick: e.onCardBookClick,
|
|
@@ -1513,7 +1541,7 @@ function Gt(e) {
|
|
|
1513
1541
|
apiKey: i,
|
|
1514
1542
|
containerRef: m
|
|
1515
1543
|
}
|
|
1516
|
-
),
|
|
1544
|
+
), F = /* @__PURE__ */ t(
|
|
1517
1545
|
ue,
|
|
1518
1546
|
{
|
|
1519
1547
|
results: n,
|
|
@@ -1522,22 +1550,22 @@ function Gt(e) {
|
|
|
1522
1550
|
apiKey: i,
|
|
1523
1551
|
mapId: s,
|
|
1524
1552
|
highlightedId: x,
|
|
1525
|
-
onPinClick: (
|
|
1526
|
-
Z(n,
|
|
1553
|
+
onPinClick: (N) => {
|
|
1554
|
+
Z(n, N, "pin", e.onResultSelect), w(N);
|
|
1527
1555
|
},
|
|
1528
|
-
onPinHover:
|
|
1556
|
+
onPinHover: v,
|
|
1529
1557
|
onPinFirstInteract: e.onPinFirstInteract,
|
|
1530
1558
|
onBoundsChange: b,
|
|
1531
|
-
consentGranted:
|
|
1532
|
-
onConsentRequest:
|
|
1559
|
+
consentGranted: y,
|
|
1560
|
+
onConsentRequest: R,
|
|
1533
1561
|
mapHandleRef: e.mapHandleRef
|
|
1534
1562
|
}
|
|
1535
|
-
),
|
|
1563
|
+
), te = S.length > 0 ? /* @__PURE__ */ t("div", { className: "ds:absolute ds:start-[var(--spacing-md)] ds:top-[var(--spacing-md)] ds:max-w-[calc(100%-var(--spacing-lg))]", children: /* @__PURE__ */ t(
|
|
1536
1564
|
_e,
|
|
1537
1565
|
{
|
|
1538
|
-
facets:
|
|
1539
|
-
value:
|
|
1540
|
-
onChange: (
|
|
1566
|
+
facets: S,
|
|
1567
|
+
value: P.facets,
|
|
1568
|
+
onChange: (N) => H({ ...P, facets: N }),
|
|
1541
1569
|
floating: !0
|
|
1542
1570
|
}
|
|
1543
1571
|
) }) : null;
|
|
@@ -1559,10 +1587,10 @@ function Gt(e) {
|
|
|
1559
1587
|
// the map column is `lg:sticky lg:h-[44rem]` (stays visible
|
|
1560
1588
|
// as the patient scrolls cards) and the rail renders at
|
|
1561
1589
|
// natural height. Single page scroll.
|
|
1562
|
-
/* @__PURE__ */
|
|
1590
|
+
/* @__PURE__ */ g(ot, { children: [
|
|
1563
1591
|
/* @__PURE__ */ t(he, { variantBodyProps: e }),
|
|
1564
|
-
/* @__PURE__ */
|
|
1565
|
-
/* @__PURE__ */ t("div", { className: "ds:sticky ds:top-[var(--spacing-md)] ds:h-[44rem]", children:
|
|
1592
|
+
/* @__PURE__ */ g("div", { className: "ds:grid ds:grid-cols-[65fr_35fr] ds:gap-[var(--spacing-lg)] ds:items-start", children: [
|
|
1593
|
+
/* @__PURE__ */ t("div", { className: "ds:sticky ds:top-[var(--spacing-md)] ds:h-[44rem]", children: F }),
|
|
1566
1594
|
/* @__PURE__ */ t("div", { className: "ds:min-w-0", children: E })
|
|
1567
1595
|
] })
|
|
1568
1596
|
] })
|
|
@@ -1573,7 +1601,7 @@ function Gt(e) {
|
|
|
1573
1601
|
// via the snap radiogroup at the top of the sheet body. Filters
|
|
1574
1602
|
// stay floating on mobile — the full-bleed map IS the viewport
|
|
1575
1603
|
// chrome, so floating chips are the only place for them.
|
|
1576
|
-
/* @__PURE__ */
|
|
1604
|
+
/* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
1577
1605
|
/* @__PURE__ */ t(
|
|
1578
1606
|
Te,
|
|
1579
1607
|
{
|
|
@@ -1584,28 +1612,28 @@ function Gt(e) {
|
|
|
1584
1612
|
searchCentreLabel: a == null ? void 0 : a.label
|
|
1585
1613
|
}
|
|
1586
1614
|
),
|
|
1587
|
-
/* @__PURE__ */
|
|
1588
|
-
|
|
1589
|
-
|
|
1615
|
+
/* @__PURE__ */ g("div", { className: "ds:relative ds:h-[60vh] ds:min-h-[20rem]", children: [
|
|
1616
|
+
F,
|
|
1617
|
+
te
|
|
1590
1618
|
] }),
|
|
1591
|
-
/* @__PURE__ */ t(
|
|
1592
|
-
|
|
1619
|
+
/* @__PURE__ */ t(V.Root, { open: !0, children: /* @__PURE__ */ t(
|
|
1620
|
+
V.Content,
|
|
1593
1621
|
{
|
|
1594
1622
|
side: "bottom",
|
|
1595
1623
|
size: U,
|
|
1596
|
-
onEscapeKeyDown: (
|
|
1597
|
-
onPointerDownOutside: (
|
|
1598
|
-
onInteractOutside: (
|
|
1599
|
-
children: /* @__PURE__ */
|
|
1600
|
-
/* @__PURE__ */ t(
|
|
1601
|
-
/* @__PURE__ */
|
|
1602
|
-
/* @__PURE__ */ t(
|
|
1624
|
+
onEscapeKeyDown: (N) => N.preventDefault(),
|
|
1625
|
+
onPointerDownOutside: (N) => N.preventDefault(),
|
|
1626
|
+
onInteractOutside: (N) => N.preventDefault(),
|
|
1627
|
+
children: /* @__PURE__ */ g(V.Body, { children: [
|
|
1628
|
+
/* @__PURE__ */ t(V.Description, { className: "ds:sr-only", children: z("practiceResults.sheet.descriptionMapFirst") }),
|
|
1629
|
+
/* @__PURE__ */ g("div", { className: "ds:flex ds:items-start ds:justify-between ds:gap-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]", children: [
|
|
1630
|
+
/* @__PURE__ */ t(V.Title, { className: "type-title-card ds:m-0 ds:text-[var(--foreground)]", children: z("practiceResults.sheet.title", {
|
|
1603
1631
|
count: e.totalCount ?? n.length
|
|
1604
1632
|
}) }),
|
|
1605
1633
|
/* @__PURE__ */ t(
|
|
1606
|
-
|
|
1634
|
+
Qt,
|
|
1607
1635
|
{
|
|
1608
|
-
value:
|
|
1636
|
+
value: A,
|
|
1609
1637
|
onChange: q
|
|
1610
1638
|
}
|
|
1611
1639
|
)
|
|
@@ -1613,8 +1641,8 @@ function Gt(e) {
|
|
|
1613
1641
|
/* @__PURE__ */ t("div", { className: "ds:pb-[var(--spacing-sm)]", children: /* @__PURE__ */ t(
|
|
1614
1642
|
de,
|
|
1615
1643
|
{
|
|
1616
|
-
value:
|
|
1617
|
-
onChange: (
|
|
1644
|
+
value: P.sort ?? "relevance",
|
|
1645
|
+
onChange: (N) => H({ ...P, sort: N })
|
|
1618
1646
|
}
|
|
1619
1647
|
) }),
|
|
1620
1648
|
E
|
|
@@ -1624,7 +1652,7 @@ function Gt(e) {
|
|
|
1624
1652
|
] })
|
|
1625
1653
|
) });
|
|
1626
1654
|
}
|
|
1627
|
-
function
|
|
1655
|
+
function Xt(e) {
|
|
1628
1656
|
const {
|
|
1629
1657
|
results: n,
|
|
1630
1658
|
apiKey: i,
|
|
@@ -1634,11 +1662,11 @@ function Zt(e) {
|
|
|
1634
1662
|
emptyResultsSlot: l,
|
|
1635
1663
|
errorSlot: d,
|
|
1636
1664
|
error: o,
|
|
1637
|
-
onRetry:
|
|
1665
|
+
onRetry: h,
|
|
1638
1666
|
highlightedId: c,
|
|
1639
1667
|
onCardHover: u,
|
|
1640
1668
|
listContainerRef: f
|
|
1641
|
-
} = e, x = o ? d ?? /* @__PURE__ */ t(be, { onRetry:
|
|
1669
|
+
} = e, x = o ? d ?? /* @__PURE__ */ t(be, { onRetry: h, headingLevel: e.headingLevel }) : n.length === 0 && !a ? l ?? /* @__PURE__ */ t(ve, { headingLevel: e.headingLevel }) : /* @__PURE__ */ t(
|
|
1642
1670
|
pe,
|
|
1643
1671
|
{
|
|
1644
1672
|
results: n,
|
|
@@ -1659,225 +1687,237 @@ function Zt(e) {
|
|
|
1659
1687
|
containerRef: f
|
|
1660
1688
|
}
|
|
1661
1689
|
);
|
|
1662
|
-
return /* @__PURE__ */
|
|
1690
|
+
return /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
1663
1691
|
/* @__PURE__ */ t(he, { variantBodyProps: e }),
|
|
1664
1692
|
x
|
|
1665
1693
|
] });
|
|
1666
1694
|
}
|
|
1667
|
-
const
|
|
1695
|
+
const Yt = ct(function({
|
|
1668
1696
|
variant: n = "split-list-map",
|
|
1669
1697
|
results: i,
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1698
|
+
contentLang: s,
|
|
1699
|
+
totalCount: r,
|
|
1700
|
+
searchCentre: a,
|
|
1701
|
+
facets: l,
|
|
1702
|
+
googleMapsApiKey: d,
|
|
1703
|
+
mapId: o,
|
|
1704
|
+
defaultZoom: h = Rt,
|
|
1705
|
+
onBoundsChange: c,
|
|
1706
|
+
consentGranted: u,
|
|
1707
|
+
onConsentRequest: f,
|
|
1708
|
+
skipConsentGate: x = !1,
|
|
1709
|
+
onLoadMore: v,
|
|
1710
|
+
loadingMore: w,
|
|
1682
1711
|
value: y,
|
|
1683
|
-
onChange:
|
|
1684
|
-
onResultSelect:
|
|
1685
|
-
loading:
|
|
1686
|
-
emptyResultsSlot:
|
|
1687
|
-
errorSlot:
|
|
1688
|
-
error:
|
|
1689
|
-
onRetry:
|
|
1690
|
-
heading:
|
|
1691
|
-
headingLevel:
|
|
1692
|
-
intro:
|
|
1693
|
-
cardOpenButtonLabel:
|
|
1694
|
-
cardBookButtonLabel:
|
|
1695
|
-
showCardOpenButton:
|
|
1696
|
-
"aria-label":
|
|
1697
|
-
id:
|
|
1698
|
-
className:
|
|
1699
|
-
...
|
|
1700
|
-
},
|
|
1701
|
-
const { t: ne, i18n: xe } =
|
|
1712
|
+
onChange: R,
|
|
1713
|
+
onResultSelect: b,
|
|
1714
|
+
loading: m,
|
|
1715
|
+
emptyResultsSlot: S,
|
|
1716
|
+
errorSlot: P,
|
|
1717
|
+
error: H,
|
|
1718
|
+
onRetry: z,
|
|
1719
|
+
heading: A,
|
|
1720
|
+
headingLevel: q = 2,
|
|
1721
|
+
intro: U,
|
|
1722
|
+
cardOpenButtonLabel: G,
|
|
1723
|
+
cardBookButtonLabel: E,
|
|
1724
|
+
showCardOpenButton: F = !0,
|
|
1725
|
+
"aria-label": te,
|
|
1726
|
+
id: N,
|
|
1727
|
+
className: Oe,
|
|
1728
|
+
...Ee
|
|
1729
|
+
}, je) {
|
|
1730
|
+
const { t: ne, i18n: xe } = k("ui"), [Ke, W] = me(null), Q = T(/* @__PURE__ */ new Set()), ae = T(/* @__PURE__ */ new Set()), qe = T(null), ie = T(null), se = M(
|
|
1702
1731
|
() => ({
|
|
1703
1732
|
getVariant: () => n,
|
|
1704
|
-
scrollToResult: (
|
|
1705
|
-
const
|
|
1706
|
-
if (!
|
|
1707
|
-
const
|
|
1708
|
-
`[data-component="practice-result-card"][data-result-id="${CSS.escape(
|
|
1733
|
+
scrollToResult: (p) => {
|
|
1734
|
+
const I = ie.current;
|
|
1735
|
+
if (!I) return;
|
|
1736
|
+
const C = I.querySelector(
|
|
1737
|
+
`[data-component="practice-result-card"][data-result-id="${CSS.escape(p)}"]`
|
|
1709
1738
|
);
|
|
1710
|
-
|
|
1739
|
+
C && (C.scrollIntoView({ behavior: "smooth", block: "nearest" }), W(p));
|
|
1711
1740
|
},
|
|
1712
|
-
focusPin: (
|
|
1713
|
-
|
|
1741
|
+
focusPin: (p) => {
|
|
1742
|
+
W(p);
|
|
1714
1743
|
}
|
|
1715
1744
|
}),
|
|
1716
1745
|
[n]
|
|
1717
1746
|
);
|
|
1718
|
-
|
|
1719
|
-
const
|
|
1720
|
-
(
|
|
1721
|
-
if (
|
|
1747
|
+
lt(je, () => se, [se]), gt(Ct, se, N);
|
|
1748
|
+
const Ue = F ? G ?? ne("practiceResults.card.open") : void 0, Ge = E ?? ne("practiceResults.card.book"), Ze = _(
|
|
1749
|
+
(p) => {
|
|
1750
|
+
if (p.nextAvailableSlot)
|
|
1722
1751
|
try {
|
|
1723
1752
|
return new Intl.DateTimeFormat(xe.language, {
|
|
1724
1753
|
weekday: "short",
|
|
1725
1754
|
hour: "numeric",
|
|
1726
1755
|
minute: "numeric"
|
|
1727
|
-
}).format(new Date(
|
|
1756
|
+
}).format(new Date(p.nextAvailableSlot.dateTime));
|
|
1728
1757
|
} catch {
|
|
1729
|
-
return
|
|
1758
|
+
return p.nextAvailableSlot.dateTime;
|
|
1730
1759
|
}
|
|
1731
1760
|
},
|
|
1732
1761
|
[xe.language]
|
|
1733
|
-
), ye =
|
|
1734
|
-
|
|
1762
|
+
), ye = T(null);
|
|
1763
|
+
X(() => {
|
|
1735
1764
|
ye.current !== n && (ye.current = n, B("serp_variant_exposed", {
|
|
1736
1765
|
variant: n,
|
|
1737
|
-
totalCount:
|
|
1738
|
-
}),
|
|
1766
|
+
totalCount: r ?? i.length
|
|
1767
|
+
}), Q.current = /* @__PURE__ */ new Set(), ae.current = /* @__PURE__ */ new Set());
|
|
1739
1768
|
}, [n]);
|
|
1740
|
-
const re =
|
|
1741
|
-
() =>
|
|
1742
|
-
[
|
|
1743
|
-
), ce = y.sort ?? (
|
|
1744
|
-
const
|
|
1745
|
-
return
|
|
1746
|
-
}, [i, y.facets, oe, ce,
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1769
|
+
const re = T(!1), oe = M(
|
|
1770
|
+
() => Lt(l ?? [], i, y.facets),
|
|
1771
|
+
[l, i, y.facets]
|
|
1772
|
+
), ce = y.sort ?? (a ? "distance" : "relevance"), L = M(() => {
|
|
1773
|
+
const p = Pt(i, y.facets, oe);
|
|
1774
|
+
return Ft(p, ce, a);
|
|
1775
|
+
}, [i, y.facets, oe, ce, a]), We = M(
|
|
1776
|
+
() => s ? L.map(
|
|
1777
|
+
(p) => p.contentLang ? p : { ...p, contentLang: s }
|
|
1778
|
+
) : L,
|
|
1779
|
+
[L, s]
|
|
1780
|
+
);
|
|
1781
|
+
X(() => {
|
|
1782
|
+
const p = L.length === 0;
|
|
1783
|
+
p && !re.current ? (B("serp_empty_results", {
|
|
1750
1784
|
appliedFacets: y.facets ?? {}
|
|
1751
|
-
}), re.current = !0) :
|
|
1752
|
-
}, [
|
|
1753
|
-
const j =
|
|
1754
|
-
|
|
1785
|
+
}), re.current = !0) : p || (re.current = !1);
|
|
1786
|
+
}, [L.length, y.facets]);
|
|
1787
|
+
const j = T(null), we = T(null);
|
|
1788
|
+
X(
|
|
1755
1789
|
() => () => {
|
|
1756
1790
|
j.current && clearTimeout(j.current);
|
|
1757
1791
|
},
|
|
1758
1792
|
[]
|
|
1759
1793
|
);
|
|
1760
|
-
const
|
|
1761
|
-
|
|
1762
|
-
|
|
1794
|
+
const Qe = _((p) => {
|
|
1795
|
+
W(p), !Q.current.has(p) && (we.current === p && j.current || (j.current && clearTimeout(j.current), we.current = p, j.current = setTimeout(() => {
|
|
1796
|
+
Q.current.has(p) || (Q.current.add(p), B("serp_result_hovered_card", { resultId: p })), j.current = null;
|
|
1763
1797
|
}, 500)));
|
|
1764
|
-
}, []),
|
|
1765
|
-
|
|
1766
|
-
const
|
|
1767
|
-
if (!
|
|
1768
|
-
const
|
|
1769
|
-
`[data-component="practice-result-card"][data-result-id="${CSS.escape(
|
|
1798
|
+
}, []), Je = _((p) => {
|
|
1799
|
+
W(p);
|
|
1800
|
+
const I = ie.current;
|
|
1801
|
+
if (!I) return;
|
|
1802
|
+
const C = I.querySelector(
|
|
1803
|
+
`[data-component="practice-result-card"][data-result-id="${CSS.escape(p)}"]`
|
|
1770
1804
|
);
|
|
1771
|
-
|
|
1772
|
-
}, []),
|
|
1773
|
-
ae.current.has(
|
|
1774
|
-
}, []), ke =
|
|
1775
|
-
(
|
|
1776
|
-
|
|
1777
|
-
const
|
|
1778
|
-
if (
|
|
1779
|
-
if (
|
|
1780
|
-
const
|
|
1781
|
-
|
|
1782
|
-
lat:
|
|
1783
|
-
lng:
|
|
1784
|
-
}),
|
|
1805
|
+
C == null || C.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
1806
|
+
}, []), Xe = _((p) => {
|
|
1807
|
+
ae.current.has(p) || (ae.current.add(p), B("serp_result_hovered_pin", { resultId: p }));
|
|
1808
|
+
}, []), ke = T(null), Ye = _(
|
|
1809
|
+
(p) => {
|
|
1810
|
+
W(p);
|
|
1811
|
+
const I = L.find((C) => C.id === p);
|
|
1812
|
+
if (I) {
|
|
1813
|
+
if (I.location) {
|
|
1814
|
+
const C = ke.current;
|
|
1815
|
+
C == null || C.panTo({
|
|
1816
|
+
lat: I.location.lat,
|
|
1817
|
+
lng: I.location.lng
|
|
1818
|
+
}), C == null || C.setZoom(16);
|
|
1785
1819
|
}
|
|
1786
|
-
Z(
|
|
1820
|
+
Z(L, p, "card", b);
|
|
1787
1821
|
}
|
|
1788
1822
|
},
|
|
1789
|
-
[
|
|
1790
|
-
),
|
|
1791
|
-
(
|
|
1823
|
+
[L, b]
|
|
1824
|
+
), et = _(
|
|
1825
|
+
(p) => {
|
|
1792
1826
|
Z(
|
|
1793
|
-
|
|
1794
|
-
|
|
1827
|
+
L,
|
|
1828
|
+
p,
|
|
1795
1829
|
"open-button",
|
|
1796
|
-
|
|
1830
|
+
b
|
|
1797
1831
|
);
|
|
1798
1832
|
},
|
|
1799
|
-
[
|
|
1800
|
-
),
|
|
1801
|
-
(
|
|
1833
|
+
[L, b]
|
|
1834
|
+
), tt = _(
|
|
1835
|
+
(p) => {
|
|
1802
1836
|
Z(
|
|
1803
|
-
|
|
1804
|
-
|
|
1837
|
+
L,
|
|
1838
|
+
p,
|
|
1805
1839
|
"book-button",
|
|
1806
|
-
|
|
1840
|
+
b
|
|
1807
1841
|
);
|
|
1808
1842
|
},
|
|
1809
|
-
[
|
|
1810
|
-
),
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1843
|
+
[L, b]
|
|
1844
|
+
), nt = !!m && i.length === 0, at = _(
|
|
1845
|
+
(p, I) => {
|
|
1846
|
+
const C = L.find((rt) => rt.id === p.id);
|
|
1847
|
+
b(C ?? p, I);
|
|
1848
|
+
},
|
|
1849
|
+
[L, b]
|
|
1850
|
+
), le = {
|
|
1851
|
+
results: We,
|
|
1852
|
+
totalCount: r,
|
|
1853
|
+
searchCentre: a,
|
|
1814
1854
|
facets: oe,
|
|
1815
1855
|
value: { ...y, sort: ce },
|
|
1816
|
-
onChange:
|
|
1817
|
-
onResultSelect:
|
|
1818
|
-
onLoadMore:
|
|
1819
|
-
loadingMore:
|
|
1820
|
-
apiKey:
|
|
1821
|
-
mapId:
|
|
1822
|
-
zoom:
|
|
1856
|
+
onChange: R,
|
|
1857
|
+
onResultSelect: at,
|
|
1858
|
+
onLoadMore: v,
|
|
1859
|
+
loadingMore: w,
|
|
1860
|
+
apiKey: d,
|
|
1861
|
+
mapId: o,
|
|
1862
|
+
zoom: h,
|
|
1823
1863
|
// 0.31.4: when `skipConsentGate` is true the kit synthesises
|
|
1824
1864
|
// `consentGranted=true` for every internal MapView; the consumer's
|
|
1825
1865
|
// CMP at the page level is responsible for whether the Google Maps
|
|
1826
1866
|
// loader script is present at all. `onConsentRequest` is dropped
|
|
1827
1867
|
// because no placeholder renders — nothing to fire it from.
|
|
1828
|
-
consentGranted:
|
|
1829
|
-
onConsentRequest:
|
|
1830
|
-
onBoundsChange:
|
|
1831
|
-
loadingSkeletons:
|
|
1832
|
-
emptyResultsSlot:
|
|
1833
|
-
errorSlot:
|
|
1834
|
-
error:
|
|
1835
|
-
onRetry:
|
|
1836
|
-
heading:
|
|
1837
|
-
headingLevel:
|
|
1838
|
-
intro:
|
|
1839
|
-
highlightedId:
|
|
1840
|
-
onCardHover:
|
|
1841
|
-
onPinClick:
|
|
1842
|
-
onPinFirstInteract:
|
|
1843
|
-
onCardSelect:
|
|
1844
|
-
onCardOpenClick:
|
|
1845
|
-
onCardBookClick:
|
|
1846
|
-
openLabel:
|
|
1847
|
-
bookLabel:
|
|
1848
|
-
formatNextSlot:
|
|
1849
|
-
listContainerRef:
|
|
1868
|
+
consentGranted: x ? !0 : u,
|
|
1869
|
+
onConsentRequest: x ? void 0 : f,
|
|
1870
|
+
onBoundsChange: c,
|
|
1871
|
+
loadingSkeletons: nt,
|
|
1872
|
+
emptyResultsSlot: S,
|
|
1873
|
+
errorSlot: P,
|
|
1874
|
+
error: H,
|
|
1875
|
+
onRetry: z,
|
|
1876
|
+
heading: A,
|
|
1877
|
+
headingLevel: q,
|
|
1878
|
+
intro: U,
|
|
1879
|
+
highlightedId: Ke,
|
|
1880
|
+
onCardHover: Qe,
|
|
1881
|
+
onPinClick: Je,
|
|
1882
|
+
onPinFirstInteract: Xe,
|
|
1883
|
+
onCardSelect: Ye,
|
|
1884
|
+
onCardOpenClick: et,
|
|
1885
|
+
onCardBookClick: tt,
|
|
1886
|
+
openLabel: Ue,
|
|
1887
|
+
bookLabel: Ge,
|
|
1888
|
+
formatNextSlot: Ze,
|
|
1889
|
+
listContainerRef: qe,
|
|
1850
1890
|
mapHandleRef: ke
|
|
1851
|
-
},
|
|
1891
|
+
}, it = (() => {
|
|
1852
1892
|
switch (n) {
|
|
1853
1893
|
case "map-first":
|
|
1854
|
-
return /* @__PURE__ */ t(
|
|
1894
|
+
return /* @__PURE__ */ t(Jt, { ...le });
|
|
1855
1895
|
case "rich-cards":
|
|
1856
|
-
return /* @__PURE__ */ t(
|
|
1896
|
+
return /* @__PURE__ */ t(Xt, { ...le });
|
|
1857
1897
|
case "split-list-map":
|
|
1858
1898
|
default:
|
|
1859
|
-
return /* @__PURE__ */ t(
|
|
1899
|
+
return /* @__PURE__ */ t(Zt, { ...le });
|
|
1860
1900
|
}
|
|
1861
|
-
})(),
|
|
1901
|
+
})(), st = te ?? ne("practiceResults.regionLabel");
|
|
1862
1902
|
return /* @__PURE__ */ t(
|
|
1863
1903
|
"div",
|
|
1864
1904
|
{
|
|
1865
1905
|
ref: ie,
|
|
1866
1906
|
role: "region",
|
|
1867
|
-
"aria-label":
|
|
1868
|
-
id:
|
|
1907
|
+
"aria-label": st,
|
|
1908
|
+
id: N,
|
|
1869
1909
|
"data-component": "practice-results",
|
|
1870
|
-
"data-component-id":
|
|
1910
|
+
"data-component-id": N,
|
|
1871
1911
|
"data-variant": n,
|
|
1872
|
-
className:
|
|
1873
|
-
...
|
|
1874
|
-
children:
|
|
1912
|
+
className: Tt({ variant: n, className: Oe }),
|
|
1913
|
+
...Ee,
|
|
1914
|
+
children: it
|
|
1875
1915
|
}
|
|
1876
1916
|
);
|
|
1877
1917
|
});
|
|
1878
|
-
|
|
1918
|
+
Yt.displayName = "PracticeResults";
|
|
1879
1919
|
export {
|
|
1880
|
-
|
|
1881
|
-
|
|
1920
|
+
Yt as P,
|
|
1921
|
+
Ct as p
|
|
1882
1922
|
};
|
|
1883
|
-
//# sourceMappingURL=practice-results-
|
|
1923
|
+
//# sourceMappingURL=practice-results-BXz01sti.js.map
|