@epam/ai-dial-scheduled-tasks 1.2.0-dev.12 → 1.2.0-dev.123

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