@epam/ai-dial-catalog 1.4.0-dev.68 → 1.4.0-dev.72

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,7 +1,7 @@
1
1
  import { A as e, C as t, D as n, E as r, M as i, N as a, O as o, P as s, S as c, T as l, _ as u, a as d, b as f, c as p, d as m, f as h, g, h as _, i as v, j as y, k as b, l as x, m as S, n as C, o as w, p as T, r as E, s as D, t as O, u as k, v as A, w as j, x as M, y as N } from "./mapping-Bsy4fyg5.js";
2
- import { CatalogEntityType as P, ConfirmationFooter as F, ConfirmationView as I, DESKTOP_BREAKPOINT_PX as ee, DeploymentIcon as L, EntityHeader as te, EntityTypeLabel as ne, FeaturedChip as re, ItemHeader as ie, MarkdownCodeBlock as ae, MarkdownRenderer as R, MarkdownWithPlaceholders as oe, PanelEmptyState as z, SELECT_LIST_MAX_HEIGHT_CLASS_NAME as se, SELECT_LIST_MAX_HEIGHT_PX as ce, buildCssVars as B, mergeClasses as V, useIsMobile as le, useIsPhone as ue, useIsVerticallyClamped as de } from "@epam/ai-dial-chat-shared";
3
- import { Fragment as fe, memo as pe, startTransition as me, useCallback as H, useEffect as U, useId as he, useImperativeHandle as W, useLayoutEffect as ge, useMemo as G, useRef as K, useState as q } from "react";
4
- import { Badge as _e, BottomSheet as ve, Breadcrumbs as ye, Button as be, ButtonAppearance as xe, ButtonDropdown as Se, ButtonVariant as Ce, CaptionText as we, CardShell as Te, Checkbox as Ee, ConfirmationPopupVariant as De, DIAL_ICON_SIZE as J, DIAL_KIT_ICON_STROKE as Y, DangerButton as Oe, Dropdown as ke, DropdownItemType as Ae, DropdownOverlayRole as je, ElementSize as Me, EllipsisTooltip as Ne, ErrorText as Pe, FabButton as Fe, FileIcon as Ie, FolderPath as Le, GhostButton as Re, GhostIconButton as ze, Highlight as Be, InlineSelect as Ve, InlineSelectTrigger as He, Input as Ue, InteractiveTooltip as We, LinkButton as Ge, LiveRegion as Ke, LiveRegionElement as qe, LiveRegionPoliteness as Je, MenuItem as Ye, MenuItemMark as Xe, NeutralButton as Ze, NeutralIconButton as Qe, NoDataContent as $e, Popup as et, PopupSize as tt, PrimaryButton as nt, ProgressBar as rt, RadioGroup as it, Search as at, SegmentedControl as ot, SideDrawer as st, Skeleton as ct, SkeletonAvatarShape as lt, Spinner as ut, Tabs as dt, ToggleIconButton as ft, Tooltip as pt, mergeClasses as mt } from "@epam/ai-dial-ui-kit";
2
+ import { CatalogEntityType as P, ConfirmationFooter as F, ConfirmationView as ee, DESKTOP_BREAKPOINT_PX as I, DeploymentIcon as L, EntityHeader as te, EntityTypeLabel as ne, FeaturedChip as re, ItemHeader as ie, MarkdownCodeBlock as ae, MarkdownRenderer as R, MarkdownWithPlaceholders as oe, PanelEmptyState as se, SELECT_LIST_MAX_HEIGHT_CLASS_NAME as ce, SELECT_LIST_MAX_HEIGHT_PX as le, buildCssVars as z, mergeClasses as B, useIsMobile as ue, useIsPhone as de, useIsVerticallyClamped as fe } from "@epam/ai-dial-chat-shared";
3
+ import { Fragment as pe, memo as me, startTransition as he, useCallback as V, useEffect as H, useId as ge, useImperativeHandle as _e, useLayoutEffect as ve, useMemo as U, useRef as W, useState as G } from "react";
4
+ import { Badge as K, BottomSheet as ye, Breadcrumbs as be, Button as xe, ButtonAppearance as Se, ButtonDropdown as Ce, ButtonVariant as we, CaptionText as Te, CardShell as Ee, Checkbox as De, ConfirmationPopupVariant as Oe, DIAL_ICON_SIZE as q, DIAL_KIT_ICON_STROKE as J, DangerButton as ke, Dropdown as Ae, DropdownItemType as je, DropdownOverlayRole as Me, ElementSize as Y, EllipsisTooltip as Ne, ErrorText as Pe, FabButton as Fe, FileIcon as Ie, FolderPath as Le, GhostButton as Re, GhostIconButton as ze, Highlight as Be, InlineSelect as Ve, InlineSelectTrigger as He, Input as Ue, InteractiveTooltip as We, LinkButton as Ge, LiveRegion as Ke, LiveRegionElement as qe, LiveRegionPoliteness as Je, MenuItem as Ye, MenuItemMark as Xe, NeutralButton as Ze, NeutralIconButton as Qe, NoDataContent as $e, Popup as et, PopupSize as tt, PrimaryButton as nt, ProgressBar as rt, RadioGroup as it, Search as at, SegmentedControl as ot, SideDrawer as st, Skeleton as ct, SkeletonAvatarShape as lt, Spinner as ut, Tabs as dt, ToggleIconButton as ft, Tooltip as pt, mergeClasses as mt } from "@epam/ai-dial-ui-kit";
5
5
  import { Fragment as X, jsx as Z, jsxs as Q } from "react/jsx-runtime";
6
6
  import { IconAdjustmentsHorizontal as ht, IconAlertCircleFilled as gt, IconAlertTriangleFilled as _t, IconArrowNarrowUp as vt, IconArrowRight as yt, IconBuildingCommunity as bt, IconCheck as xt, IconChevronDown as St, IconChevronLeft as Ct, IconChevronRight as wt, IconCircleCheckFilled as Tt, IconDots as Et, IconDownload as Dt, IconFilter as Ot, IconFolder as kt, IconKey as At, IconLayoutGrid as jt, IconLayoutList as Mt, IconLogin as Nt, IconLogout as Pt, IconPencil as Ft, IconPlayerPlayFilled as It, IconPlus as Lt, IconShare as Rt, IconStar as zt, IconStarFilled as Bt, IconTrash as Vt, IconTrashX as Ht, IconUser as Ut, IconUserOff as Wt, IconWorldOff as Gt, IconWorldShare as Kt } from "@tabler/icons-react";
7
7
  import { PublishFooter as qt, PublishPanel as Jt, PublishPanelView as Yt, derivePublishState as Xt, usePublishFlow as Zt, usePublishFolderView as Qt } from "@epam/ai-dial-publish-panel";
@@ -28,8 +28,8 @@ var rn = /* @__PURE__ */ function(e) {
28
28
  }({}), fn = /* @__PURE__ */ function(e) {
29
29
  return e.Markdown = "markdown", e.Text = "text", e.Image = "image", e.Unsupported = "unsupported", e;
30
30
  }({}), pn = () => {
31
- let [e, t] = q(() => window.innerWidth);
32
- return U(() => {
31
+ let [e, t] = G(() => window.innerWidth);
32
+ return H(() => {
33
33
  let e = () => t(window.innerWidth);
34
34
  return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
35
35
  }, []), e >= 1024 ? 4 : e >= 640 ? 2 : 1;
@@ -40,27 +40,27 @@ var rn = /* @__PURE__ */ function(e) {
40
40
  favoriteCard: "dial-catalog-favorite-card",
41
41
  listView: "dial-catalog-list-view"
42
42
  }, hn = "(prefers-reduced-motion: reduce)", gn = () => typeof window.matchMedia == "function" && window.matchMedia(hn).matches ? "auto" : "smooth", _n = ({ scrollBody: e, searchInputRef: t, listViewRef: n, isListView: r }) => {
43
- let [i, a] = q(!1), o = K(0), s = K(r), c = K(null), l = H(() => {
43
+ let [i, a] = G(!1), o = W(0), s = W(r), c = W(null), l = V(() => {
44
44
  if (!e) return;
45
45
  let t = s.current ? o.current : 0;
46
46
  a(e.scrollTop + t >= e.clientHeight && e.clientHeight > 0);
47
- }, [e]), u = H(() => {
47
+ }, [e]), u = V(() => {
48
48
  c.current ??= requestAnimationFrame(() => {
49
49
  c.current = null, l();
50
50
  });
51
51
  }, [l]);
52
- return U(() => {
52
+ return H(() => {
53
53
  r || (o.current = 0), s.current = r, l();
54
- }, [r, l]), U(() => {
54
+ }, [r, l]), H(() => {
55
55
  if (e) return e.addEventListener("scroll", u, { passive: !0 }), () => {
56
56
  e.removeEventListener("scroll", u), c.current != null && (cancelAnimationFrame(c.current), c.current = null);
57
57
  };
58
58
  }, [e, u]), {
59
59
  isVisible: i,
60
- handleRowsScroll: H((e) => {
60
+ handleRowsScroll: V((e) => {
61
61
  s.current && (o.current = e, u());
62
62
  }, [u]),
63
- scrollToTop: H(() => {
63
+ scrollToTop: V(() => {
64
64
  e?.scrollTo({
65
65
  top: 0,
66
66
  behavior: gn()
@@ -71,7 +71,7 @@ var rn = /* @__PURE__ */ function(e) {
71
71
  t
72
72
  ])
73
73
  };
74
- }, vn = (e) => e.type === Ae.Divider || e.type === Ae.PlainText, yn = (e, t) => e.map((e) => vn(e) ? e : {
74
+ }, vn = (e) => e.type === je.Divider || e.type === je.PlainText, yn = (e, t) => e.map((e) => vn(e) ? e : {
75
75
  ...e,
76
76
  label: typeof e.label == "string" ? /* @__PURE__ */ Z(Be, {
77
77
  text: e.label,
@@ -101,7 +101,7 @@ var rn = /* @__PURE__ */ function(e) {
101
101
  mathScrollRegionAriaLabel: e?.mathScrollRegionAriaLabel
102
102
  }), Sn = (e) => {
103
103
  let { colors: t } = e ?? {};
104
- return B({
104
+ return z({
105
105
  "--cat-bg": t?.background,
106
106
  "--cat-heading-title-text": t?.headingTitleText
107
107
  });
@@ -113,15 +113,15 @@ var rn = /* @__PURE__ */ function(e) {
113
113
  let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
114
114
  r.top < n.top ? e.scrollTop -= n.top - r.top : r.bottom > n.bottom && (e.scrollTop += r.bottom - n.bottom);
115
115
  }, Dn = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
116
- let r = K(null), [i, a] = q(() => {
117
- let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= ee ? 60 : 0)), i = wn((n ? r : Math.min(Cn, r)) - 64), a = Math.ceil(e / i);
116
+ let r = W(null), [i, a] = G(() => {
117
+ let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= I ? 60 : 0)), i = wn((n ? r : Math.min(Cn, r)) - 64), a = Math.ceil(e / i);
118
118
  return {
119
119
  startRow: 0,
120
120
  endRow: Math.min(a, 12),
121
121
  columnCount: i
122
122
  };
123
123
  });
124
- U(() => {
124
+ H(() => {
125
125
  let n = r.current;
126
126
  if (!n) return;
127
127
  let i = Tn(n.parentElement), o = () => {
@@ -160,14 +160,14 @@ var rn = /* @__PURE__ */ function(e) {
160
160
  footer: "_footer_tucta_34",
161
161
  cardButton: "_cardButton_tucta_44"
162
162
  }, kn = ({ name: e, query: t = "", className: n }) => {
163
- let { ref: r, isClamped: i } = de(e);
163
+ let { ref: r, isClamped: i } = fe(e);
164
164
  return /* @__PURE__ */ Z(pt, {
165
165
  asChild: !0,
166
166
  tooltip: e,
167
167
  hideTooltip: !i,
168
168
  children: /* @__PURE__ */ Z("span", {
169
169
  ref: r,
170
- className: V("line-clamp-2 min-w-0 wrap-break-word", n),
170
+ className: B("line-clamp-2 min-w-0 wrap-break-word", n),
171
171
  children: /* @__PURE__ */ Z(Be, {
172
172
  text: e,
173
173
  query: t
@@ -179,23 +179,23 @@ var rn = /* @__PURE__ */ function(e) {
179
179
  lastUsed: "_lastUsed_188yo_5",
180
180
  version: "_version_188yo_9"
181
181
  }, jn = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, styles: c, lastUsedTrailing: l, iconClassName: u, iconOverlay: d }) => {
182
- let f = c?.colors, p = c?.typography ?? {}, m = a === sn.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = !m && !!r, v = m && (!!r || i != null || l != null), y = V(p?.versionClassName ?? "dial-tiny-text", An.version), b = B({
182
+ let f = c?.colors, p = c?.typography ?? {}, m = a === sn.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = !m && !!r, v = m && (!!r || i != null || l != null), y = B(p?.versionClassName ?? "dial-tiny-text", An.version), b = z({
183
183
  "--ai-name-text": f?.nameColor,
184
184
  "--ai-last-used-text": f?.lastUsedColor,
185
185
  "--ai-version-text": f?.versionColor
186
186
  });
187
187
  return /* @__PURE__ */ Q("div", {
188
- className: V("flex min-w-0 items-start gap-3", s),
188
+ className: B("flex min-w-0 items-start gap-3", s),
189
189
  style: b,
190
190
  children: [/* @__PURE__ */ Q("div", {
191
- className: V("relative shrink-0", h, u),
191
+ className: B("relative shrink-0", h, u),
192
192
  children: [/* @__PURE__ */ Z("div", {
193
193
  className: "size-full overflow-hidden rounded-[inherit]",
194
194
  children: /* @__PURE__ */ Z(L, {
195
195
  src: e ?? void 0,
196
196
  size: g,
197
197
  initialsName: n,
198
- styles: { badgeClassName: V(m ? "rounded-[14px]" : "rounded-[12px]") }
198
+ styles: { badgeClassName: B(m ? "rounded-[14px]" : "rounded-[12px]") }
199
199
  })
200
200
  }), d]
201
201
  }), /* @__PURE__ */ Q("div", {
@@ -210,20 +210,20 @@ var rn = /* @__PURE__ */ function(e) {
210
210
  children: [/* @__PURE__ */ Z(kn, {
211
211
  name: n,
212
212
  query: o,
213
- className: V(_ ? "max-w-max flex-[66_1_0%]" : "flex-1", p?.nameClassName ?? "dial-body-semi-text", An.name)
213
+ className: B(_ ? "max-w-max flex-[66_1_0%]" : "flex-1", p?.nameClassName ?? "dial-body-semi-text", An.name)
214
214
  }), _ && /* @__PURE__ */ Z(Ne, {
215
215
  text: r,
216
- className: V("max-w-max min-w-0 flex-[34_1_0%] tabular-nums", y)
216
+ className: B("max-w-max min-w-0 flex-[34_1_0%] tabular-nums", y)
217
217
  })]
218
218
  }), v && /* @__PURE__ */ Q("div", {
219
219
  className: "flex min-w-0 items-center gap-2",
220
220
  children: [
221
221
  r && /* @__PURE__ */ Z(Ne, {
222
222
  text: r,
223
- className: V("min-w-0 tabular-nums", y)
223
+ className: B("min-w-0 tabular-nums", y)
224
224
  }),
225
225
  i != null && /* @__PURE__ */ Z("span", {
226
- className: V("shrink-0 tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", An.lastUsed),
226
+ className: B("shrink-0 tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", An.lastUsed),
227
227
  children: i
228
228
  }),
229
229
  l != null && /* @__PURE__ */ Z("div", {
@@ -237,7 +237,7 @@ var rn = /* @__PURE__ */ function(e) {
237
237
  });
238
238
  }, Mn = { icon: "_icon_a0p4u_1" }, Nn = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => {
239
239
  if (e == null || C(e) == null) return null;
240
- let i = B({
240
+ let i = z({
241
241
  "--cat-cred-badge-halo": r?.halo,
242
242
  "--cat-cred-badge-icon": r?.icon
243
243
  });
@@ -248,9 +248,9 @@ var rn = /* @__PURE__ */ function(e) {
248
248
  role: "img",
249
249
  "aria-label": t,
250
250
  style: i,
251
- className: V("absolute -inset-e-1 -bottom-1 shrink-0", n),
251
+ className: B("absolute -inset-e-1 -bottom-1 shrink-0", n),
252
252
  children: /* @__PURE__ */ Z(_t, {
253
- size: J.SM,
253
+ size: q.SM,
254
254
  className: Mn.icon,
255
255
  "aria-hidden": !0
256
256
  })
@@ -261,36 +261,36 @@ var rn = /* @__PURE__ */ function(e) {
261
261
  starPop: "_starPop_po6zj_1"
262
262
  }, Fn = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ Z(ft, {
263
263
  size: n,
264
- style: B({ "--cat-star-filled": a }),
264
+ style: z({ "--cat-star-filled": a }),
265
265
  className: i,
266
266
  isSelected: e,
267
267
  icon: /* @__PURE__ */ Z(zt, {
268
- size: J.SM,
269
- stroke: Y,
268
+ size: q.SM,
269
+ stroke: J,
270
270
  "aria-hidden": !0
271
271
  }),
272
272
  selectedIcon: /* @__PURE__ */ Z(Bt, {
273
- size: J.SM,
273
+ size: q.SM,
274
274
  className: Pn.starFilledIcon,
275
275
  "aria-hidden": !0
276
276
  }),
277
277
  "aria-label": r,
278
278
  onClick: t
279
- }), In = { tag: "_tag_iqin5_3" }, Ln = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ Z(_e, {
279
+ }), In = { tag: "_tag_iqin5_3" }, Ln = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ Z(K, {
280
280
  label: e,
281
281
  textClassName: n,
282
- style: B({
282
+ style: z({
283
283
  "--cat-card-tag-bg": r?.background,
284
284
  "--cat-card-tag-text": r?.text,
285
285
  "--cat-card-tag-border": r?.border
286
286
  }),
287
- className: V(In.tag, t)
287
+ className: B(In.tag, t)
288
288
  }), Rn = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ Z(Ln, {
289
289
  label: e,
290
290
  badgeClassName: t,
291
291
  colors: n
292
292
  }), zn = 8, Bn = ({ topics: e, overflowAriaLabel: t, className: n }) => {
293
- let r = K(null), i = K([]), a = K([]), o = K(null), s = K(Infinity), [c, l] = q(e.length), u = e.join("\0"), d = H(() => {
293
+ let r = W(null), i = W([]), a = W([]), o = W(null), s = W(Infinity), [c, l] = G(e.length), u = e.join("\0"), d = V(() => {
294
294
  let t = r.current;
295
295
  if (!t || e.length === 0) return;
296
296
  let n = t.clientWidth;
@@ -306,14 +306,14 @@ var rn = /* @__PURE__ */ function(e) {
306
306
  }
307
307
  l(Math.min(f, s.current));
308
308
  }, [e.length]);
309
- if (ge(() => {
309
+ if (ve(() => {
310
310
  a.current = [], s.current = Infinity, l(e.length);
311
- }, [u]), ge(() => {
311
+ }, [u]), ve(() => {
312
312
  d();
313
- }), ge(() => {
313
+ }), ve(() => {
314
314
  let e = r.current;
315
315
  e && c !== 0 && (e.scrollWidth <= e.clientWidth || (s.current = c - 1, l(s.current)));
316
- }, [c]), U(() => {
316
+ }, [c]), H(() => {
317
317
  let e = r.current;
318
318
  if (!e) return;
319
319
  let t = new ResizeObserver(() => {
@@ -322,12 +322,12 @@ var rn = /* @__PURE__ */ function(e) {
322
322
  return t.observe(e), () => t.disconnect();
323
323
  }, [d]), e.length === 0) return /* @__PURE__ */ Z("div", {
324
324
  ref: r,
325
- className: V("relative flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n)
325
+ className: B("relative flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n)
326
326
  });
327
327
  let f = e.length - c;
328
328
  return /* @__PURE__ */ Q("div", {
329
329
  ref: r,
330
- className: V("flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n),
330
+ className: B("flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n),
331
331
  children: [
332
332
  e.slice(0, c).map((e, t) => /* @__PURE__ */ Z("div", {
333
333
  ref: (e) => {
@@ -351,11 +351,11 @@ var rn = /* @__PURE__ */ function(e) {
351
351
  ]
352
352
  });
353
353
  }, Vn = { img: () => null }, Hn = (e) => e.target instanceof Element && e.target.closest("a") !== null, Un = (e) => !(e.target instanceof Node) || !e.currentTarget.contains(e.target), Wn = ({ 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, noFolderLabel: p = "No folder", isReadonly: m = !1, markdownLabels: h, activeTab: g }) => {
354
- let [_, v] = q(r), y = T(e, g);
355
- U(() => {
354
+ let [_, v] = G(r), y = T(e, g);
355
+ H(() => {
356
356
  v(r);
357
357
  }, [e.id, r]);
358
- let { ref: b, isClamped: x } = de(e.description), S = d?.typography?.descriptionClassName ?? "dial-small-paragraph-text", C = d?.typography?.featuredChipClassName, w = d?.typography?.folderLabelClassName ?? "dial-tiny-text", E = d?.typography?.folderLeafClassName ?? "dial-tiny-semi-text", D = d?.typography?.descriptionTooltipClassName ?? "dial-small-text", O = d?.typography?.descriptionTooltipStrongClassName ?? "dial-small-semi-text", k = G(() => ({
358
+ let { ref: b, isClamped: x } = fe(e.description), S = d?.typography?.descriptionClassName ?? "dial-small-paragraph-text", C = d?.typography?.featuredChipClassName, w = d?.typography?.folderLabelClassName ?? "dial-tiny-text", E = d?.typography?.folderLeafClassName ?? "dial-tiny-semi-text", D = d?.typography?.descriptionTooltipClassName ?? "dial-small-text", O = d?.typography?.descriptionTooltipStrongClassName ?? "dial-small-semi-text", k = U(() => ({
359
359
  p: D,
360
360
  ul: D,
361
361
  ol: D,
@@ -366,7 +366,7 @@ var rn = /* @__PURE__ */ function(e) {
366
366
  h5: D,
367
367
  h6: D,
368
368
  strong: O
369
- }), [D, O]), A = B({
369
+ }), [D, O]), A = z({
370
370
  "--cg-description-text": d?.colors?.textSecondary,
371
371
  "--cg-selected-border": d?.colors?.selectedBorder,
372
372
  "--cg-selected-bg": d?.colors?.selectedBackground,
@@ -375,7 +375,7 @@ var rn = /* @__PURE__ */ function(e) {
375
375
  "--cg-focus-outline": d?.colors?.focusOutline
376
376
  }), j = !m && e.isFeatured === !0, M = !m && a?.(e) !== !1, N = !m || e.folder.length > 0, P = n ? (t) => {
377
377
  !Hn(t) && !Un(t) && n(e);
378
- } : void 0, F = H((t) => {
378
+ } : void 0, F = V((t) => {
379
379
  t.stopPropagation();
380
380
  let n = !_;
381
381
  v(n), i?.(e.id, n);
@@ -384,15 +384,15 @@ var rn = /* @__PURE__ */ function(e) {
384
384
  i,
385
385
  e.id
386
386
  ]);
387
- return /* @__PURE__ */ Q(Te, {
387
+ return /* @__PURE__ */ Q(Ee, {
388
388
  onClick: P,
389
389
  "aria-label": e.name,
390
390
  style: A,
391
- className: V("box-border cursor-pointer gap-3 p-3", On.card, j ? On.featuredCard : void 0, l ? On.selectedCard : void 0, u, mn.card),
391
+ className: B("box-border cursor-pointer gap-3 p-3", On.card, j ? On.featuredCard : void 0, l ? On.selectedCard : void 0, u, mn.card),
392
392
  children: [
393
393
  n && /* @__PURE__ */ Z("button", {
394
394
  type: "button",
395
- className: V("sr-only", On.cardButton),
395
+ className: B("sr-only", On.cardButton),
396
396
  children: e.name
397
397
  }),
398
398
  j && /* @__PURE__ */ Z("div", {
@@ -405,10 +405,10 @@ var rn = /* @__PURE__ */ function(e) {
405
405
  })
406
406
  }),
407
407
  l && /* @__PURE__ */ Z(xt, {
408
- size: J.SM,
409
- className: V("absolute inset-e-3 top-3 shrink-0", On.checkIcon),
408
+ size: q.SM,
409
+ className: B("absolute inset-e-3 top-3 shrink-0", On.checkIcon),
410
410
  "aria-hidden": !0,
411
- stroke: Y
411
+ stroke: J
412
412
  }),
413
413
  /* @__PURE__ */ Z(jn, {
414
414
  icon: e.iconUrl,
@@ -435,7 +435,7 @@ var rn = /* @__PURE__ */ function(e) {
435
435
  }),
436
436
  children: /* @__PURE__ */ Z("div", {
437
437
  ref: b,
438
- className: V(e.topics.length > 0 ? "line-clamp-2 min-h-[2lh]" : "line-clamp-3 min-h-[3lh]", "wrap-break-word", On.description),
438
+ className: B(e.topics.length > 0 ? "line-clamp-2 min-h-[2lh]" : "line-clamp-3 min-h-[3lh]", "wrap-break-word", On.description),
439
439
  children: e.description && /* @__PURE__ */ Z(R, {
440
440
  content: e.description,
441
441
  classNames: {
@@ -459,7 +459,7 @@ var rn = /* @__PURE__ */ function(e) {
459
459
  children: /* @__PURE__ */ Z(Bn, { topics: e.topics })
460
460
  }),
461
461
  N && /* @__PURE__ */ Z("div", {
462
- className: V("pt-3", !m && V("border-t", On.footer)),
462
+ className: B("pt-3", !m && B("border-t", On.footer)),
463
463
  children: /* @__PURE__ */ Q("div", {
464
464
  className: "flex items-center gap-2",
465
465
  children: [/* @__PURE__ */ Z("div", {
@@ -469,21 +469,21 @@ var rn = /* @__PURE__ */ function(e) {
469
469
  labelClassName: w,
470
470
  leafClassName: E
471
471
  }) : /* @__PURE__ */ Z("span", {
472
- className: V(w, On.description),
472
+ className: B(w, On.description),
473
473
  children: p
474
474
  })
475
475
  }), M && /* @__PURE__ */ Z(Fn, {
476
476
  isStarred: _,
477
- size: Me.Small,
477
+ size: Y.Small,
478
478
  onClick: F,
479
479
  ariaLabel: _ ? c : s,
480
- className: V(!_ && On.emptyStarHidden)
480
+ className: B(!_ && On.emptyStarHidden)
481
481
  })]
482
482
  })
483
483
  })
484
484
  ]
485
485
  });
486
- }, Gn = pe(({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, isFavoriteVisible: a, onItemClick: o, featuredLabel: s, addToFavoritesAriaLabel: c, removeFromFavoritesAriaLabel: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, noFolderLabel: f, isReadonly: p, featuredChipStyle: m, markdownLabels: h, activeTab: g }) => {
486
+ }, Gn = me(({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, isFavoriteVisible: a, onItemClick: o, featuredLabel: s, addToFavoritesAriaLabel: c, removeFromFavoritesAriaLabel: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, noFolderLabel: f, isReadonly: p, featuredChipStyle: m, markdownLabels: h, activeTab: g }) => {
487
487
  let _ = e * n, v = t.slice(_, _ + n), y = {
488
488
  top: e * 268,
489
489
  height: 268
@@ -517,8 +517,8 @@ var rn = /* @__PURE__ */ function(e) {
517
517
  }, n?.id ?? `spacer-${t}`);
518
518
  })
519
519
  });
520
- }), Kn = pe(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = On.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1, featuredChipStyle: f, markdownLabels: p, activeTab: m }) => {
521
- let h = a?.noResultsTitle ?? "No results", g = a?.featuredLabel ?? "Featured", _ = a?.addToFavoritesAriaLabel ?? "Add to favorites", v = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", y = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", b = a?.noFolderLabel ?? "No folder", { containerRef: x, startRow: S, endRow: C, columnCount: w, totalHeight: T } = Dn(e.length, { isFullWidth: d }), E = G(() => ({
520
+ }), Kn = me(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = On.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1, featuredChipStyle: f, markdownLabels: p, activeTab: m }) => {
521
+ let h = a?.noResultsTitle ?? "No results", g = a?.featuredLabel ?? "Featured", _ = a?.addToFavoritesAriaLabel ?? "Add to favorites", v = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", y = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", b = a?.noFolderLabel ?? "No folder", { containerRef: x, startRow: S, endRow: C, columnCount: w, totalHeight: T } = Dn(e.length, { isFullWidth: d }), E = U(() => ({
522
522
  items: e,
523
523
  columnCount: w,
524
524
  query: t,
@@ -557,10 +557,10 @@ var rn = /* @__PURE__ */ function(e) {
557
557
  className: "grid gap-5 p-5",
558
558
  style: {
559
559
  gridTemplateColumns: `repeat(${w}, minmax(0, 1fr))`,
560
- ...B({ "--cg-skeleton-card-bg": l })
560
+ ...z({ "--cg-skeleton-card-bg": l })
561
561
  },
562
562
  children: Array.from({ length: w * 3 }, (e, t) => /* @__PURE__ */ Z("div", {
563
- className: V("rounded-md border p-3", On.skeletonCard),
563
+ className: B("rounded-md border p-3", On.skeletonCard),
564
564
  style: { height: 248 },
565
565
  children: /* @__PURE__ */ Z(ct, {
566
566
  avatar: {
@@ -575,7 +575,7 @@ var rn = /* @__PURE__ */ function(e) {
575
575
  }, t))
576
576
  }) : e.length === 0 ? /* @__PURE__ */ Z("div", {
577
577
  className: "flex size-full flex-col items-center justify-center",
578
- children: /* @__PURE__ */ Z(z, {
578
+ children: /* @__PURE__ */ Z(se, {
579
579
  label: h,
580
580
  description: a?.noResultsDescription
581
581
  })
@@ -607,7 +607,7 @@ var rn = /* @__PURE__ */ function(e) {
607
607
  "Everyone you shared it with loses access",
608
608
  "Existing share links stop working",
609
609
  "You keep full access — nothing is deleted"
610
- ], nr = (e) => e === s.ApiKey ? "Toolset API keys" : "Toolset credentials", rr = (e) => e === i.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", ir = /* @__PURE__ */ new Set([$.Delete, $.Unshare]), ar = (e) => B({
610
+ ], nr = (e) => e === s.ApiKey ? "Toolset API keys" : "Toolset credentials", rr = (e) => e === i.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", ir = /* @__PURE__ */ new Set([$.Delete, $.Unshare]), ar = (e) => z({
611
611
  "--cat-details-backdrop": e?.backdrop,
612
612
  "--cat-details-bg": e?.background,
613
613
  "--cat-details-border": e?.border,
@@ -657,13 +657,13 @@ var rn = /* @__PURE__ */ function(e) {
657
657
  className: "relative inline-flex shrink-0",
658
658
  children: [
659
659
  /* @__PURE__ */ Z("span", {
660
- className: V("flex size-8 items-center justify-center rounded-lg", cr[n]),
660
+ className: B("flex size-8 items-center justify-center rounded-lg", cr[n]),
661
661
  children: e
662
662
  }),
663
663
  t && /* @__PURE__ */ Z(Tt, {
664
- size: J.MD,
664
+ size: q.MD,
665
665
  "aria-hidden": !0,
666
- className: V("absolute -inset-e-2 -top-2", or.activeIcon)
666
+ className: B("absolute -inset-e-2 -top-2", or.activeIcon)
667
667
  }),
668
668
  r != null && /* @__PURE__ */ Z(Ke, {
669
669
  visuallyHidden: !0,
@@ -677,19 +677,19 @@ var rn = /* @__PURE__ */ function(e) {
677
677
  title: "_title_tqnz7_10",
678
678
  description: "_description_tqnz7_14"
679
679
  }, dr = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ Q("div", {
680
- className: V("flex items-center gap-3 rounded-xl p-3", ur.card),
680
+ className: B("flex items-center gap-3 rounded-xl p-3", ur.card),
681
681
  children: [/* @__PURE__ */ Z("span", {
682
- className: V("shrink-0", ur.icon, n != null && "mt-0.5"),
682
+ className: B("shrink-0", ur.icon, n != null && "mt-0.5"),
683
683
  children: e
684
684
  }), /* @__PURE__ */ Q("div", {
685
685
  className: "flex min-w-0 flex-1 items-center justify-between gap-2",
686
686
  children: [/* @__PURE__ */ Q("div", {
687
687
  className: "flex min-w-0 flex-col gap-1",
688
688
  children: [/* @__PURE__ */ Z("span", {
689
- className: V(i, ur.title),
689
+ className: B(i, ur.title),
690
690
  children: t
691
691
  }), n != null && /* @__PURE__ */ Z("span", {
692
- className: V(a, ur.description),
692
+ className: B(a, ur.description),
693
693
  children: n
694
694
  })]
695
695
  }), r != null && /* @__PURE__ */ Z("div", {
@@ -701,16 +701,16 @@ var rn = /* @__PURE__ */ function(e) {
701
701
  let r = /* @__PURE__ */ Z(bt, {
702
702
  size: gr,
703
703
  "aria-hidden": !0,
704
- stroke: Y
704
+ stroke: J
705
705
  });
706
706
  if (e === y.PersonalCredentialsActive) {
707
707
  let e = (n?.personalCredentialsActiveBannerTitle ?? hr)(t);
708
708
  return /* @__PURE__ */ Z(dr, {
709
709
  icon: /* @__PURE__ */ Z(lr, {
710
710
  icon: /* @__PURE__ */ Z(Ut, {
711
- size: J.SM,
711
+ size: q.SM,
712
712
  "aria-hidden": !0,
713
- stroke: Y
713
+ stroke: J
714
714
  }),
715
715
  isActive: !0,
716
716
  surface: sr.Raised
@@ -723,9 +723,9 @@ var rn = /* @__PURE__ */ function(e) {
723
723
  return /* @__PURE__ */ Z(dr, {
724
724
  icon: /* @__PURE__ */ Z(lr, {
725
725
  icon: /* @__PURE__ */ Z(bt, {
726
- size: J.SM,
726
+ size: q.SM,
727
727
  "aria-hidden": !0,
728
- stroke: Y
728
+ stroke: J
729
729
  }),
730
730
  isActive: !0,
731
731
  surface: sr.Raised
@@ -746,7 +746,7 @@ var rn = /* @__PURE__ */ function(e) {
746
746
  errorText: "_errorText_qltis_13",
747
747
  deleteAction: "_deleteAction_qltis_18"
748
748
  }, yr = ({ label: e, description: t, icon: n, status: r, isActive: i, authenticationType: a, apiKeyAddedWhen: o, apiKeyHeader: c, onLogin: l, onRequestLogout: u, onRequestDeleteApiKey: d, texts: f, labelClassName: p, descriptionClassName: m, errorClassName: h, keyCardTitleClassName: g, keyCardDescriptionClassName: _, deleteActionClassName: v, disabled: y = !1, isPending: x = !1, renderLoginOptions: S, children: C }) => {
749
- let w = he(), [T, E] = q(), [D, O] = q(""), [k, A] = q(!1), [j, M] = q(!1), N = r === b.SignedIn, P = H((e) => {
749
+ let w = ge(), [T, E] = G(), [D, O] = G(""), [k, A] = G(!1), [j, M] = G(!1), N = r === b.SignedIn, P = V((e) => {
750
750
  O(e ?? ""), A(!1), E(void 0);
751
751
  }, []), F = async () => {
752
752
  if (j || y) return;
@@ -762,7 +762,7 @@ var rn = /* @__PURE__ */ function(e) {
762
762
  M(!1);
763
763
  }
764
764
  }
765
- }, I = f?.loginActionLabel ?? "Log in", ee = f?.logoutActionLabel ?? "Log out", L = f?.addApiKeyActionLabel ?? "Add", te = f?.deleteActionLabel ?? "Delete", ne = f?.credentialsSignedInLabel ?? "Signed in", re = f?.credentialsSignedOutLabel ?? "Signed out", ie = f?.addingApiKeyStatusLabel ?? "Adding", ae = f?.apiKeyConfiguredMessage ?? "Key has been configured", R = `${w}-header-hint`, oe = `${w}-empty-key-error`, z = c ? (f?.apiKeyHeaderHint ?? ((e) => `Enter your API key value for "${e}" header`))(c) : void 0, se = o == null ? void 0 : (f?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(o);
765
+ }, ee = f?.loginActionLabel ?? "Log in", I = f?.logoutActionLabel ?? "Log out", L = f?.addApiKeyActionLabel ?? "Add", te = f?.deleteActionLabel ?? "Delete", ne = f?.credentialsSignedInLabel ?? "Signed in", re = f?.credentialsSignedOutLabel ?? "Signed out", ie = f?.addingApiKeyStatusLabel ?? "Adding", ae = f?.apiKeyConfiguredMessage ?? "Key has been configured", R = `${w}-header-hint`, oe = `${w}-empty-key-error`, se = c ? (f?.apiKeyHeaderHint ?? ((e) => `Enter your API key value for "${e}" header`))(c) : void 0, ce = o == null ? void 0 : (f?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(o);
766
766
  return /* @__PURE__ */ Q("div", {
767
767
  role: "group",
768
768
  "aria-label": e,
@@ -783,24 +783,24 @@ var rn = /* @__PURE__ */ function(e) {
783
783
  className: p,
784
784
  children: e
785
785
  }), /* @__PURE__ */ Z("span", {
786
- className: V(m, vr.rowDescription),
786
+ className: B(m, vr.rowDescription),
787
787
  children: t
788
788
  })]
789
- }), a === s.OAuth && (N ? u && /* @__PURE__ */ Z(Oe, {
790
- size: Me.Small,
791
- appearance: xe.Ghost,
792
- label: ee,
789
+ }), a === s.OAuth && (N ? u && /* @__PURE__ */ Z(ke, {
790
+ size: Y.Small,
791
+ appearance: Se.Ghost,
792
+ label: I,
793
793
  className: "min-w-28 shrink-0 justify-center whitespace-nowrap",
794
794
  onClick: u,
795
795
  disabled: j || y
796
796
  }) : /* @__PURE__ */ Z(Ze, {
797
- label: j ? void 0 : I,
798
- "aria-label": I,
797
+ label: j ? void 0 : ee,
798
+ "aria-label": ee,
799
799
  iconBefore: j ? /* @__PURE__ */ Z(ut, {
800
- size: J.SM,
801
- ariaLabel: I
800
+ size: q.SM,
801
+ ariaLabel: ee
802
802
  }) : void 0,
803
- size: Me.Small,
803
+ size: Y.Small,
804
804
  disabled: j || y,
805
805
  className: "min-w-28 shrink-0 justify-center whitespace-nowrap",
806
806
  onClick: F
@@ -813,7 +813,7 @@ var rn = /* @__PURE__ */ function(e) {
813
813
  className: "flex items-end gap-2",
814
814
  children: [/* @__PURE__ */ Z(Ue, {
815
815
  id: w,
816
- "aria-describedby": [z ? R : void 0, k ? oe : void 0].filter(Boolean).join(" ") || void 0,
816
+ "aria-describedby": [se ? R : void 0, k ? oe : void 0].filter(Boolean).join(" ") || void 0,
817
817
  type: "password",
818
818
  autoComplete: "off",
819
819
  value: D,
@@ -826,7 +826,7 @@ var rn = /* @__PURE__ */ function(e) {
826
826
  label: j ? void 0 : L,
827
827
  "aria-label": j ? ie : void 0,
828
828
  iconBefore: j ? /* @__PURE__ */ Z(ut, {
829
- size: J.SM,
829
+ size: q.SM,
830
830
  ariaLabel: ie
831
831
  }) : void 0,
832
832
  className: "min-h-11 shrink-0 whitespace-nowrap",
@@ -834,14 +834,14 @@ var rn = /* @__PURE__ */ function(e) {
834
834
  disabled: j || y
835
835
  })]
836
836
  }),
837
- /* @__PURE__ */ Z(we, {
837
+ /* @__PURE__ */ Z(Te, {
838
838
  id: R,
839
- text: z,
840
- className: V(m, vr.rowDescription)
839
+ text: se,
840
+ className: B(m, vr.rowDescription)
841
841
  }),
842
842
  k && /* @__PURE__ */ Z(Pe, {
843
843
  id: oe,
844
- className: V(h, vr.errorText),
844
+ className: B(h, vr.errorText),
845
845
  text: f?.apiKeyRequiredErrorMessage ?? "API key is required."
846
846
  })
847
847
  ]
@@ -850,17 +850,17 @@ var rn = /* @__PURE__ */ function(e) {
850
850
  className: "animate-fadeIn pt-1",
851
851
  children: /* @__PURE__ */ Z(dr, {
852
852
  icon: /* @__PURE__ */ Z(At, {
853
- size: J.SM,
853
+ size: q.SM,
854
854
  "aria-hidden": !0,
855
- stroke: Y
855
+ stroke: J
856
856
  }),
857
857
  title: ae,
858
- description: se,
858
+ description: ce,
859
859
  titleClassName: g,
860
860
  descriptionClassName: _,
861
861
  action: d && /* @__PURE__ */ Z(Ge, {
862
862
  label: te,
863
- className: V("min-h-11", v),
863
+ className: B("min-h-11", v),
864
864
  onClick: d,
865
865
  disabled: j || y
866
866
  })
@@ -869,7 +869,7 @@ var rn = /* @__PURE__ */ function(e) {
869
869
  !N && S?.(j || y),
870
870
  /* @__PURE__ */ Z(Pe, {
871
871
  announce: Je.Assertive,
872
- className: V(h, vr.errorText),
872
+ className: B(h, vr.errorText),
873
873
  text: T ?? ""
874
874
  }),
875
875
  C
@@ -877,7 +877,7 @@ var rn = /* @__PURE__ */ function(e) {
877
877
  })]
878
878
  });
879
879
  }, br = (e) => e === s.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.", xr = ({ item: e, onLogin: t, onRequestLogout: n, onRequestDeleteApiKey: r, texts: a, detailsStyles: o, deleteActionClassName: s }) => {
880
- let c = V(vr.deleteAction, s), { credentialsDescriptionClassName: l = "dial-body-paragraph-text", credentialsRowLabelClassName: u = "dial-small-semi-text", credentialsRowDescriptionClassName: d = "dial-small-text", credentialsErrorClassName: f = "dial-caption-text", credentialsKeyCardTitleClassName: p = "dial-tiny-semi-text", credentialsKeyCardDescriptionClassName: m = "dial-tiny-text" } = o?.typography ?? {}, h = e.credentials;
880
+ let c = B(vr.deleteAction, s), { credentialsDescriptionClassName: l = "dial-body-paragraph-text", credentialsRowLabelClassName: u = "dial-small-semi-text", credentialsRowDescriptionClassName: d = "dial-small-text", credentialsErrorClassName: f = "dial-caption-text", credentialsKeyCardTitleClassName: p = "dial-tiny-semi-text", credentialsKeyCardDescriptionClassName: m = "dial-tiny-text" } = o?.typography ?? {}, h = e.credentials;
881
881
  if (h == null) return null;
882
882
  let g = (a?.credentialsManagementDescription ?? br)(h.authenticationType), _ = h.userStatus === b.SignedIn, v = !_ && h.globalStatus === b.SignedIn;
883
883
  return /* @__PURE__ */ Q("div", {
@@ -885,7 +885,7 @@ var rn = /* @__PURE__ */ function(e) {
885
885
  children: [/* @__PURE__ */ Z("div", {
886
886
  className: "px-6 py-4",
887
887
  children: /* @__PURE__ */ Z("div", {
888
- className: V("rounded-xl p-3", vr.surface),
888
+ className: B("rounded-xl p-3", vr.surface),
889
889
  children: /* @__PURE__ */ Z(te, {
890
890
  item: e,
891
891
  iconSize: 40,
@@ -895,7 +895,7 @@ var rn = /* @__PURE__ */ function(e) {
895
895
  }), /* @__PURE__ */ Q("div", {
896
896
  className: "flex flex-col gap-5 px-6 py-4",
897
897
  children: [/* @__PURE__ */ Z("span", {
898
- className: V(l, vr.description),
898
+ className: B(l, vr.description),
899
899
  children: g
900
900
  }), /* @__PURE__ */ Q("div", {
901
901
  className: "flex flex-col",
@@ -903,9 +903,9 @@ var rn = /* @__PURE__ */ function(e) {
903
903
  label: a?.personalCredentialsLabel ?? "Personal credentials",
904
904
  description: a?.personalCredentialsDescription ?? "These credentials apply only to your account.",
905
905
  icon: /* @__PURE__ */ Z(Ut, {
906
- size: J.SM,
906
+ size: q.SM,
907
907
  "aria-hidden": !0,
908
- stroke: Y
908
+ stroke: J
909
909
  }),
910
910
  status: h.userStatus,
911
911
  isActive: _,
@@ -929,9 +929,9 @@ var rn = /* @__PURE__ */ function(e) {
929
929
  label: a?.organizationCredentialsLabel ?? "Organization credentials",
930
930
  description: a?.organizationCredentialsDescription ?? "Once added, these credentials will grant all users in your organization access to this toolset.",
931
931
  icon: /* @__PURE__ */ Z(bt, {
932
- size: J.SM,
932
+ size: q.SM,
933
933
  "aria-hidden": !0,
934
- stroke: Y
934
+ stroke: J
935
935
  }),
936
936
  status: h.globalStatus,
937
937
  isActive: v,
@@ -963,7 +963,7 @@ var rn = /* @__PURE__ */ function(e) {
963
963
  content: "_content_1nv0c_20",
964
964
  tabsScroll: "_tabsScroll_1nv0c_26",
965
965
  publishTitle: "_publishTitle_1nv0c_33"
966
- }, Cr = ({ item: e, publishFlow: t, publishDependencies: n, publishFolderView: r, isPublishCredentialsEligible: i, publishExpandedPaths: a, onPublishExpandedPathsChange: o, publishLoadingPaths: s, ruleSourceOptions: c, publishLabels: l, resolvePublishDependenciesLabels: u, resolvePublishApprovalLabels: d }) => /* @__PURE__ */ Z("div", {
966
+ }, Cr = ({ item: e, publishFlow: t, publishDependencies: n, publishFolderView: r, isPublishCredentialsEligible: i, publishExpandedPaths: a, onPublishExpandedPathsChange: o, publishLoadingPaths: s, ruleSourceOptions: c, publishLabels: l, resolvePublishDependenciesLabels: u, resolvePublishApprovalLabels: d, publishVersionHistory: f }) => /* @__PURE__ */ Z("div", {
967
967
  className: "p-4 desktop:p-[22px]",
968
968
  children: /* @__PURE__ */ Z(Jt, {
969
969
  resource: {
@@ -1004,7 +1004,8 @@ var rn = /* @__PURE__ */ function(e) {
1004
1004
  ...u(e)
1005
1005
  } }
1006
1006
  },
1007
- dependencies: n
1007
+ dependencies: n,
1008
+ versionHistory: f
1008
1009
  })
1009
1010
  }), wr = {
1010
1011
  sectionHeading: "_sectionHeading_jnq93_1",
@@ -1015,19 +1016,19 @@ var rn = /* @__PURE__ */ function(e) {
1015
1016
  valueFalse: "_valueFalse_jnq93_21",
1016
1017
  valueText: "_valueText_jnq93_25"
1017
1018
  }, Tr = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(Tt, {
1018
- size: J.MD,
1019
- className: V(r, wr.checkIcon)
1019
+ size: q.MD,
1020
+ className: B(r, wr.checkIcon)
1020
1021
  }), /* @__PURE__ */ Z("span", {
1021
- className: V(n, wr.valueTrue),
1022
+ className: B(n, wr.valueTrue),
1022
1023
  children: i
1023
1024
  })] }) : e === !1 ? /* @__PURE__ */ Z("span", {
1024
- className: V(t, wr.valueFalse),
1025
+ className: B(t, wr.valueFalse),
1025
1026
  children: a
1026
1027
  }) : /* @__PURE__ */ Z("span", {
1027
- className: V("min-w-0 wrap-break-word", t, wr.valueText),
1028
+ className: B("min-w-0 wrap-break-word", t, wr.valueText),
1028
1029
  children: e
1029
1030
  }), Er = ({ 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 }) => {
1030
- let u = B({
1031
+ let u = z({
1031
1032
  "--tv-section-heading": l?.sectionHeading,
1032
1033
  "--tv-row-alt-bg": l?.rowAlt,
1033
1034
  "--tv-label": l?.label,
@@ -1040,14 +1041,14 @@ var rn = /* @__PURE__ */ function(e) {
1040
1041
  className: "flex flex-col",
1041
1042
  style: u,
1042
1043
  children: t != null && t.length > 0 && /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Z("p", {
1043
- className: V("mt-0 mb-3", o, wr.sectionHeading),
1044
+ className: B("mt-0 mb-3", o, wr.sectionHeading),
1044
1045
  children: e
1045
1046
  }), /* @__PURE__ */ Z("ul", {
1046
1047
  className: "m-0 list-none p-0",
1047
1048
  children: t.map((e, t) => /* @__PURE__ */ Q("li", {
1048
- className: V("flex items-center rounded px-3 py-2", t % 2 == 0 ? wr.rowAlt : void 0),
1049
+ className: B("flex items-center rounded px-3 py-2", t % 2 == 0 ? wr.rowAlt : void 0),
1049
1050
  children: [/* @__PURE__ */ Z("span", {
1050
- className: V(n, wr.label, "w-2/5 shrink-0"),
1051
+ className: B(n, wr.label, "w-2/5 shrink-0"),
1051
1052
  children: e.label
1052
1053
  }), /* @__PURE__ */ Z("div", {
1053
1054
  className: "flex w-3/5 min-w-0 items-center gap-1",
@@ -1072,17 +1073,17 @@ var rn = /* @__PURE__ */ function(e) {
1072
1073
  [rn.Curl]: "bash",
1073
1074
  [rn.JavaScript]: "javascript"
1074
1075
  }, Ar = ({ 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" }) => {
1075
- let [s, c] = q(e[0]?.language ?? rn.Python);
1076
- U(() => {
1076
+ let [s, c] = G(e[0]?.language ?? rn.Python);
1077
+ H(() => {
1077
1078
  c(e[0]?.language ?? rn.Python);
1078
1079
  }, [e]);
1079
- let l = G(() => e.map((e) => ({
1080
+ let l = U(() => e.map((e) => ({
1080
1081
  key: e.language,
1081
1082
  label: Or[e.language] ?? e.language,
1082
1083
  onClick: () => c(e.language)
1083
1084
  })), [e]), u = e.find((e) => e.language === s)?.code ?? "", d = e.length > 1;
1084
1085
  return /* @__PURE__ */ Q("section", { children: [t != null && /* @__PURE__ */ Z("p", {
1085
- className: V("mt-0 mb-3", o, Dr.sectionHeading),
1086
+ className: B("mt-0 mb-3", o, Dr.sectionHeading),
1086
1087
  children: t
1087
1088
  }), /* @__PURE__ */ Z(ae, {
1088
1089
  language: kr[s] ?? s,
@@ -1098,12 +1099,12 @@ var rn = /* @__PURE__ */ function(e) {
1098
1099
  items: l,
1099
1100
  matchReferenceWidth: !1,
1100
1101
  placement: "bottom-end",
1101
- size: Me.Small,
1102
+ size: Y.Small,
1102
1103
  selectedKey: s
1103
1104
  }) : void 0
1104
1105
  })] });
1105
1106
  }, jr = ({ 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" }) => {
1106
- let [h, g] = q(0), _ = G(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = G(() => _.map((e, t) => ({
1107
+ let [h, g] = G(0), _ = U(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = U(() => _.map((e, t) => ({
1107
1108
  key: e.url,
1108
1109
  label: e.label,
1109
1110
  onClick: () => g(t)
@@ -1135,7 +1136,7 @@ var rn = /* @__PURE__ */ function(e) {
1135
1136
  }),
1136
1137
  v && /* @__PURE__ */ Q("section", { children: [
1137
1138
  /* @__PURE__ */ Z("p", {
1138
- className: V("mt-0 mb-3", m, Dr.sectionHeading),
1139
+ className: B("mt-0 mb-3", m, Dr.sectionHeading),
1139
1140
  children: n
1140
1141
  }),
1141
1142
  y != null && /* @__PURE__ */ Z(ae, {
@@ -1151,7 +1152,7 @@ var rn = /* @__PURE__ */ function(e) {
1151
1152
  items: b,
1152
1153
  matchReferenceWidth: !1,
1153
1154
  placement: "bottom-end",
1154
- size: Me.Small,
1155
+ size: Y.Small,
1155
1156
  selectedKey: y.url
1156
1157
  }) : void 0
1157
1158
  }, h),
@@ -1177,7 +1178,7 @@ var rn = /* @__PURE__ */ function(e) {
1177
1178
  sectionClassName: m
1178
1179
  }),
1179
1180
  E && /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Z("p", {
1180
- className: V("mt-0 mb-3", m, Dr.sectionHeading),
1181
+ className: B("mt-0 mb-3", m, Dr.sectionHeading),
1181
1182
  children: o
1182
1183
  }), /* @__PURE__ */ Z(ae, {
1183
1184
  language: "bash",
@@ -1189,7 +1190,7 @@ var rn = /* @__PURE__ */ function(e) {
1189
1190
  hasContentTopPadding: !1
1190
1191
  })] }),
1191
1192
  D && /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Z("p", {
1192
- className: V("mt-0 mb-3", m, Dr.sectionHeading),
1193
+ className: B("mt-0 mb-3", m, Dr.sectionHeading),
1193
1194
  children: s
1194
1195
  }), /* @__PURE__ */ Z(ae, {
1195
1196
  language: "json",
@@ -1254,11 +1255,11 @@ var rn = /* @__PURE__ */ function(e) {
1254
1255
  };
1255
1256
  return e.type === dn.File || !t.has(e.id) ? [r] : [r, ...Rr(e.items, t, e.id)];
1256
1257
  }), zr = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text", colors: c }) => {
1257
- let l = B({
1258
+ let l = z({
1258
1259
  "--cat-content-tree-row-hover-bg": c?.rowHoverBackground,
1259
1260
  "--cat-content-tree-row-selected-bg": c?.rowSelectedBackground
1260
- }), u = G(() => Rr(e, n), [e, n]), d = K({}), [f, p] = q(() => t ?? u[0]?.node.id);
1261
- U(() => {
1261
+ }), u = U(() => Rr(e, n), [e, n]), d = W({}), [f, p] = G(() => t ?? u[0]?.node.id);
1262
+ H(() => {
1262
1263
  f != null && d.current[f]?.focus();
1263
1264
  }, []);
1264
1265
  let m = (e) => {
@@ -1292,7 +1293,7 @@ var rn = /* @__PURE__ */ function(e) {
1292
1293
  break;
1293
1294
  case "Escape": e.preventDefault(), a();
1294
1295
  }
1295
- }, g = (e) => V("flex h-10 shrink-0 cursor-pointer items-center gap-2 rounded-2 px-3 outline-hidden", Lr.row, e && Lr.focusedRow), _ = (e) => {
1296
+ }, g = (e) => B("flex h-10 shrink-0 cursor-pointer items-center gap-2 rounded-2 px-3 outline-hidden", Lr.row, e && Lr.focusedRow), _ = (e) => {
1296
1297
  let a = e.id === f;
1297
1298
  if (e.type === dn.File) {
1298
1299
  let n = e.id === t;
@@ -1303,11 +1304,11 @@ var rn = /* @__PURE__ */ function(e) {
1303
1304
  role: "treeitem",
1304
1305
  "aria-selected": n,
1305
1306
  tabIndex: a ? 0 : -1,
1306
- className: V(g(a), n && Lr.selectedRow),
1307
+ className: B(g(a), n && Lr.selectedRow),
1307
1308
  onClick: () => i(e.id),
1308
1309
  onFocus: () => p(e.id),
1309
1310
  children: /* @__PURE__ */ Z("span", {
1310
- className: V("min-w-0 flex-1 truncate", s),
1311
+ className: B("min-w-0 flex-1 truncate", s),
1311
1312
  children: e.name
1312
1313
  })
1313
1314
  }, e.id);
@@ -1325,20 +1326,20 @@ var rn = /* @__PURE__ */ function(e) {
1325
1326
  onFocus: () => p(e.id),
1326
1327
  children: [
1327
1328
  /* @__PURE__ */ Z(kt, {
1328
- size: J.SM,
1329
+ size: q.SM,
1329
1330
  className: "shrink-0",
1330
1331
  "aria-hidden": !0,
1331
- stroke: Y
1332
+ stroke: J
1332
1333
  }),
1333
1334
  /* @__PURE__ */ Z("span", {
1334
- className: V("min-w-0 flex-1 truncate", s),
1335
+ className: B("min-w-0 flex-1 truncate", s),
1335
1336
  children: e.name
1336
1337
  }),
1337
1338
  /* @__PURE__ */ Z(St, {
1338
- size: J.SM,
1339
- className: V("shrink-0 transition-transform", !o && "-rotate-90 rtl:rotate-90"),
1339
+ size: q.SM,
1340
+ className: B("shrink-0 transition-transform", !o && "-rotate-90 rtl:rotate-90"),
1340
1341
  "aria-hidden": !0,
1341
- stroke: Y
1342
+ stroke: J
1342
1343
  })
1343
1344
  ]
1344
1345
  }), o && e.items.length > 0 && /* @__PURE__ */ Z("div", {
@@ -1355,7 +1356,7 @@ var rn = /* @__PURE__ */ function(e) {
1355
1356
  children: e.map((e) => _(e))
1356
1357
  });
1357
1358
  }, Br = () => void 0, Vr = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = Br, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = Br, 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: _, markdownLabels: v }) => {
1358
- let y = _?.typography?.contentClassName ?? "dial-small-text", b = _?.typography?.contentHeadingClassName ?? "dial-small-semi-text", x = _?.typography?.contentFileCountClassName ?? "dial-tiny-text", S = he(), C = t != null && t !== "", w = n ?? [], T = Nr(w) > 1, E = Fr(w, r) ?? "", D = {
1359
+ let y = _?.typography?.contentClassName ?? "dial-small-text", b = _?.typography?.contentHeadingClassName ?? "dial-small-semi-text", x = _?.typography?.contentFileCountClassName ?? "dial-tiny-text", S = ge(), C = t != null && t !== "", w = n ?? [], T = Nr(w) > 1, E = Fr(w, r) ?? "", D = {
1359
1360
  nodes: w,
1360
1361
  selectedFileId: r,
1361
1362
  expandedFolderIds: o,
@@ -1375,22 +1376,22 @@ var rn = /* @__PURE__ */ function(e) {
1375
1376
  };
1376
1377
  return /* @__PURE__ */ Q("div", {
1377
1378
  className: "flex h-full min-h-0 min-w-0 flex-col gap-4 overflow-y-auto pb-6",
1378
- style: B({ "--cat-details-bg": _?.colors?.background }),
1379
+ style: z({ "--cat-details-bg": _?.colors?.background }),
1379
1380
  children: [
1380
1381
  C && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("p", {
1381
- className: V("m-0 shrink-0 px-6 wrap-break-word", y),
1382
+ className: B("m-0 shrink-0 px-6 wrap-break-word", y),
1382
1383
  children: t
1383
- }), /* @__PURE__ */ Z("div", { className: V("shrink-0", Ir.divider) })] }),
1384
+ }), /* @__PURE__ */ Z("div", { className: B("shrink-0", Ir.divider) })] }),
1384
1385
  T && /* @__PURE__ */ Q("div", {
1385
- className: V("sticky top-0 z-10 flex min-h-10 shrink-0 items-center gap-3 px-6", Ir.fileSelector),
1386
- children: [/* @__PURE__ */ Z(ke, {
1386
+ className: B("sticky top-0 z-10 flex min-h-10 shrink-0 items-center gap-3 px-6", Ir.fileSelector),
1387
+ children: [/* @__PURE__ */ Z(Ae, {
1387
1388
  open: c,
1388
1389
  onOpenChange: l,
1389
1390
  trigger: [],
1390
1391
  matchReferenceWidth: !1,
1391
1392
  listClassName: "w-[280px] shadow-md",
1392
1393
  placement: "bottom-start",
1393
- overlayRole: je.None,
1394
+ overlayRole: Me.None,
1394
1395
  renderOverlay: () => g ? g(D) : /* @__PURE__ */ Z(zr, {
1395
1396
  ...D,
1396
1397
  colors: {
@@ -1401,19 +1402,19 @@ var rn = /* @__PURE__ */ function(e) {
1401
1402
  children: /* @__PURE__ */ Z(He, {
1402
1403
  id: S,
1403
1404
  label: E,
1404
- size: Me.Small,
1405
+ size: Y.Small,
1405
1406
  isOpen: c,
1406
1407
  onClick: () => l(!c)
1407
1408
  })
1408
1409
  }), /* @__PURE__ */ Z("span", {
1409
- className: V("shrink-0", x, Ir.fileCount),
1410
+ className: B("shrink-0", x, Ir.fileCount),
1410
1411
  children: d(Nr(w))
1411
1412
  })]
1412
1413
  }),
1413
1414
  /* @__PURE__ */ Q("div", {
1414
1415
  role: T ? "region" : void 0,
1415
1416
  "aria-labelledby": T ? S : void 0,
1416
- className: V("min-w-0 shrink-0 px-6 text-start", h != null && "min-h-full", h == null && "wrap-break-word", h == null && Ir.body, h == null && y),
1417
+ className: B("min-w-0 shrink-0 px-6 text-start", h != null && "min-h-full", h == null && "wrap-break-word", h == null && Ir.body, h == null && y),
1417
1418
  children: [/* @__PURE__ */ Z(Ke, {
1418
1419
  visuallyHidden: !0,
1419
1420
  as: qe.Span,
@@ -1467,49 +1468,49 @@ var rn = /* @__PURE__ */ function(e) {
1467
1468
  let s = Kr(e), c = Xr(e), l = /* @__PURE__ */ Z(rt, {
1468
1469
  value: Wr(e),
1469
1470
  max: Gr(e.total),
1470
- size: Me.Small,
1471
- className: V("h-1! w-full", Zr.progressTrack, c === Ur.Default && Zr.progressFillDefault, c === Ur.Warning && Zr.progressFillWarning, c === Ur.Danger && Zr.progressFillDanger),
1471
+ size: Y.Small,
1472
+ className: B("h-1! w-full", Zr.progressTrack, c === Ur.Default && Zr.progressFillDefault, c === Ur.Warning && Zr.progressFillWarning, c === Ur.Danger && Zr.progressFillDanger),
1472
1473
  "aria-label": e.label,
1473
1474
  "aria-valuetext": e.ariaLabel ?? s
1474
1475
  }), u = e.captionLabel != null && /* @__PURE__ */ Z("span", {
1475
- className: V("wrap-break-word", r, Zr.label),
1476
+ className: B("wrap-break-word", r, Zr.label),
1476
1477
  children: e.captionLabel
1477
1478
  }), d = e.resetLabel != null && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("time", {
1478
1479
  dateTime: e.resetIsoValue,
1479
1480
  "aria-hidden": e.resetAriaLabel != null || void 0,
1480
- className: V("wrap-break-word", r, Zr.resetLabel),
1481
+ className: B("wrap-break-word", r, Zr.resetLabel),
1481
1482
  children: e.resetLabel
1482
1483
  }), e.resetAriaLabel != null && /* @__PURE__ */ Z("span", {
1483
1484
  className: "sr-only",
1484
1485
  children: e.resetAriaLabel
1485
1486
  })] });
1486
1487
  return t === un.Stacked ? /* @__PURE__ */ Q("li", {
1487
- className: V("flex flex-col gap-2 border-b py-3 first:pt-0 last:border-b-0 last:pb-0", Zr.divider),
1488
+ className: B("flex flex-col gap-2 border-b py-3 first:pt-0 last:border-b-0 last:pb-0", Zr.divider),
1488
1489
  children: [
1489
1490
  /* @__PURE__ */ Q("div", {
1490
1491
  className: "flex items-baseline justify-between gap-3",
1491
1492
  children: [/* @__PURE__ */ Z("span", {
1492
- className: V("min-w-0 wrap-break-word", n, Zr.valuePrimary),
1493
+ className: B("min-w-0 wrap-break-word", n, Zr.valuePrimary),
1493
1494
  children: e.label
1494
1495
  }), /* @__PURE__ */ Z("span", {
1495
- className: V("shrink-0", i, c === Ur.Danger ? Zr.valueDanger : Zr.valuePrimary),
1496
+ className: B("shrink-0", i, c === Ur.Danger ? Zr.valueDanger : Zr.valuePrimary),
1496
1497
  children: s
1497
1498
  })]
1498
1499
  }),
1499
1500
  u,
1500
1501
  Jr(e) ? l : e.noteLabel != null && /* @__PURE__ */ Z("span", {
1501
- className: V(o, Zr.label),
1502
+ className: B(o, Zr.label),
1502
1503
  children: e.noteLabel
1503
1504
  }),
1504
1505
  d
1505
1506
  ]
1506
1507
  }) : /* @__PURE__ */ Q("li", {
1507
- className: V("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", Zr.divider),
1508
+ className: B("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", Zr.divider),
1508
1509
  children: [/* @__PURE__ */ Q("div", {
1509
1510
  className: "flex min-w-0 flex-1 flex-col",
1510
1511
  children: [
1511
1512
  /* @__PURE__ */ Z("span", {
1512
- className: V("wrap-break-word", n, Zr.label),
1513
+ className: B("wrap-break-word", n, Zr.label),
1513
1514
  children: e.label
1514
1515
  }),
1515
1516
  u,
@@ -1518,7 +1519,7 @@ var rn = /* @__PURE__ */ function(e) {
1518
1519
  }), Jr(e) ? /* @__PURE__ */ Q("div", {
1519
1520
  className: "flex w-32 shrink-0 flex-col items-end gap-2",
1520
1521
  children: [/* @__PURE__ */ Z("div", {
1521
- className: V("flex gap-1", i),
1522
+ className: B("flex gap-1", i),
1522
1523
  children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("span", {
1523
1524
  className: Zr.valuePrimary,
1524
1525
  children: e.usedLabel
@@ -1533,16 +1534,16 @@ var rn = /* @__PURE__ */ function(e) {
1533
1534
  }) : /* @__PURE__ */ Q("div", {
1534
1535
  className: "flex shrink-0 flex-col items-end",
1535
1536
  children: [/* @__PURE__ */ Z("span", {
1536
- className: V(a, Zr.valuePrimary),
1537
+ className: B(a, Zr.valuePrimary),
1537
1538
  children: s
1538
1539
  }), e.noteLabel != null && /* @__PURE__ */ Z("span", {
1539
- className: V(o, Zr.label),
1540
+ className: B(o, Zr.label),
1540
1541
  children: e.noteLabel
1541
1542
  })]
1542
1543
  })]
1543
1544
  });
1544
1545
  }, $r = ({ group: e, sectionClassName: t, layout: n, labelClassName: r, captionClassName: i, valueClassName: a, noteValueClassName: o, noteClassName: s }) => /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Z("p", {
1545
- className: V("mt-0 mb-3", t, Zr.sectionHeading),
1546
+ className: B("mt-0 mb-3", t, Zr.sectionHeading),
1546
1547
  children: e.label
1547
1548
  }), /* @__PURE__ */ Z("ul", {
1548
1549
  className: "m-0 flex list-none flex-col p-0",
@@ -1558,7 +1559,7 @@ var rn = /* @__PURE__ */ function(e) {
1558
1559
  })] }), ei = ({ limits: e, layout: t = un.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 }) => {
1559
1560
  let d = e?.groups.filter((e) => e.rows.length > 0);
1560
1561
  if (d == null || d.length === 0) return null;
1561
- let f = B({
1562
+ let f = z({
1562
1563
  "--lt-section-heading": u?.sectionHeading,
1563
1564
  "--lt-label": u?.label,
1564
1565
  "--lt-value-primary": u?.valuePrimary,
@@ -1582,7 +1583,7 @@ var rn = /* @__PURE__ */ function(e) {
1582
1583
  noteValueClassName: a,
1583
1584
  noteClassName: o
1584
1585
  }, e.label)), l != null && /* @__PURE__ */ Z("p", {
1585
- className: V("m-0 border-t pt-4", c, Zr.divider, Zr.label),
1586
+ className: B("m-0 border-t pt-4", c, Zr.divider, Zr.label),
1586
1587
  children: l
1587
1588
  })]
1588
1589
  });
@@ -1590,7 +1591,7 @@ var rn = /* @__PURE__ */ function(e) {
1590
1591
  className: "flex flex-col gap-4",
1591
1592
  children: e.map((e, c) => /* @__PURE__ */ Q("div", {
1592
1593
  className: "flex flex-col gap-4",
1593
- children: [c > 0 && /* @__PURE__ */ Z("div", { className: V("shrink-0 border-b", Sr.divider) }), /* @__PURE__ */ Z("div", {
1594
+ children: [c > 0 && /* @__PURE__ */ Z("div", { className: B("shrink-0 border-b", Sr.divider) }), /* @__PURE__ */ Z("div", {
1594
1595
  className: s,
1595
1596
  children: /* @__PURE__ */ Z(Er, {
1596
1597
  sectionLabel: e.title,
@@ -1637,13 +1638,13 @@ var rn = /* @__PURE__ */ function(e) {
1637
1638
  }, ii = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
1638
1639
  let a = n ?? `repeat(${e.length}, 1fr)`;
1639
1640
  return /* @__PURE__ */ Q("div", {
1640
- className: V(ri.container, "grid overflow-hidden rounded-md"),
1641
+ className: B(ri.container, "grid overflow-hidden rounded-md"),
1641
1642
  style: { gridTemplateColumns: a },
1642
1643
  children: [e.map((e) => /* @__PURE__ */ Z("div", {
1643
- className: V("px-2 py-1 text-start", r, ri.header),
1644
+ className: B("px-2 py-1 text-start", r, ri.header),
1644
1645
  children: e
1645
- }, e)), t.map((e, t) => /* @__PURE__ */ Z(fe, { children: e.map((e, n) => /* @__PURE__ */ Z("div", {
1646
- className: V("px-2 py-1.5", i, ri.cell, t % 2 == 1 ? ri.evenRow : void 0),
1646
+ }, e)), t.map((e, t) => /* @__PURE__ */ Z(pe, { children: e.map((e, n) => /* @__PURE__ */ Z("div", {
1647
+ className: B("px-2 py-1.5", i, ri.cell, t % 2 == 1 ? ri.evenRow : void 0),
1647
1648
  children: e
1648
1649
  }, n)) }, t))]
1649
1650
  });
@@ -1665,7 +1666,7 @@ var rn = /* @__PURE__ */ function(e) {
1665
1666
  let c = {
1666
1667
  ...oi,
1667
1668
  ...s
1668
- }, [l, u] = q(""), d = l.trim(), f = G(() => {
1669
+ }, [l, u] = G(""), d = l.trim(), f = U(() => {
1669
1670
  let t = l.trim().toLowerCase(), n = e?.tools ?? [];
1670
1671
  return t === "" ? n : n.filter((e) => ci(e, t));
1671
1672
  }, [e, l]);
@@ -1682,13 +1683,13 @@ var rn = /* @__PURE__ */ function(e) {
1682
1683
  onChange: (e) => u(e ?? "")
1683
1684
  }), /* @__PURE__ */ Z(Ke, {
1684
1685
  as: qe.Span,
1685
- className: V(a, ai.count),
1686
+ className: B(a, ai.count),
1686
1687
  children: c.toolCount(f.length)
1687
1688
  })]
1688
1689
  }),
1689
- f.length === 0 && l.trim() !== "" && /* @__PURE__ */ Z(z, { label: c.noResults }),
1690
+ f.length === 0 && l.trim() !== "" && /* @__PURE__ */ Z(se, { label: c.noResults }),
1690
1691
  f.map((e, a) => /* @__PURE__ */ Q("div", {
1691
- className: V("flex flex-col gap-3 px-[22px] py-4", a > 0 ? ai.divider : void 0),
1692
+ className: B("flex flex-col gap-3 px-[22px] py-4", a > 0 ? ai.divider : void 0),
1692
1693
  children: [
1693
1694
  /* @__PURE__ */ Q("div", {
1694
1695
  className: "flex flex-col gap-1",
@@ -1699,7 +1700,7 @@ var rn = /* @__PURE__ */ function(e) {
1699
1700
  query: d
1700
1701
  })
1701
1702
  }), e.description != null && /* @__PURE__ */ Z("p", {
1702
- className: V("m-0", n, ai.description),
1703
+ className: B("m-0", n, ai.description),
1703
1704
  children: /* @__PURE__ */ Z(Be, {
1704
1705
  text: e.description,
1705
1706
  query: d,
@@ -1716,11 +1717,11 @@ var rn = /* @__PURE__ */ function(e) {
1716
1717
  columnsTemplate: "1fr 1fr auto",
1717
1718
  rows: e.inputParams.map((e) => [
1718
1719
  /* @__PURE__ */ Z("code", {
1719
- className: V("border-none bg-transparent p-0 text-inherit", o),
1720
+ className: B("border-none bg-transparent p-0 text-inherit", o),
1720
1721
  children: e.name
1721
1722
  }, "name"),
1722
1723
  /* @__PURE__ */ Z("code", {
1723
- className: V("border-none bg-transparent p-0 text-inherit", o),
1724
+ className: B("border-none bg-transparent p-0 text-inherit", o),
1724
1725
  children: e.type
1725
1726
  }, "type"),
1726
1727
  e.isRequired ? "✓" : "—"
@@ -1731,7 +1732,7 @@ var rn = /* @__PURE__ */ function(e) {
1731
1732
  e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ Z(ii, {
1732
1733
  columns: [c.annotationKey, c.annotationValue],
1733
1734
  rows: e.annotations.map((e) => [/* @__PURE__ */ Z("code", {
1734
- className: V("border-none bg-transparent p-0 text-inherit", o),
1735
+ className: B("border-none bg-transparent p-0 text-inherit", o),
1735
1736
  children: e.key
1736
1737
  }, "key"), e.value]),
1737
1738
  headingClassName: r,
@@ -1742,12 +1743,12 @@ var rn = /* @__PURE__ */ function(e) {
1742
1743
  ]
1743
1744
  });
1744
1745
  }, ui = ({ item: e, tabs: t, activeTab: r, onTabChange: i, isDetailsLoading: a = !1, contentFile: o, renderContentFileTree: s, texts: c, detailsStyles: l, limitsFooterNote: u }) => {
1745
- let { overviewSectionClassName: d = "dial-caption-text", overviewLabelClassName: f = "dial-small-semi-text", overviewValueClassName: p = "dial-small-text", overviewValueTrueClassName: m = "dial-small-text" } = l?.typography ?? {}, { promptContent: h, selectedFileId: g, isContentFileLoading: _, expandedFolderIds: v, isFileSelectorOpen: y, setIsFileSelectorOpen: b, handleToggleFolder: x, handleSelectContentFile: S, resolveContentFilePreview: C, renderedContentFilePreview: w } = o, T = G(() => xn(c), [c]), E = G(() => {
1746
+ let { overviewSectionClassName: d = "dial-caption-text", overviewLabelClassName: f = "dial-small-semi-text", overviewValueClassName: p = "dial-small-text", overviewValueTrueClassName: m = "dial-small-text" } = l?.typography ?? {}, { promptContent: h, selectedFileId: g, isContentFileLoading: _, expandedFolderIds: v, isFileSelectorOpen: y, setIsFileSelectorOpen: b, handleToggleFolder: x, handleSelectContentFile: S, resolveContentFilePreview: C, renderedContentFilePreview: w } = o, T = U(() => xn(c), [c]), E = U(() => {
1746
1747
  let e = {};
1747
1748
  return c?.toolsSearchPlaceholder != null && (e.searchPlaceholder = c.toolsSearchPlaceholder), c?.toolsSearchClearLabel != null && (e.searchClearLabel = c.toolsSearchClearLabel), c?.toolsCountLabel != null && (e.toolCount = c.toolsCountLabel), c?.toolsNoResultsLabel != null && (e.noResults = c.toolsNoResultsLabel), e;
1748
1749
  }, [c]), D = c?.emptyTabLabel ?? "No data", O = !e.description?.trim() && (e.topics?.length ?? 0) === 0, A = !e.details?.overview?.sections?.length, j = /* @__PURE__ */ Z("div", {
1749
1750
  className: "flex size-full items-center justify-center py-6",
1750
- children: /* @__PURE__ */ Z(z, { label: D })
1751
+ children: /* @__PURE__ */ Z(se, { label: D })
1751
1752
  }), M = c?.overviewYesLabel ?? "Yes", N = c?.overviewNoLabel ?? "No";
1752
1753
  return /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Q("div", {
1753
1754
  className: "flex items-center px-6",
@@ -1756,7 +1757,7 @@ var rn = /* @__PURE__ */ function(e) {
1756
1757
  tabs: t,
1757
1758
  activeTabId: r,
1758
1759
  onTabChange: i,
1759
- className: V("min-w-0 flex-1 overflow-x-auto", Sr.tabsScroll),
1760
+ className: B("min-w-0 flex-1 overflow-x-auto", Sr.tabsScroll),
1760
1761
  tabClassName: "shrink-0"
1761
1762
  }),
1762
1763
  /* @__PURE__ */ Z(Ke, {
@@ -1779,7 +1780,7 @@ var rn = /* @__PURE__ */ function(e) {
1779
1780
  })
1780
1781
  ]
1781
1782
  }), /* @__PURE__ */ Q("div", {
1782
- className: V("min-h-0 min-w-0 flex-1", r === n.Content ? "overflow-hidden" : "overflow-y-auto", r !== n.Overview && r !== n.Content && "px-6"),
1783
+ className: B("min-h-0 min-w-0 flex-1", r === n.Content ? "overflow-hidden" : "overflow-y-auto", r !== n.Overview && r !== n.Content && "px-6"),
1783
1784
  children: [
1784
1785
  r === n.About && O ? j : null,
1785
1786
  r === n.About && !O && /* @__PURE__ */ Z(Mr, {
@@ -1850,7 +1851,7 @@ var rn = /* @__PURE__ */ function(e) {
1850
1851
  }, di = /* @__PURE__ */ function(e) {
1851
1852
  return e.Idle = "idle", e.Loading = "loading", e.Resolved = "resolved", e.Unknown = "unknown", e;
1852
1853
  }({}), fi = (e) => e === s.ApiKey ? "Manage API keys" : "Manage credentials", pi = ({ item: e, texts: t, isReadonly: n = !1, isPrimaryActionVisible: r, onOpenUnpublish: i, hasPublishedFolders: o = !1, isUnpublishVisible: c, isPublishHistoryResolved: l = !0, isPublishVisible: u, onEdit: d, isShareVisible: f, isSharePrimary: p, isPublishPrimary: m, onLogin: h, onLogout: g, onDownload: _, isDownloadVisible: y, isDownloadPrimary: b, onUnshare: x, isUnshareVisible: S, onRevokeShare: C, onFetchRecipientsCount: w, isRevokeShareVisible: T, recipientsCountStatus: E, recipientsCount: D }) => {
1853
- let O = t?.hasPrimaryAction !== !1 && (r?.(e) ?? (e.type === P.Model || e.type === P.Agent || e.type === P.Prompt)), k = !n && !!i && o && (c?.(e) ?? !0), A = !n && !!i && !l && c?.(e) === !0, j = !n && !k && (u?.(e) ?? (e.type === P.Model || e.type === P.Toolset || e.type === P.Agent)), M = !n && !!d && !!e.isEditable, N = !n && e.isMyApp === !0 && (f?.(e) ?? !0), F = p?.(e) ?? !0, I = m?.(e) ?? !1, ee = e.credentials?.authenticationType ?? s.None, L = e.credentials != null && ee !== s.None ? v(e.credentials) : void 0, te = !n && L != null && (!!h || !!g), ne = e.type === P.Toolset && te, re = !!_ && (y?.(e) ?? !0), ie = re && !ne && (b?.(e) ?? (e.type === P.Skill && !O)), ae = re && !ie, R = !n && e.isMyApp, oe = !n && !!x && e.isMyApp !== !0 && e.sharedWithMe === !0 && (S?.(e) ?? !0), z = !n && !!C && e.isMyApp === !0 && (!w || E === di.Unknown || E === di.Resolved && (D ?? 0) > 0) && (T?.(e) ?? !0), se = c?.(e);
1854
+ let O = t?.hasPrimaryAction !== !1 && (r?.(e) ?? (e.type === P.Model || e.type === P.Agent || e.type === P.Prompt)), k = !n && !!i && o && (c?.(e) ?? !0), A = !n && !!i && !l && c?.(e) === !0, j = !n && !k && (u?.(e) ?? (e.type === P.Model || e.type === P.Toolset || e.type === P.Agent)), M = !n && !!d && !!e.isEditable, N = !n && e.isMyApp === !0 && (f?.(e) ?? !0), F = p?.(e) ?? !0, ee = m?.(e) ?? !1, I = e.credentials?.authenticationType ?? s.None, L = e.credentials != null && I !== s.None ? v(e.credentials) : void 0, te = !n && L != null && (!!h || !!g), ne = e.type === P.Toolset && te, re = !!_ && (y?.(e) ?? !0), ie = re && !ne && (b?.(e) ?? (e.type === P.Skill && !O)), ae = re && !ie, R = !n && e.isMyApp, oe = !n && !!x && e.isMyApp !== !0 && e.sharedWithMe === !0 && (S?.(e) ?? !0), se = !n && !!C && e.isMyApp === !0 && (!w || E === di.Unknown || E === di.Resolved && (D ?? 0) > 0) && (T?.(e) ?? !0), ce = c?.(e);
1854
1855
  return {
1855
1856
  shouldShowPrimaryAction: O,
1856
1857
  shouldShowUnpublish: k,
@@ -1859,8 +1860,8 @@ var rn = /* @__PURE__ */ function(e) {
1859
1860
  shouldShowEditAction: M,
1860
1861
  shouldShowShareAction: N,
1861
1862
  isShareInActionRow: F,
1862
- isPublishInActionRow: I,
1863
- authenticationType: ee,
1863
+ isPublishInActionRow: ee,
1864
+ authenticationType: I,
1864
1865
  credentialsUiState: L,
1865
1866
  shouldShowCredentialsAction: te,
1866
1867
  isCredentialsActionPrimary: ne,
@@ -1868,11 +1869,11 @@ var rn = /* @__PURE__ */ function(e) {
1868
1869
  shouldShowDownloadAction: ae,
1869
1870
  shouldShowDeleteAction: R,
1870
1871
  shouldShowUnshareAction: oe,
1871
- shouldShowRevokeShareAction: z,
1872
- mayGainUnpublishEntry: !n && !!i && (se == null || se && !l),
1872
+ shouldShowRevokeShareAction: se,
1873
+ mayGainUnpublishEntry: !n && !!i && (ce == null || ce && !l),
1873
1874
  mayGainRevokeShareEntry: !n && !!C && !!w && e.isMyApp === !0 && (T?.(e) ?? !0),
1874
- isApiKeyConfigured: ee === s.ApiKey && L === a.LogOut,
1875
- isOAuthLogoutState: ee !== s.ApiKey && L !== a.ManageCredentials && L === a.LogOut
1875
+ isApiKeyConfigured: I === s.ApiKey && L === a.LogOut,
1876
+ isOAuthLogoutState: I !== s.ApiKey && L !== a.ManageCredentials && L === a.LogOut
1876
1877
  };
1877
1878
  }, mi = {
1878
1879
  name: "_name_rnlwb_1",
@@ -1884,9 +1885,9 @@ var rn = /* @__PURE__ */ function(e) {
1884
1885
  hint: "_hint_1lu6m_5",
1885
1886
  deleteAction: "_deleteAction_1lu6m_10"
1886
1887
  }, gi = 16, _i = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, apiKeyHeader: i, onLogin: a, onLogout: o, onClose: s, texts: c, colors: l, typography: u, deleteActionClassName: d }) => {
1887
- let { credentialsOverlayTitleClassName: f = "dial-small-semi-text", credentialsHintClassName: p = "dial-caption-text", credentialsErrorClassName: m = "dial-caption-text" } = u ?? {}, [h, g] = q(""), [_, v] = q(!1), [y, x] = q(!1), [S, C] = q(!1), w = n === b.SignedIn, T = H((e) => {
1888
+ let { credentialsOverlayTitleClassName: f = "dial-small-semi-text", credentialsHintClassName: p = "dial-caption-text", credentialsErrorClassName: m = "dial-caption-text" } = u ?? {}, [h, g] = G(""), [_, v] = G(!1), [y, x] = G(!1), [S, C] = G(!1), w = n === b.SignedIn, T = V((e) => {
1888
1889
  g(e ?? ""), v(!1);
1889
- }, []), E = H(async () => {
1890
+ }, []), E = V(async () => {
1890
1891
  if (h.trim().length === 0) v(!0);
1891
1892
  else {
1892
1893
  x(!0);
@@ -1905,7 +1906,7 @@ var rn = /* @__PURE__ */ function(e) {
1905
1906
  h,
1906
1907
  a,
1907
1908
  s
1908
- ]), D = H(async () => {
1909
+ ]), D = V(async () => {
1909
1910
  C(!0);
1910
1911
  try {
1911
1912
  await o?.(e, { level: t }), s();
@@ -1917,7 +1918,7 @@ var rn = /* @__PURE__ */ function(e) {
1917
1918
  t,
1918
1919
  o,
1919
1920
  s
1920
- ]), O = c?.personalApiKeyPanelTitle ?? "Personal API key", k = c?.addApiKeyActionLabel ?? "Add", A = c?.deleteActionLabel ?? "Delete", j = c?.addingApiKeyStatusLabel ?? "Adding", M = c?.deletingStatusLabel ?? "Deleting", N = c?.apiKeyRequiredErrorMessage ?? "API key is required.", P = c?.personalApiKeyAddedMessage ?? "Personal key has been added", F = `catalog-item-${e.id}-${t}-api-key`, I = `${F}-header-hint`, ee = `${F}-empty-key-error`, L = i ? (c?.apiKeyHeaderHint ?? ((e) => `Enter your API key value for "${e}" header`))(i) : void 0, te = r == null ? void 0 : (c?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(r), ne = B({
1921
+ ]), O = c?.personalApiKeyPanelTitle ?? "Personal API key", k = c?.addApiKeyActionLabel ?? "Add", A = c?.deleteActionLabel ?? "Delete", j = c?.addingApiKeyStatusLabel ?? "Adding", M = c?.deletingStatusLabel ?? "Deleting", N = c?.apiKeyRequiredErrorMessage ?? "API key is required.", P = c?.personalApiKeyAddedMessage ?? "Personal key has been added", F = `catalog-item-${e.id}-${t}-api-key`, ee = `${F}-header-hint`, I = `${F}-empty-key-error`, L = i ? (c?.apiKeyHeaderHint ?? ((e) => `Enter your API key value for "${e}" header`))(i) : void 0, te = r == null ? void 0 : (c?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(r), ne = z({
1921
1922
  "--cat-details-divider": l?.divider,
1922
1923
  "--cat-cred-hint-text": l?.credentialsHintText,
1923
1924
  "--cat-cred-card-bg": l?.credentialsCardBackground,
@@ -1937,7 +1938,7 @@ var rn = /* @__PURE__ */ function(e) {
1937
1938
  children: O
1938
1939
  })
1939
1940
  }),
1940
- /* @__PURE__ */ Z("div", { className: V("mx-4 h-px", hi.divider) }),
1941
+ /* @__PURE__ */ Z("div", { className: B("mx-4 h-px", hi.divider) }),
1941
1942
  !w && /* @__PURE__ */ Q("div", {
1942
1943
  className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
1943
1944
  children: [
@@ -1945,7 +1946,7 @@ var rn = /* @__PURE__ */ function(e) {
1945
1946
  className: "flex items-end gap-2",
1946
1947
  children: [/* @__PURE__ */ Z(Ue, {
1947
1948
  id: F,
1948
- "aria-describedby": [L ? I : void 0, _ ? ee : void 0].filter(Boolean).join(" ") || void 0,
1949
+ "aria-describedby": [L ? ee : void 0, _ ? I : void 0].filter(Boolean).join(" ") || void 0,
1949
1950
  type: "password",
1950
1951
  autoComplete: "current-password",
1951
1952
  value: h,
@@ -1965,13 +1966,13 @@ var rn = /* @__PURE__ */ function(e) {
1965
1966
  disabled: y
1966
1967
  })]
1967
1968
  }),
1968
- /* @__PURE__ */ Z(we, {
1969
- id: I,
1969
+ /* @__PURE__ */ Z(Te, {
1970
+ id: ee,
1970
1971
  text: L,
1971
- className: V(p, hi.hint)
1972
+ className: B(p, hi.hint)
1972
1973
  }),
1973
1974
  _ && /* @__PURE__ */ Z(Pe, {
1974
- id: ee,
1975
+ id: I,
1975
1976
  className: m,
1976
1977
  text: N
1977
1978
  })
@@ -1983,7 +1984,7 @@ var rn = /* @__PURE__ */ function(e) {
1983
1984
  icon: /* @__PURE__ */ Z(At, {
1984
1985
  size: 20,
1985
1986
  "aria-hidden": !0,
1986
- stroke: Y
1987
+ stroke: J
1987
1988
  }),
1988
1989
  title: P,
1989
1990
  description: te,
@@ -1994,7 +1995,7 @@ var rn = /* @__PURE__ */ function(e) {
1994
1995
  size: gi,
1995
1996
  ariaLabel: M
1996
1997
  }) : void 0,
1997
- className: V(hi.deleteAction, d),
1998
+ className: B(hi.deleteAction, d),
1998
1999
  onClick: D,
1999
2000
  disabled: S
2000
2001
  })
@@ -2003,7 +2004,7 @@ var rn = /* @__PURE__ */ function(e) {
2003
2004
  ]
2004
2005
  });
2005
2006
  }, vi = ({ item: e, buttonComponent: t, authenticationType: n, credentialsUiState: r, onLogin: o, onLogout: c, onOpenCredentialsManagement: l, onRequestLogout: u, texts: f, detailsStyles: p }) => {
2006
- let [m, h] = q(!1), g = n === s.ApiKey && r !== a.ManageCredentials, _ = e.credentials == null ? i.User : d(e.credentials), v = H(() => {
2007
+ let [m, h] = G(!1), g = n === s.ApiKey && r !== a.ManageCredentials, _ = e.credentials == null ? i.User : d(e.credentials), v = V(() => {
2007
2008
  r === a.ManageCredentials ? l?.() : g ? h((e) => !e) : r === a.LogOut ? u?.() : e.credentials != null && o?.(e, { level: d(e.credentials) });
2008
2009
  }, [
2009
2010
  r,
@@ -2013,21 +2014,21 @@ var rn = /* @__PURE__ */ function(e) {
2013
2014
  l,
2014
2015
  u
2015
2016
  ]), y = r === a.ManageCredentials ? (f?.manageCredentialsActionLabel ?? fi)(n) : n === s.ApiKey ? r === a.LogOut ? f?.changeApiKeyActionLabel ?? "Change API key" : f?.apiKeyActionLabel ?? "API key" : r === a.LogOut ? f?.logoutActionLabel ?? "Log out" : f?.loginActionLabel ?? "Log in", b = r === a.ManageCredentials || n === s.ApiKey ? /* @__PURE__ */ Z(At, {
2016
- size: J.MD,
2017
- stroke: Y
2017
+ size: q.MD,
2018
+ stroke: J
2018
2019
  }) : r === a.LogOut ? /* @__PURE__ */ Z(Pt, {
2019
- size: J.MD,
2020
- stroke: Y
2020
+ size: q.MD,
2021
+ stroke: J
2021
2022
  }) : /* @__PURE__ */ Z(Nt, {
2022
- size: J.MD,
2023
- stroke: Y
2023
+ size: q.MD,
2024
+ stroke: J
2024
2025
  }), x = r === a.ManageCredentials ? /* @__PURE__ */ Z(yt, {
2025
- size: J.MD,
2026
+ size: q.MD,
2026
2027
  className: "rtl:scale-x-[-1]",
2027
- stroke: Y
2028
+ stroke: J
2028
2029
  }) : g ? /* @__PURE__ */ Z(St, {
2029
- size: J.MD,
2030
- stroke: Y
2030
+ size: q.MD,
2031
+ stroke: J
2031
2032
  }) : void 0, S = /* @__PURE__ */ Z(t, {
2032
2033
  label: y,
2033
2034
  iconBefore: b,
@@ -2035,14 +2036,14 @@ var rn = /* @__PURE__ */ function(e) {
2035
2036
  onClick: v,
2036
2037
  "aria-expanded": g ? m : void 0
2037
2038
  });
2038
- return !g || e.credentials == null ? S : /* @__PURE__ */ Z(ke, {
2039
+ return !g || e.credentials == null ? S : /* @__PURE__ */ Z(Ae, {
2039
2040
  placement: "bottom-start",
2040
2041
  matchReferenceWidth: !1,
2041
2042
  open: m,
2042
2043
  onOpenChange: h,
2043
2044
  trigger: [],
2044
2045
  outsideClosable: !0,
2045
- overlayRole: je.Dialog,
2046
+ overlayRole: Me.Dialog,
2046
2047
  overlayAriaLabel: f?.personalApiKeyPanelTitle ?? "Personal API key",
2047
2048
  renderOverlay: () => /* @__PURE__ */ Z(_i, {
2048
2049
  item: e,
@@ -2060,7 +2061,7 @@ var rn = /* @__PURE__ */ function(e) {
2060
2061
  children: S
2061
2062
  });
2062
2063
  }, yi = (e) => e.isMyApp === !0, bi = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
2063
- let [a, o] = q(!1), s = H(() => {
2064
+ let [a, o] = G(!1), s = V(() => {
2064
2065
  n ? o((e) => !e) : t?.(e);
2065
2066
  }, [
2066
2067
  e,
@@ -2071,25 +2072,25 @@ var rn = /* @__PURE__ */ function(e) {
2071
2072
  let c = /* @__PURE__ */ Z(Ze, {
2072
2073
  label: i,
2073
2074
  iconBefore: /* @__PURE__ */ Z(Rt, {
2074
- size: J.MD,
2075
- stroke: Y
2075
+ size: q.MD,
2076
+ stroke: J
2076
2077
  }),
2077
2078
  iconAfter: /* @__PURE__ */ Z(St, {
2078
- size: J.MD,
2079
- stroke: Y
2079
+ size: q.MD,
2080
+ stroke: J
2080
2081
  }),
2081
2082
  onClick: s,
2082
2083
  "aria-haspopup": n ? "menu" : void 0,
2083
2084
  "aria-expanded": n ? a : void 0
2084
2085
  });
2085
- return n ? /* @__PURE__ */ Z(ke, {
2086
+ return n ? /* @__PURE__ */ Z(Ae, {
2086
2087
  placement: "bottom-end",
2087
2088
  matchReferenceWidth: !1,
2088
2089
  open: a,
2089
2090
  onOpenChange: o,
2090
2091
  trigger: [],
2091
2092
  outsideClosable: !0,
2092
- overlayRole: je.None,
2093
+ overlayRole: Me.None,
2093
2094
  renderOverlay: () => n(e, () => o(!1)),
2094
2095
  children: c
2095
2096
  }) : c;
@@ -2099,25 +2100,25 @@ var rn = /* @__PURE__ */ function(e) {
2099
2100
  shareOverlay: s,
2100
2101
  isShareVisible: f,
2101
2102
  label: p?.shareLabel
2102
- }) : /* @__PURE__ */ Z(i ? Oe : Ze, {
2103
+ }) : /* @__PURE__ */ Z(i ? ke : Ze, {
2103
2104
  label: n,
2104
2105
  iconBefore: /* @__PURE__ */ Z(r, {
2105
- size: J.MD,
2106
+ size: q.MD,
2106
2107
  "aria-hidden": !0,
2107
- stroke: Y
2108
+ stroke: J
2108
2109
  }),
2109
2110
  onClick: a
2110
2111
  }))(t) : n.length > 0 ? (() => {
2111
- let t = /* @__PURE__ */ Z(ke, {
2112
+ let t = /* @__PURE__ */ Z(Ae, {
2112
2113
  items: n,
2113
2114
  placement: "bottom-end",
2114
2115
  matchReferenceWidth: !1,
2115
2116
  onOpenChange: r,
2116
2117
  children: /* @__PURE__ */ Z(Qe, {
2117
2118
  icon: /* @__PURE__ */ Z(Et, {
2118
- size: J.LG,
2119
+ size: q.LG,
2119
2120
  "aria-hidden": !0,
2120
- stroke: Y
2121
+ stroke: J
2121
2122
  }),
2122
2123
  "aria-label": p?.manageActionLabel ?? "Manage",
2123
2124
  "aria-haspopup": "menu",
@@ -2125,19 +2126,19 @@ var rn = /* @__PURE__ */ function(e) {
2125
2126
  onFocus: i
2126
2127
  })
2127
2128
  });
2128
- return a || !s || !o ? t : /* @__PURE__ */ Z(ke, {
2129
+ return a || !s || !o ? t : /* @__PURE__ */ Z(Ae, {
2129
2130
  placement: "bottom-end",
2130
2131
  matchReferenceWidth: !1,
2131
2132
  open: c,
2132
2133
  onOpenChange: l,
2133
2134
  trigger: [],
2134
2135
  outsideClosable: !0,
2135
- overlayRole: je.None,
2136
+ overlayRole: Me.None,
2136
2137
  renderOverlay: () => s(e, u),
2137
2138
  children: t
2138
2139
  });
2139
2140
  })() : null, Si = ({ visibility: e, texts: t, detailsStyles: n, recipientsCount: r, isManageMenuOpen: i, handleShare: a, handleEdit: o, handleDownload: s, handleOpenPublish: c, handleOpenUnpublish: l, handleDelete: u, handleRevokeShare: d, handleUnshare: f }) => {
2140
- let { isShareInActionRow: p, shouldShowShareAction: m, shouldShowEditAction: h, shouldShowDownloadAction: g, isPublishInActionRow: _, shouldShowPublish: v, shouldShowUnpublish: y, shouldShowDeleteAction: b, shouldShowRevokeShareAction: x, shouldShowUnshareAction: S, mayGainUnpublishEntry: C, mayGainRevokeShareEntry: w } = e, T = G(() => {
2141
+ let { isShareInActionRow: p, shouldShowShareAction: m, shouldShowEditAction: h, shouldShowDownloadAction: g, isPublishInActionRow: _, shouldShowPublish: v, shouldShowUnpublish: y, shouldShowDeleteAction: b, shouldShowRevokeShareAction: x, shouldShowUnshareAction: S, mayGainUnpublishEntry: C, mayGainRevokeShareEntry: w } = e, T = U(() => {
2141
2142
  let e = [];
2142
2143
  if (!p && m && e.push({
2143
2144
  key: "share",
@@ -2212,17 +2213,17 @@ var rn = /* @__PURE__ */ function(e) {
2212
2213
  u,
2213
2214
  d,
2214
2215
  f
2215
- ]), E = n?.colors?.manageMenuIcon, D = G(() => B({ "--cat-details-manage-menu-icon": E }), [E]);
2216
+ ]), E = n?.colors?.manageMenuIcon, D = U(() => z({ "--cat-details-manage-menu-icon": E }), [E]);
2216
2217
  return {
2217
- manageItems: G(() => T.map(({ key: e, label: t, Icon: n, iconClassName: r, danger: i, onClick: a }) => ({
2218
+ manageItems: U(() => T.map(({ key: e, label: t, Icon: n, iconClassName: r, danger: i, onClick: a }) => ({
2218
2219
  key: e,
2219
2220
  label: t,
2220
2221
  icon: /* @__PURE__ */ Z(n, {
2221
- size: J.SM,
2222
+ size: q.SM,
2222
2223
  "aria-hidden": !0,
2223
2224
  className: r,
2224
2225
  style: D,
2225
- stroke: Y
2226
+ stroke: J
2226
2227
  }),
2227
2228
  danger: i,
2228
2229
  onClick: a
@@ -2230,13 +2231,13 @@ var rn = /* @__PURE__ */ function(e) {
2230
2231
  promotedManageAction: T.length === 1 && !i && !C && !w ? T[0] : void 0
2231
2232
  };
2232
2233
  }, Ci = ({ item: e, onFetchRecipientsCount: t, onRevokeShare: n, isRevokeShareVisible: r }) => {
2233
- let [i, a] = q(di.Idle), [o, s] = q(void 0), c = K(null);
2234
- return U(() => {
2234
+ let [i, a] = G(di.Idle), [o, s] = G(void 0), c = W(null);
2235
+ return H(() => {
2235
2236
  c.current = null, a(di.Idle), s(void 0);
2236
2237
  }, [e.id]), {
2237
2238
  recipientsCountStatus: i,
2238
2239
  recipientsCount: o,
2239
- requestRecipientsCount: H(() => {
2240
+ requestRecipientsCount: V(() => {
2240
2241
  if (!t || c.current === e.id || !n || e.isMyApp !== !0 || r?.(e) === !1) return;
2241
2242
  let i = e.id;
2242
2243
  c.current = i, a(di.Loading), (async () => {
@@ -2260,28 +2261,28 @@ var rn = /* @__PURE__ */ function(e) {
2260
2261
  [an.LimitReached]: mi.limitReached,
2261
2262
  [an.RunningLow]: mi.limitRunningLow
2262
2263
  }, Ti = ({ status: e, label: t, className: n }) => /* @__PURE__ */ Z("div", {
2263
- className: V("flex h-[24px] items-center justify-center gap-1 rounded-2xl px-2 whitespace-nowrap", n, wi[e]),
2264
+ className: B("flex h-[24px] items-center justify-center gap-1 rounded-2xl px-2 whitespace-nowrap", n, wi[e]),
2264
2265
  children: t
2265
2266
  }), Ei = ({ item: e, onUseInChat: t, isPrimaryActionVisible: n, onShare: r, shareOverlay: i, isShareVisible: a, isSharePrimary: o, onEdit: s, onDownload: c, isDownloadVisible: l, isDownloadPrimary: u, onDelete: d, onUnshare: f, isUnshareVisible: p, onRevokeShare: m, onFetchRecipientsCount: h, isRevokeShareVisible: g, onLogin: _, onLogout: v, onOpenCredentialsManagement: y, onRequestLogout: b, texts: x, detailsStyles: S, isPublishVisible: C, isPublishPrimary: w, onOpenPublish: T, isUnpublishVisible: E, hasPublishedFolders: D = !1, isPublishHistoryResolved: O = !0, onRequestPublishHistory: k, onOpenUnpublish: A, isReadonly: j = !1 }) => {
2266
- let { nameClassName: M = "dial-body-semi-text", folderLabelClassName: N = "dial-tiny-text", folderLeafClassName: P = "dial-tiny-semi-text", limitStatusBadgeClassName: F = "dial-caption-lead-semi-text" } = S?.typography ?? {}, I = e.details?.limits?.status, ee = I == null ? void 0 : /* @__PURE__ */ Z(Ti, {
2267
- status: I,
2267
+ let { nameClassName: M = "dial-body-semi-text", folderLabelClassName: N = "dial-tiny-text", folderLeafClassName: P = "dial-tiny-semi-text", limitStatusBadgeClassName: F = "dial-caption-lead-semi-text" } = S?.typography ?? {}, ee = e.details?.limits?.status, I = ee == null ? void 0 : /* @__PURE__ */ Z(Ti, {
2268
+ status: ee,
2268
2269
  className: F,
2269
- label: I === an.LimitReached ? x?.limitReachedLabel ?? "Limit reached" : x?.limitRunningLowLabel ?? "Running low"
2270
- }), L = H(() => {
2270
+ label: ee === an.LimitReached ? x?.limitReachedLabel ?? "Limit reached" : x?.limitRunningLowLabel ?? "Running low"
2271
+ }), L = V(() => {
2271
2272
  t?.(e);
2272
- }, [e, t]), ne = H(() => {
2273
+ }, [e, t]), ne = V(() => {
2273
2274
  s?.(e);
2274
- }, [e, s]), re = H(() => {
2275
+ }, [e, s]), re = V(() => {
2275
2276
  T?.();
2276
- }, [T]), ie = H(() => {
2277
+ }, [T]), ie = V(() => {
2277
2278
  A?.();
2278
- }, [A]), ae = H(() => {
2279
+ }, [A]), ae = V(() => {
2279
2280
  c?.(e);
2280
- }, [e, c]), [R, oe] = q(!1);
2281
- U(() => {
2281
+ }, [e, c]), [R, oe] = G(!1);
2282
+ H(() => {
2282
2283
  oe(!1);
2283
2284
  }, [e.id]);
2284
- let z = H(() => {
2285
+ let se = V(() => {
2285
2286
  R || (oe(!0), (async () => {
2286
2287
  try {
2287
2288
  await c?.(e);
@@ -2293,40 +2294,40 @@ var rn = /* @__PURE__ */ function(e) {
2293
2294
  e,
2294
2295
  c,
2295
2296
  R
2296
- ]), [se, ce] = q(!1);
2297
- U(() => {
2298
- ce(!1);
2297
+ ]), [ce, le] = G(!1);
2298
+ H(() => {
2299
+ le(!1);
2299
2300
  }, [e.id]);
2300
- let B = H(() => {
2301
- i ? ce(!0) : r?.(e);
2301
+ let z = V(() => {
2302
+ i ? le(!0) : r?.(e);
2302
2303
  }, [
2303
2304
  e,
2304
2305
  r,
2305
2306
  i
2306
- ]), le = H(() => {
2307
- ce(!1);
2308
- }, []), ue = H(() => {
2307
+ ]), ue = V(() => {
2308
+ le(!1);
2309
+ }, []), de = V(() => {
2309
2310
  f?.(e);
2310
- }, [e, f]), de = H(() => {
2311
+ }, [e, f]), fe = V(() => {
2311
2312
  d?.(e);
2312
- }, [e, d]), fe = H(() => {
2313
+ }, [e, d]), pe = V(() => {
2313
2314
  m?.(e);
2314
- }, [e, m]), { recipientsCountStatus: pe, recipientsCount: me, requestRecipientsCount: he } = Ci({
2315
+ }, [e, m]), { recipientsCountStatus: me, recipientsCount: he, requestRecipientsCount: ge } = Ci({
2315
2316
  item: e,
2316
2317
  onFetchRecipientsCount: h,
2317
2318
  onRevokeShare: m,
2318
2319
  isRevokeShareVisible: g
2319
- }), [W, ge] = q(!1);
2320
- U(() => {
2321
- ge(!1);
2320
+ }), [_e, ve] = G(!1);
2321
+ H(() => {
2322
+ ve(!1);
2322
2323
  }, [e.id]);
2323
- let G = H((e) => {
2324
- ge(e), e && (he(), k?.());
2325
- }, [he, k]), K = H(() => {
2326
- he(), k?.();
2327
- }, [he, k]), _e = H(() => {
2324
+ let U = V((e) => {
2325
+ ve(e), e && (ge(), k?.());
2326
+ }, [ge, k]), W = V(() => {
2327
+ ge(), k?.();
2328
+ }, [ge, k]), K = V(() => {
2328
2329
  k?.();
2329
- }, [k]), ve = pi({
2330
+ }, [k]), ye = pi({
2330
2331
  item: e,
2331
2332
  texts: x,
2332
2333
  isReadonly: j,
@@ -2350,43 +2351,43 @@ var rn = /* @__PURE__ */ function(e) {
2350
2351
  onRevokeShare: m,
2351
2352
  onFetchRecipientsCount: h,
2352
2353
  isRevokeShareVisible: g,
2353
- recipientsCountStatus: pe,
2354
- recipientsCount: me
2355
- }), { shouldShowPrimaryAction: ye, shouldShowUnpublish: be, isUnpublishPending: xe, shouldShowPublish: Se, shouldShowShareAction: Ce, isShareInActionRow: we, isPublishInActionRow: Te, authenticationType: Ee, credentialsUiState: De, shouldShowCredentialsAction: Oe, isCredentialsActionPrimary: ke, isDownloadActionPrimary: Ae, isApiKeyConfigured: je, isOAuthLogoutState: Me } = ve, { manageItems: Ne, promotedManageAction: Pe } = Si({
2356
- visibility: ve,
2354
+ recipientsCountStatus: me,
2355
+ recipientsCount: he
2356
+ }), { shouldShowPrimaryAction: be, shouldShowUnpublish: xe, isUnpublishPending: Se, shouldShowPublish: Ce, shouldShowShareAction: we, isShareInActionRow: Te, isPublishInActionRow: Ee, authenticationType: De, credentialsUiState: Oe, shouldShowCredentialsAction: ke, isCredentialsActionPrimary: Ae, isDownloadActionPrimary: je, isApiKeyConfigured: Me, isOAuthLogoutState: Y } = ye, { manageItems: Ne, promotedManageAction: Pe } = Si({
2357
+ visibility: ye,
2357
2358
  texts: x,
2358
2359
  detailsStyles: S,
2359
- recipientsCount: me,
2360
- isManageMenuOpen: W,
2361
- handleShare: B,
2360
+ recipientsCount: he,
2361
+ isManageMenuOpen: _e,
2362
+ handleShare: z,
2362
2363
  handleEdit: ne,
2363
2364
  handleDownload: ae,
2364
2365
  handleOpenPublish: re,
2365
2366
  handleOpenUnpublish: ie,
2366
- handleDelete: de,
2367
- handleRevokeShare: fe,
2368
- handleUnshare: ue
2367
+ handleDelete: fe,
2368
+ handleRevokeShare: pe,
2369
+ handleUnshare: de
2369
2370
  }), Fe = {
2370
2371
  item: e,
2371
- authenticationType: Ee,
2372
- credentialsUiState: De,
2372
+ authenticationType: De,
2373
+ credentialsUiState: Oe,
2373
2374
  onLogin: _,
2374
2375
  onLogout: v,
2375
2376
  onOpenCredentialsManagement: y,
2376
2377
  onRequestLogout: b,
2377
2378
  texts: x,
2378
2379
  detailsStyles: S
2379
- }, Ie = ke || ye || Ae || we && Ce || Te && be || Te && Se || Oe && !ke || Ne.length > 0 && !xe;
2380
+ }, Ie = Ae || be || je || Te && we || Ee && xe || Ee && Ce || ke && !Ae || Ne.length > 0 && !Se;
2380
2381
  return /* @__PURE__ */ Q("div", {
2381
2382
  className: "flex flex-col gap-3 px-6 py-4",
2382
2383
  children: [/* @__PURE__ */ Z(te, {
2383
2384
  item: e,
2384
2385
  iconSize: 52,
2385
- nameClassName: V(M, mi.name),
2386
+ nameClassName: B(M, mi.name),
2386
2387
  featuredLabel: x?.featuredLabel ?? "Featured",
2387
2388
  typeLabel: x?.entityTypeLabels?.[e.type],
2388
2389
  featuredChipStyle: S?.colors?.featuredChipStyle,
2389
- statusBadge: ee,
2390
+ statusBadge: I,
2390
2391
  footer: e.folder.length > 0 ? /* @__PURE__ */ Z(Le, {
2391
2392
  segments: e.folder,
2392
2393
  labelClassName: N,
@@ -2395,27 +2396,27 @@ var rn = /* @__PURE__ */ function(e) {
2395
2396
  }), Ie && /* @__PURE__ */ Q("div", {
2396
2397
  className: "flex flex-wrap items-center gap-2 ps-[60px]",
2397
2398
  children: [
2398
- ke && /* @__PURE__ */ Z(vi, {
2399
- buttonComponent: je || Me ? Ze : nt,
2399
+ Ae && /* @__PURE__ */ Z(vi, {
2400
+ buttonComponent: Me || Y ? Ze : nt,
2400
2401
  ...Fe
2401
2402
  }),
2402
- ye && /* @__PURE__ */ Z(nt, {
2403
+ be && /* @__PURE__ */ Z(nt, {
2403
2404
  label: x?.primaryActionLabel ?? "Use in chat",
2404
- iconBefore: /* @__PURE__ */ Z(It, { size: J.MD }),
2405
+ iconBefore: /* @__PURE__ */ Z(It, { size: q.MD }),
2405
2406
  onClick: L,
2406
- disabled: I === an.LimitReached
2407
+ disabled: ee === an.LimitReached
2407
2408
  }),
2408
- Ae && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(nt, {
2409
+ je && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(nt, {
2409
2410
  label: x?.downloadActionLabel ?? "Download",
2410
2411
  iconBefore: R ? /* @__PURE__ */ Z(ut, {
2411
- size: J.MD,
2412
+ size: q.MD,
2412
2413
  "aria-hidden": !0
2413
2414
  }) : /* @__PURE__ */ Z(Dt, {
2414
- size: J.MD,
2415
+ size: q.MD,
2415
2416
  "aria-hidden": !0,
2416
- stroke: Y
2417
+ stroke: J
2417
2418
  }),
2418
- onClick: z,
2419
+ onClick: se,
2419
2420
  disabled: R,
2420
2421
  "aria-busy": R
2421
2422
  }), /* @__PURE__ */ Z(Ke, {
@@ -2423,51 +2424,51 @@ var rn = /* @__PURE__ */ function(e) {
2423
2424
  as: qe.Span,
2424
2425
  children: R ? x?.downloadingStatusLabel ?? "Downloading" : ""
2425
2426
  })] }),
2426
- we && Ce && /* @__PURE__ */ Z(bi, {
2427
+ Te && we && /* @__PURE__ */ Z(bi, {
2427
2428
  item: e,
2428
2429
  onShare: r,
2429
2430
  shareOverlay: i,
2430
2431
  isShareVisible: a,
2431
2432
  label: x?.shareLabel
2432
2433
  }),
2433
- Te && be && /* @__PURE__ */ Z(Ze, {
2434
+ Ee && xe && /* @__PURE__ */ Z(Ze, {
2434
2435
  label: x?.unpublishLabel ?? "Unpublish",
2435
2436
  iconBefore: /* @__PURE__ */ Z(Gt, {
2436
- size: J.MD,
2437
+ size: q.MD,
2437
2438
  "aria-hidden": !0,
2438
- stroke: Y
2439
+ stroke: J
2439
2440
  }),
2440
2441
  onClick: ie,
2441
- onMouseEnter: _e,
2442
- onFocus: _e
2442
+ onMouseEnter: K,
2443
+ onFocus: K
2443
2444
  }),
2444
- Te && Se && /* @__PURE__ */ Z(Ze, {
2445
+ Ee && Ce && /* @__PURE__ */ Z(Ze, {
2445
2446
  label: x?.publishLabel ?? "Publish",
2446
2447
  iconBefore: /* @__PURE__ */ Z(Kt, {
2447
- size: J.MD,
2448
+ size: q.MD,
2448
2449
  "aria-hidden": !0,
2449
- stroke: Y
2450
+ stroke: J
2450
2451
  }),
2451
2452
  onClick: re,
2452
- onMouseEnter: _e,
2453
- onFocus: _e
2453
+ onMouseEnter: K,
2454
+ onFocus: K
2454
2455
  }),
2455
- Oe && !ke && /* @__PURE__ */ Z(vi, {
2456
+ ke && !Ae && /* @__PURE__ */ Z(vi, {
2456
2457
  buttonComponent: Ze,
2457
2458
  ...Fe
2458
2459
  }),
2459
- !xe && /* @__PURE__ */ Z(xi, {
2460
+ !Se && /* @__PURE__ */ Z(xi, {
2460
2461
  item: e,
2461
2462
  promotedManageAction: Pe,
2462
2463
  manageItems: Ne,
2463
- onManageOpenChange: G,
2464
- onManageTriggerIntent: K,
2465
- isShareInActionRow: we,
2466
- shouldShowShareAction: Ce,
2464
+ onManageOpenChange: U,
2465
+ onManageTriggerIntent: W,
2466
+ isShareInActionRow: Te,
2467
+ shouldShowShareAction: we,
2467
2468
  shareOverlay: i,
2468
- isShareOverlayOpen: se,
2469
- onShareOverlayOpenChange: ce,
2470
- onCloseShareOverlay: le,
2469
+ isShareOverlayOpen: ce,
2470
+ onShareOverlayOpenChange: le,
2471
+ onCloseShareOverlay: ue,
2471
2472
  onShare: r,
2472
2473
  isShareVisible: a,
2473
2474
  texts: x
@@ -2476,25 +2477,25 @@ var rn = /* @__PURE__ */ function(e) {
2476
2477
  })]
2477
2478
  });
2478
2479
  }, Di = ({ item: e, isOpen: t, onClose: n, onDelete: r, onUnshare: a, onRevokeShare: o, onLogout: s, onUnpublish: c, texts: l, publishedFolders: u, formatFolderLabel: d }) => {
2479
- let [f, p] = q(null), [m, h] = q(!1), [g, _] = q(null), [v, y] = q(null), [b, x] = q(null);
2480
- U(() => {
2480
+ let [f, p] = G(null), [m, h] = G(!1), [g, _] = G(null), [v, y] = G(null), [b, x] = G(null);
2481
+ H(() => {
2481
2482
  x(null), p(null), h(!1), _(null), y(null);
2482
2483
  }, [e.id]);
2483
- let S = H(() => {
2484
+ let S = V(() => {
2484
2485
  p($.Delete);
2485
- }, []), C = H((t) => {
2486
+ }, []), C = V((t) => {
2486
2487
  y(t ?? (e.credentials == null ? null : w(e.credentials))), p($.Logout);
2487
- }, [e.credentials]), T = H(() => {
2488
+ }, [e.credentials]), T = V(() => {
2488
2489
  p($.Unshare);
2489
- }, []), E = H(() => {
2490
+ }, []), E = V(() => {
2490
2491
  p($.RevokeAccess);
2491
- }, []), D = H(() => {
2492
+ }, []), D = V(() => {
2492
2493
  p($.Unpublish);
2493
- }, []), O = H((e) => {
2494
+ }, []), O = V((e) => {
2494
2495
  _(e), p($.DeleteApiKey);
2495
- }, []), k = H(() => {
2496
+ }, []), k = V(() => {
2496
2497
  m || (p(null), _(null), y(null), x(null));
2497
- }, [m]), A = H(async () => {
2498
+ }, [m]), A = V(async () => {
2498
2499
  if (!(m || f == null)) {
2499
2500
  h(!0);
2500
2501
  try {
@@ -2542,7 +2543,7 @@ var rn = /* @__PURE__ */ function(e) {
2542
2543
  s,
2543
2544
  n
2544
2545
  ]);
2545
- return U(() => {
2546
+ return H(() => {
2546
2547
  if (!t || f == null) return;
2547
2548
  let e = (e) => {
2548
2549
  e.key === "Escape" && (e.stopPropagation(), k());
@@ -2565,7 +2566,7 @@ var rn = /* @__PURE__ */ function(e) {
2565
2566
  handleRequestDeleteApiKey: O,
2566
2567
  handleCancelConfirmation: k,
2567
2568
  handleConfirm: A,
2568
- confirmationContent: G(() => {
2569
+ confirmationContent: U(() => {
2569
2570
  switch (f) {
2570
2571
  case $.Delete: {
2571
2572
  let t = l?.deleteActionLabel ?? "Delete";
@@ -2579,7 +2580,7 @@ var rn = /* @__PURE__ */ function(e) {
2579
2580
  consequences: l?.deleteConfirmConsequences ?? Qn,
2580
2581
  confirmLabel: t,
2581
2582
  loadingStatusLabel: l?.deletingStatusLabel ?? "Deleting",
2582
- variant: De.Danger
2583
+ variant: Oe.Danger
2583
2584
  };
2584
2585
  }
2585
2586
  case $.Unshare: {
@@ -2594,7 +2595,7 @@ var rn = /* @__PURE__ */ function(e) {
2594
2595
  consequences: l?.unshareConfirmConsequences ?? $n,
2595
2596
  confirmLabel: t,
2596
2597
  loadingStatusLabel: l?.unsharingStatusLabel ?? "Removing",
2597
- variant: De.Info
2598
+ variant: Oe.Info
2598
2599
  };
2599
2600
  }
2600
2601
  case $.RevokeAccess: {
@@ -2609,7 +2610,7 @@ var rn = /* @__PURE__ */ function(e) {
2609
2610
  consequences: l?.revokeShareConfirmConsequences ?? tr,
2610
2611
  confirmLabel: t,
2611
2612
  loadingStatusLabel: l?.revokingShareStatusLabel ?? "Revoking access",
2612
- variant: De.Danger
2613
+ variant: Oe.Danger
2613
2614
  };
2614
2615
  }
2615
2616
  case $.Unpublish: {
@@ -2630,7 +2631,7 @@ var rn = /* @__PURE__ */ function(e) {
2630
2631
  consequences: l?.unpublishConfirmConsequences ?? er,
2631
2632
  confirmLabel: t,
2632
2633
  loadingStatusLabel: l?.unpublishingStatusLabel ?? "Requesting unpublish",
2633
- variant: De.Danger
2634
+ variant: Oe.Danger
2634
2635
  };
2635
2636
  }
2636
2637
  case $.Logout: {
@@ -2641,7 +2642,7 @@ var rn = /* @__PURE__ */ function(e) {
2641
2642
  consequences: void 0,
2642
2643
  confirmLabel: e,
2643
2644
  loadingStatusLabel: l?.loggingOutStatusLabel ?? "Logging out",
2644
- variant: De.Info
2645
+ variant: Oe.Info
2645
2646
  };
2646
2647
  }
2647
2648
  case $.DeleteApiKey: {
@@ -2652,8 +2653,8 @@ var rn = /* @__PURE__ */ function(e) {
2652
2653
  consequences: void 0,
2653
2654
  confirmLabel: e,
2654
2655
  loadingStatusLabel: l?.deletingStatusLabel ?? "Deleting",
2655
- variant: De.Danger,
2656
- cardVariant: De.Info
2656
+ variant: Oe.Danger,
2657
+ cardVariant: Oe.Info
2657
2658
  };
2658
2659
  }
2659
2660
  default: return null;
@@ -2669,22 +2670,22 @@ var rn = /* @__PURE__ */ function(e) {
2669
2670
  isConfirmDisabled: f === $.Unpublish && qn(u, b) == null
2670
2671
  };
2671
2672
  }, Oi = ({ item: e, onLoadContentFile: t, onLoadContentFilePreview: n, renderContentFilePreview: r, texts: i }) => {
2672
- let a = e.details?.promptContent, o = a?.selectedFileId, [s, c] = q(null), [l, u] = q(!1), [d, f] = q(/* @__PURE__ */ new Set()), [p, m] = q(!1), h = K(null), g = K(0), _ = H((e) => {
2673
+ let a = e.details?.promptContent, o = a?.selectedFileId, [s, c] = G(null), [l, u] = G(!1), [d, f] = G(/* @__PURE__ */ new Set()), [p, m] = G(!1), h = W(null), g = W(0), _ = V((e) => {
2673
2674
  let t = h.current, n = e?.preview?.type === fn.Image ? e.preview.url : null;
2674
2675
  t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), h.current = n, c(e);
2675
2676
  }, []);
2676
- U(() => {
2677
+ H(() => {
2677
2678
  g.current += 1, _(null), u(!1), f(Pr(a?.files ?? [])), m(!1);
2678
- }, [e.id, o]), U(() => () => {
2679
+ }, [e.id, o]), H(() => () => {
2679
2680
  let e = h.current;
2680
2681
  e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
2681
2682
  }, []);
2682
- let v = H((e) => {
2683
+ let v = V((e) => {
2683
2684
  f((t) => {
2684
2685
  let n = new Set(t);
2685
2686
  return n.has(e) ? n.delete(e) : n.add(e), n;
2686
2687
  });
2687
- }, []), y = H(async (e) => {
2688
+ }, []), y = V(async (e) => {
2688
2689
  if (e === o) {
2689
2690
  g.current += 1, _(null), u(!1);
2690
2691
  return;
@@ -2747,7 +2748,7 @@ var rn = /* @__PURE__ */ function(e) {
2747
2748
  renderedContentFilePreview: s != null && r != null ? r(s.id, Fr(a?.files ?? [], s.id) ?? "") : void 0
2748
2749
  };
2749
2750
  }, ki = ({ item: e, isReadonly: t = !1, getPublishHistory: n, getPublishDependencies: r, publishFolderItems: i = Yn, hasPublishWriteAccess: a, publishDefaultAuthor: o, onPublish: s, onPublishSuccess: c, onPublishError: l, onCreatePublishFolder: u, onFetchExistingRules: d, onUnpublish: f, isUnpublishVisible: p, publishLabels: m }) => {
2750
- let [h, g] = q(!1), [_, v] = q([]), [y, b] = q(!1), x = K(null), S = H(() => {
2751
+ let [h, g] = G(!1), [_, v] = G([]), [y, b] = G(!1), x = W(null), S = V(() => {
2751
2752
  if (!n || x.current === e.id) return;
2752
2753
  let t = e.id;
2753
2754
  x.current = t, (async () => {
@@ -2761,15 +2762,15 @@ var rn = /* @__PURE__ */ function(e) {
2761
2762
  }
2762
2763
  })();
2763
2764
  }, [n, e]);
2764
- U(() => {
2765
+ H(() => {
2765
2766
  h && S();
2766
2767
  }, [h, S]);
2767
- let [C, w] = q(), T = K(r), E = K(e);
2768
- U(() => {
2768
+ let [C, w] = G(), T = W(r), E = W(e);
2769
+ H(() => {
2769
2770
  T.current = r, E.current = e;
2770
2771
  }, [r, e]);
2771
2772
  let D = r != null, k = e.id;
2772
- U(() => {
2773
+ H(() => {
2773
2774
  if (!h || !D) return;
2774
2775
  let e = !1;
2775
2776
  return (async () => {
@@ -2791,7 +2792,7 @@ var rn = /* @__PURE__ */ function(e) {
2791
2792
  ]);
2792
2793
  let A;
2793
2794
  D && (A = C?.itemId === k ? C.dependencies : Xn);
2794
- let j = H((e, t) => {
2795
+ let j = V((e, t) => {
2795
2796
  x.current = null, b(!1), S(), c?.(e, t);
2796
2797
  }, [S, c]), M = Zt({
2797
2798
  item: e,
@@ -2804,7 +2805,7 @@ var rn = /* @__PURE__ */ function(e) {
2804
2805
  onPublishSuccess: j,
2805
2806
  onPublishError: l,
2806
2807
  onFetchExistingRules: d
2807
- }), N = e.type === P.Toolset && O(e.credentials), F = G(() => Xt({
2808
+ }), N = e.type === P.Toolset && O(e.credentials), F = U(() => Xt({
2808
2809
  hasSelectedFolder: M.selectedFolderPath != null,
2809
2810
  hasExistingPublicationInFolder: M.hasExistingPublicationInFolder,
2810
2811
  hasWriteAccess: M.hasWriteAccess,
@@ -2818,14 +2819,14 @@ var rn = /* @__PURE__ */ function(e) {
2818
2819
  M.isSubmitting,
2819
2820
  M.hasSubmitError
2820
2821
  ]);
2821
- U(() => {
2822
+ H(() => {
2822
2823
  g(!1), M.reset(), v([]), b(!1), x.current = null;
2823
2824
  }, [e.id]);
2824
- let I = !t && !!f && p?.(e) === !0;
2825
- U(() => {
2826
- I && S();
2827
- }, [I, S]);
2828
- let ee = G(() => {
2825
+ let ee = !t && !!f && p?.(e) === !0;
2826
+ H(() => {
2827
+ ee && S();
2828
+ }, [ee, S]);
2829
+ let I = U(() => {
2829
2830
  let e = /* @__PURE__ */ new Set(), t = [];
2830
2831
  for (let n of _) {
2831
2832
  let r = n.folderPath.join("/");
@@ -2835,13 +2836,13 @@ var rn = /* @__PURE__ */ function(e) {
2835
2836
  }));
2836
2837
  }
2837
2838
  return t;
2838
- }, [_]), L = y && ee.length > 0, te = H((e) => e || (m?.rootFolderLabel ?? "Organization"), [m]), ne = H(() => g(!0), []), re = H(() => {
2839
+ }, [_]), L = y && I.length > 0, te = V((e) => e || (m?.rootFolderLabel ?? "Organization"), [m]), ne = V(() => g(!0), []), re = V(() => {
2839
2840
  g(!1), M.reset();
2840
2841
  }, [M]), ie = Qt({
2841
2842
  isOpen: h,
2842
2843
  selectedFolderPath: M.selectedFolderPath,
2843
2844
  onSelectedFolderPathChange: M.setSelectedFolderPath
2844
- }), ae = ie.view === Yt.ChangeFolder, R = H(async () => {
2845
+ }), ae = ie.view === Yt.ChangeFolder, R = V(async () => {
2845
2846
  await M.handleSubmit() && re();
2846
2847
  }, [M, re]);
2847
2848
  return {
@@ -2852,7 +2853,7 @@ var rn = /* @__PURE__ */ function(e) {
2852
2853
  publishDependencies: A,
2853
2854
  isPublishCredentialsEligible: N,
2854
2855
  publishDerived: F,
2855
- publishedFolders: ee,
2856
+ publishedFolders: I,
2856
2857
  hasPublishedFolders: L,
2857
2858
  formatFolderLabel: te,
2858
2859
  handleOpenPublish: ne,
@@ -2861,195 +2862,210 @@ var rn = /* @__PURE__ */ function(e) {
2861
2862
  isPublishFolderView: ae,
2862
2863
  handleSubmitPublish: R
2863
2864
  };
2864
- }, Ai = ({ item: e, isOpen: t, 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: m, getPublishDependencies: h, resolvePublishDependenciesLabels: g, resolvePublishApprovalLabels: _, publishFolderItems: v = Yn, publishExpandedPaths: y, onPublishExpandedPathsChange: b, publishLoadingPaths: S, hasPublishWriteAccess: C, publishDefaultAuthor: w, onPublish: T, onPublishSuccess: D, onPublishError: O, onCreatePublishFolder: k, publishLabels: A, ruleSourceOptions: j = Zn, onFetchExistingRules: M, shareOverlay: N, isShareVisible: P, isSharePrimary: ee, onEdit: L, onDownload: te, isDownloadVisible: ne, isDownloadPrimary: re, onLoadContentFile: ie, onLoadContentFilePreview: ae, renderContentFilePreview: R, renderContentFileTree: oe, renderCredentials: z, onDelete: se, onUnshare: ce, isUnshareVisible: B, onRevokeShare: le, onFetchRecipientsCount: ue, isRevokeShareVisible: de, onUnpublish: fe, isUnpublishVisible: pe, onLogin: me, onLogout: he, texts: W, styles: ge, limitsFooterNote: _e }) => {
2865
- let { subViewTitleClassName: ve = "dial-body-semi-text", confirmMessageClassName: ye = "dial-small-text" } = ge?.typography ?? {}, be = ge?.colors, xe = ar(be), [Se, Ce] = q(r), [we, Te] = q(""), Ee = Oi({
2865
+ }, Ai = ({ item: e, isOpen: t, 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: m, getPublishDependencies: h, resolvePublishDependenciesLabels: g, resolvePublishApprovalLabels: _, publishVersionHistory: v, onPublishOpenChange: y, publishFolderItems: b = Yn, publishExpandedPaths: S, onPublishExpandedPathsChange: C, publishLoadingPaths: w, hasPublishWriteAccess: T, publishDefaultAuthor: D, onPublish: O, onPublishSuccess: k, onPublishError: A, onCreatePublishFolder: j, publishLabels: M, ruleSourceOptions: N = Zn, onFetchExistingRules: P, shareOverlay: I, isShareVisible: L, isSharePrimary: te, onEdit: ne, onDownload: re, isDownloadVisible: ie, isDownloadPrimary: ae, onLoadContentFile: R, onLoadContentFilePreview: oe, renderContentFilePreview: se, renderContentFileTree: ce, renderCredentials: le, onDelete: z, onUnshare: ue, isUnshareVisible: de, onRevokeShare: fe, onFetchRecipientsCount: pe, isRevokeShareVisible: me, onUnpublish: he, isUnpublishVisible: ge, onLogin: _e, onLogout: ve, texts: K, styles: ye, limitsFooterNote: be }) => {
2866
+ let { subViewTitleClassName: xe = "dial-body-semi-text", confirmMessageClassName: Se = "dial-small-text" } = ye?.typography ?? {}, Ce = ye?.colors, we = ar(Ce), [Te, Ee] = G(r), [De, Oe] = G(""), q = Oi({
2866
2867
  item: e,
2867
- onLoadContentFile: ie,
2868
- onLoadContentFilePreview: ae,
2869
- renderContentFilePreview: R,
2870
- texts: W
2871
- }), { isPublishOpen: De, isPublishHistoryResolved: J, requestPublishHistory: Y, publishFlow: Oe, publishDependencies: ke, isPublishCredentialsEligible: Ae, publishDerived: je, publishedFolders: Me, hasPublishedFolders: Ne, formatFolderLabel: Pe, handleOpenPublish: Fe, handleClosePublish: Ie, publishFolderView: Le, isPublishFolderView: Re, handleSubmitPublish: ze } = ki({
2868
+ onLoadContentFile: R,
2869
+ onLoadContentFilePreview: oe,
2870
+ renderContentFilePreview: se,
2871
+ texts: K
2872
+ }), { isPublishOpen: J, isPublishHistoryResolved: ke, requestPublishHistory: Ae, publishFlow: je, publishDependencies: Me, isPublishCredentialsEligible: Y, publishDerived: Ne, publishedFolders: Pe, hasPublishedFolders: Fe, formatFolderLabel: Ie, handleOpenPublish: Le, handleClosePublish: Re, publishFolderView: ze, isPublishFolderView: Be, handleSubmitPublish: Ve } = ki({
2872
2873
  item: e,
2873
2874
  isReadonly: a,
2874
2875
  getPublishHistory: m,
2875
2876
  getPublishDependencies: h,
2876
- publishFolderItems: v,
2877
- hasPublishWriteAccess: C,
2878
- publishDefaultAuthor: w,
2879
- onPublish: T,
2880
- onPublishSuccess: D,
2881
- onPublishError: O,
2882
- onCreatePublishFolder: k,
2883
- onFetchExistingRules: M,
2884
- onUnpublish: fe,
2885
- isUnpublishVisible: pe,
2886
- publishLabels: A
2887
- }), { confirmation: Be, isConfirming: Ve, selectedUnpublishFolder: He, setSelectedUnpublishFolder: Ue, handleRequestDelete: We, handleRequestLogout: Ge, handleRequestUnshare: Ke, handleRequestRevokeShare: qe, handleRequestUnpublish: Je, handleRequestDeleteApiKey: Ye, handleCancelConfirmation: Xe, handleConfirm: Ze, confirmationContent: Qe, isConfirmDisabled: $e } = Di({
2877
+ publishFolderItems: b,
2878
+ hasPublishWriteAccess: T,
2879
+ publishDefaultAuthor: D,
2880
+ onPublish: O,
2881
+ onPublishSuccess: k,
2882
+ onPublishError: A,
2883
+ onCreatePublishFolder: j,
2884
+ onFetchExistingRules: P,
2885
+ onUnpublish: he,
2886
+ isUnpublishVisible: ge,
2887
+ publishLabels: M
2888
+ }), { confirmation: He, isConfirming: Ue, selectedUnpublishFolder: We, setSelectedUnpublishFolder: Ge, handleRequestDelete: Ke, handleRequestLogout: qe, handleRequestUnshare: Je, handleRequestRevokeShare: Ye, handleRequestUnpublish: Xe, handleRequestDeleteApiKey: Ze, handleCancelConfirmation: Qe, handleConfirm: $e, confirmationContent: et, isConfirmDisabled: tt } = Di({
2888
2889
  item: e,
2889
2890
  isOpen: t,
2890
2891
  onClose: o,
2891
- onDelete: se,
2892
- onUnshare: ce,
2893
- onRevokeShare: le,
2894
- onLogout: he,
2895
- onUnpublish: fe,
2896
- texts: W,
2897
- publishedFolders: Me,
2898
- formatFolderLabel: Pe
2899
- }), [et, tt] = q(!1);
2900
- U(() => {
2901
- Ce(r);
2902
- }, [e.id, r]), U(() => {
2903
- Te(""), tt(!1);
2892
+ onDelete: z,
2893
+ onUnshare: ue,
2894
+ onRevokeShare: fe,
2895
+ onLogout: ve,
2896
+ onUnpublish: he,
2897
+ texts: K,
2898
+ publishedFolders: Pe,
2899
+ formatFolderLabel: Ie
2900
+ }), [nt, rt] = G(!1), at = W({
2901
+ onPublishOpenChange: y,
2902
+ item: e
2903
+ });
2904
+ H(() => {
2905
+ at.current = {
2906
+ onPublishOpenChange: y,
2907
+ item: e
2908
+ };
2909
+ }, [y, e]), H(() => {
2910
+ let { onPublishOpenChange: e, item: t } = at.current;
2911
+ return e?.(J, t), () => {
2912
+ let { onPublishOpenChange: e, item: t } = at.current;
2913
+ e?.(!1, t);
2914
+ };
2915
+ }, [J, e.id]), H(() => {
2916
+ Ee(r);
2917
+ }, [e.id, r]), H(() => {
2918
+ Oe(""), rt(!1);
2904
2919
  }, [e.id]);
2905
- let nt = H(() => tt(!0), []), rt = H(() => tt(!1), []), at = H(() => {
2906
- let t = !Se;
2907
- Ce(t), s?.(e.id, t);
2920
+ let ot = V(() => rt(!0), []), ct = V(() => rt(!1), []), lt = V(() => {
2921
+ let t = !Te;
2922
+ Ee(t), s?.(e.id, t);
2908
2923
  }, [
2909
- Se,
2924
+ Te,
2910
2925
  e.id,
2911
2926
  s
2912
- ]), ot = G(() => {
2927
+ ]), ut = U(() => {
2913
2928
  let t = {
2914
- [n.About]: W?.tabAboutLabel ?? "About",
2915
- [n.Content]: W?.tabContentLabel ?? "Details",
2916
- [n.Overview]: W?.tabOverviewLabel ?? "Overview",
2917
- [n.Pricing]: W?.tabPricingLabel ?? "Pricing",
2918
- [n.Limits]: W?.tabLimitsLabel ?? "Limits",
2919
- [n.Api]: W?.tabConnectLabel ?? "Connect",
2920
- [n.Tools]: W?.tabToolsLabel ?? "Tools"
2929
+ [n.About]: K?.tabAboutLabel ?? "About",
2930
+ [n.Content]: K?.tabContentLabel ?? "Details",
2931
+ [n.Overview]: K?.tabOverviewLabel ?? "Overview",
2932
+ [n.Pricing]: K?.tabPricingLabel ?? "Pricing",
2933
+ [n.Limits]: K?.tabLimitsLabel ?? "Limits",
2934
+ [n.Api]: K?.tabConnectLabel ?? "Connect",
2935
+ [n.Tools]: K?.tabToolsLabel ?? "Tools"
2921
2936
  };
2922
2937
  return x(e).map((e) => ({
2923
2938
  id: e,
2924
2939
  label: t[e]
2925
2940
  }));
2926
- }, [e, W]), ct = K(null);
2927
- U(() => {
2928
- let t = ct.current !== e.id;
2929
- ct.current = e.id, (t || !ot.some((e) => e.id === we)) && Te(ot[0]?.id ?? "");
2941
+ }, [e, K]), dt = W(null);
2942
+ H(() => {
2943
+ let t = dt.current !== e.id;
2944
+ dt.current = e.id, (t || !ut.some((e) => e.id === De)) && Oe(ut[0]?.id ?? "");
2930
2945
  }, [
2931
2946
  e.id,
2932
- ot,
2933
- we
2947
+ ut,
2948
+ De
2934
2949
  ]);
2935
- let lt = W?.ariaLabel ?? "Item details", ut = W?.closeAriaLabel ?? "Close", dt = Se ? W?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : W?.addToFavoritesAriaLabel ?? "Add to favorites", ft = W?.publishTitle ?? "Publish", pt = W?.backToDetailsAriaLabel ?? "Back", mt = W?.cancelLabel ?? "Cancel", ht = Qe != null, gt = ht || De || et, _t = e.credentials == null ? "" : (W?.credentialsManagementTitle ?? nr)(e.credentials.authenticationType), vt = ht ? {
2936
- title: Qe.title,
2937
- isBackDisabled: Ve,
2938
- onBack: Xe
2939
- } : De ? {
2940
- title: Re ? W?.publishChangeFolderTitle ?? "Change folder" : ft,
2941
- isBackDisabled: Oe.isSubmitting,
2942
- onBack: Re ? Le.backToMain : Ie
2943
- } : et ? {
2944
- title: _t,
2950
+ let ft = K?.ariaLabel ?? "Item details", pt = K?.closeAriaLabel ?? "Close", mt = Te ? K?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : K?.addToFavoritesAriaLabel ?? "Add to favorites", ht = K?.publishTitle ?? "Publish", gt = K?.backToDetailsAriaLabel ?? "Back", _t = K?.cancelLabel ?? "Cancel", vt = et != null, yt = vt || J || nt, bt = e.credentials == null ? "" : (K?.credentialsManagementTitle ?? nr)(e.credentials.authenticationType), xt = vt ? {
2951
+ title: et.title,
2952
+ isBackDisabled: Ue,
2953
+ onBack: Qe
2954
+ } : J ? {
2955
+ title: Be ? K?.publishChangeFolderTitle ?? "Change folder" : ht,
2956
+ isBackDisabled: je.isSubmitting,
2957
+ onBack: Be ? ze.backToMain : Re
2958
+ } : nt ? {
2959
+ title: bt,
2945
2960
  isBackDisabled: !1,
2946
- onBack: rt
2947
- } : null, yt = vt?.title ?? lt;
2961
+ onBack: ct
2962
+ } : null, St = xt?.title ?? ft;
2948
2963
  return /* @__PURE__ */ Q(st, {
2949
2964
  open: t,
2950
2965
  onClose: o,
2951
- header: vt?.title,
2952
- ariaLabel: yt,
2953
- onBack: vt?.onBack,
2954
- backAriaLabel: pt,
2955
- backDisabled: vt?.isBackDisabled,
2956
- hideClose: vt != null,
2957
- closeAriaLabel: ut,
2958
- headerActions: vt == null && !a && c?.(e) !== !1 ? /* @__PURE__ */ Z(Fn, {
2959
- isStarred: Se,
2960
- ariaLabel: dt,
2961
- onClick: at
2966
+ header: xt?.title,
2967
+ ariaLabel: St,
2968
+ onBack: xt?.onBack,
2969
+ backAriaLabel: gt,
2970
+ backDisabled: xt?.isBackDisabled,
2971
+ hideClose: xt != null,
2972
+ closeAriaLabel: pt,
2973
+ headerActions: xt == null && !a && c?.(e) !== !1 ? /* @__PURE__ */ Z(Fn, {
2974
+ isStarred: Te,
2975
+ ariaLabel: mt,
2976
+ onClick: lt
2962
2977
  }) : void 0,
2963
- style: xe,
2964
- overlayStyle: xe,
2965
- className: V(Sr.panel, "tablet:w-[540px]! tablet:max-w-[calc(100%-32px)]!"),
2978
+ style: we,
2979
+ overlayStyle: we,
2980
+ className: B(Sr.panel, "tablet:w-[540px]! tablet:max-w-[calc(100%-32px)]!"),
2966
2981
  overlayClassName: Sr.backdrop,
2967
2982
  headerClassName: Sr.divider,
2968
- titleClassName: V(ve, Sr.publishTitle),
2983
+ titleClassName: B(xe, Sr.publishTitle),
2969
2984
  bodyClassName: "flex flex-col overflow-hidden",
2970
2985
  children: [
2971
2986
  /* @__PURE__ */ Q("div", {
2972
- className: V("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", Sr.content),
2987
+ className: B("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", Sr.content),
2973
2988
  children: [
2974
- ht && /* @__PURE__ */ Z(I, {
2989
+ vt && /* @__PURE__ */ Z(ee, {
2975
2990
  item: e,
2976
- message: Qe.message,
2977
- consequences: Qe.consequences,
2978
- variant: Qe.cardVariant ?? Qe.variant,
2979
- messageClassName: ye,
2991
+ message: et.message,
2992
+ consequences: et.consequences,
2993
+ variant: et.cardVariant ?? et.variant,
2994
+ messageClassName: Se,
2980
2995
  styles: { colors: {
2981
- messageText: be?.confirmMessageText,
2982
- consequenceText: be?.confirmConsequenceText,
2983
- cardBackground: be?.infoCardBackground,
2984
- cardDangerBackground: be?.infoCardDangerBackground
2996
+ messageText: Ce?.confirmMessageText,
2997
+ consequenceText: Ce?.confirmConsequenceText,
2998
+ cardBackground: Ce?.infoCardBackground,
2999
+ cardDangerBackground: Ce?.infoCardDangerBackground
2985
3000
  } },
2986
- children: Be === $.Unpublish && Me.length > 1 && /* @__PURE__ */ Z(it, {
2987
- ariaLabel: W?.unpublishFolderGroupAriaLabel ?? "Published folders",
2988
- value: He ?? void 0,
2989
- onChange: Ue,
2990
- disabled: Ve,
2991
- items: Me.map((e) => ({
3001
+ children: He === $.Unpublish && Pe.length > 1 && /* @__PURE__ */ Z(it, {
3002
+ ariaLabel: K?.unpublishFolderGroupAriaLabel ?? "Published folders",
3003
+ value: We ?? void 0,
3004
+ onChange: Ge,
3005
+ disabled: Ue,
3006
+ items: Pe.map((e) => ({
2992
3007
  value: e.key,
2993
- label: Pe(e.key)
3008
+ label: Ie(e.key)
2994
3009
  })),
2995
- radioClassName: ye
3010
+ radioClassName: Se
2996
3011
  })
2997
3012
  }),
2998
- !ht && !De && et && /* @__PURE__ */ Z(xr, {
3013
+ !vt && !J && nt && /* @__PURE__ */ Z(xr, {
2999
3014
  item: e,
3000
- onLogin: me,
3001
- onRequestLogout: Ge,
3002
- onRequestDeleteApiKey: Ye,
3003
- texts: W,
3004
- detailsStyles: ge
3015
+ onLogin: _e,
3016
+ onRequestLogout: qe,
3017
+ onRequestDeleteApiKey: Ze,
3018
+ texts: K,
3019
+ detailsStyles: ye
3005
3020
  }),
3006
- !ht && De && /* @__PURE__ */ Z(Cr, {
3021
+ !vt && J && /* @__PURE__ */ Z(Cr, {
3007
3022
  item: e,
3008
- publishFlow: Oe,
3009
- publishDependencies: ke,
3010
- publishFolderView: Le,
3011
- isPublishCredentialsEligible: Ae,
3012
- publishExpandedPaths: y,
3013
- onPublishExpandedPathsChange: b,
3014
- publishLoadingPaths: S,
3015
- ruleSourceOptions: j,
3016
- publishLabels: A,
3023
+ publishFlow: je,
3024
+ publishDependencies: Me,
3025
+ publishFolderView: ze,
3026
+ isPublishCredentialsEligible: Y,
3027
+ publishExpandedPaths: S,
3028
+ onPublishExpandedPathsChange: C,
3029
+ publishLoadingPaths: w,
3030
+ ruleSourceOptions: N,
3031
+ publishLabels: M,
3017
3032
  resolvePublishDependenciesLabels: g,
3018
- resolvePublishApprovalLabels: _
3033
+ resolvePublishApprovalLabels: _,
3034
+ publishVersionHistory: v
3019
3035
  }),
3020
- !gt && /* @__PURE__ */ Q(X, { children: [
3036
+ !yt && /* @__PURE__ */ Q(X, { children: [
3021
3037
  /* @__PURE__ */ Z(Ei, {
3022
3038
  item: e,
3023
3039
  onUseInChat: l,
3024
3040
  isPrimaryActionVisible: u,
3025
3041
  onShare: d,
3026
- shareOverlay: N,
3027
- isShareVisible: P,
3028
- isSharePrimary: ee,
3042
+ shareOverlay: I,
3043
+ isShareVisible: L,
3044
+ isSharePrimary: te,
3029
3045
  isPublishVisible: f,
3030
3046
  isPublishPrimary: p,
3031
- onOpenPublish: Fe,
3032
- isUnpublishVisible: pe,
3033
- hasPublishedFolders: Ne,
3034
- isPublishHistoryResolved: m == null || J,
3035
- onRequestPublishHistory: Y,
3036
- onOpenUnpublish: fe ? Je : void 0,
3037
- onEdit: L,
3038
- onDownload: te,
3039
- isDownloadVisible: ne,
3040
- isDownloadPrimary: re,
3041
- onDelete: se ? We : void 0,
3042
- onUnshare: ce ? Ke : void 0,
3043
- isUnshareVisible: B,
3044
- onRevokeShare: le ? qe : void 0,
3045
- onFetchRecipientsCount: ue,
3046
- isRevokeShareVisible: de,
3047
- onLogin: me,
3048
- onLogout: he,
3049
- onOpenCredentialsManagement: nt,
3050
- onRequestLogout: Ge,
3051
- texts: W,
3052
- detailsStyles: ge,
3047
+ onOpenPublish: Le,
3048
+ isUnpublishVisible: ge,
3049
+ hasPublishedFolders: Fe,
3050
+ isPublishHistoryResolved: m == null || ke,
3051
+ onRequestPublishHistory: Ae,
3052
+ onOpenUnpublish: he ? Xe : void 0,
3053
+ onEdit: ne,
3054
+ onDownload: re,
3055
+ isDownloadVisible: ie,
3056
+ isDownloadPrimary: ae,
3057
+ onDelete: z ? Ke : void 0,
3058
+ onUnshare: ue ? Je : void 0,
3059
+ isUnshareVisible: de,
3060
+ onRevokeShare: fe ? Ye : void 0,
3061
+ onFetchRecipientsCount: pe,
3062
+ isRevokeShareVisible: me,
3063
+ onLogin: _e,
3064
+ onLogout: ve,
3065
+ onOpenCredentialsManagement: ot,
3066
+ onRequestLogout: qe,
3067
+ texts: K,
3068
+ detailsStyles: ye,
3053
3069
  isReadonly: a
3054
3070
  }),
3055
3071
  e.credentials != null && (() => {
@@ -3059,49 +3075,49 @@ var rn = /* @__PURE__ */ function(e) {
3059
3075
  children: /* @__PURE__ */ Z(_r, {
3060
3076
  state: t,
3061
3077
  authenticationType: e.credentials.authenticationType,
3062
- texts: W
3078
+ texts: K
3063
3079
  })
3064
3080
  });
3065
3081
  })(),
3066
- !a && t && z?.(e),
3082
+ !a && t && le?.(e),
3067
3083
  /* @__PURE__ */ Z(ui, {
3068
3084
  item: e,
3069
- tabs: ot,
3070
- activeTab: we,
3071
- onTabChange: Te,
3085
+ tabs: ut,
3086
+ activeTab: De,
3087
+ onTabChange: Oe,
3072
3088
  isDetailsLoading: i,
3073
- contentFile: Ee,
3074
- renderContentFileTree: oe,
3075
- texts: W,
3076
- detailsStyles: ge,
3077
- limitsFooterNote: _e
3089
+ contentFile: q,
3090
+ renderContentFileTree: ce,
3091
+ texts: K,
3092
+ detailsStyles: ye,
3093
+ limitsFooterNote: be
3078
3094
  })
3079
3095
  ] })
3080
3096
  ]
3081
3097
  }),
3082
- ht && /* @__PURE__ */ Z(F, {
3083
- confirmLabel: Qe.confirmLabel,
3084
- cancelLabel: mt,
3085
- variant: Qe.variant,
3086
- isLoading: Ve,
3087
- isConfirmDisabled: $e,
3088
- loadingStatusLabel: Qe.loadingStatusLabel,
3089
- styles: { colors: { border: be?.confirmFooterBorder } },
3090
- onConfirm: Ze,
3091
- onCancel: Xe
3098
+ vt && /* @__PURE__ */ Z(F, {
3099
+ confirmLabel: et.confirmLabel,
3100
+ cancelLabel: _t,
3101
+ variant: et.variant,
3102
+ isLoading: Ue,
3103
+ isConfirmDisabled: tt,
3104
+ loadingStatusLabel: et.loadingStatusLabel,
3105
+ styles: { colors: { border: Ce?.confirmFooterBorder } },
3106
+ onConfirm: $e,
3107
+ onCancel: Qe
3092
3108
  }),
3093
- !ht && De && /* @__PURE__ */ Z(qt, {
3109
+ !vt && J && /* @__PURE__ */ Z(qt, {
3094
3110
  version: e.version,
3095
- hasExistingPublicationInFolder: Oe.hasExistingPublicationInFolder,
3111
+ hasExistingPublicationInFolder: je.hasExistingPublicationInFolder,
3096
3112
  allowReplace: !1,
3097
- isSubmitDisabled: je.isSubmitDisabled,
3098
- isSubmitLoading: je.isSubmitLoading,
3099
- onCancel: Re ? Le.backToMain : Ie,
3100
- onSubmit: ze,
3101
- view: Le.view,
3102
- onSelectFolder: Le.selectFolder,
3103
- isSelectFolderDisabled: Le.pendingFolderPath == null,
3104
- labels: A
3113
+ isSubmitDisabled: Ne.isSubmitDisabled,
3114
+ isSubmitLoading: Ne.isSubmitLoading,
3115
+ onCancel: Be ? ze.backToMain : Re,
3116
+ onSubmit: Ve,
3117
+ view: ze.view,
3118
+ onSelectFolder: ze.selectFolder,
3119
+ isSelectFolderDisabled: ze.pendingFolderPath == null,
3120
+ labels: M
3105
3121
  })
3106
3122
  ]
3107
3123
  });
@@ -3134,16 +3150,16 @@ var rn = /* @__PURE__ */ function(e) {
3134
3150
  favoriteCard: "_favoriteCard_iy8tl_101",
3135
3151
  cardButton: "_cardButton_iy8tl_101"
3136
3152
  }, Fi = ({ 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, focusOutlineColor: m }) => {
3137
- let [h, g] = q(t), [_, v] = q(!1), y = (t) => {
3153
+ let [h, g] = G(t), [_, v] = G(!1), y = (t) => {
3138
3154
  t.stopPropagation();
3139
3155
  let r = !h;
3140
3156
  g(r), r ? n?.(e.id, r) : v(!0);
3141
3157
  }, b = i && !_ ? () => i(e) : void 0;
3142
- return /* @__PURE__ */ Q(Te, {
3158
+ return /* @__PURE__ */ Q(Ee, {
3143
3159
  "data-card-id": e.id,
3144
3160
  "aria-label": e.name,
3145
- style: B({ "--fc-focus-outline": m }),
3146
- className: V("box-border min-w-0 cursor-pointer flex-row items-center gap-3 p-5 text-start", Pi.favoriteCard, _ && Pi.cardLeaving, f && Pi.selectedCard, mn.favoriteCard),
3161
+ style: z({ "--fc-focus-outline": m }),
3162
+ className: B("box-border min-w-0 cursor-pointer flex-row items-center gap-3 p-5 text-start", Pi.favoriteCard, _ && Pi.cardLeaving, f && Pi.selectedCard, mn.favoriteCard),
3147
3163
  onClick: b,
3148
3164
  onAnimationEnd: _ ? (t) => {
3149
3165
  t.currentTarget === t.target && n?.(e.id, !1);
@@ -3151,14 +3167,14 @@ var rn = /* @__PURE__ */ function(e) {
3151
3167
  children: [
3152
3168
  b != null && /* @__PURE__ */ Z("button", {
3153
3169
  type: "button",
3154
- className: V("sr-only", Pi.cardButton),
3170
+ className: B("sr-only", Pi.cardButton),
3155
3171
  children: e.name
3156
3172
  }),
3157
3173
  f && /* @__PURE__ */ Z(xt, {
3158
- size: J.SM,
3159
- className: V("absolute inset-e-3 top-3 shrink-0", Pi.selectedCheck),
3174
+ size: q.SM,
3175
+ className: B("absolute inset-e-3 top-3 shrink-0", Pi.selectedCheck),
3160
3176
  "aria-hidden": !0,
3161
- stroke: Y
3177
+ stroke: J
3162
3178
  }),
3163
3179
  /* @__PURE__ */ Z(jn, {
3164
3180
  icon: e.iconUrl,
@@ -3183,7 +3199,7 @@ var rn = /* @__PURE__ */ function(e) {
3183
3199
  }),
3184
3200
  lastUsedTrailing: r?.(e) === !1 ? void 0 : /* @__PURE__ */ Z(Fn, {
3185
3201
  isStarred: h,
3186
- size: Me.Small,
3202
+ size: Y.Small,
3187
3203
  onClick: y,
3188
3204
  ariaLabel: h ? d : u
3189
3205
  })
@@ -3200,7 +3216,7 @@ var rn = /* @__PURE__ */ function(e) {
3200
3216
  return new DOMRect(t.x + n, t.y + r, t.width, t.height);
3201
3217
  }
3202
3218
  }, Ri = ({ 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, isPaginationHidden: h = !1 }) => {
3203
- let g = o?.typography?.titleClassName ?? "dial-body-semi-text", _ = o?.typography?.countClassName ?? "dial-tiny-semi-text", v = B({
3219
+ let g = o?.typography?.titleClassName ?? "dial-body-semi-text", _ = o?.typography?.countClassName ?? "dial-tiny-semi-text", v = z({
3204
3220
  "--cat-fav-title-text": o?.colors?.titleText,
3205
3221
  "--cat-fav-count-text": o?.colors?.countText,
3206
3222
  "--cat-fav-selected-check": o?.colors?.selectedCheckIcon,
@@ -3212,34 +3228,34 @@ var rn = /* @__PURE__ */ function(e) {
3212
3228
  "--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
3213
3229
  "--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
3214
3230
  "--cat-fav-page-nav-bg": o?.colors?.pageNavBackground
3215
- }), y = G(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [b, x] = q(1), S = pn(), C = le(), w = !h && !C, T = S * Ii, E = (b - 1) * T, D = G(() => w ? y.slice(E, E + T) : y, [
3231
+ }), y = U(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [b, x] = G(1), S = pn(), C = ue(), w = !h && !C, T = S * Ii, E = (b - 1) * T, D = U(() => w ? y.slice(E, E + T) : y, [
3216
3232
  w,
3217
3233
  y,
3218
3234
  E,
3219
3235
  T
3220
3236
  ]), O = 1;
3221
3237
  w ? O = Math.ceil(y.length / T) : C && !h && (O = y.length);
3222
- let k = t ?? e.length, A = K(null), j = K(null), M = K(null), [N, P] = q(), [F, I] = q(), ee = K(S), L = K(C);
3223
- U(() => {
3224
- (ee.current !== S || L.current !== C) && (ee.current = S, L.current = C, x(1), P(void 0), I(void 0));
3225
- }, [S, C]), U(() => {
3238
+ let k = t ?? e.length, A = W(null), j = W(null), M = W(null), [N, P] = G(), [F, ee] = G(), I = W(S), L = W(C);
3239
+ H(() => {
3240
+ (I.current !== S || L.current !== C) && (I.current = S, L.current = C, x(1), P(void 0), ee(void 0));
3241
+ }, [S, C]), H(() => {
3226
3242
  b > O && O > 0 && x(O);
3227
- }, [b, O]), U(() => {
3228
- O <= 1 && (N !== void 0 || F !== void 0) && (P(void 0), I(void 0));
3243
+ }, [b, O]), H(() => {
3244
+ O <= 1 && (N !== void 0 || F !== void 0) && (P(void 0), ee(void 0));
3229
3245
  }, [
3230
3246
  O,
3231
3247
  N,
3232
3248
  F
3233
- ]), ge(() => {
3234
- !M.current || !j.current || C || O <= 1 || b !== 1 || N !== void 0 || (P(M.current.offsetHeight), I(j.current.offsetHeight));
3249
+ ]), ve(() => {
3250
+ !M.current || !j.current || C || O <= 1 || b !== 1 || N !== void 0 || (P(M.current.offsetHeight), ee(j.current.offsetHeight));
3235
3251
  }, [
3236
3252
  C,
3237
3253
  O,
3238
3254
  b,
3239
3255
  N
3240
3256
  ]);
3241
- let te = K(/* @__PURE__ */ new Map()), ne = K(b), re = K(S), ae = K(0), R = K(!1);
3242
- ge(() => {
3257
+ let te = W(/* @__PURE__ */ new Map()), ne = W(b), re = W(S), ae = W(0), R = W(!1);
3258
+ ve(() => {
3243
3259
  if (!M.current || s) return;
3244
3260
  if (A.current && !R.current) {
3245
3261
  let e = A.current;
@@ -3287,7 +3303,7 @@ var rn = /* @__PURE__ */ function(e) {
3287
3303
  S,
3288
3304
  C,
3289
3305
  s
3290
- ]), ge(() => {
3306
+ ]), ve(() => {
3291
3307
  let e = A.current;
3292
3308
  if (!e) return;
3293
3309
  let t = e.offsetHeight;
@@ -3299,35 +3315,35 @@ var rn = /* @__PURE__ */ function(e) {
3299
3315
  R.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
3300
3316
  }, i = setTimeout(r, 400);
3301
3317
  return e.addEventListener("transitionend", n), r;
3302
- }, []), ge(() => {
3318
+ }, []), ve(() => {
3303
3319
  if (!s || !A.current) return;
3304
3320
  let e = A.current, t = e.offsetHeight;
3305
3321
  t !== 0 && (e.style.height = `${t}px`, e.offsetHeight, e.style.transition = "height 260ms ease-in", e.style.height = "0px");
3306
3322
  }, [s]);
3307
- let oe = H(() => M.current ? Array.from(M.current.querySelectorAll("[data-card-id]")) : [], []), z = K(null), se = K(null), ce = H(() => {
3308
- se.current ??= requestAnimationFrame(() => {
3309
- se.current = null;
3323
+ let oe = V(() => M.current ? Array.from(M.current.querySelectorAll("[data-card-id]")) : [], []), se = W(null), ce = W(null), le = V(() => {
3324
+ ce.current ??= requestAnimationFrame(() => {
3325
+ ce.current = null;
3310
3326
  let e = M.current;
3311
3327
  if (!e) return;
3312
3328
  let t = Ni(e, oe()) + 1;
3313
- if (z.current != null) {
3314
- if (t !== z.current) return;
3315
- z.current = null;
3329
+ if (se.current != null) {
3330
+ if (t !== se.current) return;
3331
+ se.current = null;
3316
3332
  }
3317
3333
  x(t);
3318
3334
  });
3319
- }, [oe]), ue = H(() => {
3320
- z.current = null;
3335
+ }, [oe]), de = V(() => {
3336
+ se.current = null;
3321
3337
  }, []);
3322
- U(() => () => {
3323
- se.current != null && cancelAnimationFrame(se.current);
3338
+ H(() => () => {
3339
+ ce.current != null && cancelAnimationFrame(ce.current);
3324
3340
  }, []);
3325
- let de = (e) => {
3341
+ let fe = (e) => {
3326
3342
  if (x(e), !C || !M.current) return;
3327
3343
  let t = oe()[e - 1];
3328
3344
  if (!t) return;
3329
3345
  let n = Mi(M.current, t);
3330
- Math.abs(n) < 1 || (z.current = e, M.current.scrollBy({
3346
+ Math.abs(n) < 1 || (se.current = e, M.current.scrollBy({
3331
3347
  left: n,
3332
3348
  behavior: "smooth"
3333
3349
  }));
@@ -3336,7 +3352,7 @@ var rn = /* @__PURE__ */ function(e) {
3336
3352
  ref: A,
3337
3353
  children: /* @__PURE__ */ Q("section", {
3338
3354
  ref: j,
3339
- className: V("flex shrink-0 flex-col gap-4 pt-2 pb-2", Pi.section, s && Pi.sectionLeaving),
3355
+ className: B("flex shrink-0 flex-col gap-4 pt-2 pb-2", Pi.section, s && Pi.sectionLeaving),
3340
3356
  style: {
3341
3357
  ...v,
3342
3358
  minHeight: F
@@ -3347,26 +3363,26 @@ var rn = /* @__PURE__ */ function(e) {
3347
3363
  children: [/* @__PURE__ */ Z(ie, {
3348
3364
  title: n,
3349
3365
  postfix: k,
3350
- titleClassName: V(g, Pi.titleText),
3351
- postfixClassName: V(_, Pi.countText),
3366
+ titleClassName: B(g, Pi.titleText),
3367
+ postfixClassName: B(_, Pi.countText),
3352
3368
  trailing: O > 1 ? /* @__PURE__ */ Q("div", {
3353
- className: V("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", Pi.pageNav),
3369
+ className: B("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", Pi.pageNav),
3354
3370
  children: [
3355
3371
  /* @__PURE__ */ Z(ze, {
3356
- size: Me.Small,
3372
+ size: Y.Small,
3357
3373
  "aria-label": l,
3358
3374
  disabled: b === 1,
3359
- onClick: () => de(b - 1),
3360
- className: V("rounded-full", Pi.navBtn),
3375
+ onClick: () => fe(b - 1),
3376
+ className: B("rounded-full", Pi.navBtn),
3361
3377
  icon: /* @__PURE__ */ Z(Ct, {
3362
3378
  size: 14,
3363
3379
  "aria-hidden": !0,
3364
3380
  className: "rtl:scale-x-[-1]",
3365
- stroke: Y
3381
+ stroke: J
3366
3382
  })
3367
3383
  }),
3368
3384
  /* @__PURE__ */ Q("span", {
3369
- className: V("min-w-[32px] px-1 text-center select-none", _, Pi.countText),
3385
+ className: B("min-w-[32px] px-1 text-center select-none", _, Pi.countText),
3370
3386
  children: [
3371
3387
  b,
3372
3388
  " / ",
@@ -3374,30 +3390,30 @@ var rn = /* @__PURE__ */ function(e) {
3374
3390
  ]
3375
3391
  }),
3376
3392
  /* @__PURE__ */ Z(ze, {
3377
- size: Me.Small,
3393
+ size: Y.Small,
3378
3394
  "aria-label": u,
3379
3395
  disabled: b === O,
3380
- onClick: () => de(b + 1),
3381
- className: V("rounded-full", Pi.navBtn),
3396
+ onClick: () => fe(b + 1),
3397
+ className: B("rounded-full", Pi.navBtn),
3382
3398
  icon: /* @__PURE__ */ Z(wt, {
3383
3399
  size: 14,
3384
3400
  "aria-hidden": !0,
3385
3401
  className: "rtl:scale-x-[-1]",
3386
- stroke: Y
3402
+ stroke: J
3387
3403
  })
3388
3404
  })
3389
3405
  ]
3390
3406
  }) : void 0
3391
3407
  }), /* @__PURE__ */ Z("div", {
3392
3408
  ref: M,
3393
- className: V("grid content-start", C ? "-m-4 snap-x snap-mandatory scroll-p-4 scrollbar-none auto-cols-[328px] grid-flow-col gap-2 overflow-x-auto mask-[linear-gradient(to_bottom,transparent,black_16px,black_calc(100%-16px),transparent)] p-4 *:snap-start" : "gap-5", Pi.gridPage),
3409
+ className: B("grid content-start", C ? "-m-4 snap-x snap-mandatory scroll-p-4 scrollbar-none auto-cols-[328px] grid-flow-col gap-2 overflow-x-auto mask-[linear-gradient(to_bottom,transparent,black_16px,black_calc(100%-16px),transparent)] p-4 *:snap-start" : "gap-5", Pi.gridPage),
3394
3410
  style: {
3395
3411
  gridTemplateColumns: C ? void 0 : `repeat(${S}, minmax(0, 1fr))`,
3396
3412
  minHeight: N
3397
3413
  },
3398
- onScroll: C ? ce : void 0,
3399
- onScrollEnd: C ? ue : void 0,
3400
- onPointerDown: C ? ue : void 0,
3414
+ onScroll: C ? le : void 0,
3415
+ onScrollEnd: C ? de : void 0,
3416
+ onPointerDown: C ? de : void 0,
3401
3417
  children: D.map((e) => /* @__PURE__ */ Z(Fi, {
3402
3418
  item: e,
3403
3419
  onToggle: r,
@@ -3431,9 +3447,9 @@ var rn = /* @__PURE__ */ function(e) {
3431
3447
  className: "flex h-full w-full min-w-0 items-center gap-1.5",
3432
3448
  children: [
3433
3449
  /* @__PURE__ */ Z(kt, {
3434
- size: J.SM,
3435
- stroke: Y,
3436
- className: V("shrink-0", Bi.folderIcon),
3450
+ size: q.SM,
3451
+ stroke: J,
3452
+ className: B("shrink-0", Bi.folderIcon),
3437
3453
  "aria-hidden": !0
3438
3454
  }),
3439
3455
  /* @__PURE__ */ Z(pt, {
@@ -3474,7 +3490,7 @@ var rn = /* @__PURE__ */ function(e) {
3474
3490
  className: "flex min-w-0 flex-1 items-baseline gap-1.5",
3475
3491
  children: [
3476
3492
  /* @__PURE__ */ Z("h3", {
3477
- className: V("min-w-0 shrink", i, Bi.name),
3493
+ className: B("min-w-0 shrink", i, Bi.name),
3478
3494
  children: /* @__PURE__ */ Z(kn, {
3479
3495
  name: e.name,
3480
3496
  query: n,
@@ -3483,20 +3499,20 @@ var rn = /* @__PURE__ */ function(e) {
3483
3499
  }),
3484
3500
  e.version && /* @__PURE__ */ Z(Ne, {
3485
3501
  text: e.version,
3486
- className: V("max-w-[30%] shrink-0", a, Bi.version)
3502
+ className: B("max-w-[30%] shrink-0", a, Bi.version)
3487
3503
  }),
3488
3504
  o && /* @__PURE__ */ Z(xt, {
3489
- size: J.SM,
3490
- className: V("ms-auto shrink-0", Bi.selectedCheck),
3505
+ size: q.SM,
3506
+ className: B("ms-auto shrink-0", Bi.selectedCheck),
3491
3507
  "aria-hidden": !0,
3492
- stroke: Y
3508
+ stroke: J
3493
3509
  })
3494
3510
  ]
3495
3511
  })]
3496
3512
  }) : null;
3497
3513
  }, Gi = ({ data: e, context: t }) => {
3498
- let [n, r] = q(e?.isStarred ?? !1);
3499
- return U(() => {
3514
+ let [n, r] = G(e?.isStarred ?? !1);
3515
+ return H(() => {
3500
3516
  r(e?.isStarred ?? !1);
3501
3517
  }, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ Z("div", {
3502
3518
  className: "flex size-full items-center justify-end",
@@ -3591,29 +3607,29 @@ var rn = /* @__PURE__ */ function(e) {
3591
3607
  "--cat-list-selected-check": T?.selectedRowCheckIcon,
3592
3608
  "--cat-list-name-text": T?.nameText,
3593
3609
  "--cat-list-version-text": T?.versionText
3594
- }, D = K(null), O = K(t);
3610
+ }, D = W(null), O = W(t);
3595
3611
  O.current = t;
3596
- let k = H((e) => {
3612
+ let k = V((e) => {
3597
3613
  e.direction === "vertical" && O.current?.(e.top);
3598
- }, []), j = H(() => {
3614
+ }, []), j = V(() => {
3599
3615
  let e = D.current;
3600
3616
  e != null && !e.isDestroyed() && e.removeEventListener("bodyScroll", k);
3601
- }, [k]), M = H((e) => {
3617
+ }, [k]), M = V((e) => {
3602
3618
  j(), D.current = e, e.addEventListener("bodyScroll", k);
3603
3619
  }, [j, k]);
3604
- U(() => j, [j]), W(e, () => ({ scrollToTop: () => {
3620
+ H(() => j, [j]), _e(e, () => ({ scrollToTop: () => {
3605
3621
  let e = D.current;
3606
3622
  e == null || e.isDestroyed() || e.getDisplayedRowCount() === 0 || e.ensureIndexVisible(0, "top");
3607
3623
  } }), []);
3608
- let N = G(() => Yi(r, h, g), [
3624
+ let N = U(() => Yi(r, h, g), [
3609
3625
  r,
3610
3626
  h,
3611
3627
  g
3612
- ]), P = G(() => n.map(ia), [n]), F = H((e) => y?.(A(v, e, P)), [
3628
+ ]), P = U(() => n.map(ia), [n]), F = V((e) => y?.(A(v, e, P)), [
3613
3629
  y,
3614
3630
  v,
3615
3631
  P
3616
- ]), I = G(() => new Set(C == null ? [] : [C]), [C]), ee = G(() => ({
3632
+ ]), ee = U(() => new Set(C == null ? [] : [C]), [C]), I = U(() => ({
3617
3633
  rowHeight: Xi,
3618
3634
  suppressCellFocus: !1,
3619
3635
  defaultColDef: Qi,
@@ -3646,7 +3662,7 @@ var rn = /* @__PURE__ */ function(e) {
3646
3662
  f,
3647
3663
  S
3648
3664
  ]);
3649
- return U(() => {
3665
+ return H(() => {
3650
3666
  D.current?.refreshCells({ force: !0 });
3651
3667
  }, [i, C]), /* @__PURE__ */ Z("div", {
3652
3668
  style: E,
@@ -3662,7 +3678,7 @@ var rn = /* @__PURE__ */ function(e) {
3662
3678
  emptyStateTitle: o,
3663
3679
  emptyStateDescription: s ?? "",
3664
3680
  emptyStateLive: c,
3665
- additionalGridOptions: ee,
3681
+ additionalGridOptions: I,
3666
3682
  ariaLabel: a,
3667
3683
  ...S ? {
3668
3684
  selectionMode: nn.MULTIPLE,
@@ -3670,14 +3686,14 @@ var rn = /* @__PURE__ */ function(e) {
3670
3686
  onSelectionChange: F,
3671
3687
  selectRowLabel: b,
3672
3688
  selectAllLabel: x
3673
- } : { selectedRowIds: I }
3689
+ } : { selectedRowIds: ee }
3674
3690
  })
3675
3691
  });
3676
3692
  }, ca = "w-[320px]", la = {
3677
3693
  divider: "_divider_k154m_1",
3678
3694
  sectionHeader: "_sectionHeader_k154m_5"
3679
3695
  }, ua = ({ open: e, onClose: t, title: n, options: r, search: i, searchPlaceholder: a, searchClearLabel: o, noResultsLabel: s, backLabel: c, closeLabel: l, colors: u, sectionHeaderClassName: d = "dial-caption-text" }) => {
3680
- let [f, p] = q(null), m = f ? r.find((e) => e.key === f) : void 0, h = m?.children ?? r, g = i ? yn(h, i.value) : h, _ = B({
3696
+ let [f, p] = G(null), m = f ? r.find((e) => e.key === f) : void 0, h = m?.children ?? r, g = i ? yn(h, i.value) : h, _ = z({
3681
3697
  "--cat-create-menu-divider": u?.divider,
3682
3698
  "--cat-create-menu-section-header-text": u?.sectionHeaderText
3683
3699
  }), v = () => {
@@ -3688,7 +3704,7 @@ var rn = /* @__PURE__ */ function(e) {
3688
3704
  domEvent: t
3689
3705
  }), v());
3690
3706
  };
3691
- return /* @__PURE__ */ Q(ve, {
3707
+ return /* @__PURE__ */ Q(ye, {
3692
3708
  open: e,
3693
3709
  title: m ? String(m.label ?? "") : n,
3694
3710
  onBack: m ? () => p(null) : void 0,
@@ -3703,7 +3719,7 @@ var rn = /* @__PURE__ */ function(e) {
3703
3719
  placeholder: a,
3704
3720
  "aria-label": a,
3705
3721
  clearLabel: o,
3706
- size: Me.Small,
3722
+ size: Y.Small,
3707
3723
  onChange: (e) => i.onChange(e ?? "")
3708
3724
  })
3709
3725
  }),
@@ -3711,12 +3727,12 @@ var rn = /* @__PURE__ */ function(e) {
3711
3727
  role: "menu",
3712
3728
  "aria-label": m ? void 0 : n,
3713
3729
  style: _,
3714
- children: g.map((e) => e.type === Ae.Divider ? /* @__PURE__ */ Z("div", {
3730
+ children: g.map((e) => e.type === je.Divider ? /* @__PURE__ */ Z("div", {
3715
3731
  role: "separator",
3716
- className: V("my-1", la.divider, e.className)
3717
- }, e.key) : e.type === Ae.PlainText ? /* @__PURE__ */ Z("div", {
3732
+ className: B("my-1", la.divider, e.className)
3733
+ }, e.key) : e.type === je.PlainText ? /* @__PURE__ */ Z("div", {
3718
3734
  role: "presentation",
3719
- className: V("px-3 py-2", la.sectionHeader, d, e.className),
3735
+ className: B("px-3 py-2", la.sectionHeader, d, e.className),
3720
3736
  children: e.label
3721
3737
  }, e.key) : /* @__PURE__ */ Z(Ye, {
3722
3738
  role: "menuitem",
@@ -3726,8 +3742,8 @@ var rn = /* @__PURE__ */ function(e) {
3726
3742
  danger: e.danger,
3727
3743
  "aria-haspopup": e.children?.length ? "menu" : void 0,
3728
3744
  trailing: e.children?.length ? /* @__PURE__ */ Z(wt, {
3729
- size: J.SM,
3730
- stroke: Y,
3745
+ size: q.SM,
3746
+ stroke: J,
3731
3747
  className: "rtl:scale-x-[-1]",
3732
3748
  "aria-hidden": !0
3733
3749
  }) : void 0,
@@ -3741,16 +3757,16 @@ var rn = /* @__PURE__ */ function(e) {
3741
3757
  })
3742
3758
  ]
3743
3759
  });
3744
- }, da = ({ label: e, options: t, onClick: n, search: r, searchPlaceholder: i = "Search", searchClearLabel: a = "Clear search", noResultsLabel: o = "No results found", backLabel: s = "Back", closeLabel: c = "Close", variant: l = Ce.Primary, colors: u, sectionHeaderClassName: d, isFloating: f = !1 }) => {
3745
- let [p, m] = q(!1), h = ue(), g = /* @__PURE__ */ Z(St, {
3746
- size: J.SM,
3747
- stroke: Y,
3760
+ }, da = ({ label: e, options: t, onClick: n, search: r, searchPlaceholder: i = "Search", searchClearLabel: a = "Clear search", noResultsLabel: o = "No results found", backLabel: s = "Back", closeLabel: c = "Close", variant: l = we.Primary, colors: u, sectionHeaderClassName: d, isFloating: f = !1 }) => {
3761
+ let [p, m] = G(!1), h = de(), g = /* @__PURE__ */ Z(St, {
3762
+ size: q.SM,
3763
+ stroke: J,
3748
3764
  "aria-hidden": !0,
3749
- className: V("transition-transform", p && "rotate-180")
3765
+ className: B("transition-transform", p && "rotate-180")
3750
3766
  }), _ = {
3751
3767
  iconBefore: /* @__PURE__ */ Z(Lt, {
3752
- size: J.LG,
3753
- stroke: Y,
3768
+ size: q.LG,
3769
+ stroke: J,
3754
3770
  "aria-hidden": !0
3755
3771
  }),
3756
3772
  "aria-label": e,
@@ -3760,13 +3776,13 @@ var rn = /* @__PURE__ */ function(e) {
3760
3776
  let n = () => {
3761
3777
  m(!1), r?.onChange("");
3762
3778
  };
3763
- return /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(be, {
3779
+ return /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(xe, {
3764
3780
  ...f ? _ : {
3765
3781
  label: e,
3766
3782
  iconAfter: g
3767
3783
  },
3768
3784
  variant: l,
3769
- appearance: xe.Solid,
3785
+ appearance: Se.Solid,
3770
3786
  "aria-haspopup": "dialog",
3771
3787
  "aria-expanded": p,
3772
3788
  onClick: () => m(!0)
@@ -3785,19 +3801,19 @@ var rn = /* @__PURE__ */ function(e) {
3785
3801
  sectionHeaderClassName: d
3786
3802
  })] });
3787
3803
  }
3788
- if (f && !r && !t?.length) return /* @__PURE__ */ Z(be, {
3804
+ if (f && !r && !t?.length) return /* @__PURE__ */ Z(xe, {
3789
3805
  ..._,
3790
3806
  variant: l,
3791
- appearance: xe.Solid,
3807
+ appearance: Se.Solid,
3792
3808
  onClick: n
3793
3809
  });
3794
- if (r || f && t?.length) return /* @__PURE__ */ Z(Se, {
3810
+ if (r || f && t?.length) return /* @__PURE__ */ Z(Ce, {
3795
3811
  ...f ? {
3796
3812
  ..._,
3797
3813
  iconAfter: null
3798
3814
  } : { label: e },
3799
3815
  variant: l,
3800
- appearance: xe.Solid,
3816
+ appearance: Se.Solid,
3801
3817
  items: t ?? [],
3802
3818
  open: p,
3803
3819
  onOpenChange: m,
@@ -3816,23 +3832,23 @@ var rn = /* @__PURE__ */ function(e) {
3816
3832
  });
3817
3833
  if (!t?.length) {
3818
3834
  let t = /* @__PURE__ */ Z(Lt, {
3819
- size: J.SM,
3820
- stroke: Y
3835
+ size: q.SM,
3836
+ stroke: J
3821
3837
  });
3822
- return l === Ce.Primary ? /* @__PURE__ */ Z(nt, {
3838
+ return l === we.Primary ? /* @__PURE__ */ Z(nt, {
3823
3839
  label: e,
3824
3840
  iconBefore: t,
3825
3841
  onClick: n
3826
- }) : /* @__PURE__ */ Z(be, {
3842
+ }) : /* @__PURE__ */ Z(xe, {
3827
3843
  label: e,
3828
3844
  variant: l,
3829
- appearance: xe.Solid,
3845
+ appearance: Se.Solid,
3830
3846
  iconBefore: t,
3831
3847
  onClick: n
3832
3848
  });
3833
3849
  }
3834
- return /* @__PURE__ */ Z(Se, {
3835
- appearance: xe.Solid,
3850
+ return /* @__PURE__ */ Z(Ce, {
3851
+ appearance: Se.Solid,
3836
3852
  label: e,
3837
3853
  variant: l,
3838
3854
  items: t,
@@ -3845,13 +3861,13 @@ var rn = /* @__PURE__ */ function(e) {
3845
3861
  titleClassName: r,
3846
3862
  descriptionClassName: i,
3847
3863
  action: n == null ? void 0 : /* @__PURE__ */ Z(da, {
3848
- variant: Ce.Secondary,
3864
+ variant: we.Secondary,
3849
3865
  ...n
3850
3866
  })
3851
3867
  }), pa = ({ label: e, onClick: t, className: n }) => /* @__PURE__ */ Z(Fe, {
3852
3868
  icon: /* @__PURE__ */ Z(vt, {
3853
- size: J.LG,
3854
- stroke: Y,
3869
+ size: q.LG,
3870
+ stroke: J,
3855
3871
  "aria-hidden": !0
3856
3872
  }),
3857
3873
  "aria-label": e,
@@ -3888,7 +3904,7 @@ var rn = /* @__PURE__ */ function(e) {
3888
3904
  let o = e.size > 0;
3889
3905
  return r && o ? `${i} · ${e.size}` : r ? i : o ? t(e, n, a) : a;
3890
3906
  }, _a = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: a = "My", topicsLabel: o = "Topics", defaultLabel: s = "From", clearLabel: c = "Clear", applyLabel: u = "Apply", typography: d, colors: f }) => {
3891
- let p = (r ?? !1) || e.size > 0, [m, h] = q(!1), g = B({
3907
+ let p = (r ?? !1) || e.size > 0, [m, h] = G(!1), g = z({
3892
3908
  "--cat-filter-btn-bg": f?.buttonBackground,
3893
3909
  "--cat-filter-btn-border": f?.buttonBorder,
3894
3910
  "--cat-filter-btn-border-hover": f?.buttonBorderHover,
@@ -3905,19 +3921,19 @@ var rn = /* @__PURE__ */ function(e) {
3905
3921
  "--cat-filter-section-label": f?.sectionLabel,
3906
3922
  "--cat-filter-divider": f?.divider,
3907
3923
  "--cat-filter-footer-border": f?.footerBorder
3908
- }), _ = G(() => n == null ? [] : [...n].sort(), [n]), v = ga(e, n, r, a, s), [y, b] = q(() => new Set(e)), [x, S] = q(r ?? !1);
3909
- U(() => {
3924
+ }), _ = U(() => n == null ? [] : [...n].sort(), [n]), v = ga(e, n, r, a, s), [y, b] = G(() => new Set(e)), [x, S] = G(r ?? !1);
3925
+ H(() => {
3910
3926
  m && (b(new Set(e)), S(r ?? !1));
3911
3927
  }, [
3912
3928
  m,
3913
3929
  e,
3914
3930
  r
3915
3931
  ]);
3916
- let C = _.length + 1, [w, T] = q(-1), E = K([]), D = K(null), O = K(null), k = H((e) => {
3932
+ let C = _.length + 1, [w, T] = G(-1), E = W([]), D = W(null), O = W(null), k = V((e) => {
3917
3933
  let t = (e + C) % C;
3918
3934
  T(t), E.current[t]?.focus();
3919
3935
  }, [C]);
3920
- U(() => {
3936
+ H(() => {
3921
3937
  if (!m) {
3922
3938
  T(-1);
3923
3939
  return;
@@ -3937,13 +3953,13 @@ var rn = /* @__PURE__ */ function(e) {
3937
3953
  }, P = () => {
3938
3954
  t(/* @__PURE__ */ new Set()), i?.(!1), A(!1);
3939
3955
  };
3940
- return /* @__PURE__ */ Z(ke, {
3956
+ return /* @__PURE__ */ Z(Ae, {
3941
3957
  matchReferenceWidth: !1,
3942
3958
  placement: "bottom-start",
3943
3959
  open: m,
3944
3960
  onOpenChange: A,
3945
3961
  listClassName: "!bg-transparent !shadow-none !p-0",
3946
- overlayRole: je.Dialog,
3962
+ overlayRole: Me.Dialog,
3947
3963
  overlayAriaLabel: s,
3948
3964
  optionArrowNavigation: !1,
3949
3965
  renderOverlay: () => /* @__PURE__ */ Q("div", {
@@ -3952,7 +3968,7 @@ var rn = /* @__PURE__ */ function(e) {
3952
3968
  ...g,
3953
3969
  maxHeight: "calc(var(--fui-available-height, 9999px) - 8px)"
3954
3970
  },
3955
- className: V("flex min-w-[360px] flex-col rounded-xl p-[6px]", ha.overlay),
3971
+ className: B("flex min-w-[360px] flex-col rounded-xl p-[6px]", ha.overlay),
3956
3972
  onKeyDown: M,
3957
3973
  children: [/* @__PURE__ */ Q("div", {
3958
3974
  role: "menu",
@@ -3964,7 +3980,7 @@ var rn = /* @__PURE__ */ function(e) {
3964
3980
  mark: Xe.Checkbox,
3965
3981
  selected: x,
3966
3982
  label: a,
3967
- labelClassName: V(ha.rowLabel, d?.filterButtonClassName ?? "dial-small-semi-text"),
3983
+ labelClassName: B(ha.rowLabel, d?.filterButtonClassName ?? "dial-small-semi-text"),
3968
3984
  className: "shrink-0",
3969
3985
  tabIndex: w === 0 ? 0 : -1,
3970
3986
  ref: (e) => {
@@ -3974,16 +3990,16 @@ var rn = /* @__PURE__ */ function(e) {
3974
3990
  }), _.length > 0 && /* @__PURE__ */ Q(X, { children: [
3975
3991
  /* @__PURE__ */ Z("div", {
3976
3992
  role: "separator",
3977
- className: V("my-1 h-px", ha.divider),
3993
+ className: B("my-1 h-px", ha.divider),
3978
3994
  "aria-hidden": !0
3979
3995
  }),
3980
3996
  /* @__PURE__ */ Z("div", {
3981
- className: V("px-[10px] pt-[10px] pb-1", d?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", ha.sectionLabel),
3997
+ className: B("px-[10px] pt-[10px] pb-1", d?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", ha.sectionLabel),
3982
3998
  "aria-hidden": !0,
3983
3999
  children: o
3984
4000
  }),
3985
4001
  /* @__PURE__ */ Z("div", {
3986
- className: V(se, "flex min-h-0 flex-col gap-1 overflow-y-auto"),
4002
+ className: B(ce, "flex min-h-0 flex-col gap-1 overflow-y-auto"),
3987
4003
  children: _.map((e, t) => {
3988
4004
  let n = y.has(e), r = t + 1;
3989
4005
  return /* @__PURE__ */ Z(Ye, {
@@ -4004,7 +4020,7 @@ var rn = /* @__PURE__ */ function(e) {
4004
4020
  })
4005
4021
  ] })]
4006
4022
  }), /* @__PURE__ */ Q("div", {
4007
- className: V("mt-1 flex shrink-0 items-center px-1 py-3", ha.footer),
4023
+ className: B("mt-1 flex shrink-0 items-center px-1 py-3", ha.footer),
4008
4024
  ref: O,
4009
4025
  children: [/* @__PURE__ */ Z(Re, {
4010
4026
  label: c,
@@ -4016,37 +4032,37 @@ var rn = /* @__PURE__ */ function(e) {
4016
4032
  })]
4017
4033
  })]
4018
4034
  }),
4019
- children: /* @__PURE__ */ Z(be, {
4035
+ children: /* @__PURE__ */ Z(xe, {
4020
4036
  ref: D,
4021
4037
  "aria-expanded": m,
4022
4038
  onKeyDown: j,
4023
4039
  style: g,
4024
4040
  iconBefore: /* @__PURE__ */ Z(Ot, {
4025
- size: J.SM,
4026
- stroke: Y,
4027
- className: V("shrink-0", ha.filterBtnFunnel),
4041
+ size: q.SM,
4042
+ stroke: J,
4043
+ className: B("shrink-0", ha.filterBtnFunnel),
4028
4044
  "aria-hidden": !0
4029
4045
  }),
4030
4046
  label: v,
4031
- textClassName: V(ha.filterBtnLabel, d?.filterButtonClassName ?? "dial-small-semi-text"),
4047
+ textClassName: B(ha.filterBtnLabel, d?.filterButtonClassName ?? "dial-small-semi-text"),
4032
4048
  iconAfter: /* @__PURE__ */ Z(St, {
4033
4049
  size: 14,
4034
- stroke: Y,
4035
- className: V("shrink-0 transition-transform duration-150", ha.filterBtnChevron, m && "rotate-180"),
4050
+ stroke: J,
4051
+ className: B("shrink-0 transition-transform duration-150", ha.filterBtnChevron, m && "rotate-180"),
4036
4052
  "aria-hidden": !0
4037
4053
  }),
4038
- className: V("h-12 shrink-0 gap-[7px] rounded-lg! px-[18px] whitespace-nowrap", ha.filterBtn, p && ha.filterBtnActive, m && ha.filterBtnOpen)
4054
+ className: B("h-12 shrink-0 gap-[7px] rounded-lg! px-[18px] whitespace-nowrap", ha.filterBtn, p && ha.filterBtnActive, m && ha.filterBtnOpen)
4039
4055
  })
4040
4056
  });
4041
4057
  }, va = /* @__PURE__ */ function(e) {
4042
4058
  return e.Root = "root", e.View = "view", e.Sorting = "sorting", e.Filtering = "filtering", e;
4043
4059
  }({}), ya = /* @__PURE__ */ Z(wt, {
4044
- size: J.SM,
4045
- stroke: Y,
4060
+ size: q.SM,
4061
+ stroke: J,
4046
4062
  className: "rtl:scale-x-[-1]",
4047
4063
  "aria-hidden": !0
4048
4064
  }), ba = ({ open: e, onClose: t, viewMode: n, onViewModeChange: r, sortOptions: i, sortKey: a, onSortChange: o, filters: s, onFiltersChange: c, filterValues: u, isMyAppsActive: d, onMyAppsChange: f, labels: p, typography: m }) => {
4049
- let [h, g] = q(va.Root), [_, v] = q(() => /* @__PURE__ */ new Set()), [y, b] = q(!1), x = G(() => u == null ? [] : [...u].sort(), [u]), S = i != null && i.length > 0, C = s.size + +!!d, w = () => {
4065
+ let [h, g] = G(va.Root), [_, v] = G(() => /* @__PURE__ */ new Set()), [y, b] = G(!1), x = U(() => u == null ? [] : [...u].sort(), [u]), S = i != null && i.length > 0, C = s.size + +!!d, w = () => {
4050
4066
  g(va.Root), t();
4051
4067
  }, T = () => {
4052
4068
  v(new Set(s)), b(d ?? !1), g(va.Filtering);
@@ -4068,14 +4084,14 @@ var rn = /* @__PURE__ */ function(e) {
4068
4084
  [va.Sorting]: p.sorting,
4069
4085
  [va.Filtering]: p.filtering
4070
4086
  }, A = h === va.Filtering;
4071
- return /* @__PURE__ */ Q(ve, {
4087
+ return /* @__PURE__ */ Q(ye, {
4072
4088
  open: e,
4073
4089
  title: k[h],
4074
4090
  onBack: h === va.Root ? void 0 : () => g(va.Root),
4075
4091
  backAriaLabel: p.back,
4076
4092
  closeAriaLabel: p.close,
4077
4093
  onClose: w,
4078
- bodyClassName: V(A && "flex flex-col"),
4094
+ bodyClassName: B(A && "flex flex-col"),
4079
4095
  children: [
4080
4096
  h === va.Root && /* @__PURE__ */ Q("div", {
4081
4097
  role: "menu",
@@ -4117,8 +4133,8 @@ var rn = /* @__PURE__ */ function(e) {
4117
4133
  selected: n === e,
4118
4134
  label: t,
4119
4135
  icon: /* @__PURE__ */ Z(i, {
4120
- size: J.SM,
4121
- stroke: Y,
4136
+ size: q.SM,
4137
+ stroke: J,
4122
4138
  "aria-hidden": !0
4123
4139
  }),
4124
4140
  onClick: () => {
@@ -4157,11 +4173,11 @@ var rn = /* @__PURE__ */ function(e) {
4157
4173
  }), x.length > 0 && /* @__PURE__ */ Q(X, { children: [
4158
4174
  /* @__PURE__ */ Z("div", {
4159
4175
  role: "separator",
4160
- className: V("my-1 h-px", ha.divider),
4176
+ className: B("my-1 h-px", ha.divider),
4161
4177
  "aria-hidden": !0
4162
4178
  }),
4163
4179
  /* @__PURE__ */ Z("div", {
4164
- className: V("px-[10px] pt-[10px] pb-1", m?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", ha.sectionLabel),
4180
+ className: B("px-[10px] pt-[10px] pb-1", m?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", ha.sectionLabel),
4165
4181
  "aria-hidden": !0,
4166
4182
  children: p.topics
4167
4183
  }),
@@ -4180,7 +4196,7 @@ var rn = /* @__PURE__ */ function(e) {
4180
4196
  })
4181
4197
  ] })]
4182
4198
  }), /* @__PURE__ */ Q("div", {
4183
- className: V("flex shrink-0 items-center gap-3 px-4 py-3", ha.footer),
4199
+ className: B("flex shrink-0 items-center gap-3 px-4 py-3", ha.footer),
4184
4200
  children: [/* @__PURE__ */ Z(Re, {
4185
4201
  label: p.clear,
4186
4202
  className: "flex-1",
@@ -4199,8 +4215,8 @@ var rn = /* @__PURE__ */ function(e) {
4199
4215
  settingsDot: "_settingsDot_mk15x_9",
4200
4216
  searchField: "_searchField_mk15x_17"
4201
4217
  }, Sa = /* @__PURE__ */ new Set(), Ca = ({ totalCount: e, viewMode: t, onViewModeChange: n, title: r = "Browse", browseHeaderRenderer: i, styles: a, query: o, onQueryChange: s, searchPlaceholder: c, searchInputRef: l, gridViewLabel: u = "Grid view", listViewLabel: d = "List view", viewToggleLabel: f = "View mode", sortKey: p, sortOptions: m, onSortChange: h, sortLabel: g = "Sort", filters: _, onFiltersChange: v, filterValues: y, isMyAppsActive: b, onMyAppsChange: x, filterFromLabel: S, filterMyAppsLabel: C, filterTopicsLabel: w, browseSettingsLabels: T }) => {
4202
- let E = ue(), D = K(null), O = K(null), k = K(null), A = K(!1), j = K(E), [M, N] = q(!1);
4203
- ge(() => {
4218
+ let E = de(), D = W(null), O = W(null), k = W(null), A = W(!1), j = W(E), [M, N] = G(!1);
4219
+ ve(() => {
4204
4220
  j.current !== E && (j.current = E, (M || A.current && document.activeElement === document.body) && (N(!1), E ? O.current?.focus() : k.current?.querySelector("[role=\"radio\"]")?.focus()));
4205
4221
  }, [E, M]);
4206
4222
  let P = (b ?? !1) || (_?.size ?? 0) > 0, F = {
@@ -4208,25 +4224,25 @@ var rn = /* @__PURE__ */ function(e) {
4208
4224
  myApps: C ?? ma.myApps,
4209
4225
  topics: w ?? ma.topics,
4210
4226
  ...T
4211
- }, I = a?.typography?.titleClassName ?? "dial-body-semi-text", ee = a?.typography?.countClassName ?? "dial-tiny-semi-text", L = G(() => [{
4227
+ }, ee = a?.typography?.titleClassName ?? "dial-body-semi-text", I = a?.typography?.countClassName ?? "dial-tiny-semi-text", L = U(() => [{
4212
4228
  value: cn.Grid,
4213
4229
  icon: /* @__PURE__ */ Z(jt, {
4214
- size: J.SM,
4230
+ size: q.SM,
4215
4231
  "aria-hidden": !0,
4216
- stroke: Y
4232
+ stroke: J
4217
4233
  }),
4218
4234
  "aria-label": u
4219
4235
  }, {
4220
4236
  value: cn.Cards,
4221
4237
  icon: /* @__PURE__ */ Z(Mt, {
4222
- size: J.SM,
4238
+ size: q.SM,
4223
4239
  "aria-hidden": !0,
4224
- stroke: Y
4240
+ stroke: J
4225
4241
  }),
4226
4242
  "aria-label": d
4227
4243
  }], [u, d]), te = (e) => {
4228
4244
  s(e ?? "");
4229
- }, ne = m?.find((e) => e.value === p)?.label ?? g, re = G(() => (m ?? []).map((e) => ({
4245
+ }, ne = m?.find((e) => e.value === p)?.label ?? g, re = U(() => (m ?? []).map((e) => ({
4230
4246
  key: e.value,
4231
4247
  label: e.label,
4232
4248
  mark: Xe.Check,
@@ -4251,8 +4267,8 @@ var rn = /* @__PURE__ */ function(e) {
4251
4267
  children: [i ?? /* @__PURE__ */ Z(ie, {
4252
4268
  title: r,
4253
4269
  postfix: e,
4254
- titleClassName: I,
4255
- postfixClassName: ee,
4270
+ titleClassName: ee,
4271
+ postfixClassName: I,
4256
4272
  className: "shrink-0",
4257
4273
  shouldTruncateTitle: !1,
4258
4274
  colors: {
@@ -4267,11 +4283,11 @@ var rn = /* @__PURE__ */ function(e) {
4267
4283
  value: t,
4268
4284
  onChange: n,
4269
4285
  items: L
4270
- }), m != null && m.length > 0 && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", { className: V("h-4 w-px shrink-0", xa.divider) }), /* @__PURE__ */ Z(Se, {
4286
+ }), m != null && m.length > 0 && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", { className: B("h-4 w-px shrink-0", xa.divider) }), /* @__PURE__ */ Z(Ce, {
4271
4287
  items: re,
4272
4288
  label: ne,
4273
- variant: Ce.Primary,
4274
- appearance: xe.Ghost
4289
+ variant: we.Primary,
4290
+ appearance: Se.Ghost
4275
4291
  })] })]
4276
4292
  })]
4277
4293
  }), /* @__PURE__ */ Q("div", {
@@ -4282,7 +4298,7 @@ var rn = /* @__PURE__ */ function(e) {
4282
4298
  children: /* @__PURE__ */ Z(at, {
4283
4299
  value: o,
4284
4300
  onChange: te,
4285
- size: Me.Large,
4301
+ size: Y.Large,
4286
4302
  wrapperClassName: xa.searchField,
4287
4303
  placeholder: c,
4288
4304
  "aria-label": c,
@@ -4292,18 +4308,18 @@ var rn = /* @__PURE__ */ function(e) {
4292
4308
  className: "relative shrink-0",
4293
4309
  children: [/* @__PURE__ */ Z(ze, {
4294
4310
  ref: O,
4295
- size: Me.Large,
4311
+ size: Y.Large,
4296
4312
  "aria-label": F.title,
4297
4313
  "aria-haspopup": "dialog",
4298
4314
  "aria-expanded": M,
4299
4315
  onClick: () => N(!0),
4300
4316
  icon: /* @__PURE__ */ Z(ht, {
4301
- size: J.LG,
4302
- stroke: Y,
4317
+ size: q.LG,
4318
+ stroke: J,
4303
4319
  "aria-hidden": !0
4304
4320
  })
4305
4321
  }), P && /* @__PURE__ */ Z("span", {
4306
- className: V("pointer-events-none absolute inset-e-2.5 top-2.5 size-2 rounded-full", xa.settingsDot),
4322
+ className: B("pointer-events-none absolute inset-e-2.5 top-2.5 size-2 rounded-full", xa.settingsDot),
4307
4323
  "aria-hidden": !0
4308
4324
  })]
4309
4325
  }), /* @__PURE__ */ Z(ba, {
@@ -4342,7 +4358,7 @@ var rn = /* @__PURE__ */ function(e) {
4342
4358
  "--cat-browse-settings-dot": r?.colors?.settingsActiveDot
4343
4359
  };
4344
4360
  return /* @__PURE__ */ Z("section", {
4345
- className: V("shrink-0 px-4", xa.section, mn.toolbar),
4361
+ className: B("shrink-0 px-4", xa.section, mn.toolbar),
4346
4362
  style: b,
4347
4363
  children: /* @__PURE__ */ Z(Ca, {
4348
4364
  styles: r,
@@ -4371,8 +4387,8 @@ var rn = /* @__PURE__ */ function(e) {
4371
4387
  root: "_root_1h83l_1",
4372
4388
  heading: "_heading_1h83l_5",
4373
4389
  headingTitle: "_headingTitle_1h83l_9"
4374
- }, Ea = 3, Da = 300, Oa = ({ items: e, tabs: t, topicOptions: n, favorites: i, titles: a, browseHeaderRenderer: s, onToggleFavorite: c, isFavoriteVisible: l, columnVisibility: u, onUseInChat: d, isPrimaryActionVisible: m, onShare: v, isPublishVisible: y, isPublishPrimary: b, getPublishHistory: x, getPublishDependencies: C, resolvePublishDependenciesLabels: w, resolvePublishApprovalLabels: T, publishFolderItems: E, publishExpandedPaths: O, onPublishExpandedPathsChange: k, publishLoadingPaths: A, hasPublishWriteAccess: P, publishDefaultAuthor: F, onPublish: I, onPublishSuccess: ee, onPublishError: L, onCreatePublishFolder: te, publishLabels: ne, ruleSourceOptions: re, onFetchExistingRules: ie, shareOverlay: ae, isShareVisible: R, isSharePrimary: oe, onFetchDetails: z, renderCredentials: se, onEdit: ce, onDownload: B, isDownloadVisible: le, isDownloadPrimary: de, onLoadContentFile: fe, onLoadContentFilePreview: pe, renderContentFilePreview: he, renderContentFileTree: W, onDelete: ge, onUnshare: _e, isUnshareVisible: ve, onRevokeShare: ye, onFetchRecipientsCount: be, isRevokeShareVisible: xe, onUnpublish: Se, isUnpublishVisible: Ce, onLogin: we, onLogout: Te, onCreateClick: Ee, createOptions: De, createSearch: J, createMenuByTab: Y, hideCreateButton: Oe = !1, hidePageTitle: ke = !1, isReadonly: Ae = !1, initialViewMode: je = cn.Grid, isFullWidth: Me = !1, isFavoritesPaginationHidden: Ne = !1, selectedItemId: Pe, onCardClick: Fe, isLoading: Ie, styles: Le, detailsTexts: Re, detailsLimitsFooterNote: ze, initialDetailsItemId: Be, sortKey: Ve, onSortChange: He, filterTopics: Ue, onFilterTopicsChange: We, isMyAppsActive: Ge, onMyAppsActiveChange: Ke, activeTab: qe, onActiveTabChange: Je, renderEmptyState: Ye }) => {
4375
- let { typography: Xe, headingRowClassName: Ze = "h-[64px]" } = Le ?? {}, Qe = Sn(Le), $e = ue(), et = a?.pageTitle ?? "Catalog", tt = a?.createLabel ?? "Create", nt = a?.favoritesTitle ?? "Your favorites", rt = a?.browseTitle ?? "Browse", it = a?.searchPlaceholder ?? "Search models, tools, agents…", at = a?.noResultsTitle ?? (() => "No items found"), ot = a?.myAppsEmptyTitle ?? (() => "No personal items yet"), st = a?.myAppsEmptyDescription ?? "Create your first one, it'll show up right here.", ct = a?.featuredLabel ?? "Featured", lt = a?.gridViewLabel ?? "Grid view", ft = a?.listViewLabel ?? "List view", pt = a?.viewToggleLabel ?? "View mode", mt = a?.ariaLabel ?? "Catalog", ht = a?.scrollToTopLabel ?? "Scroll to top", gt = a?.sortLabel ?? "Sort", _t = [
4390
+ }, Ea = 3, Da = 300, Oa = ({ items: e, tabs: t, topicOptions: n, favorites: i, titles: a, browseHeaderRenderer: s, onToggleFavorite: c, isFavoriteVisible: l, columnVisibility: u, onUseInChat: d, isPrimaryActionVisible: m, onShare: v, isPublishVisible: y, isPublishPrimary: b, getPublishHistory: x, getPublishDependencies: C, resolvePublishDependenciesLabels: w, resolvePublishApprovalLabels: T, publishVersionHistory: E, onPublishOpenChange: O, publishFolderItems: k, publishExpandedPaths: A, onPublishExpandedPathsChange: P, publishLoadingPaths: F, hasPublishWriteAccess: ee, publishDefaultAuthor: I, onPublish: L, onPublishSuccess: te, onPublishError: ne, onCreatePublishFolder: re, publishLabels: ie, ruleSourceOptions: ae, onFetchExistingRules: R, shareOverlay: oe, isShareVisible: se, isSharePrimary: ce, onFetchDetails: le, renderCredentials: z, onEdit: ue, onDownload: fe, isDownloadVisible: pe, isDownloadPrimary: me, onLoadContentFile: ge, onLoadContentFilePreview: _e, renderContentFilePreview: ve, renderContentFileTree: K, onDelete: ye, onUnshare: be, isUnshareVisible: xe, onRevokeShare: Se, onFetchRecipientsCount: Ce, isRevokeShareVisible: we, onUnpublish: Te, isUnpublishVisible: Ee, onLogin: De, onLogout: Oe, onCreateClick: q, createOptions: J, createSearch: ke, createMenuByTab: Ae, hideCreateButton: je = !1, hidePageTitle: Me = !1, isReadonly: Y = !1, initialViewMode: Ne = cn.Grid, isFullWidth: Pe = !1, isFavoritesPaginationHidden: Fe = !1, selectedItemId: Ie, onCardClick: Le, isLoading: Re, styles: ze, detailsTexts: Be, detailsLimitsFooterNote: Ve, initialDetailsItemId: He, sortKey: Ue, onSortChange: We, filterTopics: Ge, onFilterTopicsChange: Ke, isMyAppsActive: qe, onMyAppsActiveChange: Je, activeTab: Ye, onActiveTabChange: Xe, renderEmptyState: Ze }) => {
4391
+ let { typography: Qe, headingRowClassName: $e = "h-[64px]" } = ze ?? {}, et = Sn(ze), tt = de(), nt = a?.pageTitle ?? "Catalog", rt = a?.createLabel ?? "Create", it = a?.favoritesTitle ?? "Your favorites", at = a?.browseTitle ?? "Browse", ot = a?.searchPlaceholder ?? "Search models, tools, agents…", st = a?.noResultsTitle ?? (() => "No items found"), ct = a?.myAppsEmptyTitle ?? (() => "No personal items yet"), lt = a?.myAppsEmptyDescription ?? "Create your first one, it'll show up right here.", ft = a?.featuredLabel ?? "Featured", pt = a?.gridViewLabel ?? "Grid view", mt = a?.listViewLabel ?? "List view", ht = a?.viewToggleLabel ?? "View mode", gt = a?.ariaLabel ?? "Catalog", _t = a?.scrollToTopLabel ?? "Scroll to top", vt = a?.sortLabel ?? "Sort", yt = [
4376
4392
  {
4377
4393
  value: o.RecentlyUpdated,
4378
4394
  label: a?.sortRecentlyUpdatedLabel ?? "Recently Updated"
@@ -4385,103 +4401,103 @@ var rn = /* @__PURE__ */ function(e) {
4385
4401
  value: o.NameAZ,
4386
4402
  label: a?.sortNameAZLabel ?? "Name A-Z"
4387
4403
  }
4388
- ], [vt, yt] = q(""), [bt, xt] = q(je), [St, Ct] = q(je === cn.Cards ? "shown" : "unmounted"), [wt, Tt] = q(o.RecentlyUpdated), [Et, Dt] = q(/* @__PURE__ */ new Set()), [Ot, kt] = q(!1), At = Ve ?? wt, jt = Ue ?? Et, Mt = Ge ?? Ot, Nt = H((e) => {
4404
+ ], [bt, xt] = G(""), [St, Ct] = G(Ne), [wt, Tt] = G(Ne === cn.Cards ? "shown" : "unmounted"), [Et, Dt] = G(o.RecentlyUpdated), [Ot, kt] = G(/* @__PURE__ */ new Set()), [At, jt] = G(!1), Mt = Ue ?? Et, Nt = Ge ?? Ot, Pt = qe ?? At, Ft = V((e) => {
4389
4405
  let t = e;
4390
- Tt(t), He?.(t);
4391
- }, [He]), Pt = H((e) => {
4392
- Dt(e), We?.(e);
4393
- }, [We]), Ft = H((e) => {
4406
+ Dt(t), We?.(t);
4407
+ }, [We]), It = V((e) => {
4394
4408
  kt(e), Ke?.(e);
4395
- }, [Ke]), It = G(() => e.filter((e) => !e.isHidden), [e]), Lt = G(() => i.filter((e) => !e.isHidden), [i]), Rt = G(() => n ?? j(It), [n, It]), zt = G(() => t ?? h(It, a?.tabLabels), [
4409
+ }, [Ke]), Lt = V((e) => {
4410
+ jt(e), Je?.(e);
4411
+ }, [Je]), Rt = U(() => e.filter((e) => !e.isHidden), [e]), zt = U(() => i.filter((e) => !e.isHidden), [i]), Bt = U(() => n ?? j(Rt), [n, Rt]), Vt = U(() => t ?? h(Rt, a?.tabLabels), [
4396
4412
  t,
4397
- It,
4413
+ Rt,
4398
4414
  a?.tabLabels
4399
- ]), Bt = zt[0]?.id ?? "", [Vt, Ht] = q(Bt);
4400
- U(() => {
4401
- Ht((e) => e || Bt);
4402
- }, [Bt]);
4403
- let Ut = qe ?? Vt, Wt = K(null);
4404
- U(() => {
4405
- Wt.current != null && g(Wt.current);
4406
- }, [Ut, zt.length]);
4407
- let Gt = H((e) => {
4408
- Ht(e), Je?.(e);
4409
- }, [Je]), [Kt, qt] = q(Lt.length > 0);
4410
- U(() => {
4411
- Lt.length > 0 && !Kt && qt(!0);
4412
- }, [Lt.length, Kt]);
4413
- let Jt = H(() => {
4414
- qt(!1);
4415
- }, []), Yt = Kt && Lt.length === 0, [Xt, Zt] = q(null), [Qt, $t] = q(!1), [en, tn] = q(void 0), [nn, rn] = q(!1), an = K(null);
4416
- U(() => () => {
4417
- an.current !== null && clearTimeout(an.current);
4415
+ ]), Ht = Vt[0]?.id ?? "", [Ut, Wt] = G(Ht);
4416
+ H(() => {
4417
+ Wt((e) => e || Ht);
4418
+ }, [Ht]);
4419
+ let Gt = Ye ?? Ut, Kt = W(null);
4420
+ H(() => {
4421
+ Kt.current != null && g(Kt.current);
4422
+ }, [Gt, Vt.length]);
4423
+ let qt = V((e) => {
4424
+ Wt(e), Xe?.(e);
4425
+ }, [Xe]), [Jt, Yt] = G(zt.length > 0);
4426
+ H(() => {
4427
+ zt.length > 0 && !Jt && Yt(!0);
4428
+ }, [zt.length, Jt]);
4429
+ let Xt = V(() => {
4430
+ Yt(!1);
4431
+ }, []), Zt = Jt && zt.length === 0, [Qt, $t] = G(null), [en, tn] = G(!1), [nn, rn] = G(void 0), [an, on] = G(!1), $ = W(null);
4432
+ H(() => () => {
4433
+ $.current !== null && clearTimeout($.current);
4418
4434
  }, []);
4419
- let on = K(null), $ = K(0), sn = H(async (e) => {
4420
- on.current = e.id;
4421
- let t = ++$.current;
4422
- if (z) {
4423
- rn(!0);
4435
+ let sn = W(null), ln = W(0), un = V(async (e) => {
4436
+ sn.current = e.id;
4437
+ let t = ++ln.current;
4438
+ if (le) {
4439
+ on(!0);
4424
4440
  try {
4425
- let n = await z(e);
4426
- return $.current === t && tn(n), n;
4441
+ let n = await le(e);
4442
+ return ln.current === t && rn(n), n;
4427
4443
  } finally {
4428
- $.current === t && rn(!1);
4444
+ ln.current === t && on(!1);
4429
4445
  }
4430
4446
  }
4431
- }, [z]), ln = H(async (e) => (an.current !== null && (clearTimeout(an.current), an.current = null, $t(!0)), Zt(e), tn(void 0), sn(e)), [sn]), un = H(async (e, t) => {
4447
+ }, [le]), dn = V(async (e) => ($.current !== null && (clearTimeout($.current), $.current = null, tn(!0)), $t(e), rn(void 0), un(e)), [un]), fn = V(async (e, t) => {
4432
4448
  for (let n = 0; n < Ea; n++) {
4433
- if (on.current !== e.id || t(await sn(e))) return;
4449
+ if (sn.current !== e.id || t(await un(e))) return;
4434
4450
  n < 2 && await p(Da);
4435
4451
  }
4436
- }, [sn]), dn = K(null);
4437
- U(() => {
4438
- if (!Be) {
4439
- dn.current = null;
4452
+ }, [un]), pn = W(null);
4453
+ H(() => {
4454
+ if (!He) {
4455
+ pn.current = null;
4440
4456
  return;
4441
4457
  }
4442
- if (dn.current === Be) return;
4443
- let t = e.find((e) => e.id === Be);
4444
- t && (dn.current = Be, ln(t));
4458
+ if (pn.current === He) return;
4459
+ let t = e.find((e) => e.id === He);
4460
+ t && (pn.current = He, dn(t));
4445
4461
  }, [
4446
- Be,
4462
+ He,
4447
4463
  e,
4448
- ln
4449
- ]), U(() => {
4450
- if (Xt == null) return;
4451
- let t = e.find((e) => e.id === Xt.id);
4452
- t && t !== Xt && Zt(t);
4453
- }, [e, Xt]);
4454
- let fn = H(async (e, t) => {
4455
- await we?.(e, t), z && await un(e, (e) => D(e?.credentials, t.level));
4464
+ dn
4465
+ ]), H(() => {
4466
+ if (Qt == null) return;
4467
+ let t = e.find((e) => e.id === Qt.id);
4468
+ t && t !== Qt && $t(t);
4469
+ }, [e, Qt]);
4470
+ let hn = V(async (e, t) => {
4471
+ await De?.(e, t), le && await fn(e, (e) => D(e?.credentials, t.level));
4456
4472
  }, [
4457
- we,
4458
- z,
4459
- un
4460
- ]), pn = H(async (e, t) => {
4461
- await Te?.(e, t), z && await un(e, (e) => !D(e?.credentials, t.level));
4473
+ De,
4474
+ le,
4475
+ fn
4476
+ ]), gn = V(async (e, t) => {
4477
+ await Oe?.(e, t), le && await fn(e, (e) => !D(e?.credentials, t.level));
4462
4478
  }, [
4463
- Te,
4464
- z,
4465
- un
4466
- ]), hn = H(() => {
4467
- $t(!1), on.current = null, $.current += 1, an.current !== null && clearTimeout(an.current), an.current = setTimeout(() => {
4468
- an.current = null, Zt(null), tn(void 0), rn(!1);
4479
+ Oe,
4480
+ le,
4481
+ fn
4482
+ ]), vn = V(() => {
4483
+ tn(!1), sn.current = null, ln.current += 1, $.current !== null && clearTimeout($.current), $.current = setTimeout(() => {
4484
+ $.current = null, $t(null), rn(void 0), on(!1);
4469
4485
  }, 300);
4470
- }, []), gn = G(() => {
4471
- if (Xt == null) return null;
4472
- if (en == null) return Xt;
4473
- let { credentials: e, ...t } = en;
4486
+ }, []), yn = U(() => {
4487
+ if (Qt == null) return null;
4488
+ if (nn == null) return Qt;
4489
+ let { credentials: e, ...t } = nn;
4474
4490
  return {
4475
- ...Xt,
4491
+ ...Qt,
4476
4492
  details: t,
4477
- credentials: e ?? Xt.credentials
4493
+ credentials: e ?? Qt.credentials
4478
4494
  };
4479
- }, [Xt, en]), vn = G(() => r(It, At), [It, At]), yn = G(() => M(vn, vt), [vn, vt]), Cn = G(() => jt.size > 0 ? f(yn, jt) : yn, [yn, jt]), wn = G(() => Mt ? N(Cn) : Cn, [Cn, Mt]), Tn = G(() => Ut ? wn.filter((e) => S(e).includes(Ut)) : wn, [wn, Ut]);
4480
- U(() => {
4481
- if (St !== "unmounted" || Ie || Tn.length === 0) return;
4495
+ }, [Qt, nn]), Cn = U(() => r(Rt, Mt), [Rt, Mt]), wn = U(() => M(Cn, bt), [Cn, bt]), Tn = U(() => Nt.size > 0 ? f(wn, Nt) : wn, [wn, Nt]), En = U(() => Pt ? N(Tn) : Tn, [Tn, Pt]), Dn = U(() => Gt ? En.filter((e) => S(e).includes(Gt)) : En, [En, Gt]);
4496
+ H(() => {
4497
+ if (wt !== "unmounted" || Re || Dn.length === 0) return;
4482
4498
  let e = () => {
4483
- me(() => {
4484
- Ct((e) => e === "unmounted" ? "prepared" : e);
4499
+ he(() => {
4500
+ Tt((e) => e === "unmounted" ? "prepared" : e);
4485
4501
  });
4486
4502
  };
4487
4503
  if (typeof window.requestIdleCallback == "function") {
@@ -4491,224 +4507,224 @@ var rn = /* @__PURE__ */ function(e) {
4491
4507
  let t = window.setTimeout(e, 200);
4492
4508
  return () => window.clearTimeout(t);
4493
4509
  }, [
4494
- St,
4495
- Ie,
4496
- Tn.length
4510
+ wt,
4511
+ Re,
4512
+ Dn.length
4497
4513
  ]);
4498
- let En = Xt != null && Lt.some((e) => e.id === Xt.id);
4499
- U(() => {
4500
- if (Xt == null) return;
4501
- let e = requestAnimationFrame(() => $t(!0));
4514
+ let On = Qt != null && zt.some((e) => e.id === Qt.id);
4515
+ H(() => {
4516
+ if (Qt == null) return;
4517
+ let e = requestAnimationFrame(() => tn(!0));
4502
4518
  return () => cancelAnimationFrame(e);
4503
- }, [Xt]);
4504
- let Dn = H((e) => {
4505
- e === cn.Cards && Ct("shown"), xt(e);
4506
- }, []), On = !Oe && !Ae, kn = On && $e, [An, jn] = q(null), Mn = K(null), Nn = K(null), { isVisible: Pn, handleRowsScroll: Fn, scrollToTop: In } = _n({
4507
- scrollBody: An,
4508
- searchInputRef: Mn,
4509
- listViewRef: Nn,
4510
- isListView: bt === cn.Cards
4511
- }), Ln = Kt && !Ae, Rn = vt !== "" || jt.size > 0, zn = Rn ? at(vt, Ut) : _(a?.emptyTitle, Ut) ?? "No items yet", Bn = Rn ? a?.noResultsDescription ?? "Try a different search term or check your filters." : _(a?.emptyDescription, Ut), { copyCodeAriaLabel: Vn, copiedCodeStatusLabel: Hn, downloadCodeAriaLabel: Un, tableScrollRegionAriaLabel: Wn, mathScrollRegionAriaLabel: Gn } = Re ?? {}, qn = G(() => xn({
4512
- copyCodeAriaLabel: Vn,
4513
- copiedCodeStatusLabel: Hn,
4514
- downloadCodeAriaLabel: Un,
4515
- tableScrollRegionAriaLabel: Wn,
4516
- mathScrollRegionAriaLabel: Gn
4519
+ }, [Qt]);
4520
+ let kn = V((e) => {
4521
+ e === cn.Cards && Tt("shown"), Ct(e);
4522
+ }, []), An = !je && !Y, jn = An && tt, [Mn, Nn] = G(null), Pn = W(null), Fn = W(null), { isVisible: In, handleRowsScroll: Ln, scrollToTop: Rn } = _n({
4523
+ scrollBody: Mn,
4524
+ searchInputRef: Pn,
4525
+ listViewRef: Fn,
4526
+ isListView: St === cn.Cards
4527
+ }), zn = Jt && !Y, Bn = bt !== "" || Nt.size > 0, Vn = Bn ? st(bt, Gt) : _(a?.emptyTitle, Gt) ?? "No items yet", Hn = Bn ? a?.noResultsDescription ?? "Try a different search term or check your filters." : _(a?.emptyDescription, Gt), { copyCodeAriaLabel: Un, copiedCodeStatusLabel: Wn, downloadCodeAriaLabel: Gn, tableScrollRegionAriaLabel: qn, mathScrollRegionAriaLabel: Jn } = Be ?? {}, Yn = U(() => xn({
4528
+ copyCodeAriaLabel: Un,
4529
+ copiedCodeStatusLabel: Wn,
4530
+ downloadCodeAriaLabel: Gn,
4531
+ tableScrollRegionAriaLabel: qn,
4532
+ mathScrollRegionAriaLabel: Jn
4517
4533
  }), [
4518
- Vn,
4519
- Hn,
4520
4534
  Un,
4521
4535
  Wn,
4522
- Gn
4523
- ]), Jn = G(() => ({
4524
- noResultsTitle: zn,
4525
- noResultsDescription: Bn,
4526
- featuredLabel: ct,
4536
+ Gn,
4537
+ qn,
4538
+ Jn
4539
+ ]), Xn = U(() => ({
4540
+ noResultsTitle: Vn,
4541
+ noResultsDescription: Hn,
4542
+ featuredLabel: ft,
4527
4543
  noFolderLabel: a?.noFolderLabel,
4528
- credentialsBadgeLoggedOutLabel: Re?.credentialsBadgeLoggedOutLabel
4544
+ credentialsBadgeLoggedOutLabel: Be?.credentialsBadgeLoggedOutLabel
4529
4545
  }), [
4530
- zn,
4531
- Bn,
4532
- ct,
4546
+ Vn,
4547
+ Hn,
4548
+ ft,
4533
4549
  a?.noFolderLabel,
4534
- Re?.credentialsBadgeLoggedOutLabel
4535
- ]), Yn = !Ie && Tn.length === 0, Xn = Yn ? Ye?.({
4536
- query: vt,
4537
- activeTab: Ut,
4538
- hasTopicFilters: jt.size > 0,
4539
- isMyAppsActive: Mt
4540
- }) : void 0, Zn = Yn && Mt && !vt && jt.size === 0 && (Y == null || Y[Ut] != null), Qn = {
4541
- label: tt,
4542
- options: De,
4543
- onClick: Ee,
4544
- search: J,
4550
+ Be?.credentialsBadgeLoggedOutLabel
4551
+ ]), Zn = !Re && Dn.length === 0, Qn = Zn ? Ze?.({
4552
+ query: bt,
4553
+ activeTab: Gt,
4554
+ hasTopicFilters: Nt.size > 0,
4555
+ isMyAppsActive: Pt
4556
+ }) : void 0, $n = Zn && Pt && !bt && Nt.size === 0 && (Ae == null || Ae[Gt] != null), er = {
4557
+ label: rt,
4558
+ options: J,
4559
+ onClick: q,
4560
+ search: ke,
4545
4561
  searchPlaceholder: a?.createSearchPlaceholder,
4546
4562
  searchClearLabel: a?.createSearchClearLabel,
4547
4563
  noResultsLabel: a?.createNoResultsLabel,
4548
4564
  backLabel: a?.createMenuBackLabel,
4549
4565
  closeLabel: a?.createMenuCloseLabel,
4550
- colors: Le?.colors?.createMenu,
4551
- sectionHeaderClassName: Xe?.createMenuSectionHeaderClassName
4552
- }, $n = Y ? bn(Y[Ut]) : Qn, er = On && $n != null ? {
4553
- ...Qn,
4554
- ...$n
4566
+ colors: ze?.colors?.createMenu,
4567
+ sectionHeaderClassName: Qe?.createMenuSectionHeaderClassName
4568
+ }, tr = Ae ? bn(Ae[Gt]) : er, nr = An && tr != null ? {
4569
+ ...er,
4570
+ ...tr
4555
4571
  } : void 0;
4556
- return Ie ? /* @__PURE__ */ Z("div", {
4572
+ return Re ? /* @__PURE__ */ Z("div", {
4557
4573
  className: "flex size-full min-h-0 flex-1 items-center justify-center",
4558
4574
  children: /* @__PURE__ */ Z(ut, { ariaLabel: a?.loadingLabel ?? "Loading…" })
4559
4575
  }) : /* @__PURE__ */ Q("section", {
4560
- "aria-label": mt,
4561
- className: V("relative flex size-full min-h-0 flex-1 flex-col", Ta.root, mn.root),
4562
- style: Qe,
4576
+ "aria-label": gt,
4577
+ className: B("relative flex size-full min-h-0 flex-1 flex-col", Ta.root, mn.root),
4578
+ style: et,
4563
4579
  children: [
4564
- (!ke || On) && /* @__PURE__ */ Z("div", {
4565
- className: V("shrink-0", Ta.heading),
4580
+ (!Me || An) && /* @__PURE__ */ Z("div", {
4581
+ className: B("shrink-0", Ta.heading),
4566
4582
  children: /* @__PURE__ */ Q("div", {
4567
- className: V("flex w-full items-center justify-between px-4 desktop:px-8", !(ke && kn) && Ze),
4568
- children: [!ke && /* @__PURE__ */ Z("h1", {
4569
- className: V(Xe?.pageHeadingFontClassName ?? "dial-display2-text", Ta.headingTitle),
4570
- children: et
4571
- }), On && /* @__PURE__ */ Z("div", {
4572
- className: kn ? "absolute inset-e-4 bottom-4 z-10" : void 0,
4583
+ className: B("flex w-full items-center justify-between px-4 desktop:px-8", !(Me && jn) && $e),
4584
+ children: [!Me && /* @__PURE__ */ Z("h1", {
4585
+ className: B(Qe?.pageHeadingFontClassName ?? "dial-display2-text", Ta.headingTitle),
4586
+ children: nt
4587
+ }), An && /* @__PURE__ */ Z("div", {
4588
+ className: jn ? "absolute inset-e-4 bottom-4 z-10" : void 0,
4573
4589
  children: /* @__PURE__ */ Z(da, {
4574
- ...Qn,
4575
- isFloating: kn
4590
+ ...er,
4591
+ isFloating: jn
4576
4592
  })
4577
4593
  })]
4578
4594
  })
4579
4595
  }),
4580
- Pn && /* @__PURE__ */ Z("div", {
4581
- className: V("absolute inset-e-4 z-10", kn ? "bottom-20" : "bottom-4"),
4596
+ In && /* @__PURE__ */ Z("div", {
4597
+ className: B("absolute inset-e-4 z-10", jn ? "bottom-20" : "bottom-4"),
4582
4598
  children: /* @__PURE__ */ Z(pa, {
4583
- label: ht,
4584
- onClick: In
4599
+ label: _t,
4600
+ onClick: Rn
4585
4601
  })
4586
4602
  }),
4587
4603
  /* @__PURE__ */ Q("div", {
4588
- ref: jn,
4589
- className: V("relative flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden overflow-y-auto", kn && "pb-16"),
4604
+ ref: Nn,
4605
+ className: B("relative flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden overflow-y-auto", jn && "pb-16"),
4590
4606
  children: [
4591
- Ln && /* @__PURE__ */ Z("div", {
4607
+ zn && /* @__PURE__ */ Z("div", {
4592
4608
  className: "w-full px-4 desktop:px-8",
4593
4609
  children: /* @__PURE__ */ Z(Ri, {
4594
- items: Lt,
4595
- totalCount: Lt.length,
4596
- title: nt,
4610
+ items: zt,
4611
+ totalCount: zt.length,
4612
+ title: it,
4597
4613
  onToggleFavorite: c,
4598
4614
  isFavoriteVisible: l,
4599
- onItemClick: Fe ?? ln,
4600
- isLeaving: Yt,
4601
- onExitComplete: Jt,
4602
- selectedItemId: Pe,
4603
- credentialsBadgeLoggedOutLabel: Re?.credentialsBadgeLoggedOutLabel,
4604
- isPaginationHidden: Ne
4615
+ onItemClick: Le ?? dn,
4616
+ isLeaving: Zt,
4617
+ onExitComplete: Xt,
4618
+ selectedItemId: Ie,
4619
+ credentialsBadgeLoggedOutLabel: Be?.credentialsBadgeLoggedOutLabel,
4620
+ isPaginationHidden: Fe
4605
4621
  })
4606
4622
  }),
4607
4623
  /* @__PURE__ */ Z("div", {
4608
4624
  className: "w-full pt-6 desktop:px-4",
4609
4625
  children: /* @__PURE__ */ Z(wa, {
4610
- totalCount: wn.length,
4611
- viewMode: bt,
4612
- onViewModeChange: Dn,
4613
- sortKey: At,
4614
- query: vt,
4615
- onQueryChange: yt,
4616
- searchInputRef: Mn,
4617
- title: rt,
4626
+ totalCount: En.length,
4627
+ viewMode: St,
4628
+ onViewModeChange: kn,
4629
+ sortKey: Mt,
4630
+ query: bt,
4631
+ onQueryChange: xt,
4632
+ searchInputRef: Pn,
4633
+ title: at,
4618
4634
  browseHeaderRenderer: s,
4619
- searchPlaceholder: it,
4620
- gridViewLabel: lt,
4621
- listViewLabel: ft,
4622
- viewToggleLabel: pt,
4623
- sortOptions: _t,
4624
- onSortChange: Nt,
4625
- sortLabel: gt,
4626
- filters: jt,
4627
- onFiltersChange: Pt,
4628
- filterValues: Rt,
4629
- isMyAppsActive: Mt,
4630
- onMyAppsChange: Ft,
4635
+ searchPlaceholder: ot,
4636
+ gridViewLabel: pt,
4637
+ listViewLabel: mt,
4638
+ viewToggleLabel: ht,
4639
+ sortOptions: yt,
4640
+ onSortChange: Ft,
4641
+ sortLabel: vt,
4642
+ filters: Nt,
4643
+ onFiltersChange: It,
4644
+ filterValues: Bt,
4645
+ isMyAppsActive: Pt,
4646
+ onMyAppsChange: Lt,
4631
4647
  filterFromLabel: a?.filterFromLabel,
4632
4648
  filterMyAppsLabel: a?.filterMyAppsLabel,
4633
4649
  filterTopicsLabel: a?.filterTopicsLabel,
4634
4650
  browseSettingsLabels: a?.browseSettings
4635
4651
  })
4636
4652
  }),
4637
- zt.length > 1 && /* @__PURE__ */ Z("div", {
4638
- ref: Wt,
4653
+ Vt.length > 1 && /* @__PURE__ */ Z("div", {
4654
+ ref: Kt,
4639
4655
  className: "mx-4 min-w-0 shrink-0 scrollbar-none overflow-x-auto desktop:mx-8",
4640
4656
  children: /* @__PURE__ */ Z(dt, {
4641
4657
  tabListClassName: "w-max min-w-full",
4642
4658
  tabClassName: "shrink-0 whitespace-nowrap",
4643
- tabs: zt.map((e) => ({
4659
+ tabs: Vt.map((e) => ({
4644
4660
  id: e.id,
4645
4661
  label: typeof e.label == "string" ? e.label : String(e.label),
4646
- count: wn.filter((t) => S(t).includes(e.id)).length
4662
+ count: En.filter((t) => S(t).includes(e.id)).length
4647
4663
  })),
4648
- activeTabId: Ut,
4649
- onTabChange: Gt
4664
+ activeTabId: Gt,
4665
+ onTabChange: qt
4650
4666
  })
4651
4667
  }),
4652
4668
  /* @__PURE__ */ Q("div", {
4653
- className: V(Tn.length > 0 ? ["w-full flex-1 px-4 py-6 desktop:px-8", !Me && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", Tn.length === 0 && "px-4 py-6 desktop:px-8"),
4669
+ className: B(Dn.length > 0 ? ["w-full flex-1 px-4 py-6 desktop:px-8", !Pe && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", Dn.length === 0 && "px-4 py-6 desktop:px-8"),
4654
4670
  children: [
4655
- Xn != null && Xn,
4656
- Xn == null && Zn && /* @__PURE__ */ Z(fa, {
4657
- title: ot(Ut),
4658
- description: st,
4659
- createButton: er
4671
+ Qn != null && Qn,
4672
+ Qn == null && $n && /* @__PURE__ */ Z(fa, {
4673
+ title: ct(Gt),
4674
+ description: lt,
4675
+ createButton: nr
4660
4676
  }),
4661
- Xn == null && !Zn && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", {
4662
- inert: bt !== cn.Grid,
4663
- className: V(Tn.length > 0 ? "pb-8" : "size-full flex-1", bt !== cn.Grid && "hidden"),
4677
+ Qn == null && !$n && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", {
4678
+ inert: St !== cn.Grid,
4679
+ className: B(Dn.length > 0 ? "pb-8" : "size-full flex-1", St !== cn.Grid && "hidden"),
4664
4680
  children: /* @__PURE__ */ Z(Kn, {
4665
- items: Tn,
4666
- query: vt,
4681
+ items: Dn,
4682
+ query: bt,
4667
4683
  onToggleFavorite: c,
4668
4684
  isFavoriteVisible: l,
4669
- onItemClick: Fe ?? ln,
4670
- titles: Jn,
4671
- selectedItemId: Pe,
4672
- isReadonly: Ae,
4673
- isFullWidth: Me,
4674
- featuredChipStyle: Le?.colors?.featuredChipStyle,
4675
- markdownLabels: qn,
4676
- activeTab: Ut
4685
+ onItemClick: Le ?? dn,
4686
+ titles: Xn,
4687
+ selectedItemId: Ie,
4688
+ isReadonly: Y,
4689
+ isFullWidth: Pe,
4690
+ featuredChipStyle: ze?.colors?.featuredChipStyle,
4691
+ markdownLabels: Yn,
4692
+ activeTab: Gt
4677
4693
  })
4678
- }), St !== "unmounted" && /* @__PURE__ */ Z("div", {
4679
- inert: bt !== cn.Cards,
4680
- className: V(bt === cn.Cards && "h-full min-h-[360px] pb-8", bt !== cn.Cards && (St === "prepared" ? "invisible h-0 overflow-hidden" : "hidden")),
4694
+ }), wt !== "unmounted" && /* @__PURE__ */ Z("div", {
4695
+ inert: St !== cn.Cards,
4696
+ className: B(St === cn.Cards && "h-full min-h-[360px] pb-8", St !== cn.Cards && (wt === "prepared" ? "invisible h-0 overflow-hidden" : "hidden")),
4681
4697
  children: /* @__PURE__ */ Z(sa, {
4682
- ref: Nn,
4683
- onRowsScroll: Fn,
4684
- type: Ut,
4685
- items: Tn,
4686
- query: vt,
4687
- ariaLabel: mt,
4688
- emptyStateTitle: zn,
4689
- emptyStateDescription: Bn,
4690
- isEmptyStateLive: Rn,
4698
+ ref: Fn,
4699
+ onRowsScroll: Ln,
4700
+ type: Gt,
4701
+ items: Dn,
4702
+ query: bt,
4703
+ ariaLabel: gt,
4704
+ emptyStateTitle: Vn,
4705
+ emptyStateDescription: Hn,
4706
+ isEmptyStateLive: Bn,
4691
4707
  onToggleFavorite: c,
4692
4708
  isFavoriteVisible: l,
4693
4709
  columnVisibility: u,
4694
- onItemClick: Fe ?? ln,
4695
- selectedItemId: Pe,
4696
- credentialsBadgeLoggedOutLabel: Re?.credentialsBadgeLoggedOutLabel,
4697
- isReadonly: Ae
4710
+ onItemClick: Le ?? dn,
4711
+ selectedItemId: Ie,
4712
+ credentialsBadgeLoggedOutLabel: Be?.credentialsBadgeLoggedOutLabel,
4713
+ isReadonly: Y
4698
4714
  })
4699
4715
  })] })
4700
4716
  ]
4701
4717
  })
4702
4718
  ]
4703
4719
  }),
4704
- gn != null && /* @__PURE__ */ Z(Ai, {
4705
- renderCredentials: se,
4706
- item: gn,
4707
- isOpen: Qt,
4708
- isStarred: En,
4709
- isDetailsLoading: nn,
4710
- isReadonly: Ae,
4711
- onClose: hn,
4720
+ yn != null && /* @__PURE__ */ Z(Ai, {
4721
+ renderCredentials: z,
4722
+ item: yn,
4723
+ isOpen: en,
4724
+ isStarred: On,
4725
+ isDetailsLoading: an,
4726
+ isReadonly: Y,
4727
+ onClose: vn,
4712
4728
  onToggleFavorite: c,
4713
4729
  isFavoriteVisible: l,
4714
4730
  onUseInChat: d,
@@ -4720,43 +4736,45 @@ var rn = /* @__PURE__ */ function(e) {
4720
4736
  getPublishDependencies: C,
4721
4737
  resolvePublishDependenciesLabels: w,
4722
4738
  resolvePublishApprovalLabels: T,
4723
- publishFolderItems: E,
4724
- publishExpandedPaths: O,
4725
- onPublishExpandedPathsChange: k,
4726
- publishLoadingPaths: A,
4727
- hasPublishWriteAccess: P,
4728
- publishDefaultAuthor: F,
4729
- onPublish: I,
4730
- onPublishSuccess: ee,
4731
- onPublishError: L,
4732
- onCreatePublishFolder: te,
4733
- publishLabels: ne,
4734
- ruleSourceOptions: re,
4735
- onFetchExistingRules: ie,
4736
- shareOverlay: ae,
4737
- isShareVisible: R,
4738
- isSharePrimary: oe,
4739
- onEdit: ce,
4740
- onDownload: B,
4741
- isDownloadVisible: le,
4742
- isDownloadPrimary: de,
4743
- onLoadContentFile: fe,
4744
- onLoadContentFilePreview: pe,
4745
- renderContentFilePreview: he,
4746
- renderContentFileTree: W,
4747
- onDelete: ge,
4748
- onUnshare: _e,
4749
- isUnshareVisible: ve,
4750
- onRevokeShare: ye,
4751
- onFetchRecipientsCount: be,
4752
- isRevokeShareVisible: xe,
4753
- onUnpublish: Se,
4754
- isUnpublishVisible: Ce,
4755
- onLogin: fn,
4756
- onLogout: pn,
4757
- texts: Re,
4758
- limitsFooterNote: ze,
4759
- styles: { colors: { featuredChipStyle: Le?.colors?.featuredChipStyle } }
4739
+ publishVersionHistory: E,
4740
+ onPublishOpenChange: O,
4741
+ publishFolderItems: k,
4742
+ publishExpandedPaths: A,
4743
+ onPublishExpandedPathsChange: P,
4744
+ publishLoadingPaths: F,
4745
+ hasPublishWriteAccess: ee,
4746
+ publishDefaultAuthor: I,
4747
+ onPublish: L,
4748
+ onPublishSuccess: te,
4749
+ onPublishError: ne,
4750
+ onCreatePublishFolder: re,
4751
+ publishLabels: ie,
4752
+ ruleSourceOptions: ae,
4753
+ onFetchExistingRules: R,
4754
+ shareOverlay: oe,
4755
+ isShareVisible: se,
4756
+ isSharePrimary: ce,
4757
+ onEdit: ue,
4758
+ onDownload: fe,
4759
+ isDownloadVisible: pe,
4760
+ isDownloadPrimary: me,
4761
+ onLoadContentFile: ge,
4762
+ onLoadContentFilePreview: _e,
4763
+ renderContentFilePreview: ve,
4764
+ renderContentFileTree: K,
4765
+ onDelete: ye,
4766
+ onUnshare: be,
4767
+ isUnshareVisible: xe,
4768
+ onRevokeShare: Se,
4769
+ onFetchRecipientsCount: Ce,
4770
+ isRevokeShareVisible: we,
4771
+ onUnpublish: Te,
4772
+ isUnpublishVisible: Ee,
4773
+ onLogin: hn,
4774
+ onLogout: gn,
4775
+ texts: Be,
4776
+ limitsFooterNote: Ve,
4777
+ styles: { colors: { featuredChipStyle: ze?.colors?.featuredChipStyle } }
4760
4778
  })
4761
4779
  ]
4762
4780
  });
@@ -4768,20 +4786,20 @@ var rn = /* @__PURE__ */ function(e) {
4768
4786
  headerClassName: "px-6 py-4 max-[767px]:px-4 max-[767px]:py-3",
4769
4787
  footerClassName: "px-6 py-4 max-[767px]:px-4 max-[767px]:py-3"
4770
4788
  }, Ma = ({ items: e, labels: t, status: n, error: r, onRetry: i, isConfirmDisabled: a = !1, footerStart: s, colors: l, headingClassName: u = "dial-body-semi-text", onConfirm: d, onClose: f, listProps: p, renderList: m }) => {
4771
- let [h, g] = q(""), [_, v] = q(() => /* @__PURE__ */ new Set()), [y, b] = q(!1), [x, S] = q(o.RecentlyUpdated), [C, w] = q(null), T = K(null), E = K(null), { isVisible: D, handleRowsScroll: O, scrollToTop: k } = _n({
4789
+ let [h, g] = G(""), [_, v] = G(() => /* @__PURE__ */ new Set()), [y, b] = G(!1), [x, S] = G(o.RecentlyUpdated), [C, w] = G(null), T = W(null), E = W(null), { isVisible: D, handleRowsScroll: O, scrollToTop: k } = _n({
4772
4790
  scrollBody: C,
4773
4791
  searchInputRef: E,
4774
4792
  listViewRef: T,
4775
4793
  isListView: !0
4776
- }), A = K(O);
4794
+ }), A = W(O);
4777
4795
  A.current = O;
4778
- let M = H((e) => {
4796
+ let M = V((e) => {
4779
4797
  e ?? A.current(0), w(e);
4780
- }, []), N = p?.ref, P = H((e) => {
4798
+ }, []), N = p?.ref, P = V((e) => {
4781
4799
  T.current = e, typeof N == "function" ? N(e) : N != null && (N.current = e);
4782
- }, [N]), F = p?.onRowsScroll, I = H((e) => {
4800
+ }, [N]), F = p?.onRowsScroll, ee = V((e) => {
4783
4801
  O(e), F?.(e);
4784
- }, [O, F]), ee = n === ka.Ready, L = ee && !a, te = t.cancel ?? "Cancel", ne = t.add ?? "Add", re = G(() => j(e), [e]), ae = G(() => c(e, {
4802
+ }, [O, F]), I = n === ka.Ready, L = I && !a, te = t.cancel ?? "Cancel", ne = t.add ?? "Add", re = U(() => j(e), [e]), ae = U(() => c(e, {
4785
4803
  search: h,
4786
4804
  topics: _,
4787
4805
  isMyOnly: y,
@@ -4792,7 +4810,7 @@ var rn = /* @__PURE__ */ function(e) {
4792
4810
  _,
4793
4811
  y,
4794
4812
  x
4795
- ]), R = G(() => [
4813
+ ]), R = U(() => [
4796
4814
  {
4797
4815
  value: o.RecentlyUpdated,
4798
4816
  label: t.sortUpdated ?? "Recently Updated"
@@ -4809,32 +4827,32 @@ var rn = /* @__PURE__ */ function(e) {
4809
4827
  t.sortUpdated,
4810
4828
  t.sortNewest,
4811
4829
  t.sortNameAZ
4812
- ]), oe = G(() => R.map((e) => ({
4830
+ ]), oe = U(() => R.map((e) => ({
4813
4831
  key: e.value,
4814
4832
  label: e.label,
4815
4833
  mark: Xe.Check,
4816
4834
  checked: e.value === x,
4817
4835
  onClick: () => S(e.value)
4818
- })), [R, x]), z = R.find((e) => e.value === x)?.label ?? t.sort ?? "Sort", se = H((e) => g(e ?? ""), []), ce = H(() => {
4836
+ })), [R, x]), se = R.find((e) => e.value === x)?.label ?? t.sort ?? "Sort", ce = V((e) => g(e ?? ""), []), le = V(() => {
4819
4837
  L && d();
4820
- }, [L, d]), V = G(() => [{
4838
+ }, [L, d]), B = U(() => [{
4821
4839
  label: te,
4822
- variant: Ce.Primary,
4823
- appearance: xe.Ghost,
4840
+ variant: we.Primary,
4841
+ appearance: Se.Ghost,
4824
4842
  onClick: f
4825
4843
  }, {
4826
4844
  label: ne,
4827
4845
  disabled: !L,
4828
- onClick: ce
4846
+ onClick: le
4829
4847
  }], [
4830
4848
  te,
4831
4849
  ne,
4832
4850
  f,
4833
4851
  L,
4834
- ce
4835
- ]), le = s == null ? void 0 : /* @__PURE__ */ Q("div", {
4852
+ le
4853
+ ]), ue = s == null ? void 0 : /* @__PURE__ */ Q("div", {
4836
4854
  className: mt("flex flex-wrap items-center justify-between gap-2 border-t", Aa.footer, ja.footerClassName),
4837
- style: B({ "--cat-picker-footer-border": l?.footerBorder }),
4855
+ style: z({ "--cat-picker-footer-border": l?.footerBorder }),
4838
4856
  children: [/* @__PURE__ */ Z("div", {
4839
4857
  className: "flex flex-wrap items-center gap-4",
4840
4858
  children: s
@@ -4842,15 +4860,15 @@ var rn = /* @__PURE__ */ function(e) {
4842
4860
  className: "ms-auto flex items-center gap-2",
4843
4861
  children: [/* @__PURE__ */ Z(nt, {
4844
4862
  label: te,
4845
- appearance: xe.Ghost,
4863
+ appearance: Se.Ghost,
4846
4864
  onClick: f
4847
4865
  }), /* @__PURE__ */ Z(Ze, {
4848
4866
  label: ne,
4849
4867
  disabled: !L,
4850
- onClick: ce
4868
+ onClick: le
4851
4869
  })]
4852
4870
  })]
4853
- }), ue = () => {
4871
+ }), de = () => {
4854
4872
  if (n === ka.Loading) return /* @__PURE__ */ Z("div", {
4855
4873
  className: "flex items-center justify-center py-16",
4856
4874
  children: /* @__PURE__ */ Z(ut, {
@@ -4883,7 +4901,7 @@ var rn = /* @__PURE__ */ function(e) {
4883
4901
  ariaLabel: t.catalog,
4884
4902
  ...p,
4885
4903
  ref: P,
4886
- onRowsScroll: I,
4904
+ onRowsScroll: ee,
4887
4905
  items: ae,
4888
4906
  query: h
4889
4907
  }), D && /* @__PURE__ */ Z("div", {
@@ -4894,7 +4912,7 @@ var rn = /* @__PURE__ */ function(e) {
4894
4912
  })
4895
4913
  })]
4896
4914
  });
4897
- }, de = t.search ?? "Search";
4915
+ }, fe = t.search ?? "Search";
4898
4916
  return /* @__PURE__ */ Q(et, {
4899
4917
  open: !0,
4900
4918
  header: t.title,
@@ -4904,8 +4922,8 @@ var rn = /* @__PURE__ */ function(e) {
4904
4922
  ...ja,
4905
4923
  closeAriaLabel: t.closeDialog ?? "Close dialog",
4906
4924
  bodyClassName: "flex min-h-0 flex-col overflow-hidden px-6 py-2 h-[70vh] max-[767px]:h-auto max-[767px]:px-4",
4907
- mainButtons: V,
4908
- footer: le,
4925
+ mainButtons: B,
4926
+ footer: ue,
4909
4927
  onClose: f,
4910
4928
  children: [/* @__PURE__ */ Q("div", {
4911
4929
  className: "flex shrink-0 flex-col gap-3 pb-5",
@@ -4913,16 +4931,16 @@ var rn = /* @__PURE__ */ function(e) {
4913
4931
  className: "flex items-center gap-2",
4914
4932
  children: [/* @__PURE__ */ Z(ie, {
4915
4933
  title: t.catalog,
4916
- postfix: ee ? ae.length : void 0,
4934
+ postfix: I ? ae.length : void 0,
4917
4935
  titleClassName: u,
4918
4936
  shouldTruncateTitle: !1
4919
4937
  }), /* @__PURE__ */ Z("div", {
4920
4938
  className: "ms-auto shrink-0",
4921
- children: /* @__PURE__ */ Z(Se, {
4939
+ children: /* @__PURE__ */ Z(Ce, {
4922
4940
  items: oe,
4923
- label: z,
4924
- variant: Ce.Primary,
4925
- appearance: xe.Ghost
4941
+ label: se,
4942
+ variant: we.Primary,
4943
+ appearance: Se.Ghost
4926
4944
  })
4927
4945
  })]
4928
4946
  }), /* @__PURE__ */ Q("div", {
@@ -4932,11 +4950,11 @@ var rn = /* @__PURE__ */ function(e) {
4932
4950
  className: "flex-1",
4933
4951
  children: /* @__PURE__ */ Z(at, {
4934
4952
  value: h,
4935
- onChange: se,
4936
- size: Me.Large,
4953
+ onChange: ce,
4954
+ size: Y.Large,
4937
4955
  wrapperClassName: "dial-kit-input-large",
4938
- placeholder: de,
4939
- "aria-label": de,
4956
+ placeholder: fe,
4957
+ "aria-label": fe,
4940
4958
  clearLabel: t.clearSearch ?? "Clear search",
4941
4959
  inputRef: E
4942
4960
  })
@@ -4953,10 +4971,10 @@ var rn = /* @__PURE__ */ function(e) {
4953
4971
  applyLabel: t.apply ?? "Apply"
4954
4972
  })]
4955
4973
  })]
4956
- }), ue()]
4974
+ }), de()]
4957
4975
  });
4958
4976
  }, Na = ({ type: e, items: t, attachedIds: n, labels: r, status: i, error: a, onRetry: o, listProps: s, renderFooterStart: c, onConfirm: l, onClose: d, headingClassName: f }) => {
4959
- let [p, m] = q(() => new Set(n)), h = G(() => new Set(t.map((e) => e.id)), [t]), { selectRow: g } = r, _ = H((e) => g ? g(e.name) : `Select ${e.name}`, [g]), v = H(() => l(u(n, p, h)), [
4977
+ let [p, m] = G(() => new Set(n)), h = U(() => new Set(t.map((e) => e.id)), [t]), { selectRow: g } = r, _ = V((e) => g ? g(e.name) : `Select ${e.name}`, [g]), v = V(() => l(u(n, p, h)), [
4960
4978
  l,
4961
4979
  n,
4962
4980
  p,
@@ -4987,7 +5005,7 @@ var rn = /* @__PURE__ */ function(e) {
4987
5005
  focusable: "_focusable_xykcx_5",
4988
5006
  description: "_description_xykcx_9"
4989
5007
  }, Fa = "group relative flex min-w-0 items-center gap-1 rounded-[10px] pe-1", Ia = "outline-hidden focus-visible:outline", La = ({ name: e, version: t, iconUrl: n, fileType: r, iconSize: i = 36, path: a, description: o, trailing: s, credentials: c, labels: l, colors: u, titleClassName: d = "dial-small-semi-text", versionClassName: f = "dial-tiny-text", descriptionClassName: p = "dial-tiny-text", isDisabled: m = !1, onOpen: h, onRemove: g }) => {
4990
- let _ = he(), v = he(), y = o != null && o !== "", b = B({
5008
+ let _ = ge(), v = ge(), y = o != null && o !== "", b = z({
4991
5009
  "--cat-add-on-row-hover-bg": u?.rowHoverBackground,
4992
5010
  "--cat-add-on-focus-outline": u?.focusOutline,
4993
5011
  "--cat-add-on-description": u?.description
@@ -5035,7 +5053,7 @@ var rn = /* @__PURE__ */ function(e) {
5035
5053
  className: "pointer-events-none flex min-w-0 flex-1 items-center gap-2.5 py-1",
5036
5054
  children: [x, /* @__PURE__ */ Q("span", {
5037
5055
  className: "flex min-w-0 flex-1 flex-col",
5038
- children: [/* @__PURE__ */ Z(ye, {
5056
+ children: [/* @__PURE__ */ Z(be, {
5039
5057
  items: a.map((e) => ({ label: e })),
5040
5058
  ariaLabel: l?.location ?? "Location"
5041
5059
  }), S]
@@ -5071,11 +5089,11 @@ var rn = /* @__PURE__ */ function(e) {
5071
5089
  children: s
5072
5090
  }),
5073
5091
  g && /* @__PURE__ */ Z(ze, {
5074
- size: Me.Small,
5092
+ size: Y.Small,
5075
5093
  icon: /* @__PURE__ */ Z(Vt, {
5076
5094
  "aria-hidden": !0,
5077
- size: J.SM,
5078
- stroke: Y
5095
+ size: q.SM,
5096
+ stroke: J
5079
5097
  }),
5080
5098
  "aria-label": l?.remove ?? `Remove ${e}`,
5081
5099
  disabled: m,
@@ -5085,8 +5103,8 @@ var rn = /* @__PURE__ */ function(e) {
5085
5103
  ]
5086
5104
  });
5087
5105
  }, Ra = (e) => {
5088
- let t = K(null), n = K(e);
5089
- return U(() => {
5106
+ let t = W(null), n = W(e);
5107
+ return H(() => {
5090
5108
  let r = e < n.current;
5091
5109
  if (n.current = e, !r) return;
5092
5110
  let i = document.activeElement;
@@ -5095,9 +5113,9 @@ var rn = /* @__PURE__ */ function(e) {
5095
5113
  (a?.querySelector("ul button") ?? a?.querySelector("button"))?.focus();
5096
5114
  }, [e]), t;
5097
5115
  }, za = ({ 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 }) => {
5098
- let [x, S] = q(!1), C = v ?? x, w = (e) => {
5116
+ let [x, S] = G(!1), C = v ?? x, w = (e) => {
5099
5117
  e && u || (v === void 0 && S(e), y?.(e));
5100
- }, [T, E] = q(""), D = K(null), O = G(() => [...s, ...t].filter((e) => e.label.toLocaleLowerCase().includes(T.toLocaleLowerCase())), [
5118
+ }, [T, E] = G(""), D = W(null), O = U(() => [...s, ...t].filter((e) => e.label.toLocaleLowerCase().includes(T.toLocaleLowerCase())), [
5101
5119
  s,
5102
5120
  t,
5103
5121
  T
@@ -5108,7 +5126,7 @@ var rn = /* @__PURE__ */ function(e) {
5108
5126
  }, j = "";
5109
5127
  c ? j = i.searchPlaceholder : !l && O.length === 0 && (j = i.emptyLabel);
5110
5128
  let M = !c && !!l, N = !c && !l && O.length > 0, P = _ ? _(k) : /* @__PURE__ */ Q("div", {
5111
- className: V("w-full max-w-full min-w-0 p-3", h),
5129
+ className: B("w-full max-w-full min-w-0 p-3", h),
5112
5130
  children: [
5113
5131
  /* @__PURE__ */ Z(at, {
5114
5132
  value: T,
@@ -5177,7 +5195,7 @@ var rn = /* @__PURE__ */ function(e) {
5177
5195
  e.key === "Escape" ? k() : b && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), w(!C));
5178
5196
  },
5179
5197
  containerClassName: "w-full min-w-0",
5180
- wrapperClassName: V("cursor-pointer", m),
5198
+ wrapperClassName: B("cursor-pointer", m),
5181
5199
  className: "cursor-pointer",
5182
5200
  iconAfter: g
5183
5201
  });
@@ -5185,13 +5203,13 @@ var rn = /* @__PURE__ */ function(e) {
5185
5203
  className: "w-full min-w-0",
5186
5204
  onClick: () => w(!C),
5187
5205
  children: F
5188
- }), b(P, C, k)] }) : /* @__PURE__ */ Z(ke, {
5206
+ }), b(P, C, k)] }) : /* @__PURE__ */ Z(Ae, {
5189
5207
  open: C,
5190
5208
  onOpenChange: w,
5191
5209
  disabled: u,
5192
5210
  className: "w-full",
5193
5211
  listClassName: "w-[min(var(--reference-width),calc(100vw-2rem))] max-w-full",
5194
- overlayRole: je.Dialog,
5212
+ overlayRole: Me.Dialog,
5195
5213
  overlayAriaLabel: i.panelAriaLabel ?? "Select model",
5196
5214
  optionArrowNavigation: !0,
5197
5215
  renderOverlay: () => P,
@@ -5215,20 +5233,20 @@ var rn = /* @__PURE__ */ function(e) {
5215
5233
  let n = t.toLowerCase();
5216
5234
  return e.name.toLowerCase().includes(n) || e.topics.some((e) => e.toLowerCase().includes(n)) || e.folder.some((e) => e.toLowerCase().includes(n));
5217
5235
  }, Wa = (e) => S(e).some((e) => e === P.Model || e === P.Agent), Ga = [], Ka = ({ searchQuery: e, onSearchQueryChange: t, favorites: n, extraOptions: r = Ga, pinnedItem: i, canFavoritePinnedItem: a = !0, selectedId: o, selectedItem: s, isSelectableItem: c = Wa, layout: l = Ba.Sectioned, onSelect: u, onToggleFavorite: d, onBrowseCatalog: f, onClose: p, labels: m = {}, colors: h, sectionHeadingClassName: g = "dial-tiny-lead-semi-text", itemNameClassName: _ = "dial-small-text", emptyHintClassName: v = "dial-small-text", className: y }) => {
5218
- let { searchPlaceholder: b = "Search models, agents…", clearSearchLabel: x = "Clear search", favoritesLabel: S = "Favorites", emptyHint: C = "Star a model or agent to pin it here.", browseCatalogLabel: w = "Catalog", removeFromFavoritesLabel: T = "Remove from favorites", currentlySelectedLabel: E = "Currently selected", addToFavoritesLabel: D = "Add to favorites", listAriaLabel: O = "Select model", unavailableLabel: k = "Unavailable" } = m, A = l === Ba.Sectioned, [j, M] = q(""), N = e ?? j, P = (e) => {
5236
+ let { searchPlaceholder: b = "Search models, agents…", clearSearchLabel: x = "Clear search", favoritesLabel: S = "Favorites", emptyHint: C = "Star a model or agent to pin it here.", browseCatalogLabel: w = "Catalog", removeFromFavoritesLabel: T = "Remove from favorites", currentlySelectedLabel: E = "Currently selected", addToFavoritesLabel: D = "Add to favorites", listAriaLabel: O = "Select model", unavailableLabel: k = "Unavailable" } = m, A = l === Ba.Sectioned, [j, M] = G(""), N = e ?? j, P = (e) => {
5219
5237
  M(e ?? ""), t?.(e ?? "");
5220
- }, [F, I] = q(/* @__PURE__ */ new Set()), ee = K(/* @__PURE__ */ new Map());
5221
- U(() => {
5222
- let e = ee.current;
5238
+ }, [F, ee] = G(/* @__PURE__ */ new Set()), I = W(/* @__PURE__ */ new Map());
5239
+ H(() => {
5240
+ let e = I.current;
5223
5241
  return () => {
5224
5242
  e.forEach((e) => clearTimeout(e)), e.clear();
5225
5243
  };
5226
5244
  }, []);
5227
- let te = G(() => (i == null ? n : [i, ...n.filter((e) => e.id !== i.id)]).filter((e) => !e.isHidden && c(e)), [
5245
+ let te = U(() => (i == null ? n : [i, ...n.filter((e) => e.id !== i.id)]).filter((e) => !e.isHidden && c(e)), [
5228
5246
  n,
5229
5247
  i,
5230
5248
  c
5231
- ]), ne = G(() => new Set(n.map((e) => e.id)), [n]), re = N.trim(), ie = s != null && te.some((e) => e.id === s.id), ae = s != null && c(s) && (A || !ie) && (!re || Ua(s, N)), R = G(() => {
5249
+ ]), ne = U(() => new Set(n.map((e) => e.id)), [n]), re = N.trim(), ie = s != null && te.some((e) => e.id === s.id), ae = s != null && c(s) && (A || !ie) && (!re || Ua(s, N)), R = U(() => {
5232
5250
  let e = A ? te.filter((e) => e.id !== s?.id) : te;
5233
5251
  return re ? e.filter((e) => Ua(e, N)) : e;
5234
5252
  }, [
@@ -5237,65 +5255,65 @@ var rn = /* @__PURE__ */ function(e) {
5237
5255
  re,
5238
5256
  N,
5239
5257
  s?.id
5240
- ]), oe = G(() => {
5258
+ ]), oe = U(() => {
5241
5259
  let e = re.toLowerCase();
5242
5260
  return e ? r.filter((t) => t.label.toLowerCase().includes(e)) : r;
5243
- }, [r, re]), z = K(null), [le, de] = q();
5244
- ge(() => {
5245
- z.current && de(Math.min(z.current.scrollHeight, ce));
5261
+ }, [r, re]), se = W(null), [ue, fe] = G();
5262
+ ve(() => {
5263
+ se.current && fe(Math.min(se.current.scrollHeight, le));
5246
5264
  }, [
5247
5265
  R,
5248
5266
  oe,
5249
5267
  ae
5250
5268
  ]);
5251
- let fe = K(null), pe = K(null);
5252
- U(() => {
5253
- pe.current && fe.current && En(pe.current, fe.current);
5269
+ let pe = W(null), me = W(null);
5270
+ H(() => {
5271
+ me.current && pe.current && En(me.current, pe.current);
5254
5272
  }, []);
5255
- let me = ue(), H = K(null);
5256
- U(() => {
5257
- me || H.current?.focus();
5258
- }, [me]);
5259
- let he = (e) => {
5273
+ let he = de(), V = W(null);
5274
+ H(() => {
5275
+ he || V.current?.focus();
5276
+ }, [he]);
5277
+ let ge = (e) => {
5260
5278
  u(e), p();
5261
- }, W = () => {
5279
+ }, _e = () => {
5262
5280
  f?.(), p();
5263
- }, _e = (e, t) => {
5264
- I((t) => new Set(t).add(e));
5281
+ }, K = (e, t) => {
5282
+ ee((t) => new Set(t).add(e));
5265
5283
  let n = setTimeout(() => {
5266
- d(e, t), I((t) => {
5284
+ d(e, t), ee((t) => {
5267
5285
  let n = new Set(t);
5268
5286
  return n.delete(e), n;
5269
- }), ee.current.delete(e);
5287
+ }), I.current.delete(e);
5270
5288
  }, Ha);
5271
- ee.current.set(e, n);
5272
- }, ve = (e) => re ? /* @__PURE__ */ Z(Be, {
5289
+ I.current.set(e, n);
5290
+ }, ye = (e) => re ? /* @__PURE__ */ Z(Be, {
5273
5291
  text: e,
5274
5292
  query: N,
5275
- className: V(_, "min-w-0 flex-initial!")
5293
+ className: B(_, "min-w-0 flex-initial!")
5276
5294
  }) : /* @__PURE__ */ Z(Ne, {
5277
5295
  text: e,
5278
- className: V(_, "min-w-0 flex-initial!")
5279
- }), ye = (e) => {
5296
+ className: B(_, "min-w-0 flex-initial!")
5297
+ }), be = (e) => {
5280
5298
  let t = e.id === o;
5281
5299
  return /* @__PURE__ */ Z("li", {
5282
5300
  role: "none",
5283
- ref: t ? fe : void 0,
5301
+ ref: t ? pe : void 0,
5284
5302
  children: /* @__PURE__ */ Z(Ye, {
5285
5303
  role: "menuitemradio",
5286
5304
  "aria-checked": t,
5287
5305
  mark: Xe.Tint,
5288
5306
  selected: t,
5289
5307
  className: "h-auto py-1.5",
5290
- label: ve(e.label),
5291
- onClick: () => he(e.id)
5308
+ label: ye(e.label),
5309
+ onClick: () => ge(e.id)
5292
5310
  })
5293
5311
  }, e.id);
5294
- }, be = (e, t = !1) => {
5312
+ }, xe = (e, t = !1) => {
5295
5313
  let n = e.id === o, r = ne.has(e.id), s = !!e.isHidden, c = !s && (a || e.id !== i?.id), l = !t && F.has(e.id);
5296
5314
  return /* @__PURE__ */ Z("li", {
5297
5315
  role: "none",
5298
- ref: n ? fe : void 0,
5316
+ ref: n ? pe : void 0,
5299
5317
  className: l ? Va.rowLeaving : Va.rowEnter,
5300
5318
  children: /* @__PURE__ */ Z(Ye, {
5301
5319
  role: "menuitemradio",
@@ -5307,58 +5325,58 @@ var rn = /* @__PURE__ */ function(e) {
5307
5325
  description: s ? k : void 0,
5308
5326
  icon: /* @__PURE__ */ Z(L, {
5309
5327
  src: e.iconUrl,
5310
- size: J.MD,
5328
+ size: q.MD,
5311
5329
  initialsName: e.name
5312
5330
  }),
5313
5331
  label: /* @__PURE__ */ Q("span", {
5314
5332
  className: "flex min-w-0 flex-1 flex-wrap items-start gap-x-1.5 whitespace-normal",
5315
- children: [ve(e.name), e.version && /* @__PURE__ */ Z(we, {
5333
+ children: [ye(e.name), e.version && /* @__PURE__ */ Z(Te, {
5316
5334
  text: e.version,
5317
5335
  className: "min-w-0 wrap-break-word"
5318
5336
  })]
5319
5337
  }),
5320
- onClick: () => he(e.id),
5338
+ onClick: () => ge(e.id),
5321
5339
  rightControl: c ? /* @__PURE__ */ Z(ft, {
5322
5340
  icon: /* @__PURE__ */ Z(zt, {
5323
- size: J.SM,
5341
+ size: q.SM,
5324
5342
  "aria-hidden": !0,
5325
- stroke: Y
5343
+ stroke: J
5326
5344
  }),
5327
5345
  selectedIcon: /* @__PURE__ */ Z(Bt, {
5328
- size: J.SM,
5346
+ size: q.SM,
5329
5347
  className: Va.starFilledIcon,
5330
5348
  "aria-hidden": !0
5331
5349
  }),
5332
5350
  isSelected: r,
5333
5351
  "aria-label": r ? T : D,
5334
5352
  onClick: (t) => {
5335
- t.stopPropagation(), _e(e.id, !r);
5353
+ t.stopPropagation(), K(e.id, !r);
5336
5354
  }
5337
5355
  }) : void 0
5338
5356
  })
5339
5357
  }, e.id);
5340
- }, xe = () => /* @__PURE__ */ Z("p", {
5341
- className: V(v, "px-4 py-4 text-center", Va.emptyHint),
5358
+ }, Se = () => /* @__PURE__ */ Z("p", {
5359
+ className: B(v, "px-4 py-4 text-center", Va.emptyHint),
5342
5360
  children: C
5343
- }), Se = () => /* @__PURE__ */ Q(X, { children: [
5361
+ }), Ce = () => /* @__PURE__ */ Q(X, { children: [
5344
5362
  ae && s && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("p", {
5345
- className: V(g, "px-3 pt-2 pb-2", Va.sectionHeading),
5363
+ className: B(g, "px-3 pt-2 pb-2", Va.sectionHeading),
5346
5364
  children: E
5347
5365
  }), /* @__PURE__ */ Z("ul", {
5348
5366
  role: "group",
5349
5367
  className: "flex flex-col gap-1 px-1 pb-1",
5350
- children: be(s, !0)
5368
+ children: xe(s, !0)
5351
5369
  })] }),
5352
5370
  (ae || R.length > 0) && /* @__PURE__ */ Z("p", {
5353
- className: V(g, "sticky top-0 z-10 px-3 pt-2 pb-2 will-change-transform", Va.sectionHeading, Va.stickyHeading),
5371
+ className: B(g, "sticky top-0 z-10 px-3 pt-2 pb-2 will-change-transform", Va.sectionHeading, Va.stickyHeading),
5354
5372
  children: S
5355
5373
  }),
5356
5374
  R.length > 0 ? /* @__PURE__ */ Z("ul", {
5357
5375
  role: "group",
5358
5376
  className: "flex flex-col gap-1 px-1 pb-1",
5359
- children: R.map((e) => be(e))
5360
- }) : xe()
5361
- ] }), Ce = () => {
5377
+ children: R.map((e) => xe(e))
5378
+ }) : Se()
5379
+ ] }), we = () => {
5362
5380
  let [e, ...t] = R, n = e != null && e.id === i?.id, r = n ? t : R, a = [
5363
5381
  ...n ? [e] : [],
5364
5382
  ...ae && s ? [s] : [],
@@ -5367,14 +5385,14 @@ var rn = /* @__PURE__ */ function(e) {
5367
5385
  return /* @__PURE__ */ Q(X, { children: [a.length > 0 && /* @__PURE__ */ Z("ul", {
5368
5386
  role: "group",
5369
5387
  className: "flex flex-col gap-1 px-1 py-1",
5370
- children: a.map((e) => be(e))
5371
- }), r.length === 0 && !n && xe()] });
5388
+ children: a.map((e) => xe(e))
5389
+ }), r.length === 0 && !n && Se()] });
5372
5390
  };
5373
5391
  return /* @__PURE__ */ Q("div", {
5374
- className: V("flex min-w-[360px] flex-col", y),
5392
+ className: B("flex min-w-[360px] flex-col", y),
5375
5393
  style: {
5376
5394
  maxHeight: "calc(var(--fui-available-height, 9999px) - 8px)",
5377
- ...B({
5395
+ ...z({
5378
5396
  "--ds-surface": h?.surface,
5379
5397
  "--ds-section-heading": h?.sectionHeading,
5380
5398
  "--ds-empty-hint": h?.emptyHint,
@@ -5385,9 +5403,9 @@ var rn = /* @__PURE__ */ function(e) {
5385
5403
  children: [
5386
5404
  /* @__PURE__ */ Z("div", {
5387
5405
  role: "search",
5388
- className: V("sticky top-0 z-10 pt-2 pb-3", Va.searchHeader),
5406
+ className: B("sticky top-0 z-10 pt-2 pb-3", Va.searchHeader),
5389
5407
  children: /* @__PURE__ */ Z(at, {
5390
- inputRef: H,
5408
+ inputRef: V,
5391
5409
  value: N,
5392
5410
  onChange: P,
5393
5411
  placeholder: b,
@@ -5396,39 +5414,39 @@ var rn = /* @__PURE__ */ function(e) {
5396
5414
  })
5397
5415
  }),
5398
5416
  /* @__PURE__ */ Z("div", {
5399
- ref: pe,
5400
- className: V(se, "min-h-0 flex-1 overflow-y-auto", Va.listContent),
5401
- style: { maxHeight: le },
5417
+ ref: me,
5418
+ className: B(ce, "min-h-0 flex-1 overflow-y-auto", Va.listContent),
5419
+ style: { maxHeight: ue },
5402
5420
  children: /* @__PURE__ */ Q("div", {
5403
5421
  role: "menu",
5404
5422
  "aria-label": O,
5405
- ref: z,
5423
+ ref: se,
5406
5424
  children: [oe.length > 0 && /* @__PURE__ */ Z("ul", {
5407
5425
  role: "group",
5408
5426
  className: "flex flex-col gap-1 px-1 pt-1 pb-1",
5409
- children: oe.map(ye)
5410
- }), A ? Se() : Ce()]
5427
+ children: oe.map(be)
5428
+ }), A ? Ce() : we()]
5411
5429
  })
5412
5430
  }),
5413
5431
  /* @__PURE__ */ Z("div", {
5414
- className: V("px-2 py-3", Va.footer),
5432
+ className: B("px-2 py-3", Va.footer),
5415
5433
  children: /* @__PURE__ */ Z(Re, {
5416
5434
  label: w,
5417
5435
  className: "w-full justify-center",
5418
- onClick: W
5436
+ onClick: _e
5419
5437
  })
5420
5438
  })
5421
5439
  ]
5422
5440
  });
5423
5441
  }, qa = ({ service: e, texts: t, onLogin: n, onLogout: r, typography: a }) => {
5424
- let { rowLabelClassName: o = "dial-small-semi-text", rowDescriptionClassName: c = "dial-small-text", errorClassName: l = "dial-caption-text", keyCardTitleClassName: u = "dial-tiny-semi-text", keyCardDescriptionClassName: d = "dial-tiny-text" } = a ?? {}, [f, p] = q(!1), [m, h] = q(!1), [g, _] = q(!1), [v, y] = q(), x = e.authenticationType === s.ApiKey, S = x ? t?.deleteActionLabel ?? "Delete" : t?.logoutActionLabel ?? "Log out", C = x ? t?.deleteApiKeyConfirmMessage?.(i.User) ?? "Are you sure you want to delete your personal API key?" : t?.logoutConfirmMessage ?? "Are you sure you want to log out?";
5442
+ let { rowLabelClassName: o = "dial-small-semi-text", rowDescriptionClassName: c = "dial-small-text", errorClassName: l = "dial-caption-text", keyCardTitleClassName: u = "dial-tiny-semi-text", keyCardDescriptionClassName: d = "dial-tiny-text" } = a ?? {}, [f, p] = G(!1), [m, h] = G(!1), [g, _] = G(!1), [v, y] = G(), x = e.authenticationType === s.ApiKey, S = x ? t?.deleteActionLabel ?? "Delete" : t?.logoutActionLabel ?? "Log out", C = x ? t?.deleteApiKeyConfirmMessage?.(i.User) ?? "Are you sure you want to delete your personal API key?" : t?.logoutConfirmMessage ?? "Are you sure you want to log out?";
5425
5443
  return /* @__PURE__ */ Q(yr, {
5426
5444
  label: e.name,
5427
5445
  description: e.description,
5428
5446
  icon: /* @__PURE__ */ Z(Ut, {
5429
- size: J.SM,
5447
+ size: q.SM,
5430
5448
  "aria-hidden": !0,
5431
- stroke: Y
5449
+ stroke: J
5432
5450
  }),
5433
5451
  status: e.status,
5434
5452
  isActive: e.status === b.SignedIn,
@@ -5448,7 +5466,7 @@ var rn = /* @__PURE__ */ function(e) {
5448
5466
  keyCardTitleClassName: u,
5449
5467
  keyCardDescriptionClassName: d,
5450
5468
  deleteActionClassName: vr.deleteAction,
5451
- renderLoginOptions: e.canConsentToOfflineUsage ? (e) => /* @__PURE__ */ Z(Ee, {
5469
+ renderLoginOptions: e.canConsentToOfflineUsage ? (e) => /* @__PURE__ */ Z(De, {
5452
5470
  isSelected: f,
5453
5471
  onChange: p,
5454
5472
  disabled: e,
@@ -5457,14 +5475,14 @@ var rn = /* @__PURE__ */ function(e) {
5457
5475
  }) : void 0,
5458
5476
  children: [
5459
5477
  e.hint && /* @__PURE__ */ Z("p", {
5460
- className: V(c, "wrap-break-word", vr.description),
5478
+ className: B(c, "wrap-break-word", vr.description),
5461
5479
  children: e.hint
5462
5480
  }),
5463
5481
  e.hasSharedCredentials && /* @__PURE__ */ Z(dr, {
5464
5482
  icon: /* @__PURE__ */ Z(bt, {
5465
- size: J.SM,
5483
+ size: q.SM,
5466
5484
  "aria-hidden": !0,
5467
- stroke: Y
5485
+ stroke: J
5468
5486
  }),
5469
5487
  title: t?.sharedCredentials ?? "Shared credentials are available for this service."
5470
5488
  }),
@@ -5486,7 +5504,7 @@ var rn = /* @__PURE__ */ function(e) {
5486
5504
  onClick: () => {
5487
5505
  h(!1), y(void 0);
5488
5506
  }
5489
- }), /* @__PURE__ */ Z(Oe, {
5507
+ }), /* @__PURE__ */ Z(ke, {
5490
5508
  className: "min-h-11",
5491
5509
  label: S,
5492
5510
  disabled: g,
@@ -5514,7 +5532,7 @@ var rn = /* @__PURE__ */ function(e) {
5514
5532
  let h = null;
5515
5533
  return d ? h = /* @__PURE__ */ Z(ut, {
5516
5534
  className: "justify-start px-6 py-3",
5517
- size: J.MD,
5535
+ size: q.MD,
5518
5536
  ariaLabel: s?.loading ?? "Loading…"
5519
5537
  }) : f ? h = /* @__PURE__ */ Q("div", {
5520
5538
  className: "flex flex-col gap-2 px-6 py-3",
@@ -5526,7 +5544,7 @@ var rn = /* @__PURE__ */ function(e) {
5526
5544
  label: s?.retry ?? "Retry",
5527
5545
  onClick: i
5528
5546
  })]
5529
- }) : p ? h = /* @__PURE__ */ Z(we, {
5547
+ }) : p ? h = /* @__PURE__ */ Z(Te, {
5530
5548
  "aria-hidden": !0,
5531
5549
  className: "block px-6 py-3",
5532
5550
  text: u
@@ -5562,12 +5580,12 @@ var rn = /* @__PURE__ */ function(e) {
5562
5580
  role: "group",
5563
5581
  "aria-label": e.displayName,
5564
5582
  "aria-busy": l,
5565
- className: V("flex flex-col gap-2 border-b py-3 last:border-b-0", Ya.row),
5583
+ className: B("flex flex-col gap-2 border-b py-3 last:border-b-0", Ya.row),
5566
5584
  children: [
5567
5585
  /* @__PURE__ */ Z("div", {
5568
5586
  className: "flex min-w-0 items-center justify-between gap-2",
5569
5587
  children: /* @__PURE__ */ Q("span", {
5570
- className: V("min-w-0 flex-1 truncate", n, Ya.name),
5588
+ className: B("min-w-0 flex-1 truncate", n, Ya.name),
5571
5589
  children: [e.displayName, e.displayVersion ? ` (${e.displayVersion})` : ""]
5572
5590
  })
5573
5591
  }),
@@ -5582,10 +5600,10 @@ var rn = /* @__PURE__ */ function(e) {
5582
5600
  }),
5583
5601
  /* @__PURE__ */ Z(Ke, {
5584
5602
  politeness: Je.Assertive,
5585
- className: V("flex flex-wrap items-center gap-2 wrap-break-word", r, Ya.error),
5603
+ className: B("flex flex-wrap items-center gap-2 wrap-break-word", r, Ya.error),
5586
5604
  children: e.errorMessage && /* @__PURE__ */ Q(X, { children: [
5587
5605
  /* @__PURE__ */ Z(gt, {
5588
- size: J.SM,
5606
+ size: q.SM,
5589
5607
  "aria-hidden": !0
5590
5608
  }),
5591
5609
  /* @__PURE__ */ Z("span", { children: e.errorMessage }),
@@ -5597,13 +5615,13 @@ var rn = /* @__PURE__ */ function(e) {
5597
5615
  ] })
5598
5616
  }),
5599
5617
  e.showDialNativeHint && /* @__PURE__ */ Z("p", {
5600
- className: V("wrap-break-word", i, Ya.hint),
5618
+ className: B("wrap-break-word", i, Ya.hint),
5601
5619
  children: t.dialNativeHint
5602
5620
  }),
5603
5621
  e.requiresNoCredentials ? /* @__PURE__ */ Z("div", {
5604
5622
  className: "flex justify-end",
5605
5623
  children: /* @__PURE__ */ Z("span", {
5606
- className: V(i, Ya.hint),
5624
+ className: B(i, Ya.hint),
5607
5625
  children: t.noCredentialsRequired
5608
5626
  })
5609
5627
  }) : /* @__PURE__ */ Q("div", {
@@ -5653,7 +5671,7 @@ var rn = /* @__PURE__ */ function(e) {
5653
5671
  footer: g,
5654
5672
  children: /* @__PURE__ */ Q("div", {
5655
5673
  className: "flex flex-col gap-2 px-6 py-4",
5656
- style: B({
5674
+ style: z({
5657
5675
  "--cat-signin-description-text": u?.descriptionText,
5658
5676
  "--cat-signin-row-border": u?.rowBorder,
5659
5677
  "--cat-signin-name-text": u?.nameText,
@@ -5662,7 +5680,7 @@ var rn = /* @__PURE__ */ function(e) {
5662
5680
  }),
5663
5681
  children: [
5664
5682
  /* @__PURE__ */ Z("p", {
5665
- className: V(d, Ya.description),
5683
+ className: B(d, Ya.description),
5666
5684
  children: l?.description ?? "One or more tools or services need you to sign in before the conversation can continue."
5667
5685
  }),
5668
5686
  /* @__PURE__ */ Z(Ke, {
@@ -5683,7 +5701,7 @@ var rn = /* @__PURE__ */ function(e) {
5683
5701
  onDecline: s
5684
5702
  }, e.id))
5685
5703
  }),
5686
- n && /* @__PURE__ */ Z(Ee, {
5704
+ n && /* @__PURE__ */ Z(De, {
5687
5705
  className: "mt-2",
5688
5706
  isSelected: r,
5689
5707
  onChange: i,