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