@epam/ai-dial-scheduled-tasks 1.3.0-dev.28 → 1.3.0-dev.282

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 (66) hide show
  1. package/{calendar-value-B41Uk26Z.js → calendar-value-BDmsi-IR.js} +1 -1
  2. package/components/ScheduledTaskBoundaryField/ScheduledTaskBoundaryField.d.ts +24 -0
  3. package/components/ScheduledTaskBoundaryField/ScheduledTaskBoundaryField.d.ts.map +1 -0
  4. package/components/ScheduledTaskCard/ScheduledTaskCard.d.ts +3 -1
  5. package/components/ScheduledTaskCard/ScheduledTaskCard.d.ts.map +1 -1
  6. package/components/ScheduledTaskCardGrid/ScheduledTaskCardGrid.d.ts.map +1 -1
  7. package/components/ScheduledTaskConfigurationSection/ScheduledTaskConfigurationSection.d.ts.map +1 -1
  8. package/components/ScheduledTaskConversationDetailsSection/ScheduledTaskConversationDetailsSection.d.ts +78 -0
  9. package/components/ScheduledTaskConversationDetailsSection/ScheduledTaskConversationDetailsSection.d.ts.map +1 -0
  10. package/components/ScheduledTaskConversationHistorySection/ScheduledTaskConversationHistorySection.d.ts +78 -0
  11. package/components/ScheduledTaskConversationHistorySection/ScheduledTaskConversationHistorySection.d.ts.map +1 -0
  12. package/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.d.ts.map +1 -1
  13. package/components/ScheduledTaskDeleteConfirmation/ScheduledTaskDeleteConfirmation.d.ts +5 -1
  14. package/components/ScheduledTaskDeleteConfirmation/ScheduledTaskDeleteConfirmation.d.ts.map +1 -1
  15. package/components/ScheduledTaskDetailView/ScheduledTaskDetailView.d.ts.map +1 -1
  16. package/components/ScheduledTaskDetailsSection/ScheduledTaskDetailsSection.d.ts.map +1 -1
  17. package/components/ScheduledTaskDetailsSummary/ScheduledTaskDetailsSummary.d.ts.map +1 -1
  18. package/components/ScheduledTaskHistorySection/ScheduledTaskHistorySection.d.ts.map +1 -1
  19. package/components/ScheduledTaskRunAtField/ScheduledTaskRunAtField.d.ts +6 -2
  20. package/components/ScheduledTaskRunAtField/ScheduledTaskRunAtField.d.ts.map +1 -1
  21. package/components/ScheduledTaskRunHistoryList/ScheduledTaskRunHistoryList.d.ts.map +1 -1
  22. package/components/ScheduledTasks/ScheduledTasks.d.ts.map +1 -1
  23. package/components/ScheduledTasksLimitedAccessBanner/ScheduledTasksLimitedAccessBanner.d.ts +20 -0
  24. package/components/ScheduledTasksLimitedAccessBanner/ScheduledTasksLimitedAccessBanner.d.ts.map +1 -0
  25. package/components/ScheduledTasksLoginBanner/ScheduledTasksLoginBanner.d.ts +32 -0
  26. package/components/ScheduledTasksLoginBanner/ScheduledTasksLoginBanner.d.ts.map +1 -0
  27. package/components/SectionAccordionTitle/SectionAccordionTitle.d.ts +15 -0
  28. package/components/SectionAccordionTitle/SectionAccordionTitle.d.ts.map +1 -0
  29. package/index.css +3 -2
  30. package/index.d.ts +12 -2
  31. package/index.d.ts.map +1 -1
  32. package/index.js +1103 -816
  33. package/models/scheduled-task-card-grid-props.d.ts +3 -1
  34. package/models/scheduled-task-card-grid-props.d.ts.map +1 -1
  35. package/models/scheduled-task-card-props.d.ts +1 -3
  36. package/models/scheduled-task-card-props.d.ts.map +1 -1
  37. package/models/scheduled-task-create-form-props.d.ts +29 -5
  38. package/models/scheduled-task-create-form-props.d.ts.map +1 -1
  39. package/models/scheduled-task-detail-view-props.d.ts +4 -0
  40. package/models/scheduled-task-detail-view-props.d.ts.map +1 -1
  41. package/models/scheduled-task-details-section-props.d.ts +1 -1
  42. package/models/scheduled-task-details-section-props.d.ts.map +1 -1
  43. package/models/scheduled-task-details-summary-props.d.ts +15 -1
  44. package/models/scheduled-task-details-summary-props.d.ts.map +1 -1
  45. package/models/scheduled-task-history-section-props.d.ts +6 -2
  46. package/models/scheduled-task-history-section-props.d.ts.map +1 -1
  47. package/models/scheduled-task-run-history-list-props.d.ts +9 -3
  48. package/models/scheduled-task-run-history-list-props.d.ts.map +1 -1
  49. package/models/scheduled-task-run-item.d.ts +5 -1
  50. package/models/scheduled-task-run-item.d.ts.map +1 -1
  51. package/models/scheduled-tasks-props.d.ts +6 -2
  52. package/models/scheduled-tasks-props.d.ts.map +1 -1
  53. package/package.json +6 -6
  54. package/types/scheduled-task-schedule.d.ts +3 -1
  55. package/types/scheduled-task-schedule.d.ts.map +1 -1
  56. package/utils/aria.d.ts +3 -0
  57. package/utils/aria.d.ts.map +1 -0
  58. package/utils/calendar-value.d.ts +3 -1
  59. package/utils/calendar-value.d.ts.map +1 -1
  60. package/utils/window-boundary.d.ts +4 -0
  61. package/utils/window-boundary.d.ts.map +1 -0
  62. package/validation/index.d.ts +1 -1
  63. package/validation/index.d.ts.map +1 -1
  64. package/validation/scheduled-task-validation.d.ts +7 -4
  65. package/validation/scheduled-task-validation.d.ts.map +1 -1
  66. package/validation.js +8 -8
package/index.js CHANGED
@@ -1,89 +1,89 @@
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 { ConfirmationDialog as l, ConfirmationIdentityRow as u, MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as d, MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as f, MDMessageViewer as p, PanelEmptyState as m, ResourceSummary as h, TextRefinementField as g, buildCssVars as _, mergeClasses as v, useAvailableHeightCap as y, useIsMobile as b, useTextRefinement as x, useUnsavedChangesGuard as ee } from "@epam/ai-dial-chat-shared";
3
- import { ButtonAppearance as te, ButtonDropdown as S, ButtonVariant as ne, Calendar as C, CalendarMode as w, CardShell as T, ConfirmationPopupVariant as E, DIAL_ICON_SIZE as D, DIAL_KIT_ICON_STROKE as O, ElementSize as re, FolderPath as ie, GhostButton as k, GhostIconButton as ae, Highlight as oe, Input as se, Label as ce, MenuItemMark as le, NeutralButton as ue, NumberInput as de, PrimaryButton as fe, Search as A, Select as pe, Skeleton as j, SkeletonVariant as M, Spinner as me, Switch as he, Tabs as ge, Textarea as _e } from "@epam/ai-dial-ui-kit";
4
- import { IconAlertTriangle as ve, IconArrowNarrowLeft as ye, IconArrowsSort as N, IconCheck as be, IconCircleCheck as xe, IconCircleX as P, IconClipboardX as Se, IconClockHour3 as F, IconPencilMinus as Ce, IconPlayerPause as I, IconPlayerPlay as L, IconPlus as R, IconTrashX as we } from "@tabler/icons-react";
5
- import { Suspense as Te, lazy as Ee, useCallback as z, useEffect as De, useId as Oe, useLayoutEffect as ke, useMemo as Ae, useRef as B, useState as je } from "react";
6
- import { Fragment as Me, jsx as V, jsxs as H } from "react/jsx-runtime";
7
- import { BuilderFormContainer as Ne } from "@epam/ai-dial-builder-form";
8
- import { LazyMarkdownEditor as U } from "@epam/ai-dial-ui-kit/editors";
9
- //#region src/constants/public-class-names.ts
10
- var W = {
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-BDmsi-IR.js";
2
+ import { COMPACT_MARKDOWN_CLASS_NAMES as l, ConfirmationDialog as u, ConfirmationIdentityRow as d, MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as f, MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as p, MDMessageViewer as m, PanelEmptyState as h, ResourceSummary as g, TextRefinementField as _, buildCssVars as v, mergeClasses as y, useAvailableHeightCap as b, useControlErrorAssociation as x, useIsMobile as ee, useTextRefinement as te, useUnsavedChangesGuard as S } from "@epam/ai-dial-chat-shared";
3
+ import { Accordion as C, Button as w, ButtonAppearance as ne, ButtonDropdown as re, ButtonVariant as ie, Calendar as ae, CalendarMode as oe, CardShell as T, ConfirmationPopupVariant as se, DIAL_ICON_SIZE as E, DIAL_KIT_ICON_STROKE as D, ElementSize as ce, EllipsisTooltip as le, ErrorMessageNotification as ue, ErrorText as O, FolderPath as de, GhostButton as k, GhostIconButton as A, Highlight as fe, Input as pe, Label as me, LinkButton as he, LiveRegion as j, LiveRegionElement as M, LiveRegionPoliteness as ge, MenuItemMark as _e, NeutralButton as N, NoDataContent as ve, Notification as P, NotificationSurface as F, NotificationType as I, NotificationVariant as ye, NumberInput as L, PrimaryButton as be, Search as R, Select as xe, Skeleton as z, SkeletonVariant as B, Spinner as Se, Switch as Ce, Tabs as we, Textarea as Te, Tooltip as Ee, WarningMessageNotification as De } from "@epam/ai-dial-ui-kit";
4
+ import { IconAlertTriangle as Oe, IconArrowNarrowLeft as ke, IconArrowRight as V, IconArrowsSort as H, IconCheck as U, IconCircleX as Ae, IconPencilMinus as je, IconPlayerPause as Me, IconPlayerPlay as Ne, IconPlus as W, IconTrashX as Pe } from "@tabler/icons-react";
5
+ import { Suspense as Fe, lazy as Ie, memo as Le, useCallback as Re, useEffect as ze, useId as G, useLayoutEffect as Be, useMemo as Ve, useRef as He, useState as Ue } from "react";
6
+ import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
7
+ import { BuilderFormContainer as We } from "@epam/ai-dial-builder-form";
8
+ import { LazyMarkdownEditor as Ge } from "@epam/ai-dial-ui-kit/editors";
9
+ //#region src/models/scheduled-task-card-grid-props.ts
10
+ var Ke = "1180px", qe = {
11
11
  card: "dial-scheduled-tasks-card",
12
12
  cardGrid: "dial-scheduled-tasks-card-grid",
13
13
  refineFeedback: "dial-scheduled-tasks-refine-feedback"
14
- }, G = /* @__PURE__ */ function(e) {
14
+ }, Y = /* @__PURE__ */ function(e) {
15
15
  return e.Scheduled = "scheduled", e.Paused = "paused", e.Completed = "completed", e;
16
- }({}), K = /* @__PURE__ */ function(e) {
16
+ }({}), Je = /* @__PURE__ */ function(e) {
17
17
  return e.Active = "active", e.Paused = "paused", e.Completed = "completed", e;
18
- }({}), Pe = (e) => {
18
+ }({}), Ye = (e) => {
19
19
  switch (e.presentationStatus) {
20
- case K.Active: return G.Scheduled;
21
- case K.Paused: return G.Paused;
22
- case K.Completed: return G.Completed;
20
+ case Je.Active: return Y.Scheduled;
21
+ case Je.Paused: return Y.Paused;
22
+ case Je.Completed: return Y.Completed;
23
23
  }
24
- return e.isCompleted ? G.Completed : e.isActive === !1 ? G.Paused : G.Scheduled;
25
- }, q = {
26
- schedulePill: "_schedulePill_146jw_1",
27
- scheduleLabel: "_scheduleLabel_146jw_6",
28
- pausedPill: "_pausedPill_146jw_10",
29
- pausedLabel: "_pausedLabel_146jw_15",
30
- completedPill: "_completedPill_146jw_19",
31
- completedLabel: "_completedLabel_146jw_24"
32
- }, J = {
33
- [G.Scheduled]: {
24
+ return e.isCompleted ? Y.Completed : e.isActive === !1 ? Y.Paused : Y.Scheduled;
25
+ }, Xe = {
26
+ schedulePill: "_schedulePill_1cwco_1",
27
+ scheduleLabel: "_scheduleLabel_1cwco_6",
28
+ pausedPill: "_pausedPill_1cwco_10",
29
+ pausedLabel: "_pausedLabel_1cwco_15",
30
+ completedPill: "_completedPill_1cwco_19",
31
+ completedLabel: "_completedLabel_1cwco_24"
32
+ }, Ze = {
33
+ [Y.Scheduled]: {
34
34
  pillClassName: "inline-block rounded-lg border px-2 py-1",
35
- wrapperClassName: q.schedulePill,
36
- labelClassName: q.scheduleLabel
35
+ wrapperClassName: Xe.schedulePill,
36
+ labelClassName: Xe.scheduleLabel
37
37
  },
38
- [G.Paused]: {
38
+ [Y.Paused]: {
39
39
  pillClassName: "inline-flex items-center gap-1.5 rounded-full border px-2 py-1",
40
- wrapperClassName: q.pausedPill,
41
- labelClassName: q.pausedLabel,
42
- renderIcon: () => /* @__PURE__ */ V(I, {
43
- size: D.SM,
40
+ wrapperClassName: Xe.pausedPill,
41
+ labelClassName: Xe.pausedLabel,
42
+ renderIcon: () => /* @__PURE__ */ q(Me, {
43
+ size: E.SM,
44
44
  "aria-hidden": !0,
45
- stroke: O
45
+ stroke: D
46
46
  })
47
47
  },
48
- [G.Completed]: {
48
+ [Y.Completed]: {
49
49
  pillClassName: "inline-flex items-center gap-1.5 rounded-full border px-2 py-1",
50
- wrapperClassName: q.completedPill,
51
- labelClassName: q.completedLabel,
52
- renderIcon: () => /* @__PURE__ */ V(be, {
53
- size: D.SM,
50
+ wrapperClassName: Xe.completedPill,
51
+ labelClassName: Xe.completedLabel,
52
+ renderIcon: () => /* @__PURE__ */ q(U, {
53
+ size: E.SM,
54
54
  "aria-hidden": !0,
55
- stroke: O
55
+ stroke: D
56
56
  })
57
57
  }
58
- }, Fe = ({ status: e, text: t, textClassName: n = "dial-tiny-text", className: r }) => {
59
- let { pillClassName: i, wrapperClassName: a, labelClassName: o, renderIcon: s } = J[e];
60
- return /* @__PURE__ */ H("span", {
61
- className: v(i, n, a, o, r),
58
+ }, Qe = ({ status: e, text: t, textClassName: n = "dial-tiny-text", className: r }) => {
59
+ let { pillClassName: i, wrapperClassName: a, labelClassName: o, renderIcon: s } = Ze[e];
60
+ return /* @__PURE__ */ J("span", {
61
+ className: y(i, n, a, o, r),
62
62
  children: [s && s(), t]
63
63
  });
64
- }, Y = {
65
- title: "_title_hmbo0_2",
66
- description: "_description_hmbo0_6",
67
- locationLabel: "_locationLabel_hmbo0_10",
68
- locationLeaf: "_locationLeaf_hmbo0_14",
69
- newBadge: "_newBadge_hmbo0_18",
70
- locationDivider: "_locationDivider_hmbo0_23",
71
- card: "_card_hmbo0_34"
72
- }, Ie = ({ item: e, searchQuery: t = "", onCardClick: n, labels: r, styles: i, className: a }) => {
73
- let o = b(), s = r?.newBadgeLabel ?? "NEW", c = r?.pausedBadgeLabel ?? "Paused", l = r?.completedBadgeLabel ?? "Completed", { colors: u, typography: d } = i ?? {}, f = d?.titleClassName ?? "dial-body-semi-text", p = d?.descriptionClassName ?? "dial-small-text", m = d?.descriptionSizeClassName ?? "dial-tiny-text", h = d?.scheduleLabelClassName ?? "dial-tiny-text", g = d?.pausedBadgeClassName ?? "dial-tiny-text", y = d?.completedBadgeClassName ?? "dial-tiny-text", x = d?.locationLabelClassName ?? "dial-tiny-text", ee = d?.locationLeafClassName ?? "dial-tiny-semi-text", te = d?.newBadgeClassName ?? "dial-tiny-semi-text", S = Pe(e), { text: ne, textClassName: C } = {
74
- [G.Scheduled]: {
64
+ }, $e = {
65
+ title: "_title_7p2ui_2",
66
+ description: "_description_7p2ui_6",
67
+ locationLabel: "_locationLabel_7p2ui_10",
68
+ locationLeaf: "_locationLeaf_7p2ui_14",
69
+ newBadge: "_newBadge_7p2ui_18",
70
+ locationDivider: "_locationDivider_7p2ui_23",
71
+ card: "_card_7p2ui_34"
72
+ }, et = ({ item: e, searchQuery: t = "", onCardClick: n, labels: r, styles: i, className: a }) => {
73
+ let o = ee(), s = r?.newBadgeLabel ?? "NEW", c = r?.pausedBadgeLabel ?? "Paused", l = r?.completedBadgeLabel ?? "Completed", { colors: u, typography: d } = i ?? {}, f = d?.titleClassName ?? "dial-body-semi-text", p = d?.descriptionClassName ?? "dial-small-paragraph-text", m = d?.scheduleLabelClassName ?? "dial-tiny-text", h = d?.pausedBadgeClassName ?? "dial-tiny-text", g = d?.completedBadgeClassName ?? "dial-tiny-text", _ = d?.locationLabelClassName ?? "dial-tiny-text", b = d?.locationLeafClassName ?? "dial-tiny-semi-text", x = d?.newBadgeClassName ?? "dial-tiny-semi-text", te = Ye(e), { text: S, textClassName: C } = {
74
+ [Y.Scheduled]: {
75
75
  text: e.scheduleLabel,
76
- textClassName: h
76
+ textClassName: m
77
77
  },
78
- [G.Paused]: {
78
+ [Y.Paused]: {
79
79
  text: c,
80
- textClassName: g
80
+ textClassName: h
81
81
  },
82
- [G.Completed]: {
82
+ [Y.Completed]: {
83
83
  text: l,
84
- textClassName: y
84
+ textClassName: g
85
85
  }
86
- }[S], w = _({
86
+ }[te], w = v({
87
87
  "--stc-title-text": u?.titleText,
88
88
  "--stc-desc-text": u?.descriptionText,
89
89
  "--stc-pill-bg": u?.schedulePillBackground,
@@ -100,88 +100,91 @@ var W = {
100
100
  "--stc-completed-bg": u?.completedBadgeBackground,
101
101
  "--stc-completed-border": u?.completedBadgeBorder,
102
102
  "--stc-completed-text": u?.completedBadgeText
103
- }), E = n ? {
103
+ }), ne = n ? {
104
104
  tabIndex: 0,
105
105
  onClick: () => n(e.id),
106
106
  onKeyDown: (t) => {
107
107
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e.id));
108
108
  }
109
109
  } : {};
110
- return /* @__PURE__ */ H(T, {
110
+ return /* @__PURE__ */ J(T, {
111
111
  role: n ? "button" : "group",
112
112
  "aria-label": e.displayName,
113
113
  style: w,
114
- className: v("h-[var(--st-card-height,232px)]", Y.card, n && "cursor-pointer", a, W.card),
115
- ...E,
114
+ className: y("h-(--st-card-height,232px) min-w-0", $e.card, n && "cursor-pointer", a, qe.card),
115
+ ...ne,
116
116
  children: [
117
- /* @__PURE__ */ H("div", {
117
+ /* @__PURE__ */ J("div", {
118
118
  className: "flex min-w-0 shrink-0 items-start gap-2 desktop:items-center",
119
- children: [/* @__PURE__ */ V(oe, {
119
+ children: [/* @__PURE__ */ q(fe, {
120
120
  text: e.displayName,
121
121
  query: t,
122
122
  maxLines: o ? 2 : 1,
123
- className: v(f, Y.title)
124
- }), e.isNew && /* @__PURE__ */ V("span", {
125
- className: v("shrink-0 rounded-full px-2 py-0.5", te, Y.newBadge),
123
+ className: y(f, $e.title)
124
+ }), e.isNew && /* @__PURE__ */ q("span", {
125
+ className: y("shrink-0 rounded-full px-2 py-0.5", x, $e.newBadge),
126
126
  children: s
127
127
  })]
128
128
  }),
129
- e.descriptionPreview && /* @__PURE__ */ V("p", {
130
- className: v("line-clamp-4 min-h-0 flex-1 overflow-hidden", m, p, Y.description),
129
+ e.descriptionPreview && /* @__PURE__ */ q("p", {
130
+ className: y("line-clamp-3 min-h-0 min-w-0 overflow-hidden wrap-anywhere", p, $e.description),
131
131
  children: e.descriptionPreview
132
132
  }),
133
- /* @__PURE__ */ H("div", {
133
+ /* @__PURE__ */ J("div", {
134
134
  className: "mt-auto flex shrink-0 flex-col gap-3",
135
- children: [/* @__PURE__ */ V("div", {
135
+ children: [/* @__PURE__ */ q("div", {
136
136
  className: "flex min-h-[28px] items-center",
137
- children: /* @__PURE__ */ V(Fe, {
138
- status: S,
139
- text: ne,
137
+ children: /* @__PURE__ */ q(Qe, {
138
+ status: te,
139
+ text: S,
140
140
  textClassName: C
141
141
  })
142
- }), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */ V(ie, {
142
+ }), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */ q(de, {
143
143
  segments: e.locationSegments,
144
- labelClassName: v(x, Y.locationLabel),
145
- leafClassName: v(ee, Y.locationLeaf),
146
- className: v("pt-3", Y.locationDivider)
144
+ labelClassName: y(_, $e.locationLabel),
145
+ leafClassName: y(b, $e.locationLeaf),
146
+ className: y("pt-3", $e.locationDivider)
147
147
  })]
148
148
  })
149
149
  ]
150
150
  });
151
- }, Le = { card: "_card_18ivt_1" }, Re = [
151
+ }, tt = { card: "_card_18ivt_1" }, nt = [
152
152
  "100%",
153
153
  "100%",
154
154
  "61%"
155
- ], ze = "var(--stcs-skeleton-bg)", Be = ({ styles: e }) => /* @__PURE__ */ H(T, {
156
- "aria-hidden": !0,
157
- style: _({ "--stcs-skeleton-bg": e?.colors?.skeletonColor }),
158
- className: v("h-[var(--st-card-height,232px)]", Le.card),
159
- children: [
160
- /* @__PURE__ */ V(j, {
161
- variant: M.Rectangular,
162
- width: "60%",
163
- height: "20px",
164
- color: ze,
165
- className: "shrink-0"
166
- }),
167
- /* @__PURE__ */ V("div", {
168
- className: "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden",
169
- children: Re.map((e, t) => /* @__PURE__ */ V(j, {
170
- variant: M.Rectangular,
171
- width: e,
172
- height: "16px",
173
- color: ze
174
- }, t))
175
- }),
176
- /* @__PURE__ */ V(j, {
177
- variant: M.Rectangular,
178
- width: "110px",
179
- height: "28px",
180
- color: ze,
181
- className: "shrink-0 rounded-lg"
182
- })
183
- ]
184
- }), Ve = ({ items: e, searchQuery: t, onCardClick: n, labels: r, cardStyles: i, trailingSkeletonCount: a = 0, skeletonStyles: o, layout: s }) => /* @__PURE__ */ H("div", {
155
+ ], rt = "var(--stcs-skeleton-bg)", it = ({ styles: e }) => {
156
+ let t = v({ "--stcs-skeleton-bg": e?.colors?.skeletonColor });
157
+ return /* @__PURE__ */ J(T, {
158
+ "aria-hidden": !0,
159
+ style: t,
160
+ className: y("h-(--st-card-height,232px)", tt.card),
161
+ children: [
162
+ /* @__PURE__ */ q(z, {
163
+ variant: B.Rectangular,
164
+ width: "60%",
165
+ height: "20px",
166
+ color: rt,
167
+ className: "shrink-0"
168
+ }),
169
+ /* @__PURE__ */ q("div", {
170
+ className: "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden",
171
+ children: nt.map((e, t) => /* @__PURE__ */ q(z, {
172
+ variant: B.Rectangular,
173
+ width: e,
174
+ height: "16px",
175
+ color: rt
176
+ }, t))
177
+ }),
178
+ /* @__PURE__ */ q(z, {
179
+ variant: B.Rectangular,
180
+ width: "110px",
181
+ height: "28px",
182
+ color: rt,
183
+ className: "shrink-0 rounded-lg"
184
+ })
185
+ ]
186
+ });
187
+ }, at = ({ items: e, searchQuery: t, onCardClick: n, labels: r, cardStyles: i, trailingSkeletonCount: a = 0, skeletonStyles: o, layout: s }) => /* @__PURE__ */ J("div", {
185
188
  style: {
186
189
  "--st-grid-min-card-width": s?.minCardWidth,
187
190
  "--st-grid-gap": s?.gap,
@@ -191,14 +194,14 @@ var W = {
191
194
  gap: "var(--st-grid-gap, 20px)",
192
195
  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))"
193
196
  },
194
- className: v("mx-auto grid w-full min-w-0", W.cardGrid),
195
- children: [e.map((e) => /* @__PURE__ */ V(Ie, {
197
+ className: y("mx-auto grid w-full min-w-0", qe.cardGrid),
198
+ children: [e.map((e) => /* @__PURE__ */ q(et, {
196
199
  item: e,
197
200
  searchQuery: t,
198
201
  onCardClick: n,
199
202
  labels: r,
200
203
  styles: i
201
- }, e.id)), Array.from({ length: a }, (e, t) => /* @__PURE__ */ V(Be, { styles: o }, `skeleton-${t}`))]
204
+ }, e.id)), Array.from({ length: a }, (e, t) => /* @__PURE__ */ q(it, { styles: o }, `skeleton-${t}`))]
202
205
  }), X = {
203
206
  container: "_container_3vz4t_2",
204
207
  subtitle: "_subtitle_3vz4t_6",
@@ -206,50 +209,46 @@ var W = {
206
209
  sortButton: "_sortButton_3vz4t_19",
207
210
  createButton: "_createButton_3vz4t_10",
208
211
  sortControlHidden: "_sortControlHidden_3vz4t_49"
209
- }, He = /* @__PURE__ */ V(F, {
210
- size: 48,
211
- stroke: 1,
212
- "aria-hidden": !0
213
- }), Ue = (e, t, n, r, i, a) => {
212
+ }, ot = (e, t, n, r, i, a) => {
214
213
  if (!e) return t ? a.loadingMoreLabel : n ? a.errorLabel : r > 0 ? `${r}` : i ? a.noResultsLabel : a.emptyStateLabel;
215
- }, We = (e) => {
214
+ }, st = (e) => {
216
215
  if (!e || e === document.body) return null;
217
216
  let { overflow: t, overflowY: n } = getComputedStyle(e);
218
- return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : We(e.parentElement);
219
- }, Ge = ({ 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: f = 6, onLoadMore: p, onCardClick: h, banner: g, styles: y, sortIcon: b, className: x, gridLayout: ee, cardStyles: C, loadMoreError: w, onRetryLoadMore: T }) => {
220
- let { colors: E, typography: ie } = y ?? {}, ae = ie?.titleClassName ?? "dial-h1-text", oe = ie?.subtitleClassName ?? "dial-body-text", se = _({
221
- "--st-bg": E?.background,
222
- "--st-subtitle-text": E?.subtitleText,
223
- "--st-sort-text": E?.sortButtonText
224
- }), ce = (e) => {
217
+ return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : st(e.parentElement);
218
+ }, ct = ({ 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: f = 6, onLoadMore: p, onCardClick: m, banner: g, styles: _, sortIcon: b, className: x, gridLayout: ee, cardStyles: te, loadMoreError: S, onRetryLoadMore: C }) => {
219
+ let { colors: w, typography: ae } = _ ?? {}, oe = ae?.titleClassName ?? "dial-h1-text", T = ae?.subtitleClassName ?? "dial-body-text", se = v({
220
+ "--st-bg": w?.background,
221
+ "--st-subtitle-text": w?.subtitleText,
222
+ "--st-sort-text": w?.sortButtonText
223
+ }), le = (e) => {
225
224
  r(e ?? "");
226
- }, [ue, de] = je(!1), [pe, j] = je(!1), M = B(null), he = z(() => {
227
- j(!0);
228
- }, []), ge = z(() => {
229
- j(!1);
225
+ }, [O, de] = Ue(!1), [A, fe] = Ue(!1), pe = He(null), me = Re(() => {
226
+ fe(!0);
227
+ }, []), he = Re(() => {
228
+ fe(!1);
230
229
  }, []);
231
- ke(() => {
232
- let e = M.current;
233
- pe && ue && e != null && e.offsetParent == null && de(!1);
234
- }, [pe, ue]);
235
- let _e = e.sortOptions.find((e) => e.value === i)?.label ?? e.sortLabel, ve = Ae(() => e.sortOptions.map((e) => ({
230
+ Be(() => {
231
+ let e = pe.current;
232
+ A && O && e != null && e.offsetParent == null && de(!1);
233
+ }, [A, O]);
234
+ let ge = e.sortOptions.find((e) => e.value === i)?.label ?? e.sortLabel, N = Ve(() => e.sortOptions.map((e) => ({
236
235
  key: e.value,
237
236
  label: e.label,
238
- mark: le.Check,
237
+ mark: _e.Check,
239
238
  checked: e.value === i,
240
239
  onClick: () => a(e.value)
241
240
  })), [
242
241
  e.sortOptions,
243
242
  i,
244
243
  a
245
- ]), ye = Ue(s, d, !!c, o.length, n.trim().length > 0, e), be = B(null);
246
- De(() => {
247
- let e = be.current;
244
+ ]), ve = ot(s, d, !!c, o.length, n.trim().length > 0, e), P = He(null);
245
+ ze(() => {
246
+ let e = P.current;
248
247
  if (!e || !p) return;
249
- let t = We(e.parentElement);
248
+ let t = st(e.parentElement);
250
249
  if (!t) return;
251
250
  let n = () => {
252
- if (d || s || w || !u) return;
251
+ if (d || s || S || !u) return;
253
252
  let n = t.getBoundingClientRect(), r = e.getBoundingClientRect();
254
253
  r.top < n.bottom && r.bottom > n.top && p();
255
254
  };
@@ -258,152 +257,178 @@ var W = {
258
257
  u,
259
258
  d,
260
259
  s,
261
- w,
260
+ S,
262
261
  p
263
262
  ]);
264
- let xe = () => s ? /* @__PURE__ */ V(me, {}) : c ? /* @__PURE__ */ H("div", {
263
+ let F = () => s ? /* @__PURE__ */ q(Se, {}) : c ? /* @__PURE__ */ J("div", {
265
264
  className: "flex flex-col items-center gap-3",
266
- children: [/* @__PURE__ */ V("p", {
267
- className: v(oe, X.subtitle),
265
+ children: [/* @__PURE__ */ q("p", {
266
+ className: y(T, X.subtitle),
268
267
  children: e.errorLabel
269
- }), /* @__PURE__ */ V(k, {
268
+ }), /* @__PURE__ */ q(k, {
270
269
  label: e.retryLabel,
271
270
  onClick: l
272
271
  })]
273
- }) : o.length === 0 ? n.trim() ? /* @__PURE__ */ V("p", {
274
- className: v(oe, X.subtitle),
275
- children: e.noResultsLabel
276
- }) : /* @__PURE__ */ V(m, {
272
+ }) : o.length === 0 ? n.trim() ? /* @__PURE__ */ q(h, {
273
+ label: e.noResultsLabel,
274
+ description: e.noResultsDescription
275
+ }) : /* @__PURE__ */ q(h, {
277
276
  label: e.emptyStateLabel,
278
- icon: He
279
- }) : /* @__PURE__ */ H("div", {
277
+ description: e.emptyStateDescription
278
+ }) : /* @__PURE__ */ J("div", {
280
279
  className: "flex w-full flex-col gap-6",
281
280
  children: [
282
- /* @__PURE__ */ V(Ve, {
281
+ /* @__PURE__ */ q(at, {
283
282
  items: o,
284
283
  searchQuery: n,
285
- onCardClick: h,
284
+ onCardClick: m,
286
285
  labels: e.cardLabels,
287
286
  trailingSkeletonCount: d ? f : 0,
288
- skeletonStyles: { colors: { skeletonColor: E?.skeletonColor } },
289
- cardStyles: C,
287
+ skeletonStyles: { colors: { skeletonColor: w?.skeletonColor } },
288
+ cardStyles: te,
290
289
  layout: ee
291
290
  }),
292
- w && /* @__PURE__ */ H("div", {
293
- role: "alert",
294
- className: "flex items-center gap-3",
295
- children: [/* @__PURE__ */ V("span", {
296
- className: v(oe, X.subtitle),
297
- children: e.loadMoreErrorLabel ?? e.errorLabel
298
- }), /* @__PURE__ */ V(k, {
291
+ S && /* @__PURE__ */ q(ue, {
292
+ message: e.loadMoreErrorLabel ?? e.errorLabel,
293
+ textClassName: T,
294
+ iconStroke: D,
295
+ action: /* @__PURE__ */ q(k, {
299
296
  label: e.retryLabel,
300
- onClick: T
301
- })]
297
+ onClick: C
298
+ })
302
299
  }),
303
- /* @__PURE__ */ V("div", {
304
- ref: be,
300
+ /* @__PURE__ */ q("div", {
301
+ ref: P,
305
302
  "aria-hidden": !0,
306
303
  className: "h-px w-full"
307
304
  })
308
305
  ]
309
- }), P = s || !!c || o.length === 0;
310
- return /* @__PURE__ */ H("div", {
306
+ }), I = s || !!c || o.length === 0;
307
+ return /* @__PURE__ */ J("div", {
311
308
  style: se,
312
- className: v("flex h-full w-full flex-col gap-4 overflow-y-auto px-4 py-4 desktop:gap-6 desktop:px-8", X.container, x),
309
+ className: y("flex h-full w-full flex-col gap-4 overflow-y-auto px-4 py-4 desktop:gap-6 desktop:px-8", X.container, x),
313
310
  children: [
314
- /* @__PURE__ */ H("div", {
311
+ /* @__PURE__ */ J("div", {
315
312
  className: "flex items-start justify-between gap-4",
316
- children: [/* @__PURE__ */ H("div", {
313
+ children: [/* @__PURE__ */ J("div", {
317
314
  className: "min-w-0 gap-2",
318
- children: [/* @__PURE__ */ V("h1", {
319
- className: v("truncate", ae),
315
+ children: [/* @__PURE__ */ q("h1", {
316
+ className: y("truncate", oe),
320
317
  children: e.title
321
- }), /* @__PURE__ */ V("p", {
322
- className: v("mt-1", oe, X.subtitle),
318
+ }), /* @__PURE__ */ q("p", {
319
+ className: y("mt-1", T, X.subtitle),
323
320
  children: e.subtitle
324
321
  })]
325
- }), /* @__PURE__ */ V(fe, {
322
+ }), t != null && /* @__PURE__ */ q(be, {
326
323
  label: e.createButtonLabel,
327
324
  textClassName: X.createButtonLabel,
328
325
  "aria-label": e.createButtonLabel,
329
- iconBefore: /* @__PURE__ */ V(R, {
330
- size: D.SM,
326
+ iconBefore: /* @__PURE__ */ q(W, {
327
+ size: E.SM,
331
328
  "aria-hidden": !0,
332
- stroke: O
329
+ stroke: D
333
330
  }),
334
331
  onClick: t,
335
- className: v("shrink-0", X.createButton)
332
+ className: y("shrink-0", X.createButton)
336
333
  })]
337
334
  }),
338
- /* @__PURE__ */ H("div", {
335
+ /* @__PURE__ */ J("div", {
339
336
  className: "flex flex-wrap items-center gap-3",
340
- children: [/* @__PURE__ */ V("div", {
337
+ children: [/* @__PURE__ */ q("div", {
341
338
  role: "search",
342
339
  className: "flex-1",
343
- children: /* @__PURE__ */ V(A, {
340
+ children: /* @__PURE__ */ q(R, {
344
341
  value: n,
345
- onChange: ce,
342
+ onChange: le,
346
343
  placeholder: e.searchPlaceholder,
347
344
  clearLabel: e.clearSearchLabel,
348
345
  "aria-label": e.searchAriaLabel,
349
- size: re.Large,
350
- onFocus: he,
351
- onBlur: ge
346
+ size: ce.Large,
347
+ onFocus: me,
348
+ onBlur: he
352
349
  })
353
- }), e.sortOptions.length > 0 && /* @__PURE__ */ V("div", {
354
- ref: M,
355
- className: v(pe && X.sortControlHidden),
356
- children: /* @__PURE__ */ V(S, {
357
- items: ve,
358
- label: _e,
359
- variant: ne.Primary,
360
- appearance: te.Ghost,
361
- iconBefore: b === void 0 ? /* @__PURE__ */ V(N, {
362
- size: D.SM,
350
+ }), e.sortOptions.length > 0 && /* @__PURE__ */ q("div", {
351
+ ref: pe,
352
+ className: y(A && X.sortControlHidden),
353
+ children: /* @__PURE__ */ q(re, {
354
+ items: N,
355
+ label: ge,
356
+ variant: ie.Primary,
357
+ appearance: ne.Ghost,
358
+ iconBefore: b === void 0 ? /* @__PURE__ */ q(H, {
359
+ size: E.SM,
363
360
  "aria-hidden": !0,
364
- stroke: O
361
+ stroke: D
365
362
  }) : b,
366
363
  className: X.sortButton
367
364
  })
368
365
  })]
369
366
  }),
370
- g,
371
- /* @__PURE__ */ V("span", {
372
- role: "status",
373
- "aria-live": "polite",
374
- className: "sr-only",
375
- children: ye
367
+ g != null && typeof g != "boolean" && /* @__PURE__ */ q("div", {
368
+ className: "mx-auto w-full min-w-0",
369
+ style: { maxWidth: ee?.maxWidth ?? "1180px" },
370
+ children: g
371
+ }),
372
+ /* @__PURE__ */ q(j, {
373
+ visuallyHidden: !0,
374
+ as: M.Span,
375
+ children: ve
376
376
  }),
377
- /* @__PURE__ */ V("div", {
378
- className: v("mx-auto flex size-full w-full min-w-0 flex-col", P && "items-center justify-center"),
379
- children: xe()
377
+ /* @__PURE__ */ q("div", {
378
+ className: y("mx-auto flex size-full w-full min-w-0 flex-col", I && "items-center justify-center"),
379
+ children: F()
380
380
  })
381
381
  ]
382
382
  });
383
- }, Ke = /* @__PURE__ */ function(e) {
383
+ }, lt = /* @__PURE__ */ function(e) {
384
384
  return e.FirstToRun = "firstToRun", e.LastToRun = "lastToRun", e.Newest = "newest", e.NameAZ = "nameAZ", e;
385
- }({}), qe = (e) => e == null ? "" : typeof e == "string" ? e.trim() : Array.isArray(e) ? e.length ? JSON.stringify(e) : "" : JSON.stringify(e), Je = (e, t) => {
386
- let n = new Set([...Object.keys(e), ...Object.keys(t)]);
387
- for (let r of n) if (qe(e[r]) !== qe(t[r])) return !0;
385
+ }({}), ut = (e) => Array.from(document.querySelectorAll("[aria-labelledby]")).find((t) => (t.getAttribute("aria-labelledby") ?? "").split(/\s+/).includes(e)) ?? null, dt = (e) => e == null ? "" : typeof e == "string" ? e.trim() : Array.isArray(e) ? e.length ? JSON.stringify(e) : "" : JSON.stringify(e), ft = (e, t) => {
386
+ let n = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
387
+ for (let r of n) if (dt(e[r]) !== dt(t[r])) return !0;
388
388
  return !1;
389
- }, Ye = { error: "_error_v2pfn_4" }, Xe = ({ label: e, value: t, onChange: r, error: i, errorClassName: a = "dial-small-text" }) => {
390
- let o = B(/* @__PURE__ */ new Date()).current;
391
- return /* @__PURE__ */ H("div", {
389
+ }, pt = (e, n, r) => n === t.Custom || r === t.Custom ? void 0 : e, mt = { error: "_error_v2pfn_4" }, ht = ({ id: t, label: n, placeholder: r, value: a, onChange: o, minDate: s, error: c, errorClassName: l, disabled: u }) => {
390
+ let d = (e) => o(i(e)), f = G();
391
+ return x(() => document.getElementById(t), f, !!c), /* @__PURE__ */ J("div", {
392
+ className: "flex flex-1 flex-col gap-1",
393
+ children: [/* @__PURE__ */ q(ae, {
394
+ id: t,
395
+ mode: oe.Date,
396
+ value: e(a),
397
+ onChange: d,
398
+ minDate: s,
399
+ labelProps: { label: n },
400
+ placeholder: r,
401
+ invalid: !!c,
402
+ disabled: u
403
+ }), /* @__PURE__ */ q(O, {
404
+ announce: ge.Assertive,
405
+ id: f,
406
+ className: y(l, mt.error),
407
+ text: c ?? ""
408
+ })]
409
+ });
410
+ }, gt = { error: "_error_v2pfn_4" }, _t = ({ label: e, placeholder: t, value: r, onChange: i, disabled: a, error: o, errorClassName: c = "dial-tiny-text" }) => {
411
+ let l = He(/* @__PURE__ */ new Date()).current, u = (e) => i(n(e)), d = G();
412
+ return x(() => document.getElementById("scheduled-task-run-at"), d, !!o), /* @__PURE__ */ J("div", {
392
413
  className: "flex flex-col gap-1",
393
- children: [/* @__PURE__ */ V(C, {
414
+ children: [/* @__PURE__ */ q(ae, {
394
415
  id: "scheduled-task-run-at",
395
- mode: w.DateTime,
396
- value: s(t),
397
- onChange: (e) => r(n(e)),
398
- minDate: o,
416
+ mode: oe.DateTime,
417
+ value: s(r),
418
+ onChange: u,
419
+ minDate: l,
399
420
  labelProps: {
400
421
  label: e,
401
422
  required: !0
402
423
  },
403
- invalid: !!i
404
- }), i && /* @__PURE__ */ V("p", {
405
- className: v(a, Ye.error),
406
- children: i
424
+ placeholder: t,
425
+ invalid: !!o,
426
+ disabled: a
427
+ }), /* @__PURE__ */ q(O, {
428
+ announce: ge.Assertive,
429
+ id: d,
430
+ className: y(c, gt.error),
431
+ text: o ?? ""
407
432
  })]
408
433
  });
409
434
  }, Z = {
@@ -413,264 +438,316 @@ var W = {
413
438
  instructionsError: "_instructionsError_1253x_18",
414
439
  refineFeedback: "_refineFeedback_1253x_22",
415
440
  refineError: "_refineError_1253x_26"
416
- }, Ze = Ee(async () => ({ default: (await U()).MarkdownEditor })), Qe = ({ labels: n, values: r, initialValues: s, errors: u, modelSelector: p, modelLabelId: m, skillSelector: h, onFieldChange: b, onBack: te, onCancel: S, onSubmit: ne, isSubmitting: T = !1, onRefineDescription: re, onRefineInstructions: ie, markdownEditorTheme: k, backIcon: ae, className: oe, styles: le }) => {
417
- let ue = Oe(), fe = Oe(), A = B(void 0), j = (e) => e ? async (t, n) => {
418
- if (A.current && !A.current.aborted) throw new DOMException("Busy", "AbortError");
419
- A.current = n;
441
+ }, vt = Ie(async () => ({ default: (await Ge()).MarkdownEditor })), yt = ({ labels: e, values: n, initialValues: r, errors: i, modelSelector: s, modelLabelId: l, skillSelector: d, onFieldChange: m, onBack: h, onCancel: g, onSubmit: ee, isSubmitting: C = !1, onRefineDescription: re, onRefineInstructions: T, markdownEditorTheme: ce, backIcon: le, className: ue, styles: de }) => {
442
+ let k = G(), A = G(), fe = G(), he = G(), j = G(), M = G(), _e = G(), N = He(void 0), ve = (e) => e ? async (t, n) => {
443
+ if (N.current && !N.current.aborted) throw new DOMException("Busy", "AbortError");
444
+ N.current = n;
420
445
  try {
421
446
  return await e(t, n);
422
447
  } finally {
423
- A.current === n && (A.current = void 0);
448
+ N.current === n && (N.current = void 0);
424
449
  }
425
- } : void 0, M = x({
426
- value: r.description ?? "",
427
- onChange: (e) => b("description", e),
428
- onRefine: j(re),
429
- disabled: T
430
- }), he = x({
431
- value: r.prompt,
432
- onChange: (e) => b("prompt", e),
433
- onRefine: j(ie),
434
- disabled: T
435
- }), ge = M.isPending || he.isPending, ve = () => {
436
- M.reset(), he.reset();
437
- }, N = ee(!!(s && Je(r, s))), be = () => N.guard(() => {
438
- ve(), te();
439
- }), xe = () => N.guard(() => {
440
- ve(), S();
441
- }), P = y(), Se = !r.skillUrls?.length, [F, Ce] = je(), I = B(/* @__PURE__ */ new Date()).current, { colors: L, typography: R, layout: we } = le ?? {}, Ee = R?.titleClassName ?? "dial-h1-text", z = R?.sectionTitleClassName ?? "dial-body-semi-text", ke = R?.sectionSubtitleClassName ?? "dial-tiny-text", Ae = R?.instructionsLabelClassName ?? "dial-body-semi-text mb-1", U = R?.instructionsErrorClassName ?? "dial-small-text", G = _({
442
- "--stcf-details-border": L?.detailsColumnBorder,
443
- "--stcf-subtitle-text": L?.sectionSubtitleText,
444
- "--stcf-error-text": L?.instructionsErrorText,
445
- "--stcf-refine-action-text": L?.refineActionText,
446
- "--stcf-refine-error-text": L?.refineErrorText
447
- }), K = {
448
- feedbackClassName: v(L?.refineActionText && Z.refineFeedback, R?.refineFeedbackClassName, W.refineFeedback),
450
+ } : void 0, P = te({
451
+ value: n.description ?? "",
452
+ onChange: (e) => m("description", e),
453
+ onRefine: ve(re),
454
+ disabled: C
455
+ }), F = te({
456
+ value: n.prompt,
457
+ onChange: (e) => m("prompt", e),
458
+ onRefine: ve(T),
459
+ disabled: C
460
+ }), I = P.isPending || F.isPending, ye = () => {
461
+ P.reset(), F.reset();
462
+ }, be = !!(r && ft(n, r)), R = S(be), z = () => R.guard(() => {
463
+ ye(), h();
464
+ }), B = () => R.guard(() => {
465
+ ye(), g();
466
+ }), Ce = b(), we = !n.skillUrls?.length, [Ee, De] = Ue(), Oe = He(/* @__PURE__ */ new Date()).current, { colors: V, typography: H, layout: U } = de ?? {}, Ae = H?.titleClassName ?? "dial-h1-text", je = H?.sectionTitleClassName ?? "dial-body-semi-text", Me = H?.sectionSubtitleClassName ?? "dial-tiny-text", Ne = H?.instructionsLabelClassName ?? "dial-body-semi-text mb-1", W = H?.instructionsErrorClassName ?? "dial-tiny-text", Pe = v({
467
+ "--stcf-details-border": V?.detailsColumnBorder,
468
+ "--stcf-subtitle-text": V?.sectionSubtitleText,
469
+ "--stcf-error-text": V?.instructionsErrorText,
470
+ "--stcf-refine-action-text": V?.refineActionText,
471
+ "--stcf-refine-error-text": V?.refineErrorText
472
+ }), Ie = {
473
+ feedbackClassName: y(V?.refineActionText && Z.refineFeedback, H?.refineFeedbackClassName, qe.refineFeedback),
449
474
  errorClassName: Z.refineError
450
- }, Pe = (e) => {
451
- Ce(c.test(e.target.value) ? void 0 : n.timeInvalidLabel), b("time", e.target.value);
452
- }, q = (e) => {
453
- Ce(void 0), b("time", typeof e == "string" ? e : "");
454
- }, J = r.repeat !== t.OneTime && r.repeat !== t.Hourly;
455
- De(() => {
456
- J || Ce(void 0);
457
- }, [J]);
458
- let Fe = J ? F ?? u.time : void 0, Y = (e) => b("runAt", e), Ie = T || ge || !r.displayName.trim() || !r.modelId || !r.prompt.trim() && !r.skillUrls?.length || !!u.skillUrls || J && !r.time || !!Fe;
459
- return /* @__PURE__ */ H(Me, { children: [/* @__PURE__ */ V(Ne, {
475
+ }, Le = (t) => {
476
+ let n = c.test(t.target.value) ? void 0 : e.timeInvalidLabel;
477
+ De(n), m("time", t.target.value);
478
+ }, Re = (e) => {
479
+ De(void 0), m("time", typeof e == "string" ? e : "");
480
+ }, Be = (e) => {
481
+ let t = e;
482
+ m("repeat", t);
483
+ let r = pt(n.startDate, n.repeat, t);
484
+ r !== n.startDate && m("startDate", r ?? "");
485
+ let i = pt(n.endDate, n.repeat, t);
486
+ i !== n.endDate && m("endDate", i ?? "");
487
+ }, Ve = n.repeat !== t.OneTime && n.repeat !== t.Hourly, Ge = n.repeat === t.Custom, Ke = Ge && !n.dayOfWeek;
488
+ ze(() => {
489
+ Ve || De(void 0);
490
+ }, [Ve]);
491
+ let Y = Ve ? Ee ?? i.time : void 0;
492
+ x(() => ut(l), he, !!i.modelId), x(() => document.getElementById("scheduled-task-day-of-week"), j, !!i.dayOfWeek), x(() => document.getElementById("scheduled-task-time"), M, !!Y), x(() => document.getElementById(A), _e, !!i.prompt);
493
+ let Je = (e) => m("runAt", e), Ye = (e) => {
494
+ m("everyWeeks", e);
495
+ }, Xe = (e) => {
496
+ e !== n.dayOfWeek && m("dayOfWeek", e);
497
+ }, Ze = C || I || !n.displayName.trim() || !n.modelId || !n.prompt.trim() && !n.skillUrls?.length || !!i.skillUrls || n.repeat === t.OneTime && (!n.runAt || !!i.runAt) || Ve && !n.time || Ke || !!Y;
498
+ return /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(We, {
460
499
  labels: {
461
- title: n.pageTitle,
462
- backButtonLabel: n.backButtonLabel,
463
- cancelButtonLabel: n.cancelButtonLabel,
464
- submitButtonLabel: n.createButtonLabel,
465
- submittingLabel: n.submittingLabel ?? "Saving"
500
+ title: e.pageTitle,
501
+ backButtonLabel: e.backButtonLabel,
502
+ cancelButtonLabel: e.cancelButtonLabel,
503
+ submitButtonLabel: e.createButtonLabel,
504
+ submittingLabel: e.submittingLabel ?? "Saving"
466
505
  },
467
- onBack: be,
468
- onCancel: xe,
506
+ onBack: z,
507
+ onCancel: B,
469
508
  onSubmit: () => {
470
- !Ie && (!A.current || A.current.aborted) && ne();
509
+ !Ze && (!N.current || N.current.aborted) && ee();
471
510
  },
472
- isCancelDisabled: T,
473
- isSubmitDisabled: Ie,
474
- isSubmitting: T,
475
- backIcon: ae === void 0 ? /* @__PURE__ */ V(ye, {
476
- size: D.LG,
477
- stroke: O,
511
+ isCancelDisabled: C,
512
+ isSubmitDisabled: Ze,
513
+ isSubmitting: C,
514
+ backIcon: le === void 0 ? /* @__PURE__ */ q(ke, {
515
+ size: E.LG,
516
+ stroke: D,
478
517
  "aria-hidden": !0,
479
518
  className: "rtl:scale-x-[-1]"
480
- }) : ae,
519
+ }) : le,
481
520
  layout: {
482
- sideColumnWidth: we?.detailsWidth,
483
- columnGap: we?.columnGap,
521
+ sideColumnWidth: U?.detailsWidth,
522
+ columnGap: U?.columnGap,
484
523
  reserveEndColumn: !1
485
524
  },
486
- className: oe,
525
+ className: ue,
487
526
  styles: {
488
- colors: { background: L?.background },
527
+ colors: { background: V?.background },
489
528
  header: {
490
- colors: { borderColor: L?.headerBorder },
491
- typography: { fontClassName: Ee }
529
+ colors: { borderColor: V?.headerBorder },
530
+ typography: { fontClassName: Ae }
492
531
  },
493
- cssVars: G
532
+ cssVars: Pe
494
533
  },
495
- left: /* @__PURE__ */ H("div", {
534
+ left: /* @__PURE__ */ J("div", {
496
535
  role: "group",
497
- "aria-label": n.detailsSectionTitle,
498
- className: v("flex flex-1 flex-col gap-5 py-6 desktop:border-e", Z.detailsColumn, Z.formColumn),
536
+ "aria-label": e.detailsSectionTitle,
537
+ className: y("flex flex-1 flex-col gap-5 py-6 desktop:border-e", Z.detailsColumn, Z.formColumn),
499
538
  children: [
500
- /* @__PURE__ */ H("div", {
539
+ /* @__PURE__ */ J("div", {
501
540
  className: "flex flex-col gap-1",
502
- children: [/* @__PURE__ */ V("h2", {
503
- className: z,
504
- children: n.detailsSectionTitle
505
- }), /* @__PURE__ */ V("p", {
506
- className: v(ke, Z.sectionSubtitle),
507
- children: n.detailsSectionSubtitle
541
+ children: [/* @__PURE__ */ q("h2", {
542
+ className: je,
543
+ children: e.detailsSectionTitle
544
+ }), /* @__PURE__ */ q("p", {
545
+ className: y(Me, Z.sectionSubtitle),
546
+ children: e.detailsSectionSubtitle
508
547
  })]
509
548
  }),
510
- /* @__PURE__ */ V(se, {
549
+ /* @__PURE__ */ q(pe, {
511
550
  id: "scheduled-task-display-name",
512
- value: r.displayName,
513
- onChange: (e) => b("displayName", e ?? ""),
551
+ value: n.displayName,
552
+ onChange: (e) => m("displayName", e ?? ""),
514
553
  labelProps: {
515
- label: n.displayNameLabel,
554
+ label: e.displayNameLabel,
516
555
  required: !0
517
556
  },
518
- invalid: !!u.displayName,
519
- error: u.displayName
557
+ invalid: !!i.displayName,
558
+ error: i.displayName
520
559
  }),
521
- /* @__PURE__ */ V(g, {
560
+ /* @__PURE__ */ q(_, {
522
561
  isEnabled: !!re,
523
- fieldId: ue,
524
- label: n.descriptionLabel,
525
- labels: n,
526
- refinement: M,
527
- disabled: T || ge,
528
- ...K,
529
- children: /* @__PURE__ */ V(_e, {
530
- id: ue,
531
- value: r.description ?? "",
562
+ fieldId: k,
563
+ label: e.descriptionLabel,
564
+ labels: e,
565
+ refinement: P,
566
+ disabled: C || I,
567
+ caption: `${(n.description ?? "").length}/500`,
568
+ ...Ie,
569
+ children: /* @__PURE__ */ q(Te, {
570
+ id: k,
571
+ value: n.description ?? "",
532
572
  onChange: (e) => {
533
- M.reset(), b("description", e);
573
+ P.reset(), m("description", e);
534
574
  },
535
- labelProps: re ? void 0 : { label: n.descriptionLabel },
575
+ labelProps: re ? void 0 : { label: e.descriptionLabel },
536
576
  maxLength: 500,
537
- invalid: !!u.description,
538
- error: u.description,
539
- caption: r.description ? `${r.description.length}/500` : void 0
577
+ invalid: !!i.description,
578
+ error: i.description
540
579
  })
541
580
  }),
542
- /* @__PURE__ */ H("div", {
581
+ /* @__PURE__ */ J("div", {
543
582
  className: "flex flex-col gap-1",
544
583
  children: [
545
- /* @__PURE__ */ V(ce, {
546
- id: m,
547
- label: n.modelOrAgentLabel,
584
+ /* @__PURE__ */ q(me, {
585
+ id: l,
586
+ label: e.modelOrAgentLabel,
548
587
  required: !0
549
588
  }),
550
- p,
551
- u.modelId && /* @__PURE__ */ V("p", {
552
- className: v(U, Z.instructionsError),
553
- children: u.modelId
589
+ s,
590
+ i.modelId && /* @__PURE__ */ q(O, {
591
+ id: he,
592
+ className: y(W, Z.instructionsError),
593
+ text: i.modelId
554
594
  })
555
595
  ]
556
596
  }),
557
- /* @__PURE__ */ H("div", {
597
+ /* @__PURE__ */ J("div", {
558
598
  className: "flex flex-col gap-3",
559
599
  children: [
560
- /* @__PURE__ */ V(pe, {
561
- labelProps: { label: n.repeatLabel },
562
- value: r.repeat,
563
- onChange: (e) => b("repeat", e),
564
- options: n.repeatOptions.map((e) => ({
600
+ /* @__PURE__ */ q(xe, {
601
+ labelProps: { label: e.repeatLabel },
602
+ value: n.repeat,
603
+ onChange: Be,
604
+ options: e.repeatOptions.map((e) => ({
565
605
  value: e.key,
566
606
  label: e.label
567
607
  }))
568
608
  }),
569
- r.repeat === t.OneTime && /* @__PURE__ */ V(Xe, {
570
- label: n.runAtLabel,
571
- value: r.runAt ?? "",
572
- onChange: Y,
573
- error: u.runAt,
574
- errorClassName: U
609
+ n.repeat === t.OneTime && /* @__PURE__ */ q(_t, {
610
+ label: e.runAtLabel,
611
+ placeholder: e.runAtPlaceholder,
612
+ value: n.runAt ?? "",
613
+ onChange: Je,
614
+ error: i.runAt,
615
+ errorClassName: W,
616
+ disabled: C
575
617
  }),
576
- r.repeat !== t.OneTime && /* @__PURE__ */ H(Me, { children: [
577
- J && /* @__PURE__ */ H("div", {
618
+ n.repeat !== t.OneTime && /* @__PURE__ */ J(K, { children: [
619
+ Ge && /* @__PURE__ */ q(xe, {
620
+ id: "scheduled-task-every-weeks",
621
+ labelProps: { label: e.everyLabel },
622
+ value: n.everyWeeks ?? "",
623
+ onChange: Ye,
624
+ options: e.everyWeekOptions,
625
+ disabled: C
626
+ }),
627
+ n.repeat === t.Weekly && /* @__PURE__ */ J("div", {
578
628
  className: "flex flex-col gap-1",
579
- children: [/* @__PURE__ */ V(C, {
580
- id: "scheduled-task-time",
581
- mode: w.Time,
582
- value: r.time,
583
- onChange: q,
584
- onBlur: Pe,
629
+ children: [/* @__PURE__ */ q(ae, {
630
+ id: "scheduled-task-day-of-week",
631
+ mode: oe.Weekday,
632
+ value: a(n.dayOfWeek),
633
+ onChange: (e) => m("dayOfWeek", o(e)),
585
634
  labelProps: {
586
- label: n.timeLabel,
635
+ label: e.dayOfWeekLabel,
587
636
  required: !0
588
637
  },
589
- invalid: !!Fe,
590
- disabled: T,
591
- showTimezone: !0
592
- }), Fe && /* @__PURE__ */ V("p", {
593
- className: v(U, Z.instructionsError),
594
- children: Fe
638
+ invalid: !!i.dayOfWeek
639
+ }), i.dayOfWeek && /* @__PURE__ */ q(O, {
640
+ id: j,
641
+ className: y(W, Z.instructionsError),
642
+ text: i.dayOfWeek
595
643
  })]
596
644
  }),
597
- r.repeat === t.Weekly && /* @__PURE__ */ H("div", {
645
+ Ve && /* @__PURE__ */ J("div", {
598
646
  className: "flex flex-col gap-1",
599
- children: [/* @__PURE__ */ V(C, {
600
- id: "scheduled-task-day-of-week",
601
- mode: w.Weekday,
602
- value: a(r.dayOfWeek),
603
- onChange: (e) => b("dayOfWeek", o(e)),
647
+ children: [/* @__PURE__ */ q(ae, {
648
+ id: "scheduled-task-time",
649
+ mode: oe.Time,
650
+ value: n.time,
651
+ onChange: Re,
652
+ onBlur: Le,
604
653
  labelProps: {
605
- label: n.dayOfWeekLabel,
654
+ label: e.timeLabel,
606
655
  required: !0
607
656
  },
608
- invalid: !!u.dayOfWeek
609
- }), u.dayOfWeek && /* @__PURE__ */ V("p", {
610
- className: v(U, Z.instructionsError),
611
- children: u.dayOfWeek
657
+ invalid: !!Y,
658
+ disabled: C,
659
+ showTimezone: !0
660
+ }), Y && /* @__PURE__ */ q(O, {
661
+ id: M,
662
+ className: y(W, Z.instructionsError),
663
+ text: Y
612
664
  })]
613
665
  }),
614
- r.repeat === t.Monthly && /* @__PURE__ */ V(de, {
666
+ Ge && /* @__PURE__ */ J("div", {
667
+ className: "flex flex-col gap-1",
668
+ children: [
669
+ /* @__PURE__ */ q(me, {
670
+ id: fe,
671
+ label: e.dayOfWeekLabel,
672
+ required: !0
673
+ }),
674
+ /* @__PURE__ */ q("div", {
675
+ role: "group",
676
+ "aria-labelledby": fe,
677
+ className: "flex gap-0.5",
678
+ children: e.customDayOptions.map((e) => {
679
+ let t = e.value === n.dayOfWeek;
680
+ return /* @__PURE__ */ q(w, {
681
+ "aria-label": e.fullName,
682
+ "aria-pressed": t,
683
+ "aria-describedby": i.dayOfWeek ? j : void 0,
684
+ variant: t ? ie.Primary : ie.Neutral,
685
+ appearance: ne.Solid,
686
+ className: "w-10 rounded-full",
687
+ label: e.shortLabel,
688
+ onClick: () => Xe(e.value),
689
+ disabled: C
690
+ }, e.value);
691
+ })
692
+ }),
693
+ i.dayOfWeek && /* @__PURE__ */ q(O, {
694
+ id: j,
695
+ className: y(W, Z.instructionsError),
696
+ text: i.dayOfWeek
697
+ })
698
+ ]
699
+ }),
700
+ n.repeat === t.Monthly && /* @__PURE__ */ q(L, {
615
701
  id: "scheduled-task-day-of-month",
616
702
  integer: !0,
617
703
  min: 1,
618
704
  max: 31,
619
- value: r.dayOfMonth ?? "",
620
- onChange: (e) => b("dayOfMonth", e == null ? "" : String(e)),
705
+ value: n.dayOfMonth ?? "",
706
+ onChange: (e) => m("dayOfMonth", e == null ? "" : String(e)),
621
707
  labelProps: {
622
- label: n.dayOfMonthLabel,
708
+ label: e.dayOfMonthLabel,
623
709
  required: !0
624
710
  },
625
- invalid: !!u.dayOfMonth,
626
- error: u.dayOfMonth
711
+ invalid: !!i.dayOfMonth,
712
+ error: i.dayOfMonth
627
713
  }),
628
- r.repeat === t.Hourly && /* @__PURE__ */ V(de, {
714
+ n.repeat === t.Hourly && /* @__PURE__ */ q(L, {
629
715
  id: "scheduled-task-minute",
630
716
  integer: !0,
631
717
  min: 0,
632
718
  max: 59,
633
- value: r.minute ?? "",
634
- onChange: (e) => b("minute", e == null ? "" : String(e)),
719
+ wrapperClassName: "w-[142px]",
720
+ value: n.minute ?? "",
721
+ onChange: (e) => m("minute", e == null ? "" : String(e)),
635
722
  labelProps: {
636
- label: n.minuteLabel,
723
+ label: e.minuteLabel,
637
724
  required: !0
638
725
  },
639
- invalid: !!u.minute,
640
- error: u.minute
726
+ invalid: !!i.minute,
727
+ error: i.minute
641
728
  }),
642
- /* @__PURE__ */ H("div", {
729
+ !Ge && /* @__PURE__ */ J("div", {
643
730
  className: "flex flex-row gap-3",
644
- children: [/* @__PURE__ */ H("div", {
645
- className: "flex flex-1 flex-col gap-1",
646
- children: [/* @__PURE__ */ V(C, {
647
- id: "scheduled-task-start-date",
648
- mode: w.Date,
649
- value: e(r.startDate),
650
- onChange: (e) => b("startDate", i(e)),
651
- minDate: I,
652
- labelProps: { label: n.startDateLabel },
653
- placeholder: n.startDatePlaceholder,
654
- invalid: !!u.startDate
655
- }), u.startDate && /* @__PURE__ */ V("p", {
656
- className: v(U, Z.instructionsError),
657
- children: u.startDate
658
- })]
659
- }), /* @__PURE__ */ H("div", {
660
- className: "flex flex-1 flex-col gap-1",
661
- children: [/* @__PURE__ */ V(C, {
662
- id: "scheduled-task-end-date",
663
- mode: w.Date,
664
- value: e(r.endDate),
665
- onChange: (e) => b("endDate", i(e)),
666
- minDate: I,
667
- labelProps: { label: n.endDateLabel },
668
- placeholder: n.endDatePlaceholder,
669
- invalid: !!u.endDate
670
- }), u.endDate && /* @__PURE__ */ V("p", {
671
- className: v(U, Z.instructionsError),
672
- children: u.endDate
673
- })]
731
+ children: [/* @__PURE__ */ q(ht, {
732
+ id: "scheduled-task-start-date",
733
+ label: e.startDateLabel,
734
+ placeholder: e.startDatePlaceholder,
735
+ value: n.startDate,
736
+ onChange: (e) => m("startDate", e),
737
+ minDate: Oe,
738
+ error: i.startDate,
739
+ errorClassName: W,
740
+ disabled: C
741
+ }), /* @__PURE__ */ q(ht, {
742
+ id: "scheduled-task-end-date",
743
+ label: e.endDateLabel,
744
+ placeholder: e.endDatePlaceholder,
745
+ value: n.endDate,
746
+ onChange: (e) => m("endDate", e),
747
+ minDate: Oe,
748
+ error: i.endDate,
749
+ errorClassName: W,
750
+ disabled: C
674
751
  })]
675
752
  })
676
753
  ] })
@@ -678,72 +755,68 @@ var W = {
678
755
  })
679
756
  ]
680
757
  }),
681
- children: /* @__PURE__ */ H("div", {
758
+ children: /* @__PURE__ */ J("div", {
682
759
  role: "group",
683
- "aria-label": n.configurationSectionTitle,
684
- className: v("flex flex-1 flex-col gap-5 py-6", Z.formColumn),
760
+ "aria-label": e.configurationSectionTitle,
761
+ className: y("flex flex-1 flex-col gap-5 py-6", Z.formColumn),
685
762
  children: [
686
- /* @__PURE__ */ H("div", {
763
+ /* @__PURE__ */ q("div", {
687
764
  className: "flex flex-col gap-1",
688
- children: [/* @__PURE__ */ V("h2", {
689
- className: z,
690
- children: n.configurationSectionTitle
691
- }), /* @__PURE__ */ V("p", {
692
- className: v(ke, Z.sectionSubtitle),
693
- children: n.configurationSectionSubtitle
694
- })]
695
- }),
696
- h == null ? u.skillUrls && /* @__PURE__ */ V("div", {
697
- "aria-live": "polite",
698
- children: /* @__PURE__ */ V("p", {
699
- className: v(U, Z.instructionsError),
700
- children: u.skillUrls
765
+ children: /* @__PURE__ */ q("h2", {
766
+ className: je,
767
+ children: e.configurationSectionTitle
701
768
  })
702
- }) : /* @__PURE__ */ V("div", {
703
- className: "w-full min-w-0 max-w-[996px]",
704
- children: h
705
769
  }),
706
- /* @__PURE__ */ V("div", {
707
- className: "flex w-full min-w-0 max-w-[996px] flex-col",
708
- children: /* @__PURE__ */ V(g, {
709
- isEnabled: !!ie,
710
- fieldId: fe,
711
- labelClassName: Ae,
712
- label: n.instructionsLabel,
713
- required: Se,
714
- labels: n,
715
- refinement: he,
716
- disabled: T || ge,
717
- ...K,
718
- children: /* @__PURE__ */ H("div", {
770
+ d == null ? /* @__PURE__ */ q(O, {
771
+ announce: ge.Polite,
772
+ className: y(W, Z.instructionsError),
773
+ text: i.skillUrls ?? ""
774
+ }) : /* @__PURE__ */ q("div", {
775
+ className: "w-full max-w-[996px] min-w-0",
776
+ children: d
777
+ }),
778
+ /* @__PURE__ */ q("div", {
779
+ className: "flex w-full max-w-[996px] min-w-0 flex-col",
780
+ children: /* @__PURE__ */ q(_, {
781
+ isEnabled: !!T,
782
+ fieldId: A,
783
+ labelClassName: Ne,
784
+ label: e.instructionsLabel,
785
+ required: we,
786
+ labels: e,
787
+ refinement: F,
788
+ disabled: C || I,
789
+ ...Ie,
790
+ children: /* @__PURE__ */ J("div", {
719
791
  className: "flex flex-1 flex-col gap-1",
720
792
  children: [
721
- !ie && /* @__PURE__ */ V(ce, {
722
- htmlFor: fe,
723
- className: Ae,
724
- label: n.instructionsLabel,
725
- required: Se
793
+ !T && /* @__PURE__ */ q(me, {
794
+ htmlFor: A,
795
+ className: Ne,
796
+ label: e.instructionsLabel,
797
+ required: we
726
798
  }),
727
- /* @__PURE__ */ V("div", {
728
- ref: P,
729
- className: v("w-full", d, f),
730
- children: /* @__PURE__ */ V(Te, {
731
- fallback: /* @__PURE__ */ V(me, {}),
732
- children: /* @__PURE__ */ V(Ze, {
733
- id: fe,
734
- value: r.prompt,
799
+ /* @__PURE__ */ q("div", {
800
+ ref: Ce,
801
+ className: y("w-full", f, p),
802
+ children: /* @__PURE__ */ q(Fe, {
803
+ fallback: /* @__PURE__ */ q(Se, {}),
804
+ children: /* @__PURE__ */ q(vt, {
805
+ id: A,
806
+ value: n.prompt,
735
807
  onChange: (e) => {
736
- he.reset(), b("prompt", e);
808
+ F.reset(), m("prompt", e);
737
809
  },
738
810
  height: 480,
739
- theme: k,
740
- placeholder: n.instructionsPlaceholder
811
+ theme: ce,
812
+ placeholder: e.instructionsPlaceholder
741
813
  })
742
814
  })
743
815
  }),
744
- u.prompt && /* @__PURE__ */ V("p", {
745
- className: v(U, Z.instructionsError),
746
- children: u.prompt
816
+ i.prompt && /* @__PURE__ */ q(O, {
817
+ id: _e,
818
+ className: y(W, Z.instructionsError),
819
+ text: i.prompt
747
820
  })
748
821
  ]
749
822
  })
@@ -751,278 +824,308 @@ var W = {
751
824
  })
752
825
  ]
753
826
  })
754
- }), N.isConfirmOpen && /* @__PURE__ */ V(l, {
827
+ }), R.isConfirmOpen && /* @__PURE__ */ q(u, {
755
828
  open: !0,
756
- title: n.discardTitle ?? "Discard unsaved changes?",
757
- message: n.discardMessage ?? "You have unsaved changes. Leaving now will discard them.",
758
- confirmLabel: n.discardConfirmLabel ?? "Discard changes",
759
- cancelLabel: n.discardCancelLabel ?? "Keep editing",
760
- variant: E.Danger,
761
- onConfirm: N.confirm,
762
- onClose: N.dismiss
829
+ title: e.discardTitle ?? "Discard unsaved changes?",
830
+ message: e.discardMessage ?? "You have unsaved changes. Leaving now will discard them.",
831
+ confirmLabel: e.discardConfirmLabel ?? "Discard changes",
832
+ cancelLabel: e.discardCancelLabel ?? "Keep editing",
833
+ variant: se.Danger,
834
+ onConfirm: R.confirm,
835
+ onClose: R.dismiss
763
836
  })] });
764
- }, $e = /* @__PURE__ */ function(e) {
837
+ }, bt = /* @__PURE__ */ function(e) {
765
838
  return e.Details = "details", e.Configuration = "configuration", e.History = "history", e;
766
- }({}), et = /* @__PURE__ */ function(e) {
839
+ }({}), xt = /* @__PURE__ */ function(e) {
767
840
  return e.Card = "card", e.Flow = "flow", e;
768
- }({}), tt = { subtitleText: "_subtitleText_1i4x2_3" }, nt = ({ skillLabel: e, skillDisplayNames: t, instructionsLabel: n, instructionsMarkdown: r, renderInstructions: i, markdownLabels: a, fieldLabelClassName: o = "dial-tiny-text" }) => /* @__PURE__ */ H("div", {
841
+ }({}), St = { subtitleText: "_subtitleText_1i4x2_3" }, Ct = {
842
+ ...l,
843
+ ul: "dial-small-paragraph-text mb-3 space-y-1",
844
+ ol: "dial-small-paragraph-text mb-3 space-y-1"
845
+ }, wt = ({ skillLabel: e, skillDisplayNames: t, instructionsLabel: n, instructionsMarkdown: r, renderInstructions: i, markdownLabels: a, fieldLabelClassName: o = "dial-tiny-text" }) => /* @__PURE__ */ J("div", {
769
846
  className: "flex min-w-0 flex-col gap-5",
770
- children: [!!t?.length && /* @__PURE__ */ H("div", {
847
+ children: [!!t?.length && /* @__PURE__ */ J("div", {
771
848
  role: "group",
772
849
  "aria-label": e,
773
850
  className: "flex min-w-0 flex-col gap-1",
774
- children: [/* @__PURE__ */ V("span", {
775
- className: v(o, tt.subtitleText),
851
+ children: [/* @__PURE__ */ q("span", {
852
+ className: y(o, St.subtitleText),
776
853
  children: e
777
- }), /* @__PURE__ */ V("p", {
778
- className: "whitespace-normal break-all",
779
- children: t?.map((e, t) => /* @__PURE__ */ V("span", {
854
+ }), /* @__PURE__ */ q("p", {
855
+ className: "wrap-anywhere whitespace-normal",
856
+ children: t?.map((e, t) => /* @__PURE__ */ q("span", {
780
857
  className: "block",
781
858
  children: e
782
859
  }, `${t}:${e}`))
783
860
  })]
784
- }), r && /* @__PURE__ */ H("div", {
861
+ }), r && /* @__PURE__ */ J("div", {
785
862
  role: "group",
786
863
  "aria-label": n,
787
864
  className: "flex min-w-0 flex-col gap-1",
788
- children: [/* @__PURE__ */ V("span", {
789
- className: v(o, tt.subtitleText),
865
+ children: [/* @__PURE__ */ q("span", {
866
+ className: y(o, St.subtitleText),
790
867
  children: n
791
- }), i ? i(r) : /* @__PURE__ */ V(p, {
868
+ }), i ? i(r) : /* @__PURE__ */ q(m, {
792
869
  content: r,
870
+ classNames: Ct,
793
871
  ...a
794
872
  })]
795
873
  })]
796
- }), rt = { subtitleText: "_subtitleText_1i4x2_3" }, it = ({ labels: e, description: t, modelLabel: n, repeatsLabel: r, activeWindowLabel: i, completedLabel: a, fieldLabelClassName: o = "dial-tiny-text", fieldValueClassName: s = "dial-small-text" }) => /* @__PURE__ */ H(Me, { children: [
797
- t && /* @__PURE__ */ H("div", {
798
- className: "flex flex-col gap-1",
799
- children: [/* @__PURE__ */ V("span", {
800
- className: v(o, rt.subtitleText),
801
- children: e.descriptionLabel
802
- }), /* @__PURE__ */ V("p", {
803
- className: s,
804
- children: t
805
- })]
806
- }),
807
- a && /* @__PURE__ */ H("div", {
808
- className: "flex flex-col gap-1",
809
- children: [/* @__PURE__ */ V("span", {
810
- className: v(o, rt.subtitleText),
811
- children: e.completedFieldLabel
812
- }), /* @__PURE__ */ V("p", {
813
- className: s,
814
- children: a
815
- })]
816
- }),
817
- n && /* @__PURE__ */ H("div", {
818
- className: "flex flex-col gap-1",
819
- children: [/* @__PURE__ */ V("span", {
820
- className: v(o, rt.subtitleText),
821
- children: e.modelLabel
822
- }), /* @__PURE__ */ V("p", {
823
- className: s,
824
- children: n
825
- })]
826
- }),
827
- r && /* @__PURE__ */ H("div", {
828
- className: "flex flex-col gap-1",
829
- children: [/* @__PURE__ */ V("span", {
830
- className: v(o, rt.subtitleText),
831
- children: e.repeatsLabel
832
- }), /* @__PURE__ */ V("p", {
833
- className: s,
834
- children: r
835
- })]
836
- }),
837
- i && /* @__PURE__ */ H("div", {
838
- className: "flex flex-col gap-1",
839
- children: [/* @__PURE__ */ V("span", {
840
- className: v(o, rt.subtitleText),
841
- children: e.activeWindowLabel
842
- }), /* @__PURE__ */ V("p", {
843
- className: s,
844
- children: i
845
- })]
846
- })
847
- ] }), at = /* @__PURE__ */ function(e) {
874
+ }), Tt = {
875
+ subtitleText: "_subtitleText_1ncri_4",
876
+ description: "_description_1ncri_10"
877
+ }, Et = ({ labels: e, description: t, modelLabel: n, repeatsLabel: r, activeWindowLabel: i, completedLabel: a, fieldLabelClassName: o = "dial-tiny-text", fieldValueClassName: s = "dial-small-text" }) => {
878
+ let c = t?.trim();
879
+ return /* @__PURE__ */ J(K, { children: [
880
+ c && /* @__PURE__ */ J("div", {
881
+ className: "flex min-w-0 flex-col gap-1",
882
+ children: [/* @__PURE__ */ q("span", {
883
+ className: y(o, Tt.subtitleText),
884
+ children: e.descriptionLabel
885
+ }), /* @__PURE__ */ q("p", {
886
+ className: y(s, "wrap-anywhere whitespace-pre-wrap", Tt.description),
887
+ children: c
888
+ })]
889
+ }),
890
+ a && /* @__PURE__ */ J("div", {
891
+ className: "flex min-w-0 flex-col gap-1",
892
+ children: [/* @__PURE__ */ q("span", {
893
+ className: y(o, Tt.subtitleText),
894
+ children: e.completedFieldLabel
895
+ }), /* @__PURE__ */ q("p", {
896
+ className: s,
897
+ children: a
898
+ })]
899
+ }),
900
+ n && /* @__PURE__ */ J("div", {
901
+ className: "flex min-w-0 flex-col gap-1",
902
+ children: [/* @__PURE__ */ q("span", {
903
+ className: y(o, Tt.subtitleText),
904
+ children: e.modelLabel
905
+ }), /* @__PURE__ */ q("p", {
906
+ className: s,
907
+ children: n
908
+ })]
909
+ }),
910
+ r && /* @__PURE__ */ J("div", {
911
+ className: "flex min-w-0 flex-col gap-1",
912
+ children: [/* @__PURE__ */ q("span", {
913
+ className: y(o, Tt.subtitleText),
914
+ children: e.repeatsLabel
915
+ }), /* @__PURE__ */ q("p", {
916
+ className: s,
917
+ children: r
918
+ })]
919
+ }),
920
+ i && /* @__PURE__ */ J("div", {
921
+ className: "flex min-w-0 flex-col gap-1",
922
+ children: [/* @__PURE__ */ q("span", {
923
+ className: y(o, Tt.subtitleText),
924
+ children: e.activeWindowLabel
925
+ }), /* @__PURE__ */ q("p", {
926
+ className: s,
927
+ children: i
928
+ })]
929
+ })
930
+ ] });
931
+ }, Dt = /* @__PURE__ */ function(e) {
848
932
  return e.Success = "success", e.Error = "error", e.InProgress = "inProgress", e.Missed = "missed", e;
849
933
  }({}), Q = {
850
- subtitleText: "_subtitleText_1d5p9_1",
851
- successIcon: "_successIcon_1d5p9_5",
852
- errorIcon: "_errorIcon_1d5p9_9",
853
- missedIcon: "_missedIcon_1d5p9_13",
854
- currentRun: "_currentRun_1d5p9_17",
855
- interactiveRow: "_interactiveRow_1d5p9_22",
856
- unreadDot: "_unreadDot_1d5p9_33",
857
- rowLayout: "_rowLayout_1d5p9_37"
858
- }, ot = ({ status: e }) => {
934
+ subtitleText: "_subtitleText_1sqjy_1",
935
+ successIcon: "_successIcon_1sqjy_5",
936
+ errorIcon: "_errorIcon_1sqjy_9",
937
+ missedIcon: "_missedIcon_1sqjy_13",
938
+ currentRun: "_currentRun_1sqjy_17",
939
+ interactiveRow: "_interactiveRow_1sqjy_27",
940
+ unreadDot: "_unreadDot_1sqjy_38"
941
+ }, Ot = ({ status: e }) => {
859
942
  switch (e) {
860
- case at.Success: return /* @__PURE__ */ V(xe, {
861
- size: D.SM,
943
+ case Dt.Success: return /* @__PURE__ */ q(U, {
944
+ size: E.SM,
862
945
  className: Q.successIcon,
863
946
  "aria-hidden": !0,
864
- stroke: O
947
+ stroke: D
865
948
  });
866
- case at.Error: return /* @__PURE__ */ V(P, {
867
- size: D.SM,
949
+ case Dt.Error: return /* @__PURE__ */ q(Ae, {
950
+ size: E.SM,
868
951
  className: Q.errorIcon,
869
952
  "aria-hidden": !0,
870
- stroke: O
953
+ stroke: D
871
954
  });
872
- case at.InProgress: return /* @__PURE__ */ V("span", {
955
+ case Dt.InProgress: return /* @__PURE__ */ q("span", {
873
956
  "aria-hidden": !0,
874
- children: /* @__PURE__ */ V(me, { size: D.SM })
957
+ children: /* @__PURE__ */ q(Se, { size: E.SM })
875
958
  });
876
- case at.Missed: return /* @__PURE__ */ V(ve, {
877
- size: D.SM,
959
+ case Dt.Missed: return /* @__PURE__ */ q(Oe, {
960
+ size: E.SM,
878
961
  className: Q.missedIcon,
879
962
  "aria-hidden": !0,
880
- stroke: O
963
+ stroke: D
881
964
  });
882
965
  default: return null;
883
966
  }
884
- }, st = ({ 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 }) => {
885
- let { colors: d, typography: f } = u ?? {}, p = f?.runTimestampClassName ?? "dial-small-text", m = f?.subtitleClassName ?? "dial-body-text", h = c.unreadIndicatorLabel ?? "Unread", g = _({
967
+ }, kt = ({ 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 }) => {
968
+ let { colors: d, typography: f } = u ?? {}, p = f?.runTimestampClassName ?? "dial-small-paragraph-text", m = f?.runTimestampUnreadClassName ?? "dial-small-paragraph-semi-text", h = f?.subtitleClassName ?? "dial-body-text", g = c.unreadIndicatorLabel ?? "Unread", _ = v({
886
969
  "--strhl-success-icon": d?.successIconColor,
887
970
  "--strhl-error-icon": d?.errorIconColor,
888
971
  "--strhl-missed-icon": d?.missedIconColor,
889
972
  "--strhl-subtitle-text": d?.subtitleTextColor,
890
973
  "--strhl-current-run-bg": d?.currentRunBackground,
974
+ "--strhl-current-run-subtitle-text": d?.currentRunSubtitleTextColor,
891
975
  "--strhl-unread-dot": d?.unreadDotColor,
892
976
  "--strhl-row-hover-bg": u?.rowHoverBackground,
893
977
  "--strhl-row-focus-bg": u?.rowFocusBackground,
894
978
  "--strhl-row-focus-outline": u?.rowFocusOutline
895
- }), y = (e) => {
896
- let t = c.runStatusLabels[e.status], n = e.id === o, r = [e.isUnread ? h : void 0, n ? c.currentRunLabel : void 0].filter((e) => !!e), i = [`${t} ${e.timestampLabel}`, ...r].join(" — "), a = !!e.conversationId && !!s;
897
- return /* @__PURE__ */ H("li", {
898
- ...a ? {
899
- role: "button",
900
- tabIndex: 0,
901
- onClick: () => s?.(e),
902
- onKeyDown: (t) => {
903
- (t.key === "Enter" || t.key === " ") && (t.preventDefault(), s?.(e));
904
- }
905
- } : {},
906
- "aria-label": i,
907
- "aria-current": n ? "true" : void 0,
908
- className: v("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),
909
- children: [/* @__PURE__ */ H("span", {
910
- className: "flex items-center gap-2 truncate",
911
- children: [/* @__PURE__ */ V("span", {
912
- className: "relative flex size-3 shrink-0 items-center justify-center",
913
- children: e.isUnread && /* @__PURE__ */ V("span", {
914
- className: v("size-[5.33px] rounded-full", Q.unreadDot),
915
- "aria-hidden": !0
916
- })
917
- }), /* @__PURE__ */ V("span", {
918
- className: v(p, "truncate"),
979
+ }), b = (e) => {
980
+ let t = c.runStatusLabels[e.status], n = e.id === o, r = e.status === Dt.Error && e.errorText ? e.errorText : void 0, i = [
981
+ r,
982
+ e.isUnread ? g : void 0,
983
+ n ? c.currentRunLabel : void 0
984
+ ].filter((e) => !!e), a = [[
985
+ t,
986
+ e.timestampLabel,
987
+ e.durationLabel
988
+ ].filter(Boolean).join(" "), ...i].join(" — "), l = !!e.conversationId && !!s, u = y("-mx-(--strhl-row-bleed,0px) flex min-h-(--strhl-row-min-height,32px) max-w-[328px] items-center justify-between gap-2 rounded-full px-3", n && Q.currentRun, l && "w-full cursor-pointer text-start", l && Q.interactiveRow), d = /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ J("span", {
989
+ className: "flex min-w-0 items-center gap-1",
990
+ children: [r ? /* @__PURE__ */ q(Ee, {
991
+ tooltip: r,
992
+ asChild: !0,
993
+ contentClassName: "max-w-[320px] whitespace-pre-wrap break-words",
994
+ children: /* @__PURE__ */ q("span", {
995
+ className: "flex shrink-0",
996
+ tabIndex: l ? void 0 : 0,
997
+ children: /* @__PURE__ */ q(Ot, { status: e.status })
998
+ })
999
+ }) : /* @__PURE__ */ q(Ot, { status: e.status }), /* @__PURE__ */ J("span", {
1000
+ className: "flex min-w-0 items-center gap-1",
1001
+ children: [/* @__PURE__ */ q("span", {
1002
+ className: y(e.isUnread ? m : p, "truncate"),
919
1003
  children: e.timestampLabel
1004
+ }), e.durationLabel && /* @__PURE__ */ q("span", {
1005
+ className: y(p, Q.subtitleText, "shrink-0"),
1006
+ children: e.durationLabel
920
1007
  })]
921
- }), /* @__PURE__ */ V("span", {
922
- className: "flex min-h-[var(--strhl-row-min-height,32px)] w-14 shrink-0 items-center justify-end",
923
- children: /* @__PURE__ */ V(ot, { status: e.status })
924
1008
  })]
1009
+ }), /* @__PURE__ */ q("span", {
1010
+ className: "relative flex size-3 shrink-0 items-center justify-center",
1011
+ children: e.isUnread && /* @__PURE__ */ q("span", {
1012
+ className: y("size-[5.33px] rounded-full", Q.unreadDot),
1013
+ "aria-hidden": !0
1014
+ })
1015
+ })] });
1016
+ return l ? /* @__PURE__ */ q("li", { children: /* @__PURE__ */ q("button", {
1017
+ type: "button",
1018
+ "aria-label": a,
1019
+ "aria-current": n ? "true" : void 0,
1020
+ className: u,
1021
+ onClick: () => s?.(e),
1022
+ children: d
1023
+ }) }, e.id) : /* @__PURE__ */ q("li", {
1024
+ "aria-label": a,
1025
+ "aria-current": n ? "true" : void 0,
1026
+ className: u,
1027
+ children: d
925
1028
  }, e.id);
926
- }, b = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */ H("li", {
1029
+ }, x = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */ J("li", {
927
1030
  "aria-hidden": "true",
928
- className: v("flex min-h-[var(--strhl-row-min-height,32px)] max-w-[328px] items-center justify-between gap-2 pe-2", Q.rowLayout),
929
- children: [/* @__PURE__ */ V(j, {
930
- variant: M.Rectangular,
1031
+ className: "-mx-(--strhl-row-bleed,0px) flex min-h-(--strhl-row-min-height,32px) max-w-[328px] items-center justify-between gap-2 px-3",
1032
+ children: [/* @__PURE__ */ q(z, {
1033
+ variant: B.Rectangular,
931
1034
  width: "160px",
932
1035
  height: "16px"
933
- }), /* @__PURE__ */ V(j, {
934
- variant: M.Rectangular,
1036
+ }), /* @__PURE__ */ q(z, {
1037
+ variant: B.Rectangular,
935
1038
  width: "16px",
936
1039
  height: "16px",
937
1040
  className: "shrink-0 rounded-full"
938
1041
  })]
939
1042
  }, `history-skeleton-${t}`));
940
- return t && e.length === 0 ? /* @__PURE__ */ V("ul", {
1043
+ return t && e.length === 0 ? /* @__PURE__ */ q("ul", {
941
1044
  style: {
942
- ...g,
1045
+ ..._,
943
1046
  "--strhl-row-min-height": u?.rowMinHeight
944
1047
  },
945
1048
  "aria-label": c.historyTitle,
946
1049
  className: "flex flex-col gap-0.5",
947
- children: b(r)
948
- }) : i && e.length === 0 ? /* @__PURE__ */ H("div", {
949
- style: g,
1050
+ children: x(r)
1051
+ }) : i && e.length === 0 ? /* @__PURE__ */ J("div", {
1052
+ style: _,
950
1053
  className: "flex flex-col items-start gap-3",
951
- children: [/* @__PURE__ */ V("p", {
952
- role: "alert",
953
- className: v(m, Q.subtitleText),
1054
+ children: [/* @__PURE__ */ q("p", {
1055
+ role: "status",
1056
+ className: y(h, Q.subtitleText),
954
1057
  children: c.errorLabel
955
- }), /* @__PURE__ */ V(k, {
1058
+ }), /* @__PURE__ */ q(k, {
956
1059
  label: c.retryLabel,
957
1060
  onClick: a
958
1061
  })]
959
- }) : e.length === 0 ? /* @__PURE__ */ H("div", {
960
- style: g,
961
- className: "flex w-full flex-col items-center justify-center gap-2 py-4",
962
- children: [/* @__PURE__ */ V(Se, {
963
- size: 44,
964
- stroke: O,
965
- className: Q.subtitleText,
966
- "aria-hidden": !0
967
- }), /* @__PURE__ */ V("p", {
968
- role: "status",
969
- className: p,
970
- children: c.emptyLabel
971
- })]
972
- }) : /* @__PURE__ */ H("ul", {
1062
+ }) : e.length === 0 ? /* @__PURE__ */ q("div", {
1063
+ style: _,
1064
+ className: "w-full py-4",
1065
+ children: /* @__PURE__ */ q(ve, {
1066
+ title: c.emptyLabel,
1067
+ description: c.emptyDescription,
1068
+ live: !0
1069
+ })
1070
+ }) : /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ J("ul", {
973
1071
  style: {
974
- ...g,
1072
+ ..._,
975
1073
  "--strhl-row-min-height": u?.rowMinHeight
976
1074
  },
977
1075
  "aria-label": c.historyTitle,
978
1076
  className: "flex flex-col gap-0.5",
979
1077
  children: [
980
- e.map(y),
981
- n && b(r),
982
- i ? /* @__PURE__ */ H("li", {
1078
+ e.map(b),
1079
+ n && x(r),
1080
+ i ? /* @__PURE__ */ J("li", {
983
1081
  className: "flex flex-col items-start gap-3 px-5 py-2",
984
- children: [/* @__PURE__ */ V("p", {
985
- role: "alert",
986
- className: v(m, Q.subtitleText),
1082
+ children: [/* @__PURE__ */ q("p", {
1083
+ className: y(h, Q.subtitleText),
987
1084
  children: c.errorLabel
988
- }), /* @__PURE__ */ V(k, {
1085
+ }), /* @__PURE__ */ q(k, {
989
1086
  label: c.retryLabel,
990
1087
  onClick: a
991
1088
  })]
992
1089
  }) : l
993
1090
  ]
994
- });
995
- }, ct = {
1091
+ }), /* @__PURE__ */ q(j, {
1092
+ politeness: ge.Assertive,
1093
+ visuallyHidden: !0,
1094
+ as: M.Span,
1095
+ children: i ? c.errorLabel : ""
1096
+ })] });
1097
+ }, At = {
996
1098
  historyCard: "_historyCard_153p9_4",
997
1099
  subtitleText: "_subtitleText_153p9_8",
998
1100
  cardLayout: "_cardLayout_153p9_13"
999
- }, lt = ({ 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: h = "dial-body-semi-text", colors: g, styles: _ }) => {
1000
- let y = e === et.Card, b = y ? v("sticky bottom-0 z-10 rounded-b-xl px-6 pb-5 pt-2", ct.historyCard) : "pt-2", x = l ? /* @__PURE__ */ H("li", {
1001
- className: b,
1002
- children: [/* @__PURE__ */ V("p", {
1003
- role: "alert",
1004
- children: t.historyLoadMoreErrorLabel ?? t.historyErrorLabel
1005
- }), u && /* @__PURE__ */ V(k, {
1101
+ }, jt = ({ 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", runTimestampUnreadClassName: h = "dial-small-semi-text", sectionTitleClassName: g = "dial-body-semi-text", colors: _, styles: v }) => {
1102
+ let b = e === xt.Card, x = b ? y("sticky bottom-0 z-10 rounded-b-xl px-6 pb-5 pt-2", At.historyCard) : "pt-2", ee = t.historyLoadMoreErrorLabel ?? t.historyErrorLabel, te = l ? /* @__PURE__ */ J("li", {
1103
+ className: x,
1104
+ children: [/* @__PURE__ */ q("p", { children: ee }), u && /* @__PURE__ */ q(k, {
1006
1105
  label: t.historyRetryLabel,
1007
1106
  onClick: u,
1008
1107
  disabled: a
1009
1108
  })]
1010
- }) : f && d && t.historyShowMoreLabel ? /* @__PURE__ */ V("li", {
1011
- className: b,
1012
- children: /* @__PURE__ */ V(k, {
1109
+ }) : f && d && t.historyShowMoreLabel ? /* @__PURE__ */ q("li", {
1110
+ className: x,
1111
+ children: /* @__PURE__ */ q(k, {
1013
1112
  label: t.historyShowMoreLabel,
1014
1113
  onClick: f,
1015
1114
  disabled: a
1016
1115
  })
1017
- }) : void 0, ee = n ? /* @__PURE__ */ V("p", {
1018
- className: v(m, ct.subtitleText),
1116
+ }) : void 0, S = n ? /* @__PURE__ */ q("p", {
1117
+ className: y(m, At.subtitleText),
1019
1118
  children: n
1020
- }) : void 0, te = t.historyLoadingMoreLabel ? /* @__PURE__ */ V("span", {
1021
- role: "status",
1022
- "aria-live": "polite",
1023
- className: "sr-only",
1119
+ }) : void 0, C = /* @__PURE__ */ q(j, {
1120
+ politeness: ge.Assertive,
1121
+ visuallyHidden: !0,
1122
+ as: M.Span,
1123
+ children: l ? ee : ""
1124
+ }), w = t.historyLoadingMoreLabel ? /* @__PURE__ */ q(j, {
1125
+ visuallyHidden: !0,
1126
+ as: M.Span,
1024
1127
  children: a ? t.historyLoadingMoreLabel : ""
1025
- }) : void 0, S = /* @__PURE__ */ V(st, {
1128
+ }) : void 0, ne = /* @__PURE__ */ q(kt, {
1026
1129
  items: r,
1027
1130
  isLoading: i,
1028
1131
  isLoadingMore: a,
@@ -1033,44 +1136,51 @@ var W = {
1033
1136
  labels: {
1034
1137
  historyTitle: t.historyTitle,
1035
1138
  emptyLabel: t.historyEmptyLabel,
1139
+ emptyDescription: t.historyEmptyDescription,
1036
1140
  errorLabel: t.historyErrorLabel,
1037
1141
  retryLabel: t.historyRetryLabel,
1038
1142
  runStatusLabels: t.runStatusLabels,
1039
1143
  unreadIndicatorLabel: t.unreadIndicatorLabel
1040
1144
  },
1041
- footer: x,
1145
+ footer: te,
1042
1146
  styles: {
1043
- typography: { runTimestampClassName: m },
1044
- colors: _?.colors ?? g,
1045
- rowMinHeight: _?.rowMinHeight,
1046
- rowHoverBackground: _?.rowHoverBackground,
1047
- rowFocusBackground: _?.rowFocusBackground,
1048
- rowFocusOutline: _?.rowFocusOutline
1147
+ typography: {
1148
+ runTimestampClassName: m,
1149
+ runTimestampUnreadClassName: h
1150
+ },
1151
+ colors: v?.colors ?? _,
1152
+ rowMinHeight: v?.rowMinHeight,
1153
+ rowHoverBackground: v?.rowHoverBackground,
1154
+ rowFocusBackground: v?.rowFocusBackground,
1155
+ rowFocusOutline: v?.rowFocusOutline
1049
1156
  }
1050
1157
  });
1051
- return y ? /* @__PURE__ */ H("div", {
1052
- className: v("flex max-h-[var(--st-history-max-height,70vh)] w-full max-w-full flex-col overflow-y-auto rounded-xl shadow-md", ct.historyCard, ct.cardLayout),
1053
- style: { "--st-history-max-height": _?.maxHeight },
1054
- children: [/* @__PURE__ */ H("div", {
1055
- className: v("sticky top-0 z-10 flex flex-col gap-4 rounded-t-xl px-6 pb-2 pt-5", ct.historyCard),
1158
+ return b ? /* @__PURE__ */ J("div", {
1159
+ className: y("flex max-h-(--st-history-max-height,70vh) w-full max-w-full flex-col overflow-y-auto rounded-xl shadow-md", At.historyCard, At.cardLayout),
1160
+ style: { "--st-history-max-height": v?.maxHeight },
1161
+ children: [/* @__PURE__ */ J("div", {
1162
+ className: y("sticky top-0 z-10 flex flex-col gap-4 rounded-t-xl px-6 pt-5 pb-2", At.historyCard),
1056
1163
  children: [
1057
- /* @__PURE__ */ V("h2", {
1058
- className: h,
1164
+ /* @__PURE__ */ q("h2", {
1165
+ className: g,
1059
1166
  children: t.historyTitle
1060
1167
  }),
1061
- ee,
1062
- te
1168
+ S,
1169
+ w,
1170
+ C
1063
1171
  ]
1064
- }), /* @__PURE__ */ V("div", {
1172
+ }), /* @__PURE__ */ q("div", {
1065
1173
  className: "flex flex-1 flex-col gap-4 px-6 pb-2",
1066
- children: S
1174
+ style: { "--strhl-row-bleed": "12px" },
1175
+ children: ne
1067
1176
  })]
1068
- }) : /* @__PURE__ */ H("div", {
1177
+ }) : /* @__PURE__ */ J("div", {
1069
1178
  className: "flex flex-col gap-4",
1070
1179
  children: [
1071
- ee,
1072
- te,
1073
- S
1180
+ S,
1181
+ w,
1182
+ C,
1183
+ ne
1074
1184
  ]
1075
1185
  });
1076
1186
  }, $ = {
@@ -1086,27 +1196,28 @@ var W = {
1086
1196
  actionButton: "_actionButton_hdn5b_75",
1087
1197
  roundActionButton: "_roundActionButton_hdn5b_82",
1088
1198
  stickyTabs: "_stickyTabs_hdn5b_88"
1089
- }, ut = ({ labels: e, onBack: t, onEdit: n, onStartNow: r, isStarting: i = !1, isStartNowDisabled: a = !1, isStartNowBusy: o = !1, onDelete: s, isDeleting: c = !1, isDeleted: l = !1, isCompleted: u = !1, isActive: d, isActiveUpdating: f = !1, isActiveDisabled: p = !1, activeDisabledReason: m, onActiveChange: h, displayName: g, isLoading: y = !1, error: x, onRetry: ee, description: te, modelLabel: S, repeatsLabel: C, activeWindowLabel: w, completedLabel: T, nextRunLabel: E, instructionsMarkdown: re, skillDisplayNames: ie, renderInstructions: oe, runs: se, runsIsLoading: ce = !1, runsIsLoadingMore: le = !1, runsSkeletonCount: de = 6, runsError: fe, onRunsRetry: A, runsLoadMoreError: pe, onRunsRetryLoadMore: j, runsHasMore: M = !1, onRunsLoadMore: _e, onRunClick: ve, styles: N, className: be, backIcon: xe, layout: P, historyStyles: Se }) => {
1090
- let { colors: F, typography: I } = N ?? {}, R = I?.titleClassName ?? "dial-h2-text", Te = I?.sectionTitleClassName ?? "dial-body-semi-text", Ee = I?.fieldLabelClassName ?? "dial-tiny-text", z = I?.fieldValueClassName ?? "dial-small-text", De = I?.runTimestampClassName ?? "dial-small-text", ke = _({
1091
- "--stdv-bg": F?.background,
1092
- "--stdv-header-border": F?.headerBorder,
1093
- "--stdv-details-border": F?.detailsColumnBorder,
1094
- "--stdv-subtitle-text": F?.subtitleText,
1095
- "--stdv-history-bg": F?.historyCardBackground
1096
- }), Ae = b(), [B, Ne] = je($e.Details), U = Oe(), W = o && !i ? e.startNowBusyLabel : void 0, G = [
1199
+ }, Mt = "min-w-0 max-w-[600px]", Nt = ({ labels: e, onBack: t, onEdit: n, onStartNow: r, isStarting: i = !1, isStartNowDisabled: a = !1, isStartNowBusy: o = !1, onDelete: s, isDeleting: c = !1, isDeleted: l = !1, isCompleted: u = !1, isActive: d, isActiveUpdating: f = !1, isActiveDisabled: p = !1, activeDisabledReason: m, onActiveChange: h, displayName: g, isLoading: _ = !1, error: b, onRetry: x, description: te, modelLabel: S, repeatsLabel: C, activeWindowLabel: w, completedLabel: ne, nextRunLabel: re, instructionsMarkdown: ae, skillDisplayNames: oe, renderInstructions: T, runs: se, runsIsLoading: ce = !1, runsIsLoadingMore: ue = !1, runsSkeletonCount: O = 6, runsError: de, onRunsRetry: fe, runsLoadMoreError: pe, onRunsRetryLoadMore: me, runsHasMore: he = !1, onRunsLoadMore: ge, onRunClick: _e, styles: ve, className: P, backIcon: F, layout: I, historyStyles: ye }) => {
1200
+ let { colors: L, typography: be } = ve ?? {}, R = be?.titleClassName ?? "dial-h2-text", xe = be?.sectionTitleClassName ?? "dial-body-semi-text", z = be?.fieldLabelClassName ?? "dial-tiny-text", B = be?.fieldValueClassName ?? "dial-small-text", Te = be?.runTimestampClassName ?? "dial-small-text", Ee = v({
1201
+ "--stdv-bg": L?.background,
1202
+ "--stdv-header-border": L?.headerBorder,
1203
+ "--stdv-details-border": L?.detailsColumnBorder,
1204
+ "--stdv-subtitle-text": L?.subtitleText,
1205
+ "--stdv-description-text": L?.descriptionText,
1206
+ "--stdv-history-bg": L?.historyCardBackground
1207
+ }), De = ee(), [Oe, V] = Ue(bt.Details), H = G(), U = o && !i ? e.startNowBusyLabel : void 0, Ae = [
1097
1208
  {
1098
- id: $e.Details,
1209
+ id: bt.Details,
1099
1210
  label: e.detailsTitle
1100
1211
  },
1101
1212
  {
1102
- id: $e.Configuration,
1213
+ id: bt.Configuration,
1103
1214
  label: e.configurationTitle
1104
1215
  },
1105
1216
  {
1106
- id: $e.History,
1217
+ id: bt.History,
1107
1218
  label: e.historyTitle
1108
1219
  }
1109
- ], K = G.find((e) => e.id === B)?.label ?? e.detailsTitle, Pe = /* @__PURE__ */ V(it, {
1220
+ ], Me = Ae.find((e) => e.id === Oe)?.label ?? e.detailsTitle, W = /* @__PURE__ */ q(Et, {
1110
1221
  labels: {
1111
1222
  descriptionLabel: e.descriptionLabel,
1112
1223
  modelLabel: e.modelLabel,
@@ -1118,15 +1229,15 @@ var W = {
1118
1229
  modelLabel: S,
1119
1230
  repeatsLabel: C,
1120
1231
  activeWindowLabel: w,
1121
- completedLabel: T,
1122
- fieldLabelClassName: Ee,
1123
- fieldValueClassName: z
1124
- }), q = /* @__PURE__ */ V(nt, {
1232
+ completedLabel: ne,
1233
+ fieldLabelClassName: z,
1234
+ fieldValueClassName: B
1235
+ }), Fe = /* @__PURE__ */ q(wt, {
1125
1236
  instructionsLabel: e.instructionsLabel,
1126
1237
  skillLabel: e.skillLabel,
1127
- skillDisplayNames: ie,
1128
- instructionsMarkdown: re,
1129
- renderInstructions: oe,
1238
+ skillDisplayNames: oe,
1239
+ instructionsMarkdown: ae,
1240
+ renderInstructions: T,
1130
1241
  markdownLabels: {
1131
1242
  codeBlockCopyLabel: e.codeBlockCopyLabel,
1132
1243
  codeBlockCopiedLabel: e.codeBlockCopiedLabel,
@@ -1134,12 +1245,13 @@ var W = {
1134
1245
  tableScrollRegionAriaLabel: e.tableScrollRegionAriaLabel,
1135
1246
  mathScrollRegionAriaLabel: e.mathScrollRegionAriaLabel
1136
1247
  },
1137
- fieldLabelClassName: Ee
1138
- }), J = (t) => /* @__PURE__ */ V(lt, {
1248
+ fieldLabelClassName: z
1249
+ }), Ie = (t) => /* @__PURE__ */ q(jt, {
1139
1250
  variant: t,
1140
1251
  labels: {
1141
1252
  historyTitle: e.historyTitle,
1142
1253
  historyEmptyLabel: e.historyEmptyLabel,
1254
+ historyEmptyDescription: e.historyEmptyDescription,
1143
1255
  historyErrorLabel: e.historyErrorLabel,
1144
1256
  historyLoadMoreErrorLabel: e.historyLoadMoreErrorLabel,
1145
1257
  historyRetryLabel: e.historyRetryLabel,
@@ -1148,267 +1260,442 @@ var W = {
1148
1260
  runStatusLabels: e.runStatusLabels,
1149
1261
  unreadIndicatorLabel: e.unreadIndicatorLabel
1150
1262
  },
1151
- nextRunLabel: E,
1263
+ nextRunLabel: re,
1152
1264
  items: se,
1153
1265
  isLoading: ce,
1154
- isLoadingMore: le,
1155
- skeletonCount: de,
1156
- error: fe,
1157
- onRetry: A,
1266
+ isLoadingMore: ue,
1267
+ skeletonCount: O,
1268
+ error: de,
1269
+ onRetry: fe,
1158
1270
  loadMoreError: pe,
1159
- onRetryLoadMore: j,
1160
- hasMore: M,
1161
- onLoadMore: _e,
1162
- onRunClick: ve,
1163
- runTimestampClassName: De,
1164
- sectionTitleClassName: Te,
1165
- colors: F,
1166
- styles: Se
1271
+ onRetryLoadMore: me,
1272
+ hasMore: he,
1273
+ onLoadMore: ge,
1274
+ onRunClick: _e,
1275
+ runTimestampClassName: Te,
1276
+ sectionTitleClassName: xe,
1277
+ colors: L,
1278
+ styles: ye
1167
1279
  });
1168
- return /* @__PURE__ */ H("div", {
1169
- style: ke,
1170
- className: v("flex h-full min-h-0 w-full flex-col overflow-hidden", $.container, be),
1280
+ return /* @__PURE__ */ J("div", {
1281
+ style: Ee,
1282
+ className: y("flex h-full min-h-0 w-full flex-col overflow-hidden", $.container, P),
1171
1283
  children: [
1172
- /* @__PURE__ */ H("div", {
1173
- className: v("flex min-h-16 shrink-0 items-start justify-between gap-2 px-4 py-2 desktop:h-16 desktop:flex-nowrap desktop:items-center desktop:px-8 desktop:py-0", $.header),
1174
- children: [/* @__PURE__ */ H("div", {
1284
+ /* @__PURE__ */ J("div", {
1285
+ className: y("flex min-h-16 shrink-0 items-start justify-between gap-2 px-4 py-2 desktop:h-16 desktop:flex-nowrap desktop:items-center desktop:px-8 desktop:py-0", $.header),
1286
+ children: [/* @__PURE__ */ J("div", {
1175
1287
  className: "flex min-w-0 items-center gap-2",
1176
1288
  children: [
1177
- /* @__PURE__ */ V(ae, {
1178
- icon: xe === void 0 ? /* @__PURE__ */ V(ye, {
1179
- size: D.LG,
1289
+ /* @__PURE__ */ q(A, {
1290
+ icon: F === void 0 ? /* @__PURE__ */ q(ke, {
1291
+ size: E.LG,
1180
1292
  className: "rtl:scale-x-[-1]",
1181
1293
  "aria-hidden": !0,
1182
- stroke: O
1183
- }) : xe,
1294
+ stroke: D
1295
+ }) : F,
1184
1296
  "aria-label": e.backAriaLabel,
1185
1297
  onClick: t
1186
1298
  }),
1187
- /* @__PURE__ */ V("h1", {
1188
- className: v("truncate", $.desktopTitle, R),
1189
- children: g
1299
+ /* @__PURE__ */ q("h1", {
1300
+ className: y(Mt, $.desktopTitle),
1301
+ children: /* @__PURE__ */ q(le, {
1302
+ text: g,
1303
+ className: R
1304
+ })
1190
1305
  }),
1191
- l && /* @__PURE__ */ V("span", {
1192
- className: v("shrink-0", $.desktopBadge, z, $.subtitleText),
1306
+ l && /* @__PURE__ */ q("span", {
1307
+ className: y("shrink-0", $.desktopBadge, B, $.subtitleText),
1193
1308
  children: e.deletedStateLabel
1194
1309
  })
1195
1310
  ]
1196
- }), /* @__PURE__ */ H("div", {
1197
- className: v("flex min-w-0 flex-1 flex-wrap items-center justify-end gap-2 desktop:flex-none desktop:flex-nowrap", $.headerActions),
1311
+ }), /* @__PURE__ */ J("div", {
1312
+ className: y("flex min-w-0 flex-1 flex-wrap items-center justify-end gap-2 desktop:flex-none desktop:flex-nowrap", $.headerActions),
1198
1313
  children: [
1199
- !l && !u && d !== void 0 && /* @__PURE__ */ H(Me, { children: [/* @__PURE__ */ V(he, {
1314
+ !l && !u && d !== void 0 && /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(Ce, {
1200
1315
  id: "scheduled-task-active-switch",
1201
1316
  labelProps: { label: e.activeStatusLabel },
1202
1317
  isOn: d,
1203
1318
  disabled: f || p || c,
1204
1319
  onChange: (e) => h?.(e)
1205
- }), p && m && /* @__PURE__ */ V("span", {
1206
- className: v(z, $.subtitleText),
1320
+ }), p && m && /* @__PURE__ */ q("span", {
1321
+ className: y(B, $.subtitleText),
1207
1322
  children: m
1208
1323
  })] }),
1209
- !l && s && /* @__PURE__ */ V(k, {
1210
- variant: ne.Danger,
1324
+ !l && s && /* @__PURE__ */ q(k, {
1325
+ variant: ie.Danger,
1211
1326
  label: e.deleteButtonLabel,
1212
- iconBefore: /* @__PURE__ */ V(we, {
1213
- size: D.SM,
1327
+ iconBefore: /* @__PURE__ */ q(Pe, {
1328
+ size: E.SM,
1214
1329
  "aria-hidden": !0,
1215
- stroke: O
1330
+ stroke: D
1216
1331
  }),
1217
1332
  onClick: s,
1218
1333
  disabled: c,
1219
1334
  textClassName: $.actionLabel,
1220
- className: v("min-h-11 shrink-0", $.actionButton)
1335
+ className: y("min-h-11 shrink-0", $.actionButton)
1221
1336
  }),
1222
- !l && n && /* @__PURE__ */ V(ue, {
1337
+ !l && n && /* @__PURE__ */ q(N, {
1223
1338
  label: e.editButtonLabel,
1224
- iconBefore: /* @__PURE__ */ V(Ce, {
1225
- size: D.SM,
1339
+ iconBefore: /* @__PURE__ */ q(je, {
1340
+ size: E.SM,
1226
1341
  "aria-hidden": !0,
1227
- stroke: O
1342
+ stroke: D
1228
1343
  }),
1229
1344
  onClick: n,
1230
1345
  disabled: c,
1231
1346
  textClassName: $.actionLabel,
1232
- className: v("min-h-11 shrink-0", $.actionButton, $.roundActionButton)
1347
+ className: y("min-h-11 shrink-0", $.actionButton, $.roundActionButton)
1233
1348
  }),
1234
- !l && r && e.startNowButtonLabel && /* @__PURE__ */ H("div", {
1349
+ !l && r && e.startNowButtonLabel && /* @__PURE__ */ J("div", {
1235
1350
  "aria-busy": i,
1236
- children: [W && /* @__PURE__ */ V("span", {
1237
- id: U,
1351
+ children: [U && /* @__PURE__ */ q("span", {
1352
+ id: H,
1238
1353
  className: "sr-only",
1239
- children: W
1240
- }), /* @__PURE__ */ V(ue, {
1354
+ children: U
1355
+ }), /* @__PURE__ */ q(N, {
1241
1356
  label: i ? e.startingLabel ?? e.startNowButtonLabel : e.startNowButtonLabel,
1242
- iconBefore: /* @__PURE__ */ V(L, {
1243
- size: D.SM,
1357
+ iconBefore: /* @__PURE__ */ q(Ne, {
1358
+ size: E.SM,
1244
1359
  "aria-hidden": !0,
1245
- stroke: O
1360
+ stroke: D
1246
1361
  }),
1247
1362
  onClick: r,
1248
1363
  disabled: c || i || a || o,
1249
- "aria-describedby": W ? U : void 0,
1250
- tooltipProps: W ? { tooltip: W } : void 0,
1364
+ "aria-describedby": U ? H : void 0,
1365
+ tooltipProps: U ? { tooltip: U } : void 0,
1251
1366
  textClassName: $.actionLabel,
1252
- className: v("min-h-11 shrink-0", $.actionButton, $.roundActionButton)
1367
+ className: y("min-h-11 shrink-0", $.actionButton, $.roundActionButton)
1253
1368
  })]
1254
1369
  })
1255
1370
  ]
1256
1371
  })]
1257
1372
  }),
1258
- /* @__PURE__ */ H("div", {
1259
- className: v("min-w-0 items-center gap-2 px-4 py-3", $.mobileTitleRow),
1260
- children: [/* @__PURE__ */ V("h1", {
1261
- className: v("truncate", R),
1262
- children: g
1263
- }), l && /* @__PURE__ */ V("span", {
1264
- className: v("shrink-0", z, $.subtitleText),
1373
+ /* @__PURE__ */ J("div", {
1374
+ className: y("min-w-0 items-center gap-2 px-4 py-3", $.mobileTitleRow),
1375
+ children: [/* @__PURE__ */ q("h1", {
1376
+ className: Mt,
1377
+ children: /* @__PURE__ */ q(le, {
1378
+ text: g,
1379
+ className: R
1380
+ })
1381
+ }), l && /* @__PURE__ */ q("span", {
1382
+ className: y("shrink-0", B, $.subtitleText),
1265
1383
  children: e.deletedStateLabel
1266
1384
  })]
1267
1385
  }),
1268
- e.activeStatusAnnouncement != null && /* @__PURE__ */ V("span", {
1269
- role: "status",
1270
- "aria-live": "polite",
1271
- className: "sr-only",
1386
+ e.activeStatusAnnouncement != null && /* @__PURE__ */ q(j, {
1387
+ visuallyHidden: !0,
1388
+ as: M.Span,
1272
1389
  children: e.activeStatusAnnouncement
1273
1390
  }),
1274
- e.startStatusAnnouncement != null && /* @__PURE__ */ V("span", {
1275
- role: "status",
1276
- "aria-live": "polite",
1277
- className: "sr-only",
1391
+ e.startStatusAnnouncement != null && /* @__PURE__ */ q(j, {
1392
+ visuallyHidden: !0,
1393
+ as: M.Span,
1278
1394
  children: e.startStatusAnnouncement
1279
1395
  }),
1280
- y && /* @__PURE__ */ V("div", {
1396
+ _ && /* @__PURE__ */ q("div", {
1281
1397
  className: "flex flex-1 items-center justify-center",
1282
- children: /* @__PURE__ */ V(me, {})
1398
+ children: /* @__PURE__ */ q(Se, {})
1283
1399
  }),
1284
- !y && x && /* @__PURE__ */ H("div", {
1400
+ !_ && b && /* @__PURE__ */ J("div", {
1285
1401
  className: "flex flex-1 flex-col items-center justify-center gap-3",
1286
- children: [/* @__PURE__ */ V("p", {
1287
- className: v(z, $.subtitleText),
1402
+ children: [/* @__PURE__ */ q("p", {
1403
+ className: y(B, $.subtitleText),
1288
1404
  children: e.errorLabel
1289
- }), /* @__PURE__ */ V(k, {
1405
+ }), /* @__PURE__ */ q(k, {
1290
1406
  label: e.retryLabel,
1291
- onClick: ee
1407
+ onClick: x
1292
1408
  })]
1293
1409
  }),
1294
- !y && !x && (Ae ? /* @__PURE__ */ H("div", {
1410
+ !_ && !b && (De ? /* @__PURE__ */ J("div", {
1295
1411
  className: "flex min-h-0 flex-1 flex-col overflow-y-auto",
1296
- children: [/* @__PURE__ */ V("div", {
1297
- className: v("sticky top-0 z-10", $.stickyTabs),
1298
- children: /* @__PURE__ */ V(ge, {
1412
+ children: [/* @__PURE__ */ q("div", {
1413
+ className: y("sticky top-0 z-10", $.stickyTabs),
1414
+ children: /* @__PURE__ */ q(we, {
1299
1415
  ariaLabel: e.tabsAriaLabel ?? "Scheduled task sections",
1300
1416
  className: "px-4",
1301
- tabs: G,
1302
- activeTabId: B,
1303
- onTabChange: Ne
1417
+ tabs: Ae,
1418
+ activeTabId: Oe,
1419
+ onTabChange: V
1304
1420
  })
1305
- }), /* @__PURE__ */ V("div", {
1421
+ }), /* @__PURE__ */ q("div", {
1306
1422
  role: "tabpanel",
1307
- "aria-label": K,
1423
+ "aria-label": Me,
1308
1424
  className: "flex flex-1 flex-col gap-5 px-4 py-6",
1309
- children: B === $e.Configuration ? q : B === $e.History ? J(et.Flow) : Pe
1425
+ children: Oe === bt.Configuration ? Fe : Oe === bt.History ? Ie(xt.Flow) : W
1310
1426
  })]
1311
- }) : /* @__PURE__ */ H("div", {
1427
+ }) : /* @__PURE__ */ J("div", {
1312
1428
  style: {
1313
1429
  flexDirection: "row",
1314
- "--st-details-width": P?.detailsWidth,
1315
- "--st-history-width": P?.historyWidth,
1316
- "--st-history-max-height": P?.historyMaxHeight,
1317
- "--st-configuration-min-width": P?.configurationMinWidth
1430
+ "--st-details-width": I?.detailsWidth,
1431
+ "--st-history-width": I?.historyWidth,
1432
+ "--st-history-max-height": I?.historyMaxHeight,
1433
+ "--st-configuration-min-width": I?.configurationMinWidth
1318
1434
  },
1319
1435
  className: "flex min-h-0 flex-1 overflow-y-auto desktop:overflow-hidden",
1320
1436
  children: [
1321
- /* @__PURE__ */ H("div", {
1437
+ /* @__PURE__ */ J("div", {
1322
1438
  role: "group",
1323
1439
  "aria-label": e.detailsTitle,
1324
1440
  style: {
1325
- flex: `0 1 ${P?.detailsWidth ?? "360px"}`,
1441
+ flex: `0 1 ${I?.detailsWidth ?? "360px"}`,
1326
1442
  maxWidth: "100%"
1327
1443
  },
1328
- className: v("flex min-h-0 w-full flex-col gap-5 overflow-y-auto border-e px-8 py-6", $.detailsColumn),
1329
- children: [/* @__PURE__ */ V("h2", {
1330
- className: Te,
1444
+ className: y("flex min-h-0 w-full min-w-0 flex-col gap-5 overflow-y-auto border-e px-8 py-6", $.detailsColumn),
1445
+ children: [/* @__PURE__ */ q("h2", {
1446
+ className: xe,
1331
1447
  children: e.detailsTitle
1332
- }), Pe]
1448
+ }), W]
1333
1449
  }),
1334
- /* @__PURE__ */ H("div", {
1450
+ /* @__PURE__ */ J("div", {
1335
1451
  style: {
1336
- flex: `1 1 ${P?.configurationMinWidth ?? "320px"}`,
1452
+ flex: `1 1 ${I?.configurationMinWidth ?? "320px"}`,
1337
1453
  minWidth: 0
1338
1454
  },
1339
1455
  className: "flex min-h-0 w-full min-w-0 flex-col gap-5 overflow-y-auto px-8 py-6",
1340
- children: [/* @__PURE__ */ V("h2", {
1341
- className: Te,
1456
+ children: [/* @__PURE__ */ q("h2", {
1457
+ className: xe,
1342
1458
  children: e.configurationTitle
1343
- }), q]
1459
+ }), Fe]
1344
1460
  }),
1345
- /* @__PURE__ */ V("div", {
1461
+ /* @__PURE__ */ q("div", {
1346
1462
  style: {
1347
- flex: `0 1 calc(${P?.historyWidth ?? "360px"} + 48px)`,
1463
+ flex: `0 1 calc(${I?.historyWidth ?? "360px"} + 48px)`,
1348
1464
  minWidth: 0
1349
1465
  },
1350
1466
  className: "flex min-h-0 w-full items-start justify-center overflow-y-auto p-6",
1351
- children: J(et.Card)
1467
+ children: Ie(xt.Card)
1352
1468
  })
1353
1469
  ]
1354
1470
  }))
1355
1471
  ]
1356
1472
  });
1357
- }, dt = ({ modelLabel: e, skillLabel: t, skillDisplayNames: n, instructionsLabel: r, modelDisplayName: i, instructionsMarkdown: a, renderInstructions: o, markdownLabels: s, styles: c }) => {
1358
- let l = c?.typography?.fieldLabelClassName ?? "dial-tiny-text", u = c?.typography?.fieldValueClassName ?? "dial-body-text";
1359
- return /* @__PURE__ */ H("div", {
1473
+ }, Pt = { fieldLabel: "_fieldLabel_8nxg8_1" }, Ft = {
1474
+ h1: "mb-3 mt-6 first:mt-0 [text-wrap:balance]",
1475
+ h2: "mb-2 mt-5 first:mt-0 [text-wrap:balance]",
1476
+ h3: "mb-2 mt-4 first:mt-0 [text-wrap:balance]",
1477
+ h4: "mb-2 mt-4 first:mt-0 [text-wrap:balance]",
1478
+ h5: "mb-2 mt-4 first:mt-0 [text-wrap:balance]",
1479
+ h6: "mb-2 mt-4 first:mt-0 [text-wrap:balance]",
1480
+ p: "mb-3 break-words [overflow-wrap:anywhere] [text-wrap:pretty] last:mb-0",
1481
+ ul: "mb-3 space-y-1",
1482
+ ol: "mb-3 space-y-1",
1483
+ codeInline: "mx-0.5 px-1.5 break-words [overflow-wrap:anywhere]",
1484
+ blockquote: "my-4",
1485
+ link: "break-words [overflow-wrap:anywhere]",
1486
+ tableWrapper: "my-4",
1487
+ mathBlock: "my-4"
1488
+ }, It = ({ modelLabel: e, skillLabel: t, skillDisplayNames: n, instructionsLabel: r, modelDisplayName: i, instructionsMarkdown: a, renderInstructions: o, instructionsClassNames: s, markdownLabels: c, styles: l }) => {
1489
+ let u = y(l?.typography?.fieldLabelClassName ?? "dial-tiny-text", Pt.fieldLabel), d = l?.typography?.fieldValueClassName ?? "dial-small-text", f = l?.typography?.instructionsHeadingClassName ?? "dial-small-semi-text", p = l?.typography?.instructionsTextClassName ?? "dial-small-text", h = Ve(() => {
1490
+ let e = Ft;
1491
+ return {
1492
+ ...e,
1493
+ h1: y(f, e.h1),
1494
+ h2: y(f, e.h2),
1495
+ h3: y(f, e.h3),
1496
+ h4: y(f, e.h4),
1497
+ h5: y(f, e.h5),
1498
+ h6: y(f, e.h6),
1499
+ p: y(p, e.p),
1500
+ ul: y(p, e.ul),
1501
+ ol: y(p, e.ol),
1502
+ ...s
1503
+ };
1504
+ }, [
1505
+ f,
1506
+ p,
1507
+ s
1508
+ ]), g = v({ "--stds-field-label": l?.colors?.fieldLabel });
1509
+ return /* @__PURE__ */ J("div", {
1360
1510
  className: "flex flex-col gap-3",
1511
+ style: g,
1361
1512
  children: [
1362
- i && /* @__PURE__ */ H("div", {
1513
+ i && /* @__PURE__ */ J("div", {
1363
1514
  className: "flex flex-col gap-2",
1364
- children: [/* @__PURE__ */ V("span", {
1365
- className: l,
1366
- children: e
1367
- }), /* @__PURE__ */ V("p", {
1515
+ children: [/* @__PURE__ */ q("span", {
1368
1516
  className: u,
1517
+ children: e
1518
+ }), /* @__PURE__ */ q("p", {
1519
+ className: d,
1369
1520
  children: i
1370
1521
  })]
1371
1522
  }),
1372
- !!n?.length && /* @__PURE__ */ H("div", {
1523
+ !!n?.length && /* @__PURE__ */ J("div", {
1373
1524
  className: "flex min-w-0 flex-col gap-2",
1374
- children: [/* @__PURE__ */ V("span", {
1375
- className: l,
1525
+ children: [/* @__PURE__ */ q("span", {
1526
+ className: u,
1376
1527
  children: t
1377
- }), /* @__PURE__ */ V("p", {
1378
- className: `${u} whitespace-normal break-all`,
1379
- children: n?.map((e, t) => /* @__PURE__ */ V("span", {
1528
+ }), /* @__PURE__ */ q("p", {
1529
+ className: y(d, "wrap-anywhere whitespace-normal"),
1530
+ children: n?.map((e, t) => /* @__PURE__ */ q("span", {
1380
1531
  className: "block",
1381
1532
  children: e
1382
1533
  }, `${t}:${e}`))
1383
1534
  })]
1384
1535
  }),
1385
- a && /* @__PURE__ */ H("div", {
1536
+ a && /* @__PURE__ */ J("div", {
1386
1537
  className: "flex flex-col gap-2",
1387
- children: [/* @__PURE__ */ V("span", {
1388
- className: l,
1538
+ children: [/* @__PURE__ */ q("span", {
1539
+ className: u,
1389
1540
  children: r
1390
- }), ((e) => o ? o(e) : /* @__PURE__ */ V(p, {
1541
+ }), ((e) => o ? o(e) : /* @__PURE__ */ q(m, {
1391
1542
  content: e,
1392
- ...s
1543
+ classNames: h,
1544
+ ...c
1393
1545
  }))(a)]
1394
1546
  })
1395
1547
  ]
1396
1548
  });
1397
- }, ft = ({ taskName: e, icon: t, typeLabel: n, body: r, pendingLabel: i, isDeleting: a = !1, styles: o, ...s }) => /* @__PURE__ */ V(l, {
1549
+ }, Lt = ({ className: e, children: t }) => /* @__PURE__ */ q("span", {
1550
+ className: y(e, "block truncate py-1"),
1551
+ children: t
1552
+ }), Rt = { unavailableText: "_unavailableText_1ifqz_1" }, zt = ({ scheduleId: e, items: t, isLoading: n = !1, isLoadingMore: r = !1, skeletonCount: i = 6, error: a, onRetry: o, isUnavailable: s = !1, hasMore: c = !1, onLoadMore: l, currentRunId: u, onRunClick: d, labels: f, titleClassName: p = "dial-tiny-semi-text", contentClassName: m = "ps-3", unavailableTextClassName: h = "dial-body-text", colors: g }) => {
1553
+ let [_, b] = Ue(!0);
1554
+ ze(() => {
1555
+ b(!0);
1556
+ }, [e]);
1557
+ let x = c && !n && l && f.showMoreLabel ? /* @__PURE__ */ q("li", {
1558
+ className: "pt-2",
1559
+ children: /* @__PURE__ */ q(k, {
1560
+ variant: ie.Primary,
1561
+ label: f.showMoreLabel,
1562
+ onClick: l,
1563
+ disabled: r
1564
+ })
1565
+ }) : void 0;
1566
+ return /* @__PURE__ */ J(C, {
1567
+ title: /* @__PURE__ */ q(Lt, {
1568
+ className: p,
1569
+ children: f.title
1570
+ }),
1571
+ expanded: _,
1572
+ onToggle: b,
1573
+ contentClassName: m,
1574
+ children: [/* @__PURE__ */ q(j, {
1575
+ as: M.P,
1576
+ className: y(h, Rt.unavailableText),
1577
+ style: v({ "--stch-unavailable-text": g?.unavailableText }),
1578
+ children: s && f.unavailableLabel
1579
+ }), !s && /* @__PURE__ */ q(kt, {
1580
+ items: t,
1581
+ isLoading: n,
1582
+ isLoadingMore: r,
1583
+ skeletonCount: i,
1584
+ error: a,
1585
+ onRetry: o,
1586
+ currentRunId: u,
1587
+ onRunClick: d,
1588
+ footer: x,
1589
+ labels: {
1590
+ historyTitle: f.title,
1591
+ emptyLabel: f.emptyLabel,
1592
+ errorLabel: f.errorLabel,
1593
+ retryLabel: f.retryLabel,
1594
+ runStatusLabels: f.runStatusLabels,
1595
+ currentRunLabel: f.currentRunLabel,
1596
+ unreadIndicatorLabel: f.unreadIndicatorLabel
1597
+ }
1598
+ })]
1599
+ });
1600
+ }, Bt = { unavailableText: "_unavailableText_j7lij_1" }, Vt = /* @__PURE__ */ function(e) {
1601
+ return e.Ready = "ready", e.Error = "error", e.Unavailable = "unavailable", e;
1602
+ }({}), Ht = ({ scheduleId: e, state: t, onRetry: n, modelDisplayName: r, skillDisplayNames: i, instructionsMarkdown: a, renderInstructions: o, instructionsClassNames: s, markdownLabels: c, summaryStyles: l, labels: u, titleClassName: d = "dial-tiny-semi-text", unavailableTextClassName: f = "dial-body-text", colors: p }) => {
1603
+ let [m, h] = Ue(!1);
1604
+ ze(() => {
1605
+ h(!1);
1606
+ }, [e]);
1607
+ let g = t === "error" || t === "unavailable", _ = t === "error" && n != null, b = /* @__PURE__ */ J(K, { children: [
1608
+ /* @__PURE__ */ q(j, {
1609
+ as: M.P,
1610
+ className: y(f, Bt.unavailableText),
1611
+ style: v({ "--stcd-unavailable-text": p?.unavailableText }),
1612
+ children: g && u.unavailableLabel
1613
+ }),
1614
+ _ && /* @__PURE__ */ q("div", {
1615
+ className: "mt-2",
1616
+ children: /* @__PURE__ */ q(k, {
1617
+ label: u.retryLabel,
1618
+ onClick: n
1619
+ })
1620
+ }),
1621
+ !g && /* @__PURE__ */ q(It, {
1622
+ modelLabel: u.modelLabel,
1623
+ instructionsLabel: u.instructionsLabel,
1624
+ skillLabel: u.skillLabel,
1625
+ skillDisplayNames: i,
1626
+ modelDisplayName: r,
1627
+ instructionsMarkdown: a,
1628
+ renderInstructions: o,
1629
+ instructionsClassNames: s,
1630
+ markdownLabels: c,
1631
+ styles: l
1632
+ })
1633
+ ] });
1634
+ return /* @__PURE__ */ q(C, {
1635
+ title: /* @__PURE__ */ q(Lt, {
1636
+ className: d,
1637
+ children: u.title
1638
+ }),
1639
+ expanded: m,
1640
+ onToggle: h,
1641
+ children: b
1642
+ });
1643
+ }, Ut = (e, t, n) => e ? n?.loggingIn ?? "Logging in…" : t == null ? n?.logIn ?? "Log in" : n?.retry ?? "Retry", Wt = Le(({ isVisible: e, isLoggingIn: t = !1, retryMessage: n, liveAnnouncement: r = "", labels: i, onLogIn: a }) => /* @__PURE__ */ J(K, { children: [e && /* @__PURE__ */ q(De, {
1644
+ surface: F.Neutral,
1645
+ title: i?.title ?? "Log in required.",
1646
+ message: i?.body ?? "Scheduled tasks need authorization to run offline.",
1647
+ action: a && /* @__PURE__ */ q(he, {
1648
+ label: Ut(t, n, i),
1649
+ disabled: t,
1650
+ iconAfter: /* @__PURE__ */ q(V, {
1651
+ size: E.SM,
1652
+ stroke: D,
1653
+ "aria-hidden": !0,
1654
+ className: "rtl:scale-x-[-1]"
1655
+ }),
1656
+ onClick: a,
1657
+ className: "min-h-11 min-w-11"
1658
+ })
1659
+ }), /* @__PURE__ */ q(j, {
1660
+ visuallyHidden: !0,
1661
+ as: M.Span,
1662
+ children: n ?? r
1663
+ })] })), Gt = Le(({ labels: e, titleClassName: t = "dial-small-paragraph-semi-text", bodyClassName: n = "dial-small-paragraph-text" }) => /* @__PURE__ */ q(P, {
1664
+ variant: ye.Error,
1665
+ type: I.SectionMessage,
1666
+ message: /* @__PURE__ */ J("span", {
1667
+ className: "flex min-w-0 flex-wrap items-baseline gap-x-1",
1668
+ children: [/* @__PURE__ */ q("span", {
1669
+ className: y("min-w-0 wrap-break-word", t),
1670
+ children: e?.title ?? "Limited access."
1671
+ }), /* @__PURE__ */ q("span", {
1672
+ className: y("min-w-0 wrap-break-word", n),
1673
+ children: e?.body ?? "You can't create or edit tasks. Contact your administrator for more details."
1674
+ })]
1675
+ })
1676
+ })), Kt = ({ taskName: e, icon: t, typeLabel: n, body: r, pendingLabel: i, isDeleting: a = !1, styles: o, ...s }) => /* @__PURE__ */ q(u, {
1398
1677
  ...s,
1399
- variant: E.Danger,
1678
+ variant: se.Danger,
1400
1679
  popupClassName: o?.popupClassName,
1401
- titleClassName: o?.titleClassName,
1680
+ titleClassName: o?.titleClassName ?? "dial-body-semi-text",
1402
1681
  messageClassName: o?.messageClassName ?? "dial-body-paragraph-text",
1682
+ viewClassName: "pt-0",
1683
+ footerStyles: { colors: { border: "transparent" } },
1403
1684
  message: r,
1404
1685
  isLoading: a,
1405
1686
  loadingStatusLabel: i,
1406
- identity: /* @__PURE__ */ V(h, { children: /* @__PURE__ */ V(u, {
1407
- icon: t,
1408
- typeLabel: n,
1409
- name: e,
1410
- styles: { colors: o?.colors }
1411
- }) })
1687
+ identity: /* @__PURE__ */ q(g, {
1688
+ styles: { colors: {
1689
+ background: o?.colors?.summaryBackground ?? "var(--bg-error, #f3d6d8)",
1690
+ border: o?.colors?.summaryBorder ?? "var(--stroke-error-alpha, #ae2f2f73)"
1691
+ } },
1692
+ children: /* @__PURE__ */ q(d, {
1693
+ icon: t,
1694
+ typeLabel: n,
1695
+ name: e,
1696
+ styles: { colors: o?.colors }
1697
+ })
1698
+ })
1412
1699
  });
1413
1700
  //#endregion
1414
- export { r as DESCRIPTION_MAX_LENGTH, W as SCHEDULED_TASKS_CLASS, Ie as ScheduledTaskCard, Ve as ScheduledTaskCardGrid, Be as ScheduledTaskCardSkeleton, Qe as ScheduledTaskCreateForm, ft as ScheduledTaskDeleteConfirmation, ut as ScheduledTaskDetailView, dt as ScheduledTaskDetailsSummary, lt as ScheduledTaskHistorySection, K as ScheduledTaskPresentationStatus, t as ScheduledTaskRepeat, st as ScheduledTaskRunHistoryList, at as ScheduledTaskRunStatus, G as ScheduledTaskStatus, Ge as ScheduledTasks, Ke as ScheduledTasksSortKey, c as TIME_OF_DAY_PATTERN, Pe as getScheduledTaskStatus, Je as hasScheduledTaskFormChanges };
1701
+ export { r as DESCRIPTION_MAX_LENGTH, qe as SCHEDULED_TASKS_CLASS, Ke as SCHEDULED_TASKS_GRID_DEFAULT_MAX_WIDTH, et as ScheduledTaskCard, at as ScheduledTaskCardGrid, it as ScheduledTaskCardSkeleton, Ht as ScheduledTaskConversationDetailsSection, Vt as ScheduledTaskConversationDetailsState, zt as ScheduledTaskConversationHistorySection, yt as ScheduledTaskCreateForm, Kt as ScheduledTaskDeleteConfirmation, Nt as ScheduledTaskDetailView, It as ScheduledTaskDetailsSummary, jt as ScheduledTaskHistorySection, Je as ScheduledTaskPresentationStatus, t as ScheduledTaskRepeat, kt as ScheduledTaskRunHistoryList, Dt as ScheduledTaskRunStatus, Y as ScheduledTaskStatus, ct as ScheduledTasks, Gt as ScheduledTasksLimitedAccessBanner, Wt as ScheduledTasksLoginBanner, lt as ScheduledTasksSortKey, c as TIME_OF_DAY_PATTERN, Ye as getScheduledTaskStatus, ft as hasScheduledTaskFormChanges };