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