@epam/ai-dial-scheduled-tasks 1.2.0-dev.61 → 1.2.0-dev.69
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/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.d.ts +7 -6
- package/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +341 -330
- package/models/scheduled-task-create-form-props.d.ts +4 -2
- package/models/scheduled-task-create-form-props.d.ts.map +1 -1
- package/package.json +3 -3
- package/utils/calendar-value.d.ts +2 -0
- package/utils/calendar-value.d.ts.map +1 -1
package/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as e, MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as t, MDMessageViewer as n, PanelEmptyState as r, buildCssVars as i, mergeClasses as a, useAvailableHeightCap as o, useIsMobile as s } from "@epam/ai-dial-chat-shared";
|
|
2
|
-
import { ButtonAppearance as c, ButtonDropdown as l, ButtonVariant as u, Calendar as d, CalendarMode as f, CardShell as p, DIAL_ICON_SIZE as m, DIAL_KIT_ICON_STROKE as h, ElementSize as g, FolderPath as _, GhostButton as v, GhostIconButton as y, Highlight as b, Input as x, Label as S, MenuItemMark as
|
|
3
|
-
import { IconAlertTriangle as
|
|
4
|
-
import { Suspense as
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { BuilderFormContainer as
|
|
7
|
-
import { LazyMarkdownEditor as
|
|
2
|
+
import { ButtonAppearance as c, ButtonDropdown as l, ButtonVariant as u, Calendar as d, CalendarMode as f, CardShell as p, DIAL_ICON_SIZE as m, DIAL_KIT_ICON_STROKE as h, ElementSize as g, FolderPath as _, GhostButton as v, GhostIconButton as y, Highlight as b, Input as x, Label as S, MenuItemMark as ee, NeutralButton as C, NumberInput as te, PrimaryButton as w, Search as T, Select as ne, Skeleton as E, SkeletonVariant as D, Spinner as O, Switch as k, Tabs as re, Textarea as A } from "@epam/ai-dial-ui-kit";
|
|
3
|
+
import { IconAlertTriangle as j, IconArrowLeft as ie, IconCircleCheck as M, IconCircleX as ae, IconClipboardX as N, IconPencilMinus as P, IconPlayerPause as F, IconPlus as oe, IconTrashX as se } from "@tabler/icons-react";
|
|
4
|
+
import { Suspense as ce, lazy as le, useCallback as I, useEffect as L, useId as R, useLayoutEffect as z, useMemo as ue, useRef as B, useState as de } from "react";
|
|
5
|
+
import { Fragment as fe, jsx as V, jsxs as H } from "react/jsx-runtime";
|
|
6
|
+
import { BuilderFormContainer as pe } from "@epam/ai-dial-builder-form";
|
|
7
|
+
import { LazyMarkdownEditor as me } from "@epam/ai-dial-ui-kit/editors";
|
|
8
8
|
//#region src/constants/public-class-names.ts
|
|
9
|
-
var
|
|
9
|
+
var U = {
|
|
10
10
|
card: "dial-scheduled-tasks-card",
|
|
11
11
|
cardGrid: "dial-scheduled-tasks-card-grid"
|
|
12
|
-
},
|
|
12
|
+
}, W = {
|
|
13
13
|
title: "_title_1hxc3_1",
|
|
14
14
|
description: "_description_1hxc3_5",
|
|
15
15
|
schedulePill: "_schedulePill_1hxc3_9",
|
|
@@ -20,8 +20,8 @@ var H = {
|
|
|
20
20
|
pausedPill: "_pausedPill_1hxc3_31",
|
|
21
21
|
pausedLabel: "_pausedLabel_1hxc3_36",
|
|
22
22
|
locationDivider: "_locationDivider_1hxc3_40"
|
|
23
|
-
},
|
|
24
|
-
let c = r?.newBadgeLabel ?? "NEW", l = r?.pausedBadgeLabel ?? "Paused", { colors: u, typography: d } = o ?? {}, f = d?.titleClassName ?? "dial-body-semi-text", g = d?.descriptionClassName ?? "dial-small-text", v = d?.descriptionSizeClassName ?? "dial-tiny-text", y = d?.scheduleLabelClassName ?? "dial-tiny-text", x = d?.locationLabelClassName ?? "dial-tiny-text", S = d?.locationLeafClassName ?? "dial-tiny-semi-text",
|
|
23
|
+
}, he = ({ item: e, searchQuery: t = "", onCardClick: n, labels: r, styles: o, className: s }) => {
|
|
24
|
+
let c = r?.newBadgeLabel ?? "NEW", l = r?.pausedBadgeLabel ?? "Paused", { colors: u, typography: d } = o ?? {}, f = d?.titleClassName ?? "dial-body-semi-text", g = d?.descriptionClassName ?? "dial-small-text", v = d?.descriptionSizeClassName ?? "dial-tiny-text", y = d?.scheduleLabelClassName ?? "dial-tiny-text", x = d?.locationLabelClassName ?? "dial-tiny-text", S = d?.locationLeafClassName ?? "dial-tiny-semi-text", ee = d?.newBadgeClassName ?? "dial-tiny-semi-text", C = d?.pausedBadgeClassName ?? "dial-tiny-text", te = i({
|
|
25
25
|
"--stc-title-text": u?.titleText,
|
|
26
26
|
"--stc-desc-text": u?.descriptionText,
|
|
27
27
|
"--stc-pill-bg": u?.schedulePillBackground,
|
|
@@ -35,56 +35,56 @@ var H = {
|
|
|
35
35
|
"--stc-paused-bg": u?.pausedBadgeBackground,
|
|
36
36
|
"--stc-paused-border": u?.pausedBadgeBorder,
|
|
37
37
|
"--stc-paused-text": u?.pausedBadgeText
|
|
38
|
-
}),
|
|
38
|
+
}), w = n ? {
|
|
39
39
|
tabIndex: 0,
|
|
40
40
|
onClick: () => n(e.id),
|
|
41
41
|
onKeyDown: (t) => {
|
|
42
42
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e.id));
|
|
43
43
|
}
|
|
44
44
|
} : {};
|
|
45
|
-
return /* @__PURE__ */
|
|
45
|
+
return /* @__PURE__ */ H(p, {
|
|
46
46
|
role: n ? "button" : "group",
|
|
47
47
|
"aria-label": e.displayName,
|
|
48
|
-
style:
|
|
49
|
-
className: a("h-[232px]", n && "cursor-pointer", s,
|
|
50
|
-
...
|
|
48
|
+
style: te,
|
|
49
|
+
className: a("h-[232px]", n && "cursor-pointer", s, U.card),
|
|
50
|
+
...w,
|
|
51
51
|
children: [
|
|
52
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ H("div", {
|
|
53
53
|
className: "flex min-w-0 shrink-0 items-center gap-2",
|
|
54
|
-
children: [/* @__PURE__ */
|
|
54
|
+
children: [/* @__PURE__ */ V(b, {
|
|
55
55
|
text: e.displayName,
|
|
56
56
|
query: t,
|
|
57
57
|
maxLines: 1,
|
|
58
|
-
className: a(f,
|
|
59
|
-
}), e.isNew && /* @__PURE__ */
|
|
60
|
-
className: a("shrink-0 rounded-full px-2 py-0.5",
|
|
58
|
+
className: a(f, W.title)
|
|
59
|
+
}), e.isNew && /* @__PURE__ */ V("span", {
|
|
60
|
+
className: a("shrink-0 rounded-full px-2 py-0.5", ee, W.newBadge),
|
|
61
61
|
children: c
|
|
62
62
|
})]
|
|
63
63
|
}),
|
|
64
|
-
e.descriptionPreview && /* @__PURE__ */
|
|
65
|
-
className: a("line-clamp-4 min-h-0 flex-1 overflow-hidden", v, g,
|
|
64
|
+
e.descriptionPreview && /* @__PURE__ */ V("p", {
|
|
65
|
+
className: a("line-clamp-4 min-h-0 flex-1 overflow-hidden", v, g, W.description),
|
|
66
66
|
children: e.descriptionPreview
|
|
67
67
|
}),
|
|
68
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ H("div", {
|
|
69
69
|
className: "mt-auto flex shrink-0 flex-col gap-3",
|
|
70
|
-
children: [/* @__PURE__ */
|
|
70
|
+
children: [/* @__PURE__ */ V("div", {
|
|
71
71
|
className: "flex min-h-[28px] items-center",
|
|
72
|
-
children: e.isActive === !1 ? /* @__PURE__ */
|
|
73
|
-
className: a("inline-flex items-center gap-1.5 rounded-full border px-2 py-1",
|
|
74
|
-
children: [/* @__PURE__ */
|
|
72
|
+
children: e.isActive === !1 ? /* @__PURE__ */ H("span", {
|
|
73
|
+
className: a("inline-flex items-center gap-1.5 rounded-full border px-2 py-1", W.pausedPill, C, W.pausedLabel),
|
|
74
|
+
children: [/* @__PURE__ */ V(F, {
|
|
75
75
|
size: m.SM,
|
|
76
76
|
"aria-hidden": !0,
|
|
77
77
|
stroke: h
|
|
78
78
|
}), l]
|
|
79
|
-
}) : /* @__PURE__ */
|
|
80
|
-
className: a("inline-block rounded-lg border px-2 py-1",
|
|
79
|
+
}) : /* @__PURE__ */ V("span", {
|
|
80
|
+
className: a("inline-block rounded-lg border px-2 py-1", W.schedulePill, y, W.scheduleLabel),
|
|
81
81
|
children: e.scheduleLabel
|
|
82
82
|
})
|
|
83
|
-
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */
|
|
83
|
+
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */ V(_, {
|
|
84
84
|
segments: e.locationSegments,
|
|
85
|
-
labelClassName: a(x,
|
|
86
|
-
leafClassName: a(S,
|
|
87
|
-
className: a("pt-3",
|
|
85
|
+
labelClassName: a(x, W.locationLabel),
|
|
86
|
+
leafClassName: a(S, W.locationLeaf),
|
|
87
|
+
className: a("pt-3", W.locationDivider)
|
|
88
88
|
})]
|
|
89
89
|
})
|
|
90
90
|
]
|
|
@@ -93,28 +93,28 @@ var H = {
|
|
|
93
93
|
"100%",
|
|
94
94
|
"100%",
|
|
95
95
|
"61%"
|
|
96
|
-
], G = "var(--stcs-skeleton-bg)", ve = ({ styles: e }) => /* @__PURE__ */
|
|
96
|
+
], G = "var(--stcs-skeleton-bg)", ve = ({ styles: e }) => /* @__PURE__ */ H(p, {
|
|
97
97
|
"aria-hidden": !0,
|
|
98
98
|
style: i({ "--stcs-skeleton-bg": e?.colors?.skeletonColor }),
|
|
99
99
|
className: a("h-[232px]", ge.card),
|
|
100
100
|
children: [
|
|
101
|
-
/* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ V(E, {
|
|
102
102
|
variant: D.Rectangular,
|
|
103
103
|
width: "60%",
|
|
104
104
|
height: "20px",
|
|
105
105
|
color: G,
|
|
106
106
|
className: "shrink-0"
|
|
107
107
|
}),
|
|
108
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ V("div", {
|
|
109
109
|
className: "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden",
|
|
110
|
-
children: _e.map((e, t) => /* @__PURE__ */
|
|
110
|
+
children: _e.map((e, t) => /* @__PURE__ */ V(E, {
|
|
111
111
|
variant: D.Rectangular,
|
|
112
112
|
width: e,
|
|
113
113
|
height: "16px",
|
|
114
114
|
color: G
|
|
115
115
|
}, t))
|
|
116
116
|
}),
|
|
117
|
-
/* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ V(E, {
|
|
118
118
|
variant: D.Rectangular,
|
|
119
119
|
width: "110px",
|
|
120
120
|
height: "28px",
|
|
@@ -122,15 +122,15 @@ var H = {
|
|
|
122
122
|
className: "shrink-0 rounded-lg"
|
|
123
123
|
})
|
|
124
124
|
]
|
|
125
|
-
}), ye = ({ items: e, searchQuery: t, onCardClick: n, labels: r, cardStyles: i, trailingSkeletonCount: o = 0, skeletonStyles: s }) => /* @__PURE__ */
|
|
126
|
-
className: a("grid grid-cols-1 gap-5 desktop:grid-cols-3",
|
|
127
|
-
children: [e.map((e) => /* @__PURE__ */
|
|
125
|
+
}), ye = ({ items: e, searchQuery: t, onCardClick: n, labels: r, cardStyles: i, trailingSkeletonCount: o = 0, skeletonStyles: s }) => /* @__PURE__ */ H("div", {
|
|
126
|
+
className: a("grid grid-cols-1 gap-5 desktop:grid-cols-3", U.cardGrid),
|
|
127
|
+
children: [e.map((e) => /* @__PURE__ */ V(he, {
|
|
128
128
|
item: e,
|
|
129
129
|
searchQuery: t,
|
|
130
130
|
onCardClick: n,
|
|
131
131
|
labels: r,
|
|
132
132
|
styles: i
|
|
133
|
-
}, e.id)), Array.from({ length: o }, (e, t) => /* @__PURE__ */
|
|
133
|
+
}, e.id)), Array.from({ length: o }, (e, t) => /* @__PURE__ */ V(ve, { styles: s }, `skeleton-${t}`))]
|
|
134
134
|
}), K = {
|
|
135
135
|
container: "_container_1ct1h_2",
|
|
136
136
|
subtitle: "_subtitle_1ct1h_6",
|
|
@@ -143,97 +143,97 @@ var H = {
|
|
|
143
143
|
if (!e || e === document.body) return null;
|
|
144
144
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
145
145
|
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : xe(e.parentElement);
|
|
146
|
-
}, Se = ({ labels: e, onCreateClick: t, searchQuery: n, onSearchQueryChange: o, sortKey: s, onSortChange: d, items: f, isLoading: p = !1, error: _, onRetry: y, hasMore: b = !1, isLoadingMore: x = !1, skeletonCount: S = 6, onLoadMore:
|
|
147
|
-
let { colors: D, typography:
|
|
146
|
+
}, Se = ({ labels: e, onCreateClick: t, searchQuery: n, onSearchQueryChange: o, sortKey: s, onSortChange: d, items: f, isLoading: p = !1, error: _, onRetry: y, hasMore: b = !1, isLoadingMore: x = !1, skeletonCount: S = 6, onLoadMore: C, onCardClick: te, banner: ne, styles: E }) => {
|
|
147
|
+
let { colors: D, typography: k } = E ?? {}, re = k?.titleClassName ?? "dial-h1-text", A = k?.subtitleClassName ?? "dial-body-text", j = i({
|
|
148
148
|
"--st-bg": D?.background,
|
|
149
149
|
"--st-subtitle-text": D?.subtitleText,
|
|
150
150
|
"--st-sort-text": D?.sortButtonText
|
|
151
|
-
}),
|
|
151
|
+
}), ie = (e) => {
|
|
152
152
|
o(e ?? "");
|
|
153
|
-
}, [
|
|
154
|
-
|
|
155
|
-
}, []),
|
|
156
|
-
|
|
153
|
+
}, [M, ae] = de(!1), [N, P] = de(!1), F = B(null), se = I(() => {
|
|
154
|
+
P(!0);
|
|
155
|
+
}, []), ce = I(() => {
|
|
156
|
+
P(!1);
|
|
157
157
|
}, []);
|
|
158
|
-
|
|
159
|
-
let e =
|
|
160
|
-
|
|
161
|
-
}, [
|
|
162
|
-
let
|
|
158
|
+
z(() => {
|
|
159
|
+
let e = F.current;
|
|
160
|
+
N && M && e != null && e.offsetParent == null && ae(!1);
|
|
161
|
+
}, [N, M]);
|
|
162
|
+
let le = e.sortOptions.find((e) => e.value === s)?.label ?? e.sortLabel, R = ue(() => e.sortOptions.map((e) => ({
|
|
163
163
|
key: e.value,
|
|
164
164
|
label: e.label,
|
|
165
|
-
mark:
|
|
165
|
+
mark: ee.Check,
|
|
166
166
|
checked: e.value === s,
|
|
167
167
|
onClick: () => d(e.value)
|
|
168
168
|
})), [
|
|
169
169
|
e.sortOptions,
|
|
170
170
|
s,
|
|
171
171
|
d
|
|
172
|
-
]),
|
|
173
|
-
|
|
174
|
-
let e =
|
|
175
|
-
if (!e || !
|
|
172
|
+
]), fe = be(p, x, !!_, f.length, n.trim().length > 0, e), pe = B(null);
|
|
173
|
+
L(() => {
|
|
174
|
+
let e = pe.current;
|
|
175
|
+
if (!e || !C) return;
|
|
176
176
|
let t = xe(e.parentElement);
|
|
177
177
|
if (!t) return;
|
|
178
178
|
let n = () => {
|
|
179
179
|
if (x || p || !b) return;
|
|
180
180
|
let n = t.getBoundingClientRect(), r = e.getBoundingClientRect();
|
|
181
|
-
r.top < n.bottom && r.bottom > n.top &&
|
|
181
|
+
r.top < n.bottom && r.bottom > n.top && C();
|
|
182
182
|
};
|
|
183
183
|
return t.addEventListener("scroll", n, { passive: !0 }), n(), () => t.removeEventListener("scroll", n);
|
|
184
184
|
}, [
|
|
185
185
|
b,
|
|
186
186
|
x,
|
|
187
187
|
p,
|
|
188
|
-
|
|
188
|
+
C
|
|
189
189
|
]);
|
|
190
|
-
let
|
|
190
|
+
let me = () => p ? /* @__PURE__ */ V(O, {}) : _ ? /* @__PURE__ */ H("div", {
|
|
191
191
|
className: "flex flex-col items-center gap-3",
|
|
192
|
-
children: [/* @__PURE__ */
|
|
193
|
-
className: a(
|
|
192
|
+
children: [/* @__PURE__ */ V("p", {
|
|
193
|
+
className: a(A, K.subtitle),
|
|
194
194
|
children: e.errorLabel
|
|
195
|
-
}), /* @__PURE__ */
|
|
195
|
+
}), /* @__PURE__ */ V(v, {
|
|
196
196
|
label: e.retryLabel,
|
|
197
197
|
onClick: y
|
|
198
198
|
})]
|
|
199
|
-
}) : f.length === 0 ? n.trim() ? /* @__PURE__ */
|
|
200
|
-
className: a(
|
|
199
|
+
}) : f.length === 0 ? n.trim() ? /* @__PURE__ */ V("p", {
|
|
200
|
+
className: a(A, K.subtitle),
|
|
201
201
|
children: e.noResultsLabel
|
|
202
|
-
}) : /* @__PURE__ */
|
|
202
|
+
}) : /* @__PURE__ */ V(r, { label: e.emptyStateLabel }) : /* @__PURE__ */ H("div", {
|
|
203
203
|
className: "flex w-full flex-col gap-6",
|
|
204
|
-
children: [/* @__PURE__ */
|
|
204
|
+
children: [/* @__PURE__ */ V(ye, {
|
|
205
205
|
items: f,
|
|
206
206
|
searchQuery: n,
|
|
207
|
-
onCardClick:
|
|
207
|
+
onCardClick: te,
|
|
208
208
|
labels: e.cardLabels,
|
|
209
209
|
trailingSkeletonCount: x ? S : 0,
|
|
210
210
|
skeletonStyles: { colors: { skeletonColor: D?.skeletonColor } }
|
|
211
|
-
}), /* @__PURE__ */
|
|
212
|
-
ref:
|
|
211
|
+
}), /* @__PURE__ */ V("div", {
|
|
212
|
+
ref: pe,
|
|
213
213
|
"aria-hidden": !0,
|
|
214
214
|
className: "h-px w-full"
|
|
215
215
|
})]
|
|
216
|
-
}),
|
|
217
|
-
return /* @__PURE__ */
|
|
218
|
-
style:
|
|
216
|
+
}), U = p || !!_ || f.length === 0;
|
|
217
|
+
return /* @__PURE__ */ H("div", {
|
|
218
|
+
style: j,
|
|
219
219
|
className: a("flex h-full w-full flex-col gap-6 overflow-y-auto px-8 py-4", K.container),
|
|
220
220
|
children: [
|
|
221
|
-
/* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ H("div", {
|
|
222
222
|
className: "flex items-start justify-between gap-4",
|
|
223
|
-
children: [/* @__PURE__ */
|
|
223
|
+
children: [/* @__PURE__ */ H("div", {
|
|
224
224
|
className: "min-w-0 gap-2",
|
|
225
|
-
children: [/* @__PURE__ */
|
|
226
|
-
className: a("truncate",
|
|
225
|
+
children: [/* @__PURE__ */ V("h1", {
|
|
226
|
+
className: a("truncate", re),
|
|
227
227
|
children: e.title
|
|
228
|
-
}), /* @__PURE__ */
|
|
229
|
-
className: a("mt-1",
|
|
228
|
+
}), /* @__PURE__ */ V("p", {
|
|
229
|
+
className: a("mt-1", A, K.subtitle),
|
|
230
230
|
children: e.subtitle
|
|
231
231
|
})]
|
|
232
|
-
}), /* @__PURE__ */
|
|
232
|
+
}), /* @__PURE__ */ V(w, {
|
|
233
233
|
label: e.createButtonLabel,
|
|
234
234
|
textClassName: "hidden desktop:inline",
|
|
235
235
|
"aria-label": e.createButtonLabel,
|
|
236
|
-
iconBefore: /* @__PURE__ */
|
|
236
|
+
iconBefore: /* @__PURE__ */ V(oe, {
|
|
237
237
|
size: m.SM,
|
|
238
238
|
"aria-hidden": !0,
|
|
239
239
|
stroke: h
|
|
@@ -242,27 +242,27 @@ var H = {
|
|
|
242
242
|
className: a("shrink-0", K.createButton)
|
|
243
243
|
})]
|
|
244
244
|
}),
|
|
245
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ H("div", {
|
|
246
246
|
className: "flex flex-wrap items-center gap-3",
|
|
247
|
-
children: [/* @__PURE__ */
|
|
247
|
+
children: [/* @__PURE__ */ V("div", {
|
|
248
248
|
role: "search",
|
|
249
249
|
className: "flex-1",
|
|
250
|
-
children: /* @__PURE__ */
|
|
250
|
+
children: /* @__PURE__ */ V(T, {
|
|
251
251
|
value: n,
|
|
252
|
-
onChange:
|
|
252
|
+
onChange: ie,
|
|
253
253
|
placeholder: e.searchPlaceholder,
|
|
254
254
|
clearLabel: e.clearSearchLabel,
|
|
255
255
|
"aria-label": e.searchAriaLabel,
|
|
256
256
|
size: g.Large,
|
|
257
|
-
onFocus:
|
|
258
|
-
onBlur:
|
|
257
|
+
onFocus: se,
|
|
258
|
+
onBlur: ce
|
|
259
259
|
})
|
|
260
|
-
}), e.sortOptions.length > 0 && /* @__PURE__ */
|
|
261
|
-
ref:
|
|
262
|
-
className: a(
|
|
263
|
-
children: /* @__PURE__ */
|
|
264
|
-
items:
|
|
265
|
-
label:
|
|
260
|
+
}), e.sortOptions.length > 0 && /* @__PURE__ */ V("div", {
|
|
261
|
+
ref: F,
|
|
262
|
+
className: a(N && K.sortControlHidden),
|
|
263
|
+
children: /* @__PURE__ */ V(l, {
|
|
264
|
+
items: R,
|
|
265
|
+
label: le,
|
|
266
266
|
variant: u.Primary,
|
|
267
267
|
appearance: c.Ghost,
|
|
268
268
|
className: K.sortButton
|
|
@@ -270,15 +270,15 @@ var H = {
|
|
|
270
270
|
})]
|
|
271
271
|
}),
|
|
272
272
|
ne,
|
|
273
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ V("span", {
|
|
274
274
|
role: "status",
|
|
275
275
|
"aria-live": "polite",
|
|
276
276
|
className: "sr-only",
|
|
277
|
-
children:
|
|
277
|
+
children: fe
|
|
278
278
|
}),
|
|
279
|
-
/* @__PURE__ */
|
|
280
|
-
className: a("mx-auto flex size-full w-full max-w-[1180px] flex-col",
|
|
281
|
-
children:
|
|
279
|
+
/* @__PURE__ */ V("div", {
|
|
280
|
+
className: a("mx-auto flex size-full w-full max-w-[1180px] flex-col", U && "items-center justify-center"),
|
|
281
|
+
children: me()
|
|
282
282
|
})
|
|
283
283
|
]
|
|
284
284
|
});
|
|
@@ -286,35 +286,43 @@ var H = {
|
|
|
286
286
|
return e.FirstToRun = "firstToRun", e.LastToRun = "lastToRun", e.Newest = "newest", e.NameAZ = "nameAZ", e;
|
|
287
287
|
}({}), we = 500, q = /* @__PURE__ */ function(e) {
|
|
288
288
|
return e.OneTime = "oneTime", e.Hourly = "hourly", e.Daily = "daily", e.Weekly = "weekly", e.Monthly = "monthly", e;
|
|
289
|
-
}({}), J = (e) => String(e).padStart(2, "0"), Te = (e) => e ? new Date(e) : null,
|
|
289
|
+
}({}), J = (e) => String(e).padStart(2, "0"), Te = /^([01]\d|2[0-3]):([0-5]\d)$/, Ee = (e) => e ? new Date(e) : null, De = (e) => {
|
|
290
290
|
if (e == null) return "";
|
|
291
291
|
let t = e instanceof Date ? e : new Date(e);
|
|
292
292
|
return Number.isNaN(t.getTime()) ? "" : `${t.getFullYear()}-${J(t.getMonth() + 1)}-${J(t.getDate())}T${J(t.getHours())}:${J(t.getMinutes())}`;
|
|
293
|
-
},
|
|
293
|
+
}, Oe = (e) => {
|
|
294
294
|
if (!e) return null;
|
|
295
295
|
let [t, n, r] = e.split("-").map(Number);
|
|
296
296
|
return new Date(t, n - 1, r);
|
|
297
|
-
},
|
|
297
|
+
}, ke = (e) => {
|
|
298
298
|
if (e == null) return "";
|
|
299
299
|
let t = e instanceof Date ? e : new Date(e);
|
|
300
300
|
return Number.isNaN(t.getTime()) ? "" : `${t.getFullYear()}-${J(t.getMonth() + 1)}-${J(t.getDate())}`;
|
|
301
|
-
},
|
|
301
|
+
}, Ae = (e) => {
|
|
302
302
|
let t = Number(e);
|
|
303
303
|
return e && Number.isFinite(t) ? String(t + 1) : null;
|
|
304
|
-
},
|
|
304
|
+
}, je = (e) => {
|
|
305
305
|
let t = typeof e == "string" ? Number(e) : NaN;
|
|
306
306
|
return Number.isFinite(t) ? String(t - 1) : "";
|
|
307
307
|
}, Y = {
|
|
308
308
|
detailsColumn: "_detailsColumn_1mg3v_1",
|
|
309
309
|
sectionSubtitle: "_sectionSubtitle_1mg3v_5",
|
|
310
310
|
instructionsError: "_instructionsError_1mg3v_9"
|
|
311
|
-
},
|
|
312
|
-
let y =
|
|
313
|
-
"--stcf-details-border":
|
|
314
|
-
"--stcf-subtitle-text":
|
|
315
|
-
"--stcf-error-text":
|
|
316
|
-
}),
|
|
317
|
-
|
|
311
|
+
}, Me = le(async () => ({ default: (await me()).MarkdownEditor })), Ne = ({ labels: n, values: r, errors: s, modelSelector: c, modelLabelId: l, onFieldChange: u, onBack: p, onCancel: m, onSubmit: h, isSubmitting: g = !1, markdownEditorTheme: _, styles: v }) => {
|
|
312
|
+
let y = R(), b = o(), [ee, C] = de(), { colors: w, typography: T } = v ?? {}, E = T?.titleClassName ?? "dial-h1-text", D = T?.sectionTitleClassName ?? "dial-body-semi-text", k = T?.sectionSubtitleClassName ?? "dial-tiny-text", re = T?.instructionsLabelClassName ?? "dial-body-semi-text mb-1", j = T?.instructionsErrorClassName ?? "dial-small-text", ie = i({
|
|
313
|
+
"--stcf-details-border": w?.detailsColumnBorder,
|
|
314
|
+
"--stcf-subtitle-text": w?.sectionSubtitleText,
|
|
315
|
+
"--stcf-error-text": w?.instructionsErrorText
|
|
316
|
+
}), M = (e) => {
|
|
317
|
+
C(Te.test(e.target.value) ? void 0 : n.timeInvalidLabel), u("time", e.target.value);
|
|
318
|
+
}, ae = (e) => {
|
|
319
|
+
C(void 0), u("time", typeof e == "string" ? e : "");
|
|
320
|
+
}, N = r.repeat !== q.OneTime && r.repeat !== q.Hourly;
|
|
321
|
+
L(() => {
|
|
322
|
+
N || C(void 0);
|
|
323
|
+
}, [N]);
|
|
324
|
+
let P = N ? ee ?? s.time : void 0, F = g || !r.displayName.trim() || !r.modelId || !r.prompt.trim() || N && !r.time || !!P;
|
|
325
|
+
return /* @__PURE__ */ V(pe, {
|
|
318
326
|
labels: {
|
|
319
327
|
title: n.pageTitle,
|
|
320
328
|
backButtonLabel: n.backButtonLabel,
|
|
@@ -326,32 +334,32 @@ var H = {
|
|
|
326
334
|
onCancel: m,
|
|
327
335
|
onSubmit: h,
|
|
328
336
|
isCancelDisabled: g,
|
|
329
|
-
isSubmitDisabled:
|
|
337
|
+
isSubmitDisabled: F,
|
|
330
338
|
isSubmitting: g,
|
|
331
339
|
styles: {
|
|
332
|
-
colors: { background:
|
|
340
|
+
colors: { background: w?.background },
|
|
333
341
|
header: {
|
|
334
|
-
colors: { borderColor:
|
|
335
|
-
typography: { fontClassName:
|
|
342
|
+
colors: { borderColor: w?.headerBorder },
|
|
343
|
+
typography: { fontClassName: E }
|
|
336
344
|
},
|
|
337
345
|
cssVars: ie
|
|
338
346
|
},
|
|
339
|
-
left: /* @__PURE__ */
|
|
347
|
+
left: /* @__PURE__ */ H("div", {
|
|
340
348
|
role: "group",
|
|
341
349
|
"aria-label": n.detailsSectionTitle,
|
|
342
350
|
className: a("flex flex-1 flex-col gap-5 border-e px-4 py-6 desktop:px-8", Y.detailsColumn),
|
|
343
351
|
children: [
|
|
344
|
-
/* @__PURE__ */
|
|
352
|
+
/* @__PURE__ */ H("div", {
|
|
345
353
|
className: "flex flex-col gap-1",
|
|
346
|
-
children: [/* @__PURE__ */
|
|
347
|
-
className:
|
|
354
|
+
children: [/* @__PURE__ */ V("h2", {
|
|
355
|
+
className: D,
|
|
348
356
|
children: n.detailsSectionTitle
|
|
349
|
-
}), /* @__PURE__ */
|
|
350
|
-
className: a(
|
|
357
|
+
}), /* @__PURE__ */ V("p", {
|
|
358
|
+
className: a(k, Y.sectionSubtitle),
|
|
351
359
|
children: n.detailsSectionSubtitle
|
|
352
360
|
})]
|
|
353
361
|
}),
|
|
354
|
-
/* @__PURE__ */
|
|
362
|
+
/* @__PURE__ */ V(x, {
|
|
355
363
|
id: "scheduled-task-display-name",
|
|
356
364
|
value: r.displayName,
|
|
357
365
|
onChange: (e) => u("displayName", e ?? ""),
|
|
@@ -362,7 +370,7 @@ var H = {
|
|
|
362
370
|
invalid: !!s.displayName,
|
|
363
371
|
error: s.displayName
|
|
364
372
|
}),
|
|
365
|
-
/* @__PURE__ */
|
|
373
|
+
/* @__PURE__ */ V(A, {
|
|
366
374
|
id: "scheduled-task-description",
|
|
367
375
|
value: r.description ?? "",
|
|
368
376
|
onChange: (e) => u("description", e),
|
|
@@ -372,25 +380,25 @@ var H = {
|
|
|
372
380
|
error: s.description,
|
|
373
381
|
caption: r.description ? `${r.description.length}/500` : void 0
|
|
374
382
|
}),
|
|
375
|
-
/* @__PURE__ */
|
|
383
|
+
/* @__PURE__ */ H("div", {
|
|
376
384
|
className: "flex flex-col gap-1",
|
|
377
385
|
children: [
|
|
378
|
-
/* @__PURE__ */
|
|
386
|
+
/* @__PURE__ */ V(S, {
|
|
379
387
|
id: l,
|
|
380
388
|
label: n.modelOrAgentLabel,
|
|
381
389
|
required: !0
|
|
382
390
|
}),
|
|
383
391
|
c,
|
|
384
|
-
s.modelId && /* @__PURE__ */
|
|
385
|
-
className: a(
|
|
392
|
+
s.modelId && /* @__PURE__ */ V("p", {
|
|
393
|
+
className: a(j, Y.instructionsError),
|
|
386
394
|
children: s.modelId
|
|
387
395
|
})
|
|
388
396
|
]
|
|
389
397
|
}),
|
|
390
|
-
/* @__PURE__ */
|
|
398
|
+
/* @__PURE__ */ H("div", {
|
|
391
399
|
className: "flex flex-col gap-3",
|
|
392
400
|
children: [
|
|
393
|
-
/* @__PURE__ */
|
|
401
|
+
/* @__PURE__ */ V(ne, {
|
|
394
402
|
labelProps: { label: n.repeatLabel },
|
|
395
403
|
value: r.repeat,
|
|
396
404
|
onChange: (e) => u("repeat", e),
|
|
@@ -399,59 +407,62 @@ var H = {
|
|
|
399
407
|
label: e.label
|
|
400
408
|
}))
|
|
401
409
|
}),
|
|
402
|
-
r.repeat === q.OneTime && /* @__PURE__ */
|
|
410
|
+
r.repeat === q.OneTime && /* @__PURE__ */ H("div", {
|
|
403
411
|
className: "flex flex-col gap-1",
|
|
404
|
-
children: [/* @__PURE__ */
|
|
412
|
+
children: [/* @__PURE__ */ V(d, {
|
|
405
413
|
id: "scheduled-task-run-at",
|
|
406
414
|
mode: f.DateTime,
|
|
407
|
-
value:
|
|
408
|
-
onChange: (e) => u("runAt",
|
|
415
|
+
value: Ee(r.runAt),
|
|
416
|
+
onChange: (e) => u("runAt", De(e)),
|
|
409
417
|
labelProps: {
|
|
410
418
|
label: n.runAtLabel,
|
|
411
419
|
required: !0
|
|
412
420
|
},
|
|
413
421
|
invalid: !!s.runAt
|
|
414
|
-
}), s.runAt && /* @__PURE__ */
|
|
415
|
-
className: a(
|
|
422
|
+
}), s.runAt && /* @__PURE__ */ V("p", {
|
|
423
|
+
className: a(j, Y.instructionsError),
|
|
416
424
|
children: s.runAt
|
|
417
425
|
})]
|
|
418
426
|
}),
|
|
419
|
-
r.repeat !== q.OneTime && /* @__PURE__ */
|
|
420
|
-
|
|
427
|
+
r.repeat !== q.OneTime && /* @__PURE__ */ H(fe, { children: [
|
|
428
|
+
N && /* @__PURE__ */ H("div", {
|
|
421
429
|
className: "flex flex-col gap-1",
|
|
422
|
-
children: [/* @__PURE__ */
|
|
430
|
+
children: [/* @__PURE__ */ V(d, {
|
|
423
431
|
id: "scheduled-task-time",
|
|
424
432
|
mode: f.Time,
|
|
425
433
|
value: r.time,
|
|
426
|
-
onChange:
|
|
434
|
+
onChange: ae,
|
|
435
|
+
onBlur: M,
|
|
427
436
|
labelProps: {
|
|
428
437
|
label: n.timeLabel,
|
|
429
438
|
required: !0
|
|
430
439
|
},
|
|
431
|
-
invalid: !!
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
440
|
+
invalid: !!P,
|
|
441
|
+
disabled: g,
|
|
442
|
+
showTimezone: !0
|
|
443
|
+
}), P && /* @__PURE__ */ V("p", {
|
|
444
|
+
className: a(j, Y.instructionsError),
|
|
445
|
+
children: P
|
|
435
446
|
})]
|
|
436
447
|
}),
|
|
437
|
-
r.repeat === q.Weekly && /* @__PURE__ */
|
|
448
|
+
r.repeat === q.Weekly && /* @__PURE__ */ H("div", {
|
|
438
449
|
className: "flex flex-col gap-1",
|
|
439
|
-
children: [/* @__PURE__ */
|
|
450
|
+
children: [/* @__PURE__ */ V(d, {
|
|
440
451
|
id: "scheduled-task-day-of-week",
|
|
441
452
|
mode: f.Weekday,
|
|
442
|
-
value:
|
|
443
|
-
onChange: (e) => u("dayOfWeek",
|
|
453
|
+
value: Ae(r.dayOfWeek),
|
|
454
|
+
onChange: (e) => u("dayOfWeek", je(e)),
|
|
444
455
|
labelProps: {
|
|
445
456
|
label: n.dayOfWeekLabel,
|
|
446
457
|
required: !0
|
|
447
458
|
},
|
|
448
459
|
invalid: !!s.dayOfWeek
|
|
449
|
-
}), s.dayOfWeek && /* @__PURE__ */
|
|
450
|
-
className: a(
|
|
460
|
+
}), s.dayOfWeek && /* @__PURE__ */ V("p", {
|
|
461
|
+
className: a(j, Y.instructionsError),
|
|
451
462
|
children: s.dayOfWeek
|
|
452
463
|
})]
|
|
453
464
|
}),
|
|
454
|
-
r.repeat === q.Monthly && /* @__PURE__ */
|
|
465
|
+
r.repeat === q.Monthly && /* @__PURE__ */ V(x, {
|
|
455
466
|
id: "scheduled-task-day-of-month",
|
|
456
467
|
value: r.dayOfMonth ?? "",
|
|
457
468
|
onChange: (e) => u("dayOfMonth", e ?? ""),
|
|
@@ -462,7 +473,7 @@ var H = {
|
|
|
462
473
|
invalid: !!s.dayOfMonth,
|
|
463
474
|
error: s.dayOfMonth
|
|
464
475
|
}),
|
|
465
|
-
r.repeat === q.Hourly && /* @__PURE__ */
|
|
476
|
+
r.repeat === q.Hourly && /* @__PURE__ */ V(te, {
|
|
466
477
|
id: "scheduled-task-minute",
|
|
467
478
|
integer: !0,
|
|
468
479
|
min: 0,
|
|
@@ -476,34 +487,34 @@ var H = {
|
|
|
476
487
|
invalid: !!s.minute,
|
|
477
488
|
error: s.minute
|
|
478
489
|
}),
|
|
479
|
-
/* @__PURE__ */
|
|
480
|
-
className: "flex flex-row gap-3
|
|
481
|
-
children: [/* @__PURE__ */
|
|
490
|
+
/* @__PURE__ */ H("div", {
|
|
491
|
+
className: "flex flex-row gap-3",
|
|
492
|
+
children: [/* @__PURE__ */ H("div", {
|
|
482
493
|
className: "flex flex-1 flex-col gap-1",
|
|
483
|
-
children: [/* @__PURE__ */
|
|
494
|
+
children: [/* @__PURE__ */ V(d, {
|
|
484
495
|
id: "scheduled-task-start-date",
|
|
485
496
|
mode: f.Date,
|
|
486
|
-
value:
|
|
487
|
-
onChange: (e) => u("startDate",
|
|
497
|
+
value: Oe(r.startDate),
|
|
498
|
+
onChange: (e) => u("startDate", ke(e)),
|
|
488
499
|
labelProps: { label: n.startDateLabel },
|
|
489
500
|
placeholder: n.startDatePlaceholder,
|
|
490
501
|
invalid: !!s.startDate
|
|
491
|
-
}), s.startDate && /* @__PURE__ */
|
|
492
|
-
className: a(
|
|
502
|
+
}), s.startDate && /* @__PURE__ */ V("p", {
|
|
503
|
+
className: a(j, Y.instructionsError),
|
|
493
504
|
children: s.startDate
|
|
494
505
|
})]
|
|
495
|
-
}), /* @__PURE__ */
|
|
506
|
+
}), /* @__PURE__ */ H("div", {
|
|
496
507
|
className: "flex flex-1 flex-col gap-1",
|
|
497
|
-
children: [/* @__PURE__ */
|
|
508
|
+
children: [/* @__PURE__ */ V(d, {
|
|
498
509
|
id: "scheduled-task-end-date",
|
|
499
510
|
mode: f.Date,
|
|
500
|
-
value:
|
|
501
|
-
onChange: (e) => u("endDate",
|
|
511
|
+
value: Oe(r.endDate),
|
|
512
|
+
onChange: (e) => u("endDate", ke(e)),
|
|
502
513
|
labelProps: { label: n.endDateLabel },
|
|
503
514
|
placeholder: n.endDatePlaceholder,
|
|
504
515
|
invalid: !!s.endDate
|
|
505
|
-
}), s.endDate && /* @__PURE__ */
|
|
506
|
-
className: a(
|
|
516
|
+
}), s.endDate && /* @__PURE__ */ V("p", {
|
|
517
|
+
className: a(j, Y.instructionsError),
|
|
507
518
|
children: s.endDate
|
|
508
519
|
})]
|
|
509
520
|
})]
|
|
@@ -513,33 +524,33 @@ var H = {
|
|
|
513
524
|
})
|
|
514
525
|
]
|
|
515
526
|
}),
|
|
516
|
-
children: /* @__PURE__ */
|
|
527
|
+
children: /* @__PURE__ */ H("div", {
|
|
517
528
|
role: "group",
|
|
518
529
|
"aria-label": n.configurationSectionTitle,
|
|
519
530
|
className: "flex flex-1 flex-col gap-5 px-4 py-6 desktop:px-8",
|
|
520
|
-
children: [/* @__PURE__ */
|
|
531
|
+
children: [/* @__PURE__ */ H("div", {
|
|
521
532
|
className: "flex flex-col gap-1",
|
|
522
|
-
children: [/* @__PURE__ */
|
|
523
|
-
className:
|
|
533
|
+
children: [/* @__PURE__ */ V("h2", {
|
|
534
|
+
className: D,
|
|
524
535
|
children: n.configurationSectionTitle
|
|
525
|
-
}), /* @__PURE__ */
|
|
526
|
-
className: a(
|
|
536
|
+
}), /* @__PURE__ */ V("p", {
|
|
537
|
+
className: a(k, Y.sectionSubtitle),
|
|
527
538
|
children: n.configurationSectionSubtitle
|
|
528
539
|
})]
|
|
529
|
-
}), /* @__PURE__ */
|
|
540
|
+
}), /* @__PURE__ */ H("div", {
|
|
530
541
|
className: "flex flex-1 flex-col gap-1",
|
|
531
542
|
children: [
|
|
532
|
-
/* @__PURE__ */
|
|
543
|
+
/* @__PURE__ */ V("label", {
|
|
533
544
|
htmlFor: y,
|
|
534
|
-
className:
|
|
545
|
+
className: re,
|
|
535
546
|
children: n.instructionsLabel
|
|
536
547
|
}),
|
|
537
|
-
/* @__PURE__ */
|
|
548
|
+
/* @__PURE__ */ V("div", {
|
|
538
549
|
ref: b,
|
|
539
|
-
className: a(e, t),
|
|
540
|
-
children: /* @__PURE__ */
|
|
541
|
-
fallback: /* @__PURE__ */
|
|
542
|
-
children: /* @__PURE__ */
|
|
550
|
+
className: a("w-full max-w-[996px]", e, t),
|
|
551
|
+
children: /* @__PURE__ */ V(ce, {
|
|
552
|
+
fallback: /* @__PURE__ */ V(O, {}),
|
|
553
|
+
children: /* @__PURE__ */ V(Me, {
|
|
543
554
|
id: y,
|
|
544
555
|
value: r.prompt,
|
|
545
556
|
onChange: (e) => u("prompt", e),
|
|
@@ -548,8 +559,8 @@ var H = {
|
|
|
548
559
|
})
|
|
549
560
|
})
|
|
550
561
|
}),
|
|
551
|
-
s.prompt && /* @__PURE__ */
|
|
552
|
-
className: a(
|
|
562
|
+
s.prompt && /* @__PURE__ */ V("p", {
|
|
563
|
+
className: a(j, Y.instructionsError),
|
|
553
564
|
children: s.prompt
|
|
554
565
|
})
|
|
555
566
|
]
|
|
@@ -558,53 +569,53 @@ var H = {
|
|
|
558
569
|
});
|
|
559
570
|
}, X = /* @__PURE__ */ function(e) {
|
|
560
571
|
return e.Details = "details", e.Configuration = "configuration", e.History = "history", e;
|
|
561
|
-
}({}),
|
|
572
|
+
}({}), Pe = /* @__PURE__ */ function(e) {
|
|
562
573
|
return e.Card = "card", e.Flow = "flow", e;
|
|
563
|
-
}({}),
|
|
574
|
+
}({}), Fe = { subtitleText: "_subtitleText_1i4x2_3" }, Ie = ({ instructionsLabel: e, instructionsMarkdown: t, renderInstructions: r, fieldLabelClassName: i = "dial-tiny-text" }) => /* @__PURE__ */ H("div", {
|
|
564
575
|
role: "group",
|
|
565
576
|
"aria-label": e,
|
|
566
577
|
className: "flex flex-col gap-1",
|
|
567
|
-
children: [/* @__PURE__ */
|
|
568
|
-
className: a(i,
|
|
578
|
+
children: [/* @__PURE__ */ V("span", {
|
|
579
|
+
className: a(i, Fe.subtitleText),
|
|
569
580
|
children: e
|
|
570
|
-
}), t && (r ? r(t) : /* @__PURE__ */
|
|
571
|
-
}),
|
|
572
|
-
t && /* @__PURE__ */
|
|
581
|
+
}), t && (r ? r(t) : /* @__PURE__ */ V(n, { content: t }))]
|
|
582
|
+
}), Le = { subtitleText: "_subtitleText_1i4x2_3" }, Re = ({ labels: e, description: t, modelLabel: n, repeatsLabel: r, activeWindowLabel: i, fieldLabelClassName: o = "dial-tiny-text", fieldValueClassName: s = "dial-small-text" }) => /* @__PURE__ */ H(fe, { children: [
|
|
583
|
+
t && /* @__PURE__ */ H("div", {
|
|
573
584
|
className: "flex flex-col gap-1",
|
|
574
|
-
children: [/* @__PURE__ */
|
|
575
|
-
className: a(o,
|
|
585
|
+
children: [/* @__PURE__ */ V("span", {
|
|
586
|
+
className: a(o, Le.subtitleText),
|
|
576
587
|
children: e.descriptionLabel
|
|
577
|
-
}), /* @__PURE__ */
|
|
588
|
+
}), /* @__PURE__ */ V("p", {
|
|
578
589
|
className: s,
|
|
579
590
|
children: t
|
|
580
591
|
})]
|
|
581
592
|
}),
|
|
582
|
-
n && /* @__PURE__ */
|
|
593
|
+
n && /* @__PURE__ */ H("div", {
|
|
583
594
|
className: "flex flex-col gap-1",
|
|
584
|
-
children: [/* @__PURE__ */
|
|
585
|
-
className: a(o,
|
|
595
|
+
children: [/* @__PURE__ */ V("span", {
|
|
596
|
+
className: a(o, Le.subtitleText),
|
|
586
597
|
children: e.modelLabel
|
|
587
|
-
}), /* @__PURE__ */
|
|
598
|
+
}), /* @__PURE__ */ V("p", {
|
|
588
599
|
className: s,
|
|
589
600
|
children: n
|
|
590
601
|
})]
|
|
591
602
|
}),
|
|
592
|
-
r && /* @__PURE__ */
|
|
603
|
+
r && /* @__PURE__ */ H("div", {
|
|
593
604
|
className: "flex flex-col gap-1",
|
|
594
|
-
children: [/* @__PURE__ */
|
|
595
|
-
className: a(o,
|
|
605
|
+
children: [/* @__PURE__ */ V("span", {
|
|
606
|
+
className: a(o, Le.subtitleText),
|
|
596
607
|
children: e.repeatsLabel
|
|
597
|
-
}), /* @__PURE__ */
|
|
608
|
+
}), /* @__PURE__ */ V("p", {
|
|
598
609
|
className: s,
|
|
599
610
|
children: r
|
|
600
611
|
})]
|
|
601
612
|
}),
|
|
602
|
-
i && /* @__PURE__ */
|
|
613
|
+
i && /* @__PURE__ */ H("div", {
|
|
603
614
|
className: "flex flex-col gap-1",
|
|
604
|
-
children: [/* @__PURE__ */
|
|
605
|
-
className: a(o,
|
|
615
|
+
children: [/* @__PURE__ */ V("span", {
|
|
616
|
+
className: a(o, Le.subtitleText),
|
|
606
617
|
children: e.activeWindowLabel
|
|
607
|
-
}), /* @__PURE__ */
|
|
618
|
+
}), /* @__PURE__ */ V("p", {
|
|
608
619
|
className: s,
|
|
609
620
|
children: i
|
|
610
621
|
})]
|
|
@@ -618,25 +629,25 @@ var H = {
|
|
|
618
629
|
missedIcon: "_missedIcon_1bug5_13",
|
|
619
630
|
currentRun: "_currentRun_1bug5_17",
|
|
620
631
|
unreadDot: "_unreadDot_1bug5_21"
|
|
621
|
-
},
|
|
632
|
+
}, ze = ({ status: e }) => {
|
|
622
633
|
switch (e) {
|
|
623
|
-
case Z.Success: return /* @__PURE__ */
|
|
634
|
+
case Z.Success: return /* @__PURE__ */ V(M, {
|
|
624
635
|
size: m.SM,
|
|
625
636
|
className: Q.successIcon,
|
|
626
637
|
"aria-hidden": !0,
|
|
627
638
|
stroke: h
|
|
628
639
|
});
|
|
629
|
-
case Z.Error: return /* @__PURE__ */
|
|
640
|
+
case Z.Error: return /* @__PURE__ */ V(ae, {
|
|
630
641
|
size: m.SM,
|
|
631
642
|
className: Q.errorIcon,
|
|
632
643
|
"aria-hidden": !0,
|
|
633
644
|
stroke: h
|
|
634
645
|
});
|
|
635
|
-
case Z.InProgress: return /* @__PURE__ */
|
|
646
|
+
case Z.InProgress: return /* @__PURE__ */ V("span", {
|
|
636
647
|
"aria-hidden": !0,
|
|
637
|
-
children: /* @__PURE__ */
|
|
648
|
+
children: /* @__PURE__ */ V(O, { size: m.SM })
|
|
638
649
|
});
|
|
639
|
-
case Z.Missed: return /* @__PURE__ */
|
|
650
|
+
case Z.Missed: return /* @__PURE__ */ V(j, {
|
|
640
651
|
size: m.SM,
|
|
641
652
|
className: Q.missedIcon,
|
|
642
653
|
"aria-hidden": !0,
|
|
@@ -644,7 +655,7 @@ var H = {
|
|
|
644
655
|
});
|
|
645
656
|
default: return null;
|
|
646
657
|
}
|
|
647
|
-
},
|
|
658
|
+
}, Be = ({ items: e, isLoading: t = !1, isLoadingMore: n = !1, skeletonCount: r = 6, error: o, onRetry: s, currentRunId: c, onRunClick: l, labels: u, footer: d, styles: f }) => {
|
|
648
659
|
let { colors: p, typography: m } = f ?? {}, g = m?.runTimestampClassName ?? "dial-small-text", _ = m?.subtitleClassName ?? "dial-body-text", y = u.unreadIndicatorLabel ?? "Unread", b = i({
|
|
649
660
|
"--strhl-success-icon": p?.successIconColor,
|
|
650
661
|
"--strhl-error-icon": p?.errorIconColor,
|
|
@@ -654,7 +665,7 @@ var H = {
|
|
|
654
665
|
"--strhl-unread-dot": p?.unreadDotColor
|
|
655
666
|
}), x = (e) => {
|
|
656
667
|
let t = u.runStatusLabels[e.status], n = e.id === c, r = [e.isUnread ? y : void 0, n ? u.currentRunLabel : void 0].filter((e) => !!e), i = [`${t} ${e.timestampLabel}`, ...r].join(" — "), o = !!e.conversationId && !!l;
|
|
657
|
-
return /* @__PURE__ */
|
|
668
|
+
return /* @__PURE__ */ H("li", {
|
|
658
669
|
...o ? {
|
|
659
670
|
role: "button",
|
|
660
671
|
tabIndex: 0,
|
|
@@ -665,107 +676,107 @@ var H = {
|
|
|
665
676
|
} : {},
|
|
666
677
|
"aria-label": i,
|
|
667
678
|
"aria-current": n ? "true" : void 0,
|
|
668
|
-
className: a("flex h-8 items-center justify-between gap-2 rounded-full pe-2 ps-5", n && Q.currentRun, o && "cursor-pointer"),
|
|
669
|
-
children: [/* @__PURE__ */
|
|
679
|
+
className: a("flex h-8 max-w-[328px] items-center justify-between gap-2 rounded-full pe-2 ps-0 desktop:ps-5", n && Q.currentRun, o && "cursor-pointer"),
|
|
680
|
+
children: [/* @__PURE__ */ H("span", {
|
|
670
681
|
className: "flex items-center gap-2 truncate",
|
|
671
|
-
children: [/* @__PURE__ */
|
|
682
|
+
children: [/* @__PURE__ */ V("span", {
|
|
672
683
|
className: "relative flex size-3 shrink-0 items-center justify-center",
|
|
673
|
-
children: e.isUnread && /* @__PURE__ */
|
|
684
|
+
children: e.isUnread && /* @__PURE__ */ V("span", {
|
|
674
685
|
className: a("size-[5.33px] rounded-full", Q.unreadDot),
|
|
675
686
|
"aria-hidden": !0
|
|
676
687
|
})
|
|
677
|
-
}), /* @__PURE__ */
|
|
688
|
+
}), /* @__PURE__ */ V("span", {
|
|
678
689
|
className: a(g, "truncate"),
|
|
679
690
|
children: e.timestampLabel
|
|
680
691
|
})]
|
|
681
|
-
}), /* @__PURE__ */
|
|
692
|
+
}), /* @__PURE__ */ V("span", {
|
|
682
693
|
className: "flex h-8 w-14 shrink-0 items-center justify-end",
|
|
683
|
-
children: /* @__PURE__ */
|
|
694
|
+
children: /* @__PURE__ */ V(ze, { status: e.status })
|
|
684
695
|
})]
|
|
685
696
|
}, e.id);
|
|
686
|
-
}, S = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */
|
|
697
|
+
}, S = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */ H("li", {
|
|
687
698
|
"aria-hidden": "true",
|
|
688
|
-
className: "flex h-8 items-center justify-between gap-2 pe-2 ps-5",
|
|
689
|
-
children: [/* @__PURE__ */
|
|
699
|
+
className: "flex h-8 max-w-[328px] items-center justify-between gap-2 pe-2 ps-0 desktop:ps-5",
|
|
700
|
+
children: [/* @__PURE__ */ V(E, {
|
|
690
701
|
variant: D.Rectangular,
|
|
691
702
|
width: "160px",
|
|
692
703
|
height: "16px"
|
|
693
|
-
}), /* @__PURE__ */
|
|
704
|
+
}), /* @__PURE__ */ V(E, {
|
|
694
705
|
variant: D.Rectangular,
|
|
695
706
|
width: "16px",
|
|
696
707
|
height: "16px",
|
|
697
708
|
className: "shrink-0 rounded-full"
|
|
698
709
|
})]
|
|
699
710
|
}, `history-skeleton-${t}`));
|
|
700
|
-
return t && e.length === 0 ? /* @__PURE__ */
|
|
711
|
+
return t && e.length === 0 ? /* @__PURE__ */ V("ul", {
|
|
701
712
|
style: b,
|
|
702
713
|
"aria-label": u.historyTitle,
|
|
703
714
|
className: "flex flex-col gap-0.5",
|
|
704
715
|
children: S(r)
|
|
705
|
-
}) : o && e.length === 0 ? /* @__PURE__ */
|
|
716
|
+
}) : o && e.length === 0 ? /* @__PURE__ */ H("div", {
|
|
706
717
|
style: b,
|
|
707
718
|
className: "flex flex-col items-start gap-3",
|
|
708
|
-
children: [/* @__PURE__ */
|
|
719
|
+
children: [/* @__PURE__ */ V("p", {
|
|
709
720
|
role: "alert",
|
|
710
721
|
className: a(_, Q.subtitleText),
|
|
711
722
|
children: u.errorLabel
|
|
712
|
-
}), /* @__PURE__ */
|
|
723
|
+
}), /* @__PURE__ */ V(v, {
|
|
713
724
|
label: u.retryLabel,
|
|
714
725
|
onClick: s
|
|
715
726
|
})]
|
|
716
|
-
}) : e.length === 0 ? /* @__PURE__ */
|
|
727
|
+
}) : e.length === 0 ? /* @__PURE__ */ H("div", {
|
|
717
728
|
style: b,
|
|
718
729
|
className: "flex w-full flex-col items-center justify-center gap-2 py-4",
|
|
719
|
-
children: [/* @__PURE__ */
|
|
730
|
+
children: [/* @__PURE__ */ V(N, {
|
|
720
731
|
size: 44,
|
|
721
732
|
stroke: h,
|
|
722
733
|
className: Q.subtitleText,
|
|
723
734
|
"aria-hidden": !0
|
|
724
|
-
}), /* @__PURE__ */
|
|
735
|
+
}), /* @__PURE__ */ V("p", {
|
|
725
736
|
role: "status",
|
|
726
737
|
className: g,
|
|
727
738
|
children: u.emptyLabel
|
|
728
739
|
})]
|
|
729
|
-
}) : /* @__PURE__ */
|
|
740
|
+
}) : /* @__PURE__ */ H("ul", {
|
|
730
741
|
style: b,
|
|
731
742
|
"aria-label": u.historyTitle,
|
|
732
743
|
className: "flex flex-col gap-0.5",
|
|
733
744
|
children: [
|
|
734
745
|
e.map(x),
|
|
735
746
|
n && S(r),
|
|
736
|
-
o ? /* @__PURE__ */
|
|
747
|
+
o ? /* @__PURE__ */ H("li", {
|
|
737
748
|
className: "flex flex-col items-start gap-3 px-5 py-2",
|
|
738
|
-
children: [/* @__PURE__ */
|
|
749
|
+
children: [/* @__PURE__ */ V("p", {
|
|
739
750
|
role: "alert",
|
|
740
751
|
className: a(_, Q.subtitleText),
|
|
741
752
|
children: u.errorLabel
|
|
742
|
-
}), /* @__PURE__ */
|
|
753
|
+
}), /* @__PURE__ */ V(v, {
|
|
743
754
|
label: u.retryLabel,
|
|
744
755
|
onClick: s
|
|
745
756
|
})]
|
|
746
757
|
}) : d
|
|
747
758
|
]
|
|
748
759
|
});
|
|
749
|
-
},
|
|
760
|
+
}, Ve = {
|
|
750
761
|
historyCard: "_historyCard_qqobi_4",
|
|
751
762
|
subtitleText: "_subtitleText_qqobi_8"
|
|
752
|
-
},
|
|
753
|
-
let g = e ===
|
|
763
|
+
}, He = ({ variant: e, labels: t, nextRunLabel: n, items: r, isLoading: i = !1, isLoadingMore: o = !1, skeletonCount: s = 6, error: c, onRetry: l, hasMore: u = !1, onLoadMore: d, onRunClick: f, runTimestampClassName: p = "dial-small-text", sectionTitleClassName: m = "dial-body-semi-text", colors: h }) => {
|
|
764
|
+
let g = e === Pe.Card, _ = g ? a("sticky bottom-0 z-10 rounded-b-xl px-6 pb-5 pt-2", Ve.historyCard) : "pt-2", y = d && u && t.historyShowMoreLabel ? /* @__PURE__ */ V("li", {
|
|
754
765
|
className: _,
|
|
755
|
-
children: /* @__PURE__ */
|
|
766
|
+
children: /* @__PURE__ */ V(v, {
|
|
756
767
|
label: t.historyShowMoreLabel,
|
|
757
768
|
onClick: d,
|
|
758
769
|
disabled: o
|
|
759
770
|
})
|
|
760
|
-
}) : void 0, b = n ? /* @__PURE__ */
|
|
761
|
-
className: a(p,
|
|
771
|
+
}) : void 0, b = n ? /* @__PURE__ */ V("p", {
|
|
772
|
+
className: a(p, Ve.subtitleText),
|
|
762
773
|
children: n
|
|
763
|
-
}) : void 0, x = t.historyLoadingMoreLabel ? /* @__PURE__ */
|
|
774
|
+
}) : void 0, x = t.historyLoadingMoreLabel ? /* @__PURE__ */ V("span", {
|
|
764
775
|
role: "status",
|
|
765
776
|
"aria-live": "polite",
|
|
766
777
|
className: "sr-only",
|
|
767
778
|
children: o ? t.historyLoadingMoreLabel : ""
|
|
768
|
-
}) : void 0, S = /* @__PURE__ */
|
|
779
|
+
}) : void 0, S = /* @__PURE__ */ V(Be, {
|
|
769
780
|
items: r,
|
|
770
781
|
isLoading: i,
|
|
771
782
|
isLoadingMore: o,
|
|
@@ -787,23 +798,23 @@ var H = {
|
|
|
787
798
|
colors: h
|
|
788
799
|
}
|
|
789
800
|
});
|
|
790
|
-
return g ? /* @__PURE__ */
|
|
791
|
-
className: a("flex max-h-[70vh] w-full flex-col overflow-y-auto rounded-xl shadow-md desktop:w-[360px]",
|
|
792
|
-
children: [/* @__PURE__ */
|
|
793
|
-
className: a("sticky top-0 z-10 flex flex-col gap-4 rounded-t-xl px-6 pb-2 pt-5",
|
|
801
|
+
return g ? /* @__PURE__ */ H("div", {
|
|
802
|
+
className: a("flex max-h-[70vh] w-full flex-col overflow-y-auto rounded-xl shadow-md desktop:w-[360px]", Ve.historyCard),
|
|
803
|
+
children: [/* @__PURE__ */ H("div", {
|
|
804
|
+
className: a("sticky top-0 z-10 flex flex-col gap-4 rounded-t-xl px-6 pb-2 pt-5", Ve.historyCard),
|
|
794
805
|
children: [
|
|
795
|
-
/* @__PURE__ */
|
|
806
|
+
/* @__PURE__ */ V("h2", {
|
|
796
807
|
className: m,
|
|
797
808
|
children: t.historyTitle
|
|
798
809
|
}),
|
|
799
810
|
b,
|
|
800
811
|
x
|
|
801
812
|
]
|
|
802
|
-
}), /* @__PURE__ */
|
|
813
|
+
}), /* @__PURE__ */ V("div", {
|
|
803
814
|
className: "flex flex-1 flex-col gap-4 px-6 pb-2",
|
|
804
815
|
children: S
|
|
805
816
|
})]
|
|
806
|
-
}) : /* @__PURE__ */
|
|
817
|
+
}) : /* @__PURE__ */ H("div", {
|
|
807
818
|
className: "flex flex-col gap-4",
|
|
808
819
|
children: [
|
|
809
820
|
b,
|
|
@@ -816,14 +827,14 @@ var H = {
|
|
|
816
827
|
header: "_header_178k1_8",
|
|
817
828
|
detailsColumn: "_detailsColumn_178k1_12",
|
|
818
829
|
subtitleText: "_subtitleText_178k1_16"
|
|
819
|
-
},
|
|
820
|
-
let { colors:
|
|
821
|
-
"--stdv-bg":
|
|
822
|
-
"--stdv-header-border":
|
|
823
|
-
"--stdv-details-border":
|
|
824
|
-
"--stdv-subtitle-text":
|
|
825
|
-
"--stdv-history-bg":
|
|
826
|
-
}),
|
|
830
|
+
}, Ue = ({ labels: e, onBack: t, onEdit: n, onDelete: r, isDeleting: o = !1, isDeleted: c = !1, isActive: l, isActiveUpdating: d = !1, isActiveDisabled: f = !1, onActiveChange: p, displayName: g, isLoading: _ = !1, error: b, onRetry: x, description: S, modelLabel: ee, repeatsLabel: te, activeWindowLabel: w, nextRunLabel: T, instructionsMarkdown: ne, renderInstructions: E, runs: D, runsIsLoading: A = !1, runsIsLoadingMore: j = !1, runsSkeletonCount: M = 6, runsError: ae, onRunsRetry: N, runsHasMore: F = !1, onRunsLoadMore: oe, onRunClick: ce, styles: le }) => {
|
|
831
|
+
let { colors: I, typography: L } = le ?? {}, R = L?.titleClassName ?? "dial-h2-text", z = L?.sectionTitleClassName ?? "dial-body-semi-text", ue = L?.fieldLabelClassName ?? "dial-tiny-text", B = L?.fieldValueClassName ?? "dial-small-text", fe = L?.runTimestampClassName ?? "dial-small-text", pe = i({
|
|
832
|
+
"--stdv-bg": I?.background,
|
|
833
|
+
"--stdv-header-border": I?.headerBorder,
|
|
834
|
+
"--stdv-details-border": I?.detailsColumnBorder,
|
|
835
|
+
"--stdv-subtitle-text": I?.subtitleText,
|
|
836
|
+
"--stdv-history-bg": I?.historyCardBackground
|
|
837
|
+
}), me = s(), [U, W] = de(X.Details), he = [
|
|
827
838
|
{
|
|
828
839
|
id: X.Details,
|
|
829
840
|
label: e.detailsTitle
|
|
@@ -836,7 +847,7 @@ var H = {
|
|
|
836
847
|
id: X.History,
|
|
837
848
|
label: e.historyTitle
|
|
838
849
|
}
|
|
839
|
-
], ge =
|
|
850
|
+
], ge = he.find((e) => e.id === U)?.label ?? e.detailsTitle, _e = /* @__PURE__ */ V(Re, {
|
|
840
851
|
labels: {
|
|
841
852
|
descriptionLabel: e.descriptionLabel,
|
|
842
853
|
modelLabel: e.modelLabel,
|
|
@@ -844,17 +855,17 @@ var H = {
|
|
|
844
855
|
activeWindowLabel: e.activeWindowLabel
|
|
845
856
|
},
|
|
846
857
|
description: S,
|
|
847
|
-
modelLabel:
|
|
848
|
-
repeatsLabel:
|
|
849
|
-
activeWindowLabel:
|
|
850
|
-
fieldLabelClassName:
|
|
851
|
-
fieldValueClassName:
|
|
852
|
-
}), G = /* @__PURE__ */
|
|
858
|
+
modelLabel: ee,
|
|
859
|
+
repeatsLabel: te,
|
|
860
|
+
activeWindowLabel: w,
|
|
861
|
+
fieldLabelClassName: ue,
|
|
862
|
+
fieldValueClassName: B
|
|
863
|
+
}), G = /* @__PURE__ */ V(Ie, {
|
|
853
864
|
instructionsLabel: e.instructionsLabel,
|
|
854
865
|
instructionsMarkdown: ne,
|
|
855
866
|
renderInstructions: E,
|
|
856
|
-
fieldLabelClassName:
|
|
857
|
-
}), ve = (t) => /* @__PURE__ */
|
|
867
|
+
fieldLabelClassName: ue
|
|
868
|
+
}), ve = (t) => /* @__PURE__ */ V(He, {
|
|
858
869
|
variant: t,
|
|
859
870
|
labels: {
|
|
860
871
|
historyTitle: e.historyTitle,
|
|
@@ -868,29 +879,29 @@ var H = {
|
|
|
868
879
|
},
|
|
869
880
|
nextRunLabel: T,
|
|
870
881
|
items: D,
|
|
871
|
-
isLoading:
|
|
872
|
-
isLoadingMore:
|
|
873
|
-
skeletonCount:
|
|
874
|
-
error:
|
|
875
|
-
onRetry:
|
|
876
|
-
hasMore:
|
|
877
|
-
onLoadMore:
|
|
878
|
-
onRunClick:
|
|
879
|
-
runTimestampClassName:
|
|
880
|
-
sectionTitleClassName:
|
|
881
|
-
colors:
|
|
882
|
+
isLoading: A,
|
|
883
|
+
isLoadingMore: j,
|
|
884
|
+
skeletonCount: M,
|
|
885
|
+
error: ae,
|
|
886
|
+
onRetry: N,
|
|
887
|
+
hasMore: F,
|
|
888
|
+
onLoadMore: oe,
|
|
889
|
+
onRunClick: ce,
|
|
890
|
+
runTimestampClassName: fe,
|
|
891
|
+
sectionTitleClassName: z,
|
|
892
|
+
colors: I
|
|
882
893
|
});
|
|
883
|
-
return /* @__PURE__ */
|
|
884
|
-
style:
|
|
894
|
+
return /* @__PURE__ */ H("div", {
|
|
895
|
+
style: pe,
|
|
885
896
|
className: a("flex h-full w-full flex-col overflow-y-auto", $.container),
|
|
886
897
|
children: [
|
|
887
|
-
/* @__PURE__ */
|
|
898
|
+
/* @__PURE__ */ H("div", {
|
|
888
899
|
className: a("flex h-16 shrink-0 items-center justify-between gap-2 border-t px-8 desktop:border-b desktop:border-t-0", $.header),
|
|
889
|
-
children: [/* @__PURE__ */
|
|
900
|
+
children: [/* @__PURE__ */ H("div", {
|
|
890
901
|
className: "flex min-w-0 items-center gap-2",
|
|
891
902
|
children: [
|
|
892
|
-
/* @__PURE__ */
|
|
893
|
-
icon: /* @__PURE__ */
|
|
903
|
+
/* @__PURE__ */ V(y, {
|
|
904
|
+
icon: /* @__PURE__ */ V(ie, {
|
|
894
905
|
size: m.LG,
|
|
895
906
|
className: "rtl:scale-x-[-1]",
|
|
896
907
|
"aria-hidden": !0,
|
|
@@ -899,29 +910,29 @@ var H = {
|
|
|
899
910
|
"aria-label": e.backAriaLabel,
|
|
900
911
|
onClick: t
|
|
901
912
|
}),
|
|
902
|
-
/* @__PURE__ */
|
|
903
|
-
className: a("hidden truncate desktop:block",
|
|
913
|
+
/* @__PURE__ */ V("h1", {
|
|
914
|
+
className: a("hidden truncate desktop:block", R),
|
|
904
915
|
children: g
|
|
905
916
|
}),
|
|
906
|
-
c && /* @__PURE__ */
|
|
907
|
-
className: a("hidden shrink-0 desktop:inline",
|
|
917
|
+
c && /* @__PURE__ */ V("span", {
|
|
918
|
+
className: a("hidden shrink-0 desktop:inline", B, $.subtitleText),
|
|
908
919
|
children: e.deletedStateLabel
|
|
909
920
|
})
|
|
910
921
|
]
|
|
911
|
-
}), /* @__PURE__ */
|
|
922
|
+
}), /* @__PURE__ */ H("div", {
|
|
912
923
|
className: "flex shrink-0 items-center gap-2",
|
|
913
924
|
children: [
|
|
914
|
-
!c && l !== void 0 && /* @__PURE__ */
|
|
925
|
+
!c && l !== void 0 && /* @__PURE__ */ V(k, {
|
|
915
926
|
id: "scheduled-task-active-switch",
|
|
916
927
|
labelProps: { label: e.activeStatusLabel },
|
|
917
928
|
isOn: l,
|
|
918
929
|
disabled: d || f || o,
|
|
919
930
|
onChange: (e) => p?.(e)
|
|
920
931
|
}),
|
|
921
|
-
!c && r && /* @__PURE__ */
|
|
932
|
+
!c && r && /* @__PURE__ */ V(v, {
|
|
922
933
|
variant: u.Danger,
|
|
923
934
|
label: e.deleteButtonLabel,
|
|
924
|
-
iconBefore: /* @__PURE__ */
|
|
935
|
+
iconBefore: /* @__PURE__ */ V(se, {
|
|
925
936
|
size: m.SM,
|
|
926
937
|
"aria-hidden": !0,
|
|
927
938
|
stroke: h
|
|
@@ -930,9 +941,9 @@ var H = {
|
|
|
930
941
|
disabled: o,
|
|
931
942
|
className: "shrink-0"
|
|
932
943
|
}),
|
|
933
|
-
!c && n && /* @__PURE__ */
|
|
944
|
+
!c && n && /* @__PURE__ */ V(C, {
|
|
934
945
|
label: e.editButtonLabel,
|
|
935
|
-
iconBefore: /* @__PURE__ */
|
|
946
|
+
iconBefore: /* @__PURE__ */ V(P, {
|
|
936
947
|
size: m.SM,
|
|
937
948
|
"aria-hidden": !0,
|
|
938
949
|
stroke: h
|
|
@@ -944,98 +955,98 @@ var H = {
|
|
|
944
955
|
]
|
|
945
956
|
})]
|
|
946
957
|
}),
|
|
947
|
-
/* @__PURE__ */
|
|
958
|
+
/* @__PURE__ */ H("div", {
|
|
948
959
|
className: "flex min-w-0 items-center gap-2 px-8 py-3 desktop:hidden",
|
|
949
|
-
children: [/* @__PURE__ */
|
|
950
|
-
className: a("truncate",
|
|
960
|
+
children: [/* @__PURE__ */ V("h1", {
|
|
961
|
+
className: a("truncate", R),
|
|
951
962
|
children: g
|
|
952
|
-
}), c && /* @__PURE__ */
|
|
953
|
-
className: a("shrink-0",
|
|
963
|
+
}), c && /* @__PURE__ */ V("span", {
|
|
964
|
+
className: a("shrink-0", B, $.subtitleText),
|
|
954
965
|
children: e.deletedStateLabel
|
|
955
966
|
})]
|
|
956
967
|
}),
|
|
957
|
-
e.activeStatusAnnouncement != null && /* @__PURE__ */
|
|
968
|
+
e.activeStatusAnnouncement != null && /* @__PURE__ */ V("span", {
|
|
958
969
|
role: "status",
|
|
959
970
|
"aria-live": "polite",
|
|
960
971
|
className: "sr-only",
|
|
961
972
|
children: e.activeStatusAnnouncement
|
|
962
973
|
}),
|
|
963
|
-
_ && /* @__PURE__ */
|
|
974
|
+
_ && /* @__PURE__ */ V("div", {
|
|
964
975
|
className: "flex flex-1 items-center justify-center",
|
|
965
|
-
children: /* @__PURE__ */
|
|
976
|
+
children: /* @__PURE__ */ V(O, {})
|
|
966
977
|
}),
|
|
967
|
-
!_ && b && /* @__PURE__ */
|
|
978
|
+
!_ && b && /* @__PURE__ */ H("div", {
|
|
968
979
|
className: "flex flex-1 flex-col items-center justify-center gap-3",
|
|
969
|
-
children: [/* @__PURE__ */
|
|
970
|
-
className: a(
|
|
980
|
+
children: [/* @__PURE__ */ V("p", {
|
|
981
|
+
className: a(B, $.subtitleText),
|
|
971
982
|
children: e.errorLabel
|
|
972
|
-
}), /* @__PURE__ */
|
|
983
|
+
}), /* @__PURE__ */ V(v, {
|
|
973
984
|
label: e.retryLabel,
|
|
974
985
|
onClick: x
|
|
975
986
|
})]
|
|
976
987
|
}),
|
|
977
|
-
!_ && !b && (
|
|
988
|
+
!_ && !b && (me ? /* @__PURE__ */ H("div", {
|
|
978
989
|
className: "flex flex-1 flex-col",
|
|
979
|
-
children: [/* @__PURE__ */
|
|
990
|
+
children: [/* @__PURE__ */ V(re, {
|
|
980
991
|
ariaLabel: e.tabsAriaLabel ?? "Scheduled task sections",
|
|
981
992
|
className: "px-8",
|
|
982
|
-
tabs:
|
|
983
|
-
activeTabId:
|
|
984
|
-
onTabChange:
|
|
985
|
-
}), /* @__PURE__ */
|
|
993
|
+
tabs: he,
|
|
994
|
+
activeTabId: U,
|
|
995
|
+
onTabChange: W
|
|
996
|
+
}), /* @__PURE__ */ V("div", {
|
|
986
997
|
role: "tabpanel",
|
|
987
998
|
"aria-label": ge,
|
|
988
999
|
className: "flex flex-1 flex-col gap-5 px-8 py-6",
|
|
989
|
-
children:
|
|
1000
|
+
children: U === X.Configuration ? G : U === X.History ? ve(Pe.Flow) : _e
|
|
990
1001
|
})]
|
|
991
|
-
}) : /* @__PURE__ */
|
|
1002
|
+
}) : /* @__PURE__ */ H("div", {
|
|
992
1003
|
className: "flex flex-1 flex-col desktop:flex-row",
|
|
993
1004
|
children: [
|
|
994
|
-
/* @__PURE__ */
|
|
1005
|
+
/* @__PURE__ */ H("div", {
|
|
995
1006
|
role: "group",
|
|
996
1007
|
"aria-label": e.detailsTitle,
|
|
997
1008
|
className: a("flex w-full flex-col gap-5 border-e px-8 py-6 desktop:w-[360px] desktop:shrink-0", $.detailsColumn),
|
|
998
|
-
children: [/* @__PURE__ */
|
|
999
|
-
className:
|
|
1009
|
+
children: [/* @__PURE__ */ V("h2", {
|
|
1010
|
+
className: z,
|
|
1000
1011
|
children: e.detailsTitle
|
|
1001
1012
|
}), _e]
|
|
1002
1013
|
}),
|
|
1003
|
-
/* @__PURE__ */
|
|
1014
|
+
/* @__PURE__ */ H("div", {
|
|
1004
1015
|
className: "flex w-full min-w-0 flex-1 flex-col gap-5 px-8 py-6",
|
|
1005
|
-
children: [/* @__PURE__ */
|
|
1006
|
-
className:
|
|
1016
|
+
children: [/* @__PURE__ */ V("h2", {
|
|
1017
|
+
className: z,
|
|
1007
1018
|
children: e.configurationTitle
|
|
1008
1019
|
}), G]
|
|
1009
1020
|
}),
|
|
1010
|
-
/* @__PURE__ */
|
|
1021
|
+
/* @__PURE__ */ V("div", {
|
|
1011
1022
|
className: "flex w-full justify-center p-6 desktop:w-auto desktop:items-start",
|
|
1012
|
-
children: ve(
|
|
1023
|
+
children: ve(Pe.Card)
|
|
1013
1024
|
})
|
|
1014
1025
|
]
|
|
1015
1026
|
}))
|
|
1016
1027
|
]
|
|
1017
1028
|
});
|
|
1018
|
-
},
|
|
1029
|
+
}, We = ({ modelLabel: e, instructionsLabel: t, modelDisplayName: r, instructionsMarkdown: i, renderInstructions: a, styles: o }) => {
|
|
1019
1030
|
let s = o?.typography?.fieldLabelClassName ?? "dial-tiny-text", c = o?.typography?.fieldValueClassName ?? "dial-body-text";
|
|
1020
|
-
return /* @__PURE__ */
|
|
1031
|
+
return /* @__PURE__ */ H("div", {
|
|
1021
1032
|
className: "flex flex-col gap-3",
|
|
1022
|
-
children: [r && /* @__PURE__ */
|
|
1033
|
+
children: [r && /* @__PURE__ */ H("div", {
|
|
1023
1034
|
className: "flex flex-col gap-2",
|
|
1024
|
-
children: [/* @__PURE__ */
|
|
1035
|
+
children: [/* @__PURE__ */ V("span", {
|
|
1025
1036
|
className: s,
|
|
1026
1037
|
children: e
|
|
1027
|
-
}), /* @__PURE__ */
|
|
1038
|
+
}), /* @__PURE__ */ V("p", {
|
|
1028
1039
|
className: c,
|
|
1029
1040
|
children: r
|
|
1030
1041
|
})]
|
|
1031
|
-
}), i && /* @__PURE__ */
|
|
1042
|
+
}), i && /* @__PURE__ */ H("div", {
|
|
1032
1043
|
className: "flex flex-col gap-2",
|
|
1033
|
-
children: [/* @__PURE__ */
|
|
1044
|
+
children: [/* @__PURE__ */ V("span", {
|
|
1034
1045
|
className: s,
|
|
1035
1046
|
children: t
|
|
1036
|
-
}), ((e) => a ? a(e) : /* @__PURE__ */
|
|
1047
|
+
}), ((e) => a ? a(e) : /* @__PURE__ */ V(n, { content: e }))(i)]
|
|
1037
1048
|
})]
|
|
1038
1049
|
});
|
|
1039
1050
|
};
|
|
1040
1051
|
//#endregion
|
|
1041
|
-
export { we as DESCRIPTION_MAX_LENGTH,
|
|
1052
|
+
export { we as DESCRIPTION_MAX_LENGTH, U as SCHEDULED_TASKS_CLASS, he as ScheduledTaskCard, ye as ScheduledTaskCardGrid, ve as ScheduledTaskCardSkeleton, Ne as ScheduledTaskCreateForm, Ue as ScheduledTaskDetailView, We as ScheduledTaskDetailsSummary, q as ScheduledTaskRepeat, Be as ScheduledTaskRunHistoryList, Z as ScheduledTaskRunStatus, Se as ScheduledTasks, Ce as ScheduledTasksSortKey, Te as TIME_OF_DAY_PATTERN };
|