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