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