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