@epam/ai-dial-scheduled-tasks 1.3.0-dev.9 → 1.3.0-dev.96
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/components/ScheduledTaskCard/ScheduledTaskCard.d.ts +4 -2
- package/components/ScheduledTaskCard/ScheduledTaskCard.d.ts.map +1 -1
- package/components/ScheduledTaskConversationDetailsSection/ScheduledTaskConversationDetailsSection.d.ts +71 -0
- package/components/ScheduledTaskConversationDetailsSection/ScheduledTaskConversationDetailsSection.d.ts.map +1 -0
- package/components/ScheduledTaskConversationHistorySection/ScheduledTaskConversationHistorySection.d.ts +63 -0
- package/components/ScheduledTaskConversationHistorySection/ScheduledTaskConversationHistorySection.d.ts.map +1 -0
- package/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.d.ts.map +1 -1
- package/components/ScheduledTaskDetailView/ScheduledTaskDetailView.d.ts.map +1 -1
- package/components/ScheduledTaskDetailsSummary/ScheduledTaskDetailsSummary.d.ts.map +1 -1
- package/components/ScheduledTaskHistorySection/ScheduledTaskHistorySection.d.ts.map +1 -1
- package/components/ScheduledTaskRunHistoryList/ScheduledTaskRunHistoryList.d.ts.map +1 -1
- package/components/SectionAccordionTitle/SectionAccordionTitle.d.ts +15 -0
- package/components/SectionAccordionTitle/SectionAccordionTitle.d.ts.map +1 -0
- package/index.css +3 -2
- package/index.d.ts +5 -0
- package/index.d.ts.map +1 -1
- package/index.js +755 -632
- package/models/scheduled-task-details-summary-props.d.ts +5 -2
- package/models/scheduled-task-details-summary-props.d.ts.map +1 -1
- package/models/scheduled-task-history-section-props.d.ts +2 -0
- package/models/scheduled-task-history-section-props.d.ts.map +1 -1
- package/models/scheduled-task-run-history-list-props.d.ts +3 -1
- package/models/scheduled-task-run-history-list-props.d.ts.map +1 -1
- package/models/scheduled-task-run-item.d.ts +2 -0
- package/models/scheduled-task-run-item.d.ts.map +1 -1
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./calendar-value-B41Uk26Z.js";
|
|
2
|
-
import { ConfirmationDialog as l, ConfirmationIdentityRow as u, MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as d, MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as f, MDMessageViewer as p, PanelEmptyState as m, ResourceSummary as h, TextRefinementField as g, buildCssVars as _, mergeClasses as v, useAvailableHeightCap as y, useIsMobile as b, useTextRefinement as x, useUnsavedChangesGuard as
|
|
3
|
-
import { ButtonAppearance as
|
|
4
|
-
import { IconAlertTriangle as
|
|
5
|
-
import { Suspense as Te, lazy as Ee, useCallback as
|
|
6
|
-
import { Fragment as Me, jsx as
|
|
2
|
+
import { ConfirmationDialog as l, ConfirmationIdentityRow as u, MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as d, MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as f, MDMessageViewer as p, PanelEmptyState as m, ResourceSummary as h, TextRefinementField as g, buildCssVars as _, mergeClasses as v, useAvailableHeightCap as y, useIsMobile as b, useTextRefinement as x, useUnsavedChangesGuard as ee } from "@epam/ai-dial-chat-shared";
|
|
3
|
+
import { Accordion as S, ButtonAppearance as C, ButtonDropdown as te, ButtonVariant as w, Calendar as T, CalendarMode as E, CardShell as D, ConfirmationPopupVariant as ne, DIAL_ICON_SIZE as O, DIAL_KIT_ICON_STROKE as k, ElementSize as re, FolderPath as ie, GhostButton as A, GhostIconButton as ae, Highlight as oe, Input as se, Label as ce, MenuItemMark as le, NeutralButton as j, NumberInput as ue, PrimaryButton as M, Search as de, Select as fe, Skeleton as N, SkeletonVariant as P, Spinner as pe, Switch as me, Tabs as he, Textarea as ge, Tooltip as F } from "@epam/ai-dial-ui-kit";
|
|
4
|
+
import { IconAlertTriangle as _e, IconArrowNarrowLeft as ve, IconArrowsSort as ye, IconCheck as I, IconCircleCheck as be, IconCircleX as L, IconClipboardX as R, IconClockHour3 as xe, IconPencilMinus as z, IconPlayerPause as B, IconPlayerPlay as Se, IconPlus as Ce, IconTrashX as we } from "@tabler/icons-react";
|
|
5
|
+
import { Suspense as Te, lazy as Ee, useCallback as De, useEffect as Oe, useId as ke, useLayoutEffect as V, useMemo as Ae, useRef as H, useState as je } from "react";
|
|
6
|
+
import { Fragment as Me, jsx as U, jsxs as W } from "react/jsx-runtime";
|
|
7
7
|
import { BuilderFormContainer as Ne } from "@epam/ai-dial-builder-form";
|
|
8
|
-
import { LazyMarkdownEditor as
|
|
8
|
+
import { LazyMarkdownEditor as Pe } from "@epam/ai-dial-ui-kit/editors";
|
|
9
9
|
//#region src/constants/public-class-names.ts
|
|
10
|
-
var
|
|
10
|
+
var Fe = {
|
|
11
11
|
card: "dial-scheduled-tasks-card",
|
|
12
12
|
cardGrid: "dial-scheduled-tasks-card-grid",
|
|
13
13
|
refineFeedback: "dial-scheduled-tasks-refine-feedback"
|
|
@@ -15,172 +15,173 @@ var W = {
|
|
|
15
15
|
return e.Scheduled = "scheduled", e.Paused = "paused", e.Completed = "completed", e;
|
|
16
16
|
}({}), K = /* @__PURE__ */ function(e) {
|
|
17
17
|
return e.Active = "active", e.Paused = "paused", e.Completed = "completed", e;
|
|
18
|
-
}({}),
|
|
18
|
+
}({}), q = (e) => {
|
|
19
19
|
switch (e.presentationStatus) {
|
|
20
20
|
case K.Active: return G.Scheduled;
|
|
21
21
|
case K.Paused: return G.Paused;
|
|
22
22
|
case K.Completed: return G.Completed;
|
|
23
23
|
}
|
|
24
24
|
return e.isCompleted ? G.Completed : e.isActive === !1 ? G.Paused : G.Scheduled;
|
|
25
|
-
}, q = {
|
|
26
|
-
schedulePill: "_schedulePill_146jw_1",
|
|
27
|
-
scheduleLabel: "_scheduleLabel_146jw_6",
|
|
28
|
-
pausedPill: "_pausedPill_146jw_10",
|
|
29
|
-
pausedLabel: "_pausedLabel_146jw_15",
|
|
30
|
-
completedPill: "_completedPill_146jw_19",
|
|
31
|
-
completedLabel: "_completedLabel_146jw_24"
|
|
32
25
|
}, J = {
|
|
26
|
+
schedulePill: "_schedulePill_1cwco_1",
|
|
27
|
+
scheduleLabel: "_scheduleLabel_1cwco_6",
|
|
28
|
+
pausedPill: "_pausedPill_1cwco_10",
|
|
29
|
+
pausedLabel: "_pausedLabel_1cwco_15",
|
|
30
|
+
completedPill: "_completedPill_1cwco_19",
|
|
31
|
+
completedLabel: "_completedLabel_1cwco_24"
|
|
32
|
+
}, Ie = {
|
|
33
33
|
[G.Scheduled]: {
|
|
34
34
|
pillClassName: "inline-block rounded-lg border px-2 py-1",
|
|
35
|
-
wrapperClassName:
|
|
36
|
-
labelClassName:
|
|
35
|
+
wrapperClassName: J.schedulePill,
|
|
36
|
+
labelClassName: J.scheduleLabel
|
|
37
37
|
},
|
|
38
38
|
[G.Paused]: {
|
|
39
39
|
pillClassName: "inline-flex items-center gap-1.5 rounded-full border px-2 py-1",
|
|
40
|
-
wrapperClassName:
|
|
41
|
-
labelClassName:
|
|
42
|
-
renderIcon: () => /* @__PURE__ */
|
|
43
|
-
size:
|
|
40
|
+
wrapperClassName: J.pausedPill,
|
|
41
|
+
labelClassName: J.pausedLabel,
|
|
42
|
+
renderIcon: () => /* @__PURE__ */ U(B, {
|
|
43
|
+
size: O.SM,
|
|
44
44
|
"aria-hidden": !0,
|
|
45
|
-
stroke:
|
|
45
|
+
stroke: k
|
|
46
46
|
})
|
|
47
47
|
},
|
|
48
48
|
[G.Completed]: {
|
|
49
49
|
pillClassName: "inline-flex items-center gap-1.5 rounded-full border px-2 py-1",
|
|
50
|
-
wrapperClassName:
|
|
51
|
-
labelClassName:
|
|
52
|
-
renderIcon: () => /* @__PURE__ */
|
|
53
|
-
size:
|
|
50
|
+
wrapperClassName: J.completedPill,
|
|
51
|
+
labelClassName: J.completedLabel,
|
|
52
|
+
renderIcon: () => /* @__PURE__ */ U(I, {
|
|
53
|
+
size: O.SM,
|
|
54
54
|
"aria-hidden": !0,
|
|
55
|
-
stroke:
|
|
55
|
+
stroke: k
|
|
56
56
|
})
|
|
57
57
|
}
|
|
58
|
-
},
|
|
59
|
-
let { pillClassName: i, wrapperClassName: a, labelClassName: o, renderIcon: s } =
|
|
60
|
-
return /* @__PURE__ */
|
|
58
|
+
}, Le = ({ status: e, text: t, textClassName: n = "dial-tiny-text", className: r }) => {
|
|
59
|
+
let { pillClassName: i, wrapperClassName: a, labelClassName: o, renderIcon: s } = Ie[e];
|
|
60
|
+
return /* @__PURE__ */ W("span", {
|
|
61
61
|
className: v(i, n, a, o, r),
|
|
62
62
|
children: [s && s(), t]
|
|
63
63
|
});
|
|
64
64
|
}, Y = {
|
|
65
|
-
title: "
|
|
66
|
-
description: "
|
|
67
|
-
locationLabel: "
|
|
68
|
-
locationLeaf: "
|
|
69
|
-
newBadge: "
|
|
70
|
-
locationDivider: "
|
|
71
|
-
|
|
72
|
-
|
|
65
|
+
title: "_title_hmbo0_2",
|
|
66
|
+
description: "_description_hmbo0_6",
|
|
67
|
+
locationLabel: "_locationLabel_hmbo0_10",
|
|
68
|
+
locationLeaf: "_locationLeaf_hmbo0_14",
|
|
69
|
+
newBadge: "_newBadge_hmbo0_18",
|
|
70
|
+
locationDivider: "_locationDivider_hmbo0_23",
|
|
71
|
+
card: "_card_hmbo0_34"
|
|
72
|
+
}, Re = ({ item: e, searchQuery: t = "", onCardClick: n, labels: r, styles: i, className: a }) => {
|
|
73
|
+
let o = b(), s = r?.newBadgeLabel ?? "NEW", c = r?.pausedBadgeLabel ?? "Paused", l = r?.completedBadgeLabel ?? "Completed", { colors: u, typography: d } = i ?? {}, f = d?.titleClassName ?? "dial-body-semi-text", p = d?.descriptionClassName ?? "dial-small-text", m = d?.descriptionSizeClassName ?? "dial-tiny-text", h = d?.scheduleLabelClassName ?? "dial-tiny-text", g = d?.pausedBadgeClassName ?? "dial-tiny-text", y = d?.completedBadgeClassName ?? "dial-tiny-text", x = d?.locationLabelClassName ?? "dial-tiny-text", ee = d?.locationLeafClassName ?? "dial-tiny-semi-text", S = d?.newBadgeClassName ?? "dial-tiny-semi-text", C = q(e), { text: te, textClassName: w } = {
|
|
73
74
|
[G.Scheduled]: {
|
|
74
75
|
text: e.scheduleLabel,
|
|
75
|
-
textClassName: m
|
|
76
|
-
},
|
|
77
|
-
[G.Paused]: {
|
|
78
|
-
text: s,
|
|
79
76
|
textClassName: h
|
|
80
77
|
},
|
|
81
|
-
[G.
|
|
78
|
+
[G.Paused]: {
|
|
82
79
|
text: c,
|
|
83
80
|
textClassName: g
|
|
81
|
+
},
|
|
82
|
+
[G.Completed]: {
|
|
83
|
+
text: l,
|
|
84
|
+
textClassName: y
|
|
84
85
|
}
|
|
85
|
-
}[
|
|
86
|
-
"--stc-title-text":
|
|
87
|
-
"--stc-desc-text":
|
|
88
|
-
"--stc-pill-bg":
|
|
89
|
-
"--stc-pill-border":
|
|
90
|
-
"--stc-schedule-label-text":
|
|
91
|
-
"--stc-location-label-text":
|
|
92
|
-
"--stc-location-leaf-text":
|
|
93
|
-
"--stc-new-badge-bg":
|
|
94
|
-
"--stc-new-badge-text":
|
|
95
|
-
"--stc-location-divider-border":
|
|
96
|
-
"--stc-paused-bg":
|
|
97
|
-
"--stc-paused-border":
|
|
98
|
-
"--stc-paused-text":
|
|
99
|
-
"--stc-completed-bg":
|
|
100
|
-
"--stc-completed-border":
|
|
101
|
-
"--stc-completed-text":
|
|
102
|
-
}),
|
|
86
|
+
}[C], T = _({
|
|
87
|
+
"--stc-title-text": u?.titleText,
|
|
88
|
+
"--stc-desc-text": u?.descriptionText,
|
|
89
|
+
"--stc-pill-bg": u?.schedulePillBackground,
|
|
90
|
+
"--stc-pill-border": u?.schedulePillBorder,
|
|
91
|
+
"--stc-schedule-label-text": u?.scheduleLabelText,
|
|
92
|
+
"--stc-location-label-text": u?.locationLabelText,
|
|
93
|
+
"--stc-location-leaf-text": u?.locationLeafText,
|
|
94
|
+
"--stc-new-badge-bg": u?.newBadgeBackground,
|
|
95
|
+
"--stc-new-badge-text": u?.newBadgeText,
|
|
96
|
+
"--stc-location-divider-border": u?.locationDividerBorder,
|
|
97
|
+
"--stc-paused-bg": u?.pausedBadgeBackground,
|
|
98
|
+
"--stc-paused-border": u?.pausedBadgeBorder,
|
|
99
|
+
"--stc-paused-text": u?.pausedBadgeText,
|
|
100
|
+
"--stc-completed-bg": u?.completedBadgeBackground,
|
|
101
|
+
"--stc-completed-border": u?.completedBadgeBorder,
|
|
102
|
+
"--stc-completed-text": u?.completedBadgeText
|
|
103
|
+
}), E = n ? {
|
|
103
104
|
tabIndex: 0,
|
|
104
105
|
onClick: () => n(e.id),
|
|
105
106
|
onKeyDown: (t) => {
|
|
106
107
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e.id));
|
|
107
108
|
}
|
|
108
109
|
} : {};
|
|
109
|
-
return /* @__PURE__ */
|
|
110
|
+
return /* @__PURE__ */ W(D, {
|
|
110
111
|
role: n ? "button" : "group",
|
|
111
112
|
"aria-label": e.displayName,
|
|
112
|
-
style:
|
|
113
|
-
className: v("h-[var(--st-card-height,232px)]", n && "cursor-pointer", a,
|
|
114
|
-
...
|
|
113
|
+
style: T,
|
|
114
|
+
className: v("h-[var(--st-card-height,232px)]", Y.card, n && "cursor-pointer", a, Fe.card),
|
|
115
|
+
...E,
|
|
115
116
|
children: [
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
className: "flex min-w-0 shrink-0 items-
|
|
118
|
-
children: [/* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ W("div", {
|
|
118
|
+
className: "flex min-w-0 shrink-0 items-start gap-2 desktop:items-center",
|
|
119
|
+
children: [/* @__PURE__ */ U(oe, {
|
|
119
120
|
text: e.displayName,
|
|
120
121
|
query: t,
|
|
121
|
-
maxLines: 1,
|
|
122
|
-
className: v(
|
|
123
|
-
}), e.isNew && /* @__PURE__ */
|
|
124
|
-
className: v("shrink-0 rounded-full px-2 py-0.5",
|
|
125
|
-
children:
|
|
122
|
+
maxLines: o ? 2 : 1,
|
|
123
|
+
className: v(f, Y.title)
|
|
124
|
+
}), e.isNew && /* @__PURE__ */ U("span", {
|
|
125
|
+
className: v("shrink-0 rounded-full px-2 py-0.5", S, Y.newBadge),
|
|
126
|
+
children: s
|
|
126
127
|
})]
|
|
127
128
|
}),
|
|
128
|
-
e.descriptionPreview && /* @__PURE__ */
|
|
129
|
-
className: v("line-clamp-4 min-h-0 flex-1 overflow-hidden",
|
|
129
|
+
e.descriptionPreview && /* @__PURE__ */ U("p", {
|
|
130
|
+
className: v("line-clamp-4 min-h-0 flex-1 overflow-hidden", m, p, Y.description),
|
|
130
131
|
children: e.descriptionPreview
|
|
131
132
|
}),
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ W("div", {
|
|
133
134
|
className: "mt-auto flex shrink-0 flex-col gap-3",
|
|
134
|
-
children: [/* @__PURE__ */
|
|
135
|
+
children: [/* @__PURE__ */ U("div", {
|
|
135
136
|
className: "flex min-h-[28px] items-center",
|
|
136
|
-
children: /* @__PURE__ */
|
|
137
|
-
status:
|
|
138
|
-
text:
|
|
139
|
-
textClassName:
|
|
137
|
+
children: /* @__PURE__ */ U(Le, {
|
|
138
|
+
status: C,
|
|
139
|
+
text: te,
|
|
140
|
+
textClassName: w
|
|
140
141
|
})
|
|
141
|
-
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */
|
|
142
|
+
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */ U(ie, {
|
|
142
143
|
segments: e.locationSegments,
|
|
143
|
-
labelClassName: v(
|
|
144
|
-
leafClassName: v(
|
|
144
|
+
labelClassName: v(x, Y.locationLabel),
|
|
145
|
+
leafClassName: v(ee, Y.locationLeaf),
|
|
145
146
|
className: v("pt-3", Y.locationDivider)
|
|
146
147
|
})]
|
|
147
148
|
})
|
|
148
149
|
]
|
|
149
150
|
});
|
|
150
|
-
},
|
|
151
|
+
}, ze = { card: "_card_18ivt_1" }, Be = [
|
|
151
152
|
"100%",
|
|
152
153
|
"100%",
|
|
153
154
|
"61%"
|
|
154
|
-
],
|
|
155
|
+
], Ve = "var(--stcs-skeleton-bg)", He = ({ styles: e }) => /* @__PURE__ */ W(D, {
|
|
155
156
|
"aria-hidden": !0,
|
|
156
157
|
style: _({ "--stcs-skeleton-bg": e?.colors?.skeletonColor }),
|
|
157
|
-
className: v("h-[var(--st-card-height,232px)]",
|
|
158
|
+
className: v("h-[var(--st-card-height,232px)]", ze.card),
|
|
158
159
|
children: [
|
|
159
|
-
/* @__PURE__ */
|
|
160
|
-
variant:
|
|
160
|
+
/* @__PURE__ */ U(N, {
|
|
161
|
+
variant: P.Rectangular,
|
|
161
162
|
width: "60%",
|
|
162
163
|
height: "20px",
|
|
163
|
-
color:
|
|
164
|
+
color: Ve,
|
|
164
165
|
className: "shrink-0"
|
|
165
166
|
}),
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ U("div", {
|
|
167
168
|
className: "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden",
|
|
168
|
-
children:
|
|
169
|
-
variant:
|
|
169
|
+
children: Be.map((e, t) => /* @__PURE__ */ U(N, {
|
|
170
|
+
variant: P.Rectangular,
|
|
170
171
|
width: e,
|
|
171
172
|
height: "16px",
|
|
172
|
-
color:
|
|
173
|
+
color: Ve
|
|
173
174
|
}, t))
|
|
174
175
|
}),
|
|
175
|
-
/* @__PURE__ */
|
|
176
|
-
variant:
|
|
176
|
+
/* @__PURE__ */ U(N, {
|
|
177
|
+
variant: P.Rectangular,
|
|
177
178
|
width: "110px",
|
|
178
179
|
height: "28px",
|
|
179
|
-
color:
|
|
180
|
+
color: Ve,
|
|
180
181
|
className: "shrink-0 rounded-lg"
|
|
181
182
|
})
|
|
182
183
|
]
|
|
183
|
-
}),
|
|
184
|
+
}), Ue = ({ items: e, searchQuery: t, onCardClick: n, labels: r, cardStyles: i, trailingSkeletonCount: a = 0, skeletonStyles: o, layout: s }) => /* @__PURE__ */ W("div", {
|
|
184
185
|
style: {
|
|
185
186
|
"--st-grid-min-card-width": s?.minCardWidth,
|
|
186
187
|
"--st-grid-gap": s?.gap,
|
|
@@ -190,14 +191,14 @@ var W = {
|
|
|
190
191
|
gap: "var(--st-grid-gap, 20px)",
|
|
191
192
|
gridTemplateColumns: "repeat(auto-fill, minmax(min(100%, max(var(--st-grid-min-card-width, 320px), calc((100% - (var(--st-grid-columns) - 1) * var(--st-grid-gap, 20px)) / var(--st-grid-columns)))), 1fr))"
|
|
192
193
|
},
|
|
193
|
-
className: v("mx-auto grid w-full min-w-0",
|
|
194
|
-
children: [e.map((e) => /* @__PURE__ */
|
|
194
|
+
className: v("mx-auto grid w-full min-w-0", Fe.cardGrid),
|
|
195
|
+
children: [e.map((e) => /* @__PURE__ */ U(Re, {
|
|
195
196
|
item: e,
|
|
196
197
|
searchQuery: t,
|
|
197
198
|
onCardClick: n,
|
|
198
199
|
labels: r,
|
|
199
200
|
styles: i
|
|
200
|
-
}, e.id)), Array.from({ length: a }, (e, t) => /* @__PURE__ */
|
|
201
|
+
}, e.id)), Array.from({ length: a }, (e, t) => /* @__PURE__ */ U(He, { styles: o }, `skeleton-${t}`))]
|
|
201
202
|
}), X = {
|
|
202
203
|
container: "_container_3vz4t_2",
|
|
203
204
|
subtitle: "_subtitle_3vz4t_6",
|
|
@@ -205,33 +206,33 @@ var W = {
|
|
|
205
206
|
sortButton: "_sortButton_3vz4t_19",
|
|
206
207
|
createButton: "_createButton_3vz4t_10",
|
|
207
208
|
sortControlHidden: "_sortControlHidden_3vz4t_49"
|
|
208
|
-
},
|
|
209
|
+
}, We = /* @__PURE__ */ U(xe, {
|
|
209
210
|
size: 48,
|
|
210
211
|
stroke: 1,
|
|
211
212
|
"aria-hidden": !0
|
|
212
|
-
}),
|
|
213
|
+
}), Ge = (e, t, n, r, i, a) => {
|
|
213
214
|
if (!e) return t ? a.loadingMoreLabel : n ? a.errorLabel : r > 0 ? `${r}` : i ? a.noResultsLabel : a.emptyStateLabel;
|
|
214
|
-
},
|
|
215
|
+
}, Ke = (e) => {
|
|
215
216
|
if (!e || e === document.body) return null;
|
|
216
217
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
217
|
-
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e :
|
|
218
|
-
},
|
|
219
|
-
let { colors:
|
|
220
|
-
"--st-bg":
|
|
221
|
-
"--st-subtitle-text":
|
|
222
|
-
"--st-sort-text":
|
|
223
|
-
}),
|
|
218
|
+
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : Ke(e.parentElement);
|
|
219
|
+
}, qe = ({ labels: e, onCreateClick: t, searchQuery: n, onSearchQueryChange: r, sortKey: i, onSortChange: a, items: o, isLoading: s = !1, error: c, onRetry: l, hasMore: u = !1, isLoadingMore: d = !1, skeletonCount: f = 6, onLoadMore: p, onCardClick: h, banner: g, styles: y, sortIcon: b, className: x, gridLayout: ee, cardStyles: S, loadMoreError: T, onRetryLoadMore: E }) => {
|
|
220
|
+
let { colors: D, typography: ne } = y ?? {}, ie = ne?.titleClassName ?? "dial-h1-text", ae = ne?.subtitleClassName ?? "dial-body-text", oe = _({
|
|
221
|
+
"--st-bg": D?.background,
|
|
222
|
+
"--st-subtitle-text": D?.subtitleText,
|
|
223
|
+
"--st-sort-text": D?.sortButtonText
|
|
224
|
+
}), se = (e) => {
|
|
224
225
|
r(e ?? "");
|
|
225
|
-
}, [
|
|
226
|
-
|
|
227
|
-
}, []),
|
|
228
|
-
|
|
226
|
+
}, [ce, j] = je(!1), [ue, fe] = je(!1), N = H(null), P = De(() => {
|
|
227
|
+
fe(!0);
|
|
228
|
+
}, []), me = De(() => {
|
|
229
|
+
fe(!1);
|
|
229
230
|
}, []);
|
|
230
|
-
|
|
231
|
-
let e =
|
|
232
|
-
|
|
233
|
-
}, [
|
|
234
|
-
let
|
|
231
|
+
V(() => {
|
|
232
|
+
let e = N.current;
|
|
233
|
+
ue && ce && e != null && e.offsetParent == null && j(!1);
|
|
234
|
+
}, [ue, ce]);
|
|
235
|
+
let he = e.sortOptions.find((e) => e.value === i)?.label ?? e.sortLabel, ge = Ae(() => e.sortOptions.map((e) => ({
|
|
235
236
|
key: e.value,
|
|
236
237
|
label: e.label,
|
|
237
238
|
mark: le.Check,
|
|
@@ -241,14 +242,14 @@ var W = {
|
|
|
241
242
|
e.sortOptions,
|
|
242
243
|
i,
|
|
243
244
|
a
|
|
244
|
-
]),
|
|
245
|
-
|
|
246
|
-
let e =
|
|
245
|
+
]), F = Ge(s, d, !!c, o.length, n.trim().length > 0, e), _e = H(null);
|
|
246
|
+
Oe(() => {
|
|
247
|
+
let e = _e.current;
|
|
247
248
|
if (!e || !p) return;
|
|
248
|
-
let t =
|
|
249
|
+
let t = Ke(e.parentElement);
|
|
249
250
|
if (!t) return;
|
|
250
251
|
let n = () => {
|
|
251
|
-
if (d || s ||
|
|
252
|
+
if (d || s || T || !u) return;
|
|
252
253
|
let n = t.getBoundingClientRect(), r = e.getBoundingClientRect();
|
|
253
254
|
r.top < n.bottom && r.bottom > n.top && p();
|
|
254
255
|
};
|
|
@@ -257,141 +258,141 @@ var W = {
|
|
|
257
258
|
u,
|
|
258
259
|
d,
|
|
259
260
|
s,
|
|
260
|
-
|
|
261
|
+
T,
|
|
261
262
|
p
|
|
262
263
|
]);
|
|
263
|
-
let
|
|
264
|
+
let ve = () => s ? /* @__PURE__ */ U(pe, {}) : c ? /* @__PURE__ */ W("div", {
|
|
264
265
|
className: "flex flex-col items-center gap-3",
|
|
265
|
-
children: [/* @__PURE__ */
|
|
266
|
-
className: v(
|
|
266
|
+
children: [/* @__PURE__ */ U("p", {
|
|
267
|
+
className: v(ae, X.subtitle),
|
|
267
268
|
children: e.errorLabel
|
|
268
|
-
}), /* @__PURE__ */
|
|
269
|
+
}), /* @__PURE__ */ U(A, {
|
|
269
270
|
label: e.retryLabel,
|
|
270
271
|
onClick: l
|
|
271
272
|
})]
|
|
272
|
-
}) : o.length === 0 ? n.trim() ? /* @__PURE__ */
|
|
273
|
-
className: v(
|
|
273
|
+
}) : o.length === 0 ? n.trim() ? /* @__PURE__ */ U("p", {
|
|
274
|
+
className: v(ae, X.subtitle),
|
|
274
275
|
children: e.noResultsLabel
|
|
275
|
-
}) : /* @__PURE__ */
|
|
276
|
+
}) : /* @__PURE__ */ U(m, {
|
|
276
277
|
label: e.emptyStateLabel,
|
|
277
|
-
icon:
|
|
278
|
-
}) : /* @__PURE__ */
|
|
278
|
+
icon: We
|
|
279
|
+
}) : /* @__PURE__ */ W("div", {
|
|
279
280
|
className: "flex w-full flex-col gap-6",
|
|
280
281
|
children: [
|
|
281
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ U(Ue, {
|
|
282
283
|
items: o,
|
|
283
284
|
searchQuery: n,
|
|
284
285
|
onCardClick: h,
|
|
285
286
|
labels: e.cardLabels,
|
|
286
287
|
trailingSkeletonCount: d ? f : 0,
|
|
287
|
-
skeletonStyles: { colors: { skeletonColor:
|
|
288
|
-
cardStyles:
|
|
289
|
-
layout:
|
|
288
|
+
skeletonStyles: { colors: { skeletonColor: D?.skeletonColor } },
|
|
289
|
+
cardStyles: S,
|
|
290
|
+
layout: ee
|
|
290
291
|
}),
|
|
291
|
-
|
|
292
|
+
T && /* @__PURE__ */ W("div", {
|
|
292
293
|
role: "alert",
|
|
293
294
|
className: "flex items-center gap-3",
|
|
294
|
-
children: [/* @__PURE__ */
|
|
295
|
-
className: v(
|
|
295
|
+
children: [/* @__PURE__ */ U("span", {
|
|
296
|
+
className: v(ae, X.subtitle),
|
|
296
297
|
children: e.loadMoreErrorLabel ?? e.errorLabel
|
|
297
|
-
}), /* @__PURE__ */
|
|
298
|
+
}), /* @__PURE__ */ U(A, {
|
|
298
299
|
label: e.retryLabel,
|
|
299
|
-
onClick:
|
|
300
|
+
onClick: E
|
|
300
301
|
})]
|
|
301
302
|
}),
|
|
302
|
-
/* @__PURE__ */
|
|
303
|
-
ref:
|
|
303
|
+
/* @__PURE__ */ U("div", {
|
|
304
|
+
ref: _e,
|
|
304
305
|
"aria-hidden": !0,
|
|
305
306
|
className: "h-px w-full"
|
|
306
307
|
})
|
|
307
308
|
]
|
|
308
|
-
}),
|
|
309
|
-
return /* @__PURE__ */
|
|
310
|
-
style:
|
|
311
|
-
className: v("flex h-full w-full flex-col gap-
|
|
309
|
+
}), I = s || !!c || o.length === 0;
|
|
310
|
+
return /* @__PURE__ */ W("div", {
|
|
311
|
+
style: oe,
|
|
312
|
+
className: v("flex h-full w-full flex-col gap-4 overflow-y-auto px-4 py-4 desktop:gap-6 desktop:px-8", X.container, x),
|
|
312
313
|
children: [
|
|
313
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ W("div", {
|
|
314
315
|
className: "flex items-start justify-between gap-4",
|
|
315
|
-
children: [/* @__PURE__ */
|
|
316
|
+
children: [/* @__PURE__ */ W("div", {
|
|
316
317
|
className: "min-w-0 gap-2",
|
|
317
|
-
children: [/* @__PURE__ */
|
|
318
|
-
className: v("truncate",
|
|
318
|
+
children: [/* @__PURE__ */ U("h1", {
|
|
319
|
+
className: v("truncate", ie),
|
|
319
320
|
children: e.title
|
|
320
|
-
}), /* @__PURE__ */
|
|
321
|
-
className: v("mt-1",
|
|
321
|
+
}), /* @__PURE__ */ U("p", {
|
|
322
|
+
className: v("mt-1", ae, X.subtitle),
|
|
322
323
|
children: e.subtitle
|
|
323
324
|
})]
|
|
324
|
-
}), /* @__PURE__ */
|
|
325
|
+
}), /* @__PURE__ */ U(M, {
|
|
325
326
|
label: e.createButtonLabel,
|
|
326
327
|
textClassName: X.createButtonLabel,
|
|
327
328
|
"aria-label": e.createButtonLabel,
|
|
328
|
-
iconBefore: /* @__PURE__ */
|
|
329
|
-
size:
|
|
329
|
+
iconBefore: /* @__PURE__ */ U(Ce, {
|
|
330
|
+
size: O.SM,
|
|
330
331
|
"aria-hidden": !0,
|
|
331
|
-
stroke:
|
|
332
|
+
stroke: k
|
|
332
333
|
}),
|
|
333
334
|
onClick: t,
|
|
334
335
|
className: v("shrink-0", X.createButton)
|
|
335
336
|
})]
|
|
336
337
|
}),
|
|
337
|
-
/* @__PURE__ */
|
|
338
|
+
/* @__PURE__ */ W("div", {
|
|
338
339
|
className: "flex flex-wrap items-center gap-3",
|
|
339
|
-
children: [/* @__PURE__ */
|
|
340
|
+
children: [/* @__PURE__ */ U("div", {
|
|
340
341
|
role: "search",
|
|
341
342
|
className: "flex-1",
|
|
342
|
-
children: /* @__PURE__ */
|
|
343
|
+
children: /* @__PURE__ */ U(de, {
|
|
343
344
|
value: n,
|
|
344
|
-
onChange:
|
|
345
|
+
onChange: se,
|
|
345
346
|
placeholder: e.searchPlaceholder,
|
|
346
347
|
clearLabel: e.clearSearchLabel,
|
|
347
348
|
"aria-label": e.searchAriaLabel,
|
|
348
349
|
size: re.Large,
|
|
349
|
-
onFocus:
|
|
350
|
-
onBlur:
|
|
350
|
+
onFocus: P,
|
|
351
|
+
onBlur: me
|
|
351
352
|
})
|
|
352
|
-
}), e.sortOptions.length > 0 && /* @__PURE__ */
|
|
353
|
-
ref:
|
|
354
|
-
className: v(
|
|
355
|
-
children: /* @__PURE__ */
|
|
356
|
-
items:
|
|
357
|
-
label:
|
|
358
|
-
variant:
|
|
359
|
-
appearance:
|
|
360
|
-
iconBefore: b === void 0 ? /* @__PURE__ */
|
|
361
|
-
size:
|
|
353
|
+
}), e.sortOptions.length > 0 && /* @__PURE__ */ U("div", {
|
|
354
|
+
ref: N,
|
|
355
|
+
className: v(ue && X.sortControlHidden),
|
|
356
|
+
children: /* @__PURE__ */ U(te, {
|
|
357
|
+
items: ge,
|
|
358
|
+
label: he,
|
|
359
|
+
variant: w.Primary,
|
|
360
|
+
appearance: C.Ghost,
|
|
361
|
+
iconBefore: b === void 0 ? /* @__PURE__ */ U(ye, {
|
|
362
|
+
size: O.SM,
|
|
362
363
|
"aria-hidden": !0,
|
|
363
|
-
stroke:
|
|
364
|
+
stroke: k
|
|
364
365
|
}) : b,
|
|
365
366
|
className: X.sortButton
|
|
366
367
|
})
|
|
367
368
|
})]
|
|
368
369
|
}),
|
|
369
370
|
g,
|
|
370
|
-
/* @__PURE__ */
|
|
371
|
+
/* @__PURE__ */ U("span", {
|
|
371
372
|
role: "status",
|
|
372
373
|
"aria-live": "polite",
|
|
373
374
|
className: "sr-only",
|
|
374
|
-
children:
|
|
375
|
+
children: F
|
|
375
376
|
}),
|
|
376
|
-
/* @__PURE__ */
|
|
377
|
-
className: v("mx-auto flex size-full w-full min-w-0 flex-col",
|
|
378
|
-
children:
|
|
377
|
+
/* @__PURE__ */ U("div", {
|
|
378
|
+
className: v("mx-auto flex size-full w-full min-w-0 flex-col", I && "items-center justify-center"),
|
|
379
|
+
children: ve()
|
|
379
380
|
})
|
|
380
381
|
]
|
|
381
382
|
});
|
|
382
|
-
},
|
|
383
|
+
}, Je = /* @__PURE__ */ function(e) {
|
|
383
384
|
return e.FirstToRun = "firstToRun", e.LastToRun = "lastToRun", e.Newest = "newest", e.NameAZ = "nameAZ", e;
|
|
384
|
-
}({}),
|
|
385
|
+
}({}), Ye = (e) => e == null ? "" : typeof e == "string" ? e.trim() : Array.isArray(e) ? e.length ? JSON.stringify(e) : "" : JSON.stringify(e), Xe = (e, t) => {
|
|
385
386
|
let n = new Set([...Object.keys(e), ...Object.keys(t)]);
|
|
386
|
-
for (let r of n) if (
|
|
387
|
+
for (let r of n) if (Ye(e[r]) !== Ye(t[r])) return !0;
|
|
387
388
|
return !1;
|
|
388
|
-
},
|
|
389
|
-
let o =
|
|
390
|
-
return /* @__PURE__ */
|
|
389
|
+
}, Ze = { error: "_error_v2pfn_4" }, Qe = ({ label: e, value: t, onChange: r, error: i, errorClassName: a = "dial-small-text" }) => {
|
|
390
|
+
let o = H(/* @__PURE__ */ new Date()).current;
|
|
391
|
+
return /* @__PURE__ */ W("div", {
|
|
391
392
|
className: "flex flex-col gap-1",
|
|
392
|
-
children: [/* @__PURE__ */
|
|
393
|
+
children: [/* @__PURE__ */ U(T, {
|
|
393
394
|
id: "scheduled-task-run-at",
|
|
394
|
-
mode:
|
|
395
|
+
mode: E.DateTime,
|
|
395
396
|
value: s(t),
|
|
396
397
|
onChange: (e) => r(n(e)),
|
|
397
398
|
minDate: o,
|
|
@@ -400,8 +401,8 @@ var W = {
|
|
|
400
401
|
required: !0
|
|
401
402
|
},
|
|
402
403
|
invalid: !!i
|
|
403
|
-
}), i && /* @__PURE__ */
|
|
404
|
-
className: v(a,
|
|
404
|
+
}), i && /* @__PURE__ */ U("p", {
|
|
405
|
+
className: v(a, Ze.error),
|
|
405
406
|
children: i
|
|
406
407
|
})]
|
|
407
408
|
});
|
|
@@ -412,50 +413,50 @@ var W = {
|
|
|
412
413
|
instructionsError: "_instructionsError_1253x_18",
|
|
413
414
|
refineFeedback: "_refineFeedback_1253x_22",
|
|
414
415
|
refineError: "_refineError_1253x_26"
|
|
415
|
-
},
|
|
416
|
-
let
|
|
417
|
-
if (
|
|
418
|
-
|
|
416
|
+
}, $e = Ee(async () => ({ default: (await Pe()).MarkdownEditor })), et = ({ labels: n, values: r, initialValues: s, errors: u, modelSelector: p, modelLabelId: m, skillSelector: h, onFieldChange: b, onBack: S, onCancel: C, onSubmit: te, isSubmitting: w = !1, onRefineDescription: D, onRefineInstructions: re, markdownEditorTheme: ie, backIcon: A, className: ae, styles: oe }) => {
|
|
417
|
+
let le = ke(), j = ke(), M = H(void 0), de = (e) => e ? async (t, n) => {
|
|
418
|
+
if (M.current && !M.current.aborted) throw new DOMException("Busy", "AbortError");
|
|
419
|
+
M.current = n;
|
|
419
420
|
try {
|
|
420
421
|
return await e(t, n);
|
|
421
422
|
} finally {
|
|
422
|
-
|
|
423
|
+
M.current === n && (M.current = void 0);
|
|
423
424
|
}
|
|
424
|
-
} : void 0,
|
|
425
|
+
} : void 0, N = x({
|
|
425
426
|
value: r.description ?? "",
|
|
426
427
|
onChange: (e) => b("description", e),
|
|
427
|
-
onRefine:
|
|
428
|
-
disabled:
|
|
429
|
-
}),
|
|
428
|
+
onRefine: de(D),
|
|
429
|
+
disabled: w
|
|
430
|
+
}), P = x({
|
|
430
431
|
value: r.prompt,
|
|
431
432
|
onChange: (e) => b("prompt", e),
|
|
432
|
-
onRefine:
|
|
433
|
-
disabled:
|
|
434
|
-
}),
|
|
435
|
-
|
|
436
|
-
},
|
|
437
|
-
|
|
438
|
-
}),
|
|
439
|
-
|
|
440
|
-
}),
|
|
441
|
-
"--stcf-details-border":
|
|
442
|
-
"--stcf-subtitle-text":
|
|
443
|
-
"--stcf-error-text":
|
|
444
|
-
"--stcf-refine-action-text":
|
|
445
|
-
"--stcf-refine-error-text":
|
|
446
|
-
}),
|
|
447
|
-
feedbackClassName: v(
|
|
433
|
+
onRefine: de(re),
|
|
434
|
+
disabled: w
|
|
435
|
+
}), me = N.isPending || P.isPending, he = () => {
|
|
436
|
+
N.reset(), P.reset();
|
|
437
|
+
}, F = ee(!!(s && Xe(r, s))), _e = () => F.guard(() => {
|
|
438
|
+
he(), S();
|
|
439
|
+
}), ye = () => F.guard(() => {
|
|
440
|
+
he(), C();
|
|
441
|
+
}), I = y(), be = !r.skillUrls?.length, [L, R] = je(), xe = H(/* @__PURE__ */ new Date()).current, { colors: z, typography: B, layout: Se } = oe ?? {}, Ce = B?.titleClassName ?? "dial-h1-text", we = B?.sectionTitleClassName ?? "dial-body-semi-text", Ee = B?.sectionSubtitleClassName ?? "dial-tiny-text", De = B?.instructionsLabelClassName ?? "dial-body-semi-text mb-1", V = B?.instructionsErrorClassName ?? "dial-small-text", Ae = _({
|
|
442
|
+
"--stcf-details-border": z?.detailsColumnBorder,
|
|
443
|
+
"--stcf-subtitle-text": z?.sectionSubtitleText,
|
|
444
|
+
"--stcf-error-text": z?.instructionsErrorText,
|
|
445
|
+
"--stcf-refine-action-text": z?.refineActionText,
|
|
446
|
+
"--stcf-refine-error-text": z?.refineErrorText
|
|
447
|
+
}), Pe = {
|
|
448
|
+
feedbackClassName: v(z?.refineActionText && Z.refineFeedback, B?.refineFeedbackClassName, Fe.refineFeedback),
|
|
448
449
|
errorClassName: Z.refineError
|
|
449
|
-
},
|
|
450
|
-
|
|
451
|
-
},
|
|
452
|
-
|
|
453
|
-
},
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
}, [
|
|
457
|
-
let
|
|
458
|
-
return /* @__PURE__ */
|
|
450
|
+
}, G = (e) => {
|
|
451
|
+
R(c.test(e.target.value) ? void 0 : n.timeInvalidLabel), b("time", e.target.value);
|
|
452
|
+
}, K = (e) => {
|
|
453
|
+
R(void 0), b("time", typeof e == "string" ? e : "");
|
|
454
|
+
}, q = r.repeat !== t.OneTime && r.repeat !== t.Hourly;
|
|
455
|
+
Oe(() => {
|
|
456
|
+
q || R(void 0);
|
|
457
|
+
}, [q]);
|
|
458
|
+
let J = q ? L ?? u.time : void 0, Ie = (e) => b("runAt", e), Le = w || me || !r.displayName.trim() || !r.modelId || !r.prompt.trim() && !r.skillUrls?.length || !!u.skillUrls || q && !r.time || !!J;
|
|
459
|
+
return /* @__PURE__ */ W(Me, { children: [/* @__PURE__ */ U(Ne, {
|
|
459
460
|
labels: {
|
|
460
461
|
title: n.pageTitle,
|
|
461
462
|
backButtonLabel: n.backButtonLabel,
|
|
@@ -463,50 +464,50 @@ var W = {
|
|
|
463
464
|
submitButtonLabel: n.createButtonLabel,
|
|
464
465
|
submittingLabel: n.submittingLabel ?? "Saving"
|
|
465
466
|
},
|
|
466
|
-
onBack:
|
|
467
|
-
onCancel:
|
|
467
|
+
onBack: _e,
|
|
468
|
+
onCancel: ye,
|
|
468
469
|
onSubmit: () => {
|
|
469
|
-
!
|
|
470
|
+
!Le && (!M.current || M.current.aborted) && te();
|
|
470
471
|
},
|
|
471
|
-
isCancelDisabled:
|
|
472
|
-
isSubmitDisabled:
|
|
473
|
-
isSubmitting:
|
|
474
|
-
backIcon:
|
|
475
|
-
size:
|
|
476
|
-
stroke:
|
|
472
|
+
isCancelDisabled: w,
|
|
473
|
+
isSubmitDisabled: Le,
|
|
474
|
+
isSubmitting: w,
|
|
475
|
+
backIcon: A === void 0 ? /* @__PURE__ */ U(ve, {
|
|
476
|
+
size: O.LG,
|
|
477
|
+
stroke: k,
|
|
477
478
|
"aria-hidden": !0,
|
|
478
479
|
className: "rtl:scale-x-[-1]"
|
|
479
|
-
}) :
|
|
480
|
+
}) : A,
|
|
480
481
|
layout: {
|
|
481
|
-
sideColumnWidth:
|
|
482
|
-
columnGap:
|
|
482
|
+
sideColumnWidth: Se?.detailsWidth,
|
|
483
|
+
columnGap: Se?.columnGap,
|
|
483
484
|
reserveEndColumn: !1
|
|
484
485
|
},
|
|
485
|
-
className:
|
|
486
|
+
className: ae,
|
|
486
487
|
styles: {
|
|
487
|
-
colors: { background:
|
|
488
|
+
colors: { background: z?.background },
|
|
488
489
|
header: {
|
|
489
|
-
colors: { borderColor:
|
|
490
|
-
typography: { fontClassName:
|
|
490
|
+
colors: { borderColor: z?.headerBorder },
|
|
491
|
+
typography: { fontClassName: Ce }
|
|
491
492
|
},
|
|
492
|
-
cssVars:
|
|
493
|
+
cssVars: Ae
|
|
493
494
|
},
|
|
494
|
-
left: /* @__PURE__ */
|
|
495
|
+
left: /* @__PURE__ */ W("div", {
|
|
495
496
|
role: "group",
|
|
496
497
|
"aria-label": n.detailsSectionTitle,
|
|
497
|
-
className: v("flex flex-1 flex-col gap-5 border-e
|
|
498
|
+
className: v("flex flex-1 flex-col gap-5 py-6 desktop:border-e", Z.detailsColumn, Z.formColumn),
|
|
498
499
|
children: [
|
|
499
|
-
/* @__PURE__ */
|
|
500
|
+
/* @__PURE__ */ W("div", {
|
|
500
501
|
className: "flex flex-col gap-1",
|
|
501
|
-
children: [/* @__PURE__ */
|
|
502
|
-
className:
|
|
502
|
+
children: [/* @__PURE__ */ U("h2", {
|
|
503
|
+
className: we,
|
|
503
504
|
children: n.detailsSectionTitle
|
|
504
|
-
}), /* @__PURE__ */
|
|
505
|
-
className: v(
|
|
505
|
+
}), /* @__PURE__ */ U("p", {
|
|
506
|
+
className: v(Ee, Z.sectionSubtitle),
|
|
506
507
|
children: n.detailsSectionSubtitle
|
|
507
508
|
})]
|
|
508
509
|
}),
|
|
509
|
-
/* @__PURE__ */
|
|
510
|
+
/* @__PURE__ */ U(se, {
|
|
510
511
|
id: "scheduled-task-display-name",
|
|
511
512
|
value: r.displayName,
|
|
512
513
|
onChange: (e) => b("displayName", e ?? ""),
|
|
@@ -517,46 +518,46 @@ var W = {
|
|
|
517
518
|
invalid: !!u.displayName,
|
|
518
519
|
error: u.displayName
|
|
519
520
|
}),
|
|
520
|
-
/* @__PURE__ */
|
|
521
|
-
isEnabled: !!
|
|
522
|
-
fieldId:
|
|
521
|
+
/* @__PURE__ */ U(g, {
|
|
522
|
+
isEnabled: !!D,
|
|
523
|
+
fieldId: le,
|
|
523
524
|
label: n.descriptionLabel,
|
|
524
525
|
labels: n,
|
|
525
|
-
refinement:
|
|
526
|
-
disabled:
|
|
527
|
-
...
|
|
528
|
-
children: /* @__PURE__ */
|
|
529
|
-
id:
|
|
526
|
+
refinement: N,
|
|
527
|
+
disabled: w || me,
|
|
528
|
+
...Pe,
|
|
529
|
+
children: /* @__PURE__ */ U(ge, {
|
|
530
|
+
id: le,
|
|
530
531
|
value: r.description ?? "",
|
|
531
532
|
onChange: (e) => {
|
|
532
|
-
|
|
533
|
+
N.reset(), b("description", e);
|
|
533
534
|
},
|
|
534
|
-
labelProps:
|
|
535
|
+
labelProps: D ? void 0 : { label: n.descriptionLabel },
|
|
535
536
|
maxLength: 500,
|
|
536
537
|
invalid: !!u.description,
|
|
537
538
|
error: u.description,
|
|
538
539
|
caption: r.description ? `${r.description.length}/500` : void 0
|
|
539
540
|
})
|
|
540
541
|
}),
|
|
541
|
-
/* @__PURE__ */
|
|
542
|
+
/* @__PURE__ */ W("div", {
|
|
542
543
|
className: "flex flex-col gap-1",
|
|
543
544
|
children: [
|
|
544
|
-
/* @__PURE__ */
|
|
545
|
+
/* @__PURE__ */ U(ce, {
|
|
545
546
|
id: m,
|
|
546
547
|
label: n.modelOrAgentLabel,
|
|
547
548
|
required: !0
|
|
548
549
|
}),
|
|
549
550
|
p,
|
|
550
|
-
u.modelId && /* @__PURE__ */
|
|
551
|
-
className: v(
|
|
551
|
+
u.modelId && /* @__PURE__ */ U("p", {
|
|
552
|
+
className: v(V, Z.instructionsError),
|
|
552
553
|
children: u.modelId
|
|
553
554
|
})
|
|
554
555
|
]
|
|
555
556
|
}),
|
|
556
|
-
/* @__PURE__ */
|
|
557
|
+
/* @__PURE__ */ W("div", {
|
|
557
558
|
className: "flex flex-col gap-3",
|
|
558
559
|
children: [
|
|
559
|
-
/* @__PURE__ */
|
|
560
|
+
/* @__PURE__ */ U(fe, {
|
|
560
561
|
labelProps: { label: n.repeatLabel },
|
|
561
562
|
value: r.repeat,
|
|
562
563
|
onChange: (e) => b("repeat", e),
|
|
@@ -565,39 +566,39 @@ var W = {
|
|
|
565
566
|
label: e.label
|
|
566
567
|
}))
|
|
567
568
|
}),
|
|
568
|
-
r.repeat === t.OneTime && /* @__PURE__ */
|
|
569
|
+
r.repeat === t.OneTime && /* @__PURE__ */ U(Qe, {
|
|
569
570
|
label: n.runAtLabel,
|
|
570
571
|
value: r.runAt ?? "",
|
|
571
|
-
onChange:
|
|
572
|
+
onChange: Ie,
|
|
572
573
|
error: u.runAt,
|
|
573
|
-
errorClassName:
|
|
574
|
+
errorClassName: V
|
|
574
575
|
}),
|
|
575
|
-
r.repeat !== t.OneTime && /* @__PURE__ */
|
|
576
|
-
|
|
576
|
+
r.repeat !== t.OneTime && /* @__PURE__ */ W(Me, { children: [
|
|
577
|
+
q && /* @__PURE__ */ W("div", {
|
|
577
578
|
className: "flex flex-col gap-1",
|
|
578
|
-
children: [/* @__PURE__ */
|
|
579
|
+
children: [/* @__PURE__ */ U(T, {
|
|
579
580
|
id: "scheduled-task-time",
|
|
580
|
-
mode:
|
|
581
|
+
mode: E.Time,
|
|
581
582
|
value: r.time,
|
|
582
|
-
onChange:
|
|
583
|
-
onBlur:
|
|
583
|
+
onChange: K,
|
|
584
|
+
onBlur: G,
|
|
584
585
|
labelProps: {
|
|
585
586
|
label: n.timeLabel,
|
|
586
587
|
required: !0
|
|
587
588
|
},
|
|
588
|
-
invalid: !!
|
|
589
|
-
disabled:
|
|
589
|
+
invalid: !!J,
|
|
590
|
+
disabled: w,
|
|
590
591
|
showTimezone: !0
|
|
591
|
-
}),
|
|
592
|
-
className: v(
|
|
593
|
-
children:
|
|
592
|
+
}), J && /* @__PURE__ */ U("p", {
|
|
593
|
+
className: v(V, Z.instructionsError),
|
|
594
|
+
children: J
|
|
594
595
|
})]
|
|
595
596
|
}),
|
|
596
|
-
r.repeat === t.Weekly && /* @__PURE__ */
|
|
597
|
+
r.repeat === t.Weekly && /* @__PURE__ */ W("div", {
|
|
597
598
|
className: "flex flex-col gap-1",
|
|
598
|
-
children: [/* @__PURE__ */
|
|
599
|
+
children: [/* @__PURE__ */ U(T, {
|
|
599
600
|
id: "scheduled-task-day-of-week",
|
|
600
|
-
mode:
|
|
601
|
+
mode: E.Weekday,
|
|
601
602
|
value: a(r.dayOfWeek),
|
|
602
603
|
onChange: (e) => b("dayOfWeek", o(e)),
|
|
603
604
|
labelProps: {
|
|
@@ -605,12 +606,12 @@ var W = {
|
|
|
605
606
|
required: !0
|
|
606
607
|
},
|
|
607
608
|
invalid: !!u.dayOfWeek
|
|
608
|
-
}), u.dayOfWeek && /* @__PURE__ */
|
|
609
|
-
className: v(
|
|
609
|
+
}), u.dayOfWeek && /* @__PURE__ */ U("p", {
|
|
610
|
+
className: v(V, Z.instructionsError),
|
|
610
611
|
children: u.dayOfWeek
|
|
611
612
|
})]
|
|
612
613
|
}),
|
|
613
|
-
r.repeat === t.Monthly && /* @__PURE__ */
|
|
614
|
+
r.repeat === t.Monthly && /* @__PURE__ */ U(ue, {
|
|
614
615
|
id: "scheduled-task-day-of-month",
|
|
615
616
|
integer: !0,
|
|
616
617
|
min: 1,
|
|
@@ -624,7 +625,7 @@ var W = {
|
|
|
624
625
|
invalid: !!u.dayOfMonth,
|
|
625
626
|
error: u.dayOfMonth
|
|
626
627
|
}),
|
|
627
|
-
r.repeat === t.Hourly && /* @__PURE__ */
|
|
628
|
+
r.repeat === t.Hourly && /* @__PURE__ */ U(ue, {
|
|
628
629
|
id: "scheduled-task-minute",
|
|
629
630
|
integer: !0,
|
|
630
631
|
min: 0,
|
|
@@ -638,36 +639,36 @@ var W = {
|
|
|
638
639
|
invalid: !!u.minute,
|
|
639
640
|
error: u.minute
|
|
640
641
|
}),
|
|
641
|
-
/* @__PURE__ */
|
|
642
|
+
/* @__PURE__ */ W("div", {
|
|
642
643
|
className: "flex flex-row gap-3",
|
|
643
|
-
children: [/* @__PURE__ */
|
|
644
|
+
children: [/* @__PURE__ */ W("div", {
|
|
644
645
|
className: "flex flex-1 flex-col gap-1",
|
|
645
|
-
children: [/* @__PURE__ */
|
|
646
|
+
children: [/* @__PURE__ */ U(T, {
|
|
646
647
|
id: "scheduled-task-start-date",
|
|
647
|
-
mode:
|
|
648
|
+
mode: E.Date,
|
|
648
649
|
value: e(r.startDate),
|
|
649
650
|
onChange: (e) => b("startDate", i(e)),
|
|
650
|
-
minDate:
|
|
651
|
+
minDate: xe,
|
|
651
652
|
labelProps: { label: n.startDateLabel },
|
|
652
653
|
placeholder: n.startDatePlaceholder,
|
|
653
654
|
invalid: !!u.startDate
|
|
654
|
-
}), u.startDate && /* @__PURE__ */
|
|
655
|
-
className: v(
|
|
655
|
+
}), u.startDate && /* @__PURE__ */ U("p", {
|
|
656
|
+
className: v(V, Z.instructionsError),
|
|
656
657
|
children: u.startDate
|
|
657
658
|
})]
|
|
658
|
-
}), /* @__PURE__ */
|
|
659
|
+
}), /* @__PURE__ */ W("div", {
|
|
659
660
|
className: "flex flex-1 flex-col gap-1",
|
|
660
|
-
children: [/* @__PURE__ */
|
|
661
|
+
children: [/* @__PURE__ */ U(T, {
|
|
661
662
|
id: "scheduled-task-end-date",
|
|
662
|
-
mode:
|
|
663
|
+
mode: E.Date,
|
|
663
664
|
value: e(r.endDate),
|
|
664
665
|
onChange: (e) => b("endDate", i(e)),
|
|
665
|
-
minDate:
|
|
666
|
+
minDate: xe,
|
|
666
667
|
labelProps: { label: n.endDateLabel },
|
|
667
668
|
placeholder: n.endDatePlaceholder,
|
|
668
669
|
invalid: !!u.endDate
|
|
669
|
-
}), u.endDate && /* @__PURE__ */
|
|
670
|
-
className: v(
|
|
670
|
+
}), u.endDate && /* @__PURE__ */ U("p", {
|
|
671
|
+
className: v(V, Z.instructionsError),
|
|
671
672
|
children: u.endDate
|
|
672
673
|
})]
|
|
673
674
|
})]
|
|
@@ -677,71 +678,71 @@ var W = {
|
|
|
677
678
|
})
|
|
678
679
|
]
|
|
679
680
|
}),
|
|
680
|
-
children: /* @__PURE__ */
|
|
681
|
+
children: /* @__PURE__ */ W("div", {
|
|
681
682
|
role: "group",
|
|
682
683
|
"aria-label": n.configurationSectionTitle,
|
|
683
684
|
className: v("flex flex-1 flex-col gap-5 py-6", Z.formColumn),
|
|
684
685
|
children: [
|
|
685
|
-
/* @__PURE__ */
|
|
686
|
+
/* @__PURE__ */ W("div", {
|
|
686
687
|
className: "flex flex-col gap-1",
|
|
687
|
-
children: [/* @__PURE__ */
|
|
688
|
-
className:
|
|
688
|
+
children: [/* @__PURE__ */ U("h2", {
|
|
689
|
+
className: we,
|
|
689
690
|
children: n.configurationSectionTitle
|
|
690
|
-
}), /* @__PURE__ */
|
|
691
|
-
className: v(
|
|
691
|
+
}), /* @__PURE__ */ U("p", {
|
|
692
|
+
className: v(Ee, Z.sectionSubtitle),
|
|
692
693
|
children: n.configurationSectionSubtitle
|
|
693
694
|
})]
|
|
694
695
|
}),
|
|
695
|
-
h == null ? u.skillUrls && /* @__PURE__ */
|
|
696
|
+
h == null ? u.skillUrls && /* @__PURE__ */ U("div", {
|
|
696
697
|
"aria-live": "polite",
|
|
697
|
-
children: /* @__PURE__ */
|
|
698
|
-
className: v(
|
|
698
|
+
children: /* @__PURE__ */ U("p", {
|
|
699
|
+
className: v(V, Z.instructionsError),
|
|
699
700
|
children: u.skillUrls
|
|
700
701
|
})
|
|
701
|
-
}) : /* @__PURE__ */
|
|
702
|
-
className: "w-full
|
|
702
|
+
}) : /* @__PURE__ */ U("div", {
|
|
703
|
+
className: "w-full max-w-[996px] min-w-0",
|
|
703
704
|
children: h
|
|
704
705
|
}),
|
|
705
|
-
/* @__PURE__ */
|
|
706
|
-
className: "flex w-full
|
|
707
|
-
children: /* @__PURE__ */
|
|
708
|
-
isEnabled: !!
|
|
709
|
-
fieldId:
|
|
710
|
-
labelClassName:
|
|
706
|
+
/* @__PURE__ */ U("div", {
|
|
707
|
+
className: "flex w-full max-w-[996px] min-w-0 flex-col",
|
|
708
|
+
children: /* @__PURE__ */ U(g, {
|
|
709
|
+
isEnabled: !!re,
|
|
710
|
+
fieldId: j,
|
|
711
|
+
labelClassName: De,
|
|
711
712
|
label: n.instructionsLabel,
|
|
712
|
-
required:
|
|
713
|
+
required: be,
|
|
713
714
|
labels: n,
|
|
714
|
-
refinement:
|
|
715
|
-
disabled:
|
|
716
|
-
...
|
|
717
|
-
children: /* @__PURE__ */
|
|
715
|
+
refinement: P,
|
|
716
|
+
disabled: w || me,
|
|
717
|
+
...Pe,
|
|
718
|
+
children: /* @__PURE__ */ W("div", {
|
|
718
719
|
className: "flex flex-1 flex-col gap-1",
|
|
719
720
|
children: [
|
|
720
|
-
!
|
|
721
|
-
htmlFor:
|
|
722
|
-
className:
|
|
721
|
+
!re && /* @__PURE__ */ U(ce, {
|
|
722
|
+
htmlFor: j,
|
|
723
|
+
className: De,
|
|
723
724
|
label: n.instructionsLabel,
|
|
724
|
-
required:
|
|
725
|
+
required: be
|
|
725
726
|
}),
|
|
726
|
-
/* @__PURE__ */
|
|
727
|
-
ref:
|
|
727
|
+
/* @__PURE__ */ U("div", {
|
|
728
|
+
ref: I,
|
|
728
729
|
className: v("w-full", d, f),
|
|
729
|
-
children: /* @__PURE__ */
|
|
730
|
-
fallback: /* @__PURE__ */
|
|
731
|
-
children: /* @__PURE__ */
|
|
732
|
-
id:
|
|
730
|
+
children: /* @__PURE__ */ U(Te, {
|
|
731
|
+
fallback: /* @__PURE__ */ U(pe, {}),
|
|
732
|
+
children: /* @__PURE__ */ U($e, {
|
|
733
|
+
id: j,
|
|
733
734
|
value: r.prompt,
|
|
734
735
|
onChange: (e) => {
|
|
735
|
-
|
|
736
|
+
P.reset(), b("prompt", e);
|
|
736
737
|
},
|
|
737
738
|
height: 480,
|
|
738
|
-
theme:
|
|
739
|
+
theme: ie,
|
|
739
740
|
placeholder: n.instructionsPlaceholder
|
|
740
741
|
})
|
|
741
742
|
})
|
|
742
743
|
}),
|
|
743
|
-
u.prompt && /* @__PURE__ */
|
|
744
|
-
className: v(
|
|
744
|
+
u.prompt && /* @__PURE__ */ U("p", {
|
|
745
|
+
className: v(V, Z.instructionsError),
|
|
745
746
|
children: u.prompt
|
|
746
747
|
})
|
|
747
748
|
]
|
|
@@ -750,138 +751,137 @@ var W = {
|
|
|
750
751
|
})
|
|
751
752
|
]
|
|
752
753
|
})
|
|
753
|
-
}),
|
|
754
|
+
}), F.isConfirmOpen && /* @__PURE__ */ U(l, {
|
|
754
755
|
open: !0,
|
|
755
756
|
title: n.discardTitle ?? "Discard unsaved changes?",
|
|
756
757
|
message: n.discardMessage ?? "You have unsaved changes. Leaving now will discard them.",
|
|
757
758
|
confirmLabel: n.discardConfirmLabel ?? "Discard changes",
|
|
758
759
|
cancelLabel: n.discardCancelLabel ?? "Keep editing",
|
|
759
|
-
variant:
|
|
760
|
-
onConfirm:
|
|
761
|
-
onClose:
|
|
760
|
+
variant: ne.Danger,
|
|
761
|
+
onConfirm: F.confirm,
|
|
762
|
+
onClose: F.dismiss
|
|
762
763
|
})] });
|
|
763
|
-
},
|
|
764
|
+
}, tt = /* @__PURE__ */ function(e) {
|
|
764
765
|
return e.Details = "details", e.Configuration = "configuration", e.History = "history", e;
|
|
765
|
-
}({}),
|
|
766
|
+
}({}), nt = /* @__PURE__ */ function(e) {
|
|
766
767
|
return e.Card = "card", e.Flow = "flow", e;
|
|
767
|
-
}({}),
|
|
768
|
+
}({}), rt = { subtitleText: "_subtitleText_1i4x2_3" }, it = ({ skillLabel: e, skillDisplayNames: t, instructionsLabel: n, instructionsMarkdown: r, renderInstructions: i, markdownLabels: a, fieldLabelClassName: o = "dial-tiny-text" }) => /* @__PURE__ */ W("div", {
|
|
768
769
|
className: "flex min-w-0 flex-col gap-5",
|
|
769
|
-
children: [!!t?.length && /* @__PURE__ */
|
|
770
|
+
children: [!!t?.length && /* @__PURE__ */ W("div", {
|
|
770
771
|
role: "group",
|
|
771
772
|
"aria-label": e,
|
|
772
773
|
className: "flex min-w-0 flex-col gap-1",
|
|
773
|
-
children: [/* @__PURE__ */
|
|
774
|
-
className: v(o,
|
|
774
|
+
children: [/* @__PURE__ */ U("span", {
|
|
775
|
+
className: v(o, rt.subtitleText),
|
|
775
776
|
children: e
|
|
776
|
-
}), /* @__PURE__ */
|
|
777
|
-
className: "whitespace-normal
|
|
778
|
-
children: t?.map((e, t) => /* @__PURE__ */
|
|
777
|
+
}), /* @__PURE__ */ U("p", {
|
|
778
|
+
className: "break-all whitespace-normal",
|
|
779
|
+
children: t?.map((e, t) => /* @__PURE__ */ U("span", {
|
|
779
780
|
className: "block",
|
|
780
781
|
children: e
|
|
781
782
|
}, `${t}:${e}`))
|
|
782
783
|
})]
|
|
783
|
-
}), r && /* @__PURE__ */
|
|
784
|
+
}), r && /* @__PURE__ */ W("div", {
|
|
784
785
|
role: "group",
|
|
785
786
|
"aria-label": n,
|
|
786
787
|
className: "flex min-w-0 flex-col gap-1",
|
|
787
|
-
children: [/* @__PURE__ */
|
|
788
|
-
className: v(o,
|
|
788
|
+
children: [/* @__PURE__ */ U("span", {
|
|
789
|
+
className: v(o, rt.subtitleText),
|
|
789
790
|
children: n
|
|
790
|
-
}), i ? i(r) : /* @__PURE__ */
|
|
791
|
+
}), i ? i(r) : /* @__PURE__ */ U(p, {
|
|
791
792
|
content: r,
|
|
792
793
|
...a
|
|
793
794
|
})]
|
|
794
795
|
})]
|
|
795
|
-
}),
|
|
796
|
-
t && /* @__PURE__ */
|
|
796
|
+
}), at = { subtitleText: "_subtitleText_1i4x2_3" }, ot = ({ labels: e, description: t, modelLabel: n, repeatsLabel: r, activeWindowLabel: i, completedLabel: a, fieldLabelClassName: o = "dial-tiny-text", fieldValueClassName: s = "dial-small-text" }) => /* @__PURE__ */ W(Me, { children: [
|
|
797
|
+
t && /* @__PURE__ */ W("div", {
|
|
797
798
|
className: "flex flex-col gap-1",
|
|
798
|
-
children: [/* @__PURE__ */
|
|
799
|
-
className: v(o,
|
|
799
|
+
children: [/* @__PURE__ */ U("span", {
|
|
800
|
+
className: v(o, at.subtitleText),
|
|
800
801
|
children: e.descriptionLabel
|
|
801
|
-
}), /* @__PURE__ */
|
|
802
|
+
}), /* @__PURE__ */ U("p", {
|
|
802
803
|
className: s,
|
|
803
804
|
children: t
|
|
804
805
|
})]
|
|
805
806
|
}),
|
|
806
|
-
a && /* @__PURE__ */
|
|
807
|
+
a && /* @__PURE__ */ W("div", {
|
|
807
808
|
className: "flex flex-col gap-1",
|
|
808
|
-
children: [/* @__PURE__ */
|
|
809
|
-
className: v(o,
|
|
809
|
+
children: [/* @__PURE__ */ U("span", {
|
|
810
|
+
className: v(o, at.subtitleText),
|
|
810
811
|
children: e.completedFieldLabel
|
|
811
|
-
}), /* @__PURE__ */
|
|
812
|
+
}), /* @__PURE__ */ U("p", {
|
|
812
813
|
className: s,
|
|
813
814
|
children: a
|
|
814
815
|
})]
|
|
815
816
|
}),
|
|
816
|
-
n && /* @__PURE__ */
|
|
817
|
+
n && /* @__PURE__ */ W("div", {
|
|
817
818
|
className: "flex flex-col gap-1",
|
|
818
|
-
children: [/* @__PURE__ */
|
|
819
|
-
className: v(o,
|
|
819
|
+
children: [/* @__PURE__ */ U("span", {
|
|
820
|
+
className: v(o, at.subtitleText),
|
|
820
821
|
children: e.modelLabel
|
|
821
|
-
}), /* @__PURE__ */
|
|
822
|
+
}), /* @__PURE__ */ U("p", {
|
|
822
823
|
className: s,
|
|
823
824
|
children: n
|
|
824
825
|
})]
|
|
825
826
|
}),
|
|
826
|
-
r && /* @__PURE__ */
|
|
827
|
+
r && /* @__PURE__ */ W("div", {
|
|
827
828
|
className: "flex flex-col gap-1",
|
|
828
|
-
children: [/* @__PURE__ */
|
|
829
|
-
className: v(o,
|
|
829
|
+
children: [/* @__PURE__ */ U("span", {
|
|
830
|
+
className: v(o, at.subtitleText),
|
|
830
831
|
children: e.repeatsLabel
|
|
831
|
-
}), /* @__PURE__ */
|
|
832
|
+
}), /* @__PURE__ */ U("p", {
|
|
832
833
|
className: s,
|
|
833
834
|
children: r
|
|
834
835
|
})]
|
|
835
836
|
}),
|
|
836
|
-
i && /* @__PURE__ */
|
|
837
|
+
i && /* @__PURE__ */ W("div", {
|
|
837
838
|
className: "flex flex-col gap-1",
|
|
838
|
-
children: [/* @__PURE__ */
|
|
839
|
-
className: v(o,
|
|
839
|
+
children: [/* @__PURE__ */ U("span", {
|
|
840
|
+
className: v(o, at.subtitleText),
|
|
840
841
|
children: e.activeWindowLabel
|
|
841
|
-
}), /* @__PURE__ */
|
|
842
|
+
}), /* @__PURE__ */ U("p", {
|
|
842
843
|
className: s,
|
|
843
844
|
children: i
|
|
844
845
|
})]
|
|
845
846
|
})
|
|
846
|
-
] }),
|
|
847
|
+
] }), st = /* @__PURE__ */ function(e) {
|
|
847
848
|
return e.Success = "success", e.Error = "error", e.InProgress = "inProgress", e.Missed = "missed", e;
|
|
848
849
|
}({}), Q = {
|
|
849
|
-
subtitleText: "
|
|
850
|
-
successIcon: "
|
|
851
|
-
errorIcon: "
|
|
852
|
-
missedIcon: "
|
|
853
|
-
currentRun: "
|
|
854
|
-
interactiveRow: "
|
|
855
|
-
unreadDot: "
|
|
856
|
-
|
|
857
|
-
}, ot = ({ status: e }) => {
|
|
850
|
+
subtitleText: "_subtitleText_fh12s_1",
|
|
851
|
+
successIcon: "_successIcon_fh12s_5",
|
|
852
|
+
errorIcon: "_errorIcon_fh12s_9",
|
|
853
|
+
missedIcon: "_missedIcon_fh12s_13",
|
|
854
|
+
currentRun: "_currentRun_fh12s_17",
|
|
855
|
+
interactiveRow: "_interactiveRow_fh12s_22",
|
|
856
|
+
unreadDot: "_unreadDot_fh12s_33"
|
|
857
|
+
}, ct = ({ status: e }) => {
|
|
858
858
|
switch (e) {
|
|
859
|
-
case
|
|
860
|
-
size:
|
|
859
|
+
case st.Success: return /* @__PURE__ */ U(be, {
|
|
860
|
+
size: O.MD,
|
|
861
861
|
className: Q.successIcon,
|
|
862
862
|
"aria-hidden": !0,
|
|
863
|
-
stroke:
|
|
863
|
+
stroke: k
|
|
864
864
|
});
|
|
865
|
-
case
|
|
866
|
-
size:
|
|
865
|
+
case st.Error: return /* @__PURE__ */ U(L, {
|
|
866
|
+
size: O.MD,
|
|
867
867
|
className: Q.errorIcon,
|
|
868
868
|
"aria-hidden": !0,
|
|
869
|
-
stroke:
|
|
869
|
+
stroke: k
|
|
870
870
|
});
|
|
871
|
-
case
|
|
871
|
+
case st.InProgress: return /* @__PURE__ */ U("span", {
|
|
872
872
|
"aria-hidden": !0,
|
|
873
|
-
children: /* @__PURE__ */
|
|
873
|
+
children: /* @__PURE__ */ U(pe, { size: O.MD })
|
|
874
874
|
});
|
|
875
|
-
case
|
|
876
|
-
size:
|
|
875
|
+
case st.Missed: return /* @__PURE__ */ U(_e, {
|
|
876
|
+
size: O.MD,
|
|
877
877
|
className: Q.missedIcon,
|
|
878
878
|
"aria-hidden": !0,
|
|
879
|
-
stroke:
|
|
879
|
+
stroke: k
|
|
880
880
|
});
|
|
881
881
|
default: return null;
|
|
882
882
|
}
|
|
883
|
-
},
|
|
884
|
-
let { colors: d, typography: f } = u ?? {}, p = f?.runTimestampClassName ?? "dial-small-text", m = f?.subtitleClassName ?? "dial-body-text",
|
|
883
|
+
}, lt = ({ items: e, isLoading: t = !1, isLoadingMore: n = !1, skeletonCount: r = 6, error: i, onRetry: a, currentRunId: o, onRunClick: s, labels: c, footer: l, styles: u }) => {
|
|
884
|
+
let { colors: d, typography: f } = u ?? {}, p = f?.runTimestampClassName ?? "dial-small-paragraph-text", m = f?.runTimestampUnreadClassName ?? "dial-small-paragraph-semi-text", h = f?.subtitleClassName ?? "dial-body-text", g = c.unreadIndicatorLabel ?? "Unread", y = _({
|
|
885
885
|
"--strhl-success-icon": d?.successIconColor,
|
|
886
886
|
"--strhl-error-icon": d?.errorIconColor,
|
|
887
887
|
"--strhl-missed-icon": d?.missedIconColor,
|
|
@@ -891,10 +891,14 @@ var W = {
|
|
|
891
891
|
"--strhl-row-hover-bg": u?.rowHoverBackground,
|
|
892
892
|
"--strhl-row-focus-bg": u?.rowFocusBackground,
|
|
893
893
|
"--strhl-row-focus-outline": u?.rowFocusOutline
|
|
894
|
-
}),
|
|
895
|
-
let t = c.runStatusLabels[e.status], n = e.id === o, r =
|
|
896
|
-
|
|
897
|
-
|
|
894
|
+
}), b = (e) => {
|
|
895
|
+
let t = c.runStatusLabels[e.status], n = e.id === o, r = e.status === st.Error && e.errorText ? e.errorText : void 0, i = [
|
|
896
|
+
r,
|
|
897
|
+
e.isUnread ? g : void 0,
|
|
898
|
+
n ? c.currentRunLabel : void 0
|
|
899
|
+
].filter((e) => !!e), a = [`${t} ${e.timestampLabel}`, ...i].join(" — "), l = !!e.conversationId && !!s;
|
|
900
|
+
return /* @__PURE__ */ W("li", {
|
|
901
|
+
...l ? {
|
|
898
902
|
role: "button",
|
|
899
903
|
tabIndex: 0,
|
|
900
904
|
onClick: () => s?.(e),
|
|
@@ -902,126 +906,132 @@ var W = {
|
|
|
902
906
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), s?.(e));
|
|
903
907
|
}
|
|
904
908
|
} : {},
|
|
905
|
-
"aria-label":
|
|
909
|
+
"aria-label": a,
|
|
906
910
|
"aria-current": n ? "true" : void 0,
|
|
907
|
-
className: v("flex min-h-[var(--strhl-row-min-height,32px)] max-w-[328px] items-center justify-between gap-2 rounded-full
|
|
908
|
-
children: [/* @__PURE__ */
|
|
909
|
-
className: "flex items-center gap-2
|
|
910
|
-
children: [/* @__PURE__ */
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
911
|
+
className: v("flex min-h-[var(--strhl-row-min-height,32px)] max-w-[328px] items-center justify-between gap-2 rounded-full px-3", n && Q.currentRun, l && "cursor-pointer", l && Q.interactiveRow),
|
|
912
|
+
children: [/* @__PURE__ */ W("span", {
|
|
913
|
+
className: "flex min-w-0 items-center gap-2",
|
|
914
|
+
children: [r ? /* @__PURE__ */ U(F, {
|
|
915
|
+
tooltip: r,
|
|
916
|
+
asChild: !0,
|
|
917
|
+
contentClassName: "max-w-[320px] whitespace-pre-wrap break-words",
|
|
918
|
+
children: /* @__PURE__ */ U("span", {
|
|
919
|
+
className: "flex shrink-0",
|
|
920
|
+
tabIndex: l ? void 0 : 0,
|
|
921
|
+
children: /* @__PURE__ */ U(ct, { status: e.status })
|
|
915
922
|
})
|
|
916
|
-
}), /* @__PURE__ */
|
|
917
|
-
className: v(p, "truncate"),
|
|
923
|
+
}) : /* @__PURE__ */ U(ct, { status: e.status }), /* @__PURE__ */ U("span", {
|
|
924
|
+
className: v(e.isUnread ? m : p, "truncate"),
|
|
918
925
|
children: e.timestampLabel
|
|
919
926
|
})]
|
|
920
|
-
}), /* @__PURE__ */
|
|
921
|
-
className: "flex
|
|
922
|
-
children: /* @__PURE__ */
|
|
927
|
+
}), /* @__PURE__ */ U("span", {
|
|
928
|
+
className: "relative flex size-3 shrink-0 items-center justify-center",
|
|
929
|
+
children: e.isUnread && /* @__PURE__ */ U("span", {
|
|
930
|
+
className: v("size-[5.33px] rounded-full", Q.unreadDot),
|
|
931
|
+
"aria-hidden": !0
|
|
932
|
+
})
|
|
923
933
|
})]
|
|
924
934
|
}, e.id);
|
|
925
|
-
},
|
|
935
|
+
}, x = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */ W("li", {
|
|
926
936
|
"aria-hidden": "true",
|
|
927
|
-
className:
|
|
928
|
-
children: [/* @__PURE__ */
|
|
929
|
-
variant:
|
|
937
|
+
className: "flex min-h-[var(--strhl-row-min-height,32px)] max-w-[328px] items-center justify-between gap-2 px-3",
|
|
938
|
+
children: [/* @__PURE__ */ U(N, {
|
|
939
|
+
variant: P.Rectangular,
|
|
930
940
|
width: "160px",
|
|
931
941
|
height: "16px"
|
|
932
|
-
}), /* @__PURE__ */
|
|
933
|
-
variant:
|
|
942
|
+
}), /* @__PURE__ */ U(N, {
|
|
943
|
+
variant: P.Rectangular,
|
|
934
944
|
width: "16px",
|
|
935
945
|
height: "16px",
|
|
936
946
|
className: "shrink-0 rounded-full"
|
|
937
947
|
})]
|
|
938
948
|
}, `history-skeleton-${t}`));
|
|
939
|
-
return t && e.length === 0 ? /* @__PURE__ */
|
|
949
|
+
return t && e.length === 0 ? /* @__PURE__ */ U("ul", {
|
|
940
950
|
style: {
|
|
941
|
-
...
|
|
951
|
+
...y,
|
|
942
952
|
"--strhl-row-min-height": u?.rowMinHeight
|
|
943
953
|
},
|
|
944
954
|
"aria-label": c.historyTitle,
|
|
945
955
|
className: "flex flex-col gap-0.5",
|
|
946
|
-
children:
|
|
947
|
-
}) : i && e.length === 0 ? /* @__PURE__ */
|
|
948
|
-
style:
|
|
956
|
+
children: x(r)
|
|
957
|
+
}) : i && e.length === 0 ? /* @__PURE__ */ W("div", {
|
|
958
|
+
style: y,
|
|
949
959
|
className: "flex flex-col items-start gap-3",
|
|
950
|
-
children: [/* @__PURE__ */
|
|
960
|
+
children: [/* @__PURE__ */ U("p", {
|
|
951
961
|
role: "alert",
|
|
952
|
-
className: v(
|
|
962
|
+
className: v(h, Q.subtitleText),
|
|
953
963
|
children: c.errorLabel
|
|
954
|
-
}), /* @__PURE__ */
|
|
964
|
+
}), /* @__PURE__ */ U(A, {
|
|
955
965
|
label: c.retryLabel,
|
|
956
966
|
onClick: a
|
|
957
967
|
})]
|
|
958
|
-
}) : e.length === 0 ? /* @__PURE__ */
|
|
959
|
-
style:
|
|
968
|
+
}) : e.length === 0 ? /* @__PURE__ */ W("div", {
|
|
969
|
+
style: y,
|
|
960
970
|
className: "flex w-full flex-col items-center justify-center gap-2 py-4",
|
|
961
|
-
children: [/* @__PURE__ */
|
|
971
|
+
children: [/* @__PURE__ */ U(R, {
|
|
962
972
|
size: 44,
|
|
963
|
-
stroke:
|
|
973
|
+
stroke: k,
|
|
964
974
|
className: Q.subtitleText,
|
|
965
975
|
"aria-hidden": !0
|
|
966
|
-
}), /* @__PURE__ */
|
|
976
|
+
}), /* @__PURE__ */ U("p", {
|
|
967
977
|
role: "status",
|
|
968
978
|
className: p,
|
|
969
979
|
children: c.emptyLabel
|
|
970
980
|
})]
|
|
971
|
-
}) : /* @__PURE__ */
|
|
981
|
+
}) : /* @__PURE__ */ W("ul", {
|
|
972
982
|
style: {
|
|
973
|
-
...
|
|
983
|
+
...y,
|
|
974
984
|
"--strhl-row-min-height": u?.rowMinHeight
|
|
975
985
|
},
|
|
976
986
|
"aria-label": c.historyTitle,
|
|
977
987
|
className: "flex flex-col gap-0.5",
|
|
978
988
|
children: [
|
|
979
|
-
e.map(
|
|
980
|
-
n &&
|
|
981
|
-
i ? /* @__PURE__ */
|
|
989
|
+
e.map(b),
|
|
990
|
+
n && x(r),
|
|
991
|
+
i ? /* @__PURE__ */ W("li", {
|
|
982
992
|
className: "flex flex-col items-start gap-3 px-5 py-2",
|
|
983
|
-
children: [/* @__PURE__ */
|
|
993
|
+
children: [/* @__PURE__ */ U("p", {
|
|
984
994
|
role: "alert",
|
|
985
|
-
className: v(
|
|
995
|
+
className: v(h, Q.subtitleText),
|
|
986
996
|
children: c.errorLabel
|
|
987
|
-
}), /* @__PURE__ */
|
|
997
|
+
}), /* @__PURE__ */ U(A, {
|
|
988
998
|
label: c.retryLabel,
|
|
989
999
|
onClick: a
|
|
990
1000
|
})]
|
|
991
1001
|
}) : l
|
|
992
1002
|
]
|
|
993
1003
|
});
|
|
994
|
-
},
|
|
1004
|
+
}, ut = {
|
|
995
1005
|
historyCard: "_historyCard_153p9_4",
|
|
996
1006
|
subtitleText: "_subtitleText_153p9_8",
|
|
997
1007
|
cardLayout: "_cardLayout_153p9_13"
|
|
998
|
-
},
|
|
999
|
-
let
|
|
1000
|
-
className:
|
|
1001
|
-
children: [/* @__PURE__ */
|
|
1008
|
+
}, dt = ({ variant: e, labels: t, nextRunLabel: n, items: r, isLoading: i = !1, isLoadingMore: a = !1, skeletonCount: o = 6, error: s, onRetry: c, loadMoreError: l, onRetryLoadMore: u, hasMore: d = !1, onLoadMore: f, onRunClick: p, runTimestampClassName: m = "dial-small-text", runTimestampUnreadClassName: h = "dial-small-semi-text", sectionTitleClassName: g = "dial-body-semi-text", colors: _, styles: y }) => {
|
|
1009
|
+
let b = e === nt.Card, x = b ? v("sticky bottom-0 z-10 rounded-b-xl px-6 pb-5 pt-2", ut.historyCard) : "pt-2", ee = l ? /* @__PURE__ */ W("li", {
|
|
1010
|
+
className: x,
|
|
1011
|
+
children: [/* @__PURE__ */ U("p", {
|
|
1002
1012
|
role: "alert",
|
|
1003
1013
|
children: t.historyLoadMoreErrorLabel ?? t.historyErrorLabel
|
|
1004
|
-
}), u && /* @__PURE__ */
|
|
1014
|
+
}), u && /* @__PURE__ */ U(A, {
|
|
1005
1015
|
label: t.historyRetryLabel,
|
|
1006
1016
|
onClick: u,
|
|
1007
1017
|
disabled: a
|
|
1008
1018
|
})]
|
|
1009
|
-
}) : f && d && t.historyShowMoreLabel ? /* @__PURE__ */
|
|
1010
|
-
className:
|
|
1011
|
-
children: /* @__PURE__ */
|
|
1019
|
+
}) : f && d && t.historyShowMoreLabel ? /* @__PURE__ */ U("li", {
|
|
1020
|
+
className: x,
|
|
1021
|
+
children: /* @__PURE__ */ U(A, {
|
|
1012
1022
|
label: t.historyShowMoreLabel,
|
|
1013
1023
|
onClick: f,
|
|
1014
1024
|
disabled: a
|
|
1015
1025
|
})
|
|
1016
|
-
}) : void 0, S = n ? /* @__PURE__ */
|
|
1017
|
-
className: v(m,
|
|
1026
|
+
}) : void 0, S = n ? /* @__PURE__ */ U("p", {
|
|
1027
|
+
className: v(m, ut.subtitleText),
|
|
1018
1028
|
children: n
|
|
1019
|
-
}) : void 0,
|
|
1029
|
+
}) : void 0, C = t.historyLoadingMoreLabel ? /* @__PURE__ */ U("span", {
|
|
1020
1030
|
role: "status",
|
|
1021
1031
|
"aria-live": "polite",
|
|
1022
1032
|
className: "sr-only",
|
|
1023
1033
|
children: a ? t.historyLoadingMoreLabel : ""
|
|
1024
|
-
}) : void 0, te = /* @__PURE__ */
|
|
1034
|
+
}) : void 0, te = /* @__PURE__ */ U(lt, {
|
|
1025
1035
|
items: r,
|
|
1026
1036
|
isLoading: i,
|
|
1027
1037
|
isLoadingMore: a,
|
|
@@ -1037,71 +1047,78 @@ var W = {
|
|
|
1037
1047
|
runStatusLabels: t.runStatusLabels,
|
|
1038
1048
|
unreadIndicatorLabel: t.unreadIndicatorLabel
|
|
1039
1049
|
},
|
|
1040
|
-
footer:
|
|
1050
|
+
footer: ee,
|
|
1041
1051
|
styles: {
|
|
1042
|
-
typography: {
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1052
|
+
typography: {
|
|
1053
|
+
runTimestampClassName: m,
|
|
1054
|
+
runTimestampUnreadClassName: h
|
|
1055
|
+
},
|
|
1056
|
+
colors: y?.colors ?? _,
|
|
1057
|
+
rowMinHeight: y?.rowMinHeight,
|
|
1058
|
+
rowHoverBackground: y?.rowHoverBackground,
|
|
1059
|
+
rowFocusBackground: y?.rowFocusBackground,
|
|
1060
|
+
rowFocusOutline: y?.rowFocusOutline
|
|
1048
1061
|
}
|
|
1049
1062
|
});
|
|
1050
|
-
return
|
|
1051
|
-
className: v("flex max-h-[var(--st-history-max-height,70vh)] w-full max-w-full flex-col overflow-y-auto rounded-xl shadow-md",
|
|
1052
|
-
style: { "--st-history-max-height":
|
|
1053
|
-
children: [/* @__PURE__ */
|
|
1054
|
-
className: v("sticky top-0 z-10 flex flex-col gap-4 rounded-t-xl px-6 pb-2
|
|
1063
|
+
return b ? /* @__PURE__ */ W("div", {
|
|
1064
|
+
className: v("flex max-h-[var(--st-history-max-height,70vh)] w-full max-w-full flex-col overflow-y-auto rounded-xl shadow-md", ut.historyCard, ut.cardLayout),
|
|
1065
|
+
style: { "--st-history-max-height": y?.maxHeight },
|
|
1066
|
+
children: [/* @__PURE__ */ W("div", {
|
|
1067
|
+
className: v("sticky top-0 z-10 flex flex-col gap-4 rounded-t-xl px-6 pt-5 pb-2", ut.historyCard),
|
|
1055
1068
|
children: [
|
|
1056
|
-
/* @__PURE__ */
|
|
1057
|
-
className:
|
|
1069
|
+
/* @__PURE__ */ U("h2", {
|
|
1070
|
+
className: g,
|
|
1058
1071
|
children: t.historyTitle
|
|
1059
1072
|
}),
|
|
1060
1073
|
S,
|
|
1061
|
-
|
|
1074
|
+
C
|
|
1062
1075
|
]
|
|
1063
|
-
}), /* @__PURE__ */
|
|
1076
|
+
}), /* @__PURE__ */ U("div", {
|
|
1064
1077
|
className: "flex flex-1 flex-col gap-4 px-6 pb-2",
|
|
1065
1078
|
children: te
|
|
1066
1079
|
})]
|
|
1067
|
-
}) : /* @__PURE__ */
|
|
1080
|
+
}) : /* @__PURE__ */ W("div", {
|
|
1068
1081
|
className: "flex flex-col gap-4",
|
|
1069
1082
|
children: [
|
|
1070
1083
|
S,
|
|
1071
|
-
|
|
1084
|
+
C,
|
|
1072
1085
|
te
|
|
1073
1086
|
]
|
|
1074
1087
|
});
|
|
1075
1088
|
}, $ = {
|
|
1076
|
-
container: "
|
|
1077
|
-
header: "
|
|
1078
|
-
headerActions: "
|
|
1079
|
-
detailsColumn: "
|
|
1080
|
-
subtitleText: "
|
|
1081
|
-
desktopTitle: "
|
|
1082
|
-
desktopBadge: "
|
|
1083
|
-
mobileTitleRow: "
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
"--stdv-
|
|
1091
|
-
|
|
1089
|
+
container: "_container_hdn5b_1",
|
|
1090
|
+
header: "_header_hdn5b_8",
|
|
1091
|
+
headerActions: "_headerActions_hdn5b_24",
|
|
1092
|
+
detailsColumn: "_detailsColumn_hdn5b_30",
|
|
1093
|
+
subtitleText: "_subtitleText_hdn5b_34",
|
|
1094
|
+
desktopTitle: "_desktopTitle_hdn5b_39",
|
|
1095
|
+
desktopBadge: "_desktopBadge_hdn5b_40",
|
|
1096
|
+
mobileTitleRow: "_mobileTitleRow_hdn5b_44",
|
|
1097
|
+
actionLabel: "_actionLabel_hdn5b_65",
|
|
1098
|
+
actionButton: "_actionButton_hdn5b_75",
|
|
1099
|
+
roundActionButton: "_roundActionButton_hdn5b_82",
|
|
1100
|
+
stickyTabs: "_stickyTabs_hdn5b_88"
|
|
1101
|
+
}, ft = ({ labels: e, onBack: t, onEdit: n, onStartNow: r, isStarting: i = !1, isStartNowDisabled: a = !1, isStartNowBusy: o = !1, onDelete: s, isDeleting: c = !1, isDeleted: l = !1, isCompleted: u = !1, isActive: d, isActiveUpdating: f = !1, isActiveDisabled: p = !1, activeDisabledReason: m, onActiveChange: h, displayName: g, isLoading: y = !1, error: x, onRetry: ee, description: S, modelLabel: C, repeatsLabel: te, activeWindowLabel: T, completedLabel: E, nextRunLabel: D, instructionsMarkdown: ne, skillDisplayNames: re, renderInstructions: ie, runs: oe, runsIsLoading: se = !1, runsIsLoadingMore: ce = !1, runsSkeletonCount: le = 6, runsError: ue, onRunsRetry: M, runsLoadMoreError: de, onRunsRetryLoadMore: fe, runsHasMore: N = !1, onRunsLoadMore: P, onRunClick: ge, styles: F, className: _e, backIcon: ye, layout: I, historyStyles: be }) => {
|
|
1102
|
+
let { colors: L, typography: R } = F ?? {}, xe = R?.titleClassName ?? "dial-h2-text", B = R?.sectionTitleClassName ?? "dial-body-semi-text", Ce = R?.fieldLabelClassName ?? "dial-tiny-text", Te = R?.fieldValueClassName ?? "dial-small-text", Ee = R?.runTimestampClassName ?? "dial-small-text", De = _({
|
|
1103
|
+
"--stdv-bg": L?.background,
|
|
1104
|
+
"--stdv-header-border": L?.headerBorder,
|
|
1105
|
+
"--stdv-details-border": L?.detailsColumnBorder,
|
|
1106
|
+
"--stdv-subtitle-text": L?.subtitleText,
|
|
1107
|
+
"--stdv-history-bg": L?.historyCardBackground
|
|
1108
|
+
}), Oe = b(), [V, Ae] = je(tt.Details), H = ke(), Ne = o && !i ? e.startNowBusyLabel : void 0, Pe = [
|
|
1092
1109
|
{
|
|
1093
|
-
id:
|
|
1110
|
+
id: tt.Details,
|
|
1094
1111
|
label: e.detailsTitle
|
|
1095
1112
|
},
|
|
1096
1113
|
{
|
|
1097
|
-
id:
|
|
1114
|
+
id: tt.Configuration,
|
|
1098
1115
|
label: e.configurationTitle
|
|
1099
1116
|
},
|
|
1100
1117
|
{
|
|
1101
|
-
id:
|
|
1118
|
+
id: tt.History,
|
|
1102
1119
|
label: e.historyTitle
|
|
1103
1120
|
}
|
|
1104
|
-
],
|
|
1121
|
+
], Fe = Pe.find((e) => e.id === V)?.label ?? e.detailsTitle, G = /* @__PURE__ */ U(ot, {
|
|
1105
1122
|
labels: {
|
|
1106
1123
|
descriptionLabel: e.descriptionLabel,
|
|
1107
1124
|
modelLabel: e.modelLabel,
|
|
@@ -1109,19 +1126,19 @@ var W = {
|
|
|
1109
1126
|
activeWindowLabel: e.activeWindowLabel,
|
|
1110
1127
|
completedFieldLabel: e.completedFieldLabel
|
|
1111
1128
|
},
|
|
1112
|
-
description:
|
|
1113
|
-
modelLabel:
|
|
1114
|
-
repeatsLabel:
|
|
1115
|
-
activeWindowLabel:
|
|
1116
|
-
completedLabel:
|
|
1117
|
-
fieldLabelClassName:
|
|
1118
|
-
fieldValueClassName:
|
|
1119
|
-
}),
|
|
1129
|
+
description: S,
|
|
1130
|
+
modelLabel: C,
|
|
1131
|
+
repeatsLabel: te,
|
|
1132
|
+
activeWindowLabel: T,
|
|
1133
|
+
completedLabel: E,
|
|
1134
|
+
fieldLabelClassName: Ce,
|
|
1135
|
+
fieldValueClassName: Te
|
|
1136
|
+
}), K = /* @__PURE__ */ U(it, {
|
|
1120
1137
|
instructionsLabel: e.instructionsLabel,
|
|
1121
1138
|
skillLabel: e.skillLabel,
|
|
1122
|
-
skillDisplayNames:
|
|
1123
|
-
instructionsMarkdown:
|
|
1124
|
-
renderInstructions:
|
|
1139
|
+
skillDisplayNames: re,
|
|
1140
|
+
instructionsMarkdown: ne,
|
|
1141
|
+
renderInstructions: ie,
|
|
1125
1142
|
markdownLabels: {
|
|
1126
1143
|
codeBlockCopyLabel: e.codeBlockCopyLabel,
|
|
1127
1144
|
codeBlockCopiedLabel: e.codeBlockCopiedLabel,
|
|
@@ -1129,8 +1146,8 @@ var W = {
|
|
|
1129
1146
|
tableScrollRegionAriaLabel: e.tableScrollRegionAriaLabel,
|
|
1130
1147
|
mathScrollRegionAriaLabel: e.mathScrollRegionAriaLabel
|
|
1131
1148
|
},
|
|
1132
|
-
fieldLabelClassName:
|
|
1133
|
-
}),
|
|
1149
|
+
fieldLabelClassName: Ce
|
|
1150
|
+
}), q = (t) => /* @__PURE__ */ U(dt, {
|
|
1134
1151
|
variant: t,
|
|
1135
1152
|
labels: {
|
|
1136
1153
|
historyTitle: e.historyTitle,
|
|
@@ -1143,256 +1160,362 @@ var W = {
|
|
|
1143
1160
|
runStatusLabels: e.runStatusLabels,
|
|
1144
1161
|
unreadIndicatorLabel: e.unreadIndicatorLabel
|
|
1145
1162
|
},
|
|
1146
|
-
nextRunLabel:
|
|
1147
|
-
items:
|
|
1148
|
-
isLoading:
|
|
1149
|
-
isLoadingMore:
|
|
1150
|
-
skeletonCount:
|
|
1151
|
-
error:
|
|
1152
|
-
onRetry:
|
|
1153
|
-
loadMoreError:
|
|
1154
|
-
onRetryLoadMore:
|
|
1155
|
-
hasMore:
|
|
1156
|
-
onLoadMore:
|
|
1157
|
-
onRunClick:
|
|
1158
|
-
runTimestampClassName:
|
|
1159
|
-
sectionTitleClassName:
|
|
1160
|
-
colors:
|
|
1161
|
-
styles:
|
|
1163
|
+
nextRunLabel: D,
|
|
1164
|
+
items: oe,
|
|
1165
|
+
isLoading: se,
|
|
1166
|
+
isLoadingMore: ce,
|
|
1167
|
+
skeletonCount: le,
|
|
1168
|
+
error: ue,
|
|
1169
|
+
onRetry: M,
|
|
1170
|
+
loadMoreError: de,
|
|
1171
|
+
onRetryLoadMore: fe,
|
|
1172
|
+
hasMore: N,
|
|
1173
|
+
onLoadMore: P,
|
|
1174
|
+
onRunClick: ge,
|
|
1175
|
+
runTimestampClassName: Ee,
|
|
1176
|
+
sectionTitleClassName: B,
|
|
1177
|
+
colors: L,
|
|
1178
|
+
styles: be
|
|
1162
1179
|
});
|
|
1163
|
-
return /* @__PURE__ */
|
|
1164
|
-
style:
|
|
1165
|
-
className: v("flex h-full min-h-0 w-full flex-col overflow-hidden", $.container,
|
|
1180
|
+
return /* @__PURE__ */ W("div", {
|
|
1181
|
+
style: De,
|
|
1182
|
+
className: v("flex h-full min-h-0 w-full flex-col overflow-hidden", $.container, _e),
|
|
1166
1183
|
children: [
|
|
1167
|
-
/* @__PURE__ */
|
|
1168
|
-
className: v("flex min-h-16 shrink-0 items-
|
|
1169
|
-
children: [/* @__PURE__ */
|
|
1184
|
+
/* @__PURE__ */ W("div", {
|
|
1185
|
+
className: v("flex min-h-16 shrink-0 items-start justify-between gap-2 px-4 py-2 desktop:h-16 desktop:flex-nowrap desktop:items-center desktop:px-8 desktop:py-0", $.header),
|
|
1186
|
+
children: [/* @__PURE__ */ W("div", {
|
|
1170
1187
|
className: "flex min-w-0 items-center gap-2",
|
|
1171
1188
|
children: [
|
|
1172
|
-
/* @__PURE__ */
|
|
1173
|
-
icon:
|
|
1174
|
-
size:
|
|
1189
|
+
/* @__PURE__ */ U(ae, {
|
|
1190
|
+
icon: ye === void 0 ? /* @__PURE__ */ U(ve, {
|
|
1191
|
+
size: O.LG,
|
|
1175
1192
|
className: "rtl:scale-x-[-1]",
|
|
1176
1193
|
"aria-hidden": !0,
|
|
1177
|
-
stroke:
|
|
1178
|
-
}) :
|
|
1194
|
+
stroke: k
|
|
1195
|
+
}) : ye,
|
|
1179
1196
|
"aria-label": e.backAriaLabel,
|
|
1180
1197
|
onClick: t
|
|
1181
1198
|
}),
|
|
1182
|
-
/* @__PURE__ */
|
|
1183
|
-
className: v("truncate", $.desktopTitle,
|
|
1199
|
+
/* @__PURE__ */ U("h1", {
|
|
1200
|
+
className: v("truncate", $.desktopTitle, xe),
|
|
1184
1201
|
children: g
|
|
1185
1202
|
}),
|
|
1186
|
-
l && /* @__PURE__ */
|
|
1187
|
-
className: v("shrink-0", $.desktopBadge,
|
|
1203
|
+
l && /* @__PURE__ */ U("span", {
|
|
1204
|
+
className: v("shrink-0", $.desktopBadge, Te, $.subtitleText),
|
|
1188
1205
|
children: e.deletedStateLabel
|
|
1189
1206
|
})
|
|
1190
1207
|
]
|
|
1191
|
-
}), /* @__PURE__ */
|
|
1208
|
+
}), /* @__PURE__ */ W("div", {
|
|
1192
1209
|
className: v("flex min-w-0 flex-1 flex-wrap items-center justify-end gap-2 desktop:flex-none desktop:flex-nowrap", $.headerActions),
|
|
1193
1210
|
children: [
|
|
1194
|
-
!l && !u && d !== void 0 && /* @__PURE__ */
|
|
1211
|
+
!l && !u && d !== void 0 && /* @__PURE__ */ W(Me, { children: [/* @__PURE__ */ U(me, {
|
|
1195
1212
|
id: "scheduled-task-active-switch",
|
|
1196
1213
|
labelProps: { label: e.activeStatusLabel },
|
|
1197
1214
|
isOn: d,
|
|
1198
1215
|
disabled: f || p || c,
|
|
1199
1216
|
onChange: (e) => h?.(e)
|
|
1200
|
-
}), p && m && /* @__PURE__ */
|
|
1201
|
-
className: v(
|
|
1217
|
+
}), p && m && /* @__PURE__ */ U("span", {
|
|
1218
|
+
className: v(Te, $.subtitleText),
|
|
1202
1219
|
children: m
|
|
1203
1220
|
})] }),
|
|
1204
|
-
!l && s && /* @__PURE__ */
|
|
1205
|
-
variant:
|
|
1221
|
+
!l && s && /* @__PURE__ */ U(A, {
|
|
1222
|
+
variant: w.Danger,
|
|
1206
1223
|
label: e.deleteButtonLabel,
|
|
1207
|
-
iconBefore: /* @__PURE__ */
|
|
1208
|
-
size:
|
|
1224
|
+
iconBefore: /* @__PURE__ */ U(we, {
|
|
1225
|
+
size: O.SM,
|
|
1209
1226
|
"aria-hidden": !0,
|
|
1210
|
-
stroke:
|
|
1227
|
+
stroke: k
|
|
1211
1228
|
}),
|
|
1212
1229
|
onClick: s,
|
|
1213
1230
|
disabled: c,
|
|
1214
|
-
|
|
1231
|
+
textClassName: $.actionLabel,
|
|
1232
|
+
className: v("min-h-11 shrink-0", $.actionButton)
|
|
1215
1233
|
}),
|
|
1216
|
-
!l && n && /* @__PURE__ */
|
|
1234
|
+
!l && n && /* @__PURE__ */ U(j, {
|
|
1217
1235
|
label: e.editButtonLabel,
|
|
1218
|
-
iconBefore: /* @__PURE__ */
|
|
1219
|
-
size:
|
|
1236
|
+
iconBefore: /* @__PURE__ */ U(z, {
|
|
1237
|
+
size: O.SM,
|
|
1220
1238
|
"aria-hidden": !0,
|
|
1221
|
-
stroke:
|
|
1239
|
+
stroke: k
|
|
1222
1240
|
}),
|
|
1223
1241
|
onClick: n,
|
|
1224
1242
|
disabled: c,
|
|
1225
|
-
|
|
1243
|
+
textClassName: $.actionLabel,
|
|
1244
|
+
className: v("min-h-11 shrink-0", $.actionButton, $.roundActionButton)
|
|
1226
1245
|
}),
|
|
1227
|
-
!l && r && e.startNowButtonLabel && /* @__PURE__ */
|
|
1246
|
+
!l && r && e.startNowButtonLabel && /* @__PURE__ */ W("div", {
|
|
1228
1247
|
"aria-busy": i,
|
|
1229
|
-
children: [
|
|
1230
|
-
id:
|
|
1248
|
+
children: [Ne && /* @__PURE__ */ U("span", {
|
|
1249
|
+
id: H,
|
|
1231
1250
|
className: "sr-only",
|
|
1232
|
-
children:
|
|
1233
|
-
}), /* @__PURE__ */
|
|
1251
|
+
children: Ne
|
|
1252
|
+
}), /* @__PURE__ */ U(j, {
|
|
1234
1253
|
label: i ? e.startingLabel ?? e.startNowButtonLabel : e.startNowButtonLabel,
|
|
1235
|
-
iconBefore: /* @__PURE__ */
|
|
1236
|
-
size:
|
|
1254
|
+
iconBefore: /* @__PURE__ */ U(Se, {
|
|
1255
|
+
size: O.SM,
|
|
1237
1256
|
"aria-hidden": !0,
|
|
1238
|
-
stroke:
|
|
1257
|
+
stroke: k
|
|
1239
1258
|
}),
|
|
1240
1259
|
onClick: r,
|
|
1241
1260
|
disabled: c || i || a || o,
|
|
1242
|
-
"aria-describedby":
|
|
1243
|
-
tooltipProps:
|
|
1244
|
-
|
|
1261
|
+
"aria-describedby": Ne ? H : void 0,
|
|
1262
|
+
tooltipProps: Ne ? { tooltip: Ne } : void 0,
|
|
1263
|
+
textClassName: $.actionLabel,
|
|
1264
|
+
className: v("min-h-11 shrink-0", $.actionButton, $.roundActionButton)
|
|
1245
1265
|
})]
|
|
1246
1266
|
})
|
|
1247
1267
|
]
|
|
1248
1268
|
})]
|
|
1249
1269
|
}),
|
|
1250
|
-
/* @__PURE__ */
|
|
1251
|
-
className: v("min-w-0 items-center gap-2 px-
|
|
1252
|
-
children: [/* @__PURE__ */
|
|
1253
|
-
className: v("truncate",
|
|
1270
|
+
/* @__PURE__ */ W("div", {
|
|
1271
|
+
className: v("min-w-0 items-center gap-2 px-4 py-3", $.mobileTitleRow),
|
|
1272
|
+
children: [/* @__PURE__ */ U("h1", {
|
|
1273
|
+
className: v("truncate", xe),
|
|
1254
1274
|
children: g
|
|
1255
|
-
}), l && /* @__PURE__ */
|
|
1256
|
-
className: v("shrink-0",
|
|
1275
|
+
}), l && /* @__PURE__ */ U("span", {
|
|
1276
|
+
className: v("shrink-0", Te, $.subtitleText),
|
|
1257
1277
|
children: e.deletedStateLabel
|
|
1258
1278
|
})]
|
|
1259
1279
|
}),
|
|
1260
|
-
e.activeStatusAnnouncement != null && /* @__PURE__ */
|
|
1280
|
+
e.activeStatusAnnouncement != null && /* @__PURE__ */ U("span", {
|
|
1261
1281
|
role: "status",
|
|
1262
1282
|
"aria-live": "polite",
|
|
1263
1283
|
className: "sr-only",
|
|
1264
1284
|
children: e.activeStatusAnnouncement
|
|
1265
1285
|
}),
|
|
1266
|
-
e.startStatusAnnouncement != null && /* @__PURE__ */
|
|
1286
|
+
e.startStatusAnnouncement != null && /* @__PURE__ */ U("span", {
|
|
1267
1287
|
role: "status",
|
|
1268
1288
|
"aria-live": "polite",
|
|
1269
1289
|
className: "sr-only",
|
|
1270
1290
|
children: e.startStatusAnnouncement
|
|
1271
1291
|
}),
|
|
1272
|
-
y && /* @__PURE__ */
|
|
1292
|
+
y && /* @__PURE__ */ U("div", {
|
|
1273
1293
|
className: "flex flex-1 items-center justify-center",
|
|
1274
|
-
children: /* @__PURE__ */
|
|
1294
|
+
children: /* @__PURE__ */ U(pe, {})
|
|
1275
1295
|
}),
|
|
1276
|
-
!y && x && /* @__PURE__ */
|
|
1296
|
+
!y && x && /* @__PURE__ */ W("div", {
|
|
1277
1297
|
className: "flex flex-1 flex-col items-center justify-center gap-3",
|
|
1278
|
-
children: [/* @__PURE__ */
|
|
1279
|
-
className: v(
|
|
1298
|
+
children: [/* @__PURE__ */ U("p", {
|
|
1299
|
+
className: v(Te, $.subtitleText),
|
|
1280
1300
|
children: e.errorLabel
|
|
1281
|
-
}), /* @__PURE__ */
|
|
1301
|
+
}), /* @__PURE__ */ U(A, {
|
|
1282
1302
|
label: e.retryLabel,
|
|
1283
|
-
onClick:
|
|
1303
|
+
onClick: ee
|
|
1284
1304
|
})]
|
|
1285
1305
|
}),
|
|
1286
|
-
!y && !x && (
|
|
1306
|
+
!y && !x && (Oe ? /* @__PURE__ */ W("div", {
|
|
1287
1307
|
className: "flex min-h-0 flex-1 flex-col overflow-y-auto",
|
|
1288
|
-
children: [/* @__PURE__ */
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1308
|
+
children: [/* @__PURE__ */ U("div", {
|
|
1309
|
+
className: v("sticky top-0 z-10", $.stickyTabs),
|
|
1310
|
+
children: /* @__PURE__ */ U(he, {
|
|
1311
|
+
ariaLabel: e.tabsAriaLabel ?? "Scheduled task sections",
|
|
1312
|
+
className: "px-4",
|
|
1313
|
+
tabs: Pe,
|
|
1314
|
+
activeTabId: V,
|
|
1315
|
+
onTabChange: Ae
|
|
1316
|
+
})
|
|
1317
|
+
}), /* @__PURE__ */ U("div", {
|
|
1295
1318
|
role: "tabpanel",
|
|
1296
|
-
"aria-label":
|
|
1297
|
-
className: "flex flex-1 flex-col gap-5 px-
|
|
1298
|
-
children:
|
|
1319
|
+
"aria-label": Fe,
|
|
1320
|
+
className: "flex flex-1 flex-col gap-5 px-4 py-6",
|
|
1321
|
+
children: V === tt.Configuration ? K : V === tt.History ? q(nt.Flow) : G
|
|
1299
1322
|
})]
|
|
1300
|
-
}) : /* @__PURE__ */
|
|
1323
|
+
}) : /* @__PURE__ */ W("div", {
|
|
1301
1324
|
style: {
|
|
1302
1325
|
flexDirection: "row",
|
|
1303
|
-
"--st-details-width":
|
|
1304
|
-
"--st-history-width":
|
|
1305
|
-
"--st-history-max-height":
|
|
1306
|
-
"--st-configuration-min-width":
|
|
1326
|
+
"--st-details-width": I?.detailsWidth,
|
|
1327
|
+
"--st-history-width": I?.historyWidth,
|
|
1328
|
+
"--st-history-max-height": I?.historyMaxHeight,
|
|
1329
|
+
"--st-configuration-min-width": I?.configurationMinWidth
|
|
1307
1330
|
},
|
|
1308
1331
|
className: "flex min-h-0 flex-1 overflow-y-auto desktop:overflow-hidden",
|
|
1309
1332
|
children: [
|
|
1310
|
-
/* @__PURE__ */
|
|
1333
|
+
/* @__PURE__ */ W("div", {
|
|
1311
1334
|
role: "group",
|
|
1312
1335
|
"aria-label": e.detailsTitle,
|
|
1313
1336
|
style: {
|
|
1314
|
-
flex: `0 1 ${
|
|
1337
|
+
flex: `0 1 ${I?.detailsWidth ?? "360px"}`,
|
|
1315
1338
|
maxWidth: "100%"
|
|
1316
1339
|
},
|
|
1317
1340
|
className: v("flex min-h-0 w-full flex-col gap-5 overflow-y-auto border-e px-8 py-6", $.detailsColumn),
|
|
1318
|
-
children: [/* @__PURE__ */
|
|
1319
|
-
className:
|
|
1341
|
+
children: [/* @__PURE__ */ U("h2", {
|
|
1342
|
+
className: B,
|
|
1320
1343
|
children: e.detailsTitle
|
|
1321
|
-
}),
|
|
1344
|
+
}), G]
|
|
1322
1345
|
}),
|
|
1323
|
-
/* @__PURE__ */
|
|
1346
|
+
/* @__PURE__ */ W("div", {
|
|
1324
1347
|
style: {
|
|
1325
|
-
flex: `1 1 ${
|
|
1348
|
+
flex: `1 1 ${I?.configurationMinWidth ?? "320px"}`,
|
|
1326
1349
|
minWidth: 0
|
|
1327
1350
|
},
|
|
1328
1351
|
className: "flex min-h-0 w-full min-w-0 flex-col gap-5 overflow-y-auto px-8 py-6",
|
|
1329
|
-
children: [/* @__PURE__ */
|
|
1330
|
-
className:
|
|
1352
|
+
children: [/* @__PURE__ */ U("h2", {
|
|
1353
|
+
className: B,
|
|
1331
1354
|
children: e.configurationTitle
|
|
1332
|
-
}),
|
|
1355
|
+
}), K]
|
|
1333
1356
|
}),
|
|
1334
|
-
/* @__PURE__ */
|
|
1357
|
+
/* @__PURE__ */ U("div", {
|
|
1335
1358
|
style: {
|
|
1336
|
-
flex: `0 1 calc(${
|
|
1359
|
+
flex: `0 1 calc(${I?.historyWidth ?? "360px"} + 48px)`,
|
|
1337
1360
|
minWidth: 0
|
|
1338
1361
|
},
|
|
1339
1362
|
className: "flex min-h-0 w-full items-start justify-center overflow-y-auto p-6",
|
|
1340
|
-
children:
|
|
1363
|
+
children: q(nt.Card)
|
|
1341
1364
|
})
|
|
1342
1365
|
]
|
|
1343
1366
|
}))
|
|
1344
1367
|
]
|
|
1345
1368
|
});
|
|
1346
|
-
},
|
|
1347
|
-
|
|
1348
|
-
|
|
1369
|
+
}, pt = {
|
|
1370
|
+
h1: "dial-small-semi-text mb-3 mt-6 first:mt-0 [text-wrap:balance]",
|
|
1371
|
+
h2: "dial-small-semi-text mb-2 mt-5 first:mt-0 [text-wrap:balance]",
|
|
1372
|
+
h3: "dial-small-semi-text mb-2 mt-4 first:mt-0 [text-wrap:balance]",
|
|
1373
|
+
h4: "dial-small-semi-text mb-2 mt-4 first:mt-0 [text-wrap:balance]",
|
|
1374
|
+
h5: "dial-small-semi-text mb-2 mt-4 first:mt-0 [text-wrap:balance]",
|
|
1375
|
+
h6: "dial-small-semi-text mb-2 mt-4 first:mt-0 [text-wrap:balance]",
|
|
1376
|
+
p: "dial-small-text mb-3 break-words [overflow-wrap:anywhere] [text-wrap:pretty] last:mb-0",
|
|
1377
|
+
ul: "dial-small-text mb-3 space-y-1",
|
|
1378
|
+
ol: "dial-small-text mb-3 space-y-1",
|
|
1379
|
+
codeInline: "mx-0.5 px-1.5 break-words [overflow-wrap:anywhere]",
|
|
1380
|
+
blockquote: "my-4",
|
|
1381
|
+
link: "break-words [overflow-wrap:anywhere]",
|
|
1382
|
+
tableWrapper: "my-4",
|
|
1383
|
+
mathBlock: "my-4"
|
|
1384
|
+
}, mt = ({ modelLabel: e, skillLabel: t, skillDisplayNames: n, instructionsLabel: r, modelDisplayName: i, instructionsMarkdown: a, renderInstructions: o, instructionsClassNames: s = pt, markdownLabels: c, styles: l }) => {
|
|
1385
|
+
let u = l?.typography?.fieldLabelClassName ?? "dial-tiny-text text-secondary", d = l?.typography?.fieldValueClassName ?? "dial-small-text";
|
|
1386
|
+
return /* @__PURE__ */ W("div", {
|
|
1349
1387
|
className: "flex flex-col gap-3",
|
|
1350
1388
|
children: [
|
|
1351
|
-
i && /* @__PURE__ */
|
|
1389
|
+
i && /* @__PURE__ */ W("div", {
|
|
1352
1390
|
className: "flex flex-col gap-2",
|
|
1353
|
-
children: [/* @__PURE__ */
|
|
1354
|
-
className: l,
|
|
1355
|
-
children: e
|
|
1356
|
-
}), /* @__PURE__ */ V("p", {
|
|
1391
|
+
children: [/* @__PURE__ */ U("span", {
|
|
1357
1392
|
className: u,
|
|
1393
|
+
children: e
|
|
1394
|
+
}), /* @__PURE__ */ U("p", {
|
|
1395
|
+
className: d,
|
|
1358
1396
|
children: i
|
|
1359
1397
|
})]
|
|
1360
1398
|
}),
|
|
1361
|
-
!!n?.length && /* @__PURE__ */
|
|
1399
|
+
!!n?.length && /* @__PURE__ */ W("div", {
|
|
1362
1400
|
className: "flex min-w-0 flex-col gap-2",
|
|
1363
|
-
children: [/* @__PURE__ */
|
|
1364
|
-
className:
|
|
1401
|
+
children: [/* @__PURE__ */ U("span", {
|
|
1402
|
+
className: u,
|
|
1365
1403
|
children: t
|
|
1366
|
-
}), /* @__PURE__ */
|
|
1367
|
-
className:
|
|
1368
|
-
children: n?.map((e, t) => /* @__PURE__ */
|
|
1404
|
+
}), /* @__PURE__ */ U("p", {
|
|
1405
|
+
className: v(d, "break-all whitespace-normal"),
|
|
1406
|
+
children: n?.map((e, t) => /* @__PURE__ */ U("span", {
|
|
1369
1407
|
className: "block",
|
|
1370
1408
|
children: e
|
|
1371
1409
|
}, `${t}:${e}`))
|
|
1372
1410
|
})]
|
|
1373
1411
|
}),
|
|
1374
|
-
a && /* @__PURE__ */
|
|
1412
|
+
a && /* @__PURE__ */ W("div", {
|
|
1375
1413
|
className: "flex flex-col gap-2",
|
|
1376
|
-
children: [/* @__PURE__ */
|
|
1377
|
-
className:
|
|
1414
|
+
children: [/* @__PURE__ */ U("span", {
|
|
1415
|
+
className: u,
|
|
1378
1416
|
children: r
|
|
1379
|
-
}), ((e) => o ? o(e) : /* @__PURE__ */
|
|
1417
|
+
}), ((e) => o ? o(e) : /* @__PURE__ */ U(p, {
|
|
1380
1418
|
content: e,
|
|
1381
|
-
|
|
1419
|
+
classNames: s,
|
|
1420
|
+
...c
|
|
1382
1421
|
}))(a)]
|
|
1383
1422
|
})
|
|
1384
1423
|
]
|
|
1385
1424
|
});
|
|
1386
|
-
},
|
|
1425
|
+
}, ht = ({ className: e, children: t }) => /* @__PURE__ */ U("span", {
|
|
1426
|
+
className: v(e, "block truncate py-1"),
|
|
1427
|
+
children: t
|
|
1428
|
+
}), gt = ({ scheduleId: e, items: t, isLoading: n = !1, isLoadingMore: r = !1, skeletonCount: i = 6, error: a, onRetry: o, hasMore: s = !1, onLoadMore: c, currentRunId: l, onRunClick: u, labels: d, titleClassName: f = "dial-tiny-semi-text", contentClassName: p = "ps-3" }) => {
|
|
1429
|
+
let [m, h] = je(!0);
|
|
1430
|
+
Oe(() => {
|
|
1431
|
+
h(!0);
|
|
1432
|
+
}, [e]);
|
|
1433
|
+
let g = s && !n && c && d.showMoreLabel ? /* @__PURE__ */ U("li", {
|
|
1434
|
+
className: "pt-2",
|
|
1435
|
+
children: /* @__PURE__ */ U(A, {
|
|
1436
|
+
variant: w.Primary,
|
|
1437
|
+
label: d.showMoreLabel,
|
|
1438
|
+
onClick: c,
|
|
1439
|
+
disabled: r
|
|
1440
|
+
})
|
|
1441
|
+
}) : void 0;
|
|
1442
|
+
return /* @__PURE__ */ U(S, {
|
|
1443
|
+
title: /* @__PURE__ */ U(ht, {
|
|
1444
|
+
className: f,
|
|
1445
|
+
children: d.title
|
|
1446
|
+
}),
|
|
1447
|
+
expanded: m,
|
|
1448
|
+
onToggle: h,
|
|
1449
|
+
contentClassName: p,
|
|
1450
|
+
children: /* @__PURE__ */ U(lt, {
|
|
1451
|
+
items: t,
|
|
1452
|
+
isLoading: n,
|
|
1453
|
+
isLoadingMore: r,
|
|
1454
|
+
skeletonCount: i,
|
|
1455
|
+
error: a,
|
|
1456
|
+
onRetry: o,
|
|
1457
|
+
currentRunId: l,
|
|
1458
|
+
onRunClick: u,
|
|
1459
|
+
footer: g,
|
|
1460
|
+
labels: {
|
|
1461
|
+
historyTitle: d.title,
|
|
1462
|
+
emptyLabel: d.emptyLabel,
|
|
1463
|
+
errorLabel: d.errorLabel,
|
|
1464
|
+
retryLabel: d.retryLabel,
|
|
1465
|
+
runStatusLabels: d.runStatusLabels,
|
|
1466
|
+
currentRunLabel: d.currentRunLabel,
|
|
1467
|
+
unreadIndicatorLabel: d.unreadIndicatorLabel
|
|
1468
|
+
}
|
|
1469
|
+
})
|
|
1470
|
+
});
|
|
1471
|
+
}, _t = /* @__PURE__ */ function(e) {
|
|
1472
|
+
return e.Ready = "ready", e.Error = "error", e.Unavailable = "unavailable", e;
|
|
1473
|
+
}({}), vt = ({ scheduleId: e, state: t, onRetry: n, modelDisplayName: r, skillDisplayNames: i, instructionsMarkdown: a, renderInstructions: o, instructionsClassNames: s, markdownLabels: c, summaryStyles: l, labels: u, titleClassName: d = "dial-tiny-semi-text", unavailableTextClassName: f = "dial-body-text text-secondary" }) => {
|
|
1474
|
+
let [p, m] = je(!1);
|
|
1475
|
+
Oe(() => {
|
|
1476
|
+
m(!1);
|
|
1477
|
+
}, [e]);
|
|
1478
|
+
let h = t === "error" || t === "unavailable" ? /* @__PURE__ */ W("div", {
|
|
1479
|
+
className: "flex flex-col items-start gap-2",
|
|
1480
|
+
children: [/* @__PURE__ */ U("p", {
|
|
1481
|
+
role: "alert",
|
|
1482
|
+
className: f,
|
|
1483
|
+
children: u.unavailableLabel
|
|
1484
|
+
}), t === "error" && n && /* @__PURE__ */ U(A, {
|
|
1485
|
+
label: u.retryLabel,
|
|
1486
|
+
onClick: n
|
|
1487
|
+
})]
|
|
1488
|
+
}) : /* @__PURE__ */ U(mt, {
|
|
1489
|
+
modelLabel: u.modelLabel,
|
|
1490
|
+
instructionsLabel: u.instructionsLabel,
|
|
1491
|
+
skillLabel: u.skillLabel,
|
|
1492
|
+
skillDisplayNames: i,
|
|
1493
|
+
modelDisplayName: r,
|
|
1494
|
+
instructionsMarkdown: a,
|
|
1495
|
+
renderInstructions: o,
|
|
1496
|
+
instructionsClassNames: s,
|
|
1497
|
+
markdownLabels: c,
|
|
1498
|
+
styles: l
|
|
1499
|
+
});
|
|
1500
|
+
return /* @__PURE__ */ U(S, {
|
|
1501
|
+
title: /* @__PURE__ */ U(ht, {
|
|
1502
|
+
className: d,
|
|
1503
|
+
children: u.title
|
|
1504
|
+
}),
|
|
1505
|
+
expanded: p,
|
|
1506
|
+
onToggle: m,
|
|
1507
|
+
children: h
|
|
1508
|
+
});
|
|
1509
|
+
}, yt = ({ taskName: e, icon: t, typeLabel: n, body: r, pendingLabel: i, isDeleting: a = !1, styles: o, ...s }) => /* @__PURE__ */ U(l, {
|
|
1387
1510
|
...s,
|
|
1388
|
-
variant:
|
|
1511
|
+
variant: ne.Danger,
|
|
1389
1512
|
popupClassName: o?.popupClassName,
|
|
1390
1513
|
titleClassName: o?.titleClassName,
|
|
1391
1514
|
messageClassName: o?.messageClassName ?? "dial-body-paragraph-text",
|
|
1392
1515
|
message: r,
|
|
1393
1516
|
isLoading: a,
|
|
1394
1517
|
loadingStatusLabel: i,
|
|
1395
|
-
identity: /* @__PURE__ */
|
|
1518
|
+
identity: /* @__PURE__ */ U(h, { children: /* @__PURE__ */ U(u, {
|
|
1396
1519
|
icon: t,
|
|
1397
1520
|
typeLabel: n,
|
|
1398
1521
|
name: e,
|
|
@@ -1400,4 +1523,4 @@ var W = {
|
|
|
1400
1523
|
}) })
|
|
1401
1524
|
});
|
|
1402
1525
|
//#endregion
|
|
1403
|
-
export { r as DESCRIPTION_MAX_LENGTH,
|
|
1526
|
+
export { r as DESCRIPTION_MAX_LENGTH, Fe as SCHEDULED_TASKS_CLASS, Re as ScheduledTaskCard, Ue as ScheduledTaskCardGrid, He as ScheduledTaskCardSkeleton, vt as ScheduledTaskConversationDetailsSection, _t as ScheduledTaskConversationDetailsState, gt as ScheduledTaskConversationHistorySection, et as ScheduledTaskCreateForm, yt as ScheduledTaskDeleteConfirmation, ft as ScheduledTaskDetailView, mt as ScheduledTaskDetailsSummary, dt as ScheduledTaskHistorySection, K as ScheduledTaskPresentationStatus, t as ScheduledTaskRepeat, lt as ScheduledTaskRunHistoryList, st as ScheduledTaskRunStatus, G as ScheduledTaskStatus, qe as ScheduledTasks, Je as ScheduledTasksSortKey, c as TIME_OF_DAY_PATTERN, q as getScheduledTaskStatus, Xe as hasScheduledTaskFormChanges };
|