@epam/ai-dial-scheduled-tasks 1.2.0-dev.101 → 1.2.0-dev.106

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