@epam/ai-dial-catalog 1.2.0-dev.229 → 1.2.0-dev.232

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,64 +1,64 @@
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
2
  import { CatalogEntityType as x, ConfirmationFooter as S, ConfirmationView as C, DESKTOP_BREAKPOINT_PX as w, DeploymentIcon as T, EntityHeader as E, EntityTypeLabel as D, FeaturedChip as O, ItemHeader as ee, MarkdownCodeBlock as k, MarkdownRenderer as A, MarkdownWithPlaceholders as te, PanelEmptyState as ne, SELECT_LIST_MAX_HEIGHT_CLASS_NAME as re, buildCssVars as j, mergeClasses as M } from "@epam/ai-dial-chat-shared";
3
- import { Fragment as ie, memo as N, startTransition as ae, useCallback as P, useEffect as F, useId as oe, useLayoutEffect as se, useMemo as I, useRef as L, useState as R } from "react";
4
- import { Button as ce, ButtonAppearance as le, ButtonDropdown as ue, ButtonVariant as de, CardShell as fe, Checkbox as pe, CloseButton as me, ConfirmationPopupVariant as he, DIAL_ICON_SIZE as z, DIAL_KIT_ICON_STROKE as B, DangerButton as ge, Dropdown as _e, ElementSize as ve, EllipsisTooltip as ye, FolderPath as be, GhostButton as xe, GhostIconButton as Se, Highlight as Ce, InlineSelect as we, InlineSelectTrigger as Te, Input as Ee, LinkButton as V, MenuItem as De, MenuItemMark as Oe, NeutralButton as ke, NeutralIconButton as Ae, PrimaryButton as je, ProgressBar as Me, RadioGroup as Ne, Search as Pe, SegmentedControl as Fe, Skeleton as Ie, SkeletonAvatarShape as H, Spinner as Le, Tabs as Re, ToggleIconButton as ze, Tooltip as Be, mergeClasses as U } 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 W, IconLayoutList as et, IconLogin as tt, IconLogout as nt, IconPencil as rt, IconPlayerPlayFilled as it, IconPlus as at, IconShare as ot, IconStar as st, IconStarFilled as ct, IconTrashX as lt, IconUser as G, IconUserOff as ut, IconWorldOff as dt, IconWorldShare as ft } from "@tabler/icons-react";
3
+ import { Fragment as ie, memo as ae, startTransition as oe, useCallback as N, useEffect as P, useId as se, useLayoutEffect as ce, useMemo as F, useRef as I, useState as L } from "react";
4
+ import { Button as R, ButtonAppearance as le, ButtonDropdown as ue, ButtonVariant as de, CardShell as fe, Checkbox as pe, CloseButton as me, ConfirmationPopupVariant as he, DIAL_ICON_SIZE as z, DIAL_KIT_ICON_STROKE as B, DangerButton as ge, Dropdown as _e, DropdownItemType as ve, ElementSize as ye, EllipsisTooltip as be, FolderPath as xe, GhostButton as Se, GhostIconButton as Ce, Highlight as we, InlineSelect as Te, InlineSelectTrigger as Ee, Input as V, LinkButton as De, MenuItem as Oe, MenuItemMark as ke, NeutralButton as Ae, NeutralIconButton as je, PrimaryButton as Me, ProgressBar as Ne, RadioGroup as Pe, Search as Fe, SegmentedControl as H, Skeleton as Ie, SkeletonAvatarShape as Le, Spinner as Re, Tabs as ze, ToggleIconButton as Be, Tooltip as U, mergeClasses as Ve } from "@epam/ai-dial-ui-kit";
5
+ import { IconAlertTriangleFilled as He, IconArrowRight as Ue, IconBuildingCommunity as We, IconCheck as Ge, IconChevronDown as Ke, IconChevronLeft as qe, IconChevronRight as Je, IconCircleCheckFilled as Ye, IconDots as Xe, IconDownload as Ze, IconFilter as Qe, IconFolder as W, IconKey as $e, IconLayoutGrid as et, IconLayoutList as tt, IconLogin as nt, IconLogout as rt, IconPencil as it, IconPlayerPlayFilled as at, IconPlus as ot, IconShare as st, IconStar as ct, IconStarFilled as lt, IconTrashX as ut, IconUser as G, IconUserOff as dt, IconWorldOff as ft, IconWorldShare as pt } from "@tabler/icons-react";
6
6
  import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
7
- import { PublishFooter as pt, PublishPanel as mt, derivePublishState as ht, usePublishFlow as gt } from "@epam/ai-dial-publish-panel";
8
- import { Grid as _t } from "@epam/ai-dial-ui-kit/grid";
7
+ import { PublishFooter as mt, PublishPanel as ht, derivePublishState as gt, usePublishFlow as _t } from "@epam/ai-dial-publish-panel";
8
+ import { Grid as vt } from "@epam/ai-dial-ui-kit/grid";
9
9
  //#region src/types/code-language.ts
10
- var vt = /* @__PURE__ */ function(e) {
10
+ var yt = /* @__PURE__ */ function(e) {
11
11
  return e.Python = "python", e.Curl = "curl", e.JavaScript = "javascript", e;
12
12
  }({}), Y = /* @__PURE__ */ function(e) {
13
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) {
14
+ }({}), bt = /* @__PURE__ */ function(e) {
15
15
  return e.RunningLow = "runningLow", e.LimitReached = "limitReached", e;
16
16
  }({}), X = /* @__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
- }({}), bt = /* @__PURE__ */ function(e) {
19
- return e.SM = "sm", e.LG = "lg", e;
20
18
  }({}), xt = /* @__PURE__ */ function(e) {
21
- return e.Grid = "grid", e.Cards = "cards", e;
19
+ return e.SM = "sm", e.LG = "lg", e;
22
20
  }({}), Z = /* @__PURE__ */ function(e) {
23
- return e.Inline = "inline", e.Stacked = "stacked", e;
21
+ return e.Grid = "grid", e.Cards = "cards", e;
24
22
  }({}), St = /* @__PURE__ */ function(e) {
23
+ return e.Inline = "inline", e.Stacked = "stacked", e;
24
+ }({}), Ct = /* @__PURE__ */ function(e) {
25
25
  return e.File = "file", e.Folder = "folder", e;
26
26
  }({}), Q = /* @__PURE__ */ function(e) {
27
27
  return e.Markdown = "markdown", e.Text = "text", e.Image = "image", e.Unsupported = "unsupported", e;
28
- }({}), Ct = () => {
29
- let [e, t] = R(() => window.innerWidth);
30
- return F(() => {
28
+ }({}), wt = () => {
29
+ let [e, t] = L(() => window.innerWidth);
30
+ return P(() => {
31
31
  let e = () => t(window.innerWidth);
32
32
  return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
33
33
  }, []), e >= 1024 ? 4 : e >= 640 ? 2 : 1;
34
- }, wt = {
34
+ }, Tt = {
35
35
  root: "dial-catalog-root",
36
36
  toolbar: "dial-catalog-toolbar",
37
37
  card: "dial-catalog-card",
38
38
  favoriteCard: "dial-catalog-favorite-card",
39
39
  listView: "dial-catalog-list-view"
40
- }, Tt = (e) => {
40
+ }, Et = (e) => {
41
41
  let { colors: t } = e ?? {};
42
42
  return j({
43
43
  "--cat-bg": t?.background,
44
44
  "--cat-heading-title-text": t?.headingTitleText
45
45
  });
46
- }, Et = 1180, Dt = (e) => e >= 1280 ? 4 : e >= 966 ? 3 : e >= 620 ? 2 : 1, Ot = (e) => {
46
+ }, Dt = 1180, Ot = (e) => e >= 1280 ? 4 : e >= 966 ? 3 : e >= 620 ? 2 : 1, kt = (e) => {
47
47
  if (!e || e === document.body) return document.documentElement;
48
48
  let { overflow: t, overflowY: n } = getComputedStyle(e);
49
- return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : Ot(e.parentElement);
50
- }, kt = 10, At = 10, jt = 30, Mt = (e, t, n = kt) => {
51
- let r = L(null), [i, a] = R({
49
+ return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : kt(e.parentElement);
50
+ }, At = 10, jt = 10, Mt = 30, Nt = (e, t, n = At) => {
51
+ let r = I(null), [i, a] = L({
52
52
  start: 0,
53
- end: jt
53
+ end: Mt
54
54
  });
55
- F(() => {
55
+ P(() => {
56
56
  let i = r.current;
57
57
  if (!i) return;
58
- let o = Ot(i.parentElement), s = () => {
58
+ let o = kt(i.parentElement), s = () => {
59
59
  let r = o.clientHeight;
60
60
  if (r === 0 || i.clientWidth === 0 || getComputedStyle(i).visibility === "hidden") return;
61
- 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);
61
+ 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);
62
62
  a((e) => e.start === f && e.end === p ? e : {
63
63
  start: f,
64
64
  end: p
@@ -74,28 +74,28 @@ var vt = /* @__PURE__ */ function(e) {
74
74
  t,
75
75
  n
76
76
  ]);
77
- let o = Math.max(0, Math.floor((e - 1) / At) * At), s = Math.min(i.start, o);
77
+ let o = Math.max(0, Math.floor((e - 1) / jt) * jt), s = Math.min(i.start, o);
78
78
  return {
79
79
  containerRef: r,
80
80
  startRow: s,
81
- endRow: Math.min(e, Math.max(i.end, s + At))
81
+ endRow: Math.min(e, Math.max(i.end, s + jt))
82
82
  };
83
- }, Nt = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
84
- let r = L(null), [i, a] = R(() => {
85
- let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= w ? 60 : 0)), i = Dt((n ? r : Math.min(Et, r)) - 64), a = Math.ceil(e / i);
83
+ }, Pt = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
84
+ let r = I(null), [i, a] = L(() => {
85
+ let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= w ? 60 : 0)), i = Ot((n ? r : Math.min(Dt, r)) - 64), a = Math.ceil(e / i);
86
86
  return {
87
87
  startRow: 0,
88
88
  endRow: Math.min(a, 12),
89
89
  columnCount: i
90
90
  };
91
91
  });
92
- F(() => {
92
+ P(() => {
93
93
  let n = r.current;
94
94
  if (!n) return;
95
- let i = Ot(n.parentElement), o = () => {
95
+ let i = kt(n.parentElement), o = () => {
96
96
  let r = n.clientWidth, o = i.clientHeight;
97
97
  if (r === 0 || o === 0) return;
98
- 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);
98
+ 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);
99
99
  a((e) => e.startRow === f && e.endRow === p && e.columnCount === l ? e : {
100
100
  startRow: f,
101
101
  endRow: p,
@@ -117,7 +117,7 @@ var vt = /* @__PURE__ */ function(e) {
117
117
  rowCount: o,
118
118
  totalHeight: o * 268
119
119
  };
120
- }, Pt = {
120
+ }, Ft = {
121
121
  skeletonColor: "var(--cg-skeleton-color, var(--bg-control-disable-primary, #dce0e8))",
122
122
  card: "_card_18c2b_2",
123
123
  emptyStarHidden: "_emptyStarHidden_18c2b_2",
@@ -127,12 +127,12 @@ var vt = /* @__PURE__ */ function(e) {
127
127
  selectedCard: "_selectedCard_18c2b_37",
128
128
  checkIcon: "_checkIcon_18c2b_42",
129
129
  footer: "_footer_18c2b_46"
130
- }, Ft = {
130
+ }, It = {
131
131
  name: "_name_188yo_1",
132
132
  lastUsed: "_lastUsed_188yo_5",
133
133
  version: "_version_188yo_9"
134
- }, 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 }) => {
135
- let f = c?.colors, p = c?.typography ?? {}, m = a === bt.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = j({
134
+ }, Lt = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, styles: c, lastUsedTrailing: l, iconClassName: u, iconOverlay: d }) => {
135
+ 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({
136
136
  "--ai-name-text": f?.nameColor,
137
137
  "--ai-last-used-text": f?.lastUsedColor,
138
138
  "--ai-version-text": f?.versionColor
@@ -160,27 +160,27 @@ var vt = /* @__PURE__ */ function(e) {
160
160
  className: "flex min-w-0 flex-col",
161
161
  children: [/* @__PURE__ */ J("div", {
162
162
  className: "flex min-w-0 items-start gap-1 overflow-hidden",
163
- children: [/* @__PURE__ */ q(ye, {
164
- text: o ? /* @__PURE__ */ q(Ce, {
163
+ children: [/* @__PURE__ */ q(be, {
164
+ text: o ? /* @__PURE__ */ q(we, {
165
165
  text: n,
166
166
  query: o
167
167
  }) : n,
168
- className: M("min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text", Ft.name)
169
- }), r && /* @__PURE__ */ q(ye, {
168
+ className: M("min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text", It.name)
169
+ }), r && /* @__PURE__ */ q(be, {
170
170
  text: r,
171
- className: M("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text", Ft.version)
171
+ className: M("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text", It.version)
172
172
  })]
173
173
  }), m && i != null && /* @__PURE__ */ J("div", {
174
174
  className: "flex items-center gap-2",
175
175
  children: [/* @__PURE__ */ q("span", {
176
- className: M("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", Ft.lastUsed),
176
+ className: M("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", It.lastUsed),
177
177
  children: i
178
178
  }), l]
179
179
  })]
180
180
  })]
181
181
  })]
182
182
  });
183
- }, 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__ */ q(Be, {
183
+ }, Rt = { icon: "_icon_a0p4u_1" }, zt = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || d(e) == null ? null : /* @__PURE__ */ q(U, {
184
184
  tooltip: t,
185
185
  asChild: !0,
186
186
  children: /* @__PURE__ */ q("span", {
@@ -191,46 +191,46 @@ var vt = /* @__PURE__ */ function(e) {
191
191
  "--cat-cred-badge-icon": r?.icon
192
192
  }),
193
193
  className: M("absolute -bottom-1 -end-1 shrink-0", n),
194
- children: /* @__PURE__ */ q(Ve, {
194
+ children: /* @__PURE__ */ q(He, {
195
195
  size: z.SM,
196
- className: Lt.icon,
196
+ className: Rt.icon,
197
197
  "aria-hidden": !0
198
198
  })
199
199
  })
200
- }), zt = {
200
+ }), Bt = {
201
201
  starFilledIcon: "_starFilledIcon_po6zj_1",
202
202
  starPop: "_starPop_po6zj_1"
203
- }, Bt = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ q(ze, {
203
+ }, Vt = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ q(Be, {
204
204
  size: n,
205
205
  style: j({ "--cat-star-filled": a }),
206
206
  className: i,
207
207
  isSelected: e,
208
- icon: /* @__PURE__ */ q(st, {
208
+ icon: /* @__PURE__ */ q(ct, {
209
209
  size: z.SM,
210
210
  stroke: B,
211
211
  "aria-hidden": !0
212
212
  }),
213
- selectedIcon: /* @__PURE__ */ q(ct, {
213
+ selectedIcon: /* @__PURE__ */ q(lt, {
214
214
  size: z.SM,
215
- className: zt.starFilledIcon,
215
+ className: Bt.starFilledIcon,
216
216
  "aria-hidden": !0
217
217
  }),
218
218
  "aria-label": r,
219
219
  onClick: t
220
- }), Vt = { tag: "_tag_12518_1" }, Ht = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ q("div", {
220
+ }), Ht = { tag: "_tag_12518_1" }, Ut = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ q("div", {
221
221
  style: j({
222
222
  "--cat-card-tag-bg": r?.background,
223
223
  "--cat-card-tag-text": r?.text,
224
224
  "--cat-card-tag-border": r?.border
225
225
  }),
226
- className: M("flex h-6 w-fit items-center justify-center whitespace-nowrap rounded-md border px-2", Vt.tag, n, t),
226
+ className: M("flex h-6 w-fit items-center justify-center whitespace-nowrap rounded-md border px-2", Ht.tag, n, t),
227
227
  children: e
228
- }), Ut = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ q(Ht, {
228
+ }), Wt = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ q(Ut, {
229
229
  label: e,
230
230
  badgeClassName: t,
231
231
  colors: n
232
- }), Wt = 8, Gt = ({ topics: e, overflowAriaLabel: t, className: n }) => {
233
- let r = L(null), i = L([]), a = L([]), o = L(null), s = L(Infinity), [c, l] = R(e.length), u = e.join("\0"), d = P(() => {
232
+ }), Gt = 8, Kt = ({ topics: e, overflowAriaLabel: t, className: n }) => {
233
+ 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(() => {
234
234
  let t = r.current;
235
235
  if (!t || e.length === 0) return;
236
236
  let n = t.clientWidth;
@@ -241,19 +241,19 @@ var vt = /* @__PURE__ */ function(e) {
241
241
  let u = o.current?.offsetWidth ?? 0, d = 0, f = 0;
242
242
  for (let t = 0; t < e.length; t++) {
243
243
  let r = e.length - (t + 1) > 0;
244
- if (d + (t > 0 ? Wt : 0) + c[t] + (r ? Wt + u : 0) > n) break;
245
- d += (t > 0 ? Wt : 0) + c[t], f = t + 1;
244
+ if (d + (t > 0 ? Gt : 0) + c[t] + (r ? Gt + u : 0) > n) break;
245
+ d += (t > 0 ? Gt : 0) + c[t], f = t + 1;
246
246
  }
247
247
  l(Math.min(f, s.current));
248
248
  }, [e.length]);
249
- if (se(() => {
249
+ if (ce(() => {
250
250
  a.current = [], s.current = Infinity, l(e.length);
251
- }, [u]), se(() => {
251
+ }, [u]), ce(() => {
252
252
  d();
253
- }), se(() => {
253
+ }), ce(() => {
254
254
  let e = r.current;
255
255
  !e || c === 0 || e.scrollWidth <= e.clientWidth || (s.current = c - 1, l(s.current));
256
- }, [c]), F(() => {
256
+ }, [c]), P(() => {
257
257
  let e = r.current;
258
258
  if (!e) return;
259
259
  let t = new ResizeObserver(() => {
@@ -273,26 +273,26 @@ var vt = /* @__PURE__ */ function(e) {
273
273
  ref: (e) => {
274
274
  i.current[t] = e;
275
275
  },
276
- children: /* @__PURE__ */ q(Ut, { label: e })
276
+ children: /* @__PURE__ */ q(Wt, { label: e })
277
277
  }, e)),
278
- f > 0 && /* @__PURE__ */ q(Be, {
278
+ f > 0 && /* @__PURE__ */ q(U, {
279
279
  tooltip: e.slice(c).join(", "),
280
280
  children: /* @__PURE__ */ q("span", {
281
281
  "aria-label": t?.(f) ?? `and ${f} more topics`,
282
- children: /* @__PURE__ */ q(Ut, { label: `+${f}` })
282
+ children: /* @__PURE__ */ q(Wt, { label: `+${f}` })
283
283
  })
284
284
  }),
285
285
  /* @__PURE__ */ q("div", {
286
286
  ref: o,
287
287
  "aria-hidden": !0,
288
288
  className: "invisible absolute start-0 top-0",
289
- children: /* @__PURE__ */ q(Ut, { label: `+${e.length}` })
289
+ children: /* @__PURE__ */ q(Wt, { label: `+${e.length}` })
290
290
  })
291
291
  ]
292
292
  });
293
- }, 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 }) => {
294
- let [m, h] = R(r);
295
- F(() => {
293
+ }, qt = { img: () => null }, Jt = (e) => e.target instanceof Element && e.target.closest("a") !== null, Yt = ({ 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 }) => {
294
+ let [m, h] = L(r);
295
+ P(() => {
296
296
  h(r);
297
297
  }, [e.id, r]);
298
298
  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({
@@ -302,10 +302,10 @@ var vt = /* @__PURE__ */ function(e) {
302
302
  "--cg-check-icon": d?.colors?.checkIcon,
303
303
  "--cg-footer-border": d?.colors?.footerBorder
304
304
  }), x = !p && e.isFeatured === !0, S = !p && a?.(e) !== !1, C = !p || e.folder.length > 0, w = n ? (t) => {
305
- qt(t) || n(e);
306
- } : void 0, T = P((t) => {
307
- !n || qt(t) || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e));
308
- }, [n, e]), E = P((t) => {
305
+ Jt(t) || n(e);
306
+ } : void 0, T = N((t) => {
307
+ !n || Jt(t) || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e));
308
+ }, [n, e]), E = N((t) => {
309
309
  t.stopPropagation();
310
310
  let n = !m;
311
311
  h(n), i?.(e.id, n);
@@ -323,7 +323,7 @@ var vt = /* @__PURE__ */ function(e) {
323
323
  } : {},
324
324
  "aria-label": e.name,
325
325
  style: b,
326
- className: M("box-border cursor-pointer gap-3", Pt.card, x ? Pt.featuredCard : void 0, l ? Pt.selectedCard : void 0, u, wt.card),
326
+ className: M("box-border cursor-pointer gap-3", Ft.card, x ? Ft.featuredCard : void 0, l ? Ft.selectedCard : void 0, u, Tt.card),
327
327
  children: [
328
328
  x && /* @__PURE__ */ q("div", {
329
329
  className: "absolute end-[22px] top-0 -translate-y-1/2",
@@ -334,27 +334,27 @@ var vt = /* @__PURE__ */ function(e) {
334
334
  style: d?.colors?.featuredChipStyle
335
335
  })
336
336
  }),
337
- l && /* @__PURE__ */ q(We, {
337
+ l && /* @__PURE__ */ q(Ge, {
338
338
  size: z.SM,
339
- className: M("absolute end-3 top-3 shrink-0", Pt.checkIcon),
339
+ className: M("absolute end-3 top-3 shrink-0", Ft.checkIcon),
340
340
  "aria-hidden": !0,
341
341
  stroke: B
342
342
  }),
343
- /* @__PURE__ */ q(It, {
343
+ /* @__PURE__ */ q(Lt, {
344
344
  icon: e.iconUrl,
345
345
  type: e.type,
346
346
  name: e.name,
347
347
  version: e.version,
348
- size: bt.SM,
348
+ size: xt.SM,
349
349
  query: t,
350
- iconClassName: Pt.cardIcon,
351
- iconOverlay: /* @__PURE__ */ q(Rt, {
350
+ iconClassName: Ft.cardIcon,
351
+ iconOverlay: /* @__PURE__ */ q(zt, {
352
352
  credentials: e.credentials,
353
353
  loggedOutLabel: f
354
354
  })
355
355
  }),
356
356
  /* @__PURE__ */ q("div", {
357
- className: M("line-clamp-2 min-h-[2lh] break-words", Pt.description),
357
+ className: M("line-clamp-2 min-h-[2lh] break-words", Ft.description),
358
358
  children: e.description && /* @__PURE__ */ q(A, {
359
359
  content: e.description,
360
360
  classNames: {
@@ -368,36 +368,36 @@ var vt = /* @__PURE__ */ function(e) {
368
368
  h5: g,
369
369
  h6: g
370
370
  },
371
- components: Kt
371
+ components: qt
372
372
  })
373
373
  }),
374
374
  /* @__PURE__ */ q("div", {
375
375
  className: "mt-auto flex items-center gap-2",
376
- children: /* @__PURE__ */ q(Gt, { topics: e.topics })
376
+ children: /* @__PURE__ */ q(Kt, { topics: e.topics })
377
377
  }),
378
378
  C && /* @__PURE__ */ q("div", {
379
- className: M("pt-3", !p && M("border-t", Pt.footer)),
379
+ className: M("pt-3", !p && M("border-t", Ft.footer)),
380
380
  children: /* @__PURE__ */ J("div", {
381
381
  className: "flex items-center gap-2",
382
382
  children: [/* @__PURE__ */ q("div", {
383
383
  className: "min-w-0 flex-1",
384
- children: e.folder.length > 0 && /* @__PURE__ */ q(be, {
384
+ children: e.folder.length > 0 && /* @__PURE__ */ q(xe, {
385
385
  segments: e.folder,
386
386
  labelClassName: v,
387
387
  leafClassName: y
388
388
  })
389
- }), S && /* @__PURE__ */ q(Bt, {
389
+ }), S && /* @__PURE__ */ q(Vt, {
390
390
  isStarred: m,
391
- size: ve.Small,
391
+ size: ye.Small,
392
392
  onClick: E,
393
393
  ariaLabel: m ? c : s,
394
- className: M(Pt.starBtn, !m && Pt.emptyStarHidden)
394
+ className: M(Ft.starBtn, !m && Ft.emptyStarHidden)
395
395
  })]
396
396
  })
397
397
  })
398
398
  ]
399
399
  });
400
- }, Yt = N(({ 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 }) => {
400
+ }, Xt = 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 }) => {
401
401
  let m = e * n, h = t.slice(m, m + n);
402
402
  return /* @__PURE__ */ q("div", {
403
403
  style: {
@@ -409,7 +409,7 @@ var vt = /* @__PURE__ */ function(e) {
409
409
  let n = h[t];
410
410
  return /* @__PURE__ */ q("div", {
411
411
  className: "h-full min-w-0 flex-1",
412
- children: n && /* @__PURE__ */ q(Jt, {
412
+ children: n && /* @__PURE__ */ q(Yt, {
413
413
  item: n,
414
414
  query: r,
415
415
  initialIsStarred: n.isStarred,
@@ -428,8 +428,8 @@ var vt = /* @__PURE__ */ function(e) {
428
428
  }, n?.id ?? `spacer-${t}`);
429
429
  })
430
430
  });
431
- }), Xt = N(({ 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 }) => {
432
- 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 = I(() => ({
431
+ }), Zt = ae(({ 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 }) => {
432
+ 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(() => ({
433
433
  items: e,
434
434
  columnCount: x,
435
435
  query: t,
@@ -465,12 +465,12 @@ var vt = /* @__PURE__ */ function(e) {
465
465
  ...j({ "--cg-skeleton-card-bg": l })
466
466
  },
467
467
  children: Array.from({ length: x * 3 }, (e, t) => /* @__PURE__ */ q("div", {
468
- className: M("rounded-md border p-4", Pt.skeletonCard),
468
+ className: M("rounded-md border p-4", Ft.skeletonCard),
469
469
  style: { height: 248 },
470
470
  children: /* @__PURE__ */ q(Ie, {
471
471
  avatar: {
472
472
  size: 48,
473
- shape: H.Square
473
+ shape: Le.Square
474
474
  },
475
475
  showTitle: { width: `${60 + t * 17 % 30}%` },
476
476
  paragraph: { rows: 3 },
@@ -487,26 +487,26 @@ var vt = /* @__PURE__ */ function(e) {
487
487
  style: { height: S },
488
488
  children: Array.from({ length: b - y }, (e, t) => {
489
489
  let n = y + t;
490
- return /* @__PURE__ */ q(Yt, {
490
+ return /* @__PURE__ */ q(Xt, {
491
491
  rowIndex: n,
492
492
  ...C
493
493
  }, n);
494
494
  })
495
495
  });
496
- }), Zt = (e) => e.reduce((e, t) => t.type === St.File ? e + 1 : e + Zt(t.items), 0), Qt = (e) => {
496
+ }), Qt = (e) => e.reduce((e, t) => t.type === Ct.File ? e + 1 : e + Qt(t.items), 0), $t = (e) => {
497
497
  let t = /* @__PURE__ */ new Set(), n = (e) => {
498
- for (let r of e) r.type === St.Folder && (t.add(r.id), n(r.items));
498
+ for (let r of e) r.type === Ct.Folder && (t.add(r.id), n(r.items));
499
499
  };
500
500
  return n(e), t;
501
- }, $t = (e, t) => {
501
+ }, en = (e, t) => {
502
502
  if (t != null) for (let n of e) {
503
503
  if (n.id === t) return n.name;
504
- if (n.type === St.Folder) {
505
- let e = $t(n.items, t);
504
+ if (n.type === Ct.Folder) {
505
+ let e = en(n.items, t);
506
506
  if (e != null) return e;
507
507
  }
508
508
  }
509
- }, en = {
509
+ }, tn = {
510
510
  sectionHeading: "_sectionHeading_jnq93_1",
511
511
  rowAlt: "_rowAlt_jnq93_5",
512
512
  label: "_label_jnq93_9",
@@ -514,19 +514,19 @@ var vt = /* @__PURE__ */ function(e) {
514
514
  valueTrue: "_valueTrue_jnq93_17",
515
515
  valueFalse: "_valueFalse_jnq93_21",
516
516
  valueText: "_valueText_jnq93_25"
517
- }, tn = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(Je, {
517
+ }, nn = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(Ye, {
518
518
  size: z.MD,
519
- className: M(r, en.checkIcon)
519
+ className: M(r, tn.checkIcon)
520
520
  }), /* @__PURE__ */ q("span", {
521
- className: M(n, en.valueTrue),
521
+ className: M(n, tn.valueTrue),
522
522
  children: i
523
523
  })] }) : e === !1 ? /* @__PURE__ */ q("span", {
524
- className: M(t, en.valueFalse),
524
+ className: M(t, tn.valueFalse),
525
525
  children: a
526
526
  }) : /* @__PURE__ */ q("span", {
527
- className: M("min-w-0 break-words", t, en.valueText),
527
+ className: M("min-w-0 break-words", t, tn.valueText),
528
528
  children: e
529
- }), 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__ */ q("div", {
529
+ }), rn = ({ 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__ */ q("div", {
530
530
  className: "flex flex-col",
531
531
  style: j({
532
532
  "--tv-section-heading": l?.sectionHeading,
@@ -538,18 +538,18 @@ var vt = /* @__PURE__ */ function(e) {
538
538
  "--tv-value-text": l?.valueText
539
539
  }),
540
540
  children: t != null && t.length > 0 && /* @__PURE__ */ J("section", { children: [/* @__PURE__ */ q("p", {
541
- className: M("mb-3 mt-0", o, en.sectionHeading),
541
+ className: M("mb-3 mt-0", o, tn.sectionHeading),
542
542
  children: e
543
543
  }), /* @__PURE__ */ q("ul", {
544
544
  className: "m-0 list-none p-0",
545
545
  children: t.map((e, t) => /* @__PURE__ */ J("li", {
546
- className: M("flex items-center rounded px-3 py-2", t % 2 == 0 ? en.rowAlt : void 0),
546
+ className: M("flex items-center rounded px-3 py-2", t % 2 == 0 ? tn.rowAlt : void 0),
547
547
  children: [/* @__PURE__ */ q("span", {
548
- className: M(n, en.label, "w-2/5 shrink-0"),
548
+ className: M(n, tn.label, "w-2/5 shrink-0"),
549
549
  children: e.label
550
550
  }), /* @__PURE__ */ q("div", {
551
551
  className: "flex w-3/5 min-w-0 items-center gap-1",
552
- children: /* @__PURE__ */ q(tn, {
552
+ children: /* @__PURE__ */ q(nn, {
553
553
  value: e.value,
554
554
  valueClassName: r,
555
555
  valueTrueClassName: i,
@@ -560,46 +560,46 @@ var vt = /* @__PURE__ */ function(e) {
560
560
  })]
561
561
  }, e.label))
562
562
  })] })
563
- }), rn = { sectionHeading: "_sectionHeading_148lj_1" }, an = {
564
- [vt.Python]: "Python",
565
- [vt.Curl]: "cURL",
566
- [vt.JavaScript]: "JavaScript"
567
- }, on = {
568
- [vt.Python]: "python",
569
- [vt.Curl]: "bash",
570
- [vt.JavaScript]: "javascript"
571
- }, 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" }) => {
572
- let [s, c] = R(e[0]?.language ?? vt.Python);
573
- F(() => {
574
- c(e[0]?.language ?? vt.Python);
563
+ }), an = { sectionHeading: "_sectionHeading_148lj_1" }, on = {
564
+ [yt.Python]: "Python",
565
+ [yt.Curl]: "cURL",
566
+ [yt.JavaScript]: "JavaScript"
567
+ }, sn = {
568
+ [yt.Python]: "python",
569
+ [yt.Curl]: "bash",
570
+ [yt.JavaScript]: "javascript"
571
+ }, cn = ({ 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" }) => {
572
+ let [s, c] = L(e[0]?.language ?? yt.Python);
573
+ P(() => {
574
+ c(e[0]?.language ?? yt.Python);
575
575
  }, [e]);
576
- let l = I(() => e.map((e) => ({
576
+ let l = F(() => e.map((e) => ({
577
577
  key: e.language,
578
- label: an[e.language] ?? e.language,
578
+ label: on[e.language] ?? e.language,
579
579
  onClick: () => c(e.language)
580
580
  })), [e]), u = e.find((e) => e.language === s)?.code ?? "", d = e.length > 1;
581
581
  return /* @__PURE__ */ J("section", { children: [t != null && /* @__PURE__ */ q("p", {
582
- className: M("mb-3 mt-0", o, rn.sectionHeading),
582
+ className: M("mb-3 mt-0", o, an.sectionHeading),
583
583
  children: t
584
584
  }), /* @__PURE__ */ q(k, {
585
- language: on[s] ?? s,
586
- title: an[s] ?? s,
585
+ language: sn[s] ?? s,
586
+ title: on[s] ?? s,
587
587
  value: u,
588
588
  copyLabel: n,
589
589
  copiedLabel: r,
590
590
  codeClassName: i,
591
591
  languageLabelClassName: a,
592
592
  hideDownload: !0,
593
- titleSlot: d ? /* @__PURE__ */ q(we, {
593
+ titleSlot: d ? /* @__PURE__ */ q(Te, {
594
594
  items: l,
595
595
  matchReferenceWidth: !1,
596
596
  placement: "bottom-end",
597
- size: ve.Small,
597
+ size: ye.Small,
598
598
  selectedKey: s
599
599
  }) : void 0
600
600
  })] });
601
- }, 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" }) => {
602
- let [h, g] = R(0), _ = I(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = I(() => _.map((e, t) => ({
601
+ }, ln = ({ 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" }) => {
602
+ let [h, g] = L(0), _ = F(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = F(() => _.map((e, t) => ({
603
603
  key: e.url,
604
604
  label: e.label,
605
605
  onClick: () => g(t)
@@ -612,7 +612,7 @@ var vt = /* @__PURE__ */ function(e) {
612
612
  return /* @__PURE__ */ J("div", {
613
613
  className: "flex flex-col gap-6",
614
614
  children: [
615
- C && /* @__PURE__ */ q(nn, {
615
+ C && /* @__PURE__ */ q(rn, {
616
616
  sectionLabel: t,
617
617
  values: x,
618
618
  labelClassName: u,
@@ -630,7 +630,7 @@ var vt = /* @__PURE__ */ function(e) {
630
630
  }),
631
631
  v && /* @__PURE__ */ J("section", { children: [
632
632
  /* @__PURE__ */ q("p", {
633
- className: M("mb-3 mt-0", m, rn.sectionHeading),
633
+ className: M("mb-3 mt-0", m, an.sectionHeading),
634
634
  children: n
635
635
  }),
636
636
  y != null && /* @__PURE__ */ q(k, {
@@ -641,17 +641,17 @@ var vt = /* @__PURE__ */ function(e) {
641
641
  codeClassName: f,
642
642
  languageLabelClassName: p,
643
643
  hideDownload: !0,
644
- titleSlot: S ? /* @__PURE__ */ q(we, {
644
+ titleSlot: S ? /* @__PURE__ */ q(Te, {
645
645
  items: b,
646
646
  matchReferenceWidth: !1,
647
647
  placement: "bottom-end",
648
- size: ve.Small,
648
+ size: ye.Small,
649
649
  selectedKey: y.url
650
650
  }) : void 0
651
651
  }, h),
652
652
  y?.snippets != null && y.snippets.length > 0 && /* @__PURE__ */ q("div", {
653
653
  className: "mt-4",
654
- children: /* @__PURE__ */ q(sn, {
654
+ children: /* @__PURE__ */ q(cn, {
655
655
  snippets: y.snippets,
656
656
  copyAriaLabel: c,
657
657
  copiedStatusLabel: l,
@@ -661,7 +661,7 @@ var vt = /* @__PURE__ */ function(e) {
661
661
  }, h)
662
662
  })
663
663
  ] }),
664
- !v && T && /* @__PURE__ */ q(sn, {
664
+ !v && T && /* @__PURE__ */ q(cn, {
665
665
  snippets: e.snippets ?? [],
666
666
  sectionLabel: r,
667
667
  copyAriaLabel: c,
@@ -671,7 +671,7 @@ var vt = /* @__PURE__ */ function(e) {
671
671
  sectionClassName: m
672
672
  }),
673
673
  E && /* @__PURE__ */ J("section", { children: [/* @__PURE__ */ q("p", {
674
- className: M("mb-3 mt-0", m, rn.sectionHeading),
674
+ className: M("mb-3 mt-0", m, an.sectionHeading),
675
675
  children: o
676
676
  }), /* @__PURE__ */ q(k, {
677
677
  language: "bash",
@@ -682,7 +682,7 @@ var vt = /* @__PURE__ */ function(e) {
682
682
  hideDownload: !0
683
683
  })] }),
684
684
  D && /* @__PURE__ */ J("section", { children: [/* @__PURE__ */ q("p", {
685
- className: M("mb-3 mt-0", m, rn.sectionHeading),
685
+ className: M("mb-3 mt-0", m, an.sectionHeading),
686
686
  children: s
687
687
  }), /* @__PURE__ */ q(k, {
688
688
  language: "json",
@@ -694,26 +694,26 @@ var vt = /* @__PURE__ */ function(e) {
694
694
  })] })
695
695
  ]
696
696
  });
697
- }, ln = {
697
+ }, un = {
698
698
  sunkenBox: "_sunkenBox_1lqi3_1",
699
699
  raisedBox: "_raisedBox_1lqi3_5",
700
700
  activeIcon: "_activeIcon_1lqi3_9"
701
- }, un = /* @__PURE__ */ function(e) {
701
+ }, dn = /* @__PURE__ */ function(e) {
702
702
  return e.Sunken = "sunken", e.Raised = "raised", e;
703
- }({}), dn = {
704
- sunken: ln.sunkenBox,
705
- raised: ln.raisedBox
706
- }, fn = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */ J("span", {
703
+ }({}), fn = {
704
+ sunken: un.sunkenBox,
705
+ raised: un.raisedBox
706
+ }, pn = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */ J("span", {
707
707
  className: "relative inline-flex shrink-0",
708
708
  children: [
709
709
  /* @__PURE__ */ q("span", {
710
- className: M("flex size-8 items-center justify-center rounded-lg", dn[n]),
710
+ className: M("flex size-8 items-center justify-center rounded-lg", fn[n]),
711
711
  children: e
712
712
  }),
713
- t && /* @__PURE__ */ q(Je, {
713
+ t && /* @__PURE__ */ q(Ye, {
714
714
  size: z.MD,
715
715
  "aria-hidden": !0,
716
- className: M("absolute -end-2 -top-2", ln.activeIcon)
716
+ className: M("absolute -end-2 -top-2", un.activeIcon)
717
717
  }),
718
718
  r != null && /* @__PURE__ */ q("span", {
719
719
  role: "status",
@@ -721,27 +721,27 @@ var vt = /* @__PURE__ */ function(e) {
721
721
  children: r
722
722
  })
723
723
  ]
724
- }), pn = {
724
+ }), mn = {
725
725
  card: "_card_tqnz7_1",
726
726
  icon: "_icon_tqnz7_6",
727
727
  title: "_title_tqnz7_10",
728
728
  description: "_description_tqnz7_14"
729
- }, mn = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ J("div", {
729
+ }, hn = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ J("div", {
730
730
  role: "status",
731
731
  "aria-live": "polite",
732
- className: M("flex items-center gap-3 rounded-xl p-3", pn.card),
732
+ className: M("flex items-center gap-3 rounded-xl p-3", mn.card),
733
733
  children: [/* @__PURE__ */ q("span", {
734
- className: M("shrink-0", pn.icon, n != null && "mt-0.5"),
734
+ className: M("shrink-0", mn.icon, n != null && "mt-0.5"),
735
735
  children: e
736
736
  }), /* @__PURE__ */ J("div", {
737
737
  className: "flex min-w-0 flex-1 items-center justify-between gap-2",
738
738
  children: [/* @__PURE__ */ J("div", {
739
739
  className: "flex min-w-0 flex-col gap-1",
740
740
  children: [/* @__PURE__ */ q("span", {
741
- className: M(i, pn.title),
741
+ className: M(i, mn.title),
742
742
  children: t
743
743
  }), n != null && /* @__PURE__ */ q("span", {
744
- className: M(a, pn.description),
744
+ className: M(a, mn.description),
745
745
  children: n
746
746
  })]
747
747
  }), r != null && /* @__PURE__ */ q("div", {
@@ -749,54 +749,54 @@ var vt = /* @__PURE__ */ function(e) {
749
749
  children: r
750
750
  })]
751
751
  })]
752
- }), hn = (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.", gn = (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.", _n = (e) => e === y.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", vn = (e) => e === y.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", yn = 20, bn = ({ state: e, authenticationType: t, texts: n }) => {
753
- let r = /* @__PURE__ */ q(Ue, {
754
- size: yn,
752
+ }), gn = (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.", _n = (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.", vn = (e) => e === y.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", yn = (e) => e === y.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", bn = 20, xn = ({ state: e, authenticationType: t, texts: n }) => {
753
+ let r = /* @__PURE__ */ q(We, {
754
+ size: bn,
755
755
  "aria-hidden": !0,
756
756
  stroke: B
757
757
  });
758
758
  if (e === v.PersonalCredentialsActive) {
759
- let e = (n?.personalCredentialsActiveBannerTitle ?? vn)(t);
760
- return /* @__PURE__ */ q(mn, {
761
- icon: /* @__PURE__ */ q(fn, {
759
+ let e = (n?.personalCredentialsActiveBannerTitle ?? yn)(t);
760
+ return /* @__PURE__ */ q(hn, {
761
+ icon: /* @__PURE__ */ q(pn, {
762
762
  icon: /* @__PURE__ */ q(G, {
763
763
  size: z.SM,
764
764
  "aria-hidden": !0,
765
765
  stroke: B
766
766
  }),
767
767
  isActive: !0,
768
- surface: un.Raised
768
+ surface: dn.Raised
769
769
  }),
770
770
  title: e
771
771
  });
772
772
  }
773
773
  if (e === v.OrgCredentialsActive) {
774
- let e = (n?.orgCredentialsActiveBannerTitle ?? _n)(t);
775
- return /* @__PURE__ */ q(mn, {
776
- icon: /* @__PURE__ */ q(fn, {
777
- icon: /* @__PURE__ */ q(Ue, {
774
+ let e = (n?.orgCredentialsActiveBannerTitle ?? vn)(t);
775
+ return /* @__PURE__ */ q(hn, {
776
+ icon: /* @__PURE__ */ q(pn, {
777
+ icon: /* @__PURE__ */ q(We, {
778
778
  size: z.SM,
779
779
  "aria-hidden": !0,
780
780
  stroke: B
781
781
  }),
782
782
  isActive: !0,
783
- surface: un.Raised
783
+ surface: dn.Raised
784
784
  }),
785
785
  title: e
786
786
  });
787
787
  }
788
- return /* @__PURE__ */ q(mn, {
788
+ return /* @__PURE__ */ q(hn, {
789
789
  icon: r,
790
- title: (n?.orgFallbackBannerTitle ?? hn)(t),
791
- description: (n?.orgFallbackBannerDescription ?? gn)(t)
790
+ title: (n?.orgFallbackBannerTitle ?? gn)(t),
791
+ description: (n?.orgFallbackBannerDescription ?? _n)(t)
792
792
  });
793
- }, xn = {
793
+ }, Sn = {
794
794
  surface: "_surface_lyarp_1",
795
795
  description: "_description_lyarp_5",
796
796
  rowDescription: "_rowDescription_lyarp_9",
797
797
  errorText: "_errorText_lyarp_13"
798
- }, Sn = ({ 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 }) => {
799
- let C = oe(), [w, T] = R(), [E, D] = R(""), [O, ee] = R(!1), [k, A] = R(!1), te = r === o.SignedIn, ne = P((e) => {
798
+ }, Cn = ({ 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 }) => {
799
+ let C = se(), [w, T] = L(), [E, D] = L(""), [O, ee] = L(!1), [k, A] = L(!1), te = r === o.SignedIn, ne = N((e) => {
800
800
  D(e ?? ""), ee(!1), T(void 0);
801
801
  }, []), re = async () => {
802
802
  if (k || v) return;
@@ -813,16 +813,16 @@ var vt = /* @__PURE__ */ function(e) {
813
813
  } finally {
814
814
  A(!1);
815
815
  }
816
- }, j = d?.loginActionLabel ?? "Log in", ie = d?.logoutActionLabel ?? "Log out", N = d?.addApiKeyActionLabel ?? "Add", ae = d?.deleteActionLabel ?? "Delete", F = d?.credentialsSignedInLabel ?? "Signed in", se = d?.credentialsSignedOutLabel ?? "Signed out", I = d?.addingApiKeyStatusLabel ?? "Adding", L = d?.apiKeyConfiguredMessage ?? "Key has been configured", ce = s == null ? void 0 : (d?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(s);
816
+ }, j = d?.loginActionLabel ?? "Log in", ie = d?.logoutActionLabel ?? "Log out", ae = d?.addApiKeyActionLabel ?? "Add", oe = d?.deleteActionLabel ?? "Delete", P = d?.credentialsSignedInLabel ?? "Signed in", ce = d?.credentialsSignedOutLabel ?? "Signed out", F = d?.addingApiKeyStatusLabel ?? "Adding", I = d?.apiKeyConfiguredMessage ?? "Key has been configured", R = s == null ? void 0 : (d?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(s);
817
817
  return /* @__PURE__ */ J("div", {
818
818
  role: "group",
819
819
  "aria-label": e,
820
820
  "aria-busy": k || b,
821
821
  className: "flex min-w-0 items-start gap-3 rounded-xl p-3",
822
- children: [/* @__PURE__ */ q(fn, {
822
+ children: [/* @__PURE__ */ q(pn, {
823
823
  icon: n,
824
824
  isActive: i,
825
- statusLabel: i ? F : se
825
+ statusLabel: i ? P : ce
826
826
  }), /* @__PURE__ */ J("div", {
827
827
  className: "flex min-w-0 flex-1 flex-col gap-1",
828
828
  children: [
@@ -834,7 +834,7 @@ var vt = /* @__PURE__ */ function(e) {
834
834
  className: f,
835
835
  children: e
836
836
  }), /* @__PURE__ */ q("span", {
837
- className: M(p, xn.rowDescription),
837
+ className: M(p, Sn.rowDescription),
838
838
  children: t
839
839
  })]
840
840
  }), a === y.OAuth && (te ? l && /* @__PURE__ */ q(ge, {
@@ -843,10 +843,10 @@ var vt = /* @__PURE__ */ function(e) {
843
843
  className: "min-h-11 min-w-28 shrink-0 justify-center whitespace-nowrap",
844
844
  onClick: l,
845
845
  disabled: k || v
846
- }) : /* @__PURE__ */ q(ke, {
846
+ }) : /* @__PURE__ */ q(Ae, {
847
847
  label: k ? void 0 : j,
848
848
  "aria-label": j,
849
- iconBefore: k ? /* @__PURE__ */ q(Le, {
849
+ iconBefore: k ? /* @__PURE__ */ q(Re, {
850
850
  size: z.SM,
851
851
  ariaLabel: j
852
852
  }) : void 0,
@@ -859,7 +859,7 @@ var vt = /* @__PURE__ */ function(e) {
859
859
  className: "flex animate-fadeIn flex-col gap-1 pt-1",
860
860
  children: [/* @__PURE__ */ J("div", {
861
861
  className: "flex items-end gap-2",
862
- children: [/* @__PURE__ */ q(Ee, {
862
+ children: [/* @__PURE__ */ q(V, {
863
863
  id: C,
864
864
  type: "password",
865
865
  autoComplete: "off",
@@ -869,12 +869,12 @@ var vt = /* @__PURE__ */ function(e) {
869
869
  invalid: O,
870
870
  disabled: k || v,
871
871
  containerClassName: "min-w-0 flex-1"
872
- }), /* @__PURE__ */ q(ke, {
873
- label: k ? void 0 : N,
874
- "aria-label": k ? I : void 0,
875
- iconBefore: k ? /* @__PURE__ */ q(Le, {
872
+ }), /* @__PURE__ */ q(Ae, {
873
+ label: k ? void 0 : ae,
874
+ "aria-label": k ? F : void 0,
875
+ iconBefore: k ? /* @__PURE__ */ q(Re, {
876
876
  size: z.SM,
877
- ariaLabel: I
877
+ ariaLabel: F
878
878
  }) : void 0,
879
879
  className: "min-h-11 shrink-0 whitespace-nowrap",
880
880
  onClick: re,
@@ -882,24 +882,24 @@ var vt = /* @__PURE__ */ function(e) {
882
882
  })]
883
883
  }), O && /* @__PURE__ */ q("span", {
884
884
  role: "alert",
885
- className: M(m, xn.errorText),
885
+ className: M(m, Sn.errorText),
886
886
  children: d?.apiKeyRequiredErrorMessage ?? "API key is required."
887
887
  })]
888
888
  }),
889
889
  a === y.ApiKey && te && /* @__PURE__ */ q("div", {
890
890
  className: "animate-fadeIn pt-1",
891
- children: /* @__PURE__ */ q(mn, {
891
+ children: /* @__PURE__ */ q(hn, {
892
892
  icon: /* @__PURE__ */ q($e, {
893
893
  size: z.SM,
894
894
  "aria-hidden": !0,
895
895
  stroke: B
896
896
  }),
897
- title: L,
898
- description: ce,
897
+ title: I,
898
+ description: R,
899
899
  titleClassName: h,
900
900
  descriptionClassName: g,
901
- action: u && /* @__PURE__ */ q(V, {
902
- label: ae,
901
+ action: u && /* @__PURE__ */ q(De, {
902
+ label: oe,
903
903
  className: M("min-h-11", _),
904
904
  onClick: u,
905
905
  disabled: k || v
@@ -909,23 +909,23 @@ var vt = /* @__PURE__ */ function(e) {
909
909
  !te && x?.(k || v),
910
910
  w && /* @__PURE__ */ q("p", {
911
911
  role: "alert",
912
- className: M(m, xn.errorText),
912
+ className: M(m, Sn.errorText),
913
913
  children: w
914
914
  }),
915
915
  S
916
916
  ]
917
917
  })]
918
918
  });
919
- }, Cn = (e) => e === y.ApiKey ? "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default for toolset access." : "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default.", wn = ({ item: e, onLogin: t, onRequestLogout: n, onRequestDeleteApiKey: r, texts: i, detailsStyles: a, deleteActionClassName: s = "text-error" }) => {
919
+ }, wn = (e) => e === y.ApiKey ? "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default for toolset access." : "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default.", Tn = ({ item: e, onLogin: t, onRequestLogout: n, onRequestDeleteApiKey: r, texts: i, detailsStyles: a, deleteActionClassName: s = "text-error" }) => {
920
920
  let { credentialsDescriptionClassName: c = "dial-body-paragraph-text", credentialsRowLabelClassName: l = "dial-small-semi-text", credentialsRowDescriptionClassName: u = "dial-small-text", credentialsErrorClassName: d = "dial-caption-text", credentialsKeyCardTitleClassName: f = "dial-tiny-semi-text", credentialsKeyCardDescriptionClassName: p = "dial-tiny-text" } = a?.typography ?? {}, m = e.credentials;
921
921
  if (m == null) return null;
922
- let h = (i?.credentialsManagementDescription ?? Cn)(m.authenticationType), g = m.userStatus === o.SignedIn, _ = !g && m.globalStatus === o.SignedIn;
922
+ let h = (i?.credentialsManagementDescription ?? wn)(m.authenticationType), g = m.userStatus === o.SignedIn, _ = !g && m.globalStatus === o.SignedIn;
923
923
  return /* @__PURE__ */ J("div", {
924
924
  className: "flex flex-col",
925
925
  children: [/* @__PURE__ */ q("div", {
926
926
  className: "px-6 py-4",
927
927
  children: /* @__PURE__ */ q("div", {
928
- className: M("rounded-xl p-3", xn.surface),
928
+ className: M("rounded-xl p-3", Sn.surface),
929
929
  children: /* @__PURE__ */ q(E, {
930
930
  item: e,
931
931
  iconSize: 40,
@@ -935,11 +935,11 @@ var vt = /* @__PURE__ */ function(e) {
935
935
  }), /* @__PURE__ */ J("div", {
936
936
  className: "flex flex-col gap-5 px-6 py-4",
937
937
  children: [/* @__PURE__ */ q("span", {
938
- className: M(c, xn.description),
938
+ className: M(c, Sn.description),
939
939
  children: h
940
940
  }), /* @__PURE__ */ J("div", {
941
941
  className: "flex flex-col",
942
- children: [/* @__PURE__ */ q(Sn, {
942
+ children: [/* @__PURE__ */ q(Cn, {
943
943
  label: i?.personalCredentialsLabel ?? "Personal credentials",
944
944
  description: i?.personalCredentialsDescription ?? "These credentials apply only to your account.",
945
945
  icon: /* @__PURE__ */ q(G, {
@@ -964,10 +964,10 @@ var vt = /* @__PURE__ */ function(e) {
964
964
  keyCardTitleClassName: f,
965
965
  keyCardDescriptionClassName: p,
966
966
  deleteActionClassName: s
967
- }), /* @__PURE__ */ q(Sn, {
967
+ }), /* @__PURE__ */ q(Cn, {
968
968
  label: i?.organizationCredentialsLabel ?? "Organization credentials",
969
969
  description: i?.organizationCredentialsDescription ?? "Once added, these credentials will grant all users in your organization access to this toolset.",
970
- icon: /* @__PURE__ */ q(Ue, {
970
+ icon: /* @__PURE__ */ q(We, {
971
971
  size: z.SM,
972
972
  "aria-hidden": !0,
973
973
  stroke: B
@@ -993,19 +993,19 @@ var vt = /* @__PURE__ */ function(e) {
993
993
  })]
994
994
  })]
995
995
  });
996
- }, Tn = {
996
+ }, En = {
997
997
  skeletonColor: "var(--cat-details-skeleton, var(--bg-control-disable-primary, #dce0e8))",
998
998
  backdrop: "_backdrop_16ka5_2",
999
999
  panel: "_panel_16ka5_6",
1000
1000
  divider: "_divider_16ka5_11",
1001
1001
  content: "_content_16ka5_15",
1002
1002
  publishTitle: "_publishTitle_16ka5_20"
1003
- }, En = /* @__PURE__ */ function(e) {
1003
+ }, Dn = /* @__PURE__ */ function(e) {
1004
1004
  return e.Idle = "idle", e.Loading = "loading", e.Resolved = "resolved", e.Unknown = "unknown", e;
1005
- }({}), Dn = { divider: "_divider_nhloi_1" }, On = 16, kn = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, onLogin: i, onLogout: a, onClose: s, texts: c, deleteActionClassName: l = "text-error" }) => {
1006
- let [u, d] = R(""), [f, p] = R(!1), [m, h] = R(!1), [g, _] = R(!1), v = n === o.SignedIn, y = P((e) => {
1005
+ }({}), On = { divider: "_divider_nhloi_1" }, kn = 16, An = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, onLogin: i, onLogout: a, onClose: s, texts: c, deleteActionClassName: l = "text-error" }) => {
1006
+ let [u, d] = L(""), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L(!1), v = n === o.SignedIn, y = N((e) => {
1007
1007
  d(e ?? ""), p(!1);
1008
- }, []), b = P(async () => {
1008
+ }, []), b = N(async () => {
1009
1009
  if (u.trim().length === 0) {
1010
1010
  p(!0);
1011
1011
  return;
@@ -1025,7 +1025,7 @@ var vt = /* @__PURE__ */ function(e) {
1025
1025
  u,
1026
1026
  i,
1027
1027
  s
1028
- ]), x = P(async () => {
1028
+ ]), x = N(async () => {
1029
1029
  _(!0);
1030
1030
  try {
1031
1031
  await a?.(e, { level: t }), s();
@@ -1048,12 +1048,12 @@ var vt = /* @__PURE__ */ function(e) {
1048
1048
  children: S
1049
1049
  })
1050
1050
  }),
1051
- /* @__PURE__ */ q("div", { className: M("mx-4 h-px", Dn.divider) }),
1051
+ /* @__PURE__ */ q("div", { className: M("mx-4 h-px", On.divider) }),
1052
1052
  !v && /* @__PURE__ */ J("div", {
1053
1053
  className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
1054
1054
  children: [/* @__PURE__ */ J("div", {
1055
1055
  className: "flex items-end gap-2",
1056
- children: [/* @__PURE__ */ q(Ee, {
1056
+ children: [/* @__PURE__ */ q(V, {
1057
1057
  id: `catalog-item-${e.id}-${t}-api-key`,
1058
1058
  type: "password",
1059
1059
  autoComplete: "current-password",
@@ -1063,11 +1063,11 @@ var vt = /* @__PURE__ */ function(e) {
1063
1063
  invalid: f,
1064
1064
  disabled: m,
1065
1065
  containerClassName: "min-w-0 flex-1"
1066
- }), /* @__PURE__ */ q(ke, {
1066
+ }), /* @__PURE__ */ q(Ae, {
1067
1067
  label: m ? void 0 : C,
1068
1068
  "aria-label": m ? T : void 0,
1069
- iconBefore: m ? /* @__PURE__ */ q(Le, {
1070
- size: On,
1069
+ iconBefore: m ? /* @__PURE__ */ q(Re, {
1070
+ size: kn,
1071
1071
  ariaLabel: T
1072
1072
  }) : void 0,
1073
1073
  onClick: b,
@@ -1080,7 +1080,7 @@ var vt = /* @__PURE__ */ function(e) {
1080
1080
  }),
1081
1081
  v && /* @__PURE__ */ q("div", {
1082
1082
  className: "animate-fadeIn px-4 py-3.5",
1083
- children: /* @__PURE__ */ q(mn, {
1083
+ children: /* @__PURE__ */ q(hn, {
1084
1084
  icon: /* @__PURE__ */ q($e, {
1085
1085
  size: 20,
1086
1086
  "aria-hidden": !0,
@@ -1088,11 +1088,11 @@ var vt = /* @__PURE__ */ function(e) {
1088
1088
  }),
1089
1089
  title: O,
1090
1090
  description: ee,
1091
- action: /* @__PURE__ */ q(V, {
1091
+ action: /* @__PURE__ */ q(De, {
1092
1092
  label: g ? void 0 : w,
1093
1093
  "aria-label": g ? E : void 0,
1094
- iconBefore: g ? /* @__PURE__ */ q(Le, {
1095
- size: On,
1094
+ iconBefore: g ? /* @__PURE__ */ q(Re, {
1095
+ size: kn,
1096
1096
  ariaLabel: E
1097
1097
  }) : void 0,
1098
1098
  className: l,
@@ -1103,8 +1103,8 @@ var vt = /* @__PURE__ */ function(e) {
1103
1103
  })
1104
1104
  ]
1105
1105
  });
1106
- }, An = { name: "_name_gfs1p_1" }, jn = (e) => e.isMyApp === !0, Mn = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
1107
- let [a, o] = R(!1), s = P(() => {
1106
+ }, jn = { name: "_name_gfs1p_1" }, Mn = (e) => e.isMyApp === !0, Nn = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
1107
+ let [a, o] = L(!1), s = N(() => {
1108
1108
  if (n) {
1109
1109
  o((e) => !e);
1110
1110
  return;
@@ -1115,14 +1115,14 @@ var vt = /* @__PURE__ */ function(e) {
1115
1115
  t,
1116
1116
  n
1117
1117
  ]);
1118
- if (!jn(e) || r && !r(e)) return null;
1119
- let c = /* @__PURE__ */ q(ke, {
1118
+ if (!Mn(e) || r && !r(e)) return null;
1119
+ let c = /* @__PURE__ */ q(Ae, {
1120
1120
  label: i,
1121
- iconBefore: /* @__PURE__ */ q(ot, {
1121
+ iconBefore: /* @__PURE__ */ q(st, {
1122
1122
  size: z.MD,
1123
1123
  stroke: B
1124
1124
  }),
1125
- iconAfter: /* @__PURE__ */ q(Ge, {
1125
+ iconAfter: /* @__PURE__ */ q(Ke, {
1126
1126
  size: z.MD,
1127
1127
  stroke: B
1128
1128
  }),
@@ -1140,31 +1140,31 @@ var vt = /* @__PURE__ */ function(e) {
1140
1140
  renderOverlay: () => n(e, () => o(!1)),
1141
1141
  children: c
1142
1142
  }) : c;
1143
- }, Nn = (e) => e === y.ApiKey ? "Manage API keys" : "Manage credentials", Pn = {
1144
- [yt.LimitReached]: "bg-error text-error",
1145
- [yt.RunningLow]: "bg-warning text-warning"
1146
- }, Fn = ({ status: e, label: t }) => /* @__PURE__ */ q("div", {
1147
- className: M("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", Pn[e]),
1143
+ }, Pn = (e) => e === y.ApiKey ? "Manage API keys" : "Manage credentials", Fn = {
1144
+ [bt.LimitReached]: "bg-error text-error",
1145
+ [bt.RunningLow]: "bg-warning text-warning"
1146
+ }, In = ({ status: e, label: t }) => /* @__PURE__ */ q("div", {
1147
+ className: M("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", Fn[e]),
1148
1148
  children: t
1149
- }), In = ({ 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: w, onRequestLogout: T, texts: D, detailsStyles: O, isPublishVisible: ee, isPublishPrimary: k, onOpenPublish: A, isUnpublishVisible: te, hasPublishedFolders: ne = !1, isPublishHistoryResolved: re = !0, onRequestPublishHistory: j, onOpenUnpublish: ie, isReadonly: N = !1 }) => {
1150
- let { nameClassName: ae = "dial-body-semi-text", folderLabelClassName: oe = "dial-tiny-text", folderLeafClassName: se = "dial-tiny-semi-text" } = O?.typography ?? {}, ce = e.details?.limits?.status, le = ce == null ? void 0 : /* @__PURE__ */ q(Fn, {
1151
- status: ce,
1152
- label: ce === yt.LimitReached ? D?.limitReachedLabel ?? "Limit reached" : D?.limitRunningLowLabel ?? "Running low"
1153
- }), ue = P(() => {
1149
+ }), Ln = ({ 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: w, onRequestLogout: T, texts: D, detailsStyles: O, isPublishVisible: ee, isPublishPrimary: k, onOpenPublish: A, isUnpublishVisible: te, hasPublishedFolders: ne = !1, isPublishHistoryResolved: re = !0, onRequestPublishHistory: j, onOpenUnpublish: ie, isReadonly: ae = !1 }) => {
1150
+ 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__ */ q(In, {
1151
+ status: R,
1152
+ label: R === bt.LimitReached ? D?.limitReachedLabel ?? "Limit reached" : D?.limitRunningLowLabel ?? "Running low"
1153
+ }), ue = N(() => {
1154
1154
  t?.(e);
1155
- }, [e, t]), de = P(() => {
1155
+ }, [e, t]), de = N(() => {
1156
1156
  l?.(e);
1157
- }, [e, l]), fe = P(() => {
1157
+ }, [e, l]), fe = N(() => {
1158
1158
  A?.();
1159
- }, [A]), pe = P(() => {
1159
+ }, [A]), pe = N(() => {
1160
1160
  ie?.();
1161
- }, [ie]), me = P(() => {
1161
+ }, [ie]), me = N(() => {
1162
1162
  u?.(e);
1163
- }, [e, u]), [he, ve] = R(!1);
1164
- F(() => {
1163
+ }, [e, u]), [he, ve] = L(!1);
1164
+ P(() => {
1165
1165
  ve(!1);
1166
1166
  }, [e.id]);
1167
- let ye = P(() => {
1167
+ let ye = N(() => {
1168
1168
  he || (ve(!0), (async () => {
1169
1169
  try {
1170
1170
  await u?.(e);
@@ -1176,11 +1176,11 @@ var vt = /* @__PURE__ */ function(e) {
1176
1176
  e,
1177
1177
  u,
1178
1178
  he
1179
- ]), [xe, Se] = R(!1);
1180
- F(() => {
1179
+ ]), [be, Se] = L(!1);
1180
+ P(() => {
1181
1181
  Se(!1);
1182
1182
  }, [e.id]);
1183
- let Ce = P(() => {
1183
+ let Ce = N(() => {
1184
1184
  if (a) {
1185
1185
  Se(!0);
1186
1186
  return;
@@ -1190,29 +1190,29 @@ var vt = /* @__PURE__ */ function(e) {
1190
1190
  e,
1191
1191
  i,
1192
1192
  a
1193
- ]), we = P(() => {
1193
+ ]), we = N(() => {
1194
1194
  Se(!1);
1195
- }, []), Te = P(() => {
1195
+ }, []), Te = N(() => {
1196
1196
  m?.(e);
1197
- }, [e, m]), Ee = P(() => {
1197
+ }, [e, m]), Ee = N(() => {
1198
1198
  p?.(e);
1199
- }, [e, p]), V = P(() => {
1199
+ }, [e, p]), V = N(() => {
1200
1200
  g?.(e);
1201
- }, [e, g]), [De, Oe] = R(En.Idle), [Me, Ne] = R(void 0), Pe = L(null);
1202
- F(() => {
1203
- Pe.current = null, Oe(En.Idle), Ne(void 0);
1201
+ }, [e, g]), [De, Oe] = L(Dn.Idle), [ke, Ne] = L(void 0), Pe = I(null);
1202
+ P(() => {
1203
+ Pe.current = null, Oe(Dn.Idle), Ne(void 0);
1204
1204
  }, [e.id]);
1205
- let Fe = P(() => {
1205
+ let Fe = N(() => {
1206
1206
  if (!_ || Pe.current === e.id || !g || e.isMyApp !== !0 || v?.(e) === !1) return;
1207
1207
  let t = e.id;
1208
- Pe.current = t, Oe(En.Loading), (async () => {
1208
+ Pe.current = t, Oe(Dn.Loading), (async () => {
1209
1209
  try {
1210
1210
  let n = await _(e);
1211
1211
  if (Pe.current !== t) return;
1212
- Ne(n), Oe(n == null ? En.Unknown : En.Resolved);
1212
+ Ne(n), Oe(n == null ? Dn.Unknown : Dn.Resolved);
1213
1213
  } catch {
1214
1214
  if (Pe.current !== t) return;
1215
- Ne(void 0), Oe(En.Unknown);
1215
+ Ne(void 0), Oe(Dn.Unknown);
1216
1216
  }
1217
1217
  })();
1218
1218
  }, [
@@ -1220,54 +1220,54 @@ var vt = /* @__PURE__ */ function(e) {
1220
1220
  _,
1221
1221
  g,
1222
1222
  v
1223
- ]), [Ie, H] = R(!1);
1224
- F(() => {
1225
- H(!1);
1223
+ ]), [H, Ie] = L(!1);
1224
+ P(() => {
1225
+ Ie(!1);
1226
1226
  }, [e.id]);
1227
- let Re = P((e) => {
1228
- H(e), e && (Fe(), j?.());
1229
- }, [Fe, j]), ze = P(() => {
1227
+ let Le = N((e) => {
1228
+ Ie(e), e && (Fe(), j?.());
1229
+ }, [Fe, j]), ze = N(() => {
1230
1230
  Fe(), j?.();
1231
- }, [Fe, j]), Be = P(() => {
1231
+ }, [Fe, j]), Be = N(() => {
1232
1232
  j?.();
1233
- }, [j]), U = D?.hasPrimaryAction !== !1 && (r?.(e) ?? (e.type === x.Model || e.type === x.Agent || e.type === x.Prompt)), Ve = !N && !!ie && ne && (te?.(e) ?? !0), Ue = !N && !!ie && !re && te?.(e) === !0, We = !N && !Ve && (ee?.(e) ?? (e.type === x.Model || e.type === x.Toolset || e.type === x.Agent)), Ke = !N && !!l && !!e.isEditable, qe = !N && e.isMyApp === !0 && (o?.(e) ?? !0), Je = s?.(e) ?? !0, Ze = k?.(e) ?? !1, Qe = e.credentials?.authenticationType ?? y.None, W = e.credentials != null && Qe !== y.None ? c(e.credentials) : void 0, et = !N && W != null && (!!S || !!C), at = e.type === x.Toolset && et, st = !!u && (d?.(e) ?? !0), ct = st && !at && (f?.(e) ?? (e.type === x.Skill && !U)), G = st && !ct, pt = !N && e.isMyApp, mt = !N && !!m && e.isMyApp !== !0 && e.sharedWithMe === !0 && (h?.(e) ?? !0), ht = !N && !!g && e.isMyApp === !0 && (!_ || De === En.Unknown || De === En.Resolved && (Me ?? 0) > 0) && (v?.(e) ?? !0), gt = I(() => {
1233
+ }, [j]), U = D?.hasPrimaryAction !== !1 && (r?.(e) ?? (e.type === x.Model || e.type === x.Agent || e.type === x.Prompt)), Ve = !ae && !!ie && ne && (te?.(e) ?? !0), He = !ae && !!ie && !re && te?.(e) === !0, We = !ae && !Ve && (ee?.(e) ?? (e.type === x.Model || e.type === x.Toolset || e.type === x.Agent)), Ge = !ae && !!l && !!e.isEditable, qe = !ae && e.isMyApp === !0 && (o?.(e) ?? !0), Je = s?.(e) ?? !0, Ye = k?.(e) ?? !1, Qe = e.credentials?.authenticationType ?? y.None, W = e.credentials != null && Qe !== y.None ? c(e.credentials) : void 0, et = !ae && W != null && (!!S || !!C), tt = e.type === x.Toolset && et, ot = !!u && (d?.(e) ?? !0), ct = ot && !tt && (f?.(e) ?? (e.type === x.Skill && !U)), lt = ot && !ct, G = !ae && e.isMyApp, mt = !ae && !!m && e.isMyApp !== !0 && e.sharedWithMe === !0 && (h?.(e) ?? !0), ht = !ae && !!g && e.isMyApp === !0 && (!_ || De === Dn.Unknown || De === Dn.Resolved && (ke ?? 0) > 0) && (v?.(e) ?? !0), gt = F(() => {
1234
1234
  let e = [];
1235
1235
  if (!Je && qe && e.push({
1236
1236
  key: "share",
1237
1237
  label: D?.shareLabel ?? "Share",
1238
- Icon: ot,
1238
+ Icon: st,
1239
1239
  iconClassName: "text-secondary",
1240
1240
  onClick: Ce
1241
- }), Ke && e.push({
1241
+ }), Ge && e.push({
1242
1242
  key: "edit",
1243
1243
  label: D?.editActionLabel ?? "Edit",
1244
- Icon: rt,
1244
+ Icon: it,
1245
1245
  iconClassName: "text-secondary",
1246
1246
  onClick: de
1247
- }), G && e.push({
1247
+ }), lt && e.push({
1248
1248
  key: "download",
1249
1249
  label: D?.downloadActionLabel ?? "Download",
1250
- Icon: Xe,
1250
+ Icon: Ze,
1251
1251
  iconClassName: "text-secondary",
1252
1252
  onClick: me
1253
- }), !Ze && We && e.push({
1253
+ }), !Ye && We && e.push({
1254
1254
  key: "publish",
1255
1255
  label: D?.publishLabel ?? "Publish",
1256
- Icon: ft,
1256
+ Icon: pt,
1257
1257
  iconClassName: "text-secondary",
1258
1258
  onClick: fe
1259
- }), !Ze && Ve && e.push({
1259
+ }), !Ye && Ve && e.push({
1260
1260
  key: "unpublish",
1261
1261
  label: D?.unpublishLabel ?? "Unpublish",
1262
- Icon: dt,
1262
+ Icon: ft,
1263
1263
  iconClassName: "text-secondary",
1264
1264
  onClick: pe
1265
1265
  }), ht) {
1266
1266
  let t = D?.revokeShareLabel ?? "Revoke access", n = D?.revokeShareLabelWithCount ?? ((e) => `${t} (${e})`);
1267
1267
  e.push({
1268
1268
  key: "revoke-share",
1269
- label: Me == null ? t : n(Me),
1270
- Icon: ut,
1269
+ label: ke == null ? t : n(ke),
1270
+ Icon: dt,
1271
1271
  danger: !0,
1272
1272
  onClick: V
1273
1273
  });
@@ -1275,26 +1275,26 @@ var vt = /* @__PURE__ */ function(e) {
1275
1275
  return mt && e.push({
1276
1276
  key: "unshare",
1277
1277
  label: D?.unshareLabel ?? "Remove from My List",
1278
- Icon: lt,
1278
+ Icon: ut,
1279
1279
  onClick: Te
1280
- }), pt && e.push({
1280
+ }), G && e.push({
1281
1281
  key: "delete",
1282
1282
  label: D?.deleteActionLabel ?? "Delete",
1283
- Icon: lt,
1283
+ Icon: ut,
1284
1284
  danger: !0,
1285
1285
  onClick: Ee
1286
1286
  }), e;
1287
1287
  }, [
1288
1288
  Je,
1289
1289
  qe,
1290
- Ke,
1291
- G,
1292
- Ze,
1290
+ Ge,
1291
+ lt,
1292
+ Ye,
1293
1293
  We,
1294
1294
  Ve,
1295
- pt,
1295
+ G,
1296
1296
  ht,
1297
- Me,
1297
+ ke,
1298
1298
  mt,
1299
1299
  D,
1300
1300
  Ce,
@@ -1305,7 +1305,7 @@ var vt = /* @__PURE__ */ function(e) {
1305
1305
  Ee,
1306
1306
  V,
1307
1307
  Te
1308
- ]), _t = I(() => gt.map(({ key: e, label: t, Icon: n, iconClassName: r, danger: i, onClick: a }) => ({
1308
+ ]), _t = F(() => gt.map(({ key: e, label: t, Icon: n, iconClassName: r, danger: i, onClick: a }) => ({
1309
1309
  key: e,
1310
1310
  label: t,
1311
1311
  icon: /* @__PURE__ */ q(n, {
@@ -1316,7 +1316,7 @@ var vt = /* @__PURE__ */ function(e) {
1316
1316
  }),
1317
1317
  danger: i,
1318
1318
  onClick: a
1319
- })), [gt]), vt = te?.(e), Y = !N && !!ie && (vt == null || vt && !re), X = !N && !!g && !!_ && e.isMyApp === !0 && (v?.(e) ?? !0), bt = gt.length === 1 && !Ie && !Y && !X ? gt[0] : void 0, [xt, Z] = R(!1), St = Qe === y.ApiKey && W !== n.ManageCredentials, Q = Qe === y.ApiKey && W === n.LogOut, Ct = Qe !== y.ApiKey && W !== n.ManageCredentials && W === n.LogOut, wt = P(() => {
1319
+ })), [gt]), vt = te?.(e), yt = !ae && !!ie && (vt == null || vt && !re), Y = !ae && !!g && !!_ && e.isMyApp === !0 && (v?.(e) ?? !0), X = gt.length === 1 && !H && !yt && !Y ? gt[0] : void 0, [xt, Z] = L(!1), St = Qe === y.ApiKey && W !== n.ManageCredentials, Ct = Qe === y.ApiKey && W === n.LogOut, Q = Qe !== y.ApiKey && W !== n.ManageCredentials && W === n.LogOut, wt = N(() => {
1320
1320
  if (W === n.ManageCredentials) {
1321
1321
  w?.();
1322
1322
  return;
@@ -1337,20 +1337,20 @@ var vt = /* @__PURE__ */ function(e) {
1337
1337
  S,
1338
1338
  w,
1339
1339
  T
1340
- ]), Tt = W === n.ManageCredentials ? (D?.manageCredentialsActionLabel ?? Nn)(Qe) : Qe === y.ApiKey ? W === n.LogOut ? D?.changeApiKeyActionLabel ?? "Change API key" : D?.apiKeyActionLabel ?? "API key" : W === n.LogOut ? D?.logoutActionLabel ?? "Log out" : D?.loginActionLabel ?? "Log in", Et = W === n.ManageCredentials || Qe === y.ApiKey ? /* @__PURE__ */ q($e, {
1340
+ ]), Tt = W === n.ManageCredentials ? (D?.manageCredentialsActionLabel ?? Pn)(Qe) : Qe === y.ApiKey ? W === n.LogOut ? D?.changeApiKeyActionLabel ?? "Change API key" : D?.apiKeyActionLabel ?? "API key" : W === n.LogOut ? D?.logoutActionLabel ?? "Log out" : D?.loginActionLabel ?? "Log in", Et = W === n.ManageCredentials || Qe === y.ApiKey ? /* @__PURE__ */ q($e, {
1341
1341
  size: z.MD,
1342
1342
  stroke: B
1343
- }) : W === n.LogOut ? /* @__PURE__ */ q(nt, {
1343
+ }) : W === n.LogOut ? /* @__PURE__ */ q(rt, {
1344
1344
  size: z.MD,
1345
1345
  stroke: B
1346
- }) : /* @__PURE__ */ q(tt, {
1346
+ }) : /* @__PURE__ */ q(nt, {
1347
1347
  size: z.MD,
1348
1348
  stroke: B
1349
- }), Dt = W === n.ManageCredentials ? /* @__PURE__ */ q(He, {
1349
+ }), Dt = W === n.ManageCredentials ? /* @__PURE__ */ q(Ue, {
1350
1350
  size: z.MD,
1351
1351
  className: "rtl:scale-x-[-1]",
1352
1352
  stroke: B
1353
- }) : St ? /* @__PURE__ */ q(Ge, {
1353
+ }) : St ? /* @__PURE__ */ q(Ke, {
1354
1354
  size: z.MD,
1355
1355
  stroke: B
1356
1356
  }) : void 0, Ot = (t) => {
@@ -1369,7 +1369,7 @@ var vt = /* @__PURE__ */ function(e) {
1369
1369
  onOpenChange: Z,
1370
1370
  trigger: [],
1371
1371
  outsideClosable: !0,
1372
- renderOverlay: () => /* @__PURE__ */ q(kn, {
1372
+ renderOverlay: () => /* @__PURE__ */ q(An, {
1373
1373
  item: e,
1374
1374
  level: b.User,
1375
1375
  status: e.credentials?.userStatus,
@@ -1381,13 +1381,13 @@ var vt = /* @__PURE__ */ function(e) {
1381
1381
  }),
1382
1382
  children: n
1383
1383
  });
1384
- }, kt = ({ key: t, label: n, Icon: r, danger: s, onClick: c }) => t === "share" ? /* @__PURE__ */ q(Mn, {
1384
+ }, kt = ({ key: t, label: n, Icon: r, danger: s, onClick: c }) => t === "share" ? /* @__PURE__ */ q(Nn, {
1385
1385
  item: e,
1386
1386
  onShare: i,
1387
1387
  shareOverlay: a,
1388
1388
  isShareVisible: o,
1389
1389
  label: D?.shareLabel
1390
- }) : /* @__PURE__ */ q(s ? ge : ke, {
1390
+ }) : /* @__PURE__ */ q(s ? ge : Ae, {
1391
1391
  label: n,
1392
1392
  iconBefore: /* @__PURE__ */ q(r, {
1393
1393
  size: z.MD,
@@ -1400,9 +1400,9 @@ var vt = /* @__PURE__ */ function(e) {
1400
1400
  items: _t,
1401
1401
  placement: "bottom-end",
1402
1402
  matchReferenceWidth: !1,
1403
- onOpenChange: Re,
1404
- children: /* @__PURE__ */ q(Ae, {
1405
- icon: /* @__PURE__ */ q(Ye, {
1403
+ onOpenChange: Le,
1404
+ children: /* @__PURE__ */ q(je, {
1405
+ icon: /* @__PURE__ */ q(Xe, {
1406
1406
  size: z.LG,
1407
1407
  "aria-hidden": !0,
1408
1408
  stroke: B
@@ -1416,44 +1416,44 @@ var vt = /* @__PURE__ */ function(e) {
1416
1416
  return Je || !a || !qe ? t : /* @__PURE__ */ q(_e, {
1417
1417
  placement: "bottom-end",
1418
1418
  matchReferenceWidth: !1,
1419
- open: xe,
1419
+ open: be,
1420
1420
  onOpenChange: Se,
1421
1421
  trigger: [],
1422
1422
  outsideClosable: !0,
1423
1423
  renderOverlay: () => a(e, we),
1424
1424
  children: t
1425
1425
  });
1426
- }, jt = at || U || ct || Je && qe || Ze && Ve || Ze && We || et && !at || _t.length > 0 || Ue;
1426
+ }, jt = tt || U || ct || Je && qe || Ye && Ve || Ye && We || et && !tt || _t.length > 0 || He;
1427
1427
  return /* @__PURE__ */ J("div", {
1428
1428
  className: "flex flex-col gap-3 px-6 py-4",
1429
1429
  children: [/* @__PURE__ */ q(E, {
1430
1430
  item: e,
1431
1431
  iconSize: 52,
1432
- nameClassName: M(ae, An.name),
1432
+ nameClassName: M(oe, jn.name),
1433
1433
  featuredLabel: D?.featuredLabel ?? "Featured",
1434
1434
  featuredChipStyle: O?.colors?.featuredChipStyle,
1435
1435
  statusBadge: le,
1436
- footer: e.folder.length > 0 ? /* @__PURE__ */ q(be, {
1436
+ footer: e.folder.length > 0 ? /* @__PURE__ */ q(xe, {
1437
1437
  segments: e.folder,
1438
- labelClassName: oe,
1439
- leafClassName: se
1438
+ labelClassName: se,
1439
+ leafClassName: ce
1440
1440
  }) : void 0
1441
1441
  }), jt && /* @__PURE__ */ J("div", {
1442
1442
  className: "flex flex-wrap items-center gap-2 ps-[60px]",
1443
1443
  children: [
1444
- at && Ot(Q || Ct ? ke : je),
1445
- U && /* @__PURE__ */ q(je, {
1444
+ tt && Ot(Ct || Q ? Ae : Me),
1445
+ U && /* @__PURE__ */ q(Me, {
1446
1446
  label: D?.primaryActionLabel ?? "Use in chat",
1447
- iconBefore: /* @__PURE__ */ q(it, { size: z.MD }),
1447
+ iconBefore: /* @__PURE__ */ q(at, { size: z.MD }),
1448
1448
  onClick: ue,
1449
- disabled: ce === yt.LimitReached
1449
+ disabled: R === bt.LimitReached
1450
1450
  }),
1451
- ct && /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(je, {
1451
+ ct && /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(Me, {
1452
1452
  label: D?.downloadActionLabel ?? "Download",
1453
- iconBefore: he ? /* @__PURE__ */ q(Le, {
1453
+ iconBefore: he ? /* @__PURE__ */ q(Re, {
1454
1454
  size: z.MD,
1455
1455
  "aria-hidden": !0
1456
- }) : /* @__PURE__ */ q(Xe, {
1456
+ }) : /* @__PURE__ */ q(Ze, {
1457
1457
  size: z.MD,
1458
1458
  "aria-hidden": !0,
1459
1459
  stroke: B
@@ -1467,16 +1467,16 @@ var vt = /* @__PURE__ */ function(e) {
1467
1467
  className: "sr-only",
1468
1468
  children: D?.downloadingStatusLabel ?? "Downloading"
1469
1469
  })] }),
1470
- Je && qe && /* @__PURE__ */ q(Mn, {
1470
+ Je && qe && /* @__PURE__ */ q(Nn, {
1471
1471
  item: e,
1472
1472
  onShare: i,
1473
1473
  shareOverlay: a,
1474
1474
  isShareVisible: o,
1475
1475
  label: D?.shareLabel
1476
1476
  }),
1477
- Ze && Ve && /* @__PURE__ */ q(ke, {
1477
+ Ye && Ve && /* @__PURE__ */ q(Ae, {
1478
1478
  label: D?.unpublishLabel ?? "Unpublish",
1479
- iconBefore: /* @__PURE__ */ q(dt, {
1479
+ iconBefore: /* @__PURE__ */ q(ft, {
1480
1480
  size: z.MD,
1481
1481
  "aria-hidden": !0,
1482
1482
  stroke: B
@@ -1485,9 +1485,9 @@ var vt = /* @__PURE__ */ function(e) {
1485
1485
  onMouseEnter: Be,
1486
1486
  onFocus: Be
1487
1487
  }),
1488
- Ze && We && /* @__PURE__ */ q(ke, {
1488
+ Ye && We && /* @__PURE__ */ q(Ae, {
1489
1489
  label: D?.publishLabel ?? "Publish",
1490
- iconBefore: /* @__PURE__ */ q(ft, {
1490
+ iconBefore: /* @__PURE__ */ q(pt, {
1491
1491
  size: z.MD,
1492
1492
  "aria-hidden": !0,
1493
1493
  stroke: B
@@ -1496,12 +1496,12 @@ var vt = /* @__PURE__ */ function(e) {
1496
1496
  onMouseEnter: Be,
1497
1497
  onFocus: Be
1498
1498
  }),
1499
- et && !at && Ot(ke),
1500
- bt ? kt(bt) : (_t.length > 0 || Ue) && At()
1499
+ et && !tt && Ot(Ae),
1500
+ X ? kt(X) : (_t.length > 0 || He) && At()
1501
1501
  ]
1502
1502
  })]
1503
1503
  });
1504
- }, Ln = ({ topics: e, content: t, detailsStyles: n }) => {
1504
+ }, Rn = ({ topics: e, content: t, detailsStyles: n }) => {
1505
1505
  let r = n?.typography?.contentHeadingClassName ?? "dial-small-semi-text", i = n?.typography?.contentClassName ?? "dial-small-text";
1506
1506
  return /* @__PURE__ */ J("div", {
1507
1507
  className: "flex flex-col gap-5",
@@ -1520,22 +1520,22 @@ var vt = /* @__PURE__ */ function(e) {
1520
1520
  }
1521
1521
  }), e && e.length > 0 && /* @__PURE__ */ q("div", {
1522
1522
  className: "flex flex-wrap gap-2",
1523
- children: e.map((e) => /* @__PURE__ */ q(Ut, { label: e }, e))
1523
+ children: e.map((e) => /* @__PURE__ */ q(Wt, { label: e }, e))
1524
1524
  })]
1525
1525
  });
1526
- }, Rn = {
1526
+ }, zn = {
1527
1527
  divider: "_divider_1gzl9_1",
1528
1528
  fileCount: "_fileCount_1gzl9_5",
1529
1529
  body: "_body_1gzl9_9"
1530
- }, zn = (e, t, n = void 0) => e.flatMap((e) => {
1530
+ }, Bn = (e, t, n = void 0) => e.flatMap((e) => {
1531
1531
  let r = {
1532
1532
  node: e,
1533
1533
  parentId: n
1534
1534
  };
1535
- return e.type === St.File || !t.has(e.id) ? [r] : [r, ...zn(e.items, t, e.id)];
1536
- }), Bn = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
1537
- let c = I(() => zn(e, n), [e, n]), l = L({}), [u, d] = R(() => t ?? c[0]?.node.id);
1538
- F(() => {
1535
+ return e.type === Ct.File || !t.has(e.id) ? [r] : [r, ...Bn(e.items, t, e.id)];
1536
+ }), Vn = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
1537
+ let c = F(() => Bn(e, n), [e, n]), l = I({}), [u, d] = L(() => t ?? c[0]?.node.id);
1538
+ P(() => {
1539
1539
  u != null && l.current[u]?.focus();
1540
1540
  }, []);
1541
1541
  let f = (e) => {
@@ -1558,14 +1558,14 @@ var vt = /* @__PURE__ */ function(e) {
1558
1558
  break;
1559
1559
  }
1560
1560
  case "ArrowRight":
1561
- e.preventDefault(), o.node.type === St.Folder && !n.has(o.node.id) && r(o.node.id);
1561
+ e.preventDefault(), o.node.type === Ct.Folder && !n.has(o.node.id) && r(o.node.id);
1562
1562
  break;
1563
1563
  case "ArrowLeft":
1564
- e.preventDefault(), o.node.type === St.Folder && n.has(o.node.id) ? r(o.node.id) : o.parentId != null && f(o.parentId);
1564
+ e.preventDefault(), o.node.type === Ct.Folder && n.has(o.node.id) ? r(o.node.id) : o.parentId != null && f(o.parentId);
1565
1565
  break;
1566
1566
  case "Enter":
1567
1567
  case " ":
1568
- e.preventDefault(), o.node.type === St.Folder ? r(o.node.id) : i(o.node.id);
1568
+ e.preventDefault(), o.node.type === Ct.Folder ? r(o.node.id) : i(o.node.id);
1569
1569
  break;
1570
1570
  case "Escape":
1571
1571
  e.preventDefault(), a();
@@ -1574,7 +1574,7 @@ var vt = /* @__PURE__ */ function(e) {
1574
1574
  }
1575
1575
  }, 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) => {
1576
1576
  let a = e.id === u;
1577
- if (e.type === St.File) {
1577
+ if (e.type === Ct.File) {
1578
1578
  let n = e.id === t;
1579
1579
  return /* @__PURE__ */ q("div", {
1580
1580
  ref: (t) => {
@@ -1604,7 +1604,7 @@ var vt = /* @__PURE__ */ function(e) {
1604
1604
  onClick: () => r(e.id),
1605
1605
  onFocus: () => d(e.id),
1606
1606
  children: [
1607
- /* @__PURE__ */ q(Qe, {
1607
+ /* @__PURE__ */ q(W, {
1608
1608
  size: z.SM,
1609
1609
  className: "shrink-0",
1610
1610
  "aria-hidden": !0,
@@ -1614,7 +1614,7 @@ var vt = /* @__PURE__ */ function(e) {
1614
1614
  className: M("min-w-0 flex-1 truncate", s),
1615
1615
  children: e.name
1616
1616
  }),
1617
- /* @__PURE__ */ q(Ge, {
1617
+ /* @__PURE__ */ q(Ke, {
1618
1618
  size: z.SM,
1619
1619
  className: M("shrink-0 transition-transform", !o && "-rotate-90 rtl:rotate-90"),
1620
1620
  "aria-hidden": !0,
@@ -1633,8 +1633,8 @@ var vt = /* @__PURE__ */ function(e) {
1633
1633
  onKeyDown: p,
1634
1634
  children: e.map((e) => h(e))
1635
1635
  });
1636
- }, Vn = () => void 0, Hn = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = Vn, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = Vn, 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: _ }) => {
1637
- 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 = {
1636
+ }, Hn = () => void 0, Un = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = Hn, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = Hn, 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: _ }) => {
1637
+ 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 = Qt(S) > 1, w = en(S, r) ?? "", T = {
1638
1638
  nodes: S,
1639
1639
  selectedFileId: r,
1640
1640
  expandedFolderIds: o,
@@ -1664,24 +1664,24 @@ var vt = /* @__PURE__ */ function(e) {
1664
1664
  matchReferenceWidth: !1,
1665
1665
  listClassName: "w-[280px] shadow-md",
1666
1666
  placement: "bottom-start",
1667
- renderOverlay: () => g ? g(T) : /* @__PURE__ */ q(Bn, { ...T }),
1668
- children: /* @__PURE__ */ q(Te, {
1667
+ renderOverlay: () => g ? g(T) : /* @__PURE__ */ q(Vn, { ...T }),
1668
+ children: /* @__PURE__ */ q(Ee, {
1669
1669
  label: w,
1670
- size: ve.Small,
1670
+ size: ye.Small,
1671
1671
  isOpen: c,
1672
1672
  onClick: () => l(!c)
1673
1673
  })
1674
1674
  }), /* @__PURE__ */ q("span", {
1675
- className: M("shrink-0", b, Rn.fileCount),
1676
- children: d(Zt(S))
1675
+ className: M("shrink-0", b, zn.fileCount),
1676
+ children: d(Qt(S))
1677
1677
  })]
1678
1678
  }),
1679
1679
  x && /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q("p", {
1680
1680
  className: M("m-0", v),
1681
1681
  children: t
1682
- }), /* @__PURE__ */ q("div", { className: M("shrink-0", Rn.divider) })] }),
1682
+ }), /* @__PURE__ */ q("div", { className: M("shrink-0", zn.divider) })] }),
1683
1683
  /* @__PURE__ */ J("div", {
1684
- className: M("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && Rn.body, h == null && v),
1684
+ className: M("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && zn.body, h == null && v),
1685
1685
  children: [a && /* @__PURE__ */ q("span", {
1686
1686
  role: "status",
1687
1687
  className: "sr-only",
@@ -1712,10 +1712,10 @@ var vt = /* @__PURE__ */ function(e) {
1712
1712
  })
1713
1713
  ]
1714
1714
  });
1715
- }, Un = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), Wn = /* @__PURE__ */ function(e) {
1715
+ }, Wn = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), Gn = /* @__PURE__ */ function(e) {
1716
1716
  return e.Default = "default", e.Warning = "warning", e.Danger = "danger", e;
1717
- }({}), Gn = (e) => !Number.isFinite(e.used) || !Number.isFinite(e.total) ? 0 : Math.min(Math.max(e.used, 0), Math.max(e.total, 0)), Kn = (e) => Number.isFinite(e) && e > 0 ? e : 1, qn = ({ used: e, total: t, valueLabel: n }) => n ?? `${Un.format(e)} / ${Un.format(t)}`, Jn = ({ total: e }) => Number.isFinite(e) && e > 0, Yn = (e) => e.isUnlimited !== !0 && Jn(e), Xn = (e) => Jn(e) ? Math.max(e.used, 0) / e.total : 0, Zn = (e) => {
1718
- let t = Xn(e);
1717
+ }({}), Kn = (e) => !Number.isFinite(e.used) || !Number.isFinite(e.total) ? 0 : Math.min(Math.max(e.used, 0), Math.max(e.total, 0)), qn = (e) => Number.isFinite(e) && e > 0 ? e : 1, Jn = ({ used: e, total: t, valueLabel: n }) => n ?? `${Wn.format(e)} / ${Wn.format(t)}`, Yn = ({ total: e }) => Number.isFinite(e) && e > 0, Xn = (e) => e.isUnlimited !== !0 && Yn(e), Zn = (e) => Yn(e) ? Math.max(e.used, 0) / e.total : 0, Qn = (e) => {
1718
+ let t = Zn(e);
1719
1719
  return t >= 1 ? "danger" : t >= .75 ? "warning" : "default";
1720
1720
  }, $ = {
1721
1721
  sectionHeading: "_sectionHeading_10rw6_1",
@@ -1728,12 +1728,12 @@ var vt = /* @__PURE__ */ function(e) {
1728
1728
  progressFillDanger: "_progressFillDanger_10rw6_32",
1729
1729
  resetLabel: "_resetLabel_10rw6_39",
1730
1730
  valueDanger: "_valueDanger_10rw6_44"
1731
- }, Qn = ({ row: e, layout: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => {
1732
- let s = qn(e), c = Zn(e), l = /* @__PURE__ */ q(Me, {
1733
- value: Gn(e),
1734
- max: Kn(e.total),
1735
- size: ve.Small,
1736
- className: M("!h-1 w-full", $.progressTrack, c === Wn.Default && $.progressFillDefault, c === Wn.Warning && $.progressFillWarning, c === Wn.Danger && $.progressFillDanger),
1731
+ }, $n = ({ row: e, layout: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => {
1732
+ let s = Jn(e), c = Qn(e), l = /* @__PURE__ */ q(Ne, {
1733
+ value: Kn(e),
1734
+ max: qn(e.total),
1735
+ size: ye.Small,
1736
+ className: M("!h-1 w-full", $.progressTrack, c === Gn.Default && $.progressFillDefault, c === Gn.Warning && $.progressFillWarning, c === Gn.Danger && $.progressFillDanger),
1737
1737
  "aria-label": e.label,
1738
1738
  "aria-valuetext": e.ariaLabel ?? s
1739
1739
  }), u = e.captionLabel != null && /* @__PURE__ */ q("span", {
@@ -1748,7 +1748,7 @@ var vt = /* @__PURE__ */ function(e) {
1748
1748
  className: "sr-only",
1749
1749
  children: e.resetAriaLabel
1750
1750
  })] });
1751
- return t === Z.Stacked ? /* @__PURE__ */ J("li", {
1751
+ return t === St.Stacked ? /* @__PURE__ */ J("li", {
1752
1752
  className: M("flex flex-col gap-2 border-b py-3 first:pt-0 last:border-b-0 last:pb-0", $.divider),
1753
1753
  children: [
1754
1754
  /* @__PURE__ */ J("div", {
@@ -1757,12 +1757,12 @@ var vt = /* @__PURE__ */ function(e) {
1757
1757
  className: M("min-w-0 break-words", n, $.valuePrimary),
1758
1758
  children: e.label
1759
1759
  }), /* @__PURE__ */ q("span", {
1760
- className: M("shrink-0", i, c === Wn.Danger ? $.valueDanger : $.valuePrimary),
1760
+ className: M("shrink-0", i, c === Gn.Danger ? $.valueDanger : $.valuePrimary),
1761
1761
  children: s
1762
1762
  })]
1763
1763
  }),
1764
1764
  u,
1765
- Yn(e) ? l : e.noteLabel != null && /* @__PURE__ */ q("span", {
1765
+ Xn(e) ? l : e.noteLabel != null && /* @__PURE__ */ q("span", {
1766
1766
  className: M(o, $.label),
1767
1767
  children: e.noteLabel
1768
1768
  }),
@@ -1780,7 +1780,7 @@ var vt = /* @__PURE__ */ function(e) {
1780
1780
  u,
1781
1781
  d
1782
1782
  ]
1783
- }), Yn(e) ? /* @__PURE__ */ J("div", {
1783
+ }), Xn(e) ? /* @__PURE__ */ J("div", {
1784
1784
  className: "flex w-32 shrink-0 flex-col items-end gap-2",
1785
1785
  children: [/* @__PURE__ */ q("div", {
1786
1786
  className: M("flex gap-1", i),
@@ -1806,12 +1806,12 @@ var vt = /* @__PURE__ */ function(e) {
1806
1806
  })]
1807
1807
  })]
1808
1808
  });
1809
- }, $n = ({ group: e, sectionClassName: t, layout: n, labelClassName: r, captionClassName: i, valueClassName: a, noteValueClassName: o, noteClassName: s }) => /* @__PURE__ */ J("section", { children: [/* @__PURE__ */ q("p", {
1809
+ }, er = ({ group: e, sectionClassName: t, layout: n, labelClassName: r, captionClassName: i, valueClassName: a, noteValueClassName: o, noteClassName: s }) => /* @__PURE__ */ J("section", { children: [/* @__PURE__ */ q("p", {
1810
1810
  className: M("mb-3 mt-0", t, $.sectionHeading),
1811
1811
  children: e.label
1812
1812
  }), /* @__PURE__ */ q("ul", {
1813
1813
  className: "m-0 flex list-none flex-col p-0",
1814
- children: e.rows.map((e) => /* @__PURE__ */ q(Qn, {
1814
+ children: e.rows.map((e) => /* @__PURE__ */ q($n, {
1815
1815
  row: e,
1816
1816
  layout: n,
1817
1817
  labelClassName: r,
@@ -1820,7 +1820,7 @@ var vt = /* @__PURE__ */ function(e) {
1820
1820
  noteValueClassName: o,
1821
1821
  noteClassName: s
1822
1822
  }, e.label))
1823
- })] }), er = ({ limits: e, layout: t = Z.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 }) => {
1823
+ })] }), tr = ({ 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 }) => {
1824
1824
  let d = e?.groups.filter((e) => e.rows.length > 0);
1825
1825
  return d == null || d.length === 0 ? null : /* @__PURE__ */ J("div", {
1826
1826
  className: "flex flex-col gap-6",
@@ -1835,7 +1835,7 @@ var vt = /* @__PURE__ */ function(e) {
1835
1835
  "--lt-progress-fill-warning": u?.progressFillWarning,
1836
1836
  "--lt-progress-fill-danger": u?.progressFillDanger
1837
1837
  }),
1838
- children: [d.map((e) => /* @__PURE__ */ q($n, {
1838
+ children: [d.map((e) => /* @__PURE__ */ q(er, {
1839
1839
  group: e,
1840
1840
  layout: t,
1841
1841
  sectionClassName: s,
@@ -1849,13 +1849,13 @@ var vt = /* @__PURE__ */ function(e) {
1849
1849
  children: l
1850
1850
  })]
1851
1851
  });
1852
- }, tr = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ q("div", {
1852
+ }, nr = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ q("div", {
1853
1853
  className: "flex flex-col gap-4",
1854
1854
  children: e.map((e, s) => /* @__PURE__ */ J("div", {
1855
1855
  className: "flex flex-col gap-4",
1856
- children: [s > 0 && /* @__PURE__ */ q("div", { className: M("shrink-0 border-b", Tn.divider) }), /* @__PURE__ */ q("div", {
1856
+ children: [s > 0 && /* @__PURE__ */ q("div", { className: M("shrink-0 border-b", En.divider) }), /* @__PURE__ */ q("div", {
1857
1857
  className: "px-6",
1858
- children: /* @__PURE__ */ q(nn, {
1858
+ children: /* @__PURE__ */ q(rn, {
1859
1859
  sectionLabel: e.title,
1860
1860
  values: e.specs,
1861
1861
  sectionClassName: t,
@@ -1867,7 +1867,7 @@ var vt = /* @__PURE__ */ function(e) {
1867
1867
  })
1868
1868
  })]
1869
1869
  }, s))
1870
- }) : null, nr = ({ pricing: e, pricesSectionLabel: t = "Token pricing", limitsSectionLabel: n = "Usage limits", labelClassName: r = "dial-small-semi-text", valueClassName: i = "dial-small-text", sectionClassName: a = "dial-caption-text" }) => {
1870
+ }) : null, rr = ({ pricing: e, pricesSectionLabel: t = "Token pricing", limitsSectionLabel: n = "Usage limits", labelClassName: r = "dial-small-semi-text", valueClassName: i = "dial-small-text", sectionClassName: a = "dial-caption-text" }) => {
1871
1871
  if (e == null) return null;
1872
1872
  let o = e.prices?.map((e) => ({
1873
1873
  label: e.label,
@@ -1878,13 +1878,13 @@ var vt = /* @__PURE__ */ function(e) {
1878
1878
  }));
1879
1879
  return /* @__PURE__ */ J("div", {
1880
1880
  className: "flex flex-col gap-4",
1881
- children: [/* @__PURE__ */ q(nn, {
1881
+ children: [/* @__PURE__ */ q(rn, {
1882
1882
  sectionLabel: t,
1883
1883
  values: o ?? [],
1884
1884
  labelClassName: r,
1885
1885
  valueClassName: i,
1886
1886
  sectionClassName: a
1887
- }), /* @__PURE__ */ q(nn, {
1887
+ }), /* @__PURE__ */ q(rn, {
1888
1888
  sectionLabel: n,
1889
1889
  values: s ?? [],
1890
1890
  labelClassName: r,
@@ -1892,32 +1892,32 @@ var vt = /* @__PURE__ */ function(e) {
1892
1892
  sectionClassName: a
1893
1893
  })]
1894
1894
  });
1895
- }, rr = {
1895
+ }, ir = {
1896
1896
  container: "_container_ddi3i_1",
1897
1897
  header: "_header_ddi3i_5",
1898
1898
  cell: "_cell_ddi3i_10",
1899
1899
  evenRow: "_evenRow_ddi3i_17"
1900
- }, ir = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
1900
+ }, ar = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
1901
1901
  let a = n ?? `repeat(${e.length}, 1fr)`;
1902
1902
  return /* @__PURE__ */ J("div", {
1903
- className: M(rr.container, "grid overflow-hidden rounded-md"),
1903
+ className: M(ir.container, "grid overflow-hidden rounded-md"),
1904
1904
  style: { gridTemplateColumns: a },
1905
1905
  children: [e.map((e) => /* @__PURE__ */ q("div", {
1906
- className: M("px-2 py-1 text-start", r, rr.header),
1906
+ className: M("px-2 py-1 text-start", r, ir.header),
1907
1907
  children: e
1908
1908
  }, e)), t.map((e, t) => /* @__PURE__ */ q(ie, { children: e.map((e, n) => /* @__PURE__ */ q("div", {
1909
- className: M("px-2 py-1.5", i, rr.cell, t % 2 == 1 ? rr.evenRow : void 0),
1909
+ className: M("px-2 py-1.5", i, ir.cell, t % 2 == 1 ? ir.evenRow : void 0),
1910
1910
  children: e
1911
1911
  }, n)) }, t))]
1912
1912
  });
1913
- }, ar = {
1913
+ }, or = {
1914
1914
  divider: "_divider_1f796_1",
1915
1915
  description: "_description_1f796_5",
1916
1916
  code: "_code_1f796_9"
1917
- }, or = ({ 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__ */ q("div", {
1917
+ }, sr = ({ 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__ */ q("div", {
1918
1918
  className: "flex flex-col",
1919
1919
  children: e.tools.map((e, a) => /* @__PURE__ */ J("div", {
1920
- className: M("flex flex-col gap-3 px-[22px] py-4", a > 0 ? ar.divider : void 0),
1920
+ className: M("flex flex-col gap-3 px-[22px] py-4", a > 0 ? or.divider : void 0),
1921
1921
  children: [
1922
1922
  /* @__PURE__ */ J("div", {
1923
1923
  className: "flex flex-col gap-1",
@@ -1925,11 +1925,11 @@ var vt = /* @__PURE__ */ function(e) {
1925
1925
  className: t,
1926
1926
  children: e.name
1927
1927
  }), e.description != null && /* @__PURE__ */ q("p", {
1928
- className: M("m-0", n, ar.description),
1928
+ className: M("m-0", n, or.description),
1929
1929
  children: e.description
1930
1930
  })]
1931
1931
  }),
1932
- e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ q(ir, {
1932
+ e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ q(ar, {
1933
1933
  columns: [
1934
1934
  "Name",
1935
1935
  "Type",
@@ -1938,11 +1938,11 @@ var vt = /* @__PURE__ */ function(e) {
1938
1938
  columnsTemplate: "1fr 1fr auto",
1939
1939
  rows: e.inputParams.map((e) => [
1940
1940
  /* @__PURE__ */ q("code", {
1941
- className: M("text-inherit border-none bg-transparent p-0", ar.code),
1941
+ className: M("text-inherit border-none bg-transparent p-0", or.code),
1942
1942
  children: e.name
1943
1943
  }, "name"),
1944
1944
  /* @__PURE__ */ q("code", {
1945
- className: M("text-inherit border-none bg-transparent p-0", ar.code),
1945
+ className: M("text-inherit border-none bg-transparent p-0", or.code),
1946
1946
  children: e.type
1947
1947
  }, "type"),
1948
1948
  e.isRequired ? "✓" : "—"
@@ -1950,10 +1950,10 @@ var vt = /* @__PURE__ */ function(e) {
1950
1950
  headingClassName: r,
1951
1951
  cellClassName: i
1952
1952
  }),
1953
- e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ q(ir, {
1953
+ e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ q(ar, {
1954
1954
  columns: ["Key", "Value"],
1955
1955
  rows: e.annotations.map((e) => [/* @__PURE__ */ q("code", {
1956
- className: M("text-inherit border-none bg-transparent p-0", ar.code),
1956
+ className: M("text-inherit border-none bg-transparent p-0", or.code),
1957
1957
  children: e.key
1958
1958
  }, "key"), e.value]),
1959
1959
  headingClassName: r,
@@ -1961,24 +1961,24 @@ var vt = /* @__PURE__ */ function(e) {
1961
1961
  })
1962
1962
  ]
1963
1963
  }, e.name))
1964
- }), sr = new Set([x.Prompt, x.Skill]), cr = (e) => e?.resource?.endpointUrl != null || (e?.endpoints?.length ?? 0) > 0, lr = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), ur = async () => void 0, dr = [], fr = [], pr = [
1964
+ }), cr = new Set([x.Prompt, x.Skill]), lr = (e) => e?.resource?.endpointUrl != null || (e?.endpoints?.length ?? 0) > 0, ur = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), dr = async () => void 0, fr = [], pr = [], mr = [
1965
1965
  "All shared configurations will be lost",
1966
1966
  "Users who rely on it will lose access",
1967
1967
  "Cannot be undone"
1968
- ], mr = [
1968
+ ], hr = [
1969
1969
  "You will lose access to this item",
1970
1970
  "Other people keep their access",
1971
1971
  "You will need a new invitation to get it back"
1972
- ], hr = [
1972
+ ], gr = [
1973
1973
  "Everyone loses access to the published copy",
1974
1974
  "Your own copy is not deleted",
1975
1975
  "You can publish it again later"
1976
- ], gr = [
1976
+ ], _r = [
1977
1977
  "Everyone you shared it with loses access",
1978
1978
  "Existing share links stop working",
1979
1979
  "You keep full access — nothing is deleted"
1980
- ], _r = (e) => e === y.ApiKey ? "Toolset API keys" : "Toolset credentials", vr = (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?", yr = new Set([X.Delete, X.Unshare]), br = ({ 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: _ = dr, publishExpandedPaths: v, onPublishExpandedPathsChange: y, publishLoadingPaths: w, hasPublishWriteAccess: T, publishDefaultAuthor: E, onPublish: D, onPublishSuccess: O, onPublishError: ee, onCreatePublishFolder: k, publishLabels: A, ruleSourceOptions: te = fr, onFetchExistingRules: ne, shareOverlay: re, isShareVisible: ie, isSharePrimary: N, onEdit: ae, onDownload: oe, isDownloadVisible: se, isDownloadPrimary: ce, onLoadContentFile: le, onLoadContentFilePreview: ue, renderContentFilePreview: de, renderContentFileTree: fe, renderCredentials: pe, onDelete: z, onUnshare: ge, isUnshareVisible: _e, onRevokeShare: ye, onFetchRecipientsCount: be, isRevokeShareVisible: xe, onUnpublish: Ce, isUnpublishVisible: we, onLogin: Te, onLogout: Ee, texts: V, styles: De, limitsFooterNote: Oe }) => {
1981
- let { subViewTitleClassName: ke = "dial-body-semi-text", overviewSectionClassName: Ae = "dial-caption-text", overviewLabelClassName: je = "dial-small-semi-text", overviewValueClassName: Me = "dial-small-text", overviewValueTrueClassName: Pe = "dial-small-text", confirmMessageClassName: Fe = "dial-small-text" } = De?.typography ?? {}, H = De?.colors, Le = j({
1980
+ ], vr = (e) => e === y.ApiKey ? "Toolset API keys" : "Toolset credentials", yr = (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?", br = new Set([X.Delete, X.Unshare]), xr = ({ 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: _ = fr, publishExpandedPaths: v, onPublishExpandedPathsChange: y, publishLoadingPaths: w, hasPublishWriteAccess: T, publishDefaultAuthor: E, onPublish: D, onPublishSuccess: O, onPublishError: ee, onCreatePublishFolder: k, publishLabels: A, ruleSourceOptions: te = pr, onFetchExistingRules: ne, shareOverlay: re, isShareVisible: ie, isSharePrimary: ae, onEdit: oe, onDownload: se, isDownloadVisible: ce, isDownloadPrimary: R, onLoadContentFile: le, onLoadContentFilePreview: ue, renderContentFilePreview: de, renderContentFileTree: fe, renderCredentials: pe, onDelete: z, onUnshare: ge, isUnshareVisible: _e, onRevokeShare: ve, onFetchRecipientsCount: be, isRevokeShareVisible: xe, onUnpublish: Se, isUnpublishVisible: we, onLogin: Te, onLogout: Ee, texts: V, styles: De, limitsFooterNote: Oe }) => {
1981
+ let { subViewTitleClassName: ke = "dial-body-semi-text", overviewSectionClassName: Ae = "dial-caption-text", overviewLabelClassName: je = "dial-small-semi-text", overviewValueClassName: Me = "dial-small-text", overviewValueTrueClassName: Ne = "dial-small-text", confirmMessageClassName: Fe = "dial-small-text" } = De?.typography ?? {}, H = De?.colors, Le = j({
1982
1982
  "--cat-details-backdrop": H?.backdrop,
1983
1983
  "--cat-details-bg": H?.background,
1984
1984
  "--cat-details-border": H?.border,
@@ -2009,36 +2009,36 @@ var vt = /* @__PURE__ */ function(e) {
2009
2009
  "--cat-cred-card-icon": H?.credentialsCardIcon,
2010
2010
  "--cat-cred-card-title-text": H?.credentialsCardTitleText,
2011
2011
  "--cat-cred-card-description-text": H?.credentialsCardDescriptionText
2012
- }), [ze, Be] = R(r), [U, Ve] = R(""), [He, Ue] = R(!1), [We, Ge] = R([]), [qe, Je] = R(!1), [Ye, Xe] = R(!1), [Ze, Qe] = R(!1), $e = L(null), W = e.details?.promptContent, et = W?.selectedFileId, [tt, nt] = R(null), [rt, it] = R(!1), [at, ot] = R(/* @__PURE__ */ new Set()), [st, ct] = R(!1), lt = L(null), G = L(0), ut = P((e) => {
2012
+ }), [Re, Be] = L(r), [U, Ve] = L(""), [He, Ue] = L(!1), [We, Ge] = L([]), [Ke, Je] = L(!1), [Ye, Xe] = L(!1), [Ze, Qe] = L(!1), W = I(null), $e = e.details?.promptContent, et = $e?.selectedFileId, [tt, nt] = L(null), [rt, it] = L(!1), [at, ot] = L(/* @__PURE__ */ new Set()), [st, ct] = L(!1), lt = I(null), ut = I(0), G = N((e) => {
2013
2013
  let t = lt.current, n = e?.preview?.type === Q.Image ? e.preview.url : null;
2014
2014
  t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), lt.current = n, nt(e);
2015
2015
  }, []);
2016
- F(() => {
2017
- G.current += 1, ut(null), it(!1), ot(Qt(W?.files ?? [])), ct(!1);
2018
- }, [e.id, et]), F(() => () => {
2016
+ P(() => {
2017
+ ut.current += 1, G(null), it(!1), ot($t($e?.files ?? [])), ct(!1);
2018
+ }, [e.id, et]), P(() => () => {
2019
2019
  let e = lt.current;
2020
2020
  e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
2021
2021
  }, []);
2022
- let dt = P((e) => {
2022
+ let dt = N((e) => {
2023
2023
  ot((t) => {
2024
2024
  let n = new Set(t);
2025
2025
  return n.has(e) ? n.delete(e) : n.add(e), n;
2026
2026
  });
2027
- }, []), ft = P(async (e) => {
2027
+ }, []), ft = N(async (e) => {
2028
2028
  if (e === et) {
2029
- G.current += 1, ut(null), it(!1);
2029
+ ut.current += 1, G(null), it(!1);
2030
2030
  return;
2031
2031
  }
2032
2032
  if (de == null && le == null && ue == null) return;
2033
2033
  if (de != null) {
2034
- G.current += 1, ut({
2034
+ ut.current += 1, G({
2035
2035
  id: e,
2036
2036
  preview: null
2037
2037
  }), it(!1);
2038
2038
  return;
2039
2039
  }
2040
- let t = ++G.current;
2041
- ut({
2040
+ let t = ++ut.current;
2041
+ G({
2042
2042
  id: e,
2043
2043
  preview: null
2044
2044
  }), it(!0);
@@ -2047,63 +2047,63 @@ var vt = /* @__PURE__ */ function(e) {
2047
2047
  type: Q.Markdown,
2048
2048
  text: e
2049
2049
  }) : await ue(e);
2050
- if (G.current !== t) {
2050
+ if (ut.current !== t) {
2051
2051
  n?.type === Q.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
2052
2052
  return;
2053
2053
  }
2054
- ut({
2054
+ G({
2055
2055
  id: e,
2056
2056
  preview: n ?? null
2057
2057
  });
2058
2058
  } catch {
2059
- if (G.current !== t) return;
2060
- ut({
2059
+ if (ut.current !== t) return;
2060
+ G({
2061
2061
  id: e,
2062
2062
  preview: null
2063
2063
  });
2064
2064
  } finally {
2065
- G.current === t && it(!1);
2065
+ ut.current === t && it(!1);
2066
2066
  }
2067
2067
  }, [
2068
2068
  et,
2069
2069
  le,
2070
2070
  ue,
2071
2071
  de,
2072
- ut
2073
- ]), _t = tt?.id ?? et, vt = () => tt == null ? null : tt.preview == null ? {
2072
+ G
2073
+ ]), pt = tt?.id ?? et, vt = () => tt == null ? null : tt.preview == null ? {
2074
2074
  type: Q.Text,
2075
2075
  text: V?.contentFileErrorLabel ?? "Failed to load this file."
2076
- } : tt.preview, yt = tt != null && de != null ? de(tt.id, $t(W?.files ?? [], tt.id) ?? "") : void 0, bt = P(() => {
2077
- if (!h || $e.current === e.id) return;
2076
+ } : tt.preview, yt = tt != null && de != null ? de(tt.id, en($e?.files ?? [], tt.id) ?? "") : void 0, bt = N(() => {
2077
+ if (!h || W.current === e.id) return;
2078
2078
  let t = e.id;
2079
- $e.current = t, Je(!0), Xe(!1), (async () => {
2079
+ W.current = t, Je(!0), Xe(!1), (async () => {
2080
2080
  try {
2081
2081
  let n = await h(e);
2082
- if ($e.current !== t) return;
2082
+ if (W.current !== t) return;
2083
2083
  Ge(n), Qe(!0), Je(!1);
2084
2084
  } catch {
2085
- if ($e.current !== t) return;
2086
- Xe(!0), Je(!1), $e.current = null;
2085
+ if (W.current !== t) return;
2086
+ Xe(!0), Je(!1), W.current = null;
2087
2087
  }
2088
2088
  })();
2089
2089
  }, [h, e]);
2090
- F(() => {
2090
+ P(() => {
2091
2091
  He && bt();
2092
2092
  }, [He, bt]);
2093
- let xt = P((e, t) => {
2094
- $e.current = null, Qe(!1), bt(), O?.(e, t);
2095
- }, [bt, O]), Z = gt({
2093
+ let xt = N((e, t) => {
2094
+ W.current = null, Qe(!1), bt(), O?.(e, t);
2095
+ }, [bt, O]), Z = _t({
2096
2096
  item: e,
2097
2097
  history: We,
2098
2098
  folderItems: _,
2099
2099
  hasWriteAccess: T,
2100
2100
  defaultAuthor: E,
2101
2101
  onCreateFolder: k,
2102
- onPublish: D ?? ur,
2102
+ onPublish: D ?? dr,
2103
2103
  onPublishSuccess: xt,
2104
2104
  onPublishError: ee,
2105
2105
  onFetchExistingRules: ne
2106
- }), St = e.type === x.Toolset && g(e.credentials), Ct = I(() => ht({
2106
+ }), St = e.type === x.Toolset && g(e.credentials), Ct = F(() => gt({
2107
2107
  hasSelectedFolder: Z.selectedFolderPath != null,
2108
2108
  hasExistingPublicationInFolder: Z.hasExistingPublicationInFolder,
2109
2109
  hasWriteAccess: Z.hasWriteAccess,
@@ -2115,25 +2115,25 @@ var vt = /* @__PURE__ */ function(e) {
2115
2115
  Z.hasWriteAccess,
2116
2116
  Z.isSubmitting,
2117
2117
  Z.hasSubmitError
2118
- ]), [wt, Tt] = R(!1), [Et, Dt] = R(null), [Ot, kt] = R(!1), [At, jt] = R(null), [Mt, Nt] = R(null), [Pt, Ft] = R(null);
2119
- F(() => {
2118
+ ]), [wt, Tt] = L(!1), [Et, Dt] = L(null), [Ot, kt] = L(!1), [At, jt] = L(null), [Mt, Nt] = L(null), [Pt, Ft] = L(null);
2119
+ P(() => {
2120
2120
  Be(r);
2121
- }, [e.id, r]), F(() => {
2122
- Ve(""), Ue(!1), Z.reset(), Ge([]), Xe(!1), Je(!1), Qe(!1), $e.current = null, Ft(null), Tt(!1), Dt(null), kt(!1), jt(null), Nt(null);
2121
+ }, [e.id, r]), P(() => {
2122
+ Ve(""), Ue(!1), Z.reset(), Ge([]), Xe(!1), Je(!1), Qe(!1), W.current = null, Ft(null), Tt(!1), Dt(null), kt(!1), jt(null), Nt(null);
2123
2123
  }, [e.id]);
2124
- let It = !a && !!Ce && we?.(e) === !0;
2125
- F(() => {
2124
+ let It = !a && !!Se && we?.(e) === !0;
2125
+ P(() => {
2126
2126
  It && bt();
2127
2127
  }, [It, bt]);
2128
- let Lt = P(() => Tt(!0), []), Rt = P(() => Tt(!1), []), zt = P(() => {
2128
+ let Lt = N(() => Tt(!0), []), Rt = N(() => Tt(!1), []), zt = N(() => {
2129
2129
  Dt(X.Delete);
2130
- }, []), Vt = P((n) => {
2130
+ }, []), Bt = N((n) => {
2131
2131
  Nt(n ?? (e.credentials == null ? null : t(e.credentials))), Dt(X.Logout);
2132
- }, [e.credentials]), Ht = P(() => {
2132
+ }, [e.credentials]), Ht = N(() => {
2133
2133
  Dt(X.Unshare);
2134
- }, []), Ut = P(() => {
2134
+ }, []), Ut = N(() => {
2135
2135
  Dt(X.RevokeAccess);
2136
- }, []), Wt = I(() => {
2136
+ }, []), Wt = F(() => {
2137
2137
  let e = /* @__PURE__ */ new Set(), t = [];
2138
2138
  for (let n of We) {
2139
2139
  let r = n.folderPath.join("/");
@@ -2143,13 +2143,13 @@ var vt = /* @__PURE__ */ function(e) {
2143
2143
  }));
2144
2144
  }
2145
2145
  return t;
2146
- }, [We]), Gt = Ze && Wt.length > 0, Kt = P((e) => e || (A?.rootFolderLabel ?? "Organization"), [A]), qt = P(() => {
2146
+ }, [We]), Gt = Ze && Wt.length > 0, Kt = N((e) => e || (A?.rootFolderLabel ?? "Organization"), [A]), qt = N(() => {
2147
2147
  Dt(X.Unpublish);
2148
- }, []), Jt = P((e) => {
2148
+ }, []), Jt = N((e) => {
2149
2149
  jt(e), Dt(X.DeleteApiKey);
2150
- }, []), Yt = P(() => {
2150
+ }, []), Yt = N(() => {
2151
2151
  Ot || (Dt(null), jt(null), Nt(null), Ft(null));
2152
- }, [Ot]), Xt = P(async () => {
2152
+ }, [Ot]), Xt = N(async () => {
2153
2153
  if (!(Ot || Et == null)) {
2154
2154
  kt(!0);
2155
2155
  try {
@@ -2161,7 +2161,7 @@ var vt = /* @__PURE__ */ function(e) {
2161
2161
  await ge?.(e);
2162
2162
  break;
2163
2163
  case X.RevokeAccess:
2164
- await ye?.(e);
2164
+ await ve?.(e);
2165
2165
  break;
2166
2166
  case X.Logout:
2167
2167
  Mt != null && await Ee?.(e, { level: Mt });
@@ -2170,12 +2170,12 @@ var vt = /* @__PURE__ */ function(e) {
2170
2170
  At != null && await Ee?.(e, { level: At });
2171
2171
  break;
2172
2172
  case X.Unpublish: {
2173
- let t = lr(Wt, Pt);
2174
- t != null && await Ce?.(e, t.segments);
2173
+ let t = ur(Wt, Pt);
2174
+ t != null && await Se?.(e, t.segments);
2175
2175
  break;
2176
2176
  }
2177
2177
  }
2178
- Dt(null), jt(null), Nt(null), Ft(null), yr.has(Et) && o();
2178
+ Dt(null), jt(null), Nt(null), Ft(null), br.has(Et) && o();
2179
2179
  } catch {
2180
2180
  Dt(null), jt(null), Nt(null), Ft(null);
2181
2181
  } finally {
@@ -2190,14 +2190,14 @@ var vt = /* @__PURE__ */ function(e) {
2190
2190
  e,
2191
2191
  z,
2192
2192
  ge,
2193
- ye,
2194
- Ce,
2193
+ ve,
2194
+ Se,
2195
2195
  Pt,
2196
2196
  Wt,
2197
2197
  Ee,
2198
2198
  o
2199
2199
  ]);
2200
- F(() => {
2200
+ P(() => {
2201
2201
  if (!n) return;
2202
2202
  let e = (e) => {
2203
2203
  if (e.key === "Escape") {
@@ -2215,19 +2215,19 @@ var vt = /* @__PURE__ */ function(e) {
2215
2215
  Et,
2216
2216
  Yt
2217
2217
  ]);
2218
- let Zt = P(() => Ue(!0), []), en = P(() => {
2218
+ let Zt = N(() => Ue(!0), []), Qt = N(() => {
2219
2219
  Ue(!1), Z.reset();
2220
- }, [Z]), tn = P(async () => {
2221
- await Z.handleSubmit() && en();
2222
- }, [Z, en]), nn = P(() => {
2223
- let t = !ze;
2220
+ }, [Z]), tn = N(async () => {
2221
+ await Z.handleSubmit() && Qt();
2222
+ }, [Z, Qt]), nn = N(() => {
2223
+ let t = !Re;
2224
2224
  Be(t), s?.(e.id, t);
2225
2225
  }, [
2226
- ze,
2226
+ Re,
2227
2227
  e.id,
2228
2228
  s
2229
- ]), rn = I(() => {
2230
- let t = [], n = sr.has(e.type);
2229
+ ]), rn = F(() => {
2230
+ let t = [], n = cr.has(e.type);
2231
2231
  return n || t.push({
2232
2232
  id: Y.About,
2233
2233
  label: V?.tabAboutLabel ?? "About"
@@ -2246,12 +2246,12 @@ var vt = /* @__PURE__ */ function(e) {
2246
2246
  }), e.details?.tools != null && t.push({
2247
2247
  id: Y.Tools,
2248
2248
  label: V?.tabToolsLabel ?? "Tools"
2249
- }), cr(e.details?.api) && t.push({
2249
+ }), lr(e.details?.api) && t.push({
2250
2250
  id: Y.Api,
2251
2251
  label: V?.tabConnectLabel ?? "Connect"
2252
2252
  }), t;
2253
- }, [e, V]), an = L(null);
2254
- F(() => {
2253
+ }, [e, V]), an = I(null);
2254
+ P(() => {
2255
2255
  let t = an.current !== e.id;
2256
2256
  an.current = e.id, (t || !rn.some((e) => e.id === U)) && Ve(rn[0]?.id ?? "");
2257
2257
  }, [
@@ -2259,7 +2259,7 @@ var vt = /* @__PURE__ */ function(e) {
2259
2259
  rn,
2260
2260
  U
2261
2261
  ]);
2262
- let on = V?.overviewYesLabel ?? "Yes", sn = V?.overviewNoLabel ?? "No", ln = V?.ariaLabel ?? "Item details", un = V?.closeAriaLabel ?? "Close", dn = ze ? V?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : V?.addToFavoritesAriaLabel ?? "Add to favorites", fn = V?.publishTitle ?? "Publish", pn = V?.backToDetailsAriaLabel ?? "Back", mn = V?.cancelLabel ?? "Cancel", hn = I(() => {
2262
+ let on = V?.overviewYesLabel ?? "Yes", sn = V?.overviewNoLabel ?? "No", cn = V?.ariaLabel ?? "Item details", un = V?.closeAriaLabel ?? "Close", dn = Re ? V?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : V?.addToFavoritesAriaLabel ?? "Add to favorites", fn = V?.publishTitle ?? "Publish", pn = V?.backToDetailsAriaLabel ?? "Back", mn = V?.cancelLabel ?? "Cancel", hn = F(() => {
2263
2263
  switch (Et) {
2264
2264
  case X.Delete: {
2265
2265
  let t = V?.deleteActionLabel ?? "Delete";
@@ -2270,7 +2270,7 @@ var vt = /* @__PURE__ */ function(e) {
2270
2270
  /* @__PURE__ */ q("strong", { children: e.name }),
2271
2271
  "? This action is permanent and cannot be undone."
2272
2272
  ] }),
2273
- consequences: V?.deleteConfirmConsequences ?? pr,
2273
+ consequences: V?.deleteConfirmConsequences ?? mr,
2274
2274
  confirmLabel: t,
2275
2275
  loadingStatusLabel: V?.deletingStatusLabel ?? "Deleting",
2276
2276
  variant: he.Danger
@@ -2285,7 +2285,7 @@ var vt = /* @__PURE__ */ function(e) {
2285
2285
  /* @__PURE__ */ q("strong", { children: e.name }),
2286
2286
  " from your list? You'll need a new invitation to access it again."
2287
2287
  ] }),
2288
- consequences: V?.unshareConfirmConsequences ?? mr,
2288
+ consequences: V?.unshareConfirmConsequences ?? hr,
2289
2289
  confirmLabel: t,
2290
2290
  loadingStatusLabel: V?.unsharingStatusLabel ?? "Removing",
2291
2291
  variant: he.Info
@@ -2300,7 +2300,7 @@ var vt = /* @__PURE__ */ function(e) {
2300
2300
  /* @__PURE__ */ q("strong", { children: e.name }),
2301
2301
  "? Anyone you shared it with will lose access."
2302
2302
  ] }),
2303
- consequences: V?.revokeShareConfirmConsequences ?? gr,
2303
+ consequences: V?.revokeShareConfirmConsequences ?? _r,
2304
2304
  confirmLabel: t,
2305
2305
  loadingStatusLabel: V?.revokingShareStatusLabel ?? "Revoking access",
2306
2306
  variant: he.Danger
@@ -2321,7 +2321,7 @@ var vt = /* @__PURE__ */ function(e) {
2321
2321
  return {
2322
2322
  title: V?.unpublishConfirmTitle ?? t,
2323
2323
  message: n ? i : a,
2324
- consequences: V?.unpublishConfirmConsequences ?? hr,
2324
+ consequences: V?.unpublishConfirmConsequences ?? gr,
2325
2325
  confirmLabel: t,
2326
2326
  loadingStatusLabel: V?.unpublishingStatusLabel ?? "Requesting unpublish",
2327
2327
  variant: he.Danger
@@ -2342,7 +2342,7 @@ var vt = /* @__PURE__ */ function(e) {
2342
2342
  let e = V?.deleteActionLabel ?? "Delete", t = At ?? b.User;
2343
2343
  return {
2344
2344
  title: e,
2345
- message: (V?.deleteApiKeyConfirmMessage ?? vr)(t),
2345
+ message: (V?.deleteApiKeyConfirmMessage ?? yr)(t),
2346
2346
  consequences: void 0,
2347
2347
  confirmLabel: e,
2348
2348
  loadingStatusLabel: V?.deletingStatusLabel ?? "Deleting",
@@ -2359,22 +2359,22 @@ var vt = /* @__PURE__ */ function(e) {
2359
2359
  V,
2360
2360
  Wt,
2361
2361
  Kt
2362
- ]), gn = hn != null, _n = Et === X.Unpublish && lr(Wt, Pt) == null, vn = gn || He || wt, yn = e.credentials == null ? "" : (V?.credentialsManagementTitle ?? _r)(e.credentials.authenticationType), xn = gn ? {
2362
+ ]), gn = hn != null, _n = Et === X.Unpublish && ur(Wt, Pt) == null, vn = gn || He || wt, yn = e.credentials == null ? "" : (V?.credentialsManagementTitle ?? vr)(e.credentials.authenticationType), bn = gn ? {
2363
2363
  title: hn.title,
2364
2364
  isBackDisabled: Ot,
2365
2365
  onBack: Yt
2366
2366
  } : He ? {
2367
2367
  title: fn,
2368
2368
  isBackDisabled: Z.isSubmitting,
2369
- onBack: en
2369
+ onBack: Qt
2370
2370
  } : wt ? {
2371
2371
  title: yn,
2372
2372
  isBackDisabled: !1,
2373
2373
  onBack: Rt
2374
- } : null, Sn = xn?.title ?? ln;
2374
+ } : null, Sn = bn?.title ?? cn;
2375
2375
  return /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q("div", {
2376
2376
  style: Le,
2377
- className: M("fixed inset-0 z-50 transition-opacity duration-300", Tn.backdrop, n ? "opacity-100" : "pointer-events-none opacity-0"),
2377
+ className: M("fixed inset-0 z-50 transition-opacity duration-300", En.backdrop, n ? "opacity-100" : "pointer-events-none opacity-0"),
2378
2378
  onClick: o,
2379
2379
  "aria-hidden": "true"
2380
2380
  }), /* @__PURE__ */ J("div", {
@@ -2382,38 +2382,38 @@ var vt = /* @__PURE__ */ function(e) {
2382
2382
  "aria-modal": "true",
2383
2383
  "aria-label": Sn,
2384
2384
  style: Le,
2385
- 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", Tn.panel, n ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
2385
+ 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", En.panel, n ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
2386
2386
  children: [
2387
2387
  /* @__PURE__ */ J("div", {
2388
2388
  className: "flex shrink-0 items-center gap-2 px-6 py-3",
2389
- children: [xn != null && /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(Se, {
2390
- icon: /* @__PURE__ */ q(Ke, {
2389
+ children: [bn != null && /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(Ce, {
2390
+ icon: /* @__PURE__ */ q(qe, {
2391
2391
  className: "rtl:scale-x-[-1]",
2392
2392
  stroke: B
2393
2393
  }),
2394
2394
  "aria-label": pn,
2395
- disabled: xn.isBackDisabled,
2396
- onClick: xn.onBack
2395
+ disabled: bn.isBackDisabled,
2396
+ onClick: bn.onBack
2397
2397
  }), /* @__PURE__ */ q("span", {
2398
- className: M("flex-1", ke, Tn.publishTitle),
2399
- children: xn.title
2400
- })] }), xn == null && /* @__PURE__ */ J(K, { children: [
2398
+ className: M("flex-1", ke, En.publishTitle),
2399
+ children: bn.title
2400
+ })] }), bn == null && /* @__PURE__ */ J(K, { children: [
2401
2401
  /* @__PURE__ */ q("div", { className: "flex-1" }),
2402
- !a && c?.(e) !== !1 && /* @__PURE__ */ q(Bt, {
2403
- isStarred: ze,
2402
+ !a && c?.(e) !== !1 && /* @__PURE__ */ q(Vt, {
2403
+ isStarred: Re,
2404
2404
  ariaLabel: dn,
2405
2405
  onClick: nn
2406
2406
  }),
2407
2407
  /* @__PURE__ */ q(me, {
2408
2408
  onClose: o,
2409
- size: ve.Standard,
2409
+ size: ye.Standard,
2410
2410
  ariaLabel: un
2411
2411
  })
2412
2412
  ] })]
2413
2413
  }),
2414
- /* @__PURE__ */ q("div", { className: M("shrink-0", Tn.divider) }),
2414
+ /* @__PURE__ */ q("div", { className: M("shrink-0", En.divider) }),
2415
2415
  /* @__PURE__ */ J("div", {
2416
- className: M("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", Tn.content),
2416
+ className: M("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", En.content),
2417
2417
  children: [
2418
2418
  gn && /* @__PURE__ */ q(C, {
2419
2419
  item: e,
@@ -2427,7 +2427,7 @@ var vt = /* @__PURE__ */ function(e) {
2427
2427
  cardBackground: H?.infoCardBackground,
2428
2428
  cardDangerBackground: H?.infoCardDangerBackground
2429
2429
  } },
2430
- children: Et === X.Unpublish && Wt.length > 1 && /* @__PURE__ */ q(Ne, {
2430
+ children: Et === X.Unpublish && Wt.length > 1 && /* @__PURE__ */ q(Pe, {
2431
2431
  ariaLabel: V?.unpublishFolderGroupAriaLabel ?? "Published folders",
2432
2432
  value: Pt ?? void 0,
2433
2433
  onChange: Ft,
@@ -2439,17 +2439,17 @@ var vt = /* @__PURE__ */ function(e) {
2439
2439
  radioClassName: Fe
2440
2440
  })
2441
2441
  }),
2442
- !gn && !He && wt && /* @__PURE__ */ q(wn, {
2442
+ !gn && !He && wt && /* @__PURE__ */ q(Tn, {
2443
2443
  item: e,
2444
2444
  onLogin: Te,
2445
- onRequestLogout: Vt,
2445
+ onRequestLogout: Bt,
2446
2446
  onRequestDeleteApiKey: Jt,
2447
2447
  texts: V,
2448
2448
  detailsStyles: De
2449
2449
  }),
2450
2450
  !gn && He && /* @__PURE__ */ q("div", {
2451
2451
  className: "p-[22px]",
2452
- children: /* @__PURE__ */ q(mt, {
2452
+ children: /* @__PURE__ */ q(ht, {
2453
2453
  resource: {
2454
2454
  title: e.name,
2455
2455
  version: e.version,
@@ -2457,7 +2457,7 @@ var vt = /* @__PURE__ */ function(e) {
2457
2457
  iconUrl: e.iconUrl
2458
2458
  },
2459
2459
  history: We,
2460
- isHistoryLoading: qe,
2460
+ isHistoryLoading: Ke,
2461
2461
  hasHistoryError: Ye,
2462
2462
  folderItems: Z.folderItems,
2463
2463
  selectedFolderPath: Z.selectedFolderPath,
@@ -2488,14 +2488,14 @@ var vt = /* @__PURE__ */ function(e) {
2488
2488
  })
2489
2489
  }),
2490
2490
  !vn && /* @__PURE__ */ J(K, { children: [
2491
- /* @__PURE__ */ q(In, {
2491
+ /* @__PURE__ */ q(Ln, {
2492
2492
  item: e,
2493
2493
  onUseInChat: l,
2494
2494
  isPrimaryActionVisible: u,
2495
2495
  onShare: d,
2496
2496
  shareOverlay: re,
2497
2497
  isShareVisible: ie,
2498
- isSharePrimary: N,
2498
+ isSharePrimary: ae,
2499
2499
  isPublishVisible: f,
2500
2500
  isPublishPrimary: p,
2501
2501
  onOpenPublish: Zt,
@@ -2503,21 +2503,21 @@ var vt = /* @__PURE__ */ function(e) {
2503
2503
  hasPublishedFolders: Gt,
2504
2504
  isPublishHistoryResolved: h == null || Ze,
2505
2505
  onRequestPublishHistory: bt,
2506
- onOpenUnpublish: Ce ? qt : void 0,
2507
- onEdit: ae,
2508
- onDownload: oe,
2509
- isDownloadVisible: se,
2510
- isDownloadPrimary: ce,
2506
+ onOpenUnpublish: Se ? qt : void 0,
2507
+ onEdit: oe,
2508
+ onDownload: se,
2509
+ isDownloadVisible: ce,
2510
+ isDownloadPrimary: R,
2511
2511
  onDelete: z ? zt : void 0,
2512
2512
  onUnshare: ge ? Ht : void 0,
2513
2513
  isUnshareVisible: _e,
2514
- onRevokeShare: ye ? Ut : void 0,
2514
+ onRevokeShare: ve ? Ut : void 0,
2515
2515
  onFetchRecipientsCount: be,
2516
2516
  isRevokeShareVisible: xe,
2517
2517
  onLogin: Te,
2518
2518
  onLogout: Ee,
2519
2519
  onOpenCredentialsManagement: Lt,
2520
- onRequestLogout: Vt,
2520
+ onRequestLogout: Bt,
2521
2521
  texts: V,
2522
2522
  detailsStyles: De,
2523
2523
  isReadonly: a
@@ -2526,7 +2526,7 @@ var vt = /* @__PURE__ */ function(e) {
2526
2526
  let t = m(e.credentials);
2527
2527
  return t != null && /* @__PURE__ */ q("div", {
2528
2528
  className: "px-6",
2529
- children: /* @__PURE__ */ q(bn, {
2529
+ children: /* @__PURE__ */ q(xn, {
2530
2530
  state: t,
2531
2531
  authenticationType: e.credentials.authenticationType,
2532
2532
  texts: V
@@ -2536,7 +2536,7 @@ var vt = /* @__PURE__ */ function(e) {
2536
2536
  !a && n && pe?.(e),
2537
2537
  /* @__PURE__ */ J("div", {
2538
2538
  className: "flex items-center px-6",
2539
- children: [/* @__PURE__ */ q(Re, {
2539
+ children: [/* @__PURE__ */ q(ze, {
2540
2540
  tabs: rn,
2541
2541
  activeTabId: U,
2542
2542
  onTabChange: Ve
@@ -2551,26 +2551,26 @@ var vt = /* @__PURE__ */ function(e) {
2551
2551
  width: "72px"
2552
2552
  },
2553
2553
  active: !0,
2554
- color: Tn.skeletonColor
2554
+ color: En.skeletonColor
2555
2555
  })
2556
2556
  })]
2557
2557
  }),
2558
2558
  /* @__PURE__ */ J("div", {
2559
2559
  className: M("min-h-0 flex-1 overflow-y-auto", U !== Y.Overview && "px-6"),
2560
2560
  children: [
2561
- U === Y.About && /* @__PURE__ */ q(Ln, {
2561
+ U === Y.About && /* @__PURE__ */ q(Rn, {
2562
2562
  content: e.description,
2563
2563
  topics: e.topics,
2564
2564
  detailsStyles: De
2565
2565
  }),
2566
- U === Y.Content && /* @__PURE__ */ q(Hn, {
2567
- content: W?.content ?? "",
2566
+ U === Y.Content && /* @__PURE__ */ q(Un, {
2567
+ content: $e?.content ?? "",
2568
2568
  filePreview: vt(),
2569
2569
  filePreviewContent: yt,
2570
2570
  renderFileTree: fe,
2571
- description: W?.description ?? e.description,
2572
- files: W?.files,
2573
- selectedFileId: _t,
2571
+ description: $e?.description ?? e.description,
2572
+ files: $e?.files,
2573
+ selectedFileId: pt,
2574
2574
  onSelectFile: (e) => void ft(e),
2575
2575
  isFileLoading: rt,
2576
2576
  expandedFolderIds: at,
@@ -2583,25 +2583,25 @@ var vt = /* @__PURE__ */ function(e) {
2583
2583
  fileUnsupportedLabel: V?.contentFileUnsupportedLabel,
2584
2584
  detailsStyles: De
2585
2585
  }),
2586
- U === Y.Overview && /* @__PURE__ */ q(tr, {
2586
+ U === Y.Overview && /* @__PURE__ */ q(nr, {
2587
2587
  sections: e.details?.overview?.sections,
2588
2588
  sectionClassName: Ae,
2589
2589
  labelClassName: je,
2590
2590
  valueClassName: Me,
2591
- valueTrueClassName: Pe,
2591
+ valueTrueClassName: Ne,
2592
2592
  yesLabel: on,
2593
2593
  noLabel: sn
2594
2594
  }),
2595
- U === Y.Pricing && /* @__PURE__ */ q(nr, {
2595
+ U === Y.Pricing && /* @__PURE__ */ q(rr, {
2596
2596
  pricing: e.details?.pricing,
2597
2597
  pricesSectionLabel: V?.pricingPricesSectionLabel,
2598
2598
  limitsSectionLabel: V?.pricingLimitsSectionLabel
2599
2599
  }),
2600
- U === Y.Limits && /* @__PURE__ */ q(er, {
2600
+ U === Y.Limits && /* @__PURE__ */ q(tr, {
2601
2601
  limits: e.details?.limits,
2602
2602
  footerNote: Oe
2603
2603
  }),
2604
- U === Y.Api && cr(e.details?.api) && /* @__PURE__ */ q(cn, {
2604
+ U === Y.Api && lr(e.details?.api) && /* @__PURE__ */ q(ln, {
2605
2605
  api: e.details?.api,
2606
2606
  resourceSectionLabel: V?.apiResourceSectionLabel,
2607
2607
  snippetSectionLabel: V?.apiSnippetSectionLabel,
@@ -2613,7 +2613,7 @@ var vt = /* @__PURE__ */ function(e) {
2613
2613
  copyAriaLabel: V?.copyCodeAriaLabel,
2614
2614
  copiedStatusLabel: V?.copiedCodeStatusLabel
2615
2615
  }),
2616
- U === Y.Tools && /* @__PURE__ */ q(or, { tools: e.details?.tools })
2616
+ U === Y.Tools && /* @__PURE__ */ q(sr, { tools: e.details?.tools })
2617
2617
  ]
2618
2618
  })
2619
2619
  ] })
@@ -2630,18 +2630,18 @@ var vt = /* @__PURE__ */ function(e) {
2630
2630
  onConfirm: Xt,
2631
2631
  onCancel: Yt
2632
2632
  }),
2633
- !gn && He && /* @__PURE__ */ q(pt, {
2633
+ !gn && He && /* @__PURE__ */ q(mt, {
2634
2634
  version: e.version,
2635
2635
  hasExistingPublicationInFolder: Z.hasExistingPublicationInFolder,
2636
2636
  isSubmitDisabled: Ct.isSubmitDisabled,
2637
2637
  isSubmitLoading: Ct.isSubmitLoading,
2638
- onCancel: en,
2638
+ onCancel: Qt,
2639
2639
  onSubmit: tn,
2640
2640
  labels: A
2641
2641
  })
2642
2642
  ]
2643
2643
  })] });
2644
- }, xr = {
2644
+ }, Sr = {
2645
2645
  pageNav: "_pageNav_14qfn_1",
2646
2646
  navBtn: "_navBtn_14qfn_6",
2647
2647
  titleText: "_titleText_14qfn_23",
@@ -2656,12 +2656,12 @@ var vt = /* @__PURE__ */ function(e) {
2656
2656
  favFadeIn: "_favFadeIn_14qfn_1",
2657
2657
  cardLeaving: "_cardLeaving_14qfn_54",
2658
2658
  cardFadeOut: "_cardFadeOut_14qfn_1"
2659
- }, Sr = ({ 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 }) => {
2660
- let [m, h] = R(t), [g, _] = R(!1), v = (t) => {
2659
+ }, Cr = ({ 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 }) => {
2660
+ let [m, h] = L(t), [g, _] = L(!1), v = (t) => {
2661
2661
  t.stopPropagation();
2662
2662
  let r = !m;
2663
2663
  h(r), r ? n?.(e.id, r) : _(!0);
2664
- }, y = i && !g ? () => i(e) : void 0, b = P((t) => {
2664
+ }, y = i && !g ? () => i(e) : void 0, b = N((t) => {
2665
2665
  !i || g || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), i(e));
2666
2666
  }, [
2667
2667
  i,
@@ -2673,28 +2673,28 @@ var vt = /* @__PURE__ */ function(e) {
2673
2673
  role: y == null ? void 0 : "button",
2674
2674
  tabIndex: y == null ? void 0 : 0,
2675
2675
  "aria-label": e.name,
2676
- className: M("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", g && xr.cardLeaving, f && xr.selectedCard, wt.favoriteCard),
2676
+ className: M("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", g && Sr.cardLeaving, f && Sr.selectedCard, Tt.favoriteCard),
2677
2677
  onClick: y,
2678
2678
  onKeyDown: b,
2679
2679
  onAnimationEnd: g ? (t) => {
2680
2680
  t.currentTarget === t.target && n?.(e.id, !1);
2681
2681
  } : void 0,
2682
2682
  children: [
2683
- f && /* @__PURE__ */ q(We, {
2683
+ f && /* @__PURE__ */ q(Ge, {
2684
2684
  size: z.SM,
2685
- className: M("absolute end-3 top-3 shrink-0", xr.selectedCheck),
2685
+ className: M("absolute end-3 top-3 shrink-0", Sr.selectedCheck),
2686
2686
  "aria-hidden": !0,
2687
2687
  stroke: B
2688
2688
  }),
2689
2689
  /* @__PURE__ */ q("div", {
2690
2690
  className: "flex min-w-0 flex-1 flex-col items-start gap-1",
2691
- children: /* @__PURE__ */ q(It, {
2691
+ children: /* @__PURE__ */ q(Lt, {
2692
2692
  icon: e.iconUrl,
2693
2693
  type: e.type,
2694
2694
  name: e.name,
2695
2695
  version: e.version,
2696
2696
  lastUsed: e.lastUsed,
2697
- size: bt.LG,
2697
+ size: xt.LG,
2698
2698
  query: l,
2699
2699
  className: "min-w-0 self-stretch",
2700
2700
  styles: {
@@ -2705,22 +2705,22 @@ var vt = /* @__PURE__ */ function(e) {
2705
2705
  lastUsedClassName: c
2706
2706
  }
2707
2707
  },
2708
- iconOverlay: /* @__PURE__ */ q(Rt, {
2708
+ iconOverlay: /* @__PURE__ */ q(zt, {
2709
2709
  credentials: e.credentials,
2710
2710
  loggedOutLabel: p
2711
2711
  })
2712
2712
  })
2713
2713
  }),
2714
- r?.(e) !== !1 && /* @__PURE__ */ q(Bt, {
2714
+ r?.(e) !== !1 && /* @__PURE__ */ q(Vt, {
2715
2715
  isStarred: m,
2716
- size: ve.Small,
2716
+ size: ye.Small,
2717
2717
  onClick: v,
2718
2718
  ariaLabel: m ? d : u,
2719
2719
  className: "self-end"
2720
2720
  })
2721
2721
  ]
2722
2722
  });
2723
- }, Cr = 2, wr = (e) => {
2723
+ }, wr = 2, Tr = (e) => {
2724
2724
  let t = e.getBoundingClientRect(), n = window.scrollX, r = window.scrollY, i = window.getComputedStyle(e).transform;
2725
2725
  if (!i || i === "none") return new DOMRect(t.x + n, t.y + r, t.width, t.height);
2726
2726
  try {
@@ -2729,7 +2729,7 @@ var vt = /* @__PURE__ */ function(e) {
2729
2729
  } catch {
2730
2730
  return new DOMRect(t.x + n, t.y + r, t.width, t.height);
2731
2731
  }
2732
- }, Tr = ({ 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 }) => {
2732
+ }, Er = ({ 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 }) => {
2733
2733
  let h = o?.typography?.titleClassName ?? "dial-body-semi-text", g = o?.typography?.countClassName ?? "dial-tiny-semi-text", _ = j({
2734
2734
  "--cat-fav-title-text": o?.colors?.titleText,
2735
2735
  "--cat-fav-count-text": o?.colors?.countText,
@@ -2742,49 +2742,49 @@ var vt = /* @__PURE__ */ function(e) {
2742
2742
  "--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
2743
2743
  "--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
2744
2744
  "--cat-fav-page-nav-bg": o?.colors?.pageNavBackground
2745
- }), v = I(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = R(1), x = Ct(), S = x * Cr, C = (y - 1) * S, w = I(() => v.slice(C, C + S), [
2745
+ }), v = F(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = L(1), x = wt(), S = x * wr, C = (y - 1) * S, w = F(() => v.slice(C, C + S), [
2746
2746
  v,
2747
2747
  C,
2748
2748
  S
2749
- ]), T = Math.ceil(v.length / S), E = t ?? e.length, D = L(null), O = L(null), k = L(null), [A, te] = R(), [ne, re] = R(), ie = L(x);
2750
- F(() => {
2749
+ ]), T = Math.ceil(v.length / S), E = t ?? e.length, D = I(null), O = I(null), k = I(null), [A, te] = L(), [ne, re] = L(), ie = I(x);
2750
+ P(() => {
2751
2751
  ie.current !== x && (ie.current = x, b(1), te(void 0), re(void 0));
2752
- }, [x]), F(() => {
2752
+ }, [x]), P(() => {
2753
2753
  y > T && T > 0 && b(T);
2754
- }, [y, T]), F(() => {
2754
+ }, [y, T]), P(() => {
2755
2755
  T <= 1 && (A !== void 0 || ne !== void 0) && (te(void 0), re(void 0));
2756
2756
  }, [
2757
2757
  T,
2758
2758
  A,
2759
2759
  ne
2760
- ]), se(() => {
2760
+ ]), ce(() => {
2761
2761
  !k.current || !O.current || T <= 1 || y !== 1 || A !== void 0 || (te(k.current.offsetHeight), re(O.current.offsetHeight));
2762
2762
  }, [
2763
2763
  T,
2764
2764
  y,
2765
2765
  A
2766
2766
  ]);
2767
- let N = L(/* @__PURE__ */ new Map()), ae = L(y), P = L(x), oe = L(0), ce = L(!1);
2768
- return se(() => {
2767
+ let ae = I(/* @__PURE__ */ new Map()), oe = I(y), N = I(x), se = I(0), R = I(!1);
2768
+ return ce(() => {
2769
2769
  if (!k.current || s) return;
2770
- if (D.current && !ce.current) {
2770
+ if (D.current && !R.current) {
2771
2771
  let e = D.current;
2772
2772
  e.style.height = "", e.style.transition = "";
2773
2773
  }
2774
- let e = ae.current !== y, t = P.current !== x;
2775
- ae.current = y, P.current = x;
2774
+ let e = oe.current !== y, t = N.current !== x;
2775
+ oe.current = y, N.current = x;
2776
2776
  let n = k.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
2777
2777
  if (n.forEach((e) => {
2778
- r.set(e.dataset.cardId, wr(e));
2778
+ r.set(e.dataset.cardId, Tr(e));
2779
2779
  }), !e && !t) {
2780
- let e = O.current, t = oe.current, i = 0;
2780
+ let e = O.current, t = se.current, i = 0;
2781
2781
  if (e) {
2782
2782
  let t = e.style.height;
2783
2783
  t && (e.style.height = ""), i = e.offsetHeight, t && (e.style.height = t);
2784
2784
  }
2785
2785
  let a = e != null && t > 0 && Math.abs(i - t) > 2, o = i > t ? 280 : 220, s = [];
2786
2786
  if (n.forEach((e) => {
2787
- let t = e.dataset.cardId, n = N.current.get(t), i = r.get(t);
2787
+ let t = e.dataset.cardId, n = ae.current.get(t), i = r.get(t);
2788
2788
  if (!n || !i) return;
2789
2789
  let o = n.left - i.left, c = n.top - i.top;
2790
2790
  !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));
@@ -2800,30 +2800,30 @@ var vt = /* @__PURE__ */ function(e) {
2800
2800
  e.addEventListener("transitionend", t);
2801
2801
  }
2802
2802
  }
2803
- if (N.current = r, O.current) {
2803
+ if (ae.current = r, O.current) {
2804
2804
  let e = O.current, t = e.style.height ? parseFloat(e.style.height) : NaN;
2805
- oe.current = Number.isNaN(t) ? e.offsetHeight : t;
2805
+ se.current = Number.isNaN(t) ? e.offsetHeight : t;
2806
2806
  }
2807
2807
  }, [
2808
2808
  w,
2809
2809
  y,
2810
2810
  x,
2811
2811
  s
2812
- ]), se(() => {
2812
+ ]), ce(() => {
2813
2813
  let e = D.current;
2814
2814
  if (!e) return;
2815
2815
  let t = e.offsetHeight;
2816
2816
  if (t === 0) return;
2817
- ce.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`;
2817
+ 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`;
2818
2818
  let n = (t) => {
2819
2819
  t.target !== e || t.propertyName !== "height" || r();
2820
2820
  }, r = () => {
2821
- ce.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
2821
+ R.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
2822
2822
  }, i = setTimeout(r, 400);
2823
2823
  return e.addEventListener("transitionend", n), () => {
2824
2824
  clearTimeout(i), e.removeEventListener("transitionend", n);
2825
2825
  };
2826
- }, []), se(() => {
2826
+ }, []), ce(() => {
2827
2827
  if (!s || !D.current) return;
2828
2828
  let e = D.current, t = e.offsetHeight;
2829
2829
  t !== 0 && (e.style.height = `${t}px`, e.offsetHeight, e.style.transition = "height 260ms ease-in", e.style.height = "0px");
@@ -2831,7 +2831,7 @@ var vt = /* @__PURE__ */ function(e) {
2831
2831
  ref: D,
2832
2832
  children: /* @__PURE__ */ J("section", {
2833
2833
  ref: O,
2834
- className: M("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", xr.section, s && xr.sectionLeaving),
2834
+ className: M("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", Sr.section, s && Sr.sectionLeaving),
2835
2835
  style: {
2836
2836
  ..._,
2837
2837
  minHeight: ne
@@ -2842,18 +2842,18 @@ var vt = /* @__PURE__ */ function(e) {
2842
2842
  children: [/* @__PURE__ */ q(ee, {
2843
2843
  title: n,
2844
2844
  postfix: E,
2845
- titleClassName: M(h, xr.titleText),
2846
- postfixClassName: M(g, xr.countText),
2845
+ titleClassName: M(h, Sr.titleText),
2846
+ postfixClassName: M(g, Sr.countText),
2847
2847
  trailing: T > 1 ? /* @__PURE__ */ J("div", {
2848
- className: M("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", xr.pageNav),
2848
+ className: M("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", Sr.pageNav),
2849
2849
  children: [
2850
- /* @__PURE__ */ q(Se, {
2851
- size: ve.Small,
2850
+ /* @__PURE__ */ q(Ce, {
2851
+ size: ye.Small,
2852
2852
  "aria-label": l,
2853
2853
  disabled: y === 1,
2854
2854
  onClick: () => b((e) => e - 1),
2855
- className: M("rounded-full", xr.navBtn),
2856
- icon: /* @__PURE__ */ q(Ke, {
2855
+ className: M("rounded-full", Sr.navBtn),
2856
+ icon: /* @__PURE__ */ q(qe, {
2857
2857
  size: 14,
2858
2858
  "aria-hidden": !0,
2859
2859
  className: "rtl:scale-x-[-1]",
@@ -2861,20 +2861,20 @@ var vt = /* @__PURE__ */ function(e) {
2861
2861
  })
2862
2862
  }),
2863
2863
  /* @__PURE__ */ J("span", {
2864
- className: M("min-w-[32px] select-none px-1 text-center", g, xr.countText),
2864
+ className: M("min-w-[32px] select-none px-1 text-center", g, Sr.countText),
2865
2865
  children: [
2866
2866
  y,
2867
2867
  " / ",
2868
2868
  T
2869
2869
  ]
2870
2870
  }),
2871
- /* @__PURE__ */ q(Se, {
2872
- size: ve.Small,
2871
+ /* @__PURE__ */ q(Ce, {
2872
+ size: ye.Small,
2873
2873
  "aria-label": u,
2874
2874
  disabled: y === T,
2875
2875
  onClick: () => b((e) => e + 1),
2876
- className: M("rounded-full", xr.navBtn),
2877
- icon: /* @__PURE__ */ q(qe, {
2876
+ className: M("rounded-full", Sr.navBtn),
2877
+ icon: /* @__PURE__ */ q(Je, {
2878
2878
  size: 14,
2879
2879
  "aria-hidden": !0,
2880
2880
  className: "rtl:scale-x-[-1]",
@@ -2885,12 +2885,12 @@ var vt = /* @__PURE__ */ function(e) {
2885
2885
  }) : void 0
2886
2886
  }), /* @__PURE__ */ q("div", {
2887
2887
  ref: k,
2888
- className: M("grid content-start gap-5", xr.gridPage),
2888
+ className: M("grid content-start gap-5", Sr.gridPage),
2889
2889
  style: {
2890
2890
  gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
2891
2891
  minHeight: A
2892
2892
  },
2893
- children: w.map((e) => /* @__PURE__ */ q(Sr, {
2893
+ children: w.map((e) => /* @__PURE__ */ q(Cr, {
2894
2894
  item: e,
2895
2895
  onToggle: r,
2896
2896
  isFavoriteVisible: i,
@@ -2903,7 +2903,7 @@ var vt = /* @__PURE__ */ function(e) {
2903
2903
  })]
2904
2904
  })
2905
2905
  });
2906
- }, Er = {
2906
+ }, Dr = {
2907
2907
  listContainer: "_listContainer_lksnp_1",
2908
2908
  gridClip: "_gridClip_lksnp_6",
2909
2909
  favHeader: "_favHeader_lksnp_35",
@@ -2912,29 +2912,29 @@ var vt = /* @__PURE__ */ function(e) {
2912
2912
  selectedCheck: "_selectedCheck_lksnp_47",
2913
2913
  starToggleOff: "_starToggleOff_lksnp_51",
2914
2914
  selectedRow: "_selectedRow_lksnp_64"
2915
- }, Dr = ({ data: e }) => e ? /* @__PURE__ */ q("div", {
2915
+ }, Or = ({ data: e }) => e ? /* @__PURE__ */ q("div", {
2916
2916
  className: "flex h-full items-center",
2917
2917
  children: /* @__PURE__ */ q(D, { type: e.type })
2918
- }) : null, Or = " / ", kr = ({ data: e, context: t }) => {
2918
+ }) : null, kr = " / ", Ar = ({ data: e, context: t }) => {
2919
2919
  if (!e || e.folder.length === 0) return null;
2920
- let n = e.folder.join(Or), r = e.folder[e.folder.length - 1], i = e.folder.length > 1, a = t?.typography?.folderClassName ?? "dial-small-text", o = t?.typography?.folderLastSegmentClassName ?? "dial-small-semi-text";
2920
+ let n = e.folder.join(kr), r = e.folder[e.folder.length - 1], i = e.folder.length > 1, a = t?.typography?.folderClassName ?? "dial-small-text", o = t?.typography?.folderLastSegmentClassName ?? "dial-small-semi-text";
2921
2921
  return /* @__PURE__ */ J("div", {
2922
2922
  className: "flex h-full w-full min-w-0 items-center gap-1.5",
2923
2923
  children: [
2924
- /* @__PURE__ */ q(Qe, {
2924
+ /* @__PURE__ */ q(W, {
2925
2925
  size: z.SM,
2926
2926
  stroke: B,
2927
- className: M("shrink-0", Er.folderIcon),
2927
+ className: M("shrink-0", Dr.folderIcon),
2928
2928
  "aria-hidden": !0
2929
2929
  }),
2930
- /* @__PURE__ */ q(Be, {
2930
+ /* @__PURE__ */ q(U, {
2931
2931
  tooltip: /* @__PURE__ */ q("span", {
2932
2932
  className: a,
2933
2933
  children: n
2934
2934
  }),
2935
2935
  hideTooltip: !i,
2936
2936
  triggerClassName: "min-w-0 flex-1",
2937
- children: /* @__PURE__ */ q(ye, {
2937
+ children: /* @__PURE__ */ q(be, {
2938
2938
  text: r,
2939
2939
  className: o,
2940
2940
  hideTooltip: i
@@ -2946,7 +2946,7 @@ var vt = /* @__PURE__ */ function(e) {
2946
2946
  })
2947
2947
  ]
2948
2948
  });
2949
- }, Ar = ({ data: e, context: t }) => {
2949
+ }, jr = ({ data: e, context: t }) => {
2950
2950
  let n = t?.searchQuery ?? "", r = t?.typography, i = r?.nameClassName ?? "dial-small-semi-text", a = r?.versionClassName ?? "dial-tiny-text", o = e != null && e.id === t?.selectedItemId;
2951
2951
  return e ? /* @__PURE__ */ J("div", {
2952
2952
  className: "flex h-full w-full min-w-0 items-center gap-2.5",
@@ -2957,7 +2957,7 @@ var vt = /* @__PURE__ */ function(e) {
2957
2957
  size: 36,
2958
2958
  initialsName: e.name,
2959
2959
  styles: { badgeClassName: "rounded-[10px]" }
2960
- }), /* @__PURE__ */ q(Rt, {
2960
+ }), /* @__PURE__ */ q(zt, {
2961
2961
  credentials: e.credentials,
2962
2962
  loggedOutLabel: t?.credentialsBadgeLoggedOutLabel
2963
2963
  })]
@@ -2968,43 +2968,43 @@ var vt = /* @__PURE__ */ function(e) {
2968
2968
  query: n,
2969
2969
  titleClassName: i,
2970
2970
  className: "min-w-0 flex-1 items-baseline gap-1.5",
2971
- trailing: o ? /* @__PURE__ */ q(We, {
2971
+ trailing: o ? /* @__PURE__ */ q(Ge, {
2972
2972
  size: z.SM,
2973
- className: M("shrink-0", Er.selectedCheck),
2973
+ className: M("shrink-0", Dr.selectedCheck),
2974
2974
  "aria-hidden": !0,
2975
2975
  stroke: B
2976
2976
  }) : void 0
2977
2977
  })]
2978
2978
  }) : null;
2979
- }, jr = ({ data: e, context: t }) => {
2980
- let [n, r] = R(e?.isStarred ?? !1);
2981
- return F(() => {
2979
+ }, Mr = ({ data: e, context: t }) => {
2980
+ let [n, r] = L(e?.isStarred ?? !1);
2981
+ return P(() => {
2982
2982
  r(e?.isStarred ?? !1);
2983
2983
  }, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ q("div", {
2984
2984
  className: "flex size-full items-center justify-end",
2985
- children: /* @__PURE__ */ q(Bt, {
2985
+ children: /* @__PURE__ */ q(Vt, {
2986
2986
  isStarred: n,
2987
2987
  onClick: (i) => {
2988
2988
  i.stopPropagation();
2989
2989
  let a = !n;
2990
2990
  r(a), t?.onToggleFavorite?.(e.id, a);
2991
2991
  },
2992
- className: n ? void 0 : Er.starToggleOff
2992
+ className: n ? void 0 : Dr.starToggleOff
2993
2993
  })
2994
2994
  });
2995
- }, Mr = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ q("div", {
2995
+ }, Nr = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ q("div", {
2996
2996
  className: "flex h-full w-full min-w-0 items-center",
2997
- children: /* @__PURE__ */ q(Gt, { topics: e.topics })
2998
- }), Nr = {
2997
+ children: /* @__PURE__ */ q(Kt, { topics: e.topics })
2998
+ }), Pr = {
2999
2999
  folder: (e) => e !== x.Model,
3000
3000
  tags: () => !0,
3001
3001
  favorite: () => !0
3002
- }, Pr = (e, t) => Object.fromEntries([
3002
+ }, Fr = (e, t) => Object.fromEntries([
3003
3003
  "folder",
3004
3004
  "tags",
3005
3005
  "favorite"
3006
- ].map((n) => [n, (t?.[n] ?? Nr[n])(e)])), Fr = (e, t = !1, n) => {
3007
- let r = Pr(e, n);
3006
+ ].map((n) => [n, (t?.[n] ?? Pr[n])(e)])), Ir = (e, t = !1, n) => {
3007
+ let r = Fr(e, n);
3008
3008
  return [
3009
3009
  {
3010
3010
  headerName: "Name",
@@ -3012,7 +3012,7 @@ var vt = /* @__PURE__ */ function(e) {
3012
3012
  minWidth: 220,
3013
3013
  field: "name",
3014
3014
  filter: !1,
3015
- cellRenderer: Ar,
3015
+ cellRenderer: jr,
3016
3016
  valueGetter: (e) => e.data?.name
3017
3017
  },
3018
3018
  {
@@ -3022,7 +3022,7 @@ var vt = /* @__PURE__ */ function(e) {
3022
3022
  field: "type",
3023
3023
  filter: !1,
3024
3024
  sortable: !1,
3025
- cellRenderer: Dr,
3025
+ cellRenderer: Or,
3026
3026
  valueGetter: (e) => e.data?.type
3027
3027
  },
3028
3028
  {
@@ -3032,7 +3032,7 @@ var vt = /* @__PURE__ */ function(e) {
3032
3032
  minWidth: 170,
3033
3033
  filter: !1,
3034
3034
  hide: !r.folder,
3035
- cellRenderer: kr,
3035
+ cellRenderer: Ar,
3036
3036
  valueGetter: (e) => e.data?.folder
3037
3037
  },
3038
3038
  {
@@ -3043,7 +3043,7 @@ var vt = /* @__PURE__ */ function(e) {
3043
3043
  filter: !1,
3044
3044
  sortable: !1,
3045
3045
  hide: !r.tags,
3046
- cellRenderer: Mr,
3046
+ cellRenderer: Nr,
3047
3047
  valueGetter: (e) => e.data?.topics
3048
3048
  },
3049
3049
  {
@@ -3055,15 +3055,15 @@ var vt = /* @__PURE__ */ function(e) {
3055
3055
  sortable: !1,
3056
3056
  resizable: !1,
3057
3057
  hide: t || !r.favorite,
3058
- headerClass: Er.favHeader,
3059
- cellRenderer: jr
3058
+ headerClass: Dr.favHeader,
3059
+ cellRenderer: Mr
3060
3060
  }
3061
3061
  ];
3062
- }, Ir = 60, Lr = {}, Rr = (e) => e.id, zr = (e) => e.items.length === 0 ? /* @__PURE__ */ q("div", {
3063
- className: U("flex size-full flex-col items-center justify-center", wt.listView),
3062
+ }, Lr = 60, Rr = {}, zr = (e) => e.id, Br = (e) => e.items.length === 0 ? /* @__PURE__ */ q("div", {
3063
+ className: Ve("flex size-full flex-col items-center justify-center", Tt.listView),
3064
3064
  children: /* @__PURE__ */ q(ne, { label: e.emptyStateTitle ?? "No results" })
3065
- }) : /* @__PURE__ */ q(Br, { ...e }), Br = ({ 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 }) => {
3066
- let m = a?.typography ?? Lr, h = a?.colors, g = {
3065
+ }) : /* @__PURE__ */ q(Vr, { ...e }), Vr = ({ 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 }) => {
3066
+ let m = a?.typography ?? Rr, h = a?.colors, g = {
3067
3067
  "--cat-list-bg": h?.background,
3068
3068
  "--cat-list-border": h?.border,
3069
3069
  "--cat-list-header-bg": h?.headerBackground,
@@ -3075,15 +3075,15 @@ var vt = /* @__PURE__ */ function(e) {
3075
3075
  "--cat-list-selected-bg": h?.selectedRowBackground,
3076
3076
  "--cat-list-selected-check": h?.selectedRowCheckIcon,
3077
3077
  ...l == null ? {} : { "--list-header-sticky-top": `${l}px` }
3078
- }, _ = L(null), v = P((e) => {
3078
+ }, _ = I(null), v = N((e) => {
3079
3079
  _.current = e;
3080
- }, []), y = I(() => Fr(t, f, p), [
3080
+ }, []), y = F(() => Ir(t, f, p), [
3081
3081
  t,
3082
3082
  f,
3083
3083
  p
3084
- ]), b = I(() => ({
3084
+ ]), b = F(() => ({
3085
3085
  domLayout: "autoHeight",
3086
- rowHeight: Ir,
3086
+ rowHeight: Lr,
3087
3087
  animateRows: !1,
3088
3088
  suppressAnimationFrame: !0,
3089
3089
  suppressScrollOnNewData: !0,
@@ -3104,7 +3104,7 @@ var vt = /* @__PURE__ */ function(e) {
3104
3104
  e.column.getColDef().field !== "isStarred" && e.data && c(e.data);
3105
3105
  } : void 0,
3106
3106
  rowClass: c ? "cursor-pointer" : void 0,
3107
- getRowClass: (e) => e.data?.id === u ? Er.selectedRow : void 0
3107
+ getRowClass: (e) => e.data?.id === u ? Dr.selectedRow : void 0
3108
3108
  }), [
3109
3109
  n,
3110
3110
  m,
@@ -3114,30 +3114,30 @@ var vt = /* @__PURE__ */ function(e) {
3114
3114
  d,
3115
3115
  f,
3116
3116
  c
3117
- ]), { containerRef: x, startRow: S, endRow: C } = Mt(e.length, Ir), w = I(() => e.slice(S, C), [
3117
+ ]), { containerRef: x, startRow: S, endRow: C } = Nt(e.length, Lr), w = F(() => e.slice(S, C), [
3118
3118
  e,
3119
3119
  S,
3120
3120
  C
3121
3121
  ]);
3122
- return F(() => {
3122
+ return P(() => {
3123
3123
  _.current?.refreshCells({ force: !0 });
3124
- }, [n]), F(() => {
3124
+ }, [n]), P(() => {
3125
3125
  _.current?.redrawRows();
3126
3126
  }, [u]), /* @__PURE__ */ q("div", {
3127
3127
  style: g,
3128
- className: U("w-full rounded-xl border", Er.listContainer, wt.listView),
3128
+ className: Ve("w-full rounded-xl border", Dr.listContainer, Tt.listView),
3129
3129
  children: /* @__PURE__ */ J("div", {
3130
3130
  ref: x,
3131
- className: U("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", Er.gridClip),
3131
+ className: Ve("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", Dr.gridClip),
3132
3132
  children: [
3133
3133
  S > 0 && /* @__PURE__ */ q("div", {
3134
- style: { height: S * Ir },
3134
+ style: { height: S * Lr },
3135
3135
  "aria-hidden": !0
3136
3136
  }),
3137
- /* @__PURE__ */ q(_t, {
3137
+ /* @__PURE__ */ q(vt, {
3138
3138
  columnDefs: y,
3139
3139
  rowData: w,
3140
- getRowId: Rr,
3140
+ getRowId: zr,
3141
3141
  withoutHeaderBorders: !0,
3142
3142
  wrapCustomCellRenderers: !1,
3143
3143
  onGridApiChange: v,
@@ -3146,13 +3146,13 @@ var vt = /* @__PURE__ */ function(e) {
3146
3146
  ariaLabel: r
3147
3147
  }),
3148
3148
  C < e.length && /* @__PURE__ */ q("div", {
3149
- style: { height: (e.length - C) * Ir },
3149
+ style: { height: (e.length - C) * Lr },
3150
3150
  "aria-hidden": !0
3151
3151
  })
3152
3152
  ]
3153
3153
  })
3154
3154
  });
3155
- }, Vr = {
3155
+ }, Hr = {
3156
3156
  filterBtn: "_filterBtn_5r8a5_7",
3157
3157
  filterBtnActive: "_filterBtnActive_5r8a5_24",
3158
3158
  filterBtnOpen: "_filterBtnOpen_5r8a5_28",
@@ -3164,14 +3164,14 @@ var vt = /* @__PURE__ */ function(e) {
3164
3164
  divider: "_divider_5r8a5_63",
3165
3165
  sectionLabel: "_sectionLabel_5r8a5_67",
3166
3166
  footer: "_footer_5r8a5_71"
3167
- }, Hr = (e, t, n, r, i) => {
3167
+ }, Ur = (e, t, n, r, i) => {
3168
3168
  let a = e.size > 0;
3169
3169
  return n && a ? `${r} · ${e.size}` : n ? r : a ? p(e, t, i) : i;
3170
- }, Ur = (e, t) => {
3170
+ }, Wr = (e, t) => {
3171
3171
  let n = new Set(t);
3172
3172
  return n.has(e) ? n.delete(e) : n.add(e), n;
3173
- }, Wr = ({ 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 }) => {
3174
- let f = (r ?? !1) || e.size > 0, [p, m] = R(!1), h = j({
3173
+ }, Gr = ({ 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 }) => {
3174
+ let f = (r ?? !1) || e.size > 0, [p, m] = L(!1), h = j({
3175
3175
  "--cat-filter-btn-bg": d?.buttonBackground,
3176
3176
  "--cat-filter-btn-border": d?.buttonBorder,
3177
3177
  "--cat-filter-btn-border-hover": d?.buttonBorderHover,
@@ -3187,19 +3187,19 @@ var vt = /* @__PURE__ */ function(e) {
3187
3187
  "--cat-filter-section-label": d?.sectionLabel,
3188
3188
  "--cat-filter-divider": d?.divider,
3189
3189
  "--cat-filter-footer-border": d?.footerBorder
3190
- }), g = I(() => n == null ? [] : [...n].sort(), [n]), _ = Hr(e, n, r, a, s), [v, y] = R(() => new Set(e)), [b, x] = R(r ?? !1);
3191
- F(() => {
3190
+ }), g = F(() => n == null ? [] : [...n].sort(), [n]), _ = Ur(e, n, r, a, s), [v, y] = L(() => new Set(e)), [b, x] = L(r ?? !1);
3191
+ P(() => {
3192
3192
  p && (y(new Set(e)), x(r ?? !1));
3193
3193
  }, [
3194
3194
  p,
3195
3195
  e,
3196
3196
  r
3197
3197
  ]);
3198
- let S = g.length + 1, [C, w] = R(-1), T = L([]), E = L(null), D = P((e) => {
3198
+ let S = g.length + 1, [C, w] = L(-1), T = I([]), E = I(null), D = N((e) => {
3199
3199
  let t = (e + S) % S;
3200
3200
  w(t), T.current[t]?.focus();
3201
3201
  }, [S]);
3202
- F(() => {
3202
+ P(() => {
3203
3203
  if (!p) {
3204
3204
  w(-1);
3205
3205
  return;
@@ -3232,16 +3232,16 @@ var vt = /* @__PURE__ */ function(e) {
3232
3232
  ...h,
3233
3233
  maxHeight: "calc(var(--fui-available-height, 9999px) - 8px)"
3234
3234
  },
3235
- className: M("flex min-w-[360px] flex-col rounded-xl p-[6px]", Vr.overlay),
3235
+ className: M("flex min-w-[360px] flex-col rounded-xl p-[6px]", Hr.overlay),
3236
3236
  onKeyDown: k,
3237
3237
  children: [
3238
- /* @__PURE__ */ q(De, {
3238
+ /* @__PURE__ */ q(Oe, {
3239
3239
  role: "menuitemcheckbox",
3240
3240
  "aria-checked": b,
3241
- mark: Oe.Checkbox,
3241
+ mark: ke.Checkbox,
3242
3242
  selected: b,
3243
3243
  label: a,
3244
- labelClassName: M(Vr.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3244
+ labelClassName: M(Hr.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3245
3245
  className: "shrink-0",
3246
3246
  tabIndex: C === 0 ? 0 : -1,
3247
3247
  ref: (e) => {
@@ -3252,11 +3252,11 @@ var vt = /* @__PURE__ */ function(e) {
3252
3252
  g.length > 0 && /* @__PURE__ */ J(K, { children: [
3253
3253
  /* @__PURE__ */ q("div", {
3254
3254
  role: "separator",
3255
- className: M("my-1 h-px", Vr.divider),
3255
+ className: M("my-1 h-px", Hr.divider),
3256
3256
  "aria-hidden": !0
3257
3257
  }),
3258
3258
  /* @__PURE__ */ q("div", {
3259
- className: M("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Vr.sectionLabel),
3259
+ className: M("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Hr.sectionLabel),
3260
3260
  "aria-hidden": !0,
3261
3261
  children: o
3262
3262
  }),
@@ -3264,32 +3264,32 @@ var vt = /* @__PURE__ */ function(e) {
3264
3264
  className: M(re, "flex min-h-0 flex-col gap-1 overflow-y-auto"),
3265
3265
  children: g.map((e, t) => {
3266
3266
  let n = v.has(e), r = t + 1;
3267
- return /* @__PURE__ */ q(De, {
3267
+ return /* @__PURE__ */ q(Oe, {
3268
3268
  role: "menuitemcheckbox",
3269
3269
  "aria-checked": n,
3270
- mark: Oe.Checkbox,
3270
+ mark: ke.Checkbox,
3271
3271
  selected: n,
3272
3272
  label: e,
3273
- labelClassName: Vr.rowLabel,
3273
+ labelClassName: Hr.rowLabel,
3274
3274
  className: "shrink-0",
3275
3275
  tabIndex: C === r ? 0 : -1,
3276
3276
  ref: (e) => {
3277
3277
  T.current[r] = e;
3278
3278
  },
3279
- onClick: () => y(Ur(e, v))
3279
+ onClick: () => y(Wr(e, v))
3280
3280
  }, e);
3281
3281
  })
3282
3282
  })
3283
3283
  ] }),
3284
3284
  /* @__PURE__ */ J("div", {
3285
- className: M("mt-1 flex shrink-0 items-center px-1 py-3", Vr.footer),
3285
+ className: M("mt-1 flex shrink-0 items-center px-1 py-3", Hr.footer),
3286
3286
  onKeyDown: (e) => {
3287
3287
  (e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
3288
3288
  },
3289
- children: [/* @__PURE__ */ q(xe, {
3289
+ children: [/* @__PURE__ */ q(Se, {
3290
3290
  label: c,
3291
3291
  onClick: te
3292
- }), /* @__PURE__ */ q(je, {
3292
+ }), /* @__PURE__ */ q(Me, {
3293
3293
  label: l,
3294
3294
  className: "ms-auto",
3295
3295
  onClick: A
@@ -3297,44 +3297,44 @@ var vt = /* @__PURE__ */ function(e) {
3297
3297
  })
3298
3298
  ]
3299
3299
  }),
3300
- children: /* @__PURE__ */ q(ce, {
3300
+ children: /* @__PURE__ */ q(R, {
3301
3301
  ref: E,
3302
3302
  "aria-haspopup": "menu",
3303
3303
  "aria-expanded": p,
3304
3304
  onKeyDown: ee,
3305
3305
  style: h,
3306
- iconBefore: /* @__PURE__ */ q(Ze, {
3306
+ iconBefore: /* @__PURE__ */ q(Qe, {
3307
3307
  size: z.SM,
3308
3308
  stroke: B,
3309
- className: M("shrink-0", Vr.filterBtnFunnel),
3309
+ className: M("shrink-0", Hr.filterBtnFunnel),
3310
3310
  "aria-hidden": !0
3311
3311
  }),
3312
3312
  label: _,
3313
- textClassName: M(Vr.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3314
- iconAfter: /* @__PURE__ */ q(Ge, {
3313
+ textClassName: M(Hr.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3314
+ iconAfter: /* @__PURE__ */ q(Ke, {
3315
3315
  size: 14,
3316
3316
  stroke: B,
3317
- className: M("shrink-0 transition-transform duration-150", Vr.filterBtnChevron, p && "rotate-180"),
3317
+ className: M("shrink-0 transition-transform duration-150", Hr.filterBtnChevron, p && "rotate-180"),
3318
3318
  "aria-hidden": !0
3319
3319
  }),
3320
- className: M("h-12 shrink-0 gap-[7px] whitespace-nowrap !rounded-lg px-[18px]", Vr.filterBtn, f && Vr.filterBtnActive, p && Vr.filterBtnOpen)
3320
+ className: M("h-12 shrink-0 gap-[7px] whitespace-nowrap !rounded-lg px-[18px]", Hr.filterBtn, f && Hr.filterBtnActive, p && Hr.filterBtnOpen)
3321
3321
  })
3322
3322
  });
3323
- }, Gr = {
3323
+ }, Kr = {
3324
3324
  section: "_section_mh952_1",
3325
3325
  divider: "_divider_mh952_5"
3326
- }, Kr = ({ 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 }) => {
3327
- let w = a?.typography?.titleClassName ?? "dial-body-semi-text", T = a?.typography?.countClassName ?? "dial-tiny-semi-text", E = I(() => [{
3328
- value: xt.Grid,
3329
- icon: /* @__PURE__ */ q(W, {
3326
+ }, qr = ({ 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 }) => {
3327
+ let w = a?.typography?.titleClassName ?? "dial-body-semi-text", T = a?.typography?.countClassName ?? "dial-tiny-semi-text", E = F(() => [{
3328
+ value: Z.Grid,
3329
+ icon: /* @__PURE__ */ q(et, {
3330
3330
  size: z.SM,
3331
3331
  "aria-hidden": !0,
3332
3332
  stroke: B
3333
3333
  }),
3334
3334
  "aria-label": l
3335
3335
  }, {
3336
- value: xt.Cards,
3337
- icon: /* @__PURE__ */ q(et, {
3336
+ value: Z.Cards,
3337
+ icon: /* @__PURE__ */ q(tt, {
3338
3338
  size: z.SM,
3339
3339
  "aria-hidden": !0,
3340
3340
  stroke: B
@@ -3342,10 +3342,10 @@ var vt = /* @__PURE__ */ function(e) {
3342
3342
  "aria-label": u
3343
3343
  }], [l, u]), D = (e) => {
3344
3344
  s(e ?? "");
3345
- }, O = p?.find((e) => e.value === f)?.label ?? h, k = I(() => (p ?? []).map((e) => ({
3345
+ }, O = p?.find((e) => e.value === f)?.label ?? h, k = F(() => (p ?? []).map((e) => ({
3346
3346
  key: e.value,
3347
3347
  label: e.label,
3348
- mark: Oe.Check,
3348
+ mark: ke.Check,
3349
3349
  checked: e.value === f,
3350
3350
  onClick: () => m?.(e.value)
3351
3351
  })), [
@@ -3370,12 +3370,12 @@ var vt = /* @__PURE__ */ function(e) {
3370
3370
  }
3371
3371
  }), /* @__PURE__ */ J("div", {
3372
3372
  className: "ms-auto flex shrink-0 items-center gap-2",
3373
- children: [/* @__PURE__ */ q(Fe, {
3373
+ children: [/* @__PURE__ */ q(H, {
3374
3374
  "aria-label": d,
3375
3375
  value: t,
3376
3376
  onChange: n,
3377
3377
  items: E
3378
- }), p != null && p.length > 0 && /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q("div", { className: M("h-4 w-px shrink-0", Gr.divider) }), /* @__PURE__ */ q(ue, {
3378
+ }), p != null && p.length > 0 && /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q("div", { className: M("h-4 w-px shrink-0", Kr.divider) }), /* @__PURE__ */ q(ue, {
3379
3379
  items: k,
3380
3380
  label: O,
3381
3381
  variant: de.Primary,
@@ -3387,15 +3387,15 @@ var vt = /* @__PURE__ */ function(e) {
3387
3387
  children: [/* @__PURE__ */ q("div", {
3388
3388
  role: "search",
3389
3389
  className: "flex-1",
3390
- children: /* @__PURE__ */ q(Pe, {
3390
+ children: /* @__PURE__ */ q(Fe, {
3391
3391
  value: o,
3392
3392
  onChange: D,
3393
- size: ve.Large,
3393
+ size: ye.Large,
3394
3394
  wrapperClassName: "dial-kit-input-large",
3395
3395
  placeholder: c,
3396
3396
  "aria-label": c
3397
3397
  })
3398
- }), /* @__PURE__ */ q(Wr, {
3398
+ }), /* @__PURE__ */ q(Gr, {
3399
3399
  checked: g ?? /* @__PURE__ */ new Set(),
3400
3400
  onChange: _ ?? (() => void 0),
3401
3401
  values: v,
@@ -3408,12 +3408,12 @@ var vt = /* @__PURE__ */ function(e) {
3408
3408
  })]
3409
3409
  })]
3410
3410
  });
3411
- }, 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 }) => {
3411
+ }, Jr = ({ 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 }) => {
3412
3412
  let b = { "--cat-browse-divider": r?.colors?.divider };
3413
3413
  return /* @__PURE__ */ q("section", {
3414
- className: M("flex-shrink-0 px-4", Gr.section, wt.toolbar),
3414
+ className: M("flex-shrink-0 px-4", Kr.section, Tt.toolbar),
3415
3415
  style: b,
3416
- children: /* @__PURE__ */ q(Kr, {
3416
+ children: /* @__PURE__ */ q(qr, {
3417
3417
  styles: r,
3418
3418
  query: e,
3419
3419
  onQueryChange: t,
@@ -3436,30 +3436,69 @@ var vt = /* @__PURE__ */ function(e) {
3436
3436
  ...y
3437
3437
  })
3438
3438
  });
3439
- }, Jr = {
3439
+ }, Yr = {
3440
3440
  root: "_root_1h83l_1",
3441
3441
  heading: "_heading_1h83l_5",
3442
3442
  headingTitle: "_headingTitle_1h83l_9"
3443
- }, Yr = ({ label: e, options: t, onClick: n }) => {
3444
- let r = L(null);
3445
- return t?.length ? /* @__PURE__ */ q("div", {
3446
- ref: r,
3443
+ }, Xr = ({ label: e, options: t, onClick: n, search: r, searchPlaceholder: i = "Search", searchClearLabel: a = "Clear search", noResultsLabel: o = "No results found" }) => {
3444
+ let s = I(null), [c, l] = L(!1);
3445
+ return r ? /* @__PURE__ */ q("div", {
3446
+ ref: s,
3447
+ children: /* @__PURE__ */ q(_e, {
3448
+ items: t?.length ? t : [{
3449
+ key: "no-results",
3450
+ type: ve.PlainText,
3451
+ label: /* @__PURE__ */ q("span", {
3452
+ role: "status",
3453
+ children: o
3454
+ })
3455
+ }],
3456
+ menuHeader: /* @__PURE__ */ q("div", {
3457
+ className: "px-2 pb-1 pt-2",
3458
+ children: /* @__PURE__ */ q(Fe, {
3459
+ value: r.value,
3460
+ placeholder: i,
3461
+ "aria-label": i,
3462
+ clearLabel: a,
3463
+ size: ye.Small,
3464
+ onChange: (e) => r.onChange(e ?? "")
3465
+ })
3466
+ }),
3467
+ onOpenChange: (e) => {
3468
+ l(e), e || r.onChange("");
3469
+ },
3470
+ children: /* @__PURE__ */ q(R, {
3471
+ label: e,
3472
+ variant: de.Primary,
3473
+ appearance: le.Solid,
3474
+ iconAfter: /* @__PURE__ */ q(Ke, {
3475
+ size: z.SM,
3476
+ stroke: B,
3477
+ "aria-hidden": !0,
3478
+ className: M("transition-transform", c && "rotate-180")
3479
+ }),
3480
+ "aria-haspopup": "menu",
3481
+ "aria-expanded": c
3482
+ })
3483
+ })
3484
+ }) : t?.length ? /* @__PURE__ */ q("div", {
3485
+ ref: s,
3447
3486
  children: /* @__PURE__ */ q(ue, {
3448
3487
  appearance: le.Solid,
3449
3488
  label: e,
3450
3489
  variant: de.Primary,
3451
3490
  items: t
3452
3491
  })
3453
- }) : /* @__PURE__ */ q(je, {
3492
+ }) : /* @__PURE__ */ q(Me, {
3454
3493
  label: e,
3455
- iconBefore: /* @__PURE__ */ q(at, {
3494
+ iconBefore: /* @__PURE__ */ q(ot, {
3456
3495
  size: z.SM,
3457
3496
  stroke: B
3458
3497
  }),
3459
3498
  onClick: n
3460
3499
  });
3461
- }, Xr = 3, Zr = 300, Qr = ({ 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: ee, onPublish: k, onPublishSuccess: A, onPublishError: te, onCreatePublishFolder: ne, publishLabels: re, ruleSourceOptions: j, onFetchExistingRules: ie, shareOverlay: N, isShareVisible: oe, isSharePrimary: se, onFetchDetails: ce, renderCredentials: le, onEdit: ue, onDownload: de, isDownloadVisible: fe, isDownloadPrimary: pe, onLoadContentFile: me, onLoadContentFilePreview: he, renderContentFilePreview: z, renderContentFileTree: B, onDelete: ge, onUnshare: _e, isUnshareVisible: ve, onRevokeShare: ye, onFetchRecipientsCount: be, isRevokeShareVisible: xe, onUnpublish: Se, isUnpublishVisible: Ce, onLogin: we, onLogout: Te, onCreateClick: Ee, createOptions: V, hideCreateButton: De = !1, hidePageTitle: Oe = !1, isReadonly: ke = !1, initialViewMode: Ae = xt.Grid, isFullWidth: je = !1, selectedItemId: Me, onCardClick: Ne, isLoading: Pe, styles: Fe, detailsTexts: Ie, detailsLimitsFooterNote: H, initialDetailsItemId: ze, sortKey: Be, onSortChange: U, filterTopics: Ve, onFilterTopicsChange: He, isMyAppsActive: Ue, onMyAppsActiveChange: We, activeTab: Ge, onActiveTabChange: Ke, renderEmptyState: qe }) => {
3462
- let { typography: Je } = Fe ?? {}, Ye = Tt(Fe), Xe = c?.pageTitle ?? "Catalog", Ze = c?.createLabel ?? "Create", Qe = c?.favoritesTitle ?? "Your favorites", $e = c?.browseTitle ?? "Browse", W = c?.searchPlaceholder ?? "Search models, tools, agents…", et = c?.noResultsTitle ?? ((e) => `No results for "${e}"`), tt = c?.featuredLabel ?? "Featured", nt = c?.gridViewLabel ?? "Grid view", rt = c?.listViewLabel ?? "List view", it = c?.viewToggleLabel ?? "View mode", at = c?.ariaLabel ?? "Catalog", ot = c?.sortLabel ?? "Sort", st = [
3500
+ }, Zr = 3, Qr = 300, $r = ({ 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: ee, onPublish: k, onPublishSuccess: A, onPublishError: te, onCreatePublishFolder: ne, publishLabels: re, ruleSourceOptions: j, onFetchExistingRules: ie, shareOverlay: ae, isShareVisible: se, isSharePrimary: ce, onFetchDetails: R, renderCredentials: le, onEdit: ue, onDownload: de, isDownloadVisible: fe, isDownloadPrimary: pe, onLoadContentFile: me, onLoadContentFilePreview: he, renderContentFilePreview: z, renderContentFileTree: B, onDelete: ge, onUnshare: _e, isUnshareVisible: ve, onRevokeShare: ye, onFetchRecipientsCount: be, isRevokeShareVisible: xe, onUnpublish: Se, isUnpublishVisible: Ce, onLogin: we, onLogout: Te, onCreateClick: Ee, createOptions: V, createSearch: De, hideCreateButton: Oe = !1, hidePageTitle: ke = !1, isReadonly: Ae = !1, initialViewMode: je = Z.Grid, isFullWidth: Me = !1, selectedItemId: Ne, onCardClick: Pe, isLoading: Fe, styles: H, detailsTexts: Ie, detailsLimitsFooterNote: Le, initialDetailsItemId: Be, sortKey: U, onSortChange: Ve, filterTopics: He, onFilterTopicsChange: Ue, isMyAppsActive: We, onMyAppsActiveChange: Ge, activeTab: Ke, onActiveTabChange: qe, renderEmptyState: Je }) => {
3501
+ let { typography: Ye } = H ?? {}, Xe = Et(H), Ze = c?.pageTitle ?? "Catalog", Qe = c?.createLabel ?? "Create", W = 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", at = c?.viewToggleLabel ?? "View mode", ot = c?.ariaLabel ?? "Catalog", st = c?.sortLabel ?? "Sort", ct = [
3463
3502
  {
3464
3503
  value: s.RecentlyUpdated,
3465
3504
  label: c?.sortRecentlyUpdatedLabel ?? "Recently Updated"
@@ -3472,95 +3511,95 @@ var vt = /* @__PURE__ */ function(e) {
3472
3511
  value: s.NameAZ,
3473
3512
  label: c?.sortNameAZLabel ?? "Name A-Z"
3474
3513
  }
3475
- ], [ct, lt] = R(""), [G, ut] = R(Ae), [dt, ft] = R(Ae === xt.Cards ? "shown" : "unmounted"), [pt, mt] = R(s.RecentlyUpdated), [ht, gt] = R(/* @__PURE__ */ new Set()), [_t, vt] = R(!1), Y = Be ?? pt, yt = Ve ?? ht, X = Ue ?? _t, bt = P((e) => {
3514
+ ], [lt, ut] = L(""), [G, dt] = L(je), [ft, pt] = L(je === Z.Cards ? "shown" : "unmounted"), [mt, ht] = L(s.RecentlyUpdated), [gt, _t] = L(/* @__PURE__ */ new Set()), [vt, yt] = L(!1), Y = U ?? mt, bt = He ?? gt, X = We ?? vt, xt = N((e) => {
3476
3515
  let t = e;
3477
- mt(t), U?.(t);
3478
- }, [U]), Z = P((e) => {
3479
- gt(e), He?.(e);
3480
- }, [He]), St = P((e) => {
3481
- vt(e), We?.(e);
3482
- }, [We]), Q = I(() => e.filter((e) => !e.isHidden), [e]), Ct = I(() => o.filter((e) => !e.isHidden), [o]), Et = I(() => n ?? u(Q), [n, Q]), Dt = I(() => t ?? r(Q, c?.tabLabels), [
3516
+ ht(t), Ve?.(t);
3517
+ }, [Ve]), St = N((e) => {
3518
+ _t(e), Ue?.(e);
3519
+ }, [Ue]), Ct = N((e) => {
3520
+ yt(e), Ge?.(e);
3521
+ }, [Ge]), Q = F(() => e.filter((e) => !e.isHidden), [e]), wt = F(() => o.filter((e) => !e.isHidden), [o]), Dt = F(() => n ?? u(Q), [n, Q]), Ot = F(() => t ?? r(Q, c?.tabLabels), [
3483
3522
  t,
3484
3523
  Q,
3485
3524
  c?.tabLabels
3486
- ]), Ot = Dt[0]?.id ?? "", [kt, At] = R(Ot);
3487
- F(() => {
3488
- At((e) => e || Ot);
3489
- }, [Ot]);
3490
- let jt = Ge ?? kt, Mt = P((e) => {
3491
- At(e), Ke?.(e);
3492
- }, [Ke]), [Nt, Pt] = R(Ct.length > 0);
3493
- F(() => {
3494
- Ct.length > 0 && !Nt && Pt(!0);
3495
- }, [Ct.length, Nt]);
3496
- let Ft = P(() => {
3497
- Pt(!1);
3498
- }, []), It = Nt && Ct.length === 0, [Lt, Rt] = R(null), [zt, Bt] = R(!1), [Vt, Ht] = R(void 0), [Ut, Wt] = R(!1), Gt = L(null), Kt = L(0), qt = P(async (e) => {
3499
- Gt.current = e.id;
3500
- let t = ++Kt.current;
3501
- if (ce) {
3502
- Wt(!0);
3525
+ ]), kt = Ot[0]?.id ?? "", [At, jt] = L(kt);
3526
+ P(() => {
3527
+ jt((e) => e || kt);
3528
+ }, [kt]);
3529
+ let Mt = Ke ?? At, Nt = N((e) => {
3530
+ jt(e), qe?.(e);
3531
+ }, [qe]), [Pt, Ft] = L(wt.length > 0);
3532
+ P(() => {
3533
+ wt.length > 0 && !Pt && Ft(!0);
3534
+ }, [wt.length, Pt]);
3535
+ let It = N(() => {
3536
+ Ft(!1);
3537
+ }, []), Lt = Pt && wt.length === 0, [Rt, zt] = L(null), [Bt, Vt] = L(!1), [Ht, Ut] = L(void 0), [Wt, Gt] = L(!1), Kt = I(null), qt = I(0), Jt = N(async (e) => {
3538
+ Kt.current = e.id;
3539
+ let t = ++qt.current;
3540
+ if (R) {
3541
+ Gt(!0);
3503
3542
  try {
3504
- let n = await ce(e);
3505
- return Kt.current === t && Ht(n), n;
3543
+ let n = await R(e);
3544
+ return qt.current === t && Ut(n), n;
3506
3545
  } finally {
3507
- Kt.current === t && Wt(!1);
3546
+ qt.current === t && Gt(!1);
3508
3547
  }
3509
3548
  }
3510
- }, [ce]), Jt = P(async (e) => (Rt(e), Ht(void 0), qt(e)), [qt]), Yt = P(async (e, t) => {
3511
- for (let n = 0; n < Xr; n++) {
3512
- if (Gt.current !== e.id || t(await qt(e))) return;
3513
- n < Xr - 1 && await h(Zr);
3549
+ }, [R]), Yt = N(async (e) => (zt(e), Ut(void 0), Jt(e)), [Jt]), Xt = N(async (e, t) => {
3550
+ for (let n = 0; n < Zr; n++) {
3551
+ if (Kt.current !== e.id || t(await Jt(e))) return;
3552
+ n < Zr - 1 && await h(Qr);
3514
3553
  }
3515
- }, [qt]), Zt = L(null);
3516
- F(() => {
3517
- if (!ze) {
3518
- Zt.current = null;
3554
+ }, [Jt]), Qt = I(null);
3555
+ P(() => {
3556
+ if (!Be) {
3557
+ Qt.current = null;
3519
3558
  return;
3520
3559
  }
3521
- if (Zt.current === ze) return;
3522
- let t = e.find((e) => e.id === ze);
3523
- t && (Zt.current = ze, Jt(t));
3560
+ if (Qt.current === Be) return;
3561
+ let t = e.find((e) => e.id === Be);
3562
+ t && (Qt.current = Be, Yt(t));
3524
3563
  }, [
3525
- ze,
3564
+ Be,
3526
3565
  e,
3527
- Jt
3528
- ]), F(() => {
3529
- if (Lt == null) return;
3530
- let t = e.find((e) => e.id === Lt.id);
3531
- t && t !== Lt && Rt(t);
3532
- }, [e, Lt]);
3533
- let Qt = P(async (e, t) => {
3534
- await we?.(e, t), ce && await Yt(e, (e) => f(e?.credentials, t.level));
3566
+ Yt
3567
+ ]), P(() => {
3568
+ if (Rt == null) return;
3569
+ let t = e.find((e) => e.id === Rt.id);
3570
+ t && t !== Rt && zt(t);
3571
+ }, [e, Rt]);
3572
+ let $t = N(async (e, t) => {
3573
+ await we?.(e, t), R && await Xt(e, (e) => f(e?.credentials, t.level));
3535
3574
  }, [
3536
3575
  we,
3537
- ce,
3538
- Yt
3539
- ]), $t = P(async (e, t) => {
3540
- await Te?.(e, t), ce && await Yt(e, (e) => !f(e?.credentials, t.level));
3576
+ R,
3577
+ Xt
3578
+ ]), en = N(async (e, t) => {
3579
+ await Te?.(e, t), R && await Xt(e, (e) => !f(e?.credentials, t.level));
3541
3580
  }, [
3542
3581
  Te,
3543
- ce,
3544
- Yt
3545
- ]), en = P(() => {
3546
- Bt(!1), Gt.current = null, Kt.current += 1, setTimeout(() => {
3547
- Rt(null), Ht(void 0), Wt(!1);
3582
+ R,
3583
+ Xt
3584
+ ]), tn = N(() => {
3585
+ Vt(!1), Kt.current = null, qt.current += 1, setTimeout(() => {
3586
+ zt(null), Ut(void 0), Gt(!1);
3548
3587
  }, 300);
3549
- }, []), tn = I(() => {
3550
- if (Lt == null) return null;
3551
- if (Vt == null) return Lt;
3552
- let { credentials: e, ...t } = Vt;
3588
+ }, []), nn = F(() => {
3589
+ if (Rt == null) return null;
3590
+ if (Ht == null) return Rt;
3591
+ let { credentials: e, ...t } = Ht;
3553
3592
  return {
3554
- ...Lt,
3593
+ ...Rt,
3555
3594
  details: t,
3556
- credentials: e ?? Lt.credentials
3595
+ credentials: e ?? Rt.credentials
3557
3596
  };
3558
- }, [Lt, Vt]), nn = I(() => l(Q, Y), [Q, Y]), rn = I(() => a(nn, ct), [nn, ct]), an = I(() => yt.size > 0 ? i(rn, yt) : rn, [rn, yt]), on = I(() => X ? _(an) : an, [an, X]), sn = I(() => jt ? on.filter((e) => e.type === jt) : on, [on, jt]);
3559
- F(() => {
3560
- if (dt !== "unmounted" || Pe || sn.length === 0) return;
3597
+ }, [Rt, Ht]), rn = F(() => l(Q, Y), [Q, Y]), an = F(() => a(rn, lt), [rn, lt]), on = F(() => bt.size > 0 ? i(an, bt) : an, [an, bt]), sn = F(() => X ? _(on) : on, [on, X]), cn = F(() => Mt ? sn.filter((e) => e.type === Mt) : sn, [sn, Mt]);
3598
+ P(() => {
3599
+ if (ft !== "unmounted" || Fe || cn.length === 0) return;
3561
3600
  let e = () => {
3562
- ae(() => {
3563
- ft((e) => e === "unmounted" ? "prepared" : e);
3601
+ oe(() => {
3602
+ pt((e) => e === "unmounted" ? "prepared" : e);
3564
3603
  });
3565
3604
  };
3566
3605
  if (typeof window.requestIdleCallback == "function") {
@@ -3570,159 +3609,163 @@ var vt = /* @__PURE__ */ function(e) {
3570
3609
  let t = window.setTimeout(e, 200);
3571
3610
  return () => window.clearTimeout(t);
3572
3611
  }, [
3573
- dt,
3574
- Pe,
3575
- sn.length
3612
+ ft,
3613
+ Fe,
3614
+ cn.length
3576
3615
  ]);
3577
- let cn = Lt != null && Ct.some((e) => e.id === Lt.id);
3578
- F(() => {
3579
- if (Lt == null) return;
3580
- let e = requestAnimationFrame(() => Bt(!0));
3616
+ let ln = Rt != null && wt.some((e) => e.id === Rt.id);
3617
+ P(() => {
3618
+ if (Rt == null) return;
3619
+ let e = requestAnimationFrame(() => Vt(!0));
3581
3620
  return () => cancelAnimationFrame(e);
3582
- }, [Lt]);
3583
- let ln = P((e) => {
3584
- e === xt.Cards && ft("shown"), ut(e);
3585
- }, []), un = !De && !ke, dn = Nt && !ke, fn = ct ? et(ct) : "No items", pn = I(() => ({
3586
- noResultsTitle: fn,
3587
- featuredLabel: tt,
3621
+ }, [Rt]);
3622
+ let un = N((e) => {
3623
+ e === Z.Cards && pt("shown"), dt(e);
3624
+ }, []), dn = !Oe && !Ae, fn = Pt && !Ae, pn = lt ? tt(lt) : "No items", mn = F(() => ({
3625
+ noResultsTitle: pn,
3626
+ featuredLabel: nt,
3588
3627
  credentialsBadgeLoggedOutLabel: Ie?.credentialsBadgeLoggedOutLabel
3589
3628
  }), [
3590
- fn,
3591
- tt,
3629
+ pn,
3630
+ nt,
3592
3631
  Ie?.credentialsBadgeLoggedOutLabel
3593
- ]), mn = !Pe && sn.length === 0 ? qe?.({
3594
- query: ct,
3595
- activeTab: jt,
3596
- hasTopicFilters: yt.size > 0,
3632
+ ]), hn = !Fe && cn.length === 0 ? Je?.({
3633
+ query: lt,
3634
+ activeTab: Mt,
3635
+ hasTopicFilters: bt.size > 0,
3597
3636
  isMyAppsActive: X
3598
3637
  }) : void 0;
3599
- return Pe ? /* @__PURE__ */ q("div", {
3638
+ return Fe ? /* @__PURE__ */ q("div", {
3600
3639
  className: "flex size-full min-h-0 flex-1 items-center justify-center",
3601
- children: /* @__PURE__ */ q(Le, {})
3640
+ children: /* @__PURE__ */ q(Re, {})
3602
3641
  }) : /* @__PURE__ */ J("section", {
3603
- "aria-label": at,
3604
- className: M("flex size-full min-h-0 flex-1 flex-col", Jr.root, wt.root),
3605
- style: Ye,
3642
+ "aria-label": ot,
3643
+ className: M("flex size-full min-h-0 flex-1 flex-col", Yr.root, Tt.root),
3644
+ style: Xe,
3606
3645
  children: [
3607
- (!Oe || un) && /* @__PURE__ */ q("div", {
3608
- className: M("shrink-0", Jr.heading),
3646
+ (!ke || dn) && /* @__PURE__ */ q("div", {
3647
+ className: M("shrink-0", Yr.heading),
3609
3648
  children: /* @__PURE__ */ J("div", {
3610
3649
  className: "flex h-[64px] w-full items-center justify-between px-8",
3611
- children: [!Oe && /* @__PURE__ */ q("h1", {
3612
- className: M(Je?.pageHeadingFontClassName ?? "dial-display2-text", Jr.headingTitle),
3613
- children: Xe
3614
- }), un && /* @__PURE__ */ q(Yr, {
3615
- label: Ze,
3650
+ children: [!ke && /* @__PURE__ */ q("h1", {
3651
+ className: M(Ye?.pageHeadingFontClassName ?? "dial-display2-text", Yr.headingTitle),
3652
+ children: Ze
3653
+ }), dn && /* @__PURE__ */ q(Xr, {
3654
+ label: Qe,
3616
3655
  options: V,
3617
- onClick: Ee
3656
+ onClick: Ee,
3657
+ search: De,
3658
+ searchPlaceholder: c?.createSearchPlaceholder,
3659
+ searchClearLabel: c?.createSearchClearLabel,
3660
+ noResultsLabel: c?.createNoResultsLabel
3618
3661
  })]
3619
3662
  })
3620
3663
  }),
3621
3664
  /* @__PURE__ */ J("div", {
3622
3665
  className: "flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto overflow-x-hidden",
3623
3666
  children: [
3624
- dn && /* @__PURE__ */ q("div", {
3667
+ fn && /* @__PURE__ */ q("div", {
3625
3668
  className: "w-full px-8",
3626
- children: /* @__PURE__ */ q(Tr, {
3627
- items: Ct,
3628
- totalCount: Ct.length,
3629
- title: Qe,
3669
+ children: /* @__PURE__ */ q(Er, {
3670
+ items: wt,
3671
+ totalCount: wt.length,
3672
+ title: W,
3630
3673
  onToggleFavorite: p,
3631
3674
  isFavoriteVisible: m,
3632
- onItemClick: Ne ?? Jt,
3633
- isLeaving: It,
3634
- onExitComplete: Ft,
3635
- selectedItemId: Me,
3675
+ onItemClick: Pe ?? Yt,
3676
+ isLeaving: Lt,
3677
+ onExitComplete: It,
3678
+ selectedItemId: Ne,
3636
3679
  credentialsBadgeLoggedOutLabel: Ie?.credentialsBadgeLoggedOutLabel
3637
3680
  })
3638
3681
  }),
3639
3682
  /* @__PURE__ */ q("div", {
3640
3683
  className: "w-full px-4 pt-6",
3641
- children: /* @__PURE__ */ q(qr, {
3642
- totalCount: on.length,
3684
+ children: /* @__PURE__ */ q(Jr, {
3685
+ totalCount: sn.length,
3643
3686
  viewMode: G,
3644
- onViewModeChange: ln,
3687
+ onViewModeChange: un,
3645
3688
  sortKey: Y,
3646
- query: ct,
3647
- onQueryChange: lt,
3689
+ query: lt,
3690
+ onQueryChange: ut,
3648
3691
  title: $e,
3649
3692
  browseHeaderRenderer: d,
3650
- searchPlaceholder: W,
3651
- gridViewLabel: nt,
3652
- listViewLabel: rt,
3653
- viewToggleLabel: it,
3654
- sortOptions: st,
3655
- onSortChange: bt,
3656
- sortLabel: ot,
3657
- filters: yt,
3658
- onFiltersChange: Z,
3659
- filterValues: Et,
3693
+ searchPlaceholder: et,
3694
+ gridViewLabel: rt,
3695
+ listViewLabel: it,
3696
+ viewToggleLabel: at,
3697
+ sortOptions: ct,
3698
+ onSortChange: xt,
3699
+ sortLabel: st,
3700
+ filters: bt,
3701
+ onFiltersChange: St,
3702
+ filterValues: Dt,
3660
3703
  isMyAppsActive: X,
3661
- onMyAppsChange: St,
3704
+ onMyAppsChange: Ct,
3662
3705
  filterFromLabel: c?.filterFromLabel,
3663
3706
  filterMyAppsLabel: c?.filterMyAppsLabel,
3664
3707
  filterTopicsLabel: c?.filterTopicsLabel
3665
3708
  })
3666
3709
  }),
3667
- Dt.length > 1 && /* @__PURE__ */ q("div", {
3710
+ Ot.length > 1 && /* @__PURE__ */ q("div", {
3668
3711
  className: "min-w-0 shrink-0 overflow-x-auto px-8",
3669
- children: /* @__PURE__ */ q(Re, {
3670
- tabs: Dt.map((e) => ({
3712
+ children: /* @__PURE__ */ q(ze, {
3713
+ tabs: Ot.map((e) => ({
3671
3714
  id: e.id,
3672
3715
  label: typeof e.label == "string" ? e.label : String(e.label),
3673
- count: on.filter((t) => t.type === e.id).length
3716
+ count: sn.filter((t) => t.type === e.id).length
3674
3717
  })),
3675
- activeTabId: jt,
3676
- onTabChange: Mt
3718
+ activeTabId: Mt,
3719
+ onTabChange: Nt
3677
3720
  })
3678
3721
  }),
3679
3722
  /* @__PURE__ */ q("div", {
3680
- className: M(sn.length > 0 ? ["min-h-full w-full px-8 py-6", !je && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", sn.length === 0 && "px-8 py-6"),
3681
- children: mn ?? /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q("div", {
3682
- inert: G !== xt.Grid,
3683
- className: M(sn.length > 0 ? "pb-8" : "size-full flex-1", G !== xt.Grid && "hidden"),
3684
- children: /* @__PURE__ */ q(Xt, {
3685
- items: sn,
3686
- query: ct,
3723
+ className: M(cn.length > 0 ? ["min-h-full w-full px-8 py-6", !Me && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", cn.length === 0 && "px-8 py-6"),
3724
+ children: hn ?? /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q("div", {
3725
+ inert: G !== Z.Grid,
3726
+ className: M(cn.length > 0 ? "pb-8" : "size-full flex-1", G !== Z.Grid && "hidden"),
3727
+ children: /* @__PURE__ */ q(Zt, {
3728
+ items: cn,
3729
+ query: lt,
3687
3730
  onToggleFavorite: p,
3688
3731
  isFavoriteVisible: m,
3689
- onItemClick: Ne ?? Jt,
3690
- titles: pn,
3691
- selectedItemId: Me,
3692
- isReadonly: ke,
3693
- isFullWidth: je,
3694
- featuredChipStyle: Fe?.colors?.featuredChipStyle
3732
+ onItemClick: Pe ?? Yt,
3733
+ titles: mn,
3734
+ selectedItemId: Ne,
3735
+ isReadonly: Ae,
3736
+ isFullWidth: Me,
3737
+ featuredChipStyle: H?.colors?.featuredChipStyle
3695
3738
  })
3696
- }), dt !== "unmounted" && /* @__PURE__ */ q("div", {
3697
- inert: G !== xt.Cards,
3698
- className: M("pb-8", G !== xt.Cards && (dt === "prepared" ? "invisible h-0 overflow-hidden p-0" : "hidden"), sn.length === 0 && G === xt.Cards && "h-full"),
3699
- children: /* @__PURE__ */ q(zr, {
3700
- type: jt,
3701
- items: sn,
3702
- query: ct,
3703
- ariaLabel: at,
3704
- emptyStateTitle: fn,
3739
+ }), ft !== "unmounted" && /* @__PURE__ */ q("div", {
3740
+ inert: G !== Z.Cards,
3741
+ className: M("pb-8", G !== Z.Cards && (ft === "prepared" ? "invisible h-0 overflow-hidden p-0" : "hidden"), cn.length === 0 && G === Z.Cards && "h-full"),
3742
+ children: /* @__PURE__ */ q(Br, {
3743
+ type: Mt,
3744
+ items: cn,
3745
+ query: lt,
3746
+ ariaLabel: ot,
3747
+ emptyStateTitle: pn,
3705
3748
  onToggleFavorite: p,
3706
3749
  isFavoriteVisible: m,
3707
3750
  columnVisibility: g,
3708
- onItemClick: Ne ?? Jt,
3751
+ onItemClick: Pe ?? Yt,
3709
3752
  stickyHeaderTop: 0,
3710
- selectedItemId: Me,
3753
+ selectedItemId: Ne,
3711
3754
  credentialsBadgeLoggedOutLabel: Ie?.credentialsBadgeLoggedOutLabel,
3712
- isReadonly: ke
3755
+ isReadonly: Ae
3713
3756
  })
3714
3757
  })] })
3715
3758
  })
3716
3759
  ]
3717
3760
  }),
3718
- tn != null && /* @__PURE__ */ q(br, {
3761
+ nn != null && /* @__PURE__ */ q(xr, {
3719
3762
  renderCredentials: le,
3720
- item: tn,
3721
- isOpen: zt,
3722
- isStarred: cn,
3723
- isDetailsLoading: Ut,
3724
- isReadonly: ke,
3725
- onClose: en,
3763
+ item: nn,
3764
+ isOpen: Bt,
3765
+ isStarred: ln,
3766
+ isDetailsLoading: Wt,
3767
+ isReadonly: Ae,
3768
+ onClose: tn,
3726
3769
  onToggleFavorite: p,
3727
3770
  isFavoriteVisible: m,
3728
3771
  onUseInChat: v,
@@ -3744,9 +3787,9 @@ var vt = /* @__PURE__ */ function(e) {
3744
3787
  publishLabels: re,
3745
3788
  ruleSourceOptions: j,
3746
3789
  onFetchExistingRules: ie,
3747
- shareOverlay: N,
3748
- isShareVisible: oe,
3749
- isSharePrimary: se,
3790
+ shareOverlay: ae,
3791
+ isShareVisible: se,
3792
+ isSharePrimary: ce,
3750
3793
  onEdit: ue,
3751
3794
  onDownload: de,
3752
3795
  isDownloadVisible: fe,
@@ -3763,18 +3806,18 @@ var vt = /* @__PURE__ */ function(e) {
3763
3806
  isRevokeShareVisible: xe,
3764
3807
  onUnpublish: Se,
3765
3808
  isUnpublishVisible: Ce,
3766
- onLogin: Qt,
3767
- onLogout: $t,
3809
+ onLogin: $t,
3810
+ onLogout: en,
3768
3811
  texts: Ie,
3769
- limitsFooterNote: H,
3770
- styles: { colors: { featuredChipStyle: Fe?.colors?.featuredChipStyle } }
3812
+ limitsFooterNote: Le,
3813
+ styles: { colors: { featuredChipStyle: H?.colors?.featuredChipStyle } }
3771
3814
  })
3772
3815
  ]
3773
3816
  });
3774
- }, $r = ({ 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 }) => {
3775
- let [x, S] = R(!1), C = v ?? x, w = (e) => {
3817
+ }, ei = ({ 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 }) => {
3818
+ let [x, S] = L(!1), C = v ?? x, w = (e) => {
3776
3819
  e && u || (v === void 0 && S(e), y?.(e));
3777
- }, [T, E] = R(""), D = L(null), O = I(() => [...s, ...t].filter((e) => e.label.toLocaleLowerCase().includes(T.toLocaleLowerCase())), [
3820
+ }, [T, E] = L(""), D = I(null), O = F(() => [...s, ...t].filter((e) => e.label.toLocaleLowerCase().includes(T.toLocaleLowerCase())), [
3778
3821
  s,
3779
3822
  t,
3780
3823
  T
@@ -3785,7 +3828,7 @@ var vt = /* @__PURE__ */ function(e) {
3785
3828
  }, A = _ ? _(ee) : /* @__PURE__ */ J("div", {
3786
3829
  className: M("w-full min-w-0 max-w-full p-3", h),
3787
3830
  children: [
3788
- /* @__PURE__ */ q(Pe, {
3831
+ /* @__PURE__ */ q(Fe, {
3789
3832
  value: T,
3790
3833
  onChange: (e) => E(e ?? ""),
3791
3834
  placeholder: i.searchPlaceholder,
@@ -3803,7 +3846,7 @@ var vt = /* @__PURE__ */ function(e) {
3803
3846
  }) : O.length === 0 ? /* @__PURE__ */ q("span", {
3804
3847
  role: "status",
3805
3848
  children: i.emptyLabel
3806
- }) : O.map((t) => /* @__PURE__ */ q(De, {
3849
+ }) : O.map((t) => /* @__PURE__ */ q(Oe, {
3807
3850
  role: "option",
3808
3851
  "aria-selected": t.id === e,
3809
3852
  selected: t.id === e,
@@ -3814,7 +3857,7 @@ var vt = /* @__PURE__ */ function(e) {
3814
3857
  children: t.icon
3815
3858
  }), /* @__PURE__ */ J("span", {
3816
3859
  className: "flex min-w-0 flex-col",
3817
- children: [/* @__PURE__ */ q(Ce, {
3860
+ children: [/* @__PURE__ */ q(we, {
3818
3861
  text: t.label,
3819
3862
  query: T,
3820
3863
  maxLines: 2
@@ -3825,7 +3868,7 @@ var vt = /* @__PURE__ */ function(e) {
3825
3868
  className: "h-auto max-w-full py-2"
3826
3869
  }, t.id))
3827
3870
  }),
3828
- o && /* @__PURE__ */ q(xe, {
3871
+ o && /* @__PURE__ */ q(Se, {
3829
3872
  className: "mt-2 min-h-11 max-w-full",
3830
3873
  label: i.browseLabel ?? "",
3831
3874
  onClick: () => {
@@ -3833,7 +3876,7 @@ var vt = /* @__PURE__ */ function(e) {
3833
3876
  }
3834
3877
  })
3835
3878
  ]
3836
- }), te = /* @__PURE__ */ q(Ee, {
3879
+ }), te = /* @__PURE__ */ q(V, {
3837
3880
  onFocus: (e) => {
3838
3881
  D.current = e.currentTarget;
3839
3882
  },
@@ -3871,9 +3914,9 @@ var vt = /* @__PURE__ */ function(e) {
3871
3914
  renderOverlay: () => A,
3872
3915
  children: te
3873
3916
  });
3874
- }, ei = ({ service: e, texts: t, onLogin: n, onLogout: r }) => {
3875
- let [i, a] = R(!1), [s, c] = R(!1), [l, u] = R(!1), [d, f] = R(), 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?";
3876
- return /* @__PURE__ */ J(Sn, {
3917
+ }, ti = ({ service: e, texts: t, onLogin: n, onLogout: r }) => {
3918
+ 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?";
3919
+ return /* @__PURE__ */ J(Cn, {
3877
3920
  label: e.name,
3878
3921
  description: e.description,
3879
3922
  icon: /* @__PURE__ */ q(G, {
@@ -3898,7 +3941,7 @@ var vt = /* @__PURE__ */ function(e) {
3898
3941
  errorClassName: "dial-caption-text",
3899
3942
  keyCardTitleClassName: "dial-tiny-semi-text",
3900
3943
  keyCardDescriptionClassName: "dial-tiny-text",
3901
- deleteActionClassName: xn.errorText,
3944
+ deleteActionClassName: Sn.errorText,
3902
3945
  renderLoginOptions: e.canConsentToOfflineUsage ? (e) => /* @__PURE__ */ q(pe, {
3903
3946
  isSelected: i,
3904
3947
  onChange: a,
@@ -3908,11 +3951,11 @@ var vt = /* @__PURE__ */ function(e) {
3908
3951
  }) : void 0,
3909
3952
  children: [
3910
3953
  e.hint && /* @__PURE__ */ q("p", {
3911
- className: M("dial-small-text break-words", xn.description),
3954
+ className: M("dial-small-text break-words", Sn.description),
3912
3955
  children: e.hint
3913
3956
  }),
3914
- e.hasSharedCredentials && /* @__PURE__ */ q(mn, {
3915
- icon: /* @__PURE__ */ q(Ue, {
3957
+ e.hasSharedCredentials && /* @__PURE__ */ q(hn, {
3958
+ icon: /* @__PURE__ */ q(We, {
3916
3959
  size: z.SM,
3917
3960
  "aria-hidden": !0,
3918
3961
  stroke: B
@@ -3925,12 +3968,12 @@ var vt = /* @__PURE__ */ function(e) {
3925
3968
  /* @__PURE__ */ q("p", { children: h }),
3926
3969
  d && /* @__PURE__ */ q("p", {
3927
3970
  role: "alert",
3928
- className: xn.errorText,
3971
+ className: Sn.errorText,
3929
3972
  children: d
3930
3973
  }),
3931
3974
  /* @__PURE__ */ J("div", {
3932
3975
  className: "flex flex-wrap justify-end gap-2",
3933
- children: [/* @__PURE__ */ q(ke, {
3976
+ children: [/* @__PURE__ */ q(Ae, {
3934
3977
  className: "min-h-11",
3935
3978
  label: t?.cancelLabel ?? "Cancel",
3936
3979
  disabled: l,
@@ -3959,7 +4002,7 @@ var vt = /* @__PURE__ */ function(e) {
3959
4002
  })
3960
4003
  ]
3961
4004
  });
3962
- }, ti = ({ services: e, isLoading: t = !1, hasError: n = !1, showEmptyState: r = !1, onRetry: i, onLogin: a, onLogout: o, texts: s }) => t && !e.length ? /* @__PURE__ */ q("p", {
4005
+ }, ni = ({ services: e, isLoading: t = !1, hasError: n = !1, showEmptyState: r = !1, onRetry: i, onLogin: a, onLogout: o, texts: s }) => t && !e.length ? /* @__PURE__ */ q("p", {
3963
4006
  role: "status",
3964
4007
  className: "px-6 py-3",
3965
4008
  children: s?.loading ?? "Loading…"
@@ -3968,7 +4011,7 @@ var vt = /* @__PURE__ */ function(e) {
3968
4011
  children: [/* @__PURE__ */ q("p", {
3969
4012
  role: "alert",
3970
4013
  children: s?.loadError ?? "Unable to load credentials"
3971
- }), /* @__PURE__ */ q(ke, {
4014
+ }), /* @__PURE__ */ q(Ae, {
3972
4015
  className: "min-h-11 self-start",
3973
4016
  label: s?.retry ?? "Retry",
3974
4017
  onClick: i
@@ -3981,7 +4024,7 @@ var vt = /* @__PURE__ */ function(e) {
3981
4024
  children: s?.title ?? "Credentials"
3982
4025
  }), /* @__PURE__ */ q("div", {
3983
4026
  className: "flex min-w-0 flex-col",
3984
- children: e.map((e) => /* @__PURE__ */ q(ei, {
4027
+ children: e.map((e) => /* @__PURE__ */ q(ti, {
3985
4028
  service: e,
3986
4029
  texts: s,
3987
4030
  onLogin: a,
@@ -3994,4 +4037,4 @@ var vt = /* @__PURE__ */ function(e) {
3994
4037
  children: s?.empty ?? "No credentials required"
3995
4038
  }) : null;
3996
4039
  //#endregion
3997
- export { It as AppIdentity, ti as ApplicationCredentials, wt as CATALOG_CLASS, Jt as Card, Xt as CardGrid, Yt as CardRowRenderer, Qr as Catalog, St as CatalogContentNodeType, Q as CatalogContentPreviewType, Y as CatalogDetailsTab, yt as CatalogLimitStatus, s as CatalogSortKey, xt as CatalogViewMode, vt as CodeLanguage, Hn as ContentTab, o as CredentialStatus, Rt as CredentialsBadge, e as CredentialsBadgeState, b as CredentialsLevel, n as CredentialsUiState, $r as DeploymentSelectorField, bt as DeploymentSize, X as DetailsConfirmationKind, br as DetailsPanel, Sr as FavoriteCard, Tr as Favorites, Wr as Filter, Z as LimitRowLayout, er as LimitsTab, zr 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, Ct as useFavColumns, Nt as useScrollVirtualizer };
4040
+ export { Lt as AppIdentity, ni as ApplicationCredentials, Tt as CATALOG_CLASS, Yt as Card, Zt as CardGrid, Xt as CardRowRenderer, $r as Catalog, Ct as CatalogContentNodeType, Q as CatalogContentPreviewType, Y as CatalogDetailsTab, bt as CatalogLimitStatus, s as CatalogSortKey, Z as CatalogViewMode, yt as CodeLanguage, Un as ContentTab, o as CredentialStatus, zt as CredentialsBadge, e as CredentialsBadgeState, b as CredentialsLevel, n as CredentialsUiState, ei as DeploymentSelectorField, xt as DeploymentSize, X as DetailsConfirmationKind, xr as DetailsPanel, Cr as FavoriteCard, Er as Favorites, Gr as Filter, St as LimitRowLayout, tr as LimitsTab, Br as ListView, Jr as Toolbar, y as ToolsetAuthenticationType, Wt 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, Pt as useScrollVirtualizer };