@epam/ai-dial-scheduled-tasks 1.3.0-dev.311 → 1.3.0-dev.317

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