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

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