@epam/ai-dial-catalog 1.2.0-dev.274 → 1.2.0-dev.276

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,13 +1,13 @@
1
1
  import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, x as y, y as b } from "./mapping-BHlCxGmC.js";
2
2
  import { CatalogEntityType as x, ConfirmationFooter as S, ConfirmationView as C, DESKTOP_BREAKPOINT_PX as w, DeploymentIcon as T, EntityHeader as E, EntityTypeLabel as D, FeaturedChip as O, ItemHeader as ee, MarkdownCodeBlock as k, MarkdownRenderer as A, MarkdownWithPlaceholders as te, PanelEmptyState as ne, SELECT_LIST_MAX_HEIGHT_CLASS_NAME as re, buildCssVars as j, mergeClasses as M } from "@epam/ai-dial-chat-shared";
3
- import { Fragment as ie, memo as N, startTransition as ae, useCallback as P, useEffect as F, useId as oe, useLayoutEffect as se, useMemo as I, useRef as L, useState as R } from "react";
4
- import { Badge as z, Button as ce, ButtonAppearance as le, ButtonDropdown as ue, ButtonVariant as de, CardShell as fe, Checkbox as pe, ConfirmationPopupVariant as me, DIAL_ICON_SIZE as B, DIAL_KIT_ICON_STROKE as V, DangerButton as he, Dropdown as ge, DropdownItemType as _e, ElementSize as ve, EllipsisTooltip as ye, FolderPath as be, GhostButton as xe, GhostIconButton as H, Highlight as Se, InlineSelect as Ce, InlineSelectTrigger as we, Input as Te, LinkButton as Ee, MenuItem as De, MenuItemMark as Oe, NeutralButton as U, NeutralIconButton as W, PrimaryButton as ke, ProgressBar as Ae, RadioGroup as je, Search as Me, SegmentedControl as Ne, SideDrawer as Pe, Skeleton as Fe, SkeletonAvatarShape as Ie, Spinner as Le, Tabs as Re, ToggleIconButton as ze, Tooltip as Be, mergeClasses as Ve } from "@epam/ai-dial-ui-kit";
5
- import { IconAlertTriangleFilled as He, IconArrowRight as Ue, IconBuildingCommunity as We, IconCheck as Ge, IconChevronDown as Ke, IconChevronLeft as qe, IconChevronRight as Je, IconCircleCheckFilled as Ye, IconDots as Xe, IconDownload as Ze, IconFilter as Qe, IconFolder as $e, IconKey as et, IconLayoutGrid as tt, IconLayoutList as nt, IconLogin as rt, IconLogout as it, IconPencil as at, IconPlayerPlayFilled as ot, IconPlus as st, IconShare as ct, IconStar as lt, IconStarFilled as ut, IconTrashX as dt, IconUser as ft, IconUserOff as pt, IconWorldOff as mt, IconWorldShare as G } from "@tabler/icons-react";
6
- import { Fragment as ht, jsx as K, jsxs as q } from "react/jsx-runtime";
7
- import { PublishFooter as gt, PublishPanel as _t, derivePublishState as vt, usePublishFlow as yt } from "@epam/ai-dial-publish-panel";
8
- import { Grid as bt } from "@epam/ai-dial-ui-kit/grid";
3
+ import { Fragment as ie, memo as ae, startTransition as oe, useCallback as N, useEffect as P, useId as se, useLayoutEffect as ce, useMemo as F, useRef as I, useState as L } from "react";
4
+ import { Badge as le, Button as ue, ButtonAppearance as de, ButtonDropdown as fe, ButtonVariant as pe, CardShell as me, Checkbox as he, ConfirmationPopupVariant as ge, DIAL_ICON_SIZE as R, DIAL_KIT_ICON_STROKE as z, DangerButton as _e, Dropdown as ve, DropdownItemType as ye, ElementSize as be, EllipsisTooltip as xe, FolderPath as Se, GhostButton as Ce, GhostIconButton as B, Highlight as we, InlineSelect as Te, InlineSelectTrigger as Ee, Input as De, LinkButton as Oe, MenuItem as ke, MenuItemMark as Ae, NeutralButton as je, NeutralIconButton as V, PrimaryButton as Me, ProgressBar as Ne, RadioGroup as Pe, Search as Fe, SegmentedControl as Ie, SideDrawer as Le, Skeleton as Re, SkeletonAvatarShape as ze, Spinner as Be, Tabs as Ve, ToggleIconButton as He, Tooltip as Ue, mergeClasses as We } from "@epam/ai-dial-ui-kit";
5
+ import { IconAlertTriangleFilled as Ge, IconArrowRight as Ke, IconBuildingCommunity as qe, IconCheck as Je, IconChevronDown as Ye, IconChevronLeft as Xe, IconChevronRight as Ze, IconCircleCheckFilled as Qe, IconDots as $e, IconDownload as et, IconFilter as H, IconFolder as tt, IconKey as nt, IconLayoutGrid as rt, IconLayoutList as it, IconLogin as at, IconLogout as ot, IconPencil as st, IconPlayerPlayFilled as ct, IconPlus as lt, IconShare as ut, IconStar as U, IconStarFilled as dt, IconTrashX as W, IconUser as ft, IconUserOff as pt, IconWorldOff as mt, IconWorldShare as ht } from "@tabler/icons-react";
6
+ import { Fragment as gt, jsx as G, jsxs as K } from "react/jsx-runtime";
7
+ import { PublishFooter as _t, PublishPanel as vt, derivePublishState as yt, usePublishFlow as bt } from "@epam/ai-dial-publish-panel";
8
+ import { Grid as xt } from "@epam/ai-dial-ui-kit/grid";
9
9
  //#region src/types/code-language.ts
10
- var xt = /* @__PURE__ */ function(e) {
10
+ var q = /* @__PURE__ */ function(e) {
11
11
  return e.Python = "python", e.Curl = "curl", e.JavaScript = "javascript", e;
12
12
  }({}), J = /* @__PURE__ */ function(e) {
13
13
  return e.About = "about", e.Content = "content", e.Overview = "overview", e.Pricing = "pricing", e.Limits = "limits", e.Api = "api", e.Tools = "tools", e;
@@ -26,8 +26,8 @@ var xt = /* @__PURE__ */ function(e) {
26
26
  }({}), Q = /* @__PURE__ */ function(e) {
27
27
  return e.Markdown = "markdown", e.Text = "text", e.Image = "image", e.Unsupported = "unsupported", e;
28
28
  }({}), Tt = () => {
29
- let [e, t] = R(() => window.innerWidth);
30
- return F(() => {
29
+ let [e, t] = L(() => window.innerWidth);
30
+ return P(() => {
31
31
  let e = () => t(window.innerWidth);
32
32
  return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
33
33
  }, []), e >= 1024 ? 4 : e >= 640 ? 2 : 1;
@@ -48,11 +48,11 @@ var xt = /* @__PURE__ */ function(e) {
48
48
  let { overflow: t, overflowY: n } = getComputedStyle(e);
49
49
  return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : At(e.parentElement);
50
50
  }, jt = 10, Mt = 10, Nt = 30, Pt = (e, t, n = jt) => {
51
- let r = L(null), [i, a] = R({
51
+ let r = I(null), [i, a] = L({
52
52
  start: 0,
53
53
  end: Nt
54
54
  });
55
- F(() => {
55
+ P(() => {
56
56
  let i = r.current;
57
57
  if (!i) return;
58
58
  let o = At(i.parentElement), s = () => {
@@ -81,7 +81,7 @@ var xt = /* @__PURE__ */ function(e) {
81
81
  endRow: Math.min(e, Math.max(i.end, s + Mt))
82
82
  };
83
83
  }, Ft = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
84
- let r = L(null), [i, a] = R(() => {
84
+ let r = I(null), [i, a] = L(() => {
85
85
  let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= w ? 60 : 0)), i = kt((n ? r : Math.min(Ot, r)) - 64), a = Math.ceil(e / i);
86
86
  return {
87
87
  startRow: 0,
@@ -89,7 +89,7 @@ var xt = /* @__PURE__ */ function(e) {
89
89
  columnCount: i
90
90
  };
91
91
  });
92
- F(() => {
92
+ P(() => {
93
93
  let n = r.current;
94
94
  if (!n) return;
95
95
  let i = At(n.parentElement), o = () => {
@@ -137,42 +137,42 @@ var xt = /* @__PURE__ */ function(e) {
137
137
  "--ai-last-used-text": f?.lastUsedColor,
138
138
  "--ai-version-text": f?.versionColor
139
139
  });
140
- return /* @__PURE__ */ q("div", {
140
+ return /* @__PURE__ */ K("div", {
141
141
  className: M("flex min-w-0 items-start gap-3", s),
142
142
  style: _,
143
- children: [/* @__PURE__ */ q("div", {
143
+ children: [/* @__PURE__ */ K("div", {
144
144
  className: M("relative flex-shrink-0", h, u),
145
- children: [/* @__PURE__ */ K("div", {
145
+ children: [/* @__PURE__ */ G("div", {
146
146
  className: "size-full overflow-hidden rounded-[inherit]",
147
- children: /* @__PURE__ */ K(T, {
147
+ children: /* @__PURE__ */ G(T, {
148
148
  src: e ?? void 0,
149
149
  size: g,
150
150
  initialsName: n,
151
151
  styles: { badgeClassName: M(m ? "rounded-[14px]" : "rounded-[12px]") }
152
152
  })
153
153
  }), d]
154
- }), /* @__PURE__ */ q("div", {
154
+ }), /* @__PURE__ */ K("div", {
155
155
  className: "flex min-w-0 flex-1 flex-col gap-1",
156
- children: [/* @__PURE__ */ K(D, {
156
+ children: [/* @__PURE__ */ G(D, {
157
157
  type: t,
158
158
  className: p?.typeClassName
159
- }), /* @__PURE__ */ q("div", {
159
+ }), /* @__PURE__ */ K("div", {
160
160
  className: "flex min-w-0 flex-col",
161
- children: [/* @__PURE__ */ q("div", {
161
+ children: [/* @__PURE__ */ K("div", {
162
162
  className: "flex min-w-0 items-start gap-1 overflow-hidden",
163
- children: [/* @__PURE__ */ K(ye, {
164
- text: o ? /* @__PURE__ */ K(Se, {
163
+ children: [/* @__PURE__ */ G(xe, {
164
+ text: o ? /* @__PURE__ */ G(we, {
165
165
  text: n,
166
166
  query: o
167
167
  }) : n,
168
168
  className: M(r ? "min-w-0 max-w-[66%] shrink-0" : "min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text", Lt.name)
169
- }), r && /* @__PURE__ */ K(ye, {
169
+ }), r && /* @__PURE__ */ G(xe, {
170
170
  text: r,
171
171
  className: M("min-w-0 flex-1 text-end tabular-nums", p?.versionClassName ?? "dial-tiny-text", Lt.version)
172
172
  })]
173
- }), m && i != null && /* @__PURE__ */ q("div", {
173
+ }), m && i != null && /* @__PURE__ */ K("div", {
174
174
  className: "flex items-center gap-2",
175
- children: [/* @__PURE__ */ K("span", {
175
+ children: [/* @__PURE__ */ G("span", {
176
176
  className: M("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", Lt.lastUsed),
177
177
  children: i
178
178
  }), l]
@@ -180,10 +180,10 @@ var xt = /* @__PURE__ */ function(e) {
180
180
  })]
181
181
  })]
182
182
  });
183
- }, zt = { icon: "_icon_a0p4u_1" }, Bt = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || d(e) == null ? null : /* @__PURE__ */ K(Be, {
183
+ }, zt = { icon: "_icon_a0p4u_1" }, Bt = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || d(e) == null ? null : /* @__PURE__ */ G(Ue, {
184
184
  tooltip: t,
185
185
  asChild: !0,
186
- children: /* @__PURE__ */ K("span", {
186
+ children: /* @__PURE__ */ G("span", {
187
187
  role: "img",
188
188
  "aria-label": t,
189
189
  style: j({
@@ -191,8 +191,8 @@ var xt = /* @__PURE__ */ function(e) {
191
191
  "--cat-cred-badge-icon": r?.icon
192
192
  }),
193
193
  className: M("absolute -bottom-1 -end-1 shrink-0", n),
194
- children: /* @__PURE__ */ K(He, {
195
- size: B.SM,
194
+ children: /* @__PURE__ */ G(Ge, {
195
+ size: R.SM,
196
196
  className: zt.icon,
197
197
  "aria-hidden": !0
198
198
  })
@@ -200,24 +200,24 @@ var xt = /* @__PURE__ */ function(e) {
200
200
  }), Vt = {
201
201
  starFilledIcon: "_starFilledIcon_po6zj_1",
202
202
  starPop: "_starPop_po6zj_1"
203
- }, Ht = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ K(ze, {
203
+ }, Ht = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ G(He, {
204
204
  size: n,
205
205
  style: j({ "--cat-star-filled": a }),
206
206
  className: i,
207
207
  isSelected: e,
208
- icon: /* @__PURE__ */ K(lt, {
209
- size: B.SM,
210
- stroke: V,
208
+ icon: /* @__PURE__ */ G(U, {
209
+ size: R.SM,
210
+ stroke: z,
211
211
  "aria-hidden": !0
212
212
  }),
213
- selectedIcon: /* @__PURE__ */ K(ut, {
214
- size: B.SM,
213
+ selectedIcon: /* @__PURE__ */ G(dt, {
214
+ size: R.SM,
215
215
  className: Vt.starFilledIcon,
216
216
  "aria-hidden": !0
217
217
  }),
218
218
  "aria-label": r,
219
219
  onClick: t
220
- }), Ut = { tag: "_tag_iqin5_3" }, Wt = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ K(z, {
220
+ }), Ut = { tag: "_tag_iqin5_3" }, Wt = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ G(le, {
221
221
  label: e,
222
222
  textClassName: n,
223
223
  style: j({
@@ -226,12 +226,12 @@ var xt = /* @__PURE__ */ function(e) {
226
226
  "--cat-card-tag-border": r?.border
227
227
  }),
228
228
  className: M(Ut.tag, t)
229
- }), Gt = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ K(Wt, {
229
+ }), Gt = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ G(Wt, {
230
230
  label: e,
231
231
  badgeClassName: t,
232
232
  colors: n
233
233
  }), Kt = 8, qt = ({ topics: e, overflowAriaLabel: t, className: n }) => {
234
- let r = L(null), i = L([]), a = L([]), o = L(null), s = L(Infinity), [c, l] = R(e.length), u = e.join("\0"), d = P(() => {
234
+ let r = I(null), i = I([]), a = I([]), o = I(null), s = I(Infinity), [c, l] = L(e.length), u = e.join("\0"), d = N(() => {
235
235
  let t = r.current;
236
236
  if (!t || e.length === 0) return;
237
237
  let n = t.clientWidth;
@@ -247,53 +247,53 @@ var xt = /* @__PURE__ */ function(e) {
247
247
  }
248
248
  l(Math.min(f, s.current));
249
249
  }, [e.length]);
250
- if (se(() => {
250
+ if (ce(() => {
251
251
  a.current = [], s.current = Infinity, l(e.length);
252
- }, [u]), se(() => {
252
+ }, [u]), ce(() => {
253
253
  d();
254
- }), se(() => {
254
+ }), ce(() => {
255
255
  let e = r.current;
256
256
  !e || c === 0 || e.scrollWidth <= e.clientWidth || (s.current = c - 1, l(s.current));
257
- }, [c]), F(() => {
257
+ }, [c]), P(() => {
258
258
  let e = r.current;
259
259
  if (!e) return;
260
260
  let t = new ResizeObserver(() => {
261
261
  s.current = Infinity, d();
262
262
  });
263
263
  return t.observe(e), () => t.disconnect();
264
- }, [d]), e.length === 0) return /* @__PURE__ */ K("div", {
264
+ }, [d]), e.length === 0) return /* @__PURE__ */ G("div", {
265
265
  ref: r,
266
266
  className: M("relative flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n)
267
267
  });
268
268
  let f = e.length - c;
269
- return /* @__PURE__ */ q("div", {
269
+ return /* @__PURE__ */ K("div", {
270
270
  ref: r,
271
271
  className: M("flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n),
272
272
  children: [
273
- e.slice(0, c).map((e, t) => /* @__PURE__ */ K("div", {
273
+ e.slice(0, c).map((e, t) => /* @__PURE__ */ G("div", {
274
274
  ref: (e) => {
275
275
  i.current[t] = e;
276
276
  },
277
- children: /* @__PURE__ */ K(Gt, { label: e })
277
+ children: /* @__PURE__ */ G(Gt, { label: e })
278
278
  }, e)),
279
- f > 0 && /* @__PURE__ */ K(Be, {
279
+ f > 0 && /* @__PURE__ */ G(Ue, {
280
280
  tooltip: e.slice(c).join(", "),
281
- children: /* @__PURE__ */ K("span", {
281
+ children: /* @__PURE__ */ G("span", {
282
282
  "aria-label": t?.(f) ?? `and ${f} more topics`,
283
- children: /* @__PURE__ */ K(Gt, { label: `+${f}` })
283
+ children: /* @__PURE__ */ G(Gt, { label: `+${f}` })
284
284
  })
285
285
  }),
286
- /* @__PURE__ */ K("div", {
286
+ /* @__PURE__ */ G("div", {
287
287
  ref: o,
288
288
  "aria-hidden": !0,
289
289
  className: "invisible absolute start-0 top-0",
290
- children: /* @__PURE__ */ K(Gt, { label: `+${e.length}` })
290
+ children: /* @__PURE__ */ G(Gt, { label: `+${e.length}` })
291
291
  })
292
292
  ]
293
293
  });
294
294
  }, Jt = { img: () => null }, Yt = (e) => e.target instanceof Element && e.target.closest("a") !== null, Xt = ({ item: e, query: t = "", onClick: n, initialIsStarred: r = !1, onToggle: i, isFavoriteVisible: a, featuredLabel: o = "Featured", addToFavoritesAriaLabel: s = "Add to favorites", removeFromFavoritesAriaLabel: c = "Remove from favorites", isSelected: l = !1, className: u, styles: d, credentialsBadgeLoggedOutLabel: f, isReadonly: p = !1 }) => {
295
- let [m, h] = R(r);
296
- F(() => {
295
+ let [m, h] = L(r);
296
+ P(() => {
297
297
  h(r);
298
298
  }, [e.id, r]);
299
299
  let g = d?.typography?.descriptionClassName ?? "dial-small-paragraph-text", _ = d?.typography?.featuredChipClassName, v = d?.typography?.folderLabelClassName ?? "dial-tiny-text", y = d?.typography?.folderLeafClassName ?? "dial-tiny-semi-text", b = j({
@@ -304,9 +304,9 @@ var xt = /* @__PURE__ */ function(e) {
304
304
  "--cg-footer-border": d?.colors?.footerBorder
305
305
  }), x = !p && e.isFeatured === !0, S = !p && a?.(e) !== !1, C = !p || e.folder.length > 0, w = n ? (t) => {
306
306
  Yt(t) || n(e);
307
- } : void 0, T = P((t) => {
307
+ } : void 0, T = N((t) => {
308
308
  !n || Yt(t) || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e));
309
- }, [n, e]), E = P((t) => {
309
+ }, [n, e]), E = N((t) => {
310
310
  t.stopPropagation();
311
311
  let n = !m;
312
312
  h(n), i?.(e.id, n);
@@ -315,7 +315,7 @@ var xt = /* @__PURE__ */ function(e) {
315
315
  i,
316
316
  e.id
317
317
  ]);
318
- return /* @__PURE__ */ q(fe, {
318
+ return /* @__PURE__ */ K(me, {
319
319
  ...n ? {
320
320
  role: "button",
321
321
  tabIndex: 0,
@@ -326,22 +326,22 @@ var xt = /* @__PURE__ */ function(e) {
326
326
  style: b,
327
327
  className: M("box-border cursor-pointer gap-3", It.card, x ? It.featuredCard : void 0, l ? It.selectedCard : void 0, u, Et.card),
328
328
  children: [
329
- x && /* @__PURE__ */ K("div", {
329
+ x && /* @__PURE__ */ G("div", {
330
330
  className: "absolute end-[22px] top-0 -translate-y-1/2",
331
- children: /* @__PURE__ */ K(O, {
331
+ children: /* @__PURE__ */ G(O, {
332
332
  label: o,
333
333
  type: e.type,
334
334
  className: _,
335
335
  style: d?.colors?.featuredChipStyle
336
336
  })
337
337
  }),
338
- l && /* @__PURE__ */ K(Ge, {
339
- size: B.SM,
338
+ l && /* @__PURE__ */ G(Je, {
339
+ size: R.SM,
340
340
  className: M("absolute end-3 top-3 shrink-0", It.checkIcon),
341
341
  "aria-hidden": !0,
342
- stroke: V
342
+ stroke: z
343
343
  }),
344
- /* @__PURE__ */ K(Rt, {
344
+ /* @__PURE__ */ G(Rt, {
345
345
  icon: e.iconUrl,
346
346
  type: e.type,
347
347
  name: e.name,
@@ -349,14 +349,14 @@ var xt = /* @__PURE__ */ function(e) {
349
349
  size: Ct.SM,
350
350
  query: t,
351
351
  iconClassName: It.cardIcon,
352
- iconOverlay: /* @__PURE__ */ K(Bt, {
352
+ iconOverlay: /* @__PURE__ */ G(Bt, {
353
353
  credentials: e.credentials,
354
354
  loggedOutLabel: f
355
355
  })
356
356
  }),
357
- /* @__PURE__ */ K("div", {
357
+ /* @__PURE__ */ G("div", {
358
358
  className: M("line-clamp-2 min-h-[2lh] break-words", It.description),
359
- children: e.description && /* @__PURE__ */ K(A, {
359
+ children: e.description && /* @__PURE__ */ G(A, {
360
360
  content: e.description,
361
361
  classNames: {
362
362
  p: g,
@@ -372,24 +372,24 @@ var xt = /* @__PURE__ */ function(e) {
372
372
  components: Jt
373
373
  })
374
374
  }),
375
- /* @__PURE__ */ K("div", {
375
+ /* @__PURE__ */ G("div", {
376
376
  className: "mt-auto flex items-center gap-2",
377
- children: /* @__PURE__ */ K(qt, { topics: e.topics })
377
+ children: /* @__PURE__ */ G(qt, { topics: e.topics })
378
378
  }),
379
- C && /* @__PURE__ */ K("div", {
379
+ C && /* @__PURE__ */ G("div", {
380
380
  className: M("pt-3", !p && M("border-t", It.footer)),
381
- children: /* @__PURE__ */ q("div", {
381
+ children: /* @__PURE__ */ K("div", {
382
382
  className: "flex items-center gap-2",
383
- children: [/* @__PURE__ */ K("div", {
383
+ children: [/* @__PURE__ */ G("div", {
384
384
  className: "min-w-0 flex-1",
385
- children: e.folder.length > 0 && /* @__PURE__ */ K(be, {
385
+ children: e.folder.length > 0 && /* @__PURE__ */ G(Se, {
386
386
  segments: e.folder,
387
387
  labelClassName: v,
388
388
  leafClassName: y
389
389
  })
390
- }), S && /* @__PURE__ */ K(Ht, {
390
+ }), S && /* @__PURE__ */ G(Ht, {
391
391
  isStarred: m,
392
- size: ve.Small,
392
+ size: be.Small,
393
393
  onClick: E,
394
394
  ariaLabel: m ? c : s,
395
395
  className: M(It.starBtn, !m && It.emptyStarHidden)
@@ -398,9 +398,9 @@ var xt = /* @__PURE__ */ function(e) {
398
398
  })
399
399
  ]
400
400
  });
401
- }, Zt = N(({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, isFavoriteVisible: a, onItemClick: o, featuredLabel: s, addToFavoritesAriaLabel: c, removeFromFavoritesAriaLabel: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f, featuredChipStyle: p }) => {
401
+ }, Zt = ae(({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, isFavoriteVisible: a, onItemClick: o, featuredLabel: s, addToFavoritesAriaLabel: c, removeFromFavoritesAriaLabel: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f, featuredChipStyle: p }) => {
402
402
  let m = e * n, h = t.slice(m, m + n);
403
- return /* @__PURE__ */ K("div", {
403
+ return /* @__PURE__ */ G("div", {
404
404
  style: {
405
405
  top: e * 268,
406
406
  height: 268
@@ -408,9 +408,9 @@ var xt = /* @__PURE__ */ function(e) {
408
408
  className: "absolute flex w-full gap-5 pb-5",
409
409
  children: Array.from({ length: n }, (e, t) => {
410
410
  let n = h[t];
411
- return /* @__PURE__ */ K("div", {
411
+ return /* @__PURE__ */ G("div", {
412
412
  className: "h-full min-w-0 flex-1",
413
- children: n && /* @__PURE__ */ K(Xt, {
413
+ children: n && /* @__PURE__ */ G(Xt, {
414
414
  item: n,
415
415
  query: r,
416
416
  initialIsStarred: n.isStarred,
@@ -429,8 +429,8 @@ var xt = /* @__PURE__ */ function(e) {
429
429
  }, n?.id ?? `spacer-${t}`);
430
430
  })
431
431
  });
432
- }), Qt = N(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = It.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1, featuredChipStyle: f }) => {
433
- let p = a?.noResultsTitle ?? "No results", m = a?.featuredLabel ?? "Featured", h = a?.addToFavoritesAriaLabel ?? "Add to favorites", g = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", _ = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", { containerRef: v, startRow: y, endRow: b, columnCount: x, totalHeight: S } = Ft(e.length, { isFullWidth: d }), C = I(() => ({
432
+ }), Qt = ae(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = It.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1, featuredChipStyle: f }) => {
433
+ let p = a?.noResultsTitle ?? "No results", m = a?.featuredLabel ?? "Featured", h = a?.addToFavoritesAriaLabel ?? "Add to favorites", g = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", _ = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", { containerRef: v, startRow: y, endRow: b, columnCount: x, totalHeight: S } = Ft(e.length, { isFullWidth: d }), C = F(() => ({
434
434
  items: e,
435
435
  columnCount: x,
436
436
  query: t,
@@ -459,19 +459,19 @@ var xt = /* @__PURE__ */ function(e) {
459
459
  u,
460
460
  f
461
461
  ]);
462
- return o ? /* @__PURE__ */ K("div", {
462
+ return o ? /* @__PURE__ */ G("div", {
463
463
  className: "grid gap-5 p-5",
464
464
  style: {
465
465
  gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
466
466
  ...j({ "--cg-skeleton-card-bg": l })
467
467
  },
468
- children: Array.from({ length: x * 3 }, (e, t) => /* @__PURE__ */ K("div", {
468
+ children: Array.from({ length: x * 3 }, (e, t) => /* @__PURE__ */ G("div", {
469
469
  className: M("rounded-md border p-4", It.skeletonCard),
470
470
  style: { height: 248 },
471
- children: /* @__PURE__ */ K(Fe, {
471
+ children: /* @__PURE__ */ G(Re, {
472
472
  avatar: {
473
473
  size: 48,
474
- shape: Ie.Square
474
+ shape: ze.Square
475
475
  },
476
476
  showTitle: { width: `${60 + t * 17 % 30}%` },
477
477
  paragraph: { rows: 3 },
@@ -479,16 +479,16 @@ var xt = /* @__PURE__ */ function(e) {
479
479
  color: c
480
480
  })
481
481
  }, t))
482
- }) : e.length === 0 ? /* @__PURE__ */ K("div", {
482
+ }) : e.length === 0 ? /* @__PURE__ */ G("div", {
483
483
  className: "flex size-full flex-col items-center justify-center",
484
- children: /* @__PURE__ */ K(ne, { label: p })
485
- }) : /* @__PURE__ */ K("div", {
484
+ children: /* @__PURE__ */ G(ne, { label: p })
485
+ }) : /* @__PURE__ */ G("div", {
486
486
  ref: v,
487
487
  className: "relative",
488
488
  style: { height: S },
489
489
  children: Array.from({ length: b - y }, (e, t) => {
490
490
  let n = y + t;
491
- return /* @__PURE__ */ K(Zt, {
491
+ return /* @__PURE__ */ G(Zt, {
492
492
  rowIndex: n,
493
493
  ...C
494
494
  }, n);
@@ -515,19 +515,19 @@ var xt = /* @__PURE__ */ function(e) {
515
515
  valueTrue: "_valueTrue_jnq93_17",
516
516
  valueFalse: "_valueFalse_jnq93_21",
517
517
  valueText: "_valueText_jnq93_25"
518
- }, rn = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ q(ht, { children: [/* @__PURE__ */ K(Ye, {
519
- size: B.MD,
518
+ }, rn = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ K(gt, { children: [/* @__PURE__ */ G(Qe, {
519
+ size: R.MD,
520
520
  className: M(r, nn.checkIcon)
521
- }), /* @__PURE__ */ K("span", {
521
+ }), /* @__PURE__ */ G("span", {
522
522
  className: M(n, nn.valueTrue),
523
523
  children: i
524
- })] }) : e === !1 ? /* @__PURE__ */ K("span", {
524
+ })] }) : e === !1 ? /* @__PURE__ */ G("span", {
525
525
  className: M(t, nn.valueFalse),
526
526
  children: a
527
- }) : /* @__PURE__ */ K("span", {
527
+ }) : /* @__PURE__ */ G("span", {
528
528
  className: M("min-w-0 break-words", t, nn.valueText),
529
529
  children: e
530
- }), an = ({ sectionLabel: e = "Section", values: t, labelClassName: n = "dial-small-semi-text", valueClassName: r = "dial-small-text", valueTrueClassName: i = "dial-small-semi-text", checkIconClassName: a, sectionClassName: o = "dial-caption-text", yesLabel: s = "Yes", noLabel: c = "No", colors: l }) => /* @__PURE__ */ K("div", {
530
+ }), an = ({ sectionLabel: e = "Section", values: t, labelClassName: n = "dial-small-semi-text", valueClassName: r = "dial-small-text", valueTrueClassName: i = "dial-small-semi-text", checkIconClassName: a, sectionClassName: o = "dial-caption-text", yesLabel: s = "Yes", noLabel: c = "No", colors: l }) => /* @__PURE__ */ G("div", {
531
531
  className: "flex flex-col",
532
532
  style: j({
533
533
  "--tv-section-heading": l?.sectionHeading,
@@ -538,19 +538,19 @@ var xt = /* @__PURE__ */ function(e) {
538
538
  "--tv-value-false": l?.valueFalse,
539
539
  "--tv-value-text": l?.valueText
540
540
  }),
541
- children: t != null && t.length > 0 && /* @__PURE__ */ q("section", { children: [/* @__PURE__ */ K("p", {
541
+ children: t != null && t.length > 0 && /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("p", {
542
542
  className: M("mb-3 mt-0", o, nn.sectionHeading),
543
543
  children: e
544
- }), /* @__PURE__ */ K("ul", {
544
+ }), /* @__PURE__ */ G("ul", {
545
545
  className: "m-0 list-none p-0",
546
- children: t.map((e, t) => /* @__PURE__ */ q("li", {
546
+ children: t.map((e, t) => /* @__PURE__ */ K("li", {
547
547
  className: M("flex items-center rounded px-3 py-2", t % 2 == 0 ? nn.rowAlt : void 0),
548
- children: [/* @__PURE__ */ K("span", {
548
+ children: [/* @__PURE__ */ G("span", {
549
549
  className: M(n, nn.label, "w-2/5 shrink-0"),
550
550
  children: e.label
551
- }), /* @__PURE__ */ K("div", {
551
+ }), /* @__PURE__ */ G("div", {
552
552
  className: "flex w-3/5 min-w-0 items-center gap-1",
553
- children: /* @__PURE__ */ K(rn, {
553
+ children: /* @__PURE__ */ G(rn, {
554
554
  value: e.value,
555
555
  valueClassName: r,
556
556
  valueTrueClassName: i,
@@ -562,27 +562,27 @@ var xt = /* @__PURE__ */ function(e) {
562
562
  }, e.label))
563
563
  })] })
564
564
  }), on = { sectionHeading: "_sectionHeading_148lj_1" }, sn = {
565
- [xt.Python]: "Python",
566
- [xt.Curl]: "cURL",
567
- [xt.JavaScript]: "JavaScript"
565
+ [q.Python]: "Python",
566
+ [q.Curl]: "cURL",
567
+ [q.JavaScript]: "JavaScript"
568
568
  }, cn = {
569
- [xt.Python]: "python",
570
- [xt.Curl]: "bash",
571
- [xt.JavaScript]: "javascript"
569
+ [q.Python]: "python",
570
+ [q.Curl]: "bash",
571
+ [q.JavaScript]: "javascript"
572
572
  }, ln = ({ 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" }) => {
573
- let [s, c] = R(e[0]?.language ?? xt.Python);
574
- F(() => {
575
- c(e[0]?.language ?? xt.Python);
573
+ let [s, c] = L(e[0]?.language ?? q.Python);
574
+ P(() => {
575
+ c(e[0]?.language ?? q.Python);
576
576
  }, [e]);
577
- let l = I(() => e.map((e) => ({
577
+ let l = F(() => e.map((e) => ({
578
578
  key: e.language,
579
579
  label: sn[e.language] ?? e.language,
580
580
  onClick: () => c(e.language)
581
581
  })), [e]), u = e.find((e) => e.language === s)?.code ?? "", d = e.length > 1;
582
- return /* @__PURE__ */ q("section", { children: [t != null && /* @__PURE__ */ K("p", {
582
+ return /* @__PURE__ */ K("section", { children: [t != null && /* @__PURE__ */ G("p", {
583
583
  className: M("mb-3 mt-0", o, on.sectionHeading),
584
584
  children: t
585
- }), /* @__PURE__ */ K(k, {
585
+ }), /* @__PURE__ */ G(k, {
586
586
  language: cn[s] ?? s,
587
587
  title: sn[s] ?? s,
588
588
  value: u,
@@ -591,16 +591,16 @@ var xt = /* @__PURE__ */ function(e) {
591
591
  codeClassName: i,
592
592
  languageLabelClassName: a,
593
593
  hideDownload: !0,
594
- titleSlot: d ? /* @__PURE__ */ K(Ce, {
594
+ titleSlot: d ? /* @__PURE__ */ G(Te, {
595
595
  items: l,
596
596
  matchReferenceWidth: !1,
597
597
  placement: "bottom-end",
598
- size: ve.Small,
598
+ size: be.Small,
599
599
  selectedKey: s
600
600
  }) : void 0
601
601
  })] });
602
602
  }, un = ({ 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" }) => {
603
- let [h, g] = R(0), _ = I(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = I(() => _.map((e, t) => ({
603
+ let [h, g] = L(0), _ = F(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = F(() => _.map((e, t) => ({
604
604
  key: e.url,
605
605
  label: e.label,
606
606
  onClick: () => g(t)
@@ -610,17 +610,17 @@ var xt = /* @__PURE__ */ function(e) {
610
610
  value: e.resource.modelId
611
611
  });
612
612
  let S = _.length > 1, C = x.length > 0, w = v ? null : e.resource?.endpointUrl, T = (e.snippets?.length ?? 0) > 0, E = e.requestExample != null, D = e.responseSchema != null;
613
- return /* @__PURE__ */ q("div", {
613
+ return /* @__PURE__ */ K("div", {
614
614
  className: "flex flex-col gap-6",
615
615
  children: [
616
- C && /* @__PURE__ */ K(an, {
616
+ C && /* @__PURE__ */ G(an, {
617
617
  sectionLabel: t,
618
618
  values: x,
619
619
  labelClassName: u,
620
620
  valueClassName: d,
621
621
  sectionClassName: m
622
622
  }),
623
- w != null && /* @__PURE__ */ K(k, {
623
+ w != null && /* @__PURE__ */ G(k, {
624
624
  language: a,
625
625
  value: w,
626
626
  copyLabel: c,
@@ -629,12 +629,12 @@ var xt = /* @__PURE__ */ function(e) {
629
629
  languageLabelClassName: p,
630
630
  hideDownload: !0
631
631
  }),
632
- v && /* @__PURE__ */ q("section", { children: [
633
- /* @__PURE__ */ K("p", {
632
+ v && /* @__PURE__ */ K("section", { children: [
633
+ /* @__PURE__ */ G("p", {
634
634
  className: M("mb-3 mt-0", m, on.sectionHeading),
635
635
  children: n
636
636
  }),
637
- y != null && /* @__PURE__ */ K(k, {
637
+ y != null && /* @__PURE__ */ G(k, {
638
638
  language: y.label,
639
639
  value: y.url,
640
640
  copyLabel: c,
@@ -642,17 +642,17 @@ var xt = /* @__PURE__ */ function(e) {
642
642
  codeClassName: f,
643
643
  languageLabelClassName: p,
644
644
  hideDownload: !0,
645
- titleSlot: S ? /* @__PURE__ */ K(Ce, {
645
+ titleSlot: S ? /* @__PURE__ */ G(Te, {
646
646
  items: b,
647
647
  matchReferenceWidth: !1,
648
648
  placement: "bottom-end",
649
- size: ve.Small,
649
+ size: be.Small,
650
650
  selectedKey: y.url
651
651
  }) : void 0
652
652
  }, h),
653
- y?.snippets != null && y.snippets.length > 0 && /* @__PURE__ */ K("div", {
653
+ y?.snippets != null && y.snippets.length > 0 && /* @__PURE__ */ G("div", {
654
654
  className: "mt-4",
655
- children: /* @__PURE__ */ K(ln, {
655
+ children: /* @__PURE__ */ G(ln, {
656
656
  snippets: y.snippets,
657
657
  copyAriaLabel: c,
658
658
  copiedStatusLabel: l,
@@ -662,7 +662,7 @@ var xt = /* @__PURE__ */ function(e) {
662
662
  }, h)
663
663
  })
664
664
  ] }),
665
- !v && T && /* @__PURE__ */ K(ln, {
665
+ !v && T && /* @__PURE__ */ G(ln, {
666
666
  snippets: e.snippets ?? [],
667
667
  sectionLabel: r,
668
668
  copyAriaLabel: c,
@@ -671,10 +671,10 @@ var xt = /* @__PURE__ */ function(e) {
671
671
  codeTitleClassName: p,
672
672
  sectionClassName: m
673
673
  }),
674
- E && /* @__PURE__ */ q("section", { children: [/* @__PURE__ */ K("p", {
674
+ E && /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("p", {
675
675
  className: M("mb-3 mt-0", m, on.sectionHeading),
676
676
  children: o
677
- }), /* @__PURE__ */ K(k, {
677
+ }), /* @__PURE__ */ G(k, {
678
678
  language: "bash",
679
679
  value: e.requestExample ?? "",
680
680
  copyLabel: c,
@@ -682,10 +682,10 @@ var xt = /* @__PURE__ */ function(e) {
682
682
  codeClassName: f,
683
683
  hideDownload: !0
684
684
  })] }),
685
- D && /* @__PURE__ */ q("section", { children: [/* @__PURE__ */ K("p", {
685
+ D && /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("p", {
686
686
  className: M("mb-3 mt-0", m, on.sectionHeading),
687
687
  children: s
688
- }), /* @__PURE__ */ K(k, {
688
+ }), /* @__PURE__ */ G(k, {
689
689
  language: "json",
690
690
  value: e.responseSchema ?? "",
691
691
  copyLabel: c,
@@ -704,19 +704,19 @@ var xt = /* @__PURE__ */ function(e) {
704
704
  }({}), pn = {
705
705
  sunken: dn.sunkenBox,
706
706
  raised: dn.raisedBox
707
- }, mn = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */ q("span", {
707
+ }, mn = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */ K("span", {
708
708
  className: "relative inline-flex shrink-0",
709
709
  children: [
710
- /* @__PURE__ */ K("span", {
710
+ /* @__PURE__ */ G("span", {
711
711
  className: M("flex size-8 items-center justify-center rounded-lg", pn[n]),
712
712
  children: e
713
713
  }),
714
- t && /* @__PURE__ */ K(Ye, {
715
- size: B.MD,
714
+ t && /* @__PURE__ */ G(Qe, {
715
+ size: R.MD,
716
716
  "aria-hidden": !0,
717
717
  className: M("absolute -end-2 -top-2", dn.activeIcon)
718
718
  }),
719
- r != null && /* @__PURE__ */ K("span", {
719
+ r != null && /* @__PURE__ */ G("span", {
720
720
  role: "status",
721
721
  className: "sr-only",
722
722
  children: r
@@ -727,43 +727,43 @@ var xt = /* @__PURE__ */ function(e) {
727
727
  icon: "_icon_tqnz7_6",
728
728
  title: "_title_tqnz7_10",
729
729
  description: "_description_tqnz7_14"
730
- }, gn = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ q("div", {
730
+ }, gn = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ K("div", {
731
731
  role: "status",
732
732
  "aria-live": "polite",
733
733
  className: M("flex items-center gap-3 rounded-xl p-3", hn.card),
734
- children: [/* @__PURE__ */ K("span", {
734
+ children: [/* @__PURE__ */ G("span", {
735
735
  className: M("shrink-0", hn.icon, n != null && "mt-0.5"),
736
736
  children: e
737
- }), /* @__PURE__ */ q("div", {
737
+ }), /* @__PURE__ */ K("div", {
738
738
  className: "flex min-w-0 flex-1 items-center justify-between gap-2",
739
- children: [/* @__PURE__ */ q("div", {
739
+ children: [/* @__PURE__ */ K("div", {
740
740
  className: "flex min-w-0 flex-col gap-1",
741
- children: [/* @__PURE__ */ K("span", {
741
+ children: [/* @__PURE__ */ G("span", {
742
742
  className: M(i, hn.title),
743
743
  children: t
744
- }), n != null && /* @__PURE__ */ K("span", {
744
+ }), n != null && /* @__PURE__ */ G("span", {
745
745
  className: M(a, hn.description),
746
746
  children: n
747
747
  })]
748
- }), r != null && /* @__PURE__ */ K("div", {
748
+ }), r != null && /* @__PURE__ */ G("div", {
749
749
  className: "shrink-0 whitespace-nowrap",
750
750
  children: r
751
751
  })]
752
752
  })]
753
753
  }), _n = (e) => e === y.ApiKey ? "You are currently using organization API key to access this toolset." : "You are currently using organization credentials to access this toolset.", vn = (e) => e === y.ApiKey ? "Configure your personal API key to have access to your data." : "Login using personal account to have access to your data.", yn = (e) => e === y.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", bn = (e) => e === y.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", xn = 20, Sn = ({ state: e, authenticationType: t, texts: n }) => {
754
- let r = /* @__PURE__ */ K(We, {
754
+ let r = /* @__PURE__ */ G(qe, {
755
755
  size: xn,
756
756
  "aria-hidden": !0,
757
- stroke: V
757
+ stroke: z
758
758
  });
759
759
  if (e === v.PersonalCredentialsActive) {
760
760
  let e = (n?.personalCredentialsActiveBannerTitle ?? bn)(t);
761
- return /* @__PURE__ */ K(gn, {
762
- icon: /* @__PURE__ */ K(mn, {
763
- icon: /* @__PURE__ */ K(ft, {
764
- size: B.SM,
761
+ return /* @__PURE__ */ G(gn, {
762
+ icon: /* @__PURE__ */ G(mn, {
763
+ icon: /* @__PURE__ */ G(ft, {
764
+ size: R.SM,
765
765
  "aria-hidden": !0,
766
- stroke: V
766
+ stroke: z
767
767
  }),
768
768
  isActive: !0,
769
769
  surface: fn.Raised
@@ -773,12 +773,12 @@ var xt = /* @__PURE__ */ function(e) {
773
773
  }
774
774
  if (e === v.OrgCredentialsActive) {
775
775
  let e = (n?.orgCredentialsActiveBannerTitle ?? yn)(t);
776
- return /* @__PURE__ */ K(gn, {
777
- icon: /* @__PURE__ */ K(mn, {
778
- icon: /* @__PURE__ */ K(We, {
779
- size: B.SM,
776
+ return /* @__PURE__ */ G(gn, {
777
+ icon: /* @__PURE__ */ G(mn, {
778
+ icon: /* @__PURE__ */ G(qe, {
779
+ size: R.SM,
780
780
  "aria-hidden": !0,
781
- stroke: V
781
+ stroke: z
782
782
  }),
783
783
  isActive: !0,
784
784
  surface: fn.Raised
@@ -786,7 +786,7 @@ var xt = /* @__PURE__ */ function(e) {
786
786
  title: e
787
787
  });
788
788
  }
789
- return /* @__PURE__ */ K(gn, {
789
+ return /* @__PURE__ */ G(gn, {
790
790
  icon: r,
791
791
  title: (n?.orgFallbackBannerTitle ?? _n)(t),
792
792
  description: (n?.orgFallbackBannerDescription ?? vn)(t)
@@ -797,7 +797,7 @@ var xt = /* @__PURE__ */ function(e) {
797
797
  rowDescription: "_rowDescription_lyarp_9",
798
798
  errorText: "_errorText_lyarp_13"
799
799
  }, wn = ({ label: e, description: t, icon: n, status: r, isActive: i, authenticationType: a, apiKeyAddedWhen: s, onLogin: c, onRequestLogout: l, onRequestDeleteApiKey: u, texts: d, labelClassName: f, descriptionClassName: p, errorClassName: m, keyCardTitleClassName: h, keyCardDescriptionClassName: g, deleteActionClassName: _, disabled: v = !1, isPending: b = !1, renderLoginOptions: x, children: S }) => {
800
- let C = oe(), [w, T] = R(), [E, D] = R(""), [O, ee] = R(!1), [k, A] = R(!1), te = r === o.SignedIn, ne = P((e) => {
800
+ let C = se(), [w, T] = L(), [E, D] = L(""), [O, ee] = L(!1), [k, A] = L(!1), te = r === o.SignedIn, ne = N((e) => {
801
801
  D(e ?? ""), ee(!1), T(void 0);
802
802
  }, []), re = async () => {
803
803
  if (k || v) return;
@@ -814,41 +814,41 @@ var xt = /* @__PURE__ */ function(e) {
814
814
  } finally {
815
815
  A(!1);
816
816
  }
817
- }, j = d?.loginActionLabel ?? "Log in", ie = d?.logoutActionLabel ?? "Log out", N = d?.addApiKeyActionLabel ?? "Add", ae = d?.deleteActionLabel ?? "Delete", F = d?.credentialsSignedInLabel ?? "Signed in", se = d?.credentialsSignedOutLabel ?? "Signed out", I = d?.addingApiKeyStatusLabel ?? "Adding", L = d?.apiKeyConfiguredMessage ?? "Key has been configured", z = s == null ? void 0 : (d?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(s);
818
- return /* @__PURE__ */ q("div", {
817
+ }, j = d?.loginActionLabel ?? "Log in", ie = d?.logoutActionLabel ?? "Log out", ae = d?.addApiKeyActionLabel ?? "Add", oe = d?.deleteActionLabel ?? "Delete", P = d?.credentialsSignedInLabel ?? "Signed in", ce = d?.credentialsSignedOutLabel ?? "Signed out", F = d?.addingApiKeyStatusLabel ?? "Adding", I = d?.apiKeyConfiguredMessage ?? "Key has been configured", le = s == null ? void 0 : (d?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(s);
818
+ return /* @__PURE__ */ K("div", {
819
819
  role: "group",
820
820
  "aria-label": e,
821
821
  "aria-busy": k || b,
822
822
  className: "flex min-w-0 items-start gap-3 rounded-xl p-3",
823
- children: [/* @__PURE__ */ K(mn, {
823
+ children: [/* @__PURE__ */ G(mn, {
824
824
  icon: n,
825
825
  isActive: i,
826
- statusLabel: i ? F : se
827
- }), /* @__PURE__ */ q("div", {
826
+ statusLabel: i ? P : ce
827
+ }), /* @__PURE__ */ K("div", {
828
828
  className: "flex min-w-0 flex-1 flex-col gap-1",
829
829
  children: [
830
- /* @__PURE__ */ q("div", {
830
+ /* @__PURE__ */ K("div", {
831
831
  className: "flex flex-wrap items-start justify-between gap-2",
832
- children: [/* @__PURE__ */ q("div", {
832
+ children: [/* @__PURE__ */ K("div", {
833
833
  className: "flex min-w-0 flex-1 flex-col gap-0.5 break-words",
834
- children: [/* @__PURE__ */ K("span", {
834
+ children: [/* @__PURE__ */ G("span", {
835
835
  className: f,
836
836
  children: e
837
- }), /* @__PURE__ */ K("span", {
837
+ }), /* @__PURE__ */ G("span", {
838
838
  className: M(p, Cn.rowDescription),
839
839
  children: t
840
840
  })]
841
- }), a === y.OAuth && (te ? l && /* @__PURE__ */ K(he, {
842
- appearance: le.Ghost,
841
+ }), a === y.OAuth && (te ? l && /* @__PURE__ */ G(_e, {
842
+ appearance: de.Ghost,
843
843
  label: ie,
844
844
  className: "min-h-11 min-w-28 shrink-0 justify-center whitespace-nowrap",
845
845
  onClick: l,
846
846
  disabled: k || v
847
- }) : /* @__PURE__ */ K(U, {
847
+ }) : /* @__PURE__ */ G(je, {
848
848
  label: k ? void 0 : j,
849
849
  "aria-label": j,
850
- iconBefore: k ? /* @__PURE__ */ K(Le, {
851
- size: B.SM,
850
+ iconBefore: k ? /* @__PURE__ */ G(Be, {
851
+ size: R.SM,
852
852
  ariaLabel: j
853
853
  }) : void 0,
854
854
  disabled: k || v,
@@ -856,11 +856,11 @@ var xt = /* @__PURE__ */ function(e) {
856
856
  onClick: re
857
857
  }))]
858
858
  }),
859
- a === y.ApiKey && !te && /* @__PURE__ */ q("div", {
859
+ a === y.ApiKey && !te && /* @__PURE__ */ K("div", {
860
860
  className: "flex animate-fadeIn flex-col gap-1 pt-1",
861
- children: [/* @__PURE__ */ q("div", {
861
+ children: [/* @__PURE__ */ K("div", {
862
862
  className: "flex items-end gap-2",
863
- children: [/* @__PURE__ */ K(Te, {
863
+ children: [/* @__PURE__ */ G(De, {
864
864
  id: C,
865
865
  type: "password",
866
866
  autoComplete: "off",
@@ -870,37 +870,37 @@ var xt = /* @__PURE__ */ function(e) {
870
870
  invalid: O,
871
871
  disabled: k || v,
872
872
  containerClassName: "min-w-0 flex-1"
873
- }), /* @__PURE__ */ K(U, {
874
- label: k ? void 0 : N,
875
- "aria-label": k ? I : void 0,
876
- iconBefore: k ? /* @__PURE__ */ K(Le, {
877
- size: B.SM,
878
- ariaLabel: I
873
+ }), /* @__PURE__ */ G(je, {
874
+ label: k ? void 0 : ae,
875
+ "aria-label": k ? F : void 0,
876
+ iconBefore: k ? /* @__PURE__ */ G(Be, {
877
+ size: R.SM,
878
+ ariaLabel: F
879
879
  }) : void 0,
880
880
  className: "min-h-11 shrink-0 whitespace-nowrap",
881
881
  onClick: re,
882
882
  disabled: k || v
883
883
  })]
884
- }), O && /* @__PURE__ */ K("span", {
884
+ }), O && /* @__PURE__ */ G("span", {
885
885
  role: "alert",
886
886
  className: M(m, Cn.errorText),
887
887
  children: d?.apiKeyRequiredErrorMessage ?? "API key is required."
888
888
  })]
889
889
  }),
890
- a === y.ApiKey && te && /* @__PURE__ */ K("div", {
890
+ a === y.ApiKey && te && /* @__PURE__ */ G("div", {
891
891
  className: "animate-fadeIn pt-1",
892
- children: /* @__PURE__ */ K(gn, {
893
- icon: /* @__PURE__ */ K(et, {
894
- size: B.SM,
892
+ children: /* @__PURE__ */ G(gn, {
893
+ icon: /* @__PURE__ */ G(nt, {
894
+ size: R.SM,
895
895
  "aria-hidden": !0,
896
- stroke: V
896
+ stroke: z
897
897
  }),
898
- title: L,
899
- description: z,
898
+ title: I,
899
+ description: le,
900
900
  titleClassName: h,
901
901
  descriptionClassName: g,
902
- action: u && /* @__PURE__ */ K(Ee, {
903
- label: ae,
902
+ action: u && /* @__PURE__ */ G(Oe, {
903
+ label: oe,
904
904
  className: M("min-h-11", _),
905
905
  onClick: u,
906
906
  disabled: k || v
@@ -908,7 +908,7 @@ var xt = /* @__PURE__ */ function(e) {
908
908
  })
909
909
  }),
910
910
  !te && x?.(k || v),
911
- w && /* @__PURE__ */ K("p", {
911
+ w && /* @__PURE__ */ G("p", {
912
912
  role: "alert",
913
913
  className: M(m, Cn.errorText),
914
914
  children: w
@@ -921,32 +921,32 @@ var xt = /* @__PURE__ */ function(e) {
921
921
  let { credentialsDescriptionClassName: c = "dial-body-paragraph-text", credentialsRowLabelClassName: l = "dial-small-semi-text", credentialsRowDescriptionClassName: u = "dial-small-text", credentialsErrorClassName: d = "dial-caption-text", credentialsKeyCardTitleClassName: f = "dial-tiny-semi-text", credentialsKeyCardDescriptionClassName: p = "dial-tiny-text" } = a?.typography ?? {}, m = e.credentials;
922
922
  if (m == null) return null;
923
923
  let h = (i?.credentialsManagementDescription ?? Tn)(m.authenticationType), g = m.userStatus === o.SignedIn, _ = !g && m.globalStatus === o.SignedIn;
924
- return /* @__PURE__ */ q("div", {
924
+ return /* @__PURE__ */ K("div", {
925
925
  className: "flex flex-col",
926
- children: [/* @__PURE__ */ K("div", {
926
+ children: [/* @__PURE__ */ G("div", {
927
927
  className: "px-6 py-4",
928
- children: /* @__PURE__ */ K("div", {
928
+ children: /* @__PURE__ */ G("div", {
929
929
  className: M("rounded-xl p-3", Cn.surface),
930
- children: /* @__PURE__ */ K(E, {
930
+ children: /* @__PURE__ */ G(E, {
931
931
  item: e,
932
932
  iconSize: 40,
933
933
  hasFeaturedTag: !1
934
934
  })
935
935
  })
936
- }), /* @__PURE__ */ q("div", {
936
+ }), /* @__PURE__ */ K("div", {
937
937
  className: "flex flex-col gap-5 px-6 py-4",
938
- children: [/* @__PURE__ */ K("span", {
938
+ children: [/* @__PURE__ */ G("span", {
939
939
  className: M(c, Cn.description),
940
940
  children: h
941
- }), /* @__PURE__ */ q("div", {
941
+ }), /* @__PURE__ */ K("div", {
942
942
  className: "flex flex-col",
943
- children: [/* @__PURE__ */ K(wn, {
943
+ children: [/* @__PURE__ */ G(wn, {
944
944
  label: i?.personalCredentialsLabel ?? "Personal credentials",
945
945
  description: i?.personalCredentialsDescription ?? "These credentials apply only to your account.",
946
- icon: /* @__PURE__ */ K(ft, {
947
- size: B.SM,
946
+ icon: /* @__PURE__ */ G(ft, {
947
+ size: R.SM,
948
948
  "aria-hidden": !0,
949
- stroke: V
949
+ stroke: z
950
950
  }),
951
951
  status: m.userStatus,
952
952
  isActive: g,
@@ -965,13 +965,13 @@ var xt = /* @__PURE__ */ function(e) {
965
965
  keyCardTitleClassName: f,
966
966
  keyCardDescriptionClassName: p,
967
967
  deleteActionClassName: s
968
- }), /* @__PURE__ */ K(wn, {
968
+ }), /* @__PURE__ */ G(wn, {
969
969
  label: i?.organizationCredentialsLabel ?? "Organization credentials",
970
970
  description: i?.organizationCredentialsDescription ?? "Once added, these credentials will grant all users in your organization access to this toolset.",
971
- icon: /* @__PURE__ */ K(We, {
972
- size: B.SM,
971
+ icon: /* @__PURE__ */ G(qe, {
972
+ size: R.SM,
973
973
  "aria-hidden": !0,
974
- stroke: V
974
+ stroke: z
975
975
  }),
976
976
  status: m.globalStatus,
977
977
  isActive: _,
@@ -1004,9 +1004,9 @@ var xt = /* @__PURE__ */ function(e) {
1004
1004
  }, On = /* @__PURE__ */ function(e) {
1005
1005
  return e.Idle = "idle", e.Loading = "loading", e.Resolved = "resolved", e.Unknown = "unknown", e;
1006
1006
  }({}), kn = { divider: "_divider_nhloi_1" }, An = 16, jn = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, onLogin: i, onLogout: a, onClose: s, texts: c, deleteActionClassName: l = "text-error" }) => {
1007
- let [u, d] = R(""), [f, p] = R(!1), [m, h] = R(!1), [g, _] = R(!1), v = n === o.SignedIn, y = P((e) => {
1007
+ let [u, d] = L(""), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L(!1), v = n === o.SignedIn, y = N((e) => {
1008
1008
  d(e ?? ""), p(!1);
1009
- }, []), b = P(async () => {
1009
+ }, []), b = N(async () => {
1010
1010
  if (u.trim().length === 0) {
1011
1011
  p(!0);
1012
1012
  return;
@@ -1026,7 +1026,7 @@ var xt = /* @__PURE__ */ function(e) {
1026
1026
  u,
1027
1027
  i,
1028
1028
  s
1029
- ]), x = P(async () => {
1029
+ ]), x = N(async () => {
1030
1030
  _(!0);
1031
1031
  try {
1032
1032
  await a?.(e, { level: t }), s();
@@ -1039,22 +1039,22 @@ var xt = /* @__PURE__ */ function(e) {
1039
1039
  a,
1040
1040
  s
1041
1041
  ]), S = c?.personalApiKeyPanelTitle ?? "Personal API key", C = c?.addApiKeyActionLabel ?? "Add", w = c?.deleteActionLabel ?? "Delete", T = c?.addingApiKeyStatusLabel ?? "Adding", E = c?.deletingStatusLabel ?? "Deleting", D = c?.apiKeyRequiredErrorMessage ?? "API key is required.", O = c?.personalApiKeyAddedMessage ?? "Personal key has been added", ee = r == null ? void 0 : (c?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(r);
1042
- return /* @__PURE__ */ q("div", {
1042
+ return /* @__PURE__ */ K("div", {
1043
1043
  className: "flex w-[418px] flex-col",
1044
1044
  children: [
1045
- /* @__PURE__ */ K("div", {
1045
+ /* @__PURE__ */ G("div", {
1046
1046
  className: "flex items-center gap-2 px-4 py-3",
1047
- children: /* @__PURE__ */ K("span", {
1047
+ children: /* @__PURE__ */ G("span", {
1048
1048
  className: "dial-small-semi-text",
1049
1049
  children: S
1050
1050
  })
1051
1051
  }),
1052
- /* @__PURE__ */ K("div", { className: M("mx-4 h-px", kn.divider) }),
1053
- !v && /* @__PURE__ */ q("div", {
1052
+ /* @__PURE__ */ G("div", { className: M("mx-4 h-px", kn.divider) }),
1053
+ !v && /* @__PURE__ */ K("div", {
1054
1054
  className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
1055
- children: [/* @__PURE__ */ q("div", {
1055
+ children: [/* @__PURE__ */ K("div", {
1056
1056
  className: "flex items-end gap-2",
1057
- children: [/* @__PURE__ */ K(Te, {
1057
+ children: [/* @__PURE__ */ G(De, {
1058
1058
  id: `catalog-item-${e.id}-${t}-api-key`,
1059
1059
  type: "password",
1060
1060
  autoComplete: "current-password",
@@ -1064,35 +1064,35 @@ var xt = /* @__PURE__ */ function(e) {
1064
1064
  invalid: f,
1065
1065
  disabled: m,
1066
1066
  containerClassName: "min-w-0 flex-1"
1067
- }), /* @__PURE__ */ K(U, {
1067
+ }), /* @__PURE__ */ G(je, {
1068
1068
  label: m ? void 0 : C,
1069
1069
  "aria-label": m ? T : void 0,
1070
- iconBefore: m ? /* @__PURE__ */ K(Le, {
1070
+ iconBefore: m ? /* @__PURE__ */ G(Be, {
1071
1071
  size: An,
1072
1072
  ariaLabel: T
1073
1073
  }) : void 0,
1074
1074
  onClick: b,
1075
1075
  disabled: m
1076
1076
  })]
1077
- }), f && /* @__PURE__ */ K("span", {
1077
+ }), f && /* @__PURE__ */ G("span", {
1078
1078
  className: "dial-caption-text text-error",
1079
1079
  children: D
1080
1080
  })]
1081
1081
  }),
1082
- v && /* @__PURE__ */ K("div", {
1082
+ v && /* @__PURE__ */ G("div", {
1083
1083
  className: "animate-fadeIn px-4 py-3.5",
1084
- children: /* @__PURE__ */ K(gn, {
1085
- icon: /* @__PURE__ */ K(et, {
1084
+ children: /* @__PURE__ */ G(gn, {
1085
+ icon: /* @__PURE__ */ G(nt, {
1086
1086
  size: 20,
1087
1087
  "aria-hidden": !0,
1088
- stroke: V
1088
+ stroke: z
1089
1089
  }),
1090
1090
  title: O,
1091
1091
  description: ee,
1092
- action: /* @__PURE__ */ K(Ee, {
1092
+ action: /* @__PURE__ */ G(Oe, {
1093
1093
  label: g ? void 0 : w,
1094
1094
  "aria-label": g ? E : void 0,
1095
- iconBefore: g ? /* @__PURE__ */ K(Le, {
1095
+ iconBefore: g ? /* @__PURE__ */ G(Be, {
1096
1096
  size: An,
1097
1097
  ariaLabel: E
1098
1098
  }) : void 0,
@@ -1105,7 +1105,7 @@ var xt = /* @__PURE__ */ function(e) {
1105
1105
  ]
1106
1106
  });
1107
1107
  }, Mn = { name: "_name_gfs1p_1" }, Nn = (e) => e.isMyApp === !0, Pn = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
1108
- let [a, o] = R(!1), s = P(() => {
1108
+ let [a, o] = L(!1), s = N(() => {
1109
1109
  if (n) {
1110
1110
  o((e) => !e);
1111
1111
  return;
@@ -1117,21 +1117,21 @@ var xt = /* @__PURE__ */ function(e) {
1117
1117
  n
1118
1118
  ]);
1119
1119
  if (!Nn(e) || r && !r(e)) return null;
1120
- let c = /* @__PURE__ */ K(U, {
1120
+ let c = /* @__PURE__ */ G(je, {
1121
1121
  label: i,
1122
- iconBefore: /* @__PURE__ */ K(ct, {
1123
- size: B.MD,
1124
- stroke: V
1122
+ iconBefore: /* @__PURE__ */ G(ut, {
1123
+ size: R.MD,
1124
+ stroke: z
1125
1125
  }),
1126
- iconAfter: /* @__PURE__ */ K(Ke, {
1127
- size: B.MD,
1128
- stroke: V
1126
+ iconAfter: /* @__PURE__ */ G(Ye, {
1127
+ size: R.MD,
1128
+ stroke: z
1129
1129
  }),
1130
1130
  onClick: s,
1131
1131
  "aria-haspopup": n ? "menu" : void 0,
1132
1132
  "aria-expanded": n ? a : void 0
1133
1133
  });
1134
- return n ? /* @__PURE__ */ K(ge, {
1134
+ return n ? /* @__PURE__ */ G(ve, {
1135
1135
  placement: "bottom-end",
1136
1136
  matchReferenceWidth: !1,
1137
1137
  open: a,
@@ -1144,46 +1144,46 @@ var xt = /* @__PURE__ */ function(e) {
1144
1144
  }, Fn = (e) => e === y.ApiKey ? "Manage API keys" : "Manage credentials", In = {
1145
1145
  [St.LimitReached]: "bg-error text-error",
1146
1146
  [St.RunningLow]: "bg-warning text-warning"
1147
- }, Ln = ({ status: e, label: t }) => /* @__PURE__ */ K("div", {
1147
+ }, Ln = ({ status: e, label: t }) => /* @__PURE__ */ G("div", {
1148
1148
  className: M("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", In[e]),
1149
1149
  children: t
1150
- }), Rn = ({ item: e, onUseInChat: t, isPrimaryActionVisible: r, onShare: i, shareOverlay: a, isShareVisible: o, isSharePrimary: s, onEdit: l, onDownload: u, isDownloadVisible: d, isDownloadPrimary: f, onDelete: p, onUnshare: m, isUnshareVisible: h, onRevokeShare: g, onFetchRecipientsCount: _, isRevokeShareVisible: v, onLogin: S, onLogout: C, onOpenCredentialsManagement: w, onRequestLogout: T, texts: D, detailsStyles: O, isPublishVisible: ee, isPublishPrimary: k, onOpenPublish: A, isUnpublishVisible: te, hasPublishedFolders: ne = !1, isPublishHistoryResolved: re = !0, onRequestPublishHistory: j, onOpenUnpublish: ie, isReadonly: N = !1 }) => {
1151
- let { nameClassName: ae = "dial-body-semi-text", folderLabelClassName: oe = "dial-tiny-text", folderLeafClassName: se = "dial-tiny-semi-text" } = O?.typography ?? {}, z = e.details?.limits?.status, ce = z == null ? void 0 : /* @__PURE__ */ K(Ln, {
1152
- status: z,
1153
- label: z === St.LimitReached ? D?.limitReachedLabel ?? "Limit reached" : D?.limitRunningLowLabel ?? "Running low"
1154
- }), le = P(() => {
1150
+ }), Rn = ({ item: e, onUseInChat: t, isPrimaryActionVisible: r, onShare: i, shareOverlay: a, isShareVisible: o, isSharePrimary: s, onEdit: l, onDownload: u, isDownloadVisible: d, isDownloadPrimary: f, onDelete: p, onUnshare: m, isUnshareVisible: h, onRevokeShare: g, onFetchRecipientsCount: _, isRevokeShareVisible: v, onLogin: S, onLogout: C, onOpenCredentialsManagement: w, onRequestLogout: T, texts: D, detailsStyles: O, isPublishVisible: ee, isPublishPrimary: k, onOpenPublish: A, isUnpublishVisible: te, hasPublishedFolders: ne = !1, isPublishHistoryResolved: re = !0, onRequestPublishHistory: j, onOpenUnpublish: ie, isReadonly: ae = !1 }) => {
1151
+ let { nameClassName: oe = "dial-body-semi-text", folderLabelClassName: se = "dial-tiny-text", folderLeafClassName: ce = "dial-tiny-semi-text" } = O?.typography ?? {}, le = e.details?.limits?.status, ue = le == null ? void 0 : /* @__PURE__ */ G(Ln, {
1152
+ status: le,
1153
+ label: le === St.LimitReached ? D?.limitReachedLabel ?? "Limit reached" : D?.limitRunningLowLabel ?? "Running low"
1154
+ }), de = N(() => {
1155
1155
  t?.(e);
1156
- }, [e, t]), ue = P(() => {
1156
+ }, [e, t]), fe = N(() => {
1157
1157
  l?.(e);
1158
- }, [e, l]), de = P(() => {
1158
+ }, [e, l]), pe = N(() => {
1159
1159
  A?.();
1160
- }, [A]), fe = P(() => {
1160
+ }, [A]), me = N(() => {
1161
1161
  ie?.();
1162
- }, [ie]), pe = P(() => {
1162
+ }, [ie]), he = N(() => {
1163
1163
  u?.(e);
1164
- }, [e, u]), [me, _e] = R(!1);
1165
- F(() => {
1166
- _e(!1);
1164
+ }, [e, u]), [ge, ye] = L(!1);
1165
+ P(() => {
1166
+ ye(!1);
1167
1167
  }, [e.id]);
1168
- let ve = P(() => {
1169
- me || (_e(!0), (async () => {
1168
+ let be = N(() => {
1169
+ ge || (ye(!0), (async () => {
1170
1170
  try {
1171
1171
  await u?.(e);
1172
1172
  } catch {} finally {
1173
- _e(!1);
1173
+ ye(!1);
1174
1174
  }
1175
1175
  })());
1176
1176
  }, [
1177
1177
  e,
1178
1178
  u,
1179
- me
1180
- ]), [ye, xe] = R(!1);
1181
- F(() => {
1182
- xe(!1);
1179
+ ge
1180
+ ]), [xe, Ce] = L(!1);
1181
+ P(() => {
1182
+ Ce(!1);
1183
1183
  }, [e.id]);
1184
- let H = P(() => {
1184
+ let B = N(() => {
1185
1185
  if (a) {
1186
- xe(!0);
1186
+ Ce(!0);
1187
1187
  return;
1188
1188
  }
1189
1189
  i?.(e);
@@ -1191,29 +1191,29 @@ var xt = /* @__PURE__ */ function(e) {
1191
1191
  e,
1192
1192
  i,
1193
1193
  a
1194
- ]), Se = P(() => {
1195
- xe(!1);
1196
- }, []), Ce = P(() => {
1194
+ ]), we = N(() => {
1195
+ Ce(!1);
1196
+ }, []), Te = N(() => {
1197
1197
  m?.(e);
1198
- }, [e, m]), we = P(() => {
1198
+ }, [e, m]), Ee = N(() => {
1199
1199
  p?.(e);
1200
- }, [e, p]), Te = P(() => {
1200
+ }, [e, p]), De = N(() => {
1201
1201
  g?.(e);
1202
- }, [e, g]), [Ee, De] = R(On.Idle), [Oe, Ae] = R(void 0), je = L(null);
1203
- F(() => {
1204
- je.current = null, De(On.Idle), Ae(void 0);
1202
+ }, [e, g]), [Oe, ke] = L(On.Idle), [Ae, Ne] = L(void 0), Pe = I(null);
1203
+ P(() => {
1204
+ Pe.current = null, ke(On.Idle), Ne(void 0);
1205
1205
  }, [e.id]);
1206
- let Me = P(() => {
1207
- if (!_ || je.current === e.id || !g || e.isMyApp !== !0 || v?.(e) === !1) return;
1206
+ let Fe = N(() => {
1207
+ if (!_ || Pe.current === e.id || !g || e.isMyApp !== !0 || v?.(e) === !1) return;
1208
1208
  let t = e.id;
1209
- je.current = t, De(On.Loading), (async () => {
1209
+ Pe.current = t, ke(On.Loading), (async () => {
1210
1210
  try {
1211
1211
  let n = await _(e);
1212
- if (je.current !== t) return;
1213
- Ae(n), De(n == null ? On.Unknown : On.Resolved);
1212
+ if (Pe.current !== t) return;
1213
+ Ne(n), ke(n == null ? On.Unknown : On.Resolved);
1214
1214
  } catch {
1215
- if (je.current !== t) return;
1216
- Ae(void 0), De(On.Unknown);
1215
+ if (Pe.current !== t) return;
1216
+ Ne(void 0), ke(On.Unknown);
1217
1217
  }
1218
1218
  })();
1219
1219
  }, [
@@ -1221,104 +1221,104 @@ var xt = /* @__PURE__ */ function(e) {
1221
1221
  _,
1222
1222
  g,
1223
1223
  v
1224
- ]), [Ne, Pe] = R(!1);
1225
- F(() => {
1226
- Pe(!1);
1224
+ ]), [Ie, Le] = L(!1);
1225
+ P(() => {
1226
+ Le(!1);
1227
1227
  }, [e.id]);
1228
- let Fe = P((e) => {
1229
- Pe(e), e && (Me(), j?.());
1230
- }, [Me, j]), Ie = P(() => {
1231
- Me(), j?.();
1232
- }, [Me, j]), Re = P(() => {
1228
+ let Re = N((e) => {
1229
+ Le(e), e && (Fe(), j?.());
1230
+ }, [Fe, j]), ze = N(() => {
1231
+ Fe(), j?.();
1232
+ }, [Fe, j]), Ve = N(() => {
1233
1233
  j?.();
1234
- }, [j]), ze = D?.hasPrimaryAction !== !1 && (r?.(e) ?? (e.type === x.Model || e.type === x.Agent || e.type === x.Prompt)), Be = !N && !!ie && ne && (te?.(e) ?? !0), Ve = !N && !!ie && !re && te?.(e) === !0, He = !N && !Be && (ee?.(e) ?? (e.type === x.Model || e.type === x.Toolset || e.type === x.Agent)), We = !N && !!l && !!e.isEditable, Ge = !N && e.isMyApp === !0 && (o?.(e) ?? !0), qe = s?.(e) ?? !0, Je = k?.(e) ?? !1, Ye = e.credentials?.authenticationType ?? y.None, Qe = e.credentials != null && Ye !== y.None ? c(e.credentials) : void 0, $e = !N && Qe != null && (!!S || !!C), tt = e.type === x.Toolset && $e, nt = !!u && (d?.(e) ?? !0), st = nt && !tt && (f?.(e) ?? (e.type === x.Skill && !ze)), lt = nt && !st, ut = !N && e.isMyApp, ft = !N && !!m && e.isMyApp !== !0 && e.sharedWithMe === !0 && (h?.(e) ?? !0), gt = !N && !!g && e.isMyApp === !0 && (!_ || Ee === On.Unknown || Ee === On.Resolved && (Oe ?? 0) > 0) && (v?.(e) ?? !0), _t = I(() => {
1234
+ }, [j]), He = D?.hasPrimaryAction !== !1 && (r?.(e) ?? (e.type === x.Model || e.type === x.Agent || e.type === x.Prompt)), Ue = !ae && !!ie && ne && (te?.(e) ?? !0), We = !ae && !!ie && !re && te?.(e) === !0, Ge = !ae && !Ue && (ee?.(e) ?? (e.type === x.Model || e.type === x.Toolset || e.type === x.Agent)), qe = !ae && !!l && !!e.isEditable, Je = !ae && e.isMyApp === !0 && (o?.(e) ?? !0), Xe = s?.(e) ?? !0, Ze = k?.(e) ?? !1, Qe = e.credentials?.authenticationType ?? y.None, H = e.credentials != null && Qe !== y.None ? c(e.credentials) : void 0, tt = !ae && H != null && (!!S || !!C), rt = e.type === x.Toolset && tt, it = !!u && (d?.(e) ?? !0), lt = it && !rt && (f?.(e) ?? (e.type === x.Skill && !He)), U = it && !lt, dt = !ae && e.isMyApp, ft = !ae && !!m && e.isMyApp !== !0 && e.sharedWithMe === !0 && (h?.(e) ?? !0), _t = !ae && !!g && e.isMyApp === !0 && (!_ || Oe === On.Unknown || Oe === On.Resolved && (Ae ?? 0) > 0) && (v?.(e) ?? !0), vt = F(() => {
1235
1235
  let e = [];
1236
- if (!qe && Ge && e.push({
1236
+ if (!Xe && Je && e.push({
1237
1237
  key: "share",
1238
1238
  label: D?.shareLabel ?? "Share",
1239
- Icon: ct,
1239
+ Icon: ut,
1240
1240
  iconClassName: "text-secondary",
1241
- onClick: H
1242
- }), We && e.push({
1241
+ onClick: B
1242
+ }), qe && e.push({
1243
1243
  key: "edit",
1244
1244
  label: D?.editActionLabel ?? "Edit",
1245
- Icon: at,
1245
+ Icon: st,
1246
1246
  iconClassName: "text-secondary",
1247
- onClick: ue
1248
- }), lt && e.push({
1247
+ onClick: fe
1248
+ }), U && e.push({
1249
1249
  key: "download",
1250
1250
  label: D?.downloadActionLabel ?? "Download",
1251
- Icon: Ze,
1251
+ Icon: et,
1252
1252
  iconClassName: "text-secondary",
1253
- onClick: pe
1254
- }), !Je && He && e.push({
1253
+ onClick: he
1254
+ }), !Ze && Ge && e.push({
1255
1255
  key: "publish",
1256
1256
  label: D?.publishLabel ?? "Publish",
1257
- Icon: G,
1257
+ Icon: ht,
1258
1258
  iconClassName: "text-secondary",
1259
- onClick: de
1260
- }), !Je && Be && e.push({
1259
+ onClick: pe
1260
+ }), !Ze && Ue && e.push({
1261
1261
  key: "unpublish",
1262
1262
  label: D?.unpublishLabel ?? "Unpublish",
1263
1263
  Icon: mt,
1264
1264
  iconClassName: "text-secondary",
1265
- onClick: fe
1266
- }), gt) {
1265
+ onClick: me
1266
+ }), _t) {
1267
1267
  let t = D?.revokeShareLabel ?? "Revoke access", n = D?.revokeShareLabelWithCount ?? ((e) => `${t} (${e})`);
1268
1268
  e.push({
1269
1269
  key: "revoke-share",
1270
- label: Oe == null ? t : n(Oe),
1270
+ label: Ae == null ? t : n(Ae),
1271
1271
  Icon: pt,
1272
1272
  danger: !0,
1273
- onClick: Te
1273
+ onClick: De
1274
1274
  });
1275
1275
  }
1276
1276
  return ft && e.push({
1277
1277
  key: "unshare",
1278
1278
  label: D?.unshareLabel ?? "Remove from My List",
1279
- Icon: dt,
1280
- onClick: Ce
1281
- }), ut && e.push({
1279
+ Icon: W,
1280
+ onClick: Te
1281
+ }), dt && e.push({
1282
1282
  key: "delete",
1283
1283
  label: D?.deleteActionLabel ?? "Delete",
1284
- Icon: dt,
1284
+ Icon: W,
1285
1285
  danger: !0,
1286
- onClick: we
1286
+ onClick: Ee
1287
1287
  }), e;
1288
1288
  }, [
1289
+ Xe,
1290
+ Je,
1289
1291
  qe,
1292
+ U,
1293
+ Ze,
1290
1294
  Ge,
1291
- We,
1292
- lt,
1293
- Je,
1294
- He,
1295
- Be,
1296
- ut,
1297
- gt,
1298
- Oe,
1295
+ Ue,
1296
+ dt,
1297
+ _t,
1298
+ Ae,
1299
1299
  ft,
1300
1300
  D,
1301
- H,
1302
- ue,
1303
- pe,
1304
- de,
1301
+ B,
1305
1302
  fe,
1306
- we,
1307
- Te,
1308
- Ce
1309
- ]), vt = I(() => _t.map(({ key: e, label: t, Icon: n, iconClassName: r, danger: i, onClick: a }) => ({
1303
+ he,
1304
+ pe,
1305
+ me,
1306
+ Ee,
1307
+ De,
1308
+ Te
1309
+ ]), yt = F(() => vt.map(({ key: e, label: t, Icon: n, iconClassName: r, danger: i, onClick: a }) => ({
1310
1310
  key: e,
1311
1311
  label: t,
1312
- icon: /* @__PURE__ */ K(n, {
1313
- size: B.SM,
1312
+ icon: /* @__PURE__ */ G(n, {
1313
+ size: R.SM,
1314
1314
  "aria-hidden": !0,
1315
1315
  className: r,
1316
- stroke: V
1316
+ stroke: z
1317
1317
  }),
1318
1318
  danger: i,
1319
1319
  onClick: a
1320
- })), [_t]), yt = te?.(e), bt = !N && !!ie && (yt == null || yt && !re), xt = !N && !!g && !!_ && e.isMyApp === !0 && (v?.(e) ?? !0), J = _t.length === 1 && !Ne && !bt && !xt ? _t[0] : void 0, [Y, Ct] = R(!1), X = Ye === y.ApiKey && Qe !== n.ManageCredentials, wt = Ye === y.ApiKey && Qe === n.LogOut, Z = Ye !== y.ApiKey && Qe !== n.ManageCredentials && Qe === n.LogOut, Q = P(() => {
1321
- if (Qe === n.ManageCredentials) {
1320
+ })), [vt]), bt = te?.(e), xt = !ae && !!ie && (bt == null || bt && !re), q = !ae && !!g && !!_ && e.isMyApp === !0 && (v?.(e) ?? !0), J = vt.length === 1 && !Ie && !xt && !q ? vt[0] : void 0, [Y, Ct] = L(!1), X = Qe === y.ApiKey && H !== n.ManageCredentials, wt = Qe === y.ApiKey && H === n.LogOut, Z = Qe !== y.ApiKey && H !== n.ManageCredentials && H === n.LogOut, Q = N(() => {
1321
+ if (H === n.ManageCredentials) {
1322
1322
  w?.();
1323
1323
  return;
1324
1324
  }
@@ -1326,36 +1326,36 @@ var xt = /* @__PURE__ */ function(e) {
1326
1326
  Ct((e) => !e);
1327
1327
  return;
1328
1328
  }
1329
- if (Qe === n.LogOut) {
1329
+ if (H === n.LogOut) {
1330
1330
  T?.();
1331
1331
  return;
1332
1332
  }
1333
1333
  S?.(e, { level: b.User });
1334
1334
  }, [
1335
- Qe,
1335
+ H,
1336
1336
  X,
1337
1337
  e,
1338
1338
  S,
1339
1339
  w,
1340
1340
  T
1341
- ]), Tt = Qe === n.ManageCredentials ? (D?.manageCredentialsActionLabel ?? Fn)(Ye) : Ye === y.ApiKey ? Qe === n.LogOut ? D?.changeApiKeyActionLabel ?? "Change API key" : D?.apiKeyActionLabel ?? "API key" : Qe === n.LogOut ? D?.logoutActionLabel ?? "Log out" : D?.loginActionLabel ?? "Log in", Et = Qe === n.ManageCredentials || Ye === y.ApiKey ? /* @__PURE__ */ K(et, {
1342
- size: B.MD,
1343
- stroke: V
1344
- }) : Qe === n.LogOut ? /* @__PURE__ */ K(it, {
1345
- size: B.MD,
1346
- stroke: V
1347
- }) : /* @__PURE__ */ K(rt, {
1348
- size: B.MD,
1349
- stroke: V
1350
- }), Dt = Qe === n.ManageCredentials ? /* @__PURE__ */ K(Ue, {
1351
- size: B.MD,
1341
+ ]), Tt = H === n.ManageCredentials ? (D?.manageCredentialsActionLabel ?? Fn)(Qe) : Qe === y.ApiKey ? H === n.LogOut ? D?.changeApiKeyActionLabel ?? "Change API key" : D?.apiKeyActionLabel ?? "API key" : H === n.LogOut ? D?.logoutActionLabel ?? "Log out" : D?.loginActionLabel ?? "Log in", Et = H === n.ManageCredentials || Qe === y.ApiKey ? /* @__PURE__ */ G(nt, {
1342
+ size: R.MD,
1343
+ stroke: z
1344
+ }) : H === n.LogOut ? /* @__PURE__ */ G(ot, {
1345
+ size: R.MD,
1346
+ stroke: z
1347
+ }) : /* @__PURE__ */ G(at, {
1348
+ size: R.MD,
1349
+ stroke: z
1350
+ }), Dt = H === n.ManageCredentials ? /* @__PURE__ */ G(Ke, {
1351
+ size: R.MD,
1352
1352
  className: "rtl:scale-x-[-1]",
1353
- stroke: V
1354
- }) : X ? /* @__PURE__ */ K(Ke, {
1355
- size: B.MD,
1356
- stroke: V
1353
+ stroke: z
1354
+ }) : X ? /* @__PURE__ */ G(Ye, {
1355
+ size: R.MD,
1356
+ stroke: z
1357
1357
  }) : void 0, Ot = (t) => {
1358
- let n = /* @__PURE__ */ K(t, {
1358
+ let n = /* @__PURE__ */ G(t, {
1359
1359
  label: Tt,
1360
1360
  iconBefore: Et,
1361
1361
  iconAfter: Dt,
@@ -1363,14 +1363,14 @@ var xt = /* @__PURE__ */ function(e) {
1363
1363
  "aria-haspopup": X ? "dialog" : void 0,
1364
1364
  "aria-expanded": X ? Y : void 0
1365
1365
  });
1366
- return !X || e.credentials == null ? n : /* @__PURE__ */ K(ge, {
1366
+ return !X || e.credentials == null ? n : /* @__PURE__ */ G(ve, {
1367
1367
  placement: "bottom-start",
1368
1368
  matchReferenceWidth: !1,
1369
1369
  open: Y,
1370
1370
  onOpenChange: Ct,
1371
1371
  trigger: [],
1372
1372
  outsideClosable: !0,
1373
- renderOverlay: () => /* @__PURE__ */ K(jn, {
1373
+ renderOverlay: () => /* @__PURE__ */ G(jn, {
1374
1374
  item: e,
1375
1375
  level: b.User,
1376
1376
  status: e.credentials?.userStatus,
@@ -1382,131 +1382,131 @@ var xt = /* @__PURE__ */ function(e) {
1382
1382
  }),
1383
1383
  children: n
1384
1384
  });
1385
- }, kt = ({ key: t, label: n, Icon: r, danger: s, onClick: c }) => t === "share" ? /* @__PURE__ */ K(Pn, {
1385
+ }, kt = ({ key: t, label: n, Icon: r, danger: s, onClick: c }) => t === "share" ? /* @__PURE__ */ G(Pn, {
1386
1386
  item: e,
1387
1387
  onShare: i,
1388
1388
  shareOverlay: a,
1389
1389
  isShareVisible: o,
1390
1390
  label: D?.shareLabel
1391
- }) : /* @__PURE__ */ K(s ? he : U, {
1391
+ }) : /* @__PURE__ */ G(s ? _e : je, {
1392
1392
  label: n,
1393
- iconBefore: /* @__PURE__ */ K(r, {
1394
- size: B.MD,
1393
+ iconBefore: /* @__PURE__ */ G(r, {
1394
+ size: R.MD,
1395
1395
  "aria-hidden": !0,
1396
- stroke: V
1396
+ stroke: z
1397
1397
  }),
1398
1398
  onClick: c
1399
1399
  }), At = () => {
1400
- let t = /* @__PURE__ */ K(ge, {
1401
- items: vt,
1400
+ let t = /* @__PURE__ */ G(ve, {
1401
+ items: yt,
1402
1402
  placement: "bottom-end",
1403
1403
  matchReferenceWidth: !1,
1404
- onOpenChange: Fe,
1405
- children: /* @__PURE__ */ K(W, {
1406
- icon: /* @__PURE__ */ K(Xe, {
1407
- size: B.LG,
1404
+ onOpenChange: Re,
1405
+ children: /* @__PURE__ */ G(V, {
1406
+ icon: /* @__PURE__ */ G($e, {
1407
+ size: R.LG,
1408
1408
  "aria-hidden": !0,
1409
- stroke: V
1409
+ stroke: z
1410
1410
  }),
1411
1411
  "aria-label": D?.manageActionLabel ?? "Manage",
1412
1412
  "aria-haspopup": "menu",
1413
- onMouseEnter: Ie,
1414
- onFocus: Ie
1413
+ onMouseEnter: ze,
1414
+ onFocus: ze
1415
1415
  })
1416
1416
  });
1417
- return qe || !a || !Ge ? t : /* @__PURE__ */ K(ge, {
1417
+ return Xe || !a || !Je ? t : /* @__PURE__ */ G(ve, {
1418
1418
  placement: "bottom-end",
1419
1419
  matchReferenceWidth: !1,
1420
- open: ye,
1421
- onOpenChange: xe,
1420
+ open: xe,
1421
+ onOpenChange: Ce,
1422
1422
  trigger: [],
1423
1423
  outsideClosable: !0,
1424
- renderOverlay: () => a(e, Se),
1424
+ renderOverlay: () => a(e, we),
1425
1425
  children: t
1426
1426
  });
1427
- }, jt = tt || ze || st || qe && Ge || Je && Be || Je && He || $e && !tt || vt.length > 0 || Ve;
1428
- return /* @__PURE__ */ q("div", {
1427
+ }, jt = rt || He || lt || Xe && Je || Ze && Ue || Ze && Ge || tt && !rt || yt.length > 0 || We;
1428
+ return /* @__PURE__ */ K("div", {
1429
1429
  className: "flex flex-col gap-3 px-6 py-4",
1430
- children: [/* @__PURE__ */ K(E, {
1430
+ children: [/* @__PURE__ */ G(E, {
1431
1431
  item: e,
1432
1432
  iconSize: 52,
1433
- nameClassName: M(ae, Mn.name),
1433
+ nameClassName: M(oe, Mn.name),
1434
1434
  featuredLabel: D?.featuredLabel ?? "Featured",
1435
1435
  featuredChipStyle: O?.colors?.featuredChipStyle,
1436
- statusBadge: ce,
1437
- footer: e.folder.length > 0 ? /* @__PURE__ */ K(be, {
1436
+ statusBadge: ue,
1437
+ footer: e.folder.length > 0 ? /* @__PURE__ */ G(Se, {
1438
1438
  segments: e.folder,
1439
- labelClassName: oe,
1440
- leafClassName: se
1439
+ labelClassName: se,
1440
+ leafClassName: ce
1441
1441
  }) : void 0
1442
- }), jt && /* @__PURE__ */ q("div", {
1442
+ }), jt && /* @__PURE__ */ K("div", {
1443
1443
  className: "flex flex-wrap items-center gap-2 ps-[60px]",
1444
1444
  children: [
1445
- tt && Ot(wt || Z ? U : ke),
1446
- ze && /* @__PURE__ */ K(ke, {
1445
+ rt && Ot(wt || Z ? je : Me),
1446
+ He && /* @__PURE__ */ G(Me, {
1447
1447
  label: D?.primaryActionLabel ?? "Use in chat",
1448
- iconBefore: /* @__PURE__ */ K(ot, { size: B.MD }),
1449
- onClick: le,
1450
- disabled: z === St.LimitReached
1448
+ iconBefore: /* @__PURE__ */ G(ct, { size: R.MD }),
1449
+ onClick: de,
1450
+ disabled: le === St.LimitReached
1451
1451
  }),
1452
- st && /* @__PURE__ */ q(ht, { children: [/* @__PURE__ */ K(ke, {
1452
+ lt && /* @__PURE__ */ K(gt, { children: [/* @__PURE__ */ G(Me, {
1453
1453
  label: D?.downloadActionLabel ?? "Download",
1454
- iconBefore: me ? /* @__PURE__ */ K(Le, {
1455
- size: B.MD,
1454
+ iconBefore: ge ? /* @__PURE__ */ G(Be, {
1455
+ size: R.MD,
1456
1456
  "aria-hidden": !0
1457
- }) : /* @__PURE__ */ K(Ze, {
1458
- size: B.MD,
1457
+ }) : /* @__PURE__ */ G(et, {
1458
+ size: R.MD,
1459
1459
  "aria-hidden": !0,
1460
- stroke: V
1460
+ stroke: z
1461
1461
  }),
1462
- onClick: ve,
1463
- disabled: me,
1464
- "aria-busy": me
1465
- }), me && /* @__PURE__ */ K("span", {
1462
+ onClick: be,
1463
+ disabled: ge,
1464
+ "aria-busy": ge
1465
+ }), ge && /* @__PURE__ */ G("span", {
1466
1466
  role: "status",
1467
1467
  "aria-live": "polite",
1468
1468
  className: "sr-only",
1469
1469
  children: D?.downloadingStatusLabel ?? "Downloading"
1470
1470
  })] }),
1471
- qe && Ge && /* @__PURE__ */ K(Pn, {
1471
+ Xe && Je && /* @__PURE__ */ G(Pn, {
1472
1472
  item: e,
1473
1473
  onShare: i,
1474
1474
  shareOverlay: a,
1475
1475
  isShareVisible: o,
1476
1476
  label: D?.shareLabel
1477
1477
  }),
1478
- Je && Be && /* @__PURE__ */ K(U, {
1478
+ Ze && Ue && /* @__PURE__ */ G(je, {
1479
1479
  label: D?.unpublishLabel ?? "Unpublish",
1480
- iconBefore: /* @__PURE__ */ K(mt, {
1481
- size: B.MD,
1480
+ iconBefore: /* @__PURE__ */ G(mt, {
1481
+ size: R.MD,
1482
1482
  "aria-hidden": !0,
1483
- stroke: V
1483
+ stroke: z
1484
1484
  }),
1485
- onClick: fe,
1486
- onMouseEnter: Re,
1487
- onFocus: Re
1485
+ onClick: me,
1486
+ onMouseEnter: Ve,
1487
+ onFocus: Ve
1488
1488
  }),
1489
- Je && He && /* @__PURE__ */ K(U, {
1489
+ Ze && Ge && /* @__PURE__ */ G(je, {
1490
1490
  label: D?.publishLabel ?? "Publish",
1491
- iconBefore: /* @__PURE__ */ K(G, {
1492
- size: B.MD,
1491
+ iconBefore: /* @__PURE__ */ G(ht, {
1492
+ size: R.MD,
1493
1493
  "aria-hidden": !0,
1494
- stroke: V
1494
+ stroke: z
1495
1495
  }),
1496
- onClick: de,
1497
- onMouseEnter: Re,
1498
- onFocus: Re
1496
+ onClick: pe,
1497
+ onMouseEnter: Ve,
1498
+ onFocus: Ve
1499
1499
  }),
1500
- $e && !tt && Ot(U),
1501
- J ? kt(J) : (vt.length > 0 || Ve) && At()
1500
+ tt && !rt && Ot(je),
1501
+ J ? kt(J) : (yt.length > 0 || We) && At()
1502
1502
  ]
1503
1503
  })]
1504
1504
  });
1505
1505
  }, zn = ({ topics: e, content: t, detailsStyles: n }) => {
1506
1506
  let r = n?.typography?.contentHeadingClassName ?? "dial-small-semi-text", i = n?.typography?.contentClassName ?? "dial-small-text";
1507
- return /* @__PURE__ */ q("div", {
1507
+ return /* @__PURE__ */ K("div", {
1508
1508
  className: "flex flex-col gap-5",
1509
- children: [/* @__PURE__ */ K(A, {
1509
+ children: [/* @__PURE__ */ G(A, {
1510
1510
  content: t,
1511
1511
  classNames: {
1512
1512
  h1: r,
@@ -1519,9 +1519,9 @@ var xt = /* @__PURE__ */ function(e) {
1519
1519
  ul: i,
1520
1520
  ol: i
1521
1521
  }
1522
- }), e && e.length > 0 && /* @__PURE__ */ K("div", {
1522
+ }), e && e.length > 0 && /* @__PURE__ */ G("div", {
1523
1523
  className: "flex flex-wrap gap-2",
1524
- children: e.map((e) => /* @__PURE__ */ K(Gt, { label: e }, e))
1524
+ children: e.map((e) => /* @__PURE__ */ G(Gt, { label: e }, e))
1525
1525
  })]
1526
1526
  });
1527
1527
  }, Bn = {
@@ -1535,8 +1535,8 @@ var xt = /* @__PURE__ */ function(e) {
1535
1535
  };
1536
1536
  return e.type === Z.File || !t.has(e.id) ? [r] : [r, ...Vn(e.items, t, e.id)];
1537
1537
  }), Hn = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
1538
- let c = I(() => Vn(e, n), [e, n]), l = L({}), [u, d] = R(() => t ?? c[0]?.node.id);
1539
- F(() => {
1538
+ let c = F(() => Vn(e, n), [e, n]), l = I({}), [u, d] = L(() => t ?? c[0]?.node.id);
1539
+ P(() => {
1540
1540
  u != null && l.current[u]?.focus();
1541
1541
  }, []);
1542
1542
  let f = (e) => {
@@ -1577,7 +1577,7 @@ var xt = /* @__PURE__ */ function(e) {
1577
1577
  let a = e.id === u;
1578
1578
  if (e.type === Z.File) {
1579
1579
  let n = e.id === t;
1580
- return /* @__PURE__ */ K("div", {
1580
+ return /* @__PURE__ */ G("div", {
1581
1581
  ref: (t) => {
1582
1582
  l.current[e.id] = t;
1583
1583
  },
@@ -1587,14 +1587,14 @@ var xt = /* @__PURE__ */ function(e) {
1587
1587
  className: M(m(a), n && "bg-control-accent-alpha-active"),
1588
1588
  onClick: () => i(e.id),
1589
1589
  onFocus: () => d(e.id),
1590
- children: /* @__PURE__ */ K("span", {
1590
+ children: /* @__PURE__ */ G("span", {
1591
1591
  className: M("min-w-0 flex-1 truncate", s),
1592
1592
  children: e.name
1593
1593
  })
1594
1594
  }, e.id);
1595
1595
  }
1596
1596
  let o = n.has(e.id);
1597
- return /* @__PURE__ */ q("div", { children: [/* @__PURE__ */ q("div", {
1597
+ return /* @__PURE__ */ K("div", { children: [/* @__PURE__ */ K("div", {
1598
1598
  ref: (t) => {
1599
1599
  l.current[e.id] = t;
1600
1600
  },
@@ -1605,30 +1605,30 @@ var xt = /* @__PURE__ */ function(e) {
1605
1605
  onClick: () => r(e.id),
1606
1606
  onFocus: () => d(e.id),
1607
1607
  children: [
1608
- /* @__PURE__ */ K($e, {
1609
- size: B.SM,
1608
+ /* @__PURE__ */ G(tt, {
1609
+ size: R.SM,
1610
1610
  className: "shrink-0",
1611
1611
  "aria-hidden": !0,
1612
- stroke: V
1612
+ stroke: z
1613
1613
  }),
1614
- /* @__PURE__ */ K("span", {
1614
+ /* @__PURE__ */ G("span", {
1615
1615
  className: M("min-w-0 flex-1 truncate", s),
1616
1616
  children: e.name
1617
1617
  }),
1618
- /* @__PURE__ */ K(Ke, {
1619
- size: B.SM,
1618
+ /* @__PURE__ */ G(Ye, {
1619
+ size: R.SM,
1620
1620
  className: M("shrink-0 transition-transform", !o && "-rotate-90 rtl:rotate-90"),
1621
1621
  "aria-hidden": !0,
1622
- stroke: V
1622
+ stroke: z
1623
1623
  })
1624
1624
  ]
1625
- }), o && e.items.length > 0 && /* @__PURE__ */ K("div", {
1625
+ }), o && e.items.length > 0 && /* @__PURE__ */ G("div", {
1626
1626
  role: "group",
1627
1627
  className: "ps-6",
1628
1628
  children: e.items.map((e) => h(e))
1629
1629
  })] }, e.id);
1630
1630
  };
1631
- return /* @__PURE__ */ K("div", {
1631
+ return /* @__PURE__ */ G("div", {
1632
1632
  role: "tree",
1633
1633
  "aria-label": o,
1634
1634
  onKeyDown: p,
@@ -1653,58 +1653,58 @@ var xt = /* @__PURE__ */ function(e) {
1653
1653
  type: Q.Markdown,
1654
1654
  text: e
1655
1655
  };
1656
- return /* @__PURE__ */ q("div", {
1656
+ return /* @__PURE__ */ K("div", {
1657
1657
  className: "flex h-full flex-col gap-4 pb-6",
1658
1658
  children: [
1659
- C && /* @__PURE__ */ q("div", {
1659
+ C && /* @__PURE__ */ K("div", {
1660
1660
  className: "flex shrink-0 items-center gap-3",
1661
- children: [/* @__PURE__ */ K(ge, {
1661
+ children: [/* @__PURE__ */ G(ve, {
1662
1662
  open: c,
1663
1663
  onOpenChange: l,
1664
1664
  trigger: [],
1665
1665
  matchReferenceWidth: !1,
1666
1666
  listClassName: "w-[280px] shadow-md",
1667
1667
  placement: "bottom-start",
1668
- renderOverlay: () => g ? g(T) : /* @__PURE__ */ K(Hn, { ...T }),
1669
- children: /* @__PURE__ */ K(we, {
1668
+ renderOverlay: () => g ? g(T) : /* @__PURE__ */ G(Hn, { ...T }),
1669
+ children: /* @__PURE__ */ G(Ee, {
1670
1670
  label: w,
1671
- size: ve.Small,
1671
+ size: be.Small,
1672
1672
  isOpen: c,
1673
1673
  onClick: () => l(!c)
1674
1674
  })
1675
- }), /* @__PURE__ */ K("span", {
1675
+ }), /* @__PURE__ */ G("span", {
1676
1676
  className: M("shrink-0", b, Bn.fileCount),
1677
1677
  children: d($t(S))
1678
1678
  })]
1679
1679
  }),
1680
- x && /* @__PURE__ */ q(ht, { children: [/* @__PURE__ */ K("p", {
1680
+ x && /* @__PURE__ */ K(gt, { children: [/* @__PURE__ */ G("p", {
1681
1681
  className: M("m-0", v),
1682
1682
  children: t
1683
- }), /* @__PURE__ */ K("div", { className: M("shrink-0", Bn.divider) })] }),
1684
- /* @__PURE__ */ q("div", {
1683
+ }), /* @__PURE__ */ G("div", { className: M("shrink-0", Bn.divider) })] }),
1684
+ /* @__PURE__ */ K("div", {
1685
1685
  className: M("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && Bn.body, h == null && v),
1686
- children: [a && /* @__PURE__ */ K("span", {
1686
+ children: [a && /* @__PURE__ */ G("span", {
1687
1687
  role: "status",
1688
1688
  className: "sr-only",
1689
1689
  children: f
1690
1690
  }), (() => {
1691
1691
  if (h != null) return h;
1692
1692
  switch (E.type) {
1693
- case Q.Markdown: return /* @__PURE__ */ K(te, {
1693
+ case Q.Markdown: return /* @__PURE__ */ G(te, {
1694
1694
  content: E.text,
1695
1695
  headingClassName: y
1696
1696
  });
1697
- case Q.Text: return /* @__PURE__ */ K(k, {
1697
+ case Q.Text: return /* @__PURE__ */ G(k, {
1698
1698
  language: E.language ?? "",
1699
1699
  value: E.text,
1700
1700
  hideDownload: !0
1701
1701
  });
1702
- case Q.Image: return /* @__PURE__ */ K("img", {
1702
+ case Q.Image: return /* @__PURE__ */ G("img", {
1703
1703
  src: E.url,
1704
1704
  alt: w,
1705
1705
  className: "max-w-full"
1706
1706
  });
1707
- case Q.Unsupported: return /* @__PURE__ */ K("p", {
1707
+ case Q.Unsupported: return /* @__PURE__ */ G("p", {
1708
1708
  className: "m-0",
1709
1709
  children: p
1710
1710
  });
@@ -1730,89 +1730,89 @@ var xt = /* @__PURE__ */ function(e) {
1730
1730
  resetLabel: "_resetLabel_10rw6_39",
1731
1731
  valueDanger: "_valueDanger_10rw6_44"
1732
1732
  }, er = ({ row: e, layout: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => {
1733
- let s = Yn(e), c = $n(e), l = /* @__PURE__ */ K(Ae, {
1733
+ let s = Yn(e), c = $n(e), l = /* @__PURE__ */ G(Ne, {
1734
1734
  value: qn(e),
1735
1735
  max: Jn(e.total),
1736
- size: ve.Small,
1736
+ size: be.Small,
1737
1737
  className: M("!h-1 w-full", $.progressTrack, c === Kn.Default && $.progressFillDefault, c === Kn.Warning && $.progressFillWarning, c === Kn.Danger && $.progressFillDanger),
1738
1738
  "aria-label": e.label,
1739
1739
  "aria-valuetext": e.ariaLabel ?? s
1740
- }), u = e.captionLabel != null && /* @__PURE__ */ K("span", {
1740
+ }), u = e.captionLabel != null && /* @__PURE__ */ G("span", {
1741
1741
  className: M("break-words", r, $.label),
1742
1742
  children: e.captionLabel
1743
- }), d = e.resetLabel != null && /* @__PURE__ */ q(ht, { children: [/* @__PURE__ */ K("time", {
1743
+ }), d = e.resetLabel != null && /* @__PURE__ */ K(gt, { children: [/* @__PURE__ */ G("time", {
1744
1744
  dateTime: e.resetIsoValue,
1745
1745
  "aria-hidden": e.resetAriaLabel != null || void 0,
1746
1746
  className: M("break-words", r, $.resetLabel),
1747
1747
  children: e.resetLabel
1748
- }), e.resetAriaLabel != null && /* @__PURE__ */ K("span", {
1748
+ }), e.resetAriaLabel != null && /* @__PURE__ */ G("span", {
1749
1749
  className: "sr-only",
1750
1750
  children: e.resetAriaLabel
1751
1751
  })] });
1752
- return t === wt.Stacked ? /* @__PURE__ */ q("li", {
1752
+ return t === wt.Stacked ? /* @__PURE__ */ K("li", {
1753
1753
  className: M("flex flex-col gap-2 border-b py-3 first:pt-0 last:border-b-0 last:pb-0", $.divider),
1754
1754
  children: [
1755
- /* @__PURE__ */ q("div", {
1755
+ /* @__PURE__ */ K("div", {
1756
1756
  className: "flex items-baseline justify-between gap-3",
1757
- children: [/* @__PURE__ */ K("span", {
1757
+ children: [/* @__PURE__ */ G("span", {
1758
1758
  className: M("min-w-0 break-words", n, $.valuePrimary),
1759
1759
  children: e.label
1760
- }), /* @__PURE__ */ K("span", {
1760
+ }), /* @__PURE__ */ G("span", {
1761
1761
  className: M("shrink-0", i, c === Kn.Danger ? $.valueDanger : $.valuePrimary),
1762
1762
  children: s
1763
1763
  })]
1764
1764
  }),
1765
1765
  u,
1766
- Zn(e) ? l : e.noteLabel != null && /* @__PURE__ */ K("span", {
1766
+ Zn(e) ? l : e.noteLabel != null && /* @__PURE__ */ G("span", {
1767
1767
  className: M(o, $.label),
1768
1768
  children: e.noteLabel
1769
1769
  }),
1770
1770
  d
1771
1771
  ]
1772
- }) : /* @__PURE__ */ q("li", {
1772
+ }) : /* @__PURE__ */ K("li", {
1773
1773
  className: M("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", $.divider),
1774
- children: [/* @__PURE__ */ q("div", {
1774
+ children: [/* @__PURE__ */ K("div", {
1775
1775
  className: "flex min-w-0 flex-1 flex-col",
1776
1776
  children: [
1777
- /* @__PURE__ */ K("span", {
1777
+ /* @__PURE__ */ G("span", {
1778
1778
  className: M("break-words", n, $.label),
1779
1779
  children: e.label
1780
1780
  }),
1781
1781
  u,
1782
1782
  d
1783
1783
  ]
1784
- }), Zn(e) ? /* @__PURE__ */ q("div", {
1784
+ }), Zn(e) ? /* @__PURE__ */ K("div", {
1785
1785
  className: "flex w-32 shrink-0 flex-col items-end gap-2",
1786
- children: [/* @__PURE__ */ K("div", {
1786
+ children: [/* @__PURE__ */ G("div", {
1787
1787
  className: M("flex gap-1", i),
1788
- children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ q(ht, { children: [/* @__PURE__ */ K("span", {
1788
+ children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ K(gt, { children: [/* @__PURE__ */ G("span", {
1789
1789
  className: $.valuePrimary,
1790
1790
  children: e.usedLabel
1791
- }), /* @__PURE__ */ K("span", {
1791
+ }), /* @__PURE__ */ G("span", {
1792
1792
  className: $.label,
1793
1793
  children: ` / ${e.totalLabel}`
1794
- })] }) : /* @__PURE__ */ K("span", {
1794
+ })] }) : /* @__PURE__ */ G("span", {
1795
1795
  className: $.label,
1796
1796
  children: s
1797
1797
  })
1798
1798
  }), l]
1799
- }) : /* @__PURE__ */ q("div", {
1799
+ }) : /* @__PURE__ */ K("div", {
1800
1800
  className: "flex shrink-0 flex-col items-end",
1801
- children: [/* @__PURE__ */ K("span", {
1801
+ children: [/* @__PURE__ */ G("span", {
1802
1802
  className: M(a, $.valuePrimary),
1803
1803
  children: s
1804
- }), e.noteLabel != null && /* @__PURE__ */ K("span", {
1804
+ }), e.noteLabel != null && /* @__PURE__ */ G("span", {
1805
1805
  className: M(o, $.label),
1806
1806
  children: e.noteLabel
1807
1807
  })]
1808
1808
  })]
1809
1809
  });
1810
- }, tr = ({ group: e, sectionClassName: t, layout: n, labelClassName: r, captionClassName: i, valueClassName: a, noteValueClassName: o, noteClassName: s }) => /* @__PURE__ */ q("section", { children: [/* @__PURE__ */ K("p", {
1810
+ }, tr = ({ group: e, sectionClassName: t, layout: n, labelClassName: r, captionClassName: i, valueClassName: a, noteValueClassName: o, noteClassName: s }) => /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("p", {
1811
1811
  className: M("mb-3 mt-0", t, $.sectionHeading),
1812
1812
  children: e.label
1813
- }), /* @__PURE__ */ K("ul", {
1813
+ }), /* @__PURE__ */ G("ul", {
1814
1814
  className: "m-0 flex list-none flex-col p-0",
1815
- children: e.rows.map((e) => /* @__PURE__ */ K(er, {
1815
+ children: e.rows.map((e) => /* @__PURE__ */ G(er, {
1816
1816
  row: e,
1817
1817
  layout: n,
1818
1818
  labelClassName: r,
@@ -1823,7 +1823,7 @@ var xt = /* @__PURE__ */ function(e) {
1823
1823
  }, e.label))
1824
1824
  })] }), nr = ({ limits: e, layout: t = wt.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 }) => {
1825
1825
  let d = e?.groups.filter((e) => e.rows.length > 0);
1826
- return d == null || d.length === 0 ? null : /* @__PURE__ */ q("div", {
1826
+ return d == null || d.length === 0 ? null : /* @__PURE__ */ K("div", {
1827
1827
  className: "flex flex-col gap-6",
1828
1828
  style: j({
1829
1829
  "--lt-section-heading": u?.sectionHeading,
@@ -1836,7 +1836,7 @@ var xt = /* @__PURE__ */ function(e) {
1836
1836
  "--lt-progress-fill-warning": u?.progressFillWarning,
1837
1837
  "--lt-progress-fill-danger": u?.progressFillDanger
1838
1838
  }),
1839
- children: [d.map((e) => /* @__PURE__ */ K(tr, {
1839
+ children: [d.map((e) => /* @__PURE__ */ G(tr, {
1840
1840
  group: e,
1841
1841
  layout: t,
1842
1842
  sectionClassName: s,
@@ -1845,18 +1845,18 @@ var xt = /* @__PURE__ */ function(e) {
1845
1845
  valueClassName: i,
1846
1846
  noteValueClassName: a,
1847
1847
  noteClassName: o
1848
- }, e.label)), l != null && /* @__PURE__ */ K("p", {
1848
+ }, e.label)), l != null && /* @__PURE__ */ G("p", {
1849
1849
  className: M("m-0 border-t pt-4", c, $.divider, $.label),
1850
1850
  children: l
1851
1851
  })]
1852
1852
  });
1853
- }, rr = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ K("div", {
1853
+ }, rr = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ G("div", {
1854
1854
  className: "flex flex-col gap-4",
1855
- children: e.map((e, s) => /* @__PURE__ */ q("div", {
1855
+ children: e.map((e, s) => /* @__PURE__ */ K("div", {
1856
1856
  className: "flex flex-col gap-4",
1857
- children: [s > 0 && /* @__PURE__ */ K("div", { className: M("shrink-0 border-b", Dn.divider) }), /* @__PURE__ */ K("div", {
1857
+ children: [s > 0 && /* @__PURE__ */ G("div", { className: M("shrink-0 border-b", Dn.divider) }), /* @__PURE__ */ G("div", {
1858
1858
  className: "px-6",
1859
- children: /* @__PURE__ */ K(an, {
1859
+ children: /* @__PURE__ */ G(an, {
1860
1860
  sectionLabel: e.title,
1861
1861
  values: e.specs,
1862
1862
  sectionClassName: t,
@@ -1877,15 +1877,15 @@ var xt = /* @__PURE__ */ function(e) {
1877
1877
  label: e.label,
1878
1878
  value: e.value
1879
1879
  }));
1880
- return /* @__PURE__ */ q("div", {
1880
+ return /* @__PURE__ */ K("div", {
1881
1881
  className: "flex flex-col gap-4",
1882
- children: [/* @__PURE__ */ K(an, {
1882
+ children: [/* @__PURE__ */ G(an, {
1883
1883
  sectionLabel: t,
1884
1884
  values: o ?? [],
1885
1885
  labelClassName: r,
1886
1886
  valueClassName: i,
1887
1887
  sectionClassName: a
1888
- }), /* @__PURE__ */ K(an, {
1888
+ }), /* @__PURE__ */ G(an, {
1889
1889
  sectionLabel: n,
1890
1890
  values: s ?? [],
1891
1891
  labelClassName: r,
@@ -1900,13 +1900,13 @@ var xt = /* @__PURE__ */ function(e) {
1900
1900
  evenRow: "_evenRow_ddi3i_17"
1901
1901
  }, or = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
1902
1902
  let a = n ?? `repeat(${e.length}, 1fr)`;
1903
- return /* @__PURE__ */ q("div", {
1903
+ return /* @__PURE__ */ K("div", {
1904
1904
  className: M(ar.container, "grid overflow-hidden rounded-md"),
1905
1905
  style: { gridTemplateColumns: a },
1906
- children: [e.map((e) => /* @__PURE__ */ K("div", {
1906
+ children: [e.map((e) => /* @__PURE__ */ G("div", {
1907
1907
  className: M("px-2 py-1 text-start", r, ar.header),
1908
1908
  children: e
1909
- }, e)), t.map((e, t) => /* @__PURE__ */ K(ie, { children: e.map((e, n) => /* @__PURE__ */ K("div", {
1909
+ }, e)), t.map((e, t) => /* @__PURE__ */ G(ie, { children: e.map((e, n) => /* @__PURE__ */ G("div", {
1910
1910
  className: M("px-2 py-1.5", i, ar.cell, t % 2 == 1 ? ar.evenRow : void 0),
1911
1911
  children: e
1912
1912
  }, n)) }, t))]
@@ -1915,22 +1915,22 @@ var xt = /* @__PURE__ */ function(e) {
1915
1915
  divider: "_divider_1f796_1",
1916
1916
  description: "_description_1f796_5",
1917
1917
  code: "_code_1f796_9"
1918
- }, cr = ({ tools: e, toolNameClassName: t = "dial-small-semi-text", descriptionClassName: n = "dial-small-text", tableHeadingClassName: r = "dial-caption-text", tableCellClassName: i = "dial-tiny-text" }) => e == null ? null : /* @__PURE__ */ K("div", {
1918
+ }, cr = ({ tools: e, toolNameClassName: t = "dial-small-semi-text", descriptionClassName: n = "dial-small-text", tableHeadingClassName: r = "dial-caption-text", tableCellClassName: i = "dial-tiny-text" }) => e == null ? null : /* @__PURE__ */ G("div", {
1919
1919
  className: "flex flex-col",
1920
- children: e.tools.map((e, a) => /* @__PURE__ */ q("div", {
1920
+ children: e.tools.map((e, a) => /* @__PURE__ */ K("div", {
1921
1921
  className: M("flex flex-col gap-3 px-[22px] py-4", a > 0 ? sr.divider : void 0),
1922
1922
  children: [
1923
- /* @__PURE__ */ q("div", {
1923
+ /* @__PURE__ */ K("div", {
1924
1924
  className: "flex flex-col gap-1",
1925
- children: [/* @__PURE__ */ K("span", {
1925
+ children: [/* @__PURE__ */ G("span", {
1926
1926
  className: t,
1927
1927
  children: e.name
1928
- }), e.description != null && /* @__PURE__ */ K("p", {
1928
+ }), e.description != null && /* @__PURE__ */ G("p", {
1929
1929
  className: M("m-0", n, sr.description),
1930
1930
  children: e.description
1931
1931
  })]
1932
1932
  }),
1933
- e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ K(or, {
1933
+ e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ G(or, {
1934
1934
  columns: [
1935
1935
  "Name",
1936
1936
  "Type",
@@ -1938,11 +1938,11 @@ var xt = /* @__PURE__ */ function(e) {
1938
1938
  ],
1939
1939
  columnsTemplate: "1fr 1fr auto",
1940
1940
  rows: e.inputParams.map((e) => [
1941
- /* @__PURE__ */ K("code", {
1941
+ /* @__PURE__ */ G("code", {
1942
1942
  className: M("text-inherit border-none bg-transparent p-0", sr.code),
1943
1943
  children: e.name
1944
1944
  }, "name"),
1945
- /* @__PURE__ */ K("code", {
1945
+ /* @__PURE__ */ G("code", {
1946
1946
  className: M("text-inherit border-none bg-transparent p-0", sr.code),
1947
1947
  children: e.type
1948
1948
  }, "type"),
@@ -1951,9 +1951,9 @@ var xt = /* @__PURE__ */ function(e) {
1951
1951
  headingClassName: r,
1952
1952
  cellClassName: i
1953
1953
  }),
1954
- e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ K(or, {
1954
+ e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ G(or, {
1955
1955
  columns: ["Key", "Value"],
1956
- rows: e.annotations.map((e) => [/* @__PURE__ */ K("code", {
1956
+ rows: e.annotations.map((e) => [/* @__PURE__ */ G("code", {
1957
1957
  className: M("text-inherit border-none bg-transparent p-0", sr.code),
1958
1958
  children: e.key
1959
1959
  }, "key"), e.value]),
@@ -1978,165 +1978,165 @@ var xt = /* @__PURE__ */ function(e) {
1978
1978
  "Everyone you shared it with loses access",
1979
1979
  "Existing share links stop working",
1980
1980
  "You keep full access — nothing is deleted"
1981
- ], yr = (e) => e === y.ApiKey ? "Toolset API keys" : "Toolset credentials", br = (e) => e === b.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", xr = new Set([Y.Delete, Y.Unshare]), Sr = ({ item: e, isOpen: n, isStarred: r = !1, isDetailsLoading: i = !1, isReadonly: a = !1, onClose: o, onToggleFavorite: s, isFavoriteVisible: c, onUseInChat: l, isPrimaryActionVisible: u, onShare: d, isPublishVisible: f, isPublishPrimary: p, getPublishHistory: h, publishFolderItems: _ = pr, publishExpandedPaths: v, onPublishExpandedPathsChange: y, publishLoadingPaths: w, hasPublishWriteAccess: T, publishDefaultAuthor: E, onPublish: D, onPublishSuccess: O, onPublishError: ee, onCreatePublishFolder: k, publishLabels: A, ruleSourceOptions: te = mr, onFetchExistingRules: ne, shareOverlay: re, isShareVisible: ie, isSharePrimary: N, onEdit: ae, onDownload: oe, isDownloadVisible: se, isDownloadPrimary: z, onLoadContentFile: ce, onLoadContentFilePreview: le, renderContentFilePreview: ue, renderContentFileTree: de, renderCredentials: fe, onDelete: pe, onUnshare: B, isUnshareVisible: V, onRevokeShare: he, onFetchRecipientsCount: ge, isRevokeShareVisible: _e, onUnpublish: ve, isUnpublishVisible: ye, onLogin: be, onLogout: xe, texts: H, styles: Se, limitsFooterNote: Ce }) => {
1982
- let { subViewTitleClassName: we = "dial-body-semi-text", overviewSectionClassName: Te = "dial-caption-text", overviewLabelClassName: Ee = "dial-small-semi-text", overviewValueClassName: De = "dial-small-text", overviewValueTrueClassName: Oe = "dial-small-text", confirmMessageClassName: U = "dial-small-text" } = Se?.typography ?? {}, W = Se?.colors, ke = j({
1983
- "--cat-details-backdrop": W?.backdrop,
1984
- "--cat-details-bg": W?.background,
1985
- "--cat-details-border": W?.border,
1986
- "--cat-details-divider": W?.divider,
1987
- "--cat-details-scrollbar": W?.scrollbar,
1988
- "--cat-details-skeleton": W?.skeleton,
1989
- "--cat-details-name-text": W?.nameText,
1990
- "--cat-details-publish-title-text": W?.publishTitleText,
1991
- "--cat-details-content-text": W?.contentText,
1992
- "--cat-details-variable-text": W?.variableText,
1993
- "--cat-details-file-count-text": W?.contentFileCountText,
1994
- "--cat-api-heading-text": W?.apiHeadingText,
1995
- "--cat-tools-divider": W?.toolsDivider,
1996
- "--cat-tools-description-text": W?.toolsDescriptionText,
1997
- "--cat-grid-border": W?.gridBorder,
1998
- "--cat-grid-header-text": W?.gridHeaderText,
1999
- "--cat-grid-header-bg": W?.gridHeaderBackground,
2000
- "--cat-grid-cell-text": W?.gridCellText,
2001
- "--cat-grid-cell-divider": W?.gridCellDivider,
2002
- "--cat-grid-row-even-bg": W?.gridRowEvenBackground,
2003
- "--cat-cred-surface-bg": W?.credentialsSurfaceBackground,
2004
- "--cat-cred-active-icon": W?.credentialsActiveIcon,
2005
- "--cat-cred-banner-icon-bg": W?.credentialsBannerIconBackground,
2006
- "--cat-cred-description-text": W?.credentialsDescriptionText,
2007
- "--cat-cred-row-description-text": W?.credentialsRowDescriptionText,
2008
- "--cat-cred-error-text": W?.credentialsErrorText,
2009
- "--cat-cred-card-bg": W?.credentialsCardBackground,
2010
- "--cat-cred-card-icon": W?.credentialsCardIcon,
2011
- "--cat-cred-card-title-text": W?.credentialsCardTitleText,
2012
- "--cat-cred-card-description-text": W?.credentialsCardDescriptionText
2013
- }), [Ae, Me] = R(r), [Ne, Ie] = R(""), [Le, ze] = R(!1), [Be, Ve] = R([]), [He, Ue] = R(!1), [We, Ge] = R(!1), [Ke, qe] = R(!1), Je = L(null), Ye = e.details?.promptContent, Xe = Ye?.selectedFileId, [Ze, Qe] = R(null), [$e, et] = R(!1), [tt, nt] = R(/* @__PURE__ */ new Set()), [rt, it] = R(!1), at = L(null), ot = L(0), st = P((e) => {
2014
- let t = at.current, n = e?.preview?.type === Q.Image ? e.preview.url : null;
2015
- t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), at.current = n, Qe(e);
1981
+ ], yr = (e) => e === y.ApiKey ? "Toolset API keys" : "Toolset credentials", br = (e) => e === b.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", xr = new Set([Y.Delete, Y.Unshare]), Sr = ({ item: e, isOpen: n, isStarred: r = !1, isDetailsLoading: i = !1, isReadonly: a = !1, onClose: o, onToggleFavorite: s, isFavoriteVisible: c, onUseInChat: l, isPrimaryActionVisible: u, onShare: d, isPublishVisible: f, isPublishPrimary: p, getPublishHistory: h, publishFolderItems: _ = pr, publishExpandedPaths: v, onPublishExpandedPathsChange: y, publishLoadingPaths: w, hasPublishWriteAccess: T, publishDefaultAuthor: E, onPublish: D, onPublishSuccess: O, onPublishError: ee, onCreatePublishFolder: k, publishLabels: A, ruleSourceOptions: te = mr, onFetchExistingRules: ne, shareOverlay: re, isShareVisible: ie, isSharePrimary: ae, onEdit: oe, onDownload: se, isDownloadVisible: ce, isDownloadPrimary: le, onLoadContentFile: ue, onLoadContentFilePreview: de, renderContentFilePreview: fe, renderContentFileTree: pe, renderCredentials: me, onDelete: he, onUnshare: R, isUnshareVisible: z, onRevokeShare: _e, onFetchRecipientsCount: ve, isRevokeShareVisible: ye, onUnpublish: be, isUnpublishVisible: xe, onLogin: Se, onLogout: Ce, texts: B, styles: we, limitsFooterNote: Te }) => {
1982
+ let { subViewTitleClassName: Ee = "dial-body-semi-text", overviewSectionClassName: De = "dial-caption-text", overviewLabelClassName: Oe = "dial-small-semi-text", overviewValueClassName: ke = "dial-small-text", overviewValueTrueClassName: Ae = "dial-small-text", confirmMessageClassName: je = "dial-small-text" } = we?.typography ?? {}, V = we?.colors, Me = j({
1983
+ "--cat-details-backdrop": V?.backdrop,
1984
+ "--cat-details-bg": V?.background,
1985
+ "--cat-details-border": V?.border,
1986
+ "--cat-details-divider": V?.divider,
1987
+ "--cat-details-scrollbar": V?.scrollbar,
1988
+ "--cat-details-skeleton": V?.skeleton,
1989
+ "--cat-details-name-text": V?.nameText,
1990
+ "--cat-details-publish-title-text": V?.publishTitleText,
1991
+ "--cat-details-content-text": V?.contentText,
1992
+ "--cat-details-variable-text": V?.variableText,
1993
+ "--cat-details-file-count-text": V?.contentFileCountText,
1994
+ "--cat-api-heading-text": V?.apiHeadingText,
1995
+ "--cat-tools-divider": V?.toolsDivider,
1996
+ "--cat-tools-description-text": V?.toolsDescriptionText,
1997
+ "--cat-grid-border": V?.gridBorder,
1998
+ "--cat-grid-header-text": V?.gridHeaderText,
1999
+ "--cat-grid-header-bg": V?.gridHeaderBackground,
2000
+ "--cat-grid-cell-text": V?.gridCellText,
2001
+ "--cat-grid-cell-divider": V?.gridCellDivider,
2002
+ "--cat-grid-row-even-bg": V?.gridRowEvenBackground,
2003
+ "--cat-cred-surface-bg": V?.credentialsSurfaceBackground,
2004
+ "--cat-cred-active-icon": V?.credentialsActiveIcon,
2005
+ "--cat-cred-banner-icon-bg": V?.credentialsBannerIconBackground,
2006
+ "--cat-cred-description-text": V?.credentialsDescriptionText,
2007
+ "--cat-cred-row-description-text": V?.credentialsRowDescriptionText,
2008
+ "--cat-cred-error-text": V?.credentialsErrorText,
2009
+ "--cat-cred-card-bg": V?.credentialsCardBackground,
2010
+ "--cat-cred-card-icon": V?.credentialsCardIcon,
2011
+ "--cat-cred-card-title-text": V?.credentialsCardTitleText,
2012
+ "--cat-cred-card-description-text": V?.credentialsCardDescriptionText
2013
+ }), [Ne, Fe] = L(r), [Ie, ze] = L(""), [Be, He] = L(!1), [Ue, We] = L([]), [Ge, Ke] = L(!1), qe = I(null), Je = e.details?.promptContent, Ye = Je?.selectedFileId, [Xe, Ze] = L(null), [Qe, $e] = L(!1), [et, H] = L(/* @__PURE__ */ new Set()), [tt, nt] = L(!1), rt = I(null), it = I(0), at = N((e) => {
2014
+ let t = rt.current, n = e?.preview?.type === Q.Image ? e.preview.url : null;
2015
+ t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), rt.current = n, Ze(e);
2016
2016
  }, []);
2017
- F(() => {
2018
- ot.current += 1, st(null), et(!1), nt(en(Ye?.files ?? [])), it(!1);
2019
- }, [e.id, Xe]), F(() => () => {
2020
- let e = at.current;
2017
+ P(() => {
2018
+ it.current += 1, at(null), $e(!1), H(en(Je?.files ?? [])), nt(!1);
2019
+ }, [e.id, Ye]), P(() => () => {
2020
+ let e = rt.current;
2021
2021
  e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
2022
2022
  }, []);
2023
- let ct = P((e) => {
2024
- nt((t) => {
2023
+ let ot = N((e) => {
2024
+ H((t) => {
2025
2025
  let n = new Set(t);
2026
2026
  return n.has(e) ? n.delete(e) : n.add(e), n;
2027
2027
  });
2028
- }, []), lt = P(async (e) => {
2029
- if (e === Xe) {
2030
- ot.current += 1, st(null), et(!1);
2028
+ }, []), st = N(async (e) => {
2029
+ if (e === Ye) {
2030
+ it.current += 1, at(null), $e(!1);
2031
2031
  return;
2032
2032
  }
2033
- if (ue == null && ce == null && le == null) return;
2034
- if (ue != null) {
2035
- ot.current += 1, st({
2033
+ if (fe == null && ue == null && de == null) return;
2034
+ if (fe != null) {
2035
+ it.current += 1, at({
2036
2036
  id: e,
2037
2037
  preview: null
2038
- }), et(!1);
2038
+ }), $e(!1);
2039
2039
  return;
2040
2040
  }
2041
- let t = ++ot.current;
2042
- st({
2041
+ let t = ++it.current;
2042
+ at({
2043
2043
  id: e,
2044
2044
  preview: null
2045
- }), et(!0);
2045
+ }), $e(!0);
2046
2046
  try {
2047
- let n = le == null ? await ce?.(e).then((e) => e == null ? void 0 : {
2047
+ let n = de == null ? await ue?.(e).then((e) => e == null ? void 0 : {
2048
2048
  type: Q.Markdown,
2049
2049
  text: e
2050
- }) : await le(e);
2051
- if (ot.current !== t) {
2050
+ }) : await de(e);
2051
+ if (it.current !== t) {
2052
2052
  n?.type === Q.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
2053
2053
  return;
2054
2054
  }
2055
- st({
2055
+ at({
2056
2056
  id: e,
2057
2057
  preview: n ?? null
2058
2058
  });
2059
2059
  } catch {
2060
- if (ot.current !== t) return;
2061
- st({
2060
+ if (it.current !== t) return;
2061
+ at({
2062
2062
  id: e,
2063
2063
  preview: null
2064
2064
  });
2065
2065
  } finally {
2066
- ot.current === t && et(!1);
2066
+ it.current === t && $e(!1);
2067
2067
  }
2068
2068
  }, [
2069
- Xe,
2070
- ce,
2071
- le,
2069
+ Ye,
2072
2070
  ue,
2073
- st
2074
- ]), ut = Ze?.id ?? Xe, dt = () => Ze == null ? null : Ze.preview == null ? {
2071
+ de,
2072
+ fe,
2073
+ at
2074
+ ]), ct = Xe?.id ?? Ye, lt = () => Xe == null ? null : Xe.preview == null ? {
2075
2075
  type: Q.Text,
2076
- text: H?.contentFileErrorLabel ?? "Failed to load this file."
2077
- } : Ze.preview, ft = Ze != null && ue != null ? ue(Ze.id, tn(Ye?.files ?? [], Ze.id) ?? "") : void 0, pt = P(() => {
2078
- if (!h || Je.current === e.id) return;
2076
+ text: B?.contentFileErrorLabel ?? "Failed to load this file."
2077
+ } : Xe.preview, ut = Xe != null && fe != null ? fe(Xe.id, tn(Je?.files ?? [], Xe.id) ?? "") : void 0, U = N(() => {
2078
+ if (!h || qe.current === e.id) return;
2079
2079
  let t = e.id;
2080
- Je.current = t, Ue(!0), Ge(!1), (async () => {
2080
+ qe.current = t, (async () => {
2081
2081
  try {
2082
2082
  let n = await h(e);
2083
- if (Je.current !== t) return;
2084
- Ve(n), qe(!0), Ue(!1);
2083
+ if (qe.current !== t) return;
2084
+ We(n), Ke(!0);
2085
2085
  } catch {
2086
- if (Je.current !== t) return;
2087
- Ge(!0), Ue(!1), Je.current = null;
2086
+ if (qe.current !== t) return;
2087
+ qe.current = null;
2088
2088
  }
2089
2089
  })();
2090
2090
  }, [h, e]);
2091
- F(() => {
2092
- Le && pt();
2093
- }, [Le, pt]);
2094
- let mt = P((e, t) => {
2095
- Je.current = null, qe(!1), pt(), O?.(e, t);
2096
- }, [pt, O]), G = yt({
2091
+ P(() => {
2092
+ Be && U();
2093
+ }, [Be, U]);
2094
+ let dt = N((e, t) => {
2095
+ qe.current = null, Ke(!1), U(), O?.(e, t);
2096
+ }, [U, O]), W = bt({
2097
2097
  item: e,
2098
- history: Be,
2098
+ history: Ue,
2099
2099
  folderItems: _,
2100
2100
  hasWriteAccess: T,
2101
2101
  defaultAuthor: E,
2102
2102
  onCreateFolder: k,
2103
2103
  onPublish: D ?? fr,
2104
- onPublishSuccess: mt,
2104
+ onPublishSuccess: dt,
2105
2105
  onPublishError: ee,
2106
2106
  onFetchExistingRules: ne
2107
- }), bt = e.type === x.Toolset && g(e.credentials), xt = I(() => vt({
2108
- hasSelectedFolder: G.selectedFolderPath != null,
2109
- hasExistingPublicationInFolder: G.hasExistingPublicationInFolder,
2110
- hasWriteAccess: G.hasWriteAccess,
2111
- isSubmitting: G.isSubmitting,
2112
- hasSubmitError: G.hasSubmitError
2107
+ }), ft = e.type === x.Toolset && g(e.credentials), pt = F(() => yt({
2108
+ hasSelectedFolder: W.selectedFolderPath != null,
2109
+ hasExistingPublicationInFolder: W.hasExistingPublicationInFolder,
2110
+ hasWriteAccess: W.hasWriteAccess,
2111
+ isSubmitting: W.isSubmitting,
2112
+ hasSubmitError: W.hasSubmitError
2113
2113
  }), [
2114
- G.selectedFolderPath,
2115
- G.hasExistingPublicationInFolder,
2116
- G.hasWriteAccess,
2117
- G.isSubmitting,
2118
- G.hasSubmitError
2119
- ]), [St, Ct] = R(!1), [X, wt] = R(null), [Z, Tt] = R(!1), [Et, Dt] = R(null), [Ot, kt] = R(null), [At, jt] = R(null);
2120
- F(() => {
2121
- Me(r);
2122
- }, [e.id, r]), F(() => {
2123
- Ie(""), ze(!1), G.reset(), Ve([]), Ge(!1), Ue(!1), qe(!1), Je.current = null, jt(null), Ct(!1), wt(null), Tt(!1), Dt(null), kt(null);
2114
+ W.selectedFolderPath,
2115
+ W.hasExistingPublicationInFolder,
2116
+ W.hasWriteAccess,
2117
+ W.isSubmitting,
2118
+ W.hasSubmitError
2119
+ ]), [mt, ht] = L(!1), [xt, q] = L(null), [St, Ct] = L(!1), [X, wt] = L(null), [Z, Tt] = L(null), [Et, Dt] = L(null);
2120
+ P(() => {
2121
+ Fe(r);
2122
+ }, [e.id, r]), P(() => {
2123
+ ze(""), He(!1), W.reset(), We([]), Ke(!1), qe.current = null, Dt(null), ht(!1), q(null), Ct(!1), wt(null), Tt(null);
2124
2124
  }, [e.id]);
2125
- let Mt = !a && !!ve && ye?.(e) === !0;
2126
- F(() => {
2127
- Mt && pt();
2128
- }, [Mt, pt]);
2129
- let Nt = P(() => Ct(!0), []), Pt = P(() => Ct(!1), []), Ft = P(() => {
2130
- wt(Y.Delete);
2131
- }, []), It = P((n) => {
2132
- kt(n ?? (e.credentials == null ? null : t(e.credentials))), wt(Y.Logout);
2133
- }, [e.credentials]), Lt = P(() => {
2134
- wt(Y.Unshare);
2135
- }, []), Rt = P(() => {
2136
- wt(Y.RevokeAccess);
2137
- }, []), zt = I(() => {
2125
+ let Ot = !a && !!be && xe?.(e) === !0;
2126
+ P(() => {
2127
+ Ot && U();
2128
+ }, [Ot, U]);
2129
+ let kt = N(() => ht(!0), []), At = N(() => ht(!1), []), jt = N(() => {
2130
+ q(Y.Delete);
2131
+ }, []), Mt = N((n) => {
2132
+ Tt(n ?? (e.credentials == null ? null : t(e.credentials))), q(Y.Logout);
2133
+ }, [e.credentials]), Nt = N(() => {
2134
+ q(Y.Unshare);
2135
+ }, []), Pt = N(() => {
2136
+ q(Y.RevokeAccess);
2137
+ }, []), Ft = F(() => {
2138
2138
  let e = /* @__PURE__ */ new Set(), t = [];
2139
- for (let n of Be) {
2139
+ for (let n of Ue) {
2140
2140
  let r = n.folderPath.join("/");
2141
2141
  e.has(r) || (e.add(r), t.push({
2142
2142
  key: r,
@@ -2144,384 +2144,381 @@ var xt = /* @__PURE__ */ function(e) {
2144
2144
  }));
2145
2145
  }
2146
2146
  return t;
2147
- }, [Be]), Bt = Ke && zt.length > 0, Vt = P((e) => e || (A?.rootFolderLabel ?? "Organization"), [A]), Ut = P(() => {
2148
- wt(Y.Unpublish);
2149
- }, []), Wt = P((e) => {
2150
- Dt(e), wt(Y.DeleteApiKey);
2151
- }, []), Gt = P(() => {
2152
- Z || (wt(null), Dt(null), kt(null), jt(null));
2153
- }, [Z]), Kt = P(async () => {
2154
- if (!(Z || X == null)) {
2155
- Tt(!0);
2147
+ }, [Ue]), It = Ge && Ft.length > 0, Lt = N((e) => e || (A?.rootFolderLabel ?? "Organization"), [A]), Rt = N(() => {
2148
+ q(Y.Unpublish);
2149
+ }, []), zt = N((e) => {
2150
+ wt(e), q(Y.DeleteApiKey);
2151
+ }, []), Bt = N(() => {
2152
+ St || (q(null), wt(null), Tt(null), Dt(null));
2153
+ }, [St]), Vt = N(async () => {
2154
+ if (!(St || xt == null)) {
2155
+ Ct(!0);
2156
2156
  try {
2157
- switch (X) {
2157
+ switch (xt) {
2158
2158
  case Y.Delete:
2159
- await pe?.(e);
2159
+ await he?.(e);
2160
2160
  break;
2161
2161
  case Y.Unshare:
2162
- await B?.(e);
2162
+ await R?.(e);
2163
2163
  break;
2164
2164
  case Y.RevokeAccess:
2165
- await he?.(e);
2165
+ await _e?.(e);
2166
2166
  break;
2167
2167
  case Y.Logout:
2168
- Ot != null && await xe?.(e, { level: Ot });
2168
+ Z != null && await Ce?.(e, { level: Z });
2169
2169
  break;
2170
2170
  case Y.DeleteApiKey:
2171
- Et != null && await xe?.(e, { level: Et });
2171
+ X != null && await Ce?.(e, { level: X });
2172
2172
  break;
2173
2173
  case Y.Unpublish: {
2174
- let t = dr(zt, At);
2175
- t != null && await ve?.(e, t.segments);
2174
+ let t = dr(Ft, Et);
2175
+ t != null && await be?.(e, t.segments);
2176
2176
  break;
2177
2177
  }
2178
2178
  }
2179
- wt(null), Dt(null), kt(null), jt(null), xr.has(X) && o();
2179
+ q(null), wt(null), Tt(null), Dt(null), xr.has(xt) && o();
2180
2180
  } catch {
2181
- wt(null), Dt(null), kt(null), jt(null);
2181
+ q(null), wt(null), Tt(null), Dt(null);
2182
2182
  } finally {
2183
- Tt(!1);
2183
+ Ct(!1);
2184
2184
  }
2185
2185
  }
2186
2186
  }, [
2187
- Z,
2187
+ St,
2188
+ xt,
2188
2189
  X,
2189
- Et,
2190
- Ot,
2190
+ Z,
2191
2191
  e,
2192
- pe,
2193
- B,
2194
2192
  he,
2195
- ve,
2196
- At,
2197
- zt,
2198
- xe,
2193
+ R,
2194
+ _e,
2195
+ be,
2196
+ Et,
2197
+ Ft,
2198
+ Ce,
2199
2199
  o
2200
2200
  ]);
2201
- F(() => {
2202
- if (!n || X == null) return;
2201
+ P(() => {
2202
+ if (!n || xt == null) return;
2203
2203
  let e = (e) => {
2204
- e.key === "Escape" && (e.stopPropagation(), Gt());
2204
+ e.key === "Escape" && (e.stopPropagation(), Bt());
2205
2205
  };
2206
2206
  return document.addEventListener("keydown", e, !0), () => document.removeEventListener("keydown", e, !0);
2207
2207
  }, [
2208
2208
  n,
2209
- X,
2210
- Gt
2209
+ xt,
2210
+ Bt
2211
2211
  ]);
2212
- let qt = P(() => ze(!0), []), Jt = P(() => {
2213
- ze(!1), G.reset();
2214
- }, [G]), Yt = P(async () => {
2215
- await G.handleSubmit() && Jt();
2216
- }, [G, Jt]), Xt = P(() => {
2217
- let t = !Ae;
2218
- Me(t), s?.(e.id, t);
2212
+ let Ut = N(() => He(!0), []), Wt = N(() => {
2213
+ He(!1), W.reset();
2214
+ }, [W]), Gt = N(async () => {
2215
+ await W.handleSubmit() && Wt();
2216
+ }, [W, Wt]), Kt = N(() => {
2217
+ let t = !Ne;
2218
+ Fe(t), s?.(e.id, t);
2219
2219
  }, [
2220
- Ae,
2220
+ Ne,
2221
2221
  e.id,
2222
2222
  s
2223
- ]), Zt = I(() => {
2223
+ ]), qt = F(() => {
2224
2224
  let t = [], n = lr.has(e.type);
2225
2225
  return n || t.push({
2226
2226
  id: J.About,
2227
- label: H?.tabAboutLabel ?? "About"
2227
+ label: B?.tabAboutLabel ?? "About"
2228
2228
  }), (n || e.details?.promptContent != null) && t.push({
2229
2229
  id: J.Content,
2230
- label: H?.tabContentLabel ?? "Details"
2230
+ label: B?.tabContentLabel ?? "Details"
2231
2231
  }), e.details?.overview != null && t.push({
2232
2232
  id: J.Overview,
2233
- label: H?.tabOverviewLabel ?? "Overview"
2233
+ label: B?.tabOverviewLabel ?? "Overview"
2234
2234
  }), e.details?.pricing != null && t.push({
2235
2235
  id: J.Pricing,
2236
- label: H?.tabPricingLabel ?? "Pricing"
2236
+ label: B?.tabPricingLabel ?? "Pricing"
2237
2237
  }), e.details?.limits != null && t.push({
2238
2238
  id: J.Limits,
2239
- label: H?.tabLimitsLabel ?? "Limits"
2239
+ label: B?.tabLimitsLabel ?? "Limits"
2240
2240
  }), e.details?.tools != null && t.push({
2241
2241
  id: J.Tools,
2242
- label: H?.tabToolsLabel ?? "Tools"
2242
+ label: B?.tabToolsLabel ?? "Tools"
2243
2243
  }), ur(e.details?.api) && t.push({
2244
2244
  id: J.Api,
2245
- label: H?.tabConnectLabel ?? "Connect"
2245
+ label: B?.tabConnectLabel ?? "Connect"
2246
2246
  }), t;
2247
- }, [e, H]), Qt = L(null);
2248
- F(() => {
2249
- let t = Qt.current !== e.id;
2250
- Qt.current = e.id, (t || !Zt.some((e) => e.id === Ne)) && Ie(Zt[0]?.id ?? "");
2247
+ }, [e, B]), Jt = I(null);
2248
+ P(() => {
2249
+ let t = Jt.current !== e.id;
2250
+ Jt.current = e.id, (t || !qt.some((e) => e.id === Ie)) && ze(qt[0]?.id ?? "");
2251
2251
  }, [
2252
2252
  e.id,
2253
- Zt,
2254
- Ne
2253
+ qt,
2254
+ Ie
2255
2255
  ]);
2256
- let $t = H?.overviewYesLabel ?? "Yes", nn = H?.overviewNoLabel ?? "No", rn = H?.ariaLabel ?? "Item details", an = H?.closeAriaLabel ?? "Close", on = Ae ? H?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : H?.addToFavoritesAriaLabel ?? "Add to favorites", sn = H?.publishTitle ?? "Publish", cn = H?.backToDetailsAriaLabel ?? "Back", ln = H?.cancelLabel ?? "Cancel", dn = I(() => {
2257
- switch (X) {
2256
+ let Yt = B?.overviewYesLabel ?? "Yes", Xt = B?.overviewNoLabel ?? "No", Zt = B?.ariaLabel ?? "Item details", Qt = B?.closeAriaLabel ?? "Close", $t = Ne ? B?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : B?.addToFavoritesAriaLabel ?? "Add to favorites", nn = B?.publishTitle ?? "Publish", rn = B?.backToDetailsAriaLabel ?? "Back", an = B?.cancelLabel ?? "Cancel", on = F(() => {
2257
+ switch (xt) {
2258
2258
  case Y.Delete: {
2259
- let t = H?.deleteActionLabel ?? "Delete";
2259
+ let t = B?.deleteActionLabel ?? "Delete";
2260
2260
  return {
2261
- title: H?.deleteConfirmTitle ?? t,
2262
- message: H?.deleteConfirmMessage?.(e.name) ?? /* @__PURE__ */ q(ht, { children: [
2261
+ title: B?.deleteConfirmTitle ?? t,
2262
+ message: B?.deleteConfirmMessage?.(e.name) ?? /* @__PURE__ */ K(gt, { children: [
2263
2263
  "Are you sure you want to delete ",
2264
- /* @__PURE__ */ K("strong", { children: e.name }),
2264
+ /* @__PURE__ */ G("strong", { children: e.name }),
2265
2265
  "? This action is permanent and cannot be undone."
2266
2266
  ] }),
2267
- consequences: H?.deleteConfirmConsequences ?? hr,
2267
+ consequences: B?.deleteConfirmConsequences ?? hr,
2268
2268
  confirmLabel: t,
2269
- loadingStatusLabel: H?.deletingStatusLabel ?? "Deleting",
2270
- variant: me.Danger
2269
+ loadingStatusLabel: B?.deletingStatusLabel ?? "Deleting",
2270
+ variant: ge.Danger
2271
2271
  };
2272
2272
  }
2273
2273
  case Y.Unshare: {
2274
- let t = H?.unshareLabel ?? "Remove from My List";
2274
+ let t = B?.unshareLabel ?? "Remove from My List";
2275
2275
  return {
2276
- title: H?.unshareConfirmTitle ?? t,
2277
- message: H?.unshareConfirmMessage?.(e.name) ?? /* @__PURE__ */ q(ht, { children: [
2276
+ title: B?.unshareConfirmTitle ?? t,
2277
+ message: B?.unshareConfirmMessage?.(e.name) ?? /* @__PURE__ */ K(gt, { children: [
2278
2278
  "Remove ",
2279
- /* @__PURE__ */ K("strong", { children: e.name }),
2279
+ /* @__PURE__ */ G("strong", { children: e.name }),
2280
2280
  " from your list? You'll need a new invitation to access it again."
2281
2281
  ] }),
2282
- consequences: H?.unshareConfirmConsequences ?? gr,
2282
+ consequences: B?.unshareConfirmConsequences ?? gr,
2283
2283
  confirmLabel: t,
2284
- loadingStatusLabel: H?.unsharingStatusLabel ?? "Removing",
2285
- variant: me.Info
2284
+ loadingStatusLabel: B?.unsharingStatusLabel ?? "Removing",
2285
+ variant: ge.Info
2286
2286
  };
2287
2287
  }
2288
2288
  case Y.RevokeAccess: {
2289
- let t = H?.revokeShareLabel ?? "Revoke access";
2289
+ let t = B?.revokeShareLabel ?? "Revoke access";
2290
2290
  return {
2291
- title: H?.revokeShareConfirmTitle ?? t,
2292
- message: H?.revokeShareConfirmMessage?.(e.name) ?? /* @__PURE__ */ q(ht, { children: [
2291
+ title: B?.revokeShareConfirmTitle ?? t,
2292
+ message: B?.revokeShareConfirmMessage?.(e.name) ?? /* @__PURE__ */ K(gt, { children: [
2293
2293
  "Revoke shared access to ",
2294
- /* @__PURE__ */ K("strong", { children: e.name }),
2294
+ /* @__PURE__ */ G("strong", { children: e.name }),
2295
2295
  "? Anyone you shared it with will lose access."
2296
2296
  ] }),
2297
- consequences: H?.revokeShareConfirmConsequences ?? vr,
2297
+ consequences: B?.revokeShareConfirmConsequences ?? vr,
2298
2298
  confirmLabel: t,
2299
- loadingStatusLabel: H?.revokingShareStatusLabel ?? "Revoking access",
2300
- variant: me.Danger
2299
+ loadingStatusLabel: B?.revokingShareStatusLabel ?? "Revoking access",
2300
+ variant: ge.Danger
2301
2301
  };
2302
2302
  }
2303
2303
  case Y.Unpublish: {
2304
- let t = H?.unpublishLabel ?? "Unpublish", n = zt.length === 1, r = n ? Vt(zt[0].key) : "", i = H?.unpublishConfirmMessage?.(e.name, r) ?? /* @__PURE__ */ q(ht, { children: [
2304
+ let t = B?.unpublishLabel ?? "Unpublish", n = Ft.length === 1, r = n ? Lt(Ft[0].key) : "", i = B?.unpublishConfirmMessage?.(e.name, r) ?? /* @__PURE__ */ K(gt, { children: [
2305
2305
  "Unpublish ",
2306
- /* @__PURE__ */ K("strong", { children: e.name }),
2306
+ /* @__PURE__ */ G("strong", { children: e.name }),
2307
2307
  " from \"",
2308
2308
  r,
2309
2309
  "\"? The request is submitted for admin approval."
2310
- ] }), a = H?.unpublishSelectFolderMessage?.(e.name) ?? /* @__PURE__ */ q(ht, { children: [
2310
+ ] }), a = B?.unpublishSelectFolderMessage?.(e.name) ?? /* @__PURE__ */ K(gt, { children: [
2311
2311
  "Choose which folder to unpublish ",
2312
- /* @__PURE__ */ K("strong", { children: e.name }),
2312
+ /* @__PURE__ */ G("strong", { children: e.name }),
2313
2313
  " from. The request is submitted for admin approval."
2314
2314
  ] });
2315
2315
  return {
2316
- title: H?.unpublishConfirmTitle ?? t,
2316
+ title: B?.unpublishConfirmTitle ?? t,
2317
2317
  message: n ? i : a,
2318
- consequences: H?.unpublishConfirmConsequences ?? _r,
2318
+ consequences: B?.unpublishConfirmConsequences ?? _r,
2319
2319
  confirmLabel: t,
2320
- loadingStatusLabel: H?.unpublishingStatusLabel ?? "Requesting unpublish",
2321
- variant: me.Danger
2320
+ loadingStatusLabel: B?.unpublishingStatusLabel ?? "Requesting unpublish",
2321
+ variant: ge.Danger
2322
2322
  };
2323
2323
  }
2324
2324
  case Y.Logout: {
2325
- let e = H?.logoutActionLabel ?? "Log out";
2325
+ let e = B?.logoutActionLabel ?? "Log out";
2326
2326
  return {
2327
2327
  title: e,
2328
- message: H?.logoutConfirmMessage ?? "Are you sure you want to log out?",
2328
+ message: B?.logoutConfirmMessage ?? "Are you sure you want to log out?",
2329
2329
  consequences: void 0,
2330
2330
  confirmLabel: e,
2331
- loadingStatusLabel: H?.loggingOutStatusLabel ?? "Logging out",
2332
- variant: me.Info
2331
+ loadingStatusLabel: B?.loggingOutStatusLabel ?? "Logging out",
2332
+ variant: ge.Info
2333
2333
  };
2334
2334
  }
2335
2335
  case Y.DeleteApiKey: {
2336
- let e = H?.deleteActionLabel ?? "Delete", t = Et ?? b.User;
2336
+ let e = B?.deleteActionLabel ?? "Delete", t = X ?? b.User;
2337
2337
  return {
2338
2338
  title: e,
2339
- message: (H?.deleteApiKeyConfirmMessage ?? br)(t),
2339
+ message: (B?.deleteApiKeyConfirmMessage ?? br)(t),
2340
2340
  consequences: void 0,
2341
2341
  confirmLabel: e,
2342
- loadingStatusLabel: H?.deletingStatusLabel ?? "Deleting",
2343
- variant: me.Danger,
2344
- cardVariant: me.Info
2342
+ loadingStatusLabel: B?.deletingStatusLabel ?? "Deleting",
2343
+ variant: ge.Danger,
2344
+ cardVariant: ge.Info
2345
2345
  };
2346
2346
  }
2347
2347
  default: return null;
2348
2348
  }
2349
2349
  }, [
2350
- X,
2350
+ xt,
2351
2351
  e.name,
2352
- Et,
2353
- H,
2354
- zt,
2355
- Vt
2356
- ]), fn = dn != null, pn = X === Y.Unpublish && dr(zt, At) == null, mn = fn || Le || St, hn = e.credentials == null ? "" : (H?.credentialsManagementTitle ?? yr)(e.credentials.authenticationType), gn = fn ? {
2357
- title: dn.title,
2358
- isBackDisabled: Z,
2359
- onBack: Gt
2360
- } : Le ? {
2361
- title: sn,
2362
- isBackDisabled: G.isSubmitting,
2363
- onBack: Jt
2364
- } : St ? {
2365
- title: hn,
2352
+ X,
2353
+ B,
2354
+ Ft,
2355
+ Lt
2356
+ ]), sn = on != null, cn = xt === Y.Unpublish && dr(Ft, Et) == null, ln = sn || Be || mt, dn = e.credentials == null ? "" : (B?.credentialsManagementTitle ?? yr)(e.credentials.authenticationType), fn = sn ? {
2357
+ title: on.title,
2358
+ isBackDisabled: St,
2359
+ onBack: Bt
2360
+ } : Be ? {
2361
+ title: nn,
2362
+ isBackDisabled: W.isSubmitting,
2363
+ onBack: Wt
2364
+ } : mt ? {
2365
+ title: dn,
2366
2366
  isBackDisabled: !1,
2367
- onBack: Pt
2368
- } : null, _n = gn?.title ?? rn;
2369
- return /* @__PURE__ */ q(Pe, {
2367
+ onBack: At
2368
+ } : null, pn = fn?.title ?? Zt;
2369
+ return /* @__PURE__ */ K(Le, {
2370
2370
  open: n,
2371
2371
  onClose: o,
2372
- header: gn?.title,
2373
- ariaLabel: _n,
2374
- onBack: gn?.onBack,
2375
- backAriaLabel: cn,
2376
- backDisabled: gn?.isBackDisabled,
2377
- hideClose: gn != null,
2378
- closeAriaLabel: an,
2379
- headerActions: gn == null && !a && c?.(e) !== !1 ? /* @__PURE__ */ K(Ht, {
2380
- isStarred: Ae,
2381
- ariaLabel: on,
2382
- onClick: Xt
2372
+ header: fn?.title,
2373
+ ariaLabel: pn,
2374
+ onBack: fn?.onBack,
2375
+ backAriaLabel: rn,
2376
+ backDisabled: fn?.isBackDisabled,
2377
+ hideClose: fn != null,
2378
+ closeAriaLabel: Qt,
2379
+ headerActions: fn == null && !a && c?.(e) !== !1 ? /* @__PURE__ */ G(Ht, {
2380
+ isStarred: Ne,
2381
+ ariaLabel: $t,
2382
+ onClick: Kt
2383
2383
  }) : void 0,
2384
- style: ke,
2385
- overlayStyle: ke,
2384
+ style: Me,
2385
+ overlayStyle: Me,
2386
2386
  className: Dn.panel,
2387
2387
  overlayClassName: Dn.backdrop,
2388
2388
  headerClassName: Dn.divider,
2389
- titleClassName: M(we, Dn.publishTitle),
2389
+ titleClassName: M(Ee, Dn.publishTitle),
2390
2390
  bodyClassName: "flex flex-col overflow-hidden",
2391
2391
  children: [
2392
- /* @__PURE__ */ q("div", {
2392
+ /* @__PURE__ */ K("div", {
2393
2393
  className: M("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", Dn.content),
2394
2394
  children: [
2395
- fn && /* @__PURE__ */ K(C, {
2395
+ sn && /* @__PURE__ */ G(C, {
2396
2396
  item: e,
2397
- message: dn.message,
2398
- consequences: dn.consequences,
2399
- variant: dn.cardVariant ?? dn.variant,
2400
- messageClassName: U,
2397
+ message: on.message,
2398
+ consequences: on.consequences,
2399
+ variant: on.cardVariant ?? on.variant,
2400
+ messageClassName: je,
2401
2401
  styles: { colors: {
2402
- messageText: W?.confirmMessageText,
2403
- consequenceText: W?.confirmConsequenceText,
2404
- cardBackground: W?.infoCardBackground,
2405
- cardDangerBackground: W?.infoCardDangerBackground
2402
+ messageText: V?.confirmMessageText,
2403
+ consequenceText: V?.confirmConsequenceText,
2404
+ cardBackground: V?.infoCardBackground,
2405
+ cardDangerBackground: V?.infoCardDangerBackground
2406
2406
  } },
2407
- children: X === Y.Unpublish && zt.length > 1 && /* @__PURE__ */ K(je, {
2408
- ariaLabel: H?.unpublishFolderGroupAriaLabel ?? "Published folders",
2409
- value: At ?? void 0,
2410
- onChange: jt,
2411
- disabled: Z,
2412
- items: zt.map((e) => ({
2407
+ children: xt === Y.Unpublish && Ft.length > 1 && /* @__PURE__ */ G(Pe, {
2408
+ ariaLabel: B?.unpublishFolderGroupAriaLabel ?? "Published folders",
2409
+ value: Et ?? void 0,
2410
+ onChange: Dt,
2411
+ disabled: St,
2412
+ items: Ft.map((e) => ({
2413
2413
  value: e.key,
2414
- label: Vt(e.key)
2414
+ label: Lt(e.key)
2415
2415
  })),
2416
- radioClassName: U
2416
+ radioClassName: je
2417
2417
  })
2418
2418
  }),
2419
- !fn && !Le && St && /* @__PURE__ */ K(En, {
2419
+ !sn && !Be && mt && /* @__PURE__ */ G(En, {
2420
2420
  item: e,
2421
- onLogin: be,
2422
- onRequestLogout: It,
2423
- onRequestDeleteApiKey: Wt,
2424
- texts: H,
2425
- detailsStyles: Se
2421
+ onLogin: Se,
2422
+ onRequestLogout: Mt,
2423
+ onRequestDeleteApiKey: zt,
2424
+ texts: B,
2425
+ detailsStyles: we
2426
2426
  }),
2427
- !fn && Le && /* @__PURE__ */ K("div", {
2427
+ !sn && Be && /* @__PURE__ */ G("div", {
2428
2428
  className: "p-[22px]",
2429
- children: /* @__PURE__ */ K(_t, {
2429
+ children: /* @__PURE__ */ G(vt, {
2430
2430
  resource: {
2431
2431
  title: e.name,
2432
2432
  version: e.version,
2433
2433
  type: e.type,
2434
2434
  iconUrl: e.iconUrl
2435
2435
  },
2436
- history: Be,
2437
- isHistoryLoading: He,
2438
- hasHistoryError: We,
2439
- folderItems: G.folderItems,
2440
- selectedFolderPath: G.selectedFolderPath,
2441
- onSelectedFolderPathChange: G.setSelectedFolderPath,
2442
- onCreateFolder: G.handleCreateFolder,
2436
+ folderItems: W.folderItems,
2437
+ selectedFolderPath: W.selectedFolderPath,
2438
+ onSelectedFolderPathChange: W.setSelectedFolderPath,
2439
+ onCreateFolder: W.handleCreateFolder,
2443
2440
  expandedPaths: v,
2444
2441
  onExpandedPathsChange: y,
2445
2442
  loadingPaths: w,
2446
- hasExistingPublicationInFolder: G.hasExistingPublicationInFolder,
2447
- hasWriteAccess: G.hasWriteAccess,
2448
- isSubmitting: G.isSubmitting,
2449
- hasSubmitError: G.hasSubmitError,
2450
- author: G.author,
2451
- onAuthorChange: G.setAuthor,
2452
- publishCredentials: G.publishCredentials,
2453
- onPublishCredentialsChange: bt ? G.setPublishCredentials : void 0,
2454
- rules: G.rules,
2455
- onRulesChange: G.setRules,
2443
+ hasExistingPublicationInFolder: W.hasExistingPublicationInFolder,
2444
+ hasWriteAccess: W.hasWriteAccess,
2445
+ isSubmitting: W.isSubmitting,
2446
+ hasSubmitError: W.hasSubmitError,
2447
+ author: W.author,
2448
+ onAuthorChange: W.setAuthor,
2449
+ publishCredentials: W.publishCredentials,
2450
+ onPublishCredentialsChange: ft ? W.setPublishCredentials : void 0,
2451
+ rules: W.rules,
2452
+ onRulesChange: W.setRules,
2456
2453
  ruleSourceOptions: te,
2457
- isRulesLoading: G.isRulesLoading,
2458
- hasRulesLoadError: G.hasRulesLoadError,
2454
+ isRulesLoading: W.isRulesLoading,
2455
+ hasRulesLoadError: W.hasRulesLoadError,
2459
2456
  labels: A,
2460
2457
  styles: { colors: {
2461
- summaryVersionTagBorder: W?.versionTagBorder,
2462
- summaryVersionTagBackground: W?.versionTagBackground,
2463
- summaryVersionTagText: W?.versionTagText
2458
+ summaryVersionTagBorder: V?.versionTagBorder,
2459
+ summaryVersionTagBackground: V?.versionTagBackground,
2460
+ summaryVersionTagText: V?.versionTagText
2464
2461
  } }
2465
2462
  })
2466
2463
  }),
2467
- !mn && /* @__PURE__ */ q(ht, { children: [
2468
- /* @__PURE__ */ K(Rn, {
2464
+ !ln && /* @__PURE__ */ K(gt, { children: [
2465
+ /* @__PURE__ */ G(Rn, {
2469
2466
  item: e,
2470
2467
  onUseInChat: l,
2471
2468
  isPrimaryActionVisible: u,
2472
2469
  onShare: d,
2473
2470
  shareOverlay: re,
2474
2471
  isShareVisible: ie,
2475
- isSharePrimary: N,
2472
+ isSharePrimary: ae,
2476
2473
  isPublishVisible: f,
2477
2474
  isPublishPrimary: p,
2478
- onOpenPublish: qt,
2479
- isUnpublishVisible: ye,
2480
- hasPublishedFolders: Bt,
2481
- isPublishHistoryResolved: h == null || Ke,
2482
- onRequestPublishHistory: pt,
2483
- onOpenUnpublish: ve ? Ut : void 0,
2484
- onEdit: ae,
2485
- onDownload: oe,
2486
- isDownloadVisible: se,
2487
- isDownloadPrimary: z,
2488
- onDelete: pe ? Ft : void 0,
2489
- onUnshare: B ? Lt : void 0,
2490
- isUnshareVisible: V,
2491
- onRevokeShare: he ? Rt : void 0,
2492
- onFetchRecipientsCount: ge,
2493
- isRevokeShareVisible: _e,
2494
- onLogin: be,
2495
- onLogout: xe,
2496
- onOpenCredentialsManagement: Nt,
2497
- onRequestLogout: It,
2498
- texts: H,
2499
- detailsStyles: Se,
2475
+ onOpenPublish: Ut,
2476
+ isUnpublishVisible: xe,
2477
+ hasPublishedFolders: It,
2478
+ isPublishHistoryResolved: h == null || Ge,
2479
+ onRequestPublishHistory: U,
2480
+ onOpenUnpublish: be ? Rt : void 0,
2481
+ onEdit: oe,
2482
+ onDownload: se,
2483
+ isDownloadVisible: ce,
2484
+ isDownloadPrimary: le,
2485
+ onDelete: he ? jt : void 0,
2486
+ onUnshare: R ? Nt : void 0,
2487
+ isUnshareVisible: z,
2488
+ onRevokeShare: _e ? Pt : void 0,
2489
+ onFetchRecipientsCount: ve,
2490
+ isRevokeShareVisible: ye,
2491
+ onLogin: Se,
2492
+ onLogout: Ce,
2493
+ onOpenCredentialsManagement: kt,
2494
+ onRequestLogout: Mt,
2495
+ texts: B,
2496
+ detailsStyles: we,
2500
2497
  isReadonly: a
2501
2498
  }),
2502
2499
  e.credentials != null && (() => {
2503
2500
  let t = m(e.credentials);
2504
- return t != null && /* @__PURE__ */ K("div", {
2501
+ return t != null && /* @__PURE__ */ G("div", {
2505
2502
  className: "px-6",
2506
- children: /* @__PURE__ */ K(Sn, {
2503
+ children: /* @__PURE__ */ G(Sn, {
2507
2504
  state: t,
2508
2505
  authenticationType: e.credentials.authenticationType,
2509
- texts: H
2506
+ texts: B
2510
2507
  })
2511
2508
  });
2512
2509
  })(),
2513
- !a && n && fe?.(e),
2514
- /* @__PURE__ */ q("div", {
2510
+ !a && n && me?.(e),
2511
+ /* @__PURE__ */ K("div", {
2515
2512
  className: "flex items-center px-6",
2516
- children: [/* @__PURE__ */ K(Re, {
2517
- tabs: Zt,
2518
- activeTabId: Ne,
2519
- onTabChange: Ie
2520
- }), i && /* @__PURE__ */ K("div", {
2513
+ children: [/* @__PURE__ */ G(Ve, {
2514
+ tabs: qt,
2515
+ activeTabId: Ie,
2516
+ onTabChange: ze
2517
+ }), i && /* @__PURE__ */ G("div", {
2521
2518
  role: "status",
2522
- "aria-label": H?.detailsLoadingAriaLabel ?? "Loading details",
2519
+ "aria-label": B?.detailsLoadingAriaLabel ?? "Loading details",
2523
2520
  className: "shrink-0",
2524
- children: /* @__PURE__ */ K(Fe, {
2521
+ children: /* @__PURE__ */ G(Re, {
2525
2522
  showTitle: !1,
2526
2523
  paragraph: {
2527
2524
  rows: 1,
@@ -2532,88 +2529,88 @@ var xt = /* @__PURE__ */ function(e) {
2532
2529
  })
2533
2530
  })]
2534
2531
  }),
2535
- /* @__PURE__ */ q("div", {
2536
- className: M("min-h-0 flex-1 overflow-y-auto", Ne !== J.Overview && "px-6"),
2532
+ /* @__PURE__ */ K("div", {
2533
+ className: M("min-h-0 flex-1 overflow-y-auto", Ie !== J.Overview && "px-6"),
2537
2534
  children: [
2538
- Ne === J.About && /* @__PURE__ */ K(zn, {
2535
+ Ie === J.About && /* @__PURE__ */ G(zn, {
2539
2536
  content: e.description,
2540
2537
  topics: e.topics,
2541
- detailsStyles: Se
2538
+ detailsStyles: we
2542
2539
  }),
2543
- Ne === J.Content && /* @__PURE__ */ K(Wn, {
2544
- content: Ye?.content ?? "",
2545
- filePreview: dt(),
2546
- filePreviewContent: ft,
2547
- renderFileTree: de,
2548
- description: Ye?.description ?? e.description,
2549
- files: Ye?.files,
2550
- selectedFileId: ut,
2551
- onSelectFile: (e) => void lt(e),
2552
- isFileLoading: $e,
2553
- expandedFolderIds: tt,
2554
- onToggleFolder: ct,
2555
- isFileSelectorOpen: rt,
2556
- onFileSelectorOpenChange: it,
2557
- fileSelectorAriaLabel: H?.contentFileSelectorAriaLabel,
2558
- fileCountLabel: H?.contentFileCountLabel,
2559
- fileLoadingLabel: H?.contentFileLoadingLabel,
2560
- fileUnsupportedLabel: H?.contentFileUnsupportedLabel,
2561
- detailsStyles: Se
2540
+ Ie === J.Content && /* @__PURE__ */ G(Wn, {
2541
+ content: Je?.content ?? "",
2542
+ filePreview: lt(),
2543
+ filePreviewContent: ut,
2544
+ renderFileTree: pe,
2545
+ description: Je?.description ?? e.description,
2546
+ files: Je?.files,
2547
+ selectedFileId: ct,
2548
+ onSelectFile: (e) => void st(e),
2549
+ isFileLoading: Qe,
2550
+ expandedFolderIds: et,
2551
+ onToggleFolder: ot,
2552
+ isFileSelectorOpen: tt,
2553
+ onFileSelectorOpenChange: nt,
2554
+ fileSelectorAriaLabel: B?.contentFileSelectorAriaLabel,
2555
+ fileCountLabel: B?.contentFileCountLabel,
2556
+ fileLoadingLabel: B?.contentFileLoadingLabel,
2557
+ fileUnsupportedLabel: B?.contentFileUnsupportedLabel,
2558
+ detailsStyles: we
2562
2559
  }),
2563
- Ne === J.Overview && /* @__PURE__ */ K(rr, {
2560
+ Ie === J.Overview && /* @__PURE__ */ G(rr, {
2564
2561
  sections: e.details?.overview?.sections,
2565
- sectionClassName: Te,
2566
- labelClassName: Ee,
2567
- valueClassName: De,
2568
- valueTrueClassName: Oe,
2569
- yesLabel: $t,
2570
- noLabel: nn
2562
+ sectionClassName: De,
2563
+ labelClassName: Oe,
2564
+ valueClassName: ke,
2565
+ valueTrueClassName: Ae,
2566
+ yesLabel: Yt,
2567
+ noLabel: Xt
2571
2568
  }),
2572
- Ne === J.Pricing && /* @__PURE__ */ K(ir, {
2569
+ Ie === J.Pricing && /* @__PURE__ */ G(ir, {
2573
2570
  pricing: e.details?.pricing,
2574
- pricesSectionLabel: H?.pricingPricesSectionLabel,
2575
- limitsSectionLabel: H?.pricingLimitsSectionLabel
2571
+ pricesSectionLabel: B?.pricingPricesSectionLabel,
2572
+ limitsSectionLabel: B?.pricingLimitsSectionLabel
2576
2573
  }),
2577
- Ne === J.Limits && /* @__PURE__ */ K(nr, {
2574
+ Ie === J.Limits && /* @__PURE__ */ G(nr, {
2578
2575
  limits: e.details?.limits,
2579
- footerNote: Ce
2576
+ footerNote: Te
2580
2577
  }),
2581
- Ne === J.Api && ur(e.details?.api) && /* @__PURE__ */ K(un, {
2578
+ Ie === J.Api && ur(e.details?.api) && /* @__PURE__ */ G(un, {
2582
2579
  api: e.details?.api,
2583
- resourceSectionLabel: H?.apiResourceSectionLabel,
2584
- snippetSectionLabel: H?.apiSnippetSectionLabel,
2585
- modelIdLabel: H?.apiModelIdLabel,
2586
- endpointLabel: H?.apiEndpointLabel,
2587
- endpointSectionLabel: H?.apiEndpointSectionLabel,
2588
- requestExampleLabel: H?.apiRequestExampleLabel,
2589
- responseSchemaLabel: H?.apiResponseSchemaLabel,
2590
- copyAriaLabel: H?.copyCodeAriaLabel,
2591
- copiedStatusLabel: H?.copiedCodeStatusLabel
2580
+ resourceSectionLabel: B?.apiResourceSectionLabel,
2581
+ snippetSectionLabel: B?.apiSnippetSectionLabel,
2582
+ modelIdLabel: B?.apiModelIdLabel,
2583
+ endpointLabel: B?.apiEndpointLabel,
2584
+ endpointSectionLabel: B?.apiEndpointSectionLabel,
2585
+ requestExampleLabel: B?.apiRequestExampleLabel,
2586
+ responseSchemaLabel: B?.apiResponseSchemaLabel,
2587
+ copyAriaLabel: B?.copyCodeAriaLabel,
2588
+ copiedStatusLabel: B?.copiedCodeStatusLabel
2592
2589
  }),
2593
- Ne === J.Tools && /* @__PURE__ */ K(cr, { tools: e.details?.tools })
2590
+ Ie === J.Tools && /* @__PURE__ */ G(cr, { tools: e.details?.tools })
2594
2591
  ]
2595
2592
  })
2596
2593
  ] })
2597
2594
  ]
2598
2595
  }),
2599
- fn && /* @__PURE__ */ K(S, {
2600
- confirmLabel: dn.confirmLabel,
2601
- cancelLabel: ln,
2602
- variant: dn.variant,
2603
- isLoading: Z,
2604
- isConfirmDisabled: pn,
2605
- loadingStatusLabel: dn.loadingStatusLabel,
2606
- styles: { colors: { border: W?.confirmFooterBorder } },
2607
- onConfirm: Kt,
2608
- onCancel: Gt
2596
+ sn && /* @__PURE__ */ G(S, {
2597
+ confirmLabel: on.confirmLabel,
2598
+ cancelLabel: an,
2599
+ variant: on.variant,
2600
+ isLoading: St,
2601
+ isConfirmDisabled: cn,
2602
+ loadingStatusLabel: on.loadingStatusLabel,
2603
+ styles: { colors: { border: V?.confirmFooterBorder } },
2604
+ onConfirm: Vt,
2605
+ onCancel: Bt
2609
2606
  }),
2610
- !fn && Le && /* @__PURE__ */ K(gt, {
2607
+ !sn && Be && /* @__PURE__ */ G(_t, {
2611
2608
  version: e.version,
2612
- hasExistingPublicationInFolder: G.hasExistingPublicationInFolder,
2613
- isSubmitDisabled: xt.isSubmitDisabled,
2614
- isSubmitLoading: xt.isSubmitLoading,
2615
- onCancel: Jt,
2616
- onSubmit: Yt,
2609
+ hasExistingPublicationInFolder: W.hasExistingPublicationInFolder,
2610
+ isSubmitDisabled: pt.isSubmitDisabled,
2611
+ isSubmitLoading: pt.isSubmitLoading,
2612
+ onCancel: Wt,
2613
+ onSubmit: Gt,
2617
2614
  labels: A
2618
2615
  })
2619
2616
  ]
@@ -2634,18 +2631,18 @@ var xt = /* @__PURE__ */ function(e) {
2634
2631
  cardLeaving: "_cardLeaving_14qfn_54",
2635
2632
  cardFadeOut: "_cardFadeOut_14qfn_1"
2636
2633
  }, wr = ({ 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 }) => {
2637
- let [m, h] = R(t), [g, _] = R(!1), v = (t) => {
2634
+ let [m, h] = L(t), [g, _] = L(!1), v = (t) => {
2638
2635
  t.stopPropagation();
2639
2636
  let r = !m;
2640
2637
  h(r), r ? n?.(e.id, r) : _(!0);
2641
- }, y = i && !g ? () => i(e) : void 0, b = P((t) => {
2638
+ }, y = i && !g ? () => i(e) : void 0, b = N((t) => {
2642
2639
  !i || g || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), i(e));
2643
2640
  }, [
2644
2641
  i,
2645
2642
  e,
2646
2643
  g
2647
2644
  ]);
2648
- return /* @__PURE__ */ q(fe, {
2645
+ return /* @__PURE__ */ K(me, {
2649
2646
  "data-card-id": e.id,
2650
2647
  role: y == null ? void 0 : "button",
2651
2648
  tabIndex: y == null ? void 0 : 0,
@@ -2657,15 +2654,15 @@ var xt = /* @__PURE__ */ function(e) {
2657
2654
  t.currentTarget === t.target && n?.(e.id, !1);
2658
2655
  } : void 0,
2659
2656
  children: [
2660
- f && /* @__PURE__ */ K(Ge, {
2661
- size: B.SM,
2657
+ f && /* @__PURE__ */ G(Je, {
2658
+ size: R.SM,
2662
2659
  className: M("absolute end-3 top-3 shrink-0", Cr.selectedCheck),
2663
2660
  "aria-hidden": !0,
2664
- stroke: V
2661
+ stroke: z
2665
2662
  }),
2666
- /* @__PURE__ */ K("div", {
2663
+ /* @__PURE__ */ G("div", {
2667
2664
  className: "flex min-w-0 flex-1 flex-col items-start gap-1",
2668
- children: /* @__PURE__ */ K(Rt, {
2665
+ children: /* @__PURE__ */ G(Rt, {
2669
2666
  icon: e.iconUrl,
2670
2667
  type: e.type,
2671
2668
  name: e.name,
@@ -2682,15 +2679,15 @@ var xt = /* @__PURE__ */ function(e) {
2682
2679
  lastUsedClassName: c
2683
2680
  }
2684
2681
  },
2685
- iconOverlay: /* @__PURE__ */ K(Bt, {
2682
+ iconOverlay: /* @__PURE__ */ G(Bt, {
2686
2683
  credentials: e.credentials,
2687
2684
  loggedOutLabel: p
2688
2685
  })
2689
2686
  })
2690
2687
  }),
2691
- r?.(e) !== !1 && /* @__PURE__ */ K(Ht, {
2688
+ r?.(e) !== !1 && /* @__PURE__ */ G(Ht, {
2692
2689
  isStarred: m,
2693
- size: ve.Small,
2690
+ size: be.Small,
2694
2691
  onClick: v,
2695
2692
  ariaLabel: m ? d : u,
2696
2693
  className: "self-end"
@@ -2719,49 +2716,49 @@ var xt = /* @__PURE__ */ function(e) {
2719
2716
  "--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
2720
2717
  "--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
2721
2718
  "--cat-fav-page-nav-bg": o?.colors?.pageNavBackground
2722
- }), v = I(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = R(1), x = Tt(), S = x * Tr, C = (y - 1) * S, w = I(() => v.slice(C, C + S), [
2719
+ }), v = F(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = L(1), x = Tt(), S = x * Tr, C = (y - 1) * S, w = F(() => v.slice(C, C + S), [
2723
2720
  v,
2724
2721
  C,
2725
2722
  S
2726
- ]), T = Math.ceil(v.length / S), E = t ?? e.length, D = L(null), O = L(null), k = L(null), [A, te] = R(), [ne, re] = R(), ie = L(x);
2727
- F(() => {
2723
+ ]), T = Math.ceil(v.length / S), E = t ?? e.length, D = I(null), O = I(null), k = I(null), [A, te] = L(), [ne, re] = L(), ie = I(x);
2724
+ P(() => {
2728
2725
  ie.current !== x && (ie.current = x, b(1), te(void 0), re(void 0));
2729
- }, [x]), F(() => {
2726
+ }, [x]), P(() => {
2730
2727
  y > T && T > 0 && b(T);
2731
- }, [y, T]), F(() => {
2728
+ }, [y, T]), P(() => {
2732
2729
  T <= 1 && (A !== void 0 || ne !== void 0) && (te(void 0), re(void 0));
2733
2730
  }, [
2734
2731
  T,
2735
2732
  A,
2736
2733
  ne
2737
- ]), se(() => {
2734
+ ]), ce(() => {
2738
2735
  !k.current || !O.current || T <= 1 || y !== 1 || A !== void 0 || (te(k.current.offsetHeight), re(O.current.offsetHeight));
2739
2736
  }, [
2740
2737
  T,
2741
2738
  y,
2742
2739
  A
2743
2740
  ]);
2744
- let N = L(/* @__PURE__ */ new Map()), ae = L(y), P = L(x), oe = L(0), z = L(!1);
2745
- return se(() => {
2741
+ let ae = I(/* @__PURE__ */ new Map()), oe = I(y), N = I(x), se = I(0), le = I(!1);
2742
+ return ce(() => {
2746
2743
  if (!k.current || s) return;
2747
- if (D.current && !z.current) {
2744
+ if (D.current && !le.current) {
2748
2745
  let e = D.current;
2749
2746
  e.style.height = "", e.style.transition = "";
2750
2747
  }
2751
- let e = ae.current !== y, t = P.current !== x;
2752
- ae.current = y, P.current = x;
2748
+ let e = oe.current !== y, t = N.current !== x;
2749
+ oe.current = y, N.current = x;
2753
2750
  let n = k.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
2754
2751
  if (n.forEach((e) => {
2755
2752
  r.set(e.dataset.cardId, Er(e));
2756
2753
  }), !e && !t) {
2757
- let e = O.current, t = oe.current, i = 0;
2754
+ let e = O.current, t = se.current, i = 0;
2758
2755
  if (e) {
2759
2756
  let t = e.style.height;
2760
2757
  t && (e.style.height = ""), i = e.offsetHeight, t && (e.style.height = t);
2761
2758
  }
2762
2759
  let a = e != null && t > 0 && Math.abs(i - t) > 2, o = i > t ? 280 : 220, s = [];
2763
2760
  if (n.forEach((e) => {
2764
- let t = e.dataset.cardId, n = N.current.get(t), i = r.get(t);
2761
+ let t = e.dataset.cardId, n = ae.current.get(t), i = r.get(t);
2765
2762
  if (!n || !i) return;
2766
2763
  let o = n.left - i.left, c = n.top - i.top;
2767
2764
  !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));
@@ -2777,36 +2774,36 @@ var xt = /* @__PURE__ */ function(e) {
2777
2774
  e.addEventListener("transitionend", t);
2778
2775
  }
2779
2776
  }
2780
- if (N.current = r, O.current) {
2777
+ if (ae.current = r, O.current) {
2781
2778
  let e = O.current, t = e.style.height ? parseFloat(e.style.height) : NaN;
2782
- oe.current = Number.isNaN(t) ? e.offsetHeight : t;
2779
+ se.current = Number.isNaN(t) ? e.offsetHeight : t;
2783
2780
  }
2784
2781
  }, [
2785
2782
  w,
2786
2783
  y,
2787
2784
  x,
2788
2785
  s
2789
- ]), se(() => {
2786
+ ]), ce(() => {
2790
2787
  let e = D.current;
2791
2788
  if (!e) return;
2792
2789
  let t = e.offsetHeight;
2793
2790
  if (t === 0) return;
2794
- 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`;
2791
+ le.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`;
2795
2792
  let n = (t) => {
2796
2793
  t.target !== e || t.propertyName !== "height" || r();
2797
2794
  }, r = () => {
2798
- z.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
2795
+ le.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
2799
2796
  }, i = setTimeout(r, 400);
2800
2797
  return e.addEventListener("transitionend", n), () => {
2801
2798
  clearTimeout(i), e.removeEventListener("transitionend", n);
2802
2799
  };
2803
- }, []), se(() => {
2800
+ }, []), ce(() => {
2804
2801
  if (!s || !D.current) return;
2805
2802
  let e = D.current, t = e.offsetHeight;
2806
2803
  t !== 0 && (e.style.height = `${t}px`, e.offsetHeight, e.style.transition = "height 260ms ease-in", e.style.height = "0px");
2807
- }, [s]), /* @__PURE__ */ K("div", {
2804
+ }, [s]), /* @__PURE__ */ G("div", {
2808
2805
  ref: D,
2809
- children: /* @__PURE__ */ q("section", {
2806
+ children: /* @__PURE__ */ K("section", {
2810
2807
  ref: O,
2811
2808
  className: M("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", Cr.section, s && Cr.sectionLeaving),
2812
2809
  style: {
@@ -2816,28 +2813,28 @@ var xt = /* @__PURE__ */ function(e) {
2816
2813
  onAnimationEnd: (e) => {
2817
2814
  e.target === O.current && s && c?.();
2818
2815
  },
2819
- children: [/* @__PURE__ */ K(ee, {
2816
+ children: [/* @__PURE__ */ G(ee, {
2820
2817
  title: n,
2821
2818
  postfix: E,
2822
2819
  titleClassName: M(h, Cr.titleText),
2823
2820
  postfixClassName: M(g, Cr.countText),
2824
- trailing: T > 1 ? /* @__PURE__ */ q("div", {
2821
+ trailing: T > 1 ? /* @__PURE__ */ K("div", {
2825
2822
  className: M("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", Cr.pageNav),
2826
2823
  children: [
2827
- /* @__PURE__ */ K(H, {
2828
- size: ve.Small,
2824
+ /* @__PURE__ */ G(B, {
2825
+ size: be.Small,
2829
2826
  "aria-label": l,
2830
2827
  disabled: y === 1,
2831
2828
  onClick: () => b((e) => e - 1),
2832
2829
  className: M("rounded-full", Cr.navBtn),
2833
- icon: /* @__PURE__ */ K(qe, {
2830
+ icon: /* @__PURE__ */ G(Xe, {
2834
2831
  size: 14,
2835
2832
  "aria-hidden": !0,
2836
2833
  className: "rtl:scale-x-[-1]",
2837
- stroke: V
2834
+ stroke: z
2838
2835
  })
2839
2836
  }),
2840
- /* @__PURE__ */ q("span", {
2837
+ /* @__PURE__ */ K("span", {
2841
2838
  className: M("min-w-[32px] select-none px-1 text-center", g, Cr.countText),
2842
2839
  children: [
2843
2840
  y,
@@ -2845,29 +2842,29 @@ var xt = /* @__PURE__ */ function(e) {
2845
2842
  T
2846
2843
  ]
2847
2844
  }),
2848
- /* @__PURE__ */ K(H, {
2849
- size: ve.Small,
2845
+ /* @__PURE__ */ G(B, {
2846
+ size: be.Small,
2850
2847
  "aria-label": u,
2851
2848
  disabled: y === T,
2852
2849
  onClick: () => b((e) => e + 1),
2853
2850
  className: M("rounded-full", Cr.navBtn),
2854
- icon: /* @__PURE__ */ K(Je, {
2851
+ icon: /* @__PURE__ */ G(Ze, {
2855
2852
  size: 14,
2856
2853
  "aria-hidden": !0,
2857
2854
  className: "rtl:scale-x-[-1]",
2858
- stroke: V
2855
+ stroke: z
2859
2856
  })
2860
2857
  })
2861
2858
  ]
2862
2859
  }) : void 0
2863
- }), /* @__PURE__ */ K("div", {
2860
+ }), /* @__PURE__ */ G("div", {
2864
2861
  ref: k,
2865
2862
  className: M("grid content-start gap-5", Cr.gridPage),
2866
2863
  style: {
2867
2864
  gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
2868
2865
  minHeight: A
2869
2866
  },
2870
- children: w.map((e) => /* @__PURE__ */ K(wr, {
2867
+ children: w.map((e) => /* @__PURE__ */ G(wr, {
2871
2868
  item: e,
2872
2869
  onToggle: r,
2873
2870
  isFavoriteVisible: i,
@@ -2889,35 +2886,35 @@ var xt = /* @__PURE__ */ function(e) {
2889
2886
  selectedCheck: "_selectedCheck_lksnp_47",
2890
2887
  starToggleOff: "_starToggleOff_lksnp_51",
2891
2888
  selectedRow: "_selectedRow_lksnp_64"
2892
- }, kr = ({ data: e }) => e ? /* @__PURE__ */ K("div", {
2889
+ }, kr = ({ data: e }) => e ? /* @__PURE__ */ G("div", {
2893
2890
  className: "flex h-full items-center",
2894
- children: /* @__PURE__ */ K(D, { type: e.type })
2891
+ children: /* @__PURE__ */ G(D, { type: e.type })
2895
2892
  }) : null, Ar = " / ", jr = ({ data: e, context: t }) => {
2896
2893
  if (!e || e.folder.length === 0) return null;
2897
2894
  let n = e.folder.join(Ar), 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";
2898
- return /* @__PURE__ */ q("div", {
2895
+ return /* @__PURE__ */ K("div", {
2899
2896
  className: "flex h-full w-full min-w-0 items-center gap-1.5",
2900
2897
  children: [
2901
- /* @__PURE__ */ K($e, {
2902
- size: B.SM,
2903
- stroke: V,
2898
+ /* @__PURE__ */ G(tt, {
2899
+ size: R.SM,
2900
+ stroke: z,
2904
2901
  className: M("shrink-0", Or.folderIcon),
2905
2902
  "aria-hidden": !0
2906
2903
  }),
2907
- /* @__PURE__ */ K(Be, {
2908
- tooltip: /* @__PURE__ */ K("span", {
2904
+ /* @__PURE__ */ G(Ue, {
2905
+ tooltip: /* @__PURE__ */ G("span", {
2909
2906
  className: a,
2910
2907
  children: n
2911
2908
  }),
2912
2909
  hideTooltip: !i,
2913
2910
  triggerClassName: "min-w-0 flex-1",
2914
- children: /* @__PURE__ */ K(ye, {
2911
+ children: /* @__PURE__ */ G(xe, {
2915
2912
  text: r,
2916
2913
  className: o,
2917
2914
  hideTooltip: i
2918
2915
  })
2919
2916
  }),
2920
- i && /* @__PURE__ */ K("span", {
2917
+ i && /* @__PURE__ */ G("span", {
2921
2918
  className: "sr-only",
2922
2919
  children: n
2923
2920
  })
@@ -2925,41 +2922,41 @@ var xt = /* @__PURE__ */ function(e) {
2925
2922
  });
2926
2923
  }, Mr = ({ data: e, context: t }) => {
2927
2924
  let n = t?.searchQuery ?? "", r = t?.typography, i = r?.nameClassName ?? "dial-small-semi-text", a = r?.versionClassName ?? "dial-tiny-text", o = e != null && e.id === t?.selectedItemId;
2928
- return e ? /* @__PURE__ */ q("div", {
2925
+ return e ? /* @__PURE__ */ K("div", {
2929
2926
  className: "flex h-full w-full min-w-0 items-center gap-2.5",
2930
- children: [/* @__PURE__ */ q("div", {
2927
+ children: [/* @__PURE__ */ K("div", {
2931
2928
  className: "relative shrink-0",
2932
- children: [/* @__PURE__ */ K(T, {
2929
+ children: [/* @__PURE__ */ G(T, {
2933
2930
  src: e.iconUrl,
2934
2931
  size: 36,
2935
2932
  initialsName: e.name,
2936
2933
  styles: { badgeClassName: "rounded-[10px]" }
2937
- }), /* @__PURE__ */ K(Bt, {
2934
+ }), /* @__PURE__ */ G(Bt, {
2938
2935
  credentials: e.credentials,
2939
2936
  loggedOutLabel: t?.credentialsBadgeLoggedOutLabel
2940
2937
  })]
2941
- }), /* @__PURE__ */ K(ee, {
2938
+ }), /* @__PURE__ */ G(ee, {
2942
2939
  title: e.name,
2943
2940
  postfix: e.version,
2944
2941
  postfixClassName: a,
2945
2942
  query: n,
2946
2943
  titleClassName: i,
2947
2944
  className: "min-w-0 flex-1 items-baseline gap-1.5",
2948
- trailing: o ? /* @__PURE__ */ K(Ge, {
2949
- size: B.SM,
2945
+ trailing: o ? /* @__PURE__ */ G(Je, {
2946
+ size: R.SM,
2950
2947
  className: M("shrink-0", Or.selectedCheck),
2951
2948
  "aria-hidden": !0,
2952
- stroke: V
2949
+ stroke: z
2953
2950
  }) : void 0
2954
2951
  })]
2955
2952
  }) : null;
2956
2953
  }, Nr = ({ data: e, context: t }) => {
2957
- let [n, r] = R(e?.isStarred ?? !1);
2958
- return F(() => {
2954
+ let [n, r] = L(e?.isStarred ?? !1);
2955
+ return P(() => {
2959
2956
  r(e?.isStarred ?? !1);
2960
- }, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ K("div", {
2957
+ }, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ G("div", {
2961
2958
  className: "flex size-full items-center justify-end",
2962
- children: /* @__PURE__ */ K(Ht, {
2959
+ children: /* @__PURE__ */ G(Ht, {
2963
2960
  isStarred: n,
2964
2961
  onClick: (i) => {
2965
2962
  i.stopPropagation();
@@ -2969,9 +2966,9 @@ var xt = /* @__PURE__ */ function(e) {
2969
2966
  className: n ? void 0 : Or.starToggleOff
2970
2967
  })
2971
2968
  });
2972
- }, Pr = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ K("div", {
2969
+ }, Pr = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ G("div", {
2973
2970
  className: "flex h-full w-full min-w-0 items-center",
2974
- children: /* @__PURE__ */ K(qt, { topics: e.topics })
2971
+ children: /* @__PURE__ */ G(qt, { topics: e.topics })
2975
2972
  }), Fr = {
2976
2973
  folder: (e) => e !== x.Model,
2977
2974
  tags: () => !0,
@@ -3036,10 +3033,10 @@ var xt = /* @__PURE__ */ function(e) {
3036
3033
  cellRenderer: Nr
3037
3034
  }
3038
3035
  ];
3039
- }, Rr = 60, zr = {}, Br = (e) => e.id, Vr = (e) => e.items.length === 0 ? /* @__PURE__ */ K("div", {
3040
- className: Ve("flex size-full flex-col items-center justify-center", Et.listView),
3041
- children: /* @__PURE__ */ K(ne, { label: e.emptyStateTitle ?? "No results" })
3042
- }) : /* @__PURE__ */ K(Hr, { ...e }), Hr = ({ items: e, type: t, query: n = "", ariaLabel: r = "Catalog", emptyStateTitle: i, styles: a, onToggleFavorite: o, isFavoriteVisible: s, onItemClick: c, stickyHeaderTop: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f = !1, columnVisibility: p }) => {
3036
+ }, Rr = 60, zr = {}, Br = (e) => e.id, Vr = (e) => e.items.length === 0 ? /* @__PURE__ */ G("div", {
3037
+ className: We("flex size-full flex-col items-center justify-center", Et.listView),
3038
+ children: /* @__PURE__ */ G(ne, { label: e.emptyStateTitle ?? "No results" })
3039
+ }) : /* @__PURE__ */ G(Hr, { ...e }), Hr = ({ items: e, type: t, query: n = "", ariaLabel: r = "Catalog", emptyStateTitle: i, styles: a, onToggleFavorite: o, isFavoriteVisible: s, onItemClick: c, stickyHeaderTop: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f = !1, columnVisibility: p }) => {
3043
3040
  let m = a?.typography ?? zr, h = a?.colors, g = {
3044
3041
  "--cat-list-bg": h?.background,
3045
3042
  "--cat-list-border": h?.border,
@@ -3052,13 +3049,13 @@ var xt = /* @__PURE__ */ function(e) {
3052
3049
  "--cat-list-selected-bg": h?.selectedRowBackground,
3053
3050
  "--cat-list-selected-check": h?.selectedRowCheckIcon,
3054
3051
  ...l == null ? {} : { "--list-header-sticky-top": `${l}px` }
3055
- }, _ = L(null), v = P((e) => {
3052
+ }, _ = I(null), v = N((e) => {
3056
3053
  _.current = e;
3057
- }, []), y = I(() => Lr(t, f, p), [
3054
+ }, []), y = F(() => Lr(t, f, p), [
3058
3055
  t,
3059
3056
  f,
3060
3057
  p
3061
- ]), b = I(() => ({
3058
+ ]), b = F(() => ({
3062
3059
  domLayout: "autoHeight",
3063
3060
  rowHeight: Rr,
3064
3061
  animateRows: !1,
@@ -3091,27 +3088,27 @@ var xt = /* @__PURE__ */ function(e) {
3091
3088
  d,
3092
3089
  f,
3093
3090
  c
3094
- ]), { containerRef: x, startRow: S, endRow: C } = Pt(e.length, Rr), w = I(() => e.slice(S, C), [
3091
+ ]), { containerRef: x, startRow: S, endRow: C } = Pt(e.length, Rr), w = F(() => e.slice(S, C), [
3095
3092
  e,
3096
3093
  S,
3097
3094
  C
3098
3095
  ]);
3099
- return F(() => {
3096
+ return P(() => {
3100
3097
  _.current?.refreshCells({ force: !0 });
3101
- }, [n]), F(() => {
3098
+ }, [n]), P(() => {
3102
3099
  _.current?.redrawRows();
3103
- }, [u]), /* @__PURE__ */ K("div", {
3100
+ }, [u]), /* @__PURE__ */ G("div", {
3104
3101
  style: g,
3105
- className: Ve("w-full rounded-xl border", Or.listContainer, Et.listView),
3106
- children: /* @__PURE__ */ q("div", {
3102
+ className: We("w-full rounded-xl border", Or.listContainer, Et.listView),
3103
+ children: /* @__PURE__ */ K("div", {
3107
3104
  ref: x,
3108
- className: Ve("rounded-xl [&_.ag-cell.ag-column-first]:ps-4 [&_.ag-cell.ag-column-last]:pe-4 [&_.ag-header-cell.ag-column-first]:ps-4 [&_.ag-header-cell.ag-column-last]:pe-4", Or.gridClip),
3105
+ className: We("rounded-xl [&_.ag-cell.ag-column-first]:ps-4 [&_.ag-cell.ag-column-last]:pe-4 [&_.ag-header-cell.ag-column-first]:ps-4 [&_.ag-header-cell.ag-column-last]:pe-4", Or.gridClip),
3109
3106
  children: [
3110
- S > 0 && /* @__PURE__ */ K("div", {
3107
+ S > 0 && /* @__PURE__ */ G("div", {
3111
3108
  style: { height: S * Rr },
3112
3109
  "aria-hidden": !0
3113
3110
  }),
3114
- /* @__PURE__ */ K(bt, {
3111
+ /* @__PURE__ */ G(xt, {
3115
3112
  columnDefs: y,
3116
3113
  rowData: w,
3117
3114
  getRowId: Br,
@@ -3122,7 +3119,7 @@ var xt = /* @__PURE__ */ function(e) {
3122
3119
  additionalGridOptions: b,
3123
3120
  ariaLabel: r
3124
3121
  }),
3125
- C < e.length && /* @__PURE__ */ K("div", {
3122
+ C < e.length && /* @__PURE__ */ G("div", {
3126
3123
  style: { height: (e.length - C) * Rr },
3127
3124
  "aria-hidden": !0
3128
3125
  })
@@ -3148,7 +3145,7 @@ var xt = /* @__PURE__ */ function(e) {
3148
3145
  let n = new Set(t);
3149
3146
  return n.has(e) ? n.delete(e) : n.add(e), n;
3150
3147
  }, Kr = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: a = "My", topicsLabel: o = "Topics", defaultLabel: s = "From", clearLabel: c = "Clear", applyLabel: l = "Apply", typography: u, colors: d }) => {
3151
- let f = (r ?? !1) || e.size > 0, [p, m] = R(!1), h = j({
3148
+ let f = (r ?? !1) || e.size > 0, [p, m] = L(!1), h = j({
3152
3149
  "--cat-filter-btn-bg": d?.buttonBackground,
3153
3150
  "--cat-filter-btn-border": d?.buttonBorder,
3154
3151
  "--cat-filter-btn-border-hover": d?.buttonBorderHover,
@@ -3164,19 +3161,19 @@ var xt = /* @__PURE__ */ function(e) {
3164
3161
  "--cat-filter-section-label": d?.sectionLabel,
3165
3162
  "--cat-filter-divider": d?.divider,
3166
3163
  "--cat-filter-footer-border": d?.footerBorder
3167
- }), g = I(() => n == null ? [] : [...n].sort(), [n]), _ = Wr(e, n, r, a, s), [v, y] = R(() => new Set(e)), [b, x] = R(r ?? !1);
3168
- F(() => {
3164
+ }), g = F(() => n == null ? [] : [...n].sort(), [n]), _ = Wr(e, n, r, a, s), [v, y] = L(() => new Set(e)), [b, x] = L(r ?? !1);
3165
+ P(() => {
3169
3166
  p && (y(new Set(e)), x(r ?? !1));
3170
3167
  }, [
3171
3168
  p,
3172
3169
  e,
3173
3170
  r
3174
3171
  ]);
3175
- let S = g.length + 1, [C, w] = R(-1), T = L([]), E = L(null), D = P((e) => {
3172
+ let S = g.length + 1, [C, w] = L(-1), T = I([]), E = I(null), D = N((e) => {
3176
3173
  let t = (e + S) % S;
3177
3174
  w(t), T.current[t]?.focus();
3178
3175
  }, [S]);
3179
- F(() => {
3176
+ P(() => {
3180
3177
  if (!p) {
3181
3178
  w(-1);
3182
3179
  return;
@@ -3195,13 +3192,13 @@ var xt = /* @__PURE__ */ function(e) {
3195
3192
  }, te = () => {
3196
3193
  t(/* @__PURE__ */ new Set()), i?.(!1), O(!1);
3197
3194
  };
3198
- return /* @__PURE__ */ K(ge, {
3195
+ return /* @__PURE__ */ G(ve, {
3199
3196
  matchReferenceWidth: !1,
3200
3197
  placement: "bottom-start",
3201
3198
  open: p,
3202
3199
  onOpenChange: O,
3203
3200
  listClassName: "!bg-transparent !shadow-none !p-0",
3204
- renderOverlay: () => /* @__PURE__ */ q("div", {
3201
+ renderOverlay: () => /* @__PURE__ */ K("div", {
3205
3202
  role: "menu",
3206
3203
  "aria-label": s,
3207
3204
  tabIndex: -1,
@@ -3212,10 +3209,10 @@ var xt = /* @__PURE__ */ function(e) {
3212
3209
  className: M("flex min-w-[360px] flex-col rounded-xl p-[6px]", Ur.overlay),
3213
3210
  onKeyDown: k,
3214
3211
  children: [
3215
- /* @__PURE__ */ K(De, {
3212
+ /* @__PURE__ */ G(ke, {
3216
3213
  role: "menuitemcheckbox",
3217
3214
  "aria-checked": b,
3218
- mark: Oe.Checkbox,
3215
+ mark: Ae.Checkbox,
3219
3216
  selected: b,
3220
3217
  label: a,
3221
3218
  labelClassName: M(Ur.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
@@ -3226,25 +3223,25 @@ var xt = /* @__PURE__ */ function(e) {
3226
3223
  },
3227
3224
  onClick: () => x(!b)
3228
3225
  }),
3229
- g.length > 0 && /* @__PURE__ */ q(ht, { children: [
3230
- /* @__PURE__ */ K("div", {
3226
+ g.length > 0 && /* @__PURE__ */ K(gt, { children: [
3227
+ /* @__PURE__ */ G("div", {
3231
3228
  role: "separator",
3232
3229
  className: M("my-1 h-px", Ur.divider),
3233
3230
  "aria-hidden": !0
3234
3231
  }),
3235
- /* @__PURE__ */ K("div", {
3232
+ /* @__PURE__ */ G("div", {
3236
3233
  className: M("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Ur.sectionLabel),
3237
3234
  "aria-hidden": !0,
3238
3235
  children: o
3239
3236
  }),
3240
- /* @__PURE__ */ K("div", {
3237
+ /* @__PURE__ */ G("div", {
3241
3238
  className: M(re, "flex min-h-0 flex-col gap-1 overflow-y-auto"),
3242
3239
  children: g.map((e, t) => {
3243
3240
  let n = v.has(e), r = t + 1;
3244
- return /* @__PURE__ */ K(De, {
3241
+ return /* @__PURE__ */ G(ke, {
3245
3242
  role: "menuitemcheckbox",
3246
3243
  "aria-checked": n,
3247
- mark: Oe.Checkbox,
3244
+ mark: Ae.Checkbox,
3248
3245
  selected: n,
3249
3246
  label: e,
3250
3247
  labelClassName: Ur.rowLabel,
@@ -3258,15 +3255,15 @@ var xt = /* @__PURE__ */ function(e) {
3258
3255
  })
3259
3256
  })
3260
3257
  ] }),
3261
- /* @__PURE__ */ q("div", {
3258
+ /* @__PURE__ */ K("div", {
3262
3259
  className: M("mt-1 flex shrink-0 items-center px-1 py-3", Ur.footer),
3263
3260
  onKeyDown: (e) => {
3264
3261
  (e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
3265
3262
  },
3266
- children: [/* @__PURE__ */ K(xe, {
3263
+ children: [/* @__PURE__ */ G(Ce, {
3267
3264
  label: c,
3268
3265
  onClick: te
3269
- }), /* @__PURE__ */ K(ke, {
3266
+ }), /* @__PURE__ */ G(Me, {
3270
3267
  label: l,
3271
3268
  className: "ms-auto",
3272
3269
  onClick: A
@@ -3274,23 +3271,23 @@ var xt = /* @__PURE__ */ function(e) {
3274
3271
  })
3275
3272
  ]
3276
3273
  }),
3277
- children: /* @__PURE__ */ K(ce, {
3274
+ children: /* @__PURE__ */ G(ue, {
3278
3275
  ref: E,
3279
3276
  "aria-haspopup": "menu",
3280
3277
  "aria-expanded": p,
3281
3278
  onKeyDown: ee,
3282
3279
  style: h,
3283
- iconBefore: /* @__PURE__ */ K(Qe, {
3284
- size: B.SM,
3285
- stroke: V,
3280
+ iconBefore: /* @__PURE__ */ G(H, {
3281
+ size: R.SM,
3282
+ stroke: z,
3286
3283
  className: M("shrink-0", Ur.filterBtnFunnel),
3287
3284
  "aria-hidden": !0
3288
3285
  }),
3289
3286
  label: _,
3290
3287
  textClassName: M(Ur.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3291
- iconAfter: /* @__PURE__ */ K(Ke, {
3288
+ iconAfter: /* @__PURE__ */ G(Ye, {
3292
3289
  size: 14,
3293
- stroke: V,
3290
+ stroke: z,
3294
3291
  className: M("shrink-0 transition-transform duration-150", Ur.filterBtnChevron, p && "rotate-180"),
3295
3292
  "aria-hidden": !0
3296
3293
  }),
@@ -3301,28 +3298,28 @@ var xt = /* @__PURE__ */ function(e) {
3301
3298
  section: "_section_mh952_1",
3302
3299
  divider: "_divider_mh952_5"
3303
3300
  }, Jr = ({ totalCount: e, viewMode: t, onViewModeChange: n, title: r = "Browse", browseHeaderRenderer: i, styles: a, query: o, onQueryChange: s, searchPlaceholder: c, gridViewLabel: l = "Grid view", listViewLabel: u = "List view", viewToggleLabel: d = "View mode", sortKey: f, sortOptions: p, onSortChange: m, sortLabel: h = "Sort", filters: g, onFiltersChange: _, filterValues: v, isMyAppsActive: y, onMyAppsChange: b, filterFromLabel: x, filterMyAppsLabel: S, filterTopicsLabel: C }) => {
3304
- let w = a?.typography?.titleClassName ?? "dial-body-semi-text", T = a?.typography?.countClassName ?? "dial-tiny-semi-text", E = I(() => [{
3301
+ let w = a?.typography?.titleClassName ?? "dial-body-semi-text", T = a?.typography?.countClassName ?? "dial-tiny-semi-text", E = F(() => [{
3305
3302
  value: X.Grid,
3306
- icon: /* @__PURE__ */ K(tt, {
3307
- size: B.SM,
3303
+ icon: /* @__PURE__ */ G(rt, {
3304
+ size: R.SM,
3308
3305
  "aria-hidden": !0,
3309
- stroke: V
3306
+ stroke: z
3310
3307
  }),
3311
3308
  "aria-label": l
3312
3309
  }, {
3313
3310
  value: X.Cards,
3314
- icon: /* @__PURE__ */ K(nt, {
3315
- size: B.SM,
3311
+ icon: /* @__PURE__ */ G(it, {
3312
+ size: R.SM,
3316
3313
  "aria-hidden": !0,
3317
- stroke: V
3314
+ stroke: z
3318
3315
  }),
3319
3316
  "aria-label": u
3320
3317
  }], [l, u]), D = (e) => {
3321
3318
  s(e ?? "");
3322
- }, O = p?.find((e) => e.value === f)?.label ?? h, k = I(() => (p ?? []).map((e) => ({
3319
+ }, O = p?.find((e) => e.value === f)?.label ?? h, k = F(() => (p ?? []).map((e) => ({
3323
3320
  key: e.value,
3324
3321
  label: e.label,
3325
- mark: Oe.Check,
3322
+ mark: Ae.Check,
3326
3323
  checked: e.value === f,
3327
3324
  onClick: () => m?.(e.value)
3328
3325
  })), [
@@ -3330,11 +3327,11 @@ var xt = /* @__PURE__ */ function(e) {
3330
3327
  f,
3331
3328
  m
3332
3329
  ]);
3333
- return /* @__PURE__ */ q("div", {
3330
+ return /* @__PURE__ */ K("div", {
3334
3331
  className: "flex flex-col gap-3",
3335
- children: [/* @__PURE__ */ q("div", {
3332
+ children: [/* @__PURE__ */ K("div", {
3336
3333
  className: "flex items-center gap-2",
3337
- children: [i ?? /* @__PURE__ */ K(ee, {
3334
+ children: [i ?? /* @__PURE__ */ G(ee, {
3338
3335
  title: r,
3339
3336
  postfix: e,
3340
3337
  titleClassName: w,
@@ -3345,34 +3342,34 @@ var xt = /* @__PURE__ */ function(e) {
3345
3342
  title: a?.colors?.titleText,
3346
3343
  count: a?.colors?.countText
3347
3344
  }
3348
- }), /* @__PURE__ */ q("div", {
3345
+ }), /* @__PURE__ */ K("div", {
3349
3346
  className: "ms-auto flex shrink-0 items-center gap-2",
3350
- children: [/* @__PURE__ */ K(Ne, {
3347
+ children: [/* @__PURE__ */ G(Ie, {
3351
3348
  "aria-label": d,
3352
3349
  value: t,
3353
3350
  onChange: n,
3354
3351
  items: E
3355
- }), p != null && p.length > 0 && /* @__PURE__ */ q(ht, { children: [/* @__PURE__ */ K("div", { className: M("h-4 w-px shrink-0", qr.divider) }), /* @__PURE__ */ K(ue, {
3352
+ }), p != null && p.length > 0 && /* @__PURE__ */ K(gt, { children: [/* @__PURE__ */ G("div", { className: M("h-4 w-px shrink-0", qr.divider) }), /* @__PURE__ */ G(fe, {
3356
3353
  items: k,
3357
3354
  label: O,
3358
- variant: de.Primary,
3359
- appearance: le.Ghost
3355
+ variant: pe.Primary,
3356
+ appearance: de.Ghost
3360
3357
  })] })]
3361
3358
  })]
3362
- }), /* @__PURE__ */ q("div", {
3359
+ }), /* @__PURE__ */ K("div", {
3363
3360
  className: "mb-5 flex items-center gap-3",
3364
- children: [/* @__PURE__ */ K("div", {
3361
+ children: [/* @__PURE__ */ G("div", {
3365
3362
  role: "search",
3366
3363
  className: "flex-1",
3367
- children: /* @__PURE__ */ K(Me, {
3364
+ children: /* @__PURE__ */ G(Fe, {
3368
3365
  value: o,
3369
3366
  onChange: D,
3370
- size: ve.Large,
3367
+ size: be.Large,
3371
3368
  wrapperClassName: "dial-kit-input-large",
3372
3369
  placeholder: c,
3373
3370
  "aria-label": c
3374
3371
  })
3375
- }), /* @__PURE__ */ K(Kr, {
3372
+ }), /* @__PURE__ */ G(Kr, {
3376
3373
  checked: g ?? /* @__PURE__ */ new Set(),
3377
3374
  onChange: _ ?? (() => void 0),
3378
3375
  values: v,
@@ -3387,10 +3384,10 @@ var xt = /* @__PURE__ */ function(e) {
3387
3384
  });
3388
3385
  }, Yr = ({ query: e, onQueryChange: t, searchPlaceholder: n = "Search models, tools, agents…", styles: r, filters: i, onFiltersChange: a, filterValues: o, isMyAppsActive: s, onMyAppsChange: c, filterFromLabel: l, filterMyAppsLabel: u, filterTopicsLabel: d, gridViewLabel: f, listViewLabel: p, viewToggleLabel: m, sortKey: h, sortOptions: g, onSortChange: _, sortLabel: v, ...y }) => {
3389
3386
  let b = { "--cat-browse-divider": r?.colors?.divider };
3390
- return /* @__PURE__ */ K("section", {
3387
+ return /* @__PURE__ */ G("section", {
3391
3388
  className: M("flex-shrink-0 px-4", qr.section, Et.toolbar),
3392
3389
  style: b,
3393
- children: /* @__PURE__ */ K(Jr, {
3390
+ children: /* @__PURE__ */ G(Jr, {
3394
3391
  styles: r,
3395
3392
  query: e,
3396
3393
  onQueryChange: t,
@@ -3419,21 +3416,21 @@ var xt = /* @__PURE__ */ function(e) {
3419
3416
  headingTitle: "_headingTitle_1h83l_9"
3420
3417
  }, Zr = "w-[320px]", Qr = (e, t) => e.map((e) => ({
3421
3418
  ...e,
3422
- label: typeof e.label == "string" ? /* @__PURE__ */ K(Se, {
3419
+ label: typeof e.label == "string" ? /* @__PURE__ */ G(we, {
3423
3420
  text: e.label,
3424
3421
  query: t,
3425
3422
  maxLines: 1
3426
3423
  }) : e.label,
3427
3424
  children: e.children ? Qr(e.children, t) : void 0
3428
3425
  })), $r = ({ label: e, options: t, onClick: n, search: r, searchPlaceholder: i = "Search", searchClearLabel: a = "Clear search", noResultsLabel: o = "No results found" }) => {
3429
- let s = L(null), [c, l] = R(!1);
3430
- return r ? /* @__PURE__ */ K("div", {
3426
+ let s = I(null), [c, l] = L(!1);
3427
+ return r ? /* @__PURE__ */ G("div", {
3431
3428
  ref: s,
3432
- children: /* @__PURE__ */ K(ge, {
3429
+ children: /* @__PURE__ */ G(ve, {
3433
3430
  items: t?.length ? Qr(t, r.value) : [{
3434
3431
  key: "no-results",
3435
- type: _e.PlainText,
3436
- label: /* @__PURE__ */ K("span", {
3432
+ type: ye.PlainText,
3433
+ label: /* @__PURE__ */ G("span", {
3437
3434
  role: "status",
3438
3435
  children: o
3439
3436
  })
@@ -3442,27 +3439,27 @@ var xt = /* @__PURE__ */ function(e) {
3442
3439
  placement: "bottom-end",
3443
3440
  matchReferenceWidth: !1,
3444
3441
  listClassName: Zr,
3445
- menuHeader: /* @__PURE__ */ K("div", {
3442
+ menuHeader: /* @__PURE__ */ G("div", {
3446
3443
  className: "sticky -top-1 z-10 bg-layer-raised px-2 pb-1 pt-2",
3447
- children: /* @__PURE__ */ K(Me, {
3444
+ children: /* @__PURE__ */ G(Fe, {
3448
3445
  value: r.value,
3449
3446
  placeholder: i,
3450
3447
  "aria-label": i,
3451
3448
  clearLabel: a,
3452
- size: ve.Small,
3449
+ size: be.Small,
3453
3450
  onChange: (e) => r.onChange(e ?? "")
3454
3451
  })
3455
3452
  }),
3456
3453
  onOpenChange: (e) => {
3457
3454
  l(e), e || r.onChange("");
3458
3455
  },
3459
- children: /* @__PURE__ */ K(ce, {
3456
+ children: /* @__PURE__ */ G(ue, {
3460
3457
  label: e,
3461
- variant: de.Primary,
3462
- appearance: le.Solid,
3463
- iconAfter: /* @__PURE__ */ K(Ke, {
3464
- size: B.SM,
3465
- stroke: V,
3458
+ variant: pe.Primary,
3459
+ appearance: de.Solid,
3460
+ iconAfter: /* @__PURE__ */ G(Ye, {
3461
+ size: R.SM,
3462
+ stroke: z,
3466
3463
  "aria-hidden": !0,
3467
3464
  className: M("transition-transform", c && "rotate-180")
3468
3465
  }),
@@ -3470,24 +3467,24 @@ var xt = /* @__PURE__ */ function(e) {
3470
3467
  "aria-expanded": c
3471
3468
  })
3472
3469
  })
3473
- }) : t?.length ? /* @__PURE__ */ K("div", {
3470
+ }) : t?.length ? /* @__PURE__ */ G("div", {
3474
3471
  ref: s,
3475
- children: /* @__PURE__ */ K(ue, {
3476
- appearance: le.Solid,
3472
+ children: /* @__PURE__ */ G(fe, {
3473
+ appearance: de.Solid,
3477
3474
  label: e,
3478
- variant: de.Primary,
3475
+ variant: pe.Primary,
3479
3476
  items: t
3480
3477
  })
3481
- }) : /* @__PURE__ */ K(ke, {
3478
+ }) : /* @__PURE__ */ G(Me, {
3482
3479
  label: e,
3483
- iconBefore: /* @__PURE__ */ K(st, {
3484
- size: B.SM,
3485
- stroke: V
3480
+ iconBefore: /* @__PURE__ */ G(lt, {
3481
+ size: R.SM,
3482
+ stroke: z
3486
3483
  }),
3487
3484
  onClick: n
3488
3485
  });
3489
- }, ei = 3, ti = 300, ni = ({ items: e, tabs: t, topicOptions: n, favorites: o, titles: c, browseHeaderRenderer: d, onToggleFavorite: p, isFavoriteVisible: m, columnVisibility: g, onUseInChat: v, isPrimaryActionVisible: y, onShare: b, isPublishVisible: x, isPublishPrimary: S, getPublishHistory: C, publishFolderItems: w, publishExpandedPaths: T, onPublishExpandedPathsChange: E, publishLoadingPaths: D, hasPublishWriteAccess: O, publishDefaultAuthor: ee, onPublish: k, onPublishSuccess: A, onPublishError: te, onCreatePublishFolder: ne, publishLabels: re, ruleSourceOptions: j, onFetchExistingRules: ie, shareOverlay: N, isShareVisible: oe, isSharePrimary: se, onFetchDetails: z, renderCredentials: ce, onEdit: le, onDownload: ue, isDownloadVisible: de, isDownloadPrimary: fe, onLoadContentFile: pe, onLoadContentFilePreview: me, renderContentFilePreview: B, renderContentFileTree: V, onDelete: he, onUnshare: ge, isUnshareVisible: _e, onRevokeShare: ve, onFetchRecipientsCount: ye, isRevokeShareVisible: be, onUnpublish: xe, isUnpublishVisible: H, onLogin: Se, onLogout: Ce, onCreateClick: we, createOptions: Te, createSearch: Ee, hideCreateButton: De = !1, hidePageTitle: Oe = !1, isReadonly: U = !1, initialViewMode: W = X.Grid, isFullWidth: ke = !1, selectedItemId: Ae, onCardClick: je, isLoading: Me, styles: Ne, detailsTexts: Pe, detailsLimitsFooterNote: Fe, initialDetailsItemId: Ie, sortKey: ze, onSortChange: Be, filterTopics: Ve, onFilterTopicsChange: He, isMyAppsActive: Ue, onMyAppsActiveChange: We, activeTab: Ge, onActiveTabChange: Ke, renderEmptyState: qe }) => {
3490
- let { typography: Je } = Ne ?? {}, Ye = Dt(Ne), Xe = c?.pageTitle ?? "Catalog", Ze = c?.createLabel ?? "Create", Qe = c?.favoritesTitle ?? "Your favorites", $e = c?.browseTitle ?? "Browse", et = c?.searchPlaceholder ?? "Search models, tools, agents…", tt = c?.noResultsTitle ?? ((e) => `No results for "${e}"`), nt = c?.featuredLabel ?? "Featured", rt = c?.gridViewLabel ?? "Grid view", it = c?.listViewLabel ?? "List view", at = c?.viewToggleLabel ?? "View mode", ot = c?.ariaLabel ?? "Catalog", st = c?.sortLabel ?? "Sort", ct = [
3486
+ }, ei = 3, ti = 300, ni = ({ items: e, tabs: t, topicOptions: n, favorites: o, titles: c, browseHeaderRenderer: d, onToggleFavorite: p, isFavoriteVisible: m, columnVisibility: g, onUseInChat: v, isPrimaryActionVisible: y, onShare: b, isPublishVisible: x, isPublishPrimary: S, getPublishHistory: C, publishFolderItems: w, publishExpandedPaths: T, onPublishExpandedPathsChange: E, publishLoadingPaths: D, hasPublishWriteAccess: O, publishDefaultAuthor: ee, onPublish: k, onPublishSuccess: A, onPublishError: te, onCreatePublishFolder: ne, publishLabels: re, ruleSourceOptions: j, onFetchExistingRules: ie, shareOverlay: ae, isShareVisible: se, isSharePrimary: ce, onFetchDetails: le, renderCredentials: ue, onEdit: de, onDownload: fe, isDownloadVisible: pe, isDownloadPrimary: me, onLoadContentFile: he, onLoadContentFilePreview: ge, renderContentFilePreview: R, renderContentFileTree: z, onDelete: _e, onUnshare: ve, isUnshareVisible: ye, onRevokeShare: be, onFetchRecipientsCount: xe, isRevokeShareVisible: Se, onUnpublish: Ce, isUnpublishVisible: B, onLogin: we, onLogout: Te, onCreateClick: Ee, createOptions: De, createSearch: Oe, hideCreateButton: ke = !1, hidePageTitle: Ae = !1, isReadonly: je = !1, initialViewMode: V = X.Grid, isFullWidth: Me = !1, selectedItemId: Ne, onCardClick: Pe, isLoading: Fe, styles: Ie, detailsTexts: Le, detailsLimitsFooterNote: Re, initialDetailsItemId: ze, sortKey: He, onSortChange: Ue, filterTopics: We, onFilterTopicsChange: Ge, isMyAppsActive: Ke, onMyAppsActiveChange: qe, activeTab: Je, onActiveTabChange: Ye, renderEmptyState: Xe }) => {
3487
+ let { typography: Ze } = Ie ?? {}, Qe = Dt(Ie), $e = c?.pageTitle ?? "Catalog", et = c?.createLabel ?? "Create", H = c?.favoritesTitle ?? "Your favorites", tt = c?.browseTitle ?? "Browse", nt = c?.searchPlaceholder ?? "Search models, tools, agents…", rt = c?.noResultsTitle ?? ((e) => `No results for "${e}"`), it = c?.featuredLabel ?? "Featured", at = c?.gridViewLabel ?? "Grid view", ot = c?.listViewLabel ?? "List view", st = c?.viewToggleLabel ?? "View mode", ct = c?.ariaLabel ?? "Catalog", lt = c?.sortLabel ?? "Sort", ut = [
3491
3488
  {
3492
3489
  value: s.RecentlyUpdated,
3493
3490
  label: c?.sortRecentlyUpdatedLabel ?? "Recently Updated"
@@ -3500,81 +3497,81 @@ var xt = /* @__PURE__ */ function(e) {
3500
3497
  value: s.NameAZ,
3501
3498
  label: c?.sortNameAZLabel ?? "Name A-Z"
3502
3499
  }
3503
- ], [lt, ut] = R(""), [dt, ft] = R(W), [pt, mt] = R(W === X.Cards ? "shown" : "unmounted"), [G, gt] = R(s.RecentlyUpdated), [_t, vt] = R(/* @__PURE__ */ new Set()), [yt, bt] = R(!1), xt = ze ?? G, J = Ve ?? _t, St = Ue ?? yt, Y = P((e) => {
3500
+ ], [U, dt] = L(""), [W, ft] = L(V), [pt, mt] = L(V === X.Cards ? "shown" : "unmounted"), [ht, _t] = L(s.RecentlyUpdated), [vt, yt] = L(/* @__PURE__ */ new Set()), [bt, xt] = L(!1), q = He ?? ht, J = We ?? vt, St = Ke ?? bt, Y = N((e) => {
3504
3501
  let t = e;
3505
- gt(t), Be?.(t);
3506
- }, [Be]), Ct = P((e) => {
3507
- vt(e), He?.(e);
3508
- }, [He]), wt = P((e) => {
3509
- bt(e), We?.(e);
3510
- }, [We]), Z = I(() => e.filter((e) => !e.isHidden), [e]), Q = I(() => o.filter((e) => !e.isHidden), [o]), Tt = I(() => n ?? u(Z), [n, Z]), Ot = I(() => t ?? r(Z, c?.tabLabels), [
3502
+ _t(t), Ue?.(t);
3503
+ }, [Ue]), Ct = N((e) => {
3504
+ yt(e), Ge?.(e);
3505
+ }, [Ge]), wt = N((e) => {
3506
+ xt(e), qe?.(e);
3507
+ }, [qe]), Z = F(() => e.filter((e) => !e.isHidden), [e]), Q = F(() => o.filter((e) => !e.isHidden), [o]), Tt = F(() => n ?? u(Z), [n, Z]), Ot = F(() => t ?? r(Z, c?.tabLabels), [
3511
3508
  t,
3512
3509
  Z,
3513
3510
  c?.tabLabels
3514
- ]), kt = Ot[0]?.id ?? "", [At, jt] = R(kt);
3515
- F(() => {
3511
+ ]), kt = Ot[0]?.id ?? "", [At, jt] = L(kt);
3512
+ P(() => {
3516
3513
  jt((e) => e || kt);
3517
3514
  }, [kt]);
3518
- let Mt = Ge ?? At, Nt = P((e) => {
3519
- jt(e), Ke?.(e);
3520
- }, [Ke]), [Pt, Ft] = R(Q.length > 0);
3521
- F(() => {
3515
+ let Mt = Je ?? At, Nt = N((e) => {
3516
+ jt(e), Ye?.(e);
3517
+ }, [Ye]), [Pt, Ft] = L(Q.length > 0);
3518
+ P(() => {
3522
3519
  Q.length > 0 && !Pt && Ft(!0);
3523
3520
  }, [Q.length, Pt]);
3524
- let It = P(() => {
3521
+ let It = N(() => {
3525
3522
  Ft(!1);
3526
- }, []), Lt = Pt && Q.length === 0, [Rt, zt] = R(null), [Bt, Vt] = R(!1), [Ht, Ut] = R(void 0), [Wt, Gt] = R(!1), Kt = L(null), qt = L(0), Jt = P(async (e) => {
3523
+ }, []), Lt = Pt && Q.length === 0, [Rt, zt] = L(null), [Bt, Vt] = L(!1), [Ht, Ut] = L(void 0), [Wt, Gt] = L(!1), Kt = I(null), qt = I(0), Jt = N(async (e) => {
3527
3524
  Kt.current = e.id;
3528
3525
  let t = ++qt.current;
3529
- if (z) {
3526
+ if (le) {
3530
3527
  Gt(!0);
3531
3528
  try {
3532
- let n = await z(e);
3529
+ let n = await le(e);
3533
3530
  return qt.current === t && Ut(n), n;
3534
3531
  } finally {
3535
3532
  qt.current === t && Gt(!1);
3536
3533
  }
3537
3534
  }
3538
- }, [z]), Yt = P(async (e) => (zt(e), Ut(void 0), Jt(e)), [Jt]), Xt = P(async (e, t) => {
3535
+ }, [le]), Yt = N(async (e) => (zt(e), Ut(void 0), Jt(e)), [Jt]), Xt = N(async (e, t) => {
3539
3536
  for (let n = 0; n < ei; n++) {
3540
3537
  if (Kt.current !== e.id || t(await Jt(e))) return;
3541
3538
  n < ei - 1 && await h(ti);
3542
3539
  }
3543
- }, [Jt]), Zt = L(null);
3544
- F(() => {
3545
- if (!Ie) {
3540
+ }, [Jt]), Zt = I(null);
3541
+ P(() => {
3542
+ if (!ze) {
3546
3543
  Zt.current = null;
3547
3544
  return;
3548
3545
  }
3549
- if (Zt.current === Ie) return;
3550
- let t = e.find((e) => e.id === Ie);
3551
- t && (Zt.current = Ie, Yt(t));
3546
+ if (Zt.current === ze) return;
3547
+ let t = e.find((e) => e.id === ze);
3548
+ t && (Zt.current = ze, Yt(t));
3552
3549
  }, [
3553
- Ie,
3550
+ ze,
3554
3551
  e,
3555
3552
  Yt
3556
- ]), F(() => {
3553
+ ]), P(() => {
3557
3554
  if (Rt == null) return;
3558
3555
  let t = e.find((e) => e.id === Rt.id);
3559
3556
  t && t !== Rt && zt(t);
3560
3557
  }, [e, Rt]);
3561
- let $t = P(async (e, t) => {
3562
- await Se?.(e, t), z && await Xt(e, (e) => f(e?.credentials, t.level));
3558
+ let $t = N(async (e, t) => {
3559
+ await we?.(e, t), le && await Xt(e, (e) => f(e?.credentials, t.level));
3563
3560
  }, [
3564
- Se,
3565
- z,
3561
+ we,
3562
+ le,
3566
3563
  Xt
3567
- ]), en = P(async (e, t) => {
3568
- await Ce?.(e, t), z && await Xt(e, (e) => !f(e?.credentials, t.level));
3564
+ ]), en = N(async (e, t) => {
3565
+ await Te?.(e, t), le && await Xt(e, (e) => !f(e?.credentials, t.level));
3569
3566
  }, [
3570
- Ce,
3571
- z,
3567
+ Te,
3568
+ le,
3572
3569
  Xt
3573
- ]), tn = P(() => {
3570
+ ]), tn = N(() => {
3574
3571
  Vt(!1), Kt.current = null, qt.current += 1, setTimeout(() => {
3575
3572
  zt(null), Ut(void 0), Gt(!1);
3576
3573
  }, 300);
3577
- }, []), nn = I(() => {
3574
+ }, []), nn = F(() => {
3578
3575
  if (Rt == null) return null;
3579
3576
  if (Ht == null) return Rt;
3580
3577
  let { credentials: e, ...t } = Ht;
@@ -3583,11 +3580,11 @@ var xt = /* @__PURE__ */ function(e) {
3583
3580
  details: t,
3584
3581
  credentials: e ?? Rt.credentials
3585
3582
  };
3586
- }, [Rt, Ht]), rn = I(() => l(Z, xt), [Z, xt]), an = I(() => a(rn, lt), [rn, lt]), on = I(() => J.size > 0 ? i(an, J) : an, [an, J]), sn = I(() => St ? _(on) : on, [on, St]), cn = I(() => Mt ? sn.filter((e) => e.type === Mt) : sn, [sn, Mt]);
3587
- F(() => {
3588
- if (pt !== "unmounted" || Me || cn.length === 0) return;
3583
+ }, [Rt, Ht]), rn = F(() => l(Z, q), [Z, q]), an = F(() => a(rn, U), [rn, U]), on = F(() => J.size > 0 ? i(an, J) : an, [an, J]), sn = F(() => St ? _(on) : on, [on, St]), cn = F(() => Mt ? sn.filter((e) => e.type === Mt) : sn, [sn, Mt]);
3584
+ P(() => {
3585
+ if (pt !== "unmounted" || Fe || cn.length === 0) return;
3589
3586
  let e = () => {
3590
- ae(() => {
3587
+ oe(() => {
3591
3588
  mt((e) => e === "unmounted" ? "prepared" : e);
3592
3589
  });
3593
3590
  };
@@ -3599,93 +3596,93 @@ var xt = /* @__PURE__ */ function(e) {
3599
3596
  return () => window.clearTimeout(t);
3600
3597
  }, [
3601
3598
  pt,
3602
- Me,
3599
+ Fe,
3603
3600
  cn.length
3604
3601
  ]);
3605
3602
  let ln = Rt != null && Q.some((e) => e.id === Rt.id);
3606
- F(() => {
3603
+ P(() => {
3607
3604
  if (Rt == null) return;
3608
3605
  let e = requestAnimationFrame(() => Vt(!0));
3609
3606
  return () => cancelAnimationFrame(e);
3610
3607
  }, [Rt]);
3611
- let un = P((e) => {
3608
+ let un = N((e) => {
3612
3609
  e === X.Cards && mt("shown"), ft(e);
3613
- }, []), dn = !De && !U, fn = Pt && !U, pn = lt ? tt(lt) : "No items", mn = I(() => ({
3610
+ }, []), dn = !ke && !je, fn = Pt && !je, pn = U ? rt(U) : "No items", mn = F(() => ({
3614
3611
  noResultsTitle: pn,
3615
- featuredLabel: nt,
3616
- credentialsBadgeLoggedOutLabel: Pe?.credentialsBadgeLoggedOutLabel
3612
+ featuredLabel: it,
3613
+ credentialsBadgeLoggedOutLabel: Le?.credentialsBadgeLoggedOutLabel
3617
3614
  }), [
3618
3615
  pn,
3619
- nt,
3620
- Pe?.credentialsBadgeLoggedOutLabel
3621
- ]), hn = !Me && cn.length === 0 ? qe?.({
3622
- query: lt,
3616
+ it,
3617
+ Le?.credentialsBadgeLoggedOutLabel
3618
+ ]), hn = !Fe && cn.length === 0 ? Xe?.({
3619
+ query: U,
3623
3620
  activeTab: Mt,
3624
3621
  hasTopicFilters: J.size > 0,
3625
3622
  isMyAppsActive: St
3626
3623
  }) : void 0;
3627
- return Me ? /* @__PURE__ */ K("div", {
3624
+ return Fe ? /* @__PURE__ */ G("div", {
3628
3625
  className: "flex size-full min-h-0 flex-1 items-center justify-center",
3629
- children: /* @__PURE__ */ K(Le, {})
3630
- }) : /* @__PURE__ */ q("section", {
3631
- "aria-label": ot,
3626
+ children: /* @__PURE__ */ G(Be, {})
3627
+ }) : /* @__PURE__ */ K("section", {
3628
+ "aria-label": ct,
3632
3629
  className: M("flex size-full min-h-0 flex-1 flex-col", Xr.root, Et.root),
3633
- style: Ye,
3630
+ style: Qe,
3634
3631
  children: [
3635
- (!Oe || dn) && /* @__PURE__ */ K("div", {
3632
+ (!Ae || dn) && /* @__PURE__ */ G("div", {
3636
3633
  className: M("shrink-0", Xr.heading),
3637
- children: /* @__PURE__ */ q("div", {
3634
+ children: /* @__PURE__ */ K("div", {
3638
3635
  className: "flex h-[64px] w-full items-center justify-between px-8",
3639
- children: [!Oe && /* @__PURE__ */ K("h1", {
3640
- className: M(Je?.pageHeadingFontClassName ?? "dial-display2-text", Xr.headingTitle),
3641
- children: Xe
3642
- }), dn && /* @__PURE__ */ K($r, {
3643
- label: Ze,
3644
- options: Te,
3645
- onClick: we,
3646
- search: Ee,
3636
+ children: [!Ae && /* @__PURE__ */ G("h1", {
3637
+ className: M(Ze?.pageHeadingFontClassName ?? "dial-display2-text", Xr.headingTitle),
3638
+ children: $e
3639
+ }), dn && /* @__PURE__ */ G($r, {
3640
+ label: et,
3641
+ options: De,
3642
+ onClick: Ee,
3643
+ search: Oe,
3647
3644
  searchPlaceholder: c?.createSearchPlaceholder,
3648
3645
  searchClearLabel: c?.createSearchClearLabel,
3649
3646
  noResultsLabel: c?.createNoResultsLabel
3650
3647
  })]
3651
3648
  })
3652
3649
  }),
3653
- /* @__PURE__ */ q("div", {
3650
+ /* @__PURE__ */ K("div", {
3654
3651
  className: "flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto overflow-x-hidden",
3655
3652
  children: [
3656
- fn && /* @__PURE__ */ K("div", {
3653
+ fn && /* @__PURE__ */ G("div", {
3657
3654
  className: "w-full px-8",
3658
- children: /* @__PURE__ */ K(Dr, {
3655
+ children: /* @__PURE__ */ G(Dr, {
3659
3656
  items: Q,
3660
3657
  totalCount: Q.length,
3661
- title: Qe,
3658
+ title: H,
3662
3659
  onToggleFavorite: p,
3663
3660
  isFavoriteVisible: m,
3664
- onItemClick: je ?? Yt,
3661
+ onItemClick: Pe ?? Yt,
3665
3662
  isLeaving: Lt,
3666
3663
  onExitComplete: It,
3667
- selectedItemId: Ae,
3668
- credentialsBadgeLoggedOutLabel: Pe?.credentialsBadgeLoggedOutLabel
3664
+ selectedItemId: Ne,
3665
+ credentialsBadgeLoggedOutLabel: Le?.credentialsBadgeLoggedOutLabel
3669
3666
  })
3670
3667
  }),
3671
- /* @__PURE__ */ K("div", {
3668
+ /* @__PURE__ */ G("div", {
3672
3669
  className: "w-full px-4 pt-6",
3673
- children: /* @__PURE__ */ K(Yr, {
3670
+ children: /* @__PURE__ */ G(Yr, {
3674
3671
  totalCount: sn.length,
3675
- viewMode: dt,
3672
+ viewMode: W,
3676
3673
  onViewModeChange: un,
3677
- sortKey: xt,
3678
- query: lt,
3679
- onQueryChange: ut,
3680
- title: $e,
3674
+ sortKey: q,
3675
+ query: U,
3676
+ onQueryChange: dt,
3677
+ title: tt,
3681
3678
  browseHeaderRenderer: d,
3682
- searchPlaceholder: et,
3683
- gridViewLabel: rt,
3684
- listViewLabel: it,
3685
- viewToggleLabel: at,
3686
- sortOptions: ct,
3679
+ searchPlaceholder: nt,
3680
+ gridViewLabel: at,
3681
+ listViewLabel: ot,
3682
+ viewToggleLabel: st,
3683
+ sortOptions: ut,
3687
3684
  onSortChange: Y,
3688
- sortLabel: st,
3685
+ sortLabel: lt,
3689
3686
  filters: J,
3690
3687
  onFiltersChange: Ct,
3691
3688
  filterValues: Tt,
@@ -3696,9 +3693,9 @@ var xt = /* @__PURE__ */ function(e) {
3696
3693
  filterTopicsLabel: c?.filterTopicsLabel
3697
3694
  })
3698
3695
  }),
3699
- Ot.length > 1 && /* @__PURE__ */ K("div", {
3696
+ Ot.length > 1 && /* @__PURE__ */ G("div", {
3700
3697
  className: "min-w-0 shrink-0 overflow-x-auto px-8",
3701
- children: /* @__PURE__ */ K(Re, {
3698
+ children: /* @__PURE__ */ G(Ve, {
3702
3699
  tabs: Ot.map((e) => ({
3703
3700
  id: e.id,
3704
3701
  label: typeof e.label == "string" ? e.label : String(e.label),
@@ -3708,52 +3705,52 @@ var xt = /* @__PURE__ */ function(e) {
3708
3705
  onTabChange: Nt
3709
3706
  })
3710
3707
  }),
3711
- /* @__PURE__ */ K("div", {
3712
- className: M(cn.length > 0 ? ["min-h-full w-full px-8 py-6", !ke && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", cn.length === 0 && "px-8 py-6"),
3713
- children: hn ?? /* @__PURE__ */ q(ht, { children: [/* @__PURE__ */ K("div", {
3714
- inert: dt !== X.Grid,
3715
- className: M(cn.length > 0 ? "pb-8" : "size-full flex-1", dt !== X.Grid && "hidden"),
3716
- children: /* @__PURE__ */ K(Qt, {
3708
+ /* @__PURE__ */ G("div", {
3709
+ className: M(cn.length > 0 ? ["min-h-full w-full px-8 py-6", !Me && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", cn.length === 0 && "px-8 py-6"),
3710
+ children: hn ?? /* @__PURE__ */ K(gt, { children: [/* @__PURE__ */ G("div", {
3711
+ inert: W !== X.Grid,
3712
+ className: M(cn.length > 0 ? "pb-8" : "size-full flex-1", W !== X.Grid && "hidden"),
3713
+ children: /* @__PURE__ */ G(Qt, {
3717
3714
  items: cn,
3718
- query: lt,
3715
+ query: U,
3719
3716
  onToggleFavorite: p,
3720
3717
  isFavoriteVisible: m,
3721
- onItemClick: je ?? Yt,
3718
+ onItemClick: Pe ?? Yt,
3722
3719
  titles: mn,
3723
- selectedItemId: Ae,
3724
- isReadonly: U,
3725
- isFullWidth: ke,
3726
- featuredChipStyle: Ne?.colors?.featuredChipStyle
3720
+ selectedItemId: Ne,
3721
+ isReadonly: je,
3722
+ isFullWidth: Me,
3723
+ featuredChipStyle: Ie?.colors?.featuredChipStyle
3727
3724
  })
3728
- }), pt !== "unmounted" && /* @__PURE__ */ K("div", {
3729
- inert: dt !== X.Cards,
3730
- className: M("pb-8", dt !== X.Cards && (pt === "prepared" ? "invisible h-0 overflow-hidden p-0" : "hidden"), cn.length === 0 && dt === X.Cards && "h-full"),
3731
- children: /* @__PURE__ */ K(Vr, {
3725
+ }), pt !== "unmounted" && /* @__PURE__ */ G("div", {
3726
+ inert: W !== X.Cards,
3727
+ className: M("pb-8", W !== X.Cards && (pt === "prepared" ? "invisible h-0 overflow-hidden p-0" : "hidden"), cn.length === 0 && W === X.Cards && "h-full"),
3728
+ children: /* @__PURE__ */ G(Vr, {
3732
3729
  type: Mt,
3733
3730
  items: cn,
3734
- query: lt,
3735
- ariaLabel: ot,
3731
+ query: U,
3732
+ ariaLabel: ct,
3736
3733
  emptyStateTitle: pn,
3737
3734
  onToggleFavorite: p,
3738
3735
  isFavoriteVisible: m,
3739
3736
  columnVisibility: g,
3740
- onItemClick: je ?? Yt,
3737
+ onItemClick: Pe ?? Yt,
3741
3738
  stickyHeaderTop: 0,
3742
- selectedItemId: Ae,
3743
- credentialsBadgeLoggedOutLabel: Pe?.credentialsBadgeLoggedOutLabel,
3744
- isReadonly: U
3739
+ selectedItemId: Ne,
3740
+ credentialsBadgeLoggedOutLabel: Le?.credentialsBadgeLoggedOutLabel,
3741
+ isReadonly: je
3745
3742
  })
3746
3743
  })] })
3747
3744
  })
3748
3745
  ]
3749
3746
  }),
3750
- nn != null && /* @__PURE__ */ K(Sr, {
3751
- renderCredentials: ce,
3747
+ nn != null && /* @__PURE__ */ G(Sr, {
3748
+ renderCredentials: ue,
3752
3749
  item: nn,
3753
3750
  isOpen: Bt,
3754
3751
  isStarred: ln,
3755
3752
  isDetailsLoading: Wt,
3756
- isReadonly: U,
3753
+ isReadonly: je,
3757
3754
  onClose: tn,
3758
3755
  onToggleFavorite: p,
3759
3756
  isFavoriteVisible: m,
@@ -3776,37 +3773,37 @@ var xt = /* @__PURE__ */ function(e) {
3776
3773
  publishLabels: re,
3777
3774
  ruleSourceOptions: j,
3778
3775
  onFetchExistingRules: ie,
3779
- shareOverlay: N,
3780
- isShareVisible: oe,
3781
- isSharePrimary: se,
3782
- onEdit: le,
3783
- onDownload: ue,
3784
- isDownloadVisible: de,
3785
- isDownloadPrimary: fe,
3786
- onLoadContentFile: pe,
3787
- onLoadContentFilePreview: me,
3788
- renderContentFilePreview: B,
3789
- renderContentFileTree: V,
3790
- onDelete: he,
3791
- onUnshare: ge,
3792
- isUnshareVisible: _e,
3793
- onRevokeShare: ve,
3794
- onFetchRecipientsCount: ye,
3795
- isRevokeShareVisible: be,
3796
- onUnpublish: xe,
3797
- isUnpublishVisible: H,
3776
+ shareOverlay: ae,
3777
+ isShareVisible: se,
3778
+ isSharePrimary: ce,
3779
+ onEdit: de,
3780
+ onDownload: fe,
3781
+ isDownloadVisible: pe,
3782
+ isDownloadPrimary: me,
3783
+ onLoadContentFile: he,
3784
+ onLoadContentFilePreview: ge,
3785
+ renderContentFilePreview: R,
3786
+ renderContentFileTree: z,
3787
+ onDelete: _e,
3788
+ onUnshare: ve,
3789
+ isUnshareVisible: ye,
3790
+ onRevokeShare: be,
3791
+ onFetchRecipientsCount: xe,
3792
+ isRevokeShareVisible: Se,
3793
+ onUnpublish: Ce,
3794
+ isUnpublishVisible: B,
3798
3795
  onLogin: $t,
3799
3796
  onLogout: en,
3800
- texts: Pe,
3801
- limitsFooterNote: Fe,
3802
- styles: { colors: { featuredChipStyle: Ne?.colors?.featuredChipStyle } }
3797
+ texts: Le,
3798
+ limitsFooterNote: Re,
3799
+ styles: { colors: { featuredChipStyle: Ie?.colors?.featuredChipStyle } }
3803
3800
  })
3804
3801
  ]
3805
3802
  });
3806
3803
  }, ri = ({ 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 }) => {
3807
- let [x, S] = R(!1), C = v ?? x, w = (e) => {
3804
+ let [x, S] = L(!1), C = v ?? x, w = (e) => {
3808
3805
  e && u || (v === void 0 && S(e), y?.(e));
3809
- }, [T, E] = R(""), D = L(null), O = I(() => [...s, ...t].filter((e) => e.label.toLocaleLowerCase().includes(T.toLocaleLowerCase())), [
3806
+ }, [T, E] = L(""), D = I(null), O = F(() => [...s, ...t].filter((e) => e.label.toLocaleLowerCase().includes(T.toLocaleLowerCase())), [
3810
3807
  s,
3811
3808
  t,
3812
3809
  T
@@ -3814,50 +3811,50 @@ var xt = /* @__PURE__ */ function(e) {
3814
3811
  w(!1), requestAnimationFrame(() => D.current?.focus());
3815
3812
  }, k = (e) => {
3816
3813
  a(e), ee();
3817
- }, A = _ ? _(ee) : /* @__PURE__ */ q("div", {
3814
+ }, A = _ ? _(ee) : /* @__PURE__ */ K("div", {
3818
3815
  className: M("w-full min-w-0 max-w-full p-3", h),
3819
3816
  children: [
3820
- /* @__PURE__ */ K(Me, {
3817
+ /* @__PURE__ */ G(Fe, {
3821
3818
  value: T,
3822
3819
  onChange: (e) => E(e ?? ""),
3823
3820
  placeholder: i.searchPlaceholder,
3824
3821
  "aria-label": i.searchAriaLabel
3825
3822
  }),
3826
- /* @__PURE__ */ K("div", {
3823
+ /* @__PURE__ */ G("div", {
3827
3824
  role: "listbox",
3828
3825
  className: "mt-2 max-h-[min(50dvh,320px)] min-w-0 overflow-y-auto",
3829
- children: c ? /* @__PURE__ */ K("span", {
3826
+ children: c ? /* @__PURE__ */ G("span", {
3830
3827
  role: "status",
3831
3828
  children: i.searchPlaceholder
3832
- }) : l ? /* @__PURE__ */ K("span", {
3829
+ }) : l ? /* @__PURE__ */ G("span", {
3833
3830
  role: "alert",
3834
3831
  children: i.errorLabel
3835
- }) : O.length === 0 ? /* @__PURE__ */ K("span", {
3832
+ }) : O.length === 0 ? /* @__PURE__ */ G("span", {
3836
3833
  role: "status",
3837
3834
  children: i.emptyLabel
3838
- }) : O.map((t) => /* @__PURE__ */ K(De, {
3835
+ }) : O.map((t) => /* @__PURE__ */ G(ke, {
3839
3836
  role: "option",
3840
3837
  "aria-selected": t.id === e,
3841
3838
  selected: t.id === e,
3842
- label: /* @__PURE__ */ q("span", {
3839
+ label: /* @__PURE__ */ K("span", {
3843
3840
  className: "flex min-w-0 items-center gap-2",
3844
- children: [t.icon && /* @__PURE__ */ K("span", {
3841
+ children: [t.icon && /* @__PURE__ */ G("span", {
3845
3842
  "aria-hidden": !0,
3846
3843
  children: t.icon
3847
- }), /* @__PURE__ */ q("span", {
3844
+ }), /* @__PURE__ */ K("span", {
3848
3845
  className: "flex min-w-0 flex-col",
3849
- children: [/* @__PURE__ */ K(Se, {
3846
+ children: [/* @__PURE__ */ G(we, {
3850
3847
  text: t.label,
3851
3848
  query: T,
3852
3849
  maxLines: 2
3853
- }), t.description && /* @__PURE__ */ K("span", { children: t.description })]
3850
+ }), t.description && /* @__PURE__ */ G("span", { children: t.description })]
3854
3851
  })]
3855
3852
  }),
3856
3853
  onClick: () => k(t.id),
3857
3854
  className: "h-auto max-w-full py-2"
3858
3855
  }, t.id))
3859
3856
  }),
3860
- o && /* @__PURE__ */ K(xe, {
3857
+ o && /* @__PURE__ */ G(Ce, {
3861
3858
  className: "mt-2 min-h-11 max-w-full",
3862
3859
  label: i.browseLabel ?? "",
3863
3860
  onClick: () => {
@@ -3865,7 +3862,7 @@ var xt = /* @__PURE__ */ function(e) {
3865
3862
  }
3866
3863
  })
3867
3864
  ]
3868
- }), te = /* @__PURE__ */ K(Te, {
3865
+ }), te = /* @__PURE__ */ G(De, {
3869
3866
  onFocus: (e) => {
3870
3867
  D.current = e.currentTarget;
3871
3868
  },
@@ -3890,11 +3887,11 @@ var xt = /* @__PURE__ */ function(e) {
3890
3887
  className: "cursor-pointer",
3891
3888
  iconAfter: g
3892
3889
  });
3893
- return b ? /* @__PURE__ */ q(ht, { children: [/* @__PURE__ */ K("div", {
3890
+ return b ? /* @__PURE__ */ K(gt, { children: [/* @__PURE__ */ G("div", {
3894
3891
  className: "w-full min-w-0",
3895
3892
  onClick: () => w(!C),
3896
3893
  children: te
3897
- }), b(A, C, ee)] }) : /* @__PURE__ */ K(ge, {
3894
+ }), b(A, C, ee)] }) : /* @__PURE__ */ G(ve, {
3898
3895
  open: C,
3899
3896
  onOpenChange: w,
3900
3897
  disabled: u,
@@ -3904,14 +3901,14 @@ var xt = /* @__PURE__ */ function(e) {
3904
3901
  children: te
3905
3902
  });
3906
3903
  }, ii = ({ service: e, texts: t, onLogin: n, onLogout: r }) => {
3907
- let [i, a] = R(!1), [s, c] = R(!1), [l, u] = R(!1), [d, f] = R(), p = e.authenticationType === y.ApiKey, m = p ? t?.deleteActionLabel ?? "Delete" : t?.logoutActionLabel ?? "Log out", h = p ? t?.deleteApiKeyConfirmMessage?.(b.User) ?? "Are you sure you want to delete your personal API key?" : t?.logoutConfirmMessage ?? "Are you sure you want to log out?";
3908
- return /* @__PURE__ */ q(wn, {
3904
+ let [i, a] = L(!1), [s, c] = L(!1), [l, u] = L(!1), [d, f] = L(), p = e.authenticationType === y.ApiKey, m = p ? t?.deleteActionLabel ?? "Delete" : t?.logoutActionLabel ?? "Log out", h = p ? t?.deleteApiKeyConfirmMessage?.(b.User) ?? "Are you sure you want to delete your personal API key?" : t?.logoutConfirmMessage ?? "Are you sure you want to log out?";
3905
+ return /* @__PURE__ */ K(wn, {
3909
3906
  label: e.name,
3910
3907
  description: e.description,
3911
- icon: /* @__PURE__ */ K(ft, {
3912
- size: B.SM,
3908
+ icon: /* @__PURE__ */ G(ft, {
3909
+ size: R.SM,
3913
3910
  "aria-hidden": !0,
3914
- stroke: V
3911
+ stroke: z
3915
3912
  }),
3916
3913
  status: e.status,
3917
3914
  isActive: e.status === o.SignedIn,
@@ -3931,7 +3928,7 @@ var xt = /* @__PURE__ */ function(e) {
3931
3928
  keyCardTitleClassName: "dial-tiny-semi-text",
3932
3929
  keyCardDescriptionClassName: "dial-tiny-text",
3933
3930
  deleteActionClassName: Cn.errorText,
3934
- renderLoginOptions: e.canConsentToOfflineUsage ? (e) => /* @__PURE__ */ K(pe, {
3931
+ renderLoginOptions: e.canConsentToOfflineUsage ? (e) => /* @__PURE__ */ G(he, {
3935
3932
  isSelected: i,
3936
3933
  onChange: a,
3937
3934
  disabled: e,
@@ -3939,37 +3936,37 @@ var xt = /* @__PURE__ */ function(e) {
3939
3936
  caption: t?.offlineUsageConsentHint
3940
3937
  }) : void 0,
3941
3938
  children: [
3942
- e.hint && /* @__PURE__ */ K("p", {
3939
+ e.hint && /* @__PURE__ */ G("p", {
3943
3940
  className: M("dial-small-text break-words", Cn.description),
3944
3941
  children: e.hint
3945
3942
  }),
3946
- e.hasSharedCredentials && /* @__PURE__ */ K(gn, {
3947
- icon: /* @__PURE__ */ K(We, {
3948
- size: B.SM,
3943
+ e.hasSharedCredentials && /* @__PURE__ */ G(gn, {
3944
+ icon: /* @__PURE__ */ G(qe, {
3945
+ size: R.SM,
3949
3946
  "aria-hidden": !0,
3950
- stroke: V
3947
+ stroke: z
3951
3948
  }),
3952
3949
  title: t?.sharedCredentials ?? "Shared credentials are available for this service."
3953
3950
  }),
3954
- s && /* @__PURE__ */ q("div", {
3951
+ s && /* @__PURE__ */ K("div", {
3955
3952
  className: "flex flex-col gap-3 pt-3",
3956
3953
  children: [
3957
- /* @__PURE__ */ K("p", { children: h }),
3958
- d && /* @__PURE__ */ K("p", {
3954
+ /* @__PURE__ */ G("p", { children: h }),
3955
+ d && /* @__PURE__ */ G("p", {
3959
3956
  role: "alert",
3960
3957
  className: Cn.errorText,
3961
3958
  children: d
3962
3959
  }),
3963
- /* @__PURE__ */ q("div", {
3960
+ /* @__PURE__ */ K("div", {
3964
3961
  className: "flex flex-wrap justify-end gap-2",
3965
- children: [/* @__PURE__ */ K(U, {
3962
+ children: [/* @__PURE__ */ G(je, {
3966
3963
  className: "min-h-11",
3967
3964
  label: t?.cancelLabel ?? "Cancel",
3968
3965
  disabled: l,
3969
3966
  onClick: () => {
3970
3967
  c(!1), f(void 0);
3971
3968
  }
3972
- }), /* @__PURE__ */ K(he, {
3969
+ }), /* @__PURE__ */ G(_e, {
3973
3970
  className: "min-h-11",
3974
3971
  label: m,
3975
3972
  disabled: l,
@@ -3991,39 +3988,39 @@ var xt = /* @__PURE__ */ function(e) {
3991
3988
  })
3992
3989
  ]
3993
3990
  });
3994
- }, ai = ({ services: e, isLoading: t = !1, hasError: n = !1, showEmptyState: r = !1, onRetry: i, onLogin: a, onLogout: o, texts: s }) => t && !e.length ? /* @__PURE__ */ K("p", {
3991
+ }, ai = ({ services: e, isLoading: t = !1, hasError: n = !1, showEmptyState: r = !1, onRetry: i, onLogin: a, onLogout: o, texts: s }) => t && !e.length ? /* @__PURE__ */ G("p", {
3995
3992
  role: "status",
3996
3993
  className: "px-6 py-3",
3997
3994
  children: s?.loading ?? "Loading…"
3998
- }) : n ? /* @__PURE__ */ q("div", {
3995
+ }) : n ? /* @__PURE__ */ K("div", {
3999
3996
  className: "flex flex-col gap-2 px-6 py-3",
4000
- children: [/* @__PURE__ */ K("p", {
3997
+ children: [/* @__PURE__ */ G("p", {
4001
3998
  role: "alert",
4002
3999
  children: s?.loadError ?? "Unable to load credentials"
4003
- }), /* @__PURE__ */ K(U, {
4000
+ }), /* @__PURE__ */ G(je, {
4004
4001
  className: "min-h-11 self-start",
4005
4002
  label: s?.retry ?? "Retry",
4006
4003
  onClick: i
4007
4004
  })]
4008
- }) : e.length ? /* @__PURE__ */ q("section", {
4005
+ }) : e.length ? /* @__PURE__ */ K("section", {
4009
4006
  "aria-label": s?.title ?? "Credentials",
4010
4007
  className: "flex min-w-0 flex-col gap-5 px-6 py-4",
4011
- children: [/* @__PURE__ */ K("h2", {
4008
+ children: [/* @__PURE__ */ G("h2", {
4012
4009
  className: "dial-h3-text",
4013
4010
  children: s?.title ?? "Credentials"
4014
- }), /* @__PURE__ */ K("div", {
4011
+ }), /* @__PURE__ */ G("div", {
4015
4012
  className: "flex min-w-0 flex-col",
4016
- children: e.map((e) => /* @__PURE__ */ K(ii, {
4013
+ children: e.map((e) => /* @__PURE__ */ G(ii, {
4017
4014
  service: e,
4018
4015
  texts: s,
4019
4016
  onLogin: a,
4020
4017
  onLogout: o
4021
4018
  }, e.id))
4022
4019
  })]
4023
- }) : r ? /* @__PURE__ */ K("p", {
4020
+ }) : r ? /* @__PURE__ */ G("p", {
4024
4021
  role: "status",
4025
4022
  className: "px-6 py-3",
4026
4023
  children: s?.empty ?? "No credentials required"
4027
4024
  }) : null;
4028
4025
  //#endregion
4029
- export { Rt as AppIdentity, ai as ApplicationCredentials, Et as CATALOG_CLASS, Xt as Card, Qt as CardGrid, Zt as CardRowRenderer, ni as Catalog, Z as CatalogContentNodeType, Q as CatalogContentPreviewType, J as CatalogDetailsTab, St as CatalogLimitStatus, s as CatalogSortKey, X as CatalogViewMode, xt as CodeLanguage, Wn as ContentTab, o as CredentialStatus, Bt as CredentialsBadge, e as CredentialsBadgeState, b as CredentialsLevel, n as CredentialsUiState, ri as DeploymentSelectorField, Ct as DeploymentSize, Y as DetailsConfirmationKind, Sr as DetailsPanel, wr as FavoriteCard, Dr as Favorites, Kr as Filter, wt as LimitRowLayout, nr as LimitsTab, Vr as ListView, Yr as Toolbar, y as ToolsetAuthenticationType, Gt as TopicTag, r as buildCatalogTabs, a as filterCatalogItems, d as getCredentialsBadgeState, c as getCredentialsUiState, t as getSignedInLevel, u as getTopicOptions, l as sortCatalogItems, Tt as useFavColumns, Ft as useScrollVirtualizer };
4026
+ export { Rt as AppIdentity, ai as ApplicationCredentials, Et as CATALOG_CLASS, Xt as Card, Qt as CardGrid, Zt as CardRowRenderer, ni as Catalog, Z as CatalogContentNodeType, Q as CatalogContentPreviewType, J as CatalogDetailsTab, St as CatalogLimitStatus, s as CatalogSortKey, X as CatalogViewMode, q as CodeLanguage, Wn as ContentTab, o as CredentialStatus, Bt as CredentialsBadge, e as CredentialsBadgeState, b as CredentialsLevel, n as CredentialsUiState, ri as DeploymentSelectorField, Ct as DeploymentSize, Y as DetailsConfirmationKind, Sr as DetailsPanel, wr as FavoriteCard, Dr as Favorites, Kr as Filter, wt as LimitRowLayout, nr as LimitsTab, Vr as ListView, Yr as Toolbar, y as ToolsetAuthenticationType, Gt as TopicTag, r as buildCatalogTabs, a as filterCatalogItems, d as getCredentialsBadgeState, c as getCredentialsUiState, t as getSignedInLevel, u as getTopicOptions, l as sortCatalogItems, Tt as useFavColumns, Ft as useScrollVirtualizer };