@epam/ai-dial-scheduled-tasks 1.3.0-dev.16 → 1.3.0-dev.160

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.
Files changed (47) hide show
  1. package/{calendar-value-B41Uk26Z.js → calendar-value-CjtsOQpy.js} +7 -6
  2. package/components/ScheduledTaskBoundaryField/ScheduledTaskBoundaryField.d.ts +27 -0
  3. package/components/ScheduledTaskBoundaryField/ScheduledTaskBoundaryField.d.ts.map +1 -0
  4. package/components/ScheduledTaskConversationDetailsSection/ScheduledTaskConversationDetailsSection.d.ts +71 -0
  5. package/components/ScheduledTaskConversationDetailsSection/ScheduledTaskConversationDetailsSection.d.ts.map +1 -0
  6. package/components/ScheduledTaskConversationHistorySection/ScheduledTaskConversationHistorySection.d.ts +71 -0
  7. package/components/ScheduledTaskConversationHistorySection/ScheduledTaskConversationHistorySection.d.ts.map +1 -0
  8. package/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.d.ts.map +1 -1
  9. package/components/ScheduledTaskDeleteConfirmation/ScheduledTaskDeleteConfirmation.d.ts +5 -1
  10. package/components/ScheduledTaskDeleteConfirmation/ScheduledTaskDeleteConfirmation.d.ts.map +1 -1
  11. package/components/ScheduledTaskDetailView/ScheduledTaskDetailView.d.ts.map +1 -1
  12. package/components/ScheduledTaskDetailsSummary/ScheduledTaskDetailsSummary.d.ts.map +1 -1
  13. package/components/ScheduledTaskHistorySection/ScheduledTaskHistorySection.d.ts.map +1 -1
  14. package/components/ScheduledTaskRunAtField/ScheduledTaskRunAtField.d.ts +6 -2
  15. package/components/ScheduledTaskRunAtField/ScheduledTaskRunAtField.d.ts.map +1 -1
  16. package/components/ScheduledTaskRunHistoryList/ScheduledTaskRunHistoryList.d.ts.map +1 -1
  17. package/components/ScheduledTasks/ScheduledTasks.d.ts.map +1 -1
  18. package/components/SectionAccordionTitle/SectionAccordionTitle.d.ts +15 -0
  19. package/components/SectionAccordionTitle/SectionAccordionTitle.d.ts.map +1 -0
  20. package/hooks/usePickerErrorAssociation/usePickerErrorAssociation.d.ts +3 -0
  21. package/hooks/usePickerErrorAssociation/usePickerErrorAssociation.d.ts.map +1 -0
  22. package/index.css +3 -2
  23. package/index.d.ts +5 -0
  24. package/index.d.ts.map +1 -1
  25. package/index.js +890 -723
  26. package/models/scheduled-task-create-form-props.d.ts +9 -5
  27. package/models/scheduled-task-create-form-props.d.ts.map +1 -1
  28. package/models/scheduled-task-detail-view-props.d.ts +3 -1
  29. package/models/scheduled-task-detail-view-props.d.ts.map +1 -1
  30. package/models/scheduled-task-details-summary-props.d.ts +5 -2
  31. package/models/scheduled-task-details-summary-props.d.ts.map +1 -1
  32. package/models/scheduled-task-history-section-props.d.ts +6 -2
  33. package/models/scheduled-task-history-section-props.d.ts.map +1 -1
  34. package/models/scheduled-task-run-history-list-props.d.ts +7 -3
  35. package/models/scheduled-task-run-history-list-props.d.ts.map +1 -1
  36. package/models/scheduled-task-run-item.d.ts +5 -1
  37. package/models/scheduled-task-run-item.d.ts.map +1 -1
  38. package/models/scheduled-tasks-props.d.ts +4 -0
  39. package/models/scheduled-tasks-props.d.ts.map +1 -1
  40. package/package.json +4 -4
  41. package/utils/calendar-value.d.ts +7 -1
  42. package/utils/calendar-value.d.ts.map +1 -1
  43. package/utils/window-boundary.d.ts +4 -0
  44. package/utils/window-boundary.d.ts.map +1 -0
  45. package/validation/scheduled-task-validation.d.ts +4 -4
  46. package/validation/scheduled-task-validation.d.ts.map +1 -1
  47. package/validation.js +24 -22
package/index.js CHANGED
@@ -1,63 +1,63 @@
1
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./calendar-value-B41Uk26Z.js";
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-CjtsOQpy.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, useIsMobile as b, useTextRefinement as x, useUnsavedChangesGuard as ee } from "@epam/ai-dial-chat-shared";
3
- import { ButtonAppearance as te, ButtonDropdown as S, ButtonVariant as ne, Calendar as C, CalendarMode as w, CardShell as T, ConfirmationPopupVariant as E, DIAL_ICON_SIZE as D, DIAL_KIT_ICON_STROKE as O, ElementSize as re, FolderPath as ie, GhostButton as k, GhostIconButton as ae, Highlight as oe, Input as se, Label as ce, MenuItemMark as le, NeutralButton as ue, NumberInput as de, PrimaryButton as fe, Search as A, Select as pe, Skeleton as j, SkeletonVariant as M, Spinner as me, Switch as he, Tabs as ge, Textarea as _e } from "@epam/ai-dial-ui-kit";
4
- import { IconAlertTriangle as ve, IconArrowNarrowLeft as ye, IconArrowsSort as N, IconCheck as be, IconCircleCheck as xe, IconCircleX as P, IconClipboardX as Se, IconClockHour3 as F, IconPencilMinus as Ce, IconPlayerPause as I, IconPlayerPlay as L, IconPlus as R, IconTrashX as we } from "@tabler/icons-react";
5
- import { Suspense as Te, lazy as Ee, useCallback as z, useEffect as De, useId as Oe, useLayoutEffect as ke, useMemo as Ae, useRef as B, useState as je } from "react";
6
- import { Fragment as Me, jsx as V, jsxs as H } from "react/jsx-runtime";
7
- import { BuilderFormContainer as Ne } from "@epam/ai-dial-builder-form";
8
- import { LazyMarkdownEditor as U } from "@epam/ai-dial-ui-kit/editors";
3
+ import { Accordion as S, ButtonAppearance as C, ButtonDropdown as w, ButtonVariant as T, Calendar as E, CalendarMode as D, CardShell as O, ConfirmationPopupVariant as te, DIAL_ICON_SIZE as k, DIAL_KIT_ICON_STROKE as A, ElementSize as ne, ErrorText as j, FolderPath as re, GhostButton as M, GhostIconButton as ie, Highlight as ae, Input as oe, Label as se, MenuItemMark as N, NeutralButton as P, NoDataContent as F, NumberInput as ce, PrimaryButton as le, Search as ue, Select as de, Skeleton as I, SkeletonVariant as L, Spinner as fe, Switch as R, Tabs as pe, Textarea as me, Tooltip as he } from "@epam/ai-dial-ui-kit";
4
+ import { IconAlertTriangle as z, IconArrowNarrowLeft as ge, IconArrowsSort as _e, IconCheck as B, IconCircleX as V, IconPencilMinus as ve, IconPlayerPause as H, IconPlayerPlay as ye, IconPlus as be, IconTrashX as xe } from "@tabler/icons-react";
5
+ import { Suspense as Se, lazy as U, useCallback as Ce, useEffect as we, useId as Te, useLayoutEffect as Ee, useMemo as W, useRef as De, useState as Oe } from "react";
6
+ import { Fragment as ke, jsx as G, jsxs as K } from "react/jsx-runtime";
7
+ import { BuilderFormContainer as Ae } from "@epam/ai-dial-builder-form";
8
+ import { LazyMarkdownEditor as je } from "@epam/ai-dial-ui-kit/editors";
9
9
  //#region src/constants/public-class-names.ts
10
- var W = {
10
+ var Me = {
11
11
  card: "dial-scheduled-tasks-card",
12
12
  cardGrid: "dial-scheduled-tasks-card-grid",
13
13
  refineFeedback: "dial-scheduled-tasks-refine-feedback"
14
- }, G = /* @__PURE__ */ function(e) {
14
+ }, q = /* @__PURE__ */ function(e) {
15
15
  return e.Scheduled = "scheduled", e.Paused = "paused", e.Completed = "completed", e;
16
- }({}), K = /* @__PURE__ */ function(e) {
16
+ }({}), Ne = /* @__PURE__ */ function(e) {
17
17
  return e.Active = "active", e.Paused = "paused", e.Completed = "completed", e;
18
18
  }({}), Pe = (e) => {
19
19
  switch (e.presentationStatus) {
20
- case K.Active: return G.Scheduled;
21
- case K.Paused: return G.Paused;
22
- case K.Completed: return G.Completed;
20
+ case Ne.Active: return q.Scheduled;
21
+ case Ne.Paused: return q.Paused;
22
+ case Ne.Completed: return q.Completed;
23
23
  }
24
- return e.isCompleted ? G.Completed : e.isActive === !1 ? G.Paused : G.Scheduled;
25
- }, q = {
26
- schedulePill: "_schedulePill_146jw_1",
27
- scheduleLabel: "_scheduleLabel_146jw_6",
28
- pausedPill: "_pausedPill_146jw_10",
29
- pausedLabel: "_pausedLabel_146jw_15",
30
- completedPill: "_completedPill_146jw_19",
31
- completedLabel: "_completedLabel_146jw_24"
24
+ return e.isCompleted ? q.Completed : e.isActive === !1 ? q.Paused : q.Scheduled;
32
25
  }, J = {
33
- [G.Scheduled]: {
26
+ schedulePill: "_schedulePill_1cwco_1",
27
+ scheduleLabel: "_scheduleLabel_1cwco_6",
28
+ pausedPill: "_pausedPill_1cwco_10",
29
+ pausedLabel: "_pausedLabel_1cwco_15",
30
+ completedPill: "_completedPill_1cwco_19",
31
+ completedLabel: "_completedLabel_1cwco_24"
32
+ }, Fe = {
33
+ [q.Scheduled]: {
34
34
  pillClassName: "inline-block rounded-lg border px-2 py-1",
35
- wrapperClassName: q.schedulePill,
36
- labelClassName: q.scheduleLabel
35
+ wrapperClassName: J.schedulePill,
36
+ labelClassName: J.scheduleLabel
37
37
  },
38
- [G.Paused]: {
38
+ [q.Paused]: {
39
39
  pillClassName: "inline-flex items-center gap-1.5 rounded-full border px-2 py-1",
40
- wrapperClassName: q.pausedPill,
41
- labelClassName: q.pausedLabel,
42
- renderIcon: () => /* @__PURE__ */ V(I, {
43
- size: D.SM,
40
+ wrapperClassName: J.pausedPill,
41
+ labelClassName: J.pausedLabel,
42
+ renderIcon: () => /* @__PURE__ */ G(H, {
43
+ size: k.SM,
44
44
  "aria-hidden": !0,
45
- stroke: O
45
+ stroke: A
46
46
  })
47
47
  },
48
- [G.Completed]: {
48
+ [q.Completed]: {
49
49
  pillClassName: "inline-flex items-center gap-1.5 rounded-full border px-2 py-1",
50
- wrapperClassName: q.completedPill,
51
- labelClassName: q.completedLabel,
52
- renderIcon: () => /* @__PURE__ */ V(be, {
53
- size: D.SM,
50
+ wrapperClassName: J.completedPill,
51
+ labelClassName: J.completedLabel,
52
+ renderIcon: () => /* @__PURE__ */ G(B, {
53
+ size: k.SM,
54
54
  "aria-hidden": !0,
55
- stroke: O
55
+ stroke: A
56
56
  })
57
57
  }
58
- }, Fe = ({ status: e, text: t, textClassName: n = "dial-tiny-text", className: r }) => {
59
- let { pillClassName: i, wrapperClassName: a, labelClassName: o, renderIcon: s } = J[e];
60
- return /* @__PURE__ */ H("span", {
58
+ }, Ie = ({ status: e, text: t, textClassName: n = "dial-tiny-text", className: r }) => {
59
+ let { pillClassName: i, wrapperClassName: a, labelClassName: o, renderIcon: s } = Fe[e];
60
+ return /* @__PURE__ */ K("span", {
61
61
  className: v(i, n, a, o, r),
62
62
  children: [s && s(), t]
63
63
  });
@@ -69,21 +69,21 @@ var W = {
69
69
  newBadge: "_newBadge_hmbo0_18",
70
70
  locationDivider: "_locationDivider_hmbo0_23",
71
71
  card: "_card_hmbo0_34"
72
- }, Ie = ({ item: e, searchQuery: t = "", onCardClick: n, labels: r, styles: i, className: a }) => {
73
- let o = b(), s = r?.newBadgeLabel ?? "NEW", c = r?.pausedBadgeLabel ?? "Paused", l = r?.completedBadgeLabel ?? "Completed", { colors: u, typography: d } = i ?? {}, f = d?.titleClassName ?? "dial-body-semi-text", p = d?.descriptionClassName ?? "dial-small-text", m = d?.descriptionSizeClassName ?? "dial-tiny-text", h = d?.scheduleLabelClassName ?? "dial-tiny-text", g = d?.pausedBadgeClassName ?? "dial-tiny-text", y = d?.completedBadgeClassName ?? "dial-tiny-text", x = d?.locationLabelClassName ?? "dial-tiny-text", ee = d?.locationLeafClassName ?? "dial-tiny-semi-text", te = d?.newBadgeClassName ?? "dial-tiny-semi-text", S = Pe(e), { text: ne, textClassName: C } = {
74
- [G.Scheduled]: {
72
+ }, Le = ({ item: e, searchQuery: t = "", onCardClick: n, labels: r, styles: i, className: a }) => {
73
+ let o = b(), s = r?.newBadgeLabel ?? "NEW", c = r?.pausedBadgeLabel ?? "Paused", l = r?.completedBadgeLabel ?? "Completed", { colors: u, typography: d } = i ?? {}, f = d?.titleClassName ?? "dial-body-semi-text", p = d?.descriptionClassName ?? "dial-small-text", m = d?.descriptionSizeClassName ?? "dial-tiny-text", h = d?.scheduleLabelClassName ?? "dial-tiny-text", g = d?.pausedBadgeClassName ?? "dial-tiny-text", y = d?.completedBadgeClassName ?? "dial-tiny-text", x = d?.locationLabelClassName ?? "dial-tiny-text", ee = d?.locationLeafClassName ?? "dial-tiny-semi-text", S = d?.newBadgeClassName ?? "dial-tiny-semi-text", C = Pe(e), { text: w, textClassName: T } = {
74
+ [q.Scheduled]: {
75
75
  text: e.scheduleLabel,
76
76
  textClassName: h
77
77
  },
78
- [G.Paused]: {
78
+ [q.Paused]: {
79
79
  text: c,
80
80
  textClassName: g
81
81
  },
82
- [G.Completed]: {
82
+ [q.Completed]: {
83
83
  text: l,
84
84
  textClassName: y
85
85
  }
86
- }[S], w = _({
86
+ }[C], E = _({
87
87
  "--stc-title-text": u?.titleText,
88
88
  "--stc-desc-text": u?.descriptionText,
89
89
  "--stc-pill-bg": u?.schedulePillBackground,
@@ -100,46 +100,46 @@ var W = {
100
100
  "--stc-completed-bg": u?.completedBadgeBackground,
101
101
  "--stc-completed-border": u?.completedBadgeBorder,
102
102
  "--stc-completed-text": u?.completedBadgeText
103
- }), E = n ? {
103
+ }), D = n ? {
104
104
  tabIndex: 0,
105
105
  onClick: () => n(e.id),
106
106
  onKeyDown: (t) => {
107
107
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e.id));
108
108
  }
109
109
  } : {};
110
- return /* @__PURE__ */ H(T, {
110
+ return /* @__PURE__ */ K(O, {
111
111
  role: n ? "button" : "group",
112
112
  "aria-label": e.displayName,
113
- style: w,
114
- className: v("h-[var(--st-card-height,232px)]", Y.card, n && "cursor-pointer", a, W.card),
115
- ...E,
113
+ style: E,
114
+ className: v("h-[var(--st-card-height,232px)]", Y.card, n && "cursor-pointer", a, Me.card),
115
+ ...D,
116
116
  children: [
117
- /* @__PURE__ */ H("div", {
117
+ /* @__PURE__ */ K("div", {
118
118
  className: "flex min-w-0 shrink-0 items-start gap-2 desktop:items-center",
119
- children: [/* @__PURE__ */ V(oe, {
119
+ children: [/* @__PURE__ */ G(ae, {
120
120
  text: e.displayName,
121
121
  query: t,
122
122
  maxLines: o ? 2 : 1,
123
123
  className: v(f, Y.title)
124
- }), e.isNew && /* @__PURE__ */ V("span", {
125
- className: v("shrink-0 rounded-full px-2 py-0.5", te, Y.newBadge),
124
+ }), e.isNew && /* @__PURE__ */ G("span", {
125
+ className: v("shrink-0 rounded-full px-2 py-0.5", S, Y.newBadge),
126
126
  children: s
127
127
  })]
128
128
  }),
129
- e.descriptionPreview && /* @__PURE__ */ V("p", {
129
+ e.descriptionPreview && /* @__PURE__ */ G("p", {
130
130
  className: v("line-clamp-4 min-h-0 flex-1 overflow-hidden", m, p, Y.description),
131
131
  children: e.descriptionPreview
132
132
  }),
133
- /* @__PURE__ */ H("div", {
133
+ /* @__PURE__ */ K("div", {
134
134
  className: "mt-auto flex shrink-0 flex-col gap-3",
135
- children: [/* @__PURE__ */ V("div", {
135
+ children: [/* @__PURE__ */ G("div", {
136
136
  className: "flex min-h-[28px] items-center",
137
- children: /* @__PURE__ */ V(Fe, {
138
- status: S,
139
- text: ne,
140
- textClassName: C
137
+ children: /* @__PURE__ */ G(Ie, {
138
+ status: C,
139
+ text: w,
140
+ textClassName: T
141
141
  })
142
- }), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */ V(ie, {
142
+ }), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */ G(re, {
143
143
  segments: e.locationSegments,
144
144
  labelClassName: v(x, Y.locationLabel),
145
145
  leafClassName: v(ee, Y.locationLeaf),
@@ -148,40 +148,43 @@ var W = {
148
148
  })
149
149
  ]
150
150
  });
151
- }, Le = { card: "_card_18ivt_1" }, Re = [
151
+ }, Re = { card: "_card_18ivt_1" }, ze = [
152
152
  "100%",
153
153
  "100%",
154
154
  "61%"
155
- ], ze = "var(--stcs-skeleton-bg)", Be = ({ styles: e }) => /* @__PURE__ */ H(T, {
156
- "aria-hidden": !0,
157
- style: _({ "--stcs-skeleton-bg": e?.colors?.skeletonColor }),
158
- className: v("h-[var(--st-card-height,232px)]", Le.card),
159
- children: [
160
- /* @__PURE__ */ V(j, {
161
- variant: M.Rectangular,
162
- width: "60%",
163
- height: "20px",
164
- color: ze,
165
- className: "shrink-0"
166
- }),
167
- /* @__PURE__ */ V("div", {
168
- className: "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden",
169
- children: Re.map((e, t) => /* @__PURE__ */ V(j, {
170
- variant: M.Rectangular,
171
- width: e,
172
- height: "16px",
173
- color: ze
174
- }, t))
175
- }),
176
- /* @__PURE__ */ V(j, {
177
- variant: M.Rectangular,
178
- width: "110px",
179
- height: "28px",
180
- color: ze,
181
- className: "shrink-0 rounded-lg"
182
- })
183
- ]
184
- }), Ve = ({ items: e, searchQuery: t, onCardClick: n, labels: r, cardStyles: i, trailingSkeletonCount: a = 0, skeletonStyles: o, layout: s }) => /* @__PURE__ */ H("div", {
155
+ ], Be = "var(--stcs-skeleton-bg)", Ve = ({ styles: e }) => {
156
+ let t = _({ "--stcs-skeleton-bg": e?.colors?.skeletonColor });
157
+ return /* @__PURE__ */ K(O, {
158
+ "aria-hidden": !0,
159
+ style: t,
160
+ className: v("h-[var(--st-card-height,232px)]", Re.card),
161
+ children: [
162
+ /* @__PURE__ */ G(I, {
163
+ variant: L.Rectangular,
164
+ width: "60%",
165
+ height: "20px",
166
+ color: Be,
167
+ className: "shrink-0"
168
+ }),
169
+ /* @__PURE__ */ G("div", {
170
+ className: "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden",
171
+ children: ze.map((e, t) => /* @__PURE__ */ G(I, {
172
+ variant: L.Rectangular,
173
+ width: e,
174
+ height: "16px",
175
+ color: Be
176
+ }, t))
177
+ }),
178
+ /* @__PURE__ */ G(I, {
179
+ variant: L.Rectangular,
180
+ width: "110px",
181
+ height: "28px",
182
+ color: Be,
183
+ className: "shrink-0 rounded-lg"
184
+ })
185
+ ]
186
+ });
187
+ }, He = ({ items: e, searchQuery: t, onCardClick: n, labels: r, cardStyles: i, trailingSkeletonCount: a = 0, skeletonStyles: o, layout: s }) => /* @__PURE__ */ K("div", {
185
188
  style: {
186
189
  "--st-grid-min-card-width": s?.minCardWidth,
187
190
  "--st-grid-gap": s?.gap,
@@ -191,14 +194,14 @@ var W = {
191
194
  gap: "var(--st-grid-gap, 20px)",
192
195
  gridTemplateColumns: "repeat(auto-fill, minmax(min(100%, max(var(--st-grid-min-card-width, 320px), calc((100% - (var(--st-grid-columns) - 1) * var(--st-grid-gap, 20px)) / var(--st-grid-columns)))), 1fr))"
193
196
  },
194
- className: v("mx-auto grid w-full min-w-0", W.cardGrid),
195
- children: [e.map((e) => /* @__PURE__ */ V(Ie, {
197
+ className: v("mx-auto grid w-full min-w-0", Me.cardGrid),
198
+ children: [e.map((e) => /* @__PURE__ */ G(Le, {
196
199
  item: e,
197
200
  searchQuery: t,
198
201
  onCardClick: n,
199
202
  labels: r,
200
203
  styles: i
201
- }, e.id)), Array.from({ length: a }, (e, t) => /* @__PURE__ */ V(Be, { styles: o }, `skeleton-${t}`))]
204
+ }, e.id)), Array.from({ length: a }, (e, t) => /* @__PURE__ */ G(Ve, { styles: o }, `skeleton-${t}`))]
202
205
  }), X = {
203
206
  container: "_container_3vz4t_2",
204
207
  subtitle: "_subtitle_3vz4t_6",
@@ -206,50 +209,46 @@ var W = {
206
209
  sortButton: "_sortButton_3vz4t_19",
207
210
  createButton: "_createButton_3vz4t_10",
208
211
  sortControlHidden: "_sortControlHidden_3vz4t_49"
209
- }, He = /* @__PURE__ */ V(F, {
210
- size: 48,
211
- stroke: 1,
212
- "aria-hidden": !0
213
- }), Ue = (e, t, n, r, i, a) => {
212
+ }, Ue = (e, t, n, r, i, a) => {
214
213
  if (!e) return t ? a.loadingMoreLabel : n ? a.errorLabel : r > 0 ? `${r}` : i ? a.noResultsLabel : a.emptyStateLabel;
215
214
  }, We = (e) => {
216
215
  if (!e || e === document.body) return null;
217
216
  let { overflow: t, overflowY: n } = getComputedStyle(e);
218
217
  return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : We(e.parentElement);
219
- }, Ge = ({ labels: e, onCreateClick: t, searchQuery: n, onSearchQueryChange: r, sortKey: i, onSortChange: a, items: o, isLoading: s = !1, error: c, onRetry: l, hasMore: u = !1, isLoadingMore: d = !1, skeletonCount: f = 6, onLoadMore: p, onCardClick: h, banner: g, styles: y, sortIcon: b, className: x, gridLayout: ee, cardStyles: C, loadMoreError: w, onRetryLoadMore: T }) => {
220
- let { colors: E, typography: ie } = y ?? {}, ae = ie?.titleClassName ?? "dial-h1-text", oe = ie?.subtitleClassName ?? "dial-body-text", se = _({
221
- "--st-bg": E?.background,
222
- "--st-subtitle-text": E?.subtitleText,
223
- "--st-sort-text": E?.sortButtonText
224
- }), ce = (e) => {
218
+ }, Ge = ({ labels: e, onCreateClick: t, searchQuery: n, onSearchQueryChange: r, sortKey: i, onSortChange: a, items: o, isLoading: s = !1, error: c, onRetry: l, hasMore: u = !1, isLoadingMore: d = !1, skeletonCount: f = 6, onLoadMore: p, onCardClick: h, banner: g, styles: y, sortIcon: b, className: x, gridLayout: ee, cardStyles: S, loadMoreError: E, onRetryLoadMore: D }) => {
219
+ let { colors: O, typography: te } = y ?? {}, j = te?.titleClassName ?? "dial-h1-text", re = te?.subtitleClassName ?? "dial-body-text", ie = _({
220
+ "--st-bg": O?.background,
221
+ "--st-subtitle-text": O?.subtitleText,
222
+ "--st-sort-text": O?.sortButtonText
223
+ }), ae = (e) => {
225
224
  r(e ?? "");
226
- }, [ue, de] = je(!1), [pe, j] = je(!1), M = B(null), he = z(() => {
227
- j(!0);
228
- }, []), ge = z(() => {
229
- j(!1);
225
+ }, [oe, se] = Oe(!1), [P, F] = Oe(!1), ce = De(null), de = Ce(() => {
226
+ F(!0);
227
+ }, []), I = Ce(() => {
228
+ F(!1);
230
229
  }, []);
231
- ke(() => {
232
- let e = M.current;
233
- pe && ue && e != null && e.offsetParent == null && de(!1);
234
- }, [pe, ue]);
235
- let _e = e.sortOptions.find((e) => e.value === i)?.label ?? e.sortLabel, ve = Ae(() => e.sortOptions.map((e) => ({
230
+ Ee(() => {
231
+ let e = ce.current;
232
+ P && oe && e != null && e.offsetParent == null && se(!1);
233
+ }, [P, oe]);
234
+ let L = e.sortOptions.find((e) => e.value === i)?.label ?? e.sortLabel, R = W(() => e.sortOptions.map((e) => ({
236
235
  key: e.value,
237
236
  label: e.label,
238
- mark: le.Check,
237
+ mark: N.Check,
239
238
  checked: e.value === i,
240
239
  onClick: () => a(e.value)
241
240
  })), [
242
241
  e.sortOptions,
243
242
  i,
244
243
  a
245
- ]), ye = Ue(s, d, !!c, o.length, n.trim().length > 0, e), be = B(null);
246
- De(() => {
247
- let e = be.current;
244
+ ]), pe = Ue(s, d, !!c, o.length, n.trim().length > 0, e), me = De(null);
245
+ we(() => {
246
+ let e = me.current;
248
247
  if (!e || !p) return;
249
248
  let t = We(e.parentElement);
250
249
  if (!t) return;
251
250
  let n = () => {
252
- if (d || s || w || !u) return;
251
+ if (d || s || E || !u) return;
253
252
  let n = t.getBoundingClientRect(), r = e.getBoundingClientRect();
254
253
  r.top < n.bottom && r.bottom > n.top && p();
255
254
  };
@@ -258,152 +257,187 @@ var W = {
258
257
  u,
259
258
  d,
260
259
  s,
261
- w,
260
+ E,
262
261
  p
263
262
  ]);
264
- let xe = () => s ? /* @__PURE__ */ V(me, {}) : c ? /* @__PURE__ */ H("div", {
263
+ let he = () => s ? /* @__PURE__ */ G(fe, {}) : c ? /* @__PURE__ */ K("div", {
265
264
  className: "flex flex-col items-center gap-3",
266
- children: [/* @__PURE__ */ V("p", {
267
- className: v(oe, X.subtitle),
265
+ children: [/* @__PURE__ */ G("p", {
266
+ className: v(re, X.subtitle),
268
267
  children: e.errorLabel
269
- }), /* @__PURE__ */ V(k, {
268
+ }), /* @__PURE__ */ G(M, {
270
269
  label: e.retryLabel,
271
270
  onClick: l
272
271
  })]
273
- }) : o.length === 0 ? n.trim() ? /* @__PURE__ */ V("p", {
274
- className: v(oe, X.subtitle),
275
- children: e.noResultsLabel
276
- }) : /* @__PURE__ */ V(m, {
272
+ }) : o.length === 0 ? n.trim() ? /* @__PURE__ */ G(m, {
273
+ label: e.noResultsLabel,
274
+ description: e.noResultsDescription
275
+ }) : /* @__PURE__ */ G(m, {
277
276
  label: e.emptyStateLabel,
278
- icon: He
279
- }) : /* @__PURE__ */ H("div", {
277
+ description: e.emptyStateDescription
278
+ }) : /* @__PURE__ */ K("div", {
280
279
  className: "flex w-full flex-col gap-6",
281
280
  children: [
282
- /* @__PURE__ */ V(Ve, {
281
+ /* @__PURE__ */ G(He, {
283
282
  items: o,
284
283
  searchQuery: n,
285
284
  onCardClick: h,
286
285
  labels: e.cardLabels,
287
286
  trailingSkeletonCount: d ? f : 0,
288
- skeletonStyles: { colors: { skeletonColor: E?.skeletonColor } },
289
- cardStyles: C,
287
+ skeletonStyles: { colors: { skeletonColor: O?.skeletonColor } },
288
+ cardStyles: S,
290
289
  layout: ee
291
290
  }),
292
- w && /* @__PURE__ */ H("div", {
291
+ E && /* @__PURE__ */ K("div", {
293
292
  role: "alert",
294
293
  className: "flex items-center gap-3",
295
- children: [/* @__PURE__ */ V("span", {
296
- className: v(oe, X.subtitle),
294
+ children: [/* @__PURE__ */ G("span", {
295
+ className: v(re, X.subtitle),
297
296
  children: e.loadMoreErrorLabel ?? e.errorLabel
298
- }), /* @__PURE__ */ V(k, {
297
+ }), /* @__PURE__ */ G(M, {
299
298
  label: e.retryLabel,
300
- onClick: T
299
+ onClick: D
301
300
  })]
302
301
  }),
303
- /* @__PURE__ */ V("div", {
304
- ref: be,
302
+ /* @__PURE__ */ G("div", {
303
+ ref: me,
305
304
  "aria-hidden": !0,
306
305
  className: "h-px w-full"
307
306
  })
308
307
  ]
309
- }), P = s || !!c || o.length === 0;
310
- return /* @__PURE__ */ H("div", {
311
- style: se,
308
+ }), z = s || !!c || o.length === 0;
309
+ return /* @__PURE__ */ K("div", {
310
+ style: ie,
312
311
  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),
313
312
  children: [
314
- /* @__PURE__ */ H("div", {
313
+ /* @__PURE__ */ K("div", {
315
314
  className: "flex items-start justify-between gap-4",
316
- children: [/* @__PURE__ */ H("div", {
315
+ children: [/* @__PURE__ */ K("div", {
317
316
  className: "min-w-0 gap-2",
318
- children: [/* @__PURE__ */ V("h1", {
319
- className: v("truncate", ae),
317
+ children: [/* @__PURE__ */ G("h1", {
318
+ className: v("truncate", j),
320
319
  children: e.title
321
- }), /* @__PURE__ */ V("p", {
322
- className: v("mt-1", oe, X.subtitle),
320
+ }), /* @__PURE__ */ G("p", {
321
+ className: v("mt-1", re, X.subtitle),
323
322
  children: e.subtitle
324
323
  })]
325
- }), /* @__PURE__ */ V(fe, {
324
+ }), /* @__PURE__ */ G(le, {
326
325
  label: e.createButtonLabel,
327
326
  textClassName: X.createButtonLabel,
328
327
  "aria-label": e.createButtonLabel,
329
- iconBefore: /* @__PURE__ */ V(R, {
330
- size: D.SM,
328
+ iconBefore: /* @__PURE__ */ G(be, {
329
+ size: k.SM,
331
330
  "aria-hidden": !0,
332
- stroke: O
331
+ stroke: A
333
332
  }),
334
333
  onClick: t,
335
334
  className: v("shrink-0", X.createButton)
336
335
  })]
337
336
  }),
338
- /* @__PURE__ */ H("div", {
337
+ /* @__PURE__ */ K("div", {
339
338
  className: "flex flex-wrap items-center gap-3",
340
- children: [/* @__PURE__ */ V("div", {
339
+ children: [/* @__PURE__ */ G("div", {
341
340
  role: "search",
342
341
  className: "flex-1",
343
- children: /* @__PURE__ */ V(A, {
342
+ children: /* @__PURE__ */ G(ue, {
344
343
  value: n,
345
- onChange: ce,
344
+ onChange: ae,
346
345
  placeholder: e.searchPlaceholder,
347
346
  clearLabel: e.clearSearchLabel,
348
347
  "aria-label": e.searchAriaLabel,
349
- size: re.Large,
350
- onFocus: he,
351
- onBlur: ge
348
+ size: ne.Large,
349
+ onFocus: de,
350
+ onBlur: I
352
351
  })
353
- }), e.sortOptions.length > 0 && /* @__PURE__ */ V("div", {
354
- ref: M,
355
- className: v(pe && X.sortControlHidden),
356
- children: /* @__PURE__ */ V(S, {
357
- items: ve,
358
- label: _e,
359
- variant: ne.Primary,
360
- appearance: te.Ghost,
361
- iconBefore: b === void 0 ? /* @__PURE__ */ V(N, {
362
- size: D.SM,
352
+ }), e.sortOptions.length > 0 && /* @__PURE__ */ G("div", {
353
+ ref: ce,
354
+ className: v(P && X.sortControlHidden),
355
+ children: /* @__PURE__ */ G(w, {
356
+ items: R,
357
+ label: L,
358
+ variant: T.Primary,
359
+ appearance: C.Ghost,
360
+ iconBefore: b === void 0 ? /* @__PURE__ */ G(_e, {
361
+ size: k.SM,
363
362
  "aria-hidden": !0,
364
- stroke: O
363
+ stroke: A
365
364
  }) : b,
366
365
  className: X.sortButton
367
366
  })
368
367
  })]
369
368
  }),
370
369
  g,
371
- /* @__PURE__ */ V("span", {
370
+ /* @__PURE__ */ G("span", {
372
371
  role: "status",
373
372
  "aria-live": "polite",
374
373
  className: "sr-only",
375
- children: ye
374
+ children: pe
376
375
  }),
377
- /* @__PURE__ */ V("div", {
378
- className: v("mx-auto flex size-full w-full min-w-0 flex-col", P && "items-center justify-center"),
379
- children: xe()
376
+ /* @__PURE__ */ G("div", {
377
+ className: v("mx-auto flex size-full w-full min-w-0 flex-col", z && "items-center justify-center"),
378
+ children: he()
380
379
  })
381
380
  ]
382
381
  });
383
382
  }, Ke = /* @__PURE__ */ function(e) {
384
383
  return e.FirstToRun = "firstToRun", e.LastToRun = "lastToRun", e.Newest = "newest", e.NameAZ = "nameAZ", e;
385
384
  }({}), qe = (e) => e == null ? "" : typeof e == "string" ? e.trim() : Array.isArray(e) ? e.length ? JSON.stringify(e) : "" : JSON.stringify(e), Je = (e, t) => {
386
- let n = new Set([...Object.keys(e), ...Object.keys(t)]);
385
+ let n = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
387
386
  for (let r of n) if (qe(e[r]) !== qe(t[r])) return !0;
388
387
  return !1;
389
- }, Ye = { error: "_error_v2pfn_4" }, Xe = ({ label: e, value: t, onChange: r, error: i, errorClassName: a = "dial-small-text" }) => {
390
- let o = B(/* @__PURE__ */ new Date()).current;
391
- return /* @__PURE__ */ H("div", {
388
+ }, Ye = (e, t, n) => t === r.Hourly == (n === r.Hourly) ? e : void 0, Xe = (e, t) => {
389
+ let n = Te();
390
+ return Ee(() => {
391
+ let r = document.getElementById(e);
392
+ r && (t ? r.setAttribute("aria-describedby", n) : r.removeAttribute("aria-describedby"));
393
+ }, [
394
+ t,
395
+ n,
396
+ e
397
+ ]), n;
398
+ }, Ze = { error: "_error_v2pfn_4" }, Qe = ({ id: t, mode: r, label: a, placeholder: o, value: s, onChange: c, minDate: l, error: u, errorClassName: d, disabled: f }) => {
399
+ let p = (e) => c(r === D.DateTime ? n(e) : i(e)), m = Xe(t, u);
400
+ return /* @__PURE__ */ K("div", {
401
+ className: "flex flex-1 flex-col gap-1",
402
+ children: [/* @__PURE__ */ G(E, {
403
+ id: t,
404
+ mode: r,
405
+ value: e(s),
406
+ onChange: p,
407
+ minDate: l,
408
+ labelProps: { label: a },
409
+ placeholder: o,
410
+ invalid: !!u,
411
+ disabled: f
412
+ }), u && /* @__PURE__ */ G(j, {
413
+ id: m,
414
+ role: "alert",
415
+ className: v(d, Ze.error),
416
+ text: u
417
+ })]
418
+ });
419
+ }, $e = { error: "_error_v2pfn_4" }, et = ({ label: e, placeholder: r, value: i, onChange: a, disabled: o, error: s, errorClassName: c = "dial-tiny-text" }) => {
420
+ let l = De(/* @__PURE__ */ new Date()).current, u = (e) => a(n(e)), d = Xe("scheduled-task-run-at", s);
421
+ return /* @__PURE__ */ K("div", {
392
422
  className: "flex flex-col gap-1",
393
- children: [/* @__PURE__ */ V(C, {
423
+ children: [/* @__PURE__ */ G(E, {
394
424
  id: "scheduled-task-run-at",
395
- mode: w.DateTime,
396
- value: s(t),
397
- onChange: (e) => r(n(e)),
398
- minDate: o,
425
+ mode: D.DateTime,
426
+ value: t(i),
427
+ onChange: u,
428
+ minDate: l,
399
429
  labelProps: {
400
430
  label: e,
401
431
  required: !0
402
432
  },
403
- invalid: !!i
404
- }), i && /* @__PURE__ */ V("p", {
405
- className: v(a, Ye.error),
406
- children: i
433
+ placeholder: r,
434
+ invalid: !!s,
435
+ disabled: o
436
+ }), s && /* @__PURE__ */ G(j, {
437
+ id: d,
438
+ role: "alert",
439
+ className: v(c, $e.error),
440
+ text: s
407
441
  })]
408
442
  });
409
443
  }, Z = {
@@ -413,264 +447,267 @@ var W = {
413
447
  instructionsError: "_instructionsError_1253x_18",
414
448
  refineFeedback: "_refineFeedback_1253x_22",
415
449
  refineError: "_refineError_1253x_26"
416
- }, Ze = Ee(async () => ({ default: (await U()).MarkdownEditor })), Qe = ({ labels: n, values: r, initialValues: s, errors: u, modelSelector: p, modelLabelId: m, skillSelector: h, onFieldChange: b, onBack: te, onCancel: S, onSubmit: ne, isSubmitting: T = !1, onRefineDescription: re, onRefineInstructions: ie, markdownEditorTheme: k, backIcon: ae, className: oe, styles: le }) => {
417
- let ue = Oe(), fe = Oe(), A = B(void 0), j = (e) => e ? async (t, n) => {
418
- if (A.current && !A.current.aborted) throw new DOMException("Busy", "AbortError");
419
- A.current = n;
450
+ }, tt = U(async () => ({ default: (await je()).MarkdownEditor })), nt = ({ labels: e, values: t, initialValues: n, errors: i, modelSelector: c, modelLabelId: u, skillSelector: p, onFieldChange: m, onBack: h, onCancel: b, onSubmit: S, isSubmitting: C = !1, onRefineDescription: w, onRefineInstructions: T, markdownEditorTheme: O, backIcon: ne, className: re, styles: M }) => {
451
+ let ie = Te(), ae = Te(), N = De(void 0), P = (e) => e ? async (t, n) => {
452
+ if (N.current && !N.current.aborted) throw new DOMException("Busy", "AbortError");
453
+ N.current = n;
420
454
  try {
421
455
  return await e(t, n);
422
456
  } finally {
423
- A.current === n && (A.current = void 0);
457
+ N.current === n && (N.current = void 0);
424
458
  }
425
- } : void 0, M = x({
426
- value: r.description ?? "",
427
- onChange: (e) => b("description", e),
428
- onRefine: j(re),
429
- disabled: T
430
- }), he = x({
431
- value: r.prompt,
432
- onChange: (e) => b("prompt", e),
433
- onRefine: j(ie),
434
- disabled: T
435
- }), ge = M.isPending || he.isPending, ve = () => {
436
- M.reset(), he.reset();
437
- }, N = ee(!!(s && Je(r, s))), be = () => N.guard(() => {
438
- ve(), te();
439
- }), xe = () => N.guard(() => {
440
- ve(), S();
441
- }), P = y(), Se = !r.skillUrls?.length, [F, Ce] = je(), I = B(/* @__PURE__ */ new Date()).current, { colors: L, typography: R, layout: we } = le ?? {}, Ee = R?.titleClassName ?? "dial-h1-text", z = R?.sectionTitleClassName ?? "dial-body-semi-text", ke = R?.sectionSubtitleClassName ?? "dial-tiny-text", Ae = R?.instructionsLabelClassName ?? "dial-body-semi-text mb-1", U = R?.instructionsErrorClassName ?? "dial-small-text", G = _({
442
- "--stcf-details-border": L?.detailsColumnBorder,
443
- "--stcf-subtitle-text": L?.sectionSubtitleText,
444
- "--stcf-error-text": L?.instructionsErrorText,
445
- "--stcf-refine-action-text": L?.refineActionText,
446
- "--stcf-refine-error-text": L?.refineErrorText
447
- }), K = {
448
- feedbackClassName: v(L?.refineActionText && Z.refineFeedback, R?.refineFeedbackClassName, W.refineFeedback),
459
+ } : void 0, F = x({
460
+ value: t.description ?? "",
461
+ onChange: (e) => m("description", e),
462
+ onRefine: P(w),
463
+ disabled: C
464
+ }), le = x({
465
+ value: t.prompt,
466
+ onChange: (e) => m("prompt", e),
467
+ onRefine: P(T),
468
+ disabled: C
469
+ }), ue = F.isPending || le.isPending, I = () => {
470
+ F.reset(), le.reset();
471
+ }, L = !!(n && Je(t, n)), R = ee(L), pe = () => R.guard(() => {
472
+ I(), h();
473
+ }), he = () => R.guard(() => {
474
+ I(), b();
475
+ }), z = y(), _e = !t.skillUrls?.length, [B, V] = Oe(), ve = De(/* @__PURE__ */ new Date()).current, { colors: H, typography: ye, layout: be } = M ?? {}, xe = ye?.titleClassName ?? "dial-h1-text", U = ye?.sectionTitleClassName ?? "dial-body-semi-text", Ce = ye?.sectionSubtitleClassName ?? "dial-tiny-text", Ee = ye?.instructionsLabelClassName ?? "dial-body-semi-text mb-1", W = ye?.instructionsErrorClassName ?? "dial-tiny-text", je = _({
476
+ "--stcf-details-border": H?.detailsColumnBorder,
477
+ "--stcf-subtitle-text": H?.sectionSubtitleText,
478
+ "--stcf-error-text": H?.instructionsErrorText,
479
+ "--stcf-refine-action-text": H?.refineActionText,
480
+ "--stcf-refine-error-text": H?.refineErrorText
481
+ }), q = {
482
+ feedbackClassName: v(H?.refineActionText && Z.refineFeedback, ye?.refineFeedbackClassName, Me.refineFeedback),
449
483
  errorClassName: Z.refineError
484
+ }, Ne = (t) => {
485
+ let n = s.test(t.target.value) ? void 0 : e.timeInvalidLabel;
486
+ V(n), m("time", t.target.value);
450
487
  }, Pe = (e) => {
451
- Ce(c.test(e.target.value) ? void 0 : n.timeInvalidLabel), b("time", e.target.value);
452
- }, q = (e) => {
453
- Ce(void 0), b("time", typeof e == "string" ? e : "");
454
- }, J = r.repeat !== t.OneTime && r.repeat !== t.Hourly;
455
- De(() => {
456
- J || Ce(void 0);
457
- }, [J]);
458
- let Fe = J ? F ?? u.time : void 0, Y = (e) => b("runAt", e), Ie = T || ge || !r.displayName.trim() || !r.modelId || !r.prompt.trim() && !r.skillUrls?.length || !!u.skillUrls || J && !r.time || !!Fe;
459
- return /* @__PURE__ */ H(Me, { children: [/* @__PURE__ */ V(Ne, {
488
+ V(void 0), m("time", typeof e == "string" ? e : "");
489
+ }, J = (e) => {
490
+ let n = e;
491
+ m("repeat", n);
492
+ let r = Ye(t.startDate, t.repeat, n);
493
+ r !== t.startDate && m("startDate", r ?? "");
494
+ let i = Ye(t.endDate, t.repeat, n);
495
+ i !== t.endDate && m("endDate", i ?? "");
496
+ }, Fe = t.repeat !== r.OneTime && t.repeat !== r.Hourly, Ie = t.repeat === r.Hourly, Y = Ie ? D.DateTime : D.Date, Le = Ie ? e.startDateAndTimeLabel : e.startDateLabel, Re = Ie ? e.endDateAndTimeLabel : e.endDateLabel;
497
+ we(() => {
498
+ Fe || V(void 0);
499
+ }, [Fe]);
500
+ let ze = Fe ? B ?? i.time : void 0, Be = (e) => m("runAt", e), Ve = C || ue || !t.displayName.trim() || !t.modelId || !t.prompt.trim() && !t.skillUrls?.length || !!i.skillUrls || t.repeat === r.OneTime && (!t.runAt || !!i.runAt) || Fe && !t.time || !!ze;
501
+ return /* @__PURE__ */ K(ke, { children: [/* @__PURE__ */ G(Ae, {
460
502
  labels: {
461
- title: n.pageTitle,
462
- backButtonLabel: n.backButtonLabel,
463
- cancelButtonLabel: n.cancelButtonLabel,
464
- submitButtonLabel: n.createButtonLabel,
465
- submittingLabel: n.submittingLabel ?? "Saving"
503
+ title: e.pageTitle,
504
+ backButtonLabel: e.backButtonLabel,
505
+ cancelButtonLabel: e.cancelButtonLabel,
506
+ submitButtonLabel: e.createButtonLabel,
507
+ submittingLabel: e.submittingLabel ?? "Saving"
466
508
  },
467
- onBack: be,
468
- onCancel: xe,
509
+ onBack: pe,
510
+ onCancel: he,
469
511
  onSubmit: () => {
470
- !Ie && (!A.current || A.current.aborted) && ne();
512
+ !Ve && (!N.current || N.current.aborted) && S();
471
513
  },
472
- isCancelDisabled: T,
473
- isSubmitDisabled: Ie,
474
- isSubmitting: T,
475
- backIcon: ae === void 0 ? /* @__PURE__ */ V(ye, {
476
- size: D.LG,
477
- stroke: O,
514
+ isCancelDisabled: C,
515
+ isSubmitDisabled: Ve,
516
+ isSubmitting: C,
517
+ backIcon: ne === void 0 ? /* @__PURE__ */ G(ge, {
518
+ size: k.LG,
519
+ stroke: A,
478
520
  "aria-hidden": !0,
479
521
  className: "rtl:scale-x-[-1]"
480
- }) : ae,
522
+ }) : ne,
481
523
  layout: {
482
- sideColumnWidth: we?.detailsWidth,
483
- columnGap: we?.columnGap,
524
+ sideColumnWidth: be?.detailsWidth,
525
+ columnGap: be?.columnGap,
484
526
  reserveEndColumn: !1
485
527
  },
486
- className: oe,
528
+ className: re,
487
529
  styles: {
488
- colors: { background: L?.background },
530
+ colors: { background: H?.background },
489
531
  header: {
490
- colors: { borderColor: L?.headerBorder },
491
- typography: { fontClassName: Ee }
532
+ colors: { borderColor: H?.headerBorder },
533
+ typography: { fontClassName: xe }
492
534
  },
493
- cssVars: G
535
+ cssVars: je
494
536
  },
495
- left: /* @__PURE__ */ H("div", {
537
+ left: /* @__PURE__ */ K("div", {
496
538
  role: "group",
497
- "aria-label": n.detailsSectionTitle,
539
+ "aria-label": e.detailsSectionTitle,
498
540
  className: v("flex flex-1 flex-col gap-5 py-6 desktop:border-e", Z.detailsColumn, Z.formColumn),
499
541
  children: [
500
- /* @__PURE__ */ H("div", {
542
+ /* @__PURE__ */ K("div", {
501
543
  className: "flex flex-col gap-1",
502
- children: [/* @__PURE__ */ V("h2", {
503
- className: z,
504
- children: n.detailsSectionTitle
505
- }), /* @__PURE__ */ V("p", {
506
- className: v(ke, Z.sectionSubtitle),
507
- children: n.detailsSectionSubtitle
544
+ children: [/* @__PURE__ */ G("h2", {
545
+ className: U,
546
+ children: e.detailsSectionTitle
547
+ }), /* @__PURE__ */ G("p", {
548
+ className: v(Ce, Z.sectionSubtitle),
549
+ children: e.detailsSectionSubtitle
508
550
  })]
509
551
  }),
510
- /* @__PURE__ */ V(se, {
552
+ /* @__PURE__ */ G(oe, {
511
553
  id: "scheduled-task-display-name",
512
- value: r.displayName,
513
- onChange: (e) => b("displayName", e ?? ""),
554
+ value: t.displayName,
555
+ onChange: (e) => m("displayName", e ?? ""),
514
556
  labelProps: {
515
- label: n.displayNameLabel,
557
+ label: e.displayNameLabel,
516
558
  required: !0
517
559
  },
518
- invalid: !!u.displayName,
519
- error: u.displayName
560
+ invalid: !!i.displayName,
561
+ error: i.displayName
520
562
  }),
521
- /* @__PURE__ */ V(g, {
522
- isEnabled: !!re,
523
- fieldId: ue,
524
- label: n.descriptionLabel,
525
- labels: n,
526
- refinement: M,
527
- disabled: T || ge,
528
- ...K,
529
- children: /* @__PURE__ */ V(_e, {
530
- id: ue,
531
- value: r.description ?? "",
563
+ /* @__PURE__ */ G(g, {
564
+ isEnabled: !!w,
565
+ fieldId: ie,
566
+ label: e.descriptionLabel,
567
+ labels: e,
568
+ refinement: F,
569
+ disabled: C || ue,
570
+ caption: `${(t.description ?? "").length}/500`,
571
+ ...q,
572
+ children: /* @__PURE__ */ G(me, {
573
+ id: ie,
574
+ value: t.description ?? "",
532
575
  onChange: (e) => {
533
- M.reset(), b("description", e);
576
+ F.reset(), m("description", e);
534
577
  },
535
- labelProps: re ? void 0 : { label: n.descriptionLabel },
578
+ labelProps: w ? void 0 : { label: e.descriptionLabel },
536
579
  maxLength: 500,
537
- invalid: !!u.description,
538
- error: u.description,
539
- caption: r.description ? `${r.description.length}/500` : void 0
580
+ invalid: !!i.description,
581
+ error: i.description
540
582
  })
541
583
  }),
542
- /* @__PURE__ */ H("div", {
584
+ /* @__PURE__ */ K("div", {
543
585
  className: "flex flex-col gap-1",
544
586
  children: [
545
- /* @__PURE__ */ V(ce, {
546
- id: m,
547
- label: n.modelOrAgentLabel,
587
+ /* @__PURE__ */ G(se, {
588
+ id: u,
589
+ label: e.modelOrAgentLabel,
548
590
  required: !0
549
591
  }),
550
- p,
551
- u.modelId && /* @__PURE__ */ V("p", {
552
- className: v(U, Z.instructionsError),
553
- children: u.modelId
592
+ c,
593
+ i.modelId && /* @__PURE__ */ G(j, {
594
+ className: v(W, Z.instructionsError),
595
+ text: i.modelId
554
596
  })
555
597
  ]
556
598
  }),
557
- /* @__PURE__ */ H("div", {
599
+ /* @__PURE__ */ K("div", {
558
600
  className: "flex flex-col gap-3",
559
601
  children: [
560
- /* @__PURE__ */ V(pe, {
561
- labelProps: { label: n.repeatLabel },
562
- value: r.repeat,
563
- onChange: (e) => b("repeat", e),
564
- options: n.repeatOptions.map((e) => ({
602
+ /* @__PURE__ */ G(de, {
603
+ labelProps: { label: e.repeatLabel },
604
+ value: t.repeat,
605
+ onChange: J,
606
+ options: e.repeatOptions.map((e) => ({
565
607
  value: e.key,
566
608
  label: e.label
567
609
  }))
568
610
  }),
569
- r.repeat === t.OneTime && /* @__PURE__ */ V(Xe, {
570
- label: n.runAtLabel,
571
- value: r.runAt ?? "",
572
- onChange: Y,
573
- error: u.runAt,
574
- errorClassName: U
611
+ t.repeat === r.OneTime && /* @__PURE__ */ G(et, {
612
+ label: e.runAtLabel,
613
+ placeholder: e.runAtPlaceholder,
614
+ value: t.runAt ?? "",
615
+ onChange: Be,
616
+ error: i.runAt,
617
+ errorClassName: W,
618
+ disabled: C
575
619
  }),
576
- r.repeat !== t.OneTime && /* @__PURE__ */ H(Me, { children: [
577
- J && /* @__PURE__ */ H("div", {
620
+ t.repeat !== r.OneTime && /* @__PURE__ */ K(ke, { children: [
621
+ t.repeat === r.Weekly && /* @__PURE__ */ K("div", {
578
622
  className: "flex flex-col gap-1",
579
- children: [/* @__PURE__ */ V(C, {
580
- id: "scheduled-task-time",
581
- mode: w.Time,
582
- value: r.time,
583
- onChange: q,
584
- onBlur: Pe,
623
+ children: [/* @__PURE__ */ G(E, {
624
+ id: "scheduled-task-day-of-week",
625
+ mode: D.Weekday,
626
+ value: a(t.dayOfWeek),
627
+ onChange: (e) => m("dayOfWeek", o(e)),
585
628
  labelProps: {
586
- label: n.timeLabel,
629
+ label: e.dayOfWeekLabel,
587
630
  required: !0
588
631
  },
589
- invalid: !!Fe,
590
- disabled: T,
591
- showTimezone: !0
592
- }), Fe && /* @__PURE__ */ V("p", {
593
- className: v(U, Z.instructionsError),
594
- children: Fe
632
+ invalid: !!i.dayOfWeek
633
+ }), i.dayOfWeek && /* @__PURE__ */ G(j, {
634
+ className: v(W, Z.instructionsError),
635
+ text: i.dayOfWeek
595
636
  })]
596
637
  }),
597
- r.repeat === t.Weekly && /* @__PURE__ */ H("div", {
638
+ Fe && /* @__PURE__ */ K("div", {
598
639
  className: "flex flex-col gap-1",
599
- children: [/* @__PURE__ */ V(C, {
600
- id: "scheduled-task-day-of-week",
601
- mode: w.Weekday,
602
- value: a(r.dayOfWeek),
603
- onChange: (e) => b("dayOfWeek", o(e)),
640
+ children: [/* @__PURE__ */ G(E, {
641
+ id: "scheduled-task-time",
642
+ mode: D.Time,
643
+ value: t.time,
644
+ onChange: Pe,
645
+ onBlur: Ne,
604
646
  labelProps: {
605
- label: n.dayOfWeekLabel,
647
+ label: e.timeLabel,
606
648
  required: !0
607
649
  },
608
- invalid: !!u.dayOfWeek
609
- }), u.dayOfWeek && /* @__PURE__ */ V("p", {
610
- className: v(U, Z.instructionsError),
611
- children: u.dayOfWeek
650
+ invalid: !!ze,
651
+ disabled: C,
652
+ showTimezone: !0
653
+ }), ze && /* @__PURE__ */ G(j, {
654
+ className: v(W, Z.instructionsError),
655
+ text: ze
612
656
  })]
613
657
  }),
614
- r.repeat === t.Monthly && /* @__PURE__ */ V(de, {
658
+ t.repeat === r.Monthly && /* @__PURE__ */ G(ce, {
615
659
  id: "scheduled-task-day-of-month",
616
660
  integer: !0,
617
661
  min: 1,
618
662
  max: 31,
619
- value: r.dayOfMonth ?? "",
620
- onChange: (e) => b("dayOfMonth", e == null ? "" : String(e)),
663
+ value: t.dayOfMonth ?? "",
664
+ onChange: (e) => m("dayOfMonth", e == null ? "" : String(e)),
621
665
  labelProps: {
622
- label: n.dayOfMonthLabel,
666
+ label: e.dayOfMonthLabel,
623
667
  required: !0
624
668
  },
625
- invalid: !!u.dayOfMonth,
626
- error: u.dayOfMonth
669
+ invalid: !!i.dayOfMonth,
670
+ error: i.dayOfMonth
627
671
  }),
628
- r.repeat === t.Hourly && /* @__PURE__ */ V(de, {
672
+ t.repeat === r.Hourly && /* @__PURE__ */ G(ce, {
629
673
  id: "scheduled-task-minute",
630
674
  integer: !0,
631
675
  min: 0,
632
676
  max: 59,
633
- value: r.minute ?? "",
634
- onChange: (e) => b("minute", e == null ? "" : String(e)),
677
+ wrapperClassName: "w-[142px]",
678
+ value: t.minute ?? "",
679
+ onChange: (e) => m("minute", e == null ? "" : String(e)),
635
680
  labelProps: {
636
- label: n.minuteLabel,
681
+ label: e.minuteLabel,
637
682
  required: !0
638
683
  },
639
- invalid: !!u.minute,
640
- error: u.minute
684
+ invalid: !!i.minute,
685
+ error: i.minute
641
686
  }),
642
- /* @__PURE__ */ H("div", {
643
- className: "flex flex-row gap-3",
644
- children: [/* @__PURE__ */ H("div", {
645
- className: "flex flex-1 flex-col gap-1",
646
- children: [/* @__PURE__ */ V(C, {
647
- id: "scheduled-task-start-date",
648
- mode: w.Date,
649
- value: e(r.startDate),
650
- onChange: (e) => b("startDate", i(e)),
651
- minDate: I,
652
- labelProps: { label: n.startDateLabel },
653
- placeholder: n.startDatePlaceholder,
654
- invalid: !!u.startDate
655
- }), u.startDate && /* @__PURE__ */ V("p", {
656
- className: v(U, Z.instructionsError),
657
- children: u.startDate
658
- })]
659
- }), /* @__PURE__ */ H("div", {
660
- className: "flex flex-1 flex-col gap-1",
661
- children: [/* @__PURE__ */ V(C, {
662
- id: "scheduled-task-end-date",
663
- mode: w.Date,
664
- value: e(r.endDate),
665
- onChange: (e) => b("endDate", i(e)),
666
- minDate: I,
667
- labelProps: { label: n.endDateLabel },
668
- placeholder: n.endDatePlaceholder,
669
- invalid: !!u.endDate
670
- }), u.endDate && /* @__PURE__ */ V("p", {
671
- className: v(U, Z.instructionsError),
672
- children: u.endDate
673
- })]
687
+ /* @__PURE__ */ K("div", {
688
+ className: v("gap-3", Ie ? "flex flex-col" : "flex flex-row"),
689
+ children: [/* @__PURE__ */ G(Qe, {
690
+ id: "scheduled-task-start-date",
691
+ mode: Y,
692
+ label: Le,
693
+ placeholder: e.startDatePlaceholder,
694
+ value: t.startDate,
695
+ onChange: (e) => m("startDate", e),
696
+ minDate: ve,
697
+ error: i.startDate,
698
+ errorClassName: W,
699
+ disabled: C
700
+ }), /* @__PURE__ */ G(Qe, {
701
+ id: "scheduled-task-end-date",
702
+ mode: Y,
703
+ label: Re,
704
+ placeholder: e.endDatePlaceholder,
705
+ value: t.endDate,
706
+ onChange: (e) => m("endDate", e),
707
+ minDate: ve,
708
+ error: i.endDate,
709
+ errorClassName: W,
710
+ disabled: C
674
711
  })]
675
712
  })
676
713
  ] })
@@ -678,72 +715,69 @@ var W = {
678
715
  })
679
716
  ]
680
717
  }),
681
- children: /* @__PURE__ */ H("div", {
718
+ children: /* @__PURE__ */ K("div", {
682
719
  role: "group",
683
- "aria-label": n.configurationSectionTitle,
720
+ "aria-label": e.configurationSectionTitle,
684
721
  className: v("flex flex-1 flex-col gap-5 py-6", Z.formColumn),
685
722
  children: [
686
- /* @__PURE__ */ H("div", {
723
+ /* @__PURE__ */ G("div", {
687
724
  className: "flex flex-col gap-1",
688
- children: [/* @__PURE__ */ V("h2", {
689
- className: z,
690
- children: n.configurationSectionTitle
691
- }), /* @__PURE__ */ V("p", {
692
- className: v(ke, Z.sectionSubtitle),
693
- children: n.configurationSectionSubtitle
694
- })]
725
+ children: /* @__PURE__ */ G("h2", {
726
+ className: U,
727
+ children: e.configurationSectionTitle
728
+ })
695
729
  }),
696
- h == null ? u.skillUrls && /* @__PURE__ */ V("div", {
730
+ p == null ? i.skillUrls && /* @__PURE__ */ G("div", {
697
731
  "aria-live": "polite",
698
- children: /* @__PURE__ */ V("p", {
699
- className: v(U, Z.instructionsError),
700
- children: u.skillUrls
732
+ children: /* @__PURE__ */ G(j, {
733
+ className: v(W, Z.instructionsError),
734
+ text: i.skillUrls
701
735
  })
702
- }) : /* @__PURE__ */ V("div", {
703
- className: "w-full min-w-0 max-w-[996px]",
704
- children: h
736
+ }) : /* @__PURE__ */ G("div", {
737
+ className: "w-full max-w-[996px] min-w-0",
738
+ children: p
705
739
  }),
706
- /* @__PURE__ */ V("div", {
707
- className: "flex w-full min-w-0 max-w-[996px] flex-col",
708
- children: /* @__PURE__ */ V(g, {
709
- isEnabled: !!ie,
710
- fieldId: fe,
711
- labelClassName: Ae,
712
- label: n.instructionsLabel,
713
- required: Se,
714
- labels: n,
715
- refinement: he,
716
- disabled: T || ge,
717
- ...K,
718
- children: /* @__PURE__ */ H("div", {
740
+ /* @__PURE__ */ G("div", {
741
+ className: "flex w-full max-w-[996px] min-w-0 flex-col",
742
+ children: /* @__PURE__ */ G(g, {
743
+ isEnabled: !!T,
744
+ fieldId: ae,
745
+ labelClassName: Ee,
746
+ label: e.instructionsLabel,
747
+ required: _e,
748
+ labels: e,
749
+ refinement: le,
750
+ disabled: C || ue,
751
+ ...q,
752
+ children: /* @__PURE__ */ K("div", {
719
753
  className: "flex flex-1 flex-col gap-1",
720
754
  children: [
721
- !ie && /* @__PURE__ */ V(ce, {
722
- htmlFor: fe,
723
- className: Ae,
724
- label: n.instructionsLabel,
725
- required: Se
755
+ !T && /* @__PURE__ */ G(se, {
756
+ htmlFor: ae,
757
+ className: Ee,
758
+ label: e.instructionsLabel,
759
+ required: _e
726
760
  }),
727
- /* @__PURE__ */ V("div", {
728
- ref: P,
761
+ /* @__PURE__ */ G("div", {
762
+ ref: z,
729
763
  className: v("w-full", d, f),
730
- children: /* @__PURE__ */ V(Te, {
731
- fallback: /* @__PURE__ */ V(me, {}),
732
- children: /* @__PURE__ */ V(Ze, {
733
- id: fe,
734
- value: r.prompt,
764
+ children: /* @__PURE__ */ G(Se, {
765
+ fallback: /* @__PURE__ */ G(fe, {}),
766
+ children: /* @__PURE__ */ G(tt, {
767
+ id: ae,
768
+ value: t.prompt,
735
769
  onChange: (e) => {
736
- he.reset(), b("prompt", e);
770
+ le.reset(), m("prompt", e);
737
771
  },
738
772
  height: 480,
739
- theme: k,
740
- placeholder: n.instructionsPlaceholder
773
+ theme: O,
774
+ placeholder: e.instructionsPlaceholder
741
775
  })
742
776
  })
743
777
  }),
744
- u.prompt && /* @__PURE__ */ V("p", {
745
- className: v(U, Z.instructionsError),
746
- children: u.prompt
778
+ i.prompt && /* @__PURE__ */ G(j, {
779
+ className: v(W, Z.instructionsError),
780
+ text: i.prompt
747
781
  })
748
782
  ]
749
783
  })
@@ -751,138 +785,137 @@ var W = {
751
785
  })
752
786
  ]
753
787
  })
754
- }), N.isConfirmOpen && /* @__PURE__ */ V(l, {
788
+ }), R.isConfirmOpen && /* @__PURE__ */ G(l, {
755
789
  open: !0,
756
- title: n.discardTitle ?? "Discard unsaved changes?",
757
- message: n.discardMessage ?? "You have unsaved changes. Leaving now will discard them.",
758
- confirmLabel: n.discardConfirmLabel ?? "Discard changes",
759
- cancelLabel: n.discardCancelLabel ?? "Keep editing",
760
- variant: E.Danger,
761
- onConfirm: N.confirm,
762
- onClose: N.dismiss
790
+ title: e.discardTitle ?? "Discard unsaved changes?",
791
+ message: e.discardMessage ?? "You have unsaved changes. Leaving now will discard them.",
792
+ confirmLabel: e.discardConfirmLabel ?? "Discard changes",
793
+ cancelLabel: e.discardCancelLabel ?? "Keep editing",
794
+ variant: te.Danger,
795
+ onConfirm: R.confirm,
796
+ onClose: R.dismiss
763
797
  })] });
764
- }, $e = /* @__PURE__ */ function(e) {
798
+ }, rt = /* @__PURE__ */ function(e) {
765
799
  return e.Details = "details", e.Configuration = "configuration", e.History = "history", e;
766
- }({}), et = /* @__PURE__ */ function(e) {
800
+ }({}), it = /* @__PURE__ */ function(e) {
767
801
  return e.Card = "card", e.Flow = "flow", e;
768
- }({}), tt = { subtitleText: "_subtitleText_1i4x2_3" }, nt = ({ skillLabel: e, skillDisplayNames: t, instructionsLabel: n, instructionsMarkdown: r, renderInstructions: i, markdownLabels: a, fieldLabelClassName: o = "dial-tiny-text" }) => /* @__PURE__ */ H("div", {
802
+ }({}), at = { subtitleText: "_subtitleText_1i4x2_3" }, ot = ({ skillLabel: e, skillDisplayNames: t, instructionsLabel: n, instructionsMarkdown: r, renderInstructions: i, markdownLabels: a, fieldLabelClassName: o = "dial-tiny-text" }) => /* @__PURE__ */ K("div", {
769
803
  className: "flex min-w-0 flex-col gap-5",
770
- children: [!!t?.length && /* @__PURE__ */ H("div", {
804
+ children: [!!t?.length && /* @__PURE__ */ K("div", {
771
805
  role: "group",
772
806
  "aria-label": e,
773
807
  className: "flex min-w-0 flex-col gap-1",
774
- children: [/* @__PURE__ */ V("span", {
775
- className: v(o, tt.subtitleText),
808
+ children: [/* @__PURE__ */ G("span", {
809
+ className: v(o, at.subtitleText),
776
810
  children: e
777
- }), /* @__PURE__ */ V("p", {
778
- className: "whitespace-normal break-all",
779
- children: t?.map((e, t) => /* @__PURE__ */ V("span", {
811
+ }), /* @__PURE__ */ G("p", {
812
+ className: "break-all whitespace-normal",
813
+ children: t?.map((e, t) => /* @__PURE__ */ G("span", {
780
814
  className: "block",
781
815
  children: e
782
816
  }, `${t}:${e}`))
783
817
  })]
784
- }), r && /* @__PURE__ */ H("div", {
818
+ }), r && /* @__PURE__ */ K("div", {
785
819
  role: "group",
786
820
  "aria-label": n,
787
821
  className: "flex min-w-0 flex-col gap-1",
788
- children: [/* @__PURE__ */ V("span", {
789
- className: v(o, tt.subtitleText),
822
+ children: [/* @__PURE__ */ G("span", {
823
+ className: v(o, at.subtitleText),
790
824
  children: n
791
- }), i ? i(r) : /* @__PURE__ */ V(p, {
825
+ }), i ? i(r) : /* @__PURE__ */ G(p, {
792
826
  content: r,
793
827
  ...a
794
828
  })]
795
829
  })]
796
- }), rt = { subtitleText: "_subtitleText_1i4x2_3" }, it = ({ labels: e, description: t, modelLabel: n, repeatsLabel: r, activeWindowLabel: i, completedLabel: a, fieldLabelClassName: o = "dial-tiny-text", fieldValueClassName: s = "dial-small-text" }) => /* @__PURE__ */ H(Me, { children: [
797
- t && /* @__PURE__ */ H("div", {
830
+ }), st = { subtitleText: "_subtitleText_1i4x2_3" }, ct = ({ labels: e, description: t, modelLabel: n, repeatsLabel: r, activeWindowLabel: i, completedLabel: a, fieldLabelClassName: o = "dial-tiny-text", fieldValueClassName: s = "dial-small-text" }) => /* @__PURE__ */ K(ke, { children: [
831
+ t && /* @__PURE__ */ K("div", {
798
832
  className: "flex flex-col gap-1",
799
- children: [/* @__PURE__ */ V("span", {
800
- className: v(o, rt.subtitleText),
833
+ children: [/* @__PURE__ */ G("span", {
834
+ className: v(o, st.subtitleText),
801
835
  children: e.descriptionLabel
802
- }), /* @__PURE__ */ V("p", {
836
+ }), /* @__PURE__ */ G("p", {
803
837
  className: s,
804
838
  children: t
805
839
  })]
806
840
  }),
807
- a && /* @__PURE__ */ H("div", {
841
+ a && /* @__PURE__ */ K("div", {
808
842
  className: "flex flex-col gap-1",
809
- children: [/* @__PURE__ */ V("span", {
810
- className: v(o, rt.subtitleText),
843
+ children: [/* @__PURE__ */ G("span", {
844
+ className: v(o, st.subtitleText),
811
845
  children: e.completedFieldLabel
812
- }), /* @__PURE__ */ V("p", {
846
+ }), /* @__PURE__ */ G("p", {
813
847
  className: s,
814
848
  children: a
815
849
  })]
816
850
  }),
817
- n && /* @__PURE__ */ H("div", {
851
+ n && /* @__PURE__ */ K("div", {
818
852
  className: "flex flex-col gap-1",
819
- children: [/* @__PURE__ */ V("span", {
820
- className: v(o, rt.subtitleText),
853
+ children: [/* @__PURE__ */ G("span", {
854
+ className: v(o, st.subtitleText),
821
855
  children: e.modelLabel
822
- }), /* @__PURE__ */ V("p", {
856
+ }), /* @__PURE__ */ G("p", {
823
857
  className: s,
824
858
  children: n
825
859
  })]
826
860
  }),
827
- r && /* @__PURE__ */ H("div", {
861
+ r && /* @__PURE__ */ K("div", {
828
862
  className: "flex flex-col gap-1",
829
- children: [/* @__PURE__ */ V("span", {
830
- className: v(o, rt.subtitleText),
863
+ children: [/* @__PURE__ */ G("span", {
864
+ className: v(o, st.subtitleText),
831
865
  children: e.repeatsLabel
832
- }), /* @__PURE__ */ V("p", {
866
+ }), /* @__PURE__ */ G("p", {
833
867
  className: s,
834
868
  children: r
835
869
  })]
836
870
  }),
837
- i && /* @__PURE__ */ H("div", {
871
+ i && /* @__PURE__ */ K("div", {
838
872
  className: "flex flex-col gap-1",
839
- children: [/* @__PURE__ */ V("span", {
840
- className: v(o, rt.subtitleText),
873
+ children: [/* @__PURE__ */ G("span", {
874
+ className: v(o, st.subtitleText),
841
875
  children: e.activeWindowLabel
842
- }), /* @__PURE__ */ V("p", {
876
+ }), /* @__PURE__ */ G("p", {
843
877
  className: s,
844
878
  children: i
845
879
  })]
846
880
  })
847
- ] }), at = /* @__PURE__ */ function(e) {
881
+ ] }), lt = /* @__PURE__ */ function(e) {
848
882
  return e.Success = "success", e.Error = "error", e.InProgress = "inProgress", e.Missed = "missed", e;
849
883
  }({}), Q = {
850
- subtitleText: "_subtitleText_1d5p9_1",
851
- successIcon: "_successIcon_1d5p9_5",
852
- errorIcon: "_errorIcon_1d5p9_9",
853
- missedIcon: "_missedIcon_1d5p9_13",
854
- currentRun: "_currentRun_1d5p9_17",
855
- interactiveRow: "_interactiveRow_1d5p9_22",
856
- unreadDot: "_unreadDot_1d5p9_33",
857
- rowLayout: "_rowLayout_1d5p9_37"
858
- }, ot = ({ status: e }) => {
884
+ subtitleText: "_subtitleText_6i141_1",
885
+ successIcon: "_successIcon_6i141_5",
886
+ errorIcon: "_errorIcon_6i141_9",
887
+ missedIcon: "_missedIcon_6i141_13",
888
+ currentRun: "_currentRun_6i141_17",
889
+ interactiveRow: "_interactiveRow_6i141_22",
890
+ unreadDot: "_unreadDot_6i141_33"
891
+ }, ut = ({ status: e }) => {
859
892
  switch (e) {
860
- case at.Success: return /* @__PURE__ */ V(xe, {
861
- size: D.SM,
893
+ case lt.Success: return /* @__PURE__ */ G(B, {
894
+ size: k.SM,
862
895
  className: Q.successIcon,
863
896
  "aria-hidden": !0,
864
- stroke: O
897
+ stroke: A
865
898
  });
866
- case at.Error: return /* @__PURE__ */ V(P, {
867
- size: D.SM,
899
+ case lt.Error: return /* @__PURE__ */ G(V, {
900
+ size: k.SM,
868
901
  className: Q.errorIcon,
869
902
  "aria-hidden": !0,
870
- stroke: O
903
+ stroke: A
871
904
  });
872
- case at.InProgress: return /* @__PURE__ */ V("span", {
905
+ case lt.InProgress: return /* @__PURE__ */ G("span", {
873
906
  "aria-hidden": !0,
874
- children: /* @__PURE__ */ V(me, { size: D.SM })
907
+ children: /* @__PURE__ */ G(fe, { size: k.SM })
875
908
  });
876
- case at.Missed: return /* @__PURE__ */ V(ve, {
877
- size: D.SM,
909
+ case lt.Missed: return /* @__PURE__ */ G(z, {
910
+ size: k.SM,
878
911
  className: Q.missedIcon,
879
912
  "aria-hidden": !0,
880
- stroke: O
913
+ stroke: A
881
914
  });
882
915
  default: return null;
883
916
  }
884
- }, st = ({ items: e, isLoading: t = !1, isLoadingMore: n = !1, skeletonCount: r = 6, error: i, onRetry: a, currentRunId: o, onRunClick: s, labels: c, footer: l, styles: u }) => {
885
- let { colors: d, typography: f } = u ?? {}, p = f?.runTimestampClassName ?? "dial-small-text", m = f?.subtitleClassName ?? "dial-body-text", h = c.unreadIndicatorLabel ?? "Unread", g = _({
917
+ }, dt = ({ items: e, isLoading: t = !1, isLoadingMore: n = !1, skeletonCount: r = 6, error: i, onRetry: a, currentRunId: o, onRunClick: s, labels: c, footer: l, styles: u }) => {
918
+ let { colors: d, typography: f } = u ?? {}, p = f?.runTimestampClassName ?? "dial-small-paragraph-text", m = f?.runTimestampUnreadClassName ?? "dial-small-paragraph-semi-text", h = f?.subtitleClassName ?? "dial-body-text", g = c.unreadIndicatorLabel ?? "Unread", y = _({
886
919
  "--strhl-success-icon": d?.successIconColor,
887
920
  "--strhl-error-icon": d?.errorIconColor,
888
921
  "--strhl-missed-icon": d?.missedIconColor,
@@ -892,10 +925,18 @@ var W = {
892
925
  "--strhl-row-hover-bg": u?.rowHoverBackground,
893
926
  "--strhl-row-focus-bg": u?.rowFocusBackground,
894
927
  "--strhl-row-focus-outline": u?.rowFocusOutline
895
- }), y = (e) => {
896
- let t = c.runStatusLabels[e.status], n = e.id === o, r = [e.isUnread ? h : void 0, n ? c.currentRunLabel : void 0].filter((e) => !!e), i = [`${t} ${e.timestampLabel}`, ...r].join(" — "), a = !!e.conversationId && !!s;
897
- return /* @__PURE__ */ H("li", {
898
- ...a ? {
928
+ }), b = (e) => {
929
+ let t = c.runStatusLabels[e.status], n = e.id === o, r = e.status === lt.Error && e.errorText ? e.errorText : void 0, i = [
930
+ r,
931
+ e.isUnread ? g : void 0,
932
+ n ? c.currentRunLabel : void 0
933
+ ].filter((e) => !!e), a = [[
934
+ t,
935
+ e.timestampLabel,
936
+ e.durationLabel
937
+ ].filter(Boolean).join(" "), ...i].join(" — "), l = !!e.conversationId && !!s;
938
+ return /* @__PURE__ */ K("li", {
939
+ ...l ? {
899
940
  role: "button",
900
941
  tabIndex: 0,
901
942
  onClick: () => s?.(e),
@@ -903,126 +944,133 @@ var W = {
903
944
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), s?.(e));
904
945
  }
905
946
  } : {},
906
- "aria-label": i,
947
+ "aria-label": a,
907
948
  "aria-current": n ? "true" : void 0,
908
- className: v("flex min-h-[var(--strhl-row-min-height,32px)] max-w-[328px] items-center justify-between gap-2 rounded-full pe-2", Q.rowLayout, n && Q.currentRun, a && "cursor-pointer", a && Q.interactiveRow),
909
- children: [/* @__PURE__ */ H("span", {
910
- className: "flex items-center gap-2 truncate",
911
- children: [/* @__PURE__ */ V("span", {
912
- className: "relative flex size-3 shrink-0 items-center justify-center",
913
- children: e.isUnread && /* @__PURE__ */ V("span", {
914
- className: v("size-[5.33px] rounded-full", Q.unreadDot),
915
- "aria-hidden": !0
949
+ 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),
950
+ children: [/* @__PURE__ */ K("span", {
951
+ className: "flex min-w-0 items-center gap-1",
952
+ children: [r ? /* @__PURE__ */ G(he, {
953
+ tooltip: r,
954
+ asChild: !0,
955
+ contentClassName: "max-w-[320px] whitespace-pre-wrap break-words",
956
+ children: /* @__PURE__ */ G("span", {
957
+ className: "flex shrink-0",
958
+ tabIndex: l ? void 0 : 0,
959
+ children: /* @__PURE__ */ G(ut, { status: e.status })
916
960
  })
917
- }), /* @__PURE__ */ V("span", {
918
- className: v(p, "truncate"),
919
- children: e.timestampLabel
961
+ }) : /* @__PURE__ */ G(ut, { status: e.status }), /* @__PURE__ */ K("span", {
962
+ className: "flex min-w-0 items-center gap-1",
963
+ children: [/* @__PURE__ */ G("span", {
964
+ className: v(e.isUnread ? m : p, "truncate"),
965
+ children: e.timestampLabel
966
+ }), e.durationLabel && /* @__PURE__ */ G("span", {
967
+ className: v(p, Q.subtitleText, "shrink-0"),
968
+ children: e.durationLabel
969
+ })]
920
970
  })]
921
- }), /* @__PURE__ */ V("span", {
922
- className: "flex min-h-[var(--strhl-row-min-height,32px)] w-14 shrink-0 items-center justify-end",
923
- children: /* @__PURE__ */ V(ot, { status: e.status })
971
+ }), /* @__PURE__ */ G("span", {
972
+ className: "relative flex size-3 shrink-0 items-center justify-center",
973
+ children: e.isUnread && /* @__PURE__ */ G("span", {
974
+ className: v("size-[5.33px] rounded-full", Q.unreadDot),
975
+ "aria-hidden": !0
976
+ })
924
977
  })]
925
978
  }, e.id);
926
- }, b = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */ H("li", {
979
+ }, x = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */ K("li", {
927
980
  "aria-hidden": "true",
928
- className: v("flex min-h-[var(--strhl-row-min-height,32px)] max-w-[328px] items-center justify-between gap-2 pe-2", Q.rowLayout),
929
- children: [/* @__PURE__ */ V(j, {
930
- variant: M.Rectangular,
981
+ 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",
982
+ children: [/* @__PURE__ */ G(I, {
983
+ variant: L.Rectangular,
931
984
  width: "160px",
932
985
  height: "16px"
933
- }), /* @__PURE__ */ V(j, {
934
- variant: M.Rectangular,
986
+ }), /* @__PURE__ */ G(I, {
987
+ variant: L.Rectangular,
935
988
  width: "16px",
936
989
  height: "16px",
937
990
  className: "shrink-0 rounded-full"
938
991
  })]
939
992
  }, `history-skeleton-${t}`));
940
- return t && e.length === 0 ? /* @__PURE__ */ V("ul", {
993
+ return t && e.length === 0 ? /* @__PURE__ */ G("ul", {
941
994
  style: {
942
- ...g,
995
+ ...y,
943
996
  "--strhl-row-min-height": u?.rowMinHeight
944
997
  },
945
998
  "aria-label": c.historyTitle,
946
999
  className: "flex flex-col gap-0.5",
947
- children: b(r)
948
- }) : i && e.length === 0 ? /* @__PURE__ */ H("div", {
949
- style: g,
1000
+ children: x(r)
1001
+ }) : i && e.length === 0 ? /* @__PURE__ */ K("div", {
1002
+ style: y,
950
1003
  className: "flex flex-col items-start gap-3",
951
- children: [/* @__PURE__ */ V("p", {
1004
+ children: [/* @__PURE__ */ G("p", {
952
1005
  role: "alert",
953
- className: v(m, Q.subtitleText),
1006
+ className: v(h, Q.subtitleText),
954
1007
  children: c.errorLabel
955
- }), /* @__PURE__ */ V(k, {
1008
+ }), /* @__PURE__ */ G(M, {
956
1009
  label: c.retryLabel,
957
1010
  onClick: a
958
1011
  })]
959
- }) : e.length === 0 ? /* @__PURE__ */ H("div", {
960
- style: g,
961
- className: "flex w-full flex-col items-center justify-center gap-2 py-4",
962
- children: [/* @__PURE__ */ V(Se, {
963
- size: 44,
964
- stroke: O,
965
- className: Q.subtitleText,
966
- "aria-hidden": !0
967
- }), /* @__PURE__ */ V("p", {
968
- role: "status",
969
- className: p,
970
- children: c.emptyLabel
971
- })]
972
- }) : /* @__PURE__ */ H("ul", {
1012
+ }) : e.length === 0 ? /* @__PURE__ */ G("div", {
1013
+ style: y,
1014
+ className: "w-full py-4",
1015
+ children: /* @__PURE__ */ G(F, {
1016
+ title: c.emptyLabel,
1017
+ description: c.emptyDescription,
1018
+ live: !0
1019
+ })
1020
+ }) : /* @__PURE__ */ K("ul", {
973
1021
  style: {
974
- ...g,
1022
+ ...y,
975
1023
  "--strhl-row-min-height": u?.rowMinHeight
976
1024
  },
977
1025
  "aria-label": c.historyTitle,
978
1026
  className: "flex flex-col gap-0.5",
979
1027
  children: [
980
- e.map(y),
981
- n && b(r),
982
- i ? /* @__PURE__ */ H("li", {
1028
+ e.map(b),
1029
+ n && x(r),
1030
+ i ? /* @__PURE__ */ K("li", {
983
1031
  className: "flex flex-col items-start gap-3 px-5 py-2",
984
- children: [/* @__PURE__ */ V("p", {
1032
+ children: [/* @__PURE__ */ G("p", {
985
1033
  role: "alert",
986
- className: v(m, Q.subtitleText),
1034
+ className: v(h, Q.subtitleText),
987
1035
  children: c.errorLabel
988
- }), /* @__PURE__ */ V(k, {
1036
+ }), /* @__PURE__ */ G(M, {
989
1037
  label: c.retryLabel,
990
1038
  onClick: a
991
1039
  })]
992
1040
  }) : l
993
1041
  ]
994
1042
  });
995
- }, ct = {
1043
+ }, ft = {
996
1044
  historyCard: "_historyCard_153p9_4",
997
1045
  subtitleText: "_subtitleText_153p9_8",
998
1046
  cardLayout: "_cardLayout_153p9_13"
999
- }, lt = ({ variant: e, labels: t, nextRunLabel: n, items: r, isLoading: i = !1, isLoadingMore: a = !1, skeletonCount: o = 6, error: s, onRetry: c, loadMoreError: l, onRetryLoadMore: u, hasMore: d = !1, onLoadMore: f, onRunClick: p, runTimestampClassName: m = "dial-small-text", sectionTitleClassName: h = "dial-body-semi-text", colors: g, styles: _ }) => {
1000
- let y = e === et.Card, b = y ? v("sticky bottom-0 z-10 rounded-b-xl px-6 pb-5 pt-2", ct.historyCard) : "pt-2", x = l ? /* @__PURE__ */ H("li", {
1001
- className: b,
1002
- children: [/* @__PURE__ */ V("p", {
1047
+ }, pt = ({ variant: e, labels: t, nextRunLabel: n, items: r, isLoading: i = !1, isLoadingMore: a = !1, skeletonCount: o = 6, error: s, onRetry: c, loadMoreError: l, onRetryLoadMore: u, hasMore: d = !1, onLoadMore: f, onRunClick: p, runTimestampClassName: m = "dial-small-text", runTimestampUnreadClassName: h = "dial-small-semi-text", sectionTitleClassName: g = "dial-body-semi-text", colors: _, styles: y }) => {
1048
+ let b = e === it.Card, x = b ? v("sticky bottom-0 z-10 rounded-b-xl px-6 pb-5 pt-2", ft.historyCard) : "pt-2", ee = l ? /* @__PURE__ */ K("li", {
1049
+ className: x,
1050
+ children: [/* @__PURE__ */ G("p", {
1003
1051
  role: "alert",
1004
1052
  children: t.historyLoadMoreErrorLabel ?? t.historyErrorLabel
1005
- }), u && /* @__PURE__ */ V(k, {
1053
+ }), u && /* @__PURE__ */ G(M, {
1006
1054
  label: t.historyRetryLabel,
1007
1055
  onClick: u,
1008
1056
  disabled: a
1009
1057
  })]
1010
- }) : f && d && t.historyShowMoreLabel ? /* @__PURE__ */ V("li", {
1011
- className: b,
1012
- children: /* @__PURE__ */ V(k, {
1058
+ }) : f && d && t.historyShowMoreLabel ? /* @__PURE__ */ G("li", {
1059
+ className: x,
1060
+ children: /* @__PURE__ */ G(M, {
1013
1061
  label: t.historyShowMoreLabel,
1014
1062
  onClick: f,
1015
1063
  disabled: a
1016
1064
  })
1017
- }) : void 0, ee = n ? /* @__PURE__ */ V("p", {
1018
- className: v(m, ct.subtitleText),
1065
+ }) : void 0, S = n ? /* @__PURE__ */ G("p", {
1066
+ className: v(m, ft.subtitleText),
1019
1067
  children: n
1020
- }) : void 0, te = t.historyLoadingMoreLabel ? /* @__PURE__ */ V("span", {
1068
+ }) : void 0, C = t.historyLoadingMoreLabel ? /* @__PURE__ */ G("span", {
1021
1069
  role: "status",
1022
1070
  "aria-live": "polite",
1023
1071
  className: "sr-only",
1024
1072
  children: a ? t.historyLoadingMoreLabel : ""
1025
- }) : void 0, S = /* @__PURE__ */ V(st, {
1073
+ }) : void 0, w = /* @__PURE__ */ G(dt, {
1026
1074
  items: r,
1027
1075
  isLoading: i,
1028
1076
  isLoadingMore: a,
@@ -1033,44 +1081,49 @@ var W = {
1033
1081
  labels: {
1034
1082
  historyTitle: t.historyTitle,
1035
1083
  emptyLabel: t.historyEmptyLabel,
1084
+ emptyDescription: t.historyEmptyDescription,
1036
1085
  errorLabel: t.historyErrorLabel,
1037
1086
  retryLabel: t.historyRetryLabel,
1038
1087
  runStatusLabels: t.runStatusLabels,
1039
1088
  unreadIndicatorLabel: t.unreadIndicatorLabel
1040
1089
  },
1041
- footer: x,
1090
+ footer: ee,
1042
1091
  styles: {
1043
- typography: { runTimestampClassName: m },
1044
- colors: _?.colors ?? g,
1045
- rowMinHeight: _?.rowMinHeight,
1046
- rowHoverBackground: _?.rowHoverBackground,
1047
- rowFocusBackground: _?.rowFocusBackground,
1048
- rowFocusOutline: _?.rowFocusOutline
1092
+ typography: {
1093
+ runTimestampClassName: m,
1094
+ runTimestampUnreadClassName: h
1095
+ },
1096
+ colors: y?.colors ?? _,
1097
+ rowMinHeight: y?.rowMinHeight,
1098
+ rowHoverBackground: y?.rowHoverBackground,
1099
+ rowFocusBackground: y?.rowFocusBackground,
1100
+ rowFocusOutline: y?.rowFocusOutline
1049
1101
  }
1050
1102
  });
1051
- return y ? /* @__PURE__ */ H("div", {
1052
- className: v("flex max-h-[var(--st-history-max-height,70vh)] w-full max-w-full flex-col overflow-y-auto rounded-xl shadow-md", ct.historyCard, ct.cardLayout),
1053
- style: { "--st-history-max-height": _?.maxHeight },
1054
- children: [/* @__PURE__ */ H("div", {
1055
- className: v("sticky top-0 z-10 flex flex-col gap-4 rounded-t-xl px-6 pb-2 pt-5", ct.historyCard),
1103
+ return b ? /* @__PURE__ */ K("div", {
1104
+ className: v("flex max-h-[var(--st-history-max-height,70vh)] w-full max-w-full flex-col overflow-y-auto rounded-xl shadow-md", ft.historyCard, ft.cardLayout),
1105
+ style: { "--st-history-max-height": y?.maxHeight },
1106
+ children: [/* @__PURE__ */ K("div", {
1107
+ className: v("sticky top-0 z-10 flex flex-col gap-4 rounded-t-xl px-6 pt-5 pb-2", ft.historyCard),
1056
1108
  children: [
1057
- /* @__PURE__ */ V("h2", {
1058
- className: h,
1109
+ /* @__PURE__ */ G("h2", {
1110
+ className: g,
1059
1111
  children: t.historyTitle
1060
1112
  }),
1061
- ee,
1062
- te
1113
+ S,
1114
+ C
1063
1115
  ]
1064
- }), /* @__PURE__ */ V("div", {
1116
+ }), /* @__PURE__ */ G("div", {
1065
1117
  className: "flex flex-1 flex-col gap-4 px-6 pb-2",
1066
- children: S
1118
+ style: { "--strhl-row-bleed": "12px" },
1119
+ children: w
1067
1120
  })]
1068
- }) : /* @__PURE__ */ H("div", {
1121
+ }) : /* @__PURE__ */ K("div", {
1069
1122
  className: "flex flex-col gap-4",
1070
1123
  children: [
1071
- ee,
1072
- te,
1073
- S
1124
+ S,
1125
+ C,
1126
+ w
1074
1127
  ]
1075
1128
  });
1076
1129
  }, $ = {
@@ -1086,27 +1139,27 @@ var W = {
1086
1139
  actionButton: "_actionButton_hdn5b_75",
1087
1140
  roundActionButton: "_roundActionButton_hdn5b_82",
1088
1141
  stickyTabs: "_stickyTabs_hdn5b_88"
1089
- }, ut = ({ 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: x, onRetry: ee, description: te, modelLabel: S, repeatsLabel: C, activeWindowLabel: w, completedLabel: T, nextRunLabel: E, instructionsMarkdown: re, skillDisplayNames: ie, renderInstructions: oe, runs: se, runsIsLoading: ce = !1, runsIsLoadingMore: le = !1, runsSkeletonCount: de = 6, runsError: fe, onRunsRetry: A, runsLoadMoreError: pe, onRunsRetryLoadMore: j, runsHasMore: M = !1, onRunsLoadMore: _e, onRunClick: ve, styles: N, className: be, backIcon: xe, layout: P, historyStyles: Se }) => {
1090
- let { colors: F, typography: I } = N ?? {}, R = I?.titleClassName ?? "dial-h2-text", Te = I?.sectionTitleClassName ?? "dial-body-semi-text", Ee = I?.fieldLabelClassName ?? "dial-tiny-text", z = I?.fieldValueClassName ?? "dial-small-text", De = I?.runTimestampClassName ?? "dial-small-text", ke = _({
1091
- "--stdv-bg": F?.background,
1092
- "--stdv-header-border": F?.headerBorder,
1093
- "--stdv-details-border": F?.detailsColumnBorder,
1094
- "--stdv-subtitle-text": F?.subtitleText,
1095
- "--stdv-history-bg": F?.historyCardBackground
1096
- }), Ae = b(), [B, Ne] = je($e.Details), U = Oe(), W = o && !i ? e.startNowBusyLabel : void 0, G = [
1142
+ }, mt = ({ 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: x, onRetry: ee, description: S, modelLabel: C, repeatsLabel: w, activeWindowLabel: E, completedLabel: D, nextRunLabel: O, instructionsMarkdown: te, skillDisplayNames: ne, renderInstructions: j, runs: re, runsIsLoading: ae = !1, runsIsLoadingMore: oe = !1, runsSkeletonCount: se = 6, runsError: N, onRunsRetry: F, runsLoadMoreError: ce, onRunsRetryLoadMore: le, runsHasMore: ue = !1, onRunsLoadMore: de, onRunClick: I, styles: L, className: me, backIcon: he, layout: z, historyStyles: _e }) => {
1143
+ let { colors: B, typography: V } = L ?? {}, H = V?.titleClassName ?? "dial-h2-text", be = V?.sectionTitleClassName ?? "dial-body-semi-text", Se = V?.fieldLabelClassName ?? "dial-tiny-text", U = V?.fieldValueClassName ?? "dial-small-text", Ce = V?.runTimestampClassName ?? "dial-small-text", we = _({
1144
+ "--stdv-bg": B?.background,
1145
+ "--stdv-header-border": B?.headerBorder,
1146
+ "--stdv-details-border": B?.detailsColumnBorder,
1147
+ "--stdv-subtitle-text": B?.subtitleText,
1148
+ "--stdv-history-bg": B?.historyCardBackground
1149
+ }), Ee = b(), [W, De] = Oe(rt.Details), Ae = Te(), je = o && !i ? e.startNowBusyLabel : void 0, Me = [
1097
1150
  {
1098
- id: $e.Details,
1151
+ id: rt.Details,
1099
1152
  label: e.detailsTitle
1100
1153
  },
1101
1154
  {
1102
- id: $e.Configuration,
1155
+ id: rt.Configuration,
1103
1156
  label: e.configurationTitle
1104
1157
  },
1105
1158
  {
1106
- id: $e.History,
1159
+ id: rt.History,
1107
1160
  label: e.historyTitle
1108
1161
  }
1109
- ], K = G.find((e) => e.id === B)?.label ?? e.detailsTitle, Pe = /* @__PURE__ */ V(it, {
1162
+ ], q = Me.find((e) => e.id === W)?.label ?? e.detailsTitle, Ne = /* @__PURE__ */ G(ct, {
1110
1163
  labels: {
1111
1164
  descriptionLabel: e.descriptionLabel,
1112
1165
  modelLabel: e.modelLabel,
@@ -1114,19 +1167,19 @@ var W = {
1114
1167
  activeWindowLabel: e.activeWindowLabel,
1115
1168
  completedFieldLabel: e.completedFieldLabel
1116
1169
  },
1117
- description: te,
1118
- modelLabel: S,
1119
- repeatsLabel: C,
1120
- activeWindowLabel: w,
1121
- completedLabel: T,
1122
- fieldLabelClassName: Ee,
1123
- fieldValueClassName: z
1124
- }), q = /* @__PURE__ */ V(nt, {
1170
+ description: S,
1171
+ modelLabel: C,
1172
+ repeatsLabel: w,
1173
+ activeWindowLabel: E,
1174
+ completedLabel: D,
1175
+ fieldLabelClassName: Se,
1176
+ fieldValueClassName: U
1177
+ }), Pe = /* @__PURE__ */ G(ot, {
1125
1178
  instructionsLabel: e.instructionsLabel,
1126
1179
  skillLabel: e.skillLabel,
1127
- skillDisplayNames: ie,
1128
- instructionsMarkdown: re,
1129
- renderInstructions: oe,
1180
+ skillDisplayNames: ne,
1181
+ instructionsMarkdown: te,
1182
+ renderInstructions: j,
1130
1183
  markdownLabels: {
1131
1184
  codeBlockCopyLabel: e.codeBlockCopyLabel,
1132
1185
  codeBlockCopiedLabel: e.codeBlockCopiedLabel,
@@ -1134,12 +1187,13 @@ var W = {
1134
1187
  tableScrollRegionAriaLabel: e.tableScrollRegionAriaLabel,
1135
1188
  mathScrollRegionAriaLabel: e.mathScrollRegionAriaLabel
1136
1189
  },
1137
- fieldLabelClassName: Ee
1138
- }), J = (t) => /* @__PURE__ */ V(lt, {
1190
+ fieldLabelClassName: Se
1191
+ }), J = (t) => /* @__PURE__ */ G(pt, {
1139
1192
  variant: t,
1140
1193
  labels: {
1141
1194
  historyTitle: e.historyTitle,
1142
1195
  historyEmptyLabel: e.historyEmptyLabel,
1196
+ historyEmptyDescription: e.historyEmptyDescription,
1143
1197
  historyErrorLabel: e.historyErrorLabel,
1144
1198
  historyLoadMoreErrorLabel: e.historyLoadMoreErrorLabel,
1145
1199
  historyRetryLabel: e.historyRetryLabel,
@@ -1148,266 +1202,379 @@ var W = {
1148
1202
  runStatusLabels: e.runStatusLabels,
1149
1203
  unreadIndicatorLabel: e.unreadIndicatorLabel
1150
1204
  },
1151
- nextRunLabel: E,
1152
- items: se,
1153
- isLoading: ce,
1154
- isLoadingMore: le,
1155
- skeletonCount: de,
1156
- error: fe,
1157
- onRetry: A,
1158
- loadMoreError: pe,
1159
- onRetryLoadMore: j,
1160
- hasMore: M,
1161
- onLoadMore: _e,
1162
- onRunClick: ve,
1163
- runTimestampClassName: De,
1164
- sectionTitleClassName: Te,
1165
- colors: F,
1166
- styles: Se
1205
+ nextRunLabel: O,
1206
+ items: re,
1207
+ isLoading: ae,
1208
+ isLoadingMore: oe,
1209
+ skeletonCount: se,
1210
+ error: N,
1211
+ onRetry: F,
1212
+ loadMoreError: ce,
1213
+ onRetryLoadMore: le,
1214
+ hasMore: ue,
1215
+ onLoadMore: de,
1216
+ onRunClick: I,
1217
+ runTimestampClassName: Ce,
1218
+ sectionTitleClassName: be,
1219
+ colors: B,
1220
+ styles: _e
1167
1221
  });
1168
- return /* @__PURE__ */ H("div", {
1169
- style: ke,
1170
- className: v("flex h-full min-h-0 w-full flex-col overflow-hidden", $.container, be),
1222
+ return /* @__PURE__ */ K("div", {
1223
+ style: we,
1224
+ className: v("flex h-full min-h-0 w-full flex-col overflow-hidden", $.container, me),
1171
1225
  children: [
1172
- /* @__PURE__ */ H("div", {
1173
- className: v("flex min-h-16 shrink-0 items-center justify-between gap-2 px-4 py-2 desktop:h-16 desktop:flex-nowrap desktop:px-8 desktop:py-0", $.header),
1174
- children: [/* @__PURE__ */ H("div", {
1226
+ /* @__PURE__ */ K("div", {
1227
+ 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),
1228
+ children: [/* @__PURE__ */ K("div", {
1175
1229
  className: "flex min-w-0 items-center gap-2",
1176
1230
  children: [
1177
- /* @__PURE__ */ V(ae, {
1178
- icon: xe === void 0 ? /* @__PURE__ */ V(ye, {
1179
- size: D.LG,
1231
+ /* @__PURE__ */ G(ie, {
1232
+ icon: he === void 0 ? /* @__PURE__ */ G(ge, {
1233
+ size: k.LG,
1180
1234
  className: "rtl:scale-x-[-1]",
1181
1235
  "aria-hidden": !0,
1182
- stroke: O
1183
- }) : xe,
1236
+ stroke: A
1237
+ }) : he,
1184
1238
  "aria-label": e.backAriaLabel,
1185
1239
  onClick: t
1186
1240
  }),
1187
- /* @__PURE__ */ V("h1", {
1188
- className: v("truncate", $.desktopTitle, R),
1241
+ /* @__PURE__ */ G("h1", {
1242
+ className: v("truncate", $.desktopTitle, H),
1189
1243
  children: g
1190
1244
  }),
1191
- l && /* @__PURE__ */ V("span", {
1192
- className: v("shrink-0", $.desktopBadge, z, $.subtitleText),
1245
+ l && /* @__PURE__ */ G("span", {
1246
+ className: v("shrink-0", $.desktopBadge, U, $.subtitleText),
1193
1247
  children: e.deletedStateLabel
1194
1248
  })
1195
1249
  ]
1196
- }), /* @__PURE__ */ H("div", {
1250
+ }), /* @__PURE__ */ K("div", {
1197
1251
  className: v("flex min-w-0 flex-1 flex-wrap items-center justify-end gap-2 desktop:flex-none desktop:flex-nowrap", $.headerActions),
1198
1252
  children: [
1199
- !l && !u && d !== void 0 && /* @__PURE__ */ H(Me, { children: [/* @__PURE__ */ V(he, {
1253
+ !l && !u && d !== void 0 && /* @__PURE__ */ K(ke, { children: [/* @__PURE__ */ G(R, {
1200
1254
  id: "scheduled-task-active-switch",
1201
1255
  labelProps: { label: e.activeStatusLabel },
1202
1256
  isOn: d,
1203
1257
  disabled: f || p || c,
1204
1258
  onChange: (e) => h?.(e)
1205
- }), p && m && /* @__PURE__ */ V("span", {
1206
- className: v(z, $.subtitleText),
1259
+ }), p && m && /* @__PURE__ */ G("span", {
1260
+ className: v(U, $.subtitleText),
1207
1261
  children: m
1208
1262
  })] }),
1209
- !l && s && /* @__PURE__ */ V(k, {
1210
- variant: ne.Danger,
1263
+ !l && s && /* @__PURE__ */ G(M, {
1264
+ variant: T.Danger,
1211
1265
  label: e.deleteButtonLabel,
1212
- iconBefore: /* @__PURE__ */ V(we, {
1213
- size: D.SM,
1266
+ iconBefore: /* @__PURE__ */ G(xe, {
1267
+ size: k.SM,
1214
1268
  "aria-hidden": !0,
1215
- stroke: O
1269
+ stroke: A
1216
1270
  }),
1217
1271
  onClick: s,
1218
1272
  disabled: c,
1219
1273
  textClassName: $.actionLabel,
1220
1274
  className: v("min-h-11 shrink-0", $.actionButton)
1221
1275
  }),
1222
- !l && n && /* @__PURE__ */ V(ue, {
1276
+ !l && n && /* @__PURE__ */ G(P, {
1223
1277
  label: e.editButtonLabel,
1224
- iconBefore: /* @__PURE__ */ V(Ce, {
1225
- size: D.SM,
1278
+ iconBefore: /* @__PURE__ */ G(ve, {
1279
+ size: k.SM,
1226
1280
  "aria-hidden": !0,
1227
- stroke: O
1281
+ stroke: A
1228
1282
  }),
1229
1283
  onClick: n,
1230
1284
  disabled: c,
1231
1285
  textClassName: $.actionLabel,
1232
1286
  className: v("min-h-11 shrink-0", $.actionButton, $.roundActionButton)
1233
1287
  }),
1234
- !l && r && e.startNowButtonLabel && /* @__PURE__ */ H("div", {
1288
+ !l && r && e.startNowButtonLabel && /* @__PURE__ */ K("div", {
1235
1289
  "aria-busy": i,
1236
- children: [W && /* @__PURE__ */ V("span", {
1237
- id: U,
1290
+ children: [je && /* @__PURE__ */ G("span", {
1291
+ id: Ae,
1238
1292
  className: "sr-only",
1239
- children: W
1240
- }), /* @__PURE__ */ V(ue, {
1293
+ children: je
1294
+ }), /* @__PURE__ */ G(P, {
1241
1295
  label: i ? e.startingLabel ?? e.startNowButtonLabel : e.startNowButtonLabel,
1242
- iconBefore: /* @__PURE__ */ V(L, {
1243
- size: D.SM,
1296
+ iconBefore: /* @__PURE__ */ G(ye, {
1297
+ size: k.SM,
1244
1298
  "aria-hidden": !0,
1245
- stroke: O
1299
+ stroke: A
1246
1300
  }),
1247
1301
  onClick: r,
1248
1302
  disabled: c || i || a || o,
1249
- "aria-describedby": W ? U : void 0,
1250
- tooltipProps: W ? { tooltip: W } : void 0,
1251
- className: "min-h-11 shrink-0"
1303
+ "aria-describedby": je ? Ae : void 0,
1304
+ tooltipProps: je ? { tooltip: je } : void 0,
1305
+ textClassName: $.actionLabel,
1306
+ className: v("min-h-11 shrink-0", $.actionButton, $.roundActionButton)
1252
1307
  })]
1253
1308
  })
1254
1309
  ]
1255
1310
  })]
1256
1311
  }),
1257
- /* @__PURE__ */ H("div", {
1312
+ /* @__PURE__ */ K("div", {
1258
1313
  className: v("min-w-0 items-center gap-2 px-4 py-3", $.mobileTitleRow),
1259
- children: [/* @__PURE__ */ V("h1", {
1260
- className: v("truncate", R),
1314
+ children: [/* @__PURE__ */ G("h1", {
1315
+ className: v("truncate", H),
1261
1316
  children: g
1262
- }), l && /* @__PURE__ */ V("span", {
1263
- className: v("shrink-0", z, $.subtitleText),
1317
+ }), l && /* @__PURE__ */ G("span", {
1318
+ className: v("shrink-0", U, $.subtitleText),
1264
1319
  children: e.deletedStateLabel
1265
1320
  })]
1266
1321
  }),
1267
- e.activeStatusAnnouncement != null && /* @__PURE__ */ V("span", {
1322
+ e.activeStatusAnnouncement != null && /* @__PURE__ */ G("span", {
1268
1323
  role: "status",
1269
1324
  "aria-live": "polite",
1270
1325
  className: "sr-only",
1271
1326
  children: e.activeStatusAnnouncement
1272
1327
  }),
1273
- e.startStatusAnnouncement != null && /* @__PURE__ */ V("span", {
1328
+ e.startStatusAnnouncement != null && /* @__PURE__ */ G("span", {
1274
1329
  role: "status",
1275
1330
  "aria-live": "polite",
1276
1331
  className: "sr-only",
1277
1332
  children: e.startStatusAnnouncement
1278
1333
  }),
1279
- y && /* @__PURE__ */ V("div", {
1334
+ y && /* @__PURE__ */ G("div", {
1280
1335
  className: "flex flex-1 items-center justify-center",
1281
- children: /* @__PURE__ */ V(me, {})
1336
+ children: /* @__PURE__ */ G(fe, {})
1282
1337
  }),
1283
- !y && x && /* @__PURE__ */ H("div", {
1338
+ !y && x && /* @__PURE__ */ K("div", {
1284
1339
  className: "flex flex-1 flex-col items-center justify-center gap-3",
1285
- children: [/* @__PURE__ */ V("p", {
1286
- className: v(z, $.subtitleText),
1340
+ children: [/* @__PURE__ */ G("p", {
1341
+ className: v(U, $.subtitleText),
1287
1342
  children: e.errorLabel
1288
- }), /* @__PURE__ */ V(k, {
1343
+ }), /* @__PURE__ */ G(M, {
1289
1344
  label: e.retryLabel,
1290
1345
  onClick: ee
1291
1346
  })]
1292
1347
  }),
1293
- !y && !x && (Ae ? /* @__PURE__ */ H("div", {
1348
+ !y && !x && (Ee ? /* @__PURE__ */ K("div", {
1294
1349
  className: "flex min-h-0 flex-1 flex-col overflow-y-auto",
1295
- children: [/* @__PURE__ */ V("div", {
1350
+ children: [/* @__PURE__ */ G("div", {
1296
1351
  className: v("sticky top-0 z-10", $.stickyTabs),
1297
- children: /* @__PURE__ */ V(ge, {
1352
+ children: /* @__PURE__ */ G(pe, {
1298
1353
  ariaLabel: e.tabsAriaLabel ?? "Scheduled task sections",
1299
1354
  className: "px-4",
1300
- tabs: G,
1301
- activeTabId: B,
1302
- onTabChange: Ne
1355
+ tabs: Me,
1356
+ activeTabId: W,
1357
+ onTabChange: De
1303
1358
  })
1304
- }), /* @__PURE__ */ V("div", {
1359
+ }), /* @__PURE__ */ G("div", {
1305
1360
  role: "tabpanel",
1306
- "aria-label": K,
1361
+ "aria-label": q,
1307
1362
  className: "flex flex-1 flex-col gap-5 px-4 py-6",
1308
- children: B === $e.Configuration ? q : B === $e.History ? J(et.Flow) : Pe
1363
+ children: W === rt.Configuration ? Pe : W === rt.History ? J(it.Flow) : Ne
1309
1364
  })]
1310
- }) : /* @__PURE__ */ H("div", {
1365
+ }) : /* @__PURE__ */ K("div", {
1311
1366
  style: {
1312
1367
  flexDirection: "row",
1313
- "--st-details-width": P?.detailsWidth,
1314
- "--st-history-width": P?.historyWidth,
1315
- "--st-history-max-height": P?.historyMaxHeight,
1316
- "--st-configuration-min-width": P?.configurationMinWidth
1368
+ "--st-details-width": z?.detailsWidth,
1369
+ "--st-history-width": z?.historyWidth,
1370
+ "--st-history-max-height": z?.historyMaxHeight,
1371
+ "--st-configuration-min-width": z?.configurationMinWidth
1317
1372
  },
1318
1373
  className: "flex min-h-0 flex-1 overflow-y-auto desktop:overflow-hidden",
1319
1374
  children: [
1320
- /* @__PURE__ */ H("div", {
1375
+ /* @__PURE__ */ K("div", {
1321
1376
  role: "group",
1322
1377
  "aria-label": e.detailsTitle,
1323
1378
  style: {
1324
- flex: `0 1 ${P?.detailsWidth ?? "360px"}`,
1379
+ flex: `0 1 ${z?.detailsWidth ?? "360px"}`,
1325
1380
  maxWidth: "100%"
1326
1381
  },
1327
1382
  className: v("flex min-h-0 w-full flex-col gap-5 overflow-y-auto border-e px-8 py-6", $.detailsColumn),
1328
- children: [/* @__PURE__ */ V("h2", {
1329
- className: Te,
1383
+ children: [/* @__PURE__ */ G("h2", {
1384
+ className: be,
1330
1385
  children: e.detailsTitle
1331
- }), Pe]
1386
+ }), Ne]
1332
1387
  }),
1333
- /* @__PURE__ */ H("div", {
1388
+ /* @__PURE__ */ K("div", {
1334
1389
  style: {
1335
- flex: `1 1 ${P?.configurationMinWidth ?? "320px"}`,
1390
+ flex: `1 1 ${z?.configurationMinWidth ?? "320px"}`,
1336
1391
  minWidth: 0
1337
1392
  },
1338
1393
  className: "flex min-h-0 w-full min-w-0 flex-col gap-5 overflow-y-auto px-8 py-6",
1339
- children: [/* @__PURE__ */ V("h2", {
1340
- className: Te,
1394
+ children: [/* @__PURE__ */ G("h2", {
1395
+ className: be,
1341
1396
  children: e.configurationTitle
1342
- }), q]
1397
+ }), Pe]
1343
1398
  }),
1344
- /* @__PURE__ */ V("div", {
1399
+ /* @__PURE__ */ G("div", {
1345
1400
  style: {
1346
- flex: `0 1 calc(${P?.historyWidth ?? "360px"} + 48px)`,
1401
+ flex: `0 1 calc(${z?.historyWidth ?? "360px"} + 48px)`,
1347
1402
  minWidth: 0
1348
1403
  },
1349
1404
  className: "flex min-h-0 w-full items-start justify-center overflow-y-auto p-6",
1350
- children: J(et.Card)
1405
+ children: J(it.Card)
1351
1406
  })
1352
1407
  ]
1353
1408
  }))
1354
1409
  ]
1355
1410
  });
1356
- }, dt = ({ modelLabel: e, skillLabel: t, skillDisplayNames: n, instructionsLabel: r, modelDisplayName: i, instructionsMarkdown: a, renderInstructions: o, markdownLabels: s, styles: c }) => {
1357
- let l = c?.typography?.fieldLabelClassName ?? "dial-tiny-text", u = c?.typography?.fieldValueClassName ?? "dial-body-text";
1358
- return /* @__PURE__ */ H("div", {
1411
+ }, ht = {
1412
+ h1: "dial-small-semi-text mb-3 mt-6 first:mt-0 [text-wrap:balance]",
1413
+ h2: "dial-small-semi-text mb-2 mt-5 first:mt-0 [text-wrap:balance]",
1414
+ h3: "dial-small-semi-text mb-2 mt-4 first:mt-0 [text-wrap:balance]",
1415
+ h4: "dial-small-semi-text mb-2 mt-4 first:mt-0 [text-wrap:balance]",
1416
+ h5: "dial-small-semi-text mb-2 mt-4 first:mt-0 [text-wrap:balance]",
1417
+ h6: "dial-small-semi-text mb-2 mt-4 first:mt-0 [text-wrap:balance]",
1418
+ p: "dial-small-text mb-3 break-words [overflow-wrap:anywhere] [text-wrap:pretty] last:mb-0",
1419
+ ul: "dial-small-text mb-3 space-y-1",
1420
+ ol: "dial-small-text mb-3 space-y-1",
1421
+ codeInline: "mx-0.5 px-1.5 break-words [overflow-wrap:anywhere]",
1422
+ blockquote: "my-4",
1423
+ link: "break-words [overflow-wrap:anywhere]",
1424
+ tableWrapper: "my-4",
1425
+ mathBlock: "my-4"
1426
+ }, gt = ({ modelLabel: e, skillLabel: t, skillDisplayNames: n, instructionsLabel: r, modelDisplayName: i, instructionsMarkdown: a, renderInstructions: o, instructionsClassNames: s = ht, markdownLabels: c, styles: l }) => {
1427
+ let u = l?.typography?.fieldLabelClassName ?? "dial-tiny-text text-secondary", d = l?.typography?.fieldValueClassName ?? "dial-small-text";
1428
+ return /* @__PURE__ */ K("div", {
1359
1429
  className: "flex flex-col gap-3",
1360
1430
  children: [
1361
- i && /* @__PURE__ */ H("div", {
1431
+ i && /* @__PURE__ */ K("div", {
1362
1432
  className: "flex flex-col gap-2",
1363
- children: [/* @__PURE__ */ V("span", {
1364
- className: l,
1365
- children: e
1366
- }), /* @__PURE__ */ V("p", {
1433
+ children: [/* @__PURE__ */ G("span", {
1367
1434
  className: u,
1435
+ children: e
1436
+ }), /* @__PURE__ */ G("p", {
1437
+ className: d,
1368
1438
  children: i
1369
1439
  })]
1370
1440
  }),
1371
- !!n?.length && /* @__PURE__ */ H("div", {
1441
+ !!n?.length && /* @__PURE__ */ K("div", {
1372
1442
  className: "flex min-w-0 flex-col gap-2",
1373
- children: [/* @__PURE__ */ V("span", {
1374
- className: l,
1443
+ children: [/* @__PURE__ */ G("span", {
1444
+ className: u,
1375
1445
  children: t
1376
- }), /* @__PURE__ */ V("p", {
1377
- className: `${u} whitespace-normal break-all`,
1378
- children: n?.map((e, t) => /* @__PURE__ */ V("span", {
1446
+ }), /* @__PURE__ */ G("p", {
1447
+ className: v(d, "break-all whitespace-normal"),
1448
+ children: n?.map((e, t) => /* @__PURE__ */ G("span", {
1379
1449
  className: "block",
1380
1450
  children: e
1381
1451
  }, `${t}:${e}`))
1382
1452
  })]
1383
1453
  }),
1384
- a && /* @__PURE__ */ H("div", {
1454
+ a && /* @__PURE__ */ K("div", {
1385
1455
  className: "flex flex-col gap-2",
1386
- children: [/* @__PURE__ */ V("span", {
1387
- className: l,
1456
+ children: [/* @__PURE__ */ G("span", {
1457
+ className: u,
1388
1458
  children: r
1389
- }), ((e) => o ? o(e) : /* @__PURE__ */ V(p, {
1459
+ }), ((e) => o ? o(e) : /* @__PURE__ */ G(p, {
1390
1460
  content: e,
1391
- ...s
1461
+ classNames: s,
1462
+ ...c
1392
1463
  }))(a)]
1393
1464
  })
1394
1465
  ]
1395
1466
  });
1396
- }, ft = ({ taskName: e, icon: t, typeLabel: n, body: r, pendingLabel: i, isDeleting: a = !1, styles: o, ...s }) => /* @__PURE__ */ V(l, {
1467
+ }, _t = ({ className: e, children: t }) => /* @__PURE__ */ G("span", {
1468
+ className: v(e, "block truncate py-1"),
1469
+ children: t
1470
+ }), vt = ({ 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 text-secondary" }) => {
1471
+ let [g, _] = Oe(!0);
1472
+ we(() => {
1473
+ _(!0);
1474
+ }, [e]);
1475
+ let v = c && !n && l && f.showMoreLabel ? /* @__PURE__ */ G("li", {
1476
+ className: "pt-2",
1477
+ children: /* @__PURE__ */ G(M, {
1478
+ variant: T.Primary,
1479
+ label: f.showMoreLabel,
1480
+ onClick: l,
1481
+ disabled: r
1482
+ })
1483
+ }) : void 0;
1484
+ return /* @__PURE__ */ G(S, {
1485
+ title: /* @__PURE__ */ G(_t, {
1486
+ className: p,
1487
+ children: f.title
1488
+ }),
1489
+ expanded: g,
1490
+ onToggle: _,
1491
+ contentClassName: m,
1492
+ children: s ? /* @__PURE__ */ G("p", {
1493
+ role: "alert",
1494
+ className: h,
1495
+ children: f.unavailableLabel
1496
+ }) : /* @__PURE__ */ G(dt, {
1497
+ items: t,
1498
+ isLoading: n,
1499
+ isLoadingMore: r,
1500
+ skeletonCount: i,
1501
+ error: a,
1502
+ onRetry: o,
1503
+ currentRunId: u,
1504
+ onRunClick: d,
1505
+ footer: v,
1506
+ labels: {
1507
+ historyTitle: f.title,
1508
+ emptyLabel: f.emptyLabel,
1509
+ errorLabel: f.errorLabel,
1510
+ retryLabel: f.retryLabel,
1511
+ runStatusLabels: f.runStatusLabels,
1512
+ currentRunLabel: f.currentRunLabel,
1513
+ unreadIndicatorLabel: f.unreadIndicatorLabel
1514
+ }
1515
+ })
1516
+ });
1517
+ }, yt = /* @__PURE__ */ function(e) {
1518
+ return e.Ready = "ready", e.Error = "error", e.Unavailable = "unavailable", e;
1519
+ }({}), bt = ({ 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 text-secondary" }) => {
1520
+ let [p, m] = Oe(!1);
1521
+ we(() => {
1522
+ m(!1);
1523
+ }, [e]);
1524
+ let h = t === "error" || t === "unavailable" ? /* @__PURE__ */ K("div", {
1525
+ className: "flex flex-col items-start gap-2",
1526
+ children: [/* @__PURE__ */ G("p", {
1527
+ role: "alert",
1528
+ className: f,
1529
+ children: u.unavailableLabel
1530
+ }), t === "error" && n && /* @__PURE__ */ G(M, {
1531
+ label: u.retryLabel,
1532
+ onClick: n
1533
+ })]
1534
+ }) : /* @__PURE__ */ G(gt, {
1535
+ modelLabel: u.modelLabel,
1536
+ instructionsLabel: u.instructionsLabel,
1537
+ skillLabel: u.skillLabel,
1538
+ skillDisplayNames: i,
1539
+ modelDisplayName: r,
1540
+ instructionsMarkdown: a,
1541
+ renderInstructions: o,
1542
+ instructionsClassNames: s,
1543
+ markdownLabels: c,
1544
+ styles: l
1545
+ });
1546
+ return /* @__PURE__ */ G(S, {
1547
+ title: /* @__PURE__ */ G(_t, {
1548
+ className: d,
1549
+ children: u.title
1550
+ }),
1551
+ expanded: p,
1552
+ onToggle: m,
1553
+ children: h
1554
+ });
1555
+ }, xt = ({ taskName: e, icon: t, typeLabel: n, body: r, pendingLabel: i, isDeleting: a = !1, styles: o, ...s }) => /* @__PURE__ */ G(l, {
1397
1556
  ...s,
1398
- variant: E.Danger,
1557
+ variant: te.Danger,
1399
1558
  popupClassName: o?.popupClassName,
1400
- titleClassName: o?.titleClassName,
1559
+ titleClassName: o?.titleClassName ?? "dial-body-semi-text",
1401
1560
  messageClassName: o?.messageClassName ?? "dial-body-paragraph-text",
1561
+ viewClassName: "pt-0",
1562
+ footerStyles: { colors: { border: "transparent" } },
1402
1563
  message: r,
1403
1564
  isLoading: a,
1404
1565
  loadingStatusLabel: i,
1405
- identity: /* @__PURE__ */ V(h, { children: /* @__PURE__ */ V(u, {
1406
- icon: t,
1407
- typeLabel: n,
1408
- name: e,
1409
- styles: { colors: o?.colors }
1410
- }) })
1566
+ identity: /* @__PURE__ */ G(h, {
1567
+ styles: { colors: {
1568
+ background: o?.colors?.summaryBackground ?? "var(--bg-error, #f3d6d8)",
1569
+ border: o?.colors?.summaryBorder ?? "var(--stroke-error-alpha, #ae2f2f73)"
1570
+ } },
1571
+ children: /* @__PURE__ */ G(u, {
1572
+ icon: t,
1573
+ typeLabel: n,
1574
+ name: e,
1575
+ styles: { colors: o?.colors }
1576
+ })
1577
+ })
1411
1578
  });
1412
1579
  //#endregion
1413
- export { r as DESCRIPTION_MAX_LENGTH, W as SCHEDULED_TASKS_CLASS, Ie as ScheduledTaskCard, Ve as ScheduledTaskCardGrid, Be as ScheduledTaskCardSkeleton, Qe as ScheduledTaskCreateForm, ft as ScheduledTaskDeleteConfirmation, ut as ScheduledTaskDetailView, dt as ScheduledTaskDetailsSummary, lt as ScheduledTaskHistorySection, K as ScheduledTaskPresentationStatus, t as ScheduledTaskRepeat, st as ScheduledTaskRunHistoryList, at as ScheduledTaskRunStatus, G as ScheduledTaskStatus, Ge as ScheduledTasks, Ke as ScheduledTasksSortKey, c as TIME_OF_DAY_PATTERN, Pe as getScheduledTaskStatus, Je as hasScheduledTaskFormChanges };
1580
+ export { c as DESCRIPTION_MAX_LENGTH, Me as SCHEDULED_TASKS_CLASS, Le as ScheduledTaskCard, He as ScheduledTaskCardGrid, Ve as ScheduledTaskCardSkeleton, bt as ScheduledTaskConversationDetailsSection, yt as ScheduledTaskConversationDetailsState, vt as ScheduledTaskConversationHistorySection, nt as ScheduledTaskCreateForm, xt as ScheduledTaskDeleteConfirmation, mt as ScheduledTaskDetailView, gt as ScheduledTaskDetailsSummary, pt as ScheduledTaskHistorySection, Ne as ScheduledTaskPresentationStatus, r as ScheduledTaskRepeat, dt as ScheduledTaskRunHistoryList, lt as ScheduledTaskRunStatus, q as ScheduledTaskStatus, Ge as ScheduledTasks, Ke as ScheduledTasksSortKey, s as TIME_OF_DAY_PATTERN, Pe as getScheduledTaskStatus, Je as hasScheduledTaskFormChanges };