@epam/ai-dial-scheduled-tasks 1.2.0-dev.273 → 1.2.0-dev.276

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