@alfadocs/ui-kit 0.1.9 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/dist/_chunks/accordion-DOmxGEWU.js +228 -0
- package/dist/_chunks/{agenda-card-DwLIxgi7.js → agenda-card-CalZqycc.js} +12 -3
- package/dist/_chunks/{agenda-tray-DUvengGQ.js → agenda-tray-3ffFDQZC.js} +54 -51
- package/dist/_chunks/{ai-prompt-input.agent-0NHYLTWD.js → ai-prompt-input-BBiDlEIS.js} +231 -231
- package/dist/_chunks/{alert-BlOUMkXj.js → alert-B1sj8Ss0.js} +24 -14
- package/dist/_chunks/{apexcharts-theme-BkSShpEy.js → apexcharts-theme-BJigns_V.js} +7 -2
- package/dist/_chunks/{app-frame-6d7Lu4ea.js → app-frame-CDJOgPXe.js} +7 -16
- package/dist/_chunks/{audio-recorder.agent--VKeykUp.js → audio-recorder-B4U1LuiQ.js} +161 -162
- package/dist/_chunks/{audio-visualiser-CeMPCZkd.js → audio-visualiser-ByDEFLNm.js} +25 -19
- package/dist/_chunks/autocomplete-D4oUZbsP.js +466 -0
- package/dist/_chunks/{badge-mrstWxve.js → badge-DKFbntoa.js} +16 -13
- package/dist/_chunks/{balance-cell-renderer-5CA7zpAi.js → balance-cell-renderer-B8zgIM-m.js} +63 -44
- package/dist/_chunks/{breadcrumb.agent-GM2hAKFX.js → breadcrumb-D1snXjPb.js} +165 -157
- package/dist/_chunks/{button-7mLWcMp_.js → button-DD_0Xdmr.js} +12 -2
- package/dist/_chunks/{calendar-nGEgelJs.js → calendar-zy0tUUVG.js} +13 -18
- package/dist/_chunks/{card-BEy58ZKp.js → card-CWzuTLYE.js} +40 -34
- package/dist/_chunks/{chart.agent-_pRYS17d.js → chart-BLvFl169.js} +147 -131
- package/dist/_chunks/chat-container-ClzsWXp2.js +220 -0
- package/dist/_chunks/chat-input-DOlsB1fm.js +333 -0
- package/dist/_chunks/{chat-message-ByouZpPP.js → chat-message-DoAhgUTj.js} +23 -13
- package/dist/_chunks/{collapsible.agent-DkS1jVyn.js → collapsible-CuxUBoHJ.js} +97 -99
- package/dist/_chunks/{color-picker-94qcBZqZ.js → color-picker-CTIcHlDF.js} +111 -45
- package/dist/_chunks/combobox-DCNXqbC7.js +460 -0
- package/dist/_chunks/command-palette-C_vgSgrI.js +441 -0
- package/dist/_chunks/{date-picker-BqPTn7bO.js → date-picker-B1PO1ZQP.js} +190 -181
- package/dist/_chunks/{date-range-picker-B2hGsffw.js → date-range-picker-mix2nEVC.js} +21 -8
- package/dist/_chunks/{date-time-picker-Bzt0S8yO.js → date-time-picker-Dnong_BY.js} +30 -15
- package/dist/_chunks/{description-list-DvJbp6Yg.js → description-list-BYA77Yud.js} +26 -23
- package/dist/_chunks/dialog-BPD7wlGE.js +211 -0
- package/dist/_chunks/dropdown-menu-CpiF6CPz.js +300 -0
- package/dist/_chunks/{empty-state-DQPtRp2b.js → empty-state-3CLJIXSj.js} +132 -101
- package/dist/_chunks/file-upload-C947ACDK.js +829 -0
- package/dist/_chunks/{floating-action-button-Cnw-f6AG.js → floating-action-button-C8OYj8mE.js} +9 -2
- package/dist/_chunks/{form-field-BfsPLTSc.js → form-field-Bmkeh7WY.js} +12 -11
- package/dist/_chunks/{form-field-context-94LwgYTQ.js → form-field-context-B3APVHKx.js} +4 -2
- package/dist/_chunks/{freemium-paywall.agent-_nQqLyRF.js → freemium-paywall-CnvceDav.js} +124 -117
- package/dist/_chunks/{header-BGn1mRp8.js → header-D0ULgQl3.js} +69 -68
- package/dist/_chunks/{icon-button-Wnnde5lc.js → icon-button-C4CGcYuz.js} +11 -3
- package/dist/_chunks/{kbd-8baVw3KU.js → kbd-Cglkd7CY.js} +6 -2
- package/dist/_chunks/{key-value-pair-JRFS9Xrh.js → key-value-pair-CgWvAIGb.js} +2 -2
- package/dist/_chunks/{leo-sidebar-BwINPdix.js → leo-sidebar-CfEY-xi2.js} +16 -20
- package/dist/_chunks/{link-QheANk74.js → link-8QmFjIz2.js} +2 -5
- package/dist/_chunks/list-qP6p0NTw.js +434 -0
- package/dist/_chunks/{logo-BpFoCL-s.js → logo-_Z-jLq80.js} +155 -26
- package/dist/_chunks/{matrix-rain-BEkvux64.js → matrix-rain-CRPMXcVx.js} +8 -2
- package/dist/_chunks/{message-card-qhoGv947.js → message-card-ChCX9Iv6.js} +63 -60
- package/dist/_chunks/{message-tray-xHUCra-Y.js → message-tray-n8q9ITXI.js} +71 -76
- package/dist/_chunks/{multi-select.agent-Do6CeQUT.js → multi-select-wqqrgjUQ.js} +326 -291
- package/dist/_chunks/{navigation-menu.agent-D69ND6Qq.js → navigation-menu-ClbHeawy.js} +136 -123
- package/dist/_chunks/{notification-card-CsVEYJE-.js → notification-card-hBlPN1-c.js} +3 -3
- package/dist/_chunks/{notification-tray-DTXMq42J.js → notification-tray-C5cnXbl9.js} +70 -66
- package/dist/_chunks/{number-input-fvGmnRy9.js → number-input-Q7wkHnvQ.js} +7 -3
- package/dist/_chunks/{otp-input-EglXOUue.js → otp-input-C9gUByF0.js} +6 -3
- package/dist/_chunks/{pagination.agent-BkZQl45y.js → pagination-3AC4zTsi.js} +234 -194
- package/dist/_chunks/{password-input-D6kuYXmr.js → password-input-C4LmjIH1.js} +6 -9
- package/dist/_chunks/{patient-shell-BRmrrUUW.js → patient-shell-BlsEUKWB.js} +10 -15
- package/dist/_chunks/{payment-form-BWaXas8z.js → payment-form-C3vT_npe.js} +195 -186
- package/dist/_chunks/{pdf-viewer.agent-BaGEDheA.js → pdf-viewer-CZIfY08H.js} +270 -241
- package/dist/_chunks/{phone-input-C8Op4sEc.js → phone-input-CSHJOJ13.js} +4 -9
- package/dist/_chunks/popover-DekUKNBk.js +293 -0
- package/dist/_chunks/{privacy-lock.agent-C1i1-T58.js → privacy-lock-BKsI6ReN.js} +117 -109
- package/dist/_chunks/progress-C11tqhoI.js +298 -0
- package/dist/_chunks/{recaptcha-widget.agent-BGHpU5zD.js → recaptcha-widget-NyfOfLII.js} +95 -86
- package/dist/_chunks/resizable-mpXXyIsN.js +483 -0
- package/dist/_chunks/{rich-text-editor.agent-DnE125Tz.js → rich-text-editor-C7TCIlQO.js} +298 -209
- package/dist/_chunks/{scroll-area-DLr5w9Dd.js → scroll-area-DEDU-lp-.js} +67 -54
- package/dist/_chunks/{search-bar.agent-DxFAxctc.js → search-bar-BTDfgYtg.js} +291 -268
- package/dist/_chunks/{search-input-Xw3cdWXW.js → search-input-CdJIEjFo.js} +116 -107
- package/dist/_chunks/{select-DY1Cb2Tg.js → select-y6bXV1f1.js} +84 -83
- package/dist/_chunks/{separator-B4wXDLNC.js → separator-CYU_bGFn.js} +2 -5
- package/dist/_chunks/{sheet-B9kH9pcI.js → sheet-4tgMFwj0.js} +135 -60
- package/dist/_chunks/{sidebar-CHF5xr_P.js → sidebar-Bx3wCDyy.js} +546 -457
- package/dist/_chunks/{sign-in-with-alfadocs-button-BN_FPGHT.js → sign-in-with-alfadocs-button-B9UrqOqH.js} +9 -5
- package/dist/_chunks/{signature-capture.agent-BpeDwFht.js → signature-capture-DjMlFOzS.js} +210 -212
- package/dist/_chunks/{skeleton-dtqyF09N.js → skeleton-CZbwyJAA.js} +9 -3
- package/dist/_chunks/{slider-CcsQTZTA.js → slider-BT2bZWsy.js} +138 -134
- package/dist/_chunks/{slot-grid-D_l5VsHG.js → slot-grid-CgpYgBkW.js} +105 -95
- package/dist/_chunks/{sparkline.agent-56Sj7nOP.js → sparkline-_gy8aJDG.js} +107 -100
- package/dist/_chunks/{spinner-GCcv67vh.js → spinner-DLaYfLPl.js} +66 -14
- package/dist/_chunks/{stat-DUB6g90R.js → stat-B9PHSPbN.js} +45 -27
- package/dist/_chunks/{stepper-calendar.agent-9iT3ClIB.js → stepper-calendar-BLOJUE0-.js} +189 -187
- package/dist/_chunks/stepper-progress-jFY8BSf7.js +208 -0
- package/dist/_chunks/{suggestion-chip-DhFrkRPj.js → suggestion-chip-C4Jz0LrM.js} +50 -52
- package/dist/_chunks/{switch-BYEH8I53.js → switch-C0psfIQF.js} +2 -2
- package/dist/_chunks/{tabs.agent-h7NvsTR1.js → tabs-DaFA3Muo.js} +183 -155
- package/dist/_chunks/{tag-BqidXKo3.js → tag-DuLMjRbF.js} +90 -32
- package/dist/_chunks/{task-card-CY5ztNkU.js → task-card-Dw_ZJDL8.js} +5 -2
- package/dist/_chunks/{task-tray-CCoUdorl.js → task-tray-XlIW9ueh.js} +50 -49
- package/dist/_chunks/{text-area-C_M8wliK.js → text-area-CO9Dz0qX.js} +2 -2
- package/dist/_chunks/{text-input-BX39e6T6.js → text-input-DZwt9L8H.js} +65 -62
- package/dist/_chunks/{theme-root-DDb0TJjd.js → theme-root-CSKD5ZRm.js} +9 -2
- package/dist/_chunks/{theme-toggle.agent-btmXTWdW.js → theme-toggle-B9zzCnvl.js} +179 -177
- package/dist/_chunks/{time-picker-B8AMIrX7.js → time-picker-DvPUmHH-.js} +95 -93
- package/dist/_chunks/{timeline.agent-CRPza9wc.js → timeline-BvmnQadS.js} +96 -96
- package/dist/_chunks/{toast.agent-BjEGuq1Z.js → toast.agent-BwKXA0km.js} +46 -8
- package/dist/_chunks/{tooth-scheme.agent-CWrQBjJM.js → tooth-scheme-3mITSXiZ.js} +146 -162
- package/dist/_chunks/{transcript-panel.agent-BXEYP6w-.js → transcript-panel-Bx5ANMsv.js} +110 -101
- package/dist/_chunks/{typing-indicator-CbUBf-Dx.js → typing-indicator-BZ5jXZPn.js} +27 -5
- package/dist/_chunks/{use-theme-BMUhembX.js → use-theme-B1cwAXJR.js} +2 -5
- package/dist/_chunks/{visually-hidden-Bw7vBHLm.js → visually-hidden-BHxEUGyT.js} +11 -2
- package/dist/_chunks/{warning-stack-8Pa3pekh.js → warning-stack-VygGHSqC.js} +11 -13
- package/dist/_chunks/{workflow-map-D2A7rTEG.js → workflow-map-C-nlogPC.js} +430 -452
- package/dist/agent-catalog.json +580 -15
- package/dist/components/_shared/index.d.ts +2 -2
- package/dist/components/accordion/index.d.ts +1 -1
- package/dist/components/accordion/index.js +5 -6
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/agenda-tray.d.ts +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-prompt-input/ai-prompt-input.d.ts +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/alert/index.d.ts +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/app-frame/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/audio-visualiser/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/chart/index.d.ts +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/chat-container.d.ts +1 -1
- package/dist/components/chat-container/index.js +2 -3
- package/dist/components/chat-input/chat-input.d.ts +1 -1
- package/dist/components/chat-input/index.js +3 -4
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/checkbox-group/index.d.ts +1 -1
- package/dist/components/collapsible/collapsible.d.ts +1 -1
- package/dist/components/collapsible/index.d.ts +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/command-palette.d.ts +46 -13
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/data-table/data-table.d.ts +3 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/data-table/toolbar.d.ts +6 -5
- package/dist/components/date-picker/date-picker.d.ts +1 -1
- package/dist/components/date-picker/index.d.ts +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.d.ts +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/description-list.d.ts +1 -2
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dialog/dialog.d.ts +2 -2
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -16
- package/dist/components/dropdown-menu/index.js +3 -4
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-upload/index.d.ts +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/floating-action-button/index.js +1 -1
- package/dist/components/form-field/index.js +2 -2
- package/dist/components/freemium-paywall/freemium-paywall.d.ts +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/kbd/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/matrix-rain/index.js +1 -1
- package/dist/components/message-card/index.d.ts +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/message-tray/message-tray.d.ts +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/navigation-menu/index.js +1 -1
- package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
- package/dist/components/notification-card/index.d.ts +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/notification-tray/notification-tray.d.ts +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/pagination.d.ts +4 -6
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/payment-form/index.js +7 -8
- package/dist/components/payment-form/payment-form.d.ts +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/phone-input/index.d.ts +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +3 -4
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/privacy-lock/privacy-lock.d.ts +1 -1
- package/dist/components/progress/index.js +3 -4
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/resizable/index.d.ts +1 -1
- package/dist/components/resizable/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-bar/search-bar.d.ts +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/separator/index.js +1 -1
- package/dist/components/sheet/index.js +3 -4
- package/dist/components/sheet/sheet.d.ts +2 -2
- package/dist/components/sidebar/index.js +7 -8
- package/dist/components/sidebar/sidebar.d.ts +0 -2
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stepper-calendar/index.js +1 -1
- package/dist/components/stepper-calendar/stepper-calendar.d.ts +1 -1
- package/dist/components/stepper-progress/index.d.ts +1 -1
- package/dist/components/stepper-progress/index.js +1 -2
- package/dist/components/stepper-progress/stepper-progress.d.ts +1 -1
- package/dist/components/suggestion-chip/index.js +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/task-tray/task-tray.d.ts +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/theme-root/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/theme-toggle/theme-toggle.d.ts +1 -1
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/time-picker/time-picker.d.ts +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/timeline/timeline.d.ts +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/tooth-scheme/tooth-scheme.d.ts +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/transcript-panel/transcript-panel.d.ts +1 -1
- package/dist/components/typing-indicator/index.js +1 -1
- package/dist/components/visually-hidden/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/components/workflow/workflow-editor.d.ts +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +392 -402
- package/dist/patterns/leo-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/safe-html/index.js +20 -3
- package/dist/tokens.css +2 -2
- package/package.json +12 -2
- package/dist/_chunks/accordion-BEnrZmAn.js +0 -120
- package/dist/_chunks/accordion.agent-BTjeO1Sx.js +0 -52
- package/dist/_chunks/autocomplete.agent-Dh7KioS6.js +0 -432
- package/dist/_chunks/chat-container-Dl0Kfy5a.js +0 -175
- package/dist/_chunks/chat-container.agent-CM4WModE.js +0 -27
- package/dist/_chunks/chat-input-C_tMQv92.js +0 -252
- package/dist/_chunks/chat-input.agent-Bsz3ckGa.js +0 -69
- package/dist/_chunks/combobox.agent-CAvUkkIe.js +0 -410
- package/dist/_chunks/command-palette.agent-HatEt_EM.js +0 -391
- package/dist/_chunks/dialog.agent-Daf1TTko.js +0 -179
- package/dist/_chunks/dropdown-menu-C7AZipNz.js +0 -219
- package/dist/_chunks/dropdown-menu.agent-BcxIKOjK.js +0 -43
- package/dist/_chunks/file-upload.agent-DJaH2dHg.js +0 -681
- package/dist/_chunks/list.agent-D0iWt4VI.js +0 -420
- package/dist/_chunks/payment-form.agent-kuIfodCj.js +0 -31
- package/dist/_chunks/popover-kFN8s84V.js +0 -229
- package/dist/_chunks/popover.agent-K_d1cfbj.js +0 -39
- package/dist/_chunks/progress-wNsqkw8I.js +0 -253
- package/dist/_chunks/progress.agent-C68rDOXL.js +0 -27
- package/dist/_chunks/resizable.agent-CMwZzvsi.js +0 -456
- package/dist/_chunks/sheet.agent-QAyTOxgk.js +0 -46
- package/dist/_chunks/sidebar.agent-C9TM_ZDZ.js +0 -49
- package/dist/_chunks/stepper-progress-Bmen-YXB.js +0 -149
- package/dist/_chunks/stepper-progress.agent-q9InWca4.js +0 -61
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import { jsx as t, jsxs as u, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { C } from "./card-
|
|
6
|
-
import { B as
|
|
7
|
-
import { K as
|
|
8
|
-
import { T as
|
|
9
|
-
import { I as
|
|
1
|
+
import { jsx as t, jsxs as u, Fragment as ve } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as O, useMemo as R, useRef as j, useCallback as W, useState as ge, useImperativeHandle as ke, useEffect as ye } from "react";
|
|
3
|
+
import { c as L } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as z } from "react-i18next";
|
|
5
|
+
import { C } from "./card-CWzuTLYE.js";
|
|
6
|
+
import { B as be } from "./badge-DKFbntoa.js";
|
|
7
|
+
import { K as Z } from "./key-value-pair-CgWvAIGb.js";
|
|
8
|
+
import { T as xe } from "./timestamp-BV2lC-wV.js";
|
|
9
|
+
import { I as S } from "./icon-button-C4CGcYuz.js";
|
|
10
10
|
import { c as _ } from "./createLucideIcon-CrFbzy84.js";
|
|
11
|
-
import { C as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { C as
|
|
22
|
-
import { C as
|
|
23
|
-
import { C as
|
|
11
|
+
import { C as Ne } from "./circle-BkqTgYmt.js";
|
|
12
|
+
import { u as Ce } from "./registry-C9nwlNyL.js";
|
|
13
|
+
import { A as V } from "./alert-B1sj8Ss0.js";
|
|
14
|
+
import { B as _e } from "./button-DD_0Xdmr.js";
|
|
15
|
+
import { D as N } from "./dropdown-menu-CpiF6CPz.js";
|
|
16
|
+
import { E } from "./empty-state-3CLJIXSj.js";
|
|
17
|
+
import { P as ae } from "./plus-CYKNmfuA.js";
|
|
18
|
+
import { G as ne } from "./globe-BkEFMNSg.js";
|
|
19
|
+
import { S as de } from "./square-check-big-Jr-0202D.js";
|
|
20
|
+
import { M as ie } from "./mail-C8irm52s.js";
|
|
21
|
+
import { C as le } from "./clock-21AGPWJ5.js";
|
|
22
|
+
import { C as Me } from "./chevron-up-zOEDrmBB.js";
|
|
23
|
+
import { C as Se } from "./chevron-down-BX_NP2Yh.js";
|
|
24
|
+
import { C as ze } from "./check-DPdL_Sm7.js";
|
|
24
25
|
/**
|
|
25
26
|
* @license lucide-react v1.8.0 - ISC
|
|
26
27
|
*
|
|
27
28
|
* This source code is licensed under the ISC license.
|
|
28
29
|
* See the LICENSE file in the root directory of this source tree.
|
|
29
30
|
*/
|
|
30
|
-
const
|
|
31
|
+
const je = [
|
|
31
32
|
["path", { d: "M10.1 2.182a10 10 0 0 1 3.8 0", key: "5ilxe3" }],
|
|
32
33
|
["path", { d: "M13.9 21.818a10 10 0 0 1-3.8 0", key: "11zvb9" }],
|
|
33
34
|
["path", { d: "M17.609 3.721a10 10 0 0 1 2.69 2.7", key: "1iw5b2" }],
|
|
@@ -36,38 +37,38 @@ const Me = [
|
|
|
36
37
|
["path", { d: "M21.818 10.1a10 10 0 0 1 0 3.8", key: "qkgqxc" }],
|
|
37
38
|
["path", { d: "M3.721 6.391a10 10 0 0 1 2.7-2.69", key: "1mcia2" }],
|
|
38
39
|
["path", { d: "M6.391 20.279a10 10 0 0 1-2.69-2.7", key: "1fvljs" }]
|
|
39
|
-
],
|
|
40
|
+
], Ae = _("circle-dashed", je);
|
|
40
41
|
/**
|
|
41
42
|
* @license lucide-react v1.8.0 - ISC
|
|
42
43
|
*
|
|
43
44
|
* This source code is licensed under the ISC license.
|
|
44
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
45
46
|
*/
|
|
46
|
-
const
|
|
47
|
+
const Ie = [
|
|
47
48
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
48
49
|
["line", { x1: "10", x2: "10", y1: "15", y2: "9", key: "c1nkhi" }],
|
|
49
50
|
["line", { x1: "14", x2: "14", y1: "15", y2: "9", key: "h65svq" }]
|
|
50
|
-
],
|
|
51
|
+
], Te = _("circle-pause", Ie);
|
|
51
52
|
/**
|
|
52
53
|
* @license lucide-react v1.8.0 - ISC
|
|
53
54
|
*
|
|
54
55
|
* This source code is licensed under the ISC license.
|
|
55
56
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
57
|
*/
|
|
57
|
-
const
|
|
58
|
+
const Ee = [
|
|
58
59
|
["path", { d: "M13 5h8", key: "a7qcls" }],
|
|
59
60
|
["path", { d: "M13 12h8", key: "h98zly" }],
|
|
60
61
|
["path", { d: "M13 19h8", key: "c3s6r1" }],
|
|
61
62
|
["path", { d: "m3 17 2 2 4-4", key: "1jhpwq" }],
|
|
62
63
|
["path", { d: "m3 7 2 2 4-4", key: "1obspn" }]
|
|
63
|
-
],
|
|
64
|
+
], Le = _("list-checks", Ee);
|
|
64
65
|
/**
|
|
65
66
|
* @license lucide-react v1.8.0 - ISC
|
|
66
67
|
*
|
|
67
68
|
* This source code is licensed under the ISC license.
|
|
68
69
|
* See the LICENSE file in the root directory of this source tree.
|
|
69
70
|
*/
|
|
70
|
-
const
|
|
71
|
+
const De = [
|
|
71
72
|
[
|
|
72
73
|
"path",
|
|
73
74
|
{
|
|
@@ -75,14 +76,14 @@ const Te = [
|
|
|
75
76
|
key: "1sd12s"
|
|
76
77
|
}
|
|
77
78
|
]
|
|
78
|
-
],
|
|
79
|
+
], ce = _("message-circle", De);
|
|
79
80
|
/**
|
|
80
81
|
* @license lucide-react v1.8.0 - ISC
|
|
81
82
|
*
|
|
82
83
|
* This source code is licensed under the ISC license.
|
|
83
84
|
* See the LICENSE file in the root directory of this source tree.
|
|
84
85
|
*/
|
|
85
|
-
const
|
|
86
|
+
const Ke = [
|
|
86
87
|
[
|
|
87
88
|
"path",
|
|
88
89
|
{
|
|
@@ -91,59 +92,59 @@ const Ee = [
|
|
|
91
92
|
}
|
|
92
93
|
],
|
|
93
94
|
["path", { d: "m15 5 4 4", key: "1mk7zo" }]
|
|
94
|
-
], U = _("pencil",
|
|
95
|
+
], U = _("pencil", Ke);
|
|
95
96
|
/**
|
|
96
97
|
* @license lucide-react v1.8.0 - ISC
|
|
97
98
|
*
|
|
98
99
|
* This source code is licensed under the ISC license.
|
|
99
100
|
* See the LICENSE file in the root directory of this source tree.
|
|
100
101
|
*/
|
|
101
|
-
const
|
|
102
|
+
const Be = [
|
|
102
103
|
["path", { d: "M18.36 6.64A9 9 0 0 1 20.77 15", key: "dxknvb" }],
|
|
103
104
|
["path", { d: "M6.16 6.16a9 9 0 1 0 12.68 12.68", key: "1x7qb5" }],
|
|
104
105
|
["path", { d: "M12 2v4", key: "3427ic" }],
|
|
105
106
|
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
106
|
-
],
|
|
107
|
+
], qe = _("power-off", Be);
|
|
107
108
|
/**
|
|
108
109
|
* @license lucide-react v1.8.0 - ISC
|
|
109
110
|
*
|
|
110
111
|
* This source code is licensed under the ISC license.
|
|
111
112
|
* See the LICENSE file in the root directory of this source tree.
|
|
112
113
|
*/
|
|
113
|
-
const
|
|
114
|
+
const Pe = [
|
|
114
115
|
["path", { d: "M12 2v10", key: "mnfbl" }],
|
|
115
116
|
["path", { d: "M18.4 6.6a9 9 0 1 1-12.77.04", key: "obofu9" }]
|
|
116
|
-
],
|
|
117
|
+
], $e = _("power", Pe);
|
|
117
118
|
/**
|
|
118
119
|
* @license lucide-react v1.8.0 - ISC
|
|
119
120
|
*
|
|
120
121
|
* This source code is licensed under the ISC license.
|
|
121
122
|
* See the LICENSE file in the root directory of this source tree.
|
|
122
123
|
*/
|
|
123
|
-
const
|
|
124
|
+
const Re = [
|
|
124
125
|
["rect", { width: "14", height: "20", x: "5", y: "2", rx: "2", ry: "2", key: "1yt0o3" }],
|
|
125
126
|
["path", { d: "M12 18h.01", key: "mhygvu" }]
|
|
126
|
-
],
|
|
127
|
+
], ue = _("smartphone", Re);
|
|
127
128
|
/**
|
|
128
129
|
* @license lucide-react v1.8.0 - ISC
|
|
129
130
|
*
|
|
130
131
|
* This source code is licensed under the ISC license.
|
|
131
132
|
* See the LICENSE file in the root directory of this source tree.
|
|
132
133
|
*/
|
|
133
|
-
const
|
|
134
|
+
const We = [
|
|
134
135
|
["path", { d: "M10 11v6", key: "nco0om" }],
|
|
135
136
|
["path", { d: "M14 11v6", key: "outv1u" }],
|
|
136
137
|
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
137
138
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
138
139
|
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
139
|
-
],
|
|
140
|
+
], fe = _("trash-2", We);
|
|
140
141
|
/**
|
|
141
142
|
* @license lucide-react v1.8.0 - ISC
|
|
142
143
|
*
|
|
143
144
|
* This source code is licensed under the ISC license.
|
|
144
145
|
* See the LICENSE file in the root directory of this source tree.
|
|
145
146
|
*/
|
|
146
|
-
const
|
|
147
|
+
const Fe = [
|
|
147
148
|
["path", { d: "M10 15H6a4 4 0 0 0-4 4v2", key: "1nfge6" }],
|
|
148
149
|
["path", { d: "m14.305 16.53.923-.382", key: "1itpsq" }],
|
|
149
150
|
["path", { d: "m15.228 13.852-.923-.383", key: "eplpkm" }],
|
|
@@ -155,7 +156,7 @@ const $e = [
|
|
|
155
156
|
["path", { d: "m20.772 16.148.924.383", key: "1g6xey" }],
|
|
156
157
|
["circle", { cx: "18", cy: "15", r: "3", key: "gjjjvw" }],
|
|
157
158
|
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }]
|
|
158
|
-
],
|
|
159
|
+
], me = _("user-cog", Fe), Ve = L("ds:relative ds:w-full", {
|
|
159
160
|
variants: {
|
|
160
161
|
density: {
|
|
161
162
|
comfortable: "",
|
|
@@ -166,27 +167,27 @@ const $e = [
|
|
|
166
167
|
density: "comfortable"
|
|
167
168
|
}
|
|
168
169
|
});
|
|
169
|
-
function
|
|
170
|
+
function He(e) {
|
|
170
171
|
switch (e) {
|
|
171
172
|
case "active":
|
|
172
173
|
return {
|
|
173
174
|
badgeVariant: "success",
|
|
174
|
-
icon: /* @__PURE__ */ t(
|
|
175
|
+
icon: /* @__PURE__ */ t(Ne, { className: "ds:fill-current", "aria-hidden": "true" })
|
|
175
176
|
};
|
|
176
177
|
case "paused":
|
|
177
178
|
return {
|
|
178
179
|
badgeVariant: "warning",
|
|
179
|
-
icon: /* @__PURE__ */ t(
|
|
180
|
+
icon: /* @__PURE__ */ t(Te, { "aria-hidden": "true" })
|
|
180
181
|
};
|
|
181
182
|
case "inactive":
|
|
182
183
|
default:
|
|
183
184
|
return {
|
|
184
185
|
badgeVariant: "neutral",
|
|
185
|
-
icon: /* @__PURE__ */ t(
|
|
186
|
+
icon: /* @__PURE__ */ t(Ae, { "aria-hidden": "true" })
|
|
186
187
|
};
|
|
187
188
|
}
|
|
188
189
|
}
|
|
189
|
-
const
|
|
190
|
+
const Oe = O(
|
|
190
191
|
function({
|
|
191
192
|
workflow: s,
|
|
192
193
|
density: r = "comfortable",
|
|
@@ -196,10 +197,10 @@ const Fe = H(
|
|
|
196
197
|
onToggleActive: a,
|
|
197
198
|
className: p
|
|
198
199
|
}, m) {
|
|
199
|
-
const { t: c } =
|
|
200
|
+
const { t: c } = z(), d = He(s.status), l = s.status === "active", v = r === "compact", h = (w) => (y) => {
|
|
200
201
|
y.stopPropagation(), w == null || w();
|
|
201
202
|
}, b = /* @__PURE__ */ t(
|
|
202
|
-
|
|
203
|
+
be,
|
|
203
204
|
{
|
|
204
205
|
variant: d.badgeVariant,
|
|
205
206
|
leading: d.icon,
|
|
@@ -212,7 +213,7 @@ const Fe = H(
|
|
|
212
213
|
{
|
|
213
214
|
ref: m,
|
|
214
215
|
variant: "default",
|
|
215
|
-
className:
|
|
216
|
+
className: Ve({ density: r, className: p }),
|
|
216
217
|
"data-component": "workflow-card",
|
|
217
218
|
"data-component-id": s.id,
|
|
218
219
|
children: [
|
|
@@ -249,14 +250,14 @@ const Fe = H(
|
|
|
249
250
|
] }) }),
|
|
250
251
|
!v && /* @__PURE__ */ u(C.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
251
252
|
/* @__PURE__ */ t(
|
|
252
|
-
|
|
253
|
+
Z,
|
|
253
254
|
{
|
|
254
255
|
label: c("workflow.card.activeEnrollments"),
|
|
255
256
|
value: s.stats.activeEnrollments
|
|
256
257
|
}
|
|
257
258
|
),
|
|
258
259
|
/* @__PURE__ */ t(
|
|
259
|
-
|
|
260
|
+
Z,
|
|
260
261
|
{
|
|
261
262
|
label: c("workflow.card.totalEnrollments"),
|
|
262
263
|
value: s.stats.totalEnrollments
|
|
@@ -267,7 +268,7 @@ const Fe = H(
|
|
|
267
268
|
/* @__PURE__ */ u("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-xs)] type-body-sm ds:text-[color:var(--muted-foreground)]", children: [
|
|
268
269
|
/* @__PURE__ */ t("span", { className: "ds:truncate", title: s.createdBy, children: c("workflow.createdBy", { name: s.createdBy }) }),
|
|
269
270
|
s.updatedAt && /* @__PURE__ */ t(
|
|
270
|
-
|
|
271
|
+
xe,
|
|
271
272
|
{
|
|
272
273
|
value: s.updatedAt,
|
|
273
274
|
format: "absolute",
|
|
@@ -279,7 +280,7 @@ const Fe = H(
|
|
|
279
280
|
] }),
|
|
280
281
|
/* @__PURE__ */ u("div", { className: "ds:relative ds:z-10 ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-xs)] ds:ms-auto", children: [
|
|
281
282
|
i && /* @__PURE__ */ t(
|
|
282
|
-
|
|
283
|
+
S,
|
|
283
284
|
{
|
|
284
285
|
icon: /* @__PURE__ */ t(U, {}),
|
|
285
286
|
size: "sm",
|
|
@@ -289,23 +290,21 @@ const Fe = H(
|
|
|
289
290
|
}
|
|
290
291
|
),
|
|
291
292
|
a && /* @__PURE__ */ t(
|
|
292
|
-
|
|
293
|
+
S,
|
|
293
294
|
{
|
|
294
|
-
icon: l ? /* @__PURE__ */ t(
|
|
295
|
+
icon: l ? /* @__PURE__ */ t(qe, {}) : /* @__PURE__ */ t($e, {}),
|
|
295
296
|
size: "sm",
|
|
296
297
|
intent: "ghost",
|
|
297
298
|
"aria-label": c(
|
|
298
299
|
l ? "workflow.card.deactivate" : "workflow.card.activate"
|
|
299
300
|
),
|
|
300
|
-
onClick: h(
|
|
301
|
-
() => a(s.id, !l)
|
|
302
|
-
)
|
|
301
|
+
onClick: h(() => a(s.id, !l))
|
|
303
302
|
}
|
|
304
303
|
),
|
|
305
304
|
n && /* @__PURE__ */ t(
|
|
306
|
-
|
|
305
|
+
S,
|
|
307
306
|
{
|
|
308
|
-
icon: /* @__PURE__ */ t(
|
|
307
|
+
icon: /* @__PURE__ */ t(fe, {}),
|
|
309
308
|
size: "sm",
|
|
310
309
|
intent: "destructive",
|
|
311
310
|
"aria-label": c("workflow.card.delete"),
|
|
@@ -319,12 +318,93 @@ const Fe = H(
|
|
|
319
318
|
);
|
|
320
319
|
}
|
|
321
320
|
);
|
|
322
|
-
|
|
321
|
+
Oe.displayName = "WorkflowCard";
|
|
322
|
+
const Rt = {
|
|
323
|
+
id: "workflow-card",
|
|
324
|
+
capabilities: ["navigate"],
|
|
325
|
+
state: {},
|
|
326
|
+
actions: {},
|
|
327
|
+
domHooks: {
|
|
328
|
+
root: {
|
|
329
|
+
attr: "data-component",
|
|
330
|
+
value: "workflow-card",
|
|
331
|
+
description: "Marks a Workflow summary card. Presentational — actions are owned by the host pattern."
|
|
332
|
+
},
|
|
333
|
+
instanceId: {
|
|
334
|
+
attr: "data-component-id",
|
|
335
|
+
sourceProp: "id",
|
|
336
|
+
description: "Sourced from the id prop."
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}, Wt = {
|
|
340
|
+
id: "workflow-map",
|
|
341
|
+
capabilities: ["navigate"],
|
|
342
|
+
state: {},
|
|
343
|
+
actions: {},
|
|
344
|
+
domHooks: {
|
|
345
|
+
root: {
|
|
346
|
+
attr: "data-component",
|
|
347
|
+
value: "workflow-map",
|
|
348
|
+
description: "Marks a Workflow map (linear visualisation). Presentational."
|
|
349
|
+
},
|
|
350
|
+
instanceId: {
|
|
351
|
+
attr: "data-component-id",
|
|
352
|
+
sourceProp: "id",
|
|
353
|
+
description: "Sourced from the id prop."
|
|
354
|
+
},
|
|
355
|
+
item: {
|
|
356
|
+
attr: "data-node-id",
|
|
357
|
+
description: "Stable opaque workflow node id emitted on each step."
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}, Ue = {
|
|
361
|
+
id: "workflow-editor",
|
|
362
|
+
capabilities: ["navigate", "expand"],
|
|
363
|
+
state: {
|
|
364
|
+
totalSteps: {
|
|
365
|
+
type: "number",
|
|
366
|
+
descriptionKey: "ui.agent.workflowEditor.state.totalSteps",
|
|
367
|
+
description: "Total number of nodes currently in the workflow graph.",
|
|
368
|
+
read: (e) => e.getTotalSteps()
|
|
369
|
+
},
|
|
370
|
+
currentStep: {
|
|
371
|
+
type: "string | null",
|
|
372
|
+
descriptionKey: "ui.agent.workflowEditor.state.currentStep",
|
|
373
|
+
description: "Opaque node id of the currently-focused step, or null.",
|
|
374
|
+
read: (e) => e.getCurrentStep()
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
actions: {
|
|
378
|
+
goto_step: {
|
|
379
|
+
safety: "read",
|
|
380
|
+
argsType: "{ id: string }",
|
|
381
|
+
descriptionKey: "ui.agent.workflowEditor.actions.gotoStep",
|
|
382
|
+
description: "Focus a node by its opaque id.",
|
|
383
|
+
invoke: (e, s) => {
|
|
384
|
+
e.gotoStep(s.id);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
domHooks: {
|
|
389
|
+
root: {
|
|
390
|
+
attr: "data-component",
|
|
391
|
+
value: "workflow-editor",
|
|
392
|
+
description: "Marks the WorkflowEditor surface."
|
|
393
|
+
},
|
|
394
|
+
instanceId: {
|
|
395
|
+
attr: "data-component-id",
|
|
396
|
+
sourceProp: "id",
|
|
397
|
+
description: "Sourced from the id prop."
|
|
398
|
+
},
|
|
399
|
+
item: {
|
|
400
|
+
attr: "data-node-id",
|
|
401
|
+
description: "Stable opaque workflow node id emitted on each node card."
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
};
|
|
323
405
|
function G(e) {
|
|
324
406
|
if (e.nodes.length === 0) return [];
|
|
325
|
-
const s = e.edges.filter(
|
|
326
|
-
(d) => d.condition == null
|
|
327
|
-
), r = new Set(s.map((d) => d.to)), i = e.nodes.filter((d) => !r.has(d.id))[0] ?? e.nodes[0], n = new Map(e.nodes.map((d) => [d.id, d])), a = /* @__PURE__ */ new Map();
|
|
407
|
+
const s = e.edges.filter((d) => d.condition == null), r = new Set(s.map((d) => d.to)), i = e.nodes.filter((d) => !r.has(d.id))[0] ?? e.nodes[0], n = new Map(e.nodes.map((d) => [d.id, d])), a = /* @__PURE__ */ new Map();
|
|
328
408
|
for (const d of s) {
|
|
329
409
|
const l = a.get(d.from) ?? [];
|
|
330
410
|
l.push(d), a.set(d.from, l);
|
|
@@ -342,7 +422,7 @@ function G(e) {
|
|
|
342
422
|
p.has(d.id) || m.push(d);
|
|
343
423
|
return m;
|
|
344
424
|
}
|
|
345
|
-
function
|
|
425
|
+
function H(e, s, r) {
|
|
346
426
|
const o = [...e.nodes, r];
|
|
347
427
|
if (s === null) {
|
|
348
428
|
const a = e.nodes[0];
|
|
@@ -375,23 +455,18 @@ function O(e, s, r) {
|
|
|
375
455
|
]
|
|
376
456
|
};
|
|
377
457
|
}
|
|
378
|
-
function
|
|
458
|
+
function ee(e, s) {
|
|
379
459
|
const r = e.edges.find(
|
|
380
460
|
(a) => a.to === s && a.condition == null
|
|
381
461
|
), o = e.edges.find(
|
|
382
462
|
(a) => a.from === s && a.condition == null
|
|
383
|
-
), i = e.edges.filter(
|
|
384
|
-
(a) => a.from !== s && a.to !== s
|
|
385
|
-
), n = r && o ? [
|
|
386
|
-
...i,
|
|
387
|
-
{ from: r.from, to: o.to, condition: null }
|
|
388
|
-
] : i;
|
|
463
|
+
), i = e.edges.filter((a) => a.from !== s && a.to !== s), n = r && o ? [...i, { from: r.from, to: o.to, condition: null }] : i;
|
|
389
464
|
return {
|
|
390
465
|
nodes: e.nodes.filter((a) => a.id !== s),
|
|
391
466
|
edges: n
|
|
392
467
|
};
|
|
393
468
|
}
|
|
394
|
-
function
|
|
469
|
+
function Ge(e, s, r) {
|
|
395
470
|
var h;
|
|
396
471
|
const o = G(e), i = o.findIndex((b) => b.id === s);
|
|
397
472
|
if (i === -1) return e;
|
|
@@ -399,10 +474,10 @@ function Ve(e, s, r) {
|
|
|
399
474
|
if (n < 0 || n >= o.length) return e;
|
|
400
475
|
const a = o[i], p = o[n];
|
|
401
476
|
if (!a || !p) return e;
|
|
402
|
-
const m =
|
|
403
|
-
return
|
|
477
|
+
const m = ee(ee(e, a.id), p.id), c = r === "up" ? a : p, d = r === "up" ? p : a, l = ((h = o[Math.min(i, n) - 1]) == null ? void 0 : h.id) ?? null, v = H(m, l, c);
|
|
478
|
+
return H(v, c.id, d);
|
|
404
479
|
}
|
|
405
|
-
const
|
|
480
|
+
const Ye = /* @__PURE__ */ new Set([
|
|
406
481
|
"dateOfBirth",
|
|
407
482
|
"date_of_birth",
|
|
408
483
|
"firstName",
|
|
@@ -422,10 +497,10 @@ const Oe = /* @__PURE__ */ new Set([
|
|
|
422
497
|
"address",
|
|
423
498
|
"id"
|
|
424
499
|
]);
|
|
425
|
-
function
|
|
426
|
-
return
|
|
500
|
+
function Je(e) {
|
|
501
|
+
return Ye.has(e);
|
|
427
502
|
}
|
|
428
|
-
const
|
|
503
|
+
const D = {
|
|
429
504
|
add_delay: {
|
|
430
505
|
labelKey: "workflow.action.addDelay",
|
|
431
506
|
iconName: "Clock"
|
|
@@ -454,27 +529,27 @@ const B = {
|
|
|
454
529
|
labelKey: "workflow.action.webhook",
|
|
455
530
|
iconName: "Globe"
|
|
456
531
|
}
|
|
457
|
-
},
|
|
458
|
-
Clock:
|
|
459
|
-
Mail:
|
|
460
|
-
Smartphone:
|
|
461
|
-
CheckSquare:
|
|
462
|
-
MessageCircle:
|
|
463
|
-
UserCog:
|
|
464
|
-
Globe:
|
|
532
|
+
}, Qe = {
|
|
533
|
+
Clock: le,
|
|
534
|
+
Mail: ie,
|
|
535
|
+
Smartphone: ue,
|
|
536
|
+
CheckSquare: de,
|
|
537
|
+
MessageCircle: ce,
|
|
538
|
+
UserCog: me,
|
|
539
|
+
Globe: ne
|
|
465
540
|
};
|
|
466
541
|
function Y({
|
|
467
542
|
iconName: e,
|
|
468
543
|
className: s
|
|
469
544
|
}) {
|
|
470
|
-
const r =
|
|
545
|
+
const r = Qe[e];
|
|
471
546
|
return /* @__PURE__ */ t(r, { "aria-hidden": "true", className: s ?? "ds:size-4" });
|
|
472
547
|
}
|
|
473
|
-
const
|
|
474
|
-
function
|
|
548
|
+
const Xe = 40, Ze = 60;
|
|
549
|
+
function te(e, s) {
|
|
475
550
|
return e.length <= s ? e : `${e.slice(0, s - 1)}…`;
|
|
476
551
|
}
|
|
477
|
-
function
|
|
552
|
+
function et(e, s) {
|
|
478
553
|
switch (e.kind) {
|
|
479
554
|
case "add_delay": {
|
|
480
555
|
const r = e.days ?? 0, o = s("workflow.delay.summary", { count: r });
|
|
@@ -482,11 +557,11 @@ function Je(e, s) {
|
|
|
482
557
|
}
|
|
483
558
|
case "send_email": {
|
|
484
559
|
const r = e.subject ?? "", i = `${s("workflow.action.sendEmail")}: ${r}`;
|
|
485
|
-
return { text:
|
|
560
|
+
return { text: te(i, Xe), full: i };
|
|
486
561
|
}
|
|
487
562
|
case "send_sms": {
|
|
488
563
|
const r = e.body ?? "";
|
|
489
|
-
return { text:
|
|
564
|
+
return { text: te(r, Ze), full: r };
|
|
490
565
|
}
|
|
491
566
|
case "create_task": {
|
|
492
567
|
const r = e.title ?? "";
|
|
@@ -500,12 +575,12 @@ function Je(e, s) {
|
|
|
500
575
|
return null;
|
|
501
576
|
}
|
|
502
577
|
}
|
|
503
|
-
const
|
|
578
|
+
const se = [
|
|
504
579
|
"ds:flex ds:flex-col",
|
|
505
580
|
"ds:w-full",
|
|
506
581
|
"ds:text-start",
|
|
507
582
|
"ds:gap-[var(--spacing-sm)]"
|
|
508
|
-
].join(" "),
|
|
583
|
+
].join(" "), F = [
|
|
509
584
|
"ds:block",
|
|
510
585
|
"ds:self-start",
|
|
511
586
|
"ds:h-[var(--spacing-md)]",
|
|
@@ -513,7 +588,7 @@ const ee = [
|
|
|
513
588
|
"ds:border-inline-start-[var(--border-width-hairline)]",
|
|
514
589
|
"ds:border-solid",
|
|
515
590
|
"ds:border-[color:var(--border)]"
|
|
516
|
-
].join(" "),
|
|
591
|
+
].join(" "), tt = [
|
|
517
592
|
"ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
|
|
518
593
|
"ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
|
|
519
594
|
"ds:rounded-[var(--radius-full)]",
|
|
@@ -528,21 +603,21 @@ const ee = [
|
|
|
528
603
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
529
604
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
530
605
|
"ds:disabled:opacity-50 ds:disabled:cursor-not-allowed"
|
|
531
|
-
].join(" "),
|
|
606
|
+
].join(" "), st = [
|
|
532
607
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
533
608
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
534
609
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
535
610
|
"ds:rounded-[var(--radius-lg)]"
|
|
536
|
-
].join(" "),
|
|
537
|
-
|
|
611
|
+
].join(" "), rt = Object.keys(
|
|
612
|
+
D
|
|
538
613
|
);
|
|
539
|
-
let
|
|
540
|
-
function
|
|
541
|
-
|
|
614
|
+
let re = 0;
|
|
615
|
+
function ot() {
|
|
616
|
+
re += 1;
|
|
542
617
|
const e = Math.random().toString(36).slice(2, 8);
|
|
543
|
-
return `wf-node-${Date.now()}-${
|
|
618
|
+
return `wf-node-${Date.now()}-${re}-${e}`;
|
|
544
619
|
}
|
|
545
|
-
function
|
|
620
|
+
function at(e) {
|
|
546
621
|
switch (e) {
|
|
547
622
|
case "add_delay":
|
|
548
623
|
return { kind: "add_delay", days: 1 };
|
|
@@ -565,13 +640,13 @@ function tt(e) {
|
|
|
565
640
|
return { kind: "webhook", url: "", method: "POST" };
|
|
566
641
|
}
|
|
567
642
|
}
|
|
568
|
-
function
|
|
569
|
-
const s =
|
|
643
|
+
function nt(e = 0) {
|
|
644
|
+
const s = j(e), r = W((o) => {
|
|
570
645
|
s.current = o;
|
|
571
646
|
}, []);
|
|
572
647
|
return [s, r];
|
|
573
648
|
}
|
|
574
|
-
function
|
|
649
|
+
function dt({
|
|
575
650
|
node: e,
|
|
576
651
|
position: s,
|
|
577
652
|
total: r,
|
|
@@ -581,143 +656,139 @@ function rt({
|
|
|
581
656
|
onMove: a,
|
|
582
657
|
registerRef: p
|
|
583
658
|
}) {
|
|
584
|
-
const { t: m } =
|
|
659
|
+
const { t: m } = z(), c = D[e.type], d = j(null), [l, v] = nt(0), h = W(
|
|
585
660
|
(g) => {
|
|
586
|
-
var
|
|
587
|
-
const
|
|
661
|
+
var q, P;
|
|
662
|
+
const M = (q = d.current) == null ? void 0 : q.querySelectorAll(
|
|
588
663
|
"button[data-wf-control]:not([disabled])"
|
|
589
664
|
);
|
|
590
|
-
if (!
|
|
591
|
-
const
|
|
592
|
-
(
|
|
665
|
+
if (!M || M.length === 0) return;
|
|
666
|
+
const B = Math.max(0, Math.min(g, M.length - 1));
|
|
667
|
+
(P = M[B]) == null || P.focus(), v(B);
|
|
593
668
|
},
|
|
594
669
|
[v]
|
|
595
670
|
), b = (g) => {
|
|
596
671
|
g.target === g.currentTarget && (g.key === "ArrowRight" || g.key === "ArrowDown") && (g.preventDefault(), h(0));
|
|
597
672
|
}, x = (g) => {
|
|
598
673
|
g.key === "ArrowRight" ? (g.preventDefault(), h(l.current + 1)) : g.key === "ArrowLeft" ? (g.preventDefault(), h(l.current - 1)) : g.key === "Home" ? (g.preventDefault(), h(0)) : g.key === "End" && (g.preventDefault(), h(Number.POSITIVE_INFINITY));
|
|
599
|
-
}, w =
|
|
674
|
+
}, w = et(e.settings, m), y = m(c.labelKey), A = s > 0, I = s < r - 1, K = m("workflow.editor.position", {
|
|
600
675
|
current: s + 1,
|
|
601
676
|
total: r
|
|
602
|
-
}),
|
|
677
|
+
}), T = m("workflow.editor.nodeAriaLabel", {
|
|
603
678
|
type: y,
|
|
604
679
|
current: s + 1,
|
|
605
680
|
total: r
|
|
606
681
|
});
|
|
607
|
-
return
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
682
|
+
return (
|
|
683
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions -- node card is keyboard-actionable via roving tabindex; pipeline keys handled in onKeyDown
|
|
684
|
+
/* @__PURE__ */ t(
|
|
685
|
+
"div",
|
|
686
|
+
{
|
|
687
|
+
ref: (g) => p(e.id, g),
|
|
688
|
+
tabIndex: o ? -1 : 0,
|
|
689
|
+
onKeyDown: b,
|
|
690
|
+
"aria-label": T,
|
|
691
|
+
"data-node-id": e.id,
|
|
692
|
+
className: st,
|
|
693
|
+
children: /* @__PURE__ */ u(C, { variant: "outlined", children: [
|
|
694
|
+
/* @__PURE__ */ t(C.Header, { className: "ds:pb-[var(--spacing-sm)]", children: /* @__PURE__ */ u("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
695
|
+
/* @__PURE__ */ t(
|
|
696
|
+
"span",
|
|
697
|
+
{
|
|
698
|
+
"aria-hidden": "true",
|
|
699
|
+
className: "ds:inline-flex ds:size-8 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-[var(--radius-sm)] ds:bg-[color:var(--muted)]/20 ds:text-[color:var(--foreground)]",
|
|
700
|
+
children: /* @__PURE__ */ t(Y, { iconName: c.iconName, className: "ds:size-4" })
|
|
701
|
+
}
|
|
702
|
+
),
|
|
703
|
+
/* @__PURE__ */ u("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col", children: [
|
|
704
|
+
/* @__PURE__ */ t("span", { className: "ds:text-[length:var(--font-size-sm)] ds:font-[var(--font-weight-semibold)] ds:text-[color:var(--foreground)] ds:[overflow-wrap:anywhere] ds:break-words", children: y }),
|
|
705
|
+
/* @__PURE__ */ t("span", { className: "ds:text-[length:var(--font-size-xs)] ds:text-[color:var(--muted-foreground)]", children: K })
|
|
706
|
+
] }),
|
|
707
|
+
/* @__PURE__ */ u(
|
|
708
|
+
"div",
|
|
709
|
+
{
|
|
710
|
+
ref: d,
|
|
711
|
+
onKeyDown: x,
|
|
712
|
+
className: "ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-xs)] ds:ms-auto",
|
|
713
|
+
children: [
|
|
714
|
+
i ? /* @__PURE__ */ t(
|
|
715
|
+
S,
|
|
716
|
+
{
|
|
717
|
+
"data-wf-control": "edit",
|
|
718
|
+
icon: /* @__PURE__ */ t(U, {}),
|
|
719
|
+
size: "sm",
|
|
720
|
+
intent: "ghost",
|
|
721
|
+
disabled: o,
|
|
722
|
+
tabIndex: -1,
|
|
723
|
+
"aria-label": m("workflow.editor.editAction"),
|
|
724
|
+
onClick: () => i(e.id)
|
|
725
|
+
}
|
|
726
|
+
) : null,
|
|
727
|
+
/* @__PURE__ */ t(
|
|
728
|
+
S,
|
|
729
|
+
{
|
|
730
|
+
"data-wf-control": "up",
|
|
731
|
+
icon: /* @__PURE__ */ t(Me, {}),
|
|
732
|
+
size: "sm",
|
|
733
|
+
intent: "ghost",
|
|
734
|
+
disabled: o || !A,
|
|
735
|
+
tabIndex: -1,
|
|
736
|
+
"aria-label": m("workflow.editor.moveUp"),
|
|
737
|
+
onClick: () => a(e.id, "up")
|
|
738
|
+
}
|
|
739
|
+
),
|
|
740
|
+
/* @__PURE__ */ t(
|
|
741
|
+
S,
|
|
742
|
+
{
|
|
743
|
+
"data-wf-control": "down",
|
|
744
|
+
icon: /* @__PURE__ */ t(Se, {}),
|
|
745
|
+
size: "sm",
|
|
746
|
+
intent: "ghost",
|
|
747
|
+
disabled: o || !I,
|
|
748
|
+
tabIndex: -1,
|
|
749
|
+
"aria-label": m("workflow.editor.moveDown"),
|
|
750
|
+
onClick: () => a(e.id, "down")
|
|
751
|
+
}
|
|
752
|
+
),
|
|
753
|
+
n ? /* @__PURE__ */ t(
|
|
754
|
+
S,
|
|
755
|
+
{
|
|
756
|
+
"data-wf-control": "delete",
|
|
757
|
+
icon: /* @__PURE__ */ t(fe, {}),
|
|
758
|
+
size: "sm",
|
|
759
|
+
intent: "destructive",
|
|
760
|
+
disabled: o,
|
|
761
|
+
tabIndex: -1,
|
|
762
|
+
"aria-label": m("workflow.editor.deleteAction"),
|
|
763
|
+
onClick: () => n(e.id)
|
|
764
|
+
}
|
|
765
|
+
) : null
|
|
766
|
+
]
|
|
767
|
+
}
|
|
768
|
+
)
|
|
769
|
+
] }) }),
|
|
770
|
+
w ? /* @__PURE__ */ t(C.Body, { className: "ds:pt-0", children: /* @__PURE__ */ t(
|
|
771
|
+
"p",
|
|
620
772
|
{
|
|
621
|
-
"
|
|
622
|
-
|
|
623
|
-
children:
|
|
773
|
+
className: "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--muted-foreground)] ds:[overflow-wrap:anywhere] ds:break-words",
|
|
774
|
+
title: w.full,
|
|
775
|
+
children: w.text
|
|
624
776
|
}
|
|
625
|
-
),
|
|
626
|
-
/* @__PURE__ */
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
/* @__PURE__ */ u(
|
|
631
|
-
"div",
|
|
632
|
-
{
|
|
633
|
-
ref: d,
|
|
634
|
-
onKeyDown: x,
|
|
635
|
-
className: "ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-xs)] ds:ms-auto",
|
|
636
|
-
children: [
|
|
637
|
-
i ? /* @__PURE__ */ t(
|
|
638
|
-
M,
|
|
639
|
-
{
|
|
640
|
-
"data-wf-control": "edit",
|
|
641
|
-
icon: /* @__PURE__ */ t(U, {}),
|
|
642
|
-
size: "sm",
|
|
643
|
-
intent: "ghost",
|
|
644
|
-
disabled: o,
|
|
645
|
-
tabIndex: -1,
|
|
646
|
-
"aria-label": m("workflow.editor.editAction"),
|
|
647
|
-
onClick: () => i(e.id)
|
|
648
|
-
}
|
|
649
|
-
) : null,
|
|
650
|
-
/* @__PURE__ */ t(
|
|
651
|
-
M,
|
|
652
|
-
{
|
|
653
|
-
"data-wf-control": "up",
|
|
654
|
-
icon: /* @__PURE__ */ t(Ne, {}),
|
|
655
|
-
size: "sm",
|
|
656
|
-
intent: "ghost",
|
|
657
|
-
disabled: o || !j,
|
|
658
|
-
tabIndex: -1,
|
|
659
|
-
"aria-label": m("workflow.editor.moveUp"),
|
|
660
|
-
onClick: () => a(e.id, "up")
|
|
661
|
-
}
|
|
662
|
-
),
|
|
663
|
-
/* @__PURE__ */ t(
|
|
664
|
-
M,
|
|
665
|
-
{
|
|
666
|
-
"data-wf-control": "down",
|
|
667
|
-
icon: /* @__PURE__ */ t(Ce, {}),
|
|
668
|
-
size: "sm",
|
|
669
|
-
intent: "ghost",
|
|
670
|
-
disabled: o || !I,
|
|
671
|
-
tabIndex: -1,
|
|
672
|
-
"aria-label": m("workflow.editor.moveDown"),
|
|
673
|
-
onClick: () => a(e.id, "down")
|
|
674
|
-
}
|
|
675
|
-
),
|
|
676
|
-
n ? /* @__PURE__ */ t(
|
|
677
|
-
M,
|
|
678
|
-
{
|
|
679
|
-
"data-wf-control": "delete",
|
|
680
|
-
icon: /* @__PURE__ */ t(ce, {}),
|
|
681
|
-
size: "sm",
|
|
682
|
-
intent: "destructive",
|
|
683
|
-
disabled: o,
|
|
684
|
-
tabIndex: -1,
|
|
685
|
-
"aria-label": m("workflow.editor.deleteAction"),
|
|
686
|
-
onClick: () => n(e.id)
|
|
687
|
-
}
|
|
688
|
-
) : null
|
|
689
|
-
]
|
|
690
|
-
}
|
|
691
|
-
)
|
|
692
|
-
] }) }),
|
|
693
|
-
w ? /* @__PURE__ */ t(C.Body, { className: "ds:pt-0", children: /* @__PURE__ */ t(
|
|
694
|
-
"p",
|
|
695
|
-
{
|
|
696
|
-
className: "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--muted-foreground)] ds:[overflow-wrap:anywhere] ds:break-words",
|
|
697
|
-
title: w.full,
|
|
698
|
-
children: w.text
|
|
699
|
-
}
|
|
700
|
-
) }) : null,
|
|
701
|
-
e.settings.kind === "update_patient_field" && He(e.settings.fieldId) ? /* @__PURE__ */ t(C.Body, { className: "ds:pt-0", children: /* @__PURE__ */ t(
|
|
702
|
-
V,
|
|
703
|
-
{
|
|
704
|
-
variant: "error",
|
|
705
|
-
"data-testid": "workflow-editor-invalid-field",
|
|
706
|
-
children: m("workflow.editor.invalidField")
|
|
707
|
-
}
|
|
708
|
-
) }) : null
|
|
709
|
-
] })
|
|
710
|
-
}
|
|
777
|
+
) }) : null,
|
|
778
|
+
e.settings.kind === "update_patient_field" && Je(e.settings.fieldId) ? /* @__PURE__ */ t(C.Body, { className: "ds:pt-0", children: /* @__PURE__ */ t(V, { variant: "error", "data-testid": "workflow-editor-invalid-field", children: m("workflow.editor.invalidField") }) }) : null
|
|
779
|
+
] })
|
|
780
|
+
}
|
|
781
|
+
)
|
|
711
782
|
);
|
|
712
783
|
}
|
|
713
|
-
function
|
|
784
|
+
function oe({
|
|
714
785
|
availableActions: e,
|
|
715
786
|
onSelect: s,
|
|
716
787
|
disabled: r,
|
|
717
788
|
label: o,
|
|
718
789
|
compact: i = !0
|
|
719
790
|
}) {
|
|
720
|
-
const { t: n } =
|
|
791
|
+
const { t: n } = z();
|
|
721
792
|
return /* @__PURE__ */ u(N.Root, { children: [
|
|
722
793
|
/* @__PURE__ */ t(N.Trigger, { asChild: !0, children: /* @__PURE__ */ u(
|
|
723
794
|
"button",
|
|
@@ -725,9 +796,9 @@ function se({
|
|
|
725
796
|
type: "button",
|
|
726
797
|
disabled: r,
|
|
727
798
|
"aria-label": o,
|
|
728
|
-
className:
|
|
799
|
+
className: tt,
|
|
729
800
|
children: [
|
|
730
|
-
/* @__PURE__ */ t(
|
|
801
|
+
/* @__PURE__ */ t(ae, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
731
802
|
i ? null : /* @__PURE__ */ t("span", { className: "ds:text-[length:var(--font-size-sm)]", children: o })
|
|
732
803
|
]
|
|
733
804
|
}
|
|
@@ -735,7 +806,7 @@ function se({
|
|
|
735
806
|
/* @__PURE__ */ u(N.Content, { align: "start", sideOffset: 6, children: [
|
|
736
807
|
/* @__PURE__ */ t(N.Label, { children: n("workflow.editor.addAction") }),
|
|
737
808
|
e.map((a) => {
|
|
738
|
-
const p =
|
|
809
|
+
const p = D[a];
|
|
739
810
|
return /* @__PURE__ */ t(
|
|
740
811
|
N.Item,
|
|
741
812
|
{
|
|
@@ -749,15 +820,15 @@ function se({
|
|
|
749
820
|
] })
|
|
750
821
|
] });
|
|
751
822
|
}
|
|
752
|
-
function
|
|
753
|
-
const { t: o } =
|
|
823
|
+
function it({ criteria: e, onEdit: s, disabled: r }) {
|
|
824
|
+
const { t: o } = z(), i = (e == null ? void 0 : e.ruleCount) ?? 0, n = i > 0 ? o("workflow.editor.criteriaCount", { count: i }) : o("workflow.editor.noCriteria");
|
|
754
825
|
return /* @__PURE__ */ t(C, { variant: "outlined", children: /* @__PURE__ */ t(C.Header, { className: "ds:pb-[var(--spacing-sm)]", children: /* @__PURE__ */ u("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
755
826
|
/* @__PURE__ */ u("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col", children: [
|
|
756
827
|
/* @__PURE__ */ t("span", { className: "ds:text-[length:var(--font-size-sm)] ds:font-[var(--font-weight-semibold)] ds:text-[color:var(--foreground)]", children: o("workflow.editor.enrollmentCriteria") }),
|
|
757
828
|
/* @__PURE__ */ t("span", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--muted-foreground)] ds:[overflow-wrap:anywhere] ds:break-words", children: (e == null ? void 0 : e.summary) ?? n })
|
|
758
829
|
] }),
|
|
759
830
|
s ? /* @__PURE__ */ t(
|
|
760
|
-
|
|
831
|
+
S,
|
|
761
832
|
{
|
|
762
833
|
icon: /* @__PURE__ */ t(U, {}),
|
|
763
834
|
size: "sm",
|
|
@@ -769,7 +840,7 @@ function ot({ criteria: e, onEdit: s, disabled: r }) {
|
|
|
769
840
|
) : null
|
|
770
841
|
] }) }) });
|
|
771
842
|
}
|
|
772
|
-
const
|
|
843
|
+
const lt = O(
|
|
773
844
|
function({
|
|
774
845
|
graph: s,
|
|
775
846
|
onChange: r,
|
|
@@ -781,74 +852,75 @@ const at = H(
|
|
|
781
852
|
onDeleteNode: m,
|
|
782
853
|
className: c
|
|
783
854
|
}, d) {
|
|
784
|
-
const { t: l } =
|
|
855
|
+
const { t: l } = z(), v = a ?? rt, h = R(() => G(s), [s]), b = j(/* @__PURE__ */ new Map()), x = j(null), w = W(
|
|
785
856
|
(f) => {
|
|
786
857
|
n || r(f);
|
|
787
858
|
},
|
|
788
859
|
[n, r]
|
|
789
|
-
), y = W(
|
|
790
|
-
(f, k)
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
d,
|
|
860
|
+
), y = W((f, k) => {
|
|
861
|
+
k ? b.current.set(f, k) : b.current.delete(f);
|
|
862
|
+
}, []), [A, I] = ge(null), K = j(null);
|
|
863
|
+
K.current = A;
|
|
864
|
+
const T = j(null);
|
|
865
|
+
ke(d, () => T.current, []);
|
|
866
|
+
const g = R(
|
|
797
867
|
() => ({
|
|
798
868
|
getTotalSteps: () => h.length,
|
|
799
|
-
getCurrentStep: () =>
|
|
869
|
+
getCurrentStep: () => K.current,
|
|
800
870
|
gotoStep: (f) => {
|
|
801
871
|
const k = b.current.get(f);
|
|
802
872
|
k && (k.focus(), I(f));
|
|
803
873
|
}
|
|
804
874
|
}),
|
|
805
875
|
[h.length]
|
|
806
|
-
)
|
|
876
|
+
);
|
|
877
|
+
Ce(Ue, g, void 0), ye(() => {
|
|
807
878
|
const f = x.current;
|
|
808
879
|
if (!f) return;
|
|
809
880
|
const k = b.current.get(f);
|
|
810
881
|
k && (k.focus(), x.current = null);
|
|
811
882
|
});
|
|
812
|
-
const
|
|
883
|
+
const M = (f, k) => {
|
|
813
884
|
if (n) return;
|
|
814
885
|
const $ = {
|
|
815
|
-
id:
|
|
886
|
+
id: ot(),
|
|
816
887
|
type: k,
|
|
817
|
-
settings:
|
|
888
|
+
settings: at(k)
|
|
818
889
|
};
|
|
819
|
-
x.current = $.id, w(
|
|
820
|
-
},
|
|
821
|
-
n || (x.current = f, w(
|
|
822
|
-
},
|
|
890
|
+
x.current = $.id, w(H(s, f, $));
|
|
891
|
+
}, B = (f, k) => {
|
|
892
|
+
n || (x.current = f, w(Ge(s, f, k)));
|
|
893
|
+
}, q = (f) => {
|
|
823
894
|
n || !p || p(f);
|
|
824
895
|
}, P = (f) => {
|
|
825
896
|
n || !m || m(f);
|
|
826
|
-
},
|
|
897
|
+
}, J = () => n ? /* @__PURE__ */ t(V, { variant: "warning", children: /* @__PURE__ */ t(V.Title, { as: "p", children: l("workflow.editor.activeLock") }) }) : null, Q = () => o || i ? /* @__PURE__ */ u(ve, { children: [
|
|
827
898
|
/* @__PURE__ */ t(
|
|
828
|
-
|
|
899
|
+
it,
|
|
829
900
|
{
|
|
830
901
|
criteria: o,
|
|
831
902
|
onEdit: i,
|
|
832
903
|
disabled: n
|
|
833
904
|
}
|
|
834
905
|
),
|
|
835
|
-
/* @__PURE__ */ t("span", { "aria-hidden": "true", className:
|
|
836
|
-
] }) : null,
|
|
837
|
-
return
|
|
906
|
+
/* @__PURE__ */ t("span", { "aria-hidden": "true", className: F })
|
|
907
|
+
] }) : null, X = h.length;
|
|
908
|
+
return X === 0 ? /* @__PURE__ */ u(
|
|
838
909
|
"div",
|
|
839
910
|
{
|
|
840
|
-
|
|
911
|
+
ref: T,
|
|
912
|
+
className: [se, c].filter(Boolean).join(" "),
|
|
841
913
|
children: [
|
|
842
|
-
|
|
843
|
-
|
|
914
|
+
J(),
|
|
915
|
+
Q(),
|
|
844
916
|
/* @__PURE__ */ u(
|
|
845
|
-
|
|
917
|
+
E,
|
|
846
918
|
{
|
|
847
919
|
variant: "first-use",
|
|
848
920
|
title: l("workflow.editor.addFirstAction"),
|
|
849
921
|
description: l("workflow.editor.empty"),
|
|
850
922
|
children: [
|
|
851
|
-
/* @__PURE__ */ t(
|
|
923
|
+
/* @__PURE__ */ t(E.Illustration, { children: /* @__PURE__ */ u(
|
|
852
924
|
"svg",
|
|
853
925
|
{
|
|
854
926
|
viewBox: "0 0 120 120",
|
|
@@ -892,22 +964,22 @@ const at = H(
|
|
|
892
964
|
]
|
|
893
965
|
}
|
|
894
966
|
) }),
|
|
895
|
-
/* @__PURE__ */ t(
|
|
896
|
-
/* @__PURE__ */ t(
|
|
897
|
-
/* @__PURE__ */ t(
|
|
898
|
-
/* @__PURE__ */ t(N.Trigger, { asChild: !0, children: /* @__PURE__ */ u(
|
|
899
|
-
/* @__PURE__ */ t(
|
|
967
|
+
/* @__PURE__ */ t(E.Title, { children: l("workflow.editor.addFirstAction") }),
|
|
968
|
+
/* @__PURE__ */ t(E.Description, { children: l("workflow.editor.empty") }),
|
|
969
|
+
/* @__PURE__ */ t(E.Actions, { children: /* @__PURE__ */ u(N.Root, { children: [
|
|
970
|
+
/* @__PURE__ */ t(N.Trigger, { asChild: !0, children: /* @__PURE__ */ u(_e, { intent: "primary", disabled: n, children: [
|
|
971
|
+
/* @__PURE__ */ t(ae, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
900
972
|
/* @__PURE__ */ t("span", { children: l("workflow.editor.addFirstAction") })
|
|
901
973
|
] }) }),
|
|
902
974
|
/* @__PURE__ */ u(N.Content, { align: "center", sideOffset: 6, children: [
|
|
903
975
|
/* @__PURE__ */ t(N.Label, { children: l("workflow.editor.addAction") }),
|
|
904
976
|
v.map((f) => {
|
|
905
|
-
const k =
|
|
977
|
+
const k = D[f];
|
|
906
978
|
return /* @__PURE__ */ t(
|
|
907
979
|
N.Item,
|
|
908
980
|
{
|
|
909
981
|
startIcon: /* @__PURE__ */ t(Y, { iconName: k.iconName }),
|
|
910
|
-
onSelect: () =>
|
|
982
|
+
onSelect: () => M(null, f),
|
|
911
983
|
children: l(k.labelKey)
|
|
912
984
|
},
|
|
913
985
|
f
|
|
@@ -923,18 +995,19 @@ const at = H(
|
|
|
923
995
|
) : /* @__PURE__ */ u(
|
|
924
996
|
"div",
|
|
925
997
|
{
|
|
998
|
+
ref: T,
|
|
926
999
|
"data-component": "workflow-editor",
|
|
927
|
-
className: [
|
|
1000
|
+
className: [se, c].filter(Boolean).join(" "),
|
|
928
1001
|
children: [
|
|
929
|
-
|
|
930
|
-
|
|
1002
|
+
J(),
|
|
1003
|
+
Q(),
|
|
931
1004
|
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
932
|
-
|
|
1005
|
+
oe,
|
|
933
1006
|
{
|
|
934
1007
|
availableActions: v,
|
|
935
1008
|
disabled: n,
|
|
936
1009
|
label: l("workflow.editor.addAction"),
|
|
937
|
-
onSelect: (f) =>
|
|
1010
|
+
onSelect: (f) => M(null, f)
|
|
938
1011
|
}
|
|
939
1012
|
) }),
|
|
940
1013
|
/* @__PURE__ */ t(
|
|
@@ -944,28 +1017,28 @@ const at = H(
|
|
|
944
1017
|
"aria-label": l("workflow.editor.pipeline"),
|
|
945
1018
|
className: "ds:list-none ds:m-0 ds:p-0 ds:flex ds:flex-col",
|
|
946
1019
|
children: h.map((f, k) => /* @__PURE__ */ u("li", { className: "ds:list-none ds:flex ds:flex-col", children: [
|
|
947
|
-
/* @__PURE__ */ t("span", { "aria-hidden": "true", className:
|
|
1020
|
+
/* @__PURE__ */ t("span", { "aria-hidden": "true", className: F }),
|
|
948
1021
|
/* @__PURE__ */ t(
|
|
949
|
-
|
|
1022
|
+
dt,
|
|
950
1023
|
{
|
|
951
1024
|
node: f,
|
|
952
1025
|
position: k,
|
|
953
|
-
total:
|
|
1026
|
+
total: X,
|
|
954
1027
|
disabled: n,
|
|
955
|
-
onEdit: p ?
|
|
1028
|
+
onEdit: p ? q : void 0,
|
|
956
1029
|
onDelete: m ? P : void 0,
|
|
957
|
-
onMove:
|
|
1030
|
+
onMove: B,
|
|
958
1031
|
registerRef: y
|
|
959
1032
|
}
|
|
960
1033
|
),
|
|
961
|
-
/* @__PURE__ */ t("span", { "aria-hidden": "true", className:
|
|
1034
|
+
/* @__PURE__ */ t("span", { "aria-hidden": "true", className: F }),
|
|
962
1035
|
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
963
|
-
|
|
1036
|
+
oe,
|
|
964
1037
|
{
|
|
965
1038
|
availableActions: v,
|
|
966
1039
|
disabled: n,
|
|
967
1040
|
label: l("workflow.editor.addActionAfter"),
|
|
968
|
-
onSelect: ($) =>
|
|
1041
|
+
onSelect: ($) => M(f.id, $)
|
|
969
1042
|
}
|
|
970
1043
|
) })
|
|
971
1044
|
] }, f.id))
|
|
@@ -976,98 +1049,16 @@ const at = H(
|
|
|
976
1049
|
);
|
|
977
1050
|
}
|
|
978
1051
|
);
|
|
979
|
-
|
|
980
|
-
const
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
description: "Marks a Workflow summary card. Presentational — actions are owned by the host pattern."
|
|
990
|
-
},
|
|
991
|
-
instanceId: {
|
|
992
|
-
attr: "data-component-id",
|
|
993
|
-
sourceProp: "id",
|
|
994
|
-
description: "Sourced from the id prop."
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
}, Bt = {
|
|
998
|
-
id: "workflow-map",
|
|
999
|
-
capabilities: ["navigate"],
|
|
1000
|
-
state: {},
|
|
1001
|
-
actions: {},
|
|
1002
|
-
domHooks: {
|
|
1003
|
-
root: {
|
|
1004
|
-
attr: "data-component",
|
|
1005
|
-
value: "workflow-map",
|
|
1006
|
-
description: "Marks a Workflow map (linear visualisation). Presentational."
|
|
1007
|
-
},
|
|
1008
|
-
instanceId: {
|
|
1009
|
-
attr: "data-component-id",
|
|
1010
|
-
sourceProp: "id",
|
|
1011
|
-
description: "Sourced from the id prop."
|
|
1012
|
-
},
|
|
1013
|
-
item: {
|
|
1014
|
-
attr: "data-node-id",
|
|
1015
|
-
description: "Stable opaque workflow node id emitted on each step."
|
|
1016
|
-
}
|
|
1017
|
-
}
|
|
1018
|
-
}, qt = {
|
|
1019
|
-
id: "workflow-editor",
|
|
1020
|
-
capabilities: ["navigate", "expand"],
|
|
1021
|
-
state: {
|
|
1022
|
-
totalSteps: {
|
|
1023
|
-
type: "number",
|
|
1024
|
-
descriptionKey: "ui.agent.workflowEditor.state.totalSteps",
|
|
1025
|
-
description: "Total number of nodes currently in the workflow graph.",
|
|
1026
|
-
read: (e) => e.getTotalSteps()
|
|
1027
|
-
},
|
|
1028
|
-
currentStep: {
|
|
1029
|
-
type: "string | null",
|
|
1030
|
-
descriptionKey: "ui.agent.workflowEditor.state.currentStep",
|
|
1031
|
-
description: "Opaque node id of the currently-focused step, or null.",
|
|
1032
|
-
read: (e) => e.getCurrentStep()
|
|
1033
|
-
}
|
|
1034
|
-
},
|
|
1035
|
-
actions: {
|
|
1036
|
-
goto_step: {
|
|
1037
|
-
safety: "read",
|
|
1038
|
-
argsType: "{ id: string }",
|
|
1039
|
-
descriptionKey: "ui.agent.workflowEditor.actions.gotoStep",
|
|
1040
|
-
description: "Focus a node by its opaque id.",
|
|
1041
|
-
invoke: (e, s) => {
|
|
1042
|
-
e.gotoStep(s.id);
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
},
|
|
1046
|
-
domHooks: {
|
|
1047
|
-
root: {
|
|
1048
|
-
attr: "data-component",
|
|
1049
|
-
value: "workflow-editor",
|
|
1050
|
-
description: "Marks the WorkflowEditor surface."
|
|
1051
|
-
},
|
|
1052
|
-
instanceId: {
|
|
1053
|
-
attr: "data-component-id",
|
|
1054
|
-
sourceProp: "id",
|
|
1055
|
-
description: "Sourced from the id prop."
|
|
1056
|
-
},
|
|
1057
|
-
item: {
|
|
1058
|
-
attr: "data-node-id",
|
|
1059
|
-
description: "Stable opaque workflow node id emitted on each node card."
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
}, nt = {
|
|
1063
|
-
Clock: de,
|
|
1064
|
-
Mail: ne,
|
|
1065
|
-
Smartphone: le,
|
|
1066
|
-
CheckSquare: ae,
|
|
1067
|
-
MessageCircle: ie,
|
|
1068
|
-
UserCog: ue,
|
|
1069
|
-
Globe: oe
|
|
1070
|
-
}, dt = K(
|
|
1052
|
+
lt.displayName = "WorkflowEditor";
|
|
1053
|
+
const ct = {
|
|
1054
|
+
Clock: le,
|
|
1055
|
+
Mail: ie,
|
|
1056
|
+
Smartphone: ue,
|
|
1057
|
+
CheckSquare: de,
|
|
1058
|
+
MessageCircle: ce,
|
|
1059
|
+
UserCog: me,
|
|
1060
|
+
Globe: ne
|
|
1061
|
+
}, ut = L(
|
|
1071
1062
|
// The map is a list of steps — never a list of meaningful controls.
|
|
1072
1063
|
// Layout via logical properties only; connectors are sibling spacers
|
|
1073
1064
|
// styled with border-inline-start / border-block-end (see node/spacer).
|
|
@@ -1088,14 +1079,14 @@ const Kt = {
|
|
|
1088
1079
|
compact: !1
|
|
1089
1080
|
}
|
|
1090
1081
|
}
|
|
1091
|
-
),
|
|
1082
|
+
), pe = L("ds:flex", {
|
|
1092
1083
|
variants: {
|
|
1093
1084
|
orientation: {
|
|
1094
1085
|
vertical: "ds:flex-col ds:items-stretch",
|
|
1095
1086
|
horizontal: "ds:flex-row ds:items-center"
|
|
1096
1087
|
}
|
|
1097
1088
|
}
|
|
1098
|
-
}),
|
|
1089
|
+
}), he = L(
|
|
1099
1090
|
[
|
|
1100
1091
|
"ds:relative ds:flex ds:items-center",
|
|
1101
1092
|
"ds:gap-[var(--spacing-sm)]",
|
|
@@ -1140,12 +1131,8 @@ const Kt = {
|
|
|
1140
1131
|
}
|
|
1141
1132
|
}
|
|
1142
1133
|
}
|
|
1143
|
-
),
|
|
1144
|
-
[
|
|
1145
|
-
"ds:block",
|
|
1146
|
-
"ds:border-solid",
|
|
1147
|
-
"ds:border-[color:var(--border)]"
|
|
1148
|
-
].join(" "),
|
|
1134
|
+
), we = L(
|
|
1135
|
+
["ds:block", "ds:border-solid", "ds:border-[color:var(--border)]"].join(" "),
|
|
1149
1136
|
{
|
|
1150
1137
|
variants: {
|
|
1151
1138
|
orientation: {
|
|
@@ -1193,7 +1180,7 @@ const Kt = {
|
|
|
1193
1180
|
]
|
|
1194
1181
|
}
|
|
1195
1182
|
);
|
|
1196
|
-
function
|
|
1183
|
+
function ft(e) {
|
|
1197
1184
|
switch (e.kind) {
|
|
1198
1185
|
case "add_delay":
|
|
1199
1186
|
return typeof e.days == "number" && e.days > 0 ? {
|
|
@@ -1222,11 +1209,11 @@ function it(e) {
|
|
|
1222
1209
|
return;
|
|
1223
1210
|
}
|
|
1224
1211
|
}
|
|
1225
|
-
function
|
|
1212
|
+
function mt(e, s) {
|
|
1226
1213
|
if (e !== void 0)
|
|
1227
1214
|
return typeof e == "string" ? e : s(e.key, e.options);
|
|
1228
1215
|
}
|
|
1229
|
-
const
|
|
1216
|
+
const pt = O(
|
|
1230
1217
|
function({
|
|
1231
1218
|
graph: s,
|
|
1232
1219
|
activeNodeId: r,
|
|
@@ -1238,51 +1225,54 @@ const ct = H(
|
|
|
1238
1225
|
"aria-label": m,
|
|
1239
1226
|
...c
|
|
1240
1227
|
}, d) {
|
|
1241
|
-
const { t: l } =
|
|
1228
|
+
const { t: l } = z(), v = R(() => G(s), [s]), h = R(
|
|
1242
1229
|
() => r ? v.findIndex((w) => w.id === r) : -1,
|
|
1243
1230
|
[v, r]
|
|
1244
1231
|
), b = m ?? l("workflow.map.label", { count: v.length }), x = (w) => h === -1 ? "neutral" : w === h ? "current" : w < h ? "completed" : "pending";
|
|
1245
|
-
return
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
compact: a,
|
|
1261
|
-
criteria: i
|
|
1262
|
-
}
|
|
1263
|
-
) : null,
|
|
1264
|
-
v.map((w, y) => {
|
|
1265
|
-
const j = x(y), I = y === v.length - 1;
|
|
1266
|
-
return /* @__PURE__ */ t(
|
|
1267
|
-
ut,
|
|
1232
|
+
return (
|
|
1233
|
+
// eslint-disable-next-line jsx-a11y/no-redundant-roles -- Safari strips the implicit list role on <ol> with list-style:none; this guard puts it back in the accessibility tree
|
|
1234
|
+
/* @__PURE__ */ u(
|
|
1235
|
+
"ol",
|
|
1236
|
+
{
|
|
1237
|
+
ref: d,
|
|
1238
|
+
role: "list",
|
|
1239
|
+
"aria-label": b,
|
|
1240
|
+
"data-component": "workflow-map",
|
|
1241
|
+
"data-component-id": c.id,
|
|
1242
|
+
className: ut({ orientation: n, compact: a, className: p }),
|
|
1243
|
+
...c,
|
|
1244
|
+
children: [
|
|
1245
|
+
i ? /* @__PURE__ */ t(
|
|
1246
|
+
wt,
|
|
1268
1247
|
{
|
|
1269
|
-
node: w,
|
|
1270
|
-
state: j,
|
|
1271
1248
|
orientation: n,
|
|
1272
1249
|
compact: a,
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1250
|
+
criteria: i
|
|
1251
|
+
}
|
|
1252
|
+
) : null,
|
|
1253
|
+
v.map((w, y) => {
|
|
1254
|
+
const A = x(y), I = y === v.length - 1;
|
|
1255
|
+
return /* @__PURE__ */ t(
|
|
1256
|
+
ht,
|
|
1257
|
+
{
|
|
1258
|
+
node: w,
|
|
1259
|
+
state: A,
|
|
1260
|
+
orientation: n,
|
|
1261
|
+
compact: a,
|
|
1262
|
+
isLast: I,
|
|
1263
|
+
onNodeClick: o
|
|
1264
|
+
},
|
|
1265
|
+
w.id
|
|
1266
|
+
);
|
|
1267
|
+
})
|
|
1268
|
+
]
|
|
1269
|
+
}
|
|
1270
|
+
)
|
|
1281
1271
|
);
|
|
1282
1272
|
}
|
|
1283
1273
|
);
|
|
1284
|
-
|
|
1285
|
-
function
|
|
1274
|
+
pt.displayName = "WorkflowMap";
|
|
1275
|
+
function ht({
|
|
1286
1276
|
node: e,
|
|
1287
1277
|
state: s,
|
|
1288
1278
|
orientation: r,
|
|
@@ -1290,14 +1280,14 @@ function ut({
|
|
|
1290
1280
|
isLast: i,
|
|
1291
1281
|
onNodeClick: n
|
|
1292
1282
|
}) {
|
|
1293
|
-
const { t: a } =
|
|
1283
|
+
const { t: a } = z(), p = D[e.type], m = ct[p.iconName], c = a(p.labelKey), d = mt(ft(e.settings), a), l = typeof n == "function", v = s === "current", h = s === "completed", b = (y) => {
|
|
1294
1284
|
l && (y.preventDefault(), n == null || n(e.id));
|
|
1295
1285
|
}, x = (y) => {
|
|
1296
1286
|
l && (y.key === "Enter" || y.key === " ") && (y.preventDefault(), n == null || n(e.id));
|
|
1297
1287
|
}, w = v ? a("workflow.map.current") : h ? a("workflow.map.completed") : s === "pending" ? a("workflow.map.pending") : null;
|
|
1298
1288
|
return (
|
|
1299
1289
|
// `<li>` has implicit role="listitem"; no explicit role needed.
|
|
1300
|
-
/* @__PURE__ */ u("li", { "data-node-id": e.id, className:
|
|
1290
|
+
/* @__PURE__ */ u("li", { "data-node-id": e.id, className: pe({ orientation: r }), children: [
|
|
1301
1291
|
/* @__PURE__ */ u(
|
|
1302
1292
|
"div",
|
|
1303
1293
|
{
|
|
@@ -1314,7 +1304,7 @@ function ut({
|
|
|
1314
1304
|
}) : void 0,
|
|
1315
1305
|
onClick: l ? b : void 0,
|
|
1316
1306
|
onKeyDown: l ? x : void 0,
|
|
1317
|
-
className:
|
|
1307
|
+
className: he({
|
|
1318
1308
|
orientation: r,
|
|
1319
1309
|
compact: o,
|
|
1320
1310
|
state: s,
|
|
@@ -1329,7 +1319,7 @@ function ut({
|
|
|
1329
1319
|
"aria-hidden": "true",
|
|
1330
1320
|
className: "ds:flex ds:items-center ds:justify-center ds:shrink-0 ds:size-[var(--spacing-md)] ds:text-[var(--muted-foreground)]",
|
|
1331
1321
|
children: h ? /* @__PURE__ */ t(
|
|
1332
|
-
|
|
1322
|
+
ze,
|
|
1333
1323
|
{
|
|
1334
1324
|
className: "ds:size-[var(--spacing-md)] ds:text-[color:var(--success)]",
|
|
1335
1325
|
"data-testid": "workflow-map-check"
|
|
@@ -1338,13 +1328,7 @@ function ut({
|
|
|
1338
1328
|
}
|
|
1339
1329
|
),
|
|
1340
1330
|
/* @__PURE__ */ u("span", { className: "ds:flex ds:flex-col ds:min-w-0 ds:flex-1", children: [
|
|
1341
|
-
/* @__PURE__ */ t(
|
|
1342
|
-
"span",
|
|
1343
|
-
{
|
|
1344
|
-
className: o ? "type-meta ds:truncate" : "type-body-sm",
|
|
1345
|
-
children: c
|
|
1346
|
-
}
|
|
1347
|
-
),
|
|
1331
|
+
/* @__PURE__ */ t("span", { className: o ? "type-meta ds:truncate" : "type-body-sm", children: c }),
|
|
1348
1332
|
!o && d ? /* @__PURE__ */ t(
|
|
1349
1333
|
"span",
|
|
1350
1334
|
{
|
|
@@ -1362,24 +1346,24 @@ function ut({
|
|
|
1362
1346
|
"span",
|
|
1363
1347
|
{
|
|
1364
1348
|
"aria-hidden": "true",
|
|
1365
|
-
className:
|
|
1349
|
+
className: we({ orientation: r, compact: o }),
|
|
1366
1350
|
"data-testid": "workflow-map-connector"
|
|
1367
1351
|
}
|
|
1368
1352
|
)
|
|
1369
1353
|
] })
|
|
1370
1354
|
);
|
|
1371
1355
|
}
|
|
1372
|
-
function
|
|
1356
|
+
function wt({
|
|
1373
1357
|
orientation: e,
|
|
1374
1358
|
compact: s,
|
|
1375
1359
|
criteria: r
|
|
1376
1360
|
}) {
|
|
1377
|
-
const { t: o } =
|
|
1378
|
-
return /* @__PURE__ */ u("li", { className:
|
|
1361
|
+
const { t: o } = z();
|
|
1362
|
+
return /* @__PURE__ */ u("li", { className: pe({ orientation: e }), children: [
|
|
1379
1363
|
/* @__PURE__ */ u(
|
|
1380
1364
|
"div",
|
|
1381
1365
|
{
|
|
1382
|
-
className:
|
|
1366
|
+
className: he({
|
|
1383
1367
|
orientation: e,
|
|
1384
1368
|
compact: s,
|
|
1385
1369
|
state: "neutral",
|
|
@@ -1392,17 +1376,11 @@ function ft({
|
|
|
1392
1376
|
{
|
|
1393
1377
|
"aria-hidden": "true",
|
|
1394
1378
|
className: "ds:flex ds:items-center ds:justify-center ds:shrink-0 ds:size-[var(--spacing-md)] ds:text-[var(--muted-foreground)]",
|
|
1395
|
-
children: /* @__PURE__ */ t(
|
|
1379
|
+
children: /* @__PURE__ */ t(Le, { className: "ds:size-[var(--spacing-md)]" })
|
|
1396
1380
|
}
|
|
1397
1381
|
),
|
|
1398
1382
|
/* @__PURE__ */ u("span", { className: "ds:flex ds:flex-col ds:min-w-0 ds:flex-1", children: [
|
|
1399
|
-
/* @__PURE__ */ t(
|
|
1400
|
-
"span",
|
|
1401
|
-
{
|
|
1402
|
-
className: s ? "type-meta ds:truncate" : "type-body-sm",
|
|
1403
|
-
children: o("workflow.editor.enrollmentCriteria")
|
|
1404
|
-
}
|
|
1405
|
-
),
|
|
1383
|
+
/* @__PURE__ */ t("span", { className: s ? "type-meta ds:truncate" : "type-body-sm", children: o("workflow.editor.enrollmentCriteria") }),
|
|
1406
1384
|
s ? null : /* @__PURE__ */ t("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: r.summary ?? o("workflow.editor.criteriaCount", {
|
|
1407
1385
|
count: r.ruleCount
|
|
1408
1386
|
}) })
|
|
@@ -1414,24 +1392,24 @@ function ft({
|
|
|
1414
1392
|
"span",
|
|
1415
1393
|
{
|
|
1416
1394
|
"aria-hidden": "true",
|
|
1417
|
-
className:
|
|
1395
|
+
className: we({ orientation: e, compact: s })
|
|
1418
1396
|
}
|
|
1419
1397
|
)
|
|
1420
1398
|
] });
|
|
1421
1399
|
}
|
|
1422
1400
|
export {
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1401
|
+
Ye as C,
|
|
1402
|
+
Oe as W,
|
|
1403
|
+
lt as a,
|
|
1404
|
+
pt as b,
|
|
1405
|
+
H as c,
|
|
1406
|
+
Rt as d,
|
|
1407
|
+
Ue as e,
|
|
1408
|
+
Wt as f,
|
|
1409
|
+
Je as i,
|
|
1432
1410
|
G as l,
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1411
|
+
Ge as m,
|
|
1412
|
+
ee as r,
|
|
1413
|
+
D as w
|
|
1436
1414
|
};
|
|
1437
|
-
//# sourceMappingURL=workflow-map-
|
|
1415
|
+
//# sourceMappingURL=workflow-map-C-nlogPC.js.map
|