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