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