@epam/ai-dial-scheduled-tasks 1.2.0-dev.11 → 1.2.0-dev.112
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 +24 -0
- package/components/ScheduledTaskCard/ScheduledTaskCard.d.ts.map +1 -1
- package/components/ScheduledTaskCardGrid/ScheduledTaskCardGrid.d.ts +1 -1
- package/components/ScheduledTaskCardGrid/ScheduledTaskCardGrid.d.ts.map +1 -1
- package/components/ScheduledTaskConfigurationSection/ScheduledTaskConfigurationSection.d.ts +1 -1
- package/components/ScheduledTaskConfigurationSection/ScheduledTaskConfigurationSection.d.ts.map +1 -1
- package/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.d.ts +7 -6
- package/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.d.ts.map +1 -1
- package/components/ScheduledTaskDeleteConfirmation/ScheduledTaskDeleteConfirmation.d.ts +27 -0
- package/components/ScheduledTaskDeleteConfirmation/ScheduledTaskDeleteConfirmation.d.ts.map +1 -0
- package/components/ScheduledTaskDetailView/ScheduledTaskDetailView.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 +16 -0
- package/components/ScheduledTaskRunAtField/ScheduledTaskRunAtField.d.ts.map +1 -0
- package/components/ScheduledTaskRunHistoryList/ScheduledTaskRunHistoryList.d.ts.map +1 -1
- package/components/ScheduledTasks/ScheduledTasks.d.ts.map +1 -1
- package/constants/public-class-names.d.ts +10 -0
- package/constants/public-class-names.d.ts.map +1 -0
- package/index.css +2 -2
- package/index.d.ts +9 -2
- package/index.d.ts.map +1 -1
- package/index.js +821 -602
- package/models/scheduled-task-card-grid-props.d.ts +12 -5
- package/models/scheduled-task-card-grid-props.d.ts.map +1 -1
- package/models/scheduled-task-card-props.d.ts +9 -0
- package/models/scheduled-task-card-props.d.ts.map +1 -1
- package/models/scheduled-task-configuration-section-props.d.ts +4 -0
- package/models/scheduled-task-configuration-section-props.d.ts.map +1 -1
- package/models/scheduled-task-create-form-props.d.ts +28 -3
- package/models/scheduled-task-create-form-props.d.ts.map +1 -1
- package/models/scheduled-task-detail-view-props.d.ts +24 -0
- package/models/scheduled-task-detail-view-props.d.ts.map +1 -1
- package/models/scheduled-task-details-summary-props.d.ts +4 -0
- package/models/scheduled-task-details-summary-props.d.ts.map +1 -1
- package/models/scheduled-task-history-section-props.d.ts +15 -2
- package/models/scheduled-task-history-section-props.d.ts.map +1 -1
- package/models/scheduled-task-item.d.ts +7 -0
- package/models/scheduled-task-item.d.ts.map +1 -1
- package/models/scheduled-task-run-history-list-props.d.ts +3 -0
- package/models/scheduled-task-run-history-list-props.d.ts.map +1 -1
- package/models/scheduled-tasks-props.d.ts +9 -1
- package/models/scheduled-tasks-props.d.ts.map +1 -1
- package/package.json +9 -4
- package/utils/calendar-value.d.ts +2 -0
- package/utils/calendar-value.d.ts.map +1 -1
- package/validation/index.d.ts +3 -0
- package/validation/index.d.ts.map +1 -0
- package/validation/scheduled-task-validation.d.ts +35 -0
- package/validation/scheduled-task-validation.d.ts.map +1 -0
- package/validation.d.ts +3 -0
- package/validation.d.ts.map +1 -0
- package/validation.js +22 -0
package/index.js
CHANGED
|
@@ -1,36 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"--stc-
|
|
31
|
-
"--stc-
|
|
32
|
-
"--stc-
|
|
33
|
-
"--stc-
|
|
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-B41Uk26Z.js";
|
|
2
|
+
import { MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as l, MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as u, MDMessageViewer as d, PanelEmptyState as f, buildCssVars as p, mergeClasses as m, useAvailableHeightCap as h, useIsMobile as g } from "@epam/ai-dial-chat-shared";
|
|
3
|
+
import { ButtonAppearance as _, ButtonDropdown as v, ButtonVariant as y, Calendar as b, CalendarMode as x, CardShell as S, DIAL_ICON_SIZE as C, DIAL_KIT_ICON_STROKE as w, ElementSize as T, FolderPath as ee, GhostButton as E, GhostIconButton as te, Highlight as ne, Input as re, Label as D, MenuItemMark as ie, NeutralButton as ae, NumberInput as O, Popup as k, PrimaryButton as oe, Search as se, Select as ce, Skeleton as A, SkeletonVariant as j, Spinner as le, Switch as M, Tabs as N, Textarea as ue } from "@epam/ai-dial-ui-kit";
|
|
4
|
+
import { IconAlertTriangle as P, IconArrowNarrowLeft as de, IconArrowsSort as fe, IconCircleCheck as F, IconCircleX as I, IconClipboardX as L, IconPencilMinus as pe, IconPlayerPause as R, IconPlus as z, IconTrashX as B } from "@tabler/icons-react";
|
|
5
|
+
import { Suspense as V, lazy as H, useCallback as me, useEffect as U, useId as he, useLayoutEffect as ge, useMemo as _e, useRef as W, useState as ve } from "react";
|
|
6
|
+
import { Fragment as ye, jsx as G, jsxs as K } from "react/jsx-runtime";
|
|
7
|
+
import { BuilderFormContainer as be } from "@epam/ai-dial-builder-form";
|
|
8
|
+
import { LazyMarkdownEditor as xe } from "@epam/ai-dial-ui-kit/editors";
|
|
9
|
+
//#region src/constants/public-class-names.ts
|
|
10
|
+
var Se = {
|
|
11
|
+
card: "dial-scheduled-tasks-card",
|
|
12
|
+
cardGrid: "dial-scheduled-tasks-card-grid"
|
|
13
|
+
}, q = /* @__PURE__ */ function(e) {
|
|
14
|
+
return e.Active = "active", e.Paused = "paused", e.Completed = "completed", e;
|
|
15
|
+
}({}), J = {
|
|
16
|
+
title: "_title_7q7a6_1",
|
|
17
|
+
description: "_description_7q7a6_5",
|
|
18
|
+
schedulePill: "_schedulePill_7q7a6_9",
|
|
19
|
+
scheduleLabel: "_scheduleLabel_7q7a6_14",
|
|
20
|
+
locationLabel: "_locationLabel_7q7a6_18",
|
|
21
|
+
locationLeaf: "_locationLeaf_7q7a6_22",
|
|
22
|
+
newBadge: "_newBadge_7q7a6_26",
|
|
23
|
+
pausedPill: "_pausedPill_7q7a6_31",
|
|
24
|
+
pausedLabel: "_pausedLabel_7q7a6_36",
|
|
25
|
+
completedPill: "_completedPill_7q7a6_40",
|
|
26
|
+
completedLabel: "_completedLabel_7q7a6_45",
|
|
27
|
+
locationDivider: "_locationDivider_7q7a6_49"
|
|
28
|
+
}, Ce = ({ item: e, searchQuery: t = "", onCardClick: n, labels: r, styles: i, className: a }) => {
|
|
29
|
+
let o = r?.newBadgeLabel ?? "NEW", s = r?.pausedBadgeLabel ?? "Paused", c = r?.completedBadgeLabel ?? "Completed", { colors: l, typography: u } = i ?? {}, d = u?.titleClassName ?? "dial-body-semi-text", f = u?.descriptionClassName ?? "dial-small-text", h = u?.descriptionSizeClassName ?? "dial-tiny-text", g = u?.scheduleLabelClassName ?? "dial-tiny-text", _ = u?.locationLabelClassName ?? "dial-tiny-text", v = u?.locationLeafClassName ?? "dial-tiny-semi-text", y = u?.newBadgeClassName ?? "dial-tiny-semi-text", b = u?.pausedBadgeClassName ?? "dial-tiny-text", x = u?.completedBadgeClassName ?? "dial-tiny-text", T = e.presentationStatus ?? (e.isActive === !1 ? q.Paused : q.Active), E = p({
|
|
30
|
+
"--stc-title-text": (T === q.Paused ? l?.pausedTitleText : T === q.Completed ? l?.completedTitleText : void 0) ?? l?.titleText,
|
|
31
|
+
"--stc-desc-text": l?.descriptionText,
|
|
32
|
+
"--stc-pill-bg": l?.schedulePillBackground,
|
|
33
|
+
"--stc-pill-border": l?.schedulePillBorder,
|
|
34
|
+
"--stc-schedule-label-text": l?.scheduleLabelText,
|
|
35
|
+
"--stc-location-label-text": l?.locationLabelText,
|
|
36
|
+
"--stc-location-leaf-text": l?.locationLeafText,
|
|
37
|
+
"--stc-new-badge-bg": l?.newBadgeBackground,
|
|
38
|
+
"--stc-new-badge-text": l?.newBadgeText,
|
|
39
|
+
"--stc-location-divider-border": l?.locationDividerBorder,
|
|
40
|
+
"--stc-paused-bg": l?.pausedBadgeBackground,
|
|
41
|
+
"--stc-paused-border": l?.pausedBadgeBorder,
|
|
42
|
+
"--stc-paused-text": l?.pausedBadgeText,
|
|
43
|
+
"--stc-completed-bg": l?.completedBadgeBackground,
|
|
44
|
+
"--stc-completed-border": l?.completedBadgeBorder,
|
|
45
|
+
"--stc-completed-text": l?.completedBadgeText
|
|
34
46
|
}), te = n ? {
|
|
35
47
|
tabIndex: 0,
|
|
36
48
|
onClick: () => n(e.id),
|
|
@@ -38,279 +50,323 @@ var U = {
|
|
|
38
50
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e.id));
|
|
39
51
|
}
|
|
40
52
|
} : {};
|
|
41
|
-
return /* @__PURE__ */
|
|
53
|
+
return /* @__PURE__ */ K(S, {
|
|
42
54
|
role: n ? "button" : "group",
|
|
43
55
|
"aria-label": e.displayName,
|
|
44
|
-
style:
|
|
45
|
-
className:
|
|
56
|
+
style: E,
|
|
57
|
+
className: m("h-[var(--st-card-height,232px)]", n && "cursor-pointer", a, Se.card),
|
|
46
58
|
...te,
|
|
47
59
|
children: [
|
|
48
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ K("div", {
|
|
49
61
|
className: "flex min-w-0 shrink-0 items-center gap-2",
|
|
50
|
-
children: [/* @__PURE__ */
|
|
62
|
+
children: [/* @__PURE__ */ G(ne, {
|
|
51
63
|
text: e.displayName,
|
|
52
64
|
query: t,
|
|
53
65
|
maxLines: 1,
|
|
54
|
-
className:
|
|
55
|
-
}), e.isNew && /* @__PURE__ */
|
|
56
|
-
className:
|
|
57
|
-
children:
|
|
66
|
+
className: m(d, J.title)
|
|
67
|
+
}), e.isNew && /* @__PURE__ */ G("span", {
|
|
68
|
+
className: m("shrink-0 rounded-full px-2 py-0.5", y, J.newBadge),
|
|
69
|
+
children: o
|
|
58
70
|
})]
|
|
59
71
|
}),
|
|
60
|
-
e.descriptionPreview && /* @__PURE__ */
|
|
61
|
-
className:
|
|
72
|
+
e.descriptionPreview && /* @__PURE__ */ G("p", {
|
|
73
|
+
className: m("line-clamp-4 min-h-0 flex-1 overflow-hidden", h, f, J.description),
|
|
62
74
|
children: e.descriptionPreview
|
|
63
75
|
}),
|
|
64
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ K("div", {
|
|
65
77
|
className: "mt-auto flex shrink-0 flex-col gap-3",
|
|
66
|
-
children: [/* @__PURE__ */
|
|
78
|
+
children: [/* @__PURE__ */ G("div", {
|
|
67
79
|
className: "flex min-h-[28px] items-center",
|
|
68
|
-
children:
|
|
69
|
-
className:
|
|
70
|
-
children: [/* @__PURE__ */
|
|
71
|
-
size:
|
|
80
|
+
children: T === q.Paused ? /* @__PURE__ */ K("span", {
|
|
81
|
+
className: m("inline-flex items-center gap-1.5 rounded-full border px-2 py-1", J.pausedPill, b, J.pausedLabel),
|
|
82
|
+
children: [/* @__PURE__ */ G(R, {
|
|
83
|
+
size: C.SM,
|
|
72
84
|
"aria-hidden": !0,
|
|
73
|
-
stroke:
|
|
74
|
-
}),
|
|
75
|
-
}) : /* @__PURE__ */
|
|
76
|
-
className:
|
|
85
|
+
stroke: w
|
|
86
|
+
}), s]
|
|
87
|
+
}) : T === q.Completed ? /* @__PURE__ */ G("span", {
|
|
88
|
+
className: m("inline-flex items-center rounded-full border px-2 py-1", J.completedPill, x, J.completedLabel),
|
|
89
|
+
children: c
|
|
90
|
+
}) : /* @__PURE__ */ G("span", {
|
|
91
|
+
className: m("inline-block rounded-lg border px-2 py-1", J.schedulePill, g, J.scheduleLabel),
|
|
77
92
|
children: e.scheduleLabel
|
|
78
93
|
})
|
|
79
|
-
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */
|
|
94
|
+
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */ G(ee, {
|
|
80
95
|
segments: e.locationSegments,
|
|
81
|
-
labelClassName:
|
|
82
|
-
leafClassName:
|
|
83
|
-
className:
|
|
96
|
+
labelClassName: m(_, J.locationLabel),
|
|
97
|
+
leafClassName: m(v, J.locationLeaf),
|
|
98
|
+
className: m("pt-3", J.locationDivider)
|
|
84
99
|
})]
|
|
85
100
|
})
|
|
86
101
|
]
|
|
87
102
|
});
|
|
88
|
-
},
|
|
103
|
+
}, we = { card: "_card_11bez_1" }, Te = [
|
|
89
104
|
"100%",
|
|
90
105
|
"100%",
|
|
91
106
|
"61%"
|
|
92
|
-
],
|
|
107
|
+
], Ee = "var(--stcs-skeleton-bg)", De = ({ styles: e }) => /* @__PURE__ */ K(S, {
|
|
93
108
|
"aria-hidden": !0,
|
|
94
|
-
style:
|
|
95
|
-
className:
|
|
109
|
+
style: p({ "--stcs-skeleton-bg": e?.colors?.skeletonColor }),
|
|
110
|
+
className: m("h-[var(--st-card-height,232px)]", we.card),
|
|
96
111
|
children: [
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
variant:
|
|
112
|
+
/* @__PURE__ */ G(A, {
|
|
113
|
+
variant: j.Rectangular,
|
|
99
114
|
width: "60%",
|
|
100
115
|
height: "20px",
|
|
101
|
-
color:
|
|
116
|
+
color: Ee,
|
|
102
117
|
className: "shrink-0"
|
|
103
118
|
}),
|
|
104
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ G("div", {
|
|
105
120
|
className: "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden",
|
|
106
|
-
children:
|
|
107
|
-
variant:
|
|
121
|
+
children: Te.map((e, t) => /* @__PURE__ */ G(A, {
|
|
122
|
+
variant: j.Rectangular,
|
|
108
123
|
width: e,
|
|
109
124
|
height: "16px",
|
|
110
|
-
color:
|
|
125
|
+
color: Ee
|
|
111
126
|
}, t))
|
|
112
127
|
}),
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
variant:
|
|
128
|
+
/* @__PURE__ */ G(A, {
|
|
129
|
+
variant: j.Rectangular,
|
|
115
130
|
width: "110px",
|
|
116
131
|
height: "28px",
|
|
117
|
-
color:
|
|
132
|
+
color: Ee,
|
|
118
133
|
className: "shrink-0 rounded-lg"
|
|
119
134
|
})
|
|
120
135
|
]
|
|
121
|
-
}),
|
|
122
|
-
|
|
123
|
-
|
|
136
|
+
}), Oe = ({ items: e, searchQuery: t, onCardClick: n, labels: r, cardStyles: i, trailingSkeletonCount: a = 0, skeletonStyles: o, layout: s }) => /* @__PURE__ */ K("div", {
|
|
137
|
+
style: {
|
|
138
|
+
"--st-grid-min-card-width": s?.minCardWidth,
|
|
139
|
+
"--st-grid-gap": s?.gap,
|
|
140
|
+
"--st-card-height": s?.cardHeight,
|
|
141
|
+
"--st-grid-columns": s?.maxColumns ?? 3,
|
|
142
|
+
maxWidth: s?.maxWidth ?? "1180px",
|
|
143
|
+
gap: "var(--st-grid-gap, 20px)",
|
|
144
|
+
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))"
|
|
145
|
+
},
|
|
146
|
+
className: m("mx-auto grid w-full min-w-0", Se.cardGrid),
|
|
147
|
+
children: [e.map((e) => /* @__PURE__ */ G(Ce, {
|
|
124
148
|
item: e,
|
|
125
149
|
searchQuery: t,
|
|
126
150
|
onCardClick: n,
|
|
127
151
|
labels: r,
|
|
128
152
|
styles: i
|
|
129
|
-
}, e.id)), Array.from({ length: a }, (e, t) => /* @__PURE__ */
|
|
130
|
-
}),
|
|
131
|
-
container: "
|
|
132
|
-
subtitle: "
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
153
|
+
}, e.id)), Array.from({ length: a }, (e, t) => /* @__PURE__ */ G(De, { styles: o }, `skeleton-${t}`))]
|
|
154
|
+
}), Y = {
|
|
155
|
+
container: "_container_3vz4t_2",
|
|
156
|
+
subtitle: "_subtitle_3vz4t_6",
|
|
157
|
+
createButtonLabel: "_createButtonLabel_3vz4t_10",
|
|
158
|
+
sortButton: "_sortButton_3vz4t_19",
|
|
159
|
+
createButton: "_createButton_3vz4t_10",
|
|
160
|
+
sortControlHidden: "_sortControlHidden_3vz4t_49"
|
|
161
|
+
}, ke = (e, t, n, r, i, a) => {
|
|
137
162
|
if (!e) return t ? a.loadingMoreLabel : n ? a.errorLabel : r > 0 ? `${r}` : i ? a.noResultsLabel : a.emptyStateLabel;
|
|
138
|
-
},
|
|
163
|
+
}, Ae = (e) => {
|
|
139
164
|
if (!e || e === document.body) return null;
|
|
140
165
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
141
|
-
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e :
|
|
142
|
-
},
|
|
143
|
-
let { colors:
|
|
144
|
-
"--st-bg":
|
|
145
|
-
"--st-subtitle-text":
|
|
146
|
-
"--st-sort-text":
|
|
147
|
-
}),
|
|
148
|
-
|
|
149
|
-
}, [
|
|
150
|
-
|
|
151
|
-
}, []),
|
|
152
|
-
|
|
166
|
+
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : Ae(e.parentElement);
|
|
167
|
+
}, je = ({ 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: h = 6, onLoadMore: g, onCardClick: b, banner: x, styles: S, sortIcon: ee, className: te, gridLayout: ne, cardStyles: re, loadMoreError: D, onRetryLoadMore: ae }) => {
|
|
168
|
+
let { colors: O, typography: k } = S ?? {}, ce = k?.titleClassName ?? "dial-h1-text", A = k?.subtitleClassName ?? "dial-body-text", j = p({
|
|
169
|
+
"--st-bg": O?.background,
|
|
170
|
+
"--st-subtitle-text": O?.subtitleText,
|
|
171
|
+
"--st-sort-text": O?.sortButtonText
|
|
172
|
+
}), M = (e) => {
|
|
173
|
+
r(e ?? "");
|
|
174
|
+
}, [N, ue] = ve(!1), [P, de] = ve(!1), F = W(null), I = me(() => {
|
|
175
|
+
de(!0);
|
|
176
|
+
}, []), L = me(() => {
|
|
177
|
+
de(!1);
|
|
153
178
|
}, []);
|
|
154
|
-
|
|
155
|
-
let e =
|
|
156
|
-
|
|
157
|
-
}, [
|
|
158
|
-
let
|
|
179
|
+
ge(() => {
|
|
180
|
+
let e = F.current;
|
|
181
|
+
P && N && e != null && e.offsetParent == null && ue(!1);
|
|
182
|
+
}, [P, N]);
|
|
183
|
+
let pe = e.sortOptions.find((e) => e.value === i)?.label ?? e.sortLabel, R = _e(() => e.sortOptions.map((e) => ({
|
|
159
184
|
key: e.value,
|
|
160
185
|
label: e.label,
|
|
161
|
-
mark:
|
|
162
|
-
checked: e.value ===
|
|
163
|
-
onClick: () =>
|
|
186
|
+
mark: ie.Check,
|
|
187
|
+
checked: e.value === i,
|
|
188
|
+
onClick: () => a(e.value)
|
|
164
189
|
})), [
|
|
165
190
|
e.sortOptions,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
]),
|
|
169
|
-
|
|
170
|
-
let e =
|
|
171
|
-
if (!e || !
|
|
172
|
-
let t =
|
|
191
|
+
i,
|
|
192
|
+
a
|
|
193
|
+
]), B = ke(s, d, !!c, o.length, n.trim().length > 0, e), V = W(null);
|
|
194
|
+
U(() => {
|
|
195
|
+
let e = V.current;
|
|
196
|
+
if (!e || !g) return;
|
|
197
|
+
let t = Ae(e.parentElement);
|
|
173
198
|
if (!t) return;
|
|
174
199
|
let n = () => {
|
|
175
|
-
if (
|
|
200
|
+
if (d || s || D || !u) return;
|
|
176
201
|
let n = t.getBoundingClientRect(), r = e.getBoundingClientRect();
|
|
177
|
-
r.top < n.bottom && r.bottom > n.top &&
|
|
202
|
+
r.top < n.bottom && r.bottom > n.top && g();
|
|
178
203
|
};
|
|
179
204
|
return t.addEventListener("scroll", n, { passive: !0 }), n(), () => t.removeEventListener("scroll", n);
|
|
180
205
|
}, [
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
206
|
+
u,
|
|
207
|
+
d,
|
|
208
|
+
s,
|
|
209
|
+
D,
|
|
210
|
+
g
|
|
185
211
|
]);
|
|
186
|
-
let
|
|
212
|
+
let H = () => s ? /* @__PURE__ */ G(le, {}) : c ? /* @__PURE__ */ K("div", {
|
|
187
213
|
className: "flex flex-col items-center gap-3",
|
|
188
|
-
children: [/* @__PURE__ */
|
|
189
|
-
className:
|
|
214
|
+
children: [/* @__PURE__ */ G("p", {
|
|
215
|
+
className: m(A, Y.subtitle),
|
|
190
216
|
children: e.errorLabel
|
|
191
|
-
}), /* @__PURE__ */
|
|
217
|
+
}), /* @__PURE__ */ G(E, {
|
|
192
218
|
label: e.retryLabel,
|
|
193
|
-
onClick:
|
|
219
|
+
onClick: l
|
|
194
220
|
})]
|
|
195
|
-
}) :
|
|
196
|
-
className:
|
|
221
|
+
}) : o.length === 0 ? n.trim() ? /* @__PURE__ */ G("p", {
|
|
222
|
+
className: m(A, Y.subtitle),
|
|
197
223
|
children: e.noResultsLabel
|
|
198
|
-
}) : /* @__PURE__ */
|
|
224
|
+
}) : /* @__PURE__ */ G(f, { label: e.emptyStateLabel }) : /* @__PURE__ */ K("div", {
|
|
199
225
|
className: "flex w-full flex-col gap-6",
|
|
200
|
-
children: [
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
226
|
+
children: [
|
|
227
|
+
/* @__PURE__ */ G(Oe, {
|
|
228
|
+
items: o,
|
|
229
|
+
searchQuery: n,
|
|
230
|
+
onCardClick: b,
|
|
231
|
+
labels: e.cardLabels,
|
|
232
|
+
trailingSkeletonCount: d ? h : 0,
|
|
233
|
+
skeletonStyles: { colors: { skeletonColor: O?.skeletonColor } },
|
|
234
|
+
cardStyles: re,
|
|
235
|
+
layout: ne
|
|
236
|
+
}),
|
|
237
|
+
D && /* @__PURE__ */ K("div", {
|
|
238
|
+
role: "alert",
|
|
239
|
+
className: "flex items-center gap-3",
|
|
240
|
+
children: [/* @__PURE__ */ G("span", {
|
|
241
|
+
className: m(A, Y.subtitle),
|
|
242
|
+
children: e.loadMoreErrorLabel ?? e.errorLabel
|
|
243
|
+
}), /* @__PURE__ */ G(E, {
|
|
244
|
+
label: e.retryLabel,
|
|
245
|
+
onClick: ae
|
|
246
|
+
})]
|
|
247
|
+
}),
|
|
248
|
+
/* @__PURE__ */ G("div", {
|
|
249
|
+
ref: V,
|
|
250
|
+
"aria-hidden": !0,
|
|
251
|
+
className: "h-px w-full"
|
|
252
|
+
})
|
|
253
|
+
]
|
|
254
|
+
}), he = s || !!c || o.length === 0;
|
|
255
|
+
return /* @__PURE__ */ K("div", {
|
|
214
256
|
style: j,
|
|
215
|
-
className:
|
|
257
|
+
className: m("flex h-full w-full flex-col gap-6 overflow-y-auto px-8 py-4", Y.container, te),
|
|
216
258
|
children: [
|
|
217
|
-
/* @__PURE__ */
|
|
259
|
+
/* @__PURE__ */ K("div", {
|
|
218
260
|
className: "flex items-start justify-between gap-4",
|
|
219
|
-
children: [/* @__PURE__ */
|
|
261
|
+
children: [/* @__PURE__ */ K("div", {
|
|
220
262
|
className: "min-w-0 gap-2",
|
|
221
|
-
children: [/* @__PURE__ */
|
|
222
|
-
className:
|
|
263
|
+
children: [/* @__PURE__ */ G("h1", {
|
|
264
|
+
className: m("truncate", ce),
|
|
223
265
|
children: e.title
|
|
224
|
-
}), /* @__PURE__ */
|
|
225
|
-
className:
|
|
266
|
+
}), /* @__PURE__ */ G("p", {
|
|
267
|
+
className: m("mt-1", A, Y.subtitle),
|
|
226
268
|
children: e.subtitle
|
|
227
269
|
})]
|
|
228
|
-
}), /* @__PURE__ */
|
|
270
|
+
}), /* @__PURE__ */ G(oe, {
|
|
229
271
|
label: e.createButtonLabel,
|
|
230
|
-
textClassName:
|
|
272
|
+
textClassName: Y.createButtonLabel,
|
|
231
273
|
"aria-label": e.createButtonLabel,
|
|
232
|
-
iconBefore: /* @__PURE__ */
|
|
233
|
-
size:
|
|
274
|
+
iconBefore: /* @__PURE__ */ G(z, {
|
|
275
|
+
size: C.SM,
|
|
234
276
|
"aria-hidden": !0,
|
|
235
|
-
stroke:
|
|
277
|
+
stroke: w
|
|
236
278
|
}),
|
|
237
279
|
onClick: t,
|
|
238
|
-
className:
|
|
280
|
+
className: m("shrink-0", Y.createButton)
|
|
239
281
|
})]
|
|
240
282
|
}),
|
|
241
|
-
/* @__PURE__ */
|
|
283
|
+
/* @__PURE__ */ K("div", {
|
|
242
284
|
className: "flex flex-wrap items-center gap-3",
|
|
243
|
-
children: [/* @__PURE__ */
|
|
285
|
+
children: [/* @__PURE__ */ G("div", {
|
|
244
286
|
role: "search",
|
|
245
287
|
className: "flex-1",
|
|
246
|
-
children: /* @__PURE__ */
|
|
288
|
+
children: /* @__PURE__ */ G(se, {
|
|
247
289
|
value: n,
|
|
248
|
-
onChange:
|
|
290
|
+
onChange: M,
|
|
249
291
|
placeholder: e.searchPlaceholder,
|
|
250
292
|
clearLabel: e.clearSearchLabel,
|
|
251
293
|
"aria-label": e.searchAriaLabel,
|
|
252
|
-
size:
|
|
253
|
-
onFocus:
|
|
254
|
-
onBlur:
|
|
294
|
+
size: T.Large,
|
|
295
|
+
onFocus: I,
|
|
296
|
+
onBlur: L
|
|
255
297
|
})
|
|
256
|
-
}), e.sortOptions.length > 0 && /* @__PURE__ */
|
|
257
|
-
ref:
|
|
258
|
-
className:
|
|
259
|
-
children: /* @__PURE__ */
|
|
260
|
-
items:
|
|
261
|
-
label:
|
|
262
|
-
variant:
|
|
263
|
-
appearance:
|
|
264
|
-
|
|
298
|
+
}), e.sortOptions.length > 0 && /* @__PURE__ */ G("div", {
|
|
299
|
+
ref: F,
|
|
300
|
+
className: m(P && Y.sortControlHidden),
|
|
301
|
+
children: /* @__PURE__ */ G(v, {
|
|
302
|
+
items: R,
|
|
303
|
+
label: pe,
|
|
304
|
+
variant: y.Primary,
|
|
305
|
+
appearance: _.Ghost,
|
|
306
|
+
iconBefore: ee === void 0 ? /* @__PURE__ */ G(fe, {
|
|
307
|
+
size: C.SM,
|
|
308
|
+
"aria-hidden": !0,
|
|
309
|
+
stroke: w
|
|
310
|
+
}) : ee,
|
|
311
|
+
className: Y.sortButton
|
|
265
312
|
})
|
|
266
313
|
})]
|
|
267
314
|
}),
|
|
268
|
-
|
|
269
|
-
/* @__PURE__ */
|
|
315
|
+
x,
|
|
316
|
+
/* @__PURE__ */ G("span", {
|
|
270
317
|
role: "status",
|
|
271
318
|
"aria-live": "polite",
|
|
272
319
|
className: "sr-only",
|
|
273
|
-
children:
|
|
320
|
+
children: B
|
|
274
321
|
}),
|
|
275
|
-
/* @__PURE__ */
|
|
276
|
-
className:
|
|
277
|
-
children:
|
|
322
|
+
/* @__PURE__ */ G("div", {
|
|
323
|
+
className: m("mx-auto flex size-full w-full min-w-0 flex-col", he && "items-center justify-center"),
|
|
324
|
+
children: H()
|
|
278
325
|
})
|
|
279
326
|
]
|
|
280
327
|
});
|
|
281
|
-
},
|
|
328
|
+
}, Me = /* @__PURE__ */ function(e) {
|
|
282
329
|
return e.FirstToRun = "firstToRun", e.LastToRun = "lastToRun", e.Newest = "newest", e.NameAZ = "nameAZ", e;
|
|
283
|
-
}({}),
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
},
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
"--stcf-
|
|
311
|
-
"--stcf-
|
|
312
|
-
|
|
313
|
-
|
|
330
|
+
}({}), Ne = { error: "_error_v2pfn_4" }, Pe = ({ label: e, value: t, onChange: r, error: i, errorClassName: a = "dial-small-text" }) => {
|
|
331
|
+
let o = _e(() => /* @__PURE__ */ new Date(), []);
|
|
332
|
+
return /* @__PURE__ */ K("div", {
|
|
333
|
+
className: "flex flex-col gap-1",
|
|
334
|
+
children: [/* @__PURE__ */ G(b, {
|
|
335
|
+
id: "scheduled-task-run-at",
|
|
336
|
+
mode: x.DateTime,
|
|
337
|
+
value: s(t),
|
|
338
|
+
onChange: (e) => r(n(e)),
|
|
339
|
+
minDate: o,
|
|
340
|
+
labelProps: {
|
|
341
|
+
label: e,
|
|
342
|
+
required: !0
|
|
343
|
+
},
|
|
344
|
+
invalid: !!i
|
|
345
|
+
}), i && /* @__PURE__ */ G("p", {
|
|
346
|
+
className: m(a, Ne.error),
|
|
347
|
+
children: i
|
|
348
|
+
})]
|
|
349
|
+
});
|
|
350
|
+
}, X = {
|
|
351
|
+
formColumn: "_formColumn_1la57_1",
|
|
352
|
+
detailsColumn: "_detailsColumn_1la57_10",
|
|
353
|
+
sectionSubtitle: "_sectionSubtitle_1la57_14",
|
|
354
|
+
instructionsError: "_instructionsError_1la57_18"
|
|
355
|
+
}, Fe = H(async () => ({ default: (await xe()).MarkdownEditor })), Ie = ({ labels: n, values: r, errors: s, modelSelector: d, modelLabelId: f, skillSelector: g, skillLabelId: _, skillErrorId: v, onFieldChange: y, onBack: S, onCancel: T, onSubmit: ee, isSubmitting: E = !1, markdownEditorTheme: te, backIcon: ne, className: ie, styles: ae }) => {
|
|
356
|
+
let k = he(), oe = h(), [se, A] = ve(), { colors: j, typography: M, layout: N } = ae ?? {}, P = M?.titleClassName ?? "dial-h1-text", fe = M?.sectionTitleClassName ?? "dial-body-semi-text", F = M?.sectionSubtitleClassName ?? "dial-tiny-text", I = M?.instructionsLabelClassName ?? "dial-body-semi-text mb-1", L = M?.instructionsErrorClassName ?? "dial-small-text", pe = p({
|
|
357
|
+
"--stcf-details-border": j?.detailsColumnBorder,
|
|
358
|
+
"--stcf-subtitle-text": j?.sectionSubtitleText,
|
|
359
|
+
"--stcf-error-text": j?.instructionsErrorText
|
|
360
|
+
}), R = (e) => {
|
|
361
|
+
A(c.test(e.target.value) ? void 0 : n.timeInvalidLabel), y("time", e.target.value);
|
|
362
|
+
}, z = (e) => {
|
|
363
|
+
A(void 0), y("time", typeof e == "string" ? e : "");
|
|
364
|
+
}, B = r.repeat !== t.OneTime && r.repeat !== t.Hourly;
|
|
365
|
+
U(() => {
|
|
366
|
+
B || A(void 0);
|
|
367
|
+
}, [B]);
|
|
368
|
+
let H = B ? se ?? s.time : void 0, me = (e) => y("runAt", e), ge = E || !r.displayName.trim() || !r.modelId || !r.prompt.trim() && !r.skillUrl?.trim() || !!s.skillUrl || B && !r.time || !!H;
|
|
369
|
+
return /* @__PURE__ */ G(be, {
|
|
314
370
|
labels: {
|
|
315
371
|
title: n.pageTitle,
|
|
316
372
|
backButtonLabel: n.backButtonLabel,
|
|
@@ -318,39 +374,51 @@ var U = {
|
|
|
318
374
|
submitButtonLabel: n.createButtonLabel,
|
|
319
375
|
submittingLabel: n.submittingLabel ?? "Saving"
|
|
320
376
|
},
|
|
321
|
-
onBack:
|
|
322
|
-
onCancel:
|
|
323
|
-
onSubmit:
|
|
324
|
-
isCancelDisabled:
|
|
325
|
-
isSubmitDisabled:
|
|
326
|
-
isSubmitting:
|
|
377
|
+
onBack: S,
|
|
378
|
+
onCancel: T,
|
|
379
|
+
onSubmit: ee,
|
|
380
|
+
isCancelDisabled: E,
|
|
381
|
+
isSubmitDisabled: ge,
|
|
382
|
+
isSubmitting: E,
|
|
383
|
+
backIcon: ne === void 0 ? /* @__PURE__ */ G(de, {
|
|
384
|
+
size: C.LG,
|
|
385
|
+
stroke: w,
|
|
386
|
+
"aria-hidden": !0,
|
|
387
|
+
className: "rtl:scale-x-[-1]"
|
|
388
|
+
}) : ne,
|
|
389
|
+
layout: {
|
|
390
|
+
sideColumnWidth: N?.detailsWidth,
|
|
391
|
+
columnGap: N?.columnGap,
|
|
392
|
+
reserveEndColumn: !1
|
|
393
|
+
},
|
|
394
|
+
className: ie,
|
|
327
395
|
styles: {
|
|
328
|
-
colors: { background:
|
|
396
|
+
colors: { background: j?.background },
|
|
329
397
|
header: {
|
|
330
|
-
colors: { borderColor:
|
|
331
|
-
typography: { fontClassName:
|
|
398
|
+
colors: { borderColor: j?.headerBorder },
|
|
399
|
+
typography: { fontClassName: P }
|
|
332
400
|
},
|
|
333
|
-
cssVars:
|
|
401
|
+
cssVars: pe
|
|
334
402
|
},
|
|
335
|
-
left: /* @__PURE__ */
|
|
403
|
+
left: /* @__PURE__ */ K("div", {
|
|
336
404
|
role: "group",
|
|
337
405
|
"aria-label": n.detailsSectionTitle,
|
|
338
|
-
className:
|
|
406
|
+
className: m("flex flex-1 flex-col gap-5 border-e py-6", X.detailsColumn, X.formColumn),
|
|
339
407
|
children: [
|
|
340
|
-
/* @__PURE__ */
|
|
408
|
+
/* @__PURE__ */ K("div", {
|
|
341
409
|
className: "flex flex-col gap-1",
|
|
342
|
-
children: [/* @__PURE__ */
|
|
343
|
-
className:
|
|
410
|
+
children: [/* @__PURE__ */ G("h2", {
|
|
411
|
+
className: fe,
|
|
344
412
|
children: n.detailsSectionTitle
|
|
345
|
-
}), /* @__PURE__ */
|
|
346
|
-
className:
|
|
413
|
+
}), /* @__PURE__ */ G("p", {
|
|
414
|
+
className: m(F, X.sectionSubtitle),
|
|
347
415
|
children: n.detailsSectionSubtitle
|
|
348
416
|
})]
|
|
349
417
|
}),
|
|
350
|
-
/* @__PURE__ */
|
|
418
|
+
/* @__PURE__ */ G(re, {
|
|
351
419
|
id: "scheduled-task-display-name",
|
|
352
420
|
value: r.displayName,
|
|
353
|
-
onChange: (e) =>
|
|
421
|
+
onChange: (e) => y("displayName", e ?? ""),
|
|
354
422
|
labelProps: {
|
|
355
423
|
label: n.displayNameLabel,
|
|
356
424
|
required: !0
|
|
@@ -358,99 +426,92 @@ var U = {
|
|
|
358
426
|
invalid: !!s.displayName,
|
|
359
427
|
error: s.displayName
|
|
360
428
|
}),
|
|
361
|
-
/* @__PURE__ */
|
|
429
|
+
/* @__PURE__ */ G(ue, {
|
|
362
430
|
id: "scheduled-task-description",
|
|
363
431
|
value: r.description ?? "",
|
|
364
|
-
onChange: (e) =>
|
|
432
|
+
onChange: (e) => y("description", e),
|
|
365
433
|
labelProps: { label: n.descriptionLabel },
|
|
366
434
|
maxLength: 500,
|
|
367
435
|
invalid: !!s.description,
|
|
368
436
|
error: s.description,
|
|
369
437
|
caption: r.description ? `${r.description.length}/500` : void 0
|
|
370
438
|
}),
|
|
371
|
-
/* @__PURE__ */
|
|
439
|
+
/* @__PURE__ */ K("div", {
|
|
372
440
|
className: "flex flex-col gap-1",
|
|
373
441
|
children: [
|
|
374
|
-
/* @__PURE__ */
|
|
375
|
-
id:
|
|
442
|
+
/* @__PURE__ */ G(D, {
|
|
443
|
+
id: f,
|
|
376
444
|
label: n.modelOrAgentLabel,
|
|
377
445
|
required: !0
|
|
378
446
|
}),
|
|
379
|
-
|
|
380
|
-
s.modelId && /* @__PURE__ */
|
|
381
|
-
className:
|
|
447
|
+
d,
|
|
448
|
+
s.modelId && /* @__PURE__ */ G("p", {
|
|
449
|
+
className: m(L, X.instructionsError),
|
|
382
450
|
children: s.modelId
|
|
383
451
|
})
|
|
384
452
|
]
|
|
385
453
|
}),
|
|
386
|
-
/* @__PURE__ */
|
|
454
|
+
/* @__PURE__ */ K("div", {
|
|
387
455
|
className: "flex flex-col gap-3",
|
|
388
456
|
children: [
|
|
389
|
-
/* @__PURE__ */
|
|
457
|
+
/* @__PURE__ */ G(ce, {
|
|
390
458
|
labelProps: { label: n.repeatLabel },
|
|
391
459
|
value: r.repeat,
|
|
392
|
-
onChange: (e) =>
|
|
460
|
+
onChange: (e) => y("repeat", e),
|
|
393
461
|
options: n.repeatOptions.map((e) => ({
|
|
394
462
|
value: e.key,
|
|
395
463
|
label: e.label
|
|
396
464
|
}))
|
|
397
465
|
}),
|
|
398
|
-
r.repeat ===
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
onChange: (e) => u("runAt", Te(e)),
|
|
405
|
-
labelProps: {
|
|
406
|
-
label: n.runAtLabel,
|
|
407
|
-
required: !0
|
|
408
|
-
},
|
|
409
|
-
invalid: !!s.runAt
|
|
410
|
-
}), s.runAt && /* @__PURE__ */ B("p", {
|
|
411
|
-
className: a(k, Y.instructionsError),
|
|
412
|
-
children: s.runAt
|
|
413
|
-
})]
|
|
466
|
+
r.repeat === t.OneTime && /* @__PURE__ */ G(Pe, {
|
|
467
|
+
label: n.runAtLabel,
|
|
468
|
+
value: r.runAt ?? "",
|
|
469
|
+
onChange: me,
|
|
470
|
+
error: s.runAt,
|
|
471
|
+
errorClassName: L
|
|
414
472
|
}),
|
|
415
|
-
r.repeat !==
|
|
416
|
-
|
|
473
|
+
r.repeat !== t.OneTime && /* @__PURE__ */ K(ye, { children: [
|
|
474
|
+
B && /* @__PURE__ */ K("div", {
|
|
417
475
|
className: "flex flex-col gap-1",
|
|
418
|
-
children: [/* @__PURE__ */
|
|
476
|
+
children: [/* @__PURE__ */ G(b, {
|
|
419
477
|
id: "scheduled-task-time",
|
|
420
|
-
mode:
|
|
478
|
+
mode: x.Time,
|
|
421
479
|
value: r.time,
|
|
422
|
-
onChange:
|
|
480
|
+
onChange: z,
|
|
481
|
+
onBlur: R,
|
|
423
482
|
labelProps: {
|
|
424
483
|
label: n.timeLabel,
|
|
425
484
|
required: !0
|
|
426
485
|
},
|
|
427
|
-
invalid: !!
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
486
|
+
invalid: !!H,
|
|
487
|
+
disabled: E,
|
|
488
|
+
showTimezone: !0
|
|
489
|
+
}), H && /* @__PURE__ */ G("p", {
|
|
490
|
+
className: m(L, X.instructionsError),
|
|
491
|
+
children: H
|
|
431
492
|
})]
|
|
432
493
|
}),
|
|
433
|
-
r.repeat ===
|
|
494
|
+
r.repeat === t.Weekly && /* @__PURE__ */ K("div", {
|
|
434
495
|
className: "flex flex-col gap-1",
|
|
435
|
-
children: [/* @__PURE__ */
|
|
496
|
+
children: [/* @__PURE__ */ G(b, {
|
|
436
497
|
id: "scheduled-task-day-of-week",
|
|
437
|
-
mode:
|
|
438
|
-
value:
|
|
439
|
-
onChange: (e) =>
|
|
498
|
+
mode: x.Weekday,
|
|
499
|
+
value: a(r.dayOfWeek),
|
|
500
|
+
onChange: (e) => y("dayOfWeek", o(e)),
|
|
440
501
|
labelProps: {
|
|
441
502
|
label: n.dayOfWeekLabel,
|
|
442
503
|
required: !0
|
|
443
504
|
},
|
|
444
505
|
invalid: !!s.dayOfWeek
|
|
445
|
-
}), s.dayOfWeek && /* @__PURE__ */
|
|
446
|
-
className:
|
|
506
|
+
}), s.dayOfWeek && /* @__PURE__ */ G("p", {
|
|
507
|
+
className: m(L, X.instructionsError),
|
|
447
508
|
children: s.dayOfWeek
|
|
448
509
|
})]
|
|
449
510
|
}),
|
|
450
|
-
r.repeat ===
|
|
511
|
+
r.repeat === t.Monthly && /* @__PURE__ */ G(re, {
|
|
451
512
|
id: "scheduled-task-day-of-month",
|
|
452
513
|
value: r.dayOfMonth ?? "",
|
|
453
|
-
onChange: (e) =>
|
|
514
|
+
onChange: (e) => y("dayOfMonth", e ?? ""),
|
|
454
515
|
labelProps: {
|
|
455
516
|
label: n.dayOfMonthLabel,
|
|
456
517
|
required: !0
|
|
@@ -458,13 +519,13 @@ var U = {
|
|
|
458
519
|
invalid: !!s.dayOfMonth,
|
|
459
520
|
error: s.dayOfMonth
|
|
460
521
|
}),
|
|
461
|
-
r.repeat ===
|
|
522
|
+
r.repeat === t.Hourly && /* @__PURE__ */ G(O, {
|
|
462
523
|
id: "scheduled-task-minute",
|
|
463
524
|
integer: !0,
|
|
464
525
|
min: 0,
|
|
465
526
|
max: 59,
|
|
466
527
|
value: r.minute ?? "",
|
|
467
|
-
onChange: (e) =>
|
|
528
|
+
onChange: (e) => y("minute", e == null ? "" : String(e)),
|
|
468
529
|
labelProps: {
|
|
469
530
|
label: n.minuteLabel,
|
|
470
531
|
required: !0
|
|
@@ -472,34 +533,34 @@ var U = {
|
|
|
472
533
|
invalid: !!s.minute,
|
|
473
534
|
error: s.minute
|
|
474
535
|
}),
|
|
475
|
-
/* @__PURE__ */
|
|
476
|
-
className: "flex flex-row gap-3
|
|
477
|
-
children: [/* @__PURE__ */
|
|
536
|
+
/* @__PURE__ */ K("div", {
|
|
537
|
+
className: "flex flex-row gap-3",
|
|
538
|
+
children: [/* @__PURE__ */ K("div", {
|
|
478
539
|
className: "flex flex-1 flex-col gap-1",
|
|
479
|
-
children: [/* @__PURE__ */
|
|
540
|
+
children: [/* @__PURE__ */ G(b, {
|
|
480
541
|
id: "scheduled-task-start-date",
|
|
481
|
-
mode:
|
|
482
|
-
value:
|
|
483
|
-
onChange: (e) =>
|
|
542
|
+
mode: x.Date,
|
|
543
|
+
value: e(r.startDate),
|
|
544
|
+
onChange: (e) => y("startDate", i(e)),
|
|
484
545
|
labelProps: { label: n.startDateLabel },
|
|
485
546
|
placeholder: n.startDatePlaceholder,
|
|
486
547
|
invalid: !!s.startDate
|
|
487
|
-
}), s.startDate && /* @__PURE__ */
|
|
488
|
-
className:
|
|
548
|
+
}), s.startDate && /* @__PURE__ */ G("p", {
|
|
549
|
+
className: m(L, X.instructionsError),
|
|
489
550
|
children: s.startDate
|
|
490
551
|
})]
|
|
491
|
-
}), /* @__PURE__ */
|
|
552
|
+
}), /* @__PURE__ */ K("div", {
|
|
492
553
|
className: "flex flex-1 flex-col gap-1",
|
|
493
|
-
children: [/* @__PURE__ */
|
|
554
|
+
children: [/* @__PURE__ */ G(b, {
|
|
494
555
|
id: "scheduled-task-end-date",
|
|
495
|
-
mode:
|
|
496
|
-
value:
|
|
497
|
-
onChange: (e) =>
|
|
556
|
+
mode: x.Date,
|
|
557
|
+
value: e(r.endDate),
|
|
558
|
+
onChange: (e) => y("endDate", i(e)),
|
|
498
559
|
labelProps: { label: n.endDateLabel },
|
|
499
560
|
placeholder: n.endDatePlaceholder,
|
|
500
561
|
invalid: !!s.endDate
|
|
501
|
-
}), s.endDate && /* @__PURE__ */
|
|
502
|
-
className:
|
|
562
|
+
}), s.endDate && /* @__PURE__ */ G("p", {
|
|
563
|
+
className: m(L, X.instructionsError),
|
|
503
564
|
children: s.endDate
|
|
504
565
|
})]
|
|
505
566
|
})]
|
|
@@ -509,266 +570,322 @@ var U = {
|
|
|
509
570
|
})
|
|
510
571
|
]
|
|
511
572
|
}),
|
|
512
|
-
children: /* @__PURE__ */
|
|
573
|
+
children: /* @__PURE__ */ K("div", {
|
|
513
574
|
role: "group",
|
|
514
575
|
"aria-label": n.configurationSectionTitle,
|
|
515
|
-
className: "flex flex-1 flex-col gap-5
|
|
516
|
-
children: [
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
576
|
+
className: m("flex flex-1 flex-col gap-5 py-6", X.formColumn),
|
|
577
|
+
children: [
|
|
578
|
+
/* @__PURE__ */ K("div", {
|
|
579
|
+
className: "flex flex-col gap-1",
|
|
580
|
+
children: [/* @__PURE__ */ G("h2", {
|
|
581
|
+
className: fe,
|
|
582
|
+
children: n.configurationSectionTitle
|
|
583
|
+
}), /* @__PURE__ */ G("p", {
|
|
584
|
+
className: m(F, X.sectionSubtitle),
|
|
585
|
+
children: n.configurationSectionSubtitle
|
|
586
|
+
})]
|
|
587
|
+
}),
|
|
588
|
+
g != null && /* @__PURE__ */ K("div", {
|
|
589
|
+
className: "flex w-full min-w-0 max-w-[996px] flex-col gap-1",
|
|
590
|
+
children: [/* @__PURE__ */ G("span", {
|
|
591
|
+
id: _,
|
|
592
|
+
className: I,
|
|
593
|
+
children: n.skillLabel
|
|
594
|
+
}), g]
|
|
595
|
+
}),
|
|
596
|
+
/* @__PURE__ */ G("div", {
|
|
597
|
+
id: v,
|
|
598
|
+
"aria-live": "polite",
|
|
599
|
+
className: s.skillUrl ? void 0 : "sr-only",
|
|
600
|
+
children: s.skillUrl && /* @__PURE__ */ G("p", {
|
|
601
|
+
className: m(L, X.instructionsError),
|
|
602
|
+
children: s.skillUrl
|
|
603
|
+
})
|
|
604
|
+
}),
|
|
605
|
+
/* @__PURE__ */ K("div", {
|
|
606
|
+
className: "flex flex-1 flex-col gap-1",
|
|
607
|
+
children: [
|
|
608
|
+
/* @__PURE__ */ G("label", {
|
|
609
|
+
htmlFor: k,
|
|
610
|
+
className: I,
|
|
611
|
+
children: n.instructionsLabel
|
|
612
|
+
}),
|
|
613
|
+
/* @__PURE__ */ G("div", {
|
|
614
|
+
ref: oe,
|
|
615
|
+
className: m("w-full max-w-[996px]", l, u),
|
|
616
|
+
children: /* @__PURE__ */ G(V, {
|
|
617
|
+
fallback: /* @__PURE__ */ G(le, {}),
|
|
618
|
+
children: /* @__PURE__ */ G(Fe, {
|
|
619
|
+
id: k,
|
|
620
|
+
value: r.prompt,
|
|
621
|
+
onChange: (e) => y("prompt", e),
|
|
622
|
+
height: 480,
|
|
623
|
+
theme: te,
|
|
624
|
+
placeholder: n.instructionsPlaceholder
|
|
625
|
+
})
|
|
544
626
|
})
|
|
627
|
+
}),
|
|
628
|
+
s.prompt && /* @__PURE__ */ G("p", {
|
|
629
|
+
className: m(L, X.instructionsError),
|
|
630
|
+
children: s.prompt
|
|
545
631
|
})
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
children: s.prompt
|
|
550
|
-
})
|
|
551
|
-
]
|
|
552
|
-
})]
|
|
632
|
+
]
|
|
633
|
+
})
|
|
634
|
+
]
|
|
553
635
|
})
|
|
554
636
|
});
|
|
555
|
-
},
|
|
637
|
+
}, Z = /* @__PURE__ */ function(e) {
|
|
556
638
|
return e.Details = "details", e.Configuration = "configuration", e.History = "history", e;
|
|
557
|
-
}({}),
|
|
639
|
+
}({}), Le = /* @__PURE__ */ function(e) {
|
|
558
640
|
return e.Card = "card", e.Flow = "flow", e;
|
|
559
|
-
}({}),
|
|
560
|
-
|
|
561
|
-
"
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
className:
|
|
565
|
-
children:
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
641
|
+
}({}), Re = { subtitleText: "_subtitleText_1i4x2_3" }, ze = ({ skillLabel: e, skillDisplayName: t, instructionsLabel: n, instructionsMarkdown: r, renderInstructions: i, fieldLabelClassName: a = "dial-tiny-text" }) => /* @__PURE__ */ K("div", {
|
|
642
|
+
className: "flex min-w-0 flex-col gap-5",
|
|
643
|
+
children: [t && /* @__PURE__ */ K("div", {
|
|
644
|
+
role: "group",
|
|
645
|
+
"aria-label": e,
|
|
646
|
+
className: "flex min-w-0 flex-col gap-1",
|
|
647
|
+
children: [/* @__PURE__ */ G("span", {
|
|
648
|
+
className: m(a, Re.subtitleText),
|
|
649
|
+
children: e
|
|
650
|
+
}), /* @__PURE__ */ G("p", {
|
|
651
|
+
className: "whitespace-normal break-all",
|
|
652
|
+
children: t
|
|
653
|
+
})]
|
|
654
|
+
}), r && /* @__PURE__ */ K("div", {
|
|
655
|
+
role: "group",
|
|
656
|
+
"aria-label": n,
|
|
657
|
+
className: "flex min-w-0 flex-col gap-1",
|
|
658
|
+
children: [/* @__PURE__ */ G("span", {
|
|
659
|
+
className: m(a, Re.subtitleText),
|
|
660
|
+
children: n
|
|
661
|
+
}), i ? i(r) : /* @__PURE__ */ G(d, { content: r })]
|
|
662
|
+
})]
|
|
663
|
+
}), Be = { subtitleText: "_subtitleText_1i4x2_3" }, Ve = ({ labels: e, description: t, modelLabel: n, repeatsLabel: r, activeWindowLabel: i, fieldLabelClassName: a = "dial-tiny-text", fieldValueClassName: o = "dial-small-text" }) => /* @__PURE__ */ K(ye, { children: [
|
|
664
|
+
t && /* @__PURE__ */ K("div", {
|
|
569
665
|
className: "flex flex-col gap-1",
|
|
570
|
-
children: [/* @__PURE__ */
|
|
571
|
-
className: a
|
|
666
|
+
children: [/* @__PURE__ */ G("span", {
|
|
667
|
+
className: m(a, Be.subtitleText),
|
|
572
668
|
children: e.descriptionLabel
|
|
573
|
-
}), /* @__PURE__ */
|
|
574
|
-
className:
|
|
669
|
+
}), /* @__PURE__ */ G("p", {
|
|
670
|
+
className: o,
|
|
575
671
|
children: t
|
|
576
672
|
})]
|
|
577
673
|
}),
|
|
578
|
-
n && /* @__PURE__ */
|
|
674
|
+
n && /* @__PURE__ */ K("div", {
|
|
579
675
|
className: "flex flex-col gap-1",
|
|
580
|
-
children: [/* @__PURE__ */
|
|
581
|
-
className: a
|
|
676
|
+
children: [/* @__PURE__ */ G("span", {
|
|
677
|
+
className: m(a, Be.subtitleText),
|
|
582
678
|
children: e.modelLabel
|
|
583
|
-
}), /* @__PURE__ */
|
|
584
|
-
className:
|
|
679
|
+
}), /* @__PURE__ */ G("p", {
|
|
680
|
+
className: o,
|
|
585
681
|
children: n
|
|
586
682
|
})]
|
|
587
683
|
}),
|
|
588
|
-
r && /* @__PURE__ */
|
|
684
|
+
r && /* @__PURE__ */ K("div", {
|
|
589
685
|
className: "flex flex-col gap-1",
|
|
590
|
-
children: [/* @__PURE__ */
|
|
591
|
-
className: a
|
|
686
|
+
children: [/* @__PURE__ */ G("span", {
|
|
687
|
+
className: m(a, Be.subtitleText),
|
|
592
688
|
children: e.repeatsLabel
|
|
593
|
-
}), /* @__PURE__ */
|
|
594
|
-
className:
|
|
689
|
+
}), /* @__PURE__ */ G("p", {
|
|
690
|
+
className: o,
|
|
595
691
|
children: r
|
|
596
692
|
})]
|
|
597
693
|
}),
|
|
598
|
-
i && /* @__PURE__ */
|
|
694
|
+
i && /* @__PURE__ */ K("div", {
|
|
599
695
|
className: "flex flex-col gap-1",
|
|
600
|
-
children: [/* @__PURE__ */
|
|
601
|
-
className: a
|
|
696
|
+
children: [/* @__PURE__ */ G("span", {
|
|
697
|
+
className: m(a, Be.subtitleText),
|
|
602
698
|
children: e.activeWindowLabel
|
|
603
|
-
}), /* @__PURE__ */
|
|
604
|
-
className:
|
|
699
|
+
}), /* @__PURE__ */ G("p", {
|
|
700
|
+
className: o,
|
|
605
701
|
children: i
|
|
606
702
|
})]
|
|
607
703
|
})
|
|
608
|
-
] }),
|
|
704
|
+
] }), He = /* @__PURE__ */ function(e) {
|
|
609
705
|
return e.Success = "success", e.Error = "error", e.InProgress = "inProgress", e.Missed = "missed", e;
|
|
610
706
|
}({}), Q = {
|
|
611
|
-
subtitleText: "
|
|
612
|
-
successIcon: "
|
|
613
|
-
errorIcon: "
|
|
614
|
-
missedIcon: "
|
|
615
|
-
currentRun: "
|
|
616
|
-
|
|
617
|
-
|
|
707
|
+
subtitleText: "_subtitleText_1naww_1",
|
|
708
|
+
successIcon: "_successIcon_1naww_5",
|
|
709
|
+
errorIcon: "_errorIcon_1naww_9",
|
|
710
|
+
missedIcon: "_missedIcon_1naww_13",
|
|
711
|
+
currentRun: "_currentRun_1naww_17",
|
|
712
|
+
interactiveRow: "_interactiveRow_1naww_21",
|
|
713
|
+
unreadDot: "_unreadDot_1naww_29",
|
|
714
|
+
rowLayout: "_rowLayout_1naww_33"
|
|
715
|
+
}, Ue = ({ status: e }) => {
|
|
618
716
|
switch (e) {
|
|
619
|
-
case
|
|
620
|
-
size:
|
|
717
|
+
case He.Success: return /* @__PURE__ */ G(F, {
|
|
718
|
+
size: C.SM,
|
|
621
719
|
className: Q.successIcon,
|
|
622
720
|
"aria-hidden": !0,
|
|
623
|
-
stroke:
|
|
721
|
+
stroke: w
|
|
624
722
|
});
|
|
625
|
-
case
|
|
626
|
-
size:
|
|
723
|
+
case He.Error: return /* @__PURE__ */ G(I, {
|
|
724
|
+
size: C.SM,
|
|
627
725
|
className: Q.errorIcon,
|
|
628
726
|
"aria-hidden": !0,
|
|
629
|
-
stroke:
|
|
727
|
+
stroke: w
|
|
630
728
|
});
|
|
631
|
-
case
|
|
729
|
+
case He.InProgress: return /* @__PURE__ */ G("span", {
|
|
632
730
|
"aria-hidden": !0,
|
|
633
|
-
children: /* @__PURE__ */
|
|
731
|
+
children: /* @__PURE__ */ G(le, { size: C.SM })
|
|
634
732
|
});
|
|
635
|
-
case
|
|
636
|
-
size:
|
|
733
|
+
case He.Missed: return /* @__PURE__ */ G(P, {
|
|
734
|
+
size: C.SM,
|
|
637
735
|
className: Q.missedIcon,
|
|
638
736
|
"aria-hidden": !0,
|
|
639
|
-
stroke:
|
|
737
|
+
stroke: w
|
|
640
738
|
});
|
|
641
739
|
default: return null;
|
|
642
740
|
}
|
|
643
|
-
},
|
|
644
|
-
let { colors:
|
|
645
|
-
"--strhl-success-icon":
|
|
646
|
-
"--strhl-error-icon":
|
|
647
|
-
"--strhl-missed-icon":
|
|
648
|
-
"--strhl-subtitle-text":
|
|
649
|
-
"--strhl-current-run-bg":
|
|
650
|
-
"--strhl-unread-dot":
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
741
|
+
}, We = ({ 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 }) => {
|
|
742
|
+
let { colors: d, typography: f } = u ?? {}, h = f?.runTimestampClassName ?? "dial-small-text", g = f?.subtitleClassName ?? "dial-body-text", _ = c.unreadIndicatorLabel ?? "Unread", v = p({
|
|
743
|
+
"--strhl-success-icon": d?.successIconColor,
|
|
744
|
+
"--strhl-error-icon": d?.errorIconColor,
|
|
745
|
+
"--strhl-missed-icon": d?.missedIconColor,
|
|
746
|
+
"--strhl-subtitle-text": d?.subtitleTextColor,
|
|
747
|
+
"--strhl-current-run-bg": d?.currentRunBackground,
|
|
748
|
+
"--strhl-unread-dot": d?.unreadDotColor,
|
|
749
|
+
"--strhl-row-hover-bg": u?.rowHoverBackground,
|
|
750
|
+
"--strhl-row-focus-bg": u?.rowFocusBackground
|
|
751
|
+
}), y = (e) => {
|
|
752
|
+
let t = c.runStatusLabels[e.status], n = e.id === o, r = [e.isUnread ? _ : void 0, n ? c.currentRunLabel : void 0].filter((e) => !!e), i = [`${t} ${e.timestampLabel}`, ...r].join(" — "), a = !!e.conversationId && !!s;
|
|
753
|
+
return /* @__PURE__ */ K("li", {
|
|
754
|
+
...a ? {
|
|
655
755
|
role: "button",
|
|
656
756
|
tabIndex: 0,
|
|
657
|
-
onClick: () =>
|
|
757
|
+
onClick: () => s?.(e),
|
|
658
758
|
onKeyDown: (t) => {
|
|
659
|
-
(t.key === "Enter" || t.key === " ") && (t.preventDefault(),
|
|
759
|
+
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), s?.(e));
|
|
660
760
|
}
|
|
661
761
|
} : {},
|
|
662
762
|
"aria-label": i,
|
|
663
763
|
"aria-current": n ? "true" : void 0,
|
|
664
|
-
className:
|
|
665
|
-
children: [/* @__PURE__ */
|
|
764
|
+
className: m("flex min-h-[var(--strhl-row-min-height,32px)] max-w-[328px] items-center justify-between gap-2 rounded-full pe-2", Q.rowLayout, n && Q.currentRun, a && "cursor-pointer", a && Q.interactiveRow),
|
|
765
|
+
children: [/* @__PURE__ */ K("span", {
|
|
666
766
|
className: "flex items-center gap-2 truncate",
|
|
667
|
-
children: [/* @__PURE__ */
|
|
767
|
+
children: [/* @__PURE__ */ G("span", {
|
|
668
768
|
className: "relative flex size-3 shrink-0 items-center justify-center",
|
|
669
|
-
children: e.isUnread && /* @__PURE__ */
|
|
670
|
-
className:
|
|
769
|
+
children: e.isUnread && /* @__PURE__ */ G("span", {
|
|
770
|
+
className: m("size-[5.33px] rounded-full", Q.unreadDot),
|
|
671
771
|
"aria-hidden": !0
|
|
672
772
|
})
|
|
673
|
-
}), /* @__PURE__ */
|
|
674
|
-
className:
|
|
773
|
+
}), /* @__PURE__ */ G("span", {
|
|
774
|
+
className: m(h, "truncate"),
|
|
675
775
|
children: e.timestampLabel
|
|
676
776
|
})]
|
|
677
|
-
}), /* @__PURE__ */
|
|
678
|
-
className: "flex h-
|
|
679
|
-
children: /* @__PURE__ */
|
|
777
|
+
}), /* @__PURE__ */ G("span", {
|
|
778
|
+
className: "flex min-h-[var(--strhl-row-min-height,32px)] w-14 shrink-0 items-center justify-end",
|
|
779
|
+
children: /* @__PURE__ */ G(Ue, { status: e.status })
|
|
680
780
|
})]
|
|
681
781
|
}, e.id);
|
|
682
|
-
},
|
|
782
|
+
}, b = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */ K("li", {
|
|
683
783
|
"aria-hidden": "true",
|
|
684
|
-
className: "flex h-
|
|
685
|
-
children: [/* @__PURE__ */
|
|
686
|
-
variant:
|
|
784
|
+
className: m("flex min-h-[var(--strhl-row-min-height,32px)] max-w-[328px] items-center justify-between gap-2 pe-2", Q.rowLayout),
|
|
785
|
+
children: [/* @__PURE__ */ G(A, {
|
|
786
|
+
variant: j.Rectangular,
|
|
687
787
|
width: "160px",
|
|
688
788
|
height: "16px"
|
|
689
|
-
}), /* @__PURE__ */
|
|
690
|
-
variant:
|
|
789
|
+
}), /* @__PURE__ */ G(A, {
|
|
790
|
+
variant: j.Rectangular,
|
|
691
791
|
width: "16px",
|
|
692
792
|
height: "16px",
|
|
693
793
|
className: "shrink-0 rounded-full"
|
|
694
794
|
})]
|
|
695
795
|
}, `history-skeleton-${t}`));
|
|
696
|
-
return t && e.length === 0 ? /* @__PURE__ */
|
|
697
|
-
style:
|
|
698
|
-
|
|
796
|
+
return t && e.length === 0 ? /* @__PURE__ */ G("ul", {
|
|
797
|
+
style: {
|
|
798
|
+
...v,
|
|
799
|
+
"--strhl-row-min-height": u?.rowMinHeight
|
|
800
|
+
},
|
|
801
|
+
"aria-label": c.historyTitle,
|
|
699
802
|
className: "flex flex-col gap-0.5",
|
|
700
|
-
children:
|
|
701
|
-
}) :
|
|
702
|
-
style:
|
|
803
|
+
children: b(r)
|
|
804
|
+
}) : i && e.length === 0 ? /* @__PURE__ */ K("div", {
|
|
805
|
+
style: v,
|
|
703
806
|
className: "flex flex-col items-start gap-3",
|
|
704
|
-
children: [/* @__PURE__ */
|
|
807
|
+
children: [/* @__PURE__ */ G("p", {
|
|
705
808
|
role: "alert",
|
|
706
|
-
className:
|
|
707
|
-
children:
|
|
708
|
-
}), /* @__PURE__ */
|
|
709
|
-
label:
|
|
710
|
-
onClick:
|
|
809
|
+
className: m(g, Q.subtitleText),
|
|
810
|
+
children: c.errorLabel
|
|
811
|
+
}), /* @__PURE__ */ G(E, {
|
|
812
|
+
label: c.retryLabel,
|
|
813
|
+
onClick: a
|
|
711
814
|
})]
|
|
712
|
-
}) : e.length === 0 ? /* @__PURE__ */
|
|
713
|
-
style:
|
|
815
|
+
}) : e.length === 0 ? /* @__PURE__ */ K("div", {
|
|
816
|
+
style: v,
|
|
714
817
|
className: "flex w-full flex-col items-center justify-center gap-2 py-4",
|
|
715
|
-
children: [/* @__PURE__ */
|
|
818
|
+
children: [/* @__PURE__ */ G(L, {
|
|
716
819
|
size: 44,
|
|
717
|
-
stroke:
|
|
820
|
+
stroke: w,
|
|
718
821
|
className: Q.subtitleText,
|
|
719
822
|
"aria-hidden": !0
|
|
720
|
-
}), /* @__PURE__ */
|
|
823
|
+
}), /* @__PURE__ */ G("p", {
|
|
721
824
|
role: "status",
|
|
722
|
-
className:
|
|
723
|
-
children:
|
|
825
|
+
className: h,
|
|
826
|
+
children: c.emptyLabel
|
|
724
827
|
})]
|
|
725
|
-
}) : /* @__PURE__ */
|
|
726
|
-
style:
|
|
727
|
-
|
|
828
|
+
}) : /* @__PURE__ */ K("ul", {
|
|
829
|
+
style: {
|
|
830
|
+
...v,
|
|
831
|
+
"--strhl-row-min-height": u?.rowMinHeight
|
|
832
|
+
},
|
|
833
|
+
"aria-label": c.historyTitle,
|
|
728
834
|
className: "flex flex-col gap-0.5",
|
|
729
835
|
children: [
|
|
730
|
-
e.map(
|
|
731
|
-
n &&
|
|
732
|
-
|
|
836
|
+
e.map(y),
|
|
837
|
+
n && b(r),
|
|
838
|
+
i ? /* @__PURE__ */ K("li", {
|
|
733
839
|
className: "flex flex-col items-start gap-3 px-5 py-2",
|
|
734
|
-
children: [/* @__PURE__ */
|
|
840
|
+
children: [/* @__PURE__ */ G("p", {
|
|
735
841
|
role: "alert",
|
|
736
|
-
className:
|
|
737
|
-
children:
|
|
738
|
-
}), /* @__PURE__ */
|
|
739
|
-
label:
|
|
740
|
-
onClick:
|
|
842
|
+
className: m(g, Q.subtitleText),
|
|
843
|
+
children: c.errorLabel
|
|
844
|
+
}), /* @__PURE__ */ G(E, {
|
|
845
|
+
label: c.retryLabel,
|
|
846
|
+
onClick: a
|
|
741
847
|
})]
|
|
742
|
-
}) :
|
|
848
|
+
}) : l
|
|
743
849
|
]
|
|
744
850
|
});
|
|
745
|
-
},
|
|
746
|
-
historyCard: "
|
|
747
|
-
subtitleText: "
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
851
|
+
}, Ge = {
|
|
852
|
+
historyCard: "_historyCard_153p9_4",
|
|
853
|
+
subtitleText: "_subtitleText_153p9_8",
|
|
854
|
+
cardLayout: "_cardLayout_153p9_13"
|
|
855
|
+
}, Ke = ({ 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: h = "dial-small-text", sectionTitleClassName: g = "dial-body-semi-text", colors: _, styles: v }) => {
|
|
856
|
+
let y = e === Le.Card, b = y ? m("sticky bottom-0 z-10 rounded-b-xl px-6 pb-5 pt-2", Ge.historyCard) : "pt-2", x = l ? /* @__PURE__ */ K("li", {
|
|
857
|
+
className: b,
|
|
858
|
+
children: [/* @__PURE__ */ G("p", {
|
|
859
|
+
role: "alert",
|
|
860
|
+
children: t.historyLoadMoreErrorLabel ?? t.historyErrorLabel
|
|
861
|
+
}), u && /* @__PURE__ */ G(E, {
|
|
862
|
+
label: t.historyRetryLabel,
|
|
863
|
+
onClick: u,
|
|
864
|
+
disabled: a
|
|
865
|
+
})]
|
|
866
|
+
}) : f && d && t.historyShowMoreLabel ? /* @__PURE__ */ G("li", {
|
|
867
|
+
className: b,
|
|
868
|
+
children: /* @__PURE__ */ G(E, {
|
|
752
869
|
label: t.historyShowMoreLabel,
|
|
753
|
-
onClick:
|
|
754
|
-
disabled:
|
|
870
|
+
onClick: f,
|
|
871
|
+
disabled: a
|
|
755
872
|
})
|
|
756
|
-
}) : void 0,
|
|
757
|
-
className:
|
|
873
|
+
}) : void 0, S = n ? /* @__PURE__ */ G("p", {
|
|
874
|
+
className: m(h, Ge.subtitleText),
|
|
758
875
|
children: n
|
|
759
|
-
}) : void 0,
|
|
876
|
+
}) : void 0, C = t.historyLoadingMoreLabel ? /* @__PURE__ */ G("span", {
|
|
760
877
|
role: "status",
|
|
761
878
|
"aria-live": "polite",
|
|
762
879
|
className: "sr-only",
|
|
763
|
-
children:
|
|
764
|
-
}) : void 0,
|
|
880
|
+
children: a ? t.historyLoadingMoreLabel : ""
|
|
881
|
+
}) : void 0, w = /* @__PURE__ */ G(We, {
|
|
765
882
|
items: r,
|
|
766
883
|
isLoading: i,
|
|
767
|
-
isLoadingMore:
|
|
768
|
-
skeletonCount:
|
|
769
|
-
error:
|
|
770
|
-
onRetry:
|
|
771
|
-
onRunClick:
|
|
884
|
+
isLoadingMore: a,
|
|
885
|
+
skeletonCount: o,
|
|
886
|
+
error: s,
|
|
887
|
+
onRetry: c,
|
|
888
|
+
onRunClick: p,
|
|
772
889
|
labels: {
|
|
773
890
|
historyTitle: t.historyTitle,
|
|
774
891
|
emptyLabel: t.historyEmptyLabel,
|
|
@@ -777,261 +894,363 @@ var U = {
|
|
|
777
894
|
runStatusLabels: t.runStatusLabels,
|
|
778
895
|
unreadIndicatorLabel: t.unreadIndicatorLabel
|
|
779
896
|
},
|
|
780
|
-
footer:
|
|
897
|
+
footer: x,
|
|
781
898
|
styles: {
|
|
782
|
-
typography: { runTimestampClassName:
|
|
783
|
-
colors:
|
|
899
|
+
typography: { runTimestampClassName: h },
|
|
900
|
+
colors: v?.colors ?? _,
|
|
901
|
+
rowMinHeight: v?.rowMinHeight,
|
|
902
|
+
rowHoverBackground: v?.rowHoverBackground,
|
|
903
|
+
rowFocusBackground: v?.rowFocusBackground
|
|
784
904
|
}
|
|
785
905
|
});
|
|
786
|
-
return
|
|
787
|
-
className:
|
|
788
|
-
|
|
789
|
-
|
|
906
|
+
return y ? /* @__PURE__ */ K("div", {
|
|
907
|
+
className: m("flex max-h-[var(--st-history-max-height,70vh)] w-full max-w-full flex-col overflow-y-auto rounded-xl shadow-md", Ge.historyCard, Ge.cardLayout),
|
|
908
|
+
style: { "--st-history-max-height": v?.maxHeight },
|
|
909
|
+
children: [/* @__PURE__ */ K("div", {
|
|
910
|
+
className: m("sticky top-0 z-10 flex flex-col gap-4 rounded-t-xl px-6 pb-2 pt-5", Ge.historyCard),
|
|
790
911
|
children: [
|
|
791
|
-
/* @__PURE__ */
|
|
792
|
-
className:
|
|
912
|
+
/* @__PURE__ */ G("h2", {
|
|
913
|
+
className: g,
|
|
793
914
|
children: t.historyTitle
|
|
794
915
|
}),
|
|
795
|
-
|
|
796
|
-
|
|
916
|
+
S,
|
|
917
|
+
C
|
|
797
918
|
]
|
|
798
|
-
}), /* @__PURE__ */
|
|
919
|
+
}), /* @__PURE__ */ G("div", {
|
|
799
920
|
className: "flex flex-1 flex-col gap-4 px-6 pb-2",
|
|
800
|
-
children:
|
|
921
|
+
children: w
|
|
801
922
|
})]
|
|
802
|
-
}) : /* @__PURE__ */
|
|
923
|
+
}) : /* @__PURE__ */ K("div", {
|
|
803
924
|
className: "flex flex-col gap-4",
|
|
804
925
|
children: [
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
926
|
+
S,
|
|
927
|
+
C,
|
|
928
|
+
w
|
|
808
929
|
]
|
|
809
930
|
});
|
|
810
931
|
}, $ = {
|
|
811
|
-
container: "
|
|
812
|
-
header: "
|
|
813
|
-
detailsColumn: "
|
|
814
|
-
subtitleText: "
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
"--stdv-
|
|
821
|
-
"--stdv-
|
|
822
|
-
|
|
932
|
+
container: "_container_1v896_1",
|
|
933
|
+
header: "_header_1v896_8",
|
|
934
|
+
detailsColumn: "_detailsColumn_1v896_22",
|
|
935
|
+
subtitleText: "_subtitleText_1v896_26",
|
|
936
|
+
desktopTitle: "_desktopTitle_1v896_31",
|
|
937
|
+
desktopBadge: "_desktopBadge_1v896_32",
|
|
938
|
+
mobileTitleRow: "_mobileTitleRow_1v896_36"
|
|
939
|
+
}, qe = ({ labels: e, onBack: t, onEdit: n, onDelete: r, isDeleting: i = !1, isDeleted: a = !1, isActive: o, isActiveUpdating: s = !1, isActiveDisabled: c = !1, onActiveChange: l, displayName: u, isLoading: d = !1, error: f, onRetry: h, description: _, modelLabel: v, repeatsLabel: b, activeWindowLabel: x, nextRunLabel: S, instructionsMarkdown: T, skillDisplayName: ee, renderInstructions: ne, runs: re, runsIsLoading: D = !1, runsIsLoadingMore: ie = !1, runsSkeletonCount: O = 6, runsError: k, onRunsRetry: oe, runsLoadMoreError: se, onRunsRetryLoadMore: ce, runsHasMore: A = !1, onRunsLoadMore: j, onRunClick: ue, styles: P, className: fe, backIcon: F, layout: I, historyStyles: L }) => {
|
|
940
|
+
let { colors: R, typography: z } = P ?? {}, V = z?.titleClassName ?? "dial-h2-text", H = z?.sectionTitleClassName ?? "dial-body-semi-text", me = z?.fieldLabelClassName ?? "dial-tiny-text", U = z?.fieldValueClassName ?? "dial-small-text", he = z?.runTimestampClassName ?? "dial-small-text", ge = p({
|
|
941
|
+
"--stdv-bg": R?.background,
|
|
942
|
+
"--stdv-header-border": R?.headerBorder,
|
|
943
|
+
"--stdv-details-border": R?.detailsColumnBorder,
|
|
944
|
+
"--stdv-subtitle-text": R?.subtitleText,
|
|
945
|
+
"--stdv-history-bg": R?.historyCardBackground
|
|
946
|
+
}), _e = g(), [W, ye] = ve(Z.Details), be = [
|
|
823
947
|
{
|
|
824
|
-
id:
|
|
948
|
+
id: Z.Details,
|
|
825
949
|
label: e.detailsTitle
|
|
826
950
|
},
|
|
827
951
|
{
|
|
828
|
-
id:
|
|
952
|
+
id: Z.Configuration,
|
|
829
953
|
label: e.configurationTitle
|
|
830
954
|
},
|
|
831
955
|
{
|
|
832
|
-
id:
|
|
956
|
+
id: Z.History,
|
|
833
957
|
label: e.historyTitle
|
|
834
958
|
}
|
|
835
|
-
],
|
|
959
|
+
], xe = be.find((e) => e.id === W)?.label ?? e.detailsTitle, Se = /* @__PURE__ */ G(Ve, {
|
|
836
960
|
labels: {
|
|
837
961
|
descriptionLabel: e.descriptionLabel,
|
|
838
962
|
modelLabel: e.modelLabel,
|
|
839
963
|
repeatsLabel: e.repeatsLabel,
|
|
840
964
|
activeWindowLabel: e.activeWindowLabel
|
|
841
965
|
},
|
|
842
|
-
description:
|
|
843
|
-
modelLabel:
|
|
844
|
-
repeatsLabel:
|
|
845
|
-
activeWindowLabel:
|
|
846
|
-
fieldLabelClassName:
|
|
847
|
-
fieldValueClassName:
|
|
848
|
-
}),
|
|
966
|
+
description: _,
|
|
967
|
+
modelLabel: v,
|
|
968
|
+
repeatsLabel: b,
|
|
969
|
+
activeWindowLabel: x,
|
|
970
|
+
fieldLabelClassName: me,
|
|
971
|
+
fieldValueClassName: U
|
|
972
|
+
}), q = /* @__PURE__ */ G(ze, {
|
|
849
973
|
instructionsLabel: e.instructionsLabel,
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
974
|
+
skillLabel: e.skillLabel,
|
|
975
|
+
skillDisplayName: ee,
|
|
976
|
+
instructionsMarkdown: T,
|
|
977
|
+
renderInstructions: ne,
|
|
978
|
+
fieldLabelClassName: me
|
|
979
|
+
}), J = (t) => /* @__PURE__ */ G(Ke, {
|
|
854
980
|
variant: t,
|
|
855
981
|
labels: {
|
|
856
982
|
historyTitle: e.historyTitle,
|
|
857
983
|
historyEmptyLabel: e.historyEmptyLabel,
|
|
858
984
|
historyErrorLabel: e.historyErrorLabel,
|
|
985
|
+
historyLoadMoreErrorLabel: e.historyLoadMoreErrorLabel,
|
|
859
986
|
historyRetryLabel: e.historyRetryLabel,
|
|
860
987
|
historyLoadingMoreLabel: e.historyLoadingMoreLabel,
|
|
861
988
|
historyShowMoreLabel: e.historyShowMoreLabel,
|
|
862
989
|
runStatusLabels: e.runStatusLabels,
|
|
863
990
|
unreadIndicatorLabel: e.unreadIndicatorLabel
|
|
864
991
|
},
|
|
865
|
-
nextRunLabel:
|
|
866
|
-
items:
|
|
867
|
-
isLoading:
|
|
868
|
-
isLoadingMore:
|
|
869
|
-
skeletonCount:
|
|
870
|
-
error:
|
|
871
|
-
onRetry:
|
|
872
|
-
|
|
873
|
-
|
|
992
|
+
nextRunLabel: S,
|
|
993
|
+
items: re,
|
|
994
|
+
isLoading: D,
|
|
995
|
+
isLoadingMore: ie,
|
|
996
|
+
skeletonCount: O,
|
|
997
|
+
error: k,
|
|
998
|
+
onRetry: oe,
|
|
999
|
+
loadMoreError: se,
|
|
1000
|
+
onRetryLoadMore: ce,
|
|
1001
|
+
hasMore: A,
|
|
1002
|
+
onLoadMore: j,
|
|
874
1003
|
onRunClick: ue,
|
|
875
|
-
runTimestampClassName:
|
|
876
|
-
sectionTitleClassName:
|
|
877
|
-
colors:
|
|
1004
|
+
runTimestampClassName: he,
|
|
1005
|
+
sectionTitleClassName: H,
|
|
1006
|
+
colors: R,
|
|
1007
|
+
styles: L
|
|
878
1008
|
});
|
|
879
|
-
return /* @__PURE__ */
|
|
880
|
-
style:
|
|
881
|
-
className:
|
|
1009
|
+
return /* @__PURE__ */ K("div", {
|
|
1010
|
+
style: ge,
|
|
1011
|
+
className: m("flex h-full w-full flex-col overflow-y-auto", $.container, fe),
|
|
882
1012
|
children: [
|
|
883
|
-
/* @__PURE__ */
|
|
884
|
-
className:
|
|
885
|
-
children: [/* @__PURE__ */
|
|
1013
|
+
/* @__PURE__ */ K("div", {
|
|
1014
|
+
className: m("flex h-16 shrink-0 items-center justify-between gap-2 px-8", $.header),
|
|
1015
|
+
children: [/* @__PURE__ */ K("div", {
|
|
886
1016
|
className: "flex min-w-0 items-center gap-2",
|
|
887
1017
|
children: [
|
|
888
|
-
/* @__PURE__ */
|
|
889
|
-
icon: /* @__PURE__ */
|
|
890
|
-
size:
|
|
1018
|
+
/* @__PURE__ */ G(te, {
|
|
1019
|
+
icon: F === void 0 ? /* @__PURE__ */ G(de, {
|
|
1020
|
+
size: C.LG,
|
|
891
1021
|
className: "rtl:scale-x-[-1]",
|
|
892
1022
|
"aria-hidden": !0,
|
|
893
|
-
stroke:
|
|
894
|
-
}),
|
|
1023
|
+
stroke: w
|
|
1024
|
+
}) : F,
|
|
895
1025
|
"aria-label": e.backAriaLabel,
|
|
896
1026
|
onClick: t
|
|
897
1027
|
}),
|
|
898
|
-
/* @__PURE__ */
|
|
899
|
-
className:
|
|
900
|
-
children:
|
|
1028
|
+
/* @__PURE__ */ G("h1", {
|
|
1029
|
+
className: m("truncate", $.desktopTitle, V),
|
|
1030
|
+
children: u
|
|
901
1031
|
}),
|
|
902
|
-
|
|
903
|
-
className:
|
|
1032
|
+
a && /* @__PURE__ */ G("span", {
|
|
1033
|
+
className: m("shrink-0", $.desktopBadge, U, $.subtitleText),
|
|
904
1034
|
children: e.deletedStateLabel
|
|
905
1035
|
})
|
|
906
1036
|
]
|
|
907
|
-
}), /* @__PURE__ */
|
|
1037
|
+
}), /* @__PURE__ */ K("div", {
|
|
908
1038
|
className: "flex shrink-0 items-center gap-2",
|
|
909
1039
|
children: [
|
|
910
|
-
!
|
|
1040
|
+
!a && o !== void 0 && /* @__PURE__ */ G(M, {
|
|
911
1041
|
id: "scheduled-task-active-switch",
|
|
912
1042
|
labelProps: { label: e.activeStatusLabel },
|
|
913
|
-
isOn:
|
|
914
|
-
disabled:
|
|
915
|
-
onChange: (e) =>
|
|
1043
|
+
isOn: o,
|
|
1044
|
+
disabled: s || c || i,
|
|
1045
|
+
onChange: (e) => l?.(e)
|
|
916
1046
|
}),
|
|
917
|
-
!
|
|
918
|
-
variant:
|
|
1047
|
+
!a && r && /* @__PURE__ */ G(E, {
|
|
1048
|
+
variant: y.Danger,
|
|
919
1049
|
label: e.deleteButtonLabel,
|
|
920
|
-
iconBefore: /* @__PURE__ */ B
|
|
921
|
-
size:
|
|
1050
|
+
iconBefore: /* @__PURE__ */ G(B, {
|
|
1051
|
+
size: C.SM,
|
|
922
1052
|
"aria-hidden": !0,
|
|
923
|
-
stroke:
|
|
1053
|
+
stroke: w
|
|
924
1054
|
}),
|
|
925
1055
|
onClick: r,
|
|
926
|
-
disabled:
|
|
1056
|
+
disabled: i,
|
|
927
1057
|
className: "shrink-0"
|
|
928
1058
|
}),
|
|
929
|
-
!
|
|
1059
|
+
!a && n && /* @__PURE__ */ G(ae, {
|
|
930
1060
|
label: e.editButtonLabel,
|
|
931
|
-
iconBefore: /* @__PURE__ */
|
|
932
|
-
size:
|
|
1061
|
+
iconBefore: /* @__PURE__ */ G(pe, {
|
|
1062
|
+
size: C.SM,
|
|
933
1063
|
"aria-hidden": !0,
|
|
934
|
-
stroke:
|
|
1064
|
+
stroke: w
|
|
935
1065
|
}),
|
|
936
1066
|
onClick: n,
|
|
937
|
-
disabled:
|
|
1067
|
+
disabled: i,
|
|
938
1068
|
className: "shrink-0"
|
|
939
1069
|
})
|
|
940
1070
|
]
|
|
941
1071
|
})]
|
|
942
1072
|
}),
|
|
943
|
-
/* @__PURE__ */
|
|
944
|
-
className: "
|
|
945
|
-
children: [/* @__PURE__ */
|
|
946
|
-
className:
|
|
947
|
-
children:
|
|
948
|
-
}),
|
|
949
|
-
className:
|
|
1073
|
+
/* @__PURE__ */ K("div", {
|
|
1074
|
+
className: m("min-w-0 items-center gap-2 px-8 py-3", $.mobileTitleRow),
|
|
1075
|
+
children: [/* @__PURE__ */ G("h1", {
|
|
1076
|
+
className: m("truncate", V),
|
|
1077
|
+
children: u
|
|
1078
|
+
}), a && /* @__PURE__ */ G("span", {
|
|
1079
|
+
className: m("shrink-0", U, $.subtitleText),
|
|
950
1080
|
children: e.deletedStateLabel
|
|
951
1081
|
})]
|
|
952
1082
|
}),
|
|
953
|
-
e.activeStatusAnnouncement != null && /* @__PURE__ */
|
|
1083
|
+
e.activeStatusAnnouncement != null && /* @__PURE__ */ G("span", {
|
|
954
1084
|
role: "status",
|
|
955
1085
|
"aria-live": "polite",
|
|
956
1086
|
className: "sr-only",
|
|
957
1087
|
children: e.activeStatusAnnouncement
|
|
958
1088
|
}),
|
|
959
|
-
|
|
1089
|
+
d && /* @__PURE__ */ G("div", {
|
|
960
1090
|
className: "flex flex-1 items-center justify-center",
|
|
961
|
-
children: /* @__PURE__ */
|
|
1091
|
+
children: /* @__PURE__ */ G(le, {})
|
|
962
1092
|
}),
|
|
963
|
-
!
|
|
1093
|
+
!d && f && /* @__PURE__ */ K("div", {
|
|
964
1094
|
className: "flex flex-1 flex-col items-center justify-center gap-3",
|
|
965
|
-
children: [/* @__PURE__ */
|
|
966
|
-
className:
|
|
1095
|
+
children: [/* @__PURE__ */ G("p", {
|
|
1096
|
+
className: m(U, $.subtitleText),
|
|
967
1097
|
children: e.errorLabel
|
|
968
|
-
}), /* @__PURE__ */
|
|
1098
|
+
}), /* @__PURE__ */ G(E, {
|
|
969
1099
|
label: e.retryLabel,
|
|
970
|
-
onClick:
|
|
1100
|
+
onClick: h
|
|
971
1101
|
})]
|
|
972
1102
|
}),
|
|
973
|
-
!
|
|
1103
|
+
!d && !f && (_e ? /* @__PURE__ */ K("div", {
|
|
974
1104
|
className: "flex flex-1 flex-col",
|
|
975
|
-
children: [/* @__PURE__ */
|
|
1105
|
+
children: [/* @__PURE__ */ G(N, {
|
|
976
1106
|
ariaLabel: e.tabsAriaLabel ?? "Scheduled task sections",
|
|
977
1107
|
className: "px-8",
|
|
978
|
-
tabs:
|
|
979
|
-
activeTabId:
|
|
980
|
-
onTabChange:
|
|
981
|
-
}), /* @__PURE__ */
|
|
1108
|
+
tabs: be,
|
|
1109
|
+
activeTabId: W,
|
|
1110
|
+
onTabChange: ye
|
|
1111
|
+
}), /* @__PURE__ */ G("div", {
|
|
982
1112
|
role: "tabpanel",
|
|
983
|
-
"aria-label":
|
|
1113
|
+
"aria-label": xe,
|
|
984
1114
|
className: "flex flex-1 flex-col gap-5 px-8 py-6",
|
|
985
|
-
children:
|
|
1115
|
+
children: W === Z.Configuration ? q : W === Z.History ? J(Le.Flow) : Se
|
|
986
1116
|
})]
|
|
987
|
-
}) : /* @__PURE__ */
|
|
988
|
-
|
|
1117
|
+
}) : /* @__PURE__ */ K("div", {
|
|
1118
|
+
style: {
|
|
1119
|
+
flexDirection: "row",
|
|
1120
|
+
flexWrap: "wrap",
|
|
1121
|
+
"--st-details-width": I?.detailsWidth,
|
|
1122
|
+
"--st-history-width": I?.historyWidth,
|
|
1123
|
+
"--st-history-max-height": I?.historyMaxHeight,
|
|
1124
|
+
"--st-configuration-min-width": I?.configurationMinWidth
|
|
1125
|
+
},
|
|
1126
|
+
className: "flex flex-1",
|
|
989
1127
|
children: [
|
|
990
|
-
/* @__PURE__ */
|
|
1128
|
+
/* @__PURE__ */ K("div", {
|
|
991
1129
|
role: "group",
|
|
992
1130
|
"aria-label": e.detailsTitle,
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
1131
|
+
style: {
|
|
1132
|
+
flex: `0 1 ${I?.detailsWidth ?? "360px"}`,
|
|
1133
|
+
maxWidth: "100%"
|
|
1134
|
+
},
|
|
1135
|
+
className: m("flex w-full flex-col gap-5 border-e px-8 py-6", $.detailsColumn),
|
|
1136
|
+
children: [/* @__PURE__ */ G("h2", {
|
|
1137
|
+
className: H,
|
|
996
1138
|
children: e.detailsTitle
|
|
997
|
-
}),
|
|
1139
|
+
}), Se]
|
|
998
1140
|
}),
|
|
999
|
-
/* @__PURE__ */
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1141
|
+
/* @__PURE__ */ K("div", {
|
|
1142
|
+
style: {
|
|
1143
|
+
flex: `1 1 ${I?.configurationMinWidth ?? "320px"}`,
|
|
1144
|
+
minWidth: 0
|
|
1145
|
+
},
|
|
1146
|
+
className: "flex w-full min-w-0 flex-col gap-5 px-8 py-6",
|
|
1147
|
+
children: [/* @__PURE__ */ G("h2", {
|
|
1148
|
+
className: H,
|
|
1003
1149
|
children: e.configurationTitle
|
|
1004
|
-
}),
|
|
1150
|
+
}), q]
|
|
1005
1151
|
}),
|
|
1006
|
-
/* @__PURE__ */
|
|
1007
|
-
|
|
1008
|
-
|
|
1152
|
+
/* @__PURE__ */ G("div", {
|
|
1153
|
+
style: {
|
|
1154
|
+
flex: `0 1 calc(${I?.historyWidth ?? "360px"} + 48px)`,
|
|
1155
|
+
minWidth: 0
|
|
1156
|
+
},
|
|
1157
|
+
className: "flex w-full items-start justify-center p-6",
|
|
1158
|
+
children: J(Le.Card)
|
|
1009
1159
|
})
|
|
1010
1160
|
]
|
|
1011
1161
|
}))
|
|
1012
1162
|
]
|
|
1013
1163
|
});
|
|
1014
|
-
},
|
|
1015
|
-
let
|
|
1016
|
-
return /* @__PURE__ */
|
|
1164
|
+
}, Je = ({ modelLabel: e, skillLabel: t, skillDisplayName: n, instructionsLabel: r, modelDisplayName: i, instructionsMarkdown: a, renderInstructions: o, styles: s }) => {
|
|
1165
|
+
let c = s?.typography?.fieldLabelClassName ?? "dial-tiny-text", l = s?.typography?.fieldValueClassName ?? "dial-body-text";
|
|
1166
|
+
return /* @__PURE__ */ K("div", {
|
|
1017
1167
|
className: "flex flex-col gap-3",
|
|
1018
|
-
children: [
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
className:
|
|
1031
|
-
children:
|
|
1032
|
-
|
|
1033
|
-
|
|
1168
|
+
children: [
|
|
1169
|
+
i && /* @__PURE__ */ K("div", {
|
|
1170
|
+
className: "flex flex-col gap-2",
|
|
1171
|
+
children: [/* @__PURE__ */ G("span", {
|
|
1172
|
+
className: c,
|
|
1173
|
+
children: e
|
|
1174
|
+
}), /* @__PURE__ */ G("p", {
|
|
1175
|
+
className: l,
|
|
1176
|
+
children: i
|
|
1177
|
+
})]
|
|
1178
|
+
}),
|
|
1179
|
+
n && /* @__PURE__ */ K("div", {
|
|
1180
|
+
className: "flex min-w-0 flex-col gap-2",
|
|
1181
|
+
children: [/* @__PURE__ */ G("span", {
|
|
1182
|
+
className: c,
|
|
1183
|
+
children: t
|
|
1184
|
+
}), /* @__PURE__ */ G("p", {
|
|
1185
|
+
className: `${l} whitespace-normal break-all`,
|
|
1186
|
+
children: n
|
|
1187
|
+
})]
|
|
1188
|
+
}),
|
|
1189
|
+
a && /* @__PURE__ */ K("div", {
|
|
1190
|
+
className: "flex flex-col gap-2",
|
|
1191
|
+
children: [/* @__PURE__ */ G("span", {
|
|
1192
|
+
className: c,
|
|
1193
|
+
children: r
|
|
1194
|
+
}), ((e) => o ? o(e) : /* @__PURE__ */ G(d, { content: e }))(a)]
|
|
1195
|
+
})
|
|
1196
|
+
]
|
|
1197
|
+
});
|
|
1198
|
+
}, Ye = ({ open: e, taskName: t, title: n, body: r, consequences: i = [], cancelLabel: a, cancelAppearance: o = _.Ghost, confirmLabel: s, pendingLabel: c, isDeleting: l = !1, onConfirm: u, onClose: d, styles: f }) => {
|
|
1199
|
+
let p = () => {
|
|
1200
|
+
l || d();
|
|
1201
|
+
};
|
|
1202
|
+
return /* @__PURE__ */ G(k, {
|
|
1203
|
+
open: e,
|
|
1204
|
+
className: f?.popupClassName,
|
|
1205
|
+
header: /* @__PURE__ */ G("span", {
|
|
1206
|
+
className: f?.titleClassName,
|
|
1207
|
+
children: n
|
|
1208
|
+
}),
|
|
1209
|
+
onClose: p,
|
|
1210
|
+
mainButtons: [{
|
|
1211
|
+
label: a,
|
|
1212
|
+
onClick: p,
|
|
1213
|
+
disabled: l,
|
|
1214
|
+
appearance: o
|
|
1215
|
+
}, {
|
|
1216
|
+
label: l ? c ?? s : s,
|
|
1217
|
+
onClick: () => {
|
|
1218
|
+
l || u();
|
|
1219
|
+
},
|
|
1220
|
+
disabled: l,
|
|
1221
|
+
variant: y.Danger,
|
|
1222
|
+
className: f?.actionClassName
|
|
1223
|
+
}],
|
|
1224
|
+
children: /* @__PURE__ */ K("div", {
|
|
1225
|
+
className: "flex flex-col gap-4 px-6 pb-4 pt-2",
|
|
1226
|
+
children: [
|
|
1227
|
+
/* @__PURE__ */ G("div", {
|
|
1228
|
+
className: "flex h-11 items-center rounded-lg border border-error-alpha bg-error px-3",
|
|
1229
|
+
children: /* @__PURE__ */ G("span", {
|
|
1230
|
+
className: "dial-small-semi-text truncate",
|
|
1231
|
+
children: t
|
|
1232
|
+
})
|
|
1233
|
+
}),
|
|
1234
|
+
/* @__PURE__ */ G("div", {
|
|
1235
|
+
className: "dial-body-paragraph-text break-words",
|
|
1236
|
+
children: r
|
|
1237
|
+
}),
|
|
1238
|
+
i.length > 0 && /* @__PURE__ */ G("ul", {
|
|
1239
|
+
className: "flex flex-col gap-2 ps-[18px]",
|
|
1240
|
+
children: i.map((e, t) => /* @__PURE__ */ G("li", {
|
|
1241
|
+
className: "dial-body-paragraph-text list-disc text-secondary marker:text-secondary",
|
|
1242
|
+
children: e
|
|
1243
|
+
}, t))
|
|
1244
|
+
}),
|
|
1245
|
+
l && /* @__PURE__ */ G("span", {
|
|
1246
|
+
role: "status",
|
|
1247
|
+
"aria-live": "polite",
|
|
1248
|
+
className: "sr-only",
|
|
1249
|
+
children: c ?? s
|
|
1250
|
+
})
|
|
1251
|
+
]
|
|
1252
|
+
})
|
|
1034
1253
|
});
|
|
1035
1254
|
};
|
|
1036
1255
|
//#endregion
|
|
1037
|
-
export {
|
|
1256
|
+
export { r as DESCRIPTION_MAX_LENGTH, Se as SCHEDULED_TASKS_CLASS, Ce as ScheduledTaskCard, Oe as ScheduledTaskCardGrid, De as ScheduledTaskCardSkeleton, Ie as ScheduledTaskCreateForm, Ye as ScheduledTaskDeleteConfirmation, qe as ScheduledTaskDetailView, Je as ScheduledTaskDetailsSummary, Ke as ScheduledTaskHistorySection, q as ScheduledTaskPresentationStatus, t as ScheduledTaskRepeat, We as ScheduledTaskRunHistoryList, He as ScheduledTaskRunStatus, je as ScheduledTasks, Me as ScheduledTasksSortKey, c as TIME_OF_DAY_PATTERN };
|