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