@epam/ai-dial-scheduled-tasks 1.3.0-dev.32 → 1.3.0-dev.322

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