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