@epam/ai-dial-scheduled-tasks 1.3.0-dev.288 → 1.3.0-dev.289

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