@epam/ai-dial-scheduled-tasks 1.4.0-dev.12 → 1.4.0-dev.124
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-CXFwy6E8.js +84 -0
- package/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.d.ts.map +1 -1
- package/components/ScheduledTaskRunAtField/ScheduledTaskRunAtField.d.ts +2 -0
- package/components/ScheduledTaskRunAtField/ScheduledTaskRunAtField.d.ts.map +1 -1
- package/components/ScheduledTaskTimezoneField/ScheduledTaskTimezoneField.d.ts +13 -0
- package/components/ScheduledTaskTimezoneField/ScheduledTaskTimezoneField.d.ts.map +1 -0
- package/components/ScheduledTaskTimezoneField/ScheduledTaskTimezoneGapHint.d.ts +13 -0
- package/components/ScheduledTaskTimezoneField/ScheduledTaskTimezoneGapHint.d.ts.map +1 -0
- package/components/ScheduledTaskTimezoneField/ScheduledTaskTimezoneList.d.ts +21 -0
- package/components/ScheduledTaskTimezoneField/ScheduledTaskTimezoneList.d.ts.map +1 -0
- package/constants/scheduled-task-create-form.d.ts +1 -1
- package/constants/scheduled-task-create-form.d.ts.map +1 -1
- package/constants/scheduled-task-timezone.d.ts +6 -0
- package/constants/scheduled-task-timezone.d.ts.map +1 -0
- package/index.css +2 -2
- package/index.d.ts +7 -1
- package/index.d.ts.map +1 -1
- package/index.js +1110 -824
- package/models/scheduled-task-create-form-props.d.ts +20 -0
- package/models/scheduled-task-create-form-props.d.ts.map +1 -1
- package/models/scheduled-task-timezone-props.d.ts +94 -0
- package/models/scheduled-task-timezone-props.d.ts.map +1 -0
- package/package.json +7 -3
- package/utils/timezone-search.d.ts +9 -0
- package/utils/timezone-search.d.ts.map +1 -0
- package/utils/zoned-wall-clock.d.ts +41 -0
- package/utils/zoned-wall-clock.d.ts.map +1 -0
- package/validation/scheduled-task-validation.d.ts +2 -0
- package/validation/scheduled-task-validation.d.ts.map +1 -1
- package/validation.js +34 -26
- package/calendar-value-WOdrwh6p.js +0 -33
package/index.js
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { a as e, c as t,
|
|
2
|
-
import { COMPACT_MARKDOWN_CLASS_NAMES as
|
|
3
|
-
import { Accordion 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, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./calendar-value-CXFwy6E8.js";
|
|
2
|
+
import { COMPACT_MARKDOWN_CLASS_NAMES as g, ConfirmationDialog as _, ConfirmationIdentityRow as v, MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as y, MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as b, MDMessageViewer as x, PanelEmptyState as ee, ResourceSummary as S, TextRefinementField as C, buildCssVars as w, mergeClasses as T, useAvailableHeightCap as te, useControlErrorAssociation as E, useIsMobile as ne, useIsPhone as re, useTextRefinement as ie, useUnsavedChangesGuard as ae } from "@epam/ai-dial-chat-shared";
|
|
3
|
+
import { Accordion as oe, BottomSheet as se, Button as ce, ButtonAppearance as le, ButtonDropdown as ue, ButtonVariant as de, Calendar as fe, CalendarMode as pe, CardShell as me, ConfirmationPopupVariant as he, DIAL_ICON_SIZE as D, DIAL_KIT_ICON_STROKE as O, Dropdown as ge, DropdownOverlayRole as _e, ElementSize as ve, EllipsisTooltip as ye, ErrorMessageNotification as be, ErrorText as k, FolderPath as xe, GhostButton as A, GhostIconButton as Se, Highlight as j, Input as Ce, Label as M, LinkButton as N, LiveRegion as P, LiveRegionElement as F, LiveRegionPoliteness as we, MenuItem as I, MenuItemMark as Te, NeutralButton as Ee, NoDataContent as L, Notification as De, NotificationSurface as Oe, NotificationType as ke, NotificationVariant as R, NumberInput as Ae, PrimaryButton as je, Search as Me, Select as Ne, Skeleton as Pe, SkeletonVariant as z, Spinner as Fe, Switch as Ie, Tabs as Le, Textarea as Re, WarningMessageNotification as ze } from "@epam/ai-dial-ui-kit";
|
|
4
|
+
import { IconAlertTriangle as Be, IconArrowNarrowLeft as Ve, IconArrowRight as He, IconArrowsSort as B, IconCheck as Ue, IconChevronDown as We, IconChevronRight as Ge, IconCircleX as Ke, IconPencilMinus as qe, IconPlayerPause as Je, IconPlayerPlay as V, IconPlus as Ye, IconTrashX as Xe } from "@tabler/icons-react";
|
|
5
|
+
import { Suspense as Ze, lazy as Qe, memo as $e, useCallback as et, useEffect as tt, useId as H, useLayoutEffect as nt, useMemo as U, useRef as rt, useState as W } from "react";
|
|
6
|
+
import { Fragment as G, jsx as K, jsxs as q } from "react/jsx-runtime";
|
|
7
|
+
import { BuilderFormContainer as it } from "@epam/ai-dial-builder-form";
|
|
8
|
+
import { LazyMarkdownEditor as at } from "@epam/ai-dial-ui-kit/editors";
|
|
9
9
|
//#region src/models/scheduled-task-card-grid-props.ts
|
|
10
|
-
var
|
|
10
|
+
var ot = "1180px", st = {
|
|
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
|
+
}, J = /* @__PURE__ */ function(e) {
|
|
15
15
|
return e.Scheduled = "scheduled", e.Paused = "paused", e.Completed = "completed", e;
|
|
16
|
-
}({}),
|
|
16
|
+
}({}), ct = /* @__PURE__ */ function(e) {
|
|
17
17
|
return e.Active = "active", e.Paused = "paused", e.Completed = "completed", e;
|
|
18
|
-
}({}),
|
|
18
|
+
}({}), lt = (e) => {
|
|
19
19
|
switch (e.presentationStatus) {
|
|
20
|
-
case
|
|
21
|
-
case
|
|
22
|
-
case
|
|
20
|
+
case ct.Active: return J.Scheduled;
|
|
21
|
+
case ct.Paused: return J.Paused;
|
|
22
|
+
case ct.Completed: return J.Completed;
|
|
23
23
|
}
|
|
24
|
-
return e.isCompleted ?
|
|
25
|
-
},
|
|
24
|
+
return e.isCompleted ? J.Completed : e.isActive === !1 ? J.Paused : J.Scheduled;
|
|
25
|
+
}, ut = {
|
|
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
|
+
}, dt = {
|
|
33
|
+
[J.Scheduled]: {
|
|
34
34
|
pillClassName: "inline-block rounded-lg border px-2 py-1",
|
|
35
|
-
wrapperClassName:
|
|
36
|
-
labelClassName:
|
|
35
|
+
wrapperClassName: ut.schedulePill,
|
|
36
|
+
labelClassName: ut.scheduleLabel
|
|
37
37
|
},
|
|
38
|
-
[
|
|
38
|
+
[J.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: ut.pausedPill,
|
|
41
|
+
labelClassName: ut.pausedLabel,
|
|
42
|
+
renderIcon: () => /* @__PURE__ */ K(Je, {
|
|
43
|
+
size: D.SM,
|
|
44
44
|
"aria-hidden": !0,
|
|
45
|
-
stroke:
|
|
45
|
+
stroke: O
|
|
46
46
|
})
|
|
47
47
|
},
|
|
48
|
-
[
|
|
48
|
+
[J.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: ut.completedPill,
|
|
51
|
+
labelClassName: ut.completedLabel,
|
|
52
|
+
renderIcon: () => /* @__PURE__ */ K(Ue, {
|
|
53
|
+
size: D.SM,
|
|
54
54
|
"aria-hidden": !0,
|
|
55
|
-
stroke:
|
|
55
|
+
stroke: O
|
|
56
56
|
})
|
|
57
57
|
}
|
|
58
|
-
},
|
|
59
|
-
let { pillClassName: i, wrapperClassName: a, labelClassName: o, renderIcon: s } =
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
-
className:
|
|
58
|
+
}, ft = ({ status: e, text: t, textClassName: n = "dial-tiny-text", className: r }) => {
|
|
59
|
+
let { pillClassName: i, wrapperClassName: a, labelClassName: o, renderIcon: s } = dt[e];
|
|
60
|
+
return /* @__PURE__ */ q("span", {
|
|
61
|
+
className: T(i, n, a, o, r),
|
|
62
62
|
children: [s && s(), t]
|
|
63
63
|
});
|
|
64
|
-
},
|
|
64
|
+
}, Y = {
|
|
65
65
|
title: "_title_p4ova_2",
|
|
66
66
|
description: "_description_p4ova_6",
|
|
67
67
|
locationLabel: "_locationLabel_p4ova_10",
|
|
@@ -72,21 +72,21 @@ var Je = "1180px", Ye = {
|
|
|
72
72
|
cardButton: "_cardButton_p4ova_48",
|
|
73
73
|
aboveButton: "_aboveButton_p4ova_60",
|
|
74
74
|
interactive: "_interactive_p4ova_65"
|
|
75
|
-
},
|
|
76
|
-
let o =
|
|
77
|
-
[
|
|
75
|
+
}, pt = ({ item: e, searchQuery: t = "", onCardClick: n, labels: r, styles: i, className: a }) => {
|
|
76
|
+
let o = ne(), s = e.newBadgeLabel ?? 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", v = d?.locationLeafClassName ?? "dial-tiny-semi-text", y = d?.newBadgeClassName ?? "dial-tiny-semi-text", b = lt(e), { text: x, textClassName: ee } = {
|
|
77
|
+
[J.Scheduled]: {
|
|
78
78
|
text: e.scheduleLabel,
|
|
79
79
|
textClassName: m
|
|
80
80
|
},
|
|
81
|
-
[
|
|
81
|
+
[J.Paused]: {
|
|
82
82
|
text: c,
|
|
83
83
|
textClassName: h
|
|
84
84
|
},
|
|
85
|
-
[
|
|
85
|
+
[J.Completed]: {
|
|
86
86
|
text: l,
|
|
87
87
|
textClassName: g
|
|
88
88
|
}
|
|
89
|
-
}[
|
|
89
|
+
}[b], S = w({
|
|
90
90
|
"--stc-title-text": u?.titleText,
|
|
91
91
|
"--stc-desc-text": u?.descriptionText,
|
|
92
92
|
"--stc-pill-bg": u?.schedulePillBackground,
|
|
@@ -104,88 +104,88 @@ var Je = "1180px", Ye = {
|
|
|
104
104
|
"--stc-completed-border": u?.completedBadgeBorder,
|
|
105
105
|
"--stc-completed-text": u?.completedBadgeText,
|
|
106
106
|
"--stc-focus-outline": u?.focusOutline
|
|
107
|
-
}),
|
|
107
|
+
}), C = /* @__PURE__ */ K(j, {
|
|
108
108
|
text: e.displayName,
|
|
109
109
|
query: t,
|
|
110
110
|
maxLines: o ? 2 : 1,
|
|
111
|
-
className:
|
|
111
|
+
className: T(f, Y.title, n && Y.aboveButton)
|
|
112
112
|
});
|
|
113
|
-
return /* @__PURE__ */
|
|
113
|
+
return /* @__PURE__ */ q(me, {
|
|
114
114
|
"aria-label": e.displayName,
|
|
115
|
-
style:
|
|
116
|
-
className:
|
|
115
|
+
style: S,
|
|
116
|
+
className: T("h-(--st-card-height,232px) min-w-0", Y.card, n && "relative has-focus-visible:translate-y-[-3px] has-focus-visible:shadow-lg motion-reduce:has-focus-visible:translate-y-0", n && Y.interactive, a, st.card),
|
|
117
117
|
children: [
|
|
118
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ q("div", {
|
|
119
119
|
className: "flex min-w-0 shrink-0 items-start gap-2 desktop:items-center",
|
|
120
|
-
children: [n ? /* @__PURE__ */
|
|
120
|
+
children: [n ? /* @__PURE__ */ K("button", {
|
|
121
121
|
type: "button",
|
|
122
122
|
onClick: () => n(e.id),
|
|
123
|
-
className:
|
|
124
|
-
children:
|
|
125
|
-
}) :
|
|
126
|
-
className:
|
|
123
|
+
className: T("min-w-0 text-start", Y.cardButton),
|
|
124
|
+
children: C
|
|
125
|
+
}) : C, e.isNew && /* @__PURE__ */ K("span", {
|
|
126
|
+
className: T("shrink-0 rounded-full px-2 py-0.5", y, Y.newBadge),
|
|
127
127
|
children: s
|
|
128
128
|
})]
|
|
129
129
|
}),
|
|
130
|
-
e.descriptionPreview && /* @__PURE__ */
|
|
131
|
-
className:
|
|
130
|
+
e.descriptionPreview && /* @__PURE__ */ K("p", {
|
|
131
|
+
className: T("line-clamp-3 min-h-0 min-w-0 overflow-hidden wrap-anywhere", p, Y.description),
|
|
132
132
|
children: e.descriptionPreview
|
|
133
133
|
}),
|
|
134
|
-
/* @__PURE__ */
|
|
134
|
+
/* @__PURE__ */ q("div", {
|
|
135
135
|
className: "mt-auto flex shrink-0 flex-col gap-3",
|
|
136
|
-
children: [/* @__PURE__ */
|
|
136
|
+
children: [/* @__PURE__ */ K("div", {
|
|
137
137
|
className: "flex min-h-[28px] items-center",
|
|
138
|
-
children: /* @__PURE__ */
|
|
139
|
-
status:
|
|
140
|
-
text:
|
|
141
|
-
textClassName:
|
|
138
|
+
children: /* @__PURE__ */ K(ft, {
|
|
139
|
+
status: b,
|
|
140
|
+
text: x,
|
|
141
|
+
textClassName: ee
|
|
142
142
|
})
|
|
143
|
-
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */
|
|
143
|
+
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */ K(xe, {
|
|
144
144
|
segments: e.locationSegments,
|
|
145
|
-
labelClassName:
|
|
146
|
-
leafClassName:
|
|
147
|
-
className:
|
|
145
|
+
labelClassName: T(_, Y.locationLabel),
|
|
146
|
+
leafClassName: T(v, Y.locationLeaf),
|
|
147
|
+
className: T("pt-3", Y.locationDivider)
|
|
148
148
|
})]
|
|
149
149
|
})
|
|
150
150
|
]
|
|
151
151
|
});
|
|
152
|
-
},
|
|
152
|
+
}, mt = { card: "_card_18ivt_1" }, ht = [
|
|
153
153
|
"100%",
|
|
154
154
|
"100%",
|
|
155
155
|
"61%"
|
|
156
|
-
],
|
|
157
|
-
let t =
|
|
158
|
-
return /* @__PURE__ */
|
|
156
|
+
], gt = "var(--stcs-skeleton-bg)", _t = ({ styles: e }) => {
|
|
157
|
+
let t = w({ "--stcs-skeleton-bg": e?.colors?.skeletonColor });
|
|
158
|
+
return /* @__PURE__ */ q(me, {
|
|
159
159
|
"aria-hidden": !0,
|
|
160
160
|
style: t,
|
|
161
|
-
className:
|
|
161
|
+
className: T("h-(--st-card-height,232px)", mt.card),
|
|
162
162
|
children: [
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
variant:
|
|
163
|
+
/* @__PURE__ */ K(Pe, {
|
|
164
|
+
variant: z.Rectangular,
|
|
165
165
|
width: "60%",
|
|
166
166
|
height: "20px",
|
|
167
|
-
color:
|
|
167
|
+
color: gt,
|
|
168
168
|
className: "shrink-0"
|
|
169
169
|
}),
|
|
170
|
-
/* @__PURE__ */
|
|
170
|
+
/* @__PURE__ */ K("div", {
|
|
171
171
|
className: "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden",
|
|
172
|
-
children:
|
|
173
|
-
variant:
|
|
172
|
+
children: ht.map((e, t) => /* @__PURE__ */ K(Pe, {
|
|
173
|
+
variant: z.Rectangular,
|
|
174
174
|
width: e,
|
|
175
175
|
height: "16px",
|
|
176
|
-
color:
|
|
176
|
+
color: gt
|
|
177
177
|
}, t))
|
|
178
178
|
}),
|
|
179
|
-
/* @__PURE__ */
|
|
180
|
-
variant:
|
|
179
|
+
/* @__PURE__ */ K(Pe, {
|
|
180
|
+
variant: z.Rectangular,
|
|
181
181
|
width: "110px",
|
|
182
182
|
height: "28px",
|
|
183
|
-
color:
|
|
183
|
+
color: gt,
|
|
184
184
|
className: "shrink-0 rounded-lg"
|
|
185
185
|
})
|
|
186
186
|
]
|
|
187
187
|
});
|
|
188
|
-
},
|
|
188
|
+
}, vt = ({ items: e, searchQuery: t, onCardClick: n, labels: r, cardStyles: i, trailingSkeletonCount: a = 0, skeletonStyles: o, layout: s }) => /* @__PURE__ */ q("div", {
|
|
189
189
|
style: {
|
|
190
190
|
"--st-grid-min-card-width": s?.minCardWidth,
|
|
191
191
|
"--st-grid-gap": s?.gap,
|
|
@@ -195,61 +195,61 @@ var Je = "1180px", Ye = {
|
|
|
195
195
|
gap: "var(--st-grid-gap, 20px)",
|
|
196
196
|
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))"
|
|
197
197
|
},
|
|
198
|
-
className:
|
|
199
|
-
children: [e.map((e) => /* @__PURE__ */
|
|
198
|
+
className: T("mx-auto grid w-full min-w-0", st.cardGrid),
|
|
199
|
+
children: [e.map((e) => /* @__PURE__ */ K(pt, {
|
|
200
200
|
item: e,
|
|
201
201
|
searchQuery: t,
|
|
202
202
|
onCardClick: n,
|
|
203
203
|
labels: r,
|
|
204
204
|
styles: i
|
|
205
|
-
}, e.id)), Array.from({ length: a }, (e, t) => /* @__PURE__ */
|
|
206
|
-
}),
|
|
205
|
+
}, e.id)), Array.from({ length: a }, (e, t) => /* @__PURE__ */ K(_t, { styles: o }, `skeleton-${t}`))]
|
|
206
|
+
}), yt = {
|
|
207
207
|
container: "_container_3vz4t_2",
|
|
208
208
|
subtitle: "_subtitle_3vz4t_6",
|
|
209
209
|
createButtonLabel: "_createButtonLabel_3vz4t_10",
|
|
210
210
|
sortButton: "_sortButton_3vz4t_19",
|
|
211
211
|
createButton: "_createButton_3vz4t_10",
|
|
212
212
|
sortControlHidden: "_sortControlHidden_3vz4t_49"
|
|
213
|
-
},
|
|
213
|
+
}, bt = (e, t, n, r, i, a) => {
|
|
214
214
|
if (!e) return t ? a.loadingMoreLabel : n ? a.errorLabel : r > 0 ? `${r}` : i ? a.noResultsLabel : a.emptyStateLabel;
|
|
215
|
-
},
|
|
215
|
+
}, xt = (e) => {
|
|
216
216
|
if (!e || e === document.body) return null;
|
|
217
217
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
218
|
-
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e :
|
|
219
|
-
},
|
|
220
|
-
let { colors:
|
|
221
|
-
"--st-bg":
|
|
222
|
-
"--st-subtitle-text":
|
|
223
|
-
"--st-sort-text":
|
|
224
|
-
}),
|
|
218
|
+
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : xt(e.parentElement);
|
|
219
|
+
}, St = ({ 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: h, styles: g, sortIcon: _, className: v, gridLayout: y, cardStyles: b, loadMoreError: x, onRetryLoadMore: S }) => {
|
|
220
|
+
let { colors: C, typography: te } = g ?? {}, E = te?.titleClassName ?? "dial-h1-text", ne = te?.subtitleClassName ?? "dial-body-text", re = w({
|
|
221
|
+
"--st-bg": C?.background,
|
|
222
|
+
"--st-subtitle-text": C?.subtitleText,
|
|
223
|
+
"--st-sort-text": C?.sortButtonText
|
|
224
|
+
}), ie = (e) => {
|
|
225
225
|
r(e ?? "");
|
|
226
|
-
}, [
|
|
227
|
-
|
|
228
|
-
}, []),
|
|
229
|
-
|
|
226
|
+
}, [ae, oe] = W(!1), [se, ce] = W(!1), fe = rt(null), pe = et(() => {
|
|
227
|
+
ce(!0);
|
|
228
|
+
}, []), me = et(() => {
|
|
229
|
+
ce(!1);
|
|
230
230
|
}, []);
|
|
231
|
-
|
|
232
|
-
let e =
|
|
233
|
-
|
|
234
|
-
}, [
|
|
235
|
-
let
|
|
231
|
+
nt(() => {
|
|
232
|
+
let e = fe.current;
|
|
233
|
+
se && ae && e != null && e.offsetParent == null && oe(!1);
|
|
234
|
+
}, [se, ae]);
|
|
235
|
+
let he = e.sortOptions.find((e) => e.value === i)?.label ?? e.sortLabel, ge = U(() => e.sortOptions.map((e) => ({
|
|
236
236
|
key: e.value,
|
|
237
237
|
label: e.label,
|
|
238
|
-
mark:
|
|
238
|
+
mark: Te.Check,
|
|
239
239
|
checked: e.value === i,
|
|
240
240
|
onClick: () => a(e.value)
|
|
241
241
|
})), [
|
|
242
242
|
e.sortOptions,
|
|
243
243
|
i,
|
|
244
244
|
a
|
|
245
|
-
]),
|
|
246
|
-
|
|
247
|
-
let e =
|
|
245
|
+
]), _e = bt(s, d, !!c, o.length, n.trim().length > 0, e), ye = rt(null);
|
|
246
|
+
tt(() => {
|
|
247
|
+
let e = ye.current;
|
|
248
248
|
if (!e || !p) return;
|
|
249
|
-
let t =
|
|
249
|
+
let t = xt(e.parentElement);
|
|
250
250
|
if (!t) return;
|
|
251
251
|
let n = () => {
|
|
252
|
-
if (d || s ||
|
|
252
|
+
if (d || s || x || !u) return;
|
|
253
253
|
let n = t.getBoundingClientRect(), r = e.getBoundingClientRect();
|
|
254
254
|
r.top < n.bottom && r.bottom > n.top && p();
|
|
255
255
|
};
|
|
@@ -258,158 +258,383 @@ var Je = "1180px", Ye = {
|
|
|
258
258
|
u,
|
|
259
259
|
d,
|
|
260
260
|
s,
|
|
261
|
-
|
|
261
|
+
x,
|
|
262
262
|
p
|
|
263
263
|
]);
|
|
264
|
-
let
|
|
264
|
+
let k = () => s ? /* @__PURE__ */ K(Fe, { ariaLabel: e.loadingAriaLabel ?? "Loading scheduled tasks" }) : c ? /* @__PURE__ */ q("div", {
|
|
265
265
|
className: "flex flex-col items-center gap-3",
|
|
266
|
-
children: [/* @__PURE__ */
|
|
267
|
-
className:
|
|
266
|
+
children: [/* @__PURE__ */ K("p", {
|
|
267
|
+
className: T(ne, yt.subtitle),
|
|
268
268
|
children: e.errorLabel
|
|
269
|
-
}), /* @__PURE__ */
|
|
269
|
+
}), /* @__PURE__ */ K(A, {
|
|
270
270
|
label: e.retryLabel,
|
|
271
271
|
onClick: l
|
|
272
272
|
})]
|
|
273
|
-
}) : o.length === 0 ? n.trim() ? /* @__PURE__ */
|
|
273
|
+
}) : o.length === 0 ? n.trim() ? /* @__PURE__ */ K(ee, {
|
|
274
274
|
label: e.noResultsLabel,
|
|
275
275
|
description: e.noResultsDescription
|
|
276
|
-
}) : /* @__PURE__ */
|
|
276
|
+
}) : /* @__PURE__ */ K(ee, {
|
|
277
277
|
label: e.emptyStateLabel,
|
|
278
278
|
description: e.emptyStateDescription
|
|
279
|
-
}) : /* @__PURE__ */
|
|
279
|
+
}) : /* @__PURE__ */ q("div", {
|
|
280
280
|
className: "flex w-full flex-col gap-6",
|
|
281
281
|
children: [
|
|
282
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ K(vt, {
|
|
283
283
|
items: o,
|
|
284
284
|
searchQuery: n,
|
|
285
285
|
onCardClick: m,
|
|
286
286
|
labels: e.cardLabels,
|
|
287
287
|
trailingSkeletonCount: d ? f : 0,
|
|
288
|
-
skeletonStyles: { colors: { skeletonColor:
|
|
289
|
-
cardStyles:
|
|
290
|
-
layout:
|
|
288
|
+
skeletonStyles: { colors: { skeletonColor: C?.skeletonColor } },
|
|
289
|
+
cardStyles: b,
|
|
290
|
+
layout: y
|
|
291
291
|
}),
|
|
292
|
-
|
|
292
|
+
x && /* @__PURE__ */ K(be, {
|
|
293
293
|
message: e.loadMoreErrorLabel ?? e.errorLabel,
|
|
294
|
-
textClassName:
|
|
295
|
-
iconStroke:
|
|
296
|
-
action: /* @__PURE__ */
|
|
294
|
+
textClassName: ne,
|
|
295
|
+
iconStroke: O,
|
|
296
|
+
action: /* @__PURE__ */ K(A, {
|
|
297
297
|
label: e.retryLabel,
|
|
298
|
-
onClick:
|
|
298
|
+
onClick: S
|
|
299
299
|
})
|
|
300
300
|
}),
|
|
301
|
-
/* @__PURE__ */
|
|
302
|
-
ref:
|
|
301
|
+
/* @__PURE__ */ K("div", {
|
|
302
|
+
ref: ye,
|
|
303
303
|
"aria-hidden": !0,
|
|
304
304
|
className: "h-px w-full"
|
|
305
305
|
})
|
|
306
306
|
]
|
|
307
|
-
}),
|
|
308
|
-
return /* @__PURE__ */
|
|
309
|
-
style:
|
|
310
|
-
className:
|
|
307
|
+
}), xe = s || !!c || o.length === 0;
|
|
308
|
+
return /* @__PURE__ */ q("div", {
|
|
309
|
+
style: re,
|
|
310
|
+
className: T("flex h-full w-full flex-col gap-4 overflow-y-auto px-4 py-4 desktop:gap-6 desktop:px-8", yt.container, v),
|
|
311
311
|
children: [
|
|
312
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ q("div", {
|
|
313
313
|
className: "flex items-start justify-between gap-4",
|
|
314
|
-
children: [/* @__PURE__ */
|
|
314
|
+
children: [/* @__PURE__ */ q("div", {
|
|
315
315
|
className: "min-w-0 gap-2",
|
|
316
|
-
children: [/* @__PURE__ */
|
|
317
|
-
className:
|
|
316
|
+
children: [/* @__PURE__ */ K("h1", {
|
|
317
|
+
className: T("truncate", E),
|
|
318
318
|
children: e.title
|
|
319
|
-
}), /* @__PURE__ */
|
|
320
|
-
className:
|
|
319
|
+
}), /* @__PURE__ */ K("p", {
|
|
320
|
+
className: T("mt-1", ne, yt.subtitle),
|
|
321
321
|
children: e.subtitle
|
|
322
322
|
})]
|
|
323
|
-
}), t != null && /* @__PURE__ */
|
|
323
|
+
}), t != null && /* @__PURE__ */ K(je, {
|
|
324
324
|
label: e.createButtonLabel,
|
|
325
|
-
textClassName:
|
|
325
|
+
textClassName: yt.createButtonLabel,
|
|
326
326
|
"aria-label": e.createButtonLabel,
|
|
327
|
-
iconBefore: /* @__PURE__ */
|
|
328
|
-
size:
|
|
327
|
+
iconBefore: /* @__PURE__ */ K(Ye, {
|
|
328
|
+
size: D.SM,
|
|
329
329
|
"aria-hidden": !0,
|
|
330
|
-
stroke:
|
|
330
|
+
stroke: O
|
|
331
331
|
}),
|
|
332
332
|
onClick: t,
|
|
333
|
-
className:
|
|
333
|
+
className: T("shrink-0", yt.createButton)
|
|
334
334
|
})]
|
|
335
335
|
}),
|
|
336
|
-
/* @__PURE__ */
|
|
336
|
+
/* @__PURE__ */ q("div", {
|
|
337
337
|
className: "flex flex-wrap items-center gap-3",
|
|
338
|
-
children: [/* @__PURE__ */
|
|
338
|
+
children: [/* @__PURE__ */ K("div", {
|
|
339
339
|
role: "search",
|
|
340
340
|
className: "flex-1",
|
|
341
|
-
children: /* @__PURE__ */
|
|
341
|
+
children: /* @__PURE__ */ K(Me, {
|
|
342
342
|
value: n,
|
|
343
|
-
onChange:
|
|
343
|
+
onChange: ie,
|
|
344
344
|
placeholder: e.searchPlaceholder,
|
|
345
345
|
clearLabel: e.clearSearchLabel,
|
|
346
346
|
"aria-label": e.searchAriaLabel,
|
|
347
|
-
size:
|
|
348
|
-
onFocus:
|
|
349
|
-
onBlur:
|
|
347
|
+
size: ve.Large,
|
|
348
|
+
onFocus: pe,
|
|
349
|
+
onBlur: me
|
|
350
350
|
})
|
|
351
|
-
}), e.sortOptions.length > 0 && /* @__PURE__ */
|
|
352
|
-
ref:
|
|
353
|
-
className:
|
|
354
|
-
children: /* @__PURE__ */
|
|
355
|
-
items:
|
|
356
|
-
label:
|
|
357
|
-
variant:
|
|
358
|
-
appearance:
|
|
359
|
-
iconBefore:
|
|
360
|
-
size:
|
|
351
|
+
}), e.sortOptions.length > 0 && /* @__PURE__ */ K("div", {
|
|
352
|
+
ref: fe,
|
|
353
|
+
className: T(se && yt.sortControlHidden),
|
|
354
|
+
children: /* @__PURE__ */ K(ue, {
|
|
355
|
+
items: ge,
|
|
356
|
+
label: he,
|
|
357
|
+
variant: de.Primary,
|
|
358
|
+
appearance: le.Ghost,
|
|
359
|
+
iconBefore: _ === void 0 ? /* @__PURE__ */ K(B, {
|
|
360
|
+
size: D.SM,
|
|
361
361
|
"aria-hidden": !0,
|
|
362
|
-
stroke:
|
|
363
|
-
}) :
|
|
364
|
-
className:
|
|
362
|
+
stroke: O
|
|
363
|
+
}) : _,
|
|
364
|
+
className: yt.sortButton
|
|
365
365
|
})
|
|
366
366
|
})]
|
|
367
367
|
}),
|
|
368
|
-
h != null && typeof h != "boolean" && /* @__PURE__ */
|
|
368
|
+
h != null && typeof h != "boolean" && /* @__PURE__ */ K("div", {
|
|
369
369
|
className: "mx-auto w-full min-w-0",
|
|
370
|
-
style: { maxWidth:
|
|
370
|
+
style: { maxWidth: y?.maxWidth ?? "1180px" },
|
|
371
371
|
children: h
|
|
372
372
|
}),
|
|
373
|
-
/* @__PURE__ */
|
|
373
|
+
/* @__PURE__ */ K(P, {
|
|
374
374
|
visuallyHidden: !0,
|
|
375
375
|
as: F.Span,
|
|
376
|
-
children:
|
|
376
|
+
children: _e
|
|
377
377
|
}),
|
|
378
|
-
/* @__PURE__ */
|
|
379
|
-
className:
|
|
380
|
-
children:
|
|
378
|
+
/* @__PURE__ */ K("div", {
|
|
379
|
+
className: T("mx-auto flex size-full w-full min-w-0 flex-col", xe && "items-center justify-center"),
|
|
380
|
+
children: k()
|
|
381
381
|
})
|
|
382
382
|
]
|
|
383
383
|
});
|
|
384
|
-
},
|
|
384
|
+
}, Ct = /* @__PURE__ */ function(e) {
|
|
385
385
|
return e.FirstToRun = "firstToRun", e.LastToRun = "lastToRun", e.Newest = "newest", e.NameAZ = "nameAZ", e;
|
|
386
|
-
}({}),
|
|
386
|
+
}({}), wt = {
|
|
387
|
+
changeLabel: "Change timezone",
|
|
388
|
+
dialogAriaLabel: "Time zone",
|
|
389
|
+
searchPlaceholder: "Search city, timezone or offset...",
|
|
390
|
+
searchAriaLabel: "Search time zones",
|
|
391
|
+
clearSearchAriaLabel: "Clear search",
|
|
392
|
+
yourZoneHeading: "Your time zone",
|
|
393
|
+
allZonesHeading: "All time zones",
|
|
394
|
+
noResultsTitle: "No time zones found",
|
|
395
|
+
noResultsDescription: "Try a different city, time zone or offset.",
|
|
396
|
+
resultsCountLabel: (e) => e === 1 ? "1 time zone found" : `${e} time zones found`,
|
|
397
|
+
listAriaLabel: "Time zones",
|
|
398
|
+
gapHintLabel: (e) => `This time does not exist on that day, so the task will run at ${e}.`
|
|
399
|
+
}, Tt = {
|
|
400
|
+
linkClassName: "dial-small-semi-text",
|
|
401
|
+
headingClassName: "dial-tiny-lead-semi-text",
|
|
402
|
+
rowClassName: "dial-small-text",
|
|
403
|
+
hintClassName: "dial-tiny-text"
|
|
404
|
+
}, X = {
|
|
405
|
+
field: "_field_m6dza_9",
|
|
406
|
+
summary: "_summary_m6dza_17",
|
|
407
|
+
link: "_link_m6dza_21",
|
|
408
|
+
chevron: "_chevron_m6dza_26",
|
|
409
|
+
chevronOpen: "_chevronOpen_m6dza_30",
|
|
410
|
+
popover: "_popover_m6dza_34",
|
|
411
|
+
panel: "_panel_m6dza_40",
|
|
412
|
+
results: "_results_m6dza_49",
|
|
413
|
+
heading: "_heading_m6dza_57",
|
|
414
|
+
row: "_row_m6dza_63",
|
|
415
|
+
rowContent: "_rowContent_m6dza_67",
|
|
416
|
+
offset: "_offset_m6dza_77",
|
|
417
|
+
name: "_name_m6dza_86",
|
|
418
|
+
abbreviation: "_abbreviation_m6dza_93",
|
|
419
|
+
hint: "_hint_m6dza_101"
|
|
420
|
+
}, Et = (e) => e.trim().toLowerCase(), Dt = (e, t) => {
|
|
421
|
+
let n = Et(t);
|
|
422
|
+
return n ? e.filter((e) => e.searchTerms.some((e) => e.includes(n))) : [...e];
|
|
423
|
+
}, Ot = "[role=\"option\"]", kt = $e(({ option: e, isSelected: t, query: n, rowClassName: r, onSelect: i }) => /* @__PURE__ */ K(I, {
|
|
424
|
+
role: "option",
|
|
425
|
+
"aria-selected": t,
|
|
426
|
+
selected: t,
|
|
427
|
+
mark: Te.Tint,
|
|
428
|
+
className: X.row,
|
|
429
|
+
onClick: () => i(e.id),
|
|
430
|
+
children: /* @__PURE__ */ q("span", {
|
|
431
|
+
className: T(X.rowContent, r),
|
|
432
|
+
children: [
|
|
433
|
+
/* @__PURE__ */ K("span", {
|
|
434
|
+
className: X.offset,
|
|
435
|
+
children: /* @__PURE__ */ K(j, {
|
|
436
|
+
text: e.offsetLabel,
|
|
437
|
+
query: n,
|
|
438
|
+
maxLines: 1
|
|
439
|
+
})
|
|
440
|
+
}),
|
|
441
|
+
/* @__PURE__ */ K("span", {
|
|
442
|
+
className: X.name,
|
|
443
|
+
children: /* @__PURE__ */ K(j, {
|
|
444
|
+
text: e.id,
|
|
445
|
+
query: n,
|
|
446
|
+
maxLines: 1
|
|
447
|
+
})
|
|
448
|
+
}),
|
|
449
|
+
e.abbreviation && /* @__PURE__ */ q("span", {
|
|
450
|
+
className: X.abbreviation,
|
|
451
|
+
children: [/* @__PURE__ */ K("span", {
|
|
452
|
+
"aria-hidden": "true",
|
|
453
|
+
children: "•"
|
|
454
|
+
}), /* @__PURE__ */ K(j, {
|
|
455
|
+
text: e.abbreviation,
|
|
456
|
+
query: n,
|
|
457
|
+
maxLines: 1
|
|
458
|
+
})]
|
|
459
|
+
})
|
|
460
|
+
]
|
|
461
|
+
})
|
|
462
|
+
}));
|
|
463
|
+
kt.displayName = "TimezoneRow";
|
|
464
|
+
var At = ({ options: e, value: t, browserOption: n, onSelect: r, labels: i, classNames: a, cssVars: o }) => {
|
|
465
|
+
let [s, c] = W(""), l = rt(null), u = H(), d = H(), f = Et(s), p = f.length > 0, m = U(() => Dt(e, s), [e, s]);
|
|
466
|
+
tt(() => {
|
|
467
|
+
let e = l.current;
|
|
468
|
+
e?.querySelector("input")?.focus(), e?.querySelector("[aria-selected=\"true\"]")?.scrollIntoView?.({ block: "nearest" });
|
|
469
|
+
}, []);
|
|
470
|
+
let h = (e) => {
|
|
471
|
+
let t = l.current?.querySelectorAll(Ot);
|
|
472
|
+
t?.length && t[Math.min(Math.max(e, 0), t.length - 1)].focus();
|
|
473
|
+
}, g = () => l.current?.querySelector("input")?.focus(), _ = (e) => {
|
|
474
|
+
let t = e.target, n = t.matches(Ot), r = Array.from(l.current?.querySelectorAll(Ot) ?? []), i = r.indexOf(t);
|
|
475
|
+
e.key === "ArrowDown" && (n || t.tagName === "INPUT") ? (e.preventDefault(), h(n ? i + 1 : 0)) : e.key === "ArrowUp" && n ? (e.preventDefault(), i <= 0 ? g() : h(i - 1)) : e.key === "Home" && n ? (e.preventDefault(), h(0)) : e.key === "End" && n && (e.preventDefault(), h(r.length - 1));
|
|
476
|
+
}, v = (e) => e.map((e) => /* @__PURE__ */ K(kt, {
|
|
477
|
+
option: e,
|
|
478
|
+
isSelected: e.id === t,
|
|
479
|
+
query: f,
|
|
480
|
+
rowClassName: a.rowClassName,
|
|
481
|
+
onSelect: r
|
|
482
|
+
}, e.id)), y = (e, t, n) => /* @__PURE__ */ q("div", {
|
|
483
|
+
role: "group",
|
|
484
|
+
"aria-labelledby": e,
|
|
485
|
+
children: [/* @__PURE__ */ K("div", {
|
|
486
|
+
id: e,
|
|
487
|
+
className: T(X.heading, a.headingClassName),
|
|
488
|
+
children: t
|
|
489
|
+
}), v(n)]
|
|
490
|
+
});
|
|
491
|
+
return /* @__PURE__ */ q("div", {
|
|
492
|
+
ref: l,
|
|
493
|
+
className: X.panel,
|
|
494
|
+
style: o,
|
|
495
|
+
onKeyDown: _,
|
|
496
|
+
children: [
|
|
497
|
+
/* @__PURE__ */ K(Me, {
|
|
498
|
+
value: s,
|
|
499
|
+
onChange: (e) => c(e ?? ""),
|
|
500
|
+
placeholder: i.searchPlaceholder,
|
|
501
|
+
"aria-label": i.searchAriaLabel,
|
|
502
|
+
clearLabel: i.clearSearchAriaLabel
|
|
503
|
+
}),
|
|
504
|
+
/* @__PURE__ */ K(P, {
|
|
505
|
+
visuallyHidden: !0,
|
|
506
|
+
children: p && m.length > 0 ? i.resultsCountLabel(m.length) : ""
|
|
507
|
+
}),
|
|
508
|
+
/* @__PURE__ */ K("div", {
|
|
509
|
+
className: X.results,
|
|
510
|
+
children: m.length === 0 ? /* @__PURE__ */ K(L, {
|
|
511
|
+
title: i.noResultsTitle,
|
|
512
|
+
description: i.noResultsDescription,
|
|
513
|
+
live: !0
|
|
514
|
+
}) : /* @__PURE__ */ q("div", {
|
|
515
|
+
role: "listbox",
|
|
516
|
+
"aria-label": i.listAriaLabel,
|
|
517
|
+
children: [
|
|
518
|
+
p && v(m),
|
|
519
|
+
!p && n && y(u, i.yourZoneHeading, [n]),
|
|
520
|
+
!p && y(d, i.allZonesHeading, m)
|
|
521
|
+
]
|
|
522
|
+
})
|
|
523
|
+
})
|
|
524
|
+
]
|
|
525
|
+
});
|
|
526
|
+
}, jt = (e) => ({
|
|
527
|
+
...wt,
|
|
528
|
+
...Object.fromEntries(Object.entries(e ?? {}).filter(([, e]) => e !== void 0))
|
|
529
|
+
}), Mt = (e) => ({
|
|
530
|
+
...Tt,
|
|
531
|
+
...Object.fromEntries(Object.entries(e ?? {}).filter(([, e]) => e !== void 0))
|
|
532
|
+
}), Nt = (e) => w({
|
|
533
|
+
"--stz-link": e?.linkColor,
|
|
534
|
+
"--stz-heading": e?.headingColor,
|
|
535
|
+
"--stz-offset": e?.offsetColor,
|
|
536
|
+
"--stz-name": e?.nameColor,
|
|
537
|
+
"--stz-abbreviation": e?.abbreviationColor,
|
|
538
|
+
"--stz-hint": e?.hintColor,
|
|
539
|
+
"--stz-shadow": e?.shadowColor
|
|
540
|
+
}), Pt = (e, t) => {
|
|
541
|
+
let n = e.find((e) => e.id === t);
|
|
542
|
+
return n ? `(${n.offsetLabel}) ${n.id}` : t;
|
|
543
|
+
}, Ft = ({ id: e, options: t, value: n, onChange: r, browserTimezoneId: i, disabled: a, isSummaryShown: o = !0, ariaDescribedBy: s, labels: c, colors: l, classNames: u }) => {
|
|
544
|
+
let d = re(), [f, p] = W(!1), m = U(() => jt(c), [c]), h = U(() => Mt(u), [u]), g = U(() => Nt(l), [l]), _ = U(() => t.find((e) => e.id === i), [t, i]), v = Pt(t, n), y = /* @__PURE__ */ K(At, {
|
|
545
|
+
options: t,
|
|
546
|
+
value: n,
|
|
547
|
+
browserOption: _,
|
|
548
|
+
onSelect: (e) => {
|
|
549
|
+
p(!1), r(e);
|
|
550
|
+
},
|
|
551
|
+
labels: m,
|
|
552
|
+
classNames: h,
|
|
553
|
+
cssVars: g
|
|
554
|
+
}), b = /* @__PURE__ */ K(N, {
|
|
555
|
+
id: e,
|
|
556
|
+
label: m.changeLabel,
|
|
557
|
+
textClassName: h.linkClassName,
|
|
558
|
+
className: X.link,
|
|
559
|
+
disabled: a,
|
|
560
|
+
"aria-describedby": s,
|
|
561
|
+
iconAfter: /* @__PURE__ */ K(We, {
|
|
562
|
+
size: 16,
|
|
563
|
+
stroke: O,
|
|
564
|
+
className: T(X.chevron, f && X.chevronOpen),
|
|
565
|
+
"aria-hidden": "true"
|
|
566
|
+
}),
|
|
567
|
+
...d ? {
|
|
568
|
+
"aria-haspopup": "dialog",
|
|
569
|
+
"aria-expanded": f,
|
|
570
|
+
onClick: () => p(!0)
|
|
571
|
+
} : {}
|
|
572
|
+
}), x = o && /* @__PURE__ */ K("span", {
|
|
573
|
+
className: T(X.summary, h.rowClassName),
|
|
574
|
+
children: v
|
|
575
|
+
});
|
|
576
|
+
return d ? /* @__PURE__ */ q("div", {
|
|
577
|
+
style: g,
|
|
578
|
+
className: X.field,
|
|
579
|
+
children: [
|
|
580
|
+
x,
|
|
581
|
+
b,
|
|
582
|
+
/* @__PURE__ */ K(se, {
|
|
583
|
+
open: f,
|
|
584
|
+
title: m.dialogAriaLabel,
|
|
585
|
+
onClose: () => p(!1),
|
|
586
|
+
children: y
|
|
587
|
+
})
|
|
588
|
+
]
|
|
589
|
+
}) : /* @__PURE__ */ q("div", {
|
|
590
|
+
style: g,
|
|
591
|
+
className: X.field,
|
|
592
|
+
children: [x, /* @__PURE__ */ K(ge, {
|
|
593
|
+
open: f,
|
|
594
|
+
onOpenChange: p,
|
|
595
|
+
disabled: a,
|
|
596
|
+
overlayRole: _e.Dialog,
|
|
597
|
+
overlayAriaLabel: m.dialogAriaLabel,
|
|
598
|
+
matchReferenceWidth: !1,
|
|
599
|
+
placement: "bottom-start",
|
|
600
|
+
listClassName: X.popover,
|
|
601
|
+
listStyle: g,
|
|
602
|
+
initialFocus: 0,
|
|
603
|
+
renderOverlay: () => y,
|
|
604
|
+
children: b
|
|
605
|
+
})]
|
|
606
|
+
});
|
|
607
|
+
}, It = ({ text: e, colors: t, classNames: n }) => /* @__PURE__ */ K(P, {
|
|
608
|
+
className: T(X.hint, n?.hintClassName ?? Tt.hintClassName),
|
|
609
|
+
style: w({ "--stz-hint": t?.hintColor }),
|
|
610
|
+
children: e
|
|
611
|
+
}), Lt = (e) => Array.from(document.querySelectorAll("[aria-labelledby]")).find((t) => (t.getAttribute("aria-labelledby") ?? "").split(/\s+/).includes(e)) ?? null, Rt = (e) => e == null ? "" : typeof e == "string" ? e.trim() : Array.isArray(e) ? e.length ? JSON.stringify(e) : "" : JSON.stringify(e), zt = (e, t) => {
|
|
387
612
|
let n = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
|
|
388
|
-
for (let r of n) if (
|
|
613
|
+
for (let r of n) if (Rt(e[r]) !== Rt(t[r])) return !0;
|
|
389
614
|
return !1;
|
|
390
|
-
},
|
|
391
|
-
let d = (e) =>
|
|
392
|
-
return
|
|
615
|
+
}, Bt = { error: "_error_v2pfn_4" }, Vt = ({ id: t, label: n, placeholder: r, value: i, onChange: a, minDate: o, error: s, errorClassName: c, disabled: u }) => {
|
|
616
|
+
let d = (e) => a(l(e)), f = H();
|
|
617
|
+
return E(() => document.getElementById(t), f, !!s), /* @__PURE__ */ q("div", {
|
|
393
618
|
className: "flex flex-1 flex-col gap-1",
|
|
394
|
-
children: [/* @__PURE__ */
|
|
619
|
+
children: [/* @__PURE__ */ K(fe, {
|
|
395
620
|
id: t,
|
|
396
|
-
mode:
|
|
397
|
-
value: e(
|
|
621
|
+
mode: pe.Date,
|
|
622
|
+
value: e(i),
|
|
398
623
|
onChange: d,
|
|
399
|
-
minDate:
|
|
624
|
+
minDate: o,
|
|
400
625
|
labelProps: { label: n },
|
|
401
626
|
placeholder: r,
|
|
402
|
-
invalid: !!
|
|
627
|
+
invalid: !!s,
|
|
403
628
|
disabled: u
|
|
404
|
-
}), /* @__PURE__ */
|
|
405
|
-
announce:
|
|
629
|
+
}), /* @__PURE__ */ K(k, {
|
|
630
|
+
announce: we.Assertive,
|
|
406
631
|
id: f,
|
|
407
|
-
className:
|
|
408
|
-
text:
|
|
632
|
+
className: T(c, Bt.error),
|
|
633
|
+
text: s ?? ""
|
|
409
634
|
})]
|
|
410
635
|
});
|
|
411
|
-
},
|
|
412
|
-
mode:
|
|
636
|
+
}, Ht = ({ value: e, onChange: t, onBlur: n, disabled: r, invalid: i, ariaLabel: a }) => /* @__PURE__ */ K(fe, {
|
|
637
|
+
mode: pe.Time,
|
|
413
638
|
value: e,
|
|
414
639
|
onChange: (e) => {
|
|
415
640
|
typeof e == "string" && t(e);
|
|
@@ -424,40 +649,49 @@ var Je = "1180px", Ye = {
|
|
|
424
649
|
className: "w-[120px] gap-y-0",
|
|
425
650
|
fieldClassName: "px-3 py-1.5 pe-9",
|
|
426
651
|
pickerButtonClassName: "size-6 inset-e-1.5"
|
|
427
|
-
}),
|
|
428
|
-
let
|
|
429
|
-
|
|
652
|
+
}), Ut = { error: "_error_v2pfn_4" }, Wt = (e) => /* @__PURE__ */ K(Ht, { ...e }), Gt = ({ label: e, placeholder: t, value: r, onChange: a, disabled: s, error: c, errorClassName: l = "dial-tiny-text", timezone: u }) => {
|
|
653
|
+
let d = rt(/* @__PURE__ */ new Date()).current, f = U(() => {
|
|
654
|
+
if (!u) return d;
|
|
655
|
+
try {
|
|
656
|
+
return i(n(d, u).dateTime);
|
|
657
|
+
} catch {
|
|
658
|
+
return d;
|
|
659
|
+
}
|
|
660
|
+
}, [d, u]), m = (e) => a(o(e)), h = H();
|
|
661
|
+
return E(() => document.getElementById("scheduled-task-run-at"), h, !!c), /* @__PURE__ */ q("div", {
|
|
430
662
|
className: "flex flex-col gap-1",
|
|
431
|
-
children: [/* @__PURE__ */
|
|
663
|
+
children: [/* @__PURE__ */ K(fe, {
|
|
432
664
|
id: "scheduled-task-run-at",
|
|
433
|
-
mode:
|
|
434
|
-
value:
|
|
435
|
-
onChange:
|
|
436
|
-
minDate:
|
|
665
|
+
mode: pe.DateTime,
|
|
666
|
+
value: p(r),
|
|
667
|
+
onChange: m,
|
|
668
|
+
minDate: f,
|
|
437
669
|
labelProps: {
|
|
438
670
|
label: e,
|
|
439
671
|
required: !0
|
|
440
672
|
},
|
|
441
673
|
placeholder: t,
|
|
442
|
-
invalid: !!
|
|
443
|
-
disabled:
|
|
444
|
-
renderTimeField:
|
|
445
|
-
}), /* @__PURE__ */
|
|
446
|
-
announce:
|
|
447
|
-
id:
|
|
448
|
-
className:
|
|
449
|
-
text:
|
|
674
|
+
invalid: !!c,
|
|
675
|
+
disabled: s,
|
|
676
|
+
renderTimeField: Wt
|
|
677
|
+
}), /* @__PURE__ */ K(k, {
|
|
678
|
+
announce: we.Assertive,
|
|
679
|
+
id: h,
|
|
680
|
+
className: T(l, Ut.error),
|
|
681
|
+
text: c ?? ""
|
|
450
682
|
})]
|
|
451
683
|
});
|
|
452
684
|
}, Z = {
|
|
453
|
-
formColumn: "
|
|
454
|
-
detailsColumn: "
|
|
455
|
-
sectionSubtitle: "
|
|
456
|
-
instructionsError: "
|
|
457
|
-
refineFeedback: "
|
|
458
|
-
refineError: "
|
|
459
|
-
|
|
460
|
-
|
|
685
|
+
formColumn: "_formColumn_dskt8_1",
|
|
686
|
+
detailsColumn: "_detailsColumn_dskt8_10",
|
|
687
|
+
sectionSubtitle: "_sectionSubtitle_dskt8_14",
|
|
688
|
+
instructionsError: "_instructionsError_dskt8_18",
|
|
689
|
+
refineFeedback: "_refineFeedback_dskt8_22",
|
|
690
|
+
refineError: "_refineError_dskt8_26",
|
|
691
|
+
timeFieldZone: "_timeFieldZone_dskt8_31",
|
|
692
|
+
timeFieldZoneText: "_timeFieldZoneText_dskt8_45"
|
|
693
|
+
}, Kt = Qe(async () => ({ default: (await at()).MarkdownEditor })), qt = ({ labels: e, timezone: t, values: r, initialValues: o, errors: s, modelSelector: l, modelLabelId: d, skillSelector: p, onFieldChange: g, onBack: v, onCancel: x, onSubmit: ee, isSubmitting: S = !1, isSubmitDisabled: re = !1, onRefineDescription: oe, onRefineInstructions: se, markdownEditorTheme: ue, backIcon: me, className: ge, styles: _e }) => {
|
|
694
|
+
let ve = H(), be = H(), xe = H(), A = H(), Se = H(), j = H(), N = H(), P = H(), F = H(), I = rt(void 0), Te = (e) => e ? async (t, n) => {
|
|
461
695
|
if (I.current && !I.current.aborted) throw new DOMException("Busy", "AbortError");
|
|
462
696
|
I.current = n;
|
|
463
697
|
try {
|
|
@@ -465,49 +699,80 @@ var Je = "1180px", Ye = {
|
|
|
465
699
|
} finally {
|
|
466
700
|
I.current === n && (I.current = void 0);
|
|
467
701
|
}
|
|
468
|
-
} : void 0,
|
|
469
|
-
value:
|
|
470
|
-
onChange: (e) =>
|
|
471
|
-
onRefine:
|
|
472
|
-
disabled:
|
|
473
|
-
}), L =
|
|
474
|
-
value:
|
|
475
|
-
onChange: (e) =>
|
|
476
|
-
onRefine:
|
|
477
|
-
disabled:
|
|
478
|
-
}),
|
|
479
|
-
|
|
480
|
-
},
|
|
481
|
-
|
|
482
|
-
}),
|
|
483
|
-
|
|
484
|
-
}),
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}
|
|
491
|
-
|
|
702
|
+
} : void 0, Ee = ie({
|
|
703
|
+
value: r.description ?? "",
|
|
704
|
+
onChange: (e) => g("description", e),
|
|
705
|
+
onRefine: Te(oe),
|
|
706
|
+
disabled: S
|
|
707
|
+
}), L = ie({
|
|
708
|
+
value: r.prompt,
|
|
709
|
+
onChange: (e) => g("prompt", e),
|
|
710
|
+
onRefine: Te(se),
|
|
711
|
+
disabled: S
|
|
712
|
+
}), De = Ee.isPending || L.isPending, Oe = () => {
|
|
713
|
+
Ee.reset(), L.reset();
|
|
714
|
+
}, ke = !!(o && zt(r, o)), R = ae(ke), je = ne(), Me = () => R.guard(() => {
|
|
715
|
+
Oe(), v();
|
|
716
|
+
}), Pe = () => R.guard(() => {
|
|
717
|
+
Oe(), x();
|
|
718
|
+
}), z = te(), Ie = !r.skillUrls?.length, [Le, ze] = W(), Be = rt(/* @__PURE__ */ new Date()).current, He = U(() => {
|
|
719
|
+
try {
|
|
720
|
+
return i(n(Be, r.timezone).dateTime);
|
|
721
|
+
} catch {
|
|
722
|
+
return Be;
|
|
723
|
+
}
|
|
724
|
+
}, [Be, r.timezone]), { colors: B, typography: Ue, layout: We } = _e ?? {}, Ge = Ue?.titleClassName ?? "dial-h1-text", Ke = Ue?.sectionTitleClassName ?? "dial-body-semi-text", qe = Ue?.sectionSubtitleClassName ?? "dial-tiny-text", Je = Ue?.instructionsLabelClassName ?? "dial-body-semi-text mb-1", V = Ue?.instructionsErrorClassName ?? "dial-tiny-text", Ye = w({
|
|
725
|
+
"--stcf-details-border": B?.detailsColumnBorder,
|
|
726
|
+
"--stcf-subtitle-text": B?.sectionSubtitleText,
|
|
727
|
+
"--stcf-error-text": B?.instructionsErrorText,
|
|
728
|
+
"--stcf-refine-action-text": B?.refineActionText,
|
|
729
|
+
"--stcf-refine-error-text": B?.refineErrorText
|
|
730
|
+
}), Xe = U(() => {
|
|
731
|
+
if (!t || r.repeat !== h.OneTime || !r.runAt || !c(r.runAt, r.timezone)) return;
|
|
732
|
+
let e = a(r.runAt, r.timezone);
|
|
733
|
+
return jt(t.labels).gapHintLabel(e.slice(11, 16));
|
|
734
|
+
}, [
|
|
735
|
+
t,
|
|
736
|
+
r.repeat,
|
|
737
|
+
r.runAt,
|
|
738
|
+
r.timezone
|
|
739
|
+
]), Qe = (e, n = !0) => t && /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(Ft, {
|
|
740
|
+
id: e,
|
|
741
|
+
options: t.options,
|
|
742
|
+
value: r.timezone,
|
|
743
|
+
browserTimezoneId: t.browserTimezoneId,
|
|
744
|
+
onChange: (e) => g("timezone", e),
|
|
745
|
+
disabled: S,
|
|
746
|
+
isSummaryShown: n,
|
|
747
|
+
ariaDescribedBy: s.timezone ? j : void 0,
|
|
748
|
+
labels: t.labels,
|
|
749
|
+
colors: t.colors,
|
|
750
|
+
classNames: t.classNames
|
|
751
|
+
}), s.timezone && /* @__PURE__ */ K(k, {
|
|
752
|
+
id: j,
|
|
753
|
+
className: T(V, Z.instructionsError),
|
|
754
|
+
text: s.timezone
|
|
755
|
+
})] }), $e = {
|
|
756
|
+
feedbackClassName: T(B?.refineActionText && Z.refineFeedback, Ue?.refineFeedbackClassName, st.refineFeedback),
|
|
492
757
|
errorClassName: Z.refineError
|
|
493
|
-
},
|
|
494
|
-
let n =
|
|
495
|
-
|
|
496
|
-
},
|
|
497
|
-
|
|
498
|
-
},
|
|
499
|
-
|
|
500
|
-
},
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
}, [
|
|
504
|
-
let
|
|
505
|
-
|
|
506
|
-
let
|
|
507
|
-
let
|
|
508
|
-
|
|
509
|
-
},
|
|
510
|
-
return /* @__PURE__ */
|
|
758
|
+
}, et = (t) => {
|
|
759
|
+
let n = m.test(t.target.value) ? void 0 : e.timeInvalidLabel;
|
|
760
|
+
ze(n), g("time", t.target.value);
|
|
761
|
+
}, nt = (e) => {
|
|
762
|
+
ze(void 0), g("time", typeof e == "string" ? e : "");
|
|
763
|
+
}, at = (e) => {
|
|
764
|
+
g("repeat", e);
|
|
765
|
+
}, ot = r.repeat !== h.OneTime && r.repeat !== h.Hourly, J = r.repeat === h.Custom, ct = J && !r.daysOfWeek?.length;
|
|
766
|
+
tt(() => {
|
|
767
|
+
ot || ze(void 0);
|
|
768
|
+
}, [ot]);
|
|
769
|
+
let lt = ot ? Le ?? s.time : void 0;
|
|
770
|
+
E(() => Lt(d), A, !!s.modelId), E(() => document.getElementById(be), F, !!s.prompt);
|
|
771
|
+
let ut = (e) => g("runAt", e), dt = (e) => {
|
|
772
|
+
let t = r.daysOfWeek ?? [];
|
|
773
|
+
t.includes(e) ? t.length > 1 && g("daysOfWeek", t.filter((t) => t !== e)) : g("daysOfWeek", [...t, e].sort((e, t) => Number(e) - Number(t)));
|
|
774
|
+
}, ft = re || !!s.modelId || S || De || !r.displayName.trim() || !r.modelId || !r.prompt.trim() && !r.skillUrls?.length || !!s.skillUrls || r.repeat === h.OneTime && (!r.runAt || !!s.runAt) || ot && !r.time || ct || !!lt;
|
|
775
|
+
return /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(it, {
|
|
511
776
|
labels: {
|
|
512
777
|
title: e.pageTitle,
|
|
513
778
|
backButtonLabel: e.backButtonLabel,
|
|
@@ -515,245 +780,266 @@ var Je = "1180px", Ye = {
|
|
|
515
780
|
submitButtonLabel: e.createButtonLabel,
|
|
516
781
|
submittingLabel: e.submittingLabel ?? "Saving"
|
|
517
782
|
},
|
|
518
|
-
onBack:
|
|
519
|
-
onCancel:
|
|
783
|
+
onBack: Me,
|
|
784
|
+
onCancel: Pe,
|
|
520
785
|
onSubmit: () => {
|
|
521
|
-
!
|
|
786
|
+
!ft && (!I.current || I.current.aborted) && ee();
|
|
522
787
|
},
|
|
523
|
-
isCancelDisabled:
|
|
524
|
-
isSubmitDisabled:
|
|
525
|
-
isSubmitting:
|
|
526
|
-
backIcon:
|
|
527
|
-
size:
|
|
528
|
-
stroke:
|
|
788
|
+
isCancelDisabled: S,
|
|
789
|
+
isSubmitDisabled: ft,
|
|
790
|
+
isSubmitting: S,
|
|
791
|
+
backIcon: me === void 0 ? /* @__PURE__ */ K(Ve, {
|
|
792
|
+
size: D.LG,
|
|
793
|
+
stroke: O,
|
|
529
794
|
"aria-hidden": !0,
|
|
530
795
|
className: "rtl:scale-x-[-1]"
|
|
531
|
-
}) :
|
|
796
|
+
}) : me,
|
|
532
797
|
layout: {
|
|
533
|
-
sideColumnWidth:
|
|
534
|
-
columnGap:
|
|
798
|
+
sideColumnWidth: We?.detailsWidth,
|
|
799
|
+
columnGap: We?.columnGap,
|
|
535
800
|
reserveEndColumn: !1
|
|
536
801
|
},
|
|
537
|
-
className:
|
|
802
|
+
className: ge,
|
|
538
803
|
styles: {
|
|
539
|
-
colors: { background:
|
|
804
|
+
colors: { background: B?.background },
|
|
540
805
|
header: {
|
|
541
|
-
colors: { borderColor:
|
|
542
|
-
typography: { fontClassName:
|
|
806
|
+
colors: { borderColor: B?.headerBorder },
|
|
807
|
+
typography: { fontClassName: Ge }
|
|
543
808
|
},
|
|
544
|
-
cssVars:
|
|
809
|
+
cssVars: Ye
|
|
545
810
|
},
|
|
546
|
-
left: /* @__PURE__ */
|
|
811
|
+
left: /* @__PURE__ */ q("div", {
|
|
547
812
|
role: "group",
|
|
548
813
|
"aria-label": e.detailsSectionTitle,
|
|
549
|
-
className:
|
|
814
|
+
className: T("flex flex-1 flex-col gap-5 py-6 desktop:border-e", Z.detailsColumn, Z.formColumn),
|
|
550
815
|
children: [
|
|
551
|
-
/* @__PURE__ */
|
|
816
|
+
/* @__PURE__ */ q("div", {
|
|
552
817
|
className: "flex flex-col gap-1",
|
|
553
|
-
children: [/* @__PURE__ */
|
|
554
|
-
className:
|
|
818
|
+
children: [/* @__PURE__ */ K("h2", {
|
|
819
|
+
className: Ke,
|
|
555
820
|
children: e.detailsSectionTitle
|
|
556
|
-
}), /* @__PURE__ */
|
|
557
|
-
className:
|
|
821
|
+
}), /* @__PURE__ */ K("p", {
|
|
822
|
+
className: T(qe, Z.sectionSubtitle),
|
|
558
823
|
children: e.detailsSectionSubtitle
|
|
559
824
|
})]
|
|
560
825
|
}),
|
|
561
|
-
/* @__PURE__ */
|
|
826
|
+
/* @__PURE__ */ K(Ce, {
|
|
562
827
|
id: "scheduled-task-display-name",
|
|
563
|
-
value:
|
|
564
|
-
onChange: (e) =>
|
|
828
|
+
value: r.displayName,
|
|
829
|
+
onChange: (e) => g("displayName", e ?? ""),
|
|
565
830
|
labelProps: {
|
|
566
831
|
label: e.displayNameLabel,
|
|
567
832
|
required: !0
|
|
568
833
|
},
|
|
569
|
-
invalid: !!
|
|
570
|
-
error:
|
|
834
|
+
invalid: !!s.displayName,
|
|
835
|
+
error: s.displayName
|
|
571
836
|
}),
|
|
572
|
-
/* @__PURE__ */
|
|
573
|
-
isEnabled: !!
|
|
574
|
-
fieldId:
|
|
837
|
+
/* @__PURE__ */ K(C, {
|
|
838
|
+
isEnabled: !!oe,
|
|
839
|
+
fieldId: ve,
|
|
575
840
|
label: e.descriptionLabel,
|
|
576
841
|
labels: e,
|
|
577
|
-
refinement:
|
|
578
|
-
disabled:
|
|
579
|
-
caption: `${(
|
|
580
|
-
|
|
581
|
-
children: /* @__PURE__ */
|
|
582
|
-
id:
|
|
583
|
-
value:
|
|
842
|
+
refinement: Ee,
|
|
843
|
+
disabled: S || De,
|
|
844
|
+
caption: `${(r.description ?? "").length}/500`,
|
|
845
|
+
...$e,
|
|
846
|
+
children: /* @__PURE__ */ K(Re, {
|
|
847
|
+
id: ve,
|
|
848
|
+
value: r.description ?? "",
|
|
584
849
|
onChange: (e) => {
|
|
585
|
-
|
|
850
|
+
Ee.reset(), g("description", e);
|
|
586
851
|
},
|
|
587
|
-
labelProps:
|
|
852
|
+
labelProps: oe ? void 0 : { label: e.descriptionLabel },
|
|
588
853
|
maxLength: 500,
|
|
589
|
-
invalid: !!
|
|
590
|
-
error:
|
|
854
|
+
invalid: !!s.description,
|
|
855
|
+
error: s.description
|
|
591
856
|
})
|
|
592
857
|
}),
|
|
593
|
-
/* @__PURE__ */
|
|
858
|
+
/* @__PURE__ */ q("div", {
|
|
594
859
|
className: "flex flex-col gap-1",
|
|
595
860
|
children: [
|
|
596
|
-
/* @__PURE__ */
|
|
597
|
-
id:
|
|
861
|
+
/* @__PURE__ */ K(M, {
|
|
862
|
+
id: d,
|
|
598
863
|
label: e.modelOrAgentLabel,
|
|
599
864
|
required: !0
|
|
600
865
|
}),
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
id:
|
|
604
|
-
className:
|
|
605
|
-
text:
|
|
866
|
+
l,
|
|
867
|
+
s.modelId && /* @__PURE__ */ K(k, {
|
|
868
|
+
id: A,
|
|
869
|
+
className: T(V, Z.instructionsError),
|
|
870
|
+
text: s.modelId
|
|
606
871
|
})
|
|
607
872
|
]
|
|
608
873
|
}),
|
|
609
|
-
/* @__PURE__ */
|
|
874
|
+
/* @__PURE__ */ q("div", {
|
|
610
875
|
className: "flex flex-col gap-3",
|
|
611
876
|
children: [
|
|
612
|
-
/* @__PURE__ */
|
|
877
|
+
/* @__PURE__ */ K(Ne, {
|
|
613
878
|
labelProps: { label: e.repeatLabel },
|
|
614
|
-
value:
|
|
615
|
-
onChange:
|
|
879
|
+
value: r.repeat,
|
|
880
|
+
onChange: at,
|
|
616
881
|
options: e.repeatOptions.map((e) => ({
|
|
617
882
|
value: e.key,
|
|
618
883
|
label: e.label
|
|
619
884
|
}))
|
|
620
885
|
}),
|
|
621
|
-
|
|
886
|
+
r.repeat === h.OneTime && /* @__PURE__ */ K(Gt, {
|
|
622
887
|
label: e.runAtLabel,
|
|
623
888
|
placeholder: e.runAtPlaceholder,
|
|
624
|
-
value:
|
|
625
|
-
onChange:
|
|
626
|
-
error:
|
|
627
|
-
errorClassName:
|
|
628
|
-
disabled:
|
|
889
|
+
value: r.runAt ?? "",
|
|
890
|
+
onChange: ut,
|
|
891
|
+
error: s.runAt,
|
|
892
|
+
errorClassName: V,
|
|
893
|
+
disabled: S,
|
|
894
|
+
timezone: t ? r.timezone : void 0
|
|
629
895
|
}),
|
|
630
|
-
|
|
631
|
-
|
|
896
|
+
r.repeat === h.OneTime && /* @__PURE__ */ q(G, { children: [Qe("scheduled-task-timezone"), t && /* @__PURE__ */ K(It, {
|
|
897
|
+
text: Xe,
|
|
898
|
+
colors: t.colors,
|
|
899
|
+
classNames: t.classNames
|
|
900
|
+
})] }),
|
|
901
|
+
r.repeat !== h.OneTime && /* @__PURE__ */ q(G, { children: [
|
|
902
|
+
r.repeat === h.Weekly && /* @__PURE__ */ q("div", {
|
|
632
903
|
className: "flex flex-col gap-1",
|
|
633
|
-
children: [/* @__PURE__ */
|
|
904
|
+
children: [/* @__PURE__ */ K(fe, {
|
|
634
905
|
id: "scheduled-task-day-of-week",
|
|
635
|
-
mode:
|
|
636
|
-
value:
|
|
637
|
-
onChange: (e) =>
|
|
906
|
+
mode: pe.Weekday,
|
|
907
|
+
value: u(r.dayOfWeek),
|
|
908
|
+
onChange: (e) => g("dayOfWeek", f(e)),
|
|
638
909
|
labelProps: {
|
|
639
910
|
label: e.dayOfWeekLabel,
|
|
640
911
|
required: !0
|
|
641
912
|
},
|
|
642
|
-
invalid: !!
|
|
643
|
-
ariaDescribedBy:
|
|
644
|
-
}),
|
|
645
|
-
id:
|
|
646
|
-
className:
|
|
647
|
-
text:
|
|
913
|
+
invalid: !!s.dayOfWeek,
|
|
914
|
+
ariaDescribedBy: s.dayOfWeek ? Se : void 0
|
|
915
|
+
}), s.dayOfWeek && /* @__PURE__ */ K(k, {
|
|
916
|
+
id: Se,
|
|
917
|
+
className: T(V, Z.instructionsError),
|
|
918
|
+
text: s.dayOfWeek
|
|
648
919
|
})]
|
|
649
920
|
}),
|
|
650
|
-
|
|
921
|
+
ot && /* @__PURE__ */ q("div", {
|
|
651
922
|
className: "flex flex-col gap-1",
|
|
652
|
-
children: [
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
923
|
+
children: [
|
|
924
|
+
/* @__PURE__ */ q("div", {
|
|
925
|
+
className: "relative",
|
|
926
|
+
children: [/* @__PURE__ */ K(fe, {
|
|
927
|
+
id: "scheduled-task-time",
|
|
928
|
+
mode: pe.Time,
|
|
929
|
+
value: r.time,
|
|
930
|
+
onChange: nt,
|
|
931
|
+
onBlur: et,
|
|
932
|
+
labelProps: {
|
|
933
|
+
label: e.timeLabel,
|
|
934
|
+
required: !0
|
|
935
|
+
},
|
|
936
|
+
invalid: !!lt,
|
|
937
|
+
ariaDescribedBy: lt ? P : void 0,
|
|
938
|
+
disabled: S
|
|
939
|
+
}), t && /* @__PURE__ */ K("span", {
|
|
940
|
+
className: T(Z.timeFieldZone, Mt(t.classNames).rowClassName),
|
|
941
|
+
style: Nt(t.colors),
|
|
942
|
+
onClick: (e) => e.currentTarget.ownerDocument.getElementById("scheduled-task-time")?.focus(),
|
|
943
|
+
children: /* @__PURE__ */ K(ye, {
|
|
944
|
+
className: Z.timeFieldZoneText,
|
|
945
|
+
text: Pt(t.options, r.timezone)
|
|
946
|
+
})
|
|
947
|
+
})]
|
|
948
|
+
}),
|
|
949
|
+
lt && /* @__PURE__ */ K(k, {
|
|
950
|
+
id: P,
|
|
951
|
+
className: T(V, Z.instructionsError),
|
|
952
|
+
text: lt
|
|
953
|
+
}),
|
|
954
|
+
Qe("scheduled-task-timezone", !1)
|
|
955
|
+
]
|
|
671
956
|
}),
|
|
672
|
-
|
|
957
|
+
J && /* @__PURE__ */ q("div", {
|
|
673
958
|
className: "flex flex-col gap-1",
|
|
674
959
|
children: [
|
|
675
|
-
/* @__PURE__ */
|
|
676
|
-
id:
|
|
960
|
+
/* @__PURE__ */ K(M, {
|
|
961
|
+
id: xe,
|
|
677
962
|
label: e.daysOfWeekLabel,
|
|
678
963
|
required: !0
|
|
679
964
|
}),
|
|
680
|
-
/* @__PURE__ */
|
|
965
|
+
/* @__PURE__ */ K("div", {
|
|
681
966
|
role: "group",
|
|
682
|
-
"aria-labelledby":
|
|
967
|
+
"aria-labelledby": xe,
|
|
683
968
|
className: "flex gap-0.5",
|
|
684
969
|
children: e.customDayOptions.map((e) => {
|
|
685
|
-
let
|
|
686
|
-
return /* @__PURE__ */
|
|
970
|
+
let t = !!r.daysOfWeek?.includes(e.value);
|
|
971
|
+
return /* @__PURE__ */ K(ce, {
|
|
687
972
|
"aria-label": e.fullName,
|
|
688
|
-
"aria-pressed":
|
|
689
|
-
"aria-describedby":
|
|
690
|
-
variant:
|
|
691
|
-
appearance:
|
|
973
|
+
"aria-pressed": t,
|
|
974
|
+
"aria-describedby": s.daysOfWeek ? N : void 0,
|
|
975
|
+
variant: t ? de.Primary : de.Neutral,
|
|
976
|
+
appearance: le.Solid,
|
|
692
977
|
className: "w-10 rounded-full",
|
|
693
978
|
label: e.shortLabel,
|
|
694
|
-
onClick: () =>
|
|
695
|
-
disabled:
|
|
979
|
+
onClick: () => dt(e.value),
|
|
980
|
+
disabled: S
|
|
696
981
|
}, e.value);
|
|
697
982
|
})
|
|
698
983
|
}),
|
|
699
|
-
|
|
700
|
-
id:
|
|
701
|
-
className:
|
|
702
|
-
text:
|
|
984
|
+
s.daysOfWeek && /* @__PURE__ */ K(k, {
|
|
985
|
+
id: N,
|
|
986
|
+
className: T(V, Z.instructionsError),
|
|
987
|
+
text: s.daysOfWeek
|
|
703
988
|
})
|
|
704
989
|
]
|
|
705
990
|
}),
|
|
706
|
-
|
|
991
|
+
r.repeat === h.Monthly && /* @__PURE__ */ K(Ae, {
|
|
707
992
|
id: "scheduled-task-day-of-month",
|
|
708
993
|
integer: !0,
|
|
709
994
|
min: 1,
|
|
710
995
|
max: 31,
|
|
711
|
-
value:
|
|
712
|
-
onChange: (e) =>
|
|
996
|
+
value: r.dayOfMonth ?? "",
|
|
997
|
+
onChange: (e) => g("dayOfMonth", e == null ? "" : String(e)),
|
|
713
998
|
labelProps: {
|
|
714
999
|
label: e.dayOfMonthLabel,
|
|
715
1000
|
required: !0
|
|
716
1001
|
},
|
|
717
|
-
invalid: !!
|
|
718
|
-
error:
|
|
1002
|
+
invalid: !!s.dayOfMonth,
|
|
1003
|
+
error: s.dayOfMonth
|
|
719
1004
|
}),
|
|
720
|
-
|
|
1005
|
+
r.repeat === h.Hourly && /* @__PURE__ */ K(Ae, {
|
|
721
1006
|
id: "scheduled-task-minute",
|
|
722
1007
|
integer: !0,
|
|
723
1008
|
min: 0,
|
|
724
1009
|
max: 59,
|
|
725
1010
|
wrapperClassName: "w-[142px]",
|
|
726
|
-
value:
|
|
727
|
-
onChange: (e) =>
|
|
1011
|
+
value: r.minute ?? "",
|
|
1012
|
+
onChange: (e) => g("minute", e == null ? "" : String(e)),
|
|
728
1013
|
labelProps: {
|
|
729
1014
|
label: e.minuteLabel,
|
|
730
1015
|
required: !0
|
|
731
1016
|
},
|
|
732
|
-
invalid: !!
|
|
733
|
-
error:
|
|
1017
|
+
invalid: !!s.minute,
|
|
1018
|
+
error: s.minute
|
|
734
1019
|
}),
|
|
735
|
-
|
|
1020
|
+
r.repeat === h.Hourly && Qe("scheduled-task-timezone"),
|
|
1021
|
+
/* @__PURE__ */ q("div", {
|
|
736
1022
|
className: "flex flex-row gap-3",
|
|
737
|
-
children: [/* @__PURE__ */
|
|
1023
|
+
children: [/* @__PURE__ */ K(Vt, {
|
|
738
1024
|
id: "scheduled-task-start-date",
|
|
739
1025
|
label: e.startDateLabel,
|
|
740
1026
|
placeholder: e.startDatePlaceholder,
|
|
741
|
-
value:
|
|
742
|
-
onChange: (e) =>
|
|
743
|
-
minDate:
|
|
744
|
-
error:
|
|
745
|
-
errorClassName:
|
|
746
|
-
disabled:
|
|
747
|
-
}), /* @__PURE__ */
|
|
1027
|
+
value: r.startDate,
|
|
1028
|
+
onChange: (e) => g("startDate", e),
|
|
1029
|
+
minDate: He,
|
|
1030
|
+
error: s.startDate,
|
|
1031
|
+
errorClassName: V,
|
|
1032
|
+
disabled: S
|
|
1033
|
+
}), /* @__PURE__ */ K(Vt, {
|
|
748
1034
|
id: "scheduled-task-end-date",
|
|
749
1035
|
label: e.endDateLabel,
|
|
750
1036
|
placeholder: e.endDatePlaceholder,
|
|
751
|
-
value:
|
|
752
|
-
onChange: (e) =>
|
|
753
|
-
minDate:
|
|
754
|
-
error:
|
|
755
|
-
errorClassName:
|
|
756
|
-
disabled:
|
|
1037
|
+
value: r.endDate,
|
|
1038
|
+
onChange: (e) => g("endDate", e),
|
|
1039
|
+
minDate: He,
|
|
1040
|
+
error: s.endDate,
|
|
1041
|
+
errorClassName: V,
|
|
1042
|
+
disabled: S
|
|
757
1043
|
})]
|
|
758
1044
|
})
|
|
759
1045
|
] })
|
|
@@ -761,68 +1047,68 @@ var Je = "1180px", Ye = {
|
|
|
761
1047
|
})
|
|
762
1048
|
]
|
|
763
1049
|
}),
|
|
764
|
-
children: /* @__PURE__ */
|
|
1050
|
+
children: /* @__PURE__ */ q("div", {
|
|
765
1051
|
role: "group",
|
|
766
1052
|
"aria-label": e.configurationSectionTitle,
|
|
767
|
-
className:
|
|
1053
|
+
className: T("flex flex-1 flex-col gap-5 py-6", Z.formColumn),
|
|
768
1054
|
children: [
|
|
769
|
-
/* @__PURE__ */
|
|
1055
|
+
/* @__PURE__ */ K("div", {
|
|
770
1056
|
className: "flex flex-col gap-1",
|
|
771
|
-
children: /* @__PURE__ */
|
|
772
|
-
className:
|
|
1057
|
+
children: /* @__PURE__ */ K("h2", {
|
|
1058
|
+
className: Ke,
|
|
773
1059
|
children: e.configurationSectionTitle
|
|
774
1060
|
})
|
|
775
1061
|
}),
|
|
776
|
-
|
|
777
|
-
announce:
|
|
778
|
-
className:
|
|
779
|
-
text:
|
|
780
|
-
}) : /* @__PURE__ */
|
|
1062
|
+
p == null ? /* @__PURE__ */ K(k, {
|
|
1063
|
+
announce: we.Polite,
|
|
1064
|
+
className: T(V, Z.instructionsError),
|
|
1065
|
+
text: s.skillUrls ?? ""
|
|
1066
|
+
}) : /* @__PURE__ */ K("div", {
|
|
781
1067
|
className: "w-full max-w-[996px] min-w-0",
|
|
782
|
-
children:
|
|
1068
|
+
children: p
|
|
783
1069
|
}),
|
|
784
|
-
/* @__PURE__ */
|
|
1070
|
+
/* @__PURE__ */ K("div", {
|
|
785
1071
|
className: "flex w-full max-w-[996px] min-w-0 flex-col",
|
|
786
|
-
children: /* @__PURE__ */
|
|
787
|
-
isEnabled: !!
|
|
788
|
-
fieldId:
|
|
789
|
-
labelClassName:
|
|
1072
|
+
children: /* @__PURE__ */ K(C, {
|
|
1073
|
+
isEnabled: !!se,
|
|
1074
|
+
fieldId: be,
|
|
1075
|
+
labelClassName: Je,
|
|
790
1076
|
label: e.instructionsLabel,
|
|
791
|
-
required:
|
|
1077
|
+
required: Ie,
|
|
792
1078
|
labels: e,
|
|
793
1079
|
refinement: L,
|
|
794
|
-
disabled:
|
|
795
|
-
|
|
796
|
-
children: /* @__PURE__ */
|
|
1080
|
+
disabled: S || De,
|
|
1081
|
+
...$e,
|
|
1082
|
+
children: /* @__PURE__ */ q("div", {
|
|
797
1083
|
className: "flex flex-1 flex-col gap-1",
|
|
798
1084
|
children: [
|
|
799
|
-
!
|
|
800
|
-
htmlFor:
|
|
801
|
-
className:
|
|
1085
|
+
!se && /* @__PURE__ */ K(M, {
|
|
1086
|
+
htmlFor: be,
|
|
1087
|
+
className: Je,
|
|
802
1088
|
label: e.instructionsLabel,
|
|
803
|
-
required:
|
|
1089
|
+
required: Ie
|
|
804
1090
|
}),
|
|
805
|
-
/* @__PURE__ */
|
|
806
|
-
ref:
|
|
807
|
-
className:
|
|
808
|
-
children: /* @__PURE__ */
|
|
809
|
-
fallback: /* @__PURE__ */
|
|
810
|
-
children: /* @__PURE__ */
|
|
811
|
-
id:
|
|
812
|
-
value:
|
|
1091
|
+
/* @__PURE__ */ K("div", {
|
|
1092
|
+
ref: z,
|
|
1093
|
+
className: T("w-full", y, b),
|
|
1094
|
+
children: /* @__PURE__ */ K(Ze, {
|
|
1095
|
+
fallback: /* @__PURE__ */ K(Fe, { ariaLabel: e.editorLoadingAriaLabel ?? "Loading editor" }),
|
|
1096
|
+
children: /* @__PURE__ */ K(Kt, {
|
|
1097
|
+
id: be,
|
|
1098
|
+
value: r.prompt,
|
|
813
1099
|
onChange: (e) => {
|
|
814
|
-
L.reset(),
|
|
1100
|
+
L.reset(), g("prompt", e);
|
|
815
1101
|
},
|
|
816
1102
|
height: 480,
|
|
817
|
-
theme:
|
|
1103
|
+
theme: ue,
|
|
818
1104
|
placeholder: e.instructionsPlaceholder
|
|
819
1105
|
})
|
|
820
1106
|
})
|
|
821
1107
|
}),
|
|
822
|
-
|
|
823
|
-
id:
|
|
824
|
-
className:
|
|
825
|
-
text:
|
|
1108
|
+
s.prompt && /* @__PURE__ */ K(k, {
|
|
1109
|
+
id: F,
|
|
1110
|
+
className: T(V, Z.instructionsError),
|
|
1111
|
+
text: s.prompt
|
|
826
1112
|
})
|
|
827
1113
|
]
|
|
828
1114
|
})
|
|
@@ -830,111 +1116,111 @@ var Je = "1180px", Ye = {
|
|
|
830
1116
|
})
|
|
831
1117
|
]
|
|
832
1118
|
})
|
|
833
|
-
}),
|
|
1119
|
+
}), R.isConfirmOpen && /* @__PURE__ */ K(_, {
|
|
834
1120
|
open: !0,
|
|
835
1121
|
title: e.discardTitle ?? "Discard unsaved changes?",
|
|
836
1122
|
message: e.discardMessage ?? "You have unsaved changes. Leaving now will discard them.",
|
|
837
|
-
confirmLabel:
|
|
1123
|
+
confirmLabel: je ? e.discardConfirmMobileLabel ?? "Discard" : e.discardConfirmLabel ?? "Discard changes",
|
|
838
1124
|
cancelLabel: e.discardCancelLabel ?? "Keep editing",
|
|
839
|
-
variant:
|
|
840
|
-
onConfirm:
|
|
841
|
-
onClose:
|
|
1125
|
+
variant: he.Danger,
|
|
1126
|
+
onConfirm: R.confirm,
|
|
1127
|
+
onClose: R.dismiss
|
|
842
1128
|
})] });
|
|
843
|
-
},
|
|
1129
|
+
}, Jt = /* @__PURE__ */ function(e) {
|
|
844
1130
|
return e.Details = "details", e.Configuration = "configuration", e.History = "history", e;
|
|
845
|
-
}({}),
|
|
1131
|
+
}({}), Yt = /* @__PURE__ */ function(e) {
|
|
846
1132
|
return e.Card = "card", e.Flow = "flow", e;
|
|
847
|
-
}({}),
|
|
848
|
-
...
|
|
1133
|
+
}({}), Xt = { subtitleText: "_subtitleText_1i4x2_3" }, Zt = {
|
|
1134
|
+
...g,
|
|
849
1135
|
ul: "dial-small-paragraph-text mb-3 space-y-1",
|
|
850
1136
|
ol: "dial-small-paragraph-text mb-3 space-y-1"
|
|
851
|
-
},
|
|
1137
|
+
}, Qt = ({ skillLabel: e, skillDisplayNames: t, renderSkillName: n, instructionsLabel: r, instructionsMarkdown: i, renderInstructions: a, markdownLabels: o, fieldLabelClassName: s = "dial-tiny-text" }) => /* @__PURE__ */ q("div", {
|
|
852
1138
|
className: "flex min-w-0 flex-col gap-5",
|
|
853
|
-
children: [!!t?.length && /* @__PURE__ */
|
|
1139
|
+
children: [!!t?.length && /* @__PURE__ */ q("div", {
|
|
854
1140
|
role: "group",
|
|
855
1141
|
"aria-label": e,
|
|
856
1142
|
className: "flex min-w-0 flex-col gap-1",
|
|
857
|
-
children: [/* @__PURE__ */
|
|
858
|
-
className:
|
|
1143
|
+
children: [/* @__PURE__ */ K("span", {
|
|
1144
|
+
className: T(s, Xt.subtitleText),
|
|
859
1145
|
children: e
|
|
860
|
-
}), /* @__PURE__ */
|
|
1146
|
+
}), /* @__PURE__ */ K("p", {
|
|
861
1147
|
className: "wrap-anywhere whitespace-normal",
|
|
862
|
-
children: t?.map((e, t) => /* @__PURE__ */
|
|
1148
|
+
children: t?.map((e, t) => /* @__PURE__ */ K("span", {
|
|
863
1149
|
className: "block",
|
|
864
1150
|
children: n ? n(e, t) : e
|
|
865
1151
|
}, `${t}:${e}`))
|
|
866
1152
|
})]
|
|
867
|
-
}), i && /* @__PURE__ */
|
|
1153
|
+
}), i && /* @__PURE__ */ q("div", {
|
|
868
1154
|
role: "group",
|
|
869
1155
|
"aria-label": r,
|
|
870
1156
|
className: "flex min-w-0 flex-col gap-1",
|
|
871
|
-
children: [/* @__PURE__ */
|
|
872
|
-
className:
|
|
1157
|
+
children: [/* @__PURE__ */ K("span", {
|
|
1158
|
+
className: T(s, Xt.subtitleText),
|
|
873
1159
|
children: r
|
|
874
|
-
}), a ? a(i) : /* @__PURE__ */
|
|
1160
|
+
}), a ? a(i) : /* @__PURE__ */ K(x, {
|
|
875
1161
|
content: i,
|
|
876
|
-
classNames:
|
|
1162
|
+
classNames: Zt,
|
|
877
1163
|
...o
|
|
878
1164
|
})]
|
|
879
1165
|
})]
|
|
880
|
-
}),
|
|
1166
|
+
}), $t = {
|
|
881
1167
|
subtitleText: "_subtitleText_1ncri_4",
|
|
882
1168
|
description: "_description_1ncri_10"
|
|
883
|
-
},
|
|
1169
|
+
}, en = ({ labels: e, description: t, modelLabel: n, renderModelName: r, repeatsLabel: i, activeWindowLabel: a, completedLabel: o, fieldLabelClassName: s = "dial-tiny-text", fieldValueClassName: c = "dial-small-text" }) => {
|
|
884
1170
|
let l = t?.trim();
|
|
885
|
-
return /* @__PURE__ */
|
|
886
|
-
l && /* @__PURE__ */
|
|
1171
|
+
return /* @__PURE__ */ q(G, { children: [
|
|
1172
|
+
l && /* @__PURE__ */ q("div", {
|
|
887
1173
|
className: "flex min-w-0 flex-col gap-1",
|
|
888
|
-
children: [/* @__PURE__ */
|
|
889
|
-
className:
|
|
1174
|
+
children: [/* @__PURE__ */ K("span", {
|
|
1175
|
+
className: T(s, $t.subtitleText),
|
|
890
1176
|
children: e.descriptionLabel
|
|
891
|
-
}), /* @__PURE__ */
|
|
892
|
-
className:
|
|
1177
|
+
}), /* @__PURE__ */ K("p", {
|
|
1178
|
+
className: T(c, "wrap-anywhere whitespace-pre-wrap", $t.description),
|
|
893
1179
|
children: l
|
|
894
1180
|
})]
|
|
895
1181
|
}),
|
|
896
|
-
o && /* @__PURE__ */
|
|
1182
|
+
o && /* @__PURE__ */ q("div", {
|
|
897
1183
|
className: "flex min-w-0 flex-col gap-1",
|
|
898
|
-
children: [/* @__PURE__ */
|
|
899
|
-
className:
|
|
1184
|
+
children: [/* @__PURE__ */ K("span", {
|
|
1185
|
+
className: T(s, $t.subtitleText),
|
|
900
1186
|
children: e.completedFieldLabel
|
|
901
|
-
}), /* @__PURE__ */
|
|
1187
|
+
}), /* @__PURE__ */ K("p", {
|
|
902
1188
|
className: c,
|
|
903
1189
|
children: o
|
|
904
1190
|
})]
|
|
905
1191
|
}),
|
|
906
|
-
n && /* @__PURE__ */
|
|
1192
|
+
n && /* @__PURE__ */ q("div", {
|
|
907
1193
|
className: "flex min-w-0 flex-col gap-1",
|
|
908
|
-
children: [/* @__PURE__ */
|
|
909
|
-
className:
|
|
1194
|
+
children: [/* @__PURE__ */ K("span", {
|
|
1195
|
+
className: T(s, $t.subtitleText),
|
|
910
1196
|
children: e.modelLabel
|
|
911
|
-
}), /* @__PURE__ */
|
|
1197
|
+
}), /* @__PURE__ */ K("p", {
|
|
912
1198
|
className: c,
|
|
913
1199
|
children: r ? r(n) : n
|
|
914
1200
|
})]
|
|
915
1201
|
}),
|
|
916
|
-
i && /* @__PURE__ */
|
|
1202
|
+
i && /* @__PURE__ */ q("div", {
|
|
917
1203
|
className: "flex min-w-0 flex-col gap-1",
|
|
918
|
-
children: [/* @__PURE__ */
|
|
919
|
-
className:
|
|
1204
|
+
children: [/* @__PURE__ */ K("span", {
|
|
1205
|
+
className: T(s, $t.subtitleText),
|
|
920
1206
|
children: e.repeatsLabel
|
|
921
|
-
}), /* @__PURE__ */
|
|
1207
|
+
}), /* @__PURE__ */ K("p", {
|
|
922
1208
|
className: c,
|
|
923
1209
|
children: i
|
|
924
1210
|
})]
|
|
925
1211
|
}),
|
|
926
|
-
a && /* @__PURE__ */
|
|
1212
|
+
a && /* @__PURE__ */ q("div", {
|
|
927
1213
|
className: "flex min-w-0 flex-col gap-1",
|
|
928
|
-
children: [/* @__PURE__ */
|
|
929
|
-
className:
|
|
1214
|
+
children: [/* @__PURE__ */ K("span", {
|
|
1215
|
+
className: T(s, $t.subtitleText),
|
|
930
1216
|
children: e.activeWindowLabel
|
|
931
|
-
}), /* @__PURE__ */
|
|
1217
|
+
}), /* @__PURE__ */ K("p", {
|
|
932
1218
|
className: c,
|
|
933
1219
|
children: a
|
|
934
1220
|
})]
|
|
935
1221
|
})
|
|
936
1222
|
] });
|
|
937
|
-
},
|
|
1223
|
+
}, tn = /* @__PURE__ */ function(e) {
|
|
938
1224
|
return e.Success = "success", e.Error = "error", e.InProgress = "inProgress", e.Missed = "missed", e;
|
|
939
1225
|
}({}), Q = {
|
|
940
1226
|
subtitleText: "_subtitleText_1sc83_1",
|
|
@@ -947,39 +1233,39 @@ var Je = "1180px", Ye = {
|
|
|
947
1233
|
unreadDot: "_unreadDot_1sc83_44",
|
|
948
1234
|
chevronIcon: "_chevronIcon_1sc83_48",
|
|
949
1235
|
errorDetailsText: "_errorDetailsText_1sc83_52"
|
|
950
|
-
},
|
|
1236
|
+
}, nn = ({ status: e }) => {
|
|
951
1237
|
switch (e) {
|
|
952
|
-
case
|
|
953
|
-
size:
|
|
1238
|
+
case tn.Success: return /* @__PURE__ */ K(Ue, {
|
|
1239
|
+
size: D.SM,
|
|
954
1240
|
className: Q.successIcon,
|
|
955
1241
|
"aria-hidden": !0,
|
|
956
|
-
stroke:
|
|
1242
|
+
stroke: O
|
|
957
1243
|
});
|
|
958
|
-
case
|
|
959
|
-
size:
|
|
1244
|
+
case tn.Error: return /* @__PURE__ */ K(Ke, {
|
|
1245
|
+
size: D.SM,
|
|
960
1246
|
className: Q.errorIcon,
|
|
961
1247
|
"aria-hidden": !0,
|
|
962
|
-
stroke:
|
|
1248
|
+
stroke: O
|
|
963
1249
|
});
|
|
964
|
-
case
|
|
1250
|
+
case tn.InProgress: return /* @__PURE__ */ K("span", {
|
|
965
1251
|
"aria-hidden": !0,
|
|
966
|
-
children: /* @__PURE__ */
|
|
1252
|
+
children: /* @__PURE__ */ K(Fe, { size: D.SM })
|
|
967
1253
|
});
|
|
968
|
-
case
|
|
969
|
-
size:
|
|
1254
|
+
case tn.Missed: return /* @__PURE__ */ K(Be, {
|
|
1255
|
+
size: D.SM,
|
|
970
1256
|
className: Q.missedIcon,
|
|
971
1257
|
"aria-hidden": !0,
|
|
972
|
-
stroke:
|
|
1258
|
+
stroke: O
|
|
973
1259
|
});
|
|
974
1260
|
default: return null;
|
|
975
1261
|
}
|
|
976
|
-
},
|
|
977
|
-
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 = f?.errorDetailsClassName ?? "dial-tiny-text", _ = c.unreadIndicatorLabel ?? "Unread", v = c.openConversationLabel ?? "Open conversation",
|
|
978
|
-
|
|
1262
|
+
}, rn = ({ 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 }) => {
|
|
1263
|
+
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 = f?.errorDetailsClassName ?? "dial-tiny-text", _ = c.unreadIndicatorLabel ?? "Unread", v = c.openConversationLabel ?? "Open conversation", y = H(), [b, x] = W(() => /* @__PURE__ */ new Set()), ee = (e) => {
|
|
1264
|
+
x((t) => {
|
|
979
1265
|
let n = new Set(t);
|
|
980
1266
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
981
1267
|
});
|
|
982
|
-
},
|
|
1268
|
+
}, S = w({
|
|
983
1269
|
"--strhl-success-icon": d?.successIconColor,
|
|
984
1270
|
"--strhl-error-icon": d?.errorIconColor,
|
|
985
1271
|
"--strhl-missed-icon": d?.missedIconColor,
|
|
@@ -993,63 +1279,63 @@ var Je = "1180px", Ye = {
|
|
|
993
1279
|
"--strhl-row-focus-bg": u?.rowFocusBackground,
|
|
994
1280
|
"--strhl-row-focus-outline": u?.rowFocusOutline,
|
|
995
1281
|
"--strhl-row-expanded-bg": u?.rowExpandedBackground
|
|
996
|
-
}),
|
|
997
|
-
let t = c.runStatusLabels[e.status], n = e.id === o, r = e.status ===
|
|
1282
|
+
}), C = (e) => {
|
|
1283
|
+
let t = c.runStatusLabels[e.status], n = e.id === o, r = e.status === tn.Error && e.errorText ? e.errorText : void 0, i = !!r, a = i && b.has(e.id), l = [e.isUnread ? _ : void 0, n ? c.currentRunLabel : void 0].filter((e) => !!e), u = [[
|
|
998
1284
|
t,
|
|
999
1285
|
e.timestampLabel,
|
|
1000
1286
|
e.durationLabel
|
|
1001
|
-
].filter(Boolean).join(" "), ...l].join(" — "), d = !!e.conversationId && !!s, f = !i && d, h = f || i,
|
|
1287
|
+
].filter(Boolean).join(" "), ...l].join(" — "), d = !!e.conversationId && !!s, f = !i && d, h = f || i, x = "-mx-(--strhl-row-bleed,0px)", S = T("flex min-h-(--strhl-row-min-height,32px) items-center justify-between gap-2 rounded-full px-3", n && Q.currentRun, a && Q.expandedRow, h && "w-full cursor-pointer text-start", h && Q.interactiveRow), C = /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ q("span", {
|
|
1002
1288
|
className: "flex min-w-0 items-center gap-1",
|
|
1003
|
-
children: [/* @__PURE__ */
|
|
1289
|
+
children: [/* @__PURE__ */ K(nn, { status: e.status }), /* @__PURE__ */ q("span", {
|
|
1004
1290
|
className: "flex min-w-0 items-center gap-1",
|
|
1005
|
-
children: [/* @__PURE__ */
|
|
1006
|
-
className:
|
|
1291
|
+
children: [/* @__PURE__ */ K("span", {
|
|
1292
|
+
className: T(e.isUnread ? m : p, "truncate"),
|
|
1007
1293
|
children: e.timestampLabel
|
|
1008
|
-
}), e.durationLabel && /* @__PURE__ */
|
|
1009
|
-
className:
|
|
1294
|
+
}), e.durationLabel && /* @__PURE__ */ K("span", {
|
|
1295
|
+
className: T(p, Q.subtitleText, "shrink-0"),
|
|
1010
1296
|
children: e.durationLabel
|
|
1011
1297
|
})]
|
|
1012
1298
|
})]
|
|
1013
|
-
}), /* @__PURE__ */
|
|
1299
|
+
}), /* @__PURE__ */ q("span", {
|
|
1014
1300
|
className: "relative flex size-3 shrink-0 items-center justify-center",
|
|
1015
|
-
children: [i && /* @__PURE__ */
|
|
1016
|
-
size:
|
|
1017
|
-
stroke:
|
|
1301
|
+
children: [i && /* @__PURE__ */ K(We, {
|
|
1302
|
+
size: D.SM,
|
|
1303
|
+
stroke: O,
|
|
1018
1304
|
"aria-hidden": !0,
|
|
1019
|
-
className:
|
|
1020
|
-
}), !i && e.isUnread && /* @__PURE__ */
|
|
1021
|
-
className:
|
|
1305
|
+
className: T("shrink-0 transition-transform duration-200 motion-reduce:transition-none", Q.chevronIcon, a && "rotate-180")
|
|
1306
|
+
}), !i && e.isUnread && /* @__PURE__ */ K("span", {
|
|
1307
|
+
className: T("size-[5.33px] rounded-full", Q.unreadDot),
|
|
1022
1308
|
"aria-hidden": !0
|
|
1023
1309
|
})]
|
|
1024
1310
|
})] });
|
|
1025
1311
|
if (i) {
|
|
1026
|
-
let t = `${
|
|
1027
|
-
return /* @__PURE__ */
|
|
1028
|
-
className:
|
|
1029
|
-
children: [/* @__PURE__ */
|
|
1312
|
+
let t = `${y}-${e.id}-header`, i = `${y}-${e.id}-details`;
|
|
1313
|
+
return /* @__PURE__ */ q("li", {
|
|
1314
|
+
className: T(x, "flex flex-col"),
|
|
1315
|
+
children: [/* @__PURE__ */ K("button", {
|
|
1030
1316
|
type: "button",
|
|
1031
1317
|
id: t,
|
|
1032
1318
|
"aria-label": u,
|
|
1033
1319
|
"aria-current": n ? "true" : void 0,
|
|
1034
1320
|
"aria-expanded": a,
|
|
1035
1321
|
"aria-controls": i,
|
|
1036
|
-
className:
|
|
1037
|
-
onClick: () =>
|
|
1038
|
-
children:
|
|
1039
|
-
}), /* @__PURE__ */
|
|
1322
|
+
className: S,
|
|
1323
|
+
onClick: () => ee(e.id),
|
|
1324
|
+
children: C
|
|
1325
|
+
}), /* @__PURE__ */ K("div", {
|
|
1040
1326
|
inert: !a,
|
|
1041
|
-
className:
|
|
1042
|
-
children: /* @__PURE__ */
|
|
1327
|
+
className: T("grid transition-[grid-template-rows] duration-200 ease-out motion-reduce:transition-none", a ? "grid-rows-[1fr]" : "grid-rows-[0fr]"),
|
|
1328
|
+
children: /* @__PURE__ */ K("div", {
|
|
1043
1329
|
className: "min-h-0 overflow-hidden",
|
|
1044
|
-
children: /* @__PURE__ */
|
|
1330
|
+
children: /* @__PURE__ */ q("div", {
|
|
1045
1331
|
id: i,
|
|
1046
1332
|
role: "region",
|
|
1047
1333
|
"aria-labelledby": t,
|
|
1048
1334
|
className: "flex min-w-0 flex-col items-start gap-1 ps-8 pe-3 pt-1 pb-2",
|
|
1049
|
-
children: [/* @__PURE__ */
|
|
1050
|
-
className:
|
|
1335
|
+
children: [/* @__PURE__ */ K("p", {
|
|
1336
|
+
className: T(g, Q.errorDetailsText, "max-w-full wrap-break-word whitespace-pre-wrap"),
|
|
1051
1337
|
children: r
|
|
1052
|
-
}), d && /* @__PURE__ */
|
|
1338
|
+
}), d && /* @__PURE__ */ K(N, {
|
|
1053
1339
|
label: v,
|
|
1054
1340
|
onClick: () => s?.(e)
|
|
1055
1341
|
})]
|
|
@@ -1058,124 +1344,124 @@ var Je = "1180px", Ye = {
|
|
|
1058
1344
|
})]
|
|
1059
1345
|
}, e.id);
|
|
1060
1346
|
}
|
|
1061
|
-
return f ? /* @__PURE__ */
|
|
1347
|
+
return f ? /* @__PURE__ */ K("li", { children: /* @__PURE__ */ K("button", {
|
|
1062
1348
|
type: "button",
|
|
1063
1349
|
"aria-label": u,
|
|
1064
1350
|
"aria-current": n ? "true" : void 0,
|
|
1065
|
-
className:
|
|
1351
|
+
className: T(x, S),
|
|
1066
1352
|
onClick: () => s?.(e),
|
|
1067
|
-
children:
|
|
1068
|
-
}) }, e.id) : /* @__PURE__ */
|
|
1353
|
+
children: C
|
|
1354
|
+
}) }, e.id) : /* @__PURE__ */ K("li", {
|
|
1069
1355
|
"aria-label": u,
|
|
1070
1356
|
"aria-current": n ? "true" : void 0,
|
|
1071
|
-
className:
|
|
1072
|
-
children:
|
|
1357
|
+
className: T(x, S),
|
|
1358
|
+
children: C
|
|
1073
1359
|
}, e.id);
|
|
1074
|
-
},
|
|
1360
|
+
}, te = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */ q("li", {
|
|
1075
1361
|
"aria-hidden": "true",
|
|
1076
1362
|
className: "-mx-(--strhl-row-bleed,0px) flex min-h-(--strhl-row-min-height,32px) items-center justify-between gap-2 px-3",
|
|
1077
|
-
children: [/* @__PURE__ */
|
|
1078
|
-
variant:
|
|
1363
|
+
children: [/* @__PURE__ */ K(Pe, {
|
|
1364
|
+
variant: z.Rectangular,
|
|
1079
1365
|
width: "160px",
|
|
1080
1366
|
height: "16px"
|
|
1081
|
-
}), /* @__PURE__ */
|
|
1082
|
-
variant:
|
|
1367
|
+
}), /* @__PURE__ */ K(Pe, {
|
|
1368
|
+
variant: z.Rectangular,
|
|
1083
1369
|
width: "16px",
|
|
1084
1370
|
height: "16px",
|
|
1085
1371
|
className: "shrink-0 rounded-full"
|
|
1086
1372
|
})]
|
|
1087
|
-
}, `history-skeleton-${t}`)),
|
|
1088
|
-
...
|
|
1373
|
+
}, `history-skeleton-${t}`)), E = {
|
|
1374
|
+
...S,
|
|
1089
1375
|
"--strhl-row-min-height": u?.rowMinHeight
|
|
1090
|
-
},
|
|
1091
|
-
return
|
|
1092
|
-
style:
|
|
1376
|
+
}, ne = !t && i != null && e.length === 0, re;
|
|
1377
|
+
return re = t && e.length === 0 ? /* @__PURE__ */ K("ul", {
|
|
1378
|
+
style: E,
|
|
1093
1379
|
"aria-label": c.historyTitle,
|
|
1094
1380
|
className: "flex flex-col gap-0.5",
|
|
1095
|
-
children:
|
|
1096
|
-
}) :
|
|
1097
|
-
style:
|
|
1381
|
+
children: te(r)
|
|
1382
|
+
}) : ne ? /* @__PURE__ */ q("div", {
|
|
1383
|
+
style: S,
|
|
1098
1384
|
className: "flex flex-col items-start gap-3",
|
|
1099
|
-
children: [/* @__PURE__ */
|
|
1385
|
+
children: [/* @__PURE__ */ K("p", {
|
|
1100
1386
|
"aria-hidden": !0,
|
|
1101
|
-
className:
|
|
1387
|
+
className: T(h, Q.subtitleText),
|
|
1102
1388
|
children: c.errorLabel
|
|
1103
|
-
}), /* @__PURE__ */
|
|
1389
|
+
}), /* @__PURE__ */ K(A, {
|
|
1104
1390
|
label: c.retryLabel,
|
|
1105
1391
|
onClick: a
|
|
1106
1392
|
})]
|
|
1107
|
-
}) : e.length === 0 ? /* @__PURE__ */
|
|
1108
|
-
style:
|
|
1393
|
+
}) : e.length === 0 ? /* @__PURE__ */ K("div", {
|
|
1394
|
+
style: S,
|
|
1109
1395
|
className: "w-full py-4",
|
|
1110
|
-
children: /* @__PURE__ */
|
|
1396
|
+
children: /* @__PURE__ */ K(L, {
|
|
1111
1397
|
title: c.emptyLabel,
|
|
1112
1398
|
description: c.emptyDescription,
|
|
1113
1399
|
live: !0
|
|
1114
1400
|
})
|
|
1115
|
-
}) : /* @__PURE__ */
|
|
1116
|
-
style:
|
|
1401
|
+
}) : /* @__PURE__ */ q("ul", {
|
|
1402
|
+
style: E,
|
|
1117
1403
|
"aria-label": c.historyTitle,
|
|
1118
1404
|
className: "flex flex-col gap-0.5",
|
|
1119
1405
|
children: [
|
|
1120
|
-
e.map(
|
|
1121
|
-
n &&
|
|
1122
|
-
i ? /* @__PURE__ */
|
|
1406
|
+
e.map(C),
|
|
1407
|
+
n && te(r),
|
|
1408
|
+
i ? /* @__PURE__ */ q("li", {
|
|
1123
1409
|
className: "flex flex-col items-start gap-3 px-5 py-2",
|
|
1124
|
-
children: [/* @__PURE__ */
|
|
1125
|
-
className:
|
|
1410
|
+
children: [/* @__PURE__ */ K("p", {
|
|
1411
|
+
className: T(h, Q.subtitleText),
|
|
1126
1412
|
children: c.errorLabel
|
|
1127
|
-
}), /* @__PURE__ */
|
|
1413
|
+
}), /* @__PURE__ */ K(A, {
|
|
1128
1414
|
label: c.retryLabel,
|
|
1129
1415
|
onClick: a
|
|
1130
1416
|
})]
|
|
1131
1417
|
}) : l
|
|
1132
1418
|
]
|
|
1133
|
-
}), /* @__PURE__ */
|
|
1134
|
-
|
|
1135
|
-
/* @__PURE__ */
|
|
1419
|
+
}), /* @__PURE__ */ q(G, { children: [
|
|
1420
|
+
re,
|
|
1421
|
+
/* @__PURE__ */ K(P, {
|
|
1136
1422
|
visuallyHidden: !0,
|
|
1137
1423
|
as: F.Span,
|
|
1138
|
-
children:
|
|
1424
|
+
children: ne ? c.errorLabel : ""
|
|
1139
1425
|
}),
|
|
1140
|
-
/* @__PURE__ */
|
|
1141
|
-
politeness:
|
|
1426
|
+
/* @__PURE__ */ K(P, {
|
|
1427
|
+
politeness: we.Assertive,
|
|
1142
1428
|
visuallyHidden: !0,
|
|
1143
1429
|
as: F.Span,
|
|
1144
1430
|
children: i && e.length > 0 ? c.errorLabel : ""
|
|
1145
1431
|
})
|
|
1146
1432
|
] });
|
|
1147
|
-
},
|
|
1433
|
+
}, an = {
|
|
1148
1434
|
historyCard: "_historyCard_153p9_4",
|
|
1149
1435
|
subtitleText: "_subtitleText_153p9_8",
|
|
1150
1436
|
cardLayout: "_cardLayout_153p9_13"
|
|
1151
|
-
},
|
|
1152
|
-
let
|
|
1153
|
-
className:
|
|
1154
|
-
children: [/* @__PURE__ */
|
|
1437
|
+
}, on = ({ 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", errorDetailsClassName: g = "dial-tiny-text", sectionTitleClassName: _ = "dial-body-semi-text", colors: v, styles: y }) => {
|
|
1438
|
+
let b = e === Yt.Card, x = b ? T("sticky bottom-0 z-10 rounded-b-xl px-6 pb-5 pt-2", an.historyCard) : "pt-2", ee = t.historyLoadMoreErrorLabel ?? t.historyErrorLabel, S = l ? /* @__PURE__ */ q("li", {
|
|
1439
|
+
className: x,
|
|
1440
|
+
children: [/* @__PURE__ */ K("p", { children: ee }), u && /* @__PURE__ */ K(A, {
|
|
1155
1441
|
label: t.historyRetryLabel,
|
|
1156
1442
|
onClick: u,
|
|
1157
1443
|
disabled: a
|
|
1158
1444
|
})]
|
|
1159
|
-
}) : f && d && t.historyShowMoreLabel ? /* @__PURE__ */
|
|
1160
|
-
className:
|
|
1161
|
-
children: /* @__PURE__ */
|
|
1445
|
+
}) : f && d && t.historyShowMoreLabel ? /* @__PURE__ */ K("li", {
|
|
1446
|
+
className: x,
|
|
1447
|
+
children: /* @__PURE__ */ K(A, {
|
|
1162
1448
|
label: t.historyShowMoreLabel,
|
|
1163
1449
|
onClick: f,
|
|
1164
1450
|
disabled: a
|
|
1165
1451
|
})
|
|
1166
|
-
}) : void 0,
|
|
1167
|
-
className:
|
|
1452
|
+
}) : void 0, C = n ? /* @__PURE__ */ K("p", {
|
|
1453
|
+
className: T(m, an.subtitleText),
|
|
1168
1454
|
children: n
|
|
1169
|
-
}) : void 0,
|
|
1170
|
-
politeness:
|
|
1455
|
+
}) : void 0, w = /* @__PURE__ */ K(P, {
|
|
1456
|
+
politeness: we.Assertive,
|
|
1171
1457
|
visuallyHidden: !0,
|
|
1172
1458
|
as: F.Span,
|
|
1173
|
-
children: l ?
|
|
1174
|
-
}),
|
|
1459
|
+
children: l ? ee : ""
|
|
1460
|
+
}), te = t.historyLoadingMoreLabel ? /* @__PURE__ */ K(P, {
|
|
1175
1461
|
visuallyHidden: !0,
|
|
1176
1462
|
as: F.Span,
|
|
1177
1463
|
children: a ? t.historyLoadingMoreLabel : ""
|
|
1178
|
-
}) : void 0,
|
|
1464
|
+
}) : void 0, E = /* @__PURE__ */ K(rn, {
|
|
1179
1465
|
items: r,
|
|
1180
1466
|
isLoading: i,
|
|
1181
1467
|
isLoadingMore: a,
|
|
@@ -1193,7 +1479,7 @@ var Je = "1180px", Ye = {
|
|
|
1193
1479
|
unreadIndicatorLabel: t.unreadIndicatorLabel,
|
|
1194
1480
|
openConversationLabel: t.openConversationLabel
|
|
1195
1481
|
},
|
|
1196
|
-
footer:
|
|
1482
|
+
footer: S,
|
|
1197
1483
|
styles: {
|
|
1198
1484
|
typography: {
|
|
1199
1485
|
runTimestampClassName: m,
|
|
@@ -1208,32 +1494,32 @@ var Je = "1180px", Ye = {
|
|
|
1208
1494
|
rowExpandedBackground: y?.rowExpandedBackground
|
|
1209
1495
|
}
|
|
1210
1496
|
});
|
|
1211
|
-
return
|
|
1212
|
-
className:
|
|
1497
|
+
return b ? /* @__PURE__ */ q("div", {
|
|
1498
|
+
className: T("flex max-h-(--st-history-max-height,70vh) w-full max-w-full flex-col overflow-y-auto rounded-xl shadow-md", an.historyCard, an.cardLayout),
|
|
1213
1499
|
style: { "--st-history-max-height": y?.maxHeight },
|
|
1214
|
-
children: [/* @__PURE__ */
|
|
1215
|
-
className:
|
|
1500
|
+
children: [/* @__PURE__ */ q("div", {
|
|
1501
|
+
className: T("sticky top-0 z-10 flex flex-col gap-4 rounded-t-xl px-6 pt-5 pb-2", an.historyCard),
|
|
1216
1502
|
children: [
|
|
1217
|
-
/* @__PURE__ */
|
|
1503
|
+
/* @__PURE__ */ K("h2", {
|
|
1218
1504
|
className: _,
|
|
1219
1505
|
children: t.historyTitle
|
|
1220
1506
|
}),
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1507
|
+
C,
|
|
1508
|
+
te,
|
|
1509
|
+
w
|
|
1224
1510
|
]
|
|
1225
|
-
}), /* @__PURE__ */
|
|
1511
|
+
}), /* @__PURE__ */ K("div", {
|
|
1226
1512
|
className: "flex flex-1 flex-col gap-4 px-6 pb-2",
|
|
1227
1513
|
style: { "--strhl-row-bleed": "12px" },
|
|
1228
|
-
children:
|
|
1514
|
+
children: E
|
|
1229
1515
|
})]
|
|
1230
|
-
}) : /* @__PURE__ */
|
|
1516
|
+
}) : /* @__PURE__ */ q("div", {
|
|
1231
1517
|
className: "flex flex-col gap-4",
|
|
1232
1518
|
children: [
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1519
|
+
C,
|
|
1520
|
+
te,
|
|
1521
|
+
w,
|
|
1522
|
+
E
|
|
1237
1523
|
]
|
|
1238
1524
|
});
|
|
1239
1525
|
}, $ = {
|
|
@@ -1249,28 +1535,28 @@ var Je = "1180px", Ye = {
|
|
|
1249
1535
|
actionButton: "_actionButton_hdn5b_75",
|
|
1250
1536
|
roundActionButton: "_roundActionButton_hdn5b_82",
|
|
1251
1537
|
stickyTabs: "_stickyTabs_hdn5b_88"
|
|
1252
|
-
},
|
|
1253
|
-
let { colors:
|
|
1254
|
-
"--stdv-bg":
|
|
1255
|
-
"--stdv-header-border":
|
|
1256
|
-
"--stdv-details-border":
|
|
1257
|
-
"--stdv-subtitle-text":
|
|
1258
|
-
"--stdv-description-text":
|
|
1259
|
-
"--stdv-history-bg":
|
|
1260
|
-
}), ke =
|
|
1538
|
+
}, sn = "min-w-0 max-w-[600px]", cn = ({ 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: v, onRetry: y, description: b, modelLabel: x, renderModelName: ee, repeatsLabel: S, activeWindowLabel: C, completedLabel: te, nextRunLabel: E, instructionsMarkdown: re, skillDisplayNames: ie, renderSkillName: ae, renderInstructions: oe, runs: se, runsIsLoading: ce = !1, runsIsLoadingMore: le = !1, runsSkeletonCount: ue = 6, runsError: fe, onRunsRetry: pe, runsLoadMoreError: me, onRunsRetryLoadMore: he, runsHasMore: ge = !1, onRunsLoadMore: _e, onRunClick: ve, styles: be, className: k, backIcon: xe, layout: j, historyStyles: Ce }) => {
|
|
1539
|
+
let { colors: M, typography: N } = be ?? {}, we = N?.titleClassName ?? "dial-h2-text", I = N?.sectionTitleClassName ?? "dial-body-semi-text", Te = N?.fieldLabelClassName ?? "dial-tiny-text", L = N?.fieldValueClassName ?? "dial-small-text", De = N?.runTimestampClassName ?? "dial-small-text", Oe = w({
|
|
1540
|
+
"--stdv-bg": M?.background,
|
|
1541
|
+
"--stdv-header-border": M?.headerBorder,
|
|
1542
|
+
"--stdv-details-border": M?.detailsColumnBorder,
|
|
1543
|
+
"--stdv-subtitle-text": M?.subtitleText,
|
|
1544
|
+
"--stdv-description-text": M?.descriptionText,
|
|
1545
|
+
"--stdv-history-bg": M?.historyCardBackground
|
|
1546
|
+
}), ke = ne(), [R, Ae] = W(Jt.Details), je = H(), Me = o && !i ? e.startNowBusyLabel : void 0, Ne = [
|
|
1261
1547
|
{
|
|
1262
|
-
id:
|
|
1548
|
+
id: Jt.Details,
|
|
1263
1549
|
label: e.detailsTitle
|
|
1264
1550
|
},
|
|
1265
1551
|
{
|
|
1266
|
-
id:
|
|
1552
|
+
id: Jt.Configuration,
|
|
1267
1553
|
label: e.configurationTitle
|
|
1268
1554
|
},
|
|
1269
1555
|
{
|
|
1270
|
-
id:
|
|
1556
|
+
id: Jt.History,
|
|
1271
1557
|
label: e.historyTitle
|
|
1272
1558
|
}
|
|
1273
|
-
], Pe =
|
|
1559
|
+
], Pe = Ne.find((e) => e.id === R)?.label ?? e.detailsTitle, z = /* @__PURE__ */ K(en, {
|
|
1274
1560
|
labels: {
|
|
1275
1561
|
descriptionLabel: e.descriptionLabel,
|
|
1276
1562
|
modelLabel: e.modelLabel,
|
|
@@ -1278,21 +1564,21 @@ var Je = "1180px", Ye = {
|
|
|
1278
1564
|
activeWindowLabel: e.activeWindowLabel,
|
|
1279
1565
|
completedFieldLabel: e.completedFieldLabel
|
|
1280
1566
|
},
|
|
1281
|
-
description:
|
|
1282
|
-
modelLabel:
|
|
1283
|
-
renderModelName:
|
|
1284
|
-
repeatsLabel:
|
|
1285
|
-
activeWindowLabel:
|
|
1286
|
-
completedLabel:
|
|
1287
|
-
fieldLabelClassName:
|
|
1288
|
-
fieldValueClassName:
|
|
1289
|
-
}), Re = /* @__PURE__ */
|
|
1567
|
+
description: b,
|
|
1568
|
+
modelLabel: x,
|
|
1569
|
+
renderModelName: ee,
|
|
1570
|
+
repeatsLabel: S,
|
|
1571
|
+
activeWindowLabel: C,
|
|
1572
|
+
completedLabel: te,
|
|
1573
|
+
fieldLabelClassName: Te,
|
|
1574
|
+
fieldValueClassName: L
|
|
1575
|
+
}), Re = /* @__PURE__ */ K(Qt, {
|
|
1290
1576
|
instructionsLabel: e.instructionsLabel,
|
|
1291
1577
|
skillLabel: e.skillLabel,
|
|
1292
|
-
skillDisplayNames:
|
|
1293
|
-
renderSkillName:
|
|
1578
|
+
skillDisplayNames: ie,
|
|
1579
|
+
renderSkillName: ae,
|
|
1294
1580
|
instructionsMarkdown: re,
|
|
1295
|
-
renderInstructions:
|
|
1581
|
+
renderInstructions: oe,
|
|
1296
1582
|
markdownLabels: {
|
|
1297
1583
|
codeBlockCopyLabel: e.codeBlockCopyLabel,
|
|
1298
1584
|
codeBlockCopiedLabel: e.codeBlockCopiedLabel,
|
|
@@ -1300,8 +1586,8 @@ var Je = "1180px", Ye = {
|
|
|
1300
1586
|
tableScrollRegionAriaLabel: e.tableScrollRegionAriaLabel,
|
|
1301
1587
|
mathScrollRegionAriaLabel: e.mathScrollRegionAriaLabel
|
|
1302
1588
|
},
|
|
1303
|
-
fieldLabelClassName:
|
|
1304
|
-
}),
|
|
1589
|
+
fieldLabelClassName: Te
|
|
1590
|
+
}), ze = (t) => /* @__PURE__ */ K(on, {
|
|
1305
1591
|
variant: t,
|
|
1306
1592
|
labels: {
|
|
1307
1593
|
historyTitle: e.historyTitle,
|
|
@@ -1316,217 +1602,217 @@ var Je = "1180px", Ye = {
|
|
|
1316
1602
|
unreadIndicatorLabel: e.unreadIndicatorLabel,
|
|
1317
1603
|
openConversationLabel: e.openConversationLabel
|
|
1318
1604
|
},
|
|
1319
|
-
nextRunLabel:
|
|
1320
|
-
items:
|
|
1605
|
+
nextRunLabel: E,
|
|
1606
|
+
items: se,
|
|
1321
1607
|
isLoading: ce,
|
|
1322
|
-
isLoadingMore:
|
|
1323
|
-
skeletonCount:
|
|
1324
|
-
error:
|
|
1325
|
-
onRetry:
|
|
1326
|
-
loadMoreError:
|
|
1327
|
-
onRetryLoadMore:
|
|
1328
|
-
hasMore:
|
|
1329
|
-
onLoadMore:
|
|
1330
|
-
onRunClick:
|
|
1331
|
-
runTimestampClassName:
|
|
1332
|
-
sectionTitleClassName:
|
|
1333
|
-
colors:
|
|
1334
|
-
styles:
|
|
1608
|
+
isLoadingMore: le,
|
|
1609
|
+
skeletonCount: ue,
|
|
1610
|
+
error: fe,
|
|
1611
|
+
onRetry: pe,
|
|
1612
|
+
loadMoreError: me,
|
|
1613
|
+
onRetryLoadMore: he,
|
|
1614
|
+
hasMore: ge,
|
|
1615
|
+
onLoadMore: _e,
|
|
1616
|
+
onRunClick: ve,
|
|
1617
|
+
runTimestampClassName: De,
|
|
1618
|
+
sectionTitleClassName: I,
|
|
1619
|
+
colors: M,
|
|
1620
|
+
styles: Ce
|
|
1335
1621
|
});
|
|
1336
|
-
return /* @__PURE__ */
|
|
1337
|
-
style:
|
|
1338
|
-
className:
|
|
1622
|
+
return /* @__PURE__ */ q("div", {
|
|
1623
|
+
style: Oe,
|
|
1624
|
+
className: T("flex h-full min-h-0 w-full flex-col overflow-hidden", $.container, k),
|
|
1339
1625
|
children: [
|
|
1340
|
-
/* @__PURE__ */
|
|
1341
|
-
className:
|
|
1342
|
-
children: [/* @__PURE__ */
|
|
1626
|
+
/* @__PURE__ */ q("div", {
|
|
1627
|
+
className: T("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),
|
|
1628
|
+
children: [/* @__PURE__ */ q("div", {
|
|
1343
1629
|
className: "flex min-w-0 items-center gap-2",
|
|
1344
1630
|
children: [
|
|
1345
|
-
/* @__PURE__ */
|
|
1346
|
-
icon:
|
|
1347
|
-
size:
|
|
1631
|
+
/* @__PURE__ */ K(Se, {
|
|
1632
|
+
icon: xe === void 0 ? /* @__PURE__ */ K(Ve, {
|
|
1633
|
+
size: D.LG,
|
|
1348
1634
|
className: "rtl:scale-x-[-1]",
|
|
1349
1635
|
"aria-hidden": !0,
|
|
1350
|
-
stroke:
|
|
1351
|
-
}) :
|
|
1636
|
+
stroke: O
|
|
1637
|
+
}) : xe,
|
|
1352
1638
|
"aria-label": e.backAriaLabel,
|
|
1353
1639
|
onClick: t
|
|
1354
1640
|
}),
|
|
1355
|
-
/* @__PURE__ */
|
|
1356
|
-
className:
|
|
1357
|
-
children: /* @__PURE__ */
|
|
1641
|
+
/* @__PURE__ */ K("h1", {
|
|
1642
|
+
className: T(sn, $.desktopTitle),
|
|
1643
|
+
children: /* @__PURE__ */ K(ye, {
|
|
1358
1644
|
text: g,
|
|
1359
|
-
className:
|
|
1645
|
+
className: we
|
|
1360
1646
|
})
|
|
1361
1647
|
}),
|
|
1362
|
-
l && /* @__PURE__ */
|
|
1363
|
-
className:
|
|
1648
|
+
l && /* @__PURE__ */ K("span", {
|
|
1649
|
+
className: T("shrink-0", $.desktopBadge, L, $.subtitleText),
|
|
1364
1650
|
children: e.deletedStateLabel
|
|
1365
1651
|
})
|
|
1366
1652
|
]
|
|
1367
|
-
}), /* @__PURE__ */
|
|
1368
|
-
className:
|
|
1653
|
+
}), /* @__PURE__ */ q("div", {
|
|
1654
|
+
className: T("flex min-w-0 flex-1 flex-wrap items-center justify-end gap-2 desktop:flex-none desktop:flex-nowrap", $.headerActions),
|
|
1369
1655
|
children: [
|
|
1370
|
-
!l && !u && d !== void 0 && /* @__PURE__ */
|
|
1656
|
+
!l && !u && d !== void 0 && /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(Ie, {
|
|
1371
1657
|
id: "scheduled-task-active-switch",
|
|
1372
1658
|
labelProps: { label: e.activeStatusLabel },
|
|
1373
1659
|
isOn: d,
|
|
1374
1660
|
disabled: f || p || c,
|
|
1375
1661
|
onChange: (e) => h?.(e)
|
|
1376
|
-
}), p && m && /* @__PURE__ */
|
|
1377
|
-
className:
|
|
1662
|
+
}), p && m && /* @__PURE__ */ K("span", {
|
|
1663
|
+
className: T(L, $.subtitleText),
|
|
1378
1664
|
children: m
|
|
1379
1665
|
})] }),
|
|
1380
|
-
!l && s && /* @__PURE__ */
|
|
1381
|
-
variant:
|
|
1666
|
+
!l && s && /* @__PURE__ */ K(A, {
|
|
1667
|
+
variant: de.Danger,
|
|
1382
1668
|
label: e.deleteButtonLabel,
|
|
1383
|
-
iconBefore: /* @__PURE__ */
|
|
1384
|
-
size:
|
|
1669
|
+
iconBefore: /* @__PURE__ */ K(Xe, {
|
|
1670
|
+
size: D.SM,
|
|
1385
1671
|
"aria-hidden": !0,
|
|
1386
|
-
stroke:
|
|
1672
|
+
stroke: O
|
|
1387
1673
|
}),
|
|
1388
1674
|
onClick: s,
|
|
1389
1675
|
disabled: c,
|
|
1390
1676
|
textClassName: $.actionLabel,
|
|
1391
|
-
className:
|
|
1677
|
+
className: T("min-h-11 shrink-0", $.actionButton)
|
|
1392
1678
|
}),
|
|
1393
|
-
!l && n && /* @__PURE__ */
|
|
1679
|
+
!l && n && /* @__PURE__ */ K(Ee, {
|
|
1394
1680
|
label: e.editButtonLabel,
|
|
1395
|
-
iconBefore: /* @__PURE__ */
|
|
1396
|
-
size:
|
|
1681
|
+
iconBefore: /* @__PURE__ */ K(qe, {
|
|
1682
|
+
size: D.SM,
|
|
1397
1683
|
"aria-hidden": !0,
|
|
1398
|
-
stroke:
|
|
1684
|
+
stroke: O
|
|
1399
1685
|
}),
|
|
1400
1686
|
onClick: n,
|
|
1401
1687
|
disabled: c,
|
|
1402
1688
|
textClassName: $.actionLabel,
|
|
1403
|
-
className:
|
|
1689
|
+
className: T("min-h-11 shrink-0", $.actionButton, $.roundActionButton)
|
|
1404
1690
|
}),
|
|
1405
|
-
!l && r && e.startNowButtonLabel && /* @__PURE__ */
|
|
1691
|
+
!l && r && e.startNowButtonLabel && /* @__PURE__ */ q("div", {
|
|
1406
1692
|
"aria-busy": i,
|
|
1407
|
-
children: [
|
|
1408
|
-
id:
|
|
1693
|
+
children: [Me && /* @__PURE__ */ K("span", {
|
|
1694
|
+
id: je,
|
|
1409
1695
|
className: "sr-only",
|
|
1410
|
-
children:
|
|
1411
|
-
}), /* @__PURE__ */
|
|
1696
|
+
children: Me
|
|
1697
|
+
}), /* @__PURE__ */ K(Ee, {
|
|
1412
1698
|
label: i ? e.startingLabel ?? e.startNowButtonLabel : e.startNowButtonLabel,
|
|
1413
|
-
iconBefore: /* @__PURE__ */
|
|
1414
|
-
size:
|
|
1699
|
+
iconBefore: /* @__PURE__ */ K(V, {
|
|
1700
|
+
size: D.SM,
|
|
1415
1701
|
"aria-hidden": !0,
|
|
1416
|
-
stroke:
|
|
1702
|
+
stroke: O
|
|
1417
1703
|
}),
|
|
1418
1704
|
onClick: r,
|
|
1419
1705
|
disabled: c || i || a || o,
|
|
1420
|
-
"aria-describedby":
|
|
1421
|
-
tooltipProps:
|
|
1706
|
+
"aria-describedby": Me ? je : void 0,
|
|
1707
|
+
tooltipProps: Me ? { tooltip: Me } : void 0,
|
|
1422
1708
|
textClassName: $.actionLabel,
|
|
1423
|
-
className:
|
|
1709
|
+
className: T("min-h-11 shrink-0", $.actionButton, $.roundActionButton)
|
|
1424
1710
|
})]
|
|
1425
1711
|
})
|
|
1426
1712
|
]
|
|
1427
1713
|
})]
|
|
1428
1714
|
}),
|
|
1429
|
-
/* @__PURE__ */
|
|
1430
|
-
className:
|
|
1431
|
-
children: [/* @__PURE__ */
|
|
1432
|
-
className:
|
|
1433
|
-
children: /* @__PURE__ */
|
|
1715
|
+
/* @__PURE__ */ q("div", {
|
|
1716
|
+
className: T("min-w-0 items-center gap-2 px-4 py-3", $.mobileTitleRow),
|
|
1717
|
+
children: [/* @__PURE__ */ K("h1", {
|
|
1718
|
+
className: sn,
|
|
1719
|
+
children: /* @__PURE__ */ K(ye, {
|
|
1434
1720
|
text: g,
|
|
1435
|
-
className:
|
|
1721
|
+
className: we
|
|
1436
1722
|
})
|
|
1437
|
-
}), l && /* @__PURE__ */
|
|
1438
|
-
className:
|
|
1723
|
+
}), l && /* @__PURE__ */ K("span", {
|
|
1724
|
+
className: T("shrink-0", L, $.subtitleText),
|
|
1439
1725
|
children: e.deletedStateLabel
|
|
1440
1726
|
})]
|
|
1441
1727
|
}),
|
|
1442
|
-
e.activeStatusAnnouncement != null && /* @__PURE__ */
|
|
1728
|
+
e.activeStatusAnnouncement != null && /* @__PURE__ */ K(P, {
|
|
1443
1729
|
visuallyHidden: !0,
|
|
1444
1730
|
as: F.Span,
|
|
1445
1731
|
children: e.activeStatusAnnouncement
|
|
1446
1732
|
}),
|
|
1447
|
-
e.startStatusAnnouncement != null && /* @__PURE__ */
|
|
1733
|
+
e.startStatusAnnouncement != null && /* @__PURE__ */ K(P, {
|
|
1448
1734
|
visuallyHidden: !0,
|
|
1449
1735
|
as: F.Span,
|
|
1450
1736
|
children: e.startStatusAnnouncement
|
|
1451
1737
|
}),
|
|
1452
|
-
_ && /* @__PURE__ */
|
|
1738
|
+
_ && /* @__PURE__ */ K("div", {
|
|
1453
1739
|
className: "flex flex-1 items-center justify-center",
|
|
1454
|
-
children: /* @__PURE__ */
|
|
1740
|
+
children: /* @__PURE__ */ K(Fe, { ariaLabel: e.loadingAriaLabel ?? "Loading scheduled task" })
|
|
1455
1741
|
}),
|
|
1456
|
-
!_ && v && /* @__PURE__ */
|
|
1742
|
+
!_ && v && /* @__PURE__ */ q("div", {
|
|
1457
1743
|
className: "flex flex-1 flex-col items-center justify-center gap-3",
|
|
1458
|
-
children: [/* @__PURE__ */
|
|
1459
|
-
className:
|
|
1744
|
+
children: [/* @__PURE__ */ K("p", {
|
|
1745
|
+
className: T(L, $.subtitleText),
|
|
1460
1746
|
children: e.errorLabel
|
|
1461
|
-
}), /* @__PURE__ */
|
|
1747
|
+
}), /* @__PURE__ */ K(A, {
|
|
1462
1748
|
label: e.retryLabel,
|
|
1463
|
-
onClick:
|
|
1749
|
+
onClick: y
|
|
1464
1750
|
})]
|
|
1465
1751
|
}),
|
|
1466
|
-
!_ && !v && (ke ? /* @__PURE__ */
|
|
1752
|
+
!_ && !v && (ke ? /* @__PURE__ */ q("div", {
|
|
1467
1753
|
className: "flex min-h-0 flex-1 flex-col overflow-y-auto",
|
|
1468
|
-
children: [/* @__PURE__ */
|
|
1469
|
-
className:
|
|
1470
|
-
children: /* @__PURE__ */
|
|
1754
|
+
children: [/* @__PURE__ */ K("div", {
|
|
1755
|
+
className: T("sticky top-0 z-10", $.stickyTabs),
|
|
1756
|
+
children: /* @__PURE__ */ K(Le, {
|
|
1471
1757
|
ariaLabel: e.tabsAriaLabel ?? "Scheduled task sections",
|
|
1472
1758
|
className: "px-4",
|
|
1473
|
-
tabs:
|
|
1474
|
-
activeTabId:
|
|
1475
|
-
onTabChange:
|
|
1759
|
+
tabs: Ne,
|
|
1760
|
+
activeTabId: R,
|
|
1761
|
+
onTabChange: Ae
|
|
1476
1762
|
})
|
|
1477
|
-
}), /* @__PURE__ */
|
|
1763
|
+
}), /* @__PURE__ */ K("div", {
|
|
1478
1764
|
role: "tabpanel",
|
|
1479
1765
|
"aria-label": Pe,
|
|
1480
1766
|
className: "flex flex-1 flex-col gap-5 px-4 py-6",
|
|
1481
|
-
children:
|
|
1767
|
+
children: R === Jt.Configuration ? Re : R === Jt.History ? ze(Yt.Flow) : z
|
|
1482
1768
|
})]
|
|
1483
|
-
}) : /* @__PURE__ */
|
|
1769
|
+
}) : /* @__PURE__ */ q("div", {
|
|
1484
1770
|
style: {
|
|
1485
1771
|
flexDirection: "row",
|
|
1486
|
-
"--st-details-width":
|
|
1487
|
-
"--st-history-width":
|
|
1488
|
-
"--st-history-max-height":
|
|
1489
|
-
"--st-configuration-min-width":
|
|
1772
|
+
"--st-details-width": j?.detailsWidth,
|
|
1773
|
+
"--st-history-width": j?.historyWidth,
|
|
1774
|
+
"--st-history-max-height": j?.historyMaxHeight,
|
|
1775
|
+
"--st-configuration-min-width": j?.configurationMinWidth
|
|
1490
1776
|
},
|
|
1491
1777
|
className: "flex min-h-0 flex-1 overflow-y-auto desktop:overflow-hidden",
|
|
1492
1778
|
children: [
|
|
1493
|
-
/* @__PURE__ */
|
|
1779
|
+
/* @__PURE__ */ q("div", {
|
|
1494
1780
|
role: "group",
|
|
1495
1781
|
"aria-label": e.detailsTitle,
|
|
1496
1782
|
style: {
|
|
1497
|
-
flex: `0 1 ${
|
|
1783
|
+
flex: `0 1 ${j?.detailsWidth ?? "360px"}`,
|
|
1498
1784
|
maxWidth: "100%"
|
|
1499
1785
|
},
|
|
1500
|
-
className:
|
|
1501
|
-
children: [/* @__PURE__ */
|
|
1502
|
-
className:
|
|
1786
|
+
className: T("flex min-h-0 w-full min-w-0 flex-col gap-5 overflow-y-auto border-e px-8 py-6", $.detailsColumn),
|
|
1787
|
+
children: [/* @__PURE__ */ K("h2", {
|
|
1788
|
+
className: I,
|
|
1503
1789
|
children: e.detailsTitle
|
|
1504
|
-
}),
|
|
1790
|
+
}), z]
|
|
1505
1791
|
}),
|
|
1506
|
-
/* @__PURE__ */
|
|
1792
|
+
/* @__PURE__ */ q("div", {
|
|
1507
1793
|
style: {
|
|
1508
|
-
flex: `1 1 ${
|
|
1794
|
+
flex: `1 1 ${j?.configurationMinWidth ?? "320px"}`,
|
|
1509
1795
|
minWidth: 0
|
|
1510
1796
|
},
|
|
1511
1797
|
className: "flex min-h-0 w-full min-w-0 flex-col gap-5 overflow-y-auto px-8 py-6",
|
|
1512
|
-
children: [/* @__PURE__ */
|
|
1513
|
-
className:
|
|
1798
|
+
children: [/* @__PURE__ */ K("h2", {
|
|
1799
|
+
className: I,
|
|
1514
1800
|
children: e.configurationTitle
|
|
1515
1801
|
}), Re]
|
|
1516
1802
|
}),
|
|
1517
|
-
/* @__PURE__ */
|
|
1803
|
+
/* @__PURE__ */ K("div", {
|
|
1518
1804
|
style: {
|
|
1519
|
-
flex: `0 1 calc(${
|
|
1805
|
+
flex: `0 1 calc(${j?.historyWidth ?? "360px"} + 48px)`,
|
|
1520
1806
|
minWidth: 0
|
|
1521
1807
|
},
|
|
1522
1808
|
className: "flex min-h-0 w-full items-start justify-center overflow-y-auto p-6",
|
|
1523
|
-
children:
|
|
1809
|
+
children: ze(Yt.Card)
|
|
1524
1810
|
})
|
|
1525
1811
|
]
|
|
1526
1812
|
}))
|
|
1527
1813
|
]
|
|
1528
1814
|
});
|
|
1529
|
-
},
|
|
1815
|
+
}, ln = { fieldLabel: "_fieldLabel_8nxg8_1" }, un = {
|
|
1530
1816
|
h1: "mb-3 mt-6 first:mt-0 [text-wrap:balance]",
|
|
1531
1817
|
h2: "mb-2 mt-5 first:mt-0 [text-wrap:balance]",
|
|
1532
1818
|
h3: "mb-2 mt-4 first:mt-0 [text-wrap:balance]",
|
|
@@ -1541,98 +1827,98 @@ var Je = "1180px", Ye = {
|
|
|
1541
1827
|
link: "break-words [overflow-wrap:anywhere]",
|
|
1542
1828
|
tableWrapper: "my-4",
|
|
1543
1829
|
mathBlock: "my-4"
|
|
1544
|
-
},
|
|
1545
|
-
let f =
|
|
1546
|
-
let e =
|
|
1830
|
+
}, dn = ({ modelLabel: e, renderModelName: t, skillLabel: n, skillDisplayNames: r, renderSkillName: i, instructionsLabel: a, modelDisplayName: o, instructionsMarkdown: s, renderInstructions: c, instructionsClassNames: l, markdownLabels: u, styles: d }) => {
|
|
1831
|
+
let f = T(d?.typography?.fieldLabelClassName ?? "dial-tiny-text", ln.fieldLabel), p = d?.typography?.fieldValueClassName ?? "dial-small-text", m = d?.typography?.instructionsHeadingClassName ?? "dial-small-semi-text", h = d?.typography?.instructionsTextClassName ?? "dial-small-text", g = U(() => {
|
|
1832
|
+
let e = un;
|
|
1547
1833
|
return {
|
|
1548
1834
|
...e,
|
|
1549
|
-
h1:
|
|
1550
|
-
h2:
|
|
1551
|
-
h3:
|
|
1552
|
-
h4:
|
|
1553
|
-
h5:
|
|
1554
|
-
h6:
|
|
1555
|
-
p:
|
|
1556
|
-
ul:
|
|
1557
|
-
ol:
|
|
1835
|
+
h1: T(m, e.h1),
|
|
1836
|
+
h2: T(m, e.h2),
|
|
1837
|
+
h3: T(m, e.h3),
|
|
1838
|
+
h4: T(m, e.h4),
|
|
1839
|
+
h5: T(m, e.h5),
|
|
1840
|
+
h6: T(m, e.h6),
|
|
1841
|
+
p: T(h, e.p),
|
|
1842
|
+
ul: T(h, e.ul),
|
|
1843
|
+
ol: T(h, e.ol),
|
|
1558
1844
|
...l
|
|
1559
1845
|
};
|
|
1560
1846
|
}, [
|
|
1561
1847
|
m,
|
|
1562
|
-
|
|
1848
|
+
h,
|
|
1563
1849
|
l
|
|
1564
|
-
]),
|
|
1565
|
-
return /* @__PURE__ */
|
|
1850
|
+
]), _ = w({ "--stds-field-label": d?.colors?.fieldLabel });
|
|
1851
|
+
return /* @__PURE__ */ q("div", {
|
|
1566
1852
|
className: "flex flex-col gap-3",
|
|
1567
|
-
style:
|
|
1853
|
+
style: _,
|
|
1568
1854
|
children: [
|
|
1569
|
-
o && /* @__PURE__ */
|
|
1855
|
+
o && /* @__PURE__ */ q("div", {
|
|
1570
1856
|
className: "flex flex-col gap-2",
|
|
1571
|
-
children: [/* @__PURE__ */
|
|
1857
|
+
children: [/* @__PURE__ */ K("span", {
|
|
1572
1858
|
className: f,
|
|
1573
1859
|
children: e
|
|
1574
|
-
}), /* @__PURE__ */
|
|
1860
|
+
}), /* @__PURE__ */ K("p", {
|
|
1575
1861
|
className: p,
|
|
1576
1862
|
children: t ? t(o) : o
|
|
1577
1863
|
})]
|
|
1578
1864
|
}),
|
|
1579
|
-
!!r?.length && /* @__PURE__ */
|
|
1865
|
+
!!r?.length && /* @__PURE__ */ q("div", {
|
|
1580
1866
|
className: "flex min-w-0 flex-col gap-2",
|
|
1581
|
-
children: [/* @__PURE__ */
|
|
1867
|
+
children: [/* @__PURE__ */ K("span", {
|
|
1582
1868
|
className: f,
|
|
1583
1869
|
children: n
|
|
1584
|
-
}), /* @__PURE__ */
|
|
1585
|
-
className:
|
|
1586
|
-
children: r?.map((e, t) => /* @__PURE__ */
|
|
1870
|
+
}), /* @__PURE__ */ K("p", {
|
|
1871
|
+
className: T(p, "wrap-anywhere whitespace-normal"),
|
|
1872
|
+
children: r?.map((e, t) => /* @__PURE__ */ K("span", {
|
|
1587
1873
|
className: "block",
|
|
1588
1874
|
children: i ? i(e, t) : e
|
|
1589
1875
|
}, `${t}:${e}`))
|
|
1590
1876
|
})]
|
|
1591
1877
|
}),
|
|
1592
|
-
s && /* @__PURE__ */
|
|
1878
|
+
s && /* @__PURE__ */ q("div", {
|
|
1593
1879
|
className: "flex flex-col gap-2",
|
|
1594
|
-
children: [/* @__PURE__ */
|
|
1880
|
+
children: [/* @__PURE__ */ K("span", {
|
|
1595
1881
|
className: f,
|
|
1596
1882
|
children: a
|
|
1597
|
-
}), ((e) => c ? c(e) : /* @__PURE__ */
|
|
1883
|
+
}), ((e) => c ? c(e) : /* @__PURE__ */ K(x, {
|
|
1598
1884
|
content: e,
|
|
1599
|
-
classNames:
|
|
1885
|
+
classNames: g,
|
|
1600
1886
|
...u
|
|
1601
1887
|
}))(s)]
|
|
1602
1888
|
})
|
|
1603
1889
|
]
|
|
1604
1890
|
});
|
|
1605
|
-
},
|
|
1606
|
-
className:
|
|
1891
|
+
}, fn = ({ className: e, children: t }) => /* @__PURE__ */ K("span", {
|
|
1892
|
+
className: T(e, "block truncate py-1"),
|
|
1607
1893
|
children: t
|
|
1608
|
-
}),
|
|
1609
|
-
let [_, v] =
|
|
1610
|
-
|
|
1894
|
+
}), pn = { unavailableText: "_unavailableText_1ifqz_1" }, mn = ({ 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 }) => {
|
|
1895
|
+
let [_, v] = W(!0);
|
|
1896
|
+
tt(() => {
|
|
1611
1897
|
v(!0);
|
|
1612
1898
|
}, [e]);
|
|
1613
|
-
let
|
|
1899
|
+
let y = c && !n && l && f.showMoreLabel ? /* @__PURE__ */ K("li", {
|
|
1614
1900
|
className: "pt-2",
|
|
1615
|
-
children: /* @__PURE__ */
|
|
1616
|
-
variant:
|
|
1901
|
+
children: /* @__PURE__ */ K(A, {
|
|
1902
|
+
variant: de.Primary,
|
|
1617
1903
|
label: f.showMoreLabel,
|
|
1618
1904
|
onClick: l,
|
|
1619
1905
|
disabled: r
|
|
1620
1906
|
})
|
|
1621
1907
|
}) : void 0;
|
|
1622
|
-
return /* @__PURE__ */
|
|
1623
|
-
title: /* @__PURE__ */
|
|
1908
|
+
return /* @__PURE__ */ q(oe, {
|
|
1909
|
+
title: /* @__PURE__ */ K(fn, {
|
|
1624
1910
|
className: p,
|
|
1625
1911
|
children: f.title
|
|
1626
1912
|
}),
|
|
1627
1913
|
expanded: _,
|
|
1628
1914
|
onToggle: v,
|
|
1629
1915
|
contentClassName: m,
|
|
1630
|
-
children: [/* @__PURE__ */
|
|
1916
|
+
children: [/* @__PURE__ */ K(P, {
|
|
1631
1917
|
as: F.P,
|
|
1632
|
-
className:
|
|
1633
|
-
style:
|
|
1918
|
+
className: T(h, pn.unavailableText),
|
|
1919
|
+
style: w({ "--stch-unavailable-text": g?.unavailableText }),
|
|
1634
1920
|
children: s && f.unavailableLabel
|
|
1635
|
-
}), !s && /* @__PURE__ */
|
|
1921
|
+
}), !s && /* @__PURE__ */ K(rn, {
|
|
1636
1922
|
items: t,
|
|
1637
1923
|
isLoading: n,
|
|
1638
1924
|
isLoadingMore: r,
|
|
@@ -1641,7 +1927,7 @@ var Je = "1180px", Ye = {
|
|
|
1641
1927
|
onRetry: o,
|
|
1642
1928
|
currentRunId: u,
|
|
1643
1929
|
onRunClick: d,
|
|
1644
|
-
footer:
|
|
1930
|
+
footer: y,
|
|
1645
1931
|
labels: {
|
|
1646
1932
|
historyTitle: f.title,
|
|
1647
1933
|
emptyLabel: f.emptyLabel,
|
|
@@ -1654,28 +1940,28 @@ var Je = "1180px", Ye = {
|
|
|
1654
1940
|
}
|
|
1655
1941
|
})]
|
|
1656
1942
|
});
|
|
1657
|
-
},
|
|
1943
|
+
}, hn = { unavailableText: "_unavailableText_j7lij_1" }, gn = /* @__PURE__ */ function(e) {
|
|
1658
1944
|
return e.Ready = "ready", e.Error = "error", e.Unavailable = "unavailable", e;
|
|
1659
|
-
}({}),
|
|
1660
|
-
let [g, _] =
|
|
1661
|
-
|
|
1945
|
+
}({}), _n = ({ scheduleId: e, state: t, onRetry: n, modelDisplayName: r, renderModelName: i, skillDisplayNames: a, renderSkillName: o, instructionsMarkdown: s, renderInstructions: c, instructionsClassNames: l, markdownLabels: u, summaryStyles: d, labels: f, titleClassName: p = "dial-tiny-semi-text", unavailableTextClassName: m = "dial-body-text", colors: h }) => {
|
|
1946
|
+
let [g, _] = W(!1);
|
|
1947
|
+
tt(() => {
|
|
1662
1948
|
_(!1);
|
|
1663
1949
|
}, [e]);
|
|
1664
|
-
let v = t === "error" || t === "unavailable",
|
|
1665
|
-
/* @__PURE__ */
|
|
1950
|
+
let v = t === "error" || t === "unavailable", y = t === "error" && n != null, b = /* @__PURE__ */ q(G, { children: [
|
|
1951
|
+
/* @__PURE__ */ K(P, {
|
|
1666
1952
|
as: F.P,
|
|
1667
|
-
className:
|
|
1668
|
-
style:
|
|
1953
|
+
className: T(m, hn.unavailableText),
|
|
1954
|
+
style: w({ "--stcd-unavailable-text": h?.unavailableText }),
|
|
1669
1955
|
children: v && f.unavailableLabel
|
|
1670
1956
|
}),
|
|
1671
|
-
|
|
1957
|
+
y && /* @__PURE__ */ K("div", {
|
|
1672
1958
|
className: "mt-2",
|
|
1673
|
-
children: /* @__PURE__ */
|
|
1959
|
+
children: /* @__PURE__ */ K(A, {
|
|
1674
1960
|
label: f.retryLabel,
|
|
1675
1961
|
onClick: n
|
|
1676
1962
|
})
|
|
1677
1963
|
}),
|
|
1678
|
-
!v && /* @__PURE__ */
|
|
1964
|
+
!v && /* @__PURE__ */ K(dn, {
|
|
1679
1965
|
modelLabel: f.modelLabel,
|
|
1680
1966
|
instructionsLabel: f.instructionsLabel,
|
|
1681
1967
|
skillLabel: f.skillLabel,
|
|
@@ -1690,22 +1976,22 @@ var Je = "1180px", Ye = {
|
|
|
1690
1976
|
styles: d
|
|
1691
1977
|
})
|
|
1692
1978
|
] });
|
|
1693
|
-
return /* @__PURE__ */
|
|
1694
|
-
title: /* @__PURE__ */
|
|
1979
|
+
return /* @__PURE__ */ K(oe, {
|
|
1980
|
+
title: /* @__PURE__ */ K(fn, {
|
|
1695
1981
|
className: p,
|
|
1696
1982
|
children: f.title
|
|
1697
1983
|
}),
|
|
1698
1984
|
expanded: g,
|
|
1699
1985
|
onToggle: _,
|
|
1700
|
-
children:
|
|
1986
|
+
children: b
|
|
1701
1987
|
});
|
|
1702
|
-
},
|
|
1988
|
+
}, vn = {
|
|
1703
1989
|
card: "_card_abja7_1",
|
|
1704
1990
|
text: "_text_abja7_6",
|
|
1705
1991
|
detailsLink: "_detailsLink_abja7_10",
|
|
1706
1992
|
deleted: "_deleted_abja7_21"
|
|
1707
|
-
},
|
|
1708
|
-
let { loadingLabel: p = "Loading task details…", unavailableLabel: m = "Task details are unavailable", retryLabel: h = "Retry", taskDetailsLabel: g = "Task details", taskDetailsAriaLabel: _ =
|
|
1993
|
+
}, yn = "flex items-center justify-between gap-2 rounded-xl border py-3 ps-4 pe-2 desktop:ps-6", bn = "flex h-6 shrink-0 items-center gap-1 rounded-full px-2", xn = (e) => `View task details for ${e}`, Sn = $e(({ isLoading: e = !1, isUnavailable: t = !1, isTaskDeleted: n = !1, displayName: r, timestampLabel: i, renderDetailsLink: a, onRetry: o, labels: s, colors: c, nameClassName: l = "dial-small-semi-text", textClassName: u = "dial-small-text", actionClassName: d = "dial-tiny-semi-text", className: f }) => {
|
|
1994
|
+
let { loadingLabel: p = "Loading task details…", unavailableLabel: m = "Task details are unavailable", retryLabel: h = "Retry", taskDetailsLabel: g = "Task details", taskDetailsAriaLabel: _ = xn, taskDeletedLabel: v = "Task was deleted" } = s ?? {}, y = w({
|
|
1709
1995
|
"--stcb-surface": c?.surface,
|
|
1710
1996
|
"--stcb-border": c?.border,
|
|
1711
1997
|
"--stcb-text": c?.text,
|
|
@@ -1713,88 +1999,88 @@ var Je = "1180px", Ye = {
|
|
|
1713
1999
|
"--stcb-details-link-hover-surface": c?.detailsLinkHoverSurface,
|
|
1714
2000
|
"--stcb-focus-outline": c?.focusOutline,
|
|
1715
2001
|
"--stcb-deleted-text": c?.deletedText
|
|
1716
|
-
}),
|
|
1717
|
-
return
|
|
2002
|
+
}), b = !e && t, x = null;
|
|
2003
|
+
return x = e ? /* @__PURE__ */ K("div", {
|
|
1718
2004
|
className: "flex h-5 items-center",
|
|
1719
2005
|
"aria-hidden": !0,
|
|
1720
|
-
children: /* @__PURE__ */
|
|
1721
|
-
variant:
|
|
2006
|
+
children: /* @__PURE__ */ K(Pe, {
|
|
2007
|
+
variant: z.Rectangular,
|
|
1722
2008
|
width: "220px",
|
|
1723
2009
|
height: "16px"
|
|
1724
2010
|
})
|
|
1725
|
-
}) : t ? o && /* @__PURE__ */
|
|
2011
|
+
}) : t ? o && /* @__PURE__ */ K(A, {
|
|
1726
2012
|
label: h,
|
|
1727
2013
|
onClick: o
|
|
1728
|
-
}) : /* @__PURE__ */
|
|
1729
|
-
className:
|
|
1730
|
-
children: [r, i && /* @__PURE__ */
|
|
1731
|
-
className:
|
|
2014
|
+
}) : /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ q("p", {
|
|
2015
|
+
className: T(vn.text, l, "min-w-0 flex-1 wrap-break-word"),
|
|
2016
|
+
children: [r, i && /* @__PURE__ */ q("span", {
|
|
2017
|
+
className: T(u, "block desktop:inline"),
|
|
1732
2018
|
children: [" ", i]
|
|
1733
2019
|
})]
|
|
1734
|
-
}), n ? /* @__PURE__ */
|
|
1735
|
-
className:
|
|
2020
|
+
}), n ? /* @__PURE__ */ K("p", {
|
|
2021
|
+
className: T(vn.deleted, d, "flex h-6 shrink-0 items-center px-2"),
|
|
1736
2022
|
children: v
|
|
1737
2023
|
}) : a({
|
|
1738
|
-
className:
|
|
2024
|
+
className: T(vn.detailsLink, d, bn),
|
|
1739
2025
|
"aria-label": _(r),
|
|
1740
|
-
children: /* @__PURE__ */
|
|
1741
|
-
size:
|
|
1742
|
-
stroke:
|
|
2026
|
+
children: /* @__PURE__ */ q(G, { children: [g, /* @__PURE__ */ K(Ge, {
|
|
2027
|
+
size: D.SM,
|
|
2028
|
+
stroke: O,
|
|
1743
2029
|
className: "rtl:scale-x-[-1]",
|
|
1744
2030
|
"aria-hidden": !0
|
|
1745
2031
|
})] })
|
|
1746
|
-
})] }), /* @__PURE__ */
|
|
1747
|
-
className:
|
|
1748
|
-
style:
|
|
2032
|
+
})] }), /* @__PURE__ */ q("div", {
|
|
2033
|
+
className: T(vn.card, yn, f),
|
|
2034
|
+
style: y,
|
|
1749
2035
|
children: [
|
|
1750
|
-
/* @__PURE__ */
|
|
2036
|
+
/* @__PURE__ */ K(P, {
|
|
1751
2037
|
visuallyHidden: !0,
|
|
1752
2038
|
children: e ? p : ""
|
|
1753
2039
|
}),
|
|
1754
|
-
/* @__PURE__ */
|
|
2040
|
+
/* @__PURE__ */ K(P, {
|
|
1755
2041
|
as: F.P,
|
|
1756
|
-
className:
|
|
1757
|
-
children:
|
|
2042
|
+
className: T(vn.text, u),
|
|
2043
|
+
children: b ? m : ""
|
|
1758
2044
|
}),
|
|
1759
|
-
|
|
2045
|
+
x
|
|
1760
2046
|
]
|
|
1761
2047
|
});
|
|
1762
|
-
}),
|
|
1763
|
-
surface:
|
|
2048
|
+
}), Cn = (e, t, n) => e ? n?.loggingIn ?? "Logging in…" : t == null ? n?.logIn ?? "Log in" : n?.retry ?? "Retry", wn = $e(({ isVisible: e, isLoggingIn: t = !1, retryMessage: n, liveAnnouncement: r = "", labels: i, onLogIn: a }) => /* @__PURE__ */ q(G, { children: [e && /* @__PURE__ */ K(ze, {
|
|
2049
|
+
surface: Oe.Neutral,
|
|
1764
2050
|
title: i?.title ?? "Log in required.",
|
|
1765
2051
|
message: i?.body ?? "Scheduled tasks need authorization to run offline.",
|
|
1766
|
-
action: a && /* @__PURE__ */
|
|
1767
|
-
label:
|
|
2052
|
+
action: a && /* @__PURE__ */ K(N, {
|
|
2053
|
+
label: Cn(t, n, i),
|
|
1768
2054
|
disabled: t,
|
|
1769
|
-
iconAfter: /* @__PURE__ */
|
|
1770
|
-
size:
|
|
1771
|
-
stroke:
|
|
2055
|
+
iconAfter: /* @__PURE__ */ K(He, {
|
|
2056
|
+
size: D.SM,
|
|
2057
|
+
stroke: O,
|
|
1772
2058
|
"aria-hidden": !0,
|
|
1773
2059
|
className: "rtl:scale-x-[-1]"
|
|
1774
2060
|
}),
|
|
1775
2061
|
onClick: a,
|
|
1776
2062
|
className: "min-h-11 min-w-11"
|
|
1777
2063
|
})
|
|
1778
|
-
}), /* @__PURE__ */
|
|
2064
|
+
}), /* @__PURE__ */ K(P, {
|
|
1779
2065
|
visuallyHidden: !0,
|
|
1780
2066
|
as: F.Span,
|
|
1781
2067
|
children: n ?? r
|
|
1782
|
-
})] })),
|
|
1783
|
-
variant:
|
|
1784
|
-
type:
|
|
1785
|
-
message: /* @__PURE__ */
|
|
2068
|
+
})] })), Tn = $e(({ labels: e, titleClassName: t = "dial-small-paragraph-semi-text", bodyClassName: n = "dial-small-paragraph-text" }) => /* @__PURE__ */ K(De, {
|
|
2069
|
+
variant: R.Error,
|
|
2070
|
+
type: ke.SectionMessage,
|
|
2071
|
+
message: /* @__PURE__ */ q("span", {
|
|
1786
2072
|
className: "flex min-w-0 flex-wrap items-baseline gap-x-1",
|
|
1787
|
-
children: [/* @__PURE__ */
|
|
1788
|
-
className:
|
|
2073
|
+
children: [/* @__PURE__ */ K("span", {
|
|
2074
|
+
className: T("min-w-0 wrap-break-word", t),
|
|
1789
2075
|
children: e?.title ?? "Limited access."
|
|
1790
|
-
}), /* @__PURE__ */
|
|
1791
|
-
className:
|
|
2076
|
+
}), /* @__PURE__ */ K("span", {
|
|
2077
|
+
className: T("min-w-0 wrap-break-word", n),
|
|
1792
2078
|
children: e?.body ?? "You can't create or edit tasks. Contact your administrator for more details."
|
|
1793
2079
|
})]
|
|
1794
2080
|
})
|
|
1795
|
-
})),
|
|
2081
|
+
})), En = ({ taskName: e, icon: t, typeLabel: n, body: r, pendingLabel: i, isDeleting: a = !1, styles: o, ...s }) => /* @__PURE__ */ K(_, {
|
|
1796
2082
|
...s,
|
|
1797
|
-
variant:
|
|
2083
|
+
variant: he.Danger,
|
|
1798
2084
|
popupClassName: o?.popupClassName,
|
|
1799
2085
|
titleClassName: o?.titleClassName ?? "dial-body-semi-text",
|
|
1800
2086
|
messageClassName: o?.messageClassName ?? "dial-body-paragraph-text",
|
|
@@ -1803,12 +2089,12 @@ var Je = "1180px", Ye = {
|
|
|
1803
2089
|
message: r,
|
|
1804
2090
|
isLoading: a,
|
|
1805
2091
|
loadingStatusLabel: i,
|
|
1806
|
-
identity: /* @__PURE__ */
|
|
2092
|
+
identity: /* @__PURE__ */ K(S, {
|
|
1807
2093
|
styles: { colors: {
|
|
1808
2094
|
background: o?.colors?.summaryBackground ?? "var(--bg-error, #f3d6d8)",
|
|
1809
2095
|
border: o?.colors?.summaryBorder ?? "var(--stroke-error-alpha, #ae2f2f73)"
|
|
1810
2096
|
} },
|
|
1811
|
-
children: /* @__PURE__ */
|
|
2097
|
+
children: /* @__PURE__ */ K(v, {
|
|
1812
2098
|
icon: t,
|
|
1813
2099
|
typeLabel: n,
|
|
1814
2100
|
name: e,
|
|
@@ -1817,4 +2103,4 @@ var Je = "1180px", Ye = {
|
|
|
1817
2103
|
})
|
|
1818
2104
|
});
|
|
1819
2105
|
//#endregion
|
|
1820
|
-
export { t as DESCRIPTION_MAX_LENGTH,
|
|
2106
|
+
export { t as DESCRIPTION_MAX_LENGTH, st as SCHEDULED_TASKS_CLASS, ot as SCHEDULED_TASKS_GRID_DEFAULT_MAX_WIDTH, s as SCHEDULED_TASK_CREATE_DEFAULT_VALUES, pt as ScheduledTaskCard, vt as ScheduledTaskCardGrid, _t as ScheduledTaskCardSkeleton, Sn as ScheduledTaskConversationBanner, _n as ScheduledTaskConversationDetailsSection, gn as ScheduledTaskConversationDetailsState, mn as ScheduledTaskConversationHistorySection, qt as ScheduledTaskCreateForm, En as ScheduledTaskDeleteConfirmation, cn as ScheduledTaskDetailView, dn as ScheduledTaskDetailsSummary, on as ScheduledTaskHistorySection, ct as ScheduledTaskPresentationStatus, h as ScheduledTaskRepeat, rn as ScheduledTaskRunHistoryList, tn as ScheduledTaskRunStatus, J as ScheduledTaskStatus, Ft as ScheduledTaskTimezoneField, It as ScheduledTaskTimezoneGapHint, St as ScheduledTasks, Tn as ScheduledTasksLimitedAccessBanner, wn as ScheduledTasksLoginBanner, Ct as ScheduledTasksSortKey, m as TIME_OF_DAY_PATTERN, l as calendarValueToDateValue, o as calendarValueToRunAt, e as dateValueToCalendarValue, lt as getScheduledTaskStatus, Pt as getTimezoneSummary, n as getZonedNow, zt as hasScheduledTaskFormChanges, r as instantToZonedDateTime, d as isAbsoluteInstant, c as isNonexistentLocalTime, p as runAtToCalendarValue, a as shiftForwardOverGap, i as wallClockToLocalDate };
|