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