@epam/ai-dial-scheduled-tasks 1.3.0-dev.141 → 1.3.0-dev.142

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