@epam/ai-dial-catalog 1.1.0-dev.445 → 1.1.0-dev.447

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