@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,34 +1,34 @@
|
|
|
1
1
|
import { jsxs as p, jsx as t, Fragment as Ue } from "react/jsx-runtime";
|
|
2
|
-
import { createElement as wo, useContext as ki, createContext as Ii, useState as A, useCallback as Z, useMemo as ee, useRef as F, useEffect as oe, useId as St, forwardRef as
|
|
2
|
+
import { createElement as wo, useContext as ki, createContext as Ii, useState as A, useCallback as Z, useMemo as ee, useRef as F, useEffect as oe, useId as St, forwardRef as zr, Fragment as To, useLayoutEffect as Ks } from "react";
|
|
3
3
|
import { useTranslation as $e } from "react-i18next";
|
|
4
4
|
import { u as Lo } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
5
|
-
import { A as Ao } from "./appointment-timeline-
|
|
5
|
+
import { A as Ao } from "./appointment-timeline-DxLu3afn.js";
|
|
6
6
|
import { a as yi } from "./workflow-status-9wb7iWUd.js";
|
|
7
7
|
import { A as dr, g as Eo } from "./avatar-Dp5apm1d.js";
|
|
8
8
|
import { B as ot } from "./badge-BUk4RjTS.js";
|
|
9
9
|
import { S as Hn, C as Ci } from "./skeleton-tTWJpvAq.js";
|
|
10
|
-
import { S as
|
|
10
|
+
import { S as Dr } from "./stethoscope-sZXGC43m.js";
|
|
11
11
|
import { A as Gs, a as Ni } from "./entity-card-fpm-KUKc.js";
|
|
12
|
-
import { T as Oo, P as Ro,
|
|
13
|
-
import { C as Wo, a as Po, u as
|
|
12
|
+
import { T as Oo, P as Ro, S as Mo } from "./task-editor-CSa6vQ9r.js";
|
|
13
|
+
import { C as Wo, a as Po, u as xi, d as Bo } from "./control-room-rail-DcJpHbp4.js";
|
|
14
14
|
import { S as ms } from "./scroll-area-CY5SLYNw.js";
|
|
15
15
|
import { d as vt, c as qs, b as ra } from "./toast-BNoN8Qjh.js";
|
|
16
|
-
import { T as Ga, a as
|
|
16
|
+
import { T as Ga, a as Di } from "./tooltip-uEBdD1-5.js";
|
|
17
17
|
import { A as he } from "./alert-C4WKViaS.js";
|
|
18
18
|
import { B as ge } from "./button-DohK_Ak_.js";
|
|
19
|
-
import { f as ft, b as ja, c as _o, d as $o, e as zo, A as
|
|
19
|
+
import { f as ft, b as ja, c as _o, d as $o, e as zo, A as Si, u as Fo, R as Sr, g as Ho, D as wi, M as Vo, C as js, h as Uo, i as Ko, j as Go, k as qo, l as wa, I as jo, s as Yo } from "./use-appointment-details-read-BMAiQYo6.js";
|
|
20
20
|
import { V as va } from "./visually-hidden-BHxEUGyT.js";
|
|
21
21
|
import { C as Xo } from "./calendar-_sgjuH3L.js";
|
|
22
|
-
import { C as lr } from "./card-
|
|
23
|
-
import { C as zn } from "./checkbox-
|
|
22
|
+
import { C as lr } from "./card-DVO3x8E-.js";
|
|
23
|
+
import { C as zn } from "./checkbox-DV4sNDeB.js";
|
|
24
24
|
import { a as Ua } from "./key-value-pair-DOTl68_U.js";
|
|
25
25
|
import { K as Jo } from "./kbd-Bx7eQv9f.js";
|
|
26
26
|
import { R as Zo } from "./resource-chip-DB5jDwUO.js";
|
|
27
|
-
import { T as ur } from "./tag-
|
|
27
|
+
import { T as ur } from "./tag-BNlcEJfE.js";
|
|
28
28
|
import { S as Zr } from "./switch-DO6uC4HJ.js";
|
|
29
29
|
import { I as qe } from "./icon-button-S8_weU3g.js";
|
|
30
30
|
import { B as Ma } from "./button-group-CUnNnt8a.js";
|
|
31
|
-
import { D as sa } from "./date-picker-
|
|
31
|
+
import { D as sa } from "./date-picker-DBVTj6lO.js";
|
|
32
32
|
import { D as dn } from "./dialog-BTjSQjdY.js";
|
|
33
33
|
import { D as U } from "./dropdown-menu-CqxBthww.js";
|
|
34
34
|
import { F as Ie } from "./form-field-CyHfOVKF.js";
|
|
@@ -40,28 +40,29 @@ import { R as xt } from "./radio-BZQs6_36.js";
|
|
|
40
40
|
import { R as Sa } from "./radio-group-ChIKyeSJ.js";
|
|
41
41
|
import { R as Qr } from "./rotate-ccw-BBQnIVTr.js";
|
|
42
42
|
import { C as ps } from "./calendar-plus-BFrIRE4r.js";
|
|
43
|
-
import { S as
|
|
43
|
+
import { S as Ti } from "./square-check-big-dj0o8yA3.js";
|
|
44
44
|
import { H as _a } from "./hourglass-BEAzW1wE.js";
|
|
45
|
-
import { c as
|
|
45
|
+
import { c as Fr } from "./createLucideIcon-DhHxpK9K.js";
|
|
46
46
|
import { E as hr } from "./eye-off-C_4xkbRP.js";
|
|
47
|
-
import { E as
|
|
47
|
+
import { E as Li } from "./eye-BjhN2nYf.js";
|
|
48
48
|
import { P as Ys } from "./printer-rkK0T1gi.js";
|
|
49
49
|
import { S as ac } from "./sliders-horizontal-D-F97cnE.js";
|
|
50
|
-
import { A as
|
|
51
|
-
import { U as
|
|
50
|
+
import { A as wr } from "./armchair-BaLDW6Hz.js";
|
|
51
|
+
import { U as Ai } from "./user-cog-BTn98Arm.js";
|
|
52
52
|
import { C as rc } from "./chevron-down-DWE7GSq9.js";
|
|
53
53
|
import { C as sc } from "./chevron-left-B8cOyH-V.js";
|
|
54
|
-
import { C as
|
|
54
|
+
import { C as Ei } from "./chevron-right-I9AeSxH2.js";
|
|
55
55
|
import { c as $a } from "./index-D2ZczOXr.js";
|
|
56
56
|
import { E as gs } from "./empty-state-DwJ5YNzz.js";
|
|
57
57
|
import { P as mr, a as ic } from "./panel-header-CbtlTe85.js";
|
|
58
|
-
import { P as
|
|
58
|
+
import { P as Oi } from "./panel-subview-DCyvn-49.js";
|
|
59
59
|
import { S as Fn } from "./select-uESzXTX6.js";
|
|
60
|
-
import { T as
|
|
61
|
-
import { a as
|
|
60
|
+
import { T as Ri } from "./text-area-COMVJ1yE.js";
|
|
61
|
+
import { a as Tr } from "./whatsapp-button-DV9JFmtq.js";
|
|
62
|
+
import { F as Mi } from "./funnel-DpPV3Qkd.js";
|
|
62
63
|
import { P as Wi } from "./plus-DzMQ_c6b.js";
|
|
63
64
|
import { L as Hr } from "./lock-ClAFG1gy.js";
|
|
64
|
-
import { p as oc
|
|
65
|
+
import { p as oc } from "./privacy-mask-text-B8YfzB7L.js";
|
|
65
66
|
import { C as es } from "./calendar-days-BGWklvE-.js";
|
|
66
67
|
import { P as cc } from "./phone-FceYcIFQ.js";
|
|
67
68
|
import { U as Pi } from "./user-plus-BtcOLgNU.js";
|
|
@@ -69,35 +70,37 @@ import { C as ar } from "./calendar-clock-hbObjfGY.js";
|
|
|
69
70
|
import { E as dc } from "./ellipsis-dRo9ouSU.js";
|
|
70
71
|
import { P as Bi } from "./pencil-B1sKKyuT.js";
|
|
71
72
|
import { T as rr } from "./trash-2-uumy3fy1.js";
|
|
73
|
+
import { c as kr } from "./privacy-mask-BlJK51MD.js";
|
|
72
74
|
import { N as Xs } from "./notebook-pen-CO7HoM-W.js";
|
|
73
75
|
import { createPortal as lc } from "react-dom";
|
|
74
76
|
import { G as Ya, h as Js, c as uc, A as hc, C as _i } from "./color-picker-AcaWuKah.js";
|
|
75
77
|
import { s as mc, S as pc } from "./signature-status-chip-pIoQjvH8.js";
|
|
76
78
|
import { b as gc } from "./appointment-workflow-status-DMjuIK90.js";
|
|
77
|
-
import { N as vc } from "./notes-panel-
|
|
79
|
+
import { N as vc } from "./notes-panel-BVYG_MJE.js";
|
|
78
80
|
import { C as vs } from "./combobox-duuDRI1t.js";
|
|
79
81
|
import { S as fc } from "./state-backed-text-input-DVETOhSS.js";
|
|
80
82
|
import { N as ns } from "./number-input-CVwI1ltI.js";
|
|
81
83
|
import { T as bc } from "./time-picker-DDr5vhwQ.js";
|
|
82
|
-
import { D as kc } from "./data-table-
|
|
84
|
+
import { D as kc } from "./data-table-DXaE2Ret.js";
|
|
83
85
|
import { T as fs } from "./timestamp-DPLDWdxA.js";
|
|
84
|
-
import { I as Zs } from "./icon-button-group-
|
|
86
|
+
import { I as Zs } from "./icon-button-group-C9mPK-bX.js";
|
|
85
87
|
import { C as Ic, b as yc, a as Cc } from "./collapsible-DVPM46bq.js";
|
|
86
|
-
import { g as Nc } from "./date-
|
|
87
|
-
import { f as xc } from "./format
|
|
88
|
+
import { g as Nc } from "./date-locale-OG-MupVD.js";
|
|
89
|
+
import { f as xc } from "./format-ql5WTsYT.js";
|
|
88
90
|
import { R as Dc } from "./repeat-CvQa5rZt.js";
|
|
91
|
+
import { a as $i } from "./compact-editor-fields-cP6yh7xv.js";
|
|
89
92
|
import { T as Sc } from "./transaction-chip-CohY6sTA.js";
|
|
90
93
|
import { V as wc } from "./video-BheNGvsu.js";
|
|
91
|
-
import { M as
|
|
94
|
+
import { M as zi } from "./map-pin-BaY37-Km.js";
|
|
92
95
|
import { U as Tc } from "./user-x-DYszNtIg.js";
|
|
93
|
-
import { G as
|
|
96
|
+
import { G as Fi } from "./globe-sHBW1JN5.js";
|
|
94
97
|
import { A as Qs } from "./arrow-left-BfaGqVam.js";
|
|
95
98
|
import { H as ei } from "./history-CK2JaU2g.js";
|
|
96
|
-
import { C as
|
|
99
|
+
import { C as Ir } from "./copy-vRpqqHtY.js";
|
|
97
100
|
import { C as ts } from "./clipboard-list-rSzfIYZB.js";
|
|
98
|
-
import { X as
|
|
99
|
-
import { M as
|
|
100
|
-
import { M as
|
|
101
|
+
import { X as Hi } from "./x-B5YnXwCz.js";
|
|
102
|
+
import { M as Vi } from "./message-square-Bye4ATvx.js";
|
|
103
|
+
import { M as Ui } from "./mail-BqXVF2zH.js";
|
|
101
104
|
import { P as Lc } from "./pen-line-D0De5zdl.js";
|
|
102
105
|
import { C as Ac } from "./check-DrFSN__t.js";
|
|
103
106
|
import { S as Ec } from "./send-C5kDJ-Mz.js";
|
|
@@ -116,7 +119,7 @@ const Mc = [
|
|
|
116
119
|
["path", { d: "M3 10h18", key: "8toen8" }],
|
|
117
120
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
118
121
|
["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }]
|
|
119
|
-
], Vr =
|
|
122
|
+
], Vr = Fr("calendar-search", Mc);
|
|
120
123
|
/**
|
|
121
124
|
* @license lucide-react v1.22.0 - ISC
|
|
122
125
|
*
|
|
@@ -124,47 +127,32 @@ const Mc = [
|
|
|
124
127
|
* See the LICENSE file in the root directory of this source tree.
|
|
125
128
|
*/
|
|
126
129
|
const Wc = [
|
|
127
|
-
[
|
|
128
|
-
"path",
|
|
129
|
-
{
|
|
130
|
-
d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",
|
|
131
|
-
key: "sc7q7i"
|
|
132
|
-
}
|
|
133
|
-
]
|
|
134
|
-
], Ui = vr("funnel", Wc);
|
|
135
|
-
/**
|
|
136
|
-
* @license lucide-react v1.22.0 - ISC
|
|
137
|
-
*
|
|
138
|
-
* This source code is licensed under the ISC license.
|
|
139
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/
|
|
141
|
-
const Pc = [
|
|
142
130
|
["path", { d: "M16 5H3", key: "m91uny" }],
|
|
143
131
|
["path", { d: "M11 12H3", key: "51ecnj" }],
|
|
144
132
|
["path", { d: "M16 19H3", key: "zzsher" }],
|
|
145
133
|
["path", { d: "M18 9v6", key: "1twb98" }],
|
|
146
134
|
["path", { d: "M21 12h-6", key: "bt1uis" }]
|
|
147
|
-
],
|
|
135
|
+
], Pc = Fr("list-plus", Wc);
|
|
148
136
|
/**
|
|
149
137
|
* @license lucide-react v1.22.0 - ISC
|
|
150
138
|
*
|
|
151
139
|
* This source code is licensed under the ISC license.
|
|
152
140
|
* See the LICENSE file in the root directory of this source tree.
|
|
153
141
|
*/
|
|
154
|
-
const
|
|
142
|
+
const Bc = [
|
|
155
143
|
["path", { d: "M13 5h8", key: "a7qcls" }],
|
|
156
144
|
["path", { d: "M13 12h8", key: "h98zly" }],
|
|
157
145
|
["path", { d: "M13 19h8", key: "c3s6r1" }],
|
|
158
146
|
["path", { d: "m3 17 2 2 4-4", key: "1jhpwq" }],
|
|
159
147
|
["rect", { x: "3", y: "4", width: "6", height: "6", rx: "1", key: "cif1o7" }]
|
|
160
|
-
], bs =
|
|
148
|
+
], bs = Fr("list-todo", Bc);
|
|
161
149
|
/**
|
|
162
150
|
* @license lucide-react v1.22.0 - ISC
|
|
163
151
|
*
|
|
164
152
|
* This source code is licensed under the ISC license.
|
|
165
153
|
* See the LICENSE file in the root directory of this source tree.
|
|
166
154
|
*/
|
|
167
|
-
const
|
|
155
|
+
const _c = [
|
|
168
156
|
[
|
|
169
157
|
"path",
|
|
170
158
|
{
|
|
@@ -173,7 +161,7 @@ const $c = [
|
|
|
173
161
|
}
|
|
174
162
|
],
|
|
175
163
|
["path", { d: "M15 3v5a1 1 0 0 0 1 1h5", key: "6s6qgf" }]
|
|
176
|
-
],
|
|
164
|
+
], $c = Fr("sticky-note", _c), Ki = Ii(null);
|
|
177
165
|
function Gi({
|
|
178
166
|
value: e,
|
|
179
167
|
children: n
|
|
@@ -188,7 +176,7 @@ function Vn() {
|
|
|
188
176
|
);
|
|
189
177
|
return e;
|
|
190
178
|
}
|
|
191
|
-
const
|
|
179
|
+
const zc = "grp-none";
|
|
192
180
|
function qi(e) {
|
|
193
181
|
const n = new Map(e.operators.map((l) => [l.id, l])), a = new Set(e.inactiveIds), r = (l) => l.sequenceNumber ?? Number.MAX_SAFE_INTEGER, i = (l) => [...l].sort((u, h) => {
|
|
194
182
|
const v = Number(a.has(u.id)) - Number(a.has(h.id));
|
|
@@ -204,12 +192,12 @@ function qi(e) {
|
|
|
204
192
|
}
|
|
205
193
|
const c = e.operators.filter((l) => !o.has(l.id));
|
|
206
194
|
return c.length > 0 && d.push({
|
|
207
|
-
id:
|
|
195
|
+
id: zc,
|
|
208
196
|
name: e.withoutGroupLabel,
|
|
209
197
|
operators: i(c)
|
|
210
198
|
}), d.sort((l, u) => l.name.localeCompare(u.name, e.locale));
|
|
211
199
|
}
|
|
212
|
-
function
|
|
200
|
+
function Lr(e, n) {
|
|
213
201
|
var d;
|
|
214
202
|
const a = (c) => c.phases && c.phases.length > 0 ? ` [${c.phases.join(", ")}]` : "", r = (c) => {
|
|
215
203
|
switch (n) {
|
|
@@ -227,8 +215,8 @@ function Ar(e, n) {
|
|
|
227
215
|
);
|
|
228
216
|
return o.length > 0 ? o.join(" / ") : void 0;
|
|
229
217
|
}
|
|
230
|
-
function
|
|
231
|
-
return
|
|
218
|
+
function Fc(e) {
|
|
219
|
+
return Lr({ cares: e }, "name") ?? "";
|
|
232
220
|
}
|
|
233
221
|
function Wa(e, n, a) {
|
|
234
222
|
var r, i, o, d;
|
|
@@ -248,7 +236,7 @@ function Wa(e, n, a) {
|
|
|
248
236
|
function Dt(e) {
|
|
249
237
|
return e == null ? "" : String(e);
|
|
250
238
|
}
|
|
251
|
-
function
|
|
239
|
+
function Hc(e, n) {
|
|
252
240
|
const a = Dt(e), r = a ? n : void 0;
|
|
253
241
|
return {
|
|
254
242
|
id: a,
|
|
@@ -269,19 +257,19 @@ function as(e, n) {
|
|
|
269
257
|
const r = n === "sms" ? a.phone : a.email;
|
|
270
258
|
return r === void 0 ? "unknown" : r.trim() === "" ? "none" : (n === "sms" ? a.smsEnabled : a.emailEnabled) === !1 ? "optedOut" : "ready";
|
|
271
259
|
}
|
|
272
|
-
function
|
|
260
|
+
function Ar(e) {
|
|
273
261
|
return e === "ready";
|
|
274
262
|
}
|
|
275
|
-
function
|
|
263
|
+
function Er(e) {
|
|
276
264
|
return e === "ready" || e === "unknown";
|
|
277
265
|
}
|
|
278
|
-
function
|
|
266
|
+
function Or(e, n) {
|
|
279
267
|
return e === "optedOut" ? n.optedOut : e === "none" ? n.none : null;
|
|
280
268
|
}
|
|
281
|
-
function
|
|
269
|
+
function Vc(e) {
|
|
282
270
|
return e === void 0 ? "unknown" : e.length === 0 ? "none" : "ready";
|
|
283
271
|
}
|
|
284
|
-
function
|
|
272
|
+
function Uc(e) {
|
|
285
273
|
return e === "ready";
|
|
286
274
|
}
|
|
287
275
|
const Yr = /* @__PURE__ */ new Map(), ks = {
|
|
@@ -293,7 +281,7 @@ const Yr = /* @__PURE__ */ new Map(), ks = {
|
|
|
293
281
|
Yr.clear();
|
|
294
282
|
}
|
|
295
283
|
};
|
|
296
|
-
function
|
|
284
|
+
function pp() {
|
|
297
285
|
ks.clear();
|
|
298
286
|
}
|
|
299
287
|
const Ka = {
|
|
@@ -340,12 +328,12 @@ function Xr(e) {
|
|
|
340
328
|
}
|
|
341
329
|
function Jt(e, n) {
|
|
342
330
|
const a = Dt(e);
|
|
343
|
-
return
|
|
331
|
+
return Hc(a, a ? n.patientById(a) : void 0);
|
|
344
332
|
}
|
|
345
333
|
function Is(e, n) {
|
|
346
334
|
return Jt(e.patientId, n);
|
|
347
335
|
}
|
|
348
|
-
const
|
|
336
|
+
const gp = [
|
|
349
337
|
{ id: "day", stem: "Day" },
|
|
350
338
|
{ id: "threeDays", stem: "ThreeDays" },
|
|
351
339
|
{ id: "workingWeek", stem: "Week", workingWeek: !0 },
|
|
@@ -381,21 +369,21 @@ const mp = [
|
|
|
381
369
|
careDescription: Yt(["off", "name", "code", "nameCode"]),
|
|
382
370
|
colorAssociation: Yt(["care", "operator", "chair"])
|
|
383
371
|
};
|
|
384
|
-
function
|
|
372
|
+
function Kc(e, n, a) {
|
|
385
373
|
const r = Yi[n](a);
|
|
386
374
|
r !== void 0 && (e[n] = r);
|
|
387
375
|
}
|
|
388
|
-
function
|
|
376
|
+
function Gc(e) {
|
|
389
377
|
if (!e || typeof e != "object") return;
|
|
390
378
|
const n = e, a = { ...ys };
|
|
391
379
|
for (const r of Object.keys(Yi))
|
|
392
|
-
|
|
380
|
+
Kc(a, r, n[r]);
|
|
393
381
|
return a;
|
|
394
382
|
}
|
|
395
|
-
function
|
|
383
|
+
function qc(e) {
|
|
396
384
|
return ji(e.chairs);
|
|
397
385
|
}
|
|
398
|
-
function
|
|
386
|
+
function jc(e) {
|
|
399
387
|
return ji(e.operators);
|
|
400
388
|
}
|
|
401
389
|
function ss(e, n) {
|
|
@@ -407,10 +395,10 @@ const Xi = {
|
|
|
407
395
|
extended: { min: "07:00", max: "21:00" },
|
|
408
396
|
full: { min: "00:00", max: "24:00" }
|
|
409
397
|
};
|
|
410
|
-
function
|
|
398
|
+
function Yc(e, n) {
|
|
411
399
|
return _o(e, n.nowIso);
|
|
412
400
|
}
|
|
413
|
-
const
|
|
401
|
+
const Xc = 100, Jc = [
|
|
414
402
|
"daily",
|
|
415
403
|
"weekly",
|
|
416
404
|
"monthly",
|
|
@@ -434,7 +422,7 @@ function Ur(e) {
|
|
|
434
422
|
).getDate();
|
|
435
423
|
return { nth: Math.ceil(n / 7), last: n + 7 > a };
|
|
436
424
|
}
|
|
437
|
-
function
|
|
425
|
+
function Zc(e, n) {
|
|
438
426
|
const a = new Date(e), r = a.getDate();
|
|
439
427
|
a.setDate(1), a.setMonth(a.getMonth() + n);
|
|
440
428
|
const i = new Date(a.getFullYear(), a.getMonth() + 1, 0).getDate();
|
|
@@ -466,19 +454,19 @@ function Cs(e) {
|
|
|
466
454
|
isTask: e.event.isTask
|
|
467
455
|
};
|
|
468
456
|
}
|
|
469
|
-
const
|
|
470
|
-
function
|
|
457
|
+
const Qc = "00:15", We = "none", Jr = [15, 30, 45, 60, 90, 120];
|
|
458
|
+
function ed(e, n) {
|
|
471
459
|
const a = n.replace(/\D/g, "");
|
|
472
460
|
return a.length === 0 || e.replace(/\D/g, "").startsWith(a) ? 1 : 0;
|
|
473
461
|
}
|
|
474
|
-
function
|
|
462
|
+
function nd(e, n, a) {
|
|
475
463
|
return e != null && e.editEventId && e.colorHex ? e.colorHex : (n === "care" ? (e == null ? void 0 : e.colorHex) ?? Wa("care", { cares: e == null ? void 0 : e.cares }, a) : Wa(
|
|
476
464
|
n,
|
|
477
465
|
{ operatorId: e == null ? void 0 : e.operatorId, chairId: e == null ? void 0 : e.chairId },
|
|
478
466
|
a
|
|
479
467
|
) ?? (e == null ? void 0 : e.colorHex)) ?? Ya[6].hex;
|
|
480
468
|
}
|
|
481
|
-
function
|
|
469
|
+
function td(e) {
|
|
482
470
|
var a;
|
|
483
471
|
const n = {};
|
|
484
472
|
for (const r of e) {
|
|
@@ -491,7 +479,7 @@ function ad(e) {
|
|
|
491
479
|
r.sort((i, o) => i.startIso.localeCompare(o.startIso));
|
|
492
480
|
return n;
|
|
493
481
|
}
|
|
494
|
-
function
|
|
482
|
+
function ad(e, n) {
|
|
495
483
|
if (!e) return {};
|
|
496
484
|
const a = [];
|
|
497
485
|
if (e.kind === "plan") {
|
|
@@ -520,14 +508,14 @@ function rd(e, n) {
|
|
|
520
508
|
description: a.map((r) => r.name).join(", ")
|
|
521
509
|
};
|
|
522
510
|
}
|
|
523
|
-
function
|
|
511
|
+
function rd(e) {
|
|
524
512
|
const n = e.filter((a) => {
|
|
525
513
|
const r = mc(a.operator, a.patient);
|
|
526
514
|
return r !== "signed" && r !== "notRequired";
|
|
527
515
|
}).length;
|
|
528
516
|
return { toSign: n, allSigned: e.length > 0 && n === 0 };
|
|
529
517
|
}
|
|
530
|
-
function
|
|
518
|
+
function sd(e, n, a) {
|
|
531
519
|
const r = [];
|
|
532
520
|
n.status && e.event.status && n.status !== e.event.status && r.push({ kind: "status", from: e.event.status, to: n.status });
|
|
533
521
|
const i = [];
|
|
@@ -546,11 +534,11 @@ function id(e, n, a) {
|
|
|
546
534
|
const d = Dt(e.event.patientId) || void 0;
|
|
547
535
|
n.patientId !== d && i.push("patient"), !!n.isTelehealth != !!e.event.isTelehealth && i.push("type");
|
|
548
536
|
const c = n.careLink ? a.careEntriesFromLink(n.careLink) : n.cares ?? e.cares;
|
|
549
|
-
return
|
|
537
|
+
return Lr({ description: n.care, cares: c }, "name") !== Lr({ description: e.description, cares: e.cares }, "name") && i.push("care"), n.operatorId !== e.operatorId && i.push("operator"), n.chairId !== e.chairId && i.push("chair"), n.colorHex.toLowerCase() !== (e.event.backgroundColor ?? "").toLowerCase() && i.push("colour"), i.length > 0 && r.push({ kind: "edited", fields: i }), r;
|
|
550
538
|
}
|
|
551
|
-
const
|
|
552
|
-
function
|
|
553
|
-
return
|
|
539
|
+
const id = {};
|
|
540
|
+
function od(e) {
|
|
541
|
+
return Vc(e.priceLists);
|
|
554
542
|
}
|
|
555
543
|
function ni(e, n) {
|
|
556
544
|
var i, o, d;
|
|
@@ -566,28 +554,28 @@ Fa("confirmed"), Fa("waiting"), Fa("in_care"), Fa("done"), Fa("cancelled"), Fa("
|
|
|
566
554
|
function is(e) {
|
|
567
555
|
return new Date(e.length === 10 ? `${e}T00:00:00` : e).getTime();
|
|
568
556
|
}
|
|
569
|
-
function
|
|
557
|
+
function cd(e, n) {
|
|
570
558
|
return e.appointmentId ? n.baseEvents.find((a) => a.event.id === e.appointmentId) : void 0;
|
|
571
559
|
}
|
|
572
|
-
const
|
|
560
|
+
const dd = [
|
|
573
561
|
"all",
|
|
574
562
|
"noAppointment",
|
|
575
563
|
"scheduledOver30",
|
|
576
564
|
"waitingOver30"
|
|
577
|
-
],
|
|
565
|
+
], ld = {
|
|
578
566
|
all: "quickViewAll",
|
|
579
567
|
noAppointment: "quickViewNoAppointment",
|
|
580
568
|
scheduledOver30: "quickViewScheduledOver30",
|
|
581
569
|
waitingOver30: "quickViewWaitingOver30"
|
|
582
|
-
},
|
|
570
|
+
}, ud = 30;
|
|
583
571
|
function Zi(e, n, a) {
|
|
584
572
|
if (n === "all") return !0;
|
|
585
573
|
if (n === "noAppointment")
|
|
586
574
|
return !e.appointmentId && !!e.patientId;
|
|
587
|
-
const r =
|
|
575
|
+
const r = ud * 864e5, i = new Date(a.nowIso).getTime();
|
|
588
576
|
if (n === "waitingOver30")
|
|
589
577
|
return i - is(a.waitingSinceIso(e)) > r;
|
|
590
|
-
const o =
|
|
578
|
+
const o = cd(e, a);
|
|
591
579
|
return o ? i - is(String(o.event.start)) > r : !1;
|
|
592
580
|
}
|
|
593
581
|
function Qi(e, n) {
|
|
@@ -601,7 +589,7 @@ function Qi(e, n) {
|
|
|
601
589
|
callToAction: "processBooking"
|
|
602
590
|
};
|
|
603
591
|
}
|
|
604
|
-
function
|
|
592
|
+
function hd(e, n) {
|
|
605
593
|
switch (e) {
|
|
606
594
|
case "processBooking":
|
|
607
595
|
return !!(n.patientId && n.operatorId);
|
|
@@ -611,12 +599,12 @@ function md(e, n) {
|
|
|
611
599
|
return !0;
|
|
612
600
|
}
|
|
613
601
|
}
|
|
614
|
-
function
|
|
602
|
+
function md(e) {
|
|
615
603
|
var n;
|
|
616
604
|
return !!e.patientId || !!((n = e.description) != null && n.trim());
|
|
617
605
|
}
|
|
618
|
-
const Nt = "any", ti = 20,
|
|
619
|
-
function
|
|
606
|
+
const Nt = "any", ti = 20, pd = 30, gd = 185, vd = 30;
|
|
607
|
+
function fd(e, n) {
|
|
620
608
|
return Math.round((n.getTime() - e.getTime()) / 864e5);
|
|
621
609
|
}
|
|
622
610
|
function Rt(e) {
|
|
@@ -633,7 +621,7 @@ function eo(e, n) {
|
|
|
633
621
|
const a = Math.max(e.startMin, n.startMin), r = Math.min(e.endMin, n.endMin);
|
|
634
622
|
return a < r ? { startMin: a, endMin: r } : void 0;
|
|
635
623
|
}
|
|
636
|
-
function
|
|
624
|
+
function bd(e, n) {
|
|
637
625
|
var d, c;
|
|
638
626
|
const a = [], r = (l, u, h) => {
|
|
639
627
|
var w;
|
|
@@ -696,11 +684,11 @@ function kd(e, n) {
|
|
|
696
684
|
}
|
|
697
685
|
return a;
|
|
698
686
|
}
|
|
699
|
-
const
|
|
700
|
-
function
|
|
687
|
+
const kd = "var(--warning)";
|
|
688
|
+
function Nr(e) {
|
|
701
689
|
return e.id.startsWith("closure-");
|
|
702
690
|
}
|
|
703
|
-
function
|
|
691
|
+
function Id(e, n) {
|
|
704
692
|
var l;
|
|
705
693
|
const a = [], r = Ya[10], i = (u, h, v, y, R) => {
|
|
706
694
|
a.push({
|
|
@@ -737,7 +725,7 @@ function yd(e, n) {
|
|
|
737
725
|
u,
|
|
738
726
|
e.labels.holiday(h.name),
|
|
739
727
|
{
|
|
740
|
-
backgroundColor:
|
|
728
|
+
backgroundColor: kd
|
|
741
729
|
},
|
|
742
730
|
v
|
|
743
731
|
);
|
|
@@ -759,7 +747,7 @@ function Ba(e, n) {
|
|
|
759
747
|
const a = e.privacyModeTitle;
|
|
760
748
|
return a !== void 0 && a.trim() !== "" ? a : "•••";
|
|
761
749
|
}
|
|
762
|
-
function
|
|
750
|
+
function yd(e, n, a) {
|
|
763
751
|
const { event: r } = e, i = Is(r, a).record, o = a.bookingContacts[r.id];
|
|
764
752
|
let d = [];
|
|
765
753
|
return n || (d = i ? $o(i) : [], d.length === 0 && o && (d = [{ label: "mobile", number: o.phone }])), {
|
|
@@ -777,10 +765,10 @@ function Cd(e, n, a) {
|
|
|
777
765
|
unassigned: r.hasUnassignedPatient === !0
|
|
778
766
|
};
|
|
779
767
|
}
|
|
780
|
-
function
|
|
768
|
+
function Cd(e, n) {
|
|
781
769
|
return e.allDay !== n.allDay ? e.allDay ? -1 : 1 : e.start.getTime() - n.start.getTime();
|
|
782
770
|
}
|
|
783
|
-
function
|
|
771
|
+
function Nd(e, n) {
|
|
784
772
|
const { rows: a, days: r, axisKind: i, visibleChairIds: o, visibleOperatorIds: d, privacy: c } = e, l = a.filter(
|
|
785
773
|
(v) => (!v.chairId || o.includes(v.chairId)) && (!v.operatorId || d.includes(v.operatorId))
|
|
786
774
|
), u = n.chairs.filter((v) => o.includes(v.id)), h = n.operators.filter(
|
|
@@ -790,8 +778,8 @@ function xd(e, n) {
|
|
|
790
778
|
const y = Rt(v), R = l.filter(
|
|
791
779
|
(C) => Rt(ja(C.event.start)) === y
|
|
792
780
|
), w = R.filter(
|
|
793
|
-
(C) => !C.event.isTask && !C.event.isInternal && !C.event.isDraft && !
|
|
794
|
-
).map((C) =>
|
|
781
|
+
(C) => !C.event.isTask && !C.event.isInternal && !C.event.isDraft && !Nr(C.event)
|
|
782
|
+
).map((C) => yd(C, c, n)).sort(Cd);
|
|
795
783
|
let D;
|
|
796
784
|
if (i === "chair")
|
|
797
785
|
D = u.map((C) => ({
|
|
@@ -831,16 +819,16 @@ function xd(e, n) {
|
|
|
831
819
|
return { date: v, groups: D, tasks: T, notes: E };
|
|
832
820
|
});
|
|
833
821
|
}
|
|
834
|
-
const
|
|
822
|
+
const xd = 26, Dd = 10, Sd = 22, ri = "ds:[--ag-cell-horizontal-padding:var(--spacing-sm)]";
|
|
835
823
|
function si(e, n = 1) {
|
|
836
|
-
const a = 1 + e.phones.length + (e.unassigned ? 2 : 0), r = (e.description ? Math.ceil(e.description.length /
|
|
824
|
+
const a = 1 + e.phones.length + (e.unassigned ? 2 : 0), r = (e.description ? Math.ceil(e.description.length / Sd) : 0) + e.careLines.reduce(
|
|
837
825
|
(i, o) => {
|
|
838
826
|
var d;
|
|
839
827
|
return i + 1 + ((d = o.elements) != null && d.length ? 1 : 0);
|
|
840
828
|
},
|
|
841
829
|
0
|
|
842
830
|
);
|
|
843
|
-
return
|
|
831
|
+
return Dd + xd * Math.max(a, r, n, 1);
|
|
844
832
|
}
|
|
845
833
|
function os(e, n, a, r, i) {
|
|
846
834
|
var d;
|
|
@@ -860,7 +848,7 @@ function os(e, n, a, r, i) {
|
|
|
860
848
|
});
|
|
861
849
|
}
|
|
862
850
|
}
|
|
863
|
-
function
|
|
851
|
+
function wd(e, n) {
|
|
864
852
|
const a = /* @__PURE__ */ new Map();
|
|
865
853
|
for (const i of e) {
|
|
866
854
|
const d = Rt(i.start), c = a.get(d) ?? { resourceId: void 0, slots: [] };
|
|
@@ -888,7 +876,7 @@ function Td(e, n) {
|
|
|
888
876
|
}
|
|
889
877
|
return r.sort((i, o) => i.start.getTime() - o.start.getTime());
|
|
890
878
|
}
|
|
891
|
-
function
|
|
879
|
+
function Td(e) {
|
|
892
880
|
const n = e.filter(
|
|
893
881
|
(r) => Number.isFinite(r.start.getTime()) && Number.isFinite(r.durationMin) && r.durationMin > 0 && Number.isFinite(
|
|
894
882
|
new Date(r.start.getTime() + r.durationMin * 6e4).getTime()
|
|
@@ -908,7 +896,7 @@ function Ld(e) {
|
|
|
908
896
|
}), o = c;
|
|
909
897
|
}
|
|
910
898
|
}
|
|
911
|
-
return
|
|
899
|
+
return wd(a).map((r) => {
|
|
912
900
|
const i = [
|
|
913
901
|
...new Map(
|
|
914
902
|
n.filter(
|
|
@@ -935,7 +923,7 @@ function Ld(e) {
|
|
|
935
923
|
};
|
|
936
924
|
});
|
|
937
925
|
}
|
|
938
|
-
function
|
|
926
|
+
function Ld(e, n) {
|
|
939
927
|
const a = /* @__PURE__ */ new Map();
|
|
940
928
|
for (const r of e) {
|
|
941
929
|
if (!Number.isFinite(r.start.getTime()) || !Number.isFinite(r.durationMin) || r.durationMin <= 0)
|
|
@@ -958,7 +946,7 @@ function Ad(e, n) {
|
|
|
958
946
|
...i.resourceId ? { resourceId: i.resourceId } : {}
|
|
959
947
|
})).sort((r, i) => r.start.getTime() - i.start.getTime());
|
|
960
948
|
}
|
|
961
|
-
function
|
|
949
|
+
function Ad(e, n) {
|
|
962
950
|
var u;
|
|
963
951
|
const a = e.durationMin, r = new Date(n.nowIso).getTime(), i = Number.isNaN(r) ? Number.NEGATIVE_INFINITY : r, o = e.rows.filter((h) => !h.event.allDay && h.event.end).map((h) => ({
|
|
964
952
|
chairId: h.chairId,
|
|
@@ -986,7 +974,7 @@ function Ed(e, n) {
|
|
|
986
974
|
for (const D of y) {
|
|
987
975
|
const T = n.businessHours.operators[D.id], E = T ? eo(v, T[c.getDay()]) : v;
|
|
988
976
|
if (E)
|
|
989
|
-
for (let W = E.startMin; W + a <= E.endMin; W +=
|
|
977
|
+
for (let W = E.startMin; W + a <= E.endMin; W += pd) {
|
|
990
978
|
if (R.some(
|
|
991
979
|
(x) => W < x.endMin && W + a > x.startMin
|
|
992
980
|
))
|
|
@@ -1026,17 +1014,17 @@ const V = {
|
|
|
1026
1014
|
V.bookings,
|
|
1027
1015
|
V.findSlots
|
|
1028
1016
|
];
|
|
1029
|
-
function
|
|
1017
|
+
function Ed(e) {
|
|
1030
1018
|
const n = new Set(
|
|
1031
1019
|
Kr.filter((a) => e.includes(a))
|
|
1032
1020
|
);
|
|
1033
1021
|
return n.add(V.appointments), n;
|
|
1034
1022
|
}
|
|
1035
|
-
const
|
|
1023
|
+
const Od = new Set(Kr);
|
|
1036
1024
|
function Ns(e) {
|
|
1037
|
-
return
|
|
1025
|
+
return Od.has(e);
|
|
1038
1026
|
}
|
|
1039
|
-
function
|
|
1027
|
+
function Rd(e) {
|
|
1040
1028
|
const n = [], a = [], r = /* @__PURE__ */ new Set();
|
|
1041
1029
|
for (const i of e) {
|
|
1042
1030
|
const o = i == null ? void 0 : i.id;
|
|
@@ -1049,7 +1037,7 @@ const xs = [
|
|
|
1049
1037
|
"threeDays",
|
|
1050
1038
|
"week",
|
|
1051
1039
|
"month"
|
|
1052
|
-
],
|
|
1040
|
+
], Md = {
|
|
1053
1041
|
day: "Day",
|
|
1054
1042
|
threeDays: "ThreeDays",
|
|
1055
1043
|
week: "Week",
|
|
@@ -1059,12 +1047,12 @@ const xs = [
|
|
|
1059
1047
|
threeDays: "X",
|
|
1060
1048
|
week: "W",
|
|
1061
1049
|
month: "M"
|
|
1062
|
-
},
|
|
1063
|
-
function
|
|
1050
|
+
}, Wd = Yt(xs);
|
|
1051
|
+
function Pd(e) {
|
|
1064
1052
|
const n = e.toUpperCase();
|
|
1065
1053
|
return xs.find((a) => no[a] === n);
|
|
1066
1054
|
}
|
|
1067
|
-
const
|
|
1055
|
+
const Bd = [
|
|
1068
1056
|
"input",
|
|
1069
1057
|
"textarea",
|
|
1070
1058
|
"select",
|
|
@@ -1078,17 +1066,17 @@ const _d = [
|
|
|
1078
1066
|
'[role="dialog"]',
|
|
1079
1067
|
'[role="alertdialog"]'
|
|
1080
1068
|
].join(", ");
|
|
1069
|
+
function _d(e) {
|
|
1070
|
+
return e instanceof Element ? e.closest(Bd) === null : !0;
|
|
1071
|
+
}
|
|
1081
1072
|
function $d(e) {
|
|
1082
|
-
|
|
1073
|
+
if (!(e.defaultPrevented || e.repeat) && !(e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) && _d(e.target))
|
|
1074
|
+
return Pd(e.key);
|
|
1083
1075
|
}
|
|
1084
1076
|
function zd(e) {
|
|
1085
|
-
if (!(e.defaultPrevented || e.repeat) && !(e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) && $d(e.target))
|
|
1086
|
-
return Bd(e.key);
|
|
1087
|
-
}
|
|
1088
|
-
function Fd(e) {
|
|
1089
1077
|
return e ? [] : [0, 6];
|
|
1090
1078
|
}
|
|
1091
|
-
const
|
|
1079
|
+
const Rr = { min: 5, max: 240 }, pr = {
|
|
1092
1080
|
...ys,
|
|
1093
1081
|
/* Practice hours, not extended: the platform's time axis follows the
|
|
1094
1082
|
practice's opening and closing; the cog window stays an override. */
|
|
@@ -1097,26 +1085,26 @@ const Mr = { min: 5, max: 240 }, pr = {
|
|
|
1097
1085
|
operatorNameDisplay: "initials",
|
|
1098
1086
|
chairNameDisplay: "full",
|
|
1099
1087
|
mapsLink: !1
|
|
1100
|
-
},
|
|
1088
|
+
}, Fd = Yt([
|
|
1101
1089
|
"full",
|
|
1102
1090
|
"initials"
|
|
1103
|
-
]),
|
|
1104
|
-
function
|
|
1091
|
+
]), Hd = Yt(["full", "short"]);
|
|
1092
|
+
function Vd(e) {
|
|
1105
1093
|
if (typeof e != "number" || !Number.isFinite(e)) return;
|
|
1106
1094
|
const n = Math.round(e);
|
|
1107
|
-
return n >=
|
|
1095
|
+
return n >= Rr.min && n <= Rr.max ? n : void 0;
|
|
1108
1096
|
}
|
|
1109
1097
|
function to(e) {
|
|
1110
1098
|
if (!e || typeof e != "object") return;
|
|
1111
|
-
const n = e, a =
|
|
1099
|
+
const n = e, a = Gc(e) ?? { ...ys }, r = {
|
|
1112
1100
|
...pr,
|
|
1113
1101
|
...a,
|
|
1114
1102
|
window: n.window === void 0 ? pr.window : a.window
|
|
1115
|
-
}, i =
|
|
1103
|
+
}, i = Vd(n.defaultDurationMin);
|
|
1116
1104
|
i !== void 0 && (r.defaultDurationMin = i);
|
|
1117
|
-
const o =
|
|
1105
|
+
const o = Fd(n.operatorNameDisplay);
|
|
1118
1106
|
o !== void 0 && (r.operatorNameDisplay = o);
|
|
1119
|
-
const d =
|
|
1107
|
+
const d = Hd(n.chairNameDisplay);
|
|
1120
1108
|
d !== void 0 && (r.chairNameDisplay = d);
|
|
1121
1109
|
const c = sr(n.mapsLink);
|
|
1122
1110
|
return c !== void 0 && (r.mapsLink = c), r;
|
|
@@ -1133,7 +1121,7 @@ function ao(e) {
|
|
|
1133
1121
|
const a = Math.min(...n.map((i) => i.startMin)), r = Math.max(...n.map((i) => i.endMin));
|
|
1134
1122
|
return { min: ii(a), max: ii(r) };
|
|
1135
1123
|
}
|
|
1136
|
-
function
|
|
1124
|
+
function Ud(e, n) {
|
|
1137
1125
|
return e === "working" ? ao(n) : Xi[e];
|
|
1138
1126
|
}
|
|
1139
1127
|
function oi(e, n) {
|
|
@@ -1142,10 +1130,10 @@ function oi(e, n) {
|
|
|
1142
1130
|
function qa(e, n, a) {
|
|
1143
1131
|
return a === !0 ? [...e, ...n.filter((r) => !e.includes(r))] : e.filter((r) => !n.includes(r));
|
|
1144
1132
|
}
|
|
1145
|
-
function
|
|
1133
|
+
function Kd(e, n) {
|
|
1146
1134
|
return e.length + n.length;
|
|
1147
1135
|
}
|
|
1148
|
-
function
|
|
1136
|
+
function Gd(e, n, a) {
|
|
1149
1137
|
if (!a) return [];
|
|
1150
1138
|
const r = new Set(n), i = /* @__PURE__ */ new Set();
|
|
1151
1139
|
for (const o of e) {
|
|
@@ -1156,22 +1144,22 @@ function qd(e, n, a) {
|
|
|
1156
1144
|
}
|
|
1157
1145
|
return n.filter((o) => i.has(o));
|
|
1158
1146
|
}
|
|
1159
|
-
function
|
|
1147
|
+
function qd(e) {
|
|
1160
1148
|
const n = new Set(e.inactiveIds), a = new Set(e.keepIds);
|
|
1161
1149
|
return e.operators.filter((r) => !n.has(r.id) || e.showDisabled || a.has(r.id)).map((r) => r.id);
|
|
1162
1150
|
}
|
|
1163
|
-
function
|
|
1151
|
+
function jd(e, n, a) {
|
|
1164
1152
|
if (a) return [...e];
|
|
1165
1153
|
const r = new Set(n);
|
|
1166
1154
|
return e.filter((i) => !r.has(i.id));
|
|
1167
1155
|
}
|
|
1168
|
-
function
|
|
1156
|
+
function Yd(e, n) {
|
|
1169
1157
|
return n === "full" ? e.title : e.shortTitle ?? e.title.replace(/\s+/g, "").slice(0, 2);
|
|
1170
1158
|
}
|
|
1171
|
-
function
|
|
1159
|
+
function Xd(e, n, a) {
|
|
1172
1160
|
return n ? `${e.title} · ${a}` : e.title;
|
|
1173
1161
|
}
|
|
1174
|
-
function
|
|
1162
|
+
function yr(e, n) {
|
|
1175
1163
|
return Math.round(
|
|
1176
1164
|
(new Date(n).getTime() - new Date(e).getTime()) / 6e4
|
|
1177
1165
|
);
|
|
@@ -1181,7 +1169,7 @@ function ci(e, n, a) {
|
|
|
1181
1169
|
(r) => r.event.id === n ? { ...r, event: { ...r.event, end: a } } : r
|
|
1182
1170
|
);
|
|
1183
1171
|
}
|
|
1184
|
-
const
|
|
1172
|
+
const Mr = [
|
|
1185
1173
|
"this",
|
|
1186
1174
|
"following",
|
|
1187
1175
|
"all"
|
|
@@ -1204,7 +1192,7 @@ function cs(e, n, a) {
|
|
|
1204
1192
|
return (((c = o.series) == null ? void 0 : c.index) ?? 0) - (((l = d.series) == null ? void 0 : l.index) ?? 0);
|
|
1205
1193
|
}).map((o) => o.event.id);
|
|
1206
1194
|
}
|
|
1207
|
-
function
|
|
1195
|
+
function Jd(e, n) {
|
|
1208
1196
|
const a = n.start.getTime(), r = n.end.getTime();
|
|
1209
1197
|
let i = !1, o = !1;
|
|
1210
1198
|
for (const d of e) {
|
|
@@ -1215,41 +1203,41 @@ function Zd(e, n) {
|
|
|
1215
1203
|
}
|
|
1216
1204
|
return { chairBusy: i, operatorBusy: o };
|
|
1217
1205
|
}
|
|
1218
|
-
function
|
|
1206
|
+
function Zd(e, n) {
|
|
1219
1207
|
const a = [];
|
|
1220
1208
|
for (const r of e ?? [])
|
|
1221
1209
|
for (const i of r.careId ? n[r.careId] ?? [] : [])
|
|
1222
1210
|
a.includes(i) || a.push(i);
|
|
1223
1211
|
return a;
|
|
1224
1212
|
}
|
|
1225
|
-
function
|
|
1213
|
+
function Wr(e) {
|
|
1226
1214
|
return {
|
|
1227
1215
|
sms: as(e, "sms"),
|
|
1228
1216
|
email: as(e, "email")
|
|
1229
1217
|
};
|
|
1230
1218
|
}
|
|
1231
1219
|
function di(e) {
|
|
1232
|
-
const n =
|
|
1233
|
-
return
|
|
1220
|
+
const n = Wr(e);
|
|
1221
|
+
return Ar(n.sms) ? "sms" : Ar(n.email) ? "email" : "none";
|
|
1234
1222
|
}
|
|
1235
|
-
const
|
|
1223
|
+
const Qd = [
|
|
1236
1224
|
...new Set(
|
|
1237
1225
|
hc.map((e) => e.textColor).filter(
|
|
1238
1226
|
(e) => !!e
|
|
1239
1227
|
)
|
|
1240
1228
|
)
|
|
1241
1229
|
];
|
|
1242
|
-
function
|
|
1230
|
+
function el(e) {
|
|
1243
1231
|
if (!e) return;
|
|
1244
1232
|
const n = Js(e);
|
|
1245
1233
|
let a, r = 0;
|
|
1246
|
-
for (const i of
|
|
1234
|
+
for (const i of Qd) {
|
|
1247
1235
|
const o = uc(Js(i), n);
|
|
1248
1236
|
o > r && (r = o, a = i);
|
|
1249
1237
|
}
|
|
1250
1238
|
return a;
|
|
1251
1239
|
}
|
|
1252
|
-
function
|
|
1240
|
+
function nl(e, n, a, r) {
|
|
1253
1241
|
const i = new Date(e.event.start), o = e.event.end ? new Date(e.event.end) : void 0, d = o ? o.getTime() - i.getTime() : 0, c = (R) => String(R).padStart(2, "0"), l = new Date(n.start), u = e.event.allDay ? `${l.getFullYear()}-${c(l.getMonth() + 1)}-${c(l.getDate())}` : l.toISOString(), h = e.event.allDay || !o ? void 0 : new Date(l.getTime() + d).toISOString(), v = n.axisKind === "chair" && n.resourceId ? { chairId: n.resourceId } : n.axisKind === "operator" && n.resourceId ? { operatorId: n.resourceId } : {};
|
|
1254
1242
|
return {
|
|
1255
1243
|
event: {
|
|
@@ -1271,7 +1259,7 @@ function tl(e, n, a, r) {
|
|
|
1271
1259
|
series: void 0
|
|
1272
1260
|
};
|
|
1273
1261
|
}
|
|
1274
|
-
function
|
|
1262
|
+
function tl(e, n, a, r, i) {
|
|
1275
1263
|
if (r.length === 0 || a.allDay) return [...e];
|
|
1276
1264
|
const o = new Date(n.event.start), d = new Date(a.date);
|
|
1277
1265
|
d.setHours(a.time.hours, a.time.minutes, 0, 0);
|
|
@@ -1297,35 +1285,35 @@ function al(e, n, a, r, i) {
|
|
|
1297
1285
|
};
|
|
1298
1286
|
});
|
|
1299
1287
|
}
|
|
1300
|
-
function
|
|
1288
|
+
function al(e, n) {
|
|
1301
1289
|
const a = [], r = e.date.getTime();
|
|
1302
1290
|
return (!n.visibleRange || r < n.visibleRange.start || r >= n.visibleRange.end) && a.push("range"), n.hiddenDays.includes(e.date.getDay()) && a.push("weekend"), e.chairId && n.selectedChairIds.length > 0 && !n.selectedChairIds.includes(e.chairId) && a.push("chair"), e.operatorId && n.selectedOperatorIds.length > 0 && !n.selectedOperatorIds.includes(e.operatorId) && a.push("operator"), a;
|
|
1303
1291
|
}
|
|
1304
|
-
const
|
|
1292
|
+
const rl = 7, sl = 7, Pr = 180, il = {
|
|
1305
1293
|
backDays: 0,
|
|
1306
|
-
forwardDays:
|
|
1294
|
+
forwardDays: rl
|
|
1307
1295
|
};
|
|
1308
|
-
function
|
|
1296
|
+
function ol(e, n) {
|
|
1309
1297
|
const a = new Date(e);
|
|
1310
1298
|
a.setHours(0, 0, 0, 0);
|
|
1311
1299
|
const r = new Date(n);
|
|
1312
1300
|
return r.setHours(0, 0, 0, 0), Math.round((r.getTime() - a.getTime()) / 864e5);
|
|
1313
1301
|
}
|
|
1314
|
-
function
|
|
1302
|
+
function cl(e, n) {
|
|
1315
1303
|
const a = new Date(e);
|
|
1316
1304
|
a.setDate(a.getDate() - n.backDays), a.setHours(0, 0, 0, 0);
|
|
1317
1305
|
const r = new Date(e);
|
|
1318
1306
|
return r.setDate(r.getDate() + n.forwardDays), r.setHours(23, 59, 59, 999), { startMs: a.getTime(), endMs: r.getTime() };
|
|
1319
1307
|
}
|
|
1320
1308
|
function li(e, n) {
|
|
1321
|
-
const a = (r) => Math.min(
|
|
1309
|
+
const a = (r) => Math.min(Pr, r + sl);
|
|
1322
1310
|
return n === "earlier" ? { ...e, backDays: a(e.backDays) } : { ...e, forwardDays: a(e.forwardDays) };
|
|
1323
1311
|
}
|
|
1324
|
-
function
|
|
1325
|
-
const r =
|
|
1312
|
+
function dl(e, n, a) {
|
|
1313
|
+
const r = ol(n, a), i = (o, d) => Math.min(Pr, Math.max(o, d));
|
|
1326
1314
|
return r < 0 ? { ...e, backDays: i(e.backDays, -r) } : { ...e, forwardDays: i(e.forwardDays, r) };
|
|
1327
1315
|
}
|
|
1328
|
-
function
|
|
1316
|
+
function ll(e, n) {
|
|
1329
1317
|
return e.filter((a) => {
|
|
1330
1318
|
const r = a.event;
|
|
1331
1319
|
if (r.isTask || r.isInternal || r.isDraft || r.status === "cancelled") return !1;
|
|
@@ -1364,12 +1352,12 @@ function ro(e, n, a, r, i) {
|
|
|
1364
1352
|
}
|
|
1365
1353
|
};
|
|
1366
1354
|
}
|
|
1367
|
-
function
|
|
1355
|
+
function ul(e, n) {
|
|
1368
1356
|
const a = e.event;
|
|
1369
1357
|
return a.isTask || a.status === "cancelled" ? !1 : a.hasUnassignedPatient === !0 || !e.operatorId || n.chairs.length > 0 && !e.chairId;
|
|
1370
1358
|
}
|
|
1371
|
-
function
|
|
1372
|
-
return e.filter((a) =>
|
|
1359
|
+
function hl(e, n) {
|
|
1360
|
+
return e.filter((a) => ul(a, n));
|
|
1373
1361
|
}
|
|
1374
1362
|
function so(e, n, a, r) {
|
|
1375
1363
|
const i = e.event, o = String(i.id), d = n.bookingContacts[o], c = r ?? (d == null ? void 0 : d.bookedAtIso), l = c ? new Date(c) : null, u = n.chairs.find((h) => h.id === e.chairId);
|
|
@@ -1393,19 +1381,19 @@ const io = {
|
|
|
1393
1381
|
operator: !0,
|
|
1394
1382
|
chair: !0
|
|
1395
1383
|
};
|
|
1396
|
-
function
|
|
1384
|
+
function ml(e, n) {
|
|
1397
1385
|
return e.filter(
|
|
1398
1386
|
(a) => n.patient && a.needsPatient || n.operator && a.needsOperator || n.chair && a.needsChair
|
|
1399
1387
|
);
|
|
1400
1388
|
}
|
|
1401
|
-
const
|
|
1389
|
+
const Cr = {
|
|
1402
1390
|
patientId: "",
|
|
1403
1391
|
patientAssigned: "",
|
|
1404
1392
|
operatorId: "",
|
|
1405
1393
|
appointmentScheduled: "",
|
|
1406
1394
|
description: ""
|
|
1407
1395
|
};
|
|
1408
|
-
function
|
|
1396
|
+
function pl(e) {
|
|
1409
1397
|
return [
|
|
1410
1398
|
e.patientId,
|
|
1411
1399
|
e.patientAssigned,
|
|
@@ -1418,7 +1406,7 @@ function gl(e) {
|
|
|
1418
1406
|
e.description.trim()
|
|
1419
1407
|
].filter(Boolean).length;
|
|
1420
1408
|
}
|
|
1421
|
-
function
|
|
1409
|
+
function gl(e, n, a) {
|
|
1422
1410
|
var l, u, h;
|
|
1423
1411
|
const r = e.appointmentId ? n.find((v) => v.event.id === e.appointmentId) : void 0, i = Jt(e.patientId, a), o = Jt(
|
|
1424
1412
|
r == null ? void 0 : r.event.patientId,
|
|
@@ -1446,17 +1434,17 @@ function ui(e, n, a) {
|
|
|
1446
1434
|
const r = is(
|
|
1447
1435
|
typeof e == "string" ? e : e.toISOString()
|
|
1448
1436
|
);
|
|
1449
|
-
return !(n && r <
|
|
1437
|
+
return !(n && r < vl(n) || a && r > fl(a));
|
|
1450
1438
|
}
|
|
1451
|
-
function
|
|
1439
|
+
function vl(e) {
|
|
1452
1440
|
const n = new Date(e);
|
|
1453
1441
|
return n.setHours(0, 0, 0, 0), n.getTime();
|
|
1454
1442
|
}
|
|
1455
|
-
function
|
|
1443
|
+
function fl(e) {
|
|
1456
1444
|
const n = new Date(e);
|
|
1457
1445
|
return n.setHours(23, 59, 59, 999), n.getTime();
|
|
1458
1446
|
}
|
|
1459
|
-
function
|
|
1447
|
+
function bl(e, n, a) {
|
|
1460
1448
|
var o;
|
|
1461
1449
|
const { entry: r } = e;
|
|
1462
1450
|
if (n.patientId && ![e.patientRef.id, e.appointmentPatientRef.id].includes(n.patientId))
|
|
@@ -1484,10 +1472,10 @@ function kl(e, n, a) {
|
|
|
1484
1472
|
const i = n.description.trim().toLocaleLowerCase();
|
|
1485
1473
|
return !(i && !(((o = r.description) == null ? void 0 : o.toLocaleLowerCase()) ?? "").includes(i));
|
|
1486
1474
|
}
|
|
1487
|
-
function
|
|
1488
|
-
return e.filter((o) => Zi(o, a, i)).map((o) =>
|
|
1475
|
+
function kl(e, n, a, r, i) {
|
|
1476
|
+
return e.filter((o) => Zi(o, a, i)).map((o) => gl(o, n, i)).filter((o) => bl(o, r, i));
|
|
1489
1477
|
}
|
|
1490
|
-
const
|
|
1478
|
+
const Il = [
|
|
1491
1479
|
"linked",
|
|
1492
1480
|
"patient",
|
|
1493
1481
|
"memo"
|
|
@@ -1495,13 +1483,13 @@ const yl = [
|
|
|
1495
1483
|
function oo(e) {
|
|
1496
1484
|
return e.appointmentId ? "linked" : Dt(e.patientId) !== "" ? "patient" : "memo";
|
|
1497
1485
|
}
|
|
1498
|
-
function
|
|
1499
|
-
return
|
|
1486
|
+
function yl(e) {
|
|
1487
|
+
return Il.map((n) => ({
|
|
1500
1488
|
kind: n,
|
|
1501
1489
|
rows: e.filter((a) => oo(a.entry) === n)
|
|
1502
1490
|
})).filter((n) => n.rows.length > 0);
|
|
1503
1491
|
}
|
|
1504
|
-
function
|
|
1492
|
+
function Cl(e, n) {
|
|
1505
1493
|
const a = (r) => e.filter((i) => Zi(i, r, n)).length;
|
|
1506
1494
|
return {
|
|
1507
1495
|
all: a("all"),
|
|
@@ -1510,7 +1498,7 @@ function Nl(e, n) {
|
|
|
1510
1498
|
waitingOver30: a("waitingOver30")
|
|
1511
1499
|
};
|
|
1512
1500
|
}
|
|
1513
|
-
function
|
|
1501
|
+
function Nl(e) {
|
|
1514
1502
|
const { entry: n } = e;
|
|
1515
1503
|
if (n.whatsappPhoneNumber !== void 0)
|
|
1516
1504
|
return n.whatsappPhoneNumber.trim();
|
|
@@ -1521,7 +1509,7 @@ function hi(e) {
|
|
|
1521
1509
|
const n = new Date(e), a = `${n.getMonth() + 1}`.padStart(2, "0"), r = `${n.getDate()}`.padStart(2, "0");
|
|
1522
1510
|
return `${n.getFullYear()}-${a}-${r}`;
|
|
1523
1511
|
}
|
|
1524
|
-
function
|
|
1512
|
+
function xl(e) {
|
|
1525
1513
|
const n = F({ iso: e, wallMs: Date.now() });
|
|
1526
1514
|
n.current.iso !== e && (n.current = { iso: e, wallMs: Date.now() });
|
|
1527
1515
|
const [, a] = A(0);
|
|
@@ -1543,14 +1531,14 @@ function Dl(e) {
|
|
|
1543
1531
|
const r = Date.now() - n.current.wallMs;
|
|
1544
1532
|
return new Date(new Date(n.current.iso).getTime() + r);
|
|
1545
1533
|
}
|
|
1546
|
-
function
|
|
1534
|
+
function Dl(e, n, a) {
|
|
1547
1535
|
const r = Math.round((n - e) / 6e4);
|
|
1548
1536
|
return new Intl.RelativeTimeFormat(a, { numeric: "auto" }).format(
|
|
1549
1537
|
r,
|
|
1550
1538
|
"minute"
|
|
1551
1539
|
);
|
|
1552
1540
|
}
|
|
1553
|
-
function
|
|
1541
|
+
function Sl(e, n, a) {
|
|
1554
1542
|
const r = Math.max(0, Math.round((n - e) / 6e4)), i = (c, l) => new Intl.NumberFormat(a, {
|
|
1555
1543
|
style: "unit",
|
|
1556
1544
|
unit: l,
|
|
@@ -1560,7 +1548,7 @@ function wl(e, n, a) {
|
|
|
1560
1548
|
const o = r % 60, d = i(Math.floor(r / 60), "hour");
|
|
1561
1549
|
return o === 0 ? d : `${d} ${i(o, "minute")}`;
|
|
1562
1550
|
}
|
|
1563
|
-
function
|
|
1551
|
+
function wl({
|
|
1564
1552
|
rows: e,
|
|
1565
1553
|
locale: n,
|
|
1566
1554
|
privacy: a,
|
|
@@ -1568,12 +1556,12 @@ function Tl({
|
|
|
1568
1556
|
stateSinceByEventId: i,
|
|
1569
1557
|
loading: o = !1
|
|
1570
1558
|
}) {
|
|
1571
|
-
const { t: d } = $e("ui"), c = Vn(), [l, u] = A(
|
|
1559
|
+
const { t: d } = $e("ui"), c = Vn(), [l, u] = A(il), v = xl(c.nowIso).getTime(), y = hi(c.nowIso), R = d(
|
|
1572
1560
|
"calendarWorkspace.details.patientNotLoaded"
|
|
1573
1561
|
), w = ee(
|
|
1574
|
-
() =>
|
|
1562
|
+
() => ll(
|
|
1575
1563
|
e,
|
|
1576
|
-
|
|
1564
|
+
cl(c.nowIso, l)
|
|
1577
1565
|
).map(
|
|
1578
1566
|
(x) => ro(
|
|
1579
1567
|
x,
|
|
@@ -1620,7 +1608,7 @@ function Tl({
|
|
|
1620
1608
|
n: T.length
|
|
1621
1609
|
}) }),
|
|
1622
1610
|
W ? /* @__PURE__ */ t(ot, { variant: "accentSoft", size: "sm", children: d("calendarWorkspace.inc1.rail.upcomingSummaryNext", {
|
|
1623
|
-
time:
|
|
1611
|
+
time: Dl(
|
|
1624
1612
|
v,
|
|
1625
1613
|
new Date(W.startIso).getTime(),
|
|
1626
1614
|
n
|
|
@@ -1644,7 +1632,7 @@ function Tl({
|
|
|
1644
1632
|
id: "calendar-upcoming-live-heading",
|
|
1645
1633
|
className: "type-eyebrow ds:m-0 ds:flex ds:items-center ds:gap-[var(--spacing-2xs)] ds:text-[color:var(--info-foreground)]",
|
|
1646
1634
|
children: [
|
|
1647
|
-
/* @__PURE__ */ t(
|
|
1635
|
+
/* @__PURE__ */ t(Dr, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
|
|
1648
1636
|
d("calendarWorkspace.inc1.rail.upcomingLiveTitle")
|
|
1649
1637
|
]
|
|
1650
1638
|
}
|
|
@@ -1656,7 +1644,7 @@ function Tl({
|
|
|
1656
1644
|
className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-xs)] ds:p-0",
|
|
1657
1645
|
children: T.map(({ item: x, sinceIso: b }) => {
|
|
1658
1646
|
var q;
|
|
1659
|
-
const z = Ni(x.state), f = z.Icon, _ = d(`appointmentCard.state.${x.state}`), we = b ?
|
|
1647
|
+
const z = Ni(x.state), f = z.Icon, _ = d(`appointmentCard.state.${x.state}`), we = b ? Sl(new Date(b).getTime(), v, n) : void 0;
|
|
1660
1648
|
return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ p(
|
|
1661
1649
|
"button",
|
|
1662
1650
|
{
|
|
@@ -1754,17 +1742,17 @@ function Tl({
|
|
|
1754
1742
|
onOpenAppointment: (x) => r(x.id),
|
|
1755
1743
|
onLoadEarlier: () => u((x) => li(x, "earlier")),
|
|
1756
1744
|
onLoadLater: () => u((x) => li(x, "later")),
|
|
1757
|
-
hasMoreEarlier: l.backDays <
|
|
1758
|
-
hasMoreLater: l.forwardDays <
|
|
1745
|
+
hasMoreEarlier: l.backDays < Pr,
|
|
1746
|
+
hasMoreLater: l.forwardDays < Pr,
|
|
1759
1747
|
onJumpToDate: (x) => u(
|
|
1760
|
-
(b) =>
|
|
1748
|
+
(b) => dl(b, c.nowIso, x)
|
|
1761
1749
|
)
|
|
1762
1750
|
}
|
|
1763
1751
|
)
|
|
1764
1752
|
}
|
|
1765
1753
|
);
|
|
1766
1754
|
}
|
|
1767
|
-
function
|
|
1755
|
+
function Tl(e) {
|
|
1768
1756
|
const n = Vn(), a = ee(
|
|
1769
1757
|
() => {
|
|
1770
1758
|
var o;
|
|
@@ -1797,11 +1785,11 @@ function Ll(e) {
|
|
|
1797
1785
|
}
|
|
1798
1786
|
);
|
|
1799
1787
|
}
|
|
1800
|
-
function
|
|
1801
|
-
return e == null || e.occurrence instanceof Date && Number.isFinite(e.occurrence.getTime()) && e.occurrence.getFullYear() === n.date.getFullYear() && e.occurrence.getMonth() === n.date.getMonth() && e.occurrence.getDate() === n.date.getDate() && e.occurrence.getHours() === n.time.hours && e.occurrence.getMinutes() === n.time.minutes && Array.isArray(e.scopes) && e.scopes.length > 0 && e.scopes.every((a) =>
|
|
1788
|
+
function Ll(e, n) {
|
|
1789
|
+
return e == null || e.occurrence instanceof Date && Number.isFinite(e.occurrence.getTime()) && e.occurrence.getFullYear() === n.date.getFullYear() && e.occurrence.getMonth() === n.date.getMonth() && e.occurrence.getDate() === n.date.getDate() && e.occurrence.getHours() === n.time.hours && e.occurrence.getMinutes() === n.time.minutes && Array.isArray(e.scopes) && e.scopes.length > 0 && e.scopes.every((a) => Mr.includes(a));
|
|
1802
1790
|
}
|
|
1803
|
-
const
|
|
1804
|
-
function
|
|
1791
|
+
const Al = ["25%", "33%", "20%", "40%", "25%"];
|
|
1792
|
+
function El({
|
|
1805
1793
|
eventId: e,
|
|
1806
1794
|
load: n,
|
|
1807
1795
|
onCancel: a,
|
|
@@ -1818,7 +1806,7 @@ function Ol({
|
|
|
1818
1806
|
if (!v.signal.aborted) {
|
|
1819
1807
|
if (y.status === "ready") {
|
|
1820
1808
|
const D = y.prefill;
|
|
1821
|
-
if (D.editEventId !== e || !(D.date instanceof Date) || !Number.isFinite(D.date.getTime()) || !Number.isFinite(D.durationMin) || D.durationMin < 0 || D.durationMin === 0 && !D.allDay || !Number.isInteger((R = D.time) == null ? void 0 : R.hours) || D.time.hours < 0 || D.time.hours > 23 || !Number.isInteger((w = D.time) == null ? void 0 : w.minutes) || D.time.minutes < 0 || D.time.minutes > 59 || !
|
|
1809
|
+
if (D.editEventId !== e || !(D.date instanceof Date) || !Number.isFinite(D.date.getTime()) || !Number.isFinite(D.durationMin) || D.durationMin < 0 || D.durationMin === 0 && !D.allDay || !Number.isInteger((R = D.time) == null ? void 0 : R.hours) || D.time.hours < 0 || D.time.hours > 23 || !Number.isInteger((w = D.time) == null ? void 0 : w.minutes) || D.time.minutes < 0 || D.time.minutes > 59 || !Ll(y.series, D))
|
|
1822
1810
|
throw new Error(o.current);
|
|
1823
1811
|
}
|
|
1824
1812
|
c({ eventId: e, source: n, value: y });
|
|
@@ -1854,7 +1842,7 @@ function Ol({
|
|
|
1854
1842
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
1855
1843
|
children: [
|
|
1856
1844
|
/* @__PURE__ */ t("span", { role: "status", className: "ds:sr-only", children: i("common.loading") }),
|
|
1857
|
-
|
|
1845
|
+
Al.map((v, y) => /* @__PURE__ */ p(
|
|
1858
1846
|
"div",
|
|
1859
1847
|
{
|
|
1860
1848
|
"aria-hidden": "true",
|
|
@@ -1898,7 +1886,7 @@ function Ol({
|
|
|
1898
1886
|
}
|
|
1899
1887
|
);
|
|
1900
1888
|
}
|
|
1901
|
-
function
|
|
1889
|
+
function Ol(e, n, a) {
|
|
1902
1890
|
const r = n.prefill, i = new Date(r.date);
|
|
1903
1891
|
return i.setHours(r.time.hours, r.time.minutes, 0, 0), {
|
|
1904
1892
|
...e,
|
|
@@ -1921,7 +1909,7 @@ function Rl(e, n, a) {
|
|
|
1921
1909
|
}
|
|
1922
1910
|
};
|
|
1923
1911
|
}
|
|
1924
|
-
function
|
|
1912
|
+
function Rl({
|
|
1925
1913
|
eventId: e,
|
|
1926
1914
|
load: n,
|
|
1927
1915
|
children: a
|
|
@@ -1947,11 +1935,11 @@ function Ml({
|
|
|
1947
1935
|
"data-event-id": e,
|
|
1948
1936
|
"data-status": o.status,
|
|
1949
1937
|
className: "ds:flex ds:h-full ds:min-h-0 ds:flex-col",
|
|
1950
|
-
children: /* @__PURE__ */ t(
|
|
1938
|
+
children: /* @__PURE__ */ t(Si, { state: o, onRetry: d })
|
|
1951
1939
|
}
|
|
1952
1940
|
);
|
|
1953
1941
|
}
|
|
1954
|
-
function
|
|
1942
|
+
function Ml(e, n) {
|
|
1955
1943
|
return {
|
|
1956
1944
|
patientId: n,
|
|
1957
1945
|
notes: e.notes,
|
|
@@ -1964,7 +1952,7 @@ function Wl(e, n) {
|
|
|
1964
1952
|
} : e.onRetry
|
|
1965
1953
|
};
|
|
1966
1954
|
}
|
|
1967
|
-
function
|
|
1955
|
+
function Wl({
|
|
1968
1956
|
details: e,
|
|
1969
1957
|
patientId: n = ((D) => (D = e.patient) == null ? void 0 : D.id)(),
|
|
1970
1958
|
notesSeam: a,
|
|
@@ -1995,7 +1983,7 @@ function Pl({
|
|
|
1995
1983
|
"data-event-id": e.eventId,
|
|
1996
1984
|
className: "ds:flex ds:h-full ds:min-h-0 ds:flex-col",
|
|
1997
1985
|
children: /* @__PURE__ */ t(
|
|
1998
|
-
|
|
1986
|
+
Si,
|
|
1999
1987
|
{
|
|
2000
1988
|
state: { status: "ready", read: e },
|
|
2001
1989
|
patientId: n,
|
|
@@ -2008,7 +1996,7 @@ function Pl({
|
|
|
2008
1996
|
privacyTitle: R,
|
|
2009
1997
|
mapsLink: h,
|
|
2010
1998
|
noteUnrecordedEdits: v,
|
|
2011
|
-
notesPreview: M && a ?
|
|
1999
|
+
notesPreview: M && a ? Ml(a, M) : void 0,
|
|
2012
2000
|
onOpenNotes: M && r ? (b) => r(M, b) : void 0,
|
|
2013
2001
|
readOnly: i,
|
|
2014
2002
|
onStatusChange: l && ((b) => l(b)),
|
|
@@ -2038,7 +2026,7 @@ function Pl({
|
|
|
2038
2026
|
}
|
|
2039
2027
|
);
|
|
2040
2028
|
}
|
|
2041
|
-
function
|
|
2029
|
+
function Pl({
|
|
2042
2030
|
editor: e,
|
|
2043
2031
|
notes: n,
|
|
2044
2032
|
active: a,
|
|
@@ -2063,7 +2051,7 @@ function Bl({
|
|
|
2063
2051
|
)
|
|
2064
2052
|
] });
|
|
2065
2053
|
}
|
|
2066
|
-
function
|
|
2054
|
+
function Bl({
|
|
2067
2055
|
patientId: e,
|
|
2068
2056
|
onChange: n
|
|
2069
2057
|
}) {
|
|
@@ -2092,8 +2080,8 @@ function Ss(e) {
|
|
|
2092
2080
|
}
|
|
2093
2081
|
);
|
|
2094
2082
|
}
|
|
2095
|
-
const
|
|
2096
|
-
function
|
|
2083
|
+
const _l = 90;
|
|
2084
|
+
function $l(e) {
|
|
2097
2085
|
var a;
|
|
2098
2086
|
let n = e.closest("[data-presence]");
|
|
2099
2087
|
for (; n; ) {
|
|
@@ -2108,35 +2096,35 @@ function uo(e, n) {
|
|
|
2108
2096
|
const o = () => {
|
|
2109
2097
|
const d = e();
|
|
2110
2098
|
if (d) {
|
|
2111
|
-
if (r += 1, i =
|
|
2099
|
+
if (r += 1, i = $l(d) ? i + 1 : 0, i >= 2 || r >= _l) return n(d);
|
|
2112
2100
|
a = requestAnimationFrame(o);
|
|
2113
2101
|
}
|
|
2114
2102
|
};
|
|
2115
2103
|
return a = requestAnimationFrame(o), () => cancelAnimationFrame(a);
|
|
2116
2104
|
}
|
|
2117
|
-
const
|
|
2118
|
-
function
|
|
2119
|
-
for (const n of e.querySelectorAll(
|
|
2105
|
+
const zl = 'input, button, textarea, [role="combobox"]';
|
|
2106
|
+
function Fl(e) {
|
|
2107
|
+
for (const n of e.querySelectorAll(zl))
|
|
2120
2108
|
if (!n.matches(
|
|
2121
2109
|
':disabled, [aria-disabled="true"], [aria-hidden="true"], [tabindex="-1"], [type="hidden"]'
|
|
2122
2110
|
) && n.getClientRects().length !== 0)
|
|
2123
2111
|
return n;
|
|
2124
2112
|
return null;
|
|
2125
2113
|
}
|
|
2126
|
-
function
|
|
2114
|
+
function Hl(e, n) {
|
|
2127
2115
|
const a = e ? n[e] : void 0;
|
|
2128
2116
|
oe(() => {
|
|
2129
2117
|
if (a)
|
|
2130
2118
|
return uo(
|
|
2131
2119
|
() => a.current,
|
|
2132
2120
|
(r) => {
|
|
2133
|
-
const i =
|
|
2121
|
+
const i = Fl(r);
|
|
2134
2122
|
i && (i.scrollIntoView({ block: "center" }), i.focus({ preventScroll: !0 }));
|
|
2135
2123
|
}
|
|
2136
2124
|
);
|
|
2137
2125
|
}, [a]);
|
|
2138
2126
|
}
|
|
2139
|
-
function
|
|
2127
|
+
function Vl(e) {
|
|
2140
2128
|
const { t: n } = $e("ui"), a = St(), r = St(), [i, o] = A(e.defaultScope), { scopes: d } = e, c = i && d.includes(i) ? i : d[0], l = c === "all" && e.warnOnWholeSeries !== !1;
|
|
2141
2129
|
let u;
|
|
2142
2130
|
try {
|
|
@@ -2197,12 +2185,12 @@ const ho = 99, mo = {
|
|
|
2197
2185
|
week: "weekly",
|
|
2198
2186
|
month: "monthly",
|
|
2199
2187
|
year: "yearly"
|
|
2200
|
-
},
|
|
2188
|
+
}, Ul = ["day", "week", "month", "year"], Kl = {
|
|
2201
2189
|
day: "recurrenceUnitDay",
|
|
2202
2190
|
week: "recurrenceUnitWeek",
|
|
2203
2191
|
month: "recurrenceUnitMonth",
|
|
2204
2192
|
year: "recurrenceUnitYear"
|
|
2205
|
-
},
|
|
2193
|
+
}, Gl = {
|
|
2206
2194
|
day: "recurrenceEveryDay",
|
|
2207
2195
|
week: "recurrenceEveryWeek",
|
|
2208
2196
|
month: "recurrenceEveryMonth",
|
|
@@ -2212,7 +2200,7 @@ const ho = 99, mo = {
|
|
|
2212
2200
|
2: "recurrenceOrdinal2",
|
|
2213
2201
|
3: "recurrenceOrdinal3",
|
|
2214
2202
|
4: "recurrenceOrdinal4"
|
|
2215
|
-
},
|
|
2203
|
+
}, ql = {
|
|
2216
2204
|
daily: { unit: "day", every: 1 },
|
|
2217
2205
|
weekly: { unit: "week", every: 1 },
|
|
2218
2206
|
monthly: { unit: "month", every: 1 },
|
|
@@ -2228,16 +2216,16 @@ const ho = 99, mo = {
|
|
|
2228
2216
|
"SA",
|
|
2229
2217
|
"SU"
|
|
2230
2218
|
], Gr = (e) => Ji[e.getDay()];
|
|
2231
|
-
function
|
|
2219
|
+
function jl() {
|
|
2232
2220
|
return { interval: 1, unit: "week", weekdays: [], monthlyBy: "monthDay" };
|
|
2233
2221
|
}
|
|
2234
|
-
function
|
|
2222
|
+
function Yl(e) {
|
|
2235
2223
|
var n;
|
|
2236
2224
|
return (e.interval ?? 1) > 1 || !!((n = e.byDay) != null && n.length);
|
|
2237
2225
|
}
|
|
2238
|
-
function
|
|
2226
|
+
function Xl(e) {
|
|
2239
2227
|
var r;
|
|
2240
|
-
const n =
|
|
2228
|
+
const n = ql[e.frequency], a = (r = e.byDay) == null ? void 0 : r.find((i) => i.length > 2);
|
|
2241
2229
|
return {
|
|
2242
2230
|
interval: (e.interval ?? 1) * n.every,
|
|
2243
2231
|
unit: n.unit,
|
|
@@ -2265,7 +2253,7 @@ function Ts(e, n) {
|
|
|
2265
2253
|
]);
|
|
2266
2254
|
return go.filter((r) => a.has(r));
|
|
2267
2255
|
}
|
|
2268
|
-
function
|
|
2256
|
+
function Jl(e, n) {
|
|
2269
2257
|
const a = Math.min(Math.max(e.interval ?? 1, 1), ho), r = {
|
|
2270
2258
|
frequency: mo[e.unit],
|
|
2271
2259
|
...a > 1 ? { interval: a } : {}
|
|
@@ -2283,11 +2271,11 @@ function Zl(e, n) {
|
|
|
2283
2271
|
}
|
|
2284
2272
|
return r;
|
|
2285
2273
|
}
|
|
2286
|
-
function
|
|
2274
|
+
function Br(e, n, a) {
|
|
2287
2275
|
const r = new Date(2026, 0, 4 + Ji.indexOf(e));
|
|
2288
2276
|
return new Intl.DateTimeFormat(n, { weekday: a }).format(r);
|
|
2289
2277
|
}
|
|
2290
|
-
function
|
|
2278
|
+
function Zl({
|
|
2291
2279
|
frequency: e,
|
|
2292
2280
|
custom: n,
|
|
2293
2281
|
start: a,
|
|
@@ -2297,7 +2285,7 @@ function Ql({
|
|
|
2297
2285
|
locale: d
|
|
2298
2286
|
}) {
|
|
2299
2287
|
const { t: c } = $e("ui"), l = (v) => `calendarWorkspace.editor.${v}`, u = (v) => {
|
|
2300
|
-
const y =
|
|
2288
|
+
const y = Br(Gr(a), d, "long");
|
|
2301
2289
|
return v === "monthDay" ? c(l("recurrenceMonthDay"), { day: a.getDate() }) : v === "lastWeekday" ? c(l("recurrenceLastWeekday"), { weekday: y }) : c(l("recurrenceNthWeekday"), {
|
|
2302
2290
|
weekday: y,
|
|
2303
2291
|
ordinal: c(l(po[Ur(a).nth]))
|
|
@@ -2306,10 +2294,10 @@ function Ql({
|
|
|
2306
2294
|
if (e === "custom") {
|
|
2307
2295
|
const v = Math.max(n.interval ?? 1, 1);
|
|
2308
2296
|
if (h.push(
|
|
2309
|
-
v === 1 ? c(l(
|
|
2297
|
+
v === 1 ? c(l(Sr[mo[n.unit]])) : c(l(Gl[n.unit]), { count: v })
|
|
2310
2298
|
), n.unit === "week") {
|
|
2311
2299
|
const y = Ts(n, a).map(
|
|
2312
|
-
(R) =>
|
|
2300
|
+
(R) => Br(R, d, "long")
|
|
2313
2301
|
);
|
|
2314
2302
|
h.push(
|
|
2315
2303
|
new Intl.ListFormat(d, { type: "conjunction" }).format(y)
|
|
@@ -2317,7 +2305,7 @@ function Ql({
|
|
|
2317
2305
|
}
|
|
2318
2306
|
n.unit === "month" && h.push(u(ws(n.monthlyBy, a)));
|
|
2319
2307
|
} else
|
|
2320
|
-
h.push(c(l(
|
|
2308
|
+
h.push(c(l(Sr[e])));
|
|
2321
2309
|
return r === "until" && o ? h.push(
|
|
2322
2310
|
/* The date picker's own short format, so the line and the Last
|
|
2323
2311
|
date field above it never print one day two ways. */
|
|
@@ -2326,7 +2314,7 @@ function Ql({
|
|
|
2326
2314
|
})
|
|
2327
2315
|
) : r === "count" && i && h.push(c(l("recurrenceSummaryCount"), { count: i })), h.join(" · ");
|
|
2328
2316
|
}
|
|
2329
|
-
function
|
|
2317
|
+
function Ql({
|
|
2330
2318
|
value: e,
|
|
2331
2319
|
onChange: n,
|
|
2332
2320
|
start: a,
|
|
@@ -2334,7 +2322,7 @@ function eu({
|
|
|
2334
2322
|
fieldClassName: i,
|
|
2335
2323
|
wideClassName: o
|
|
2336
2324
|
}) {
|
|
2337
|
-
const { t: d } = $e("ui"), c = (D) => `calendarWorkspace.editor.${D}`, l = St(), u = St(), h = Math.max(e.interval ?? 1, 1), v = Gr(a), y = new Set(Ts(e, a)), R = ws(e.monthlyBy, a), w =
|
|
2325
|
+
const { t: d } = $e("ui"), c = (D) => `calendarWorkspace.editor.${D}`, l = St(), u = St(), h = Math.max(e.interval ?? 1, 1), v = Gr(a), y = new Set(Ts(e, a)), R = ws(e.monthlyBy, a), w = Br(v, r, "long");
|
|
2338
2326
|
return /* @__PURE__ */ p(Ue, { children: [
|
|
2339
2327
|
/* @__PURE__ */ p(
|
|
2340
2328
|
"div",
|
|
@@ -2353,9 +2341,9 @@ function eu({
|
|
|
2353
2341
|
/* @__PURE__ */ t(Ie, { label: d(c("recurrenceUnit")), children: /* @__PURE__ */ t(
|
|
2354
2342
|
Fn,
|
|
2355
2343
|
{
|
|
2356
|
-
options:
|
|
2344
|
+
options: Ul.map((D) => ({
|
|
2357
2345
|
value: D,
|
|
2358
|
-
label: d(c(
|
|
2346
|
+
label: d(c(Kl[D]), { count: h })
|
|
2359
2347
|
})),
|
|
2360
2348
|
value: e.unit,
|
|
2361
2349
|
onValueChange: (D) => n({ ...e, unit: D })
|
|
@@ -2394,7 +2382,7 @@ function eu({
|
|
|
2394
2382
|
...e,
|
|
2395
2383
|
weekdays: E ? e.weekdays.filter((W) => W !== D) : [...e.weekdays, D]
|
|
2396
2384
|
}),
|
|
2397
|
-
children:
|
|
2385
|
+
children: Br(D, r, "short")
|
|
2398
2386
|
},
|
|
2399
2387
|
D
|
|
2400
2388
|
);
|
|
@@ -2435,7 +2423,7 @@ function eu({
|
|
|
2435
2423
|
) : null
|
|
2436
2424
|
] });
|
|
2437
2425
|
}
|
|
2438
|
-
function
|
|
2426
|
+
function eu({
|
|
2439
2427
|
summary: e,
|
|
2440
2428
|
className: n
|
|
2441
2429
|
}) {
|
|
@@ -2473,13 +2461,13 @@ function ls(e, n) {
|
|
|
2473
2461
|
function Ta(e, n) {
|
|
2474
2462
|
return n.list.some((a) => a.id === e);
|
|
2475
2463
|
}
|
|
2476
|
-
const Cn = (e) => `calendarWorkspace.inc1.bookings.${e}`,
|
|
2477
|
-
function
|
|
2464
|
+
const Cn = (e) => `calendarWorkspace.inc1.bookings.${e}`, nu = "confirmed";
|
|
2465
|
+
function tu(e) {
|
|
2478
2466
|
if (!e || !/^\+?[\d\s().-]+$/.test(e.trim())) return null;
|
|
2479
2467
|
const n = e.replace(/\D/g, "");
|
|
2480
2468
|
return n.length >= 7 && n.length <= 15 ? n : null;
|
|
2481
2469
|
}
|
|
2482
|
-
function
|
|
2470
|
+
function _r(e, n) {
|
|
2483
2471
|
try {
|
|
2484
2472
|
return new Intl.DateTimeFormat(e, {
|
|
2485
2473
|
weekday: "short",
|
|
@@ -2490,7 +2478,7 @@ function $r(e, n) {
|
|
|
2490
2478
|
return ft(e, n);
|
|
2491
2479
|
}
|
|
2492
2480
|
}
|
|
2493
|
-
const
|
|
2481
|
+
const au = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-inline-size:var(--accessible-target-floor,auto)]", Ha = $a(`${au} ds:whitespace-nowrap`), ru = $a(
|
|
2494
2482
|
[
|
|
2495
2483
|
"ds:relative ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
2496
2484
|
"ds:rounded-[var(--radius-md)] ds:p-[var(--spacing-sm)]",
|
|
@@ -2510,7 +2498,7 @@ const ru = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
|
|
|
2510
2498
|
},
|
|
2511
2499
|
defaultVariants: { tint: "none" }
|
|
2512
2500
|
}
|
|
2513
|
-
),
|
|
2501
|
+
), su = $a(
|
|
2514
2502
|
[
|
|
2515
2503
|
"ds:pointer-events-none ds:absolute ds:inset-0 ds:rounded-[var(--radius-md)]",
|
|
2516
2504
|
// Clear at rest; the accessible themes hold it steady (--accessible-on
|
|
@@ -2520,11 +2508,11 @@ const ru = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
|
|
|
2520
2508
|
"ds:motion-reduce:animate-none ds:motion-reduce:opacity-100",
|
|
2521
2509
|
"ds:forced-colors:border-[Highlight]"
|
|
2522
2510
|
].join(" ")
|
|
2523
|
-
),
|
|
2511
|
+
), iu = $a(
|
|
2524
2512
|
"ds:min-w-0 ds:truncate type-title-item ds:text-[color:var(--foreground)]"
|
|
2525
2513
|
), mi = $a(
|
|
2526
2514
|
"ds:inline-flex ds:size-8 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-[var(--radius-full)] ds:bg-[color:var(--muted)] ds:text-[color:var(--muted-foreground)]"
|
|
2527
|
-
),
|
|
2515
|
+
), ou = [
|
|
2528
2516
|
"ds:inline-flex ds:min-w-0 ds:flex-1 ds:basis-24 ds:cursor-pointer",
|
|
2529
2517
|
"ds:border-0 ds:bg-transparent ds:p-0 ds:text-start",
|
|
2530
2518
|
"ds:focus-visible:outline-none",
|
|
@@ -2534,7 +2522,7 @@ const ru = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
|
|
|
2534
2522
|
"ds:focus-visible:after:outline-[color:var(--ring)]",
|
|
2535
2523
|
"ds:focus-visible:after:outline-offset-[length:var(--focus-ring-offset)]",
|
|
2536
2524
|
"ds:forced-colors:focus-visible:after:outline-[CanvasText]"
|
|
2537
|
-
].join(" "),
|
|
2525
|
+
].join(" "), cu = "type-eyebrow ds:flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-sm)] ds:gap-y-[var(--spacing-2xs)] ds:text-[color:var(--muted-foreground)]", bo = zr(
|
|
2538
2526
|
({
|
|
2539
2527
|
view: e,
|
|
2540
2528
|
locale: n,
|
|
@@ -2551,13 +2539,13 @@ const ru = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
|
|
|
2551
2539
|
a,
|
|
2552
2540
|
h,
|
|
2553
2541
|
u("calendarWorkspace.details.patientNotLoaded")
|
|
2554
|
-
), w = Is(y.event, h).record, D = a ? void 0 : h.bookingContacts[e.eventId], T =
|
|
2542
|
+
), w = Is(y.event, h).record, D = a ? void 0 : h.bookingContacts[e.eventId], T = tu(D == null ? void 0 : D.phone), E = ((q = R.patient) == null ? void 0 : q.name) ?? u(Cn("needsPatient")), W = ft(v, e.start), C = (k) => u(Cn("actionNamed"), { action: k, who: E, when: W }), M = (k) => {
|
|
2555
2543
|
r && (i == null || i(y, k));
|
|
2556
2544
|
}, Q = [
|
|
2557
2545
|
e.needsPatient,
|
|
2558
2546
|
e.needsOperator,
|
|
2559
2547
|
e.needsChair
|
|
2560
|
-
].filter(Boolean).length > 1, x = R.state, b = Ni(x), z = b.Icon, f = R.type === "telehealth" ? wc :
|
|
2548
|
+
].filter(Boolean).length > 1, x = R.state, b = Ni(x), z = b.Icon, f = R.type === "telehealth" ? wc : zi, _ = u(Cn("whatsapp"));
|
|
2561
2549
|
let we;
|
|
2562
2550
|
return R.patient ? a ? we = /* @__PURE__ */ t("span", { className: mi(), children: /* @__PURE__ */ t(hr, { "aria-hidden": "true", className: "ds:size-4" }) }) : we = /* @__PURE__ */ t(
|
|
2563
2551
|
dr,
|
|
@@ -2581,7 +2569,7 @@ const ru = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
|
|
|
2581
2569
|
"data-addressed": d ? "" : void 0,
|
|
2582
2570
|
"aria-current": d ? "true" : void 0,
|
|
2583
2571
|
tabIndex: d ? -1 : void 0,
|
|
2584
|
-
className:
|
|
2572
|
+
className: ru({ tint: e.isNew ? "new" : "none" }),
|
|
2585
2573
|
children: [
|
|
2586
2574
|
d ? /* @__PURE__ */ p(Ue, { children: [
|
|
2587
2575
|
/* @__PURE__ */ t("span", { className: "ds:sr-only", children: u(Cn("current")) }),
|
|
@@ -2590,7 +2578,7 @@ const ru = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
|
|
|
2590
2578
|
{
|
|
2591
2579
|
"aria-hidden": "true",
|
|
2592
2580
|
"data-booking-ring": "addressed",
|
|
2593
|
-
className:
|
|
2581
|
+
className: su()
|
|
2594
2582
|
},
|
|
2595
2583
|
`${e.eventId}:${c ?? ""}`
|
|
2596
2584
|
)
|
|
@@ -2627,12 +2615,12 @@ const ru = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
|
|
|
2627
2615
|
"button",
|
|
2628
2616
|
{
|
|
2629
2617
|
type: "button",
|
|
2630
|
-
className:
|
|
2618
|
+
className: ou,
|
|
2631
2619
|
"aria-label": C(
|
|
2632
2620
|
u(Cn(r ? "edit" : "showInCalendar"))
|
|
2633
2621
|
),
|
|
2634
2622
|
onClick: () => r ? M() : o(e.eventId),
|
|
2635
|
-
children: /* @__PURE__ */ t("span", { className:
|
|
2623
|
+
children: /* @__PURE__ */ t("span", { className: iu(), children: E })
|
|
2636
2624
|
}
|
|
2637
2625
|
),
|
|
2638
2626
|
e.isNew ? /* @__PURE__ */ t(ot, { size: "sm", variant: "brand", "data-booking-new": "", children: u(Cn("new")) }) : null,
|
|
@@ -2641,7 +2629,7 @@ const ru = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
|
|
|
2641
2629
|
{
|
|
2642
2630
|
size: "sm",
|
|
2643
2631
|
variant: "info",
|
|
2644
|
-
leading: /* @__PURE__ */ t(
|
|
2632
|
+
leading: /* @__PURE__ */ t(Fi, { "aria-hidden": "true" }),
|
|
2645
2633
|
"data-booking-online": "",
|
|
2646
2634
|
children: u("calendarWorkspace.details.indicators.bookedOnline")
|
|
2647
2635
|
}
|
|
@@ -2664,7 +2652,7 @@ const ru = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
|
|
|
2664
2652
|
}
|
|
2665
2653
|
)
|
|
2666
2654
|
) : null,
|
|
2667
|
-
x !==
|
|
2655
|
+
x !== nu ? /* @__PURE__ */ t(
|
|
2668
2656
|
yi,
|
|
2669
2657
|
{
|
|
2670
2658
|
size: "sm",
|
|
@@ -2679,12 +2667,12 @@ const ru = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
|
|
|
2679
2667
|
}
|
|
2680
2668
|
) : null
|
|
2681
2669
|
] }),
|
|
2682
|
-
/* @__PURE__ */ p("div", { className:
|
|
2670
|
+
/* @__PURE__ */ p("div", { className: cu, children: [
|
|
2683
2671
|
R.operator ? /* @__PURE__ */ t("span", { children: R.operator.name }) : null,
|
|
2684
|
-
/* @__PURE__ */ t("span", { children:
|
|
2672
|
+
/* @__PURE__ */ t("span", { children: _r(v, e.start) }),
|
|
2685
2673
|
e.chairTitle ? /* @__PURE__ */ p("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
2686
2674
|
/* @__PURE__ */ t(
|
|
2687
|
-
|
|
2675
|
+
wr,
|
|
2688
2676
|
{
|
|
2689
2677
|
"aria-hidden": "true",
|
|
2690
2678
|
className: "ds:size-3 ds:shrink-0"
|
|
@@ -2747,7 +2735,7 @@ const ru = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
|
|
|
2747
2735
|
) : null,
|
|
2748
2736
|
/* @__PURE__ */ p("div", { className: "ds:flex ds:min-w-0 ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-sm)]", children: [
|
|
2749
2737
|
e.bookedAt ? /* @__PURE__ */ t("span", { className: "type-body-sm ds:min-w-0 ds:truncate ds:text-[color:var(--muted-foreground)]", children: u(Cn("bookedOn"), {
|
|
2750
|
-
date:
|
|
2738
|
+
date: _r(v, e.bookedAt)
|
|
2751
2739
|
}) }) : null,
|
|
2752
2740
|
/* @__PURE__ */ p(
|
|
2753
2741
|
Ma,
|
|
@@ -2777,7 +2765,7 @@ const ru = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
|
|
|
2777
2765
|
r && e.needsOperator ? /* @__PURE__ */ t(
|
|
2778
2766
|
ge,
|
|
2779
2767
|
{
|
|
2780
|
-
startIcon: /* @__PURE__ */ t(
|
|
2768
|
+
startIcon: /* @__PURE__ */ t(Dr, {}),
|
|
2781
2769
|
className: Ha(),
|
|
2782
2770
|
"aria-label": C(u(Cn("assignOperator"))),
|
|
2783
2771
|
"data-booking-action": "assign-operator",
|
|
@@ -2793,7 +2781,7 @@ const ru = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
|
|
|
2793
2781
|
r && e.needsChair ? /* @__PURE__ */ t(
|
|
2794
2782
|
ge,
|
|
2795
2783
|
{
|
|
2796
|
-
startIcon: /* @__PURE__ */ t(
|
|
2784
|
+
startIcon: /* @__PURE__ */ t(wr, {}),
|
|
2797
2785
|
className: Ha(),
|
|
2798
2786
|
"aria-label": C(u(Cn("assignChair"))),
|
|
2799
2787
|
"data-booking-action": "assign-chair",
|
|
@@ -2807,7 +2795,7 @@ const ru = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
|
|
|
2807
2795
|
/* @__PURE__ */ t(
|
|
2808
2796
|
qe,
|
|
2809
2797
|
{
|
|
2810
|
-
icon: /* @__PURE__ */ t(
|
|
2798
|
+
icon: /* @__PURE__ */ t(Li, {}),
|
|
2811
2799
|
className: Ha(),
|
|
2812
2800
|
"aria-label": u(Cn("showInCalendarNamed"), { when: W }),
|
|
2813
2801
|
tooltip: u(Cn("showInCalendar")),
|
|
@@ -2831,7 +2819,7 @@ const ru = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
|
|
|
2831
2819
|
T ? /* @__PURE__ */ t(
|
|
2832
2820
|
qe,
|
|
2833
2821
|
{
|
|
2834
|
-
icon: /* @__PURE__ */ t(
|
|
2822
|
+
icon: /* @__PURE__ */ t(Tr, { "aria-hidden": "true" }),
|
|
2835
2823
|
className: Ha(),
|
|
2836
2824
|
"aria-label": C(_),
|
|
2837
2825
|
tooltip: _,
|
|
@@ -2856,7 +2844,7 @@ const ru = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)] ds:[min-in
|
|
|
2856
2844
|
}
|
|
2857
2845
|
);
|
|
2858
2846
|
bo.displayName = "BookingCard";
|
|
2859
|
-
function
|
|
2847
|
+
function du() {
|
|
2860
2848
|
return /* @__PURE__ */ t(
|
|
2861
2849
|
"div",
|
|
2862
2850
|
{
|
|
@@ -2939,13 +2927,13 @@ function lu() {
|
|
|
2939
2927
|
function Xa(e) {
|
|
2940
2928
|
return e.operators.filter((n) => !e.inactiveOperatorIds.includes(n.id));
|
|
2941
2929
|
}
|
|
2942
|
-
function
|
|
2930
|
+
function lu(e) {
|
|
2943
2931
|
return e.unresolved ? "calendarWorkspace.details.patientNotLoaded" : e.assigned && as(e, "sms") === "unknown" ? "calendarWorkspace.details.patientPhoneUnknown" : "calendarWorkspace.waitingList.whatsappDisabled";
|
|
2944
2932
|
}
|
|
2945
|
-
function
|
|
2946
|
-
return /* @__PURE__ */ t(
|
|
2933
|
+
function uu(e) {
|
|
2934
|
+
return /* @__PURE__ */ t(hu, { ...e }, e.patientId);
|
|
2947
2935
|
}
|
|
2948
|
-
function
|
|
2936
|
+
function hu({
|
|
2949
2937
|
patientId: e,
|
|
2950
2938
|
seam: n,
|
|
2951
2939
|
editable: a = !1,
|
|
@@ -3016,7 +3004,7 @@ function ko({
|
|
|
3016
3004
|
options: i,
|
|
3017
3005
|
value: e != null ? String(e) : "",
|
|
3018
3006
|
onValueChange: (o) => n(o ? Number(o) : null),
|
|
3019
|
-
filter:
|
|
3007
|
+
filter: ed,
|
|
3020
3008
|
allowCreate: !0,
|
|
3021
3009
|
onCreate: (o) => {
|
|
3022
3010
|
const d = Number.parseInt(o.replace(/\D/g, ""), 10);
|
|
@@ -3025,11 +3013,11 @@ function ko({
|
|
|
3025
3013
|
}
|
|
3026
3014
|
);
|
|
3027
3015
|
}
|
|
3028
|
-
const
|
|
3016
|
+
const mu = [
|
|
3029
3017
|
"whatsapp",
|
|
3030
3018
|
"sms",
|
|
3031
3019
|
"email"
|
|
3032
|
-
],
|
|
3020
|
+
], pu = "ds:@container/apptform", gu = `ds:m-0 ds:grid ds:min-w-0 ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:border-0 ds:p-[var(--spacing-md)] ds:@[480px]/apptform:grid-cols-2 ds:@[704px]/apptform:grid-cols-3 ${$i}`, rn = "ds:col-span-full ds:min-w-0", xr = "ds:min-w-0 ds:[&>div]:min-w-0", Bt = `${xr} ds:@[704px]/apptform:grid ds:@[704px]/apptform:grid-cols-[minmax(0,max-content)_minmax(0,1fr)] ds:@[704px]/apptform:items-center ds:@[704px]/apptform:gap-x-[var(--spacing-sm)]`;
|
|
3033
3021
|
function us({
|
|
3034
3022
|
prefill: e,
|
|
3035
3023
|
onSave: n,
|
|
@@ -3046,7 +3034,7 @@ function us({
|
|
|
3046
3034
|
slotPatch: y,
|
|
3047
3035
|
colorAssociation: R,
|
|
3048
3036
|
locale: w,
|
|
3049
|
-
scheduleByEntry: D =
|
|
3037
|
+
scheduleByEntry: D = id,
|
|
3050
3038
|
history: T,
|
|
3051
3039
|
noteUnrecordedEdits: E,
|
|
3052
3040
|
onMove: W,
|
|
@@ -3076,7 +3064,7 @@ function us({
|
|
|
3076
3064
|
), [Ze, mn] = A(
|
|
3077
3065
|
(e == null ? void 0 : e.durationMin) ?? 30
|
|
3078
3066
|
), [ye, Nn] = A((e == null ? void 0 : e.operatorId) ?? We), [Be, ce] = A((e == null ? void 0 : e.chairId) ?? We), [He, Le] = A(
|
|
3079
|
-
() => ne ? (e == null ? void 0 : e.colorHex) ?? "" :
|
|
3067
|
+
() => ne ? (e == null ? void 0 : e.colorHex) ?? "" : nd(e, R, _)
|
|
3080
3068
|
), [Ln, kt] = A((e == null ? void 0 : e.care) ?? ""), [lt, Rn] = A(!0), [un, vn] = A(!1), [Un, $t] = A("no"), Oe = e == null ? void 0 : e.careLink, [fn, ut] = A((Oe == null ? void 0 : Oe.kind) ?? We), [xn, ht] = A(
|
|
3081
3069
|
(Oe == null ? void 0 : Oe.kind) === "plan" ? Oe.planId : ""
|
|
3082
3070
|
), [Qe, Kn] = A(
|
|
@@ -3106,7 +3094,7 @@ function us({
|
|
|
3106
3094
|
O(m), m === "" && ut((G) => G === "priceList" ? We : G);
|
|
3107
3095
|
}
|
|
3108
3096
|
}, [ne, Ce, be, _]);
|
|
3109
|
-
const Se = xn ? _.carePlanById(xn) : void 0, nt = _.priceLists ?? [], kn =
|
|
3097
|
+
const Se = xn ? _.carePlanById(xn) : void 0, nt = _.priceLists ?? [], kn = od(_), tt = Uc(kn), ia = tt || fn === "priceList", fa = ne || ia || Ce.length > 0, qn = Se && !Ce.some((m) => m.id === Se.id) ? [Se, ...Ce] : Ce, _n = Se ? Se.entries.filter((m) => !m.done || Qe.includes(m.id)) : [], Dn = (m) => Qe.includes(m.id) ? m.phases && m.phases.length > 0 && (bn[m.id] ?? []).length < m.phases.length ? "indeterminate" : !0 : !1, oa = (m, G) => {
|
|
3110
3098
|
const ke = G !== !1;
|
|
3111
3099
|
Kn(
|
|
3112
3100
|
(en) => ke ? en.includes(m.id) ? en : [...en, m.id] : en.filter((Ge) => Ge !== m.id)
|
|
@@ -3189,7 +3177,7 @@ function us({
|
|
|
3189
3177
|
return;
|
|
3190
3178
|
}
|
|
3191
3179
|
yn.current = ie;
|
|
3192
|
-
const m =
|
|
3180
|
+
const m = ad(Re, _);
|
|
3193
3181
|
m.durationMin !== void 0 && mn(m.durationMin), m.colorHex && R === "care" && Le(m.colorHex);
|
|
3194
3182
|
}, [ie, Re, R, _, $]);
|
|
3195
3183
|
const jn = $ && Re ? _.careEntriesFromLink(Re) : e == null ? void 0 : e.cares, Yn = ee(() => fn === "plan" && Se ? Se.entries.filter((m) => Qe.includes(m.id)).map((m) => m.careId) : fn === "priceList" ? de.filter((m) => m.careId).map((m) => m.careId) : ((e == null ? void 0 : e.cares) ?? []).map((m) => m.careId).filter((m) => !!m), [fn, Se, Qe, de, e == null ? void 0 : e.cares]), Sn = ee(
|
|
@@ -3241,10 +3229,10 @@ function us({
|
|
|
3241
3229
|
Be,
|
|
3242
3230
|
ye
|
|
3243
3231
|
]), oe(() => () => h == null ? void 0 : h(null), [h]);
|
|
3244
|
-
const Ve = ne || e == null ? void 0 : e.recurrence, It = Ve !== void 0 &&
|
|
3232
|
+
const Ve = ne || e == null ? void 0 : e.recurrence, It = Ve !== void 0 && Yl(Ve) && ((b == null ? void 0 : b.recurrenceCustom) ?? (b == null ? void 0 : b.recurrenceExtras) !== !1), [yt, Mn] = A(Ve !== void 0), [Wn, ka] = A(
|
|
3245
3233
|
It ? "custom" : (Ve == null ? void 0 : Ve.frequency) ?? "weekly"
|
|
3246
3234
|
), [zt, Jn] = A(
|
|
3247
|
-
() => Ve && It ?
|
|
3235
|
+
() => Ve && It ? Xl(Ve) : jl()
|
|
3248
3236
|
), [Mt, ca] = A(
|
|
3249
3237
|
(Ve == null ? void 0 : Ve.ends) ?? "count"
|
|
3250
3238
|
), [Ft, Ia] = A(
|
|
@@ -3253,7 +3241,7 @@ function us({
|
|
|
3253
3241
|
Ve == null ? void 0 : Ve.untilDate
|
|
3254
3242
|
), [Pn, ya] = A(
|
|
3255
3243
|
(Ve == null ? void 0 : Ve.skipClosedDays) ?? !0
|
|
3256
|
-
), da = St(), P = (b == null ? void 0 : b.recurrenceExtras) !== !1, me = (b == null ? void 0 : b.recurrenceCustom) ?? P, _e = (b == null ? void 0 : b.recurrenceSkipClosedDays) ?? P, Xe = De ?? new Date(_.nowIso), Te =
|
|
3244
|
+
), da = St(), P = (b == null ? void 0 : b.recurrenceExtras) !== !1, me = (b == null ? void 0 : b.recurrenceCustom) ?? P, _e = (b == null ? void 0 : b.recurrenceSkipClosedDays) ?? P, Xe = De ?? new Date(_.nowIso), Te = Zl({
|
|
3257
3245
|
frequency: Wn,
|
|
3258
3246
|
custom: zt,
|
|
3259
3247
|
start: Xe,
|
|
@@ -3297,7 +3285,7 @@ function us({
|
|
|
3297
3285
|
const Ut = Vt() !== it.current, Kt = De ? _.closureOn(
|
|
3298
3286
|
Rt(De),
|
|
3299
3287
|
ye === We ? void 0 : ye
|
|
3300
|
-
) : null, ha = (b == null ? void 0 : b.operatorAbsenceWarning) === !0 && (Kt == null ? void 0 : Kt.kind) === "absence", Qt = ha ? null : Kt, Ja = !ne || (De == null ? void 0 : De.getTime()) !== ((_s = e == null ? void 0 : e.date) == null ? void 0 : _s.getTime()) || (ye === We ? void 0 : ye) !== (e == null ? void 0 : e.operatorId), Ca =
|
|
3288
|
+
) : null, ha = (b == null ? void 0 : b.operatorAbsenceWarning) === !0 && (Kt == null ? void 0 : Kt.kind) === "absence", Qt = ha ? null : Kt, Ja = !ne || (De == null ? void 0 : De.getTime()) !== ((_s = e == null ? void 0 : e.date) == null ? void 0 : _s.getTime()) || (ye === We ? void 0 : ye) !== (e == null ? void 0 : e.operatorId), Ca = hd(e == null ? void 0 : e.callToAction, {
|
|
3301
3289
|
patientId: be || void 0,
|
|
3302
3290
|
operatorId: ye === We ? void 0 : ye
|
|
3303
3291
|
}), Aa = b == null ? void 0 : b.descriptionMaxLength, Na = Aa !== void 0 && Ln.length > Aa, Gt = (e == null ? void 0 : e.simpleSave) === !1, ea = !S && !Pe && (ne ? Ut : !!De) && !(Qt && Ja) && !Na && Ca, Za = Pe || u || (ne ? Ut : !0), Wt = Jt(be, _), Qa = e != null && e.editEventId ? ($s = _.baseEvents.find((m) => m.event.id === e.editEventId)) == null ? void 0 : $s.event.title : void 0, na = La(
|
|
@@ -3313,25 +3301,25 @@ function us({
|
|
|
3313
3301
|
const j = (b == null ? void 0 : b.branches) ?? [], [xe, $n] = A(() => {
|
|
3314
3302
|
var m;
|
|
3315
3303
|
return ((m = j[0]) == null ? void 0 : m.id) ?? "";
|
|
3316
|
-
}), En = !ne && Wt.assigned && (b != null && b.unsignedRequiredDocs) ? b.unsignedRequiredDocs(Wt.id) : 0, Et =
|
|
3304
|
+
}), En = !ne && Wt.assigned && (b != null && b.unsignedRequiredDocs) ? b.unsignedRequiredDocs(Wt.id) : 0, Et = Wr(Wt), Ot = Er(Et.sms), Ct = Er(Et.email), et = Or(Et.sms, {
|
|
3317
3305
|
optedOut: k("signModeSmsDisabled"),
|
|
3318
3306
|
none: k("signModeSmsDisabled")
|
|
3319
|
-
}), ta =
|
|
3307
|
+
}), ta = Or(Et.email, {
|
|
3320
3308
|
optedOut: k("signModeEmailDisabled"),
|
|
3321
3309
|
none: k("signModeEmailDisabled")
|
|
3322
|
-
}), s = (b == null ? void 0 : b.reminderCapability) === !0, N = !s || Wt.assigned, K = (b == null ? void 0 : b.firstVisitRequiresPatient) !== !0 || Wt.assigned, le = b != null && b.devicesByCare ?
|
|
3310
|
+
}), s = (b == null ? void 0 : b.reminderCapability) === !0, N = !s || Wt.assigned, K = (b == null ? void 0 : b.firstVisitRequiresPatient) !== !0 || Wt.assigned, le = b != null && b.devicesByCare ? Zd(jn, b.devicesByCare) : [], Y = De ? new Date(De) : void 0;
|
|
3323
3311
|
Y && Y.setHours(tn.hours, tn.minutes, 0, 0);
|
|
3324
|
-
const Ae = b != null && b.rows && Y && !cn ?
|
|
3312
|
+
const Ae = b != null && b.rows && Y && !cn ? Jd(b.rows, {
|
|
3325
3313
|
start: Y,
|
|
3326
3314
|
end: new Date(Y.getTime() + (Ze ?? 30) * 6e4),
|
|
3327
3315
|
chairId: Be === We ? void 0 : Be,
|
|
3328
3316
|
operatorId: ye === We ? void 0 : ye,
|
|
3329
3317
|
excludeEventId: e == null ? void 0 : e.editEventId
|
|
3330
|
-
}) : { chairBusy: !1, operatorBusy: !1 }, Ee = !ze && ne && (b == null ? void 0 : b.recurringScope) === !0 && (L == null ? void 0 : L.editRecurrence) !== !1, te = ne && (ze ? (x == null ? void 0 : x.offersCarePlanCleanup) === !0 : (b == null ? void 0 : b.carePlanCleanup) === !0), an = ze ?? (Ee ?
|
|
3331
|
-
|
|
3332
|
-
patient:
|
|
3318
|
+
}) : { chairBusy: !1, operatorBusy: !1 }, Ee = !ze && ne && (b == null ? void 0 : b.recurringScope) === !0 && (L == null ? void 0 : L.editRecurrence) !== !1, te = ne && (ze ? (x == null ? void 0 : x.offersCarePlanCleanup) === !0 : (b == null ? void 0 : b.carePlanCleanup) === !0), an = ze ?? (Ee ? Mr : void 0), qt = an != null && an.includes(pt) ? pt : (an == null ? void 0 : an[0]) ?? "this", aa = x != null && Y != null && Math.floor(Y.getTime() / 6e4) !== Math.floor(x.occurrence.getTime() / 6e4), jt = Me === "all" && aa, vr = F(null), za = F(null), fr = F(null);
|
|
3319
|
+
Hl(e == null ? void 0 : e.initialFocus, {
|
|
3320
|
+
patient: vr,
|
|
3333
3321
|
operator: za,
|
|
3334
|
-
chair:
|
|
3322
|
+
chair: fr
|
|
3335
3323
|
});
|
|
3336
3324
|
const Ls = F(null), As = F(null), Es = F(g);
|
|
3337
3325
|
oe(() => {
|
|
@@ -3373,7 +3361,7 @@ function us({
|
|
|
3373
3361
|
recurrence inputs are disabled, so an edit never re-rules a
|
|
3374
3362
|
series from this form. */
|
|
3375
3363
|
recurrence: !ne && (L == null ? void 0 : L.editRecurrence) !== !1 && yt ? {
|
|
3376
|
-
...Wn === "custom" ?
|
|
3364
|
+
...Wn === "custom" ? Jl(zt, Xe) : { frequency: Wn },
|
|
3377
3365
|
ends: P ? Mt : "count",
|
|
3378
3366
|
count: Ft ?? 2,
|
|
3379
3367
|
untilDate: P ? Zn : void 0,
|
|
@@ -3513,7 +3501,7 @@ function us({
|
|
|
3513
3501
|
className: "ds:[min-block-size:0] ds:flex-1 ds:overflow-y-auto",
|
|
3514
3502
|
children: [
|
|
3515
3503
|
g && x ? /* @__PURE__ */ t("div", { ref: Ls, className: "ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ t(
|
|
3516
|
-
|
|
3504
|
+
Vl,
|
|
3517
3505
|
{
|
|
3518
3506
|
scopes: x.scopes,
|
|
3519
3507
|
occurrence: x.occurrence,
|
|
@@ -3526,7 +3514,7 @@ function us({
|
|
|
3526
3514
|
onCancel: () => Me ? nn(!1) : ve()
|
|
3527
3515
|
}
|
|
3528
3516
|
) }) : null,
|
|
3529
|
-
/* @__PURE__ */ t("div", { className:
|
|
3517
|
+
/* @__PURE__ */ t("div", { className: pu, hidden: g, children: /* @__PURE__ */ p("form", { className: "ds:contents", onSubmit: Do, children: [
|
|
3530
3518
|
/* @__PURE__ */ t(
|
|
3531
3519
|
"button",
|
|
3532
3520
|
{
|
|
@@ -3541,7 +3529,7 @@ function us({
|
|
|
3541
3529
|
"fieldset",
|
|
3542
3530
|
{
|
|
3543
3531
|
disabled: J || S || Pe,
|
|
3544
|
-
className:
|
|
3532
|
+
className: gu,
|
|
3545
3533
|
children: [
|
|
3546
3534
|
J ? /* @__PURE__ */ p(
|
|
3547
3535
|
he,
|
|
@@ -3618,7 +3606,7 @@ function us({
|
|
|
3618
3606
|
className: `${rn} ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--card-border)] ds:bg-[color:var(--muted)] ds:p-[var(--spacing-sm)]`,
|
|
3619
3607
|
children: [
|
|
3620
3608
|
/* @__PURE__ */ p("span", { className: "type-label ds:flex ds:items-center ds:gap-[var(--spacing-2xs)] ds:text-[color:var(--muted-foreground)]", children: [
|
|
3621
|
-
/* @__PURE__ */ t(
|
|
3609
|
+
/* @__PURE__ */ t(Fi, { size: 12, "aria-hidden": "true" }),
|
|
3622
3610
|
f(pe("bookedOnlineBy"))
|
|
3623
3611
|
] }),
|
|
3624
3612
|
/* @__PURE__ */ t("span", { className: "ds:font-[var(--font-weight-semibold)] ds:text-start", children: e.bookingContact.typedName }),
|
|
@@ -3650,7 +3638,7 @@ function us({
|
|
|
3650
3638
|
format: "absolute",
|
|
3651
3639
|
shape: "bare",
|
|
3652
3640
|
locale: xo,
|
|
3653
|
-
absoluteFormat:
|
|
3641
|
+
absoluteFormat: wi
|
|
3654
3642
|
}
|
|
3655
3643
|
)
|
|
3656
3644
|
] }),
|
|
@@ -3672,7 +3660,7 @@ function us({
|
|
|
3672
3660
|
/* @__PURE__ */ t(
|
|
3673
3661
|
Ie,
|
|
3674
3662
|
{
|
|
3675
|
-
ref:
|
|
3663
|
+
ref: vr,
|
|
3676
3664
|
className: rn,
|
|
3677
3665
|
label: f(k("patient")),
|
|
3678
3666
|
required: (e == null ? void 0 : e.callToAction) === "processBooking",
|
|
@@ -3942,10 +3930,10 @@ function us({
|
|
|
3942
3930
|
value: m.careId,
|
|
3943
3931
|
disabled: Ge,
|
|
3944
3932
|
onValueChange: (Je) => {
|
|
3945
|
-
var
|
|
3933
|
+
var br, Us;
|
|
3946
3934
|
return In(m.key, {
|
|
3947
3935
|
careId: Je,
|
|
3948
|
-
priceCents: Je ? ((
|
|
3936
|
+
priceCents: Je ? ((br = _.careById(Je)) == null ? void 0 : br.priceCents) ?? null : null,
|
|
3949
3937
|
phases: Je && (b != null && b.priceListPhases) ? [...((Us = _.careById(Je)) == null ? void 0 : Us.phases) ?? []] : void 0
|
|
3950
3938
|
});
|
|
3951
3939
|
},
|
|
@@ -4015,7 +4003,7 @@ function us({
|
|
|
4015
4003
|
label: Je,
|
|
4016
4004
|
checked: en.includes(Je),
|
|
4017
4005
|
disabled: Ge,
|
|
4018
|
-
onCheckedChange: (
|
|
4006
|
+
onCheckedChange: (br) => Zt(m, Je, br === !0)
|
|
4019
4007
|
},
|
|
4020
4008
|
Je
|
|
4021
4009
|
))
|
|
@@ -4063,7 +4051,7 @@ function us({
|
|
|
4063
4051
|
{
|
|
4064
4052
|
className: rn,
|
|
4065
4053
|
label: f(k("cares")),
|
|
4066
|
-
value:
|
|
4054
|
+
value: Fc(jn)
|
|
4067
4055
|
}
|
|
4068
4056
|
) : null,
|
|
4069
4057
|
le.length > 0 ? /* @__PURE__ */ t(
|
|
@@ -4080,7 +4068,7 @@ function us({
|
|
|
4080
4068
|
/* @__PURE__ */ t(
|
|
4081
4069
|
Ie,
|
|
4082
4070
|
{
|
|
4083
|
-
className:
|
|
4071
|
+
className: xr,
|
|
4084
4072
|
label: f(k("time")),
|
|
4085
4073
|
children: /* @__PURE__ */ t(bc, { value: tn, onChange: bt })
|
|
4086
4074
|
}
|
|
@@ -4102,7 +4090,7 @@ function us({
|
|
|
4102
4090
|
/* @__PURE__ */ t(
|
|
4103
4091
|
Ie,
|
|
4104
4092
|
{
|
|
4105
|
-
className:
|
|
4093
|
+
className: xr,
|
|
4106
4094
|
label: f(X("color")),
|
|
4107
4095
|
children: /* @__PURE__ */ t(
|
|
4108
4096
|
_i,
|
|
@@ -4202,9 +4190,9 @@ function us({
|
|
|
4202
4190
|
Fn,
|
|
4203
4191
|
{
|
|
4204
4192
|
options: [
|
|
4205
|
-
...
|
|
4193
|
+
...Jc.map((m) => ({
|
|
4206
4194
|
value: m,
|
|
4207
|
-
label: f(k(
|
|
4195
|
+
label: f(k(Sr[m]))
|
|
4208
4196
|
})),
|
|
4209
4197
|
...me ? [
|
|
4210
4198
|
{
|
|
@@ -4220,13 +4208,13 @@ function us({
|
|
|
4220
4208
|
}
|
|
4221
4209
|
),
|
|
4222
4210
|
me && Wn === "custom" ? /* @__PURE__ */ t(
|
|
4223
|
-
|
|
4211
|
+
Ql,
|
|
4224
4212
|
{
|
|
4225
4213
|
value: zt,
|
|
4226
4214
|
onChange: Jn,
|
|
4227
4215
|
start: Xe,
|
|
4228
4216
|
locale: w ?? q.language,
|
|
4229
|
-
fieldClassName:
|
|
4217
|
+
fieldClassName: xr,
|
|
4230
4218
|
wideClassName: rn
|
|
4231
4219
|
}
|
|
4232
4220
|
) : null,
|
|
@@ -4251,7 +4239,7 @@ function us({
|
|
|
4251
4239
|
value: Mt,
|
|
4252
4240
|
onValueChange: (m) => {
|
|
4253
4241
|
const G = m;
|
|
4254
|
-
ca(G), G === "until" && !Zn && De && Ht(
|
|
4242
|
+
ca(G), G === "until" && !Zn && De && Ht(Zc(De, 1));
|
|
4255
4243
|
}
|
|
4256
4244
|
}
|
|
4257
4245
|
)
|
|
@@ -4267,7 +4255,7 @@ function us({
|
|
|
4267
4255
|
{
|
|
4268
4256
|
value: Ft,
|
|
4269
4257
|
min: 2,
|
|
4270
|
-
max:
|
|
4258
|
+
max: Xc,
|
|
4271
4259
|
onChange: Ia
|
|
4272
4260
|
}
|
|
4273
4261
|
)
|
|
@@ -4313,7 +4301,7 @@ function us({
|
|
|
4313
4301
|
}
|
|
4314
4302
|
) : null,
|
|
4315
4303
|
me && Te ? /* @__PURE__ */ t(
|
|
4316
|
-
|
|
4304
|
+
eu,
|
|
4317
4305
|
{
|
|
4318
4306
|
summary: Te,
|
|
4319
4307
|
className: rn
|
|
@@ -4323,7 +4311,7 @@ function us({
|
|
|
4323
4311
|
/* @__PURE__ */ t(
|
|
4324
4312
|
Ie,
|
|
4325
4313
|
{
|
|
4326
|
-
ref:
|
|
4314
|
+
ref: fr,
|
|
4327
4315
|
className: Bt,
|
|
4328
4316
|
label: f(X("chair")),
|
|
4329
4317
|
children: /* @__PURE__ */ t(
|
|
@@ -4466,7 +4454,7 @@ function us({
|
|
|
4466
4454
|
label: f(k("recurringSaveMode")),
|
|
4467
4455
|
value: xa,
|
|
4468
4456
|
onValueChange: (m) => Da(m),
|
|
4469
|
-
children:
|
|
4457
|
+
children: Mr.map((m) => /* @__PURE__ */ t(
|
|
4470
4458
|
xt,
|
|
4471
4459
|
{
|
|
4472
4460
|
value: m,
|
|
@@ -4492,7 +4480,7 @@ function us({
|
|
|
4492
4480
|
className: "ds:relative ds:z-10 ds:m-0 ds:min-w-0 ds:shrink-0 ds:border-0 ds:border-t ds:border-[color:var(--border)] ds:bg-[var(--background)] ds:p-0",
|
|
4493
4481
|
children: /* @__PURE__ */ t("div", { className: "ds:@container/apptstrip", children: /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)] ds:pt-[var(--spacing-sm)]", children: [
|
|
4494
4482
|
Wt.assigned && !J && !Pe ? /* @__PURE__ */ t(
|
|
4495
|
-
|
|
4483
|
+
fu,
|
|
4496
4484
|
{
|
|
4497
4485
|
onWhatsApp: M,
|
|
4498
4486
|
channels: b == null ? void 0 : b.reminderChannels
|
|
@@ -4544,7 +4532,7 @@ function us({
|
|
|
4544
4532
|
/* @__PURE__ */ t(
|
|
4545
4533
|
U.Item,
|
|
4546
4534
|
{
|
|
4547
|
-
startIcon: /* @__PURE__ */ t(
|
|
4535
|
+
startIcon: /* @__PURE__ */ t(Ir, { "aria-hidden": "true" }),
|
|
4548
4536
|
onSelect: () => C == null ? void 0 : C(!1),
|
|
4549
4537
|
children: f(k("duplicateAppointmentOnly"))
|
|
4550
4538
|
}
|
|
@@ -4596,7 +4584,7 @@ function us({
|
|
|
4596
4584
|
{
|
|
4597
4585
|
size: "sm",
|
|
4598
4586
|
intent: "outline",
|
|
4599
|
-
icon: /* @__PURE__ */ t(
|
|
4587
|
+
icon: /* @__PURE__ */ t(Hi, { "aria-hidden": "true" }),
|
|
4600
4588
|
"aria-label": f(k("cancel")),
|
|
4601
4589
|
tooltip: f(k("cancel")),
|
|
4602
4590
|
disabled: !Za,
|
|
@@ -4608,7 +4596,7 @@ function us({
|
|
|
4608
4596
|
{
|
|
4609
4597
|
size: "sm",
|
|
4610
4598
|
intent: "outline",
|
|
4611
|
-
icon: /* @__PURE__ */ t(
|
|
4599
|
+
icon: /* @__PURE__ */ t(Ir, { "aria-hidden": "true" }),
|
|
4612
4600
|
"aria-label": f(k("duplicate")),
|
|
4613
4601
|
tooltip: f(k("duplicate"))
|
|
4614
4602
|
}
|
|
@@ -4617,7 +4605,7 @@ function us({
|
|
|
4617
4605
|
{
|
|
4618
4606
|
size: "sm",
|
|
4619
4607
|
intent: "outline",
|
|
4620
|
-
icon: /* @__PURE__ */ t(
|
|
4608
|
+
icon: /* @__PURE__ */ t(Ir, { "aria-hidden": "true" }),
|
|
4621
4609
|
"aria-label": f(k("duplicate")),
|
|
4622
4610
|
tooltip: f(k("duplicate")),
|
|
4623
4611
|
onClick: () => jr(!1)
|
|
@@ -4641,7 +4629,7 @@ function us({
|
|
|
4641
4629
|
/* @__PURE__ */ t(
|
|
4642
4630
|
U.Item,
|
|
4643
4631
|
{
|
|
4644
|
-
startIcon: /* @__PURE__ */ t(
|
|
4632
|
+
startIcon: /* @__PURE__ */ t(Ir, { "aria-hidden": "true" }),
|
|
4645
4633
|
onSelect: () => jr(!1),
|
|
4646
4634
|
children: f(k("duplicateAppointmentOnly"))
|
|
4647
4635
|
}
|
|
@@ -4712,7 +4700,7 @@ function us({
|
|
|
4712
4700
|
}
|
|
4713
4701
|
);
|
|
4714
4702
|
}
|
|
4715
|
-
function
|
|
4703
|
+
function vu({
|
|
4716
4704
|
row: e,
|
|
4717
4705
|
patientRef: n,
|
|
4718
4706
|
showAge: a = !1,
|
|
@@ -4732,7 +4720,7 @@ function fu({
|
|
|
4732
4720
|
unresolved: n.unresolved,
|
|
4733
4721
|
status: e.event.status,
|
|
4734
4722
|
flags: e.event,
|
|
4735
|
-
age: a && (c != null && c.dobIso) ?
|
|
4723
|
+
age: a && (c != null && c.dobIso) ? Yc(c.dobIso, d) : void 0,
|
|
4736
4724
|
onOpenPatient: r && c ? () => r(c) : void 0,
|
|
4737
4725
|
highlightedAnamnesisCount: c == null ? void 0 : c.highlightedAnamnesisCount,
|
|
4738
4726
|
expiredAnamnesisCount: c == null ? void 0 : c.expiredAnamnesisCount,
|
|
@@ -4740,25 +4728,25 @@ function fu({
|
|
|
4740
4728
|
}
|
|
4741
4729
|
);
|
|
4742
4730
|
}
|
|
4743
|
-
function
|
|
4731
|
+
function fu({
|
|
4744
4732
|
onWhatsApp: e,
|
|
4745
|
-
channels: n =
|
|
4733
|
+
channels: n = mu
|
|
4746
4734
|
}) {
|
|
4747
4735
|
const { t: a } = $e("ui"), r = (c) => `calendarWorkspace.details.${c}`, [i, o] = A(""), d = [
|
|
4748
4736
|
{
|
|
4749
4737
|
id: "whatsapp",
|
|
4750
4738
|
label: a(r("remindWhatsApp")),
|
|
4751
|
-
icon: /* @__PURE__ */ t(
|
|
4739
|
+
icon: /* @__PURE__ */ t(Tr, { "aria-hidden": "true" })
|
|
4752
4740
|
},
|
|
4753
4741
|
{
|
|
4754
4742
|
id: "sms",
|
|
4755
4743
|
label: a(r("remindSms")),
|
|
4756
|
-
icon: /* @__PURE__ */ t(
|
|
4744
|
+
icon: /* @__PURE__ */ t(Vi, { "aria-hidden": "true" })
|
|
4757
4745
|
},
|
|
4758
4746
|
{
|
|
4759
4747
|
id: "email",
|
|
4760
4748
|
label: a(r("remindEmail")),
|
|
4761
|
-
icon: /* @__PURE__ */ t(
|
|
4749
|
+
icon: /* @__PURE__ */ t(Ui, { "aria-hidden": "true" })
|
|
4762
4750
|
}
|
|
4763
4751
|
].filter((c) => n.includes(c.id));
|
|
4764
4752
|
return d.length === 0 ? null : /* @__PURE__ */ p(Ue, { children: [
|
|
@@ -4778,7 +4766,7 @@ function bu({
|
|
|
4778
4766
|
/* @__PURE__ */ t(va, { "aria-live": "polite", children: i ? a(r("remindSent"), { channel: i }) : "" })
|
|
4779
4767
|
] });
|
|
4780
4768
|
}
|
|
4781
|
-
function
|
|
4769
|
+
function bu({
|
|
4782
4770
|
row: e,
|
|
4783
4771
|
patient: n,
|
|
4784
4772
|
locale: a,
|
|
@@ -4789,7 +4777,7 @@ function ku({
|
|
|
4789
4777
|
platform: c
|
|
4790
4778
|
}) {
|
|
4791
4779
|
var k;
|
|
4792
|
-
const l = Vn(), { t: u } = $e("ui"), h = (X) => `calendarWorkspace.details.${X}`, { t: v } = $e("ui"), y = l.metaById[e.event.id], R = (y == null ? void 0 : y.documentsToSign) ?? [], w =
|
|
4780
|
+
const l = Vn(), { t: u } = $e("ui"), h = (X) => `calendarWorkspace.details.${X}`, { t: v } = $e("ui"), y = l.metaById[e.event.id], R = (y == null ? void 0 : y.documentsToSign) ?? [], w = rd(R), [D, T] = A(""), E = (X) => {
|
|
4793
4781
|
i == null || i(e.event.id, X), T(
|
|
4794
4782
|
u(h("signingRequestedReadout"), {
|
|
4795
4783
|
channel: u(h(X === "sms" ? "remindSms" : "remindEmail"))
|
|
@@ -4805,7 +4793,7 @@ function ku({
|
|
|
4805
4793
|
/* @__PURE__ */ p("span", { children: [
|
|
4806
4794
|
u(h("seriesSummary"), {
|
|
4807
4795
|
frequency: u(
|
|
4808
|
-
`calendarWorkspace.editor.${
|
|
4796
|
+
`calendarWorkspace.editor.${Sr[e.series.frequency]}`
|
|
4809
4797
|
),
|
|
4810
4798
|
index: e.series.index,
|
|
4811
4799
|
total: e.series.total,
|
|
@@ -4924,7 +4912,7 @@ function ku({
|
|
|
4924
4912
|
/* @__PURE__ */ t(
|
|
4925
4913
|
U.Item,
|
|
4926
4914
|
{
|
|
4927
|
-
startIcon: /* @__PURE__ */ t(
|
|
4915
|
+
startIcon: /* @__PURE__ */ t(Vi, { "aria-hidden": "true" }),
|
|
4928
4916
|
disabled: (n == null ? void 0 : n.smsEnabled) === !1,
|
|
4929
4917
|
description: (n == null ? void 0 : n.smsEnabled) === !1 ? u(h("signingSmsDisabled")) : void 0,
|
|
4930
4918
|
onSelect: () => E("sms"),
|
|
@@ -4934,7 +4922,7 @@ function ku({
|
|
|
4934
4922
|
/* @__PURE__ */ t(
|
|
4935
4923
|
U.Item,
|
|
4936
4924
|
{
|
|
4937
|
-
startIcon: /* @__PURE__ */ t(
|
|
4925
|
+
startIcon: /* @__PURE__ */ t(Ui, { "aria-hidden": "true" }),
|
|
4938
4926
|
onSelect: () => E("email"),
|
|
4939
4927
|
children: u(h("signingViaEmail"))
|
|
4940
4928
|
}
|
|
@@ -4963,7 +4951,7 @@ function ku({
|
|
|
4963
4951
|
format: "absolute",
|
|
4964
4952
|
shape: "bare",
|
|
4965
4953
|
locale: a,
|
|
4966
|
-
absoluteFormat:
|
|
4954
|
+
absoluteFormat: wi
|
|
4967
4955
|
}
|
|
4968
4956
|
)
|
|
4969
4957
|
] }),
|
|
@@ -5032,7 +5020,7 @@ function ku({
|
|
|
5032
5020
|
rel: "noopener noreferrer",
|
|
5033
5021
|
"aria-label": `${u(h("mapsLink"))} — ${_}`,
|
|
5034
5022
|
children: [
|
|
5035
|
-
/* @__PURE__ */ t(
|
|
5023
|
+
/* @__PURE__ */ t(zi, { size: 14, "aria-hidden": "true" }),
|
|
5036
5024
|
_
|
|
5037
5025
|
]
|
|
5038
5026
|
}
|
|
@@ -5042,7 +5030,7 @@ function ku({
|
|
|
5042
5030
|
] });
|
|
5043
5031
|
}
|
|
5044
5032
|
const Xt = (e) => `calendarWorkspace.inc1.bookings.${e}`;
|
|
5045
|
-
function
|
|
5033
|
+
function ku(e) {
|
|
5046
5034
|
const n = /* @__PURE__ */ new Map();
|
|
5047
5035
|
for (const a of e) {
|
|
5048
5036
|
const r = a.bookedAt ?? a.start, i = Number.isFinite(r.getTime()) ? r.toISOString().slice(0, 10) : "unknown", o = n.get(i);
|
|
@@ -5052,22 +5040,22 @@ function Iu(e) {
|
|
|
5052
5040
|
(a, r) => r.date.getTime() - a.date.getTime()
|
|
5053
5041
|
);
|
|
5054
5042
|
}
|
|
5055
|
-
const
|
|
5043
|
+
const Iu = [
|
|
5056
5044
|
"ds:pointer-events-none ds:absolute",
|
|
5057
5045
|
"ds:-top-[var(--spacing-2xs)] ds:-end-[var(--spacing-2xs)]",
|
|
5058
5046
|
"ds:size-[var(--spacing-sm)] ds:rounded-[var(--radius-full)]",
|
|
5059
5047
|
"ds:bg-[color:var(--accent)]",
|
|
5060
5048
|
"ds:outline-2 ds:outline-solid ds:outline-[color:var(--background)]",
|
|
5061
5049
|
"ds:forced-colors:bg-[Highlight] ds:forced-colors:outline-[Canvas]"
|
|
5062
|
-
].join(" "),
|
|
5050
|
+
].join(" "), yu = [
|
|
5063
5051
|
"type-meta",
|
|
5064
5052
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:pb-[var(--spacing-xs)]",
|
|
5065
5053
|
"ds:text-[color:var(--muted-foreground)]"
|
|
5066
5054
|
].join(" ");
|
|
5067
|
-
function
|
|
5055
|
+
function Cu(e, n) {
|
|
5068
5056
|
return e ? !e.patient || !e.operator || n && !e.chair : !1;
|
|
5069
5057
|
}
|
|
5070
|
-
function
|
|
5058
|
+
function Nu({
|
|
5071
5059
|
filters: e,
|
|
5072
5060
|
chairsExist: n,
|
|
5073
5061
|
narrowed: a,
|
|
@@ -5091,7 +5079,7 @@ function xu({
|
|
|
5091
5079
|
)
|
|
5092
5080
|
}
|
|
5093
5081
|
) }),
|
|
5094
|
-
a ? /* @__PURE__ */ t("span", { "aria-hidden": "true", className:
|
|
5082
|
+
a ? /* @__PURE__ */ t("span", { "aria-hidden": "true", className: Iu }) : null
|
|
5095
5083
|
] }),
|
|
5096
5084
|
/* @__PURE__ */ p(
|
|
5097
5085
|
U.Content,
|
|
@@ -5101,7 +5089,7 @@ function xu({
|
|
|
5101
5089
|
"aria-describedby": o,
|
|
5102
5090
|
children: [
|
|
5103
5091
|
/* @__PURE__ */ t(U.Label, { children: i(Xt("settingsTitle")) }),
|
|
5104
|
-
/* @__PURE__ */ t("div", { id: o, className:
|
|
5092
|
+
/* @__PURE__ */ t("div", { id: o, className: yu, children: i(Xt("settingsHint")) }),
|
|
5105
5093
|
/* @__PURE__ */ p(U.Group, { "data-component": "calendar-backlog-filters", children: [
|
|
5106
5094
|
/* @__PURE__ */ t(
|
|
5107
5095
|
U.SwitchItem,
|
|
@@ -5145,7 +5133,7 @@ function xu({
|
|
|
5145
5133
|
)
|
|
5146
5134
|
] });
|
|
5147
5135
|
}
|
|
5148
|
-
function
|
|
5136
|
+
function xu({
|
|
5149
5137
|
bookings: e,
|
|
5150
5138
|
locale: n,
|
|
5151
5139
|
privacy: a = !1,
|
|
@@ -5171,7 +5159,7 @@ function Du({
|
|
|
5171
5159
|
)
|
|
5172
5160
|
),
|
|
5173
5161
|
[e, D, i, o]
|
|
5174
|
-
), W = ee(() =>
|
|
5162
|
+
), W = ee(() => ku(E), [E]), C = v === "chair" && E.some((x) => x.needsChair), M = Cu(y, T), J = F(null);
|
|
5175
5163
|
oe(() => {
|
|
5176
5164
|
var x, b;
|
|
5177
5165
|
d && ((x = J.current) == null || x.scrollIntoView({ block: "center" }), (b = J.current) == null || b.focus());
|
|
@@ -5212,7 +5200,7 @@ function Du({
|
|
|
5212
5200
|
sticky: !0,
|
|
5213
5201
|
divider: !0,
|
|
5214
5202
|
actions: y ? /* @__PURE__ */ t(
|
|
5215
|
-
|
|
5203
|
+
Nu,
|
|
5216
5204
|
{
|
|
5217
5205
|
filters: y,
|
|
5218
5206
|
chairsExist: T,
|
|
@@ -5227,7 +5215,7 @@ function Du({
|
|
|
5227
5215
|
C ? /* @__PURE__ */ t("p", { className: "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]", children: w(Xt("notShownOnChairAxis")) }) : null,
|
|
5228
5216
|
r === "loading" ? /* @__PURE__ */ p(Ue, { children: [
|
|
5229
5217
|
/* @__PURE__ */ t("p", { role: "status", className: "ds:sr-only", children: w("common.loading") }),
|
|
5230
|
-
E.length === 0 ? /* @__PURE__ */ t(
|
|
5218
|
+
E.length === 0 ? /* @__PURE__ */ t(du, {}) : null
|
|
5231
5219
|
] }) : r === "error" ? /* @__PURE__ */ p(he, { variant: "error", children: [
|
|
5232
5220
|
/* @__PURE__ */ t(he.Description, { children: w("emptyState.error.description") }),
|
|
5233
5221
|
l ? /* @__PURE__ */ t(ge, { size: "sm", intent: "outline", onClick: l, children: w("emptyState.error.cta") }) : null
|
|
@@ -5248,10 +5236,10 @@ function Du({
|
|
|
5248
5236
|
children: W.map((x) => /* @__PURE__ */ p(
|
|
5249
5237
|
"section",
|
|
5250
5238
|
{
|
|
5251
|
-
"aria-label":
|
|
5239
|
+
"aria-label": _r(n ?? "en", x.date),
|
|
5252
5240
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
5253
5241
|
children: [
|
|
5254
|
-
/* @__PURE__ */ t("h3", { className: "type-label ds:m-0 ds:uppercase ds:text-start ds:text-[color:var(--muted-foreground)]", children:
|
|
5242
|
+
/* @__PURE__ */ t("h3", { className: "type-label ds:m-0 ds:uppercase ds:text-start ds:text-[color:var(--muted-foreground)]", children: _r(n ?? "en", x.date) }),
|
|
5255
5243
|
/* @__PURE__ */ t(
|
|
5256
5244
|
"ul",
|
|
5257
5245
|
{
|
|
@@ -5271,7 +5259,7 @@ function Du({
|
|
|
5271
5259
|
}
|
|
5272
5260
|
);
|
|
5273
5261
|
}
|
|
5274
|
-
function
|
|
5262
|
+
function Du({
|
|
5275
5263
|
entry: e,
|
|
5276
5264
|
readOnly: n,
|
|
5277
5265
|
onSave: a
|
|
@@ -5295,7 +5283,7 @@ function Su({
|
|
|
5295
5283
|
reset: R,
|
|
5296
5284
|
submit: () => {
|
|
5297
5285
|
if (!n) {
|
|
5298
|
-
if (!
|
|
5286
|
+
if (!md({ patientId: r, description: u })) {
|
|
5299
5287
|
y(!0);
|
|
5300
5288
|
return;
|
|
5301
5289
|
}
|
|
@@ -5310,7 +5298,7 @@ function Su({
|
|
|
5310
5298
|
}
|
|
5311
5299
|
};
|
|
5312
5300
|
}
|
|
5313
|
-
function
|
|
5301
|
+
function Su({
|
|
5314
5302
|
form: e,
|
|
5315
5303
|
entry: n,
|
|
5316
5304
|
readOnly: a
|
|
@@ -5326,7 +5314,7 @@ function wu({
|
|
|
5326
5314
|
"fieldset",
|
|
5327
5315
|
{
|
|
5328
5316
|
disabled: a,
|
|
5329
|
-
className: `ds:m-0 ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-md)] ds:border-0 ds:p-0 ${
|
|
5317
|
+
className: `ds:m-0 ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-md)] ds:border-0 ds:p-0 ${$i}`,
|
|
5330
5318
|
children: [
|
|
5331
5319
|
a ? /* @__PURE__ */ p(
|
|
5332
5320
|
he,
|
|
@@ -5379,7 +5367,7 @@ function wu({
|
|
|
5379
5367
|
}
|
|
5380
5368
|
) }),
|
|
5381
5369
|
/* @__PURE__ */ t(Ie, { label: i("calendarWorkspace.editor.description"), children: /* @__PURE__ */ t(
|
|
5382
|
-
|
|
5370
|
+
Ri,
|
|
5383
5371
|
{
|
|
5384
5372
|
value: e.description,
|
|
5385
5373
|
onChange: (l) => {
|
|
@@ -5395,7 +5383,7 @@ function wu({
|
|
|
5395
5383
|
e.showError ? /* @__PURE__ */ t(he, { variant: "error", children: /* @__PURE__ */ t(he.Description, { children: i("calendarWorkspace.waitingList.formError") }) }) : null
|
|
5396
5384
|
] });
|
|
5397
5385
|
}
|
|
5398
|
-
function
|
|
5386
|
+
function wu({
|
|
5399
5387
|
open: e,
|
|
5400
5388
|
entry: n,
|
|
5401
5389
|
onSave: a,
|
|
@@ -5403,13 +5391,13 @@ function Tu({
|
|
|
5403
5391
|
onRemove: i,
|
|
5404
5392
|
readOnly: o = !1
|
|
5405
5393
|
}) {
|
|
5406
|
-
const { t: d } = $e("ui"), c = (v) => `calendarWorkspace.waitingList.${v}`, l =
|
|
5394
|
+
const { t: d } = $e("ui"), c = (v) => `calendarWorkspace.waitingList.${v}`, l = Du({ entry: n, readOnly: o, onSave: a }), { reset: u } = l;
|
|
5407
5395
|
oe(() => {
|
|
5408
5396
|
e && u(n);
|
|
5409
5397
|
}, [e, n, u]);
|
|
5410
5398
|
const h = !!n && !o && i !== void 0;
|
|
5411
5399
|
return /* @__PURE__ */ t(
|
|
5412
|
-
|
|
5400
|
+
Oi,
|
|
5413
5401
|
{
|
|
5414
5402
|
open: e,
|
|
5415
5403
|
onBack: r,
|
|
@@ -5444,11 +5432,11 @@ function Tu({
|
|
|
5444
5432
|
)
|
|
5445
5433
|
] })
|
|
5446
5434
|
] }),
|
|
5447
|
-
children: /* @__PURE__ */ t("div", { className: "ds:-m-[var(--panel-subview-inset)] ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ t(
|
|
5435
|
+
children: /* @__PURE__ */ t("div", { className: "ds:-m-[var(--panel-subview-inset)] ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ t(Su, { form: l, entry: n, readOnly: o }) })
|
|
5448
5436
|
}
|
|
5449
5437
|
);
|
|
5450
5438
|
}
|
|
5451
|
-
function
|
|
5439
|
+
function Tu({ data: e }) {
|
|
5452
5440
|
const { t: n } = $e("ui");
|
|
5453
5441
|
return e ? /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:whitespace-normal type-body-sm", children: [
|
|
5454
5442
|
/* @__PURE__ */ t("span", { className: "ds:font-[var(--font-weight-semibold)]", children: e.patientName }),
|
|
@@ -5461,7 +5449,7 @@ function Lu({ data: e }) {
|
|
|
5461
5449
|
e.unassigned ? /* @__PURE__ */ t("span", { children: n("calendarWorkspace.print.bookedOnline") }) : null
|
|
5462
5450
|
] }) : null;
|
|
5463
5451
|
}
|
|
5464
|
-
function
|
|
5452
|
+
function Lu({ data: e }) {
|
|
5465
5453
|
const { t: n } = $e("ui");
|
|
5466
5454
|
return e ? /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:whitespace-normal type-body-sm", children: [
|
|
5467
5455
|
e.description ? /* @__PURE__ */ t("span", { children: e.description }) : null,
|
|
@@ -5473,7 +5461,7 @@ function Au({ data: e }) {
|
|
|
5473
5461
|
] }, `${a.careId ?? a.name}-${r}`))
|
|
5474
5462
|
] }) : null;
|
|
5475
5463
|
}
|
|
5476
|
-
function
|
|
5464
|
+
function Au({ data: e }) {
|
|
5477
5465
|
var a, r;
|
|
5478
5466
|
const n = Vn();
|
|
5479
5467
|
return e ? /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:whitespace-normal type-body-sm", children: [
|
|
@@ -5481,7 +5469,7 @@ function Eu({ data: e }) {
|
|
|
5481
5469
|
/* @__PURE__ */ t("span", { children: ((r = n.operators.find((i) => i.id === e.operatorId)) == null ? void 0 : r.title) ?? "—" })
|
|
5482
5470
|
] }) : null;
|
|
5483
5471
|
}
|
|
5484
|
-
function
|
|
5472
|
+
function Eu({
|
|
5485
5473
|
sections: e,
|
|
5486
5474
|
rangeTitle: n,
|
|
5487
5475
|
axisKind: a,
|
|
@@ -5502,13 +5490,13 @@ function Ou({
|
|
|
5502
5490
|
colId: "patient",
|
|
5503
5491
|
headerName: l(h("columns.patient")),
|
|
5504
5492
|
width: 192,
|
|
5505
|
-
cellRenderer:
|
|
5493
|
+
cellRenderer: Tu
|
|
5506
5494
|
},
|
|
5507
5495
|
{
|
|
5508
5496
|
colId: "cares",
|
|
5509
5497
|
headerName: l(h("columns.cares")),
|
|
5510
5498
|
width: 176,
|
|
5511
|
-
cellRenderer:
|
|
5499
|
+
cellRenderer: Lu
|
|
5512
5500
|
}
|
|
5513
5501
|
];
|
|
5514
5502
|
return a === "chair" ? W.push({
|
|
@@ -5537,7 +5525,7 @@ function Ou({
|
|
|
5537
5525
|
colId: "allocation",
|
|
5538
5526
|
headerName: l(h("columns.allocation")),
|
|
5539
5527
|
width: 132,
|
|
5540
|
-
cellRenderer:
|
|
5528
|
+
cellRenderer: Au
|
|
5541
5529
|
}), W.push({
|
|
5542
5530
|
colId: "status",
|
|
5543
5531
|
headerName: l(h("columns.status")),
|
|
@@ -5670,7 +5658,7 @@ function Ou({
|
|
|
5670
5658
|
document.body
|
|
5671
5659
|
);
|
|
5672
5660
|
}
|
|
5673
|
-
const Io = "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-md)] ds:[:where(&)]:border-[length:var(--surface-border-width,var(--border-width-sm))] ds:border-[color:var(--card-border)] ds:bg-[color:var(--card)] ds:shadow-[var(--shadow-sm)] ds:p-[var(--spacing-xs)] ds:ps-[var(--spacing-sm)]",
|
|
5661
|
+
const Io = "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-md)] ds:[:where(&)]:border-[length:var(--surface-border-width,var(--border-width-sm))] ds:border-[color:var(--card-border)] ds:bg-[color:var(--card)] ds:shadow-[var(--shadow-sm)] ds:p-[var(--spacing-xs)] ds:ps-[var(--spacing-sm)]", Ou = [
|
|
5674
5662
|
Io,
|
|
5675
5663
|
"ds:w-full ds:cursor-pointer ds:text-start ds:transition-colors",
|
|
5676
5664
|
"ds:hover:bg-[color:var(--muted)]",
|
|
@@ -5760,8 +5748,8 @@ function pi({
|
|
|
5760
5748
|
)
|
|
5761
5749
|
] });
|
|
5762
5750
|
}
|
|
5763
|
-
const
|
|
5764
|
-
function
|
|
5751
|
+
const Ru = 300;
|
|
5752
|
+
function Mu(e) {
|
|
5765
5753
|
return e.filter((n) => !n.event.isTask).map(
|
|
5766
5754
|
(n) => [
|
|
5767
5755
|
n.event.id,
|
|
@@ -5773,14 +5761,14 @@ function Wu(e) {
|
|
|
5773
5761
|
].join("|")
|
|
5774
5762
|
).sort().join(";");
|
|
5775
5763
|
}
|
|
5776
|
-
function
|
|
5764
|
+
function Wu(e, n) {
|
|
5777
5765
|
if (e.length !== n.length) return !1;
|
|
5778
5766
|
for (let a = 0; a < e.length; a++)
|
|
5779
5767
|
if (e[a].start.getTime() !== n[a].start.getTime() || e[a].durationMin !== n[a].durationMin || e[a].chairId !== n[a].chairId || e[a].operatorId !== n[a].operatorId)
|
|
5780
5768
|
return !1;
|
|
5781
5769
|
return !0;
|
|
5782
5770
|
}
|
|
5783
|
-
function
|
|
5771
|
+
function Pu({
|
|
5784
5772
|
rows: e,
|
|
5785
5773
|
locale: n,
|
|
5786
5774
|
seed: a,
|
|
@@ -5806,7 +5794,7 @@ function Bu({
|
|
|
5806
5794
|
return O.setHours(0, 0, 0, 0), O;
|
|
5807
5795
|
}), [pe, ve] = A(() => {
|
|
5808
5796
|
const O = new Date(u.nowIso);
|
|
5809
|
-
return O.setHours(0, 0, 0, 0), O.setDate(O.getDate() +
|
|
5797
|
+
return O.setHours(0, 0, 0, 0), O.setDate(O.getDate() + vd), O;
|
|
5810
5798
|
}), [Fe, ne] = A(null), [ze, Me] = A(!1), [wn, sn] = A(!1), [nn, g] = A(!1), [L, $] = A(null), [Ke, S] = A(!0), [H, Pe] = A(!0), fe = F(i);
|
|
5811
5799
|
fe.current = i, oe(() => () => fe.current(null), []);
|
|
5812
5800
|
const Ne = u.cares.find((O) => O.id === D), wt = ds(
|
|
@@ -5865,7 +5853,7 @@ function Bu({
|
|
|
5865
5853
|
...Ne ? { careId: Ne.id } : {},
|
|
5866
5854
|
...E ? { medicalDeviceIds: [E] } : {}
|
|
5867
5855
|
};
|
|
5868
|
-
}, mn = (O, re) =>
|
|
5856
|
+
}, mn = (O, re) => Ad(
|
|
5869
5857
|
{
|
|
5870
5858
|
rows: e,
|
|
5871
5859
|
chairs: gn,
|
|
@@ -5879,7 +5867,7 @@ function Bu({
|
|
|
5879
5867
|
), ye = (O, re) => {
|
|
5880
5868
|
g(O.length > ti), ne(O.slice(0, ti)), $(O), Ke && !R && i(O, re, ct);
|
|
5881
5869
|
}, Nn = ee(
|
|
5882
|
-
() => w ? `${
|
|
5870
|
+
() => w ? `${Mu(e)}#${u.revision ?? ""}` : "",
|
|
5883
5871
|
[w, e, u.revision]
|
|
5884
5872
|
), Be = F(null), ce = F(null);
|
|
5885
5873
|
oe(() => () => {
|
|
@@ -5920,7 +5908,7 @@ function Bu({
|
|
|
5920
5908
|
const O = Le.current, re = Rn.current;
|
|
5921
5909
|
if (!O || re === null) return;
|
|
5922
5910
|
const de = kt.current(O.from, O.to);
|
|
5923
|
-
|
|
5911
|
+
Wu(re, de) || lt.current(de, O.from);
|
|
5924
5912
|
}, [e, u, w]);
|
|
5925
5913
|
const un = F(He);
|
|
5926
5914
|
un.current = He, oe(() => {
|
|
@@ -5929,7 +5917,7 @@ function Bu({
|
|
|
5929
5917
|
if (!O) return;
|
|
5930
5918
|
const re = setTimeout(
|
|
5931
5919
|
() => un.current(O.from, O.to),
|
|
5932
|
-
|
|
5920
|
+
Ru
|
|
5933
5921
|
);
|
|
5934
5922
|
return () => clearTimeout(re);
|
|
5935
5923
|
}, [w, Nn]);
|
|
@@ -5971,7 +5959,7 @@ function Bu({
|
|
|
5971
5959
|
cares: Ne ? [{ careId: Ne.id, name: Ne.name, code: Ne.code }] : a == null ? void 0 : a.cares,
|
|
5972
5960
|
patientId: a == null ? void 0 : a.patientId
|
|
5973
5961
|
}), v("appointment-editor"));
|
|
5974
|
-
}, ht = d != null && d.devicesByCare && Ne ? d.devicesByCare[Ne.id] ?? [] : [], Qe = d == null ? void 0 : d.maxRangeDays, Kn = !!(Qe && k && pe &&
|
|
5962
|
+
}, ht = d != null && d.devicesByCare && Ne ? d.devicesByCare[Ne.id] ?? [] : [], Qe = d == null ? void 0 : d.maxRangeDays, Kn = !!(Qe && k && pe && fd(k, pe) > Qe), bn = (d == null ? void 0 : d.practiceHasBusinessHours) === !1, Gn = (d == null ? void 0 : d.operatorsHaveBusinessHours) === !1, Bn = ee(() => {
|
|
5975
5963
|
if (!Fe) return [];
|
|
5976
5964
|
const O = /* @__PURE__ */ new Map();
|
|
5977
5965
|
for (const re of Fe) {
|
|
@@ -6022,7 +6010,7 @@ function Bu({
|
|
|
6022
6010
|
{
|
|
6023
6011
|
size: "sm",
|
|
6024
6012
|
intent: "outline",
|
|
6025
|
-
startIcon: /* @__PURE__ */ t(
|
|
6013
|
+
startIcon: /* @__PURE__ */ t(Mi, { "aria-hidden": "true" }),
|
|
6026
6014
|
children: l(h("filters"))
|
|
6027
6015
|
}
|
|
6028
6016
|
) }),
|
|
@@ -6065,7 +6053,7 @@ function Bu({
|
|
|
6065
6053
|
total: on.length
|
|
6066
6054
|
}),
|
|
6067
6055
|
hint: l(h("everyoneOperators")),
|
|
6068
|
-
icon: /* @__PURE__ */ t(
|
|
6056
|
+
icon: /* @__PURE__ */ t(Ai, { "aria-hidden": "true" }),
|
|
6069
6057
|
sections: tn,
|
|
6070
6058
|
selected: f,
|
|
6071
6059
|
onChange: _
|
|
@@ -6080,7 +6068,7 @@ function Bu({
|
|
|
6080
6068
|
total: be.length
|
|
6081
6069
|
}),
|
|
6082
6070
|
hint: l(h("everyoneChairs")),
|
|
6083
|
-
icon: /* @__PURE__ */ t(
|
|
6071
|
+
icon: /* @__PURE__ */ t(wr, { "aria-hidden": "true" }),
|
|
6084
6072
|
sections: bt,
|
|
6085
6073
|
selected: we,
|
|
6086
6074
|
onChange: q
|
|
@@ -6211,7 +6199,7 @@ function Bu({
|
|
|
6211
6199
|
"button",
|
|
6212
6200
|
{
|
|
6213
6201
|
type: "button",
|
|
6214
|
-
className:
|
|
6202
|
+
className: Ou,
|
|
6215
6203
|
onClick: () => xn(de),
|
|
6216
6204
|
children: [
|
|
6217
6205
|
Ce,
|
|
@@ -6254,19 +6242,19 @@ function or(e) {
|
|
|
6254
6242
|
}
|
|
6255
6243
|
return null;
|
|
6256
6244
|
}
|
|
6257
|
-
function
|
|
6245
|
+
function Bu(e, n) {
|
|
6258
6246
|
return n && or(n) === or(e) ? e.getBoundingClientRect().height : 0;
|
|
6259
6247
|
}
|
|
6260
|
-
function
|
|
6261
|
-
const r = or(e), i = a ? or(a) : void 0, o =
|
|
6248
|
+
function _u(e, n, a) {
|
|
6249
|
+
const r = or(e), i = a ? or(a) : void 0, o = Bu(e, n), d = a && i === r ? e.getBoundingClientRect().height : 0, c = a !== null && n !== null && i === or(n), l = o + (c ? a.getBoundingClientRect().height : 0), u = n && o > 0 ? l + n.getBoundingClientRect().height : 0;
|
|
6262
6250
|
return { nav: o, bannerTop: d, header: l, pinned: u };
|
|
6263
6251
|
}
|
|
6264
|
-
function
|
|
6252
|
+
function $u(e, n) {
|
|
6265
6253
|
let a = null, r = null;
|
|
6266
6254
|
const i = new ResizeObserver(() => d()), o = (l, u) => (l && i.unobserve(l), u && i.observe(u), u), d = () => {
|
|
6267
6255
|
const l = n.querySelector(gi), u = n.querySelector(vi);
|
|
6268
6256
|
l !== a && (a = o(a, l)), u !== r && (r = o(r, u));
|
|
6269
|
-
const h =
|
|
6257
|
+
const h = _u(e, a, r);
|
|
6270
6258
|
n.style.setProperty("--inc1-nav-offset", `${h.nav}px`), n.style.setProperty("--inc1-banner-top", `${h.bannerTop}px`), n.style.setProperty("--inc1-header-offset", `${h.header}px`), n.style.setProperty(
|
|
6271
6259
|
"--inc1-pinned-block-size",
|
|
6272
6260
|
`${h.pinned}px`
|
|
@@ -6280,7 +6268,7 @@ function zu(e, n) {
|
|
|
6280
6268
|
i.disconnect(), c.disconnect();
|
|
6281
6269
|
};
|
|
6282
6270
|
}
|
|
6283
|
-
const
|
|
6271
|
+
const zu = "calendar-workspace", Fu = "ds:[--inc1-nav-block-size:2.5rem]", Hu = "ds:[&_.fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*]:!top-[var(--inc1-header-offset,0px)]", Vu = "ds:[&_[data-calendar-mode-banner]]:!top-[var(--inc1-banner-top,0px)]", Uu = "ds:[&_:is(.fc-event,.fc-bg-event_button,.fc-daygrid-more-link,a[data-navlink])]:[scroll-margin-block-start:var(--inc1-pinned-block-size,0px)]", Ku = "ds:pointer-events-none ds:absolute ds:-top-1 ds:-end-1 ds:z-10", tr = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)]", _t = `${tr} ds:[min-inline-size:var(--accessible-target-floor,auto)]`, hs = zr(
|
|
6284
6272
|
({ badgeCount: e = 0, badgeVariant: n = "brand", icon: a, className: r, ...i }, o) => /* @__PURE__ */ t(
|
|
6285
6273
|
qe,
|
|
6286
6274
|
{
|
|
@@ -6294,7 +6282,7 @@ const Fu = "calendar-workspace", Hu = "ds:[--inc1-nav-block-size:2.5rem]", Vu =
|
|
|
6294
6282
|
size: "sm",
|
|
6295
6283
|
variant: n,
|
|
6296
6284
|
"aria-hidden": "true",
|
|
6297
|
-
className:
|
|
6285
|
+
className: Ku,
|
|
6298
6286
|
children: e
|
|
6299
6287
|
}
|
|
6300
6288
|
) : null
|
|
@@ -6305,7 +6293,7 @@ const Fu = "calendar-workspace", Hu = "ds:[--inc1-nav-block-size:2.5rem]", Vu =
|
|
|
6305
6293
|
)
|
|
6306
6294
|
);
|
|
6307
6295
|
hs.displayName = "RailToolButton";
|
|
6308
|
-
function
|
|
6296
|
+
function Gu({
|
|
6309
6297
|
rows: e,
|
|
6310
6298
|
setRows: n,
|
|
6311
6299
|
onFocus: a,
|
|
@@ -6342,7 +6330,7 @@ function qu({
|
|
|
6342
6330
|
availabilityContext: ve,
|
|
6343
6331
|
availableTools: Fe,
|
|
6344
6332
|
schedulerLicenseKey: ne,
|
|
6345
|
-
id: ze =
|
|
6333
|
+
id: ze = zu,
|
|
6346
6334
|
preferences: Me,
|
|
6347
6335
|
onMoveOccurrence: wn,
|
|
6348
6336
|
onViewChange: sn,
|
|
@@ -6370,7 +6358,7 @@ function qu({
|
|
|
6370
6358
|
Y.careId,
|
|
6371
6359
|
Y.medicalDeviceId
|
|
6372
6360
|
]), le = new Set(
|
|
6373
|
-
|
|
6361
|
+
Td(pe).flatMap(
|
|
6374
6362
|
(Y) => Y.options.map(K)
|
|
6375
6363
|
)
|
|
6376
6364
|
);
|
|
@@ -6381,12 +6369,12 @@ function qu({
|
|
|
6381
6369
|
Ks(() => {
|
|
6382
6370
|
const s = be.current, N = on.current;
|
|
6383
6371
|
if (!(!s || !N))
|
|
6384
|
-
return
|
|
6372
|
+
return $u(s, N);
|
|
6385
6373
|
}, []);
|
|
6386
6374
|
const pn = F(null), [gn, ct] = nr(
|
|
6387
6375
|
Ka.view,
|
|
6388
6376
|
"day",
|
|
6389
|
-
|
|
6377
|
+
Wd,
|
|
6390
6378
|
Me
|
|
6391
6379
|
), [De, dt] = nr(
|
|
6392
6380
|
Ka.showWeekends,
|
|
@@ -6396,12 +6384,12 @@ function qu({
|
|
|
6396
6384
|
), [tn, bt] = nr(
|
|
6397
6385
|
Ka.chairIds,
|
|
6398
6386
|
() => [],
|
|
6399
|
-
|
|
6387
|
+
qc(L),
|
|
6400
6388
|
Me
|
|
6401
6389
|
), [Ze, mn] = nr(
|
|
6402
6390
|
Ka.operatorIds,
|
|
6403
6391
|
() => [],
|
|
6404
|
-
|
|
6392
|
+
jc(L),
|
|
6405
6393
|
Me
|
|
6406
6394
|
), ye = (s) => X(s(k)), [Nn, Be] = A(
|
|
6407
6395
|
() => /* @__PURE__ */ new Date(`${L.initialDateIso}T00:00:00`)
|
|
@@ -6420,13 +6408,13 @@ function qu({
|
|
|
6420
6408
|
var s;
|
|
6421
6409
|
R && !Zt(R.date) && ((s = Pe.current) == null || s.gotoDate(R.date));
|
|
6422
6410
|
}, [R, Zt]);
|
|
6423
|
-
const at =
|
|
6411
|
+
const at = Md[gn], Re = at === "Month", ie = Re ? "none" : T.resourceKind, yn = Re ? "dayGridMonth" : ie === "none" ? `timeGrid${at}` : `resourceTimeGrid${at}${ie === "operator" ? "Operator" : "Chair"}`, jn = F(sn);
|
|
6424
6412
|
jn.current = sn, Ks(() => {
|
|
6425
6413
|
var s;
|
|
6426
6414
|
(s = jn.current) == null || s.call(jn, yn);
|
|
6427
6415
|
}, [yn]);
|
|
6428
6416
|
const Yn = pe !== null && pe.length > 0, Sn = ee(() => L.chairs.map((s) => s.id), [L]), Xn = ee(
|
|
6429
|
-
() =>
|
|
6417
|
+
() => Gd(
|
|
6430
6418
|
e,
|
|
6431
6419
|
L.inactiveOperatorIds,
|
|
6432
6420
|
mt ? {
|
|
@@ -6436,7 +6424,7 @@ function qu({
|
|
|
6436
6424
|
),
|
|
6437
6425
|
[e, mt, L]
|
|
6438
6426
|
), Tt = ee(
|
|
6439
|
-
() =>
|
|
6427
|
+
() => qd({
|
|
6440
6428
|
operators: L.operators,
|
|
6441
6429
|
inactiveIds: L.inactiveOperatorIds,
|
|
6442
6430
|
showDisabled: lt,
|
|
@@ -6450,7 +6438,7 @@ function qu({
|
|
|
6450
6438
|
() => oi(Ze, Tt),
|
|
6451
6439
|
[Ze, Tt]
|
|
6452
6440
|
), Lt = ee(
|
|
6453
|
-
() =>
|
|
6441
|
+
() => zd(De),
|
|
6454
6442
|
[De]
|
|
6455
6443
|
), Ve = ee(() => {
|
|
6456
6444
|
const s = L.dayLoadState;
|
|
@@ -6461,11 +6449,11 @@ function qu({
|
|
|
6461
6449
|
s[le] !== "ready" && N.push(le), K.setDate(K.getDate() + 1);
|
|
6462
6450
|
}
|
|
6463
6451
|
return N;
|
|
6464
|
-
}, [L.dayLoadState, mt]), It =
|
|
6452
|
+
}, [L.dayLoadState, mt]), It = Ud(T.window, L), yt = ee(() => {
|
|
6465
6453
|
const s = new Date(Gn);
|
|
6466
6454
|
return s.setHours(0, 0, 0, 0), [s];
|
|
6467
6455
|
}, [Gn]), Mn = ee(
|
|
6468
|
-
() =>
|
|
6456
|
+
() => Nd(
|
|
6469
6457
|
{
|
|
6470
6458
|
rows: e,
|
|
6471
6459
|
days: yt,
|
|
@@ -6515,7 +6503,7 @@ function qu({
|
|
|
6515
6503
|
...te.event,
|
|
6516
6504
|
...Wn(te),
|
|
6517
6505
|
resourceId: ie === "operator" ? te.operatorId : te.chairId,
|
|
6518
|
-
suffix:
|
|
6506
|
+
suffix: Lr(
|
|
6519
6507
|
{ description: te.description, cares: te.cares },
|
|
6520
6508
|
T.careDescription
|
|
6521
6509
|
),
|
|
@@ -6530,7 +6518,7 @@ function qu({
|
|
|
6530
6518
|
N.setDate(N.getDate() - (Re ? 42 : 7));
|
|
6531
6519
|
const K = new Date(Nn);
|
|
6532
6520
|
K.setDate(K.getDate() + (Re ? 42 : 13));
|
|
6533
|
-
const le = Ln && T.orientation === "vertical" && !Re, Y =
|
|
6521
|
+
const le = Ln && T.orientation === "vertical" && !Re, Y = Id(
|
|
6534
6522
|
{
|
|
6535
6523
|
axisKind: ie,
|
|
6536
6524
|
rangeStart: N,
|
|
@@ -6547,7 +6535,7 @@ function qu({
|
|
|
6547
6535
|
L
|
|
6548
6536
|
), Ae = [];
|
|
6549
6537
|
if (Yn && pe)
|
|
6550
|
-
for (const te of
|
|
6538
|
+
for (const te of Ld(pe, ie))
|
|
6551
6539
|
Ae.push({
|
|
6552
6540
|
id: `avail-${te.key}`,
|
|
6553
6541
|
title: g(S("findSlots.free")),
|
|
@@ -6557,7 +6545,7 @@ function qu({
|
|
|
6557
6545
|
optionCount: te.optionCount,
|
|
6558
6546
|
...te.resourceId ? { resourceId: te.resourceId } : {}
|
|
6559
6547
|
});
|
|
6560
|
-
const Ee = Yn ? [] :
|
|
6548
|
+
const Ee = Yn ? [] : bd(
|
|
6561
6549
|
{
|
|
6562
6550
|
axisKind: ie,
|
|
6563
6551
|
rangeStart: N,
|
|
@@ -6598,7 +6586,7 @@ function qu({
|
|
|
6598
6586
|
header renders text: under the initials treatment the
|
|
6599
6587
|
Avatar derives its letters from the title, so a marker
|
|
6600
6588
|
would corrupt them. */
|
|
6601
|
-
title:
|
|
6589
|
+
title: Xd(
|
|
6602
6590
|
s,
|
|
6603
6591
|
L.inactiveOperatorIds.includes(s.id) && T.operatorNameDisplay !== "initials",
|
|
6604
6592
|
g(H("filters.disabledOperator"))
|
|
@@ -6606,12 +6594,12 @@ function qu({
|
|
|
6606
6594
|
...Ln ? { hiddenDates: L.operatorAbsences[s.id] } : {}
|
|
6607
6595
|
})) : L.chairs.filter((s) => cn.includes(s.id)).map((s) => ({
|
|
6608
6596
|
...s,
|
|
6609
|
-
title:
|
|
6597
|
+
title: Yd(s, T.chairNameDisplay)
|
|
6610
6598
|
})), Jn = b ? e.find((s) => s.event.id === b.eventId) : void 0;
|
|
6611
6599
|
oe(() => {
|
|
6612
6600
|
b && !Jn && (z == null || z());
|
|
6613
6601
|
}, [b, Jn, z]);
|
|
6614
|
-
const Mt = b && Jn ? b.kind : f ? "create" : "default", ca = b && Jn ? Jn.event.backgroundColor : f == null ? void 0 : f.prefill.colorHex, Ft =
|
|
6602
|
+
const Mt = b && Jn ? b.kind : f ? "create" : "default", ca = b && Jn ? Jn.event.backgroundColor : f == null ? void 0 : f.prefill.colorHex, Ft = el(ca), Ia = b && Jn ? g(H(`placement.${b.kind}Banner`), {
|
|
6615
6603
|
name: Ba(Jn.event, k)
|
|
6616
6604
|
}) : f ? f.patientName && !k ? g(H("placement.createBannerNamed"), {
|
|
6617
6605
|
name: f.patientName
|
|
@@ -6638,7 +6626,7 @@ function qu({
|
|
|
6638
6626
|
oe(() => {
|
|
6639
6627
|
if (!q || q.tick === Pn.current) return;
|
|
6640
6628
|
Pn.current = q.tick;
|
|
6641
|
-
const s =
|
|
6629
|
+
const s = al(q, {
|
|
6642
6630
|
visibleRange: In.current,
|
|
6643
6631
|
hiddenDays: Lt,
|
|
6644
6632
|
selectedChairIds: tn,
|
|
@@ -6712,7 +6700,7 @@ function qu({
|
|
|
6712
6700
|
]
|
|
6713
6701
|
), da = Z(
|
|
6714
6702
|
(s, N) => {
|
|
6715
|
-
s.allDay && Dt(s.patientId) === "" && !
|
|
6703
|
+
s.allDay && Dt(s.patientId) === "" && !Nr(s) || (Ce({ event: s, el: N.el }), !Nr(s) && !s.isTask && (nn == null || nn(s.id)));
|
|
6716
6704
|
},
|
|
6717
6705
|
[nn]
|
|
6718
6706
|
), P = Z(() => Ce(null), []), me = F(""), _e = Z(
|
|
@@ -6768,15 +6756,15 @@ function qu({
|
|
|
6768
6756
|
(s, N) => {
|
|
6769
6757
|
const K = e.find((le) => le.event.id === s);
|
|
6770
6758
|
if (n((le) => ci(le, s, N)), K != null && K.event.end && Dt(K.event.patientId) !== "") {
|
|
6771
|
-
const le =
|
|
6759
|
+
const le = yr(K.event.start, K.event.end), Y = yr(K.event.start, N);
|
|
6772
6760
|
le !== Y && C(s, { kind: "resized", fromMin: le, toMin: Y });
|
|
6773
6761
|
}
|
|
6774
6762
|
},
|
|
6775
6763
|
[n, e, C]
|
|
6776
6764
|
), st = Z(
|
|
6777
6765
|
(s) => {
|
|
6778
|
-
const N =
|
|
6779
|
-
kn(
|
|
6766
|
+
const N = Wr(Jt(s, L));
|
|
6767
|
+
kn(Ar(N.sms)), ia(Ar(N.email));
|
|
6780
6768
|
},
|
|
6781
6769
|
[L]
|
|
6782
6770
|
), At = Z(
|
|
@@ -6845,7 +6833,7 @@ function qu({
|
|
|
6845
6833
|
}
|
|
6846
6834
|
const N = s.event.id, K = s.oldEnd;
|
|
6847
6835
|
if (Te(N, s.newEnd), Xr(s.event)) return;
|
|
6848
|
-
const le =
|
|
6836
|
+
const le = yr(s.event.start, s.newEnd), Y = yr(s.event.start, K), Ae = Ba(s.event, k);
|
|
6849
6837
|
ra(g(H("resize.toast")), {
|
|
6850
6838
|
description: g(H("resize.description"), { name: Ae, minutes: le }),
|
|
6851
6839
|
action: {
|
|
@@ -6970,19 +6958,19 @@ function qu({
|
|
|
6970
6958
|
0
|
|
6971
6959
|
), b.kind === "copy") {
|
|
6972
6960
|
oa.current += 1;
|
|
6973
|
-
const jt = `apt-copy-${oa.current}`,
|
|
6961
|
+
const jt = `apt-copy-${oa.current}`, vr = nl(
|
|
6974
6962
|
Ee,
|
|
6975
6963
|
{ start: an, resourceId: s.resourceId, axisKind: ie },
|
|
6976
6964
|
jt,
|
|
6977
6965
|
b.withTreatments === !0
|
|
6978
6966
|
);
|
|
6979
|
-
n((za) => [...za,
|
|
6967
|
+
n((za) => [...za, vr]), C(jt, { kind: "created" }), ra(
|
|
6980
6968
|
g(H("placement.copied"), { date: ft(r, an) }),
|
|
6981
6969
|
{
|
|
6982
6970
|
action: {
|
|
6983
6971
|
label: g(H("placement.undo")),
|
|
6984
6972
|
onClick: () => {
|
|
6985
|
-
n((za) => za.filter((
|
|
6973
|
+
n((za) => za.filter((fr) => fr.event.id !== jt)), ra(g(H("placement.copyUndone")));
|
|
6986
6974
|
}
|
|
6987
6975
|
}
|
|
6988
6976
|
}
|
|
@@ -7090,7 +7078,7 @@ function qu({
|
|
|
7090
7078
|
);
|
|
7091
7079
|
oe(() => {
|
|
7092
7080
|
const s = (N) => {
|
|
7093
|
-
const K =
|
|
7081
|
+
const K = $d(N);
|
|
7094
7082
|
K && (N.preventDefault(), ua(K));
|
|
7095
7083
|
};
|
|
7096
7084
|
return document.addEventListener("keydown", s), () => document.removeEventListener("keydown", s);
|
|
@@ -7103,7 +7091,7 @@ function qu({
|
|
|
7103
7091
|
), Qt = ee(
|
|
7104
7092
|
() => qi({
|
|
7105
7093
|
groups: L.operatorGroups,
|
|
7106
|
-
operators:
|
|
7094
|
+
operators: jd(
|
|
7107
7095
|
L.operators,
|
|
7108
7096
|
L.inactiveOperatorIds,
|
|
7109
7097
|
lt
|
|
@@ -7117,7 +7105,7 @@ function qu({
|
|
|
7117
7105
|
Rn(s), !s && mn(
|
|
7118
7106
|
(N) => N.filter((K) => !L.inactiveOperatorIds.includes(K))
|
|
7119
7107
|
);
|
|
7120
|
-
}, Ca =
|
|
7108
|
+
}, Ca = Kd(tn, Ze), Aa = () => {
|
|
7121
7109
|
var s;
|
|
7122
7110
|
(s = pn.current) == null || s.focus(), bt([]), mn([]), Rn(!1), kt(!0);
|
|
7123
7111
|
}, Na = g(S(`view.${gn}`)), Gt = ao(L), ea = [
|
|
@@ -7133,7 +7121,7 @@ function qu({
|
|
|
7133
7121
|
], Za = [10, 15, 20, 30, 45, 60], Wt = [
|
|
7134
7122
|
.../* @__PURE__ */ new Set([...Za, T.defaultDurationMin])
|
|
7135
7123
|
].filter(
|
|
7136
|
-
(s) => s >=
|
|
7124
|
+
(s) => s >= Rr.min && s <= Rr.max
|
|
7137
7125
|
).sort((s, N) => s - N).map((s) => ({
|
|
7138
7126
|
value: String(s),
|
|
7139
7127
|
label: g(H("settings.durationOption"), { minutes: s })
|
|
@@ -7487,7 +7475,7 @@ function qu({
|
|
|
7487
7475
|
{
|
|
7488
7476
|
type: "button",
|
|
7489
7477
|
className: tr,
|
|
7490
|
-
startIcon: /* @__PURE__ */ t(
|
|
7478
|
+
startIcon: /* @__PURE__ */ t(Ti, { "aria-hidden": "true" }),
|
|
7491
7479
|
"data-action": "new-task",
|
|
7492
7480
|
onClick: o,
|
|
7493
7481
|
children: g(S("actions.newTask"))
|
|
@@ -7522,7 +7510,7 @@ function qu({
|
|
|
7522
7510
|
{
|
|
7523
7511
|
type: "button",
|
|
7524
7512
|
className: _t,
|
|
7525
|
-
icon: /* @__PURE__ */ t(
|
|
7513
|
+
icon: /* @__PURE__ */ t(Pc, { "aria-hidden": "true" }),
|
|
7526
7514
|
"aria-label": g(H("toolbar.addToWaitingList")),
|
|
7527
7515
|
tooltip: g(H("toolbar.addToWaitingList")),
|
|
7528
7516
|
onClick: c
|
|
@@ -7576,7 +7564,7 @@ function qu({
|
|
|
7576
7564
|
type: "button",
|
|
7577
7565
|
className: _t,
|
|
7578
7566
|
intent: "outline",
|
|
7579
|
-
icon: k ? /* @__PURE__ */ t(hr, {}) : /* @__PURE__ */ t(
|
|
7567
|
+
icon: k ? /* @__PURE__ */ t(hr, {}) : /* @__PURE__ */ t(Li, {}),
|
|
7580
7568
|
"aria-label": g(S("actions.privacy")),
|
|
7581
7569
|
"aria-pressed": k,
|
|
7582
7570
|
tooltip: g(S("actions.privacy")),
|
|
@@ -7636,7 +7624,7 @@ function qu({
|
|
|
7636
7624
|
size: "sm",
|
|
7637
7625
|
className: `ds:shrink-0 ${_t} ds:@max-[768px]/calendar-nav:ps-[var(--spacing-sm)] ds:@max-[768px]/calendar-nav:pe-[var(--spacing-sm)]`,
|
|
7638
7626
|
intent: "outline",
|
|
7639
|
-
startIcon: /* @__PURE__ */ t(
|
|
7627
|
+
startIcon: /* @__PURE__ */ t(wr, {}),
|
|
7640
7628
|
endIcon: tn.length > 0 ? /* @__PURE__ */ t(ot, { size: "sm", variant: "brand", children: tn.length }) : void 0,
|
|
7641
7629
|
"aria-label": tn.length > 0 ? g(H("toolbar.chairsCount"), {
|
|
7642
7630
|
count: tn.length
|
|
@@ -7682,7 +7670,7 @@ function qu({
|
|
|
7682
7670
|
size: "sm",
|
|
7683
7671
|
className: `ds:shrink-0 ${_t} ds:@max-[768px]/calendar-nav:ps-[var(--spacing-sm)] ds:@max-[768px]/calendar-nav:pe-[var(--spacing-sm)]`,
|
|
7684
7672
|
intent: "outline",
|
|
7685
|
-
startIcon: /* @__PURE__ */ t(
|
|
7673
|
+
startIcon: /* @__PURE__ */ t(Ai, {}),
|
|
7686
7674
|
endIcon: Ze.length > 0 ? /* @__PURE__ */ t(ot, { size: "sm", variant: "brand", children: Ze.length }) : void 0,
|
|
7687
7675
|
"aria-label": Ze.length > 0 ? g(H("toolbar.operatorsCount"), {
|
|
7688
7676
|
count: Ze.length
|
|
@@ -7883,7 +7871,7 @@ function qu({
|
|
|
7883
7871
|
className: _t,
|
|
7884
7872
|
intent: "outline",
|
|
7885
7873
|
background: "surface",
|
|
7886
|
-
icon: /* @__PURE__ */ t(
|
|
7874
|
+
icon: /* @__PURE__ */ t(Ei, {}),
|
|
7887
7875
|
flipIconInRtl: !0,
|
|
7888
7876
|
"aria-label": $("calendar.nextPeriod"),
|
|
7889
7877
|
tooltip: $("calendar.nextPeriod"),
|
|
@@ -7908,10 +7896,10 @@ function qu({
|
|
|
7908
7896
|
I,
|
|
7909
7897
|
hn == null ? void 0 : hn.event.title,
|
|
7910
7898
|
g(S("details.patientNotLoaded"))
|
|
7911
|
-
) : null, xe =
|
|
7899
|
+
) : null, xe = Wr(I), $n = Er(xe.sms), En = Er(xe.email), Et = Or(xe.sms, {
|
|
7912
7900
|
optedOut: "moveConfirm.smsOptedOut",
|
|
7913
7901
|
none: "moveConfirm.smsUnavailable"
|
|
7914
|
-
}), Ot =
|
|
7902
|
+
}), Ot = Or(xe.email, {
|
|
7915
7903
|
optedOut: "moveConfirm.emailOptedOut",
|
|
7916
7904
|
none: "moveConfirm.emailUnavailable"
|
|
7917
7905
|
});
|
|
@@ -7939,7 +7927,7 @@ function qu({
|
|
|
7939
7927
|
"div",
|
|
7940
7928
|
{
|
|
7941
7929
|
ref: on,
|
|
7942
|
-
className: `ds:flex ds:min-h-full ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-lg)] ${
|
|
7930
|
+
className: `ds:flex ds:min-h-full ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-lg)] ${Fu}`,
|
|
7943
7931
|
children: [
|
|
7944
7932
|
fe && Tn.length > 0 ? /* @__PURE__ */ p(
|
|
7945
7933
|
On,
|
|
@@ -8078,7 +8066,7 @@ function qu({
|
|
|
8078
8066
|
resourceLayout: T.orientation,
|
|
8079
8067
|
resourceLabelVariant: "chip",
|
|
8080
8068
|
selectedEventId: y,
|
|
8081
|
-
className: `ds:[--fc-bg-event-color:var(--muted-foreground)] ${
|
|
8069
|
+
className: `ds:[--fc-bg-event-color:var(--muted-foreground)] ${Hu} ${Vu} ${Uu}`,
|
|
8082
8070
|
showResourceInitials: ie === "operator" && T.operatorNameDisplay === "initials",
|
|
8083
8071
|
verticalResourceLabels: at === "Week" && T.orientation === "vertical",
|
|
8084
8072
|
resourceAreaHeader: ie === "operator" ? "operators" : "chairs",
|
|
@@ -8104,7 +8092,7 @@ function qu({
|
|
|
8104
8092
|
slotMinTime: It.min,
|
|
8105
8093
|
slotMaxTime: It.max,
|
|
8106
8094
|
slotDuration: T.slotDuration,
|
|
8107
|
-
snapDuration:
|
|
8095
|
+
snapDuration: Qc,
|
|
8108
8096
|
defaultTimedEventDuration: T.defaultDurationMin,
|
|
8109
8097
|
nowIndicator: !0,
|
|
8110
8098
|
toolbar: !1,
|
|
@@ -8131,7 +8119,7 @@ function qu({
|
|
|
8131
8119
|
}
|
|
8132
8120
|
),
|
|
8133
8121
|
/* @__PURE__ */ t(
|
|
8134
|
-
|
|
8122
|
+
Eu,
|
|
8135
8123
|
{
|
|
8136
8124
|
sections: Mn,
|
|
8137
8125
|
rangeTitle: ft(r, Gn),
|
|
@@ -8166,7 +8154,7 @@ function qu({
|
|
|
8166
8154
|
onOpenAutoFocus: (s) => {
|
|
8167
8155
|
s.preventDefault();
|
|
8168
8156
|
},
|
|
8169
|
-
children:
|
|
8157
|
+
children: Nr(ae.event) ? /* @__PURE__ */ p(Ue, { children: [
|
|
8170
8158
|
/* @__PURE__ */ t(er.Heading, { children: ae.event.title }),
|
|
8171
8159
|
/* @__PURE__ */ t(er.Body, { children: /* @__PURE__ */ t("span", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:pt-[var(--spacing-2xs)]", children: /* @__PURE__ */ t(
|
|
8172
8160
|
Ua,
|
|
@@ -8285,7 +8273,7 @@ function qu({
|
|
|
8285
8273
|
label: g(S("moveConfirm.scope")),
|
|
8286
8274
|
value: _n,
|
|
8287
8275
|
onValueChange: (s) => Dn(s),
|
|
8288
|
-
children:
|
|
8276
|
+
children: Mr.map((s) => /* @__PURE__ */ t(
|
|
8289
8277
|
xt,
|
|
8290
8278
|
{
|
|
8291
8279
|
value: s,
|
|
@@ -8370,19 +8358,19 @@ function qu({
|
|
|
8370
8358
|
}
|
|
8371
8359
|
);
|
|
8372
8360
|
}
|
|
8373
|
-
const ue = (e) => `calendarWorkspace.waitingList.${e}`, Pa = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)]", gr = `${Pa} ds:[min-inline-size:var(--accessible-target-floor,auto)]`,
|
|
8361
|
+
const ue = (e) => `calendarWorkspace.waitingList.${e}`, Pa = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)]", gr = `${Pa} ds:[min-inline-size:var(--accessible-target-floor,auto)]`, qu = {
|
|
8374
8362
|
linked: "groupLinked",
|
|
8375
8363
|
patient: "groupPatient",
|
|
8376
8364
|
memo: "groupMemo"
|
|
8377
|
-
},
|
|
8365
|
+
}, ju = {
|
|
8378
8366
|
all: "chipAll",
|
|
8379
8367
|
noAppointment: "chipNoAppointment",
|
|
8380
8368
|
scheduledOver30: "chipScheduledOver30",
|
|
8381
8369
|
waitingOver30: "chipWaitingOver30"
|
|
8382
|
-
},
|
|
8370
|
+
}, Yu = {
|
|
8383
8371
|
linked: /* @__PURE__ */ t(ar, { "aria-hidden": "true" }),
|
|
8384
8372
|
patient: /* @__PURE__ */ t(_a, { "aria-hidden": "true" }),
|
|
8385
|
-
memo: /* @__PURE__ */ t(
|
|
8373
|
+
memo: /* @__PURE__ */ t($c, { "aria-hidden": "true" })
|
|
8386
8374
|
}, Va = $a(
|
|
8387
8375
|
"type-body-sm ds:flex ds:min-w-0 ds:items-center ds:gap-[var(--spacing-xs)] ds:text-start ds:[&>svg]:size-3.5 ds:[&>svg]:shrink-0",
|
|
8388
8376
|
{
|
|
@@ -8405,7 +8393,7 @@ const ue = (e) => `calendarWorkspace.waitingList.${e}`, Pa = "ds:sm:[min-block-s
|
|
|
8405
8393
|
}
|
|
8406
8394
|
},
|
|
8407
8395
|
defaultVariants: { tone: "name" }
|
|
8408
|
-
}),
|
|
8396
|
+
}), $r = "ds:ps-[calc(var(--spacing-xl)+var(--spacing-sm))] ds:@max-[288px]/waitcard:ps-0", Xu = [
|
|
8409
8397
|
Va({ tone: "body" }),
|
|
8410
8398
|
"ds:w-full ds:cursor-pointer ds:rounded-[var(--radius-sm)] ds:border-0 ds:bg-transparent ds:p-0",
|
|
8411
8399
|
"ds:min-h-[var(--spacing-lg)]",
|
|
@@ -8414,7 +8402,7 @@ const ue = (e) => `calendarWorkspace.waitingList.${e}`, Pa = "ds:sm:[min-block-s
|
|
|
8414
8402
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
8415
8403
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
8416
8404
|
"ds:[&>svg]:text-[color:var(--muted-foreground)] ds:hover:[&>svg]:text-[color:var(--foreground)]"
|
|
8417
|
-
].join(" "),
|
|
8405
|
+
].join(" "), Ju = "ds:size-2 ds:shrink-0 ds:rounded-[var(--radius-full)] ds:border ds:border-[color:var(--border)] ds:bg-[var(--calendar-event-accent,var(--muted-foreground))]", Zu = "ds:flex ds:size-8 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-[var(--radius-full)] ds:bg-[var(--muted)] ds:text-[color:var(--muted-foreground)]";
|
|
8418
8406
|
function bi(e, n, a = {}) {
|
|
8419
8407
|
try {
|
|
8420
8408
|
const r = ja(n), i = a.nowIso !== void 0 && ja(a.nowIso).getFullYear() !== r.getFullYear();
|
|
@@ -8428,7 +8416,7 @@ function bi(e, n, a = {}) {
|
|
|
8428
8416
|
return "";
|
|
8429
8417
|
}
|
|
8430
8418
|
}
|
|
8431
|
-
function
|
|
8419
|
+
function Qu({
|
|
8432
8420
|
number: e,
|
|
8433
8421
|
label: n,
|
|
8434
8422
|
...a
|
|
@@ -8443,7 +8431,7 @@ function eh({
|
|
|
8443
8431
|
...a,
|
|
8444
8432
|
size: "sm",
|
|
8445
8433
|
className: gr,
|
|
8446
|
-
icon: /* @__PURE__ */ t(
|
|
8434
|
+
icon: /* @__PURE__ */ t(Tr, { "aria-hidden": "true" }),
|
|
8447
8435
|
"aria-label": n,
|
|
8448
8436
|
tooltip: n,
|
|
8449
8437
|
"aria-disabled": "true",
|
|
@@ -8457,7 +8445,7 @@ function eh({
|
|
|
8457
8445
|
asChild: !0,
|
|
8458
8446
|
size: "sm",
|
|
8459
8447
|
className: `ds:w-8 ds:p-0 ds:[&>span]:shrink-0 ${gr}`,
|
|
8460
|
-
startIcon: /* @__PURE__ */ t(
|
|
8448
|
+
startIcon: /* @__PURE__ */ t(Tr, { "aria-hidden": "true" }),
|
|
8461
8449
|
"data-action": "open-whatsapp",
|
|
8462
8450
|
children: /* @__PURE__ */ t(
|
|
8463
8451
|
"a",
|
|
@@ -8471,7 +8459,7 @@ function eh({
|
|
|
8471
8459
|
}
|
|
8472
8460
|
) });
|
|
8473
8461
|
}
|
|
8474
|
-
function
|
|
8462
|
+
function eh({
|
|
8475
8463
|
entryId: e,
|
|
8476
8464
|
label: n,
|
|
8477
8465
|
editLabel: a,
|
|
@@ -8544,7 +8532,7 @@ function nh({
|
|
|
8544
8532
|
)
|
|
8545
8533
|
] });
|
|
8546
8534
|
}
|
|
8547
|
-
const yo =
|
|
8535
|
+
const yo = zr(
|
|
8548
8536
|
({
|
|
8549
8537
|
view: e,
|
|
8550
8538
|
locale: n,
|
|
@@ -8558,8 +8546,8 @@ const yo = Fr(
|
|
|
8558
8546
|
onOpenAppointment: u
|
|
8559
8547
|
}, h) => {
|
|
8560
8548
|
var $, Ke;
|
|
8561
|
-
const { t: v } = $e("ui"), y = Vn(), R = St(), w = St(), { entry: D, appointment: T } = e, E = oo(D), W = E === "linked", C = E === "memo", M = e.patient ?? e.appointmentPatient, J = v("calendarWorkspace.details.patientNotLoaded"), Q = v("calendarWorkspace.privacy.hidden"), x = T ? String(T.event.title ?? "").trim() : "", b = a ? e.patientAssigned || W ? oc(T == null ? void 0 : T.event.privacyModeTitle) : Q : null, z = (M == null ? void 0 : M.name) ?? (e.patientAssigned ? J : W ? x || v(ue("appointmentNotLoaded")) : D.description ?? v(ue("noDescription"))), f = e.patientRef.assigned ? e.patientRef : e.appointmentPatientRef, _ = b ?? (f.assigned ? La(f, D.description, J) : z), we = !M && (e.patientAssigned || W && x === ""), q = (S) => v(ue("actionForRow"), { action: v(ue(S)), who: _ }), k = a ? "" :
|
|
8562
|
-
a ? "calendarWorkspace.privacy.hidden" :
|
|
8549
|
+
const { t: v } = $e("ui"), y = Vn(), R = St(), w = St(), { entry: D, appointment: T } = e, E = oo(D), W = E === "linked", C = E === "memo", M = e.patient ?? e.appointmentPatient, J = v("calendarWorkspace.details.patientNotLoaded"), Q = v("calendarWorkspace.privacy.hidden"), x = T ? String(T.event.title ?? "").trim() : "", b = a ? e.patientAssigned || W ? oc(T == null ? void 0 : T.event.privacyModeTitle) : Q : null, z = (M == null ? void 0 : M.name) ?? (e.patientAssigned ? J : W ? x || v(ue("appointmentNotLoaded")) : D.description ?? v(ue("noDescription"))), f = e.patientRef.assigned ? e.patientRef : e.appointmentPatientRef, _ = b ?? (f.assigned ? La(f, D.description, J) : z), we = !M && (e.patientAssigned || W && x === ""), q = (S) => v(ue("actionForRow"), { action: v(ue(S)), who: _ }), k = a ? "" : Nl(e), X = k !== "" ? q("whatsappEnabled") : v(
|
|
8550
|
+
a ? "calendarWorkspace.privacy.hidden" : lu(f)
|
|
8563
8551
|
), pe = a ? Q : W ? v(ue("editLinkedDisabled")) : void 0, ve = e.operatorTitle ?? (T != null && T.operatorId ? ($ = y.operators.find((S) => S.id === T.operatorId)) == null ? void 0 : $.title : void 0), Fe = a || (Ke = e.patient) == null ? void 0 : Ke.phone, ne = C || W ? void 0 : D.description, ze = !r && d !== void 0, Me = a, wn = W ? "reschedule" : "schedule", sn = C, nn = T != null && T.event.backgroundColor ? {
|
|
8564
8552
|
"--calendar-event-accent": T.event.backgroundColor
|
|
8565
8553
|
} : void 0, g = (S) => S ? { "aria-disabled": "true", "aria-describedby": w } : {}, L = (S, H, Pe) => S ? /* @__PURE__ */ t(Ga, { label: H, children: Pe }) : Pe;
|
|
@@ -8573,7 +8561,7 @@ const yo = Fr(
|
|
|
8573
8561
|
className: "ds:@container/waitcard",
|
|
8574
8562
|
children: /* @__PURE__ */ p(lr.Body, { className: "ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
8575
8563
|
/* @__PURE__ */ p("div", { className: "ds:flex ds:min-w-0 ds:items-start ds:gap-[var(--spacing-sm)]", children: [
|
|
8576
|
-
M && !a ? /* @__PURE__ */ t(dr, { name: M.name, src: e.avatarSrc, size: "sm" }) : /* @__PURE__ */ t("span", { "aria-hidden": "true", className:
|
|
8564
|
+
M && !a ? /* @__PURE__ */ t(dr, { name: M.name, src: e.avatarSrc, size: "sm" }) : /* @__PURE__ */ t("span", { "aria-hidden": "true", className: Zu, children: a && (e.patientAssigned || W) ? /* @__PURE__ */ t(hr, { size: 16 }) : /* @__PURE__ */ t(_a, { size: 16 }) }),
|
|
8577
8565
|
/* @__PURE__ */ p("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col", children: [
|
|
8578
8566
|
b !== null ? /* @__PURE__ */ p("span", { id: R, className: fi(), children: [
|
|
8579
8567
|
/* @__PURE__ */ p(va, { children: [
|
|
@@ -8617,9 +8605,9 @@ const yo = Fr(
|
|
|
8617
8605
|
}),
|
|
8618
8606
|
className: "ds:shrink-0",
|
|
8619
8607
|
children: [
|
|
8620
|
-
/* @__PURE__ */ t(
|
|
8608
|
+
/* @__PURE__ */ t(Qu, { number: k, label: X }),
|
|
8621
8609
|
r ? null : /* @__PURE__ */ t(
|
|
8622
|
-
|
|
8610
|
+
eh,
|
|
8623
8611
|
{
|
|
8624
8612
|
entryId: D.id,
|
|
8625
8613
|
label: q("moreActions"),
|
|
@@ -8637,13 +8625,13 @@ const yo = Fr(
|
|
|
8637
8625
|
/* @__PURE__ */ p(
|
|
8638
8626
|
"div",
|
|
8639
8627
|
{
|
|
8640
|
-
className: `ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-xs)] ${
|
|
8628
|
+
className: `ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-xs)] ${$r}`,
|
|
8641
8629
|
children: [
|
|
8642
8630
|
W && T ? /* @__PURE__ */ p(
|
|
8643
8631
|
"button",
|
|
8644
8632
|
{
|
|
8645
8633
|
type: "button",
|
|
8646
|
-
className:
|
|
8634
|
+
className: Xu,
|
|
8647
8635
|
"data-action": "open-linked-appointment",
|
|
8648
8636
|
"aria-label": v(ue("actionForRow"), {
|
|
8649
8637
|
action: v(ue("openAppointment")),
|
|
@@ -8668,12 +8656,12 @@ const yo = Fr(
|
|
|
8668
8656
|
"span",
|
|
8669
8657
|
{
|
|
8670
8658
|
"aria-hidden": "true",
|
|
8671
|
-
className:
|
|
8659
|
+
className: Ju,
|
|
8672
8660
|
style: nn
|
|
8673
8661
|
}
|
|
8674
8662
|
),
|
|
8675
8663
|
/* @__PURE__ */ t(
|
|
8676
|
-
|
|
8664
|
+
Ei,
|
|
8677
8665
|
{
|
|
8678
8666
|
"aria-hidden": "true",
|
|
8679
8667
|
className: "ds:ms-auto ds:rtl:rotate-180"
|
|
@@ -8704,7 +8692,7 @@ const yo = Fr(
|
|
|
8704
8692
|
tone: ve ? "muted" : "absent"
|
|
8705
8693
|
}),
|
|
8706
8694
|
children: [
|
|
8707
|
-
/* @__PURE__ */ t(
|
|
8695
|
+
/* @__PURE__ */ t(Dr, { "aria-hidden": "true" }),
|
|
8708
8696
|
/* @__PURE__ */ t("span", { className: "ds:min-w-0 ds:truncate", children: ve ?? v(ue("noOperator")) })
|
|
8709
8697
|
]
|
|
8710
8698
|
}
|
|
@@ -8719,7 +8707,7 @@ const yo = Fr(
|
|
|
8719
8707
|
/* @__PURE__ */ p(
|
|
8720
8708
|
"div",
|
|
8721
8709
|
{
|
|
8722
|
-
className: `ds:flex ds:min-w-0 ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)] ${
|
|
8710
|
+
className: `ds:flex ds:min-w-0 ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)] ${$r}`,
|
|
8723
8711
|
children: [
|
|
8724
8712
|
L(
|
|
8725
8713
|
sn,
|
|
@@ -8789,7 +8777,7 @@ const yo = Fr(
|
|
|
8789
8777
|
size: "sm",
|
|
8790
8778
|
intent: "outline",
|
|
8791
8779
|
className: Pa,
|
|
8792
|
-
startIcon: /* @__PURE__ */ t(
|
|
8780
|
+
startIcon: /* @__PURE__ */ t(Dr, { "aria-hidden": "true" }),
|
|
8793
8781
|
"aria-label": q("assignOperator"),
|
|
8794
8782
|
"data-action": "assign-operator",
|
|
8795
8783
|
"aria-disabled": Me ? "true" : void 0,
|
|
@@ -8810,7 +8798,7 @@ const yo = Fr(
|
|
|
8810
8798
|
}
|
|
8811
8799
|
);
|
|
8812
8800
|
yo.displayName = "WaitingEntryCard";
|
|
8813
|
-
function
|
|
8801
|
+
function nh() {
|
|
8814
8802
|
return /* @__PURE__ */ t(
|
|
8815
8803
|
"div",
|
|
8816
8804
|
{
|
|
@@ -8850,7 +8838,7 @@ function th() {
|
|
|
8850
8838
|
}
|
|
8851
8839
|
)
|
|
8852
8840
|
] }),
|
|
8853
|
-
/* @__PURE__ */ t("div", { className:
|
|
8841
|
+
/* @__PURE__ */ t("div", { className: $r, children: /* @__PURE__ */ t(
|
|
8854
8842
|
Hn,
|
|
8855
8843
|
{
|
|
8856
8844
|
variant: "text",
|
|
@@ -8862,7 +8850,7 @@ function th() {
|
|
|
8862
8850
|
/* @__PURE__ */ p(
|
|
8863
8851
|
"div",
|
|
8864
8852
|
{
|
|
8865
|
-
className: `ds:flex ds:gap-[var(--spacing-xs)] ${
|
|
8853
|
+
className: `ds:flex ds:gap-[var(--spacing-xs)] ${$r}`,
|
|
8866
8854
|
children: [
|
|
8867
8855
|
/* @__PURE__ */ t(
|
|
8868
8856
|
Hn,
|
|
@@ -8889,7 +8877,7 @@ function th() {
|
|
|
8889
8877
|
}
|
|
8890
8878
|
);
|
|
8891
8879
|
}
|
|
8892
|
-
const Co =
|
|
8880
|
+
const Co = zr(
|
|
8893
8881
|
({
|
|
8894
8882
|
entries: e,
|
|
8895
8883
|
rows: n,
|
|
@@ -8909,18 +8897,18 @@ const Co = Fr(
|
|
|
8909
8897
|
privacy: D = !1
|
|
8910
8898
|
}, T) => {
|
|
8911
8899
|
const { t: E } = $e("ui"), W = Vn(), C = F(null), M = St(), [J, Q] = A("all"), [x, b] = A(!1), [z, f] = A(
|
|
8912
|
-
|
|
8900
|
+
Cr
|
|
8913
8901
|
), [_, we] = A(
|
|
8914
|
-
|
|
8902
|
+
Cr
|
|
8915
8903
|
), q = ($) => f((Ke) => ({ ...Ke, ...$ })), k = ($) => {
|
|
8916
|
-
Q($), b(!1), f(
|
|
8904
|
+
Q($), b(!1), f(Cr), we(Cr);
|
|
8917
8905
|
}, X = ee(
|
|
8918
|
-
() =>
|
|
8906
|
+
() => kl(e, n, J, _, W),
|
|
8919
8907
|
[e, n, J, _, W]
|
|
8920
|
-
), pe = ee(() =>
|
|
8921
|
-
() =>
|
|
8908
|
+
), pe = ee(() => yl(X), [X]), ve = ee(
|
|
8909
|
+
() => Cl(e, W),
|
|
8922
8910
|
[e, W]
|
|
8923
|
-
), Fe =
|
|
8911
|
+
), Fe = pl(_), ne = r === "loading" && e.length === 0, ze = F(!1);
|
|
8924
8912
|
ne && (ze.current = !0);
|
|
8925
8913
|
const Me = ze.current ? Ci : "", wn = h !== void 0 && v !== void 0, sn = F(void 0);
|
|
8926
8914
|
u && (sn.current = u.entry);
|
|
@@ -9018,7 +9006,7 @@ const Co = Fr(
|
|
|
9018
9006
|
}
|
|
9019
9007
|
) }),
|
|
9020
9008
|
/* @__PURE__ */ t(Ie, { label: E(ue("filterDescription")), children: /* @__PURE__ */ t(
|
|
9021
|
-
|
|
9009
|
+
Ri,
|
|
9022
9010
|
{
|
|
9023
9011
|
value: z.description,
|
|
9024
9012
|
placeholder: E(ue("filterDescription")),
|
|
@@ -9040,7 +9028,7 @@ const Co = Fr(
|
|
|
9040
9028
|
"data-component": "calendar-waiting-list",
|
|
9041
9029
|
"data-status": r,
|
|
9042
9030
|
className: "ds:flex ds:h-full ds:min-h-0 ds:flex-col",
|
|
9043
|
-
children: /* @__PURE__ */ p(
|
|
9031
|
+
children: /* @__PURE__ */ p(Oi.Host, { children: [
|
|
9044
9032
|
/* @__PURE__ */ t(
|
|
9045
9033
|
mr,
|
|
9046
9034
|
{
|
|
@@ -9071,9 +9059,9 @@ const Co = Fr(
|
|
|
9071
9059
|
role: "group",
|
|
9072
9060
|
"aria-label": E(ue("quickView")),
|
|
9073
9061
|
className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
9074
|
-
children:
|
|
9062
|
+
children: dd.map(($) => {
|
|
9075
9063
|
const Ke = J === $, S = E(
|
|
9076
|
-
`calendarWorkspace.backlog.${
|
|
9064
|
+
`calendarWorkspace.backlog.${ld[$]}`
|
|
9077
9065
|
);
|
|
9078
9066
|
return /* @__PURE__ */ t(Ga, { label: S, children: /* @__PURE__ */ p(
|
|
9079
9067
|
ge,
|
|
@@ -9089,7 +9077,7 @@ const Co = Fr(
|
|
|
9089
9077
|
"data-quick-view": $,
|
|
9090
9078
|
onClick: () => k($),
|
|
9091
9079
|
children: [
|
|
9092
|
-
E(ue(
|
|
9080
|
+
E(ue(ju[$])),
|
|
9093
9081
|
/* @__PURE__ */ t("span", { className: "ds:ms-[var(--spacing-xs)] ds:font-[var(--font-weight-bold)]", children: ve[$] })
|
|
9094
9082
|
]
|
|
9095
9083
|
}
|
|
@@ -9104,7 +9092,7 @@ const Co = Fr(
|
|
|
9104
9092
|
size: "sm",
|
|
9105
9093
|
intent: "ghost",
|
|
9106
9094
|
className: gr,
|
|
9107
|
-
icon: /* @__PURE__ */ t(
|
|
9095
|
+
icon: /* @__PURE__ */ t(Mi, { "aria-hidden": "true" }),
|
|
9108
9096
|
"aria-label": L,
|
|
9109
9097
|
tooltip: L,
|
|
9110
9098
|
"aria-expanded": x,
|
|
@@ -9151,7 +9139,7 @@ const Co = Fr(
|
|
|
9151
9139
|
/* @__PURE__ */ t(he.Description, { children: E("emptyState.error.description") }),
|
|
9152
9140
|
i ? /* @__PURE__ */ t(ge, { size: "sm", intent: "outline", onClick: i, children: E("emptyState.error.cta") }) : null
|
|
9153
9141
|
] }) : null,
|
|
9154
|
-
ne ? /* @__PURE__ */ t(
|
|
9142
|
+
ne ? /* @__PURE__ */ t(nh, {}) : X.length === 0 ? r === "ready" ? /* @__PURE__ */ t(
|
|
9155
9143
|
gs,
|
|
9156
9144
|
{
|
|
9157
9145
|
variant: "first-use",
|
|
@@ -9166,7 +9154,7 @@ const Co = Fr(
|
|
|
9166
9154
|
"data-waiting-groups": "",
|
|
9167
9155
|
className: `ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ${Me}`.trim(),
|
|
9168
9156
|
children: pe.map(($) => /* @__PURE__ */ t(
|
|
9169
|
-
|
|
9157
|
+
th,
|
|
9170
9158
|
{
|
|
9171
9159
|
kind: $.kind,
|
|
9172
9160
|
count: $.rows.length,
|
|
@@ -9204,7 +9192,7 @@ const Co = Fr(
|
|
|
9204
9192
|
)
|
|
9205
9193
|
] }) }),
|
|
9206
9194
|
wn ? /* @__PURE__ */ t(
|
|
9207
|
-
|
|
9195
|
+
wu,
|
|
9208
9196
|
{
|
|
9209
9197
|
open: u != null,
|
|
9210
9198
|
entry: u ? u.entry : sn.current,
|
|
@@ -9222,7 +9210,7 @@ const Co = Fr(
|
|
|
9222
9210
|
}
|
|
9223
9211
|
);
|
|
9224
9212
|
Co.displayName = "WaitingListPanel";
|
|
9225
|
-
function
|
|
9213
|
+
function th({
|
|
9226
9214
|
kind: e,
|
|
9227
9215
|
count: n,
|
|
9228
9216
|
children: a
|
|
@@ -9241,8 +9229,8 @@ function ah({
|
|
|
9241
9229
|
id: i,
|
|
9242
9230
|
className: "type-eyebrow ds:m-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:text-start ds:text-[color:var(--muted-foreground)] ds:[&>svg]:size-3.5 ds:[&>svg]:shrink-0",
|
|
9243
9231
|
children: [
|
|
9244
|
-
|
|
9245
|
-
r(ue(
|
|
9232
|
+
Yu[e],
|
|
9233
|
+
r(ue(qu[e])),
|
|
9246
9234
|
/* @__PURE__ */ t(ot, { size: "sm", variant: "neutral", "aria-label": String(n), children: n })
|
|
9247
9235
|
]
|
|
9248
9236
|
}
|
|
@@ -9259,7 +9247,7 @@ function ah({
|
|
|
9259
9247
|
}
|
|
9260
9248
|
);
|
|
9261
9249
|
}
|
|
9262
|
-
const
|
|
9250
|
+
const ah = [], rh = 255, sh = [], ih = [];
|
|
9263
9251
|
function Ra(e, n) {
|
|
9264
9252
|
return e === V.appointments ? n("calendarWorkspace.inc1.rail.appointmentsDocked") : e === V.editor ? n("calendarWorkspace.rail.editorDocked") : e === V.bookings ? n("calendarWorkspace.inc1.bookings.title") : e === V.waitingList ? n("calendarWorkspace.waitingList.docked") : n("calendarWorkspace.inc1.rail.findSlotsDocked");
|
|
9265
9253
|
}
|
|
@@ -9270,7 +9258,7 @@ function cr({
|
|
|
9270
9258
|
openNotes: r,
|
|
9271
9259
|
children: i
|
|
9272
9260
|
}) {
|
|
9273
|
-
const { t: o } = $e("ui"), { openTool: d } =
|
|
9261
|
+
const { t: o } = $e("ui"), { openTool: d } = xi(), c = ee(
|
|
9274
9262
|
() => ({
|
|
9275
9263
|
openNotes: r,
|
|
9276
9264
|
open: (l) => {
|
|
@@ -9286,14 +9274,14 @@ function cr({
|
|
|
9286
9274
|
);
|
|
9287
9275
|
return /* @__PURE__ */ t(lo, { value: c, children: i });
|
|
9288
9276
|
}
|
|
9289
|
-
function
|
|
9277
|
+
function oh({
|
|
9290
9278
|
details: e,
|
|
9291
9279
|
withheld: n,
|
|
9292
9280
|
children: a,
|
|
9293
9281
|
...r
|
|
9294
9282
|
}) {
|
|
9295
9283
|
return /* @__PURE__ */ t(cr, { ...r, children: e ? /* @__PURE__ */ t(
|
|
9296
|
-
|
|
9284
|
+
Rl,
|
|
9297
9285
|
{
|
|
9298
9286
|
eventId: e.eventId,
|
|
9299
9287
|
load: e.load,
|
|
@@ -9302,7 +9290,7 @@ function ch({
|
|
|
9302
9290
|
`details-${e.eventId}-${e.tick}`
|
|
9303
9291
|
) : n ?? a });
|
|
9304
9292
|
}
|
|
9305
|
-
function
|
|
9293
|
+
function ch({
|
|
9306
9294
|
rows: e,
|
|
9307
9295
|
locale: n,
|
|
9308
9296
|
privacy: a,
|
|
@@ -9310,7 +9298,7 @@ function dh({
|
|
|
9310
9298
|
onOpenAppointment: i
|
|
9311
9299
|
}) {
|
|
9312
9300
|
return /* @__PURE__ */ t(
|
|
9313
|
-
|
|
9301
|
+
wl,
|
|
9314
9302
|
{
|
|
9315
9303
|
rows: e,
|
|
9316
9304
|
locale: n,
|
|
@@ -9320,7 +9308,7 @@ function dh({
|
|
|
9320
9308
|
}
|
|
9321
9309
|
);
|
|
9322
9310
|
}
|
|
9323
|
-
function
|
|
9311
|
+
function dh({
|
|
9324
9312
|
workspaceRef: e,
|
|
9325
9313
|
activeToolId: n,
|
|
9326
9314
|
availableTools: a,
|
|
@@ -9390,7 +9378,7 @@ function lh({
|
|
|
9390
9378
|
registeredToolIdsRef: Be
|
|
9391
9379
|
}) {
|
|
9392
9380
|
var Ht, Pn, ya, da;
|
|
9393
|
-
const { t: ce } = $e("ui"), He = Vn(), { openTool: Le } =
|
|
9381
|
+
const { t: ce } = $e("ui"), He = Vn(), { openTool: Le } = xi(), Ln = y === "create" ? `create-${w.tick}` : `${(l == null ? void 0 : l.event.id) ?? ""}:${u.id}`, [kt, lt] = A({}), Rn = Z(
|
|
9394
9382
|
(P) => {
|
|
9395
9383
|
lt(
|
|
9396
9384
|
(me) => me.key === Ln && me.id === P ? me : { key: Ln, id: P }
|
|
@@ -9423,7 +9411,7 @@ function lh({
|
|
|
9423
9411
|
})), ze.current = "appointment_panel", Le(V.notes), ze.current = null, v(ce("calendarWorkspace.rail.notes")));
|
|
9424
9412
|
},
|
|
9425
9413
|
[vn, un, Le, v, ce, ze]
|
|
9426
|
-
), Kn = ee(() =>
|
|
9414
|
+
), Kn = ee(() => td(i), [i]), bn = ce(
|
|
9427
9415
|
"calendarWorkspace.details.patientNotLoaded"
|
|
9428
9416
|
), Gn = u.id, Bn = d && l ? Ba(l.event, !0) : La(
|
|
9429
9417
|
u,
|
|
@@ -9439,7 +9427,7 @@ function lh({
|
|
|
9439
9427
|
unsignedRequiredDocs: re,
|
|
9440
9428
|
rows: i,
|
|
9441
9429
|
submitOnEnter: !0,
|
|
9442
|
-
reminderChannels:
|
|
9430
|
+
reminderChannels: ah,
|
|
9443
9431
|
/* Frequency + repetition count only: no end date, no closed-day
|
|
9444
9432
|
skip — the platform's recurrence row stops there. */
|
|
9445
9433
|
recurrenceExtras: !1,
|
|
@@ -9451,7 +9439,7 @@ function lh({
|
|
|
9451
9439
|
reminderCapability: !0,
|
|
9452
9440
|
firstVisitRequiresPatient: !0,
|
|
9453
9441
|
priceListPhases: !0,
|
|
9454
|
-
descriptionMaxLength:
|
|
9442
|
+
descriptionMaxLength: rh
|
|
9455
9443
|
/* No `onSaveAndReturn`: the deep link's origin (a care plan, a
|
|
9456
9444
|
patient folder) is off this page and the workspace has no way
|
|
9457
9445
|
back to it, so the split Save is withheld — see the
|
|
@@ -9483,7 +9471,7 @@ function lh({
|
|
|
9483
9471
|
), Ce = ee(
|
|
9484
9472
|
() => ({
|
|
9485
9473
|
devicesByCare: O,
|
|
9486
|
-
maxRangeDays:
|
|
9474
|
+
maxRangeDays: gd,
|
|
9487
9475
|
pagerStepDays: 30,
|
|
9488
9476
|
/* C7 — the platform scopes the search with grouped multi-select
|
|
9489
9477
|
dropdowns, not one Select plus "Any". */
|
|
@@ -9511,7 +9499,7 @@ function lh({
|
|
|
9511
9499
|
/* fill: the timeline owns its scroll (day anchoring + edge loads). */
|
|
9512
9500
|
fill: !0,
|
|
9513
9501
|
panel: /* @__PURE__ */ t(
|
|
9514
|
-
|
|
9502
|
+
ch,
|
|
9515
9503
|
{
|
|
9516
9504
|
rows: i,
|
|
9517
9505
|
locale: o,
|
|
@@ -9567,14 +9555,14 @@ function lh({
|
|
|
9567
9555
|
},
|
|
9568
9556
|
children: [
|
|
9569
9557
|
/* @__PURE__ */ t(
|
|
9570
|
-
|
|
9558
|
+
Bl,
|
|
9571
9559
|
{
|
|
9572
9560
|
patientId: me,
|
|
9573
9561
|
onChange: Rn
|
|
9574
9562
|
}
|
|
9575
9563
|
),
|
|
9576
9564
|
/* @__PURE__ */ t(
|
|
9577
|
-
|
|
9565
|
+
Wl,
|
|
9578
9566
|
{
|
|
9579
9567
|
onOpenNotes: vn ? Qe : void 0,
|
|
9580
9568
|
details: {
|
|
@@ -9633,14 +9621,14 @@ function lh({
|
|
|
9633
9621
|
label: ce(
|
|
9634
9622
|
qn ? _n ? "calendarWorkspace.taskEditor.editTitle" : "calendarWorkspace.taskEditor.title" : Se ? "calendarWorkspace.details.region" : (P = w.prefill) != null && P.editEventId ? "calendarWorkspace.editor.editTitle" : "calendarWorkspace.editor.title"
|
|
9635
9623
|
),
|
|
9636
|
-
icon: qn ? /* @__PURE__ */ t(
|
|
9624
|
+
icon: qn ? /* @__PURE__ */ t(Ti, { "aria-hidden": "true" }) : Se ? /* @__PURE__ */ t(ar, { "aria-hidden": "true" }) : /* @__PURE__ */ t(ps, { "aria-hidden": "true" }),
|
|
9637
9625
|
/* fill: the panel owns its scroll so its save footer stays pinned. */
|
|
9638
9626
|
fill: !0,
|
|
9639
9627
|
panel: /* @__PURE__ */ t(
|
|
9640
|
-
|
|
9628
|
+
oh,
|
|
9641
9629
|
{
|
|
9642
9630
|
withheld: oa ? /* @__PURE__ */ t(
|
|
9643
|
-
|
|
9631
|
+
kr,
|
|
9644
9632
|
{
|
|
9645
9633
|
title: ce(
|
|
9646
9634
|
Se && !kn ? "calendarWorkspace.details.region" : Se || Dn != null && Dn.editEventId ? "calendarWorkspace.editor.editTitle" : "calendarWorkspace.editor.title"
|
|
@@ -9665,7 +9653,7 @@ function lh({
|
|
|
9665
9653
|
reshaped: the published TaskEditor, through the calendar
|
|
9666
9654
|
adapter in calendar-task-editor.tsx. */
|
|
9667
9655
|
/* @__PURE__ */ t(
|
|
9668
|
-
|
|
9656
|
+
Tl,
|
|
9669
9657
|
{
|
|
9670
9658
|
mode: _n ? "edit" : "create",
|
|
9671
9659
|
taskId: _n,
|
|
@@ -9683,14 +9671,14 @@ function lh({
|
|
|
9683
9671
|
_n ? `task-edit-${_n}` : `task-create-${w.tick}-${mn}`
|
|
9684
9672
|
)
|
|
9685
9673
|
) : /* @__PURE__ */ t(
|
|
9686
|
-
|
|
9674
|
+
El,
|
|
9687
9675
|
{
|
|
9688
9676
|
eventId: Se ? l == null ? void 0 : l.event.id : (Xe = w.prefill) == null ? void 0 : Xe.editEventId,
|
|
9689
9677
|
load: D,
|
|
9690
9678
|
onCancel: kn ? Re : void 0,
|
|
9691
9679
|
children: (Te) => {
|
|
9692
9680
|
var la, Vt, it, Ut, Kt, ua, ha;
|
|
9693
|
-
const st = Te ? Jt(Te.prefill.patientId, He) : u, At = st.record, Qn = Te && l ?
|
|
9681
|
+
const st = Te ? Jt(Te.prefill.patientId, He) : u, At = st.record, Qn = Te && l ? Ol(
|
|
9694
9682
|
l,
|
|
9695
9683
|
Te,
|
|
9696
9684
|
La(
|
|
@@ -9719,7 +9707,7 @@ function lh({
|
|
|
9719
9707
|
the name, the name a link to the patient folder, and
|
|
9720
9708
|
the highlighted anamnesis ANSWERS, not just a count. */
|
|
9721
9709
|
/* @__PURE__ */ t(
|
|
9722
|
-
|
|
9710
|
+
vu,
|
|
9723
9711
|
{
|
|
9724
9712
|
row: Qn,
|
|
9725
9713
|
patientRef: st,
|
|
@@ -9729,7 +9717,7 @@ function lh({
|
|
|
9729
9717
|
)
|
|
9730
9718
|
),
|
|
9731
9719
|
after: /* @__PURE__ */ t(
|
|
9732
|
-
|
|
9720
|
+
bu,
|
|
9733
9721
|
{
|
|
9734
9722
|
row: Qn,
|
|
9735
9723
|
patient: At,
|
|
@@ -9876,7 +9864,7 @@ function lh({
|
|
|
9876
9864
|
icon: /* @__PURE__ */ t(bs, { "aria-hidden": "true" }),
|
|
9877
9865
|
badgeCount: Pe.length,
|
|
9878
9866
|
panel: /* @__PURE__ */ t(cr, { onOpenSheet: h, onAnnounce: v, children: /* @__PURE__ */ t(
|
|
9879
|
-
|
|
9867
|
+
xu,
|
|
9880
9868
|
{
|
|
9881
9869
|
bookings: Pe,
|
|
9882
9870
|
locale: o,
|
|
@@ -9932,7 +9920,7 @@ function lh({
|
|
|
9932
9920
|
panel: /* @__PURE__ */ t(cr, { onOpenSheet: h, onAnnounce: v, children: g != null && g.entry && d ? (
|
|
9933
9921
|
/* Editing an entry opens its patient and free text in fields. */
|
|
9934
9922
|
/* @__PURE__ */ t(
|
|
9935
|
-
|
|
9923
|
+
kr,
|
|
9936
9924
|
{
|
|
9937
9925
|
title: ce("calendarWorkspace.waitingList.tool"),
|
|
9938
9926
|
icon: /* @__PURE__ */ t(_a, { "aria-hidden": "true" }),
|
|
@@ -9988,7 +9976,7 @@ function lh({
|
|
|
9988
9976
|
/* Keyed by the seed tick so a waiting-list hand-off re-seeds a
|
|
9989
9977
|
fresh, prefilled, auto-searched panel. */
|
|
9990
9978
|
/* @__PURE__ */ t(cr, { onOpenSheet: h, onAnnounce: v, children: /* @__PURE__ */ t(
|
|
9991
|
-
|
|
9979
|
+
Pu,
|
|
9992
9980
|
{
|
|
9993
9981
|
rows: i,
|
|
9994
9982
|
locale: o,
|
|
@@ -10024,7 +10012,7 @@ function lh({
|
|
|
10024
10012
|
..._e,
|
|
10025
10013
|
header: void 0,
|
|
10026
10014
|
panel: /* @__PURE__ */ t(
|
|
10027
|
-
|
|
10015
|
+
kr,
|
|
10028
10016
|
{
|
|
10029
10017
|
title: _e.label,
|
|
10030
10018
|
icon: _e.icon,
|
|
@@ -10036,7 +10024,7 @@ function lh({
|
|
|
10036
10024
|
[ye, d, xn]
|
|
10037
10025
|
), It = ee(() => {
|
|
10038
10026
|
const P = a.has(V.notes) ? /* @__PURE__ */ t(
|
|
10039
|
-
|
|
10027
|
+
Pl,
|
|
10040
10028
|
{
|
|
10041
10029
|
editor: Yn.panel,
|
|
10042
10030
|
active: n === V.notes,
|
|
@@ -10044,7 +10032,7 @@ function lh({
|
|
|
10044
10032
|
notes: un && d ? (
|
|
10045
10033
|
/* Notes are free text under the patient's name: all withheld. */
|
|
10046
10034
|
/* @__PURE__ */ t(
|
|
10047
|
-
|
|
10035
|
+
kr,
|
|
10048
10036
|
{
|
|
10049
10037
|
title: ce("calendarWorkspace.rail.notes"),
|
|
10050
10038
|
icon: /* @__PURE__ */ t(Xs, { "aria-hidden": "true" }),
|
|
@@ -10052,7 +10040,7 @@ function lh({
|
|
|
10052
10040
|
}
|
|
10053
10041
|
)
|
|
10054
10042
|
) : un ? /* @__PURE__ */ t(
|
|
10055
|
-
|
|
10043
|
+
uu,
|
|
10056
10044
|
{
|
|
10057
10045
|
patientId: un,
|
|
10058
10046
|
editable: !tt,
|
|
@@ -10212,15 +10200,15 @@ function lh({
|
|
|
10212
10200
|
Le(V.appointments), P || v(Ra(V.appointments, ce));
|
|
10213
10201
|
}, [n, yt, Le, v, ce]), null;
|
|
10214
10202
|
}
|
|
10215
|
-
function
|
|
10203
|
+
function vp(e, n = ks) {
|
|
10216
10204
|
return { ...to(
|
|
10217
10205
|
n.get(Ka.display)
|
|
10218
10206
|
) ?? pr, ...e };
|
|
10219
10207
|
}
|
|
10220
|
-
function
|
|
10221
|
-
return /* @__PURE__ */ t(
|
|
10208
|
+
function fp({ data: e, ...n }) {
|
|
10209
|
+
return /* @__PURE__ */ t(Di, { children: /* @__PURE__ */ t(Gi, { value: e, children: /* @__PURE__ */ t(Wo, { globalTools: sh, children: /* @__PURE__ */ t(lh, { data: e, ...n }) }) }) });
|
|
10222
10210
|
}
|
|
10223
|
-
function
|
|
10211
|
+
function lh({
|
|
10224
10212
|
journey: e,
|
|
10225
10213
|
data: n,
|
|
10226
10214
|
onlineBookings: a,
|
|
@@ -10254,10 +10242,10 @@ function uh({
|
|
|
10254
10242
|
const { t: q, i18n: k } = $e("ui"), [X, pe] = A(
|
|
10255
10243
|
io
|
|
10256
10244
|
), ve = Q ?? X, Fe = x ?? pe, ne = o ?? k.language ?? "en", [ze, Me] = A(null), wn = F(null), sn = (w ?? Kr).join("|"), nn = ee(
|
|
10257
|
-
() =>
|
|
10245
|
+
() => Ed(sn.split("|")),
|
|
10258
10246
|
[sn]
|
|
10259
10247
|
), g = (c == null ? void 0 : c.editAppointment) === !1, L = ee(
|
|
10260
|
-
() =>
|
|
10248
|
+
() => Rd(_ ?? ih),
|
|
10261
10249
|
[_]
|
|
10262
10250
|
), $ = L.tools.some(
|
|
10263
10251
|
(I) => I.hold === !0 && I.id === ze
|
|
@@ -10505,7 +10493,7 @@ function uh({
|
|
|
10505
10493
|
() => Jt(Pn == null ? void 0 : Pn.event.patientId, n),
|
|
10506
10494
|
[Pn, n]
|
|
10507
10495
|
), da = be.length, P = ee(
|
|
10508
|
-
() => (a == null ? void 0 : a.rows) ??
|
|
10496
|
+
() => (a == null ? void 0 : a.rows) ?? hl(Ye, n),
|
|
10509
10497
|
[a, Ye, n]
|
|
10510
10498
|
), me = ee(
|
|
10511
10499
|
() => P.map(
|
|
@@ -10521,7 +10509,7 @@ function uh({
|
|
|
10521
10509
|
),
|
|
10522
10510
|
[P, n, a]
|
|
10523
10511
|
), _e = ee(
|
|
10524
|
-
() =>
|
|
10512
|
+
() => ml(me, ve).map((I) => I.row),
|
|
10525
10513
|
[me, ve]
|
|
10526
10514
|
), [Xe, Te] = A(null), st = Z(
|
|
10527
10515
|
async (I, B) => {
|
|
@@ -10541,9 +10529,9 @@ function uh({
|
|
|
10541
10529
|
).filter((Ct) => Ct !== j.event.id);
|
|
10542
10530
|
if (Ot.length > 0) {
|
|
10543
10531
|
ln(
|
|
10544
|
-
(et) =>
|
|
10532
|
+
(et) => tl(et, j, I, Ot, n)
|
|
10545
10533
|
);
|
|
10546
|
-
const Ct =
|
|
10534
|
+
const Ct = sd(j, I, n).find(
|
|
10547
10535
|
(et) => et.kind === "edited"
|
|
10548
10536
|
);
|
|
10549
10537
|
for (const et of Ot)
|
|
@@ -10740,7 +10728,7 @@ function uh({
|
|
|
10740
10728
|
children: [
|
|
10741
10729
|
/* @__PURE__ */ t(va, { "aria-live": "polite", children: mt }),
|
|
10742
10730
|
/* @__PURE__ */ t(
|
|
10743
|
-
|
|
10731
|
+
dh,
|
|
10744
10732
|
{
|
|
10745
10733
|
workspaceRef: wn,
|
|
10746
10734
|
activeToolId: ze,
|
|
@@ -10817,7 +10805,7 @@ function uh({
|
|
|
10817
10805
|
onOpenSheet: Ht,
|
|
10818
10806
|
onAnnounce: Zt,
|
|
10819
10807
|
children: /* @__PURE__ */ t(
|
|
10820
|
-
|
|
10808
|
+
Gu,
|
|
10821
10809
|
{
|
|
10822
10810
|
id: J,
|
|
10823
10811
|
availableTools: nn,
|
|
@@ -10895,14 +10883,14 @@ function uh({
|
|
|
10895
10883
|
}
|
|
10896
10884
|
);
|
|
10897
10885
|
}
|
|
10898
|
-
const
|
|
10899
|
-
function
|
|
10886
|
+
const uh = [], hh = 255;
|
|
10887
|
+
function mh(e) {
|
|
10900
10888
|
return {
|
|
10901
10889
|
branches: e.branches,
|
|
10902
10890
|
devicesByCare: e.practiceFeatures.findFreeSlotsByCare ? e.careDevices : void 0,
|
|
10903
10891
|
unsignedRequiredDocs: (n) => e.unsignedRequiredDocs[n] ?? 0,
|
|
10904
10892
|
submitOnEnter: !0,
|
|
10905
|
-
reminderChannels:
|
|
10893
|
+
reminderChannels: uh,
|
|
10906
10894
|
recurrenceExtras: !0,
|
|
10907
10895
|
recurrenceCustom: !0,
|
|
10908
10896
|
recurrenceSkipClosedDays: !1,
|
|
@@ -10910,10 +10898,10 @@ function ph(e) {
|
|
|
10910
10898
|
reminderCapability: !0,
|
|
10911
10899
|
firstVisitRequiresPatient: !0,
|
|
10912
10900
|
priceListPhases: !0,
|
|
10913
|
-
descriptionMaxLength:
|
|
10901
|
+
descriptionMaxLength: hh
|
|
10914
10902
|
};
|
|
10915
10903
|
}
|
|
10916
|
-
function
|
|
10904
|
+
function bp({
|
|
10917
10905
|
open: e,
|
|
10918
10906
|
onOpenChange: n,
|
|
10919
10907
|
data: a,
|
|
@@ -10928,14 +10916,14 @@ function vp({
|
|
|
10928
10916
|
}, close: l }),
|
|
10929
10917
|
[l]
|
|
10930
10918
|
), h = ee(
|
|
10931
|
-
() => ({ ...
|
|
10919
|
+
() => ({ ...mh(a), ...i }),
|
|
10932
10920
|
[a, i]
|
|
10933
10921
|
), v = o ?? c(
|
|
10934
10922
|
(R = d.prefill) != null && R.editEventId ? "calendarWorkspace.editor.editTitle" : "calendarWorkspace.editor.title"
|
|
10935
10923
|
), y = /* @__PURE__ */ t(
|
|
10936
10924
|
qe,
|
|
10937
10925
|
{
|
|
10938
|
-
icon: /* @__PURE__ */ t(
|
|
10926
|
+
icon: /* @__PURE__ */ t(Hi, { "aria-hidden": "true" }),
|
|
10939
10927
|
intent: "ghost",
|
|
10940
10928
|
size: "sm",
|
|
10941
10929
|
"aria-label": c("common.close", "Close"),
|
|
@@ -10949,7 +10937,7 @@ function vp({
|
|
|
10949
10937
|
{
|
|
10950
10938
|
"data-component": "appointment-editor-dialog",
|
|
10951
10939
|
className: "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col",
|
|
10952
|
-
children: /* @__PURE__ */ t(
|
|
10940
|
+
children: /* @__PURE__ */ t(Di, { children: /* @__PURE__ */ t(Gi, { value: a, children: /* @__PURE__ */ t(lo, { value: u, children: /* @__PURE__ */ t(ic, { actions: y, children: /* @__PURE__ */ t(
|
|
10953
10941
|
us,
|
|
10954
10942
|
{
|
|
10955
10943
|
...d,
|
|
@@ -10965,22 +10953,22 @@ function vp({
|
|
|
10965
10953
|
] }) });
|
|
10966
10954
|
}
|
|
10967
10955
|
export {
|
|
10968
|
-
|
|
10956
|
+
bp as A,
|
|
10969
10957
|
Ka as C,
|
|
10970
10958
|
ys as D,
|
|
10971
10959
|
lo as S,
|
|
10972
|
-
|
|
10960
|
+
gp as V,
|
|
10973
10961
|
V as W,
|
|
10974
10962
|
Gi as a,
|
|
10975
|
-
|
|
10976
|
-
|
|
10963
|
+
Vl as b,
|
|
10964
|
+
fp as c,
|
|
10977
10965
|
pr as d,
|
|
10978
10966
|
xs as e,
|
|
10979
10967
|
nr as f,
|
|
10980
10968
|
Ds as g,
|
|
10981
|
-
|
|
10969
|
+
vp as i,
|
|
10982
10970
|
ks as m,
|
|
10983
|
-
|
|
10971
|
+
pp as r,
|
|
10984
10972
|
Vn as u
|
|
10985
10973
|
};
|
|
10986
|
-
//# sourceMappingURL=calendar-appointment-editor-dialog-
|
|
10974
|
+
//# sourceMappingURL=calendar-appointment-editor-dialog-BVzFi4hH.js.map
|