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