@epam/ai-dial-scheduled-tasks 1.3.0-dev.326 → 1.3.0-dev.331

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