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