@epam/ai-dial-scheduled-tasks 1.3.0-dev.253 → 1.3.0-dev.256
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/ScheduledTaskConversationDetailsSection/ScheduledTaskConversationDetailsSection.d.ts +9 -2
- package/components/ScheduledTaskConversationDetailsSection/ScheduledTaskConversationDetailsSection.d.ts.map +1 -1
- package/components/ScheduledTaskConversationHistorySection/ScheduledTaskConversationHistorySection.d.ts +8 -1
- package/components/ScheduledTaskConversationHistorySection/ScheduledTaskConversationHistorySection.d.ts.map +1 -1
- package/components/ScheduledTaskDetailsSummary/ScheduledTaskDetailsSummary.d.ts.map +1 -1
- package/components/ScheduledTaskRunHistoryList/ScheduledTaskRunHistoryList.d.ts.map +1 -1
- package/index.css +2 -2
- package/index.d.ts +3 -3
- package/index.d.ts.map +1 -1
- package/index.js +221 -195
- package/models/scheduled-task-details-summary-props.d.ts +13 -2
- package/models/scheduled-task-details-summary-props.d.ts.map +1 -1
- package/models/scheduled-task-run-history-list-props.d.ts +2 -0
- package/models/scheduled-task-run-history-list-props.d.ts.map +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, t as s, u as c } from "./calendar-value-A8NsRLsw.js";
|
|
2
2
|
import { ConfirmationDialog as l, ConfirmationIdentityRow as u, MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as d, MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as f, MDMessageViewer as p, PanelEmptyState as m, ResourceSummary as h, TextRefinementField as g, buildCssVars as _, mergeClasses as v, useAvailableHeightCap as y, useControlErrorAssociation as b, useIsMobile as x, useTextRefinement as S, useUnsavedChangesGuard as ee } from "@epam/ai-dial-chat-shared";
|
|
3
|
-
import { Accordion as C, Button as te, ButtonAppearance as ne, ButtonDropdown as w, ButtonVariant as re, Calendar as T, CalendarMode as E, CardShell as ie, ConfirmationPopupVariant as ae, DIAL_ICON_SIZE as D, DIAL_KIT_ICON_STROKE as O, ElementSize as oe, ErrorMessageNotification as se, ErrorText as k, FolderPath as ce, GhostButton as A, GhostIconButton as le, Highlight as ue, Input as de, Label as fe, LiveRegion as j, LiveRegionElement as M, LiveRegionPoliteness as N, MenuItemMark as pe, NeutralButton as
|
|
3
|
+
import { Accordion as C, Button as te, ButtonAppearance as ne, ButtonDropdown as w, ButtonVariant as re, Calendar as T, CalendarMode as E, CardShell as ie, ConfirmationPopupVariant as ae, DIAL_ICON_SIZE as D, DIAL_KIT_ICON_STROKE as O, ElementSize as oe, ErrorMessageNotification as se, ErrorText as k, FolderPath as ce, GhostButton as A, GhostIconButton as le, Highlight as ue, Input as de, Label as fe, LiveRegion as j, LiveRegionElement as M, LiveRegionPoliteness as N, MenuItemMark as pe, NeutralButton as me, NoDataContent as he, NumberInput as ge, PrimaryButton as _e, Search as P, Select as ve, Skeleton as F, SkeletonVariant as I, Spinner as ye, Switch as be, Tabs as xe, Textarea as L, Tooltip as R } from "@epam/ai-dial-ui-kit";
|
|
4
4
|
import { IconAlertTriangle as Se, IconArrowNarrowLeft as Ce, IconArrowsSort as z, IconCheck as we, IconCircleX as Te, IconPencilMinus as Ee, IconPlayerPause as De, IconPlayerPlay as Oe, IconPlus as ke, IconTrashX as Ae } from "@tabler/icons-react";
|
|
5
5
|
import { Suspense as je, lazy as B, useCallback as V, useEffect as Me, useId as H, useLayoutEffect as U, useMemo as Ne, useRef as Pe, useState as Fe } from "react";
|
|
6
6
|
import { Fragment as Ie, jsx as W, jsxs as G } from "react/jsx-runtime";
|
|
@@ -111,7 +111,7 @@ var ze = "1180px", Be = {
|
|
|
111
111
|
role: n ? "button" : "group",
|
|
112
112
|
"aria-label": e.displayName,
|
|
113
113
|
style: w,
|
|
114
|
-
className: v("h-
|
|
114
|
+
className: v("h-(--st-card-height,232px)", Y.card, n && "cursor-pointer", a, Be.card),
|
|
115
115
|
...re,
|
|
116
116
|
children: [
|
|
117
117
|
/* @__PURE__ */ G("div", {
|
|
@@ -157,10 +157,10 @@ var ze = "1180px", Be = {
|
|
|
157
157
|
return /* @__PURE__ */ G(ie, {
|
|
158
158
|
"aria-hidden": !0,
|
|
159
159
|
style: t,
|
|
160
|
-
className: v("h-
|
|
160
|
+
className: v("h-(--st-card-height,232px)", Ge.card),
|
|
161
161
|
children: [
|
|
162
|
-
/* @__PURE__ */ W(
|
|
163
|
-
variant:
|
|
162
|
+
/* @__PURE__ */ W(F, {
|
|
163
|
+
variant: I.Rectangular,
|
|
164
164
|
width: "60%",
|
|
165
165
|
height: "20px",
|
|
166
166
|
color: qe,
|
|
@@ -168,15 +168,15 @@ var ze = "1180px", Be = {
|
|
|
168
168
|
}),
|
|
169
169
|
/* @__PURE__ */ W("div", {
|
|
170
170
|
className: "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden",
|
|
171
|
-
children: Ke.map((e, t) => /* @__PURE__ */ W(
|
|
172
|
-
variant:
|
|
171
|
+
children: Ke.map((e, t) => /* @__PURE__ */ W(F, {
|
|
172
|
+
variant: I.Rectangular,
|
|
173
173
|
width: e,
|
|
174
174
|
height: "16px",
|
|
175
175
|
color: qe
|
|
176
176
|
}, t))
|
|
177
177
|
}),
|
|
178
|
-
/* @__PURE__ */ W(
|
|
179
|
-
variant:
|
|
178
|
+
/* @__PURE__ */ W(F, {
|
|
179
|
+
variant: I.Rectangular,
|
|
180
180
|
width: "110px",
|
|
181
181
|
height: "28px",
|
|
182
182
|
color: qe,
|
|
@@ -222,16 +222,16 @@ var ze = "1180px", Be = {
|
|
|
222
222
|
"--st-sort-text": T?.sortButtonText
|
|
223
223
|
}), ce = (e) => {
|
|
224
224
|
r(e ?? "");
|
|
225
|
-
}, [le, ue] = Fe(!1), [de, fe] = Fe(!1), N = Pe(null),
|
|
225
|
+
}, [le, ue] = Fe(!1), [de, fe] = Fe(!1), N = Pe(null), me = V(() => {
|
|
226
226
|
fe(!0);
|
|
227
|
-
}, []),
|
|
227
|
+
}, []), he = V(() => {
|
|
228
228
|
fe(!1);
|
|
229
229
|
}, []);
|
|
230
230
|
U(() => {
|
|
231
231
|
let e = N.current;
|
|
232
232
|
de && le && e != null && e.offsetParent == null && ue(!1);
|
|
233
233
|
}, [de, le]);
|
|
234
|
-
let
|
|
234
|
+
let ge = e.sortOptions.find((e) => e.value === i)?.label ?? e.sortLabel, ve = Ne(() => e.sortOptions.map((e) => ({
|
|
235
235
|
key: e.value,
|
|
236
236
|
label: e.label,
|
|
237
237
|
mark: pe.Check,
|
|
@@ -241,9 +241,9 @@ var ze = "1180px", Be = {
|
|
|
241
241
|
e.sortOptions,
|
|
242
242
|
i,
|
|
243
243
|
a
|
|
244
|
-
]),
|
|
244
|
+
]), F = Xe(s, d, !!c, o.length, n.trim().length > 0, e), I = Pe(null);
|
|
245
245
|
Me(() => {
|
|
246
|
-
let e =
|
|
246
|
+
let e = I.current;
|
|
247
247
|
if (!e || !p) return;
|
|
248
248
|
let t = Ze(e.parentElement);
|
|
249
249
|
if (!t) return;
|
|
@@ -260,7 +260,7 @@ var ze = "1180px", Be = {
|
|
|
260
260
|
C,
|
|
261
261
|
p
|
|
262
262
|
]);
|
|
263
|
-
let
|
|
263
|
+
let be = () => s ? /* @__PURE__ */ W(ye, {}) : c ? /* @__PURE__ */ G("div", {
|
|
264
264
|
className: "flex flex-col items-center gap-3",
|
|
265
265
|
children: [/* @__PURE__ */ W("p", {
|
|
266
266
|
className: v(ae, X.subtitle),
|
|
@@ -298,12 +298,12 @@ var ze = "1180px", Be = {
|
|
|
298
298
|
})
|
|
299
299
|
}),
|
|
300
300
|
/* @__PURE__ */ W("div", {
|
|
301
|
-
ref:
|
|
301
|
+
ref: I,
|
|
302
302
|
"aria-hidden": !0,
|
|
303
303
|
className: "h-px w-full"
|
|
304
304
|
})
|
|
305
305
|
]
|
|
306
|
-
}),
|
|
306
|
+
}), xe = s || !!c || o.length === 0;
|
|
307
307
|
return /* @__PURE__ */ G("div", {
|
|
308
308
|
style: k,
|
|
309
309
|
className: v("flex h-full w-full flex-col gap-4 overflow-y-auto px-4 py-4 desktop:gap-6 desktop:px-8", X.container, x),
|
|
@@ -319,7 +319,7 @@ var ze = "1180px", Be = {
|
|
|
319
319
|
className: v("mt-1", ae, X.subtitle),
|
|
320
320
|
children: e.subtitle
|
|
321
321
|
})]
|
|
322
|
-
}), t != null && /* @__PURE__ */ W(
|
|
322
|
+
}), t != null && /* @__PURE__ */ W(_e, {
|
|
323
323
|
label: e.createButtonLabel,
|
|
324
324
|
textClassName: X.createButtonLabel,
|
|
325
325
|
"aria-label": e.createButtonLabel,
|
|
@@ -337,22 +337,22 @@ var ze = "1180px", Be = {
|
|
|
337
337
|
children: [/* @__PURE__ */ W("div", {
|
|
338
338
|
role: "search",
|
|
339
339
|
className: "flex-1",
|
|
340
|
-
children: /* @__PURE__ */ W(
|
|
340
|
+
children: /* @__PURE__ */ W(P, {
|
|
341
341
|
value: n,
|
|
342
342
|
onChange: ce,
|
|
343
343
|
placeholder: e.searchPlaceholder,
|
|
344
344
|
clearLabel: e.clearSearchLabel,
|
|
345
345
|
"aria-label": e.searchAriaLabel,
|
|
346
346
|
size: oe.Large,
|
|
347
|
-
onFocus:
|
|
348
|
-
onBlur:
|
|
347
|
+
onFocus: me,
|
|
348
|
+
onBlur: he
|
|
349
349
|
})
|
|
350
350
|
}), e.sortOptions.length > 0 && /* @__PURE__ */ W("div", {
|
|
351
351
|
ref: N,
|
|
352
352
|
className: v(de && X.sortControlHidden),
|
|
353
353
|
children: /* @__PURE__ */ W(w, {
|
|
354
|
-
items:
|
|
355
|
-
label:
|
|
354
|
+
items: ve,
|
|
355
|
+
label: ge,
|
|
356
356
|
variant: re.Primary,
|
|
357
357
|
appearance: ne.Ghost,
|
|
358
358
|
iconBefore: b === void 0 ? /* @__PURE__ */ W(z, {
|
|
@@ -372,11 +372,11 @@ var ze = "1180px", Be = {
|
|
|
372
372
|
/* @__PURE__ */ W(j, {
|
|
373
373
|
visuallyHidden: !0,
|
|
374
374
|
as: M.Span,
|
|
375
|
-
children:
|
|
375
|
+
children: F
|
|
376
376
|
}),
|
|
377
377
|
/* @__PURE__ */ W("div", {
|
|
378
|
-
className: v("mx-auto flex size-full w-full min-w-0 flex-col",
|
|
379
|
-
children:
|
|
378
|
+
className: v("mx-auto flex size-full w-full min-w-0 flex-col", xe && "items-center justify-center"),
|
|
379
|
+
children: be()
|
|
380
380
|
})
|
|
381
381
|
]
|
|
382
382
|
});
|
|
@@ -442,26 +442,26 @@ var ze = "1180px", Be = {
|
|
|
442
442
|
refineFeedback: "_refineFeedback_1253x_22",
|
|
443
443
|
refineError: "_refineError_1253x_26"
|
|
444
444
|
}, ct = B(async () => ({ default: (await Re()).MarkdownEditor })), lt = ({ labels: e, values: t, initialValues: n, errors: i, modelSelector: c, modelLabelId: u, skillSelector: p, onFieldChange: m, onBack: h, onCancel: x, onSubmit: C, isSubmitting: w = !1, onRefineDescription: ie, onRefineInstructions: oe, markdownEditorTheme: se, backIcon: ce, className: A, styles: le }) => {
|
|
445
|
-
let ue = H(), j = H(), M = H(), pe = H(),
|
|
446
|
-
if (
|
|
447
|
-
|
|
445
|
+
let ue = H(), j = H(), M = H(), pe = H(), me = H(), he = H(), _e = H(), P = Pe(void 0), F = (e) => e ? async (t, n) => {
|
|
446
|
+
if (P.current && !P.current.aborted) throw new DOMException("Busy", "AbortError");
|
|
447
|
+
P.current = n;
|
|
448
448
|
try {
|
|
449
449
|
return await e(t, n);
|
|
450
450
|
} finally {
|
|
451
|
-
|
|
451
|
+
P.current === n && (P.current = void 0);
|
|
452
452
|
}
|
|
453
|
-
} : void 0,
|
|
453
|
+
} : void 0, I = S({
|
|
454
454
|
value: t.description ?? "",
|
|
455
455
|
onChange: (e) => m("description", e),
|
|
456
|
-
onRefine:
|
|
456
|
+
onRefine: F(ie),
|
|
457
457
|
disabled: w
|
|
458
|
-
}),
|
|
458
|
+
}), be = S({
|
|
459
459
|
value: t.prompt,
|
|
460
460
|
onChange: (e) => m("prompt", e),
|
|
461
|
-
onRefine:
|
|
461
|
+
onRefine: F(oe),
|
|
462
462
|
disabled: w
|
|
463
|
-
}),
|
|
464
|
-
|
|
463
|
+
}), xe = I.isPending || be.isPending, R = () => {
|
|
464
|
+
I.reset(), be.reset();
|
|
465
465
|
}, Se = !!(n && nt(t, n)), z = ee(Se), we = () => z.guard(() => {
|
|
466
466
|
R(), h();
|
|
467
467
|
}), Te = () => z.guard(() => {
|
|
@@ -492,12 +492,12 @@ var ze = "1180px", Be = {
|
|
|
492
492
|
We || ke(void 0);
|
|
493
493
|
}, [We]);
|
|
494
494
|
let Xe = We ? Oe ?? i.time : void 0;
|
|
495
|
-
b(() => et(u), pe, !!i.modelId), b(() => document.getElementById("scheduled-task-day-of-week"),
|
|
495
|
+
b(() => et(u), pe, !!i.modelId), b(() => document.getElementById("scheduled-task-day-of-week"), me, !!i.dayOfWeek), b(() => document.getElementById("scheduled-task-time"), he, !!Xe), b(() => document.getElementById(j), _e, !!i.prompt);
|
|
496
496
|
let Ze = (e) => m("runAt", e), Qe = (e) => {
|
|
497
497
|
m("everyWeeks", e);
|
|
498
498
|
}, $e = (e) => {
|
|
499
499
|
e !== t.dayOfWeek && m("dayOfWeek", e);
|
|
500
|
-
}, tt = w ||
|
|
500
|
+
}, tt = w || xe || !t.displayName.trim() || !t.modelId || !t.prompt.trim() && !t.skillUrls?.length || !!i.skillUrls || t.repeat === r.OneTime && (!t.runAt || !!i.runAt) || We && !t.time || qe || !!Xe;
|
|
501
501
|
return /* @__PURE__ */ G(Ie, { children: [/* @__PURE__ */ W(Le, {
|
|
502
502
|
labels: {
|
|
503
503
|
title: e.pageTitle,
|
|
@@ -509,7 +509,7 @@ var ze = "1180px", Be = {
|
|
|
509
509
|
onBack: we,
|
|
510
510
|
onCancel: Te,
|
|
511
511
|
onSubmit: () => {
|
|
512
|
-
!tt && (!
|
|
512
|
+
!tt && (!P.current || P.current.aborted) && C();
|
|
513
513
|
},
|
|
514
514
|
isCancelDisabled: w,
|
|
515
515
|
isSubmitDisabled: tt,
|
|
@@ -565,15 +565,15 @@ var ze = "1180px", Be = {
|
|
|
565
565
|
fieldId: ue,
|
|
566
566
|
label: e.descriptionLabel,
|
|
567
567
|
labels: e,
|
|
568
|
-
refinement:
|
|
569
|
-
disabled: w ||
|
|
568
|
+
refinement: I,
|
|
569
|
+
disabled: w || xe,
|
|
570
570
|
caption: `${(t.description ?? "").length}/500`,
|
|
571
571
|
...J,
|
|
572
|
-
children: /* @__PURE__ */ W(
|
|
572
|
+
children: /* @__PURE__ */ W(L, {
|
|
573
573
|
id: ue,
|
|
574
574
|
value: t.description ?? "",
|
|
575
575
|
onChange: (e) => {
|
|
576
|
-
|
|
576
|
+
I.reset(), m("description", e);
|
|
577
577
|
},
|
|
578
578
|
labelProps: ie ? void 0 : { label: e.descriptionLabel },
|
|
579
579
|
maxLength: 500,
|
|
@@ -600,7 +600,7 @@ var ze = "1180px", Be = {
|
|
|
600
600
|
/* @__PURE__ */ G("div", {
|
|
601
601
|
className: "flex flex-col gap-3",
|
|
602
602
|
children: [
|
|
603
|
-
/* @__PURE__ */ W(
|
|
603
|
+
/* @__PURE__ */ W(ve, {
|
|
604
604
|
labelProps: { label: e.repeatLabel },
|
|
605
605
|
value: t.repeat,
|
|
606
606
|
onChange: Y,
|
|
@@ -619,7 +619,7 @@ var ze = "1180px", Be = {
|
|
|
619
619
|
disabled: w
|
|
620
620
|
}),
|
|
621
621
|
t.repeat !== r.OneTime && /* @__PURE__ */ G(Ie, { children: [
|
|
622
|
-
Ke && /* @__PURE__ */ W(
|
|
622
|
+
Ke && /* @__PURE__ */ W(ve, {
|
|
623
623
|
id: "scheduled-task-every-weeks",
|
|
624
624
|
labelProps: { label: e.everyLabel },
|
|
625
625
|
value: t.everyWeeks ?? "",
|
|
@@ -640,7 +640,7 @@ var ze = "1180px", Be = {
|
|
|
640
640
|
},
|
|
641
641
|
invalid: !!i.dayOfWeek
|
|
642
642
|
}), i.dayOfWeek && /* @__PURE__ */ W(k, {
|
|
643
|
-
id:
|
|
643
|
+
id: me,
|
|
644
644
|
className: v(q, Z.instructionsError),
|
|
645
645
|
text: i.dayOfWeek
|
|
646
646
|
})]
|
|
@@ -661,7 +661,7 @@ var ze = "1180px", Be = {
|
|
|
661
661
|
disabled: w,
|
|
662
662
|
showTimezone: !0
|
|
663
663
|
}), Xe && /* @__PURE__ */ W(k, {
|
|
664
|
-
id:
|
|
664
|
+
id: he,
|
|
665
665
|
className: v(q, Z.instructionsError),
|
|
666
666
|
text: Xe
|
|
667
667
|
})]
|
|
@@ -683,7 +683,7 @@ var ze = "1180px", Be = {
|
|
|
683
683
|
return /* @__PURE__ */ W(te, {
|
|
684
684
|
"aria-label": e.fullName,
|
|
685
685
|
"aria-pressed": n,
|
|
686
|
-
"aria-describedby": i.dayOfWeek ?
|
|
686
|
+
"aria-describedby": i.dayOfWeek ? me : void 0,
|
|
687
687
|
variant: n ? re.Primary : re.Neutral,
|
|
688
688
|
appearance: ne.Solid,
|
|
689
689
|
className: "w-10 rounded-full",
|
|
@@ -694,13 +694,13 @@ var ze = "1180px", Be = {
|
|
|
694
694
|
})
|
|
695
695
|
}),
|
|
696
696
|
i.dayOfWeek && /* @__PURE__ */ W(k, {
|
|
697
|
-
id:
|
|
697
|
+
id: me,
|
|
698
698
|
className: v(q, Z.instructionsError),
|
|
699
699
|
text: i.dayOfWeek
|
|
700
700
|
})
|
|
701
701
|
]
|
|
702
702
|
}),
|
|
703
|
-
t.repeat === r.Monthly && /* @__PURE__ */ W(
|
|
703
|
+
t.repeat === r.Monthly && /* @__PURE__ */ W(ge, {
|
|
704
704
|
id: "scheduled-task-day-of-month",
|
|
705
705
|
integer: !0,
|
|
706
706
|
min: 1,
|
|
@@ -714,7 +714,7 @@ var ze = "1180px", Be = {
|
|
|
714
714
|
invalid: !!i.dayOfMonth,
|
|
715
715
|
error: i.dayOfMonth
|
|
716
716
|
}),
|
|
717
|
-
t.repeat === r.Hourly && /* @__PURE__ */ W(
|
|
717
|
+
t.repeat === r.Hourly && /* @__PURE__ */ W(ge, {
|
|
718
718
|
id: "scheduled-task-minute",
|
|
719
719
|
integer: !0,
|
|
720
720
|
min: 0,
|
|
@@ -789,8 +789,8 @@ var ze = "1180px", Be = {
|
|
|
789
789
|
label: e.instructionsLabel,
|
|
790
790
|
required: De,
|
|
791
791
|
labels: e,
|
|
792
|
-
refinement:
|
|
793
|
-
disabled: w ||
|
|
792
|
+
refinement: be,
|
|
793
|
+
disabled: w || xe,
|
|
794
794
|
...J,
|
|
795
795
|
children: /* @__PURE__ */ G("div", {
|
|
796
796
|
className: "flex flex-1 flex-col gap-1",
|
|
@@ -805,12 +805,12 @@ var ze = "1180px", Be = {
|
|
|
805
805
|
ref: Ee,
|
|
806
806
|
className: v("w-full", d, f),
|
|
807
807
|
children: /* @__PURE__ */ W(je, {
|
|
808
|
-
fallback: /* @__PURE__ */ W(
|
|
808
|
+
fallback: /* @__PURE__ */ W(ye, {}),
|
|
809
809
|
children: /* @__PURE__ */ W(ct, {
|
|
810
810
|
id: j,
|
|
811
811
|
value: t.prompt,
|
|
812
812
|
onChange: (e) => {
|
|
813
|
-
|
|
813
|
+
be.reset(), m("prompt", e);
|
|
814
814
|
},
|
|
815
815
|
height: 480,
|
|
816
816
|
theme: se,
|
|
@@ -819,7 +819,7 @@ var ze = "1180px", Be = {
|
|
|
819
819
|
})
|
|
820
820
|
}),
|
|
821
821
|
i.prompt && /* @__PURE__ */ W(k, {
|
|
822
|
-
id:
|
|
822
|
+
id: _e,
|
|
823
823
|
className: v(q, Z.instructionsError),
|
|
824
824
|
text: i.prompt
|
|
825
825
|
})
|
|
@@ -925,13 +925,13 @@ var ze = "1180px", Be = {
|
|
|
925
925
|
] }), gt = /* @__PURE__ */ function(e) {
|
|
926
926
|
return e.Success = "success", e.Error = "error", e.InProgress = "inProgress", e.Missed = "missed", e;
|
|
927
927
|
}({}), Q = {
|
|
928
|
-
subtitleText: "
|
|
929
|
-
successIcon: "
|
|
930
|
-
errorIcon: "
|
|
931
|
-
missedIcon: "
|
|
932
|
-
currentRun: "
|
|
933
|
-
interactiveRow: "
|
|
934
|
-
unreadDot: "
|
|
928
|
+
subtitleText: "_subtitleText_1sqjy_1",
|
|
929
|
+
successIcon: "_successIcon_1sqjy_5",
|
|
930
|
+
errorIcon: "_errorIcon_1sqjy_9",
|
|
931
|
+
missedIcon: "_missedIcon_1sqjy_13",
|
|
932
|
+
currentRun: "_currentRun_1sqjy_17",
|
|
933
|
+
interactiveRow: "_interactiveRow_1sqjy_27",
|
|
934
|
+
unreadDot: "_unreadDot_1sqjy_38"
|
|
935
935
|
}, _t = ({ status: e }) => {
|
|
936
936
|
switch (e) {
|
|
937
937
|
case gt.Success: return /* @__PURE__ */ W(we, {
|
|
@@ -948,7 +948,7 @@ var ze = "1180px", Be = {
|
|
|
948
948
|
});
|
|
949
949
|
case gt.InProgress: return /* @__PURE__ */ W("span", {
|
|
950
950
|
"aria-hidden": !0,
|
|
951
|
-
children: /* @__PURE__ */ W(
|
|
951
|
+
children: /* @__PURE__ */ W(ye, { size: D.SM })
|
|
952
952
|
});
|
|
953
953
|
case gt.Missed: return /* @__PURE__ */ W(Se, {
|
|
954
954
|
size: D.SM,
|
|
@@ -965,6 +965,7 @@ var ze = "1180px", Be = {
|
|
|
965
965
|
"--strhl-missed-icon": d?.missedIconColor,
|
|
966
966
|
"--strhl-subtitle-text": d?.subtitleTextColor,
|
|
967
967
|
"--strhl-current-run-bg": d?.currentRunBackground,
|
|
968
|
+
"--strhl-current-run-subtitle-text": d?.currentRunSubtitleTextColor,
|
|
968
969
|
"--strhl-unread-dot": d?.unreadDotColor,
|
|
969
970
|
"--strhl-row-hover-bg": u?.rowHoverBackground,
|
|
970
971
|
"--strhl-row-focus-bg": u?.rowFocusBackground,
|
|
@@ -978,57 +979,56 @@ var ze = "1180px", Be = {
|
|
|
978
979
|
t,
|
|
979
980
|
e.timestampLabel,
|
|
980
981
|
e.durationLabel
|
|
981
|
-
].filter(Boolean).join(" "), ...i].join(" — "), l = !!e.conversationId && !!s
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
className: v("-mx-(--strhl-row-bleed,0px) flex min-h-[var(--strhl-row-min-height,32px)] max-w-[328px] items-center justify-between gap-2 rounded-full px-3", n && Q.currentRun, l && "cursor-pointer", l && Q.interactiveRow),
|
|
994
|
-
children: [/* @__PURE__ */ G("span", {
|
|
982
|
+
].filter(Boolean).join(" "), ...i].join(" — "), l = !!e.conversationId && !!s, u = v("-mx-(--strhl-row-bleed,0px) flex min-h-(--strhl-row-min-height,32px) max-w-[328px] items-center justify-between gap-2 rounded-full px-3", n && Q.currentRun, l && "w-full cursor-pointer text-start", l && Q.interactiveRow), d = /* @__PURE__ */ G(Ie, { children: [/* @__PURE__ */ G("span", {
|
|
983
|
+
className: "flex min-w-0 items-center gap-1",
|
|
984
|
+
children: [r ? /* @__PURE__ */ W(R, {
|
|
985
|
+
tooltip: r,
|
|
986
|
+
asChild: !0,
|
|
987
|
+
contentClassName: "max-w-[320px] whitespace-pre-wrap break-words",
|
|
988
|
+
children: /* @__PURE__ */ W("span", {
|
|
989
|
+
className: "flex shrink-0",
|
|
990
|
+
tabIndex: l ? void 0 : 0,
|
|
991
|
+
children: /* @__PURE__ */ W(_t, { status: e.status })
|
|
992
|
+
})
|
|
993
|
+
}) : /* @__PURE__ */ W(_t, { status: e.status }), /* @__PURE__ */ G("span", {
|
|
995
994
|
className: "flex min-w-0 items-center gap-1",
|
|
996
|
-
children: [
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
tabIndex: l ? void 0 : 0,
|
|
1003
|
-
children: /* @__PURE__ */ W(_t, { status: e.status })
|
|
1004
|
-
})
|
|
1005
|
-
}) : /* @__PURE__ */ W(_t, { status: e.status }), /* @__PURE__ */ G("span", {
|
|
1006
|
-
className: "flex min-w-0 items-center gap-1",
|
|
1007
|
-
children: [/* @__PURE__ */ W("span", {
|
|
1008
|
-
className: v(e.isUnread ? m : p, "truncate"),
|
|
1009
|
-
children: e.timestampLabel
|
|
1010
|
-
}), e.durationLabel && /* @__PURE__ */ W("span", {
|
|
1011
|
-
className: v(p, Q.subtitleText, "shrink-0"),
|
|
1012
|
-
children: e.durationLabel
|
|
1013
|
-
})]
|
|
995
|
+
children: [/* @__PURE__ */ W("span", {
|
|
996
|
+
className: v(e.isUnread ? m : p, "truncate"),
|
|
997
|
+
children: e.timestampLabel
|
|
998
|
+
}), e.durationLabel && /* @__PURE__ */ W("span", {
|
|
999
|
+
className: v(p, Q.subtitleText, "shrink-0"),
|
|
1000
|
+
children: e.durationLabel
|
|
1014
1001
|
})]
|
|
1015
|
-
}), /* @__PURE__ */ W("span", {
|
|
1016
|
-
className: "relative flex size-3 shrink-0 items-center justify-center",
|
|
1017
|
-
children: e.isUnread && /* @__PURE__ */ W("span", {
|
|
1018
|
-
className: v("size-[5.33px] rounded-full", Q.unreadDot),
|
|
1019
|
-
"aria-hidden": !0
|
|
1020
|
-
})
|
|
1021
1002
|
})]
|
|
1003
|
+
}), /* @__PURE__ */ W("span", {
|
|
1004
|
+
className: "relative flex size-3 shrink-0 items-center justify-center",
|
|
1005
|
+
children: e.isUnread && /* @__PURE__ */ W("span", {
|
|
1006
|
+
className: v("size-[5.33px] rounded-full", Q.unreadDot),
|
|
1007
|
+
"aria-hidden": !0
|
|
1008
|
+
})
|
|
1009
|
+
})] });
|
|
1010
|
+
return l ? /* @__PURE__ */ W("li", { children: /* @__PURE__ */ W("button", {
|
|
1011
|
+
type: "button",
|
|
1012
|
+
"aria-label": a,
|
|
1013
|
+
"aria-current": n ? "true" : void 0,
|
|
1014
|
+
className: u,
|
|
1015
|
+
onClick: () => s?.(e),
|
|
1016
|
+
children: d
|
|
1017
|
+
}) }, e.id) : /* @__PURE__ */ W("li", {
|
|
1018
|
+
"aria-label": a,
|
|
1019
|
+
"aria-current": n ? "true" : void 0,
|
|
1020
|
+
className: u,
|
|
1021
|
+
children: d
|
|
1022
1022
|
}, e.id);
|
|
1023
1023
|
}, x = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */ G("li", {
|
|
1024
1024
|
"aria-hidden": "true",
|
|
1025
1025
|
className: "-mx-(--strhl-row-bleed,0px) flex min-h-(--strhl-row-min-height,32px) max-w-[328px] items-center justify-between gap-2 px-3",
|
|
1026
|
-
children: [/* @__PURE__ */ W(
|
|
1027
|
-
variant:
|
|
1026
|
+
children: [/* @__PURE__ */ W(F, {
|
|
1027
|
+
variant: I.Rectangular,
|
|
1028
1028
|
width: "160px",
|
|
1029
1029
|
height: "16px"
|
|
1030
|
-
}), /* @__PURE__ */ W(
|
|
1031
|
-
variant:
|
|
1030
|
+
}), /* @__PURE__ */ W(F, {
|
|
1031
|
+
variant: I.Rectangular,
|
|
1032
1032
|
width: "16px",
|
|
1033
1033
|
height: "16px",
|
|
1034
1034
|
className: "shrink-0 rounded-full"
|
|
@@ -1056,7 +1056,7 @@ var ze = "1180px", Be = {
|
|
|
1056
1056
|
}) : e.length === 0 ? /* @__PURE__ */ W("div", {
|
|
1057
1057
|
style: y,
|
|
1058
1058
|
className: "w-full py-4",
|
|
1059
|
-
children: /* @__PURE__ */ W(
|
|
1059
|
+
children: /* @__PURE__ */ W(he, {
|
|
1060
1060
|
title: c.emptyLabel,
|
|
1061
1061
|
description: c.emptyDescription,
|
|
1062
1062
|
live: !0
|
|
@@ -1150,7 +1150,7 @@ var ze = "1180px", Be = {
|
|
|
1150
1150
|
}
|
|
1151
1151
|
});
|
|
1152
1152
|
return b ? /* @__PURE__ */ G("div", {
|
|
1153
|
-
className: v("flex max-h-
|
|
1153
|
+
className: v("flex max-h-(--st-history-max-height,70vh) w-full max-w-full flex-col overflow-y-auto rounded-xl shadow-md", yt.historyCard, yt.cardLayout),
|
|
1154
1154
|
style: { "--st-history-max-height": y?.maxHeight },
|
|
1155
1155
|
children: [/* @__PURE__ */ G("div", {
|
|
1156
1156
|
className: v("sticky top-0 z-10 flex flex-col gap-4 rounded-t-xl px-6 pt-5 pb-2", yt.historyCard),
|
|
@@ -1190,13 +1190,13 @@ var ze = "1180px", Be = {
|
|
|
1190
1190
|
actionButton: "_actionButton_hdn5b_75",
|
|
1191
1191
|
roundActionButton: "_roundActionButton_hdn5b_82",
|
|
1192
1192
|
stickyTabs: "_stickyTabs_hdn5b_88"
|
|
1193
|
-
}, xt = ({ labels: e, onBack: t, onEdit: n, onStartNow: r, isStarting: i = !1, isStartNowDisabled: a = !1, isStartNowBusy: o = !1, onDelete: s, isDeleting: c = !1, isDeleted: l = !1, isCompleted: u = !1, isActive: d, isActiveUpdating: f = !1, isActiveDisabled: p = !1, activeDisabledReason: m, onActiveChange: h, displayName: g, isLoading: y = !1, error: b, onRetry: S, description: ee, modelLabel: C, repeatsLabel: te, activeWindowLabel: ne, completedLabel: w, nextRunLabel: T, instructionsMarkdown: E, skillDisplayNames: ie, renderInstructions: ae, runs: oe, runsIsLoading: se = !1, runsIsLoadingMore: k = !1, runsSkeletonCount: ce = 6, runsError: ue, onRunsRetry: de, runsLoadMoreError: fe, onRunsRetryLoadMore: N, runsHasMore: pe = !1, onRunsLoadMore:
|
|
1194
|
-
let { colors:
|
|
1195
|
-
"--stdv-bg":
|
|
1196
|
-
"--stdv-header-border":
|
|
1197
|
-
"--stdv-details-border":
|
|
1198
|
-
"--stdv-subtitle-text":
|
|
1199
|
-
"--stdv-history-bg":
|
|
1193
|
+
}, xt = ({ labels: e, onBack: t, onEdit: n, onStartNow: r, isStarting: i = !1, isStartNowDisabled: a = !1, isStartNowBusy: o = !1, onDelete: s, isDeleting: c = !1, isDeleted: l = !1, isCompleted: u = !1, isActive: d, isActiveUpdating: f = !1, isActiveDisabled: p = !1, activeDisabledReason: m, onActiveChange: h, displayName: g, isLoading: y = !1, error: b, onRetry: S, description: ee, modelLabel: C, repeatsLabel: te, activeWindowLabel: ne, completedLabel: w, nextRunLabel: T, instructionsMarkdown: E, skillDisplayNames: ie, renderInstructions: ae, runs: oe, runsIsLoading: se = !1, runsIsLoadingMore: k = !1, runsSkeletonCount: ce = 6, runsError: ue, onRunsRetry: de, runsLoadMoreError: fe, onRunsRetryLoadMore: N, runsHasMore: pe = !1, onRunsLoadMore: he, onRunClick: ge, styles: _e, className: P, backIcon: ve, layout: F, historyStyles: I }) => {
|
|
1194
|
+
let { colors: L, typography: R } = _e ?? {}, Se = R?.titleClassName ?? "dial-h2-text", z = R?.sectionTitleClassName ?? "dial-body-semi-text", we = R?.fieldLabelClassName ?? "dial-tiny-text", Te = R?.fieldValueClassName ?? "dial-small-text", De = R?.runTimestampClassName ?? "dial-small-text", ke = _({
|
|
1195
|
+
"--stdv-bg": L?.background,
|
|
1196
|
+
"--stdv-header-border": L?.headerBorder,
|
|
1197
|
+
"--stdv-details-border": L?.detailsColumnBorder,
|
|
1198
|
+
"--stdv-subtitle-text": L?.subtitleText,
|
|
1199
|
+
"--stdv-history-bg": L?.historyCardBackground
|
|
1200
1200
|
}), je = x(), [B, V] = Fe(ut.Details), Me = H(), U = o && !i ? e.startNowBusyLabel : void 0, Ne = [
|
|
1201
1201
|
{
|
|
1202
1202
|
id: ut.Details,
|
|
@@ -1263,16 +1263,16 @@ var ze = "1180px", Be = {
|
|
|
1263
1263
|
loadMoreError: fe,
|
|
1264
1264
|
onRetryLoadMore: N,
|
|
1265
1265
|
hasMore: pe,
|
|
1266
|
-
onLoadMore:
|
|
1267
|
-
onRunClick:
|
|
1266
|
+
onLoadMore: he,
|
|
1267
|
+
onRunClick: ge,
|
|
1268
1268
|
runTimestampClassName: De,
|
|
1269
1269
|
sectionTitleClassName: z,
|
|
1270
|
-
colors:
|
|
1271
|
-
styles:
|
|
1270
|
+
colors: L,
|
|
1271
|
+
styles: I
|
|
1272
1272
|
});
|
|
1273
1273
|
return /* @__PURE__ */ G("div", {
|
|
1274
1274
|
style: ke,
|
|
1275
|
-
className: v("flex h-full min-h-0 w-full flex-col overflow-hidden", $.container,
|
|
1275
|
+
className: v("flex h-full min-h-0 w-full flex-col overflow-hidden", $.container, P),
|
|
1276
1276
|
children: [
|
|
1277
1277
|
/* @__PURE__ */ G("div", {
|
|
1278
1278
|
className: v("flex min-h-16 shrink-0 items-start justify-between gap-2 px-4 py-2 desktop:h-16 desktop:flex-nowrap desktop:items-center desktop:px-8 desktop:py-0", $.header),
|
|
@@ -1280,12 +1280,12 @@ var ze = "1180px", Be = {
|
|
|
1280
1280
|
className: "flex min-w-0 items-center gap-2",
|
|
1281
1281
|
children: [
|
|
1282
1282
|
/* @__PURE__ */ W(le, {
|
|
1283
|
-
icon:
|
|
1283
|
+
icon: ve === void 0 ? /* @__PURE__ */ W(Ce, {
|
|
1284
1284
|
size: D.LG,
|
|
1285
1285
|
className: "rtl:scale-x-[-1]",
|
|
1286
1286
|
"aria-hidden": !0,
|
|
1287
1287
|
stroke: O
|
|
1288
|
-
}) :
|
|
1288
|
+
}) : ve,
|
|
1289
1289
|
"aria-label": e.backAriaLabel,
|
|
1290
1290
|
onClick: t
|
|
1291
1291
|
}),
|
|
@@ -1301,7 +1301,7 @@ var ze = "1180px", Be = {
|
|
|
1301
1301
|
}), /* @__PURE__ */ G("div", {
|
|
1302
1302
|
className: v("flex min-w-0 flex-1 flex-wrap items-center justify-end gap-2 desktop:flex-none desktop:flex-nowrap", $.headerActions),
|
|
1303
1303
|
children: [
|
|
1304
|
-
!l && !u && d !== void 0 && /* @__PURE__ */ G(Ie, { children: [/* @__PURE__ */ W(
|
|
1304
|
+
!l && !u && d !== void 0 && /* @__PURE__ */ G(Ie, { children: [/* @__PURE__ */ W(be, {
|
|
1305
1305
|
id: "scheduled-task-active-switch",
|
|
1306
1306
|
labelProps: { label: e.activeStatusLabel },
|
|
1307
1307
|
isOn: d,
|
|
@@ -1324,7 +1324,7 @@ var ze = "1180px", Be = {
|
|
|
1324
1324
|
textClassName: $.actionLabel,
|
|
1325
1325
|
className: v("min-h-11 shrink-0", $.actionButton)
|
|
1326
1326
|
}),
|
|
1327
|
-
!l && n && /* @__PURE__ */ W(
|
|
1327
|
+
!l && n && /* @__PURE__ */ W(me, {
|
|
1328
1328
|
label: e.editButtonLabel,
|
|
1329
1329
|
iconBefore: /* @__PURE__ */ W(Ee, {
|
|
1330
1330
|
size: D.SM,
|
|
@@ -1342,7 +1342,7 @@ var ze = "1180px", Be = {
|
|
|
1342
1342
|
id: Me,
|
|
1343
1343
|
className: "sr-only",
|
|
1344
1344
|
children: U
|
|
1345
|
-
}), /* @__PURE__ */ W(
|
|
1345
|
+
}), /* @__PURE__ */ W(me, {
|
|
1346
1346
|
label: i ? e.startingLabel ?? e.startNowButtonLabel : e.startNowButtonLabel,
|
|
1347
1347
|
iconBefore: /* @__PURE__ */ W(Oe, {
|
|
1348
1348
|
size: D.SM,
|
|
@@ -1382,7 +1382,7 @@ var ze = "1180px", Be = {
|
|
|
1382
1382
|
}),
|
|
1383
1383
|
y && /* @__PURE__ */ W("div", {
|
|
1384
1384
|
className: "flex flex-1 items-center justify-center",
|
|
1385
|
-
children: /* @__PURE__ */ W(
|
|
1385
|
+
children: /* @__PURE__ */ W(ye, {})
|
|
1386
1386
|
}),
|
|
1387
1387
|
!y && b && /* @__PURE__ */ G("div", {
|
|
1388
1388
|
className: "flex flex-1 flex-col items-center justify-center gap-3",
|
|
@@ -1398,7 +1398,7 @@ var ze = "1180px", Be = {
|
|
|
1398
1398
|
className: "flex min-h-0 flex-1 flex-col overflow-y-auto",
|
|
1399
1399
|
children: [/* @__PURE__ */ W("div", {
|
|
1400
1400
|
className: v("sticky top-0 z-10", $.stickyTabs),
|
|
1401
|
-
children: /* @__PURE__ */ W(
|
|
1401
|
+
children: /* @__PURE__ */ W(xe, {
|
|
1402
1402
|
ariaLabel: e.tabsAriaLabel ?? "Scheduled task sections",
|
|
1403
1403
|
className: "px-4",
|
|
1404
1404
|
tabs: Ne,
|
|
@@ -1414,10 +1414,10 @@ var ze = "1180px", Be = {
|
|
|
1414
1414
|
}) : /* @__PURE__ */ G("div", {
|
|
1415
1415
|
style: {
|
|
1416
1416
|
flexDirection: "row",
|
|
1417
|
-
"--st-details-width":
|
|
1418
|
-
"--st-history-width":
|
|
1419
|
-
"--st-history-max-height":
|
|
1420
|
-
"--st-configuration-min-width":
|
|
1417
|
+
"--st-details-width": F?.detailsWidth,
|
|
1418
|
+
"--st-history-width": F?.historyWidth,
|
|
1419
|
+
"--st-history-max-height": F?.historyMaxHeight,
|
|
1420
|
+
"--st-configuration-min-width": F?.configurationMinWidth
|
|
1421
1421
|
},
|
|
1422
1422
|
className: "flex min-h-0 flex-1 overflow-y-auto desktop:overflow-hidden",
|
|
1423
1423
|
children: [
|
|
@@ -1425,7 +1425,7 @@ var ze = "1180px", Be = {
|
|
|
1425
1425
|
role: "group",
|
|
1426
1426
|
"aria-label": e.detailsTitle,
|
|
1427
1427
|
style: {
|
|
1428
|
-
flex: `0 1 ${
|
|
1428
|
+
flex: `0 1 ${F?.detailsWidth ?? "360px"}`,
|
|
1429
1429
|
maxWidth: "100%"
|
|
1430
1430
|
},
|
|
1431
1431
|
className: v("flex min-h-0 w-full flex-col gap-5 overflow-y-auto border-e px-8 py-6", $.detailsColumn),
|
|
@@ -1436,7 +1436,7 @@ var ze = "1180px", Be = {
|
|
|
1436
1436
|
}),
|
|
1437
1437
|
/* @__PURE__ */ G("div", {
|
|
1438
1438
|
style: {
|
|
1439
|
-
flex: `1 1 ${
|
|
1439
|
+
flex: `1 1 ${F?.configurationMinWidth ?? "320px"}`,
|
|
1440
1440
|
minWidth: 0
|
|
1441
1441
|
},
|
|
1442
1442
|
className: "flex min-h-0 w-full min-w-0 flex-col gap-5 overflow-y-auto px-8 py-6",
|
|
@@ -1447,7 +1447,7 @@ var ze = "1180px", Be = {
|
|
|
1447
1447
|
}),
|
|
1448
1448
|
/* @__PURE__ */ W("div", {
|
|
1449
1449
|
style: {
|
|
1450
|
-
flex: `0 1 calc(${
|
|
1450
|
+
flex: `0 1 calc(${F?.historyWidth ?? "360px"} + 48px)`,
|
|
1451
1451
|
minWidth: 0
|
|
1452
1452
|
},
|
|
1453
1453
|
className: "flex min-h-0 w-full items-start justify-center overflow-y-auto p-6",
|
|
@@ -1457,25 +1457,45 @@ var ze = "1180px", Be = {
|
|
|
1457
1457
|
}))
|
|
1458
1458
|
]
|
|
1459
1459
|
});
|
|
1460
|
-
}, St = {
|
|
1461
|
-
h1: "
|
|
1462
|
-
h2: "
|
|
1463
|
-
h3: "
|
|
1464
|
-
h4: "
|
|
1465
|
-
h5: "
|
|
1466
|
-
h6: "
|
|
1467
|
-
p: "
|
|
1468
|
-
ul: "
|
|
1469
|
-
ol: "
|
|
1460
|
+
}, St = { fieldLabel: "_fieldLabel_8nxg8_1" }, Ct = {
|
|
1461
|
+
h1: "mb-3 mt-6 first:mt-0 [text-wrap:balance]",
|
|
1462
|
+
h2: "mb-2 mt-5 first:mt-0 [text-wrap:balance]",
|
|
1463
|
+
h3: "mb-2 mt-4 first:mt-0 [text-wrap:balance]",
|
|
1464
|
+
h4: "mb-2 mt-4 first:mt-0 [text-wrap:balance]",
|
|
1465
|
+
h5: "mb-2 mt-4 first:mt-0 [text-wrap:balance]",
|
|
1466
|
+
h6: "mb-2 mt-4 first:mt-0 [text-wrap:balance]",
|
|
1467
|
+
p: "mb-3 break-words [overflow-wrap:anywhere] [text-wrap:pretty] last:mb-0",
|
|
1468
|
+
ul: "mb-3 space-y-1",
|
|
1469
|
+
ol: "mb-3 space-y-1",
|
|
1470
1470
|
codeInline: "mx-0.5 px-1.5 break-words [overflow-wrap:anywhere]",
|
|
1471
1471
|
blockquote: "my-4",
|
|
1472
1472
|
link: "break-words [overflow-wrap:anywhere]",
|
|
1473
1473
|
tableWrapper: "my-4",
|
|
1474
1474
|
mathBlock: "my-4"
|
|
1475
|
-
},
|
|
1476
|
-
let u = l?.typography?.fieldLabelClassName ?? "dial-tiny-text text-
|
|
1475
|
+
}, wt = ({ modelLabel: e, skillLabel: t, skillDisplayNames: n, instructionsLabel: r, modelDisplayName: i, instructionsMarkdown: a, renderInstructions: o, instructionsClassNames: s, markdownLabels: c, styles: l }) => {
|
|
1476
|
+
let u = v(l?.typography?.fieldLabelClassName ?? "dial-tiny-text", St.fieldLabel), d = l?.typography?.fieldValueClassName ?? "dial-small-text", f = l?.typography?.instructionsHeadingClassName ?? "dial-small-semi-text", m = l?.typography?.instructionsTextClassName ?? "dial-small-text", h = Ne(() => {
|
|
1477
|
+
let e = Ct;
|
|
1478
|
+
return {
|
|
1479
|
+
...e,
|
|
1480
|
+
h1: v(f, e.h1),
|
|
1481
|
+
h2: v(f, e.h2),
|
|
1482
|
+
h3: v(f, e.h3),
|
|
1483
|
+
h4: v(f, e.h4),
|
|
1484
|
+
h5: v(f, e.h5),
|
|
1485
|
+
h6: v(f, e.h6),
|
|
1486
|
+
p: v(m, e.p),
|
|
1487
|
+
ul: v(m, e.ul),
|
|
1488
|
+
ol: v(m, e.ol),
|
|
1489
|
+
...s
|
|
1490
|
+
};
|
|
1491
|
+
}, [
|
|
1492
|
+
f,
|
|
1493
|
+
m,
|
|
1494
|
+
s
|
|
1495
|
+
]), g = _({ "--stds-field-label": l?.colors?.fieldLabel });
|
|
1477
1496
|
return /* @__PURE__ */ G("div", {
|
|
1478
1497
|
className: "flex flex-col gap-3",
|
|
1498
|
+
style: g,
|
|
1479
1499
|
children: [
|
|
1480
1500
|
i && /* @__PURE__ */ G("div", {
|
|
1481
1501
|
className: "flex flex-col gap-2",
|
|
@@ -1507,21 +1527,21 @@ var ze = "1180px", Be = {
|
|
|
1507
1527
|
children: r
|
|
1508
1528
|
}), ((e) => o ? o(e) : /* @__PURE__ */ W(p, {
|
|
1509
1529
|
content: e,
|
|
1510
|
-
classNames:
|
|
1530
|
+
classNames: h,
|
|
1511
1531
|
...c
|
|
1512
1532
|
}))(a)]
|
|
1513
1533
|
})
|
|
1514
1534
|
]
|
|
1515
1535
|
});
|
|
1516
|
-
},
|
|
1536
|
+
}, Tt = ({ className: e, children: t }) => /* @__PURE__ */ W("span", {
|
|
1517
1537
|
className: v(e, "block truncate py-1"),
|
|
1518
1538
|
children: t
|
|
1519
|
-
}),
|
|
1520
|
-
let [
|
|
1539
|
+
}), Et = { unavailableText: "_unavailableText_1ifqz_1" }, Dt = ({ scheduleId: e, items: t, isLoading: n = !1, isLoadingMore: r = !1, skeletonCount: i = 6, error: a, onRetry: o, isUnavailable: s = !1, hasMore: c = !1, onLoadMore: l, currentRunId: u, onRunClick: d, labels: f, titleClassName: p = "dial-tiny-semi-text", contentClassName: m = "ps-3", unavailableTextClassName: h = "dial-body-text", colors: g }) => {
|
|
1540
|
+
let [y, b] = Fe(!0);
|
|
1521
1541
|
Me(() => {
|
|
1522
|
-
|
|
1542
|
+
b(!0);
|
|
1523
1543
|
}, [e]);
|
|
1524
|
-
let
|
|
1544
|
+
let x = c && !n && l && f.showMoreLabel ? /* @__PURE__ */ W("li", {
|
|
1525
1545
|
className: "pt-2",
|
|
1526
1546
|
children: /* @__PURE__ */ W(A, {
|
|
1527
1547
|
variant: re.Primary,
|
|
@@ -1530,19 +1550,20 @@ var ze = "1180px", Be = {
|
|
|
1530
1550
|
disabled: r
|
|
1531
1551
|
})
|
|
1532
1552
|
}) : void 0;
|
|
1533
|
-
return /* @__PURE__ */
|
|
1534
|
-
title: /* @__PURE__ */ W(
|
|
1553
|
+
return /* @__PURE__ */ G(C, {
|
|
1554
|
+
title: /* @__PURE__ */ W(Tt, {
|
|
1535
1555
|
className: p,
|
|
1536
1556
|
children: f.title
|
|
1537
1557
|
}),
|
|
1538
|
-
expanded:
|
|
1539
|
-
onToggle:
|
|
1558
|
+
expanded: y,
|
|
1559
|
+
onToggle: b,
|
|
1540
1560
|
contentClassName: m,
|
|
1541
|
-
children:
|
|
1542
|
-
|
|
1543
|
-
className: h,
|
|
1544
|
-
|
|
1545
|
-
|
|
1561
|
+
children: [/* @__PURE__ */ W(j, {
|
|
1562
|
+
as: M.P,
|
|
1563
|
+
className: v(h, Et.unavailableText),
|
|
1564
|
+
style: _({ "--stch-unavailable-text": g?.unavailableText }),
|
|
1565
|
+
children: s && f.unavailableLabel
|
|
1566
|
+
}), !s && /* @__PURE__ */ W(vt, {
|
|
1546
1567
|
items: t,
|
|
1547
1568
|
isLoading: n,
|
|
1548
1569
|
isLoadingMore: r,
|
|
@@ -1551,7 +1572,7 @@ var ze = "1180px", Be = {
|
|
|
1551
1572
|
onRetry: o,
|
|
1552
1573
|
currentRunId: u,
|
|
1553
1574
|
onRunClick: d,
|
|
1554
|
-
footer:
|
|
1575
|
+
footer: x,
|
|
1555
1576
|
labels: {
|
|
1556
1577
|
historyTitle: f.title,
|
|
1557
1578
|
emptyLabel: f.emptyLabel,
|
|
@@ -1561,47 +1582,52 @@ var ze = "1180px", Be = {
|
|
|
1561
1582
|
currentRunLabel: f.currentRunLabel,
|
|
1562
1583
|
unreadIndicatorLabel: f.unreadIndicatorLabel
|
|
1563
1584
|
}
|
|
1564
|
-
})
|
|
1585
|
+
})]
|
|
1565
1586
|
});
|
|
1566
|
-
},
|
|
1587
|
+
}, Ot = { unavailableText: "_unavailableText_j7lij_1" }, kt = /* @__PURE__ */ function(e) {
|
|
1567
1588
|
return e.Ready = "ready", e.Error = "error", e.Unavailable = "unavailable", e;
|
|
1568
|
-
}({}),
|
|
1569
|
-
let [
|
|
1589
|
+
}({}), At = ({ scheduleId: e, state: t, onRetry: n, modelDisplayName: r, skillDisplayNames: i, instructionsMarkdown: a, renderInstructions: o, instructionsClassNames: s, markdownLabels: c, summaryStyles: l, labels: u, titleClassName: d = "dial-tiny-semi-text", unavailableTextClassName: f = "dial-body-text", colors: p }) => {
|
|
1590
|
+
let [m, h] = Fe(!1);
|
|
1570
1591
|
Me(() => {
|
|
1571
|
-
|
|
1592
|
+
h(!1);
|
|
1572
1593
|
}, [e]);
|
|
1573
|
-
let
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
children: u.unavailableLabel
|
|
1579
|
-
}),
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1594
|
+
let g = t === "error" || t === "unavailable", y = t === "error" && n != null, b = /* @__PURE__ */ G(Ie, { children: [
|
|
1595
|
+
/* @__PURE__ */ W(j, {
|
|
1596
|
+
as: M.P,
|
|
1597
|
+
className: v(f, Ot.unavailableText),
|
|
1598
|
+
style: _({ "--stcd-unavailable-text": p?.unavailableText }),
|
|
1599
|
+
children: g && u.unavailableLabel
|
|
1600
|
+
}),
|
|
1601
|
+
y && /* @__PURE__ */ W("div", {
|
|
1602
|
+
className: "mt-2",
|
|
1603
|
+
children: /* @__PURE__ */ W(A, {
|
|
1604
|
+
label: u.retryLabel,
|
|
1605
|
+
onClick: n
|
|
1606
|
+
})
|
|
1607
|
+
}),
|
|
1608
|
+
!g && /* @__PURE__ */ W(wt, {
|
|
1609
|
+
modelLabel: u.modelLabel,
|
|
1610
|
+
instructionsLabel: u.instructionsLabel,
|
|
1611
|
+
skillLabel: u.skillLabel,
|
|
1612
|
+
skillDisplayNames: i,
|
|
1613
|
+
modelDisplayName: r,
|
|
1614
|
+
instructionsMarkdown: a,
|
|
1615
|
+
renderInstructions: o,
|
|
1616
|
+
instructionsClassNames: s,
|
|
1617
|
+
markdownLabels: c,
|
|
1618
|
+
styles: l
|
|
1619
|
+
})
|
|
1620
|
+
] });
|
|
1595
1621
|
return /* @__PURE__ */ W(C, {
|
|
1596
|
-
title: /* @__PURE__ */ W(
|
|
1622
|
+
title: /* @__PURE__ */ W(Tt, {
|
|
1597
1623
|
className: d,
|
|
1598
1624
|
children: u.title
|
|
1599
1625
|
}),
|
|
1600
|
-
expanded:
|
|
1601
|
-
onToggle:
|
|
1602
|
-
children:
|
|
1626
|
+
expanded: m,
|
|
1627
|
+
onToggle: h,
|
|
1628
|
+
children: b
|
|
1603
1629
|
});
|
|
1604
|
-
},
|
|
1630
|
+
}, jt = ({ taskName: e, icon: t, typeLabel: n, body: r, pendingLabel: i, isDeleting: a = !1, styles: o, ...s }) => /* @__PURE__ */ W(l, {
|
|
1605
1631
|
...s,
|
|
1606
1632
|
variant: ae.Danger,
|
|
1607
1633
|
popupClassName: o?.popupClassName,
|
|
@@ -1626,4 +1652,4 @@ var ze = "1180px", Be = {
|
|
|
1626
1652
|
})
|
|
1627
1653
|
});
|
|
1628
1654
|
//#endregion
|
|
1629
|
-
export { c as DESCRIPTION_MAX_LENGTH, Be as SCHEDULED_TASKS_CLASS, ze as SCHEDULED_TASKS_GRID_DEFAULT_MAX_WIDTH, We as ScheduledTaskCard, Ye as ScheduledTaskCardGrid, Je as ScheduledTaskCardSkeleton,
|
|
1655
|
+
export { c as DESCRIPTION_MAX_LENGTH, Be as SCHEDULED_TASKS_CLASS, ze as SCHEDULED_TASKS_GRID_DEFAULT_MAX_WIDTH, We as ScheduledTaskCard, Ye as ScheduledTaskCardGrid, Je as ScheduledTaskCardSkeleton, At as ScheduledTaskConversationDetailsSection, kt as ScheduledTaskConversationDetailsState, Dt as ScheduledTaskConversationHistorySection, lt as ScheduledTaskCreateForm, jt as ScheduledTaskDeleteConfirmation, xt as ScheduledTaskDetailView, wt as ScheduledTaskDetailsSummary, bt as ScheduledTaskHistorySection, q as ScheduledTaskPresentationStatus, r as ScheduledTaskRepeat, vt as ScheduledTaskRunHistoryList, gt as ScheduledTaskRunStatus, K as ScheduledTaskStatus, Qe as ScheduledTasks, $e as ScheduledTasksSortKey, s as TIME_OF_DAY_PATTERN, Ve as getScheduledTaskStatus, nt as hasScheduledTaskFormChanges };
|