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