@alfadocs/ui-kit 1.150.0 → 1.151.1
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/{address-autocomplete-_LeOFdM7.js → address-autocomplete-Bt1nwxyn.js} +2 -2
- package/dist/_chunks/{address-fields-C4khof4C.js → address-fields-COumFRSX.js} +2 -2
- package/dist/_chunks/{agenda-tray-NgxPuAAz.js → agenda-tray-CmfcYQhc.js} +2 -2
- package/dist/_chunks/{ai-summary-panel-D-RNe-_n.js → ai-summary-panel-DyAHCqaj.js} +2 -2
- package/dist/_chunks/{alia-sidebar-Bjuxk8mU.js → alia-sidebar-BqZjnVoF.js} +2 -2
- package/dist/_chunks/{anamnesis-card-G0qzw0Oi.js → anamnesis-card-CoiG7vDj.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-CE-i9j-s.js → anamnesis-summary-rows-CFpaA1GP.js} +3 -3
- package/dist/_chunks/{app-frame-DUPEwu4E.js → app-frame-XEjLsLGY.js} +2 -2
- package/dist/_chunks/{appointment-card-BPZggqck.js → appointment-card-CCKjbU5y.js} +105 -104
- package/dist/_chunks/{appointment-details-panel.history-BO31ZFQp.js → appointment-details-panel.history-FSsTXj1t.js} +84 -71
- package/dist/_chunks/{appointment-details-panel.identity-C9kWtC6m.js → appointment-details-panel.identity-9hRo85Lx.js} +4 -4
- package/dist/_chunks/appointment-peek-CmQM4wvx.js +223 -0
- package/dist/_chunks/{appointment-timeline-ynFqcw0S.js → appointment-timeline-B9KRurfc.js} +3 -3
- package/dist/_chunks/{appointment-tray-Dx5VDREk.js → appointment-tray-Be3HuEyO.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-DiyJQcmA.js → balance-badge-cell-OghXENKK.js} +3 -3
- package/dist/_chunks/{bill-line-table-B8Cc2pTH.js → bill-line-table-DxV5_Dmq.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BfoEpFVx.js → calendar-appointment-editor-dialog-B9MtcBvx.js} +337 -334
- package/dist/_chunks/{calendar-editor-discard-host-DO506cJu.js → calendar-editor-discard-host-BudLsUZO.js} +3 -3
- package/dist/_chunks/{calendar-waiting-list-panel-CyMTv2y3.js → calendar-waiting-list-panel-DukgSOPH.js} +7 -7
- package/dist/_chunks/{calendar-workspace.model-X3aXbDTo.js → calendar-workspace.model-BulUpy0I.js} +2 -2
- package/dist/_chunks/{calendar.sheets-C8x8kPb4.js → calendar.sheets-OmTiQdCg.js} +8 -8
- package/dist/_chunks/{calls-panel-Bpemmnpd.js → calls-panel-eohONLia.js} +3 -3
- package/dist/_chunks/code-BfU9G1ZM.js +15 -0
- package/dist/_chunks/{communications-panel-Cd0TBEhL.js → communications-panel-CqiFs8BH.js} +3 -3
- package/dist/_chunks/{connection-status-Bi6KPTlh.js → connection-status-C13KmOPL.js} +2 -2
- package/dist/_chunks/control-room-rail-C-3o1e0e.js +456 -0
- package/dist/_chunks/{data-grid-CkzbCZSo.js → data-grid-DTAwrOiq.js} +3 -3
- package/dist/_chunks/{data-table-DFAYYsSc.js → data-table-CgpHO6EZ.js} +2 -2
- package/dist/_chunks/{default-tabs-C45FVzsG.js → default-tabs-CZaDDf1G.js} +4 -4
- package/dist/_chunks/{description-list-DA4TgL_I.js → description-list-DaldSpGy.js} +29 -26
- package/dist/_chunks/dev-bypass-button-DFcNpCQj.js +24 -0
- package/dist/_chunks/{document-preview-Zws6CHhK.js → document-preview-TbwhY_eK.js} +3 -3
- package/dist/_chunks/{editable-currency-cell-renderer-DXJI0fnU.js → editable-currency-cell-renderer-a3CrwNKm.js} +143 -168
- package/dist/_chunks/{empty-state-5REM7oDM.js → empty-state-qHtpcasr.js} +65 -77
- package/dist/_chunks/{error-boundary-BQ5mRqEd.js → error-boundary-BDS1XStO.js} +2 -2
- package/dist/_chunks/{error-page-CdNGIezW.js → error-page-3gWV-Vmj.js} +2 -2
- package/dist/_chunks/{error-page-illustration-BdJLuMdV.js → error-page-illustration-CJCjLk_-.js} +125 -149
- package/dist/_chunks/{face-scheme-BC2whb1S.js → face-scheme-DRYGaszs.js} +255 -264
- package/dist/_chunks/{feature-preview-switch-PKeLaFry.js → feature-preview-switch-B_8JTya_.js} +2 -2
- package/dist/_chunks/{file-manager-DzOCQBAO.js → file-manager-DMvYx-Gq.js} +4 -4
- package/dist/_chunks/{folder-CH9PJHou.js → folder-DvNxod7_.js} +3 -3
- package/dist/_chunks/{heatmap-DvsZ-mcL.js → heatmap-BZNkPkDD.js} +4 -4
- package/dist/_chunks/{help-me-write-templates-B_wMJ82X.js → help-me-write-templates-VnvlK87x.js} +2 -2
- package/dist/_chunks/{info-tip-cCppV1fD.js → info-tip-DkVISvo-.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-BReimsvV.js → invoice-upload-list-DutydbjC.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-CWLArl5e.js → link-cell-renderer-DTunki79.js} +3 -3
- package/dist/_chunks/{login-dev-card-DqUNJcd7.js → login-dev-card-CQz9yhrU.js} +2 -2
- package/dist/_chunks/{map-view-n6GiDRWM.js → map-view-B67HXWPR.js} +2 -2
- package/dist/_chunks/mark-adrift-LBqHvZwv.js +42 -0
- package/dist/_chunks/{marketplace-app-shell-CGA-R-zt.js → marketplace-app-shell-CclaaAvb.js} +3 -3
- package/dist/_chunks/{message-tray-Dx2HPcKB.js → message-tray-DysT-DPS.js} +2 -2
- package/dist/_chunks/{note-timeline-BbjHMhkL.js → note-timeline-CS5j2OKD.js} +86 -77
- package/dist/_chunks/notebook-text-spVSekMN.js +21 -0
- package/dist/_chunks/{notes-panel-BguRX8VC.js → notes-panel-d0I3hOEY.js} +162 -173
- package/dist/_chunks/{notification-tray-BnC5OItw.js → notification-tray-CjGDlwLg.js} +2 -2
- package/dist/_chunks/{optical-prescription-BzGnlIjq.js → optical-prescription-CAnXavjq.js} +2 -2
- package/dist/_chunks/panel-right-CnMHSvLU.js +15 -0
- package/dist/_chunks/{panel-subview-Om_yZvFG.js → panel-subview-B5hnQwfQ.js} +2 -2
- package/dist/_chunks/{patient-account-settings-YKnBzmwE.js → patient-account-settings-DmB_h5fq.js} +3 -3
- package/dist/_chunks/{patient-check-in-resume-DERfQbp5.js → patient-check-in-resume-CI54cY8Z.js} +6 -6
- package/dist/_chunks/{patient-details-BUD0UbmT.js → patient-details-wFIzTz7N.js} +3 -3
- package/dist/_chunks/{patient-field-row-DytaHdGw.js → patient-field-row-BDgfYLgz.js} +2 -2
- package/dist/_chunks/{patient-summary-card-7Werxl48.js → patient-summary-card-ZunOre3Q.js} +162 -155
- package/dist/_chunks/{payment-request-card-BF3rakTQ.js → payment-request-card-BSSfKrcc.js} +2 -2
- package/dist/_chunks/{portal-details-C1QQGPQf.js → portal-details-BZm8UNMx.js} +4 -4
- package/dist/_chunks/{portal-documents-CzEuCaqv.js → portal-documents-CBVSCKAB.js} +3 -3
- package/dist/_chunks/{portal-parts-BMW4t57s.js → portal-parts-DRfyhL5P.js} +3 -3
- package/dist/_chunks/{practice-results-D0TAgL8v.js → practice-results-CqoB5YAv.js} +5 -5
- package/dist/_chunks/{prescription-history-CQuJmd4H.js → prescription-history-CxBM3gnm.js} +4 -4
- package/dist/_chunks/{privacy-mask-CrjD5PYW.js → privacy-mask-CaLBAxzj.js} +2 -2
- package/dist/_chunks/{product-hub-panel-NVpRuJeW.js → product-hub-panel-RJzrDcGp.js} +3 -3
- package/dist/_chunks/{public-header.agent-Dzo6ujrE.js → public-header.agent-B2CqVq4s.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-Kl1M0dtT.js → radiograph-panel.agent-kgCmmgZk.js} +2 -2
- package/dist/_chunks/{registration-form-AtRCt8n5.js → registration-form-Dbe1sFZb.js} +2 -2
- package/dist/_chunks/{registry-connection-panel-kdKbGQE6.js → registry-connection-panel-BkPPA3Fj.js} +3 -3
- package/dist/_chunks/{reserved.agent-CW0frsMv.js → reserved.agent-C-sMq0pb.js} +4 -4
- package/dist/_chunks/{reviews-panel-54AFY6uy.js → reviews-panel-jIz5aP2X.js} +3 -3
- package/dist/_chunks/rich-text-editor-DTadvKa7.js +4716 -0
- package/dist/_chunks/{scroll-area-CY5SLYNw.js → scroll-area-RQtcKkHf.js} +84 -79
- package/dist/_chunks/{sheet-CZDjW9Q-.js → sheet-1LXzej6Q.js} +2 -2
- package/dist/_chunks/{sidebar-D5DFYN5K.js → sidebar-BV9JCgS4.js} +2 -2
- package/dist/_chunks/{signed-out-frame-CC25CgKo.js → signed-out-frame-CKA8SSbU.js} +2 -2
- package/dist/_chunks/{signing-end-screen-Bq6tkFE6.js → signing-end-screen-HXkalppf.js} +2 -2
- package/dist/_chunks/{slot-grid-khIpy8Gx.js → slot-grid-DdqeF6PW.js} +2 -2
- package/dist/_chunks/{sync-tray-BQD-HuA4.js → sync-tray-CSVGzuur.js} +2 -2
- package/dist/_chunks/{task-editor-CIHQQRtP.js → task-editor-aXjGMwYA.js} +4 -4
- package/dist/_chunks/{task-tray-CxxcGGgx.js → task-tray-C48Vq8nt.js} +2 -2
- package/dist/_chunks/{tasks-panel-Bc_odkQN.js → tasks-panel-BdxHb-fX.js} +2 -2
- package/dist/_chunks/{tool-rail-CJBtqzMs.js → tool-rail-C_Ay0Gxi.js} +260 -256
- package/dist/_chunks/{toolbar-B9oh9XY9.js → toolbar-B2JJ_XDT.js} +2 -2
- package/dist/_chunks/tooth-chip-DOv925IH.js +41 -0
- package/dist/_chunks/{treatment-receipt-B6m47Jie.js → treatment-receipt-CZQV1NkJ.js} +45 -46
- package/dist/_chunks/{use-appointment-details-read-HVHbR0Zl.js → use-appointment-details-read-BR3TQOHx.js} +878 -809
- package/dist/_chunks/user-round-DZxRG9zq.js +15 -0
- package/dist/_chunks/{week-availability-D0tTll4q.js → week-availability-D00rMjsX.js} +2 -2
- package/dist/_chunks/{workflow-map-F7OThorL.js → workflow-map-DLUTUZ27.js} +2 -2
- package/dist/agent-catalog.json +1 -1
- package/dist/appointment-editor-panel/index.js +3 -3
- package/dist/booking-tools-data/index.js +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/calendar-action-buttons/index.js +1 -1
- package/dist/components/_shared/mark-adrift.d.ts +12 -0
- package/dist/components/_shared/safe-html.d.ts +6 -0
- package/dist/components/_shared/tooth-chip.d.ts +21 -0
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-summary-panel/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/app-frame/index.js +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +5 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +9 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +9 -2
- package/dist/components/appointment-details-panel/description-length.d.ts +18 -0
- package/dist/components/appointment-details-panel/index.d.ts +1 -0
- package/dist/components/appointment-details-panel/index.js +7 -6
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/bill-line-table/index.js +1 -1
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calls-panel/index.js +1 -1
- package/dist/components/communications-panel/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/control-room-rail/control-room-rail.d.ts +24 -0
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-table/index.js +3 -3
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dev-bypass-button/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/error-boundary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/feature-preview-switch/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/note-timeline/note-timeline.d.ts +8 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +18 -7
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/panel-subview/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/registry-connection-panel/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +16 -6
- package/dist/components/rich-text-editor/index.d.ts +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/link-bar.d.ts +8 -0
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +25 -3
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/scroll-area.d.ts +6 -0
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/sync-tray/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/tool-rail/index.js +1 -1
- package/dist/components/tool-rail/tool-rail.d.ts +14 -0
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/treatment-receipt/treatment-receipt.d.ts +6 -1
- package/dist/components/week-availability/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/host-compat.css +4 -1
- package/dist/host-legacy.css +13 -1
- package/dist/i18n/locales/ar.d.ts +9 -0
- package/dist/i18n/locales/ar.js +11 -2
- package/dist/i18n/locales/de.d.ts +9 -0
- package/dist/i18n/locales/de.js +11 -2
- package/dist/i18n/locales/el.d.ts +9 -0
- package/dist/i18n/locales/el.js +11 -2
- package/dist/i18n/locales/en.d.ts +9 -0
- package/dist/i18n/locales/en.js +10 -1
- package/dist/i18n/locales/es.d.ts +9 -0
- package/dist/i18n/locales/es.js +11 -2
- package/dist/i18n/locales/fr.d.ts +9 -0
- package/dist/i18n/locales/fr.js +11 -2
- package/dist/i18n/locales/hi.d.ts +9 -0
- package/dist/i18n/locales/hi.js +11 -2
- package/dist/i18n/locales/it.d.ts +9 -0
- package/dist/i18n/locales/it.js +11 -2
- package/dist/i18n/locales/ja.d.ts +9 -0
- package/dist/i18n/locales/ja.js +11 -2
- package/dist/i18n/locales/nl.d.ts +9 -0
- package/dist/i18n/locales/nl.js +11 -2
- package/dist/i18n/locales/pl.d.ts +9 -0
- package/dist/i18n/locales/pl.js +11 -2
- package/dist/i18n/locales/pt.d.ts +9 -0
- package/dist/i18n/locales/pt.js +11 -2
- package/dist/i18n/locales/ro.d.ts +9 -0
- package/dist/i18n/locales/ro.js +11 -2
- package/dist/i18n/locales/ru.d.ts +9 -0
- package/dist/i18n/locales/ru.js +11 -2
- package/dist/i18n/locales/sq.d.ts +9 -0
- package/dist/i18n/locales/sq.js +11 -2
- package/dist/i18n/locales/sv.d.ts +9 -0
- package/dist/i18n/locales/sv.js +11 -2
- package/dist/i18n/locales/tr.d.ts +9 -0
- package/dist/i18n/locales/tr.js +11 -2
- package/dist/i18n/locales/zh.d.ts +9 -0
- package/dist/i18n/locales/zh.js +11 -2
- package/dist/index.js +818 -817
- package/dist/locales/ar.json +11 -2
- package/dist/locales/de.json +11 -2
- package/dist/locales/el.json +11 -2
- package/dist/locales/en.json +10 -1
- package/dist/locales/es.json +11 -2
- package/dist/locales/fr.json +11 -2
- package/dist/locales/hi.json +11 -2
- package/dist/locales/it.json +11 -2
- package/dist/locales/ja.json +11 -2
- package/dist/locales/nl.json +11 -2
- package/dist/locales/pl.json +11 -2
- package/dist/locales/pt.json +11 -2
- package/dist/locales/ro.json +11 -2
- package/dist/locales/ru.json +11 -2
- package/dist/locales/sq.json +11 -2
- package/dist/locales/sv.json +11 -2
- package/dist/locales/tr.json +11 -2
- package/dist/locales/zh.json +11 -2
- package/dist/online-bookings-panel/index.js +2 -2
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +4 -4
- package/dist/patterns/error-page/index.js +2 -2
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.js +1 -1
- package/dist/patterns/patient-check-in/index.js +1 -1
- package/dist/patterns/patient-portal/index.js +2 -2
- package/dist/patterns/prescription/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/patterns/signing/index.js +1 -1
- package/dist/redactor.css +9 -0
- package/dist/safe-html/index.js +33 -19
- package/dist/tokens.css +61 -52
- package/dist/waiting-list-panel/index.js +3 -3
- package/package.json +1 -1
- package/dist/_chunks/appointment-peek-CGJ6kUvM.js +0 -213
- package/dist/_chunks/control-room-rail-4W1MFY-g.js +0 -416
- package/dist/_chunks/dev-bypass-button-BzfYGPuf.js +0 -33
- package/dist/_chunks/rich-text-editor-DCQEpaIv.js +0 -4523
- /package/dist/{patterns → components}/_shared/mark-pieces.d.ts +0 -0
|
@@ -1,83 +1,85 @@
|
|
|
1
|
-
import { jsxs as b, jsx as e, Fragment as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useId as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { u as
|
|
1
|
+
import { jsxs as b, jsx as e, Fragment as oe } from "react/jsx-runtime";
|
|
2
|
+
import { c as ct } from "./index-D2ZczOXr.js";
|
|
3
|
+
import { useId as st, useRef as R, forwardRef as rn, useEffect as we, useMemo as At, useState as H, useCallback as ln } from "react";
|
|
4
|
+
import { useTranslation as te } from "react-i18next";
|
|
5
|
+
import { u as dn } from "./registry-DvAUVLHh.js";
|
|
6
6
|
import { u as pe } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
7
|
-
import { c as
|
|
8
|
-
import { g as
|
|
9
|
-
import { useSaveOutcomeUnknownMessage as
|
|
10
|
-
import { h as
|
|
11
|
-
import { c as
|
|
12
|
-
import { A as
|
|
13
|
-
import { B as
|
|
14
|
-
import { I as
|
|
15
|
-
import { B as
|
|
16
|
-
import { D as
|
|
17
|
-
import { E as
|
|
18
|
-
import { N as
|
|
19
|
-
import { P as
|
|
20
|
-
import { P as
|
|
21
|
-
import { P as
|
|
7
|
+
import { c as cn } from "./compose-refs-C0k0tdqF.js";
|
|
8
|
+
import { g as ot } from "./get-error-message-DbFUzuja.js";
|
|
9
|
+
import { useSaveOutcomeUnknownMessage as un, isSaveOutcomeUnknownError as Nt, SaveOutcomeUnknownError as pn } from "../save-outcome/index.js";
|
|
10
|
+
import { h as nt } from "./handled-rejection-C-6Dq0As.js";
|
|
11
|
+
import { c as mn, a as xt } from "./privacy-mask-CaLBAxzj.js";
|
|
12
|
+
import { A as ee } from "./alert-C4WKViaS.js";
|
|
13
|
+
import { B as T } from "./button-Dp4j9ygh.js";
|
|
14
|
+
import { I as Ve } from "./icon-button-u9VMQn3x.js";
|
|
15
|
+
import { B as hn } from "./button-group-CHQD8GJ0.js";
|
|
16
|
+
import { D as ze } from "./dropdown-menu-Bm1KALnk.js";
|
|
17
|
+
import { E as Wt } from "./editable-description-B2F54K4T.js";
|
|
18
|
+
import { N as rt } from "./note-timeline-CS5j2OKD.js";
|
|
19
|
+
import { P as $t } from "./panel-header-DTc5OFUg.js";
|
|
20
|
+
import { P as at } from "./panel-subview-B5hnQwfQ.js";
|
|
21
|
+
import { P as qt } from "./patient-summary-card-ZunOre3Q.js";
|
|
22
22
|
import { S as me } from "./section-card-CYfeQ6EQ.js";
|
|
23
|
-
import { C as
|
|
24
|
-
import { F as
|
|
25
|
-
import { T as
|
|
26
|
-
import { T as
|
|
27
|
-
import { T as
|
|
28
|
-
import { a as
|
|
29
|
-
import { W as
|
|
30
|
-
import { a as
|
|
31
|
-
import { M as
|
|
32
|
-
import { R as
|
|
33
|
-
import { A as
|
|
34
|
-
import { B as
|
|
35
|
-
import { C as
|
|
36
|
-
import { D as
|
|
37
|
-
import { T as
|
|
38
|
-
import { T as
|
|
39
|
-
import { H as
|
|
40
|
-
import { c as
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import { M as
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import { C as
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import { P as
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import { C as
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
23
|
+
import { C as fn, S as ke } from "./skeleton-tTWJpvAq.js";
|
|
24
|
+
import { F as gn } from "./form-field-CyHfOVKF.js";
|
|
25
|
+
import { T as vn } from "./text-area-DbxGkpzE.js";
|
|
26
|
+
import { T as yn } from "./tooltip-uEBdD1-5.js";
|
|
27
|
+
import { T as zt } from "./treatment-receipt-CZQV1NkJ.js";
|
|
28
|
+
import { a as it } from "./whatsapp-button-XbozeDl_.js";
|
|
29
|
+
import { W as bn, a as kn } from "./workflow-status-Cg7yjnye.js";
|
|
30
|
+
import { a as Ct, u as wn, i as Sn } from "./appointment-workflow-status-S-lx81Yz.js";
|
|
31
|
+
import { M as An, C as Tt, A as Nn } from "./appointment-details-panel.history-FSsTXj1t.js";
|
|
32
|
+
import { R as xn, a as Et, b as Kt, e as Cn, g as Tn, j as En, c as In, d as Dn, h as Rn, D as It, f as Pn, i as Ln, p as On } from "./appointment-details-panel.identity-9hRo85Lx.js";
|
|
33
|
+
import { A as Dt } from "./avatar-Dp5apm1d.js";
|
|
34
|
+
import { B as jt } from "./badge-BUk4RjTS.js";
|
|
35
|
+
import { C as Fn } from "./counter-WsvRuum1.js";
|
|
36
|
+
import { D as Ke } from "./description-list-DaldSpGy.js";
|
|
37
|
+
import { T as Rt } from "./timestamp-UMF1llBs.js";
|
|
38
|
+
import { T as _n } from "./transaction-chip-6jToArJn.js";
|
|
39
|
+
import { H as Se } from "./hover-card-CS8ulBf9.js";
|
|
40
|
+
import { c as Yt } from "./createLucideIcon-DhHxpK9K.js";
|
|
41
|
+
import { U as Hn } from "./user-round-DZxRG9zq.js";
|
|
42
|
+
import { S as Pt } from "./smartphone-C0rFF2if.js";
|
|
43
|
+
import { P as Mn } from "./phone-FceYcIFQ.js";
|
|
44
|
+
import { M as Un } from "./mail-BqXVF2zH.js";
|
|
45
|
+
import { M as Bn } from "./map-pin-BaY37-Km.js";
|
|
46
|
+
import { F as Wn } from "./file-pen-line-k4uMBM3h.js";
|
|
47
|
+
import { P as $n } from "./pen-line-D0De5zdl.js";
|
|
48
|
+
import { C as qn } from "./credit-card-D9XZsHGA.js";
|
|
49
|
+
import { H as zn } from "./heart-pulse-BCppJyN2.js";
|
|
50
|
+
import { R as Kn } from "./refresh-cw-DnI0cLFC.js";
|
|
51
|
+
import { a as Gt, F as jn } from "./folder-DvNxod7_.js";
|
|
52
|
+
import { N as Vt } from "./notebook-text-spVSekMN.js";
|
|
53
|
+
import { C as Yn } from "./calendar-days-BGWklvE-.js";
|
|
54
|
+
import { C as Gn } from "./clock-Drd4Wtis.js";
|
|
55
|
+
import { H as Vn } from "./hourglass-BEAzW1wE.js";
|
|
56
|
+
import { V as Xt } from "./video-BheNGvsu.js";
|
|
57
|
+
import { A as Lt } from "./armchair-BaLDW6Hz.js";
|
|
58
|
+
import { B as Xn } from "./building-2-D33bLCWL.js";
|
|
59
|
+
import { R as Jn } from "./repeat-CvQa5rZt.js";
|
|
60
|
+
import { G as Qn } from "./globe-sHBW1JN5.js";
|
|
61
|
+
import { N as Zn } from "./notebook-pen-CO7HoM-W.js";
|
|
62
|
+
import { C as Jt } from "./clipboard-list-rSzfIYZB.js";
|
|
63
|
+
import { U as ea } from "./user-plus-BtcOLgNU.js";
|
|
64
|
+
import { P as Ot } from "./pencil-B1sKKyuT.js";
|
|
65
|
+
import { C as ta } from "./copy-vRpqqHtY.js";
|
|
66
|
+
import { P as na } from "./plus-DzMQ_c6b.js";
|
|
67
|
+
import { S as aa } from "./square-check-big-dj0o8yA3.js";
|
|
68
|
+
import { T as ia } from "./trash-2-uumy3fy1.js";
|
|
69
|
+
import { H as Ft } from "./history-CK2JaU2g.js";
|
|
70
|
+
import { C as Qt } from "./calendar-clock-hbObjfGY.js";
|
|
71
|
+
import { C as sa } from "./chevron-down-DWE7GSq9.js";
|
|
72
|
+
import { C as oa } from "./camera-VSklPDCv.js";
|
|
73
|
+
import { F as ra } from "./file-BuG1VMAy.js";
|
|
74
|
+
import { F as la } from "./file-text-5yv6r2ls.js";
|
|
75
|
+
import { R as da } from "./receipt-euro-B1cLM_TN.js";
|
|
74
76
|
/**
|
|
75
77
|
* @license lucide-react v1.22.0 - ISC
|
|
76
78
|
*
|
|
77
79
|
* This source code is licensed under the ISC license.
|
|
78
80
|
* See the LICENSE file in the root directory of this source tree.
|
|
79
81
|
*/
|
|
80
|
-
const
|
|
82
|
+
const ca = [
|
|
81
83
|
["path", { d: "M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8", key: "1w3rig" }],
|
|
82
84
|
["path", { d: "M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1", key: "n2jgmb" }],
|
|
83
85
|
["path", { d: "M2 21h20", key: "1nyx9w" }],
|
|
@@ -87,20 +89,28 @@ const ra = [
|
|
|
87
89
|
["path", { d: "M7 4h.01", key: "1bh4kh" }],
|
|
88
90
|
["path", { d: "M12 4h.01", key: "1ujb9j" }],
|
|
89
91
|
["path", { d: "M17 4h.01", key: "1upcoc" }]
|
|
90
|
-
],
|
|
92
|
+
], ua = Yt("cake", ca);
|
|
91
93
|
/**
|
|
92
94
|
* @license lucide-react v1.22.0 - ISC
|
|
93
95
|
*
|
|
94
96
|
* This source code is licensed under the ISC license.
|
|
95
97
|
* See the LICENSE file in the root directory of this source tree.
|
|
96
98
|
*/
|
|
97
|
-
const
|
|
99
|
+
const pa = [
|
|
98
100
|
["path", { d: "M16 10h2", key: "8sgtl7" }],
|
|
99
101
|
["path", { d: "M16 14h2", key: "epxaof" }],
|
|
100
102
|
["path", { d: "M6.17 15a3 3 0 0 1 5.66 0", key: "n6f512" }],
|
|
101
103
|
["circle", { cx: "9", cy: "11", r: "2", key: "yxgjnd" }],
|
|
102
104
|
["rect", { x: "2", y: "5", width: "20", height: "14", rx: "2", key: "qneu4z" }]
|
|
103
|
-
],
|
|
105
|
+
], ma = Yt("id-card", pa);
|
|
106
|
+
function ha(t) {
|
|
107
|
+
const n = t.trim();
|
|
108
|
+
let i = 0;
|
|
109
|
+
for (let r = 0; r < n.length; r += 1)
|
|
110
|
+
i += n.charCodeAt(r) >= 256 ? 6 : 1;
|
|
111
|
+
return i;
|
|
112
|
+
}
|
|
113
|
+
const fa = '[data-component="button-group"] [data-component="icon-button"][aria-haspopup="menu"]', ga = {
|
|
104
114
|
id: "appointment-details-panel",
|
|
105
115
|
// open and close back open_history and close_history; set_value backs
|
|
106
116
|
// set_status.
|
|
@@ -216,7 +226,7 @@ const da = [
|
|
|
216
226
|
root: {
|
|
217
227
|
attr: "data-component",
|
|
218
228
|
value: "appointment-details-panel",
|
|
219
|
-
description: `Marks the panel. It also carries data-event-id and data-status. Inside, cards carry data-card (patient, appointment, notes, treatments), footer actions data-action, and the History and description sub-views data-details-subview. An action in offeredActions with no data-action in the footer strip is folded into More: click the panel's ${
|
|
229
|
+
description: `Marks the panel. It also carries data-event-id and data-status. Inside, cards carry data-card (patient, appointment, notes, treatments), footer actions data-action, and the History and description sub-views data-details-subview. An action in offeredActions with no data-action in the footer strip is folded into More: click the panel's ${fa}, and its menu item carries the same data-action.`
|
|
220
230
|
},
|
|
221
231
|
instanceId: {
|
|
222
232
|
attr: "data-component-id",
|
|
@@ -225,13 +235,13 @@ const da = [
|
|
|
225
235
|
}
|
|
226
236
|
}
|
|
227
237
|
};
|
|
228
|
-
function
|
|
238
|
+
function lt(t) {
|
|
229
239
|
const n = document.activeElement;
|
|
230
240
|
n && n !== document.body || t == null || t.focus({ preventScroll: !0 });
|
|
231
241
|
}
|
|
232
242
|
function _e(t) {
|
|
233
243
|
const n = document.getElementById(t);
|
|
234
|
-
n && !n.hasAttribute("tabindex") && (n.tabIndex = -1),
|
|
244
|
+
n && !n.hasAttribute("tabindex") && (n.tabIndex = -1), lt(n);
|
|
235
245
|
}
|
|
236
246
|
const ue = {
|
|
237
247
|
advancedSignature: "setup-advanced-signature",
|
|
@@ -242,7 +252,7 @@ const ue = {
|
|
|
242
252
|
unlockPayments: "unlock-payments",
|
|
243
253
|
carePlan: "open-care-plan"
|
|
244
254
|
};
|
|
245
|
-
function
|
|
255
|
+
function Ye(t) {
|
|
246
256
|
if (t)
|
|
247
257
|
try {
|
|
248
258
|
const { protocol: n } = new URL(t, "https://host.invalid");
|
|
@@ -251,7 +261,7 @@ function ze(t) {
|
|
|
251
261
|
return;
|
|
252
262
|
}
|
|
253
263
|
}
|
|
254
|
-
const
|
|
264
|
+
const va = {
|
|
255
265
|
SU: 0,
|
|
256
266
|
MO: 1,
|
|
257
267
|
TU: 2,
|
|
@@ -259,195 +269,214 @@ const ma = {
|
|
|
259
269
|
TH: 4,
|
|
260
270
|
FR: 5,
|
|
261
271
|
SA: 6
|
|
262
|
-
},
|
|
272
|
+
}, ya = ["MO", "TU", "WE", "TH", "FR", "SA", "SU"], ba = {
|
|
263
273
|
daily: "recurrenceEveryDay",
|
|
264
274
|
weekly: "recurrenceEveryWeek",
|
|
265
275
|
monthly: "recurrenceEveryMonth",
|
|
266
276
|
yearly: "recurrenceEveryYear"
|
|
267
|
-
},
|
|
277
|
+
}, ka = {
|
|
268
278
|
1: "recurrenceOrdinal1",
|
|
269
279
|
2: "recurrenceOrdinal2",
|
|
270
280
|
3: "recurrenceOrdinal3",
|
|
271
281
|
4: "recurrenceOrdinal4"
|
|
272
|
-
},
|
|
273
|
-
function
|
|
274
|
-
const i = new Date(2026, 0, 4 +
|
|
282
|
+
}, wa = /^(-1|[1-4])?(MO|TU|WE|TH|FR|SA|SU)$/;
|
|
283
|
+
function _t(t, n) {
|
|
284
|
+
const i = new Date(2026, 0, 4 + va[t]);
|
|
275
285
|
return new Intl.DateTimeFormat(n, { weekday: "long" }).format(i);
|
|
276
286
|
}
|
|
277
|
-
function
|
|
278
|
-
const
|
|
279
|
-
if (!Number.isFinite(
|
|
280
|
-
const c = i ?
|
|
287
|
+
function Sa(t, n, i) {
|
|
288
|
+
const r = Et(n);
|
|
289
|
+
if (!Number.isFinite(r.getTime())) return;
|
|
290
|
+
const c = i ? Et(i) : void 0, o = c && c.getFullYear() === r.getFullYear();
|
|
281
291
|
try {
|
|
282
292
|
return new Intl.DateTimeFormat(t, {
|
|
283
293
|
day: "numeric",
|
|
284
294
|
month: "long",
|
|
285
295
|
...o ? {} : { year: "numeric" }
|
|
286
|
-
}).format(
|
|
296
|
+
}).format(r);
|
|
287
297
|
} catch {
|
|
288
298
|
return;
|
|
289
299
|
}
|
|
290
300
|
}
|
|
291
|
-
function
|
|
292
|
-
const c =
|
|
301
|
+
function Aa(t, n, i, r) {
|
|
302
|
+
const c = xn[i.frequency];
|
|
293
303
|
if (!c) return;
|
|
294
|
-
const o = (
|
|
295
|
-
(
|
|
296
|
-
) : [],
|
|
297
|
-
let A =
|
|
298
|
-
if (
|
|
299
|
-
A = t(
|
|
300
|
-
every:
|
|
304
|
+
const o = (y) => `calendarWorkspace.editor.${y}`, p = (y) => `calendarWorkspace.details.${y}`, f = ba[i.frequency], m = f && (i.interval ?? 1) > 1 ? t(o(f), { count: i.interval }) : t(o(c)), a = (i.byDay ?? []).map((y) => wa.exec(y)).filter((y) => y !== null), l = i.frequency === "weekly" ? ya.filter(
|
|
305
|
+
(y) => a.some(([, g, x]) => !g && x === y)
|
|
306
|
+
) : [], d = i.frequency === "monthly" || i.frequency === "yearly" ? a.find(([, y]) => y) : void 0;
|
|
307
|
+
let A = m;
|
|
308
|
+
if (l.length > 0)
|
|
309
|
+
A = t(p("seriesOnDays"), {
|
|
310
|
+
every: m,
|
|
301
311
|
days: new Intl.ListFormat(n, { type: "conjunction" }).format(
|
|
302
|
-
|
|
312
|
+
l.map((y) => _t(y, n))
|
|
303
313
|
)
|
|
304
314
|
});
|
|
305
|
-
else if (
|
|
306
|
-
const [,
|
|
307
|
-
A =
|
|
308
|
-
every:
|
|
309
|
-
weekday:
|
|
310
|
-
ordinal: t(o(
|
|
315
|
+
else if (d) {
|
|
316
|
+
const [, y, g] = d, x = _t(g, n);
|
|
317
|
+
A = y === "-1" ? t(p("seriesOnLast"), { every: m, weekday: x }) : t(p("seriesOnNth"), {
|
|
318
|
+
every: m,
|
|
319
|
+
weekday: x,
|
|
320
|
+
ordinal: t(o(ka[y]))
|
|
311
321
|
});
|
|
312
322
|
}
|
|
313
323
|
if (i.count !== void 0)
|
|
314
|
-
return t(
|
|
324
|
+
return t(p("seriesRule"), {
|
|
315
325
|
frequency: A,
|
|
316
326
|
count: i.count
|
|
317
327
|
});
|
|
318
|
-
const v = i.untilIso ?
|
|
319
|
-
return v ? t(
|
|
328
|
+
const v = i.untilIso ? Sa(n, i.untilIso, r) : void 0;
|
|
329
|
+
return v ? t(p("seriesUntil"), { rule: A, date: v }) : A;
|
|
320
330
|
}
|
|
321
|
-
function
|
|
331
|
+
function dt({
|
|
322
332
|
eyebrow: t,
|
|
323
333
|
heading: n,
|
|
324
334
|
facts: i
|
|
325
335
|
}) {
|
|
326
|
-
return /* @__PURE__ */ b(
|
|
327
|
-
/* @__PURE__ */ e(
|
|
328
|
-
/* @__PURE__ */ e(
|
|
329
|
-
i && i.length > 0 ? /* @__PURE__ */ e(
|
|
336
|
+
return /* @__PURE__ */ b(oe, { children: [
|
|
337
|
+
/* @__PURE__ */ e(Se.Eyebrow, { children: t }),
|
|
338
|
+
/* @__PURE__ */ e(Se.Heading, { children: n }),
|
|
339
|
+
i && i.length > 0 ? /* @__PURE__ */ e(Se.Body, { children: /* @__PURE__ */ e("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-2xs)] ds:p-0 type-body-sm", children: i.map((r, c) => /* @__PURE__ */ e(
|
|
330
340
|
"li",
|
|
331
341
|
{
|
|
332
|
-
className:
|
|
333
|
-
children:
|
|
342
|
+
className: r.muted ? "ds:text-[color:var(--muted-foreground)]" : void 0,
|
|
343
|
+
children: r.text
|
|
334
344
|
},
|
|
335
345
|
c
|
|
336
346
|
)) }) }) : null
|
|
337
347
|
] });
|
|
338
348
|
}
|
|
339
|
-
const
|
|
340
|
-
function
|
|
349
|
+
const Na = "ds:inline-flex ds:cursor-pointer ds:rounded-[var(--radius-full)] ds:p-0 ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]";
|
|
350
|
+
function Ht({
|
|
341
351
|
id: t,
|
|
342
352
|
eyebrow: n,
|
|
343
353
|
heading: i,
|
|
344
|
-
facts:
|
|
354
|
+
facts: r,
|
|
345
355
|
children: c
|
|
346
356
|
}) {
|
|
347
|
-
return /* @__PURE__ */ b(
|
|
348
|
-
/* @__PURE__ */ e(
|
|
349
|
-
/* @__PURE__ */ e(
|
|
357
|
+
return /* @__PURE__ */ b(Se, { children: [
|
|
358
|
+
/* @__PURE__ */ e(Se.Trigger, { asChild: !0, children: /* @__PURE__ */ e("button", { type: "button", "data-chip-hover": t, className: Na, children: c }) }),
|
|
359
|
+
/* @__PURE__ */ e(Se.Content, { side: "bottom", align: "start", size: "sm", children: /* @__PURE__ */ e(dt, { eyebrow: n, heading: i, facts: r }) })
|
|
350
360
|
] });
|
|
351
361
|
}
|
|
352
|
-
const s = (t) => `calendarWorkspace.details.${t}`,
|
|
362
|
+
const s = (t) => `calendarWorkspace.details.${t}`, xa = {
|
|
353
363
|
missing: "consentMissing",
|
|
354
364
|
requested: "consentRequested",
|
|
355
365
|
signed: "consentSigned"
|
|
356
|
-
},
|
|
357
|
-
function
|
|
366
|
+
}, Zt = (t) => /* @__PURE__ */ e("a", { href: `tel:${t.replace(/\s/g, "")}`, dir: "ltr", children: t }), en = (t) => /* @__PURE__ */ e("a", { href: `mailto:${t}`, dir: "ltr", children: t }), tn = (t, n, i) => new Intl.NumberFormat(t, { style: "currency", currency: i }).format(n);
|
|
367
|
+
function Ge({
|
|
358
368
|
href: t,
|
|
359
369
|
action: n,
|
|
360
370
|
icon: i,
|
|
361
|
-
iconOnly:
|
|
371
|
+
iconOnly: r = !1,
|
|
362
372
|
children: c
|
|
363
373
|
}) {
|
|
364
|
-
const o =
|
|
374
|
+
const o = Ye(t);
|
|
365
375
|
return o ? /* @__PURE__ */ e(
|
|
366
|
-
|
|
376
|
+
T,
|
|
367
377
|
{
|
|
368
378
|
asChild: !0,
|
|
369
379
|
size: "sm",
|
|
370
380
|
intent: "outline",
|
|
371
381
|
"data-action": n,
|
|
372
382
|
startIcon: i,
|
|
373
|
-
hideLabel:
|
|
383
|
+
hideLabel: r,
|
|
374
384
|
children: /* @__PURE__ */ e("a", { href: o, children: c })
|
|
375
385
|
}
|
|
376
386
|
) : null;
|
|
377
387
|
}
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
388
|
+
const Ca = "ds:[--description-list-icon-color:var(--accent)] ds:[--description-list-icon-gap:var(--spacing-md)]";
|
|
389
|
+
function je({
|
|
390
|
+
rows: t,
|
|
391
|
+
stacked: n = !1
|
|
392
|
+
}) {
|
|
393
|
+
const i = t.filter((r) => !!r);
|
|
394
|
+
return i.length === 0 ? null : /* @__PURE__ */ e(
|
|
395
|
+
Ke,
|
|
382
396
|
{
|
|
383
|
-
"
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
397
|
+
layout: n ? "stacked" : "inline",
|
|
398
|
+
density: "compact",
|
|
399
|
+
className: Ca,
|
|
400
|
+
children: i.map((r) => /* @__PURE__ */ b(
|
|
401
|
+
Ke.Row,
|
|
402
|
+
{
|
|
403
|
+
"data-row": r.id,
|
|
404
|
+
icon: r.icon,
|
|
405
|
+
children: [
|
|
406
|
+
/* @__PURE__ */ e(Ke.Term, { children: r.label }),
|
|
407
|
+
/* @__PURE__ */ e(Ke.Detail, { children: r.value })
|
|
408
|
+
]
|
|
409
|
+
},
|
|
410
|
+
r.id
|
|
411
|
+
))
|
|
412
|
+
}
|
|
413
|
+
);
|
|
392
414
|
}
|
|
393
|
-
function
|
|
415
|
+
function Ta({
|
|
394
416
|
details: t,
|
|
395
417
|
locale: n,
|
|
396
418
|
currency: i,
|
|
397
|
-
now:
|
|
419
|
+
now: r,
|
|
398
420
|
mapsLink: c = !1,
|
|
399
421
|
shortcuts: o,
|
|
400
|
-
onRequestSignature:
|
|
401
|
-
onSignOnDevice:
|
|
402
|
-
onOpenPatient:
|
|
422
|
+
onRequestSignature: p,
|
|
423
|
+
onSignOnDevice: f,
|
|
424
|
+
onOpenPatient: m
|
|
403
425
|
}) {
|
|
404
|
-
const { t: a } =
|
|
405
|
-
if (!
|
|
406
|
-
const
|
|
426
|
+
const { t: a } = te("ui"), { patient: l, signing: d, money: A, booking: v } = t;
|
|
427
|
+
if (!l) return null;
|
|
428
|
+
const y = (d == null ? void 0 : d.consents) ?? [], g = d && (d.required > 0 || y.length > 0) ? d : void 0, x = ((g == null ? void 0 : g.toComplete) ?? 0) > 0, L = g ? [
|
|
407
429
|
{
|
|
408
|
-
text:
|
|
430
|
+
text: x ? g.requestedVia === "sms" ? a(s("signingRequestedSms")) : g.requestedVia === "email" ? a(s("signingRequestedEmail")) : a(s("signingNotRequested")) : a(s("signingAllSigned"))
|
|
409
431
|
},
|
|
410
|
-
...
|
|
411
|
-
] : [], P = ((
|
|
432
|
+
...g.aesSetUp ? [] : [{ text: a(s("aesMissing")), muted: !0 }]
|
|
433
|
+
] : [], P = ((d == null ? void 0 : d.required) ?? 0) > 0 && x, C = !!(o != null && o.advancedSignatureUrl) && ((d == null ? void 0 : d.required) ?? 0) > 0 && !(d != null && d.aesSetUp), M = !!p && P, D = !!f && P, _ = l.highlightedAnamnesisCount ?? 0, E = l.expiredAnamnesisCount ?? 0, q = (l.highlightedAnamnesisAnswers ?? []).map((N) => ({
|
|
412
434
|
text: [
|
|
413
|
-
|
|
414
|
-
a(s(
|
|
415
|
-
|
|
416
|
-
|
|
435
|
+
N.question,
|
|
436
|
+
a(s(N.yes ? "anamnesisYes" : "anamnesisNo")),
|
|
437
|
+
N.answer,
|
|
438
|
+
Kt(n, N.interviewIso)
|
|
417
439
|
].filter(Boolean).join(" · ")
|
|
418
|
-
})), z =
|
|
419
|
-
id: `consent-${
|
|
420
|
-
label:
|
|
421
|
-
value: a(s(
|
|
440
|
+
})), z = Cn(l), re = Tn(l) || z, K = y.map((N) => ({
|
|
441
|
+
id: `consent-${N.id}`,
|
|
442
|
+
label: N.name,
|
|
443
|
+
value: a(s(xa[N.state]))
|
|
422
444
|
})), j = [
|
|
423
|
-
...
|
|
445
|
+
...l.dobIso ? [
|
|
424
446
|
{
|
|
425
447
|
id: "dob",
|
|
426
448
|
label: a(s("dob")),
|
|
427
|
-
icon: /* @__PURE__ */ e(
|
|
428
|
-
value:
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
449
|
+
icon: /* @__PURE__ */ e(ua, {}),
|
|
450
|
+
value: En(n, l.dobIso)
|
|
451
|
+
},
|
|
452
|
+
/* The age is a fact of its own, not a bracket after the date: its
|
|
453
|
+
own row, label and glyph, with the kit's plural-aware words
|
|
454
|
+
(`AgeChip`). Not that chip's hourglass: in this panel the
|
|
455
|
+
hourglass is the appointment's duration, one card below. */
|
|
456
|
+
{
|
|
457
|
+
id: "age",
|
|
458
|
+
label: a("patientTable.column.age"),
|
|
459
|
+
icon: /* @__PURE__ */ e(Hn, {}),
|
|
460
|
+
value: a("patientField.age", {
|
|
461
|
+
count: In(l.dobIso, r)
|
|
462
|
+
})
|
|
434
463
|
}
|
|
435
464
|
] : [],
|
|
436
|
-
...
|
|
437
|
-
const
|
|
465
|
+
...Dn(l).map((N, G) => {
|
|
466
|
+
const V = N.label === "mobile" || N.label === "home" || N.label === "work";
|
|
438
467
|
return {
|
|
439
468
|
id: `phone-${G}`,
|
|
440
|
-
label: a(
|
|
441
|
-
icon:
|
|
442
|
-
value:
|
|
469
|
+
label: a(V ? `calendarWorkspace.print.phoneLabels.${N.label}` : s("phone")),
|
|
470
|
+
icon: N.label === "mobile" ? /* @__PURE__ */ e(Pt, {}) : /* @__PURE__ */ e(Mn, {}),
|
|
471
|
+
value: Zt(N.number)
|
|
443
472
|
};
|
|
444
473
|
}),
|
|
445
|
-
...
|
|
474
|
+
...l.email ? [
|
|
446
475
|
{
|
|
447
476
|
id: "email",
|
|
448
477
|
label: a(s("email")),
|
|
449
|
-
icon: /* @__PURE__ */ e(
|
|
450
|
-
value:
|
|
478
|
+
icon: /* @__PURE__ */ e(Un, {}),
|
|
479
|
+
value: en(l.email)
|
|
451
480
|
}
|
|
452
481
|
] : [],
|
|
453
482
|
/* P27: hidden patient details leave the address out, and with it the
|
|
@@ -456,113 +485,114 @@ function Sa({
|
|
|
456
485
|
{
|
|
457
486
|
id: "address",
|
|
458
487
|
label: a(s("address")),
|
|
459
|
-
icon: /* @__PURE__ */ e(
|
|
488
|
+
icon: /* @__PURE__ */ e(Bn, {}),
|
|
460
489
|
value: /* @__PURE__ */ e(
|
|
461
490
|
"a",
|
|
462
491
|
{
|
|
463
|
-
href:
|
|
492
|
+
href: Rn(l),
|
|
464
493
|
target: "_blank",
|
|
465
494
|
rel: "noopener noreferrer",
|
|
466
|
-
"aria-label": `${a(s("mapsLink"))}: ${
|
|
467
|
-
children:
|
|
495
|
+
"aria-label": `${a(s("mapsLink"))}: ${re}`,
|
|
496
|
+
children: re
|
|
468
497
|
}
|
|
469
498
|
)
|
|
470
499
|
}
|
|
471
500
|
] : []
|
|
472
|
-
],
|
|
473
|
-
|
|
501
|
+
], Y = (A == null ? void 0 : A.unpaidAmount) ?? 0, B = (A == null ? void 0 : A.billableAmount) ?? 0, ne = (v == null ? void 0 : v.paidOnlineAmount) ?? 0, ae = (N, G, V, Ae, Ne, xe) => /* @__PURE__ */ e(
|
|
502
|
+
Ht,
|
|
474
503
|
{
|
|
475
|
-
id:
|
|
504
|
+
id: V,
|
|
476
505
|
eyebrow: a(s("hoverBilling")),
|
|
477
|
-
heading: a(s(
|
|
478
|
-
amount:
|
|
506
|
+
heading: a(s(Ae), {
|
|
507
|
+
amount: tn(n, G, i)
|
|
479
508
|
}),
|
|
480
509
|
facts: [{ text: a(s(Ne)) }],
|
|
481
510
|
children: /* @__PURE__ */ e(
|
|
482
|
-
|
|
511
|
+
_n,
|
|
483
512
|
{
|
|
484
|
-
"data-chip":
|
|
485
|
-
state:
|
|
513
|
+
"data-chip": V,
|
|
514
|
+
state: N,
|
|
486
515
|
amount: G,
|
|
487
516
|
currency: i,
|
|
488
517
|
locale: n,
|
|
489
518
|
size: "md",
|
|
490
519
|
showLabel: !0,
|
|
491
|
-
label:
|
|
520
|
+
label: xe,
|
|
492
521
|
showIcon: !1,
|
|
493
|
-
tone:
|
|
522
|
+
tone: N === "to-invoice" ? "neutral" : "state"
|
|
494
523
|
}
|
|
495
524
|
)
|
|
496
525
|
}
|
|
497
526
|
);
|
|
498
527
|
return /* @__PURE__ */ e(
|
|
499
|
-
|
|
528
|
+
qt,
|
|
500
529
|
{
|
|
501
530
|
"data-card": "patient",
|
|
502
|
-
name:
|
|
503
|
-
avatarUrl:
|
|
531
|
+
name: l.name,
|
|
532
|
+
avatarUrl: l.avatarSrc,
|
|
504
533
|
locale: n,
|
|
505
534
|
surface: "elevated",
|
|
506
535
|
density: "compact",
|
|
507
536
|
fieldColumns: "single",
|
|
508
537
|
wrapFieldValues: !0,
|
|
538
|
+
className: "ds:[--key-value-pair-icon-color:var(--accent)]",
|
|
509
539
|
flags: {
|
|
510
|
-
unsignedDocumentsCount: (
|
|
511
|
-
highlightedAnamnesisCount:
|
|
540
|
+
unsignedDocumentsCount: (g == null ? void 0 : g.toComplete) ?? 0,
|
|
541
|
+
highlightedAnamnesisCount: _
|
|
512
542
|
},
|
|
513
543
|
flagHover: {
|
|
514
|
-
...
|
|
544
|
+
...g ? {
|
|
515
545
|
unsignedDocuments: /* @__PURE__ */ e(
|
|
516
|
-
|
|
546
|
+
dt,
|
|
517
547
|
{
|
|
518
548
|
eyebrow: a(s("sectionSigning")),
|
|
519
|
-
heading:
|
|
520
|
-
n:
|
|
549
|
+
heading: g.toComplete === 1 ? a(s("signingToSignOne")) : a(s("signingToSignMany"), {
|
|
550
|
+
n: g.toComplete
|
|
521
551
|
}),
|
|
522
552
|
facts: L
|
|
523
553
|
}
|
|
524
554
|
)
|
|
525
555
|
} : {},
|
|
526
556
|
highlightedAnamnesis: /* @__PURE__ */ e(
|
|
527
|
-
|
|
557
|
+
dt,
|
|
528
558
|
{
|
|
529
559
|
eyebrow: a(s("anamnesisTitle")),
|
|
530
|
-
heading: a(s("anamnesisHighlighted"), { n:
|
|
560
|
+
heading: a(s("anamnesisHighlighted"), { n: _ }),
|
|
531
561
|
facts: q
|
|
532
562
|
}
|
|
533
563
|
)
|
|
534
564
|
},
|
|
535
|
-
actionSlot:
|
|
536
|
-
|
|
565
|
+
actionSlot: m ? /* @__PURE__ */ e(
|
|
566
|
+
Ve,
|
|
537
567
|
{
|
|
538
|
-
icon: /* @__PURE__ */ e(
|
|
568
|
+
icon: /* @__PURE__ */ e(Gt, { "aria-hidden": "true" }),
|
|
539
569
|
intent: "outline",
|
|
540
570
|
size: "sm",
|
|
541
571
|
"data-action": ue.openPatient,
|
|
542
572
|
"aria-label": a(s("openPatient")),
|
|
543
573
|
tooltip: a(s("openPatient")),
|
|
544
|
-
onClick: () =>
|
|
574
|
+
onClick: () => m(t.eventId)
|
|
545
575
|
}
|
|
546
576
|
) : void 0,
|
|
547
|
-
extraChips:
|
|
577
|
+
extraChips: Y > 0 || B > 0 || ne > 0 || E > 0 || C || M || D ? /* @__PURE__ */ b(oe, { children: [
|
|
548
578
|
/* @__PURE__ */ b("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
549
|
-
|
|
579
|
+
Y > 0 ? ae(
|
|
550
580
|
"debt",
|
|
551
|
-
|
|
581
|
+
Y,
|
|
552
582
|
"unpaid",
|
|
553
583
|
"hoverUnpaidHeading",
|
|
554
584
|
"hoverUnpaidFact"
|
|
555
585
|
) : null,
|
|
556
|
-
|
|
586
|
+
B > 0 ? ae(
|
|
557
587
|
"to-invoice",
|
|
558
|
-
|
|
588
|
+
B,
|
|
559
589
|
"billable",
|
|
560
590
|
"hoverBillableHeading",
|
|
561
591
|
"hoverBillableFact"
|
|
562
592
|
) : null,
|
|
563
|
-
|
|
593
|
+
ne > 0 ? ae(
|
|
564
594
|
"settled",
|
|
565
|
-
|
|
595
|
+
ne,
|
|
566
596
|
"paidOnline",
|
|
567
597
|
"hoverPaidOnlineHeading",
|
|
568
598
|
"hoverPaidOnlineFact",
|
|
@@ -572,76 +602,76 @@ function Sa({
|
|
|
572
602
|
) : null
|
|
573
603
|
] }),
|
|
574
604
|
M ? /* @__PURE__ */ e(
|
|
575
|
-
|
|
605
|
+
T,
|
|
576
606
|
{
|
|
577
607
|
size: "sm",
|
|
578
608
|
intent: "outline",
|
|
579
609
|
"data-action": ue.requestSignature,
|
|
580
|
-
startIcon: /* @__PURE__ */ e(
|
|
581
|
-
onClick: () =>
|
|
610
|
+
startIcon: /* @__PURE__ */ e(Wn, { "aria-hidden": "true" }),
|
|
611
|
+
onClick: () => p(t.eventId),
|
|
582
612
|
children: a(s("signingRequest"))
|
|
583
613
|
}
|
|
584
614
|
) : null,
|
|
585
|
-
|
|
586
|
-
|
|
615
|
+
D ? /* @__PURE__ */ e(
|
|
616
|
+
T,
|
|
587
617
|
{
|
|
588
618
|
size: "sm",
|
|
589
619
|
intent: "outline",
|
|
590
620
|
"data-action": ue.signOnDevice,
|
|
591
621
|
"aria-label": `${a(s("signingRequest"))}: ${a(s("signingOnDevice"))}`,
|
|
592
|
-
startIcon: /* @__PURE__ */ e(
|
|
593
|
-
onClick: () =>
|
|
622
|
+
startIcon: /* @__PURE__ */ e(Pt, { "aria-hidden": "true" }),
|
|
623
|
+
onClick: () => f(t.eventId),
|
|
594
624
|
children: a(s("signingOnDevice"))
|
|
595
625
|
}
|
|
596
626
|
) : null,
|
|
597
|
-
|
|
598
|
-
|
|
627
|
+
C && (o != null && o.advancedSignatureUrl) ? /* @__PURE__ */ e(
|
|
628
|
+
Ge,
|
|
599
629
|
{
|
|
600
630
|
href: o.advancedSignatureUrl,
|
|
601
631
|
action: ue.advancedSignature,
|
|
602
|
-
icon: /* @__PURE__ */ e(
|
|
632
|
+
icon: /* @__PURE__ */ e($n, { "aria-hidden": "true" }),
|
|
603
633
|
children: a(s("aesSetUp"))
|
|
604
634
|
}
|
|
605
635
|
) : null,
|
|
606
|
-
o != null && o.unlockPaymentsUrl && (
|
|
607
|
-
|
|
636
|
+
o != null && o.unlockPaymentsUrl && (Y > 0 || B > 0) ? /* @__PURE__ */ e(
|
|
637
|
+
Ge,
|
|
608
638
|
{
|
|
609
639
|
href: o.unlockPaymentsUrl,
|
|
610
640
|
action: ue.unlockPayments,
|
|
611
|
-
icon: /* @__PURE__ */ e(
|
|
641
|
+
icon: /* @__PURE__ */ e(qn, { "aria-hidden": "true" }),
|
|
612
642
|
children: a(s("unlockPayments"))
|
|
613
643
|
}
|
|
614
644
|
) : null,
|
|
615
|
-
|
|
616
|
-
|
|
645
|
+
E > 0 ? /* @__PURE__ */ e(
|
|
646
|
+
Ht,
|
|
617
647
|
{
|
|
618
648
|
id: "anamnesisExpired",
|
|
619
649
|
eyebrow: a(s("anamnesisTitle")),
|
|
620
|
-
heading: a(s("anamnesisExpired"), { n:
|
|
650
|
+
heading: a(s("anamnesisExpired"), { n: E }),
|
|
621
651
|
facts: [{ text: a(s("hoverAnamnesisExpiredFact")) }],
|
|
622
652
|
children: /* @__PURE__ */ e(
|
|
623
|
-
|
|
653
|
+
jt,
|
|
624
654
|
{
|
|
625
655
|
"data-chip": "anamnesisExpired",
|
|
626
656
|
variant: "warning",
|
|
627
657
|
size: "md",
|
|
628
|
-
leading: /* @__PURE__ */ e(
|
|
629
|
-
children: a(s("anamnesisExpired"), { n:
|
|
658
|
+
leading: /* @__PURE__ */ e(zn, {}),
|
|
659
|
+
children: a(s("anamnesisExpired"), { n: E })
|
|
630
660
|
}
|
|
631
661
|
)
|
|
632
662
|
}
|
|
633
663
|
) : null,
|
|
634
|
-
|
|
635
|
-
|
|
664
|
+
E > 0 && (o != null && o.renewAnamnesisUrl) ? /* @__PURE__ */ e(
|
|
665
|
+
Ge,
|
|
636
666
|
{
|
|
637
667
|
href: o.renewAnamnesisUrl,
|
|
638
668
|
action: ue.renewAnamnesis,
|
|
639
|
-
icon: /* @__PURE__ */ e(
|
|
669
|
+
icon: /* @__PURE__ */ e(Kn, { "aria-hidden": "true" }),
|
|
640
670
|
children: a(s("anamnesisRenew"))
|
|
641
671
|
}
|
|
642
672
|
) : null
|
|
643
673
|
] }) : void 0,
|
|
644
|
-
visibleFieldOrder: [...j, ...K].map((
|
|
674
|
+
visibleFieldOrder: [...j, ...K].map((N) => N.id),
|
|
645
675
|
sections: j.length > 0 || K.length > 0 ? [
|
|
646
676
|
...j.length > 0 ? [{ id: "contact", heading: a(s("sectionPatient")), fields: j }] : [],
|
|
647
677
|
...K.length > 0 ? [
|
|
@@ -655,140 +685,145 @@ function Sa({
|
|
|
655
685
|
}
|
|
656
686
|
);
|
|
657
687
|
}
|
|
658
|
-
function
|
|
688
|
+
function Ea({
|
|
659
689
|
details: t,
|
|
660
690
|
locale: n,
|
|
661
691
|
currency: i,
|
|
662
|
-
operator:
|
|
692
|
+
operator: r,
|
|
663
693
|
chair: c,
|
|
664
694
|
description: o,
|
|
665
|
-
headerAction:
|
|
666
|
-
privacy:
|
|
667
|
-
history:
|
|
695
|
+
headerAction: p,
|
|
696
|
+
privacy: f = !1,
|
|
697
|
+
history: m
|
|
668
698
|
}) {
|
|
669
|
-
const { t: a } =
|
|
670
|
-
|
|
699
|
+
const { t: a } = te("ui"), { appointment: l, booking: d, patient: A } = t, v = (E) => a(`calendarWorkspace.editor.${E}`), y = new Date(l.startIso), g = new Date(y.getTime() + l.durationMin * 6e4), x = Number.isFinite(y.getTime()), { recurrence: L } = l, P = L && Aa(a, n, L, l.startIso), C = d ? [
|
|
700
|
+
d.bookedAtIso && {
|
|
671
701
|
id: "bookedAt",
|
|
672
702
|
label: a(s("bookedAt")),
|
|
673
703
|
value: /* @__PURE__ */ e(
|
|
674
|
-
|
|
704
|
+
Rt,
|
|
675
705
|
{
|
|
676
|
-
value:
|
|
706
|
+
value: d.bookedAtIso,
|
|
677
707
|
format: "absolute",
|
|
678
708
|
shape: "bare",
|
|
679
709
|
locale: n,
|
|
680
|
-
absoluteFormat:
|
|
710
|
+
absoluteFormat: It
|
|
681
711
|
}
|
|
682
712
|
)
|
|
683
713
|
},
|
|
684
|
-
|
|
714
|
+
d.typedName && {
|
|
685
715
|
id: "bookingName",
|
|
686
716
|
label: a(s("bookingName")),
|
|
687
|
-
value:
|
|
717
|
+
value: d.typedName
|
|
688
718
|
},
|
|
689
|
-
|
|
719
|
+
d.phone && {
|
|
690
720
|
id: "bookingPhone",
|
|
691
721
|
label: a(s("bookingPhone")),
|
|
692
|
-
value:
|
|
722
|
+
value: Zt(d.phone)
|
|
693
723
|
},
|
|
694
|
-
|
|
724
|
+
d.email && {
|
|
695
725
|
id: "bookingEmail",
|
|
696
726
|
label: a(s("bookingEmail")),
|
|
697
|
-
value:
|
|
727
|
+
value: en(d.email)
|
|
698
728
|
},
|
|
699
|
-
|
|
729
|
+
d.note && {
|
|
700
730
|
id: "bookingNote",
|
|
701
731
|
label: a(s("bookingNote")),
|
|
702
|
-
value:
|
|
732
|
+
value: d.note
|
|
703
733
|
},
|
|
704
734
|
/* With a patient the amount is a chip on the patient card. */
|
|
705
|
-
!A &&
|
|
735
|
+
!A && d.paidOnlineAmount !== void 0 && {
|
|
706
736
|
id: "paidOnline",
|
|
707
737
|
label: a(s("paidOnline")),
|
|
708
|
-
value:
|
|
738
|
+
value: tn(n, d.paidOnlineAmount, i)
|
|
709
739
|
}
|
|
710
|
-
] : [], M =
|
|
711
|
-
(
|
|
712
|
-
).sort((
|
|
740
|
+
] : [], M = f ? C.filter((E) => E && E.id === "bookedAt") : C, D = M.some(Boolean), _ = d || l.bookedOnline || m == null ? void 0 : m.filter(
|
|
741
|
+
(E) => E.kind === "created" && E.actor.trim() !== ""
|
|
742
|
+
).sort((E, q) => Date.parse(E.atIso) - Date.parse(q.atIso))[0];
|
|
713
743
|
return /* @__PURE__ */ b(
|
|
714
744
|
me,
|
|
715
745
|
{
|
|
716
746
|
"data-card": "appointment",
|
|
717
747
|
title: a(s("sectionAppointment")),
|
|
718
748
|
headingLevel: 3,
|
|
719
|
-
headerAction:
|
|
749
|
+
headerAction: p,
|
|
720
750
|
children: [
|
|
721
|
-
o,
|
|
722
751
|
/* @__PURE__ */ e(
|
|
723
|
-
|
|
752
|
+
je,
|
|
724
753
|
{
|
|
754
|
+
stacked: !0,
|
|
725
755
|
rows: [
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
756
|
+
o != null && o !== !1 && {
|
|
757
|
+
id: "description",
|
|
758
|
+
label: v("description"),
|
|
759
|
+
icon: /* @__PURE__ */ e(Vt, {}),
|
|
760
|
+
value: o
|
|
761
|
+
}
|
|
762
|
+
]
|
|
763
|
+
}
|
|
764
|
+
),
|
|
765
|
+
/* @__PURE__ */ e(
|
|
766
|
+
je,
|
|
767
|
+
{
|
|
768
|
+
rows: [
|
|
769
|
+
x && {
|
|
735
770
|
id: "date",
|
|
736
771
|
label: v("date"),
|
|
737
|
-
icon: /* @__PURE__ */ e(
|
|
738
|
-
value:
|
|
772
|
+
icon: /* @__PURE__ */ e(Yn, {}),
|
|
773
|
+
value: Kt(n, y)
|
|
739
774
|
},
|
|
740
|
-
|
|
775
|
+
x && {
|
|
741
776
|
id: "time",
|
|
742
777
|
label: a(s("time")),
|
|
743
|
-
icon: /* @__PURE__ */ e(
|
|
744
|
-
value:
|
|
778
|
+
icon: /* @__PURE__ */ e(Gn, {}),
|
|
779
|
+
value: l.allDay ? v("allDay") : Pn(n, y, g)
|
|
745
780
|
},
|
|
746
|
-
!
|
|
781
|
+
!l.allDay && {
|
|
747
782
|
id: "duration",
|
|
748
783
|
label: v("duration"),
|
|
749
|
-
icon: /* @__PURE__ */ e(
|
|
750
|
-
value: `${
|
|
784
|
+
icon: /* @__PURE__ */ e(Vn, {}),
|
|
785
|
+
value: `${l.durationMin} ${v("durationUnit")}`
|
|
751
786
|
},
|
|
752
|
-
|
|
787
|
+
l.isTelehealth && {
|
|
753
788
|
id: "type",
|
|
754
789
|
label: v("type"),
|
|
755
|
-
icon: /* @__PURE__ */ e(
|
|
790
|
+
icon: /* @__PURE__ */ e(Xt, {}),
|
|
756
791
|
value: v("typeTelehealth")
|
|
757
792
|
},
|
|
758
|
-
|
|
793
|
+
r && {
|
|
759
794
|
id: "operator",
|
|
760
795
|
label: a(s("operator")),
|
|
761
796
|
/* A person, as on the grid: the avatar fills the icon slot. */
|
|
762
|
-
icon: /* @__PURE__ */ e(
|
|
763
|
-
value:
|
|
797
|
+
icon: /* @__PURE__ */ e(Dt, { name: r.name, src: r.avatarSrc, size: "xs" }),
|
|
798
|
+
value: r.name
|
|
764
799
|
},
|
|
765
800
|
c && {
|
|
766
801
|
id: "chair",
|
|
767
802
|
label: a(s("chair")),
|
|
768
|
-
icon: /* @__PURE__ */ e(
|
|
769
|
-
value: /* @__PURE__ */ e(
|
|
803
|
+
icon: /* @__PURE__ */ e(Lt, {}),
|
|
804
|
+
value: /* @__PURE__ */ e(jt, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(Lt, {}), children: c.name })
|
|
770
805
|
},
|
|
771
|
-
|
|
806
|
+
l.branchLabel && {
|
|
772
807
|
id: "branch",
|
|
773
808
|
label: v("branch"),
|
|
774
|
-
icon: /* @__PURE__ */ e(
|
|
775
|
-
value:
|
|
809
|
+
icon: /* @__PURE__ */ e(Xn, {}),
|
|
810
|
+
value: l.branchLabel
|
|
776
811
|
},
|
|
777
|
-
|
|
812
|
+
_ && {
|
|
778
813
|
id: "createdBy",
|
|
779
814
|
label: a(s("createdBy")),
|
|
780
|
-
icon: /* @__PURE__ */ e(
|
|
815
|
+
icon: /* @__PURE__ */ e(Dt, { name: _.actor, size: "xs" }),
|
|
781
816
|
value: /* @__PURE__ */ b("span", { className: "ds:inline-flex ds:flex-wrap ds:items-baseline ds:gap-x-[var(--spacing-xs)]", children: [
|
|
782
|
-
/* @__PURE__ */ e("span", { children:
|
|
817
|
+
/* @__PURE__ */ e("span", { children: _.actor }),
|
|
783
818
|
" ",
|
|
784
819
|
/* @__PURE__ */ e("span", { className: "ds:text-[color:var(--muted-foreground)]", children: /* @__PURE__ */ e(
|
|
785
|
-
|
|
820
|
+
Rt,
|
|
786
821
|
{
|
|
787
|
-
value:
|
|
822
|
+
value: _.atIso,
|
|
788
823
|
format: "absolute",
|
|
789
824
|
shape: "bare",
|
|
790
825
|
locale: n,
|
|
791
|
-
absoluteFormat:
|
|
826
|
+
absoluteFormat: It
|
|
792
827
|
}
|
|
793
828
|
) })
|
|
794
829
|
] })
|
|
@@ -796,20 +831,34 @@ function Aa({
|
|
|
796
831
|
P && {
|
|
797
832
|
id: "series",
|
|
798
833
|
label: a(s("seriesLabel")),
|
|
799
|
-
icon: /* @__PURE__ */ e(
|
|
834
|
+
icon: /* @__PURE__ */ e(Jn, {}),
|
|
800
835
|
value: P
|
|
801
836
|
}
|
|
802
837
|
]
|
|
803
838
|
}
|
|
804
839
|
),
|
|
805
|
-
|
|
840
|
+
/* @__PURE__ */ e(
|
|
841
|
+
je,
|
|
842
|
+
{
|
|
843
|
+
stacked: !0,
|
|
844
|
+
rows: [
|
|
845
|
+
(d == null ? void 0 : d.reason) && {
|
|
846
|
+
id: "bookingReason",
|
|
847
|
+
label: a(s("bookingReason")),
|
|
848
|
+
icon: /* @__PURE__ */ e(Qn, {}),
|
|
849
|
+
value: /* @__PURE__ */ e("span", { className: "ds:font-medium", children: d.reason })
|
|
850
|
+
}
|
|
851
|
+
]
|
|
852
|
+
}
|
|
853
|
+
),
|
|
854
|
+
D ? /* @__PURE__ */ b(
|
|
806
855
|
"div",
|
|
807
856
|
{
|
|
808
857
|
"data-block": "booking",
|
|
809
858
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
810
859
|
children: [
|
|
811
860
|
/* @__PURE__ */ e("h4", { className: "ds:m-0 type-label ds:text-[color:var(--muted-foreground)]", children: a(s("sectionBooking")) }),
|
|
812
|
-
/* @__PURE__ */ e(
|
|
861
|
+
/* @__PURE__ */ e(je, { rows: M })
|
|
813
862
|
]
|
|
814
863
|
}
|
|
815
864
|
) : null
|
|
@@ -817,47 +866,47 @@ function Aa({
|
|
|
817
866
|
}
|
|
818
867
|
);
|
|
819
868
|
}
|
|
820
|
-
function
|
|
869
|
+
function Ia({
|
|
821
870
|
details: t,
|
|
822
871
|
locale: n,
|
|
823
872
|
currency: i,
|
|
824
|
-
privacy:
|
|
873
|
+
privacy: r = !1,
|
|
825
874
|
carePlanUrl: c
|
|
826
875
|
}) {
|
|
827
|
-
const { t: o } =
|
|
828
|
-
return !
|
|
876
|
+
const { t: o } = te("ui"), { care: p } = t, f = r || p == null ? void 0 : p.plan;
|
|
877
|
+
return !p || !f && p.lines.length === 0 ? null : /* @__PURE__ */ b(
|
|
829
878
|
me,
|
|
830
879
|
{
|
|
831
880
|
"data-card": "treatments",
|
|
832
881
|
title: o(s("sectionTreatments")),
|
|
833
882
|
headingLevel: 3,
|
|
834
|
-
headerAction:
|
|
835
|
-
|
|
883
|
+
headerAction: f && c ? /* @__PURE__ */ e(
|
|
884
|
+
Ge,
|
|
836
885
|
{
|
|
837
886
|
href: c,
|
|
838
887
|
action: ue.carePlan,
|
|
839
|
-
icon: /* @__PURE__ */ e(
|
|
888
|
+
icon: /* @__PURE__ */ e(Gt, { "aria-hidden": "true" }),
|
|
840
889
|
iconOnly: !0,
|
|
841
890
|
children: o(s("openCarePlan"))
|
|
842
891
|
}
|
|
843
892
|
) : void 0,
|
|
844
893
|
children: [
|
|
845
|
-
|
|
894
|
+
f ? /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-xs)]", children: /* @__PURE__ */ b("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-item", children: [
|
|
846
895
|
/* @__PURE__ */ e(
|
|
847
|
-
|
|
896
|
+
Jt,
|
|
848
897
|
{
|
|
849
898
|
"aria-hidden": "true",
|
|
850
|
-
className: "ds:size-4 ds:shrink-0 ds:text-[color:var(--
|
|
899
|
+
className: "ds:size-4 ds:shrink-0 ds:text-[color:var(--accent)]"
|
|
851
900
|
}
|
|
852
901
|
),
|
|
853
|
-
|
|
902
|
+
f.number ? o(s("planLine"), { number: f.number, name: f.name }) : f.name
|
|
854
903
|
] }) }) : null,
|
|
855
|
-
|
|
856
|
-
|
|
904
|
+
p.lines.length > 0 ? /* @__PURE__ */ e(
|
|
905
|
+
zt,
|
|
857
906
|
{
|
|
858
|
-
lines:
|
|
859
|
-
id:
|
|
860
|
-
...
|
|
907
|
+
lines: p.lines.map(({ entryId: m, careId: a, ...l }) => ({
|
|
908
|
+
id: m,
|
|
909
|
+
...l
|
|
861
910
|
})),
|
|
862
911
|
locale: n,
|
|
863
912
|
currency: i
|
|
@@ -867,29 +916,29 @@ function xa({
|
|
|
867
916
|
}
|
|
868
917
|
);
|
|
869
918
|
}
|
|
870
|
-
const
|
|
871
|
-
function
|
|
919
|
+
const Mt = 3;
|
|
920
|
+
function Da({
|
|
872
921
|
preview: t,
|
|
873
922
|
onOpenNotes: n,
|
|
874
923
|
locale: i
|
|
875
924
|
}) {
|
|
876
|
-
const { t:
|
|
925
|
+
const { t: r } = te("ui"), c = st(), o = t.status ?? "ready", p = R(!1);
|
|
877
926
|
pe(() => {
|
|
878
|
-
|
|
927
|
+
p.current && (o !== "loading" && (p.current = !1), _e(c));
|
|
879
928
|
}, [o, c]);
|
|
880
|
-
const
|
|
929
|
+
const f = t.total ?? (o === "ready" ? t.notes.length : null), m = Math.max(0, (f ?? 0) - Mt), a = m > 0 ? r(s("notesMore"), { n: m }) : r(s("notesPreviewOpen"));
|
|
881
930
|
return /* @__PURE__ */ b(
|
|
882
931
|
me,
|
|
883
932
|
{
|
|
884
933
|
"data-card": "notes",
|
|
885
934
|
headingId: c,
|
|
886
935
|
headingLevel: 3,
|
|
887
|
-
title:
|
|
888
|
-
headerAction: n && (
|
|
936
|
+
title: f === null ? r("notesPanel.title") : r(s("notesPreviewTitle"), { count: f }),
|
|
937
|
+
headerAction: n && (f ?? 0) > 0 ? /* @__PURE__ */ b("span", { className: "ds:relative ds:inline-flex", children: [
|
|
889
938
|
/* @__PURE__ */ e(
|
|
890
|
-
|
|
939
|
+
Ve,
|
|
891
940
|
{
|
|
892
|
-
icon: /* @__PURE__ */ e(
|
|
941
|
+
icon: /* @__PURE__ */ e(Zn, { "aria-hidden": "true" }),
|
|
893
942
|
intent: "outline",
|
|
894
943
|
size: "sm",
|
|
895
944
|
"data-action": "open-patient-notes",
|
|
@@ -898,15 +947,15 @@ function Na({
|
|
|
898
947
|
onClick: () => n()
|
|
899
948
|
}
|
|
900
949
|
),
|
|
901
|
-
|
|
950
|
+
m > 0 ? (
|
|
902
951
|
/* Decorative: the button's name already says the count. */
|
|
903
952
|
/* @__PURE__ */ e(
|
|
904
|
-
|
|
953
|
+
Fn,
|
|
905
954
|
{
|
|
906
955
|
variant: "outline",
|
|
907
956
|
size: "sm",
|
|
908
957
|
background: "surface",
|
|
909
|
-
count:
|
|
958
|
+
count: m,
|
|
910
959
|
"aria-hidden": "true",
|
|
911
960
|
className: "ds:pointer-events-none ds:absolute ds:-top-[var(--spacing-2xs)] ds:-end-[var(--spacing-2xs)]"
|
|
912
961
|
}
|
|
@@ -914,36 +963,37 @@ function Na({
|
|
|
914
963
|
) : null
|
|
915
964
|
] }) : void 0,
|
|
916
965
|
children: [
|
|
917
|
-
o === "error" ? /* @__PURE__ */ b(
|
|
918
|
-
/* @__PURE__ */ e(
|
|
919
|
-
t.onRetry ? /* @__PURE__ */ e(
|
|
920
|
-
|
|
966
|
+
o === "error" ? /* @__PURE__ */ b(ee, { variant: "error", children: [
|
|
967
|
+
/* @__PURE__ */ e(ee.Description, { children: r("notesPanel.loadError") }),
|
|
968
|
+
t.onRetry ? /* @__PURE__ */ e(ee.Action, { children: /* @__PURE__ */ e(
|
|
969
|
+
T,
|
|
921
970
|
{
|
|
922
971
|
intent: "secondary",
|
|
923
972
|
size: "sm",
|
|
924
973
|
onClick: () => {
|
|
925
|
-
var
|
|
926
|
-
|
|
974
|
+
var l;
|
|
975
|
+
p.current = !0, (l = t.onRetry) == null || l.call(t);
|
|
927
976
|
},
|
|
928
|
-
children:
|
|
977
|
+
children: r("notesPanel.retry")
|
|
929
978
|
}
|
|
930
979
|
) }) : null
|
|
931
980
|
] }) : null,
|
|
932
|
-
t.notes.length === 0 && o === "loading" ? /* @__PURE__ */ b(
|
|
933
|
-
/* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children:
|
|
934
|
-
/* @__PURE__ */ e(
|
|
981
|
+
t.notes.length === 0 && o === "loading" ? /* @__PURE__ */ b(oe, { children: [
|
|
982
|
+
/* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: r("notesPanel.loading") }),
|
|
983
|
+
/* @__PURE__ */ e(rt, { notes: [], loading: !0, loadingRows: 2 })
|
|
935
984
|
] }) : o !== "error" || t.notes.length > 0 ? (
|
|
936
985
|
/* A note click, or Enter or Space on it, goes straight to that note
|
|
937
986
|
in the Notes tool; the header button opens the tool at the top. */
|
|
938
987
|
/* @__PURE__ */ e(
|
|
939
|
-
|
|
988
|
+
rt,
|
|
940
989
|
{
|
|
941
990
|
notes: t.notes,
|
|
942
|
-
maxItems:
|
|
991
|
+
maxItems: Mt,
|
|
992
|
+
bodyFormat: "plain",
|
|
943
993
|
locale: i,
|
|
944
994
|
"aria-labelledby": c,
|
|
945
995
|
onNoteActivate: n,
|
|
946
|
-
emptyState: /* @__PURE__ */ e("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children:
|
|
996
|
+
emptyState: /* @__PURE__ */ e("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: r(s("notesPreviewEmpty")) })
|
|
947
997
|
}
|
|
948
998
|
)
|
|
949
999
|
) : null
|
|
@@ -951,7 +1001,7 @@ function Na({
|
|
|
951
1001
|
}
|
|
952
1002
|
);
|
|
953
1003
|
}
|
|
954
|
-
const
|
|
1004
|
+
const Ra = ct("ds:flex ds:h-full ds:min-h-0 ds:flex-col"), Pa = ct(
|
|
955
1005
|
[
|
|
956
1006
|
"ds:flex ds:shrink-0 ds:flex-wrap ds:items-center ds:justify-end",
|
|
957
1007
|
"ds:gap-x-[var(--spacing-xs)] ds:gap-y-[var(--spacing-2xs)]",
|
|
@@ -960,66 +1010,66 @@ const Ta = lt("ds:flex ds:h-full ds:min-h-0 ds:flex-col"), Ca = lt(
|
|
|
960
1010
|
"ds:[&>[data-component=workflow-status]>[role=alert]]:order-1",
|
|
961
1011
|
"ds:[&>[data-component=workflow-status]>[role=alert]]:basis-full"
|
|
962
1012
|
].join(" ")
|
|
963
|
-
),
|
|
1013
|
+
), La = ct(
|
|
964
1014
|
"ds:shrink-0 ds:rounded-[var(--radius-md)] ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
965
|
-
),
|
|
1015
|
+
), U = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)]", Oa = "ds:sm:[&>button]:[min-block-size:var(--accessible-target-floor,0px)]", Fa = [
|
|
966
1016
|
"ds:sm:[&_button:has(svg.lucide-ellipsis)]:[min-block-size:var(--accessible-target-floor,0px)]",
|
|
967
1017
|
"ds:[&_button:has(svg.lucide-ellipsis)]:[min-inline-size:var(--accessible-target-floor,auto)]"
|
|
968
|
-
].join(" "),
|
|
1018
|
+
].join(" "), nn = ["40%", "33%", "50%", "25%"], _a = [
|
|
969
1019
|
"bill",
|
|
970
1020
|
"folder",
|
|
971
1021
|
"template",
|
|
972
1022
|
"empty",
|
|
973
1023
|
"identification",
|
|
974
1024
|
"webcam"
|
|
975
|
-
],
|
|
976
|
-
bill: /* @__PURE__ */ e(
|
|
977
|
-
folder: /* @__PURE__ */ e(
|
|
978
|
-
template: /* @__PURE__ */ e(
|
|
979
|
-
empty: /* @__PURE__ */ e(
|
|
980
|
-
identification: /* @__PURE__ */ e(
|
|
981
|
-
webcam: /* @__PURE__ */ e(
|
|
982
|
-
},
|
|
983
|
-
function
|
|
1025
|
+
], Ut = {
|
|
1026
|
+
bill: /* @__PURE__ */ e(da, { "aria-hidden": "true" }),
|
|
1027
|
+
folder: /* @__PURE__ */ e(jn, { "aria-hidden": "true" }),
|
|
1028
|
+
template: /* @__PURE__ */ e(la, { "aria-hidden": "true" }),
|
|
1029
|
+
empty: /* @__PURE__ */ e(ra, { "aria-hidden": "true" }),
|
|
1030
|
+
identification: /* @__PURE__ */ e(ma, { "aria-hidden": "true" }),
|
|
1031
|
+
webcam: /* @__PURE__ */ e(oa, { "aria-hidden": "true" })
|
|
1032
|
+
}, k = (t) => `calendarWorkspace.details.${t}`;
|
|
1033
|
+
function Bt({
|
|
984
1034
|
children: t,
|
|
985
1035
|
startIcon: n,
|
|
986
1036
|
overflowItems: i,
|
|
987
|
-
"data-action":
|
|
1037
|
+
"data-action": r,
|
|
988
1038
|
intent: c,
|
|
989
1039
|
background: o,
|
|
990
|
-
size:
|
|
991
|
-
hideLabel:
|
|
1040
|
+
size: p,
|
|
1041
|
+
hideLabel: f
|
|
992
1042
|
}) {
|
|
993
|
-
return /* @__PURE__ */ b(
|
|
994
|
-
/* @__PURE__ */ e(
|
|
995
|
-
|
|
1043
|
+
return /* @__PURE__ */ b(ze.Root, { children: [
|
|
1044
|
+
/* @__PURE__ */ e(yn, { label: t, side: "top", children: /* @__PURE__ */ e(ze.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1045
|
+
T,
|
|
996
1046
|
{
|
|
997
1047
|
intent: c,
|
|
998
1048
|
background: o,
|
|
999
|
-
size:
|
|
1000
|
-
"data-action":
|
|
1001
|
-
className:
|
|
1049
|
+
size: p,
|
|
1050
|
+
"data-action": r,
|
|
1051
|
+
className: U,
|
|
1002
1052
|
startIcon: n,
|
|
1003
1053
|
"aria-haspopup": "menu",
|
|
1004
|
-
endIcon: /* @__PURE__ */ e(
|
|
1005
|
-
children:
|
|
1054
|
+
endIcon: /* @__PURE__ */ e(sa, { "aria-hidden": "true" }),
|
|
1055
|
+
children: f ? /* @__PURE__ */ e("span", { className: "ds:sr-only", children: t }) : t
|
|
1006
1056
|
}
|
|
1007
1057
|
) }) }),
|
|
1008
|
-
/* @__PURE__ */ e(
|
|
1009
|
-
|
|
1058
|
+
/* @__PURE__ */ e(ze.Content, { align: "end", children: i.map((m) => /* @__PURE__ */ e(
|
|
1059
|
+
ze.Item,
|
|
1010
1060
|
{
|
|
1011
|
-
"data-action":
|
|
1012
|
-
startIcon:
|
|
1013
|
-
onSelect:
|
|
1014
|
-
children:
|
|
1061
|
+
"data-action": m.action,
|
|
1062
|
+
startIcon: m.icon,
|
|
1063
|
+
onSelect: m.onSelect,
|
|
1064
|
+
children: m.label
|
|
1015
1065
|
},
|
|
1016
|
-
|
|
1066
|
+
m.label
|
|
1017
1067
|
)) })
|
|
1018
1068
|
] });
|
|
1019
1069
|
}
|
|
1020
|
-
function
|
|
1021
|
-
const { t } =
|
|
1022
|
-
return /* @__PURE__ */ b(
|
|
1070
|
+
function Ha() {
|
|
1071
|
+
const { t } = te("ui");
|
|
1072
|
+
return /* @__PURE__ */ b(oe, { children: [
|
|
1023
1073
|
/* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: t("common.loading") }),
|
|
1024
1074
|
/* @__PURE__ */ b(
|
|
1025
1075
|
"div",
|
|
@@ -1028,7 +1078,7 @@ function La() {
|
|
|
1028
1078
|
className: "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)] ds:overflow-hidden ds:p-[var(--spacing-md)] ds:[&>*]:shrink-0",
|
|
1029
1079
|
children: [
|
|
1030
1080
|
/* @__PURE__ */ e(
|
|
1031
|
-
|
|
1081
|
+
qt,
|
|
1032
1082
|
{
|
|
1033
1083
|
name: "",
|
|
1034
1084
|
loading: !0,
|
|
@@ -1036,15 +1086,15 @@ function La() {
|
|
|
1036
1086
|
density: "compact"
|
|
1037
1087
|
}
|
|
1038
1088
|
),
|
|
1039
|
-
/* @__PURE__ */ b(me, { title: t(
|
|
1040
|
-
/* @__PURE__ */ e(
|
|
1041
|
-
/* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children:
|
|
1089
|
+
/* @__PURE__ */ b(me, { title: t(k("sectionAppointment")), headingLevel: 3, children: [
|
|
1090
|
+
/* @__PURE__ */ e(Wt, { loading: !0, maxLines: 2 }),
|
|
1091
|
+
/* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: nn.map((n, i) => /* @__PURE__ */ b(
|
|
1042
1092
|
"div",
|
|
1043
1093
|
{
|
|
1044
1094
|
className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
1045
1095
|
children: [
|
|
1046
1096
|
/* @__PURE__ */ e(
|
|
1047
|
-
|
|
1097
|
+
ke,
|
|
1048
1098
|
{
|
|
1049
1099
|
variant: "rounded",
|
|
1050
1100
|
stagger: i + 2,
|
|
@@ -1054,7 +1104,7 @@ function La() {
|
|
|
1054
1104
|
}
|
|
1055
1105
|
),
|
|
1056
1106
|
/* @__PURE__ */ e(
|
|
1057
|
-
|
|
1107
|
+
ke,
|
|
1058
1108
|
{
|
|
1059
1109
|
variant: "text",
|
|
1060
1110
|
size: "sm",
|
|
@@ -1067,8 +1117,8 @@ function La() {
|
|
|
1067
1117
|
n
|
|
1068
1118
|
)) })
|
|
1069
1119
|
] }),
|
|
1070
|
-
/* @__PURE__ */ e(me, { title: t("notesPanel.title"), headingLevel: 3, children: /* @__PURE__ */ e(
|
|
1071
|
-
/* @__PURE__ */ e(me, { title: t(
|
|
1120
|
+
/* @__PURE__ */ e(me, { title: t("notesPanel.title"), headingLevel: 3, children: /* @__PURE__ */ e(rt, { notes: [], loading: !0, loadingRows: 2 }) }),
|
|
1121
|
+
/* @__PURE__ */ e(me, { title: t(k("sectionTreatments")), headingLevel: 3, children: /* @__PURE__ */ e(zt, { lines: [], loading: !0 }) })
|
|
1072
1122
|
]
|
|
1073
1123
|
}
|
|
1074
1124
|
),
|
|
@@ -1078,9 +1128,9 @@ function La() {
|
|
|
1078
1128
|
"aria-hidden": "true",
|
|
1079
1129
|
className: "ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-sm)] ds:border-t ds:border-[color:var(--border)] ds:p-[var(--spacing-md)]",
|
|
1080
1130
|
children: [
|
|
1081
|
-
/* @__PURE__ */ e(
|
|
1131
|
+
/* @__PURE__ */ e(ke, { variant: "rounded", width: "33%", height: "var(--spacing-xl)" }),
|
|
1082
1132
|
/* @__PURE__ */ e(
|
|
1083
|
-
|
|
1133
|
+
ke,
|
|
1084
1134
|
{
|
|
1085
1135
|
variant: "rounded",
|
|
1086
1136
|
stagger: 1,
|
|
@@ -1093,23 +1143,23 @@ function La() {
|
|
|
1093
1143
|
)
|
|
1094
1144
|
] });
|
|
1095
1145
|
}
|
|
1096
|
-
function
|
|
1146
|
+
function Ma({
|
|
1097
1147
|
history: t,
|
|
1098
1148
|
locale: n,
|
|
1099
1149
|
onRetry: i,
|
|
1100
|
-
noteUnrecordedEdits:
|
|
1150
|
+
noteUnrecordedEdits: r,
|
|
1101
1151
|
privacy: c
|
|
1102
1152
|
}) {
|
|
1103
1153
|
var v;
|
|
1104
|
-
const { t: o } =
|
|
1105
|
-
|
|
1106
|
-
let
|
|
1107
|
-
|
|
1154
|
+
const { t: o } = te("ui"), p = t.status ?? (t.entries ? "ready" : "loading"), f = p === "error" ? void 0 : t.entries, m = p === "loading" || p !== "error" && !f, [a, l] = H(!1);
|
|
1155
|
+
we(() => l(!0), []);
|
|
1156
|
+
let d = "";
|
|
1157
|
+
m ? d = o("common.loading") : f && (d = f.length === 0 ? o(k("historyEmpty")) : o(k("historyLoaded"), { n: f.length }));
|
|
1108
1158
|
let A;
|
|
1109
|
-
return
|
|
1110
|
-
/* @__PURE__ */ e(
|
|
1159
|
+
return p === "error" ? A = /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1160
|
+
/* @__PURE__ */ e(ee, { variant: "error", children: /* @__PURE__ */ e(ee.Description, { children: ((v = t.message) == null ? void 0 : v.trim()) || o("emptyState.error.description") }) }),
|
|
1111
1161
|
i ? /* @__PURE__ */ e(
|
|
1112
|
-
|
|
1162
|
+
T,
|
|
1113
1163
|
{
|
|
1114
1164
|
intent: "outline",
|
|
1115
1165
|
"data-action": "retry-history",
|
|
@@ -1117,415 +1167,433 @@ function Oa({
|
|
|
1117
1167
|
children: o("emptyState.error.cta")
|
|
1118
1168
|
}
|
|
1119
1169
|
) : null
|
|
1120
|
-
] }) :
|
|
1170
|
+
] }) : m || !f ? A = /* @__PURE__ */ e(
|
|
1121
1171
|
"div",
|
|
1122
1172
|
{
|
|
1123
1173
|
"aria-hidden": "true",
|
|
1124
1174
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
1125
|
-
children:
|
|
1175
|
+
children: nn.slice(0, 3).map((y, g) => /* @__PURE__ */ b(
|
|
1126
1176
|
"div",
|
|
1127
1177
|
{
|
|
1128
1178
|
className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
|
|
1129
1179
|
children: [
|
|
1130
1180
|
/* @__PURE__ */ e(
|
|
1131
|
-
|
|
1181
|
+
ke,
|
|
1132
1182
|
{
|
|
1133
1183
|
variant: "circular",
|
|
1134
|
-
stagger:
|
|
1184
|
+
stagger: g,
|
|
1135
1185
|
width: "var(--spacing-xl)",
|
|
1136
1186
|
height: "var(--spacing-xl)",
|
|
1137
1187
|
className: "ds:shrink-0"
|
|
1138
1188
|
}
|
|
1139
1189
|
),
|
|
1140
1190
|
/* @__PURE__ */ e(
|
|
1141
|
-
|
|
1191
|
+
ke,
|
|
1142
1192
|
{
|
|
1143
1193
|
variant: "rounded",
|
|
1144
|
-
stagger:
|
|
1145
|
-
width:
|
|
1194
|
+
stagger: g,
|
|
1195
|
+
width: y,
|
|
1146
1196
|
height: "var(--spacing-2xl)"
|
|
1147
1197
|
}
|
|
1148
1198
|
)
|
|
1149
1199
|
]
|
|
1150
1200
|
},
|
|
1151
|
-
|
|
1201
|
+
y
|
|
1152
1202
|
))
|
|
1153
1203
|
}
|
|
1154
1204
|
) : A = /* @__PURE__ */ e(
|
|
1155
|
-
|
|
1205
|
+
Nn,
|
|
1156
1206
|
{
|
|
1157
|
-
history:
|
|
1207
|
+
history: f,
|
|
1158
1208
|
locale: n,
|
|
1159
|
-
noteUnrecordedEdits:
|
|
1209
|
+
noteUnrecordedEdits: r,
|
|
1160
1210
|
privacy: c
|
|
1161
1211
|
}
|
|
1162
|
-
), /* @__PURE__ */ b(
|
|
1163
|
-
/* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: a ?
|
|
1212
|
+
), /* @__PURE__ */ b(oe, { children: [
|
|
1213
|
+
/* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: a ? d : "" }),
|
|
1164
1214
|
A
|
|
1165
1215
|
] });
|
|
1166
1216
|
}
|
|
1167
|
-
function
|
|
1217
|
+
function Ua({
|
|
1168
1218
|
read: t,
|
|
1169
1219
|
refreshing: n,
|
|
1170
1220
|
currency: i,
|
|
1171
|
-
now:
|
|
1221
|
+
now: r,
|
|
1172
1222
|
locale: c,
|
|
1173
1223
|
shownTitle: o,
|
|
1174
|
-
headingId:
|
|
1175
|
-
enter:
|
|
1176
|
-
live:
|
|
1224
|
+
headingId: p,
|
|
1225
|
+
enter: f,
|
|
1226
|
+
live: m,
|
|
1177
1227
|
statusControl: a,
|
|
1178
|
-
patientId:
|
|
1179
|
-
operator:
|
|
1228
|
+
patientId: l = ((Me) => (Me = t.patient) == null ? void 0 : Me.id)(),
|
|
1229
|
+
operator: d,
|
|
1180
1230
|
chair: A,
|
|
1181
1231
|
privacy: v = !1,
|
|
1182
|
-
privacyTitle:
|
|
1183
|
-
mapsLink:
|
|
1184
|
-
notesPreview:
|
|
1232
|
+
privacyTitle: y,
|
|
1233
|
+
mapsLink: g,
|
|
1234
|
+
notesPreview: x,
|
|
1185
1235
|
onOpenNotes: L,
|
|
1186
1236
|
history: P,
|
|
1187
|
-
onOpenHistory:
|
|
1237
|
+
onOpenHistory: C,
|
|
1188
1238
|
noteUnrecordedEdits: M = !1,
|
|
1189
|
-
readOnly:
|
|
1190
|
-
onStatusChange:
|
|
1191
|
-
allowedStatuses:
|
|
1239
|
+
readOnly: D = !1,
|
|
1240
|
+
onStatusChange: _,
|
|
1241
|
+
allowedStatuses: E = Ct,
|
|
1192
1242
|
onDescriptionChange: q,
|
|
1193
1243
|
descriptionMaxLength: z,
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1244
|
+
descriptionMeasureLength: re = ha,
|
|
1245
|
+
onAssignPatient: K,
|
|
1246
|
+
onEdit: j,
|
|
1247
|
+
onMove: Y,
|
|
1248
|
+
onCopy: B,
|
|
1249
|
+
onDelete: ne,
|
|
1250
|
+
onJoinTelehealth: ae,
|
|
1251
|
+
onWhatsApp: N,
|
|
1252
|
+
whatsappUrl: G,
|
|
1253
|
+
onBuyWhatsApp: V,
|
|
1254
|
+
createTaskUrl: Ae,
|
|
1255
|
+
onRequestSignature: Ne,
|
|
1256
|
+
onSignOnDevice: xe,
|
|
1257
|
+
onOpenPatient: He,
|
|
1258
|
+
shortcuts: he,
|
|
1259
|
+
documents: X
|
|
1209
1260
|
}) {
|
|
1210
|
-
var
|
|
1211
|
-
const { t:
|
|
1212
|
-
le || !
|
|
1213
|
-
},
|
|
1261
|
+
var kt, wt;
|
|
1262
|
+
const { t: h } = te("ui"), { eventId: I } = t, [Xe] = H(f), fe = { details: t, locale: c, currency: i }, w = P ? P.eventId !== void 0 && P.eventId !== I ? { status: "loading" } : P : t.history ? { entries: t.history } : void 0, Ue = (x == null ? void 0 : x.patientId) === void 0 || x.patientId === l, ge = x ? Ue ? x : l ? { notes: [], status: "loading", total: null } : void 0 : void 0, J = !!q && !D && !v, [Ce, ie] = H(!1), [Te, Q] = H(!1), le = Ce && w !== void 0, Be = Te && J, Ee = () => {
|
|
1263
|
+
le || !w || (ie(!0), C == null || C(I));
|
|
1264
|
+
}, We = R({ history: !1, editor: !1 });
|
|
1214
1265
|
pe(() => {
|
|
1215
|
-
const
|
|
1216
|
-
|
|
1217
|
-
const
|
|
1218
|
-
|
|
1266
|
+
const u = We.current;
|
|
1267
|
+
We.current = { history: le, editor: Be };
|
|
1268
|
+
const Z = u.history && w === void 0, St = u.editor && !J;
|
|
1269
|
+
Z && ie(!1), St && Q(!1), (Z || St) && _e(p);
|
|
1219
1270
|
});
|
|
1220
|
-
const
|
|
1271
|
+
const ve = R(null), O = R(!1), Ie = (w == null ? void 0 : w.status) ?? (w != null && w.entries ? "ready" : "loading");
|
|
1221
1272
|
pe(() => {
|
|
1222
|
-
O.current && (Ie !== "loading" && (O.current = !1),
|
|
1273
|
+
O.current && (Ie !== "loading" && (O.current = !1), lt(ve.current));
|
|
1223
1274
|
}, [Ie]);
|
|
1224
1275
|
const [$, De] = H(t.appointment.name ?? "");
|
|
1225
|
-
|
|
1276
|
+
we(() => {
|
|
1226
1277
|
De(t.appointment.name ?? "");
|
|
1227
1278
|
}, [t.appointment.name]);
|
|
1228
|
-
const [
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
}, [
|
|
1232
|
-
const
|
|
1279
|
+
const [ye, de] = H(""), [be, Re] = H(!1), [S, W] = H(), [Pe, ce] = H(!1), Le = un(), ut = R(null), pt = z !== void 0 && re(ye) > z;
|
|
1280
|
+
we(() => {
|
|
1281
|
+
Te && (de($), W(void 0), ce(!1));
|
|
1282
|
+
}, [Te]);
|
|
1283
|
+
const an = async () => {
|
|
1233
1284
|
if (!q) return;
|
|
1234
|
-
const
|
|
1235
|
-
Re(!0),
|
|
1285
|
+
const u = ye.trim();
|
|
1286
|
+
Re(!0), W(void 0), ce(!1);
|
|
1236
1287
|
try {
|
|
1237
|
-
await q(
|
|
1238
|
-
} catch (
|
|
1239
|
-
|
|
1240
|
-
|
|
1288
|
+
await q(u, I), De(u), Q(!1);
|
|
1289
|
+
} catch (Z) {
|
|
1290
|
+
Nt(Z) ? ce(!0) : W(
|
|
1291
|
+
ot(Z, h(k("descriptionSaveFailed")))
|
|
1241
1292
|
);
|
|
1242
1293
|
} finally {
|
|
1243
1294
|
Re(!1);
|
|
1244
1295
|
}
|
|
1245
|
-
}, [
|
|
1246
|
-
|
|
1247
|
-
|
|
1296
|
+
}, [se, Je] = H(t.appointment.status);
|
|
1297
|
+
we(() => {
|
|
1298
|
+
Je(t.appointment.status);
|
|
1248
1299
|
}, [t.appointment.status]);
|
|
1249
|
-
const
|
|
1300
|
+
const mt = R(n);
|
|
1250
1301
|
pe(() => {
|
|
1251
|
-
const
|
|
1252
|
-
|
|
1302
|
+
const u = mt.current && !n;
|
|
1303
|
+
mt.current = n, u && (Je(t.appointment.status), De(t.appointment.name ?? ""));
|
|
1253
1304
|
}, [n]);
|
|
1254
|
-
const
|
|
1255
|
-
(
|
|
1256
|
-
), Oe =
|
|
1257
|
-
statuses:
|
|
1305
|
+
const $e = Ct.filter(
|
|
1306
|
+
(u) => E.includes(u)
|
|
1307
|
+
), Oe = wn(se, {
|
|
1308
|
+
statuses: $e,
|
|
1258
1309
|
/* Shown so the control can say it, but not a choice. */
|
|
1259
|
-
disabledStatuses:
|
|
1260
|
-
}), Fe = !!
|
|
1261
|
-
if (!(!
|
|
1310
|
+
disabledStatuses: se && !$e.includes(se) ? [se] : []
|
|
1311
|
+
}), Fe = !!_ && !D && $e.some((u) => u !== se), sn = async (u) => {
|
|
1312
|
+
if (!(!_ || !Sn(u))) {
|
|
1262
1313
|
try {
|
|
1263
|
-
await
|
|
1264
|
-
} catch (
|
|
1265
|
-
throw
|
|
1314
|
+
await _(u, I);
|
|
1315
|
+
} catch (Z) {
|
|
1316
|
+
throw Nt(Z) ? new pn(Le, { cause: Z }) : new Error(ot(Z, h(k("statusSaveFailed"))));
|
|
1266
1317
|
}
|
|
1267
|
-
|
|
1318
|
+
Je(u);
|
|
1268
1319
|
}
|
|
1269
|
-
},
|
|
1270
|
-
(
|
|
1271
|
-
),
|
|
1320
|
+
}, ht = v ? void 0 : G, qe = _a.filter(
|
|
1321
|
+
(u) => X == null ? void 0 : X.kinds.includes(u)
|
|
1322
|
+
), on = (((kt = t.care) == null ? void 0 : kt.lines.length) ?? 0) > 0, Qe = l !== void 0 && l !== "", Ze = h(k("status")), ft = `${Ze}: ${Oe.option.label}`, et = R(null), gt = R(Fe);
|
|
1272
1323
|
pe(() => {
|
|
1273
|
-
const
|
|
1274
|
-
|
|
1324
|
+
const u = gt.current && !Fe;
|
|
1325
|
+
gt.current = Fe, u && (et.current ? lt(et.current) : _e(p));
|
|
1275
1326
|
});
|
|
1276
|
-
const
|
|
1277
|
-
|
|
1327
|
+
const vt = Fe ? /* @__PURE__ */ e(
|
|
1328
|
+
bn,
|
|
1278
1329
|
{
|
|
1279
1330
|
ref: a,
|
|
1280
1331
|
value: Oe.value,
|
|
1281
1332
|
options: Oe.options,
|
|
1282
1333
|
size: "sm",
|
|
1283
|
-
workflowLabel:
|
|
1284
|
-
className: `ds:[&>button]:bg-[color:var(--background)] ${
|
|
1285
|
-
"aria-label":
|
|
1286
|
-
onValueChange:
|
|
1334
|
+
workflowLabel: Ze,
|
|
1335
|
+
className: `ds:[&>button]:bg-[color:var(--background)] ${Oa}`,
|
|
1336
|
+
"aria-label": ft,
|
|
1337
|
+
onValueChange: sn
|
|
1287
1338
|
}
|
|
1288
|
-
) :
|
|
1339
|
+
) : se ? (
|
|
1289
1340
|
/* Named as the control is, "Status: Confirmed": the small display
|
|
1290
1341
|
prints the value alone. */
|
|
1291
1342
|
/* @__PURE__ */ e(
|
|
1292
1343
|
"div",
|
|
1293
1344
|
{
|
|
1294
|
-
ref:
|
|
1345
|
+
ref: et,
|
|
1295
1346
|
role: "group",
|
|
1296
|
-
"aria-label":
|
|
1347
|
+
"aria-label": ft,
|
|
1297
1348
|
tabIndex: -1,
|
|
1298
1349
|
"data-status-display": "",
|
|
1299
|
-
className:
|
|
1350
|
+
className: La(),
|
|
1300
1351
|
children: /* @__PURE__ */ e(
|
|
1301
|
-
|
|
1352
|
+
kn,
|
|
1302
1353
|
{
|
|
1303
1354
|
value: Oe.value,
|
|
1304
1355
|
size: "sm",
|
|
1305
|
-
workflowLabel:
|
|
1356
|
+
workflowLabel: Ze,
|
|
1306
1357
|
option: Oe.option
|
|
1307
1358
|
}
|
|
1308
1359
|
)
|
|
1309
1360
|
}
|
|
1310
1361
|
)
|
|
1311
|
-
) : null,
|
|
1312
|
-
!
|
|
1362
|
+
) : null, F = [];
|
|
1363
|
+
if (!D && K && !Qe && F.push([
|
|
1313
1364
|
"assign-patient",
|
|
1314
1365
|
/* @__PURE__ */ e(
|
|
1315
|
-
|
|
1366
|
+
T,
|
|
1316
1367
|
{
|
|
1317
1368
|
intent: "primary",
|
|
1318
1369
|
"data-action": "assign-patient",
|
|
1319
|
-
className:
|
|
1320
|
-
startIcon: /* @__PURE__ */ e(
|
|
1321
|
-
onClick: () =>
|
|
1322
|
-
children:
|
|
1370
|
+
className: U,
|
|
1371
|
+
startIcon: /* @__PURE__ */ e(ea, { "aria-hidden": "true" }),
|
|
1372
|
+
onClick: () => K(I),
|
|
1373
|
+
children: h("calendarWorkspace.inc1.bookings.assignPatient")
|
|
1323
1374
|
},
|
|
1324
1375
|
"assign"
|
|
1325
1376
|
)
|
|
1326
|
-
]),
|
|
1377
|
+
]), ae && F.push([
|
|
1327
1378
|
"join-telehealth",
|
|
1328
1379
|
/* @__PURE__ */ e(
|
|
1329
|
-
|
|
1380
|
+
T,
|
|
1330
1381
|
{
|
|
1331
1382
|
intent: "primary",
|
|
1332
1383
|
"data-action": "join-telehealth",
|
|
1333
|
-
className:
|
|
1334
|
-
startIcon: /* @__PURE__ */ e(
|
|
1335
|
-
onClick: () =>
|
|
1336
|
-
children:
|
|
1384
|
+
className: U,
|
|
1385
|
+
startIcon: /* @__PURE__ */ e(Xt, { "aria-hidden": "true" }),
|
|
1386
|
+
onClick: () => ae(I),
|
|
1387
|
+
children: h(k("joinTelehealth"))
|
|
1337
1388
|
},
|
|
1338
1389
|
"join"
|
|
1339
1390
|
)
|
|
1340
|
-
]), !
|
|
1391
|
+
]), !D && j && F.push([
|
|
1341
1392
|
"edit-appointment",
|
|
1342
1393
|
/* @__PURE__ */ e(
|
|
1343
|
-
|
|
1394
|
+
T,
|
|
1344
1395
|
{
|
|
1345
1396
|
"data-action": "edit-appointment",
|
|
1346
|
-
className:
|
|
1347
|
-
startIcon: /* @__PURE__ */ e(
|
|
1348
|
-
onClick: () =>
|
|
1349
|
-
children:
|
|
1397
|
+
className: U,
|
|
1398
|
+
startIcon: /* @__PURE__ */ e(Ot, { "aria-hidden": "true" }),
|
|
1399
|
+
onClick: () => j(I),
|
|
1400
|
+
children: h("calendarWorkspace.editor.editTitle")
|
|
1350
1401
|
},
|
|
1351
1402
|
"edit"
|
|
1352
1403
|
)
|
|
1353
|
-
]), !
|
|
1404
|
+
]), !D && Y && F.push([
|
|
1354
1405
|
"move-appointment",
|
|
1355
1406
|
/* @__PURE__ */ e(
|
|
1356
|
-
|
|
1407
|
+
T,
|
|
1357
1408
|
{
|
|
1358
1409
|
"data-action": "move-appointment",
|
|
1359
|
-
className:
|
|
1360
|
-
startIcon: /* @__PURE__ */ e(
|
|
1361
|
-
onClick: () =>
|
|
1362
|
-
children:
|
|
1410
|
+
className: U,
|
|
1411
|
+
startIcon: /* @__PURE__ */ e(An, { "aria-hidden": "true" }),
|
|
1412
|
+
onClick: () => Y(I),
|
|
1413
|
+
children: h(k("move"))
|
|
1363
1414
|
},
|
|
1364
1415
|
"move"
|
|
1365
1416
|
)
|
|
1366
|
-
]), !
|
|
1417
|
+
]), !D && B && F.push([
|
|
1367
1418
|
"copy-appointment",
|
|
1368
|
-
|
|
1369
|
-
|
|
1419
|
+
on ? /* @__PURE__ */ e(
|
|
1420
|
+
Bt,
|
|
1370
1421
|
{
|
|
1371
1422
|
"data-action": "copy-appointment",
|
|
1372
1423
|
"data-overflow-tip": !1,
|
|
1373
1424
|
startIcon: /* @__PURE__ */ e(Tt, { "aria-hidden": "true" }),
|
|
1374
1425
|
overflowItems: [
|
|
1375
1426
|
{
|
|
1376
|
-
label:
|
|
1377
|
-
icon: /* @__PURE__ */ e(
|
|
1427
|
+
label: h("calendarWorkspace.editor.duplicateAppointmentOnly"),
|
|
1428
|
+
icon: /* @__PURE__ */ e(ta, { "aria-hidden": "true" }),
|
|
1378
1429
|
action: "copy-appointment-only",
|
|
1379
|
-
onSelect: () =>
|
|
1430
|
+
onSelect: () => B(!1, I)
|
|
1380
1431
|
},
|
|
1381
1432
|
{
|
|
1382
|
-
label:
|
|
1383
|
-
icon: /* @__PURE__ */ e(
|
|
1433
|
+
label: h("calendarWorkspace.editor.duplicateWithTreatments"),
|
|
1434
|
+
icon: /* @__PURE__ */ e(Jt, { "aria-hidden": "true" }),
|
|
1384
1435
|
action: "copy-appointment-with-treatments",
|
|
1385
|
-
onSelect: () =>
|
|
1436
|
+
onSelect: () => B(!0, I)
|
|
1386
1437
|
}
|
|
1387
1438
|
],
|
|
1388
|
-
children:
|
|
1439
|
+
children: h(k("copy"))
|
|
1389
1440
|
},
|
|
1390
1441
|
"copy"
|
|
1391
1442
|
) : /* @__PURE__ */ e(
|
|
1392
|
-
|
|
1443
|
+
T,
|
|
1393
1444
|
{
|
|
1394
1445
|
"data-action": "copy-appointment",
|
|
1395
|
-
className:
|
|
1446
|
+
className: U,
|
|
1396
1447
|
startIcon: /* @__PURE__ */ e(Tt, { "aria-hidden": "true" }),
|
|
1397
|
-
onClick: () =>
|
|
1398
|
-
children:
|
|
1448
|
+
onClick: () => B(!1, I),
|
|
1449
|
+
children: h(k("copy"))
|
|
1399
1450
|
},
|
|
1400
1451
|
"copy"
|
|
1401
1452
|
)
|
|
1402
|
-
]),
|
|
1453
|
+
]), X && qe.length === 1) {
|
|
1454
|
+
const [u] = qe;
|
|
1455
|
+
F.push([
|
|
1456
|
+
`create-document-${u}`,
|
|
1457
|
+
/* @__PURE__ */ e(
|
|
1458
|
+
T,
|
|
1459
|
+
{
|
|
1460
|
+
"data-action": `create-document-${u}`,
|
|
1461
|
+
className: U,
|
|
1462
|
+
startIcon: Ut[u],
|
|
1463
|
+
onClick: () => X.onCreate(u, I),
|
|
1464
|
+
children: h(k(`documents.${u}`))
|
|
1465
|
+
},
|
|
1466
|
+
"documents"
|
|
1467
|
+
)
|
|
1468
|
+
]);
|
|
1469
|
+
} else X && qe.length > 1 && F.push([
|
|
1403
1470
|
"open-create-document",
|
|
1404
1471
|
/* @__PURE__ */ e(
|
|
1405
|
-
|
|
1472
|
+
Bt,
|
|
1406
1473
|
{
|
|
1407
1474
|
"data-action": "open-create-document",
|
|
1408
1475
|
"data-overflow-tip": !1,
|
|
1409
|
-
startIcon: /* @__PURE__ */ e(
|
|
1410
|
-
overflowItems:
|
|
1411
|
-
label:
|
|
1412
|
-
icon:
|
|
1413
|
-
action: `create-document-${
|
|
1414
|
-
onSelect: () =>
|
|
1476
|
+
startIcon: /* @__PURE__ */ e(na, { "aria-hidden": "true" }),
|
|
1477
|
+
overflowItems: qe.map((u) => ({
|
|
1478
|
+
label: h(k(`documents.${u}`)),
|
|
1479
|
+
icon: Ut[u],
|
|
1480
|
+
action: `create-document-${u}`,
|
|
1481
|
+
onSelect: () => X.onCreate(u, I)
|
|
1415
1482
|
})),
|
|
1416
|
-
children:
|
|
1483
|
+
children: h(k("documents.label"))
|
|
1417
1484
|
},
|
|
1418
1485
|
"documents"
|
|
1419
1486
|
)
|
|
1420
|
-
])
|
|
1487
|
+
]);
|
|
1488
|
+
N ? F.push([
|
|
1421
1489
|
"open-whatsapp",
|
|
1422
1490
|
/* @__PURE__ */ e(
|
|
1423
|
-
|
|
1491
|
+
T,
|
|
1424
1492
|
{
|
|
1425
1493
|
"data-action": "open-whatsapp",
|
|
1426
|
-
className:
|
|
1427
|
-
startIcon: /* @__PURE__ */ e(
|
|
1428
|
-
onClick: () =>
|
|
1429
|
-
children:
|
|
1494
|
+
className: U,
|
|
1495
|
+
startIcon: /* @__PURE__ */ e(it, { "aria-hidden": "true" }),
|
|
1496
|
+
onClick: () => N(I),
|
|
1497
|
+
children: h(k("remindWhatsApp"))
|
|
1430
1498
|
},
|
|
1431
1499
|
"whatsapp"
|
|
1432
1500
|
)
|
|
1433
|
-
]) :
|
|
1501
|
+
]) : Ye(ht) ? F.push([
|
|
1434
1502
|
"open-whatsapp",
|
|
1435
1503
|
/* @__PURE__ */ e(
|
|
1436
|
-
|
|
1504
|
+
T,
|
|
1437
1505
|
{
|
|
1438
1506
|
asChild: !0,
|
|
1439
1507
|
"data-action": "open-whatsapp",
|
|
1440
|
-
className:
|
|
1441
|
-
startIcon: /* @__PURE__ */ e(
|
|
1508
|
+
className: U,
|
|
1509
|
+
startIcon: /* @__PURE__ */ e(it, { "aria-hidden": "true" }),
|
|
1442
1510
|
children: /* @__PURE__ */ e(
|
|
1443
1511
|
"a",
|
|
1444
1512
|
{
|
|
1445
|
-
href:
|
|
1513
|
+
href: Ye(ht),
|
|
1446
1514
|
target: "_blank",
|
|
1447
1515
|
rel: "noopener noreferrer",
|
|
1448
|
-
children:
|
|
1516
|
+
children: h(k("remindWhatsApp"))
|
|
1449
1517
|
}
|
|
1450
1518
|
)
|
|
1451
1519
|
},
|
|
1452
1520
|
"whatsapp"
|
|
1453
1521
|
)
|
|
1454
|
-
]) :
|
|
1522
|
+
]) : V && !G && F.push([
|
|
1455
1523
|
"buy-whatsapp",
|
|
1456
1524
|
/* @__PURE__ */ e(
|
|
1457
|
-
|
|
1525
|
+
T,
|
|
1458
1526
|
{
|
|
1459
1527
|
"data-action": "buy-whatsapp",
|
|
1460
|
-
className:
|
|
1461
|
-
startIcon: /* @__PURE__ */ e(
|
|
1462
|
-
onClick: () =>
|
|
1463
|
-
children:
|
|
1528
|
+
className: U,
|
|
1529
|
+
startIcon: /* @__PURE__ */ e(it, { "aria-hidden": "true" }),
|
|
1530
|
+
onClick: () => V(I),
|
|
1531
|
+
children: h(k("buyWhatsApp"))
|
|
1464
1532
|
},
|
|
1465
1533
|
"buy-whatsapp"
|
|
1466
1534
|
)
|
|
1467
1535
|
]);
|
|
1468
|
-
const
|
|
1469
|
-
|
|
1536
|
+
const yt = Ye(Ae);
|
|
1537
|
+
yt && F.push([
|
|
1470
1538
|
"create-task",
|
|
1471
1539
|
/* @__PURE__ */ e(
|
|
1472
|
-
|
|
1540
|
+
T,
|
|
1473
1541
|
{
|
|
1474
1542
|
asChild: !0,
|
|
1475
1543
|
"data-action": "create-task",
|
|
1476
|
-
className:
|
|
1477
|
-
startIcon: /* @__PURE__ */ e(
|
|
1478
|
-
children: /* @__PURE__ */ e("a", { href:
|
|
1544
|
+
className: U,
|
|
1545
|
+
startIcon: /* @__PURE__ */ e(aa, { "aria-hidden": "true" }),
|
|
1546
|
+
children: /* @__PURE__ */ e("a", { href: yt, children: h(k("createTask")) })
|
|
1479
1547
|
},
|
|
1480
1548
|
"task"
|
|
1481
1549
|
)
|
|
1482
|
-
]), !
|
|
1550
|
+
]), !D && ne && F.push([
|
|
1483
1551
|
"delete-appointment",
|
|
1484
1552
|
/* @__PURE__ */ e(
|
|
1485
|
-
|
|
1553
|
+
T,
|
|
1486
1554
|
{
|
|
1487
1555
|
intent: "destructiveOutline",
|
|
1488
1556
|
"data-action": "delete-appointment",
|
|
1489
|
-
className:
|
|
1490
|
-
startIcon: /* @__PURE__ */ e(
|
|
1491
|
-
onClick: () =>
|
|
1492
|
-
children:
|
|
1557
|
+
className: U,
|
|
1558
|
+
startIcon: /* @__PURE__ */ e(ia, { "aria-hidden": "true" }),
|
|
1559
|
+
onClick: () => ne(I),
|
|
1560
|
+
children: h("calendarWorkspace.editor.delete")
|
|
1493
1561
|
},
|
|
1494
1562
|
"delete"
|
|
1495
1563
|
)
|
|
1496
1564
|
]);
|
|
1497
|
-
const
|
|
1498
|
-
|
|
1499
|
-
status:
|
|
1500
|
-
allowed: Fe ?
|
|
1501
|
-
offered:
|
|
1502
|
-
historyAvailable:
|
|
1565
|
+
const tt = F.map(([, u]) => u);
|
|
1566
|
+
m.current = {
|
|
1567
|
+
status: se ?? null,
|
|
1568
|
+
allowed: Fe ? $e : [],
|
|
1569
|
+
offered: F.map(([u]) => u),
|
|
1570
|
+
historyAvailable: w !== void 0,
|
|
1503
1571
|
historyOpen: le,
|
|
1504
1572
|
openHistory: Ee,
|
|
1505
|
-
closeHistory: () =>
|
|
1573
|
+
closeHistory: () => ie(!1)
|
|
1506
1574
|
};
|
|
1507
|
-
const
|
|
1575
|
+
const bt = h(k("historyBack"));
|
|
1508
1576
|
return /* @__PURE__ */ e(
|
|
1509
1577
|
"div",
|
|
1510
1578
|
{
|
|
1511
|
-
className: `ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ${
|
|
1512
|
-
children: /* @__PURE__ */ b(
|
|
1579
|
+
className: `ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ${Xe ? fn : ""}`,
|
|
1580
|
+
children: /* @__PURE__ */ b(at.Host, { children: [
|
|
1513
1581
|
/* @__PURE__ */ e(
|
|
1514
|
-
|
|
1582
|
+
$t,
|
|
1515
1583
|
{
|
|
1516
1584
|
title: o,
|
|
1517
|
-
headingId:
|
|
1518
|
-
icon: /* @__PURE__ */ e(
|
|
1585
|
+
headingId: p,
|
|
1586
|
+
icon: /* @__PURE__ */ e(Qt, { "aria-hidden": "true" }),
|
|
1519
1587
|
sticky: !0,
|
|
1520
1588
|
divider: !0,
|
|
1521
|
-
actions:
|
|
1522
|
-
|
|
1589
|
+
actions: w ? /* @__PURE__ */ e(
|
|
1590
|
+
Ve,
|
|
1523
1591
|
{
|
|
1524
1592
|
size: "sm",
|
|
1525
1593
|
intent: "ghost",
|
|
1526
|
-
icon: /* @__PURE__ */ e(
|
|
1527
|
-
"aria-label":
|
|
1528
|
-
tooltip:
|
|
1594
|
+
icon: /* @__PURE__ */ e(Ft, { "aria-hidden": "true" }),
|
|
1595
|
+
"aria-label": h(k("historyAction")),
|
|
1596
|
+
tooltip: h(k("historyAction")),
|
|
1529
1597
|
"data-action": "open-history",
|
|
1530
1598
|
onClick: Ee
|
|
1531
1599
|
}
|
|
@@ -1539,212 +1607,210 @@ function Fa({
|
|
|
1539
1607
|
"aria-busy": n || void 0,
|
|
1540
1608
|
className: "ds:[min-block-size:0] ds:flex-1 ds:overflow-y-auto",
|
|
1541
1609
|
children: /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
|
|
1542
|
-
v ? /* @__PURE__ */ e(
|
|
1543
|
-
|
|
1610
|
+
v ? /* @__PURE__ */ e(mn, { mask: y }) : t.patient ? /* @__PURE__ */ e(
|
|
1611
|
+
Ta,
|
|
1544
1612
|
{
|
|
1545
|
-
...
|
|
1546
|
-
now:
|
|
1547
|
-
mapsLink:
|
|
1548
|
-
shortcuts:
|
|
1549
|
-
onRequestSignature:
|
|
1550
|
-
onSignOnDevice:
|
|
1551
|
-
onOpenPatient:
|
|
1613
|
+
...fe,
|
|
1614
|
+
now: r,
|
|
1615
|
+
mapsLink: g,
|
|
1616
|
+
shortcuts: he,
|
|
1617
|
+
onRequestSignature: Ne,
|
|
1618
|
+
onSignOnDevice: xe,
|
|
1619
|
+
onOpenPatient: He
|
|
1552
1620
|
}
|
|
1553
1621
|
) : (
|
|
1554
1622
|
/* No patient card to carry the identity: a patient-less, an
|
|
1555
1623
|
unassigned or an unresolved booking keeps the strip. */
|
|
1556
1624
|
/* @__PURE__ */ e(
|
|
1557
|
-
|
|
1625
|
+
Ln,
|
|
1558
1626
|
{
|
|
1559
|
-
name: t.appointment.title.trim() ? t.appointment.title :
|
|
1560
|
-
unresolved:
|
|
1561
|
-
status:
|
|
1627
|
+
name: t.appointment.title.trim() ? t.appointment.title : h(k("patientNotLoaded")),
|
|
1628
|
+
unresolved: Qe,
|
|
1629
|
+
status: se,
|
|
1562
1630
|
flags: {
|
|
1563
1631
|
isTelehealth: t.appointment.isTelehealth,
|
|
1564
1632
|
isBookedOnline: t.appointment.bookedOnline,
|
|
1565
1633
|
isRecurring: t.appointment.recurrence !== void 0,
|
|
1566
|
-
hasUnassignedPatient: t.appointment.bookedOnline && !
|
|
1634
|
+
hasUnassignedPatient: t.appointment.bookedOnline && !Qe,
|
|
1567
1635
|
hasHighlightedAnamnesis: !1,
|
|
1568
|
-
hasBillableAmount: (((
|
|
1636
|
+
hasBillableAmount: (((wt = t.money) == null ? void 0 : wt.billableAmount) ?? 0) > 0
|
|
1569
1637
|
},
|
|
1570
1638
|
locale: c
|
|
1571
1639
|
}
|
|
1572
1640
|
)
|
|
1573
1641
|
),
|
|
1574
1642
|
/* @__PURE__ */ e(
|
|
1575
|
-
|
|
1643
|
+
Ea,
|
|
1576
1644
|
{
|
|
1577
|
-
...
|
|
1578
|
-
operator:
|
|
1645
|
+
...fe,
|
|
1646
|
+
operator: d,
|
|
1579
1647
|
chair: A,
|
|
1580
1648
|
privacy: v,
|
|
1581
|
-
history: (
|
|
1582
|
-
headerAction:
|
|
1583
|
-
|
|
1649
|
+
history: (w == null ? void 0 : w.status) === "error" || w == null ? void 0 : w.entries,
|
|
1650
|
+
headerAction: J ? /* @__PURE__ */ e(
|
|
1651
|
+
Ve,
|
|
1584
1652
|
{
|
|
1585
|
-
icon: /* @__PURE__ */ e(
|
|
1653
|
+
icon: /* @__PURE__ */ e(Vt, { "aria-hidden": "true" }),
|
|
1586
1654
|
intent: "outline",
|
|
1587
1655
|
size: "sm",
|
|
1588
1656
|
"data-action": "edit-description",
|
|
1589
|
-
"aria-label":
|
|
1590
|
-
tooltip:
|
|
1591
|
-
onClick: () =>
|
|
1657
|
+
"aria-label": h(k("editDescription")),
|
|
1658
|
+
tooltip: h(k("editDescription")),
|
|
1659
|
+
onClick: () => Q(!0)
|
|
1592
1660
|
}
|
|
1593
1661
|
) : void 0,
|
|
1594
1662
|
description: (
|
|
1595
1663
|
/* An empty read-only description prints nothing. */
|
|
1596
|
-
v ? $ ? /* @__PURE__ */ e(xt, { block: "description" }) : void 0 : $ ||
|
|
1597
|
-
|
|
1664
|
+
v ? $ ? /* @__PURE__ */ e(xt, { block: "description" }) : void 0 : $ || J ? /* @__PURE__ */ e(
|
|
1665
|
+
Wt,
|
|
1598
1666
|
{
|
|
1599
1667
|
"data-block": "description",
|
|
1600
|
-
role: "group",
|
|
1601
|
-
"aria-label": m("calendarWorkspace.editor.description"),
|
|
1602
1668
|
value: $
|
|
1603
1669
|
}
|
|
1604
1670
|
) : void 0
|
|
1605
1671
|
)
|
|
1606
1672
|
}
|
|
1607
1673
|
),
|
|
1608
|
-
|
|
1674
|
+
ge && v ? /* @__PURE__ */ e(
|
|
1609
1675
|
me,
|
|
1610
1676
|
{
|
|
1611
1677
|
"data-card": "notes",
|
|
1612
|
-
title:
|
|
1678
|
+
title: h("notesPanel.title"),
|
|
1613
1679
|
headingLevel: 3,
|
|
1614
1680
|
children: /* @__PURE__ */ e(xt, {})
|
|
1615
1681
|
}
|
|
1616
|
-
) :
|
|
1617
|
-
|
|
1682
|
+
) : ge ? /* @__PURE__ */ e(
|
|
1683
|
+
Da,
|
|
1618
1684
|
{
|
|
1619
|
-
preview:
|
|
1620
|
-
onOpenNotes:
|
|
1685
|
+
preview: ge,
|
|
1686
|
+
onOpenNotes: Ue ? L : void 0,
|
|
1621
1687
|
locale: c
|
|
1622
1688
|
}
|
|
1623
1689
|
) : null,
|
|
1624
1690
|
/* @__PURE__ */ e(
|
|
1625
|
-
|
|
1691
|
+
Ia,
|
|
1626
1692
|
{
|
|
1627
|
-
...
|
|
1693
|
+
...fe,
|
|
1628
1694
|
privacy: v,
|
|
1629
|
-
carePlanUrl:
|
|
1695
|
+
carePlanUrl: he == null ? void 0 : he.carePlanUrl
|
|
1630
1696
|
}
|
|
1631
1697
|
)
|
|
1632
1698
|
] })
|
|
1633
1699
|
}
|
|
1634
1700
|
),
|
|
1635
|
-
|
|
1701
|
+
vt || tt.length > 0 ? (
|
|
1636
1702
|
/* The body scrolls; the status and the actions stay put. The
|
|
1637
1703
|
status keeps its own segment and never folds. The actions fold
|
|
1638
1704
|
to icons, then into More, never onto a second line. Only a
|
|
1639
1705
|
refused status change adds a line, for its message. */
|
|
1640
|
-
/* @__PURE__ */ b("div", { className:
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1706
|
+
/* @__PURE__ */ b("div", { className: Pa(), children: [
|
|
1707
|
+
vt,
|
|
1708
|
+
tt.length > 0 ? /* @__PURE__ */ e(
|
|
1709
|
+
hn,
|
|
1644
1710
|
{
|
|
1645
|
-
label:
|
|
1711
|
+
label: h(k("actionsLabel")),
|
|
1646
1712
|
overflow: "menu",
|
|
1647
1713
|
collapseToIcons: !0,
|
|
1648
1714
|
background: "surface",
|
|
1649
1715
|
size: "sm",
|
|
1650
|
-
className: `ds:min-w-0 ds:flex-1 ds:text-end ${
|
|
1651
|
-
children:
|
|
1716
|
+
className: `ds:min-w-0 ds:flex-1 ds:text-end ${Fa}`,
|
|
1717
|
+
children: tt
|
|
1652
1718
|
}
|
|
1653
1719
|
) : null
|
|
1654
1720
|
] })
|
|
1655
1721
|
) : null,
|
|
1656
|
-
|
|
1657
|
-
|
|
1722
|
+
w ? /* @__PURE__ */ e(
|
|
1723
|
+
at,
|
|
1658
1724
|
{
|
|
1659
|
-
ref:
|
|
1725
|
+
ref: ve,
|
|
1660
1726
|
open: le,
|
|
1661
|
-
icon: /* @__PURE__ */ e(
|
|
1662
|
-
title:
|
|
1663
|
-
backLabel:
|
|
1727
|
+
icon: /* @__PURE__ */ e(Ft, { "aria-hidden": "true" }),
|
|
1728
|
+
title: h(k("historyTitle")),
|
|
1729
|
+
backLabel: bt,
|
|
1664
1730
|
headingLevel: 3,
|
|
1665
|
-
onBack: () =>
|
|
1731
|
+
onBack: () => ie(!1),
|
|
1666
1732
|
"data-details-subview": "history",
|
|
1667
1733
|
children: /* @__PURE__ */ e("div", { className: "ds:-m-[var(--panel-subview-inset)] ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ e(
|
|
1668
|
-
|
|
1734
|
+
Ma,
|
|
1669
1735
|
{
|
|
1670
|
-
history:
|
|
1736
|
+
history: w,
|
|
1671
1737
|
locale: c,
|
|
1672
1738
|
noteUnrecordedEdits: M,
|
|
1673
1739
|
privacy: v,
|
|
1674
|
-
onRetry:
|
|
1675
|
-
var
|
|
1676
|
-
O.current = !0, (
|
|
1740
|
+
onRetry: w.onRetry ? () => {
|
|
1741
|
+
var u;
|
|
1742
|
+
O.current = !0, (u = w.onRetry) == null || u.call(w);
|
|
1677
1743
|
} : void 0
|
|
1678
1744
|
}
|
|
1679
1745
|
) })
|
|
1680
1746
|
}
|
|
1681
1747
|
) : null,
|
|
1682
|
-
|
|
1683
|
-
|
|
1748
|
+
J ? /* @__PURE__ */ e(
|
|
1749
|
+
at,
|
|
1684
1750
|
{
|
|
1685
|
-
open:
|
|
1686
|
-
icon: /* @__PURE__ */ e(
|
|
1687
|
-
title:
|
|
1688
|
-
backLabel:
|
|
1751
|
+
open: Be,
|
|
1752
|
+
icon: /* @__PURE__ */ e(Ot, { "aria-hidden": "true" }),
|
|
1753
|
+
title: h(k("editDescription")),
|
|
1754
|
+
backLabel: bt,
|
|
1689
1755
|
headingLevel: 3,
|
|
1690
|
-
initialFocusRef:
|
|
1756
|
+
initialFocusRef: ut,
|
|
1691
1757
|
onBack: () => {
|
|
1692
|
-
|
|
1758
|
+
be || Q(!1);
|
|
1693
1759
|
},
|
|
1694
1760
|
"data-details-subview": "description",
|
|
1695
|
-
footer: /* @__PURE__ */ b(
|
|
1761
|
+
footer: /* @__PURE__ */ b(oe, { children: [
|
|
1696
1762
|
/* @__PURE__ */ e(
|
|
1697
|
-
|
|
1763
|
+
T,
|
|
1698
1764
|
{
|
|
1699
1765
|
intent: "secondary",
|
|
1700
|
-
disabled:
|
|
1701
|
-
onClick: () =>
|
|
1702
|
-
children:
|
|
1766
|
+
disabled: be,
|
|
1767
|
+
onClick: () => Q(!1),
|
|
1768
|
+
children: h(k("noteCancel"))
|
|
1703
1769
|
}
|
|
1704
1770
|
),
|
|
1705
1771
|
/* @__PURE__ */ e(
|
|
1706
|
-
|
|
1772
|
+
T,
|
|
1707
1773
|
{
|
|
1708
1774
|
intent: "primary",
|
|
1709
1775
|
"data-action": "save-description",
|
|
1710
|
-
loading:
|
|
1711
|
-
disabled:
|
|
1712
|
-
onClick: () => void
|
|
1713
|
-
children:
|
|
1776
|
+
loading: be,
|
|
1777
|
+
disabled: pt,
|
|
1778
|
+
onClick: () => void an(),
|
|
1779
|
+
children: h(k("descriptionSave"))
|
|
1714
1780
|
}
|
|
1715
1781
|
)
|
|
1716
1782
|
] }),
|
|
1717
1783
|
children: /* @__PURE__ */ b("div", { className: "ds:-m-[var(--panel-subview-inset)] ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
|
|
1718
1784
|
/* @__PURE__ */ e(
|
|
1719
|
-
|
|
1785
|
+
gn,
|
|
1720
1786
|
{
|
|
1721
|
-
label:
|
|
1722
|
-
error:
|
|
1787
|
+
label: h("calendarWorkspace.editor.description"),
|
|
1788
|
+
error: pt ? h("calendarWorkspace.editor.descriptionTooLong", {
|
|
1723
1789
|
max: z
|
|
1724
1790
|
}) : S,
|
|
1725
1791
|
children: /* @__PURE__ */ e(
|
|
1726
|
-
|
|
1792
|
+
vn,
|
|
1727
1793
|
{
|
|
1728
|
-
ref:
|
|
1729
|
-
value:
|
|
1794
|
+
ref: ut,
|
|
1795
|
+
value: ye,
|
|
1730
1796
|
minRows: 6,
|
|
1731
1797
|
autoResize: !0,
|
|
1732
1798
|
softMaxLength: z,
|
|
1733
|
-
measureLength:
|
|
1734
|
-
onChange: (
|
|
1735
|
-
de(
|
|
1799
|
+
measureLength: re,
|
|
1800
|
+
onChange: (u) => {
|
|
1801
|
+
de(u.target.value), ce(!1);
|
|
1736
1802
|
}
|
|
1737
1803
|
}
|
|
1738
1804
|
)
|
|
1739
1805
|
}
|
|
1740
1806
|
),
|
|
1741
1807
|
Pe ? /* @__PURE__ */ e(
|
|
1742
|
-
|
|
1808
|
+
ee,
|
|
1743
1809
|
{
|
|
1744
1810
|
variant: "warning",
|
|
1745
1811
|
announce: "assertive",
|
|
1746
1812
|
"data-outcome": "unknown",
|
|
1747
|
-
children: /* @__PURE__ */ e(
|
|
1813
|
+
children: /* @__PURE__ */ e(ee.Description, { children: Le })
|
|
1748
1814
|
}
|
|
1749
1815
|
) : null
|
|
1750
1816
|
] })
|
|
@@ -1754,66 +1820,67 @@ function Fa({
|
|
|
1754
1820
|
}
|
|
1755
1821
|
);
|
|
1756
1822
|
}
|
|
1757
|
-
const
|
|
1823
|
+
const Ba = rn(function({
|
|
1758
1824
|
state: n,
|
|
1759
1825
|
onRetry: i,
|
|
1760
|
-
patientId:
|
|
1826
|
+
patientId: r,
|
|
1761
1827
|
operator: c,
|
|
1762
1828
|
chair: o,
|
|
1763
|
-
currency:
|
|
1764
|
-
now:
|
|
1765
|
-
locale:
|
|
1829
|
+
currency: p = "EUR",
|
|
1830
|
+
now: f,
|
|
1831
|
+
locale: m,
|
|
1766
1832
|
title: a,
|
|
1767
|
-
privacy:
|
|
1768
|
-
privacyTitle:
|
|
1833
|
+
privacy: l = !1,
|
|
1834
|
+
privacyTitle: d,
|
|
1769
1835
|
mapsLink: A,
|
|
1770
1836
|
notesPreview: v,
|
|
1771
|
-
onOpenNotes:
|
|
1772
|
-
history:
|
|
1773
|
-
onOpenHistory:
|
|
1837
|
+
onOpenNotes: y,
|
|
1838
|
+
history: g,
|
|
1839
|
+
onOpenHistory: x,
|
|
1774
1840
|
noteUnrecordedEdits: L,
|
|
1775
1841
|
readOnly: P = !1,
|
|
1776
|
-
onStatusChange:
|
|
1842
|
+
onStatusChange: C,
|
|
1777
1843
|
allowedStatuses: M,
|
|
1778
|
-
onDescriptionChange:
|
|
1779
|
-
descriptionMaxLength:
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1844
|
+
onDescriptionChange: D,
|
|
1845
|
+
descriptionMaxLength: _,
|
|
1846
|
+
descriptionMeasureLength: E,
|
|
1847
|
+
onAssignPatient: q,
|
|
1848
|
+
onEdit: z,
|
|
1849
|
+
onMove: re,
|
|
1850
|
+
onCopy: K,
|
|
1851
|
+
onDelete: j,
|
|
1852
|
+
onJoinTelehealth: Y,
|
|
1853
|
+
onWhatsApp: B,
|
|
1854
|
+
whatsappUrl: ne,
|
|
1855
|
+
onBuyWhatsApp: ae,
|
|
1856
|
+
createTaskUrl: N,
|
|
1857
|
+
onRequestSignature: G,
|
|
1858
|
+
onSignOnDevice: V,
|
|
1859
|
+
onOpenPatient: Ae,
|
|
1860
|
+
shortcuts: Ne,
|
|
1861
|
+
documents: xe,
|
|
1862
|
+
id: He,
|
|
1863
|
+
className: he,
|
|
1864
|
+
...X
|
|
1865
|
+
}, Me) {
|
|
1866
|
+
var be, Re;
|
|
1867
|
+
const { t: h, i18n: I } = te("ui"), Xe = st(), fe = He ?? Xe, w = st(), Ue = m ?? I.language, ge = !l && (a != null && a.trim()) ? a : h(k("region")), J = n.status === "ready" ? n.read : void 0, Ce = n.status === "ready" ? n.read.eventId : n.eventId, ie = R(
|
|
1801
1868
|
void 0
|
|
1802
|
-
),
|
|
1803
|
-
|
|
1804
|
-
|
|
1869
|
+
), Te = ie.current !== void 0 && ie.current !== "ready";
|
|
1870
|
+
we(() => {
|
|
1871
|
+
ie.current = n.status;
|
|
1805
1872
|
}, [n.status]);
|
|
1806
|
-
const
|
|
1807
|
-
typeof document < "u" && (Ee.current = ((
|
|
1808
|
-
const
|
|
1873
|
+
const Q = !!i && (n.status === "error" || n.status === "refused" && n.retryable === !0), le = R(null), Be = At(() => cn(Me, le), [Me]), Ee = R(!1);
|
|
1874
|
+
typeof document < "u" && (Ee.current = ((be = le.current) == null ? void 0 : be.contains(document.activeElement)) ?? !1);
|
|
1875
|
+
const We = J ? `ready:${J.eventId}` : n.status, ve = R(!1);
|
|
1809
1876
|
pe(() => {
|
|
1810
|
-
|
|
1811
|
-
}, [
|
|
1877
|
+
ve.current ? (n.status !== "loading" && (ve.current = !1), _e(w)) : Ee.current && _e(w);
|
|
1878
|
+
}, [We, w]);
|
|
1812
1879
|
const O = R(null);
|
|
1813
|
-
|
|
1814
|
-
const Ie = R(null), $ = R({ state: n, eventId:
|
|
1815
|
-
$.current = { state: n, eventId:
|
|
1816
|
-
const De =
|
|
1880
|
+
J || (O.current = null);
|
|
1881
|
+
const Ie = R(null), $ = R({ state: n, eventId: Ce, privacy: l, retryOffered: Q, onRetry: i });
|
|
1882
|
+
$.current = { state: n, eventId: Ce, privacy: l, retryOffered: Q, onRetry: i };
|
|
1883
|
+
const De = At(
|
|
1817
1884
|
() => ({
|
|
1818
1885
|
getEventId: () => $.current.eventId ?? null,
|
|
1819
1886
|
getLoadStatus: () => $.current.state.status,
|
|
@@ -1845,17 +1912,17 @@ const _a = sn(function({
|
|
|
1845
1912
|
(S = O.current) == null || S.closeHistory();
|
|
1846
1913
|
},
|
|
1847
1914
|
setAppointmentStatus: (S) => {
|
|
1848
|
-
const
|
|
1849
|
-
if (!
|
|
1850
|
-
return
|
|
1915
|
+
const W = O.current, Pe = Ie.current;
|
|
1916
|
+
if (!W || !Pe || W.allowed.length === 0)
|
|
1917
|
+
return nt(
|
|
1851
1918
|
new Error("AppointmentDetailsPanel: the status is read-only.")
|
|
1852
1919
|
);
|
|
1853
|
-
if (S ===
|
|
1854
|
-
if (!
|
|
1855
|
-
return
|
|
1920
|
+
if (S === W.status) return Promise.resolve();
|
|
1921
|
+
if (!W.allowed.includes(S))
|
|
1922
|
+
return nt(
|
|
1856
1923
|
new Error(`AppointmentDetailsPanel: "${S}" is not allowed.`)
|
|
1857
1924
|
);
|
|
1858
|
-
const ce = () =>
|
|
1925
|
+
const ce = () => nt(
|
|
1859
1926
|
new Error("AppointmentDetailsPanel: a status save is in flight.")
|
|
1860
1927
|
);
|
|
1861
1928
|
if (Pe.getIsSaving()) return ce();
|
|
@@ -1863,160 +1930,162 @@ const _a = sn(function({
|
|
|
1863
1930
|
return Le === void 0 ? ce() : Le;
|
|
1864
1931
|
},
|
|
1865
1932
|
retry: () => {
|
|
1866
|
-
const { retryOffered: S, onRetry:
|
|
1867
|
-
if (!S || !
|
|
1933
|
+
const { retryOffered: S, onRetry: W } = $.current;
|
|
1934
|
+
if (!S || !W)
|
|
1868
1935
|
throw new Error("AppointmentDetailsPanel: Retry is not offered.");
|
|
1869
|
-
|
|
1936
|
+
W();
|
|
1870
1937
|
}
|
|
1871
1938
|
}),
|
|
1872
1939
|
[]
|
|
1873
1940
|
);
|
|
1874
|
-
|
|
1875
|
-
const
|
|
1876
|
-
|
|
1941
|
+
dn(ga, De, fe);
|
|
1942
|
+
const ye = /* @__PURE__ */ e(
|
|
1943
|
+
$t,
|
|
1877
1944
|
{
|
|
1878
|
-
title:
|
|
1879
|
-
headingId:
|
|
1880
|
-
icon: /* @__PURE__ */ e(
|
|
1945
|
+
title: ge,
|
|
1946
|
+
headingId: w,
|
|
1947
|
+
icon: /* @__PURE__ */ e(Qt, { "aria-hidden": "true" }),
|
|
1881
1948
|
sticky: !0,
|
|
1882
1949
|
divider: !0
|
|
1883
1950
|
}
|
|
1884
1951
|
);
|
|
1885
1952
|
let de;
|
|
1886
1953
|
return n.status === "ready" ? de = /* @__PURE__ */ e(
|
|
1887
|
-
|
|
1954
|
+
Ua,
|
|
1888
1955
|
{
|
|
1889
1956
|
read: n.read,
|
|
1890
1957
|
refreshing: n.refreshing === !0,
|
|
1891
|
-
currency:
|
|
1892
|
-
now:
|
|
1893
|
-
locale:
|
|
1894
|
-
shownTitle:
|
|
1895
|
-
headingId:
|
|
1896
|
-
enter:
|
|
1958
|
+
currency: p,
|
|
1959
|
+
now: f ?? /* @__PURE__ */ new Date(),
|
|
1960
|
+
locale: Ue,
|
|
1961
|
+
shownTitle: ge,
|
|
1962
|
+
headingId: w,
|
|
1963
|
+
enter: Te,
|
|
1897
1964
|
live: O,
|
|
1898
1965
|
statusControl: Ie,
|
|
1899
|
-
patientId:
|
|
1966
|
+
patientId: r,
|
|
1900
1967
|
operator: c,
|
|
1901
1968
|
chair: o,
|
|
1902
|
-
privacy:
|
|
1903
|
-
privacyTitle:
|
|
1969
|
+
privacy: l,
|
|
1970
|
+
privacyTitle: d,
|
|
1904
1971
|
mapsLink: A,
|
|
1905
1972
|
notesPreview: v,
|
|
1906
|
-
onOpenNotes:
|
|
1907
|
-
history:
|
|
1908
|
-
onOpenHistory:
|
|
1973
|
+
onOpenNotes: y,
|
|
1974
|
+
history: g,
|
|
1975
|
+
onOpenHistory: x,
|
|
1909
1976
|
noteUnrecordedEdits: L,
|
|
1910
1977
|
readOnly: P,
|
|
1911
|
-
onStatusChange:
|
|
1978
|
+
onStatusChange: C,
|
|
1912
1979
|
allowedStatuses: M,
|
|
1913
|
-
onDescriptionChange:
|
|
1914
|
-
descriptionMaxLength:
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1980
|
+
onDescriptionChange: D,
|
|
1981
|
+
descriptionMaxLength: _,
|
|
1982
|
+
descriptionMeasureLength: E,
|
|
1983
|
+
onAssignPatient: q,
|
|
1984
|
+
onEdit: z,
|
|
1985
|
+
onMove: re,
|
|
1986
|
+
onCopy: K,
|
|
1987
|
+
onDelete: j,
|
|
1988
|
+
onJoinTelehealth: Y,
|
|
1989
|
+
onWhatsApp: B,
|
|
1990
|
+
whatsappUrl: ne,
|
|
1991
|
+
onBuyWhatsApp: ae,
|
|
1992
|
+
createTaskUrl: N,
|
|
1993
|
+
onRequestSignature: G,
|
|
1994
|
+
onSignOnDevice: V,
|
|
1995
|
+
onOpenPatient: Ae,
|
|
1996
|
+
shortcuts: Ne,
|
|
1997
|
+
documents: xe
|
|
1930
1998
|
},
|
|
1931
1999
|
n.read.eventId
|
|
1932
|
-
) : n.status === "loading" ? de = /* @__PURE__ */ b(
|
|
1933
|
-
|
|
1934
|
-
/* @__PURE__ */ e(
|
|
1935
|
-
] }) : de = /* @__PURE__ */ b(
|
|
1936
|
-
|
|
2000
|
+
) : n.status === "loading" ? de = /* @__PURE__ */ b(oe, { children: [
|
|
2001
|
+
ye,
|
|
2002
|
+
/* @__PURE__ */ e(Ha, {})
|
|
2003
|
+
] }) : de = /* @__PURE__ */ b(oe, { children: [
|
|
2004
|
+
ye,
|
|
1937
2005
|
/* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
|
|
1938
|
-
/* @__PURE__ */ e(
|
|
1939
|
-
|
|
1940
|
-
|
|
2006
|
+
/* @__PURE__ */ e(ee, { variant: n.status === "error" ? "error" : "warning", children: /* @__PURE__ */ e(ee.Description, { children: n.status === "error" ? ((Re = n.message) == null ? void 0 : Re.trim()) || h("emptyState.error.description") : n.reason }) }),
|
|
2007
|
+
Q ? /* @__PURE__ */ e(
|
|
2008
|
+
T,
|
|
1941
2009
|
{
|
|
1942
2010
|
intent: "outline",
|
|
1943
2011
|
"data-action": "retry-load",
|
|
1944
2012
|
onClick: () => {
|
|
1945
|
-
|
|
2013
|
+
ve.current = !0, i == null || i();
|
|
1946
2014
|
},
|
|
1947
|
-
children:
|
|
2015
|
+
children: h("emptyState.error.cta")
|
|
1948
2016
|
}
|
|
1949
2017
|
) : null
|
|
1950
2018
|
] })
|
|
1951
2019
|
] }), /* @__PURE__ */ e(
|
|
1952
2020
|
"div",
|
|
1953
2021
|
{
|
|
1954
|
-
ref:
|
|
1955
|
-
id:
|
|
2022
|
+
ref: Be,
|
|
2023
|
+
id: He,
|
|
1956
2024
|
"data-component": "appointment-details-panel",
|
|
1957
|
-
"data-component-id":
|
|
1958
|
-
"data-event-id":
|
|
2025
|
+
"data-component-id": fe,
|
|
2026
|
+
"data-event-id": Ce,
|
|
1959
2027
|
"data-status": n.status,
|
|
1960
2028
|
"aria-busy": n.status === "loading" || void 0,
|
|
1961
|
-
className:
|
|
1962
|
-
...
|
|
2029
|
+
className: Ra({ className: he }),
|
|
2030
|
+
...X,
|
|
1963
2031
|
children: de
|
|
1964
2032
|
}
|
|
1965
2033
|
);
|
|
1966
2034
|
});
|
|
1967
|
-
|
|
1968
|
-
function
|
|
2035
|
+
Ba.displayName = "AppointmentDetailsPanel";
|
|
2036
|
+
function ls({
|
|
1969
2037
|
eventId: t,
|
|
1970
2038
|
load: n,
|
|
1971
2039
|
reloadKey: i
|
|
1972
2040
|
}) {
|
|
1973
|
-
const { t:
|
|
1974
|
-
c.current =
|
|
2041
|
+
const { t: r } = te("ui"), c = R("");
|
|
2042
|
+
c.current = r("emptyState.error.description");
|
|
1975
2043
|
const o = R(n);
|
|
1976
2044
|
pe(() => {
|
|
1977
2045
|
o.current = n;
|
|
1978
2046
|
});
|
|
1979
|
-
const [
|
|
1980
|
-
|
|
2047
|
+
const [p, f] = H(0), [m, a] = H(), l = JSON.stringify([i ?? null, p]), [d, A] = H({ eventId: t, count: 0 }), v = d.eventId === t ? d.count : d.count + 1;
|
|
2048
|
+
d.eventId !== t && A({ eventId: t, count: v }), we(() => {
|
|
1981
2049
|
if (t === null) {
|
|
1982
2050
|
a(void 0);
|
|
1983
2051
|
return;
|
|
1984
2052
|
}
|
|
1985
|
-
const L = new AbortController(), P = (
|
|
1986
|
-
L.signal.aborted || a({ eventId: t, selection: v, request:
|
|
2053
|
+
const L = new AbortController(), P = (C) => {
|
|
2054
|
+
L.signal.aborted || a({ eventId: t, selection: v, request: l, value: C });
|
|
1987
2055
|
};
|
|
1988
|
-
return Promise.resolve().then(() => o.current(t, { signal: L.signal })).then((
|
|
1989
|
-
var M,
|
|
1990
|
-
if (
|
|
2056
|
+
return Promise.resolve().then(() => o.current(t, { signal: L.signal })).then((C) => {
|
|
2057
|
+
var M, D;
|
|
2058
|
+
if (C.status !== "ready") {
|
|
1991
2059
|
P({
|
|
1992
2060
|
status: "refused",
|
|
1993
2061
|
eventId: t,
|
|
1994
|
-
reason:
|
|
1995
|
-
retryable:
|
|
2062
|
+
reason: C.reason,
|
|
2063
|
+
retryable: C.retryable
|
|
1996
2064
|
});
|
|
1997
2065
|
return;
|
|
1998
2066
|
}
|
|
1999
|
-
if (((M =
|
|
2067
|
+
if (((M = C.details) == null ? void 0 : M.eventId) !== t || !On((D = C.details.appointment) == null ? void 0 : D.startIso))
|
|
2000
2068
|
throw new Error(c.current);
|
|
2001
|
-
P({ status: "ready", read:
|
|
2002
|
-
}).catch((
|
|
2069
|
+
P({ status: "ready", read: C.details });
|
|
2070
|
+
}).catch((C) => {
|
|
2003
2071
|
P({
|
|
2004
2072
|
status: "error",
|
|
2005
2073
|
eventId: t,
|
|
2006
|
-
message:
|
|
2074
|
+
message: ot(C, c.current)
|
|
2007
2075
|
});
|
|
2008
2076
|
}), () => L.abort();
|
|
2009
|
-
}, [t, v,
|
|
2010
|
-
const
|
|
2011
|
-
if (t === null) return { state: null, retry:
|
|
2012
|
-
const
|
|
2013
|
-
let
|
|
2014
|
-
return (
|
|
2077
|
+
}, [t, v, l]);
|
|
2078
|
+
const y = ln(() => f((L) => L + 1), []);
|
|
2079
|
+
if (t === null) return { state: null, retry: y };
|
|
2080
|
+
const g = (m == null ? void 0 : m.eventId) === t && m.selection === v ? m : void 0;
|
|
2081
|
+
let x = { status: "loading", eventId: t };
|
|
2082
|
+
return (g == null ? void 0 : g.request) === l ? x = g.value : (g == null ? void 0 : g.value.status) === "ready" && (x = { status: "ready", read: g.value.read, refreshing: !0 }), { state: x, retry: y };
|
|
2015
2083
|
}
|
|
2016
2084
|
export {
|
|
2017
|
-
|
|
2085
|
+
Ba as A,
|
|
2018
2086
|
ue as D,
|
|
2019
|
-
|
|
2020
|
-
|
|
2087
|
+
ga as a,
|
|
2088
|
+
ha as s,
|
|
2089
|
+
ls as u
|
|
2021
2090
|
};
|
|
2022
|
-
//# sourceMappingURL=use-appointment-details-read-
|
|
2091
|
+
//# sourceMappingURL=use-appointment-details-read-BR3TQOHx.js.map
|