@epam/ai-dial-scheduled-tasks 1.3.0-dev.282 → 1.3.0-dev.288
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/ScheduledTaskRunAtField/ScheduledTaskRunAtField.d.ts.map +1 -1
- package/components/ScheduledTaskRunAtTimeField/ScheduledTaskRunAtTimeField.d.ts +5 -0
- package/components/ScheduledTaskRunAtTimeField/ScheduledTaskRunAtTimeField.d.ts.map +1 -0
- package/index.css +1 -1
- package/index.js +612 -595
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./calendar-value-BDmsi-IR.js";
|
|
2
2
|
import { COMPACT_MARKDOWN_CLASS_NAMES as l, ConfirmationDialog 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, ResourceSummary as g, TextRefinementField as _, buildCssVars as v, mergeClasses as y, useAvailableHeightCap as b, useControlErrorAssociation as x, useIsMobile as ee, useTextRefinement as te, useUnsavedChangesGuard as S } from "@epam/ai-dial-chat-shared";
|
|
3
|
-
import { Accordion as C, Button as w, ButtonAppearance as ne, ButtonDropdown as re, ButtonVariant as ie, Calendar as
|
|
4
|
-
import { IconAlertTriangle as
|
|
5
|
-
import { Suspense as
|
|
6
|
-
import { Fragment as
|
|
7
|
-
import { BuilderFormContainer as
|
|
8
|
-
import { LazyMarkdownEditor as
|
|
3
|
+
import { Accordion as C, Button as w, ButtonAppearance as ne, ButtonDropdown as re, ButtonVariant as ie, Calendar as T, CalendarMode as ae, CardShell as E, ConfirmationPopupVariant as oe, DIAL_ICON_SIZE as D, DIAL_KIT_ICON_STROKE as O, ElementSize as se, EllipsisTooltip as ce, ErrorMessageNotification as le, ErrorText as k, FolderPath as ue, GhostButton as A, GhostIconButton as j, Highlight as de, Input as fe, Label as pe, LinkButton as me, LiveRegion as M, LiveRegionElement as N, LiveRegionPoliteness as he, MenuItemMark as ge, NeutralButton as P, NoDataContent as _e, Notification as F, NotificationSurface as I, NotificationType as L, NotificationVariant as ve, NumberInput as R, PrimaryButton as ye, Search as z, Select as be, Skeleton as B, SkeletonVariant as V, Spinner as xe, Switch as Se, Tabs as Ce, Textarea as we, Tooltip as Te, WarningMessageNotification as Ee } from "@epam/ai-dial-ui-kit";
|
|
4
|
+
import { IconAlertTriangle as De, IconArrowNarrowLeft as Oe, IconArrowRight as H, IconArrowsSort as U, IconCheck as W, IconCircleX as ke, IconPencilMinus as Ae, IconPlayerPause as je, IconPlayerPlay as Me, IconPlus as G, IconTrashX as Ne } from "@tabler/icons-react";
|
|
5
|
+
import { Suspense as Pe, lazy as Fe, memo as Ie, useCallback as Le, useEffect as Re, useId as K, useLayoutEffect as ze, useMemo as Be, useRef as Ve, useState as He } from "react";
|
|
6
|
+
import { Fragment as q, jsx as J, jsxs as Y } from "react/jsx-runtime";
|
|
7
|
+
import { BuilderFormContainer as Ue } from "@epam/ai-dial-builder-form";
|
|
8
|
+
import { LazyMarkdownEditor as We } from "@epam/ai-dial-ui-kit/editors";
|
|
9
9
|
//#region src/models/scheduled-task-card-grid-props.ts
|
|
10
|
-
var
|
|
10
|
+
var Ge = "1180px", Ke = {
|
|
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
|
+
}, X = /* @__PURE__ */ function(e) {
|
|
15
15
|
return e.Scheduled = "scheduled", e.Paused = "paused", e.Completed = "completed", e;
|
|
16
|
-
}({}),
|
|
16
|
+
}({}), qe = /* @__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
|
-
case
|
|
21
|
-
case
|
|
22
|
-
case
|
|
20
|
+
case qe.Active: return X.Scheduled;
|
|
21
|
+
case qe.Paused: return X.Paused;
|
|
22
|
+
case qe.Completed: return X.Completed;
|
|
23
23
|
}
|
|
24
|
-
return e.isCompleted ?
|
|
25
|
-
},
|
|
24
|
+
return e.isCompleted ? X.Completed : e.isActive === !1 ? X.Paused : X.Scheduled;
|
|
25
|
+
}, Ye = {
|
|
26
26
|
schedulePill: "_schedulePill_1cwco_1",
|
|
27
27
|
scheduleLabel: "_scheduleLabel_1cwco_6",
|
|
28
28
|
pausedPill: "_pausedPill_1cwco_10",
|
|
29
29
|
pausedLabel: "_pausedLabel_1cwco_15",
|
|
30
30
|
completedPill: "_completedPill_1cwco_19",
|
|
31
31
|
completedLabel: "_completedLabel_1cwco_24"
|
|
32
|
-
},
|
|
33
|
-
[
|
|
32
|
+
}, Xe = {
|
|
33
|
+
[X.Scheduled]: {
|
|
34
34
|
pillClassName: "inline-block rounded-lg border px-2 py-1",
|
|
35
|
-
wrapperClassName:
|
|
36
|
-
labelClassName:
|
|
35
|
+
wrapperClassName: Ye.schedulePill,
|
|
36
|
+
labelClassName: Ye.scheduleLabel
|
|
37
37
|
},
|
|
38
|
-
[
|
|
38
|
+
[X.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: Ye.pausedPill,
|
|
41
|
+
labelClassName: Ye.pausedLabel,
|
|
42
|
+
renderIcon: () => /* @__PURE__ */ J(je, {
|
|
43
|
+
size: D.SM,
|
|
44
44
|
"aria-hidden": !0,
|
|
45
|
-
stroke:
|
|
45
|
+
stroke: O
|
|
46
46
|
})
|
|
47
47
|
},
|
|
48
|
-
[
|
|
48
|
+
[X.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: Ye.completedPill,
|
|
51
|
+
labelClassName: Ye.completedLabel,
|
|
52
|
+
renderIcon: () => /* @__PURE__ */ J(W, {
|
|
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__ */
|
|
58
|
+
}, Ze = ({ status: e, text: t, textClassName: n = "dial-tiny-text", className: r }) => {
|
|
59
|
+
let { pillClassName: i, wrapperClassName: a, labelClassName: o, renderIcon: s } = Xe[e];
|
|
60
|
+
return /* @__PURE__ */ Y("span", {
|
|
61
61
|
className: y(i, n, a, o, r),
|
|
62
62
|
children: [s && s(), t]
|
|
63
63
|
});
|
|
64
|
-
},
|
|
64
|
+
}, Qe = {
|
|
65
65
|
title: "_title_7p2ui_2",
|
|
66
66
|
description: "_description_7p2ui_6",
|
|
67
67
|
locationLabel: "_locationLabel_7p2ui_10",
|
|
@@ -69,17 +69,17 @@ var Ke = "1180px", qe = {
|
|
|
69
69
|
newBadge: "_newBadge_7p2ui_18",
|
|
70
70
|
locationDivider: "_locationDivider_7p2ui_23",
|
|
71
71
|
card: "_card_7p2ui_34"
|
|
72
|
-
},
|
|
73
|
-
let o = ee(), s = r?.newBadgeLabel ?? "NEW", c = r?.pausedBadgeLabel ?? "Paused", l = r?.completedBadgeLabel ?? "Completed", { colors: u, typography: d } = i ?? {}, f = d?.titleClassName ?? "dial-body-semi-text", p = d?.descriptionClassName ?? "dial-small-paragraph-text", m = d?.scheduleLabelClassName ?? "dial-tiny-text", h = d?.pausedBadgeClassName ?? "dial-tiny-text", g = d?.completedBadgeClassName ?? "dial-tiny-text", _ = d?.locationLabelClassName ?? "dial-tiny-text", b = d?.locationLeafClassName ?? "dial-tiny-semi-text", x = d?.newBadgeClassName ?? "dial-tiny-semi-text", te =
|
|
74
|
-
[
|
|
72
|
+
}, $e = ({ item: e, searchQuery: t = "", onCardClick: n, labels: r, styles: i, className: a }) => {
|
|
73
|
+
let o = ee(), s = r?.newBadgeLabel ?? "NEW", c = r?.pausedBadgeLabel ?? "Paused", l = r?.completedBadgeLabel ?? "Completed", { colors: u, typography: d } = i ?? {}, f = d?.titleClassName ?? "dial-body-semi-text", p = d?.descriptionClassName ?? "dial-small-paragraph-text", m = d?.scheduleLabelClassName ?? "dial-tiny-text", h = d?.pausedBadgeClassName ?? "dial-tiny-text", g = d?.completedBadgeClassName ?? "dial-tiny-text", _ = d?.locationLabelClassName ?? "dial-tiny-text", b = d?.locationLeafClassName ?? "dial-tiny-semi-text", x = d?.newBadgeClassName ?? "dial-tiny-semi-text", te = Je(e), { text: S, textClassName: C } = {
|
|
74
|
+
[X.Scheduled]: {
|
|
75
75
|
text: e.scheduleLabel,
|
|
76
76
|
textClassName: m
|
|
77
77
|
},
|
|
78
|
-
[
|
|
78
|
+
[X.Paused]: {
|
|
79
79
|
text: c,
|
|
80
80
|
textClassName: h
|
|
81
81
|
},
|
|
82
|
-
[
|
|
82
|
+
[X.Completed]: {
|
|
83
83
|
text: l,
|
|
84
84
|
textClassName: g
|
|
85
85
|
}
|
|
@@ -107,84 +107,84 @@ var Ke = "1180px", qe = {
|
|
|
107
107
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e.id));
|
|
108
108
|
}
|
|
109
109
|
} : {};
|
|
110
|
-
return /* @__PURE__ */
|
|
110
|
+
return /* @__PURE__ */ Y(E, {
|
|
111
111
|
role: n ? "button" : "group",
|
|
112
112
|
"aria-label": e.displayName,
|
|
113
113
|
style: w,
|
|
114
|
-
className: y("h-(--st-card-height,232px) min-w-0",
|
|
114
|
+
className: y("h-(--st-card-height,232px) min-w-0", Qe.card, n && "cursor-pointer", a, Ke.card),
|
|
115
115
|
...ne,
|
|
116
116
|
children: [
|
|
117
|
-
/* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ Y("div", {
|
|
118
118
|
className: "flex min-w-0 shrink-0 items-start gap-2 desktop:items-center",
|
|
119
|
-
children: [/* @__PURE__ */
|
|
119
|
+
children: [/* @__PURE__ */ J(de, {
|
|
120
120
|
text: e.displayName,
|
|
121
121
|
query: t,
|
|
122
122
|
maxLines: o ? 2 : 1,
|
|
123
|
-
className: y(f,
|
|
124
|
-
}), e.isNew && /* @__PURE__ */
|
|
125
|
-
className: y("shrink-0 rounded-full px-2 py-0.5", x,
|
|
123
|
+
className: y(f, Qe.title)
|
|
124
|
+
}), e.isNew && /* @__PURE__ */ J("span", {
|
|
125
|
+
className: y("shrink-0 rounded-full px-2 py-0.5", x, Qe.newBadge),
|
|
126
126
|
children: s
|
|
127
127
|
})]
|
|
128
128
|
}),
|
|
129
|
-
e.descriptionPreview && /* @__PURE__ */
|
|
130
|
-
className: y("line-clamp-3 min-h-0 min-w-0 overflow-hidden wrap-anywhere", p,
|
|
129
|
+
e.descriptionPreview && /* @__PURE__ */ J("p", {
|
|
130
|
+
className: y("line-clamp-3 min-h-0 min-w-0 overflow-hidden wrap-anywhere", p, Qe.description),
|
|
131
131
|
children: e.descriptionPreview
|
|
132
132
|
}),
|
|
133
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ Y("div", {
|
|
134
134
|
className: "mt-auto flex shrink-0 flex-col gap-3",
|
|
135
|
-
children: [/* @__PURE__ */
|
|
135
|
+
children: [/* @__PURE__ */ J("div", {
|
|
136
136
|
className: "flex min-h-[28px] items-center",
|
|
137
|
-
children: /* @__PURE__ */
|
|
137
|
+
children: /* @__PURE__ */ J(Ze, {
|
|
138
138
|
status: te,
|
|
139
139
|
text: S,
|
|
140
140
|
textClassName: C
|
|
141
141
|
})
|
|
142
|
-
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */
|
|
142
|
+
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */ J(ue, {
|
|
143
143
|
segments: e.locationSegments,
|
|
144
|
-
labelClassName: y(_,
|
|
145
|
-
leafClassName: y(b,
|
|
146
|
-
className: y("pt-3",
|
|
144
|
+
labelClassName: y(_, Qe.locationLabel),
|
|
145
|
+
leafClassName: y(b, Qe.locationLeaf),
|
|
146
|
+
className: y("pt-3", Qe.locationDivider)
|
|
147
147
|
})]
|
|
148
148
|
})
|
|
149
149
|
]
|
|
150
150
|
});
|
|
151
|
-
},
|
|
151
|
+
}, et = { card: "_card_18ivt_1" }, tt = [
|
|
152
152
|
"100%",
|
|
153
153
|
"100%",
|
|
154
154
|
"61%"
|
|
155
|
-
],
|
|
155
|
+
], nt = "var(--stcs-skeleton-bg)", rt = ({ styles: e }) => {
|
|
156
156
|
let t = v({ "--stcs-skeleton-bg": e?.colors?.skeletonColor });
|
|
157
|
-
return /* @__PURE__ */
|
|
157
|
+
return /* @__PURE__ */ Y(E, {
|
|
158
158
|
"aria-hidden": !0,
|
|
159
159
|
style: t,
|
|
160
|
-
className: y("h-(--st-card-height,232px)",
|
|
160
|
+
className: y("h-(--st-card-height,232px)", et.card),
|
|
161
161
|
children: [
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
-
variant:
|
|
162
|
+
/* @__PURE__ */ J(B, {
|
|
163
|
+
variant: V.Rectangular,
|
|
164
164
|
width: "60%",
|
|
165
165
|
height: "20px",
|
|
166
|
-
color:
|
|
166
|
+
color: nt,
|
|
167
167
|
className: "shrink-0"
|
|
168
168
|
}),
|
|
169
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ J("div", {
|
|
170
170
|
className: "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden",
|
|
171
|
-
children:
|
|
172
|
-
variant:
|
|
171
|
+
children: tt.map((e, t) => /* @__PURE__ */ J(B, {
|
|
172
|
+
variant: V.Rectangular,
|
|
173
173
|
width: e,
|
|
174
174
|
height: "16px",
|
|
175
|
-
color:
|
|
175
|
+
color: nt
|
|
176
176
|
}, t))
|
|
177
177
|
}),
|
|
178
|
-
/* @__PURE__ */
|
|
179
|
-
variant:
|
|
178
|
+
/* @__PURE__ */ J(B, {
|
|
179
|
+
variant: V.Rectangular,
|
|
180
180
|
width: "110px",
|
|
181
181
|
height: "28px",
|
|
182
|
-
color:
|
|
182
|
+
color: nt,
|
|
183
183
|
className: "shrink-0 rounded-lg"
|
|
184
184
|
})
|
|
185
185
|
]
|
|
186
186
|
});
|
|
187
|
-
},
|
|
187
|
+
}, it = ({ items: e, searchQuery: t, onCardClick: n, labels: r, cardStyles: i, trailingSkeletonCount: a = 0, skeletonStyles: o, layout: s }) => /* @__PURE__ */ Y("div", {
|
|
188
188
|
style: {
|
|
189
189
|
"--st-grid-min-card-width": s?.minCardWidth,
|
|
190
190
|
"--st-grid-gap": s?.gap,
|
|
@@ -194,15 +194,15 @@ var Ke = "1180px", qe = {
|
|
|
194
194
|
gap: "var(--st-grid-gap, 20px)",
|
|
195
195
|
gridTemplateColumns: "repeat(auto-fill, minmax(min(100%, max(var(--st-grid-min-card-width, 320px), calc((100% - (var(--st-grid-columns) - 1) * var(--st-grid-gap, 20px)) / var(--st-grid-columns)))), 1fr))"
|
|
196
196
|
},
|
|
197
|
-
className: y("mx-auto grid w-full min-w-0",
|
|
198
|
-
children: [e.map((e) => /* @__PURE__ */
|
|
197
|
+
className: y("mx-auto grid w-full min-w-0", Ke.cardGrid),
|
|
198
|
+
children: [e.map((e) => /* @__PURE__ */ J($e, {
|
|
199
199
|
item: e,
|
|
200
200
|
searchQuery: t,
|
|
201
201
|
onCardClick: n,
|
|
202
202
|
labels: r,
|
|
203
203
|
styles: i
|
|
204
|
-
}, e.id)), Array.from({ length: a }, (e, t) => /* @__PURE__ */
|
|
205
|
-
}),
|
|
204
|
+
}, e.id)), Array.from({ length: a }, (e, t) => /* @__PURE__ */ J(rt, { styles: o }, `skeleton-${t}`))]
|
|
205
|
+
}), at = {
|
|
206
206
|
container: "_container_3vz4t_2",
|
|
207
207
|
subtitle: "_subtitle_3vz4t_6",
|
|
208
208
|
createButtonLabel: "_createButtonLabel_3vz4t_10",
|
|
@@ -216,34 +216,34 @@ var Ke = "1180px", qe = {
|
|
|
216
216
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
217
217
|
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : st(e.parentElement);
|
|
218
218
|
}, ct = ({ 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: _, sortIcon: b, className: x, gridLayout: ee, cardStyles: te, loadMoreError: S, onRetryLoadMore: C }) => {
|
|
219
|
-
let { colors: w, typography:
|
|
219
|
+
let { colors: w, typography: T } = _ ?? {}, ae = T?.titleClassName ?? "dial-h1-text", E = T?.subtitleClassName ?? "dial-body-text", oe = v({
|
|
220
220
|
"--st-bg": w?.background,
|
|
221
221
|
"--st-subtitle-text": w?.subtitleText,
|
|
222
222
|
"--st-sort-text": w?.sortButtonText
|
|
223
|
-
}),
|
|
223
|
+
}), ce = (e) => {
|
|
224
224
|
r(e ?? "");
|
|
225
|
-
}, [
|
|
226
|
-
|
|
227
|
-
}, []),
|
|
228
|
-
|
|
225
|
+
}, [k, ue] = He(!1), [j, de] = He(!1), fe = Ve(null), pe = Le(() => {
|
|
226
|
+
de(!0);
|
|
227
|
+
}, []), me = Le(() => {
|
|
228
|
+
de(!1);
|
|
229
229
|
}, []);
|
|
230
|
-
|
|
231
|
-
let e =
|
|
232
|
-
|
|
233
|
-
}, [
|
|
234
|
-
let
|
|
230
|
+
ze(() => {
|
|
231
|
+
let e = fe.current;
|
|
232
|
+
j && k && e != null && e.offsetParent == null && ue(!1);
|
|
233
|
+
}, [j, k]);
|
|
234
|
+
let he = e.sortOptions.find((e) => e.value === i)?.label ?? e.sortLabel, P = Be(() => e.sortOptions.map((e) => ({
|
|
235
235
|
key: e.value,
|
|
236
236
|
label: e.label,
|
|
237
|
-
mark:
|
|
237
|
+
mark: ge.Check,
|
|
238
238
|
checked: e.value === i,
|
|
239
239
|
onClick: () => a(e.value)
|
|
240
240
|
})), [
|
|
241
241
|
e.sortOptions,
|
|
242
242
|
i,
|
|
243
243
|
a
|
|
244
|
-
]),
|
|
245
|
-
|
|
246
|
-
let e =
|
|
244
|
+
]), _e = ot(s, d, !!c, o.length, n.trim().length > 0, e), F = Ve(null);
|
|
245
|
+
Re(() => {
|
|
246
|
+
let e = F.current;
|
|
247
247
|
if (!e || !p) return;
|
|
248
248
|
let t = st(e.parentElement);
|
|
249
249
|
if (!t) return;
|
|
@@ -260,25 +260,25 @@ var Ke = "1180px", qe = {
|
|
|
260
260
|
S,
|
|
261
261
|
p
|
|
262
262
|
]);
|
|
263
|
-
let
|
|
263
|
+
let I = () => s ? /* @__PURE__ */ J(xe, {}) : c ? /* @__PURE__ */ Y("div", {
|
|
264
264
|
className: "flex flex-col items-center gap-3",
|
|
265
|
-
children: [/* @__PURE__ */
|
|
266
|
-
className: y(
|
|
265
|
+
children: [/* @__PURE__ */ J("p", {
|
|
266
|
+
className: y(E, at.subtitle),
|
|
267
267
|
children: e.errorLabel
|
|
268
|
-
}), /* @__PURE__ */
|
|
268
|
+
}), /* @__PURE__ */ J(A, {
|
|
269
269
|
label: e.retryLabel,
|
|
270
270
|
onClick: l
|
|
271
271
|
})]
|
|
272
|
-
}) : o.length === 0 ? n.trim() ? /* @__PURE__ */
|
|
272
|
+
}) : o.length === 0 ? n.trim() ? /* @__PURE__ */ J(h, {
|
|
273
273
|
label: e.noResultsLabel,
|
|
274
274
|
description: e.noResultsDescription
|
|
275
|
-
}) : /* @__PURE__ */
|
|
275
|
+
}) : /* @__PURE__ */ J(h, {
|
|
276
276
|
label: e.emptyStateLabel,
|
|
277
277
|
description: e.emptyStateDescription
|
|
278
|
-
}) : /* @__PURE__ */
|
|
278
|
+
}) : /* @__PURE__ */ Y("div", {
|
|
279
279
|
className: "flex w-full flex-col gap-6",
|
|
280
280
|
children: [
|
|
281
|
-
/* @__PURE__ */
|
|
281
|
+
/* @__PURE__ */ J(it, {
|
|
282
282
|
items: o,
|
|
283
283
|
searchQuery: n,
|
|
284
284
|
onCardClick: m,
|
|
@@ -288,95 +288,95 @@ var Ke = "1180px", qe = {
|
|
|
288
288
|
cardStyles: te,
|
|
289
289
|
layout: ee
|
|
290
290
|
}),
|
|
291
|
-
S && /* @__PURE__ */
|
|
291
|
+
S && /* @__PURE__ */ J(le, {
|
|
292
292
|
message: e.loadMoreErrorLabel ?? e.errorLabel,
|
|
293
|
-
textClassName:
|
|
294
|
-
iconStroke:
|
|
295
|
-
action: /* @__PURE__ */
|
|
293
|
+
textClassName: E,
|
|
294
|
+
iconStroke: O,
|
|
295
|
+
action: /* @__PURE__ */ J(A, {
|
|
296
296
|
label: e.retryLabel,
|
|
297
297
|
onClick: C
|
|
298
298
|
})
|
|
299
299
|
}),
|
|
300
|
-
/* @__PURE__ */
|
|
301
|
-
ref:
|
|
300
|
+
/* @__PURE__ */ J("div", {
|
|
301
|
+
ref: F,
|
|
302
302
|
"aria-hidden": !0,
|
|
303
303
|
className: "h-px w-full"
|
|
304
304
|
})
|
|
305
305
|
]
|
|
306
|
-
}),
|
|
307
|
-
return /* @__PURE__ */
|
|
308
|
-
style:
|
|
309
|
-
className: y("flex h-full w-full flex-col gap-4 overflow-y-auto px-4 py-4 desktop:gap-6 desktop:px-8",
|
|
306
|
+
}), L = s || !!c || o.length === 0;
|
|
307
|
+
return /* @__PURE__ */ Y("div", {
|
|
308
|
+
style: oe,
|
|
309
|
+
className: y("flex h-full w-full flex-col gap-4 overflow-y-auto px-4 py-4 desktop:gap-6 desktop:px-8", at.container, x),
|
|
310
310
|
children: [
|
|
311
|
-
/* @__PURE__ */
|
|
311
|
+
/* @__PURE__ */ Y("div", {
|
|
312
312
|
className: "flex items-start justify-between gap-4",
|
|
313
|
-
children: [/* @__PURE__ */
|
|
313
|
+
children: [/* @__PURE__ */ Y("div", {
|
|
314
314
|
className: "min-w-0 gap-2",
|
|
315
|
-
children: [/* @__PURE__ */
|
|
316
|
-
className: y("truncate",
|
|
315
|
+
children: [/* @__PURE__ */ J("h1", {
|
|
316
|
+
className: y("truncate", ae),
|
|
317
317
|
children: e.title
|
|
318
|
-
}), /* @__PURE__ */
|
|
319
|
-
className: y("mt-1",
|
|
318
|
+
}), /* @__PURE__ */ J("p", {
|
|
319
|
+
className: y("mt-1", E, at.subtitle),
|
|
320
320
|
children: e.subtitle
|
|
321
321
|
})]
|
|
322
|
-
}), t != null && /* @__PURE__ */
|
|
322
|
+
}), t != null && /* @__PURE__ */ J(ye, {
|
|
323
323
|
label: e.createButtonLabel,
|
|
324
|
-
textClassName:
|
|
324
|
+
textClassName: at.createButtonLabel,
|
|
325
325
|
"aria-label": e.createButtonLabel,
|
|
326
|
-
iconBefore: /* @__PURE__ */
|
|
327
|
-
size:
|
|
326
|
+
iconBefore: /* @__PURE__ */ J(G, {
|
|
327
|
+
size: D.SM,
|
|
328
328
|
"aria-hidden": !0,
|
|
329
|
-
stroke:
|
|
329
|
+
stroke: O
|
|
330
330
|
}),
|
|
331
331
|
onClick: t,
|
|
332
|
-
className: y("shrink-0",
|
|
332
|
+
className: y("shrink-0", at.createButton)
|
|
333
333
|
})]
|
|
334
334
|
}),
|
|
335
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ Y("div", {
|
|
336
336
|
className: "flex flex-wrap items-center gap-3",
|
|
337
|
-
children: [/* @__PURE__ */
|
|
337
|
+
children: [/* @__PURE__ */ J("div", {
|
|
338
338
|
role: "search",
|
|
339
339
|
className: "flex-1",
|
|
340
|
-
children: /* @__PURE__ */
|
|
340
|
+
children: /* @__PURE__ */ J(z, {
|
|
341
341
|
value: n,
|
|
342
|
-
onChange:
|
|
342
|
+
onChange: ce,
|
|
343
343
|
placeholder: e.searchPlaceholder,
|
|
344
344
|
clearLabel: e.clearSearchLabel,
|
|
345
345
|
"aria-label": e.searchAriaLabel,
|
|
346
|
-
size:
|
|
347
|
-
onFocus:
|
|
348
|
-
onBlur:
|
|
346
|
+
size: se.Large,
|
|
347
|
+
onFocus: pe,
|
|
348
|
+
onBlur: me
|
|
349
349
|
})
|
|
350
|
-
}), e.sortOptions.length > 0 && /* @__PURE__ */
|
|
351
|
-
ref:
|
|
352
|
-
className: y(
|
|
353
|
-
children: /* @__PURE__ */
|
|
354
|
-
items:
|
|
355
|
-
label:
|
|
350
|
+
}), e.sortOptions.length > 0 && /* @__PURE__ */ J("div", {
|
|
351
|
+
ref: fe,
|
|
352
|
+
className: y(j && at.sortControlHidden),
|
|
353
|
+
children: /* @__PURE__ */ J(re, {
|
|
354
|
+
items: P,
|
|
355
|
+
label: he,
|
|
356
356
|
variant: ie.Primary,
|
|
357
357
|
appearance: ne.Ghost,
|
|
358
|
-
iconBefore: b === void 0 ? /* @__PURE__ */
|
|
359
|
-
size:
|
|
358
|
+
iconBefore: b === void 0 ? /* @__PURE__ */ J(U, {
|
|
359
|
+
size: D.SM,
|
|
360
360
|
"aria-hidden": !0,
|
|
361
|
-
stroke:
|
|
361
|
+
stroke: O
|
|
362
362
|
}) : b,
|
|
363
|
-
className:
|
|
363
|
+
className: at.sortButton
|
|
364
364
|
})
|
|
365
365
|
})]
|
|
366
366
|
}),
|
|
367
|
-
g != null && typeof g != "boolean" && /* @__PURE__ */
|
|
367
|
+
g != null && typeof g != "boolean" && /* @__PURE__ */ J("div", {
|
|
368
368
|
className: "mx-auto w-full min-w-0",
|
|
369
369
|
style: { maxWidth: ee?.maxWidth ?? "1180px" },
|
|
370
370
|
children: g
|
|
371
371
|
}),
|
|
372
|
-
/* @__PURE__ */
|
|
372
|
+
/* @__PURE__ */ J(M, {
|
|
373
373
|
visuallyHidden: !0,
|
|
374
|
-
as:
|
|
375
|
-
children:
|
|
374
|
+
as: N.Span,
|
|
375
|
+
children: _e
|
|
376
376
|
}),
|
|
377
|
-
/* @__PURE__ */
|
|
378
|
-
className: y("mx-auto flex size-full w-full min-w-0 flex-col",
|
|
379
|
-
children:
|
|
377
|
+
/* @__PURE__ */ J("div", {
|
|
378
|
+
className: y("mx-auto flex size-full w-full min-w-0 flex-col", L && "items-center justify-center"),
|
|
379
|
+
children: I()
|
|
380
380
|
})
|
|
381
381
|
]
|
|
382
382
|
});
|
|
@@ -387,12 +387,12 @@ var Ke = "1180px", qe = {
|
|
|
387
387
|
for (let r of n) if (dt(e[r]) !== dt(t[r])) return !0;
|
|
388
388
|
return !1;
|
|
389
389
|
}, pt = (e, n, r) => n === t.Custom || r === t.Custom ? void 0 : e, mt = { error: "_error_v2pfn_4" }, ht = ({ id: t, label: n, placeholder: r, value: a, onChange: o, minDate: s, error: c, errorClassName: l, disabled: u }) => {
|
|
390
|
-
let d = (e) => o(i(e)), f =
|
|
391
|
-
return x(() => document.getElementById(t), f, !!c), /* @__PURE__ */
|
|
390
|
+
let d = (e) => o(i(e)), f = K();
|
|
391
|
+
return x(() => document.getElementById(t), f, !!c), /* @__PURE__ */ Y("div", {
|
|
392
392
|
className: "flex flex-1 flex-col gap-1",
|
|
393
|
-
children: [/* @__PURE__ */
|
|
393
|
+
children: [/* @__PURE__ */ J(T, {
|
|
394
394
|
id: t,
|
|
395
|
-
mode:
|
|
395
|
+
mode: ae.Date,
|
|
396
396
|
value: e(a),
|
|
397
397
|
onChange: d,
|
|
398
398
|
minDate: s,
|
|
@@ -400,20 +400,36 @@ var Ke = "1180px", qe = {
|
|
|
400
400
|
placeholder: r,
|
|
401
401
|
invalid: !!c,
|
|
402
402
|
disabled: u
|
|
403
|
-
}), /* @__PURE__ */
|
|
404
|
-
announce:
|
|
403
|
+
}), /* @__PURE__ */ J(k, {
|
|
404
|
+
announce: he.Assertive,
|
|
405
405
|
id: f,
|
|
406
406
|
className: y(l, mt.error),
|
|
407
407
|
text: c ?? ""
|
|
408
408
|
})]
|
|
409
409
|
});
|
|
410
|
-
}, gt = {
|
|
411
|
-
|
|
412
|
-
|
|
410
|
+
}, gt = ({ value: e, onChange: t, onBlur: n, disabled: r, invalid: i, ariaLabel: a }) => /* @__PURE__ */ J(T, {
|
|
411
|
+
mode: ae.Time,
|
|
412
|
+
value: e,
|
|
413
|
+
onChange: (e) => {
|
|
414
|
+
typeof e == "string" && t(e);
|
|
415
|
+
},
|
|
416
|
+
onBlur: n,
|
|
417
|
+
disabled: r,
|
|
418
|
+
invalid: i,
|
|
419
|
+
labelProps: {
|
|
420
|
+
label: a,
|
|
421
|
+
className: "sr-only"
|
|
422
|
+
},
|
|
423
|
+
className: "w-[120px] gap-y-0",
|
|
424
|
+
fieldClassName: "px-3 py-1.5 pe-9",
|
|
425
|
+
pickerButtonClassName: "size-6 inset-e-1.5"
|
|
426
|
+
}), _t = { error: "_error_v2pfn_4" }, vt = (e) => /* @__PURE__ */ J(gt, { ...e }), yt = ({ label: e, placeholder: t, value: r, onChange: i, disabled: a, error: o, errorClassName: c = "dial-tiny-text" }) => {
|
|
427
|
+
let l = Ve(/* @__PURE__ */ new Date()).current, u = (e) => i(n(e)), d = K();
|
|
428
|
+
return x(() => document.getElementById("scheduled-task-run-at"), d, !!o), /* @__PURE__ */ Y("div", {
|
|
413
429
|
className: "flex flex-col gap-1",
|
|
414
|
-
children: [/* @__PURE__ */
|
|
430
|
+
children: [/* @__PURE__ */ J(T, {
|
|
415
431
|
id: "scheduled-task-run-at",
|
|
416
|
-
mode:
|
|
432
|
+
mode: ae.DateTime,
|
|
417
433
|
value: s(r),
|
|
418
434
|
onChange: u,
|
|
419
435
|
minDate: l,
|
|
@@ -423,11 +439,12 @@ var Ke = "1180px", qe = {
|
|
|
423
439
|
},
|
|
424
440
|
placeholder: t,
|
|
425
441
|
invalid: !!o,
|
|
426
|
-
disabled: a
|
|
427
|
-
|
|
428
|
-
|
|
442
|
+
disabled: a,
|
|
443
|
+
renderTimeField: vt
|
|
444
|
+
}), /* @__PURE__ */ J(k, {
|
|
445
|
+
announce: he.Assertive,
|
|
429
446
|
id: d,
|
|
430
|
-
className: y(c,
|
|
447
|
+
className: y(c, _t.error),
|
|
431
448
|
text: o ?? ""
|
|
432
449
|
})]
|
|
433
450
|
});
|
|
@@ -438,64 +455,64 @@ var Ke = "1180px", qe = {
|
|
|
438
455
|
instructionsError: "_instructionsError_1253x_18",
|
|
439
456
|
refineFeedback: "_refineFeedback_1253x_22",
|
|
440
457
|
refineError: "_refineError_1253x_26"
|
|
441
|
-
},
|
|
442
|
-
let
|
|
443
|
-
if (
|
|
444
|
-
|
|
458
|
+
}, bt = Fe(async () => ({ default: (await We()).MarkdownEditor })), xt = ({ labels: e, values: n, initialValues: r, errors: i, modelSelector: s, modelLabelId: l, skillSelector: d, onFieldChange: m, onBack: h, onCancel: g, onSubmit: ee, isSubmitting: C = !1, onRefineDescription: re, onRefineInstructions: E, markdownEditorTheme: se, backIcon: ce, className: le, styles: ue }) => {
|
|
459
|
+
let A = K(), j = K(), de = K(), me = K(), M = K(), N = K(), ge = K(), P = Ve(void 0), _e = (e) => e ? async (t, n) => {
|
|
460
|
+
if (P.current && !P.current.aborted) throw new DOMException("Busy", "AbortError");
|
|
461
|
+
P.current = n;
|
|
445
462
|
try {
|
|
446
463
|
return await e(t, n);
|
|
447
464
|
} finally {
|
|
448
|
-
|
|
465
|
+
P.current === n && (P.current = void 0);
|
|
449
466
|
}
|
|
450
|
-
} : void 0,
|
|
467
|
+
} : void 0, F = te({
|
|
451
468
|
value: n.description ?? "",
|
|
452
469
|
onChange: (e) => m("description", e),
|
|
453
|
-
onRefine:
|
|
470
|
+
onRefine: _e(re),
|
|
454
471
|
disabled: C
|
|
455
|
-
}),
|
|
472
|
+
}), I = te({
|
|
456
473
|
value: n.prompt,
|
|
457
474
|
onChange: (e) => m("prompt", e),
|
|
458
|
-
onRefine:
|
|
475
|
+
onRefine: _e(E),
|
|
459
476
|
disabled: C
|
|
460
|
-
}),
|
|
461
|
-
|
|
462
|
-
},
|
|
463
|
-
|
|
464
|
-
}),
|
|
465
|
-
|
|
466
|
-
}),
|
|
467
|
-
"--stcf-details-border":
|
|
468
|
-
"--stcf-subtitle-text":
|
|
469
|
-
"--stcf-error-text":
|
|
470
|
-
"--stcf-refine-action-text":
|
|
471
|
-
"--stcf-refine-error-text":
|
|
472
|
-
}),
|
|
473
|
-
feedbackClassName: y(
|
|
477
|
+
}), L = F.isPending || I.isPending, ve = () => {
|
|
478
|
+
F.reset(), I.reset();
|
|
479
|
+
}, ye = !!(r && ft(n, r)), z = S(ye), B = () => z.guard(() => {
|
|
480
|
+
ve(), h();
|
|
481
|
+
}), V = () => z.guard(() => {
|
|
482
|
+
ve(), g();
|
|
483
|
+
}), Se = b(), Ce = !n.skillUrls?.length, [Te, Ee] = He(), De = Ve(/* @__PURE__ */ new Date()).current, { colors: H, typography: U, layout: W } = ue ?? {}, ke = U?.titleClassName ?? "dial-h1-text", Ae = U?.sectionTitleClassName ?? "dial-body-semi-text", je = U?.sectionSubtitleClassName ?? "dial-tiny-text", Me = U?.instructionsLabelClassName ?? "dial-body-semi-text mb-1", G = U?.instructionsErrorClassName ?? "dial-tiny-text", Ne = v({
|
|
484
|
+
"--stcf-details-border": H?.detailsColumnBorder,
|
|
485
|
+
"--stcf-subtitle-text": H?.sectionSubtitleText,
|
|
486
|
+
"--stcf-error-text": H?.instructionsErrorText,
|
|
487
|
+
"--stcf-refine-action-text": H?.refineActionText,
|
|
488
|
+
"--stcf-refine-error-text": H?.refineErrorText
|
|
489
|
+
}), Fe = {
|
|
490
|
+
feedbackClassName: y(H?.refineActionText && Z.refineFeedback, U?.refineFeedbackClassName, Ke.refineFeedback),
|
|
474
491
|
errorClassName: Z.refineError
|
|
475
|
-
},
|
|
492
|
+
}, Ie = (t) => {
|
|
476
493
|
let n = c.test(t.target.value) ? void 0 : e.timeInvalidLabel;
|
|
477
|
-
|
|
478
|
-
},
|
|
479
|
-
|
|
480
|
-
},
|
|
494
|
+
Ee(n), m("time", t.target.value);
|
|
495
|
+
}, Le = (e) => {
|
|
496
|
+
Ee(void 0), m("time", typeof e == "string" ? e : "");
|
|
497
|
+
}, ze = (e) => {
|
|
481
498
|
let t = e;
|
|
482
499
|
m("repeat", t);
|
|
483
500
|
let r = pt(n.startDate, n.repeat, t);
|
|
484
501
|
r !== n.startDate && m("startDate", r ?? "");
|
|
485
502
|
let i = pt(n.endDate, n.repeat, t);
|
|
486
503
|
i !== n.endDate && m("endDate", i ?? "");
|
|
487
|
-
},
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}, [
|
|
491
|
-
let
|
|
492
|
-
x(() => ut(l),
|
|
493
|
-
let
|
|
504
|
+
}, Be = n.repeat !== t.OneTime && n.repeat !== t.Hourly, We = n.repeat === t.Custom, Ge = We && !n.dayOfWeek;
|
|
505
|
+
Re(() => {
|
|
506
|
+
Be || Ee(void 0);
|
|
507
|
+
}, [Be]);
|
|
508
|
+
let X = Be ? Te ?? i.time : void 0;
|
|
509
|
+
x(() => ut(l), me, !!i.modelId), x(() => document.getElementById("scheduled-task-day-of-week"), M, !!i.dayOfWeek), x(() => document.getElementById("scheduled-task-time"), N, !!X), x(() => document.getElementById(j), ge, !!i.prompt);
|
|
510
|
+
let qe = (e) => m("runAt", e), Je = (e) => {
|
|
494
511
|
m("everyWeeks", e);
|
|
495
|
-
},
|
|
512
|
+
}, Ye = (e) => {
|
|
496
513
|
e !== n.dayOfWeek && m("dayOfWeek", e);
|
|
497
|
-
},
|
|
498
|
-
return /* @__PURE__ */
|
|
514
|
+
}, Xe = C || L || !n.displayName.trim() || !n.modelId || !n.prompt.trim() && !n.skillUrls?.length || !!i.skillUrls || n.repeat === t.OneTime && (!n.runAt || !!i.runAt) || Be && !n.time || Ge || !!X;
|
|
515
|
+
return /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(Ue, {
|
|
499
516
|
labels: {
|
|
500
517
|
title: e.pageTitle,
|
|
501
518
|
backButtonLabel: e.backButtonLabel,
|
|
@@ -503,50 +520,50 @@ var Ke = "1180px", qe = {
|
|
|
503
520
|
submitButtonLabel: e.createButtonLabel,
|
|
504
521
|
submittingLabel: e.submittingLabel ?? "Saving"
|
|
505
522
|
},
|
|
506
|
-
onBack:
|
|
507
|
-
onCancel:
|
|
523
|
+
onBack: B,
|
|
524
|
+
onCancel: V,
|
|
508
525
|
onSubmit: () => {
|
|
509
|
-
!
|
|
526
|
+
!Xe && (!P.current || P.current.aborted) && ee();
|
|
510
527
|
},
|
|
511
528
|
isCancelDisabled: C,
|
|
512
|
-
isSubmitDisabled:
|
|
529
|
+
isSubmitDisabled: Xe,
|
|
513
530
|
isSubmitting: C,
|
|
514
|
-
backIcon:
|
|
515
|
-
size:
|
|
516
|
-
stroke:
|
|
531
|
+
backIcon: ce === void 0 ? /* @__PURE__ */ J(Oe, {
|
|
532
|
+
size: D.LG,
|
|
533
|
+
stroke: O,
|
|
517
534
|
"aria-hidden": !0,
|
|
518
535
|
className: "rtl:scale-x-[-1]"
|
|
519
|
-
}) :
|
|
536
|
+
}) : ce,
|
|
520
537
|
layout: {
|
|
521
|
-
sideColumnWidth:
|
|
522
|
-
columnGap:
|
|
538
|
+
sideColumnWidth: W?.detailsWidth,
|
|
539
|
+
columnGap: W?.columnGap,
|
|
523
540
|
reserveEndColumn: !1
|
|
524
541
|
},
|
|
525
|
-
className:
|
|
542
|
+
className: le,
|
|
526
543
|
styles: {
|
|
527
|
-
colors: { background:
|
|
544
|
+
colors: { background: H?.background },
|
|
528
545
|
header: {
|
|
529
|
-
colors: { borderColor:
|
|
530
|
-
typography: { fontClassName:
|
|
546
|
+
colors: { borderColor: H?.headerBorder },
|
|
547
|
+
typography: { fontClassName: ke }
|
|
531
548
|
},
|
|
532
|
-
cssVars:
|
|
549
|
+
cssVars: Ne
|
|
533
550
|
},
|
|
534
|
-
left: /* @__PURE__ */
|
|
551
|
+
left: /* @__PURE__ */ Y("div", {
|
|
535
552
|
role: "group",
|
|
536
553
|
"aria-label": e.detailsSectionTitle,
|
|
537
554
|
className: y("flex flex-1 flex-col gap-5 py-6 desktop:border-e", Z.detailsColumn, Z.formColumn),
|
|
538
555
|
children: [
|
|
539
|
-
/* @__PURE__ */
|
|
556
|
+
/* @__PURE__ */ Y("div", {
|
|
540
557
|
className: "flex flex-col gap-1",
|
|
541
|
-
children: [/* @__PURE__ */
|
|
542
|
-
className:
|
|
558
|
+
children: [/* @__PURE__ */ J("h2", {
|
|
559
|
+
className: Ae,
|
|
543
560
|
children: e.detailsSectionTitle
|
|
544
|
-
}), /* @__PURE__ */
|
|
545
|
-
className: y(
|
|
561
|
+
}), /* @__PURE__ */ J("p", {
|
|
562
|
+
className: y(je, Z.sectionSubtitle),
|
|
546
563
|
children: e.detailsSectionSubtitle
|
|
547
564
|
})]
|
|
548
565
|
}),
|
|
549
|
-
/* @__PURE__ */
|
|
566
|
+
/* @__PURE__ */ J(fe, {
|
|
550
567
|
id: "scheduled-task-display-name",
|
|
551
568
|
value: n.displayName,
|
|
552
569
|
onChange: (e) => m("displayName", e ?? ""),
|
|
@@ -557,20 +574,20 @@ var Ke = "1180px", qe = {
|
|
|
557
574
|
invalid: !!i.displayName,
|
|
558
575
|
error: i.displayName
|
|
559
576
|
}),
|
|
560
|
-
/* @__PURE__ */
|
|
577
|
+
/* @__PURE__ */ J(_, {
|
|
561
578
|
isEnabled: !!re,
|
|
562
|
-
fieldId:
|
|
579
|
+
fieldId: A,
|
|
563
580
|
label: e.descriptionLabel,
|
|
564
581
|
labels: e,
|
|
565
|
-
refinement:
|
|
566
|
-
disabled: C ||
|
|
582
|
+
refinement: F,
|
|
583
|
+
disabled: C || L,
|
|
567
584
|
caption: `${(n.description ?? "").length}/500`,
|
|
568
|
-
...
|
|
569
|
-
children: /* @__PURE__ */
|
|
570
|
-
id:
|
|
585
|
+
...Fe,
|
|
586
|
+
children: /* @__PURE__ */ J(we, {
|
|
587
|
+
id: A,
|
|
571
588
|
value: n.description ?? "",
|
|
572
589
|
onChange: (e) => {
|
|
573
|
-
|
|
590
|
+
F.reset(), m("description", e);
|
|
574
591
|
},
|
|
575
592
|
labelProps: re ? void 0 : { label: e.descriptionLabel },
|
|
576
593
|
maxLength: 500,
|
|
@@ -578,57 +595,57 @@ var Ke = "1180px", qe = {
|
|
|
578
595
|
error: i.description
|
|
579
596
|
})
|
|
580
597
|
}),
|
|
581
|
-
/* @__PURE__ */
|
|
598
|
+
/* @__PURE__ */ Y("div", {
|
|
582
599
|
className: "flex flex-col gap-1",
|
|
583
600
|
children: [
|
|
584
|
-
/* @__PURE__ */
|
|
601
|
+
/* @__PURE__ */ J(pe, {
|
|
585
602
|
id: l,
|
|
586
603
|
label: e.modelOrAgentLabel,
|
|
587
604
|
required: !0
|
|
588
605
|
}),
|
|
589
606
|
s,
|
|
590
|
-
i.modelId && /* @__PURE__ */
|
|
591
|
-
id:
|
|
592
|
-
className: y(
|
|
607
|
+
i.modelId && /* @__PURE__ */ J(k, {
|
|
608
|
+
id: me,
|
|
609
|
+
className: y(G, Z.instructionsError),
|
|
593
610
|
text: i.modelId
|
|
594
611
|
})
|
|
595
612
|
]
|
|
596
613
|
}),
|
|
597
|
-
/* @__PURE__ */
|
|
614
|
+
/* @__PURE__ */ Y("div", {
|
|
598
615
|
className: "flex flex-col gap-3",
|
|
599
616
|
children: [
|
|
600
|
-
/* @__PURE__ */
|
|
617
|
+
/* @__PURE__ */ J(be, {
|
|
601
618
|
labelProps: { label: e.repeatLabel },
|
|
602
619
|
value: n.repeat,
|
|
603
|
-
onChange:
|
|
620
|
+
onChange: ze,
|
|
604
621
|
options: e.repeatOptions.map((e) => ({
|
|
605
622
|
value: e.key,
|
|
606
623
|
label: e.label
|
|
607
624
|
}))
|
|
608
625
|
}),
|
|
609
|
-
n.repeat === t.OneTime && /* @__PURE__ */
|
|
626
|
+
n.repeat === t.OneTime && /* @__PURE__ */ J(yt, {
|
|
610
627
|
label: e.runAtLabel,
|
|
611
628
|
placeholder: e.runAtPlaceholder,
|
|
612
629
|
value: n.runAt ?? "",
|
|
613
|
-
onChange:
|
|
630
|
+
onChange: qe,
|
|
614
631
|
error: i.runAt,
|
|
615
|
-
errorClassName:
|
|
632
|
+
errorClassName: G,
|
|
616
633
|
disabled: C
|
|
617
634
|
}),
|
|
618
|
-
n.repeat !== t.OneTime && /* @__PURE__ */
|
|
619
|
-
|
|
635
|
+
n.repeat !== t.OneTime && /* @__PURE__ */ Y(q, { children: [
|
|
636
|
+
We && /* @__PURE__ */ J(be, {
|
|
620
637
|
id: "scheduled-task-every-weeks",
|
|
621
638
|
labelProps: { label: e.everyLabel },
|
|
622
639
|
value: n.everyWeeks ?? "",
|
|
623
|
-
onChange:
|
|
640
|
+
onChange: Je,
|
|
624
641
|
options: e.everyWeekOptions,
|
|
625
642
|
disabled: C
|
|
626
643
|
}),
|
|
627
|
-
n.repeat === t.Weekly && /* @__PURE__ */
|
|
644
|
+
n.repeat === t.Weekly && /* @__PURE__ */ Y("div", {
|
|
628
645
|
className: "flex flex-col gap-1",
|
|
629
|
-
children: [/* @__PURE__ */
|
|
646
|
+
children: [/* @__PURE__ */ J(T, {
|
|
630
647
|
id: "scheduled-task-day-of-week",
|
|
631
|
-
mode:
|
|
648
|
+
mode: ae.Weekday,
|
|
632
649
|
value: a(n.dayOfWeek),
|
|
633
650
|
onChange: (e) => m("dayOfWeek", o(e)),
|
|
634
651
|
labelProps: {
|
|
@@ -636,68 +653,68 @@ var Ke = "1180px", qe = {
|
|
|
636
653
|
required: !0
|
|
637
654
|
},
|
|
638
655
|
invalid: !!i.dayOfWeek
|
|
639
|
-
}), i.dayOfWeek && /* @__PURE__ */
|
|
640
|
-
id:
|
|
641
|
-
className: y(
|
|
656
|
+
}), i.dayOfWeek && /* @__PURE__ */ J(k, {
|
|
657
|
+
id: M,
|
|
658
|
+
className: y(G, Z.instructionsError),
|
|
642
659
|
text: i.dayOfWeek
|
|
643
660
|
})]
|
|
644
661
|
}),
|
|
645
|
-
|
|
662
|
+
Be && /* @__PURE__ */ Y("div", {
|
|
646
663
|
className: "flex flex-col gap-1",
|
|
647
|
-
children: [/* @__PURE__ */
|
|
664
|
+
children: [/* @__PURE__ */ J(T, {
|
|
648
665
|
id: "scheduled-task-time",
|
|
649
|
-
mode:
|
|
666
|
+
mode: ae.Time,
|
|
650
667
|
value: n.time,
|
|
651
|
-
onChange:
|
|
652
|
-
onBlur:
|
|
668
|
+
onChange: Le,
|
|
669
|
+
onBlur: Ie,
|
|
653
670
|
labelProps: {
|
|
654
671
|
label: e.timeLabel,
|
|
655
672
|
required: !0
|
|
656
673
|
},
|
|
657
|
-
invalid: !!
|
|
674
|
+
invalid: !!X,
|
|
658
675
|
disabled: C,
|
|
659
676
|
showTimezone: !0
|
|
660
|
-
}),
|
|
661
|
-
id:
|
|
662
|
-
className: y(
|
|
663
|
-
text:
|
|
677
|
+
}), X && /* @__PURE__ */ J(k, {
|
|
678
|
+
id: N,
|
|
679
|
+
className: y(G, Z.instructionsError),
|
|
680
|
+
text: X
|
|
664
681
|
})]
|
|
665
682
|
}),
|
|
666
|
-
|
|
683
|
+
We && /* @__PURE__ */ Y("div", {
|
|
667
684
|
className: "flex flex-col gap-1",
|
|
668
685
|
children: [
|
|
669
|
-
/* @__PURE__ */
|
|
670
|
-
id:
|
|
686
|
+
/* @__PURE__ */ J(pe, {
|
|
687
|
+
id: de,
|
|
671
688
|
label: e.dayOfWeekLabel,
|
|
672
689
|
required: !0
|
|
673
690
|
}),
|
|
674
|
-
/* @__PURE__ */
|
|
691
|
+
/* @__PURE__ */ J("div", {
|
|
675
692
|
role: "group",
|
|
676
|
-
"aria-labelledby":
|
|
693
|
+
"aria-labelledby": de,
|
|
677
694
|
className: "flex gap-0.5",
|
|
678
695
|
children: e.customDayOptions.map((e) => {
|
|
679
696
|
let t = e.value === n.dayOfWeek;
|
|
680
|
-
return /* @__PURE__ */
|
|
697
|
+
return /* @__PURE__ */ J(w, {
|
|
681
698
|
"aria-label": e.fullName,
|
|
682
699
|
"aria-pressed": t,
|
|
683
|
-
"aria-describedby": i.dayOfWeek ?
|
|
700
|
+
"aria-describedby": i.dayOfWeek ? M : void 0,
|
|
684
701
|
variant: t ? ie.Primary : ie.Neutral,
|
|
685
702
|
appearance: ne.Solid,
|
|
686
703
|
className: "w-10 rounded-full",
|
|
687
704
|
label: e.shortLabel,
|
|
688
|
-
onClick: () =>
|
|
705
|
+
onClick: () => Ye(e.value),
|
|
689
706
|
disabled: C
|
|
690
707
|
}, e.value);
|
|
691
708
|
})
|
|
692
709
|
}),
|
|
693
|
-
i.dayOfWeek && /* @__PURE__ */
|
|
694
|
-
id:
|
|
695
|
-
className: y(
|
|
710
|
+
i.dayOfWeek && /* @__PURE__ */ J(k, {
|
|
711
|
+
id: M,
|
|
712
|
+
className: y(G, Z.instructionsError),
|
|
696
713
|
text: i.dayOfWeek
|
|
697
714
|
})
|
|
698
715
|
]
|
|
699
716
|
}),
|
|
700
|
-
n.repeat === t.Monthly && /* @__PURE__ */
|
|
717
|
+
n.repeat === t.Monthly && /* @__PURE__ */ J(R, {
|
|
701
718
|
id: "scheduled-task-day-of-month",
|
|
702
719
|
integer: !0,
|
|
703
720
|
min: 1,
|
|
@@ -711,7 +728,7 @@ var Ke = "1180px", qe = {
|
|
|
711
728
|
invalid: !!i.dayOfMonth,
|
|
712
729
|
error: i.dayOfMonth
|
|
713
730
|
}),
|
|
714
|
-
n.repeat === t.Hourly && /* @__PURE__ */
|
|
731
|
+
n.repeat === t.Hourly && /* @__PURE__ */ J(R, {
|
|
715
732
|
id: "scheduled-task-minute",
|
|
716
733
|
integer: !0,
|
|
717
734
|
min: 0,
|
|
@@ -726,27 +743,27 @@ var Ke = "1180px", qe = {
|
|
|
726
743
|
invalid: !!i.minute,
|
|
727
744
|
error: i.minute
|
|
728
745
|
}),
|
|
729
|
-
!
|
|
746
|
+
!We && /* @__PURE__ */ Y("div", {
|
|
730
747
|
className: "flex flex-row gap-3",
|
|
731
|
-
children: [/* @__PURE__ */
|
|
748
|
+
children: [/* @__PURE__ */ J(ht, {
|
|
732
749
|
id: "scheduled-task-start-date",
|
|
733
750
|
label: e.startDateLabel,
|
|
734
751
|
placeholder: e.startDatePlaceholder,
|
|
735
752
|
value: n.startDate,
|
|
736
753
|
onChange: (e) => m("startDate", e),
|
|
737
|
-
minDate:
|
|
754
|
+
minDate: De,
|
|
738
755
|
error: i.startDate,
|
|
739
|
-
errorClassName:
|
|
756
|
+
errorClassName: G,
|
|
740
757
|
disabled: C
|
|
741
|
-
}), /* @__PURE__ */
|
|
758
|
+
}), /* @__PURE__ */ J(ht, {
|
|
742
759
|
id: "scheduled-task-end-date",
|
|
743
760
|
label: e.endDateLabel,
|
|
744
761
|
placeholder: e.endDatePlaceholder,
|
|
745
762
|
value: n.endDate,
|
|
746
763
|
onChange: (e) => m("endDate", e),
|
|
747
|
-
minDate:
|
|
764
|
+
minDate: De,
|
|
748
765
|
error: i.endDate,
|
|
749
|
-
errorClassName:
|
|
766
|
+
errorClassName: G,
|
|
750
767
|
disabled: C
|
|
751
768
|
})]
|
|
752
769
|
})
|
|
@@ -755,67 +772,67 @@ var Ke = "1180px", qe = {
|
|
|
755
772
|
})
|
|
756
773
|
]
|
|
757
774
|
}),
|
|
758
|
-
children: /* @__PURE__ */
|
|
775
|
+
children: /* @__PURE__ */ Y("div", {
|
|
759
776
|
role: "group",
|
|
760
777
|
"aria-label": e.configurationSectionTitle,
|
|
761
778
|
className: y("flex flex-1 flex-col gap-5 py-6", Z.formColumn),
|
|
762
779
|
children: [
|
|
763
|
-
/* @__PURE__ */
|
|
780
|
+
/* @__PURE__ */ J("div", {
|
|
764
781
|
className: "flex flex-col gap-1",
|
|
765
|
-
children: /* @__PURE__ */
|
|
766
|
-
className:
|
|
782
|
+
children: /* @__PURE__ */ J("h2", {
|
|
783
|
+
className: Ae,
|
|
767
784
|
children: e.configurationSectionTitle
|
|
768
785
|
})
|
|
769
786
|
}),
|
|
770
|
-
d == null ? /* @__PURE__ */
|
|
771
|
-
announce:
|
|
772
|
-
className: y(
|
|
787
|
+
d == null ? /* @__PURE__ */ J(k, {
|
|
788
|
+
announce: he.Polite,
|
|
789
|
+
className: y(G, Z.instructionsError),
|
|
773
790
|
text: i.skillUrls ?? ""
|
|
774
|
-
}) : /* @__PURE__ */
|
|
791
|
+
}) : /* @__PURE__ */ J("div", {
|
|
775
792
|
className: "w-full max-w-[996px] min-w-0",
|
|
776
793
|
children: d
|
|
777
794
|
}),
|
|
778
|
-
/* @__PURE__ */
|
|
795
|
+
/* @__PURE__ */ J("div", {
|
|
779
796
|
className: "flex w-full max-w-[996px] min-w-0 flex-col",
|
|
780
|
-
children: /* @__PURE__ */
|
|
781
|
-
isEnabled: !!
|
|
782
|
-
fieldId:
|
|
783
|
-
labelClassName:
|
|
797
|
+
children: /* @__PURE__ */ J(_, {
|
|
798
|
+
isEnabled: !!E,
|
|
799
|
+
fieldId: j,
|
|
800
|
+
labelClassName: Me,
|
|
784
801
|
label: e.instructionsLabel,
|
|
785
|
-
required:
|
|
802
|
+
required: Ce,
|
|
786
803
|
labels: e,
|
|
787
|
-
refinement:
|
|
788
|
-
disabled: C ||
|
|
789
|
-
...
|
|
790
|
-
children: /* @__PURE__ */
|
|
804
|
+
refinement: I,
|
|
805
|
+
disabled: C || L,
|
|
806
|
+
...Fe,
|
|
807
|
+
children: /* @__PURE__ */ Y("div", {
|
|
791
808
|
className: "flex flex-1 flex-col gap-1",
|
|
792
809
|
children: [
|
|
793
|
-
!
|
|
794
|
-
htmlFor:
|
|
795
|
-
className:
|
|
810
|
+
!E && /* @__PURE__ */ J(pe, {
|
|
811
|
+
htmlFor: j,
|
|
812
|
+
className: Me,
|
|
796
813
|
label: e.instructionsLabel,
|
|
797
|
-
required:
|
|
814
|
+
required: Ce
|
|
798
815
|
}),
|
|
799
|
-
/* @__PURE__ */
|
|
800
|
-
ref:
|
|
816
|
+
/* @__PURE__ */ J("div", {
|
|
817
|
+
ref: Se,
|
|
801
818
|
className: y("w-full", f, p),
|
|
802
|
-
children: /* @__PURE__ */
|
|
803
|
-
fallback: /* @__PURE__ */
|
|
804
|
-
children: /* @__PURE__ */
|
|
805
|
-
id:
|
|
819
|
+
children: /* @__PURE__ */ J(Pe, {
|
|
820
|
+
fallback: /* @__PURE__ */ J(xe, {}),
|
|
821
|
+
children: /* @__PURE__ */ J(bt, {
|
|
822
|
+
id: j,
|
|
806
823
|
value: n.prompt,
|
|
807
824
|
onChange: (e) => {
|
|
808
|
-
|
|
825
|
+
I.reset(), m("prompt", e);
|
|
809
826
|
},
|
|
810
827
|
height: 480,
|
|
811
|
-
theme:
|
|
828
|
+
theme: se,
|
|
812
829
|
placeholder: e.instructionsPlaceholder
|
|
813
830
|
})
|
|
814
831
|
})
|
|
815
832
|
}),
|
|
816
|
-
i.prompt && /* @__PURE__ */
|
|
817
|
-
id:
|
|
818
|
-
className: y(
|
|
833
|
+
i.prompt && /* @__PURE__ */ J(k, {
|
|
834
|
+
id: ge,
|
|
835
|
+
className: y(G, Z.instructionsError),
|
|
819
836
|
text: i.prompt
|
|
820
837
|
})
|
|
821
838
|
]
|
|
@@ -824,111 +841,111 @@ var Ke = "1180px", qe = {
|
|
|
824
841
|
})
|
|
825
842
|
]
|
|
826
843
|
})
|
|
827
|
-
}),
|
|
844
|
+
}), z.isConfirmOpen && /* @__PURE__ */ J(u, {
|
|
828
845
|
open: !0,
|
|
829
846
|
title: e.discardTitle ?? "Discard unsaved changes?",
|
|
830
847
|
message: e.discardMessage ?? "You have unsaved changes. Leaving now will discard them.",
|
|
831
848
|
confirmLabel: e.discardConfirmLabel ?? "Discard changes",
|
|
832
849
|
cancelLabel: e.discardCancelLabel ?? "Keep editing",
|
|
833
|
-
variant:
|
|
834
|
-
onConfirm:
|
|
835
|
-
onClose:
|
|
850
|
+
variant: oe.Danger,
|
|
851
|
+
onConfirm: z.confirm,
|
|
852
|
+
onClose: z.dismiss
|
|
836
853
|
})] });
|
|
837
|
-
},
|
|
854
|
+
}, St = /* @__PURE__ */ function(e) {
|
|
838
855
|
return e.Details = "details", e.Configuration = "configuration", e.History = "history", e;
|
|
839
|
-
}({}),
|
|
856
|
+
}({}), Ct = /* @__PURE__ */ function(e) {
|
|
840
857
|
return e.Card = "card", e.Flow = "flow", e;
|
|
841
|
-
}({}),
|
|
858
|
+
}({}), wt = { subtitleText: "_subtitleText_1i4x2_3" }, Tt = {
|
|
842
859
|
...l,
|
|
843
860
|
ul: "dial-small-paragraph-text mb-3 space-y-1",
|
|
844
861
|
ol: "dial-small-paragraph-text mb-3 space-y-1"
|
|
845
|
-
},
|
|
862
|
+
}, Et = ({ skillLabel: e, skillDisplayNames: t, instructionsLabel: n, instructionsMarkdown: r, renderInstructions: i, markdownLabels: a, fieldLabelClassName: o = "dial-tiny-text" }) => /* @__PURE__ */ Y("div", {
|
|
846
863
|
className: "flex min-w-0 flex-col gap-5",
|
|
847
|
-
children: [!!t?.length && /* @__PURE__ */
|
|
864
|
+
children: [!!t?.length && /* @__PURE__ */ Y("div", {
|
|
848
865
|
role: "group",
|
|
849
866
|
"aria-label": e,
|
|
850
867
|
className: "flex min-w-0 flex-col gap-1",
|
|
851
|
-
children: [/* @__PURE__ */
|
|
852
|
-
className: y(o,
|
|
868
|
+
children: [/* @__PURE__ */ J("span", {
|
|
869
|
+
className: y(o, wt.subtitleText),
|
|
853
870
|
children: e
|
|
854
|
-
}), /* @__PURE__ */
|
|
871
|
+
}), /* @__PURE__ */ J("p", {
|
|
855
872
|
className: "wrap-anywhere whitespace-normal",
|
|
856
|
-
children: t?.map((e, t) => /* @__PURE__ */
|
|
873
|
+
children: t?.map((e, t) => /* @__PURE__ */ J("span", {
|
|
857
874
|
className: "block",
|
|
858
875
|
children: e
|
|
859
876
|
}, `${t}:${e}`))
|
|
860
877
|
})]
|
|
861
|
-
}), r && /* @__PURE__ */
|
|
878
|
+
}), r && /* @__PURE__ */ Y("div", {
|
|
862
879
|
role: "group",
|
|
863
880
|
"aria-label": n,
|
|
864
881
|
className: "flex min-w-0 flex-col gap-1",
|
|
865
|
-
children: [/* @__PURE__ */
|
|
866
|
-
className: y(o,
|
|
882
|
+
children: [/* @__PURE__ */ J("span", {
|
|
883
|
+
className: y(o, wt.subtitleText),
|
|
867
884
|
children: n
|
|
868
|
-
}), i ? i(r) : /* @__PURE__ */
|
|
885
|
+
}), i ? i(r) : /* @__PURE__ */ J(m, {
|
|
869
886
|
content: r,
|
|
870
|
-
classNames:
|
|
887
|
+
classNames: Tt,
|
|
871
888
|
...a
|
|
872
889
|
})]
|
|
873
890
|
})]
|
|
874
|
-
}),
|
|
891
|
+
}), Dt = {
|
|
875
892
|
subtitleText: "_subtitleText_1ncri_4",
|
|
876
893
|
description: "_description_1ncri_10"
|
|
877
|
-
},
|
|
894
|
+
}, Ot = ({ labels: e, description: t, modelLabel: n, repeatsLabel: r, activeWindowLabel: i, completedLabel: a, fieldLabelClassName: o = "dial-tiny-text", fieldValueClassName: s = "dial-small-text" }) => {
|
|
878
895
|
let c = t?.trim();
|
|
879
|
-
return /* @__PURE__ */
|
|
880
|
-
c && /* @__PURE__ */
|
|
896
|
+
return /* @__PURE__ */ Y(q, { children: [
|
|
897
|
+
c && /* @__PURE__ */ Y("div", {
|
|
881
898
|
className: "flex min-w-0 flex-col gap-1",
|
|
882
|
-
children: [/* @__PURE__ */
|
|
883
|
-
className: y(o,
|
|
899
|
+
children: [/* @__PURE__ */ J("span", {
|
|
900
|
+
className: y(o, Dt.subtitleText),
|
|
884
901
|
children: e.descriptionLabel
|
|
885
|
-
}), /* @__PURE__ */
|
|
886
|
-
className: y(s, "wrap-anywhere whitespace-pre-wrap",
|
|
902
|
+
}), /* @__PURE__ */ J("p", {
|
|
903
|
+
className: y(s, "wrap-anywhere whitespace-pre-wrap", Dt.description),
|
|
887
904
|
children: c
|
|
888
905
|
})]
|
|
889
906
|
}),
|
|
890
|
-
a && /* @__PURE__ */
|
|
907
|
+
a && /* @__PURE__ */ Y("div", {
|
|
891
908
|
className: "flex min-w-0 flex-col gap-1",
|
|
892
|
-
children: [/* @__PURE__ */
|
|
893
|
-
className: y(o,
|
|
909
|
+
children: [/* @__PURE__ */ J("span", {
|
|
910
|
+
className: y(o, Dt.subtitleText),
|
|
894
911
|
children: e.completedFieldLabel
|
|
895
|
-
}), /* @__PURE__ */
|
|
912
|
+
}), /* @__PURE__ */ J("p", {
|
|
896
913
|
className: s,
|
|
897
914
|
children: a
|
|
898
915
|
})]
|
|
899
916
|
}),
|
|
900
|
-
n && /* @__PURE__ */
|
|
917
|
+
n && /* @__PURE__ */ Y("div", {
|
|
901
918
|
className: "flex min-w-0 flex-col gap-1",
|
|
902
|
-
children: [/* @__PURE__ */
|
|
903
|
-
className: y(o,
|
|
919
|
+
children: [/* @__PURE__ */ J("span", {
|
|
920
|
+
className: y(o, Dt.subtitleText),
|
|
904
921
|
children: e.modelLabel
|
|
905
|
-
}), /* @__PURE__ */
|
|
922
|
+
}), /* @__PURE__ */ J("p", {
|
|
906
923
|
className: s,
|
|
907
924
|
children: n
|
|
908
925
|
})]
|
|
909
926
|
}),
|
|
910
|
-
r && /* @__PURE__ */
|
|
927
|
+
r && /* @__PURE__ */ Y("div", {
|
|
911
928
|
className: "flex min-w-0 flex-col gap-1",
|
|
912
|
-
children: [/* @__PURE__ */
|
|
913
|
-
className: y(o,
|
|
929
|
+
children: [/* @__PURE__ */ J("span", {
|
|
930
|
+
className: y(o, Dt.subtitleText),
|
|
914
931
|
children: e.repeatsLabel
|
|
915
|
-
}), /* @__PURE__ */
|
|
932
|
+
}), /* @__PURE__ */ J("p", {
|
|
916
933
|
className: s,
|
|
917
934
|
children: r
|
|
918
935
|
})]
|
|
919
936
|
}),
|
|
920
|
-
i && /* @__PURE__ */
|
|
937
|
+
i && /* @__PURE__ */ Y("div", {
|
|
921
938
|
className: "flex min-w-0 flex-col gap-1",
|
|
922
|
-
children: [/* @__PURE__ */
|
|
923
|
-
className: y(o,
|
|
939
|
+
children: [/* @__PURE__ */ J("span", {
|
|
940
|
+
className: y(o, Dt.subtitleText),
|
|
924
941
|
children: e.activeWindowLabel
|
|
925
|
-
}), /* @__PURE__ */
|
|
942
|
+
}), /* @__PURE__ */ J("p", {
|
|
926
943
|
className: s,
|
|
927
944
|
children: i
|
|
928
945
|
})]
|
|
929
946
|
})
|
|
930
947
|
] });
|
|
931
|
-
},
|
|
948
|
+
}, kt = /* @__PURE__ */ function(e) {
|
|
932
949
|
return e.Success = "success", e.Error = "error", e.InProgress = "inProgress", e.Missed = "missed", e;
|
|
933
950
|
}({}), Q = {
|
|
934
951
|
subtitleText: "_subtitleText_1sqjy_1",
|
|
@@ -938,33 +955,33 @@ var Ke = "1180px", qe = {
|
|
|
938
955
|
currentRun: "_currentRun_1sqjy_17",
|
|
939
956
|
interactiveRow: "_interactiveRow_1sqjy_27",
|
|
940
957
|
unreadDot: "_unreadDot_1sqjy_38"
|
|
941
|
-
},
|
|
958
|
+
}, At = ({ status: e }) => {
|
|
942
959
|
switch (e) {
|
|
943
|
-
case
|
|
944
|
-
size:
|
|
960
|
+
case kt.Success: return /* @__PURE__ */ J(W, {
|
|
961
|
+
size: D.SM,
|
|
945
962
|
className: Q.successIcon,
|
|
946
963
|
"aria-hidden": !0,
|
|
947
|
-
stroke:
|
|
964
|
+
stroke: O
|
|
948
965
|
});
|
|
949
|
-
case
|
|
950
|
-
size:
|
|
966
|
+
case kt.Error: return /* @__PURE__ */ J(ke, {
|
|
967
|
+
size: D.SM,
|
|
951
968
|
className: Q.errorIcon,
|
|
952
969
|
"aria-hidden": !0,
|
|
953
|
-
stroke:
|
|
970
|
+
stroke: O
|
|
954
971
|
});
|
|
955
|
-
case
|
|
972
|
+
case kt.InProgress: return /* @__PURE__ */ J("span", {
|
|
956
973
|
"aria-hidden": !0,
|
|
957
|
-
children: /* @__PURE__ */
|
|
974
|
+
children: /* @__PURE__ */ J(xe, { size: D.SM })
|
|
958
975
|
});
|
|
959
|
-
case
|
|
960
|
-
size:
|
|
976
|
+
case kt.Missed: return /* @__PURE__ */ J(De, {
|
|
977
|
+
size: D.SM,
|
|
961
978
|
className: Q.missedIcon,
|
|
962
979
|
"aria-hidden": !0,
|
|
963
|
-
stroke:
|
|
980
|
+
stroke: O
|
|
964
981
|
});
|
|
965
982
|
default: return null;
|
|
966
983
|
}
|
|
967
|
-
},
|
|
984
|
+
}, jt = ({ 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 }) => {
|
|
968
985
|
let { colors: d, typography: f } = u ?? {}, p = f?.runTimestampClassName ?? "dial-small-paragraph-text", m = f?.runTimestampUnreadClassName ?? "dial-small-paragraph-semi-text", h = f?.subtitleClassName ?? "dial-body-text", g = c.unreadIndicatorLabel ?? "Unread", _ = v({
|
|
969
986
|
"--strhl-success-icon": d?.successIconColor,
|
|
970
987
|
"--strhl-error-icon": d?.errorIconColor,
|
|
@@ -977,7 +994,7 @@ var Ke = "1180px", qe = {
|
|
|
977
994
|
"--strhl-row-focus-bg": u?.rowFocusBackground,
|
|
978
995
|
"--strhl-row-focus-outline": u?.rowFocusOutline
|
|
979
996
|
}), b = (e) => {
|
|
980
|
-
let t = c.runStatusLabels[e.status], n = e.id === o, r = e.status ===
|
|
997
|
+
let t = c.runStatusLabels[e.status], n = e.id === o, r = e.status === kt.Error && e.errorText ? e.errorText : void 0, i = [
|
|
981
998
|
r,
|
|
982
999
|
e.isUnread ? g : void 0,
|
|
983
1000
|
n ? c.currentRunLabel : void 0
|
|
@@ -985,62 +1002,62 @@ var Ke = "1180px", qe = {
|
|
|
985
1002
|
t,
|
|
986
1003
|
e.timestampLabel,
|
|
987
1004
|
e.durationLabel
|
|
988
|
-
].filter(Boolean).join(" "), ...i].join(" — "), l = !!e.conversationId && !!s, u = y("-mx-(--strhl-row-bleed,0px) flex min-h-(--strhl-row-min-height,32px) max-w-[328px] items-center justify-between gap-2 rounded-full px-3", n && Q.currentRun, l && "w-full cursor-pointer text-start", l && Q.interactiveRow), d = /* @__PURE__ */
|
|
1005
|
+
].filter(Boolean).join(" "), ...i].join(" — "), l = !!e.conversationId && !!s, u = y("-mx-(--strhl-row-bleed,0px) flex min-h-(--strhl-row-min-height,32px) max-w-[328px] items-center justify-between gap-2 rounded-full px-3", n && Q.currentRun, l && "w-full cursor-pointer text-start", l && Q.interactiveRow), d = /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ Y("span", {
|
|
989
1006
|
className: "flex min-w-0 items-center gap-1",
|
|
990
|
-
children: [r ? /* @__PURE__ */
|
|
1007
|
+
children: [r ? /* @__PURE__ */ J(Te, {
|
|
991
1008
|
tooltip: r,
|
|
992
1009
|
asChild: !0,
|
|
993
1010
|
contentClassName: "max-w-[320px] whitespace-pre-wrap break-words",
|
|
994
|
-
children: /* @__PURE__ */
|
|
1011
|
+
children: /* @__PURE__ */ J("span", {
|
|
995
1012
|
className: "flex shrink-0",
|
|
996
1013
|
tabIndex: l ? void 0 : 0,
|
|
997
|
-
children: /* @__PURE__ */
|
|
1014
|
+
children: /* @__PURE__ */ J(At, { status: e.status })
|
|
998
1015
|
})
|
|
999
|
-
}) : /* @__PURE__ */
|
|
1016
|
+
}) : /* @__PURE__ */ J(At, { status: e.status }), /* @__PURE__ */ Y("span", {
|
|
1000
1017
|
className: "flex min-w-0 items-center gap-1",
|
|
1001
|
-
children: [/* @__PURE__ */
|
|
1018
|
+
children: [/* @__PURE__ */ J("span", {
|
|
1002
1019
|
className: y(e.isUnread ? m : p, "truncate"),
|
|
1003
1020
|
children: e.timestampLabel
|
|
1004
|
-
}), e.durationLabel && /* @__PURE__ */
|
|
1021
|
+
}), e.durationLabel && /* @__PURE__ */ J("span", {
|
|
1005
1022
|
className: y(p, Q.subtitleText, "shrink-0"),
|
|
1006
1023
|
children: e.durationLabel
|
|
1007
1024
|
})]
|
|
1008
1025
|
})]
|
|
1009
|
-
}), /* @__PURE__ */
|
|
1026
|
+
}), /* @__PURE__ */ J("span", {
|
|
1010
1027
|
className: "relative flex size-3 shrink-0 items-center justify-center",
|
|
1011
|
-
children: e.isUnread && /* @__PURE__ */
|
|
1028
|
+
children: e.isUnread && /* @__PURE__ */ J("span", {
|
|
1012
1029
|
className: y("size-[5.33px] rounded-full", Q.unreadDot),
|
|
1013
1030
|
"aria-hidden": !0
|
|
1014
1031
|
})
|
|
1015
1032
|
})] });
|
|
1016
|
-
return l ? /* @__PURE__ */
|
|
1033
|
+
return l ? /* @__PURE__ */ J("li", { children: /* @__PURE__ */ J("button", {
|
|
1017
1034
|
type: "button",
|
|
1018
1035
|
"aria-label": a,
|
|
1019
1036
|
"aria-current": n ? "true" : void 0,
|
|
1020
1037
|
className: u,
|
|
1021
1038
|
onClick: () => s?.(e),
|
|
1022
1039
|
children: d
|
|
1023
|
-
}) }, e.id) : /* @__PURE__ */
|
|
1040
|
+
}) }, e.id) : /* @__PURE__ */ J("li", {
|
|
1024
1041
|
"aria-label": a,
|
|
1025
1042
|
"aria-current": n ? "true" : void 0,
|
|
1026
1043
|
className: u,
|
|
1027
1044
|
children: d
|
|
1028
1045
|
}, e.id);
|
|
1029
|
-
}, x = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */
|
|
1046
|
+
}, x = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */ Y("li", {
|
|
1030
1047
|
"aria-hidden": "true",
|
|
1031
1048
|
className: "-mx-(--strhl-row-bleed,0px) flex min-h-(--strhl-row-min-height,32px) max-w-[328px] items-center justify-between gap-2 px-3",
|
|
1032
|
-
children: [/* @__PURE__ */
|
|
1033
|
-
variant:
|
|
1049
|
+
children: [/* @__PURE__ */ J(B, {
|
|
1050
|
+
variant: V.Rectangular,
|
|
1034
1051
|
width: "160px",
|
|
1035
1052
|
height: "16px"
|
|
1036
|
-
}), /* @__PURE__ */
|
|
1037
|
-
variant:
|
|
1053
|
+
}), /* @__PURE__ */ J(B, {
|
|
1054
|
+
variant: V.Rectangular,
|
|
1038
1055
|
width: "16px",
|
|
1039
1056
|
height: "16px",
|
|
1040
1057
|
className: "shrink-0 rounded-full"
|
|
1041
1058
|
})]
|
|
1042
1059
|
}, `history-skeleton-${t}`));
|
|
1043
|
-
return t && e.length === 0 ? /* @__PURE__ */
|
|
1060
|
+
return t && e.length === 0 ? /* @__PURE__ */ J("ul", {
|
|
1044
1061
|
style: {
|
|
1045
1062
|
..._,
|
|
1046
1063
|
"--strhl-row-min-height": u?.rowMinHeight
|
|
@@ -1048,26 +1065,26 @@ var Ke = "1180px", qe = {
|
|
|
1048
1065
|
"aria-label": c.historyTitle,
|
|
1049
1066
|
className: "flex flex-col gap-0.5",
|
|
1050
1067
|
children: x(r)
|
|
1051
|
-
}) : i && e.length === 0 ? /* @__PURE__ */
|
|
1068
|
+
}) : i && e.length === 0 ? /* @__PURE__ */ Y("div", {
|
|
1052
1069
|
style: _,
|
|
1053
1070
|
className: "flex flex-col items-start gap-3",
|
|
1054
|
-
children: [/* @__PURE__ */
|
|
1071
|
+
children: [/* @__PURE__ */ J("p", {
|
|
1055
1072
|
role: "status",
|
|
1056
1073
|
className: y(h, Q.subtitleText),
|
|
1057
1074
|
children: c.errorLabel
|
|
1058
|
-
}), /* @__PURE__ */
|
|
1075
|
+
}), /* @__PURE__ */ J(A, {
|
|
1059
1076
|
label: c.retryLabel,
|
|
1060
1077
|
onClick: a
|
|
1061
1078
|
})]
|
|
1062
|
-
}) : e.length === 0 ? /* @__PURE__ */
|
|
1079
|
+
}) : e.length === 0 ? /* @__PURE__ */ J("div", {
|
|
1063
1080
|
style: _,
|
|
1064
1081
|
className: "w-full py-4",
|
|
1065
|
-
children: /* @__PURE__ */
|
|
1082
|
+
children: /* @__PURE__ */ J(_e, {
|
|
1066
1083
|
title: c.emptyLabel,
|
|
1067
1084
|
description: c.emptyDescription,
|
|
1068
1085
|
live: !0
|
|
1069
1086
|
})
|
|
1070
|
-
}) : /* @__PURE__ */
|
|
1087
|
+
}) : /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ Y("ul", {
|
|
1071
1088
|
style: {
|
|
1072
1089
|
..._,
|
|
1073
1090
|
"--strhl-row-min-height": u?.rowMinHeight
|
|
@@ -1077,55 +1094,55 @@ var Ke = "1180px", qe = {
|
|
|
1077
1094
|
children: [
|
|
1078
1095
|
e.map(b),
|
|
1079
1096
|
n && x(r),
|
|
1080
|
-
i ? /* @__PURE__ */
|
|
1097
|
+
i ? /* @__PURE__ */ Y("li", {
|
|
1081
1098
|
className: "flex flex-col items-start gap-3 px-5 py-2",
|
|
1082
|
-
children: [/* @__PURE__ */
|
|
1099
|
+
children: [/* @__PURE__ */ J("p", {
|
|
1083
1100
|
className: y(h, Q.subtitleText),
|
|
1084
1101
|
children: c.errorLabel
|
|
1085
|
-
}), /* @__PURE__ */
|
|
1102
|
+
}), /* @__PURE__ */ J(A, {
|
|
1086
1103
|
label: c.retryLabel,
|
|
1087
1104
|
onClick: a
|
|
1088
1105
|
})]
|
|
1089
1106
|
}) : l
|
|
1090
1107
|
]
|
|
1091
|
-
}), /* @__PURE__ */
|
|
1092
|
-
politeness:
|
|
1108
|
+
}), /* @__PURE__ */ J(M, {
|
|
1109
|
+
politeness: he.Assertive,
|
|
1093
1110
|
visuallyHidden: !0,
|
|
1094
|
-
as:
|
|
1111
|
+
as: N.Span,
|
|
1095
1112
|
children: i ? c.errorLabel : ""
|
|
1096
1113
|
})] });
|
|
1097
|
-
},
|
|
1114
|
+
}, Mt = {
|
|
1098
1115
|
historyCard: "_historyCard_153p9_4",
|
|
1099
1116
|
subtitleText: "_subtitleText_153p9_8",
|
|
1100
1117
|
cardLayout: "_cardLayout_153p9_13"
|
|
1101
|
-
},
|
|
1102
|
-
let b = e ===
|
|
1118
|
+
}, Nt = ({ variant: e, labels: t, nextRunLabel: n, items: r, isLoading: i = !1, isLoadingMore: a = !1, skeletonCount: o = 6, error: s, onRetry: c, loadMoreError: l, onRetryLoadMore: u, hasMore: d = !1, onLoadMore: f, onRunClick: p, runTimestampClassName: m = "dial-small-text", runTimestampUnreadClassName: h = "dial-small-semi-text", sectionTitleClassName: g = "dial-body-semi-text", colors: _, styles: v }) => {
|
|
1119
|
+
let b = e === Ct.Card, x = b ? y("sticky bottom-0 z-10 rounded-b-xl px-6 pb-5 pt-2", Mt.historyCard) : "pt-2", ee = t.historyLoadMoreErrorLabel ?? t.historyErrorLabel, te = l ? /* @__PURE__ */ Y("li", {
|
|
1103
1120
|
className: x,
|
|
1104
|
-
children: [/* @__PURE__ */
|
|
1121
|
+
children: [/* @__PURE__ */ J("p", { children: ee }), u && /* @__PURE__ */ J(A, {
|
|
1105
1122
|
label: t.historyRetryLabel,
|
|
1106
1123
|
onClick: u,
|
|
1107
1124
|
disabled: a
|
|
1108
1125
|
})]
|
|
1109
|
-
}) : f && d && t.historyShowMoreLabel ? /* @__PURE__ */
|
|
1126
|
+
}) : f && d && t.historyShowMoreLabel ? /* @__PURE__ */ J("li", {
|
|
1110
1127
|
className: x,
|
|
1111
|
-
children: /* @__PURE__ */
|
|
1128
|
+
children: /* @__PURE__ */ J(A, {
|
|
1112
1129
|
label: t.historyShowMoreLabel,
|
|
1113
1130
|
onClick: f,
|
|
1114
1131
|
disabled: a
|
|
1115
1132
|
})
|
|
1116
|
-
}) : void 0, S = n ? /* @__PURE__ */
|
|
1117
|
-
className: y(m,
|
|
1133
|
+
}) : void 0, S = n ? /* @__PURE__ */ J("p", {
|
|
1134
|
+
className: y(m, Mt.subtitleText),
|
|
1118
1135
|
children: n
|
|
1119
|
-
}) : void 0, C = /* @__PURE__ */
|
|
1120
|
-
politeness:
|
|
1136
|
+
}) : void 0, C = /* @__PURE__ */ J(M, {
|
|
1137
|
+
politeness: he.Assertive,
|
|
1121
1138
|
visuallyHidden: !0,
|
|
1122
|
-
as:
|
|
1139
|
+
as: N.Span,
|
|
1123
1140
|
children: l ? ee : ""
|
|
1124
|
-
}), w = t.historyLoadingMoreLabel ? /* @__PURE__ */
|
|
1141
|
+
}), w = t.historyLoadingMoreLabel ? /* @__PURE__ */ J(M, {
|
|
1125
1142
|
visuallyHidden: !0,
|
|
1126
|
-
as:
|
|
1143
|
+
as: N.Span,
|
|
1127
1144
|
children: a ? t.historyLoadingMoreLabel : ""
|
|
1128
|
-
}) : void 0, ne = /* @__PURE__ */
|
|
1145
|
+
}) : void 0, ne = /* @__PURE__ */ J(jt, {
|
|
1129
1146
|
items: r,
|
|
1130
1147
|
isLoading: i,
|
|
1131
1148
|
isLoadingMore: a,
|
|
@@ -1155,13 +1172,13 @@ var Ke = "1180px", qe = {
|
|
|
1155
1172
|
rowFocusOutline: v?.rowFocusOutline
|
|
1156
1173
|
}
|
|
1157
1174
|
});
|
|
1158
|
-
return b ? /* @__PURE__ */
|
|
1159
|
-
className: y("flex max-h-(--st-history-max-height,70vh) w-full max-w-full flex-col overflow-y-auto rounded-xl shadow-md",
|
|
1175
|
+
return b ? /* @__PURE__ */ Y("div", {
|
|
1176
|
+
className: y("flex max-h-(--st-history-max-height,70vh) w-full max-w-full flex-col overflow-y-auto rounded-xl shadow-md", Mt.historyCard, Mt.cardLayout),
|
|
1160
1177
|
style: { "--st-history-max-height": v?.maxHeight },
|
|
1161
|
-
children: [/* @__PURE__ */
|
|
1162
|
-
className: y("sticky top-0 z-10 flex flex-col gap-4 rounded-t-xl px-6 pt-5 pb-2",
|
|
1178
|
+
children: [/* @__PURE__ */ Y("div", {
|
|
1179
|
+
className: y("sticky top-0 z-10 flex flex-col gap-4 rounded-t-xl px-6 pt-5 pb-2", Mt.historyCard),
|
|
1163
1180
|
children: [
|
|
1164
|
-
/* @__PURE__ */
|
|
1181
|
+
/* @__PURE__ */ J("h2", {
|
|
1165
1182
|
className: g,
|
|
1166
1183
|
children: t.historyTitle
|
|
1167
1184
|
}),
|
|
@@ -1169,12 +1186,12 @@ var Ke = "1180px", qe = {
|
|
|
1169
1186
|
w,
|
|
1170
1187
|
C
|
|
1171
1188
|
]
|
|
1172
|
-
}), /* @__PURE__ */
|
|
1189
|
+
}), /* @__PURE__ */ J("div", {
|
|
1173
1190
|
className: "flex flex-1 flex-col gap-4 px-6 pb-2",
|
|
1174
1191
|
style: { "--strhl-row-bleed": "12px" },
|
|
1175
1192
|
children: ne
|
|
1176
1193
|
})]
|
|
1177
|
-
}) : /* @__PURE__ */
|
|
1194
|
+
}) : /* @__PURE__ */ Y("div", {
|
|
1178
1195
|
className: "flex flex-col gap-4",
|
|
1179
1196
|
children: [
|
|
1180
1197
|
S,
|
|
@@ -1196,28 +1213,28 @@ var Ke = "1180px", qe = {
|
|
|
1196
1213
|
actionButton: "_actionButton_hdn5b_75",
|
|
1197
1214
|
roundActionButton: "_roundActionButton_hdn5b_82",
|
|
1198
1215
|
stickyTabs: "_stickyTabs_hdn5b_88"
|
|
1199
|
-
},
|
|
1200
|
-
let { colors:
|
|
1201
|
-
"--stdv-bg":
|
|
1202
|
-
"--stdv-header-border":
|
|
1203
|
-
"--stdv-details-border":
|
|
1204
|
-
"--stdv-subtitle-text":
|
|
1205
|
-
"--stdv-description-text":
|
|
1206
|
-
"--stdv-history-bg":
|
|
1207
|
-
}),
|
|
1216
|
+
}, Pt = "min-w-0 max-w-[600px]", Ft = ({ labels: e, onBack: t, onEdit: n, onStartNow: r, isStarting: i = !1, isStartNowDisabled: a = !1, isStartNowBusy: o = !1, onDelete: s, isDeleting: c = !1, isDeleted: l = !1, isCompleted: u = !1, isActive: d, isActiveUpdating: f = !1, isActiveDisabled: p = !1, activeDisabledReason: m, onActiveChange: h, displayName: g, isLoading: _ = !1, error: b, onRetry: x, description: te, modelLabel: S, repeatsLabel: C, activeWindowLabel: w, completedLabel: ne, nextRunLabel: re, instructionsMarkdown: T, skillDisplayNames: ae, renderInstructions: E, runs: oe, runsIsLoading: se = !1, runsIsLoadingMore: le = !1, runsSkeletonCount: k = 6, runsError: ue, onRunsRetry: de, runsLoadMoreError: fe, onRunsRetryLoadMore: pe, runsHasMore: me = !1, onRunsLoadMore: he, onRunClick: ge, styles: _e, className: F, backIcon: I, layout: L, historyStyles: ve }) => {
|
|
1217
|
+
let { colors: R, typography: ye } = _e ?? {}, z = ye?.titleClassName ?? "dial-h2-text", be = ye?.sectionTitleClassName ?? "dial-body-semi-text", B = ye?.fieldLabelClassName ?? "dial-tiny-text", V = ye?.fieldValueClassName ?? "dial-small-text", we = ye?.runTimestampClassName ?? "dial-small-text", Te = v({
|
|
1218
|
+
"--stdv-bg": R?.background,
|
|
1219
|
+
"--stdv-header-border": R?.headerBorder,
|
|
1220
|
+
"--stdv-details-border": R?.detailsColumnBorder,
|
|
1221
|
+
"--stdv-subtitle-text": R?.subtitleText,
|
|
1222
|
+
"--stdv-description-text": R?.descriptionText,
|
|
1223
|
+
"--stdv-history-bg": R?.historyCardBackground
|
|
1224
|
+
}), Ee = ee(), [De, H] = He(St.Details), U = K(), W = o && !i ? e.startNowBusyLabel : void 0, ke = [
|
|
1208
1225
|
{
|
|
1209
|
-
id:
|
|
1226
|
+
id: St.Details,
|
|
1210
1227
|
label: e.detailsTitle
|
|
1211
1228
|
},
|
|
1212
1229
|
{
|
|
1213
|
-
id:
|
|
1230
|
+
id: St.Configuration,
|
|
1214
1231
|
label: e.configurationTitle
|
|
1215
1232
|
},
|
|
1216
1233
|
{
|
|
1217
|
-
id:
|
|
1234
|
+
id: St.History,
|
|
1218
1235
|
label: e.historyTitle
|
|
1219
1236
|
}
|
|
1220
|
-
],
|
|
1237
|
+
], je = ke.find((e) => e.id === De)?.label ?? e.detailsTitle, G = /* @__PURE__ */ J(Ot, {
|
|
1221
1238
|
labels: {
|
|
1222
1239
|
descriptionLabel: e.descriptionLabel,
|
|
1223
1240
|
modelLabel: e.modelLabel,
|
|
@@ -1230,14 +1247,14 @@ var Ke = "1180px", qe = {
|
|
|
1230
1247
|
repeatsLabel: C,
|
|
1231
1248
|
activeWindowLabel: w,
|
|
1232
1249
|
completedLabel: ne,
|
|
1233
|
-
fieldLabelClassName:
|
|
1234
|
-
fieldValueClassName:
|
|
1235
|
-
}),
|
|
1250
|
+
fieldLabelClassName: B,
|
|
1251
|
+
fieldValueClassName: V
|
|
1252
|
+
}), Pe = /* @__PURE__ */ J(Et, {
|
|
1236
1253
|
instructionsLabel: e.instructionsLabel,
|
|
1237
1254
|
skillLabel: e.skillLabel,
|
|
1238
|
-
skillDisplayNames:
|
|
1239
|
-
instructionsMarkdown:
|
|
1240
|
-
renderInstructions:
|
|
1255
|
+
skillDisplayNames: ae,
|
|
1256
|
+
instructionsMarkdown: T,
|
|
1257
|
+
renderInstructions: E,
|
|
1241
1258
|
markdownLabels: {
|
|
1242
1259
|
codeBlockCopyLabel: e.codeBlockCopyLabel,
|
|
1243
1260
|
codeBlockCopiedLabel: e.codeBlockCopiedLabel,
|
|
@@ -1245,8 +1262,8 @@ var Ke = "1180px", qe = {
|
|
|
1245
1262
|
tableScrollRegionAriaLabel: e.tableScrollRegionAriaLabel,
|
|
1246
1263
|
mathScrollRegionAriaLabel: e.mathScrollRegionAriaLabel
|
|
1247
1264
|
},
|
|
1248
|
-
fieldLabelClassName:
|
|
1249
|
-
}),
|
|
1265
|
+
fieldLabelClassName: B
|
|
1266
|
+
}), Fe = (t) => /* @__PURE__ */ J(Nt, {
|
|
1250
1267
|
variant: t,
|
|
1251
1268
|
labels: {
|
|
1252
1269
|
historyTitle: e.historyTitle,
|
|
@@ -1261,108 +1278,108 @@ var Ke = "1180px", qe = {
|
|
|
1261
1278
|
unreadIndicatorLabel: e.unreadIndicatorLabel
|
|
1262
1279
|
},
|
|
1263
1280
|
nextRunLabel: re,
|
|
1264
|
-
items:
|
|
1265
|
-
isLoading:
|
|
1266
|
-
isLoadingMore:
|
|
1267
|
-
skeletonCount:
|
|
1268
|
-
error:
|
|
1269
|
-
onRetry:
|
|
1270
|
-
loadMoreError:
|
|
1271
|
-
onRetryLoadMore:
|
|
1272
|
-
hasMore:
|
|
1273
|
-
onLoadMore:
|
|
1274
|
-
onRunClick:
|
|
1275
|
-
runTimestampClassName:
|
|
1276
|
-
sectionTitleClassName:
|
|
1277
|
-
colors:
|
|
1278
|
-
styles:
|
|
1281
|
+
items: oe,
|
|
1282
|
+
isLoading: se,
|
|
1283
|
+
isLoadingMore: le,
|
|
1284
|
+
skeletonCount: k,
|
|
1285
|
+
error: ue,
|
|
1286
|
+
onRetry: de,
|
|
1287
|
+
loadMoreError: fe,
|
|
1288
|
+
onRetryLoadMore: pe,
|
|
1289
|
+
hasMore: me,
|
|
1290
|
+
onLoadMore: he,
|
|
1291
|
+
onRunClick: ge,
|
|
1292
|
+
runTimestampClassName: we,
|
|
1293
|
+
sectionTitleClassName: be,
|
|
1294
|
+
colors: R,
|
|
1295
|
+
styles: ve
|
|
1279
1296
|
});
|
|
1280
|
-
return /* @__PURE__ */
|
|
1281
|
-
style:
|
|
1282
|
-
className: y("flex h-full min-h-0 w-full flex-col overflow-hidden", $.container,
|
|
1297
|
+
return /* @__PURE__ */ Y("div", {
|
|
1298
|
+
style: Te,
|
|
1299
|
+
className: y("flex h-full min-h-0 w-full flex-col overflow-hidden", $.container, F),
|
|
1283
1300
|
children: [
|
|
1284
|
-
/* @__PURE__ */
|
|
1301
|
+
/* @__PURE__ */ Y("div", {
|
|
1285
1302
|
className: y("flex min-h-16 shrink-0 items-start justify-between gap-2 px-4 py-2 desktop:h-16 desktop:flex-nowrap desktop:items-center desktop:px-8 desktop:py-0", $.header),
|
|
1286
|
-
children: [/* @__PURE__ */
|
|
1303
|
+
children: [/* @__PURE__ */ Y("div", {
|
|
1287
1304
|
className: "flex min-w-0 items-center gap-2",
|
|
1288
1305
|
children: [
|
|
1289
|
-
/* @__PURE__ */
|
|
1290
|
-
icon:
|
|
1291
|
-
size:
|
|
1306
|
+
/* @__PURE__ */ J(j, {
|
|
1307
|
+
icon: I === void 0 ? /* @__PURE__ */ J(Oe, {
|
|
1308
|
+
size: D.LG,
|
|
1292
1309
|
className: "rtl:scale-x-[-1]",
|
|
1293
1310
|
"aria-hidden": !0,
|
|
1294
|
-
stroke:
|
|
1295
|
-
}) :
|
|
1311
|
+
stroke: O
|
|
1312
|
+
}) : I,
|
|
1296
1313
|
"aria-label": e.backAriaLabel,
|
|
1297
1314
|
onClick: t
|
|
1298
1315
|
}),
|
|
1299
|
-
/* @__PURE__ */
|
|
1300
|
-
className: y(
|
|
1301
|
-
children: /* @__PURE__ */
|
|
1316
|
+
/* @__PURE__ */ J("h1", {
|
|
1317
|
+
className: y(Pt, $.desktopTitle),
|
|
1318
|
+
children: /* @__PURE__ */ J(ce, {
|
|
1302
1319
|
text: g,
|
|
1303
|
-
className:
|
|
1320
|
+
className: z
|
|
1304
1321
|
})
|
|
1305
1322
|
}),
|
|
1306
|
-
l && /* @__PURE__ */
|
|
1307
|
-
className: y("shrink-0", $.desktopBadge,
|
|
1323
|
+
l && /* @__PURE__ */ J("span", {
|
|
1324
|
+
className: y("shrink-0", $.desktopBadge, V, $.subtitleText),
|
|
1308
1325
|
children: e.deletedStateLabel
|
|
1309
1326
|
})
|
|
1310
1327
|
]
|
|
1311
|
-
}), /* @__PURE__ */
|
|
1328
|
+
}), /* @__PURE__ */ Y("div", {
|
|
1312
1329
|
className: y("flex min-w-0 flex-1 flex-wrap items-center justify-end gap-2 desktop:flex-none desktop:flex-nowrap", $.headerActions),
|
|
1313
1330
|
children: [
|
|
1314
|
-
!l && !u && d !== void 0 && /* @__PURE__ */
|
|
1331
|
+
!l && !u && d !== void 0 && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(Se, {
|
|
1315
1332
|
id: "scheduled-task-active-switch",
|
|
1316
1333
|
labelProps: { label: e.activeStatusLabel },
|
|
1317
1334
|
isOn: d,
|
|
1318
1335
|
disabled: f || p || c,
|
|
1319
1336
|
onChange: (e) => h?.(e)
|
|
1320
|
-
}), p && m && /* @__PURE__ */
|
|
1321
|
-
className: y(
|
|
1337
|
+
}), p && m && /* @__PURE__ */ J("span", {
|
|
1338
|
+
className: y(V, $.subtitleText),
|
|
1322
1339
|
children: m
|
|
1323
1340
|
})] }),
|
|
1324
|
-
!l && s && /* @__PURE__ */
|
|
1341
|
+
!l && s && /* @__PURE__ */ J(A, {
|
|
1325
1342
|
variant: ie.Danger,
|
|
1326
1343
|
label: e.deleteButtonLabel,
|
|
1327
|
-
iconBefore: /* @__PURE__ */
|
|
1328
|
-
size:
|
|
1344
|
+
iconBefore: /* @__PURE__ */ J(Ne, {
|
|
1345
|
+
size: D.SM,
|
|
1329
1346
|
"aria-hidden": !0,
|
|
1330
|
-
stroke:
|
|
1347
|
+
stroke: O
|
|
1331
1348
|
}),
|
|
1332
1349
|
onClick: s,
|
|
1333
1350
|
disabled: c,
|
|
1334
1351
|
textClassName: $.actionLabel,
|
|
1335
1352
|
className: y("min-h-11 shrink-0", $.actionButton)
|
|
1336
1353
|
}),
|
|
1337
|
-
!l && n && /* @__PURE__ */
|
|
1354
|
+
!l && n && /* @__PURE__ */ J(P, {
|
|
1338
1355
|
label: e.editButtonLabel,
|
|
1339
|
-
iconBefore: /* @__PURE__ */
|
|
1340
|
-
size:
|
|
1356
|
+
iconBefore: /* @__PURE__ */ J(Ae, {
|
|
1357
|
+
size: D.SM,
|
|
1341
1358
|
"aria-hidden": !0,
|
|
1342
|
-
stroke:
|
|
1359
|
+
stroke: O
|
|
1343
1360
|
}),
|
|
1344
1361
|
onClick: n,
|
|
1345
1362
|
disabled: c,
|
|
1346
1363
|
textClassName: $.actionLabel,
|
|
1347
1364
|
className: y("min-h-11 shrink-0", $.actionButton, $.roundActionButton)
|
|
1348
1365
|
}),
|
|
1349
|
-
!l && r && e.startNowButtonLabel && /* @__PURE__ */
|
|
1366
|
+
!l && r && e.startNowButtonLabel && /* @__PURE__ */ Y("div", {
|
|
1350
1367
|
"aria-busy": i,
|
|
1351
|
-
children: [
|
|
1352
|
-
id:
|
|
1368
|
+
children: [W && /* @__PURE__ */ J("span", {
|
|
1369
|
+
id: U,
|
|
1353
1370
|
className: "sr-only",
|
|
1354
|
-
children:
|
|
1355
|
-
}), /* @__PURE__ */
|
|
1371
|
+
children: W
|
|
1372
|
+
}), /* @__PURE__ */ J(P, {
|
|
1356
1373
|
label: i ? e.startingLabel ?? e.startNowButtonLabel : e.startNowButtonLabel,
|
|
1357
|
-
iconBefore: /* @__PURE__ */
|
|
1358
|
-
size:
|
|
1374
|
+
iconBefore: /* @__PURE__ */ J(Me, {
|
|
1375
|
+
size: D.SM,
|
|
1359
1376
|
"aria-hidden": !0,
|
|
1360
|
-
stroke:
|
|
1377
|
+
stroke: O
|
|
1361
1378
|
}),
|
|
1362
1379
|
onClick: r,
|
|
1363
1380
|
disabled: c || i || a || o,
|
|
1364
|
-
"aria-describedby":
|
|
1365
|
-
tooltipProps:
|
|
1381
|
+
"aria-describedby": W ? U : void 0,
|
|
1382
|
+
tooltipProps: W ? { tooltip: W } : void 0,
|
|
1366
1383
|
textClassName: $.actionLabel,
|
|
1367
1384
|
className: y("min-h-11 shrink-0", $.actionButton, $.roundActionButton)
|
|
1368
1385
|
})]
|
|
@@ -1370,107 +1387,107 @@ var Ke = "1180px", qe = {
|
|
|
1370
1387
|
]
|
|
1371
1388
|
})]
|
|
1372
1389
|
}),
|
|
1373
|
-
/* @__PURE__ */
|
|
1390
|
+
/* @__PURE__ */ Y("div", {
|
|
1374
1391
|
className: y("min-w-0 items-center gap-2 px-4 py-3", $.mobileTitleRow),
|
|
1375
|
-
children: [/* @__PURE__ */
|
|
1376
|
-
className:
|
|
1377
|
-
children: /* @__PURE__ */
|
|
1392
|
+
children: [/* @__PURE__ */ J("h1", {
|
|
1393
|
+
className: Pt,
|
|
1394
|
+
children: /* @__PURE__ */ J(ce, {
|
|
1378
1395
|
text: g,
|
|
1379
|
-
className:
|
|
1396
|
+
className: z
|
|
1380
1397
|
})
|
|
1381
|
-
}), l && /* @__PURE__ */
|
|
1382
|
-
className: y("shrink-0",
|
|
1398
|
+
}), l && /* @__PURE__ */ J("span", {
|
|
1399
|
+
className: y("shrink-0", V, $.subtitleText),
|
|
1383
1400
|
children: e.deletedStateLabel
|
|
1384
1401
|
})]
|
|
1385
1402
|
}),
|
|
1386
|
-
e.activeStatusAnnouncement != null && /* @__PURE__ */
|
|
1403
|
+
e.activeStatusAnnouncement != null && /* @__PURE__ */ J(M, {
|
|
1387
1404
|
visuallyHidden: !0,
|
|
1388
|
-
as:
|
|
1405
|
+
as: N.Span,
|
|
1389
1406
|
children: e.activeStatusAnnouncement
|
|
1390
1407
|
}),
|
|
1391
|
-
e.startStatusAnnouncement != null && /* @__PURE__ */
|
|
1408
|
+
e.startStatusAnnouncement != null && /* @__PURE__ */ J(M, {
|
|
1392
1409
|
visuallyHidden: !0,
|
|
1393
|
-
as:
|
|
1410
|
+
as: N.Span,
|
|
1394
1411
|
children: e.startStatusAnnouncement
|
|
1395
1412
|
}),
|
|
1396
|
-
_ && /* @__PURE__ */
|
|
1413
|
+
_ && /* @__PURE__ */ J("div", {
|
|
1397
1414
|
className: "flex flex-1 items-center justify-center",
|
|
1398
|
-
children: /* @__PURE__ */
|
|
1415
|
+
children: /* @__PURE__ */ J(xe, {})
|
|
1399
1416
|
}),
|
|
1400
|
-
!_ && b && /* @__PURE__ */
|
|
1417
|
+
!_ && b && /* @__PURE__ */ Y("div", {
|
|
1401
1418
|
className: "flex flex-1 flex-col items-center justify-center gap-3",
|
|
1402
|
-
children: [/* @__PURE__ */
|
|
1403
|
-
className: y(
|
|
1419
|
+
children: [/* @__PURE__ */ J("p", {
|
|
1420
|
+
className: y(V, $.subtitleText),
|
|
1404
1421
|
children: e.errorLabel
|
|
1405
|
-
}), /* @__PURE__ */
|
|
1422
|
+
}), /* @__PURE__ */ J(A, {
|
|
1406
1423
|
label: e.retryLabel,
|
|
1407
1424
|
onClick: x
|
|
1408
1425
|
})]
|
|
1409
1426
|
}),
|
|
1410
|
-
!_ && !b && (
|
|
1427
|
+
!_ && !b && (Ee ? /* @__PURE__ */ Y("div", {
|
|
1411
1428
|
className: "flex min-h-0 flex-1 flex-col overflow-y-auto",
|
|
1412
|
-
children: [/* @__PURE__ */
|
|
1429
|
+
children: [/* @__PURE__ */ J("div", {
|
|
1413
1430
|
className: y("sticky top-0 z-10", $.stickyTabs),
|
|
1414
|
-
children: /* @__PURE__ */
|
|
1431
|
+
children: /* @__PURE__ */ J(Ce, {
|
|
1415
1432
|
ariaLabel: e.tabsAriaLabel ?? "Scheduled task sections",
|
|
1416
1433
|
className: "px-4",
|
|
1417
|
-
tabs:
|
|
1418
|
-
activeTabId:
|
|
1419
|
-
onTabChange:
|
|
1434
|
+
tabs: ke,
|
|
1435
|
+
activeTabId: De,
|
|
1436
|
+
onTabChange: H
|
|
1420
1437
|
})
|
|
1421
|
-
}), /* @__PURE__ */
|
|
1438
|
+
}), /* @__PURE__ */ J("div", {
|
|
1422
1439
|
role: "tabpanel",
|
|
1423
|
-
"aria-label":
|
|
1440
|
+
"aria-label": je,
|
|
1424
1441
|
className: "flex flex-1 flex-col gap-5 px-4 py-6",
|
|
1425
|
-
children:
|
|
1442
|
+
children: De === St.Configuration ? Pe : De === St.History ? Fe(Ct.Flow) : G
|
|
1426
1443
|
})]
|
|
1427
|
-
}) : /* @__PURE__ */
|
|
1444
|
+
}) : /* @__PURE__ */ Y("div", {
|
|
1428
1445
|
style: {
|
|
1429
1446
|
flexDirection: "row",
|
|
1430
|
-
"--st-details-width":
|
|
1431
|
-
"--st-history-width":
|
|
1432
|
-
"--st-history-max-height":
|
|
1433
|
-
"--st-configuration-min-width":
|
|
1447
|
+
"--st-details-width": L?.detailsWidth,
|
|
1448
|
+
"--st-history-width": L?.historyWidth,
|
|
1449
|
+
"--st-history-max-height": L?.historyMaxHeight,
|
|
1450
|
+
"--st-configuration-min-width": L?.configurationMinWidth
|
|
1434
1451
|
},
|
|
1435
1452
|
className: "flex min-h-0 flex-1 overflow-y-auto desktop:overflow-hidden",
|
|
1436
1453
|
children: [
|
|
1437
|
-
/* @__PURE__ */
|
|
1454
|
+
/* @__PURE__ */ Y("div", {
|
|
1438
1455
|
role: "group",
|
|
1439
1456
|
"aria-label": e.detailsTitle,
|
|
1440
1457
|
style: {
|
|
1441
|
-
flex: `0 1 ${
|
|
1458
|
+
flex: `0 1 ${L?.detailsWidth ?? "360px"}`,
|
|
1442
1459
|
maxWidth: "100%"
|
|
1443
1460
|
},
|
|
1444
1461
|
className: y("flex min-h-0 w-full min-w-0 flex-col gap-5 overflow-y-auto border-e px-8 py-6", $.detailsColumn),
|
|
1445
|
-
children: [/* @__PURE__ */
|
|
1446
|
-
className:
|
|
1462
|
+
children: [/* @__PURE__ */ J("h2", {
|
|
1463
|
+
className: be,
|
|
1447
1464
|
children: e.detailsTitle
|
|
1448
|
-
}),
|
|
1465
|
+
}), G]
|
|
1449
1466
|
}),
|
|
1450
|
-
/* @__PURE__ */
|
|
1467
|
+
/* @__PURE__ */ Y("div", {
|
|
1451
1468
|
style: {
|
|
1452
|
-
flex: `1 1 ${
|
|
1469
|
+
flex: `1 1 ${L?.configurationMinWidth ?? "320px"}`,
|
|
1453
1470
|
minWidth: 0
|
|
1454
1471
|
},
|
|
1455
1472
|
className: "flex min-h-0 w-full min-w-0 flex-col gap-5 overflow-y-auto px-8 py-6",
|
|
1456
|
-
children: [/* @__PURE__ */
|
|
1457
|
-
className:
|
|
1473
|
+
children: [/* @__PURE__ */ J("h2", {
|
|
1474
|
+
className: be,
|
|
1458
1475
|
children: e.configurationTitle
|
|
1459
|
-
}),
|
|
1476
|
+
}), Pe]
|
|
1460
1477
|
}),
|
|
1461
|
-
/* @__PURE__ */
|
|
1478
|
+
/* @__PURE__ */ J("div", {
|
|
1462
1479
|
style: {
|
|
1463
|
-
flex: `0 1 calc(${
|
|
1480
|
+
flex: `0 1 calc(${L?.historyWidth ?? "360px"} + 48px)`,
|
|
1464
1481
|
minWidth: 0
|
|
1465
1482
|
},
|
|
1466
1483
|
className: "flex min-h-0 w-full items-start justify-center overflow-y-auto p-6",
|
|
1467
|
-
children:
|
|
1484
|
+
children: Fe(Ct.Card)
|
|
1468
1485
|
})
|
|
1469
1486
|
]
|
|
1470
1487
|
}))
|
|
1471
1488
|
]
|
|
1472
1489
|
});
|
|
1473
|
-
},
|
|
1490
|
+
}, It = { fieldLabel: "_fieldLabel_8nxg8_1" }, Lt = {
|
|
1474
1491
|
h1: "mb-3 mt-6 first:mt-0 [text-wrap:balance]",
|
|
1475
1492
|
h2: "mb-2 mt-5 first:mt-0 [text-wrap:balance]",
|
|
1476
1493
|
h3: "mb-2 mt-4 first:mt-0 [text-wrap:balance]",
|
|
@@ -1485,9 +1502,9 @@ var Ke = "1180px", qe = {
|
|
|
1485
1502
|
link: "break-words [overflow-wrap:anywhere]",
|
|
1486
1503
|
tableWrapper: "my-4",
|
|
1487
1504
|
mathBlock: "my-4"
|
|
1488
|
-
},
|
|
1489
|
-
let u = y(l?.typography?.fieldLabelClassName ?? "dial-tiny-text",
|
|
1490
|
-
let e =
|
|
1505
|
+
}, Rt = ({ modelLabel: e, skillLabel: t, skillDisplayNames: n, instructionsLabel: r, modelDisplayName: i, instructionsMarkdown: a, renderInstructions: o, instructionsClassNames: s, markdownLabels: c, styles: l }) => {
|
|
1506
|
+
let u = y(l?.typography?.fieldLabelClassName ?? "dial-tiny-text", It.fieldLabel), d = l?.typography?.fieldValueClassName ?? "dial-small-text", f = l?.typography?.instructionsHeadingClassName ?? "dial-small-semi-text", p = l?.typography?.instructionsTextClassName ?? "dial-small-text", h = Be(() => {
|
|
1507
|
+
let e = Lt;
|
|
1491
1508
|
return {
|
|
1492
1509
|
...e,
|
|
1493
1510
|
h1: y(f, e.h1),
|
|
@@ -1506,39 +1523,39 @@ var Ke = "1180px", qe = {
|
|
|
1506
1523
|
p,
|
|
1507
1524
|
s
|
|
1508
1525
|
]), g = v({ "--stds-field-label": l?.colors?.fieldLabel });
|
|
1509
|
-
return /* @__PURE__ */
|
|
1526
|
+
return /* @__PURE__ */ Y("div", {
|
|
1510
1527
|
className: "flex flex-col gap-3",
|
|
1511
1528
|
style: g,
|
|
1512
1529
|
children: [
|
|
1513
|
-
i && /* @__PURE__ */
|
|
1530
|
+
i && /* @__PURE__ */ Y("div", {
|
|
1514
1531
|
className: "flex flex-col gap-2",
|
|
1515
|
-
children: [/* @__PURE__ */
|
|
1532
|
+
children: [/* @__PURE__ */ J("span", {
|
|
1516
1533
|
className: u,
|
|
1517
1534
|
children: e
|
|
1518
|
-
}), /* @__PURE__ */
|
|
1535
|
+
}), /* @__PURE__ */ J("p", {
|
|
1519
1536
|
className: d,
|
|
1520
1537
|
children: i
|
|
1521
1538
|
})]
|
|
1522
1539
|
}),
|
|
1523
|
-
!!n?.length && /* @__PURE__ */
|
|
1540
|
+
!!n?.length && /* @__PURE__ */ Y("div", {
|
|
1524
1541
|
className: "flex min-w-0 flex-col gap-2",
|
|
1525
|
-
children: [/* @__PURE__ */
|
|
1542
|
+
children: [/* @__PURE__ */ J("span", {
|
|
1526
1543
|
className: u,
|
|
1527
1544
|
children: t
|
|
1528
|
-
}), /* @__PURE__ */
|
|
1545
|
+
}), /* @__PURE__ */ J("p", {
|
|
1529
1546
|
className: y(d, "wrap-anywhere whitespace-normal"),
|
|
1530
|
-
children: n?.map((e, t) => /* @__PURE__ */
|
|
1547
|
+
children: n?.map((e, t) => /* @__PURE__ */ J("span", {
|
|
1531
1548
|
className: "block",
|
|
1532
1549
|
children: e
|
|
1533
1550
|
}, `${t}:${e}`))
|
|
1534
1551
|
})]
|
|
1535
1552
|
}),
|
|
1536
|
-
a && /* @__PURE__ */
|
|
1553
|
+
a && /* @__PURE__ */ Y("div", {
|
|
1537
1554
|
className: "flex flex-col gap-2",
|
|
1538
|
-
children: [/* @__PURE__ */
|
|
1555
|
+
children: [/* @__PURE__ */ J("span", {
|
|
1539
1556
|
className: u,
|
|
1540
1557
|
children: r
|
|
1541
|
-
}), ((e) => o ? o(e) : /* @__PURE__ */
|
|
1558
|
+
}), ((e) => o ? o(e) : /* @__PURE__ */ J(m, {
|
|
1542
1559
|
content: e,
|
|
1543
1560
|
classNames: h,
|
|
1544
1561
|
...c
|
|
@@ -1546,37 +1563,37 @@ var Ke = "1180px", qe = {
|
|
|
1546
1563
|
})
|
|
1547
1564
|
]
|
|
1548
1565
|
});
|
|
1549
|
-
},
|
|
1566
|
+
}, zt = ({ className: e, children: t }) => /* @__PURE__ */ J("span", {
|
|
1550
1567
|
className: y(e, "block truncate py-1"),
|
|
1551
1568
|
children: t
|
|
1552
|
-
}),
|
|
1553
|
-
let [_, b] =
|
|
1554
|
-
|
|
1569
|
+
}), Bt = { unavailableText: "_unavailableText_1ifqz_1" }, Vt = ({ scheduleId: e, items: t, isLoading: n = !1, isLoadingMore: r = !1, skeletonCount: i = 6, error: a, onRetry: o, isUnavailable: s = !1, hasMore: c = !1, onLoadMore: l, currentRunId: u, onRunClick: d, labels: f, titleClassName: p = "dial-tiny-semi-text", contentClassName: m = "ps-3", unavailableTextClassName: h = "dial-body-text", colors: g }) => {
|
|
1570
|
+
let [_, b] = He(!0);
|
|
1571
|
+
Re(() => {
|
|
1555
1572
|
b(!0);
|
|
1556
1573
|
}, [e]);
|
|
1557
|
-
let x = c && !n && l && f.showMoreLabel ? /* @__PURE__ */
|
|
1574
|
+
let x = c && !n && l && f.showMoreLabel ? /* @__PURE__ */ J("li", {
|
|
1558
1575
|
className: "pt-2",
|
|
1559
|
-
children: /* @__PURE__ */
|
|
1576
|
+
children: /* @__PURE__ */ J(A, {
|
|
1560
1577
|
variant: ie.Primary,
|
|
1561
1578
|
label: f.showMoreLabel,
|
|
1562
1579
|
onClick: l,
|
|
1563
1580
|
disabled: r
|
|
1564
1581
|
})
|
|
1565
1582
|
}) : void 0;
|
|
1566
|
-
return /* @__PURE__ */
|
|
1567
|
-
title: /* @__PURE__ */
|
|
1583
|
+
return /* @__PURE__ */ Y(C, {
|
|
1584
|
+
title: /* @__PURE__ */ J(zt, {
|
|
1568
1585
|
className: p,
|
|
1569
1586
|
children: f.title
|
|
1570
1587
|
}),
|
|
1571
1588
|
expanded: _,
|
|
1572
1589
|
onToggle: b,
|
|
1573
1590
|
contentClassName: m,
|
|
1574
|
-
children: [/* @__PURE__ */
|
|
1575
|
-
as:
|
|
1576
|
-
className: y(h,
|
|
1591
|
+
children: [/* @__PURE__ */ J(M, {
|
|
1592
|
+
as: N.P,
|
|
1593
|
+
className: y(h, Bt.unavailableText),
|
|
1577
1594
|
style: v({ "--stch-unavailable-text": g?.unavailableText }),
|
|
1578
1595
|
children: s && f.unavailableLabel
|
|
1579
|
-
}), !s && /* @__PURE__ */
|
|
1596
|
+
}), !s && /* @__PURE__ */ J(jt, {
|
|
1580
1597
|
items: t,
|
|
1581
1598
|
isLoading: n,
|
|
1582
1599
|
isLoadingMore: r,
|
|
@@ -1597,28 +1614,28 @@ var Ke = "1180px", qe = {
|
|
|
1597
1614
|
}
|
|
1598
1615
|
})]
|
|
1599
1616
|
});
|
|
1600
|
-
},
|
|
1617
|
+
}, Ht = { unavailableText: "_unavailableText_j7lij_1" }, Ut = /* @__PURE__ */ function(e) {
|
|
1601
1618
|
return e.Ready = "ready", e.Error = "error", e.Unavailable = "unavailable", e;
|
|
1602
|
-
}({}),
|
|
1603
|
-
let [m, h] =
|
|
1604
|
-
|
|
1619
|
+
}({}), Wt = ({ scheduleId: e, state: t, onRetry: n, modelDisplayName: r, skillDisplayNames: i, instructionsMarkdown: a, renderInstructions: o, instructionsClassNames: s, markdownLabels: c, summaryStyles: l, labels: u, titleClassName: d = "dial-tiny-semi-text", unavailableTextClassName: f = "dial-body-text", colors: p }) => {
|
|
1620
|
+
let [m, h] = He(!1);
|
|
1621
|
+
Re(() => {
|
|
1605
1622
|
h(!1);
|
|
1606
1623
|
}, [e]);
|
|
1607
|
-
let g = t === "error" || t === "unavailable", _ = t === "error" && n != null, b = /* @__PURE__ */
|
|
1608
|
-
/* @__PURE__ */
|
|
1609
|
-
as:
|
|
1610
|
-
className: y(f,
|
|
1624
|
+
let g = t === "error" || t === "unavailable", _ = t === "error" && n != null, b = /* @__PURE__ */ Y(q, { children: [
|
|
1625
|
+
/* @__PURE__ */ J(M, {
|
|
1626
|
+
as: N.P,
|
|
1627
|
+
className: y(f, Ht.unavailableText),
|
|
1611
1628
|
style: v({ "--stcd-unavailable-text": p?.unavailableText }),
|
|
1612
1629
|
children: g && u.unavailableLabel
|
|
1613
1630
|
}),
|
|
1614
|
-
_ && /* @__PURE__ */
|
|
1631
|
+
_ && /* @__PURE__ */ J("div", {
|
|
1615
1632
|
className: "mt-2",
|
|
1616
|
-
children: /* @__PURE__ */
|
|
1633
|
+
children: /* @__PURE__ */ J(A, {
|
|
1617
1634
|
label: u.retryLabel,
|
|
1618
1635
|
onClick: n
|
|
1619
1636
|
})
|
|
1620
1637
|
}),
|
|
1621
|
-
!g && /* @__PURE__ */
|
|
1638
|
+
!g && /* @__PURE__ */ J(Rt, {
|
|
1622
1639
|
modelLabel: u.modelLabel,
|
|
1623
1640
|
instructionsLabel: u.instructionsLabel,
|
|
1624
1641
|
skillLabel: u.skillLabel,
|
|
@@ -1631,8 +1648,8 @@ var Ke = "1180px", qe = {
|
|
|
1631
1648
|
styles: l
|
|
1632
1649
|
})
|
|
1633
1650
|
] });
|
|
1634
|
-
return /* @__PURE__ */
|
|
1635
|
-
title: /* @__PURE__ */
|
|
1651
|
+
return /* @__PURE__ */ J(C, {
|
|
1652
|
+
title: /* @__PURE__ */ J(zt, {
|
|
1636
1653
|
className: d,
|
|
1637
1654
|
children: u.title
|
|
1638
1655
|
}),
|
|
@@ -1640,42 +1657,42 @@ var Ke = "1180px", qe = {
|
|
|
1640
1657
|
onToggle: h,
|
|
1641
1658
|
children: b
|
|
1642
1659
|
});
|
|
1643
|
-
},
|
|
1644
|
-
surface:
|
|
1660
|
+
}, Gt = (e, t, n) => e ? n?.loggingIn ?? "Logging in…" : t == null ? n?.logIn ?? "Log in" : n?.retry ?? "Retry", Kt = Ie(({ isVisible: e, isLoggingIn: t = !1, retryMessage: n, liveAnnouncement: r = "", labels: i, onLogIn: a }) => /* @__PURE__ */ Y(q, { children: [e && /* @__PURE__ */ J(Ee, {
|
|
1661
|
+
surface: I.Neutral,
|
|
1645
1662
|
title: i?.title ?? "Log in required.",
|
|
1646
1663
|
message: i?.body ?? "Scheduled tasks need authorization to run offline.",
|
|
1647
|
-
action: a && /* @__PURE__ */
|
|
1648
|
-
label:
|
|
1664
|
+
action: a && /* @__PURE__ */ J(me, {
|
|
1665
|
+
label: Gt(t, n, i),
|
|
1649
1666
|
disabled: t,
|
|
1650
|
-
iconAfter: /* @__PURE__ */
|
|
1651
|
-
size:
|
|
1652
|
-
stroke:
|
|
1667
|
+
iconAfter: /* @__PURE__ */ J(H, {
|
|
1668
|
+
size: D.SM,
|
|
1669
|
+
stroke: O,
|
|
1653
1670
|
"aria-hidden": !0,
|
|
1654
1671
|
className: "rtl:scale-x-[-1]"
|
|
1655
1672
|
}),
|
|
1656
1673
|
onClick: a,
|
|
1657
1674
|
className: "min-h-11 min-w-11"
|
|
1658
1675
|
})
|
|
1659
|
-
}), /* @__PURE__ */
|
|
1676
|
+
}), /* @__PURE__ */ J(M, {
|
|
1660
1677
|
visuallyHidden: !0,
|
|
1661
|
-
as:
|
|
1678
|
+
as: N.Span,
|
|
1662
1679
|
children: n ?? r
|
|
1663
|
-
})] })),
|
|
1664
|
-
variant:
|
|
1665
|
-
type:
|
|
1666
|
-
message: /* @__PURE__ */
|
|
1680
|
+
})] })), qt = Ie(({ labels: e, titleClassName: t = "dial-small-paragraph-semi-text", bodyClassName: n = "dial-small-paragraph-text" }) => /* @__PURE__ */ J(F, {
|
|
1681
|
+
variant: ve.Error,
|
|
1682
|
+
type: L.SectionMessage,
|
|
1683
|
+
message: /* @__PURE__ */ Y("span", {
|
|
1667
1684
|
className: "flex min-w-0 flex-wrap items-baseline gap-x-1",
|
|
1668
|
-
children: [/* @__PURE__ */
|
|
1685
|
+
children: [/* @__PURE__ */ J("span", {
|
|
1669
1686
|
className: y("min-w-0 wrap-break-word", t),
|
|
1670
1687
|
children: e?.title ?? "Limited access."
|
|
1671
|
-
}), /* @__PURE__ */
|
|
1688
|
+
}), /* @__PURE__ */ J("span", {
|
|
1672
1689
|
className: y("min-w-0 wrap-break-word", n),
|
|
1673
1690
|
children: e?.body ?? "You can't create or edit tasks. Contact your administrator for more details."
|
|
1674
1691
|
})]
|
|
1675
1692
|
})
|
|
1676
|
-
})),
|
|
1693
|
+
})), Jt = ({ taskName: e, icon: t, typeLabel: n, body: r, pendingLabel: i, isDeleting: a = !1, styles: o, ...s }) => /* @__PURE__ */ J(u, {
|
|
1677
1694
|
...s,
|
|
1678
|
-
variant:
|
|
1695
|
+
variant: oe.Danger,
|
|
1679
1696
|
popupClassName: o?.popupClassName,
|
|
1680
1697
|
titleClassName: o?.titleClassName ?? "dial-body-semi-text",
|
|
1681
1698
|
messageClassName: o?.messageClassName ?? "dial-body-paragraph-text",
|
|
@@ -1684,12 +1701,12 @@ var Ke = "1180px", qe = {
|
|
|
1684
1701
|
message: r,
|
|
1685
1702
|
isLoading: a,
|
|
1686
1703
|
loadingStatusLabel: i,
|
|
1687
|
-
identity: /* @__PURE__ */
|
|
1704
|
+
identity: /* @__PURE__ */ J(g, {
|
|
1688
1705
|
styles: { colors: {
|
|
1689
1706
|
background: o?.colors?.summaryBackground ?? "var(--bg-error, #f3d6d8)",
|
|
1690
1707
|
border: o?.colors?.summaryBorder ?? "var(--stroke-error-alpha, #ae2f2f73)"
|
|
1691
1708
|
} },
|
|
1692
|
-
children: /* @__PURE__ */
|
|
1709
|
+
children: /* @__PURE__ */ J(d, {
|
|
1693
1710
|
icon: t,
|
|
1694
1711
|
typeLabel: n,
|
|
1695
1712
|
name: e,
|
|
@@ -1698,4 +1715,4 @@ var Ke = "1180px", qe = {
|
|
|
1698
1715
|
})
|
|
1699
1716
|
});
|
|
1700
1717
|
//#endregion
|
|
1701
|
-
export { r as DESCRIPTION_MAX_LENGTH,
|
|
1718
|
+
export { r as DESCRIPTION_MAX_LENGTH, Ke as SCHEDULED_TASKS_CLASS, Ge as SCHEDULED_TASKS_GRID_DEFAULT_MAX_WIDTH, $e as ScheduledTaskCard, it as ScheduledTaskCardGrid, rt as ScheduledTaskCardSkeleton, Wt as ScheduledTaskConversationDetailsSection, Ut as ScheduledTaskConversationDetailsState, Vt as ScheduledTaskConversationHistorySection, xt as ScheduledTaskCreateForm, Jt as ScheduledTaskDeleteConfirmation, Ft as ScheduledTaskDetailView, Rt as ScheduledTaskDetailsSummary, Nt as ScheduledTaskHistorySection, qe as ScheduledTaskPresentationStatus, t as ScheduledTaskRepeat, jt as ScheduledTaskRunHistoryList, kt as ScheduledTaskRunStatus, X as ScheduledTaskStatus, ct as ScheduledTasks, qt as ScheduledTasksLimitedAccessBanner, Kt as ScheduledTasksLoginBanner, lt as ScheduledTasksSortKey, c as TIME_OF_DAY_PATTERN, Je as getScheduledTaskStatus, ft as hasScheduledTaskFormChanges };
|