@epam/ai-dial-scheduled-tasks 1.3.0-dev.245 → 1.3.0-dev.248
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/ScheduledTaskBoundaryField/ScheduledTaskBoundaryField.d.ts +1 -1
- package/components/ScheduledTaskBoundaryField/ScheduledTaskBoundaryField.d.ts.map +1 -1
- package/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.d.ts.map +1 -1
- package/components/ScheduledTaskDetailView/ScheduledTaskDetailView.d.ts.map +1 -1
- package/components/ScheduledTaskHistorySection/ScheduledTaskHistorySection.d.ts.map +1 -1
- package/components/ScheduledTaskRunAtField/ScheduledTaskRunAtField.d.ts +1 -1
- package/components/ScheduledTaskRunAtField/ScheduledTaskRunAtField.d.ts.map +1 -1
- package/components/ScheduledTaskRunHistoryList/ScheduledTaskRunHistoryList.d.ts.map +1 -1
- package/components/ScheduledTasks/ScheduledTasks.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.js +429 -427
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, t as s, u as c } from "./calendar-value-A8NsRLsw.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, useControlErrorAssociation as b, useIsMobile as x, useTextRefinement as S, useUnsavedChangesGuard as ee } from "@epam/ai-dial-chat-shared";
|
|
3
|
-
import { Accordion as C, Button as te, ButtonAppearance as ne, ButtonDropdown as w, ButtonVariant as re, Calendar as T, CalendarMode as E, CardShell as
|
|
4
|
-
import { IconAlertTriangle as
|
|
5
|
-
import { Suspense as
|
|
6
|
-
import { Fragment as
|
|
7
|
-
import { BuilderFormContainer as
|
|
8
|
-
import { LazyMarkdownEditor as
|
|
3
|
+
import { Accordion as C, Button as te, ButtonAppearance as ne, ButtonDropdown as w, ButtonVariant as re, Calendar as T, CalendarMode as E, CardShell as ie, ConfirmationPopupVariant as ae, DIAL_ICON_SIZE as D, DIAL_KIT_ICON_STROKE as O, ElementSize as oe, ErrorMessageNotification as se, ErrorText as k, FolderPath as ce, GhostButton as A, GhostIconButton as le, Highlight as ue, Input as de, Label as fe, LiveRegion as j, LiveRegionElement as M, LiveRegionPoliteness as N, MenuItemMark as pe, NeutralButton as P, NoDataContent as me, NumberInput as he, PrimaryButton as ge, Search as F, Select as _e, Skeleton as I, SkeletonVariant as L, Spinner as ve, Switch as ye, Tabs as be, Textarea as xe, Tooltip as R } from "@epam/ai-dial-ui-kit";
|
|
4
|
+
import { IconAlertTriangle as Se, IconArrowNarrowLeft as Ce, IconArrowsSort as z, IconCheck as we, IconCircleX as Te, IconPencilMinus as Ee, IconPlayerPause as De, IconPlayerPlay as Oe, IconPlus as ke, IconTrashX as Ae } from "@tabler/icons-react";
|
|
5
|
+
import { Suspense as je, lazy as B, useCallback as V, useEffect as Me, useId as H, useLayoutEffect as U, useMemo as Ne, useRef as Pe, useState as Fe } from "react";
|
|
6
|
+
import { Fragment as Ie, jsx as W, jsxs as G } from "react/jsx-runtime";
|
|
7
|
+
import { BuilderFormContainer as Le } from "@epam/ai-dial-builder-form";
|
|
8
|
+
import { LazyMarkdownEditor as Re } from "@epam/ai-dial-ui-kit/editors";
|
|
9
9
|
//#region src/models/scheduled-task-card-grid-props.ts
|
|
10
|
-
var
|
|
10
|
+
var ze = "1180px", Be = {
|
|
11
11
|
card: "dial-scheduled-tasks-card",
|
|
12
12
|
cardGrid: "dial-scheduled-tasks-card-grid",
|
|
13
13
|
refineFeedback: "dial-scheduled-tasks-refine-feedback"
|
|
14
14
|
}, K = /* @__PURE__ */ function(e) {
|
|
15
15
|
return e.Scheduled = "scheduled", e.Paused = "paused", e.Completed = "completed", e;
|
|
16
|
-
}({}),
|
|
16
|
+
}({}), q = /* @__PURE__ */ function(e) {
|
|
17
17
|
return e.Active = "active", e.Paused = "paused", e.Completed = "completed", e;
|
|
18
|
-
}({}),
|
|
18
|
+
}({}), Ve = (e) => {
|
|
19
19
|
switch (e.presentationStatus) {
|
|
20
|
-
case
|
|
21
|
-
case
|
|
22
|
-
case
|
|
20
|
+
case q.Active: return K.Scheduled;
|
|
21
|
+
case q.Paused: return K.Paused;
|
|
22
|
+
case q.Completed: return K.Completed;
|
|
23
23
|
}
|
|
24
24
|
return e.isCompleted ? K.Completed : e.isActive === !1 ? K.Paused : K.Scheduled;
|
|
25
|
-
},
|
|
25
|
+
}, J = {
|
|
26
26
|
schedulePill: "_schedulePill_1cwco_1",
|
|
27
27
|
scheduleLabel: "_scheduleLabel_1cwco_6",
|
|
28
28
|
pausedPill: "_pausedPill_1cwco_10",
|
|
29
29
|
pausedLabel: "_pausedLabel_1cwco_15",
|
|
30
30
|
completedPill: "_completedPill_1cwco_19",
|
|
31
31
|
completedLabel: "_completedLabel_1cwco_24"
|
|
32
|
-
},
|
|
32
|
+
}, He = {
|
|
33
33
|
[K.Scheduled]: {
|
|
34
34
|
pillClassName: "inline-block rounded-lg border px-2 py-1",
|
|
35
|
-
wrapperClassName:
|
|
36
|
-
labelClassName:
|
|
35
|
+
wrapperClassName: J.schedulePill,
|
|
36
|
+
labelClassName: J.scheduleLabel
|
|
37
37
|
},
|
|
38
38
|
[K.Paused]: {
|
|
39
39
|
pillClassName: "inline-flex items-center gap-1.5 rounded-full border px-2 py-1",
|
|
40
|
-
wrapperClassName:
|
|
41
|
-
labelClassName:
|
|
42
|
-
renderIcon: () => /* @__PURE__ */ W(
|
|
43
|
-
size:
|
|
40
|
+
wrapperClassName: J.pausedPill,
|
|
41
|
+
labelClassName: J.pausedLabel,
|
|
42
|
+
renderIcon: () => /* @__PURE__ */ W(De, {
|
|
43
|
+
size: D.SM,
|
|
44
44
|
"aria-hidden": !0,
|
|
45
|
-
stroke:
|
|
45
|
+
stroke: O
|
|
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
|
-
wrapperClassName:
|
|
51
|
-
labelClassName:
|
|
50
|
+
wrapperClassName: J.completedPill,
|
|
51
|
+
labelClassName: J.completedLabel,
|
|
52
52
|
renderIcon: () => /* @__PURE__ */ W(we, {
|
|
53
|
-
size:
|
|
53
|
+
size: D.SM,
|
|
54
54
|
"aria-hidden": !0,
|
|
55
|
-
stroke:
|
|
55
|
+
stroke: O
|
|
56
56
|
})
|
|
57
57
|
}
|
|
58
|
-
},
|
|
59
|
-
let { pillClassName: i, wrapperClassName: a, labelClassName: o, renderIcon: s } =
|
|
58
|
+
}, Ue = ({ status: e, text: t, textClassName: n = "dial-tiny-text", className: r }) => {
|
|
59
|
+
let { pillClassName: i, wrapperClassName: a, labelClassName: o, renderIcon: s } = He[e];
|
|
60
60
|
return /* @__PURE__ */ G("span", {
|
|
61
61
|
className: v(i, n, a, o, r),
|
|
62
62
|
children: [s && s(), t]
|
|
63
63
|
});
|
|
64
|
-
},
|
|
64
|
+
}, Y = {
|
|
65
65
|
title: "_title_hmbo0_2",
|
|
66
66
|
description: "_description_hmbo0_6",
|
|
67
67
|
locationLabel: "_locationLabel_hmbo0_10",
|
|
@@ -69,8 +69,8 @@ var Ie = "1180px", Le = {
|
|
|
69
69
|
newBadge: "_newBadge_hmbo0_18",
|
|
70
70
|
locationDivider: "_locationDivider_hmbo0_23",
|
|
71
71
|
card: "_card_hmbo0_34"
|
|
72
|
-
},
|
|
73
|
-
let o = x(), 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", b = d?.locationLabelClassName ?? "dial-tiny-text", S = d?.locationLeafClassName ?? "dial-tiny-semi-text", ee = d?.newBadgeClassName ?? "dial-tiny-semi-text", C =
|
|
72
|
+
}, We = ({ item: e, searchQuery: t = "", onCardClick: n, labels: r, styles: i, className: a }) => {
|
|
73
|
+
let o = x(), 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", b = d?.locationLabelClassName ?? "dial-tiny-text", S = d?.locationLeafClassName ?? "dial-tiny-semi-text", ee = d?.newBadgeClassName ?? "dial-tiny-semi-text", C = Ve(e), { text: te, textClassName: ne } = {
|
|
74
74
|
[K.Scheduled]: {
|
|
75
75
|
text: e.scheduleLabel,
|
|
76
76
|
textClassName: h
|
|
@@ -107,84 +107,84 @@ var Ie = "1180px", Le = {
|
|
|
107
107
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e.id));
|
|
108
108
|
}
|
|
109
109
|
} : {};
|
|
110
|
-
return /* @__PURE__ */ G(
|
|
110
|
+
return /* @__PURE__ */ G(ie, {
|
|
111
111
|
role: n ? "button" : "group",
|
|
112
112
|
"aria-label": e.displayName,
|
|
113
113
|
style: w,
|
|
114
|
-
className: v("h-[var(--st-card-height,232px)]",
|
|
114
|
+
className: v("h-[var(--st-card-height,232px)]", Y.card, n && "cursor-pointer", a, Be.card),
|
|
115
115
|
...re,
|
|
116
116
|
children: [
|
|
117
117
|
/* @__PURE__ */ G("div", {
|
|
118
118
|
className: "flex min-w-0 shrink-0 items-start gap-2 desktop:items-center",
|
|
119
|
-
children: [/* @__PURE__ */ W(
|
|
119
|
+
children: [/* @__PURE__ */ W(ue, {
|
|
120
120
|
text: e.displayName,
|
|
121
121
|
query: t,
|
|
122
122
|
maxLines: o ? 2 : 1,
|
|
123
|
-
className: v(f,
|
|
123
|
+
className: v(f, Y.title)
|
|
124
124
|
}), e.isNew && /* @__PURE__ */ W("span", {
|
|
125
|
-
className: v("shrink-0 rounded-full px-2 py-0.5", ee,
|
|
125
|
+
className: v("shrink-0 rounded-full px-2 py-0.5", ee, Y.newBadge),
|
|
126
126
|
children: s
|
|
127
127
|
})]
|
|
128
128
|
}),
|
|
129
129
|
e.descriptionPreview && /* @__PURE__ */ W("p", {
|
|
130
|
-
className: v("line-clamp-4 min-h-0 flex-1 overflow-hidden", m, p,
|
|
130
|
+
className: v("line-clamp-4 min-h-0 flex-1 overflow-hidden", m, p, Y.description),
|
|
131
131
|
children: e.descriptionPreview
|
|
132
132
|
}),
|
|
133
133
|
/* @__PURE__ */ G("div", {
|
|
134
134
|
className: "mt-auto flex shrink-0 flex-col gap-3",
|
|
135
135
|
children: [/* @__PURE__ */ W("div", {
|
|
136
136
|
className: "flex min-h-[28px] items-center",
|
|
137
|
-
children: /* @__PURE__ */ W(
|
|
137
|
+
children: /* @__PURE__ */ W(Ue, {
|
|
138
138
|
status: C,
|
|
139
139
|
text: te,
|
|
140
140
|
textClassName: ne
|
|
141
141
|
})
|
|
142
|
-
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */ W(
|
|
142
|
+
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */ W(ce, {
|
|
143
143
|
segments: e.locationSegments,
|
|
144
|
-
labelClassName: v(b,
|
|
145
|
-
leafClassName: v(S,
|
|
146
|
-
className: v("pt-3",
|
|
144
|
+
labelClassName: v(b, Y.locationLabel),
|
|
145
|
+
leafClassName: v(S, Y.locationLeaf),
|
|
146
|
+
className: v("pt-3", Y.locationDivider)
|
|
147
147
|
})]
|
|
148
148
|
})
|
|
149
149
|
]
|
|
150
150
|
});
|
|
151
|
-
},
|
|
151
|
+
}, Ge = { card: "_card_18ivt_1" }, Ke = [
|
|
152
152
|
"100%",
|
|
153
153
|
"100%",
|
|
154
154
|
"61%"
|
|
155
|
-
],
|
|
155
|
+
], qe = "var(--stcs-skeleton-bg)", Je = ({ styles: e }) => {
|
|
156
156
|
let t = _({ "--stcs-skeleton-bg": e?.colors?.skeletonColor });
|
|
157
|
-
return /* @__PURE__ */ G(
|
|
157
|
+
return /* @__PURE__ */ G(ie, {
|
|
158
158
|
"aria-hidden": !0,
|
|
159
159
|
style: t,
|
|
160
|
-
className: v("h-[var(--st-card-height,232px)]",
|
|
160
|
+
className: v("h-[var(--st-card-height,232px)]", Ge.card),
|
|
161
161
|
children: [
|
|
162
|
-
/* @__PURE__ */ W(
|
|
163
|
-
variant:
|
|
162
|
+
/* @__PURE__ */ W(I, {
|
|
163
|
+
variant: L.Rectangular,
|
|
164
164
|
width: "60%",
|
|
165
165
|
height: "20px",
|
|
166
|
-
color:
|
|
166
|
+
color: qe,
|
|
167
167
|
className: "shrink-0"
|
|
168
168
|
}),
|
|
169
169
|
/* @__PURE__ */ W("div", {
|
|
170
170
|
className: "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden",
|
|
171
|
-
children:
|
|
172
|
-
variant:
|
|
171
|
+
children: Ke.map((e, t) => /* @__PURE__ */ W(I, {
|
|
172
|
+
variant: L.Rectangular,
|
|
173
173
|
width: e,
|
|
174
174
|
height: "16px",
|
|
175
|
-
color:
|
|
175
|
+
color: qe
|
|
176
176
|
}, t))
|
|
177
177
|
}),
|
|
178
|
-
/* @__PURE__ */ W(
|
|
179
|
-
variant:
|
|
178
|
+
/* @__PURE__ */ W(I, {
|
|
179
|
+
variant: L.Rectangular,
|
|
180
180
|
width: "110px",
|
|
181
181
|
height: "28px",
|
|
182
|
-
color:
|
|
182
|
+
color: qe,
|
|
183
183
|
className: "shrink-0 rounded-lg"
|
|
184
184
|
})
|
|
185
185
|
]
|
|
186
186
|
});
|
|
187
|
-
},
|
|
187
|
+
}, Ye = ({ items: e, searchQuery: t, onCardClick: n, labels: r, cardStyles: i, trailingSkeletonCount: a = 0, skeletonStyles: o, layout: s }) => /* @__PURE__ */ G("div", {
|
|
188
188
|
style: {
|
|
189
189
|
"--st-grid-min-card-width": s?.minCardWidth,
|
|
190
190
|
"--st-grid-gap": s?.gap,
|
|
@@ -194,14 +194,14 @@ var Ie = "1180px", Le = {
|
|
|
194
194
|
gap: "var(--st-grid-gap, 20px)",
|
|
195
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))"
|
|
196
196
|
},
|
|
197
|
-
className: v("mx-auto grid w-full min-w-0",
|
|
198
|
-
children: [e.map((e) => /* @__PURE__ */ W(
|
|
197
|
+
className: v("mx-auto grid w-full min-w-0", Be.cardGrid),
|
|
198
|
+
children: [e.map((e) => /* @__PURE__ */ W(We, {
|
|
199
199
|
item: e,
|
|
200
200
|
searchQuery: t,
|
|
201
201
|
onCardClick: n,
|
|
202
202
|
labels: r,
|
|
203
203
|
styles: i
|
|
204
|
-
}, e.id)), Array.from({ length: a }, (e, t) => /* @__PURE__ */ W(
|
|
204
|
+
}, e.id)), Array.from({ length: a }, (e, t) => /* @__PURE__ */ W(Je, { styles: o }, `skeleton-${t}`))]
|
|
205
205
|
}), X = {
|
|
206
206
|
container: "_container_3vz4t_2",
|
|
207
207
|
subtitle: "_subtitle_3vz4t_6",
|
|
@@ -209,43 +209,43 @@ var Ie = "1180px", Le = {
|
|
|
209
209
|
sortButton: "_sortButton_3vz4t_19",
|
|
210
210
|
createButton: "_createButton_3vz4t_10",
|
|
211
211
|
sortControlHidden: "_sortControlHidden_3vz4t_49"
|
|
212
|
-
},
|
|
212
|
+
}, Xe = (e, t, n, r, i, a) => {
|
|
213
213
|
if (!e) return t ? a.loadingMoreLabel : n ? a.errorLabel : r > 0 ? `${r}` : i ? a.noResultsLabel : a.emptyStateLabel;
|
|
214
|
-
},
|
|
214
|
+
}, Ze = (e) => {
|
|
215
215
|
if (!e || e === document.body) return null;
|
|
216
216
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
217
|
-
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e :
|
|
218
|
-
},
|
|
219
|
-
let { colors: T, typography: E } = y ?? {},
|
|
217
|
+
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : Ze(e.parentElement);
|
|
218
|
+
}, Qe = ({ labels: e, onCreateClick: t, searchQuery: n, onSearchQueryChange: r, sortKey: i, onSortChange: a, items: o, isLoading: s = !1, error: c, onRetry: l, hasMore: u = !1, isLoadingMore: d = !1, skeletonCount: f = 6, onLoadMore: p, onCardClick: h, banner: g, styles: y, sortIcon: b, className: x, gridLayout: S, cardStyles: ee, loadMoreError: C, onRetryLoadMore: te }) => {
|
|
219
|
+
let { colors: T, typography: E } = y ?? {}, ie = E?.titleClassName ?? "dial-h1-text", ae = E?.subtitleClassName ?? "dial-body-text", k = _({
|
|
220
220
|
"--st-bg": T?.background,
|
|
221
221
|
"--st-subtitle-text": T?.subtitleText,
|
|
222
222
|
"--st-sort-text": T?.sortButtonText
|
|
223
|
-
}),
|
|
223
|
+
}), ce = (e) => {
|
|
224
224
|
r(e ?? "");
|
|
225
|
-
}, [
|
|
226
|
-
|
|
227
|
-
}, []),
|
|
228
|
-
|
|
225
|
+
}, [le, ue] = Fe(!1), [de, fe] = Fe(!1), N = Pe(null), P = V(() => {
|
|
226
|
+
fe(!0);
|
|
227
|
+
}, []), me = V(() => {
|
|
228
|
+
fe(!1);
|
|
229
229
|
}, []);
|
|
230
|
-
|
|
231
|
-
let e =
|
|
232
|
-
|
|
233
|
-
}, [
|
|
234
|
-
let
|
|
230
|
+
U(() => {
|
|
231
|
+
let e = N.current;
|
|
232
|
+
de && le && e != null && e.offsetParent == null && ue(!1);
|
|
233
|
+
}, [de, le]);
|
|
234
|
+
let he = e.sortOptions.find((e) => e.value === i)?.label ?? e.sortLabel, _e = Ne(() => e.sortOptions.map((e) => ({
|
|
235
235
|
key: e.value,
|
|
236
236
|
label: e.label,
|
|
237
|
-
mark:
|
|
237
|
+
mark: pe.Check,
|
|
238
238
|
checked: e.value === i,
|
|
239
239
|
onClick: () => a(e.value)
|
|
240
240
|
})), [
|
|
241
241
|
e.sortOptions,
|
|
242
242
|
i,
|
|
243
243
|
a
|
|
244
|
-
]),
|
|
245
|
-
|
|
246
|
-
let e =
|
|
244
|
+
]), I = Xe(s, d, !!c, o.length, n.trim().length > 0, e), L = Pe(null);
|
|
245
|
+
Me(() => {
|
|
246
|
+
let e = L.current;
|
|
247
247
|
if (!e || !p) return;
|
|
248
|
-
let t =
|
|
248
|
+
let t = Ze(e.parentElement);
|
|
249
249
|
if (!t) return;
|
|
250
250
|
let n = () => {
|
|
251
251
|
if (d || s || C || !u) return;
|
|
@@ -260,12 +260,12 @@ var Ie = "1180px", Le = {
|
|
|
260
260
|
C,
|
|
261
261
|
p
|
|
262
262
|
]);
|
|
263
|
-
let
|
|
263
|
+
let ye = () => s ? /* @__PURE__ */ W(ve, {}) : c ? /* @__PURE__ */ G("div", {
|
|
264
264
|
className: "flex flex-col items-center gap-3",
|
|
265
265
|
children: [/* @__PURE__ */ W("p", {
|
|
266
|
-
className: v(
|
|
266
|
+
className: v(ae, X.subtitle),
|
|
267
267
|
children: e.errorLabel
|
|
268
|
-
}), /* @__PURE__ */ W(
|
|
268
|
+
}), /* @__PURE__ */ W(A, {
|
|
269
269
|
label: e.retryLabel,
|
|
270
270
|
onClick: l
|
|
271
271
|
})]
|
|
@@ -278,7 +278,7 @@ var Ie = "1180px", Le = {
|
|
|
278
278
|
}) : /* @__PURE__ */ G("div", {
|
|
279
279
|
className: "flex w-full flex-col gap-6",
|
|
280
280
|
children: [
|
|
281
|
-
/* @__PURE__ */ W(
|
|
281
|
+
/* @__PURE__ */ W(Ye, {
|
|
282
282
|
items: o,
|
|
283
283
|
searchQuery: n,
|
|
284
284
|
onCardClick: h,
|
|
@@ -288,24 +288,24 @@ var Ie = "1180px", Le = {
|
|
|
288
288
|
cardStyles: ee,
|
|
289
289
|
layout: S
|
|
290
290
|
}),
|
|
291
|
-
C && /* @__PURE__ */ W(
|
|
291
|
+
C && /* @__PURE__ */ W(se, {
|
|
292
292
|
message: e.loadMoreErrorLabel ?? e.errorLabel,
|
|
293
|
-
textClassName:
|
|
294
|
-
iconStroke:
|
|
295
|
-
action: /* @__PURE__ */ W(
|
|
293
|
+
textClassName: ae,
|
|
294
|
+
iconStroke: O,
|
|
295
|
+
action: /* @__PURE__ */ W(A, {
|
|
296
296
|
label: e.retryLabel,
|
|
297
297
|
onClick: te
|
|
298
298
|
})
|
|
299
299
|
}),
|
|
300
300
|
/* @__PURE__ */ W("div", {
|
|
301
|
-
ref:
|
|
301
|
+
ref: L,
|
|
302
302
|
"aria-hidden": !0,
|
|
303
303
|
className: "h-px w-full"
|
|
304
304
|
})
|
|
305
305
|
]
|
|
306
|
-
}),
|
|
306
|
+
}), be = s || !!c || o.length === 0;
|
|
307
307
|
return /* @__PURE__ */ G("div", {
|
|
308
|
-
style:
|
|
308
|
+
style: k,
|
|
309
309
|
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),
|
|
310
310
|
children: [
|
|
311
311
|
/* @__PURE__ */ G("div", {
|
|
@@ -313,20 +313,20 @@ var Ie = "1180px", Le = {
|
|
|
313
313
|
children: [/* @__PURE__ */ G("div", {
|
|
314
314
|
className: "min-w-0 gap-2",
|
|
315
315
|
children: [/* @__PURE__ */ W("h1", {
|
|
316
|
-
className: v("truncate",
|
|
316
|
+
className: v("truncate", ie),
|
|
317
317
|
children: e.title
|
|
318
318
|
}), /* @__PURE__ */ W("p", {
|
|
319
|
-
className: v("mt-1",
|
|
319
|
+
className: v("mt-1", ae, X.subtitle),
|
|
320
320
|
children: e.subtitle
|
|
321
321
|
})]
|
|
322
|
-
}), t != null && /* @__PURE__ */ W(
|
|
322
|
+
}), t != null && /* @__PURE__ */ W(ge, {
|
|
323
323
|
label: e.createButtonLabel,
|
|
324
324
|
textClassName: X.createButtonLabel,
|
|
325
325
|
"aria-label": e.createButtonLabel,
|
|
326
|
-
iconBefore: /* @__PURE__ */ W(
|
|
327
|
-
size:
|
|
326
|
+
iconBefore: /* @__PURE__ */ W(ke, {
|
|
327
|
+
size: D.SM,
|
|
328
328
|
"aria-hidden": !0,
|
|
329
|
-
stroke:
|
|
329
|
+
stroke: O
|
|
330
330
|
}),
|
|
331
331
|
onClick: t,
|
|
332
332
|
className: v("shrink-0", X.createButton)
|
|
@@ -337,28 +337,28 @@ var Ie = "1180px", Le = {
|
|
|
337
337
|
children: [/* @__PURE__ */ W("div", {
|
|
338
338
|
role: "search",
|
|
339
339
|
className: "flex-1",
|
|
340
|
-
children: /* @__PURE__ */ W(
|
|
340
|
+
children: /* @__PURE__ */ W(F, {
|
|
341
341
|
value: n,
|
|
342
|
-
onChange:
|
|
342
|
+
onChange: ce,
|
|
343
343
|
placeholder: e.searchPlaceholder,
|
|
344
344
|
clearLabel: e.clearSearchLabel,
|
|
345
345
|
"aria-label": e.searchAriaLabel,
|
|
346
|
-
size:
|
|
347
|
-
onFocus:
|
|
348
|
-
onBlur:
|
|
346
|
+
size: oe.Large,
|
|
347
|
+
onFocus: P,
|
|
348
|
+
onBlur: me
|
|
349
349
|
})
|
|
350
350
|
}), e.sortOptions.length > 0 && /* @__PURE__ */ W("div", {
|
|
351
|
-
ref:
|
|
352
|
-
className: v(
|
|
351
|
+
ref: N,
|
|
352
|
+
className: v(de && X.sortControlHidden),
|
|
353
353
|
children: /* @__PURE__ */ W(w, {
|
|
354
|
-
items:
|
|
355
|
-
label:
|
|
354
|
+
items: _e,
|
|
355
|
+
label: he,
|
|
356
356
|
variant: re.Primary,
|
|
357
357
|
appearance: ne.Ghost,
|
|
358
|
-
iconBefore: b === void 0 ? /* @__PURE__ */ W(
|
|
359
|
-
size:
|
|
358
|
+
iconBefore: b === void 0 ? /* @__PURE__ */ W(z, {
|
|
359
|
+
size: D.SM,
|
|
360
360
|
"aria-hidden": !0,
|
|
361
|
-
stroke:
|
|
361
|
+
stroke: O
|
|
362
362
|
}) : b,
|
|
363
363
|
className: X.sortButton
|
|
364
364
|
})
|
|
@@ -369,29 +369,28 @@ var Ie = "1180px", Le = {
|
|
|
369
369
|
style: { maxWidth: S?.maxWidth ?? "1180px" },
|
|
370
370
|
children: g
|
|
371
371
|
}),
|
|
372
|
-
/* @__PURE__ */ W(
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
children: P
|
|
372
|
+
/* @__PURE__ */ W(j, {
|
|
373
|
+
visuallyHidden: !0,
|
|
374
|
+
as: M.Span,
|
|
375
|
+
children: I
|
|
377
376
|
}),
|
|
378
377
|
/* @__PURE__ */ W("div", {
|
|
379
|
-
className: v("mx-auto flex size-full w-full min-w-0 flex-col",
|
|
380
|
-
children:
|
|
378
|
+
className: v("mx-auto flex size-full w-full min-w-0 flex-col", be && "items-center justify-center"),
|
|
379
|
+
children: ye()
|
|
381
380
|
})
|
|
382
381
|
]
|
|
383
382
|
});
|
|
384
|
-
},
|
|
383
|
+
}, $e = /* @__PURE__ */ function(e) {
|
|
385
384
|
return e.FirstToRun = "firstToRun", e.LastToRun = "lastToRun", e.Newest = "newest", e.NameAZ = "nameAZ", e;
|
|
386
|
-
}({}),
|
|
385
|
+
}({}), et = (e) => Array.from(document.querySelectorAll("[aria-labelledby]")).find((t) => (t.getAttribute("aria-labelledby") ?? "").split(/\s+/).includes(e)) ?? null, tt = (e) => e == null ? "" : typeof e == "string" ? e.trim() : Array.isArray(e) ? e.length ? JSON.stringify(e) : "" : JSON.stringify(e), nt = (e, t) => {
|
|
387
386
|
let n = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
|
|
388
|
-
for (let r of n) if (
|
|
387
|
+
for (let r of n) if (tt(e[r]) !== tt(t[r])) return !0;
|
|
389
388
|
return !1;
|
|
390
|
-
},
|
|
389
|
+
}, rt = (e, t, n) => {
|
|
391
390
|
let i = (e) => e === r.Custom;
|
|
392
391
|
return !i(t) && !i(n) && t === r.Hourly == (n === r.Hourly) ? e : void 0;
|
|
393
|
-
},
|
|
394
|
-
let p = (e) => c(r === E.DateTime ? n(e) : i(e)), m =
|
|
392
|
+
}, it = { error: "_error_v2pfn_4" }, at = ({ id: t, mode: r, label: a, placeholder: o, value: s, onChange: c, minDate: l, error: u, errorClassName: d, disabled: f }) => {
|
|
393
|
+
let p = (e) => c(r === E.DateTime ? n(e) : i(e)), m = H();
|
|
395
394
|
return b(() => document.getElementById(t), m, !!u), /* @__PURE__ */ G("div", {
|
|
396
395
|
className: "flex flex-1 flex-col gap-1",
|
|
397
396
|
children: [/* @__PURE__ */ W(T, {
|
|
@@ -404,15 +403,15 @@ var Ie = "1180px", Le = {
|
|
|
404
403
|
placeholder: o,
|
|
405
404
|
invalid: !!u,
|
|
406
405
|
disabled: f
|
|
407
|
-
}),
|
|
406
|
+
}), /* @__PURE__ */ W(k, {
|
|
407
|
+
announce: N.Assertive,
|
|
408
408
|
id: m,
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
text: u
|
|
409
|
+
className: v(d, it.error),
|
|
410
|
+
text: u ?? ""
|
|
412
411
|
})]
|
|
413
412
|
});
|
|
414
|
-
},
|
|
415
|
-
let l =
|
|
413
|
+
}, ot = { error: "_error_v2pfn_4" }, st = ({ label: e, placeholder: r, value: i, onChange: a, disabled: o, error: s, errorClassName: c = "dial-tiny-text" }) => {
|
|
414
|
+
let l = Pe(/* @__PURE__ */ new Date()).current, u = (e) => a(n(e)), d = H();
|
|
416
415
|
return b(() => document.getElementById("scheduled-task-run-at"), d, !!s), /* @__PURE__ */ G("div", {
|
|
417
416
|
className: "flex flex-col gap-1",
|
|
418
417
|
children: [/* @__PURE__ */ W(T, {
|
|
@@ -428,11 +427,11 @@ var Ie = "1180px", Le = {
|
|
|
428
427
|
placeholder: r,
|
|
429
428
|
invalid: !!s,
|
|
430
429
|
disabled: o
|
|
431
|
-
}),
|
|
430
|
+
}), /* @__PURE__ */ W(k, {
|
|
431
|
+
announce: N.Assertive,
|
|
432
432
|
id: d,
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
text: s
|
|
433
|
+
className: v(c, ot.error),
|
|
434
|
+
text: s ?? ""
|
|
436
435
|
})]
|
|
437
436
|
});
|
|
438
437
|
}, Z = {
|
|
@@ -442,64 +441,64 @@ var Ie = "1180px", Le = {
|
|
|
442
441
|
instructionsError: "_instructionsError_1253x_18",
|
|
443
442
|
refineFeedback: "_refineFeedback_1253x_22",
|
|
444
443
|
refineError: "_refineError_1253x_26"
|
|
445
|
-
},
|
|
446
|
-
let
|
|
447
|
-
if (
|
|
448
|
-
|
|
444
|
+
}, ct = B(async () => ({ default: (await Re()).MarkdownEditor })), lt = ({ labels: e, values: t, initialValues: n, errors: i, modelSelector: c, modelLabelId: u, skillSelector: p, onFieldChange: m, onBack: h, onCancel: x, onSubmit: C, isSubmitting: w = !1, onRefineDescription: ie, onRefineInstructions: oe, markdownEditorTheme: se, backIcon: ce, className: A, styles: le }) => {
|
|
445
|
+
let ue = H(), j = H(), M = H(), pe = H(), P = H(), me = H(), ge = H(), F = Pe(void 0), I = (e) => e ? async (t, n) => {
|
|
446
|
+
if (F.current && !F.current.aborted) throw new DOMException("Busy", "AbortError");
|
|
447
|
+
F.current = n;
|
|
449
448
|
try {
|
|
450
449
|
return await e(t, n);
|
|
451
450
|
} finally {
|
|
452
|
-
|
|
451
|
+
F.current === n && (F.current = void 0);
|
|
453
452
|
}
|
|
454
|
-
} : void 0,
|
|
453
|
+
} : void 0, L = S({
|
|
455
454
|
value: t.description ?? "",
|
|
456
455
|
onChange: (e) => m("description", e),
|
|
457
|
-
onRefine:
|
|
456
|
+
onRefine: I(ie),
|
|
458
457
|
disabled: w
|
|
459
|
-
}),
|
|
458
|
+
}), ye = S({
|
|
460
459
|
value: t.prompt,
|
|
461
460
|
onChange: (e) => m("prompt", e),
|
|
462
|
-
onRefine:
|
|
461
|
+
onRefine: I(oe),
|
|
463
462
|
disabled: w
|
|
464
|
-
}),
|
|
465
|
-
|
|
466
|
-
},
|
|
467
|
-
|
|
468
|
-
}),
|
|
469
|
-
|
|
470
|
-
}), Ee = y(), De = !t.skillUrls?.length, [Oe,
|
|
471
|
-
"--stcf-details-border":
|
|
472
|
-
"--stcf-subtitle-text":
|
|
473
|
-
"--stcf-error-text":
|
|
474
|
-
"--stcf-refine-action-text":
|
|
475
|
-
"--stcf-refine-error-text":
|
|
476
|
-
}),
|
|
477
|
-
feedbackClassName: v(
|
|
463
|
+
}), be = L.isPending || ye.isPending, R = () => {
|
|
464
|
+
L.reset(), ye.reset();
|
|
465
|
+
}, Se = !!(n && nt(t, n)), z = ee(Se), we = () => z.guard(() => {
|
|
466
|
+
R(), h();
|
|
467
|
+
}), Te = () => z.guard(() => {
|
|
468
|
+
R(), x();
|
|
469
|
+
}), Ee = y(), De = !t.skillUrls?.length, [Oe, ke] = Fe(), Ae = Pe(/* @__PURE__ */ new Date()).current, { colors: B, typography: V, layout: U } = le ?? {}, Ne = V?.titleClassName ?? "dial-h1-text", Re = V?.sectionTitleClassName ?? "dial-body-semi-text", ze = V?.sectionSubtitleClassName ?? "dial-tiny-text", K = V?.instructionsLabelClassName ?? "dial-body-semi-text mb-1", q = V?.instructionsErrorClassName ?? "dial-tiny-text", Ve = _({
|
|
470
|
+
"--stcf-details-border": B?.detailsColumnBorder,
|
|
471
|
+
"--stcf-subtitle-text": B?.sectionSubtitleText,
|
|
472
|
+
"--stcf-error-text": B?.instructionsErrorText,
|
|
473
|
+
"--stcf-refine-action-text": B?.refineActionText,
|
|
474
|
+
"--stcf-refine-error-text": B?.refineErrorText
|
|
475
|
+
}), J = {
|
|
476
|
+
feedbackClassName: v(B?.refineActionText && Z.refineFeedback, V?.refineFeedbackClassName, Be.refineFeedback),
|
|
478
477
|
errorClassName: Z.refineError
|
|
479
|
-
},
|
|
478
|
+
}, He = (t) => {
|
|
480
479
|
let n = s.test(t.target.value) ? void 0 : e.timeInvalidLabel;
|
|
481
|
-
|
|
482
|
-
}, He = (e) => {
|
|
483
|
-
Ae(void 0), m("time", typeof e == "string" ? e : "");
|
|
480
|
+
ke(n), m("time", t.target.value);
|
|
484
481
|
}, Ue = (e) => {
|
|
482
|
+
ke(void 0), m("time", typeof e == "string" ? e : "");
|
|
483
|
+
}, Y = (e) => {
|
|
485
484
|
let n = e;
|
|
486
485
|
m("repeat", n);
|
|
487
|
-
let r =
|
|
486
|
+
let r = rt(t.startDate, t.repeat, n);
|
|
488
487
|
r !== t.startDate && m("startDate", r ?? "");
|
|
489
|
-
let i =
|
|
488
|
+
let i = rt(t.endDate, t.repeat, n);
|
|
490
489
|
i !== t.endDate && m("endDate", i ?? "");
|
|
491
|
-
}, We = t.repeat !== r.OneTime && t.repeat !== r.Hourly,
|
|
492
|
-
|
|
493
|
-
We ||
|
|
490
|
+
}, We = t.repeat !== r.OneTime && t.repeat !== r.Hourly, Ge = t.repeat === r.Hourly, Ke = t.repeat === r.Custom, qe = Ke && !t.dayOfWeek, Je = Ge ? E.DateTime : E.Date, Ye = Ge ? e.startDateAndTimeLabel : e.startDateLabel, X = Ge ? e.endDateAndTimeLabel : e.endDateLabel;
|
|
491
|
+
Me(() => {
|
|
492
|
+
We || ke(void 0);
|
|
494
493
|
}, [We]);
|
|
495
|
-
let
|
|
496
|
-
b(() =>
|
|
497
|
-
let
|
|
494
|
+
let Xe = We ? Oe ?? i.time : void 0;
|
|
495
|
+
b(() => et(u), pe, !!i.modelId), b(() => document.getElementById("scheduled-task-day-of-week"), P, !!i.dayOfWeek), b(() => document.getElementById("scheduled-task-time"), me, !!Xe), b(() => document.getElementById(j), ge, !!i.prompt);
|
|
496
|
+
let Ze = (e) => m("runAt", e), Qe = (e) => {
|
|
498
497
|
m("everyWeeks", e);
|
|
499
|
-
},
|
|
498
|
+
}, $e = (e) => {
|
|
500
499
|
e !== t.dayOfWeek && m("dayOfWeek", e);
|
|
501
|
-
},
|
|
502
|
-
return /* @__PURE__ */ G(
|
|
500
|
+
}, tt = w || be || !t.displayName.trim() || !t.modelId || !t.prompt.trim() && !t.skillUrls?.length || !!i.skillUrls || t.repeat === r.OneTime && (!t.runAt || !!i.runAt) || We && !t.time || qe || !!Xe;
|
|
501
|
+
return /* @__PURE__ */ G(Ie, { children: [/* @__PURE__ */ W(Le, {
|
|
503
502
|
labels: {
|
|
504
503
|
title: e.pageTitle,
|
|
505
504
|
backButtonLabel: e.backButtonLabel,
|
|
@@ -507,33 +506,33 @@ var Ie = "1180px", Le = {
|
|
|
507
506
|
submitButtonLabel: e.createButtonLabel,
|
|
508
507
|
submittingLabel: e.submittingLabel ?? "Saving"
|
|
509
508
|
},
|
|
510
|
-
onBack:
|
|
511
|
-
onCancel:
|
|
509
|
+
onBack: we,
|
|
510
|
+
onCancel: Te,
|
|
512
511
|
onSubmit: () => {
|
|
513
|
-
!
|
|
512
|
+
!tt && (!F.current || F.current.aborted) && C();
|
|
514
513
|
},
|
|
515
514
|
isCancelDisabled: w,
|
|
516
|
-
isSubmitDisabled:
|
|
515
|
+
isSubmitDisabled: tt,
|
|
517
516
|
isSubmitting: w,
|
|
518
|
-
backIcon:
|
|
519
|
-
size:
|
|
520
|
-
stroke:
|
|
517
|
+
backIcon: ce === void 0 ? /* @__PURE__ */ W(Ce, {
|
|
518
|
+
size: D.LG,
|
|
519
|
+
stroke: O,
|
|
521
520
|
"aria-hidden": !0,
|
|
522
521
|
className: "rtl:scale-x-[-1]"
|
|
523
|
-
}) :
|
|
522
|
+
}) : ce,
|
|
524
523
|
layout: {
|
|
525
|
-
sideColumnWidth:
|
|
526
|
-
columnGap:
|
|
524
|
+
sideColumnWidth: U?.detailsWidth,
|
|
525
|
+
columnGap: U?.columnGap,
|
|
527
526
|
reserveEndColumn: !1
|
|
528
527
|
},
|
|
529
|
-
className:
|
|
528
|
+
className: A,
|
|
530
529
|
styles: {
|
|
531
|
-
colors: { background:
|
|
530
|
+
colors: { background: B?.background },
|
|
532
531
|
header: {
|
|
533
|
-
colors: { borderColor:
|
|
534
|
-
typography: { fontClassName:
|
|
532
|
+
colors: { borderColor: B?.headerBorder },
|
|
533
|
+
typography: { fontClassName: Ne }
|
|
535
534
|
},
|
|
536
|
-
cssVars:
|
|
535
|
+
cssVars: Ve
|
|
537
536
|
},
|
|
538
537
|
left: /* @__PURE__ */ G("div", {
|
|
539
538
|
role: "group",
|
|
@@ -543,14 +542,14 @@ var Ie = "1180px", Le = {
|
|
|
543
542
|
/* @__PURE__ */ G("div", {
|
|
544
543
|
className: "flex flex-col gap-1",
|
|
545
544
|
children: [/* @__PURE__ */ W("h2", {
|
|
546
|
-
className:
|
|
545
|
+
className: Re,
|
|
547
546
|
children: e.detailsSectionTitle
|
|
548
547
|
}), /* @__PURE__ */ W("p", {
|
|
549
|
-
className: v(
|
|
548
|
+
className: v(ze, Z.sectionSubtitle),
|
|
550
549
|
children: e.detailsSectionSubtitle
|
|
551
550
|
})]
|
|
552
551
|
}),
|
|
553
|
-
/* @__PURE__ */ W(
|
|
552
|
+
/* @__PURE__ */ W(de, {
|
|
554
553
|
id: "scheduled-task-display-name",
|
|
555
554
|
value: t.displayName,
|
|
556
555
|
onChange: (e) => m("displayName", e ?? ""),
|
|
@@ -562,21 +561,21 @@ var Ie = "1180px", Le = {
|
|
|
562
561
|
error: i.displayName
|
|
563
562
|
}),
|
|
564
563
|
/* @__PURE__ */ W(g, {
|
|
565
|
-
isEnabled: !!
|
|
566
|
-
fieldId:
|
|
564
|
+
isEnabled: !!ie,
|
|
565
|
+
fieldId: ue,
|
|
567
566
|
label: e.descriptionLabel,
|
|
568
567
|
labels: e,
|
|
569
|
-
refinement:
|
|
570
|
-
disabled: w ||
|
|
568
|
+
refinement: L,
|
|
569
|
+
disabled: w || be,
|
|
571
570
|
caption: `${(t.description ?? "").length}/500`,
|
|
572
|
-
...
|
|
571
|
+
...J,
|
|
573
572
|
children: /* @__PURE__ */ W(xe, {
|
|
574
|
-
id:
|
|
573
|
+
id: ue,
|
|
575
574
|
value: t.description ?? "",
|
|
576
575
|
onChange: (e) => {
|
|
577
|
-
|
|
576
|
+
L.reset(), m("description", e);
|
|
578
577
|
},
|
|
579
|
-
labelProps:
|
|
578
|
+
labelProps: ie ? void 0 : { label: e.descriptionLabel },
|
|
580
579
|
maxLength: 500,
|
|
581
580
|
invalid: !!i.description,
|
|
582
581
|
error: i.description
|
|
@@ -585,14 +584,14 @@ var Ie = "1180px", Le = {
|
|
|
585
584
|
/* @__PURE__ */ G("div", {
|
|
586
585
|
className: "flex flex-col gap-1",
|
|
587
586
|
children: [
|
|
588
|
-
/* @__PURE__ */ W(
|
|
587
|
+
/* @__PURE__ */ W(fe, {
|
|
589
588
|
id: u,
|
|
590
589
|
label: e.modelOrAgentLabel,
|
|
591
590
|
required: !0
|
|
592
591
|
}),
|
|
593
592
|
c,
|
|
594
|
-
i.modelId && /* @__PURE__ */ W(
|
|
595
|
-
id:
|
|
593
|
+
i.modelId && /* @__PURE__ */ W(k, {
|
|
594
|
+
id: pe,
|
|
596
595
|
className: v(q, Z.instructionsError),
|
|
597
596
|
text: i.modelId
|
|
598
597
|
})
|
|
@@ -604,23 +603,23 @@ var Ie = "1180px", Le = {
|
|
|
604
603
|
/* @__PURE__ */ W(_e, {
|
|
605
604
|
labelProps: { label: e.repeatLabel },
|
|
606
605
|
value: t.repeat,
|
|
607
|
-
onChange:
|
|
606
|
+
onChange: Y,
|
|
608
607
|
options: e.repeatOptions.map((e) => ({
|
|
609
608
|
value: e.key,
|
|
610
609
|
label: e.label
|
|
611
610
|
}))
|
|
612
611
|
}),
|
|
613
|
-
t.repeat === r.OneTime && /* @__PURE__ */ W(
|
|
612
|
+
t.repeat === r.OneTime && /* @__PURE__ */ W(st, {
|
|
614
613
|
label: e.runAtLabel,
|
|
615
614
|
placeholder: e.runAtPlaceholder,
|
|
616
615
|
value: t.runAt ?? "",
|
|
617
|
-
onChange:
|
|
616
|
+
onChange: Ze,
|
|
618
617
|
error: i.runAt,
|
|
619
618
|
errorClassName: q,
|
|
620
619
|
disabled: w
|
|
621
620
|
}),
|
|
622
|
-
t.repeat !== r.OneTime && /* @__PURE__ */ G(
|
|
623
|
-
|
|
621
|
+
t.repeat !== r.OneTime && /* @__PURE__ */ G(Ie, { children: [
|
|
622
|
+
Ke && /* @__PURE__ */ W(_e, {
|
|
624
623
|
id: "scheduled-task-every-weeks",
|
|
625
624
|
labelProps: { label: e.everyLabel },
|
|
626
625
|
value: t.everyWeeks ?? "",
|
|
@@ -640,8 +639,8 @@ var Ie = "1180px", Le = {
|
|
|
640
639
|
required: !0
|
|
641
640
|
},
|
|
642
641
|
invalid: !!i.dayOfWeek
|
|
643
|
-
}), i.dayOfWeek && /* @__PURE__ */ W(
|
|
644
|
-
id:
|
|
642
|
+
}), i.dayOfWeek && /* @__PURE__ */ W(k, {
|
|
643
|
+
id: P,
|
|
645
644
|
className: v(q, Z.instructionsError),
|
|
646
645
|
text: i.dayOfWeek
|
|
647
646
|
})]
|
|
@@ -652,50 +651,50 @@ var Ie = "1180px", Le = {
|
|
|
652
651
|
id: "scheduled-task-time",
|
|
653
652
|
mode: E.Time,
|
|
654
653
|
value: t.time,
|
|
655
|
-
onChange:
|
|
656
|
-
onBlur:
|
|
654
|
+
onChange: Ue,
|
|
655
|
+
onBlur: He,
|
|
657
656
|
labelProps: {
|
|
658
657
|
label: e.timeLabel,
|
|
659
658
|
required: !0
|
|
660
659
|
},
|
|
661
|
-
invalid: !!
|
|
660
|
+
invalid: !!Xe,
|
|
662
661
|
disabled: w,
|
|
663
662
|
showTimezone: !0
|
|
664
|
-
}),
|
|
665
|
-
id:
|
|
663
|
+
}), Xe && /* @__PURE__ */ W(k, {
|
|
664
|
+
id: me,
|
|
666
665
|
className: v(q, Z.instructionsError),
|
|
667
|
-
text:
|
|
666
|
+
text: Xe
|
|
668
667
|
})]
|
|
669
668
|
}),
|
|
670
|
-
|
|
669
|
+
Ke && /* @__PURE__ */ G("div", {
|
|
671
670
|
className: "flex flex-col gap-1",
|
|
672
671
|
children: [
|
|
673
|
-
/* @__PURE__ */ W(
|
|
674
|
-
id:
|
|
672
|
+
/* @__PURE__ */ W(fe, {
|
|
673
|
+
id: M,
|
|
675
674
|
label: e.dayOfWeekLabel,
|
|
676
675
|
required: !0
|
|
677
676
|
}),
|
|
678
677
|
/* @__PURE__ */ W("div", {
|
|
679
678
|
role: "group",
|
|
680
|
-
"aria-labelledby":
|
|
679
|
+
"aria-labelledby": M,
|
|
681
680
|
className: "flex gap-0.5",
|
|
682
681
|
children: e.customDayOptions.map((e) => {
|
|
683
682
|
let n = e.value === t.dayOfWeek;
|
|
684
683
|
return /* @__PURE__ */ W(te, {
|
|
685
684
|
"aria-label": e.fullName,
|
|
686
685
|
"aria-pressed": n,
|
|
687
|
-
"aria-describedby": i.dayOfWeek ?
|
|
686
|
+
"aria-describedby": i.dayOfWeek ? P : void 0,
|
|
688
687
|
variant: n ? re.Primary : re.Neutral,
|
|
689
688
|
appearance: ne.Solid,
|
|
690
689
|
className: "w-10 rounded-full",
|
|
691
690
|
label: e.shortLabel,
|
|
692
|
-
onClick: () =>
|
|
691
|
+
onClick: () => $e(e.value),
|
|
693
692
|
disabled: w
|
|
694
693
|
}, e.value);
|
|
695
694
|
})
|
|
696
695
|
}),
|
|
697
|
-
i.dayOfWeek && /* @__PURE__ */ W(
|
|
698
|
-
id:
|
|
696
|
+
i.dayOfWeek && /* @__PURE__ */ W(k, {
|
|
697
|
+
id: P,
|
|
699
698
|
className: v(q, Z.instructionsError),
|
|
700
699
|
text: i.dayOfWeek
|
|
701
700
|
})
|
|
@@ -730,27 +729,27 @@ var Ie = "1180px", Le = {
|
|
|
730
729
|
invalid: !!i.minute,
|
|
731
730
|
error: i.minute
|
|
732
731
|
}),
|
|
733
|
-
!
|
|
734
|
-
className: v("gap-3",
|
|
735
|
-
children: [/* @__PURE__ */ W(
|
|
732
|
+
!Ke && /* @__PURE__ */ G("div", {
|
|
733
|
+
className: v("gap-3", Ge ? "flex flex-col" : "flex flex-row"),
|
|
734
|
+
children: [/* @__PURE__ */ W(at, {
|
|
736
735
|
id: "scheduled-task-start-date",
|
|
737
|
-
mode:
|
|
738
|
-
label:
|
|
736
|
+
mode: Je,
|
|
737
|
+
label: Ye,
|
|
739
738
|
placeholder: e.startDatePlaceholder,
|
|
740
739
|
value: t.startDate,
|
|
741
740
|
onChange: (e) => m("startDate", e),
|
|
742
|
-
minDate:
|
|
741
|
+
minDate: Ae,
|
|
743
742
|
error: i.startDate,
|
|
744
743
|
errorClassName: q,
|
|
745
744
|
disabled: w
|
|
746
|
-
}), /* @__PURE__ */ W(
|
|
745
|
+
}), /* @__PURE__ */ W(at, {
|
|
747
746
|
id: "scheduled-task-end-date",
|
|
748
|
-
mode:
|
|
749
|
-
label:
|
|
747
|
+
mode: Je,
|
|
748
|
+
label: X,
|
|
750
749
|
placeholder: e.endDatePlaceholder,
|
|
751
750
|
value: t.endDate,
|
|
752
751
|
onChange: (e) => m("endDate", e),
|
|
753
|
-
minDate:
|
|
752
|
+
minDate: Ae,
|
|
754
753
|
error: i.endDate,
|
|
755
754
|
errorClassName: q,
|
|
756
755
|
disabled: w
|
|
@@ -769,16 +768,14 @@ var Ie = "1180px", Le = {
|
|
|
769
768
|
/* @__PURE__ */ W("div", {
|
|
770
769
|
className: "flex flex-col gap-1",
|
|
771
770
|
children: /* @__PURE__ */ W("h2", {
|
|
772
|
-
className:
|
|
771
|
+
className: Re,
|
|
773
772
|
children: e.configurationSectionTitle
|
|
774
773
|
})
|
|
775
774
|
}),
|
|
776
|
-
p == null ?
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
text: i.skillUrls
|
|
781
|
-
})
|
|
775
|
+
p == null ? /* @__PURE__ */ W(k, {
|
|
776
|
+
announce: N.Polite,
|
|
777
|
+
className: v(q, Z.instructionsError),
|
|
778
|
+
text: i.skillUrls ?? ""
|
|
782
779
|
}) : /* @__PURE__ */ W("div", {
|
|
783
780
|
className: "w-full max-w-[996px] min-w-0",
|
|
784
781
|
children: p
|
|
@@ -786,43 +783,43 @@ var Ie = "1180px", Le = {
|
|
|
786
783
|
/* @__PURE__ */ W("div", {
|
|
787
784
|
className: "flex w-full max-w-[996px] min-w-0 flex-col",
|
|
788
785
|
children: /* @__PURE__ */ W(g, {
|
|
789
|
-
isEnabled: !!
|
|
790
|
-
fieldId:
|
|
791
|
-
labelClassName:
|
|
786
|
+
isEnabled: !!oe,
|
|
787
|
+
fieldId: j,
|
|
788
|
+
labelClassName: K,
|
|
792
789
|
label: e.instructionsLabel,
|
|
793
790
|
required: De,
|
|
794
791
|
labels: e,
|
|
795
|
-
refinement:
|
|
796
|
-
disabled: w ||
|
|
797
|
-
...
|
|
792
|
+
refinement: ye,
|
|
793
|
+
disabled: w || be,
|
|
794
|
+
...J,
|
|
798
795
|
children: /* @__PURE__ */ G("div", {
|
|
799
796
|
className: "flex flex-1 flex-col gap-1",
|
|
800
797
|
children: [
|
|
801
|
-
!
|
|
802
|
-
htmlFor:
|
|
803
|
-
className:
|
|
798
|
+
!oe && /* @__PURE__ */ W(fe, {
|
|
799
|
+
htmlFor: j,
|
|
800
|
+
className: K,
|
|
804
801
|
label: e.instructionsLabel,
|
|
805
802
|
required: De
|
|
806
803
|
}),
|
|
807
804
|
/* @__PURE__ */ W("div", {
|
|
808
805
|
ref: Ee,
|
|
809
806
|
className: v("w-full", d, f),
|
|
810
|
-
children: /* @__PURE__ */ W(
|
|
807
|
+
children: /* @__PURE__ */ W(je, {
|
|
811
808
|
fallback: /* @__PURE__ */ W(ve, {}),
|
|
812
|
-
children: /* @__PURE__ */ W(
|
|
813
|
-
id:
|
|
809
|
+
children: /* @__PURE__ */ W(ct, {
|
|
810
|
+
id: j,
|
|
814
811
|
value: t.prompt,
|
|
815
812
|
onChange: (e) => {
|
|
816
|
-
|
|
813
|
+
ye.reset(), m("prompt", e);
|
|
817
814
|
},
|
|
818
815
|
height: 480,
|
|
819
|
-
theme:
|
|
816
|
+
theme: se,
|
|
820
817
|
placeholder: e.instructionsPlaceholder
|
|
821
818
|
})
|
|
822
819
|
})
|
|
823
820
|
}),
|
|
824
|
-
i.prompt && /* @__PURE__ */ W(
|
|
825
|
-
id:
|
|
821
|
+
i.prompt && /* @__PURE__ */ W(k, {
|
|
822
|
+
id: ge,
|
|
826
823
|
className: v(q, Z.instructionsError),
|
|
827
824
|
text: i.prompt
|
|
828
825
|
})
|
|
@@ -832,28 +829,28 @@ var Ie = "1180px", Le = {
|
|
|
832
829
|
})
|
|
833
830
|
]
|
|
834
831
|
})
|
|
835
|
-
}),
|
|
832
|
+
}), z.isConfirmOpen && /* @__PURE__ */ W(l, {
|
|
836
833
|
open: !0,
|
|
837
834
|
title: e.discardTitle ?? "Discard unsaved changes?",
|
|
838
835
|
message: e.discardMessage ?? "You have unsaved changes. Leaving now will discard them.",
|
|
839
836
|
confirmLabel: e.discardConfirmLabel ?? "Discard changes",
|
|
840
837
|
cancelLabel: e.discardCancelLabel ?? "Keep editing",
|
|
841
|
-
variant:
|
|
842
|
-
onConfirm:
|
|
843
|
-
onClose:
|
|
838
|
+
variant: ae.Danger,
|
|
839
|
+
onConfirm: z.confirm,
|
|
840
|
+
onClose: z.dismiss
|
|
844
841
|
})] });
|
|
845
|
-
},
|
|
842
|
+
}, ut = /* @__PURE__ */ function(e) {
|
|
846
843
|
return e.Details = "details", e.Configuration = "configuration", e.History = "history", e;
|
|
847
|
-
}({}),
|
|
844
|
+
}({}), dt = /* @__PURE__ */ function(e) {
|
|
848
845
|
return e.Card = "card", e.Flow = "flow", e;
|
|
849
|
-
}({}),
|
|
846
|
+
}({}), ft = { subtitleText: "_subtitleText_1i4x2_3" }, pt = ({ skillLabel: e, skillDisplayNames: t, instructionsLabel: n, instructionsMarkdown: r, renderInstructions: i, markdownLabels: a, fieldLabelClassName: o = "dial-tiny-text" }) => /* @__PURE__ */ G("div", {
|
|
850
847
|
className: "flex min-w-0 flex-col gap-5",
|
|
851
848
|
children: [!!t?.length && /* @__PURE__ */ G("div", {
|
|
852
849
|
role: "group",
|
|
853
850
|
"aria-label": e,
|
|
854
851
|
className: "flex min-w-0 flex-col gap-1",
|
|
855
852
|
children: [/* @__PURE__ */ W("span", {
|
|
856
|
-
className: v(o,
|
|
853
|
+
className: v(o, ft.subtitleText),
|
|
857
854
|
children: e
|
|
858
855
|
}), /* @__PURE__ */ W("p", {
|
|
859
856
|
className: "break-all whitespace-normal",
|
|
@@ -867,18 +864,18 @@ var Ie = "1180px", Le = {
|
|
|
867
864
|
"aria-label": n,
|
|
868
865
|
className: "flex min-w-0 flex-col gap-1",
|
|
869
866
|
children: [/* @__PURE__ */ W("span", {
|
|
870
|
-
className: v(o,
|
|
867
|
+
className: v(o, ft.subtitleText),
|
|
871
868
|
children: n
|
|
872
869
|
}), i ? i(r) : /* @__PURE__ */ W(p, {
|
|
873
870
|
content: r,
|
|
874
871
|
...a
|
|
875
872
|
})]
|
|
876
873
|
})]
|
|
877
|
-
}),
|
|
874
|
+
}), mt = { subtitleText: "_subtitleText_1i4x2_3" }, ht = ({ labels: e, description: t, modelLabel: n, repeatsLabel: r, activeWindowLabel: i, completedLabel: a, fieldLabelClassName: o = "dial-tiny-text", fieldValueClassName: s = "dial-small-text" }) => /* @__PURE__ */ G(Ie, { children: [
|
|
878
875
|
t && /* @__PURE__ */ G("div", {
|
|
879
876
|
className: "flex flex-col gap-1",
|
|
880
877
|
children: [/* @__PURE__ */ W("span", {
|
|
881
|
-
className: v(o,
|
|
878
|
+
className: v(o, mt.subtitleText),
|
|
882
879
|
children: e.descriptionLabel
|
|
883
880
|
}), /* @__PURE__ */ W("p", {
|
|
884
881
|
className: s,
|
|
@@ -888,7 +885,7 @@ var Ie = "1180px", Le = {
|
|
|
888
885
|
a && /* @__PURE__ */ G("div", {
|
|
889
886
|
className: "flex flex-col gap-1",
|
|
890
887
|
children: [/* @__PURE__ */ W("span", {
|
|
891
|
-
className: v(o,
|
|
888
|
+
className: v(o, mt.subtitleText),
|
|
892
889
|
children: e.completedFieldLabel
|
|
893
890
|
}), /* @__PURE__ */ W("p", {
|
|
894
891
|
className: s,
|
|
@@ -898,7 +895,7 @@ var Ie = "1180px", Le = {
|
|
|
898
895
|
n && /* @__PURE__ */ G("div", {
|
|
899
896
|
className: "flex flex-col gap-1",
|
|
900
897
|
children: [/* @__PURE__ */ W("span", {
|
|
901
|
-
className: v(o,
|
|
898
|
+
className: v(o, mt.subtitleText),
|
|
902
899
|
children: e.modelLabel
|
|
903
900
|
}), /* @__PURE__ */ W("p", {
|
|
904
901
|
className: s,
|
|
@@ -908,7 +905,7 @@ var Ie = "1180px", Le = {
|
|
|
908
905
|
r && /* @__PURE__ */ G("div", {
|
|
909
906
|
className: "flex flex-col gap-1",
|
|
910
907
|
children: [/* @__PURE__ */ W("span", {
|
|
911
|
-
className: v(o,
|
|
908
|
+
className: v(o, mt.subtitleText),
|
|
912
909
|
children: e.repeatsLabel
|
|
913
910
|
}), /* @__PURE__ */ W("p", {
|
|
914
911
|
className: s,
|
|
@@ -918,14 +915,14 @@ var Ie = "1180px", Le = {
|
|
|
918
915
|
i && /* @__PURE__ */ G("div", {
|
|
919
916
|
className: "flex flex-col gap-1",
|
|
920
917
|
children: [/* @__PURE__ */ W("span", {
|
|
921
|
-
className: v(o,
|
|
918
|
+
className: v(o, mt.subtitleText),
|
|
922
919
|
children: e.activeWindowLabel
|
|
923
920
|
}), /* @__PURE__ */ W("p", {
|
|
924
921
|
className: s,
|
|
925
922
|
children: i
|
|
926
923
|
})]
|
|
927
924
|
})
|
|
928
|
-
] }),
|
|
925
|
+
] }), gt = /* @__PURE__ */ function(e) {
|
|
929
926
|
return e.Success = "success", e.Error = "error", e.InProgress = "inProgress", e.Missed = "missed", e;
|
|
930
927
|
}({}), Q = {
|
|
931
928
|
subtitleText: "_subtitleText_6i141_1",
|
|
@@ -935,33 +932,33 @@ var Ie = "1180px", Le = {
|
|
|
935
932
|
currentRun: "_currentRun_6i141_17",
|
|
936
933
|
interactiveRow: "_interactiveRow_6i141_22",
|
|
937
934
|
unreadDot: "_unreadDot_6i141_33"
|
|
938
|
-
},
|
|
935
|
+
}, _t = ({ status: e }) => {
|
|
939
936
|
switch (e) {
|
|
940
|
-
case
|
|
941
|
-
size:
|
|
937
|
+
case gt.Success: return /* @__PURE__ */ W(we, {
|
|
938
|
+
size: D.SM,
|
|
942
939
|
className: Q.successIcon,
|
|
943
940
|
"aria-hidden": !0,
|
|
944
|
-
stroke:
|
|
941
|
+
stroke: O
|
|
945
942
|
});
|
|
946
|
-
case
|
|
947
|
-
size:
|
|
943
|
+
case gt.Error: return /* @__PURE__ */ W(Te, {
|
|
944
|
+
size: D.SM,
|
|
948
945
|
className: Q.errorIcon,
|
|
949
946
|
"aria-hidden": !0,
|
|
950
|
-
stroke:
|
|
947
|
+
stroke: O
|
|
951
948
|
});
|
|
952
|
-
case
|
|
949
|
+
case gt.InProgress: return /* @__PURE__ */ W("span", {
|
|
953
950
|
"aria-hidden": !0,
|
|
954
|
-
children: /* @__PURE__ */ W(ve, { size:
|
|
951
|
+
children: /* @__PURE__ */ W(ve, { size: D.SM })
|
|
955
952
|
});
|
|
956
|
-
case
|
|
957
|
-
size:
|
|
953
|
+
case gt.Missed: return /* @__PURE__ */ W(Se, {
|
|
954
|
+
size: D.SM,
|
|
958
955
|
className: Q.missedIcon,
|
|
959
956
|
"aria-hidden": !0,
|
|
960
|
-
stroke:
|
|
957
|
+
stroke: O
|
|
961
958
|
});
|
|
962
959
|
default: return null;
|
|
963
960
|
}
|
|
964
|
-
},
|
|
961
|
+
}, vt = ({ 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 }) => {
|
|
965
962
|
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 = _({
|
|
966
963
|
"--strhl-success-icon": d?.successIconColor,
|
|
967
964
|
"--strhl-error-icon": d?.errorIconColor,
|
|
@@ -973,7 +970,7 @@ var Ie = "1180px", Le = {
|
|
|
973
970
|
"--strhl-row-focus-bg": u?.rowFocusBackground,
|
|
974
971
|
"--strhl-row-focus-outline": u?.rowFocusOutline
|
|
975
972
|
}), b = (e) => {
|
|
976
|
-
let t = c.runStatusLabels[e.status], n = e.id === o, r = e.status ===
|
|
973
|
+
let t = c.runStatusLabels[e.status], n = e.id === o, r = e.status === gt.Error && e.errorText ? e.errorText : void 0, i = [
|
|
977
974
|
r,
|
|
978
975
|
e.isUnread ? g : void 0,
|
|
979
976
|
n ? c.currentRunLabel : void 0
|
|
@@ -996,16 +993,16 @@ var Ie = "1180px", Le = {
|
|
|
996
993
|
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),
|
|
997
994
|
children: [/* @__PURE__ */ G("span", {
|
|
998
995
|
className: "flex min-w-0 items-center gap-1",
|
|
999
|
-
children: [r ? /* @__PURE__ */ W(
|
|
996
|
+
children: [r ? /* @__PURE__ */ W(R, {
|
|
1000
997
|
tooltip: r,
|
|
1001
998
|
asChild: !0,
|
|
1002
999
|
contentClassName: "max-w-[320px] whitespace-pre-wrap break-words",
|
|
1003
1000
|
children: /* @__PURE__ */ W("span", {
|
|
1004
1001
|
className: "flex shrink-0",
|
|
1005
1002
|
tabIndex: l ? void 0 : 0,
|
|
1006
|
-
children: /* @__PURE__ */ W(
|
|
1003
|
+
children: /* @__PURE__ */ W(_t, { status: e.status })
|
|
1007
1004
|
})
|
|
1008
|
-
}) : /* @__PURE__ */ W(
|
|
1005
|
+
}) : /* @__PURE__ */ W(_t, { status: e.status }), /* @__PURE__ */ G("span", {
|
|
1009
1006
|
className: "flex min-w-0 items-center gap-1",
|
|
1010
1007
|
children: [/* @__PURE__ */ W("span", {
|
|
1011
1008
|
className: v(e.isUnread ? m : p, "truncate"),
|
|
@@ -1026,12 +1023,12 @@ var Ie = "1180px", Le = {
|
|
|
1026
1023
|
}, x = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */ G("li", {
|
|
1027
1024
|
"aria-hidden": "true",
|
|
1028
1025
|
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",
|
|
1029
|
-
children: [/* @__PURE__ */ W(
|
|
1030
|
-
variant:
|
|
1026
|
+
children: [/* @__PURE__ */ W(I, {
|
|
1027
|
+
variant: L.Rectangular,
|
|
1031
1028
|
width: "160px",
|
|
1032
1029
|
height: "16px"
|
|
1033
|
-
}), /* @__PURE__ */ W(
|
|
1034
|
-
variant:
|
|
1030
|
+
}), /* @__PURE__ */ W(I, {
|
|
1031
|
+
variant: L.Rectangular,
|
|
1035
1032
|
width: "16px",
|
|
1036
1033
|
height: "16px",
|
|
1037
1034
|
className: "shrink-0 rounded-full"
|
|
@@ -1049,10 +1046,10 @@ var Ie = "1180px", Le = {
|
|
|
1049
1046
|
style: y,
|
|
1050
1047
|
className: "flex flex-col items-start gap-3",
|
|
1051
1048
|
children: [/* @__PURE__ */ W("p", {
|
|
1052
|
-
role: "
|
|
1049
|
+
role: "status",
|
|
1053
1050
|
className: v(h, Q.subtitleText),
|
|
1054
1051
|
children: c.errorLabel
|
|
1055
|
-
}), /* @__PURE__ */ W(
|
|
1052
|
+
}), /* @__PURE__ */ W(A, {
|
|
1056
1053
|
label: c.retryLabel,
|
|
1057
1054
|
onClick: a
|
|
1058
1055
|
})]
|
|
@@ -1064,7 +1061,7 @@ var Ie = "1180px", Le = {
|
|
|
1064
1061
|
description: c.emptyDescription,
|
|
1065
1062
|
live: !0
|
|
1066
1063
|
})
|
|
1067
|
-
}) : /* @__PURE__ */ G("ul", {
|
|
1064
|
+
}) : /* @__PURE__ */ G(Ie, { children: [/* @__PURE__ */ G("ul", {
|
|
1068
1065
|
style: {
|
|
1069
1066
|
...y,
|
|
1070
1067
|
"--strhl-row-min-height": u?.rowMinHeight
|
|
@@ -1077,47 +1074,52 @@ var Ie = "1180px", Le = {
|
|
|
1077
1074
|
i ? /* @__PURE__ */ G("li", {
|
|
1078
1075
|
className: "flex flex-col items-start gap-3 px-5 py-2",
|
|
1079
1076
|
children: [/* @__PURE__ */ W("p", {
|
|
1080
|
-
role: "alert",
|
|
1081
1077
|
className: v(h, Q.subtitleText),
|
|
1082
1078
|
children: c.errorLabel
|
|
1083
|
-
}), /* @__PURE__ */ W(
|
|
1079
|
+
}), /* @__PURE__ */ W(A, {
|
|
1084
1080
|
label: c.retryLabel,
|
|
1085
1081
|
onClick: a
|
|
1086
1082
|
})]
|
|
1087
1083
|
}) : l
|
|
1088
1084
|
]
|
|
1089
|
-
})
|
|
1090
|
-
|
|
1085
|
+
}), /* @__PURE__ */ W(j, {
|
|
1086
|
+
politeness: N.Assertive,
|
|
1087
|
+
visuallyHidden: !0,
|
|
1088
|
+
as: M.Span,
|
|
1089
|
+
children: i ? c.errorLabel : ""
|
|
1090
|
+
})] });
|
|
1091
|
+
}, yt = {
|
|
1091
1092
|
historyCard: "_historyCard_153p9_4",
|
|
1092
1093
|
subtitleText: "_subtitleText_153p9_8",
|
|
1093
1094
|
cardLayout: "_cardLayout_153p9_13"
|
|
1094
|
-
},
|
|
1095
|
-
let b = e ===
|
|
1095
|
+
}, bt = ({ 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 }) => {
|
|
1096
|
+
let b = e === dt.Card, x = b ? v("sticky bottom-0 z-10 rounded-b-xl px-6 pb-5 pt-2", yt.historyCard) : "pt-2", S = t.historyLoadMoreErrorLabel ?? t.historyErrorLabel, ee = l ? /* @__PURE__ */ G("li", {
|
|
1096
1097
|
className: x,
|
|
1097
|
-
children: [/* @__PURE__ */ W("p", {
|
|
1098
|
-
role: "alert",
|
|
1099
|
-
children: t.historyLoadMoreErrorLabel ?? t.historyErrorLabel
|
|
1100
|
-
}), u && /* @__PURE__ */ W(j, {
|
|
1098
|
+
children: [/* @__PURE__ */ W("p", { children: S }), u && /* @__PURE__ */ W(A, {
|
|
1101
1099
|
label: t.historyRetryLabel,
|
|
1102
1100
|
onClick: u,
|
|
1103
1101
|
disabled: a
|
|
1104
1102
|
})]
|
|
1105
1103
|
}) : f && d && t.historyShowMoreLabel ? /* @__PURE__ */ W("li", {
|
|
1106
1104
|
className: x,
|
|
1107
|
-
children: /* @__PURE__ */ W(
|
|
1105
|
+
children: /* @__PURE__ */ W(A, {
|
|
1108
1106
|
label: t.historyShowMoreLabel,
|
|
1109
1107
|
onClick: f,
|
|
1110
1108
|
disabled: a
|
|
1111
1109
|
})
|
|
1112
|
-
}) : void 0,
|
|
1113
|
-
className: v(m,
|
|
1110
|
+
}) : void 0, C = n ? /* @__PURE__ */ W("p", {
|
|
1111
|
+
className: v(m, yt.subtitleText),
|
|
1114
1112
|
children: n
|
|
1115
|
-
}) : void 0,
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1113
|
+
}) : void 0, te = /* @__PURE__ */ W(j, {
|
|
1114
|
+
politeness: N.Assertive,
|
|
1115
|
+
visuallyHidden: !0,
|
|
1116
|
+
as: M.Span,
|
|
1117
|
+
children: l ? S : ""
|
|
1118
|
+
}), ne = t.historyLoadingMoreLabel ? /* @__PURE__ */ W(j, {
|
|
1119
|
+
visuallyHidden: !0,
|
|
1120
|
+
as: M.Span,
|
|
1119
1121
|
children: a ? t.historyLoadingMoreLabel : ""
|
|
1120
|
-
}) : void 0,
|
|
1122
|
+
}) : void 0, w = /* @__PURE__ */ W(vt, {
|
|
1121
1123
|
items: r,
|
|
1122
1124
|
isLoading: i,
|
|
1123
1125
|
isLoadingMore: a,
|
|
@@ -1134,7 +1136,7 @@ var Ie = "1180px", Le = {
|
|
|
1134
1136
|
runStatusLabels: t.runStatusLabels,
|
|
1135
1137
|
unreadIndicatorLabel: t.unreadIndicatorLabel
|
|
1136
1138
|
},
|
|
1137
|
-
footer:
|
|
1139
|
+
footer: ee,
|
|
1138
1140
|
styles: {
|
|
1139
1141
|
typography: {
|
|
1140
1142
|
runTimestampClassName: m,
|
|
@@ -1148,29 +1150,31 @@ var Ie = "1180px", Le = {
|
|
|
1148
1150
|
}
|
|
1149
1151
|
});
|
|
1150
1152
|
return b ? /* @__PURE__ */ G("div", {
|
|
1151
|
-
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",
|
|
1153
|
+
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", yt.historyCard, yt.cardLayout),
|
|
1152
1154
|
style: { "--st-history-max-height": y?.maxHeight },
|
|
1153
1155
|
children: [/* @__PURE__ */ G("div", {
|
|
1154
|
-
className: v("sticky top-0 z-10 flex flex-col gap-4 rounded-t-xl px-6 pt-5 pb-2",
|
|
1156
|
+
className: v("sticky top-0 z-10 flex flex-col gap-4 rounded-t-xl px-6 pt-5 pb-2", yt.historyCard),
|
|
1155
1157
|
children: [
|
|
1156
1158
|
/* @__PURE__ */ W("h2", {
|
|
1157
1159
|
className: g,
|
|
1158
1160
|
children: t.historyTitle
|
|
1159
1161
|
}),
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
+
C,
|
|
1163
|
+
ne,
|
|
1164
|
+
te
|
|
1162
1165
|
]
|
|
1163
1166
|
}), /* @__PURE__ */ W("div", {
|
|
1164
1167
|
className: "flex flex-1 flex-col gap-4 px-6 pb-2",
|
|
1165
1168
|
style: { "--strhl-row-bleed": "12px" },
|
|
1166
|
-
children:
|
|
1169
|
+
children: w
|
|
1167
1170
|
})]
|
|
1168
1171
|
}) : /* @__PURE__ */ G("div", {
|
|
1169
1172
|
className: "flex flex-col gap-4",
|
|
1170
1173
|
children: [
|
|
1171
|
-
ee,
|
|
1172
1174
|
C,
|
|
1173
|
-
|
|
1175
|
+
ne,
|
|
1176
|
+
te,
|
|
1177
|
+
w
|
|
1174
1178
|
]
|
|
1175
1179
|
});
|
|
1176
1180
|
}, $ = {
|
|
@@ -1186,27 +1190,27 @@ var Ie = "1180px", Le = {
|
|
|
1186
1190
|
actionButton: "_actionButton_hdn5b_75",
|
|
1187
1191
|
roundActionButton: "_roundActionButton_hdn5b_82",
|
|
1188
1192
|
stickyTabs: "_stickyTabs_hdn5b_88"
|
|
1189
|
-
},
|
|
1190
|
-
let { colors:
|
|
1191
|
-
"--stdv-bg":
|
|
1192
|
-
"--stdv-header-border":
|
|
1193
|
-
"--stdv-details-border":
|
|
1194
|
-
"--stdv-subtitle-text":
|
|
1195
|
-
"--stdv-history-bg":
|
|
1196
|
-
}),
|
|
1193
|
+
}, xt = ({ 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: b, onRetry: S, description: ee, modelLabel: C, repeatsLabel: te, activeWindowLabel: ne, completedLabel: w, nextRunLabel: T, instructionsMarkdown: E, skillDisplayNames: ie, renderInstructions: ae, runs: oe, runsIsLoading: se = !1, runsIsLoadingMore: k = !1, runsSkeletonCount: ce = 6, runsError: ue, onRunsRetry: de, runsLoadMoreError: fe, onRunsRetryLoadMore: N, runsHasMore: pe = !1, onRunsLoadMore: me, onRunClick: he, styles: ge, className: F, backIcon: _e, layout: I, historyStyles: L }) => {
|
|
1194
|
+
let { colors: xe, typography: R } = ge ?? {}, Se = R?.titleClassName ?? "dial-h2-text", z = R?.sectionTitleClassName ?? "dial-body-semi-text", we = R?.fieldLabelClassName ?? "dial-tiny-text", Te = R?.fieldValueClassName ?? "dial-small-text", De = R?.runTimestampClassName ?? "dial-small-text", ke = _({
|
|
1195
|
+
"--stdv-bg": xe?.background,
|
|
1196
|
+
"--stdv-header-border": xe?.headerBorder,
|
|
1197
|
+
"--stdv-details-border": xe?.detailsColumnBorder,
|
|
1198
|
+
"--stdv-subtitle-text": xe?.subtitleText,
|
|
1199
|
+
"--stdv-history-bg": xe?.historyCardBackground
|
|
1200
|
+
}), je = x(), [B, V] = Fe(ut.Details), Me = H(), U = o && !i ? e.startNowBusyLabel : void 0, Ne = [
|
|
1197
1201
|
{
|
|
1198
|
-
id:
|
|
1202
|
+
id: ut.Details,
|
|
1199
1203
|
label: e.detailsTitle
|
|
1200
1204
|
},
|
|
1201
1205
|
{
|
|
1202
|
-
id:
|
|
1206
|
+
id: ut.Configuration,
|
|
1203
1207
|
label: e.configurationTitle
|
|
1204
1208
|
},
|
|
1205
1209
|
{
|
|
1206
|
-
id:
|
|
1210
|
+
id: ut.History,
|
|
1207
1211
|
label: e.historyTitle
|
|
1208
1212
|
}
|
|
1209
|
-
], Pe =
|
|
1213
|
+
], Pe = Ne.find((e) => e.id === B)?.label ?? e.detailsTitle, Le = /* @__PURE__ */ W(ht, {
|
|
1210
1214
|
labels: {
|
|
1211
1215
|
descriptionLabel: e.descriptionLabel,
|
|
1212
1216
|
modelLabel: e.modelLabel,
|
|
@@ -1219,14 +1223,14 @@ var Ie = "1180px", Le = {
|
|
|
1219
1223
|
repeatsLabel: te,
|
|
1220
1224
|
activeWindowLabel: ne,
|
|
1221
1225
|
completedLabel: w,
|
|
1222
|
-
fieldLabelClassName:
|
|
1223
|
-
fieldValueClassName:
|
|
1224
|
-
}),
|
|
1226
|
+
fieldLabelClassName: we,
|
|
1227
|
+
fieldValueClassName: Te
|
|
1228
|
+
}), Re = /* @__PURE__ */ W(pt, {
|
|
1225
1229
|
instructionsLabel: e.instructionsLabel,
|
|
1226
1230
|
skillLabel: e.skillLabel,
|
|
1227
|
-
skillDisplayNames:
|
|
1231
|
+
skillDisplayNames: ie,
|
|
1228
1232
|
instructionsMarkdown: E,
|
|
1229
|
-
renderInstructions:
|
|
1233
|
+
renderInstructions: ae,
|
|
1230
1234
|
markdownLabels: {
|
|
1231
1235
|
codeBlockCopyLabel: e.codeBlockCopyLabel,
|
|
1232
1236
|
codeBlockCopiedLabel: e.codeBlockCopiedLabel,
|
|
@@ -1234,8 +1238,8 @@ var Ie = "1180px", Le = {
|
|
|
1234
1238
|
tableScrollRegionAriaLabel: e.tableScrollRegionAriaLabel,
|
|
1235
1239
|
mathScrollRegionAriaLabel: e.mathScrollRegionAriaLabel
|
|
1236
1240
|
},
|
|
1237
|
-
fieldLabelClassName:
|
|
1238
|
-
}),
|
|
1241
|
+
fieldLabelClassName: we
|
|
1242
|
+
}), ze = (t) => /* @__PURE__ */ W(bt, {
|
|
1239
1243
|
variant: t,
|
|
1240
1244
|
labels: {
|
|
1241
1245
|
historyTitle: e.historyTitle,
|
|
@@ -1250,82 +1254,82 @@ var Ie = "1180px", Le = {
|
|
|
1250
1254
|
unreadIndicatorLabel: e.unreadIndicatorLabel
|
|
1251
1255
|
},
|
|
1252
1256
|
nextRunLabel: T,
|
|
1253
|
-
items:
|
|
1254
|
-
isLoading:
|
|
1255
|
-
isLoadingMore:
|
|
1256
|
-
skeletonCount:
|
|
1257
|
-
error:
|
|
1258
|
-
onRetry:
|
|
1259
|
-
loadMoreError:
|
|
1260
|
-
onRetryLoadMore:
|
|
1261
|
-
hasMore:
|
|
1262
|
-
onLoadMore:
|
|
1263
|
-
onRunClick:
|
|
1257
|
+
items: oe,
|
|
1258
|
+
isLoading: se,
|
|
1259
|
+
isLoadingMore: k,
|
|
1260
|
+
skeletonCount: ce,
|
|
1261
|
+
error: ue,
|
|
1262
|
+
onRetry: de,
|
|
1263
|
+
loadMoreError: fe,
|
|
1264
|
+
onRetryLoadMore: N,
|
|
1265
|
+
hasMore: pe,
|
|
1266
|
+
onLoadMore: me,
|
|
1267
|
+
onRunClick: he,
|
|
1264
1268
|
runTimestampClassName: De,
|
|
1265
|
-
sectionTitleClassName:
|
|
1266
|
-
colors:
|
|
1267
|
-
styles:
|
|
1269
|
+
sectionTitleClassName: z,
|
|
1270
|
+
colors: xe,
|
|
1271
|
+
styles: L
|
|
1268
1272
|
});
|
|
1269
1273
|
return /* @__PURE__ */ G("div", {
|
|
1270
1274
|
style: ke,
|
|
1271
|
-
className: v("flex h-full min-h-0 w-full flex-col overflow-hidden", $.container,
|
|
1275
|
+
className: v("flex h-full min-h-0 w-full flex-col overflow-hidden", $.container, F),
|
|
1272
1276
|
children: [
|
|
1273
1277
|
/* @__PURE__ */ G("div", {
|
|
1274
1278
|
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),
|
|
1275
1279
|
children: [/* @__PURE__ */ G("div", {
|
|
1276
1280
|
className: "flex min-w-0 items-center gap-2",
|
|
1277
1281
|
children: [
|
|
1278
|
-
/* @__PURE__ */ W(
|
|
1279
|
-
icon:
|
|
1280
|
-
size:
|
|
1282
|
+
/* @__PURE__ */ W(le, {
|
|
1283
|
+
icon: _e === void 0 ? /* @__PURE__ */ W(Ce, {
|
|
1284
|
+
size: D.LG,
|
|
1281
1285
|
className: "rtl:scale-x-[-1]",
|
|
1282
1286
|
"aria-hidden": !0,
|
|
1283
|
-
stroke:
|
|
1284
|
-
}) :
|
|
1287
|
+
stroke: O
|
|
1288
|
+
}) : _e,
|
|
1285
1289
|
"aria-label": e.backAriaLabel,
|
|
1286
1290
|
onClick: t
|
|
1287
1291
|
}),
|
|
1288
1292
|
/* @__PURE__ */ W("h1", {
|
|
1289
|
-
className: v("truncate", $.desktopTitle,
|
|
1293
|
+
className: v("truncate", $.desktopTitle, Se),
|
|
1290
1294
|
children: g
|
|
1291
1295
|
}),
|
|
1292
1296
|
l && /* @__PURE__ */ W("span", {
|
|
1293
|
-
className: v("shrink-0", $.desktopBadge,
|
|
1297
|
+
className: v("shrink-0", $.desktopBadge, Te, $.subtitleText),
|
|
1294
1298
|
children: e.deletedStateLabel
|
|
1295
1299
|
})
|
|
1296
1300
|
]
|
|
1297
1301
|
}), /* @__PURE__ */ G("div", {
|
|
1298
1302
|
className: v("flex min-w-0 flex-1 flex-wrap items-center justify-end gap-2 desktop:flex-none desktop:flex-nowrap", $.headerActions),
|
|
1299
1303
|
children: [
|
|
1300
|
-
!l && !u && d !== void 0 && /* @__PURE__ */ G(
|
|
1304
|
+
!l && !u && d !== void 0 && /* @__PURE__ */ G(Ie, { children: [/* @__PURE__ */ W(ye, {
|
|
1301
1305
|
id: "scheduled-task-active-switch",
|
|
1302
1306
|
labelProps: { label: e.activeStatusLabel },
|
|
1303
1307
|
isOn: d,
|
|
1304
1308
|
disabled: f || p || c,
|
|
1305
1309
|
onChange: (e) => h?.(e)
|
|
1306
1310
|
}), p && m && /* @__PURE__ */ W("span", {
|
|
1307
|
-
className: v(
|
|
1311
|
+
className: v(Te, $.subtitleText),
|
|
1308
1312
|
children: m
|
|
1309
1313
|
})] }),
|
|
1310
|
-
!l && s && /* @__PURE__ */ W(
|
|
1314
|
+
!l && s && /* @__PURE__ */ W(A, {
|
|
1311
1315
|
variant: re.Danger,
|
|
1312
1316
|
label: e.deleteButtonLabel,
|
|
1313
|
-
iconBefore: /* @__PURE__ */ W(
|
|
1314
|
-
size:
|
|
1317
|
+
iconBefore: /* @__PURE__ */ W(Ae, {
|
|
1318
|
+
size: D.SM,
|
|
1315
1319
|
"aria-hidden": !0,
|
|
1316
|
-
stroke:
|
|
1320
|
+
stroke: O
|
|
1317
1321
|
}),
|
|
1318
1322
|
onClick: s,
|
|
1319
1323
|
disabled: c,
|
|
1320
1324
|
textClassName: $.actionLabel,
|
|
1321
1325
|
className: v("min-h-11 shrink-0", $.actionButton)
|
|
1322
1326
|
}),
|
|
1323
|
-
!l && n && /* @__PURE__ */ W(
|
|
1327
|
+
!l && n && /* @__PURE__ */ W(P, {
|
|
1324
1328
|
label: e.editButtonLabel,
|
|
1325
|
-
iconBefore: /* @__PURE__ */ W(
|
|
1326
|
-
size:
|
|
1329
|
+
iconBefore: /* @__PURE__ */ W(Ee, {
|
|
1330
|
+
size: D.SM,
|
|
1327
1331
|
"aria-hidden": !0,
|
|
1328
|
-
stroke:
|
|
1332
|
+
stroke: O
|
|
1329
1333
|
}),
|
|
1330
1334
|
onClick: n,
|
|
1331
1335
|
disabled: c,
|
|
@@ -1334,21 +1338,21 @@ var Ie = "1180px", Le = {
|
|
|
1334
1338
|
}),
|
|
1335
1339
|
!l && r && e.startNowButtonLabel && /* @__PURE__ */ G("div", {
|
|
1336
1340
|
"aria-busy": i,
|
|
1337
|
-
children: [
|
|
1338
|
-
id:
|
|
1341
|
+
children: [U && /* @__PURE__ */ W("span", {
|
|
1342
|
+
id: Me,
|
|
1339
1343
|
className: "sr-only",
|
|
1340
|
-
children:
|
|
1341
|
-
}), /* @__PURE__ */ W(
|
|
1344
|
+
children: U
|
|
1345
|
+
}), /* @__PURE__ */ W(P, {
|
|
1342
1346
|
label: i ? e.startingLabel ?? e.startNowButtonLabel : e.startNowButtonLabel,
|
|
1343
|
-
iconBefore: /* @__PURE__ */ W(
|
|
1344
|
-
size:
|
|
1347
|
+
iconBefore: /* @__PURE__ */ W(Oe, {
|
|
1348
|
+
size: D.SM,
|
|
1345
1349
|
"aria-hidden": !0,
|
|
1346
|
-
stroke:
|
|
1350
|
+
stroke: O
|
|
1347
1351
|
}),
|
|
1348
1352
|
onClick: r,
|
|
1349
1353
|
disabled: c || i || a || o,
|
|
1350
|
-
"aria-describedby":
|
|
1351
|
-
tooltipProps:
|
|
1354
|
+
"aria-describedby": U ? Me : void 0,
|
|
1355
|
+
tooltipProps: U ? { tooltip: U } : void 0,
|
|
1352
1356
|
textClassName: $.actionLabel,
|
|
1353
1357
|
className: v("min-h-11 shrink-0", $.actionButton, $.roundActionButton)
|
|
1354
1358
|
})]
|
|
@@ -1359,23 +1363,21 @@ var Ie = "1180px", Le = {
|
|
|
1359
1363
|
/* @__PURE__ */ G("div", {
|
|
1360
1364
|
className: v("min-w-0 items-center gap-2 px-4 py-3", $.mobileTitleRow),
|
|
1361
1365
|
children: [/* @__PURE__ */ W("h1", {
|
|
1362
|
-
className: v("truncate",
|
|
1366
|
+
className: v("truncate", Se),
|
|
1363
1367
|
children: g
|
|
1364
1368
|
}), l && /* @__PURE__ */ W("span", {
|
|
1365
|
-
className: v("shrink-0",
|
|
1369
|
+
className: v("shrink-0", Te, $.subtitleText),
|
|
1366
1370
|
children: e.deletedStateLabel
|
|
1367
1371
|
})]
|
|
1368
1372
|
}),
|
|
1369
|
-
e.activeStatusAnnouncement != null && /* @__PURE__ */ W(
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
className: "sr-only",
|
|
1373
|
+
e.activeStatusAnnouncement != null && /* @__PURE__ */ W(j, {
|
|
1374
|
+
visuallyHidden: !0,
|
|
1375
|
+
as: M.Span,
|
|
1373
1376
|
children: e.activeStatusAnnouncement
|
|
1374
1377
|
}),
|
|
1375
|
-
e.startStatusAnnouncement != null && /* @__PURE__ */ W(
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
className: "sr-only",
|
|
1378
|
+
e.startStatusAnnouncement != null && /* @__PURE__ */ W(j, {
|
|
1379
|
+
visuallyHidden: !0,
|
|
1380
|
+
as: M.Span,
|
|
1379
1381
|
children: e.startStatusAnnouncement
|
|
1380
1382
|
}),
|
|
1381
1383
|
y && /* @__PURE__ */ W("div", {
|
|
@@ -1385,37 +1387,37 @@ var Ie = "1180px", Le = {
|
|
|
1385
1387
|
!y && b && /* @__PURE__ */ G("div", {
|
|
1386
1388
|
className: "flex flex-1 flex-col items-center justify-center gap-3",
|
|
1387
1389
|
children: [/* @__PURE__ */ W("p", {
|
|
1388
|
-
className: v(
|
|
1390
|
+
className: v(Te, $.subtitleText),
|
|
1389
1391
|
children: e.errorLabel
|
|
1390
|
-
}), /* @__PURE__ */ W(
|
|
1392
|
+
}), /* @__PURE__ */ W(A, {
|
|
1391
1393
|
label: e.retryLabel,
|
|
1392
1394
|
onClick: S
|
|
1393
1395
|
})]
|
|
1394
1396
|
}),
|
|
1395
|
-
!y && !b && (
|
|
1397
|
+
!y && !b && (je ? /* @__PURE__ */ G("div", {
|
|
1396
1398
|
className: "flex min-h-0 flex-1 flex-col overflow-y-auto",
|
|
1397
1399
|
children: [/* @__PURE__ */ W("div", {
|
|
1398
1400
|
className: v("sticky top-0 z-10", $.stickyTabs),
|
|
1399
1401
|
children: /* @__PURE__ */ W(be, {
|
|
1400
1402
|
ariaLabel: e.tabsAriaLabel ?? "Scheduled task sections",
|
|
1401
1403
|
className: "px-4",
|
|
1402
|
-
tabs:
|
|
1403
|
-
activeTabId:
|
|
1404
|
-
onTabChange:
|
|
1404
|
+
tabs: Ne,
|
|
1405
|
+
activeTabId: B,
|
|
1406
|
+
onTabChange: V
|
|
1405
1407
|
})
|
|
1406
1408
|
}), /* @__PURE__ */ W("div", {
|
|
1407
1409
|
role: "tabpanel",
|
|
1408
1410
|
"aria-label": Pe,
|
|
1409
1411
|
className: "flex flex-1 flex-col gap-5 px-4 py-6",
|
|
1410
|
-
children:
|
|
1412
|
+
children: B === ut.Configuration ? Re : B === ut.History ? ze(dt.Flow) : Le
|
|
1411
1413
|
})]
|
|
1412
1414
|
}) : /* @__PURE__ */ G("div", {
|
|
1413
1415
|
style: {
|
|
1414
1416
|
flexDirection: "row",
|
|
1415
|
-
"--st-details-width":
|
|
1416
|
-
"--st-history-width":
|
|
1417
|
-
"--st-history-max-height":
|
|
1418
|
-
"--st-configuration-min-width":
|
|
1417
|
+
"--st-details-width": I?.detailsWidth,
|
|
1418
|
+
"--st-history-width": I?.historyWidth,
|
|
1419
|
+
"--st-history-max-height": I?.historyMaxHeight,
|
|
1420
|
+
"--st-configuration-min-width": I?.configurationMinWidth
|
|
1419
1421
|
},
|
|
1420
1422
|
className: "flex min-h-0 flex-1 overflow-y-auto desktop:overflow-hidden",
|
|
1421
1423
|
children: [
|
|
@@ -1423,39 +1425,39 @@ var Ie = "1180px", Le = {
|
|
|
1423
1425
|
role: "group",
|
|
1424
1426
|
"aria-label": e.detailsTitle,
|
|
1425
1427
|
style: {
|
|
1426
|
-
flex: `0 1 ${
|
|
1428
|
+
flex: `0 1 ${I?.detailsWidth ?? "360px"}`,
|
|
1427
1429
|
maxWidth: "100%"
|
|
1428
1430
|
},
|
|
1429
1431
|
className: v("flex min-h-0 w-full flex-col gap-5 overflow-y-auto border-e px-8 py-6", $.detailsColumn),
|
|
1430
1432
|
children: [/* @__PURE__ */ W("h2", {
|
|
1431
|
-
className:
|
|
1433
|
+
className: z,
|
|
1432
1434
|
children: e.detailsTitle
|
|
1433
|
-
}),
|
|
1435
|
+
}), Le]
|
|
1434
1436
|
}),
|
|
1435
1437
|
/* @__PURE__ */ G("div", {
|
|
1436
1438
|
style: {
|
|
1437
|
-
flex: `1 1 ${
|
|
1439
|
+
flex: `1 1 ${I?.configurationMinWidth ?? "320px"}`,
|
|
1438
1440
|
minWidth: 0
|
|
1439
1441
|
},
|
|
1440
1442
|
className: "flex min-h-0 w-full min-w-0 flex-col gap-5 overflow-y-auto px-8 py-6",
|
|
1441
1443
|
children: [/* @__PURE__ */ W("h2", {
|
|
1442
|
-
className:
|
|
1444
|
+
className: z,
|
|
1443
1445
|
children: e.configurationTitle
|
|
1444
|
-
}),
|
|
1446
|
+
}), Re]
|
|
1445
1447
|
}),
|
|
1446
1448
|
/* @__PURE__ */ W("div", {
|
|
1447
1449
|
style: {
|
|
1448
|
-
flex: `0 1 calc(${
|
|
1450
|
+
flex: `0 1 calc(${I?.historyWidth ?? "360px"} + 48px)`,
|
|
1449
1451
|
minWidth: 0
|
|
1450
1452
|
},
|
|
1451
1453
|
className: "flex min-h-0 w-full items-start justify-center overflow-y-auto p-6",
|
|
1452
|
-
children:
|
|
1454
|
+
children: ze(dt.Card)
|
|
1453
1455
|
})
|
|
1454
1456
|
]
|
|
1455
1457
|
}))
|
|
1456
1458
|
]
|
|
1457
1459
|
});
|
|
1458
|
-
},
|
|
1460
|
+
}, St = {
|
|
1459
1461
|
h1: "dial-small-semi-text mb-3 mt-6 first:mt-0 [text-wrap:balance]",
|
|
1460
1462
|
h2: "dial-small-semi-text mb-2 mt-5 first:mt-0 [text-wrap:balance]",
|
|
1461
1463
|
h3: "dial-small-semi-text mb-2 mt-4 first:mt-0 [text-wrap:balance]",
|
|
@@ -1470,7 +1472,7 @@ var Ie = "1180px", Le = {
|
|
|
1470
1472
|
link: "break-words [overflow-wrap:anywhere]",
|
|
1471
1473
|
tableWrapper: "my-4",
|
|
1472
1474
|
mathBlock: "my-4"
|
|
1473
|
-
},
|
|
1475
|
+
}, Ct = ({ modelLabel: e, skillLabel: t, skillDisplayNames: n, instructionsLabel: r, modelDisplayName: i, instructionsMarkdown: a, renderInstructions: o, instructionsClassNames: s = St, markdownLabels: c, styles: l }) => {
|
|
1474
1476
|
let u = l?.typography?.fieldLabelClassName ?? "dial-tiny-text text-secondary", d = l?.typography?.fieldValueClassName ?? "dial-small-text";
|
|
1475
1477
|
return /* @__PURE__ */ G("div", {
|
|
1476
1478
|
className: "flex flex-col gap-3",
|
|
@@ -1511,17 +1513,17 @@ var Ie = "1180px", Le = {
|
|
|
1511
1513
|
})
|
|
1512
1514
|
]
|
|
1513
1515
|
});
|
|
1514
|
-
},
|
|
1516
|
+
}, wt = ({ className: e, children: t }) => /* @__PURE__ */ W("span", {
|
|
1515
1517
|
className: v(e, "block truncate py-1"),
|
|
1516
1518
|
children: t
|
|
1517
|
-
}),
|
|
1518
|
-
let [g, _] =
|
|
1519
|
-
|
|
1519
|
+
}), Tt = ({ 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" }) => {
|
|
1520
|
+
let [g, _] = Fe(!0);
|
|
1521
|
+
Me(() => {
|
|
1520
1522
|
_(!0);
|
|
1521
1523
|
}, [e]);
|
|
1522
1524
|
let v = c && !n && l && f.showMoreLabel ? /* @__PURE__ */ W("li", {
|
|
1523
1525
|
className: "pt-2",
|
|
1524
|
-
children: /* @__PURE__ */ W(
|
|
1526
|
+
children: /* @__PURE__ */ W(A, {
|
|
1525
1527
|
variant: re.Primary,
|
|
1526
1528
|
label: f.showMoreLabel,
|
|
1527
1529
|
onClick: l,
|
|
@@ -1529,7 +1531,7 @@ var Ie = "1180px", Le = {
|
|
|
1529
1531
|
})
|
|
1530
1532
|
}) : void 0;
|
|
1531
1533
|
return /* @__PURE__ */ W(C, {
|
|
1532
|
-
title: /* @__PURE__ */ W(
|
|
1534
|
+
title: /* @__PURE__ */ W(wt, {
|
|
1533
1535
|
className: p,
|
|
1534
1536
|
children: f.title
|
|
1535
1537
|
}),
|
|
@@ -1537,10 +1539,10 @@ var Ie = "1180px", Le = {
|
|
|
1537
1539
|
onToggle: _,
|
|
1538
1540
|
contentClassName: m,
|
|
1539
1541
|
children: s ? /* @__PURE__ */ W("p", {
|
|
1540
|
-
role: "
|
|
1542
|
+
role: "status",
|
|
1541
1543
|
className: h,
|
|
1542
1544
|
children: f.unavailableLabel
|
|
1543
|
-
}) : /* @__PURE__ */ W(
|
|
1545
|
+
}) : /* @__PURE__ */ W(vt, {
|
|
1544
1546
|
items: t,
|
|
1545
1547
|
isLoading: n,
|
|
1546
1548
|
isLoadingMore: r,
|
|
@@ -1561,24 +1563,24 @@ var Ie = "1180px", Le = {
|
|
|
1561
1563
|
}
|
|
1562
1564
|
})
|
|
1563
1565
|
});
|
|
1564
|
-
},
|
|
1566
|
+
}, Et = /* @__PURE__ */ function(e) {
|
|
1565
1567
|
return e.Ready = "ready", e.Error = "error", e.Unavailable = "unavailable", e;
|
|
1566
|
-
}({}),
|
|
1567
|
-
let [p, m] =
|
|
1568
|
-
|
|
1568
|
+
}({}), Dt = ({ 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" }) => {
|
|
1569
|
+
let [p, m] = Fe(!1);
|
|
1570
|
+
Me(() => {
|
|
1569
1571
|
m(!1);
|
|
1570
1572
|
}, [e]);
|
|
1571
1573
|
let h = t === "error" || t === "unavailable" ? /* @__PURE__ */ G("div", {
|
|
1572
1574
|
className: "flex flex-col items-start gap-2",
|
|
1573
1575
|
children: [/* @__PURE__ */ W("p", {
|
|
1574
|
-
role: "
|
|
1576
|
+
role: "status",
|
|
1575
1577
|
className: f,
|
|
1576
1578
|
children: u.unavailableLabel
|
|
1577
|
-
}), t === "error" && n && /* @__PURE__ */ W(
|
|
1579
|
+
}), t === "error" && n && /* @__PURE__ */ W(A, {
|
|
1578
1580
|
label: u.retryLabel,
|
|
1579
1581
|
onClick: n
|
|
1580
1582
|
})]
|
|
1581
|
-
}) : /* @__PURE__ */ W(
|
|
1583
|
+
}) : /* @__PURE__ */ W(Ct, {
|
|
1582
1584
|
modelLabel: u.modelLabel,
|
|
1583
1585
|
instructionsLabel: u.instructionsLabel,
|
|
1584
1586
|
skillLabel: u.skillLabel,
|
|
@@ -1591,7 +1593,7 @@ var Ie = "1180px", Le = {
|
|
|
1591
1593
|
styles: l
|
|
1592
1594
|
});
|
|
1593
1595
|
return /* @__PURE__ */ W(C, {
|
|
1594
|
-
title: /* @__PURE__ */ W(
|
|
1596
|
+
title: /* @__PURE__ */ W(wt, {
|
|
1595
1597
|
className: d,
|
|
1596
1598
|
children: u.title
|
|
1597
1599
|
}),
|
|
@@ -1599,9 +1601,9 @@ var Ie = "1180px", Le = {
|
|
|
1599
1601
|
onToggle: m,
|
|
1600
1602
|
children: h
|
|
1601
1603
|
});
|
|
1602
|
-
},
|
|
1604
|
+
}, Ot = ({ taskName: e, icon: t, typeLabel: n, body: r, pendingLabel: i, isDeleting: a = !1, styles: o, ...s }) => /* @__PURE__ */ W(l, {
|
|
1603
1605
|
...s,
|
|
1604
|
-
variant:
|
|
1606
|
+
variant: ae.Danger,
|
|
1605
1607
|
popupClassName: o?.popupClassName,
|
|
1606
1608
|
titleClassName: o?.titleClassName ?? "dial-body-semi-text",
|
|
1607
1609
|
messageClassName: o?.messageClassName ?? "dial-body-paragraph-text",
|
|
@@ -1624,4 +1626,4 @@ var Ie = "1180px", Le = {
|
|
|
1624
1626
|
})
|
|
1625
1627
|
});
|
|
1626
1628
|
//#endregion
|
|
1627
|
-
export { c as DESCRIPTION_MAX_LENGTH,
|
|
1629
|
+
export { c as DESCRIPTION_MAX_LENGTH, Be as SCHEDULED_TASKS_CLASS, ze as SCHEDULED_TASKS_GRID_DEFAULT_MAX_WIDTH, We as ScheduledTaskCard, Ye as ScheduledTaskCardGrid, Je as ScheduledTaskCardSkeleton, Dt as ScheduledTaskConversationDetailsSection, Et as ScheduledTaskConversationDetailsState, Tt as ScheduledTaskConversationHistorySection, lt as ScheduledTaskCreateForm, Ot as ScheduledTaskDeleteConfirmation, xt as ScheduledTaskDetailView, Ct as ScheduledTaskDetailsSummary, bt as ScheduledTaskHistorySection, q as ScheduledTaskPresentationStatus, r as ScheduledTaskRepeat, vt as ScheduledTaskRunHistoryList, gt as ScheduledTaskRunStatus, K as ScheduledTaskStatus, Qe as ScheduledTasks, $e as ScheduledTasksSortKey, s as TIME_OF_DAY_PATTERN, Ve as getScheduledTaskStatus, nt as hasScheduledTaskFormChanges };
|