@epam/ai-dial-scheduled-tasks 1.3.0-dev.33 → 1.3.0-dev.331

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