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