@epam/ai-dial-catalog 1.4.0-dev.106 → 1.4.0-dev.107

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 ee, ConfirmationView as F, DESKTOP_BREAKPOINT_PX as I, DeploymentIcon as L, EntityHeader as te, EntityTypeLabel as ne, FeaturedChip as re, ItemHeader as ie, MarkdownCodeBlock as R, MarkdownRenderer as z, MarkdownWithPlaceholders as ae, PanelEmptyState as oe, 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 ge, useLayoutEffect as _e, useMemo as W, useRef as G, useState as K } from "react";
4
- import { Badge as ve, BottomSheet as q, 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, LinkButton as We, LiveRegion as Ge, LiveRegionElement as Ke, LiveRegionPoliteness as qe, MenuItem as Je, MenuItemMark as Ye, NeutralButton as Xe, NeutralIconButton as Ze, NoDataContent as Qe, Popup as $e, PopupSize as et, PrimaryButton as tt, ProgressBar as nt, RadioGroup as rt, Search as it, SegmentedControl as at, SideDrawer as ot, Skeleton as st, SkeletonAvatarShape as ct, Spinner as lt, Tabs as ut, ToggleIconButton as dt, Tooltip as ft, mergeClasses as pt } from "@epam/ai-dial-ui-kit";
2
+ import { CatalogEntityType as P, ConfirmationFooter as ee, ConfirmationView as F, DESKTOP_BREAKPOINT_PX as te, DeploymentIcon as I, EntityHeader as ne, EntityTypeLabel as re, FeaturedChip as ie, ItemHeader as ae, MarkdownCodeBlock as L, 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 ye, BottomSheet as be, Breadcrumbs as xe, Button as K, 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, LinkButton as We, LiveRegion as Ge, LiveRegionElement as Ke, LiveRegionPoliteness as qe, MenuItem as Je, MenuItemMark as Ye, NeutralButton as Xe, NeutralIconButton as Ze, NoDataContent as Qe, Popup as $e, PopupSize as et, PrimaryButton as tt, ProgressBar as nt, RadioGroup as rt, Search as it, SegmentedControl as at, SideDrawer as ot, Skeleton as st, SkeletonAvatarShape as ct, Spinner as lt, Tabs as ut, ToggleIconButton as dt, Tooltip as ft, mergeClasses as pt } 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 mt, IconAlertCircleFilled as ht, IconAlertTriangleFilled as gt, IconArrowNarrowUp as _t, IconArrowRight as vt, IconBuildingCommunity as yt, IconChevronDown as bt, IconChevronLeft as xt, IconChevronRight as St, IconCircleCheckFilled as Ct, IconDots as wt, IconDownload as Tt, IconFilter as Et, IconFolder as Dt, IconKey as Ot, IconLayoutGrid as kt, IconLayoutList as At, IconLogin as jt, IconLogout as Mt, IconPencil as Nt, IconPlayerPlayFilled as Pt, IconPlus as Ft, IconShare as It, IconStar as Lt, IconStarFilled as Rt, IconTrash as zt, IconTrashX as Bt, IconUser as Vt, IconUserOff as Ht, IconWorldOff as Ut, IconWorldShare as Wt, IconX as Gt } from "@tabler/icons-react";
7
7
  import { PublishFooter as Kt, PublishPanel as qt, PublishPanelView as Jt, derivePublishState as Yt, usePublishFlow as Xt, usePublishFolderView as Zt } from "@epam/ai-dial-publish-panel";
@@ -28,8 +28,8 @@ var nn = /* @__PURE__ */ function(e) {
28
28
  }({}), dn = /* @__PURE__ */ function(e) {
29
29
  return e.Markdown = "markdown", e.Text = "text", e.Image = "image", e.Unsupported = "unsupported", e;
30
30
  }({}), fn = () => {
31
- let [e, t] = K(() => 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 nn = /* @__PURE__ */ function(e) {
40
40
  favoriteCard: "dial-catalog-favorite-card",
41
41
  listView: "dial-catalog-list-view"
42
42
  }, mn = "(prefers-reduced-motion: reduce)", hn = () => typeof window.matchMedia == "function" && window.matchMedia(mn).matches ? "auto" : "smooth", gn = ({ scrollBody: e, searchInputRef: t, listViewRef: n, isListView: r }) => {
43
- let [i, a] = K(!1), o = G(0), s = G(r), c = G(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: hn()
@@ -71,7 +71,7 @@ var nn = /* @__PURE__ */ function(e) {
71
71
  t
72
72
  ])
73
73
  };
74
- }, _n = (e) => e.type === Ae.Divider || e.type === Ae.PlainText, vn = (e, t) => e.map((e) => _n(e) ? e : {
74
+ }, _n = (e) => e.type === je.Divider || e.type === je.PlainText, vn = (e, t) => e.map((e) => _n(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 nn = /* @__PURE__ */ function(e) {
101
101
  mathScrollRegionAriaLabel: e?.mathScrollRegionAriaLabel
102
102
  }), xn = (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 nn = /* @__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
  }, En = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
116
- let r = G(null), [i, a] = K(() => {
117
- let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= I ? 60 : 0)), i = Cn((n ? r : Math.min(Sn, 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 >= te ? 60 : 0)), i = Cn((n ? r : Math.min(Sn, 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 = wn(n.parentElement), o = () => {
@@ -159,14 +159,14 @@ var nn = /* @__PURE__ */ function(e) {
159
159
  footer: "_footer_1ucf8_40",
160
160
  cardButton: "_cardButton_1ucf8_50"
161
161
  }, On = ({ name: e, query: t = "", className: n }) => {
162
- let { ref: r, isClamped: i } = de(e);
162
+ let { ref: r, isClamped: i } = fe(e);
163
163
  return /* @__PURE__ */ Z(ft, {
164
164
  asChild: !0,
165
165
  tooltip: e,
166
166
  hideTooltip: !i,
167
167
  children: /* @__PURE__ */ Z("span", {
168
168
  ref: r,
169
- className: V("line-clamp-2 min-w-0 wrap-break-word", n),
169
+ className: B("line-clamp-2 min-w-0 wrap-break-word", n),
170
170
  children: /* @__PURE__ */ Z(Be, {
171
171
  text: e,
172
172
  query: t
@@ -178,28 +178,28 @@ var nn = /* @__PURE__ */ function(e) {
178
178
  lastUsed: "_lastUsed_188yo_5",
179
179
  version: "_version_188yo_9"
180
180
  }, An = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, styles: c, lastUsedTrailing: l, iconClassName: u, iconOverlay: d }) => {
181
- let f = c?.colors, p = c?.typography ?? {}, m = a === on.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", kn.version), b = B({
181
+ let f = c?.colors, p = c?.typography ?? {}, m = a === on.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", kn.version), b = z({
182
182
  "--ai-name-text": f?.nameColor,
183
183
  "--ai-last-used-text": f?.lastUsedColor,
184
184
  "--ai-version-text": f?.versionColor
185
185
  });
186
186
  return /* @__PURE__ */ Q("div", {
187
- className: V("flex min-w-0 items-start gap-3", s),
187
+ className: B("flex min-w-0 items-start gap-3", s),
188
188
  style: b,
189
189
  children: [/* @__PURE__ */ Q("div", {
190
- className: V("relative shrink-0", h, u),
190
+ className: B("relative shrink-0", h, u),
191
191
  children: [/* @__PURE__ */ Z("div", {
192
192
  className: "size-full overflow-hidden rounded-[inherit]",
193
- children: /* @__PURE__ */ Z(L, {
193
+ children: /* @__PURE__ */ Z(I, {
194
194
  src: e ?? void 0,
195
195
  size: g,
196
196
  initialsName: n,
197
- styles: { badgeClassName: V(m ? "rounded-[14px]" : "rounded-[12px]") }
197
+ styles: { badgeClassName: B(m ? "rounded-[14px]" : "rounded-[12px]") }
198
198
  })
199
199
  }), d]
200
200
  }), /* @__PURE__ */ Q("div", {
201
201
  className: "flex min-w-0 flex-1 flex-col gap-1",
202
- children: [/* @__PURE__ */ Z(ne, {
202
+ children: [/* @__PURE__ */ Z(re, {
203
203
  type: t,
204
204
  className: p?.typeClassName
205
205
  }), /* @__PURE__ */ Q("div", {
@@ -209,20 +209,20 @@ var nn = /* @__PURE__ */ function(e) {
209
209
  children: [/* @__PURE__ */ Z(On, {
210
210
  name: n,
211
211
  query: o,
212
- className: V(_ ? "max-w-max flex-[66_1_0%]" : "flex-1", p?.nameClassName ?? "dial-body-semi-text", kn.name)
212
+ className: B(_ ? "max-w-max flex-[66_1_0%]" : "flex-1", p?.nameClassName ?? "dial-body-semi-text", kn.name)
213
213
  }), _ && /* @__PURE__ */ Z(Ne, {
214
214
  text: r,
215
- className: V("max-w-max min-w-0 flex-[34_1_0%] tabular-nums", y)
215
+ className: B("max-w-max min-w-0 flex-[34_1_0%] tabular-nums", y)
216
216
  })]
217
217
  }), v && /* @__PURE__ */ Q("div", {
218
218
  className: "flex min-w-0 items-center gap-2",
219
219
  children: [
220
220
  r && /* @__PURE__ */ Z(Ne, {
221
221
  text: r,
222
- className: V("min-w-0 tabular-nums", y)
222
+ className: B("min-w-0 tabular-nums", y)
223
223
  }),
224
224
  i != null && /* @__PURE__ */ Z("span", {
225
- className: V("shrink-0 tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", kn.lastUsed),
225
+ className: B("shrink-0 tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", kn.lastUsed),
226
226
  children: i
227
227
  }),
228
228
  l != null && /* @__PURE__ */ Z("div", {
@@ -236,7 +236,7 @@ var nn = /* @__PURE__ */ function(e) {
236
236
  });
237
237
  }, jn = { icon: "_icon_a0p4u_1" }, Mn = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => {
238
238
  if (e == null || C(e) == null) return null;
239
- let i = B({
239
+ let i = z({
240
240
  "--cat-cred-badge-halo": r?.halo,
241
241
  "--cat-cred-badge-icon": r?.icon
242
242
  });
@@ -247,9 +247,9 @@ var nn = /* @__PURE__ */ function(e) {
247
247
  role: "img",
248
248
  "aria-label": t,
249
249
  style: i,
250
- className: V("absolute -inset-e-1 -bottom-1 shrink-0", n),
250
+ className: B("absolute -inset-e-1 -bottom-1 shrink-0", n),
251
251
  children: /* @__PURE__ */ Z(gt, {
252
- size: J.SM,
252
+ size: q.SM,
253
253
  className: jn.icon,
254
254
  "aria-hidden": !0
255
255
  })
@@ -260,36 +260,36 @@ var nn = /* @__PURE__ */ function(e) {
260
260
  starPop: "_starPop_po6zj_1"
261
261
  }, Pn = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ Z(dt, {
262
262
  size: n,
263
- style: B({ "--cat-star-filled": a }),
263
+ style: z({ "--cat-star-filled": a }),
264
264
  className: i,
265
265
  isSelected: e,
266
266
  icon: /* @__PURE__ */ Z(Lt, {
267
- size: J.SM,
268
- stroke: Y,
267
+ size: q.SM,
268
+ stroke: J,
269
269
  "aria-hidden": !0
270
270
  }),
271
271
  selectedIcon: /* @__PURE__ */ Z(Rt, {
272
- size: J.SM,
272
+ size: q.SM,
273
273
  className: Nn.starFilledIcon,
274
274
  "aria-hidden": !0
275
275
  }),
276
276
  "aria-label": r,
277
277
  onClick: t
278
- }), Fn = { tag: "_tag_iqin5_3" }, In = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ Z(ve, {
278
+ }), Fn = { tag: "_tag_iqin5_3" }, In = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ Z(ye, {
279
279
  label: e,
280
280
  textClassName: n,
281
- style: B({
281
+ style: z({
282
282
  "--cat-card-tag-bg": r?.background,
283
283
  "--cat-card-tag-text": r?.text,
284
284
  "--cat-card-tag-border": r?.border
285
285
  }),
286
- className: V(Fn.tag, t)
286
+ className: B(Fn.tag, t)
287
287
  }), Ln = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ Z(In, {
288
288
  label: e,
289
289
  badgeClassName: t,
290
290
  colors: n
291
291
  }), Rn = 8, zn = ({ topics: e, overflowAriaLabel: t, className: n }) => {
292
- let r = G(null), i = G([]), a = G([]), o = G(null), s = G(Infinity), [c, l] = K(e.length), u = e.join("\0"), d = H(() => {
292
+ 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(() => {
293
293
  let t = r.current;
294
294
  if (!t || e.length === 0) return;
295
295
  let n = t.clientWidth;
@@ -305,14 +305,14 @@ var nn = /* @__PURE__ */ function(e) {
305
305
  }
306
306
  l(Math.min(f, s.current));
307
307
  }, [e.length]);
308
- if (_e(() => {
308
+ if (ve(() => {
309
309
  a.current = [], s.current = Infinity, l(e.length);
310
- }, [u]), _e(() => {
310
+ }, [u]), ve(() => {
311
311
  d();
312
- }), _e(() => {
312
+ }), ve(() => {
313
313
  let e = r.current;
314
314
  e && c !== 0 && (e.scrollWidth <= e.clientWidth || (s.current = c - 1, l(s.current)));
315
- }, [c]), U(() => {
315
+ }, [c]), H(() => {
316
316
  let e = r.current;
317
317
  if (!e) return;
318
318
  let t = new ResizeObserver(() => {
@@ -321,12 +321,12 @@ var nn = /* @__PURE__ */ function(e) {
321
321
  return t.observe(e), () => t.disconnect();
322
322
  }, [d]), e.length === 0) return /* @__PURE__ */ Z("div", {
323
323
  ref: r,
324
- className: V("relative flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n)
324
+ className: B("relative flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n)
325
325
  });
326
326
  let f = e.length - c;
327
327
  return /* @__PURE__ */ Q("div", {
328
328
  ref: r,
329
- className: V("flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n),
329
+ className: B("flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n),
330
330
  children: [
331
331
  e.slice(0, c).map((e, t) => /* @__PURE__ */ Z("div", {
332
332
  ref: (e) => {
@@ -350,11 +350,11 @@ var nn = /* @__PURE__ */ function(e) {
350
350
  ]
351
351
  });
352
352
  }, Bn = { img: () => null }, Vn = (e) => e.target instanceof Element && e.target.closest("a") !== null, Hn = (e) => !(e.target instanceof Node) || !e.currentTarget.contains(e.target), Un = ({ 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 }) => {
353
- let [_, v] = K(r), y = T(e, g);
354
- U(() => {
353
+ let [_, v] = G(r), y = T(e, g);
354
+ H(() => {
355
355
  v(r);
356
356
  }, [e.id, r]);
357
- let b = d?.typography?.descriptionClassName ?? "dial-small-paragraph-text", x = W(() => ({
357
+ let b = d?.typography?.descriptionClassName ?? "dial-small-paragraph-text", x = U(() => ({
358
358
  p: b,
359
359
  ul: b,
360
360
  ol: b,
@@ -364,7 +364,7 @@ var nn = /* @__PURE__ */ function(e) {
364
364
  h4: b,
365
365
  h5: b,
366
366
  h6: b
367
- }), [b]), S = d?.typography?.featuredChipClassName, C = d?.typography?.folderLabelClassName ?? "dial-tiny-text", w = d?.typography?.folderLeafClassName ?? "dial-tiny-semi-text", E = B({
367
+ }), [b]), S = d?.typography?.featuredChipClassName, C = d?.typography?.folderLabelClassName ?? "dial-tiny-text", w = d?.typography?.folderLeafClassName ?? "dial-tiny-semi-text", E = z({
368
368
  "--cg-description-text": d?.colors?.textSecondary,
369
369
  "--cg-selected-border": d?.colors?.selectedBorder,
370
370
  "--cg-selected-bg": d?.colors?.selectedBackground,
@@ -372,7 +372,7 @@ var nn = /* @__PURE__ */ function(e) {
372
372
  "--cg-focus-outline": d?.colors?.focusOutline
373
373
  }), D = !m && e.isFeatured === !0, O = !m && a?.(e) !== !1, k = !m || e.folder.length > 0, A = n ? (t) => {
374
374
  !Vn(t) && !Hn(t) && n(e);
375
- } : void 0, j = H((t) => {
375
+ } : void 0, j = V((t) => {
376
376
  t.stopPropagation();
377
377
  let n = !_;
378
378
  v(n), i?.(e.id, n);
@@ -381,20 +381,20 @@ var nn = /* @__PURE__ */ function(e) {
381
381
  i,
382
382
  e.id
383
383
  ]);
384
- return /* @__PURE__ */ Q(Te, {
384
+ return /* @__PURE__ */ Q(Ee, {
385
385
  onClick: A,
386
386
  "aria-label": e.name,
387
387
  style: E,
388
- className: V("box-border cursor-pointer gap-3 p-3", Dn.card, D ? Dn.featuredCard : void 0, l ? Dn.selectedCard : void 0, u, pn.card),
388
+ className: B("box-border cursor-pointer gap-3 p-3", Dn.card, D ? Dn.featuredCard : void 0, l ? Dn.selectedCard : void 0, u, pn.card),
389
389
  children: [
390
390
  n && /* @__PURE__ */ Z("button", {
391
391
  type: "button",
392
- className: V("sr-only", Dn.cardButton),
392
+ className: B("sr-only", Dn.cardButton),
393
393
  children: e.name
394
394
  }),
395
395
  D && /* @__PURE__ */ Z("div", {
396
396
  className: "absolute inset-e-[22px] top-0 -translate-y-1/2",
397
- children: /* @__PURE__ */ Z(re, {
397
+ children: /* @__PURE__ */ Z(ie, {
398
398
  label: o,
399
399
  type: y,
400
400
  className: S,
@@ -415,8 +415,8 @@ var nn = /* @__PURE__ */ function(e) {
415
415
  })
416
416
  }),
417
417
  /* @__PURE__ */ Z("div", {
418
- className: V("line-clamp-3 min-h-[3lh]", "wrap-break-word", Dn.description),
419
- children: e.description && /* @__PURE__ */ Z(z, {
418
+ className: B("line-clamp-3 min-h-[3lh]", "wrap-break-word", Dn.description),
419
+ children: e.description && /* @__PURE__ */ Z(R, {
420
420
  content: e.description,
421
421
  classNames: x,
422
422
  components: Bn,
@@ -429,7 +429,7 @@ var nn = /* @__PURE__ */ function(e) {
429
429
  children: /* @__PURE__ */ Z(zn, { topics: e.topics })
430
430
  }),
431
431
  k && /* @__PURE__ */ Z("div", {
432
- className: V("pt-3", !m && V("border-t", Dn.footer)),
432
+ className: B("pt-3", !m && B("border-t", Dn.footer)),
433
433
  children: /* @__PURE__ */ Q("div", {
434
434
  className: "flex items-center gap-2",
435
435
  children: [/* @__PURE__ */ Z("div", {
@@ -439,21 +439,21 @@ var nn = /* @__PURE__ */ function(e) {
439
439
  labelClassName: C,
440
440
  leafClassName: w
441
441
  }) : /* @__PURE__ */ Z("span", {
442
- className: V(C, Dn.description),
442
+ className: B(C, Dn.description),
443
443
  children: p
444
444
  })
445
445
  }), O && /* @__PURE__ */ Z(Pn, {
446
446
  isStarred: _,
447
- size: Me.Small,
447
+ size: Y.Small,
448
448
  onClick: j,
449
449
  ariaLabel: _ ? c : s,
450
- className: V(!_ && Dn.emptyStarHidden)
450
+ className: B(!_ && Dn.emptyStarHidden)
451
451
  })]
452
452
  })
453
453
  })
454
454
  ]
455
455
  });
456
- }, Wn = 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 }) => {
456
+ }, Wn = 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 }) => {
457
457
  let _ = e * n, v = t.slice(_, _ + n), y = {
458
458
  top: e * 268,
459
459
  height: 268
@@ -487,8 +487,8 @@ var nn = /* @__PURE__ */ function(e) {
487
487
  }, n?.id ?? `spacer-${t}`);
488
488
  })
489
489
  });
490
- }), Gn = pe(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = Dn.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1, featuredChipStyle: f, markdownLabels: p, activeTab: m }) => {
491
- 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 } = En(e.length, { isFullWidth: d }), E = W(() => ({
490
+ }), Gn = me(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = Dn.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1, featuredChipStyle: f, markdownLabels: p, activeTab: m }) => {
491
+ 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 } = En(e.length, { isFullWidth: d }), E = U(() => ({
492
492
  items: e,
493
493
  columnCount: w,
494
494
  query: t,
@@ -527,10 +527,10 @@ var nn = /* @__PURE__ */ function(e) {
527
527
  className: "grid gap-5 p-5",
528
528
  style: {
529
529
  gridTemplateColumns: `repeat(${w}, minmax(0, 1fr))`,
530
- ...B({ "--cg-skeleton-card-bg": l })
530
+ ...z({ "--cg-skeleton-card-bg": l })
531
531
  },
532
532
  children: Array.from({ length: w * 3 }, (e, t) => /* @__PURE__ */ Z("div", {
533
- className: V("rounded-md border p-3", Dn.skeletonCard),
533
+ className: B("rounded-md border p-3", Dn.skeletonCard),
534
534
  style: { height: 248 },
535
535
  children: /* @__PURE__ */ Z(st, {
536
536
  avatar: {
@@ -545,7 +545,7 @@ var nn = /* @__PURE__ */ function(e) {
545
545
  }, t))
546
546
  }) : e.length === 0 ? /* @__PURE__ */ Z("div", {
547
547
  className: "flex size-full flex-col items-center justify-center",
548
- children: /* @__PURE__ */ Z(oe, {
548
+ children: /* @__PURE__ */ Z(se, {
549
549
  label: h,
550
550
  description: a?.noResultsDescription
551
551
  })
@@ -577,7 +577,7 @@ var nn = /* @__PURE__ */ function(e) {
577
577
  "Everyone you shared it with loses access",
578
578
  "Existing share links stop working",
579
579
  "You keep full access — nothing is deleted"
580
- ], tr = (e) => e === s.ApiKey ? "Toolset API keys" : "Toolset credentials", nr = (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?", rr = /* @__PURE__ */ new Set([$.Delete, $.Unshare]), ir = (e) => B({
580
+ ], tr = (e) => e === s.ApiKey ? "Toolset API keys" : "Toolset credentials", nr = (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?", rr = /* @__PURE__ */ new Set([$.Delete, $.Unshare]), ir = (e) => z({
581
581
  "--cat-details-backdrop": e?.backdrop,
582
582
  "--cat-details-bg": e?.background,
583
583
  "--cat-details-border": e?.border,
@@ -627,13 +627,13 @@ var nn = /* @__PURE__ */ function(e) {
627
627
  className: "relative inline-flex shrink-0",
628
628
  children: [
629
629
  /* @__PURE__ */ Z("span", {
630
- className: V("flex size-8 items-center justify-center rounded-lg", sr[n]),
630
+ className: B("flex size-8 items-center justify-center rounded-lg", sr[n]),
631
631
  children: e
632
632
  }),
633
633
  t && /* @__PURE__ */ Z(Ct, {
634
- size: J.MD,
634
+ size: q.MD,
635
635
  "aria-hidden": !0,
636
- className: V("absolute -inset-e-2 -top-2", ar.activeIcon)
636
+ className: B("absolute -inset-e-2 -top-2", ar.activeIcon)
637
637
  }),
638
638
  r != null && /* @__PURE__ */ Z(Ge, {
639
639
  visuallyHidden: !0,
@@ -647,19 +647,19 @@ var nn = /* @__PURE__ */ function(e) {
647
647
  title: "_title_tqnz7_10",
648
648
  description: "_description_tqnz7_14"
649
649
  }, ur = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ Q("div", {
650
- className: V("flex items-center gap-3 rounded-xl p-3", lr.card),
650
+ className: B("flex items-center gap-3 rounded-xl p-3", lr.card),
651
651
  children: [/* @__PURE__ */ Z("span", {
652
- className: V("shrink-0", lr.icon, n != null && "mt-0.5"),
652
+ className: B("shrink-0", lr.icon, n != null && "mt-0.5"),
653
653
  children: e
654
654
  }), /* @__PURE__ */ Q("div", {
655
655
  className: "flex min-w-0 flex-1 items-center justify-between gap-2",
656
656
  children: [/* @__PURE__ */ Q("div", {
657
657
  className: "flex min-w-0 flex-col gap-1",
658
658
  children: [/* @__PURE__ */ Z("span", {
659
- className: V(i, lr.title),
659
+ className: B(i, lr.title),
660
660
  children: t
661
661
  }), n != null && /* @__PURE__ */ Z("span", {
662
- className: V(a, lr.description),
662
+ className: B(a, lr.description),
663
663
  children: n
664
664
  })]
665
665
  }), r != null && /* @__PURE__ */ Z("div", {
@@ -671,16 +671,16 @@ var nn = /* @__PURE__ */ function(e) {
671
671
  let r = /* @__PURE__ */ Z(yt, {
672
672
  size: hr,
673
673
  "aria-hidden": !0,
674
- stroke: Y
674
+ stroke: J
675
675
  });
676
676
  if (e === y.PersonalCredentialsActive) {
677
677
  let e = (n?.personalCredentialsActiveBannerTitle ?? mr)(t);
678
678
  return /* @__PURE__ */ Z(ur, {
679
679
  icon: /* @__PURE__ */ Z(cr, {
680
680
  icon: /* @__PURE__ */ Z(Vt, {
681
- size: J.SM,
681
+ size: q.SM,
682
682
  "aria-hidden": !0,
683
- stroke: Y
683
+ stroke: J
684
684
  }),
685
685
  isActive: !0,
686
686
  surface: or.Raised
@@ -693,9 +693,9 @@ var nn = /* @__PURE__ */ function(e) {
693
693
  return /* @__PURE__ */ Z(ur, {
694
694
  icon: /* @__PURE__ */ Z(cr, {
695
695
  icon: /* @__PURE__ */ Z(yt, {
696
- size: J.SM,
696
+ size: q.SM,
697
697
  "aria-hidden": !0,
698
- stroke: Y
698
+ stroke: J
699
699
  }),
700
700
  isActive: !0,
701
701
  surface: or.Raised
@@ -716,7 +716,7 @@ var nn = /* @__PURE__ */ function(e) {
716
716
  errorText: "_errorText_qltis_13",
717
717
  deleteAction: "_deleteAction_qltis_18"
718
718
  }, vr = ({ 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 }) => {
719
- let w = he(), [T, E] = K(), [D, O] = K(""), [k, A] = K(!1), [j, M] = K(!1), N = r === b.SignedIn, P = H((e) => {
719
+ let w = ge(), [T, E] = G(), [D, O] = G(""), [k, A] = G(!1), [j, M] = G(!1), N = r === b.SignedIn, P = V((e) => {
720
720
  O(e ?? ""), A(!1), E(void 0);
721
721
  }, []), ee = async () => {
722
722
  if (j || y) return;
@@ -732,7 +732,7 @@ var nn = /* @__PURE__ */ function(e) {
732
732
  M(!1);
733
733
  }
734
734
  }
735
- }, F = 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", R = f?.apiKeyConfiguredMessage ?? "Key has been configured", z = `${w}-header-hint`, ae = `${w}-empty-key-error`, oe = 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);
735
+ }, F = f?.loginActionLabel ?? "Log in", te = f?.logoutActionLabel ?? "Log out", I = f?.addApiKeyActionLabel ?? "Add", ne = f?.deleteActionLabel ?? "Delete", re = f?.credentialsSignedInLabel ?? "Signed in", ie = f?.credentialsSignedOutLabel ?? "Signed out", ae = f?.addingApiKeyStatusLabel ?? "Adding", L = 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);
736
736
  return /* @__PURE__ */ Q("div", {
737
737
  role: "group",
738
738
  "aria-label": e,
@@ -741,7 +741,7 @@ var nn = /* @__PURE__ */ function(e) {
741
741
  children: [/* @__PURE__ */ Z(cr, {
742
742
  icon: n,
743
743
  isActive: i,
744
- statusLabel: i ? ne : re
744
+ statusLabel: i ? re : ie
745
745
  }), /* @__PURE__ */ Q("div", {
746
746
  className: "flex min-w-0 flex-1 flex-col gap-1",
747
747
  children: [
@@ -753,13 +753,13 @@ var nn = /* @__PURE__ */ function(e) {
753
753
  className: p,
754
754
  children: e
755
755
  }), /* @__PURE__ */ Z("span", {
756
- className: V(m, _r.rowDescription),
756
+ className: B(m, _r.rowDescription),
757
757
  children: t
758
758
  })]
759
- }), a === s.OAuth && (N ? u && /* @__PURE__ */ Z(Oe, {
760
- size: Me.Small,
761
- appearance: xe.Ghost,
762
- label: I,
759
+ }), a === s.OAuth && (N ? u && /* @__PURE__ */ Z(ke, {
760
+ size: Y.Small,
761
+ appearance: Se.Ghost,
762
+ label: te,
763
763
  className: "min-w-28 shrink-0 justify-center whitespace-nowrap",
764
764
  onClick: u,
765
765
  disabled: j || y
@@ -767,10 +767,10 @@ var nn = /* @__PURE__ */ function(e) {
767
767
  label: j ? void 0 : F,
768
768
  "aria-label": F,
769
769
  iconBefore: j ? /* @__PURE__ */ Z(lt, {
770
- size: J.SM,
770
+ size: q.SM,
771
771
  ariaLabel: F
772
772
  }) : void 0,
773
- size: Me.Small,
773
+ size: Y.Small,
774
774
  disabled: j || y,
775
775
  className: "min-w-28 shrink-0 justify-center whitespace-nowrap",
776
776
  onClick: ee
@@ -783,7 +783,7 @@ var nn = /* @__PURE__ */ function(e) {
783
783
  className: "flex items-end gap-2",
784
784
  children: [/* @__PURE__ */ Z(Ue, {
785
785
  id: w,
786
- "aria-describedby": [oe ? z : void 0, k ? ae : void 0].filter(Boolean).join(" ") || void 0,
786
+ "aria-describedby": [se ? R : void 0, k ? oe : void 0].filter(Boolean).join(" ") || void 0,
787
787
  type: "password",
788
788
  autoComplete: "off",
789
789
  value: D,
@@ -793,25 +793,25 @@ var nn = /* @__PURE__ */ function(e) {
793
793
  disabled: j || y,
794
794
  containerClassName: "min-w-0 flex-1"
795
795
  }), /* @__PURE__ */ Z(Xe, {
796
- label: j ? void 0 : L,
797
- "aria-label": j ? ie : void 0,
796
+ label: j ? void 0 : I,
797
+ "aria-label": j ? ae : void 0,
798
798
  iconBefore: j ? /* @__PURE__ */ Z(lt, {
799
- size: J.SM,
800
- ariaLabel: ie
799
+ size: q.SM,
800
+ ariaLabel: ae
801
801
  }) : void 0,
802
802
  className: "min-h-11 shrink-0 whitespace-nowrap",
803
803
  onClick: ee,
804
804
  disabled: j || y
805
805
  })]
806
806
  }),
807
- /* @__PURE__ */ Z(we, {
808
- id: z,
809
- text: oe,
810
- className: V(m, _r.rowDescription)
807
+ /* @__PURE__ */ Z(Te, {
808
+ id: R,
809
+ text: se,
810
+ className: B(m, _r.rowDescription)
811
811
  }),
812
812
  k && /* @__PURE__ */ Z(Pe, {
813
- id: ae,
814
- className: V(h, _r.errorText),
813
+ id: oe,
814
+ className: B(h, _r.errorText),
815
815
  text: f?.apiKeyRequiredErrorMessage ?? "API key is required."
816
816
  })
817
817
  ]
@@ -820,17 +820,17 @@ var nn = /* @__PURE__ */ function(e) {
820
820
  className: "animate-fadeIn pt-1",
821
821
  children: /* @__PURE__ */ Z(ur, {
822
822
  icon: /* @__PURE__ */ Z(Ot, {
823
- size: J.SM,
823
+ size: q.SM,
824
824
  "aria-hidden": !0,
825
- stroke: Y
825
+ stroke: J
826
826
  }),
827
- title: R,
828
- description: se,
827
+ title: L,
828
+ description: ce,
829
829
  titleClassName: g,
830
830
  descriptionClassName: _,
831
831
  action: d && /* @__PURE__ */ Z(We, {
832
- label: te,
833
- className: V("min-h-11", v),
832
+ label: ne,
833
+ className: B("min-h-11", v),
834
834
  onClick: d,
835
835
  disabled: j || y
836
836
  })
@@ -839,7 +839,7 @@ var nn = /* @__PURE__ */ function(e) {
839
839
  !N && S?.(j || y),
840
840
  /* @__PURE__ */ Z(Pe, {
841
841
  announce: qe.Assertive,
842
- className: V(h, _r.errorText),
842
+ className: B(h, _r.errorText),
843
843
  text: T ?? ""
844
844
  }),
845
845
  C
@@ -847,7 +847,7 @@ var nn = /* @__PURE__ */ function(e) {
847
847
  })]
848
848
  });
849
849
  }, yr = (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.", br = ({ item: e, onLogin: t, onRequestLogout: n, onRequestDeleteApiKey: r, texts: a, detailsStyles: o, deleteActionClassName: s }) => {
850
- let c = V(_r.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;
850
+ let c = B(_r.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;
851
851
  if (h == null) return null;
852
852
  let g = (a?.credentialsManagementDescription ?? yr)(h.authenticationType), _ = h.userStatus === b.SignedIn, v = !_ && h.globalStatus === b.SignedIn;
853
853
  return /* @__PURE__ */ Q("div", {
@@ -855,8 +855,8 @@ var nn = /* @__PURE__ */ function(e) {
855
855
  children: [/* @__PURE__ */ Z("div", {
856
856
  className: "px-6 py-4",
857
857
  children: /* @__PURE__ */ Z("div", {
858
- className: V("rounded-xl p-3", _r.surface),
859
- children: /* @__PURE__ */ Z(te, {
858
+ className: B("rounded-xl p-3", _r.surface),
859
+ children: /* @__PURE__ */ Z(ne, {
860
860
  item: e,
861
861
  iconSize: 40,
862
862
  hasFeaturedTag: !1
@@ -865,7 +865,7 @@ var nn = /* @__PURE__ */ function(e) {
865
865
  }), /* @__PURE__ */ Q("div", {
866
866
  className: "flex flex-col gap-5 px-6 py-4",
867
867
  children: [/* @__PURE__ */ Z("span", {
868
- className: V(l, _r.description),
868
+ className: B(l, _r.description),
869
869
  children: g
870
870
  }), /* @__PURE__ */ Q("div", {
871
871
  className: "flex flex-col",
@@ -873,9 +873,9 @@ var nn = /* @__PURE__ */ function(e) {
873
873
  label: a?.personalCredentialsLabel ?? "Personal credentials",
874
874
  description: a?.personalCredentialsDescription ?? "These credentials apply only to your account.",
875
875
  icon: /* @__PURE__ */ Z(Vt, {
876
- size: J.SM,
876
+ size: q.SM,
877
877
  "aria-hidden": !0,
878
- stroke: Y
878
+ stroke: J
879
879
  }),
880
880
  status: h.userStatus,
881
881
  isActive: _,
@@ -899,9 +899,9 @@ var nn = /* @__PURE__ */ function(e) {
899
899
  label: a?.organizationCredentialsLabel ?? "Organization credentials",
900
900
  description: a?.organizationCredentialsDescription ?? "Once added, these credentials will grant all users in your organization access to this toolset.",
901
901
  icon: /* @__PURE__ */ Z(yt, {
902
- size: J.SM,
902
+ size: q.SM,
903
903
  "aria-hidden": !0,
904
- stroke: Y
904
+ stroke: J
905
905
  }),
906
906
  status: h.globalStatus,
907
907
  isActive: v,
@@ -933,7 +933,7 @@ var nn = /* @__PURE__ */ function(e) {
933
933
  content: "_content_1nv0c_20",
934
934
  tabsScroll: "_tabsScroll_1nv0c_26",
935
935
  publishTitle: "_publishTitle_1nv0c_33"
936
- }, Sr = ({ item: e, publishFlow: t, publishDependencies: n, publishFolderView: r, isPublishCredentialsEligible: i, publishExpandedPaths: a, onPublishExpandedPathsChange: o, publishLoadingPaths: s, getPublishDisabledReason: c, ruleSourceOptions: l, publishLabels: u, resolvePublishDependenciesLabels: d, resolvePublishApprovalLabels: f, publishVersionHistory: p }) => /* @__PURE__ */ Z("div", {
936
+ }, Sr = ({ item: e, publishFlow: t, publishDependencies: n, publishFolderView: r, isPublishCredentialsEligible: i, publishExpandedPaths: a, onPublishExpandedPathsChange: o, publishLoadingPaths: s, getPublishDisabledReason: c, ruleSourceOptions: l, publishLabels: u, resolvePublishDependenciesLabels: d, resolvePublishApprovalLabels: f, publishVersionHistory: p, hidePublishAuthor: m, hidePublishAccessRules: h }) => /* @__PURE__ */ Z("div", {
937
937
  className: "p-4 desktop:p-[22px]",
938
938
  children: /* @__PURE__ */ Z(qt, {
939
939
  resource: {
@@ -958,12 +958,12 @@ var nn = /* @__PURE__ */ function(e) {
958
958
  isSubmitting: t.isSubmitting,
959
959
  hasSubmitError: t.hasSubmitError,
960
960
  allowReplace: !1,
961
- author: t.author,
962
- onAuthorChange: t.setAuthor,
961
+ author: m ? void 0 : t.author,
962
+ onAuthorChange: m ? void 0 : t.setAuthor,
963
963
  publishCredentials: t.publishCredentials,
964
964
  onPublishCredentialsChange: i ? t.setPublishCredentials : void 0,
965
- rules: t.rules,
966
- onRulesChange: t.setRules,
965
+ rules: h ? void 0 : t.rules,
966
+ onRulesChange: h ? void 0 : t.setRules,
967
967
  ruleSourceOptions: l,
968
968
  isRulesLoading: t.isRulesLoading,
969
969
  hasRulesLoadError: t.hasRulesLoadError,
@@ -987,19 +987,19 @@ var nn = /* @__PURE__ */ function(e) {
987
987
  valueFalse: "_valueFalse_jnq93_21",
988
988
  valueText: "_valueText_jnq93_25"
989
989
  }, wr = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(Ct, {
990
- size: J.MD,
991
- className: V(r, Cr.checkIcon)
990
+ size: q.MD,
991
+ className: B(r, Cr.checkIcon)
992
992
  }), /* @__PURE__ */ Z("span", {
993
- className: V(n, Cr.valueTrue),
993
+ className: B(n, Cr.valueTrue),
994
994
  children: i
995
995
  })] }) : e === !1 ? /* @__PURE__ */ Z("span", {
996
- className: V(t, Cr.valueFalse),
996
+ className: B(t, Cr.valueFalse),
997
997
  children: a
998
998
  }) : /* @__PURE__ */ Z("span", {
999
- className: V("min-w-0 wrap-break-word", t, Cr.valueText),
999
+ className: B("min-w-0 wrap-break-word", t, Cr.valueText),
1000
1000
  children: e
1001
1001
  }), Tr = ({ 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 }) => {
1002
- let u = B({
1002
+ let u = z({
1003
1003
  "--tv-section-heading": l?.sectionHeading,
1004
1004
  "--tv-row-alt-bg": l?.rowAlt,
1005
1005
  "--tv-label": l?.label,
@@ -1012,14 +1012,14 @@ var nn = /* @__PURE__ */ function(e) {
1012
1012
  className: "flex flex-col",
1013
1013
  style: u,
1014
1014
  children: t != null && t.length > 0 && /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Z("p", {
1015
- className: V("mt-0 mb-3", o, Cr.sectionHeading),
1015
+ className: B("mt-0 mb-3", o, Cr.sectionHeading),
1016
1016
  children: e
1017
1017
  }), /* @__PURE__ */ Z("ul", {
1018
1018
  className: "m-0 list-none p-0",
1019
1019
  children: t.map((e, t) => /* @__PURE__ */ Q("li", {
1020
- className: V("flex items-center rounded px-3 py-2", t % 2 == 0 ? Cr.rowAlt : void 0),
1020
+ className: B("flex items-center rounded px-3 py-2", t % 2 == 0 ? Cr.rowAlt : void 0),
1021
1021
  children: [/* @__PURE__ */ Z("span", {
1022
- className: V(n, Cr.label, "w-2/5 shrink-0"),
1022
+ className: B(n, Cr.label, "w-2/5 shrink-0"),
1023
1023
  children: e.label
1024
1024
  }), /* @__PURE__ */ Z("div", {
1025
1025
  className: "flex w-3/5 min-w-0 items-center gap-1",
@@ -1044,19 +1044,19 @@ var nn = /* @__PURE__ */ function(e) {
1044
1044
  [nn.Curl]: "bash",
1045
1045
  [nn.JavaScript]: "javascript"
1046
1046
  }, kr = ({ 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" }) => {
1047
- let [s, c] = K(e[0]?.language ?? nn.Python);
1048
- U(() => {
1047
+ let [s, c] = G(e[0]?.language ?? nn.Python);
1048
+ H(() => {
1049
1049
  c(e[0]?.language ?? nn.Python);
1050
1050
  }, [e]);
1051
- let l = W(() => e.map((e) => ({
1051
+ let l = U(() => e.map((e) => ({
1052
1052
  key: e.language,
1053
1053
  label: Dr[e.language] ?? e.language,
1054
1054
  onClick: () => c(e.language)
1055
1055
  })), [e]), u = e.find((e) => e.language === s)?.code ?? "", d = e.length > 1;
1056
1056
  return /* @__PURE__ */ Q("section", { children: [t != null && /* @__PURE__ */ Z("p", {
1057
- className: V("mt-0 mb-3", o, Er.sectionHeading),
1057
+ className: B("mt-0 mb-3", o, Er.sectionHeading),
1058
1058
  children: t
1059
- }), /* @__PURE__ */ Z(R, {
1059
+ }), /* @__PURE__ */ Z(L, {
1060
1060
  language: Or[s] ?? s,
1061
1061
  title: Dr[s] ?? s,
1062
1062
  value: u,
@@ -1070,12 +1070,12 @@ var nn = /* @__PURE__ */ function(e) {
1070
1070
  items: l,
1071
1071
  matchReferenceWidth: !1,
1072
1072
  placement: "bottom-end",
1073
- size: Me.Small,
1073
+ size: Y.Small,
1074
1074
  selectedKey: s
1075
1075
  }) : void 0
1076
1076
  })] });
1077
1077
  }, Ar = ({ 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" }) => {
1078
- let [h, g] = K(0), _ = W(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = W(() => _.map((e, t) => ({
1078
+ let [h, g] = G(0), _ = U(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = U(() => _.map((e, t) => ({
1079
1079
  key: e.url,
1080
1080
  label: e.label,
1081
1081
  onClick: () => g(t)
@@ -1095,7 +1095,7 @@ var nn = /* @__PURE__ */ function(e) {
1095
1095
  valueClassName: d,
1096
1096
  sectionClassName: m
1097
1097
  }),
1098
- w != null && /* @__PURE__ */ Z(R, {
1098
+ w != null && /* @__PURE__ */ Z(L, {
1099
1099
  language: a,
1100
1100
  value: w,
1101
1101
  copyLabel: c,
@@ -1107,10 +1107,10 @@ var nn = /* @__PURE__ */ function(e) {
1107
1107
  }),
1108
1108
  v && /* @__PURE__ */ Q("section", { children: [
1109
1109
  /* @__PURE__ */ Z("p", {
1110
- className: V("mt-0 mb-3", m, Er.sectionHeading),
1110
+ className: B("mt-0 mb-3", m, Er.sectionHeading),
1111
1111
  children: n
1112
1112
  }),
1113
- y != null && /* @__PURE__ */ Z(R, {
1113
+ y != null && /* @__PURE__ */ Z(L, {
1114
1114
  language: y.label,
1115
1115
  value: y.url,
1116
1116
  copyLabel: c,
@@ -1123,7 +1123,7 @@ var nn = /* @__PURE__ */ function(e) {
1123
1123
  items: b,
1124
1124
  matchReferenceWidth: !1,
1125
1125
  placement: "bottom-end",
1126
- size: Me.Small,
1126
+ size: Y.Small,
1127
1127
  selectedKey: y.url
1128
1128
  }) : void 0
1129
1129
  }, h),
@@ -1149,9 +1149,9 @@ var nn = /* @__PURE__ */ function(e) {
1149
1149
  sectionClassName: m
1150
1150
  }),
1151
1151
  E && /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Z("p", {
1152
- className: V("mt-0 mb-3", m, Er.sectionHeading),
1152
+ className: B("mt-0 mb-3", m, Er.sectionHeading),
1153
1153
  children: o
1154
- }), /* @__PURE__ */ Z(R, {
1154
+ }), /* @__PURE__ */ Z(L, {
1155
1155
  language: "bash",
1156
1156
  value: e.requestExample ?? "",
1157
1157
  copyLabel: c,
@@ -1161,9 +1161,9 @@ var nn = /* @__PURE__ */ function(e) {
1161
1161
  hasContentTopPadding: !1
1162
1162
  })] }),
1163
1163
  D && /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Z("p", {
1164
- className: V("mt-0 mb-3", m, Er.sectionHeading),
1164
+ className: B("mt-0 mb-3", m, Er.sectionHeading),
1165
1165
  children: s
1166
- }), /* @__PURE__ */ Z(R, {
1166
+ }), /* @__PURE__ */ Z(L, {
1167
1167
  language: "json",
1168
1168
  value: e.responseSchema ?? "",
1169
1169
  copyLabel: c,
@@ -1178,7 +1178,7 @@ var nn = /* @__PURE__ */ function(e) {
1178
1178
  let i = n?.typography?.contentHeadingClassName ?? "dial-small-semi-text", a = n?.typography?.contentClassName ?? "dial-small-text";
1179
1179
  return /* @__PURE__ */ Q("div", {
1180
1180
  className: "flex flex-col gap-5",
1181
- children: [/* @__PURE__ */ Z(z, {
1181
+ children: [/* @__PURE__ */ Z(R, {
1182
1182
  content: t,
1183
1183
  classNames: {
1184
1184
  h1: i,
@@ -1226,11 +1226,11 @@ var nn = /* @__PURE__ */ function(e) {
1226
1226
  };
1227
1227
  return e.type === un.File || !t.has(e.id) ? [r] : [r, ...Lr(e.items, t, e.id)];
1228
1228
  }), Rr = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text", colors: c }) => {
1229
- let l = B({
1229
+ let l = z({
1230
1230
  "--cat-content-tree-row-hover-bg": c?.rowHoverBackground,
1231
1231
  "--cat-content-tree-row-selected-bg": c?.rowSelectedBackground
1232
- }), u = W(() => Lr(e, n), [e, n]), d = G({}), [f, p] = K(() => t ?? u[0]?.node.id);
1233
- U(() => {
1232
+ }), u = U(() => Lr(e, n), [e, n]), d = W({}), [f, p] = G(() => t ?? u[0]?.node.id);
1233
+ H(() => {
1234
1234
  f != null && d.current[f]?.focus();
1235
1235
  }, []);
1236
1236
  let m = (e) => {
@@ -1264,7 +1264,7 @@ var nn = /* @__PURE__ */ function(e) {
1264
1264
  break;
1265
1265
  case "Escape": e.preventDefault(), a();
1266
1266
  }
1267
- }, g = (e) => V("flex h-10 shrink-0 cursor-pointer items-center gap-2 rounded-2 px-3 outline-hidden", Ir.row, e && Ir.focusedRow), _ = (e) => {
1267
+ }, g = (e) => B("flex h-10 shrink-0 cursor-pointer items-center gap-2 rounded-2 px-3 outline-hidden", Ir.row, e && Ir.focusedRow), _ = (e) => {
1268
1268
  let a = e.id === f;
1269
1269
  if (e.type === un.File) {
1270
1270
  let n = e.id === t;
@@ -1275,11 +1275,11 @@ var nn = /* @__PURE__ */ function(e) {
1275
1275
  role: "treeitem",
1276
1276
  "aria-selected": n,
1277
1277
  tabIndex: a ? 0 : -1,
1278
- className: V(g(a), n && Ir.selectedRow),
1278
+ className: B(g(a), n && Ir.selectedRow),
1279
1279
  onClick: () => i(e.id),
1280
1280
  onFocus: () => p(e.id),
1281
1281
  children: /* @__PURE__ */ Z("span", {
1282
- className: V("min-w-0 flex-1 truncate", s),
1282
+ className: B("min-w-0 flex-1 truncate", s),
1283
1283
  children: e.name
1284
1284
  })
1285
1285
  }, e.id);
@@ -1297,20 +1297,20 @@ var nn = /* @__PURE__ */ function(e) {
1297
1297
  onFocus: () => p(e.id),
1298
1298
  children: [
1299
1299
  /* @__PURE__ */ Z(Dt, {
1300
- size: J.SM,
1300
+ size: q.SM,
1301
1301
  className: "shrink-0",
1302
1302
  "aria-hidden": !0,
1303
- stroke: Y
1303
+ stroke: J
1304
1304
  }),
1305
1305
  /* @__PURE__ */ Z("span", {
1306
- className: V("min-w-0 flex-1 truncate", s),
1306
+ className: B("min-w-0 flex-1 truncate", s),
1307
1307
  children: e.name
1308
1308
  }),
1309
1309
  /* @__PURE__ */ Z(bt, {
1310
- size: J.SM,
1311
- className: V("shrink-0 transition-transform", !o && "-rotate-90 rtl:rotate-90"),
1310
+ size: q.SM,
1311
+ className: B("shrink-0 transition-transform", !o && "-rotate-90 rtl:rotate-90"),
1312
1312
  "aria-hidden": !0,
1313
- stroke: Y
1313
+ stroke: J
1314
1314
  })
1315
1315
  ]
1316
1316
  }), o && e.items.length > 0 && /* @__PURE__ */ Z("div", {
@@ -1327,7 +1327,7 @@ var nn = /* @__PURE__ */ function(e) {
1327
1327
  children: e.map((e) => _(e))
1328
1328
  });
1329
1329
  }, zr = () => void 0, Br = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = zr, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = zr, 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 }) => {
1330
- 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 = Mr(w) > 1, E = Pr(w, r) ?? "", D = {
1330
+ 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 = Mr(w) > 1, E = Pr(w, r) ?? "", D = {
1331
1331
  nodes: w,
1332
1332
  selectedFileId: r,
1333
1333
  expandedFolderIds: o,
@@ -1347,22 +1347,22 @@ var nn = /* @__PURE__ */ function(e) {
1347
1347
  };
1348
1348
  return /* @__PURE__ */ Q("div", {
1349
1349
  className: "flex h-full min-h-0 min-w-0 flex-col gap-4 overflow-y-auto pb-6",
1350
- style: B({ "--cat-details-bg": _?.colors?.background }),
1350
+ style: z({ "--cat-details-bg": _?.colors?.background }),
1351
1351
  children: [
1352
1352
  C && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("p", {
1353
- className: V("m-0 shrink-0 px-6 wrap-break-word", y),
1353
+ className: B("m-0 shrink-0 px-6 wrap-break-word", y),
1354
1354
  children: t
1355
- }), /* @__PURE__ */ Z("div", { className: V("shrink-0", Fr.divider) })] }),
1355
+ }), /* @__PURE__ */ Z("div", { className: B("shrink-0", Fr.divider) })] }),
1356
1356
  T && /* @__PURE__ */ Q("div", {
1357
- className: V("sticky top-0 z-10 flex min-h-10 shrink-0 items-center gap-3 px-6", Fr.fileSelector),
1358
- children: [/* @__PURE__ */ Z(ke, {
1357
+ className: B("sticky top-0 z-10 flex min-h-10 shrink-0 items-center gap-3 px-6", Fr.fileSelector),
1358
+ children: [/* @__PURE__ */ Z(Ae, {
1359
1359
  open: c,
1360
1360
  onOpenChange: l,
1361
1361
  trigger: [],
1362
1362
  matchReferenceWidth: !1,
1363
1363
  listClassName: "w-[280px] shadow-md",
1364
1364
  placement: "bottom-start",
1365
- overlayRole: je.None,
1365
+ overlayRole: Me.None,
1366
1366
  renderOverlay: () => g ? g(D) : /* @__PURE__ */ Z(Rr, {
1367
1367
  ...D,
1368
1368
  colors: {
@@ -1373,19 +1373,19 @@ var nn = /* @__PURE__ */ function(e) {
1373
1373
  children: /* @__PURE__ */ Z(He, {
1374
1374
  id: S,
1375
1375
  label: E,
1376
- size: Me.Small,
1376
+ size: Y.Small,
1377
1377
  isOpen: c,
1378
1378
  onClick: () => l(!c)
1379
1379
  })
1380
1380
  }), /* @__PURE__ */ Z("span", {
1381
- className: V("shrink-0", x, Fr.fileCount),
1381
+ className: B("shrink-0", x, Fr.fileCount),
1382
1382
  children: d(Mr(w))
1383
1383
  })]
1384
1384
  }),
1385
1385
  /* @__PURE__ */ Q("div", {
1386
1386
  role: T ? "region" : void 0,
1387
1387
  "aria-labelledby": T ? S : void 0,
1388
- className: V("min-w-0 shrink-0 px-6 text-start", h != null && "min-h-full", h == null && "wrap-break-word", h == null && Fr.body, h == null && y),
1388
+ className: B("min-w-0 shrink-0 px-6 text-start", h != null && "min-h-full", h == null && "wrap-break-word", h == null && Fr.body, h == null && y),
1389
1389
  children: [/* @__PURE__ */ Z(Ge, {
1390
1390
  visuallyHidden: !0,
1391
1391
  as: Ke.Span,
@@ -1393,12 +1393,12 @@ var nn = /* @__PURE__ */ function(e) {
1393
1393
  }), (() => {
1394
1394
  if (h != null) return h;
1395
1395
  switch (O.type) {
1396
- case dn.Markdown: return /* @__PURE__ */ Z(ae, {
1396
+ case dn.Markdown: return /* @__PURE__ */ Z(oe, {
1397
1397
  content: O.text,
1398
1398
  headingClassName: b,
1399
1399
  ...v
1400
1400
  });
1401
- case dn.Text: return /* @__PURE__ */ Z(R, {
1401
+ case dn.Text: return /* @__PURE__ */ Z(L, {
1402
1402
  language: O.language ?? "",
1403
1403
  value: O.text,
1404
1404
  copyLabel: v?.codeBlockCopyLabel,
@@ -1439,49 +1439,49 @@ var nn = /* @__PURE__ */ function(e) {
1439
1439
  let s = Gr(e), c = Yr(e), l = /* @__PURE__ */ Z(nt, {
1440
1440
  value: Ur(e),
1441
1441
  max: Wr(e.total),
1442
- size: Me.Small,
1443
- className: V("h-1! w-full", Xr.progressTrack, c === Hr.Default && Xr.progressFillDefault, c === Hr.Warning && Xr.progressFillWarning, c === Hr.Danger && Xr.progressFillDanger),
1442
+ size: Y.Small,
1443
+ className: B("h-1! w-full", Xr.progressTrack, c === Hr.Default && Xr.progressFillDefault, c === Hr.Warning && Xr.progressFillWarning, c === Hr.Danger && Xr.progressFillDanger),
1444
1444
  "aria-label": e.label,
1445
1445
  "aria-valuetext": e.ariaLabel ?? s
1446
1446
  }), u = e.captionLabel != null && /* @__PURE__ */ Z("span", {
1447
- className: V("wrap-break-word", r, Xr.label),
1447
+ className: B("wrap-break-word", r, Xr.label),
1448
1448
  children: e.captionLabel
1449
1449
  }), d = e.resetLabel != null && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("time", {
1450
1450
  dateTime: e.resetIsoValue,
1451
1451
  "aria-hidden": e.resetAriaLabel != null || void 0,
1452
- className: V("wrap-break-word", r, Xr.resetLabel),
1452
+ className: B("wrap-break-word", r, Xr.resetLabel),
1453
1453
  children: e.resetLabel
1454
1454
  }), e.resetAriaLabel != null && /* @__PURE__ */ Z("span", {
1455
1455
  className: "sr-only",
1456
1456
  children: e.resetAriaLabel
1457
1457
  })] });
1458
1458
  return t === ln.Stacked ? /* @__PURE__ */ Q("li", {
1459
- className: V("flex flex-col gap-2 border-b py-3 first:pt-0 last:border-b-0 last:pb-0", Xr.divider),
1459
+ className: B("flex flex-col gap-2 border-b py-3 first:pt-0 last:border-b-0 last:pb-0", Xr.divider),
1460
1460
  children: [
1461
1461
  /* @__PURE__ */ Q("div", {
1462
1462
  className: "flex items-baseline justify-between gap-3",
1463
1463
  children: [/* @__PURE__ */ Z("span", {
1464
- className: V("min-w-0 wrap-break-word", n, Xr.valuePrimary),
1464
+ className: B("min-w-0 wrap-break-word", n, Xr.valuePrimary),
1465
1465
  children: e.label
1466
1466
  }), /* @__PURE__ */ Z("span", {
1467
- className: V("shrink-0", i, c === Hr.Danger ? Xr.valueDanger : Xr.valuePrimary),
1467
+ className: B("shrink-0", i, c === Hr.Danger ? Xr.valueDanger : Xr.valuePrimary),
1468
1468
  children: s
1469
1469
  })]
1470
1470
  }),
1471
1471
  u,
1472
1472
  qr(e) ? l : e.noteLabel != null && /* @__PURE__ */ Z("span", {
1473
- className: V(o, Xr.label),
1473
+ className: B(o, Xr.label),
1474
1474
  children: e.noteLabel
1475
1475
  }),
1476
1476
  d
1477
1477
  ]
1478
1478
  }) : /* @__PURE__ */ Q("li", {
1479
- className: V("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", Xr.divider),
1479
+ className: B("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", Xr.divider),
1480
1480
  children: [/* @__PURE__ */ Q("div", {
1481
1481
  className: "flex min-w-0 flex-1 flex-col",
1482
1482
  children: [
1483
1483
  /* @__PURE__ */ Z("span", {
1484
- className: V("wrap-break-word", n, Xr.label),
1484
+ className: B("wrap-break-word", n, Xr.label),
1485
1485
  children: e.label
1486
1486
  }),
1487
1487
  u,
@@ -1490,7 +1490,7 @@ var nn = /* @__PURE__ */ function(e) {
1490
1490
  }), qr(e) ? /* @__PURE__ */ Q("div", {
1491
1491
  className: "flex w-32 shrink-0 flex-col items-end gap-2",
1492
1492
  children: [/* @__PURE__ */ Z("div", {
1493
- className: V("flex gap-1", i),
1493
+ className: B("flex gap-1", i),
1494
1494
  children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("span", {
1495
1495
  className: Xr.valuePrimary,
1496
1496
  children: e.usedLabel
@@ -1505,16 +1505,16 @@ var nn = /* @__PURE__ */ function(e) {
1505
1505
  }) : /* @__PURE__ */ Q("div", {
1506
1506
  className: "flex shrink-0 flex-col items-end",
1507
1507
  children: [/* @__PURE__ */ Z("span", {
1508
- className: V(a, Xr.valuePrimary),
1508
+ className: B(a, Xr.valuePrimary),
1509
1509
  children: s
1510
1510
  }), e.noteLabel != null && /* @__PURE__ */ Z("span", {
1511
- className: V(o, Xr.label),
1511
+ className: B(o, Xr.label),
1512
1512
  children: e.noteLabel
1513
1513
  })]
1514
1514
  })]
1515
1515
  });
1516
1516
  }, Qr = ({ group: e, sectionClassName: t, layout: n, labelClassName: r, captionClassName: i, valueClassName: a, noteValueClassName: o, noteClassName: s }) => /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Z("p", {
1517
- className: V("mt-0 mb-3", t, Xr.sectionHeading),
1517
+ className: B("mt-0 mb-3", t, Xr.sectionHeading),
1518
1518
  children: e.label
1519
1519
  }), /* @__PURE__ */ Z("ul", {
1520
1520
  className: "m-0 flex list-none flex-col p-0",
@@ -1530,7 +1530,7 @@ var nn = /* @__PURE__ */ function(e) {
1530
1530
  })] }), $r = ({ limits: e, layout: t = ln.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 }) => {
1531
1531
  let d = e?.groups.filter((e) => e.rows.length > 0);
1532
1532
  if (d == null || d.length === 0) return null;
1533
- let f = B({
1533
+ let f = z({
1534
1534
  "--lt-section-heading": u?.sectionHeading,
1535
1535
  "--lt-label": u?.label,
1536
1536
  "--lt-value-primary": u?.valuePrimary,
@@ -1554,7 +1554,7 @@ var nn = /* @__PURE__ */ function(e) {
1554
1554
  noteValueClassName: a,
1555
1555
  noteClassName: o
1556
1556
  }, e.label)), l != null && /* @__PURE__ */ Z("p", {
1557
- className: V("m-0 border-t pt-4", c, Xr.divider, Xr.label),
1557
+ className: B("m-0 border-t pt-4", c, Xr.divider, Xr.label),
1558
1558
  children: l
1559
1559
  })]
1560
1560
  });
@@ -1562,7 +1562,7 @@ var nn = /* @__PURE__ */ function(e) {
1562
1562
  className: "flex flex-col gap-4",
1563
1563
  children: e.map((e, c) => /* @__PURE__ */ Q("div", {
1564
1564
  className: "flex flex-col gap-4",
1565
- children: [c > 0 && /* @__PURE__ */ Z("div", { className: V("shrink-0 border-b", xr.divider) }), /* @__PURE__ */ Z("div", {
1565
+ children: [c > 0 && /* @__PURE__ */ Z("div", { className: B("shrink-0 border-b", xr.divider) }), /* @__PURE__ */ Z("div", {
1566
1566
  className: s,
1567
1567
  children: /* @__PURE__ */ Z(Tr, {
1568
1568
  sectionLabel: e.title,
@@ -1609,13 +1609,13 @@ var nn = /* @__PURE__ */ function(e) {
1609
1609
  }, ri = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
1610
1610
  let a = n ?? `repeat(${e.length}, 1fr)`;
1611
1611
  return /* @__PURE__ */ Q("div", {
1612
- className: V(ni.container, "grid overflow-hidden rounded-md"),
1612
+ className: B(ni.container, "grid overflow-hidden rounded-md"),
1613
1613
  style: { gridTemplateColumns: a },
1614
1614
  children: [e.map((e) => /* @__PURE__ */ Z("div", {
1615
- className: V("px-2 py-1 text-start", r, ni.header),
1615
+ className: B("px-2 py-1 text-start", r, ni.header),
1616
1616
  children: e
1617
- }, e)), t.map((e, t) => /* @__PURE__ */ Z(fe, { children: e.map((e, n) => /* @__PURE__ */ Z("div", {
1618
- className: V("px-2 py-1.5", i, ni.cell, t % 2 == 1 ? ni.evenRow : void 0),
1617
+ }, e)), t.map((e, t) => /* @__PURE__ */ Z(pe, { children: e.map((e, n) => /* @__PURE__ */ Z("div", {
1618
+ className: B("px-2 py-1.5", i, ni.cell, t % 2 == 1 ? ni.evenRow : void 0),
1619
1619
  children: e
1620
1620
  }, n)) }, t))]
1621
1621
  });
@@ -1637,7 +1637,7 @@ var nn = /* @__PURE__ */ function(e) {
1637
1637
  let c = {
1638
1638
  ...ai,
1639
1639
  ...s
1640
- }, [l, u] = K(""), d = l.trim(), f = W(() => {
1640
+ }, [l, u] = G(""), d = l.trim(), f = U(() => {
1641
1641
  let t = l.trim().toLowerCase(), n = e?.tools ?? [];
1642
1642
  return t === "" ? n : n.filter((e) => si(e, t));
1643
1643
  }, [e, l]);
@@ -1654,13 +1654,13 @@ var nn = /* @__PURE__ */ function(e) {
1654
1654
  onChange: (e) => u(e ?? "")
1655
1655
  }), /* @__PURE__ */ Z(Ge, {
1656
1656
  as: Ke.Span,
1657
- className: V(a, ii.count),
1657
+ className: B(a, ii.count),
1658
1658
  children: c.toolCount(f.length)
1659
1659
  })]
1660
1660
  }),
1661
- f.length === 0 && l.trim() !== "" && /* @__PURE__ */ Z(oe, { label: c.noResults }),
1661
+ f.length === 0 && l.trim() !== "" && /* @__PURE__ */ Z(se, { label: c.noResults }),
1662
1662
  f.map((e, a) => /* @__PURE__ */ Q("div", {
1663
- className: V("flex flex-col gap-3 px-[22px] py-4", a > 0 ? ii.divider : void 0),
1663
+ className: B("flex flex-col gap-3 px-[22px] py-4", a > 0 ? ii.divider : void 0),
1664
1664
  children: [
1665
1665
  /* @__PURE__ */ Q("div", {
1666
1666
  className: "flex flex-col gap-1",
@@ -1671,7 +1671,7 @@ var nn = /* @__PURE__ */ function(e) {
1671
1671
  query: d
1672
1672
  })
1673
1673
  }), e.description != null && /* @__PURE__ */ Z("p", {
1674
- className: V("m-0", n, ii.description),
1674
+ className: B("m-0", n, ii.description),
1675
1675
  children: /* @__PURE__ */ Z(Be, {
1676
1676
  text: e.description,
1677
1677
  query: d,
@@ -1688,11 +1688,11 @@ var nn = /* @__PURE__ */ function(e) {
1688
1688
  columnsTemplate: "1fr 1fr auto",
1689
1689
  rows: e.inputParams.map((e) => [
1690
1690
  /* @__PURE__ */ Z("code", {
1691
- className: V("border-none bg-transparent p-0 text-inherit", o),
1691
+ className: B("border-none bg-transparent p-0 text-inherit", o),
1692
1692
  children: e.name
1693
1693
  }, "name"),
1694
1694
  /* @__PURE__ */ Z("code", {
1695
- className: V("border-none bg-transparent p-0 text-inherit", o),
1695
+ className: B("border-none bg-transparent p-0 text-inherit", o),
1696
1696
  children: e.type
1697
1697
  }, "type"),
1698
1698
  e.isRequired ? "✓" : "—"
@@ -1703,7 +1703,7 @@ var nn = /* @__PURE__ */ function(e) {
1703
1703
  e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ Z(ri, {
1704
1704
  columns: [c.annotationKey, c.annotationValue],
1705
1705
  rows: e.annotations.map((e) => [/* @__PURE__ */ Z("code", {
1706
- className: V("border-none bg-transparent p-0 text-inherit", o),
1706
+ className: B("border-none bg-transparent p-0 text-inherit", o),
1707
1707
  children: e.key
1708
1708
  }, "key"), e.value]),
1709
1709
  headingClassName: r,
@@ -1714,12 +1714,12 @@ var nn = /* @__PURE__ */ function(e) {
1714
1714
  ]
1715
1715
  });
1716
1716
  }, li = ({ item: e, tabs: t, activeTab: r, onTabChange: i, isDetailsLoading: a = !1, contentFile: o, renderContentFileTree: s, texts: c, detailsStyles: l, limitsFooterNote: u }) => {
1717
- 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 = W(() => bn(c), [c]), E = W(() => {
1717
+ 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(() => bn(c), [c]), E = U(() => {
1718
1718
  let e = {};
1719
1719
  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;
1720
1720
  }, [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", {
1721
1721
  className: "flex size-full items-center justify-center py-6",
1722
- children: /* @__PURE__ */ Z(oe, { label: D })
1722
+ children: /* @__PURE__ */ Z(se, { label: D })
1723
1723
  }), M = c?.overviewYesLabel ?? "Yes", N = c?.overviewNoLabel ?? "No";
1724
1724
  return /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Q("div", {
1725
1725
  className: "flex items-center px-6",
@@ -1728,7 +1728,7 @@ var nn = /* @__PURE__ */ function(e) {
1728
1728
  tabs: t,
1729
1729
  activeTabId: r,
1730
1730
  onTabChange: i,
1731
- className: V("min-w-0 flex-1 overflow-x-auto", xr.tabsScroll),
1731
+ className: B("min-w-0 flex-1 overflow-x-auto", xr.tabsScroll),
1732
1732
  tabClassName: "shrink-0"
1733
1733
  }),
1734
1734
  /* @__PURE__ */ Z(Ge, {
@@ -1751,7 +1751,7 @@ var nn = /* @__PURE__ */ function(e) {
1751
1751
  })
1752
1752
  ]
1753
1753
  }), /* @__PURE__ */ Q("div", {
1754
- 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"),
1754
+ 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"),
1755
1755
  children: [
1756
1756
  r === n.About && O ? j : null,
1757
1757
  r === n.About && !O && /* @__PURE__ */ Z(jr, {
@@ -1822,7 +1822,7 @@ var nn = /* @__PURE__ */ function(e) {
1822
1822
  }, ui = /* @__PURE__ */ function(e) {
1823
1823
  return e.Idle = "idle", e.Loading = "loading", e.Resolved = "resolved", e.Unknown = "unknown", e;
1824
1824
  }({}), di = (e) => e === s.ApiKey ? "Manage API keys" : "Manage credentials", fi = ({ 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 }) => {
1825
- 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), ee = p?.(e) ?? !0, F = 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)), R = re && !ie, z = !n && e.isMyApp, ae = !n && !!x && e.isMyApp !== !0 && e.sharedWithMe === !0 && (S?.(e) ?? !0), oe = !n && !!C && e.isMyApp === !0 && (!w || E === ui.Unknown || E === ui.Resolved && (D ?? 0) > 0) && (T?.(e) ?? !0), se = c?.(e);
1825
+ 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), ee = p?.(e) ?? !0, F = m?.(e) ?? !1, te = e.credentials?.authenticationType ?? s.None, I = e.credentials != null && te !== s.None ? v(e.credentials) : void 0, ne = !n && I != null && (!!h || !!g), re = e.type === P.Toolset && ne, ie = !!_ && (y?.(e) ?? !0), ae = ie && !re && (b?.(e) ?? (e.type === P.Skill && !O)), L = ie && !ae, R = !n && e.isMyApp, oe = !n && !!x && e.isMyApp !== !0 && e.sharedWithMe === !0 && (S?.(e) ?? !0), se = !n && !!C && e.isMyApp === !0 && (!w || E === ui.Unknown || E === ui.Resolved && (D ?? 0) > 0) && (T?.(e) ?? !0), ce = c?.(e);
1826
1826
  return {
1827
1827
  shouldShowPrimaryAction: O,
1828
1828
  shouldShowUnpublish: k,
@@ -1832,19 +1832,19 @@ var nn = /* @__PURE__ */ function(e) {
1832
1832
  shouldShowShareAction: N,
1833
1833
  isShareInActionRow: ee,
1834
1834
  isPublishInActionRow: F,
1835
- authenticationType: I,
1836
- credentialsUiState: L,
1837
- shouldShowCredentialsAction: te,
1838
- isCredentialsActionPrimary: ne,
1839
- isDownloadActionPrimary: ie,
1840
- shouldShowDownloadAction: R,
1841
- shouldShowDeleteAction: z,
1842
- shouldShowUnshareAction: ae,
1843
- shouldShowRevokeShareAction: oe,
1844
- mayGainUnpublishEntry: !n && !!i && (se == null || se && !l),
1835
+ authenticationType: te,
1836
+ credentialsUiState: I,
1837
+ shouldShowCredentialsAction: ne,
1838
+ isCredentialsActionPrimary: re,
1839
+ isDownloadActionPrimary: ae,
1840
+ shouldShowDownloadAction: L,
1841
+ shouldShowDeleteAction: R,
1842
+ shouldShowUnshareAction: oe,
1843
+ shouldShowRevokeShareAction: se,
1844
+ mayGainUnpublishEntry: !n && !!i && (ce == null || ce && !l),
1845
1845
  mayGainRevokeShareEntry: !n && !!C && !!w && e.isMyApp === !0 && (T?.(e) ?? !0),
1846
- isApiKeyConfigured: I === s.ApiKey && L === a.LogOut,
1847
- isOAuthLogoutState: I !== s.ApiKey && L !== a.ManageCredentials && L === a.LogOut
1846
+ isApiKeyConfigured: te === s.ApiKey && I === a.LogOut,
1847
+ isOAuthLogoutState: te !== s.ApiKey && I !== a.ManageCredentials && I === a.LogOut
1848
1848
  };
1849
1849
  }, pi = {
1850
1850
  name: "_name_rnlwb_1",
@@ -1856,9 +1856,9 @@ var nn = /* @__PURE__ */ function(e) {
1856
1856
  hint: "_hint_1lu6m_5",
1857
1857
  deleteAction: "_deleteAction_1lu6m_10"
1858
1858
  }, hi = 16, gi = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, apiKeyHeader: i, onLogin: a, onLogout: o, onClose: s, texts: c, colors: l, typography: u, deleteActionClassName: d }) => {
1859
- let { credentialsOverlayTitleClassName: f = "dial-small-semi-text", credentialsHintClassName: p = "dial-caption-text", credentialsErrorClassName: m = "dial-caption-text" } = u ?? {}, [h, g] = K(""), [_, v] = K(!1), [y, x] = K(!1), [S, C] = K(!1), w = n === b.SignedIn, T = H((e) => {
1859
+ 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) => {
1860
1860
  g(e ?? ""), v(!1);
1861
- }, []), E = H(async () => {
1861
+ }, []), E = V(async () => {
1862
1862
  if (h.trim().length === 0) v(!0);
1863
1863
  else {
1864
1864
  x(!0);
@@ -1877,7 +1877,7 @@ var nn = /* @__PURE__ */ function(e) {
1877
1877
  h,
1878
1878
  a,
1879
1879
  s
1880
- ]), D = H(async () => {
1880
+ ]), D = V(async () => {
1881
1881
  C(!0);
1882
1882
  try {
1883
1883
  await o?.(e, { level: t }), s();
@@ -1889,7 +1889,7 @@ var nn = /* @__PURE__ */ function(e) {
1889
1889
  t,
1890
1890
  o,
1891
1891
  s
1892
- ]), 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", ee = `catalog-item-${e.id}-${t}-api-key`, F = `${ee}-header-hint`, I = `${ee}-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({
1892
+ ]), 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", ee = `catalog-item-${e.id}-${t}-api-key`, F = `${ee}-header-hint`, te = `${ee}-empty-key-error`, I = i ? (c?.apiKeyHeaderHint ?? ((e) => `Enter your API key value for "${e}" header`))(i) : void 0, ne = r == null ? void 0 : (c?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(r), re = z({
1893
1893
  "--cat-details-divider": l?.divider,
1894
1894
  "--cat-cred-hint-text": l?.credentialsHintText,
1895
1895
  "--cat-cred-card-bg": l?.credentialsCardBackground,
@@ -1900,7 +1900,7 @@ var nn = /* @__PURE__ */ function(e) {
1900
1900
  });
1901
1901
  return /* @__PURE__ */ Q("div", {
1902
1902
  className: "flex w-[418px] flex-col",
1903
- style: ne,
1903
+ style: re,
1904
1904
  children: [
1905
1905
  /* @__PURE__ */ Z("div", {
1906
1906
  className: "flex items-center gap-2 px-4 py-3",
@@ -1909,7 +1909,7 @@ var nn = /* @__PURE__ */ function(e) {
1909
1909
  children: O
1910
1910
  })
1911
1911
  }),
1912
- /* @__PURE__ */ Z("div", { className: V("mx-4 h-px", mi.divider) }),
1912
+ /* @__PURE__ */ Z("div", { className: B("mx-4 h-px", mi.divider) }),
1913
1913
  !w && /* @__PURE__ */ Q("div", {
1914
1914
  className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
1915
1915
  children: [
@@ -1917,7 +1917,7 @@ var nn = /* @__PURE__ */ function(e) {
1917
1917
  className: "flex items-end gap-2",
1918
1918
  children: [/* @__PURE__ */ Z(Ue, {
1919
1919
  id: ee,
1920
- "aria-describedby": [L ? F : void 0, _ ? I : void 0].filter(Boolean).join(" ") || void 0,
1920
+ "aria-describedby": [I ? F : void 0, _ ? te : void 0].filter(Boolean).join(" ") || void 0,
1921
1921
  type: "password",
1922
1922
  autoComplete: "current-password",
1923
1923
  value: h,
@@ -1937,13 +1937,13 @@ var nn = /* @__PURE__ */ function(e) {
1937
1937
  disabled: y
1938
1938
  })]
1939
1939
  }),
1940
- /* @__PURE__ */ Z(we, {
1940
+ /* @__PURE__ */ Z(Te, {
1941
1941
  id: F,
1942
- text: L,
1943
- className: V(p, mi.hint)
1942
+ text: I,
1943
+ className: B(p, mi.hint)
1944
1944
  }),
1945
1945
  _ && /* @__PURE__ */ Z(Pe, {
1946
- id: I,
1946
+ id: te,
1947
1947
  className: m,
1948
1948
  text: N
1949
1949
  })
@@ -1955,10 +1955,10 @@ var nn = /* @__PURE__ */ function(e) {
1955
1955
  icon: /* @__PURE__ */ Z(Ot, {
1956
1956
  size: 20,
1957
1957
  "aria-hidden": !0,
1958
- stroke: Y
1958
+ stroke: J
1959
1959
  }),
1960
1960
  title: P,
1961
- description: te,
1961
+ description: ne,
1962
1962
  action: /* @__PURE__ */ Z(We, {
1963
1963
  label: S ? void 0 : A,
1964
1964
  "aria-label": S ? M : void 0,
@@ -1966,7 +1966,7 @@ var nn = /* @__PURE__ */ function(e) {
1966
1966
  size: hi,
1967
1967
  ariaLabel: M
1968
1968
  }) : void 0,
1969
- className: V(mi.deleteAction, d),
1969
+ className: B(mi.deleteAction, d),
1970
1970
  onClick: D,
1971
1971
  disabled: S
1972
1972
  })
@@ -1975,7 +1975,7 @@ var nn = /* @__PURE__ */ function(e) {
1975
1975
  ]
1976
1976
  });
1977
1977
  }, _i = ({ item: e, buttonComponent: t, authenticationType: n, credentialsUiState: r, onLogin: o, onLogout: c, onOpenCredentialsManagement: l, onRequestLogout: u, texts: f, detailsStyles: p }) => {
1978
- let [m, h] = K(!1), g = n === s.ApiKey && r !== a.ManageCredentials, _ = e.credentials == null ? i.User : d(e.credentials), v = H(() => {
1978
+ let [m, h] = G(!1), g = n === s.ApiKey && r !== a.ManageCredentials, _ = e.credentials == null ? i.User : d(e.credentials), v = V(() => {
1979
1979
  r === a.ManageCredentials ? l?.() : g ? h((e) => !e) : r === a.LogOut ? u?.() : e.credentials != null && o?.(e, { level: d(e.credentials) });
1980
1980
  }, [
1981
1981
  r,
@@ -1985,21 +1985,21 @@ var nn = /* @__PURE__ */ function(e) {
1985
1985
  l,
1986
1986
  u
1987
1987
  ]), y = r === a.ManageCredentials ? (f?.manageCredentialsActionLabel ?? di)(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(Ot, {
1988
- size: J.MD,
1989
- stroke: Y
1988
+ size: q.MD,
1989
+ stroke: J
1990
1990
  }) : r === a.LogOut ? /* @__PURE__ */ Z(Mt, {
1991
- size: J.MD,
1992
- stroke: Y
1991
+ size: q.MD,
1992
+ stroke: J
1993
1993
  }) : /* @__PURE__ */ Z(jt, {
1994
- size: J.MD,
1995
- stroke: Y
1994
+ size: q.MD,
1995
+ stroke: J
1996
1996
  }), x = r === a.ManageCredentials ? /* @__PURE__ */ Z(vt, {
1997
- size: J.MD,
1997
+ size: q.MD,
1998
1998
  className: "rtl:scale-x-[-1]",
1999
- stroke: Y
1999
+ stroke: J
2000
2000
  }) : g ? /* @__PURE__ */ Z(bt, {
2001
- size: J.MD,
2002
- stroke: Y
2001
+ size: q.MD,
2002
+ stroke: J
2003
2003
  }) : void 0, S = /* @__PURE__ */ Z(t, {
2004
2004
  label: y,
2005
2005
  iconBefore: b,
@@ -2007,14 +2007,14 @@ var nn = /* @__PURE__ */ function(e) {
2007
2007
  onClick: v,
2008
2008
  "aria-expanded": g ? m : void 0
2009
2009
  });
2010
- return !g || e.credentials == null ? S : /* @__PURE__ */ Z(ke, {
2010
+ return !g || e.credentials == null ? S : /* @__PURE__ */ Z(Ae, {
2011
2011
  placement: "bottom-start",
2012
2012
  matchReferenceWidth: !1,
2013
2013
  open: m,
2014
2014
  onOpenChange: h,
2015
2015
  trigger: [],
2016
2016
  outsideClosable: !0,
2017
- overlayRole: je.Dialog,
2017
+ overlayRole: Me.Dialog,
2018
2018
  overlayAriaLabel: f?.personalApiKeyPanelTitle ?? "Personal API key",
2019
2019
  renderOverlay: () => /* @__PURE__ */ Z(gi, {
2020
2020
  item: e,
@@ -2032,7 +2032,7 @@ var nn = /* @__PURE__ */ function(e) {
2032
2032
  children: S
2033
2033
  });
2034
2034
  }, vi = (e) => e.isMyApp === !0, yi = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
2035
- let [a, o] = K(!1), s = H(() => {
2035
+ let [a, o] = G(!1), s = V(() => {
2036
2036
  n ? o((e) => !e) : t?.(e);
2037
2037
  }, [
2038
2038
  e,
@@ -2043,25 +2043,25 @@ var nn = /* @__PURE__ */ function(e) {
2043
2043
  let c = /* @__PURE__ */ Z(Xe, {
2044
2044
  label: i,
2045
2045
  iconBefore: /* @__PURE__ */ Z(It, {
2046
- size: J.MD,
2047
- stroke: Y
2046
+ size: q.MD,
2047
+ stroke: J
2048
2048
  }),
2049
2049
  iconAfter: /* @__PURE__ */ Z(bt, {
2050
- size: J.MD,
2051
- stroke: Y
2050
+ size: q.MD,
2051
+ stroke: J
2052
2052
  }),
2053
2053
  onClick: s,
2054
2054
  "aria-haspopup": n ? "menu" : void 0,
2055
2055
  "aria-expanded": n ? a : void 0
2056
2056
  });
2057
- return n ? /* @__PURE__ */ Z(ke, {
2057
+ return n ? /* @__PURE__ */ Z(Ae, {
2058
2058
  placement: "bottom-end",
2059
2059
  matchReferenceWidth: !1,
2060
2060
  open: a,
2061
2061
  onOpenChange: o,
2062
2062
  trigger: [],
2063
2063
  outsideClosable: !0,
2064
- overlayRole: je.None,
2064
+ overlayRole: Me.None,
2065
2065
  renderOverlay: () => n(e, () => o(!1)),
2066
2066
  children: c
2067
2067
  }) : c;
@@ -2071,25 +2071,25 @@ var nn = /* @__PURE__ */ function(e) {
2071
2071
  shareOverlay: s,
2072
2072
  isShareVisible: f,
2073
2073
  label: p?.shareLabel
2074
- }) : /* @__PURE__ */ Z(i ? Oe : Xe, {
2074
+ }) : /* @__PURE__ */ Z(i ? ke : Xe, {
2075
2075
  label: n,
2076
2076
  iconBefore: /* @__PURE__ */ Z(r, {
2077
- size: J.MD,
2077
+ size: q.MD,
2078
2078
  "aria-hidden": !0,
2079
- stroke: Y
2079
+ stroke: J
2080
2080
  }),
2081
2081
  onClick: a
2082
2082
  }))(t) : n.length > 0 ? (() => {
2083
- let t = /* @__PURE__ */ Z(ke, {
2083
+ let t = /* @__PURE__ */ Z(Ae, {
2084
2084
  items: n,
2085
2085
  placement: "bottom-end",
2086
2086
  matchReferenceWidth: !1,
2087
2087
  onOpenChange: r,
2088
2088
  children: /* @__PURE__ */ Z(Ze, {
2089
2089
  icon: /* @__PURE__ */ Z(wt, {
2090
- size: J.LG,
2090
+ size: q.LG,
2091
2091
  "aria-hidden": !0,
2092
- stroke: Y
2092
+ stroke: J
2093
2093
  }),
2094
2094
  "aria-label": p?.manageActionLabel ?? "Manage",
2095
2095
  "aria-haspopup": "menu",
@@ -2097,19 +2097,19 @@ var nn = /* @__PURE__ */ function(e) {
2097
2097
  onFocus: i
2098
2098
  })
2099
2099
  });
2100
- return a || !s || !o ? t : /* @__PURE__ */ Z(ke, {
2100
+ return a || !s || !o ? t : /* @__PURE__ */ Z(Ae, {
2101
2101
  placement: "bottom-end",
2102
2102
  matchReferenceWidth: !1,
2103
2103
  open: c,
2104
2104
  onOpenChange: l,
2105
2105
  trigger: [],
2106
2106
  outsideClosable: !0,
2107
- overlayRole: je.None,
2107
+ overlayRole: Me.None,
2108
2108
  renderOverlay: () => s(e, u),
2109
2109
  children: t
2110
2110
  });
2111
2111
  })() : null, xi = ({ 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 }) => {
2112
- 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 = W(() => {
2112
+ 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(() => {
2113
2113
  let e = [];
2114
2114
  if (!p && m && e.push({
2115
2115
  key: "share",
@@ -2184,17 +2184,17 @@ var nn = /* @__PURE__ */ function(e) {
2184
2184
  u,
2185
2185
  d,
2186
2186
  f
2187
- ]), E = n?.colors?.manageMenuIcon, D = W(() => B({ "--cat-details-manage-menu-icon": E }), [E]);
2187
+ ]), E = n?.colors?.manageMenuIcon, D = U(() => z({ "--cat-details-manage-menu-icon": E }), [E]);
2188
2188
  return {
2189
- manageItems: W(() => T.map(({ key: e, label: t, Icon: n, iconClassName: r, danger: i, onClick: a }) => ({
2189
+ manageItems: U(() => T.map(({ key: e, label: t, Icon: n, iconClassName: r, danger: i, onClick: a }) => ({
2190
2190
  key: e,
2191
2191
  label: t,
2192
2192
  icon: /* @__PURE__ */ Z(n, {
2193
- size: J.SM,
2193
+ size: q.SM,
2194
2194
  "aria-hidden": !0,
2195
2195
  className: r,
2196
2196
  style: D,
2197
- stroke: Y
2197
+ stroke: J
2198
2198
  }),
2199
2199
  danger: i,
2200
2200
  onClick: a
@@ -2202,13 +2202,13 @@ var nn = /* @__PURE__ */ function(e) {
2202
2202
  promotedManageAction: T.length === 1 && !i && !C && !w ? T[0] : void 0
2203
2203
  };
2204
2204
  }, Si = ({ item: e, onFetchRecipientsCount: t, onRevokeShare: n, isRevokeShareVisible: r }) => {
2205
- let [i, a] = K(ui.Idle), [o, s] = K(void 0), c = G(null);
2206
- return U(() => {
2205
+ let [i, a] = G(ui.Idle), [o, s] = G(void 0), c = W(null);
2206
+ return H(() => {
2207
2207
  c.current = null, a(ui.Idle), s(void 0);
2208
2208
  }, [e.id]), {
2209
2209
  recipientsCountStatus: i,
2210
2210
  recipientsCount: o,
2211
- requestRecipientsCount: H(() => {
2211
+ requestRecipientsCount: V(() => {
2212
2212
  if (!t || c.current === e.id || !n || e.isMyApp !== !0 || r?.(e) === !1) return;
2213
2213
  let i = e.id;
2214
2214
  c.current = i, a(ui.Loading), (async () => {
@@ -2232,73 +2232,73 @@ var nn = /* @__PURE__ */ function(e) {
2232
2232
  [rn.LimitReached]: pi.limitReached,
2233
2233
  [rn.RunningLow]: pi.limitRunningLow
2234
2234
  }, wi = ({ status: e, label: t, className: n }) => /* @__PURE__ */ Z("div", {
2235
- className: V("flex h-[24px] items-center justify-center gap-1 rounded-2xl px-2 whitespace-nowrap", n, Ci[e]),
2235
+ className: B("flex h-[24px] items-center justify-center gap-1 rounded-2xl px-2 whitespace-nowrap", n, Ci[e]),
2236
2236
  children: t
2237
2237
  }), Ti = ({ 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 }) => {
2238
- let { nameClassName: M = "dial-body-semi-text", folderLabelClassName: N = "dial-tiny-text", folderLeafClassName: P = "dial-tiny-semi-text", limitStatusBadgeClassName: ee = "dial-caption-lead-semi-text" } = S?.typography ?? {}, F = e.details?.limits?.status, I = F == null ? void 0 : /* @__PURE__ */ Z(wi, {
2238
+ let { nameClassName: M = "dial-body-semi-text", folderLabelClassName: N = "dial-tiny-text", folderLeafClassName: P = "dial-tiny-semi-text", limitStatusBadgeClassName: ee = "dial-caption-lead-semi-text" } = S?.typography ?? {}, F = e.details?.limits?.status, te = F == null ? void 0 : /* @__PURE__ */ Z(wi, {
2239
2239
  status: F,
2240
2240
  className: ee,
2241
2241
  label: F === rn.LimitReached ? x?.limitReachedLabel ?? "Limit reached" : x?.limitRunningLowLabel ?? "Running low"
2242
- }), L = H(() => {
2242
+ }), I = V(() => {
2243
2243
  t?.(e);
2244
- }, [e, t]), ne = H(() => {
2244
+ }, [e, t]), re = V(() => {
2245
2245
  s?.(e);
2246
- }, [e, s]), re = H(() => {
2246
+ }, [e, s]), ie = V(() => {
2247
2247
  T?.();
2248
- }, [T]), ie = H(() => {
2248
+ }, [T]), ae = V(() => {
2249
2249
  A?.();
2250
- }, [A]), R = H(() => {
2250
+ }, [A]), L = V(() => {
2251
2251
  c?.(e);
2252
- }, [e, c]), [z, ae] = K(!1);
2253
- U(() => {
2254
- ae(!1);
2252
+ }, [e, c]), [R, oe] = G(!1);
2253
+ H(() => {
2254
+ oe(!1);
2255
2255
  }, [e.id]);
2256
- let oe = H(() => {
2257
- z || (ae(!0), (async () => {
2256
+ let se = V(() => {
2257
+ R || (oe(!0), (async () => {
2258
2258
  try {
2259
2259
  await c?.(e);
2260
2260
  } catch {} finally {
2261
- ae(!1);
2261
+ oe(!1);
2262
2262
  }
2263
2263
  })());
2264
2264
  }, [
2265
2265
  e,
2266
2266
  c,
2267
- z
2268
- ]), [se, ce] = K(!1);
2269
- U(() => {
2270
- ce(!1);
2267
+ R
2268
+ ]), [ce, le] = G(!1);
2269
+ H(() => {
2270
+ le(!1);
2271
2271
  }, [e.id]);
2272
- let B = H(() => {
2273
- i ? ce(!0) : r?.(e);
2272
+ let z = V(() => {
2273
+ i ? le(!0) : r?.(e);
2274
2274
  }, [
2275
2275
  e,
2276
2276
  r,
2277
2277
  i
2278
- ]), le = H(() => {
2279
- ce(!1);
2280
- }, []), ue = H(() => {
2278
+ ]), ue = V(() => {
2279
+ le(!1);
2280
+ }, []), de = V(() => {
2281
2281
  f?.(e);
2282
- }, [e, f]), de = H(() => {
2282
+ }, [e, f]), fe = V(() => {
2283
2283
  d?.(e);
2284
- }, [e, d]), fe = H(() => {
2284
+ }, [e, d]), pe = V(() => {
2285
2285
  m?.(e);
2286
- }, [e, m]), { recipientsCountStatus: pe, recipientsCount: me, requestRecipientsCount: he } = Si({
2286
+ }, [e, m]), { recipientsCountStatus: me, recipientsCount: he, requestRecipientsCount: ge } = Si({
2287
2287
  item: e,
2288
2288
  onFetchRecipientsCount: h,
2289
2289
  onRevokeShare: m,
2290
2290
  isRevokeShareVisible: g
2291
- }), [ge, _e] = K(!1);
2292
- U(() => {
2293
- _e(!1);
2291
+ }), [_e, ve] = G(!1);
2292
+ H(() => {
2293
+ ve(!1);
2294
2294
  }, [e.id]);
2295
- let W = H((e) => {
2296
- _e(e), e && (he(), k?.());
2297
- }, [he, k]), G = H(() => {
2298
- he(), k?.();
2299
- }, [he, k]), ve = H(() => {
2295
+ let U = V((e) => {
2296
+ ve(e), e && (ge(), k?.());
2297
+ }, [ge, k]), W = V(() => {
2298
+ ge(), k?.();
2299
+ }, [ge, k]), ye = V(() => {
2300
2300
  k?.();
2301
- }, [k]), q = fi({
2301
+ }, [k]), be = fi({
2302
2302
  item: e,
2303
2303
  texts: x,
2304
2304
  isReadonly: j,
@@ -2322,43 +2322,43 @@ var nn = /* @__PURE__ */ function(e) {
2322
2322
  onRevokeShare: m,
2323
2323
  onFetchRecipientsCount: h,
2324
2324
  isRevokeShareVisible: g,
2325
- recipientsCountStatus: pe,
2326
- recipientsCount: me
2327
- }), { 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 } = q, { manageItems: Ne, promotedManageAction: Pe } = xi({
2328
- visibility: q,
2325
+ recipientsCountStatus: me,
2326
+ recipientsCount: he
2327
+ }), { shouldShowPrimaryAction: xe, shouldShowUnpublish: K, isUnpublishPending: Se, shouldShowPublish: Ce, shouldShowShareAction: we, isShareInActionRow: Te, isPublishInActionRow: Ee, authenticationType: De, credentialsUiState: Oe, shouldShowCredentialsAction: ke, isCredentialsActionPrimary: Ae, isDownloadActionPrimary: je, isApiKeyConfigured: Me, isOAuthLogoutState: Y } = be, { manageItems: Ne, promotedManageAction: Pe } = xi({
2328
+ visibility: be,
2329
2329
  texts: x,
2330
2330
  detailsStyles: S,
2331
- recipientsCount: me,
2332
- isManageMenuOpen: ge,
2333
- handleShare: B,
2334
- handleEdit: ne,
2335
- handleDownload: R,
2336
- handleOpenPublish: re,
2337
- handleOpenUnpublish: ie,
2338
- handleDelete: de,
2339
- handleRevokeShare: fe,
2340
- handleUnshare: ue
2331
+ recipientsCount: he,
2332
+ isManageMenuOpen: _e,
2333
+ handleShare: z,
2334
+ handleEdit: re,
2335
+ handleDownload: L,
2336
+ handleOpenPublish: ie,
2337
+ handleOpenUnpublish: ae,
2338
+ handleDelete: fe,
2339
+ handleRevokeShare: pe,
2340
+ handleUnshare: de
2341
2341
  }), Fe = {
2342
2342
  item: e,
2343
- authenticationType: Ee,
2344
- credentialsUiState: De,
2343
+ authenticationType: De,
2344
+ credentialsUiState: Oe,
2345
2345
  onLogin: _,
2346
2346
  onLogout: v,
2347
2347
  onOpenCredentialsManagement: y,
2348
2348
  onRequestLogout: b,
2349
2349
  texts: x,
2350
2350
  detailsStyles: S
2351
- }, Ie = ke || ye || Ae || we && Ce || Te && be || Te && Se || Oe && !ke || Ne.length > 0 && !xe;
2351
+ }, Ie = Ae || xe || je || Te && we || Ee && K || Ee && Ce || ke && !Ae || Ne.length > 0 && !Se;
2352
2352
  return /* @__PURE__ */ Q("div", {
2353
2353
  className: "flex flex-col gap-3 px-6 py-4",
2354
- children: [/* @__PURE__ */ Z(te, {
2354
+ children: [/* @__PURE__ */ Z(ne, {
2355
2355
  item: e,
2356
2356
  iconSize: 52,
2357
- nameClassName: V(M, pi.name),
2357
+ nameClassName: B(M, pi.name),
2358
2358
  featuredLabel: x?.featuredLabel ?? "Featured",
2359
2359
  typeLabel: x?.entityTypeLabels?.[e.type],
2360
2360
  featuredChipStyle: S?.colors?.featuredChipStyle,
2361
- statusBadge: I,
2361
+ statusBadge: te,
2362
2362
  footer: e.folder.length > 0 ? /* @__PURE__ */ Z(Le, {
2363
2363
  segments: e.folder,
2364
2364
  labelClassName: N,
@@ -2367,79 +2367,79 @@ var nn = /* @__PURE__ */ function(e) {
2367
2367
  }), Ie && /* @__PURE__ */ Q("div", {
2368
2368
  className: "flex flex-wrap items-center gap-2 ps-[60px]",
2369
2369
  children: [
2370
- ke && /* @__PURE__ */ Z(_i, {
2371
- buttonComponent: je || Me ? Xe : tt,
2370
+ Ae && /* @__PURE__ */ Z(_i, {
2371
+ buttonComponent: Me || Y ? Xe : tt,
2372
2372
  ...Fe
2373
2373
  }),
2374
- ye && /* @__PURE__ */ Z(tt, {
2374
+ xe && /* @__PURE__ */ Z(tt, {
2375
2375
  label: x?.primaryActionLabel ?? "Use in chat",
2376
- iconBefore: /* @__PURE__ */ Z(Pt, { size: J.MD }),
2377
- onClick: L,
2376
+ iconBefore: /* @__PURE__ */ Z(Pt, { size: q.MD }),
2377
+ onClick: I,
2378
2378
  disabled: F === rn.LimitReached
2379
2379
  }),
2380
- Ae && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(tt, {
2380
+ je && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(tt, {
2381
2381
  label: x?.downloadActionLabel ?? "Download",
2382
- iconBefore: z ? /* @__PURE__ */ Z(lt, {
2383
- size: J.MD,
2382
+ iconBefore: R ? /* @__PURE__ */ Z(lt, {
2383
+ size: q.MD,
2384
2384
  "aria-hidden": !0
2385
2385
  }) : /* @__PURE__ */ Z(Tt, {
2386
- size: J.MD,
2386
+ size: q.MD,
2387
2387
  "aria-hidden": !0,
2388
- stroke: Y
2388
+ stroke: J
2389
2389
  }),
2390
- onClick: oe,
2391
- disabled: z,
2392
- "aria-busy": z
2390
+ onClick: se,
2391
+ disabled: R,
2392
+ "aria-busy": R
2393
2393
  }), /* @__PURE__ */ Z(Ge, {
2394
2394
  visuallyHidden: !0,
2395
2395
  as: Ke.Span,
2396
- children: z ? x?.downloadingStatusLabel ?? "Downloading" : ""
2396
+ children: R ? x?.downloadingStatusLabel ?? "Downloading" : ""
2397
2397
  })] }),
2398
- we && Ce && /* @__PURE__ */ Z(yi, {
2398
+ Te && we && /* @__PURE__ */ Z(yi, {
2399
2399
  item: e,
2400
2400
  onShare: r,
2401
2401
  shareOverlay: i,
2402
2402
  isShareVisible: a,
2403
2403
  label: x?.shareLabel
2404
2404
  }),
2405
- Te && be && /* @__PURE__ */ Z(Xe, {
2405
+ Ee && K && /* @__PURE__ */ Z(Xe, {
2406
2406
  label: x?.unpublishLabel ?? "Unpublish",
2407
2407
  iconBefore: /* @__PURE__ */ Z(Ut, {
2408
- size: J.MD,
2408
+ size: q.MD,
2409
2409
  "aria-hidden": !0,
2410
- stroke: Y
2410
+ stroke: J
2411
2411
  }),
2412
- onClick: ie,
2413
- onMouseEnter: ve,
2414
- onFocus: ve
2412
+ onClick: ae,
2413
+ onMouseEnter: ye,
2414
+ onFocus: ye
2415
2415
  }),
2416
- Te && Se && /* @__PURE__ */ Z(Xe, {
2416
+ Ee && Ce && /* @__PURE__ */ Z(Xe, {
2417
2417
  label: x?.publishLabel ?? "Publish",
2418
2418
  iconBefore: /* @__PURE__ */ Z(Wt, {
2419
- size: J.MD,
2419
+ size: q.MD,
2420
2420
  "aria-hidden": !0,
2421
- stroke: Y
2421
+ stroke: J
2422
2422
  }),
2423
- onClick: re,
2424
- onMouseEnter: ve,
2425
- onFocus: ve
2423
+ onClick: ie,
2424
+ onMouseEnter: ye,
2425
+ onFocus: ye
2426
2426
  }),
2427
- Oe && !ke && /* @__PURE__ */ Z(_i, {
2427
+ ke && !Ae && /* @__PURE__ */ Z(_i, {
2428
2428
  buttonComponent: Xe,
2429
2429
  ...Fe
2430
2430
  }),
2431
- !xe && /* @__PURE__ */ Z(bi, {
2431
+ !Se && /* @__PURE__ */ Z(bi, {
2432
2432
  item: e,
2433
2433
  promotedManageAction: Pe,
2434
2434
  manageItems: Ne,
2435
- onManageOpenChange: W,
2436
- onManageTriggerIntent: G,
2437
- isShareInActionRow: we,
2438
- shouldShowShareAction: Ce,
2435
+ onManageOpenChange: U,
2436
+ onManageTriggerIntent: W,
2437
+ isShareInActionRow: Te,
2438
+ shouldShowShareAction: we,
2439
2439
  shareOverlay: i,
2440
- isShareOverlayOpen: se,
2441
- onShareOverlayOpenChange: ce,
2442
- onCloseShareOverlay: le,
2440
+ isShareOverlayOpen: ce,
2441
+ onShareOverlayOpenChange: le,
2442
+ onCloseShareOverlay: ue,
2443
2443
  onShare: r,
2444
2444
  isShareVisible: a,
2445
2445
  texts: x
@@ -2448,25 +2448,25 @@ var nn = /* @__PURE__ */ function(e) {
2448
2448
  })]
2449
2449
  });
2450
2450
  }, Ei = ({ item: e, isOpen: t, onClose: n, onDelete: r, onUnshare: a, onRevokeShare: o, onLogout: s, onUnpublish: c, texts: l, publishedFolders: u, formatFolderLabel: d }) => {
2451
- let [f, p] = K(null), [m, h] = K(!1), [g, _] = K(null), [v, y] = K(null), [b, x] = K(null);
2452
- U(() => {
2451
+ let [f, p] = G(null), [m, h] = G(!1), [g, _] = G(null), [v, y] = G(null), [b, x] = G(null);
2452
+ H(() => {
2453
2453
  x(null), p(null), h(!1), _(null), y(null);
2454
2454
  }, [e.id]);
2455
- let S = H(() => {
2455
+ let S = V(() => {
2456
2456
  p($.Delete);
2457
- }, []), C = H((t) => {
2457
+ }, []), C = V((t) => {
2458
2458
  y(t ?? (e.credentials == null ? null : w(e.credentials))), p($.Logout);
2459
- }, [e.credentials]), T = H(() => {
2459
+ }, [e.credentials]), T = V(() => {
2460
2460
  p($.Unshare);
2461
- }, []), E = H(() => {
2461
+ }, []), E = V(() => {
2462
2462
  p($.RevokeAccess);
2463
- }, []), D = H(() => {
2463
+ }, []), D = V(() => {
2464
2464
  p($.Unpublish);
2465
- }, []), O = H((e) => {
2465
+ }, []), O = V((e) => {
2466
2466
  _(e), p($.DeleteApiKey);
2467
- }, []), k = H(() => {
2467
+ }, []), k = V(() => {
2468
2468
  m || (p(null), _(null), y(null), x(null));
2469
- }, [m]), A = H(async () => {
2469
+ }, [m]), A = V(async () => {
2470
2470
  if (!(m || f == null)) {
2471
2471
  h(!0);
2472
2472
  try {
@@ -2514,7 +2514,7 @@ var nn = /* @__PURE__ */ function(e) {
2514
2514
  s,
2515
2515
  n
2516
2516
  ]);
2517
- return U(() => {
2517
+ return H(() => {
2518
2518
  if (!t || f == null) return;
2519
2519
  let e = (e) => {
2520
2520
  e.key === "Escape" && (e.stopPropagation(), k());
@@ -2537,7 +2537,7 @@ var nn = /* @__PURE__ */ function(e) {
2537
2537
  handleRequestDeleteApiKey: O,
2538
2538
  handleCancelConfirmation: k,
2539
2539
  handleConfirm: A,
2540
- confirmationContent: W(() => {
2540
+ confirmationContent: U(() => {
2541
2541
  switch (f) {
2542
2542
  case $.Delete: {
2543
2543
  let t = l?.deleteActionLabel ?? "Delete";
@@ -2551,7 +2551,7 @@ var nn = /* @__PURE__ */ function(e) {
2551
2551
  consequences: l?.deleteConfirmConsequences ?? Zn,
2552
2552
  confirmLabel: t,
2553
2553
  loadingStatusLabel: l?.deletingStatusLabel ?? "Deleting",
2554
- variant: De.Danger
2554
+ variant: Oe.Danger
2555
2555
  };
2556
2556
  }
2557
2557
  case $.Unshare: {
@@ -2566,7 +2566,7 @@ var nn = /* @__PURE__ */ function(e) {
2566
2566
  consequences: l?.unshareConfirmConsequences ?? Qn,
2567
2567
  confirmLabel: t,
2568
2568
  loadingStatusLabel: l?.unsharingStatusLabel ?? "Removing",
2569
- variant: De.Info
2569
+ variant: Oe.Info
2570
2570
  };
2571
2571
  }
2572
2572
  case $.RevokeAccess: {
@@ -2581,7 +2581,7 @@ var nn = /* @__PURE__ */ function(e) {
2581
2581
  consequences: l?.revokeShareConfirmConsequences ?? er,
2582
2582
  confirmLabel: t,
2583
2583
  loadingStatusLabel: l?.revokingShareStatusLabel ?? "Revoking access",
2584
- variant: De.Danger
2584
+ variant: Oe.Danger
2585
2585
  };
2586
2586
  }
2587
2587
  case $.Unpublish: {
@@ -2602,7 +2602,7 @@ var nn = /* @__PURE__ */ function(e) {
2602
2602
  consequences: l?.unpublishConfirmConsequences ?? $n,
2603
2603
  confirmLabel: t,
2604
2604
  loadingStatusLabel: l?.unpublishingStatusLabel ?? "Requesting unpublish",
2605
- variant: De.Danger
2605
+ variant: Oe.Danger
2606
2606
  };
2607
2607
  }
2608
2608
  case $.Logout: {
@@ -2613,7 +2613,7 @@ var nn = /* @__PURE__ */ function(e) {
2613
2613
  consequences: void 0,
2614
2614
  confirmLabel: e,
2615
2615
  loadingStatusLabel: l?.loggingOutStatusLabel ?? "Logging out",
2616
- variant: De.Info
2616
+ variant: Oe.Info
2617
2617
  };
2618
2618
  }
2619
2619
  case $.DeleteApiKey: {
@@ -2624,8 +2624,8 @@ var nn = /* @__PURE__ */ function(e) {
2624
2624
  consequences: void 0,
2625
2625
  confirmLabel: e,
2626
2626
  loadingStatusLabel: l?.deletingStatusLabel ?? "Deleting",
2627
- variant: De.Danger,
2628
- cardVariant: De.Info
2627
+ variant: Oe.Danger,
2628
+ cardVariant: Oe.Info
2629
2629
  };
2630
2630
  }
2631
2631
  default: return null;
@@ -2641,22 +2641,22 @@ var nn = /* @__PURE__ */ function(e) {
2641
2641
  isConfirmDisabled: f === $.Unpublish && Kn(u, b) == null
2642
2642
  };
2643
2643
  }, Di = ({ item: e, onLoadContentFile: t, onLoadContentFilePreview: n, renderContentFilePreview: r, texts: i }) => {
2644
- let a = e.details?.promptContent, o = a?.selectedFileId, [s, c] = K(null), [l, u] = K(!1), [d, f] = K(/* @__PURE__ */ new Set()), [p, m] = K(!1), h = G(null), g = G(0), _ = H((e) => {
2644
+ 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) => {
2645
2645
  let t = h.current, n = e?.preview?.type === dn.Image ? e.preview.url : null;
2646
2646
  t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), h.current = n, c(e);
2647
2647
  }, []);
2648
- U(() => {
2648
+ H(() => {
2649
2649
  g.current += 1, _(null), u(!1), f(Nr(a?.files ?? [])), m(!1);
2650
- }, [e.id, o]), U(() => () => {
2650
+ }, [e.id, o]), H(() => () => {
2651
2651
  let e = h.current;
2652
2652
  e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
2653
2653
  }, []);
2654
- let v = H((e) => {
2654
+ let v = V((e) => {
2655
2655
  f((t) => {
2656
2656
  let n = new Set(t);
2657
2657
  return n.has(e) ? n.delete(e) : n.add(e), n;
2658
2658
  });
2659
- }, []), y = H(async (e) => {
2659
+ }, []), y = V(async (e) => {
2660
2660
  if (e === o) {
2661
2661
  g.current += 1, _(null), u(!1);
2662
2662
  return;
@@ -2719,7 +2719,7 @@ var nn = /* @__PURE__ */ function(e) {
2719
2719
  renderedContentFilePreview: s != null && r != null ? r(s.id, Pr(a?.files ?? [], s.id) ?? "") : void 0
2720
2720
  };
2721
2721
  }, Oi = ({ item: e, isReadonly: t = !1, getPublishHistory: n, getPublishDependencies: r, publishFolderItems: i = Jn, hasPublishWriteAccess: a, publishDefaultAuthor: o, onPublish: s, onPublishSuccess: c, onPublishError: l, onCreatePublishFolder: u, onFetchExistingRules: d, onUnpublish: f, isUnpublishVisible: p, publishLabels: m }) => {
2722
- let [h, g] = K(!1), [_, v] = K([]), [y, b] = K(!1), x = G(null), S = H(() => {
2722
+ let [h, g] = G(!1), [_, v] = G([]), [y, b] = G(!1), x = W(null), S = V(() => {
2723
2723
  if (!n || x.current === e.id) return;
2724
2724
  let t = e.id;
2725
2725
  x.current = t, (async () => {
@@ -2733,15 +2733,15 @@ var nn = /* @__PURE__ */ function(e) {
2733
2733
  }
2734
2734
  })();
2735
2735
  }, [n, e]);
2736
- U(() => {
2736
+ H(() => {
2737
2737
  h && S();
2738
2738
  }, [h, S]);
2739
- let [C, w] = K(), T = G(r), E = G(e);
2740
- U(() => {
2739
+ let [C, w] = G(), T = W(r), E = W(e);
2740
+ H(() => {
2741
2741
  T.current = r, E.current = e;
2742
2742
  }, [r, e]);
2743
2743
  let D = r != null, k = e.id;
2744
- U(() => {
2744
+ H(() => {
2745
2745
  if (!h || !D) return;
2746
2746
  let e = !1;
2747
2747
  return (async () => {
@@ -2763,7 +2763,7 @@ var nn = /* @__PURE__ */ function(e) {
2763
2763
  ]);
2764
2764
  let A;
2765
2765
  D && (A = C?.itemId === k ? C.dependencies : Yn);
2766
- let j = H((e, t) => {
2766
+ let j = V((e, t) => {
2767
2767
  x.current = null, b(!1), S(), c?.(e, t);
2768
2768
  }, [S, c]), M = Xt({
2769
2769
  item: e,
@@ -2776,7 +2776,7 @@ var nn = /* @__PURE__ */ function(e) {
2776
2776
  onPublishSuccess: j,
2777
2777
  onPublishError: l,
2778
2778
  onFetchExistingRules: d
2779
- }), N = e.type === P.Toolset && O(e.credentials), ee = W(() => Yt({
2779
+ }), N = e.type === P.Toolset && O(e.credentials), ee = U(() => Yt({
2780
2780
  hasSelectedFolder: M.selectedFolderPath != null,
2781
2781
  hasExistingPublicationInFolder: M.hasExistingPublicationInFolder,
2782
2782
  hasWriteAccess: M.hasWriteAccess,
@@ -2790,14 +2790,14 @@ var nn = /* @__PURE__ */ function(e) {
2790
2790
  M.isSubmitting,
2791
2791
  M.hasSubmitError
2792
2792
  ]);
2793
- U(() => {
2793
+ H(() => {
2794
2794
  g(!1), M.reset(), v([]), b(!1), x.current = null;
2795
2795
  }, [e.id]);
2796
2796
  let F = !t && !!f && p?.(e) === !0;
2797
- U(() => {
2797
+ H(() => {
2798
2798
  F && S();
2799
2799
  }, [F, S]);
2800
- let I = W(() => {
2800
+ let te = U(() => {
2801
2801
  let e = /* @__PURE__ */ new Set(), t = [];
2802
2802
  for (let n of _) {
2803
2803
  let r = n.folderPath.join("/");
@@ -2807,15 +2807,15 @@ var nn = /* @__PURE__ */ function(e) {
2807
2807
  }));
2808
2808
  }
2809
2809
  return t;
2810
- }, [_]), L = y && I.length > 0, te = H((e) => e || (m?.rootFolderLabel ?? "Organization"), [m]), ne = H(() => g(!0), []), re = H(() => {
2810
+ }, [_]), I = y && te.length > 0, ne = V((e) => e || (m?.rootFolderLabel ?? "Organization"), [m]), re = V(() => g(!0), []), ie = V(() => {
2811
2811
  g(!1), M.reset();
2812
- }, [M]), ie = Zt({
2812
+ }, [M]), ae = Zt({
2813
2813
  isOpen: h,
2814
2814
  selectedFolderPath: M.selectedFolderPath,
2815
2815
  onSelectedFolderPathChange: M.setSelectedFolderPath
2816
- }), R = ie.view === Jt.ChangeFolder, z = H(async () => {
2817
- await M.handleSubmit() && re();
2818
- }, [M, re]);
2816
+ }), L = ae.view === Jt.ChangeFolder, R = V(async () => {
2817
+ await M.handleSubmit() && ie();
2818
+ }, [M, ie]);
2819
2819
  return {
2820
2820
  isPublishOpen: h,
2821
2821
  isPublishHistoryResolved: y,
@@ -2824,23 +2824,23 @@ var nn = /* @__PURE__ */ function(e) {
2824
2824
  publishDependencies: A,
2825
2825
  isPublishCredentialsEligible: N,
2826
2826
  publishDerived: ee,
2827
- publishedFolders: I,
2828
- hasPublishedFolders: L,
2829
- formatFolderLabel: te,
2830
- handleOpenPublish: ne,
2831
- handleClosePublish: re,
2832
- publishFolderView: ie,
2833
- isPublishFolderView: R,
2834
- handleSubmitPublish: z
2827
+ publishedFolders: te,
2828
+ hasPublishedFolders: I,
2829
+ formatFolderLabel: ne,
2830
+ handleOpenPublish: re,
2831
+ handleClosePublish: ie,
2832
+ publishFolderView: ae,
2833
+ isPublishFolderView: L,
2834
+ handleSubmitPublish: R
2835
2835
  };
2836
- }, ki = ({ 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 = Jn, publishExpandedPaths: S, onPublishExpandedPathsChange: C, publishLoadingPaths: w, getPublishDisabledReason: T, hasPublishWriteAccess: D, publishDefaultAuthor: O, onPublish: k, onPublishSuccess: A, onPublishError: j, onCreatePublishFolder: M, publishLabels: N, ruleSourceOptions: P = Xn, onFetchExistingRules: I, shareOverlay: L, isShareVisible: te, isSharePrimary: ne, onEdit: re, onDownload: ie, isDownloadVisible: R, isDownloadPrimary: z, onLoadContentFile: ae, onLoadContentFilePreview: oe, renderContentFilePreview: se, renderContentFileTree: ce, renderCredentials: B, onDelete: le, onUnshare: ue, isUnshareVisible: de, onRevokeShare: fe, onFetchRecipientsCount: pe, isRevokeShareVisible: me, onUnpublish: he, isUnpublishVisible: ge, onLogin: _e, onLogout: ve, texts: q, styles: ye, limitsFooterNote: be }) => {
2837
- let { subViewTitleClassName: xe = "dial-body-semi-text", confirmMessageClassName: Se = "dial-small-text" } = ye?.typography ?? {}, Ce = ye?.colors, we = ir(Ce), [Te, Ee] = K(r), [De, J] = K(""), Y = Di({
2836
+ }, ki = ({ 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 = Jn, publishExpandedPaths: S, onPublishExpandedPathsChange: C, publishLoadingPaths: w, getPublishDisabledReason: T, hasPublishWriteAccess: D, publishDefaultAuthor: O, onPublish: k, onPublishSuccess: A, onPublishError: j, onCreatePublishFolder: M, publishLabels: N, hidePublishAuthor: P = !1, hidePublishAccessRules: te = !1, ruleSourceOptions: I = Xn, onFetchExistingRules: ne, shareOverlay: re, isShareVisible: ie, isSharePrimary: ae, onEdit: L, onDownload: R, isDownloadVisible: oe, isDownloadPrimary: se, onLoadContentFile: ce, onLoadContentFilePreview: le, renderContentFilePreview: z, renderContentFileTree: ue, renderCredentials: de, onDelete: fe, onUnshare: pe, isUnshareVisible: me, onRevokeShare: he, onFetchRecipientsCount: ge, isRevokeShareVisible: _e, onUnpublish: ve, isUnpublishVisible: ye, onLogin: be, onLogout: xe, texts: K, styles: Se, limitsFooterNote: Ce }) => {
2837
+ let { subViewTitleClassName: we = "dial-body-semi-text", confirmMessageClassName: Te = "dial-small-text" } = Se?.typography ?? {}, Ee = Se?.colors, De = ir(Ee), [Oe, q] = G(r), [J, ke] = G(""), Ae = Di({
2838
2838
  item: e,
2839
- onLoadContentFile: ae,
2840
- onLoadContentFilePreview: oe,
2841
- renderContentFilePreview: se,
2842
- texts: q
2843
- }), { isPublishOpen: Oe, isPublishHistoryResolved: ke, requestPublishHistory: Ae, publishFlow: je, publishDependencies: Me, isPublishCredentialsEligible: Ne, publishDerived: Pe, publishedFolders: Fe, hasPublishedFolders: Ie, formatFolderLabel: Le, handleOpenPublish: Re, handleClosePublish: ze, publishFolderView: Be, isPublishFolderView: Ve, handleSubmitPublish: He } = Oi({
2839
+ onLoadContentFile: ce,
2840
+ onLoadContentFilePreview: le,
2841
+ renderContentFilePreview: z,
2842
+ texts: K
2843
+ }), { isPublishOpen: je, isPublishHistoryResolved: Me, requestPublishHistory: Y, publishFlow: Ne, publishDependencies: Pe, isPublishCredentialsEligible: Fe, publishDerived: Ie, publishedFolders: Le, hasPublishedFolders: Re, formatFolderLabel: ze, handleOpenPublish: Be, handleClosePublish: Ve, publishFolderView: He, isPublishFolderView: Ue, handleSubmitPublish: We } = Oi({
2844
2844
  item: e,
2845
2845
  isReadonly: a,
2846
2846
  getPublishHistory: m,
@@ -2852,192 +2852,194 @@ var nn = /* @__PURE__ */ function(e) {
2852
2852
  onPublishSuccess: A,
2853
2853
  onPublishError: j,
2854
2854
  onCreatePublishFolder: M,
2855
- onFetchExistingRules: I,
2856
- onUnpublish: he,
2857
- isUnpublishVisible: ge,
2855
+ onFetchExistingRules: ne,
2856
+ onUnpublish: ve,
2857
+ isUnpublishVisible: ye,
2858
2858
  publishLabels: N
2859
- }), { confirmation: Ue, isConfirming: We, selectedUnpublishFolder: Ge, setSelectedUnpublishFolder: Ke, handleRequestDelete: qe, handleRequestLogout: Je, handleRequestUnshare: Ye, handleRequestRevokeShare: Xe, handleRequestUnpublish: Ze, handleRequestDeleteApiKey: Qe, handleCancelConfirmation: $e, handleConfirm: et, confirmationContent: tt, isConfirmDisabled: nt } = Ei({
2859
+ }), { confirmation: Ge, isConfirming: Ke, selectedUnpublishFolder: qe, setSelectedUnpublishFolder: Je, handleRequestDelete: Ye, handleRequestLogout: Xe, handleRequestUnshare: Ze, handleRequestRevokeShare: Qe, handleRequestUnpublish: $e, handleRequestDeleteApiKey: et, handleCancelConfirmation: tt, handleConfirm: nt, confirmationContent: it, isConfirmDisabled: at } = Ei({
2860
2860
  item: e,
2861
2861
  isOpen: t,
2862
2862
  onClose: o,
2863
- onDelete: le,
2864
- onUnshare: ue,
2865
- onRevokeShare: fe,
2866
- onLogout: ve,
2867
- onUnpublish: he,
2868
- texts: q,
2869
- publishedFolders: Fe,
2870
- formatFolderLabel: Le
2871
- }), [it, at] = K(!1), st = G({
2863
+ onDelete: fe,
2864
+ onUnshare: pe,
2865
+ onRevokeShare: he,
2866
+ onLogout: xe,
2867
+ onUnpublish: ve,
2868
+ texts: K,
2869
+ publishedFolders: Le,
2870
+ formatFolderLabel: ze
2871
+ }), [st, ct] = G(!1), lt = W({
2872
2872
  onPublishOpenChange: y,
2873
2873
  item: e
2874
2874
  });
2875
- U(() => {
2876
- st.current = {
2875
+ H(() => {
2876
+ lt.current = {
2877
2877
  onPublishOpenChange: y,
2878
2878
  item: e
2879
2879
  };
2880
- }, [y, e]), U(() => {
2881
- let { onPublishOpenChange: e, item: t } = st.current;
2882
- return e?.(Oe, t), () => {
2883
- let { onPublishOpenChange: e, item: t } = st.current;
2880
+ }, [y, e]), H(() => {
2881
+ let { onPublishOpenChange: e, item: t } = lt.current;
2882
+ return e?.(je, t), () => {
2883
+ let { onPublishOpenChange: e, item: t } = lt.current;
2884
2884
  e?.(!1, t);
2885
2885
  };
2886
- }, [Oe, e.id]), U(() => {
2887
- Ee(r);
2888
- }, [e.id, r]), U(() => {
2889
- J(""), at(!1);
2886
+ }, [je, e.id]), H(() => {
2887
+ q(r);
2888
+ }, [e.id, r]), H(() => {
2889
+ ke(""), ct(!1);
2890
2890
  }, [e.id]);
2891
- let ct = H(() => at(!0), []), lt = H(() => at(!1), []), ut = H(() => {
2892
- let t = !Te;
2893
- Ee(t), s?.(e.id, t);
2891
+ let ut = V(() => ct(!0), []), dt = V(() => ct(!1), []), ft = V(() => {
2892
+ let t = !Oe;
2893
+ q(t), s?.(e.id, t);
2894
2894
  }, [
2895
- Te,
2895
+ Oe,
2896
2896
  e.id,
2897
2897
  s
2898
- ]), dt = W(() => {
2898
+ ]), pt = U(() => {
2899
2899
  let t = {
2900
- [n.About]: q?.tabAboutLabel ?? "About",
2901
- [n.Content]: q?.tabContentLabel ?? "Details",
2902
- [n.Overview]: q?.tabOverviewLabel ?? "Overview",
2903
- [n.Pricing]: q?.tabPricingLabel ?? "Pricing",
2904
- [n.Limits]: q?.tabLimitsLabel ?? "Limits",
2905
- [n.Api]: q?.tabConnectLabel ?? "Connect",
2906
- [n.Tools]: q?.tabToolsLabel ?? "Tools"
2900
+ [n.About]: K?.tabAboutLabel ?? "About",
2901
+ [n.Content]: K?.tabContentLabel ?? "Details",
2902
+ [n.Overview]: K?.tabOverviewLabel ?? "Overview",
2903
+ [n.Pricing]: K?.tabPricingLabel ?? "Pricing",
2904
+ [n.Limits]: K?.tabLimitsLabel ?? "Limits",
2905
+ [n.Api]: K?.tabConnectLabel ?? "Connect",
2906
+ [n.Tools]: K?.tabToolsLabel ?? "Tools"
2907
2907
  };
2908
2908
  return x(e).map((e) => ({
2909
2909
  id: e,
2910
2910
  label: t[e]
2911
2911
  }));
2912
- }, [e, q]), ft = G(null);
2913
- U(() => {
2914
- let t = ft.current !== e.id;
2915
- ft.current = e.id, (t || !dt.some((e) => e.id === De)) && J(dt[0]?.id ?? "");
2912
+ }, [e, K]), mt = W(null);
2913
+ H(() => {
2914
+ let t = mt.current !== e.id;
2915
+ mt.current = e.id, (t || !pt.some((e) => e.id === J)) && ke(pt[0]?.id ?? "");
2916
2916
  }, [
2917
2917
  e.id,
2918
- dt,
2919
- De
2918
+ pt,
2919
+ J
2920
2920
  ]);
2921
- let pt = q?.ariaLabel ?? "Item details", mt = q?.closeAriaLabel ?? "Close", ht = Te ? q?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : q?.addToFavoritesAriaLabel ?? "Add to favorites", gt = q?.publishTitle ?? "Publish", _t = q?.backToDetailsAriaLabel ?? "Back", vt = q?.cancelLabel ?? "Cancel", yt = tt != null, bt = yt || Oe || it, xt = e.credentials == null ? "" : (q?.credentialsManagementTitle ?? tr)(e.credentials.authenticationType), St = yt ? {
2922
- title: tt.title,
2923
- isBackDisabled: We,
2924
- onBack: $e
2925
- } : Oe ? {
2926
- title: Ve ? q?.publishChangeFolderTitle ?? "Change folder" : gt,
2927
- isBackDisabled: je.isSubmitting,
2928
- onBack: Ve ? Be.backToMain : ze
2929
- } : it ? {
2930
- title: xt,
2921
+ let ht = K?.ariaLabel ?? "Item details", gt = K?.closeAriaLabel ?? "Close", _t = Oe ? K?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : K?.addToFavoritesAriaLabel ?? "Add to favorites", vt = K?.publishTitle ?? "Publish", yt = K?.backToDetailsAriaLabel ?? "Back", bt = K?.cancelLabel ?? "Cancel", xt = it != null, St = xt || je || st, Ct = e.credentials == null ? "" : (K?.credentialsManagementTitle ?? tr)(e.credentials.authenticationType), wt = xt ? {
2922
+ title: it.title,
2923
+ isBackDisabled: Ke,
2924
+ onBack: tt
2925
+ } : je ? {
2926
+ title: Ue ? K?.publishChangeFolderTitle ?? "Change folder" : vt,
2927
+ isBackDisabled: Ne.isSubmitting,
2928
+ onBack: Ue ? He.backToMain : Ve
2929
+ } : st ? {
2930
+ title: Ct,
2931
2931
  isBackDisabled: !1,
2932
- onBack: lt
2933
- } : null, Ct = St?.title ?? pt;
2932
+ onBack: dt
2933
+ } : null, Tt = wt?.title ?? ht;
2934
2934
  return /* @__PURE__ */ Q(ot, {
2935
2935
  open: t,
2936
2936
  onClose: o,
2937
- header: St?.title,
2938
- ariaLabel: Ct,
2939
- onBack: St?.onBack,
2940
- backAriaLabel: _t,
2941
- backDisabled: St?.isBackDisabled,
2942
- hideClose: St != null,
2943
- closeAriaLabel: mt,
2944
- headerActions: St == null && !a && c?.(e) !== !1 ? /* @__PURE__ */ Z(Pn, {
2945
- isStarred: Te,
2946
- ariaLabel: ht,
2947
- onClick: ut
2937
+ header: wt?.title,
2938
+ ariaLabel: Tt,
2939
+ onBack: wt?.onBack,
2940
+ backAriaLabel: yt,
2941
+ backDisabled: wt?.isBackDisabled,
2942
+ hideClose: wt != null,
2943
+ closeAriaLabel: gt,
2944
+ headerActions: wt == null && !a && c?.(e) !== !1 ? /* @__PURE__ */ Z(Pn, {
2945
+ isStarred: Oe,
2946
+ ariaLabel: _t,
2947
+ onClick: ft
2948
2948
  }) : void 0,
2949
- style: we,
2950
- overlayStyle: we,
2951
- className: V(xr.panel, "tablet:w-[540px]! tablet:max-w-[calc(100%-32px)]!"),
2949
+ style: De,
2950
+ overlayStyle: De,
2951
+ className: B(xr.panel, "tablet:w-[540px]! tablet:max-w-[calc(100%-32px)]!"),
2952
2952
  overlayClassName: xr.backdrop,
2953
2953
  headerClassName: xr.divider,
2954
- titleClassName: V(xe, xr.publishTitle),
2954
+ titleClassName: B(we, xr.publishTitle),
2955
2955
  bodyClassName: "flex flex-col overflow-hidden",
2956
2956
  children: [
2957
2957
  /* @__PURE__ */ Q("div", {
2958
- className: V("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", xr.content),
2958
+ className: B("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", xr.content),
2959
2959
  children: [
2960
- yt && /* @__PURE__ */ Z(F, {
2960
+ xt && /* @__PURE__ */ Z(F, {
2961
2961
  item: e,
2962
- message: tt.message,
2963
- consequences: tt.consequences,
2964
- variant: tt.cardVariant ?? tt.variant,
2965
- messageClassName: Se,
2962
+ message: it.message,
2963
+ consequences: it.consequences,
2964
+ variant: it.cardVariant ?? it.variant,
2965
+ messageClassName: Te,
2966
2966
  styles: { colors: {
2967
- messageText: Ce?.confirmMessageText,
2968
- consequenceText: Ce?.confirmConsequenceText,
2969
- cardBackground: Ce?.infoCardBackground,
2970
- cardDangerBackground: Ce?.infoCardDangerBackground
2967
+ messageText: Ee?.confirmMessageText,
2968
+ consequenceText: Ee?.confirmConsequenceText,
2969
+ cardBackground: Ee?.infoCardBackground,
2970
+ cardDangerBackground: Ee?.infoCardDangerBackground
2971
2971
  } },
2972
- children: Ue === $.Unpublish && Fe.length > 1 && /* @__PURE__ */ Z(rt, {
2973
- ariaLabel: q?.unpublishFolderGroupAriaLabel ?? "Published folders",
2974
- value: Ge ?? void 0,
2975
- onChange: Ke,
2976
- disabled: We,
2977
- items: Fe.map((e) => ({
2972
+ children: Ge === $.Unpublish && Le.length > 1 && /* @__PURE__ */ Z(rt, {
2973
+ ariaLabel: K?.unpublishFolderGroupAriaLabel ?? "Published folders",
2974
+ value: qe ?? void 0,
2975
+ onChange: Je,
2976
+ disabled: Ke,
2977
+ items: Le.map((e) => ({
2978
2978
  value: e.key,
2979
- label: Le(e.key)
2979
+ label: ze(e.key)
2980
2980
  })),
2981
- radioClassName: Se
2981
+ radioClassName: Te
2982
2982
  })
2983
2983
  }),
2984
- !yt && !Oe && it && /* @__PURE__ */ Z(br, {
2984
+ !xt && !je && st && /* @__PURE__ */ Z(br, {
2985
2985
  item: e,
2986
- onLogin: _e,
2987
- onRequestLogout: Je,
2988
- onRequestDeleteApiKey: Qe,
2989
- texts: q,
2990
- detailsStyles: ye
2986
+ onLogin: be,
2987
+ onRequestLogout: Xe,
2988
+ onRequestDeleteApiKey: et,
2989
+ texts: K,
2990
+ detailsStyles: Se
2991
2991
  }),
2992
- !yt && Oe && /* @__PURE__ */ Z(Sr, {
2992
+ !xt && je && /* @__PURE__ */ Z(Sr, {
2993
2993
  item: e,
2994
- publishFlow: je,
2995
- publishDependencies: Me,
2996
- publishFolderView: Be,
2997
- isPublishCredentialsEligible: Ne,
2994
+ publishFlow: Ne,
2995
+ publishDependencies: Pe,
2996
+ publishFolderView: He,
2997
+ isPublishCredentialsEligible: Fe,
2998
2998
  publishExpandedPaths: S,
2999
2999
  onPublishExpandedPathsChange: C,
3000
3000
  publishLoadingPaths: w,
3001
3001
  getPublishDisabledReason: T,
3002
- ruleSourceOptions: P,
3002
+ hidePublishAuthor: P,
3003
+ hidePublishAccessRules: te,
3004
+ ruleSourceOptions: I,
3003
3005
  publishLabels: N,
3004
3006
  resolvePublishDependenciesLabels: g,
3005
3007
  resolvePublishApprovalLabels: _,
3006
3008
  publishVersionHistory: v
3007
3009
  }),
3008
- !bt && /* @__PURE__ */ Q(X, { children: [
3010
+ !St && /* @__PURE__ */ Q(X, { children: [
3009
3011
  /* @__PURE__ */ Z(Ti, {
3010
3012
  item: e,
3011
3013
  onUseInChat: l,
3012
3014
  isPrimaryActionVisible: u,
3013
3015
  onShare: d,
3014
- shareOverlay: L,
3015
- isShareVisible: te,
3016
- isSharePrimary: ne,
3016
+ shareOverlay: re,
3017
+ isShareVisible: ie,
3018
+ isSharePrimary: ae,
3017
3019
  isPublishVisible: f,
3018
3020
  isPublishPrimary: p,
3019
- onOpenPublish: Re,
3020
- isUnpublishVisible: ge,
3021
- hasPublishedFolders: Ie,
3022
- isPublishHistoryResolved: m == null || ke,
3023
- onRequestPublishHistory: Ae,
3024
- onOpenUnpublish: he ? Ze : void 0,
3025
- onEdit: re,
3026
- onDownload: ie,
3027
- isDownloadVisible: R,
3028
- isDownloadPrimary: z,
3029
- onDelete: le ? qe : void 0,
3030
- onUnshare: ue ? Ye : void 0,
3031
- isUnshareVisible: de,
3032
- onRevokeShare: fe ? Xe : void 0,
3033
- onFetchRecipientsCount: pe,
3034
- isRevokeShareVisible: me,
3035
- onLogin: _e,
3036
- onLogout: ve,
3037
- onOpenCredentialsManagement: ct,
3038
- onRequestLogout: Je,
3039
- texts: q,
3040
- detailsStyles: ye,
3021
+ onOpenPublish: Be,
3022
+ isUnpublishVisible: ye,
3023
+ hasPublishedFolders: Re,
3024
+ isPublishHistoryResolved: m == null || Me,
3025
+ onRequestPublishHistory: Y,
3026
+ onOpenUnpublish: ve ? $e : void 0,
3027
+ onEdit: L,
3028
+ onDownload: R,
3029
+ isDownloadVisible: oe,
3030
+ isDownloadPrimary: se,
3031
+ onDelete: fe ? Ye : void 0,
3032
+ onUnshare: pe ? Ze : void 0,
3033
+ isUnshareVisible: me,
3034
+ onRevokeShare: he ? Qe : void 0,
3035
+ onFetchRecipientsCount: ge,
3036
+ isRevokeShareVisible: _e,
3037
+ onLogin: be,
3038
+ onLogout: xe,
3039
+ onOpenCredentialsManagement: ut,
3040
+ onRequestLogout: Xe,
3041
+ texts: K,
3042
+ detailsStyles: Se,
3041
3043
  isReadonly: a
3042
3044
  }),
3043
3045
  e.credentials != null && (() => {
@@ -3047,48 +3049,48 @@ var nn = /* @__PURE__ */ function(e) {
3047
3049
  children: /* @__PURE__ */ Z(gr, {
3048
3050
  state: t,
3049
3051
  authenticationType: e.credentials.authenticationType,
3050
- texts: q
3052
+ texts: K
3051
3053
  })
3052
3054
  });
3053
3055
  })(),
3054
- !a && t && B?.(e),
3056
+ !a && t && de?.(e),
3055
3057
  /* @__PURE__ */ Z(li, {
3056
3058
  item: e,
3057
- tabs: dt,
3058
- activeTab: De,
3059
- onTabChange: J,
3059
+ tabs: pt,
3060
+ activeTab: J,
3061
+ onTabChange: ke,
3060
3062
  isDetailsLoading: i,
3061
- contentFile: Y,
3062
- renderContentFileTree: ce,
3063
- texts: q,
3064
- detailsStyles: ye,
3065
- limitsFooterNote: be
3063
+ contentFile: Ae,
3064
+ renderContentFileTree: ue,
3065
+ texts: K,
3066
+ detailsStyles: Se,
3067
+ limitsFooterNote: Ce
3066
3068
  })
3067
3069
  ] })
3068
3070
  ]
3069
3071
  }),
3070
- yt && /* @__PURE__ */ Z(ee, {
3071
- confirmLabel: tt.confirmLabel,
3072
- cancelLabel: vt,
3073
- variant: tt.variant,
3074
- isLoading: We,
3075
- isConfirmDisabled: nt,
3076
- loadingStatusLabel: tt.loadingStatusLabel,
3077
- styles: { colors: { border: Ce?.confirmFooterBorder } },
3078
- onConfirm: et,
3079
- onCancel: $e
3072
+ xt && /* @__PURE__ */ Z(ee, {
3073
+ confirmLabel: it.confirmLabel,
3074
+ cancelLabel: bt,
3075
+ variant: it.variant,
3076
+ isLoading: Ke,
3077
+ isConfirmDisabled: at,
3078
+ loadingStatusLabel: it.loadingStatusLabel,
3079
+ styles: { colors: { border: Ee?.confirmFooterBorder } },
3080
+ onConfirm: nt,
3081
+ onCancel: tt
3080
3082
  }),
3081
- !yt && Oe && /* @__PURE__ */ Z(Kt, {
3083
+ !xt && je && /* @__PURE__ */ Z(Kt, {
3082
3084
  version: e.version,
3083
- hasExistingPublicationInFolder: je.hasExistingPublicationInFolder,
3085
+ hasExistingPublicationInFolder: Ne.hasExistingPublicationInFolder,
3084
3086
  allowReplace: !1,
3085
- isSubmitDisabled: Pe.isSubmitDisabled,
3086
- isSubmitLoading: Pe.isSubmitLoading,
3087
- onCancel: Ve ? Be.backToMain : ze,
3088
- onSubmit: He,
3089
- view: Be.view,
3090
- onSelectFolder: Be.selectFolder,
3091
- isSelectFolderDisabled: Be.pendingFolderPath == null,
3087
+ isSubmitDisabled: Ie.isSubmitDisabled,
3088
+ isSubmitLoading: Ie.isSubmitLoading,
3089
+ onCancel: Ue ? He.backToMain : Ve,
3090
+ onSubmit: We,
3091
+ view: He.view,
3092
+ onSelectFolder: He.selectFolder,
3093
+ isSelectFolderDisabled: He.pendingFolderPath == null,
3092
3094
  labels: N
3093
3095
  })
3094
3096
  ]
@@ -3121,23 +3123,23 @@ var nn = /* @__PURE__ */ function(e) {
3121
3123
  favoriteCard: "_favoriteCard_x89b2_107",
3122
3124
  cardButton: "_cardButton_x89b2_107"
3123
3125
  }, Pi = ({ 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 }) => {
3124
- let [h, g] = K(t), [_, v] = K(!1), y = (t) => {
3126
+ let [h, g] = G(t), [_, v] = G(!1), y = (t) => {
3125
3127
  t.stopPropagation();
3126
3128
  let r = !h;
3127
3129
  g(r), r ? n?.(e.id, r) : v(!0);
3128
3130
  }, b = i && !_ ? () => i(e) : void 0;
3129
- return /* @__PURE__ */ Q(Te, {
3131
+ return /* @__PURE__ */ Q(Ee, {
3130
3132
  "data-card-id": e.id,
3131
3133
  "aria-label": e.name,
3132
- style: B({ "--fc-focus-outline": m }),
3133
- className: V("box-border min-w-0 cursor-pointer flex-row items-center gap-3 p-5 text-start", Ni.favoriteCard, _ && Ni.cardLeaving, f && Ni.selectedCard, pn.favoriteCard),
3134
+ style: z({ "--fc-focus-outline": m }),
3135
+ className: B("box-border min-w-0 cursor-pointer flex-row items-center gap-3 p-5 text-start", Ni.favoriteCard, _ && Ni.cardLeaving, f && Ni.selectedCard, pn.favoriteCard),
3134
3136
  onClick: b,
3135
3137
  onAnimationEnd: _ ? (t) => {
3136
3138
  t.currentTarget === t.target && n?.(e.id, !1);
3137
3139
  } : void 0,
3138
3140
  children: [b != null && /* @__PURE__ */ Z("button", {
3139
3141
  type: "button",
3140
- className: V("sr-only", Ni.cardButton),
3142
+ className: B("sr-only", Ni.cardButton),
3141
3143
  children: e.name
3142
3144
  }), /* @__PURE__ */ Z(An, {
3143
3145
  icon: e.iconUrl,
@@ -3162,7 +3164,7 @@ var nn = /* @__PURE__ */ function(e) {
3162
3164
  }),
3163
3165
  lastUsedTrailing: r?.(e) === !1 ? void 0 : /* @__PURE__ */ Z(Pn, {
3164
3166
  isStarred: h,
3165
- size: Me.Small,
3167
+ size: Y.Small,
3166
3168
  onClick: y,
3167
3169
  ariaLabel: h ? d : u
3168
3170
  })
@@ -3178,7 +3180,7 @@ var nn = /* @__PURE__ */ function(e) {
3178
3180
  return new DOMRect(t.x + n, t.y + r, t.width, t.height);
3179
3181
  }
3180
3182
  }, Li = ({ 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 }) => {
3181
- let g = o?.typography?.titleClassName ?? "dial-body-semi-text", _ = o?.typography?.countClassName ?? "dial-tiny-semi-text", v = B({
3183
+ let g = o?.typography?.titleClassName ?? "dial-body-semi-text", _ = o?.typography?.countClassName ?? "dial-tiny-semi-text", v = z({
3182
3184
  "--cat-fav-title-text": o?.colors?.titleText,
3183
3185
  "--cat-fav-count-text": o?.colors?.countText,
3184
3186
  "--cat-fav-selected-border": o?.colors?.selectedCardBorder,
@@ -3189,25 +3191,25 @@ var nn = /* @__PURE__ */ function(e) {
3189
3191
  "--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
3190
3192
  "--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
3191
3193
  "--cat-fav-page-nav-bg": o?.colors?.pageNavBackground
3192
- }), y = W(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [b, x] = K(1), S = fn(), C = le(), w = !h && !C, T = S * Fi, E = (b - 1) * T, D = W(() => w ? y.slice(E, E + T) : y, [
3194
+ }), y = U(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [b, x] = G(1), S = fn(), C = ue(), w = !h && !C, T = S * Fi, E = (b - 1) * T, D = U(() => w ? y.slice(E, E + T) : y, [
3193
3195
  w,
3194
3196
  y,
3195
3197
  E,
3196
3198
  T
3197
3199
  ]), O = 1;
3198
3200
  w ? O = Math.ceil(y.length / T) : C && !h && (O = y.length);
3199
- let k = t ?? e.length, A = G(null), j = G(null), M = G(null), [N, P] = K(), [ee, F] = K(), I = G(S), L = G(C);
3200
- U(() => {
3201
- (I.current !== S || L.current !== C) && (I.current = S, L.current = C, x(1), P(void 0), F(void 0));
3202
- }, [S, C]), U(() => {
3201
+ let k = t ?? e.length, A = W(null), j = W(null), M = W(null), [N, P] = G(), [ee, F] = G(), te = W(S), I = W(C);
3202
+ H(() => {
3203
+ (te.current !== S || I.current !== C) && (te.current = S, I.current = C, x(1), P(void 0), F(void 0));
3204
+ }, [S, C]), H(() => {
3203
3205
  b > O && O > 0 && x(O);
3204
- }, [b, O]), U(() => {
3206
+ }, [b, O]), H(() => {
3205
3207
  O <= 1 && (N !== void 0 || ee !== void 0) && (P(void 0), F(void 0));
3206
3208
  }, [
3207
3209
  O,
3208
3210
  N,
3209
3211
  ee
3210
- ]), _e(() => {
3212
+ ]), ve(() => {
3211
3213
  !M.current || !j.current || C || O <= 1 || b !== 1 || N !== void 0 || (P(M.current.offsetHeight), F(j.current.offsetHeight));
3212
3214
  }, [
3213
3215
  C,
@@ -3215,21 +3217,21 @@ var nn = /* @__PURE__ */ function(e) {
3215
3217
  b,
3216
3218
  N
3217
3219
  ]);
3218
- let te = G(/* @__PURE__ */ new Map()), ne = G(b), re = G(S), R = G(0), z = G(!1);
3219
- _e(() => {
3220
+ let ne = W(/* @__PURE__ */ new Map()), re = W(b), ie = W(S), L = W(0), R = W(!1);
3221
+ ve(() => {
3220
3222
  if (!M.current || s) return;
3221
- if (A.current && !z.current) {
3223
+ if (A.current && !R.current) {
3222
3224
  let e = A.current;
3223
3225
  e.style.height = "", e.style.transition = "";
3224
3226
  }
3225
- let e = C || ne.current !== b, t = re.current !== S;
3226
- ne.current = b, re.current = S;
3227
+ let e = C || re.current !== b, t = ie.current !== S;
3228
+ re.current = b, ie.current = S;
3227
3229
  let n = M.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
3228
3230
  if (n.forEach((e) => {
3229
3231
  let { cardId: t } = e.dataset;
3230
3232
  t && r.set(t, Ii(e));
3231
3233
  }), !e && !t) {
3232
- let e = j.current, t = R.current, i = 0;
3234
+ let e = j.current, t = L.current, i = 0;
3233
3235
  if (e) {
3234
3236
  let t = e.style.height;
3235
3237
  t && (e.style.height = ""), i = e.offsetHeight, t && (e.style.height = t);
@@ -3238,7 +3240,7 @@ var nn = /* @__PURE__ */ function(e) {
3238
3240
  if (n.forEach((e) => {
3239
3241
  let t = e.dataset.cardId;
3240
3242
  if (!t) return;
3241
- let n = te.current.get(t), i = r.get(t);
3243
+ let n = ne.current.get(t), i = r.get(t);
3242
3244
  if (!n || !i) return;
3243
3245
  let o = n.left - i.left, c = n.top - i.top;
3244
3246
  !a && Math.abs(c) > .5 || Math.abs(o) < .5 && Math.abs(c) < .5 || (e.style.transition = "none", e.style.transform = `translate(${o}px, ${c}px)`, s.push(e));
@@ -3254,9 +3256,9 @@ var nn = /* @__PURE__ */ function(e) {
3254
3256
  e.addEventListener("transitionend", t);
3255
3257
  }
3256
3258
  }
3257
- if (te.current = r, j.current) {
3259
+ if (ne.current = r, j.current) {
3258
3260
  let e = j.current, t = e.style.height ? parseFloat(e.style.height) : NaN;
3259
- R.current = Number.isNaN(t) ? e.offsetHeight : t;
3261
+ L.current = Number.isNaN(t) ? e.offsetHeight : t;
3260
3262
  }
3261
3263
  }, [
3262
3264
  D,
@@ -3264,47 +3266,47 @@ var nn = /* @__PURE__ */ function(e) {
3264
3266
  S,
3265
3267
  C,
3266
3268
  s
3267
- ]), _e(() => {
3269
+ ]), ve(() => {
3268
3270
  let e = A.current;
3269
3271
  if (!e) return;
3270
3272
  let t = e.offsetHeight;
3271
3273
  if (t === 0) return;
3272
- z.current = !0, e.style.height = "0px", e.offsetHeight, e.style.transition = "height 300ms cubic-bezier(0, 0, 0.2, 1)", e.style.height = `${t}px`;
3274
+ R.current = !0, e.style.height = "0px", e.offsetHeight, e.style.transition = "height 300ms cubic-bezier(0, 0, 0.2, 1)", e.style.height = `${t}px`;
3273
3275
  let n = (t) => {
3274
3276
  t.target === e && t.propertyName === "height" && r();
3275
3277
  }, r = () => {
3276
- z.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
3278
+ R.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
3277
3279
  }, i = setTimeout(r, 400);
3278
3280
  return e.addEventListener("transitionend", n), r;
3279
- }, []), _e(() => {
3281
+ }, []), ve(() => {
3280
3282
  if (!s || !A.current) return;
3281
3283
  let e = A.current, t = e.offsetHeight;
3282
3284
  t !== 0 && (e.style.height = `${t}px`, e.offsetHeight, e.style.transition = "height 260ms ease-in", e.style.height = "0px");
3283
3285
  }, [s]);
3284
- let ae = H(() => M.current ? Array.from(M.current.querySelectorAll("[data-card-id]")) : [], []), oe = G(null), se = G(null), ce = H(() => {
3285
- se.current ??= requestAnimationFrame(() => {
3286
- se.current = null;
3286
+ let oe = V(() => M.current ? Array.from(M.current.querySelectorAll("[data-card-id]")) : [], []), se = W(null), ce = W(null), le = V(() => {
3287
+ ce.current ??= requestAnimationFrame(() => {
3288
+ ce.current = null;
3287
3289
  let e = M.current;
3288
3290
  if (!e) return;
3289
- let t = Mi(e, ae()) + 1;
3290
- if (oe.current != null) {
3291
- if (t !== oe.current) return;
3292
- oe.current = null;
3291
+ let t = Mi(e, oe()) + 1;
3292
+ if (se.current != null) {
3293
+ if (t !== se.current) return;
3294
+ se.current = null;
3293
3295
  }
3294
3296
  x(t);
3295
3297
  });
3296
- }, [ae]), ue = H(() => {
3297
- oe.current = null;
3298
+ }, [oe]), de = V(() => {
3299
+ se.current = null;
3298
3300
  }, []);
3299
- U(() => () => {
3300
- se.current != null && cancelAnimationFrame(se.current);
3301
+ H(() => () => {
3302
+ ce.current != null && cancelAnimationFrame(ce.current);
3301
3303
  }, []);
3302
- let de = (e) => {
3304
+ let fe = (e) => {
3303
3305
  if (x(e), !C || !M.current) return;
3304
- let t = ae()[e - 1];
3306
+ let t = oe()[e - 1];
3305
3307
  if (!t) return;
3306
3308
  let n = ji(M.current, t);
3307
- Math.abs(n) < 1 || (oe.current = e, M.current.scrollBy({
3309
+ Math.abs(n) < 1 || (se.current = e, M.current.scrollBy({
3308
3310
  left: n,
3309
3311
  behavior: "smooth"
3310
3312
  }));
@@ -3313,7 +3315,7 @@ var nn = /* @__PURE__ */ function(e) {
3313
3315
  ref: A,
3314
3316
  children: /* @__PURE__ */ Q("section", {
3315
3317
  ref: j,
3316
- className: V("flex shrink-0 flex-col gap-4 pt-2 pb-2", Ni.section, s && Ni.sectionLeaving),
3318
+ className: B("flex shrink-0 flex-col gap-4 pt-2 pb-2", Ni.section, s && Ni.sectionLeaving),
3317
3319
  style: {
3318
3320
  ...v,
3319
3321
  minHeight: ee
@@ -3321,29 +3323,29 @@ var nn = /* @__PURE__ */ function(e) {
3321
3323
  onAnimationEnd: (e) => {
3322
3324
  e.target === j.current && s && c?.();
3323
3325
  },
3324
- children: [/* @__PURE__ */ Z(ie, {
3326
+ children: [/* @__PURE__ */ Z(ae, {
3325
3327
  title: n,
3326
3328
  postfix: k,
3327
- titleClassName: V(g, Ni.titleText),
3328
- postfixClassName: V(_, Ni.countText),
3329
+ titleClassName: B(g, Ni.titleText),
3330
+ postfixClassName: B(_, Ni.countText),
3329
3331
  trailing: O > 1 ? /* @__PURE__ */ Q("div", {
3330
- className: V("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", Ni.pageNav),
3332
+ className: B("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", Ni.pageNav),
3331
3333
  children: [
3332
3334
  /* @__PURE__ */ Z(ze, {
3333
- size: Me.Small,
3335
+ size: Y.Small,
3334
3336
  "aria-label": l,
3335
3337
  disabled: b === 1,
3336
- onClick: () => de(b - 1),
3337
- className: V("rounded-full", Ni.navBtn),
3338
+ onClick: () => fe(b - 1),
3339
+ className: B("rounded-full", Ni.navBtn),
3338
3340
  icon: /* @__PURE__ */ Z(xt, {
3339
3341
  size: 14,
3340
3342
  "aria-hidden": !0,
3341
3343
  className: "rtl:scale-x-[-1]",
3342
- stroke: Y
3344
+ stroke: J
3343
3345
  })
3344
3346
  }),
3345
3347
  /* @__PURE__ */ Q("span", {
3346
- className: V("min-w-[32px] px-1 text-center select-none", _, Ni.countText),
3348
+ className: B("min-w-[32px] px-1 text-center select-none", _, Ni.countText),
3347
3349
  children: [
3348
3350
  b,
3349
3351
  " / ",
@@ -3351,30 +3353,30 @@ var nn = /* @__PURE__ */ function(e) {
3351
3353
  ]
3352
3354
  }),
3353
3355
  /* @__PURE__ */ Z(ze, {
3354
- size: Me.Small,
3356
+ size: Y.Small,
3355
3357
  "aria-label": u,
3356
3358
  disabled: b === O,
3357
- onClick: () => de(b + 1),
3358
- className: V("rounded-full", Ni.navBtn),
3359
+ onClick: () => fe(b + 1),
3360
+ className: B("rounded-full", Ni.navBtn),
3359
3361
  icon: /* @__PURE__ */ Z(St, {
3360
3362
  size: 14,
3361
3363
  "aria-hidden": !0,
3362
3364
  className: "rtl:scale-x-[-1]",
3363
- stroke: Y
3365
+ stroke: J
3364
3366
  })
3365
3367
  })
3366
3368
  ]
3367
3369
  }) : void 0
3368
3370
  }), /* @__PURE__ */ Z("div", {
3369
3371
  ref: M,
3370
- 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", Ni.gridPage),
3372
+ 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", Ni.gridPage),
3371
3373
  style: {
3372
3374
  gridTemplateColumns: C ? void 0 : `repeat(${S}, minmax(0, 1fr))`,
3373
3375
  minHeight: N
3374
3376
  },
3375
- onScroll: C ? ce : void 0,
3376
- onScrollEnd: C ? ue : void 0,
3377
- onPointerDown: C ? ue : void 0,
3377
+ onScroll: C ? le : void 0,
3378
+ onScrollEnd: C ? de : void 0,
3379
+ onPointerDown: C ? de : void 0,
3378
3380
  children: D.map((e) => /* @__PURE__ */ Z(Pi, {
3379
3381
  item: e,
3380
3382
  onToggle: r,
@@ -3400,7 +3402,7 @@ var nn = /* @__PURE__ */ function(e) {
3400
3402
  version: "_version_7uzyn_54"
3401
3403
  }, Bi = ({ data: e, value: t }) => e ? /* @__PURE__ */ Z("div", {
3402
3404
  className: "flex h-full items-center",
3403
- children: /* @__PURE__ */ Z(ne, { type: t ?? e.type })
3405
+ children: /* @__PURE__ */ Z(re, { type: t ?? e.type })
3404
3406
  }) : null, Vi = " / ", Hi = ({ data: e, context: t }) => {
3405
3407
  if (!e || e.folder.length === 0) return null;
3406
3408
  let n = e.folder.join(Vi), r = e.folder[e.folder.length - 1], i = e.folder.length > 1, a = t?.typography?.folderClassName ?? "dial-small-text", o = t?.typography?.folderLastSegmentClassName ?? "dial-small-semi-text";
@@ -3408,9 +3410,9 @@ var nn = /* @__PURE__ */ function(e) {
3408
3410
  className: "flex h-full w-full min-w-0 items-center gap-1.5",
3409
3411
  children: [
3410
3412
  /* @__PURE__ */ Z(Dt, {
3411
- size: J.SM,
3412
- stroke: Y,
3413
- className: V("shrink-0", zi.folderIcon),
3413
+ size: q.SM,
3414
+ stroke: J,
3415
+ className: B("shrink-0", zi.folderIcon),
3414
3416
  "aria-hidden": !0
3415
3417
  }),
3416
3418
  /* @__PURE__ */ Z(ft, {
@@ -3438,7 +3440,7 @@ var nn = /* @__PURE__ */ function(e) {
3438
3440
  className: "flex h-full w-full min-w-0 items-center gap-2.5",
3439
3441
  children: [/* @__PURE__ */ Q("div", {
3440
3442
  className: "relative shrink-0",
3441
- children: [/* @__PURE__ */ Z(L, {
3443
+ children: [/* @__PURE__ */ Z(I, {
3442
3444
  src: e.iconUrl,
3443
3445
  size: 36,
3444
3446
  initialsName: e.name,
@@ -3450,7 +3452,7 @@ var nn = /* @__PURE__ */ function(e) {
3450
3452
  }), /* @__PURE__ */ Q("div", {
3451
3453
  className: "flex min-w-0 flex-1 items-baseline gap-1.5",
3452
3454
  children: [/* @__PURE__ */ Z("h3", {
3453
- className: V("min-w-0 shrink", i, zi.name),
3455
+ className: B("min-w-0 shrink", i, zi.name),
3454
3456
  children: /* @__PURE__ */ Z(On, {
3455
3457
  name: e.name,
3456
3458
  query: n,
@@ -3458,13 +3460,13 @@ var nn = /* @__PURE__ */ function(e) {
3458
3460
  })
3459
3461
  }), e.version && /* @__PURE__ */ Z(Ne, {
3460
3462
  text: e.version,
3461
- className: V("max-w-[30%] shrink-0", a, zi.version)
3463
+ className: B("max-w-[30%] shrink-0", a, zi.version)
3462
3464
  })]
3463
3465
  })]
3464
3466
  }) : null;
3465
3467
  }, Wi = ({ data: e, context: t }) => {
3466
- let [n, r] = K(e?.isStarred ?? !1);
3467
- return U(() => {
3468
+ let [n, r] = G(e?.isStarred ?? !1);
3469
+ return H(() => {
3468
3470
  r(e?.isStarred ?? !1);
3469
3471
  }, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ Z("div", {
3470
3472
  className: "flex size-full items-center justify-end",
@@ -3558,29 +3560,29 @@ var nn = /* @__PURE__ */ function(e) {
3558
3560
  "--cat-list-folder-icon": T?.folderIcon,
3559
3561
  "--cat-list-name-text": T?.nameText,
3560
3562
  "--cat-list-version-text": T?.versionText
3561
- }, D = G(null), O = G(t);
3563
+ }, D = W(null), O = W(t);
3562
3564
  O.current = t;
3563
- let k = H((e) => {
3565
+ let k = V((e) => {
3564
3566
  e.direction === "vertical" && O.current?.(e.top);
3565
- }, []), j = H(() => {
3567
+ }, []), j = V(() => {
3566
3568
  let e = D.current;
3567
3569
  e != null && !e.isDestroyed() && e.removeEventListener("bodyScroll", k);
3568
- }, [k]), M = H((e) => {
3570
+ }, [k]), M = V((e) => {
3569
3571
  j(), D.current = e, e.addEventListener("bodyScroll", k);
3570
3572
  }, [j, k]);
3571
- U(() => j, [j]), ge(e, () => ({ scrollToTop: () => {
3573
+ H(() => j, [j]), _e(e, () => ({ scrollToTop: () => {
3572
3574
  let e = D.current;
3573
3575
  e == null || e.isDestroyed() || e.getDisplayedRowCount() === 0 || e.ensureIndexVisible(0, "top");
3574
3576
  } }), []);
3575
- let N = W(() => Ji(r, h, g), [
3577
+ let N = U(() => Ji(r, h, g), [
3576
3578
  r,
3577
3579
  h,
3578
3580
  g
3579
- ]), P = W(() => n.map(ra), [n]), ee = H((e) => y?.(A(v, e, P)), [
3581
+ ]), P = U(() => n.map(ra), [n]), ee = V((e) => y?.(A(v, e, P)), [
3580
3582
  y,
3581
3583
  v,
3582
3584
  P
3583
- ]), F = W(() => new Set(C == null ? [] : [C]), [C]), I = W(() => ({
3585
+ ]), F = U(() => new Set(C == null ? [] : [C]), [C]), te = U(() => ({
3584
3586
  rowHeight: Yi,
3585
3587
  suppressCellFocus: !1,
3586
3588
  defaultColDef: Zi,
@@ -3613,7 +3615,7 @@ var nn = /* @__PURE__ */ function(e) {
3613
3615
  f,
3614
3616
  S
3615
3617
  ]);
3616
- return U(() => {
3618
+ return H(() => {
3617
3619
  D.current?.refreshCells({ force: !0 });
3618
3620
  }, [i, C]), /* @__PURE__ */ Z("div", {
3619
3621
  style: E,
@@ -3629,7 +3631,7 @@ var nn = /* @__PURE__ */ function(e) {
3629
3631
  emptyStateTitle: o,
3630
3632
  emptyStateDescription: s ?? "",
3631
3633
  emptyStateLive: c,
3632
- additionalGridOptions: I,
3634
+ additionalGridOptions: te,
3633
3635
  ariaLabel: a,
3634
3636
  ...S ? {
3635
3637
  selectionMode: tn.MULTIPLE,
@@ -3644,7 +3646,7 @@ var nn = /* @__PURE__ */ function(e) {
3644
3646
  divider: "_divider_k154m_1",
3645
3647
  sectionHeader: "_sectionHeader_k154m_5"
3646
3648
  }, la = ({ 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" }) => {
3647
- let [f, p] = K(null), m = f ? r.find((e) => e.key === f) : void 0, h = m?.children ?? r, g = i ? vn(h, i.value) : h, _ = B({
3649
+ let [f, p] = G(null), m = f ? r.find((e) => e.key === f) : void 0, h = m?.children ?? r, g = i ? vn(h, i.value) : h, _ = z({
3648
3650
  "--cat-create-menu-divider": u?.divider,
3649
3651
  "--cat-create-menu-section-header-text": u?.sectionHeaderText
3650
3652
  }), v = () => {
@@ -3655,7 +3657,7 @@ var nn = /* @__PURE__ */ function(e) {
3655
3657
  domEvent: t
3656
3658
  }), v());
3657
3659
  };
3658
- return /* @__PURE__ */ Q(q, {
3660
+ return /* @__PURE__ */ Q(be, {
3659
3661
  open: e,
3660
3662
  title: m ? String(m.label ?? "") : n,
3661
3663
  onBack: m ? () => p(null) : void 0,
@@ -3670,7 +3672,7 @@ var nn = /* @__PURE__ */ function(e) {
3670
3672
  placeholder: a,
3671
3673
  "aria-label": a,
3672
3674
  clearLabel: o,
3673
- size: Me.Small,
3675
+ size: Y.Small,
3674
3676
  onChange: (e) => i.onChange(e ?? "")
3675
3677
  })
3676
3678
  }),
@@ -3678,12 +3680,12 @@ var nn = /* @__PURE__ */ function(e) {
3678
3680
  role: "menu",
3679
3681
  "aria-label": m ? void 0 : n,
3680
3682
  style: _,
3681
- children: g.map((e) => e.type === Ae.Divider ? /* @__PURE__ */ Z("div", {
3683
+ children: g.map((e) => e.type === je.Divider ? /* @__PURE__ */ Z("div", {
3682
3684
  role: "separator",
3683
- className: V("my-1", ca.divider, e.className)
3684
- }, e.key) : e.type === Ae.PlainText ? /* @__PURE__ */ Z("div", {
3685
+ className: B("my-1", ca.divider, e.className)
3686
+ }, e.key) : e.type === je.PlainText ? /* @__PURE__ */ Z("div", {
3685
3687
  role: "presentation",
3686
- className: V("px-3 py-2", ca.sectionHeader, d, e.className),
3688
+ className: B("px-3 py-2", ca.sectionHeader, d, e.className),
3687
3689
  children: e.label
3688
3690
  }, e.key) : /* @__PURE__ */ Z(Je, {
3689
3691
  role: "menuitem",
@@ -3693,8 +3695,8 @@ var nn = /* @__PURE__ */ function(e) {
3693
3695
  danger: e.danger,
3694
3696
  "aria-haspopup": e.children?.length ? "menu" : void 0,
3695
3697
  trailing: e.children?.length ? /* @__PURE__ */ Z(St, {
3696
- size: J.SM,
3697
- stroke: Y,
3698
+ size: q.SM,
3699
+ stroke: J,
3698
3700
  className: "rtl:scale-x-[-1]",
3699
3701
  "aria-hidden": !0
3700
3702
  }) : void 0,
@@ -3708,16 +3710,16 @@ var nn = /* @__PURE__ */ function(e) {
3708
3710
  })
3709
3711
  ]
3710
3712
  });
3711
- }, ua = ({ 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 }) => {
3712
- let [p, m] = K(!1), h = ue(), g = /* @__PURE__ */ Z(bt, {
3713
- size: J.SM,
3714
- stroke: Y,
3713
+ }, ua = ({ 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 }) => {
3714
+ let [p, m] = G(!1), h = de(), g = /* @__PURE__ */ Z(bt, {
3715
+ size: q.SM,
3716
+ stroke: J,
3715
3717
  "aria-hidden": !0,
3716
- className: V("transition-transform", p && "rotate-180")
3718
+ className: B("transition-transform", p && "rotate-180")
3717
3719
  }), _ = {
3718
3720
  iconBefore: /* @__PURE__ */ Z(Ft, {
3719
- size: J.LG,
3720
- stroke: Y,
3721
+ size: q.LG,
3722
+ stroke: J,
3721
3723
  "aria-hidden": !0
3722
3724
  }),
3723
3725
  "aria-label": e,
@@ -3727,13 +3729,13 @@ var nn = /* @__PURE__ */ function(e) {
3727
3729
  let n = () => {
3728
3730
  m(!1), r?.onChange("");
3729
3731
  };
3730
- return /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(be, {
3732
+ return /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(K, {
3731
3733
  ...f ? _ : {
3732
3734
  label: e,
3733
3735
  iconAfter: g
3734
3736
  },
3735
3737
  variant: l,
3736
- appearance: xe.Solid,
3738
+ appearance: Se.Solid,
3737
3739
  "aria-haspopup": "dialog",
3738
3740
  "aria-expanded": p,
3739
3741
  onClick: () => m(!0)
@@ -3752,19 +3754,19 @@ var nn = /* @__PURE__ */ function(e) {
3752
3754
  sectionHeaderClassName: d
3753
3755
  })] });
3754
3756
  }
3755
- if (f && !r && !t?.length) return /* @__PURE__ */ Z(be, {
3757
+ if (f && !r && !t?.length) return /* @__PURE__ */ Z(K, {
3756
3758
  ..._,
3757
3759
  variant: l,
3758
- appearance: xe.Solid,
3760
+ appearance: Se.Solid,
3759
3761
  onClick: n
3760
3762
  });
3761
- if (r || f && t?.length) return /* @__PURE__ */ Z(Se, {
3763
+ if (r || f && t?.length) return /* @__PURE__ */ Z(Ce, {
3762
3764
  ...f ? {
3763
3765
  ..._,
3764
3766
  iconAfter: null
3765
3767
  } : { label: e },
3766
3768
  variant: l,
3767
- appearance: xe.Solid,
3769
+ appearance: Se.Solid,
3768
3770
  items: t ?? [],
3769
3771
  open: p,
3770
3772
  onOpenChange: m,
@@ -3783,23 +3785,23 @@ var nn = /* @__PURE__ */ function(e) {
3783
3785
  });
3784
3786
  if (!t?.length) {
3785
3787
  let t = /* @__PURE__ */ Z(Ft, {
3786
- size: J.SM,
3787
- stroke: Y
3788
+ size: q.SM,
3789
+ stroke: J
3788
3790
  });
3789
- return l === Ce.Primary ? /* @__PURE__ */ Z(tt, {
3791
+ return l === we.Primary ? /* @__PURE__ */ Z(tt, {
3790
3792
  label: e,
3791
3793
  iconBefore: t,
3792
3794
  onClick: n
3793
- }) : /* @__PURE__ */ Z(be, {
3795
+ }) : /* @__PURE__ */ Z(K, {
3794
3796
  label: e,
3795
3797
  variant: l,
3796
- appearance: xe.Solid,
3798
+ appearance: Se.Solid,
3797
3799
  iconBefore: t,
3798
3800
  onClick: n
3799
3801
  });
3800
3802
  }
3801
- return /* @__PURE__ */ Z(Se, {
3802
- appearance: xe.Solid,
3803
+ return /* @__PURE__ */ Z(Ce, {
3804
+ appearance: Se.Solid,
3803
3805
  label: e,
3804
3806
  variant: l,
3805
3807
  items: t,
@@ -3812,13 +3814,13 @@ var nn = /* @__PURE__ */ function(e) {
3812
3814
  titleClassName: r,
3813
3815
  descriptionClassName: i,
3814
3816
  action: n == null ? void 0 : /* @__PURE__ */ Z(ua, {
3815
- variant: Ce.Secondary,
3817
+ variant: we.Secondary,
3816
3818
  ...n
3817
3819
  })
3818
3820
  }), fa = ({ label: e, onClick: t, className: n }) => /* @__PURE__ */ Z(Fe, {
3819
3821
  icon: /* @__PURE__ */ Z(_t, {
3820
- size: J.LG,
3821
- stroke: Y,
3822
+ size: q.LG,
3823
+ stroke: J,
3822
3824
  "aria-hidden": !0
3823
3825
  }),
3824
3826
  "aria-label": e,
@@ -3855,7 +3857,7 @@ var nn = /* @__PURE__ */ function(e) {
3855
3857
  let o = e.size > 0;
3856
3858
  return r && o ? `${i} · ${e.size}` : r ? i : o ? t(e, n, a) : a;
3857
3859
  }, ga = ({ 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 }) => {
3858
- let p = (r ?? !1) || e.size > 0, [m, h] = K(!1), g = B({
3860
+ let p = (r ?? !1) || e.size > 0, [m, h] = G(!1), g = z({
3859
3861
  "--cat-filter-btn-bg": f?.buttonBackground,
3860
3862
  "--cat-filter-btn-border": f?.buttonBorder,
3861
3863
  "--cat-filter-btn-border-hover": f?.buttonBorderHover,
@@ -3872,19 +3874,19 @@ var nn = /* @__PURE__ */ function(e) {
3872
3874
  "--cat-filter-section-label": f?.sectionLabel,
3873
3875
  "--cat-filter-divider": f?.divider,
3874
3876
  "--cat-filter-footer-border": f?.footerBorder
3875
- }), _ = W(() => n == null ? [] : [...n].sort(), [n]), v = ha(e, n, r, a, s), [y, b] = K(() => new Set(e)), [x, S] = K(r ?? !1);
3876
- U(() => {
3877
+ }), _ = U(() => n == null ? [] : [...n].sort(), [n]), v = ha(e, n, r, a, s), [y, b] = G(() => new Set(e)), [x, S] = G(r ?? !1);
3878
+ H(() => {
3877
3879
  m && (b(new Set(e)), S(r ?? !1));
3878
3880
  }, [
3879
3881
  m,
3880
3882
  e,
3881
3883
  r
3882
3884
  ]);
3883
- let C = _.length + 1, [w, T] = K(-1), E = G([]), D = G(null), O = G(null), k = H((e) => {
3885
+ let C = _.length + 1, [w, T] = G(-1), E = W([]), D = W(null), O = W(null), k = V((e) => {
3884
3886
  let t = (e + C) % C;
3885
3887
  T(t), E.current[t]?.focus();
3886
3888
  }, [C]);
3887
- U(() => {
3889
+ H(() => {
3888
3890
  if (!m) {
3889
3891
  T(-1);
3890
3892
  return;
@@ -3904,13 +3906,13 @@ var nn = /* @__PURE__ */ function(e) {
3904
3906
  }, P = () => {
3905
3907
  t(/* @__PURE__ */ new Set()), i?.(!1), A(!1);
3906
3908
  };
3907
- return /* @__PURE__ */ Z(ke, {
3909
+ return /* @__PURE__ */ Z(Ae, {
3908
3910
  matchReferenceWidth: !1,
3909
3911
  placement: "bottom-start",
3910
3912
  open: m,
3911
3913
  onOpenChange: A,
3912
3914
  listClassName: "!bg-transparent !shadow-none !p-0",
3913
- overlayRole: je.Dialog,
3915
+ overlayRole: Me.Dialog,
3914
3916
  overlayAriaLabel: s,
3915
3917
  optionArrowNavigation: !1,
3916
3918
  renderOverlay: () => /* @__PURE__ */ Q("div", {
@@ -3919,7 +3921,7 @@ var nn = /* @__PURE__ */ function(e) {
3919
3921
  ...g,
3920
3922
  maxHeight: "calc(var(--fui-available-height, 9999px) - 8px)"
3921
3923
  },
3922
- className: V("flex min-w-[360px] flex-col rounded-xl p-[6px]", ma.overlay),
3924
+ className: B("flex min-w-[360px] flex-col rounded-xl p-[6px]", ma.overlay),
3923
3925
  onKeyDown: M,
3924
3926
  children: [/* @__PURE__ */ Q("div", {
3925
3927
  role: "menu",
@@ -3931,7 +3933,7 @@ var nn = /* @__PURE__ */ function(e) {
3931
3933
  mark: Ye.Checkbox,
3932
3934
  selected: x,
3933
3935
  label: a,
3934
- labelClassName: V(ma.rowLabel, d?.filterButtonClassName ?? "dial-small-semi-text"),
3936
+ labelClassName: B(ma.rowLabel, d?.filterButtonClassName ?? "dial-small-semi-text"),
3935
3937
  className: "shrink-0",
3936
3938
  tabIndex: w === 0 ? 0 : -1,
3937
3939
  ref: (e) => {
@@ -3941,16 +3943,16 @@ var nn = /* @__PURE__ */ function(e) {
3941
3943
  }), _.length > 0 && /* @__PURE__ */ Q(X, { children: [
3942
3944
  /* @__PURE__ */ Z("div", {
3943
3945
  role: "separator",
3944
- className: V("my-1 h-px", ma.divider),
3946
+ className: B("my-1 h-px", ma.divider),
3945
3947
  "aria-hidden": !0
3946
3948
  }),
3947
3949
  /* @__PURE__ */ Z("div", {
3948
- className: V("px-[10px] pt-[10px] pb-1", d?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", ma.sectionLabel),
3950
+ className: B("px-[10px] pt-[10px] pb-1", d?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", ma.sectionLabel),
3949
3951
  "aria-hidden": !0,
3950
3952
  children: o
3951
3953
  }),
3952
3954
  /* @__PURE__ */ Z("div", {
3953
- className: V(se, "flex min-h-0 flex-col gap-1 overflow-y-auto"),
3955
+ className: B(ce, "flex min-h-0 flex-col gap-1 overflow-y-auto"),
3954
3956
  children: _.map((e, t) => {
3955
3957
  let n = y.has(e), r = t + 1;
3956
3958
  return /* @__PURE__ */ Z(Je, {
@@ -3971,7 +3973,7 @@ var nn = /* @__PURE__ */ function(e) {
3971
3973
  })
3972
3974
  ] })]
3973
3975
  }), /* @__PURE__ */ Q("div", {
3974
- className: V("mt-1 flex shrink-0 items-center px-1 py-3", ma.footer),
3976
+ className: B("mt-1 flex shrink-0 items-center px-1 py-3", ma.footer),
3975
3977
  ref: O,
3976
3978
  children: [/* @__PURE__ */ Z(Re, {
3977
3979
  label: c,
@@ -3983,37 +3985,37 @@ var nn = /* @__PURE__ */ function(e) {
3983
3985
  })]
3984
3986
  })]
3985
3987
  }),
3986
- children: /* @__PURE__ */ Z(be, {
3988
+ children: /* @__PURE__ */ Z(K, {
3987
3989
  ref: D,
3988
3990
  "aria-expanded": m,
3989
3991
  onKeyDown: j,
3990
3992
  style: g,
3991
3993
  iconBefore: /* @__PURE__ */ Z(Et, {
3992
- size: J.SM,
3993
- stroke: Y,
3994
- className: V("shrink-0", ma.filterBtnFunnel),
3994
+ size: q.SM,
3995
+ stroke: J,
3996
+ className: B("shrink-0", ma.filterBtnFunnel),
3995
3997
  "aria-hidden": !0
3996
3998
  }),
3997
3999
  label: v,
3998
- textClassName: V(ma.filterBtnLabel, d?.filterButtonClassName ?? "dial-small-semi-text"),
4000
+ textClassName: B(ma.filterBtnLabel, d?.filterButtonClassName ?? "dial-small-semi-text"),
3999
4001
  iconAfter: /* @__PURE__ */ Z(bt, {
4000
4002
  size: 14,
4001
- stroke: Y,
4002
- className: V("shrink-0 transition-transform duration-150", ma.filterBtnChevron, m && "rotate-180"),
4003
+ stroke: J,
4004
+ className: B("shrink-0 transition-transform duration-150", ma.filterBtnChevron, m && "rotate-180"),
4003
4005
  "aria-hidden": !0
4004
4006
  }),
4005
- className: V("h-12 shrink-0 gap-[7px] rounded-lg! px-[18px] whitespace-nowrap", ma.filterBtn, p && ma.filterBtnActive, m && ma.filterBtnOpen)
4007
+ className: B("h-12 shrink-0 gap-[7px] rounded-lg! px-[18px] whitespace-nowrap", ma.filterBtn, p && ma.filterBtnActive, m && ma.filterBtnOpen)
4006
4008
  })
4007
4009
  });
4008
4010
  }, _a = /* @__PURE__ */ function(e) {
4009
4011
  return e.Root = "root", e.View = "view", e.Sorting = "sorting", e.Filtering = "filtering", e;
4010
4012
  }({}), va = /* @__PURE__ */ Z(St, {
4011
- size: J.SM,
4012
- stroke: Y,
4013
+ size: q.SM,
4014
+ stroke: J,
4013
4015
  className: "rtl:scale-x-[-1]",
4014
4016
  "aria-hidden": !0
4015
4017
  }), ya = ({ 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 }) => {
4016
- let [h, g] = K(_a.Root), [_, v] = K(() => /* @__PURE__ */ new Set()), [y, b] = K(!1), x = W(() => u == null ? [] : [...u].sort(), [u]), S = i != null && i.length > 0, C = s.size + +!!d, w = () => {
4018
+ let [h, g] = G(_a.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 = () => {
4017
4019
  g(_a.Root), t();
4018
4020
  }, T = () => {
4019
4021
  v(new Set(s)), b(d ?? !1), g(_a.Filtering);
@@ -4035,14 +4037,14 @@ var nn = /* @__PURE__ */ function(e) {
4035
4037
  [_a.Sorting]: p.sorting,
4036
4038
  [_a.Filtering]: p.filtering
4037
4039
  }, A = h === _a.Filtering;
4038
- return /* @__PURE__ */ Q(q, {
4040
+ return /* @__PURE__ */ Q(be, {
4039
4041
  open: e,
4040
4042
  title: k[h],
4041
4043
  onBack: h === _a.Root ? void 0 : () => g(_a.Root),
4042
4044
  backAriaLabel: p.back,
4043
4045
  closeAriaLabel: p.close,
4044
4046
  onClose: w,
4045
- bodyClassName: V(A && "flex flex-col"),
4047
+ bodyClassName: B(A && "flex flex-col"),
4046
4048
  children: [
4047
4049
  h === _a.Root && /* @__PURE__ */ Q("div", {
4048
4050
  role: "menu",
@@ -4084,8 +4086,8 @@ var nn = /* @__PURE__ */ function(e) {
4084
4086
  selected: n === e,
4085
4087
  label: t,
4086
4088
  icon: /* @__PURE__ */ Z(i, {
4087
- size: J.SM,
4088
- stroke: Y,
4089
+ size: q.SM,
4090
+ stroke: J,
4089
4091
  "aria-hidden": !0
4090
4092
  }),
4091
4093
  onClick: () => {
@@ -4124,11 +4126,11 @@ var nn = /* @__PURE__ */ function(e) {
4124
4126
  }), x.length > 0 && /* @__PURE__ */ Q(X, { children: [
4125
4127
  /* @__PURE__ */ Z("div", {
4126
4128
  role: "separator",
4127
- className: V("my-1 h-px", ma.divider),
4129
+ className: B("my-1 h-px", ma.divider),
4128
4130
  "aria-hidden": !0
4129
4131
  }),
4130
4132
  /* @__PURE__ */ Z("div", {
4131
- className: V("px-[10px] pt-[10px] pb-1", m?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", ma.sectionLabel),
4133
+ className: B("px-[10px] pt-[10px] pb-1", m?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", ma.sectionLabel),
4132
4134
  "aria-hidden": !0,
4133
4135
  children: p.topics
4134
4136
  }),
@@ -4147,7 +4149,7 @@ var nn = /* @__PURE__ */ function(e) {
4147
4149
  })
4148
4150
  ] })]
4149
4151
  }), /* @__PURE__ */ Q("div", {
4150
- className: V("flex shrink-0 items-center gap-3 px-4 py-3", ma.footer),
4152
+ className: B("flex shrink-0 items-center gap-3 px-4 py-3", ma.footer),
4151
4153
  children: [/* @__PURE__ */ Z(Re, {
4152
4154
  label: p.clear,
4153
4155
  className: "flex-1",
@@ -4166,8 +4168,8 @@ var nn = /* @__PURE__ */ function(e) {
4166
4168
  settingsDot: "_settingsDot_mk15x_9",
4167
4169
  searchField: "_searchField_mk15x_17"
4168
4170
  }, xa = /* @__PURE__ */ new Set(), Sa = ({ 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 }) => {
4169
- let E = ue(), D = G(null), O = G(null), k = G(null), A = G(!1), j = G(E), [M, N] = K(!1);
4170
- _e(() => {
4171
+ let E = de(), D = W(null), O = W(null), k = W(null), A = W(!1), j = W(E), [M, N] = G(!1);
4172
+ ve(() => {
4171
4173
  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()));
4172
4174
  }, [E, M]);
4173
4175
  let P = (b ?? !1) || (_?.size ?? 0) > 0, ee = {
@@ -4175,25 +4177,25 @@ var nn = /* @__PURE__ */ function(e) {
4175
4177
  myApps: C ?? pa.myApps,
4176
4178
  topics: w ?? pa.topics,
4177
4179
  ...T
4178
- }, F = a?.typography?.titleClassName ?? "dial-body-semi-text", I = a?.typography?.countClassName ?? "dial-tiny-semi-text", L = W(() => [{
4180
+ }, F = a?.typography?.titleClassName ?? "dial-body-semi-text", te = a?.typography?.countClassName ?? "dial-tiny-semi-text", I = U(() => [{
4179
4181
  value: sn.Grid,
4180
4182
  icon: /* @__PURE__ */ Z(kt, {
4181
- size: J.SM,
4183
+ size: q.SM,
4182
4184
  "aria-hidden": !0,
4183
- stroke: Y
4185
+ stroke: J
4184
4186
  }),
4185
4187
  "aria-label": u
4186
4188
  }, {
4187
4189
  value: sn.Cards,
4188
4190
  icon: /* @__PURE__ */ Z(At, {
4189
- size: J.SM,
4191
+ size: q.SM,
4190
4192
  "aria-hidden": !0,
4191
- stroke: Y
4193
+ stroke: J
4192
4194
  }),
4193
4195
  "aria-label": d
4194
- }], [u, d]), te = (e) => {
4196
+ }], [u, d]), ne = (e) => {
4195
4197
  s(e ?? "");
4196
- }, ne = m?.find((e) => e.value === p)?.label ?? g, re = W(() => (m ?? []).map((e) => ({
4198
+ }, re = m?.find((e) => e.value === p)?.label ?? g, ie = U(() => (m ?? []).map((e) => ({
4197
4199
  key: e.value,
4198
4200
  label: e.label,
4199
4201
  mark: Ye.Check,
@@ -4215,11 +4217,11 @@ var nn = /* @__PURE__ */ function(e) {
4215
4217
  className: "flex flex-col gap-3",
4216
4218
  children: [/* @__PURE__ */ Q("div", {
4217
4219
  className: "flex flex-wrap items-center gap-x-2 gap-y-3",
4218
- children: [i ?? /* @__PURE__ */ Z(ie, {
4220
+ children: [i ?? /* @__PURE__ */ Z(ae, {
4219
4221
  title: r,
4220
4222
  postfix: e,
4221
4223
  titleClassName: F,
4222
- postfixClassName: I,
4224
+ postfixClassName: te,
4223
4225
  className: "shrink-0",
4224
4226
  shouldTruncateTitle: !1,
4225
4227
  colors: {
@@ -4233,12 +4235,12 @@ var nn = /* @__PURE__ */ function(e) {
4233
4235
  "aria-label": f,
4234
4236
  value: t,
4235
4237
  onChange: n,
4236
- items: L
4237
- }), m != null && m.length > 0 && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", { className: V("h-4 w-px shrink-0", ba.divider) }), /* @__PURE__ */ Z(Se, {
4238
- items: re,
4239
- label: ne,
4240
- variant: Ce.Primary,
4241
- appearance: xe.Ghost
4238
+ items: I
4239
+ }), m != null && m.length > 0 && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", { className: B("h-4 w-px shrink-0", ba.divider) }), /* @__PURE__ */ Z(Ce, {
4240
+ items: ie,
4241
+ label: re,
4242
+ variant: we.Primary,
4243
+ appearance: Se.Ghost
4242
4244
  })] })]
4243
4245
  })]
4244
4246
  }), /* @__PURE__ */ Q("div", {
@@ -4248,8 +4250,8 @@ var nn = /* @__PURE__ */ function(e) {
4248
4250
  className: "flex-1",
4249
4251
  children: /* @__PURE__ */ Z(it, {
4250
4252
  value: o,
4251
- onChange: te,
4252
- size: Me.Large,
4253
+ onChange: ne,
4254
+ size: Y.Large,
4253
4255
  wrapperClassName: ba.searchField,
4254
4256
  placeholder: c,
4255
4257
  "aria-label": c,
@@ -4259,18 +4261,18 @@ var nn = /* @__PURE__ */ function(e) {
4259
4261
  className: "relative shrink-0",
4260
4262
  children: [/* @__PURE__ */ Z(ze, {
4261
4263
  ref: O,
4262
- size: Me.Large,
4264
+ size: Y.Large,
4263
4265
  "aria-label": ee.title,
4264
4266
  "aria-haspopup": "dialog",
4265
4267
  "aria-expanded": M,
4266
4268
  onClick: () => N(!0),
4267
4269
  icon: /* @__PURE__ */ Z(mt, {
4268
- size: J.LG,
4269
- stroke: Y,
4270
+ size: q.LG,
4271
+ stroke: J,
4270
4272
  "aria-hidden": !0
4271
4273
  })
4272
4274
  }), P && /* @__PURE__ */ Z("span", {
4273
- className: V("pointer-events-none absolute inset-e-2.5 top-2.5 size-2 rounded-full", ba.settingsDot),
4275
+ className: B("pointer-events-none absolute inset-e-2.5 top-2.5 size-2 rounded-full", ba.settingsDot),
4274
4276
  "aria-hidden": !0
4275
4277
  })]
4276
4278
  }), /* @__PURE__ */ Z(ya, {
@@ -4309,7 +4311,7 @@ var nn = /* @__PURE__ */ function(e) {
4309
4311
  "--cat-browse-settings-dot": r?.colors?.settingsActiveDot
4310
4312
  };
4311
4313
  return /* @__PURE__ */ Z("section", {
4312
- className: V("shrink-0 px-4", ba.section, pn.toolbar),
4314
+ className: B("shrink-0 px-4", ba.section, pn.toolbar),
4313
4315
  style: b,
4314
4316
  children: /* @__PURE__ */ Z(Sa, {
4315
4317
  styles: r,
@@ -4338,8 +4340,8 @@ var nn = /* @__PURE__ */ function(e) {
4338
4340
  root: "_root_1h83l_1",
4339
4341
  heading: "_heading_1h83l_5",
4340
4342
  headingTitle: "_headingTitle_1h83l_9"
4341
- }, Ta = 3, Ea = 300, Da = ({ 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: ee, getPublishDisabledReason: F, hasPublishWriteAccess: I, publishDefaultAuthor: L, onPublish: te, onPublishSuccess: ne, onPublishError: re, onCreatePublishFolder: ie, publishLabels: R, ruleSourceOptions: z, onFetchExistingRules: ae, shareOverlay: oe, isShareVisible: se, isSharePrimary: ce, onFetchDetails: B, renderCredentials: le, onEdit: de, onDownload: fe, isDownloadVisible: pe, isDownloadPrimary: he, onLoadContentFile: ge, onLoadContentFilePreview: _e, renderContentFilePreview: ve, renderContentFileTree: q, onDelete: ye, onUnshare: be, isUnshareVisible: xe, onRevokeShare: Se, onFetchRecipientsCount: Ce, isRevokeShareVisible: we, onUnpublish: Te, isUnpublishVisible: Ee, onLogin: De, onLogout: J, onCreateClick: Y, createOptions: Oe, createSearch: ke, createMenuByTab: Ae, hideCreateButton: je = !1, hidePageTitle: Me = !1, isReadonly: Ne = !1, initialViewMode: Pe = sn.Grid, isFullWidth: Fe = !1, isFavoritesPaginationHidden: Ie = !1, selectedItemId: Le, onCardClick: Re, isLoading: ze, styles: Be, detailsTexts: Ve, detailsLimitsFooterNote: He, initialDetailsItemId: Ue, sortKey: We, onSortChange: Ge, filterTopics: Ke, onFilterTopicsChange: qe, isMyAppsActive: Je, onMyAppsActiveChange: Ye, activeTab: Xe, onActiveTabChange: Ze, renderEmptyState: Qe }) => {
4342
- let { typography: $e, headingRowClassName: et = "h-[64px]" } = Be ?? {}, tt = xn(Be), nt = ue(), rt = a?.pageTitle ?? "Catalog", it = a?.createLabel ?? "Create", at = a?.favoritesTitle ?? "Your favorites", ot = a?.browseTitle ?? "Browse", st = a?.searchPlaceholder ?? "Search models, tools, agents…", ct = a?.noResultsTitle ?? (() => "No items found"), dt = a?.myAppsEmptyTitle ?? (() => "No personal items yet"), ft = a?.myAppsEmptyDescription ?? "Create your first one, it'll show up right here.", pt = a?.featuredLabel ?? "Featured", mt = a?.gridViewLabel ?? "Grid view", ht = a?.listViewLabel ?? "List view", gt = a?.viewToggleLabel ?? "View mode", _t = a?.ariaLabel ?? "Catalog", vt = a?.scrollToTopLabel ?? "Scroll to top", yt = a?.sortLabel ?? "Sort", bt = [
4343
+ }, Ta = 3, Ea = 300, Da = ({ 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: ee, getPublishDisabledReason: F, hasPublishWriteAccess: te, publishDefaultAuthor: I, onPublish: ne, onPublishSuccess: re, onPublishError: ie, onCreatePublishFolder: ae, publishLabels: L, hidePublishAuthor: R = !1, hidePublishAccessRules: oe = !1, ruleSourceOptions: se, onFetchExistingRules: ce, shareOverlay: le, isShareVisible: z, isSharePrimary: ue, onFetchDetails: fe, renderCredentials: pe, onEdit: me, onDownload: ge, isDownloadVisible: _e, isDownloadPrimary: ve, onLoadContentFile: ye, onLoadContentFilePreview: be, renderContentFilePreview: xe, renderContentFileTree: K, onDelete: Se, onUnshare: Ce, isUnshareVisible: we, onRevokeShare: Te, onFetchRecipientsCount: Ee, isRevokeShareVisible: De, onUnpublish: Oe, isUnpublishVisible: q, onLogin: J, onLogout: ke, onCreateClick: Ae, createOptions: je, createSearch: Me, createMenuByTab: Y, hideCreateButton: Ne = !1, hidePageTitle: Pe = !1, isReadonly: Fe = !1, initialViewMode: Ie = sn.Grid, isFullWidth: Le = !1, isFavoritesPaginationHidden: Re = !1, selectedItemId: ze, onCardClick: Be, isLoading: Ve, styles: He, detailsTexts: Ue, detailsLimitsFooterNote: We, initialDetailsItemId: Ge, sortKey: Ke, onSortChange: qe, filterTopics: Je, onFilterTopicsChange: Ye, isMyAppsActive: Xe, onMyAppsActiveChange: Ze, activeTab: Qe, onActiveTabChange: $e, renderEmptyState: et }) => {
4344
+ let { typography: tt, headingRowClassName: nt = "h-[64px]" } = He ?? {}, rt = xn(He), it = de(), at = a?.pageTitle ?? "Catalog", ot = a?.createLabel ?? "Create", st = a?.favoritesTitle ?? "Your favorites", ct = a?.browseTitle ?? "Browse", dt = a?.searchPlaceholder ?? "Search models, tools, agents…", ft = a?.noResultsTitle ?? (() => "No items found"), pt = a?.myAppsEmptyTitle ?? (() => "No personal items yet"), mt = a?.myAppsEmptyDescription ?? "Create your first one, it'll show up right here.", ht = a?.featuredLabel ?? "Featured", gt = a?.gridViewLabel ?? "Grid view", _t = a?.listViewLabel ?? "List view", vt = a?.viewToggleLabel ?? "View mode", yt = a?.ariaLabel ?? "Catalog", bt = a?.scrollToTopLabel ?? "Scroll to top", xt = a?.sortLabel ?? "Sort", St = [
4343
4345
  {
4344
4346
  value: o.RecentlyUpdated,
4345
4347
  label: a?.sortRecentlyUpdatedLabel ?? "Recently Updated"
@@ -4352,103 +4354,103 @@ var nn = /* @__PURE__ */ function(e) {
4352
4354
  value: o.NameAZ,
4353
4355
  label: a?.sortNameAZLabel ?? "Name A-Z"
4354
4356
  }
4355
- ], [xt, St] = K(""), [Ct, wt] = K(Pe), [Tt, Et] = K(Pe === sn.Cards ? "shown" : "unmounted"), [Dt, Ot] = K(o.RecentlyUpdated), [kt, At] = K(/* @__PURE__ */ new Set()), [jt, Mt] = K(!1), Nt = We ?? Dt, Pt = Ke ?? kt, Ft = Je ?? jt, It = H((e) => {
4357
+ ], [Ct, wt] = G(""), [Tt, Et] = G(Ie), [Dt, Ot] = G(Ie === sn.Cards ? "shown" : "unmounted"), [kt, At] = G(o.RecentlyUpdated), [jt, Mt] = G(/* @__PURE__ */ new Set()), [Nt, Pt] = G(!1), Ft = Ke ?? kt, It = Je ?? jt, Lt = Xe ?? Nt, Rt = V((e) => {
4356
4358
  let t = e;
4357
- Ot(t), Ge?.(t);
4358
- }, [Ge]), Lt = H((e) => {
4359
- At(e), qe?.(e);
4360
- }, [qe]), Rt = H((e) => {
4359
+ At(t), qe?.(t);
4360
+ }, [qe]), zt = V((e) => {
4361
4361
  Mt(e), Ye?.(e);
4362
- }, [Ye]), zt = W(() => e.filter((e) => !e.isHidden), [e]), Bt = W(() => i.filter((e) => !e.isHidden), [i]), Vt = W(() => n ?? j(zt), [n, zt]), Ht = W(() => t ?? h(zt, a?.tabLabels), [
4362
+ }, [Ye]), Bt = V((e) => {
4363
+ Pt(e), Ze?.(e);
4364
+ }, [Ze]), Vt = U(() => e.filter((e) => !e.isHidden), [e]), Ht = U(() => i.filter((e) => !e.isHidden), [i]), Ut = U(() => n ?? j(Vt), [n, Vt]), Wt = U(() => t ?? h(Vt, a?.tabLabels), [
4363
4365
  t,
4364
- zt,
4366
+ Vt,
4365
4367
  a?.tabLabels
4366
- ]), Ut = Ht[0]?.id ?? "", [Wt, Gt] = K(Ut);
4367
- U(() => {
4368
- Gt((e) => e || Ut);
4369
- }, [Ut]);
4370
- let Kt = Xe ?? Wt, qt = G(null);
4371
- U(() => {
4372
- qt.current != null && g(qt.current);
4373
- }, [Kt, Ht.length]);
4374
- let Jt = H((e) => {
4375
- Gt(e), Ze?.(e);
4376
- }, [Ze]), [Yt, Xt] = K(Bt.length > 0);
4377
- U(() => {
4378
- Bt.length > 0 && !Yt && Xt(!0);
4379
- }, [Bt.length, Yt]);
4380
- let Zt = H(() => {
4381
- Xt(!1);
4382
- }, []), Qt = Yt && Bt.length === 0, [$t, en] = K(null), [tn, nn] = K(!1), [rn, an] = K(void 0), [$, on] = K(!1), cn = G(null);
4383
- U(() => () => {
4384
- cn.current !== null && clearTimeout(cn.current);
4368
+ ]), Gt = Wt[0]?.id ?? "", [Kt, qt] = G(Gt);
4369
+ H(() => {
4370
+ qt((e) => e || Gt);
4371
+ }, [Gt]);
4372
+ let Jt = Qe ?? Kt, Yt = W(null);
4373
+ H(() => {
4374
+ Yt.current != null && g(Yt.current);
4375
+ }, [Jt, Wt.length]);
4376
+ let Xt = V((e) => {
4377
+ qt(e), $e?.(e);
4378
+ }, [$e]), [Zt, Qt] = G(Ht.length > 0);
4379
+ H(() => {
4380
+ Ht.length > 0 && !Zt && Qt(!0);
4381
+ }, [Ht.length, Zt]);
4382
+ let $t = V(() => {
4383
+ Qt(!1);
4384
+ }, []), en = Zt && Ht.length === 0, [tn, nn] = G(null), [rn, an] = G(!1), [$, on] = G(void 0), [cn, ln] = G(!1), un = W(null);
4385
+ H(() => () => {
4386
+ un.current !== null && clearTimeout(un.current);
4385
4387
  }, []);
4386
- let ln = G(null), un = G(0), dn = H(async (e) => {
4387
- ln.current = e.id;
4388
- let t = ++un.current;
4389
- if (B) {
4390
- on(!0);
4388
+ let dn = W(null), fn = W(0), mn = V(async (e) => {
4389
+ dn.current = e.id;
4390
+ let t = ++fn.current;
4391
+ if (fe) {
4392
+ ln(!0);
4391
4393
  try {
4392
- let n = await B(e);
4393
- return un.current === t && an(n), n;
4394
+ let n = await fe(e);
4395
+ return fn.current === t && on(n), n;
4394
4396
  } finally {
4395
- un.current === t && on(!1);
4397
+ fn.current === t && ln(!1);
4396
4398
  }
4397
4399
  }
4398
- }, [B]), fn = H(async (e) => (cn.current !== null && (clearTimeout(cn.current), cn.current = null, nn(!0)), en(e), an(void 0), dn(e)), [dn]), mn = H(async (e, t) => {
4400
+ }, [fe]), hn = V(async (e) => (un.current !== null && (clearTimeout(un.current), un.current = null, an(!0)), nn(e), on(void 0), mn(e)), [mn]), _n = V(async (e, t) => {
4399
4401
  for (let n = 0; n < Ta; n++) {
4400
- if (ln.current !== e.id || t(await dn(e))) return;
4402
+ if (dn.current !== e.id || t(await mn(e))) return;
4401
4403
  n < 2 && await p(Ea);
4402
4404
  }
4403
- }, [dn]), hn = G(null);
4404
- U(() => {
4405
- if (!Ue) {
4406
- hn.current = null;
4405
+ }, [mn]), vn = W(null);
4406
+ H(() => {
4407
+ if (!Ge) {
4408
+ vn.current = null;
4407
4409
  return;
4408
4410
  }
4409
- if (hn.current === Ue) return;
4410
- let t = e.find((e) => e.id === Ue);
4411
- t && (hn.current = Ue, fn(t));
4411
+ if (vn.current === Ge) return;
4412
+ let t = e.find((e) => e.id === Ge);
4413
+ t && (vn.current = Ge, hn(t));
4412
4414
  }, [
4413
- Ue,
4415
+ Ge,
4414
4416
  e,
4415
- fn
4416
- ]), U(() => {
4417
- if ($t == null) return;
4418
- let t = e.find((e) => e.id === $t.id);
4419
- t && t !== $t && en(t);
4420
- }, [e, $t]);
4421
- let _n = H(async (e, t) => {
4422
- await De?.(e, t), B && await mn(e, (e) => D(e?.credentials, t.level));
4423
- }, [
4424
- De,
4425
- B,
4426
- mn
4427
- ]), vn = H(async (e, t) => {
4428
- await J?.(e, t), B && await mn(e, (e) => !D(e?.credentials, t.level));
4417
+ hn
4418
+ ]), H(() => {
4419
+ if (tn == null) return;
4420
+ let t = e.find((e) => e.id === tn.id);
4421
+ t && t !== tn && nn(t);
4422
+ }, [e, tn]);
4423
+ let Sn = V(async (e, t) => {
4424
+ await J?.(e, t), fe && await _n(e, (e) => D(e?.credentials, t.level));
4429
4425
  }, [
4430
4426
  J,
4431
- B,
4432
- mn
4433
- ]), Sn = H(() => {
4434
- nn(!1), ln.current = null, un.current += 1, cn.current !== null && clearTimeout(cn.current), cn.current = setTimeout(() => {
4435
- cn.current = null, en(null), an(void 0), on(!1);
4427
+ fe,
4428
+ _n
4429
+ ]), Cn = V(async (e, t) => {
4430
+ await ke?.(e, t), fe && await _n(e, (e) => !D(e?.credentials, t.level));
4431
+ }, [
4432
+ ke,
4433
+ fe,
4434
+ _n
4435
+ ]), wn = V(() => {
4436
+ an(!1), dn.current = null, fn.current += 1, un.current !== null && clearTimeout(un.current), un.current = setTimeout(() => {
4437
+ un.current = null, nn(null), on(void 0), ln(!1);
4436
4438
  }, 300);
4437
- }, []), Cn = W(() => {
4438
- if ($t == null) return null;
4439
- if (rn == null) return $t;
4440
- let { credentials: e, ...t } = rn;
4439
+ }, []), Tn = U(() => {
4440
+ if (tn == null) return null;
4441
+ if ($ == null) return tn;
4442
+ let { credentials: e, ...t } = $;
4441
4443
  return {
4442
- ...$t,
4444
+ ...tn,
4443
4445
  details: t,
4444
- credentials: e ?? $t.credentials
4446
+ credentials: e ?? tn.credentials
4445
4447
  };
4446
- }, [$t, rn]), wn = W(() => r(zt, Nt), [zt, Nt]), Tn = W(() => M(wn, xt), [wn, xt]), En = W(() => Pt.size > 0 ? f(Tn, Pt) : Tn, [Tn, Pt]), Dn = W(() => Ft ? N(En) : En, [En, Ft]), On = W(() => Kt ? Dn.filter((e) => S(e).includes(Kt)) : Dn, [Dn, Kt]);
4447
- U(() => {
4448
- if (Tt !== "unmounted" || ze || On.length === 0) return;
4448
+ }, [tn, $]), En = U(() => r(Vt, Ft), [Vt, Ft]), Dn = U(() => M(En, Ct), [En, Ct]), On = U(() => It.size > 0 ? f(Dn, It) : Dn, [Dn, It]), kn = U(() => Lt ? N(On) : On, [On, Lt]), An = U(() => Jt ? kn.filter((e) => S(e).includes(Jt)) : kn, [kn, Jt]);
4449
+ H(() => {
4450
+ if (Dt !== "unmounted" || Ve || An.length === 0) return;
4449
4451
  let e = () => {
4450
- me(() => {
4451
- Et((e) => e === "unmounted" ? "prepared" : e);
4452
+ he(() => {
4453
+ Ot((e) => e === "unmounted" ? "prepared" : e);
4452
4454
  });
4453
4455
  };
4454
4456
  if (typeof window.requestIdleCallback == "function") {
@@ -4458,230 +4460,230 @@ var nn = /* @__PURE__ */ function(e) {
4458
4460
  let t = window.setTimeout(e, 200);
4459
4461
  return () => window.clearTimeout(t);
4460
4462
  }, [
4461
- Tt,
4462
- ze,
4463
- On.length
4463
+ Dt,
4464
+ Ve,
4465
+ An.length
4464
4466
  ]);
4465
- let kn = $t != null && Bt.some((e) => e.id === $t.id);
4466
- U(() => {
4467
- if ($t == null) return;
4468
- let e = requestAnimationFrame(() => nn(!0));
4467
+ let jn = tn != null && Ht.some((e) => e.id === tn.id);
4468
+ H(() => {
4469
+ if (tn == null) return;
4470
+ let e = requestAnimationFrame(() => an(!0));
4469
4471
  return () => cancelAnimationFrame(e);
4470
- }, [$t]);
4471
- let An = H((e) => {
4472
- e === sn.Cards && Et("shown"), wt(e);
4473
- }, []), jn = !je && !Ne, Mn = jn && nt, [Nn, Pn] = K(null), Fn = G(null), In = G(null), { isVisible: Ln, handleRowsScroll: Rn, scrollToTop: zn } = gn({
4474
- scrollBody: Nn,
4475
- searchInputRef: Fn,
4476
- listViewRef: In,
4477
- isListView: Ct === sn.Cards
4478
- }), Bn = Yt && !Ne, Vn = xt !== "" || Pt.size > 0, Hn = Vn ? ct(xt, Kt) : _(a?.emptyTitle, Kt) ?? "No items yet", Un = Vn ? a?.noResultsDescription ?? "Try a different search term or check your filters." : _(a?.emptyDescription, Kt), { copyCodeAriaLabel: Wn, copiedCodeStatusLabel: Kn, downloadCodeAriaLabel: qn, tableScrollRegionAriaLabel: Jn, mathScrollRegionAriaLabel: Yn } = Ve ?? {}, Xn = W(() => bn({
4479
- copyCodeAriaLabel: Wn,
4480
- copiedCodeStatusLabel: Kn,
4481
- downloadCodeAriaLabel: qn,
4482
- tableScrollRegionAriaLabel: Jn,
4483
- mathScrollRegionAriaLabel: Yn
4472
+ }, [tn]);
4473
+ let Mn = V((e) => {
4474
+ e === sn.Cards && Ot("shown"), Et(e);
4475
+ }, []), Nn = !Ne && !Fe, Pn = Nn && it, [Fn, In] = G(null), Ln = W(null), Rn = W(null), { isVisible: zn, handleRowsScroll: Bn, scrollToTop: Vn } = gn({
4476
+ scrollBody: Fn,
4477
+ searchInputRef: Ln,
4478
+ listViewRef: Rn,
4479
+ isListView: Tt === sn.Cards
4480
+ }), Hn = Zt && !Fe, Un = Ct !== "" || It.size > 0, Wn = Un ? ft(Ct, Jt) : _(a?.emptyTitle, Jt) ?? "No items yet", Kn = Un ? a?.noResultsDescription ?? "Try a different search term or check your filters." : _(a?.emptyDescription, Jt), { copyCodeAriaLabel: qn, copiedCodeStatusLabel: Jn, downloadCodeAriaLabel: Yn, tableScrollRegionAriaLabel: Xn, mathScrollRegionAriaLabel: Zn } = Ue ?? {}, Qn = U(() => bn({
4481
+ copyCodeAriaLabel: qn,
4482
+ copiedCodeStatusLabel: Jn,
4483
+ downloadCodeAriaLabel: Yn,
4484
+ tableScrollRegionAriaLabel: Xn,
4485
+ mathScrollRegionAriaLabel: Zn
4484
4486
  }), [
4485
- Wn,
4486
- Kn,
4487
4487
  qn,
4488
4488
  Jn,
4489
- Yn
4490
- ]), Zn = W(() => ({
4491
- noResultsTitle: Hn,
4492
- noResultsDescription: Un,
4493
- featuredLabel: pt,
4489
+ Yn,
4490
+ Xn,
4491
+ Zn
4492
+ ]), $n = U(() => ({
4493
+ noResultsTitle: Wn,
4494
+ noResultsDescription: Kn,
4495
+ featuredLabel: ht,
4494
4496
  noFolderLabel: a?.noFolderLabel,
4495
- credentialsBadgeLoggedOutLabel: Ve?.credentialsBadgeLoggedOutLabel,
4496
- addToFavoritesAriaLabel: Ve?.addToFavoritesAriaLabel,
4497
- removeFromFavoritesAriaLabel: Ve?.removeFromFavoritesAriaLabel
4497
+ credentialsBadgeLoggedOutLabel: Ue?.credentialsBadgeLoggedOutLabel,
4498
+ addToFavoritesAriaLabel: Ue?.addToFavoritesAriaLabel,
4499
+ removeFromFavoritesAriaLabel: Ue?.removeFromFavoritesAriaLabel
4498
4500
  }), [
4499
- Hn,
4500
- Un,
4501
- pt,
4501
+ Wn,
4502
+ Kn,
4503
+ ht,
4502
4504
  a?.noFolderLabel,
4503
- Ve?.credentialsBadgeLoggedOutLabel,
4504
- Ve?.addToFavoritesAriaLabel,
4505
- Ve?.removeFromFavoritesAriaLabel
4506
- ]), Qn = !ze && On.length === 0, $n = Qn ? Qe?.({
4507
- query: xt,
4508
- activeTab: Kt,
4509
- hasTopicFilters: Pt.size > 0,
4510
- isMyAppsActive: Ft
4511
- }) : void 0, er = Qn && Ft && !xt && Pt.size === 0 && (Ae == null || Ae[Kt] != null), tr = {
4512
- label: it,
4513
- options: Oe,
4514
- onClick: Y,
4515
- search: ke,
4505
+ Ue?.credentialsBadgeLoggedOutLabel,
4506
+ Ue?.addToFavoritesAriaLabel,
4507
+ Ue?.removeFromFavoritesAriaLabel
4508
+ ]), er = !Ve && An.length === 0, tr = er ? et?.({
4509
+ query: Ct,
4510
+ activeTab: Jt,
4511
+ hasTopicFilters: It.size > 0,
4512
+ isMyAppsActive: Lt
4513
+ }) : void 0, nr = er && Lt && !Ct && It.size === 0 && (Y == null || Y[Jt] != null), rr = {
4514
+ label: ot,
4515
+ options: je,
4516
+ onClick: Ae,
4517
+ search: Me,
4516
4518
  searchPlaceholder: a?.createSearchPlaceholder,
4517
4519
  searchClearLabel: a?.createSearchClearLabel,
4518
4520
  noResultsLabel: a?.createNoResultsLabel,
4519
4521
  backLabel: a?.createMenuBackLabel,
4520
4522
  closeLabel: a?.createMenuCloseLabel,
4521
- colors: Be?.colors?.createMenu,
4522
- sectionHeaderClassName: $e?.createMenuSectionHeaderClassName
4523
- }, nr = Ae ? yn(Ae[Kt]) : tr, rr = jn && nr != null ? {
4524
- ...tr,
4525
- ...nr
4523
+ colors: He?.colors?.createMenu,
4524
+ sectionHeaderClassName: tt?.createMenuSectionHeaderClassName
4525
+ }, ir = Y ? yn(Y[Jt]) : rr, ar = Nn && ir != null ? {
4526
+ ...rr,
4527
+ ...ir
4526
4528
  } : void 0;
4527
- return ze ? /* @__PURE__ */ Z("div", {
4529
+ return Ve ? /* @__PURE__ */ Z("div", {
4528
4530
  className: "flex size-full min-h-0 flex-1 items-center justify-center",
4529
4531
  children: /* @__PURE__ */ Z(lt, { ariaLabel: a?.loadingLabel ?? "Loading…" })
4530
4532
  }) : /* @__PURE__ */ Q("section", {
4531
- "aria-label": _t,
4532
- className: V("relative flex size-full min-h-0 flex-1 flex-col", wa.root, pn.root),
4533
- style: tt,
4533
+ "aria-label": yt,
4534
+ className: B("relative flex size-full min-h-0 flex-1 flex-col", wa.root, pn.root),
4535
+ style: rt,
4534
4536
  children: [
4535
- (!Me || jn) && /* @__PURE__ */ Z("div", {
4536
- className: V("shrink-0", wa.heading),
4537
+ (!Pe || Nn) && /* @__PURE__ */ Z("div", {
4538
+ className: B("shrink-0", wa.heading),
4537
4539
  children: /* @__PURE__ */ Q("div", {
4538
- className: V("flex w-full items-center justify-between px-4 desktop:px-8", !(Me && Mn) && et),
4539
- children: [!Me && /* @__PURE__ */ Z("h1", {
4540
- className: V($e?.pageHeadingFontClassName ?? "dial-display2-text", wa.headingTitle),
4541
- children: rt
4542
- }), jn && /* @__PURE__ */ Z("div", {
4543
- className: Mn ? "absolute inset-e-4 bottom-4 z-10" : void 0,
4540
+ className: B("flex w-full items-center justify-between px-4 desktop:px-8", !(Pe && Pn) && nt),
4541
+ children: [!Pe && /* @__PURE__ */ Z("h1", {
4542
+ className: B(tt?.pageHeadingFontClassName ?? "dial-display2-text", wa.headingTitle),
4543
+ children: at
4544
+ }), Nn && /* @__PURE__ */ Z("div", {
4545
+ className: Pn ? "absolute inset-e-4 bottom-4 z-10" : void 0,
4544
4546
  children: /* @__PURE__ */ Z(ua, {
4545
- ...tr,
4546
- isFloating: Mn
4547
+ ...rr,
4548
+ isFloating: Pn
4547
4549
  })
4548
4550
  })]
4549
4551
  })
4550
4552
  }),
4551
- Ln && /* @__PURE__ */ Z("div", {
4552
- className: V("absolute inset-e-4 z-10", Mn ? "bottom-20" : "bottom-4"),
4553
+ zn && /* @__PURE__ */ Z("div", {
4554
+ className: B("absolute inset-e-4 z-10", Pn ? "bottom-20" : "bottom-4"),
4553
4555
  children: /* @__PURE__ */ Z(fa, {
4554
- label: vt,
4555
- onClick: zn
4556
+ label: bt,
4557
+ onClick: Vn
4556
4558
  })
4557
4559
  }),
4558
4560
  /* @__PURE__ */ Q("div", {
4559
- ref: Pn,
4560
- className: V("relative flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden overflow-y-auto", Mn && "pb-16"),
4561
+ ref: In,
4562
+ className: B("relative flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden overflow-y-auto", Pn && "pb-16"),
4561
4563
  children: [
4562
- Bn && /* @__PURE__ */ Z("div", {
4564
+ Hn && /* @__PURE__ */ Z("div", {
4563
4565
  className: "w-full px-4 desktop:px-8",
4564
4566
  children: /* @__PURE__ */ Z(Li, {
4565
- items: Bt,
4566
- totalCount: Bt.length,
4567
- title: at,
4567
+ items: Ht,
4568
+ totalCount: Ht.length,
4569
+ title: st,
4568
4570
  onToggleFavorite: c,
4569
4571
  isFavoriteVisible: l,
4570
- onItemClick: Re ?? fn,
4571
- isLeaving: Qt,
4572
- onExitComplete: Zt,
4573
- selectedItemId: Le,
4574
- credentialsBadgeLoggedOutLabel: Ve?.credentialsBadgeLoggedOutLabel,
4575
- addToFavoritesAriaLabel: Ve?.addToFavoritesAriaLabel,
4576
- removeFromFavoritesAriaLabel: Ve?.removeFromFavoritesAriaLabel,
4577
- isPaginationHidden: Ie
4572
+ onItemClick: Be ?? hn,
4573
+ isLeaving: en,
4574
+ onExitComplete: $t,
4575
+ selectedItemId: ze,
4576
+ credentialsBadgeLoggedOutLabel: Ue?.credentialsBadgeLoggedOutLabel,
4577
+ addToFavoritesAriaLabel: Ue?.addToFavoritesAriaLabel,
4578
+ removeFromFavoritesAriaLabel: Ue?.removeFromFavoritesAriaLabel,
4579
+ isPaginationHidden: Re
4578
4580
  })
4579
4581
  }),
4580
4582
  /* @__PURE__ */ Z("div", {
4581
4583
  className: "w-full pt-6 desktop:px-4",
4582
4584
  children: /* @__PURE__ */ Z(Ca, {
4583
- totalCount: Dn.length,
4584
- viewMode: Ct,
4585
- onViewModeChange: An,
4586
- sortKey: Nt,
4587
- query: xt,
4588
- onQueryChange: St,
4589
- searchInputRef: Fn,
4590
- title: ot,
4585
+ totalCount: kn.length,
4586
+ viewMode: Tt,
4587
+ onViewModeChange: Mn,
4588
+ sortKey: Ft,
4589
+ query: Ct,
4590
+ onQueryChange: wt,
4591
+ searchInputRef: Ln,
4592
+ title: ct,
4591
4593
  browseHeaderRenderer: s,
4592
- searchPlaceholder: st,
4593
- gridViewLabel: mt,
4594
- listViewLabel: ht,
4595
- viewToggleLabel: gt,
4596
- sortOptions: bt,
4597
- onSortChange: It,
4598
- sortLabel: yt,
4599
- filters: Pt,
4600
- onFiltersChange: Lt,
4601
- filterValues: Vt,
4602
- isMyAppsActive: Ft,
4603
- onMyAppsChange: Rt,
4594
+ searchPlaceholder: dt,
4595
+ gridViewLabel: gt,
4596
+ listViewLabel: _t,
4597
+ viewToggleLabel: vt,
4598
+ sortOptions: St,
4599
+ onSortChange: Rt,
4600
+ sortLabel: xt,
4601
+ filters: It,
4602
+ onFiltersChange: zt,
4603
+ filterValues: Ut,
4604
+ isMyAppsActive: Lt,
4605
+ onMyAppsChange: Bt,
4604
4606
  filterFromLabel: a?.filterFromLabel,
4605
4607
  filterMyAppsLabel: a?.filterMyAppsLabel,
4606
4608
  filterTopicsLabel: a?.filterTopicsLabel,
4607
4609
  browseSettingsLabels: a?.browseSettings
4608
4610
  })
4609
4611
  }),
4610
- Ht.length > 1 && /* @__PURE__ */ Z("div", {
4611
- ref: qt,
4612
+ Wt.length > 1 && /* @__PURE__ */ Z("div", {
4613
+ ref: Yt,
4612
4614
  className: "mx-4 min-w-0 shrink-0 scrollbar-none overflow-x-auto desktop:mx-8",
4613
4615
  children: /* @__PURE__ */ Z(ut, {
4614
4616
  tabListClassName: "w-max min-w-full",
4615
4617
  tabClassName: "shrink-0 whitespace-nowrap",
4616
- tabs: Ht.map((e) => ({
4618
+ tabs: Wt.map((e) => ({
4617
4619
  id: e.id,
4618
4620
  label: typeof e.label == "string" ? e.label : String(e.label),
4619
- count: Dn.filter((t) => S(t).includes(e.id)).length
4621
+ count: kn.filter((t) => S(t).includes(e.id)).length
4620
4622
  })),
4621
- activeTabId: Kt,
4622
- onTabChange: Jt
4623
+ activeTabId: Jt,
4624
+ onTabChange: Xt
4623
4625
  })
4624
4626
  }),
4625
4627
  /* @__PURE__ */ Q("div", {
4626
- className: V(On.length > 0 ? ["w-full flex-1 px-4 py-6 desktop:px-8", !Fe && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", On.length === 0 && "px-4 py-6 desktop:px-8"),
4628
+ className: B(An.length > 0 ? ["w-full flex-1 px-4 py-6 desktop:px-8", !Le && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", An.length === 0 && "px-4 py-6 desktop:px-8"),
4627
4629
  children: [
4628
- $n != null && $n,
4629
- $n == null && er && /* @__PURE__ */ Z(da, {
4630
- title: dt(Kt),
4631
- description: ft,
4632
- createButton: rr
4630
+ tr != null && tr,
4631
+ tr == null && nr && /* @__PURE__ */ Z(da, {
4632
+ title: pt(Jt),
4633
+ description: mt,
4634
+ createButton: ar
4633
4635
  }),
4634
- $n == null && !er && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", {
4635
- inert: Ct !== sn.Grid,
4636
- className: V(On.length > 0 ? "pb-8" : "size-full flex-1", Ct !== sn.Grid && "hidden"),
4636
+ tr == null && !nr && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", {
4637
+ inert: Tt !== sn.Grid,
4638
+ className: B(An.length > 0 ? "pb-8" : "size-full flex-1", Tt !== sn.Grid && "hidden"),
4637
4639
  children: /* @__PURE__ */ Z(Gn, {
4638
- items: On,
4639
- query: xt,
4640
+ items: An,
4641
+ query: Ct,
4640
4642
  onToggleFavorite: c,
4641
4643
  isFavoriteVisible: l,
4642
- onItemClick: Re ?? fn,
4643
- titles: Zn,
4644
- selectedItemId: Le,
4645
- isReadonly: Ne,
4646
- isFullWidth: Fe,
4647
- featuredChipStyle: Be?.colors?.featuredChipStyle,
4648
- markdownLabels: Xn,
4649
- activeTab: Kt
4644
+ onItemClick: Be ?? hn,
4645
+ titles: $n,
4646
+ selectedItemId: ze,
4647
+ isReadonly: Fe,
4648
+ isFullWidth: Le,
4649
+ featuredChipStyle: He?.colors?.featuredChipStyle,
4650
+ markdownLabels: Qn,
4651
+ activeTab: Jt
4650
4652
  })
4651
- }), Tt !== "unmounted" && /* @__PURE__ */ Z("div", {
4652
- inert: Ct !== sn.Cards,
4653
- className: V(Ct === sn.Cards && "h-full min-h-[360px] pb-8", Ct !== sn.Cards && (Tt === "prepared" ? "invisible h-0 overflow-hidden" : "hidden")),
4653
+ }), Dt !== "unmounted" && /* @__PURE__ */ Z("div", {
4654
+ inert: Tt !== sn.Cards,
4655
+ className: B(Tt === sn.Cards && "h-full min-h-[360px] pb-8", Tt !== sn.Cards && (Dt === "prepared" ? "invisible h-0 overflow-hidden" : "hidden")),
4654
4656
  children: /* @__PURE__ */ Z(oa, {
4655
- ref: In,
4656
- onRowsScroll: Rn,
4657
- type: Kt,
4658
- items: On,
4659
- query: xt,
4660
- ariaLabel: _t,
4661
- emptyStateTitle: Hn,
4662
- emptyStateDescription: Un,
4663
- isEmptyStateLive: Vn,
4657
+ ref: Rn,
4658
+ onRowsScroll: Bn,
4659
+ type: Jt,
4660
+ items: An,
4661
+ query: Ct,
4662
+ ariaLabel: yt,
4663
+ emptyStateTitle: Wn,
4664
+ emptyStateDescription: Kn,
4665
+ isEmptyStateLive: Un,
4664
4666
  onToggleFavorite: c,
4665
4667
  isFavoriteVisible: l,
4666
4668
  columnVisibility: u,
4667
- onItemClick: Re ?? fn,
4668
- selectedItemId: Le,
4669
- credentialsBadgeLoggedOutLabel: Ve?.credentialsBadgeLoggedOutLabel,
4670
- isReadonly: Ne
4669
+ onItemClick: Be ?? hn,
4670
+ selectedItemId: ze,
4671
+ credentialsBadgeLoggedOutLabel: Ue?.credentialsBadgeLoggedOutLabel,
4672
+ isReadonly: Fe
4671
4673
  })
4672
4674
  })] })
4673
4675
  ]
4674
4676
  })
4675
4677
  ]
4676
4678
  }),
4677
- Cn != null && /* @__PURE__ */ Z(ki, {
4678
- renderCredentials: le,
4679
- item: Cn,
4680
- isOpen: tn,
4681
- isStarred: kn,
4682
- isDetailsLoading: $,
4683
- isReadonly: Ne,
4684
- onClose: Sn,
4679
+ Tn != null && /* @__PURE__ */ Z(ki, {
4680
+ renderCredentials: pe,
4681
+ item: Tn,
4682
+ isOpen: rn,
4683
+ isStarred: jn,
4684
+ isDetailsLoading: cn,
4685
+ isReadonly: Fe,
4686
+ onClose: wn,
4685
4687
  onToggleFavorite: c,
4686
4688
  isFavoriteVisible: l,
4687
4689
  onUseInChat: d,
@@ -4700,39 +4702,41 @@ var nn = /* @__PURE__ */ function(e) {
4700
4702
  onPublishExpandedPathsChange: P,
4701
4703
  publishLoadingPaths: ee,
4702
4704
  getPublishDisabledReason: F,
4703
- hasPublishWriteAccess: I,
4704
- publishDefaultAuthor: L,
4705
- onPublish: te,
4706
- onPublishSuccess: ne,
4707
- onPublishError: re,
4708
- onCreatePublishFolder: ie,
4709
- publishLabels: R,
4710
- ruleSourceOptions: z,
4711
- onFetchExistingRules: ae,
4712
- shareOverlay: oe,
4713
- isShareVisible: se,
4714
- isSharePrimary: ce,
4715
- onEdit: de,
4716
- onDownload: fe,
4717
- isDownloadVisible: pe,
4718
- isDownloadPrimary: he,
4719
- onLoadContentFile: ge,
4720
- onLoadContentFilePreview: _e,
4721
- renderContentFilePreview: ve,
4722
- renderContentFileTree: q,
4723
- onDelete: ye,
4724
- onUnshare: be,
4725
- isUnshareVisible: xe,
4726
- onRevokeShare: Se,
4727
- onFetchRecipientsCount: Ce,
4728
- isRevokeShareVisible: we,
4729
- onUnpublish: Te,
4730
- isUnpublishVisible: Ee,
4731
- onLogin: _n,
4732
- onLogout: vn,
4733
- texts: Ve,
4734
- limitsFooterNote: He,
4735
- styles: { colors: { featuredChipStyle: Be?.colors?.featuredChipStyle } }
4705
+ hasPublishWriteAccess: te,
4706
+ publishDefaultAuthor: I,
4707
+ onPublish: ne,
4708
+ onPublishSuccess: re,
4709
+ onPublishError: ie,
4710
+ onCreatePublishFolder: ae,
4711
+ publishLabels: L,
4712
+ hidePublishAuthor: R,
4713
+ hidePublishAccessRules: oe,
4714
+ ruleSourceOptions: se,
4715
+ onFetchExistingRules: ce,
4716
+ shareOverlay: le,
4717
+ isShareVisible: z,
4718
+ isSharePrimary: ue,
4719
+ onEdit: me,
4720
+ onDownload: ge,
4721
+ isDownloadVisible: _e,
4722
+ isDownloadPrimary: ve,
4723
+ onLoadContentFile: ye,
4724
+ onLoadContentFilePreview: be,
4725
+ renderContentFilePreview: xe,
4726
+ renderContentFileTree: K,
4727
+ onDelete: Se,
4728
+ onUnshare: Ce,
4729
+ isUnshareVisible: we,
4730
+ onRevokeShare: Te,
4731
+ onFetchRecipientsCount: Ee,
4732
+ isRevokeShareVisible: De,
4733
+ onUnpublish: Oe,
4734
+ isUnpublishVisible: q,
4735
+ onLogin: Sn,
4736
+ onLogout: Cn,
4737
+ texts: Ue,
4738
+ limitsFooterNote: We,
4739
+ styles: { colors: { featuredChipStyle: He?.colors?.featuredChipStyle } }
4736
4740
  })
4737
4741
  ]
4738
4742
  });
@@ -4744,20 +4748,20 @@ var nn = /* @__PURE__ */ function(e) {
4744
4748
  headerClassName: "px-6 py-4 max-[767px]:px-4 max-[767px]:py-3",
4745
4749
  footerClassName: "px-6 py-4 max-[767px]:px-4 max-[767px]:py-3"
4746
4750
  }, ja = ({ 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 }) => {
4747
- let [h, g] = K(""), [_, v] = K(() => /* @__PURE__ */ new Set()), [y, b] = K(!1), [x, S] = K(o.RecentlyUpdated), [C, w] = K(null), T = G(null), E = G(null), { isVisible: D, handleRowsScroll: O, scrollToTop: k } = gn({
4751
+ 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 } = gn({
4748
4752
  scrollBody: C,
4749
4753
  searchInputRef: E,
4750
4754
  listViewRef: T,
4751
4755
  isListView: !0
4752
- }), A = G(O);
4756
+ }), A = W(O);
4753
4757
  A.current = O;
4754
- let M = H((e) => {
4758
+ let M = V((e) => {
4755
4759
  e ?? A.current(0), w(e);
4756
- }, []), N = p?.ref, P = H((e) => {
4760
+ }, []), N = p?.ref, P = V((e) => {
4757
4761
  T.current = e, typeof N == "function" ? N(e) : N != null && (N.current = e);
4758
- }, [N]), ee = p?.onRowsScroll, F = H((e) => {
4762
+ }, [N]), ee = p?.onRowsScroll, F = V((e) => {
4759
4763
  O(e), ee?.(e);
4760
- }, [O, ee]), I = n === Oa.Ready, L = I && !a, te = t.cancel ?? "Cancel", ne = t.add ?? "Add", re = W(() => j(e), [e]), R = W(() => c(e, {
4764
+ }, [O, ee]), te = n === Oa.Ready, I = te && !a, ne = t.cancel ?? "Cancel", re = t.add ?? "Add", ie = U(() => j(e), [e]), L = U(() => c(e, {
4761
4765
  search: h,
4762
4766
  topics: _,
4763
4767
  isMyOnly: y,
@@ -4768,7 +4772,7 @@ var nn = /* @__PURE__ */ function(e) {
4768
4772
  _,
4769
4773
  y,
4770
4774
  x
4771
- ]), z = W(() => [
4775
+ ]), R = U(() => [
4772
4776
  {
4773
4777
  value: o.RecentlyUpdated,
4774
4778
  label: t.sortUpdated ?? "Recently Updated"
@@ -4785,48 +4789,48 @@ var nn = /* @__PURE__ */ function(e) {
4785
4789
  t.sortUpdated,
4786
4790
  t.sortNewest,
4787
4791
  t.sortNameAZ
4788
- ]), ae = W(() => z.map((e) => ({
4792
+ ]), oe = U(() => R.map((e) => ({
4789
4793
  key: e.value,
4790
4794
  label: e.label,
4791
4795
  mark: Ye.Check,
4792
4796
  checked: e.value === x,
4793
4797
  onClick: () => S(e.value)
4794
- })), [z, x]), oe = z.find((e) => e.value === x)?.label ?? t.sort ?? "Sort", se = H((e) => g(e ?? ""), []), ce = H(() => {
4795
- L && d();
4796
- }, [L, d]), V = W(() => [{
4797
- label: te,
4798
- variant: Ce.Primary,
4799
- appearance: xe.Ghost,
4798
+ })), [R, x]), se = R.find((e) => e.value === x)?.label ?? t.sort ?? "Sort", ce = V((e) => g(e ?? ""), []), le = V(() => {
4799
+ I && d();
4800
+ }, [I, d]), B = U(() => [{
4801
+ label: ne,
4802
+ variant: we.Primary,
4803
+ appearance: Se.Ghost,
4800
4804
  onClick: f
4801
4805
  }, {
4802
- label: ne,
4803
- disabled: !L,
4804
- onClick: ce
4806
+ label: re,
4807
+ disabled: !I,
4808
+ onClick: le
4805
4809
  }], [
4806
- te,
4807
4810
  ne,
4811
+ re,
4808
4812
  f,
4809
- L,
4810
- ce
4811
- ]), le = s == null ? void 0 : /* @__PURE__ */ Q("div", {
4813
+ I,
4814
+ le
4815
+ ]), ue = s == null ? void 0 : /* @__PURE__ */ Q("div", {
4812
4816
  className: pt("flex flex-wrap items-center justify-between gap-2 border-t", ka.footer, Aa.footerClassName),
4813
- style: B({ "--cat-picker-footer-border": l?.footerBorder }),
4817
+ style: z({ "--cat-picker-footer-border": l?.footerBorder }),
4814
4818
  children: [/* @__PURE__ */ Z("div", {
4815
4819
  className: "flex flex-wrap items-center gap-4",
4816
4820
  children: s
4817
4821
  }), /* @__PURE__ */ Q("div", {
4818
4822
  className: "ms-auto flex items-center gap-2",
4819
4823
  children: [/* @__PURE__ */ Z(tt, {
4820
- label: te,
4821
- appearance: xe.Ghost,
4824
+ label: ne,
4825
+ appearance: Se.Ghost,
4822
4826
  onClick: f
4823
4827
  }), /* @__PURE__ */ Z(Xe, {
4824
- label: ne,
4825
- disabled: !L,
4826
- onClick: ce
4828
+ label: re,
4829
+ disabled: !I,
4830
+ onClick: le
4827
4831
  })]
4828
4832
  })]
4829
- }), ue = () => {
4833
+ }), de = () => {
4830
4834
  if (n === Oa.Loading) return /* @__PURE__ */ Z("div", {
4831
4835
  className: "flex items-center justify-center py-16",
4832
4836
  children: /* @__PURE__ */ Z(lt, {
@@ -4845,14 +4849,14 @@ var nn = /* @__PURE__ */ function(e) {
4845
4849
  onClick: i
4846
4850
  })]
4847
4851
  });
4848
- if (R.length === 0) {
4852
+ if (L.length === 0) {
4849
4853
  let e = h.trim() !== "" || _.size > 0 || y;
4850
4854
  return /* @__PURE__ */ Z("div", {
4851
4855
  className: "py-8",
4852
4856
  children: /* @__PURE__ */ Z(Qe, { title: e ? t.noResults ?? "No results found" : t.empty ?? "Nothing here yet" })
4853
4857
  });
4854
4858
  }
4855
- return m ? m(R, h) : /* @__PURE__ */ Q("div", {
4859
+ return m ? m(L, h) : /* @__PURE__ */ Q("div", {
4856
4860
  ref: M,
4857
4861
  className: "relative min-h-0 flex-1",
4858
4862
  children: [/* @__PURE__ */ Z(oa, {
@@ -4860,7 +4864,7 @@ var nn = /* @__PURE__ */ function(e) {
4860
4864
  ...p,
4861
4865
  ref: P,
4862
4866
  onRowsScroll: F,
4863
- items: R,
4867
+ items: L,
4864
4868
  query: h
4865
4869
  }), D && /* @__PURE__ */ Z("div", {
4866
4870
  className: "absolute inset-e-4 bottom-4 z-10",
@@ -4870,7 +4874,7 @@ var nn = /* @__PURE__ */ function(e) {
4870
4874
  })
4871
4875
  })]
4872
4876
  });
4873
- }, de = t.search ?? "Search";
4877
+ }, fe = t.search ?? "Search";
4874
4878
  return /* @__PURE__ */ Q($e, {
4875
4879
  open: !0,
4876
4880
  header: t.title,
@@ -4880,25 +4884,25 @@ var nn = /* @__PURE__ */ function(e) {
4880
4884
  ...Aa,
4881
4885
  closeAriaLabel: t.closeDialog ?? "Close dialog",
4882
4886
  bodyClassName: "flex min-h-0 flex-col overflow-hidden px-6 py-2 h-[70vh] max-[767px]:h-auto max-[767px]:px-4",
4883
- mainButtons: V,
4884
- footer: le,
4887
+ mainButtons: B,
4888
+ footer: ue,
4885
4889
  onClose: f,
4886
4890
  children: [/* @__PURE__ */ Q("div", {
4887
4891
  className: "flex shrink-0 flex-col gap-3 pb-5",
4888
4892
  children: [/* @__PURE__ */ Q("div", {
4889
4893
  className: "flex items-center gap-2",
4890
- children: [/* @__PURE__ */ Z(ie, {
4894
+ children: [/* @__PURE__ */ Z(ae, {
4891
4895
  title: t.catalog,
4892
- postfix: I ? R.length : void 0,
4896
+ postfix: te ? L.length : void 0,
4893
4897
  titleClassName: u,
4894
4898
  shouldTruncateTitle: !1
4895
4899
  }), /* @__PURE__ */ Z("div", {
4896
4900
  className: "ms-auto shrink-0",
4897
- children: /* @__PURE__ */ Z(Se, {
4898
- items: ae,
4899
- label: oe,
4900
- variant: Ce.Primary,
4901
- appearance: xe.Ghost
4901
+ children: /* @__PURE__ */ Z(Ce, {
4902
+ items: oe,
4903
+ label: se,
4904
+ variant: we.Primary,
4905
+ appearance: Se.Ghost
4902
4906
  })
4903
4907
  })]
4904
4908
  }), /* @__PURE__ */ Q("div", {
@@ -4908,18 +4912,18 @@ var nn = /* @__PURE__ */ function(e) {
4908
4912
  className: "flex-1",
4909
4913
  children: /* @__PURE__ */ Z(it, {
4910
4914
  value: h,
4911
- onChange: se,
4912
- size: Me.Large,
4915
+ onChange: ce,
4916
+ size: Y.Large,
4913
4917
  wrapperClassName: "dial-kit-input-large",
4914
- placeholder: de,
4915
- "aria-label": de,
4918
+ placeholder: fe,
4919
+ "aria-label": fe,
4916
4920
  clearLabel: t.clearSearch ?? "Clear search",
4917
4921
  inputRef: E
4918
4922
  })
4919
4923
  }), /* @__PURE__ */ Z(ga, {
4920
4924
  checked: _,
4921
4925
  onChange: v,
4922
- values: re,
4926
+ values: ie,
4923
4927
  isMyAppsActive: y,
4924
4928
  onMyAppsChange: b,
4925
4929
  defaultLabel: t.from ?? "From",
@@ -4929,10 +4933,10 @@ var nn = /* @__PURE__ */ function(e) {
4929
4933
  applyLabel: t.apply ?? "Apply"
4930
4934
  })]
4931
4935
  })]
4932
- }), ue()]
4936
+ }), de()]
4933
4937
  });
4934
4938
  }, Ma = ({ type: e, items: t, attachedIds: n, labels: r, status: i, error: a, onRetry: o, listProps: s, renderFooterStart: c, onConfirm: l, onClose: d, headingClassName: f }) => {
4935
- let [p, m] = K(() => new Set(n)), h = W(() => 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)), [
4939
+ 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)), [
4936
4940
  l,
4937
4941
  n,
4938
4942
  p,
@@ -4963,7 +4967,7 @@ var nn = /* @__PURE__ */ function(e) {
4963
4967
  focusable: "_focusable_xykcx_5",
4964
4968
  description: "_description_xykcx_9"
4965
4969
  }, Pa = "group relative flex min-w-0 items-center gap-1 rounded-[10px] pe-1", Fa = "outline-hidden focus-visible:outline", Ia = ({ 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 }) => {
4966
- let _ = he(), v = he(), y = o != null && o !== "", b = B({
4970
+ let _ = ge(), v = ge(), y = o != null && o !== "", b = z({
4967
4971
  "--cat-add-on-row-hover-bg": u?.rowHoverBackground,
4968
4972
  "--cat-add-on-focus-outline": u?.focusOutline,
4969
4973
  "--cat-add-on-description": u?.description
@@ -4982,7 +4986,7 @@ var nn = /* @__PURE__ */ function(e) {
4982
4986
  name: e,
4983
4987
  type: r
4984
4988
  })
4985
- }) : /* @__PURE__ */ Z(L, {
4989
+ }) : /* @__PURE__ */ Z(I, {
4986
4990
  size: i,
4987
4991
  src: n,
4988
4992
  initialsName: e,
@@ -5011,7 +5015,7 @@ var nn = /* @__PURE__ */ function(e) {
5011
5015
  className: "pointer-events-none flex min-w-0 flex-1 items-center gap-2.5 py-1",
5012
5016
  children: [x, /* @__PURE__ */ Q("span", {
5013
5017
  className: "flex min-w-0 flex-1 flex-col",
5014
- children: [/* @__PURE__ */ Z(ye, {
5018
+ children: [/* @__PURE__ */ Z(xe, {
5015
5019
  items: a.map((e) => ({ label: e })),
5016
5020
  ariaLabel: l?.location ?? "Location"
5017
5021
  }), S]
@@ -5028,7 +5032,7 @@ var nn = /* @__PURE__ */ function(e) {
5028
5032
  children: [/* @__PURE__ */ Z("span", {
5029
5033
  id: _,
5030
5034
  className: "min-w-0",
5031
- children: /* @__PURE__ */ Z(ie, {
5035
+ children: /* @__PURE__ */ Z(ae, {
5032
5036
  title: e,
5033
5037
  postfix: t || void 0,
5034
5038
  titleClassName: d,
@@ -5047,11 +5051,11 @@ var nn = /* @__PURE__ */ function(e) {
5047
5051
  children: s
5048
5052
  }),
5049
5053
  g && /* @__PURE__ */ Z(ze, {
5050
- size: Me.Small,
5054
+ size: Y.Small,
5051
5055
  icon: /* @__PURE__ */ Z(zt, {
5052
5056
  "aria-hidden": !0,
5053
- size: J.SM,
5054
- stroke: Y
5057
+ size: q.SM,
5058
+ stroke: J
5055
5059
  }),
5056
5060
  "aria-label": l?.remove ?? `Remove ${e}`,
5057
5061
  disabled: m,
@@ -5061,8 +5065,8 @@ var nn = /* @__PURE__ */ function(e) {
5061
5065
  ]
5062
5066
  });
5063
5067
  }, La = (e) => {
5064
- let t = G(null), n = G(e);
5065
- return U(() => {
5068
+ let t = W(null), n = W(e);
5069
+ return H(() => {
5066
5070
  let r = e < n.current;
5067
5071
  if (n.current = e, !r) return;
5068
5072
  let i = document.activeElement;
@@ -5071,9 +5075,9 @@ var nn = /* @__PURE__ */ function(e) {
5071
5075
  (a?.querySelector("ul button") ?? a?.querySelector("button"))?.focus();
5072
5076
  }, [e]), t;
5073
5077
  }, Ra = ({ 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 }) => {
5074
- let [x, S] = K(!1), C = v ?? x, w = (e) => {
5078
+ let [x, S] = G(!1), C = v ?? x, w = (e) => {
5075
5079
  e && u || (v === void 0 && S(e), y?.(e));
5076
- }, [T, E] = K(""), D = G(null), O = W(() => [...s, ...t].filter((e) => e.label.toLocaleLowerCase().includes(T.toLocaleLowerCase())), [
5080
+ }, [T, E] = G(""), D = W(null), O = U(() => [...s, ...t].filter((e) => e.label.toLocaleLowerCase().includes(T.toLocaleLowerCase())), [
5077
5081
  s,
5078
5082
  t,
5079
5083
  T
@@ -5084,7 +5088,7 @@ var nn = /* @__PURE__ */ function(e) {
5084
5088
  }, j = "";
5085
5089
  c ? j = i.searchPlaceholder : !l && O.length === 0 && (j = i.emptyLabel);
5086
5090
  let M = !c && !!l, N = !c && !l && O.length > 0, P = _ ? _(k) : /* @__PURE__ */ Q("div", {
5087
- className: V("w-full max-w-full min-w-0 p-3", h),
5091
+ className: B("w-full max-w-full min-w-0 p-3", h),
5088
5092
  children: [
5089
5093
  /* @__PURE__ */ Z(it, {
5090
5094
  value: T,
@@ -5153,7 +5157,7 @@ var nn = /* @__PURE__ */ function(e) {
5153
5157
  e.key === "Escape" ? k() : b && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), w(!C));
5154
5158
  },
5155
5159
  containerClassName: "w-full min-w-0",
5156
- wrapperClassName: V("cursor-pointer", m),
5160
+ wrapperClassName: B("cursor-pointer", m),
5157
5161
  className: "cursor-pointer",
5158
5162
  iconAfter: g
5159
5163
  });
@@ -5161,13 +5165,13 @@ var nn = /* @__PURE__ */ function(e) {
5161
5165
  className: "w-full min-w-0",
5162
5166
  onClick: () => w(!C),
5163
5167
  children: ee
5164
- }), b(P, C, k)] }) : /* @__PURE__ */ Z(ke, {
5168
+ }), b(P, C, k)] }) : /* @__PURE__ */ Z(Ae, {
5165
5169
  open: C,
5166
5170
  onOpenChange: w,
5167
5171
  disabled: u,
5168
5172
  className: "w-full",
5169
5173
  listClassName: "w-[min(var(--reference-width),calc(100vw-2rem))] max-w-full",
5170
- overlayRole: je.Dialog,
5174
+ overlayRole: Me.Dialog,
5171
5175
  overlayAriaLabel: i.panelAriaLabel ?? "Select model",
5172
5176
  optionArrowNavigation: !0,
5173
5177
  renderOverlay: () => P,
@@ -5191,87 +5195,87 @@ var nn = /* @__PURE__ */ function(e) {
5191
5195
  let n = t.toLowerCase();
5192
5196
  return e.name.toLowerCase().includes(n) || e.topics.some((e) => e.toLowerCase().includes(n)) || e.folder.some((e) => e.toLowerCase().includes(n));
5193
5197
  }, Ua = (e) => S(e).some((e) => e === P.Model || e === P.Agent), Wa = [], Ga = ({ searchQuery: e, onSearchQueryChange: t, favorites: n, extraOptions: r = Wa, pinnedItem: i, canFavoritePinnedItem: a = !0, selectedId: o, selectedItem: s, isSelectableItem: c = Ua, layout: l = za.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 }) => {
5194
- 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 === za.Sectioned, [j, M] = K(""), N = e ?? j, P = (e) => {
5198
+ 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 === za.Sectioned, [j, M] = G(""), N = e ?? j, P = (e) => {
5195
5199
  M(e ?? ""), t?.(e ?? "");
5196
- }, [ee, F] = K(/* @__PURE__ */ new Set()), I = G(/* @__PURE__ */ new Map());
5197
- U(() => {
5198
- let e = I.current;
5200
+ }, [ee, F] = G(/* @__PURE__ */ new Set()), te = W(/* @__PURE__ */ new Map());
5201
+ H(() => {
5202
+ let e = te.current;
5199
5203
  return () => {
5200
5204
  e.forEach((e) => clearTimeout(e)), e.clear();
5201
5205
  };
5202
5206
  }, []);
5203
- let te = W(() => (i == null ? n : [i, ...n.filter((e) => e.id !== i.id)]).filter((e) => !e.isHidden && c(e)), [
5207
+ let ne = U(() => (i == null ? n : [i, ...n.filter((e) => e.id !== i.id)]).filter((e) => !e.isHidden && c(e)), [
5204
5208
  n,
5205
5209
  i,
5206
5210
  c
5207
- ]), ne = W(() => new Set(n.map((e) => e.id)), [n]), re = N.trim(), ie = s != null && te.some((e) => e.id === s.id), R = s != null && c(s) && (A || !ie) && (!re || Ha(s, N)), z = W(() => {
5208
- let e = A ? te.filter((e) => e.id !== s?.id) : te;
5209
- return re ? e.filter((e) => Ha(e, N)) : e;
5211
+ ]), re = U(() => new Set(n.map((e) => e.id)), [n]), ie = N.trim(), ae = s != null && ne.some((e) => e.id === s.id), L = s != null && c(s) && (A || !ae) && (!ie || Ha(s, N)), R = U(() => {
5212
+ let e = A ? ne.filter((e) => e.id !== s?.id) : ne;
5213
+ return ie ? e.filter((e) => Ha(e, N)) : e;
5210
5214
  }, [
5211
- te,
5215
+ ne,
5212
5216
  A,
5213
- re,
5217
+ ie,
5214
5218
  N,
5215
5219
  s?.id
5216
- ]), ae = W(() => {
5217
- let e = re.toLowerCase();
5220
+ ]), oe = U(() => {
5221
+ let e = ie.toLowerCase();
5218
5222
  return e ? r.filter((t) => t.label.toLowerCase().includes(e)) : r;
5219
- }, [r, re]), oe = G(null), [le, de] = K();
5220
- _e(() => {
5221
- oe.current && de(Math.min(oe.current.scrollHeight, ce));
5223
+ }, [r, ie]), se = W(null), [ue, fe] = G();
5224
+ ve(() => {
5225
+ se.current && fe(Math.min(se.current.scrollHeight, le));
5222
5226
  }, [
5223
- z,
5224
- ae,
5225
- R
5227
+ R,
5228
+ oe,
5229
+ L
5226
5230
  ]);
5227
- let fe = G(null), pe = G(null);
5228
- U(() => {
5229
- pe.current && fe.current && Tn(pe.current, fe.current);
5231
+ let pe = W(null), me = W(null);
5232
+ H(() => {
5233
+ me.current && pe.current && Tn(me.current, pe.current);
5230
5234
  }, []);
5231
- let me = ue(), H = G(null);
5232
- U(() => {
5233
- me || H.current?.focus();
5234
- }, [me]);
5235
- let he = (e) => {
5235
+ let he = de(), V = W(null);
5236
+ H(() => {
5237
+ he || V.current?.focus();
5238
+ }, [he]);
5239
+ let ge = (e) => {
5236
5240
  u(e), p();
5237
- }, ge = () => {
5241
+ }, _e = () => {
5238
5242
  f?.(), p();
5239
- }, ve = (e, t) => {
5243
+ }, ye = (e, t) => {
5240
5244
  F((t) => new Set(t).add(e));
5241
5245
  let n = setTimeout(() => {
5242
5246
  d(e, t), F((t) => {
5243
5247
  let n = new Set(t);
5244
5248
  return n.delete(e), n;
5245
- }), I.current.delete(e);
5249
+ }), te.current.delete(e);
5246
5250
  }, Va);
5247
- I.current.set(e, n);
5248
- }, q = (e) => re ? /* @__PURE__ */ Z(Be, {
5251
+ te.current.set(e, n);
5252
+ }, be = (e) => ie ? /* @__PURE__ */ Z(Be, {
5249
5253
  text: e,
5250
5254
  query: N,
5251
- className: V(_, "min-w-0 flex-initial!")
5255
+ className: B(_, "min-w-0 flex-initial!")
5252
5256
  }) : /* @__PURE__ */ Z(Ne, {
5253
5257
  text: e,
5254
- className: V(_, "min-w-0 flex-initial!")
5255
- }), ye = (e) => {
5258
+ className: B(_, "min-w-0 flex-initial!")
5259
+ }), xe = (e) => {
5256
5260
  let t = e.id === o;
5257
5261
  return /* @__PURE__ */ Z("li", {
5258
5262
  role: "none",
5259
- ref: t ? fe : void 0,
5263
+ ref: t ? pe : void 0,
5260
5264
  children: /* @__PURE__ */ Z(Je, {
5261
5265
  role: "menuitemradio",
5262
5266
  "aria-checked": t,
5263
5267
  mark: Ye.Tint,
5264
5268
  selected: t,
5265
5269
  className: "h-auto py-1.5",
5266
- label: q(e.label),
5267
- onClick: () => he(e.id)
5270
+ label: be(e.label),
5271
+ onClick: () => ge(e.id)
5268
5272
  })
5269
5273
  }, e.id);
5270
- }, be = (e, t = !1) => {
5271
- let n = e.id === o, r = ne.has(e.id), s = !!e.isHidden, c = !s && (a || e.id !== i?.id), l = !t && ee.has(e.id);
5274
+ }, K = (e, t = !1) => {
5275
+ let n = e.id === o, r = re.has(e.id), s = !!e.isHidden, c = !s && (a || e.id !== i?.id), l = !t && ee.has(e.id);
5272
5276
  return /* @__PURE__ */ Z("li", {
5273
5277
  role: "none",
5274
- ref: n ? fe : void 0,
5278
+ ref: n ? pe : void 0,
5275
5279
  className: l ? Ba.rowLeaving : Ba.rowEnter,
5276
5280
  children: /* @__PURE__ */ Z(Je, {
5277
5281
  role: "menuitemradio",
@@ -5281,76 +5285,76 @@ var nn = /* @__PURE__ */ function(e) {
5281
5285
  className: "h-auto py-1.5",
5282
5286
  disabled: s,
5283
5287
  description: s ? k : void 0,
5284
- icon: /* @__PURE__ */ Z(L, {
5288
+ icon: /* @__PURE__ */ Z(I, {
5285
5289
  src: e.iconUrl,
5286
- size: J.MD,
5290
+ size: q.MD,
5287
5291
  initialsName: e.name
5288
5292
  }),
5289
5293
  label: /* @__PURE__ */ Q("span", {
5290
5294
  className: "flex min-w-0 flex-1 flex-wrap items-start gap-x-1.5 whitespace-normal",
5291
- children: [q(e.name), e.version && /* @__PURE__ */ Z(we, {
5295
+ children: [be(e.name), e.version && /* @__PURE__ */ Z(Te, {
5292
5296
  text: e.version,
5293
5297
  className: "min-w-0 wrap-break-word"
5294
5298
  })]
5295
5299
  }),
5296
- onClick: () => he(e.id),
5300
+ onClick: () => ge(e.id),
5297
5301
  rightControl: c ? /* @__PURE__ */ Z(dt, {
5298
5302
  icon: /* @__PURE__ */ Z(Lt, {
5299
- size: J.SM,
5303
+ size: q.SM,
5300
5304
  "aria-hidden": !0,
5301
- stroke: Y
5305
+ stroke: J
5302
5306
  }),
5303
5307
  selectedIcon: /* @__PURE__ */ Z(Rt, {
5304
- size: J.SM,
5308
+ size: q.SM,
5305
5309
  className: Ba.starFilledIcon,
5306
5310
  "aria-hidden": !0
5307
5311
  }),
5308
5312
  isSelected: r,
5309
5313
  "aria-label": r ? T : D,
5310
5314
  onClick: (t) => {
5311
- t.stopPropagation(), ve(e.id, !r);
5315
+ t.stopPropagation(), ye(e.id, !r);
5312
5316
  }
5313
5317
  }) : void 0
5314
5318
  })
5315
5319
  }, e.id);
5316
- }, xe = () => /* @__PURE__ */ Z("p", {
5317
- className: V(v, "px-4 py-4 text-center", Ba.emptyHint),
5320
+ }, Se = () => /* @__PURE__ */ Z("p", {
5321
+ className: B(v, "px-4 py-4 text-center", Ba.emptyHint),
5318
5322
  children: C
5319
- }), Se = () => /* @__PURE__ */ Q(X, { children: [
5320
- R && s && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("p", {
5321
- className: V(g, "px-3 pt-2 pb-2", Ba.sectionHeading),
5323
+ }), Ce = () => /* @__PURE__ */ Q(X, { children: [
5324
+ L && s && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("p", {
5325
+ className: B(g, "px-3 pt-2 pb-2", Ba.sectionHeading),
5322
5326
  children: E
5323
5327
  }), /* @__PURE__ */ Z("ul", {
5324
5328
  role: "group",
5325
5329
  className: "flex flex-col gap-1 px-1 pb-1",
5326
- children: be(s, !0)
5330
+ children: K(s, !0)
5327
5331
  })] }),
5328
- (R || z.length > 0) && /* @__PURE__ */ Z("p", {
5329
- className: V(g, "sticky top-0 z-10 px-3 pt-2 pb-2 will-change-transform", Ba.sectionHeading, Ba.stickyHeading),
5332
+ (L || R.length > 0) && /* @__PURE__ */ Z("p", {
5333
+ className: B(g, "sticky top-0 z-10 px-3 pt-2 pb-2 will-change-transform", Ba.sectionHeading, Ba.stickyHeading),
5330
5334
  children: S
5331
5335
  }),
5332
- z.length > 0 ? /* @__PURE__ */ Z("ul", {
5336
+ R.length > 0 ? /* @__PURE__ */ Z("ul", {
5333
5337
  role: "group",
5334
5338
  className: "flex flex-col gap-1 px-1 pb-1",
5335
- children: z.map((e) => be(e))
5336
- }) : xe()
5337
- ] }), Ce = () => {
5338
- let [e, ...t] = z, n = e != null && e.id === i?.id, r = n ? t : z, a = [
5339
+ children: R.map((e) => K(e))
5340
+ }) : Se()
5341
+ ] }), we = () => {
5342
+ let [e, ...t] = R, n = e != null && e.id === i?.id, r = n ? t : R, a = [
5339
5343
  ...n ? [e] : [],
5340
- ...R && s ? [s] : [],
5344
+ ...L && s ? [s] : [],
5341
5345
  ...r
5342
5346
  ];
5343
5347
  return /* @__PURE__ */ Q(X, { children: [a.length > 0 && /* @__PURE__ */ Z("ul", {
5344
5348
  role: "group",
5345
5349
  className: "flex flex-col gap-1 px-1 py-1",
5346
- children: a.map((e) => be(e))
5347
- }), r.length === 0 && !n && xe()] });
5350
+ children: a.map((e) => K(e))
5351
+ }), r.length === 0 && !n && Se()] });
5348
5352
  };
5349
5353
  return /* @__PURE__ */ Q("div", {
5350
- className: V("flex min-w-[360px] flex-col", y),
5354
+ className: B("flex min-w-[360px] flex-col", y),
5351
5355
  style: {
5352
5356
  maxHeight: "calc(var(--fui-available-height, 9999px) - 8px)",
5353
- ...B({
5357
+ ...z({
5354
5358
  "--ds-surface": h?.surface,
5355
5359
  "--ds-section-heading": h?.sectionHeading,
5356
5360
  "--ds-empty-hint": h?.emptyHint,
@@ -5361,9 +5365,9 @@ var nn = /* @__PURE__ */ function(e) {
5361
5365
  children: [
5362
5366
  /* @__PURE__ */ Z("div", {
5363
5367
  role: "search",
5364
- className: V("sticky top-0 z-10 pt-2 pb-3", Ba.searchHeader),
5368
+ className: B("sticky top-0 z-10 pt-2 pb-3", Ba.searchHeader),
5365
5369
  children: /* @__PURE__ */ Z(it, {
5366
- inputRef: H,
5370
+ inputRef: V,
5367
5371
  value: N,
5368
5372
  onChange: P,
5369
5373
  placeholder: b,
@@ -5372,39 +5376,39 @@ var nn = /* @__PURE__ */ function(e) {
5372
5376
  })
5373
5377
  }),
5374
5378
  /* @__PURE__ */ Z("div", {
5375
- ref: pe,
5376
- className: V(se, "min-h-0 flex-1 overflow-y-auto", Ba.listContent),
5377
- style: { maxHeight: le },
5379
+ ref: me,
5380
+ className: B(ce, "min-h-0 flex-1 overflow-y-auto", Ba.listContent),
5381
+ style: { maxHeight: ue },
5378
5382
  children: /* @__PURE__ */ Q("div", {
5379
5383
  role: "menu",
5380
5384
  "aria-label": O,
5381
- ref: oe,
5382
- children: [ae.length > 0 && /* @__PURE__ */ Z("ul", {
5385
+ ref: se,
5386
+ children: [oe.length > 0 && /* @__PURE__ */ Z("ul", {
5383
5387
  role: "group",
5384
5388
  className: "flex flex-col gap-1 px-1 pt-1 pb-1",
5385
- children: ae.map(ye)
5386
- }), A ? Se() : Ce()]
5389
+ children: oe.map(xe)
5390
+ }), A ? Ce() : we()]
5387
5391
  })
5388
5392
  }),
5389
5393
  /* @__PURE__ */ Z("div", {
5390
- className: V("px-2 py-3", Ba.footer),
5394
+ className: B("px-2 py-3", Ba.footer),
5391
5395
  children: /* @__PURE__ */ Z(Re, {
5392
5396
  label: w,
5393
5397
  className: "w-full justify-center",
5394
- onClick: ge
5398
+ onClick: _e
5395
5399
  })
5396
5400
  })
5397
5401
  ]
5398
5402
  });
5399
5403
  }, Ka = ({ service: e, texts: t, onLogin: n, onLogout: r, typography: a }) => {
5400
- 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] = K(!1), [m, h] = K(!1), [g, _] = K(!1), [v, y] = K(), 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?";
5404
+ 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?";
5401
5405
  return /* @__PURE__ */ Q(vr, {
5402
5406
  label: e.name,
5403
5407
  description: e.description,
5404
5408
  icon: /* @__PURE__ */ Z(Vt, {
5405
- size: J.SM,
5409
+ size: q.SM,
5406
5410
  "aria-hidden": !0,
5407
- stroke: Y
5411
+ stroke: J
5408
5412
  }),
5409
5413
  status: e.status,
5410
5414
  isActive: e.status === b.SignedIn,
@@ -5424,7 +5428,7 @@ var nn = /* @__PURE__ */ function(e) {
5424
5428
  keyCardTitleClassName: u,
5425
5429
  keyCardDescriptionClassName: d,
5426
5430
  deleteActionClassName: _r.deleteAction,
5427
- renderLoginOptions: e.canConsentToOfflineUsage ? (e) => /* @__PURE__ */ Z(Ee, {
5431
+ renderLoginOptions: e.canConsentToOfflineUsage ? (e) => /* @__PURE__ */ Z(De, {
5428
5432
  isSelected: f,
5429
5433
  onChange: p,
5430
5434
  disabled: e,
@@ -5433,14 +5437,14 @@ var nn = /* @__PURE__ */ function(e) {
5433
5437
  }) : void 0,
5434
5438
  children: [
5435
5439
  e.hint && /* @__PURE__ */ Z("p", {
5436
- className: V(c, "wrap-break-word", _r.description),
5440
+ className: B(c, "wrap-break-word", _r.description),
5437
5441
  children: e.hint
5438
5442
  }),
5439
5443
  e.hasSharedCredentials && /* @__PURE__ */ Z(ur, {
5440
5444
  icon: /* @__PURE__ */ Z(yt, {
5441
- size: J.SM,
5445
+ size: q.SM,
5442
5446
  "aria-hidden": !0,
5443
- stroke: Y
5447
+ stroke: J
5444
5448
  }),
5445
5449
  title: t?.sharedCredentials ?? "Shared credentials are available for this service."
5446
5450
  }),
@@ -5462,7 +5466,7 @@ var nn = /* @__PURE__ */ function(e) {
5462
5466
  onClick: () => {
5463
5467
  h(!1), y(void 0);
5464
5468
  }
5465
- }), /* @__PURE__ */ Z(Oe, {
5469
+ }), /* @__PURE__ */ Z(ke, {
5466
5470
  className: "min-h-11",
5467
5471
  label: S,
5468
5472
  disabled: g,
@@ -5490,7 +5494,7 @@ var nn = /* @__PURE__ */ function(e) {
5490
5494
  let h = null;
5491
5495
  return d ? h = /* @__PURE__ */ Z(lt, {
5492
5496
  className: "justify-start px-6 py-3",
5493
- size: J.MD,
5497
+ size: q.MD,
5494
5498
  ariaLabel: s?.loading ?? "Loading…"
5495
5499
  }) : f ? h = /* @__PURE__ */ Q("div", {
5496
5500
  className: "flex flex-col gap-2 px-6 py-3",
@@ -5502,7 +5506,7 @@ var nn = /* @__PURE__ */ function(e) {
5502
5506
  label: s?.retry ?? "Retry",
5503
5507
  onClick: i
5504
5508
  })]
5505
- }) : p ? h = /* @__PURE__ */ Z(we, {
5509
+ }) : p ? h = /* @__PURE__ */ Z(Te, {
5506
5510
  "aria-hidden": !0,
5507
5511
  className: "block px-6 py-3",
5508
5512
  text: u
@@ -5538,34 +5542,34 @@ var nn = /* @__PURE__ */ function(e) {
5538
5542
  role: "group",
5539
5543
  "aria-label": e.displayName,
5540
5544
  "aria-busy": l,
5541
- className: V("flex flex-col gap-2 rounded-lg px-3 py-2", Ja.row),
5545
+ className: B("flex flex-col gap-2 rounded-lg px-3 py-2", Ja.row),
5542
5546
  children: [
5543
5547
  /* @__PURE__ */ Q("div", {
5544
5548
  className: "flex min-h-8 min-w-0 items-center gap-2",
5545
5549
  children: [/* @__PURE__ */ Q("span", {
5546
5550
  className: "flex min-w-0 flex-1 items-baseline gap-1.5",
5547
5551
  children: [/* @__PURE__ */ Z("span", {
5548
- className: V("truncate", n, Ja.name),
5552
+ className: B("truncate", n, Ja.name),
5549
5553
  children: e.displayName
5550
5554
  }), e.displayVersion && /* @__PURE__ */ Z("span", {
5551
- className: V("shrink-0", i, Ja.hint),
5555
+ className: B("shrink-0", i, Ja.hint),
5552
5556
  children: e.displayVersion
5553
5557
  })]
5554
5558
  }), e.requiresNoCredentials ? /* @__PURE__ */ Z("span", {
5555
- className: V("shrink-0", i, Ja.hint),
5559
+ className: B("shrink-0", i, Ja.hint),
5556
5560
  children: t.noCredentialsRequired
5557
5561
  }) : /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(ze, {
5558
- size: Me.Small,
5562
+ size: Y.Small,
5559
5563
  icon: /* @__PURE__ */ Z(Gt, {
5560
5564
  "aria-hidden": !0,
5561
- size: J.SM,
5562
- stroke: Y
5565
+ size: q.SM,
5566
+ stroke: J
5563
5567
  }),
5564
5568
  "aria-label": t.decline,
5565
5569
  disabled: l,
5566
5570
  onClick: () => s(c)
5567
5571
  }), /* @__PURE__ */ Z(tt, {
5568
- size: Me.Small,
5572
+ size: Y.Small,
5569
5573
  label: l ? void 0 : u,
5570
5574
  "aria-label": l ? u : void 0,
5571
5575
  iconBefore: l ? /* @__PURE__ */ Z(lt, {
@@ -5587,15 +5591,15 @@ var nn = /* @__PURE__ */ function(e) {
5587
5591
  }),
5588
5592
  /* @__PURE__ */ Z(Ge, {
5589
5593
  politeness: qe.Assertive,
5590
- className: V("flex items-start gap-1.5 wrap-break-word empty:hidden", r, Ja.error),
5594
+ className: B("flex items-start gap-1.5 wrap-break-word empty:hidden", r, Ja.error),
5591
5595
  children: e.errorMessage && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(ht, {
5592
5596
  className: "mt-0.5 shrink-0",
5593
- size: J.SM,
5597
+ size: q.SM,
5594
5598
  "aria-hidden": !0
5595
5599
  }), /* @__PURE__ */ Z("span", { children: e.errorMessage })] })
5596
5600
  }),
5597
5601
  e.showDialNativeHint && /* @__PURE__ */ Z("p", {
5598
- className: V("wrap-break-word", i, Ja.hint),
5602
+ className: B("wrap-break-word", i, Ja.hint),
5599
5603
  children: t.dialNativeHint
5600
5604
  })
5601
5605
  ]
@@ -5619,7 +5623,7 @@ var nn = /* @__PURE__ */ function(e) {
5619
5623
  ariaLabel: h,
5620
5624
  header: /* @__PURE__ */ Q("span", {
5621
5625
  className: "flex items-center gap-2",
5622
- children: [h, v && /* @__PURE__ */ Z(ve, { label: String(e.length) })]
5626
+ children: [h, v && /* @__PURE__ */ Z(ye, { label: String(e.length) })]
5623
5627
  }),
5624
5628
  additionalButtonsOnLeft: !0,
5625
5629
  additionalButtons: v ? [{
@@ -5628,12 +5632,12 @@ var nn = /* @__PURE__ */ function(e) {
5628
5632
  }] : void 0,
5629
5633
  mainButtons: y ? [{
5630
5634
  label: g(y.displayName),
5631
- variant: Ce.Primary,
5635
+ variant: we.Primary,
5632
5636
  onClick: () => o(y.id)
5633
5637
  }] : void 0,
5634
5638
  children: /* @__PURE__ */ Q("div", {
5635
5639
  className: "flex flex-col gap-3 px-6 py-4",
5636
- style: B({
5640
+ style: z({
5637
5641
  "--cat-signin-description-text": u?.descriptionText,
5638
5642
  "--cat-signin-row-hover-background": u?.rowHoverBackground,
5639
5643
  "--cat-signin-name-text": u?.nameText,
@@ -5642,7 +5646,7 @@ var nn = /* @__PURE__ */ function(e) {
5642
5646
  }),
5643
5647
  children: [
5644
5648
  /* @__PURE__ */ Z("p", {
5645
- className: V(d, Ja.description),
5649
+ className: B(d, Ja.description),
5646
5650
  children: l?.description ?? "One or more tools or services need you to sign in before the conversation can continue."
5647
5651
  }),
5648
5652
  /* @__PURE__ */ Z(Ge, {
@@ -5663,7 +5667,7 @@ var nn = /* @__PURE__ */ function(e) {
5663
5667
  onDecline: s
5664
5668
  }, e.id))
5665
5669
  }),
5666
- n && /* @__PURE__ */ Z(Ee, {
5670
+ n && /* @__PURE__ */ Z(De, {
5667
5671
  isSelected: r,
5668
5672
  onChange: i,
5669
5673
  labelProps: { label: l?.offlineUsageConsent ?? "Allow offline use" },