@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
|
@@ -4,9 +4,9 @@ import { useTranslation as K } from "react-i18next";
|
|
|
4
4
|
import { d as s, b as L } from "../_chunks/toast-Cgmh1cvj.js";
|
|
5
5
|
import { a as M } from "../_chunks/tooltip-uEBdD1-5.js";
|
|
6
6
|
import { C as Q } from "../_chunks/calendar-editor-guard-9fShhNIA.js";
|
|
7
|
-
import { S as V } from "../_chunks/calendar.sheets-
|
|
8
|
-
import { W as X } from "../_chunks/calendar-waiting-list-panel-
|
|
9
|
-
import { P as Y } from "../_chunks/privacy-mask-
|
|
7
|
+
import { S as V } from "../_chunks/calendar.sheets-OmTiQdCg.js";
|
|
8
|
+
import { W as X } from "../_chunks/calendar-waiting-list-panel-DukgSOPH.js";
|
|
9
|
+
import { P as Y } from "../_chunks/privacy-mask-CaLBAxzj.js";
|
|
10
10
|
import { H as Z } from "../_chunks/hourglass-BEAzW1wE.js";
|
|
11
11
|
const q = { open: () => {
|
|
12
12
|
}, close: () => {
|
package/package.json
CHANGED
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as j, isValidElement as B } from "react";
|
|
3
|
-
import { c as G } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as M } from "react-i18next";
|
|
5
|
-
import { A as R } from "./avatar-Dp5apm1d.js";
|
|
6
|
-
import { B as z } from "./badge-BUk4RjTS.js";
|
|
7
|
-
import { D as t } from "./description-list-DA4TgL_I.js";
|
|
8
|
-
import { E as q } from "./editable-description-B2F54K4T.js";
|
|
9
|
-
import { H as $ } from "./hover-card-CS8ulBf9.js";
|
|
10
|
-
import { T as W } from "./transaction-chip-6jToArJn.js";
|
|
11
|
-
import { a as F } from "./workflow-status-Cg7yjnye.js";
|
|
12
|
-
import { C as J } from "./clock-Drd4Wtis.js";
|
|
13
|
-
import { V as K } from "./video-BheNGvsu.js";
|
|
14
|
-
import { A as Q } from "./armchair-BaLDW6Hz.js";
|
|
15
|
-
import { G as C } from "./globe-sHBW1JN5.js";
|
|
16
|
-
import { E as U } from "./eye-off-C_4xkbRP.js";
|
|
17
|
-
import { M as X } from "./message-square-warning-DsGGfd0K.js";
|
|
18
|
-
import { a as Y } from "./entity-card-p-LANpYt.js";
|
|
19
|
-
const Z = G(
|
|
20
|
-
"ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-sm)]"
|
|
21
|
-
), _ = j(
|
|
22
|
-
({
|
|
23
|
-
name: f,
|
|
24
|
-
avatarSrc: D,
|
|
25
|
-
time: E,
|
|
26
|
-
location: h,
|
|
27
|
-
locationLabel: I,
|
|
28
|
-
bookingReason: u,
|
|
29
|
-
telehealth: L = !1,
|
|
30
|
-
status: i,
|
|
31
|
-
statusLabel: P,
|
|
32
|
-
description: o,
|
|
33
|
-
details: v,
|
|
34
|
-
treatment: g,
|
|
35
|
-
bookedOnline: x = !1,
|
|
36
|
-
highlightedAnamnesisCount: d = 0,
|
|
37
|
-
unpaidAmount: c = 0,
|
|
38
|
-
billableAmount: m = 0,
|
|
39
|
-
currency: k,
|
|
40
|
-
locale: w,
|
|
41
|
-
flags: b,
|
|
42
|
-
privacy: p = !1,
|
|
43
|
-
className: S,
|
|
44
|
-
...T
|
|
45
|
-
}, V) => {
|
|
46
|
-
const { t: e } = M("ui"), l = i ? Y(i) : null, N = l == null ? void 0 : l.Icon, y = L ? K : Q, r = !p, A = x || d > 0 || c > 0 || m > 0, H = [
|
|
47
|
-
{ icon: /* @__PURE__ */ a(J, {}), label: e("appointmentPeek.time"), value: E },
|
|
48
|
-
...h ? [
|
|
49
|
-
{
|
|
50
|
-
icon: /* @__PURE__ */ a(y, {}),
|
|
51
|
-
label: I ?? e("appointmentPeek.location"),
|
|
52
|
-
value: h
|
|
53
|
-
}
|
|
54
|
-
] : [],
|
|
55
|
-
...u ? [
|
|
56
|
-
{
|
|
57
|
-
icon: /* @__PURE__ */ a(C, {}),
|
|
58
|
-
label: e("calendarWorkspace.details.bookingReason"),
|
|
59
|
-
value: /* @__PURE__ */ a("span", { className: "ds:font-medium", children: u })
|
|
60
|
-
}
|
|
61
|
-
] : [],
|
|
62
|
-
...r && g ? [
|
|
63
|
-
{
|
|
64
|
-
icon: null,
|
|
65
|
-
label: e("calendarWorkspace.details.care"),
|
|
66
|
-
value: g
|
|
67
|
-
}
|
|
68
|
-
] : [],
|
|
69
|
-
...r && v ? v.map((s) => ({
|
|
70
|
-
icon: B(s.icon) ? s.icon : null,
|
|
71
|
-
label: s.label,
|
|
72
|
-
value: s.value
|
|
73
|
-
})) : []
|
|
74
|
-
];
|
|
75
|
-
return /* @__PURE__ */ n(
|
|
76
|
-
"div",
|
|
77
|
-
{
|
|
78
|
-
ref: V,
|
|
79
|
-
"data-component": "appointment-peek",
|
|
80
|
-
"data-status": i,
|
|
81
|
-
className: Z({ className: S }),
|
|
82
|
-
...T,
|
|
83
|
-
children: [
|
|
84
|
-
/* @__PURE__ */ n("div", { className: "ds:flex ds:min-w-0 ds:items-start ds:gap-[var(--spacing-sm)]", children: [
|
|
85
|
-
p ? null : /* @__PURE__ */ a(
|
|
86
|
-
R,
|
|
87
|
-
{
|
|
88
|
-
size: "sm",
|
|
89
|
-
name: f,
|
|
90
|
-
src: D,
|
|
91
|
-
"aria-hidden": "true",
|
|
92
|
-
className: "ds:shrink-0"
|
|
93
|
-
}
|
|
94
|
-
),
|
|
95
|
-
/* @__PURE__ */ n("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
96
|
-
/* @__PURE__ */ a($.Heading, { className: "ds:min-w-0", children: p ? /* @__PURE__ */ n("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
97
|
-
/* @__PURE__ */ a(
|
|
98
|
-
U,
|
|
99
|
-
{
|
|
100
|
-
"aria-hidden": "true",
|
|
101
|
-
className: "ds:size-4 ds:shrink-0"
|
|
102
|
-
}
|
|
103
|
-
),
|
|
104
|
-
e("appointmentPeek.hiddenName")
|
|
105
|
-
] }) : f }),
|
|
106
|
-
r && (A || b) ? /* @__PURE__ */ n(
|
|
107
|
-
"div",
|
|
108
|
-
{
|
|
109
|
-
"data-slot": "flags",
|
|
110
|
-
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
111
|
-
children: [
|
|
112
|
-
x ? /* @__PURE__ */ a(
|
|
113
|
-
z,
|
|
114
|
-
{
|
|
115
|
-
"data-chip": "bookedOnline",
|
|
116
|
-
variant: "info",
|
|
117
|
-
size: "sm",
|
|
118
|
-
leading: /* @__PURE__ */ a(C, { "aria-hidden": "true" }),
|
|
119
|
-
children: e("calendarWorkspace.details.indicators.bookedOnline")
|
|
120
|
-
}
|
|
121
|
-
) : null,
|
|
122
|
-
d > 0 ? /* @__PURE__ */ a(
|
|
123
|
-
z,
|
|
124
|
-
{
|
|
125
|
-
"data-chip": "highlightedAnamnesis",
|
|
126
|
-
variant: "warning",
|
|
127
|
-
size: "sm",
|
|
128
|
-
leading: /* @__PURE__ */ a(X, { "aria-hidden": "true" }),
|
|
129
|
-
children: e("patientSummaryCard.flag.highlightedAnamnesis", {
|
|
130
|
-
count: d
|
|
131
|
-
})
|
|
132
|
-
}
|
|
133
|
-
) : null,
|
|
134
|
-
c > 0 ? /* @__PURE__ */ a(
|
|
135
|
-
W,
|
|
136
|
-
{
|
|
137
|
-
"data-chip": "unpaid",
|
|
138
|
-
state: "debt",
|
|
139
|
-
amount: c,
|
|
140
|
-
currency: k,
|
|
141
|
-
locale: w,
|
|
142
|
-
size: "sm",
|
|
143
|
-
showLabel: !0,
|
|
144
|
-
showIcon: !1
|
|
145
|
-
}
|
|
146
|
-
) : null,
|
|
147
|
-
m > 0 ? /* @__PURE__ */ a(
|
|
148
|
-
W,
|
|
149
|
-
{
|
|
150
|
-
"data-chip": "billable",
|
|
151
|
-
state: "to-invoice",
|
|
152
|
-
tone: "neutral",
|
|
153
|
-
amount: m,
|
|
154
|
-
currency: k,
|
|
155
|
-
locale: w,
|
|
156
|
-
size: "sm",
|
|
157
|
-
showLabel: !0,
|
|
158
|
-
showIcon: !1
|
|
159
|
-
}
|
|
160
|
-
) : null,
|
|
161
|
-
b
|
|
162
|
-
]
|
|
163
|
-
}
|
|
164
|
-
) : null
|
|
165
|
-
] })
|
|
166
|
-
] }),
|
|
167
|
-
r && (o != null && o.trim()) ? /* @__PURE__ */ a(
|
|
168
|
-
q,
|
|
169
|
-
{
|
|
170
|
-
"data-slot": "description",
|
|
171
|
-
role: "group",
|
|
172
|
-
"aria-label": e("calendarWorkspace.editor.description"),
|
|
173
|
-
value: o,
|
|
174
|
-
maxLines: 3,
|
|
175
|
-
expandable: !1
|
|
176
|
-
}
|
|
177
|
-
) : null,
|
|
178
|
-
/* @__PURE__ */ a(
|
|
179
|
-
t,
|
|
180
|
-
{
|
|
181
|
-
layout: "inline",
|
|
182
|
-
density: "compact",
|
|
183
|
-
divider: "none",
|
|
184
|
-
className: "ds:[--description-list-icon-color:var(--accent)]",
|
|
185
|
-
children: H.map((s, O) => /* @__PURE__ */ n(t.Row, { icon: s.icon, children: [
|
|
186
|
-
/* @__PURE__ */ a(t.Term, { children: s.label }),
|
|
187
|
-
/* @__PURE__ */ a(t.Detail, { children: s.value })
|
|
188
|
-
] }, O))
|
|
189
|
-
}
|
|
190
|
-
),
|
|
191
|
-
i && l && N ? /* @__PURE__ */ a("div", { "data-slot": "workflow", children: /* @__PURE__ */ a(
|
|
192
|
-
F,
|
|
193
|
-
{
|
|
194
|
-
size: "sm",
|
|
195
|
-
value: i,
|
|
196
|
-
option: {
|
|
197
|
-
value: i,
|
|
198
|
-
label: P ?? e(`appointmentCard.state.${i}`),
|
|
199
|
-
icon: /* @__PURE__ */ a(N, { "aria-hidden": "true" }),
|
|
200
|
-
tone: l.tone
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
) }) : null
|
|
204
|
-
]
|
|
205
|
-
}
|
|
206
|
-
);
|
|
207
|
-
}
|
|
208
|
-
);
|
|
209
|
-
_.displayName = "AppointmentPeek";
|
|
210
|
-
export {
|
|
211
|
-
_ as A
|
|
212
|
-
};
|
|
213
|
-
//# sourceMappingURL=appointment-peek-CGJ6kUvM.js.map
|
|
@@ -1,416 +0,0 @@
|
|
|
1
|
-
import { jsx as M, jsxs as P, Fragment as ho } from "react/jsx-runtime";
|
|
2
|
-
import { useState as D, useCallback as R, useMemo as x, useRef as O, useEffect as oo, useContext as N, useId as yo, createContext as Co, forwardRef as wo } from "react";
|
|
3
|
-
import { useTranslation as Ao } from "react-i18next";
|
|
4
|
-
import { I as F } from "./icon-button-u9VMQn3x.js";
|
|
5
|
-
import { a as Mo } from "./panel-header-DTc5OFUg.js";
|
|
6
|
-
import { T as xo } from "./tool-rail-CJBtqzMs.js";
|
|
7
|
-
import { u as W } from "./use-persistent-state-nZwZAnE9.js";
|
|
8
|
-
import { S as ko } from "./star-Bf9L2Uot.js";
|
|
9
|
-
import { X as So } from "./x-B5YnXwCz.js";
|
|
10
|
-
const Vo = {
|
|
11
|
-
id: "control-room-rail",
|
|
12
|
-
capabilities: ["open", "close", "select_single"],
|
|
13
|
-
state: {
|
|
14
|
-
activeToolId: {
|
|
15
|
-
type: "string | null",
|
|
16
|
-
descriptionKey: "ui.toolRail.agent.state.activeToolId",
|
|
17
|
-
description: "Id of the tool whose panel is currently open, or null when the rail is collapsed to its strip. No panel content is ever exposed.",
|
|
18
|
-
read: (e) => e.getActiveToolId()
|
|
19
|
-
},
|
|
20
|
-
panelMode: {
|
|
21
|
-
type: "'docked' | 'overlay' | 'full-screen'",
|
|
22
|
-
descriptionKey: "ui.agent.controlRoomRail.state.panelMode",
|
|
23
|
-
description: "How an open panel shows: docked beside the content, over it because the frame keeps a minimum width for main, or full screen on a phone.",
|
|
24
|
-
read: (e) => e.getPanelMode()
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
actions: {
|
|
28
|
-
open: {
|
|
29
|
-
// Pure ephemeral panel state (open) — no data loss, no external effect.
|
|
30
|
-
safety: "read",
|
|
31
|
-
argsType: "{ id: string }",
|
|
32
|
-
argsSchema: {
|
|
33
|
-
type: "object",
|
|
34
|
-
properties: { id: { type: "string" } },
|
|
35
|
-
required: ["id"]
|
|
36
|
-
},
|
|
37
|
-
idempotent: !0,
|
|
38
|
-
descriptionKey: "ui.toolRail.agent.actions.open",
|
|
39
|
-
description: "Open the given tool's panel.",
|
|
40
|
-
examples: [{ args: { id: "inbox" }, note: "Open the inbox tool panel." }],
|
|
41
|
-
invoke: (e, r) => {
|
|
42
|
-
e.open(r.id);
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
close: {
|
|
46
|
-
safety: "read",
|
|
47
|
-
idempotent: !0,
|
|
48
|
-
descriptionKey: "ui.toolRail.agent.actions.close",
|
|
49
|
-
description: "Collapse the rail to its strip (no active tool).",
|
|
50
|
-
invoke: (e) => {
|
|
51
|
-
e.close();
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
select_tool: {
|
|
55
|
-
safety: "read",
|
|
56
|
-
argsType: "{ id: string | null }",
|
|
57
|
-
argsSchema: {
|
|
58
|
-
type: "object",
|
|
59
|
-
properties: { id: { type: ["string", "null"] } },
|
|
60
|
-
required: ["id"]
|
|
61
|
-
},
|
|
62
|
-
idempotent: !0,
|
|
63
|
-
descriptionKey: "ui.toolRail.agent.actions.selectTool",
|
|
64
|
-
description: "Set the active tool by id (opens its panel), or pass null to collapse.",
|
|
65
|
-
invoke: (e, r) => {
|
|
66
|
-
e.setActiveTool(r.id);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
domHooks: {
|
|
71
|
-
root: {
|
|
72
|
-
attr: "data-component",
|
|
73
|
-
value: "control-room-rail",
|
|
74
|
-
description: "Marks the ControlRoomRail wrapper."
|
|
75
|
-
},
|
|
76
|
-
instanceId: {
|
|
77
|
-
attr: "data-component-id",
|
|
78
|
-
sourceProp: "id",
|
|
79
|
-
description: "Sourced from the id prop. Required to address a specific rail from the agent."
|
|
80
|
-
},
|
|
81
|
-
item: {
|
|
82
|
-
attr: "data-tool-id",
|
|
83
|
-
description: "Stable tool id emitted on each strip IconButton. The active icon also carries data-active set to its id."
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}, jo = 1e3, _ = Co(null);
|
|
87
|
-
function Xo({
|
|
88
|
-
globalTools: e = [],
|
|
89
|
-
children: r
|
|
90
|
-
}) {
|
|
91
|
-
const [u, n] = D(
|
|
92
|
-
() => /* @__PURE__ */ new Map()
|
|
93
|
-
), f = R(
|
|
94
|
-
(l, d) => {
|
|
95
|
-
n((m) => {
|
|
96
|
-
const b = new Map(m);
|
|
97
|
-
return b.set(l, d), b;
|
|
98
|
-
});
|
|
99
|
-
},
|
|
100
|
-
[]
|
|
101
|
-
), v = R((l) => {
|
|
102
|
-
n((d) => {
|
|
103
|
-
if (!d.has(l)) return d;
|
|
104
|
-
const m = new Map(d);
|
|
105
|
-
return m.delete(l), m;
|
|
106
|
-
});
|
|
107
|
-
}, []), c = x(
|
|
108
|
-
() => Array.from(u.values()).flat(),
|
|
109
|
-
[u]
|
|
110
|
-
), p = O(null), i = O(null), a = R(() => {
|
|
111
|
-
i.current && clearTimeout(i.current.timer), i.current = null;
|
|
112
|
-
}, []), y = R(
|
|
113
|
-
(l, d = () => !0) => {
|
|
114
|
-
if (l) {
|
|
115
|
-
p.current = { handle: l, hasTool: d };
|
|
116
|
-
const m = i.current;
|
|
117
|
-
m && d(m.id) && (a(), l.setActiveTool(m.id));
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
p.current = null, queueMicrotask(() => {
|
|
121
|
-
p.current || a();
|
|
122
|
-
});
|
|
123
|
-
},
|
|
124
|
-
[a]
|
|
125
|
-
);
|
|
126
|
-
oo(() => a, [a]);
|
|
127
|
-
const T = R(
|
|
128
|
-
(l) => {
|
|
129
|
-
a();
|
|
130
|
-
const d = p.current;
|
|
131
|
-
if (d && d.hasTool(l)) {
|
|
132
|
-
d.handle.setActiveTool(l);
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
i.current = {
|
|
136
|
-
id: l,
|
|
137
|
-
timer: setTimeout(a, jo)
|
|
138
|
-
};
|
|
139
|
-
},
|
|
140
|
-
[a]
|
|
141
|
-
), j = R(() => {
|
|
142
|
-
var l;
|
|
143
|
-
a(), (l = p.current) == null || l.handle.setActiveTool(null);
|
|
144
|
-
}, [a]), k = x(
|
|
145
|
-
() => ({
|
|
146
|
-
globalTools: e,
|
|
147
|
-
contextualTools: c,
|
|
148
|
-
registerContextualTools: f,
|
|
149
|
-
unregisterContextualTools: v,
|
|
150
|
-
registerRail: y,
|
|
151
|
-
openTool: T,
|
|
152
|
-
closeTool: j
|
|
153
|
-
}),
|
|
154
|
-
[
|
|
155
|
-
e,
|
|
156
|
-
c,
|
|
157
|
-
f,
|
|
158
|
-
v,
|
|
159
|
-
y,
|
|
160
|
-
T,
|
|
161
|
-
j
|
|
162
|
-
]
|
|
163
|
-
);
|
|
164
|
-
return /* @__PURE__ */ M(_.Provider, { value: k, children: r });
|
|
165
|
-
}
|
|
166
|
-
function $o(e) {
|
|
167
|
-
const r = N(_), u = r == null ? void 0 : r.registerContextualTools, n = r == null ? void 0 : r.unregisterContextualTools, f = yo();
|
|
168
|
-
oo(() => {
|
|
169
|
-
if (!(!u || !n))
|
|
170
|
-
return u(f, e), () => n(f);
|
|
171
|
-
}, [u, n, f, e]);
|
|
172
|
-
}
|
|
173
|
-
function Eo() {
|
|
174
|
-
const e = N(_);
|
|
175
|
-
return x(() => {
|
|
176
|
-
if (!e) return [];
|
|
177
|
-
const r = e.contextualTools.map((n) => ({
|
|
178
|
-
...n,
|
|
179
|
-
scope: "contextual"
|
|
180
|
-
})), u = e.globalTools.map((n) => ({
|
|
181
|
-
...n,
|
|
182
|
-
scope: "global"
|
|
183
|
-
}));
|
|
184
|
-
return [...r, ...u];
|
|
185
|
-
}, [e]);
|
|
186
|
-
}
|
|
187
|
-
function Go() {
|
|
188
|
-
const e = N(_), r = R(() => {
|
|
189
|
-
}, []);
|
|
190
|
-
return {
|
|
191
|
-
openTool: (e == null ? void 0 : e.openTool) ?? r,
|
|
192
|
-
closeTool: (e == null ? void 0 : e.closeTool) ?? r
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
function Oo() {
|
|
196
|
-
const e = N(_), r = R(() => {
|
|
197
|
-
}, []);
|
|
198
|
-
return (e == null ? void 0 : e.registerRail) ?? r;
|
|
199
|
-
}
|
|
200
|
-
function _o(e, r, u, n) {
|
|
201
|
-
const f = r.includes(e), v = u.includes(e);
|
|
202
|
-
if (!f && v) return { toolId: e, action: "pin" };
|
|
203
|
-
if (f && !v)
|
|
204
|
-
return n != null && n.includes(e) ? void 0 : { toolId: e, action: "unpin" };
|
|
205
|
-
const c = (y) => n != null && n.length ? [...n, ...y.filter((T) => !n.includes(T))] : y, p = c(r), i = c(u);
|
|
206
|
-
return p.length !== i.length || p.some((y, T) => i[T] !== y) ? { toolId: e, action: "reorder" } : void 0;
|
|
207
|
-
}
|
|
208
|
-
function I(e, r, u) {
|
|
209
|
-
const n = new Set(u), f = [], v = /* @__PURE__ */ new Map();
|
|
210
|
-
let c = null;
|
|
211
|
-
for (const i of e)
|
|
212
|
-
r(i) ? n.has(i) && (c = i) : c === null ? f.push(i) : v.set(c, [...v.get(c) ?? [], i]);
|
|
213
|
-
const p = [
|
|
214
|
-
...f,
|
|
215
|
-
...u.flatMap((i) => [i, ...v.get(i) ?? []])
|
|
216
|
-
];
|
|
217
|
-
return Array.from(new Set(p));
|
|
218
|
-
}
|
|
219
|
-
const Jo = wo(function({
|
|
220
|
-
tools: r,
|
|
221
|
-
railLabel: u,
|
|
222
|
-
reorderable: n = !0,
|
|
223
|
-
favoriteIds: f,
|
|
224
|
-
defaultFavoriteIds: v,
|
|
225
|
-
pinnedFavoriteIds: c,
|
|
226
|
-
onFavoriteIdsChange: p,
|
|
227
|
-
persistFavoritesKey: i = "ui.controlRoom.favorites",
|
|
228
|
-
activeToolId: a,
|
|
229
|
-
defaultActiveToolId: y = null,
|
|
230
|
-
onActiveToolChange: T,
|
|
231
|
-
panelWidth: j,
|
|
232
|
-
onPanelWidthChange: k,
|
|
233
|
-
persistPanelWidthKey: l,
|
|
234
|
-
...d
|
|
235
|
-
}, m) {
|
|
236
|
-
const { t: b } = Ao("ui"), [eo, to] = D(
|
|
237
|
-
a ?? y ?? null
|
|
238
|
-
), K = a !== void 0 ? a : eo, no = R(
|
|
239
|
-
(o) => {
|
|
240
|
-
a === void 0 && to(o), T == null || T(o);
|
|
241
|
-
},
|
|
242
|
-
[a, T]
|
|
243
|
-
), ro = Eo(), S = r ?? ro, z = f !== void 0, [so, lo] = W(
|
|
244
|
-
i,
|
|
245
|
-
() => v ?? S.filter((o) => o.scope === "global").map((o) => o.id),
|
|
246
|
-
{ disabled: z }
|
|
247
|
-
), U = z ? f : so, V = x(() => c != null && c.length ? [
|
|
248
|
-
...c,
|
|
249
|
-
...U.filter((o) => !c.includes(o))
|
|
250
|
-
] : U, [c, U]), q = j !== void 0, [io, Q] = W(l ?? "ui.controlRoom.panelWidth.unused", null, {
|
|
251
|
-
disabled: q || !l
|
|
252
|
-
}), co = q ? j : l ? io : void 0, ao = R(
|
|
253
|
-
(o) => {
|
|
254
|
-
!q && l && Q(o), k == null || k(o);
|
|
255
|
-
},
|
|
256
|
-
[
|
|
257
|
-
q,
|
|
258
|
-
l,
|
|
259
|
-
Q,
|
|
260
|
-
k
|
|
261
|
-
]
|
|
262
|
-
), h = x(() => {
|
|
263
|
-
const o = /* @__PURE__ */ new Map();
|
|
264
|
-
for (const s of S) o.set(s.id, s);
|
|
265
|
-
return o;
|
|
266
|
-
}, [S]), E = x(
|
|
267
|
-
() => new Set(V.filter((o) => h.has(o))),
|
|
268
|
-
[V, h]
|
|
269
|
-
), X = (o, s) => {
|
|
270
|
-
const t = (w) => h.has(w), g = V.filter(t), C = s(g);
|
|
271
|
-
z || lo(
|
|
272
|
-
(w) => I(w, t, s(w.filter(t)))
|
|
273
|
-
), p == null || p(
|
|
274
|
-
I(V, t, C),
|
|
275
|
-
_o(o, g, C, c)
|
|
276
|
-
);
|
|
277
|
-
}, $ = x(() => {
|
|
278
|
-
if (!n) return S;
|
|
279
|
-
const o = V.filter((t) => h.has(t)).map((t) => ({
|
|
280
|
-
...h.get(t),
|
|
281
|
-
scope: "global",
|
|
282
|
-
reorderable: !0
|
|
283
|
-
})), s = S.filter((t) => !E.has(t.id)).map((t) => ({
|
|
284
|
-
...t,
|
|
285
|
-
scope: "contextual",
|
|
286
|
-
reorderable: !0
|
|
287
|
-
}));
|
|
288
|
-
return [...o, ...s];
|
|
289
|
-
}, [n, S, V, h, E]), [uo, fo] = D(""), B = O(!1), po = (o, s) => {
|
|
290
|
-
const t = s ? b("controlRoom.pinnedAnnounce", {
|
|
291
|
-
tool: o,
|
|
292
|
-
defaultValue: "Pinned {{tool}} to favourites"
|
|
293
|
-
}) : b("controlRoom.unpinnedAnnounce", {
|
|
294
|
-
tool: o,
|
|
295
|
-
defaultValue: "Removed {{tool}} from favourites"
|
|
296
|
-
});
|
|
297
|
-
B.current = !B.current, fo(B.current ? t : `${t}`);
|
|
298
|
-
}, mo = (o) => {
|
|
299
|
-
var s;
|
|
300
|
-
po(((s = h.get(o)) == null ? void 0 : s.label) ?? o, !E.has(o)), X(
|
|
301
|
-
o,
|
|
302
|
-
(t) => t.includes(o) ? t.filter((g) => g !== o) : [...t, o]
|
|
303
|
-
);
|
|
304
|
-
}, go = (o, s) => {
|
|
305
|
-
var g;
|
|
306
|
-
const t = (g = $[o]) == null ? void 0 : g.id;
|
|
307
|
-
t !== void 0 && X(t, (C) => {
|
|
308
|
-
const w = C.filter((A) => h.has(A)), H = w.length;
|
|
309
|
-
if (o < H) {
|
|
310
|
-
if (s >= H) return w.filter((bo) => bo !== t);
|
|
311
|
-
const A = w.slice();
|
|
312
|
-
return A.splice(o, 1), A.splice(s, 0, t), A;
|
|
313
|
-
}
|
|
314
|
-
if (s <= H) {
|
|
315
|
-
const A = w.slice();
|
|
316
|
-
return A.splice(Math.min(s, H), 0, t), A;
|
|
317
|
-
}
|
|
318
|
-
return C;
|
|
319
|
-
});
|
|
320
|
-
}, Ro = ({
|
|
321
|
-
tool: o,
|
|
322
|
-
from: s,
|
|
323
|
-
to: t
|
|
324
|
-
}) => {
|
|
325
|
-
const g = E.size, C = s < g;
|
|
326
|
-
return C && t >= g ? b("controlRoom.unpinnedAnnounce", {
|
|
327
|
-
tool: o.label,
|
|
328
|
-
defaultValue: "Removed {{tool}} from favourites"
|
|
329
|
-
}) : !C && t <= g ? b("controlRoom.pinnedAnnounce", {
|
|
330
|
-
tool: o.label,
|
|
331
|
-
defaultValue: "Pinned {{tool}} to favourites"
|
|
332
|
-
}) : C && t < g ? b("controlRoom.reorderAnnounce", {
|
|
333
|
-
tool: o.label,
|
|
334
|
-
to: t + 1,
|
|
335
|
-
total: g,
|
|
336
|
-
defaultValue: "{{tool}} moved to position {{to}} of {{total}}"
|
|
337
|
-
}) : "";
|
|
338
|
-
}, G = O(null), J = Oo(), Y = O(h);
|
|
339
|
-
Y.current = h;
|
|
340
|
-
const Z = R((o) => {
|
|
341
|
-
const s = Y.current.get(o);
|
|
342
|
-
return s !== void 0 && !s.disabled;
|
|
343
|
-
}, []), vo = R(
|
|
344
|
-
(o) => {
|
|
345
|
-
G.current = o, J(o, Z), typeof m == "function" ? m(o) : m && (m.current = o);
|
|
346
|
-
},
|
|
347
|
-
[J, Z, m]
|
|
348
|
-
), L = K != null ? h.get(K) ?? null : null, To = L ? /* @__PURE__ */ P(ho, { children: [
|
|
349
|
-
n ? (() => {
|
|
350
|
-
const o = E.has(L.id);
|
|
351
|
-
return /* @__PURE__ */ M(
|
|
352
|
-
F,
|
|
353
|
-
{
|
|
354
|
-
icon: /* @__PURE__ */ M(
|
|
355
|
-
ko,
|
|
356
|
-
{
|
|
357
|
-
"aria-hidden": "true",
|
|
358
|
-
fill: o ? "currentColor" : "none",
|
|
359
|
-
className: o ? "ds:text-[color:var(--accent)]" : void 0
|
|
360
|
-
}
|
|
361
|
-
),
|
|
362
|
-
intent: "ghost",
|
|
363
|
-
size: "sm",
|
|
364
|
-
"aria-pressed": o,
|
|
365
|
-
"aria-label": b("controlRoom.favorite", {
|
|
366
|
-
defaultValue: "Favourite"
|
|
367
|
-
}),
|
|
368
|
-
onClick: () => mo(L.id)
|
|
369
|
-
}
|
|
370
|
-
);
|
|
371
|
-
})() : null,
|
|
372
|
-
/* @__PURE__ */ M(
|
|
373
|
-
F,
|
|
374
|
-
{
|
|
375
|
-
icon: /* @__PURE__ */ M(So, { "aria-hidden": "true" }),
|
|
376
|
-
intent: "ghost",
|
|
377
|
-
size: "sm",
|
|
378
|
-
"aria-label": b("controlRoom.close", { defaultValue: "Close" }),
|
|
379
|
-
onClick: () => {
|
|
380
|
-
var o;
|
|
381
|
-
return (o = G.current) == null ? void 0 : o.close();
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
)
|
|
385
|
-
] }) : null;
|
|
386
|
-
return /* @__PURE__ */ P(Mo, { actions: To, children: [
|
|
387
|
-
/* @__PURE__ */ M(
|
|
388
|
-
xo,
|
|
389
|
-
{
|
|
390
|
-
ref: vo,
|
|
391
|
-
dataComponent: "control-room-rail",
|
|
392
|
-
agentAdapter: Vo,
|
|
393
|
-
tools: $,
|
|
394
|
-
activeToolId: a,
|
|
395
|
-
defaultActiveToolId: y,
|
|
396
|
-
onActiveToolChange: no,
|
|
397
|
-
panelWidth: co,
|
|
398
|
-
onPanelWidthChange: ao,
|
|
399
|
-
railLabel: u ?? b("controlRoom.railLabel", { defaultValue: "Control room" }),
|
|
400
|
-
onReorder: n ? go : void 0,
|
|
401
|
-
formatReorderAnnouncement: n ? Ro : void 0,
|
|
402
|
-
...d
|
|
403
|
-
}
|
|
404
|
-
),
|
|
405
|
-
n ? /* @__PURE__ */ M("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: uo }) : null
|
|
406
|
-
] });
|
|
407
|
-
});
|
|
408
|
-
export {
|
|
409
|
-
Xo as C,
|
|
410
|
-
Jo as a,
|
|
411
|
-
Eo as b,
|
|
412
|
-
Vo as c,
|
|
413
|
-
$o as d,
|
|
414
|
-
Go as u
|
|
415
|
-
};
|
|
416
|
-
//# sourceMappingURL=control-room-rail-4W1MFY-g.js.map
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as p } from "react";
|
|
3
|
-
import { c as r } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { I as c } from "./icon-button-u9VMQn3x.js";
|
|
5
|
-
import { c as i } from "./createLucideIcon-DhHxpK9K.js";
|
|
6
|
-
/**
|
|
7
|
-
* @license lucide-react v1.22.0 - ISC
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the ISC license.
|
|
10
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
const m = [
|
|
13
|
-
["path", { d: "m16 18 6-6-6-6", key: "eg8j8" }],
|
|
14
|
-
["path", { d: "m8 6-6 6 6 6", key: "ppft3o" }]
|
|
15
|
-
], d = i("code", m), u = r("ds:shrink-0"), f = p(({ label: o, size: a = "md", className: e, ...s }, n) => /* @__PURE__ */ t(
|
|
16
|
-
c,
|
|
17
|
-
{
|
|
18
|
-
ref: n,
|
|
19
|
-
icon: /* @__PURE__ */ t(d, { "aria-hidden": "true" }),
|
|
20
|
-
intent: "outline",
|
|
21
|
-
size: a,
|
|
22
|
-
tooltip: o,
|
|
23
|
-
className: u({ className: e }),
|
|
24
|
-
...s,
|
|
25
|
-
type: "button",
|
|
26
|
-
"data-component": "dev-bypass-button"
|
|
27
|
-
}
|
|
28
|
-
));
|
|
29
|
-
f.displayName = "DevBypassButton";
|
|
30
|
-
export {
|
|
31
|
-
f as D
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=dev-bypass-button-BzfYGPuf.js.map
|