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