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