@epam/ai-dial-scheduled-tasks 1.2.0-dev.1 → 1.2.0-dev.102

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