@alfadocs/ui-kit-debug 1.113.0 → 1.114.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/{anamnesis-card-BzuluoD1.js → anamnesis-card-Ddnrdfx3.js} +2 -2
- package/dist/_chunks/{anamnesis-card-BzuluoD1.js.map → anamnesis-card-Ddnrdfx3.js.map} +1 -1
- package/dist/_chunks/{anamnesis-summary-card-DdTRdNrQ.js → anamnesis-summary-card-S1H_AARG.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-card-DdTRdNrQ.js.map → anamnesis-summary-card-S1H_AARG.js.map} +1 -1
- package/dist/_chunks/{anamnesis-summary-rows-DfDulR_c.js → anamnesis-summary-rows-DaS-j8Jd.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-DfDulR_c.js.map → anamnesis-summary-rows-DaS-j8Jd.js.map} +1 -1
- package/dist/_chunks/{antenatal-schedule-timeline-DmsY5g28.js → antenatal-schedule-timeline-DmlXxevC.js} +2 -2
- package/dist/_chunks/{antenatal-schedule-timeline-DmsY5g28.js.map → antenatal-schedule-timeline-DmlXxevC.js.map} +1 -1
- package/dist/_chunks/{bishop-score-CnIft4eV.js → bishop-score-QJu-sM1y.js} +2 -2
- package/dist/_chunks/{bishop-score-CnIft4eV.js.map → bishop-score-QJu-sM1y.js.map} +1 -1
- package/dist/_chunks/{bmi-calculator-NMkXc079.js → bmi-calculator-Ba4yoR31.js} +2 -2
- package/dist/_chunks/{bmi-calculator-NMkXc079.js.map → bmi-calculator-Ba4yoR31.js.map} +1 -1
- package/dist/_chunks/{calendar-appointment-editor-dialog-CaZm5wGR.js → calendar-appointment-editor-dialog-iyh9QqNw.js} +6 -6
- package/dist/_chunks/{calendar-appointment-editor-dialog-CaZm5wGR.js.map → calendar-appointment-editor-dialog-iyh9QqNw.js.map} +1 -1
- package/dist/_chunks/{card-C85_Ndhb.js → card-DVO3x8E-.js} +23 -19
- package/dist/_chunks/{card-C85_Ndhb.js.map → card-DVO3x8E-.js.map} +1 -1
- package/dist/_chunks/{clinical-note-card-BVkxGiGl.js → clinical-note-card-Zz5_GEz-.js} +2 -2
- package/dist/_chunks/{clinical-note-card-BVkxGiGl.js.map → clinical-note-card-Zz5_GEz-.js.map} +1 -1
- package/dist/_chunks/{connection-status-CWSU3eiq.js → connection-status-DjarASoU.js} +2 -2
- package/dist/_chunks/{connection-status-CWSU3eiq.js.map → connection-status-DjarASoU.js.map} +1 -1
- package/dist/_chunks/{contact-card-CymtNvy3.js → contact-card-Cv-Nwvac.js} +2 -2
- package/dist/_chunks/{contact-card-CymtNvy3.js.map → contact-card-Cv-Nwvac.js.map} +1 -1
- package/dist/_chunks/{contact-profile-card-CAL66GaH.js → contact-profile-card-DMXWBBkU.js} +2 -2
- package/dist/_chunks/{contact-profile-card-CAL66GaH.js.map → contact-profile-card-DMXWBBkU.js.map} +1 -1
- package/dist/_chunks/{cycle-calculator-ZMDvToIm.js → cycle-calculator-Dd-XbKmZ.js} +2 -2
- package/dist/_chunks/{cycle-calculator-ZMDvToIm.js.map → cycle-calculator-Dd-XbKmZ.js.map} +1 -1
- package/dist/_chunks/{document-preview-5xs64jME.js → document-preview-WvJKHJOP.js} +2 -2
- package/dist/_chunks/{document-preview-5xs64jME.js.map → document-preview-WvJKHJOP.js.map} +1 -1
- package/dist/_chunks/{due-date-calculator-Dr2cDa64.js → due-date-calculator-Dl6SyMHO.js} +3 -3
- package/dist/_chunks/{due-date-calculator-Dr2cDa64.js.map → due-date-calculator-Dl6SyMHO.js.map} +1 -1
- package/dist/_chunks/{entity-summary-BbqqYqF1.js → entity-summary-DGCBQDt1.js} +2 -2
- package/dist/_chunks/{entity-summary-BbqqYqF1.js.map → entity-summary-DGCBQDt1.js.map} +1 -1
- package/dist/_chunks/{face-scheme-e2M2HJGz.js → face-scheme-DlcQaQVR.js} +2 -2
- package/dist/_chunks/{face-scheme-e2M2HJGz.js.map → face-scheme-DlcQaQVR.js.map} +1 -1
- package/dist/_chunks/{fetal-weight-CkIwJgiH.js → fetal-weight-DmZzMRzB.js} +2 -2
- package/dist/_chunks/{fetal-weight-CkIwJgiH.js.map → fetal-weight-DmZzMRzB.js.map} +1 -1
- package/dist/_chunks/{finished-terminal-DXVAfhRr.js → finished-terminal-BKTFUk3S.js} +2 -2
- package/dist/_chunks/{finished-terminal-DXVAfhRr.js.map → finished-terminal-BKTFUk3S.js.map} +1 -1
- package/dist/_chunks/{forgot-password-form-YQVzSskq.js → forgot-password-form-Bc_UPax6.js} +2 -2
- package/dist/_chunks/{forgot-password-form-YQVzSskq.js.map → forgot-password-form-Bc_UPax6.js.map} +1 -1
- package/dist/_chunks/{gestational-age-calculator-Dv3IePb-.js → gestational-age-calculator-DmzYdW5e.js} +3 -3
- package/dist/_chunks/{gestational-age-calculator-Dv3IePb-.js.map → gestational-age-calculator-DmzYdW5e.js.map} +1 -1
- package/dist/_chunks/{hcg-doubling-DdyUt4gz.js → hcg-doubling-Tr72PetS.js} +2 -2
- package/dist/_chunks/{hcg-doubling-DdyUt4gz.js.map → hcg-doubling-Tr72PetS.js.map} +1 -1
- package/dist/_chunks/{heatmap-BiwC7Gdx.js → heatmap-CNxCDl0D.js} +2 -2
- package/dist/_chunks/{heatmap-BiwC7Gdx.js.map → heatmap-CNxCDl0D.js.map} +1 -1
- package/dist/_chunks/{kit-extensions-BOsUgWnE.js → kit-extensions-DZJRmDI6.js} +7 -7
- package/dist/_chunks/{kit-extensions-BOsUgWnE.js.map → kit-extensions-DZJRmDI6.js.map} +1 -1
- package/dist/_chunks/{login-dev-card-B6-zCFq3.js → login-dev-card-D7orCfJT.js} +2 -2
- package/dist/_chunks/{login-dev-card-B6-zCFq3.js.map → login-dev-card-D7orCfJT.js.map} +1 -1
- package/dist/_chunks/map-view-Bny79cWa.js +856 -0
- package/dist/_chunks/map-view-Bny79cWa.js.map +1 -0
- package/dist/_chunks/{marketplace-app-shell-C-4QF6mp.js → marketplace-app-shell-CPNVBVLH.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-C-4QF6mp.js.map → marketplace-app-shell-CPNVBVLH.js.map} +1 -1
- package/dist/_chunks/motion-is-off-BvAuNV5O.js +15 -0
- package/dist/_chunks/motion-is-off-BvAuNV5O.js.map +1 -0
- package/dist/_chunks/{notes-panel-Cz621DWV.js → notes-panel-DXMTObBv.js} +3 -3
- package/dist/_chunks/{notes-panel-Cz621DWV.js.map → notes-panel-DXMTObBv.js.map} +1 -1
- package/dist/_chunks/{operator-hero-BELhrv9o.js → operator-hero-BWayX73x.js} +71 -62
- package/dist/_chunks/{operator-hero-BELhrv9o.js.map → operator-hero-BWayX73x.js.map} +1 -1
- package/dist/_chunks/{patient-details-RsT3SaYh.js → patient-details-DdtXBNjt.js} +2 -2
- package/dist/_chunks/{patient-details-RsT3SaYh.js.map → patient-details-DdtXBNjt.js.map} +1 -1
- package/dist/_chunks/{patient-search-CxuqVUTB.js → patient-search-DDRDCjZi.js} +439 -482
- package/dist/_chunks/patient-search-DDRDCjZi.js.map +1 -0
- package/dist/_chunks/{patient-summary-card-BjZErlbt.js → patient-summary-card-CGHz-Bvm.js} +2 -2
- package/dist/_chunks/{patient-summary-card-BjZErlbt.js.map → patient-summary-card-CGHz-Bvm.js.map} +1 -1
- package/dist/_chunks/{payment-automation-upsell-u5EuFyCY.js → payment-automation-upsell-D7yaD4u1.js} +3 -3
- package/dist/_chunks/{payment-automation-upsell-u5EuFyCY.js.map → payment-automation-upsell-D7yaD4u1.js.map} +1 -1
- package/dist/_chunks/{payment-request-card-IR83TJax.js → payment-request-card-BmV2pLoM.js} +2 -2
- package/dist/_chunks/{payment-request-card-IR83TJax.js.map → payment-request-card-BmV2pLoM.js.map} +1 -1
- package/dist/_chunks/{periodontal-chart-DqdUEFxK.js → periodontal-chart-Bjz7O4wT.js} +2 -2
- package/dist/_chunks/{periodontal-chart-DqdUEFxK.js.map → periodontal-chart-Bjz7O4wT.js.map} +1 -1
- package/dist/_chunks/{periodontal-chart-card-CCkzStlm.js → periodontal-chart-card-CxEXHl2x.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-CCkzStlm.js.map → periodontal-chart-card-CxEXHl2x.js.map} +1 -1
- package/dist/_chunks/{periodontal-diagnosis-CF1d_0yl.js → periodontal-diagnosis-xheWfi4g.js} +2 -2
- package/dist/_chunks/{periodontal-diagnosis-CF1d_0yl.js.map → periodontal-diagnosis-xheWfi4g.js.map} +1 -1
- package/dist/_chunks/{periodontal-risk-chart-D2zyID0H.js → periodontal-risk-chart-BBPB9wf1.js} +2 -2
- package/dist/_chunks/{periodontal-risk-chart-D2zyID0H.js.map → periodontal-risk-chart-BBPB9wf1.js.map} +1 -1
- package/dist/_chunks/{practice-profile-hero-Bb4YyxHA.js → practice-profile-hero-Cw4NZp0A.js} +2 -2
- package/dist/_chunks/{practice-profile-hero-Bb4YyxHA.js.map → practice-profile-hero-Cw4NZp0A.js.map} +1 -1
- package/dist/_chunks/practice-results-BlxfBx-D.js +2181 -0
- package/dist/_chunks/practice-results-BlxfBx-D.js.map +1 -0
- package/dist/_chunks/{pregnancy-dating-Cs8xpZA8.js → pregnancy-dating-BvorzHrd.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-Cs8xpZA8.js.map → pregnancy-dating-BvorzHrd.js.map} +1 -1
- package/dist/_chunks/{pregnancy-weight-gain-B_Zldlzq.js → pregnancy-weight-gain-DQoOM8QV.js} +2 -2
- package/dist/_chunks/{pregnancy-weight-gain-B_Zldlzq.js.map → pregnancy-weight-gain-DQoOM8QV.js.map} +1 -1
- package/dist/_chunks/{privacy-mask-DbEKI-Jv.js → privacy-mask-Dc3kdkCR.js} +2 -2
- package/dist/_chunks/{privacy-mask-DbEKI-Jv.js.map → privacy-mask-Dc3kdkCR.js.map} +1 -1
- package/dist/_chunks/{public-footer-DGjLTtNK.js → public-footer-CB7ruuLI.js} +295 -260
- package/dist/_chunks/public-footer-CB7ruuLI.js.map +1 -0
- package/dist/_chunks/{public-header.agent-_ArDD1Xr.js → public-header.agent-Db4wm6_S.js} +203 -193
- package/dist/_chunks/public-header.agent-Db4wm6_S.js.map +1 -0
- package/dist/_chunks/{registration-form-Cq5_OSIL.js → registration-form-Lw9T7IXr.js} +2 -2
- package/dist/_chunks/{registration-form-Cq5_OSIL.js.map → registration-form-Lw9T7IXr.js.map} +1 -1
- package/dist/_chunks/{reserved.agent-BMkapgom.js → reserved.agent-D2jwJPac.js} +21 -31
- package/dist/_chunks/reserved.agent-D2jwJPac.js.map +1 -0
- package/dist/_chunks/{reset-password-form-BVsL2fOJ.js → reset-password-form-C93SH0Tx.js} +2 -2
- package/dist/_chunks/{reset-password-form-BVsL2fOJ.js.map → reset-password-form-C93SH0Tx.js.map} +1 -1
- package/dist/_chunks/{reviews-panel-B03auSpQ.js → reviews-panel-CfJPEkH7.js} +2 -2
- package/dist/_chunks/{reviews-panel-B03auSpQ.js.map → reviews-panel-CfJPEkH7.js.map} +1 -1
- package/dist/_chunks/{section-card-D1sV4Voz.js → section-card-DFr2wGal.js} +2 -2
- package/dist/_chunks/{section-card-D1sV4Voz.js.map → section-card-DFr2wGal.js.map} +1 -1
- package/dist/_chunks/{send-registration-link-form-OgPomrZN.js → send-registration-link-form-DfbTjrEK.js} +2 -2
- package/dist/_chunks/{send-registration-link-form-OgPomrZN.js.map → send-registration-link-form-DfbTjrEK.js.map} +1 -1
- package/dist/_chunks/{signed-out-frame-CPow3aCZ.js → signed-out-frame-bh7fn_Px.js} +2 -2
- package/dist/_chunks/{signed-out-frame-CPow3aCZ.js.map → signed-out-frame-bh7fn_Px.js.map} +1 -1
- package/dist/_chunks/{stat-BFKZV50y.js → stat-WGLdn5Vn.js} +113 -107
- package/dist/_chunks/stat-WGLdn5Vn.js.map +1 -0
- package/dist/_chunks/{task-card-TSJjuuDe.js → task-card-DqVoitRk.js} +2 -2
- package/dist/_chunks/{task-card-TSJjuuDe.js.map → task-card-DqVoitRk.js.map} +1 -1
- package/dist/_chunks/{task-editor-gqWF1jI6.js → task-editor-D--LwVrg.js} +2 -2
- package/dist/_chunks/{task-editor-gqWF1jI6.js.map → task-editor-D--LwVrg.js.map} +1 -1
- package/dist/_chunks/{task-tray-DrXfMCuf.js → task-tray-C6j8HVMv.js} +2 -2
- package/dist/_chunks/{task-tray-DrXfMCuf.js.map → task-tray-C6j8HVMv.js.map} +1 -1
- package/dist/_chunks/{tasks-panel-OuIaydK5.js → tasks-panel-D6PuF4MQ.js} +2 -2
- package/dist/_chunks/{tasks-panel-OuIaydK5.js.map → tasks-panel-D6PuF4MQ.js.map} +1 -1
- package/dist/_chunks/{timeline-CKUaBZOx.js → timeline-AMqE-c2T.js} +2 -2
- package/dist/_chunks/{timeline-CKUaBZOx.js.map → timeline-AMqE-c2T.js.map} +1 -1
- package/dist/_chunks/{use-appointment-details-read-DvK7Looa.js → use-appointment-details-read-BK_Gw1GG.js} +5 -5
- package/dist/_chunks/{use-appointment-details-read-DvK7Looa.js.map → use-appointment-details-read-BK_Gw1GG.js.map} +1 -1
- package/dist/_chunks/{workflow-map-DWk-rZse.js → workflow-map-B4XkcET0.js} +2 -2
- package/dist/_chunks/{workflow-map-DWk-rZse.js.map → workflow-map-B4XkcET0.js.map} +1 -1
- package/dist/_chunks/{workflow-webhook-action-DILFqAVd.js → workflow-webhook-action-CtBn5JvO.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-DILFqAVd.js.map → workflow-webhook-action-CtBn5JvO.js.map} +1 -1
- package/dist/agent-catalog.json +6 -6
- package/dist/agent-i18n/en.json +2 -2
- package/dist/components/_shared/motion-is-off.d.ts +7 -0
- package/dist/components/_shared/motion-is-off.d.ts.map +1 -0
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/booking/step-focus.d.ts +0 -6
- package/dist/components/booking/step-focus.d.ts.map +1 -1
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +16 -0
- package/dist/components/map-view/map-view.d.ts.map +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/operator-hero/operator-hero.d.ts.map +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-search/patient-search.d.ts +6 -2
- package/dist/components/patient-search/patient-search.d.ts.map +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/periodontal-risk-chart/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.agent.d.ts.map +1 -1
- package/dist/components/practice-results/practice-results.d.ts +15 -2
- package/dist/components/practice-results/practice-results.d.ts.map +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-footer/public-footer.d.ts +23 -0
- package/dist/components/public-footer/public-footer.d.ts.map +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts +7 -0
- package/dist/components/public-header/public-header.d.ts.map +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/section-card/index.js +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stat/stat.d.ts +7 -0
- package/dist/components/stat/stat.d.ts.map +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/host-compat.css +4 -1
- package/dist/i18n/locales/ar.d.ts +1 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +2 -1
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +1 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +2 -1
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +1 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +2 -1
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +1 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +1 -0
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +1 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +2 -1
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +1 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +2 -1
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +1 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +2 -1
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +1 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +2 -1
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +1 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +2 -1
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +1 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +2 -1
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +1 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +2 -1
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +1 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +2 -1
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +1 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +2 -1
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +1 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +2 -1
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +1 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +2 -1
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +1 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +2 -1
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +1 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +2 -1
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +1 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +2 -1
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +60 -60
- package/dist/locales/ar.json +2 -1
- package/dist/locales/de.json +2 -1
- package/dist/locales/el.json +2 -1
- package/dist/locales/en.json +1 -0
- package/dist/locales/es.json +2 -1
- package/dist/locales/fr.json +2 -1
- package/dist/locales/hi.json +2 -1
- package/dist/locales/it.json +2 -1
- package/dist/locales/ja.json +2 -1
- package/dist/locales/nl.json +2 -1
- package/dist/locales/pl.json +2 -1
- package/dist/locales/pt.json +2 -1
- package/dist/locales/ro.json +2 -1
- package/dist/locales/ru.json +2 -1
- package/dist/locales/sq.json +2 -1
- package/dist/locales/sv.json +2 -1
- package/dist/locales/tr.json +2 -1
- package/dist/locales/zh.json +2 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/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/signed-out-frame/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/map-view-Dn7aXZJw.js +0 -731
- package/dist/_chunks/map-view-Dn7aXZJw.js.map +0 -1
- package/dist/_chunks/patient-search-CxuqVUTB.js.map +0 -1
- package/dist/_chunks/practice-results-BByRCIuR.js +0 -1977
- package/dist/_chunks/practice-results-BByRCIuR.js.map +0 -1
- package/dist/_chunks/public-footer-DGjLTtNK.js.map +0 -1
- package/dist/_chunks/public-header.agent-_ArDD1Xr.js.map +0 -1
- package/dist/_chunks/reserved.agent-BMkapgom.js.map +0 -1
- package/dist/_chunks/stat-BFKZV50y.js.map +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as t, jsxs as x } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { A as
|
|
6
|
-
import { B as
|
|
7
|
-
import { C as te } from "./card-
|
|
8
|
-
import { S as
|
|
2
|
+
import { forwardRef as Te, useRef as R, useState as J, useEffect as H, useLayoutEffect as Ae, useMemo as ue, useImperativeHandle as We, createContext as Pe, useCallback as Z, useId as _e, useContext as Qe } from "react";
|
|
3
|
+
import { c as ee } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as D } from "react-i18next";
|
|
5
|
+
import { A as Se } from "./autocomplete-D10ydpgi.js";
|
|
6
|
+
import { B as Fe } from "./button-DohK_Ak_.js";
|
|
7
|
+
import { C as te } from "./card-DVO3x8E-.js";
|
|
8
|
+
import { S as Ie } from "./slider-pZ95bEm7.js";
|
|
9
9
|
import { a as Oe } from "./toast-BNoN8Qjh.js";
|
|
10
|
-
import { D as
|
|
10
|
+
import { D as Y } from "./dropdown-menu-CqxBthww.js";
|
|
11
11
|
import { u as Be } from "./registry-DvAUVLHh.js";
|
|
12
|
-
import { S as
|
|
13
|
-
import { X as
|
|
12
|
+
import { S as ke } from "./search-QbWPlY5f.js";
|
|
13
|
+
import { X as Ne } from "./x-B5YnXwCz.js";
|
|
14
14
|
import { c as De } from "./createLucideIcon-DhHxpK9K.js";
|
|
15
15
|
import { M as Ke } from "./map-pin-BaY37-Km.js";
|
|
16
|
-
import {
|
|
16
|
+
import { C as Ve } from "./chevron-right-I9AeSxH2.js";
|
|
17
17
|
import { C as Me } from "./chevron-down-DWE7GSq9.js";
|
|
18
18
|
/**
|
|
19
19
|
* @license lucide-react v1.22.0 - ISC
|
|
@@ -21,14 +21,14 @@ import { C as Me } from "./chevron-down-DWE7GSq9.js";
|
|
|
21
21
|
* This source code is licensed under the ISC license.
|
|
22
22
|
* See the LICENSE file in the root directory of this source tree.
|
|
23
23
|
*/
|
|
24
|
-
const
|
|
24
|
+
const ze = [
|
|
25
25
|
["line", { x1: "2", x2: "5", y1: "12", y2: "12", key: "bvdh0s" }],
|
|
26
26
|
["line", { x1: "19", x2: "22", y1: "12", y2: "12", key: "1tbv5k" }],
|
|
27
27
|
["line", { x1: "12", x2: "12", y1: "2", y2: "5", key: "11lu5j" }],
|
|
28
28
|
["line", { x1: "12", x2: "12", y1: "19", y2: "22", key: "x3vr5v" }],
|
|
29
29
|
["circle", { cx: "12", cy: "12", r: "7", key: "fim9np" }],
|
|
30
30
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
31
|
-
],
|
|
31
|
+
], qe = De("locate-fixed", ze), He = {
|
|
32
32
|
id: "patient-search",
|
|
33
33
|
// `filter` is the conceptual capability of this search widget. Building the
|
|
34
34
|
// actual query (WHO/WHERE/WHEN/facets/geo) is host-delegated: selection is
|
|
@@ -81,26 +81,26 @@ const qe = [
|
|
|
81
81
|
};
|
|
82
82
|
function S(e, r) {
|
|
83
83
|
if (typeof window > "u") return;
|
|
84
|
-
const
|
|
84
|
+
const s = window.track;
|
|
85
85
|
try {
|
|
86
|
-
|
|
86
|
+
s == null || s(e, r);
|
|
87
87
|
} catch {
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
const
|
|
90
|
+
const z = [
|
|
91
91
|
"today",
|
|
92
92
|
"tomorrow",
|
|
93
93
|
"this_week",
|
|
94
94
|
"anytime"
|
|
95
|
-
],
|
|
96
|
-
function
|
|
97
|
-
let r = 0,
|
|
98
|
-
return
|
|
99
|
-
const
|
|
100
|
-
|
|
95
|
+
], $ = [1, 5, 10, 25, 50], fe = 5, Re = 200;
|
|
96
|
+
function $e(e) {
|
|
97
|
+
let r = 0, s = Number.POSITIVE_INFINITY;
|
|
98
|
+
return $.forEach((o, h) => {
|
|
99
|
+
const d = Math.abs(o - e);
|
|
100
|
+
d < s && (s = d, r = h);
|
|
101
101
|
}), r;
|
|
102
102
|
}
|
|
103
|
-
const
|
|
103
|
+
const Ue = ee(
|
|
104
104
|
"ds:flex ds:w-full ds:flex-col ds:text-[var(--foreground)]",
|
|
105
105
|
{
|
|
106
106
|
variants: {
|
|
@@ -113,67 +113,67 @@ const Ge = $(
|
|
|
113
113
|
},
|
|
114
114
|
defaultVariants: { variant: "who-where" }
|
|
115
115
|
}
|
|
116
|
-
),
|
|
117
|
-
function
|
|
118
|
-
const r =
|
|
119
|
-
return r ? r[e] :
|
|
116
|
+
), Ce = Pe(null);
|
|
117
|
+
function Ee(e) {
|
|
118
|
+
const r = Qe(Ce), s = R(!1);
|
|
119
|
+
return r ? r[e] : s;
|
|
120
120
|
}
|
|
121
121
|
function re({
|
|
122
122
|
value: e,
|
|
123
123
|
onChange: r,
|
|
124
|
-
loadObjects:
|
|
125
|
-
onObjectSelect:
|
|
126
|
-
inputRef:
|
|
127
|
-
query:
|
|
128
|
-
onQueryChange:
|
|
124
|
+
loadObjects: s,
|
|
125
|
+
onObjectSelect: o,
|
|
126
|
+
inputRef: h,
|
|
127
|
+
query: d,
|
|
128
|
+
onQueryChange: p
|
|
129
129
|
}) {
|
|
130
|
-
var f, b,
|
|
131
|
-
const { t:
|
|
130
|
+
var f, b, c;
|
|
131
|
+
const { t: g } = D("ui"), l = R((f = e.object) == null ? void 0 : f.value);
|
|
132
132
|
H(() => {
|
|
133
|
-
var
|
|
134
|
-
((
|
|
135
|
-
}, [(b = e.object) == null ? void 0 : b.value, (
|
|
136
|
-
const n =
|
|
137
|
-
async (
|
|
138
|
-
[
|
|
139
|
-
), u = (
|
|
133
|
+
var i, y, m;
|
|
134
|
+
((i = e.object) == null ? void 0 : i.value) !== l.current && (l.current = (y = e.object) == null ? void 0 : y.value, p(((m = e.object) == null ? void 0 : m.label) ?? ""));
|
|
135
|
+
}, [(b = e.object) == null ? void 0 : b.value, (c = e.object) == null ? void 0 : c.label, p]);
|
|
136
|
+
const n = Z(
|
|
137
|
+
async (i, { signal: y }) => await s(i, { signal: y }),
|
|
138
|
+
[s]
|
|
139
|
+
), u = (i) => {
|
|
140
140
|
const y = {
|
|
141
|
-
value:
|
|
142
|
-
label:
|
|
143
|
-
description:
|
|
144
|
-
__payload:
|
|
141
|
+
value: i.value,
|
|
142
|
+
label: i.label,
|
|
143
|
+
description: i.description,
|
|
144
|
+
__payload: i.__payload
|
|
145
145
|
};
|
|
146
|
-
|
|
146
|
+
p(y.label), l.current = y.value, r({ ...e, object: y }), S("patient_search_object_selected", {
|
|
147
147
|
value: y.value,
|
|
148
148
|
type: y.__payload && typeof y.__payload == "object" ? y.__payload.type : void 0
|
|
149
|
-
}),
|
|
150
|
-
},
|
|
149
|
+
}), o == null || o(y);
|
|
150
|
+
}, a = Ee("who");
|
|
151
151
|
return /* @__PURE__ */ t(
|
|
152
152
|
"div",
|
|
153
153
|
{
|
|
154
154
|
"data-component": "patient-search-field",
|
|
155
155
|
"data-field": "who",
|
|
156
156
|
onFocus: () => {
|
|
157
|
-
|
|
157
|
+
a.current || (a.current = !0, S("patient_search_object_focused"));
|
|
158
158
|
},
|
|
159
|
-
onBlur: (
|
|
160
|
-
|
|
159
|
+
onBlur: (i) => {
|
|
160
|
+
i.currentTarget && !i.currentTarget.contains(i.relatedTarget) && (a.current = !1);
|
|
161
161
|
},
|
|
162
162
|
children: /* @__PURE__ */ t(
|
|
163
|
-
|
|
163
|
+
Se,
|
|
164
164
|
{
|
|
165
|
-
ref:
|
|
165
|
+
ref: h,
|
|
166
166
|
size: "lg",
|
|
167
|
-
value:
|
|
168
|
-
onChange: (
|
|
169
|
-
|
|
167
|
+
value: d,
|
|
168
|
+
onChange: (i) => {
|
|
169
|
+
p(i), e.object && i !== e.object.label && (l.current = void 0, r({ ...e, object: void 0 }));
|
|
170
170
|
},
|
|
171
171
|
onSelect: u,
|
|
172
172
|
loadOptions: n,
|
|
173
173
|
debounceMs: Re,
|
|
174
|
-
placeholder:
|
|
175
|
-
"aria-label":
|
|
176
|
-
startAdornment: /* @__PURE__ */ t(
|
|
174
|
+
placeholder: g("patientSearch.who.placeholder"),
|
|
175
|
+
"aria-label": g("patientSearch.who.label"),
|
|
176
|
+
startAdornment: /* @__PURE__ */ t(ke, { "aria-hidden": "true" })
|
|
177
177
|
}
|
|
178
178
|
)
|
|
179
179
|
}
|
|
@@ -191,28 +191,28 @@ const we = [
|
|
|
191
191
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
192
192
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
193
193
|
].join(" ");
|
|
194
|
-
function
|
|
194
|
+
function se({
|
|
195
195
|
value: e,
|
|
196
196
|
onChange: r,
|
|
197
|
-
loadPlaces:
|
|
198
|
-
onPlaceSelect:
|
|
199
|
-
allowTypedPlace:
|
|
200
|
-
inputRef:
|
|
201
|
-
defaultRadiusKm:
|
|
202
|
-
reverseGeocode:
|
|
203
|
-
geoHint:
|
|
197
|
+
loadPlaces: s,
|
|
198
|
+
onPlaceSelect: o,
|
|
199
|
+
allowTypedPlace: h,
|
|
200
|
+
inputRef: d,
|
|
201
|
+
defaultRadiusKm: p = fe,
|
|
202
|
+
reverseGeocode: g,
|
|
203
|
+
geoHint: l,
|
|
204
204
|
query: n,
|
|
205
205
|
onQueryChange: u
|
|
206
206
|
}) {
|
|
207
|
-
var q,
|
|
208
|
-
const { t:
|
|
207
|
+
var q, B, K;
|
|
208
|
+
const { t: a } = D("ui"), f = R((q = e.place) == null ? void 0 : q.value), b = e.geo ? "granted" : "pristine", [c, i] = J(b);
|
|
209
209
|
H(() => {
|
|
210
210
|
var w, _, T;
|
|
211
211
|
((w = e.place) == null ? void 0 : w.value) !== f.current && (f.current = (_ = e.place) == null ? void 0 : _.value, u(((T = e.place) == null ? void 0 : T.label) ?? ""));
|
|
212
|
-
}, [(
|
|
213
|
-
const y =
|
|
214
|
-
async (w, { signal: _ }) => await
|
|
215
|
-
[
|
|
212
|
+
}, [(B = e.place) == null ? void 0 : B.value, (K = e.place) == null ? void 0 : K.label, u]);
|
|
213
|
+
const y = Z(
|
|
214
|
+
async (w, { signal: _ }) => await s(w, { signal: _ }),
|
|
215
|
+
[s]
|
|
216
216
|
), m = (w) => {
|
|
217
217
|
const _ = {
|
|
218
218
|
value: w.value,
|
|
@@ -220,66 +220,66 @@ function ae({
|
|
|
220
220
|
lat: w.lat,
|
|
221
221
|
lng: w.lng
|
|
222
222
|
};
|
|
223
|
-
u(_.label), f.current = _.value, r({ ...e, place: _, geo: void 0 }),
|
|
223
|
+
u(_.label), f.current = _.value, r({ ...e, place: _, geo: void 0 }), c === "granted" && i("pristine"), S("patient_search_place_selected", { value: _.value }), o == null || o(_);
|
|
224
224
|
}, j = (w) => {
|
|
225
|
-
|
|
226
|
-
},
|
|
225
|
+
i("pristine"), Oe(a("patientSearch.geo.denied")), S("patient_search_geo_denied", { reason: w });
|
|
226
|
+
}, C = () => {
|
|
227
227
|
if (typeof window > "u" || !(navigator != null && navigator.geolocation)) {
|
|
228
228
|
j("unsupported");
|
|
229
229
|
return;
|
|
230
230
|
}
|
|
231
|
-
|
|
231
|
+
i("requesting"), S("patient_search_place_focused"), navigator.geolocation.getCurrentPosition(
|
|
232
232
|
async (w) => {
|
|
233
233
|
const { latitude: _, longitude: T } = w.coords;
|
|
234
234
|
let F;
|
|
235
235
|
try {
|
|
236
|
-
F = await (
|
|
236
|
+
F = await (g == null ? void 0 : g(_, T));
|
|
237
237
|
} catch {
|
|
238
238
|
F = void 0;
|
|
239
239
|
}
|
|
240
|
-
const N =
|
|
240
|
+
const N = p, U = F ?? a("patientSearch.geo.fallbackLabel"), G = {
|
|
241
241
|
value: `geo:${_.toFixed(4)},${T.toFixed(4)}`,
|
|
242
|
-
label:
|
|
242
|
+
label: U,
|
|
243
243
|
lat: _,
|
|
244
244
|
lng: T
|
|
245
245
|
};
|
|
246
246
|
r({
|
|
247
247
|
...e,
|
|
248
|
-
place:
|
|
248
|
+
place: G,
|
|
249
249
|
geo: {
|
|
250
250
|
lat: _,
|
|
251
251
|
lng: T,
|
|
252
252
|
radiusKm: N,
|
|
253
|
-
label:
|
|
253
|
+
label: U
|
|
254
254
|
}
|
|
255
|
-
}),
|
|
255
|
+
}), i("granted"), S("patient_search_geo_granted", { radiusKm: N });
|
|
256
256
|
},
|
|
257
257
|
() => j("user"),
|
|
258
258
|
{ enableHighAccuracy: !1, maximumAge: 6e4, timeout: 1e4 }
|
|
259
259
|
);
|
|
260
260
|
}, E = () => {
|
|
261
|
-
r({ ...e, geo: void 0, place: void 0 }), u(""), f.current = void 0,
|
|
262
|
-
}, k =
|
|
261
|
+
r({ ...e, geo: void 0, place: void 0 }), u(""), f.current = void 0, i("pristine");
|
|
262
|
+
}, k = c === "granted" && !!e.geo, W = c === "requesting", P = Ee("where"), O = !!g, ie = O ? /* @__PURE__ */ x("span", { className: "ds:absolute ds:end-[var(--spacing-xs)] ds:top-1/2 ds:-translate-y-1/2 ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
263
263
|
k ? /* @__PURE__ */ t(
|
|
264
264
|
"button",
|
|
265
265
|
{
|
|
266
266
|
type: "button",
|
|
267
|
-
"aria-label":
|
|
267
|
+
"aria-label": a("patientSearch.geo.clear"),
|
|
268
268
|
onClick: E,
|
|
269
269
|
className: we,
|
|
270
|
-
children: /* @__PURE__ */ t(
|
|
270
|
+
children: /* @__PURE__ */ t(Ne, { "aria-hidden": "true", className: "ds:size-4" })
|
|
271
271
|
}
|
|
272
272
|
) : null,
|
|
273
273
|
/* @__PURE__ */ t(
|
|
274
274
|
"button",
|
|
275
275
|
{
|
|
276
276
|
type: "button",
|
|
277
|
-
"aria-label":
|
|
277
|
+
"aria-label": a("patientSearch.geo.cta"),
|
|
278
278
|
"aria-pressed": k || void 0,
|
|
279
279
|
disabled: W,
|
|
280
|
-
onClick: k ? E :
|
|
280
|
+
onClick: k ? E : C,
|
|
281
281
|
className: we,
|
|
282
|
-
children: /* @__PURE__ */ t(
|
|
282
|
+
children: /* @__PURE__ */ t(qe, { "aria-hidden": "true", className: "ds:size-4" })
|
|
283
283
|
}
|
|
284
284
|
)
|
|
285
285
|
] }) : null;
|
|
@@ -298,24 +298,24 @@ function ae({
|
|
|
298
298
|
children: [
|
|
299
299
|
/* @__PURE__ */ x("div", { className: "ds:relative", children: [
|
|
300
300
|
/* @__PURE__ */ t(
|
|
301
|
-
|
|
301
|
+
Se,
|
|
302
302
|
{
|
|
303
|
-
ref:
|
|
303
|
+
ref: d,
|
|
304
304
|
size: "lg",
|
|
305
305
|
value: n,
|
|
306
306
|
onChange: (w) => {
|
|
307
307
|
var _, T;
|
|
308
|
-
if (u(w), (
|
|
309
|
-
const F = w.trim(), N =
|
|
308
|
+
if (u(w), (h || e.place) && w !== ((_ = e.place) == null ? void 0 : _.label)) {
|
|
309
|
+
const F = w.trim(), N = h && F ? { value: `text:${F}`, label: F } : void 0;
|
|
310
310
|
if (f.current = N == null ? void 0 : N.value, (N == null ? void 0 : N.value) === ((T = e.place) == null ? void 0 : T.value) && !e.geo) return;
|
|
311
|
-
r({ ...e, place: N, geo: void 0 }),
|
|
311
|
+
r({ ...e, place: N, geo: void 0 }), c === "granted" && i("pristine");
|
|
312
312
|
}
|
|
313
313
|
},
|
|
314
314
|
onSelect: m,
|
|
315
315
|
loadOptions: y,
|
|
316
316
|
debounceMs: Re,
|
|
317
|
-
placeholder:
|
|
318
|
-
"aria-label":
|
|
317
|
+
placeholder: a("patientSearch.where.placeholder"),
|
|
318
|
+
"aria-label": a("patientSearch.where.label"),
|
|
319
319
|
startAdornment: /* @__PURE__ */ t(Ke, { "aria-hidden": "true" }),
|
|
320
320
|
endAdornment: (
|
|
321
321
|
// Decorative spacer — reserves inline-end room so the typed
|
|
@@ -333,38 +333,38 @@ function ae({
|
|
|
333
333
|
)
|
|
334
334
|
}
|
|
335
335
|
),
|
|
336
|
-
|
|
336
|
+
ie
|
|
337
337
|
] }),
|
|
338
|
-
|
|
338
|
+
O && l ? /* @__PURE__ */ t(
|
|
339
339
|
"p",
|
|
340
340
|
{
|
|
341
341
|
"data-component": "patient-search-geo-hint",
|
|
342
342
|
className: "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]",
|
|
343
|
-
children:
|
|
343
|
+
children: l
|
|
344
344
|
}
|
|
345
345
|
) : null
|
|
346
346
|
]
|
|
347
347
|
}
|
|
348
348
|
);
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function ae({
|
|
351
351
|
value: e,
|
|
352
352
|
onChange: r,
|
|
353
|
-
defaultRadiusKm:
|
|
353
|
+
defaultRadiusKm: s = fe
|
|
354
354
|
}) {
|
|
355
|
-
const { t:
|
|
355
|
+
const { t: o } = D("ui"), [h, d] = J(
|
|
356
356
|
() => {
|
|
357
|
-
var
|
|
358
|
-
return
|
|
357
|
+
var l;
|
|
358
|
+
return $e(((l = e.geo) == null ? void 0 : l.radiusKm) ?? s);
|
|
359
359
|
}
|
|
360
360
|
);
|
|
361
361
|
if (!e.geo) return null;
|
|
362
|
-
const
|
|
363
|
-
const n =
|
|
362
|
+
const p = (l) => {
|
|
363
|
+
const n = $[l] ?? s;
|
|
364
364
|
r({ ...e, geo: { ...e.geo, radiusKm: n } }), S("patient_search_radius_changed", { radiusKm: n });
|
|
365
|
-
},
|
|
366
|
-
const n =
|
|
367
|
-
return
|
|
365
|
+
}, g = (l) => {
|
|
366
|
+
const n = $[Math.round(l)] ?? s;
|
|
367
|
+
return o("patientSearch.geo.radiusFormat", { km: n });
|
|
368
368
|
};
|
|
369
369
|
return /* @__PURE__ */ x(
|
|
370
370
|
"div",
|
|
@@ -377,32 +377,32 @@ function se({
|
|
|
377
377
|
{
|
|
378
378
|
id: "patient-search-radius-label",
|
|
379
379
|
className: "type-meta ds:text-[color:var(--muted-foreground)]",
|
|
380
|
-
children:
|
|
380
|
+
children: o("patientSearch.geo.radius")
|
|
381
381
|
}
|
|
382
382
|
),
|
|
383
383
|
/* @__PURE__ */ t(
|
|
384
|
-
|
|
384
|
+
Ie,
|
|
385
385
|
{
|
|
386
|
-
value: [
|
|
386
|
+
value: [h],
|
|
387
387
|
min: 0,
|
|
388
|
-
max:
|
|
388
|
+
max: $.length - 1,
|
|
389
389
|
step: 1,
|
|
390
|
-
marks:
|
|
390
|
+
marks: $.map((l, n) => ({
|
|
391
391
|
value: n,
|
|
392
|
-
label: `${
|
|
392
|
+
label: `${l}`
|
|
393
393
|
})),
|
|
394
|
-
formatValue:
|
|
394
|
+
formatValue: g,
|
|
395
395
|
alwaysShowValue: !0,
|
|
396
396
|
"aria-labelledby": "patient-search-radius-label",
|
|
397
|
-
onValueChange: (
|
|
398
|
-
onValueCommit: (
|
|
397
|
+
onValueChange: (l) => d(l[0] ?? 0),
|
|
398
|
+
onValueCommit: (l) => p(l[0] ?? 0)
|
|
399
399
|
}
|
|
400
400
|
)
|
|
401
401
|
]
|
|
402
402
|
}
|
|
403
403
|
);
|
|
404
404
|
}
|
|
405
|
-
const
|
|
405
|
+
const Ge = ee(
|
|
406
406
|
[
|
|
407
407
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
408
408
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -425,43 +425,43 @@ const Xe = $(
|
|
|
425
425
|
defaultVariants: { state: "idle" }
|
|
426
426
|
}
|
|
427
427
|
);
|
|
428
|
-
function
|
|
429
|
-
const { t:
|
|
428
|
+
function Xe({ value: e, onChange: r }) {
|
|
429
|
+
const { t: s, i18n: o } = D("ui"), h = _e(), d = o.dir() === "rtl", p = R(/* @__PURE__ */ new Map()), g = Z((a) => {
|
|
430
430
|
var f;
|
|
431
|
-
(f =
|
|
432
|
-
}, []),
|
|
433
|
-
(
|
|
434
|
-
const b =
|
|
435
|
-
switch (
|
|
436
|
-
case
|
|
431
|
+
(f = p.current.get(a)) == null || f.focus();
|
|
432
|
+
}, []), l = Z(
|
|
433
|
+
(a, f) => {
|
|
434
|
+
const b = z.indexOf(f), c = z.length, i = d ? "ArrowLeft" : "ArrowRight", y = d ? "ArrowRight" : "ArrowLeft";
|
|
435
|
+
switch (a.key) {
|
|
436
|
+
case i:
|
|
437
437
|
case "ArrowDown": {
|
|
438
|
-
|
|
439
|
-
const m =
|
|
440
|
-
r(m), S("patient_search_when_selected", { when: m }),
|
|
438
|
+
a.preventDefault();
|
|
439
|
+
const m = z[(b + 1) % c];
|
|
440
|
+
r(m), S("patient_search_when_selected", { when: m }), g(m);
|
|
441
441
|
break;
|
|
442
442
|
}
|
|
443
443
|
case y:
|
|
444
444
|
case "ArrowUp": {
|
|
445
|
-
|
|
446
|
-
const m =
|
|
447
|
-
r(m), S("patient_search_when_selected", { when: m }),
|
|
445
|
+
a.preventDefault();
|
|
446
|
+
const m = z[(b - 1 + c) % c];
|
|
447
|
+
r(m), S("patient_search_when_selected", { when: m }), g(m);
|
|
448
448
|
break;
|
|
449
449
|
}
|
|
450
450
|
case "Home": {
|
|
451
|
-
|
|
452
|
-
const m =
|
|
453
|
-
r(m), S("patient_search_when_selected", { when: m }),
|
|
451
|
+
a.preventDefault();
|
|
452
|
+
const m = z[0];
|
|
453
|
+
r(m), S("patient_search_when_selected", { when: m }), g(m);
|
|
454
454
|
break;
|
|
455
455
|
}
|
|
456
456
|
case "End": {
|
|
457
|
-
|
|
458
|
-
const m =
|
|
459
|
-
r(m), S("patient_search_when_selected", { when: m }),
|
|
457
|
+
a.preventDefault();
|
|
458
|
+
const m = z[c - 1];
|
|
459
|
+
r(m), S("patient_search_when_selected", { when: m }), g(m);
|
|
460
460
|
break;
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
},
|
|
464
|
-
[
|
|
464
|
+
[g, d, r]
|
|
465
465
|
), n = e ?? "anytime", u = {
|
|
466
466
|
today: "patientSearch.when.today",
|
|
467
467
|
tomorrow: "patientSearch.when.tomorrow",
|
|
@@ -472,38 +472,38 @@ function Ye({ value: e, onChange: r }) {
|
|
|
472
472
|
"div",
|
|
473
473
|
{
|
|
474
474
|
role: "radiogroup",
|
|
475
|
-
"aria-label":
|
|
476
|
-
id:
|
|
475
|
+
"aria-label": s("patientSearch.when.label"),
|
|
476
|
+
id: h,
|
|
477
477
|
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
478
|
-
children:
|
|
479
|
-
const f = e ===
|
|
478
|
+
children: z.map((a) => {
|
|
479
|
+
const f = e === a, b = n === a, c = s(u[a]);
|
|
480
480
|
return /* @__PURE__ */ t(
|
|
481
481
|
"button",
|
|
482
482
|
{
|
|
483
483
|
type: "button",
|
|
484
484
|
role: "radio",
|
|
485
485
|
"aria-checked": f,
|
|
486
|
-
"aria-label":
|
|
486
|
+
"aria-label": c,
|
|
487
487
|
tabIndex: b ? 0 : -1,
|
|
488
|
-
ref: (
|
|
489
|
-
|
|
488
|
+
ref: (i) => {
|
|
489
|
+
i ? p.current.set(a, i) : p.current.delete(a);
|
|
490
490
|
},
|
|
491
491
|
onClick: () => {
|
|
492
|
-
r(
|
|
492
|
+
r(a), S("patient_search_when_selected", { when: a });
|
|
493
493
|
},
|
|
494
|
-
onKeyDown: (
|
|
495
|
-
className:
|
|
494
|
+
onKeyDown: (i) => l(i, a),
|
|
495
|
+
className: Ge({
|
|
496
496
|
state: f ? "selected" : "idle"
|
|
497
497
|
}),
|
|
498
|
-
children:
|
|
498
|
+
children: c
|
|
499
499
|
},
|
|
500
|
-
|
|
500
|
+
a
|
|
501
501
|
);
|
|
502
502
|
})
|
|
503
503
|
}
|
|
504
504
|
);
|
|
505
505
|
}
|
|
506
|
-
const xe =
|
|
506
|
+
const xe = ee(
|
|
507
507
|
[
|
|
508
508
|
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
509
509
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -533,31 +533,31 @@ const xe = $(
|
|
|
533
533
|
defaultVariants: { state: "idle" }
|
|
534
534
|
}
|
|
535
535
|
);
|
|
536
|
-
function
|
|
537
|
-
const { t:
|
|
538
|
-
() => Object.values(
|
|
539
|
-
[
|
|
540
|
-
),
|
|
541
|
-
const
|
|
542
|
-
u.length === 0 ? delete
|
|
543
|
-
},
|
|
544
|
-
var
|
|
545
|
-
const u = (((
|
|
546
|
-
|
|
547
|
-
},
|
|
548
|
-
const
|
|
536
|
+
function Ye({ facets: e, value: r, onChange: s }) {
|
|
537
|
+
const { t: o } = D("ui"), h = ue(() => r ?? {}, [r]), d = ue(
|
|
538
|
+
() => Object.values(h).some((n) => n && n.length > 0),
|
|
539
|
+
[h]
|
|
540
|
+
), p = (n, u) => {
|
|
541
|
+
const a = { ...h };
|
|
542
|
+
u.length === 0 ? delete a[n] : a[n] = u, s(a), S("patient_search_facet_changed", { key: n, values: u });
|
|
543
|
+
}, g = (n) => {
|
|
544
|
+
var a;
|
|
545
|
+
const u = (((a = h[n]) == null ? void 0 : a.length) ?? 0) > 0;
|
|
546
|
+
p(n, u ? [] : ["true"]);
|
|
547
|
+
}, l = (n, u) => {
|
|
548
|
+
const a = h[n.key] ?? [], f = a.includes(u);
|
|
549
549
|
let b;
|
|
550
|
-
n.multi ? b = f ?
|
|
550
|
+
n.multi ? b = f ? a.filter((c) => c !== u) : [...a, u] : b = f ? [] : [u], p(n.key, b);
|
|
551
551
|
};
|
|
552
552
|
return /* @__PURE__ */ x(
|
|
553
553
|
"div",
|
|
554
554
|
{
|
|
555
555
|
role: "group",
|
|
556
|
-
"aria-label":
|
|
556
|
+
"aria-label": o("patientSearch.facets.label"),
|
|
557
557
|
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
558
558
|
children: [
|
|
559
559
|
e.map((n) => {
|
|
560
|
-
const u = n.options.length === 0,
|
|
560
|
+
const u = n.options.length === 0, a = h[n.key] ?? [], f = a.length > 0;
|
|
561
561
|
if (u)
|
|
562
562
|
return /* @__PURE__ */ t(
|
|
563
563
|
"button",
|
|
@@ -565,7 +565,7 @@ function Je({ facets: e, value: r, onChange: a }) {
|
|
|
565
565
|
type: "button",
|
|
566
566
|
"aria-pressed": f,
|
|
567
567
|
"aria-label": n.label,
|
|
568
|
-
onClick: () =>
|
|
568
|
+
onClick: () => g(n.key),
|
|
569
569
|
className: xe({
|
|
570
570
|
state: f ? "active" : "idle"
|
|
571
571
|
}),
|
|
@@ -573,9 +573,9 @@ function Je({ facets: e, value: r, onChange: a }) {
|
|
|
573
573
|
},
|
|
574
574
|
n.key
|
|
575
575
|
);
|
|
576
|
-
const b = f ? ` (${
|
|
577
|
-
return /* @__PURE__ */ x(
|
|
578
|
-
/* @__PURE__ */ t(
|
|
576
|
+
const b = f ? ` (${a.length})` : "";
|
|
577
|
+
return /* @__PURE__ */ x(Y.Root, { children: [
|
|
578
|
+
/* @__PURE__ */ t(Y.Trigger, { asChild: !0, children: /* @__PURE__ */ x(
|
|
579
579
|
"button",
|
|
580
580
|
{
|
|
581
581
|
type: "button",
|
|
@@ -598,25 +598,25 @@ function Je({ facets: e, value: r, onChange: a }) {
|
|
|
598
598
|
]
|
|
599
599
|
}
|
|
600
600
|
) }),
|
|
601
|
-
/* @__PURE__ */ t(
|
|
602
|
-
|
|
601
|
+
/* @__PURE__ */ t(Y.Content, { sideOffset: 8, align: "start", children: n.options.map((c) => /* @__PURE__ */ t(
|
|
602
|
+
Y.CheckboxItem,
|
|
603
603
|
{
|
|
604
|
-
checked:
|
|
605
|
-
onSelect: (
|
|
606
|
-
n.multi &&
|
|
604
|
+
checked: a.includes(c.value),
|
|
605
|
+
onSelect: (i) => {
|
|
606
|
+
n.multi && i.preventDefault(), l(n, c.value);
|
|
607
607
|
},
|
|
608
|
-
children:
|
|
608
|
+
children: c.label
|
|
609
609
|
},
|
|
610
|
-
|
|
610
|
+
c.value
|
|
611
611
|
)) })
|
|
612
612
|
] }, n.key);
|
|
613
613
|
}),
|
|
614
|
-
|
|
614
|
+
d ? /* @__PURE__ */ x(
|
|
615
615
|
"button",
|
|
616
616
|
{
|
|
617
617
|
type: "button",
|
|
618
618
|
onClick: () => {
|
|
619
|
-
|
|
619
|
+
s({}), S("patient_search_facet_changed", { key: "*", values: [] });
|
|
620
620
|
},
|
|
621
621
|
className: [
|
|
622
622
|
"ds:ms-[var(--spacing-xs)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
@@ -628,8 +628,8 @@ function Je({ facets: e, value: r, onChange: a }) {
|
|
|
628
628
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
629
629
|
].join(" "),
|
|
630
630
|
children: [
|
|
631
|
-
/* @__PURE__ */ t(
|
|
632
|
-
|
|
631
|
+
/* @__PURE__ */ t(Ne, { "aria-hidden": "true", className: "ds:size-3.5" }),
|
|
632
|
+
o("patientSearch.facets.clear")
|
|
633
633
|
]
|
|
634
634
|
}
|
|
635
635
|
) : null
|
|
@@ -637,58 +637,26 @@ function Je({ facets: e, value: r, onChange: a }) {
|
|
|
637
637
|
}
|
|
638
638
|
);
|
|
639
639
|
}
|
|
640
|
-
const
|
|
640
|
+
const Je = ee(
|
|
641
641
|
[
|
|
642
|
-
"ds:
|
|
643
|
-
"ds:rounded-[var(--radius-lg)]
|
|
642
|
+
"ds:flex ds:h-full ds:flex-col ds:gap-[var(--spacing-xs)] ds:text-start",
|
|
643
|
+
"ds:rounded-[var(--radius-lg)]",
|
|
644
644
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
645
645
|
"ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]",
|
|
646
646
|
"ds:bg-[var(--card)] ds:text-[var(--card-foreground)]",
|
|
647
647
|
"ds:border ds:border-[color:var(--card-border)]",
|
|
648
648
|
"ds:shadow-[var(--shadow-sm)]",
|
|
649
|
-
"ds:transition-[
|
|
650
|
-
"ds:
|
|
651
|
-
"ds:hover:shadow-[var(--shadow-md)]",
|
|
649
|
+
"ds:transition-[background-color,box-shadow] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
650
|
+
"ds:hover:bg-[var(--muted)] ds:hover:shadow-[var(--shadow-md)]",
|
|
652
651
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
653
652
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
654
653
|
"ds:no-underline"
|
|
655
654
|
].join(" ")
|
|
656
|
-
), et = $(
|
|
657
|
-
// `inset-x-0` compiles to logical `inset-inline`; the `inset-inline-0`
|
|
658
|
-
// spelling is not a Tailwind utility and compiled to nothing.
|
|
659
|
-
"ds:absolute ds:inset-x-0 ds:top-0 ds:h-[3px] ds:pointer-events-none",
|
|
660
|
-
{
|
|
661
|
-
variants: {
|
|
662
|
-
accent: {
|
|
663
|
-
violet: "ds:bg-[var(--color-violet-500)]",
|
|
664
|
-
purple: "ds:bg-[var(--color-purple-500)]",
|
|
665
|
-
magenta: "ds:bg-[var(--color-magenta-500)]",
|
|
666
|
-
blue: "ds:bg-[var(--color-blue-500)]"
|
|
667
|
-
}
|
|
668
|
-
},
|
|
669
|
-
defaultVariants: { accent: "violet" }
|
|
670
|
-
}
|
|
671
|
-
), tt = $(
|
|
672
|
-
"ds:inline-flex ds:size-9 ds:items-center ds:justify-center ds:rounded-[var(--radius-md)]",
|
|
673
|
-
{
|
|
674
|
-
variants: {
|
|
675
|
-
accent: {
|
|
676
|
-
violet: "ds:bg-[color-mix(in_srgb,var(--color-violet-500)_12%,var(--background))] ds:text-[var(--color-violet-700)]",
|
|
677
|
-
purple: "ds:bg-[color-mix(in_srgb,var(--color-purple-500)_12%,var(--background))] ds:text-[var(--color-purple-700)]",
|
|
678
|
-
magenta: "ds:bg-[color-mix(in_srgb,var(--color-magenta-500)_12%,var(--background))] ds:text-[var(--color-magenta-700)]",
|
|
679
|
-
blue: "ds:bg-[color-mix(in_srgb,var(--color-blue-500)_12%,var(--background))] ds:text-[var(--color-blue-700)]"
|
|
680
|
-
}
|
|
681
|
-
},
|
|
682
|
-
defaultVariants: { accent: "violet" }
|
|
683
|
-
}
|
|
684
655
|
);
|
|
685
|
-
function
|
|
686
|
-
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
const { t: a } = B("ui"), i = `h${r}`, p = Se();
|
|
690
|
-
return e.length === 0 ? /* @__PURE__ */ t("p", { className: "type-body-sm ds:text-[color:var(--muted-foreground)] ds:m-0", children: a("patientSearch.discovery.empty") }) : /* @__PURE__ */ x("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
691
|
-
/* @__PURE__ */ t(i, { className: "type-title-card ds:text-[var(--foreground)] ds:m-0", children: a("patientSearch.discovery.heading") }),
|
|
656
|
+
function Ze({ cards: e, headingLevel: r }) {
|
|
657
|
+
const { t: s } = D("ui"), o = `h${r}`, h = _e();
|
|
658
|
+
return e.length === 0 ? /* @__PURE__ */ t("p", { className: "type-body-sm ds:text-[color:var(--muted-foreground)] ds:m-0", children: s("patientSearch.discovery.empty") }) : /* @__PURE__ */ x("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
659
|
+
/* @__PURE__ */ t(o, { className: "type-title-card ds:text-[var(--foreground)] ds:m-0", children: s("patientSearch.discovery.heading") }),
|
|
692
660
|
/* @__PURE__ */ t(
|
|
693
661
|
"ul",
|
|
694
662
|
{
|
|
@@ -697,66 +665,55 @@ function at({ cards: e, headingLevel: r }) {
|
|
|
697
665
|
"ds:md:grid-cols-2 ds:lg:grid-cols-3",
|
|
698
666
|
"ds:m-0 ds:p-0 ds:list-none"
|
|
699
667
|
].join(" "),
|
|
700
|
-
children: e.map((
|
|
701
|
-
const
|
|
668
|
+
children: e.map((d) => {
|
|
669
|
+
const p = d.description ? `${h}-${d.id}-description` : void 0;
|
|
702
670
|
return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ x(
|
|
703
671
|
"a",
|
|
704
672
|
{
|
|
705
|
-
href:
|
|
673
|
+
href: d.href,
|
|
706
674
|
"data-component": "patient-search-card",
|
|
707
|
-
"data-card-id":
|
|
708
|
-
"aria-label":
|
|
709
|
-
"aria-describedby":
|
|
675
|
+
"data-card-id": d.id,
|
|
676
|
+
"aria-label": d.label,
|
|
677
|
+
"aria-describedby": p,
|
|
710
678
|
onClick: () => S("patient_search_discovery_card_clicked", {
|
|
711
|
-
cardId:
|
|
679
|
+
cardId: d.id
|
|
712
680
|
}),
|
|
713
|
-
className:
|
|
681
|
+
className: Je(),
|
|
714
682
|
children: [
|
|
715
|
-
/* @__PURE__ */
|
|
716
|
-
"span",
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
683
|
+
/* @__PURE__ */ x("span", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]", children: [
|
|
684
|
+
/* @__PURE__ */ t("span", { className: "type-label ds:min-w-0 ds:flex-1 ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]", children: d.label }),
|
|
685
|
+
d.badge ? (
|
|
686
|
+
// The badge sits inside a softly-tinted bubble
|
|
687
|
+
// (15% accent + 85% background). The text colour must
|
|
688
|
+
// contrast with that mix, so use `--foreground`, which
|
|
689
|
+
// does in every theme; `--accent-foreground` does not.
|
|
690
|
+
/* @__PURE__ */ t("span", { className: "type-meta ds:inline-flex ds:shrink-0 ds:items-center ds:rounded-[var(--radius-full)] ds:border ds:border-[color:var(--foreground)] ds:bg-[color-mix(in_srgb,var(--accent)_15%,var(--background))] ds:text-[color:var(--foreground)] ds:font-[var(--font-weight-semibold)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]", children: d.badge })
|
|
691
|
+
) : null,
|
|
723
692
|
/* @__PURE__ */ t(
|
|
724
|
-
|
|
693
|
+
Ve,
|
|
725
694
|
{
|
|
726
|
-
"
|
|
727
|
-
|
|
728
|
-
children: c.icon ?? /* @__PURE__ */ t(ze, { className: "ds:size-4", "aria-hidden": "true" })
|
|
695
|
+
className: "ds:size-5 ds:shrink-0 ds:text-[color:var(--muted-foreground)] ds:rtl:-scale-x-100",
|
|
696
|
+
"aria-hidden": "true"
|
|
729
697
|
}
|
|
730
|
-
)
|
|
731
|
-
c.badge ? (
|
|
732
|
-
// The badge sits inside a softly-tinted accent bubble
|
|
733
|
-
// (15% accent + 85% background). The text colour must
|
|
734
|
-
// contrast with that mix, not with the accent's canonical
|
|
735
|
-
// foreground — `--accent-foreground` is calibrated against
|
|
736
|
-
// the 100% accent surface and fails AA on the 15% tint.
|
|
737
|
-
// Use `--foreground` which contrasts with the
|
|
738
|
-
// mostly-background mix in both light and dark themes.
|
|
739
|
-
/* @__PURE__ */ t("span", { className: "type-meta ds:ms-auto ds:inline-flex ds:items-center ds:rounded-[var(--radius-full)] ds:border ds:border-[color:var(--foreground)] ds:bg-[color-mix(in_srgb,var(--accent)_15%,var(--background))] ds:text-[color:var(--foreground)] ds:font-[var(--font-weight-semibold)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]", children: c.badge })
|
|
740
|
-
) : null
|
|
698
|
+
)
|
|
741
699
|
] }),
|
|
742
|
-
/* @__PURE__ */ t(
|
|
743
|
-
c.description ? /* @__PURE__ */ t(
|
|
700
|
+
d.description ? /* @__PURE__ */ t(
|
|
744
701
|
"span",
|
|
745
702
|
{
|
|
746
|
-
id:
|
|
703
|
+
id: p,
|
|
747
704
|
className: "type-body-sm ds:text-[color:var(--muted-foreground)]",
|
|
748
|
-
children:
|
|
705
|
+
children: d.description
|
|
749
706
|
}
|
|
750
707
|
) : null
|
|
751
708
|
]
|
|
752
709
|
}
|
|
753
|
-
) },
|
|
710
|
+
) }, d.id);
|
|
754
711
|
})
|
|
755
712
|
}
|
|
756
713
|
)
|
|
757
714
|
] });
|
|
758
715
|
}
|
|
759
|
-
function
|
|
716
|
+
function et(e) {
|
|
760
717
|
if (e.object || e.place || e.geo || e.when && e.when !== "anytime") return !0;
|
|
761
718
|
if (e.facets) {
|
|
762
719
|
for (const r of Object.values(e.facets))
|
|
@@ -767,21 +724,21 @@ function st(e) {
|
|
|
767
724
|
function ne({
|
|
768
725
|
value: e,
|
|
769
726
|
variant: r,
|
|
770
|
-
submitting:
|
|
771
|
-
submitLabel:
|
|
772
|
-
allowEmptySubmit:
|
|
773
|
-
onSubmit:
|
|
727
|
+
submitting: s,
|
|
728
|
+
submitLabel: o,
|
|
729
|
+
allowEmptySubmit: h,
|
|
730
|
+
onSubmit: d
|
|
774
731
|
}) {
|
|
775
|
-
const { t:
|
|
732
|
+
const { t: p } = D("ui"), g = !s && !h && !et(e), l = o ?? p("patientSearch.submit.cta");
|
|
776
733
|
return /* @__PURE__ */ t(
|
|
777
|
-
|
|
734
|
+
Fe,
|
|
778
735
|
{
|
|
779
736
|
type: "button",
|
|
780
737
|
intent: "primary",
|
|
781
738
|
size: "lg",
|
|
782
|
-
startIcon: /* @__PURE__ */ t(
|
|
783
|
-
loading:
|
|
784
|
-
disabled:
|
|
739
|
+
startIcon: /* @__PURE__ */ t(ke, { "aria-hidden": "true" }),
|
|
740
|
+
loading: s,
|
|
741
|
+
disabled: g,
|
|
785
742
|
onClick: () => {
|
|
786
743
|
S("patient_search_submitted", {
|
|
787
744
|
variant: r,
|
|
@@ -790,33 +747,33 @@ function ne({
|
|
|
790
747
|
hasGeo: !!e.geo,
|
|
791
748
|
when: e.when,
|
|
792
749
|
facetKeys: e.facets ? Object.keys(e.facets) : []
|
|
793
|
-
}),
|
|
750
|
+
}), d(e);
|
|
794
751
|
},
|
|
795
|
-
children:
|
|
752
|
+
children: l
|
|
796
753
|
}
|
|
797
754
|
);
|
|
798
755
|
}
|
|
799
|
-
function
|
|
756
|
+
function tt(e) {
|
|
800
757
|
const {
|
|
801
758
|
variant: r,
|
|
802
|
-
value:
|
|
803
|
-
onChange:
|
|
804
|
-
onSubmit:
|
|
805
|
-
loadObjects:
|
|
806
|
-
loadPlaces:
|
|
807
|
-
onObjectSelect:
|
|
808
|
-
onPlaceSelect:
|
|
759
|
+
value: s,
|
|
760
|
+
onChange: o,
|
|
761
|
+
onSubmit: h,
|
|
762
|
+
loadObjects: d,
|
|
763
|
+
loadPlaces: p,
|
|
764
|
+
onObjectSelect: g,
|
|
765
|
+
onPlaceSelect: l,
|
|
809
766
|
allowTypedPlace: n,
|
|
810
767
|
submitting: u,
|
|
811
|
-
submitLabel:
|
|
768
|
+
submitLabel: a,
|
|
812
769
|
allowEmptySubmit: f,
|
|
813
770
|
whoRef: b,
|
|
814
|
-
whereRef:
|
|
815
|
-
whoQuery:
|
|
771
|
+
whereRef: c,
|
|
772
|
+
whoQuery: i,
|
|
816
773
|
onWhoQueryChange: y,
|
|
817
774
|
whereQuery: m,
|
|
818
775
|
onWhereQueryChange: j,
|
|
819
|
-
defaultRadiusKm:
|
|
776
|
+
defaultRadiusKm: C,
|
|
820
777
|
reverseGeocode: E,
|
|
821
778
|
geoHint: k,
|
|
822
779
|
cardLabel: W
|
|
@@ -826,27 +783,27 @@ function nt(e) {
|
|
|
826
783
|
/* @__PURE__ */ t("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ t(
|
|
827
784
|
re,
|
|
828
785
|
{
|
|
829
|
-
value:
|
|
830
|
-
onChange:
|
|
831
|
-
loadObjects:
|
|
832
|
-
onObjectSelect:
|
|
786
|
+
value: s,
|
|
787
|
+
onChange: o,
|
|
788
|
+
loadObjects: d,
|
|
789
|
+
onObjectSelect: g,
|
|
833
790
|
inputRef: b,
|
|
834
|
-
query:
|
|
791
|
+
query: i,
|
|
835
792
|
onQueryChange: y
|
|
836
793
|
}
|
|
837
794
|
) }),
|
|
838
795
|
/* @__PURE__ */ t("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ t(
|
|
839
|
-
|
|
796
|
+
se,
|
|
840
797
|
{
|
|
841
|
-
value:
|
|
842
|
-
onChange:
|
|
843
|
-
loadPlaces:
|
|
844
|
-
onPlaceSelect:
|
|
798
|
+
value: s,
|
|
799
|
+
onChange: o,
|
|
800
|
+
loadPlaces: p,
|
|
801
|
+
onPlaceSelect: l,
|
|
845
802
|
allowTypedPlace: n,
|
|
846
|
-
defaultRadiusKm:
|
|
803
|
+
defaultRadiusKm: C,
|
|
847
804
|
reverseGeocode: E,
|
|
848
805
|
geoHint: k,
|
|
849
|
-
inputRef:
|
|
806
|
+
inputRef: c,
|
|
850
807
|
query: m,
|
|
851
808
|
onQueryChange: j
|
|
852
809
|
}
|
|
@@ -854,46 +811,46 @@ function nt(e) {
|
|
|
854
811
|
/* @__PURE__ */ t(
|
|
855
812
|
ne,
|
|
856
813
|
{
|
|
857
|
-
value:
|
|
814
|
+
value: s,
|
|
858
815
|
variant: r,
|
|
859
816
|
submitting: u,
|
|
860
|
-
submitLabel:
|
|
817
|
+
submitLabel: a,
|
|
861
818
|
allowEmptySubmit: f,
|
|
862
|
-
onSubmit:
|
|
819
|
+
onSubmit: h
|
|
863
820
|
}
|
|
864
821
|
)
|
|
865
822
|
] }),
|
|
866
823
|
/* @__PURE__ */ t(
|
|
867
|
-
|
|
824
|
+
ae,
|
|
868
825
|
{
|
|
869
|
-
value:
|
|
870
|
-
onChange:
|
|
871
|
-
defaultRadiusKm:
|
|
826
|
+
value: s,
|
|
827
|
+
onChange: o,
|
|
828
|
+
defaultRadiusKm: C
|
|
872
829
|
}
|
|
873
830
|
)
|
|
874
831
|
] }) });
|
|
875
832
|
}
|
|
876
|
-
function
|
|
833
|
+
function rt(e) {
|
|
877
834
|
const {
|
|
878
835
|
variant: r,
|
|
879
|
-
value:
|
|
880
|
-
onChange:
|
|
881
|
-
onSubmit:
|
|
882
|
-
loadObjects:
|
|
883
|
-
loadPlaces:
|
|
884
|
-
onObjectSelect:
|
|
885
|
-
onPlaceSelect:
|
|
836
|
+
value: s,
|
|
837
|
+
onChange: o,
|
|
838
|
+
onSubmit: h,
|
|
839
|
+
loadObjects: d,
|
|
840
|
+
loadPlaces: p,
|
|
841
|
+
onObjectSelect: g,
|
|
842
|
+
onPlaceSelect: l,
|
|
886
843
|
allowTypedPlace: n,
|
|
887
844
|
submitting: u,
|
|
888
|
-
submitLabel:
|
|
845
|
+
submitLabel: a,
|
|
889
846
|
allowEmptySubmit: f,
|
|
890
847
|
whoRef: b,
|
|
891
|
-
whereRef:
|
|
892
|
-
whoQuery:
|
|
848
|
+
whereRef: c,
|
|
849
|
+
whoQuery: i,
|
|
893
850
|
onWhoQueryChange: y,
|
|
894
851
|
whereQuery: m,
|
|
895
852
|
onWhereQueryChange: j,
|
|
896
|
-
defaultRadiusKm:
|
|
853
|
+
defaultRadiusKm: C,
|
|
897
854
|
reverseGeocode: E,
|
|
898
855
|
geoHint: k,
|
|
899
856
|
cardLabel: W
|
|
@@ -903,27 +860,27 @@ function ot(e) {
|
|
|
903
860
|
/* @__PURE__ */ t("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ t(
|
|
904
861
|
re,
|
|
905
862
|
{
|
|
906
|
-
value:
|
|
907
|
-
onChange:
|
|
908
|
-
loadObjects:
|
|
909
|
-
onObjectSelect:
|
|
863
|
+
value: s,
|
|
864
|
+
onChange: o,
|
|
865
|
+
loadObjects: d,
|
|
866
|
+
onObjectSelect: g,
|
|
910
867
|
inputRef: b,
|
|
911
|
-
query:
|
|
868
|
+
query: i,
|
|
912
869
|
onQueryChange: y
|
|
913
870
|
}
|
|
914
871
|
) }),
|
|
915
872
|
/* @__PURE__ */ t("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ t(
|
|
916
|
-
|
|
873
|
+
se,
|
|
917
874
|
{
|
|
918
|
-
value:
|
|
919
|
-
onChange:
|
|
920
|
-
loadPlaces:
|
|
921
|
-
onPlaceSelect:
|
|
875
|
+
value: s,
|
|
876
|
+
onChange: o,
|
|
877
|
+
loadPlaces: p,
|
|
878
|
+
onPlaceSelect: l,
|
|
922
879
|
allowTypedPlace: n,
|
|
923
|
-
defaultRadiusKm:
|
|
880
|
+
defaultRadiusKm: C,
|
|
924
881
|
reverseGeocode: E,
|
|
925
882
|
geoHint: k,
|
|
926
|
-
inputRef:
|
|
883
|
+
inputRef: c,
|
|
927
884
|
query: m,
|
|
928
885
|
onQueryChange: j
|
|
929
886
|
}
|
|
@@ -931,53 +888,53 @@ function ot(e) {
|
|
|
931
888
|
/* @__PURE__ */ t(
|
|
932
889
|
ne,
|
|
933
890
|
{
|
|
934
|
-
value:
|
|
891
|
+
value: s,
|
|
935
892
|
variant: r,
|
|
936
893
|
submitting: u,
|
|
937
|
-
submitLabel:
|
|
894
|
+
submitLabel: a,
|
|
938
895
|
allowEmptySubmit: f,
|
|
939
|
-
onSubmit:
|
|
896
|
+
onSubmit: h
|
|
940
897
|
}
|
|
941
898
|
)
|
|
942
899
|
] }),
|
|
943
900
|
/* @__PURE__ */ t(
|
|
944
|
-
|
|
901
|
+
ae,
|
|
945
902
|
{
|
|
946
|
-
value:
|
|
947
|
-
onChange:
|
|
948
|
-
defaultRadiusKm:
|
|
903
|
+
value: s,
|
|
904
|
+
onChange: o,
|
|
905
|
+
defaultRadiusKm: C
|
|
949
906
|
}
|
|
950
907
|
),
|
|
951
908
|
/* @__PURE__ */ t(
|
|
952
|
-
|
|
909
|
+
Xe,
|
|
953
910
|
{
|
|
954
|
-
value:
|
|
955
|
-
onChange: (P) =>
|
|
911
|
+
value: s.when,
|
|
912
|
+
onChange: (P) => o({ ...s, when: P })
|
|
956
913
|
}
|
|
957
914
|
)
|
|
958
915
|
] }) });
|
|
959
916
|
}
|
|
960
|
-
function
|
|
917
|
+
function st(e) {
|
|
961
918
|
const {
|
|
962
919
|
variant: r,
|
|
963
|
-
value:
|
|
964
|
-
onChange:
|
|
965
|
-
onSubmit:
|
|
966
|
-
loadObjects:
|
|
967
|
-
loadPlaces:
|
|
968
|
-
onObjectSelect:
|
|
969
|
-
onPlaceSelect:
|
|
920
|
+
value: s,
|
|
921
|
+
onChange: o,
|
|
922
|
+
onSubmit: h,
|
|
923
|
+
loadObjects: d,
|
|
924
|
+
loadPlaces: p,
|
|
925
|
+
onObjectSelect: g,
|
|
926
|
+
onPlaceSelect: l,
|
|
970
927
|
allowTypedPlace: n,
|
|
971
928
|
facets: u,
|
|
972
|
-
submitting:
|
|
929
|
+
submitting: a,
|
|
973
930
|
submitLabel: f,
|
|
974
931
|
allowEmptySubmit: b,
|
|
975
|
-
whoRef:
|
|
976
|
-
whereRef:
|
|
932
|
+
whoRef: c,
|
|
933
|
+
whereRef: i,
|
|
977
934
|
whoQuery: y,
|
|
978
935
|
onWhoQueryChange: m,
|
|
979
936
|
whereQuery: j,
|
|
980
|
-
onWhereQueryChange:
|
|
937
|
+
onWhereQueryChange: C,
|
|
981
938
|
defaultRadiusKm: E,
|
|
982
939
|
reverseGeocode: k,
|
|
983
940
|
geoHint: W,
|
|
@@ -988,181 +945,181 @@ function it(e) {
|
|
|
988
945
|
/* @__PURE__ */ t("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ t(
|
|
989
946
|
re,
|
|
990
947
|
{
|
|
991
|
-
value:
|
|
992
|
-
onChange:
|
|
993
|
-
loadObjects:
|
|
994
|
-
onObjectSelect:
|
|
995
|
-
inputRef:
|
|
948
|
+
value: s,
|
|
949
|
+
onChange: o,
|
|
950
|
+
loadObjects: d,
|
|
951
|
+
onObjectSelect: g,
|
|
952
|
+
inputRef: c,
|
|
996
953
|
query: y,
|
|
997
954
|
onQueryChange: m
|
|
998
955
|
}
|
|
999
956
|
) }),
|
|
1000
957
|
/* @__PURE__ */ t("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ t(
|
|
1001
|
-
|
|
958
|
+
se,
|
|
1002
959
|
{
|
|
1003
|
-
value:
|
|
1004
|
-
onChange:
|
|
1005
|
-
loadPlaces:
|
|
1006
|
-
onPlaceSelect:
|
|
960
|
+
value: s,
|
|
961
|
+
onChange: o,
|
|
962
|
+
loadPlaces: p,
|
|
963
|
+
onPlaceSelect: l,
|
|
1007
964
|
allowTypedPlace: n,
|
|
1008
965
|
defaultRadiusKm: E,
|
|
1009
966
|
reverseGeocode: k,
|
|
1010
967
|
geoHint: W,
|
|
1011
|
-
inputRef:
|
|
968
|
+
inputRef: i,
|
|
1012
969
|
query: j,
|
|
1013
|
-
onQueryChange:
|
|
970
|
+
onQueryChange: C
|
|
1014
971
|
}
|
|
1015
972
|
) }),
|
|
1016
973
|
/* @__PURE__ */ t(
|
|
1017
974
|
ne,
|
|
1018
975
|
{
|
|
1019
|
-
value:
|
|
976
|
+
value: s,
|
|
1020
977
|
variant: r,
|
|
1021
|
-
submitting:
|
|
978
|
+
submitting: a,
|
|
1022
979
|
submitLabel: f,
|
|
1023
980
|
allowEmptySubmit: b,
|
|
1024
|
-
onSubmit:
|
|
981
|
+
onSubmit: h
|
|
1025
982
|
}
|
|
1026
983
|
)
|
|
1027
984
|
] }),
|
|
1028
985
|
/* @__PURE__ */ t(
|
|
1029
|
-
|
|
986
|
+
ae,
|
|
1030
987
|
{
|
|
1031
|
-
value:
|
|
1032
|
-
onChange:
|
|
988
|
+
value: s,
|
|
989
|
+
onChange: o,
|
|
1033
990
|
defaultRadiusKm: E
|
|
1034
991
|
}
|
|
1035
992
|
),
|
|
1036
993
|
u && u.length > 0 ? /* @__PURE__ */ t(
|
|
1037
|
-
|
|
994
|
+
Ye,
|
|
1038
995
|
{
|
|
1039
996
|
facets: u,
|
|
1040
|
-
value:
|
|
1041
|
-
onChange: (
|
|
997
|
+
value: s.facets,
|
|
998
|
+
onChange: (O) => o({ ...s, facets: O })
|
|
1042
999
|
}
|
|
1043
1000
|
) : null
|
|
1044
1001
|
] }) });
|
|
1045
1002
|
}
|
|
1046
|
-
function
|
|
1003
|
+
function at(e) {
|
|
1047
1004
|
const {
|
|
1048
1005
|
variant: r,
|
|
1049
|
-
value:
|
|
1050
|
-
onChange:
|
|
1051
|
-
onSubmit:
|
|
1052
|
-
loadObjects:
|
|
1053
|
-
loadPlaces:
|
|
1054
|
-
onObjectSelect:
|
|
1055
|
-
onPlaceSelect:
|
|
1006
|
+
value: s,
|
|
1007
|
+
onChange: o,
|
|
1008
|
+
onSubmit: h,
|
|
1009
|
+
loadObjects: d,
|
|
1010
|
+
loadPlaces: p,
|
|
1011
|
+
onObjectSelect: g,
|
|
1012
|
+
onPlaceSelect: l,
|
|
1056
1013
|
allowTypedPlace: n,
|
|
1057
1014
|
discoveryCards: u,
|
|
1058
|
-
discoveryHeadingLevel:
|
|
1015
|
+
discoveryHeadingLevel: a,
|
|
1059
1016
|
submitting: f,
|
|
1060
1017
|
submitLabel: b,
|
|
1061
|
-
allowEmptySubmit:
|
|
1062
|
-
whoRef:
|
|
1018
|
+
allowEmptySubmit: c,
|
|
1019
|
+
whoRef: i,
|
|
1063
1020
|
whereRef: y,
|
|
1064
1021
|
whoQuery: m,
|
|
1065
1022
|
onWhoQueryChange: j,
|
|
1066
|
-
whereQuery:
|
|
1023
|
+
whereQuery: C,
|
|
1067
1024
|
onWhereQueryChange: E,
|
|
1068
1025
|
defaultRadiusKm: k,
|
|
1069
1026
|
reverseGeocode: W,
|
|
1070
1027
|
geoHint: P,
|
|
1071
|
-
cardLabel:
|
|
1028
|
+
cardLabel: O
|
|
1072
1029
|
} = e;
|
|
1073
1030
|
return /* @__PURE__ */ x("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", children: [
|
|
1074
|
-
/* @__PURE__ */ x(te, { variant: "elevated", "aria-label":
|
|
1031
|
+
/* @__PURE__ */ x(te, { variant: "elevated", "aria-label": O, children: [
|
|
1075
1032
|
/* @__PURE__ */ x("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)] ds:md:flex-row ds:md:items-stretch", children: [
|
|
1076
1033
|
/* @__PURE__ */ t("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ t(
|
|
1077
1034
|
re,
|
|
1078
1035
|
{
|
|
1079
|
-
value:
|
|
1080
|
-
onChange:
|
|
1081
|
-
loadObjects:
|
|
1082
|
-
onObjectSelect:
|
|
1083
|
-
inputRef:
|
|
1036
|
+
value: s,
|
|
1037
|
+
onChange: o,
|
|
1038
|
+
loadObjects: d,
|
|
1039
|
+
onObjectSelect: g,
|
|
1040
|
+
inputRef: i,
|
|
1084
1041
|
query: m,
|
|
1085
1042
|
onQueryChange: j
|
|
1086
1043
|
}
|
|
1087
1044
|
) }),
|
|
1088
1045
|
/* @__PURE__ */ t("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ t(
|
|
1089
|
-
|
|
1046
|
+
se,
|
|
1090
1047
|
{
|
|
1091
|
-
value:
|
|
1092
|
-
onChange:
|
|
1093
|
-
loadPlaces:
|
|
1094
|
-
onPlaceSelect:
|
|
1048
|
+
value: s,
|
|
1049
|
+
onChange: o,
|
|
1050
|
+
loadPlaces: p,
|
|
1051
|
+
onPlaceSelect: l,
|
|
1095
1052
|
allowTypedPlace: n,
|
|
1096
1053
|
defaultRadiusKm: k,
|
|
1097
1054
|
reverseGeocode: W,
|
|
1098
1055
|
geoHint: P,
|
|
1099
1056
|
inputRef: y,
|
|
1100
|
-
query:
|
|
1057
|
+
query: C,
|
|
1101
1058
|
onQueryChange: E
|
|
1102
1059
|
}
|
|
1103
1060
|
) }),
|
|
1104
1061
|
/* @__PURE__ */ t(
|
|
1105
1062
|
ne,
|
|
1106
1063
|
{
|
|
1107
|
-
value:
|
|
1064
|
+
value: s,
|
|
1108
1065
|
variant: r,
|
|
1109
1066
|
submitting: f,
|
|
1110
1067
|
submitLabel: b,
|
|
1111
|
-
allowEmptySubmit:
|
|
1112
|
-
onSubmit:
|
|
1068
|
+
allowEmptySubmit: c,
|
|
1069
|
+
onSubmit: h
|
|
1113
1070
|
}
|
|
1114
1071
|
)
|
|
1115
1072
|
] }),
|
|
1116
1073
|
/* @__PURE__ */ t(
|
|
1117
|
-
|
|
1074
|
+
ae,
|
|
1118
1075
|
{
|
|
1119
|
-
value:
|
|
1120
|
-
onChange:
|
|
1076
|
+
value: s,
|
|
1077
|
+
onChange: o,
|
|
1121
1078
|
defaultRadiusKm: k
|
|
1122
1079
|
}
|
|
1123
1080
|
)
|
|
1124
1081
|
] }),
|
|
1125
1082
|
/* @__PURE__ */ t(
|
|
1126
|
-
|
|
1083
|
+
Ze,
|
|
1127
1084
|
{
|
|
1128
1085
|
cards: u,
|
|
1129
|
-
headingLevel:
|
|
1086
|
+
headingLevel: a
|
|
1130
1087
|
}
|
|
1131
1088
|
)
|
|
1132
1089
|
] });
|
|
1133
1090
|
}
|
|
1134
|
-
const
|
|
1091
|
+
const nt = Te(function({
|
|
1135
1092
|
variant: r,
|
|
1136
|
-
loadObjects:
|
|
1137
|
-
loadPlaces:
|
|
1138
|
-
onObjectSelect:
|
|
1139
|
-
onPlaceSelect:
|
|
1140
|
-
allowTypedPlace:
|
|
1141
|
-
facets:
|
|
1142
|
-
defaultRadiusKm:
|
|
1093
|
+
loadObjects: s,
|
|
1094
|
+
loadPlaces: o,
|
|
1095
|
+
onObjectSelect: h,
|
|
1096
|
+
onPlaceSelect: d,
|
|
1097
|
+
allowTypedPlace: p = !1,
|
|
1098
|
+
facets: g,
|
|
1099
|
+
defaultRadiusKm: l = fe,
|
|
1143
1100
|
reverseGeocode: n,
|
|
1144
1101
|
geoHint: u,
|
|
1145
|
-
discoveryCards:
|
|
1102
|
+
discoveryCards: a,
|
|
1146
1103
|
discoveryHeadingLevel: f = 3,
|
|
1147
1104
|
countryCode: b,
|
|
1148
|
-
value:
|
|
1149
|
-
onChange:
|
|
1105
|
+
value: c,
|
|
1106
|
+
onChange: i,
|
|
1150
1107
|
onSubmit: y,
|
|
1151
1108
|
submitting: m,
|
|
1152
1109
|
submitLabel: j,
|
|
1153
|
-
allowEmptySubmit:
|
|
1110
|
+
allowEmptySubmit: C,
|
|
1154
1111
|
"aria-label": E,
|
|
1155
1112
|
id: k,
|
|
1156
1113
|
className: W,
|
|
1157
1114
|
...P
|
|
1158
|
-
},
|
|
1115
|
+
}, O) {
|
|
1159
1116
|
var ve, be;
|
|
1160
|
-
const { t:
|
|
1161
|
-
((be =
|
|
1162
|
-
), N =
|
|
1117
|
+
const { t: ie } = D("ui"), q = R(null), B = R(null), K = R(null), [w, _] = J(((ve = c.object) == null ? void 0 : ve.label) ?? ""), [T, F] = J(
|
|
1118
|
+
((be = c.place) == null ? void 0 : be.label) ?? ""
|
|
1119
|
+
), N = R(null), U = R(
|
|
1163
1120
|
{ who: { current: !1 }, where: { current: !1 } }
|
|
1164
|
-
),
|
|
1165
|
-
const L = v ===
|
|
1121
|
+
), G = (v) => {
|
|
1122
|
+
const L = v === B.current ? "who" : v === K.current ? "where" : null;
|
|
1166
1123
|
if (!L) {
|
|
1167
1124
|
N.current = null;
|
|
1168
1125
|
return;
|
|
@@ -1173,68 +1130,68 @@ const dt = Ae(function({
|
|
|
1173
1130
|
start: Q.selectionStart,
|
|
1174
1131
|
end: Q.selectionEnd
|
|
1175
1132
|
};
|
|
1176
|
-
},
|
|
1133
|
+
}, Le = (v, L) => {
|
|
1177
1134
|
var Q;
|
|
1178
1135
|
L && ((Q = q.current) != null && Q.contains(L)) || setTimeout(() => {
|
|
1179
1136
|
v.isConnected && (N.current = null);
|
|
1180
1137
|
}, 0);
|
|
1181
|
-
},
|
|
1182
|
-
const I = (v === "who" ?
|
|
1138
|
+
}, oe = R(null), he = (v, L, Q) => {
|
|
1139
|
+
const I = (v === "who" ? B : K).current;
|
|
1183
1140
|
if (!I) return;
|
|
1184
1141
|
I.focus();
|
|
1185
|
-
const
|
|
1142
|
+
const V = I.value.length;
|
|
1186
1143
|
I.setSelectionRange(
|
|
1187
|
-
Math.min(L ??
|
|
1188
|
-
Math.min(Q ??
|
|
1144
|
+
Math.min(L ?? V, V),
|
|
1145
|
+
Math.min(Q ?? V, V)
|
|
1189
1146
|
);
|
|
1190
1147
|
};
|
|
1191
1148
|
H(() => {
|
|
1192
1149
|
const v = q.current;
|
|
1193
1150
|
if (!v) return;
|
|
1194
1151
|
const L = (A) => {
|
|
1195
|
-
const
|
|
1196
|
-
if (
|
|
1197
|
-
he(
|
|
1152
|
+
const M = oe.current;
|
|
1153
|
+
if (M && performance.now() < M.until && (A.target === B.current && M.field === "where" || A.target === K.current && M.field === "who")) {
|
|
1154
|
+
he(M.field, M.start, M.end);
|
|
1198
1155
|
return;
|
|
1199
1156
|
}
|
|
1200
|
-
|
|
1201
|
-
}, Q = (A) =>
|
|
1202
|
-
|
|
1203
|
-
},
|
|
1204
|
-
return v.addEventListener("focusin", L), ye.forEach((A) => v.addEventListener(A, Q)), v.addEventListener("pointerdown", I), v.addEventListener("keydown", I), v.addEventListener("focusout",
|
|
1205
|
-
v.removeEventListener("focusin", L), ye.forEach((A) => v.removeEventListener(A, Q)), v.removeEventListener("pointerdown", I), v.removeEventListener("keydown", I), v.removeEventListener("focusout",
|
|
1157
|
+
G(A.target);
|
|
1158
|
+
}, Q = (A) => G(A.target), I = () => {
|
|
1159
|
+
oe.current = null;
|
|
1160
|
+
}, V = (A) => Le(A.target, A.relatedTarget), ye = ["select", "keyup", "input"];
|
|
1161
|
+
return v.addEventListener("focusin", L), ye.forEach((A) => v.addEventListener(A, Q)), v.addEventListener("pointerdown", I), v.addEventListener("keydown", I), v.addEventListener("focusout", V), () => {
|
|
1162
|
+
v.removeEventListener("focusin", L), ye.forEach((A) => v.removeEventListener(A, Q)), v.removeEventListener("pointerdown", I), v.removeEventListener("keydown", I), v.removeEventListener("focusout", V);
|
|
1206
1163
|
};
|
|
1207
1164
|
}, []);
|
|
1208
|
-
const pe =
|
|
1209
|
-
|
|
1165
|
+
const pe = R(r);
|
|
1166
|
+
Ae(() => {
|
|
1210
1167
|
if (pe.current === r) return;
|
|
1211
1168
|
pe.current = r;
|
|
1212
1169
|
const v = N.current;
|
|
1213
1170
|
if (!v) return;
|
|
1214
1171
|
const L = document.activeElement;
|
|
1215
|
-
L && L !== document.body || (
|
|
1172
|
+
L && L !== document.body || (oe.current = { ...v, until: performance.now() + 500 }, he(v.field, v.start, v.end));
|
|
1216
1173
|
}, [r]);
|
|
1217
|
-
const
|
|
1174
|
+
const de = R(!1);
|
|
1218
1175
|
H(() => {
|
|
1219
|
-
if (!
|
|
1220
|
-
if (
|
|
1221
|
-
|
|
1176
|
+
if (!de.current && r === "who-where-when") {
|
|
1177
|
+
if (c.when !== void 0) {
|
|
1178
|
+
de.current = !0;
|
|
1222
1179
|
return;
|
|
1223
1180
|
}
|
|
1224
|
-
|
|
1181
|
+
de.current = !0, i({ ...c, when: "anytime" });
|
|
1225
1182
|
}
|
|
1226
1183
|
}, [r]);
|
|
1227
|
-
const
|
|
1184
|
+
const ce = R(!1);
|
|
1228
1185
|
H(() => {
|
|
1229
|
-
if (!
|
|
1230
|
-
if (
|
|
1231
|
-
|
|
1186
|
+
if (!ce.current && r === "faceted") {
|
|
1187
|
+
if (c.facets !== void 0) {
|
|
1188
|
+
ce.current = !0;
|
|
1232
1189
|
return;
|
|
1233
1190
|
}
|
|
1234
|
-
|
|
1191
|
+
ce.current = !0, i({ ...c, facets: {} });
|
|
1235
1192
|
}
|
|
1236
1193
|
}, [r]);
|
|
1237
|
-
const me =
|
|
1194
|
+
const me = R(null);
|
|
1238
1195
|
H(() => {
|
|
1239
1196
|
me.current !== r && (me.current = r, S("patient_search_variant_exposed", { variant: r, country: b }));
|
|
1240
1197
|
}, [r, b]);
|
|
@@ -1242,60 +1199,60 @@ const dt = Ae(function({
|
|
|
1242
1199
|
() => ({
|
|
1243
1200
|
getVariant: () => r,
|
|
1244
1201
|
reset: () => {
|
|
1245
|
-
|
|
1202
|
+
i({});
|
|
1246
1203
|
},
|
|
1247
1204
|
focusPrimary: () => {
|
|
1248
1205
|
requestAnimationFrame(() => {
|
|
1249
1206
|
var v;
|
|
1250
|
-
(v =
|
|
1207
|
+
(v = B.current) == null || v.focus();
|
|
1251
1208
|
});
|
|
1252
1209
|
}
|
|
1253
1210
|
}),
|
|
1254
|
-
[r,
|
|
1211
|
+
[r, i]
|
|
1255
1212
|
);
|
|
1256
|
-
|
|
1257
|
-
const ge = E ??
|
|
1213
|
+
We(O, () => le, [le]), Be(He, le, k);
|
|
1214
|
+
const ge = E ?? ie("patientSearch.regionLabel"), X = {
|
|
1258
1215
|
variant: r,
|
|
1259
|
-
value:
|
|
1260
|
-
onChange:
|
|
1216
|
+
value: c,
|
|
1217
|
+
onChange: i,
|
|
1261
1218
|
onSubmit: y,
|
|
1262
|
-
loadObjects:
|
|
1263
|
-
loadPlaces:
|
|
1264
|
-
onObjectSelect:
|
|
1265
|
-
onPlaceSelect:
|
|
1266
|
-
allowTypedPlace:
|
|
1267
|
-
facets:
|
|
1268
|
-
defaultRadiusKm:
|
|
1219
|
+
loadObjects: s,
|
|
1220
|
+
loadPlaces: o,
|
|
1221
|
+
onObjectSelect: h,
|
|
1222
|
+
onPlaceSelect: d,
|
|
1223
|
+
allowTypedPlace: p,
|
|
1224
|
+
facets: g,
|
|
1225
|
+
defaultRadiusKm: l,
|
|
1269
1226
|
reverseGeocode: n,
|
|
1270
1227
|
geoHint: u,
|
|
1271
|
-
discoveryCards:
|
|
1228
|
+
discoveryCards: a ?? [],
|
|
1272
1229
|
discoveryHeadingLevel: f,
|
|
1273
1230
|
submitting: m,
|
|
1274
1231
|
submitLabel: j,
|
|
1275
|
-
allowEmptySubmit:
|
|
1276
|
-
whoRef:
|
|
1277
|
-
whereRef:
|
|
1232
|
+
allowEmptySubmit: C,
|
|
1233
|
+
whoRef: B,
|
|
1234
|
+
whereRef: K,
|
|
1278
1235
|
whoQuery: w,
|
|
1279
1236
|
onWhoQueryChange: _,
|
|
1280
1237
|
whereQuery: T,
|
|
1281
1238
|
onWhereQueryChange: F,
|
|
1282
1239
|
cardLabel: ge
|
|
1283
|
-
},
|
|
1240
|
+
}, je = (() => {
|
|
1284
1241
|
switch (r) {
|
|
1285
1242
|
case "who-where":
|
|
1286
|
-
return /* @__PURE__ */ t(
|
|
1243
|
+
return /* @__PURE__ */ t(tt, { ...X });
|
|
1287
1244
|
case "who-where-when":
|
|
1288
|
-
return /* @__PURE__ */ t(
|
|
1245
|
+
return /* @__PURE__ */ t(rt, { ...X });
|
|
1289
1246
|
case "faceted":
|
|
1290
|
-
return /* @__PURE__ */ t(
|
|
1247
|
+
return /* @__PURE__ */ t(st, { ...X });
|
|
1291
1248
|
case "discovery":
|
|
1292
|
-
return /* @__PURE__ */ t(
|
|
1249
|
+
return /* @__PURE__ */ t(at, { ...X });
|
|
1293
1250
|
/* c8 ignore next 2 */
|
|
1294
1251
|
default:
|
|
1295
1252
|
return null;
|
|
1296
1253
|
}
|
|
1297
1254
|
})();
|
|
1298
|
-
return /* @__PURE__ */ t(
|
|
1255
|
+
return /* @__PURE__ */ t(Ce.Provider, { value: U.current, children: /* @__PURE__ */ t(
|
|
1299
1256
|
"div",
|
|
1300
1257
|
{
|
|
1301
1258
|
ref: q,
|
|
@@ -1305,15 +1262,15 @@ const dt = Ae(function({
|
|
|
1305
1262
|
"data-component": "patient-search",
|
|
1306
1263
|
"data-component-id": k,
|
|
1307
1264
|
"data-variant": r,
|
|
1308
|
-
className:
|
|
1265
|
+
className: Ue({ variant: r, className: W }),
|
|
1309
1266
|
...P,
|
|
1310
|
-
children:
|
|
1267
|
+
children: je
|
|
1311
1268
|
}
|
|
1312
1269
|
) });
|
|
1313
1270
|
});
|
|
1314
|
-
|
|
1271
|
+
nt.displayName = "PatientSearch";
|
|
1315
1272
|
export {
|
|
1316
|
-
|
|
1317
|
-
|
|
1273
|
+
nt as P,
|
|
1274
|
+
He as p
|
|
1318
1275
|
};
|
|
1319
|
-
//# sourceMappingURL=patient-search-
|
|
1276
|
+
//# sourceMappingURL=patient-search-DDRDCjZi.js.map
|