@epam/ai-dial-scheduled-tasks 1.3.0-dev.45 → 1.3.0-dev.46

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