@epam/ai-dial-scheduled-tasks 1.4.0-dev.8 → 1.4.0-dev.81

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 +1108 -826
  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 E, useControlErrorAssociation as D, useIsMobile as te, useIsPhone as ne, useTextRefinement as re, useUnsavedChangesGuard as ie } from "@epam/ai-dial-chat-shared";
3
+ import { Accordion as ae, BottomSheet as oe, Button as se, ButtonAppearance as ce, ButtonDropdown as le, ButtonVariant as ue, Calendar as de, CalendarMode as fe, CardShell as pe, ConfirmationPopupVariant as me, DIAL_ICON_SIZE as O, DIAL_KIT_ICON_STROKE as k, Dropdown as he, DropdownOverlayRole as ge, ElementSize as _e, EllipsisTooltip as ve, ErrorMessageNotification as ye, ErrorText as A, FolderPath as be, GhostButton as j, GhostIconButton as xe, Highlight as M, Input as Se, Label as N, LinkButton as P, LiveRegion as F, LiveRegionElement as I, LiveRegionPoliteness as Ce, MenuItem as we, MenuItemMark as Te, NeutralButton as Ee, NoDataContent as L, Notification as De, NotificationSurface as Oe, NotificationType as ke, NotificationVariant as Ae, NumberInput as je, PrimaryButton as Me, Search as Ne, Select as Pe, Skeleton as Fe, SkeletonVariant as R, Spinner as Ie, Switch as Le, Tabs as Re, Textarea as ze, WarningMessageNotification as Be } from "@epam/ai-dial-ui-kit";
4
+ import { IconAlertTriangle as Ve, IconArrowNarrowLeft as He, IconArrowRight as z, IconArrowsSort as Ue, IconCheck as We, IconChevronDown as Ge, IconChevronRight as Ke, IconCircleX as qe, IconPencilMinus as Je, IconPlayerPause as B, IconPlayerPlay as Ye, IconPlus as Xe, IconTrashX as Ze } from "@tabler/icons-react";
5
+ import { Suspense as Qe, lazy as $e, memo as et, useCallback as tt, useEffect as nt, useId as V, useLayoutEffect as rt, useMemo as H, useRef as it, useState as U } from "react";
6
+ import { Fragment as W, jsx as G, jsxs as K } from "react/jsx-runtime";
7
+ import { BuilderFormContainer as at } from "@epam/ai-dial-builder-form";
8
+ import { LazyMarkdownEditor as ot } 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 st = "1180px", ct = {
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
+ }, q = /* @__PURE__ */ function(e) {
15
15
  return e.Scheduled = "scheduled", e.Paused = "paused", e.Completed = "completed", e;
16
- }({}), Xe = /* @__PURE__ */ function(e) {
16
+ }({}), J = /* @__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 J.Active: return q.Scheduled;
21
+ case J.Paused: return q.Paused;
22
+ case J.Completed: return q.Completed;
23
23
  }
24
- return e.isCompleted ? Y.Completed : e.isActive === !1 ? Y.Paused : Y.Scheduled;
25
- }, Qe = {
24
+ return e.isCompleted ? q.Completed : e.isActive === !1 ? q.Paused : q.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
+ [q.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
+ [q.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__ */ G(B, {
43
+ size: O.SM,
44
44
  "aria-hidden": !0,
45
- stroke: A
45
+ stroke: k
46
46
  })
47
47
  },
48
- [Y.Completed]: {
48
+ [q.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__ */ G(We, {
53
+ size: O.SM,
54
54
  "aria-hidden": !0,
55
- stroke: A
55
+ stroke: k
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__ */ K("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 = te(), 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
+ [q.Scheduled]: {
78
78
  text: e.scheduleLabel,
79
79
  textClassName: m
80
80
  },
81
- [Y.Paused]: {
81
+ [q.Paused]: {
82
82
  text: c,
83
83
  textClassName: h
84
84
  },
85
- [Y.Completed]: {
85
+ [q.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__ */ G(M, {
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__ */ K(pe, {
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, ct.card),
117
117
  children: [
118
- /* @__PURE__ */ J("div", {
118
+ /* @__PURE__ */ K("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__ */ G("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__ */ G("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__ */ G("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__ */ K("div", {
135
135
  className: "mt-auto flex shrink-0 flex-col gap-3",
136
- children: [/* @__PURE__ */ q("div", {
136
+ children: [/* @__PURE__ */ G("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__ */ G(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__ */ G(be, {
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__ */ K(pe, {
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__ */ G(Fe, {
164
+ variant: R.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__ */ G("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__ */ G(Fe, {
173
+ variant: R.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__ */ G(Fe, {
180
+ variant: R.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__ */ K("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", ct.cardGrid),
199
+ children: [e.map((e) => /* @__PURE__ */ G(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__ */ G(_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: E } = g ?? {}, D = E?.titleClassName ?? "dial-h1-text", te = E?.subtitleClassName ?? "dial-body-text", ne = w({
221
+ "--st-bg": C?.background,
222
+ "--st-subtitle-text": C?.subtitleText,
223
+ "--st-sort-text": C?.sortButtonText
224
+ }), re = (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
+ }, [ie, ae] = U(!1), [oe, se] = U(!1), de = it(null), fe = tt(() => {
227
+ se(!0);
228
+ }, []), pe = tt(() => {
229
+ se(!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
+ rt(() => {
232
+ let e = de.current;
233
+ oe && ie && e != null && e.offsetParent == null && ae(!1);
234
+ }, [oe, ie]);
235
+ let me = e.sortOptions.find((e) => e.value === i)?.label ?? e.sortLabel, he = H(() => 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
+ ]), ge = bt(s, d, !!c, o.length, n.trim().length > 0, e), ve = it(null);
246
+ nt(() => {
247
+ let e = ve.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 A = () => s ? /* @__PURE__ */ G(Ie, { ariaLabel: e.loadingAriaLabel ?? "Loading scheduled tasks" }) : c ? /* @__PURE__ */ K("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__ */ G("p", {
267
+ className: T(te, yt.subtitle),
268
268
  children: e.errorLabel
269
- }), /* @__PURE__ */ q(M, {
269
+ }), /* @__PURE__ */ G(j, {
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__ */ G(ee, {
274
274
  label: e.noResultsLabel,
275
275
  description: e.noResultsDescription
276
- }) : /* @__PURE__ */ q(g, {
276
+ }) : /* @__PURE__ */ G(ee, {
277
277
  label: e.emptyStateLabel,
278
278
  description: e.emptyStateDescription
279
- }) : /* @__PURE__ */ J("div", {
279
+ }) : /* @__PURE__ */ K("div", {
280
280
  className: "flex w-full flex-col gap-6",
281
281
  children: [
282
- /* @__PURE__ */ q(ot, {
282
+ /* @__PURE__ */ G(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__ */ G(ye, {
293
293
  message: e.loadMoreErrorLabel ?? e.errorLabel,
294
- textClassName: O,
295
- iconStroke: A,
296
- action: /* @__PURE__ */ q(M, {
294
+ textClassName: te,
295
+ iconStroke: k,
296
+ action: /* @__PURE__ */ G(j, {
297
297
  label: e.retryLabel,
298
- onClick: T
298
+ onClick: S
299
299
  })
300
300
  }),
301
- /* @__PURE__ */ q("div", {
302
- ref: _e,
301
+ /* @__PURE__ */ G("div", {
302
+ ref: ve,
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
+ }), be = s || !!c || o.length === 0;
308
+ return /* @__PURE__ */ K("div", {
309
+ style: ne,
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__ */ K("div", {
313
313
  className: "flex items-start justify-between gap-4",
314
- children: [/* @__PURE__ */ J("div", {
314
+ children: [/* @__PURE__ */ K("div", {
315
315
  className: "min-w-0 gap-2",
316
- children: [/* @__PURE__ */ q("h1", {
317
- className: b("truncate", re),
316
+ children: [/* @__PURE__ */ G("h1", {
317
+ className: T("truncate", D),
318
318
  children: e.title
319
- }), /* @__PURE__ */ q("p", {
320
- className: b("mt-1", O, st.subtitle),
319
+ }), /* @__PURE__ */ G("p", {
320
+ className: T("mt-1", te, yt.subtitle),
321
321
  children: e.subtitle
322
322
  })]
323
- }), t != null && /* @__PURE__ */ q(R, {
323
+ }), t != null && /* @__PURE__ */ G(Me, {
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__ */ G(Xe, {
328
+ size: O.SM,
329
329
  "aria-hidden": !0,
330
- stroke: A
330
+ stroke: k
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__ */ K("div", {
337
337
  className: "flex flex-wrap items-center gap-3",
338
- children: [/* @__PURE__ */ q("div", {
338
+ children: [/* @__PURE__ */ G("div", {
339
339
  role: "search",
340
340
  className: "flex-1",
341
- children: /* @__PURE__ */ q(z, {
341
+ children: /* @__PURE__ */ G(Ne, {
342
342
  value: n,
343
- onChange: ae,
343
+ onChange: re,
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: _e.Large,
348
+ onFocus: fe,
349
+ onBlur: pe
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__ */ G("div", {
352
+ ref: de,
353
+ className: T(oe && yt.sortControlHidden),
354
+ children: /* @__PURE__ */ G(le, {
355
+ items: he,
356
+ label: me,
357
+ variant: ue.Primary,
358
+ appearance: ce.Ghost,
359
+ iconBefore: _ === void 0 ? /* @__PURE__ */ G(Ue, {
360
+ size: O.SM,
361
361
  "aria-hidden": !0,
362
- stroke: A
363
- }) : v,
364
- className: st.sortButton
362
+ stroke: k
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__ */ G("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__ */ G(F, {
374
374
  visuallyHidden: !0,
375
- as: F.Span,
375
+ as: I.Span,
376
376
  children: ge
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__ */ G("div", {
379
+ className: T("mx-auto flex size-full w-full min-w-0 flex-col", be && "items-center justify-center"),
380
+ children: A()
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 = et(({ option: e, isSelected: t, query: n, rowClassName: r, onSelect: i }) => /* @__PURE__ */ G(we, {
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__ */ K("span", {
431
+ className: T(X.rowContent, r),
432
+ children: [
433
+ /* @__PURE__ */ G("span", {
434
+ className: X.offset,
435
+ children: /* @__PURE__ */ G(M, {
436
+ text: e.offsetLabel,
437
+ query: n,
438
+ maxLines: 1
439
+ })
440
+ }),
441
+ /* @__PURE__ */ G("span", {
442
+ className: X.name,
443
+ children: /* @__PURE__ */ G(M, {
444
+ text: e.id,
445
+ query: n,
446
+ maxLines: 1
447
+ })
448
+ }),
449
+ e.abbreviation && /* @__PURE__ */ K("span", {
450
+ className: X.abbreviation,
451
+ children: [/* @__PURE__ */ G("span", {
452
+ "aria-hidden": "true",
453
+ children: "•"
454
+ }), /* @__PURE__ */ G(M, {
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] = U(""), l = it(null), u = V(), d = V(), f = Et(s), p = f.length > 0, m = H(() => Dt(e, s), [e, s]);
466
+ nt(() => {
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__ */ G(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__ */ K("div", {
483
+ role: "group",
484
+ "aria-labelledby": e,
485
+ children: [/* @__PURE__ */ G("div", {
486
+ id: e,
487
+ className: T(X.heading, a.headingClassName),
488
+ children: t
489
+ }), v(n)]
490
+ });
491
+ return /* @__PURE__ */ K("div", {
492
+ ref: l,
493
+ className: X.panel,
494
+ style: o,
495
+ onKeyDown: _,
496
+ children: [
497
+ /* @__PURE__ */ G(Ne, {
498
+ value: s,
499
+ onChange: (e) => c(e ?? ""),
500
+ placeholder: i.searchPlaceholder,
501
+ "aria-label": i.searchAriaLabel,
502
+ clearLabel: i.clearSearchAriaLabel
503
+ }),
504
+ /* @__PURE__ */ G(F, {
505
+ visuallyHidden: !0,
506
+ children: p && m.length > 0 ? i.resultsCountLabel(m.length) : ""
507
+ }),
508
+ /* @__PURE__ */ G("div", {
509
+ className: X.results,
510
+ children: m.length === 0 ? /* @__PURE__ */ G(L, {
511
+ title: i.noResultsTitle,
512
+ description: i.noResultsDescription,
513
+ live: !0
514
+ }) : /* @__PURE__ */ K("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 = ne(), [f, p] = U(!1), m = H(() => jt(c), [c]), h = H(() => Mt(u), [u]), g = H(() => Nt(l), [l]), _ = H(() => t.find((e) => e.id === i), [t, i]), v = Pt(t, n), y = /* @__PURE__ */ G(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__ */ G(P, {
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__ */ G(Ge, {
562
+ size: 16,
563
+ stroke: k,
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__ */ G("span", {
573
+ className: T(X.summary, h.rowClassName),
574
+ children: v
575
+ });
576
+ return d ? /* @__PURE__ */ K("div", {
577
+ style: g,
578
+ className: X.field,
579
+ children: [
580
+ x,
581
+ b,
582
+ /* @__PURE__ */ G(oe, {
583
+ open: f,
584
+ title: m.dialogAriaLabel,
585
+ onClose: () => p(!1),
586
+ children: y
587
+ })
588
+ ]
589
+ }) : /* @__PURE__ */ K("div", {
590
+ style: g,
591
+ className: X.field,
592
+ children: [x, /* @__PURE__ */ G(he, {
593
+ open: f,
594
+ onOpenChange: p,
595
+ disabled: a,
596
+ overlayRole: ge.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__ */ G(F, {
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 = V();
617
+ return D(() => document.getElementById(t), f, !!s), /* @__PURE__ */ K("div", {
393
618
  className: "flex flex-1 flex-col gap-1",
394
- children: [/* @__PURE__ */ q(re, {
619
+ children: [/* @__PURE__ */ G(de, {
395
620
  id: t,
396
- mode: O.Date,
397
- value: e(a),
621
+ mode: fe.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__ */ G(A, {
630
+ announce: Ce.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__ */ G(de, {
637
+ mode: fe.Time,
413
638
  value: e,
414
639
  onChange: (e) => {
415
640
  typeof e == "string" && t(e);
@@ -424,40 +649,48 @@ 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__ */ G(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 = it(/* @__PURE__ */ new Date()).current, f = H(() => {
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 = V();
661
+ return D(() => document.getElementById("scheduled-task-run-at"), h, !!c), /* @__PURE__ */ K("div", {
430
662
  className: "flex flex-col gap-1",
431
- children: [/* @__PURE__ */ q(re, {
663
+ children: [/* @__PURE__ */ G(de, {
432
664
  id: "scheduled-task-run-at",
433
- mode: O.DateTime,
434
- value: s(r),
435
- onChange: u,
436
- minDate: l,
665
+ mode: fe.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__ */ G(A, {
678
+ announce: Ce.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_1tbws_1",
686
+ detailsColumn: "_detailsColumn_1tbws_10",
687
+ sectionSubtitle: "_sectionSubtitle_1tbws_14",
688
+ instructionsError: "_instructionsError_1tbws_18",
689
+ refineFeedback: "_refineFeedback_1tbws_22",
690
+ refineError: "_refineError_1tbws_26",
691
+ timeFieldZone: "_timeFieldZone_1tbws_31"
692
+ }, Kt = $e(async () => ({ default: (await ot()).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: ne = !1, onRefineDescription: ae, onRefineInstructions: oe, markdownEditorTheme: le, backIcon: pe, className: he, styles: ge }) => {
693
+ let _e = V(), ve = V(), ye = V(), be = V(), j = V(), xe = V(), M = V(), P = V(), F = V(), I = it(void 0), we = (e) => e ? async (t, n) => {
461
694
  if (I.current && !I.current.aborted) throw new DOMException("Busy", "AbortError");
462
695
  I.current = n;
463
696
  try {
@@ -465,49 +698,80 @@ var Je = "1180px", Ye = {
465
698
  } finally {
466
699
  I.current === n && (I.current = void 0);
467
700
  }
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),
701
+ } : void 0, Te = re({
702
+ value: r.description ?? "",
703
+ onChange: (e) => g("description", e),
704
+ onRefine: we(ae),
705
+ disabled: S
706
+ }), Ee = re({
707
+ value: r.prompt,
708
+ onChange: (e) => g("prompt", e),
709
+ onRefine: we(oe),
710
+ disabled: S
711
+ }), L = Te.isPending || Ee.isPending, De = () => {
712
+ Te.reset(), Ee.reset();
713
+ }, Oe = !!(o && zt(r, o)), ke = ie(Oe), Ae = te(), Me = () => ke.guard(() => {
714
+ De(), v();
715
+ }), Ne = () => ke.guard(() => {
716
+ De(), x();
717
+ }), Fe = E(), R = !r.skillUrls?.length, [Le, Re] = U(), Be = it(/* @__PURE__ */ new Date()).current, Ve = H(() => {
718
+ try {
719
+ return i(n(Be, r.timezone).dateTime);
720
+ } catch {
721
+ return Be;
722
+ }
723
+ }, [Be, r.timezone]), { colors: z, typography: Ue, layout: We } = ge ?? {}, 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", B = Ue?.instructionsErrorClassName ?? "dial-tiny-text", Ye = w({
724
+ "--stcf-details-border": z?.detailsColumnBorder,
725
+ "--stcf-subtitle-text": z?.sectionSubtitleText,
726
+ "--stcf-error-text": z?.instructionsErrorText,
727
+ "--stcf-refine-action-text": z?.refineActionText,
728
+ "--stcf-refine-error-text": z?.refineErrorText
729
+ }), Xe = H(() => {
730
+ if (!t || r.repeat !== h.OneTime || !r.runAt || !c(r.runAt, r.timezone)) return;
731
+ let e = a(r.runAt, r.timezone);
732
+ return jt(t.labels).gapHintLabel(e.slice(11, 16));
733
+ }, [
734
+ t,
735
+ r.repeat,
736
+ r.runAt,
737
+ r.timezone
738
+ ]), Ze = (e, n = !0) => t && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(Ft, {
739
+ id: e,
740
+ options: t.options,
741
+ value: r.timezone,
742
+ browserTimezoneId: t.browserTimezoneId,
743
+ onChange: (e) => g("timezone", e),
744
+ disabled: S,
745
+ isSummaryShown: n,
746
+ ariaDescribedBy: s.timezone ? xe : void 0,
747
+ labels: t.labels,
748
+ colors: t.colors,
749
+ classNames: t.classNames
750
+ }), s.timezone && /* @__PURE__ */ G(A, {
751
+ id: xe,
752
+ className: T(B, Z.instructionsError),
753
+ text: s.timezone
754
+ })] }), $e = {
755
+ feedbackClassName: T(z?.refineActionText && Z.refineFeedback, Ue?.refineFeedbackClassName, ct.refineFeedback),
492
756
  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, {
757
+ }, et = (t) => {
758
+ let n = m.test(t.target.value) ? void 0 : e.timeInvalidLabel;
759
+ Re(n), g("time", t.target.value);
760
+ }, tt = (e) => {
761
+ Re(void 0), g("time", typeof e == "string" ? e : "");
762
+ }, rt = (e) => {
763
+ g("repeat", e);
764
+ }, ot = r.repeat !== h.OneTime && r.repeat !== h.Hourly, st = r.repeat === h.Custom, q = st && !r.daysOfWeek?.length;
765
+ nt(() => {
766
+ ot || Re(void 0);
767
+ }, [ot]);
768
+ let J = ot ? Le ?? s.time : void 0;
769
+ D(() => Lt(d), be, !!s.modelId), D(() => document.getElementById(ve), F, !!s.prompt);
770
+ let lt = (e) => g("runAt", e), ut = (e) => {
771
+ let t = r.daysOfWeek ?? [];
772
+ t.includes(e) ? t.length > 1 && g("daysOfWeek", t.filter((t) => t !== e)) : g("daysOfWeek", [...t, e].sort((e, t) => Number(e) - Number(t)));
773
+ }, dt = ne || !!s.modelId || S || L || !r.displayName.trim() || !r.modelId || !r.prompt.trim() && !r.skillUrls?.length || !!s.skillUrls || r.repeat === h.OneTime && (!r.runAt || !!s.runAt) || ot && !r.time || q || !!J;
774
+ return /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(at, {
511
775
  labels: {
512
776
  title: e.pageTitle,
513
777
  backButtonLabel: e.backButtonLabel,
@@ -515,245 +779,263 @@ var Je = "1180px", Ye = {
515
779
  submitButtonLabel: e.createButtonLabel,
516
780
  submittingLabel: e.submittingLabel ?? "Saving"
517
781
  },
518
- onBack: we,
519
- onCancel: Ee,
782
+ onBack: Me,
783
+ onCancel: Ne,
520
784
  onSubmit: () => {
521
- !et && (!I.current || I.current.aborted) && _();
785
+ !dt && (!I.current || I.current.aborted) && ee();
522
786
  },
523
- isCancelDisabled: E,
524
- isSubmitDisabled: et,
525
- isSubmitting: E,
526
- backIcon: ce === void 0 ? /* @__PURE__ */ q(Oe, {
527
- size: k.LG,
528
- stroke: A,
787
+ isCancelDisabled: S,
788
+ isSubmitDisabled: dt,
789
+ isSubmitting: S,
790
+ backIcon: pe === void 0 ? /* @__PURE__ */ G(He, {
791
+ size: O.LG,
792
+ stroke: k,
529
793
  "aria-hidden": !0,
530
794
  className: "rtl:scale-x-[-1]"
531
- }) : ce,
795
+ }) : pe,
532
796
  layout: {
533
- sideColumnWidth: Ne?.detailsWidth,
534
- columnGap: Ne?.columnGap,
797
+ sideColumnWidth: We?.detailsWidth,
798
+ columnGap: We?.columnGap,
535
799
  reserveEndColumn: !1
536
800
  },
537
- className: le,
801
+ className: he,
538
802
  styles: {
539
- colors: { background: H?.background },
803
+ colors: { background: z?.background },
540
804
  header: {
541
- colors: { borderColor: H?.headerBorder },
542
- typography: { fontClassName: Pe }
805
+ colors: { borderColor: z?.headerBorder },
806
+ typography: { fontClassName: Ge }
543
807
  },
544
- cssVars: ze
808
+ cssVars: Ye
545
809
  },
546
- left: /* @__PURE__ */ J("div", {
810
+ left: /* @__PURE__ */ K("div", {
547
811
  role: "group",
548
812
  "aria-label": e.detailsSectionTitle,
549
- className: b("flex flex-1 flex-col gap-5 py-6 desktop:border-e", Z.detailsColumn, Z.formColumn),
813
+ className: T("flex flex-1 flex-col gap-5 py-6 desktop:border-e", Z.detailsColumn, Z.formColumn),
550
814
  children: [
551
- /* @__PURE__ */ J("div", {
815
+ /* @__PURE__ */ K("div", {
552
816
  className: "flex flex-col gap-1",
553
- children: [/* @__PURE__ */ q("h2", {
554
- className: Fe,
817
+ children: [/* @__PURE__ */ G("h2", {
818
+ className: Ke,
555
819
  children: e.detailsSectionTitle
556
- }), /* @__PURE__ */ q("p", {
557
- className: b(Ie, Z.sectionSubtitle),
820
+ }), /* @__PURE__ */ G("p", {
821
+ className: T(qe, Z.sectionSubtitle),
558
822
  children: e.detailsSectionSubtitle
559
823
  })]
560
824
  }),
561
- /* @__PURE__ */ q(de, {
825
+ /* @__PURE__ */ G(Se, {
562
826
  id: "scheduled-task-display-name",
563
- value: t.displayName,
564
- onChange: (e) => f("displayName", e ?? ""),
827
+ value: r.displayName,
828
+ onChange: (e) => g("displayName", e ?? ""),
565
829
  labelProps: {
566
830
  label: e.displayNameLabel,
567
831
  required: !0
568
832
  },
569
- invalid: !!r.displayName,
570
- error: r.displayName
833
+ invalid: !!s.displayName,
834
+ error: s.displayName
571
835
  }),
572
- /* @__PURE__ */ q(v, {
573
- isEnabled: !!ie,
574
- fieldId: ue,
836
+ /* @__PURE__ */ G(C, {
837
+ isEnabled: !!ae,
838
+ fieldId: _e,
575
839
  label: e.descriptionLabel,
576
840
  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 ?? "",
841
+ refinement: Te,
842
+ disabled: S || L,
843
+ caption: `${(r.description ?? "").length}/500`,
844
+ ...$e,
845
+ children: /* @__PURE__ */ G(ze, {
846
+ id: _e,
847
+ value: r.description ?? "",
584
848
  onChange: (e) => {
585
- ye.reset(), f("description", e);
849
+ Te.reset(), g("description", e);
586
850
  },
587
- labelProps: ie ? void 0 : { label: e.descriptionLabel },
851
+ labelProps: ae ? void 0 : { label: e.descriptionLabel },
588
852
  maxLength: 500,
589
- invalid: !!r.description,
590
- error: r.description
853
+ invalid: !!s.description,
854
+ error: s.description
591
855
  })
592
856
  }),
593
- /* @__PURE__ */ J("div", {
857
+ /* @__PURE__ */ K("div", {
594
858
  className: "flex flex-col gap-1",
595
859
  children: [
596
- /* @__PURE__ */ q(fe, {
597
- id: s,
860
+ /* @__PURE__ */ G(N, {
861
+ id: d,
598
862
  label: e.modelOrAgentLabel,
599
863
  required: !0
600
864
  }),
601
- i,
602
- r.modelId && /* @__PURE__ */ q(j, {
603
- id: P,
604
- className: b(W, Z.instructionsError),
605
- text: r.modelId
865
+ l,
866
+ s.modelId && /* @__PURE__ */ G(A, {
867
+ id: be,
868
+ className: T(B, Z.instructionsError),
869
+ text: s.modelId
606
870
  })
607
871
  ]
608
872
  }),
609
- /* @__PURE__ */ J("div", {
873
+ /* @__PURE__ */ K("div", {
610
874
  className: "flex flex-col gap-3",
611
875
  children: [
612
- /* @__PURE__ */ q(xe, {
876
+ /* @__PURE__ */ G(Pe, {
613
877
  labelProps: { label: e.repeatLabel },
614
- value: t.repeat,
615
- onChange: qe,
878
+ value: r.repeat,
879
+ onChange: rt,
616
880
  options: e.repeatOptions.map((e) => ({
617
881
  value: e.key,
618
882
  label: e.label
619
883
  }))
620
884
  }),
621
- t.repeat === l.OneTime && /* @__PURE__ */ q(bt, {
885
+ r.repeat === h.OneTime && /* @__PURE__ */ G(Gt, {
622
886
  label: e.runAtLabel,
623
887
  placeholder: e.runAtPlaceholder,
624
- value: t.runAt ?? "",
625
- onChange: Qe,
626
- error: r.runAt,
627
- errorClassName: W,
628
- disabled: E
888
+ value: r.runAt ?? "",
889
+ onChange: lt,
890
+ error: s.runAt,
891
+ errorClassName: B,
892
+ disabled: S,
893
+ timezone: t ? r.timezone : void 0
629
894
  }),
630
- t.repeat !== l.OneTime && /* @__PURE__ */ J(K, { children: [
631
- t.repeat === l.Weekly && /* @__PURE__ */ J("div", {
895
+ r.repeat === h.OneTime && /* @__PURE__ */ K(W, { children: [Ze("scheduled-task-timezone"), t && /* @__PURE__ */ G(It, {
896
+ text: Xe,
897
+ colors: t.colors,
898
+ classNames: t.classNames
899
+ })] }),
900
+ r.repeat !== h.OneTime && /* @__PURE__ */ K(W, { children: [
901
+ r.repeat === h.Weekly && /* @__PURE__ */ K("div", {
632
902
  className: "flex flex-col gap-1",
633
- children: [/* @__PURE__ */ q(re, {
903
+ children: [/* @__PURE__ */ G(de, {
634
904
  id: "scheduled-task-day-of-week",
635
- mode: O.Weekday,
636
- value: a(t.dayOfWeek),
637
- onChange: (e) => f("dayOfWeek", o(e)),
905
+ mode: fe.Weekday,
906
+ value: u(r.dayOfWeek),
907
+ onChange: (e) => g("dayOfWeek", f(e)),
638
908
  labelProps: {
639
909
  label: e.dayOfWeekLabel,
640
910
  required: !0
641
911
  },
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
912
+ invalid: !!s.dayOfWeek,
913
+ ariaDescribedBy: s.dayOfWeek ? j : void 0
914
+ }), s.dayOfWeek && /* @__PURE__ */ G(A, {
915
+ id: j,
916
+ className: T(B, Z.instructionsError),
917
+ text: s.dayOfWeek
648
918
  })]
649
919
  }),
650
- Je && /* @__PURE__ */ J("div", {
920
+ ot && /* @__PURE__ */ K("div", {
651
921
  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
- })]
922
+ children: [
923
+ /* @__PURE__ */ K("div", {
924
+ className: "relative",
925
+ children: [/* @__PURE__ */ G(de, {
926
+ id: "scheduled-task-time",
927
+ mode: fe.Time,
928
+ value: r.time,
929
+ onChange: tt,
930
+ onBlur: et,
931
+ labelProps: {
932
+ label: e.timeLabel,
933
+ required: !0
934
+ },
935
+ invalid: !!J,
936
+ ariaDescribedBy: J ? P : void 0,
937
+ disabled: S
938
+ }), t && /* @__PURE__ */ G("span", {
939
+ className: T(Z.timeFieldZone, Mt(t.classNames).rowClassName),
940
+ style: Nt(t.colors),
941
+ title: Pt(t.options, r.timezone),
942
+ children: Pt(t.options, r.timezone)
943
+ })]
944
+ }),
945
+ J && /* @__PURE__ */ G(A, {
946
+ id: P,
947
+ className: T(B, Z.instructionsError),
948
+ text: J
949
+ }),
950
+ Ze("scheduled-task-timezone", !1)
951
+ ]
671
952
  }),
672
- Y && /* @__PURE__ */ J("div", {
953
+ st && /* @__PURE__ */ K("div", {
673
954
  className: "flex flex-col gap-1",
674
955
  children: [
675
- /* @__PURE__ */ q(fe, {
676
- id: pe,
956
+ /* @__PURE__ */ G(N, {
957
+ id: ye,
677
958
  label: e.daysOfWeekLabel,
678
959
  required: !0
679
960
  }),
680
- /* @__PURE__ */ q("div", {
961
+ /* @__PURE__ */ G("div", {
681
962
  role: "group",
682
- "aria-labelledby": pe,
963
+ "aria-labelledby": ye,
683
964
  className: "flex gap-0.5",
684
965
  children: e.customDayOptions.map((e) => {
685
- let n = !!t.daysOfWeek?.includes(e.value);
686
- return /* @__PURE__ */ q(D, {
966
+ let t = !!r.daysOfWeek?.includes(e.value);
967
+ return /* @__PURE__ */ G(se, {
687
968
  "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,
969
+ "aria-pressed": t,
970
+ "aria-describedby": s.daysOfWeek ? M : void 0,
971
+ variant: t ? ue.Primary : ue.Neutral,
972
+ appearance: ce.Solid,
692
973
  className: "w-10 rounded-full",
693
974
  label: e.shortLabel,
694
- onClick: () => $e(e.value),
695
- disabled: E
975
+ onClick: () => ut(e.value),
976
+ disabled: S
696
977
  }, e.value);
697
978
  })
698
979
  }),
699
- r.daysOfWeek && /* @__PURE__ */ q(j, {
700
- id: he,
701
- className: b(W, Z.instructionsError),
702
- text: r.daysOfWeek
980
+ s.daysOfWeek && /* @__PURE__ */ G(A, {
981
+ id: M,
982
+ className: T(B, Z.instructionsError),
983
+ text: s.daysOfWeek
703
984
  })
704
985
  ]
705
986
  }),
706
- t.repeat === l.Monthly && /* @__PURE__ */ q(be, {
987
+ r.repeat === h.Monthly && /* @__PURE__ */ G(je, {
707
988
  id: "scheduled-task-day-of-month",
708
989
  integer: !0,
709
990
  min: 1,
710
991
  max: 31,
711
- value: t.dayOfMonth ?? "",
712
- onChange: (e) => f("dayOfMonth", e == null ? "" : String(e)),
992
+ value: r.dayOfMonth ?? "",
993
+ onChange: (e) => g("dayOfMonth", e == null ? "" : String(e)),
713
994
  labelProps: {
714
995
  label: e.dayOfMonthLabel,
715
996
  required: !0
716
997
  },
717
- invalid: !!r.dayOfMonth,
718
- error: r.dayOfMonth
998
+ invalid: !!s.dayOfMonth,
999
+ error: s.dayOfMonth
719
1000
  }),
720
- t.repeat === l.Hourly && /* @__PURE__ */ q(be, {
1001
+ r.repeat === h.Hourly && /* @__PURE__ */ G(je, {
721
1002
  id: "scheduled-task-minute",
722
1003
  integer: !0,
723
1004
  min: 0,
724
1005
  max: 59,
725
1006
  wrapperClassName: "w-[142px]",
726
- value: t.minute ?? "",
727
- onChange: (e) => f("minute", e == null ? "" : String(e)),
1007
+ value: r.minute ?? "",
1008
+ onChange: (e) => g("minute", e == null ? "" : String(e)),
728
1009
  labelProps: {
729
1010
  label: e.minuteLabel,
730
1011
  required: !0
731
1012
  },
732
- invalid: !!r.minute,
733
- error: r.minute
1013
+ invalid: !!s.minute,
1014
+ error: s.minute
734
1015
  }),
735
- /* @__PURE__ */ J("div", {
1016
+ r.repeat === h.Hourly && Ze("scheduled-task-timezone"),
1017
+ /* @__PURE__ */ K("div", {
736
1018
  className: "flex flex-row gap-3",
737
- children: [/* @__PURE__ */ q(gt, {
1019
+ children: [/* @__PURE__ */ G(Vt, {
738
1020
  id: "scheduled-task-start-date",
739
1021
  label: e.startDateLabel,
740
1022
  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, {
1023
+ value: r.startDate,
1024
+ onChange: (e) => g("startDate", e),
1025
+ minDate: Ve,
1026
+ error: s.startDate,
1027
+ errorClassName: B,
1028
+ disabled: S
1029
+ }), /* @__PURE__ */ G(Vt, {
748
1030
  id: "scheduled-task-end-date",
749
1031
  label: e.endDateLabel,
750
1032
  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
1033
+ value: r.endDate,
1034
+ onChange: (e) => g("endDate", e),
1035
+ minDate: Ve,
1036
+ error: s.endDate,
1037
+ errorClassName: B,
1038
+ disabled: S
757
1039
  })]
758
1040
  })
759
1041
  ] })
@@ -761,68 +1043,68 @@ var Je = "1180px", Ye = {
761
1043
  })
762
1044
  ]
763
1045
  }),
764
- children: /* @__PURE__ */ J("div", {
1046
+ children: /* @__PURE__ */ K("div", {
765
1047
  role: "group",
766
1048
  "aria-label": e.configurationSectionTitle,
767
- className: b("flex flex-1 flex-col gap-5 py-6", Z.formColumn),
1049
+ className: T("flex flex-1 flex-col gap-5 py-6", Z.formColumn),
768
1050
  children: [
769
- /* @__PURE__ */ q("div", {
1051
+ /* @__PURE__ */ G("div", {
770
1052
  className: "flex flex-col gap-1",
771
- children: /* @__PURE__ */ q("h2", {
772
- className: Fe,
1053
+ children: /* @__PURE__ */ G("h2", {
1054
+ className: Ke,
773
1055
  children: e.configurationSectionTitle
774
1056
  })
775
1057
  }),
776
- u == null ? /* @__PURE__ */ q(j, {
777
- announce: me.Polite,
778
- className: b(W, Z.instructionsError),
779
- text: r.skillUrls ?? ""
780
- }) : /* @__PURE__ */ q("div", {
1058
+ p == null ? /* @__PURE__ */ G(A, {
1059
+ announce: Ce.Polite,
1060
+ className: T(B, Z.instructionsError),
1061
+ text: s.skillUrls ?? ""
1062
+ }) : /* @__PURE__ */ G("div", {
781
1063
  className: "w-full max-w-[996px] min-w-0",
782
- children: u
1064
+ children: p
783
1065
  }),
784
- /* @__PURE__ */ q("div", {
1066
+ /* @__PURE__ */ G("div", {
785
1067
  className: "flex w-full max-w-[996px] min-w-0 flex-col",
786
- children: /* @__PURE__ */ q(v, {
1068
+ children: /* @__PURE__ */ G(C, {
787
1069
  isEnabled: !!oe,
788
- fieldId: N,
789
- labelClassName: Le,
1070
+ fieldId: ve,
1071
+ labelClassName: Je,
790
1072
  label: e.instructionsLabel,
791
- required: ke,
1073
+ required: R,
792
1074
  labels: e,
793
- refinement: L,
794
- disabled: E || R,
795
- ...Be,
796
- children: /* @__PURE__ */ J("div", {
1075
+ refinement: Ee,
1076
+ disabled: S || L,
1077
+ ...$e,
1078
+ children: /* @__PURE__ */ K("div", {
797
1079
  className: "flex flex-1 flex-col gap-1",
798
1080
  children: [
799
- !oe && /* @__PURE__ */ q(fe, {
800
- htmlFor: N,
801
- className: Le,
1081
+ !oe && /* @__PURE__ */ G(N, {
1082
+ htmlFor: ve,
1083
+ className: Je,
802
1084
  label: e.instructionsLabel,
803
- required: ke
1085
+ required: R
804
1086
  }),
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,
1087
+ /* @__PURE__ */ G("div", {
1088
+ ref: Fe,
1089
+ className: T("w-full", y, b),
1090
+ children: /* @__PURE__ */ G(Qe, {
1091
+ fallback: /* @__PURE__ */ G(Ie, { ariaLabel: e.editorLoadingAriaLabel ?? "Loading editor" }),
1092
+ children: /* @__PURE__ */ G(Kt, {
1093
+ id: ve,
1094
+ value: r.prompt,
813
1095
  onChange: (e) => {
814
- L.reset(), f("prompt", e);
1096
+ Ee.reset(), g("prompt", e);
815
1097
  },
816
1098
  height: 480,
817
- theme: se,
1099
+ theme: le,
818
1100
  placeholder: e.instructionsPlaceholder
819
1101
  })
820
1102
  })
821
1103
  }),
822
- r.prompt && /* @__PURE__ */ q(j, {
823
- id: _e,
824
- className: b(W, Z.instructionsError),
825
- text: r.prompt
1104
+ s.prompt && /* @__PURE__ */ G(A, {
1105
+ id: F,
1106
+ className: T(B, Z.instructionsError),
1107
+ text: s.prompt
826
1108
  })
827
1109
  ]
828
1110
  })
@@ -830,111 +1112,111 @@ var Je = "1180px", Ye = {
830
1112
  })
831
1113
  ]
832
1114
  })
833
- }), V.isConfirmOpen && /* @__PURE__ */ q(d, {
1115
+ }), ke.isConfirmOpen && /* @__PURE__ */ G(_, {
834
1116
  open: !0,
835
1117
  title: e.discardTitle ?? "Discard unsaved changes?",
836
1118
  message: e.discardMessage ?? "You have unsaved changes. Leaving now will discard them.",
837
- confirmLabel: Ce ? e.discardConfirmMobileLabel ?? "Discard" : e.discardConfirmLabel ?? "Discard changes",
1119
+ confirmLabel: Ae ? e.discardConfirmMobileLabel ?? "Discard" : e.discardConfirmLabel ?? "Discard changes",
838
1120
  cancelLabel: e.discardCancelLabel ?? "Keep editing",
839
- variant: ae.Danger,
840
- onConfirm: V.confirm,
841
- onClose: V.dismiss
1121
+ variant: me.Danger,
1122
+ onConfirm: ke.confirm,
1123
+ onClose: ke.dismiss
842
1124
  })] });
843
- }, Ct = /* @__PURE__ */ function(e) {
1125
+ }, Jt = /* @__PURE__ */ function(e) {
844
1126
  return e.Details = "details", e.Configuration = "configuration", e.History = "history", e;
845
- }({}), wt = /* @__PURE__ */ function(e) {
1127
+ }({}), Yt = /* @__PURE__ */ function(e) {
846
1128
  return e.Card = "card", e.Flow = "flow", e;
847
- }({}), Tt = { subtitleText: "_subtitleText_1i4x2_3" }, Et = {
848
- ...u,
1129
+ }({}), Xt = { subtitleText: "_subtitleText_1i4x2_3" }, Zt = {
1130
+ ...g,
849
1131
  ul: "dial-small-paragraph-text mb-3 space-y-1",
850
1132
  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", {
1133
+ }, Qt = ({ skillLabel: e, skillDisplayNames: t, renderSkillName: n, instructionsLabel: r, instructionsMarkdown: i, renderInstructions: a, markdownLabels: o, fieldLabelClassName: s = "dial-tiny-text" }) => /* @__PURE__ */ K("div", {
852
1134
  className: "flex min-w-0 flex-col gap-5",
853
- children: [!!t?.length && /* @__PURE__ */ J("div", {
1135
+ children: [!!t?.length && /* @__PURE__ */ K("div", {
854
1136
  role: "group",
855
1137
  "aria-label": e,
856
1138
  className: "flex min-w-0 flex-col gap-1",
857
- children: [/* @__PURE__ */ q("span", {
858
- className: b(s, Tt.subtitleText),
1139
+ children: [/* @__PURE__ */ G("span", {
1140
+ className: T(s, Xt.subtitleText),
859
1141
  children: e
860
- }), /* @__PURE__ */ q("p", {
1142
+ }), /* @__PURE__ */ G("p", {
861
1143
  className: "wrap-anywhere whitespace-normal",
862
- children: t?.map((e, t) => /* @__PURE__ */ q("span", {
1144
+ children: t?.map((e, t) => /* @__PURE__ */ G("span", {
863
1145
  className: "block",
864
1146
  children: n ? n(e, t) : e
865
1147
  }, `${t}:${e}`))
866
1148
  })]
867
- }), i && /* @__PURE__ */ J("div", {
1149
+ }), i && /* @__PURE__ */ K("div", {
868
1150
  role: "group",
869
1151
  "aria-label": r,
870
1152
  className: "flex min-w-0 flex-col gap-1",
871
- children: [/* @__PURE__ */ q("span", {
872
- className: b(s, Tt.subtitleText),
1153
+ children: [/* @__PURE__ */ G("span", {
1154
+ className: T(s, Xt.subtitleText),
873
1155
  children: r
874
- }), a ? a(i) : /* @__PURE__ */ q(h, {
1156
+ }), a ? a(i) : /* @__PURE__ */ G(x, {
875
1157
  content: i,
876
- classNames: Et,
1158
+ classNames: Zt,
877
1159
  ...o
878
1160
  })]
879
1161
  })]
880
- }), Ot = {
1162
+ }), $t = {
881
1163
  subtitleText: "_subtitleText_1ncri_4",
882
1164
  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" }) => {
1165
+ }, 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
1166
  let l = t?.trim();
885
- return /* @__PURE__ */ J(K, { children: [
886
- l && /* @__PURE__ */ J("div", {
1167
+ return /* @__PURE__ */ K(W, { children: [
1168
+ l && /* @__PURE__ */ K("div", {
887
1169
  className: "flex min-w-0 flex-col gap-1",
888
- children: [/* @__PURE__ */ q("span", {
889
- className: b(s, Ot.subtitleText),
1170
+ children: [/* @__PURE__ */ G("span", {
1171
+ className: T(s, $t.subtitleText),
890
1172
  children: e.descriptionLabel
891
- }), /* @__PURE__ */ q("p", {
892
- className: b(c, "wrap-anywhere whitespace-pre-wrap", Ot.description),
1173
+ }), /* @__PURE__ */ G("p", {
1174
+ className: T(c, "wrap-anywhere whitespace-pre-wrap", $t.description),
893
1175
  children: l
894
1176
  })]
895
1177
  }),
896
- o && /* @__PURE__ */ J("div", {
1178
+ o && /* @__PURE__ */ K("div", {
897
1179
  className: "flex min-w-0 flex-col gap-1",
898
- children: [/* @__PURE__ */ q("span", {
899
- className: b(s, Ot.subtitleText),
1180
+ children: [/* @__PURE__ */ G("span", {
1181
+ className: T(s, $t.subtitleText),
900
1182
  children: e.completedFieldLabel
901
- }), /* @__PURE__ */ q("p", {
1183
+ }), /* @__PURE__ */ G("p", {
902
1184
  className: c,
903
1185
  children: o
904
1186
  })]
905
1187
  }),
906
- n && /* @__PURE__ */ J("div", {
1188
+ n && /* @__PURE__ */ K("div", {
907
1189
  className: "flex min-w-0 flex-col gap-1",
908
- children: [/* @__PURE__ */ q("span", {
909
- className: b(s, Ot.subtitleText),
1190
+ children: [/* @__PURE__ */ G("span", {
1191
+ className: T(s, $t.subtitleText),
910
1192
  children: e.modelLabel
911
- }), /* @__PURE__ */ q("p", {
1193
+ }), /* @__PURE__ */ G("p", {
912
1194
  className: c,
913
1195
  children: r ? r(n) : n
914
1196
  })]
915
1197
  }),
916
- i && /* @__PURE__ */ J("div", {
1198
+ i && /* @__PURE__ */ K("div", {
917
1199
  className: "flex min-w-0 flex-col gap-1",
918
- children: [/* @__PURE__ */ q("span", {
919
- className: b(s, Ot.subtitleText),
1200
+ children: [/* @__PURE__ */ G("span", {
1201
+ className: T(s, $t.subtitleText),
920
1202
  children: e.repeatsLabel
921
- }), /* @__PURE__ */ q("p", {
1203
+ }), /* @__PURE__ */ G("p", {
922
1204
  className: c,
923
1205
  children: i
924
1206
  })]
925
1207
  }),
926
- a && /* @__PURE__ */ J("div", {
1208
+ a && /* @__PURE__ */ K("div", {
927
1209
  className: "flex min-w-0 flex-col gap-1",
928
- children: [/* @__PURE__ */ q("span", {
929
- className: b(s, Ot.subtitleText),
1210
+ children: [/* @__PURE__ */ G("span", {
1211
+ className: T(s, $t.subtitleText),
930
1212
  children: e.activeWindowLabel
931
- }), /* @__PURE__ */ q("p", {
1213
+ }), /* @__PURE__ */ G("p", {
932
1214
  className: c,
933
1215
  children: a
934
1216
  })]
935
1217
  })
936
1218
  ] });
937
- }, At = /* @__PURE__ */ function(e) {
1219
+ }, tn = /* @__PURE__ */ function(e) {
938
1220
  return e.Success = "success", e.Error = "error", e.InProgress = "inProgress", e.Missed = "missed", e;
939
1221
  }({}), Q = {
940
1222
  subtitleText: "_subtitleText_1sc83_1",
@@ -947,39 +1229,39 @@ var Je = "1180px", Ye = {
947
1229
  unreadDot: "_unreadDot_1sc83_44",
948
1230
  chevronIcon: "_chevronIcon_1sc83_48",
949
1231
  errorDetailsText: "_errorDetailsText_1sc83_52"
950
- }, jt = ({ status: e }) => {
1232
+ }, nn = ({ status: e }) => {
951
1233
  switch (e) {
952
- case At.Success: return /* @__PURE__ */ q(je, {
953
- size: k.SM,
1234
+ case tn.Success: return /* @__PURE__ */ G(We, {
1235
+ size: O.SM,
954
1236
  className: Q.successIcon,
955
1237
  "aria-hidden": !0,
956
- stroke: A
1238
+ stroke: k
957
1239
  });
958
- case At.Error: return /* @__PURE__ */ q(U, {
959
- size: k.SM,
1240
+ case tn.Error: return /* @__PURE__ */ G(qe, {
1241
+ size: O.SM,
960
1242
  className: Q.errorIcon,
961
1243
  "aria-hidden": !0,
962
- stroke: A
1244
+ stroke: k
963
1245
  });
964
- case At.InProgress: return /* @__PURE__ */ q("span", {
1246
+ case tn.InProgress: return /* @__PURE__ */ G("span", {
965
1247
  "aria-hidden": !0,
966
- children: /* @__PURE__ */ q(Se, { size: k.SM })
1248
+ children: /* @__PURE__ */ G(Ie, { size: O.SM })
967
1249
  });
968
- case At.Missed: return /* @__PURE__ */ q(De, {
969
- size: k.SM,
1250
+ case tn.Missed: return /* @__PURE__ */ G(Ve, {
1251
+ size: O.SM,
970
1252
  className: Q.missedIcon,
971
1253
  "aria-hidden": !0,
972
- stroke: A
1254
+ stroke: k
973
1255
  });
974
1256
  default: return null;
975
1257
  }
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) => {
1258
+ }, 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 }) => {
1259
+ 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 = V(), [b, x] = U(() => /* @__PURE__ */ new Set()), ee = (e) => {
1260
+ x((t) => {
979
1261
  let n = new Set(t);
980
1262
  return n.has(e) ? n.delete(e) : n.add(e), n;
981
1263
  });
982
- }, T = y({
1264
+ }, S = w({
983
1265
  "--strhl-success-icon": d?.successIconColor,
984
1266
  "--strhl-error-icon": d?.errorIconColor,
985
1267
  "--strhl-missed-icon": d?.missedIconColor,
@@ -993,63 +1275,63 @@ var Je = "1180px", Ye = {
993
1275
  "--strhl-row-focus-bg": u?.rowFocusBackground,
994
1276
  "--strhl-row-focus-outline": u?.rowFocusOutline,
995
1277
  "--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 = [[
1278
+ }), C = (e) => {
1279
+ 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
1280
  t,
999
1281
  e.timestampLabel,
1000
1282
  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", {
1283
+ ].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__ */ K(W, { children: [/* @__PURE__ */ K("span", {
1002
1284
  className: "flex min-w-0 items-center gap-1",
1003
- children: [/* @__PURE__ */ q(jt, { status: e.status }), /* @__PURE__ */ J("span", {
1285
+ children: [/* @__PURE__ */ G(nn, { status: e.status }), /* @__PURE__ */ K("span", {
1004
1286
  className: "flex min-w-0 items-center gap-1",
1005
- children: [/* @__PURE__ */ q("span", {
1006
- className: b(e.isUnread ? m : p, "truncate"),
1287
+ children: [/* @__PURE__ */ G("span", {
1288
+ className: T(e.isUnread ? m : p, "truncate"),
1007
1289
  children: e.timestampLabel
1008
- }), e.durationLabel && /* @__PURE__ */ q("span", {
1009
- className: b(p, Q.subtitleText, "shrink-0"),
1290
+ }), e.durationLabel && /* @__PURE__ */ G("span", {
1291
+ className: T(p, Q.subtitleText, "shrink-0"),
1010
1292
  children: e.durationLabel
1011
1293
  })]
1012
1294
  })]
1013
- }), /* @__PURE__ */ J("span", {
1295
+ }), /* @__PURE__ */ K("span", {
1014
1296
  className: "relative flex size-3 shrink-0 items-center justify-center",
1015
- children: [i && /* @__PURE__ */ q(Me, {
1016
- size: k.SM,
1017
- stroke: A,
1297
+ children: [i && /* @__PURE__ */ G(Ge, {
1298
+ size: O.SM,
1299
+ stroke: k,
1018
1300
  "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),
1301
+ className: T("shrink-0 transition-transform duration-200 motion-reduce:transition-none", Q.chevronIcon, a && "rotate-180")
1302
+ }), !i && e.isUnread && /* @__PURE__ */ G("span", {
1303
+ className: T("size-[5.33px] rounded-full", Q.unreadDot),
1022
1304
  "aria-hidden": !0
1023
1305
  })]
1024
1306
  })] });
1025
1307
  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", {
1308
+ let t = `${y}-${e.id}-header`, i = `${y}-${e.id}-details`;
1309
+ return /* @__PURE__ */ K("li", {
1310
+ className: T(x, "flex flex-col"),
1311
+ children: [/* @__PURE__ */ G("button", {
1030
1312
  type: "button",
1031
1313
  id: t,
1032
1314
  "aria-label": u,
1033
1315
  "aria-current": n ? "true" : void 0,
1034
1316
  "aria-expanded": a,
1035
1317
  "aria-controls": i,
1036
- className: C,
1037
- onClick: () => w(e.id),
1038
- children: T
1039
- }), /* @__PURE__ */ q("div", {
1318
+ className: S,
1319
+ onClick: () => ee(e.id),
1320
+ children: C
1321
+ }), /* @__PURE__ */ G("div", {
1040
1322
  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", {
1323
+ className: T("grid transition-[grid-template-rows] duration-200 ease-out motion-reduce:transition-none", a ? "grid-rows-[1fr]" : "grid-rows-[0fr]"),
1324
+ children: /* @__PURE__ */ G("div", {
1043
1325
  className: "min-h-0 overflow-hidden",
1044
- children: /* @__PURE__ */ J("div", {
1326
+ children: /* @__PURE__ */ K("div", {
1045
1327
  id: i,
1046
1328
  role: "region",
1047
1329
  "aria-labelledby": t,
1048
1330
  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"),
1331
+ children: [/* @__PURE__ */ G("p", {
1332
+ className: T(g, Q.errorDetailsText, "max-w-full wrap-break-word whitespace-pre-wrap"),
1051
1333
  children: r
1052
- }), d && /* @__PURE__ */ q(pe, {
1334
+ }), d && /* @__PURE__ */ G(P, {
1053
1335
  label: v,
1054
1336
  onClick: () => s?.(e)
1055
1337
  })]
@@ -1058,124 +1340,124 @@ var Je = "1180px", Ye = {
1058
1340
  })]
1059
1341
  }, e.id);
1060
1342
  }
1061
- return f ? /* @__PURE__ */ q("li", { children: /* @__PURE__ */ q("button", {
1343
+ return f ? /* @__PURE__ */ G("li", { children: /* @__PURE__ */ G("button", {
1062
1344
  type: "button",
1063
1345
  "aria-label": u,
1064
1346
  "aria-current": n ? "true" : void 0,
1065
- className: b(y, C),
1347
+ className: T(x, S),
1066
1348
  onClick: () => s?.(e),
1067
- children: T
1068
- }) }, e.id) : /* @__PURE__ */ q("li", {
1349
+ children: C
1350
+ }) }, e.id) : /* @__PURE__ */ G("li", {
1069
1351
  "aria-label": u,
1070
1352
  "aria-current": n ? "true" : void 0,
1071
- className: b(y, C),
1072
- children: T
1353
+ className: T(x, S),
1354
+ children: C
1073
1355
  }, e.id);
1074
- }, D = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */ J("li", {
1356
+ }, E = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */ K("li", {
1075
1357
  "aria-hidden": "true",
1076
1358
  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,
1359
+ children: [/* @__PURE__ */ G(Fe, {
1360
+ variant: R.Rectangular,
1079
1361
  width: "160px",
1080
1362
  height: "16px"
1081
- }), /* @__PURE__ */ q(B, {
1082
- variant: V.Rectangular,
1363
+ }), /* @__PURE__ */ G(Fe, {
1364
+ variant: R.Rectangular,
1083
1365
  width: "16px",
1084
1366
  height: "16px",
1085
1367
  className: "shrink-0 rounded-full"
1086
1368
  })]
1087
- }, `history-skeleton-${t}`)), ee = {
1088
- ...T,
1369
+ }, `history-skeleton-${t}`)), D = {
1370
+ ...S,
1089
1371
  "--strhl-row-min-height": u?.rowMinHeight
1090
1372
  }, te = !t && i != null && e.length === 0, ne;
1091
- return ne = t && e.length === 0 ? /* @__PURE__ */ q("ul", {
1092
- style: ee,
1373
+ return ne = t && e.length === 0 ? /* @__PURE__ */ G("ul", {
1374
+ style: D,
1093
1375
  "aria-label": c.historyTitle,
1094
1376
  className: "flex flex-col gap-0.5",
1095
- children: D(r)
1096
- }) : te ? /* @__PURE__ */ J("div", {
1097
- style: T,
1377
+ children: E(r)
1378
+ }) : te ? /* @__PURE__ */ K("div", {
1379
+ style: S,
1098
1380
  className: "flex flex-col items-start gap-3",
1099
- children: [/* @__PURE__ */ q("p", {
1381
+ children: [/* @__PURE__ */ G("p", {
1100
1382
  "aria-hidden": !0,
1101
- className: b(h, Q.subtitleText),
1383
+ className: T(h, Q.subtitleText),
1102
1384
  children: c.errorLabel
1103
- }), /* @__PURE__ */ q(M, {
1385
+ }), /* @__PURE__ */ G(j, {
1104
1386
  label: c.retryLabel,
1105
1387
  onClick: a
1106
1388
  })]
1107
- }) : e.length === 0 ? /* @__PURE__ */ q("div", {
1108
- style: T,
1389
+ }) : e.length === 0 ? /* @__PURE__ */ G("div", {
1390
+ style: S,
1109
1391
  className: "w-full py-4",
1110
- children: /* @__PURE__ */ q(_e, {
1392
+ children: /* @__PURE__ */ G(L, {
1111
1393
  title: c.emptyLabel,
1112
1394
  description: c.emptyDescription,
1113
1395
  live: !0
1114
1396
  })
1115
- }) : /* @__PURE__ */ J("ul", {
1116
- style: ee,
1397
+ }) : /* @__PURE__ */ K("ul", {
1398
+ style: D,
1117
1399
  "aria-label": c.historyTitle,
1118
1400
  className: "flex flex-col gap-0.5",
1119
1401
  children: [
1120
- e.map(E),
1121
- n && D(r),
1122
- i ? /* @__PURE__ */ J("li", {
1402
+ e.map(C),
1403
+ n && E(r),
1404
+ i ? /* @__PURE__ */ K("li", {
1123
1405
  className: "flex flex-col items-start gap-3 px-5 py-2",
1124
- children: [/* @__PURE__ */ q("p", {
1125
- className: b(h, Q.subtitleText),
1406
+ children: [/* @__PURE__ */ G("p", {
1407
+ className: T(h, Q.subtitleText),
1126
1408
  children: c.errorLabel
1127
- }), /* @__PURE__ */ q(M, {
1409
+ }), /* @__PURE__ */ G(j, {
1128
1410
  label: c.retryLabel,
1129
1411
  onClick: a
1130
1412
  })]
1131
1413
  }) : l
1132
1414
  ]
1133
- }), /* @__PURE__ */ J(K, { children: [
1415
+ }), /* @__PURE__ */ K(W, { children: [
1134
1416
  ne,
1135
- /* @__PURE__ */ q(P, {
1417
+ /* @__PURE__ */ G(F, {
1136
1418
  visuallyHidden: !0,
1137
- as: F.Span,
1419
+ as: I.Span,
1138
1420
  children: te ? c.errorLabel : ""
1139
1421
  }),
1140
- /* @__PURE__ */ q(P, {
1141
- politeness: me.Assertive,
1422
+ /* @__PURE__ */ G(F, {
1423
+ politeness: Ce.Assertive,
1142
1424
  visuallyHidden: !0,
1143
- as: F.Span,
1425
+ as: I.Span,
1144
1426
  children: i && e.length > 0 ? c.errorLabel : ""
1145
1427
  })
1146
1428
  ] });
1147
- }, Nt = {
1429
+ }, an = {
1148
1430
  historyCard: "_historyCard_153p9_4",
1149
1431
  subtitleText: "_subtitleText_153p9_8",
1150
1432
  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, {
1433
+ }, 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 }) => {
1434
+ 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__ */ K("li", {
1435
+ className: x,
1436
+ children: [/* @__PURE__ */ G("p", { children: ee }), u && /* @__PURE__ */ G(j, {
1155
1437
  label: t.historyRetryLabel,
1156
1438
  onClick: u,
1157
1439
  disabled: a
1158
1440
  })]
1159
- }) : f && d && t.historyShowMoreLabel ? /* @__PURE__ */ q("li", {
1160
- className: S,
1161
- children: /* @__PURE__ */ q(M, {
1441
+ }) : f && d && t.historyShowMoreLabel ? /* @__PURE__ */ G("li", {
1442
+ className: x,
1443
+ children: /* @__PURE__ */ G(j, {
1162
1444
  label: t.historyShowMoreLabel,
1163
1445
  onClick: f,
1164
1446
  disabled: a
1165
1447
  })
1166
- }) : void 0, T = n ? /* @__PURE__ */ q("p", {
1167
- className: b(m, Nt.subtitleText),
1448
+ }) : void 0, C = n ? /* @__PURE__ */ G("p", {
1449
+ className: T(m, an.subtitleText),
1168
1450
  children: n
1169
- }) : void 0, E = /* @__PURE__ */ q(P, {
1170
- politeness: me.Assertive,
1451
+ }) : void 0, w = /* @__PURE__ */ G(F, {
1452
+ politeness: Ce.Assertive,
1171
1453
  visuallyHidden: !0,
1172
- as: F.Span,
1173
- children: l ? C : ""
1174
- }), D = t.historyLoadingMoreLabel ? /* @__PURE__ */ q(P, {
1454
+ as: I.Span,
1455
+ children: l ? ee : ""
1456
+ }), E = t.historyLoadingMoreLabel ? /* @__PURE__ */ G(F, {
1175
1457
  visuallyHidden: !0,
1176
- as: F.Span,
1458
+ as: I.Span,
1177
1459
  children: a ? t.historyLoadingMoreLabel : ""
1178
- }) : void 0, ee = /* @__PURE__ */ q(Mt, {
1460
+ }) : void 0, D = /* @__PURE__ */ G(rn, {
1179
1461
  items: r,
1180
1462
  isLoading: i,
1181
1463
  isLoadingMore: a,
@@ -1193,7 +1475,7 @@ var Je = "1180px", Ye = {
1193
1475
  unreadIndicatorLabel: t.unreadIndicatorLabel,
1194
1476
  openConversationLabel: t.openConversationLabel
1195
1477
  },
1196
- footer: w,
1478
+ footer: S,
1197
1479
  styles: {
1198
1480
  typography: {
1199
1481
  runTimestampClassName: m,
@@ -1208,32 +1490,32 @@ var Je = "1180px", Ye = {
1208
1490
  rowExpandedBackground: y?.rowExpandedBackground
1209
1491
  }
1210
1492
  });
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),
1493
+ return b ? /* @__PURE__ */ K("div", {
1494
+ 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
1495
  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),
1496
+ children: [/* @__PURE__ */ K("div", {
1497
+ className: T("sticky top-0 z-10 flex flex-col gap-4 rounded-t-xl px-6 pt-5 pb-2", an.historyCard),
1216
1498
  children: [
1217
- /* @__PURE__ */ q("h2", {
1499
+ /* @__PURE__ */ G("h2", {
1218
1500
  className: _,
1219
1501
  children: t.historyTitle
1220
1502
  }),
1221
- T,
1222
- D,
1223
- E
1503
+ C,
1504
+ E,
1505
+ w
1224
1506
  ]
1225
- }), /* @__PURE__ */ q("div", {
1507
+ }), /* @__PURE__ */ G("div", {
1226
1508
  className: "flex flex-1 flex-col gap-4 px-6 pb-2",
1227
1509
  style: { "--strhl-row-bleed": "12px" },
1228
- children: ee
1510
+ children: D
1229
1511
  })]
1230
- }) : /* @__PURE__ */ J("div", {
1512
+ }) : /* @__PURE__ */ K("div", {
1231
1513
  className: "flex flex-col gap-4",
1232
1514
  children: [
1233
- T,
1234
- D,
1515
+ C,
1235
1516
  E,
1236
- ee
1517
+ w,
1518
+ D
1237
1519
  ]
1238
1520
  });
1239
1521
  }, $ = {
@@ -1249,28 +1531,28 @@ var Je = "1180px", Ye = {
1249
1531
  actionButton: "_actionButton_hdn5b_75",
1250
1532
  roundActionButton: "_roundActionButton_hdn5b_82",
1251
1533
  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 = [
1534
+ }, 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: E, nextRunLabel: D, instructionsMarkdown: ne, skillDisplayNames: re, renderSkillName: ie, renderInstructions: ae, runs: oe, runsIsLoading: se = !1, runsIsLoadingMore: ce = !1, runsSkeletonCount: le = 6, runsError: de, onRunsRetry: fe, runsLoadMoreError: pe, onRunsRetryLoadMore: me, runsHasMore: he = !1, onRunsLoadMore: ge, onRunClick: _e, styles: ye, className: A, backIcon: be, layout: M, historyStyles: Se }) => {
1535
+ let { colors: N, typography: P } = ye ?? {}, Ce = P?.titleClassName ?? "dial-h2-text", we = P?.sectionTitleClassName ?? "dial-body-semi-text", Te = P?.fieldLabelClassName ?? "dial-tiny-text", L = P?.fieldValueClassName ?? "dial-small-text", De = P?.runTimestampClassName ?? "dial-small-text", Oe = w({
1536
+ "--stdv-bg": N?.background,
1537
+ "--stdv-header-border": N?.headerBorder,
1538
+ "--stdv-details-border": N?.detailsColumnBorder,
1539
+ "--stdv-subtitle-text": N?.subtitleText,
1540
+ "--stdv-description-text": N?.descriptionText,
1541
+ "--stdv-history-bg": N?.historyCardBackground
1542
+ }), ke = te(), [Ae, je] = U(Jt.Details), Me = V(), Ne = o && !i ? e.startNowBusyLabel : void 0, Pe = [
1261
1543
  {
1262
- id: Ct.Details,
1544
+ id: Jt.Details,
1263
1545
  label: e.detailsTitle
1264
1546
  },
1265
1547
  {
1266
- id: Ct.Configuration,
1548
+ id: Jt.Configuration,
1267
1549
  label: e.configurationTitle
1268
1550
  },
1269
1551
  {
1270
- id: Ct.History,
1552
+ id: Jt.History,
1271
1553
  label: e.historyTitle
1272
1554
  }
1273
- ], Pe = U.find((e) => e.id === Ae)?.label ?? e.detailsTitle, Ie = /* @__PURE__ */ q(kt, {
1555
+ ], Fe = Pe.find((e) => e.id === Ae)?.label ?? e.detailsTitle, R = /* @__PURE__ */ G(en, {
1274
1556
  labels: {
1275
1557
  descriptionLabel: e.descriptionLabel,
1276
1558
  modelLabel: e.modelLabel,
@@ -1278,20 +1560,20 @@ var Je = "1180px", Ye = {
1278
1560
  activeWindowLabel: e.activeWindowLabel,
1279
1561
  completedFieldLabel: e.completedFieldLabel
1280
1562
  },
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, {
1563
+ description: b,
1564
+ modelLabel: x,
1565
+ renderModelName: ee,
1566
+ repeatsLabel: S,
1567
+ activeWindowLabel: C,
1568
+ completedLabel: E,
1569
+ fieldLabelClassName: Te,
1570
+ fieldValueClassName: L
1571
+ }), ze = /* @__PURE__ */ G(Qt, {
1290
1572
  instructionsLabel: e.instructionsLabel,
1291
1573
  skillLabel: e.skillLabel,
1292
- skillDisplayNames: O,
1574
+ skillDisplayNames: re,
1293
1575
  renderSkillName: ie,
1294
- instructionsMarkdown: re,
1576
+ instructionsMarkdown: ne,
1295
1577
  renderInstructions: ae,
1296
1578
  markdownLabels: {
1297
1579
  codeBlockCopyLabel: e.codeBlockCopyLabel,
@@ -1300,8 +1582,8 @@ var Je = "1180px", Ye = {
1300
1582
  tableScrollRegionAriaLabel: e.tableScrollRegionAriaLabel,
1301
1583
  mathScrollRegionAriaLabel: e.mathScrollRegionAriaLabel
1302
1584
  },
1303
- fieldLabelClassName: V
1304
- }), W = (t) => /* @__PURE__ */ q(Pt, {
1585
+ fieldLabelClassName: Te
1586
+ }), Be = (t) => /* @__PURE__ */ G(on, {
1305
1587
  variant: t,
1306
1588
  labels: {
1307
1589
  historyTitle: e.historyTitle,
@@ -1316,217 +1598,217 @@ var Je = "1180px", Ye = {
1316
1598
  unreadIndicatorLabel: e.unreadIndicatorLabel,
1317
1599
  openConversationLabel: e.openConversationLabel
1318
1600
  },
1319
- nextRunLabel: te,
1601
+ nextRunLabel: D,
1320
1602
  items: oe,
1321
- isLoading: ce,
1322
- isLoadingMore: j,
1603
+ isLoading: se,
1604
+ isLoadingMore: ce,
1323
1605
  skeletonCount: le,
1324
- error: N,
1325
- onRetry: de,
1326
- loadMoreError: fe,
1327
- onRetryLoadMore: pe,
1328
- hasMore: me,
1329
- onLoadMore: he,
1606
+ error: de,
1607
+ onRetry: fe,
1608
+ loadMoreError: pe,
1609
+ onRetryLoadMore: me,
1610
+ hasMore: he,
1611
+ onLoadMore: ge,
1330
1612
  onRunClick: _e,
1331
- runTimestampClassName: Ee,
1332
- sectionTitleClassName: B,
1333
- colors: R,
1334
- styles: be
1613
+ runTimestampClassName: De,
1614
+ sectionTitleClassName: we,
1615
+ colors: N,
1616
+ styles: Se
1335
1617
  });
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),
1618
+ return /* @__PURE__ */ K("div", {
1619
+ style: Oe,
1620
+ className: T("flex h-full min-h-0 w-full flex-col overflow-hidden", $.container, A),
1339
1621
  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", {
1622
+ /* @__PURE__ */ K("div", {
1623
+ 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),
1624
+ children: [/* @__PURE__ */ K("div", {
1343
1625
  className: "flex min-w-0 items-center gap-2",
1344
1626
  children: [
1345
- /* @__PURE__ */ q(ue, {
1346
- icon: ye === void 0 ? /* @__PURE__ */ q(Oe, {
1347
- size: k.LG,
1627
+ /* @__PURE__ */ G(xe, {
1628
+ icon: be === void 0 ? /* @__PURE__ */ G(He, {
1629
+ size: O.LG,
1348
1630
  className: "rtl:scale-x-[-1]",
1349
1631
  "aria-hidden": !0,
1350
- stroke: A
1351
- }) : ye,
1632
+ stroke: k
1633
+ }) : be,
1352
1634
  "aria-label": e.backAriaLabel,
1353
1635
  onClick: t
1354
1636
  }),
1355
- /* @__PURE__ */ q("h1", {
1356
- className: b(Ft, $.desktopTitle),
1357
- children: /* @__PURE__ */ q(se, {
1637
+ /* @__PURE__ */ G("h1", {
1638
+ className: T(sn, $.desktopTitle),
1639
+ children: /* @__PURE__ */ G(ve, {
1358
1640
  text: g,
1359
- className: xe
1641
+ className: Ce
1360
1642
  })
1361
1643
  }),
1362
- l && /* @__PURE__ */ q("span", {
1363
- className: b("shrink-0", $.desktopBadge, Te, $.subtitleText),
1644
+ l && /* @__PURE__ */ G("span", {
1645
+ className: T("shrink-0", $.desktopBadge, L, $.subtitleText),
1364
1646
  children: e.deletedStateLabel
1365
1647
  })
1366
1648
  ]
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),
1649
+ }), /* @__PURE__ */ K("div", {
1650
+ className: T("flex min-w-0 flex-1 flex-wrap items-center justify-end gap-2 desktop:flex-none desktop:flex-nowrap", $.headerActions),
1369
1651
  children: [
1370
- !l && !u && d !== void 0 && /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(Ce, {
1652
+ !l && !u && d !== void 0 && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(Le, {
1371
1653
  id: "scheduled-task-active-switch",
1372
1654
  labelProps: { label: e.activeStatusLabel },
1373
1655
  isOn: d,
1374
1656
  disabled: f || p || c,
1375
1657
  onChange: (e) => h?.(e)
1376
- }), p && m && /* @__PURE__ */ q("span", {
1377
- className: b(Te, $.subtitleText),
1658
+ }), p && m && /* @__PURE__ */ G("span", {
1659
+ className: T(L, $.subtitleText),
1378
1660
  children: m
1379
1661
  })] }),
1380
- !l && s && /* @__PURE__ */ q(M, {
1381
- variant: ne.Danger,
1662
+ !l && s && /* @__PURE__ */ G(j, {
1663
+ variant: ue.Danger,
1382
1664
  label: e.deleteButtonLabel,
1383
- iconBefore: /* @__PURE__ */ q(Le, {
1384
- size: k.SM,
1665
+ iconBefore: /* @__PURE__ */ G(Ze, {
1666
+ size: O.SM,
1385
1667
  "aria-hidden": !0,
1386
- stroke: A
1668
+ stroke: k
1387
1669
  }),
1388
1670
  onClick: s,
1389
1671
  disabled: c,
1390
1672
  textClassName: $.actionLabel,
1391
- className: b("min-h-11 shrink-0", $.actionButton)
1673
+ className: T("min-h-11 shrink-0", $.actionButton)
1392
1674
  }),
1393
- !l && n && /* @__PURE__ */ q(ge, {
1675
+ !l && n && /* @__PURE__ */ G(Ee, {
1394
1676
  label: e.editButtonLabel,
1395
- iconBefore: /* @__PURE__ */ q(Ne, {
1396
- size: k.SM,
1677
+ iconBefore: /* @__PURE__ */ G(Je, {
1678
+ size: O.SM,
1397
1679
  "aria-hidden": !0,
1398
- stroke: A
1680
+ stroke: k
1399
1681
  }),
1400
1682
  onClick: n,
1401
1683
  disabled: c,
1402
1684
  textClassName: $.actionLabel,
1403
- className: b("min-h-11 shrink-0", $.actionButton, $.roundActionButton)
1685
+ className: T("min-h-11 shrink-0", $.actionButton, $.roundActionButton)
1404
1686
  }),
1405
- !l && r && e.startNowButtonLabel && /* @__PURE__ */ J("div", {
1687
+ !l && r && e.startNowButtonLabel && /* @__PURE__ */ K("div", {
1406
1688
  "aria-busy": i,
1407
- children: [H && /* @__PURE__ */ q("span", {
1689
+ children: [Ne && /* @__PURE__ */ G("span", {
1408
1690
  id: Me,
1409
1691
  className: "sr-only",
1410
- children: H
1411
- }), /* @__PURE__ */ q(ge, {
1692
+ children: Ne
1693
+ }), /* @__PURE__ */ G(Ee, {
1412
1694
  label: i ? e.startingLabel ?? e.startNowButtonLabel : e.startNowButtonLabel,
1413
- iconBefore: /* @__PURE__ */ q(Fe, {
1414
- size: k.SM,
1695
+ iconBefore: /* @__PURE__ */ G(Ye, {
1696
+ size: O.SM,
1415
1697
  "aria-hidden": !0,
1416
- stroke: A
1698
+ stroke: k
1417
1699
  }),
1418
1700
  onClick: r,
1419
1701
  disabled: c || i || a || o,
1420
- "aria-describedby": H ? Me : void 0,
1421
- tooltipProps: H ? { tooltip: H } : void 0,
1702
+ "aria-describedby": Ne ? Me : void 0,
1703
+ tooltipProps: Ne ? { tooltip: Ne } : void 0,
1422
1704
  textClassName: $.actionLabel,
1423
- className: b("min-h-11 shrink-0", $.actionButton, $.roundActionButton)
1705
+ className: T("min-h-11 shrink-0", $.actionButton, $.roundActionButton)
1424
1706
  })]
1425
1707
  })
1426
1708
  ]
1427
1709
  })]
1428
1710
  }),
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, {
1711
+ /* @__PURE__ */ K("div", {
1712
+ className: T("min-w-0 items-center gap-2 px-4 py-3", $.mobileTitleRow),
1713
+ children: [/* @__PURE__ */ G("h1", {
1714
+ className: sn,
1715
+ children: /* @__PURE__ */ G(ve, {
1434
1716
  text: g,
1435
- className: xe
1717
+ className: Ce
1436
1718
  })
1437
- }), l && /* @__PURE__ */ q("span", {
1438
- className: b("shrink-0", Te, $.subtitleText),
1719
+ }), l && /* @__PURE__ */ G("span", {
1720
+ className: T("shrink-0", L, $.subtitleText),
1439
1721
  children: e.deletedStateLabel
1440
1722
  })]
1441
1723
  }),
1442
- e.activeStatusAnnouncement != null && /* @__PURE__ */ q(P, {
1724
+ e.activeStatusAnnouncement != null && /* @__PURE__ */ G(F, {
1443
1725
  visuallyHidden: !0,
1444
- as: F.Span,
1726
+ as: I.Span,
1445
1727
  children: e.activeStatusAnnouncement
1446
1728
  }),
1447
- e.startStatusAnnouncement != null && /* @__PURE__ */ q(P, {
1729
+ e.startStatusAnnouncement != null && /* @__PURE__ */ G(F, {
1448
1730
  visuallyHidden: !0,
1449
- as: F.Span,
1731
+ as: I.Span,
1450
1732
  children: e.startStatusAnnouncement
1451
1733
  }),
1452
- _ && /* @__PURE__ */ q("div", {
1734
+ _ && /* @__PURE__ */ G("div", {
1453
1735
  className: "flex flex-1 items-center justify-center",
1454
- children: /* @__PURE__ */ q(Se, { ariaLabel: e.loadingAriaLabel ?? "Loading scheduled task" })
1736
+ children: /* @__PURE__ */ G(Ie, { ariaLabel: e.loadingAriaLabel ?? "Loading scheduled task" })
1455
1737
  }),
1456
- !_ && v && /* @__PURE__ */ J("div", {
1738
+ !_ && v && /* @__PURE__ */ K("div", {
1457
1739
  className: "flex flex-1 flex-col items-center justify-center gap-3",
1458
- children: [/* @__PURE__ */ q("p", {
1459
- className: b(Te, $.subtitleText),
1740
+ children: [/* @__PURE__ */ G("p", {
1741
+ className: T(L, $.subtitleText),
1460
1742
  children: e.errorLabel
1461
- }), /* @__PURE__ */ q(M, {
1743
+ }), /* @__PURE__ */ G(j, {
1462
1744
  label: e.retryLabel,
1463
- onClick: x
1745
+ onClick: y
1464
1746
  })]
1465
1747
  }),
1466
- !_ && !v && (ke ? /* @__PURE__ */ J("div", {
1748
+ !_ && !v && (ke ? /* @__PURE__ */ K("div", {
1467
1749
  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, {
1750
+ children: [/* @__PURE__ */ G("div", {
1751
+ className: T("sticky top-0 z-10", $.stickyTabs),
1752
+ children: /* @__PURE__ */ G(Re, {
1471
1753
  ariaLabel: e.tabsAriaLabel ?? "Scheduled task sections",
1472
1754
  className: "px-4",
1473
- tabs: U,
1755
+ tabs: Pe,
1474
1756
  activeTabId: Ae,
1475
1757
  onTabChange: je
1476
1758
  })
1477
- }), /* @__PURE__ */ q("div", {
1759
+ }), /* @__PURE__ */ G("div", {
1478
1760
  role: "tabpanel",
1479
- "aria-label": Pe,
1761
+ "aria-label": Fe,
1480
1762
  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
1763
+ children: Ae === Jt.Configuration ? ze : Ae === Jt.History ? Be(Yt.Flow) : R
1482
1764
  })]
1483
- }) : /* @__PURE__ */ J("div", {
1765
+ }) : /* @__PURE__ */ K("div", {
1484
1766
  style: {
1485
1767
  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
1768
+ "--st-details-width": M?.detailsWidth,
1769
+ "--st-history-width": M?.historyWidth,
1770
+ "--st-history-max-height": M?.historyMaxHeight,
1771
+ "--st-configuration-min-width": M?.configurationMinWidth
1490
1772
  },
1491
1773
  className: "flex min-h-0 flex-1 overflow-y-auto desktop:overflow-hidden",
1492
1774
  children: [
1493
- /* @__PURE__ */ J("div", {
1775
+ /* @__PURE__ */ K("div", {
1494
1776
  role: "group",
1495
1777
  "aria-label": e.detailsTitle,
1496
1778
  style: {
1497
- flex: `0 1 ${L?.detailsWidth ?? "360px"}`,
1779
+ flex: `0 1 ${M?.detailsWidth ?? "360px"}`,
1498
1780
  maxWidth: "100%"
1499
1781
  },
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,
1782
+ 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),
1783
+ children: [/* @__PURE__ */ G("h2", {
1784
+ className: we,
1503
1785
  children: e.detailsTitle
1504
- }), Ie]
1786
+ }), R]
1505
1787
  }),
1506
- /* @__PURE__ */ J("div", {
1788
+ /* @__PURE__ */ K("div", {
1507
1789
  style: {
1508
- flex: `1 1 ${L?.configurationMinWidth ?? "320px"}`,
1790
+ flex: `1 1 ${M?.configurationMinWidth ?? "320px"}`,
1509
1791
  minWidth: 0
1510
1792
  },
1511
1793
  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,
1794
+ children: [/* @__PURE__ */ G("h2", {
1795
+ className: we,
1514
1796
  children: e.configurationTitle
1515
- }), Re]
1797
+ }), ze]
1516
1798
  }),
1517
- /* @__PURE__ */ q("div", {
1799
+ /* @__PURE__ */ G("div", {
1518
1800
  style: {
1519
- flex: `0 1 calc(${L?.historyWidth ?? "360px"} + 48px)`,
1801
+ flex: `0 1 calc(${M?.historyWidth ?? "360px"} + 48px)`,
1520
1802
  minWidth: 0
1521
1803
  },
1522
1804
  className: "flex min-h-0 w-full items-start justify-center overflow-y-auto p-6",
1523
- children: W(wt.Card)
1805
+ children: Be(Yt.Card)
1524
1806
  })
1525
1807
  ]
1526
1808
  }))
1527
1809
  ]
1528
1810
  });
1529
- }, Lt = { fieldLabel: "_fieldLabel_8nxg8_1" }, Rt = {
1811
+ }, ln = { fieldLabel: "_fieldLabel_8nxg8_1" }, un = {
1530
1812
  h1: "mb-3 mt-6 first:mt-0 [text-wrap:balance]",
1531
1813
  h2: "mb-2 mt-5 first:mt-0 [text-wrap:balance]",
1532
1814
  h3: "mb-2 mt-4 first:mt-0 [text-wrap:balance]",
@@ -1541,98 +1823,98 @@ var Je = "1180px", Ye = {
1541
1823
  link: "break-words [overflow-wrap:anywhere]",
1542
1824
  tableWrapper: "my-4",
1543
1825
  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;
1826
+ }, 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 }) => {
1827
+ 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 = H(() => {
1828
+ let e = un;
1547
1829
  return {
1548
1830
  ...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),
1831
+ h1: T(m, e.h1),
1832
+ h2: T(m, e.h2),
1833
+ h3: T(m, e.h3),
1834
+ h4: T(m, e.h4),
1835
+ h5: T(m, e.h5),
1836
+ h6: T(m, e.h6),
1837
+ p: T(h, e.p),
1838
+ ul: T(h, e.ul),
1839
+ ol: T(h, e.ol),
1558
1840
  ...l
1559
1841
  };
1560
1842
  }, [
1561
1843
  m,
1562
- g,
1844
+ h,
1563
1845
  l
1564
- ]), v = y({ "--stds-field-label": d?.colors?.fieldLabel });
1565
- return /* @__PURE__ */ J("div", {
1846
+ ]), _ = w({ "--stds-field-label": d?.colors?.fieldLabel });
1847
+ return /* @__PURE__ */ K("div", {
1566
1848
  className: "flex flex-col gap-3",
1567
- style: v,
1849
+ style: _,
1568
1850
  children: [
1569
- o && /* @__PURE__ */ J("div", {
1851
+ o && /* @__PURE__ */ K("div", {
1570
1852
  className: "flex flex-col gap-2",
1571
- children: [/* @__PURE__ */ q("span", {
1853
+ children: [/* @__PURE__ */ G("span", {
1572
1854
  className: f,
1573
1855
  children: e
1574
- }), /* @__PURE__ */ q("p", {
1856
+ }), /* @__PURE__ */ G("p", {
1575
1857
  className: p,
1576
1858
  children: t ? t(o) : o
1577
1859
  })]
1578
1860
  }),
1579
- !!r?.length && /* @__PURE__ */ J("div", {
1861
+ !!r?.length && /* @__PURE__ */ K("div", {
1580
1862
  className: "flex min-w-0 flex-col gap-2",
1581
- children: [/* @__PURE__ */ q("span", {
1863
+ children: [/* @__PURE__ */ G("span", {
1582
1864
  className: f,
1583
1865
  children: n
1584
- }), /* @__PURE__ */ q("p", {
1585
- className: b(p, "wrap-anywhere whitespace-normal"),
1586
- children: r?.map((e, t) => /* @__PURE__ */ q("span", {
1866
+ }), /* @__PURE__ */ G("p", {
1867
+ className: T(p, "wrap-anywhere whitespace-normal"),
1868
+ children: r?.map((e, t) => /* @__PURE__ */ G("span", {
1587
1869
  className: "block",
1588
1870
  children: i ? i(e, t) : e
1589
1871
  }, `${t}:${e}`))
1590
1872
  })]
1591
1873
  }),
1592
- s && /* @__PURE__ */ J("div", {
1874
+ s && /* @__PURE__ */ K("div", {
1593
1875
  className: "flex flex-col gap-2",
1594
- children: [/* @__PURE__ */ q("span", {
1876
+ children: [/* @__PURE__ */ G("span", {
1595
1877
  className: f,
1596
1878
  children: a
1597
- }), ((e) => c ? c(e) : /* @__PURE__ */ q(h, {
1879
+ }), ((e) => c ? c(e) : /* @__PURE__ */ G(x, {
1598
1880
  content: e,
1599
- classNames: _,
1881
+ classNames: g,
1600
1882
  ...u
1601
1883
  }))(s)]
1602
1884
  })
1603
1885
  ]
1604
1886
  });
1605
- }, Bt = ({ className: e, children: t }) => /* @__PURE__ */ q("span", {
1606
- className: b(e, "block truncate py-1"),
1887
+ }, fn = ({ className: e, children: t }) => /* @__PURE__ */ G("span", {
1888
+ className: T(e, "block truncate py-1"),
1607
1889
  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(() => {
1890
+ }), 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 }) => {
1891
+ let [_, v] = U(!0);
1892
+ nt(() => {
1611
1893
  v(!0);
1612
1894
  }, [e]);
1613
- let x = c && !n && l && f.showMoreLabel ? /* @__PURE__ */ q("li", {
1895
+ let y = c && !n && l && f.showMoreLabel ? /* @__PURE__ */ G("li", {
1614
1896
  className: "pt-2",
1615
- children: /* @__PURE__ */ q(M, {
1616
- variant: ne.Primary,
1897
+ children: /* @__PURE__ */ G(j, {
1898
+ variant: ue.Primary,
1617
1899
  label: f.showMoreLabel,
1618
1900
  onClick: l,
1619
1901
  disabled: r
1620
1902
  })
1621
1903
  }) : void 0;
1622
- return /* @__PURE__ */ J(E, {
1623
- title: /* @__PURE__ */ q(Bt, {
1904
+ return /* @__PURE__ */ K(ae, {
1905
+ title: /* @__PURE__ */ G(fn, {
1624
1906
  className: p,
1625
1907
  children: f.title
1626
1908
  }),
1627
1909
  expanded: _,
1628
1910
  onToggle: v,
1629
1911
  contentClassName: m,
1630
- children: [/* @__PURE__ */ q(P, {
1631
- as: F.P,
1632
- className: b(h, Vt.unavailableText),
1633
- style: y({ "--stch-unavailable-text": g?.unavailableText }),
1912
+ children: [/* @__PURE__ */ G(F, {
1913
+ as: I.P,
1914
+ className: T(h, pn.unavailableText),
1915
+ style: w({ "--stch-unavailable-text": g?.unavailableText }),
1634
1916
  children: s && f.unavailableLabel
1635
- }), !s && /* @__PURE__ */ q(Mt, {
1917
+ }), !s && /* @__PURE__ */ G(rn, {
1636
1918
  items: t,
1637
1919
  isLoading: n,
1638
1920
  isLoadingMore: r,
@@ -1641,7 +1923,7 @@ var Je = "1180px", Ye = {
1641
1923
  onRetry: o,
1642
1924
  currentRunId: u,
1643
1925
  onRunClick: d,
1644
- footer: x,
1926
+ footer: y,
1645
1927
  labels: {
1646
1928
  historyTitle: f.title,
1647
1929
  emptyLabel: f.emptyLabel,
@@ -1654,28 +1936,28 @@ var Je = "1180px", Ye = {
1654
1936
  }
1655
1937
  })]
1656
1938
  });
1657
- }, Ut = { unavailableText: "_unavailableText_j7lij_1" }, Wt = /* @__PURE__ */ function(e) {
1939
+ }, hn = { unavailableText: "_unavailableText_j7lij_1" }, gn = /* @__PURE__ */ function(e) {
1658
1940
  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(() => {
1941
+ }({}), _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 }) => {
1942
+ let [g, _] = U(!1);
1943
+ nt(() => {
1662
1944
  _(!1);
1663
1945
  }, [e]);
1664
- let v = t === "error" || t === "unavailable", x = t === "error" && n != null, S = /* @__PURE__ */ J(K, { children: [
1665
- /* @__PURE__ */ q(P, {
1666
- as: F.P,
1667
- className: b(m, Ut.unavailableText),
1668
- style: y({ "--stcd-unavailable-text": h?.unavailableText }),
1946
+ let v = t === "error" || t === "unavailable", y = t === "error" && n != null, b = /* @__PURE__ */ K(W, { children: [
1947
+ /* @__PURE__ */ G(F, {
1948
+ as: I.P,
1949
+ className: T(m, hn.unavailableText),
1950
+ style: w({ "--stcd-unavailable-text": h?.unavailableText }),
1669
1951
  children: v && f.unavailableLabel
1670
1952
  }),
1671
- x && /* @__PURE__ */ q("div", {
1953
+ y && /* @__PURE__ */ G("div", {
1672
1954
  className: "mt-2",
1673
- children: /* @__PURE__ */ q(M, {
1955
+ children: /* @__PURE__ */ G(j, {
1674
1956
  label: f.retryLabel,
1675
1957
  onClick: n
1676
1958
  })
1677
1959
  }),
1678
- !v && /* @__PURE__ */ q(zt, {
1960
+ !v && /* @__PURE__ */ G(dn, {
1679
1961
  modelLabel: f.modelLabel,
1680
1962
  instructionsLabel: f.instructionsLabel,
1681
1963
  skillLabel: f.skillLabel,
@@ -1690,22 +1972,22 @@ var Je = "1180px", Ye = {
1690
1972
  styles: d
1691
1973
  })
1692
1974
  ] });
1693
- return /* @__PURE__ */ q(E, {
1694
- title: /* @__PURE__ */ q(Bt, {
1975
+ return /* @__PURE__ */ G(ae, {
1976
+ title: /* @__PURE__ */ G(fn, {
1695
1977
  className: p,
1696
1978
  children: f.title
1697
1979
  }),
1698
1980
  expanded: g,
1699
1981
  onToggle: _,
1700
- children: S
1982
+ children: b
1701
1983
  });
1702
- }, Kt = {
1984
+ }, vn = {
1703
1985
  card: "_card_abja7_1",
1704
1986
  text: "_text_abja7_6",
1705
1987
  detailsLink: "_detailsLink_abja7_10",
1706
1988
  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({
1989
+ }, 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 = et(({ 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 }) => {
1990
+ 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
1991
  "--stcb-surface": c?.surface,
1710
1992
  "--stcb-border": c?.border,
1711
1993
  "--stcb-text": c?.text,
@@ -1713,88 +1995,88 @@ var Je = "1180px", Ye = {
1713
1995
  "--stcb-details-link-hover-surface": c?.detailsLinkHoverSurface,
1714
1996
  "--stcb-focus-outline": c?.focusOutline,
1715
1997
  "--stcb-deleted-text": c?.deletedText
1716
- }), S = !e && t, C = null;
1717
- return C = e ? /* @__PURE__ */ q("div", {
1998
+ }), b = !e && t, x = null;
1999
+ return x = e ? /* @__PURE__ */ G("div", {
1718
2000
  className: "flex h-5 items-center",
1719
2001
  "aria-hidden": !0,
1720
- children: /* @__PURE__ */ q(B, {
1721
- variant: V.Rectangular,
2002
+ children: /* @__PURE__ */ G(Fe, {
2003
+ variant: R.Rectangular,
1722
2004
  width: "220px",
1723
2005
  height: "16px"
1724
2006
  })
1725
- }) : t ? o && /* @__PURE__ */ q(M, {
2007
+ }) : t ? o && /* @__PURE__ */ G(j, {
1726
2008
  label: h,
1727
2009
  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"),
2010
+ }) : /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ K("p", {
2011
+ className: T(vn.text, l, "min-w-0 flex-1 wrap-break-word"),
2012
+ children: [r, i && /* @__PURE__ */ K("span", {
2013
+ className: T(u, "block desktop:inline"),
1732
2014
  children: [" ", i]
1733
2015
  })]
1734
- }), n ? /* @__PURE__ */ q("p", {
1735
- className: b(Kt.deleted, d, "flex h-6 shrink-0 items-center px-2"),
2016
+ }), n ? /* @__PURE__ */ G("p", {
2017
+ className: T(vn.deleted, d, "flex h-6 shrink-0 items-center px-2"),
1736
2018
  children: v
1737
2019
  }) : a({
1738
- className: b(Kt.detailsLink, d, Jt),
2020
+ className: T(vn.detailsLink, d, bn),
1739
2021
  "aria-label": _(r),
1740
- children: /* @__PURE__ */ J(K, { children: [g, /* @__PURE__ */ q(H, {
1741
- size: k.SM,
1742
- stroke: A,
2022
+ children: /* @__PURE__ */ K(W, { children: [g, /* @__PURE__ */ G(Ke, {
2023
+ size: O.SM,
2024
+ stroke: k,
1743
2025
  className: "rtl:scale-x-[-1]",
1744
2026
  "aria-hidden": !0
1745
2027
  })] })
1746
- })] }), /* @__PURE__ */ J("div", {
1747
- className: b(Kt.card, qt, f),
1748
- style: x,
2028
+ })] }), /* @__PURE__ */ K("div", {
2029
+ className: T(vn.card, yn, f),
2030
+ style: y,
1749
2031
  children: [
1750
- /* @__PURE__ */ q(P, {
2032
+ /* @__PURE__ */ G(F, {
1751
2033
  visuallyHidden: !0,
1752
2034
  children: e ? p : ""
1753
2035
  }),
1754
- /* @__PURE__ */ q(P, {
1755
- as: F.P,
1756
- className: b(Kt.text, u),
1757
- children: S ? m : ""
2036
+ /* @__PURE__ */ G(F, {
2037
+ as: I.P,
2038
+ className: T(vn.text, u),
2039
+ children: b ? m : ""
1758
2040
  }),
1759
- C
2041
+ x
1760
2042
  ]
1761
2043
  });
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,
2044
+ }), Cn = (e, t, n) => e ? n?.loggingIn ?? "Logging in…" : t == null ? n?.logIn ?? "Log in" : n?.retry ?? "Retry", wn = et(({ isVisible: e, isLoggingIn: t = !1, retryMessage: n, liveAnnouncement: r = "", labels: i, onLogIn: a }) => /* @__PURE__ */ K(W, { children: [e && /* @__PURE__ */ G(Be, {
2045
+ surface: Oe.Neutral,
1764
2046
  title: i?.title ?? "Log in required.",
1765
2047
  message: i?.body ?? "Scheduled tasks need authorization to run offline.",
1766
- action: a && /* @__PURE__ */ q(pe, {
1767
- label: Zt(t, n, i),
2048
+ action: a && /* @__PURE__ */ G(P, {
2049
+ label: Cn(t, n, i),
1768
2050
  disabled: t,
1769
- iconAfter: /* @__PURE__ */ q(ke, {
1770
- size: k.SM,
1771
- stroke: A,
2051
+ iconAfter: /* @__PURE__ */ G(z, {
2052
+ size: O.SM,
2053
+ stroke: k,
1772
2054
  "aria-hidden": !0,
1773
2055
  className: "rtl:scale-x-[-1]"
1774
2056
  }),
1775
2057
  onClick: a,
1776
2058
  className: "min-h-11 min-w-11"
1777
2059
  })
1778
- }), /* @__PURE__ */ q(P, {
2060
+ }), /* @__PURE__ */ G(F, {
1779
2061
  visuallyHidden: !0,
1780
- as: F.Span,
2062
+ as: I.Span,
1781
2063
  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", {
2064
+ })] })), Tn = et(({ labels: e, titleClassName: t = "dial-small-paragraph-semi-text", bodyClassName: n = "dial-small-paragraph-text" }) => /* @__PURE__ */ G(De, {
2065
+ variant: Ae.Error,
2066
+ type: ke.SectionMessage,
2067
+ message: /* @__PURE__ */ K("span", {
1786
2068
  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),
2069
+ children: [/* @__PURE__ */ G("span", {
2070
+ className: T("min-w-0 wrap-break-word", t),
1789
2071
  children: e?.title ?? "Limited access."
1790
- }), /* @__PURE__ */ q("span", {
1791
- className: b("min-w-0 wrap-break-word", n),
2072
+ }), /* @__PURE__ */ G("span", {
2073
+ className: T("min-w-0 wrap-break-word", n),
1792
2074
  children: e?.body ?? "You can't create or edit tasks. Contact your administrator for more details."
1793
2075
  })]
1794
2076
  })
1795
- })), en = ({ taskName: e, icon: t, typeLabel: n, body: r, pendingLabel: i, isDeleting: a = !1, styles: o, ...s }) => /* @__PURE__ */ q(d, {
2077
+ })), En = ({ taskName: e, icon: t, typeLabel: n, body: r, pendingLabel: i, isDeleting: a = !1, styles: o, ...s }) => /* @__PURE__ */ G(_, {
1796
2078
  ...s,
1797
- variant: ae.Danger,
2079
+ variant: me.Danger,
1798
2080
  popupClassName: o?.popupClassName,
1799
2081
  titleClassName: o?.titleClassName ?? "dial-body-semi-text",
1800
2082
  messageClassName: o?.messageClassName ?? "dial-body-paragraph-text",
@@ -1803,12 +2085,12 @@ var Je = "1180px", Ye = {
1803
2085
  message: r,
1804
2086
  isLoading: a,
1805
2087
  loadingStatusLabel: i,
1806
- identity: /* @__PURE__ */ q(_, {
2088
+ identity: /* @__PURE__ */ G(S, {
1807
2089
  styles: { colors: {
1808
2090
  background: o?.colors?.summaryBackground ?? "var(--bg-error, #f3d6d8)",
1809
2091
  border: o?.colors?.summaryBorder ?? "var(--stroke-error-alpha, #ae2f2f73)"
1810
2092
  } },
1811
- children: /* @__PURE__ */ q(f, {
2093
+ children: /* @__PURE__ */ G(v, {
1812
2094
  icon: t,
1813
2095
  typeLabel: n,
1814
2096
  name: e,
@@ -1817,4 +2099,4 @@ var Je = "1180px", Ye = {
1817
2099
  })
1818
2100
  });
1819
2101
  //#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 };
2102
+ export { t as DESCRIPTION_MAX_LENGTH, ct as SCHEDULED_TASKS_CLASS, st 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, J as ScheduledTaskPresentationStatus, h as ScheduledTaskRepeat, rn as ScheduledTaskRunHistoryList, tn as ScheduledTaskRunStatus, q 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 };