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