@epam/ai-dial-scheduled-tasks 1.4.0-dev.12 → 1.4.0-dev.124

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