@epam/ai-dial-catalog 1.2.0-dev.173 → 1.2.0-dev.176

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.
package/index.js CHANGED
@@ -1,66 +1,66 @@
1
1
  import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, x as y, y as b } from "./mapping-BHlCxGmC.js";
2
- import { CatalogEntityType as x, DESKTOP_BREAKPOINT_PX as S, DeploymentIcon as C, EntityHeader as w, EntityTypeLabel as T, FeaturedChip as E, ItemHeader as D, MarkdownCodeBlock as O, MarkdownRenderer as k, MarkdownWithPlaceholders as A, PanelEmptyState as ee, ResourceSummary as te, SELECT_LIST_MAX_HEIGHT_CLASS_NAME as ne, buildCssVars as j, mergeClasses as M } from "@epam/ai-dial-chat-shared";
3
- import { Fragment as re, memo as ie, startTransition as ae, useCallback as N, useEffect as P, useId as oe, useLayoutEffect as se, useMemo as F, useRef as I, useState as L } from "react";
4
- import { Button as ce, ButtonAppearance as R, ButtonDropdown as le, ButtonVariant as ue, CardShell as de, Checkbox as fe, CloseButton as pe, DIAL_ICON_SIZE as z, DIAL_KIT_ICON_STROKE as B, DangerButton as me, Dropdown as he, ElementSize as ge, EllipsisTooltip as _e, FolderPath as ve, GhostButton as ye, GhostIconButton as be, Highlight as xe, InlineSelect as Se, InlineSelectTrigger as V, Input as Ce, LinkButton as we, MenuItem as Te, MenuItemMark as Ee, NeutralButton as De, NeutralIconButton as Oe, PrimaryButton as ke, ProgressBar as Ae, RadioGroup as je, Search as H, SegmentedControl as Me, Skeleton as Ne, SkeletonAvatarShape as Pe, Spinner as Fe, Tabs as Ie, ToggleIconButton as Le, Tooltip as Re, mergeClasses as ze } from "@epam/ai-dial-ui-kit";
5
- import { IconAlertTriangleFilled as Be, IconArrowRight as Ve, IconBuildingCommunity as He, IconCheck as Ue, IconChevronDown as We, IconChevronLeft as Ge, IconChevronRight as Ke, IconCircleCheckFilled as qe, IconDots as Je, IconDownload as Ye, IconFilter as Xe, IconFolder as Ze, IconKey as Qe, IconLayoutGrid as $e, IconLayoutList as et, IconLogin as tt, IconLogout as nt, IconPencil as rt, IconPlayerPlayFilled as it, IconPlus as U, IconShare as at, IconStar as ot, IconStarFilled as st, IconTrash as ct, IconTrashX as lt, IconUser as ut, IconUserOff as dt, IconWorldOff as ft, IconWorldShare as pt } from "@tabler/icons-react";
2
+ import { CatalogEntityType as x, DESKTOP_BREAKPOINT_PX as S, DeploymentIcon as C, EntityHeader as w, EntityTypeLabel as T, FeaturedChip as E, ItemHeader as D, MarkdownCodeBlock as O, MarkdownRenderer as k, MarkdownWithPlaceholders as A, PanelEmptyState as ee, ResourceSummary as te, SELECT_LIST_MAX_HEIGHT_CLASS_NAME as ne, buildCssVars as re, mergeClasses as j } from "@epam/ai-dial-chat-shared";
3
+ import { Fragment as ie, memo as ae, startTransition as oe, useCallback as M, useEffect as N, useId as se, useLayoutEffect as ce, useMemo as P, useRef as F, useState as I } from "react";
4
+ import { Button as le, ButtonAppearance as L, ButtonDropdown as ue, ButtonVariant as de, CardShell as fe, Checkbox as pe, CloseButton as me, DIAL_ICON_SIZE as R, DIAL_KIT_ICON_STROKE as z, DangerButton as he, Dropdown as ge, ElementSize as _e, EllipsisTooltip as ve, FolderPath as ye, GhostButton as be, GhostIconButton as xe, Highlight as Se, InlineSelect as Ce, InlineSelectTrigger as we, Input as B, LinkButton as Te, MenuItem as Ee, MenuItemMark as De, NeutralButton as Oe, NeutralIconButton as ke, PrimaryButton as Ae, ProgressBar as je, RadioGroup as Me, Search as Ne, SegmentedControl as V, Skeleton as Pe, SkeletonAvatarShape as Fe, Spinner as Ie, Tabs as Le, ToggleIconButton as Re, Tooltip as ze, mergeClasses as Be } from "@epam/ai-dial-ui-kit";
5
+ import { IconAlertTriangleFilled as Ve, IconArrowRight as He, IconBuildingCommunity as Ue, IconCheck as We, IconChevronDown as Ge, IconChevronLeft as Ke, IconChevronRight as qe, IconCircleCheckFilled as Je, IconDots as Ye, IconDownload as Xe, IconFilter as Ze, IconFolder as Qe, IconKey as $e, IconLayoutGrid as et, IconLayoutList as tt, IconLogin as nt, IconLogout as rt, IconPencil as it, IconPlayerPlayFilled as at, IconPlus as H, IconShare as ot, IconStar as st, IconStarFilled as ct, IconTrash as lt, IconTrashX as U, IconUser as ut, IconUserOff as dt, IconWorldOff as ft, IconWorldShare as pt } from "@tabler/icons-react";
6
6
  import { Fragment as W, jsx as G, jsxs as K } from "react/jsx-runtime";
7
7
  import { PublishFooter as mt, PublishPanel as ht, derivePublishState as gt, usePublishFlow as _t } from "@epam/ai-dial-publish-panel";
8
8
  import { Grid as vt } from "@epam/ai-dial-ui-kit/grid";
9
9
  //#region src/types/code-language.ts
10
- var yt = /* @__PURE__ */ function(e) {
10
+ var q = /* @__PURE__ */ function(e) {
11
11
  return e.Python = "python", e.Curl = "curl", e.JavaScript = "javascript", e;
12
- }({}), q = /* @__PURE__ */ function(e) {
13
- return e.About = "about", e.Content = "content", e.Overview = "overview", e.Pricing = "pricing", e.Limits = "limits", e.Api = "api", e.Tools = "tools", e;
14
12
  }({}), J = /* @__PURE__ */ function(e) {
13
+ return e.About = "about", e.Content = "content", e.Overview = "overview", e.Pricing = "pricing", e.Limits = "limits", e.Api = "api", e.Tools = "tools", e;
14
+ }({}), yt = /* @__PURE__ */ function(e) {
15
15
  return e.RunningLow = "runningLow", e.LimitReached = "limitReached", e;
16
16
  }({}), Y = /* @__PURE__ */ function(e) {
17
17
  return e.Delete = "delete", e.Logout = "logout", e.Unshare = "unshare", e.RevokeAccess = "revokeAccess", e.DeleteApiKey = "deleteApiKey", e.Unpublish = "unpublish", e;
18
18
  }({}), bt = /* @__PURE__ */ function(e) {
19
19
  return e.Danger = "danger", e.Info = "info", e;
20
- }({}), xt = /* @__PURE__ */ function(e) {
20
+ }({}), X = /* @__PURE__ */ function(e) {
21
21
  return e.SM = "sm", e.LG = "lg", e;
22
- }({}), St = /* @__PURE__ */ function(e) {
22
+ }({}), xt = /* @__PURE__ */ function(e) {
23
23
  return e.Grid = "grid", e.Cards = "cards", e;
24
- }({}), Ct = /* @__PURE__ */ function(e) {
24
+ }({}), St = /* @__PURE__ */ function(e) {
25
25
  return e.Inline = "inline", e.Stacked = "stacked", e;
26
- }({}), X = /* @__PURE__ */ function(e) {
26
+ }({}), Z = /* @__PURE__ */ function(e) {
27
27
  return e.File = "file", e.Folder = "folder", e;
28
- }({}), wt = /* @__PURE__ */ function(e) {
28
+ }({}), Ct = /* @__PURE__ */ function(e) {
29
29
  return e.Markdown = "markdown", e.Text = "text", e.Image = "image", e.Unsupported = "unsupported", e;
30
- }({}), Tt = () => {
31
- let [e, t] = L(() => window.innerWidth);
32
- return P(() => {
30
+ }({}), wt = () => {
31
+ let [e, t] = I(() => window.innerWidth);
32
+ return N(() => {
33
33
  let e = () => t(window.innerWidth);
34
34
  return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
35
35
  }, []), e >= 1024 ? 4 : e >= 640 ? 2 : 1;
36
- }, Z = {
36
+ }, Q = {
37
37
  root: "dial-catalog-root",
38
38
  toolbar: "dial-catalog-toolbar",
39
39
  card: "dial-catalog-card",
40
40
  favoriteCard: "dial-catalog-favorite-card",
41
41
  listView: "dial-catalog-list-view"
42
- }, Et = (e) => {
42
+ }, Tt = (e) => {
43
43
  let { colors: t } = e ?? {};
44
- return j({
44
+ return re({
45
45
  "--cat-bg": t?.background,
46
46
  "--cat-heading-title-text": t?.headingTitleText
47
47
  });
48
- }, Dt = 1180, Ot = (e) => e >= 1280 ? 4 : e >= 966 ? 3 : e >= 620 ? 2 : 1, kt = (e) => {
48
+ }, Et = 1180, Dt = (e) => e >= 1280 ? 4 : e >= 966 ? 3 : e >= 620 ? 2 : 1, Ot = (e) => {
49
49
  if (!e || e === document.body) return document.documentElement;
50
50
  let { overflow: t, overflowY: n } = getComputedStyle(e);
51
- return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : kt(e.parentElement);
52
- }, At = 10, jt = 10, Mt = 30, Nt = (e, t, n = At) => {
53
- let r = I(null), [i, a] = L({
51
+ return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : Ot(e.parentElement);
52
+ }, kt = 10, At = 10, jt = 30, Mt = (e, t, n = kt) => {
53
+ let r = F(null), [i, a] = I({
54
54
  start: 0,
55
- end: Mt
55
+ end: jt
56
56
  });
57
- P(() => {
57
+ N(() => {
58
58
  let i = r.current;
59
59
  if (!i) return;
60
- let o = kt(i.parentElement), s = () => {
60
+ let o = Ot(i.parentElement), s = () => {
61
61
  let r = o.clientHeight;
62
62
  if (r === 0 || i.clientWidth === 0 || getComputedStyle(i).visibility === "hidden") return;
63
- let s = i.getBoundingClientRect().top, c = o.getBoundingClientRect().top, l = Math.max(0, c - s), u = Math.floor(l / t), d = Math.ceil(r / t), f = Math.max(0, Math.floor((u - n) / jt) * jt), p = Math.min(e, Math.ceil((u + d + n) / jt) * jt);
63
+ let s = i.getBoundingClientRect().top, c = o.getBoundingClientRect().top, l = Math.max(0, c - s), u = Math.floor(l / t), d = Math.ceil(r / t), f = Math.max(0, Math.floor((u - n) / At) * At), p = Math.min(e, Math.ceil((u + d + n) / At) * At);
64
64
  a((e) => e.start === f && e.end === p ? e : {
65
65
  start: f,
66
66
  end: p
@@ -76,28 +76,28 @@ var yt = /* @__PURE__ */ function(e) {
76
76
  t,
77
77
  n
78
78
  ]);
79
- let o = Math.max(0, Math.floor((e - 1) / jt) * jt), s = Math.min(i.start, o);
79
+ let o = Math.max(0, Math.floor((e - 1) / At) * At), s = Math.min(i.start, o);
80
80
  return {
81
81
  containerRef: r,
82
82
  startRow: s,
83
- endRow: Math.min(e, Math.max(i.end, s + jt))
83
+ endRow: Math.min(e, Math.max(i.end, s + At))
84
84
  };
85
- }, Pt = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
86
- let r = I(null), [i, a] = L(() => {
87
- let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= S ? 60 : 0)), i = Ot((n ? r : Math.min(Dt, r)) - 64), a = Math.ceil(e / i);
85
+ }, Nt = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
86
+ let r = F(null), [i, a] = I(() => {
87
+ let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= S ? 60 : 0)), i = Dt((n ? r : Math.min(Et, r)) - 64), a = Math.ceil(e / i);
88
88
  return {
89
89
  startRow: 0,
90
90
  endRow: Math.min(a, 12),
91
91
  columnCount: i
92
92
  };
93
93
  });
94
- P(() => {
94
+ N(() => {
95
95
  let n = r.current;
96
96
  if (!n) return;
97
- let i = kt(n.parentElement), o = () => {
97
+ let i = Ot(n.parentElement), o = () => {
98
98
  let r = n.clientWidth, o = i.clientHeight;
99
99
  if (r === 0 || o === 0) return;
100
- let s = n.getBoundingClientRect(), c = i.getBoundingClientRect(), l = Ot(r), u = Math.ceil(e / l), d = Math.max(0, c.top - s.top), f = Math.max(0, Math.floor(d / 268) - t), p = Math.min(u, f + Math.ceil(o / 268) + 2 * t);
100
+ let s = n.getBoundingClientRect(), c = i.getBoundingClientRect(), l = Dt(r), u = Math.ceil(e / l), d = Math.max(0, c.top - s.top), f = Math.max(0, Math.floor(d / 268) - t), p = Math.min(u, f + Math.ceil(o / 268) + 2 * t);
101
101
  a((e) => e.startRow === f && e.endRow === p && e.columnCount === l ? e : {
102
102
  startRow: f,
103
103
  endRow: p,
@@ -119,7 +119,7 @@ var yt = /* @__PURE__ */ function(e) {
119
119
  rowCount: o,
120
120
  totalHeight: o * 268
121
121
  };
122
- }, Ft = {
122
+ }, Pt = {
123
123
  skeletonColor: "var(--cg-skeleton-color, var(--bg-control-disable-primary, #dce0e8))",
124
124
  card: "_card_18c2b_2",
125
125
  emptyStarHidden: "_emptyStarHidden_18c2b_2",
@@ -129,28 +129,28 @@ var yt = /* @__PURE__ */ function(e) {
129
129
  selectedCard: "_selectedCard_18c2b_37",
130
130
  checkIcon: "_checkIcon_18c2b_42",
131
131
  footer: "_footer_18c2b_46"
132
- }, Q = {
132
+ }, Ft = {
133
133
  name: "_name_188yo_1",
134
134
  lastUsed: "_lastUsed_188yo_5",
135
135
  version: "_version_188yo_9"
136
136
  }, It = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, styles: c, lastUsedTrailing: l, iconClassName: u, iconOverlay: d }) => {
137
- let f = c?.colors, p = c?.typography ?? {}, m = a === xt.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = j({
137
+ let f = c?.colors, p = c?.typography ?? {}, m = a === X.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = re({
138
138
  "--ai-name-text": f?.nameColor,
139
139
  "--ai-last-used-text": f?.lastUsedColor,
140
140
  "--ai-version-text": f?.versionColor
141
141
  });
142
142
  return /* @__PURE__ */ K("div", {
143
- className: M("flex min-w-0 items-start gap-3", s),
143
+ className: j("flex min-w-0 items-start gap-3", s),
144
144
  style: _,
145
145
  children: [/* @__PURE__ */ K("div", {
146
- className: M("relative flex-shrink-0", h, u),
146
+ className: j("relative flex-shrink-0", h, u),
147
147
  children: [/* @__PURE__ */ G("div", {
148
148
  className: "size-full overflow-hidden rounded-[inherit]",
149
149
  children: /* @__PURE__ */ G(C, {
150
150
  src: e ?? void 0,
151
151
  size: g,
152
152
  initialsName: n,
153
- styles: { badgeClassName: M(m ? "rounded-[14px]" : "rounded-[12px]") }
153
+ styles: { badgeClassName: j(m ? "rounded-[14px]" : "rounded-[12px]") }
154
154
  })
155
155
  }), d]
156
156
  }), /* @__PURE__ */ K("div", {
@@ -162,39 +162,39 @@ var yt = /* @__PURE__ */ function(e) {
162
162
  className: "flex min-w-0 flex-col",
163
163
  children: [/* @__PURE__ */ K("div", {
164
164
  className: "flex min-w-0 items-start gap-1 overflow-hidden",
165
- children: [/* @__PURE__ */ G(_e, {
166
- text: o ? /* @__PURE__ */ G(xe, {
165
+ children: [/* @__PURE__ */ G(ve, {
166
+ text: o ? /* @__PURE__ */ G(Se, {
167
167
  text: n,
168
168
  query: o
169
169
  }) : n,
170
- className: M("min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text", Q.name)
171
- }), r && /* @__PURE__ */ G(_e, {
170
+ className: j("min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text", Ft.name)
171
+ }), r && /* @__PURE__ */ G(ve, {
172
172
  text: r,
173
- className: M("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text", Q.version)
173
+ className: j("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text", Ft.version)
174
174
  })]
175
175
  }), m && i != null && /* @__PURE__ */ K("div", {
176
176
  className: "flex items-center gap-2",
177
177
  children: [/* @__PURE__ */ G("span", {
178
- className: M("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", Q.lastUsed),
178
+ className: j("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", Ft.lastUsed),
179
179
  children: i
180
180
  }), l]
181
181
  })]
182
182
  })]
183
183
  })]
184
184
  });
185
- }, Lt = { icon: "_icon_a0p4u_1" }, Rt = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || d(e) == null ? null : /* @__PURE__ */ G(Re, {
185
+ }, Lt = { icon: "_icon_a0p4u_1" }, Rt = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || d(e) == null ? null : /* @__PURE__ */ G(ze, {
186
186
  tooltip: t,
187
187
  asChild: !0,
188
188
  children: /* @__PURE__ */ G("span", {
189
189
  role: "img",
190
190
  "aria-label": t,
191
- style: j({
191
+ style: re({
192
192
  "--cat-cred-badge-halo": r?.halo,
193
193
  "--cat-cred-badge-icon": r?.icon
194
194
  }),
195
- className: M("absolute -bottom-1 -end-1 shrink-0", n),
196
- children: /* @__PURE__ */ G(Be, {
197
- size: z.SM,
195
+ className: j("absolute -bottom-1 -end-1 shrink-0", n),
196
+ children: /* @__PURE__ */ G(Ve, {
197
+ size: R.SM,
198
198
  className: Lt.icon,
199
199
  "aria-hidden": !0
200
200
  })
@@ -202,33 +202,33 @@ var yt = /* @__PURE__ */ function(e) {
202
202
  }), zt = {
203
203
  starFilledIcon: "_starFilledIcon_po6zj_1",
204
204
  starPop: "_starPop_po6zj_1"
205
- }, Bt = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ G(Le, {
205
+ }, Bt = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ G(Re, {
206
206
  size: n,
207
- style: j({ "--cat-star-filled": a }),
207
+ style: re({ "--cat-star-filled": a }),
208
208
  className: i,
209
- icon: e ? /* @__PURE__ */ G(st, {
210
- size: z.SM,
209
+ icon: e ? /* @__PURE__ */ G(ct, {
210
+ size: R.SM,
211
211
  className: zt.starFilledIcon
212
- }) : /* @__PURE__ */ G(ot, {
213
- size: z.SM,
214
- stroke: B
212
+ }) : /* @__PURE__ */ G(st, {
213
+ size: R.SM,
214
+ stroke: z
215
215
  }),
216
216
  "aria-label": r,
217
217
  onClick: t
218
218
  }), Vt = { tag: "_tag_12518_1" }, Ht = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ G("div", {
219
- style: j({
219
+ style: re({
220
220
  "--cat-card-tag-bg": r?.background,
221
221
  "--cat-card-tag-text": r?.text,
222
222
  "--cat-card-tag-border": r?.border
223
223
  }),
224
- className: M("flex h-6 w-fit items-center justify-center whitespace-nowrap rounded-md border px-2", Vt.tag, n, t),
224
+ className: j("flex h-6 w-fit items-center justify-center whitespace-nowrap rounded-md border px-2", Vt.tag, n, t),
225
225
  children: e
226
226
  }), Ut = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ G(Ht, {
227
227
  label: e,
228
228
  badgeClassName: t,
229
229
  colors: n
230
230
  }), Wt = 8, Gt = ({ topics: e, overflowAriaLabel: t, className: n }) => {
231
- let r = I(null), i = I([]), a = I([]), o = I(null), s = I(Infinity), [c, l] = L(e.length), u = e.join("\0"), d = N(() => {
231
+ let r = F(null), i = F([]), a = F([]), o = F(null), s = F(Infinity), [c, l] = I(e.length), u = e.join("\0"), d = M(() => {
232
232
  let t = r.current;
233
233
  if (!t || e.length === 0) return;
234
234
  let n = t.clientWidth;
@@ -244,14 +244,14 @@ var yt = /* @__PURE__ */ function(e) {
244
244
  }
245
245
  l(Math.min(f, s.current));
246
246
  }, [e.length]);
247
- if (se(() => {
247
+ if (ce(() => {
248
248
  a.current = [], s.current = Infinity, l(e.length);
249
- }, [u]), se(() => {
249
+ }, [u]), ce(() => {
250
250
  d();
251
- }), se(() => {
251
+ }), ce(() => {
252
252
  let e = r.current;
253
253
  !e || c === 0 || e.scrollWidth <= e.clientWidth || (s.current = c - 1, l(s.current));
254
- }, [c]), P(() => {
254
+ }, [c]), N(() => {
255
255
  let e = r.current;
256
256
  if (!e) return;
257
257
  let t = new ResizeObserver(() => {
@@ -260,12 +260,12 @@ var yt = /* @__PURE__ */ function(e) {
260
260
  return t.observe(e), () => t.disconnect();
261
261
  }, [d]), e.length === 0) return /* @__PURE__ */ G("div", {
262
262
  ref: r,
263
- className: M("relative flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n)
263
+ className: j("relative flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n)
264
264
  });
265
265
  let f = e.length - c;
266
266
  return /* @__PURE__ */ K("div", {
267
267
  ref: r,
268
- className: M("flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n),
268
+ className: j("flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n),
269
269
  children: [
270
270
  e.slice(0, c).map((e, t) => /* @__PURE__ */ G("div", {
271
271
  ref: (e) => {
@@ -273,7 +273,7 @@ var yt = /* @__PURE__ */ function(e) {
273
273
  },
274
274
  children: /* @__PURE__ */ G(Ut, { label: e })
275
275
  }, e)),
276
- f > 0 && /* @__PURE__ */ G(Re, {
276
+ f > 0 && /* @__PURE__ */ G(ze, {
277
277
  tooltip: e.slice(c).join(", "),
278
278
  children: /* @__PURE__ */ G("span", {
279
279
  "aria-label": t?.(f) ?? `and ${f} more topics`,
@@ -289,11 +289,11 @@ var yt = /* @__PURE__ */ function(e) {
289
289
  ]
290
290
  });
291
291
  }, Kt = { img: () => null }, qt = (e) => e.target instanceof Element && e.target.closest("a") !== null, Jt = ({ item: e, query: t = "", onClick: n, initialIsStarred: r = !1, onToggle: i, isFavoriteVisible: a, featuredLabel: o = "Featured", addToFavoritesAriaLabel: s = "Add to favorites", removeFromFavoritesAriaLabel: c = "Remove from favorites", isSelected: l = !1, className: u, styles: d, credentialsBadgeLoggedOutLabel: f, isReadonly: p = !1 }) => {
292
- let [m, h] = L(r);
293
- P(() => {
292
+ let [m, h] = I(r);
293
+ N(() => {
294
294
  h(r);
295
295
  }, [e.id, r]);
296
- let g = d?.typography?.descriptionClassName ?? "dial-small-paragraph-text", _ = d?.typography?.featuredChipClassName, v = d?.typography?.folderLabelClassName ?? "dial-tiny-text", y = d?.typography?.folderLeafClassName ?? "dial-tiny-semi-text", b = j({
296
+ let g = d?.typography?.descriptionClassName ?? "dial-small-paragraph-text", _ = d?.typography?.featuredChipClassName, v = d?.typography?.folderLabelClassName ?? "dial-tiny-text", y = d?.typography?.folderLeafClassName ?? "dial-tiny-semi-text", b = re({
297
297
  "--cg-description-text": d?.colors?.textSecondary,
298
298
  "--cg-selected-border": d?.colors?.selectedBorder,
299
299
  "--cg-selected-bg": d?.colors?.selectedBackground,
@@ -301,9 +301,9 @@ var yt = /* @__PURE__ */ function(e) {
301
301
  "--cg-footer-border": d?.colors?.footerBorder
302
302
  }), x = !p && e.isFeatured === !0, S = !p && a?.(e) !== !1, C = !p || e.folder.length > 0, w = n ? (t) => {
303
303
  qt(t) || n(e);
304
- } : void 0, T = N((t) => {
304
+ } : void 0, T = M((t) => {
305
305
  !n || qt(t) || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e));
306
- }, [n, e]), D = N((t) => {
306
+ }, [n, e]), D = M((t) => {
307
307
  t.stopPropagation();
308
308
  let n = !m;
309
309
  h(n), i?.(e.id, n);
@@ -312,7 +312,7 @@ var yt = /* @__PURE__ */ function(e) {
312
312
  i,
313
313
  e.id
314
314
  ]);
315
- return /* @__PURE__ */ K(de, {
315
+ return /* @__PURE__ */ K(fe, {
316
316
  ...n ? {
317
317
  role: "button",
318
318
  tabIndex: 0,
@@ -321,7 +321,7 @@ var yt = /* @__PURE__ */ function(e) {
321
321
  } : {},
322
322
  "aria-label": e.name,
323
323
  style: b,
324
- className: M("box-border cursor-pointer gap-3", Ft.card, x ? Ft.featuredCard : void 0, l ? Ft.selectedCard : void 0, u, Z.card),
324
+ className: j("box-border cursor-pointer gap-3", Pt.card, x ? Pt.featuredCard : void 0, l ? Pt.selectedCard : void 0, u, Q.card),
325
325
  children: [
326
326
  x && /* @__PURE__ */ G("div", {
327
327
  className: "absolute end-[22px] top-0 -translate-y-1/2",
@@ -332,27 +332,27 @@ var yt = /* @__PURE__ */ function(e) {
332
332
  style: d?.colors?.featuredChipStyle
333
333
  })
334
334
  }),
335
- l && /* @__PURE__ */ G(Ue, {
336
- size: z.SM,
337
- className: M("absolute end-3 top-3 shrink-0", Ft.checkIcon),
335
+ l && /* @__PURE__ */ G(We, {
336
+ size: R.SM,
337
+ className: j("absolute end-3 top-3 shrink-0", Pt.checkIcon),
338
338
  "aria-hidden": !0,
339
- stroke: B
339
+ stroke: z
340
340
  }),
341
341
  /* @__PURE__ */ G(It, {
342
342
  icon: e.iconUrl,
343
343
  type: e.type,
344
344
  name: e.name,
345
345
  version: e.version,
346
- size: xt.SM,
346
+ size: X.SM,
347
347
  query: t,
348
- iconClassName: Ft.cardIcon,
348
+ iconClassName: Pt.cardIcon,
349
349
  iconOverlay: /* @__PURE__ */ G(Rt, {
350
350
  credentials: e.credentials,
351
351
  loggedOutLabel: f
352
352
  })
353
353
  }),
354
354
  /* @__PURE__ */ G("div", {
355
- className: M("line-clamp-2 min-h-[2lh] break-words", Ft.description),
355
+ className: j("line-clamp-2 min-h-[2lh] break-words", Pt.description),
356
356
  children: e.description && /* @__PURE__ */ G(k, {
357
357
  content: e.description,
358
358
  classNames: {
@@ -374,28 +374,28 @@ var yt = /* @__PURE__ */ function(e) {
374
374
  children: /* @__PURE__ */ G(Gt, { topics: e.topics })
375
375
  }),
376
376
  C && /* @__PURE__ */ G("div", {
377
- className: M("pt-3", !p && M("border-t", Ft.footer)),
377
+ className: j("pt-3", !p && j("border-t", Pt.footer)),
378
378
  children: /* @__PURE__ */ K("div", {
379
379
  className: "flex items-center gap-2",
380
380
  children: [/* @__PURE__ */ G("div", {
381
381
  className: "min-w-0 flex-1",
382
- children: e.folder.length > 0 && /* @__PURE__ */ G(ve, {
382
+ children: e.folder.length > 0 && /* @__PURE__ */ G(ye, {
383
383
  segments: e.folder,
384
384
  labelClassName: v,
385
385
  leafClassName: y
386
386
  })
387
387
  }), S && /* @__PURE__ */ G(Bt, {
388
388
  isStarred: m,
389
- size: ge.Small,
389
+ size: _e.Small,
390
390
  onClick: D,
391
391
  ariaLabel: m ? c : s,
392
- className: M(Ft.starBtn, !m && Ft.emptyStarHidden)
392
+ className: j(Pt.starBtn, !m && Pt.emptyStarHidden)
393
393
  })]
394
394
  })
395
395
  })
396
396
  ]
397
397
  });
398
- }, Yt = ie(({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, isFavoriteVisible: a, onItemClick: o, featuredLabel: s, addToFavoritesAriaLabel: c, removeFromFavoritesAriaLabel: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f, featuredChipStyle: p }) => {
398
+ }, Yt = ae(({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, isFavoriteVisible: a, onItemClick: o, featuredLabel: s, addToFavoritesAriaLabel: c, removeFromFavoritesAriaLabel: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f, featuredChipStyle: p }) => {
399
399
  let m = e * n, h = t.slice(m, m + n);
400
400
  return /* @__PURE__ */ G("div", {
401
401
  style: {
@@ -426,8 +426,8 @@ var yt = /* @__PURE__ */ function(e) {
426
426
  }, n?.id ?? `spacer-${t}`);
427
427
  })
428
428
  });
429
- }), Xt = ie(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = Ft.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1, featuredChipStyle: f }) => {
430
- let p = a?.noResultsTitle ?? "No results", m = a?.featuredLabel ?? "Featured", h = a?.addToFavoritesAriaLabel ?? "Add to favorites", g = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", _ = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", { containerRef: v, startRow: y, endRow: b, columnCount: x, totalHeight: S } = Pt(e.length, { isFullWidth: d }), C = F(() => ({
429
+ }), Xt = ae(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = Pt.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1, featuredChipStyle: f }) => {
430
+ let p = a?.noResultsTitle ?? "No results", m = a?.featuredLabel ?? "Featured", h = a?.addToFavoritesAriaLabel ?? "Add to favorites", g = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", _ = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", { containerRef: v, startRow: y, endRow: b, columnCount: x, totalHeight: S } = Nt(e.length, { isFullWidth: d }), C = P(() => ({
431
431
  items: e,
432
432
  columnCount: x,
433
433
  query: t,
@@ -460,15 +460,15 @@ var yt = /* @__PURE__ */ function(e) {
460
460
  className: "grid gap-5 p-5",
461
461
  style: {
462
462
  gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
463
- ...j({ "--cg-skeleton-card-bg": l })
463
+ ...re({ "--cg-skeleton-card-bg": l })
464
464
  },
465
465
  children: Array.from({ length: x * 3 }, (e, t) => /* @__PURE__ */ G("div", {
466
- className: M("rounded-md border p-4", Ft.skeletonCard),
466
+ className: j("rounded-md border p-4", Pt.skeletonCard),
467
467
  style: { height: 248 },
468
- children: /* @__PURE__ */ G(Ne, {
468
+ children: /* @__PURE__ */ G(Pe, {
469
469
  avatar: {
470
470
  size: 48,
471
- shape: Pe.Square
471
+ shape: Fe.Square
472
472
  },
473
473
  showTitle: { width: `${60 + t * 17 % 30}%` },
474
474
  paragraph: { rows: 3 },
@@ -491,15 +491,15 @@ var yt = /* @__PURE__ */ function(e) {
491
491
  }, n);
492
492
  })
493
493
  });
494
- }), Zt = (e) => e.reduce((e, t) => t.type === X.File ? e + 1 : e + Zt(t.items), 0), Qt = (e) => {
494
+ }), Zt = (e) => e.reduce((e, t) => t.type === Z.File ? e + 1 : e + Zt(t.items), 0), Qt = (e) => {
495
495
  let t = /* @__PURE__ */ new Set(), n = (e) => {
496
- for (let r of e) r.type === X.Folder && (t.add(r.id), n(r.items));
496
+ for (let r of e) r.type === Z.Folder && (t.add(r.id), n(r.items));
497
497
  };
498
498
  return n(e), t;
499
499
  }, $t = (e, t) => {
500
500
  if (t != null) for (let n of e) {
501
501
  if (n.id === t) return n.name;
502
- if (n.type === X.Folder) {
502
+ if (n.type === Z.Folder) {
503
503
  let e = $t(n.items, t);
504
504
  if (e != null) return e;
505
505
  }
@@ -512,21 +512,21 @@ var yt = /* @__PURE__ */ function(e) {
512
512
  valueTrue: "_valueTrue_jnq93_17",
513
513
  valueFalse: "_valueFalse_jnq93_21",
514
514
  valueText: "_valueText_jnq93_25"
515
- }, tn = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(qe, {
516
- size: z.MD,
517
- className: M(r, en.checkIcon)
515
+ }, tn = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(Je, {
516
+ size: R.MD,
517
+ className: j(r, en.checkIcon)
518
518
  }), /* @__PURE__ */ G("span", {
519
- className: M(n, en.valueTrue),
519
+ className: j(n, en.valueTrue),
520
520
  children: i
521
521
  })] }) : e === !1 ? /* @__PURE__ */ G("span", {
522
- className: M(t, en.valueFalse),
522
+ className: j(t, en.valueFalse),
523
523
  children: a
524
524
  }) : /* @__PURE__ */ G("span", {
525
- className: M("min-w-0 break-words", t, en.valueText),
525
+ className: j("min-w-0 break-words", t, en.valueText),
526
526
  children: e
527
527
  }), nn = ({ sectionLabel: e = "Section", values: t, labelClassName: n = "dial-small-semi-text", valueClassName: r = "dial-small-text", valueTrueClassName: i = "dial-small-semi-text", checkIconClassName: a, sectionClassName: o = "dial-caption-text", yesLabel: s = "Yes", noLabel: c = "No", colors: l }) => /* @__PURE__ */ G("div", {
528
528
  className: "flex flex-col",
529
- style: j({
529
+ style: re({
530
530
  "--tv-section-heading": l?.sectionHeading,
531
531
  "--tv-row-alt-bg": l?.rowAlt,
532
532
  "--tv-label": l?.label,
@@ -536,14 +536,14 @@ var yt = /* @__PURE__ */ function(e) {
536
536
  "--tv-value-text": l?.valueText
537
537
  }),
538
538
  children: t != null && t.length > 0 && /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("p", {
539
- className: M("mb-3 mt-0", o, en.sectionHeading),
539
+ className: j("mb-3 mt-0", o, en.sectionHeading),
540
540
  children: e
541
541
  }), /* @__PURE__ */ G("ul", {
542
542
  className: "m-0 list-none p-0",
543
543
  children: t.map((e, t) => /* @__PURE__ */ K("li", {
544
- className: M("flex items-center rounded px-3 py-2", t % 2 == 0 ? en.rowAlt : void 0),
544
+ className: j("flex items-center rounded px-3 py-2", t % 2 == 0 ? en.rowAlt : void 0),
545
545
  children: [/* @__PURE__ */ G("span", {
546
- className: M(n, en.label, "w-2/5 shrink-0"),
546
+ className: j(n, en.label, "w-2/5 shrink-0"),
547
547
  children: e.label
548
548
  }), /* @__PURE__ */ G("div", {
549
549
  className: "flex w-3/5 min-w-0 items-center gap-1",
@@ -559,25 +559,25 @@ var yt = /* @__PURE__ */ function(e) {
559
559
  }, e.label))
560
560
  })] })
561
561
  }), rn = { sectionHeading: "_sectionHeading_148lj_1" }, an = {
562
- [yt.Python]: "Python",
563
- [yt.Curl]: "cURL",
564
- [yt.JavaScript]: "JavaScript"
562
+ [q.Python]: "Python",
563
+ [q.Curl]: "cURL",
564
+ [q.JavaScript]: "JavaScript"
565
565
  }, on = {
566
- [yt.Python]: "python",
567
- [yt.Curl]: "bash",
568
- [yt.JavaScript]: "javascript"
566
+ [q.Python]: "python",
567
+ [q.Curl]: "bash",
568
+ [q.JavaScript]: "javascript"
569
569
  }, sn = ({ snippets: e, sectionLabel: t, copyAriaLabel: n = "Copy", copiedStatusLabel: r = "Copied!", codeClassName: i = "dial-code-text", codeTitleClassName: a = "dial-tiny-semi-text", sectionClassName: o = "dial-caption-text" }) => {
570
- let [s, c] = L(e[0]?.language ?? yt.Python);
571
- P(() => {
572
- c(e[0]?.language ?? yt.Python);
570
+ let [s, c] = I(e[0]?.language ?? q.Python);
571
+ N(() => {
572
+ c(e[0]?.language ?? q.Python);
573
573
  }, [e]);
574
- let l = F(() => e.map((e) => ({
574
+ let l = P(() => e.map((e) => ({
575
575
  key: e.language,
576
576
  label: an[e.language] ?? e.language,
577
577
  onClick: () => c(e.language)
578
578
  })), [e]), u = e.find((e) => e.language === s)?.code ?? "", d = e.length > 1;
579
579
  return /* @__PURE__ */ K("section", { children: [t != null && /* @__PURE__ */ G("p", {
580
- className: M("mb-3 mt-0", o, rn.sectionHeading),
580
+ className: j("mb-3 mt-0", o, rn.sectionHeading),
581
581
  children: t
582
582
  }), /* @__PURE__ */ G(O, {
583
583
  language: on[s] ?? s,
@@ -588,16 +588,16 @@ var yt = /* @__PURE__ */ function(e) {
588
588
  codeClassName: i,
589
589
  languageLabelClassName: a,
590
590
  hideDownload: !0,
591
- titleSlot: d ? /* @__PURE__ */ G(Se, {
591
+ titleSlot: d ? /* @__PURE__ */ G(Ce, {
592
592
  items: l,
593
593
  matchReferenceWidth: !1,
594
594
  placement: "bottom-end",
595
- size: ge.Small,
595
+ size: _e.Small,
596
596
  selectedKey: s
597
597
  }) : void 0
598
598
  })] });
599
599
  }, cn = ({ api: e, resourceSectionLabel: t = "Resource", endpointSectionLabel: n = "Endpoint", snippetSectionLabel: r = "Code snippet", modelIdLabel: i = "Model ID", endpointLabel: a = "Endpoint", requestExampleLabel: o = "Request example", responseSchemaLabel: s = "Response schema", copyAriaLabel: c = "Copy", copiedStatusLabel: l = "Copied!", labelClassName: u = "dial-small-semi-text", valueClassName: d = "dial-small-text", codeClassName: f = "dial-code-text", codeTitleClassName: p = "dial-tiny-semi-text", sectionClassName: m = "dial-caption-text" }) => {
600
- let [h, g] = L(0), _ = F(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = F(() => _.map((e, t) => ({
600
+ let [h, g] = I(0), _ = P(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = P(() => _.map((e, t) => ({
601
601
  key: e.url,
602
602
  label: e.label,
603
603
  onClick: () => g(t)
@@ -628,7 +628,7 @@ var yt = /* @__PURE__ */ function(e) {
628
628
  }),
629
629
  v && /* @__PURE__ */ K("section", { children: [
630
630
  /* @__PURE__ */ G("p", {
631
- className: M("mb-3 mt-0", m, rn.sectionHeading),
631
+ className: j("mb-3 mt-0", m, rn.sectionHeading),
632
632
  children: n
633
633
  }),
634
634
  y != null && /* @__PURE__ */ G(O, {
@@ -639,11 +639,11 @@ var yt = /* @__PURE__ */ function(e) {
639
639
  codeClassName: f,
640
640
  languageLabelClassName: p,
641
641
  hideDownload: !0,
642
- titleSlot: S ? /* @__PURE__ */ G(Se, {
642
+ titleSlot: S ? /* @__PURE__ */ G(Ce, {
643
643
  items: b,
644
644
  matchReferenceWidth: !1,
645
645
  placement: "bottom-end",
646
- size: ge.Small,
646
+ size: _e.Small,
647
647
  selectedKey: y.url
648
648
  }) : void 0
649
649
  }, h),
@@ -669,7 +669,7 @@ var yt = /* @__PURE__ */ function(e) {
669
669
  sectionClassName: m
670
670
  }),
671
671
  E && /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("p", {
672
- className: M("mb-3 mt-0", m, rn.sectionHeading),
672
+ className: j("mb-3 mt-0", m, rn.sectionHeading),
673
673
  children: o
674
674
  }), /* @__PURE__ */ G(O, {
675
675
  language: "bash",
@@ -680,7 +680,7 @@ var yt = /* @__PURE__ */ function(e) {
680
680
  hideDownload: !0
681
681
  })] }),
682
682
  D && /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("p", {
683
- className: M("mb-3 mt-0", m, rn.sectionHeading),
683
+ className: j("mb-3 mt-0", m, rn.sectionHeading),
684
684
  children: s
685
685
  }), /* @__PURE__ */ G(O, {
686
686
  language: "json",
@@ -698,17 +698,17 @@ var yt = /* @__PURE__ */ function(e) {
698
698
  footer: "_footer_13mok_9"
699
699
  }, un = ({ confirmLabel: e, cancelLabel: t, variant: n = bt.Info, isLoading: r = !1, isConfirmDisabled: i = !1, loadingStatusLabel: a, onConfirm: o, onCancel: s }) => {
700
700
  let c = n === bt.Danger, l = (() => {
701
- if (r) return /* @__PURE__ */ G(Fe, { size: z.SM });
702
- if (c) return /* @__PURE__ */ G(lt, {
703
- size: z.MD,
701
+ if (r) return /* @__PURE__ */ G(Ie, { size: R.SM });
702
+ if (c) return /* @__PURE__ */ G(U, {
703
+ size: R.MD,
704
704
  "aria-hidden": !0,
705
- stroke: B
705
+ stroke: z
706
706
  });
707
- })(), u = c ? me : De;
707
+ })(), u = c ? he : Oe;
708
708
  return /* @__PURE__ */ K("div", {
709
- className: M("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start", ln.footer),
709
+ className: j("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start", ln.footer),
710
710
  children: [
711
- /* @__PURE__ */ G(ye, {
711
+ /* @__PURE__ */ G(be, {
712
712
  label: t,
713
713
  disabled: r,
714
714
  onClick: s
@@ -743,11 +743,11 @@ var yt = /* @__PURE__ */ function(e) {
743
743
  variant: r
744
744
  }),
745
745
  /* @__PURE__ */ G("p", {
746
- className: M(i, "break-words", ln.message),
746
+ className: j(i, "break-words", ln.message),
747
747
  children: t
748
748
  }),
749
749
  n != null && n.length > 0 && /* @__PURE__ */ G("ul", {
750
- className: M("flex list-disc flex-col gap-2 ps-5", i, ln.consequences),
750
+ className: j("flex list-disc flex-col gap-2 ps-5", i, ln.consequences),
751
751
  children: n.map((e) => /* @__PURE__ */ G("li", { children: e }, e))
752
752
  }),
753
753
  a
@@ -765,13 +765,13 @@ var yt = /* @__PURE__ */ function(e) {
765
765
  className: "relative inline-flex shrink-0",
766
766
  children: [
767
767
  /* @__PURE__ */ G("span", {
768
- className: M("flex size-8 items-center justify-center rounded-lg", gn[n]),
768
+ className: j("flex size-8 items-center justify-center rounded-lg", gn[n]),
769
769
  children: e
770
770
  }),
771
- t && /* @__PURE__ */ G(qe, {
772
- size: z.MD,
771
+ t && /* @__PURE__ */ G(Je, {
772
+ size: R.MD,
773
773
  "aria-hidden": !0,
774
- className: M("absolute -end-2 -top-2", mn.activeIcon)
774
+ className: j("absolute -end-2 -top-2", mn.activeIcon)
775
775
  }),
776
776
  r != null && /* @__PURE__ */ G("span", {
777
777
  role: "status",
@@ -787,19 +787,19 @@ var yt = /* @__PURE__ */ function(e) {
787
787
  }, yn = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ K("div", {
788
788
  role: "status",
789
789
  "aria-live": "polite",
790
- className: M("flex items-center gap-3 rounded-xl p-3", vn.card),
790
+ className: j("flex items-center gap-3 rounded-xl p-3", vn.card),
791
791
  children: [/* @__PURE__ */ G("span", {
792
- className: M("shrink-0", vn.icon, n != null && "mt-0.5"),
792
+ className: j("shrink-0", vn.icon, n != null && "mt-0.5"),
793
793
  children: e
794
794
  }), /* @__PURE__ */ K("div", {
795
795
  className: "flex min-w-0 flex-1 items-center justify-between gap-2",
796
796
  children: [/* @__PURE__ */ K("div", {
797
797
  className: "flex min-w-0 flex-col gap-1",
798
798
  children: [/* @__PURE__ */ G("span", {
799
- className: M(i, vn.title),
799
+ className: j(i, vn.title),
800
800
  children: t
801
801
  }), n != null && /* @__PURE__ */ G("span", {
802
- className: M(a, vn.description),
802
+ className: j(a, vn.description),
803
803
  children: n
804
804
  })]
805
805
  }), r != null && /* @__PURE__ */ G("div", {
@@ -808,19 +808,19 @@ var yt = /* @__PURE__ */ function(e) {
808
808
  })]
809
809
  })]
810
810
  }), bn = (e) => e === y.ApiKey ? "You are currently using organization API key to access this toolset." : "You are currently using organization credentials to access this toolset.", xn = (e) => e === y.ApiKey ? "Configure your personal API key to have access to your data." : "Login using personal account to have access to your data.", Sn = (e) => e === y.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", Cn = (e) => e === y.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", wn = 20, Tn = ({ state: e, authenticationType: t, texts: n }) => {
811
- let r = /* @__PURE__ */ G(He, {
811
+ let r = /* @__PURE__ */ G(Ue, {
812
812
  size: wn,
813
813
  "aria-hidden": !0,
814
- stroke: B
814
+ stroke: z
815
815
  });
816
816
  if (e === v.PersonalCredentialsActive) {
817
817
  let e = (n?.personalCredentialsActiveBannerTitle ?? Cn)(t);
818
818
  return /* @__PURE__ */ G(yn, {
819
819
  icon: /* @__PURE__ */ G(_n, {
820
820
  icon: /* @__PURE__ */ G(ut, {
821
- size: z.SM,
821
+ size: R.SM,
822
822
  "aria-hidden": !0,
823
- stroke: B
823
+ stroke: z
824
824
  }),
825
825
  isActive: !0,
826
826
  surface: hn.Raised
@@ -832,10 +832,10 @@ var yt = /* @__PURE__ */ function(e) {
832
832
  let e = (n?.orgCredentialsActiveBannerTitle ?? Sn)(t);
833
833
  return /* @__PURE__ */ G(yn, {
834
834
  icon: /* @__PURE__ */ G(_n, {
835
- icon: /* @__PURE__ */ G(He, {
836
- size: z.SM,
835
+ icon: /* @__PURE__ */ G(Ue, {
836
+ size: R.SM,
837
837
  "aria-hidden": !0,
838
- stroke: B
838
+ stroke: z
839
839
  }),
840
840
  isActive: !0,
841
841
  surface: hn.Raised
@@ -854,9 +854,9 @@ var yt = /* @__PURE__ */ function(e) {
854
854
  rowDescription: "_rowDescription_lyarp_9",
855
855
  errorText: "_errorText_lyarp_13"
856
856
  }, Dn = ({ label: e, description: t, icon: n, status: r, isActive: i, authenticationType: a, apiKeyAddedWhen: s, onLogin: c, onRequestLogout: l, onRequestDeleteApiKey: u, texts: d, labelClassName: f, descriptionClassName: p, errorClassName: m, keyCardTitleClassName: h, keyCardDescriptionClassName: g, deleteActionClassName: _, disabled: v = !1, isPending: b = !1, renderLoginOptions: x, children: S }) => {
857
- let C = oe(), [w, T] = L(), [E, D] = L(""), [O, k] = L(!1), [A, ee] = L(!1), te = r === o.SignedIn, ne = N((e) => {
857
+ let C = se(), [w, T] = I(), [E, D] = I(""), [O, k] = I(!1), [A, ee] = I(!1), te = r === o.SignedIn, ne = M((e) => {
858
858
  D(e ?? ""), k(!1), T(void 0);
859
- }, []), j = async () => {
859
+ }, []), re = async () => {
860
860
  if (A || v) return;
861
861
  let e = a === y.ApiKey;
862
862
  if (e && !E.trim()) {
@@ -871,7 +871,7 @@ var yt = /* @__PURE__ */ function(e) {
871
871
  } finally {
872
872
  ee(!1);
873
873
  }
874
- }, re = d?.loginActionLabel ?? "Log in", ie = d?.logoutActionLabel ?? "Log out", ae = d?.addApiKeyActionLabel ?? "Add", P = d?.deleteActionLabel ?? "Delete", se = d?.credentialsSignedInLabel ?? "Signed in", F = d?.credentialsSignedOutLabel ?? "Signed out", I = d?.addingApiKeyStatusLabel ?? "Adding", ce = d?.apiKeyConfiguredMessage ?? "Key has been configured", le = s == null ? void 0 : (d?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(s);
874
+ }, ie = d?.loginActionLabel ?? "Log in", ae = d?.logoutActionLabel ?? "Log out", oe = d?.addApiKeyActionLabel ?? "Add", N = d?.deleteActionLabel ?? "Delete", ce = d?.credentialsSignedInLabel ?? "Signed in", P = d?.credentialsSignedOutLabel ?? "Signed out", F = d?.addingApiKeyStatusLabel ?? "Adding", le = d?.apiKeyConfiguredMessage ?? "Key has been configured", ue = s == null ? void 0 : (d?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(s);
875
875
  return /* @__PURE__ */ K("div", {
876
876
  role: "group",
877
877
  "aria-label": e,
@@ -880,7 +880,7 @@ var yt = /* @__PURE__ */ function(e) {
880
880
  children: [/* @__PURE__ */ G(_n, {
881
881
  icon: n,
882
882
  isActive: i,
883
- statusLabel: i ? se : F
883
+ statusLabel: i ? ce : P
884
884
  }), /* @__PURE__ */ K("div", {
885
885
  className: "flex min-w-0 flex-1 flex-col gap-1",
886
886
  children: [
@@ -892,32 +892,32 @@ var yt = /* @__PURE__ */ function(e) {
892
892
  className: f,
893
893
  children: e
894
894
  }), /* @__PURE__ */ G("span", {
895
- className: M(p, En.rowDescription),
895
+ className: j(p, En.rowDescription),
896
896
  children: t
897
897
  })]
898
- }), a === y.OAuth && (te ? l && /* @__PURE__ */ G(me, {
899
- appearance: R.Ghost,
900
- label: ie,
898
+ }), a === y.OAuth && (te ? l && /* @__PURE__ */ G(he, {
899
+ appearance: L.Ghost,
900
+ label: ae,
901
901
  className: "min-h-11 min-w-28 shrink-0 justify-center whitespace-nowrap",
902
902
  onClick: l,
903
903
  disabled: A || v
904
- }) : /* @__PURE__ */ G(De, {
905
- label: A ? void 0 : re,
906
- "aria-label": re,
907
- iconBefore: A ? /* @__PURE__ */ G(Fe, {
908
- size: z.SM,
909
- ariaLabel: re
904
+ }) : /* @__PURE__ */ G(Oe, {
905
+ label: A ? void 0 : ie,
906
+ "aria-label": ie,
907
+ iconBefore: A ? /* @__PURE__ */ G(Ie, {
908
+ size: R.SM,
909
+ ariaLabel: ie
910
910
  }) : void 0,
911
911
  disabled: A || v,
912
912
  className: "min-h-11 min-w-28 shrink-0 justify-center whitespace-nowrap",
913
- onClick: j
913
+ onClick: re
914
914
  }))]
915
915
  }),
916
916
  a === y.ApiKey && !te && /* @__PURE__ */ K("div", {
917
917
  className: "flex animate-fadeIn flex-col gap-1 pt-1",
918
918
  children: [/* @__PURE__ */ K("div", {
919
919
  className: "flex items-end gap-2",
920
- children: [/* @__PURE__ */ G(Ce, {
920
+ children: [/* @__PURE__ */ G(B, {
921
921
  id: C,
922
922
  type: "password",
923
923
  autoComplete: "off",
@@ -927,38 +927,38 @@ var yt = /* @__PURE__ */ function(e) {
927
927
  invalid: O,
928
928
  disabled: A || v,
929
929
  containerClassName: "min-w-0 flex-1"
930
- }), /* @__PURE__ */ G(De, {
931
- label: A ? void 0 : ae,
932
- "aria-label": A ? I : void 0,
933
- iconBefore: A ? /* @__PURE__ */ G(Fe, {
934
- size: z.SM,
935
- ariaLabel: I
930
+ }), /* @__PURE__ */ G(Oe, {
931
+ label: A ? void 0 : oe,
932
+ "aria-label": A ? F : void 0,
933
+ iconBefore: A ? /* @__PURE__ */ G(Ie, {
934
+ size: R.SM,
935
+ ariaLabel: F
936
936
  }) : void 0,
937
937
  className: "min-h-11 shrink-0 whitespace-nowrap",
938
- onClick: j,
938
+ onClick: re,
939
939
  disabled: A || v
940
940
  })]
941
941
  }), O && /* @__PURE__ */ G("span", {
942
942
  role: "alert",
943
- className: M(m, En.errorText),
943
+ className: j(m, En.errorText),
944
944
  children: d?.apiKeyRequiredErrorMessage ?? "API key is required."
945
945
  })]
946
946
  }),
947
947
  a === y.ApiKey && te && /* @__PURE__ */ G("div", {
948
948
  className: "animate-fadeIn pt-1",
949
949
  children: /* @__PURE__ */ G(yn, {
950
- icon: /* @__PURE__ */ G(Qe, {
951
- size: z.SM,
950
+ icon: /* @__PURE__ */ G($e, {
951
+ size: R.SM,
952
952
  "aria-hidden": !0,
953
- stroke: B
953
+ stroke: z
954
954
  }),
955
- title: ce,
956
- description: le,
955
+ title: le,
956
+ description: ue,
957
957
  titleClassName: h,
958
958
  descriptionClassName: g,
959
- action: u && /* @__PURE__ */ G(we, {
960
- label: P,
961
- className: M("min-h-11", _),
959
+ action: u && /* @__PURE__ */ G(Te, {
960
+ label: N,
961
+ className: j("min-h-11", _),
962
962
  onClick: u,
963
963
  disabled: A || v
964
964
  })
@@ -967,7 +967,7 @@ var yt = /* @__PURE__ */ function(e) {
967
967
  !te && x?.(A || v),
968
968
  w && /* @__PURE__ */ G("p", {
969
969
  role: "alert",
970
- className: M(m, En.errorText),
970
+ className: j(m, En.errorText),
971
971
  children: w
972
972
  }),
973
973
  S
@@ -983,7 +983,7 @@ var yt = /* @__PURE__ */ function(e) {
983
983
  children: [/* @__PURE__ */ G("div", {
984
984
  className: "px-6 py-4",
985
985
  children: /* @__PURE__ */ G("div", {
986
- className: M("rounded-xl p-3", En.surface),
986
+ className: j("rounded-xl p-3", En.surface),
987
987
  children: /* @__PURE__ */ G(w, {
988
988
  item: e,
989
989
  iconSize: 40,
@@ -993,7 +993,7 @@ var yt = /* @__PURE__ */ function(e) {
993
993
  }), /* @__PURE__ */ K("div", {
994
994
  className: "flex flex-col gap-5 px-6 py-4",
995
995
  children: [/* @__PURE__ */ G("span", {
996
- className: M(c, En.description),
996
+ className: j(c, En.description),
997
997
  children: h
998
998
  }), /* @__PURE__ */ K("div", {
999
999
  className: "flex flex-col",
@@ -1001,9 +1001,9 @@ var yt = /* @__PURE__ */ function(e) {
1001
1001
  label: i?.personalCredentialsLabel ?? "Personal credentials",
1002
1002
  description: i?.personalCredentialsDescription ?? "These credentials apply only to your account.",
1003
1003
  icon: /* @__PURE__ */ G(ut, {
1004
- size: z.SM,
1004
+ size: R.SM,
1005
1005
  "aria-hidden": !0,
1006
- stroke: B
1006
+ stroke: z
1007
1007
  }),
1008
1008
  status: m.userStatus,
1009
1009
  isActive: g,
@@ -1025,10 +1025,10 @@ var yt = /* @__PURE__ */ function(e) {
1025
1025
  }), /* @__PURE__ */ G(Dn, {
1026
1026
  label: i?.organizationCredentialsLabel ?? "Organization credentials",
1027
1027
  description: i?.organizationCredentialsDescription ?? "Once added, these credentials will grant all users in your organization access to this toolset.",
1028
- icon: /* @__PURE__ */ G(He, {
1029
- size: z.SM,
1028
+ icon: /* @__PURE__ */ G(Ue, {
1029
+ size: R.SM,
1030
1030
  "aria-hidden": !0,
1031
- stroke: B
1031
+ stroke: z
1032
1032
  }),
1033
1033
  status: m.globalStatus,
1034
1034
  isActive: _,
@@ -1061,9 +1061,9 @@ var yt = /* @__PURE__ */ function(e) {
1061
1061
  }, jn = /* @__PURE__ */ function(e) {
1062
1062
  return e.Idle = "idle", e.Loading = "loading", e.Resolved = "resolved", e.Unknown = "unknown", e;
1063
1063
  }({}), Mn = { divider: "_divider_nhloi_1" }, Nn = 16, Pn = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, onLogin: i, onLogout: a, onClose: s, texts: c, deleteActionClassName: l = "text-error" }) => {
1064
- let [u, d] = L(""), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L(!1), v = n === o.SignedIn, y = N((e) => {
1064
+ let [u, d] = I(""), [f, p] = I(!1), [m, h] = I(!1), [g, _] = I(!1), v = n === o.SignedIn, y = M((e) => {
1065
1065
  d(e ?? ""), p(!1);
1066
- }, []), b = N(async () => {
1066
+ }, []), b = M(async () => {
1067
1067
  if (u.trim().length === 0) {
1068
1068
  p(!0);
1069
1069
  return;
@@ -1083,7 +1083,7 @@ var yt = /* @__PURE__ */ function(e) {
1083
1083
  u,
1084
1084
  i,
1085
1085
  s
1086
- ]), x = N(async () => {
1086
+ ]), x = M(async () => {
1087
1087
  _(!0);
1088
1088
  try {
1089
1089
  await a?.(e, { level: t }), s();
@@ -1106,12 +1106,12 @@ var yt = /* @__PURE__ */ function(e) {
1106
1106
  children: S
1107
1107
  })
1108
1108
  }),
1109
- /* @__PURE__ */ G("div", { className: M("mx-4 h-px", Mn.divider) }),
1109
+ /* @__PURE__ */ G("div", { className: j("mx-4 h-px", Mn.divider) }),
1110
1110
  !v && /* @__PURE__ */ K("div", {
1111
1111
  className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
1112
1112
  children: [/* @__PURE__ */ K("div", {
1113
1113
  className: "flex items-end gap-2",
1114
- children: [/* @__PURE__ */ G(Ce, {
1114
+ children: [/* @__PURE__ */ G(B, {
1115
1115
  id: `catalog-item-${e.id}-${t}-api-key`,
1116
1116
  type: "password",
1117
1117
  autoComplete: "current-password",
@@ -1121,10 +1121,10 @@ var yt = /* @__PURE__ */ function(e) {
1121
1121
  invalid: f,
1122
1122
  disabled: m,
1123
1123
  containerClassName: "min-w-0 flex-1"
1124
- }), /* @__PURE__ */ G(De, {
1124
+ }), /* @__PURE__ */ G(Oe, {
1125
1125
  label: m ? void 0 : C,
1126
1126
  "aria-label": m ? T : void 0,
1127
- iconBefore: m ? /* @__PURE__ */ G(Fe, {
1127
+ iconBefore: m ? /* @__PURE__ */ G(Ie, {
1128
1128
  size: Nn,
1129
1129
  ariaLabel: T
1130
1130
  }) : void 0,
@@ -1139,17 +1139,17 @@ var yt = /* @__PURE__ */ function(e) {
1139
1139
  v && /* @__PURE__ */ G("div", {
1140
1140
  className: "animate-fadeIn px-4 py-3.5",
1141
1141
  children: /* @__PURE__ */ G(yn, {
1142
- icon: /* @__PURE__ */ G(Qe, {
1142
+ icon: /* @__PURE__ */ G($e, {
1143
1143
  size: 20,
1144
1144
  "aria-hidden": !0,
1145
- stroke: B
1145
+ stroke: z
1146
1146
  }),
1147
1147
  title: O,
1148
1148
  description: k,
1149
- action: /* @__PURE__ */ G(we, {
1149
+ action: /* @__PURE__ */ G(Te, {
1150
1150
  label: g ? void 0 : w,
1151
1151
  "aria-label": g ? E : void 0,
1152
- iconBefore: g ? /* @__PURE__ */ G(Fe, {
1152
+ iconBefore: g ? /* @__PURE__ */ G(Ie, {
1153
1153
  size: Nn,
1154
1154
  ariaLabel: E
1155
1155
  }) : void 0,
@@ -1162,7 +1162,7 @@ var yt = /* @__PURE__ */ function(e) {
1162
1162
  ]
1163
1163
  });
1164
1164
  }, Fn = { name: "_name_gfs1p_1" }, In = (e) => e.isMyApp === !0, Ln = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
1165
- let [a, o] = L(!1), s = N(() => {
1165
+ let [a, o] = I(!1), s = M(() => {
1166
1166
  if (n) {
1167
1167
  o((e) => !e);
1168
1168
  return;
@@ -1174,21 +1174,21 @@ var yt = /* @__PURE__ */ function(e) {
1174
1174
  n
1175
1175
  ]);
1176
1176
  if (!In(e) || r && !r(e)) return null;
1177
- let c = /* @__PURE__ */ G(De, {
1177
+ let c = /* @__PURE__ */ G(Oe, {
1178
1178
  label: i,
1179
- iconBefore: /* @__PURE__ */ G(at, {
1180
- size: z.MD,
1181
- stroke: B
1179
+ iconBefore: /* @__PURE__ */ G(ot, {
1180
+ size: R.MD,
1181
+ stroke: z
1182
1182
  }),
1183
- iconAfter: /* @__PURE__ */ G(We, {
1184
- size: z.MD,
1185
- stroke: B
1183
+ iconAfter: /* @__PURE__ */ G(Ge, {
1184
+ size: R.MD,
1185
+ stroke: z
1186
1186
  }),
1187
1187
  onClick: s,
1188
1188
  "aria-haspopup": n ? "menu" : void 0,
1189
1189
  "aria-expanded": n ? a : void 0
1190
1190
  });
1191
- return n ? /* @__PURE__ */ G(he, {
1191
+ return n ? /* @__PURE__ */ G(ge, {
1192
1192
  placement: "bottom-end",
1193
1193
  matchReferenceWidth: !1,
1194
1194
  open: a,
@@ -1199,48 +1199,48 @@ var yt = /* @__PURE__ */ function(e) {
1199
1199
  children: c
1200
1200
  }) : c;
1201
1201
  }, Rn = (e) => e === y.ApiKey ? "Manage API keys" : "Manage credentials", zn = {
1202
- [J.LimitReached]: "bg-error text-error",
1203
- [J.RunningLow]: "bg-warning text-warning"
1202
+ [yt.LimitReached]: "bg-error text-error",
1203
+ [yt.RunningLow]: "bg-warning text-warning"
1204
1204
  }, Bn = ({ status: e, label: t }) => /* @__PURE__ */ G("div", {
1205
- className: M("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", zn[e]),
1205
+ className: j("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", zn[e]),
1206
1206
  children: t
1207
- }), Vn = ({ item: e, onUseInChat: t, isPrimaryActionVisible: r, onShare: i, shareOverlay: a, isShareVisible: o, isSharePrimary: s, onEdit: l, onDownload: u, isDownloadVisible: d, isDownloadPrimary: f, onDelete: p, onUnshare: m, isUnshareVisible: h, onRevokeShare: g, onFetchRecipientsCount: _, isRevokeShareVisible: v, onLogin: S, onLogout: C, onOpenCredentialsManagement: T, onRequestLogout: E, texts: D, detailsStyles: O, isPublishVisible: k, isPublishPrimary: A, onOpenPublish: ee, isUnpublishVisible: te, hasPublishedFolders: ne = !1, isPublishHistoryResolved: j = !0, onRequestPublishHistory: re, onOpenUnpublish: ie, isReadonly: ae = !1 }) => {
1208
- let { nameClassName: oe = "dial-body-semi-text", folderLabelClassName: se = "dial-tiny-text", folderLeafClassName: ce = "dial-tiny-semi-text" } = O?.typography ?? {}, R = e.details?.limits?.status, le = R == null ? void 0 : /* @__PURE__ */ G(Bn, {
1209
- status: R,
1210
- label: R === J.LimitReached ? D?.limitReachedLabel ?? "Limit reached" : D?.limitRunningLowLabel ?? "Running low"
1211
- }), ue = N(() => {
1207
+ }), Vn = ({ item: e, onUseInChat: t, isPrimaryActionVisible: r, onShare: i, shareOverlay: a, isShareVisible: o, isSharePrimary: s, onEdit: l, onDownload: u, isDownloadVisible: d, isDownloadPrimary: f, onDelete: p, onUnshare: m, isUnshareVisible: h, onRevokeShare: g, onFetchRecipientsCount: _, isRevokeShareVisible: v, onLogin: S, onLogout: C, onOpenCredentialsManagement: T, onRequestLogout: E, texts: D, detailsStyles: O, isPublishVisible: k, isPublishPrimary: A, onOpenPublish: ee, isUnpublishVisible: te, hasPublishedFolders: ne = !1, isPublishHistoryResolved: re = !0, onRequestPublishHistory: ie, onOpenUnpublish: ae, isReadonly: oe = !1 }) => {
1208
+ let { nameClassName: se = "dial-body-semi-text", folderLabelClassName: ce = "dial-tiny-text", folderLeafClassName: le = "dial-tiny-semi-text" } = O?.typography ?? {}, L = e.details?.limits?.status, ue = L == null ? void 0 : /* @__PURE__ */ G(Bn, {
1209
+ status: L,
1210
+ label: L === yt.LimitReached ? D?.limitReachedLabel ?? "Limit reached" : D?.limitRunningLowLabel ?? "Running low"
1211
+ }), de = M(() => {
1212
1212
  t?.(e);
1213
- }, [e, t]), de = N(() => {
1213
+ }, [e, t]), fe = M(() => {
1214
1214
  l?.(e);
1215
- }, [e, l]), fe = N(() => {
1215
+ }, [e, l]), pe = M(() => {
1216
1216
  ee?.();
1217
- }, [ee]), pe = N(() => {
1218
- ie?.();
1219
- }, [ie]), ge = N(() => {
1217
+ }, [ee]), me = M(() => {
1218
+ ae?.();
1219
+ }, [ae]), _e = M(() => {
1220
1220
  u?.(e);
1221
- }, [e, u]), [_e, ye] = L(!1);
1222
- P(() => {
1223
- ye(!1);
1221
+ }, [e, u]), [ve, be] = I(!1);
1222
+ N(() => {
1223
+ be(!1);
1224
1224
  }, [e.id]);
1225
- let be = N(() => {
1226
- _e || (ye(!0), (async () => {
1225
+ let xe = M(() => {
1226
+ ve || (be(!0), (async () => {
1227
1227
  try {
1228
1228
  await u?.(e);
1229
1229
  } catch {} finally {
1230
- ye(!1);
1230
+ be(!1);
1231
1231
  }
1232
1232
  })());
1233
1233
  }, [
1234
1234
  e,
1235
1235
  u,
1236
- _e
1237
- ]), [xe, Se] = L(!1);
1238
- P(() => {
1239
- Se(!1);
1236
+ ve
1237
+ ]), [Se, Ce] = I(!1);
1238
+ N(() => {
1239
+ Ce(!1);
1240
1240
  }, [e.id]);
1241
- let V = N(() => {
1241
+ let we = M(() => {
1242
1242
  if (a) {
1243
- Se(!0);
1243
+ Ce(!0);
1244
1244
  return;
1245
1245
  }
1246
1246
  i?.(e);
@@ -1248,29 +1248,29 @@ var yt = /* @__PURE__ */ function(e) {
1248
1248
  e,
1249
1249
  i,
1250
1250
  a
1251
- ]), Ce = N(() => {
1252
- Se(!1);
1253
- }, []), we = N(() => {
1251
+ ]), B = M(() => {
1252
+ Ce(!1);
1253
+ }, []), Te = M(() => {
1254
1254
  m?.(e);
1255
- }, [e, m]), Te = N(() => {
1255
+ }, [e, m]), Ee = M(() => {
1256
1256
  p?.(e);
1257
- }, [e, p]), Ee = N(() => {
1257
+ }, [e, p]), De = M(() => {
1258
1258
  g?.(e);
1259
- }, [e, g]), [Ae, je] = L(jn.Idle), [H, Me] = L(void 0), Ne = I(null);
1260
- P(() => {
1261
- Ne.current = null, je(jn.Idle), Me(void 0);
1259
+ }, [e, g]), [je, Me] = I(jn.Idle), [Ne, V] = I(void 0), Pe = F(null);
1260
+ N(() => {
1261
+ Pe.current = null, Me(jn.Idle), V(void 0);
1262
1262
  }, [e.id]);
1263
- let Pe = N(() => {
1264
- if (!_ || Ne.current === e.id || !g || e.isMyApp !== !0 || v?.(e) === !1) return;
1263
+ let Fe = M(() => {
1264
+ if (!_ || Pe.current === e.id || !g || e.isMyApp !== !0 || v?.(e) === !1) return;
1265
1265
  let t = e.id;
1266
- Ne.current = t, je(jn.Loading), (async () => {
1266
+ Pe.current = t, Me(jn.Loading), (async () => {
1267
1267
  try {
1268
1268
  let n = await _(e);
1269
- if (Ne.current !== t) return;
1270
- Me(n), je(n == null ? jn.Unknown : jn.Resolved);
1269
+ if (Pe.current !== t) return;
1270
+ V(n), Me(n == null ? jn.Unknown : jn.Resolved);
1271
1271
  } catch {
1272
- if (Ne.current !== t) return;
1273
- Me(void 0), je(jn.Unknown);
1272
+ if (Pe.current !== t) return;
1273
+ V(void 0), Me(jn.Unknown);
1274
1274
  }
1275
1275
  })();
1276
1276
  }, [
@@ -1278,153 +1278,153 @@ var yt = /* @__PURE__ */ function(e) {
1278
1278
  _,
1279
1279
  g,
1280
1280
  v
1281
- ]), [Ie, Le] = L(!1);
1282
- P(() => {
1283
- Le(!1);
1281
+ ]), [Le, Re] = I(!1);
1282
+ N(() => {
1283
+ Re(!1);
1284
1284
  }, [e.id]);
1285
- let Re = N((e) => {
1286
- Le(e), e && (Pe(), re?.());
1287
- }, [Pe, re]), ze = N(() => {
1288
- Pe(), re?.();
1289
- }, [Pe, re]), Be = N(() => {
1290
- re?.();
1291
- }, [re]), He = D?.hasPrimaryAction !== !1 && (r?.(e) ?? (e.type === x.Model || e.type === x.Agent || e.type === x.Prompt)), Ue = !ae && !!ie && ne && (te?.(e) ?? !0), Ge = !ae && !!ie && !j && te?.(e) === !0, Ke = !ae && !Ue && (k?.(e) ?? (e.type === x.Model || e.type === x.Toolset || e.type === x.Agent)), qe = !ae && !!l && !!e.isEditable, Xe = !ae && e.isMyApp === !0 && (o?.(e) ?? !0), Ze = s?.(e) ?? !0, $e = A?.(e) ?? !1, et = e.credentials?.authenticationType ?? y.None, U = e.credentials != null && et !== y.None ? c(e.credentials) : void 0, ot = !ae && U != null && (!!S || !!C), st = e.type === x.Toolset && ot, lt = !!u && (d?.(e) ?? !0), ut = lt && !st && (f?.(e) ?? (e.type === x.Skill && !He)), mt = lt && !ut, ht = !ae && e.isMyApp, gt = !ae && !!m && e.isMyApp !== !0 && e.sharedWithMe === !0 && (h?.(e) ?? !0), _t = !ae && !!g && e.isMyApp === !0 && (!_ || Ae === jn.Unknown || Ae === jn.Resolved && (H ?? 0) > 0) && (v?.(e) ?? !0), vt = F(() => {
1285
+ let ze = M((e) => {
1286
+ Re(e), e && (Fe(), ie?.());
1287
+ }, [Fe, ie]), Be = M(() => {
1288
+ Fe(), ie?.();
1289
+ }, [Fe, ie]), Ve = M(() => {
1290
+ ie?.();
1291
+ }, [ie]), Ue = D?.hasPrimaryAction !== !1 && (r?.(e) ?? (e.type === x.Model || e.type === x.Agent || e.type === x.Prompt)), We = !oe && !!ae && ne && (te?.(e) ?? !0), Ke = !oe && !!ae && !re && te?.(e) === !0, qe = !oe && !We && (k?.(e) ?? (e.type === x.Model || e.type === x.Toolset || e.type === x.Agent)), Je = !oe && !!l && !!e.isEditable, Ze = !oe && e.isMyApp === !0 && (o?.(e) ?? !0), Qe = s?.(e) ?? !0, et = A?.(e) ?? !1, tt = e.credentials?.authenticationType ?? y.None, H = e.credentials != null && tt !== y.None ? c(e.credentials) : void 0, st = !oe && H != null && (!!S || !!C), ct = e.type === x.Toolset && st, U = !!u && (d?.(e) ?? !0), ut = U && !ct && (f?.(e) ?? (e.type === x.Skill && !Ue)), mt = U && !ut, ht = !oe && e.isMyApp, gt = !oe && !!m && e.isMyApp !== !0 && e.sharedWithMe === !0 && (h?.(e) ?? !0), _t = !oe && !!g && e.isMyApp === !0 && (!_ || je === jn.Unknown || je === jn.Resolved && (Ne ?? 0) > 0) && (v?.(e) ?? !0), vt = P(() => {
1292
1292
  let e = [];
1293
- if (!Ze && Xe && e.push({
1293
+ if (!Qe && Ze && e.push({
1294
1294
  key: "share",
1295
1295
  label: D?.shareLabel ?? "Share",
1296
- Icon: at,
1296
+ Icon: ot,
1297
1297
  iconClassName: "text-secondary",
1298
- onClick: V
1299
- }), qe && e.push({
1298
+ onClick: we
1299
+ }), Je && e.push({
1300
1300
  key: "edit",
1301
1301
  label: D?.editActionLabel ?? "Edit",
1302
- Icon: rt,
1302
+ Icon: it,
1303
1303
  iconClassName: "text-secondary",
1304
- onClick: de
1304
+ onClick: fe
1305
1305
  }), mt && e.push({
1306
1306
  key: "download",
1307
1307
  label: D?.downloadActionLabel ?? "Download",
1308
- Icon: Ye,
1308
+ Icon: Xe,
1309
1309
  iconClassName: "text-secondary",
1310
- onClick: ge
1311
- }), !$e && Ke && e.push({
1310
+ onClick: _e
1311
+ }), !et && qe && e.push({
1312
1312
  key: "publish",
1313
1313
  label: D?.publishLabel ?? "Publish",
1314
1314
  Icon: pt,
1315
1315
  iconClassName: "text-secondary",
1316
- onClick: fe
1317
- }), !$e && Ue && e.push({
1316
+ onClick: pe
1317
+ }), !et && We && e.push({
1318
1318
  key: "unpublish",
1319
1319
  label: D?.unpublishLabel ?? "Unpublish",
1320
1320
  Icon: ft,
1321
1321
  iconClassName: "text-secondary",
1322
- onClick: pe
1322
+ onClick: me
1323
1323
  }), ht && e.push({
1324
1324
  key: "delete",
1325
1325
  label: D?.deleteActionLabel ?? "Delete",
1326
- Icon: ct,
1326
+ Icon: lt,
1327
1327
  danger: !0,
1328
- onClick: Te
1328
+ onClick: Ee
1329
1329
  }), _t) {
1330
1330
  let t = D?.revokeShareLabel ?? "Revoke access", n = D?.revokeShareLabelWithCount ?? ((e) => `${t} (${e})`);
1331
1331
  e.push({
1332
1332
  key: "revoke-share",
1333
- label: H == null ? t : n(H),
1333
+ label: Ne == null ? t : n(Ne),
1334
1334
  Icon: dt,
1335
1335
  danger: !0,
1336
- onClick: Ee
1336
+ onClick: De
1337
1337
  });
1338
1338
  }
1339
1339
  return gt && e.push({
1340
1340
  key: "unshare",
1341
1341
  label: D?.unshareLabel ?? "Remove from My List",
1342
- Icon: ct,
1343
- onClick: we
1342
+ Icon: lt,
1343
+ onClick: Te
1344
1344
  }), e;
1345
1345
  }, [
1346
+ Qe,
1346
1347
  Ze,
1347
- Xe,
1348
- qe,
1348
+ Je,
1349
1349
  mt,
1350
- $e,
1351
- Ke,
1352
- Ue,
1350
+ et,
1351
+ qe,
1352
+ We,
1353
1353
  ht,
1354
1354
  _t,
1355
- H,
1355
+ Ne,
1356
1356
  gt,
1357
1357
  D,
1358
- V,
1359
- de,
1360
- ge,
1358
+ we,
1361
1359
  fe,
1360
+ _e,
1362
1361
  pe,
1363
- Te,
1362
+ me,
1364
1363
  Ee,
1365
- we
1366
- ]), yt = F(() => vt.map(({ key: e, label: t, Icon: n, iconClassName: r, danger: i, onClick: a }) => ({
1364
+ De,
1365
+ Te
1366
+ ]), q = P(() => vt.map(({ key: e, label: t, Icon: n, iconClassName: r, danger: i, onClick: a }) => ({
1367
1367
  key: e,
1368
1368
  label: t,
1369
1369
  icon: /* @__PURE__ */ G(n, {
1370
- size: z.SM,
1370
+ size: R.SM,
1371
1371
  "aria-hidden": !0,
1372
1372
  className: r,
1373
- stroke: B
1373
+ stroke: z
1374
1374
  }),
1375
1375
  danger: i,
1376
1376
  onClick: a
1377
- })), [vt]), q = te?.(e), Y = !ae && !!ie && (q == null || q && !j), bt = !ae && !!g && !!_ && e.isMyApp === !0 && (v?.(e) ?? !0), xt = vt.length === 1 && !Ie && !Y && !bt ? vt[0] : void 0, [St, Ct] = L(!1), X = et === y.ApiKey && U !== n.ManageCredentials, wt = et === y.ApiKey && U === n.LogOut, Tt = et !== y.ApiKey && U !== n.ManageCredentials && U === n.LogOut, Z = N(() => {
1378
- if (U === n.ManageCredentials) {
1377
+ })), [vt]), J = te?.(e), Y = !oe && !!ae && (J == null || J && !re), bt = !oe && !!g && !!_ && e.isMyApp === !0 && (v?.(e) ?? !0), X = vt.length === 1 && !Le && !Y && !bt ? vt[0] : void 0, [xt, St] = I(!1), Z = tt === y.ApiKey && H !== n.ManageCredentials, Ct = tt === y.ApiKey && H === n.LogOut, wt = tt !== y.ApiKey && H !== n.ManageCredentials && H === n.LogOut, Q = M(() => {
1378
+ if (H === n.ManageCredentials) {
1379
1379
  T?.();
1380
1380
  return;
1381
1381
  }
1382
- if (X) {
1383
- Ct((e) => !e);
1382
+ if (Z) {
1383
+ St((e) => !e);
1384
1384
  return;
1385
1385
  }
1386
- if (U === n.LogOut) {
1386
+ if (H === n.LogOut) {
1387
1387
  E?.();
1388
1388
  return;
1389
1389
  }
1390
1390
  S?.(e, { level: b.User });
1391
1391
  }, [
1392
- U,
1393
- X,
1392
+ H,
1393
+ Z,
1394
1394
  e,
1395
1395
  S,
1396
1396
  T,
1397
1397
  E
1398
- ]), Et = U === n.ManageCredentials ? (D?.manageCredentialsActionLabel ?? Rn)(et) : et === y.ApiKey ? U === n.LogOut ? D?.changeApiKeyActionLabel ?? "Change API key" : D?.apiKeyActionLabel ?? "API key" : U === n.LogOut ? D?.logoutActionLabel ?? "Log out" : D?.loginActionLabel ?? "Log in", Dt = U === n.ManageCredentials || et === y.ApiKey ? /* @__PURE__ */ G(Qe, {
1399
- size: z.MD,
1400
- stroke: B
1401
- }) : U === n.LogOut ? /* @__PURE__ */ G(nt, {
1402
- size: z.MD,
1403
- stroke: B
1404
- }) : /* @__PURE__ */ G(tt, {
1405
- size: z.MD,
1406
- stroke: B
1407
- }), Ot = U === n.ManageCredentials ? /* @__PURE__ */ G(Ve, {
1408
- size: z.MD,
1398
+ ]), Tt = H === n.ManageCredentials ? (D?.manageCredentialsActionLabel ?? Rn)(tt) : tt === y.ApiKey ? H === n.LogOut ? D?.changeApiKeyActionLabel ?? "Change API key" : D?.apiKeyActionLabel ?? "API key" : H === n.LogOut ? D?.logoutActionLabel ?? "Log out" : D?.loginActionLabel ?? "Log in", Et = H === n.ManageCredentials || tt === y.ApiKey ? /* @__PURE__ */ G($e, {
1399
+ size: R.MD,
1400
+ stroke: z
1401
+ }) : H === n.LogOut ? /* @__PURE__ */ G(rt, {
1402
+ size: R.MD,
1403
+ stroke: z
1404
+ }) : /* @__PURE__ */ G(nt, {
1405
+ size: R.MD,
1406
+ stroke: z
1407
+ }), Dt = H === n.ManageCredentials ? /* @__PURE__ */ G(He, {
1408
+ size: R.MD,
1409
1409
  className: "rtl:scale-x-[-1]",
1410
- stroke: B
1411
- }) : X ? /* @__PURE__ */ G(We, {
1412
- size: z.MD,
1413
- stroke: B
1414
- }) : void 0, kt = (t) => {
1410
+ stroke: z
1411
+ }) : Z ? /* @__PURE__ */ G(Ge, {
1412
+ size: R.MD,
1413
+ stroke: z
1414
+ }) : void 0, Ot = (t) => {
1415
1415
  let n = /* @__PURE__ */ G(t, {
1416
- label: Et,
1417
- iconBefore: Dt,
1418
- iconAfter: Ot,
1419
- onClick: Z,
1420
- "aria-haspopup": X ? "dialog" : void 0,
1421
- "aria-expanded": X ? St : void 0
1416
+ label: Tt,
1417
+ iconBefore: Et,
1418
+ iconAfter: Dt,
1419
+ onClick: Q,
1420
+ "aria-haspopup": Z ? "dialog" : void 0,
1421
+ "aria-expanded": Z ? xt : void 0
1422
1422
  });
1423
- return !X || e.credentials == null ? n : /* @__PURE__ */ G(he, {
1423
+ return !Z || e.credentials == null ? n : /* @__PURE__ */ G(ge, {
1424
1424
  placement: "bottom-start",
1425
1425
  matchReferenceWidth: !1,
1426
- open: St,
1427
- onOpenChange: Ct,
1426
+ open: xt,
1427
+ onOpenChange: St,
1428
1428
  trigger: [],
1429
1429
  outsideClosable: !0,
1430
1430
  renderOverlay: () => /* @__PURE__ */ G(Pn, {
@@ -1434,128 +1434,128 @@ var yt = /* @__PURE__ */ function(e) {
1434
1434
  apiKeyAddedWhen: e.credentials?.userApiKeyAddedWhen,
1435
1435
  onLogin: S,
1436
1436
  onLogout: C,
1437
- onClose: () => Ct(!1),
1437
+ onClose: () => St(!1),
1438
1438
  texts: D
1439
1439
  }),
1440
1440
  children: n
1441
1441
  });
1442
- }, At = ({ key: t, label: n, Icon: r, danger: s, onClick: c }) => t === "share" ? /* @__PURE__ */ G(Ln, {
1442
+ }, kt = ({ key: t, label: n, Icon: r, danger: s, onClick: c }) => t === "share" ? /* @__PURE__ */ G(Ln, {
1443
1443
  item: e,
1444
1444
  onShare: i,
1445
1445
  shareOverlay: a,
1446
1446
  isShareVisible: o,
1447
1447
  label: D?.shareLabel
1448
- }) : /* @__PURE__ */ G(s ? me : De, {
1448
+ }) : /* @__PURE__ */ G(s ? he : Oe, {
1449
1449
  label: n,
1450
1450
  iconBefore: /* @__PURE__ */ G(r, {
1451
- size: z.MD,
1451
+ size: R.MD,
1452
1452
  "aria-hidden": !0,
1453
- stroke: B
1453
+ stroke: z
1454
1454
  }),
1455
1455
  onClick: c
1456
- }), jt = () => {
1457
- let t = /* @__PURE__ */ G(he, {
1458
- items: yt,
1456
+ }), At = () => {
1457
+ let t = /* @__PURE__ */ G(ge, {
1458
+ items: q,
1459
1459
  placement: "bottom-end",
1460
1460
  matchReferenceWidth: !1,
1461
- onOpenChange: Re,
1462
- children: /* @__PURE__ */ G(Oe, {
1463
- icon: /* @__PURE__ */ G(Je, {
1464
- size: z.LG,
1461
+ onOpenChange: ze,
1462
+ children: /* @__PURE__ */ G(ke, {
1463
+ icon: /* @__PURE__ */ G(Ye, {
1464
+ size: R.LG,
1465
1465
  "aria-hidden": !0,
1466
- stroke: B
1466
+ stroke: z
1467
1467
  }),
1468
1468
  "aria-label": D?.manageActionLabel ?? "Manage",
1469
1469
  "aria-haspopup": "menu",
1470
- onMouseEnter: ze,
1471
- onFocus: ze
1470
+ onMouseEnter: Be,
1471
+ onFocus: Be
1472
1472
  })
1473
1473
  });
1474
- return Ze || !a || !Xe ? t : /* @__PURE__ */ G(he, {
1474
+ return Qe || !a || !Ze ? t : /* @__PURE__ */ G(ge, {
1475
1475
  placement: "bottom-end",
1476
1476
  matchReferenceWidth: !1,
1477
- open: xe,
1478
- onOpenChange: Se,
1477
+ open: Se,
1478
+ onOpenChange: Ce,
1479
1479
  trigger: [],
1480
1480
  outsideClosable: !0,
1481
- renderOverlay: () => a(e, Ce),
1481
+ renderOverlay: () => a(e, B),
1482
1482
  children: t
1483
1483
  });
1484
- }, Mt = st || He || ut || Ze && Xe || $e && Ue || $e && Ke || ot && !st || yt.length > 0 || Ge;
1484
+ }, jt = ct || Ue || ut || Qe && Ze || et && We || et && qe || st && !ct || q.length > 0 || Ke;
1485
1485
  return /* @__PURE__ */ K("div", {
1486
1486
  className: "flex flex-col gap-3 px-6 py-4",
1487
1487
  children: [/* @__PURE__ */ G(w, {
1488
1488
  item: e,
1489
1489
  iconSize: 52,
1490
- nameClassName: M(oe, Fn.name),
1490
+ nameClassName: j(se, Fn.name),
1491
1491
  featuredLabel: D?.featuredLabel ?? "Featured",
1492
1492
  featuredChipStyle: O?.colors?.featuredChipStyle,
1493
- statusBadge: le,
1494
- footer: e.folder.length > 0 ? /* @__PURE__ */ G(ve, {
1493
+ statusBadge: ue,
1494
+ footer: e.folder.length > 0 ? /* @__PURE__ */ G(ye, {
1495
1495
  segments: e.folder,
1496
- labelClassName: se,
1497
- leafClassName: ce
1496
+ labelClassName: ce,
1497
+ leafClassName: le
1498
1498
  }) : void 0
1499
- }), Mt && /* @__PURE__ */ K("div", {
1499
+ }), jt && /* @__PURE__ */ K("div", {
1500
1500
  className: "flex flex-wrap items-center gap-2 ps-[60px]",
1501
1501
  children: [
1502
- st && kt(wt || Tt ? De : ke),
1503
- He && /* @__PURE__ */ G(ke, {
1502
+ ct && Ot(Ct || wt ? Oe : Ae),
1503
+ Ue && /* @__PURE__ */ G(Ae, {
1504
1504
  label: D?.primaryActionLabel ?? "Use in chat",
1505
- iconBefore: /* @__PURE__ */ G(it, { size: z.MD }),
1506
- onClick: ue,
1507
- disabled: R === J.LimitReached
1505
+ iconBefore: /* @__PURE__ */ G(at, { size: R.MD }),
1506
+ onClick: de,
1507
+ disabled: L === yt.LimitReached
1508
1508
  }),
1509
- ut && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(ke, {
1509
+ ut && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(Ae, {
1510
1510
  label: D?.downloadActionLabel ?? "Download",
1511
- iconBefore: _e ? /* @__PURE__ */ G(Fe, {
1512
- size: z.MD,
1511
+ iconBefore: ve ? /* @__PURE__ */ G(Ie, {
1512
+ size: R.MD,
1513
1513
  "aria-hidden": !0
1514
- }) : /* @__PURE__ */ G(Ye, {
1515
- size: z.MD,
1514
+ }) : /* @__PURE__ */ G(Xe, {
1515
+ size: R.MD,
1516
1516
  "aria-hidden": !0,
1517
- stroke: B
1517
+ stroke: z
1518
1518
  }),
1519
- onClick: be,
1520
- disabled: _e,
1521
- "aria-busy": _e
1522
- }), _e && /* @__PURE__ */ G("span", {
1519
+ onClick: xe,
1520
+ disabled: ve,
1521
+ "aria-busy": ve
1522
+ }), ve && /* @__PURE__ */ G("span", {
1523
1523
  role: "status",
1524
1524
  "aria-live": "polite",
1525
1525
  className: "sr-only",
1526
1526
  children: D?.downloadingStatusLabel ?? "Downloading"
1527
1527
  })] }),
1528
- Ze && Xe && /* @__PURE__ */ G(Ln, {
1528
+ Qe && Ze && /* @__PURE__ */ G(Ln, {
1529
1529
  item: e,
1530
1530
  onShare: i,
1531
1531
  shareOverlay: a,
1532
1532
  isShareVisible: o,
1533
1533
  label: D?.shareLabel
1534
1534
  }),
1535
- $e && Ue && /* @__PURE__ */ G(De, {
1535
+ et && We && /* @__PURE__ */ G(Oe, {
1536
1536
  label: D?.unpublishLabel ?? "Unpublish",
1537
1537
  iconBefore: /* @__PURE__ */ G(ft, {
1538
- size: z.MD,
1538
+ size: R.MD,
1539
1539
  "aria-hidden": !0,
1540
- stroke: B
1540
+ stroke: z
1541
1541
  }),
1542
- onClick: pe,
1543
- onMouseEnter: Be,
1544
- onFocus: Be
1542
+ onClick: me,
1543
+ onMouseEnter: Ve,
1544
+ onFocus: Ve
1545
1545
  }),
1546
- $e && Ke && /* @__PURE__ */ G(De, {
1546
+ et && qe && /* @__PURE__ */ G(Oe, {
1547
1547
  label: D?.publishLabel ?? "Publish",
1548
1548
  iconBefore: /* @__PURE__ */ G(pt, {
1549
- size: z.MD,
1549
+ size: R.MD,
1550
1550
  "aria-hidden": !0,
1551
- stroke: B
1551
+ stroke: z
1552
1552
  }),
1553
- onClick: fe,
1554
- onMouseEnter: Be,
1555
- onFocus: Be
1553
+ onClick: pe,
1554
+ onMouseEnter: Ve,
1555
+ onFocus: Ve
1556
1556
  }),
1557
- ot && !st && kt(De),
1558
- xt ? At(xt) : (yt.length > 0 || Ge) && jt()
1557
+ st && !ct && Ot(Oe),
1558
+ X ? kt(X) : (q.length > 0 || Ke) && At()
1559
1559
  ]
1560
1560
  })]
1561
1561
  });
@@ -1590,10 +1590,10 @@ var yt = /* @__PURE__ */ function(e) {
1590
1590
  node: e,
1591
1591
  parentId: n
1592
1592
  };
1593
- return e.type === X.File || !t.has(e.id) ? [r] : [r, ...Wn(e.items, t, e.id)];
1593
+ return e.type === Z.File || !t.has(e.id) ? [r] : [r, ...Wn(e.items, t, e.id)];
1594
1594
  }), Gn = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
1595
- let c = F(() => Wn(e, n), [e, n]), l = I({}), [u, d] = L(() => t ?? c[0]?.node.id);
1596
- P(() => {
1595
+ let c = P(() => Wn(e, n), [e, n]), l = F({}), [u, d] = I(() => t ?? c[0]?.node.id);
1596
+ N(() => {
1597
1597
  u != null && l.current[u]?.focus();
1598
1598
  }, []);
1599
1599
  let f = (e) => {
@@ -1616,23 +1616,23 @@ var yt = /* @__PURE__ */ function(e) {
1616
1616
  break;
1617
1617
  }
1618
1618
  case "ArrowRight":
1619
- e.preventDefault(), o.node.type === X.Folder && !n.has(o.node.id) && r(o.node.id);
1619
+ e.preventDefault(), o.node.type === Z.Folder && !n.has(o.node.id) && r(o.node.id);
1620
1620
  break;
1621
1621
  case "ArrowLeft":
1622
- e.preventDefault(), o.node.type === X.Folder && n.has(o.node.id) ? r(o.node.id) : o.parentId != null && f(o.parentId);
1622
+ e.preventDefault(), o.node.type === Z.Folder && n.has(o.node.id) ? r(o.node.id) : o.parentId != null && f(o.parentId);
1623
1623
  break;
1624
1624
  case "Enter":
1625
1625
  case " ":
1626
- e.preventDefault(), o.node.type === X.Folder ? r(o.node.id) : i(o.node.id);
1626
+ e.preventDefault(), o.node.type === Z.Folder ? r(o.node.id) : i(o.node.id);
1627
1627
  break;
1628
1628
  case "Escape":
1629
1629
  e.preventDefault(), a();
1630
1630
  break;
1631
1631
  default: break;
1632
1632
  }
1633
- }, m = (e) => M("flex h-10 shrink-0 cursor-pointer items-center gap-2 rounded-2 px-3 outline-none", "hover:bg-control-accent-alpha-hover focus-visible:bg-control-accent-alpha-hover", e && "bg-control-accent-alpha-hover"), h = (e) => {
1633
+ }, m = (e) => j("flex h-10 shrink-0 cursor-pointer items-center gap-2 rounded-2 px-3 outline-none", "hover:bg-control-accent-alpha-hover focus-visible:bg-control-accent-alpha-hover", e && "bg-control-accent-alpha-hover"), h = (e) => {
1634
1634
  let a = e.id === u;
1635
- if (e.type === X.File) {
1635
+ if (e.type === Z.File) {
1636
1636
  let n = e.id === t;
1637
1637
  return /* @__PURE__ */ G("div", {
1638
1638
  ref: (t) => {
@@ -1641,11 +1641,11 @@ var yt = /* @__PURE__ */ function(e) {
1641
1641
  role: "treeitem",
1642
1642
  "aria-selected": n,
1643
1643
  tabIndex: a ? 0 : -1,
1644
- className: M(m(a), n && "bg-control-accent-alpha-active"),
1644
+ className: j(m(a), n && "bg-control-accent-alpha-active"),
1645
1645
  onClick: () => i(e.id),
1646
1646
  onFocus: () => d(e.id),
1647
1647
  children: /* @__PURE__ */ G("span", {
1648
- className: M("min-w-0 flex-1 truncate", s),
1648
+ className: j("min-w-0 flex-1 truncate", s),
1649
1649
  children: e.name
1650
1650
  })
1651
1651
  }, e.id);
@@ -1662,21 +1662,21 @@ var yt = /* @__PURE__ */ function(e) {
1662
1662
  onClick: () => r(e.id),
1663
1663
  onFocus: () => d(e.id),
1664
1664
  children: [
1665
- /* @__PURE__ */ G(Ze, {
1666
- size: z.SM,
1665
+ /* @__PURE__ */ G(Qe, {
1666
+ size: R.SM,
1667
1667
  className: "shrink-0",
1668
1668
  "aria-hidden": !0,
1669
- stroke: B
1669
+ stroke: z
1670
1670
  }),
1671
1671
  /* @__PURE__ */ G("span", {
1672
- className: M("min-w-0 flex-1 truncate", s),
1672
+ className: j("min-w-0 flex-1 truncate", s),
1673
1673
  children: e.name
1674
1674
  }),
1675
- /* @__PURE__ */ G(We, {
1676
- size: z.SM,
1677
- className: M("shrink-0 transition-transform", !o && "-rotate-90 rtl:rotate-90"),
1675
+ /* @__PURE__ */ G(Ge, {
1676
+ size: R.SM,
1677
+ className: j("shrink-0 transition-transform", !o && "-rotate-90 rtl:rotate-90"),
1678
1678
  "aria-hidden": !0,
1679
- stroke: B
1679
+ stroke: z
1680
1680
  })
1681
1681
  ]
1682
1682
  }), o && e.items.length > 0 && /* @__PURE__ */ G("div", {
@@ -1691,77 +1691,77 @@ var yt = /* @__PURE__ */ function(e) {
1691
1691
  onKeyDown: p,
1692
1692
  children: e.map((e) => h(e))
1693
1693
  });
1694
- }, Kn = () => void 0, qn = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = Kn, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = Kn, fileSelectorAriaLabel: u = "Select file", fileCountLabel: d = (e) => `${e} files`, fileLoadingLabel: f = "Loading file", fileUnsupportedLabel: p = "Preview is not supported for this file", filePreview: m, filePreviewContent: h, detailsStyles: g }) => {
1695
- let _ = g?.typography?.contentClassName ?? "dial-small-text", v = g?.typography?.contentHeadingClassName ?? "dial-small-semi-text", y = g?.typography?.contentFileCountClassName ?? "dial-tiny-text", b = t != null && t !== "", x = n ?? [], S = Zt(x) > 1, C = $t(x, r) ?? "", w = (e) => {
1696
- i?.(e), l(!1);
1697
- }, T = a ? {
1698
- type: wt.Text,
1694
+ }, Kn = () => void 0, qn = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = Kn, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = Kn, fileSelectorAriaLabel: u = "Select file", fileCountLabel: d = (e) => `${e} files`, fileLoadingLabel: f = "Loading file", fileUnsupportedLabel: p = "Preview is not supported for this file", filePreview: m, filePreviewContent: h, renderFileTree: g, detailsStyles: _ }) => {
1695
+ let v = _?.typography?.contentClassName ?? "dial-small-text", y = _?.typography?.contentHeadingClassName ?? "dial-small-semi-text", b = _?.typography?.contentFileCountClassName ?? "dial-tiny-text", x = t != null && t !== "", S = n ?? [], C = Zt(S) > 1, w = $t(S, r) ?? "", T = {
1696
+ nodes: S,
1697
+ selectedFileId: r,
1698
+ expandedFolderIds: o,
1699
+ onToggleFolder: s,
1700
+ onSelectFile: (e) => {
1701
+ i?.(e), l(!1);
1702
+ },
1703
+ onClose: () => l(!1),
1704
+ ariaLabel: u,
1705
+ rowNameClassName: v
1706
+ }, E = a ? {
1707
+ type: Ct.Text,
1699
1708
  text: ""
1700
1709
  } : m ?? {
1701
- type: wt.Markdown,
1710
+ type: Ct.Markdown,
1702
1711
  text: e
1703
1712
  };
1704
1713
  return /* @__PURE__ */ K("div", {
1705
1714
  className: "flex h-full flex-col gap-4 pb-6",
1706
1715
  children: [
1707
- S && /* @__PURE__ */ K("div", {
1716
+ C && /* @__PURE__ */ K("div", {
1708
1717
  className: "flex shrink-0 items-center gap-3",
1709
- children: [/* @__PURE__ */ G(he, {
1718
+ children: [/* @__PURE__ */ G(ge, {
1710
1719
  open: c,
1711
1720
  onOpenChange: l,
1712
1721
  trigger: [],
1713
1722
  matchReferenceWidth: !1,
1714
- listClassName: "w-[280px]",
1723
+ listClassName: "w-[280px] shadow-md",
1715
1724
  placement: "bottom-start",
1716
- renderOverlay: () => /* @__PURE__ */ G(Gn, {
1717
- nodes: x,
1718
- selectedFileId: r,
1719
- expandedFolderIds: o,
1720
- onToggleFolder: s,
1721
- onSelectFile: w,
1722
- onClose: () => l(!1),
1723
- ariaLabel: u,
1724
- rowNameClassName: _
1725
- }),
1726
- children: /* @__PURE__ */ G(V, {
1727
- label: C,
1728
- size: ge.Small,
1725
+ renderOverlay: () => g ? g(T) : /* @__PURE__ */ G(Gn, { ...T }),
1726
+ children: /* @__PURE__ */ G(we, {
1727
+ label: w,
1728
+ size: _e.Small,
1729
1729
  isOpen: c,
1730
1730
  onClick: () => l(!c)
1731
1731
  })
1732
1732
  }), /* @__PURE__ */ G("span", {
1733
- className: M("shrink-0", y, Un.fileCount),
1734
- children: d(Zt(x))
1733
+ className: j("shrink-0", b, Un.fileCount),
1734
+ children: d(Zt(S))
1735
1735
  })]
1736
1736
  }),
1737
- b && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("p", {
1738
- className: M("m-0", _),
1737
+ x && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("p", {
1738
+ className: j("m-0", v),
1739
1739
  children: t
1740
- }), /* @__PURE__ */ G("div", { className: M("shrink-0", Un.divider) })] }),
1740
+ }), /* @__PURE__ */ G("div", { className: j("shrink-0", Un.divider) })] }),
1741
1741
  /* @__PURE__ */ K("div", {
1742
- className: M("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && Un.body, h == null && _),
1742
+ className: j("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && Un.body, h == null && v),
1743
1743
  children: [a && /* @__PURE__ */ G("span", {
1744
1744
  role: "status",
1745
1745
  className: "sr-only",
1746
1746
  children: f
1747
1747
  }), (() => {
1748
1748
  if (h != null) return h;
1749
- switch (T.type) {
1750
- case wt.Markdown: return /* @__PURE__ */ G(A, {
1751
- content: T.text,
1752
- headingClassName: v
1749
+ switch (E.type) {
1750
+ case Ct.Markdown: return /* @__PURE__ */ G(A, {
1751
+ content: E.text,
1752
+ headingClassName: y
1753
1753
  });
1754
- case wt.Text: return /* @__PURE__ */ G(O, {
1755
- language: T.language ?? "",
1756
- value: T.text,
1754
+ case Ct.Text: return /* @__PURE__ */ G(O, {
1755
+ language: E.language ?? "",
1756
+ value: E.text,
1757
1757
  hideDownload: !0
1758
1758
  });
1759
- case wt.Image: return /* @__PURE__ */ G("img", {
1760
- src: T.url,
1761
- alt: C,
1759
+ case Ct.Image: return /* @__PURE__ */ G("img", {
1760
+ src: E.url,
1761
+ alt: w,
1762
1762
  className: "max-w-full"
1763
1763
  });
1764
- case wt.Unsupported: return /* @__PURE__ */ G("p", {
1764
+ case Ct.Unsupported: return /* @__PURE__ */ G("p", {
1765
1765
  className: "m-0",
1766
1766
  children: p
1767
1767
  });
@@ -1787,52 +1787,52 @@ var yt = /* @__PURE__ */ function(e) {
1787
1787
  resetLabel: "_resetLabel_10rw6_39",
1788
1788
  valueDanger: "_valueDanger_10rw6_44"
1789
1789
  }, rr = ({ row: e, layout: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => {
1790
- let s = Qn(e), c = nr(e), l = /* @__PURE__ */ G(Ae, {
1790
+ let s = Qn(e), c = nr(e), l = /* @__PURE__ */ G(je, {
1791
1791
  value: Xn(e),
1792
1792
  max: Zn(e.total),
1793
- size: ge.Small,
1794
- className: M("!h-1 w-full", $.progressTrack, c === Yn.Default && $.progressFillDefault, c === Yn.Warning && $.progressFillWarning, c === Yn.Danger && $.progressFillDanger),
1793
+ size: _e.Small,
1794
+ className: j("!h-1 w-full", $.progressTrack, c === Yn.Default && $.progressFillDefault, c === Yn.Warning && $.progressFillWarning, c === Yn.Danger && $.progressFillDanger),
1795
1795
  "aria-label": e.label,
1796
1796
  "aria-valuetext": e.ariaLabel ?? s
1797
1797
  }), u = e.captionLabel != null && /* @__PURE__ */ G("span", {
1798
- className: M("break-words", r, $.label),
1798
+ className: j("break-words", r, $.label),
1799
1799
  children: e.captionLabel
1800
1800
  }), d = e.resetLabel != null && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("time", {
1801
1801
  dateTime: e.resetIsoValue,
1802
1802
  "aria-hidden": e.resetAriaLabel != null || void 0,
1803
- className: M("break-words", r, $.resetLabel),
1803
+ className: j("break-words", r, $.resetLabel),
1804
1804
  children: e.resetLabel
1805
1805
  }), e.resetAriaLabel != null && /* @__PURE__ */ G("span", {
1806
1806
  className: "sr-only",
1807
1807
  children: e.resetAriaLabel
1808
1808
  })] });
1809
- return t === Ct.Stacked ? /* @__PURE__ */ K("li", {
1810
- className: M("flex flex-col gap-2 border-b py-3 first:pt-0 last:border-b-0 last:pb-0", $.divider),
1809
+ return t === St.Stacked ? /* @__PURE__ */ K("li", {
1810
+ className: j("flex flex-col gap-2 border-b py-3 first:pt-0 last:border-b-0 last:pb-0", $.divider),
1811
1811
  children: [
1812
1812
  /* @__PURE__ */ K("div", {
1813
1813
  className: "flex items-baseline justify-between gap-3",
1814
1814
  children: [/* @__PURE__ */ G("span", {
1815
- className: M("min-w-0 break-words", n, $.valuePrimary),
1815
+ className: j("min-w-0 break-words", n, $.valuePrimary),
1816
1816
  children: e.label
1817
1817
  }), /* @__PURE__ */ G("span", {
1818
- className: M("shrink-0", i, c === Yn.Danger ? $.valueDanger : $.valuePrimary),
1818
+ className: j("shrink-0", i, c === Yn.Danger ? $.valueDanger : $.valuePrimary),
1819
1819
  children: s
1820
1820
  })]
1821
1821
  }),
1822
1822
  u,
1823
1823
  er(e) ? l : e.noteLabel != null && /* @__PURE__ */ G("span", {
1824
- className: M(o, $.label),
1824
+ className: j(o, $.label),
1825
1825
  children: e.noteLabel
1826
1826
  }),
1827
1827
  d
1828
1828
  ]
1829
1829
  }) : /* @__PURE__ */ K("li", {
1830
- className: M("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", $.divider),
1830
+ className: j("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", $.divider),
1831
1831
  children: [/* @__PURE__ */ K("div", {
1832
1832
  className: "flex min-w-0 flex-1 flex-col",
1833
1833
  children: [
1834
1834
  /* @__PURE__ */ G("span", {
1835
- className: M("break-words", n, $.label),
1835
+ className: j("break-words", n, $.label),
1836
1836
  children: e.label
1837
1837
  }),
1838
1838
  u,
@@ -1841,7 +1841,7 @@ var yt = /* @__PURE__ */ function(e) {
1841
1841
  }), er(e) ? /* @__PURE__ */ K("div", {
1842
1842
  className: "flex w-32 shrink-0 flex-col items-end gap-2",
1843
1843
  children: [/* @__PURE__ */ G("div", {
1844
- className: M("flex gap-1", i),
1844
+ className: j("flex gap-1", i),
1845
1845
  children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("span", {
1846
1846
  className: $.valuePrimary,
1847
1847
  children: e.usedLabel
@@ -1856,16 +1856,16 @@ var yt = /* @__PURE__ */ function(e) {
1856
1856
  }) : /* @__PURE__ */ K("div", {
1857
1857
  className: "flex shrink-0 flex-col items-end",
1858
1858
  children: [/* @__PURE__ */ G("span", {
1859
- className: M(a, $.valuePrimary),
1859
+ className: j(a, $.valuePrimary),
1860
1860
  children: s
1861
1861
  }), e.noteLabel != null && /* @__PURE__ */ G("span", {
1862
- className: M(o, $.label),
1862
+ className: j(o, $.label),
1863
1863
  children: e.noteLabel
1864
1864
  })]
1865
1865
  })]
1866
1866
  });
1867
1867
  }, ir = ({ group: e, sectionClassName: t, layout: n, labelClassName: r, captionClassName: i, valueClassName: a, noteValueClassName: o, noteClassName: s }) => /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("p", {
1868
- className: M("mb-3 mt-0", t, $.sectionHeading),
1868
+ className: j("mb-3 mt-0", t, $.sectionHeading),
1869
1869
  children: e.label
1870
1870
  }), /* @__PURE__ */ G("ul", {
1871
1871
  className: "m-0 flex list-none flex-col p-0",
@@ -1878,11 +1878,11 @@ var yt = /* @__PURE__ */ function(e) {
1878
1878
  noteValueClassName: o,
1879
1879
  noteClassName: s
1880
1880
  }, e.label))
1881
- })] }), ar = ({ limits: e, layout: t = Ct.Inline, labelClassName: n = "dial-small-semi-text", captionClassName: r = "dial-caption-text", valueClassName: i = "dial-tiny-text", noteValueClassName: a = "dial-tiny-semi-text", noteClassName: o = "dial-caption-text", sectionClassName: s = "dial-caption-text", footerClassName: c = "dial-caption-text", footerNote: l, colors: u }) => {
1881
+ })] }), ar = ({ limits: e, layout: t = St.Inline, labelClassName: n = "dial-small-semi-text", captionClassName: r = "dial-caption-text", valueClassName: i = "dial-tiny-text", noteValueClassName: a = "dial-tiny-semi-text", noteClassName: o = "dial-caption-text", sectionClassName: s = "dial-caption-text", footerClassName: c = "dial-caption-text", footerNote: l, colors: u }) => {
1882
1882
  let d = e?.groups.filter((e) => e.rows.length > 0);
1883
1883
  return d == null || d.length === 0 ? null : /* @__PURE__ */ K("div", {
1884
1884
  className: "flex flex-col gap-6",
1885
- style: j({
1885
+ style: re({
1886
1886
  "--lt-section-heading": u?.sectionHeading,
1887
1887
  "--lt-label": u?.label,
1888
1888
  "--lt-value-primary": u?.valuePrimary,
@@ -1903,7 +1903,7 @@ var yt = /* @__PURE__ */ function(e) {
1903
1903
  noteValueClassName: a,
1904
1904
  noteClassName: o
1905
1905
  }, e.label)), l != null && /* @__PURE__ */ G("p", {
1906
- className: M("m-0 border-t pt-4", c, $.divider, $.label),
1906
+ className: j("m-0 border-t pt-4", c, $.divider, $.label),
1907
1907
  children: l
1908
1908
  })]
1909
1909
  });
@@ -1911,7 +1911,7 @@ var yt = /* @__PURE__ */ function(e) {
1911
1911
  className: "flex flex-col gap-4",
1912
1912
  children: e.map((e, s) => /* @__PURE__ */ K("div", {
1913
1913
  className: "flex flex-col gap-4",
1914
- children: [s > 0 && /* @__PURE__ */ G("div", { className: M("shrink-0 border-b", An.divider) }), /* @__PURE__ */ G("div", {
1914
+ children: [s > 0 && /* @__PURE__ */ G("div", { className: j("shrink-0 border-b", An.divider) }), /* @__PURE__ */ G("div", {
1915
1915
  className: "px-6",
1916
1916
  children: /* @__PURE__ */ G(nn, {
1917
1917
  sectionLabel: e.title,
@@ -1958,13 +1958,13 @@ var yt = /* @__PURE__ */ function(e) {
1958
1958
  }, lr = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
1959
1959
  let a = n ?? `repeat(${e.length}, 1fr)`;
1960
1960
  return /* @__PURE__ */ K("div", {
1961
- className: M(cr.container, "grid overflow-hidden rounded-md"),
1961
+ className: j(cr.container, "grid overflow-hidden rounded-md"),
1962
1962
  style: { gridTemplateColumns: a },
1963
1963
  children: [e.map((e) => /* @__PURE__ */ G("div", {
1964
- className: M("px-2 py-1 text-start", r, cr.header),
1964
+ className: j("px-2 py-1 text-start", r, cr.header),
1965
1965
  children: e
1966
- }, e)), t.map((e, t) => /* @__PURE__ */ G(re, { children: e.map((e, n) => /* @__PURE__ */ G("div", {
1967
- className: M("px-2 py-1.5", i, cr.cell, t % 2 == 1 ? cr.evenRow : void 0),
1966
+ }, e)), t.map((e, t) => /* @__PURE__ */ G(ie, { children: e.map((e, n) => /* @__PURE__ */ G("div", {
1967
+ className: j("px-2 py-1.5", i, cr.cell, t % 2 == 1 ? cr.evenRow : void 0),
1968
1968
  children: e
1969
1969
  }, n)) }, t))]
1970
1970
  });
@@ -1975,7 +1975,7 @@ var yt = /* @__PURE__ */ function(e) {
1975
1975
  }, dr = ({ tools: e, toolNameClassName: t = "dial-small-semi-text", descriptionClassName: n = "dial-small-text", tableHeadingClassName: r = "dial-caption-text", tableCellClassName: i = "dial-tiny-text" }) => e == null ? null : /* @__PURE__ */ G("div", {
1976
1976
  className: "flex flex-col",
1977
1977
  children: e.tools.map((e, a) => /* @__PURE__ */ K("div", {
1978
- className: M("flex flex-col gap-3 px-[22px] py-4", a > 0 ? ur.divider : void 0),
1978
+ className: j("flex flex-col gap-3 px-[22px] py-4", a > 0 ? ur.divider : void 0),
1979
1979
  children: [
1980
1980
  /* @__PURE__ */ K("div", {
1981
1981
  className: "flex flex-col gap-1",
@@ -1983,7 +1983,7 @@ var yt = /* @__PURE__ */ function(e) {
1983
1983
  className: t,
1984
1984
  children: e.name
1985
1985
  }), e.description != null && /* @__PURE__ */ G("p", {
1986
- className: M("m-0", n, ur.description),
1986
+ className: j("m-0", n, ur.description),
1987
1987
  children: e.description
1988
1988
  })]
1989
1989
  }),
@@ -1996,11 +1996,11 @@ var yt = /* @__PURE__ */ function(e) {
1996
1996
  columnsTemplate: "1fr 1fr auto",
1997
1997
  rows: e.inputParams.map((e) => [
1998
1998
  /* @__PURE__ */ G("code", {
1999
- className: M("text-inherit border-none bg-transparent p-0", ur.code),
1999
+ className: j("text-inherit border-none bg-transparent p-0", ur.code),
2000
2000
  children: e.name
2001
2001
  }, "name"),
2002
2002
  /* @__PURE__ */ G("code", {
2003
- className: M("text-inherit border-none bg-transparent p-0", ur.code),
2003
+ className: j("text-inherit border-none bg-transparent p-0", ur.code),
2004
2004
  children: e.type
2005
2005
  }, "type"),
2006
2006
  e.isRequired ? "✓" : "—"
@@ -2011,7 +2011,7 @@ var yt = /* @__PURE__ */ function(e) {
2011
2011
  e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ G(lr, {
2012
2012
  columns: ["Key", "Value"],
2013
2013
  rows: e.annotations.map((e) => [/* @__PURE__ */ G("code", {
2014
- className: M("text-inherit border-none bg-transparent p-0", ur.code),
2014
+ className: j("text-inherit border-none bg-transparent p-0", ur.code),
2015
2015
  children: e.key
2016
2016
  }, "key"), e.value]),
2017
2017
  headingClassName: r,
@@ -2035,129 +2035,129 @@ var yt = /* @__PURE__ */ function(e) {
2035
2035
  "Everyone you shared it with loses access",
2036
2036
  "Existing share links stop working",
2037
2037
  "You keep full access — nothing is deleted"
2038
- ], Sr = (e) => e === y.ApiKey ? "Toolset API keys" : "Toolset credentials", Cr = (e) => e === b.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", wr = new Set([Y.Delete, Y.Unshare]), Tr = ({ item: e, isOpen: n, isStarred: r = !1, isDetailsLoading: i = !1, isReadonly: a = !1, onClose: o, onToggleFavorite: s, isFavoriteVisible: c, onUseInChat: l, isPrimaryActionVisible: u, onShare: d, isPublishVisible: f, isPublishPrimary: p, getPublishHistory: h, publishFolderItems: _ = gr, publishExpandedPaths: v, onPublishExpandedPathsChange: y, publishLoadingPaths: S, hasPublishWriteAccess: C, publishDefaultAuthor: w, onPublish: T, onPublishSuccess: E, onPublishError: D, onCreatePublishFolder: O, publishLabels: k, ruleSourceOptions: A = _r, onFetchExistingRules: ee, shareOverlay: te, isShareVisible: ne, isSharePrimary: re, onEdit: ie, onDownload: ae, isDownloadVisible: oe, isDownloadPrimary: se, onLoadContentFile: ce, onLoadContentFilePreview: R, renderContentFilePreview: le, renderCredentials: ue, onDelete: de, onUnshare: fe, isUnshareVisible: z, onRevokeShare: me, onFetchRecipientsCount: he, isRevokeShareVisible: _e, onUnpublish: ve, isUnpublishVisible: ye, onLogin: xe, onLogout: Se, texts: V, styles: Ce, limitsFooterNote: we }) => {
2039
- let { subViewTitleClassName: Te = "dial-body-semi-text", overviewSectionClassName: Ee = "dial-caption-text", overviewLabelClassName: De = "dial-small-semi-text", overviewValueClassName: Oe = "dial-small-text", overviewValueTrueClassName: ke = "dial-small-text", confirmMessageClassName: Ae = "dial-small-text" } = Ce?.typography ?? {}, H = Ce?.colors, Me = j({
2040
- "--cat-details-backdrop": H?.backdrop,
2041
- "--cat-details-bg": H?.background,
2042
- "--cat-details-border": H?.border,
2043
- "--cat-details-divider": H?.divider,
2044
- "--cat-details-scrollbar": H?.scrollbar,
2045
- "--cat-details-skeleton": H?.skeleton,
2046
- "--cat-details-name-text": H?.nameText,
2047
- "--cat-details-publish-title-text": H?.publishTitleText,
2048
- "--cat-details-content-text": H?.contentText,
2049
- "--cat-details-variable-text": H?.variableText,
2050
- "--cat-details-file-count-text": H?.contentFileCountText,
2051
- "--cat-api-heading-text": H?.apiHeadingText,
2052
- "--cat-tools-divider": H?.toolsDivider,
2053
- "--cat-tools-description-text": H?.toolsDescriptionText,
2054
- "--cat-grid-border": H?.gridBorder,
2055
- "--cat-grid-header-text": H?.gridHeaderText,
2056
- "--cat-grid-header-bg": H?.gridHeaderBackground,
2057
- "--cat-grid-cell-text": H?.gridCellText,
2058
- "--cat-grid-cell-divider": H?.gridCellDivider,
2059
- "--cat-grid-row-even-bg": H?.gridRowEvenBackground,
2060
- "--cat-info-card-bg": H?.infoCardBackground,
2061
- "--cat-info-card-danger-bg": H?.infoCardDangerBackground,
2062
- "--cat-confirm-message-text": H?.confirmMessageText,
2063
- "--cat-confirm-consequence-text": H?.confirmConsequenceText,
2064
- "--cat-confirm-footer-border": H?.confirmFooterBorder,
2065
- "--cat-cred-surface-bg": H?.credentialsSurfaceBackground,
2066
- "--cat-cred-active-icon": H?.credentialsActiveIcon,
2067
- "--cat-cred-banner-icon-bg": H?.credentialsBannerIconBackground,
2068
- "--cat-cred-description-text": H?.credentialsDescriptionText,
2069
- "--cat-cred-row-description-text": H?.credentialsRowDescriptionText,
2070
- "--cat-cred-error-text": H?.credentialsErrorText,
2071
- "--cat-cred-card-bg": H?.credentialsCardBackground,
2072
- "--cat-cred-card-icon": H?.credentialsCardIcon,
2073
- "--cat-cred-card-title-text": H?.credentialsCardTitleText,
2074
- "--cat-cred-card-description-text": H?.credentialsCardDescriptionText
2075
- }), [Pe, Fe] = L(r), [Le, Re] = L(""), [ze, Be] = L(!1), [Ve, He] = L([]), [Ue, We] = L(!1), [Ke, qe] = L(!1), [Je, Ye] = L(!1), Xe = I(null), Ze = e.details?.promptContent, Qe = Ze?.selectedFileId, [$e, et] = L(null), [tt, nt] = L(!1), [rt, it] = L(/* @__PURE__ */ new Set()), [U, at] = L(!1), ot = I(null), st = I(0), ct = N((e) => {
2076
- let t = ot.current, n = e?.preview?.type === wt.Image ? e.preview.url : null;
2077
- t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), ot.current = n, et(e);
2038
+ ], Sr = (e) => e === y.ApiKey ? "Toolset API keys" : "Toolset credentials", Cr = (e) => e === b.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", wr = new Set([Y.Delete, Y.Unshare]), Tr = ({ item: e, isOpen: n, isStarred: r = !1, isDetailsLoading: i = !1, isReadonly: a = !1, onClose: o, onToggleFavorite: s, isFavoriteVisible: c, onUseInChat: l, isPrimaryActionVisible: u, onShare: d, isPublishVisible: f, isPublishPrimary: p, getPublishHistory: h, publishFolderItems: _ = gr, publishExpandedPaths: v, onPublishExpandedPathsChange: y, publishLoadingPaths: S, hasPublishWriteAccess: C, publishDefaultAuthor: w, onPublish: T, onPublishSuccess: E, onPublishError: D, onCreatePublishFolder: O, publishLabels: k, ruleSourceOptions: A = _r, onFetchExistingRules: ee, shareOverlay: te, isShareVisible: ne, isSharePrimary: ie, onEdit: ae, onDownload: oe, isDownloadVisible: se, isDownloadPrimary: ce, onLoadContentFile: le, onLoadContentFilePreview: L, renderContentFilePreview: ue, renderContentFileTree: de, renderCredentials: fe, onDelete: pe, onUnshare: R, isUnshareVisible: he, onRevokeShare: ge, onFetchRecipientsCount: ve, isRevokeShareVisible: ye, onUnpublish: be, isUnpublishVisible: Se, onLogin: Ce, onLogout: we, texts: B, styles: Te, limitsFooterNote: Ee }) => {
2039
+ let { subViewTitleClassName: De = "dial-body-semi-text", overviewSectionClassName: Oe = "dial-caption-text", overviewLabelClassName: ke = "dial-small-semi-text", overviewValueClassName: Ae = "dial-small-text", overviewValueTrueClassName: je = "dial-small-text", confirmMessageClassName: Ne = "dial-small-text" } = Te?.typography ?? {}, V = Te?.colors, Fe = re({
2040
+ "--cat-details-backdrop": V?.backdrop,
2041
+ "--cat-details-bg": V?.background,
2042
+ "--cat-details-border": V?.border,
2043
+ "--cat-details-divider": V?.divider,
2044
+ "--cat-details-scrollbar": V?.scrollbar,
2045
+ "--cat-details-skeleton": V?.skeleton,
2046
+ "--cat-details-name-text": V?.nameText,
2047
+ "--cat-details-publish-title-text": V?.publishTitleText,
2048
+ "--cat-details-content-text": V?.contentText,
2049
+ "--cat-details-variable-text": V?.variableText,
2050
+ "--cat-details-file-count-text": V?.contentFileCountText,
2051
+ "--cat-api-heading-text": V?.apiHeadingText,
2052
+ "--cat-tools-divider": V?.toolsDivider,
2053
+ "--cat-tools-description-text": V?.toolsDescriptionText,
2054
+ "--cat-grid-border": V?.gridBorder,
2055
+ "--cat-grid-header-text": V?.gridHeaderText,
2056
+ "--cat-grid-header-bg": V?.gridHeaderBackground,
2057
+ "--cat-grid-cell-text": V?.gridCellText,
2058
+ "--cat-grid-cell-divider": V?.gridCellDivider,
2059
+ "--cat-grid-row-even-bg": V?.gridRowEvenBackground,
2060
+ "--cat-info-card-bg": V?.infoCardBackground,
2061
+ "--cat-info-card-danger-bg": V?.infoCardDangerBackground,
2062
+ "--cat-confirm-message-text": V?.confirmMessageText,
2063
+ "--cat-confirm-consequence-text": V?.confirmConsequenceText,
2064
+ "--cat-confirm-footer-border": V?.confirmFooterBorder,
2065
+ "--cat-cred-surface-bg": V?.credentialsSurfaceBackground,
2066
+ "--cat-cred-active-icon": V?.credentialsActiveIcon,
2067
+ "--cat-cred-banner-icon-bg": V?.credentialsBannerIconBackground,
2068
+ "--cat-cred-description-text": V?.credentialsDescriptionText,
2069
+ "--cat-cred-row-description-text": V?.credentialsRowDescriptionText,
2070
+ "--cat-cred-error-text": V?.credentialsErrorText,
2071
+ "--cat-cred-card-bg": V?.credentialsCardBackground,
2072
+ "--cat-cred-card-icon": V?.credentialsCardIcon,
2073
+ "--cat-cred-card-title-text": V?.credentialsCardTitleText,
2074
+ "--cat-cred-card-description-text": V?.credentialsCardDescriptionText
2075
+ }), [Ie, Re] = I(r), [ze, Be] = I(""), [Ve, He] = I(!1), [Ue, We] = I([]), [Ge, qe] = I(!1), [Je, Ye] = I(!1), [Xe, Ze] = I(!1), Qe = F(null), $e = e.details?.promptContent, et = $e?.selectedFileId, [tt, nt] = I(null), [rt, it] = I(!1), [at, H] = I(/* @__PURE__ */ new Set()), [ot, st] = I(!1), ct = F(null), lt = F(0), U = M((e) => {
2076
+ let t = ct.current, n = e?.preview?.type === Ct.Image ? e.preview.url : null;
2077
+ t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), ct.current = n, nt(e);
2078
2078
  }, []);
2079
- P(() => {
2080
- st.current += 1, ct(null), nt(!1), it(Qt(Ze?.files ?? [])), at(!1);
2081
- }, [e.id, Qe]), P(() => () => {
2082
- let e = ot.current;
2079
+ N(() => {
2080
+ lt.current += 1, U(null), it(!1), H(Qt($e?.files ?? [])), st(!1);
2081
+ }, [e.id, et]), N(() => () => {
2082
+ let e = ct.current;
2083
2083
  e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
2084
2084
  }, []);
2085
- let lt = N((e) => {
2086
- it((t) => {
2085
+ let ut = M((e) => {
2086
+ H((t) => {
2087
2087
  let n = new Set(t);
2088
2088
  return n.has(e) ? n.delete(e) : n.add(e), n;
2089
2089
  });
2090
- }, []), ut = N(async (e) => {
2091
- if (e === Qe) {
2092
- st.current += 1, ct(null), nt(!1);
2090
+ }, []), dt = M(async (e) => {
2091
+ if (e === et) {
2092
+ lt.current += 1, U(null), it(!1);
2093
2093
  return;
2094
2094
  }
2095
- if (le == null && ce == null && R == null) return;
2096
- if (le != null) {
2097
- st.current += 1, ct({
2095
+ if (ue == null && le == null && L == null) return;
2096
+ if (ue != null) {
2097
+ lt.current += 1, U({
2098
2098
  id: e,
2099
2099
  preview: null
2100
- }), nt(!1);
2100
+ }), it(!1);
2101
2101
  return;
2102
2102
  }
2103
- let t = ++st.current;
2104
- ct({
2103
+ let t = ++lt.current;
2104
+ U({
2105
2105
  id: e,
2106
2106
  preview: null
2107
- }), nt(!0);
2107
+ }), it(!0);
2108
2108
  try {
2109
- let n = R == null ? await ce?.(e).then((e) => e == null ? void 0 : {
2110
- type: wt.Markdown,
2109
+ let n = L == null ? await le?.(e).then((e) => e == null ? void 0 : {
2110
+ type: Ct.Markdown,
2111
2111
  text: e
2112
- }) : await R(e);
2113
- if (st.current !== t) {
2114
- n?.type === wt.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
2112
+ }) : await L(e);
2113
+ if (lt.current !== t) {
2114
+ n?.type === Ct.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
2115
2115
  return;
2116
2116
  }
2117
- ct({
2117
+ U({
2118
2118
  id: e,
2119
2119
  preview: n ?? null
2120
2120
  });
2121
2121
  } catch {
2122
- if (st.current !== t) return;
2123
- ct({
2122
+ if (lt.current !== t) return;
2123
+ U({
2124
2124
  id: e,
2125
2125
  preview: null
2126
2126
  });
2127
2127
  } finally {
2128
- st.current === t && nt(!1);
2128
+ lt.current === t && it(!1);
2129
2129
  }
2130
2130
  }, [
2131
- Qe,
2132
- ce,
2133
- R,
2131
+ et,
2134
2132
  le,
2135
- ct
2136
- ]), dt = $e?.id ?? Qe, ft = () => $e == null ? null : $e.preview == null ? {
2137
- type: wt.Text,
2138
- text: V?.contentFileErrorLabel ?? "Failed to load this file."
2139
- } : $e.preview, pt = $e != null && le != null ? le($e.id, $t(Ze?.files ?? [], $e.id) ?? "") : void 0, vt = N(() => {
2140
- if (!h || Xe.current === e.id) return;
2133
+ L,
2134
+ ue,
2135
+ U
2136
+ ]), ft = tt?.id ?? et, pt = () => tt == null ? null : tt.preview == null ? {
2137
+ type: Ct.Text,
2138
+ text: B?.contentFileErrorLabel ?? "Failed to load this file."
2139
+ } : tt.preview, vt = tt != null && ue != null ? ue(tt.id, $t($e?.files ?? [], tt.id) ?? "") : void 0, q = M(() => {
2140
+ if (!h || Qe.current === e.id) return;
2141
2141
  let t = e.id;
2142
- Xe.current = t, We(!0), qe(!1), (async () => {
2142
+ Qe.current = t, qe(!0), Ye(!1), (async () => {
2143
2143
  try {
2144
2144
  let n = await h(e);
2145
- if (Xe.current !== t) return;
2146
- He(n), Ye(!0), We(!1);
2145
+ if (Qe.current !== t) return;
2146
+ We(n), Ze(!0), qe(!1);
2147
2147
  } catch {
2148
- if (Xe.current !== t) return;
2149
- qe(!0), We(!1), Xe.current = null;
2148
+ if (Qe.current !== t) return;
2149
+ Ye(!0), qe(!1), Qe.current = null;
2150
2150
  }
2151
2151
  })();
2152
2152
  }, [h, e]);
2153
- P(() => {
2154
- ze && vt();
2155
- }, [ze, vt]);
2156
- let yt = N((e, t) => {
2157
- Xe.current = null, Ye(!1), vt(), E?.(e, t);
2158
- }, [vt, E]), J = _t({
2153
+ N(() => {
2154
+ Ve && q();
2155
+ }, [Ve, q]);
2156
+ let yt = M((e, t) => {
2157
+ Qe.current = null, Ze(!1), q(), E?.(e, t);
2158
+ }, [q, E]), X = _t({
2159
2159
  item: e,
2160
- history: Ve,
2160
+ history: Ue,
2161
2161
  folderItems: _,
2162
2162
  hasWriteAccess: C,
2163
2163
  defaultAuthor: w,
@@ -2166,39 +2166,39 @@ var yt = /* @__PURE__ */ function(e) {
2166
2166
  onPublishSuccess: yt,
2167
2167
  onPublishError: D,
2168
2168
  onFetchExistingRules: ee
2169
- }), xt = e.type === x.Toolset && g(e.credentials), St = F(() => gt({
2170
- hasSelectedFolder: J.selectedFolderPath != null,
2171
- hasExistingPublicationInFolder: J.hasExistingPublicationInFolder,
2172
- hasWriteAccess: J.hasWriteAccess,
2173
- isSubmitting: J.isSubmitting,
2174
- hasSubmitError: J.hasSubmitError
2169
+ }), xt = e.type === x.Toolset && g(e.credentials), St = P(() => gt({
2170
+ hasSelectedFolder: X.selectedFolderPath != null,
2171
+ hasExistingPublicationInFolder: X.hasExistingPublicationInFolder,
2172
+ hasWriteAccess: X.hasWriteAccess,
2173
+ isSubmitting: X.isSubmitting,
2174
+ hasSubmitError: X.hasSubmitError
2175
2175
  }), [
2176
- J.selectedFolderPath,
2177
- J.hasExistingPublicationInFolder,
2178
- J.hasWriteAccess,
2179
- J.isSubmitting,
2180
- J.hasSubmitError
2181
- ]), [Ct, X] = L(!1), [Tt, Z] = L(null), [Et, Dt] = L(!1), [Ot, kt] = L(null), [At, jt] = L(null), [Mt, Nt] = L(null);
2182
- P(() => {
2183
- Fe(r);
2184
- }, [e.id, r]), P(() => {
2185
- Re(""), Be(!1), J.reset(), He([]), qe(!1), We(!1), Ye(!1), Xe.current = null, Nt(null), X(!1), Z(null), Dt(!1), kt(null), jt(null);
2176
+ X.selectedFolderPath,
2177
+ X.hasExistingPublicationInFolder,
2178
+ X.hasWriteAccess,
2179
+ X.isSubmitting,
2180
+ X.hasSubmitError
2181
+ ]), [Z, wt] = I(!1), [Q, Tt] = I(null), [Et, Dt] = I(!1), [Ot, kt] = I(null), [At, jt] = I(null), [Mt, Nt] = I(null);
2182
+ N(() => {
2183
+ Re(r);
2184
+ }, [e.id, r]), N(() => {
2185
+ Be(""), He(!1), X.reset(), We([]), Ye(!1), qe(!1), Ze(!1), Qe.current = null, Nt(null), wt(!1), Tt(null), Dt(!1), kt(null), jt(null);
2186
2186
  }, [e.id]);
2187
- let Pt = !a && !!ve && ye?.(e) === !0;
2188
- P(() => {
2189
- Pt && vt();
2190
- }, [Pt, vt]);
2191
- let Ft = N(() => X(!0), []), Q = N(() => X(!1), []), It = N(() => {
2192
- Z(Y.Delete);
2193
- }, []), Lt = N((n) => {
2194
- jt(n ?? (e.credentials == null ? null : t(e.credentials))), Z(Y.Logout);
2195
- }, [e.credentials]), Rt = N(() => {
2196
- Z(Y.Unshare);
2197
- }, []), zt = N(() => {
2198
- Z(Y.RevokeAccess);
2199
- }, []), Vt = F(() => {
2187
+ let Pt = !a && !!be && Se?.(e) === !0;
2188
+ N(() => {
2189
+ Pt && q();
2190
+ }, [Pt, q]);
2191
+ let Ft = M(() => wt(!0), []), It = M(() => wt(!1), []), Lt = M(() => {
2192
+ Tt(Y.Delete);
2193
+ }, []), Rt = M((n) => {
2194
+ jt(n ?? (e.credentials == null ? null : t(e.credentials))), Tt(Y.Logout);
2195
+ }, [e.credentials]), zt = M(() => {
2196
+ Tt(Y.Unshare);
2197
+ }, []), Vt = M(() => {
2198
+ Tt(Y.RevokeAccess);
2199
+ }, []), Ht = P(() => {
2200
2200
  let e = /* @__PURE__ */ new Set(), t = [];
2201
- for (let n of Ve) {
2201
+ for (let n of Ue) {
2202
2202
  let r = n.folderPath.join("/");
2203
2203
  e.has(r) || (e.add(r), t.push({
2204
2204
  key: r,
@@ -2206,66 +2206,66 @@ var yt = /* @__PURE__ */ function(e) {
2206
2206
  }));
2207
2207
  }
2208
2208
  return t;
2209
- }, [Ve]), Ht = Je && Vt.length > 0, Ut = N((e) => e || (k?.rootFolderLabel ?? "Organization"), [k]), Wt = N(() => {
2210
- Z(Y.Unpublish);
2211
- }, []), Gt = N((e) => {
2212
- kt(e), Z(Y.DeleteApiKey);
2213
- }, []), Kt = N(() => {
2214
- Et || (Z(null), kt(null), jt(null), Nt(null));
2215
- }, [Et]), qt = N(async () => {
2216
- if (!(Et || Tt == null)) {
2209
+ }, [Ue]), Ut = Xe && Ht.length > 0, Wt = M((e) => e || (k?.rootFolderLabel ?? "Organization"), [k]), Gt = M(() => {
2210
+ Tt(Y.Unpublish);
2211
+ }, []), Kt = M((e) => {
2212
+ kt(e), Tt(Y.DeleteApiKey);
2213
+ }, []), qt = M(() => {
2214
+ Et || (Tt(null), kt(null), jt(null), Nt(null));
2215
+ }, [Et]), Jt = M(async () => {
2216
+ if (!(Et || Q == null)) {
2217
2217
  Dt(!0);
2218
2218
  try {
2219
- switch (Tt) {
2219
+ switch (Q) {
2220
2220
  case Y.Delete:
2221
- await de?.(e);
2221
+ await pe?.(e);
2222
2222
  break;
2223
2223
  case Y.Unshare:
2224
- await fe?.(e);
2224
+ await R?.(e);
2225
2225
  break;
2226
2226
  case Y.RevokeAccess:
2227
- await me?.(e);
2227
+ await ge?.(e);
2228
2228
  break;
2229
2229
  case Y.Logout:
2230
- At != null && await Se?.(e, { level: At });
2230
+ At != null && await we?.(e, { level: At });
2231
2231
  break;
2232
2232
  case Y.DeleteApiKey:
2233
- Ot != null && await Se?.(e, { level: Ot });
2233
+ Ot != null && await we?.(e, { level: Ot });
2234
2234
  break;
2235
2235
  case Y.Unpublish: {
2236
- let t = mr(Vt, Mt);
2237
- t != null && await ve?.(e, t.segments);
2236
+ let t = mr(Ht, Mt);
2237
+ t != null && await be?.(e, t.segments);
2238
2238
  break;
2239
2239
  }
2240
2240
  }
2241
- Z(null), kt(null), jt(null), Nt(null), wr.has(Tt) && o();
2241
+ Tt(null), kt(null), jt(null), Nt(null), wr.has(Q) && o();
2242
2242
  } catch {
2243
- Z(null), kt(null), jt(null), Nt(null);
2243
+ Tt(null), kt(null), jt(null), Nt(null);
2244
2244
  } finally {
2245
2245
  Dt(!1);
2246
2246
  }
2247
2247
  }
2248
2248
  }, [
2249
2249
  Et,
2250
- Tt,
2250
+ Q,
2251
2251
  Ot,
2252
2252
  At,
2253
2253
  e,
2254
- de,
2255
- fe,
2256
- me,
2257
- ve,
2254
+ pe,
2255
+ R,
2256
+ ge,
2257
+ be,
2258
2258
  Mt,
2259
- Vt,
2260
- Se,
2259
+ Ht,
2260
+ we,
2261
2261
  o
2262
2262
  ]);
2263
- P(() => {
2263
+ N(() => {
2264
2264
  if (!n) return;
2265
2265
  let e = (e) => {
2266
2266
  if (e.key === "Escape") {
2267
- if (Tt != null) {
2268
- Kt();
2267
+ if (Q != null) {
2268
+ qt();
2269
2269
  return;
2270
2270
  }
2271
2271
  o();
@@ -2275,140 +2275,140 @@ var yt = /* @__PURE__ */ function(e) {
2275
2275
  }, [
2276
2276
  n,
2277
2277
  o,
2278
- Tt,
2279
- Kt
2278
+ Q,
2279
+ qt
2280
2280
  ]);
2281
- let Jt = N(() => Be(!0), []), Yt = N(() => {
2282
- Be(!1), J.reset();
2283
- }, [J]), Xt = N(async () => {
2284
- await J.handleSubmit() && Yt();
2285
- }, [J, Yt]), Zt = N(() => {
2286
- let t = !Pe;
2287
- Fe(t), s?.(e.id, t);
2281
+ let Yt = M(() => He(!0), []), Xt = M(() => {
2282
+ He(!1), X.reset();
2283
+ }, [X]), Zt = M(async () => {
2284
+ await X.handleSubmit() && Xt();
2285
+ }, [X, Xt]), en = M(() => {
2286
+ let t = !Ie;
2287
+ Re(t), s?.(e.id, t);
2288
2288
  }, [
2289
- Pe,
2289
+ Ie,
2290
2290
  e.id,
2291
2291
  s
2292
- ]), en = F(() => {
2292
+ ]), tn = P(() => {
2293
2293
  let t = [], n = fr.has(e.type);
2294
2294
  return n || t.push({
2295
- id: q.About,
2296
- label: V?.tabAboutLabel ?? "About"
2295
+ id: J.About,
2296
+ label: B?.tabAboutLabel ?? "About"
2297
2297
  }), (n || e.details?.promptContent != null) && t.push({
2298
- id: q.Content,
2299
- label: V?.tabContentLabel ?? "Details"
2298
+ id: J.Content,
2299
+ label: B?.tabContentLabel ?? "Details"
2300
2300
  }), e.details?.overview != null && t.push({
2301
- id: q.Overview,
2302
- label: V?.tabOverviewLabel ?? "Overview"
2301
+ id: J.Overview,
2302
+ label: B?.tabOverviewLabel ?? "Overview"
2303
2303
  }), e.details?.pricing != null && t.push({
2304
- id: q.Pricing,
2305
- label: V?.tabPricingLabel ?? "Pricing"
2304
+ id: J.Pricing,
2305
+ label: B?.tabPricingLabel ?? "Pricing"
2306
2306
  }), e.details?.limits != null && t.push({
2307
- id: q.Limits,
2308
- label: V?.tabLimitsLabel ?? "Limits"
2307
+ id: J.Limits,
2308
+ label: B?.tabLimitsLabel ?? "Limits"
2309
2309
  }), e.details?.tools != null && t.push({
2310
- id: q.Tools,
2311
- label: V?.tabToolsLabel ?? "Tools"
2310
+ id: J.Tools,
2311
+ label: B?.tabToolsLabel ?? "Tools"
2312
2312
  }), pr(e.details?.api) && t.push({
2313
- id: q.Api,
2314
- label: V?.tabConnectLabel ?? "Connect"
2313
+ id: J.Api,
2314
+ label: B?.tabConnectLabel ?? "Connect"
2315
2315
  }), t;
2316
- }, [e, V]), tn = I(null);
2317
- P(() => {
2318
- let t = tn.current !== e.id;
2319
- tn.current = e.id, (t || !en.some((e) => e.id === Le)) && Re(en[0]?.id ?? "");
2316
+ }, [e, B]), nn = F(null);
2317
+ N(() => {
2318
+ let t = nn.current !== e.id;
2319
+ nn.current = e.id, (t || !tn.some((e) => e.id === ze)) && Be(tn[0]?.id ?? "");
2320
2320
  }, [
2321
2321
  e.id,
2322
- en,
2323
- Le
2322
+ tn,
2323
+ ze
2324
2324
  ]);
2325
- let nn = V?.overviewYesLabel ?? "Yes", rn = V?.overviewNoLabel ?? "No", an = V?.ariaLabel ?? "Item details", on = V?.closeAriaLabel ?? "Close", sn = Pe ? V?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : V?.addToFavoritesAriaLabel ?? "Add to favorites", ln = V?.publishTitle ?? "Publish", dn = V?.backToDetailsAriaLabel ?? "Back", fn = V?.cancelLabel ?? "Cancel", mn = F(() => {
2326
- switch (Tt) {
2325
+ let rn = B?.overviewYesLabel ?? "Yes", an = B?.overviewNoLabel ?? "No", on = B?.ariaLabel ?? "Item details", sn = B?.closeAriaLabel ?? "Close", ln = Ie ? B?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : B?.addToFavoritesAriaLabel ?? "Add to favorites", dn = B?.publishTitle ?? "Publish", fn = B?.backToDetailsAriaLabel ?? "Back", mn = B?.cancelLabel ?? "Cancel", hn = P(() => {
2326
+ switch (Q) {
2327
2327
  case Y.Delete: {
2328
- let t = V?.deleteActionLabel ?? "Delete";
2328
+ let t = B?.deleteActionLabel ?? "Delete";
2329
2329
  return {
2330
- title: V?.deleteConfirmTitle ?? t,
2331
- message: V?.deleteConfirmMessage?.(e.name) ?? /* @__PURE__ */ K(W, { children: [
2330
+ title: B?.deleteConfirmTitle ?? t,
2331
+ message: B?.deleteConfirmMessage?.(e.name) ?? /* @__PURE__ */ K(W, { children: [
2332
2332
  "Are you sure you want to delete ",
2333
2333
  /* @__PURE__ */ G("strong", { children: e.name }),
2334
2334
  "? This action is permanent and cannot be undone."
2335
2335
  ] }),
2336
- consequences: V?.deleteConfirmConsequences ?? vr,
2336
+ consequences: B?.deleteConfirmConsequences ?? vr,
2337
2337
  confirmLabel: t,
2338
- loadingStatusLabel: V?.deletingStatusLabel ?? "Deleting",
2338
+ loadingStatusLabel: B?.deletingStatusLabel ?? "Deleting",
2339
2339
  variant: bt.Danger
2340
2340
  };
2341
2341
  }
2342
2342
  case Y.Unshare: {
2343
- let t = V?.unshareLabel ?? "Remove from My List";
2343
+ let t = B?.unshareLabel ?? "Remove from My List";
2344
2344
  return {
2345
- title: V?.unshareConfirmTitle ?? t,
2346
- message: V?.unshareConfirmMessage?.(e.name) ?? /* @__PURE__ */ K(W, { children: [
2345
+ title: B?.unshareConfirmTitle ?? t,
2346
+ message: B?.unshareConfirmMessage?.(e.name) ?? /* @__PURE__ */ K(W, { children: [
2347
2347
  "Remove ",
2348
2348
  /* @__PURE__ */ G("strong", { children: e.name }),
2349
2349
  " from your list? You'll need a new invitation to access it again."
2350
2350
  ] }),
2351
- consequences: V?.unshareConfirmConsequences ?? yr,
2351
+ consequences: B?.unshareConfirmConsequences ?? yr,
2352
2352
  confirmLabel: t,
2353
- loadingStatusLabel: V?.unsharingStatusLabel ?? "Removing",
2353
+ loadingStatusLabel: B?.unsharingStatusLabel ?? "Removing",
2354
2354
  variant: bt.Info
2355
2355
  };
2356
2356
  }
2357
2357
  case Y.RevokeAccess: {
2358
- let t = V?.revokeShareLabel ?? "Revoke access";
2358
+ let t = B?.revokeShareLabel ?? "Revoke access";
2359
2359
  return {
2360
- title: V?.revokeShareConfirmTitle ?? t,
2361
- message: V?.revokeShareConfirmMessage?.(e.name) ?? /* @__PURE__ */ K(W, { children: [
2360
+ title: B?.revokeShareConfirmTitle ?? t,
2361
+ message: B?.revokeShareConfirmMessage?.(e.name) ?? /* @__PURE__ */ K(W, { children: [
2362
2362
  "Revoke shared access to ",
2363
2363
  /* @__PURE__ */ G("strong", { children: e.name }),
2364
2364
  "? Anyone you shared it with will lose access."
2365
2365
  ] }),
2366
- consequences: V?.revokeShareConfirmConsequences ?? xr,
2366
+ consequences: B?.revokeShareConfirmConsequences ?? xr,
2367
2367
  confirmLabel: t,
2368
- loadingStatusLabel: V?.revokingShareStatusLabel ?? "Revoking access",
2368
+ loadingStatusLabel: B?.revokingShareStatusLabel ?? "Revoking access",
2369
2369
  variant: bt.Danger
2370
2370
  };
2371
2371
  }
2372
2372
  case Y.Unpublish: {
2373
- let t = V?.unpublishLabel ?? "Unpublish", n = Vt.length === 1, r = n ? Ut(Vt[0].key) : "", i = V?.unpublishConfirmMessage?.(e.name, r) ?? /* @__PURE__ */ K(W, { children: [
2373
+ let t = B?.unpublishLabel ?? "Unpublish", n = Ht.length === 1, r = n ? Wt(Ht[0].key) : "", i = B?.unpublishConfirmMessage?.(e.name, r) ?? /* @__PURE__ */ K(W, { children: [
2374
2374
  "Unpublish ",
2375
2375
  /* @__PURE__ */ G("strong", { children: e.name }),
2376
2376
  " from \"",
2377
2377
  r,
2378
2378
  "\"? The request is submitted for admin approval."
2379
- ] }), a = V?.unpublishSelectFolderMessage?.(e.name) ?? /* @__PURE__ */ K(W, { children: [
2379
+ ] }), a = B?.unpublishSelectFolderMessage?.(e.name) ?? /* @__PURE__ */ K(W, { children: [
2380
2380
  "Choose which folder to unpublish ",
2381
2381
  /* @__PURE__ */ G("strong", { children: e.name }),
2382
2382
  " from. The request is submitted for admin approval."
2383
2383
  ] });
2384
2384
  return {
2385
- title: V?.unpublishConfirmTitle ?? t,
2385
+ title: B?.unpublishConfirmTitle ?? t,
2386
2386
  message: n ? i : a,
2387
- consequences: V?.unpublishConfirmConsequences ?? br,
2387
+ consequences: B?.unpublishConfirmConsequences ?? br,
2388
2388
  confirmLabel: t,
2389
- loadingStatusLabel: V?.unpublishingStatusLabel ?? "Requesting unpublish",
2389
+ loadingStatusLabel: B?.unpublishingStatusLabel ?? "Requesting unpublish",
2390
2390
  variant: bt.Danger
2391
2391
  };
2392
2392
  }
2393
2393
  case Y.Logout: {
2394
- let e = V?.logoutActionLabel ?? "Log out";
2394
+ let e = B?.logoutActionLabel ?? "Log out";
2395
2395
  return {
2396
2396
  title: e,
2397
- message: V?.logoutConfirmMessage ?? "Are you sure you want to log out?",
2397
+ message: B?.logoutConfirmMessage ?? "Are you sure you want to log out?",
2398
2398
  consequences: void 0,
2399
2399
  confirmLabel: e,
2400
- loadingStatusLabel: V?.loggingOutStatusLabel ?? "Logging out",
2400
+ loadingStatusLabel: B?.loggingOutStatusLabel ?? "Logging out",
2401
2401
  variant: bt.Info
2402
2402
  };
2403
2403
  }
2404
2404
  case Y.DeleteApiKey: {
2405
- let e = V?.deleteActionLabel ?? "Delete", t = Ot ?? b.User;
2405
+ let e = B?.deleteActionLabel ?? "Delete", t = Ot ?? b.User;
2406
2406
  return {
2407
2407
  title: e,
2408
- message: (V?.deleteApiKeyConfirmMessage ?? Cr)(t),
2408
+ message: (B?.deleteApiKeyConfirmMessage ?? Cr)(t),
2409
2409
  consequences: void 0,
2410
2410
  confirmLabel: e,
2411
- loadingStatusLabel: V?.deletingStatusLabel ?? "Deleting",
2411
+ loadingStatusLabel: B?.deletingStatusLabel ?? "Deleting",
2412
2412
  variant: bt.Danger,
2413
2413
  cardVariant: bt.Info
2414
2414
  };
@@ -2416,95 +2416,95 @@ var yt = /* @__PURE__ */ function(e) {
2416
2416
  default: return null;
2417
2417
  }
2418
2418
  }, [
2419
- Tt,
2419
+ Q,
2420
2420
  e.name,
2421
2421
  Ot,
2422
- V,
2423
- Vt,
2424
- Ut
2425
- ]), hn = mn != null, gn = Tt === Y.Unpublish && mr(Vt, Mt) == null, _n = hn || ze || Ct, vn = e.credentials == null ? "" : (V?.credentialsManagementTitle ?? Sr)(e.credentials.authenticationType), yn = hn ? {
2426
- title: mn.title,
2422
+ B,
2423
+ Ht,
2424
+ Wt
2425
+ ]), gn = hn != null, _n = Q === Y.Unpublish && mr(Ht, Mt) == null, vn = gn || Ve || Z, yn = e.credentials == null ? "" : (B?.credentialsManagementTitle ?? Sr)(e.credentials.authenticationType), bn = gn ? {
2426
+ title: hn.title,
2427
2427
  isBackDisabled: Et,
2428
- onBack: Kt
2429
- } : ze ? {
2430
- title: ln,
2431
- isBackDisabled: J.isSubmitting,
2432
- onBack: Yt
2433
- } : Ct ? {
2434
- title: vn,
2428
+ onBack: qt
2429
+ } : Ve ? {
2430
+ title: dn,
2431
+ isBackDisabled: X.isSubmitting,
2432
+ onBack: Xt
2433
+ } : Z ? {
2434
+ title: yn,
2435
2435
  isBackDisabled: !1,
2436
- onBack: Q
2437
- } : null, bn = yn?.title ?? an;
2436
+ onBack: It
2437
+ } : null, xn = bn?.title ?? on;
2438
2438
  return /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", {
2439
- style: Me,
2440
- className: M("fixed inset-0 z-50 transition-opacity duration-300", An.backdrop, n ? "opacity-100" : "pointer-events-none opacity-0"),
2439
+ style: Fe,
2440
+ className: j("fixed inset-0 z-50 transition-opacity duration-300", An.backdrop, n ? "opacity-100" : "pointer-events-none opacity-0"),
2441
2441
  onClick: o,
2442
2442
  "aria-hidden": "true"
2443
2443
  }), /* @__PURE__ */ K("div", {
2444
2444
  role: "dialog",
2445
2445
  "aria-modal": "true",
2446
- "aria-label": bn,
2447
- style: Me,
2448
- className: M("fixed inset-y-0 end-0 z-50 flex flex-col overflow-hidden mobile:w-full", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", An.panel, n ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
2446
+ "aria-label": xn,
2447
+ style: Fe,
2448
+ className: j("fixed inset-y-0 end-0 z-50 flex flex-col overflow-hidden mobile:w-full", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", An.panel, n ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
2449
2449
  children: [
2450
2450
  /* @__PURE__ */ K("div", {
2451
2451
  className: "flex shrink-0 items-center gap-2 px-6 py-3",
2452
- children: [yn != null && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(be, {
2453
- icon: /* @__PURE__ */ G(Ge, {
2452
+ children: [bn != null && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(xe, {
2453
+ icon: /* @__PURE__ */ G(Ke, {
2454
2454
  className: "rtl:scale-x-[-1]",
2455
- stroke: B
2455
+ stroke: z
2456
2456
  }),
2457
- "aria-label": dn,
2458
- disabled: yn.isBackDisabled,
2459
- onClick: yn.onBack
2457
+ "aria-label": fn,
2458
+ disabled: bn.isBackDisabled,
2459
+ onClick: bn.onBack
2460
2460
  }), /* @__PURE__ */ G("span", {
2461
- className: M("flex-1", Te, An.publishTitle),
2462
- children: yn.title
2463
- })] }), yn == null && /* @__PURE__ */ K(W, { children: [
2461
+ className: j("flex-1", De, An.publishTitle),
2462
+ children: bn.title
2463
+ })] }), bn == null && /* @__PURE__ */ K(W, { children: [
2464
2464
  /* @__PURE__ */ G("div", { className: "flex-1" }),
2465
2465
  !a && c?.(e) !== !1 && /* @__PURE__ */ G(Bt, {
2466
- isStarred: Pe,
2467
- ariaLabel: sn,
2468
- onClick: Zt
2466
+ isStarred: Ie,
2467
+ ariaLabel: ln,
2468
+ onClick: en
2469
2469
  }),
2470
- /* @__PURE__ */ G(pe, {
2470
+ /* @__PURE__ */ G(me, {
2471
2471
  onClose: o,
2472
- size: ge.Standard,
2473
- ariaLabel: on
2472
+ size: _e.Standard,
2473
+ ariaLabel: sn
2474
2474
  })
2475
2475
  ] })]
2476
2476
  }),
2477
- /* @__PURE__ */ G("div", { className: M("shrink-0", An.divider) }),
2477
+ /* @__PURE__ */ G("div", { className: j("shrink-0", An.divider) }),
2478
2478
  /* @__PURE__ */ K("div", {
2479
- className: M("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", An.content),
2479
+ className: j("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", An.content),
2480
2480
  children: [
2481
- hn && /* @__PURE__ */ G(pn, {
2481
+ gn && /* @__PURE__ */ G(pn, {
2482
2482
  item: e,
2483
- message: mn.message,
2484
- consequences: mn.consequences,
2485
- variant: mn.cardVariant ?? mn.variant,
2486
- messageClassName: Ae,
2487
- children: Tt === Y.Unpublish && Vt.length > 1 && /* @__PURE__ */ G(je, {
2488
- ariaLabel: V?.unpublishFolderGroupAriaLabel ?? "Published folders",
2483
+ message: hn.message,
2484
+ consequences: hn.consequences,
2485
+ variant: hn.cardVariant ?? hn.variant,
2486
+ messageClassName: Ne,
2487
+ children: Q === Y.Unpublish && Ht.length > 1 && /* @__PURE__ */ G(Me, {
2488
+ ariaLabel: B?.unpublishFolderGroupAriaLabel ?? "Published folders",
2489
2489
  value: Mt ?? void 0,
2490
2490
  onChange: Nt,
2491
2491
  disabled: Et,
2492
- items: Vt.map((e) => ({
2492
+ items: Ht.map((e) => ({
2493
2493
  value: e.key,
2494
- label: Ut(e.key)
2494
+ label: Wt(e.key)
2495
2495
  })),
2496
- radioClassName: Ae
2496
+ radioClassName: Ne
2497
2497
  })
2498
2498
  }),
2499
- !hn && !ze && Ct && /* @__PURE__ */ G(kn, {
2499
+ !gn && !Ve && Z && /* @__PURE__ */ G(kn, {
2500
2500
  item: e,
2501
- onLogin: xe,
2502
- onRequestLogout: Lt,
2503
- onRequestDeleteApiKey: Gt,
2504
- texts: V,
2505
- detailsStyles: Ce
2501
+ onLogin: Ce,
2502
+ onRequestLogout: Rt,
2503
+ onRequestDeleteApiKey: Kt,
2504
+ texts: B,
2505
+ detailsStyles: Te
2506
2506
  }),
2507
- !hn && ze && /* @__PURE__ */ G("div", {
2507
+ !gn && Ve && /* @__PURE__ */ G("div", {
2508
2508
  className: "p-[22px]",
2509
2509
  children: /* @__PURE__ */ G(ht, {
2510
2510
  resource: {
@@ -2513,38 +2513,38 @@ var yt = /* @__PURE__ */ function(e) {
2513
2513
  type: e.type,
2514
2514
  iconUrl: e.iconUrl
2515
2515
  },
2516
- history: Ve,
2517
- isHistoryLoading: Ue,
2518
- hasHistoryError: Ke,
2519
- folderItems: J.folderItems,
2520
- selectedFolderPath: J.selectedFolderPath,
2521
- onSelectedFolderPathChange: J.setSelectedFolderPath,
2522
- onCreateFolder: J.handleCreateFolder,
2516
+ history: Ue,
2517
+ isHistoryLoading: Ge,
2518
+ hasHistoryError: Je,
2519
+ folderItems: X.folderItems,
2520
+ selectedFolderPath: X.selectedFolderPath,
2521
+ onSelectedFolderPathChange: X.setSelectedFolderPath,
2522
+ onCreateFolder: X.handleCreateFolder,
2523
2523
  expandedPaths: v,
2524
2524
  onExpandedPathsChange: y,
2525
2525
  loadingPaths: S,
2526
- hasExistingPublicationInFolder: J.hasExistingPublicationInFolder,
2527
- hasWriteAccess: J.hasWriteAccess,
2528
- isSubmitting: J.isSubmitting,
2529
- hasSubmitError: J.hasSubmitError,
2530
- author: J.author,
2531
- onAuthorChange: J.setAuthor,
2532
- publishCredentials: J.publishCredentials,
2533
- onPublishCredentialsChange: xt ? J.setPublishCredentials : void 0,
2534
- rules: J.rules,
2535
- onRulesChange: J.setRules,
2526
+ hasExistingPublicationInFolder: X.hasExistingPublicationInFolder,
2527
+ hasWriteAccess: X.hasWriteAccess,
2528
+ isSubmitting: X.isSubmitting,
2529
+ hasSubmitError: X.hasSubmitError,
2530
+ author: X.author,
2531
+ onAuthorChange: X.setAuthor,
2532
+ publishCredentials: X.publishCredentials,
2533
+ onPublishCredentialsChange: xt ? X.setPublishCredentials : void 0,
2534
+ rules: X.rules,
2535
+ onRulesChange: X.setRules,
2536
2536
  ruleSourceOptions: A,
2537
- isRulesLoading: J.isRulesLoading,
2538
- hasRulesLoadError: J.hasRulesLoadError,
2537
+ isRulesLoading: X.isRulesLoading,
2538
+ hasRulesLoadError: X.hasRulesLoadError,
2539
2539
  labels: k,
2540
2540
  styles: { colors: {
2541
- summaryVersionTagBorder: H?.versionTagBorder,
2542
- summaryVersionTagBackground: H?.versionTagBackground,
2543
- summaryVersionTagText: H?.versionTagText
2541
+ summaryVersionTagBorder: V?.versionTagBorder,
2542
+ summaryVersionTagBackground: V?.versionTagBackground,
2543
+ summaryVersionTagText: V?.versionTagText
2544
2544
  } }
2545
2545
  })
2546
2546
  }),
2547
- !_n && /* @__PURE__ */ K(W, { children: [
2547
+ !vn && /* @__PURE__ */ K(W, { children: [
2548
2548
  /* @__PURE__ */ G(Vn, {
2549
2549
  item: e,
2550
2550
  onUseInChat: l,
@@ -2552,31 +2552,31 @@ var yt = /* @__PURE__ */ function(e) {
2552
2552
  onShare: d,
2553
2553
  shareOverlay: te,
2554
2554
  isShareVisible: ne,
2555
- isSharePrimary: re,
2555
+ isSharePrimary: ie,
2556
2556
  isPublishVisible: f,
2557
2557
  isPublishPrimary: p,
2558
- onOpenPublish: Jt,
2559
- isUnpublishVisible: ye,
2560
- hasPublishedFolders: Ht,
2561
- isPublishHistoryResolved: h == null || Je,
2562
- onRequestPublishHistory: vt,
2563
- onOpenUnpublish: ve ? Wt : void 0,
2564
- onEdit: ie,
2565
- onDownload: ae,
2566
- isDownloadVisible: oe,
2567
- isDownloadPrimary: se,
2568
- onDelete: de ? It : void 0,
2569
- onUnshare: fe ? Rt : void 0,
2570
- isUnshareVisible: z,
2571
- onRevokeShare: me ? zt : void 0,
2572
- onFetchRecipientsCount: he,
2573
- isRevokeShareVisible: _e,
2574
- onLogin: xe,
2575
- onLogout: Se,
2558
+ onOpenPublish: Yt,
2559
+ isUnpublishVisible: Se,
2560
+ hasPublishedFolders: Ut,
2561
+ isPublishHistoryResolved: h == null || Xe,
2562
+ onRequestPublishHistory: q,
2563
+ onOpenUnpublish: be ? Gt : void 0,
2564
+ onEdit: ae,
2565
+ onDownload: oe,
2566
+ isDownloadVisible: se,
2567
+ isDownloadPrimary: ce,
2568
+ onDelete: pe ? Lt : void 0,
2569
+ onUnshare: R ? zt : void 0,
2570
+ isUnshareVisible: he,
2571
+ onRevokeShare: ge ? Vt : void 0,
2572
+ onFetchRecipientsCount: ve,
2573
+ isRevokeShareVisible: ye,
2574
+ onLogin: Ce,
2575
+ onLogout: we,
2576
2576
  onOpenCredentialsManagement: Ft,
2577
- onRequestLogout: Lt,
2578
- texts: V,
2579
- detailsStyles: Ce,
2577
+ onRequestLogout: Rt,
2578
+ texts: B,
2579
+ detailsStyles: Te,
2580
2580
  isReadonly: a
2581
2581
  }),
2582
2582
  e.credentials != null && (() => {
@@ -2586,22 +2586,22 @@ var yt = /* @__PURE__ */ function(e) {
2586
2586
  children: /* @__PURE__ */ G(Tn, {
2587
2587
  state: t,
2588
2588
  authenticationType: e.credentials.authenticationType,
2589
- texts: V
2589
+ texts: B
2590
2590
  })
2591
2591
  });
2592
2592
  })(),
2593
- !a && n && ue?.(e),
2593
+ !a && n && fe?.(e),
2594
2594
  /* @__PURE__ */ K("div", {
2595
2595
  className: "flex items-center px-6",
2596
- children: [/* @__PURE__ */ G(Ie, {
2597
- tabs: en,
2598
- activeTabId: Le,
2599
- onTabChange: Re
2596
+ children: [/* @__PURE__ */ G(Le, {
2597
+ tabs: tn,
2598
+ activeTabId: ze,
2599
+ onTabChange: Be
2600
2600
  }), i && /* @__PURE__ */ G("div", {
2601
2601
  role: "status",
2602
- "aria-label": V?.detailsLoadingAriaLabel ?? "Loading details",
2602
+ "aria-label": B?.detailsLoadingAriaLabel ?? "Loading details",
2603
2603
  className: "shrink-0",
2604
- children: /* @__PURE__ */ G(Ne, {
2604
+ children: /* @__PURE__ */ G(Pe, {
2605
2605
  showTitle: !1,
2606
2606
  paragraph: {
2607
2607
  rows: 1,
@@ -2613,85 +2613,86 @@ var yt = /* @__PURE__ */ function(e) {
2613
2613
  })]
2614
2614
  }),
2615
2615
  /* @__PURE__ */ K("div", {
2616
- className: M("min-h-0 flex-1 overflow-y-auto", Le !== q.Overview && "px-6"),
2616
+ className: j("min-h-0 flex-1 overflow-y-auto", ze !== J.Overview && "px-6"),
2617
2617
  children: [
2618
- Le === q.About && /* @__PURE__ */ G(Hn, {
2618
+ ze === J.About && /* @__PURE__ */ G(Hn, {
2619
2619
  content: e.description,
2620
2620
  topics: e.topics,
2621
- detailsStyles: Ce
2621
+ detailsStyles: Te
2622
2622
  }),
2623
- Le === q.Content && /* @__PURE__ */ G(qn, {
2624
- content: Ze?.content ?? "",
2625
- filePreview: ft(),
2626
- filePreviewContent: pt,
2627
- description: Ze?.description ?? e.description,
2628
- files: Ze?.files,
2629
- selectedFileId: dt,
2630
- onSelectFile: (e) => void ut(e),
2631
- isFileLoading: tt,
2632
- expandedFolderIds: rt,
2633
- onToggleFolder: lt,
2634
- isFileSelectorOpen: U,
2635
- onFileSelectorOpenChange: at,
2636
- fileSelectorAriaLabel: V?.contentFileSelectorAriaLabel,
2637
- fileCountLabel: V?.contentFileCountLabel,
2638
- fileLoadingLabel: V?.contentFileLoadingLabel,
2639
- fileUnsupportedLabel: V?.contentFileUnsupportedLabel,
2640
- detailsStyles: Ce
2623
+ ze === J.Content && /* @__PURE__ */ G(qn, {
2624
+ content: $e?.content ?? "",
2625
+ filePreview: pt(),
2626
+ filePreviewContent: vt,
2627
+ renderFileTree: de,
2628
+ description: $e?.description ?? e.description,
2629
+ files: $e?.files,
2630
+ selectedFileId: ft,
2631
+ onSelectFile: (e) => void dt(e),
2632
+ isFileLoading: rt,
2633
+ expandedFolderIds: at,
2634
+ onToggleFolder: ut,
2635
+ isFileSelectorOpen: ot,
2636
+ onFileSelectorOpenChange: st,
2637
+ fileSelectorAriaLabel: B?.contentFileSelectorAriaLabel,
2638
+ fileCountLabel: B?.contentFileCountLabel,
2639
+ fileLoadingLabel: B?.contentFileLoadingLabel,
2640
+ fileUnsupportedLabel: B?.contentFileUnsupportedLabel,
2641
+ detailsStyles: Te
2641
2642
  }),
2642
- Le === q.Overview && /* @__PURE__ */ G(or, {
2643
+ ze === J.Overview && /* @__PURE__ */ G(or, {
2643
2644
  sections: e.details?.overview?.sections,
2644
- sectionClassName: Ee,
2645
- labelClassName: De,
2646
- valueClassName: Oe,
2647
- valueTrueClassName: ke,
2648
- yesLabel: nn,
2649
- noLabel: rn
2645
+ sectionClassName: Oe,
2646
+ labelClassName: ke,
2647
+ valueClassName: Ae,
2648
+ valueTrueClassName: je,
2649
+ yesLabel: rn,
2650
+ noLabel: an
2650
2651
  }),
2651
- Le === q.Pricing && /* @__PURE__ */ G(sr, {
2652
+ ze === J.Pricing && /* @__PURE__ */ G(sr, {
2652
2653
  pricing: e.details?.pricing,
2653
- pricesSectionLabel: V?.pricingPricesSectionLabel,
2654
- limitsSectionLabel: V?.pricingLimitsSectionLabel
2654
+ pricesSectionLabel: B?.pricingPricesSectionLabel,
2655
+ limitsSectionLabel: B?.pricingLimitsSectionLabel
2655
2656
  }),
2656
- Le === q.Limits && /* @__PURE__ */ G(ar, {
2657
+ ze === J.Limits && /* @__PURE__ */ G(ar, {
2657
2658
  limits: e.details?.limits,
2658
- footerNote: we
2659
+ footerNote: Ee
2659
2660
  }),
2660
- Le === q.Api && pr(e.details?.api) && /* @__PURE__ */ G(cn, {
2661
+ ze === J.Api && pr(e.details?.api) && /* @__PURE__ */ G(cn, {
2661
2662
  api: e.details?.api,
2662
- resourceSectionLabel: V?.apiResourceSectionLabel,
2663
- snippetSectionLabel: V?.apiSnippetSectionLabel,
2664
- modelIdLabel: V?.apiModelIdLabel,
2665
- endpointLabel: V?.apiEndpointLabel,
2666
- endpointSectionLabel: V?.apiEndpointSectionLabel,
2667
- requestExampleLabel: V?.apiRequestExampleLabel,
2668
- responseSchemaLabel: V?.apiResponseSchemaLabel,
2669
- copyAriaLabel: V?.copyCodeAriaLabel,
2670
- copiedStatusLabel: V?.copiedCodeStatusLabel
2663
+ resourceSectionLabel: B?.apiResourceSectionLabel,
2664
+ snippetSectionLabel: B?.apiSnippetSectionLabel,
2665
+ modelIdLabel: B?.apiModelIdLabel,
2666
+ endpointLabel: B?.apiEndpointLabel,
2667
+ endpointSectionLabel: B?.apiEndpointSectionLabel,
2668
+ requestExampleLabel: B?.apiRequestExampleLabel,
2669
+ responseSchemaLabel: B?.apiResponseSchemaLabel,
2670
+ copyAriaLabel: B?.copyCodeAriaLabel,
2671
+ copiedStatusLabel: B?.copiedCodeStatusLabel
2671
2672
  }),
2672
- Le === q.Tools && /* @__PURE__ */ G(dr, { tools: e.details?.tools })
2673
+ ze === J.Tools && /* @__PURE__ */ G(dr, { tools: e.details?.tools })
2673
2674
  ]
2674
2675
  })
2675
2676
  ] })
2676
2677
  ]
2677
2678
  }),
2678
- hn && /* @__PURE__ */ G(un, {
2679
- confirmLabel: mn.confirmLabel,
2680
- cancelLabel: fn,
2681
- variant: mn.variant,
2679
+ gn && /* @__PURE__ */ G(un, {
2680
+ confirmLabel: hn.confirmLabel,
2681
+ cancelLabel: mn,
2682
+ variant: hn.variant,
2682
2683
  isLoading: Et,
2683
- isConfirmDisabled: gn,
2684
- loadingStatusLabel: mn.loadingStatusLabel,
2685
- onConfirm: qt,
2686
- onCancel: Kt
2684
+ isConfirmDisabled: _n,
2685
+ loadingStatusLabel: hn.loadingStatusLabel,
2686
+ onConfirm: Jt,
2687
+ onCancel: qt
2687
2688
  }),
2688
- !hn && ze && /* @__PURE__ */ G(mt, {
2689
+ !gn && Ve && /* @__PURE__ */ G(mt, {
2689
2690
  version: e.version,
2690
- hasExistingPublicationInFolder: J.hasExistingPublicationInFolder,
2691
+ hasExistingPublicationInFolder: X.hasExistingPublicationInFolder,
2691
2692
  isSubmitDisabled: St.isSubmitDisabled,
2692
2693
  isSubmitLoading: St.isSubmitLoading,
2693
- onCancel: Yt,
2694
- onSubmit: Xt,
2694
+ onCancel: Xt,
2695
+ onSubmit: Zt,
2695
2696
  labels: k
2696
2697
  })
2697
2698
  ]
@@ -2712,34 +2713,34 @@ var yt = /* @__PURE__ */ function(e) {
2712
2713
  cardLeaving: "_cardLeaving_14qfn_54",
2713
2714
  cardFadeOut: "_cardFadeOut_14qfn_1"
2714
2715
  }, Dr = ({ item: e, initialIsStarred: t = !0, onToggle: n, isFavoriteVisible: r, onClick: i, nameClassName: a, colors: o, versionClassName: s, lastUsedClassName: c, query: l, addToFavoritesAriaLabel: u = "Add to favorites", removeFromFavoritesAriaLabel: d = "Remove from favorites", isSelected: f = !1, credentialsBadgeLoggedOutLabel: p }) => {
2715
- let [m, h] = L(t), [g, _] = L(!1), v = (t) => {
2716
+ let [m, h] = I(t), [g, _] = I(!1), v = (t) => {
2716
2717
  t.stopPropagation();
2717
2718
  let r = !m;
2718
2719
  h(r), r ? n?.(e.id, r) : _(!0);
2719
- }, y = i && !g ? () => i(e) : void 0, b = N((t) => {
2720
+ }, y = i && !g ? () => i(e) : void 0, b = M((t) => {
2720
2721
  !i || g || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), i(e));
2721
2722
  }, [
2722
2723
  i,
2723
2724
  e,
2724
2725
  g
2725
2726
  ]);
2726
- return /* @__PURE__ */ K(de, {
2727
+ return /* @__PURE__ */ K(fe, {
2727
2728
  "data-card-id": e.id,
2728
2729
  role: y == null ? void 0 : "button",
2729
2730
  tabIndex: y == null ? void 0 : 0,
2730
2731
  "aria-label": e.name,
2731
- className: M("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", g && Er.cardLeaving, f && Er.selectedCard, Z.favoriteCard),
2732
+ className: j("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", g && Er.cardLeaving, f && Er.selectedCard, Q.favoriteCard),
2732
2733
  onClick: y,
2733
2734
  onKeyDown: b,
2734
2735
  onAnimationEnd: g ? (t) => {
2735
2736
  t.currentTarget === t.target && n?.(e.id, !1);
2736
2737
  } : void 0,
2737
2738
  children: [
2738
- f && /* @__PURE__ */ G(Ue, {
2739
- size: z.SM,
2740
- className: M("absolute end-3 top-3 shrink-0", Er.selectedCheck),
2739
+ f && /* @__PURE__ */ G(We, {
2740
+ size: R.SM,
2741
+ className: j("absolute end-3 top-3 shrink-0", Er.selectedCheck),
2741
2742
  "aria-hidden": !0,
2742
- stroke: B
2743
+ stroke: z
2743
2744
  }),
2744
2745
  /* @__PURE__ */ G("div", {
2745
2746
  className: "flex min-w-0 flex-1 flex-col items-start gap-1",
@@ -2749,7 +2750,7 @@ var yt = /* @__PURE__ */ function(e) {
2749
2750
  name: e.name,
2750
2751
  version: e.version,
2751
2752
  lastUsed: e.lastUsed,
2752
- size: xt.LG,
2753
+ size: X.LG,
2753
2754
  query: l,
2754
2755
  className: "min-w-0 self-stretch",
2755
2756
  styles: {
@@ -2768,7 +2769,7 @@ var yt = /* @__PURE__ */ function(e) {
2768
2769
  }),
2769
2770
  r?.(e) !== !1 && /* @__PURE__ */ G(Bt, {
2770
2771
  isStarred: m,
2771
- size: ge.Small,
2772
+ size: _e.Small,
2772
2773
  onClick: v,
2773
2774
  ariaLabel: m ? d : u,
2774
2775
  className: "self-end"
@@ -2785,7 +2786,7 @@ var yt = /* @__PURE__ */ function(e) {
2785
2786
  return new DOMRect(t.x + n, t.y + r, t.width, t.height);
2786
2787
  }
2787
2788
  }, Ar = ({ items: e, totalCount: t, title: n = "Your Favorites", onToggleFavorite: r, isFavoriteVisible: i, onItemClick: a, styles: o, isLeaving: s, onExitComplete: c, prevPageAriaLabel: l = "Previous page", nextPageAriaLabel: u = "Next page", addToFavoritesAriaLabel: d, removeFromFavoritesAriaLabel: f, selectedItemId: p, credentialsBadgeLoggedOutLabel: m }) => {
2788
- let h = o?.typography?.titleClassName ?? "dial-body-semi-text", g = o?.typography?.countClassName ?? "dial-tiny-semi-text", _ = j({
2789
+ let h = o?.typography?.titleClassName ?? "dial-body-semi-text", g = o?.typography?.countClassName ?? "dial-tiny-semi-text", _ = re({
2789
2790
  "--cat-fav-title-text": o?.colors?.titleText,
2790
2791
  "--cat-fav-count-text": o?.colors?.countText,
2791
2792
  "--cat-fav-selected-check": o?.colors?.selectedCheckIcon,
@@ -2797,49 +2798,49 @@ var yt = /* @__PURE__ */ function(e) {
2797
2798
  "--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
2798
2799
  "--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
2799
2800
  "--cat-fav-page-nav-bg": o?.colors?.pageNavBackground
2800
- }), v = F(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = L(1), x = Tt(), S = x * Or, C = (y - 1) * S, w = F(() => v.slice(C, C + S), [
2801
+ }), v = P(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = I(1), x = wt(), S = x * Or, C = (y - 1) * S, w = P(() => v.slice(C, C + S), [
2801
2802
  v,
2802
2803
  C,
2803
2804
  S
2804
- ]), T = Math.ceil(v.length / S), E = t ?? e.length, O = I(null), k = I(null), A = I(null), [ee, te] = L(), [ne, re] = L(), ie = I(x);
2805
- P(() => {
2806
- ie.current !== x && (ie.current = x, b(1), te(void 0), re(void 0));
2807
- }, [x]), P(() => {
2805
+ ]), T = Math.ceil(v.length / S), E = t ?? e.length, O = F(null), k = F(null), A = F(null), [ee, te] = I(), [ne, ie] = I(), ae = F(x);
2806
+ N(() => {
2807
+ ae.current !== x && (ae.current = x, b(1), te(void 0), ie(void 0));
2808
+ }, [x]), N(() => {
2808
2809
  y > T && T > 0 && b(T);
2809
- }, [y, T]), P(() => {
2810
- T <= 1 && (ee !== void 0 || ne !== void 0) && (te(void 0), re(void 0));
2810
+ }, [y, T]), N(() => {
2811
+ T <= 1 && (ee !== void 0 || ne !== void 0) && (te(void 0), ie(void 0));
2811
2812
  }, [
2812
2813
  T,
2813
2814
  ee,
2814
2815
  ne
2815
- ]), se(() => {
2816
- !A.current || !k.current || T <= 1 || y !== 1 || ee !== void 0 || (te(A.current.offsetHeight), re(k.current.offsetHeight));
2816
+ ]), ce(() => {
2817
+ !A.current || !k.current || T <= 1 || y !== 1 || ee !== void 0 || (te(A.current.offsetHeight), ie(k.current.offsetHeight));
2817
2818
  }, [
2818
2819
  T,
2819
2820
  y,
2820
2821
  ee
2821
2822
  ]);
2822
- let ae = I(/* @__PURE__ */ new Map()), N = I(y), oe = I(x), ce = I(0), R = I(!1);
2823
- return se(() => {
2823
+ let oe = F(/* @__PURE__ */ new Map()), M = F(y), se = F(x), le = F(0), L = F(!1);
2824
+ return ce(() => {
2824
2825
  if (!A.current || s) return;
2825
- if (O.current && !R.current) {
2826
+ if (O.current && !L.current) {
2826
2827
  let e = O.current;
2827
2828
  e.style.height = "", e.style.transition = "";
2828
2829
  }
2829
- let e = N.current !== y, t = oe.current !== x;
2830
- N.current = y, oe.current = x;
2830
+ let e = M.current !== y, t = se.current !== x;
2831
+ M.current = y, se.current = x;
2831
2832
  let n = A.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
2832
2833
  if (n.forEach((e) => {
2833
2834
  r.set(e.dataset.cardId, kr(e));
2834
2835
  }), !e && !t) {
2835
- let e = k.current, t = ce.current, i = 0;
2836
+ let e = k.current, t = le.current, i = 0;
2836
2837
  if (e) {
2837
2838
  let t = e.style.height;
2838
2839
  t && (e.style.height = ""), i = e.offsetHeight, t && (e.style.height = t);
2839
2840
  }
2840
2841
  let a = e != null && t > 0 && Math.abs(i - t) > 2, o = i > t ? 280 : 220, s = [];
2841
2842
  if (n.forEach((e) => {
2842
- let t = e.dataset.cardId, n = ae.current.get(t), i = r.get(t);
2843
+ let t = e.dataset.cardId, n = oe.current.get(t), i = r.get(t);
2843
2844
  if (!n || !i) return;
2844
2845
  let o = n.left - i.left, c = n.top - i.top;
2845
2846
  !a && Math.abs(c) > .5 || Math.abs(o) < .5 && Math.abs(c) < .5 || (e.style.transition = "none", e.style.transform = `translate(${o}px, ${c}px)`, s.push(e));
@@ -2855,30 +2856,30 @@ var yt = /* @__PURE__ */ function(e) {
2855
2856
  e.addEventListener("transitionend", t);
2856
2857
  }
2857
2858
  }
2858
- if (ae.current = r, k.current) {
2859
+ if (oe.current = r, k.current) {
2859
2860
  let e = k.current, t = e.style.height ? parseFloat(e.style.height) : NaN;
2860
- ce.current = Number.isNaN(t) ? e.offsetHeight : t;
2861
+ le.current = Number.isNaN(t) ? e.offsetHeight : t;
2861
2862
  }
2862
2863
  }, [
2863
2864
  w,
2864
2865
  y,
2865
2866
  x,
2866
2867
  s
2867
- ]), se(() => {
2868
+ ]), ce(() => {
2868
2869
  let e = O.current;
2869
2870
  if (!e) return;
2870
2871
  let t = e.offsetHeight;
2871
2872
  if (t === 0) return;
2872
- R.current = !0, e.style.height = "0px", e.offsetHeight, e.style.transition = "height 300ms cubic-bezier(0, 0, 0.2, 1)", e.style.height = `${t}px`;
2873
+ L.current = !0, e.style.height = "0px", e.offsetHeight, e.style.transition = "height 300ms cubic-bezier(0, 0, 0.2, 1)", e.style.height = `${t}px`;
2873
2874
  let n = (t) => {
2874
2875
  t.target !== e || t.propertyName !== "height" || r();
2875
2876
  }, r = () => {
2876
- R.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
2877
+ L.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
2877
2878
  }, i = setTimeout(r, 400);
2878
2879
  return e.addEventListener("transitionend", n), () => {
2879
2880
  clearTimeout(i), e.removeEventListener("transitionend", n);
2880
2881
  };
2881
- }, []), se(() => {
2882
+ }, []), ce(() => {
2882
2883
  if (!s || !O.current) return;
2883
2884
  let e = O.current, t = e.offsetHeight;
2884
2885
  t !== 0 && (e.style.height = `${t}px`, e.offsetHeight, e.style.transition = "height 260ms ease-in", e.style.height = "0px");
@@ -2886,7 +2887,7 @@ var yt = /* @__PURE__ */ function(e) {
2886
2887
  ref: O,
2887
2888
  children: /* @__PURE__ */ K("section", {
2888
2889
  ref: k,
2889
- className: M("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", Er.section, s && Er.sectionLeaving),
2890
+ className: j("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", Er.section, s && Er.sectionLeaving),
2890
2891
  style: {
2891
2892
  ..._,
2892
2893
  minHeight: ne
@@ -2897,50 +2898,50 @@ var yt = /* @__PURE__ */ function(e) {
2897
2898
  children: [/* @__PURE__ */ G(D, {
2898
2899
  title: n,
2899
2900
  postfix: E,
2900
- titleClassName: M(h, Er.titleText),
2901
- postfixClassName: M(g, Er.countText),
2901
+ titleClassName: j(h, Er.titleText),
2902
+ postfixClassName: j(g, Er.countText),
2902
2903
  trailing: T > 1 ? /* @__PURE__ */ K("div", {
2903
- className: M("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", Er.pageNav),
2904
+ className: j("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", Er.pageNav),
2904
2905
  children: [
2905
- /* @__PURE__ */ G(be, {
2906
- size: ge.Small,
2906
+ /* @__PURE__ */ G(xe, {
2907
+ size: _e.Small,
2907
2908
  "aria-label": l,
2908
2909
  disabled: y === 1,
2909
2910
  onClick: () => b((e) => e - 1),
2910
- className: M("rounded-full", Er.navBtn),
2911
- icon: /* @__PURE__ */ G(Ge, {
2911
+ className: j("rounded-full", Er.navBtn),
2912
+ icon: /* @__PURE__ */ G(Ke, {
2912
2913
  size: 14,
2913
2914
  "aria-hidden": !0,
2914
2915
  className: "rtl:scale-x-[-1]",
2915
- stroke: B
2916
+ stroke: z
2916
2917
  })
2917
2918
  }),
2918
2919
  /* @__PURE__ */ K("span", {
2919
- className: M("min-w-[32px] select-none px-1 text-center", g, Er.countText),
2920
+ className: j("min-w-[32px] select-none px-1 text-center", g, Er.countText),
2920
2921
  children: [
2921
2922
  y,
2922
2923
  " / ",
2923
2924
  T
2924
2925
  ]
2925
2926
  }),
2926
- /* @__PURE__ */ G(be, {
2927
- size: ge.Small,
2927
+ /* @__PURE__ */ G(xe, {
2928
+ size: _e.Small,
2928
2929
  "aria-label": u,
2929
2930
  disabled: y === T,
2930
2931
  onClick: () => b((e) => e + 1),
2931
- className: M("rounded-full", Er.navBtn),
2932
- icon: /* @__PURE__ */ G(Ke, {
2932
+ className: j("rounded-full", Er.navBtn),
2933
+ icon: /* @__PURE__ */ G(qe, {
2933
2934
  size: 14,
2934
2935
  "aria-hidden": !0,
2935
2936
  className: "rtl:scale-x-[-1]",
2936
- stroke: B
2937
+ stroke: z
2937
2938
  })
2938
2939
  })
2939
2940
  ]
2940
2941
  }) : void 0
2941
2942
  }), /* @__PURE__ */ G("div", {
2942
2943
  ref: A,
2943
- className: M("grid content-start gap-5", Er.gridPage),
2944
+ className: j("grid content-start gap-5", Er.gridPage),
2944
2945
  style: {
2945
2946
  gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
2946
2947
  minHeight: ee
@@ -2976,20 +2977,20 @@ var yt = /* @__PURE__ */ function(e) {
2976
2977
  return /* @__PURE__ */ K("div", {
2977
2978
  className: "flex h-full w-full min-w-0 items-center gap-1.5",
2978
2979
  children: [
2979
- /* @__PURE__ */ G(Ze, {
2980
- size: z.SM,
2981
- stroke: B,
2982
- className: M("shrink-0", jr.folderIcon),
2980
+ /* @__PURE__ */ G(Qe, {
2981
+ size: R.SM,
2982
+ stroke: z,
2983
+ className: j("shrink-0", jr.folderIcon),
2983
2984
  "aria-hidden": !0
2984
2985
  }),
2985
- /* @__PURE__ */ G(Re, {
2986
+ /* @__PURE__ */ G(ze, {
2986
2987
  tooltip: /* @__PURE__ */ G("span", {
2987
2988
  className: a,
2988
2989
  children: n
2989
2990
  }),
2990
2991
  hideTooltip: !i,
2991
2992
  triggerClassName: "min-w-0 flex-1",
2992
- children: /* @__PURE__ */ G(_e, {
2993
+ children: /* @__PURE__ */ G(ve, {
2993
2994
  text: r,
2994
2995
  className: o,
2995
2996
  hideTooltip: i
@@ -3023,17 +3024,17 @@ var yt = /* @__PURE__ */ function(e) {
3023
3024
  query: n,
3024
3025
  titleClassName: i,
3025
3026
  className: "min-w-0 flex-1 items-baseline gap-1.5",
3026
- trailing: o ? /* @__PURE__ */ G(Ue, {
3027
- size: z.SM,
3028
- className: M("shrink-0", jr.selectedCheck),
3027
+ trailing: o ? /* @__PURE__ */ G(We, {
3028
+ size: R.SM,
3029
+ className: j("shrink-0", jr.selectedCheck),
3029
3030
  "aria-hidden": !0,
3030
- stroke: B
3031
+ stroke: z
3031
3032
  }) : void 0
3032
3033
  })]
3033
3034
  }) : null;
3034
3035
  }, Ir = ({ data: e, context: t }) => {
3035
- let [n, r] = L(e?.isStarred ?? !1);
3036
- return P(() => {
3036
+ let [n, r] = I(e?.isStarred ?? !1);
3037
+ return N(() => {
3037
3038
  r(e?.isStarred ?? !1);
3038
3039
  }, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ G("div", {
3039
3040
  className: "flex size-full items-center justify-end",
@@ -3115,7 +3116,7 @@ var yt = /* @__PURE__ */ function(e) {
3115
3116
  }
3116
3117
  ];
3117
3118
  }, Vr = 60, Hr = {}, Ur = (e) => e.id, Wr = (e) => e.items.length === 0 ? /* @__PURE__ */ G("div", {
3118
- className: ze("flex size-full flex-col items-center justify-center", Z.listView),
3119
+ className: Be("flex size-full flex-col items-center justify-center", Q.listView),
3119
3120
  children: /* @__PURE__ */ G(ee, { label: e.emptyStateTitle ?? "No results" })
3120
3121
  }) : /* @__PURE__ */ G(Gr, { ...e }), Gr = ({ items: e, type: t, query: n = "", ariaLabel: r = "Catalog", emptyStateTitle: i, styles: a, onToggleFavorite: o, isFavoriteVisible: s, onItemClick: c, stickyHeaderTop: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f = !1, columnVisibility: p }) => {
3121
3122
  let m = a?.typography ?? Hr, h = a?.colors, g = {
@@ -3130,13 +3131,13 @@ var yt = /* @__PURE__ */ function(e) {
3130
3131
  "--cat-list-selected-bg": h?.selectedRowBackground,
3131
3132
  "--cat-list-selected-check": h?.selectedRowCheckIcon,
3132
3133
  ...l == null ? {} : { "--list-header-sticky-top": `${l}px` }
3133
- }, _ = I(null), v = N((e) => {
3134
+ }, _ = F(null), v = M((e) => {
3134
3135
  _.current = e;
3135
- }, []), y = F(() => Br(t, f, p), [
3136
+ }, []), y = P(() => Br(t, f, p), [
3136
3137
  t,
3137
3138
  f,
3138
3139
  p
3139
- ]), b = F(() => ({
3140
+ ]), b = P(() => ({
3140
3141
  domLayout: "autoHeight",
3141
3142
  rowHeight: Vr,
3142
3143
  animateRows: !1,
@@ -3169,21 +3170,21 @@ var yt = /* @__PURE__ */ function(e) {
3169
3170
  d,
3170
3171
  f,
3171
3172
  c
3172
- ]), { containerRef: x, startRow: S, endRow: C } = Nt(e.length, Vr), w = F(() => e.slice(S, C), [
3173
+ ]), { containerRef: x, startRow: S, endRow: C } = Mt(e.length, Vr), w = P(() => e.slice(S, C), [
3173
3174
  e,
3174
3175
  S,
3175
3176
  C
3176
3177
  ]);
3177
- return P(() => {
3178
+ return N(() => {
3178
3179
  _.current?.refreshCells({ force: !0 });
3179
- }, [n]), P(() => {
3180
+ }, [n]), N(() => {
3180
3181
  _.current?.redrawRows();
3181
3182
  }, [u]), /* @__PURE__ */ G("div", {
3182
3183
  style: g,
3183
- className: ze("w-full rounded-xl border", jr.listContainer, Z.listView),
3184
+ className: Be("w-full rounded-xl border", jr.listContainer, Q.listView),
3184
3185
  children: /* @__PURE__ */ K("div", {
3185
3186
  ref: x,
3186
- className: ze("rounded-xl [&_.ag-cell.ag-column-first]:ps-4 [&_.ag-cell.ag-column-last]:pe-4 [&_.ag-header-cell.ag-column-first]:ps-4 [&_.ag-header-cell.ag-column-last]:pe-4", jr.gridClip),
3187
+ className: Be("rounded-xl [&_.ag-cell.ag-column-first]:ps-4 [&_.ag-cell.ag-column-last]:pe-4 [&_.ag-header-cell.ag-column-first]:ps-4 [&_.ag-header-cell.ag-column-last]:pe-4", jr.gridClip),
3187
3188
  children: [
3188
3189
  S > 0 && /* @__PURE__ */ G("div", {
3189
3190
  style: { height: S * Vr },
@@ -3226,7 +3227,7 @@ var yt = /* @__PURE__ */ function(e) {
3226
3227
  let n = new Set(t);
3227
3228
  return n.has(e) ? n.delete(e) : n.add(e), n;
3228
3229
  }, Yr = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: a = "My", topicsLabel: o = "Topics", defaultLabel: s = "From", clearLabel: c = "Clear", applyLabel: l = "Apply", typography: u, colors: d }) => {
3229
- let f = (r ?? !1) || e.size > 0, [p, m] = L(!1), h = j({
3230
+ let f = (r ?? !1) || e.size > 0, [p, m] = I(!1), h = re({
3230
3231
  "--cat-filter-btn-bg": d?.buttonBackground,
3231
3232
  "--cat-filter-btn-border": d?.buttonBorder,
3232
3233
  "--cat-filter-btn-border-hover": d?.buttonBorderHover,
@@ -3242,19 +3243,19 @@ var yt = /* @__PURE__ */ function(e) {
3242
3243
  "--cat-filter-section-label": d?.sectionLabel,
3243
3244
  "--cat-filter-divider": d?.divider,
3244
3245
  "--cat-filter-footer-border": d?.footerBorder
3245
- }), g = F(() => n == null ? [] : [...n].sort(), [n]), _ = qr(e, n, r, a, s), [v, y] = L(() => new Set(e)), [b, x] = L(r ?? !1);
3246
- P(() => {
3246
+ }), g = P(() => n == null ? [] : [...n].sort(), [n]), _ = qr(e, n, r, a, s), [v, y] = I(() => new Set(e)), [b, x] = I(r ?? !1);
3247
+ N(() => {
3247
3248
  p && (y(new Set(e)), x(r ?? !1));
3248
3249
  }, [
3249
3250
  p,
3250
3251
  e,
3251
3252
  r
3252
3253
  ]);
3253
- let S = g.length + 1, [C, w] = L(-1), T = I([]), E = I(null), D = N((e) => {
3254
+ let S = g.length + 1, [C, w] = I(-1), T = F([]), E = F(null), D = M((e) => {
3254
3255
  let t = (e + S) % S;
3255
3256
  w(t), T.current[t]?.focus();
3256
3257
  }, [S]);
3257
- P(() => {
3258
+ N(() => {
3258
3259
  if (!p) {
3259
3260
  w(-1);
3260
3261
  return;
@@ -3273,7 +3274,7 @@ var yt = /* @__PURE__ */ function(e) {
3273
3274
  }, te = () => {
3274
3275
  t(/* @__PURE__ */ new Set()), i?.(!1), O(!1);
3275
3276
  };
3276
- return /* @__PURE__ */ G(he, {
3277
+ return /* @__PURE__ */ G(ge, {
3277
3278
  matchReferenceWidth: !1,
3278
3279
  placement: "bottom-start",
3279
3280
  open: p,
@@ -3287,16 +3288,16 @@ var yt = /* @__PURE__ */ function(e) {
3287
3288
  ...h,
3288
3289
  maxHeight: "calc(var(--fui-available-height, 9999px) - 8px)"
3289
3290
  },
3290
- className: M("flex min-w-[360px] flex-col rounded-xl p-[6px]", Kr.overlay),
3291
+ className: j("flex min-w-[360px] flex-col rounded-xl p-[6px]", Kr.overlay),
3291
3292
  onKeyDown: A,
3292
3293
  children: [
3293
- /* @__PURE__ */ G(Te, {
3294
+ /* @__PURE__ */ G(Ee, {
3294
3295
  role: "menuitemcheckbox",
3295
3296
  "aria-checked": b,
3296
- mark: Ee.Checkbox,
3297
+ mark: De.Checkbox,
3297
3298
  selected: b,
3298
3299
  label: a,
3299
- labelClassName: M(Kr.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3300
+ labelClassName: j(Kr.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3300
3301
  className: "shrink-0",
3301
3302
  tabIndex: C === 0 ? 0 : -1,
3302
3303
  ref: (e) => {
@@ -3307,22 +3308,22 @@ var yt = /* @__PURE__ */ function(e) {
3307
3308
  g.length > 0 && /* @__PURE__ */ K(W, { children: [
3308
3309
  /* @__PURE__ */ G("div", {
3309
3310
  role: "separator",
3310
- className: M("my-1 h-px", Kr.divider),
3311
+ className: j("my-1 h-px", Kr.divider),
3311
3312
  "aria-hidden": !0
3312
3313
  }),
3313
3314
  /* @__PURE__ */ G("div", {
3314
- className: M("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Kr.sectionLabel),
3315
+ className: j("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Kr.sectionLabel),
3315
3316
  "aria-hidden": !0,
3316
3317
  children: o
3317
3318
  }),
3318
3319
  /* @__PURE__ */ G("div", {
3319
- className: M(ne, "flex min-h-0 flex-col gap-1 overflow-y-auto"),
3320
+ className: j(ne, "flex min-h-0 flex-col gap-1 overflow-y-auto"),
3320
3321
  children: g.map((e, t) => {
3321
3322
  let n = v.has(e), r = t + 1;
3322
- return /* @__PURE__ */ G(Te, {
3323
+ return /* @__PURE__ */ G(Ee, {
3323
3324
  role: "menuitemcheckbox",
3324
3325
  "aria-checked": n,
3325
- mark: Ee.Checkbox,
3326
+ mark: De.Checkbox,
3326
3327
  selected: n,
3327
3328
  label: e,
3328
3329
  labelClassName: Kr.rowLabel,
@@ -3337,14 +3338,14 @@ var yt = /* @__PURE__ */ function(e) {
3337
3338
  })
3338
3339
  ] }),
3339
3340
  /* @__PURE__ */ K("div", {
3340
- className: M("mt-1 flex shrink-0 items-center px-1 py-3", Kr.footer),
3341
+ className: j("mt-1 flex shrink-0 items-center px-1 py-3", Kr.footer),
3341
3342
  onKeyDown: (e) => {
3342
3343
  (e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
3343
3344
  },
3344
- children: [/* @__PURE__ */ G(ye, {
3345
+ children: [/* @__PURE__ */ G(be, {
3345
3346
  label: c,
3346
3347
  onClick: te
3347
- }), /* @__PURE__ */ G(ke, {
3348
+ }), /* @__PURE__ */ G(Ae, {
3348
3349
  label: l,
3349
3350
  className: "ms-auto",
3350
3351
  onClick: ee
@@ -3352,55 +3353,55 @@ var yt = /* @__PURE__ */ function(e) {
3352
3353
  })
3353
3354
  ]
3354
3355
  }),
3355
- children: /* @__PURE__ */ G(ce, {
3356
+ children: /* @__PURE__ */ G(le, {
3356
3357
  ref: E,
3357
3358
  "aria-haspopup": "menu",
3358
3359
  "aria-expanded": p,
3359
3360
  onKeyDown: k,
3360
3361
  style: h,
3361
- iconBefore: /* @__PURE__ */ G(Xe, {
3362
- size: z.SM,
3363
- stroke: B,
3364
- className: M("shrink-0", Kr.filterBtnFunnel),
3362
+ iconBefore: /* @__PURE__ */ G(Ze, {
3363
+ size: R.SM,
3364
+ stroke: z,
3365
+ className: j("shrink-0", Kr.filterBtnFunnel),
3365
3366
  "aria-hidden": !0
3366
3367
  }),
3367
3368
  label: _,
3368
- textClassName: M(Kr.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3369
- iconAfter: /* @__PURE__ */ G(We, {
3369
+ textClassName: j(Kr.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3370
+ iconAfter: /* @__PURE__ */ G(Ge, {
3370
3371
  size: 14,
3371
- stroke: B,
3372
- className: M("shrink-0 transition-transform duration-150", Kr.filterBtnChevron, p && "rotate-180"),
3372
+ stroke: z,
3373
+ className: j("shrink-0 transition-transform duration-150", Kr.filterBtnChevron, p && "rotate-180"),
3373
3374
  "aria-hidden": !0
3374
3375
  }),
3375
- className: M("h-12 shrink-0 gap-[7px] whitespace-nowrap !rounded-lg px-[18px]", Kr.filterBtn, f && Kr.filterBtnActive, p && Kr.filterBtnOpen)
3376
+ className: j("h-12 shrink-0 gap-[7px] whitespace-nowrap !rounded-lg px-[18px]", Kr.filterBtn, f && Kr.filterBtnActive, p && Kr.filterBtnOpen)
3376
3377
  })
3377
3378
  });
3378
3379
  }, Xr = {
3379
3380
  section: "_section_mh952_1",
3380
3381
  divider: "_divider_mh952_5"
3381
3382
  }, Zr = ({ totalCount: e, viewMode: t, onViewModeChange: n, title: r = "Browse", browseHeaderRenderer: i, styles: a, query: o, onQueryChange: s, searchPlaceholder: c, gridViewLabel: l = "Grid view", listViewLabel: u = "List view", viewToggleLabel: d = "View mode", sortKey: f, sortOptions: p, onSortChange: m, sortLabel: h = "Sort", filters: g, onFiltersChange: _, filterValues: v, isMyAppsActive: y, onMyAppsChange: b, filterFromLabel: x, filterMyAppsLabel: S, filterTopicsLabel: C }) => {
3382
- let w = a?.typography?.titleClassName ?? "dial-body-semi-text", T = a?.typography?.countClassName ?? "dial-tiny-semi-text", E = F(() => [{
3383
- value: St.Grid,
3384
- icon: /* @__PURE__ */ G($e, {
3385
- size: z.SM,
3383
+ let w = a?.typography?.titleClassName ?? "dial-body-semi-text", T = a?.typography?.countClassName ?? "dial-tiny-semi-text", E = P(() => [{
3384
+ value: xt.Grid,
3385
+ icon: /* @__PURE__ */ G(et, {
3386
+ size: R.SM,
3386
3387
  "aria-hidden": !0,
3387
- stroke: B
3388
+ stroke: z
3388
3389
  }),
3389
3390
  "aria-label": l
3390
3391
  }, {
3391
- value: St.Cards,
3392
- icon: /* @__PURE__ */ G(et, {
3393
- size: z.SM,
3392
+ value: xt.Cards,
3393
+ icon: /* @__PURE__ */ G(tt, {
3394
+ size: R.SM,
3394
3395
  "aria-hidden": !0,
3395
- stroke: B
3396
+ stroke: z
3396
3397
  }),
3397
3398
  "aria-label": u
3398
3399
  }], [l, u]), O = (e) => {
3399
3400
  s(e ?? "");
3400
- }, k = p?.find((e) => e.value === f)?.label ?? h, A = F(() => (p ?? []).map((e) => ({
3401
+ }, k = p?.find((e) => e.value === f)?.label ?? h, A = P(() => (p ?? []).map((e) => ({
3401
3402
  key: e.value,
3402
3403
  label: e.label,
3403
- mark: Ee.Check,
3404
+ mark: De.Check,
3404
3405
  checked: e.value === f,
3405
3406
  onClick: () => m?.(e.value)
3406
3407
  })), [
@@ -3425,16 +3426,16 @@ var yt = /* @__PURE__ */ function(e) {
3425
3426
  }
3426
3427
  }), /* @__PURE__ */ K("div", {
3427
3428
  className: "ms-auto flex shrink-0 items-center gap-2",
3428
- children: [/* @__PURE__ */ G(Me, {
3429
+ children: [/* @__PURE__ */ G(V, {
3429
3430
  "aria-label": d,
3430
3431
  value: t,
3431
3432
  onChange: n,
3432
3433
  items: E
3433
- }), p != null && p.length > 0 && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", { className: M("h-4 w-px shrink-0", Xr.divider) }), /* @__PURE__ */ G(le, {
3434
+ }), p != null && p.length > 0 && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", { className: j("h-4 w-px shrink-0", Xr.divider) }), /* @__PURE__ */ G(ue, {
3434
3435
  items: A,
3435
3436
  label: k,
3436
- variant: ue.Primary,
3437
- appearance: R.Ghost
3437
+ variant: de.Primary,
3438
+ appearance: L.Ghost
3438
3439
  })] })]
3439
3440
  })]
3440
3441
  }), /* @__PURE__ */ K("div", {
@@ -3442,10 +3443,10 @@ var yt = /* @__PURE__ */ function(e) {
3442
3443
  children: [/* @__PURE__ */ G("div", {
3443
3444
  role: "search",
3444
3445
  className: "flex-1",
3445
- children: /* @__PURE__ */ G(H, {
3446
+ children: /* @__PURE__ */ G(Ne, {
3446
3447
  value: o,
3447
3448
  onChange: O,
3448
- size: ge.Large,
3449
+ size: _e.Large,
3449
3450
  wrapperClassName: "dial-kit-input-large",
3450
3451
  placeholder: c,
3451
3452
  "aria-label": c
@@ -3466,7 +3467,7 @@ var yt = /* @__PURE__ */ function(e) {
3466
3467
  }, Qr = ({ query: e, onQueryChange: t, searchPlaceholder: n = "Search models, tools, agents…", styles: r, filters: i, onFiltersChange: a, filterValues: o, isMyAppsActive: s, onMyAppsChange: c, filterFromLabel: l, filterMyAppsLabel: u, filterTopicsLabel: d, gridViewLabel: f, listViewLabel: p, viewToggleLabel: m, sortKey: h, sortOptions: g, onSortChange: _, sortLabel: v, ...y }) => {
3467
3468
  let b = { "--cat-browse-divider": r?.colors?.divider };
3468
3469
  return /* @__PURE__ */ G("section", {
3469
- className: M("flex-shrink-0 px-4", Xr.section, Z.toolbar),
3470
+ className: j("flex-shrink-0 px-4", Xr.section, Q.toolbar),
3470
3471
  style: b,
3471
3472
  children: /* @__PURE__ */ G(Zr, {
3472
3473
  styles: r,
@@ -3496,25 +3497,25 @@ var yt = /* @__PURE__ */ function(e) {
3496
3497
  heading: "_heading_1h83l_5",
3497
3498
  headingTitle: "_headingTitle_1h83l_9"
3498
3499
  }, ei = ({ label: e, options: t, onClick: n }) => {
3499
- let r = I(null);
3500
+ let r = F(null);
3500
3501
  return t?.length ? /* @__PURE__ */ G("div", {
3501
3502
  ref: r,
3502
- children: /* @__PURE__ */ G(le, {
3503
- appearance: R.Solid,
3503
+ children: /* @__PURE__ */ G(ue, {
3504
+ appearance: L.Solid,
3504
3505
  label: e,
3505
- variant: ue.Primary,
3506
+ variant: de.Primary,
3506
3507
  items: t
3507
3508
  })
3508
- }) : /* @__PURE__ */ G(ke, {
3509
+ }) : /* @__PURE__ */ G(Ae, {
3509
3510
  label: e,
3510
- iconBefore: /* @__PURE__ */ G(U, {
3511
- size: z.SM,
3512
- stroke: B
3511
+ iconBefore: /* @__PURE__ */ G(H, {
3512
+ size: R.SM,
3513
+ stroke: z
3513
3514
  }),
3514
3515
  onClick: n
3515
3516
  });
3516
- }, ti = 3, ni = 300, ri = ({ items: e, tabs: t, topicOptions: n, favorites: o, titles: c, browseHeaderRenderer: d, onToggleFavorite: p, isFavoriteVisible: m, columnVisibility: g, onUseInChat: v, isPrimaryActionVisible: y, onShare: b, isPublishVisible: x, isPublishPrimary: S, getPublishHistory: C, publishFolderItems: w, publishExpandedPaths: T, onPublishExpandedPathsChange: E, publishLoadingPaths: D, hasPublishWriteAccess: O, publishDefaultAuthor: k, onPublish: A, onPublishSuccess: ee, onPublishError: te, onCreatePublishFolder: ne, publishLabels: j, ruleSourceOptions: re, onFetchExistingRules: ie, shareOverlay: oe, isShareVisible: se, isSharePrimary: ce, onFetchDetails: R, renderCredentials: le, onEdit: ue, onDownload: de, isDownloadVisible: fe, isDownloadPrimary: pe, onLoadContentFile: z, onLoadContentFilePreview: B, renderContentFilePreview: me, onDelete: he, onUnshare: ge, isUnshareVisible: _e, onRevokeShare: ve, onFetchRecipientsCount: ye, isRevokeShareVisible: be, onUnpublish: xe, isUnpublishVisible: Se, onLogin: V, onLogout: Ce, onCreateClick: we, createOptions: Te, hideCreateButton: Ee = !1, hidePageTitle: De = !1, isReadonly: Oe = !1, initialViewMode: ke = St.Grid, isFullWidth: Ae = !1, selectedItemId: je, onCardClick: H, isLoading: Me, styles: Ne, detailsTexts: Pe, detailsLimitsFooterNote: Le, initialDetailsItemId: Re, sortKey: ze, onSortChange: Be, filterTopics: Ve, onFilterTopicsChange: He, isMyAppsActive: Ue, onMyAppsActiveChange: We, activeTab: Ge, onActiveTabChange: Ke, renderEmptyState: qe }) => {
3517
- let { typography: Je } = Ne ?? {}, Ye = Et(Ne), Xe = c?.pageTitle ?? "Catalog", Ze = c?.createLabel ?? "Create", Qe = c?.favoritesTitle ?? "Your favorites", $e = c?.browseTitle ?? "Browse", et = c?.searchPlaceholder ?? "Search models, tools, agents…", tt = c?.noResultsTitle ?? ((e) => `No results for "${e}"`), nt = c?.featuredLabel ?? "Featured", rt = c?.gridViewLabel ?? "Grid view", it = c?.listViewLabel ?? "List view", U = c?.viewToggleLabel ?? "View mode", at = c?.ariaLabel ?? "Catalog", ot = c?.sortLabel ?? "Sort", st = [
3517
+ }, ti = 3, ni = 300, ri = ({ items: e, tabs: t, topicOptions: n, favorites: o, titles: c, browseHeaderRenderer: d, onToggleFavorite: p, isFavoriteVisible: m, columnVisibility: g, onUseInChat: v, isPrimaryActionVisible: y, onShare: b, isPublishVisible: x, isPublishPrimary: S, getPublishHistory: C, publishFolderItems: w, publishExpandedPaths: T, onPublishExpandedPathsChange: E, publishLoadingPaths: D, hasPublishWriteAccess: O, publishDefaultAuthor: k, onPublish: A, onPublishSuccess: ee, onPublishError: te, onCreatePublishFolder: ne, publishLabels: re, ruleSourceOptions: ie, onFetchExistingRules: ae, shareOverlay: se, isShareVisible: ce, isSharePrimary: le, onFetchDetails: L, renderCredentials: ue, onEdit: de, onDownload: fe, isDownloadVisible: pe, isDownloadPrimary: me, onLoadContentFile: R, onLoadContentFilePreview: z, renderContentFilePreview: he, renderContentFileTree: ge, onDelete: _e, onUnshare: ve, isUnshareVisible: ye, onRevokeShare: be, onFetchRecipientsCount: xe, isRevokeShareVisible: Se, onUnpublish: Ce, isUnpublishVisible: we, onLogin: B, onLogout: Te, onCreateClick: Ee, createOptions: De, hideCreateButton: Oe = !1, hidePageTitle: ke = !1, isReadonly: Ae = !1, initialViewMode: je = xt.Grid, isFullWidth: Me = !1, selectedItemId: Ne, onCardClick: V, isLoading: Pe, styles: Fe, detailsTexts: Re, detailsLimitsFooterNote: ze, initialDetailsItemId: Be, sortKey: Ve, onSortChange: He, filterTopics: Ue, onFilterTopicsChange: We, isMyAppsActive: Ge, onMyAppsActiveChange: Ke, activeTab: qe, onActiveTabChange: Je, renderEmptyState: Ye }) => {
3518
+ let { typography: Xe } = Fe ?? {}, Ze = Tt(Fe), Qe = c?.pageTitle ?? "Catalog", $e = c?.createLabel ?? "Create", et = c?.favoritesTitle ?? "Your favorites", tt = c?.browseTitle ?? "Browse", nt = c?.searchPlaceholder ?? "Search models, tools, agents…", rt = c?.noResultsTitle ?? ((e) => `No results for "${e}"`), it = c?.featuredLabel ?? "Featured", at = c?.gridViewLabel ?? "Grid view", H = c?.listViewLabel ?? "List view", ot = c?.viewToggleLabel ?? "View mode", st = c?.ariaLabel ?? "Catalog", ct = c?.sortLabel ?? "Sort", lt = [
3518
3519
  {
3519
3520
  value: s.RecentlyUpdated,
3520
3521
  label: c?.sortRecentlyUpdatedLabel ?? "Recently Updated"
@@ -3527,95 +3528,95 @@ var yt = /* @__PURE__ */ function(e) {
3527
3528
  value: s.NameAZ,
3528
3529
  label: c?.sortNameAZLabel ?? "Name A-Z"
3529
3530
  }
3530
- ], [ct, lt] = L(""), [ut, dt] = L(ke), [ft, pt] = L(ke === St.Cards ? "shown" : "unmounted"), [mt, ht] = L(s.RecentlyUpdated), [gt, _t] = L(/* @__PURE__ */ new Set()), [vt, yt] = L(!1), q = ze ?? mt, J = Ve ?? gt, Y = Ue ?? vt, bt = N((e) => {
3531
+ ], [U, ut] = I(""), [dt, ft] = I(je), [pt, mt] = I(je === xt.Cards ? "shown" : "unmounted"), [ht, gt] = I(s.RecentlyUpdated), [_t, vt] = I(/* @__PURE__ */ new Set()), [q, J] = I(!1), yt = Ve ?? ht, Y = Ue ?? _t, bt = Ge ?? q, X = M((e) => {
3531
3532
  let t = e;
3532
- ht(t), Be?.(t);
3533
- }, [Be]), xt = N((e) => {
3534
- _t(e), He?.(e);
3535
- }, [He]), Ct = N((e) => {
3536
- yt(e), We?.(e);
3537
- }, [We]), X = F(() => e.filter((e) => !e.isHidden), [e]), wt = F(() => n ?? u(X), [n, X]), Tt = F(() => t ?? r(X, c?.tabLabels), [
3533
+ gt(t), He?.(t);
3534
+ }, [He]), St = M((e) => {
3535
+ vt(e), We?.(e);
3536
+ }, [We]), Z = M((e) => {
3537
+ J(e), Ke?.(e);
3538
+ }, [Ke]), Ct = P(() => e.filter((e) => !e.isHidden), [e]), wt = P(() => n ?? u(Ct), [n, Ct]), Et = P(() => t ?? r(Ct, c?.tabLabels), [
3538
3539
  t,
3539
- X,
3540
+ Ct,
3540
3541
  c?.tabLabels
3541
- ]), Dt = Tt[0]?.id ?? "", [Ot, kt] = L(Dt);
3542
- P(() => {
3542
+ ]), Dt = Et[0]?.id ?? "", [Ot, kt] = I(Dt);
3543
+ N(() => {
3543
3544
  kt((e) => e || Dt);
3544
3545
  }, [Dt]);
3545
- let At = Ge ?? Ot, jt = N((e) => {
3546
- kt(e), Ke?.(e);
3547
- }, [Ke]), [Mt, Nt] = L(o.length > 0);
3548
- P(() => {
3546
+ let At = qe ?? Ot, jt = M((e) => {
3547
+ kt(e), Je?.(e);
3548
+ }, [Je]), [Mt, Nt] = I(o.length > 0);
3549
+ N(() => {
3549
3550
  o.length > 0 && !Mt && Nt(!0);
3550
3551
  }, [o.length, Mt]);
3551
- let Pt = N(() => {
3552
+ let Pt = M(() => {
3552
3553
  Nt(!1);
3553
- }, []), Ft = Mt && o.length === 0, [Q, It] = L(null), [Lt, Rt] = L(!1), [zt, Bt] = L(void 0), [Vt, Ht] = L(!1), Ut = I(null), Wt = I(0), Gt = N(async (e) => {
3554
- Ut.current = e.id;
3555
- let t = ++Wt.current;
3556
- if (R) {
3557
- Ht(!0);
3554
+ }, []), Ft = Mt && o.length === 0, [It, Lt] = I(null), [Rt, zt] = I(!1), [Bt, Vt] = I(void 0), [Ht, Ut] = I(!1), Wt = F(null), Gt = F(0), Kt = M(async (e) => {
3555
+ Wt.current = e.id;
3556
+ let t = ++Gt.current;
3557
+ if (L) {
3558
+ Ut(!0);
3558
3559
  try {
3559
- let n = await R(e);
3560
- return Wt.current === t && Bt(n), n;
3560
+ let n = await L(e);
3561
+ return Gt.current === t && Vt(n), n;
3561
3562
  } finally {
3562
- Wt.current === t && Ht(!1);
3563
+ Gt.current === t && Ut(!1);
3563
3564
  }
3564
3565
  }
3565
- }, [R]), Kt = N(async (e) => (It(e), Bt(void 0), Gt(e)), [Gt]), qt = N(async (e, t) => {
3566
+ }, [L]), qt = M(async (e) => (Lt(e), Vt(void 0), Kt(e)), [Kt]), Jt = M(async (e, t) => {
3566
3567
  for (let n = 0; n < ti; n++) {
3567
- if (Ut.current !== e.id || t(await Gt(e))) return;
3568
+ if (Wt.current !== e.id || t(await Kt(e))) return;
3568
3569
  n < ti - 1 && await h(ni);
3569
3570
  }
3570
- }, [Gt]), Jt = I(null);
3571
- P(() => {
3572
- if (!Re) {
3573
- Jt.current = null;
3571
+ }, [Kt]), Yt = F(null);
3572
+ N(() => {
3573
+ if (!Be) {
3574
+ Yt.current = null;
3574
3575
  return;
3575
3576
  }
3576
- if (Jt.current === Re) return;
3577
- let t = e.find((e) => e.id === Re);
3578
- t && (Jt.current = Re, Kt(t));
3577
+ if (Yt.current === Be) return;
3578
+ let t = e.find((e) => e.id === Be);
3579
+ t && (Yt.current = Be, qt(t));
3579
3580
  }, [
3580
- Re,
3581
+ Be,
3581
3582
  e,
3582
- Kt
3583
- ]), P(() => {
3584
- if (Q == null) return;
3585
- let t = e.find((e) => e.id === Q.id);
3586
- t && t !== Q && It(t);
3587
- }, [e, Q]);
3588
- let Yt = N(async (e, t) => {
3589
- await V?.(e, t), R && await qt(e, (e) => f(e?.credentials, t.level));
3590
- }, [
3591
- V,
3592
- R,
3593
3583
  qt
3594
- ]), Zt = N(async (e, t) => {
3595
- await Ce?.(e, t), R && await qt(e, (e) => !f(e?.credentials, t.level));
3584
+ ]), N(() => {
3585
+ if (It == null) return;
3586
+ let t = e.find((e) => e.id === It.id);
3587
+ t && t !== It && Lt(t);
3588
+ }, [e, It]);
3589
+ let Zt = M(async (e, t) => {
3590
+ await B?.(e, t), L && await Jt(e, (e) => f(e?.credentials, t.level));
3596
3591
  }, [
3597
- Ce,
3598
- R,
3599
- qt
3600
- ]), Qt = N(() => {
3601
- Rt(!1), Ut.current = null, Wt.current += 1, setTimeout(() => {
3602
- It(null), Bt(void 0), Ht(!1);
3592
+ B,
3593
+ L,
3594
+ Jt
3595
+ ]), Qt = M(async (e, t) => {
3596
+ await Te?.(e, t), L && await Jt(e, (e) => !f(e?.credentials, t.level));
3597
+ }, [
3598
+ Te,
3599
+ L,
3600
+ Jt
3601
+ ]), $t = M(() => {
3602
+ zt(!1), Wt.current = null, Gt.current += 1, setTimeout(() => {
3603
+ Lt(null), Vt(void 0), Ut(!1);
3603
3604
  }, 300);
3604
- }, []), $t = F(() => {
3605
- if (Q == null) return null;
3606
- if (zt == null) return Q;
3607
- let { credentials: e, ...t } = zt;
3605
+ }, []), en = P(() => {
3606
+ if (It == null) return null;
3607
+ if (Bt == null) return It;
3608
+ let { credentials: e, ...t } = Bt;
3608
3609
  return {
3609
- ...Q,
3610
+ ...It,
3610
3611
  details: t,
3611
- credentials: e ?? Q.credentials
3612
+ credentials: e ?? It.credentials
3612
3613
  };
3613
- }, [Q, zt]), en = F(() => l(X, q), [X, q]), tn = F(() => a(en, ct), [en, ct]), nn = F(() => J.size > 0 ? i(tn, J) : tn, [tn, J]), rn = F(() => Y ? _(nn) : nn, [nn, Y]), an = F(() => At ? rn.filter((e) => e.type === At) : rn, [rn, At]);
3614
- P(() => {
3615
- if (ft !== "unmounted" || Me || an.length === 0) return;
3614
+ }, [It, Bt]), tn = P(() => l(Ct, yt), [Ct, yt]), nn = P(() => a(tn, U), [tn, U]), rn = P(() => Y.size > 0 ? i(nn, Y) : nn, [nn, Y]), an = P(() => bt ? _(rn) : rn, [rn, bt]), on = P(() => At ? an.filter((e) => e.type === At) : an, [an, At]);
3615
+ N(() => {
3616
+ if (pt !== "unmounted" || Pe || on.length === 0) return;
3616
3617
  let e = () => {
3617
- ae(() => {
3618
- pt((e) => e === "unmounted" ? "prepared" : e);
3618
+ oe(() => {
3619
+ mt((e) => e === "unmounted" ? "prepared" : e);
3619
3620
  });
3620
3621
  };
3621
3622
  if (typeof window.requestIdleCallback == "function") {
@@ -3625,159 +3626,159 @@ var yt = /* @__PURE__ */ function(e) {
3625
3626
  let t = window.setTimeout(e, 200);
3626
3627
  return () => window.clearTimeout(t);
3627
3628
  }, [
3628
- ft,
3629
- Me,
3630
- an.length
3629
+ pt,
3630
+ Pe,
3631
+ on.length
3631
3632
  ]);
3632
- let on = Q != null && o.some((e) => e.id === Q.id);
3633
- P(() => {
3634
- if (Q == null) return;
3635
- let e = requestAnimationFrame(() => Rt(!0));
3633
+ let sn = It != null && o.some((e) => e.id === It.id);
3634
+ N(() => {
3635
+ if (It == null) return;
3636
+ let e = requestAnimationFrame(() => zt(!0));
3636
3637
  return () => cancelAnimationFrame(e);
3637
- }, [Q]);
3638
- let sn = N((e) => {
3639
- e === St.Cards && pt("shown"), dt(e);
3640
- }, []), cn = !Ee && !Oe, ln = Mt && !Oe, un = ct ? tt(ct) : "No items", dn = F(() => ({
3641
- noResultsTitle: un,
3642
- featuredLabel: nt,
3643
- credentialsBadgeLoggedOutLabel: Pe?.credentialsBadgeLoggedOutLabel
3638
+ }, [It]);
3639
+ let cn = M((e) => {
3640
+ e === xt.Cards && mt("shown"), ft(e);
3641
+ }, []), ln = !Oe && !Ae, un = Mt && !Ae, dn = U ? rt(U) : "No items", fn = P(() => ({
3642
+ noResultsTitle: dn,
3643
+ featuredLabel: it,
3644
+ credentialsBadgeLoggedOutLabel: Re?.credentialsBadgeLoggedOutLabel
3644
3645
  }), [
3645
- un,
3646
- nt,
3647
- Pe?.credentialsBadgeLoggedOutLabel
3648
- ]), fn = !Me && an.length === 0 ? qe?.({
3649
- query: ct,
3646
+ dn,
3647
+ it,
3648
+ Re?.credentialsBadgeLoggedOutLabel
3649
+ ]), pn = !Pe && on.length === 0 ? Ye?.({
3650
+ query: U,
3650
3651
  activeTab: At,
3651
- hasTopicFilters: J.size > 0,
3652
- isMyAppsActive: Y
3652
+ hasTopicFilters: Y.size > 0,
3653
+ isMyAppsActive: bt
3653
3654
  }) : void 0;
3654
- return Me ? /* @__PURE__ */ G("div", {
3655
+ return Pe ? /* @__PURE__ */ G("div", {
3655
3656
  className: "flex size-full min-h-0 flex-1 items-center justify-center",
3656
- children: /* @__PURE__ */ G(Fe, {})
3657
+ children: /* @__PURE__ */ G(Ie, {})
3657
3658
  }) : /* @__PURE__ */ K("section", {
3658
- "aria-label": at,
3659
- className: M("flex size-full min-h-0 flex-1 flex-col", $r.root, Z.root),
3660
- style: Ye,
3659
+ "aria-label": st,
3660
+ className: j("flex size-full min-h-0 flex-1 flex-col", $r.root, Q.root),
3661
+ style: Ze,
3661
3662
  children: [
3662
- (!De || cn) && /* @__PURE__ */ G("div", {
3663
- className: M("shrink-0", $r.heading),
3663
+ (!ke || ln) && /* @__PURE__ */ G("div", {
3664
+ className: j("shrink-0", $r.heading),
3664
3665
  children: /* @__PURE__ */ K("div", {
3665
3666
  className: "flex h-[64px] w-full items-center justify-between px-8",
3666
- children: [!De && /* @__PURE__ */ G("h1", {
3667
- className: M(Je?.pageHeadingFontClassName ?? "dial-display2-text", $r.headingTitle),
3668
- children: Xe
3669
- }), cn && /* @__PURE__ */ G(ei, {
3670
- label: Ze,
3671
- options: Te,
3672
- onClick: we
3667
+ children: [!ke && /* @__PURE__ */ G("h1", {
3668
+ className: j(Xe?.pageHeadingFontClassName ?? "dial-display2-text", $r.headingTitle),
3669
+ children: Qe
3670
+ }), ln && /* @__PURE__ */ G(ei, {
3671
+ label: $e,
3672
+ options: De,
3673
+ onClick: Ee
3673
3674
  })]
3674
3675
  })
3675
3676
  }),
3676
3677
  /* @__PURE__ */ K("div", {
3677
3678
  className: "flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto overflow-x-hidden",
3678
3679
  children: [
3679
- ln && /* @__PURE__ */ G("div", {
3680
+ un && /* @__PURE__ */ G("div", {
3680
3681
  className: "w-full px-8",
3681
3682
  children: /* @__PURE__ */ G(Ar, {
3682
3683
  items: o,
3683
3684
  totalCount: o.length,
3684
- title: Qe,
3685
+ title: et,
3685
3686
  onToggleFavorite: p,
3686
3687
  isFavoriteVisible: m,
3687
- onItemClick: H ?? Kt,
3688
+ onItemClick: V ?? qt,
3688
3689
  isLeaving: Ft,
3689
3690
  onExitComplete: Pt,
3690
- selectedItemId: je,
3691
- credentialsBadgeLoggedOutLabel: Pe?.credentialsBadgeLoggedOutLabel
3691
+ selectedItemId: Ne,
3692
+ credentialsBadgeLoggedOutLabel: Re?.credentialsBadgeLoggedOutLabel
3692
3693
  })
3693
3694
  }),
3694
3695
  /* @__PURE__ */ G("div", {
3695
3696
  className: "w-full px-4 pt-6",
3696
3697
  children: /* @__PURE__ */ G(Qr, {
3697
- totalCount: rn.length,
3698
- viewMode: ut,
3699
- onViewModeChange: sn,
3700
- sortKey: q,
3701
- query: ct,
3702
- onQueryChange: lt,
3703
- title: $e,
3698
+ totalCount: an.length,
3699
+ viewMode: dt,
3700
+ onViewModeChange: cn,
3701
+ sortKey: yt,
3702
+ query: U,
3703
+ onQueryChange: ut,
3704
+ title: tt,
3704
3705
  browseHeaderRenderer: d,
3705
- searchPlaceholder: et,
3706
- gridViewLabel: rt,
3707
- listViewLabel: it,
3708
- viewToggleLabel: U,
3709
- sortOptions: st,
3710
- onSortChange: bt,
3711
- sortLabel: ot,
3712
- filters: J,
3713
- onFiltersChange: xt,
3706
+ searchPlaceholder: nt,
3707
+ gridViewLabel: at,
3708
+ listViewLabel: H,
3709
+ viewToggleLabel: ot,
3710
+ sortOptions: lt,
3711
+ onSortChange: X,
3712
+ sortLabel: ct,
3713
+ filters: Y,
3714
+ onFiltersChange: St,
3714
3715
  filterValues: wt,
3715
- isMyAppsActive: Y,
3716
- onMyAppsChange: Ct,
3716
+ isMyAppsActive: bt,
3717
+ onMyAppsChange: Z,
3717
3718
  filterFromLabel: c?.filterFromLabel,
3718
3719
  filterMyAppsLabel: c?.filterMyAppsLabel,
3719
3720
  filterTopicsLabel: c?.filterTopicsLabel
3720
3721
  })
3721
3722
  }),
3722
- Tt.length > 1 && /* @__PURE__ */ G("div", {
3723
+ Et.length > 1 && /* @__PURE__ */ G("div", {
3723
3724
  className: "min-w-0 shrink-0 overflow-x-auto px-8",
3724
- children: /* @__PURE__ */ G(Ie, {
3725
- tabs: Tt.map((e) => ({
3725
+ children: /* @__PURE__ */ G(Le, {
3726
+ tabs: Et.map((e) => ({
3726
3727
  id: e.id,
3727
3728
  label: typeof e.label == "string" ? e.label : String(e.label),
3728
- count: rn.filter((t) => t.type === e.id).length
3729
+ count: an.filter((t) => t.type === e.id).length
3729
3730
  })),
3730
3731
  activeTabId: At,
3731
3732
  onTabChange: jt
3732
3733
  })
3733
3734
  }),
3734
3735
  /* @__PURE__ */ G("div", {
3735
- className: M(an.length > 0 ? ["min-h-full w-full px-8 py-6", !Ae && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", an.length === 0 && "px-8 py-6"),
3736
- children: fn ?? /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", {
3737
- inert: ut !== St.Grid,
3738
- className: M(an.length > 0 ? "pb-8" : "size-full flex-1", ut !== St.Grid && "hidden"),
3736
+ className: j(on.length > 0 ? ["min-h-full w-full px-8 py-6", !Me && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", on.length === 0 && "px-8 py-6"),
3737
+ children: pn ?? /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", {
3738
+ inert: dt !== xt.Grid,
3739
+ className: j(on.length > 0 ? "pb-8" : "size-full flex-1", dt !== xt.Grid && "hidden"),
3739
3740
  children: /* @__PURE__ */ G(Xt, {
3740
- items: an,
3741
- query: ct,
3741
+ items: on,
3742
+ query: U,
3742
3743
  onToggleFavorite: p,
3743
3744
  isFavoriteVisible: m,
3744
- onItemClick: H ?? Kt,
3745
- titles: dn,
3746
- selectedItemId: je,
3747
- isReadonly: Oe,
3748
- isFullWidth: Ae,
3749
- featuredChipStyle: Ne?.colors?.featuredChipStyle
3745
+ onItemClick: V ?? qt,
3746
+ titles: fn,
3747
+ selectedItemId: Ne,
3748
+ isReadonly: Ae,
3749
+ isFullWidth: Me,
3750
+ featuredChipStyle: Fe?.colors?.featuredChipStyle
3750
3751
  })
3751
- }), ft !== "unmounted" && /* @__PURE__ */ G("div", {
3752
- inert: ut !== St.Cards,
3753
- className: M("pb-8", ut !== St.Cards && (ft === "prepared" ? "invisible h-0 overflow-hidden p-0" : "hidden"), an.length === 0 && ut === St.Cards && "h-full"),
3752
+ }), pt !== "unmounted" && /* @__PURE__ */ G("div", {
3753
+ inert: dt !== xt.Cards,
3754
+ className: j("pb-8", dt !== xt.Cards && (pt === "prepared" ? "invisible h-0 overflow-hidden p-0" : "hidden"), on.length === 0 && dt === xt.Cards && "h-full"),
3754
3755
  children: /* @__PURE__ */ G(Wr, {
3755
3756
  type: At,
3756
- items: an,
3757
- query: ct,
3758
- ariaLabel: at,
3759
- emptyStateTitle: un,
3757
+ items: on,
3758
+ query: U,
3759
+ ariaLabel: st,
3760
+ emptyStateTitle: dn,
3760
3761
  onToggleFavorite: p,
3761
3762
  isFavoriteVisible: m,
3762
3763
  columnVisibility: g,
3763
- onItemClick: H ?? Kt,
3764
+ onItemClick: V ?? qt,
3764
3765
  stickyHeaderTop: 0,
3765
- selectedItemId: je,
3766
- credentialsBadgeLoggedOutLabel: Pe?.credentialsBadgeLoggedOutLabel,
3767
- isReadonly: Oe
3766
+ selectedItemId: Ne,
3767
+ credentialsBadgeLoggedOutLabel: Re?.credentialsBadgeLoggedOutLabel,
3768
+ isReadonly: Ae
3768
3769
  })
3769
3770
  })] })
3770
3771
  })
3771
3772
  ]
3772
3773
  }),
3773
- $t != null && /* @__PURE__ */ G(Tr, {
3774
- renderCredentials: le,
3775
- item: $t,
3776
- isOpen: Lt,
3777
- isStarred: on,
3778
- isDetailsLoading: Vt,
3779
- isReadonly: Oe,
3780
- onClose: Qt,
3774
+ en != null && /* @__PURE__ */ G(Tr, {
3775
+ renderCredentials: ue,
3776
+ item: en,
3777
+ isOpen: Rt,
3778
+ isStarred: sn,
3779
+ isDetailsLoading: Ht,
3780
+ isReadonly: Ae,
3781
+ onClose: $t,
3781
3782
  onToggleFavorite: p,
3782
3783
  isFavoriteVisible: m,
3783
3784
  onUseInChat: v,
@@ -3796,39 +3797,40 @@ var yt = /* @__PURE__ */ function(e) {
3796
3797
  onPublishSuccess: ee,
3797
3798
  onPublishError: te,
3798
3799
  onCreatePublishFolder: ne,
3799
- publishLabels: j,
3800
- ruleSourceOptions: re,
3801
- onFetchExistingRules: ie,
3802
- shareOverlay: oe,
3803
- isShareVisible: se,
3804
- isSharePrimary: ce,
3805
- onEdit: ue,
3806
- onDownload: de,
3807
- isDownloadVisible: fe,
3808
- isDownloadPrimary: pe,
3809
- onLoadContentFile: z,
3810
- onLoadContentFilePreview: B,
3811
- renderContentFilePreview: me,
3812
- onDelete: he,
3813
- onUnshare: ge,
3814
- isUnshareVisible: _e,
3815
- onRevokeShare: ve,
3816
- onFetchRecipientsCount: ye,
3817
- isRevokeShareVisible: be,
3818
- onUnpublish: xe,
3819
- isUnpublishVisible: Se,
3820
- onLogin: Yt,
3821
- onLogout: Zt,
3822
- texts: Pe,
3823
- limitsFooterNote: Le,
3824
- styles: { colors: { featuredChipStyle: Ne?.colors?.featuredChipStyle } }
3800
+ publishLabels: re,
3801
+ ruleSourceOptions: ie,
3802
+ onFetchExistingRules: ae,
3803
+ shareOverlay: se,
3804
+ isShareVisible: ce,
3805
+ isSharePrimary: le,
3806
+ onEdit: de,
3807
+ onDownload: fe,
3808
+ isDownloadVisible: pe,
3809
+ isDownloadPrimary: me,
3810
+ onLoadContentFile: R,
3811
+ onLoadContentFilePreview: z,
3812
+ renderContentFilePreview: he,
3813
+ renderContentFileTree: ge,
3814
+ onDelete: _e,
3815
+ onUnshare: ve,
3816
+ isUnshareVisible: ye,
3817
+ onRevokeShare: be,
3818
+ onFetchRecipientsCount: xe,
3819
+ isRevokeShareVisible: Se,
3820
+ onUnpublish: Ce,
3821
+ isUnpublishVisible: we,
3822
+ onLogin: Zt,
3823
+ onLogout: Qt,
3824
+ texts: Re,
3825
+ limitsFooterNote: ze,
3826
+ styles: { colors: { featuredChipStyle: Fe?.colors?.featuredChipStyle } }
3825
3827
  })
3826
3828
  ]
3827
3829
  });
3828
3830
  }, ii = ({ selectedId: e, records: t, selectedLabel: n, placeholder: r, labels: i, onSelect: a, onBrowse: o, extraOptions: s = [], isLoading: c = !1, error: l, isDisabled: u = !1, isInvalid: d = !1, labelledById: f, ariaHasPopup: p = "listbox", className: m, panelClassName: h, iconAfter: g, renderPanel: _, open: v, onOpenChange: y, renderOverlay: b }) => {
3829
- let [x, S] = L(!1), C = v ?? x, w = (e) => {
3831
+ let [x, S] = I(!1), C = v ?? x, w = (e) => {
3830
3832
  e && u || (v === void 0 && S(e), y?.(e));
3831
- }, [T, E] = L(""), D = I(null), O = F(() => [...s, ...t].filter((e) => e.label.toLocaleLowerCase().includes(T.toLocaleLowerCase())), [
3833
+ }, [T, E] = I(""), D = F(null), O = P(() => [...s, ...t].filter((e) => e.label.toLocaleLowerCase().includes(T.toLocaleLowerCase())), [
3832
3834
  s,
3833
3835
  t,
3834
3836
  T
@@ -3837,9 +3839,9 @@ var yt = /* @__PURE__ */ function(e) {
3837
3839
  }, A = (e) => {
3838
3840
  a(e), k();
3839
3841
  }, ee = _ ? _(k) : /* @__PURE__ */ K("div", {
3840
- className: M("w-full min-w-0 max-w-full p-3", h),
3842
+ className: j("w-full min-w-0 max-w-full p-3", h),
3841
3843
  children: [
3842
- /* @__PURE__ */ G(H, {
3844
+ /* @__PURE__ */ G(Ne, {
3843
3845
  value: T,
3844
3846
  onChange: (e) => E(e ?? ""),
3845
3847
  placeholder: i.searchPlaceholder,
@@ -3857,7 +3859,7 @@ var yt = /* @__PURE__ */ function(e) {
3857
3859
  }) : O.length === 0 ? /* @__PURE__ */ G("span", {
3858
3860
  role: "status",
3859
3861
  children: i.emptyLabel
3860
- }) : O.map((t) => /* @__PURE__ */ G(Te, {
3862
+ }) : O.map((t) => /* @__PURE__ */ G(Ee, {
3861
3863
  role: "option",
3862
3864
  "aria-selected": t.id === e,
3863
3865
  selected: t.id === e,
@@ -3868,7 +3870,7 @@ var yt = /* @__PURE__ */ function(e) {
3868
3870
  children: t.icon
3869
3871
  }), /* @__PURE__ */ K("span", {
3870
3872
  className: "flex min-w-0 flex-col",
3871
- children: [/* @__PURE__ */ G(xe, {
3873
+ children: [/* @__PURE__ */ G(Se, {
3872
3874
  text: t.label,
3873
3875
  query: T,
3874
3876
  maxLines: 2
@@ -3879,7 +3881,7 @@ var yt = /* @__PURE__ */ function(e) {
3879
3881
  className: "h-auto max-w-full py-2"
3880
3882
  }, t.id))
3881
3883
  }),
3882
- o && /* @__PURE__ */ G(ye, {
3884
+ o && /* @__PURE__ */ G(be, {
3883
3885
  className: "mt-2 min-h-11 max-w-full",
3884
3886
  label: i.browseLabel ?? "",
3885
3887
  onClick: () => {
@@ -3887,7 +3889,7 @@ var yt = /* @__PURE__ */ function(e) {
3887
3889
  }
3888
3890
  })
3889
3891
  ]
3890
- }), te = /* @__PURE__ */ G(Ce, {
3892
+ }), te = /* @__PURE__ */ G(B, {
3891
3893
  onFocus: (e) => {
3892
3894
  D.current = e.currentTarget;
3893
3895
  },
@@ -3908,7 +3910,7 @@ var yt = /* @__PURE__ */ function(e) {
3908
3910
  b && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), w(!C));
3909
3911
  },
3910
3912
  containerClassName: "w-full min-w-0",
3911
- wrapperClassName: M("cursor-pointer", m),
3913
+ wrapperClassName: j("cursor-pointer", m),
3912
3914
  className: "cursor-pointer",
3913
3915
  iconAfter: g
3914
3916
  });
@@ -3916,7 +3918,7 @@ var yt = /* @__PURE__ */ function(e) {
3916
3918
  className: "w-full min-w-0",
3917
3919
  onClick: () => w(!C),
3918
3920
  children: te
3919
- }), b(ee, C, k)] }) : /* @__PURE__ */ G(he, {
3921
+ }), b(ee, C, k)] }) : /* @__PURE__ */ G(ge, {
3920
3922
  open: C,
3921
3923
  onOpenChange: w,
3922
3924
  disabled: u,
@@ -3926,14 +3928,14 @@ var yt = /* @__PURE__ */ function(e) {
3926
3928
  children: te
3927
3929
  });
3928
3930
  }, ai = ({ service: e, texts: t, onLogin: n, onLogout: r }) => {
3929
- let [i, a] = L(!1), [s, c] = L(!1), [l, u] = L(!1), [d, f] = L(), p = e.authenticationType === y.ApiKey, m = p ? t?.deleteActionLabel ?? "Delete" : t?.logoutActionLabel ?? "Log out", h = p ? t?.deleteApiKeyConfirmMessage?.(b.User) ?? "Are you sure you want to delete your personal API key?" : t?.logoutConfirmMessage ?? "Are you sure you want to log out?";
3931
+ let [i, a] = I(!1), [s, c] = I(!1), [l, u] = I(!1), [d, f] = I(), p = e.authenticationType === y.ApiKey, m = p ? t?.deleteActionLabel ?? "Delete" : t?.logoutActionLabel ?? "Log out", h = p ? t?.deleteApiKeyConfirmMessage?.(b.User) ?? "Are you sure you want to delete your personal API key?" : t?.logoutConfirmMessage ?? "Are you sure you want to log out?";
3930
3932
  return /* @__PURE__ */ K(Dn, {
3931
3933
  label: e.name,
3932
3934
  description: e.description,
3933
3935
  icon: /* @__PURE__ */ G(ut, {
3934
- size: z.SM,
3936
+ size: R.SM,
3935
3937
  "aria-hidden": !0,
3936
- stroke: B
3938
+ stroke: z
3937
3939
  }),
3938
3940
  status: e.status,
3939
3941
  isActive: e.status === o.SignedIn,
@@ -3953,7 +3955,7 @@ var yt = /* @__PURE__ */ function(e) {
3953
3955
  keyCardTitleClassName: "dial-tiny-semi-text",
3954
3956
  keyCardDescriptionClassName: "dial-tiny-text",
3955
3957
  deleteActionClassName: En.errorText,
3956
- renderLoginOptions: e.canConsentToOfflineUsage ? (e) => /* @__PURE__ */ G(fe, {
3958
+ renderLoginOptions: e.canConsentToOfflineUsage ? (e) => /* @__PURE__ */ G(pe, {
3957
3959
  isSelected: i,
3958
3960
  onChange: a,
3959
3961
  disabled: e,
@@ -3962,14 +3964,14 @@ var yt = /* @__PURE__ */ function(e) {
3962
3964
  }) : void 0,
3963
3965
  children: [
3964
3966
  e.hint && /* @__PURE__ */ G("p", {
3965
- className: M("dial-small-text break-words", En.description),
3967
+ className: j("dial-small-text break-words", En.description),
3966
3968
  children: e.hint
3967
3969
  }),
3968
3970
  e.hasSharedCredentials && /* @__PURE__ */ G(yn, {
3969
- icon: /* @__PURE__ */ G(He, {
3970
- size: z.SM,
3971
+ icon: /* @__PURE__ */ G(Ue, {
3972
+ size: R.SM,
3971
3973
  "aria-hidden": !0,
3972
- stroke: B
3974
+ stroke: z
3973
3975
  }),
3974
3976
  title: t?.sharedCredentials ?? "Shared credentials are available for this service."
3975
3977
  }),
@@ -3984,14 +3986,14 @@ var yt = /* @__PURE__ */ function(e) {
3984
3986
  }),
3985
3987
  /* @__PURE__ */ K("div", {
3986
3988
  className: "flex flex-wrap justify-end gap-2",
3987
- children: [/* @__PURE__ */ G(De, {
3989
+ children: [/* @__PURE__ */ G(Oe, {
3988
3990
  className: "min-h-11",
3989
3991
  label: t?.cancelLabel ?? "Cancel",
3990
3992
  disabled: l,
3991
3993
  onClick: () => {
3992
3994
  c(!1), f(void 0);
3993
3995
  }
3994
- }), /* @__PURE__ */ G(me, {
3996
+ }), /* @__PURE__ */ G(he, {
3995
3997
  className: "min-h-11",
3996
3998
  label: m,
3997
3999
  disabled: l,
@@ -4022,7 +4024,7 @@ var yt = /* @__PURE__ */ function(e) {
4022
4024
  children: [/* @__PURE__ */ G("p", {
4023
4025
  role: "alert",
4024
4026
  children: s?.loadError ?? "Unable to load credentials"
4025
- }), /* @__PURE__ */ G(De, {
4027
+ }), /* @__PURE__ */ G(Oe, {
4026
4028
  className: "min-h-11 self-start",
4027
4029
  label: s?.retry ?? "Retry",
4028
4030
  onClick: i
@@ -4048,4 +4050,4 @@ var yt = /* @__PURE__ */ function(e) {
4048
4050
  children: s?.empty ?? "No credentials required"
4049
4051
  }) : null;
4050
4052
  //#endregion
4051
- export { It as AppIdentity, oi as ApplicationCredentials, Z as CATALOG_CLASS, Jt as Card, Xt as CardGrid, Yt as CardRowRenderer, ri as Catalog, X as CatalogContentNodeType, wt as CatalogContentPreviewType, q as CatalogDetailsTab, J as CatalogLimitStatus, s as CatalogSortKey, St as CatalogViewMode, yt as CodeLanguage, qn as ContentTab, o as CredentialStatus, Rt as CredentialsBadge, e as CredentialsBadgeState, b as CredentialsLevel, n as CredentialsUiState, ii as DeploymentSelectorField, xt as DeploymentSize, Y as DetailsConfirmationKind, bt as DetailsConfirmationVariant, Tr as DetailsPanel, Dr as FavoriteCard, Ar as Favorites, Yr as Filter, fn as InfoCard, Ct as LimitRowLayout, ar as LimitsTab, Wr as ListView, Qr as Toolbar, y as ToolsetAuthenticationType, Ut as TopicTag, r as buildCatalogTabs, a as filterCatalogItems, d as getCredentialsBadgeState, c as getCredentialsUiState, t as getSignedInLevel, u as getTopicOptions, l as sortCatalogItems, Tt as useFavColumns, Pt as useScrollVirtualizer };
4053
+ export { It as AppIdentity, oi as ApplicationCredentials, Q as CATALOG_CLASS, Jt as Card, Xt as CardGrid, Yt as CardRowRenderer, ri as Catalog, Z as CatalogContentNodeType, Ct as CatalogContentPreviewType, J as CatalogDetailsTab, yt as CatalogLimitStatus, s as CatalogSortKey, xt as CatalogViewMode, q as CodeLanguage, qn as ContentTab, o as CredentialStatus, Rt as CredentialsBadge, e as CredentialsBadgeState, b as CredentialsLevel, n as CredentialsUiState, ii as DeploymentSelectorField, X as DeploymentSize, Y as DetailsConfirmationKind, bt as DetailsConfirmationVariant, Tr as DetailsPanel, Dr as FavoriteCard, Ar as Favorites, Yr as Filter, fn as InfoCard, St as LimitRowLayout, ar as LimitsTab, Wr as ListView, Qr as Toolbar, y as ToolsetAuthenticationType, Ut as TopicTag, r as buildCatalogTabs, a as filterCatalogItems, d as getCredentialsBadgeState, c as getCredentialsUiState, t as getSignedInLevel, u as getTopicOptions, l as sortCatalogItems, wt as useFavColumns, Nt as useScrollVirtualizer };