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