@epam/ai-dial-scheduled-tasks 1.2.0-dev.152 → 1.2.0-dev.154

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