@epam/ai-dial-scheduled-tasks 1.3.0-dev.294 → 1.3.0-dev.304

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 (31) hide show
  1. package/components/ScheduledTaskConfigurationSection/ScheduledTaskConfigurationSection.d.ts.map +1 -1
  2. package/components/ScheduledTaskConversationDetailsSection/ScheduledTaskConversationDetailsSection.d.ts +4 -0
  3. package/components/ScheduledTaskConversationDetailsSection/ScheduledTaskConversationDetailsSection.d.ts.map +1 -1
  4. package/components/ScheduledTaskConversationHistorySection/ScheduledTaskConversationHistorySection.d.ts +2 -0
  5. package/components/ScheduledTaskConversationHistorySection/ScheduledTaskConversationHistorySection.d.ts.map +1 -1
  6. package/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.d.ts.map +1 -1
  7. package/components/ScheduledTaskDetailView/ScheduledTaskDetailView.d.ts.map +1 -1
  8. package/components/ScheduledTaskDetailsSection/ScheduledTaskDetailsSection.d.ts.map +1 -1
  9. package/components/ScheduledTaskDetailsSummary/ScheduledTaskDetailsSummary.d.ts.map +1 -1
  10. package/components/ScheduledTaskHistorySection/ScheduledTaskHistorySection.d.ts.map +1 -1
  11. package/components/ScheduledTaskRunHistoryList/ScheduledTaskRunHistoryList.d.ts +4 -3
  12. package/components/ScheduledTaskRunHistoryList/ScheduledTaskRunHistoryList.d.ts.map +1 -1
  13. package/index.css +2 -2
  14. package/index.js +711 -663
  15. package/models/scheduled-task-configuration-section-props.d.ts +2 -0
  16. package/models/scheduled-task-configuration-section-props.d.ts.map +1 -1
  17. package/models/scheduled-task-create-form-props.d.ts +2 -0
  18. package/models/scheduled-task-create-form-props.d.ts.map +1 -1
  19. package/models/scheduled-task-detail-view-props.d.ts +6 -0
  20. package/models/scheduled-task-detail-view-props.d.ts.map +1 -1
  21. package/models/scheduled-task-details-section-props.d.ts +3 -0
  22. package/models/scheduled-task-details-section-props.d.ts.map +1 -1
  23. package/models/scheduled-task-details-summary-props.d.ts +4 -0
  24. package/models/scheduled-task-details-summary-props.d.ts.map +1 -1
  25. package/models/scheduled-task-history-section-props.d.ts +11 -1
  26. package/models/scheduled-task-history-section-props.d.ts.map +1 -1
  27. package/models/scheduled-task-run-history-list-props.d.ts +11 -1
  28. package/models/scheduled-task-run-history-list-props.d.ts.map +1 -1
  29. package/models/scheduled-task-run-item.d.ts +1 -1
  30. package/models/scheduled-task-run-item.d.ts.map +1 -1
  31. package/package.json +3 -3
package/index.js CHANGED
@@ -1,28 +1,28 @@
1
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, u as l } from "./calendar-value-Ds0AiQSR.js";
2
- import { COMPACT_MARKDOWN_CLASS_NAMES as u, ConfirmationDialog as d, ConfirmationIdentityRow as f, MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as p, MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as m, MDMessageViewer as h, PanelEmptyState as g, ResourceSummary as _, TextRefinementField as v, buildCssVars as y, mergeClasses as b, useAvailableHeightCap as x, useControlErrorAssociation as S, useIsMobile as C, useTextRefinement as w, useUnsavedChangesGuard as ee } from "@epam/ai-dial-chat-shared";
3
- import { Accordion as T, Button as te, ButtonAppearance as ne, ButtonDropdown as re, ButtonVariant as ie, Calendar as E, CalendarMode as D, CardShell as ae, ConfirmationPopupVariant as oe, DIAL_ICON_SIZE as O, DIAL_KIT_ICON_STROKE as k, ElementSize as se, EllipsisTooltip as ce, ErrorMessageNotification as le, ErrorText as A, FolderPath as ue, GhostButton as j, GhostIconButton as de, Highlight as fe, Input as pe, Label as me, LinkButton as he, LiveRegion as M, LiveRegionElement as N, LiveRegionPoliteness as ge, MenuItemMark as P, NeutralButton as _e, NoDataContent as F, Notification as I, NotificationSurface as L, NotificationType as ve, NotificationVariant as R, NumberInput as ye, PrimaryButton as z, Search as be, Select as xe, Skeleton as B, SkeletonVariant as Se, Spinner as Ce, Switch as we, Tabs as Te, Textarea as Ee, Tooltip as De, WarningMessageNotification as Oe } from "@epam/ai-dial-ui-kit";
4
- import { IconAlertTriangle as V, IconArrowNarrowLeft as ke, IconArrowRight as H, IconArrowsSort as U, IconCheck as Ae, IconCircleX as je, IconPencilMinus as Me, IconPlayerPause as Ne, IconPlayerPlay as W, IconPlus as Pe, IconTrashX as Fe } from "@tabler/icons-react";
5
- import { Suspense as Ie, lazy as Le, memo as Re, useCallback as ze, useEffect as Be, useId as G, useLayoutEffect as Ve, useMemo as He, useRef as Ue, useState as We } from "react";
6
- import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
7
- import { BuilderFormContainer as Ge } from "@epam/ai-dial-builder-form";
8
- import { LazyMarkdownEditor as Ke } from "@epam/ai-dial-ui-kit/editors";
2
+ import { COMPACT_MARKDOWN_CLASS_NAMES as u, ConfirmationDialog as d, ConfirmationIdentityRow as f, MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as p, MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as m, MDMessageViewer as h, PanelEmptyState as g, ResourceSummary as _, TextRefinementField as v, buildCssVars as y, mergeClasses as b, useAvailableHeightCap as x, useControlErrorAssociation as S, useIsMobile as C, useTextRefinement as w, useUnsavedChangesGuard as T } from "@epam/ai-dial-chat-shared";
3
+ import { Accordion as E, Button as D, ButtonAppearance as ee, ButtonDropdown as te, ButtonVariant as ne, Calendar as re, CalendarMode as O, CardShell as ie, ConfirmationPopupVariant as ae, DIAL_ICON_SIZE as k, DIAL_KIT_ICON_STROKE as A, ElementSize as oe, EllipsisTooltip as se, ErrorMessageNotification as ce, ErrorText as j, FolderPath as le, GhostButton as M, GhostIconButton as N, Highlight as ue, Input as de, Label as fe, LinkButton as pe, LiveRegion as P, LiveRegionElement as F, LiveRegionPoliteness as I, MenuItemMark as me, NeutralButton as L, NoDataContent as he, Notification as ge, NotificationSurface as _e, NotificationType as ve, NotificationVariant as R, NumberInput as ye, PrimaryButton as z, Search as B, Select as be, Skeleton as V, SkeletonVariant as H, Spinner as xe, Switch as Se, Tabs as Ce, Textarea as we, WarningMessageNotification as Te } from "@epam/ai-dial-ui-kit";
4
+ import { IconAlertTriangle as Ee, IconArrowNarrowLeft as De, IconArrowRight as Oe, IconArrowsSort as U, IconCheck as W, IconChevronDown as ke, IconCircleX as Ae, IconPencilMinus as je, IconPlayerPause as Me, IconPlayerPlay as Ne, IconPlus as G, IconTrashX as Pe } from "@tabler/icons-react";
5
+ import { Suspense as Fe, lazy as Ie, memo as Le, useCallback as Re, useEffect as ze, useId as K, useLayoutEffect as Be, useMemo as Ve, useRef as He, useState as Ue } from "react";
6
+ import { Fragment as q, jsx as J, jsxs as Y } from "react/jsx-runtime";
7
+ import { BuilderFormContainer as We } from "@epam/ai-dial-builder-form";
8
+ import { LazyMarkdownEditor as Ge } from "@epam/ai-dial-ui-kit/editors";
9
9
  //#region src/models/scheduled-task-card-grid-props.ts
10
- var qe = "1180px", Je = {
10
+ var Ke = "1180px", qe = {
11
11
  card: "dial-scheduled-tasks-card",
12
12
  cardGrid: "dial-scheduled-tasks-card-grid",
13
13
  refineFeedback: "dial-scheduled-tasks-refine-feedback"
14
- }, Y = /* @__PURE__ */ function(e) {
14
+ }, X = /* @__PURE__ */ function(e) {
15
15
  return e.Scheduled = "scheduled", e.Paused = "paused", e.Completed = "completed", e;
16
- }({}), Ye = /* @__PURE__ */ function(e) {
16
+ }({}), Je = /* @__PURE__ */ function(e) {
17
17
  return e.Active = "active", e.Paused = "paused", e.Completed = "completed", e;
18
- }({}), Xe = (e) => {
18
+ }({}), Ye = (e) => {
19
19
  switch (e.presentationStatus) {
20
- case Ye.Active: return Y.Scheduled;
21
- case Ye.Paused: return Y.Paused;
22
- case Ye.Completed: return Y.Completed;
20
+ case Je.Active: return X.Scheduled;
21
+ case Je.Paused: return X.Paused;
22
+ case Je.Completed: return X.Completed;
23
23
  }
24
- return e.isCompleted ? Y.Completed : e.isActive === !1 ? Y.Paused : Y.Scheduled;
25
- }, X = {
24
+ return e.isCompleted ? X.Completed : e.isActive === !1 ? X.Paused : X.Scheduled;
25
+ }, Xe = {
26
26
  schedulePill: "_schedulePill_1cwco_1",
27
27
  scheduleLabel: "_scheduleLabel_1cwco_6",
28
28
  pausedPill: "_pausedPill_1cwco_10",
@@ -30,34 +30,34 @@ var qe = "1180px", Je = {
30
30
  completedPill: "_completedPill_1cwco_19",
31
31
  completedLabel: "_completedLabel_1cwco_24"
32
32
  }, Ze = {
33
- [Y.Scheduled]: {
33
+ [X.Scheduled]: {
34
34
  pillClassName: "inline-block rounded-lg border px-2 py-1",
35
- wrapperClassName: X.schedulePill,
36
- labelClassName: X.scheduleLabel
35
+ wrapperClassName: Xe.schedulePill,
36
+ labelClassName: Xe.scheduleLabel
37
37
  },
38
- [Y.Paused]: {
38
+ [X.Paused]: {
39
39
  pillClassName: "inline-flex items-center gap-1.5 rounded-full border px-2 py-1",
40
- wrapperClassName: X.pausedPill,
41
- labelClassName: X.pausedLabel,
42
- renderIcon: () => /* @__PURE__ */ q(Ne, {
43
- size: O.SM,
40
+ wrapperClassName: Xe.pausedPill,
41
+ labelClassName: Xe.pausedLabel,
42
+ renderIcon: () => /* @__PURE__ */ J(Me, {
43
+ size: k.SM,
44
44
  "aria-hidden": !0,
45
- stroke: k
45
+ stroke: A
46
46
  })
47
47
  },
48
- [Y.Completed]: {
48
+ [X.Completed]: {
49
49
  pillClassName: "inline-flex items-center gap-1.5 rounded-full border px-2 py-1",
50
- wrapperClassName: X.completedPill,
51
- labelClassName: X.completedLabel,
52
- renderIcon: () => /* @__PURE__ */ q(Ae, {
53
- size: O.SM,
50
+ wrapperClassName: Xe.completedPill,
51
+ labelClassName: Xe.completedLabel,
52
+ renderIcon: () => /* @__PURE__ */ J(W, {
53
+ size: k.SM,
54
54
  "aria-hidden": !0,
55
- stroke: k
55
+ stroke: A
56
56
  })
57
57
  }
58
58
  }, Qe = ({ status: e, text: t, textClassName: n = "dial-tiny-text", className: r }) => {
59
59
  let { pillClassName: i, wrapperClassName: a, labelClassName: o, renderIcon: s } = Ze[e];
60
- return /* @__PURE__ */ J("span", {
60
+ return /* @__PURE__ */ Y("span", {
61
61
  className: b(i, n, a, o, r),
62
62
  children: [s && s(), t]
63
63
  });
@@ -70,20 +70,20 @@ var qe = "1180px", Je = {
70
70
  locationDivider: "_locationDivider_7p2ui_23",
71
71
  card: "_card_7p2ui_34"
72
72
  }, et = ({ item: e, searchQuery: t = "", onCardClick: n, labels: r, styles: i, className: a }) => {
73
- let o = C(), s = e.newBadgeLabel ?? r?.newBadgeLabel ?? "NEW", c = r?.pausedBadgeLabel ?? "Paused", l = r?.completedBadgeLabel ?? "Completed", { colors: u, typography: d } = i ?? {}, f = d?.titleClassName ?? "dial-body-semi-text", p = d?.descriptionClassName ?? "dial-small-paragraph-text", m = d?.scheduleLabelClassName ?? "dial-tiny-text", h = d?.pausedBadgeClassName ?? "dial-tiny-text", g = d?.completedBadgeClassName ?? "dial-tiny-text", _ = d?.locationLabelClassName ?? "dial-tiny-text", v = d?.locationLeafClassName ?? "dial-tiny-semi-text", x = d?.newBadgeClassName ?? "dial-tiny-semi-text", S = Xe(e), { text: w, textClassName: ee } = {
74
- [Y.Scheduled]: {
73
+ let o = C(), s = e.newBadgeLabel ?? r?.newBadgeLabel ?? "NEW", c = r?.pausedBadgeLabel ?? "Paused", l = r?.completedBadgeLabel ?? "Completed", { colors: u, typography: d } = i ?? {}, f = d?.titleClassName ?? "dial-body-semi-text", p = d?.descriptionClassName ?? "dial-small-paragraph-text", m = d?.scheduleLabelClassName ?? "dial-tiny-text", h = d?.pausedBadgeClassName ?? "dial-tiny-text", g = d?.completedBadgeClassName ?? "dial-tiny-text", _ = d?.locationLabelClassName ?? "dial-tiny-text", v = d?.locationLeafClassName ?? "dial-tiny-semi-text", x = d?.newBadgeClassName ?? "dial-tiny-semi-text", S = Ye(e), { text: w, textClassName: T } = {
74
+ [X.Scheduled]: {
75
75
  text: e.scheduleLabel,
76
76
  textClassName: m
77
77
  },
78
- [Y.Paused]: {
78
+ [X.Paused]: {
79
79
  text: c,
80
80
  textClassName: h
81
81
  },
82
- [Y.Completed]: {
82
+ [X.Completed]: {
83
83
  text: l,
84
84
  textClassName: g
85
85
  }
86
- }[S], T = y({
86
+ }[S], E = y({
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 qe = "1180px", Je = {
100
100
  "--stc-completed-bg": u?.completedBadgeBackground,
101
101
  "--stc-completed-border": u?.completedBadgeBorder,
102
102
  "--stc-completed-text": u?.completedBadgeText
103
- }), te = 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__ */ J(ae, {
110
+ return /* @__PURE__ */ Y(ie, {
111
111
  role: n ? "button" : "group",
112
112
  "aria-label": e.displayName,
113
- style: T,
114
- className: b("h-(--st-card-height,232px) min-w-0", $e.card, n && "cursor-pointer", a, Je.card),
115
- ...te,
113
+ style: E,
114
+ className: b("h-(--st-card-height,232px) min-w-0", $e.card, n && "cursor-pointer", a, qe.card),
115
+ ...D,
116
116
  children: [
117
- /* @__PURE__ */ J("div", {
117
+ /* @__PURE__ */ Y("div", {
118
118
  className: "flex min-w-0 shrink-0 items-start gap-2 desktop:items-center",
119
- children: [/* @__PURE__ */ q(fe, {
119
+ children: [/* @__PURE__ */ J(ue, {
120
120
  text: e.displayName,
121
121
  query: t,
122
122
  maxLines: o ? 2 : 1,
123
123
  className: b(f, $e.title)
124
- }), e.isNew && /* @__PURE__ */ q("span", {
124
+ }), e.isNew && /* @__PURE__ */ J("span", {
125
125
  className: b("shrink-0 rounded-full px-2 py-0.5", x, $e.newBadge),
126
126
  children: s
127
127
  })]
128
128
  }),
129
- e.descriptionPreview && /* @__PURE__ */ q("p", {
129
+ e.descriptionPreview && /* @__PURE__ */ J("p", {
130
130
  className: b("line-clamp-3 min-h-0 min-w-0 overflow-hidden wrap-anywhere", p, $e.description),
131
131
  children: e.descriptionPreview
132
132
  }),
133
- /* @__PURE__ */ J("div", {
133
+ /* @__PURE__ */ Y("div", {
134
134
  className: "mt-auto flex shrink-0 flex-col gap-3",
135
- children: [/* @__PURE__ */ q("div", {
135
+ children: [/* @__PURE__ */ J("div", {
136
136
  className: "flex min-h-[28px] items-center",
137
- children: /* @__PURE__ */ q(Qe, {
137
+ children: /* @__PURE__ */ J(Qe, {
138
138
  status: S,
139
139
  text: w,
140
- textClassName: ee
140
+ textClassName: T
141
141
  })
142
- }), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */ q(ue, {
142
+ }), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */ J(le, {
143
143
  segments: e.locationSegments,
144
144
  labelClassName: b(_, $e.locationLabel),
145
145
  leafClassName: b(v, $e.locationLeaf),
@@ -154,29 +154,29 @@ var qe = "1180px", Je = {
154
154
  "61%"
155
155
  ], rt = "var(--stcs-skeleton-bg)", it = ({ styles: e }) => {
156
156
  let t = y({ "--stcs-skeleton-bg": e?.colors?.skeletonColor });
157
- return /* @__PURE__ */ J(ae, {
157
+ return /* @__PURE__ */ Y(ie, {
158
158
  "aria-hidden": !0,
159
159
  style: t,
160
160
  className: b("h-(--st-card-height,232px)", tt.card),
161
161
  children: [
162
- /* @__PURE__ */ q(B, {
163
- variant: Se.Rectangular,
162
+ /* @__PURE__ */ J(V, {
163
+ variant: H.Rectangular,
164
164
  width: "60%",
165
165
  height: "20px",
166
166
  color: rt,
167
167
  className: "shrink-0"
168
168
  }),
169
- /* @__PURE__ */ q("div", {
169
+ /* @__PURE__ */ J("div", {
170
170
  className: "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden",
171
- children: nt.map((e, t) => /* @__PURE__ */ q(B, {
172
- variant: Se.Rectangular,
171
+ children: nt.map((e, t) => /* @__PURE__ */ J(V, {
172
+ variant: H.Rectangular,
173
173
  width: e,
174
174
  height: "16px",
175
175
  color: rt
176
176
  }, t))
177
177
  }),
178
- /* @__PURE__ */ q(B, {
179
- variant: Se.Rectangular,
178
+ /* @__PURE__ */ J(V, {
179
+ variant: H.Rectangular,
180
180
  width: "110px",
181
181
  height: "28px",
182
182
  color: rt,
@@ -184,7 +184,7 @@ var qe = "1180px", Je = {
184
184
  })
185
185
  ]
186
186
  });
187
- }, at = ({ items: e, searchQuery: t, onCardClick: n, labels: r, cardStyles: i, trailingSkeletonCount: a = 0, skeletonStyles: o, layout: s }) => /* @__PURE__ */ J("div", {
187
+ }, at = ({ items: e, searchQuery: t, onCardClick: n, labels: r, cardStyles: i, trailingSkeletonCount: a = 0, skeletonStyles: o, layout: s }) => /* @__PURE__ */ Y("div", {
188
188
  style: {
189
189
  "--st-grid-min-card-width": s?.minCardWidth,
190
190
  "--st-grid-gap": s?.gap,
@@ -194,14 +194,14 @@ var qe = "1180px", Je = {
194
194
  gap: "var(--st-grid-gap, 20px)",
195
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))"
196
196
  },
197
- className: b("mx-auto grid w-full min-w-0", Je.cardGrid),
198
- children: [e.map((e) => /* @__PURE__ */ q(et, {
197
+ className: b("mx-auto grid w-full min-w-0", qe.cardGrid),
198
+ children: [e.map((e) => /* @__PURE__ */ J(et, {
199
199
  item: e,
200
200
  searchQuery: t,
201
201
  onCardClick: n,
202
202
  labels: r,
203
203
  styles: i
204
- }, e.id)), Array.from({ length: a }, (e, t) => /* @__PURE__ */ q(it, { styles: o }, `skeleton-${t}`))]
204
+ }, e.id)), Array.from({ length: a }, (e, t) => /* @__PURE__ */ J(it, { styles: o }, `skeleton-${t}`))]
205
205
  }), ot = {
206
206
  container: "_container_3vz4t_2",
207
207
  subtitle: "_subtitle_3vz4t_6",
@@ -215,35 +215,35 @@ var qe = "1180px", Je = {
215
215
  if (!e || e === document.body) return null;
216
216
  let { overflow: t, overflowY: n } = getComputedStyle(e);
217
217
  return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : ct(e.parentElement);
218
- }, lt = ({ labels: e, onCreateClick: t, searchQuery: n, onSearchQueryChange: r, sortKey: i, onSortChange: a, items: o, isLoading: s = !1, error: c, onRetry: l, hasMore: u = !1, isLoadingMore: d = !1, skeletonCount: f = 6, onLoadMore: p, onCardClick: m, banner: h, styles: _, sortIcon: v, className: x, gridLayout: S, cardStyles: C, loadMoreError: w, onRetryLoadMore: ee }) => {
219
- let { colors: T, typography: te } = _ ?? {}, E = te?.titleClassName ?? "dial-h1-text", D = te?.subtitleClassName ?? "dial-body-text", ae = y({
220
- "--st-bg": T?.background,
221
- "--st-subtitle-text": T?.subtitleText,
222
- "--st-sort-text": T?.sortButtonText
223
- }), oe = (e) => {
218
+ }, lt = ({ labels: e, onCreateClick: t, searchQuery: n, onSearchQueryChange: r, sortKey: i, onSortChange: a, items: o, isLoading: s = !1, error: c, onRetry: l, hasMore: u = !1, isLoadingMore: d = !1, skeletonCount: f = 6, onLoadMore: p, onCardClick: m, banner: h, styles: _, sortIcon: v, className: x, gridLayout: S, cardStyles: C, loadMoreError: w, onRetryLoadMore: T }) => {
219
+ let { colors: E, typography: D } = _ ?? {}, re = D?.titleClassName ?? "dial-h1-text", O = D?.subtitleClassName ?? "dial-body-text", ie = y({
220
+ "--st-bg": E?.background,
221
+ "--st-subtitle-text": E?.subtitleText,
222
+ "--st-sort-text": E?.sortButtonText
223
+ }), ae = (e) => {
224
224
  r(e ?? "");
225
- }, [ce, A] = We(!1), [ue, de] = We(!1), fe = Ue(null), pe = ze(() => {
226
- de(!0);
227
- }, []), me = ze(() => {
228
- de(!1);
225
+ }, [se, j] = Ue(!1), [le, N] = Ue(!1), ue = He(null), de = Re(() => {
226
+ N(!0);
227
+ }, []), fe = Re(() => {
228
+ N(!1);
229
229
  }, []);
230
- Ve(() => {
231
- let e = fe.current;
232
- ue && ce && e != null && e.offsetParent == null && A(!1);
233
- }, [ue, ce]);
234
- let he = e.sortOptions.find((e) => e.value === i)?.label ?? e.sortLabel, ge = He(() => e.sortOptions.map((e) => ({
230
+ Be(() => {
231
+ let e = ue.current;
232
+ le && se && e != null && e.offsetParent == null && j(!1);
233
+ }, [le, se]);
234
+ let pe = e.sortOptions.find((e) => e.value === i)?.label ?? e.sortLabel, I = Ve(() => e.sortOptions.map((e) => ({
235
235
  key: e.value,
236
236
  label: e.label,
237
- mark: P.Check,
237
+ mark: me.Check,
238
238
  checked: e.value === i,
239
239
  onClick: () => a(e.value)
240
240
  })), [
241
241
  e.sortOptions,
242
242
  i,
243
243
  a
244
- ]), _e = st(s, d, !!c, o.length, n.trim().length > 0, e), F = Ue(null);
245
- Be(() => {
246
- let e = F.current;
244
+ ]), L = st(s, d, !!c, o.length, n.trim().length > 0, e), he = He(null);
245
+ ze(() => {
246
+ let e = he.current;
247
247
  if (!e || !p) return;
248
248
  let t = ct(e.parentElement);
249
249
  if (!t) return;
@@ -260,123 +260,123 @@ var qe = "1180px", Je = {
260
260
  w,
261
261
  p
262
262
  ]);
263
- let I = () => s ? /* @__PURE__ */ q(Ce, {}) : c ? /* @__PURE__ */ J("div", {
263
+ let ge = () => s ? /* @__PURE__ */ J(xe, {}) : c ? /* @__PURE__ */ Y("div", {
264
264
  className: "flex flex-col items-center gap-3",
265
- children: [/* @__PURE__ */ q("p", {
266
- className: b(D, ot.subtitle),
265
+ children: [/* @__PURE__ */ J("p", {
266
+ className: b(O, ot.subtitle),
267
267
  children: e.errorLabel
268
- }), /* @__PURE__ */ q(j, {
268
+ }), /* @__PURE__ */ J(M, {
269
269
  label: e.retryLabel,
270
270
  onClick: l
271
271
  })]
272
- }) : o.length === 0 ? n.trim() ? /* @__PURE__ */ q(g, {
272
+ }) : o.length === 0 ? n.trim() ? /* @__PURE__ */ J(g, {
273
273
  label: e.noResultsLabel,
274
274
  description: e.noResultsDescription
275
- }) : /* @__PURE__ */ q(g, {
275
+ }) : /* @__PURE__ */ J(g, {
276
276
  label: e.emptyStateLabel,
277
277
  description: e.emptyStateDescription
278
- }) : /* @__PURE__ */ J("div", {
278
+ }) : /* @__PURE__ */ Y("div", {
279
279
  className: "flex w-full flex-col gap-6",
280
280
  children: [
281
- /* @__PURE__ */ q(at, {
281
+ /* @__PURE__ */ J(at, {
282
282
  items: o,
283
283
  searchQuery: n,
284
284
  onCardClick: m,
285
285
  labels: e.cardLabels,
286
286
  trailingSkeletonCount: d ? f : 0,
287
- skeletonStyles: { colors: { skeletonColor: T?.skeletonColor } },
287
+ skeletonStyles: { colors: { skeletonColor: E?.skeletonColor } },
288
288
  cardStyles: C,
289
289
  layout: S
290
290
  }),
291
- w && /* @__PURE__ */ q(le, {
291
+ w && /* @__PURE__ */ J(ce, {
292
292
  message: e.loadMoreErrorLabel ?? e.errorLabel,
293
- textClassName: D,
294
- iconStroke: k,
295
- action: /* @__PURE__ */ q(j, {
293
+ textClassName: O,
294
+ iconStroke: A,
295
+ action: /* @__PURE__ */ J(M, {
296
296
  label: e.retryLabel,
297
- onClick: ee
297
+ onClick: T
298
298
  })
299
299
  }),
300
- /* @__PURE__ */ q("div", {
301
- ref: F,
300
+ /* @__PURE__ */ J("div", {
301
+ ref: he,
302
302
  "aria-hidden": !0,
303
303
  className: "h-px w-full"
304
304
  })
305
305
  ]
306
- }), L = s || !!c || o.length === 0;
307
- return /* @__PURE__ */ J("div", {
308
- style: ae,
306
+ }), _e = s || !!c || o.length === 0;
307
+ return /* @__PURE__ */ Y("div", {
308
+ style: ie,
309
309
  className: b("flex h-full w-full flex-col gap-4 overflow-y-auto px-4 py-4 desktop:gap-6 desktop:px-8", ot.container, x),
310
310
  children: [
311
- /* @__PURE__ */ J("div", {
311
+ /* @__PURE__ */ Y("div", {
312
312
  className: "flex items-start justify-between gap-4",
313
- children: [/* @__PURE__ */ J("div", {
313
+ children: [/* @__PURE__ */ Y("div", {
314
314
  className: "min-w-0 gap-2",
315
- children: [/* @__PURE__ */ q("h1", {
316
- className: b("truncate", E),
315
+ children: [/* @__PURE__ */ J("h1", {
316
+ className: b("truncate", re),
317
317
  children: e.title
318
- }), /* @__PURE__ */ q("p", {
319
- className: b("mt-1", D, ot.subtitle),
318
+ }), /* @__PURE__ */ J("p", {
319
+ className: b("mt-1", O, ot.subtitle),
320
320
  children: e.subtitle
321
321
  })]
322
- }), t != null && /* @__PURE__ */ q(z, {
322
+ }), t != null && /* @__PURE__ */ J(z, {
323
323
  label: e.createButtonLabel,
324
324
  textClassName: ot.createButtonLabel,
325
325
  "aria-label": e.createButtonLabel,
326
- iconBefore: /* @__PURE__ */ q(Pe, {
327
- size: O.SM,
326
+ iconBefore: /* @__PURE__ */ J(G, {
327
+ size: k.SM,
328
328
  "aria-hidden": !0,
329
- stroke: k
329
+ stroke: A
330
330
  }),
331
331
  onClick: t,
332
332
  className: b("shrink-0", ot.createButton)
333
333
  })]
334
334
  }),
335
- /* @__PURE__ */ J("div", {
335
+ /* @__PURE__ */ Y("div", {
336
336
  className: "flex flex-wrap items-center gap-3",
337
- children: [/* @__PURE__ */ q("div", {
337
+ children: [/* @__PURE__ */ J("div", {
338
338
  role: "search",
339
339
  className: "flex-1",
340
- children: /* @__PURE__ */ q(be, {
340
+ children: /* @__PURE__ */ J(B, {
341
341
  value: n,
342
- onChange: oe,
342
+ onChange: ae,
343
343
  placeholder: e.searchPlaceholder,
344
344
  clearLabel: e.clearSearchLabel,
345
345
  "aria-label": e.searchAriaLabel,
346
- size: se.Large,
347
- onFocus: pe,
348
- onBlur: me
346
+ size: oe.Large,
347
+ onFocus: de,
348
+ onBlur: fe
349
349
  })
350
- }), e.sortOptions.length > 0 && /* @__PURE__ */ q("div", {
351
- ref: fe,
352
- className: b(ue && ot.sortControlHidden),
353
- children: /* @__PURE__ */ q(re, {
354
- items: ge,
355
- label: he,
356
- variant: ie.Primary,
357
- appearance: ne.Ghost,
358
- iconBefore: v === void 0 ? /* @__PURE__ */ q(U, {
359
- size: O.SM,
350
+ }), e.sortOptions.length > 0 && /* @__PURE__ */ J("div", {
351
+ ref: ue,
352
+ className: b(le && ot.sortControlHidden),
353
+ children: /* @__PURE__ */ J(te, {
354
+ items: I,
355
+ label: pe,
356
+ variant: ne.Primary,
357
+ appearance: ee.Ghost,
358
+ iconBefore: v === void 0 ? /* @__PURE__ */ J(U, {
359
+ size: k.SM,
360
360
  "aria-hidden": !0,
361
- stroke: k
361
+ stroke: A
362
362
  }) : v,
363
363
  className: ot.sortButton
364
364
  })
365
365
  })]
366
366
  }),
367
- h != null && typeof h != "boolean" && /* @__PURE__ */ q("div", {
367
+ h != null && typeof h != "boolean" && /* @__PURE__ */ J("div", {
368
368
  className: "mx-auto w-full min-w-0",
369
369
  style: { maxWidth: S?.maxWidth ?? "1180px" },
370
370
  children: h
371
371
  }),
372
- /* @__PURE__ */ q(M, {
372
+ /* @__PURE__ */ J(P, {
373
373
  visuallyHidden: !0,
374
- as: N.Span,
375
- children: _e
374
+ as: F.Span,
375
+ children: L
376
376
  }),
377
- /* @__PURE__ */ q("div", {
378
- className: b("mx-auto flex size-full w-full min-w-0 flex-col", L && "items-center justify-center"),
379
- children: I()
377
+ /* @__PURE__ */ J("div", {
378
+ className: b("mx-auto flex size-full w-full min-w-0 flex-col", _e && "items-center justify-center"),
379
+ children: ge()
380
380
  })
381
381
  ]
382
382
  });
@@ -387,12 +387,12 @@ var qe = "1180px", Je = {
387
387
  for (let r of n) if (ft(e[r]) !== ft(t[r])) return !0;
388
388
  return !1;
389
389
  }, mt = (e, t, n) => t === l.Custom || n === l.Custom ? void 0 : e, ht = { error: "_error_v2pfn_4" }, gt = ({ id: t, label: n, placeholder: r, value: a, onChange: o, minDate: s, error: c, errorClassName: l, disabled: u }) => {
390
- let d = (e) => o(i(e)), f = G();
391
- return S(() => document.getElementById(t), f, !!c), /* @__PURE__ */ J("div", {
390
+ let d = (e) => o(i(e)), f = K();
391
+ return S(() => document.getElementById(t), f, !!c), /* @__PURE__ */ Y("div", {
392
392
  className: "flex flex-1 flex-col gap-1",
393
- children: [/* @__PURE__ */ q(E, {
393
+ children: [/* @__PURE__ */ J(re, {
394
394
  id: t,
395
- mode: D.Date,
395
+ mode: O.Date,
396
396
  value: e(a),
397
397
  onChange: d,
398
398
  minDate: s,
@@ -400,15 +400,15 @@ var qe = "1180px", Je = {
400
400
  placeholder: r,
401
401
  invalid: !!c,
402
402
  disabled: u
403
- }), /* @__PURE__ */ q(A, {
404
- announce: ge.Assertive,
403
+ }), /* @__PURE__ */ J(j, {
404
+ announce: I.Assertive,
405
405
  id: f,
406
406
  className: b(l, ht.error),
407
407
  text: c ?? ""
408
408
  })]
409
409
  });
410
- }, _t = ({ value: e, onChange: t, onBlur: n, disabled: r, invalid: i, ariaLabel: a }) => /* @__PURE__ */ q(E, {
411
- mode: D.Time,
410
+ }, _t = ({ value: e, onChange: t, onBlur: n, disabled: r, invalid: i, ariaLabel: a }) => /* @__PURE__ */ J(re, {
411
+ mode: O.Time,
412
412
  value: e,
413
413
  onChange: (e) => {
414
414
  typeof e == "string" && t(e);
@@ -423,13 +423,13 @@ var qe = "1180px", Je = {
423
423
  className: "w-[120px] gap-y-0",
424
424
  fieldClassName: "px-3 py-1.5 pe-9",
425
425
  pickerButtonClassName: "size-6 inset-e-1.5"
426
- }), vt = { error: "_error_v2pfn_4" }, yt = (e) => /* @__PURE__ */ q(_t, { ...e }), bt = ({ label: e, placeholder: t, value: r, onChange: i, disabled: a, error: o, errorClassName: c = "dial-tiny-text" }) => {
427
- let l = Ue(/* @__PURE__ */ new Date()).current, u = (e) => i(n(e)), d = G();
428
- return S(() => document.getElementById("scheduled-task-run-at"), d, !!o), /* @__PURE__ */ J("div", {
426
+ }), vt = { error: "_error_v2pfn_4" }, yt = (e) => /* @__PURE__ */ J(_t, { ...e }), bt = ({ label: e, placeholder: t, value: r, onChange: i, disabled: a, error: o, errorClassName: c = "dial-tiny-text" }) => {
427
+ let l = He(/* @__PURE__ */ new Date()).current, u = (e) => i(n(e)), d = K();
428
+ return S(() => document.getElementById("scheduled-task-run-at"), d, !!o), /* @__PURE__ */ Y("div", {
429
429
  className: "flex flex-col gap-1",
430
- children: [/* @__PURE__ */ q(E, {
430
+ children: [/* @__PURE__ */ J(re, {
431
431
  id: "scheduled-task-run-at",
432
- mode: D.DateTime,
432
+ mode: O.DateTime,
433
433
  value: s(r),
434
434
  onChange: u,
435
435
  minDate: l,
@@ -441,8 +441,8 @@ var qe = "1180px", Je = {
441
441
  invalid: !!o,
442
442
  disabled: a,
443
443
  renderTimeField: yt
444
- }), /* @__PURE__ */ q(A, {
445
- announce: ge.Assertive,
444
+ }), /* @__PURE__ */ J(j, {
445
+ announce: I.Assertive,
446
446
  id: d,
447
447
  className: b(c, vt.error),
448
448
  text: o ?? ""
@@ -455,64 +455,64 @@ var qe = "1180px", Je = {
455
455
  instructionsError: "_instructionsError_1253x_18",
456
456
  refineFeedback: "_refineFeedback_1253x_22",
457
457
  refineError: "_refineError_1253x_26"
458
- }, xt = Le(async () => ({ default: (await Ke()).MarkdownEditor })), St = ({ labels: e, values: t, initialValues: n, errors: r, modelSelector: i, modelLabelId: s, skillSelector: u, onFieldChange: f, onBack: h, onCancel: g, onSubmit: _, isSubmitting: C = !1, onRefineDescription: T, onRefineInstructions: re, markdownEditorTheme: ae, backIcon: se, className: ce, styles: le }) => {
459
- let ue = G(), j = G(), de = G(), fe = G(), he = G(), M = G(), N = G(), P = Ue(void 0), _e = (e) => e ? async (t, n) => {
460
- if (P.current && !P.current.aborted) throw new DOMException("Busy", "AbortError");
461
- P.current = n;
458
+ }, xt = Ie(async () => ({ default: (await Ge()).MarkdownEditor })), St = ({ labels: e, values: t, initialValues: n, errors: r, modelSelector: i, modelLabelId: s, skillSelector: u, onFieldChange: f, onBack: h, onCancel: g, onSubmit: _, isSubmitting: C = !1, isSubmitDisabled: E = !1, onRefineDescription: te, onRefineInstructions: ie, markdownEditorTheme: oe, backIcon: se, className: ce, styles: le }) => {
459
+ let M = K(), N = K(), ue = K(), pe = K(), P = K(), F = K(), me = K(), L = He(void 0), he = (e) => e ? async (t, n) => {
460
+ if (L.current && !L.current.aborted) throw new DOMException("Busy", "AbortError");
461
+ L.current = n;
462
462
  try {
463
463
  return await e(t, n);
464
464
  } finally {
465
- P.current === n && (P.current = void 0);
465
+ L.current === n && (L.current = void 0);
466
466
  }
467
- } : void 0, F = w({
467
+ } : void 0, ge = w({
468
468
  value: t.description ?? "",
469
469
  onChange: (e) => f("description", e),
470
- onRefine: _e(T),
470
+ onRefine: he(te),
471
471
  disabled: C
472
- }), I = w({
472
+ }), _e = w({
473
473
  value: t.prompt,
474
474
  onChange: (e) => f("prompt", e),
475
- onRefine: _e(re),
475
+ onRefine: he(ie),
476
476
  disabled: C
477
- }), L = F.isPending || I.isPending, ve = () => {
478
- F.reset(), I.reset();
479
- }, R = !!(n && pt(t, n)), z = ee(R), be = () => z.guard(() => {
480
- ve(), h();
481
- }), B = () => z.guard(() => {
482
- ve(), g();
483
- }), Se = x(), we = !t.skillUrls?.length, [Te, De] = We(), Oe = Ue(/* @__PURE__ */ new Date()).current, { colors: V, typography: H, layout: U } = le ?? {}, Ae = H?.titleClassName ?? "dial-h1-text", je = H?.sectionTitleClassName ?? "dial-body-semi-text", Me = H?.sectionSubtitleClassName ?? "dial-tiny-text", Ne = H?.instructionsLabelClassName ?? "dial-body-semi-text mb-1", W = H?.instructionsErrorClassName ?? "dial-tiny-text", Pe = y({
484
- "--stcf-details-border": V?.detailsColumnBorder,
485
- "--stcf-subtitle-text": V?.sectionSubtitleText,
486
- "--stcf-error-text": V?.instructionsErrorText,
487
- "--stcf-refine-action-text": V?.refineActionText,
488
- "--stcf-refine-error-text": V?.refineErrorText
489
- }), Fe = {
490
- feedbackClassName: b(V?.refineActionText && Z.refineFeedback, H?.refineFeedbackClassName, Je.refineFeedback),
477
+ }), ve = ge.isPending || _e.isPending, R = () => {
478
+ ge.reset(), _e.reset();
479
+ }, z = !!(n && pt(t, n)), B = T(z), V = () => B.guard(() => {
480
+ R(), h();
481
+ }), H = () => B.guard(() => {
482
+ R(), g();
483
+ }), Se = x(), Ce = !t.skillUrls?.length, [Te, Ee] = Ue(), Oe = He(/* @__PURE__ */ new Date()).current, { colors: U, typography: W, layout: ke } = le ?? {}, Ae = W?.titleClassName ?? "dial-h1-text", je = W?.sectionTitleClassName ?? "dial-body-semi-text", Me = W?.sectionSubtitleClassName ?? "dial-tiny-text", Ne = W?.instructionsLabelClassName ?? "dial-body-semi-text mb-1", G = W?.instructionsErrorClassName ?? "dial-tiny-text", Pe = y({
484
+ "--stcf-details-border": U?.detailsColumnBorder,
485
+ "--stcf-subtitle-text": U?.sectionSubtitleText,
486
+ "--stcf-error-text": U?.instructionsErrorText,
487
+ "--stcf-refine-action-text": U?.refineActionText,
488
+ "--stcf-refine-error-text": U?.refineErrorText
489
+ }), Ie = {
490
+ feedbackClassName: b(U?.refineActionText && Z.refineFeedback, W?.refineFeedbackClassName, qe.refineFeedback),
491
491
  errorClassName: Z.refineError
492
492
  }, Le = (t) => {
493
493
  let n = c.test(t.target.value) ? void 0 : e.timeInvalidLabel;
494
- De(n), f("time", t.target.value);
494
+ Ee(n), f("time", t.target.value);
495
495
  }, Re = (e) => {
496
- De(void 0), f("time", typeof e == "string" ? e : "");
497
- }, ze = (e) => {
496
+ Ee(void 0), f("time", typeof e == "string" ? e : "");
497
+ }, Be = (e) => {
498
498
  let n = e;
499
499
  f("repeat", n);
500
500
  let r = mt(t.startDate, t.repeat, n);
501
501
  r !== t.startDate && f("startDate", r ?? "");
502
502
  let i = mt(t.endDate, t.repeat, n);
503
503
  i !== t.endDate && f("endDate", i ?? "");
504
- }, Ve = t.repeat !== l.OneTime && t.repeat !== l.Hourly, He = t.repeat === l.Custom, Ke = He && !t.dayOfWeek;
505
- Be(() => {
506
- Ve || De(void 0);
504
+ }, Ve = t.repeat !== l.OneTime && t.repeat !== l.Hourly, Ge = t.repeat === l.Custom, Ke = Ge && !t.dayOfWeek;
505
+ ze(() => {
506
+ Ve || Ee(void 0);
507
507
  }, [Ve]);
508
- let qe = Ve ? Te ?? r.time : void 0;
509
- S(() => dt(s), fe, !!r.modelId), S(() => document.getElementById("scheduled-task-day-of-week"), he, !!r.dayOfWeek), S(() => document.getElementById("scheduled-task-time"), M, !!qe), S(() => document.getElementById(j), N, !!r.prompt);
510
- let Y = (e) => f("runAt", e), Ye = (e) => {
508
+ let X = Ve ? Te ?? r.time : void 0;
509
+ S(() => dt(s), pe, !!r.modelId), S(() => document.getElementById("scheduled-task-day-of-week"), P, !!r.dayOfWeek), S(() => document.getElementById("scheduled-task-time"), F, !!X), S(() => document.getElementById(N), me, !!r.prompt);
510
+ let Je = (e) => f("runAt", e), Ye = (e) => {
511
511
  f("everyWeeks", e);
512
512
  }, Xe = (e) => {
513
513
  e !== t.dayOfWeek && f("dayOfWeek", e);
514
- }, X = C || L || !t.displayName.trim() || !t.modelId || !t.prompt.trim() && !t.skillUrls?.length || !!r.skillUrls || t.repeat === l.OneTime && (!t.runAt || !!r.runAt) || Ve && !t.time || Ke || !!qe;
515
- return /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(Ge, {
514
+ }, Ze = E || !!r.modelId || C || ve || !t.displayName.trim() || !t.modelId || !t.prompt.trim() && !t.skillUrls?.length || !!r.skillUrls || t.repeat === l.OneTime && (!t.runAt || !!r.runAt) || Ve && !t.time || Ke || !!X;
515
+ return /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(We, {
516
516
  labels: {
517
517
  title: e.pageTitle,
518
518
  backButtonLabel: e.backButtonLabel,
@@ -520,50 +520,50 @@ var qe = "1180px", Je = {
520
520
  submitButtonLabel: e.createButtonLabel,
521
521
  submittingLabel: e.submittingLabel ?? "Saving"
522
522
  },
523
- onBack: be,
524
- onCancel: B,
523
+ onBack: V,
524
+ onCancel: H,
525
525
  onSubmit: () => {
526
- !X && (!P.current || P.current.aborted) && _();
526
+ !Ze && (!L.current || L.current.aborted) && _();
527
527
  },
528
528
  isCancelDisabled: C,
529
- isSubmitDisabled: X,
529
+ isSubmitDisabled: Ze,
530
530
  isSubmitting: C,
531
- backIcon: se === void 0 ? /* @__PURE__ */ q(ke, {
532
- size: O.LG,
533
- stroke: k,
531
+ backIcon: se === void 0 ? /* @__PURE__ */ J(De, {
532
+ size: k.LG,
533
+ stroke: A,
534
534
  "aria-hidden": !0,
535
535
  className: "rtl:scale-x-[-1]"
536
536
  }) : se,
537
537
  layout: {
538
- sideColumnWidth: U?.detailsWidth,
539
- columnGap: U?.columnGap,
538
+ sideColumnWidth: ke?.detailsWidth,
539
+ columnGap: ke?.columnGap,
540
540
  reserveEndColumn: !1
541
541
  },
542
542
  className: ce,
543
543
  styles: {
544
- colors: { background: V?.background },
544
+ colors: { background: U?.background },
545
545
  header: {
546
- colors: { borderColor: V?.headerBorder },
546
+ colors: { borderColor: U?.headerBorder },
547
547
  typography: { fontClassName: Ae }
548
548
  },
549
549
  cssVars: Pe
550
550
  },
551
- left: /* @__PURE__ */ J("div", {
551
+ left: /* @__PURE__ */ Y("div", {
552
552
  role: "group",
553
553
  "aria-label": e.detailsSectionTitle,
554
554
  className: b("flex flex-1 flex-col gap-5 py-6 desktop:border-e", Z.detailsColumn, Z.formColumn),
555
555
  children: [
556
- /* @__PURE__ */ J("div", {
556
+ /* @__PURE__ */ Y("div", {
557
557
  className: "flex flex-col gap-1",
558
- children: [/* @__PURE__ */ q("h2", {
558
+ children: [/* @__PURE__ */ J("h2", {
559
559
  className: je,
560
560
  children: e.detailsSectionTitle
561
- }), /* @__PURE__ */ q("p", {
561
+ }), /* @__PURE__ */ J("p", {
562
562
  className: b(Me, Z.sectionSubtitle),
563
563
  children: e.detailsSectionSubtitle
564
564
  })]
565
565
  }),
566
- /* @__PURE__ */ q(pe, {
566
+ /* @__PURE__ */ J(de, {
567
567
  id: "scheduled-task-display-name",
568
568
  value: t.displayName,
569
569
  onChange: (e) => f("displayName", e ?? ""),
@@ -574,66 +574,66 @@ var qe = "1180px", Je = {
574
574
  invalid: !!r.displayName,
575
575
  error: r.displayName
576
576
  }),
577
- /* @__PURE__ */ q(v, {
578
- isEnabled: !!T,
579
- fieldId: ue,
577
+ /* @__PURE__ */ J(v, {
578
+ isEnabled: !!te,
579
+ fieldId: M,
580
580
  label: e.descriptionLabel,
581
581
  labels: e,
582
- refinement: F,
583
- disabled: C || L,
582
+ refinement: ge,
583
+ disabled: C || ve,
584
584
  caption: `${(t.description ?? "").length}/500`,
585
- ...Fe,
586
- children: /* @__PURE__ */ q(Ee, {
587
- id: ue,
585
+ ...Ie,
586
+ children: /* @__PURE__ */ J(we, {
587
+ id: M,
588
588
  value: t.description ?? "",
589
589
  onChange: (e) => {
590
- F.reset(), f("description", e);
590
+ ge.reset(), f("description", e);
591
591
  },
592
- labelProps: T ? void 0 : { label: e.descriptionLabel },
592
+ labelProps: te ? void 0 : { label: e.descriptionLabel },
593
593
  maxLength: 500,
594
594
  invalid: !!r.description,
595
595
  error: r.description
596
596
  })
597
597
  }),
598
- /* @__PURE__ */ J("div", {
598
+ /* @__PURE__ */ Y("div", {
599
599
  className: "flex flex-col gap-1",
600
600
  children: [
601
- /* @__PURE__ */ q(me, {
601
+ /* @__PURE__ */ J(fe, {
602
602
  id: s,
603
603
  label: e.modelOrAgentLabel,
604
604
  required: !0
605
605
  }),
606
606
  i,
607
- r.modelId && /* @__PURE__ */ q(A, {
608
- id: fe,
609
- className: b(W, Z.instructionsError),
607
+ r.modelId && /* @__PURE__ */ J(j, {
608
+ id: pe,
609
+ className: b(G, Z.instructionsError),
610
610
  text: r.modelId
611
611
  })
612
612
  ]
613
613
  }),
614
- /* @__PURE__ */ J("div", {
614
+ /* @__PURE__ */ Y("div", {
615
615
  className: "flex flex-col gap-3",
616
616
  children: [
617
- /* @__PURE__ */ q(xe, {
617
+ /* @__PURE__ */ J(be, {
618
618
  labelProps: { label: e.repeatLabel },
619
619
  value: t.repeat,
620
- onChange: ze,
620
+ onChange: Be,
621
621
  options: e.repeatOptions.map((e) => ({
622
622
  value: e.key,
623
623
  label: e.label
624
624
  }))
625
625
  }),
626
- t.repeat === l.OneTime && /* @__PURE__ */ q(bt, {
626
+ t.repeat === l.OneTime && /* @__PURE__ */ J(bt, {
627
627
  label: e.runAtLabel,
628
628
  placeholder: e.runAtPlaceholder,
629
629
  value: t.runAt ?? "",
630
- onChange: Y,
630
+ onChange: Je,
631
631
  error: r.runAt,
632
- errorClassName: W,
632
+ errorClassName: G,
633
633
  disabled: C
634
634
  }),
635
- t.repeat !== l.OneTime && /* @__PURE__ */ J(K, { children: [
636
- He && /* @__PURE__ */ q(xe, {
635
+ t.repeat !== l.OneTime && /* @__PURE__ */ Y(q, { children: [
636
+ Ge && /* @__PURE__ */ J(be, {
637
637
  id: "scheduled-task-every-weeks",
638
638
  labelProps: { label: e.everyLabel },
639
639
  value: t.everyWeeks ?? "",
@@ -641,11 +641,11 @@ var qe = "1180px", Je = {
641
641
  options: e.everyWeekOptions,
642
642
  disabled: C
643
643
  }),
644
- t.repeat === l.Weekly && /* @__PURE__ */ J("div", {
644
+ t.repeat === l.Weekly && /* @__PURE__ */ Y("div", {
645
645
  className: "flex flex-col gap-1",
646
- children: [/* @__PURE__ */ q(E, {
646
+ children: [/* @__PURE__ */ J(re, {
647
647
  id: "scheduled-task-day-of-week",
648
- mode: D.Weekday,
648
+ mode: O.Weekday,
649
649
  value: a(t.dayOfWeek),
650
650
  onChange: (e) => f("dayOfWeek", o(e)),
651
651
  labelProps: {
@@ -653,17 +653,17 @@ var qe = "1180px", Je = {
653
653
  required: !0
654
654
  },
655
655
  invalid: !!r.dayOfWeek
656
- }), r.dayOfWeek && /* @__PURE__ */ q(A, {
657
- id: he,
658
- className: b(W, Z.instructionsError),
656
+ }), r.dayOfWeek && /* @__PURE__ */ J(j, {
657
+ id: P,
658
+ className: b(G, Z.instructionsError),
659
659
  text: r.dayOfWeek
660
660
  })]
661
661
  }),
662
- Ve && /* @__PURE__ */ J("div", {
662
+ Ve && /* @__PURE__ */ Y("div", {
663
663
  className: "flex flex-col gap-1",
664
- children: [/* @__PURE__ */ q(E, {
664
+ children: [/* @__PURE__ */ J(re, {
665
665
  id: "scheduled-task-time",
666
- mode: D.Time,
666
+ mode: O.Time,
667
667
  value: t.time,
668
668
  onChange: Re,
669
669
  onBlur: Le,
@@ -671,35 +671,35 @@ var qe = "1180px", Je = {
671
671
  label: e.timeLabel,
672
672
  required: !0
673
673
  },
674
- invalid: !!qe,
674
+ invalid: !!X,
675
675
  disabled: C,
676
676
  showTimezone: !0
677
- }), qe && /* @__PURE__ */ q(A, {
678
- id: M,
679
- className: b(W, Z.instructionsError),
680
- text: qe
677
+ }), X && /* @__PURE__ */ J(j, {
678
+ id: F,
679
+ className: b(G, Z.instructionsError),
680
+ text: X
681
681
  })]
682
682
  }),
683
- He && /* @__PURE__ */ J("div", {
683
+ Ge && /* @__PURE__ */ Y("div", {
684
684
  className: "flex flex-col gap-1",
685
685
  children: [
686
- /* @__PURE__ */ q(me, {
687
- id: de,
686
+ /* @__PURE__ */ J(fe, {
687
+ id: ue,
688
688
  label: e.dayOfWeekLabel,
689
689
  required: !0
690
690
  }),
691
- /* @__PURE__ */ q("div", {
691
+ /* @__PURE__ */ J("div", {
692
692
  role: "group",
693
- "aria-labelledby": de,
693
+ "aria-labelledby": ue,
694
694
  className: "flex gap-0.5",
695
695
  children: e.customDayOptions.map((e) => {
696
696
  let n = e.value === t.dayOfWeek;
697
- return /* @__PURE__ */ q(te, {
697
+ return /* @__PURE__ */ J(D, {
698
698
  "aria-label": e.fullName,
699
699
  "aria-pressed": n,
700
- "aria-describedby": r.dayOfWeek ? he : void 0,
701
- variant: n ? ie.Primary : ie.Neutral,
702
- appearance: ne.Solid,
700
+ "aria-describedby": r.dayOfWeek ? P : void 0,
701
+ variant: n ? ne.Primary : ne.Neutral,
702
+ appearance: ee.Solid,
703
703
  className: "w-10 rounded-full",
704
704
  label: e.shortLabel,
705
705
  onClick: () => Xe(e.value),
@@ -707,14 +707,14 @@ var qe = "1180px", Je = {
707
707
  }, e.value);
708
708
  })
709
709
  }),
710
- r.dayOfWeek && /* @__PURE__ */ q(A, {
711
- id: he,
712
- className: b(W, Z.instructionsError),
710
+ r.dayOfWeek && /* @__PURE__ */ J(j, {
711
+ id: P,
712
+ className: b(G, Z.instructionsError),
713
713
  text: r.dayOfWeek
714
714
  })
715
715
  ]
716
716
  }),
717
- t.repeat === l.Monthly && /* @__PURE__ */ q(ye, {
717
+ t.repeat === l.Monthly && /* @__PURE__ */ J(ye, {
718
718
  id: "scheduled-task-day-of-month",
719
719
  integer: !0,
720
720
  min: 1,
@@ -728,7 +728,7 @@ var qe = "1180px", Je = {
728
728
  invalid: !!r.dayOfMonth,
729
729
  error: r.dayOfMonth
730
730
  }),
731
- t.repeat === l.Hourly && /* @__PURE__ */ q(ye, {
731
+ t.repeat === l.Hourly && /* @__PURE__ */ J(ye, {
732
732
  id: "scheduled-task-minute",
733
733
  integer: !0,
734
734
  min: 0,
@@ -743,9 +743,9 @@ var qe = "1180px", Je = {
743
743
  invalid: !!r.minute,
744
744
  error: r.minute
745
745
  }),
746
- !He && /* @__PURE__ */ J("div", {
746
+ !Ge && /* @__PURE__ */ Y("div", {
747
747
  className: "flex flex-row gap-3",
748
- children: [/* @__PURE__ */ q(gt, {
748
+ children: [/* @__PURE__ */ J(gt, {
749
749
  id: "scheduled-task-start-date",
750
750
  label: e.startDateLabel,
751
751
  placeholder: e.startDatePlaceholder,
@@ -753,9 +753,9 @@ var qe = "1180px", Je = {
753
753
  onChange: (e) => f("startDate", e),
754
754
  minDate: Oe,
755
755
  error: r.startDate,
756
- errorClassName: W,
756
+ errorClassName: G,
757
757
  disabled: C
758
- }), /* @__PURE__ */ q(gt, {
758
+ }), /* @__PURE__ */ J(gt, {
759
759
  id: "scheduled-task-end-date",
760
760
  label: e.endDateLabel,
761
761
  placeholder: e.endDatePlaceholder,
@@ -763,7 +763,7 @@ var qe = "1180px", Je = {
763
763
  onChange: (e) => f("endDate", e),
764
764
  minDate: Oe,
765
765
  error: r.endDate,
766
- errorClassName: W,
766
+ errorClassName: G,
767
767
  disabled: C
768
768
  })]
769
769
  })
@@ -772,67 +772,67 @@ var qe = "1180px", Je = {
772
772
  })
773
773
  ]
774
774
  }),
775
- children: /* @__PURE__ */ J("div", {
775
+ children: /* @__PURE__ */ Y("div", {
776
776
  role: "group",
777
777
  "aria-label": e.configurationSectionTitle,
778
778
  className: b("flex flex-1 flex-col gap-5 py-6", Z.formColumn),
779
779
  children: [
780
- /* @__PURE__ */ q("div", {
780
+ /* @__PURE__ */ J("div", {
781
781
  className: "flex flex-col gap-1",
782
- children: /* @__PURE__ */ q("h2", {
782
+ children: /* @__PURE__ */ J("h2", {
783
783
  className: je,
784
784
  children: e.configurationSectionTitle
785
785
  })
786
786
  }),
787
- u == null ? /* @__PURE__ */ q(A, {
788
- announce: ge.Polite,
789
- className: b(W, Z.instructionsError),
787
+ u == null ? /* @__PURE__ */ J(j, {
788
+ announce: I.Polite,
789
+ className: b(G, Z.instructionsError),
790
790
  text: r.skillUrls ?? ""
791
- }) : /* @__PURE__ */ q("div", {
791
+ }) : /* @__PURE__ */ J("div", {
792
792
  className: "w-full max-w-[996px] min-w-0",
793
793
  children: u
794
794
  }),
795
- /* @__PURE__ */ q("div", {
795
+ /* @__PURE__ */ J("div", {
796
796
  className: "flex w-full max-w-[996px] min-w-0 flex-col",
797
- children: /* @__PURE__ */ q(v, {
798
- isEnabled: !!re,
799
- fieldId: j,
797
+ children: /* @__PURE__ */ J(v, {
798
+ isEnabled: !!ie,
799
+ fieldId: N,
800
800
  labelClassName: Ne,
801
801
  label: e.instructionsLabel,
802
- required: we,
802
+ required: Ce,
803
803
  labels: e,
804
- refinement: I,
805
- disabled: C || L,
806
- ...Fe,
807
- children: /* @__PURE__ */ J("div", {
804
+ refinement: _e,
805
+ disabled: C || ve,
806
+ ...Ie,
807
+ children: /* @__PURE__ */ Y("div", {
808
808
  className: "flex flex-1 flex-col gap-1",
809
809
  children: [
810
- !re && /* @__PURE__ */ q(me, {
811
- htmlFor: j,
810
+ !ie && /* @__PURE__ */ J(fe, {
811
+ htmlFor: N,
812
812
  className: Ne,
813
813
  label: e.instructionsLabel,
814
- required: we
814
+ required: Ce
815
815
  }),
816
- /* @__PURE__ */ q("div", {
816
+ /* @__PURE__ */ J("div", {
817
817
  ref: Se,
818
818
  className: b("w-full", p, m),
819
- children: /* @__PURE__ */ q(Ie, {
820
- fallback: /* @__PURE__ */ q(Ce, {}),
821
- children: /* @__PURE__ */ q(xt, {
822
- id: j,
819
+ children: /* @__PURE__ */ J(Fe, {
820
+ fallback: /* @__PURE__ */ J(xe, {}),
821
+ children: /* @__PURE__ */ J(xt, {
822
+ id: N,
823
823
  value: t.prompt,
824
824
  onChange: (e) => {
825
- I.reset(), f("prompt", e);
825
+ _e.reset(), f("prompt", e);
826
826
  },
827
827
  height: 480,
828
- theme: ae,
828
+ theme: oe,
829
829
  placeholder: e.instructionsPlaceholder
830
830
  })
831
831
  })
832
832
  }),
833
- r.prompt && /* @__PURE__ */ q(A, {
834
- id: N,
835
- className: b(W, Z.instructionsError),
833
+ r.prompt && /* @__PURE__ */ J(j, {
834
+ id: me,
835
+ className: b(G, Z.instructionsError),
836
836
  text: r.prompt
837
837
  })
838
838
  ]
@@ -841,15 +841,15 @@ var qe = "1180px", Je = {
841
841
  })
842
842
  ]
843
843
  })
844
- }), z.isConfirmOpen && /* @__PURE__ */ q(d, {
844
+ }), B.isConfirmOpen && /* @__PURE__ */ J(d, {
845
845
  open: !0,
846
846
  title: e.discardTitle ?? "Discard unsaved changes?",
847
847
  message: e.discardMessage ?? "You have unsaved changes. Leaving now will discard them.",
848
848
  confirmLabel: e.discardConfirmLabel ?? "Discard changes",
849
849
  cancelLabel: e.discardCancelLabel ?? "Keep editing",
850
- variant: oe.Danger,
851
- onConfirm: z.confirm,
852
- onClose: z.dismiss
850
+ variant: ae.Danger,
851
+ onConfirm: B.confirm,
852
+ onClose: B.dismiss
853
853
  })] });
854
854
  }, Ct = /* @__PURE__ */ function(e) {
855
855
  return e.Details = "details", e.Configuration = "configuration", e.History = "history", e;
@@ -859,130 +859,138 @@ var qe = "1180px", Je = {
859
859
  ...u,
860
860
  ul: "dial-small-paragraph-text mb-3 space-y-1",
861
861
  ol: "dial-small-paragraph-text mb-3 space-y-1"
862
- }, Dt = ({ skillLabel: e, skillDisplayNames: t, instructionsLabel: n, instructionsMarkdown: r, renderInstructions: i, markdownLabels: a, fieldLabelClassName: o = "dial-tiny-text" }) => /* @__PURE__ */ J("div", {
862
+ }, Dt = ({ skillLabel: e, skillDisplayNames: t, renderSkillName: n, instructionsLabel: r, instructionsMarkdown: i, renderInstructions: a, markdownLabels: o, fieldLabelClassName: s = "dial-tiny-text" }) => /* @__PURE__ */ Y("div", {
863
863
  className: "flex min-w-0 flex-col gap-5",
864
- children: [!!t?.length && /* @__PURE__ */ J("div", {
864
+ children: [!!t?.length && /* @__PURE__ */ Y("div", {
865
865
  role: "group",
866
866
  "aria-label": e,
867
867
  className: "flex min-w-0 flex-col gap-1",
868
- children: [/* @__PURE__ */ q("span", {
869
- className: b(o, Tt.subtitleText),
868
+ children: [/* @__PURE__ */ J("span", {
869
+ className: b(s, Tt.subtitleText),
870
870
  children: e
871
- }), /* @__PURE__ */ q("p", {
871
+ }), /* @__PURE__ */ J("p", {
872
872
  className: "wrap-anywhere whitespace-normal",
873
- children: t?.map((e, t) => /* @__PURE__ */ q("span", {
873
+ children: t?.map((e, t) => /* @__PURE__ */ J("span", {
874
874
  className: "block",
875
- children: e
875
+ children: n ? n(e, t) : e
876
876
  }, `${t}:${e}`))
877
877
  })]
878
- }), r && /* @__PURE__ */ J("div", {
878
+ }), i && /* @__PURE__ */ Y("div", {
879
879
  role: "group",
880
- "aria-label": n,
880
+ "aria-label": r,
881
881
  className: "flex min-w-0 flex-col gap-1",
882
- children: [/* @__PURE__ */ q("span", {
883
- className: b(o, Tt.subtitleText),
884
- children: n
885
- }), i ? i(r) : /* @__PURE__ */ q(h, {
886
- content: r,
882
+ children: [/* @__PURE__ */ J("span", {
883
+ className: b(s, Tt.subtitleText),
884
+ children: r
885
+ }), a ? a(i) : /* @__PURE__ */ J(h, {
886
+ content: i,
887
887
  classNames: Et,
888
- ...a
888
+ ...o
889
889
  })]
890
890
  })]
891
891
  }), Ot = {
892
892
  subtitleText: "_subtitleText_1ncri_4",
893
893
  description: "_description_1ncri_10"
894
- }, kt = ({ labels: e, description: t, modelLabel: n, repeatsLabel: r, activeWindowLabel: i, completedLabel: a, fieldLabelClassName: o = "dial-tiny-text", fieldValueClassName: s = "dial-small-text" }) => {
895
- let c = t?.trim();
896
- return /* @__PURE__ */ J(K, { children: [
897
- c && /* @__PURE__ */ J("div", {
894
+ }, kt = ({ labels: e, description: t, modelLabel: n, renderModelName: r, repeatsLabel: i, activeWindowLabel: a, completedLabel: o, fieldLabelClassName: s = "dial-tiny-text", fieldValueClassName: c = "dial-small-text" }) => {
895
+ let l = t?.trim();
896
+ return /* @__PURE__ */ Y(q, { children: [
897
+ l && /* @__PURE__ */ Y("div", {
898
898
  className: "flex min-w-0 flex-col gap-1",
899
- children: [/* @__PURE__ */ q("span", {
900
- className: b(o, Ot.subtitleText),
899
+ children: [/* @__PURE__ */ J("span", {
900
+ className: b(s, Ot.subtitleText),
901
901
  children: e.descriptionLabel
902
- }), /* @__PURE__ */ q("p", {
903
- className: b(s, "wrap-anywhere whitespace-pre-wrap", Ot.description),
904
- children: c
902
+ }), /* @__PURE__ */ J("p", {
903
+ className: b(c, "wrap-anywhere whitespace-pre-wrap", Ot.description),
904
+ children: l
905
905
  })]
906
906
  }),
907
- a && /* @__PURE__ */ J("div", {
907
+ o && /* @__PURE__ */ Y("div", {
908
908
  className: "flex min-w-0 flex-col gap-1",
909
- children: [/* @__PURE__ */ q("span", {
910
- className: b(o, Ot.subtitleText),
909
+ children: [/* @__PURE__ */ J("span", {
910
+ className: b(s, Ot.subtitleText),
911
911
  children: e.completedFieldLabel
912
- }), /* @__PURE__ */ q("p", {
913
- className: s,
914
- children: a
912
+ }), /* @__PURE__ */ J("p", {
913
+ className: c,
914
+ children: o
915
915
  })]
916
916
  }),
917
- n && /* @__PURE__ */ J("div", {
917
+ n && /* @__PURE__ */ Y("div", {
918
918
  className: "flex min-w-0 flex-col gap-1",
919
- children: [/* @__PURE__ */ q("span", {
920
- className: b(o, Ot.subtitleText),
919
+ children: [/* @__PURE__ */ J("span", {
920
+ className: b(s, Ot.subtitleText),
921
921
  children: e.modelLabel
922
- }), /* @__PURE__ */ q("p", {
923
- className: s,
924
- children: n
922
+ }), /* @__PURE__ */ J("p", {
923
+ className: c,
924
+ children: r ? r(n) : n
925
925
  })]
926
926
  }),
927
- r && /* @__PURE__ */ J("div", {
927
+ i && /* @__PURE__ */ Y("div", {
928
928
  className: "flex min-w-0 flex-col gap-1",
929
- children: [/* @__PURE__ */ q("span", {
930
- className: b(o, Ot.subtitleText),
929
+ children: [/* @__PURE__ */ J("span", {
930
+ className: b(s, Ot.subtitleText),
931
931
  children: e.repeatsLabel
932
- }), /* @__PURE__ */ q("p", {
933
- className: s,
934
- children: r
932
+ }), /* @__PURE__ */ J("p", {
933
+ className: c,
934
+ children: i
935
935
  })]
936
936
  }),
937
- i && /* @__PURE__ */ J("div", {
937
+ a && /* @__PURE__ */ Y("div", {
938
938
  className: "flex min-w-0 flex-col gap-1",
939
- children: [/* @__PURE__ */ q("span", {
940
- className: b(o, Ot.subtitleText),
939
+ children: [/* @__PURE__ */ J("span", {
940
+ className: b(s, Ot.subtitleText),
941
941
  children: e.activeWindowLabel
942
- }), /* @__PURE__ */ q("p", {
943
- className: s,
944
- children: i
942
+ }), /* @__PURE__ */ J("p", {
943
+ className: c,
944
+ children: a
945
945
  })]
946
946
  })
947
947
  ] });
948
948
  }, At = /* @__PURE__ */ function(e) {
949
949
  return e.Success = "success", e.Error = "error", e.InProgress = "inProgress", e.Missed = "missed", e;
950
950
  }({}), Q = {
951
- subtitleText: "_subtitleText_1sqjy_1",
952
- successIcon: "_successIcon_1sqjy_5",
953
- errorIcon: "_errorIcon_1sqjy_9",
954
- missedIcon: "_missedIcon_1sqjy_13",
955
- currentRun: "_currentRun_1sqjy_17",
956
- interactiveRow: "_interactiveRow_1sqjy_27",
957
- unreadDot: "_unreadDot_1sqjy_38"
951
+ subtitleText: "_subtitleText_1sc83_1",
952
+ successIcon: "_successIcon_1sc83_5",
953
+ errorIcon: "_errorIcon_1sc83_9",
954
+ missedIcon: "_missedIcon_1sc83_13",
955
+ currentRun: "_currentRun_1sc83_17",
956
+ expandedRow: "_expandedRow_1sc83_22",
957
+ interactiveRow: "_interactiveRow_1sc83_33",
958
+ unreadDot: "_unreadDot_1sc83_44",
959
+ chevronIcon: "_chevronIcon_1sc83_48",
960
+ errorDetailsText: "_errorDetailsText_1sc83_52"
958
961
  }, jt = ({ status: e }) => {
959
962
  switch (e) {
960
- case At.Success: return /* @__PURE__ */ q(Ae, {
961
- size: O.SM,
963
+ case At.Success: return /* @__PURE__ */ J(W, {
964
+ size: k.SM,
962
965
  className: Q.successIcon,
963
966
  "aria-hidden": !0,
964
- stroke: k
967
+ stroke: A
965
968
  });
966
- case At.Error: return /* @__PURE__ */ q(je, {
967
- size: O.SM,
969
+ case At.Error: return /* @__PURE__ */ J(Ae, {
970
+ size: k.SM,
968
971
  className: Q.errorIcon,
969
972
  "aria-hidden": !0,
970
- stroke: k
973
+ stroke: A
971
974
  });
972
- case At.InProgress: return /* @__PURE__ */ q("span", {
975
+ case At.InProgress: return /* @__PURE__ */ J("span", {
973
976
  "aria-hidden": !0,
974
- children: /* @__PURE__ */ q(Ce, { size: O.SM })
977
+ children: /* @__PURE__ */ J(xe, { size: k.SM })
975
978
  });
976
- case At.Missed: return /* @__PURE__ */ q(V, {
977
- size: O.SM,
979
+ case At.Missed: return /* @__PURE__ */ J(Ee, {
980
+ size: k.SM,
978
981
  className: Q.missedIcon,
979
982
  "aria-hidden": !0,
980
- stroke: k
983
+ stroke: A
981
984
  });
982
985
  default: return null;
983
986
  }
984
987
  }, Mt = ({ 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 }) => {
985
- 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({
988
+ let { colors: d, typography: f } = u ?? {}, p = f?.runTimestampClassName ?? "dial-small-paragraph-text", m = f?.runTimestampUnreadClassName ?? "dial-small-paragraph-semi-text", h = f?.subtitleClassName ?? "dial-body-text", g = f?.errorDetailsClassName ?? "dial-tiny-text", _ = c.unreadIndicatorLabel ?? "Unread", v = c.openConversationLabel ?? "Open conversation", x = K(), [S, C] = Ue(() => /* @__PURE__ */ new Set()), w = (e) => {
989
+ C((t) => {
990
+ let n = new Set(t);
991
+ return n.has(e) ? n.delete(e) : n.add(e), n;
992
+ });
993
+ }, T = y({
986
994
  "--strhl-success-icon": d?.successIconColor,
987
995
  "--strhl-error-icon": d?.errorIconColor,
988
996
  "--strhl-missed-icon": d?.missedIconColor,
@@ -990,159 +998,190 @@ var qe = "1180px", Je = {
990
998
  "--strhl-current-run-bg": d?.currentRunBackground,
991
999
  "--strhl-current-run-subtitle-text": d?.currentRunSubtitleTextColor,
992
1000
  "--strhl-unread-dot": d?.unreadDotColor,
1001
+ "--strhl-error-details-text": d?.errorDetailsTextColor,
1002
+ "--strhl-chevron-icon": d?.chevronIconColor,
993
1003
  "--strhl-row-hover-bg": u?.rowHoverBackground,
994
1004
  "--strhl-row-focus-bg": u?.rowFocusBackground,
995
- "--strhl-row-focus-outline": u?.rowFocusOutline
996
- }), v = (e) => {
997
- let t = c.runStatusLabels[e.status], n = e.id === o, r = e.status === At.Error && e.errorText ? e.errorText : void 0, i = [
998
- r,
999
- e.isUnread ? g : void 0,
1000
- n ? c.currentRunLabel : void 0
1001
- ].filter((e) => !!e), a = [[
1005
+ "--strhl-row-focus-outline": u?.rowFocusOutline,
1006
+ "--strhl-row-expanded-bg": u?.rowExpandedBackground
1007
+ }), E = (e) => {
1008
+ let t = c.runStatusLabels[e.status], n = e.id === o, r = e.status === At.Error && e.errorText ? e.errorText : void 0, i = !!r, a = i && S.has(e.id), l = [e.isUnread ? _ : void 0, n ? c.currentRunLabel : void 0].filter((e) => !!e), u = [[
1002
1009
  t,
1003
1010
  e.timestampLabel,
1004
1011
  e.durationLabel
1005
- ].filter(Boolean).join(" "), ...i].join(" — "), l = !!e.conversationId && !!s, u = b("-mx-(--strhl-row-bleed,0px) flex min-h-(--strhl-row-min-height,32px) max-w-[328px] items-center justify-between gap-2 rounded-full px-3", n && Q.currentRun, l && "w-full cursor-pointer text-start", l && Q.interactiveRow), d = /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ J("span", {
1012
+ ].filter(Boolean).join(" "), ...l].join(" — "), d = !!e.conversationId && !!s, f = !i && d, h = f || i, y = "-mx-(--strhl-row-bleed,0px)", C = b("flex min-h-(--strhl-row-min-height,32px) items-center justify-between gap-2 rounded-full px-3", n && Q.currentRun, a && Q.expandedRow, h && "w-full cursor-pointer text-start", h && Q.interactiveRow), T = /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ Y("span", {
1006
1013
  className: "flex min-w-0 items-center gap-1",
1007
- children: [r ? /* @__PURE__ */ q(De, {
1008
- tooltip: r,
1009
- asChild: !0,
1010
- contentClassName: "max-w-[320px] whitespace-pre-wrap break-words",
1011
- children: /* @__PURE__ */ q("span", {
1012
- className: "flex shrink-0",
1013
- tabIndex: l ? void 0 : 0,
1014
- children: /* @__PURE__ */ q(jt, { status: e.status })
1015
- })
1016
- }) : /* @__PURE__ */ q(jt, { status: e.status }), /* @__PURE__ */ J("span", {
1014
+ children: [/* @__PURE__ */ J(jt, { status: e.status }), /* @__PURE__ */ Y("span", {
1017
1015
  className: "flex min-w-0 items-center gap-1",
1018
- children: [/* @__PURE__ */ q("span", {
1016
+ children: [/* @__PURE__ */ J("span", {
1019
1017
  className: b(e.isUnread ? m : p, "truncate"),
1020
1018
  children: e.timestampLabel
1021
- }), e.durationLabel && /* @__PURE__ */ q("span", {
1019
+ }), e.durationLabel && /* @__PURE__ */ J("span", {
1022
1020
  className: b(p, Q.subtitleText, "shrink-0"),
1023
1021
  children: e.durationLabel
1024
1022
  })]
1025
1023
  })]
1026
- }), /* @__PURE__ */ q("span", {
1024
+ }), /* @__PURE__ */ Y("span", {
1027
1025
  className: "relative flex size-3 shrink-0 items-center justify-center",
1028
- children: e.isUnread && /* @__PURE__ */ q("span", {
1026
+ children: [i && /* @__PURE__ */ J(ke, {
1027
+ size: k.SM,
1028
+ stroke: A,
1029
+ "aria-hidden": !0,
1030
+ className: b("shrink-0 transition-transform duration-200 motion-reduce:transition-none", Q.chevronIcon, a && "rotate-180")
1031
+ }), !i && e.isUnread && /* @__PURE__ */ J("span", {
1029
1032
  className: b("size-[5.33px] rounded-full", Q.unreadDot),
1030
1033
  "aria-hidden": !0
1031
- })
1034
+ })]
1032
1035
  })] });
1033
- return l ? /* @__PURE__ */ q("li", { children: /* @__PURE__ */ q("button", {
1036
+ if (i) {
1037
+ let t = `${x}-${e.id}-header`, i = `${x}-${e.id}-details`;
1038
+ return /* @__PURE__ */ Y("li", {
1039
+ className: b(y, "flex flex-col"),
1040
+ children: [/* @__PURE__ */ J("button", {
1041
+ type: "button",
1042
+ id: t,
1043
+ "aria-label": u,
1044
+ "aria-current": n ? "true" : void 0,
1045
+ "aria-expanded": a,
1046
+ "aria-controls": i,
1047
+ className: C,
1048
+ onClick: () => w(e.id),
1049
+ children: T
1050
+ }), /* @__PURE__ */ J("div", {
1051
+ inert: !a,
1052
+ className: b("grid transition-[grid-template-rows] duration-200 ease-out motion-reduce:transition-none", a ? "grid-rows-[1fr]" : "grid-rows-[0fr]"),
1053
+ children: /* @__PURE__ */ J("div", {
1054
+ className: "min-h-0 overflow-hidden",
1055
+ children: /* @__PURE__ */ Y("div", {
1056
+ id: i,
1057
+ role: "region",
1058
+ "aria-labelledby": t,
1059
+ className: "flex min-w-0 flex-col items-start gap-1 ps-8 pe-3 pt-1 pb-2",
1060
+ children: [/* @__PURE__ */ J("p", {
1061
+ className: b(g, Q.errorDetailsText, "max-w-full wrap-break-word whitespace-pre-wrap"),
1062
+ children: r
1063
+ }), d && /* @__PURE__ */ J(pe, {
1064
+ label: v,
1065
+ onClick: () => s?.(e)
1066
+ })]
1067
+ })
1068
+ })
1069
+ })]
1070
+ }, e.id);
1071
+ }
1072
+ return f ? /* @__PURE__ */ J("li", { children: /* @__PURE__ */ J("button", {
1034
1073
  type: "button",
1035
- "aria-label": a,
1074
+ "aria-label": u,
1036
1075
  "aria-current": n ? "true" : void 0,
1037
- className: u,
1076
+ className: b(y, C),
1038
1077
  onClick: () => s?.(e),
1039
- children: d
1040
- }) }, e.id) : /* @__PURE__ */ q("li", {
1041
- "aria-label": a,
1078
+ children: T
1079
+ }) }, e.id) : /* @__PURE__ */ J("li", {
1080
+ "aria-label": u,
1042
1081
  "aria-current": n ? "true" : void 0,
1043
- className: u,
1044
- children: d
1082
+ className: b(y, C),
1083
+ children: T
1045
1084
  }, e.id);
1046
- }, x = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */ J("li", {
1085
+ }, D = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */ Y("li", {
1047
1086
  "aria-hidden": "true",
1048
- 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",
1049
- children: [/* @__PURE__ */ q(B, {
1050
- variant: Se.Rectangular,
1087
+ className: "-mx-(--strhl-row-bleed,0px) flex min-h-(--strhl-row-min-height,32px) items-center justify-between gap-2 px-3",
1088
+ children: [/* @__PURE__ */ J(V, {
1089
+ variant: H.Rectangular,
1051
1090
  width: "160px",
1052
1091
  height: "16px"
1053
- }), /* @__PURE__ */ q(B, {
1054
- variant: Se.Rectangular,
1092
+ }), /* @__PURE__ */ J(V, {
1093
+ variant: H.Rectangular,
1055
1094
  width: "16px",
1056
1095
  height: "16px",
1057
1096
  className: "shrink-0 rounded-full"
1058
1097
  })]
1059
1098
  }, `history-skeleton-${t}`));
1060
- return t && e.length === 0 ? /* @__PURE__ */ q("ul", {
1099
+ return t && e.length === 0 ? /* @__PURE__ */ J("ul", {
1061
1100
  style: {
1062
- ..._,
1101
+ ...T,
1063
1102
  "--strhl-row-min-height": u?.rowMinHeight
1064
1103
  },
1065
1104
  "aria-label": c.historyTitle,
1066
1105
  className: "flex flex-col gap-0.5",
1067
- children: x(r)
1068
- }) : i && e.length === 0 ? /* @__PURE__ */ J("div", {
1069
- style: _,
1106
+ children: D(r)
1107
+ }) : i && e.length === 0 ? /* @__PURE__ */ Y("div", {
1108
+ style: T,
1070
1109
  className: "flex flex-col items-start gap-3",
1071
- children: [/* @__PURE__ */ q("p", {
1110
+ children: [/* @__PURE__ */ J("p", {
1072
1111
  role: "status",
1073
1112
  className: b(h, Q.subtitleText),
1074
1113
  children: c.errorLabel
1075
- }), /* @__PURE__ */ q(j, {
1114
+ }), /* @__PURE__ */ J(M, {
1076
1115
  label: c.retryLabel,
1077
1116
  onClick: a
1078
1117
  })]
1079
- }) : e.length === 0 ? /* @__PURE__ */ q("div", {
1080
- style: _,
1118
+ }) : e.length === 0 ? /* @__PURE__ */ J("div", {
1119
+ style: T,
1081
1120
  className: "w-full py-4",
1082
- children: /* @__PURE__ */ q(F, {
1121
+ children: /* @__PURE__ */ J(he, {
1083
1122
  title: c.emptyLabel,
1084
1123
  description: c.emptyDescription,
1085
1124
  live: !0
1086
1125
  })
1087
- }) : /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ J("ul", {
1126
+ }) : /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ Y("ul", {
1088
1127
  style: {
1089
- ..._,
1128
+ ...T,
1090
1129
  "--strhl-row-min-height": u?.rowMinHeight
1091
1130
  },
1092
1131
  "aria-label": c.historyTitle,
1093
1132
  className: "flex flex-col gap-0.5",
1094
1133
  children: [
1095
- e.map(v),
1096
- n && x(r),
1097
- i ? /* @__PURE__ */ J("li", {
1134
+ e.map(E),
1135
+ n && D(r),
1136
+ i ? /* @__PURE__ */ Y("li", {
1098
1137
  className: "flex flex-col items-start gap-3 px-5 py-2",
1099
- children: [/* @__PURE__ */ q("p", {
1138
+ children: [/* @__PURE__ */ J("p", {
1100
1139
  className: b(h, Q.subtitleText),
1101
1140
  children: c.errorLabel
1102
- }), /* @__PURE__ */ q(j, {
1141
+ }), /* @__PURE__ */ J(M, {
1103
1142
  label: c.retryLabel,
1104
1143
  onClick: a
1105
1144
  })]
1106
1145
  }) : l
1107
1146
  ]
1108
- }), /* @__PURE__ */ q(M, {
1109
- politeness: ge.Assertive,
1147
+ }), /* @__PURE__ */ J(P, {
1148
+ politeness: I.Assertive,
1110
1149
  visuallyHidden: !0,
1111
- as: N.Span,
1150
+ as: F.Span,
1112
1151
  children: i ? c.errorLabel : ""
1113
1152
  })] });
1114
1153
  }, Nt = {
1115
1154
  historyCard: "_historyCard_153p9_4",
1116
1155
  subtitleText: "_subtitleText_153p9_8",
1117
1156
  cardLayout: "_cardLayout_153p9_13"
1118
- }, 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: v }) => {
1119
- let y = e === wt.Card, x = y ? b("sticky bottom-0 z-10 rounded-b-xl px-6 pb-5 pt-2", Nt.historyCard) : "pt-2", S = t.historyLoadMoreErrorLabel ?? t.historyErrorLabel, C = l ? /* @__PURE__ */ J("li", {
1120
- className: x,
1121
- children: [/* @__PURE__ */ q("p", { children: S }), u && /* @__PURE__ */ q(j, {
1157
+ }, 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", errorDetailsClassName: g = "dial-tiny-text", sectionTitleClassName: _ = "dial-body-semi-text", colors: v, styles: y }) => {
1158
+ let x = e === wt.Card, S = x ? b("sticky bottom-0 z-10 rounded-b-xl px-6 pb-5 pt-2", Nt.historyCard) : "pt-2", C = t.historyLoadMoreErrorLabel ?? t.historyErrorLabel, w = l ? /* @__PURE__ */ Y("li", {
1159
+ className: S,
1160
+ children: [/* @__PURE__ */ J("p", { children: C }), u && /* @__PURE__ */ J(M, {
1122
1161
  label: t.historyRetryLabel,
1123
1162
  onClick: u,
1124
1163
  disabled: a
1125
1164
  })]
1126
- }) : f && d && t.historyShowMoreLabel ? /* @__PURE__ */ q("li", {
1127
- className: x,
1128
- children: /* @__PURE__ */ q(j, {
1165
+ }) : f && d && t.historyShowMoreLabel ? /* @__PURE__ */ J("li", {
1166
+ className: S,
1167
+ children: /* @__PURE__ */ J(M, {
1129
1168
  label: t.historyShowMoreLabel,
1130
1169
  onClick: f,
1131
1170
  disabled: a
1132
1171
  })
1133
- }) : void 0, w = n ? /* @__PURE__ */ q("p", {
1172
+ }) : void 0, T = n ? /* @__PURE__ */ J("p", {
1134
1173
  className: b(m, Nt.subtitleText),
1135
1174
  children: n
1136
- }) : void 0, ee = /* @__PURE__ */ q(M, {
1137
- politeness: ge.Assertive,
1175
+ }) : void 0, E = /* @__PURE__ */ J(P, {
1176
+ politeness: I.Assertive,
1138
1177
  visuallyHidden: !0,
1139
- as: N.Span,
1140
- children: l ? S : ""
1141
- }), T = t.historyLoadingMoreLabel ? /* @__PURE__ */ q(M, {
1178
+ as: F.Span,
1179
+ children: l ? C : ""
1180
+ }), D = t.historyLoadingMoreLabel ? /* @__PURE__ */ J(P, {
1142
1181
  visuallyHidden: !0,
1143
- as: N.Span,
1182
+ as: F.Span,
1144
1183
  children: a ? t.historyLoadingMoreLabel : ""
1145
- }) : void 0, te = /* @__PURE__ */ q(Mt, {
1184
+ }) : void 0, ee = /* @__PURE__ */ J(Mt, {
1146
1185
  items: r,
1147
1186
  isLoading: i,
1148
1187
  isLoadingMore: a,
@@ -1157,47 +1196,50 @@ var qe = "1180px", Je = {
1157
1196
  errorLabel: t.historyErrorLabel,
1158
1197
  retryLabel: t.historyRetryLabel,
1159
1198
  runStatusLabels: t.runStatusLabels,
1160
- unreadIndicatorLabel: t.unreadIndicatorLabel
1199
+ unreadIndicatorLabel: t.unreadIndicatorLabel,
1200
+ openConversationLabel: t.openConversationLabel
1161
1201
  },
1162
- footer: C,
1202
+ footer: w,
1163
1203
  styles: {
1164
1204
  typography: {
1165
1205
  runTimestampClassName: m,
1166
- runTimestampUnreadClassName: h
1206
+ runTimestampUnreadClassName: h,
1207
+ errorDetailsClassName: g
1167
1208
  },
1168
- colors: v?.colors ?? _,
1169
- rowMinHeight: v?.rowMinHeight,
1170
- rowHoverBackground: v?.rowHoverBackground,
1171
- rowFocusBackground: v?.rowFocusBackground,
1172
- rowFocusOutline: v?.rowFocusOutline
1209
+ colors: y?.colors ?? v,
1210
+ rowMinHeight: y?.rowMinHeight,
1211
+ rowHoverBackground: y?.rowHoverBackground,
1212
+ rowFocusBackground: y?.rowFocusBackground,
1213
+ rowFocusOutline: y?.rowFocusOutline,
1214
+ rowExpandedBackground: y?.rowExpandedBackground
1173
1215
  }
1174
1216
  });
1175
- return y ? /* @__PURE__ */ J("div", {
1217
+ return x ? /* @__PURE__ */ Y("div", {
1176
1218
  className: b("flex max-h-(--st-history-max-height,70vh) w-full max-w-full flex-col overflow-y-auto rounded-xl shadow-md", Nt.historyCard, Nt.cardLayout),
1177
- style: { "--st-history-max-height": v?.maxHeight },
1178
- children: [/* @__PURE__ */ J("div", {
1219
+ style: { "--st-history-max-height": y?.maxHeight },
1220
+ children: [/* @__PURE__ */ Y("div", {
1179
1221
  className: b("sticky top-0 z-10 flex flex-col gap-4 rounded-t-xl px-6 pt-5 pb-2", Nt.historyCard),
1180
1222
  children: [
1181
- /* @__PURE__ */ q("h2", {
1182
- className: g,
1223
+ /* @__PURE__ */ J("h2", {
1224
+ className: _,
1183
1225
  children: t.historyTitle
1184
1226
  }),
1185
- w,
1186
1227
  T,
1187
- ee
1228
+ D,
1229
+ E
1188
1230
  ]
1189
- }), /* @__PURE__ */ q("div", {
1231
+ }), /* @__PURE__ */ J("div", {
1190
1232
  className: "flex flex-1 flex-col gap-4 px-6 pb-2",
1191
1233
  style: { "--strhl-row-bleed": "12px" },
1192
- children: te
1234
+ children: ee
1193
1235
  })]
1194
- }) : /* @__PURE__ */ J("div", {
1236
+ }) : /* @__PURE__ */ Y("div", {
1195
1237
  className: "flex flex-col gap-4",
1196
1238
  children: [
1197
- w,
1198
1239
  T,
1199
- ee,
1200
- te
1240
+ D,
1241
+ E,
1242
+ ee
1201
1243
  ]
1202
1244
  });
1203
1245
  }, $ = {
@@ -1213,15 +1255,15 @@ var qe = "1180px", Je = {
1213
1255
  actionButton: "_actionButton_hdn5b_75",
1214
1256
  roundActionButton: "_roundActionButton_hdn5b_82",
1215
1257
  stickyTabs: "_stickyTabs_hdn5b_88"
1216
- }, Ft = "min-w-0 max-w-[600px]", It = ({ labels: e, onBack: t, onEdit: n, onStartNow: r, isStarting: i = !1, isStartNowDisabled: a = !1, isStartNowBusy: o = !1, onDelete: s, isDeleting: c = !1, isDeleted: l = !1, isCompleted: u = !1, isActive: d, isActiveUpdating: f = !1, isActiveDisabled: p = !1, activeDisabledReason: m, onActiveChange: h, displayName: g, isLoading: _ = !1, error: v, onRetry: x, description: S, modelLabel: w, repeatsLabel: ee, activeWindowLabel: T, completedLabel: te, nextRunLabel: ne, instructionsMarkdown: re, skillDisplayNames: E, renderInstructions: D, runs: ae, runsIsLoading: oe = !1, runsIsLoadingMore: se = !1, runsSkeletonCount: le = 6, runsError: A, onRunsRetry: ue, runsLoadMoreError: fe, onRunsRetryLoadMore: pe, runsHasMore: me = !1, onRunsLoadMore: he, onRunClick: ge, styles: P, className: F, backIcon: I, layout: L, historyStyles: ve }) => {
1217
- let { colors: R, typography: ye } = P ?? {}, z = ye?.titleClassName ?? "dial-h2-text", be = ye?.sectionTitleClassName ?? "dial-body-semi-text", xe = ye?.fieldLabelClassName ?? "dial-tiny-text", B = ye?.fieldValueClassName ?? "dial-small-text", Se = ye?.runTimestampClassName ?? "dial-small-text", Ee = y({
1218
- "--stdv-bg": R?.background,
1219
- "--stdv-header-border": R?.headerBorder,
1220
- "--stdv-details-border": R?.detailsColumnBorder,
1221
- "--stdv-subtitle-text": R?.subtitleText,
1222
- "--stdv-description-text": R?.descriptionText,
1223
- "--stdv-history-bg": R?.historyCardBackground
1224
- }), De = C(), [Oe, V] = We(Ct.Details), H = G(), U = o && !i ? e.startNowBusyLabel : void 0, Ae = [
1258
+ }, Ft = "min-w-0 max-w-[600px]", It = ({ labels: e, onBack: t, onEdit: n, onStartNow: r, isStarting: i = !1, isStartNowDisabled: a = !1, isStartNowBusy: o = !1, onDelete: s, isDeleting: c = !1, isDeleted: l = !1, isCompleted: u = !1, isActive: d, isActiveUpdating: f = !1, isActiveDisabled: p = !1, activeDisabledReason: m, onActiveChange: h, displayName: g, isLoading: _ = !1, error: v, onRetry: x, description: S, modelLabel: w, renderModelName: T, repeatsLabel: E, activeWindowLabel: D, completedLabel: ee, nextRunLabel: te, instructionsMarkdown: re, skillDisplayNames: O, renderSkillName: ie, renderInstructions: ae, runs: oe, runsIsLoading: ce = !1, runsIsLoadingMore: j = !1, runsSkeletonCount: le = 6, runsError: ue, onRunsRetry: de, runsLoadMoreError: fe, onRunsRetryLoadMore: pe, runsHasMore: I = !1, onRunsLoadMore: me, onRunClick: he, styles: ge, className: _e, backIcon: ve, layout: R, historyStyles: ye }) => {
1259
+ let { colors: z, typography: B } = ge ?? {}, be = B?.titleClassName ?? "dial-h2-text", V = B?.sectionTitleClassName ?? "dial-body-semi-text", H = B?.fieldLabelClassName ?? "dial-tiny-text", we = B?.fieldValueClassName ?? "dial-small-text", Te = B?.runTimestampClassName ?? "dial-small-text", Ee = y({
1260
+ "--stdv-bg": z?.background,
1261
+ "--stdv-header-border": z?.headerBorder,
1262
+ "--stdv-details-border": z?.detailsColumnBorder,
1263
+ "--stdv-subtitle-text": z?.subtitleText,
1264
+ "--stdv-description-text": z?.descriptionText,
1265
+ "--stdv-history-bg": z?.historyCardBackground
1266
+ }), Oe = C(), [U, W] = Ue(Ct.Details), ke = K(), Ae = o && !i ? e.startNowBusyLabel : void 0, Me = [
1225
1267
  {
1226
1268
  id: Ct.Details,
1227
1269
  label: e.detailsTitle
@@ -1234,7 +1276,7 @@ var qe = "1180px", Je = {
1234
1276
  id: Ct.History,
1235
1277
  label: e.historyTitle
1236
1278
  }
1237
- ], je = Ae.find((e) => e.id === Oe)?.label ?? e.detailsTitle, Ne = /* @__PURE__ */ q(kt, {
1279
+ ], G = Me.find((e) => e.id === U)?.label ?? e.detailsTitle, Fe = /* @__PURE__ */ J(kt, {
1238
1280
  labels: {
1239
1281
  descriptionLabel: e.descriptionLabel,
1240
1282
  modelLabel: e.modelLabel,
@@ -1244,17 +1286,19 @@ var qe = "1180px", Je = {
1244
1286
  },
1245
1287
  description: S,
1246
1288
  modelLabel: w,
1247
- repeatsLabel: ee,
1248
- activeWindowLabel: T,
1249
- completedLabel: te,
1250
- fieldLabelClassName: xe,
1251
- fieldValueClassName: B
1252
- }), Pe = /* @__PURE__ */ q(Dt, {
1289
+ renderModelName: T,
1290
+ repeatsLabel: E,
1291
+ activeWindowLabel: D,
1292
+ completedLabel: ee,
1293
+ fieldLabelClassName: H,
1294
+ fieldValueClassName: we
1295
+ }), Ie = /* @__PURE__ */ J(Dt, {
1253
1296
  instructionsLabel: e.instructionsLabel,
1254
1297
  skillLabel: e.skillLabel,
1255
- skillDisplayNames: E,
1298
+ skillDisplayNames: O,
1299
+ renderSkillName: ie,
1256
1300
  instructionsMarkdown: re,
1257
- renderInstructions: D,
1301
+ renderInstructions: ae,
1258
1302
  markdownLabels: {
1259
1303
  codeBlockCopyLabel: e.codeBlockCopyLabel,
1260
1304
  codeBlockCopiedLabel: e.codeBlockCopiedLabel,
@@ -1262,8 +1306,8 @@ var qe = "1180px", Je = {
1262
1306
  tableScrollRegionAriaLabel: e.tableScrollRegionAriaLabel,
1263
1307
  mathScrollRegionAriaLabel: e.mathScrollRegionAriaLabel
1264
1308
  },
1265
- fieldLabelClassName: xe
1266
- }), Ie = (t) => /* @__PURE__ */ q(Pt, {
1309
+ fieldLabelClassName: H
1310
+ }), Le = (t) => /* @__PURE__ */ J(Pt, {
1267
1311
  variant: t,
1268
1312
  labels: {
1269
1313
  historyTitle: e.historyTitle,
@@ -1275,111 +1319,112 @@ var qe = "1180px", Je = {
1275
1319
  historyLoadingMoreLabel: e.historyLoadingMoreLabel,
1276
1320
  historyShowMoreLabel: e.historyShowMoreLabel,
1277
1321
  runStatusLabels: e.runStatusLabels,
1278
- unreadIndicatorLabel: e.unreadIndicatorLabel
1322
+ unreadIndicatorLabel: e.unreadIndicatorLabel,
1323
+ openConversationLabel: e.openConversationLabel
1279
1324
  },
1280
- nextRunLabel: ne,
1281
- items: ae,
1282
- isLoading: oe,
1283
- isLoadingMore: se,
1325
+ nextRunLabel: te,
1326
+ items: oe,
1327
+ isLoading: ce,
1328
+ isLoadingMore: j,
1284
1329
  skeletonCount: le,
1285
- error: A,
1286
- onRetry: ue,
1330
+ error: ue,
1331
+ onRetry: de,
1287
1332
  loadMoreError: fe,
1288
1333
  onRetryLoadMore: pe,
1289
- hasMore: me,
1290
- onLoadMore: he,
1291
- onRunClick: ge,
1292
- runTimestampClassName: Se,
1293
- sectionTitleClassName: be,
1294
- colors: R,
1295
- styles: ve
1334
+ hasMore: I,
1335
+ onLoadMore: me,
1336
+ onRunClick: he,
1337
+ runTimestampClassName: Te,
1338
+ sectionTitleClassName: V,
1339
+ colors: z,
1340
+ styles: ye
1296
1341
  });
1297
- return /* @__PURE__ */ J("div", {
1342
+ return /* @__PURE__ */ Y("div", {
1298
1343
  style: Ee,
1299
- className: b("flex h-full min-h-0 w-full flex-col overflow-hidden", $.container, F),
1344
+ className: b("flex h-full min-h-0 w-full flex-col overflow-hidden", $.container, _e),
1300
1345
  children: [
1301
- /* @__PURE__ */ J("div", {
1346
+ /* @__PURE__ */ Y("div", {
1302
1347
  className: b("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),
1303
- children: [/* @__PURE__ */ J("div", {
1348
+ children: [/* @__PURE__ */ Y("div", {
1304
1349
  className: "flex min-w-0 items-center gap-2",
1305
1350
  children: [
1306
- /* @__PURE__ */ q(de, {
1307
- icon: I === void 0 ? /* @__PURE__ */ q(ke, {
1308
- size: O.LG,
1351
+ /* @__PURE__ */ J(N, {
1352
+ icon: ve === void 0 ? /* @__PURE__ */ J(De, {
1353
+ size: k.LG,
1309
1354
  className: "rtl:scale-x-[-1]",
1310
1355
  "aria-hidden": !0,
1311
- stroke: k
1312
- }) : I,
1356
+ stroke: A
1357
+ }) : ve,
1313
1358
  "aria-label": e.backAriaLabel,
1314
1359
  onClick: t
1315
1360
  }),
1316
- /* @__PURE__ */ q("h1", {
1361
+ /* @__PURE__ */ J("h1", {
1317
1362
  className: b(Ft, $.desktopTitle),
1318
- children: /* @__PURE__ */ q(ce, {
1363
+ children: /* @__PURE__ */ J(se, {
1319
1364
  text: g,
1320
- className: z
1365
+ className: be
1321
1366
  })
1322
1367
  }),
1323
- l && /* @__PURE__ */ q("span", {
1324
- className: b("shrink-0", $.desktopBadge, B, $.subtitleText),
1368
+ l && /* @__PURE__ */ J("span", {
1369
+ className: b("shrink-0", $.desktopBadge, we, $.subtitleText),
1325
1370
  children: e.deletedStateLabel
1326
1371
  })
1327
1372
  ]
1328
- }), /* @__PURE__ */ J("div", {
1373
+ }), /* @__PURE__ */ Y("div", {
1329
1374
  className: b("flex min-w-0 flex-1 flex-wrap items-center justify-end gap-2 desktop:flex-none desktop:flex-nowrap", $.headerActions),
1330
1375
  children: [
1331
- !l && !u && d !== void 0 && /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(we, {
1376
+ !l && !u && d !== void 0 && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(Se, {
1332
1377
  id: "scheduled-task-active-switch",
1333
1378
  labelProps: { label: e.activeStatusLabel },
1334
1379
  isOn: d,
1335
1380
  disabled: f || p || c,
1336
1381
  onChange: (e) => h?.(e)
1337
- }), p && m && /* @__PURE__ */ q("span", {
1338
- className: b(B, $.subtitleText),
1382
+ }), p && m && /* @__PURE__ */ J("span", {
1383
+ className: b(we, $.subtitleText),
1339
1384
  children: m
1340
1385
  })] }),
1341
- !l && s && /* @__PURE__ */ q(j, {
1342
- variant: ie.Danger,
1386
+ !l && s && /* @__PURE__ */ J(M, {
1387
+ variant: ne.Danger,
1343
1388
  label: e.deleteButtonLabel,
1344
- iconBefore: /* @__PURE__ */ q(Fe, {
1345
- size: O.SM,
1389
+ iconBefore: /* @__PURE__ */ J(Pe, {
1390
+ size: k.SM,
1346
1391
  "aria-hidden": !0,
1347
- stroke: k
1392
+ stroke: A
1348
1393
  }),
1349
1394
  onClick: s,
1350
1395
  disabled: c,
1351
1396
  textClassName: $.actionLabel,
1352
1397
  className: b("min-h-11 shrink-0", $.actionButton)
1353
1398
  }),
1354
- !l && n && /* @__PURE__ */ q(_e, {
1399
+ !l && n && /* @__PURE__ */ J(L, {
1355
1400
  label: e.editButtonLabel,
1356
- iconBefore: /* @__PURE__ */ q(Me, {
1357
- size: O.SM,
1401
+ iconBefore: /* @__PURE__ */ J(je, {
1402
+ size: k.SM,
1358
1403
  "aria-hidden": !0,
1359
- stroke: k
1404
+ stroke: A
1360
1405
  }),
1361
1406
  onClick: n,
1362
1407
  disabled: c,
1363
1408
  textClassName: $.actionLabel,
1364
1409
  className: b("min-h-11 shrink-0", $.actionButton, $.roundActionButton)
1365
1410
  }),
1366
- !l && r && e.startNowButtonLabel && /* @__PURE__ */ J("div", {
1411
+ !l && r && e.startNowButtonLabel && /* @__PURE__ */ Y("div", {
1367
1412
  "aria-busy": i,
1368
- children: [U && /* @__PURE__ */ q("span", {
1369
- id: H,
1413
+ children: [Ae && /* @__PURE__ */ J("span", {
1414
+ id: ke,
1370
1415
  className: "sr-only",
1371
- children: U
1372
- }), /* @__PURE__ */ q(_e, {
1416
+ children: Ae
1417
+ }), /* @__PURE__ */ J(L, {
1373
1418
  label: i ? e.startingLabel ?? e.startNowButtonLabel : e.startNowButtonLabel,
1374
- iconBefore: /* @__PURE__ */ q(W, {
1375
- size: O.SM,
1419
+ iconBefore: /* @__PURE__ */ J(Ne, {
1420
+ size: k.SM,
1376
1421
  "aria-hidden": !0,
1377
- stroke: k
1422
+ stroke: A
1378
1423
  }),
1379
1424
  onClick: r,
1380
1425
  disabled: c || i || a || o,
1381
- "aria-describedby": U ? H : void 0,
1382
- tooltipProps: U ? { tooltip: U } : void 0,
1426
+ "aria-describedby": Ae ? ke : void 0,
1427
+ tooltipProps: Ae ? { tooltip: Ae } : void 0,
1383
1428
  textClassName: $.actionLabel,
1384
1429
  className: b("min-h-11 shrink-0", $.actionButton, $.roundActionButton)
1385
1430
  })]
@@ -1387,101 +1432,101 @@ var qe = "1180px", Je = {
1387
1432
  ]
1388
1433
  })]
1389
1434
  }),
1390
- /* @__PURE__ */ J("div", {
1435
+ /* @__PURE__ */ Y("div", {
1391
1436
  className: b("min-w-0 items-center gap-2 px-4 py-3", $.mobileTitleRow),
1392
- children: [/* @__PURE__ */ q("h1", {
1437
+ children: [/* @__PURE__ */ J("h1", {
1393
1438
  className: Ft,
1394
- children: /* @__PURE__ */ q(ce, {
1439
+ children: /* @__PURE__ */ J(se, {
1395
1440
  text: g,
1396
- className: z
1441
+ className: be
1397
1442
  })
1398
- }), l && /* @__PURE__ */ q("span", {
1399
- className: b("shrink-0", B, $.subtitleText),
1443
+ }), l && /* @__PURE__ */ J("span", {
1444
+ className: b("shrink-0", we, $.subtitleText),
1400
1445
  children: e.deletedStateLabel
1401
1446
  })]
1402
1447
  }),
1403
- e.activeStatusAnnouncement != null && /* @__PURE__ */ q(M, {
1448
+ e.activeStatusAnnouncement != null && /* @__PURE__ */ J(P, {
1404
1449
  visuallyHidden: !0,
1405
- as: N.Span,
1450
+ as: F.Span,
1406
1451
  children: e.activeStatusAnnouncement
1407
1452
  }),
1408
- e.startStatusAnnouncement != null && /* @__PURE__ */ q(M, {
1453
+ e.startStatusAnnouncement != null && /* @__PURE__ */ J(P, {
1409
1454
  visuallyHidden: !0,
1410
- as: N.Span,
1455
+ as: F.Span,
1411
1456
  children: e.startStatusAnnouncement
1412
1457
  }),
1413
- _ && /* @__PURE__ */ q("div", {
1458
+ _ && /* @__PURE__ */ J("div", {
1414
1459
  className: "flex flex-1 items-center justify-center",
1415
- children: /* @__PURE__ */ q(Ce, {})
1460
+ children: /* @__PURE__ */ J(xe, {})
1416
1461
  }),
1417
- !_ && v && /* @__PURE__ */ J("div", {
1462
+ !_ && v && /* @__PURE__ */ Y("div", {
1418
1463
  className: "flex flex-1 flex-col items-center justify-center gap-3",
1419
- children: [/* @__PURE__ */ q("p", {
1420
- className: b(B, $.subtitleText),
1464
+ children: [/* @__PURE__ */ J("p", {
1465
+ className: b(we, $.subtitleText),
1421
1466
  children: e.errorLabel
1422
- }), /* @__PURE__ */ q(j, {
1467
+ }), /* @__PURE__ */ J(M, {
1423
1468
  label: e.retryLabel,
1424
1469
  onClick: x
1425
1470
  })]
1426
1471
  }),
1427
- !_ && !v && (De ? /* @__PURE__ */ J("div", {
1472
+ !_ && !v && (Oe ? /* @__PURE__ */ Y("div", {
1428
1473
  className: "flex min-h-0 flex-1 flex-col overflow-y-auto",
1429
- children: [/* @__PURE__ */ q("div", {
1474
+ children: [/* @__PURE__ */ J("div", {
1430
1475
  className: b("sticky top-0 z-10", $.stickyTabs),
1431
- children: /* @__PURE__ */ q(Te, {
1476
+ children: /* @__PURE__ */ J(Ce, {
1432
1477
  ariaLabel: e.tabsAriaLabel ?? "Scheduled task sections",
1433
1478
  className: "px-4",
1434
- tabs: Ae,
1435
- activeTabId: Oe,
1436
- onTabChange: V
1479
+ tabs: Me,
1480
+ activeTabId: U,
1481
+ onTabChange: W
1437
1482
  })
1438
- }), /* @__PURE__ */ q("div", {
1483
+ }), /* @__PURE__ */ J("div", {
1439
1484
  role: "tabpanel",
1440
- "aria-label": je,
1485
+ "aria-label": G,
1441
1486
  className: "flex flex-1 flex-col gap-5 px-4 py-6",
1442
- children: Oe === Ct.Configuration ? Pe : Oe === Ct.History ? Ie(wt.Flow) : Ne
1487
+ children: U === Ct.Configuration ? Ie : U === Ct.History ? Le(wt.Flow) : Fe
1443
1488
  })]
1444
- }) : /* @__PURE__ */ J("div", {
1489
+ }) : /* @__PURE__ */ Y("div", {
1445
1490
  style: {
1446
1491
  flexDirection: "row",
1447
- "--st-details-width": L?.detailsWidth,
1448
- "--st-history-width": L?.historyWidth,
1449
- "--st-history-max-height": L?.historyMaxHeight,
1450
- "--st-configuration-min-width": L?.configurationMinWidth
1492
+ "--st-details-width": R?.detailsWidth,
1493
+ "--st-history-width": R?.historyWidth,
1494
+ "--st-history-max-height": R?.historyMaxHeight,
1495
+ "--st-configuration-min-width": R?.configurationMinWidth
1451
1496
  },
1452
1497
  className: "flex min-h-0 flex-1 overflow-y-auto desktop:overflow-hidden",
1453
1498
  children: [
1454
- /* @__PURE__ */ J("div", {
1499
+ /* @__PURE__ */ Y("div", {
1455
1500
  role: "group",
1456
1501
  "aria-label": e.detailsTitle,
1457
1502
  style: {
1458
- flex: `0 1 ${L?.detailsWidth ?? "360px"}`,
1503
+ flex: `0 1 ${R?.detailsWidth ?? "360px"}`,
1459
1504
  maxWidth: "100%"
1460
1505
  },
1461
1506
  className: b("flex min-h-0 w-full min-w-0 flex-col gap-5 overflow-y-auto border-e px-8 py-6", $.detailsColumn),
1462
- children: [/* @__PURE__ */ q("h2", {
1463
- className: be,
1507
+ children: [/* @__PURE__ */ J("h2", {
1508
+ className: V,
1464
1509
  children: e.detailsTitle
1465
- }), Ne]
1510
+ }), Fe]
1466
1511
  }),
1467
- /* @__PURE__ */ J("div", {
1512
+ /* @__PURE__ */ Y("div", {
1468
1513
  style: {
1469
- flex: `1 1 ${L?.configurationMinWidth ?? "320px"}`,
1514
+ flex: `1 1 ${R?.configurationMinWidth ?? "320px"}`,
1470
1515
  minWidth: 0
1471
1516
  },
1472
1517
  className: "flex min-h-0 w-full min-w-0 flex-col gap-5 overflow-y-auto px-8 py-6",
1473
- children: [/* @__PURE__ */ q("h2", {
1474
- className: be,
1518
+ children: [/* @__PURE__ */ J("h2", {
1519
+ className: V,
1475
1520
  children: e.configurationTitle
1476
- }), Pe]
1521
+ }), Ie]
1477
1522
  }),
1478
- /* @__PURE__ */ q("div", {
1523
+ /* @__PURE__ */ J("div", {
1479
1524
  style: {
1480
- flex: `0 1 calc(${L?.historyWidth ?? "360px"} + 48px)`,
1525
+ flex: `0 1 calc(${R?.historyWidth ?? "360px"} + 48px)`,
1481
1526
  minWidth: 0
1482
1527
  },
1483
1528
  className: "flex min-h-0 w-full items-start justify-center overflow-y-auto p-6",
1484
- children: Ie(wt.Card)
1529
+ children: Le(wt.Card)
1485
1530
  })
1486
1531
  ]
1487
1532
  }))
@@ -1502,98 +1547,98 @@ var qe = "1180px", Je = {
1502
1547
  link: "break-words [overflow-wrap:anywhere]",
1503
1548
  tableWrapper: "my-4",
1504
1549
  mathBlock: "my-4"
1505
- }, zt = ({ modelLabel: e, skillLabel: t, skillDisplayNames: n, instructionsLabel: r, modelDisplayName: i, instructionsMarkdown: a, renderInstructions: o, instructionsClassNames: s, markdownLabels: c, styles: l }) => {
1506
- let u = b(l?.typography?.fieldLabelClassName ?? "dial-tiny-text", Lt.fieldLabel), d = l?.typography?.fieldValueClassName ?? "dial-small-text", f = l?.typography?.instructionsHeadingClassName ?? "dial-small-semi-text", p = l?.typography?.instructionsTextClassName ?? "dial-small-text", m = He(() => {
1550
+ }, zt = ({ modelLabel: e, renderModelName: t, skillLabel: n, skillDisplayNames: r, renderSkillName: i, instructionsLabel: a, modelDisplayName: o, instructionsMarkdown: s, renderInstructions: c, instructionsClassNames: l, markdownLabels: u, styles: d }) => {
1551
+ let f = b(d?.typography?.fieldLabelClassName ?? "dial-tiny-text", Lt.fieldLabel), p = d?.typography?.fieldValueClassName ?? "dial-small-text", m = d?.typography?.instructionsHeadingClassName ?? "dial-small-semi-text", g = d?.typography?.instructionsTextClassName ?? "dial-small-text", _ = Ve(() => {
1507
1552
  let e = Rt;
1508
1553
  return {
1509
1554
  ...e,
1510
- h1: b(f, e.h1),
1511
- h2: b(f, e.h2),
1512
- h3: b(f, e.h3),
1513
- h4: b(f, e.h4),
1514
- h5: b(f, e.h5),
1515
- h6: b(f, e.h6),
1516
- p: b(p, e.p),
1517
- ul: b(p, e.ul),
1518
- ol: b(p, e.ol),
1519
- ...s
1555
+ h1: b(m, e.h1),
1556
+ h2: b(m, e.h2),
1557
+ h3: b(m, e.h3),
1558
+ h4: b(m, e.h4),
1559
+ h5: b(m, e.h5),
1560
+ h6: b(m, e.h6),
1561
+ p: b(g, e.p),
1562
+ ul: b(g, e.ul),
1563
+ ol: b(g, e.ol),
1564
+ ...l
1520
1565
  };
1521
1566
  }, [
1522
- f,
1523
- p,
1524
- s
1525
- ]), g = y({ "--stds-field-label": l?.colors?.fieldLabel });
1526
- return /* @__PURE__ */ J("div", {
1567
+ m,
1568
+ g,
1569
+ l
1570
+ ]), v = y({ "--stds-field-label": d?.colors?.fieldLabel });
1571
+ return /* @__PURE__ */ Y("div", {
1527
1572
  className: "flex flex-col gap-3",
1528
- style: g,
1573
+ style: v,
1529
1574
  children: [
1530
- i && /* @__PURE__ */ J("div", {
1575
+ o && /* @__PURE__ */ Y("div", {
1531
1576
  className: "flex flex-col gap-2",
1532
- children: [/* @__PURE__ */ q("span", {
1533
- className: u,
1577
+ children: [/* @__PURE__ */ J("span", {
1578
+ className: f,
1534
1579
  children: e
1535
- }), /* @__PURE__ */ q("p", {
1536
- className: d,
1537
- children: i
1580
+ }), /* @__PURE__ */ J("p", {
1581
+ className: p,
1582
+ children: t ? t(o) : o
1538
1583
  })]
1539
1584
  }),
1540
- !!n?.length && /* @__PURE__ */ J("div", {
1585
+ !!r?.length && /* @__PURE__ */ Y("div", {
1541
1586
  className: "flex min-w-0 flex-col gap-2",
1542
- children: [/* @__PURE__ */ q("span", {
1543
- className: u,
1544
- children: t
1545
- }), /* @__PURE__ */ q("p", {
1546
- className: b(d, "wrap-anywhere whitespace-normal"),
1547
- children: n?.map((e, t) => /* @__PURE__ */ q("span", {
1587
+ children: [/* @__PURE__ */ J("span", {
1588
+ className: f,
1589
+ children: n
1590
+ }), /* @__PURE__ */ J("p", {
1591
+ className: b(p, "wrap-anywhere whitespace-normal"),
1592
+ children: r?.map((e, t) => /* @__PURE__ */ J("span", {
1548
1593
  className: "block",
1549
- children: e
1594
+ children: i ? i(e, t) : e
1550
1595
  }, `${t}:${e}`))
1551
1596
  })]
1552
1597
  }),
1553
- a && /* @__PURE__ */ J("div", {
1598
+ s && /* @__PURE__ */ Y("div", {
1554
1599
  className: "flex flex-col gap-2",
1555
- children: [/* @__PURE__ */ q("span", {
1556
- className: u,
1557
- children: r
1558
- }), ((e) => o ? o(e) : /* @__PURE__ */ q(h, {
1600
+ children: [/* @__PURE__ */ J("span", {
1601
+ className: f,
1602
+ children: a
1603
+ }), ((e) => c ? c(e) : /* @__PURE__ */ J(h, {
1559
1604
  content: e,
1560
- classNames: m,
1561
- ...c
1562
- }))(a)]
1605
+ classNames: _,
1606
+ ...u
1607
+ }))(s)]
1563
1608
  })
1564
1609
  ]
1565
1610
  });
1566
- }, Bt = ({ className: e, children: t }) => /* @__PURE__ */ q("span", {
1611
+ }, Bt = ({ className: e, children: t }) => /* @__PURE__ */ J("span", {
1567
1612
  className: b(e, "block truncate py-1"),
1568
1613
  children: t
1569
1614
  }), Vt = { unavailableText: "_unavailableText_1ifqz_1" }, Ht = ({ scheduleId: e, items: t, isLoading: n = !1, isLoadingMore: r = !1, skeletonCount: i = 6, error: a, onRetry: o, isUnavailable: s = !1, hasMore: c = !1, onLoadMore: l, currentRunId: u, onRunClick: d, labels: f, titleClassName: p = "dial-tiny-semi-text", contentClassName: m = "ps-3", unavailableTextClassName: h = "dial-body-text", colors: g }) => {
1570
- let [_, v] = We(!0);
1571
- Be(() => {
1615
+ let [_, v] = Ue(!0);
1616
+ ze(() => {
1572
1617
  v(!0);
1573
1618
  }, [e]);
1574
- let x = c && !n && l && f.showMoreLabel ? /* @__PURE__ */ q("li", {
1619
+ let x = c && !n && l && f.showMoreLabel ? /* @__PURE__ */ J("li", {
1575
1620
  className: "pt-2",
1576
- children: /* @__PURE__ */ q(j, {
1577
- variant: ie.Primary,
1621
+ children: /* @__PURE__ */ J(M, {
1622
+ variant: ne.Primary,
1578
1623
  label: f.showMoreLabel,
1579
1624
  onClick: l,
1580
1625
  disabled: r
1581
1626
  })
1582
1627
  }) : void 0;
1583
- return /* @__PURE__ */ J(T, {
1584
- title: /* @__PURE__ */ q(Bt, {
1628
+ return /* @__PURE__ */ Y(E, {
1629
+ title: /* @__PURE__ */ J(Bt, {
1585
1630
  className: p,
1586
1631
  children: f.title
1587
1632
  }),
1588
1633
  expanded: _,
1589
1634
  onToggle: v,
1590
1635
  contentClassName: m,
1591
- children: [/* @__PURE__ */ q(M, {
1592
- as: N.P,
1636
+ children: [/* @__PURE__ */ J(P, {
1637
+ as: F.P,
1593
1638
  className: b(h, Vt.unavailableText),
1594
1639
  style: y({ "--stch-unavailable-text": g?.unavailableText }),
1595
1640
  children: s && f.unavailableLabel
1596
- }), !s && /* @__PURE__ */ q(Mt, {
1641
+ }), !s && /* @__PURE__ */ J(Mt, {
1597
1642
  items: t,
1598
1643
  isLoading: n,
1599
1644
  isLoadingMore: r,
@@ -1610,89 +1655,92 @@ var qe = "1180px", Je = {
1610
1655
  retryLabel: f.retryLabel,
1611
1656
  runStatusLabels: f.runStatusLabels,
1612
1657
  currentRunLabel: f.currentRunLabel,
1613
- unreadIndicatorLabel: f.unreadIndicatorLabel
1658
+ unreadIndicatorLabel: f.unreadIndicatorLabel,
1659
+ openConversationLabel: f.openConversationLabel
1614
1660
  }
1615
1661
  })]
1616
1662
  });
1617
1663
  }, Ut = { unavailableText: "_unavailableText_j7lij_1" }, Wt = /* @__PURE__ */ function(e) {
1618
1664
  return e.Ready = "ready", e.Error = "error", e.Unavailable = "unavailable", e;
1619
- }({}), Gt = ({ scheduleId: e, state: t, onRetry: n, modelDisplayName: r, skillDisplayNames: i, instructionsMarkdown: a, renderInstructions: o, instructionsClassNames: s, markdownLabels: c, summaryStyles: l, labels: u, titleClassName: d = "dial-tiny-semi-text", unavailableTextClassName: f = "dial-body-text", colors: p }) => {
1620
- let [m, h] = We(!1);
1621
- Be(() => {
1622
- h(!1);
1665
+ }({}), Gt = ({ scheduleId: e, state: t, onRetry: n, modelDisplayName: r, renderModelName: i, skillDisplayNames: a, renderSkillName: o, instructionsMarkdown: s, renderInstructions: c, instructionsClassNames: l, markdownLabels: u, summaryStyles: d, labels: f, titleClassName: p = "dial-tiny-semi-text", unavailableTextClassName: m = "dial-body-text", colors: h }) => {
1666
+ let [g, _] = Ue(!1);
1667
+ ze(() => {
1668
+ _(!1);
1623
1669
  }, [e]);
1624
- let g = t === "error" || t === "unavailable", _ = t === "error" && n != null, v = /* @__PURE__ */ J(K, { children: [
1625
- /* @__PURE__ */ q(M, {
1626
- as: N.P,
1627
- className: b(f, Ut.unavailableText),
1628
- style: y({ "--stcd-unavailable-text": p?.unavailableText }),
1629
- children: g && u.unavailableLabel
1670
+ let v = t === "error" || t === "unavailable", x = t === "error" && n != null, S = /* @__PURE__ */ Y(q, { children: [
1671
+ /* @__PURE__ */ J(P, {
1672
+ as: F.P,
1673
+ className: b(m, Ut.unavailableText),
1674
+ style: y({ "--stcd-unavailable-text": h?.unavailableText }),
1675
+ children: v && f.unavailableLabel
1630
1676
  }),
1631
- _ && /* @__PURE__ */ q("div", {
1677
+ x && /* @__PURE__ */ J("div", {
1632
1678
  className: "mt-2",
1633
- children: /* @__PURE__ */ q(j, {
1634
- label: u.retryLabel,
1679
+ children: /* @__PURE__ */ J(M, {
1680
+ label: f.retryLabel,
1635
1681
  onClick: n
1636
1682
  })
1637
1683
  }),
1638
- !g && /* @__PURE__ */ q(zt, {
1639
- modelLabel: u.modelLabel,
1640
- instructionsLabel: u.instructionsLabel,
1641
- skillLabel: u.skillLabel,
1642
- skillDisplayNames: i,
1684
+ !v && /* @__PURE__ */ J(zt, {
1685
+ modelLabel: f.modelLabel,
1686
+ instructionsLabel: f.instructionsLabel,
1687
+ skillLabel: f.skillLabel,
1688
+ skillDisplayNames: a,
1689
+ renderSkillName: o,
1643
1690
  modelDisplayName: r,
1644
- instructionsMarkdown: a,
1645
- renderInstructions: o,
1646
- instructionsClassNames: s,
1647
- markdownLabels: c,
1648
- styles: l
1691
+ renderModelName: i,
1692
+ instructionsMarkdown: s,
1693
+ renderInstructions: c,
1694
+ instructionsClassNames: l,
1695
+ markdownLabels: u,
1696
+ styles: d
1649
1697
  })
1650
1698
  ] });
1651
- return /* @__PURE__ */ q(T, {
1652
- title: /* @__PURE__ */ q(Bt, {
1653
- className: d,
1654
- children: u.title
1699
+ return /* @__PURE__ */ J(E, {
1700
+ title: /* @__PURE__ */ J(Bt, {
1701
+ className: p,
1702
+ children: f.title
1655
1703
  }),
1656
- expanded: m,
1657
- onToggle: h,
1658
- children: v
1704
+ expanded: g,
1705
+ onToggle: _,
1706
+ children: S
1659
1707
  });
1660
- }, Kt = (e, t, n) => e ? n?.loggingIn ?? "Logging in…" : t == null ? n?.logIn ?? "Log in" : n?.retry ?? "Retry", qt = Re(({ isVisible: e, isLoggingIn: t = !1, retryMessage: n, liveAnnouncement: r = "", labels: i, onLogIn: a }) => /* @__PURE__ */ J(K, { children: [e && /* @__PURE__ */ q(Oe, {
1661
- surface: L.Neutral,
1708
+ }, Kt = (e, t, n) => e ? n?.loggingIn ?? "Logging in…" : t == null ? n?.logIn ?? "Log in" : n?.retry ?? "Retry", qt = Le(({ isVisible: e, isLoggingIn: t = !1, retryMessage: n, liveAnnouncement: r = "", labels: i, onLogIn: a }) => /* @__PURE__ */ Y(q, { children: [e && /* @__PURE__ */ J(Te, {
1709
+ surface: _e.Neutral,
1662
1710
  title: i?.title ?? "Log in required.",
1663
1711
  message: i?.body ?? "Scheduled tasks need authorization to run offline.",
1664
- action: a && /* @__PURE__ */ q(he, {
1712
+ action: a && /* @__PURE__ */ J(pe, {
1665
1713
  label: Kt(t, n, i),
1666
1714
  disabled: t,
1667
- iconAfter: /* @__PURE__ */ q(H, {
1668
- size: O.SM,
1669
- stroke: k,
1715
+ iconAfter: /* @__PURE__ */ J(Oe, {
1716
+ size: k.SM,
1717
+ stroke: A,
1670
1718
  "aria-hidden": !0,
1671
1719
  className: "rtl:scale-x-[-1]"
1672
1720
  }),
1673
1721
  onClick: a,
1674
1722
  className: "min-h-11 min-w-11"
1675
1723
  })
1676
- }), /* @__PURE__ */ q(M, {
1724
+ }), /* @__PURE__ */ J(P, {
1677
1725
  visuallyHidden: !0,
1678
- as: N.Span,
1726
+ as: F.Span,
1679
1727
  children: n ?? r
1680
- })] })), Jt = Re(({ labels: e, titleClassName: t = "dial-small-paragraph-semi-text", bodyClassName: n = "dial-small-paragraph-text" }) => /* @__PURE__ */ q(I, {
1728
+ })] })), Jt = Le(({ labels: e, titleClassName: t = "dial-small-paragraph-semi-text", bodyClassName: n = "dial-small-paragraph-text" }) => /* @__PURE__ */ J(ge, {
1681
1729
  variant: R.Error,
1682
1730
  type: ve.SectionMessage,
1683
- message: /* @__PURE__ */ J("span", {
1731
+ message: /* @__PURE__ */ Y("span", {
1684
1732
  className: "flex min-w-0 flex-wrap items-baseline gap-x-1",
1685
- children: [/* @__PURE__ */ q("span", {
1733
+ children: [/* @__PURE__ */ J("span", {
1686
1734
  className: b("min-w-0 wrap-break-word", t),
1687
1735
  children: e?.title ?? "Limited access."
1688
- }), /* @__PURE__ */ q("span", {
1736
+ }), /* @__PURE__ */ J("span", {
1689
1737
  className: b("min-w-0 wrap-break-word", n),
1690
1738
  children: e?.body ?? "You can't create or edit tasks. Contact your administrator for more details."
1691
1739
  })]
1692
1740
  })
1693
- })), Yt = ({ taskName: e, icon: t, typeLabel: n, body: r, pendingLabel: i, isDeleting: a = !1, styles: o, ...s }) => /* @__PURE__ */ q(d, {
1741
+ })), Yt = ({ taskName: e, icon: t, typeLabel: n, body: r, pendingLabel: i, isDeleting: a = !1, styles: o, ...s }) => /* @__PURE__ */ J(d, {
1694
1742
  ...s,
1695
- variant: oe.Danger,
1743
+ variant: ae.Danger,
1696
1744
  popupClassName: o?.popupClassName,
1697
1745
  titleClassName: o?.titleClassName ?? "dial-body-semi-text",
1698
1746
  messageClassName: o?.messageClassName ?? "dial-body-paragraph-text",
@@ -1701,12 +1749,12 @@ var qe = "1180px", Je = {
1701
1749
  message: r,
1702
1750
  isLoading: a,
1703
1751
  loadingStatusLabel: i,
1704
- identity: /* @__PURE__ */ q(_, {
1752
+ identity: /* @__PURE__ */ J(_, {
1705
1753
  styles: { colors: {
1706
1754
  background: o?.colors?.summaryBackground ?? "var(--bg-error, #f3d6d8)",
1707
1755
  border: o?.colors?.summaryBorder ?? "var(--stroke-error-alpha, #ae2f2f73)"
1708
1756
  } },
1709
- children: /* @__PURE__ */ q(f, {
1757
+ children: /* @__PURE__ */ J(f, {
1710
1758
  icon: t,
1711
1759
  typeLabel: n,
1712
1760
  name: e,
@@ -1715,4 +1763,4 @@ var qe = "1180px", Je = {
1715
1763
  })
1716
1764
  });
1717
1765
  //#endregion
1718
- export { t as DESCRIPTION_MAX_LENGTH, Je as SCHEDULED_TASKS_CLASS, qe as SCHEDULED_TASKS_GRID_DEFAULT_MAX_WIDTH, r as SCHEDULED_TASK_CREATE_DEFAULT_VALUES, et as ScheduledTaskCard, at as ScheduledTaskCardGrid, it as ScheduledTaskCardSkeleton, Gt as ScheduledTaskConversationDetailsSection, Wt as ScheduledTaskConversationDetailsState, Ht as ScheduledTaskConversationHistorySection, St as ScheduledTaskCreateForm, Yt as ScheduledTaskDeleteConfirmation, It as ScheduledTaskDetailView, zt as ScheduledTaskDetailsSummary, Pt as ScheduledTaskHistorySection, Ye as ScheduledTaskPresentationStatus, l as ScheduledTaskRepeat, Mt as ScheduledTaskRunHistoryList, At as ScheduledTaskRunStatus, Y as ScheduledTaskStatus, lt as ScheduledTasks, Jt as ScheduledTasksLimitedAccessBanner, qt as ScheduledTasksLoginBanner, ut as ScheduledTasksSortKey, c as TIME_OF_DAY_PATTERN, i as calendarValueToDateValue, n as calendarValueToRunAt, e as dateValueToCalendarValue, Xe as getScheduledTaskStatus, pt as hasScheduledTaskFormChanges, s as runAtToCalendarValue };
1766
+ export { t as DESCRIPTION_MAX_LENGTH, qe as SCHEDULED_TASKS_CLASS, Ke as SCHEDULED_TASKS_GRID_DEFAULT_MAX_WIDTH, r as SCHEDULED_TASK_CREATE_DEFAULT_VALUES, et as ScheduledTaskCard, at as ScheduledTaskCardGrid, it as ScheduledTaskCardSkeleton, Gt as ScheduledTaskConversationDetailsSection, Wt as ScheduledTaskConversationDetailsState, Ht as ScheduledTaskConversationHistorySection, St as ScheduledTaskCreateForm, Yt as ScheduledTaskDeleteConfirmation, It as ScheduledTaskDetailView, zt as ScheduledTaskDetailsSummary, Pt as ScheduledTaskHistorySection, Je as ScheduledTaskPresentationStatus, l as ScheduledTaskRepeat, Mt as ScheduledTaskRunHistoryList, At as ScheduledTaskRunStatus, X as ScheduledTaskStatus, lt as ScheduledTasks, Jt as ScheduledTasksLimitedAccessBanner, qt as ScheduledTasksLoginBanner, ut as ScheduledTasksSortKey, c as TIME_OF_DAY_PATTERN, i as calendarValueToDateValue, n as calendarValueToRunAt, e as dateValueToCalendarValue, Ye as getScheduledTaskStatus, pt as hasScheduledTaskFormChanges, s as runAtToCalendarValue };