@epam/ai-dial-catalog 1.1.0-dev.479 → 1.1.0-dev.487

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,9 +1,9 @@
1
1
  import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _ } from "./mapping-FVCFAmAc.js";
2
- import { CatalogEntityType as v, DESKTOP_BREAKPOINT_PX as y, DeploymentIcon as b, EntityHeader as x, EntityTypeLabel as S, FeaturedChip as C, ItemHeader as w, MarkdownCodeBlock as T, MarkdownRenderer as E, MarkdownWithPlaceholders as D, PanelEmptyState as O, ResourceSummary as ee, SELECT_LIST_MAX_HEIGHT_CLASS_NAME as te, buildCssVars as k, mergeClasses as A } from "@epam/ai-dial-chat-shared";
3
- import { Fragment as ne, memo as re, useCallback as j, useEffect as M, useLayoutEffect as ie, useMemo as N, useRef as P, useState as F } from "react";
4
- import { ButtonAppearance as ae, ButtonDropdown as oe, ButtonVariant as I, CardShell as se, CloseButton as ce, DIAL_ICON_SIZE as L, DIAL_KIT_ICON_STROKE as R, DangerButton as le, Dropdown as ue, ElementSize as de, EllipsisTooltip as fe, FolderPath as pe, GhostButton as me, GhostIconButton as he, Highlight as ge, InlineSelect as _e, InlineSelectTrigger as ve, Input as ye, LinkButton as be, MenuItem as xe, MenuItemMark as z, NeutralButton as B, NeutralIconButton as Se, PrimaryButton as Ce, ProgressBar as we, RadioGroup as Te, Search as Ee, SegmentedControl as De, Skeleton as Oe, SkeletonAvatarShape as ke, Spinner as Ae, Tabs as je, ToggleIconButton as V, Tooltip as Me, mergeClasses as Ne } from "@epam/ai-dial-ui-kit";
5
- import { IconAlertTriangleFilled as Pe, IconArrowRight as H, IconBuildingCommunity as Fe, IconCheck as Ie, IconChevronDown as Le, IconChevronLeft as Re, IconChevronRight as ze, IconCircleCheckFilled as Be, IconDots as Ve, IconDownload as He, IconFilter as Ue, IconFolder as We, IconKey as Ge, IconLayoutGrid as Ke, IconLayoutList as qe, IconLogin as Je, IconLogout as Ye, IconPencil as Xe, IconPlayerPlayFilled as Ze, IconPlus as Qe, IconShare as $e, IconStar as et, IconStarFilled as tt, IconTrash as nt, IconTrashX as rt, IconUser as U, IconUserOff as it, IconWorldOff as at, IconWorldShare as ot } from "@tabler/icons-react";
6
- import { Fragment as st, jsx as W, jsxs as G } from "react/jsx-runtime";
2
+ import { CatalogEntityType as v, DESKTOP_BREAKPOINT_PX as y, DeploymentIcon as b, EntityHeader as x, EntityTypeLabel as S, FeaturedChip as C, ItemHeader as w, MarkdownCodeBlock as T, MarkdownRenderer as E, MarkdownWithPlaceholders as D, PanelEmptyState as O, ResourceSummary as ee, SELECT_LIST_MAX_HEIGHT_CLASS_NAME as te, buildCssVars as ne, mergeClasses as k } from "@epam/ai-dial-chat-shared";
3
+ import { Fragment as re, memo as ie, useCallback as A, useEffect as j, useLayoutEffect as ae, useMemo as M, useRef as N, useState as P } from "react";
4
+ import { ButtonAppearance as oe, ButtonDropdown as se, ButtonVariant as F, CardShell as ce, CloseButton as le, DIAL_ICON_SIZE as I, DIAL_KIT_ICON_STROKE as L, DangerButton as ue, Dropdown as de, ElementSize as fe, EllipsisTooltip as pe, FolderPath as me, GhostButton as he, GhostIconButton as ge, Highlight as _e, InlineSelect as ve, InlineSelectTrigger as ye, Input as be, LinkButton as xe, MenuItem as Se, MenuItemMark as R, NeutralButton as z, NeutralIconButton as Ce, PrimaryButton as we, ProgressBar as Te, RadioGroup as Ee, Search as De, SegmentedControl as Oe, Skeleton as ke, SkeletonAvatarShape as Ae, Spinner as je, Tabs as Me, ToggleIconButton as B, Tooltip as Ne, mergeClasses as Pe } from "@epam/ai-dial-ui-kit";
5
+ import { IconAlertTriangleFilled as Fe, IconArrowRight as V, IconBuildingCommunity as Ie, IconCheck as Le, IconChevronDown as Re, IconChevronLeft as ze, IconChevronRight as Be, IconCircleCheckFilled as Ve, IconDots as He, IconDownload as Ue, IconFilter as We, IconFolder as Ge, IconKey as Ke, IconLayoutGrid as qe, IconLayoutList as Je, IconLogin as Ye, IconLogout as Xe, IconPencil as Ze, IconPlayerPlayFilled as Qe, IconPlus as $e, IconShare as et, IconStar as tt, IconStarFilled as nt, IconTrash as rt, IconTrashX as it, IconUser as H, IconUserOff as at, IconWorldOff as ot, IconWorldShare as st } from "@tabler/icons-react";
6
+ import { Fragment as U, jsx as W, jsxs as G } from "react/jsx-runtime";
7
7
  import { PublishFooter as ct, PublishPanel as lt, derivePublishState as ut, usePublishFlow as dt } from "@epam/ai-dial-publish-panel";
8
8
  import { Grid as ft } from "@epam/ai-dial-ui-kit/grid";
9
9
  //#region src/types/code-language.ts
@@ -26,14 +26,14 @@ var pt = /* @__PURE__ */ function(e) {
26
26
  }({}), _t = /* @__PURE__ */ function(e) {
27
27
  return e.Markdown = "markdown", e.Text = "text", e.Image = "image", e.Unsupported = "unsupported", e;
28
28
  }({}), X = () => {
29
- let [e, t] = F(() => window.innerWidth);
30
- return M(() => {
29
+ let [e, t] = P(() => window.innerWidth);
30
+ return j(() => {
31
31
  let e = () => t(window.innerWidth);
32
32
  return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
33
33
  }, []), e >= 1024 ? 4 : e >= 640 ? 2 : 1;
34
34
  }, vt = (e) => {
35
35
  let { colors: t } = e ?? {};
36
- return k({
36
+ return ne({
37
37
  "--cat-bg": t?.background,
38
38
  "--cat-heading-title-text": t?.headingTitleText
39
39
  });
@@ -42,11 +42,11 @@ var pt = /* @__PURE__ */ function(e) {
42
42
  let { overflow: t, overflowY: n } = getComputedStyle(e);
43
43
  return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : Z(e.parentElement);
44
44
  }, xt = 10, Q = 10, St = 30, Ct = (e, t, n = xt) => {
45
- let r = P(null), [i, a] = F({
45
+ let r = N(null), [i, a] = P({
46
46
  start: 0,
47
47
  end: St
48
48
  });
49
- M(() => {
49
+ j(() => {
50
50
  let i = r.current;
51
51
  if (!i) return;
52
52
  let o = Z(i.parentElement), s = () => {
@@ -75,7 +75,7 @@ var pt = /* @__PURE__ */ function(e) {
75
75
  endRow: Math.min(e, Math.max(i.end, s + Q))
76
76
  };
77
77
  }, wt = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
78
- let r = P(null), [i, a] = F(() => {
78
+ let r = N(null), [i, a] = P(() => {
79
79
  let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= y ? 60 : 0)), i = bt((n ? r : Math.min(yt, r)) - 64), a = Math.ceil(e / i);
80
80
  return {
81
81
  startRow: 0,
@@ -83,7 +83,7 @@ var pt = /* @__PURE__ */ function(e) {
83
83
  columnCount: i
84
84
  };
85
85
  });
86
- M(() => {
86
+ j(() => {
87
87
  let n = r.current;
88
88
  if (!n) return;
89
89
  let i = Z(n.parentElement), o = () => {
@@ -124,23 +124,23 @@ var pt = /* @__PURE__ */ function(e) {
124
124
  lastUsed: "_lastUsed_188yo_5",
125
125
  version: "_version_188yo_9"
126
126
  }, Dt = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, styles: c, lastUsedTrailing: l, iconClassName: u, iconOverlay: d }) => {
127
- let f = c?.colors, p = c?.typography ?? {}, m = a === ht.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = k({
127
+ let f = c?.colors, p = c?.typography ?? {}, m = a === ht.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = ne({
128
128
  "--ai-name-text": f?.nameColor,
129
129
  "--ai-last-used-text": f?.lastUsedColor,
130
130
  "--ai-version-text": f?.versionColor
131
131
  });
132
132
  return /* @__PURE__ */ G("div", {
133
- className: A("flex min-w-0 items-start gap-3", s),
133
+ className: k("flex min-w-0 items-start gap-3", s),
134
134
  style: _,
135
135
  children: [/* @__PURE__ */ G("div", {
136
- className: A("relative flex-shrink-0", h, u),
136
+ className: k("relative flex-shrink-0", h, u),
137
137
  children: [/* @__PURE__ */ W("div", {
138
138
  className: "size-full overflow-hidden rounded-[inherit]",
139
139
  children: /* @__PURE__ */ W(b, {
140
140
  src: e ?? void 0,
141
141
  size: g,
142
142
  initialsName: n,
143
- styles: { badgeClassName: A(m ? "rounded-[14px]" : "rounded-[12px]") }
143
+ styles: { badgeClassName: k(m ? "rounded-[14px]" : "rounded-[12px]") }
144
144
  })
145
145
  }), d]
146
146
  }), /* @__PURE__ */ G("div", {
@@ -152,39 +152,39 @@ var pt = /* @__PURE__ */ function(e) {
152
152
  className: "flex min-w-0 flex-col",
153
153
  children: [/* @__PURE__ */ G("div", {
154
154
  className: "flex min-w-0 items-start gap-1 overflow-hidden",
155
- children: [/* @__PURE__ */ W(fe, {
156
- text: o ? /* @__PURE__ */ W(ge, {
155
+ children: [/* @__PURE__ */ W(pe, {
156
+ text: o ? /* @__PURE__ */ W(_e, {
157
157
  text: n,
158
158
  query: o
159
159
  }) : n,
160
- className: A("min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text", Et.name)
161
- }), r && /* @__PURE__ */ W(fe, {
160
+ className: k("min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text", Et.name)
161
+ }), r && /* @__PURE__ */ W(pe, {
162
162
  text: r,
163
- className: A("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text", Et.version)
163
+ className: k("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text", Et.version)
164
164
  })]
165
165
  }), m && i != null && /* @__PURE__ */ G("div", {
166
166
  className: "flex items-center gap-2",
167
167
  children: [/* @__PURE__ */ W("span", {
168
- className: A("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", Et.lastUsed),
168
+ className: k("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", Et.lastUsed),
169
169
  children: i
170
170
  }), l]
171
171
  })]
172
172
  })]
173
173
  })]
174
174
  });
175
- }, $ = { icon: "_icon_a0p4u_1" }, Ot = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || h(e) == null ? null : /* @__PURE__ */ W(Me, {
175
+ }, $ = { icon: "_icon_a0p4u_1" }, Ot = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || h(e) == null ? null : /* @__PURE__ */ W(Ne, {
176
176
  tooltip: t,
177
177
  asChild: !0,
178
178
  children: /* @__PURE__ */ W("span", {
179
179
  role: "img",
180
180
  "aria-label": t,
181
- style: k({
181
+ style: ne({
182
182
  "--cat-cred-badge-halo": r?.halo,
183
183
  "--cat-cred-badge-icon": r?.icon
184
184
  }),
185
- className: A("absolute -bottom-1 -end-1 shrink-0", n),
186
- children: /* @__PURE__ */ W(Pe, {
187
- size: L.SM,
185
+ className: k("absolute -bottom-1 -end-1 shrink-0", n),
186
+ children: /* @__PURE__ */ W(Fe, {
187
+ size: I.SM,
188
188
  className: $.icon,
189
189
  "aria-hidden": !0
190
190
  })
@@ -192,33 +192,33 @@ var pt = /* @__PURE__ */ function(e) {
192
192
  }), kt = {
193
193
  starFilledIcon: "_starFilledIcon_po6zj_1",
194
194
  starPop: "_starPop_po6zj_1"
195
- }, At = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ W(V, {
195
+ }, At = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ W(B, {
196
196
  size: n,
197
- style: k({ "--cat-star-filled": a }),
197
+ style: ne({ "--cat-star-filled": a }),
198
198
  className: i,
199
- icon: e ? /* @__PURE__ */ W(tt, {
200
- size: L.SM,
199
+ icon: e ? /* @__PURE__ */ W(nt, {
200
+ size: I.SM,
201
201
  className: kt.starFilledIcon
202
- }) : /* @__PURE__ */ W(et, {
203
- size: L.SM,
204
- stroke: R
202
+ }) : /* @__PURE__ */ W(tt, {
203
+ size: I.SM,
204
+ stroke: L
205
205
  }),
206
206
  "aria-label": r,
207
207
  onClick: t
208
208
  }), jt = { tag: "_tag_12518_1" }, Mt = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ W("div", {
209
- style: k({
209
+ style: ne({
210
210
  "--cat-card-tag-bg": r?.background,
211
211
  "--cat-card-tag-text": r?.text,
212
212
  "--cat-card-tag-border": r?.border
213
213
  }),
214
- className: A("flex h-6 w-fit items-center justify-center whitespace-nowrap rounded-md border px-2", jt.tag, n, t),
214
+ className: k("flex h-6 w-fit items-center justify-center whitespace-nowrap rounded-md border px-2", jt.tag, n, t),
215
215
  children: e
216
216
  }), Nt = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ W(Mt, {
217
217
  label: e,
218
218
  badgeClassName: t,
219
219
  colors: n
220
220
  }), Pt = 8, Ft = ({ topics: e, overflowAriaLabel: t, className: n }) => {
221
- let r = P(null), i = P([]), a = P([]), o = P(null), s = P(Infinity), [c, l] = F(e.length), u = e.join("\0"), d = j(() => {
221
+ let r = N(null), i = N([]), a = N([]), o = N(null), s = N(Infinity), [c, l] = P(e.length), u = e.join("\0"), d = A(() => {
222
222
  let t = r.current;
223
223
  if (!t || e.length === 0) return;
224
224
  let n = t.clientWidth;
@@ -234,14 +234,14 @@ var pt = /* @__PURE__ */ function(e) {
234
234
  }
235
235
  l(Math.min(f, s.current));
236
236
  }, [e.length]);
237
- if (ie(() => {
237
+ if (ae(() => {
238
238
  a.current = [], s.current = Infinity, l(e.length);
239
- }, [u]), ie(() => {
239
+ }, [u]), ae(() => {
240
240
  d();
241
- }), ie(() => {
241
+ }), ae(() => {
242
242
  let e = r.current;
243
243
  !e || c === 0 || e.scrollWidth <= e.clientWidth || (s.current = c - 1, l(s.current));
244
- }, [c]), M(() => {
244
+ }, [c]), j(() => {
245
245
  let e = r.current;
246
246
  if (!e) return;
247
247
  let t = new ResizeObserver(() => {
@@ -250,12 +250,12 @@ var pt = /* @__PURE__ */ function(e) {
250
250
  return t.observe(e), () => t.disconnect();
251
251
  }, [d]), e.length === 0) return /* @__PURE__ */ W("div", {
252
252
  ref: r,
253
- className: A("relative flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n)
253
+ className: k("relative flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n)
254
254
  });
255
255
  let f = e.length - c;
256
256
  return /* @__PURE__ */ G("div", {
257
257
  ref: r,
258
- className: A("flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n),
258
+ className: k("flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n),
259
259
  children: [
260
260
  e.slice(0, c).map((e, t) => /* @__PURE__ */ W("div", {
261
261
  ref: (e) => {
@@ -263,7 +263,7 @@ var pt = /* @__PURE__ */ function(e) {
263
263
  },
264
264
  children: /* @__PURE__ */ W(Nt, { label: e })
265
265
  }, e)),
266
- f > 0 && /* @__PURE__ */ W(Me, {
266
+ f > 0 && /* @__PURE__ */ W(Ne, {
267
267
  tooltip: e.slice(c).join(", "),
268
268
  children: /* @__PURE__ */ W("span", {
269
269
  "aria-label": t?.(f) ?? `and ${f} more topics`,
@@ -279,11 +279,11 @@ var pt = /* @__PURE__ */ function(e) {
279
279
  ]
280
280
  });
281
281
  }, It = { img: () => null }, Lt = (e) => e.target instanceof Element && e.target.closest("a") !== null, Rt = ({ 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 }) => {
282
- let [m, h] = F(r);
283
- M(() => {
282
+ let [m, h] = P(r);
283
+ j(() => {
284
284
  h(r);
285
285
  }, [e.id, r]);
286
- 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 = k({
286
+ 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 = ne({
287
287
  "--cg-description-text": d?.colors?.textSecondary,
288
288
  "--cg-selected-border": d?.colors?.selectedBorder,
289
289
  "--cg-selected-bg": d?.colors?.selectedBackground,
@@ -291,9 +291,9 @@ var pt = /* @__PURE__ */ function(e) {
291
291
  "--cg-footer-border": d?.colors?.footerBorder
292
292
  }), x = !p && e.isFeatured === !0, S = !p && a?.(e) !== !1, w = !p || e.folder.length > 0, T = n ? (t) => {
293
293
  Lt(t) || n(e);
294
- } : void 0, D = j((t) => {
294
+ } : void 0, D = A((t) => {
295
295
  !n || Lt(t) || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e));
296
- }, [n, e]), O = j((t) => {
296
+ }, [n, e]), O = A((t) => {
297
297
  t.stopPropagation();
298
298
  let n = !m;
299
299
  h(n), i?.(e.id, n);
@@ -302,7 +302,7 @@ var pt = /* @__PURE__ */ function(e) {
302
302
  i,
303
303
  e.id
304
304
  ]);
305
- return /* @__PURE__ */ G(se, {
305
+ return /* @__PURE__ */ G(ce, {
306
306
  ...n ? {
307
307
  role: "button",
308
308
  tabIndex: 0,
@@ -311,21 +311,22 @@ var pt = /* @__PURE__ */ function(e) {
311
311
  } : {},
312
312
  "aria-label": e.name,
313
313
  style: b,
314
- className: A("box-border cursor-pointer gap-3", Tt.card, x ? Tt.featuredCard : void 0, l ? Tt.selectedCard : void 0, u),
314
+ className: k("box-border cursor-pointer gap-3", Tt.card, x ? Tt.featuredCard : void 0, l ? Tt.selectedCard : void 0, u),
315
315
  children: [
316
316
  x && /* @__PURE__ */ W("div", {
317
317
  className: "absolute end-[22px] top-0 -translate-y-1/2",
318
318
  children: /* @__PURE__ */ W(C, {
319
319
  label: o,
320
320
  type: e.type,
321
- className: _
321
+ className: _,
322
+ style: d?.colors?.featuredChipStyle
322
323
  })
323
324
  }),
324
- l && /* @__PURE__ */ W(Ie, {
325
- size: L.SM,
326
- className: A("absolute end-3 top-3 shrink-0", Tt.checkIcon),
325
+ l && /* @__PURE__ */ W(Le, {
326
+ size: I.SM,
327
+ className: k("absolute end-3 top-3 shrink-0", Tt.checkIcon),
327
328
  "aria-hidden": !0,
328
- stroke: R
329
+ stroke: L
329
330
  }),
330
331
  /* @__PURE__ */ W(Dt, {
331
332
  icon: e.iconUrl,
@@ -341,7 +342,7 @@ var pt = /* @__PURE__ */ function(e) {
341
342
  })
342
343
  }),
343
344
  /* @__PURE__ */ W("div", {
344
- className: A("line-clamp-2 min-h-[2lh] break-words", Tt.description),
345
+ className: k("line-clamp-2 min-h-[2lh] break-words", Tt.description),
345
346
  children: e.description && /* @__PURE__ */ W(E, {
346
347
  content: e.description,
347
348
  classNames: {
@@ -363,29 +364,29 @@ var pt = /* @__PURE__ */ function(e) {
363
364
  children: /* @__PURE__ */ W(Ft, { topics: e.topics })
364
365
  }),
365
366
  w && /* @__PURE__ */ W("div", {
366
- className: A("pt-3", !p && A("border-t", Tt.footer)),
367
+ className: k("pt-3", !p && k("border-t", Tt.footer)),
367
368
  children: /* @__PURE__ */ G("div", {
368
369
  className: "flex items-center gap-2",
369
370
  children: [/* @__PURE__ */ W("div", {
370
371
  className: "min-w-0 flex-1",
371
- children: e.folder.length > 0 && /* @__PURE__ */ W(pe, {
372
+ children: e.folder.length > 0 && /* @__PURE__ */ W(me, {
372
373
  segments: e.folder,
373
374
  labelClassName: v,
374
375
  leafClassName: y
375
376
  })
376
377
  }), S && /* @__PURE__ */ W(At, {
377
378
  isStarred: m,
378
- size: de.Small,
379
+ size: fe.Small,
379
380
  onClick: O,
380
381
  ariaLabel: m ? c : s,
381
- className: A(Tt.starBtn, !m && Tt.emptyStarHidden)
382
+ className: k(Tt.starBtn, !m && Tt.emptyStarHidden)
382
383
  })]
383
384
  })
384
385
  })
385
386
  ]
386
387
  });
387
- }, zt = ({ 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 }) => {
388
- let p = e * n, m = t.slice(p, p + n);
388
+ }, zt = ({ 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 }) => {
389
+ let m = e * n, h = t.slice(m, m + n);
389
390
  return /* @__PURE__ */ W("div", {
390
391
  style: {
391
392
  top: e * 268,
@@ -393,7 +394,7 @@ var pt = /* @__PURE__ */ function(e) {
393
394
  },
394
395
  className: "absolute flex w-full gap-5 pb-5",
395
396
  children: Array.from({ length: n }, (e, t) => {
396
- let n = m[t];
397
+ let n = h[t];
397
398
  return /* @__PURE__ */ W("div", {
398
399
  className: "h-full min-w-0 flex-1",
399
400
  children: n && /* @__PURE__ */ W(Rt, {
@@ -409,52 +410,55 @@ var pt = /* @__PURE__ */ function(e) {
409
410
  isSelected: n.id === u,
410
411
  className: "h-full",
411
412
  credentialsBadgeLoggedOutLabel: d,
412
- isReadonly: f
413
+ isReadonly: f,
414
+ styles: { colors: { featuredChipStyle: p } }
413
415
  })
414
416
  }, n?.id ?? `spacer-${t}`);
415
417
  })
416
418
  });
417
- }, Bt = re(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = Tt.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1 }) => {
418
- let f = a?.noResultsTitle ?? "No results", p = a?.featuredLabel ?? "Featured", m = a?.addToFavoritesAriaLabel ?? "Add to favorites", h = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", g = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", { containerRef: _, startRow: v, endRow: y, columnCount: b, totalHeight: x } = wt(e.length, { isFullWidth: d }), S = N(() => ({
419
+ }, Bt = ie(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = Tt.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1, featuredChipStyle: f }) => {
420
+ 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 } = wt(e.length, { isFullWidth: d }), C = M(() => ({
419
421
  items: e,
420
- columnCount: b,
422
+ columnCount: x,
421
423
  query: t,
422
424
  onToggleFavorite: n,
423
425
  isFavoriteVisible: r,
424
426
  onItemClick: i,
425
- featuredLabel: p,
426
- addToFavoritesAriaLabel: m,
427
- removeFromFavoritesAriaLabel: h,
427
+ featuredLabel: m,
428
+ addToFavoritesAriaLabel: h,
429
+ removeFromFavoritesAriaLabel: g,
428
430
  selectedItemId: s,
429
- credentialsBadgeLoggedOutLabel: g,
430
- isReadonly: u
431
+ credentialsBadgeLoggedOutLabel: _,
432
+ isReadonly: u,
433
+ featuredChipStyle: f
431
434
  }), [
432
435
  e,
433
- b,
436
+ x,
434
437
  t,
435
438
  n,
436
439
  r,
437
440
  i,
438
- p,
439
441
  m,
440
442
  h,
441
- s,
442
443
  g,
443
- u
444
+ s,
445
+ _,
446
+ u,
447
+ f
444
448
  ]);
445
449
  return o ? /* @__PURE__ */ W("div", {
446
450
  className: "grid gap-5 p-5",
447
451
  style: {
448
- gridTemplateColumns: `repeat(${b}, minmax(0, 1fr))`,
449
- ...k({ "--cg-skeleton-card-bg": l })
452
+ gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
453
+ ...ne({ "--cg-skeleton-card-bg": l })
450
454
  },
451
- children: Array.from({ length: b * 3 }, (e, t) => /* @__PURE__ */ W("div", {
452
- className: A("rounded-md border p-4", Tt.skeletonCard),
455
+ children: Array.from({ length: x * 3 }, (e, t) => /* @__PURE__ */ W("div", {
456
+ className: k("rounded-md border p-4", Tt.skeletonCard),
453
457
  style: { height: 248 },
454
- children: /* @__PURE__ */ W(Oe, {
458
+ children: /* @__PURE__ */ W(ke, {
455
459
  avatar: {
456
460
  size: 48,
457
- shape: ke.Square
461
+ shape: Ae.Square
458
462
  },
459
463
  showTitle: { width: `${60 + t * 17 % 30}%` },
460
464
  paragraph: { rows: 3 },
@@ -464,16 +468,16 @@ var pt = /* @__PURE__ */ function(e) {
464
468
  }, t))
465
469
  }) : e.length === 0 ? /* @__PURE__ */ W("div", {
466
470
  className: "flex size-full flex-col items-center justify-center",
467
- children: /* @__PURE__ */ W(O, { label: f })
471
+ children: /* @__PURE__ */ W(O, { label: p })
468
472
  }) : /* @__PURE__ */ W("div", {
469
- ref: _,
473
+ ref: v,
470
474
  className: "relative",
471
- style: { height: x },
472
- children: Array.from({ length: y - v }, (e, t) => {
473
- let n = v + t;
475
+ style: { height: S },
476
+ children: Array.from({ length: b - y }, (e, t) => {
477
+ let n = y + t;
474
478
  return /* @__PURE__ */ W(zt, {
475
479
  rowIndex: n,
476
- ...S
480
+ ...C
477
481
  }, n);
478
482
  })
479
483
  });
@@ -498,21 +502,21 @@ var pt = /* @__PURE__ */ function(e) {
498
502
  valueTrue: "_valueTrue_jnq93_17",
499
503
  valueFalse: "_valueFalse_jnq93_21",
500
504
  valueText: "_valueText_jnq93_25"
501
- }, Gt = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ G(st, { children: [/* @__PURE__ */ W(Be, {
502
- size: L.MD,
503
- className: A(r, Wt.checkIcon)
505
+ }, Gt = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(Ve, {
506
+ size: I.MD,
507
+ className: k(r, Wt.checkIcon)
504
508
  }), /* @__PURE__ */ W("span", {
505
- className: A(n, Wt.valueTrue),
509
+ className: k(n, Wt.valueTrue),
506
510
  children: i
507
511
  })] }) : e === !1 ? /* @__PURE__ */ W("span", {
508
- className: A(t, Wt.valueFalse),
512
+ className: k(t, Wt.valueFalse),
509
513
  children: a
510
514
  }) : /* @__PURE__ */ W("span", {
511
- className: A("min-w-0 break-words", t, Wt.valueText),
515
+ className: k("min-w-0 break-words", t, Wt.valueText),
512
516
  children: e
513
517
  }), Kt = ({ 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__ */ W("div", {
514
518
  className: "flex flex-col",
515
- style: k({
519
+ style: ne({
516
520
  "--tv-section-heading": l?.sectionHeading,
517
521
  "--tv-row-alt-bg": l?.rowAlt,
518
522
  "--tv-label": l?.label,
@@ -522,14 +526,14 @@ var pt = /* @__PURE__ */ function(e) {
522
526
  "--tv-value-text": l?.valueText
523
527
  }),
524
528
  children: t != null && t.length > 0 && /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ W("p", {
525
- className: A("mb-3 mt-0", o, Wt.sectionHeading),
529
+ className: k("mb-3 mt-0", o, Wt.sectionHeading),
526
530
  children: e
527
531
  }), /* @__PURE__ */ W("ul", {
528
532
  className: "m-0 list-none p-0",
529
533
  children: t.map((e, t) => /* @__PURE__ */ G("li", {
530
- className: A("flex items-center rounded px-3 py-2", t % 2 == 0 ? Wt.rowAlt : void 0),
534
+ className: k("flex items-center rounded px-3 py-2", t % 2 == 0 ? Wt.rowAlt : void 0),
531
535
  children: [/* @__PURE__ */ W("span", {
532
- className: A(n, Wt.label, "w-2/5 shrink-0"),
536
+ className: k(n, Wt.label, "w-2/5 shrink-0"),
533
537
  children: e.label
534
538
  }), /* @__PURE__ */ W("div", {
535
539
  className: "flex w-3/5 min-w-0 items-center gap-1",
@@ -553,17 +557,17 @@ var pt = /* @__PURE__ */ function(e) {
553
557
  [pt.Curl]: "bash",
554
558
  [pt.JavaScript]: "javascript"
555
559
  }, Xt = ({ 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" }) => {
556
- let [s, c] = F(e[0]?.language ?? pt.Python);
557
- M(() => {
560
+ let [s, c] = P(e[0]?.language ?? pt.Python);
561
+ j(() => {
558
562
  c(e[0]?.language ?? pt.Python);
559
563
  }, [e]);
560
- let l = N(() => e.map((e) => ({
564
+ let l = M(() => e.map((e) => ({
561
565
  key: e.language,
562
566
  label: Jt[e.language] ?? e.language,
563
567
  onClick: () => c(e.language)
564
568
  })), [e]), u = e.find((e) => e.language === s)?.code ?? "", d = e.length > 1;
565
569
  return /* @__PURE__ */ G("section", { children: [t != null && /* @__PURE__ */ W("p", {
566
- className: A("mb-3 mt-0", o, qt.sectionHeading),
570
+ className: k("mb-3 mt-0", o, qt.sectionHeading),
567
571
  children: t
568
572
  }), /* @__PURE__ */ W(T, {
569
573
  language: Yt[s] ?? s,
@@ -574,16 +578,16 @@ var pt = /* @__PURE__ */ function(e) {
574
578
  codeClassName: i,
575
579
  languageLabelClassName: a,
576
580
  hideDownload: !0,
577
- titleSlot: d ? /* @__PURE__ */ W(_e, {
581
+ titleSlot: d ? /* @__PURE__ */ W(ve, {
578
582
  items: l,
579
583
  matchReferenceWidth: !1,
580
584
  placement: "bottom-end",
581
- size: de.Small,
585
+ size: fe.Small,
582
586
  selectedKey: s
583
587
  }) : void 0
584
588
  })] });
585
589
  }, Zt = ({ 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" }) => {
586
- let [h, g] = F(0), _ = N(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = N(() => _.map((e, t) => ({
590
+ let [h, g] = P(0), _ = M(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = M(() => _.map((e, t) => ({
587
591
  key: e.url,
588
592
  label: e.label,
589
593
  onClick: () => g(t)
@@ -614,7 +618,7 @@ var pt = /* @__PURE__ */ function(e) {
614
618
  }),
615
619
  v && /* @__PURE__ */ G("section", { children: [
616
620
  /* @__PURE__ */ W("p", {
617
- className: A("mb-3 mt-0", m, qt.sectionHeading),
621
+ className: k("mb-3 mt-0", m, qt.sectionHeading),
618
622
  children: n
619
623
  }),
620
624
  y != null && /* @__PURE__ */ W(T, {
@@ -625,11 +629,11 @@ var pt = /* @__PURE__ */ function(e) {
625
629
  codeClassName: f,
626
630
  languageLabelClassName: p,
627
631
  hideDownload: !0,
628
- titleSlot: S ? /* @__PURE__ */ W(_e, {
632
+ titleSlot: S ? /* @__PURE__ */ W(ve, {
629
633
  items: b,
630
634
  matchReferenceWidth: !1,
631
635
  placement: "bottom-end",
632
- size: de.Small,
636
+ size: fe.Small,
633
637
  selectedKey: y.url
634
638
  }) : void 0
635
639
  }, h),
@@ -655,7 +659,7 @@ var pt = /* @__PURE__ */ function(e) {
655
659
  sectionClassName: m
656
660
  }),
657
661
  D && /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ W("p", {
658
- className: A("mb-3 mt-0", m, qt.sectionHeading),
662
+ className: k("mb-3 mt-0", m, qt.sectionHeading),
659
663
  children: o
660
664
  }), /* @__PURE__ */ W(T, {
661
665
  language: "bash",
@@ -666,7 +670,7 @@ var pt = /* @__PURE__ */ function(e) {
666
670
  hideDownload: !0
667
671
  })] }),
668
672
  O && /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ W("p", {
669
- className: A("mb-3 mt-0", m, qt.sectionHeading),
673
+ className: k("mb-3 mt-0", m, qt.sectionHeading),
670
674
  children: s
671
675
  }), /* @__PURE__ */ W(T, {
672
676
  language: "json",
@@ -684,17 +688,17 @@ var pt = /* @__PURE__ */ function(e) {
684
688
  footer: "_footer_13mok_9"
685
689
  }, $t = ({ confirmLabel: e, cancelLabel: t, variant: n = J.Info, isLoading: r = !1, isConfirmDisabled: i = !1, loadingStatusLabel: a, onConfirm: o, onCancel: s }) => {
686
690
  let c = n === J.Danger, l = (() => {
687
- if (r) return /* @__PURE__ */ W(Ae, { size: L.SM });
688
- if (c) return /* @__PURE__ */ W(rt, {
689
- size: L.MD,
691
+ if (r) return /* @__PURE__ */ W(je, { size: I.SM });
692
+ if (c) return /* @__PURE__ */ W(it, {
693
+ size: I.MD,
690
694
  "aria-hidden": !0,
691
- stroke: R
695
+ stroke: L
692
696
  });
693
- })(), u = c ? le : B;
697
+ })(), u = c ? ue : z;
694
698
  return /* @__PURE__ */ G("div", {
695
- className: A("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start", Qt.footer),
699
+ className: k("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start", Qt.footer),
696
700
  children: [
697
- /* @__PURE__ */ W(me, {
701
+ /* @__PURE__ */ W(he, {
698
702
  label: t,
699
703
  disabled: r,
700
704
  onClick: s
@@ -729,11 +733,11 @@ var pt = /* @__PURE__ */ function(e) {
729
733
  variant: r
730
734
  }),
731
735
  /* @__PURE__ */ W("p", {
732
- className: A(i, "break-words", Qt.message),
736
+ className: k(i, "break-words", Qt.message),
733
737
  children: t
734
738
  }),
735
739
  n != null && n.length > 0 && /* @__PURE__ */ W("ul", {
736
- className: A("flex list-disc flex-col gap-2 ps-5", i, Qt.consequences),
740
+ className: k("flex list-disc flex-col gap-2 ps-5", i, Qt.consequences),
737
741
  children: n.map((e) => /* @__PURE__ */ W("li", { children: e }, e))
738
742
  }),
739
743
  a
@@ -751,13 +755,13 @@ var pt = /* @__PURE__ */ function(e) {
751
755
  className: "relative inline-flex shrink-0",
752
756
  children: [
753
757
  /* @__PURE__ */ W("span", {
754
- className: A("flex size-8 items-center justify-center rounded-lg", on[n]),
758
+ className: k("flex size-8 items-center justify-center rounded-lg", on[n]),
755
759
  children: e
756
760
  }),
757
- t && /* @__PURE__ */ W(Be, {
758
- size: L.MD,
761
+ t && /* @__PURE__ */ W(Ve, {
762
+ size: I.MD,
759
763
  "aria-hidden": !0,
760
- className: A("absolute -end-2 -top-2", rn.activeIcon)
764
+ className: k("absolute -end-2 -top-2", rn.activeIcon)
761
765
  }),
762
766
  r != null && /* @__PURE__ */ W("span", {
763
767
  className: "sr-only",
@@ -772,19 +776,19 @@ var pt = /* @__PURE__ */ function(e) {
772
776
  }, ln = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ G("div", {
773
777
  role: "status",
774
778
  "aria-live": "polite",
775
- className: A("flex items-center gap-3 rounded-xl p-3", cn.card),
779
+ className: k("flex items-center gap-3 rounded-xl p-3", cn.card),
776
780
  children: [/* @__PURE__ */ W("span", {
777
- className: A("shrink-0", cn.icon, n != null && "mt-0.5"),
781
+ className: k("shrink-0", cn.icon, n != null && "mt-0.5"),
778
782
  children: e
779
783
  }), /* @__PURE__ */ G("div", {
780
784
  className: "flex min-w-0 flex-1 items-center justify-between gap-2",
781
785
  children: [/* @__PURE__ */ G("div", {
782
786
  className: "flex min-w-0 flex-col gap-1",
783
787
  children: [/* @__PURE__ */ W("span", {
784
- className: A(i, cn.title),
788
+ className: k(i, cn.title),
785
789
  children: t
786
790
  }), n != null && /* @__PURE__ */ W("span", {
787
- className: A(a, cn.description),
791
+ className: k(a, cn.description),
788
792
  children: n
789
793
  })]
790
794
  }), r != null && /* @__PURE__ */ W("div", {
@@ -793,19 +797,19 @@ var pt = /* @__PURE__ */ function(e) {
793
797
  })]
794
798
  })]
795
799
  }), un = (e) => e === _.ApiKey ? "You are currently using organization API key to access this toolset." : "You are currently using organization credentials to access this toolset.", dn = (e) => e === _.ApiKey ? "Configure your personal API key to have access to your data." : "Login using personal account to have access to your data.", fn = (e) => e === _.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", pn = (e) => e === _.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", mn = 20, hn = ({ state: e, authenticationType: t, texts: n }) => {
796
- let r = /* @__PURE__ */ W(Fe, {
800
+ let r = /* @__PURE__ */ W(Ie, {
797
801
  size: mn,
798
802
  "aria-hidden": !0,
799
- stroke: R
803
+ stroke: L
800
804
  });
801
805
  if (e === o.PersonalCredentialsActive) {
802
806
  let e = (n?.personalCredentialsActiveBannerTitle ?? pn)(t);
803
807
  return /* @__PURE__ */ W(ln, {
804
808
  icon: /* @__PURE__ */ W(sn, {
805
- icon: /* @__PURE__ */ W(U, {
806
- size: L.SM,
809
+ icon: /* @__PURE__ */ W(H, {
810
+ size: I.SM,
807
811
  "aria-hidden": !0,
808
- stroke: R
812
+ stroke: L
809
813
  }),
810
814
  isActive: !0,
811
815
  surface: an.Raised
@@ -817,10 +821,10 @@ var pt = /* @__PURE__ */ function(e) {
817
821
  let e = (n?.orgCredentialsActiveBannerTitle ?? fn)(t);
818
822
  return /* @__PURE__ */ W(ln, {
819
823
  icon: /* @__PURE__ */ W(sn, {
820
- icon: /* @__PURE__ */ W(Fe, {
821
- size: L.SM,
824
+ icon: /* @__PURE__ */ W(Ie, {
825
+ size: I.SM,
822
826
  "aria-hidden": !0,
823
- stroke: R
827
+ stroke: L
824
828
  }),
825
829
  isActive: !0,
826
830
  surface: an.Raised
@@ -839,15 +843,15 @@ var pt = /* @__PURE__ */ function(e) {
839
843
  rowDescription: "_rowDescription_1q3s8_9",
840
844
  errorText: "_errorText_1q3s8_13"
841
845
  }, _n = ({ item: e, level: t, label: n, description: r, icon: i, status: a, isActive: o, authenticationType: s, apiKeyAddedWhen: c, onLogin: l, onRequestLogout: u, onRequestDeleteApiKey: d, texts: p, labelClassName: m, descriptionClassName: h, errorClassName: g, keyCardTitleClassName: v, keyCardDescriptionClassName: y, deleteActionClassName: b }) => {
842
- let [x, S] = F(""), [C, w] = F(!1), [T, E] = F(!1), D = a === f.SignedIn, O = j(() => {
846
+ let [x, S] = P(""), [C, w] = P(!1), [T, E] = P(!1), D = a === f.SignedIn, O = A(() => {
843
847
  l?.(e, { level: t });
844
848
  }, [
845
849
  e,
846
850
  t,
847
851
  l
848
- ]), ee = j((e) => {
852
+ ]), ee = A((e) => {
849
853
  S(e ?? ""), w(!1);
850
- }, []), te = j(async () => {
854
+ }, []), te = A(async () => {
851
855
  if (x.trim().length === 0) {
852
856
  w(!0);
853
857
  return;
@@ -866,17 +870,17 @@ var pt = /* @__PURE__ */ function(e) {
866
870
  t,
867
871
  x,
868
872
  l
869
- ]), k = j(() => {
873
+ ]), ne = A(() => {
870
874
  u?.(t);
871
- }, [t, u]), ne = j(() => {
875
+ }, [t, u]), re = A(() => {
872
876
  d?.(t);
873
- }, [t, d]), re = p?.loginActionLabel ?? "Log in", M = p?.logoutActionLabel ?? "Log out", ie = p?.addApiKeyActionLabel ?? "Add", N = p?.deleteActionLabel ?? "Delete", P = p?.credentialsSignedInLabel ?? "Signed in", oe = p?.credentialsSignedOutLabel ?? "Signed out", I = p?.addingApiKeyStatusLabel ?? "Adding", se = p?.apiKeyConfiguredMessage ?? "Key has been configured", ce = c == null ? void 0 : (p?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(c);
877
+ }, [t, d]), ie = p?.loginActionLabel ?? "Log in", j = p?.logoutActionLabel ?? "Log out", ae = p?.addApiKeyActionLabel ?? "Add", M = p?.deleteActionLabel ?? "Delete", N = p?.credentialsSignedInLabel ?? "Signed in", se = p?.credentialsSignedOutLabel ?? "Signed out", F = p?.addingApiKeyStatusLabel ?? "Adding", ce = p?.apiKeyConfiguredMessage ?? "Key has been configured", le = c == null ? void 0 : (p?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(c);
874
878
  return /* @__PURE__ */ G("div", {
875
879
  className: "flex items-start gap-3 rounded-xl p-3",
876
880
  children: [/* @__PURE__ */ W(sn, {
877
881
  icon: i,
878
882
  isActive: o,
879
- statusLabel: o ? P : oe
883
+ statusLabel: o ? N : se
880
884
  }), /* @__PURE__ */ G("div", {
881
885
  className: "flex min-w-0 flex-1 flex-col gap-1",
882
886
  children: [
@@ -888,16 +892,16 @@ var pt = /* @__PURE__ */ function(e) {
888
892
  className: m,
889
893
  children: n
890
894
  }), /* @__PURE__ */ W("span", {
891
- className: A(h, gn.rowDescription),
895
+ className: k(h, gn.rowDescription),
892
896
  children: r
893
897
  })]
894
- }), s === _.OAuth && (D ? /* @__PURE__ */ W(le, {
895
- appearance: ae.Ghost,
896
- label: M,
898
+ }), s === _.OAuth && (D ? /* @__PURE__ */ W(ue, {
899
+ appearance: oe.Ghost,
900
+ label: j,
897
901
  className: "min-w-28 shrink-0 justify-center whitespace-nowrap",
898
- onClick: k
899
- }) : /* @__PURE__ */ W(B, {
900
- label: re,
902
+ onClick: ne
903
+ }) : /* @__PURE__ */ W(z, {
904
+ label: ie,
901
905
  className: "min-w-28 shrink-0 justify-center whitespace-nowrap",
902
906
  onClick: O
903
907
  }))]
@@ -906,7 +910,7 @@ var pt = /* @__PURE__ */ function(e) {
906
910
  className: "flex animate-fadeIn flex-col gap-1 pt-1",
907
911
  children: [/* @__PURE__ */ G("div", {
908
912
  className: "flex items-end gap-2",
909
- children: [/* @__PURE__ */ W(ye, {
913
+ children: [/* @__PURE__ */ W(be, {
910
914
  id: `catalog-item-${e.id}-${t}-api-key`,
911
915
  type: "password",
912
916
  autoComplete: "current-password",
@@ -916,38 +920,38 @@ var pt = /* @__PURE__ */ function(e) {
916
920
  invalid: C,
917
921
  disabled: T,
918
922
  containerClassName: "min-w-0 flex-1"
919
- }), /* @__PURE__ */ W(B, {
920
- label: T ? void 0 : ie,
921
- "aria-label": T ? I : void 0,
922
- iconBefore: T ? /* @__PURE__ */ W(Ae, {
923
- size: L.SM,
924
- ariaLabel: I
923
+ }), /* @__PURE__ */ W(z, {
924
+ label: T ? void 0 : ae,
925
+ "aria-label": T ? F : void 0,
926
+ iconBefore: T ? /* @__PURE__ */ W(je, {
927
+ size: I.SM,
928
+ ariaLabel: F
925
929
  }) : void 0,
926
930
  className: "shrink-0 whitespace-nowrap",
927
931
  onClick: te,
928
932
  disabled: T
929
933
  })]
930
934
  }), C && /* @__PURE__ */ W("span", {
931
- className: A(g, gn.errorText),
935
+ className: k(g, gn.errorText),
932
936
  children: p?.apiKeyRequiredErrorMessage ?? "API key is required."
933
937
  })]
934
938
  }),
935
939
  s === _.ApiKey && D && /* @__PURE__ */ W("div", {
936
940
  className: "animate-fadeIn pt-1",
937
941
  children: /* @__PURE__ */ W(ln, {
938
- icon: /* @__PURE__ */ W(Ge, {
939
- size: L.SM,
942
+ icon: /* @__PURE__ */ W(Ke, {
943
+ size: I.SM,
940
944
  "aria-hidden": !0,
941
- stroke: R
945
+ stroke: L
942
946
  }),
943
- title: se,
944
- description: ce,
947
+ title: ce,
948
+ description: le,
945
949
  titleClassName: v,
946
950
  descriptionClassName: y,
947
- action: /* @__PURE__ */ W(be, {
948
- label: N,
951
+ action: /* @__PURE__ */ W(xe, {
952
+ label: M,
949
953
  className: b,
950
- onClick: ne
954
+ onClick: re
951
955
  })
952
956
  })
953
957
  })
@@ -963,7 +967,7 @@ var pt = /* @__PURE__ */ function(e) {
963
967
  children: [/* @__PURE__ */ W("div", {
964
968
  className: "px-6 py-4",
965
969
  children: /* @__PURE__ */ W("div", {
966
- className: A("rounded-xl p-3", gn.surface),
970
+ className: k("rounded-xl p-3", gn.surface),
967
971
  children: /* @__PURE__ */ W(x, {
968
972
  item: e,
969
973
  iconSize: 40,
@@ -973,7 +977,7 @@ var pt = /* @__PURE__ */ function(e) {
973
977
  }), /* @__PURE__ */ G("div", {
974
978
  className: "flex flex-col gap-5 px-6 py-4",
975
979
  children: [/* @__PURE__ */ W("span", {
976
- className: A(c, gn.description),
980
+ className: k(c, gn.description),
977
981
  children: g
978
982
  }), /* @__PURE__ */ G("div", {
979
983
  className: "flex flex-col",
@@ -982,10 +986,10 @@ var pt = /* @__PURE__ */ function(e) {
982
986
  level: a.User,
983
987
  label: i?.personalCredentialsLabel ?? "Personal credentials",
984
988
  description: i?.personalCredentialsDescription ?? "These credentials apply only to your account.",
985
- icon: /* @__PURE__ */ W(U, {
986
- size: L.SM,
989
+ icon: /* @__PURE__ */ W(H, {
990
+ size: I.SM,
987
991
  "aria-hidden": !0,
988
- stroke: R
992
+ stroke: L
989
993
  }),
990
994
  status: h.userStatus,
991
995
  isActive: _,
@@ -1006,10 +1010,10 @@ var pt = /* @__PURE__ */ function(e) {
1006
1010
  level: a.Global,
1007
1011
  label: i?.organizationCredentialsLabel ?? "Organization credentials",
1008
1012
  description: i?.organizationCredentialsDescription ?? "Once added, these credentials will grant all users in your organization access to this toolset.",
1009
- icon: /* @__PURE__ */ W(Fe, {
1010
- size: L.SM,
1013
+ icon: /* @__PURE__ */ W(Ie, {
1014
+ size: I.SM,
1011
1015
  "aria-hidden": !0,
1012
- stroke: R
1016
+ stroke: L
1013
1017
  }),
1014
1018
  status: h.globalStatus,
1015
1019
  isActive: v,
@@ -1039,9 +1043,9 @@ var pt = /* @__PURE__ */ function(e) {
1039
1043
  }, xn = /* @__PURE__ */ function(e) {
1040
1044
  return e.Idle = "idle", e.Loading = "loading", e.Resolved = "resolved", e.Unknown = "unknown", e;
1041
1045
  }({}), Sn = { divider: "_divider_nhloi_1" }, Cn = 16, wn = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, onLogin: i, onLogout: a, onClose: o, texts: s, deleteActionClassName: c = "text-error" }) => {
1042
- let [l, u] = F(""), [d, p] = F(!1), [m, h] = F(!1), [g, _] = F(!1), v = n === f.SignedIn, y = j((e) => {
1046
+ let [l, u] = P(""), [d, p] = P(!1), [m, h] = P(!1), [g, _] = P(!1), v = n === f.SignedIn, y = A((e) => {
1043
1047
  u(e ?? ""), p(!1);
1044
- }, []), b = j(async () => {
1048
+ }, []), b = A(async () => {
1045
1049
  if (l.trim().length === 0) {
1046
1050
  p(!0);
1047
1051
  return;
@@ -1061,7 +1065,7 @@ var pt = /* @__PURE__ */ function(e) {
1061
1065
  l,
1062
1066
  i,
1063
1067
  o
1064
- ]), x = j(async () => {
1068
+ ]), x = A(async () => {
1065
1069
  _(!0);
1066
1070
  try {
1067
1071
  await a?.(e, { level: t }), o();
@@ -1084,12 +1088,12 @@ var pt = /* @__PURE__ */ function(e) {
1084
1088
  children: S
1085
1089
  })
1086
1090
  }),
1087
- /* @__PURE__ */ W("div", { className: A("mx-4 h-px", Sn.divider) }),
1091
+ /* @__PURE__ */ W("div", { className: k("mx-4 h-px", Sn.divider) }),
1088
1092
  !v && /* @__PURE__ */ G("div", {
1089
1093
  className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
1090
1094
  children: [/* @__PURE__ */ G("div", {
1091
1095
  className: "flex items-end gap-2",
1092
- children: [/* @__PURE__ */ W(ye, {
1096
+ children: [/* @__PURE__ */ W(be, {
1093
1097
  id: `catalog-item-${e.id}-${t}-api-key`,
1094
1098
  type: "password",
1095
1099
  autoComplete: "current-password",
@@ -1099,10 +1103,10 @@ var pt = /* @__PURE__ */ function(e) {
1099
1103
  invalid: d,
1100
1104
  disabled: m,
1101
1105
  containerClassName: "min-w-0 flex-1"
1102
- }), /* @__PURE__ */ W(B, {
1106
+ }), /* @__PURE__ */ W(z, {
1103
1107
  label: m ? void 0 : C,
1104
1108
  "aria-label": m ? T : void 0,
1105
- iconBefore: m ? /* @__PURE__ */ W(Ae, {
1109
+ iconBefore: m ? /* @__PURE__ */ W(je, {
1106
1110
  size: Cn,
1107
1111
  ariaLabel: T
1108
1112
  }) : void 0,
@@ -1117,17 +1121,17 @@ var pt = /* @__PURE__ */ function(e) {
1117
1121
  v && /* @__PURE__ */ W("div", {
1118
1122
  className: "animate-fadeIn px-4 py-3.5",
1119
1123
  children: /* @__PURE__ */ W(ln, {
1120
- icon: /* @__PURE__ */ W(Ge, {
1124
+ icon: /* @__PURE__ */ W(Ke, {
1121
1125
  size: 20,
1122
1126
  "aria-hidden": !0,
1123
- stroke: R
1127
+ stroke: L
1124
1128
  }),
1125
1129
  title: O,
1126
1130
  description: ee,
1127
- action: /* @__PURE__ */ W(be, {
1131
+ action: /* @__PURE__ */ W(xe, {
1128
1132
  label: g ? void 0 : w,
1129
1133
  "aria-label": g ? E : void 0,
1130
- iconBefore: g ? /* @__PURE__ */ W(Ae, {
1134
+ iconBefore: g ? /* @__PURE__ */ W(je, {
1131
1135
  size: Cn,
1132
1136
  ariaLabel: E
1133
1137
  }) : void 0,
@@ -1140,7 +1144,7 @@ var pt = /* @__PURE__ */ function(e) {
1140
1144
  ]
1141
1145
  });
1142
1146
  }, Tn = { name: "_name_gfs1p_1" }, En = (e) => e.isMyApp === !0, Dn = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
1143
- let [a, o] = F(!1), s = j(() => {
1147
+ let [a, o] = P(!1), s = A(() => {
1144
1148
  if (n) {
1145
1149
  o((e) => !e);
1146
1150
  return;
@@ -1152,21 +1156,21 @@ var pt = /* @__PURE__ */ function(e) {
1152
1156
  n
1153
1157
  ]);
1154
1158
  if (!En(e) || r && !r(e)) return null;
1155
- let c = /* @__PURE__ */ W(B, {
1159
+ let c = /* @__PURE__ */ W(z, {
1156
1160
  label: i,
1157
- iconBefore: /* @__PURE__ */ W($e, {
1158
- size: L.MD,
1159
- stroke: R
1161
+ iconBefore: /* @__PURE__ */ W(et, {
1162
+ size: I.MD,
1163
+ stroke: L
1160
1164
  }),
1161
- iconAfter: /* @__PURE__ */ W(Le, {
1162
- size: L.MD,
1163
- stroke: R
1165
+ iconAfter: /* @__PURE__ */ W(Re, {
1166
+ size: I.MD,
1167
+ stroke: L
1164
1168
  }),
1165
1169
  onClick: s,
1166
1170
  "aria-haspopup": n ? "menu" : void 0,
1167
1171
  "aria-expanded": n ? a : void 0
1168
1172
  });
1169
- return n ? /* @__PURE__ */ W(ue, {
1173
+ return n ? /* @__PURE__ */ W(de, {
1170
1174
  placement: "bottom-end",
1171
1175
  matchReferenceWidth: !1,
1172
1176
  open: a,
@@ -1180,45 +1184,45 @@ var pt = /* @__PURE__ */ function(e) {
1180
1184
  [mt.LimitReached]: "bg-error text-error",
1181
1185
  [mt.RunningLow]: "bg-warning text-warning"
1182
1186
  }, An = ({ status: e, label: t }) => /* @__PURE__ */ W("div", {
1183
- className: A("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", kn[e]),
1187
+ className: k("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", kn[e]),
1184
1188
  children: t
1185
- }), jn = ({ item: t, onUseInChat: n, isPrimaryActionVisible: r, onShare: i, shareOverlay: o, isShareVisible: s, isSharePrimary: c, onEdit: l, onDownload: u, isDownloadVisible: d, isDownloadPrimary: f, onDelete: m, onUnshare: h, isUnshareVisible: g, onRevokeShare: y, onFetchRecipientsCount: b, isRevokeShareVisible: S, onLogin: C, onLogout: w, onOpenCredentialsManagement: T, onRequestLogout: E, texts: D, detailsStyles: O, isPublishVisible: ee, isPublishPrimary: te, onOpenPublish: k, isUnpublishVisible: ne, hasPublishedFolders: re = !1, isPublishHistoryResolved: ie = !0, onRequestPublishHistory: ae, onOpenUnpublish: oe, isReadonly: I = !1 }) => {
1186
- let { nameClassName: se = "dial-body-semi-text", folderLabelClassName: ce = "dial-tiny-text", folderLeafClassName: le = "dial-tiny-semi-text" } = O?.typography ?? {}, de = t.details?.limits?.status, fe = de == null ? void 0 : /* @__PURE__ */ W(An, {
1187
- status: de,
1188
- label: de === mt.LimitReached ? D?.limitReachedLabel ?? "Limit reached" : D?.limitRunningLowLabel ?? "Running low"
1189
- }), me = j(() => {
1189
+ }), jn = ({ item: t, onUseInChat: n, isPrimaryActionVisible: r, onShare: i, shareOverlay: o, isShareVisible: s, isSharePrimary: c, onEdit: l, onDownload: u, isDownloadVisible: d, isDownloadPrimary: f, onDelete: m, onUnshare: h, isUnshareVisible: g, onRevokeShare: y, onFetchRecipientsCount: b, isRevokeShareVisible: S, onLogin: C, onLogout: w, onOpenCredentialsManagement: T, onRequestLogout: E, texts: D, detailsStyles: O, isPublishVisible: ee, isPublishPrimary: te, onOpenPublish: ne, isUnpublishVisible: re, hasPublishedFolders: ie = !1, isPublishHistoryResolved: ae = !0, onRequestPublishHistory: oe, onOpenUnpublish: se, isReadonly: F = !1 }) => {
1190
+ let { nameClassName: ce = "dial-body-semi-text", folderLabelClassName: le = "dial-tiny-text", folderLeafClassName: ue = "dial-tiny-semi-text" } = O?.typography ?? {}, fe = t.details?.limits?.status, pe = fe == null ? void 0 : /* @__PURE__ */ W(An, {
1191
+ status: fe,
1192
+ label: fe === mt.LimitReached ? D?.limitReachedLabel ?? "Limit reached" : D?.limitRunningLowLabel ?? "Running low"
1193
+ }), he = A(() => {
1190
1194
  n?.(t);
1191
- }, [t, n]), he = j(() => {
1195
+ }, [t, n]), ge = A(() => {
1192
1196
  l?.(t);
1193
- }, [t, l]), ge = j(() => {
1194
- k?.();
1195
- }, [k]), _e = j(() => {
1196
- oe?.();
1197
- }, [oe]), ve = j(() => {
1197
+ }, [t, l]), _e = A(() => {
1198
+ ne?.();
1199
+ }, [ne]), ve = A(() => {
1200
+ se?.();
1201
+ }, [se]), ye = A(() => {
1198
1202
  u?.(t);
1199
- }, [t, u]), [ye, be] = F(!1);
1200
- M(() => {
1201
- be(!1);
1203
+ }, [t, u]), [be, xe] = P(!1);
1204
+ j(() => {
1205
+ xe(!1);
1202
1206
  }, [t.id]);
1203
- let xe = j(() => {
1204
- ye || (be(!0), (async () => {
1207
+ let Se = A(() => {
1208
+ be || (xe(!0), (async () => {
1205
1209
  try {
1206
1210
  await u?.(t);
1207
1211
  } catch {} finally {
1208
- be(!1);
1212
+ xe(!1);
1209
1213
  }
1210
1214
  })());
1211
1215
  }, [
1212
1216
  t,
1213
1217
  u,
1214
- ye
1215
- ]), [z, we] = F(!1);
1216
- M(() => {
1217
- we(!1);
1218
+ be
1219
+ ]), [R, Te] = P(!1);
1220
+ j(() => {
1221
+ Te(!1);
1218
1222
  }, [t.id]);
1219
- let Te = j(() => {
1223
+ let Ee = A(() => {
1220
1224
  if (o) {
1221
- we(!0);
1225
+ Te(!0);
1222
1226
  return;
1223
1227
  }
1224
1228
  i?.(t);
@@ -1226,29 +1230,29 @@ var pt = /* @__PURE__ */ function(e) {
1226
1230
  t,
1227
1231
  i,
1228
1232
  o
1229
- ]), Ee = j(() => {
1230
- we(!1);
1231
- }, []), De = j(() => {
1233
+ ]), De = A(() => {
1234
+ Te(!1);
1235
+ }, []), Oe = A(() => {
1232
1236
  h?.(t);
1233
- }, [t, h]), Oe = j(() => {
1237
+ }, [t, h]), ke = A(() => {
1234
1238
  m?.(t);
1235
- }, [t, m]), ke = j(() => {
1239
+ }, [t, m]), Ae = A(() => {
1236
1240
  y?.(t);
1237
- }, [t, y]), [je, V] = F(xn.Idle), [Me, Ne] = F(void 0), Pe = P(null);
1238
- M(() => {
1239
- Pe.current = null, V(xn.Idle), Ne(void 0);
1241
+ }, [t, y]), [Me, B] = P(xn.Idle), [Ne, Pe] = P(void 0), Fe = N(null);
1242
+ j(() => {
1243
+ Fe.current = null, B(xn.Idle), Pe(void 0);
1240
1244
  }, [t.id]);
1241
- let Fe = j(() => {
1242
- if (!b || Pe.current === t.id || !y || t.isMyApp !== !0 || S?.(t) === !1) return;
1245
+ let Ie = A(() => {
1246
+ if (!b || Fe.current === t.id || !y || t.isMyApp !== !0 || S?.(t) === !1) return;
1243
1247
  let e = t.id;
1244
- Pe.current = e, V(xn.Loading), (async () => {
1248
+ Fe.current = e, B(xn.Loading), (async () => {
1245
1249
  try {
1246
1250
  let n = await b(t);
1247
- if (Pe.current !== e) return;
1248
- Ne(n), V(n == null ? xn.Unknown : xn.Resolved);
1251
+ if (Fe.current !== e) return;
1252
+ Pe(n), B(n == null ? xn.Unknown : xn.Resolved);
1249
1253
  } catch {
1250
- if (Pe.current !== e) return;
1251
- Ne(void 0), V(xn.Unknown);
1254
+ if (Fe.current !== e) return;
1255
+ Pe(void 0), B(xn.Unknown);
1252
1256
  }
1253
1257
  })();
1254
1258
  }, [
@@ -1256,121 +1260,121 @@ var pt = /* @__PURE__ */ function(e) {
1256
1260
  b,
1257
1261
  y,
1258
1262
  S
1259
- ]), Ie = j((e) => {
1260
- e && (Fe(), ae?.());
1261
- }, [Fe, ae]), Re = j(() => {
1262
- Fe(), ae?.();
1263
- }, [Fe, ae]), ze = j(() => {
1264
- ae?.();
1265
- }, [ae]), Be = D?.hasPrimaryAction !== !1 && (r?.(t) ?? (t.type === v.Model || t.type === v.Agent || t.type === v.Prompt)), Ue = !I && !!oe && re && (ne?.(t) ?? !0), We = !I && !!oe && !ie && ne?.(t) === !0, Ke = !I && !Ue && (ee?.(t) ?? (t.type === v.Model || t.type === v.Toolset || t.type === v.Agent)), qe = !I && !!l && !!t.isEditable, Qe = !I && t.isMyApp === !0 && (s?.(t) ?? !0), et = c?.(t) ?? !0, tt = te?.(t) ?? !1, rt = t.credentials?.authenticationType ?? _.None, U = t.credentials != null && rt !== _.None ? p(t.credentials) : void 0, ct = !I && U != null && (!!C || !!w), lt = t.type === v.Toolset && ct, ut = !!u && (d?.(t) ?? !0), dt = ut && !lt && (f?.(t) ?? (t.type === v.Skill && !Be)), ft = ut && !dt, pt = !I && t.isMyApp, K = !I && !!h && t.isMyApp !== !0 && t.sharedWithMe === !0 && (g?.(t) ?? !0), q = !I && !!y && t.isMyApp === !0 && (!b || je === xn.Unknown || je === xn.Resolved && (Me ?? 0) > 0) && (S?.(t) ?? !0), J = N(() => {
1263
+ ]), Le = A((e) => {
1264
+ e && (Ie(), oe?.());
1265
+ }, [Ie, oe]), ze = A(() => {
1266
+ Ie(), oe?.();
1267
+ }, [Ie, oe]), Be = A(() => {
1268
+ oe?.();
1269
+ }, [oe]), Ve = D?.hasPrimaryAction !== !1 && (r?.(t) ?? (t.type === v.Model || t.type === v.Agent || t.type === v.Prompt)), We = !F && !!se && ie && (re?.(t) ?? !0), Ge = !F && !!se && !ae && re?.(t) === !0, qe = !F && !We && (ee?.(t) ?? (t.type === v.Model || t.type === v.Toolset || t.type === v.Agent)), Je = !F && !!l && !!t.isEditable, $e = !F && t.isMyApp === !0 && (s?.(t) ?? !0), tt = c?.(t) ?? !0, nt = te?.(t) ?? !1, it = t.credentials?.authenticationType ?? _.None, H = t.credentials != null && it !== _.None ? p(t.credentials) : void 0, ct = !F && H != null && (!!C || !!w), lt = t.type === v.Toolset && ct, ut = !!u && (d?.(t) ?? !0), dt = ut && !lt && (f?.(t) ?? (t.type === v.Skill && !Ve)), ft = ut && !dt, pt = !F && t.isMyApp, K = !F && !!h && t.isMyApp !== !0 && t.sharedWithMe === !0 && (g?.(t) ?? !0), q = !F && !!y && t.isMyApp === !0 && (!b || Me === xn.Unknown || Me === xn.Resolved && (Ne ?? 0) > 0) && (S?.(t) ?? !0), J = M(() => {
1266
1270
  let e = [];
1267
- if (!et && Qe && e.push({
1271
+ if (!tt && $e && e.push({
1268
1272
  key: "share",
1269
1273
  label: D?.shareLabel ?? "Share",
1270
- icon: /* @__PURE__ */ W($e, {
1271
- size: L.SM,
1274
+ icon: /* @__PURE__ */ W(et, {
1275
+ size: I.SM,
1272
1276
  "aria-hidden": !0,
1273
1277
  className: "text-secondary",
1274
- stroke: R
1278
+ stroke: L
1275
1279
  }),
1276
- onClick: Te
1277
- }), qe && e.push({
1280
+ onClick: Ee
1281
+ }), Je && e.push({
1278
1282
  key: "edit",
1279
1283
  label: D?.editActionLabel ?? "Edit",
1280
- icon: /* @__PURE__ */ W(Xe, {
1281
- size: L.SM,
1284
+ icon: /* @__PURE__ */ W(Ze, {
1285
+ size: I.SM,
1282
1286
  "aria-hidden": !0,
1283
1287
  className: "text-secondary",
1284
- stroke: R
1288
+ stroke: L
1285
1289
  }),
1286
- onClick: he
1290
+ onClick: ge
1287
1291
  }), ft && e.push({
1288
1292
  key: "download",
1289
1293
  label: D?.downloadActionLabel ?? "Download",
1290
- icon: /* @__PURE__ */ W(He, {
1291
- size: L.SM,
1294
+ icon: /* @__PURE__ */ W(Ue, {
1295
+ size: I.SM,
1292
1296
  "aria-hidden": !0,
1293
1297
  className: "text-secondary",
1294
- stroke: R
1298
+ stroke: L
1295
1299
  }),
1296
- onClick: ve
1297
- }), !tt && Ke && e.push({
1300
+ onClick: ye
1301
+ }), !nt && qe && e.push({
1298
1302
  key: "publish",
1299
1303
  label: D?.publishLabel ?? "Publish",
1300
- icon: /* @__PURE__ */ W(ot, {
1301
- size: L.SM,
1304
+ icon: /* @__PURE__ */ W(st, {
1305
+ size: I.SM,
1302
1306
  "aria-hidden": !0,
1303
1307
  className: "text-secondary",
1304
- stroke: R
1308
+ stroke: L
1305
1309
  }),
1306
- onClick: ge
1307
- }), !tt && Ue && e.push({
1310
+ onClick: _e
1311
+ }), !nt && We && e.push({
1308
1312
  key: "unpublish",
1309
1313
  label: D?.unpublishLabel ?? "Unpublish",
1310
- icon: /* @__PURE__ */ W(at, {
1311
- size: L.SM,
1314
+ icon: /* @__PURE__ */ W(ot, {
1315
+ size: I.SM,
1312
1316
  "aria-hidden": !0,
1313
1317
  className: "text-secondary",
1314
- stroke: R
1318
+ stroke: L
1315
1319
  }),
1316
- onClick: _e
1320
+ onClick: ve
1317
1321
  }), pt && e.push({
1318
1322
  key: "delete",
1319
1323
  label: D?.deleteActionLabel ?? "Delete",
1320
- icon: /* @__PURE__ */ W(nt, {
1321
- size: L.SM,
1324
+ icon: /* @__PURE__ */ W(rt, {
1325
+ size: I.SM,
1322
1326
  "aria-hidden": !0,
1323
- stroke: R
1327
+ stroke: L
1324
1328
  }),
1325
1329
  danger: !0,
1326
- onClick: Oe
1330
+ onClick: ke
1327
1331
  }), q) {
1328
1332
  let t = D?.revokeShareLabel ?? "Revoke access", n = D?.revokeShareLabelWithCount ?? ((e) => `${t} (${e})`);
1329
1333
  e.push({
1330
1334
  key: "revoke-share",
1331
- label: Me == null ? t : n(Me),
1332
- icon: /* @__PURE__ */ W(it, {
1333
- size: L.SM,
1335
+ label: Ne == null ? t : n(Ne),
1336
+ icon: /* @__PURE__ */ W(at, {
1337
+ size: I.SM,
1334
1338
  "aria-hidden": !0,
1335
- stroke: R
1339
+ stroke: L
1336
1340
  }),
1337
1341
  danger: !0,
1338
- onClick: ke
1342
+ onClick: Ae
1339
1343
  });
1340
1344
  }
1341
1345
  return K && e.push({
1342
1346
  key: "unshare",
1343
1347
  label: D?.unshareLabel ?? "Remove from My List",
1344
- icon: /* @__PURE__ */ W(nt, {
1345
- size: L.SM,
1348
+ icon: /* @__PURE__ */ W(rt, {
1349
+ size: I.SM,
1346
1350
  "aria-hidden": !0,
1347
- stroke: R
1351
+ stroke: L
1348
1352
  }),
1349
- onClick: De
1353
+ onClick: Oe
1350
1354
  }), e;
1351
1355
  }, [
1352
- et,
1353
- Qe,
1354
- qe,
1355
- ft,
1356
1356
  tt,
1357
- Ke,
1358
- Ue,
1357
+ $e,
1358
+ Je,
1359
+ ft,
1360
+ nt,
1361
+ qe,
1362
+ We,
1359
1363
  pt,
1360
1364
  q,
1361
- Me,
1365
+ Ne,
1362
1366
  K,
1363
1367
  D,
1364
- Te,
1365
- he,
1366
- ve,
1368
+ Ee,
1367
1369
  ge,
1370
+ ye,
1368
1371
  _e,
1369
- Oe,
1372
+ ve,
1370
1373
  ke,
1371
- De
1372
- ]), [ht, gt] = F(!1), Y = rt === _.ApiKey && U !== e.ManageCredentials, _t = rt === _.ApiKey && U === e.LogOut, X = rt !== _.ApiKey && U !== e.ManageCredentials && U === e.LogOut, vt = j(() => {
1373
- if (U === e.ManageCredentials) {
1374
+ Ae,
1375
+ Oe
1376
+ ]), [ht, gt] = P(!1), Y = it === _.ApiKey && H !== e.ManageCredentials, _t = it === _.ApiKey && H === e.LogOut, X = it !== _.ApiKey && H !== e.ManageCredentials && H === e.LogOut, vt = A(() => {
1377
+ if (H === e.ManageCredentials) {
1374
1378
  T?.();
1375
1379
  return;
1376
1380
  }
@@ -1378,34 +1382,34 @@ var pt = /* @__PURE__ */ function(e) {
1378
1382
  gt((e) => !e);
1379
1383
  return;
1380
1384
  }
1381
- if (U === e.LogOut) {
1385
+ if (H === e.LogOut) {
1382
1386
  E?.();
1383
1387
  return;
1384
1388
  }
1385
1389
  C?.(t, { level: a.User });
1386
1390
  }, [
1387
- U,
1391
+ H,
1388
1392
  Y,
1389
1393
  t,
1390
1394
  C,
1391
1395
  T,
1392
1396
  E
1393
- ]), yt = U === e.ManageCredentials ? (D?.manageCredentialsActionLabel ?? On)(rt) : rt === _.ApiKey ? U === e.LogOut ? D?.changeApiKeyActionLabel ?? "Change API key" : D?.apiKeyActionLabel ?? "API key" : U === e.LogOut ? D?.logoutActionLabel ?? "Log out" : D?.loginActionLabel ?? "Log in", bt = U === e.ManageCredentials || rt === _.ApiKey ? /* @__PURE__ */ W(Ge, {
1394
- size: L.MD,
1395
- stroke: R
1396
- }) : U === e.LogOut ? /* @__PURE__ */ W(Ye, {
1397
- size: L.MD,
1398
- stroke: R
1399
- }) : /* @__PURE__ */ W(Je, {
1400
- size: L.MD,
1401
- stroke: R
1402
- }), Z = U === e.ManageCredentials ? /* @__PURE__ */ W(H, {
1403
- size: L.MD,
1397
+ ]), yt = H === e.ManageCredentials ? (D?.manageCredentialsActionLabel ?? On)(it) : it === _.ApiKey ? H === e.LogOut ? D?.changeApiKeyActionLabel ?? "Change API key" : D?.apiKeyActionLabel ?? "API key" : H === e.LogOut ? D?.logoutActionLabel ?? "Log out" : D?.loginActionLabel ?? "Log in", bt = H === e.ManageCredentials || it === _.ApiKey ? /* @__PURE__ */ W(Ke, {
1398
+ size: I.MD,
1399
+ stroke: L
1400
+ }) : H === e.LogOut ? /* @__PURE__ */ W(Xe, {
1401
+ size: I.MD,
1402
+ stroke: L
1403
+ }) : /* @__PURE__ */ W(Ye, {
1404
+ size: I.MD,
1405
+ stroke: L
1406
+ }), Z = H === e.ManageCredentials ? /* @__PURE__ */ W(V, {
1407
+ size: I.MD,
1404
1408
  className: "rtl:scale-x-[-1]",
1405
- stroke: R
1406
- }) : Y ? /* @__PURE__ */ W(Le, {
1407
- size: L.MD,
1408
- stroke: R
1409
+ stroke: L
1410
+ }) : Y ? /* @__PURE__ */ W(Re, {
1411
+ size: I.MD,
1412
+ stroke: L
1409
1413
  }) : void 0, xt = (e) => {
1410
1414
  let n = /* @__PURE__ */ W(e, {
1411
1415
  label: yt,
@@ -1415,7 +1419,7 @@ var pt = /* @__PURE__ */ function(e) {
1415
1419
  "aria-haspopup": Y ? "dialog" : void 0,
1416
1420
  "aria-expanded": Y ? ht : void 0
1417
1421
  });
1418
- return !Y || t.credentials == null ? n : /* @__PURE__ */ W(ue, {
1422
+ return !Y || t.credentials == null ? n : /* @__PURE__ */ W(de, {
1419
1423
  placement: "bottom-start",
1420
1424
  matchReferenceWidth: !1,
1421
1425
  open: ht,
@@ -1435,107 +1439,108 @@ var pt = /* @__PURE__ */ function(e) {
1435
1439
  children: n
1436
1440
  });
1437
1441
  }, Q = () => {
1438
- let e = /* @__PURE__ */ W(ue, {
1442
+ let e = /* @__PURE__ */ W(de, {
1439
1443
  items: J,
1440
1444
  placement: "bottom-end",
1441
1445
  matchReferenceWidth: !1,
1442
- onOpenChange: Ie,
1443
- children: /* @__PURE__ */ W(Se, {
1444
- icon: /* @__PURE__ */ W(Ve, {
1445
- size: L.LG,
1446
+ onOpenChange: Le,
1447
+ children: /* @__PURE__ */ W(Ce, {
1448
+ icon: /* @__PURE__ */ W(He, {
1449
+ size: I.LG,
1446
1450
  "aria-hidden": !0,
1447
- stroke: R
1451
+ stroke: L
1448
1452
  }),
1449
1453
  "aria-label": D?.manageActionLabel ?? "Manage",
1450
1454
  "aria-haspopup": "menu",
1451
- onMouseEnter: Re,
1452
- onFocus: Re
1455
+ onMouseEnter: ze,
1456
+ onFocus: ze
1453
1457
  })
1454
1458
  });
1455
- return et || !o || !Qe ? e : /* @__PURE__ */ W(ue, {
1459
+ return tt || !o || !$e ? e : /* @__PURE__ */ W(de, {
1456
1460
  placement: "bottom-end",
1457
1461
  matchReferenceWidth: !1,
1458
- open: z,
1459
- onOpenChange: we,
1462
+ open: R,
1463
+ onOpenChange: Te,
1460
1464
  trigger: [],
1461
1465
  outsideClosable: !0,
1462
- renderOverlay: () => o(t, Ee),
1466
+ renderOverlay: () => o(t, De),
1463
1467
  children: e
1464
1468
  });
1465
- }, St = lt || Be || dt || et && Qe || tt && Ue || tt && Ke || ct && !lt || J.length > 0 || We;
1469
+ }, St = lt || Ve || dt || tt && $e || nt && We || nt && qe || ct && !lt || J.length > 0 || Ge;
1466
1470
  return /* @__PURE__ */ G("div", {
1467
1471
  className: "flex flex-col gap-3 px-6 py-4",
1468
1472
  children: [/* @__PURE__ */ W(x, {
1469
1473
  item: t,
1470
1474
  iconSize: 52,
1471
- nameClassName: A(se, Tn.name),
1475
+ nameClassName: k(ce, Tn.name),
1472
1476
  featuredLabel: D?.featuredLabel ?? "Featured",
1473
- statusBadge: fe,
1474
- footer: t.folder.length > 0 ? /* @__PURE__ */ W(pe, {
1477
+ featuredChipStyle: O?.colors?.featuredChipStyle,
1478
+ statusBadge: pe,
1479
+ footer: t.folder.length > 0 ? /* @__PURE__ */ W(me, {
1475
1480
  segments: t.folder,
1476
- labelClassName: ce,
1477
- leafClassName: le
1481
+ labelClassName: le,
1482
+ leafClassName: ue
1478
1483
  }) : void 0
1479
1484
  }), St && /* @__PURE__ */ G("div", {
1480
1485
  className: "flex flex-wrap items-center gap-2 ps-[60px]",
1481
1486
  children: [
1482
- lt && xt(_t || X ? B : Ce),
1483
- Be && /* @__PURE__ */ W(Ce, {
1487
+ lt && xt(_t || X ? z : we),
1488
+ Ve && /* @__PURE__ */ W(we, {
1484
1489
  label: D?.primaryActionLabel ?? "Use in chat",
1485
- iconBefore: /* @__PURE__ */ W(Ze, { size: L.MD }),
1486
- onClick: me,
1487
- disabled: de === mt.LimitReached
1490
+ iconBefore: /* @__PURE__ */ W(Qe, { size: I.MD }),
1491
+ onClick: he,
1492
+ disabled: fe === mt.LimitReached
1488
1493
  }),
1489
- dt && /* @__PURE__ */ G(st, { children: [/* @__PURE__ */ W(Ce, {
1494
+ dt && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(we, {
1490
1495
  label: D?.downloadActionLabel ?? "Download",
1491
- iconBefore: ye ? /* @__PURE__ */ W(Ae, {
1492
- size: L.MD,
1496
+ iconBefore: be ? /* @__PURE__ */ W(je, {
1497
+ size: I.MD,
1493
1498
  "aria-hidden": !0
1494
- }) : /* @__PURE__ */ W(He, {
1495
- size: L.MD,
1499
+ }) : /* @__PURE__ */ W(Ue, {
1500
+ size: I.MD,
1496
1501
  "aria-hidden": !0,
1497
- stroke: R
1502
+ stroke: L
1498
1503
  }),
1499
- onClick: xe,
1500
- disabled: ye,
1501
- "aria-busy": ye
1502
- }), ye && /* @__PURE__ */ W("span", {
1504
+ onClick: Se,
1505
+ disabled: be,
1506
+ "aria-busy": be
1507
+ }), be && /* @__PURE__ */ W("span", {
1503
1508
  role: "status",
1504
1509
  "aria-live": "polite",
1505
1510
  className: "sr-only",
1506
1511
  children: D?.downloadingStatusLabel ?? "Downloading"
1507
1512
  })] }),
1508
- et && Qe && /* @__PURE__ */ W(Dn, {
1513
+ tt && $e && /* @__PURE__ */ W(Dn, {
1509
1514
  item: t,
1510
1515
  onShare: i,
1511
1516
  shareOverlay: o,
1512
1517
  isShareVisible: s,
1513
1518
  label: D?.shareLabel
1514
1519
  }),
1515
- tt && Ue && /* @__PURE__ */ W(B, {
1520
+ nt && We && /* @__PURE__ */ W(z, {
1516
1521
  label: D?.unpublishLabel ?? "Unpublish",
1517
- iconBefore: /* @__PURE__ */ W(at, {
1518
- size: L.MD,
1522
+ iconBefore: /* @__PURE__ */ W(ot, {
1523
+ size: I.MD,
1519
1524
  "aria-hidden": !0,
1520
- stroke: R
1525
+ stroke: L
1521
1526
  }),
1522
- onClick: _e,
1523
- onMouseEnter: ze,
1524
- onFocus: ze
1527
+ onClick: ve,
1528
+ onMouseEnter: Be,
1529
+ onFocus: Be
1525
1530
  }),
1526
- tt && Ke && /* @__PURE__ */ W(B, {
1531
+ nt && qe && /* @__PURE__ */ W(z, {
1527
1532
  label: D?.publishLabel ?? "Publish",
1528
- iconBefore: /* @__PURE__ */ W(ot, {
1529
- size: L.MD,
1533
+ iconBefore: /* @__PURE__ */ W(st, {
1534
+ size: I.MD,
1530
1535
  "aria-hidden": !0,
1531
- stroke: R
1536
+ stroke: L
1532
1537
  }),
1533
- onClick: ge,
1534
- onMouseEnter: ze,
1535
- onFocus: ze
1538
+ onClick: _e,
1539
+ onMouseEnter: Be,
1540
+ onFocus: Be
1536
1541
  }),
1537
- ct && !lt && xt(B),
1538
- (J.length > 0 || We) && Q()
1542
+ ct && !lt && xt(z),
1543
+ (J.length > 0 || Ge) && Q()
1539
1544
  ]
1540
1545
  })]
1541
1546
  });
@@ -1572,8 +1577,8 @@ var pt = /* @__PURE__ */ function(e) {
1572
1577
  };
1573
1578
  return e.type === Y.File || !t.has(e.id) ? [r] : [r, ...Pn(e.items, t, e.id)];
1574
1579
  }), Fn = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
1575
- let c = N(() => Pn(e, n), [e, n]), l = P({}), [u, d] = F(() => t ?? c[0]?.node.id);
1576
- M(() => {
1580
+ let c = M(() => Pn(e, n), [e, n]), l = N({}), [u, d] = P(() => t ?? c[0]?.node.id);
1581
+ j(() => {
1577
1582
  u != null && l.current[u]?.focus();
1578
1583
  }, []);
1579
1584
  let f = (e) => {
@@ -1610,7 +1615,7 @@ var pt = /* @__PURE__ */ function(e) {
1610
1615
  break;
1611
1616
  default: break;
1612
1617
  }
1613
- }, m = (e) => A("flex h-10 shrink-0 cursor-pointer items-center gap-2 rounded-2 px-3 outline-none", "hover:bg-control-accent-alpha-hover focus-visible:bg-control-accent-alpha-hover", e && "bg-control-accent-alpha-hover"), h = (e) => {
1618
+ }, m = (e) => k("flex h-10 shrink-0 cursor-pointer items-center gap-2 rounded-2 px-3 outline-none", "hover:bg-control-accent-alpha-hover focus-visible:bg-control-accent-alpha-hover", e && "bg-control-accent-alpha-hover"), h = (e) => {
1614
1619
  let a = e.id === u;
1615
1620
  if (e.type === Y.File) {
1616
1621
  let n = e.id === t;
@@ -1621,11 +1626,11 @@ var pt = /* @__PURE__ */ function(e) {
1621
1626
  role: "treeitem",
1622
1627
  "aria-selected": n,
1623
1628
  tabIndex: a ? 0 : -1,
1624
- className: A(m(a), n && "bg-control-accent-alpha-active"),
1629
+ className: k(m(a), n && "bg-control-accent-alpha-active"),
1625
1630
  onClick: () => i(e.id),
1626
1631
  onFocus: () => d(e.id),
1627
1632
  children: /* @__PURE__ */ W("span", {
1628
- className: A("min-w-0 flex-1 truncate", s),
1633
+ className: k("min-w-0 flex-1 truncate", s),
1629
1634
  children: e.name
1630
1635
  })
1631
1636
  }, e.id);
@@ -1642,21 +1647,21 @@ var pt = /* @__PURE__ */ function(e) {
1642
1647
  onClick: () => r(e.id),
1643
1648
  onFocus: () => d(e.id),
1644
1649
  children: [
1645
- /* @__PURE__ */ W(We, {
1646
- size: L.SM,
1650
+ /* @__PURE__ */ W(Ge, {
1651
+ size: I.SM,
1647
1652
  className: "shrink-0",
1648
1653
  "aria-hidden": !0,
1649
- stroke: R
1654
+ stroke: L
1650
1655
  }),
1651
1656
  /* @__PURE__ */ W("span", {
1652
- className: A("min-w-0 flex-1 truncate", s),
1657
+ className: k("min-w-0 flex-1 truncate", s),
1653
1658
  children: e.name
1654
1659
  }),
1655
- /* @__PURE__ */ W(Le, {
1656
- size: L.SM,
1657
- className: A("shrink-0 transition-transform", !o && "-rotate-90 rtl:rotate-90"),
1660
+ /* @__PURE__ */ W(Re, {
1661
+ size: I.SM,
1662
+ className: k("shrink-0 transition-transform", !o && "-rotate-90 rtl:rotate-90"),
1658
1663
  "aria-hidden": !0,
1659
- stroke: R
1664
+ stroke: L
1660
1665
  })
1661
1666
  ]
1662
1667
  }), o && e.items.length > 0 && /* @__PURE__ */ W("div", {
@@ -1686,7 +1691,7 @@ var pt = /* @__PURE__ */ function(e) {
1686
1691
  children: [
1687
1692
  S && /* @__PURE__ */ G("div", {
1688
1693
  className: "flex shrink-0 items-center gap-3",
1689
- children: [/* @__PURE__ */ W(ue, {
1694
+ children: [/* @__PURE__ */ W(de, {
1690
1695
  open: c,
1691
1696
  onOpenChange: l,
1692
1697
  trigger: [],
@@ -1703,23 +1708,23 @@ var pt = /* @__PURE__ */ function(e) {
1703
1708
  ariaLabel: u,
1704
1709
  rowNameClassName: _
1705
1710
  }),
1706
- children: /* @__PURE__ */ W(ve, {
1711
+ children: /* @__PURE__ */ W(ye, {
1707
1712
  label: C,
1708
- size: de.Small,
1713
+ size: fe.Small,
1709
1714
  isOpen: c,
1710
1715
  onClick: () => l(!c)
1711
1716
  })
1712
1717
  }), /* @__PURE__ */ W("span", {
1713
- className: A("shrink-0", y, Nn.fileCount),
1718
+ className: k("shrink-0", y, Nn.fileCount),
1714
1719
  children: d(Vt(x))
1715
1720
  })]
1716
1721
  }),
1717
- b && /* @__PURE__ */ G(st, { children: [/* @__PURE__ */ W("p", {
1718
- className: A("m-0", _),
1722
+ b && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("p", {
1723
+ className: k("m-0", _),
1719
1724
  children: t
1720
- }), /* @__PURE__ */ W("div", { className: A("shrink-0", Nn.divider) })] }),
1725
+ }), /* @__PURE__ */ W("div", { className: k("shrink-0", Nn.divider) })] }),
1721
1726
  /* @__PURE__ */ G("div", {
1722
- className: A("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && Nn.body, h == null && _),
1727
+ className: k("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && Nn.body, h == null && _),
1723
1728
  children: [a && /* @__PURE__ */ W("span", {
1724
1729
  role: "status",
1725
1730
  className: "sr-only",
@@ -1767,21 +1772,21 @@ var pt = /* @__PURE__ */ function(e) {
1767
1772
  }, Jn = ({ row: e, labelClassName: t, captionClassName: n, valueClassName: r, noteValueClassName: i, noteClassName: a }) => {
1768
1773
  let o = Hn(e);
1769
1774
  return /* @__PURE__ */ G("li", {
1770
- className: A("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", qn.divider),
1775
+ className: k("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", qn.divider),
1771
1776
  children: [/* @__PURE__ */ G("div", {
1772
1777
  className: "flex min-w-0 flex-1 flex-col",
1773
1778
  children: [/* @__PURE__ */ W("span", {
1774
- className: A("break-words", t, qn.label),
1779
+ className: k("break-words", t, qn.label),
1775
1780
  children: e.label
1776
1781
  }), e.captionLabel != null && /* @__PURE__ */ W("span", {
1777
- className: A("break-words", n, qn.label),
1782
+ className: k("break-words", n, qn.label),
1778
1783
  children: e.captionLabel
1779
1784
  })]
1780
1785
  }), Wn(e) ? /* @__PURE__ */ G("div", {
1781
1786
  className: "flex w-32 shrink-0 flex-col items-end gap-2",
1782
1787
  children: [/* @__PURE__ */ W("div", {
1783
- className: A("flex gap-1", r),
1784
- children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ G(st, { children: [/* @__PURE__ */ W("span", {
1788
+ className: k("flex gap-1", r),
1789
+ children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("span", {
1785
1790
  className: qn.valuePrimary,
1786
1791
  children: e.usedLabel
1787
1792
  }), /* @__PURE__ */ W("span", {
@@ -1791,27 +1796,27 @@ var pt = /* @__PURE__ */ function(e) {
1791
1796
  className: qn.label,
1792
1797
  children: o
1793
1798
  })
1794
- }), /* @__PURE__ */ W(we, {
1799
+ }), /* @__PURE__ */ W(Te, {
1795
1800
  value: Bn(e),
1796
1801
  max: Vn(e.total),
1797
- size: de.Small,
1798
- className: A("!h-1 w-full", qn.progressTrack, Kn(e) === zn.Default && qn.progressFillDefault, Kn(e) === zn.Warning && qn.progressFillWarning, Kn(e) === zn.Danger && qn.progressFillDanger),
1802
+ size: fe.Small,
1803
+ className: k("!h-1 w-full", qn.progressTrack, Kn(e) === zn.Default && qn.progressFillDefault, Kn(e) === zn.Warning && qn.progressFillWarning, Kn(e) === zn.Danger && qn.progressFillDanger),
1799
1804
  "aria-label": e.label,
1800
1805
  "aria-valuetext": e.ariaLabel ?? o
1801
1806
  })]
1802
1807
  }) : /* @__PURE__ */ G("div", {
1803
1808
  className: "flex shrink-0 flex-col items-end",
1804
1809
  children: [/* @__PURE__ */ W("span", {
1805
- className: A(i, qn.valuePrimary),
1810
+ className: k(i, qn.valuePrimary),
1806
1811
  children: o
1807
1812
  }), e.noteLabel != null && /* @__PURE__ */ W("span", {
1808
- className: A(a, qn.label),
1813
+ className: k(a, qn.label),
1809
1814
  children: e.noteLabel
1810
1815
  })]
1811
1816
  })]
1812
1817
  });
1813
1818
  }, Yn = ({ group: e, sectionClassName: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ W("p", {
1814
- className: A("mb-3 mt-0", t, qn.sectionHeading),
1819
+ className: k("mb-3 mt-0", t, qn.sectionHeading),
1815
1820
  children: e.label
1816
1821
  }), /* @__PURE__ */ W("ul", {
1817
1822
  className: "m-0 flex list-none flex-col p-0",
@@ -1827,7 +1832,7 @@ var pt = /* @__PURE__ */ function(e) {
1827
1832
  let u = e?.groups.filter((e) => e.rows.length > 0);
1828
1833
  return u == null || u.length === 0 ? null : /* @__PURE__ */ G("div", {
1829
1834
  className: "flex flex-col gap-6",
1830
- style: k({
1835
+ style: ne({
1831
1836
  "--lt-section-heading": l?.sectionHeading,
1832
1837
  "--lt-label": l?.label,
1833
1838
  "--lt-value-primary": l?.valuePrimary,
@@ -1846,7 +1851,7 @@ var pt = /* @__PURE__ */ function(e) {
1846
1851
  noteValueClassName: i,
1847
1852
  noteClassName: a
1848
1853
  }, e.label)), c != null && /* @__PURE__ */ W("p", {
1849
- className: A("m-0 border-t pt-4", s, qn.divider, qn.label),
1854
+ className: k("m-0 border-t pt-4", s, qn.divider, qn.label),
1850
1855
  children: c
1851
1856
  })]
1852
1857
  });
@@ -1854,7 +1859,7 @@ var pt = /* @__PURE__ */ function(e) {
1854
1859
  className: "flex flex-col gap-4",
1855
1860
  children: e.map((e, s) => /* @__PURE__ */ G("div", {
1856
1861
  className: "flex flex-col gap-4",
1857
- children: [s > 0 && /* @__PURE__ */ W("div", { className: A("shrink-0 border-b", bn.divider) }), /* @__PURE__ */ W("div", {
1862
+ children: [s > 0 && /* @__PURE__ */ W("div", { className: k("shrink-0 border-b", bn.divider) }), /* @__PURE__ */ W("div", {
1858
1863
  className: "px-6",
1859
1864
  children: /* @__PURE__ */ W(Kt, {
1860
1865
  sectionLabel: e.title,
@@ -1901,13 +1906,13 @@ var pt = /* @__PURE__ */ function(e) {
1901
1906
  }, er = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
1902
1907
  let a = n ?? `repeat(${e.length}, 1fr)`;
1903
1908
  return /* @__PURE__ */ G("div", {
1904
- className: A($n.container, "grid overflow-hidden rounded-md"),
1909
+ className: k($n.container, "grid overflow-hidden rounded-md"),
1905
1910
  style: { gridTemplateColumns: a },
1906
1911
  children: [e.map((e) => /* @__PURE__ */ W("div", {
1907
- className: A("px-2 py-1 text-start", r, $n.header),
1912
+ className: k("px-2 py-1 text-start", r, $n.header),
1908
1913
  children: e
1909
- }, e)), t.map((e, t) => /* @__PURE__ */ W(ne, { children: e.map((e, n) => /* @__PURE__ */ W("div", {
1910
- className: A("px-2 py-1.5", i, $n.cell, t % 2 == 1 ? $n.evenRow : void 0),
1914
+ }, e)), t.map((e, t) => /* @__PURE__ */ W(re, { children: e.map((e, n) => /* @__PURE__ */ W("div", {
1915
+ className: k("px-2 py-1.5", i, $n.cell, t % 2 == 1 ? $n.evenRow : void 0),
1911
1916
  children: e
1912
1917
  }, n)) }, t))]
1913
1918
  });
@@ -1918,7 +1923,7 @@ var pt = /* @__PURE__ */ function(e) {
1918
1923
  }, nr = ({ 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__ */ W("div", {
1919
1924
  className: "flex flex-col",
1920
1925
  children: e.tools.map((e, a) => /* @__PURE__ */ G("div", {
1921
- className: A("flex flex-col gap-3 px-[22px] py-4", a > 0 ? tr.divider : void 0),
1926
+ className: k("flex flex-col gap-3 px-[22px] py-4", a > 0 ? tr.divider : void 0),
1922
1927
  children: [
1923
1928
  /* @__PURE__ */ G("div", {
1924
1929
  className: "flex flex-col gap-1",
@@ -1926,7 +1931,7 @@ var pt = /* @__PURE__ */ function(e) {
1926
1931
  className: t,
1927
1932
  children: e.name
1928
1933
  }), e.description != null && /* @__PURE__ */ W("p", {
1929
- className: A("m-0", n, tr.description),
1934
+ className: k("m-0", n, tr.description),
1930
1935
  children: e.description
1931
1936
  })]
1932
1937
  }),
@@ -1939,11 +1944,11 @@ var pt = /* @__PURE__ */ function(e) {
1939
1944
  columnsTemplate: "1fr 1fr auto",
1940
1945
  rows: e.inputParams.map((e) => [
1941
1946
  /* @__PURE__ */ W("code", {
1942
- className: A("text-inherit border-none bg-transparent p-0", tr.code),
1947
+ className: k("text-inherit border-none bg-transparent p-0", tr.code),
1943
1948
  children: e.name
1944
1949
  }, "name"),
1945
1950
  /* @__PURE__ */ W("code", {
1946
- className: A("text-inherit border-none bg-transparent p-0", tr.code),
1951
+ className: k("text-inherit border-none bg-transparent p-0", tr.code),
1947
1952
  children: e.type
1948
1953
  }, "type"),
1949
1954
  e.isRequired ? "✓" : "—"
@@ -1954,7 +1959,7 @@ var pt = /* @__PURE__ */ function(e) {
1954
1959
  e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ W(er, {
1955
1960
  columns: ["Key", "Value"],
1956
1961
  rows: e.annotations.map((e) => [/* @__PURE__ */ W("code", {
1957
- className: A("text-inherit border-none bg-transparent p-0", tr.code),
1962
+ className: k("text-inherit border-none bg-transparent p-0", tr.code),
1958
1963
  children: e.key
1959
1964
  }, "key"), e.value]),
1960
1965
  headingClassName: r,
@@ -1978,129 +1983,129 @@ var pt = /* @__PURE__ */ function(e) {
1978
1983
  "Everyone you shared it with loses access",
1979
1984
  "Existing share links stop working",
1980
1985
  "You keep full access — nothing is deleted"
1981
- ], pr = (e) => e === _.ApiKey ? "Toolset API keys" : "Toolset credentials", mr = (e) => e === a.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", hr = new Set([q.Delete, q.Unshare]), gr = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, isReadonly: i = !1, onClose: o, onToggleFavorite: c, isFavoriteVisible: l, onUseInChat: d, isPrimaryActionVisible: f, onShare: p, isPublishVisible: m, isPublishPrimary: h, getPublishHistory: g, publishFolderItems: _ = sr, publishExpandedPaths: v, onPublishExpandedPathsChange: y, publishLoadingPaths: b, hasPublishWriteAccess: x, publishDefaultAuthor: S, onPublish: C, onPublishSuccess: w, onPublishError: T, onCreatePublishFolder: E, publishLabels: D, ruleSourceOptions: O = cr, onFetchExistingRules: ee, shareOverlay: te, isShareVisible: ne, isSharePrimary: re, onEdit: ie, onDownload: ae, isDownloadVisible: oe, isDownloadPrimary: I, onLoadContentFile: se, onLoadContentFilePreview: L, renderContentFilePreview: le, onDelete: ue, onUnshare: fe, isUnshareVisible: pe, onRevokeShare: me, onFetchRecipientsCount: ge, isRevokeShareVisible: _e, onUnpublish: ve, isUnpublishVisible: ye, onLogin: be, onLogout: xe, texts: z, styles: B, limitsFooterNote: Se }) => {
1982
- let { subViewTitleClassName: Ce = "dial-body-semi-text", overviewSectionClassName: we = "dial-caption-text", overviewLabelClassName: Ee = "dial-small-semi-text", overviewValueClassName: De = "dial-small-text", overviewValueTrueClassName: ke = "dial-small-text", confirmMessageClassName: Ae = "dial-small-text" } = B?.typography ?? {}, V = B?.colors, Me = k({
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-info-card-bg": V?.infoCardBackground,
2004
- "--cat-info-card-danger-bg": V?.infoCardDangerBackground,
2005
- "--cat-confirm-message-text": V?.confirmMessageText,
2006
- "--cat-confirm-consequence-text": V?.confirmConsequenceText,
2007
- "--cat-confirm-footer-border": V?.confirmFooterBorder,
2008
- "--cat-cred-surface-bg": V?.credentialsSurfaceBackground,
2009
- "--cat-cred-active-icon": V?.credentialsActiveIcon,
2010
- "--cat-cred-banner-icon-bg": V?.credentialsBannerIconBackground,
2011
- "--cat-cred-description-text": V?.credentialsDescriptionText,
2012
- "--cat-cred-row-description-text": V?.credentialsRowDescriptionText,
2013
- "--cat-cred-error-text": V?.credentialsErrorText,
2014
- "--cat-cred-card-bg": V?.credentialsCardBackground,
2015
- "--cat-cred-card-icon": V?.credentialsCardIcon,
2016
- "--cat-cred-card-title-text": V?.credentialsCardTitleText,
2017
- "--cat-cred-card-description-text": V?.credentialsCardDescriptionText
2018
- }), [Ne, Pe] = F(n), [H, Fe] = F(""), [Ie, Le] = F(!1), [ze, Be] = F([]), [Ve, He] = F(!1), [Ue, We] = F(!1), [Ge, Ke] = F(!1), qe = P(null), Je = e.details?.promptContent, Ye = Je?.selectedFileId, [Xe, Ze] = F(null), [Qe, $e] = F(!1), [et, tt] = F(/* @__PURE__ */ new Set()), [nt, rt] = F(!1), U = P(null), it = P(0), at = j((e) => {
2019
- let t = U.current, n = e?.preview?.type === _t.Image ? e.preview.url : null;
2020
- t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), U.current = n, Ze(e);
1986
+ ], pr = (e) => e === _.ApiKey ? "Toolset API keys" : "Toolset credentials", mr = (e) => e === a.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", hr = new Set([q.Delete, q.Unshare]), gr = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, isReadonly: i = !1, onClose: o, onToggleFavorite: c, isFavoriteVisible: l, onUseInChat: d, isPrimaryActionVisible: f, onShare: p, isPublishVisible: m, isPublishPrimary: h, getPublishHistory: g, publishFolderItems: _ = sr, publishExpandedPaths: v, onPublishExpandedPathsChange: y, publishLoadingPaths: b, hasPublishWriteAccess: x, publishDefaultAuthor: S, onPublish: C, onPublishSuccess: w, onPublishError: T, onCreatePublishFolder: E, publishLabels: D, ruleSourceOptions: O = cr, onFetchExistingRules: ee, shareOverlay: te, isShareVisible: re, isSharePrimary: ie, onEdit: ae, onDownload: oe, isDownloadVisible: se, isDownloadPrimary: F, onLoadContentFile: ce, onLoadContentFilePreview: I, renderContentFilePreview: ue, onDelete: de, onUnshare: pe, isUnshareVisible: me, onRevokeShare: he, onFetchRecipientsCount: _e, isRevokeShareVisible: ve, onUnpublish: ye, isUnpublishVisible: be, onLogin: xe, onLogout: Se, texts: R, styles: z, limitsFooterNote: Ce }) => {
1987
+ let { subViewTitleClassName: we = "dial-body-semi-text", overviewSectionClassName: Te = "dial-caption-text", overviewLabelClassName: De = "dial-small-semi-text", overviewValueClassName: Oe = "dial-small-text", overviewValueTrueClassName: Ae = "dial-small-text", confirmMessageClassName: je = "dial-small-text" } = z?.typography ?? {}, B = z?.colors, Ne = ne({
1988
+ "--cat-details-backdrop": B?.backdrop,
1989
+ "--cat-details-bg": B?.background,
1990
+ "--cat-details-border": B?.border,
1991
+ "--cat-details-divider": B?.divider,
1992
+ "--cat-details-scrollbar": B?.scrollbar,
1993
+ "--cat-details-skeleton": B?.skeleton,
1994
+ "--cat-details-name-text": B?.nameText,
1995
+ "--cat-details-publish-title-text": B?.publishTitleText,
1996
+ "--cat-details-content-text": B?.contentText,
1997
+ "--cat-details-variable-text": B?.variableText,
1998
+ "--cat-details-file-count-text": B?.contentFileCountText,
1999
+ "--cat-api-heading-text": B?.apiHeadingText,
2000
+ "--cat-tools-divider": B?.toolsDivider,
2001
+ "--cat-tools-description-text": B?.toolsDescriptionText,
2002
+ "--cat-grid-border": B?.gridBorder,
2003
+ "--cat-grid-header-text": B?.gridHeaderText,
2004
+ "--cat-grid-header-bg": B?.gridHeaderBackground,
2005
+ "--cat-grid-cell-text": B?.gridCellText,
2006
+ "--cat-grid-cell-divider": B?.gridCellDivider,
2007
+ "--cat-grid-row-even-bg": B?.gridRowEvenBackground,
2008
+ "--cat-info-card-bg": B?.infoCardBackground,
2009
+ "--cat-info-card-danger-bg": B?.infoCardDangerBackground,
2010
+ "--cat-confirm-message-text": B?.confirmMessageText,
2011
+ "--cat-confirm-consequence-text": B?.confirmConsequenceText,
2012
+ "--cat-confirm-footer-border": B?.confirmFooterBorder,
2013
+ "--cat-cred-surface-bg": B?.credentialsSurfaceBackground,
2014
+ "--cat-cred-active-icon": B?.credentialsActiveIcon,
2015
+ "--cat-cred-banner-icon-bg": B?.credentialsBannerIconBackground,
2016
+ "--cat-cred-description-text": B?.credentialsDescriptionText,
2017
+ "--cat-cred-row-description-text": B?.credentialsRowDescriptionText,
2018
+ "--cat-cred-error-text": B?.credentialsErrorText,
2019
+ "--cat-cred-card-bg": B?.credentialsCardBackground,
2020
+ "--cat-cred-card-icon": B?.credentialsCardIcon,
2021
+ "--cat-cred-card-title-text": B?.credentialsCardTitleText,
2022
+ "--cat-cred-card-description-text": B?.credentialsCardDescriptionText
2023
+ }), [Pe, Fe] = P(n), [V, Ie] = P(""), [Le, Re] = P(!1), [Be, Ve] = P([]), [He, Ue] = P(!1), [We, Ge] = P(!1), [Ke, qe] = P(!1), Je = N(null), Ye = e.details?.promptContent, Xe = Ye?.selectedFileId, [Ze, Qe] = P(null), [$e, et] = P(!1), [tt, nt] = P(/* @__PURE__ */ new Set()), [rt, it] = P(!1), H = N(null), at = N(0), ot = A((e) => {
2024
+ let t = H.current, n = e?.preview?.type === _t.Image ? e.preview.url : null;
2025
+ t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), H.current = n, Qe(e);
2021
2026
  }, []);
2022
- M(() => {
2023
- it.current += 1, at(null), $e(!1), tt(Ht(Je?.files ?? [])), rt(!1);
2024
- }, [e.id, Ye]), M(() => () => {
2025
- let e = U.current;
2027
+ j(() => {
2028
+ at.current += 1, ot(null), et(!1), nt(Ht(Ye?.files ?? [])), it(!1);
2029
+ }, [e.id, Xe]), j(() => () => {
2030
+ let e = H.current;
2026
2031
  e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
2027
2032
  }, []);
2028
- let ot = j((e) => {
2029
- tt((t) => {
2033
+ let st = A((e) => {
2034
+ nt((t) => {
2030
2035
  let n = new Set(t);
2031
2036
  return n.has(e) ? n.delete(e) : n.add(e), n;
2032
2037
  });
2033
- }, []), ft = j(async (e) => {
2034
- if (e === Ye) {
2035
- it.current += 1, at(null), $e(!1);
2038
+ }, []), ft = A(async (e) => {
2039
+ if (e === Xe) {
2040
+ at.current += 1, ot(null), et(!1);
2036
2041
  return;
2037
2042
  }
2038
- if (le == null && se == null && L == null) return;
2039
- if (le != null) {
2040
- it.current += 1, at({
2043
+ if (ue == null && ce == null && I == null) return;
2044
+ if (ue != null) {
2045
+ at.current += 1, ot({
2041
2046
  id: e,
2042
2047
  preview: null
2043
- }), $e(!1);
2048
+ }), et(!1);
2044
2049
  return;
2045
2050
  }
2046
- let t = ++it.current;
2047
- at({
2051
+ let t = ++at.current;
2052
+ ot({
2048
2053
  id: e,
2049
2054
  preview: null
2050
- }), $e(!0);
2055
+ }), et(!0);
2051
2056
  try {
2052
- let n = L == null ? await se?.(e).then((e) => e == null ? void 0 : {
2057
+ let n = I == null ? await ce?.(e).then((e) => e == null ? void 0 : {
2053
2058
  type: _t.Markdown,
2054
2059
  text: e
2055
- }) : await L(e);
2056
- if (it.current !== t) {
2060
+ }) : await I(e);
2061
+ if (at.current !== t) {
2057
2062
  n?.type === _t.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
2058
2063
  return;
2059
2064
  }
2060
- at({
2065
+ ot({
2061
2066
  id: e,
2062
2067
  preview: n ?? null
2063
2068
  });
2064
2069
  } catch {
2065
- if (it.current !== t) return;
2066
- at({
2070
+ if (at.current !== t) return;
2071
+ ot({
2067
2072
  id: e,
2068
2073
  preview: null
2069
2074
  });
2070
2075
  } finally {
2071
- it.current === t && $e(!1);
2076
+ at.current === t && et(!1);
2072
2077
  }
2073
2078
  }, [
2074
- Ye,
2075
- se,
2076
- L,
2077
- le,
2078
- at
2079
- ]), pt = Xe?.id ?? Ye, mt = () => Xe == null ? null : Xe.preview == null ? {
2079
+ Xe,
2080
+ ce,
2081
+ I,
2082
+ ue,
2083
+ ot
2084
+ ]), pt = Ze?.id ?? Xe, mt = () => Ze == null ? null : Ze.preview == null ? {
2080
2085
  type: _t.Text,
2081
- text: z?.contentFileErrorLabel ?? "Failed to load this file."
2082
- } : Xe.preview, ht = Xe != null && le != null ? le(Xe.id, Ut(Je?.files ?? [], Xe.id) ?? "") : void 0, gt = j(() => {
2083
- if (!g || qe.current === e.id) return;
2086
+ text: R?.contentFileErrorLabel ?? "Failed to load this file."
2087
+ } : Ze.preview, ht = Ze != null && ue != null ? ue(Ze.id, Ut(Ye?.files ?? [], Ze.id) ?? "") : void 0, gt = A(() => {
2088
+ if (!g || Je.current === e.id) return;
2084
2089
  let t = e.id;
2085
- qe.current = t, He(!0), We(!1), (async () => {
2090
+ Je.current = t, Ue(!0), Ge(!1), (async () => {
2086
2091
  try {
2087
2092
  let n = await g(e);
2088
- if (qe.current !== t) return;
2089
- Be(n), Ke(!0), He(!1);
2093
+ if (Je.current !== t) return;
2094
+ Ve(n), qe(!0), Ue(!1);
2090
2095
  } catch {
2091
- if (qe.current !== t) return;
2092
- We(!0), He(!1), qe.current = null;
2096
+ if (Je.current !== t) return;
2097
+ Ge(!0), Ue(!1), Je.current = null;
2093
2098
  }
2094
2099
  })();
2095
2100
  }, [g, e]);
2096
- M(() => {
2097
- Ie && gt();
2098
- }, [Ie, gt]);
2099
- let Y = j((e, t) => {
2100
- qe.current = null, Ke(!1), gt(), w?.(e, t);
2101
+ j(() => {
2102
+ Le && gt();
2103
+ }, [Le, gt]);
2104
+ let Y = A((e, t) => {
2105
+ Je.current = null, qe(!1), gt(), w?.(e, t);
2101
2106
  }, [gt, w]), X = dt({
2102
2107
  item: e,
2103
- history: ze,
2108
+ history: Be,
2104
2109
  folderItems: _,
2105
2110
  hasWriteAccess: x,
2106
2111
  defaultAuthor: S,
@@ -2109,7 +2114,7 @@ var pt = /* @__PURE__ */ function(e) {
2109
2114
  onPublishSuccess: Y,
2110
2115
  onPublishError: T,
2111
2116
  onFetchExistingRules: ee
2112
- }), vt = N(() => ut({
2117
+ }), vt = M(() => ut({
2113
2118
  hasSelectedFolder: X.selectedFolderPath != null,
2114
2119
  hasExistingPublicationInFolder: X.hasExistingPublicationInFolder,
2115
2120
  hasWriteAccess: X.hasWriteAccess,
@@ -2121,23 +2126,23 @@ var pt = /* @__PURE__ */ function(e) {
2121
2126
  X.hasWriteAccess,
2122
2127
  X.isSubmitting,
2123
2128
  X.hasSubmitError
2124
- ]), [yt, bt] = F(!1), [Z, xt] = F(null), [Q, St] = F(!1), [Ct, wt] = F(null), [Tt, Et] = F(null), [Dt, $] = F(null);
2125
- M(() => {
2126
- Pe(n);
2127
- }, [e.id, n]), M(() => {
2128
- Fe(""), Le(!1), X.reset(), Be([]), We(!1), He(!1), Ke(!1), qe.current = null, $(null), bt(!1), xt(null), St(!1), wt(null), Et(null);
2129
+ ]), [yt, bt] = P(!1), [Z, xt] = P(null), [Q, St] = P(!1), [Ct, wt] = P(null), [Tt, Et] = P(null), [Dt, $] = P(null);
2130
+ j(() => {
2131
+ Fe(n);
2132
+ }, [e.id, n]), j(() => {
2133
+ Ie(""), Re(!1), X.reset(), Ve([]), Ge(!1), Ue(!1), qe(!1), Je.current = null, $(null), bt(!1), xt(null), St(!1), wt(null), Et(null);
2129
2134
  }, [e.id]);
2130
- let Ot = j(() => bt(!0), []), kt = j(() => bt(!1), []), jt = j(() => {
2135
+ let Ot = A(() => bt(!0), []), kt = A(() => bt(!1), []), jt = A(() => {
2131
2136
  xt(q.Delete);
2132
- }, []), Mt = j((t) => {
2137
+ }, []), Mt = A((t) => {
2133
2138
  Et(t ?? (e.credentials == null ? null : s(e.credentials))), xt(q.Logout);
2134
- }, [e.credentials]), Nt = j(() => {
2139
+ }, [e.credentials]), Nt = A(() => {
2135
2140
  xt(q.Unshare);
2136
- }, []), Pt = j(() => {
2141
+ }, []), Pt = A(() => {
2137
2142
  xt(q.RevokeAccess);
2138
- }, []), Ft = N(() => {
2143
+ }, []), Ft = M(() => {
2139
2144
  let e = /* @__PURE__ */ new Set(), t = [];
2140
- for (let n of ze) {
2145
+ for (let n of Be) {
2141
2146
  let r = n.folderPath.join("/");
2142
2147
  e.has(r) || (e.add(r), t.push({
2143
2148
  key: r,
@@ -2145,35 +2150,35 @@ var pt = /* @__PURE__ */ function(e) {
2145
2150
  }));
2146
2151
  }
2147
2152
  return t;
2148
- }, [ze]), It = Ge && Ft.length > 0, Lt = j((e) => e || (D?.rootFolderLabel ?? "Organization"), [D]), Rt = j(() => {
2153
+ }, [Be]), It = Ke && Ft.length > 0, Lt = A((e) => e || (D?.rootFolderLabel ?? "Organization"), [D]), Rt = A(() => {
2149
2154
  xt(q.Unpublish);
2150
- }, []), zt = j((e) => {
2155
+ }, []), zt = A((e) => {
2151
2156
  wt(e), xt(q.DeleteApiKey);
2152
- }, []), Bt = j(() => {
2157
+ }, []), Bt = A(() => {
2153
2158
  Q || (xt(null), wt(null), Et(null), $(null));
2154
- }, [Q]), Vt = j(async () => {
2159
+ }, [Q]), Vt = A(async () => {
2155
2160
  if (!(Q || Z == null)) {
2156
2161
  St(!0);
2157
2162
  try {
2158
2163
  switch (Z) {
2159
2164
  case q.Delete:
2160
- await ue?.(e);
2165
+ await de?.(e);
2161
2166
  break;
2162
2167
  case q.Unshare:
2163
- await fe?.(e);
2168
+ await pe?.(e);
2164
2169
  break;
2165
2170
  case q.RevokeAccess:
2166
- await me?.(e);
2171
+ await he?.(e);
2167
2172
  break;
2168
2173
  case q.Logout:
2169
- Tt != null && await xe?.(e, { level: Tt });
2174
+ Tt != null && await Se?.(e, { level: Tt });
2170
2175
  break;
2171
2176
  case q.DeleteApiKey:
2172
- Ct != null && await xe?.(e, { level: Ct });
2177
+ Ct != null && await Se?.(e, { level: Ct });
2173
2178
  break;
2174
2179
  case q.Unpublish: {
2175
2180
  let t = ar(Ft, Dt);
2176
- t != null && await ve?.(e, t.segments);
2181
+ t != null && await ye?.(e, t.segments);
2177
2182
  break;
2178
2183
  }
2179
2184
  }
@@ -2190,16 +2195,16 @@ var pt = /* @__PURE__ */ function(e) {
2190
2195
  Ct,
2191
2196
  Tt,
2192
2197
  e,
2193
- ue,
2194
- fe,
2195
- me,
2196
- ve,
2198
+ de,
2199
+ pe,
2200
+ he,
2201
+ ye,
2197
2202
  Dt,
2198
2203
  Ft,
2199
- xe,
2204
+ Se,
2200
2205
  o
2201
2206
  ]);
2202
- M(() => {
2207
+ j(() => {
2203
2208
  if (!t) return;
2204
2209
  let e = (e) => {
2205
2210
  if (e.key === "Escape") {
@@ -2217,137 +2222,137 @@ var pt = /* @__PURE__ */ function(e) {
2217
2222
  Z,
2218
2223
  Bt
2219
2224
  ]);
2220
- let Wt = j(() => Le(!0), []), Gt = j(() => {
2221
- Le(!1), X.reset();
2222
- }, [X]), Kt = j(async () => {
2225
+ let Wt = A(() => Re(!0), []), Gt = A(() => {
2226
+ Re(!1), X.reset();
2227
+ }, [X]), Kt = A(async () => {
2223
2228
  await X.handleSubmit() && Gt();
2224
- }, [X, Gt]), qt = j(() => {
2225
- let t = !Ne;
2226
- Pe(t), c?.(e.id, t);
2229
+ }, [X, Gt]), qt = A(() => {
2230
+ let t = !Pe;
2231
+ Fe(t), c?.(e.id, t);
2227
2232
  }, [
2228
- Ne,
2233
+ Pe,
2229
2234
  e.id,
2230
2235
  c
2231
- ]), Jt = N(() => {
2236
+ ]), Jt = M(() => {
2232
2237
  let t = [], n = rr.has(e.type);
2233
2238
  return n || t.push({
2234
2239
  id: K.About,
2235
- label: z?.tabAboutLabel ?? "About"
2240
+ label: R?.tabAboutLabel ?? "About"
2236
2241
  }), (n || e.details?.promptContent != null) && t.push({
2237
2242
  id: K.Content,
2238
- label: z?.tabContentLabel ?? "Details"
2243
+ label: R?.tabContentLabel ?? "Details"
2239
2244
  }), e.details?.overview != null && t.push({
2240
2245
  id: K.Overview,
2241
- label: z?.tabOverviewLabel ?? "Overview"
2246
+ label: R?.tabOverviewLabel ?? "Overview"
2242
2247
  }), e.details?.pricing != null && t.push({
2243
2248
  id: K.Pricing,
2244
- label: z?.tabPricingLabel ?? "Pricing"
2249
+ label: R?.tabPricingLabel ?? "Pricing"
2245
2250
  }), e.details?.limits != null && t.push({
2246
2251
  id: K.Limits,
2247
- label: z?.tabLimitsLabel ?? "Limits"
2252
+ label: R?.tabLimitsLabel ?? "Limits"
2248
2253
  }), e.details?.tools != null && t.push({
2249
2254
  id: K.Tools,
2250
- label: z?.tabToolsLabel ?? "Tools"
2255
+ label: R?.tabToolsLabel ?? "Tools"
2251
2256
  }), ir(e.details?.api) && t.push({
2252
2257
  id: K.Api,
2253
- label: z?.tabConnectLabel ?? "Connect"
2258
+ label: R?.tabConnectLabel ?? "Connect"
2254
2259
  }), t;
2255
- }, [e, z]), Yt = P(null);
2256
- M(() => {
2260
+ }, [e, R]), Yt = N(null);
2261
+ j(() => {
2257
2262
  let t = Yt.current !== e.id;
2258
- Yt.current = e.id, (t || !Jt.some((e) => e.id === H)) && Fe(Jt[0]?.id ?? "");
2263
+ Yt.current = e.id, (t || !Jt.some((e) => e.id === V)) && Ie(Jt[0]?.id ?? "");
2259
2264
  }, [
2260
2265
  e.id,
2261
2266
  Jt,
2262
- H
2267
+ V
2263
2268
  ]);
2264
- let Xt = z?.overviewYesLabel ?? "Yes", Qt = z?.overviewNoLabel ?? "No", en = z?.ariaLabel ?? "Item details", tn = z?.closeAriaLabel ?? "Close", rn = Ne ? z?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : z?.addToFavoritesAriaLabel ?? "Add to favorites", an = z?.publishTitle ?? "Publish", on = z?.backToDetailsAriaLabel ?? "Back", sn = z?.cancelLabel ?? "Cancel", cn = N(() => {
2269
+ let Xt = R?.overviewYesLabel ?? "Yes", Qt = R?.overviewNoLabel ?? "No", en = R?.ariaLabel ?? "Item details", tn = R?.closeAriaLabel ?? "Close", rn = Pe ? R?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : R?.addToFavoritesAriaLabel ?? "Add to favorites", an = R?.publishTitle ?? "Publish", on = R?.backToDetailsAriaLabel ?? "Back", sn = R?.cancelLabel ?? "Cancel", cn = M(() => {
2265
2270
  switch (Z) {
2266
2271
  case q.Delete: {
2267
- let t = z?.deleteActionLabel ?? "Delete";
2272
+ let t = R?.deleteActionLabel ?? "Delete";
2268
2273
  return {
2269
- title: z?.deleteConfirmTitle ?? t,
2270
- message: z?.deleteConfirmMessage?.(e.name) ?? /* @__PURE__ */ G(st, { children: [
2274
+ title: R?.deleteConfirmTitle ?? t,
2275
+ message: R?.deleteConfirmMessage?.(e.name) ?? /* @__PURE__ */ G(U, { children: [
2271
2276
  "Are you sure you want to delete ",
2272
2277
  /* @__PURE__ */ W("strong", { children: e.name }),
2273
2278
  "? This action is permanent and cannot be undone."
2274
2279
  ] }),
2275
- consequences: z?.deleteConfirmConsequences ?? lr,
2280
+ consequences: R?.deleteConfirmConsequences ?? lr,
2276
2281
  confirmLabel: t,
2277
- loadingStatusLabel: z?.deletingStatusLabel ?? "Deleting",
2282
+ loadingStatusLabel: R?.deletingStatusLabel ?? "Deleting",
2278
2283
  variant: J.Danger
2279
2284
  };
2280
2285
  }
2281
2286
  case q.Unshare: {
2282
- let t = z?.unshareLabel ?? "Remove from My List";
2287
+ let t = R?.unshareLabel ?? "Remove from My List";
2283
2288
  return {
2284
- title: z?.unshareConfirmTitle ?? t,
2285
- message: z?.unshareConfirmMessage?.(e.name) ?? /* @__PURE__ */ G(st, { children: [
2289
+ title: R?.unshareConfirmTitle ?? t,
2290
+ message: R?.unshareConfirmMessage?.(e.name) ?? /* @__PURE__ */ G(U, { children: [
2286
2291
  "Remove ",
2287
2292
  /* @__PURE__ */ W("strong", { children: e.name }),
2288
2293
  " from your list? You'll need a new invitation to access it again."
2289
2294
  ] }),
2290
- consequences: z?.unshareConfirmConsequences ?? ur,
2295
+ consequences: R?.unshareConfirmConsequences ?? ur,
2291
2296
  confirmLabel: t,
2292
- loadingStatusLabel: z?.unsharingStatusLabel ?? "Removing",
2297
+ loadingStatusLabel: R?.unsharingStatusLabel ?? "Removing",
2293
2298
  variant: J.Info
2294
2299
  };
2295
2300
  }
2296
2301
  case q.RevokeAccess: {
2297
- let t = z?.revokeShareLabel ?? "Revoke access";
2302
+ let t = R?.revokeShareLabel ?? "Revoke access";
2298
2303
  return {
2299
- title: z?.revokeShareConfirmTitle ?? t,
2300
- message: z?.revokeShareConfirmMessage?.(e.name) ?? /* @__PURE__ */ G(st, { children: [
2304
+ title: R?.revokeShareConfirmTitle ?? t,
2305
+ message: R?.revokeShareConfirmMessage?.(e.name) ?? /* @__PURE__ */ G(U, { children: [
2301
2306
  "Revoke shared access to ",
2302
2307
  /* @__PURE__ */ W("strong", { children: e.name }),
2303
2308
  "? Anyone you shared it with will lose access."
2304
2309
  ] }),
2305
- consequences: z?.revokeShareConfirmConsequences ?? fr,
2310
+ consequences: R?.revokeShareConfirmConsequences ?? fr,
2306
2311
  confirmLabel: t,
2307
- loadingStatusLabel: z?.revokingShareStatusLabel ?? "Revoking access",
2312
+ loadingStatusLabel: R?.revokingShareStatusLabel ?? "Revoking access",
2308
2313
  variant: J.Danger
2309
2314
  };
2310
2315
  }
2311
2316
  case q.Unpublish: {
2312
- let t = z?.unpublishLabel ?? "Unpublish", n = Ft.length === 1, r = n ? Lt(Ft[0].key) : "", i = z?.unpublishConfirmMessage?.(e.name, r) ?? /* @__PURE__ */ G(st, { children: [
2317
+ let t = R?.unpublishLabel ?? "Unpublish", n = Ft.length === 1, r = n ? Lt(Ft[0].key) : "", i = R?.unpublishConfirmMessage?.(e.name, r) ?? /* @__PURE__ */ G(U, { children: [
2313
2318
  "Unpublish ",
2314
2319
  /* @__PURE__ */ W("strong", { children: e.name }),
2315
2320
  " from \"",
2316
2321
  r,
2317
2322
  "\"? The request is submitted for admin approval."
2318
- ] }), a = z?.unpublishSelectFolderMessage?.(e.name) ?? /* @__PURE__ */ G(st, { children: [
2323
+ ] }), a = R?.unpublishSelectFolderMessage?.(e.name) ?? /* @__PURE__ */ G(U, { children: [
2319
2324
  "Choose which folder to unpublish ",
2320
2325
  /* @__PURE__ */ W("strong", { children: e.name }),
2321
2326
  " from. The request is submitted for admin approval."
2322
2327
  ] });
2323
2328
  return {
2324
- title: z?.unpublishConfirmTitle ?? t,
2329
+ title: R?.unpublishConfirmTitle ?? t,
2325
2330
  message: n ? i : a,
2326
- consequences: z?.unpublishConfirmConsequences ?? dr,
2331
+ consequences: R?.unpublishConfirmConsequences ?? dr,
2327
2332
  confirmLabel: t,
2328
- loadingStatusLabel: z?.unpublishingStatusLabel ?? "Requesting unpublish",
2333
+ loadingStatusLabel: R?.unpublishingStatusLabel ?? "Requesting unpublish",
2329
2334
  variant: J.Danger
2330
2335
  };
2331
2336
  }
2332
2337
  case q.Logout: {
2333
- let e = z?.logoutActionLabel ?? "Log out";
2338
+ let e = R?.logoutActionLabel ?? "Log out";
2334
2339
  return {
2335
2340
  title: e,
2336
- message: z?.logoutConfirmMessage ?? "Are you sure you want to log out?",
2341
+ message: R?.logoutConfirmMessage ?? "Are you sure you want to log out?",
2337
2342
  consequences: void 0,
2338
2343
  confirmLabel: e,
2339
- loadingStatusLabel: z?.loggingOutStatusLabel ?? "Logging out",
2344
+ loadingStatusLabel: R?.loggingOutStatusLabel ?? "Logging out",
2340
2345
  variant: J.Info
2341
2346
  };
2342
2347
  }
2343
2348
  case q.DeleteApiKey: {
2344
- let e = z?.deleteActionLabel ?? "Delete", t = Ct ?? a.User;
2349
+ let e = R?.deleteActionLabel ?? "Delete", t = Ct ?? a.User;
2345
2350
  return {
2346
2351
  title: e,
2347
- message: (z?.deleteApiKeyConfirmMessage ?? mr)(t),
2352
+ message: (R?.deleteApiKeyConfirmMessage ?? mr)(t),
2348
2353
  consequences: void 0,
2349
2354
  confirmLabel: e,
2350
- loadingStatusLabel: z?.deletingStatusLabel ?? "Deleting",
2355
+ loadingStatusLabel: R?.deletingStatusLabel ?? "Deleting",
2351
2356
  variant: J.Danger,
2352
2357
  cardVariant: J.Info
2353
2358
  };
@@ -2358,14 +2363,14 @@ var pt = /* @__PURE__ */ function(e) {
2358
2363
  Z,
2359
2364
  e.name,
2360
2365
  Ct,
2361
- z,
2366
+ R,
2362
2367
  Ft,
2363
2368
  Lt
2364
- ]), ln = cn != null, un = Z === q.Unpublish && ar(Ft, Dt) == null, dn = ln || Ie || yt, fn = e.credentials == null ? "" : (z?.credentialsManagementTitle ?? pr)(e.credentials.authenticationType), pn = ln ? {
2369
+ ]), ln = cn != null, un = Z === q.Unpublish && ar(Ft, Dt) == null, dn = ln || Le || yt, fn = e.credentials == null ? "" : (R?.credentialsManagementTitle ?? pr)(e.credentials.authenticationType), pn = ln ? {
2365
2370
  title: cn.title,
2366
2371
  isBackDisabled: Q,
2367
2372
  onBack: Bt
2368
- } : Ie ? {
2373
+ } : Le ? {
2369
2374
  title: an,
2370
2375
  isBackDisabled: X.isSubmitting,
2371
2376
  onBack: Gt
@@ -2374,57 +2379,57 @@ var pt = /* @__PURE__ */ function(e) {
2374
2379
  isBackDisabled: !1,
2375
2380
  onBack: kt
2376
2381
  } : null, mn = pn?.title ?? en;
2377
- return /* @__PURE__ */ G(st, { children: [/* @__PURE__ */ W("div", {
2378
- style: Me,
2379
- className: A("fixed inset-0 z-50 transition-opacity duration-300", bn.backdrop, t ? "opacity-100" : "pointer-events-none opacity-0"),
2382
+ return /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("div", {
2383
+ style: Ne,
2384
+ className: k("fixed inset-0 z-50 transition-opacity duration-300", bn.backdrop, t ? "opacity-100" : "pointer-events-none opacity-0"),
2380
2385
  onClick: o,
2381
2386
  "aria-hidden": "true"
2382
2387
  }), /* @__PURE__ */ G("div", {
2383
2388
  role: "dialog",
2384
2389
  "aria-modal": "true",
2385
2390
  "aria-label": mn,
2386
- style: Me,
2387
- className: A("fixed inset-y-0 end-0 z-50 flex w-full flex-col overflow-hidden", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", bn.panel, t ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
2391
+ style: Ne,
2392
+ className: k("fixed inset-y-0 end-0 z-50 flex w-full flex-col overflow-hidden", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", bn.panel, t ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
2388
2393
  children: [
2389
2394
  /* @__PURE__ */ G("div", {
2390
2395
  className: "flex shrink-0 items-center gap-2 px-6 py-3",
2391
- children: [pn != null && /* @__PURE__ */ G(st, { children: [/* @__PURE__ */ W(he, {
2392
- icon: /* @__PURE__ */ W(Re, {
2396
+ children: [pn != null && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(ge, {
2397
+ icon: /* @__PURE__ */ W(ze, {
2393
2398
  className: "rtl:scale-x-[-1]",
2394
- stroke: R
2399
+ stroke: L
2395
2400
  }),
2396
2401
  "aria-label": on,
2397
2402
  disabled: pn.isBackDisabled,
2398
2403
  onClick: pn.onBack
2399
2404
  }), /* @__PURE__ */ W("span", {
2400
- className: A("flex-1", Ce, bn.publishTitle),
2405
+ className: k("flex-1", we, bn.publishTitle),
2401
2406
  children: pn.title
2402
- })] }), pn == null && /* @__PURE__ */ G(st, { children: [
2407
+ })] }), pn == null && /* @__PURE__ */ G(U, { children: [
2403
2408
  /* @__PURE__ */ W("div", { className: "flex-1" }),
2404
2409
  !i && l?.(e) !== !1 && /* @__PURE__ */ W(At, {
2405
- isStarred: Ne,
2410
+ isStarred: Pe,
2406
2411
  ariaLabel: rn,
2407
2412
  onClick: qt
2408
2413
  }),
2409
- /* @__PURE__ */ W(ce, {
2414
+ /* @__PURE__ */ W(le, {
2410
2415
  onClose: o,
2411
- size: de.Standard,
2416
+ size: fe.Standard,
2412
2417
  ariaLabel: tn
2413
2418
  })
2414
2419
  ] })]
2415
2420
  }),
2416
- /* @__PURE__ */ W("div", { className: A("shrink-0", bn.divider) }),
2421
+ /* @__PURE__ */ W("div", { className: k("shrink-0", bn.divider) }),
2417
2422
  /* @__PURE__ */ G("div", {
2418
- className: A("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", bn.content),
2423
+ className: k("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", bn.content),
2419
2424
  children: [
2420
2425
  ln && /* @__PURE__ */ W(nn, {
2421
2426
  item: e,
2422
2427
  message: cn.message,
2423
2428
  consequences: cn.consequences,
2424
2429
  variant: cn.cardVariant ?? cn.variant,
2425
- messageClassName: Ae,
2426
- children: Z === q.Unpublish && Ft.length > 1 && /* @__PURE__ */ W(Te, {
2427
- ariaLabel: z?.unpublishFolderGroupAriaLabel ?? "Published folders",
2430
+ messageClassName: je,
2431
+ children: Z === q.Unpublish && Ft.length > 1 && /* @__PURE__ */ W(Ee, {
2432
+ ariaLabel: R?.unpublishFolderGroupAriaLabel ?? "Published folders",
2428
2433
  value: Dt ?? void 0,
2429
2434
  onChange: $,
2430
2435
  disabled: Q,
@@ -2432,18 +2437,18 @@ var pt = /* @__PURE__ */ function(e) {
2432
2437
  value: e.key,
2433
2438
  label: Lt(e.key)
2434
2439
  })),
2435
- radioClassName: Ae
2440
+ radioClassName: je
2436
2441
  })
2437
2442
  }),
2438
- !ln && !Ie && yt && /* @__PURE__ */ W(yn, {
2443
+ !ln && !Le && yt && /* @__PURE__ */ W(yn, {
2439
2444
  item: e,
2440
- onLogin: be,
2445
+ onLogin: xe,
2441
2446
  onRequestLogout: Mt,
2442
2447
  onRequestDeleteApiKey: zt,
2443
- texts: z,
2444
- detailsStyles: B
2448
+ texts: R,
2449
+ detailsStyles: z
2445
2450
  }),
2446
- !ln && Ie && /* @__PURE__ */ W("div", {
2451
+ !ln && Le && /* @__PURE__ */ W("div", {
2447
2452
  className: "p-[22px]",
2448
2453
  children: /* @__PURE__ */ W(lt, {
2449
2454
  resource: {
@@ -2452,9 +2457,9 @@ var pt = /* @__PURE__ */ function(e) {
2452
2457
  type: e.type,
2453
2458
  iconUrl: e.iconUrl
2454
2459
  },
2455
- history: ze,
2456
- isHistoryLoading: Ve,
2457
- hasHistoryError: Ue,
2460
+ history: Be,
2461
+ isHistoryLoading: He,
2462
+ hasHistoryError: We,
2458
2463
  folderItems: X.folderItems,
2459
2464
  selectedFolderPath: X.selectedFolderPath,
2460
2465
  onSelectedFolderPathChange: X.setSelectedFolderPath,
@@ -2475,45 +2480,45 @@ var pt = /* @__PURE__ */ function(e) {
2475
2480
  hasRulesLoadError: X.hasRulesLoadError,
2476
2481
  labels: D,
2477
2482
  styles: { colors: {
2478
- summaryVersionTagBorder: V?.versionTagBorder,
2479
- summaryVersionTagBackground: V?.versionTagBackground,
2480
- summaryVersionTagText: V?.versionTagText
2483
+ summaryVersionTagBorder: B?.versionTagBorder,
2484
+ summaryVersionTagBackground: B?.versionTagBackground,
2485
+ summaryVersionTagText: B?.versionTagText
2481
2486
  } }
2482
2487
  })
2483
2488
  }),
2484
- !dn && /* @__PURE__ */ G(st, { children: [
2489
+ !dn && /* @__PURE__ */ G(U, { children: [
2485
2490
  /* @__PURE__ */ W(jn, {
2486
2491
  item: e,
2487
2492
  onUseInChat: d,
2488
2493
  isPrimaryActionVisible: f,
2489
2494
  onShare: p,
2490
2495
  shareOverlay: te,
2491
- isShareVisible: ne,
2492
- isSharePrimary: re,
2496
+ isShareVisible: re,
2497
+ isSharePrimary: ie,
2493
2498
  isPublishVisible: m,
2494
2499
  isPublishPrimary: h,
2495
2500
  onOpenPublish: Wt,
2496
- isUnpublishVisible: ye,
2501
+ isUnpublishVisible: be,
2497
2502
  hasPublishedFolders: It,
2498
- isPublishHistoryResolved: g == null || Ge,
2503
+ isPublishHistoryResolved: g == null || Ke,
2499
2504
  onRequestPublishHistory: gt,
2500
- onOpenUnpublish: ve ? Rt : void 0,
2501
- onEdit: ie,
2502
- onDownload: ae,
2503
- isDownloadVisible: oe,
2504
- isDownloadPrimary: I,
2505
- onDelete: ue ? jt : void 0,
2506
- onUnshare: fe ? Nt : void 0,
2507
- isUnshareVisible: pe,
2508
- onRevokeShare: me ? Pt : void 0,
2509
- onFetchRecipientsCount: ge,
2510
- isRevokeShareVisible: _e,
2511
- onLogin: be,
2512
- onLogout: xe,
2505
+ onOpenUnpublish: ye ? Rt : void 0,
2506
+ onEdit: ae,
2507
+ onDownload: oe,
2508
+ isDownloadVisible: se,
2509
+ isDownloadPrimary: F,
2510
+ onDelete: de ? jt : void 0,
2511
+ onUnshare: pe ? Nt : void 0,
2512
+ isUnshareVisible: me,
2513
+ onRevokeShare: he ? Pt : void 0,
2514
+ onFetchRecipientsCount: _e,
2515
+ isRevokeShareVisible: ve,
2516
+ onLogin: xe,
2517
+ onLogout: Se,
2513
2518
  onOpenCredentialsManagement: Ot,
2514
2519
  onRequestLogout: Mt,
2515
- texts: z,
2516
- detailsStyles: B,
2520
+ texts: R,
2521
+ detailsStyles: z,
2517
2522
  isReadonly: i
2518
2523
  }),
2519
2524
  e.credentials != null && (() => {
@@ -2523,21 +2528,21 @@ var pt = /* @__PURE__ */ function(e) {
2523
2528
  children: /* @__PURE__ */ W(hn, {
2524
2529
  state: t,
2525
2530
  authenticationType: e.credentials.authenticationType,
2526
- texts: z
2531
+ texts: R
2527
2532
  })
2528
2533
  });
2529
2534
  })(),
2530
2535
  /* @__PURE__ */ G("div", {
2531
2536
  className: "flex items-center px-6",
2532
- children: [/* @__PURE__ */ W(je, {
2537
+ children: [/* @__PURE__ */ W(Me, {
2533
2538
  tabs: Jt,
2534
- activeTabId: H,
2535
- onTabChange: Fe
2539
+ activeTabId: V,
2540
+ onTabChange: Ie
2536
2541
  }), r && /* @__PURE__ */ W("div", {
2537
2542
  role: "status",
2538
- "aria-label": z?.detailsLoadingAriaLabel ?? "Loading details",
2543
+ "aria-label": R?.detailsLoadingAriaLabel ?? "Loading details",
2539
2544
  className: "shrink-0",
2540
- children: /* @__PURE__ */ W(Oe, {
2545
+ children: /* @__PURE__ */ W(ke, {
2541
2546
  showTitle: !1,
2542
2547
  paragraph: {
2543
2548
  rows: 1,
@@ -2549,63 +2554,63 @@ var pt = /* @__PURE__ */ function(e) {
2549
2554
  })]
2550
2555
  }),
2551
2556
  /* @__PURE__ */ G("div", {
2552
- className: A("min-h-0 flex-1 overflow-y-auto", H !== K.Overview && "px-6"),
2557
+ className: k("min-h-0 flex-1 overflow-y-auto", V !== K.Overview && "px-6"),
2553
2558
  children: [
2554
- H === K.About && /* @__PURE__ */ W(Mn, {
2559
+ V === K.About && /* @__PURE__ */ W(Mn, {
2555
2560
  content: e.description,
2556
2561
  topics: e.topics,
2557
- detailsStyles: B
2562
+ detailsStyles: z
2558
2563
  }),
2559
- H === K.Content && /* @__PURE__ */ W(Ln, {
2560
- content: Je?.content ?? "",
2564
+ V === K.Content && /* @__PURE__ */ W(Ln, {
2565
+ content: Ye?.content ?? "",
2561
2566
  filePreview: mt(),
2562
2567
  filePreviewContent: ht,
2563
- description: Je?.description ?? e.description,
2564
- files: Je?.files,
2568
+ description: Ye?.description ?? e.description,
2569
+ files: Ye?.files,
2565
2570
  selectedFileId: pt,
2566
2571
  onSelectFile: (e) => void ft(e),
2567
- isFileLoading: Qe,
2568
- expandedFolderIds: et,
2569
- onToggleFolder: ot,
2570
- isFileSelectorOpen: nt,
2571
- onFileSelectorOpenChange: rt,
2572
- fileSelectorAriaLabel: z?.contentFileSelectorAriaLabel,
2573
- fileCountLabel: z?.contentFileCountLabel,
2574
- fileLoadingLabel: z?.contentFileLoadingLabel,
2575
- fileUnsupportedLabel: z?.contentFileUnsupportedLabel,
2576
- detailsStyles: B
2572
+ isFileLoading: $e,
2573
+ expandedFolderIds: tt,
2574
+ onToggleFolder: st,
2575
+ isFileSelectorOpen: rt,
2576
+ onFileSelectorOpenChange: it,
2577
+ fileSelectorAriaLabel: R?.contentFileSelectorAriaLabel,
2578
+ fileCountLabel: R?.contentFileCountLabel,
2579
+ fileLoadingLabel: R?.contentFileLoadingLabel,
2580
+ fileUnsupportedLabel: R?.contentFileUnsupportedLabel,
2581
+ detailsStyles: z
2577
2582
  }),
2578
- H === K.Overview && /* @__PURE__ */ W(Zn, {
2583
+ V === K.Overview && /* @__PURE__ */ W(Zn, {
2579
2584
  sections: e.details?.overview?.sections,
2580
- sectionClassName: we,
2581
- labelClassName: Ee,
2582
- valueClassName: De,
2583
- valueTrueClassName: ke,
2585
+ sectionClassName: Te,
2586
+ labelClassName: De,
2587
+ valueClassName: Oe,
2588
+ valueTrueClassName: Ae,
2584
2589
  yesLabel: Xt,
2585
2590
  noLabel: Qt
2586
2591
  }),
2587
- H === K.Pricing && /* @__PURE__ */ W(Qn, {
2592
+ V === K.Pricing && /* @__PURE__ */ W(Qn, {
2588
2593
  pricing: e.details?.pricing,
2589
- pricesSectionLabel: z?.pricingPricesSectionLabel,
2590
- limitsSectionLabel: z?.pricingLimitsSectionLabel
2594
+ pricesSectionLabel: R?.pricingPricesSectionLabel,
2595
+ limitsSectionLabel: R?.pricingLimitsSectionLabel
2591
2596
  }),
2592
- H === K.Limits && /* @__PURE__ */ W(Xn, {
2597
+ V === K.Limits && /* @__PURE__ */ W(Xn, {
2593
2598
  limits: e.details?.limits,
2594
- footerNote: Se
2599
+ footerNote: Ce
2595
2600
  }),
2596
- H === K.Api && ir(e.details?.api) && /* @__PURE__ */ W(Zt, {
2601
+ V === K.Api && ir(e.details?.api) && /* @__PURE__ */ W(Zt, {
2597
2602
  api: e.details?.api,
2598
- resourceSectionLabel: z?.apiResourceSectionLabel,
2599
- snippetSectionLabel: z?.apiSnippetSectionLabel,
2600
- modelIdLabel: z?.apiModelIdLabel,
2601
- endpointLabel: z?.apiEndpointLabel,
2602
- endpointSectionLabel: z?.apiEndpointSectionLabel,
2603
- requestExampleLabel: z?.apiRequestExampleLabel,
2604
- responseSchemaLabel: z?.apiResponseSchemaLabel,
2605
- copyAriaLabel: z?.copyCodeAriaLabel,
2606
- copiedStatusLabel: z?.copiedCodeStatusLabel
2603
+ resourceSectionLabel: R?.apiResourceSectionLabel,
2604
+ snippetSectionLabel: R?.apiSnippetSectionLabel,
2605
+ modelIdLabel: R?.apiModelIdLabel,
2606
+ endpointLabel: R?.apiEndpointLabel,
2607
+ endpointSectionLabel: R?.apiEndpointSectionLabel,
2608
+ requestExampleLabel: R?.apiRequestExampleLabel,
2609
+ responseSchemaLabel: R?.apiResponseSchemaLabel,
2610
+ copyAriaLabel: R?.copyCodeAriaLabel,
2611
+ copiedStatusLabel: R?.copiedCodeStatusLabel
2607
2612
  }),
2608
- H === K.Tools && /* @__PURE__ */ W(nr, { tools: e.details?.tools })
2613
+ V === K.Tools && /* @__PURE__ */ W(nr, { tools: e.details?.tools })
2609
2614
  ]
2610
2615
  })
2611
2616
  ] })
@@ -2621,7 +2626,7 @@ var pt = /* @__PURE__ */ function(e) {
2621
2626
  onConfirm: Vt,
2622
2627
  onCancel: Bt
2623
2628
  }),
2624
- !ln && Ie && /* @__PURE__ */ W(ct, {
2629
+ !ln && Le && /* @__PURE__ */ W(ct, {
2625
2630
  version: e.version,
2626
2631
  hasExistingPublicationInFolder: X.hasExistingPublicationInFolder,
2627
2632
  isSubmitDisabled: vt.isSubmitDisabled,
@@ -2648,34 +2653,34 @@ var pt = /* @__PURE__ */ function(e) {
2648
2653
  cardLeaving: "_cardLeaving_14qfn_54",
2649
2654
  cardFadeOut: "_cardFadeOut_14qfn_1"
2650
2655
  }, vr = ({ 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 }) => {
2651
- let [m, h] = F(t), [g, _] = F(!1), v = (t) => {
2656
+ let [m, h] = P(t), [g, _] = P(!1), v = (t) => {
2652
2657
  t.stopPropagation();
2653
2658
  let r = !m;
2654
2659
  h(r), r ? n?.(e.id, r) : _(!0);
2655
- }, y = i && !g ? () => i(e) : void 0, b = j((t) => {
2660
+ }, y = i && !g ? () => i(e) : void 0, b = A((t) => {
2656
2661
  !i || g || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), i(e));
2657
2662
  }, [
2658
2663
  i,
2659
2664
  e,
2660
2665
  g
2661
2666
  ]);
2662
- return /* @__PURE__ */ G(se, {
2667
+ return /* @__PURE__ */ G(ce, {
2663
2668
  "data-card-id": e.id,
2664
2669
  role: y == null ? void 0 : "button",
2665
2670
  tabIndex: y == null ? void 0 : 0,
2666
2671
  "aria-label": e.name,
2667
- className: A("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", g && _r.cardLeaving, f && _r.selectedCard),
2672
+ className: k("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", g && _r.cardLeaving, f && _r.selectedCard),
2668
2673
  onClick: y,
2669
2674
  onKeyDown: b,
2670
2675
  onAnimationEnd: g ? (t) => {
2671
2676
  t.currentTarget === t.target && n?.(e.id, !1);
2672
2677
  } : void 0,
2673
2678
  children: [
2674
- f && /* @__PURE__ */ W(Ie, {
2675
- size: L.SM,
2676
- className: A("absolute end-3 top-3 shrink-0", _r.selectedCheck),
2679
+ f && /* @__PURE__ */ W(Le, {
2680
+ size: I.SM,
2681
+ className: k("absolute end-3 top-3 shrink-0", _r.selectedCheck),
2677
2682
  "aria-hidden": !0,
2678
- stroke: R
2683
+ stroke: L
2679
2684
  }),
2680
2685
  /* @__PURE__ */ W("div", {
2681
2686
  className: "flex min-w-0 flex-1 flex-col items-start gap-1",
@@ -2704,7 +2709,7 @@ var pt = /* @__PURE__ */ function(e) {
2704
2709
  }),
2705
2710
  r?.(e) !== !1 && /* @__PURE__ */ W(At, {
2706
2711
  isStarred: m,
2707
- size: de.Small,
2712
+ size: fe.Small,
2708
2713
  onClick: v,
2709
2714
  ariaLabel: m ? d : u,
2710
2715
  className: "self-end"
@@ -2721,7 +2726,7 @@ var pt = /* @__PURE__ */ function(e) {
2721
2726
  return new DOMRect(t.x + n, t.y + r, t.width, t.height);
2722
2727
  }
2723
2728
  }, xr = ({ items: e, totalCount: t, title: n = "Your Favorites", onToggleFavorite: r, isFavoriteVisible: i, onItemClick: a, styles: o, isLeaving: s, onExitComplete: c, prevPageAriaLabel: l = "Previous page", nextPageAriaLabel: u = "Next page", addToFavoritesAriaLabel: d, removeFromFavoritesAriaLabel: f, selectedItemId: p, credentialsBadgeLoggedOutLabel: m }) => {
2724
- let h = o?.typography?.titleClassName ?? "dial-body-semi-text", g = o?.typography?.countClassName ?? "dial-tiny-semi-text", _ = k({
2729
+ let h = o?.typography?.titleClassName ?? "dial-body-semi-text", g = o?.typography?.countClassName ?? "dial-tiny-semi-text", _ = ne({
2725
2730
  "--cat-fav-title-text": o?.colors?.titleText,
2726
2731
  "--cat-fav-count-text": o?.colors?.countText,
2727
2732
  "--cat-fav-selected-check": o?.colors?.selectedCheckIcon,
@@ -2733,49 +2738,49 @@ var pt = /* @__PURE__ */ function(e) {
2733
2738
  "--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
2734
2739
  "--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
2735
2740
  "--cat-fav-page-nav-bg": o?.colors?.pageNavBackground
2736
- }), v = N(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = F(1), x = X(), S = x * yr, C = (y - 1) * S, T = N(() => v.slice(C, C + S), [
2741
+ }), v = M(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = P(1), x = X(), S = x * yr, C = (y - 1) * S, T = M(() => v.slice(C, C + S), [
2737
2742
  v,
2738
2743
  C,
2739
2744
  S
2740
- ]), E = Math.ceil(v.length / S), D = t ?? e.length, O = P(null), ee = P(null), te = P(null), [ne, re] = F(), [j, ae] = F(), oe = P(x);
2741
- M(() => {
2742
- oe.current !== x && (oe.current = x, b(1), re(void 0), ae(void 0));
2743
- }, [x]), M(() => {
2745
+ ]), E = Math.ceil(v.length / S), D = t ?? e.length, O = N(null), ee = N(null), te = N(null), [re, ie] = P(), [A, oe] = P(), se = N(x);
2746
+ j(() => {
2747
+ se.current !== x && (se.current = x, b(1), ie(void 0), oe(void 0));
2748
+ }, [x]), j(() => {
2744
2749
  y > E && E > 0 && b(E);
2745
- }, [y, E]), M(() => {
2746
- E <= 1 && (ne !== void 0 || j !== void 0) && (re(void 0), ae(void 0));
2750
+ }, [y, E]), j(() => {
2751
+ E <= 1 && (re !== void 0 || A !== void 0) && (ie(void 0), oe(void 0));
2747
2752
  }, [
2748
2753
  E,
2749
- ne,
2750
- j
2751
- ]), ie(() => {
2752
- !te.current || !ee.current || E <= 1 || y !== 1 || ne !== void 0 || (re(te.current.offsetHeight), ae(ee.current.offsetHeight));
2754
+ re,
2755
+ A
2756
+ ]), ae(() => {
2757
+ !te.current || !ee.current || E <= 1 || y !== 1 || re !== void 0 || (ie(te.current.offsetHeight), oe(ee.current.offsetHeight));
2753
2758
  }, [
2754
2759
  E,
2755
2760
  y,
2756
- ne
2761
+ re
2757
2762
  ]);
2758
- let I = P(/* @__PURE__ */ new Map()), se = P(y), ce = P(x), L = P(0), le = P(!1);
2759
- return ie(() => {
2763
+ let F = N(/* @__PURE__ */ new Map()), ce = N(y), le = N(x), I = N(0), ue = N(!1);
2764
+ return ae(() => {
2760
2765
  if (!te.current || s) return;
2761
- if (O.current && !le.current) {
2766
+ if (O.current && !ue.current) {
2762
2767
  let e = O.current;
2763
2768
  e.style.height = "", e.style.transition = "";
2764
2769
  }
2765
- let e = se.current !== y, t = ce.current !== x;
2766
- se.current = y, ce.current = x;
2770
+ let e = ce.current !== y, t = le.current !== x;
2771
+ ce.current = y, le.current = x;
2767
2772
  let n = te.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
2768
2773
  if (n.forEach((e) => {
2769
2774
  r.set(e.dataset.cardId, br(e));
2770
2775
  }), !e && !t) {
2771
- let e = ee.current, t = L.current, i = 0;
2776
+ let e = ee.current, t = I.current, i = 0;
2772
2777
  if (e) {
2773
2778
  let t = e.style.height;
2774
2779
  t && (e.style.height = ""), i = e.offsetHeight, t && (e.style.height = t);
2775
2780
  }
2776
2781
  let a = e != null && t > 0 && Math.abs(i - t) > 2, o = i > t ? 280 : 220, s = [];
2777
2782
  if (n.forEach((e) => {
2778
- let t = e.dataset.cardId, n = I.current.get(t), i = r.get(t);
2783
+ let t = e.dataset.cardId, n = F.current.get(t), i = r.get(t);
2779
2784
  if (!n || !i) return;
2780
2785
  let o = n.left - i.left, c = n.top - i.top;
2781
2786
  !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));
@@ -2791,30 +2796,30 @@ var pt = /* @__PURE__ */ function(e) {
2791
2796
  e.addEventListener("transitionend", t);
2792
2797
  }
2793
2798
  }
2794
- if (I.current = r, ee.current) {
2799
+ if (F.current = r, ee.current) {
2795
2800
  let e = ee.current, t = e.style.height ? parseFloat(e.style.height) : NaN;
2796
- L.current = Number.isNaN(t) ? e.offsetHeight : t;
2801
+ I.current = Number.isNaN(t) ? e.offsetHeight : t;
2797
2802
  }
2798
2803
  }, [
2799
2804
  T,
2800
2805
  y,
2801
2806
  x,
2802
2807
  s
2803
- ]), ie(() => {
2808
+ ]), ae(() => {
2804
2809
  let e = O.current;
2805
2810
  if (!e) return;
2806
2811
  let t = e.offsetHeight;
2807
2812
  if (t === 0) return;
2808
- 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`;
2813
+ ue.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`;
2809
2814
  let n = (t) => {
2810
2815
  t.target !== e || t.propertyName !== "height" || r();
2811
2816
  }, r = () => {
2812
- le.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
2817
+ ue.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
2813
2818
  }, i = setTimeout(r, 400);
2814
2819
  return e.addEventListener("transitionend", n), () => {
2815
2820
  clearTimeout(i), e.removeEventListener("transitionend", n);
2816
2821
  };
2817
- }, []), ie(() => {
2822
+ }, []), ae(() => {
2818
2823
  if (!s || !O.current) return;
2819
2824
  let e = O.current, t = e.offsetHeight;
2820
2825
  t !== 0 && (e.style.height = `${t}px`, e.offsetHeight, e.style.transition = "height 260ms ease-in", e.style.height = "0px");
@@ -2822,10 +2827,10 @@ var pt = /* @__PURE__ */ function(e) {
2822
2827
  ref: O,
2823
2828
  children: /* @__PURE__ */ G("section", {
2824
2829
  ref: ee,
2825
- className: A("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", _r.section, s && _r.sectionLeaving),
2830
+ className: k("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", _r.section, s && _r.sectionLeaving),
2826
2831
  style: {
2827
2832
  ..._,
2828
- minHeight: j
2833
+ minHeight: A
2829
2834
  },
2830
2835
  onAnimationEnd: (e) => {
2831
2836
  e.target === ee.current && s && c?.();
@@ -2833,24 +2838,24 @@ var pt = /* @__PURE__ */ function(e) {
2833
2838
  children: [/* @__PURE__ */ W(w, {
2834
2839
  title: n,
2835
2840
  postfix: D,
2836
- titleClassName: A(h, _r.titleText),
2837
- postfixClassName: A(g, _r.countText),
2841
+ titleClassName: k(h, _r.titleText),
2842
+ postfixClassName: k(g, _r.countText),
2838
2843
  trailing: E > 1 ? /* @__PURE__ */ G("div", {
2839
- className: A("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", _r.pageNav),
2844
+ className: k("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", _r.pageNav),
2840
2845
  children: [
2841
2846
  /* @__PURE__ */ W("button", {
2842
2847
  "aria-label": l,
2843
2848
  disabled: y === 1,
2844
2849
  onClick: () => b((e) => e - 1),
2845
- className: A("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", _r.navBtn),
2846
- children: /* @__PURE__ */ W(Re, {
2850
+ className: k("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", _r.navBtn),
2851
+ children: /* @__PURE__ */ W(ze, {
2847
2852
  size: 14,
2848
2853
  className: "rtl:scale-x-[-1]",
2849
- stroke: R
2854
+ stroke: L
2850
2855
  })
2851
2856
  }),
2852
2857
  /* @__PURE__ */ G("span", {
2853
- className: A("min-w-[32px] select-none px-1 text-center", g, _r.countText),
2858
+ className: k("min-w-[32px] select-none px-1 text-center", g, _r.countText),
2854
2859
  children: [
2855
2860
  y,
2856
2861
  " / ",
@@ -2861,21 +2866,21 @@ var pt = /* @__PURE__ */ function(e) {
2861
2866
  "aria-label": u,
2862
2867
  disabled: y === E,
2863
2868
  onClick: () => b((e) => e + 1),
2864
- className: A("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", _r.navBtn),
2865
- children: /* @__PURE__ */ W(ze, {
2869
+ className: k("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", _r.navBtn),
2870
+ children: /* @__PURE__ */ W(Be, {
2866
2871
  size: 14,
2867
2872
  className: "rtl:scale-x-[-1]",
2868
- stroke: R
2873
+ stroke: L
2869
2874
  })
2870
2875
  })
2871
2876
  ]
2872
2877
  }) : void 0
2873
2878
  }), /* @__PURE__ */ W("div", {
2874
2879
  ref: te,
2875
- className: A("grid content-start gap-5", _r.gridPage),
2880
+ className: k("grid content-start gap-5", _r.gridPage),
2876
2881
  style: {
2877
2882
  gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
2878
- minHeight: ne
2883
+ minHeight: re
2879
2884
  },
2880
2885
  children: T.map((e) => /* @__PURE__ */ W(vr, {
2881
2886
  item: e,
@@ -2908,20 +2913,20 @@ var pt = /* @__PURE__ */ function(e) {
2908
2913
  return /* @__PURE__ */ G("div", {
2909
2914
  className: "flex h-full w-full min-w-0 items-center gap-1.5",
2910
2915
  children: [
2911
- /* @__PURE__ */ W(We, {
2912
- size: L.SM,
2913
- stroke: R,
2914
- className: A("shrink-0", Sr.folderIcon),
2916
+ /* @__PURE__ */ W(Ge, {
2917
+ size: I.SM,
2918
+ stroke: L,
2919
+ className: k("shrink-0", Sr.folderIcon),
2915
2920
  "aria-hidden": !0
2916
2921
  }),
2917
- /* @__PURE__ */ W(Me, {
2922
+ /* @__PURE__ */ W(Ne, {
2918
2923
  tooltip: /* @__PURE__ */ W("span", {
2919
2924
  className: a,
2920
2925
  children: n
2921
2926
  }),
2922
2927
  hideTooltip: !i,
2923
2928
  triggerClassName: "min-w-0 flex-1",
2924
- children: /* @__PURE__ */ W(fe, {
2929
+ children: /* @__PURE__ */ W(pe, {
2925
2930
  text: r,
2926
2931
  className: o,
2927
2932
  hideTooltip: i
@@ -2955,17 +2960,17 @@ var pt = /* @__PURE__ */ function(e) {
2955
2960
  query: n,
2956
2961
  titleClassName: i,
2957
2962
  className: "min-w-0 flex-1 items-baseline gap-1.5",
2958
- trailing: o ? /* @__PURE__ */ W(Ie, {
2959
- size: L.SM,
2960
- className: A("shrink-0", Sr.selectedCheck),
2963
+ trailing: o ? /* @__PURE__ */ W(Le, {
2964
+ size: I.SM,
2965
+ className: k("shrink-0", Sr.selectedCheck),
2961
2966
  "aria-hidden": !0,
2962
- stroke: R
2967
+ stroke: L
2963
2968
  }) : void 0
2964
2969
  })]
2965
2970
  }) : null;
2966
2971
  }, Dr = ({ data: e, context: t }) => {
2967
- let [n, r] = F(e?.isStarred ?? !1);
2968
- return M(() => {
2972
+ let [n, r] = P(e?.isStarred ?? !1);
2973
+ return j(() => {
2969
2974
  r(e?.isStarred ?? !1);
2970
2975
  }, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ W("div", {
2971
2976
  className: "flex h-full items-center justify-end pe-4",
@@ -3063,23 +3068,23 @@ var pt = /* @__PURE__ */ function(e) {
3063
3068
  "--cat-list-selected-bg": h?.selectedRowBackground,
3064
3069
  "--cat-list-selected-check": h?.selectedRowCheckIcon,
3065
3070
  ...l == null ? {} : { "--list-header-sticky-top": `${l}px` }
3066
- }, _ = P(null), { containerRef: v, startRow: y, endRow: b } = Ct(e.length, Mr), x = N(() => e.slice(y, b), [
3071
+ }, _ = N(null), { containerRef: v, startRow: y, endRow: b } = Ct(e.length, Mr), x = M(() => e.slice(y, b), [
3067
3072
  e,
3068
3073
  y,
3069
3074
  b
3070
3075
  ]);
3071
- return M(() => {
3076
+ return j(() => {
3072
3077
  _.current?.refreshCells({ force: !0 });
3073
- }, [n]), M(() => {
3078
+ }, [n]), j(() => {
3074
3079
  _.current?.redrawRows();
3075
- }, [u]), M(() => {
3080
+ }, [u]), j(() => {
3076
3081
  _.current?.setGridOption("domLayout", e.length > 0 ? "autoHeight" : "normal");
3077
3082
  }, [e]), /* @__PURE__ */ W("div", {
3078
3083
  style: g,
3079
- className: Ne("w-full rounded-xl border", Sr.listContainer),
3084
+ className: Pe("w-full rounded-xl border", Sr.listContainer),
3080
3085
  children: /* @__PURE__ */ G("div", {
3081
3086
  ref: v,
3082
- className: Ne("rounded-xl", Sr.gridClip),
3087
+ className: Pe("rounded-xl", Sr.gridClip),
3083
3088
  children: [
3084
3089
  y > 0 && /* @__PURE__ */ W("div", {
3085
3090
  style: { height: y * Mr },
@@ -3144,7 +3149,7 @@ var pt = /* @__PURE__ */ function(e) {
3144
3149
  let n = new Set(t);
3145
3150
  return n.has(e) ? n.delete(e) : n.add(e), n;
3146
3151
  }, Lr = ({ 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 }) => {
3147
- let f = (r ?? !1) || e.size > 0, [p, m] = F(!1), h = k({
3152
+ let f = (r ?? !1) || e.size > 0, [p, m] = P(!1), h = ne({
3148
3153
  "--cat-filter-btn-bg": d?.buttonBackground,
3149
3154
  "--cat-filter-btn-border": d?.buttonBorder,
3150
3155
  "--cat-filter-btn-border-hover": d?.buttonBorderHover,
@@ -3160,19 +3165,19 @@ var pt = /* @__PURE__ */ function(e) {
3160
3165
  "--cat-filter-section-label": d?.sectionLabel,
3161
3166
  "--cat-filter-divider": d?.divider,
3162
3167
  "--cat-filter-footer-border": d?.footerBorder
3163
- }), g = N(() => n == null ? [] : [...n].sort(), [n]), _ = Fr(e, n, r, a, s), [v, y] = F(() => new Set(e)), [b, x] = F(r ?? !1);
3164
- M(() => {
3168
+ }), g = M(() => n == null ? [] : [...n].sort(), [n]), _ = Fr(e, n, r, a, s), [v, y] = P(() => new Set(e)), [b, x] = P(r ?? !1);
3169
+ j(() => {
3165
3170
  p && (y(new Set(e)), x(r ?? !1));
3166
3171
  }, [
3167
3172
  p,
3168
3173
  e,
3169
3174
  r
3170
3175
  ]);
3171
- let S = g.length + 1, [C, w] = F(-1), T = P([]), E = P(null), D = j((e) => {
3176
+ let S = g.length + 1, [C, w] = P(-1), T = N([]), E = N(null), D = A((e) => {
3172
3177
  let t = (e + S) % S;
3173
3178
  w(t), T.current[t]?.focus();
3174
3179
  }, [S]);
3175
- M(() => {
3180
+ j(() => {
3176
3181
  if (!p) {
3177
3182
  w(-1);
3178
3183
  return;
@@ -3184,14 +3189,14 @@ var pt = /* @__PURE__ */ function(e) {
3184
3189
  m(e), e || E.current?.focus();
3185
3190
  }, ee = (e) => {
3186
3191
  e.key === "ArrowDown" && !p && (e.preventDefault(), m(!0));
3187
- }, ne = (e) => {
3192
+ }, re = (e) => {
3188
3193
  e.key === "ArrowDown" ? (e.preventDefault(), D(C + 1)) : e.key === "ArrowUp" ? (e.preventDefault(), D(C - 1)) : e.key === "Escape" && (e.preventDefault(), m(!1), E.current?.focus());
3189
- }, re = () => {
3190
- t(v), i?.(b), O(!1);
3191
3194
  }, ie = () => {
3195
+ t(v), i?.(b), O(!1);
3196
+ }, ae = () => {
3192
3197
  t(/* @__PURE__ */ new Set()), i?.(!1), O(!1);
3193
3198
  };
3194
- return /* @__PURE__ */ W(ue, {
3199
+ return /* @__PURE__ */ W(de, {
3195
3200
  matchReferenceWidth: !1,
3196
3201
  placement: "bottom-start",
3197
3202
  open: p,
@@ -3205,16 +3210,16 @@ var pt = /* @__PURE__ */ function(e) {
3205
3210
  ...h,
3206
3211
  maxHeight: "calc(var(--fui-available-height, 9999px) - 8px)"
3207
3212
  },
3208
- className: A("flex min-w-[360px] flex-col rounded-xl p-[6px]", Pr.overlay),
3209
- onKeyDown: ne,
3213
+ className: k("flex min-w-[360px] flex-col rounded-xl p-[6px]", Pr.overlay),
3214
+ onKeyDown: re,
3210
3215
  children: [
3211
- /* @__PURE__ */ W(xe, {
3216
+ /* @__PURE__ */ W(Se, {
3212
3217
  role: "menuitemcheckbox",
3213
3218
  "aria-checked": b,
3214
- mark: z.Checkbox,
3219
+ mark: R.Checkbox,
3215
3220
  selected: b,
3216
3221
  label: a,
3217
- labelClassName: A(Pr.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3222
+ labelClassName: k(Pr.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3218
3223
  className: "shrink-0",
3219
3224
  tabIndex: C === 0 ? 0 : -1,
3220
3225
  ref: (e) => {
@@ -3222,25 +3227,25 @@ var pt = /* @__PURE__ */ function(e) {
3222
3227
  },
3223
3228
  onClick: () => x(!b)
3224
3229
  }),
3225
- g.length > 0 && /* @__PURE__ */ G(st, { children: [
3230
+ g.length > 0 && /* @__PURE__ */ G(U, { children: [
3226
3231
  /* @__PURE__ */ W("div", {
3227
3232
  role: "separator",
3228
- className: A("my-1 h-px", Pr.divider),
3233
+ className: k("my-1 h-px", Pr.divider),
3229
3234
  "aria-hidden": !0
3230
3235
  }),
3231
3236
  /* @__PURE__ */ W("div", {
3232
- className: A("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Pr.sectionLabel),
3237
+ className: k("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Pr.sectionLabel),
3233
3238
  "aria-hidden": !0,
3234
3239
  children: o
3235
3240
  }),
3236
3241
  /* @__PURE__ */ W("div", {
3237
- className: A(te, "flex min-h-0 flex-col gap-1 overflow-y-auto"),
3242
+ className: k(te, "flex min-h-0 flex-col gap-1 overflow-y-auto"),
3238
3243
  children: g.map((e, t) => {
3239
3244
  let n = v.has(e), r = t + 1;
3240
- return /* @__PURE__ */ W(xe, {
3245
+ return /* @__PURE__ */ W(Se, {
3241
3246
  role: "menuitemcheckbox",
3242
3247
  "aria-checked": n,
3243
- mark: z.Checkbox,
3248
+ mark: R.Checkbox,
3244
3249
  selected: n,
3245
3250
  label: e,
3246
3251
  labelClassName: Pr.rowLabel,
@@ -3255,17 +3260,17 @@ var pt = /* @__PURE__ */ function(e) {
3255
3260
  })
3256
3261
  ] }),
3257
3262
  /* @__PURE__ */ G("div", {
3258
- className: A("mt-1 flex shrink-0 items-center px-1 py-3", Pr.footer),
3263
+ className: k("mt-1 flex shrink-0 items-center px-1 py-3", Pr.footer),
3259
3264
  onKeyDown: (e) => {
3260
3265
  (e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
3261
3266
  },
3262
- children: [/* @__PURE__ */ W(me, {
3267
+ children: [/* @__PURE__ */ W(he, {
3263
3268
  label: c,
3264
- onClick: ie
3265
- }), /* @__PURE__ */ W(Ce, {
3269
+ onClick: ae
3270
+ }), /* @__PURE__ */ W(we, {
3266
3271
  label: l,
3267
3272
  className: "ms-auto",
3268
- onClick: re
3273
+ onClick: ie
3269
3274
  })]
3270
3275
  })
3271
3276
  ]
@@ -3277,22 +3282,22 @@ var pt = /* @__PURE__ */ function(e) {
3277
3282
  "aria-expanded": p,
3278
3283
  onKeyDown: ee,
3279
3284
  style: h,
3280
- className: A("flex h-12 shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-lg px-[18px]", Pr.filterBtn, f && Pr.filterBtnActive, p && Pr.filterBtnOpen),
3285
+ className: k("flex h-12 shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-lg px-[18px]", Pr.filterBtn, f && Pr.filterBtnActive, p && Pr.filterBtnOpen),
3281
3286
  children: [
3282
- /* @__PURE__ */ W(Ue, {
3283
- size: L.SM,
3284
- stroke: R,
3285
- className: A("shrink-0", Pr.filterBtnFunnel),
3287
+ /* @__PURE__ */ W(We, {
3288
+ size: I.SM,
3289
+ stroke: L,
3290
+ className: k("shrink-0", Pr.filterBtnFunnel),
3286
3291
  "aria-hidden": !0
3287
3292
  }),
3288
3293
  /* @__PURE__ */ W("span", {
3289
- className: A(Pr.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3294
+ className: k(Pr.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3290
3295
  children: _
3291
3296
  }),
3292
- /* @__PURE__ */ W(Le, {
3297
+ /* @__PURE__ */ W(Re, {
3293
3298
  size: 14,
3294
- stroke: R,
3295
- className: A("shrink-0 transition-transform duration-150", Pr.filterBtnChevron, p && "rotate-180"),
3299
+ stroke: L,
3300
+ className: k("shrink-0 transition-transform duration-150", Pr.filterBtnChevron, p && "rotate-180"),
3296
3301
  "aria-hidden": !0
3297
3302
  })
3298
3303
  ]
@@ -3302,28 +3307,28 @@ var pt = /* @__PURE__ */ function(e) {
3302
3307
  section: "_section_mh952_1",
3303
3308
  divider: "_divider_mh952_5"
3304
3309
  }, zr = ({ totalCount: e, viewMode: t, onViewModeChange: n, title: r = "Browse", browseHeaderRenderer: i, styles: a, query: o, onQueryChange: s, searchPlaceholder: c, gridViewLabel: l = "Grid view", listViewLabel: u = "List view", viewToggleLabel: d = "View mode", sortKey: f, sortOptions: p, onSortChange: m, sortLabel: h = "Sort", filters: g, onFiltersChange: _, filterValues: v, isMyAppsActive: y, onMyAppsChange: b, filterFromLabel: x, filterMyAppsLabel: S, filterTopicsLabel: C }) => {
3305
- let T = a?.typography?.titleClassName ?? "dial-body-semi-text", E = a?.typography?.countClassName ?? "dial-tiny-semi-text", D = N(() => [{
3310
+ let T = a?.typography?.titleClassName ?? "dial-body-semi-text", E = a?.typography?.countClassName ?? "dial-tiny-semi-text", D = M(() => [{
3306
3311
  value: gt.Grid,
3307
- icon: /* @__PURE__ */ W(Ke, {
3308
- size: L.SM,
3312
+ icon: /* @__PURE__ */ W(qe, {
3313
+ size: I.SM,
3309
3314
  "aria-hidden": !0,
3310
- stroke: R
3315
+ stroke: L
3311
3316
  }),
3312
3317
  "aria-label": l
3313
3318
  }, {
3314
3319
  value: gt.Cards,
3315
- icon: /* @__PURE__ */ W(qe, {
3316
- size: L.SM,
3320
+ icon: /* @__PURE__ */ W(Je, {
3321
+ size: I.SM,
3317
3322
  "aria-hidden": !0,
3318
- stroke: R
3323
+ stroke: L
3319
3324
  }),
3320
3325
  "aria-label": u
3321
3326
  }], [l, u]), O = (e) => {
3322
3327
  s(e ?? "");
3323
- }, ee = p?.find((e) => e.value === f)?.label ?? h, te = N(() => (p ?? []).map((e) => ({
3328
+ }, ee = p?.find((e) => e.value === f)?.label ?? h, te = M(() => (p ?? []).map((e) => ({
3324
3329
  key: e.value,
3325
3330
  label: e.label,
3326
- mark: z.Check,
3331
+ mark: R.Check,
3327
3332
  checked: e.value === f,
3328
3333
  onClick: () => m?.(e.value)
3329
3334
  })), [
@@ -3348,16 +3353,16 @@ var pt = /* @__PURE__ */ function(e) {
3348
3353
  }
3349
3354
  }), /* @__PURE__ */ G("div", {
3350
3355
  className: "ms-auto flex shrink-0 items-center gap-2",
3351
- children: [/* @__PURE__ */ W(De, {
3356
+ children: [/* @__PURE__ */ W(Oe, {
3352
3357
  "aria-label": d,
3353
3358
  value: t,
3354
3359
  onChange: n,
3355
3360
  items: D
3356
- }), p != null && p.length > 0 && /* @__PURE__ */ G(st, { children: [/* @__PURE__ */ W("div", { className: A("h-4 w-px shrink-0", Rr.divider) }), /* @__PURE__ */ W(oe, {
3361
+ }), p != null && p.length > 0 && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("div", { className: k("h-4 w-px shrink-0", Rr.divider) }), /* @__PURE__ */ W(se, {
3357
3362
  items: te,
3358
3363
  label: ee,
3359
- variant: I.Primary,
3360
- appearance: ae.Ghost
3364
+ variant: F.Primary,
3365
+ appearance: oe.Ghost
3361
3366
  })] })]
3362
3367
  })]
3363
3368
  }), /* @__PURE__ */ G("div", {
@@ -3365,10 +3370,10 @@ var pt = /* @__PURE__ */ function(e) {
3365
3370
  children: [/* @__PURE__ */ W("div", {
3366
3371
  role: "search",
3367
3372
  className: "flex-1",
3368
- children: /* @__PURE__ */ W(Ee, {
3373
+ children: /* @__PURE__ */ W(De, {
3369
3374
  value: o,
3370
3375
  onChange: O,
3371
- size: de.Large,
3376
+ size: fe.Large,
3372
3377
  wrapperClassName: "dial-kit-input-large",
3373
3378
  placeholder: c,
3374
3379
  "aria-label": c
@@ -3389,7 +3394,7 @@ var pt = /* @__PURE__ */ function(e) {
3389
3394
  }, Br = ({ 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 }) => {
3390
3395
  let b = { "--cat-browse-divider": r?.colors?.divider };
3391
3396
  return /* @__PURE__ */ W("section", {
3392
- className: A("flex-shrink-0 px-4", Rr.section),
3397
+ className: k("flex-shrink-0 px-4", Rr.section),
3393
3398
  style: b,
3394
3399
  children: /* @__PURE__ */ W(zr, {
3395
3400
  styles: r,
@@ -3419,29 +3424,25 @@ var pt = /* @__PURE__ */ function(e) {
3419
3424
  heading: "_heading_1h83l_5",
3420
3425
  headingTitle: "_headingTitle_1h83l_9"
3421
3426
  }, Hr = ({ label: e, options: t, onClick: n }) => {
3422
- let r = P(null);
3427
+ let r = N(null);
3423
3428
  return t?.length ? /* @__PURE__ */ W("div", {
3424
3429
  ref: r,
3425
- children: /* @__PURE__ */ W(oe, {
3426
- appearance: ae.Solid,
3430
+ children: /* @__PURE__ */ W(se, {
3431
+ appearance: oe.Solid,
3427
3432
  label: e,
3428
- iconBefore: /* @__PURE__ */ W(Qe, {
3429
- size: L.SM,
3430
- stroke: R
3431
- }),
3432
- variant: I.Primary,
3433
+ variant: F.Primary,
3433
3434
  items: t
3434
3435
  })
3435
- }) : /* @__PURE__ */ W(Ce, {
3436
+ }) : /* @__PURE__ */ W(we, {
3436
3437
  label: e,
3437
- iconBefore: /* @__PURE__ */ W(Qe, {
3438
- size: L.SM,
3439
- stroke: R
3438
+ iconBefore: /* @__PURE__ */ W($e, {
3439
+ size: I.SM,
3440
+ stroke: L
3440
3441
  }),
3441
3442
  onClick: n
3442
3443
  });
3443
- }, Ur = ({ items: e, tabs: a, topicOptions: o, favorites: s, titles: l, browseHeaderRenderer: u, onToggleFavorite: f, isFavoriteVisible: p, columnVisibility: h, onUseInChat: g, isPrimaryActionVisible: _, onShare: v, isPublishVisible: y, isPublishPrimary: b, getPublishHistory: x, publishFolderItems: S, publishExpandedPaths: C, onPublishExpandedPathsChange: w, publishLoadingPaths: T, hasPublishWriteAccess: E, publishDefaultAuthor: D, onPublish: O, onPublishSuccess: ee, onPublishError: te, onCreatePublishFolder: k, publishLabels: ne, ruleSourceOptions: re, onFetchExistingRules: ie, shareOverlay: ae, isShareVisible: oe, isSharePrimary: I, onFetchDetails: se, onEdit: ce, onDownload: L, isDownloadVisible: R, isDownloadPrimary: le, onLoadContentFile: ue, onLoadContentFilePreview: de, renderContentFilePreview: fe, onDelete: pe, onUnshare: me, isUnshareVisible: he, onRevokeShare: ge, onFetchRecipientsCount: _e, isRevokeShareVisible: ve, onUnpublish: ye, isUnpublishVisible: be, onLogin: xe, onLogout: z, onCreateClick: B, createOptions: Se, hideCreateButton: Ce = !1, hidePageTitle: we = !1, isReadonly: Te = !1, initialViewMode: Ee = gt.Grid, isFullWidth: De = !1, selectedItemId: Oe, onCardClick: ke, isLoading: V, styles: Me, detailsTexts: Ne, detailsLimitsFooterNote: Pe, initialDetailsItemId: H, sortKey: Fe, onSortChange: Ie, filterTopics: Le, onFilterTopicsChange: Re, isMyAppsActive: ze, onMyAppsActiveChange: Be, activeTab: Ve, onActiveTabChange: He }) => {
3444
- let { typography: Ue } = Me ?? {}, We = vt(Me), Ge = l?.pageTitle ?? "Catalog", Ke = l?.createLabel ?? "Create", qe = l?.favoritesTitle ?? "Your favorites", Je = l?.browseTitle ?? "Browse", Ye = l?.searchPlaceholder ?? "Search models, tools, agents…", Xe = l?.noResultsTitle ?? ((e) => `No results for "${e}"`), Ze = l?.featuredLabel ?? "Featured", Qe = l?.gridViewLabel ?? "Grid view", $e = l?.listViewLabel ?? "List view", et = l?.viewToggleLabel ?? "View mode", tt = l?.ariaLabel ?? "Catalog", nt = l?.sortLabel ?? "Sort", rt = [
3444
+ }, Ur = ({ items: e, tabs: a, topicOptions: o, favorites: s, titles: l, browseHeaderRenderer: u, onToggleFavorite: f, isFavoriteVisible: p, columnVisibility: h, onUseInChat: g, isPrimaryActionVisible: _, onShare: v, isPublishVisible: y, isPublishPrimary: b, getPublishHistory: x, publishFolderItems: S, publishExpandedPaths: C, onPublishExpandedPathsChange: w, publishLoadingPaths: T, hasPublishWriteAccess: E, publishDefaultAuthor: D, onPublish: O, onPublishSuccess: ee, onPublishError: te, onCreatePublishFolder: ne, publishLabels: re, ruleSourceOptions: ie, onFetchExistingRules: ae, shareOverlay: oe, isShareVisible: se, isSharePrimary: F, onFetchDetails: ce, onEdit: le, onDownload: I, isDownloadVisible: L, isDownloadPrimary: ue, onLoadContentFile: de, onLoadContentFilePreview: fe, renderContentFilePreview: pe, onDelete: me, onUnshare: he, isUnshareVisible: ge, onRevokeShare: _e, onFetchRecipientsCount: ve, isRevokeShareVisible: ye, onUnpublish: be, isUnpublishVisible: xe, onLogin: Se, onLogout: R, onCreateClick: z, createOptions: Ce, hideCreateButton: we = !1, hidePageTitle: Te = !1, isReadonly: Ee = !1, initialViewMode: De = gt.Grid, isFullWidth: Oe = !1, selectedItemId: ke, onCardClick: Ae, isLoading: B, styles: Ne, detailsTexts: Pe, detailsLimitsFooterNote: Fe, initialDetailsItemId: V, sortKey: Ie, onSortChange: Le, filterTopics: Re, onFilterTopicsChange: ze, isMyAppsActive: Be, onMyAppsActiveChange: Ve, activeTab: He, onActiveTabChange: Ue }) => {
3445
+ let { typography: We } = Ne ?? {}, Ge = vt(Ne), Ke = l?.pageTitle ?? "Catalog", qe = l?.createLabel ?? "Create", Je = l?.favoritesTitle ?? "Your favorites", Ye = l?.browseTitle ?? "Browse", Xe = l?.searchPlaceholder ?? "Search models, tools, agents…", Ze = l?.noResultsTitle ?? ((e) => `No results for "${e}"`), Qe = l?.featuredLabel ?? "Featured", $e = l?.gridViewLabel ?? "Grid view", et = l?.listViewLabel ?? "List view", tt = l?.viewToggleLabel ?? "View mode", nt = l?.ariaLabel ?? "Catalog", rt = l?.sortLabel ?? "Sort", it = [
3445
3446
  {
3446
3447
  value: i.RecentlyUpdated,
3447
3448
  label: l?.sortRecentlyUpdatedLabel ?? "Recently Updated"
@@ -3454,67 +3455,67 @@ var pt = /* @__PURE__ */ function(e) {
3454
3455
  value: i.NameAZ,
3455
3456
  label: l?.sortNameAZLabel ?? "Name A-Z"
3456
3457
  }
3457
- ], [U, it] = F(""), [at, ot] = F(Ee), [st, ct] = F(Ee === gt.Cards), [lt, ut] = F(i.RecentlyUpdated), [dt, ft] = F(/* @__PURE__ */ new Set()), [pt, K] = F(!1), mt = Fe ?? lt, q = Le ?? dt, J = ze ?? pt, ht = j((e) => {
3458
+ ], [H, at] = P(""), [ot, st] = P(De), [U, ct] = P(De === gt.Cards), [lt, ut] = P(i.RecentlyUpdated), [dt, ft] = P(/* @__PURE__ */ new Set()), [pt, K] = P(!1), mt = Ie ?? lt, q = Re ?? dt, J = Be ?? pt, ht = A((e) => {
3458
3459
  let t = e;
3459
- ut(t), Ie?.(t);
3460
- }, [Ie]), Y = j((e) => {
3461
- ft(e), Re?.(e);
3462
- }, [Re]), _t = j((e) => {
3463
- K(e), Be?.(e);
3464
- }, [Be]), X = N(() => e.filter((e) => !e.isHidden), [e]), yt = N(() => o ?? r(X), [o, X]), bt = N(() => a ?? t(X, l?.tabLabels), [
3460
+ ut(t), Le?.(t);
3461
+ }, [Le]), Y = A((e) => {
3462
+ ft(e), ze?.(e);
3463
+ }, [ze]), _t = A((e) => {
3464
+ K(e), Ve?.(e);
3465
+ }, [Ve]), X = M(() => e.filter((e) => !e.isHidden), [e]), yt = M(() => o ?? r(X), [o, X]), bt = M(() => a ?? t(X, l?.tabLabels), [
3465
3466
  a,
3466
3467
  X,
3467
3468
  l?.tabLabels
3468
- ]), Z = bt[0]?.id ?? "", [xt, Q] = F(Z);
3469
- M(() => {
3469
+ ]), Z = bt[0]?.id ?? "", [xt, Q] = P(Z);
3470
+ j(() => {
3470
3471
  Q((e) => e || Z);
3471
3472
  }, [Z]);
3472
- let St = Ve ?? xt, Ct = j((e) => {
3473
- Q(e), He?.(e);
3474
- }, [He]), [wt, Tt] = F(s.length > 0);
3475
- M(() => {
3473
+ let St = He ?? xt, Ct = A((e) => {
3474
+ Q(e), Ue?.(e);
3475
+ }, [Ue]), [wt, Tt] = P(s.length > 0);
3476
+ j(() => {
3476
3477
  s.length > 0 && !wt && Tt(!0);
3477
3478
  }, [s.length, wt]);
3478
- let Et = j(() => {
3479
+ let Et = A(() => {
3479
3480
  Tt(!1);
3480
- }, []), Dt = wt && s.length === 0, [$, Ot] = F(null), [kt, At] = F(!1), [jt, Mt] = F(void 0), [Nt, Pt] = F(!1), Ft = P(null), It = j(async (e) => {
3481
+ }, []), Dt = wt && s.length === 0, [$, Ot] = P(null), [kt, At] = P(!1), [jt, Mt] = P(void 0), [Nt, Pt] = P(!1), Ft = N(null), It = A(async (e) => {
3481
3482
  Ot(e), Mt(void 0), Ft.current = e.id;
3482
3483
  let t = [];
3483
- se && (Pt(!0), t.push((async () => {
3484
+ ce && (Pt(!0), t.push((async () => {
3484
3485
  try {
3485
- let t = await se(e);
3486
+ let t = await ce(e);
3486
3487
  Ft.current === e.id && Mt(t);
3487
3488
  } finally {
3488
3489
  Ft.current === e.id && Pt(!1);
3489
3490
  }
3490
3491
  })())), await Promise.all(t);
3491
- }, [se]), Lt = P(null);
3492
- M(() => {
3493
- if (!H) {
3492
+ }, [ce]), Lt = N(null);
3493
+ j(() => {
3494
+ if (!V) {
3494
3495
  Lt.current = null;
3495
3496
  return;
3496
3497
  }
3497
- if (Lt.current === H) return;
3498
- let t = e.find((e) => e.id === H);
3499
- t && (Lt.current = H, It(t));
3498
+ if (Lt.current === V) return;
3499
+ let t = e.find((e) => e.id === V);
3500
+ t && (Lt.current = V, It(t));
3500
3501
  }, [
3501
- H,
3502
+ V,
3502
3503
  e,
3503
3504
  It
3504
- ]), M(() => {
3505
+ ]), j(() => {
3505
3506
  if ($ == null) return;
3506
3507
  let t = e.find((e) => e.id === $.id);
3507
3508
  t && t !== $ && Ot(t);
3508
3509
  }, [e, $]);
3509
- let Rt = j(async (e, t) => {
3510
- await xe?.(e, t), await It(e);
3511
- }, [xe, It]), zt = j(async (e, t) => {
3512
- await z?.(e, t), await It(e);
3513
- }, [z, It]), Vt = j(() => {
3510
+ let Rt = A(async (e, t) => {
3511
+ await Se?.(e, t), await It(e);
3512
+ }, [Se, It]), zt = A(async (e, t) => {
3513
+ await R?.(e, t), await It(e);
3514
+ }, [R, It]), Vt = A(() => {
3514
3515
  At(!1), Ft.current = null, setTimeout(() => {
3515
3516
  Ot(null), Mt(void 0), Pt(!1);
3516
3517
  }, 300);
3517
- }, []), Ht = N(() => {
3518
+ }, []), Ht = M(() => {
3518
3519
  if ($ == null) return null;
3519
3520
  if (jt == null) return $;
3520
3521
  let { credentials: e, ...t } = jt;
@@ -3523,42 +3524,42 @@ var pt = /* @__PURE__ */ function(e) {
3523
3524
  details: t,
3524
3525
  credentials: e ?? $.credentials
3525
3526
  };
3526
- }, [$, jt]), Ut = N(() => d(X, mt), [X, mt]), Wt = N(() => c(Ut, U), [Ut, U]), Gt = N(() => q.size > 0 ? n(Wt, q) : Wt, [Wt, q]), Kt = N(() => J ? m(Gt) : Gt, [Gt, J]), qt = N(() => St ? Kt.filter((e) => e.type === St) : Kt, [Kt, St]), Jt = $ != null && s.some((e) => e.id === $.id);
3527
- M(() => {
3527
+ }, [$, jt]), Ut = M(() => d(X, mt), [X, mt]), Wt = M(() => c(Ut, H), [Ut, H]), Gt = M(() => q.size > 0 ? n(Wt, q) : Wt, [Wt, q]), Kt = M(() => J ? m(Gt) : Gt, [Gt, J]), qt = M(() => St ? Kt.filter((e) => e.type === St) : Kt, [Kt, St]), Jt = $ != null && s.some((e) => e.id === $.id);
3528
+ j(() => {
3528
3529
  if ($ == null) return;
3529
3530
  let e = requestAnimationFrame(() => At(!0));
3530
3531
  return () => cancelAnimationFrame(e);
3531
3532
  }, [$]);
3532
- let Yt = j((e) => {
3533
- e === gt.Cards && ct(!0), ot(e);
3534
- }, []), Xt = !Ce && !Te, Zt = wt && !Te, Qt = U ? Xe(U) : "No items", $t = N(() => ({
3533
+ let Yt = A((e) => {
3534
+ e === gt.Cards && ct(!0), st(e);
3535
+ }, []), Xt = !we && !Ee, Zt = wt && !Ee, Qt = H ? Ze(H) : "No items", $t = M(() => ({
3535
3536
  noResultsTitle: Qt,
3536
- featuredLabel: Ze,
3537
- credentialsBadgeLoggedOutLabel: Ne?.credentialsBadgeLoggedOutLabel
3537
+ featuredLabel: Qe,
3538
+ credentialsBadgeLoggedOutLabel: Pe?.credentialsBadgeLoggedOutLabel
3538
3539
  }), [
3539
3540
  Qt,
3540
- Ze,
3541
- Ne?.credentialsBadgeLoggedOutLabel
3541
+ Qe,
3542
+ Pe?.credentialsBadgeLoggedOutLabel
3542
3543
  ]);
3543
- return V ? /* @__PURE__ */ W("div", {
3544
+ return B ? /* @__PURE__ */ W("div", {
3544
3545
  className: "flex size-full min-h-0 flex-1 items-center justify-center",
3545
- children: /* @__PURE__ */ W(Ae, {})
3546
+ children: /* @__PURE__ */ W(je, {})
3546
3547
  }) : /* @__PURE__ */ G("section", {
3547
- "aria-label": tt,
3548
- className: A("flex size-full min-h-0 flex-1 flex-col", Vr.root),
3549
- style: We,
3548
+ "aria-label": nt,
3549
+ className: k("flex size-full min-h-0 flex-1 flex-col", Vr.root),
3550
+ style: Ge,
3550
3551
  children: [
3551
- (!we || Xt) && /* @__PURE__ */ W("div", {
3552
- className: A("shrink-0", Vr.heading),
3552
+ (!Te || Xt) && /* @__PURE__ */ W("div", {
3553
+ className: k("shrink-0", Vr.heading),
3553
3554
  children: /* @__PURE__ */ G("div", {
3554
3555
  className: "flex h-[64px] w-full items-center justify-between px-8",
3555
- children: [!we && /* @__PURE__ */ W("h1", {
3556
- className: A(Ue?.pageHeadingFontClassName ?? "dial-display2-text", Vr.headingTitle),
3557
- children: Ge
3556
+ children: [!Te && /* @__PURE__ */ W("h1", {
3557
+ className: k(We?.pageHeadingFontClassName ?? "dial-display2-text", Vr.headingTitle),
3558
+ children: Ke
3558
3559
  }), Xt && /* @__PURE__ */ W(Hr, {
3559
- label: Ke,
3560
- options: Se,
3561
- onClick: B
3560
+ label: qe,
3561
+ options: Ce,
3562
+ onClick: z
3562
3563
  })]
3563
3564
  })
3564
3565
  }),
@@ -3570,34 +3571,34 @@ var pt = /* @__PURE__ */ function(e) {
3570
3571
  children: /* @__PURE__ */ W(xr, {
3571
3572
  items: s,
3572
3573
  totalCount: s.length,
3573
- title: qe,
3574
+ title: Je,
3574
3575
  onToggleFavorite: f,
3575
3576
  isFavoriteVisible: p,
3576
- onItemClick: ke ?? It,
3577
+ onItemClick: Ae ?? It,
3577
3578
  isLeaving: Dt,
3578
3579
  onExitComplete: Et,
3579
- selectedItemId: Oe,
3580
- credentialsBadgeLoggedOutLabel: Ne?.credentialsBadgeLoggedOutLabel
3580
+ selectedItemId: ke,
3581
+ credentialsBadgeLoggedOutLabel: Pe?.credentialsBadgeLoggedOutLabel
3581
3582
  })
3582
3583
  }),
3583
3584
  /* @__PURE__ */ W("div", {
3584
3585
  className: "w-full px-4 pt-6",
3585
3586
  children: /* @__PURE__ */ W(Br, {
3586
3587
  totalCount: Kt.length,
3587
- viewMode: at,
3588
+ viewMode: ot,
3588
3589
  onViewModeChange: Yt,
3589
3590
  sortKey: mt,
3590
- query: U,
3591
- onQueryChange: it,
3592
- title: Je,
3591
+ query: H,
3592
+ onQueryChange: at,
3593
+ title: Ye,
3593
3594
  browseHeaderRenderer: u,
3594
- searchPlaceholder: Ye,
3595
- gridViewLabel: Qe,
3596
- listViewLabel: $e,
3597
- viewToggleLabel: et,
3598
- sortOptions: rt,
3595
+ searchPlaceholder: Xe,
3596
+ gridViewLabel: $e,
3597
+ listViewLabel: et,
3598
+ viewToggleLabel: tt,
3599
+ sortOptions: it,
3599
3600
  onSortChange: ht,
3600
- sortLabel: nt,
3601
+ sortLabel: rt,
3601
3602
  filters: q,
3602
3603
  onFiltersChange: Y,
3603
3604
  filterValues: yt,
@@ -3610,7 +3611,7 @@ var pt = /* @__PURE__ */ function(e) {
3610
3611
  }),
3611
3612
  bt.length > 1 && /* @__PURE__ */ W("div", {
3612
3613
  className: "min-w-0 shrink-0 overflow-x-auto px-8",
3613
- children: /* @__PURE__ */ W(je, {
3614
+ children: /* @__PURE__ */ W(Me, {
3614
3615
  tabs: bt.map((e) => ({
3615
3616
  id: e.id,
3616
3617
  label: typeof e.label == "string" ? e.label : String(e.label),
@@ -3621,36 +3622,37 @@ var pt = /* @__PURE__ */ function(e) {
3621
3622
  })
3622
3623
  }),
3623
3624
  /* @__PURE__ */ G("div", {
3624
- className: A(qt.length > 0 ? ["min-h-full w-full px-8 py-6", !De && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", qt.length === 0 && "px-8 py-6"),
3625
+ className: k(qt.length > 0 ? ["min-h-full w-full px-8 py-6", !Oe && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", qt.length === 0 && "px-8 py-6"),
3625
3626
  children: [/* @__PURE__ */ W("div", {
3626
- className: A(qt.length > 0 ? "pb-8" : "size-full flex-1", at !== gt.Grid && "hidden"),
3627
+ className: k(qt.length > 0 ? "pb-8" : "size-full flex-1", ot !== gt.Grid && "hidden"),
3627
3628
  children: /* @__PURE__ */ W(Bt, {
3628
3629
  items: qt,
3629
- query: U,
3630
+ query: H,
3630
3631
  onToggleFavorite: f,
3631
3632
  isFavoriteVisible: p,
3632
- onItemClick: ke ?? It,
3633
+ onItemClick: Ae ?? It,
3633
3634
  titles: $t,
3634
- selectedItemId: Oe,
3635
- isReadonly: Te,
3636
- isFullWidth: De
3635
+ selectedItemId: ke,
3636
+ isReadonly: Ee,
3637
+ isFullWidth: Oe,
3638
+ featuredChipStyle: Ne?.colors?.featuredChipStyle
3637
3639
  })
3638
- }), st && /* @__PURE__ */ W("div", {
3639
- className: A("pb-8", at !== gt.Cards && "hidden", qt.length === 0 && "h-full"),
3640
+ }), U && /* @__PURE__ */ W("div", {
3641
+ className: k("pb-8", ot !== gt.Cards && "hidden", qt.length === 0 && "h-full"),
3640
3642
  children: /* @__PURE__ */ W(Nr, {
3641
3643
  type: St,
3642
3644
  items: qt,
3643
- query: U,
3644
- ariaLabel: tt,
3645
+ query: H,
3646
+ ariaLabel: nt,
3645
3647
  emptyStateTitle: Qt,
3646
3648
  onToggleFavorite: f,
3647
3649
  isFavoriteVisible: p,
3648
3650
  columnVisibility: h,
3649
- onItemClick: ke ?? It,
3651
+ onItemClick: Ae ?? It,
3650
3652
  stickyHeaderTop: 0,
3651
- selectedItemId: Oe,
3652
- credentialsBadgeLoggedOutLabel: Ne?.credentialsBadgeLoggedOutLabel,
3653
- isReadonly: Te
3653
+ selectedItemId: ke,
3654
+ credentialsBadgeLoggedOutLabel: Pe?.credentialsBadgeLoggedOutLabel,
3655
+ isReadonly: Ee
3654
3656
  })
3655
3657
  })]
3656
3658
  })
@@ -3661,7 +3663,7 @@ var pt = /* @__PURE__ */ function(e) {
3661
3663
  isOpen: kt,
3662
3664
  isStarred: Jt,
3663
3665
  isDetailsLoading: Nt,
3664
- isReadonly: Te,
3666
+ isReadonly: Ee,
3665
3667
  onClose: Vt,
3666
3668
  onToggleFavorite: f,
3667
3669
  isFavoriteVisible: p,
@@ -3680,32 +3682,33 @@ var pt = /* @__PURE__ */ function(e) {
3680
3682
  onPublish: O,
3681
3683
  onPublishSuccess: ee,
3682
3684
  onPublishError: te,
3683
- onCreatePublishFolder: k,
3684
- publishLabels: ne,
3685
- ruleSourceOptions: re,
3686
- onFetchExistingRules: ie,
3687
- shareOverlay: ae,
3688
- isShareVisible: oe,
3689
- isSharePrimary: I,
3690
- onEdit: ce,
3691
- onDownload: L,
3692
- isDownloadVisible: R,
3693
- isDownloadPrimary: le,
3694
- onLoadContentFile: ue,
3695
- onLoadContentFilePreview: de,
3696
- renderContentFilePreview: fe,
3697
- onDelete: pe,
3698
- onUnshare: me,
3699
- isUnshareVisible: he,
3700
- onRevokeShare: ge,
3701
- onFetchRecipientsCount: _e,
3702
- isRevokeShareVisible: ve,
3703
- onUnpublish: ye,
3704
- isUnpublishVisible: be,
3685
+ onCreatePublishFolder: ne,
3686
+ publishLabels: re,
3687
+ ruleSourceOptions: ie,
3688
+ onFetchExistingRules: ae,
3689
+ shareOverlay: oe,
3690
+ isShareVisible: se,
3691
+ isSharePrimary: F,
3692
+ onEdit: le,
3693
+ onDownload: I,
3694
+ isDownloadVisible: L,
3695
+ isDownloadPrimary: ue,
3696
+ onLoadContentFile: de,
3697
+ onLoadContentFilePreview: fe,
3698
+ renderContentFilePreview: pe,
3699
+ onDelete: me,
3700
+ onUnshare: he,
3701
+ isUnshareVisible: ge,
3702
+ onRevokeShare: _e,
3703
+ onFetchRecipientsCount: ve,
3704
+ isRevokeShareVisible: ye,
3705
+ onUnpublish: be,
3706
+ isUnpublishVisible: xe,
3705
3707
  onLogin: Rt,
3706
3708
  onLogout: zt,
3707
- texts: Ne,
3708
- limitsFooterNote: Pe
3709
+ texts: Pe,
3710
+ limitsFooterNote: Fe,
3711
+ styles: { colors: { featuredChipStyle: Ne?.colors?.featuredChipStyle } }
3709
3712
  })
3710
3713
  ]
3711
3714
  });