@alfadocs/ui-kit 1.113.0 → 1.115.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/{actions-cell-renderer-BVn3vDTg.js → actions-cell-renderer-bI27uXXC.js} +2 -2
- package/dist/_chunks/{ai-permission-notice-BkgcGmu8.js → ai-permission-notice-C-xR2_iS.js} +2 -2
- package/dist/_chunks/{alia-sidebar-CKkg3gc8.js → alia-sidebar-BBxbMRmX.js} +2 -2
- package/dist/_chunks/{anamnesis-card-BzuluoD1.js → anamnesis-card-Ddnrdfx3.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-card-DdTRdNrQ.js → anamnesis-summary-card-S1H_AARG.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-DfDulR_c.js → anamnesis-summary-rows-BZ36ULQk.js} +5 -5
- package/dist/_chunks/{antenatal-schedule-timeline-DmsY5g28.js → antenatal-schedule-timeline-va9zx7tJ.js} +12 -12
- package/dist/_chunks/{appointment-card-FKOnH1uJ.js → appointment-card-D_-aBrx5.js} +2 -2
- package/dist/_chunks/{appointment-timeline-eOi-y8m3.js → appointment-timeline-DxLu3afn.js} +3 -3
- package/dist/_chunks/{appointment-tray-C6oBvsG5.js → appointment-tray-BhXOJpIJ.js} +2 -2
- package/dist/_chunks/{ar-C4YQVTH6.js → ar-BFvUBJ_g.js} +10 -10
- package/dist/_chunks/{balance-badge-cell-BAZynD--.js → balance-badge-cell-CXHihM22.js} +28 -27
- package/dist/_chunks/{bishop-score-CnIft4eV.js → bishop-score-QJu-sM1y.js} +2 -2
- package/dist/_chunks/{bmi-calculator-NMkXc079.js → bmi-calculator-Ba4yoR31.js} +2 -2
- package/dist/_chunks/buildMatchPatternFn-jbaE1-W0.js +68 -0
- package/dist/_chunks/{calendar-appointment-editor-dialog-CaZm5wGR.js → calendar-appointment-editor-dialog-BVzFi4hH.js} +520 -532
- package/dist/_chunks/{card-C85_Ndhb.js → card-DVO3x8E-.js} +23 -19
- package/dist/_chunks/{care-plan-card-DMjlYlFc.js → care-plan-card-BA3MfdfZ.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-3hguBW45.js → care-plan-entry-card-CUtFZ813.js} +2 -2
- package/dist/_chunks/{chart-bddVIElM.js → chart-DebrFZ6L.js} +2 -2
- package/dist/_chunks/{chat-container-baxzy8k8.js → chat-container-B83b4hut.js} +2 -2
- package/dist/_chunks/checkbox-DV4sNDeB.js +282 -0
- package/dist/_chunks/{checkbox-group-eGdv9fZc.js → checkbox-group-EfinQS1h.js} +2 -2
- package/dist/_chunks/chevrons-up-down-CgiVAHb7.js +15 -0
- package/dist/_chunks/{clinical-note-card-BVkxGiGl.js → clinical-note-card-Zz5_GEz-.js} +2 -2
- package/dist/_chunks/compact-editor-fields-cP6yh7xv.js +21 -0
- package/dist/_chunks/{connection-status-CWSU3eiq.js → connection-status-DjarASoU.js} +2 -2
- package/dist/_chunks/{contact-card-CymtNvy3.js → contact-card-Cv-Nwvac.js} +2 -2
- package/dist/_chunks/{contact-profile-card-CAL66GaH.js → contact-profile-card-DMXWBBkU.js} +2 -2
- package/dist/_chunks/{cycle-calculator-ZMDvToIm.js → cycle-calculator-C68V9rdH.js} +6 -6
- package/dist/_chunks/data-grid-tabs-CsLbIv0h.js +365 -0
- package/dist/_chunks/data-table-DXaE2Ret.js +1693 -0
- package/dist/_chunks/data-table-tabs-NYLhD8_Z.js +242 -0
- package/dist/_chunks/date-locale-OG-MupVD.js +83 -0
- package/dist/_chunks/{date-picker-CdhXlgVI.js → date-picker-DBVTj6lO.js} +21 -20
- package/dist/_chunks/{date-picker-variants-Dt6UbonG.js → date-picker-variants-J1EeAhIH.js} +601 -678
- package/dist/_chunks/date-range-panel-CBFfkgmz.js +62 -0
- package/dist/_chunks/{date-range-picker-DCADIR8o.js → date-range-picker-PTRpDkXT.js} +72 -70
- package/dist/_chunks/{date-time-picker-CT2bC7-A.js → date-time-picker-CJnqiQoT.js} +22 -21
- package/dist/_chunks/{de-B1B3PIgY.js → de-i9wbjGPc.js} +2 -2
- package/dist/_chunks/{document-preview-5xs64jME.js → document-preview-WvJKHJOP.js} +2 -2
- package/dist/_chunks/{due-date-calculator-Dr2cDa64.js → due-date-calculator-C1UA5jpS.js} +7 -7
- package/dist/_chunks/{editable-currency-cell-renderer-BUdFMh67.js → editable-currency-cell-renderer-CtlMhLai.js} +3 -3
- package/dist/_chunks/{el-iLqGpapg.js → el-Cm-rWthb.js} +20 -20
- package/dist/_chunks/{en-GB-CxPRQbD6.js → en-GB-BHn82gW8.js} +11 -10
- package/dist/_chunks/en-US-C4QKhzhA.js +46 -0
- package/dist/_chunks/{entity-summary-BbqqYqF1.js → entity-summary-DGCBQDt1.js} +2 -2
- package/dist/_chunks/{es-Bg1oqwDs.js → es-B_6Z19UA.js} +4 -4
- package/dist/_chunks/{face-scheme-e2M2HJGz.js → face-scheme-DkoxiDCh.js} +3 -3
- package/dist/_chunks/{fetal-weight-CkIwJgiH.js → fetal-weight-DmZzMRzB.js} +2 -2
- package/dist/_chunks/{file-manager-LG7B_UHB.js → file-manager-DFFExyym.js} +4 -4
- package/dist/_chunks/{finished-terminal-DXVAfhRr.js → finished-terminal-BKTFUk3S.js} +2 -2
- package/dist/_chunks/{forgot-password-form-YQVzSskq.js → forgot-password-form-Bc_UPax6.js} +2 -2
- package/dist/_chunks/format-ql5WTsYT.js +846 -0
- package/dist/_chunks/{fr-DpGxyOGI.js → fr-gTba51QO.js} +7 -7
- package/dist/_chunks/funnel-DpPV3Qkd.js +20 -0
- package/dist/_chunks/{gestational-age-calculator-Dv3IePb-.js → gestational-age-calculator-60y1RyQL.js} +8 -8
- package/dist/_chunks/grid-context-AwsLJRhH.js +46 -0
- package/dist/_chunks/{hcg-doubling-DdyUt4gz.js → hcg-doubling-CC-dbKE8.js} +7 -6
- package/dist/_chunks/{heatmap-BiwC7Gdx.js → heatmap-eXdtmEoU.js} +4 -4
- package/dist/_chunks/{hi-3Dtsksrw.js → hi-BIHq9ncx.js} +10 -10
- package/dist/_chunks/icon-button-group-C9mPK-bX.js +442 -0
- package/dist/_chunks/{index-CJE9uQmb.js → index-Bze5jCG_.js} +2 -1
- package/dist/_chunks/{isSameWeek-DyVftHWi.js → isSameWeek-CZOtDcsd.js} +2 -2
- package/dist/_chunks/{it-Cp0CA13d.js → it-DaCPWJ9Y.js} +11 -11
- package/dist/_chunks/{ja-9FOyR1lb.js → ja-BRCpkD95.js} +26 -26
- package/dist/_chunks/{kit-extensions-BOsUgWnE.js → kit-extensions-CzG0RmhQ.js} +7 -7
- package/dist/_chunks/link-cell-renderer-Ditt5mvT.js +800 -0
- package/dist/_chunks/{login-dev-card-B6-zCFq3.js → login-dev-card-CPndtWdz.js} +3 -3
- package/dist/_chunks/map-view-Bny79cWa.js +856 -0
- package/dist/_chunks/{marketplace-app-shell-C-4QF6mp.js → marketplace-app-shell-CcEHJgDd.js} +3 -3
- package/dist/_chunks/match-BATShpSX.js +336 -0
- package/dist/_chunks/motion-is-off-BvAuNV5O.js +15 -0
- package/dist/_chunks/{nl-sfx-zJgR.js → nl-5tAwYo00.js} +6 -6
- package/dist/_chunks/normalizeDates-BBNNIR-v.js +36 -0
- package/dist/_chunks/{notes-panel-Cz621DWV.js → notes-panel-BVYG_MJE.js} +4 -4
- package/dist/_chunks/{operator-hero-BELhrv9o.js → operator-hero-BWayX73x.js} +71 -62
- package/dist/_chunks/{parse-B0s7bY4d.js → parse-BLBWPIgE.js} +63 -61
- package/dist/_chunks/{parseISO-DZZ5a-zK.js → parseISO-Dl4T9peU.js} +2 -2
- package/dist/_chunks/parts-Wz2LeGnH.js +1113 -0
- package/dist/_chunks/{patient-details-RsT3SaYh.js → patient-details-DlT-vpSe.js} +3 -3
- package/dist/_chunks/{patient-field-row-D9rb-QJH.js → patient-field-row-B54uzvu-.js} +3 -3
- package/dist/_chunks/{patient-search-CxuqVUTB.js → patient-search-DDRDCjZi.js} +439 -482
- package/dist/_chunks/{patient-summary-card-BjZErlbt.js → patient-summary-card-Dy9-CzON.js} +4 -4
- package/dist/_chunks/{payment-automation-upsell-u5EuFyCY.js → payment-automation-upsell-D7yaD4u1.js} +3 -3
- package/dist/_chunks/{payment-request-card-IR83TJax.js → payment-request-card-BmV2pLoM.js} +2 -2
- package/dist/_chunks/{periodontal-chart-DqdUEFxK.js → periodontal-chart-Bjz7O4wT.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-CCkzStlm.js → periodontal-chart-card-CxEXHl2x.js} +2 -2
- package/dist/_chunks/{periodontal-diagnosis-CF1d_0yl.js → periodontal-diagnosis-DnZuZD14.js} +3 -3
- package/dist/_chunks/{periodontal-risk-chart-D2zyID0H.js → periodontal-risk-chart-BBPB9wf1.js} +2 -2
- package/dist/_chunks/{permission-matrix-BJ6sg3Zp.js → permission-matrix-BXmhICzN.js} +3 -3
- package/dist/_chunks/{pl-BLh7KO-s.js → pl-mLYbfByR.js} +7 -7
- package/dist/_chunks/{practice-profile-hero-Bb4YyxHA.js → practice-profile-hero-Cw4NZp0A.js} +2 -2
- package/dist/_chunks/practice-results-BlxfBx-D.js +2181 -0
- package/dist/_chunks/{pregnancy-dating-Cs8xpZA8.js → pregnancy-dating-qZpw3zj8.js} +8 -8
- package/dist/_chunks/{pregnancy-weight-gain-B_Zldlzq.js → pregnancy-weight-gain-DQoOM8QV.js} +2 -2
- package/dist/_chunks/privacy-mask-BlJK51MD.js +78 -0
- package/dist/_chunks/privacy-mask-text-B8YfzB7L.js +7 -0
- package/dist/_chunks/{pt-CPKOrOLj.js → pt-CgaqtlD9.js} +6 -6
- package/dist/_chunks/{public-footer-DGjLTtNK.js → public-footer-CB7ruuLI.js} +295 -260
- package/dist/_chunks/{public-header.agent-_ArDD1Xr.js → public-header.agent-Db4wm6_S.js} +203 -193
- package/dist/_chunks/{radiograph-panel.agent-CXah49KM.js → radiograph-panel.agent-C1LGeX-G.js} +3 -3
- package/dist/_chunks/{registration-form-Cq5_OSIL.js → registration-form-DW-0X7S4.js} +3 -3
- package/dist/_chunks/{reserved.agent-BMkapgom.js → reserved.agent-6p3Hm4oH.js} +29 -39
- package/dist/_chunks/{reset-password-form-BVsL2fOJ.js → reset-password-form-C93SH0Tx.js} +2 -2
- package/dist/_chunks/{reviews-panel-B03auSpQ.js → reviews-panel-CfJPEkH7.js} +2 -2
- package/dist/_chunks/{rich-text-editor-BLS2cK-u.js → rich-text-editor-efaMWbYz.js} +3 -3
- package/dist/_chunks/{ro-Dc-oNqbF.js → ro-CpDg1-8v.js} +2 -2
- package/dist/_chunks/{ru-BtNpDZRR.js → ru-B7VMyjud.js} +9 -9
- package/dist/_chunks/saved-view-tabs-DLWm88Eq.js +932 -0
- package/dist/_chunks/{section-card-D1sV4Voz.js → section-card-DFr2wGal.js} +2 -2
- package/dist/_chunks/{send-registration-link-form-OgPomrZN.js → send-registration-link-form-DWxWa_cJ.js} +6 -6
- package/dist/_chunks/{sidebar-2VsPlNkZ.js → sidebar-D5DFYN5K.js} +326 -335
- package/dist/_chunks/{signed-out-frame-CPow3aCZ.js → signed-out-frame-bh7fn_Px.js} +2 -2
- package/dist/_chunks/{slot-grid-BhjaLJ0o.js → slot-grid-b4eZXokb.js} +3 -3
- package/dist/_chunks/{sq-D4c7olaV.js → sq-B0Ree_9P.js} +2 -2
- package/dist/_chunks/{stat-BFKZV50y.js → stat-WGLdn5Vn.js} +113 -107
- package/dist/_chunks/subDays-Bsoy023P.js +8 -0
- package/dist/_chunks/{sv-Bf_dHPvh.js → sv-D9fP66O7.js} +4 -4
- package/dist/_chunks/{tag-DOZGz0fT.js → tag-BNlcEJfE.js} +70 -67
- package/dist/_chunks/{task-card-TSJjuuDe.js → task-card-BNbkwIYM.js} +2 -2
- package/dist/_chunks/{task-editor-gqWF1jI6.js → task-editor-CSa6vQ9r.js} +377 -391
- package/dist/_chunks/{task-tray-DrXfMCuf.js → task-tray-Bmi9wCHq.js} +2 -2
- package/dist/_chunks/{tasks-panel-OuIaydK5.js → tasks-panel-CVjY1d7Q.js} +2 -2
- package/dist/_chunks/{theme-toggle-Czq3K9jB.js → theme-toggle-CObX2Ffa.js} +2 -2
- package/dist/_chunks/{timeline-CKUaBZOx.js → timeline-AMqE-c2T.js} +2 -2
- package/dist/_chunks/toolbar-Bc3pjfG5.js +9907 -0
- package/dist/_chunks/{tr-xqQ6cbGY.js → tr-Bcz5LCHZ.js} +2 -2
- package/dist/_chunks/{transcript-panel-A781Pkzr.js → transcript-panel-Wr8e4Zgi.js} +2 -2
- package/dist/_chunks/{treatment-receipt-pFqWFyD_.js → treatment-receipt-BydbojdD.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-DvK7Looa.js → use-appointment-details-read-BMAiQYo6.js} +6 -6
- package/dist/_chunks/{voice-control-panel-BGiX4sqB.js → voice-control-panel-Be_c0CQ0.js} +2 -2
- package/dist/_chunks/{workflow-map-DWk-rZse.js → workflow-map-B4XkcET0.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-DILFqAVd.js → workflow-webhook-action-DNSe65yd.js} +3 -3
- package/dist/_chunks/{zh-CN-C657DBCO.js → zh-CN-B7Ek17US.js} +11 -11
- package/dist/agent-catalog.json +722 -11
- package/dist/agent-i18n/en.json +52 -4
- package/dist/components/_shared/motion-is-off.d.ts +7 -0
- package/dist/components/_shared/privacy-mask-text.d.ts +4 -0
- package/dist/components/_shared/privacy-mask.d.ts +2 -4
- package/dist/components/_shared/saved-view-tabs/saved-tab.d.ts +54 -0
- package/dist/components/_shared/saved-view-tabs/saved-view-tabs.d.ts +93 -0
- package/dist/components/_shared/saved-view-tabs/use-saved-view-tabs.d.ts +59 -0
- package/dist/components/_shared/saved-view-tabs/view-adapter.d.ts +69 -0
- package/dist/components/_shared/table-filters/calendar-day.d.ts +27 -0
- package/dist/components/_shared/table-filters/predicates.d.ts +56 -0
- package/dist/components/_shared/table-toolbar/context.d.ts +28 -0
- package/dist/components/_shared/table-toolbar/describe-filter.d.ts +42 -0
- package/dist/components/_shared/table-toolbar/export-files.d.ts +47 -0
- package/dist/components/{data-table/xlsx-export.d.ts → _shared/table-toolbar/export-xlsx.d.ts} +2 -2
- package/dist/components/_shared/table-toolbar/parts.d.ts +125 -0
- package/dist/components/_shared/table-toolbar/seam.d.ts +261 -0
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-timeline/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/card/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/checkbox/checkbox.d.ts +66 -6
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/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/data-grid/announcer.d.ts +27 -0
- package/dist/components/data-grid/body.d.ts +95 -0
- package/dist/components/data-grid/columns.d.ts +96 -0
- package/dist/components/data-grid/data-grid.agent.d.ts +2 -1
- package/dist/components/data-grid/data-grid.d.ts +11 -27
- package/dist/components/data-grid/data-grid.variants.d.ts +118 -0
- package/dist/components/data-grid/editors.d.ts +8 -0
- package/dist/components/data-grid/export-snapshot.d.ts +3 -0
- package/dist/components/data-grid/features.d.ts +56 -0
- package/dist/components/data-grid/filter-fns.d.ts +23 -0
- package/dist/components/data-grid/filters/date-range-panel.d.ts +8 -0
- package/dist/components/data-grid/filters/filter-panels.d.ts +27 -0
- package/dist/components/data-grid/filters/filter-trigger.d.ts +7 -0
- package/dist/components/data-grid/footer.d.ts +10 -0
- package/dist/components/data-grid/grid-context.d.ts +18 -0
- package/dist/components/data-grid/handle.d.ts +60 -0
- package/dist/components/data-grid/header.d.ts +12 -0
- package/dist/components/data-grid/index.d.ts +3 -0
- package/dist/components/data-grid/index.js +10 -3
- package/dist/components/data-grid/keyboard.d.ts +76 -0
- package/dist/components/data-grid/pager.d.ts +18 -0
- package/dist/components/data-grid/persistence.d.ts +60 -0
- package/dist/components/data-grid/print.d.ts +10 -0
- package/dist/components/data-grid/responsive.d.ts +36 -0
- package/dist/components/data-grid/selection.d.ts +58 -0
- package/dist/components/data-grid/state.d.ts +119 -0
- package/dist/components/data-grid/states.d.ts +34 -0
- package/dist/components/data-grid/toolbar-seam.d.ts +7 -0
- package/dist/components/data-grid/toolbar.d.ts +41 -0
- package/dist/components/data-grid/types.d.ts +1346 -0
- package/dist/components/data-grid/use-data-grid-engine.d.ts +9 -0
- package/dist/components/data-grid/virtual-rows.d.ts +43 -0
- package/dist/components/data-grid-tabs/data-grid-tabs.agent.d.ts +9 -0
- package/dist/components/data-grid-tabs/data-grid-tabs.d.ts +4 -0
- package/dist/components/data-grid-tabs/grid-view-adapter.d.ts +15 -0
- package/dist/components/data-grid-tabs/index.d.ts +5 -0
- package/dist/components/data-grid-tabs/index.js +8 -0
- package/dist/components/data-grid-tabs/types.d.ts +220 -0
- package/dist/components/data-table/ag-toolbar-seam.d.ts +35 -0
- package/dist/components/data-table/calendar-day.d.ts +4 -21
- package/dist/components/data-table/data-table.d.ts +10 -6
- package/dist/components/data-table/filters/date-range-filter.d.ts +5 -9
- package/dist/components/data-table/filters/filter-kind.d.ts +6 -0
- package/dist/components/data-table/filters/number-filter.d.ts +6 -10
- package/dist/components/data-table/filters/select-filter.d.ts +2 -4
- package/dist/components/data-table/filters/text-filter.d.ts +2 -5
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/data-table/toolbar.d.ts +25 -21
- package/dist/components/data-table-tabs/ag-view-adapter.d.ts +17 -0
- package/dist/components/data-table-tabs/data-table-tabs.d.ts +34 -33
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +11 -66
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/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/file-manager/index.js +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/icon-button-group/icon-button-group.d.ts +19 -1
- package/dist/components/icon-button-group/index.d.ts +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +16 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-search/patient-search.d.ts +6 -2
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/periodontal-risk-chart/index.js +1 -1
- package/dist/components/permission-matrix/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +15 -2
- 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-header/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts +7 -0
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/section-card/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stat/stat.d.ts +7 -0
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/host-compat.css +36 -2
- package/dist/i18n/locales/ar.d.ts +95 -0
- package/dist/i18n/locales/ar.js +98 -3
- package/dist/i18n/locales/de.d.ts +95 -0
- package/dist/i18n/locales/de.js +98 -3
- package/dist/i18n/locales/el.d.ts +95 -0
- package/dist/i18n/locales/el.js +98 -3
- package/dist/i18n/locales/en.d.ts +95 -0
- package/dist/i18n/locales/en.js +98 -2
- package/dist/i18n/locales/es.d.ts +95 -0
- package/dist/i18n/locales/es.js +98 -3
- package/dist/i18n/locales/fr.d.ts +95 -0
- package/dist/i18n/locales/fr.js +98 -3
- package/dist/i18n/locales/hi.d.ts +95 -0
- package/dist/i18n/locales/hi.js +98 -3
- package/dist/i18n/locales/it.d.ts +95 -0
- package/dist/i18n/locales/it.js +98 -3
- package/dist/i18n/locales/ja.d.ts +95 -0
- package/dist/i18n/locales/ja.js +98 -3
- package/dist/i18n/locales/nl.d.ts +95 -0
- package/dist/i18n/locales/nl.js +98 -3
- package/dist/i18n/locales/pl.d.ts +95 -0
- package/dist/i18n/locales/pl.js +98 -3
- package/dist/i18n/locales/pt.d.ts +95 -0
- package/dist/i18n/locales/pt.js +98 -3
- package/dist/i18n/locales/ro.d.ts +95 -0
- package/dist/i18n/locales/ro.js +98 -3
- package/dist/i18n/locales/ru.d.ts +95 -0
- package/dist/i18n/locales/ru.js +98 -3
- package/dist/i18n/locales/sq.d.ts +95 -0
- package/dist/i18n/locales/sq.js +98 -3
- package/dist/i18n/locales/sv.d.ts +95 -0
- package/dist/i18n/locales/sv.js +98 -3
- package/dist/i18n/locales/tr.d.ts +95 -0
- package/dist/i18n/locales/tr.js +98 -3
- package/dist/i18n/locales/zh.d.ts +95 -0
- package/dist/i18n/locales/zh.js +98 -3
- package/dist/index.js +1048 -1036
- package/dist/locales/ar.json +98 -3
- package/dist/locales/de.json +98 -3
- package/dist/locales/el.json +98 -3
- package/dist/locales/en.json +97 -2
- package/dist/locales/es.json +98 -3
- package/dist/locales/fr.json +98 -3
- package/dist/locales/hi.json +98 -3
- package/dist/locales/it.json +98 -3
- package/dist/locales/ja.json +98 -3
- package/dist/locales/nl.json +98 -3
- package/dist/locales/pl.json +98 -3
- package/dist/locales/pt.json +98 -3
- package/dist/locales/ro.json +98 -3
- package/dist/locales/ru.json +98 -3
- package/dist/locales/sq.json +98 -3
- package/dist/locales/sv.json +98 -3
- package/dist/locales/tr.json +98 -3
- package/dist/locales/zh.json +98 -3
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/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 +5 -1
- package/dist/_chunks/checkbox-a7Sh-dXb.js +0 -227
- package/dist/_chunks/data-grid.agent-CASyEAnb.js +0 -1773
- package/dist/_chunks/data-table-C9idMvs0.js +0 -2042
- package/dist/_chunks/data-table-tabs-Db7zToFD.js +0 -728
- package/dist/_chunks/format--x5jypvH.js +0 -1319
- package/dist/_chunks/icon-button-group-mXvYDaba.js +0 -427
- package/dist/_chunks/link-cell-renderer-_Fv3WEmb.js +0 -867
- package/dist/_chunks/map-view-Dn7aXZJw.js +0 -731
- package/dist/_chunks/practice-results-BByRCIuR.js +0 -1977
- package/dist/_chunks/privacy-mask-DbEKI-Jv.js +0 -81
- package/dist/_chunks/subDays-DKISP2nE.js +0 -8
|
@@ -1,731 +0,0 @@
|
|
|
1
|
-
import { jsx as l, jsxs as S } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as ge, useMemo as E, useRef as k, useId as fe, useState as Y, useEffect as C, useCallback as T, useImperativeHandle as be } from "react";
|
|
3
|
-
import { c as x } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as A } from "react-i18next";
|
|
5
|
-
import { M as ye, A as we, a as ve, b as ke, P as Me, c as ze, u as Ve, d as ne, e as K } from "./maps-core-gate-DkNqGkm3.js";
|
|
6
|
-
import { B as Ce } from "./button-DohK_Ak_.js";
|
|
7
|
-
import { S as Ie } from "./skeleton-tTWJpvAq.js";
|
|
8
|
-
import { V as Le } from "./visually-hidden-BHxEUGyT.js";
|
|
9
|
-
import { E as Ee } from "./error-boundary-tAn_GuCu.js";
|
|
10
|
-
import { u as Te } from "./registry-DvAUVLHh.js";
|
|
11
|
-
import { l as Se } from "./length-token-DwMnGEYT.js";
|
|
12
|
-
import { M as xe } from "./map-pin-BaY37-Km.js";
|
|
13
|
-
import { E as Pe } from "./external-link-CY6zAXXU.js";
|
|
14
|
-
const Ge = {
|
|
15
|
-
id: "map-view",
|
|
16
|
-
// pan → scroll (viewport move); set_zoom → set_value; select_marker → pick
|
|
17
|
-
// (NON-persisting marker focus, no value state slot).
|
|
18
|
-
capabilities: ["scroll", "set_value", "pick"],
|
|
19
|
-
// Every action routes through the imperative bridge, which only exists
|
|
20
|
-
// once the map has loaded: consent granted (the default is
|
|
21
|
-
// `consentGranted={false}`) and Google Maps finished loading. Until then
|
|
22
|
-
// all three actions are silent no-ops. `consentGranted` says whether the
|
|
23
|
-
// gate is passed, and a null `center` after it means the map is still
|
|
24
|
-
// loading. `center` / `zoom` are read off the live
|
|
25
|
-
// map because Google clamps zoom and animates pans, so requested is not
|
|
26
|
-
// applied; `selectedMarkerId` is the only confirmation the host accepted
|
|
27
|
-
// a `select_marker` proposal.
|
|
28
|
-
//
|
|
29
|
-
// A9: marker ids only (`MapMarker.id` is a stable opaque id). Never
|
|
30
|
-
// `MapMarker.label`, never the `address` prop (consumer-supplied free
|
|
31
|
-
// text, PII in any patient-address deployment), never `apiKey`.
|
|
32
|
-
state: {
|
|
33
|
-
consentGranted: {
|
|
34
|
-
type: "boolean",
|
|
35
|
-
descriptionKey: "ui.agent.mapView.state.consentGranted",
|
|
36
|
-
description: "True when the GDPR consent gate has been passed. Read this FIRST: while it is false every action is a silent no-op against a placeholder, and nothing else in the surface says so. When it is true but `center` is still null, Google Maps is loading; wait for `center` before acting.",
|
|
37
|
-
read: (e) => e.isConsentGranted()
|
|
38
|
-
},
|
|
39
|
-
markerCount: {
|
|
40
|
-
type: "number",
|
|
41
|
-
descriptionKey: "ui.agent.mapView.state.markerCount",
|
|
42
|
-
description: "Number of markers the consumer passed. Zero means there is nothing for `select_marker` to select. A count only — no ids, labels or positions.",
|
|
43
|
-
read: (e) => e.getMarkerCount()
|
|
44
|
-
},
|
|
45
|
-
selectedMarkerId: {
|
|
46
|
-
type: "string | null",
|
|
47
|
-
descriptionKey: "ui.agent.mapView.state.selectedMarkerId",
|
|
48
|
-
description: "Id of the marker the host currently holds as selected, or null. Selection is fully controlled by the consumer, so `select_marker` only proposes — this slot is the only way to see whether the proposal was accepted.",
|
|
49
|
-
read: (e) => e.getSelectedMarkerId()
|
|
50
|
-
},
|
|
51
|
-
center: {
|
|
52
|
-
type: "{ lat: number; lng: number } | null",
|
|
53
|
-
descriptionKey: "ui.agent.mapView.state.center",
|
|
54
|
-
description: "Live map centre in lat/lng, or null until the map has loaded (consent not granted, or Google Maps still loading). The read-back for `pan_to`, and the sign that the map is ready.",
|
|
55
|
-
read: (e) => e.getCenter()
|
|
56
|
-
},
|
|
57
|
-
zoom: {
|
|
58
|
-
type: "number | null",
|
|
59
|
-
descriptionKey: "ui.agent.mapView.state.zoom",
|
|
60
|
-
description: "Live zoom level, or null until the map has loaded. Google clamps zoom to the map type's range, so this is not necessarily the value last passed to `set_zoom`.",
|
|
61
|
-
read: (e) => e.getZoom()
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
actions: {
|
|
65
|
-
pan_to: {
|
|
66
|
-
// Ephemeral viewport move, no data loss → read.
|
|
67
|
-
safety: "read",
|
|
68
|
-
argsType: "{ position: { lat: number; lng: number } }",
|
|
69
|
-
argsSchema: {
|
|
70
|
-
type: "object",
|
|
71
|
-
properties: {
|
|
72
|
-
position: {
|
|
73
|
-
type: "object",
|
|
74
|
-
properties: {
|
|
75
|
-
lat: { type: "number", description: "Latitude in degrees." },
|
|
76
|
-
lng: { type: "number", description: "Longitude in degrees." }
|
|
77
|
-
},
|
|
78
|
-
required: ["lat", "lng"]
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
required: ["position"]
|
|
82
|
-
},
|
|
83
|
-
idempotent: !0,
|
|
84
|
-
descriptionKey: "ui.agent.mapView.actions.panTo",
|
|
85
|
-
description: "Pan the map to a new centre without changing zoom. Read the `center` slot back to confirm — Google animates the pan, so the applied centre settles after the call.",
|
|
86
|
-
errors: [
|
|
87
|
-
"Silent no-op until the map has loaded: while `consentGranted` is false (only the consent placeholder shows) or while `center` is still null (Google Maps is loading)."
|
|
88
|
-
],
|
|
89
|
-
invoke: (e, n) => {
|
|
90
|
-
e.panTo(n.position);
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
set_zoom: {
|
|
94
|
-
// Ephemeral viewport zoom, no data loss → read.
|
|
95
|
-
safety: "read",
|
|
96
|
-
argsType: "{ zoom: number }",
|
|
97
|
-
argsSchema: {
|
|
98
|
-
type: "object",
|
|
99
|
-
properties: {
|
|
100
|
-
zoom: {
|
|
101
|
-
type: "number",
|
|
102
|
-
description: "Zoom level, typical range 1–20."
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
required: ["zoom"]
|
|
106
|
-
},
|
|
107
|
-
idempotent: !0,
|
|
108
|
-
descriptionKey: "ui.agent.mapView.actions.setZoom",
|
|
109
|
-
description: "Set the map zoom level (typical range 1–20). Read the `zoom` slot back — Google clamps the request to the map type’s supported range, so requested and applied can differ.",
|
|
110
|
-
errors: [
|
|
111
|
-
"Silent no-op until the map has loaded: while `consentGranted` is false (only the consent placeholder shows) or while `center` is still null (Google Maps is loading).",
|
|
112
|
-
"Requested zoom is clamped to the map type's range; `zoom` reports what was actually applied."
|
|
113
|
-
],
|
|
114
|
-
invoke: (e, n) => {
|
|
115
|
-
e.setZoom(n.zoom);
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
select_marker: {
|
|
119
|
-
// Ephemeral marker focus, no data loss → read.
|
|
120
|
-
safety: "read",
|
|
121
|
-
argsType: "{ id: string | null }",
|
|
122
|
-
argsSchema: {
|
|
123
|
-
type: "object",
|
|
124
|
-
properties: {
|
|
125
|
-
id: {
|
|
126
|
-
type: ["string", "null"],
|
|
127
|
-
description: "Marker id to select, or null to clear the selection."
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
required: ["id"]
|
|
131
|
-
},
|
|
132
|
-
idempotent: !0,
|
|
133
|
-
descriptionKey: "ui.agent.mapView.actions.selectMarker",
|
|
134
|
-
description: "Propose a marker selection by id, or pass null to clear it. Fires the host's `onMarkerClick`; selection is controlled by the host, so read the `selectedMarkerId` slot back to see whether it accepted.",
|
|
135
|
-
errors: [
|
|
136
|
-
"Silent no-op until the map has loaded: while `consentGranted` is false (only the consent placeholder shows) or while `center` is still null (Google Maps is loading).",
|
|
137
|
-
"The host owns `selectedMarkerId` and may ignore the proposal; `selectedMarkerId` is unchanged when it does."
|
|
138
|
-
],
|
|
139
|
-
invoke: (e, n) => {
|
|
140
|
-
e.selectMarker(n.id);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
domHooks: {
|
|
145
|
-
root: {
|
|
146
|
-
attr: "data-component",
|
|
147
|
-
value: "map-view",
|
|
148
|
-
description: "Marks the element as a kit MapView."
|
|
149
|
-
},
|
|
150
|
-
instanceId: {
|
|
151
|
-
attr: "data-component-id",
|
|
152
|
-
sourceProp: "id",
|
|
153
|
-
description: "Sourced from the id prop."
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}, Ne = x(
|
|
157
|
-
["ds:relative ds:overflow-hidden ds:block", "ds:bg-[var(--muted)]"].join(" "),
|
|
158
|
-
{
|
|
159
|
-
variants: {
|
|
160
|
-
size: {
|
|
161
|
-
sm: "ds:[--map-block-size:14rem]",
|
|
162
|
-
md: "ds:[--map-block-size:20rem]",
|
|
163
|
-
lg: "ds:[--map-block-size:28rem]",
|
|
164
|
-
// `fill` defers sizing to the parent. The outer takes
|
|
165
|
-
// `block-size: 100%` so the inner (also 100%) has something
|
|
166
|
-
// to inherit from. Use inside a viewport-locked column —
|
|
167
|
-
// `<PracticeResults variant="map-first">` wires this through
|
|
168
|
-
// automatically; standalone consumers must give the parent
|
|
169
|
-
// a constrained block-size or the map collapses to 0.
|
|
170
|
-
fill: "ds:[block-size:100%]"
|
|
171
|
-
},
|
|
172
|
-
surface: {
|
|
173
|
-
bordered: "ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
|
|
174
|
-
elevated: "ds:rounded-[var(--radius-md)] ds:shadow-[var(--shadow-card)] ds:[:where(&)]:border-[length:var(--surface-border-width,var(--border-width-sm))] ds:border-[color:var(--card-border)]",
|
|
175
|
-
bare: "ds:rounded-none ds:border-0"
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
defaultVariants: { size: "md", surface: "bordered" }
|
|
179
|
-
}
|
|
180
|
-
), Re = x("ds:block ds:w-full", {
|
|
181
|
-
variants: {
|
|
182
|
-
size: {
|
|
183
|
-
sm: "ds:[block-size:var(--map-block-size)]",
|
|
184
|
-
md: "ds:[block-size:var(--map-block-size)]",
|
|
185
|
-
lg: "ds:[block-size:var(--map-block-size)]",
|
|
186
|
-
fill: "ds:[block-size:100%]"
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
defaultVariants: { size: "md" }
|
|
190
|
-
}), Ze = x(
|
|
191
|
-
[
|
|
192
|
-
"ds:absolute ds:inset-0",
|
|
193
|
-
"ds:flex ds:flex-col ds:items-center ds:justify-center",
|
|
194
|
-
"ds:gap-[var(--spacing-sm)]",
|
|
195
|
-
"ds:p-[var(--spacing-md)]",
|
|
196
|
-
"ds:bg-[var(--muted)] ds:text-[var(--foreground)]",
|
|
197
|
-
"ds:text-center"
|
|
198
|
-
].join(" ")
|
|
199
|
-
), _e = x("type-heading-3 ds:m-0"), Q = x(
|
|
200
|
-
"type-body-sm ds:text-[var(--muted-foreground)] ds:[max-inline-size:28rem] ds:m-0"
|
|
201
|
-
);
|
|
202
|
-
function je({
|
|
203
|
-
onHandleReady: e,
|
|
204
|
-
onMarkerSelect: n,
|
|
205
|
-
onCameraMove: o
|
|
206
|
-
}) {
|
|
207
|
-
const i = K();
|
|
208
|
-
return C(() => {
|
|
209
|
-
if (i)
|
|
210
|
-
return e({
|
|
211
|
-
panTo: (r) => {
|
|
212
|
-
o(), i.panTo(r);
|
|
213
|
-
},
|
|
214
|
-
setZoom: (r) => {
|
|
215
|
-
o(), i.setZoom(r);
|
|
216
|
-
},
|
|
217
|
-
jumpTo: (r, a) => {
|
|
218
|
-
o(), i.moveCamera({ center: r, zoom: a });
|
|
219
|
-
},
|
|
220
|
-
selectMarker: (r) => n(r),
|
|
221
|
-
// Read straight off the live map: Google clamps `setZoom` to the
|
|
222
|
-
// map type's range and animates `panTo`, so requested and applied
|
|
223
|
-
// are not the same value.
|
|
224
|
-
getCenter: () => {
|
|
225
|
-
var r;
|
|
226
|
-
return ((r = i.getCenter()) == null ? void 0 : r.toJSON()) ?? null;
|
|
227
|
-
},
|
|
228
|
-
getZoom: () => i.getZoom() ?? null
|
|
229
|
-
}), () => e(null);
|
|
230
|
-
}, [i, e, n, o]), null;
|
|
231
|
-
}
|
|
232
|
-
function Oe({
|
|
233
|
-
onBoundsChange: e,
|
|
234
|
-
userInteraction: n
|
|
235
|
-
}) {
|
|
236
|
-
const o = K(), i = k(e);
|
|
237
|
-
return i.current = e, C(() => {
|
|
238
|
-
if (!o) return;
|
|
239
|
-
const r = o.getDiv();
|
|
240
|
-
let a = null;
|
|
241
|
-
const c = () => {
|
|
242
|
-
n.current = {
|
|
243
|
-
pendingInput: !1,
|
|
244
|
-
moved: !1,
|
|
245
|
-
programmatic: !1
|
|
246
|
-
};
|
|
247
|
-
};
|
|
248
|
-
c();
|
|
249
|
-
let b;
|
|
250
|
-
const u = /* @__PURE__ */ new Set(), f = (t) => {
|
|
251
|
-
if (t instanceof PointerEvent && t.pointerType === "touch" && (t.type === "pointerdown" && u.add(t.pointerId), t.type === "pointerup" || t.type === "pointercancel")) {
|
|
252
|
-
u.delete(t.pointerId);
|
|
253
|
-
return;
|
|
254
|
-
}
|
|
255
|
-
if (t instanceof PointerEvent && t.type === "pointermove" && t.buttons === 0 && t.pointerType !== "touch" || t instanceof KeyboardEvent && ![
|
|
256
|
-
"ArrowUp",
|
|
257
|
-
"ArrowDown",
|
|
258
|
-
"ArrowLeft",
|
|
259
|
-
"ArrowRight",
|
|
260
|
-
"+",
|
|
261
|
-
"=",
|
|
262
|
-
"-",
|
|
263
|
-
"_",
|
|
264
|
-
"Enter",
|
|
265
|
-
" ",
|
|
266
|
-
"PageUp",
|
|
267
|
-
"PageDown"
|
|
268
|
-
].includes(t.key))
|
|
269
|
-
return;
|
|
270
|
-
const m = document.fullscreenElement, w = !!(m && (m.contains(r) || r.contains(m)));
|
|
271
|
-
let h = t.type === "dblclick";
|
|
272
|
-
t instanceof PointerEvent && t.type === "pointermove" && (h = t.pointerType !== "touch" || u.size >= 2 || w), t.type === "touchmove" && (h = t.touches.length >= 2 || w), t instanceof KeyboardEvent && (h = t.key !== "Enter" && t.key !== " "), t instanceof WheelEvent && (h = t.ctrlKey || t.metaKey || w), t.type === "click" && (h = t.target instanceof Element && t.target.closest('button, [role="button"]') != null), h && (n.current.programmatic = !1), n.current.pendingInput = !0, clearTimeout(b), b = setTimeout(() => {
|
|
273
|
-
n.current.pendingInput = !1;
|
|
274
|
-
}, 250);
|
|
275
|
-
}, d = () => {
|
|
276
|
-
n.current.pendingInput && !n.current.programmatic && (n.current.moved = !0);
|
|
277
|
-
}, y = () => {
|
|
278
|
-
var P, G;
|
|
279
|
-
const t = (P = o.getBounds()) == null ? void 0 : P.toJSON(), m = (G = o.getCenter()) == null ? void 0 : G.toJSON(), w = o.getZoom(), h = n.current.moved;
|
|
280
|
-
if (c(), clearTimeout(b), !t || !m || w == null) return;
|
|
281
|
-
const v = !a || Object.keys(t).some(
|
|
282
|
-
(N) => t[N] !== a.bounds[N]
|
|
283
|
-
), I = a != null && (w !== a.zoom || m.lat !== a.center.lat || m.lng !== a.center.lng);
|
|
284
|
-
a = { bounds: t, center: m, zoom: w }, v && i.current(t, { userInteraction: h && I });
|
|
285
|
-
}, p = [
|
|
286
|
-
"pointerdown",
|
|
287
|
-
"pointermove",
|
|
288
|
-
"pointerup",
|
|
289
|
-
"pointercancel",
|
|
290
|
-
"touchstart",
|
|
291
|
-
"touchmove",
|
|
292
|
-
"click",
|
|
293
|
-
"dblclick",
|
|
294
|
-
"wheel",
|
|
295
|
-
"keydown"
|
|
296
|
-
];
|
|
297
|
-
p.forEach(
|
|
298
|
-
(t) => r.addEventListener(t, f, { capture: !0, passive: !0 })
|
|
299
|
-
);
|
|
300
|
-
const M = [
|
|
301
|
-
o.addListener("dragstart", () => {
|
|
302
|
-
n.current.programmatic = !1, n.current.moved = !0;
|
|
303
|
-
}),
|
|
304
|
-
o.addListener("center_changed", d),
|
|
305
|
-
o.addListener("zoom_changed", d),
|
|
306
|
-
o.addListener("idle", y)
|
|
307
|
-
];
|
|
308
|
-
return y(), () => {
|
|
309
|
-
M.forEach((t) => t.remove()), p.forEach(
|
|
310
|
-
(t) => r.removeEventListener(t, f, !0)
|
|
311
|
-
), clearTimeout(b), c();
|
|
312
|
-
};
|
|
313
|
-
}, [o, n]), null;
|
|
314
|
-
}
|
|
315
|
-
const Ae = 256, Ke = (e) => e * Math.PI / 180;
|
|
316
|
-
function ee(e) {
|
|
317
|
-
const n = Math.min(Math.max(Math.sin(Ke(e)), -0.9999), 0.9999);
|
|
318
|
-
return Math.log((1 + n) / (1 - n)) / 2;
|
|
319
|
-
}
|
|
320
|
-
const $e = (e) => Math.atan(Math.sinh(e)) * 180 / Math.PI;
|
|
321
|
-
function qe(e) {
|
|
322
|
-
let n = -90, o = 90, i = -180, r = 180;
|
|
323
|
-
for (const { lat: a, lng: c } of e)
|
|
324
|
-
n = Math.max(n, a), o = Math.min(o, a), i = Math.max(i, c), r = Math.min(r, c);
|
|
325
|
-
return { north: n, south: o, east: i, west: r };
|
|
326
|
-
}
|
|
327
|
-
function De(e, n, o, i, r) {
|
|
328
|
-
const { north: a, south: c, east: b, west: u } = qe(e);
|
|
329
|
-
if (a === c && b === u)
|
|
330
|
-
return { center: { lat: a, lng: b }, zoom: r };
|
|
331
|
-
const f = ee(a), d = ee(c), y = {
|
|
332
|
-
lat: $e((f + d) / 2),
|
|
333
|
-
lng: (b + u) / 2
|
|
334
|
-
}, p = (t, m) => m > 0 ? Math.log2(Math.max(t, 1) / Ae / m) : r, M = Math.min(
|
|
335
|
-
p(n - 2 * i, (b - u) / 360),
|
|
336
|
-
p(o - 2 * i, (f - d) / (2 * Math.PI)),
|
|
337
|
-
r
|
|
338
|
-
);
|
|
339
|
-
return { center: y, zoom: Math.max(0, Math.floor(M)) };
|
|
340
|
-
}
|
|
341
|
-
const re = ({ id: e, lat: n, lng: o }) => e != null ? `id:${e}` : `at:${n},${o}`;
|
|
342
|
-
function He({
|
|
343
|
-
points: e,
|
|
344
|
-
fitKey: n,
|
|
345
|
-
maxZoom: o,
|
|
346
|
-
onCameraMove: i
|
|
347
|
-
}) {
|
|
348
|
-
const r = K(), a = k(null), c = k(!1), b = k(null);
|
|
349
|
-
return C(() => {
|
|
350
|
-
if (!r) return;
|
|
351
|
-
const u = () => {
|
|
352
|
-
var t;
|
|
353
|
-
const d = b.current, y = (t = r.getCenter()) == null ? void 0 : t.toJSON(), p = r.getZoom();
|
|
354
|
-
d != null && p === d.zoom && y != null && Math.abs(y.lat - d.center.lat) < 1e-6 && Math.abs(y.lng - d.center.lng) < 1e-6 || (c.current = !0);
|
|
355
|
-
}, f = [
|
|
356
|
-
r.addListener("dragstart", () => {
|
|
357
|
-
c.current = !0;
|
|
358
|
-
}),
|
|
359
|
-
r.addListener("center_changed", u),
|
|
360
|
-
r.addListener("zoom_changed", u)
|
|
361
|
-
];
|
|
362
|
-
return () => f.forEach((d) => d.remove());
|
|
363
|
-
}, [r]), C(() => {
|
|
364
|
-
var w;
|
|
365
|
-
if (!r) return;
|
|
366
|
-
const u = ((w = a.current) == null ? void 0 : w.map) === r ? a.current : null;
|
|
367
|
-
if ((u == null ? void 0 : u.key) === n) return;
|
|
368
|
-
const f = new Set(e.map(re)), d = (h, v) => {
|
|
369
|
-
b.current = { center: h, zoom: v }, i(), r.moveCamera({ center: h, zoom: v }), c.current = !1;
|
|
370
|
-
};
|
|
371
|
-
if (e.length === 0) {
|
|
372
|
-
a.current = { map: r, key: n, points: f };
|
|
373
|
-
return;
|
|
374
|
-
}
|
|
375
|
-
if (u != null && u.points.size > 0 && [...u.points].every((h) => f.has(h)) && c.current) {
|
|
376
|
-
a.current = { map: r, key: n, points: f };
|
|
377
|
-
return;
|
|
378
|
-
}
|
|
379
|
-
const p = r.getDiv();
|
|
380
|
-
if (!(p instanceof Element)) return;
|
|
381
|
-
const M = () => {
|
|
382
|
-
a.current = { map: r, key: n, points: f };
|
|
383
|
-
const h = Math.min(
|
|
384
|
-
Se("--spacing-2xl", p, 48),
|
|
385
|
-
p.clientWidth / 4,
|
|
386
|
-
p.clientHeight / 4
|
|
387
|
-
), { center: v, zoom: I } = De(
|
|
388
|
-
e,
|
|
389
|
-
p.clientWidth,
|
|
390
|
-
p.clientHeight,
|
|
391
|
-
h,
|
|
392
|
-
o
|
|
393
|
-
);
|
|
394
|
-
d(v, I);
|
|
395
|
-
}, t = () => p.clientWidth > 0 && p.clientHeight > 0;
|
|
396
|
-
if (t() || typeof ResizeObserver > "u") {
|
|
397
|
-
M();
|
|
398
|
-
return;
|
|
399
|
-
}
|
|
400
|
-
const m = new ResizeObserver(() => {
|
|
401
|
-
t() && (m.disconnect(), M());
|
|
402
|
-
});
|
|
403
|
-
return m.observe(p), () => m.disconnect();
|
|
404
|
-
}, [r, n, e, o, i]), null;
|
|
405
|
-
}
|
|
406
|
-
const oe = (e) => {
|
|
407
|
-
var n, o;
|
|
408
|
-
return typeof ((o = (n = globalThis.google) == null ? void 0 : n.maps) == null ? void 0 : o[e]) == "function";
|
|
409
|
-
};
|
|
410
|
-
function se() {
|
|
411
|
-
const { t: e } = A("ui");
|
|
412
|
-
return /* @__PURE__ */ S(
|
|
413
|
-
"div",
|
|
414
|
-
{
|
|
415
|
-
role: "status",
|
|
416
|
-
"data-testid": "map-view-loading",
|
|
417
|
-
className: "ds:[inline-size:100%] ds:[block-size:100%]",
|
|
418
|
-
children: [
|
|
419
|
-
/* @__PURE__ */ l(Ie, { variant: "rectangular", width: "100%", height: "100%" }),
|
|
420
|
-
/* @__PURE__ */ l(Le, { children: e("common.loading") })
|
|
421
|
-
]
|
|
422
|
-
}
|
|
423
|
-
);
|
|
424
|
-
}
|
|
425
|
-
function Be({ children: e }) {
|
|
426
|
-
const n = Ve();
|
|
427
|
-
return ne("maps") || !n || oe("Map") ? e : /* @__PURE__ */ l(se, {});
|
|
428
|
-
}
|
|
429
|
-
function Fe({ children: e }) {
|
|
430
|
-
return ne("marker") || oe("Marker") ? e : null;
|
|
431
|
-
}
|
|
432
|
-
function te({
|
|
433
|
-
address: e,
|
|
434
|
-
contentLang: n,
|
|
435
|
-
description: o,
|
|
436
|
-
onLoadMap: i,
|
|
437
|
-
openInGoogleMapsHref: r,
|
|
438
|
-
consentCta: a
|
|
439
|
-
}) {
|
|
440
|
-
const { t: c } = A("ui");
|
|
441
|
-
return /* @__PURE__ */ S("div", { className: Ze(), "data-testid": "map-view-consent", children: [
|
|
442
|
-
/* @__PURE__ */ l(
|
|
443
|
-
xe,
|
|
444
|
-
{
|
|
445
|
-
"aria-hidden": "true",
|
|
446
|
-
className: "ds:size-6 ds:text-[var(--muted-foreground)]"
|
|
447
|
-
}
|
|
448
|
-
),
|
|
449
|
-
/* @__PURE__ */ l("p", { className: _e(), children: c("mapView.consentTitle") }),
|
|
450
|
-
e ? /* @__PURE__ */ l(
|
|
451
|
-
"p",
|
|
452
|
-
{
|
|
453
|
-
className: Q(),
|
|
454
|
-
"data-testid": "map-view-address",
|
|
455
|
-
lang: n,
|
|
456
|
-
children: e
|
|
457
|
-
}
|
|
458
|
-
) : null,
|
|
459
|
-
/* @__PURE__ */ l("p", { className: Q(), children: o }),
|
|
460
|
-
/* @__PURE__ */ S("div", { className: "ds:flex ds:gap-[var(--spacing-sm)] ds:flex-wrap ds:items-center ds:justify-center", children: [
|
|
461
|
-
a ?? /* @__PURE__ */ l(
|
|
462
|
-
Ce,
|
|
463
|
-
{
|
|
464
|
-
type: "button",
|
|
465
|
-
intent: "primary",
|
|
466
|
-
size: "sm",
|
|
467
|
-
onClick: i,
|
|
468
|
-
"data-testid": "map-view-load-cta",
|
|
469
|
-
children: c("mapView.consentCta")
|
|
470
|
-
}
|
|
471
|
-
),
|
|
472
|
-
/* @__PURE__ */ S(
|
|
473
|
-
"a",
|
|
474
|
-
{
|
|
475
|
-
href: r,
|
|
476
|
-
target: "_blank",
|
|
477
|
-
rel: "noopener noreferrer",
|
|
478
|
-
className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)] ds:text-[var(--primary-readable)] ds:underline ds:underline-offset-2",
|
|
479
|
-
children: [
|
|
480
|
-
c("mapView.openInGoogleMaps"),
|
|
481
|
-
/* @__PURE__ */ l(Pe, { "aria-hidden": "true", className: "ds:size-3" })
|
|
482
|
-
]
|
|
483
|
-
}
|
|
484
|
-
)
|
|
485
|
-
] })
|
|
486
|
-
] });
|
|
487
|
-
}
|
|
488
|
-
const We = ge(
|
|
489
|
-
({
|
|
490
|
-
id: e,
|
|
491
|
-
apiKey: n,
|
|
492
|
-
center: o,
|
|
493
|
-
zoom: i = 15,
|
|
494
|
-
markers: r,
|
|
495
|
-
selectedMarkerId: a,
|
|
496
|
-
onMarkerClick: c,
|
|
497
|
-
onBoundsChange: b,
|
|
498
|
-
consentGranted: u = !1,
|
|
499
|
-
onConsentRequest: f,
|
|
500
|
-
address: d,
|
|
501
|
-
contentLang: y,
|
|
502
|
-
consentDescription: p,
|
|
503
|
-
consentCta: M,
|
|
504
|
-
mapId: t,
|
|
505
|
-
size: m,
|
|
506
|
-
surface: w,
|
|
507
|
-
ariaLabel: h,
|
|
508
|
-
fitToPoints: v,
|
|
509
|
-
fitKey: I,
|
|
510
|
-
fitMaxZoom: P = 15,
|
|
511
|
-
className: G,
|
|
512
|
-
...N
|
|
513
|
-
}, ae) => {
|
|
514
|
-
const { t: R, i18n: ie } = A("ui"), Z = E(() => v ?? [], [v]), le = E(
|
|
515
|
-
() => I ?? Z.map((s) => `${re(s)}@${s.lat},${s.lng}`).sort().join("|"),
|
|
516
|
-
[I, Z]
|
|
517
|
-
), V = Z.length > 0, $ = k(V), q = fe(), ce = E(
|
|
518
|
-
() => `map-${q.replace(/[^a-zA-Z0-9-_]/g, "")}`,
|
|
519
|
-
[q]
|
|
520
|
-
), [D, de] = Y(!1);
|
|
521
|
-
C(() => {
|
|
522
|
-
if (typeof window > "u") return;
|
|
523
|
-
const s = window.matchMedia("(prefers-reduced-motion: reduce)"), g = () => de(s.matches);
|
|
524
|
-
return g(), s.addEventListener("change", g), () => s.removeEventListener("change", g);
|
|
525
|
-
}, []);
|
|
526
|
-
const H = E(() => `https://www.google.com/maps/search/?api=1&query=${d ? encodeURIComponent(d) : `${o.lat},${o.lng}`}`, [d, o.lat, o.lng]), z = k(null), B = k({
|
|
527
|
-
pendingInput: !1,
|
|
528
|
-
moved: !1,
|
|
529
|
-
programmatic: !1
|
|
530
|
-
}), _ = T(() => {
|
|
531
|
-
B.current = {
|
|
532
|
-
pendingInput: !1,
|
|
533
|
-
moved: !1,
|
|
534
|
-
programmatic: !0
|
|
535
|
-
};
|
|
536
|
-
}, []), j = T(
|
|
537
|
-
(s) => {
|
|
538
|
-
_(), c == null || c(s);
|
|
539
|
-
},
|
|
540
|
-
[_, c]
|
|
541
|
-
), pe = T((s) => {
|
|
542
|
-
z.current = s;
|
|
543
|
-
}, []), F = k(!1), W = k(null), J = k(0), O = T(
|
|
544
|
-
() => ({
|
|
545
|
-
panTo: (s) => {
|
|
546
|
-
var g;
|
|
547
|
-
return (g = z.current) == null ? void 0 : g.panTo(s);
|
|
548
|
-
},
|
|
549
|
-
setZoom: (s) => {
|
|
550
|
-
var g;
|
|
551
|
-
return (g = z.current) == null ? void 0 : g.setZoom(s);
|
|
552
|
-
},
|
|
553
|
-
selectMarker: (s) => {
|
|
554
|
-
var g;
|
|
555
|
-
return (g = z.current) == null ? void 0 : g.selectMarker(s);
|
|
556
|
-
},
|
|
557
|
-
// Without `isConsentGranted` an agent has no way to learn that
|
|
558
|
-
// its pan / zoom / select was swallowed by the GDPR gate rather
|
|
559
|
-
// than applied: under the default (`consentGranted={false}`) the
|
|
560
|
-
// whole Maps subtree is unmounted and every action optional-chains
|
|
561
|
-
// into nothing.
|
|
562
|
-
isConsentGranted: () => F.current,
|
|
563
|
-
getCenter: () => {
|
|
564
|
-
var s;
|
|
565
|
-
return ((s = z.current) == null ? void 0 : s.getCenter()) ?? null;
|
|
566
|
-
},
|
|
567
|
-
getZoom: () => {
|
|
568
|
-
var s;
|
|
569
|
-
return ((s = z.current) == null ? void 0 : s.getZoom()) ?? null;
|
|
570
|
-
},
|
|
571
|
-
getSelectedMarkerId: () => W.current,
|
|
572
|
-
getMarkerCount: () => J.current
|
|
573
|
-
}),
|
|
574
|
-
[]
|
|
575
|
-
);
|
|
576
|
-
be(ae, O, [O]);
|
|
577
|
-
const ue = E(
|
|
578
|
-
() => O(),
|
|
579
|
-
[O]
|
|
580
|
-
);
|
|
581
|
-
Te(Ge, ue, e), C(() => {
|
|
582
|
-
var g, L;
|
|
583
|
-
const s = $.current && !V;
|
|
584
|
-
if ($.current = V, !V) {
|
|
585
|
-
if (s) {
|
|
586
|
-
(g = z.current) == null || g.jumpTo(o, i);
|
|
587
|
-
return;
|
|
588
|
-
}
|
|
589
|
-
D || (L = z.current) == null || L.panTo(o);
|
|
590
|
-
}
|
|
591
|
-
}, [o.lat, o.lng, D, V]), C(() => {
|
|
592
|
-
var s;
|
|
593
|
-
V || (s = z.current) == null || s.setZoom(i);
|
|
594
|
-
}, [i, V]);
|
|
595
|
-
const [me, U] = Y(!1), X = u || me;
|
|
596
|
-
F.current = X, W.current = a ?? null, J.current = (r ?? []).length;
|
|
597
|
-
const he = T(() => {
|
|
598
|
-
if (f) {
|
|
599
|
-
f(), U(!0);
|
|
600
|
-
return;
|
|
601
|
-
}
|
|
602
|
-
U(!0);
|
|
603
|
-
}, [f]);
|
|
604
|
-
return /* @__PURE__ */ l(
|
|
605
|
-
"div",
|
|
606
|
-
{
|
|
607
|
-
className: Ne({ size: m, surface: w, className: G }),
|
|
608
|
-
"data-component": "map-view",
|
|
609
|
-
"data-component-id": e ?? ce,
|
|
610
|
-
role: "region",
|
|
611
|
-
"aria-label": h ?? R("mapView.label"),
|
|
612
|
-
...N,
|
|
613
|
-
children: /* @__PURE__ */ l("div", { className: Re({ size: m }), children: X ? (
|
|
614
|
-
// A provider failure shows the consent placeholder (its "Open in
|
|
615
|
-
// Google Maps" link needs no script) with "Load map" as the
|
|
616
|
-
// retry, instead of unmounting the host's React tree. The gate
|
|
617
|
-
// starts the provider only once Google's `core` and `maps`
|
|
618
|
-
// libraries have arrived.
|
|
619
|
-
/* @__PURE__ */ l(
|
|
620
|
-
Ee,
|
|
621
|
-
{
|
|
622
|
-
fallback: ({ reset: s }) => /* @__PURE__ */ l(
|
|
623
|
-
te,
|
|
624
|
-
{
|
|
625
|
-
address: d,
|
|
626
|
-
contentLang: y,
|
|
627
|
-
description: p ?? R("mapView.consentDescription"),
|
|
628
|
-
onLoadMap: s,
|
|
629
|
-
consentCta: void 0,
|
|
630
|
-
openInGoogleMapsHref: H
|
|
631
|
-
}
|
|
632
|
-
),
|
|
633
|
-
children: /* @__PURE__ */ l(ye, { libraries: ["maps"], pending: /* @__PURE__ */ l(se, {}), children: /* @__PURE__ */ l(
|
|
634
|
-
we,
|
|
635
|
-
{
|
|
636
|
-
apiKey: n,
|
|
637
|
-
language: ie.language,
|
|
638
|
-
children: /* @__PURE__ */ l(Be, { children: /* @__PURE__ */ S(
|
|
639
|
-
ve,
|
|
640
|
-
{
|
|
641
|
-
defaultCenter: o,
|
|
642
|
-
defaultZoom: i,
|
|
643
|
-
mapId: t,
|
|
644
|
-
gestureHandling: "cooperative",
|
|
645
|
-
disableDefaultUI: !1,
|
|
646
|
-
onClick: () => j(null),
|
|
647
|
-
className: "ds:[inline-size:100%] ds:[block-size:100%]",
|
|
648
|
-
children: [
|
|
649
|
-
/* @__PURE__ */ l(
|
|
650
|
-
je,
|
|
651
|
-
{
|
|
652
|
-
onHandleReady: pe,
|
|
653
|
-
onMarkerSelect: j,
|
|
654
|
-
onCameraMove: _
|
|
655
|
-
}
|
|
656
|
-
),
|
|
657
|
-
b ? /* @__PURE__ */ l(
|
|
658
|
-
Oe,
|
|
659
|
-
{
|
|
660
|
-
onBoundsChange: b,
|
|
661
|
-
userInteraction: B
|
|
662
|
-
}
|
|
663
|
-
) : null,
|
|
664
|
-
v ? /* @__PURE__ */ l(
|
|
665
|
-
He,
|
|
666
|
-
{
|
|
667
|
-
points: Z,
|
|
668
|
-
fitKey: le,
|
|
669
|
-
maxZoom: P,
|
|
670
|
-
onCameraMove: _
|
|
671
|
-
}
|
|
672
|
-
) : null,
|
|
673
|
-
/* @__PURE__ */ l(Fe, { children: (r ?? []).map((s) => {
|
|
674
|
-
const g = a != null && a === s.id, L = R("mapView.markerLabel", {
|
|
675
|
-
label: s.label ?? s.id
|
|
676
|
-
});
|
|
677
|
-
return t ? /* @__PURE__ */ l(
|
|
678
|
-
ke,
|
|
679
|
-
{
|
|
680
|
-
position: s.position,
|
|
681
|
-
title: L,
|
|
682
|
-
"aria-label": L,
|
|
683
|
-
"data-selected": g ? "true" : "false",
|
|
684
|
-
onClick: () => j(s.id),
|
|
685
|
-
children: /* @__PURE__ */ l(
|
|
686
|
-
Me,
|
|
687
|
-
{
|
|
688
|
-
background: "var(--primary)",
|
|
689
|
-
borderColor: "var(--primary)",
|
|
690
|
-
glyphColor: "var(--primary-foreground)"
|
|
691
|
-
}
|
|
692
|
-
)
|
|
693
|
-
},
|
|
694
|
-
s.id
|
|
695
|
-
) : /* @__PURE__ */ l(
|
|
696
|
-
ze,
|
|
697
|
-
{
|
|
698
|
-
position: s.position,
|
|
699
|
-
title: L,
|
|
700
|
-
onClick: () => j(s.id)
|
|
701
|
-
},
|
|
702
|
-
s.id
|
|
703
|
-
);
|
|
704
|
-
}) })
|
|
705
|
-
]
|
|
706
|
-
}
|
|
707
|
-
) })
|
|
708
|
-
}
|
|
709
|
-
) })
|
|
710
|
-
}
|
|
711
|
-
)
|
|
712
|
-
) : /* @__PURE__ */ l(
|
|
713
|
-
te,
|
|
714
|
-
{
|
|
715
|
-
address: d,
|
|
716
|
-
contentLang: y,
|
|
717
|
-
description: p ?? R("mapView.consentDescription"),
|
|
718
|
-
onLoadMap: he,
|
|
719
|
-
consentCta: M,
|
|
720
|
-
openInGoogleMapsHref: H
|
|
721
|
-
}
|
|
722
|
-
) })
|
|
723
|
-
}
|
|
724
|
-
);
|
|
725
|
-
}
|
|
726
|
-
);
|
|
727
|
-
We.displayName = "MapView";
|
|
728
|
-
export {
|
|
729
|
-
We as M
|
|
730
|
-
};
|
|
731
|
-
//# sourceMappingURL=map-view-Dn7aXZJw.js.map
|