@epam/ai-dial-scheduled-tasks 1.2.0-dev.11 → 1.2.0-dev.111

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