@epam/ai-dial-catalog 1.2.0-dev.170 → 1.2.0-dev.174

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,66 +1,66 @@
1
1
  import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, x as y, y as b } from "./mapping-BHlCxGmC.js";
2
- import { CatalogEntityType as x, DESKTOP_BREAKPOINT_PX as S, DeploymentIcon as C, EntityHeader as w, EntityTypeLabel as T, FeaturedChip as E, ItemHeader as D, MarkdownCodeBlock as O, MarkdownRenderer as k, MarkdownWithPlaceholders as A, PanelEmptyState as ee, ResourceSummary as te, SELECT_LIST_MAX_HEIGHT_CLASS_NAME as ne, buildCssVars as re, mergeClasses as j } from "@epam/ai-dial-chat-shared";
3
- import { Fragment as ie, memo as ae, startTransition as oe, useCallback as M, useEffect as N, useId as se, useLayoutEffect as ce, useMemo as P, useRef as F, useState as I } from "react";
4
- import { ButtonAppearance as le, ButtonDropdown as L, ButtonVariant as ue, CardShell as de, Checkbox as fe, CloseButton as pe, DIAL_ICON_SIZE as R, DIAL_KIT_ICON_STROKE as z, DangerButton as me, Dropdown as he, ElementSize as ge, EllipsisTooltip as _e, FolderPath as ve, GhostButton as ye, GhostIconButton as be, Highlight as xe, InlineSelect as Se, InlineSelectTrigger as Ce, Input as B, LinkButton as we, MenuItem as Te, MenuItemMark as Ee, NeutralButton as De, NeutralIconButton as Oe, PrimaryButton as ke, ProgressBar as Ae, RadioGroup as je, Search as Me, SegmentedControl as V, Skeleton as Ne, SkeletonAvatarShape as Pe, Spinner as Fe, Tabs as Ie, ToggleIconButton as Le, Tooltip as Re, mergeClasses as ze } from "@epam/ai-dial-ui-kit";
5
- import { IconAlertTriangleFilled as Be, IconArrowRight as Ve, IconBuildingCommunity as He, IconCheck as Ue, IconChevronDown as We, IconChevronLeft as Ge, IconChevronRight as Ke, IconCircleCheckFilled as qe, IconDots as Je, IconDownload as Ye, IconFilter as Xe, IconFolder as Ze, IconKey as Qe, IconLayoutGrid as $e, IconLayoutList as et, IconLogin as tt, IconLogout as nt, IconPencil as rt, IconPlayerPlayFilled as it, IconPlus as at, IconShare as ot, IconStar as H, IconStarFilled as st, IconTrash as ct, IconTrashX as U, IconUser as lt, IconUserOff as ut, IconWorldOff as dt, IconWorldShare as ft } from "@tabler/icons-react";
2
+ import { CatalogEntityType as x, DESKTOP_BREAKPOINT_PX as S, DeploymentIcon as C, EntityHeader as w, EntityTypeLabel as T, FeaturedChip as E, ItemHeader as D, MarkdownCodeBlock as O, MarkdownRenderer as k, MarkdownWithPlaceholders as A, PanelEmptyState as ee, ResourceSummary as te, SELECT_LIST_MAX_HEIGHT_CLASS_NAME as ne, buildCssVars as j, mergeClasses as M } from "@epam/ai-dial-chat-shared";
3
+ import { Fragment as re, memo as ie, startTransition as ae, useCallback as N, useEffect as P, useId as oe, useLayoutEffect as se, useMemo as F, useRef as I, useState as L } from "react";
4
+ import { Button as ce, ButtonAppearance as R, ButtonDropdown as le, ButtonVariant as ue, CardShell as de, Checkbox as fe, CloseButton as pe, DIAL_ICON_SIZE as z, DIAL_KIT_ICON_STROKE as B, DangerButton as me, Dropdown as he, ElementSize as ge, EllipsisTooltip as _e, FolderPath as ve, GhostButton as ye, GhostIconButton as be, Highlight as xe, InlineSelect as Se, InlineSelectTrigger as V, Input as Ce, LinkButton as we, MenuItem as Te, MenuItemMark as Ee, NeutralButton as De, NeutralIconButton as Oe, PrimaryButton as ke, ProgressBar as Ae, RadioGroup as je, Search as H, SegmentedControl as Me, Skeleton as Ne, SkeletonAvatarShape as Pe, Spinner as Fe, Tabs as Ie, ToggleIconButton as Le, Tooltip as Re, mergeClasses as ze } from "@epam/ai-dial-ui-kit";
5
+ import { IconAlertTriangleFilled as Be, IconArrowRight as Ve, IconBuildingCommunity as He, IconCheck as Ue, IconChevronDown as We, IconChevronLeft as Ge, IconChevronRight as Ke, IconCircleCheckFilled as qe, IconDots as Je, IconDownload as Ye, IconFilter as Xe, IconFolder as Ze, IconKey as Qe, IconLayoutGrid as $e, IconLayoutList as et, IconLogin as tt, IconLogout as nt, IconPencil as rt, IconPlayerPlayFilled as it, IconPlus as U, IconShare as at, IconStar as ot, IconStarFilled as st, IconTrash as ct, IconTrashX as lt, IconUser as ut, IconUserOff as dt, IconWorldOff as ft, IconWorldShare as pt } from "@tabler/icons-react";
6
6
  import { Fragment as W, jsx as G, jsxs as K } from "react/jsx-runtime";
7
- import { PublishFooter as pt, PublishPanel as mt, derivePublishState as ht, usePublishFlow as gt } from "@epam/ai-dial-publish-panel";
8
- import { Grid as _t } from "@epam/ai-dial-ui-kit/grid";
7
+ import { PublishFooter as mt, PublishPanel as ht, derivePublishState as gt, usePublishFlow as _t } from "@epam/ai-dial-publish-panel";
8
+ import { Grid as vt } from "@epam/ai-dial-ui-kit/grid";
9
9
  //#region src/types/code-language.ts
10
- var q = /* @__PURE__ */ function(e) {
10
+ var yt = /* @__PURE__ */ function(e) {
11
11
  return e.Python = "python", e.Curl = "curl", e.JavaScript = "javascript", e;
12
- }({}), J = /* @__PURE__ */ function(e) {
12
+ }({}), q = /* @__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
- }({}), vt = /* @__PURE__ */ function(e) {
14
+ }({}), J = /* @__PURE__ */ function(e) {
15
15
  return e.RunningLow = "runningLow", e.LimitReached = "limitReached", e;
16
16
  }({}), Y = /* @__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
- }({}), X = /* @__PURE__ */ function(e) {
18
+ }({}), bt = /* @__PURE__ */ function(e) {
19
19
  return e.Danger = "danger", e.Info = "info", e;
20
- }({}), Z = /* @__PURE__ */ function(e) {
20
+ }({}), xt = /* @__PURE__ */ function(e) {
21
21
  return e.SM = "sm", e.LG = "lg", e;
22
- }({}), yt = /* @__PURE__ */ function(e) {
22
+ }({}), St = /* @__PURE__ */ function(e) {
23
23
  return e.Grid = "grid", e.Cards = "cards", e;
24
- }({}), bt = /* @__PURE__ */ function(e) {
24
+ }({}), Ct = /* @__PURE__ */ function(e) {
25
25
  return e.Inline = "inline", e.Stacked = "stacked", e;
26
- }({}), xt = /* @__PURE__ */ function(e) {
26
+ }({}), X = /* @__PURE__ */ function(e) {
27
27
  return e.File = "file", e.Folder = "folder", e;
28
- }({}), Q = /* @__PURE__ */ function(e) {
28
+ }({}), wt = /* @__PURE__ */ function(e) {
29
29
  return e.Markdown = "markdown", e.Text = "text", e.Image = "image", e.Unsupported = "unsupported", e;
30
- }({}), St = () => {
31
- let [e, t] = I(() => window.innerWidth);
32
- return N(() => {
30
+ }({}), Tt = () => {
31
+ let [e, t] = L(() => window.innerWidth);
32
+ return P(() => {
33
33
  let e = () => t(window.innerWidth);
34
34
  return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
35
35
  }, []), e >= 1024 ? 4 : e >= 640 ? 2 : 1;
36
- }, Ct = {
36
+ }, Z = {
37
37
  root: "dial-catalog-root",
38
38
  toolbar: "dial-catalog-toolbar",
39
39
  card: "dial-catalog-card",
40
40
  favoriteCard: "dial-catalog-favorite-card",
41
41
  listView: "dial-catalog-list-view"
42
- }, wt = (e) => {
42
+ }, Et = (e) => {
43
43
  let { colors: t } = e ?? {};
44
- return re({
44
+ return j({
45
45
  "--cat-bg": t?.background,
46
46
  "--cat-heading-title-text": t?.headingTitleText
47
47
  });
48
- }, Tt = 1180, Et = (e) => e >= 1280 ? 4 : e >= 966 ? 3 : e >= 620 ? 2 : 1, Dt = (e) => {
48
+ }, Dt = 1180, Ot = (e) => e >= 1280 ? 4 : e >= 966 ? 3 : e >= 620 ? 2 : 1, kt = (e) => {
49
49
  if (!e || e === document.body) return document.documentElement;
50
50
  let { overflow: t, overflowY: n } = getComputedStyle(e);
51
- return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : Dt(e.parentElement);
52
- }, Ot = 10, kt = 10, At = 30, jt = (e, t, n = Ot) => {
53
- let r = F(null), [i, a] = I({
51
+ return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : kt(e.parentElement);
52
+ }, At = 10, jt = 10, Mt = 30, Nt = (e, t, n = At) => {
53
+ let r = I(null), [i, a] = L({
54
54
  start: 0,
55
- end: At
55
+ end: Mt
56
56
  });
57
- N(() => {
57
+ P(() => {
58
58
  let i = r.current;
59
59
  if (!i) return;
60
- let o = Dt(i.parentElement), s = () => {
60
+ let o = kt(i.parentElement), s = () => {
61
61
  let r = o.clientHeight;
62
62
  if (r === 0 || i.clientWidth === 0 || getComputedStyle(i).visibility === "hidden") return;
63
- 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) / kt) * kt), p = Math.min(e, Math.ceil((u + d + n) / kt) * kt);
63
+ 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) / jt) * jt), p = Math.min(e, Math.ceil((u + d + n) / jt) * jt);
64
64
  a((e) => e.start === f && e.end === p ? e : {
65
65
  start: f,
66
66
  end: p
@@ -76,28 +76,28 @@ var q = /* @__PURE__ */ function(e) {
76
76
  t,
77
77
  n
78
78
  ]);
79
- let o = Math.max(0, Math.floor((e - 1) / kt) * kt), s = Math.min(i.start, o);
79
+ let o = Math.max(0, Math.floor((e - 1) / jt) * jt), s = Math.min(i.start, o);
80
80
  return {
81
81
  containerRef: r,
82
82
  startRow: s,
83
- endRow: Math.min(e, Math.max(i.end, s + kt))
83
+ endRow: Math.min(e, Math.max(i.end, s + jt))
84
84
  };
85
- }, Mt = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
86
- let r = F(null), [i, a] = I(() => {
87
- let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= S ? 60 : 0)), i = Et((n ? r : Math.min(Tt, r)) - 64), a = Math.ceil(e / i);
85
+ }, Pt = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
86
+ let r = I(null), [i, a] = L(() => {
87
+ let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= S ? 60 : 0)), i = Ot((n ? r : Math.min(Dt, r)) - 64), a = Math.ceil(e / i);
88
88
  return {
89
89
  startRow: 0,
90
90
  endRow: Math.min(a, 12),
91
91
  columnCount: i
92
92
  };
93
93
  });
94
- N(() => {
94
+ P(() => {
95
95
  let n = r.current;
96
96
  if (!n) return;
97
- let i = Dt(n.parentElement), o = () => {
97
+ let i = kt(n.parentElement), o = () => {
98
98
  let r = n.clientWidth, o = i.clientHeight;
99
99
  if (r === 0 || o === 0) return;
100
- let s = n.getBoundingClientRect(), c = i.getBoundingClientRect(), l = Et(r), u = Math.ceil(e / l), d = Math.max(0, c.top - s.top), f = Math.max(0, Math.floor(d / 268) - t), p = Math.min(u, f + Math.ceil(o / 268) + 2 * t);
100
+ let s = n.getBoundingClientRect(), c = i.getBoundingClientRect(), l = Ot(r), u = Math.ceil(e / l), d = Math.max(0, c.top - s.top), f = Math.max(0, Math.floor(d / 268) - t), p = Math.min(u, f + Math.ceil(o / 268) + 2 * t);
101
101
  a((e) => e.startRow === f && e.endRow === p && e.columnCount === l ? e : {
102
102
  startRow: f,
103
103
  endRow: p,
@@ -119,7 +119,7 @@ var q = /* @__PURE__ */ function(e) {
119
119
  rowCount: o,
120
120
  totalHeight: o * 268
121
121
  };
122
- }, Nt = {
122
+ }, Ft = {
123
123
  skeletonColor: "var(--cg-skeleton-color, var(--bg-control-disable-primary, #dce0e8))",
124
124
  card: "_card_18c2b_2",
125
125
  emptyStarHidden: "_emptyStarHidden_18c2b_2",
@@ -129,28 +129,28 @@ var q = /* @__PURE__ */ function(e) {
129
129
  selectedCard: "_selectedCard_18c2b_37",
130
130
  checkIcon: "_checkIcon_18c2b_42",
131
131
  footer: "_footer_18c2b_46"
132
- }, Pt = {
132
+ }, Q = {
133
133
  name: "_name_188yo_1",
134
134
  lastUsed: "_lastUsed_188yo_5",
135
135
  version: "_version_188yo_9"
136
- }, Ft = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, styles: c, lastUsedTrailing: l, iconClassName: u, iconOverlay: d }) => {
137
- let f = c?.colors, p = c?.typography ?? {}, m = a === Z.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = re({
136
+ }, It = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, styles: c, lastUsedTrailing: l, iconClassName: u, iconOverlay: d }) => {
137
+ let f = c?.colors, p = c?.typography ?? {}, m = a === xt.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = j({
138
138
  "--ai-name-text": f?.nameColor,
139
139
  "--ai-last-used-text": f?.lastUsedColor,
140
140
  "--ai-version-text": f?.versionColor
141
141
  });
142
142
  return /* @__PURE__ */ K("div", {
143
- className: j("flex min-w-0 items-start gap-3", s),
143
+ className: M("flex min-w-0 items-start gap-3", s),
144
144
  style: _,
145
145
  children: [/* @__PURE__ */ K("div", {
146
- className: j("relative flex-shrink-0", h, u),
146
+ className: M("relative flex-shrink-0", h, u),
147
147
  children: [/* @__PURE__ */ G("div", {
148
148
  className: "size-full overflow-hidden rounded-[inherit]",
149
149
  children: /* @__PURE__ */ G(C, {
150
150
  src: e ?? void 0,
151
151
  size: g,
152
152
  initialsName: n,
153
- styles: { badgeClassName: j(m ? "rounded-[14px]" : "rounded-[12px]") }
153
+ styles: { badgeClassName: M(m ? "rounded-[14px]" : "rounded-[12px]") }
154
154
  })
155
155
  }), d]
156
156
  }), /* @__PURE__ */ K("div", {
@@ -167,68 +167,68 @@ var q = /* @__PURE__ */ function(e) {
167
167
  text: n,
168
168
  query: o
169
169
  }) : n,
170
- className: j("min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text", Pt.name)
170
+ className: M("min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text", Q.name)
171
171
  }), r && /* @__PURE__ */ G(_e, {
172
172
  text: r,
173
- className: j("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text", Pt.version)
173
+ className: M("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text", Q.version)
174
174
  })]
175
175
  }), m && i != null && /* @__PURE__ */ K("div", {
176
176
  className: "flex items-center gap-2",
177
177
  children: [/* @__PURE__ */ G("span", {
178
- className: j("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", Pt.lastUsed),
178
+ className: M("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", Q.lastUsed),
179
179
  children: i
180
180
  }), l]
181
181
  })]
182
182
  })]
183
183
  })]
184
184
  });
185
- }, It = { icon: "_icon_a0p4u_1" }, Lt = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || d(e) == null ? null : /* @__PURE__ */ G(Re, {
185
+ }, Lt = { icon: "_icon_a0p4u_1" }, Rt = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || d(e) == null ? null : /* @__PURE__ */ G(Re, {
186
186
  tooltip: t,
187
187
  asChild: !0,
188
188
  children: /* @__PURE__ */ G("span", {
189
189
  role: "img",
190
190
  "aria-label": t,
191
- style: re({
191
+ style: j({
192
192
  "--cat-cred-badge-halo": r?.halo,
193
193
  "--cat-cred-badge-icon": r?.icon
194
194
  }),
195
- className: j("absolute -bottom-1 -end-1 shrink-0", n),
195
+ className: M("absolute -bottom-1 -end-1 shrink-0", n),
196
196
  children: /* @__PURE__ */ G(Be, {
197
- size: R.SM,
198
- className: It.icon,
197
+ size: z.SM,
198
+ className: Lt.icon,
199
199
  "aria-hidden": !0
200
200
  })
201
201
  })
202
- }), Rt = {
202
+ }), zt = {
203
203
  starFilledIcon: "_starFilledIcon_po6zj_1",
204
204
  starPop: "_starPop_po6zj_1"
205
- }, zt = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ G(Le, {
205
+ }, Bt = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ G(Le, {
206
206
  size: n,
207
- style: re({ "--cat-star-filled": a }),
207
+ style: j({ "--cat-star-filled": a }),
208
208
  className: i,
209
209
  icon: e ? /* @__PURE__ */ G(st, {
210
- size: R.SM,
211
- className: Rt.starFilledIcon
212
- }) : /* @__PURE__ */ G(H, {
213
- size: R.SM,
214
- stroke: z
210
+ size: z.SM,
211
+ className: zt.starFilledIcon
212
+ }) : /* @__PURE__ */ G(ot, {
213
+ size: z.SM,
214
+ stroke: B
215
215
  }),
216
216
  "aria-label": r,
217
217
  onClick: t
218
- }), Bt = { tag: "_tag_12518_1" }, Vt = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ G("div", {
219
- style: re({
218
+ }), Vt = { tag: "_tag_12518_1" }, Ht = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ G("div", {
219
+ style: j({
220
220
  "--cat-card-tag-bg": r?.background,
221
221
  "--cat-card-tag-text": r?.text,
222
222
  "--cat-card-tag-border": r?.border
223
223
  }),
224
- className: j("flex h-6 w-fit items-center justify-center whitespace-nowrap rounded-md border px-2", Bt.tag, n, t),
224
+ className: M("flex h-6 w-fit items-center justify-center whitespace-nowrap rounded-md border px-2", Vt.tag, n, t),
225
225
  children: e
226
- }), Ht = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ G(Vt, {
226
+ }), Ut = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ G(Ht, {
227
227
  label: e,
228
228
  badgeClassName: t,
229
229
  colors: n
230
- }), Ut = 8, Wt = ({ topics: e, overflowAriaLabel: t, className: n }) => {
231
- let r = F(null), i = F([]), a = F([]), o = F(null), s = F(Infinity), [c, l] = I(e.length), u = e.join("\0"), d = M(() => {
230
+ }), Wt = 8, Gt = ({ topics: e, overflowAriaLabel: t, className: n }) => {
231
+ let r = I(null), i = I([]), a = I([]), o = I(null), s = I(Infinity), [c, l] = L(e.length), u = e.join("\0"), d = N(() => {
232
232
  let t = r.current;
233
233
  if (!t || e.length === 0) return;
234
234
  let n = t.clientWidth;
@@ -239,19 +239,19 @@ var q = /* @__PURE__ */ function(e) {
239
239
  let u = o.current?.offsetWidth ?? 0, d = 0, f = 0;
240
240
  for (let t = 0; t < e.length; t++) {
241
241
  let r = e.length - (t + 1) > 0;
242
- if (d + (t > 0 ? Ut : 0) + c[t] + (r ? Ut + u : 0) > n) break;
243
- d += (t > 0 ? Ut : 0) + c[t], f = t + 1;
242
+ if (d + (t > 0 ? Wt : 0) + c[t] + (r ? Wt + u : 0) > n) break;
243
+ d += (t > 0 ? Wt : 0) + c[t], f = t + 1;
244
244
  }
245
245
  l(Math.min(f, s.current));
246
246
  }, [e.length]);
247
- if (ce(() => {
247
+ if (se(() => {
248
248
  a.current = [], s.current = Infinity, l(e.length);
249
- }, [u]), ce(() => {
249
+ }, [u]), se(() => {
250
250
  d();
251
- }), ce(() => {
251
+ }), se(() => {
252
252
  let e = r.current;
253
253
  !e || c === 0 || e.scrollWidth <= e.clientWidth || (s.current = c - 1, l(s.current));
254
- }, [c]), N(() => {
254
+ }, [c]), P(() => {
255
255
  let e = r.current;
256
256
  if (!e) return;
257
257
  let t = new ResizeObserver(() => {
@@ -260,50 +260,50 @@ var q = /* @__PURE__ */ function(e) {
260
260
  return t.observe(e), () => t.disconnect();
261
261
  }, [d]), e.length === 0) return /* @__PURE__ */ G("div", {
262
262
  ref: r,
263
- className: j("relative flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n)
263
+ className: M("relative flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n)
264
264
  });
265
265
  let f = e.length - c;
266
266
  return /* @__PURE__ */ K("div", {
267
267
  ref: r,
268
- className: j("flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n),
268
+ className: M("flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n),
269
269
  children: [
270
270
  e.slice(0, c).map((e, t) => /* @__PURE__ */ G("div", {
271
271
  ref: (e) => {
272
272
  i.current[t] = e;
273
273
  },
274
- children: /* @__PURE__ */ G(Ht, { label: e })
274
+ children: /* @__PURE__ */ G(Ut, { label: e })
275
275
  }, e)),
276
276
  f > 0 && /* @__PURE__ */ G(Re, {
277
277
  tooltip: e.slice(c).join(", "),
278
278
  children: /* @__PURE__ */ G("span", {
279
279
  "aria-label": t?.(f) ?? `and ${f} more topics`,
280
- children: /* @__PURE__ */ G(Ht, { label: `+${f}` })
280
+ children: /* @__PURE__ */ G(Ut, { label: `+${f}` })
281
281
  })
282
282
  }),
283
283
  /* @__PURE__ */ G("div", {
284
284
  ref: o,
285
285
  "aria-hidden": !0,
286
286
  className: "invisible absolute start-0 top-0",
287
- children: /* @__PURE__ */ G(Ht, { label: `+${e.length}` })
287
+ children: /* @__PURE__ */ G(Ut, { label: `+${e.length}` })
288
288
  })
289
289
  ]
290
290
  });
291
- }, Gt = { img: () => null }, Kt = (e) => e.target instanceof Element && e.target.closest("a") !== null, qt = ({ 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 }) => {
292
- let [m, h] = I(r);
293
- N(() => {
291
+ }, Kt = { img: () => null }, qt = (e) => e.target instanceof Element && e.target.closest("a") !== null, Jt = ({ 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 }) => {
292
+ let [m, h] = L(r);
293
+ P(() => {
294
294
  h(r);
295
295
  }, [e.id, r]);
296
- 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 = re({
296
+ let g = d?.typography?.descriptionClassName ?? "dial-small-paragraph-text", _ = d?.typography?.featuredChipClassName, v = d?.typography?.folderLabelClassName ?? "dial-tiny-text", y = d?.typography?.folderLeafClassName ?? "dial-tiny-semi-text", b = j({
297
297
  "--cg-description-text": d?.colors?.textSecondary,
298
298
  "--cg-selected-border": d?.colors?.selectedBorder,
299
299
  "--cg-selected-bg": d?.colors?.selectedBackground,
300
300
  "--cg-check-icon": d?.colors?.checkIcon,
301
301
  "--cg-footer-border": d?.colors?.footerBorder
302
302
  }), x = !p && e.isFeatured === !0, S = !p && a?.(e) !== !1, C = !p || e.folder.length > 0, w = n ? (t) => {
303
- Kt(t) || n(e);
304
- } : void 0, T = M((t) => {
305
- !n || Kt(t) || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e));
306
- }, [n, e]), D = M((t) => {
303
+ qt(t) || n(e);
304
+ } : void 0, T = N((t) => {
305
+ !n || qt(t) || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e));
306
+ }, [n, e]), D = N((t) => {
307
307
  t.stopPropagation();
308
308
  let n = !m;
309
309
  h(n), i?.(e.id, n);
@@ -321,7 +321,7 @@ var q = /* @__PURE__ */ function(e) {
321
321
  } : {},
322
322
  "aria-label": e.name,
323
323
  style: b,
324
- className: j("box-border cursor-pointer gap-3", Nt.card, x ? Nt.featuredCard : void 0, l ? Nt.selectedCard : void 0, u, Ct.card),
324
+ className: M("box-border cursor-pointer gap-3", Ft.card, x ? Ft.featuredCard : void 0, l ? Ft.selectedCard : void 0, u, Z.card),
325
325
  children: [
326
326
  x && /* @__PURE__ */ G("div", {
327
327
  className: "absolute end-[22px] top-0 -translate-y-1/2",
@@ -333,26 +333,26 @@ var q = /* @__PURE__ */ function(e) {
333
333
  })
334
334
  }),
335
335
  l && /* @__PURE__ */ G(Ue, {
336
- size: R.SM,
337
- className: j("absolute end-3 top-3 shrink-0", Nt.checkIcon),
336
+ size: z.SM,
337
+ className: M("absolute end-3 top-3 shrink-0", Ft.checkIcon),
338
338
  "aria-hidden": !0,
339
- stroke: z
339
+ stroke: B
340
340
  }),
341
- /* @__PURE__ */ G(Ft, {
341
+ /* @__PURE__ */ G(It, {
342
342
  icon: e.iconUrl,
343
343
  type: e.type,
344
344
  name: e.name,
345
345
  version: e.version,
346
- size: Z.SM,
346
+ size: xt.SM,
347
347
  query: t,
348
- iconClassName: Nt.cardIcon,
349
- iconOverlay: /* @__PURE__ */ G(Lt, {
348
+ iconClassName: Ft.cardIcon,
349
+ iconOverlay: /* @__PURE__ */ G(Rt, {
350
350
  credentials: e.credentials,
351
351
  loggedOutLabel: f
352
352
  })
353
353
  }),
354
354
  /* @__PURE__ */ G("div", {
355
- className: j("line-clamp-2 min-h-[2lh] break-words", Nt.description),
355
+ className: M("line-clamp-2 min-h-[2lh] break-words", Ft.description),
356
356
  children: e.description && /* @__PURE__ */ G(k, {
357
357
  content: e.description,
358
358
  classNames: {
@@ -366,15 +366,15 @@ var q = /* @__PURE__ */ function(e) {
366
366
  h5: g,
367
367
  h6: g
368
368
  },
369
- components: Gt
369
+ components: Kt
370
370
  })
371
371
  }),
372
372
  /* @__PURE__ */ G("div", {
373
373
  className: "mt-auto flex items-center gap-2",
374
- children: /* @__PURE__ */ G(Wt, { topics: e.topics })
374
+ children: /* @__PURE__ */ G(Gt, { topics: e.topics })
375
375
  }),
376
376
  C && /* @__PURE__ */ G("div", {
377
- className: j("pt-3", !p && j("border-t", Nt.footer)),
377
+ className: M("pt-3", !p && M("border-t", Ft.footer)),
378
378
  children: /* @__PURE__ */ K("div", {
379
379
  className: "flex items-center gap-2",
380
380
  children: [/* @__PURE__ */ G("div", {
@@ -384,18 +384,18 @@ var q = /* @__PURE__ */ function(e) {
384
384
  labelClassName: v,
385
385
  leafClassName: y
386
386
  })
387
- }), S && /* @__PURE__ */ G(zt, {
387
+ }), S && /* @__PURE__ */ G(Bt, {
388
388
  isStarred: m,
389
389
  size: ge.Small,
390
390
  onClick: D,
391
391
  ariaLabel: m ? c : s,
392
- className: j(Nt.starBtn, !m && Nt.emptyStarHidden)
392
+ className: M(Ft.starBtn, !m && Ft.emptyStarHidden)
393
393
  })]
394
394
  })
395
395
  })
396
396
  ]
397
397
  });
398
- }, Jt = ae(({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, isFavoriteVisible: a, onItemClick: o, featuredLabel: s, addToFavoritesAriaLabel: c, removeFromFavoritesAriaLabel: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f, featuredChipStyle: p }) => {
398
+ }, Yt = ie(({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, isFavoriteVisible: a, onItemClick: o, featuredLabel: s, addToFavoritesAriaLabel: c, removeFromFavoritesAriaLabel: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f, featuredChipStyle: p }) => {
399
399
  let m = e * n, h = t.slice(m, m + n);
400
400
  return /* @__PURE__ */ G("div", {
401
401
  style: {
@@ -407,7 +407,7 @@ var q = /* @__PURE__ */ function(e) {
407
407
  let n = h[t];
408
408
  return /* @__PURE__ */ G("div", {
409
409
  className: "h-full min-w-0 flex-1",
410
- children: n && /* @__PURE__ */ G(qt, {
410
+ children: n && /* @__PURE__ */ G(Jt, {
411
411
  item: n,
412
412
  query: r,
413
413
  initialIsStarred: n.isStarred,
@@ -426,8 +426,8 @@ var q = /* @__PURE__ */ function(e) {
426
426
  }, n?.id ?? `spacer-${t}`);
427
427
  })
428
428
  });
429
- }), Yt = ae(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = Nt.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1, featuredChipStyle: f }) => {
430
- let p = a?.noResultsTitle ?? "No results", m = a?.featuredLabel ?? "Featured", h = a?.addToFavoritesAriaLabel ?? "Add to favorites", g = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", _ = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", { containerRef: v, startRow: y, endRow: b, columnCount: x, totalHeight: S } = Mt(e.length, { isFullWidth: d }), C = P(() => ({
429
+ }), Xt = ie(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = Ft.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1, featuredChipStyle: f }) => {
430
+ let p = a?.noResultsTitle ?? "No results", m = a?.featuredLabel ?? "Featured", h = a?.addToFavoritesAriaLabel ?? "Add to favorites", g = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", _ = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", { containerRef: v, startRow: y, endRow: b, columnCount: x, totalHeight: S } = Pt(e.length, { isFullWidth: d }), C = F(() => ({
431
431
  items: e,
432
432
  columnCount: x,
433
433
  query: t,
@@ -460,10 +460,10 @@ var q = /* @__PURE__ */ function(e) {
460
460
  className: "grid gap-5 p-5",
461
461
  style: {
462
462
  gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
463
- ...re({ "--cg-skeleton-card-bg": l })
463
+ ...j({ "--cg-skeleton-card-bg": l })
464
464
  },
465
465
  children: Array.from({ length: x * 3 }, (e, t) => /* @__PURE__ */ G("div", {
466
- className: j("rounded-md border p-4", Nt.skeletonCard),
466
+ className: M("rounded-md border p-4", Ft.skeletonCard),
467
467
  style: { height: 248 },
468
468
  children: /* @__PURE__ */ G(Ne, {
469
469
  avatar: {
@@ -485,26 +485,26 @@ var q = /* @__PURE__ */ function(e) {
485
485
  style: { height: S },
486
486
  children: Array.from({ length: b - y }, (e, t) => {
487
487
  let n = y + t;
488
- return /* @__PURE__ */ G(Jt, {
488
+ return /* @__PURE__ */ G(Yt, {
489
489
  rowIndex: n,
490
490
  ...C
491
491
  }, n);
492
492
  })
493
493
  });
494
- }), Xt = (e) => e.reduce((e, t) => t.type === xt.File ? e + 1 : e + Xt(t.items), 0), Zt = (e) => {
494
+ }), Zt = (e) => e.reduce((e, t) => t.type === X.File ? e + 1 : e + Zt(t.items), 0), Qt = (e) => {
495
495
  let t = /* @__PURE__ */ new Set(), n = (e) => {
496
- for (let r of e) r.type === xt.Folder && (t.add(r.id), n(r.items));
496
+ for (let r of e) r.type === X.Folder && (t.add(r.id), n(r.items));
497
497
  };
498
498
  return n(e), t;
499
- }, Qt = (e, t) => {
499
+ }, $t = (e, t) => {
500
500
  if (t != null) for (let n of e) {
501
501
  if (n.id === t) return n.name;
502
- if (n.type === xt.Folder) {
503
- let e = Qt(n.items, t);
502
+ if (n.type === X.Folder) {
503
+ let e = $t(n.items, t);
504
504
  if (e != null) return e;
505
505
  }
506
506
  }
507
- }, $t = {
507
+ }, en = {
508
508
  sectionHeading: "_sectionHeading_jnq93_1",
509
509
  rowAlt: "_rowAlt_jnq93_5",
510
510
  label: "_label_jnq93_9",
@@ -512,21 +512,21 @@ var q = /* @__PURE__ */ function(e) {
512
512
  valueTrue: "_valueTrue_jnq93_17",
513
513
  valueFalse: "_valueFalse_jnq93_21",
514
514
  valueText: "_valueText_jnq93_25"
515
- }, en = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(qe, {
516
- size: R.MD,
517
- className: j(r, $t.checkIcon)
515
+ }, tn = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(qe, {
516
+ size: z.MD,
517
+ className: M(r, en.checkIcon)
518
518
  }), /* @__PURE__ */ G("span", {
519
- className: j(n, $t.valueTrue),
519
+ className: M(n, en.valueTrue),
520
520
  children: i
521
521
  })] }) : e === !1 ? /* @__PURE__ */ G("span", {
522
- className: j(t, $t.valueFalse),
522
+ className: M(t, en.valueFalse),
523
523
  children: a
524
524
  }) : /* @__PURE__ */ G("span", {
525
- className: j("min-w-0 break-words", t, $t.valueText),
525
+ className: M("min-w-0 break-words", t, en.valueText),
526
526
  children: e
527
- }), tn = ({ sectionLabel: e = "Section", values: t, labelClassName: n = "dial-small-semi-text", valueClassName: r = "dial-small-text", valueTrueClassName: i = "dial-small-semi-text", checkIconClassName: a, sectionClassName: o = "dial-caption-text", yesLabel: s = "Yes", noLabel: c = "No", colors: l }) => /* @__PURE__ */ G("div", {
527
+ }), nn = ({ sectionLabel: e = "Section", values: t, labelClassName: n = "dial-small-semi-text", valueClassName: r = "dial-small-text", valueTrueClassName: i = "dial-small-semi-text", checkIconClassName: a, sectionClassName: o = "dial-caption-text", yesLabel: s = "Yes", noLabel: c = "No", colors: l }) => /* @__PURE__ */ G("div", {
528
528
  className: "flex flex-col",
529
- style: re({
529
+ style: j({
530
530
  "--tv-section-heading": l?.sectionHeading,
531
531
  "--tv-row-alt-bg": l?.rowAlt,
532
532
  "--tv-label": l?.label,
@@ -536,18 +536,18 @@ var q = /* @__PURE__ */ function(e) {
536
536
  "--tv-value-text": l?.valueText
537
537
  }),
538
538
  children: t != null && t.length > 0 && /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("p", {
539
- className: j("mb-3 mt-0", o, $t.sectionHeading),
539
+ className: M("mb-3 mt-0", o, en.sectionHeading),
540
540
  children: e
541
541
  }), /* @__PURE__ */ G("ul", {
542
542
  className: "m-0 list-none p-0",
543
543
  children: t.map((e, t) => /* @__PURE__ */ K("li", {
544
- className: j("flex items-center rounded px-3 py-2", t % 2 == 0 ? $t.rowAlt : void 0),
544
+ className: M("flex items-center rounded px-3 py-2", t % 2 == 0 ? en.rowAlt : void 0),
545
545
  children: [/* @__PURE__ */ G("span", {
546
- className: j(n, $t.label, "w-2/5 shrink-0"),
546
+ className: M(n, en.label, "w-2/5 shrink-0"),
547
547
  children: e.label
548
548
  }), /* @__PURE__ */ G("div", {
549
549
  className: "flex w-3/5 min-w-0 items-center gap-1",
550
- children: /* @__PURE__ */ G(en, {
550
+ children: /* @__PURE__ */ G(tn, {
551
551
  value: e.value,
552
552
  valueClassName: r,
553
553
  valueTrueClassName: i,
@@ -558,30 +558,30 @@ var q = /* @__PURE__ */ function(e) {
558
558
  })]
559
559
  }, e.label))
560
560
  })] })
561
- }), nn = { sectionHeading: "_sectionHeading_148lj_1" }, rn = {
562
- [q.Python]: "Python",
563
- [q.Curl]: "cURL",
564
- [q.JavaScript]: "JavaScript"
565
- }, an = {
566
- [q.Python]: "python",
567
- [q.Curl]: "bash",
568
- [q.JavaScript]: "javascript"
569
- }, on = ({ 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" }) => {
570
- let [s, c] = I(e[0]?.language ?? q.Python);
571
- N(() => {
572
- c(e[0]?.language ?? q.Python);
561
+ }), rn = { sectionHeading: "_sectionHeading_148lj_1" }, an = {
562
+ [yt.Python]: "Python",
563
+ [yt.Curl]: "cURL",
564
+ [yt.JavaScript]: "JavaScript"
565
+ }, on = {
566
+ [yt.Python]: "python",
567
+ [yt.Curl]: "bash",
568
+ [yt.JavaScript]: "javascript"
569
+ }, sn = ({ 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" }) => {
570
+ let [s, c] = L(e[0]?.language ?? yt.Python);
571
+ P(() => {
572
+ c(e[0]?.language ?? yt.Python);
573
573
  }, [e]);
574
- let l = P(() => e.map((e) => ({
574
+ let l = F(() => e.map((e) => ({
575
575
  key: e.language,
576
- label: rn[e.language] ?? e.language,
576
+ label: an[e.language] ?? e.language,
577
577
  onClick: () => c(e.language)
578
578
  })), [e]), u = e.find((e) => e.language === s)?.code ?? "", d = e.length > 1;
579
579
  return /* @__PURE__ */ K("section", { children: [t != null && /* @__PURE__ */ G("p", {
580
- className: j("mb-3 mt-0", o, nn.sectionHeading),
580
+ className: M("mb-3 mt-0", o, rn.sectionHeading),
581
581
  children: t
582
582
  }), /* @__PURE__ */ G(O, {
583
- language: an[s] ?? s,
584
- title: rn[s] ?? s,
583
+ language: on[s] ?? s,
584
+ title: an[s] ?? s,
585
585
  value: u,
586
586
  copyLabel: n,
587
587
  copiedLabel: r,
@@ -596,8 +596,8 @@ var q = /* @__PURE__ */ function(e) {
596
596
  selectedKey: s
597
597
  }) : void 0
598
598
  })] });
599
- }, sn = ({ 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" }) => {
600
- let [h, g] = I(0), _ = P(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = P(() => _.map((e, t) => ({
599
+ }, cn = ({ 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" }) => {
600
+ let [h, g] = L(0), _ = F(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = F(() => _.map((e, t) => ({
601
601
  key: e.url,
602
602
  label: e.label,
603
603
  onClick: () => g(t)
@@ -610,7 +610,7 @@ var q = /* @__PURE__ */ function(e) {
610
610
  return /* @__PURE__ */ K("div", {
611
611
  className: "flex flex-col gap-6",
612
612
  children: [
613
- C && /* @__PURE__ */ G(tn, {
613
+ C && /* @__PURE__ */ G(nn, {
614
614
  sectionLabel: t,
615
615
  values: x,
616
616
  labelClassName: u,
@@ -628,7 +628,7 @@ var q = /* @__PURE__ */ function(e) {
628
628
  }),
629
629
  v && /* @__PURE__ */ K("section", { children: [
630
630
  /* @__PURE__ */ G("p", {
631
- className: j("mb-3 mt-0", m, nn.sectionHeading),
631
+ className: M("mb-3 mt-0", m, rn.sectionHeading),
632
632
  children: n
633
633
  }),
634
634
  y != null && /* @__PURE__ */ G(O, {
@@ -649,7 +649,7 @@ var q = /* @__PURE__ */ function(e) {
649
649
  }, h),
650
650
  y?.snippets != null && y.snippets.length > 0 && /* @__PURE__ */ G("div", {
651
651
  className: "mt-4",
652
- children: /* @__PURE__ */ G(on, {
652
+ children: /* @__PURE__ */ G(sn, {
653
653
  snippets: y.snippets,
654
654
  copyAriaLabel: c,
655
655
  copiedStatusLabel: l,
@@ -659,7 +659,7 @@ var q = /* @__PURE__ */ function(e) {
659
659
  }, h)
660
660
  })
661
661
  ] }),
662
- !v && T && /* @__PURE__ */ G(on, {
662
+ !v && T && /* @__PURE__ */ G(sn, {
663
663
  snippets: e.snippets ?? [],
664
664
  sectionLabel: r,
665
665
  copyAriaLabel: c,
@@ -669,7 +669,7 @@ var q = /* @__PURE__ */ function(e) {
669
669
  sectionClassName: m
670
670
  }),
671
671
  E && /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("p", {
672
- className: j("mb-3 mt-0", m, nn.sectionHeading),
672
+ className: M("mb-3 mt-0", m, rn.sectionHeading),
673
673
  children: o
674
674
  }), /* @__PURE__ */ G(O, {
675
675
  language: "bash",
@@ -680,7 +680,7 @@ var q = /* @__PURE__ */ function(e) {
680
680
  hideDownload: !0
681
681
  })] }),
682
682
  D && /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("p", {
683
- className: j("mb-3 mt-0", m, nn.sectionHeading),
683
+ className: M("mb-3 mt-0", m, rn.sectionHeading),
684
684
  children: s
685
685
  }), /* @__PURE__ */ G(O, {
686
686
  language: "json",
@@ -692,21 +692,21 @@ var q = /* @__PURE__ */ function(e) {
692
692
  })] })
693
693
  ]
694
694
  });
695
- }, cn = {
695
+ }, ln = {
696
696
  message: "_message_13mok_1",
697
697
  consequences: "_consequences_13mok_5",
698
698
  footer: "_footer_13mok_9"
699
- }, ln = ({ confirmLabel: e, cancelLabel: t, variant: n = X.Info, isLoading: r = !1, isConfirmDisabled: i = !1, loadingStatusLabel: a, onConfirm: o, onCancel: s }) => {
700
- let c = n === X.Danger, l = (() => {
701
- if (r) return /* @__PURE__ */ G(Fe, { size: R.SM });
702
- if (c) return /* @__PURE__ */ G(U, {
703
- size: R.MD,
699
+ }, un = ({ confirmLabel: e, cancelLabel: t, variant: n = bt.Info, isLoading: r = !1, isConfirmDisabled: i = !1, loadingStatusLabel: a, onConfirm: o, onCancel: s }) => {
700
+ let c = n === bt.Danger, l = (() => {
701
+ if (r) return /* @__PURE__ */ G(Fe, { size: z.SM });
702
+ if (c) return /* @__PURE__ */ G(lt, {
703
+ size: z.MD,
704
704
  "aria-hidden": !0,
705
- stroke: z
705
+ stroke: B
706
706
  });
707
707
  })(), u = c ? me : De;
708
708
  return /* @__PURE__ */ K("div", {
709
- className: j("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start", cn.footer),
709
+ className: M("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start", ln.footer),
710
710
  children: [
711
711
  /* @__PURE__ */ G(ye, {
712
712
  label: t,
@@ -727,51 +727,51 @@ var q = /* @__PURE__ */ function(e) {
727
727
  })
728
728
  ]
729
729
  });
730
- }, un = {
730
+ }, dn = {
731
731
  info: "_info_lklha_1",
732
732
  danger: "_danger_lklha_5"
733
- }, dn = ({ item: e, variant: t = X.Info, iconSize: n = 40 }) => /* @__PURE__ */ G(te, {
733
+ }, fn = ({ item: e, variant: t = bt.Info, iconSize: n = 40 }) => /* @__PURE__ */ G(te, {
734
734
  item: e,
735
735
  iconSize: n,
736
736
  hasVersionTag: !1,
737
- className: t === X.Danger ? un.danger : un.info
738
- }), fn = ({ item: e, message: t, consequences: n, variant: r = X.Info, messageClassName: i = "dial-small-text", children: a }) => /* @__PURE__ */ K("div", {
737
+ className: t === bt.Danger ? dn.danger : dn.info
738
+ }), pn = ({ item: e, message: t, consequences: n, variant: r = bt.Info, messageClassName: i = "dial-small-text", children: a }) => /* @__PURE__ */ K("div", {
739
739
  className: "flex flex-col gap-4 px-6 py-4",
740
740
  children: [
741
- /* @__PURE__ */ G(dn, {
741
+ /* @__PURE__ */ G(fn, {
742
742
  item: e,
743
743
  variant: r
744
744
  }),
745
745
  /* @__PURE__ */ G("p", {
746
- className: j(i, "break-words", cn.message),
746
+ className: M(i, "break-words", ln.message),
747
747
  children: t
748
748
  }),
749
749
  n != null && n.length > 0 && /* @__PURE__ */ G("ul", {
750
- className: j("flex list-disc flex-col gap-2 ps-5", i, cn.consequences),
750
+ className: M("flex list-disc flex-col gap-2 ps-5", i, ln.consequences),
751
751
  children: n.map((e) => /* @__PURE__ */ G("li", { children: e }, e))
752
752
  }),
753
753
  a
754
754
  ]
755
- }), pn = {
755
+ }), mn = {
756
756
  sunkenBox: "_sunkenBox_1lqi3_1",
757
757
  raisedBox: "_raisedBox_1lqi3_5",
758
758
  activeIcon: "_activeIcon_1lqi3_9"
759
- }, mn = /* @__PURE__ */ function(e) {
759
+ }, hn = /* @__PURE__ */ function(e) {
760
760
  return e.Sunken = "sunken", e.Raised = "raised", e;
761
- }({}), hn = {
762
- sunken: pn.sunkenBox,
763
- raised: pn.raisedBox
764
- }, gn = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */ K("span", {
761
+ }({}), gn = {
762
+ sunken: mn.sunkenBox,
763
+ raised: mn.raisedBox
764
+ }, _n = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */ K("span", {
765
765
  className: "relative inline-flex shrink-0",
766
766
  children: [
767
767
  /* @__PURE__ */ G("span", {
768
- className: j("flex size-8 items-center justify-center rounded-lg", hn[n]),
768
+ className: M("flex size-8 items-center justify-center rounded-lg", gn[n]),
769
769
  children: e
770
770
  }),
771
771
  t && /* @__PURE__ */ G(qe, {
772
- size: R.MD,
772
+ size: z.MD,
773
773
  "aria-hidden": !0,
774
- className: j("absolute -end-2 -top-2", pn.activeIcon)
774
+ className: M("absolute -end-2 -top-2", mn.activeIcon)
775
775
  }),
776
776
  r != null && /* @__PURE__ */ G("span", {
777
777
  role: "status",
@@ -779,27 +779,27 @@ var q = /* @__PURE__ */ function(e) {
779
779
  children: r
780
780
  })
781
781
  ]
782
- }), _n = {
782
+ }), vn = {
783
783
  card: "_card_tqnz7_1",
784
784
  icon: "_icon_tqnz7_6",
785
785
  title: "_title_tqnz7_10",
786
786
  description: "_description_tqnz7_14"
787
- }, vn = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ K("div", {
787
+ }, yn = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ K("div", {
788
788
  role: "status",
789
789
  "aria-live": "polite",
790
- className: j("flex items-center gap-3 rounded-xl p-3", _n.card),
790
+ className: M("flex items-center gap-3 rounded-xl p-3", vn.card),
791
791
  children: [/* @__PURE__ */ G("span", {
792
- className: j("shrink-0", _n.icon, n != null && "mt-0.5"),
792
+ className: M("shrink-0", vn.icon, n != null && "mt-0.5"),
793
793
  children: e
794
794
  }), /* @__PURE__ */ K("div", {
795
795
  className: "flex min-w-0 flex-1 items-center justify-between gap-2",
796
796
  children: [/* @__PURE__ */ K("div", {
797
797
  className: "flex min-w-0 flex-col gap-1",
798
798
  children: [/* @__PURE__ */ G("span", {
799
- className: j(i, _n.title),
799
+ className: M(i, vn.title),
800
800
  children: t
801
801
  }), n != null && /* @__PURE__ */ G("span", {
802
- className: j(a, _n.description),
802
+ className: M(a, vn.description),
803
803
  children: n
804
804
  })]
805
805
  }), r != null && /* @__PURE__ */ G("div", {
@@ -807,56 +807,56 @@ var q = /* @__PURE__ */ function(e) {
807
807
  children: r
808
808
  })]
809
809
  })]
810
- }), yn = (e) => e === y.ApiKey ? "You are currently using organization API key to access this toolset." : "You are currently using organization credentials to access this toolset.", bn = (e) => e === y.ApiKey ? "Configure your personal API key to have access to your data." : "Login using personal account to have access to your data.", xn = (e) => e === y.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", Sn = (e) => e === y.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", Cn = 20, wn = ({ state: e, authenticationType: t, texts: n }) => {
810
+ }), bn = (e) => e === y.ApiKey ? "You are currently using organization API key to access this toolset." : "You are currently using organization credentials to access this toolset.", xn = (e) => e === y.ApiKey ? "Configure your personal API key to have access to your data." : "Login using personal account to have access to your data.", Sn = (e) => e === y.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", Cn = (e) => e === y.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", wn = 20, Tn = ({ state: e, authenticationType: t, texts: n }) => {
811
811
  let r = /* @__PURE__ */ G(He, {
812
- size: Cn,
812
+ size: wn,
813
813
  "aria-hidden": !0,
814
- stroke: z
814
+ stroke: B
815
815
  });
816
816
  if (e === v.PersonalCredentialsActive) {
817
- let e = (n?.personalCredentialsActiveBannerTitle ?? Sn)(t);
818
- return /* @__PURE__ */ G(vn, {
819
- icon: /* @__PURE__ */ G(gn, {
820
- icon: /* @__PURE__ */ G(lt, {
821
- size: R.SM,
817
+ let e = (n?.personalCredentialsActiveBannerTitle ?? Cn)(t);
818
+ return /* @__PURE__ */ G(yn, {
819
+ icon: /* @__PURE__ */ G(_n, {
820
+ icon: /* @__PURE__ */ G(ut, {
821
+ size: z.SM,
822
822
  "aria-hidden": !0,
823
- stroke: z
823
+ stroke: B
824
824
  }),
825
825
  isActive: !0,
826
- surface: mn.Raised
826
+ surface: hn.Raised
827
827
  }),
828
828
  title: e
829
829
  });
830
830
  }
831
831
  if (e === v.OrgCredentialsActive) {
832
- let e = (n?.orgCredentialsActiveBannerTitle ?? xn)(t);
833
- return /* @__PURE__ */ G(vn, {
834
- icon: /* @__PURE__ */ G(gn, {
832
+ let e = (n?.orgCredentialsActiveBannerTitle ?? Sn)(t);
833
+ return /* @__PURE__ */ G(yn, {
834
+ icon: /* @__PURE__ */ G(_n, {
835
835
  icon: /* @__PURE__ */ G(He, {
836
- size: R.SM,
836
+ size: z.SM,
837
837
  "aria-hidden": !0,
838
- stroke: z
838
+ stroke: B
839
839
  }),
840
840
  isActive: !0,
841
- surface: mn.Raised
841
+ surface: hn.Raised
842
842
  }),
843
843
  title: e
844
844
  });
845
845
  }
846
- return /* @__PURE__ */ G(vn, {
846
+ return /* @__PURE__ */ G(yn, {
847
847
  icon: r,
848
- title: (n?.orgFallbackBannerTitle ?? yn)(t),
849
- description: (n?.orgFallbackBannerDescription ?? bn)(t)
848
+ title: (n?.orgFallbackBannerTitle ?? bn)(t),
849
+ description: (n?.orgFallbackBannerDescription ?? xn)(t)
850
850
  });
851
- }, Tn = {
851
+ }, En = {
852
852
  surface: "_surface_lyarp_1",
853
853
  description: "_description_lyarp_5",
854
854
  rowDescription: "_rowDescription_lyarp_9",
855
855
  errorText: "_errorText_lyarp_13"
856
- }, En = ({ label: e, description: t, icon: n, status: r, isActive: i, authenticationType: a, apiKeyAddedWhen: s, onLogin: c, onRequestLogout: l, onRequestDeleteApiKey: u, texts: d, labelClassName: f, descriptionClassName: p, errorClassName: m, keyCardTitleClassName: h, keyCardDescriptionClassName: g, deleteActionClassName: _, disabled: v = !1, isPending: b = !1, renderLoginOptions: x, children: S }) => {
857
- let C = se(), [w, T] = I(), [E, D] = I(""), [O, k] = I(!1), [A, ee] = I(!1), te = r === o.SignedIn, ne = M((e) => {
856
+ }, Dn = ({ label: e, description: t, icon: n, status: r, isActive: i, authenticationType: a, apiKeyAddedWhen: s, onLogin: c, onRequestLogout: l, onRequestDeleteApiKey: u, texts: d, labelClassName: f, descriptionClassName: p, errorClassName: m, keyCardTitleClassName: h, keyCardDescriptionClassName: g, deleteActionClassName: _, disabled: v = !1, isPending: b = !1, renderLoginOptions: x, children: S }) => {
857
+ let C = oe(), [w, T] = L(), [E, D] = L(""), [O, k] = L(!1), [A, ee] = L(!1), te = r === o.SignedIn, ne = N((e) => {
858
858
  D(e ?? ""), k(!1), T(void 0);
859
- }, []), re = async () => {
859
+ }, []), j = async () => {
860
860
  if (A || v) return;
861
861
  let e = a === y.ApiKey;
862
862
  if (e && !E.trim()) {
@@ -871,16 +871,16 @@ var q = /* @__PURE__ */ function(e) {
871
871
  } finally {
872
872
  ee(!1);
873
873
  }
874
- }, ie = d?.loginActionLabel ?? "Log in", ae = d?.logoutActionLabel ?? "Log out", oe = d?.addApiKeyActionLabel ?? "Add", N = d?.deleteActionLabel ?? "Delete", ce = d?.credentialsSignedInLabel ?? "Signed in", P = d?.credentialsSignedOutLabel ?? "Signed out", F = d?.addingApiKeyStatusLabel ?? "Adding", L = d?.apiKeyConfiguredMessage ?? "Key has been configured", ue = s == null ? void 0 : (d?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(s);
874
+ }, re = d?.loginActionLabel ?? "Log in", ie = d?.logoutActionLabel ?? "Log out", ae = d?.addApiKeyActionLabel ?? "Add", P = d?.deleteActionLabel ?? "Delete", se = d?.credentialsSignedInLabel ?? "Signed in", F = d?.credentialsSignedOutLabel ?? "Signed out", I = d?.addingApiKeyStatusLabel ?? "Adding", ce = d?.apiKeyConfiguredMessage ?? "Key has been configured", le = s == null ? void 0 : (d?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(s);
875
875
  return /* @__PURE__ */ K("div", {
876
876
  role: "group",
877
877
  "aria-label": e,
878
878
  "aria-busy": A || b,
879
879
  className: "flex min-w-0 items-start gap-3 rounded-xl p-3",
880
- children: [/* @__PURE__ */ G(gn, {
880
+ children: [/* @__PURE__ */ G(_n, {
881
881
  icon: n,
882
882
  isActive: i,
883
- statusLabel: i ? ce : P
883
+ statusLabel: i ? se : F
884
884
  }), /* @__PURE__ */ K("div", {
885
885
  className: "flex min-w-0 flex-1 flex-col gap-1",
886
886
  children: [
@@ -892,32 +892,32 @@ var q = /* @__PURE__ */ function(e) {
892
892
  className: f,
893
893
  children: e
894
894
  }), /* @__PURE__ */ G("span", {
895
- className: j(p, Tn.rowDescription),
895
+ className: M(p, En.rowDescription),
896
896
  children: t
897
897
  })]
898
898
  }), a === y.OAuth && (te ? l && /* @__PURE__ */ G(me, {
899
- appearance: le.Ghost,
900
- label: ae,
899
+ appearance: R.Ghost,
900
+ label: ie,
901
901
  className: "min-h-11 min-w-28 shrink-0 justify-center whitespace-nowrap",
902
902
  onClick: l,
903
903
  disabled: A || v
904
904
  }) : /* @__PURE__ */ G(De, {
905
- label: A ? void 0 : ie,
906
- "aria-label": ie,
905
+ label: A ? void 0 : re,
906
+ "aria-label": re,
907
907
  iconBefore: A ? /* @__PURE__ */ G(Fe, {
908
- size: R.SM,
909
- ariaLabel: ie
908
+ size: z.SM,
909
+ ariaLabel: re
910
910
  }) : void 0,
911
911
  disabled: A || v,
912
912
  className: "min-h-11 min-w-28 shrink-0 justify-center whitespace-nowrap",
913
- onClick: re
913
+ onClick: j
914
914
  }))]
915
915
  }),
916
916
  a === y.ApiKey && !te && /* @__PURE__ */ K("div", {
917
917
  className: "flex animate-fadeIn flex-col gap-1 pt-1",
918
918
  children: [/* @__PURE__ */ K("div", {
919
919
  className: "flex items-end gap-2",
920
- children: [/* @__PURE__ */ G(B, {
920
+ children: [/* @__PURE__ */ G(Ce, {
921
921
  id: C,
922
922
  type: "password",
923
923
  autoComplete: "off",
@@ -928,37 +928,37 @@ var q = /* @__PURE__ */ function(e) {
928
928
  disabled: A || v,
929
929
  containerClassName: "min-w-0 flex-1"
930
930
  }), /* @__PURE__ */ G(De, {
931
- label: A ? void 0 : oe,
932
- "aria-label": A ? F : void 0,
931
+ label: A ? void 0 : ae,
932
+ "aria-label": A ? I : void 0,
933
933
  iconBefore: A ? /* @__PURE__ */ G(Fe, {
934
- size: R.SM,
935
- ariaLabel: F
934
+ size: z.SM,
935
+ ariaLabel: I
936
936
  }) : void 0,
937
937
  className: "min-h-11 shrink-0 whitespace-nowrap",
938
- onClick: re,
938
+ onClick: j,
939
939
  disabled: A || v
940
940
  })]
941
941
  }), O && /* @__PURE__ */ G("span", {
942
942
  role: "alert",
943
- className: j(m, Tn.errorText),
943
+ className: M(m, En.errorText),
944
944
  children: d?.apiKeyRequiredErrorMessage ?? "API key is required."
945
945
  })]
946
946
  }),
947
947
  a === y.ApiKey && te && /* @__PURE__ */ G("div", {
948
948
  className: "animate-fadeIn pt-1",
949
- children: /* @__PURE__ */ G(vn, {
949
+ children: /* @__PURE__ */ G(yn, {
950
950
  icon: /* @__PURE__ */ G(Qe, {
951
- size: R.SM,
951
+ size: z.SM,
952
952
  "aria-hidden": !0,
953
- stroke: z
953
+ stroke: B
954
954
  }),
955
- title: L,
956
- description: ue,
955
+ title: ce,
956
+ description: le,
957
957
  titleClassName: h,
958
958
  descriptionClassName: g,
959
959
  action: u && /* @__PURE__ */ G(we, {
960
- label: N,
961
- className: j("min-h-11", _),
960
+ label: P,
961
+ className: M("min-h-11", _),
962
962
  onClick: u,
963
963
  disabled: A || v
964
964
  })
@@ -967,23 +967,23 @@ var q = /* @__PURE__ */ function(e) {
967
967
  !te && x?.(A || v),
968
968
  w && /* @__PURE__ */ G("p", {
969
969
  role: "alert",
970
- className: j(m, Tn.errorText),
970
+ className: M(m, En.errorText),
971
971
  children: w
972
972
  }),
973
973
  S
974
974
  ]
975
975
  })]
976
976
  });
977
- }, Dn = (e) => e === y.ApiKey ? "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default for toolset access." : "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default.", On = ({ item: e, onLogin: t, onRequestLogout: n, onRequestDeleteApiKey: r, texts: i, detailsStyles: a, deleteActionClassName: s = "text-error" }) => {
977
+ }, On = (e) => e === y.ApiKey ? "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default for toolset access." : "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default.", kn = ({ item: e, onLogin: t, onRequestLogout: n, onRequestDeleteApiKey: r, texts: i, detailsStyles: a, deleteActionClassName: s = "text-error" }) => {
978
978
  let { credentialsDescriptionClassName: c = "dial-body-paragraph-text", credentialsRowLabelClassName: l = "dial-small-semi-text", credentialsRowDescriptionClassName: u = "dial-small-text", credentialsErrorClassName: d = "dial-caption-text", credentialsKeyCardTitleClassName: f = "dial-tiny-semi-text", credentialsKeyCardDescriptionClassName: p = "dial-tiny-text" } = a?.typography ?? {}, m = e.credentials;
979
979
  if (m == null) return null;
980
- let h = (i?.credentialsManagementDescription ?? Dn)(m.authenticationType), g = m.userStatus === o.SignedIn, _ = !g && m.globalStatus === o.SignedIn;
980
+ let h = (i?.credentialsManagementDescription ?? On)(m.authenticationType), g = m.userStatus === o.SignedIn, _ = !g && m.globalStatus === o.SignedIn;
981
981
  return /* @__PURE__ */ K("div", {
982
982
  className: "flex flex-col",
983
983
  children: [/* @__PURE__ */ G("div", {
984
984
  className: "px-6 py-4",
985
985
  children: /* @__PURE__ */ G("div", {
986
- className: j("rounded-xl p-3", Tn.surface),
986
+ className: M("rounded-xl p-3", En.surface),
987
987
  children: /* @__PURE__ */ G(w, {
988
988
  item: e,
989
989
  iconSize: 40,
@@ -993,17 +993,17 @@ var q = /* @__PURE__ */ function(e) {
993
993
  }), /* @__PURE__ */ K("div", {
994
994
  className: "flex flex-col gap-5 px-6 py-4",
995
995
  children: [/* @__PURE__ */ G("span", {
996
- className: j(c, Tn.description),
996
+ className: M(c, En.description),
997
997
  children: h
998
998
  }), /* @__PURE__ */ K("div", {
999
999
  className: "flex flex-col",
1000
- children: [/* @__PURE__ */ G(En, {
1000
+ children: [/* @__PURE__ */ G(Dn, {
1001
1001
  label: i?.personalCredentialsLabel ?? "Personal credentials",
1002
1002
  description: i?.personalCredentialsDescription ?? "These credentials apply only to your account.",
1003
- icon: /* @__PURE__ */ G(lt, {
1004
- size: R.SM,
1003
+ icon: /* @__PURE__ */ G(ut, {
1004
+ size: z.SM,
1005
1005
  "aria-hidden": !0,
1006
- stroke: z
1006
+ stroke: B
1007
1007
  }),
1008
1008
  status: m.userStatus,
1009
1009
  isActive: g,
@@ -1022,13 +1022,13 @@ var q = /* @__PURE__ */ function(e) {
1022
1022
  keyCardTitleClassName: f,
1023
1023
  keyCardDescriptionClassName: p,
1024
1024
  deleteActionClassName: s
1025
- }), /* @__PURE__ */ G(En, {
1025
+ }), /* @__PURE__ */ G(Dn, {
1026
1026
  label: i?.organizationCredentialsLabel ?? "Organization credentials",
1027
1027
  description: i?.organizationCredentialsDescription ?? "Once added, these credentials will grant all users in your organization access to this toolset.",
1028
1028
  icon: /* @__PURE__ */ G(He, {
1029
- size: R.SM,
1029
+ size: z.SM,
1030
1030
  "aria-hidden": !0,
1031
- stroke: z
1031
+ stroke: B
1032
1032
  }),
1033
1033
  status: m.globalStatus,
1034
1034
  isActive: _,
@@ -1051,19 +1051,19 @@ var q = /* @__PURE__ */ function(e) {
1051
1051
  })]
1052
1052
  })]
1053
1053
  });
1054
- }, kn = {
1054
+ }, An = {
1055
1055
  skeletonColor: "var(--cat-details-skeleton, var(--bg-control-disable-primary, #dce0e8))",
1056
1056
  backdrop: "_backdrop_16ka5_2",
1057
1057
  panel: "_panel_16ka5_6",
1058
1058
  divider: "_divider_16ka5_11",
1059
1059
  content: "_content_16ka5_15",
1060
1060
  publishTitle: "_publishTitle_16ka5_20"
1061
- }, An = /* @__PURE__ */ function(e) {
1061
+ }, jn = /* @__PURE__ */ function(e) {
1062
1062
  return e.Idle = "idle", e.Loading = "loading", e.Resolved = "resolved", e.Unknown = "unknown", e;
1063
- }({}), jn = { divider: "_divider_nhloi_1" }, Mn = 16, Nn = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, onLogin: i, onLogout: a, onClose: s, texts: c, deleteActionClassName: l = "text-error" }) => {
1064
- let [u, d] = I(""), [f, p] = I(!1), [m, h] = I(!1), [g, _] = I(!1), v = n === o.SignedIn, y = M((e) => {
1063
+ }({}), Mn = { divider: "_divider_nhloi_1" }, Nn = 16, Pn = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, onLogin: i, onLogout: a, onClose: s, texts: c, deleteActionClassName: l = "text-error" }) => {
1064
+ let [u, d] = L(""), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L(!1), v = n === o.SignedIn, y = N((e) => {
1065
1065
  d(e ?? ""), p(!1);
1066
- }, []), b = M(async () => {
1066
+ }, []), b = N(async () => {
1067
1067
  if (u.trim().length === 0) {
1068
1068
  p(!0);
1069
1069
  return;
@@ -1083,7 +1083,7 @@ var q = /* @__PURE__ */ function(e) {
1083
1083
  u,
1084
1084
  i,
1085
1085
  s
1086
- ]), x = M(async () => {
1086
+ ]), x = N(async () => {
1087
1087
  _(!0);
1088
1088
  try {
1089
1089
  await a?.(e, { level: t }), s();
@@ -1106,12 +1106,12 @@ var q = /* @__PURE__ */ function(e) {
1106
1106
  children: S
1107
1107
  })
1108
1108
  }),
1109
- /* @__PURE__ */ G("div", { className: j("mx-4 h-px", jn.divider) }),
1109
+ /* @__PURE__ */ G("div", { className: M("mx-4 h-px", Mn.divider) }),
1110
1110
  !v && /* @__PURE__ */ K("div", {
1111
1111
  className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
1112
1112
  children: [/* @__PURE__ */ K("div", {
1113
1113
  className: "flex items-end gap-2",
1114
- children: [/* @__PURE__ */ G(B, {
1114
+ children: [/* @__PURE__ */ G(Ce, {
1115
1115
  id: `catalog-item-${e.id}-${t}-api-key`,
1116
1116
  type: "password",
1117
1117
  autoComplete: "current-password",
@@ -1125,7 +1125,7 @@ var q = /* @__PURE__ */ function(e) {
1125
1125
  label: m ? void 0 : C,
1126
1126
  "aria-label": m ? T : void 0,
1127
1127
  iconBefore: m ? /* @__PURE__ */ G(Fe, {
1128
- size: Mn,
1128
+ size: Nn,
1129
1129
  ariaLabel: T
1130
1130
  }) : void 0,
1131
1131
  onClick: b,
@@ -1138,11 +1138,11 @@ var q = /* @__PURE__ */ function(e) {
1138
1138
  }),
1139
1139
  v && /* @__PURE__ */ G("div", {
1140
1140
  className: "animate-fadeIn px-4 py-3.5",
1141
- children: /* @__PURE__ */ G(vn, {
1141
+ children: /* @__PURE__ */ G(yn, {
1142
1142
  icon: /* @__PURE__ */ G(Qe, {
1143
1143
  size: 20,
1144
1144
  "aria-hidden": !0,
1145
- stroke: z
1145
+ stroke: B
1146
1146
  }),
1147
1147
  title: O,
1148
1148
  description: k,
@@ -1150,7 +1150,7 @@ var q = /* @__PURE__ */ function(e) {
1150
1150
  label: g ? void 0 : w,
1151
1151
  "aria-label": g ? E : void 0,
1152
1152
  iconBefore: g ? /* @__PURE__ */ G(Fe, {
1153
- size: Mn,
1153
+ size: Nn,
1154
1154
  ariaLabel: E
1155
1155
  }) : void 0,
1156
1156
  className: l,
@@ -1161,8 +1161,8 @@ var q = /* @__PURE__ */ function(e) {
1161
1161
  })
1162
1162
  ]
1163
1163
  });
1164
- }, Pn = { name: "_name_gfs1p_1" }, Fn = (e) => e.isMyApp === !0, In = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
1165
- let [a, o] = I(!1), s = M(() => {
1164
+ }, Fn = { name: "_name_gfs1p_1" }, In = (e) => e.isMyApp === !0, Ln = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
1165
+ let [a, o] = L(!1), s = N(() => {
1166
1166
  if (n) {
1167
1167
  o((e) => !e);
1168
1168
  return;
@@ -1173,16 +1173,16 @@ var q = /* @__PURE__ */ function(e) {
1173
1173
  t,
1174
1174
  n
1175
1175
  ]);
1176
- if (!Fn(e) || r && !r(e)) return null;
1176
+ if (!In(e) || r && !r(e)) return null;
1177
1177
  let c = /* @__PURE__ */ G(De, {
1178
1178
  label: i,
1179
- iconBefore: /* @__PURE__ */ G(ot, {
1180
- size: R.MD,
1181
- stroke: z
1179
+ iconBefore: /* @__PURE__ */ G(at, {
1180
+ size: z.MD,
1181
+ stroke: B
1182
1182
  }),
1183
1183
  iconAfter: /* @__PURE__ */ G(We, {
1184
- size: R.MD,
1185
- stroke: z
1184
+ size: z.MD,
1185
+ stroke: B
1186
1186
  }),
1187
1187
  onClick: s,
1188
1188
  "aria-haspopup": n ? "menu" : void 0,
@@ -1198,49 +1198,49 @@ var q = /* @__PURE__ */ function(e) {
1198
1198
  renderOverlay: () => n(e, () => o(!1)),
1199
1199
  children: c
1200
1200
  }) : c;
1201
- }, Ln = (e) => e === y.ApiKey ? "Manage API keys" : "Manage credentials", Rn = {
1202
- [vt.LimitReached]: "bg-error text-error",
1203
- [vt.RunningLow]: "bg-warning text-warning"
1204
- }, zn = ({ status: e, label: t }) => /* @__PURE__ */ G("div", {
1205
- className: j("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", Rn[e]),
1201
+ }, Rn = (e) => e === y.ApiKey ? "Manage API keys" : "Manage credentials", zn = {
1202
+ [J.LimitReached]: "bg-error text-error",
1203
+ [J.RunningLow]: "bg-warning text-warning"
1204
+ }, Bn = ({ status: e, label: t }) => /* @__PURE__ */ G("div", {
1205
+ className: M("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", zn[e]),
1206
1206
  children: t
1207
- }), Bn = ({ item: e, onUseInChat: t, isPrimaryActionVisible: r, onShare: i, shareOverlay: a, isShareVisible: o, isSharePrimary: s, onEdit: l, onDownload: u, isDownloadVisible: d, isDownloadPrimary: f, onDelete: p, onUnshare: m, isUnshareVisible: h, onRevokeShare: g, onFetchRecipientsCount: _, isRevokeShareVisible: v, onLogin: S, onLogout: C, onOpenCredentialsManagement: T, onRequestLogout: E, texts: D, detailsStyles: O, isPublishVisible: k, isPublishPrimary: A, onOpenPublish: ee, isUnpublishVisible: te, hasPublishedFolders: ne = !1, isPublishHistoryResolved: re = !0, onRequestPublishHistory: ie, onOpenUnpublish: ae, isReadonly: oe = !1 }) => {
1208
- let { nameClassName: se = "dial-body-semi-text", folderLabelClassName: ce = "dial-tiny-text", folderLeafClassName: le = "dial-tiny-semi-text" } = O?.typography ?? {}, L = e.details?.limits?.status, ue = L == null ? void 0 : /* @__PURE__ */ G(zn, {
1209
- status: L,
1210
- label: L === vt.LimitReached ? D?.limitReachedLabel ?? "Limit reached" : D?.limitRunningLowLabel ?? "Running low"
1211
- }), de = M(() => {
1207
+ }), Vn = ({ item: e, onUseInChat: t, isPrimaryActionVisible: r, onShare: i, shareOverlay: a, isShareVisible: o, isSharePrimary: s, onEdit: l, onDownload: u, isDownloadVisible: d, isDownloadPrimary: f, onDelete: p, onUnshare: m, isUnshareVisible: h, onRevokeShare: g, onFetchRecipientsCount: _, isRevokeShareVisible: v, onLogin: S, onLogout: C, onOpenCredentialsManagement: T, onRequestLogout: E, texts: D, detailsStyles: O, isPublishVisible: k, isPublishPrimary: A, onOpenPublish: ee, isUnpublishVisible: te, hasPublishedFolders: ne = !1, isPublishHistoryResolved: j = !0, onRequestPublishHistory: re, onOpenUnpublish: ie, isReadonly: ae = !1 }) => {
1208
+ let { nameClassName: oe = "dial-body-semi-text", folderLabelClassName: se = "dial-tiny-text", folderLeafClassName: ce = "dial-tiny-semi-text" } = O?.typography ?? {}, R = e.details?.limits?.status, le = R == null ? void 0 : /* @__PURE__ */ G(Bn, {
1209
+ status: R,
1210
+ label: R === J.LimitReached ? D?.limitReachedLabel ?? "Limit reached" : D?.limitRunningLowLabel ?? "Running low"
1211
+ }), ue = N(() => {
1212
1212
  t?.(e);
1213
- }, [e, t]), fe = M(() => {
1213
+ }, [e, t]), de = N(() => {
1214
1214
  l?.(e);
1215
- }, [e, l]), pe = M(() => {
1215
+ }, [e, l]), fe = N(() => {
1216
1216
  ee?.();
1217
- }, [ee]), ge = M(() => {
1218
- ae?.();
1219
- }, [ae]), _e = M(() => {
1217
+ }, [ee]), pe = N(() => {
1218
+ ie?.();
1219
+ }, [ie]), ge = N(() => {
1220
1220
  u?.(e);
1221
- }, [e, u]), [ye, be] = I(!1);
1222
- N(() => {
1223
- be(!1);
1221
+ }, [e, u]), [_e, ye] = L(!1);
1222
+ P(() => {
1223
+ ye(!1);
1224
1224
  }, [e.id]);
1225
- let xe = M(() => {
1226
- ye || (be(!0), (async () => {
1225
+ let be = N(() => {
1226
+ _e || (ye(!0), (async () => {
1227
1227
  try {
1228
1228
  await u?.(e);
1229
1229
  } catch {} finally {
1230
- be(!1);
1230
+ ye(!1);
1231
1231
  }
1232
1232
  })());
1233
1233
  }, [
1234
1234
  e,
1235
1235
  u,
1236
- ye
1237
- ]), [Se, Ce] = I(!1);
1238
- N(() => {
1239
- Ce(!1);
1236
+ _e
1237
+ ]), [xe, Se] = L(!1);
1238
+ P(() => {
1239
+ Se(!1);
1240
1240
  }, [e.id]);
1241
- let B = M(() => {
1241
+ let V = N(() => {
1242
1242
  if (a) {
1243
- Ce(!0);
1243
+ Se(!0);
1244
1244
  return;
1245
1245
  }
1246
1246
  i?.(e);
@@ -1248,29 +1248,29 @@ var q = /* @__PURE__ */ function(e) {
1248
1248
  e,
1249
1249
  i,
1250
1250
  a
1251
- ]), we = M(() => {
1252
- Ce(!1);
1253
- }, []), Te = M(() => {
1251
+ ]), Ce = N(() => {
1252
+ Se(!1);
1253
+ }, []), we = N(() => {
1254
1254
  m?.(e);
1255
- }, [e, m]), Ee = M(() => {
1255
+ }, [e, m]), Te = N(() => {
1256
1256
  p?.(e);
1257
- }, [e, p]), Ae = M(() => {
1257
+ }, [e, p]), Ee = N(() => {
1258
1258
  g?.(e);
1259
- }, [e, g]), [je, Me] = I(An.Idle), [V, Ne] = I(void 0), Pe = F(null);
1260
- N(() => {
1261
- Pe.current = null, Me(An.Idle), Ne(void 0);
1259
+ }, [e, g]), [Ae, je] = L(jn.Idle), [H, Me] = L(void 0), Ne = I(null);
1260
+ P(() => {
1261
+ Ne.current = null, je(jn.Idle), Me(void 0);
1262
1262
  }, [e.id]);
1263
- let Ie = M(() => {
1264
- if (!_ || Pe.current === e.id || !g || e.isMyApp !== !0 || v?.(e) === !1) return;
1263
+ let Pe = N(() => {
1264
+ if (!_ || Ne.current === e.id || !g || e.isMyApp !== !0 || v?.(e) === !1) return;
1265
1265
  let t = e.id;
1266
- Pe.current = t, Me(An.Loading), (async () => {
1266
+ Ne.current = t, je(jn.Loading), (async () => {
1267
1267
  try {
1268
1268
  let n = await _(e);
1269
- if (Pe.current !== t) return;
1270
- Ne(n), Me(n == null ? An.Unknown : An.Resolved);
1269
+ if (Ne.current !== t) return;
1270
+ Me(n), je(n == null ? jn.Unknown : jn.Resolved);
1271
1271
  } catch {
1272
- if (Pe.current !== t) return;
1273
- Ne(void 0), Me(An.Unknown);
1272
+ if (Ne.current !== t) return;
1273
+ Me(void 0), je(jn.Unknown);
1274
1274
  }
1275
1275
  })();
1276
1276
  }, [
@@ -1278,168 +1278,168 @@ var q = /* @__PURE__ */ function(e) {
1278
1278
  _,
1279
1279
  g,
1280
1280
  v
1281
- ]), [Le, Re] = I(!1);
1282
- N(() => {
1283
- Re(!1);
1281
+ ]), [Ie, Le] = L(!1);
1282
+ P(() => {
1283
+ Le(!1);
1284
1284
  }, [e.id]);
1285
- let ze = M((e) => {
1286
- Re(e), e && (Ie(), ie?.());
1287
- }, [Ie, ie]), Be = M(() => {
1288
- Ie(), ie?.();
1289
- }, [Ie, ie]), He = M(() => {
1290
- ie?.();
1291
- }, [ie]), Ue = D?.hasPrimaryAction !== !1 && (r?.(e) ?? (e.type === x.Model || e.type === x.Agent || e.type === x.Prompt)), Ge = !oe && !!ae && ne && (te?.(e) ?? !0), Ke = !oe && !!ae && !re && te?.(e) === !0, qe = !oe && !Ge && (k?.(e) ?? (e.type === x.Model || e.type === x.Toolset || e.type === x.Agent)), Xe = !oe && !!l && !!e.isEditable, Ze = !oe && e.isMyApp === !0 && (o?.(e) ?? !0), $e = s?.(e) ?? !0, et = A?.(e) ?? !1, at = e.credentials?.authenticationType ?? y.None, H = e.credentials != null && at !== y.None ? c(e.credentials) : void 0, st = !oe && H != null && (!!S || !!C), U = e.type === x.Toolset && st, lt = !!u && (d?.(e) ?? !0), pt = lt && !U && (f?.(e) ?? (e.type === x.Skill && !Ue)), mt = lt && !pt, ht = !oe && e.isMyApp, gt = !oe && !!m && e.isMyApp !== !0 && e.sharedWithMe === !0 && (h?.(e) ?? !0), _t = !oe && !!g && e.isMyApp === !0 && (!_ || je === An.Unknown || je === An.Resolved && (V ?? 0) > 0) && (v?.(e) ?? !0), q = P(() => {
1285
+ let Re = N((e) => {
1286
+ Le(e), e && (Pe(), re?.());
1287
+ }, [Pe, re]), ze = N(() => {
1288
+ Pe(), re?.();
1289
+ }, [Pe, re]), Be = N(() => {
1290
+ re?.();
1291
+ }, [re]), He = D?.hasPrimaryAction !== !1 && (r?.(e) ?? (e.type === x.Model || e.type === x.Agent || e.type === x.Prompt)), Ue = !ae && !!ie && ne && (te?.(e) ?? !0), Ge = !ae && !!ie && !j && te?.(e) === !0, Ke = !ae && !Ue && (k?.(e) ?? (e.type === x.Model || e.type === x.Toolset || e.type === x.Agent)), qe = !ae && !!l && !!e.isEditable, Xe = !ae && e.isMyApp === !0 && (o?.(e) ?? !0), Ze = s?.(e) ?? !0, $e = A?.(e) ?? !1, et = e.credentials?.authenticationType ?? y.None, U = e.credentials != null && et !== y.None ? c(e.credentials) : void 0, ot = !ae && U != null && (!!S || !!C), st = e.type === x.Toolset && ot, lt = !!u && (d?.(e) ?? !0), ut = lt && !st && (f?.(e) ?? (e.type === x.Skill && !He)), mt = lt && !ut, ht = !ae && e.isMyApp, gt = !ae && !!m && e.isMyApp !== !0 && e.sharedWithMe === !0 && (h?.(e) ?? !0), _t = !ae && !!g && e.isMyApp === !0 && (!_ || Ae === jn.Unknown || Ae === jn.Resolved && (H ?? 0) > 0) && (v?.(e) ?? !0), vt = F(() => {
1292
1292
  let e = [];
1293
- if (!$e && Ze && e.push({
1293
+ if (!Ze && Xe && e.push({
1294
1294
  key: "share",
1295
1295
  label: D?.shareLabel ?? "Share",
1296
- Icon: ot,
1296
+ Icon: at,
1297
1297
  iconClassName: "text-secondary",
1298
- onClick: B
1299
- }), Xe && e.push({
1298
+ onClick: V
1299
+ }), qe && e.push({
1300
1300
  key: "edit",
1301
1301
  label: D?.editActionLabel ?? "Edit",
1302
1302
  Icon: rt,
1303
1303
  iconClassName: "text-secondary",
1304
- onClick: fe
1304
+ onClick: de
1305
1305
  }), mt && e.push({
1306
1306
  key: "download",
1307
1307
  label: D?.downloadActionLabel ?? "Download",
1308
1308
  Icon: Ye,
1309
1309
  iconClassName: "text-secondary",
1310
- onClick: _e
1311
- }), !et && qe && e.push({
1310
+ onClick: ge
1311
+ }), !$e && Ke && e.push({
1312
1312
  key: "publish",
1313
1313
  label: D?.publishLabel ?? "Publish",
1314
- Icon: ft,
1314
+ Icon: pt,
1315
1315
  iconClassName: "text-secondary",
1316
- onClick: pe
1317
- }), !et && Ge && e.push({
1316
+ onClick: fe
1317
+ }), !$e && Ue && e.push({
1318
1318
  key: "unpublish",
1319
1319
  label: D?.unpublishLabel ?? "Unpublish",
1320
- Icon: dt,
1320
+ Icon: ft,
1321
1321
  iconClassName: "text-secondary",
1322
- onClick: ge
1322
+ onClick: pe
1323
1323
  }), ht && e.push({
1324
1324
  key: "delete",
1325
1325
  label: D?.deleteActionLabel ?? "Delete",
1326
1326
  Icon: ct,
1327
1327
  danger: !0,
1328
- onClick: Ee
1328
+ onClick: Te
1329
1329
  }), _t) {
1330
1330
  let t = D?.revokeShareLabel ?? "Revoke access", n = D?.revokeShareLabelWithCount ?? ((e) => `${t} (${e})`);
1331
1331
  e.push({
1332
1332
  key: "revoke-share",
1333
- label: V == null ? t : n(V),
1334
- Icon: ut,
1333
+ label: H == null ? t : n(H),
1334
+ Icon: dt,
1335
1335
  danger: !0,
1336
- onClick: Ae
1336
+ onClick: Ee
1337
1337
  });
1338
1338
  }
1339
1339
  return gt && e.push({
1340
1340
  key: "unshare",
1341
1341
  label: D?.unshareLabel ?? "Remove from My List",
1342
1342
  Icon: ct,
1343
- onClick: Te
1343
+ onClick: we
1344
1344
  }), e;
1345
1345
  }, [
1346
- $e,
1347
1346
  Ze,
1348
1347
  Xe,
1349
- mt,
1350
- et,
1351
1348
  qe,
1352
- Ge,
1349
+ mt,
1350
+ $e,
1351
+ Ke,
1352
+ Ue,
1353
1353
  ht,
1354
1354
  _t,
1355
- V,
1355
+ H,
1356
1356
  gt,
1357
1357
  D,
1358
- B,
1358
+ V,
1359
+ de,
1360
+ ge,
1359
1361
  fe,
1360
- _e,
1361
1362
  pe,
1362
- ge,
1363
+ Te,
1363
1364
  Ee,
1364
- Ae,
1365
- Te
1366
- ]), J = P(() => q.map(({ key: e, label: t, Icon: n, iconClassName: r, danger: i, onClick: a }) => ({
1365
+ we
1366
+ ]), yt = F(() => vt.map(({ key: e, label: t, Icon: n, iconClassName: r, danger: i, onClick: a }) => ({
1367
1367
  key: e,
1368
1368
  label: t,
1369
1369
  icon: /* @__PURE__ */ G(n, {
1370
- size: R.SM,
1370
+ size: z.SM,
1371
1371
  "aria-hidden": !0,
1372
1372
  className: r,
1373
- stroke: z
1373
+ stroke: B
1374
1374
  }),
1375
1375
  danger: i,
1376
1376
  onClick: a
1377
- })), [q]), Y = te?.(e), X = !oe && !!ae && (Y == null || Y && !re), Z = !oe && !!g && !!_ && e.isMyApp === !0 && (v?.(e) ?? !0), yt = q.length === 1 && !Le && !X && !Z ? q[0] : void 0, [bt, xt] = I(!1), Q = at === y.ApiKey && H !== n.ManageCredentials, St = at === y.ApiKey && H === n.LogOut, Ct = at !== y.ApiKey && H !== n.ManageCredentials && H === n.LogOut, wt = M(() => {
1378
- if (H === n.ManageCredentials) {
1377
+ })), [vt]), q = te?.(e), Y = !ae && !!ie && (q == null || q && !j), bt = !ae && !!g && !!_ && e.isMyApp === !0 && (v?.(e) ?? !0), xt = vt.length === 1 && !Ie && !Y && !bt ? vt[0] : void 0, [St, Ct] = L(!1), X = et === y.ApiKey && U !== n.ManageCredentials, wt = et === y.ApiKey && U === n.LogOut, Tt = et !== y.ApiKey && U !== n.ManageCredentials && U === n.LogOut, Z = N(() => {
1378
+ if (U === n.ManageCredentials) {
1379
1379
  T?.();
1380
1380
  return;
1381
1381
  }
1382
- if (Q) {
1383
- xt((e) => !e);
1382
+ if (X) {
1383
+ Ct((e) => !e);
1384
1384
  return;
1385
1385
  }
1386
- if (H === n.LogOut) {
1386
+ if (U === n.LogOut) {
1387
1387
  E?.();
1388
1388
  return;
1389
1389
  }
1390
1390
  S?.(e, { level: b.User });
1391
1391
  }, [
1392
- H,
1393
- Q,
1392
+ U,
1393
+ X,
1394
1394
  e,
1395
1395
  S,
1396
1396
  T,
1397
1397
  E
1398
- ]), Tt = H === n.ManageCredentials ? (D?.manageCredentialsActionLabel ?? Ln)(at) : at === y.ApiKey ? H === n.LogOut ? D?.changeApiKeyActionLabel ?? "Change API key" : D?.apiKeyActionLabel ?? "API key" : H === n.LogOut ? D?.logoutActionLabel ?? "Log out" : D?.loginActionLabel ?? "Log in", Et = H === n.ManageCredentials || at === y.ApiKey ? /* @__PURE__ */ G(Qe, {
1399
- size: R.MD,
1400
- stroke: z
1401
- }) : H === n.LogOut ? /* @__PURE__ */ G(nt, {
1402
- size: R.MD,
1403
- stroke: z
1398
+ ]), Et = U === n.ManageCredentials ? (D?.manageCredentialsActionLabel ?? Rn)(et) : et === y.ApiKey ? U === n.LogOut ? D?.changeApiKeyActionLabel ?? "Change API key" : D?.apiKeyActionLabel ?? "API key" : U === n.LogOut ? D?.logoutActionLabel ?? "Log out" : D?.loginActionLabel ?? "Log in", Dt = U === n.ManageCredentials || et === y.ApiKey ? /* @__PURE__ */ G(Qe, {
1399
+ size: z.MD,
1400
+ stroke: B
1401
+ }) : U === n.LogOut ? /* @__PURE__ */ G(nt, {
1402
+ size: z.MD,
1403
+ stroke: B
1404
1404
  }) : /* @__PURE__ */ G(tt, {
1405
- size: R.MD,
1406
- stroke: z
1407
- }), Dt = H === n.ManageCredentials ? /* @__PURE__ */ G(Ve, {
1408
- size: R.MD,
1405
+ size: z.MD,
1406
+ stroke: B
1407
+ }), Ot = U === n.ManageCredentials ? /* @__PURE__ */ G(Ve, {
1408
+ size: z.MD,
1409
1409
  className: "rtl:scale-x-[-1]",
1410
- stroke: z
1411
- }) : Q ? /* @__PURE__ */ G(We, {
1412
- size: R.MD,
1413
- stroke: z
1414
- }) : void 0, Ot = (t) => {
1410
+ stroke: B
1411
+ }) : X ? /* @__PURE__ */ G(We, {
1412
+ size: z.MD,
1413
+ stroke: B
1414
+ }) : void 0, kt = (t) => {
1415
1415
  let n = /* @__PURE__ */ G(t, {
1416
- label: Tt,
1417
- iconBefore: Et,
1418
- iconAfter: Dt,
1419
- onClick: wt,
1420
- "aria-haspopup": Q ? "dialog" : void 0,
1421
- "aria-expanded": Q ? bt : void 0
1416
+ label: Et,
1417
+ iconBefore: Dt,
1418
+ iconAfter: Ot,
1419
+ onClick: Z,
1420
+ "aria-haspopup": X ? "dialog" : void 0,
1421
+ "aria-expanded": X ? St : void 0
1422
1422
  });
1423
- return !Q || e.credentials == null ? n : /* @__PURE__ */ G(he, {
1423
+ return !X || e.credentials == null ? n : /* @__PURE__ */ G(he, {
1424
1424
  placement: "bottom-start",
1425
1425
  matchReferenceWidth: !1,
1426
- open: bt,
1427
- onOpenChange: xt,
1426
+ open: St,
1427
+ onOpenChange: Ct,
1428
1428
  trigger: [],
1429
1429
  outsideClosable: !0,
1430
- renderOverlay: () => /* @__PURE__ */ G(Nn, {
1430
+ renderOverlay: () => /* @__PURE__ */ G(Pn, {
1431
1431
  item: e,
1432
1432
  level: b.User,
1433
1433
  status: e.credentials?.userStatus,
1434
1434
  apiKeyAddedWhen: e.credentials?.userApiKeyAddedWhen,
1435
1435
  onLogin: S,
1436
1436
  onLogout: C,
1437
- onClose: () => xt(!1),
1437
+ onClose: () => Ct(!1),
1438
1438
  texts: D
1439
1439
  }),
1440
1440
  children: n
1441
1441
  });
1442
- }, kt = ({ key: t, label: n, Icon: r, danger: s, onClick: c }) => t === "share" ? /* @__PURE__ */ G(In, {
1442
+ }, At = ({ key: t, label: n, Icon: r, danger: s, onClick: c }) => t === "share" ? /* @__PURE__ */ G(Ln, {
1443
1443
  item: e,
1444
1444
  onShare: i,
1445
1445
  shareOverlay: a,
@@ -1448,118 +1448,118 @@ var q = /* @__PURE__ */ function(e) {
1448
1448
  }) : /* @__PURE__ */ G(s ? me : De, {
1449
1449
  label: n,
1450
1450
  iconBefore: /* @__PURE__ */ G(r, {
1451
- size: R.MD,
1451
+ size: z.MD,
1452
1452
  "aria-hidden": !0,
1453
- stroke: z
1453
+ stroke: B
1454
1454
  }),
1455
1455
  onClick: c
1456
- }), At = () => {
1456
+ }), jt = () => {
1457
1457
  let t = /* @__PURE__ */ G(he, {
1458
- items: J,
1458
+ items: yt,
1459
1459
  placement: "bottom-end",
1460
1460
  matchReferenceWidth: !1,
1461
- onOpenChange: ze,
1461
+ onOpenChange: Re,
1462
1462
  children: /* @__PURE__ */ G(Oe, {
1463
1463
  icon: /* @__PURE__ */ G(Je, {
1464
- size: R.LG,
1464
+ size: z.LG,
1465
1465
  "aria-hidden": !0,
1466
- stroke: z
1466
+ stroke: B
1467
1467
  }),
1468
1468
  "aria-label": D?.manageActionLabel ?? "Manage",
1469
1469
  "aria-haspopup": "menu",
1470
- onMouseEnter: Be,
1471
- onFocus: Be
1470
+ onMouseEnter: ze,
1471
+ onFocus: ze
1472
1472
  })
1473
1473
  });
1474
- return $e || !a || !Ze ? t : /* @__PURE__ */ G(he, {
1474
+ return Ze || !a || !Xe ? t : /* @__PURE__ */ G(he, {
1475
1475
  placement: "bottom-end",
1476
1476
  matchReferenceWidth: !1,
1477
- open: Se,
1478
- onOpenChange: Ce,
1477
+ open: xe,
1478
+ onOpenChange: Se,
1479
1479
  trigger: [],
1480
1480
  outsideClosable: !0,
1481
- renderOverlay: () => a(e, we),
1481
+ renderOverlay: () => a(e, Ce),
1482
1482
  children: t
1483
1483
  });
1484
- }, jt = U || Ue || pt || $e && Ze || et && Ge || et && qe || st && !U || J.length > 0 || Ke;
1484
+ }, Mt = st || He || ut || Ze && Xe || $e && Ue || $e && Ke || ot && !st || yt.length > 0 || Ge;
1485
1485
  return /* @__PURE__ */ K("div", {
1486
1486
  className: "flex flex-col gap-3 px-6 py-4",
1487
1487
  children: [/* @__PURE__ */ G(w, {
1488
1488
  item: e,
1489
1489
  iconSize: 52,
1490
- nameClassName: j(se, Pn.name),
1490
+ nameClassName: M(oe, Fn.name),
1491
1491
  featuredLabel: D?.featuredLabel ?? "Featured",
1492
1492
  featuredChipStyle: O?.colors?.featuredChipStyle,
1493
- statusBadge: ue,
1493
+ statusBadge: le,
1494
1494
  footer: e.folder.length > 0 ? /* @__PURE__ */ G(ve, {
1495
1495
  segments: e.folder,
1496
- labelClassName: ce,
1497
- leafClassName: le
1496
+ labelClassName: se,
1497
+ leafClassName: ce
1498
1498
  }) : void 0
1499
- }), jt && /* @__PURE__ */ K("div", {
1499
+ }), Mt && /* @__PURE__ */ K("div", {
1500
1500
  className: "flex flex-wrap items-center gap-2 ps-[60px]",
1501
1501
  children: [
1502
- U && Ot(St || Ct ? De : ke),
1503
- Ue && /* @__PURE__ */ G(ke, {
1502
+ st && kt(wt || Tt ? De : ke),
1503
+ He && /* @__PURE__ */ G(ke, {
1504
1504
  label: D?.primaryActionLabel ?? "Use in chat",
1505
- iconBefore: /* @__PURE__ */ G(it, { size: R.MD }),
1506
- onClick: de,
1507
- disabled: L === vt.LimitReached
1505
+ iconBefore: /* @__PURE__ */ G(it, { size: z.MD }),
1506
+ onClick: ue,
1507
+ disabled: R === J.LimitReached
1508
1508
  }),
1509
- pt && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(ke, {
1509
+ ut && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(ke, {
1510
1510
  label: D?.downloadActionLabel ?? "Download",
1511
- iconBefore: ye ? /* @__PURE__ */ G(Fe, {
1512
- size: R.MD,
1511
+ iconBefore: _e ? /* @__PURE__ */ G(Fe, {
1512
+ size: z.MD,
1513
1513
  "aria-hidden": !0
1514
1514
  }) : /* @__PURE__ */ G(Ye, {
1515
- size: R.MD,
1515
+ size: z.MD,
1516
1516
  "aria-hidden": !0,
1517
- stroke: z
1517
+ stroke: B
1518
1518
  }),
1519
- onClick: xe,
1520
- disabled: ye,
1521
- "aria-busy": ye
1522
- }), ye && /* @__PURE__ */ G("span", {
1519
+ onClick: be,
1520
+ disabled: _e,
1521
+ "aria-busy": _e
1522
+ }), _e && /* @__PURE__ */ G("span", {
1523
1523
  role: "status",
1524
1524
  "aria-live": "polite",
1525
1525
  className: "sr-only",
1526
1526
  children: D?.downloadingStatusLabel ?? "Downloading"
1527
1527
  })] }),
1528
- $e && Ze && /* @__PURE__ */ G(In, {
1528
+ Ze && Xe && /* @__PURE__ */ G(Ln, {
1529
1529
  item: e,
1530
1530
  onShare: i,
1531
1531
  shareOverlay: a,
1532
1532
  isShareVisible: o,
1533
1533
  label: D?.shareLabel
1534
1534
  }),
1535
- et && Ge && /* @__PURE__ */ G(De, {
1535
+ $e && Ue && /* @__PURE__ */ G(De, {
1536
1536
  label: D?.unpublishLabel ?? "Unpublish",
1537
- iconBefore: /* @__PURE__ */ G(dt, {
1538
- size: R.MD,
1537
+ iconBefore: /* @__PURE__ */ G(ft, {
1538
+ size: z.MD,
1539
1539
  "aria-hidden": !0,
1540
- stroke: z
1540
+ stroke: B
1541
1541
  }),
1542
- onClick: ge,
1543
- onMouseEnter: He,
1544
- onFocus: He
1542
+ onClick: pe,
1543
+ onMouseEnter: Be,
1544
+ onFocus: Be
1545
1545
  }),
1546
- et && qe && /* @__PURE__ */ G(De, {
1546
+ $e && Ke && /* @__PURE__ */ G(De, {
1547
1547
  label: D?.publishLabel ?? "Publish",
1548
- iconBefore: /* @__PURE__ */ G(ft, {
1549
- size: R.MD,
1548
+ iconBefore: /* @__PURE__ */ G(pt, {
1549
+ size: z.MD,
1550
1550
  "aria-hidden": !0,
1551
- stroke: z
1551
+ stroke: B
1552
1552
  }),
1553
- onClick: pe,
1554
- onMouseEnter: He,
1555
- onFocus: He
1553
+ onClick: fe,
1554
+ onMouseEnter: Be,
1555
+ onFocus: Be
1556
1556
  }),
1557
- st && !U && Ot(De),
1558
- yt ? kt(yt) : (J.length > 0 || Ke) && At()
1557
+ ot && !st && kt(De),
1558
+ xt ? At(xt) : (yt.length > 0 || Ge) && jt()
1559
1559
  ]
1560
1560
  })]
1561
1561
  });
1562
- }, Vn = ({ topics: e, content: t, detailsStyles: n }) => {
1562
+ }, Hn = ({ topics: e, content: t, detailsStyles: n }) => {
1563
1563
  let r = n?.typography?.contentHeadingClassName ?? "dial-small-semi-text", i = n?.typography?.contentClassName ?? "dial-small-text";
1564
1564
  return /* @__PURE__ */ K("div", {
1565
1565
  className: "flex flex-col gap-5",
@@ -1578,22 +1578,22 @@ var q = /* @__PURE__ */ function(e) {
1578
1578
  }
1579
1579
  }), e && e.length > 0 && /* @__PURE__ */ G("div", {
1580
1580
  className: "flex flex-wrap gap-2",
1581
- children: e.map((e) => /* @__PURE__ */ G(Ht, { label: e }, e))
1581
+ children: e.map((e) => /* @__PURE__ */ G(Ut, { label: e }, e))
1582
1582
  })]
1583
1583
  });
1584
- }, Hn = {
1584
+ }, Un = {
1585
1585
  divider: "_divider_1gzl9_1",
1586
1586
  fileCount: "_fileCount_1gzl9_5",
1587
1587
  body: "_body_1gzl9_9"
1588
- }, Un = (e, t, n = void 0) => e.flatMap((e) => {
1588
+ }, Wn = (e, t, n = void 0) => e.flatMap((e) => {
1589
1589
  let r = {
1590
1590
  node: e,
1591
1591
  parentId: n
1592
1592
  };
1593
- return e.type === xt.File || !t.has(e.id) ? [r] : [r, ...Un(e.items, t, e.id)];
1594
- }), Wn = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
1595
- let c = P(() => Un(e, n), [e, n]), l = F({}), [u, d] = I(() => t ?? c[0]?.node.id);
1596
- N(() => {
1593
+ return e.type === X.File || !t.has(e.id) ? [r] : [r, ...Wn(e.items, t, e.id)];
1594
+ }), Gn = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
1595
+ let c = F(() => Wn(e, n), [e, n]), l = I({}), [u, d] = L(() => t ?? c[0]?.node.id);
1596
+ P(() => {
1597
1597
  u != null && l.current[u]?.focus();
1598
1598
  }, []);
1599
1599
  let f = (e) => {
@@ -1616,23 +1616,23 @@ var q = /* @__PURE__ */ function(e) {
1616
1616
  break;
1617
1617
  }
1618
1618
  case "ArrowRight":
1619
- e.preventDefault(), o.node.type === xt.Folder && !n.has(o.node.id) && r(o.node.id);
1619
+ e.preventDefault(), o.node.type === X.Folder && !n.has(o.node.id) && r(o.node.id);
1620
1620
  break;
1621
1621
  case "ArrowLeft":
1622
- e.preventDefault(), o.node.type === xt.Folder && n.has(o.node.id) ? r(o.node.id) : o.parentId != null && f(o.parentId);
1622
+ e.preventDefault(), o.node.type === X.Folder && n.has(o.node.id) ? r(o.node.id) : o.parentId != null && f(o.parentId);
1623
1623
  break;
1624
1624
  case "Enter":
1625
1625
  case " ":
1626
- e.preventDefault(), o.node.type === xt.Folder ? r(o.node.id) : i(o.node.id);
1626
+ e.preventDefault(), o.node.type === X.Folder ? r(o.node.id) : i(o.node.id);
1627
1627
  break;
1628
1628
  case "Escape":
1629
1629
  e.preventDefault(), a();
1630
1630
  break;
1631
1631
  default: break;
1632
1632
  }
1633
- }, m = (e) => j("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) => {
1633
+ }, m = (e) => M("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) => {
1634
1634
  let a = e.id === u;
1635
- if (e.type === xt.File) {
1635
+ if (e.type === X.File) {
1636
1636
  let n = e.id === t;
1637
1637
  return /* @__PURE__ */ G("div", {
1638
1638
  ref: (t) => {
@@ -1641,11 +1641,11 @@ var q = /* @__PURE__ */ function(e) {
1641
1641
  role: "treeitem",
1642
1642
  "aria-selected": n,
1643
1643
  tabIndex: a ? 0 : -1,
1644
- className: j(m(a), n && "bg-control-accent-alpha-active"),
1644
+ className: M(m(a), n && "bg-control-accent-alpha-active"),
1645
1645
  onClick: () => i(e.id),
1646
1646
  onFocus: () => d(e.id),
1647
1647
  children: /* @__PURE__ */ G("span", {
1648
- className: j("min-w-0 flex-1 truncate", s),
1648
+ className: M("min-w-0 flex-1 truncate", s),
1649
1649
  children: e.name
1650
1650
  })
1651
1651
  }, e.id);
@@ -1663,20 +1663,20 @@ var q = /* @__PURE__ */ function(e) {
1663
1663
  onFocus: () => d(e.id),
1664
1664
  children: [
1665
1665
  /* @__PURE__ */ G(Ze, {
1666
- size: R.SM,
1666
+ size: z.SM,
1667
1667
  className: "shrink-0",
1668
1668
  "aria-hidden": !0,
1669
- stroke: z
1669
+ stroke: B
1670
1670
  }),
1671
1671
  /* @__PURE__ */ G("span", {
1672
- className: j("min-w-0 flex-1 truncate", s),
1672
+ className: M("min-w-0 flex-1 truncate", s),
1673
1673
  children: e.name
1674
1674
  }),
1675
1675
  /* @__PURE__ */ G(We, {
1676
- size: R.SM,
1677
- className: j("shrink-0 transition-transform", !o && "-rotate-90 rtl:rotate-90"),
1676
+ size: z.SM,
1677
+ className: M("shrink-0 transition-transform", !o && "-rotate-90 rtl:rotate-90"),
1678
1678
  "aria-hidden": !0,
1679
- stroke: z
1679
+ stroke: B
1680
1680
  })
1681
1681
  ]
1682
1682
  }), o && e.items.length > 0 && /* @__PURE__ */ G("div", {
@@ -1691,14 +1691,14 @@ var q = /* @__PURE__ */ function(e) {
1691
1691
  onKeyDown: p,
1692
1692
  children: e.map((e) => h(e))
1693
1693
  });
1694
- }, Gn = () => void 0, Kn = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = Gn, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = Gn, fileSelectorAriaLabel: u = "Select file", fileCountLabel: d = (e) => `${e} files`, fileLoadingLabel: f = "Loading file", fileUnsupportedLabel: p = "Preview is not supported for this file", filePreview: m, filePreviewContent: h, detailsStyles: g }) => {
1695
- let _ = g?.typography?.contentClassName ?? "dial-small-text", v = g?.typography?.contentHeadingClassName ?? "dial-small-semi-text", y = g?.typography?.contentFileCountClassName ?? "dial-tiny-text", b = t != null && t !== "", x = n ?? [], S = Xt(x) > 1, C = Qt(x, r) ?? "", w = (e) => {
1694
+ }, Kn = () => void 0, qn = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = Kn, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = Kn, fileSelectorAriaLabel: u = "Select file", fileCountLabel: d = (e) => `${e} files`, fileLoadingLabel: f = "Loading file", fileUnsupportedLabel: p = "Preview is not supported for this file", filePreview: m, filePreviewContent: h, detailsStyles: g }) => {
1695
+ let _ = g?.typography?.contentClassName ?? "dial-small-text", v = g?.typography?.contentHeadingClassName ?? "dial-small-semi-text", y = g?.typography?.contentFileCountClassName ?? "dial-tiny-text", b = t != null && t !== "", x = n ?? [], S = Zt(x) > 1, C = $t(x, r) ?? "", w = (e) => {
1696
1696
  i?.(e), l(!1);
1697
1697
  }, T = a ? {
1698
- type: Q.Text,
1698
+ type: wt.Text,
1699
1699
  text: ""
1700
1700
  } : m ?? {
1701
- type: Q.Markdown,
1701
+ type: wt.Markdown,
1702
1702
  text: e
1703
1703
  };
1704
1704
  return /* @__PURE__ */ K("div", {
@@ -1713,7 +1713,7 @@ var q = /* @__PURE__ */ function(e) {
1713
1713
  matchReferenceWidth: !1,
1714
1714
  listClassName: "w-[280px]",
1715
1715
  placement: "bottom-start",
1716
- renderOverlay: () => /* @__PURE__ */ G(Wn, {
1716
+ renderOverlay: () => /* @__PURE__ */ G(Gn, {
1717
1717
  nodes: x,
1718
1718
  selectedFileId: r,
1719
1719
  expandedFolderIds: o,
@@ -1723,23 +1723,23 @@ var q = /* @__PURE__ */ function(e) {
1723
1723
  ariaLabel: u,
1724
1724
  rowNameClassName: _
1725
1725
  }),
1726
- children: /* @__PURE__ */ G(Ce, {
1726
+ children: /* @__PURE__ */ G(V, {
1727
1727
  label: C,
1728
1728
  size: ge.Small,
1729
1729
  isOpen: c,
1730
1730
  onClick: () => l(!c)
1731
1731
  })
1732
1732
  }), /* @__PURE__ */ G("span", {
1733
- className: j("shrink-0", y, Hn.fileCount),
1734
- children: d(Xt(x))
1733
+ className: M("shrink-0", y, Un.fileCount),
1734
+ children: d(Zt(x))
1735
1735
  })]
1736
1736
  }),
1737
1737
  b && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("p", {
1738
- className: j("m-0", _),
1738
+ className: M("m-0", _),
1739
1739
  children: t
1740
- }), /* @__PURE__ */ G("div", { className: j("shrink-0", Hn.divider) })] }),
1740
+ }), /* @__PURE__ */ G("div", { className: M("shrink-0", Un.divider) })] }),
1741
1741
  /* @__PURE__ */ K("div", {
1742
- className: j("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && Hn.body, h == null && _),
1742
+ className: M("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && Un.body, h == null && _),
1743
1743
  children: [a && /* @__PURE__ */ G("span", {
1744
1744
  role: "status",
1745
1745
  className: "sr-only",
@@ -1747,21 +1747,21 @@ var q = /* @__PURE__ */ function(e) {
1747
1747
  }), (() => {
1748
1748
  if (h != null) return h;
1749
1749
  switch (T.type) {
1750
- case Q.Markdown: return /* @__PURE__ */ G(A, {
1750
+ case wt.Markdown: return /* @__PURE__ */ G(A, {
1751
1751
  content: T.text,
1752
1752
  headingClassName: v
1753
1753
  });
1754
- case Q.Text: return /* @__PURE__ */ G(O, {
1754
+ case wt.Text: return /* @__PURE__ */ G(O, {
1755
1755
  language: T.language ?? "",
1756
1756
  value: T.text,
1757
1757
  hideDownload: !0
1758
1758
  });
1759
- case Q.Image: return /* @__PURE__ */ G("img", {
1759
+ case wt.Image: return /* @__PURE__ */ G("img", {
1760
1760
  src: T.url,
1761
1761
  alt: C,
1762
1762
  className: "max-w-full"
1763
1763
  });
1764
- case Q.Unsupported: return /* @__PURE__ */ G("p", {
1764
+ case wt.Unsupported: return /* @__PURE__ */ G("p", {
1765
1765
  className: "m-0",
1766
1766
  children: p
1767
1767
  });
@@ -1770,10 +1770,10 @@ var q = /* @__PURE__ */ function(e) {
1770
1770
  })
1771
1771
  ]
1772
1772
  });
1773
- }, qn = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), Jn = /* @__PURE__ */ function(e) {
1773
+ }, Jn = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), Yn = /* @__PURE__ */ function(e) {
1774
1774
  return e.Default = "default", e.Warning = "warning", e.Danger = "danger", e;
1775
- }({}), Yn = (e) => !Number.isFinite(e.used) || !Number.isFinite(e.total) ? 0 : Math.min(Math.max(e.used, 0), Math.max(e.total, 0)), Xn = (e) => Number.isFinite(e) && e > 0 ? e : 1, Zn = ({ used: e, total: t, valueLabel: n }) => n ?? `${qn.format(e)} / ${qn.format(t)}`, Qn = ({ total: e }) => Number.isFinite(e) && e > 0, $n = (e) => e.isUnlimited !== !0 && Qn(e), er = (e) => Qn(e) ? Math.max(e.used, 0) / e.total : 0, tr = (e) => {
1776
- let t = er(e);
1775
+ }({}), Xn = (e) => !Number.isFinite(e.used) || !Number.isFinite(e.total) ? 0 : Math.min(Math.max(e.used, 0), Math.max(e.total, 0)), Zn = (e) => Number.isFinite(e) && e > 0 ? e : 1, Qn = ({ used: e, total: t, valueLabel: n }) => n ?? `${Jn.format(e)} / ${Jn.format(t)}`, $n = ({ total: e }) => Number.isFinite(e) && e > 0, er = (e) => e.isUnlimited !== !0 && $n(e), tr = (e) => $n(e) ? Math.max(e.used, 0) / e.total : 0, nr = (e) => {
1776
+ let t = tr(e);
1777
1777
  return t >= 1 ? "danger" : t >= .75 ? "warning" : "default";
1778
1778
  }, $ = {
1779
1779
  sectionHeading: "_sectionHeading_10rw6_1",
@@ -1786,62 +1786,62 @@ var q = /* @__PURE__ */ function(e) {
1786
1786
  progressFillDanger: "_progressFillDanger_10rw6_32",
1787
1787
  resetLabel: "_resetLabel_10rw6_39",
1788
1788
  valueDanger: "_valueDanger_10rw6_44"
1789
- }, nr = ({ row: e, layout: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => {
1790
- let s = Zn(e), c = tr(e), l = /* @__PURE__ */ G(Ae, {
1791
- value: Yn(e),
1792
- max: Xn(e.total),
1789
+ }, rr = ({ row: e, layout: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => {
1790
+ let s = Qn(e), c = nr(e), l = /* @__PURE__ */ G(Ae, {
1791
+ value: Xn(e),
1792
+ max: Zn(e.total),
1793
1793
  size: ge.Small,
1794
- className: j("!h-1 w-full", $.progressTrack, c === Jn.Default && $.progressFillDefault, c === Jn.Warning && $.progressFillWarning, c === Jn.Danger && $.progressFillDanger),
1794
+ className: M("!h-1 w-full", $.progressTrack, c === Yn.Default && $.progressFillDefault, c === Yn.Warning && $.progressFillWarning, c === Yn.Danger && $.progressFillDanger),
1795
1795
  "aria-label": e.label,
1796
1796
  "aria-valuetext": e.ariaLabel ?? s
1797
1797
  }), u = e.captionLabel != null && /* @__PURE__ */ G("span", {
1798
- className: j("break-words", r, $.label),
1798
+ className: M("break-words", r, $.label),
1799
1799
  children: e.captionLabel
1800
1800
  }), d = e.resetLabel != null && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("time", {
1801
1801
  dateTime: e.resetIsoValue,
1802
1802
  "aria-hidden": e.resetAriaLabel != null || void 0,
1803
- className: j("break-words", r, $.resetLabel),
1803
+ className: M("break-words", r, $.resetLabel),
1804
1804
  children: e.resetLabel
1805
1805
  }), e.resetAriaLabel != null && /* @__PURE__ */ G("span", {
1806
1806
  className: "sr-only",
1807
1807
  children: e.resetAriaLabel
1808
1808
  })] });
1809
- return t === bt.Stacked ? /* @__PURE__ */ K("li", {
1810
- className: j("flex flex-col gap-2 border-b py-3 first:pt-0 last:border-b-0 last:pb-0", $.divider),
1809
+ return t === Ct.Stacked ? /* @__PURE__ */ K("li", {
1810
+ className: M("flex flex-col gap-2 border-b py-3 first:pt-0 last:border-b-0 last:pb-0", $.divider),
1811
1811
  children: [
1812
1812
  /* @__PURE__ */ K("div", {
1813
1813
  className: "flex items-baseline justify-between gap-3",
1814
1814
  children: [/* @__PURE__ */ G("span", {
1815
- className: j("min-w-0 break-words", n, $.valuePrimary),
1815
+ className: M("min-w-0 break-words", n, $.valuePrimary),
1816
1816
  children: e.label
1817
1817
  }), /* @__PURE__ */ G("span", {
1818
- className: j("shrink-0", i, c === Jn.Danger ? $.valueDanger : $.valuePrimary),
1818
+ className: M("shrink-0", i, c === Yn.Danger ? $.valueDanger : $.valuePrimary),
1819
1819
  children: s
1820
1820
  })]
1821
1821
  }),
1822
1822
  u,
1823
- $n(e) ? l : e.noteLabel != null && /* @__PURE__ */ G("span", {
1824
- className: j(o, $.label),
1823
+ er(e) ? l : e.noteLabel != null && /* @__PURE__ */ G("span", {
1824
+ className: M(o, $.label),
1825
1825
  children: e.noteLabel
1826
1826
  }),
1827
1827
  d
1828
1828
  ]
1829
1829
  }) : /* @__PURE__ */ K("li", {
1830
- className: j("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", $.divider),
1830
+ className: M("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", $.divider),
1831
1831
  children: [/* @__PURE__ */ K("div", {
1832
1832
  className: "flex min-w-0 flex-1 flex-col",
1833
1833
  children: [
1834
1834
  /* @__PURE__ */ G("span", {
1835
- className: j("break-words", n, $.label),
1835
+ className: M("break-words", n, $.label),
1836
1836
  children: e.label
1837
1837
  }),
1838
1838
  u,
1839
1839
  d
1840
1840
  ]
1841
- }), $n(e) ? /* @__PURE__ */ K("div", {
1841
+ }), er(e) ? /* @__PURE__ */ K("div", {
1842
1842
  className: "flex w-32 shrink-0 flex-col items-end gap-2",
1843
1843
  children: [/* @__PURE__ */ G("div", {
1844
- className: j("flex gap-1", i),
1844
+ className: M("flex gap-1", i),
1845
1845
  children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("span", {
1846
1846
  className: $.valuePrimary,
1847
1847
  children: e.usedLabel
@@ -1856,20 +1856,20 @@ var q = /* @__PURE__ */ function(e) {
1856
1856
  }) : /* @__PURE__ */ K("div", {
1857
1857
  className: "flex shrink-0 flex-col items-end",
1858
1858
  children: [/* @__PURE__ */ G("span", {
1859
- className: j(a, $.valuePrimary),
1859
+ className: M(a, $.valuePrimary),
1860
1860
  children: s
1861
1861
  }), e.noteLabel != null && /* @__PURE__ */ G("span", {
1862
- className: j(o, $.label),
1862
+ className: M(o, $.label),
1863
1863
  children: e.noteLabel
1864
1864
  })]
1865
1865
  })]
1866
1866
  });
1867
- }, rr = ({ group: e, sectionClassName: t, layout: n, labelClassName: r, captionClassName: i, valueClassName: a, noteValueClassName: o, noteClassName: s }) => /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("p", {
1868
- className: j("mb-3 mt-0", t, $.sectionHeading),
1867
+ }, ir = ({ group: e, sectionClassName: t, layout: n, labelClassName: r, captionClassName: i, valueClassName: a, noteValueClassName: o, noteClassName: s }) => /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("p", {
1868
+ className: M("mb-3 mt-0", t, $.sectionHeading),
1869
1869
  children: e.label
1870
1870
  }), /* @__PURE__ */ G("ul", {
1871
1871
  className: "m-0 flex list-none flex-col p-0",
1872
- children: e.rows.map((e) => /* @__PURE__ */ G(nr, {
1872
+ children: e.rows.map((e) => /* @__PURE__ */ G(rr, {
1873
1873
  row: e,
1874
1874
  layout: n,
1875
1875
  labelClassName: r,
@@ -1878,11 +1878,11 @@ var q = /* @__PURE__ */ function(e) {
1878
1878
  noteValueClassName: o,
1879
1879
  noteClassName: s
1880
1880
  }, e.label))
1881
- })] }), ir = ({ limits: e, layout: t = bt.Inline, labelClassName: n = "dial-small-semi-text", captionClassName: r = "dial-caption-text", valueClassName: i = "dial-tiny-text", noteValueClassName: a = "dial-tiny-semi-text", noteClassName: o = "dial-caption-text", sectionClassName: s = "dial-caption-text", footerClassName: c = "dial-caption-text", footerNote: l, colors: u }) => {
1881
+ })] }), ar = ({ limits: e, layout: t = Ct.Inline, labelClassName: n = "dial-small-semi-text", captionClassName: r = "dial-caption-text", valueClassName: i = "dial-tiny-text", noteValueClassName: a = "dial-tiny-semi-text", noteClassName: o = "dial-caption-text", sectionClassName: s = "dial-caption-text", footerClassName: c = "dial-caption-text", footerNote: l, colors: u }) => {
1882
1882
  let d = e?.groups.filter((e) => e.rows.length > 0);
1883
1883
  return d == null || d.length === 0 ? null : /* @__PURE__ */ K("div", {
1884
1884
  className: "flex flex-col gap-6",
1885
- style: re({
1885
+ style: j({
1886
1886
  "--lt-section-heading": u?.sectionHeading,
1887
1887
  "--lt-label": u?.label,
1888
1888
  "--lt-value-primary": u?.valuePrimary,
@@ -1893,7 +1893,7 @@ var q = /* @__PURE__ */ function(e) {
1893
1893
  "--lt-progress-fill-warning": u?.progressFillWarning,
1894
1894
  "--lt-progress-fill-danger": u?.progressFillDanger
1895
1895
  }),
1896
- children: [d.map((e) => /* @__PURE__ */ G(rr, {
1896
+ children: [d.map((e) => /* @__PURE__ */ G(ir, {
1897
1897
  group: e,
1898
1898
  layout: t,
1899
1899
  sectionClassName: s,
@@ -1903,17 +1903,17 @@ var q = /* @__PURE__ */ function(e) {
1903
1903
  noteValueClassName: a,
1904
1904
  noteClassName: o
1905
1905
  }, e.label)), l != null && /* @__PURE__ */ G("p", {
1906
- className: j("m-0 border-t pt-4", c, $.divider, $.label),
1906
+ className: M("m-0 border-t pt-4", c, $.divider, $.label),
1907
1907
  children: l
1908
1908
  })]
1909
1909
  });
1910
- }, ar = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ G("div", {
1910
+ }, or = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ G("div", {
1911
1911
  className: "flex flex-col gap-4",
1912
1912
  children: e.map((e, s) => /* @__PURE__ */ K("div", {
1913
1913
  className: "flex flex-col gap-4",
1914
- children: [s > 0 && /* @__PURE__ */ G("div", { className: j("shrink-0 border-b", kn.divider) }), /* @__PURE__ */ G("div", {
1914
+ children: [s > 0 && /* @__PURE__ */ G("div", { className: M("shrink-0 border-b", An.divider) }), /* @__PURE__ */ G("div", {
1915
1915
  className: "px-6",
1916
- children: /* @__PURE__ */ G(tn, {
1916
+ children: /* @__PURE__ */ G(nn, {
1917
1917
  sectionLabel: e.title,
1918
1918
  values: e.specs,
1919
1919
  sectionClassName: t,
@@ -1925,7 +1925,7 @@ var q = /* @__PURE__ */ function(e) {
1925
1925
  })
1926
1926
  })]
1927
1927
  }, s))
1928
- }) : null, or = ({ pricing: e, pricesSectionLabel: t = "Token pricing", limitsSectionLabel: n = "Usage limits", labelClassName: r = "dial-small-semi-text", valueClassName: i = "dial-small-text", sectionClassName: a = "dial-caption-text" }) => {
1928
+ }) : null, sr = ({ pricing: e, pricesSectionLabel: t = "Token pricing", limitsSectionLabel: n = "Usage limits", labelClassName: r = "dial-small-semi-text", valueClassName: i = "dial-small-text", sectionClassName: a = "dial-caption-text" }) => {
1929
1929
  if (e == null) return null;
1930
1930
  let o = e.prices?.map((e) => ({
1931
1931
  label: e.label,
@@ -1936,13 +1936,13 @@ var q = /* @__PURE__ */ function(e) {
1936
1936
  }));
1937
1937
  return /* @__PURE__ */ K("div", {
1938
1938
  className: "flex flex-col gap-4",
1939
- children: [/* @__PURE__ */ G(tn, {
1939
+ children: [/* @__PURE__ */ G(nn, {
1940
1940
  sectionLabel: t,
1941
1941
  values: o ?? [],
1942
1942
  labelClassName: r,
1943
1943
  valueClassName: i,
1944
1944
  sectionClassName: a
1945
- }), /* @__PURE__ */ G(tn, {
1945
+ }), /* @__PURE__ */ G(nn, {
1946
1946
  sectionLabel: n,
1947
1947
  values: s ?? [],
1948
1948
  labelClassName: r,
@@ -1950,32 +1950,32 @@ var q = /* @__PURE__ */ function(e) {
1950
1950
  sectionClassName: a
1951
1951
  })]
1952
1952
  });
1953
- }, sr = {
1953
+ }, cr = {
1954
1954
  container: "_container_ddi3i_1",
1955
1955
  header: "_header_ddi3i_5",
1956
1956
  cell: "_cell_ddi3i_10",
1957
1957
  evenRow: "_evenRow_ddi3i_17"
1958
- }, cr = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
1958
+ }, lr = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
1959
1959
  let a = n ?? `repeat(${e.length}, 1fr)`;
1960
1960
  return /* @__PURE__ */ K("div", {
1961
- className: j(sr.container, "grid overflow-hidden rounded-md"),
1961
+ className: M(cr.container, "grid overflow-hidden rounded-md"),
1962
1962
  style: { gridTemplateColumns: a },
1963
1963
  children: [e.map((e) => /* @__PURE__ */ G("div", {
1964
- className: j("px-2 py-1 text-start", r, sr.header),
1964
+ className: M("px-2 py-1 text-start", r, cr.header),
1965
1965
  children: e
1966
- }, e)), t.map((e, t) => /* @__PURE__ */ G(ie, { children: e.map((e, n) => /* @__PURE__ */ G("div", {
1967
- className: j("px-2 py-1.5", i, sr.cell, t % 2 == 1 ? sr.evenRow : void 0),
1966
+ }, e)), t.map((e, t) => /* @__PURE__ */ G(re, { children: e.map((e, n) => /* @__PURE__ */ G("div", {
1967
+ className: M("px-2 py-1.5", i, cr.cell, t % 2 == 1 ? cr.evenRow : void 0),
1968
1968
  children: e
1969
1969
  }, n)) }, t))]
1970
1970
  });
1971
- }, lr = {
1971
+ }, ur = {
1972
1972
  divider: "_divider_1f796_1",
1973
1973
  description: "_description_1f796_5",
1974
1974
  code: "_code_1f796_9"
1975
- }, ur = ({ tools: e, toolNameClassName: t = "dial-small-semi-text", descriptionClassName: n = "dial-small-text", tableHeadingClassName: r = "dial-caption-text", tableCellClassName: i = "dial-tiny-text" }) => e == null ? null : /* @__PURE__ */ G("div", {
1975
+ }, dr = ({ tools: e, toolNameClassName: t = "dial-small-semi-text", descriptionClassName: n = "dial-small-text", tableHeadingClassName: r = "dial-caption-text", tableCellClassName: i = "dial-tiny-text" }) => e == null ? null : /* @__PURE__ */ G("div", {
1976
1976
  className: "flex flex-col",
1977
1977
  children: e.tools.map((e, a) => /* @__PURE__ */ K("div", {
1978
- className: j("flex flex-col gap-3 px-[22px] py-4", a > 0 ? lr.divider : void 0),
1978
+ className: M("flex flex-col gap-3 px-[22px] py-4", a > 0 ? ur.divider : void 0),
1979
1979
  children: [
1980
1980
  /* @__PURE__ */ K("div", {
1981
1981
  className: "flex flex-col gap-1",
@@ -1983,11 +1983,11 @@ var q = /* @__PURE__ */ function(e) {
1983
1983
  className: t,
1984
1984
  children: e.name
1985
1985
  }), e.description != null && /* @__PURE__ */ G("p", {
1986
- className: j("m-0", n, lr.description),
1986
+ className: M("m-0", n, ur.description),
1987
1987
  children: e.description
1988
1988
  })]
1989
1989
  }),
1990
- e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ G(cr, {
1990
+ e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ G(lr, {
1991
1991
  columns: [
1992
1992
  "Name",
1993
1993
  "Type",
@@ -1996,11 +1996,11 @@ var q = /* @__PURE__ */ function(e) {
1996
1996
  columnsTemplate: "1fr 1fr auto",
1997
1997
  rows: e.inputParams.map((e) => [
1998
1998
  /* @__PURE__ */ G("code", {
1999
- className: j("text-inherit border-none bg-transparent p-0", lr.code),
1999
+ className: M("text-inherit border-none bg-transparent p-0", ur.code),
2000
2000
  children: e.name
2001
2001
  }, "name"),
2002
2002
  /* @__PURE__ */ G("code", {
2003
- className: j("text-inherit border-none bg-transparent p-0", lr.code),
2003
+ className: M("text-inherit border-none bg-transparent p-0", ur.code),
2004
2004
  children: e.type
2005
2005
  }, "type"),
2006
2006
  e.isRequired ? "✓" : "—"
@@ -2008,10 +2008,10 @@ var q = /* @__PURE__ */ function(e) {
2008
2008
  headingClassName: r,
2009
2009
  cellClassName: i
2010
2010
  }),
2011
- e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ G(cr, {
2011
+ e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ G(lr, {
2012
2012
  columns: ["Key", "Value"],
2013
2013
  rows: e.annotations.map((e) => [/* @__PURE__ */ G("code", {
2014
- className: j("text-inherit border-none bg-transparent p-0", lr.code),
2014
+ className: M("text-inherit border-none bg-transparent p-0", ur.code),
2015
2015
  children: e.key
2016
2016
  }, "key"), e.value]),
2017
2017
  headingClassName: r,
@@ -2019,186 +2019,186 @@ var q = /* @__PURE__ */ function(e) {
2019
2019
  })
2020
2020
  ]
2021
2021
  }, e.name))
2022
- }), dr = new Set([x.Prompt, x.Skill]), fr = (e) => e?.resource?.endpointUrl != null || (e?.endpoints?.length ?? 0) > 0, pr = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), mr = async () => void 0, hr = [], gr = [], _r = [
2022
+ }), fr = new Set([x.Prompt, x.Skill]), pr = (e) => e?.resource?.endpointUrl != null || (e?.endpoints?.length ?? 0) > 0, mr = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), hr = async () => void 0, gr = [], _r = [], vr = [
2023
2023
  "All shared configurations will be lost",
2024
2024
  "Users who rely on it will lose access",
2025
2025
  "Cannot be undone"
2026
- ], vr = [
2026
+ ], yr = [
2027
2027
  "You will lose access to this item",
2028
2028
  "Other people keep their access",
2029
2029
  "You will need a new invitation to get it back"
2030
- ], yr = [
2030
+ ], br = [
2031
2031
  "Everyone loses access to the published copy",
2032
2032
  "Your own copy is not deleted",
2033
2033
  "You can publish it again later"
2034
- ], br = [
2034
+ ], xr = [
2035
2035
  "Everyone you shared it with loses access",
2036
2036
  "Existing share links stop working",
2037
2037
  "You keep full access — nothing is deleted"
2038
- ], xr = (e) => e === y.ApiKey ? "Toolset API keys" : "Toolset credentials", Sr = (e) => e === b.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", Cr = new Set([Y.Delete, Y.Unshare]), wr = ({ item: e, isOpen: n, isStarred: r = !1, isDetailsLoading: i = !1, isReadonly: a = !1, onClose: o, onToggleFavorite: s, isFavoriteVisible: c, onUseInChat: l, isPrimaryActionVisible: u, onShare: d, isPublishVisible: f, isPublishPrimary: p, getPublishHistory: h, publishFolderItems: _ = hr, publishExpandedPaths: v, onPublishExpandedPathsChange: y, publishLoadingPaths: S, hasPublishWriteAccess: C, publishDefaultAuthor: w, onPublish: T, onPublishSuccess: E, onPublishError: D, onCreatePublishFolder: O, publishLabels: k, ruleSourceOptions: A = gr, onFetchExistingRules: ee, shareOverlay: te, isShareVisible: ne, isSharePrimary: ie, onEdit: ae, onDownload: oe, isDownloadVisible: se, isDownloadPrimary: ce, onLoadContentFile: le, onLoadContentFilePreview: L, renderContentFilePreview: ue, renderCredentials: de, onDelete: fe, onUnshare: R, isUnshareVisible: me, onRevokeShare: he, onFetchRecipientsCount: _e, isRevokeShareVisible: ve, onUnpublish: ye, isUnpublishVisible: xe, onLogin: Se, onLogout: Ce, texts: B, styles: we, limitsFooterNote: Te }) => {
2039
- let { subViewTitleClassName: Ee = "dial-body-semi-text", overviewSectionClassName: De = "dial-caption-text", overviewLabelClassName: Oe = "dial-small-semi-text", overviewValueClassName: ke = "dial-small-text", overviewValueTrueClassName: Ae = "dial-small-text", confirmMessageClassName: Me = "dial-small-text" } = we?.typography ?? {}, V = we?.colors, Pe = re({
2040
- "--cat-details-backdrop": V?.backdrop,
2041
- "--cat-details-bg": V?.background,
2042
- "--cat-details-border": V?.border,
2043
- "--cat-details-divider": V?.divider,
2044
- "--cat-details-scrollbar": V?.scrollbar,
2045
- "--cat-details-skeleton": V?.skeleton,
2046
- "--cat-details-name-text": V?.nameText,
2047
- "--cat-details-publish-title-text": V?.publishTitleText,
2048
- "--cat-details-content-text": V?.contentText,
2049
- "--cat-details-variable-text": V?.variableText,
2050
- "--cat-details-file-count-text": V?.contentFileCountText,
2051
- "--cat-api-heading-text": V?.apiHeadingText,
2052
- "--cat-tools-divider": V?.toolsDivider,
2053
- "--cat-tools-description-text": V?.toolsDescriptionText,
2054
- "--cat-grid-border": V?.gridBorder,
2055
- "--cat-grid-header-text": V?.gridHeaderText,
2056
- "--cat-grid-header-bg": V?.gridHeaderBackground,
2057
- "--cat-grid-cell-text": V?.gridCellText,
2058
- "--cat-grid-cell-divider": V?.gridCellDivider,
2059
- "--cat-grid-row-even-bg": V?.gridRowEvenBackground,
2060
- "--cat-info-card-bg": V?.infoCardBackground,
2061
- "--cat-info-card-danger-bg": V?.infoCardDangerBackground,
2062
- "--cat-confirm-message-text": V?.confirmMessageText,
2063
- "--cat-confirm-consequence-text": V?.confirmConsequenceText,
2064
- "--cat-confirm-footer-border": V?.confirmFooterBorder,
2065
- "--cat-cred-surface-bg": V?.credentialsSurfaceBackground,
2066
- "--cat-cred-active-icon": V?.credentialsActiveIcon,
2067
- "--cat-cred-banner-icon-bg": V?.credentialsBannerIconBackground,
2068
- "--cat-cred-description-text": V?.credentialsDescriptionText,
2069
- "--cat-cred-row-description-text": V?.credentialsRowDescriptionText,
2070
- "--cat-cred-error-text": V?.credentialsErrorText,
2071
- "--cat-cred-card-bg": V?.credentialsCardBackground,
2072
- "--cat-cred-card-icon": V?.credentialsCardIcon,
2073
- "--cat-cred-card-title-text": V?.credentialsCardTitleText,
2074
- "--cat-cred-card-description-text": V?.credentialsCardDescriptionText
2075
- }), [Fe, Le] = I(r), [Re, ze] = I(""), [Be, Ve] = I(!1), [He, Ue] = I([]), [We, Ke] = I(!1), [qe, Je] = I(!1), [Ye, Xe] = I(!1), Ze = F(null), Qe = e.details?.promptContent, $e = Qe?.selectedFileId, [et, tt] = I(null), [nt, rt] = I(!1), [it, at] = I(/* @__PURE__ */ new Set()), [ot, H] = I(!1), st = F(null), ct = F(0), U = M((e) => {
2076
- let t = st.current, n = e?.preview?.type === Q.Image ? e.preview.url : null;
2077
- t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), st.current = n, tt(e);
2038
+ ], Sr = (e) => e === y.ApiKey ? "Toolset API keys" : "Toolset credentials", Cr = (e) => e === b.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", wr = new Set([Y.Delete, Y.Unshare]), Tr = ({ item: e, isOpen: n, isStarred: r = !1, isDetailsLoading: i = !1, isReadonly: a = !1, onClose: o, onToggleFavorite: s, isFavoriteVisible: c, onUseInChat: l, isPrimaryActionVisible: u, onShare: d, isPublishVisible: f, isPublishPrimary: p, getPublishHistory: h, publishFolderItems: _ = gr, publishExpandedPaths: v, onPublishExpandedPathsChange: y, publishLoadingPaths: S, hasPublishWriteAccess: C, publishDefaultAuthor: w, onPublish: T, onPublishSuccess: E, onPublishError: D, onCreatePublishFolder: O, publishLabels: k, ruleSourceOptions: A = _r, onFetchExistingRules: ee, shareOverlay: te, isShareVisible: ne, isSharePrimary: re, onEdit: ie, onDownload: ae, isDownloadVisible: oe, isDownloadPrimary: se, onLoadContentFile: ce, onLoadContentFilePreview: R, renderContentFilePreview: le, renderCredentials: ue, onDelete: de, onUnshare: fe, isUnshareVisible: z, onRevokeShare: me, onFetchRecipientsCount: he, isRevokeShareVisible: _e, onUnpublish: ve, isUnpublishVisible: ye, onLogin: xe, onLogout: Se, texts: V, styles: Ce, limitsFooterNote: we }) => {
2039
+ let { subViewTitleClassName: Te = "dial-body-semi-text", overviewSectionClassName: Ee = "dial-caption-text", overviewLabelClassName: De = "dial-small-semi-text", overviewValueClassName: Oe = "dial-small-text", overviewValueTrueClassName: ke = "dial-small-text", confirmMessageClassName: Ae = "dial-small-text" } = Ce?.typography ?? {}, H = Ce?.colors, Me = j({
2040
+ "--cat-details-backdrop": H?.backdrop,
2041
+ "--cat-details-bg": H?.background,
2042
+ "--cat-details-border": H?.border,
2043
+ "--cat-details-divider": H?.divider,
2044
+ "--cat-details-scrollbar": H?.scrollbar,
2045
+ "--cat-details-skeleton": H?.skeleton,
2046
+ "--cat-details-name-text": H?.nameText,
2047
+ "--cat-details-publish-title-text": H?.publishTitleText,
2048
+ "--cat-details-content-text": H?.contentText,
2049
+ "--cat-details-variable-text": H?.variableText,
2050
+ "--cat-details-file-count-text": H?.contentFileCountText,
2051
+ "--cat-api-heading-text": H?.apiHeadingText,
2052
+ "--cat-tools-divider": H?.toolsDivider,
2053
+ "--cat-tools-description-text": H?.toolsDescriptionText,
2054
+ "--cat-grid-border": H?.gridBorder,
2055
+ "--cat-grid-header-text": H?.gridHeaderText,
2056
+ "--cat-grid-header-bg": H?.gridHeaderBackground,
2057
+ "--cat-grid-cell-text": H?.gridCellText,
2058
+ "--cat-grid-cell-divider": H?.gridCellDivider,
2059
+ "--cat-grid-row-even-bg": H?.gridRowEvenBackground,
2060
+ "--cat-info-card-bg": H?.infoCardBackground,
2061
+ "--cat-info-card-danger-bg": H?.infoCardDangerBackground,
2062
+ "--cat-confirm-message-text": H?.confirmMessageText,
2063
+ "--cat-confirm-consequence-text": H?.confirmConsequenceText,
2064
+ "--cat-confirm-footer-border": H?.confirmFooterBorder,
2065
+ "--cat-cred-surface-bg": H?.credentialsSurfaceBackground,
2066
+ "--cat-cred-active-icon": H?.credentialsActiveIcon,
2067
+ "--cat-cred-banner-icon-bg": H?.credentialsBannerIconBackground,
2068
+ "--cat-cred-description-text": H?.credentialsDescriptionText,
2069
+ "--cat-cred-row-description-text": H?.credentialsRowDescriptionText,
2070
+ "--cat-cred-error-text": H?.credentialsErrorText,
2071
+ "--cat-cred-card-bg": H?.credentialsCardBackground,
2072
+ "--cat-cred-card-icon": H?.credentialsCardIcon,
2073
+ "--cat-cred-card-title-text": H?.credentialsCardTitleText,
2074
+ "--cat-cred-card-description-text": H?.credentialsCardDescriptionText
2075
+ }), [Pe, Fe] = L(r), [Le, Re] = L(""), [ze, Be] = L(!1), [Ve, He] = L([]), [Ue, We] = L(!1), [Ke, qe] = L(!1), [Je, Ye] = L(!1), Xe = I(null), Ze = e.details?.promptContent, Qe = Ze?.selectedFileId, [$e, et] = L(null), [tt, nt] = L(!1), [rt, it] = L(/* @__PURE__ */ new Set()), [U, at] = L(!1), ot = I(null), st = I(0), ct = N((e) => {
2076
+ let t = ot.current, n = e?.preview?.type === wt.Image ? e.preview.url : null;
2077
+ t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), ot.current = n, et(e);
2078
2078
  }, []);
2079
- N(() => {
2080
- ct.current += 1, U(null), rt(!1), at(Zt(Qe?.files ?? [])), H(!1);
2081
- }, [e.id, $e]), N(() => () => {
2082
- let e = st.current;
2079
+ P(() => {
2080
+ st.current += 1, ct(null), nt(!1), it(Qt(Ze?.files ?? [])), at(!1);
2081
+ }, [e.id, Qe]), P(() => () => {
2082
+ let e = ot.current;
2083
2083
  e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
2084
2084
  }, []);
2085
- let lt = M((e) => {
2086
- at((t) => {
2085
+ let lt = N((e) => {
2086
+ it((t) => {
2087
2087
  let n = new Set(t);
2088
2088
  return n.has(e) ? n.delete(e) : n.add(e), n;
2089
2089
  });
2090
- }, []), ut = M(async (e) => {
2091
- if (e === $e) {
2092
- ct.current += 1, U(null), rt(!1);
2090
+ }, []), ut = N(async (e) => {
2091
+ if (e === Qe) {
2092
+ st.current += 1, ct(null), nt(!1);
2093
2093
  return;
2094
2094
  }
2095
- if (ue == null && le == null && L == null) return;
2096
- if (ue != null) {
2097
- ct.current += 1, U({
2095
+ if (le == null && ce == null && R == null) return;
2096
+ if (le != null) {
2097
+ st.current += 1, ct({
2098
2098
  id: e,
2099
2099
  preview: null
2100
- }), rt(!1);
2100
+ }), nt(!1);
2101
2101
  return;
2102
2102
  }
2103
- let t = ++ct.current;
2104
- U({
2103
+ let t = ++st.current;
2104
+ ct({
2105
2105
  id: e,
2106
2106
  preview: null
2107
- }), rt(!0);
2107
+ }), nt(!0);
2108
2108
  try {
2109
- let n = L == null ? await le?.(e).then((e) => e == null ? void 0 : {
2110
- type: Q.Markdown,
2109
+ let n = R == null ? await ce?.(e).then((e) => e == null ? void 0 : {
2110
+ type: wt.Markdown,
2111
2111
  text: e
2112
- }) : await L(e);
2113
- if (ct.current !== t) {
2114
- n?.type === Q.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
2112
+ }) : await R(e);
2113
+ if (st.current !== t) {
2114
+ n?.type === wt.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
2115
2115
  return;
2116
2116
  }
2117
- U({
2117
+ ct({
2118
2118
  id: e,
2119
2119
  preview: n ?? null
2120
2120
  });
2121
2121
  } catch {
2122
- if (ct.current !== t) return;
2123
- U({
2122
+ if (st.current !== t) return;
2123
+ ct({
2124
2124
  id: e,
2125
2125
  preview: null
2126
2126
  });
2127
2127
  } finally {
2128
- ct.current === t && rt(!1);
2128
+ st.current === t && nt(!1);
2129
2129
  }
2130
2130
  }, [
2131
- $e,
2131
+ Qe,
2132
+ ce,
2133
+ R,
2132
2134
  le,
2133
- L,
2134
- ue,
2135
- U
2136
- ]), dt = et?.id ?? $e, ft = () => et == null ? null : et.preview == null ? {
2137
- type: Q.Text,
2138
- text: B?.contentFileErrorLabel ?? "Failed to load this file."
2139
- } : et.preview, _t = et != null && ue != null ? ue(et.id, Qt(Qe?.files ?? [], et.id) ?? "") : void 0, q = M(() => {
2140
- if (!h || Ze.current === e.id) return;
2135
+ ct
2136
+ ]), dt = $e?.id ?? Qe, ft = () => $e == null ? null : $e.preview == null ? {
2137
+ type: wt.Text,
2138
+ text: V?.contentFileErrorLabel ?? "Failed to load this file."
2139
+ } : $e.preview, pt = $e != null && le != null ? le($e.id, $t(Ze?.files ?? [], $e.id) ?? "") : void 0, vt = N(() => {
2140
+ if (!h || Xe.current === e.id) return;
2141
2141
  let t = e.id;
2142
- Ze.current = t, Ke(!0), Je(!1), (async () => {
2142
+ Xe.current = t, We(!0), qe(!1), (async () => {
2143
2143
  try {
2144
2144
  let n = await h(e);
2145
- if (Ze.current !== t) return;
2146
- Ue(n), Xe(!0), Ke(!1);
2145
+ if (Xe.current !== t) return;
2146
+ He(n), Ye(!0), We(!1);
2147
2147
  } catch {
2148
- if (Ze.current !== t) return;
2149
- Je(!0), Ke(!1), Ze.current = null;
2148
+ if (Xe.current !== t) return;
2149
+ qe(!0), We(!1), Xe.current = null;
2150
2150
  }
2151
2151
  })();
2152
2152
  }, [h, e]);
2153
- N(() => {
2154
- Be && q();
2155
- }, [Be, q]);
2156
- let vt = M((e, t) => {
2157
- Ze.current = null, Xe(!1), q(), E?.(e, t);
2158
- }, [q, E]), Z = gt({
2153
+ P(() => {
2154
+ ze && vt();
2155
+ }, [ze, vt]);
2156
+ let yt = N((e, t) => {
2157
+ Xe.current = null, Ye(!1), vt(), E?.(e, t);
2158
+ }, [vt, E]), J = _t({
2159
2159
  item: e,
2160
- history: He,
2160
+ history: Ve,
2161
2161
  folderItems: _,
2162
2162
  hasWriteAccess: C,
2163
2163
  defaultAuthor: w,
2164
2164
  onCreateFolder: O,
2165
- onPublish: T ?? mr,
2166
- onPublishSuccess: vt,
2165
+ onPublish: T ?? hr,
2166
+ onPublishSuccess: yt,
2167
2167
  onPublishError: D,
2168
2168
  onFetchExistingRules: ee
2169
- }), yt = e.type === x.Toolset && g(e.credentials), bt = P(() => ht({
2170
- hasSelectedFolder: Z.selectedFolderPath != null,
2171
- hasExistingPublicationInFolder: Z.hasExistingPublicationInFolder,
2172
- hasWriteAccess: Z.hasWriteAccess,
2173
- isSubmitting: Z.isSubmitting,
2174
- hasSubmitError: Z.hasSubmitError
2169
+ }), xt = e.type === x.Toolset && g(e.credentials), St = F(() => gt({
2170
+ hasSelectedFolder: J.selectedFolderPath != null,
2171
+ hasExistingPublicationInFolder: J.hasExistingPublicationInFolder,
2172
+ hasWriteAccess: J.hasWriteAccess,
2173
+ isSubmitting: J.isSubmitting,
2174
+ hasSubmitError: J.hasSubmitError
2175
2175
  }), [
2176
- Z.selectedFolderPath,
2177
- Z.hasExistingPublicationInFolder,
2178
- Z.hasWriteAccess,
2179
- Z.isSubmitting,
2180
- Z.hasSubmitError
2181
- ]), [xt, St] = I(!1), [Ct, wt] = I(null), [Tt, Et] = I(!1), [Dt, Ot] = I(null), [kt, At] = I(null), [jt, Mt] = I(null);
2182
- N(() => {
2183
- Le(r);
2184
- }, [e.id, r]), N(() => {
2185
- ze(""), Ve(!1), Z.reset(), Ue([]), Je(!1), Ke(!1), Xe(!1), Ze.current = null, Mt(null), St(!1), wt(null), Et(!1), Ot(null), At(null);
2176
+ J.selectedFolderPath,
2177
+ J.hasExistingPublicationInFolder,
2178
+ J.hasWriteAccess,
2179
+ J.isSubmitting,
2180
+ J.hasSubmitError
2181
+ ]), [Ct, X] = L(!1), [Tt, Z] = L(null), [Et, Dt] = L(!1), [Ot, kt] = L(null), [At, jt] = L(null), [Mt, Nt] = L(null);
2182
+ P(() => {
2183
+ Fe(r);
2184
+ }, [e.id, r]), P(() => {
2185
+ Re(""), Be(!1), J.reset(), He([]), qe(!1), We(!1), Ye(!1), Xe.current = null, Nt(null), X(!1), Z(null), Dt(!1), kt(null), jt(null);
2186
2186
  }, [e.id]);
2187
- let Nt = !a && !!ye && xe?.(e) === !0;
2188
- N(() => {
2189
- Nt && q();
2190
- }, [Nt, q]);
2191
- let Pt = M(() => St(!0), []), Ft = M(() => St(!1), []), It = M(() => {
2192
- wt(Y.Delete);
2193
- }, []), Lt = M((n) => {
2194
- At(n ?? (e.credentials == null ? null : t(e.credentials))), wt(Y.Logout);
2195
- }, [e.credentials]), Rt = M(() => {
2196
- wt(Y.Unshare);
2197
- }, []), Bt = M(() => {
2198
- wt(Y.RevokeAccess);
2199
- }, []), Vt = P(() => {
2187
+ let Pt = !a && !!ve && ye?.(e) === !0;
2188
+ P(() => {
2189
+ Pt && vt();
2190
+ }, [Pt, vt]);
2191
+ let Ft = N(() => X(!0), []), Q = N(() => X(!1), []), It = N(() => {
2192
+ Z(Y.Delete);
2193
+ }, []), Lt = N((n) => {
2194
+ jt(n ?? (e.credentials == null ? null : t(e.credentials))), Z(Y.Logout);
2195
+ }, [e.credentials]), Rt = N(() => {
2196
+ Z(Y.Unshare);
2197
+ }, []), zt = N(() => {
2198
+ Z(Y.RevokeAccess);
2199
+ }, []), Vt = F(() => {
2200
2200
  let e = /* @__PURE__ */ new Set(), t = [];
2201
- for (let n of He) {
2201
+ for (let n of Ve) {
2202
2202
  let r = n.folderPath.join("/");
2203
2203
  e.has(r) || (e.add(r), t.push({
2204
2204
  key: r,
@@ -2206,65 +2206,65 @@ var q = /* @__PURE__ */ function(e) {
2206
2206
  }));
2207
2207
  }
2208
2208
  return t;
2209
- }, [He]), Ht = Ye && Vt.length > 0, Ut = M((e) => e || (k?.rootFolderLabel ?? "Organization"), [k]), Wt = M(() => {
2210
- wt(Y.Unpublish);
2211
- }, []), Gt = M((e) => {
2212
- Ot(e), wt(Y.DeleteApiKey);
2213
- }, []), Kt = M(() => {
2214
- Tt || (wt(null), Ot(null), At(null), Mt(null));
2215
- }, [Tt]), qt = M(async () => {
2216
- if (!(Tt || Ct == null)) {
2217
- Et(!0);
2209
+ }, [Ve]), Ht = Je && Vt.length > 0, Ut = N((e) => e || (k?.rootFolderLabel ?? "Organization"), [k]), Wt = N(() => {
2210
+ Z(Y.Unpublish);
2211
+ }, []), Gt = N((e) => {
2212
+ kt(e), Z(Y.DeleteApiKey);
2213
+ }, []), Kt = N(() => {
2214
+ Et || (Z(null), kt(null), jt(null), Nt(null));
2215
+ }, [Et]), qt = N(async () => {
2216
+ if (!(Et || Tt == null)) {
2217
+ Dt(!0);
2218
2218
  try {
2219
- switch (Ct) {
2219
+ switch (Tt) {
2220
2220
  case Y.Delete:
2221
- await fe?.(e);
2221
+ await de?.(e);
2222
2222
  break;
2223
2223
  case Y.Unshare:
2224
- await R?.(e);
2224
+ await fe?.(e);
2225
2225
  break;
2226
2226
  case Y.RevokeAccess:
2227
- await he?.(e);
2227
+ await me?.(e);
2228
2228
  break;
2229
2229
  case Y.Logout:
2230
- kt != null && await Ce?.(e, { level: kt });
2230
+ At != null && await Se?.(e, { level: At });
2231
2231
  break;
2232
2232
  case Y.DeleteApiKey:
2233
- Dt != null && await Ce?.(e, { level: Dt });
2233
+ Ot != null && await Se?.(e, { level: Ot });
2234
2234
  break;
2235
2235
  case Y.Unpublish: {
2236
- let t = pr(Vt, jt);
2237
- t != null && await ye?.(e, t.segments);
2236
+ let t = mr(Vt, Mt);
2237
+ t != null && await ve?.(e, t.segments);
2238
2238
  break;
2239
2239
  }
2240
2240
  }
2241
- wt(null), Ot(null), At(null), Mt(null), Cr.has(Ct) && o();
2241
+ Z(null), kt(null), jt(null), Nt(null), wr.has(Tt) && o();
2242
2242
  } catch {
2243
- wt(null), Ot(null), At(null), Mt(null);
2243
+ Z(null), kt(null), jt(null), Nt(null);
2244
2244
  } finally {
2245
- Et(!1);
2245
+ Dt(!1);
2246
2246
  }
2247
2247
  }
2248
2248
  }, [
2249
+ Et,
2249
2250
  Tt,
2250
- Ct,
2251
- Dt,
2252
- kt,
2251
+ Ot,
2252
+ At,
2253
2253
  e,
2254
+ de,
2254
2255
  fe,
2255
- R,
2256
- he,
2257
- ye,
2258
- jt,
2256
+ me,
2257
+ ve,
2258
+ Mt,
2259
2259
  Vt,
2260
- Ce,
2260
+ Se,
2261
2261
  o
2262
2262
  ]);
2263
- N(() => {
2263
+ P(() => {
2264
2264
  if (!n) return;
2265
2265
  let e = (e) => {
2266
2266
  if (e.key === "Escape") {
2267
- if (Ct != null) {
2267
+ if (Tt != null) {
2268
2268
  Kt();
2269
2269
  return;
2270
2270
  }
@@ -2275,197 +2275,197 @@ var q = /* @__PURE__ */ function(e) {
2275
2275
  }, [
2276
2276
  n,
2277
2277
  o,
2278
- Ct,
2278
+ Tt,
2279
2279
  Kt
2280
2280
  ]);
2281
- let Jt = M(() => Ve(!0), []), Yt = M(() => {
2282
- Ve(!1), Z.reset();
2283
- }, [Z]), Xt = M(async () => {
2284
- await Z.handleSubmit() && Yt();
2285
- }, [Z, Yt]), $t = M(() => {
2286
- let t = !Fe;
2287
- Le(t), s?.(e.id, t);
2281
+ let Jt = N(() => Be(!0), []), Yt = N(() => {
2282
+ Be(!1), J.reset();
2283
+ }, [J]), Xt = N(async () => {
2284
+ await J.handleSubmit() && Yt();
2285
+ }, [J, Yt]), Zt = N(() => {
2286
+ let t = !Pe;
2287
+ Fe(t), s?.(e.id, t);
2288
2288
  }, [
2289
- Fe,
2289
+ Pe,
2290
2290
  e.id,
2291
2291
  s
2292
- ]), en = P(() => {
2293
- let t = [], n = dr.has(e.type);
2292
+ ]), en = F(() => {
2293
+ let t = [], n = fr.has(e.type);
2294
2294
  return n || t.push({
2295
- id: J.About,
2296
- label: B?.tabAboutLabel ?? "About"
2295
+ id: q.About,
2296
+ label: V?.tabAboutLabel ?? "About"
2297
2297
  }), (n || e.details?.promptContent != null) && t.push({
2298
- id: J.Content,
2299
- label: B?.tabContentLabel ?? "Details"
2298
+ id: q.Content,
2299
+ label: V?.tabContentLabel ?? "Details"
2300
2300
  }), e.details?.overview != null && t.push({
2301
- id: J.Overview,
2302
- label: B?.tabOverviewLabel ?? "Overview"
2301
+ id: q.Overview,
2302
+ label: V?.tabOverviewLabel ?? "Overview"
2303
2303
  }), e.details?.pricing != null && t.push({
2304
- id: J.Pricing,
2305
- label: B?.tabPricingLabel ?? "Pricing"
2304
+ id: q.Pricing,
2305
+ label: V?.tabPricingLabel ?? "Pricing"
2306
2306
  }), e.details?.limits != null && t.push({
2307
- id: J.Limits,
2308
- label: B?.tabLimitsLabel ?? "Limits"
2307
+ id: q.Limits,
2308
+ label: V?.tabLimitsLabel ?? "Limits"
2309
2309
  }), e.details?.tools != null && t.push({
2310
- id: J.Tools,
2311
- label: B?.tabToolsLabel ?? "Tools"
2312
- }), fr(e.details?.api) && t.push({
2313
- id: J.Api,
2314
- label: B?.tabConnectLabel ?? "Connect"
2310
+ id: q.Tools,
2311
+ label: V?.tabToolsLabel ?? "Tools"
2312
+ }), pr(e.details?.api) && t.push({
2313
+ id: q.Api,
2314
+ label: V?.tabConnectLabel ?? "Connect"
2315
2315
  }), t;
2316
- }, [e, B]), tn = F(null);
2317
- N(() => {
2316
+ }, [e, V]), tn = I(null);
2317
+ P(() => {
2318
2318
  let t = tn.current !== e.id;
2319
- tn.current = e.id, (t || !en.some((e) => e.id === Re)) && ze(en[0]?.id ?? "");
2319
+ tn.current = e.id, (t || !en.some((e) => e.id === Le)) && Re(en[0]?.id ?? "");
2320
2320
  }, [
2321
2321
  e.id,
2322
2322
  en,
2323
- Re
2323
+ Le
2324
2324
  ]);
2325
- let nn = B?.overviewYesLabel ?? "Yes", rn = B?.overviewNoLabel ?? "No", an = B?.ariaLabel ?? "Item details", on = B?.closeAriaLabel ?? "Close", cn = Fe ? B?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : B?.addToFavoritesAriaLabel ?? "Add to favorites", un = B?.publishTitle ?? "Publish", dn = B?.backToDetailsAriaLabel ?? "Back", pn = B?.cancelLabel ?? "Cancel", mn = P(() => {
2326
- switch (Ct) {
2325
+ let nn = V?.overviewYesLabel ?? "Yes", rn = V?.overviewNoLabel ?? "No", an = V?.ariaLabel ?? "Item details", on = V?.closeAriaLabel ?? "Close", sn = Pe ? V?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : V?.addToFavoritesAriaLabel ?? "Add to favorites", ln = V?.publishTitle ?? "Publish", dn = V?.backToDetailsAriaLabel ?? "Back", fn = V?.cancelLabel ?? "Cancel", mn = F(() => {
2326
+ switch (Tt) {
2327
2327
  case Y.Delete: {
2328
- let t = B?.deleteActionLabel ?? "Delete";
2328
+ let t = V?.deleteActionLabel ?? "Delete";
2329
2329
  return {
2330
- title: B?.deleteConfirmTitle ?? t,
2331
- message: B?.deleteConfirmMessage?.(e.name) ?? /* @__PURE__ */ K(W, { children: [
2330
+ title: V?.deleteConfirmTitle ?? t,
2331
+ message: V?.deleteConfirmMessage?.(e.name) ?? /* @__PURE__ */ K(W, { children: [
2332
2332
  "Are you sure you want to delete ",
2333
2333
  /* @__PURE__ */ G("strong", { children: e.name }),
2334
2334
  "? This action is permanent and cannot be undone."
2335
2335
  ] }),
2336
- consequences: B?.deleteConfirmConsequences ?? _r,
2336
+ consequences: V?.deleteConfirmConsequences ?? vr,
2337
2337
  confirmLabel: t,
2338
- loadingStatusLabel: B?.deletingStatusLabel ?? "Deleting",
2339
- variant: X.Danger
2338
+ loadingStatusLabel: V?.deletingStatusLabel ?? "Deleting",
2339
+ variant: bt.Danger
2340
2340
  };
2341
2341
  }
2342
2342
  case Y.Unshare: {
2343
- let t = B?.unshareLabel ?? "Remove from My List";
2343
+ let t = V?.unshareLabel ?? "Remove from My List";
2344
2344
  return {
2345
- title: B?.unshareConfirmTitle ?? t,
2346
- message: B?.unshareConfirmMessage?.(e.name) ?? /* @__PURE__ */ K(W, { children: [
2345
+ title: V?.unshareConfirmTitle ?? t,
2346
+ message: V?.unshareConfirmMessage?.(e.name) ?? /* @__PURE__ */ K(W, { children: [
2347
2347
  "Remove ",
2348
2348
  /* @__PURE__ */ G("strong", { children: e.name }),
2349
2349
  " from your list? You'll need a new invitation to access it again."
2350
2350
  ] }),
2351
- consequences: B?.unshareConfirmConsequences ?? vr,
2351
+ consequences: V?.unshareConfirmConsequences ?? yr,
2352
2352
  confirmLabel: t,
2353
- loadingStatusLabel: B?.unsharingStatusLabel ?? "Removing",
2354
- variant: X.Info
2353
+ loadingStatusLabel: V?.unsharingStatusLabel ?? "Removing",
2354
+ variant: bt.Info
2355
2355
  };
2356
2356
  }
2357
2357
  case Y.RevokeAccess: {
2358
- let t = B?.revokeShareLabel ?? "Revoke access";
2358
+ let t = V?.revokeShareLabel ?? "Revoke access";
2359
2359
  return {
2360
- title: B?.revokeShareConfirmTitle ?? t,
2361
- message: B?.revokeShareConfirmMessage?.(e.name) ?? /* @__PURE__ */ K(W, { children: [
2360
+ title: V?.revokeShareConfirmTitle ?? t,
2361
+ message: V?.revokeShareConfirmMessage?.(e.name) ?? /* @__PURE__ */ K(W, { children: [
2362
2362
  "Revoke shared access to ",
2363
2363
  /* @__PURE__ */ G("strong", { children: e.name }),
2364
2364
  "? Anyone you shared it with will lose access."
2365
2365
  ] }),
2366
- consequences: B?.revokeShareConfirmConsequences ?? br,
2366
+ consequences: V?.revokeShareConfirmConsequences ?? xr,
2367
2367
  confirmLabel: t,
2368
- loadingStatusLabel: B?.revokingShareStatusLabel ?? "Revoking access",
2369
- variant: X.Danger
2368
+ loadingStatusLabel: V?.revokingShareStatusLabel ?? "Revoking access",
2369
+ variant: bt.Danger
2370
2370
  };
2371
2371
  }
2372
2372
  case Y.Unpublish: {
2373
- let t = B?.unpublishLabel ?? "Unpublish", n = Vt.length === 1, r = n ? Ut(Vt[0].key) : "", i = B?.unpublishConfirmMessage?.(e.name, r) ?? /* @__PURE__ */ K(W, { children: [
2373
+ let t = V?.unpublishLabel ?? "Unpublish", n = Vt.length === 1, r = n ? Ut(Vt[0].key) : "", i = V?.unpublishConfirmMessage?.(e.name, r) ?? /* @__PURE__ */ K(W, { children: [
2374
2374
  "Unpublish ",
2375
2375
  /* @__PURE__ */ G("strong", { children: e.name }),
2376
2376
  " from \"",
2377
2377
  r,
2378
2378
  "\"? The request is submitted for admin approval."
2379
- ] }), a = B?.unpublishSelectFolderMessage?.(e.name) ?? /* @__PURE__ */ K(W, { children: [
2379
+ ] }), a = V?.unpublishSelectFolderMessage?.(e.name) ?? /* @__PURE__ */ K(W, { children: [
2380
2380
  "Choose which folder to unpublish ",
2381
2381
  /* @__PURE__ */ G("strong", { children: e.name }),
2382
2382
  " from. The request is submitted for admin approval."
2383
2383
  ] });
2384
2384
  return {
2385
- title: B?.unpublishConfirmTitle ?? t,
2385
+ title: V?.unpublishConfirmTitle ?? t,
2386
2386
  message: n ? i : a,
2387
- consequences: B?.unpublishConfirmConsequences ?? yr,
2387
+ consequences: V?.unpublishConfirmConsequences ?? br,
2388
2388
  confirmLabel: t,
2389
- loadingStatusLabel: B?.unpublishingStatusLabel ?? "Requesting unpublish",
2390
- variant: X.Danger
2389
+ loadingStatusLabel: V?.unpublishingStatusLabel ?? "Requesting unpublish",
2390
+ variant: bt.Danger
2391
2391
  };
2392
2392
  }
2393
2393
  case Y.Logout: {
2394
- let e = B?.logoutActionLabel ?? "Log out";
2394
+ let e = V?.logoutActionLabel ?? "Log out";
2395
2395
  return {
2396
2396
  title: e,
2397
- message: B?.logoutConfirmMessage ?? "Are you sure you want to log out?",
2397
+ message: V?.logoutConfirmMessage ?? "Are you sure you want to log out?",
2398
2398
  consequences: void 0,
2399
2399
  confirmLabel: e,
2400
- loadingStatusLabel: B?.loggingOutStatusLabel ?? "Logging out",
2401
- variant: X.Info
2400
+ loadingStatusLabel: V?.loggingOutStatusLabel ?? "Logging out",
2401
+ variant: bt.Info
2402
2402
  };
2403
2403
  }
2404
2404
  case Y.DeleteApiKey: {
2405
- let e = B?.deleteActionLabel ?? "Delete", t = Dt ?? b.User;
2405
+ let e = V?.deleteActionLabel ?? "Delete", t = Ot ?? b.User;
2406
2406
  return {
2407
2407
  title: e,
2408
- message: (B?.deleteApiKeyConfirmMessage ?? Sr)(t),
2408
+ message: (V?.deleteApiKeyConfirmMessage ?? Cr)(t),
2409
2409
  consequences: void 0,
2410
2410
  confirmLabel: e,
2411
- loadingStatusLabel: B?.deletingStatusLabel ?? "Deleting",
2412
- variant: X.Danger,
2413
- cardVariant: X.Info
2411
+ loadingStatusLabel: V?.deletingStatusLabel ?? "Deleting",
2412
+ variant: bt.Danger,
2413
+ cardVariant: bt.Info
2414
2414
  };
2415
2415
  }
2416
2416
  default: return null;
2417
2417
  }
2418
2418
  }, [
2419
- Ct,
2419
+ Tt,
2420
2420
  e.name,
2421
- Dt,
2422
- B,
2421
+ Ot,
2422
+ V,
2423
2423
  Vt,
2424
2424
  Ut
2425
- ]), hn = mn != null, gn = Ct === Y.Unpublish && pr(Vt, jt) == null, _n = hn || Be || xt, vn = e.credentials == null ? "" : (B?.credentialsManagementTitle ?? xr)(e.credentials.authenticationType), yn = hn ? {
2425
+ ]), hn = mn != null, gn = Tt === Y.Unpublish && mr(Vt, Mt) == null, _n = hn || ze || Ct, vn = e.credentials == null ? "" : (V?.credentialsManagementTitle ?? Sr)(e.credentials.authenticationType), yn = hn ? {
2426
2426
  title: mn.title,
2427
- isBackDisabled: Tt,
2427
+ isBackDisabled: Et,
2428
2428
  onBack: Kt
2429
- } : Be ? {
2430
- title: un,
2431
- isBackDisabled: Z.isSubmitting,
2429
+ } : ze ? {
2430
+ title: ln,
2431
+ isBackDisabled: J.isSubmitting,
2432
2432
  onBack: Yt
2433
- } : xt ? {
2433
+ } : Ct ? {
2434
2434
  title: vn,
2435
2435
  isBackDisabled: !1,
2436
- onBack: Ft
2436
+ onBack: Q
2437
2437
  } : null, bn = yn?.title ?? an;
2438
2438
  return /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", {
2439
- style: Pe,
2440
- className: j("fixed inset-0 z-50 transition-opacity duration-300", kn.backdrop, n ? "opacity-100" : "pointer-events-none opacity-0"),
2439
+ style: Me,
2440
+ className: M("fixed inset-0 z-50 transition-opacity duration-300", An.backdrop, n ? "opacity-100" : "pointer-events-none opacity-0"),
2441
2441
  onClick: o,
2442
2442
  "aria-hidden": "true"
2443
2443
  }), /* @__PURE__ */ K("div", {
2444
2444
  role: "dialog",
2445
2445
  "aria-modal": "true",
2446
2446
  "aria-label": bn,
2447
- style: Pe,
2448
- className: j("fixed inset-y-0 end-0 z-50 flex flex-col overflow-hidden mobile:w-full", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", kn.panel, n ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
2447
+ style: Me,
2448
+ className: M("fixed inset-y-0 end-0 z-50 flex flex-col overflow-hidden mobile:w-full", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", An.panel, n ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
2449
2449
  children: [
2450
2450
  /* @__PURE__ */ K("div", {
2451
2451
  className: "flex shrink-0 items-center gap-2 px-6 py-3",
2452
2452
  children: [yn != null && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(be, {
2453
2453
  icon: /* @__PURE__ */ G(Ge, {
2454
2454
  className: "rtl:scale-x-[-1]",
2455
- stroke: z
2455
+ stroke: B
2456
2456
  }),
2457
2457
  "aria-label": dn,
2458
2458
  disabled: yn.isBackDisabled,
2459
2459
  onClick: yn.onBack
2460
2460
  }), /* @__PURE__ */ G("span", {
2461
- className: j("flex-1", Ee, kn.publishTitle),
2461
+ className: M("flex-1", Te, An.publishTitle),
2462
2462
  children: yn.title
2463
2463
  })] }), yn == null && /* @__PURE__ */ K(W, { children: [
2464
2464
  /* @__PURE__ */ G("div", { className: "flex-1" }),
2465
- !a && c?.(e) !== !1 && /* @__PURE__ */ G(zt, {
2466
- isStarred: Fe,
2467
- ariaLabel: cn,
2468
- onClick: $t
2465
+ !a && c?.(e) !== !1 && /* @__PURE__ */ G(Bt, {
2466
+ isStarred: Pe,
2467
+ ariaLabel: sn,
2468
+ onClick: Zt
2469
2469
  }),
2470
2470
  /* @__PURE__ */ G(pe, {
2471
2471
  onClose: o,
@@ -2474,132 +2474,132 @@ var q = /* @__PURE__ */ function(e) {
2474
2474
  })
2475
2475
  ] })]
2476
2476
  }),
2477
- /* @__PURE__ */ G("div", { className: j("shrink-0", kn.divider) }),
2477
+ /* @__PURE__ */ G("div", { className: M("shrink-0", An.divider) }),
2478
2478
  /* @__PURE__ */ K("div", {
2479
- className: j("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", kn.content),
2479
+ className: M("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", An.content),
2480
2480
  children: [
2481
- hn && /* @__PURE__ */ G(fn, {
2481
+ hn && /* @__PURE__ */ G(pn, {
2482
2482
  item: e,
2483
2483
  message: mn.message,
2484
2484
  consequences: mn.consequences,
2485
2485
  variant: mn.cardVariant ?? mn.variant,
2486
- messageClassName: Me,
2487
- children: Ct === Y.Unpublish && Vt.length > 1 && /* @__PURE__ */ G(je, {
2488
- ariaLabel: B?.unpublishFolderGroupAriaLabel ?? "Published folders",
2489
- value: jt ?? void 0,
2490
- onChange: Mt,
2491
- disabled: Tt,
2486
+ messageClassName: Ae,
2487
+ children: Tt === Y.Unpublish && Vt.length > 1 && /* @__PURE__ */ G(je, {
2488
+ ariaLabel: V?.unpublishFolderGroupAriaLabel ?? "Published folders",
2489
+ value: Mt ?? void 0,
2490
+ onChange: Nt,
2491
+ disabled: Et,
2492
2492
  items: Vt.map((e) => ({
2493
2493
  value: e.key,
2494
2494
  label: Ut(e.key)
2495
2495
  })),
2496
- radioClassName: Me
2496
+ radioClassName: Ae
2497
2497
  })
2498
2498
  }),
2499
- !hn && !Be && xt && /* @__PURE__ */ G(On, {
2499
+ !hn && !ze && Ct && /* @__PURE__ */ G(kn, {
2500
2500
  item: e,
2501
- onLogin: Se,
2501
+ onLogin: xe,
2502
2502
  onRequestLogout: Lt,
2503
2503
  onRequestDeleteApiKey: Gt,
2504
- texts: B,
2505
- detailsStyles: we
2504
+ texts: V,
2505
+ detailsStyles: Ce
2506
2506
  }),
2507
- !hn && Be && /* @__PURE__ */ G("div", {
2507
+ !hn && ze && /* @__PURE__ */ G("div", {
2508
2508
  className: "p-[22px]",
2509
- children: /* @__PURE__ */ G(mt, {
2509
+ children: /* @__PURE__ */ G(ht, {
2510
2510
  resource: {
2511
2511
  title: e.name,
2512
2512
  version: e.version,
2513
2513
  type: e.type,
2514
2514
  iconUrl: e.iconUrl
2515
2515
  },
2516
- history: He,
2517
- isHistoryLoading: We,
2518
- hasHistoryError: qe,
2519
- folderItems: Z.folderItems,
2520
- selectedFolderPath: Z.selectedFolderPath,
2521
- onSelectedFolderPathChange: Z.setSelectedFolderPath,
2522
- onCreateFolder: Z.handleCreateFolder,
2516
+ history: Ve,
2517
+ isHistoryLoading: Ue,
2518
+ hasHistoryError: Ke,
2519
+ folderItems: J.folderItems,
2520
+ selectedFolderPath: J.selectedFolderPath,
2521
+ onSelectedFolderPathChange: J.setSelectedFolderPath,
2522
+ onCreateFolder: J.handleCreateFolder,
2523
2523
  expandedPaths: v,
2524
2524
  onExpandedPathsChange: y,
2525
2525
  loadingPaths: S,
2526
- hasExistingPublicationInFolder: Z.hasExistingPublicationInFolder,
2527
- hasWriteAccess: Z.hasWriteAccess,
2528
- isSubmitting: Z.isSubmitting,
2529
- hasSubmitError: Z.hasSubmitError,
2530
- author: Z.author,
2531
- onAuthorChange: Z.setAuthor,
2532
- publishCredentials: Z.publishCredentials,
2533
- onPublishCredentialsChange: yt ? Z.setPublishCredentials : void 0,
2534
- rules: Z.rules,
2535
- onRulesChange: Z.setRules,
2526
+ hasExistingPublicationInFolder: J.hasExistingPublicationInFolder,
2527
+ hasWriteAccess: J.hasWriteAccess,
2528
+ isSubmitting: J.isSubmitting,
2529
+ hasSubmitError: J.hasSubmitError,
2530
+ author: J.author,
2531
+ onAuthorChange: J.setAuthor,
2532
+ publishCredentials: J.publishCredentials,
2533
+ onPublishCredentialsChange: xt ? J.setPublishCredentials : void 0,
2534
+ rules: J.rules,
2535
+ onRulesChange: J.setRules,
2536
2536
  ruleSourceOptions: A,
2537
- isRulesLoading: Z.isRulesLoading,
2538
- hasRulesLoadError: Z.hasRulesLoadError,
2537
+ isRulesLoading: J.isRulesLoading,
2538
+ hasRulesLoadError: J.hasRulesLoadError,
2539
2539
  labels: k,
2540
2540
  styles: { colors: {
2541
- summaryVersionTagBorder: V?.versionTagBorder,
2542
- summaryVersionTagBackground: V?.versionTagBackground,
2543
- summaryVersionTagText: V?.versionTagText
2541
+ summaryVersionTagBorder: H?.versionTagBorder,
2542
+ summaryVersionTagBackground: H?.versionTagBackground,
2543
+ summaryVersionTagText: H?.versionTagText
2544
2544
  } }
2545
2545
  })
2546
2546
  }),
2547
2547
  !_n && /* @__PURE__ */ K(W, { children: [
2548
- /* @__PURE__ */ G(Bn, {
2548
+ /* @__PURE__ */ G(Vn, {
2549
2549
  item: e,
2550
2550
  onUseInChat: l,
2551
2551
  isPrimaryActionVisible: u,
2552
2552
  onShare: d,
2553
2553
  shareOverlay: te,
2554
2554
  isShareVisible: ne,
2555
- isSharePrimary: ie,
2555
+ isSharePrimary: re,
2556
2556
  isPublishVisible: f,
2557
2557
  isPublishPrimary: p,
2558
2558
  onOpenPublish: Jt,
2559
- isUnpublishVisible: xe,
2559
+ isUnpublishVisible: ye,
2560
2560
  hasPublishedFolders: Ht,
2561
- isPublishHistoryResolved: h == null || Ye,
2562
- onRequestPublishHistory: q,
2563
- onOpenUnpublish: ye ? Wt : void 0,
2564
- onEdit: ae,
2565
- onDownload: oe,
2566
- isDownloadVisible: se,
2567
- isDownloadPrimary: ce,
2568
- onDelete: fe ? It : void 0,
2569
- onUnshare: R ? Rt : void 0,
2570
- isUnshareVisible: me,
2571
- onRevokeShare: he ? Bt : void 0,
2572
- onFetchRecipientsCount: _e,
2573
- isRevokeShareVisible: ve,
2574
- onLogin: Se,
2575
- onLogout: Ce,
2576
- onOpenCredentialsManagement: Pt,
2561
+ isPublishHistoryResolved: h == null || Je,
2562
+ onRequestPublishHistory: vt,
2563
+ onOpenUnpublish: ve ? Wt : void 0,
2564
+ onEdit: ie,
2565
+ onDownload: ae,
2566
+ isDownloadVisible: oe,
2567
+ isDownloadPrimary: se,
2568
+ onDelete: de ? It : void 0,
2569
+ onUnshare: fe ? Rt : void 0,
2570
+ isUnshareVisible: z,
2571
+ onRevokeShare: me ? zt : void 0,
2572
+ onFetchRecipientsCount: he,
2573
+ isRevokeShareVisible: _e,
2574
+ onLogin: xe,
2575
+ onLogout: Se,
2576
+ onOpenCredentialsManagement: Ft,
2577
2577
  onRequestLogout: Lt,
2578
- texts: B,
2579
- detailsStyles: we,
2578
+ texts: V,
2579
+ detailsStyles: Ce,
2580
2580
  isReadonly: a
2581
2581
  }),
2582
2582
  e.credentials != null && (() => {
2583
2583
  let t = m(e.credentials);
2584
2584
  return t != null && /* @__PURE__ */ G("div", {
2585
2585
  className: "px-6",
2586
- children: /* @__PURE__ */ G(wn, {
2586
+ children: /* @__PURE__ */ G(Tn, {
2587
2587
  state: t,
2588
2588
  authenticationType: e.credentials.authenticationType,
2589
- texts: B
2589
+ texts: V
2590
2590
  })
2591
2591
  });
2592
2592
  })(),
2593
- !a && n && de?.(e),
2593
+ !a && n && ue?.(e),
2594
2594
  /* @__PURE__ */ K("div", {
2595
2595
  className: "flex items-center px-6",
2596
2596
  children: [/* @__PURE__ */ G(Ie, {
2597
2597
  tabs: en,
2598
- activeTabId: Re,
2599
- onTabChange: ze
2598
+ activeTabId: Le,
2599
+ onTabChange: Re
2600
2600
  }), i && /* @__PURE__ */ G("div", {
2601
2601
  role: "status",
2602
- "aria-label": B?.detailsLoadingAriaLabel ?? "Loading details",
2602
+ "aria-label": V?.detailsLoadingAriaLabel ?? "Loading details",
2603
2603
  className: "shrink-0",
2604
2604
  children: /* @__PURE__ */ G(Ne, {
2605
2605
  showTitle: !1,
@@ -2608,95 +2608,95 @@ var q = /* @__PURE__ */ function(e) {
2608
2608
  width: "72px"
2609
2609
  },
2610
2610
  active: !0,
2611
- color: kn.skeletonColor
2611
+ color: An.skeletonColor
2612
2612
  })
2613
2613
  })]
2614
2614
  }),
2615
2615
  /* @__PURE__ */ K("div", {
2616
- className: j("min-h-0 flex-1 overflow-y-auto", Re !== J.Overview && "px-6"),
2616
+ className: M("min-h-0 flex-1 overflow-y-auto", Le !== q.Overview && "px-6"),
2617
2617
  children: [
2618
- Re === J.About && /* @__PURE__ */ G(Vn, {
2618
+ Le === q.About && /* @__PURE__ */ G(Hn, {
2619
2619
  content: e.description,
2620
2620
  topics: e.topics,
2621
- detailsStyles: we
2621
+ detailsStyles: Ce
2622
2622
  }),
2623
- Re === J.Content && /* @__PURE__ */ G(Kn, {
2624
- content: Qe?.content ?? "",
2623
+ Le === q.Content && /* @__PURE__ */ G(qn, {
2624
+ content: Ze?.content ?? "",
2625
2625
  filePreview: ft(),
2626
- filePreviewContent: _t,
2627
- description: Qe?.description ?? e.description,
2628
- files: Qe?.files,
2626
+ filePreviewContent: pt,
2627
+ description: Ze?.description ?? e.description,
2628
+ files: Ze?.files,
2629
2629
  selectedFileId: dt,
2630
2630
  onSelectFile: (e) => void ut(e),
2631
- isFileLoading: nt,
2632
- expandedFolderIds: it,
2631
+ isFileLoading: tt,
2632
+ expandedFolderIds: rt,
2633
2633
  onToggleFolder: lt,
2634
- isFileSelectorOpen: ot,
2635
- onFileSelectorOpenChange: H,
2636
- fileSelectorAriaLabel: B?.contentFileSelectorAriaLabel,
2637
- fileCountLabel: B?.contentFileCountLabel,
2638
- fileLoadingLabel: B?.contentFileLoadingLabel,
2639
- fileUnsupportedLabel: B?.contentFileUnsupportedLabel,
2640
- detailsStyles: we
2634
+ isFileSelectorOpen: U,
2635
+ onFileSelectorOpenChange: at,
2636
+ fileSelectorAriaLabel: V?.contentFileSelectorAriaLabel,
2637
+ fileCountLabel: V?.contentFileCountLabel,
2638
+ fileLoadingLabel: V?.contentFileLoadingLabel,
2639
+ fileUnsupportedLabel: V?.contentFileUnsupportedLabel,
2640
+ detailsStyles: Ce
2641
2641
  }),
2642
- Re === J.Overview && /* @__PURE__ */ G(ar, {
2642
+ Le === q.Overview && /* @__PURE__ */ G(or, {
2643
2643
  sections: e.details?.overview?.sections,
2644
- sectionClassName: De,
2645
- labelClassName: Oe,
2646
- valueClassName: ke,
2647
- valueTrueClassName: Ae,
2644
+ sectionClassName: Ee,
2645
+ labelClassName: De,
2646
+ valueClassName: Oe,
2647
+ valueTrueClassName: ke,
2648
2648
  yesLabel: nn,
2649
2649
  noLabel: rn
2650
2650
  }),
2651
- Re === J.Pricing && /* @__PURE__ */ G(or, {
2651
+ Le === q.Pricing && /* @__PURE__ */ G(sr, {
2652
2652
  pricing: e.details?.pricing,
2653
- pricesSectionLabel: B?.pricingPricesSectionLabel,
2654
- limitsSectionLabel: B?.pricingLimitsSectionLabel
2653
+ pricesSectionLabel: V?.pricingPricesSectionLabel,
2654
+ limitsSectionLabel: V?.pricingLimitsSectionLabel
2655
2655
  }),
2656
- Re === J.Limits && /* @__PURE__ */ G(ir, {
2656
+ Le === q.Limits && /* @__PURE__ */ G(ar, {
2657
2657
  limits: e.details?.limits,
2658
- footerNote: Te
2658
+ footerNote: we
2659
2659
  }),
2660
- Re === J.Api && fr(e.details?.api) && /* @__PURE__ */ G(sn, {
2660
+ Le === q.Api && pr(e.details?.api) && /* @__PURE__ */ G(cn, {
2661
2661
  api: e.details?.api,
2662
- resourceSectionLabel: B?.apiResourceSectionLabel,
2663
- snippetSectionLabel: B?.apiSnippetSectionLabel,
2664
- modelIdLabel: B?.apiModelIdLabel,
2665
- endpointLabel: B?.apiEndpointLabel,
2666
- endpointSectionLabel: B?.apiEndpointSectionLabel,
2667
- requestExampleLabel: B?.apiRequestExampleLabel,
2668
- responseSchemaLabel: B?.apiResponseSchemaLabel,
2669
- copyAriaLabel: B?.copyCodeAriaLabel,
2670
- copiedStatusLabel: B?.copiedCodeStatusLabel
2662
+ resourceSectionLabel: V?.apiResourceSectionLabel,
2663
+ snippetSectionLabel: V?.apiSnippetSectionLabel,
2664
+ modelIdLabel: V?.apiModelIdLabel,
2665
+ endpointLabel: V?.apiEndpointLabel,
2666
+ endpointSectionLabel: V?.apiEndpointSectionLabel,
2667
+ requestExampleLabel: V?.apiRequestExampleLabel,
2668
+ responseSchemaLabel: V?.apiResponseSchemaLabel,
2669
+ copyAriaLabel: V?.copyCodeAriaLabel,
2670
+ copiedStatusLabel: V?.copiedCodeStatusLabel
2671
2671
  }),
2672
- Re === J.Tools && /* @__PURE__ */ G(ur, { tools: e.details?.tools })
2672
+ Le === q.Tools && /* @__PURE__ */ G(dr, { tools: e.details?.tools })
2673
2673
  ]
2674
2674
  })
2675
2675
  ] })
2676
2676
  ]
2677
2677
  }),
2678
- hn && /* @__PURE__ */ G(ln, {
2678
+ hn && /* @__PURE__ */ G(un, {
2679
2679
  confirmLabel: mn.confirmLabel,
2680
- cancelLabel: pn,
2680
+ cancelLabel: fn,
2681
2681
  variant: mn.variant,
2682
- isLoading: Tt,
2682
+ isLoading: Et,
2683
2683
  isConfirmDisabled: gn,
2684
2684
  loadingStatusLabel: mn.loadingStatusLabel,
2685
2685
  onConfirm: qt,
2686
2686
  onCancel: Kt
2687
2687
  }),
2688
- !hn && Be && /* @__PURE__ */ G(pt, {
2688
+ !hn && ze && /* @__PURE__ */ G(mt, {
2689
2689
  version: e.version,
2690
- hasExistingPublicationInFolder: Z.hasExistingPublicationInFolder,
2691
- isSubmitDisabled: bt.isSubmitDisabled,
2692
- isSubmitLoading: bt.isSubmitLoading,
2690
+ hasExistingPublicationInFolder: J.hasExistingPublicationInFolder,
2691
+ isSubmitDisabled: St.isSubmitDisabled,
2692
+ isSubmitLoading: St.isSubmitLoading,
2693
2693
  onCancel: Yt,
2694
2694
  onSubmit: Xt,
2695
2695
  labels: k
2696
2696
  })
2697
2697
  ]
2698
2698
  })] });
2699
- }, Tr = {
2699
+ }, Er = {
2700
2700
  pageNav: "_pageNav_14qfn_1",
2701
2701
  navBtn: "_navBtn_14qfn_6",
2702
2702
  titleText: "_titleText_14qfn_23",
@@ -2711,12 +2711,12 @@ var q = /* @__PURE__ */ function(e) {
2711
2711
  favFadeIn: "_favFadeIn_14qfn_1",
2712
2712
  cardLeaving: "_cardLeaving_14qfn_54",
2713
2713
  cardFadeOut: "_cardFadeOut_14qfn_1"
2714
- }, Er = ({ 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 }) => {
2715
- let [m, h] = I(t), [g, _] = I(!1), v = (t) => {
2714
+ }, Dr = ({ 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 }) => {
2715
+ let [m, h] = L(t), [g, _] = L(!1), v = (t) => {
2716
2716
  t.stopPropagation();
2717
2717
  let r = !m;
2718
2718
  h(r), r ? n?.(e.id, r) : _(!0);
2719
- }, y = i && !g ? () => i(e) : void 0, b = M((t) => {
2719
+ }, y = i && !g ? () => i(e) : void 0, b = N((t) => {
2720
2720
  !i || g || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), i(e));
2721
2721
  }, [
2722
2722
  i,
@@ -2728,7 +2728,7 @@ var q = /* @__PURE__ */ function(e) {
2728
2728
  role: y == null ? void 0 : "button",
2729
2729
  tabIndex: y == null ? void 0 : 0,
2730
2730
  "aria-label": e.name,
2731
- className: j("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", g && Tr.cardLeaving, f && Tr.selectedCard, Ct.favoriteCard),
2731
+ className: M("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", g && Er.cardLeaving, f && Er.selectedCard, Z.favoriteCard),
2732
2732
  onClick: y,
2733
2733
  onKeyDown: b,
2734
2734
  onAnimationEnd: g ? (t) => {
@@ -2736,20 +2736,20 @@ var q = /* @__PURE__ */ function(e) {
2736
2736
  } : void 0,
2737
2737
  children: [
2738
2738
  f && /* @__PURE__ */ G(Ue, {
2739
- size: R.SM,
2740
- className: j("absolute end-3 top-3 shrink-0", Tr.selectedCheck),
2739
+ size: z.SM,
2740
+ className: M("absolute end-3 top-3 shrink-0", Er.selectedCheck),
2741
2741
  "aria-hidden": !0,
2742
- stroke: z
2742
+ stroke: B
2743
2743
  }),
2744
2744
  /* @__PURE__ */ G("div", {
2745
2745
  className: "flex min-w-0 flex-1 flex-col items-start gap-1",
2746
- children: /* @__PURE__ */ G(Ft, {
2746
+ children: /* @__PURE__ */ G(It, {
2747
2747
  icon: e.iconUrl,
2748
2748
  type: e.type,
2749
2749
  name: e.name,
2750
2750
  version: e.version,
2751
2751
  lastUsed: e.lastUsed,
2752
- size: Z.LG,
2752
+ size: xt.LG,
2753
2753
  query: l,
2754
2754
  className: "min-w-0 self-stretch",
2755
2755
  styles: {
@@ -2760,13 +2760,13 @@ var q = /* @__PURE__ */ function(e) {
2760
2760
  lastUsedClassName: c
2761
2761
  }
2762
2762
  },
2763
- iconOverlay: /* @__PURE__ */ G(Lt, {
2763
+ iconOverlay: /* @__PURE__ */ G(Rt, {
2764
2764
  credentials: e.credentials,
2765
2765
  loggedOutLabel: p
2766
2766
  })
2767
2767
  })
2768
2768
  }),
2769
- r?.(e) !== !1 && /* @__PURE__ */ G(zt, {
2769
+ r?.(e) !== !1 && /* @__PURE__ */ G(Bt, {
2770
2770
  isStarred: m,
2771
2771
  size: ge.Small,
2772
2772
  onClick: v,
@@ -2775,7 +2775,7 @@ var q = /* @__PURE__ */ function(e) {
2775
2775
  })
2776
2776
  ]
2777
2777
  });
2778
- }, Dr = 2, Or = (e) => {
2778
+ }, Or = 2, kr = (e) => {
2779
2779
  let t = e.getBoundingClientRect(), n = window.scrollX, r = window.scrollY, i = window.getComputedStyle(e).transform;
2780
2780
  if (!i || i === "none") return new DOMRect(t.x + n, t.y + r, t.width, t.height);
2781
2781
  try {
@@ -2784,8 +2784,8 @@ var q = /* @__PURE__ */ function(e) {
2784
2784
  } catch {
2785
2785
  return new DOMRect(t.x + n, t.y + r, t.width, t.height);
2786
2786
  }
2787
- }, kr = ({ 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 }) => {
2788
- let h = o?.typography?.titleClassName ?? "dial-body-semi-text", g = o?.typography?.countClassName ?? "dial-tiny-semi-text", _ = re({
2787
+ }, Ar = ({ 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 }) => {
2788
+ let h = o?.typography?.titleClassName ?? "dial-body-semi-text", g = o?.typography?.countClassName ?? "dial-tiny-semi-text", _ = j({
2789
2789
  "--cat-fav-title-text": o?.colors?.titleText,
2790
2790
  "--cat-fav-count-text": o?.colors?.countText,
2791
2791
  "--cat-fav-selected-check": o?.colors?.selectedCheckIcon,
@@ -2797,49 +2797,49 @@ var q = /* @__PURE__ */ function(e) {
2797
2797
  "--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
2798
2798
  "--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
2799
2799
  "--cat-fav-page-nav-bg": o?.colors?.pageNavBackground
2800
- }), v = P(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = I(1), x = St(), S = x * Dr, C = (y - 1) * S, w = P(() => v.slice(C, C + S), [
2800
+ }), v = F(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = L(1), x = Tt(), S = x * Or, C = (y - 1) * S, w = F(() => v.slice(C, C + S), [
2801
2801
  v,
2802
2802
  C,
2803
2803
  S
2804
- ]), T = Math.ceil(v.length / S), E = t ?? e.length, O = F(null), k = F(null), A = F(null), [ee, te] = I(), [ne, ie] = I(), ae = F(x);
2805
- N(() => {
2806
- ae.current !== x && (ae.current = x, b(1), te(void 0), ie(void 0));
2807
- }, [x]), N(() => {
2804
+ ]), T = Math.ceil(v.length / S), E = t ?? e.length, O = I(null), k = I(null), A = I(null), [ee, te] = L(), [ne, re] = L(), ie = I(x);
2805
+ P(() => {
2806
+ ie.current !== x && (ie.current = x, b(1), te(void 0), re(void 0));
2807
+ }, [x]), P(() => {
2808
2808
  y > T && T > 0 && b(T);
2809
- }, [y, T]), N(() => {
2810
- T <= 1 && (ee !== void 0 || ne !== void 0) && (te(void 0), ie(void 0));
2809
+ }, [y, T]), P(() => {
2810
+ T <= 1 && (ee !== void 0 || ne !== void 0) && (te(void 0), re(void 0));
2811
2811
  }, [
2812
2812
  T,
2813
2813
  ee,
2814
2814
  ne
2815
- ]), ce(() => {
2816
- !A.current || !k.current || T <= 1 || y !== 1 || ee !== void 0 || (te(A.current.offsetHeight), ie(k.current.offsetHeight));
2815
+ ]), se(() => {
2816
+ !A.current || !k.current || T <= 1 || y !== 1 || ee !== void 0 || (te(A.current.offsetHeight), re(k.current.offsetHeight));
2817
2817
  }, [
2818
2818
  T,
2819
2819
  y,
2820
2820
  ee
2821
2821
  ]);
2822
- let oe = F(/* @__PURE__ */ new Map()), M = F(y), se = F(x), le = F(0), L = F(!1);
2823
- return ce(() => {
2822
+ let ae = I(/* @__PURE__ */ new Map()), N = I(y), oe = I(x), ce = I(0), R = I(!1);
2823
+ return se(() => {
2824
2824
  if (!A.current || s) return;
2825
- if (O.current && !L.current) {
2825
+ if (O.current && !R.current) {
2826
2826
  let e = O.current;
2827
2827
  e.style.height = "", e.style.transition = "";
2828
2828
  }
2829
- let e = M.current !== y, t = se.current !== x;
2830
- M.current = y, se.current = x;
2829
+ let e = N.current !== y, t = oe.current !== x;
2830
+ N.current = y, oe.current = x;
2831
2831
  let n = A.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
2832
2832
  if (n.forEach((e) => {
2833
- r.set(e.dataset.cardId, Or(e));
2833
+ r.set(e.dataset.cardId, kr(e));
2834
2834
  }), !e && !t) {
2835
- let e = k.current, t = le.current, i = 0;
2835
+ let e = k.current, t = ce.current, i = 0;
2836
2836
  if (e) {
2837
2837
  let t = e.style.height;
2838
2838
  t && (e.style.height = ""), i = e.offsetHeight, t && (e.style.height = t);
2839
2839
  }
2840
2840
  let a = e != null && t > 0 && Math.abs(i - t) > 2, o = i > t ? 280 : 220, s = [];
2841
2841
  if (n.forEach((e) => {
2842
- let t = e.dataset.cardId, n = oe.current.get(t), i = r.get(t);
2842
+ let t = e.dataset.cardId, n = ae.current.get(t), i = r.get(t);
2843
2843
  if (!n || !i) return;
2844
2844
  let o = n.left - i.left, c = n.top - i.top;
2845
2845
  !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));
@@ -2855,30 +2855,30 @@ var q = /* @__PURE__ */ function(e) {
2855
2855
  e.addEventListener("transitionend", t);
2856
2856
  }
2857
2857
  }
2858
- if (oe.current = r, k.current) {
2858
+ if (ae.current = r, k.current) {
2859
2859
  let e = k.current, t = e.style.height ? parseFloat(e.style.height) : NaN;
2860
- le.current = Number.isNaN(t) ? e.offsetHeight : t;
2860
+ ce.current = Number.isNaN(t) ? e.offsetHeight : t;
2861
2861
  }
2862
2862
  }, [
2863
2863
  w,
2864
2864
  y,
2865
2865
  x,
2866
2866
  s
2867
- ]), ce(() => {
2867
+ ]), se(() => {
2868
2868
  let e = O.current;
2869
2869
  if (!e) return;
2870
2870
  let t = e.offsetHeight;
2871
2871
  if (t === 0) return;
2872
- L.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`;
2872
+ 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`;
2873
2873
  let n = (t) => {
2874
2874
  t.target !== e || t.propertyName !== "height" || r();
2875
2875
  }, r = () => {
2876
- L.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
2876
+ R.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
2877
2877
  }, i = setTimeout(r, 400);
2878
2878
  return e.addEventListener("transitionend", n), () => {
2879
2879
  clearTimeout(i), e.removeEventListener("transitionend", n);
2880
2880
  };
2881
- }, []), ce(() => {
2881
+ }, []), se(() => {
2882
2882
  if (!s || !O.current) return;
2883
2883
  let e = O.current, t = e.offsetHeight;
2884
2884
  t !== 0 && (e.style.height = `${t}px`, e.offsetHeight, e.style.transition = "height 260ms ease-in", e.style.height = "0px");
@@ -2886,7 +2886,7 @@ var q = /* @__PURE__ */ function(e) {
2886
2886
  ref: O,
2887
2887
  children: /* @__PURE__ */ K("section", {
2888
2888
  ref: k,
2889
- className: j("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", Tr.section, s && Tr.sectionLeaving),
2889
+ className: M("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", Er.section, s && Er.sectionLeaving),
2890
2890
  style: {
2891
2891
  ..._,
2892
2892
  minHeight: ne
@@ -2897,26 +2897,26 @@ var q = /* @__PURE__ */ function(e) {
2897
2897
  children: [/* @__PURE__ */ G(D, {
2898
2898
  title: n,
2899
2899
  postfix: E,
2900
- titleClassName: j(h, Tr.titleText),
2901
- postfixClassName: j(g, Tr.countText),
2900
+ titleClassName: M(h, Er.titleText),
2901
+ postfixClassName: M(g, Er.countText),
2902
2902
  trailing: T > 1 ? /* @__PURE__ */ K("div", {
2903
- className: j("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", Tr.pageNav),
2903
+ className: M("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", Er.pageNav),
2904
2904
  children: [
2905
2905
  /* @__PURE__ */ G(be, {
2906
2906
  size: ge.Small,
2907
2907
  "aria-label": l,
2908
2908
  disabled: y === 1,
2909
2909
  onClick: () => b((e) => e - 1),
2910
- className: j("rounded-full", Tr.navBtn),
2910
+ className: M("rounded-full", Er.navBtn),
2911
2911
  icon: /* @__PURE__ */ G(Ge, {
2912
2912
  size: 14,
2913
2913
  "aria-hidden": !0,
2914
2914
  className: "rtl:scale-x-[-1]",
2915
- stroke: z
2915
+ stroke: B
2916
2916
  })
2917
2917
  }),
2918
2918
  /* @__PURE__ */ K("span", {
2919
- className: j("min-w-[32px] select-none px-1 text-center", g, Tr.countText),
2919
+ className: M("min-w-[32px] select-none px-1 text-center", g, Er.countText),
2920
2920
  children: [
2921
2921
  y,
2922
2922
  " / ",
@@ -2928,24 +2928,24 @@ var q = /* @__PURE__ */ function(e) {
2928
2928
  "aria-label": u,
2929
2929
  disabled: y === T,
2930
2930
  onClick: () => b((e) => e + 1),
2931
- className: j("rounded-full", Tr.navBtn),
2931
+ className: M("rounded-full", Er.navBtn),
2932
2932
  icon: /* @__PURE__ */ G(Ke, {
2933
2933
  size: 14,
2934
2934
  "aria-hidden": !0,
2935
2935
  className: "rtl:scale-x-[-1]",
2936
- stroke: z
2936
+ stroke: B
2937
2937
  })
2938
2938
  })
2939
2939
  ]
2940
2940
  }) : void 0
2941
2941
  }), /* @__PURE__ */ G("div", {
2942
2942
  ref: A,
2943
- className: j("grid content-start gap-5", Tr.gridPage),
2943
+ className: M("grid content-start gap-5", Er.gridPage),
2944
2944
  style: {
2945
2945
  gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
2946
2946
  minHeight: ee
2947
2947
  },
2948
- children: w.map((e) => /* @__PURE__ */ G(Er, {
2948
+ children: w.map((e) => /* @__PURE__ */ G(Dr, {
2949
2949
  item: e,
2950
2950
  onToggle: r,
2951
2951
  isFavoriteVisible: i,
@@ -2958,7 +2958,7 @@ var q = /* @__PURE__ */ function(e) {
2958
2958
  })]
2959
2959
  })
2960
2960
  });
2961
- }, Ar = {
2961
+ }, jr = {
2962
2962
  listContainer: "_listContainer_lksnp_1",
2963
2963
  gridClip: "_gridClip_lksnp_6",
2964
2964
  favHeader: "_favHeader_lksnp_35",
@@ -2967,19 +2967,19 @@ var q = /* @__PURE__ */ function(e) {
2967
2967
  selectedCheck: "_selectedCheck_lksnp_47",
2968
2968
  starToggleOff: "_starToggleOff_lksnp_51",
2969
2969
  selectedRow: "_selectedRow_lksnp_64"
2970
- }, jr = ({ data: e }) => e ? /* @__PURE__ */ G("div", {
2970
+ }, Mr = ({ data: e }) => e ? /* @__PURE__ */ G("div", {
2971
2971
  className: "flex h-full items-center",
2972
2972
  children: /* @__PURE__ */ G(T, { type: e.type })
2973
- }) : null, Mr = " / ", Nr = ({ data: e, context: t }) => {
2973
+ }) : null, Nr = " / ", Pr = ({ data: e, context: t }) => {
2974
2974
  if (!e || e.folder.length === 0) return null;
2975
- let n = e.folder.join(Mr), 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";
2975
+ let n = e.folder.join(Nr), 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";
2976
2976
  return /* @__PURE__ */ K("div", {
2977
2977
  className: "flex h-full w-full min-w-0 items-center gap-1.5",
2978
2978
  children: [
2979
2979
  /* @__PURE__ */ G(Ze, {
2980
- size: R.SM,
2981
- stroke: z,
2982
- className: j("shrink-0", Ar.folderIcon),
2980
+ size: z.SM,
2981
+ stroke: B,
2982
+ className: M("shrink-0", jr.folderIcon),
2983
2983
  "aria-hidden": !0
2984
2984
  }),
2985
2985
  /* @__PURE__ */ G(Re, {
@@ -3001,7 +3001,7 @@ var q = /* @__PURE__ */ function(e) {
3001
3001
  })
3002
3002
  ]
3003
3003
  });
3004
- }, Pr = ({ data: e, context: t }) => {
3004
+ }, Fr = ({ data: e, context: t }) => {
3005
3005
  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;
3006
3006
  return e ? /* @__PURE__ */ K("div", {
3007
3007
  className: "flex h-full w-full min-w-0 items-center gap-2.5",
@@ -3012,7 +3012,7 @@ var q = /* @__PURE__ */ function(e) {
3012
3012
  size: 36,
3013
3013
  initialsName: e.name,
3014
3014
  styles: { badgeClassName: "rounded-[10px]" }
3015
- }), /* @__PURE__ */ G(Lt, {
3015
+ }), /* @__PURE__ */ G(Rt, {
3016
3016
  credentials: e.credentials,
3017
3017
  loggedOutLabel: t?.credentialsBadgeLoggedOutLabel
3018
3018
  })]
@@ -3024,42 +3024,42 @@ var q = /* @__PURE__ */ function(e) {
3024
3024
  titleClassName: i,
3025
3025
  className: "min-w-0 flex-1 items-baseline gap-1.5",
3026
3026
  trailing: o ? /* @__PURE__ */ G(Ue, {
3027
- size: R.SM,
3028
- className: j("shrink-0", Ar.selectedCheck),
3027
+ size: z.SM,
3028
+ className: M("shrink-0", jr.selectedCheck),
3029
3029
  "aria-hidden": !0,
3030
- stroke: z
3030
+ stroke: B
3031
3031
  }) : void 0
3032
3032
  })]
3033
3033
  }) : null;
3034
- }, Fr = ({ data: e, context: t }) => {
3035
- let [n, r] = I(e?.isStarred ?? !1);
3036
- return N(() => {
3034
+ }, Ir = ({ data: e, context: t }) => {
3035
+ let [n, r] = L(e?.isStarred ?? !1);
3036
+ return P(() => {
3037
3037
  r(e?.isStarred ?? !1);
3038
3038
  }, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ G("div", {
3039
3039
  className: "flex size-full items-center justify-end",
3040
- children: /* @__PURE__ */ G(zt, {
3040
+ children: /* @__PURE__ */ G(Bt, {
3041
3041
  isStarred: n,
3042
3042
  onClick: (i) => {
3043
3043
  i.stopPropagation();
3044
3044
  let a = !n;
3045
3045
  r(a), t?.onToggleFavorite?.(e.id, a);
3046
3046
  },
3047
- className: n ? void 0 : Ar.starToggleOff
3047
+ className: n ? void 0 : jr.starToggleOff
3048
3048
  })
3049
3049
  });
3050
- }, Ir = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ G("div", {
3050
+ }, Lr = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ G("div", {
3051
3051
  className: "flex h-full w-full min-w-0 items-center",
3052
- children: /* @__PURE__ */ G(Wt, { topics: e.topics })
3053
- }), Lr = {
3052
+ children: /* @__PURE__ */ G(Gt, { topics: e.topics })
3053
+ }), Rr = {
3054
3054
  folder: (e) => e !== x.Model,
3055
3055
  tags: () => !0,
3056
3056
  favorite: () => !0
3057
- }, Rr = (e, t) => Object.fromEntries([
3057
+ }, zr = (e, t) => Object.fromEntries([
3058
3058
  "folder",
3059
3059
  "tags",
3060
3060
  "favorite"
3061
- ].map((n) => [n, (t?.[n] ?? Lr[n])(e)])), zr = (e, t = !1, n) => {
3062
- let r = Rr(e, n);
3061
+ ].map((n) => [n, (t?.[n] ?? Rr[n])(e)])), Br = (e, t = !1, n) => {
3062
+ let r = zr(e, n);
3063
3063
  return [
3064
3064
  {
3065
3065
  headerName: "Name",
@@ -3067,7 +3067,7 @@ var q = /* @__PURE__ */ function(e) {
3067
3067
  minWidth: 220,
3068
3068
  field: "name",
3069
3069
  filter: !1,
3070
- cellRenderer: Pr,
3070
+ cellRenderer: Fr,
3071
3071
  valueGetter: (e) => e.data?.name
3072
3072
  },
3073
3073
  {
@@ -3077,7 +3077,7 @@ var q = /* @__PURE__ */ function(e) {
3077
3077
  field: "type",
3078
3078
  filter: !1,
3079
3079
  sortable: !1,
3080
- cellRenderer: jr,
3080
+ cellRenderer: Mr,
3081
3081
  valueGetter: (e) => e.data?.type
3082
3082
  },
3083
3083
  {
@@ -3087,7 +3087,7 @@ var q = /* @__PURE__ */ function(e) {
3087
3087
  minWidth: 170,
3088
3088
  filter: !1,
3089
3089
  hide: !r.folder,
3090
- cellRenderer: Nr,
3090
+ cellRenderer: Pr,
3091
3091
  valueGetter: (e) => e.data?.folder
3092
3092
  },
3093
3093
  {
@@ -3098,7 +3098,7 @@ var q = /* @__PURE__ */ function(e) {
3098
3098
  filter: !1,
3099
3099
  sortable: !1,
3100
3100
  hide: !r.tags,
3101
- cellRenderer: Ir,
3101
+ cellRenderer: Lr,
3102
3102
  valueGetter: (e) => e.data?.topics
3103
3103
  },
3104
3104
  {
@@ -3110,15 +3110,15 @@ var q = /* @__PURE__ */ function(e) {
3110
3110
  sortable: !1,
3111
3111
  resizable: !1,
3112
3112
  hide: t || !r.favorite,
3113
- headerClass: Ar.favHeader,
3114
- cellRenderer: Fr
3113
+ headerClass: jr.favHeader,
3114
+ cellRenderer: Ir
3115
3115
  }
3116
3116
  ];
3117
- }, Br = 60, Vr = {}, Hr = (e) => e.id, Ur = (e) => e.items.length === 0 ? /* @__PURE__ */ G("div", {
3118
- className: ze("flex size-full flex-col items-center justify-center", Ct.listView),
3117
+ }, Vr = 60, Hr = {}, Ur = (e) => e.id, Wr = (e) => e.items.length === 0 ? /* @__PURE__ */ G("div", {
3118
+ className: ze("flex size-full flex-col items-center justify-center", Z.listView),
3119
3119
  children: /* @__PURE__ */ G(ee, { label: e.emptyStateTitle ?? "No results" })
3120
- }) : /* @__PURE__ */ G(Wr, { ...e }), Wr = ({ 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 }) => {
3121
- let m = a?.typography ?? Vr, h = a?.colors, g = {
3120
+ }) : /* @__PURE__ */ G(Gr, { ...e }), Gr = ({ 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 }) => {
3121
+ let m = a?.typography ?? Hr, h = a?.colors, g = {
3122
3122
  "--cat-list-bg": h?.background,
3123
3123
  "--cat-list-border": h?.border,
3124
3124
  "--cat-list-header-bg": h?.headerBackground,
@@ -3130,15 +3130,15 @@ var q = /* @__PURE__ */ function(e) {
3130
3130
  "--cat-list-selected-bg": h?.selectedRowBackground,
3131
3131
  "--cat-list-selected-check": h?.selectedRowCheckIcon,
3132
3132
  ...l == null ? {} : { "--list-header-sticky-top": `${l}px` }
3133
- }, _ = F(null), v = M((e) => {
3133
+ }, _ = I(null), v = N((e) => {
3134
3134
  _.current = e;
3135
- }, []), y = P(() => zr(t, f, p), [
3135
+ }, []), y = F(() => Br(t, f, p), [
3136
3136
  t,
3137
3137
  f,
3138
3138
  p
3139
- ]), b = P(() => ({
3139
+ ]), b = F(() => ({
3140
3140
  domLayout: "autoHeight",
3141
- rowHeight: Br,
3141
+ rowHeight: Vr,
3142
3142
  animateRows: !1,
3143
3143
  suppressAnimationFrame: !0,
3144
3144
  suppressScrollOnNewData: !0,
@@ -3159,7 +3159,7 @@ var q = /* @__PURE__ */ function(e) {
3159
3159
  e.column.getColDef().field !== "isStarred" && e.data && c(e.data);
3160
3160
  } : void 0,
3161
3161
  rowClass: c ? "cursor-pointer" : void 0,
3162
- getRowClass: (e) => e.data?.id === u ? Ar.selectedRow : void 0
3162
+ getRowClass: (e) => e.data?.id === u ? jr.selectedRow : void 0
3163
3163
  }), [
3164
3164
  n,
3165
3165
  m,
@@ -3169,30 +3169,30 @@ var q = /* @__PURE__ */ function(e) {
3169
3169
  d,
3170
3170
  f,
3171
3171
  c
3172
- ]), { containerRef: x, startRow: S, endRow: C } = jt(e.length, Br), w = P(() => e.slice(S, C), [
3172
+ ]), { containerRef: x, startRow: S, endRow: C } = Nt(e.length, Vr), w = F(() => e.slice(S, C), [
3173
3173
  e,
3174
3174
  S,
3175
3175
  C
3176
3176
  ]);
3177
- return N(() => {
3177
+ return P(() => {
3178
3178
  _.current?.refreshCells({ force: !0 });
3179
- }, [n]), N(() => {
3179
+ }, [n]), P(() => {
3180
3180
  _.current?.redrawRows();
3181
3181
  }, [u]), /* @__PURE__ */ G("div", {
3182
3182
  style: g,
3183
- className: ze("w-full rounded-xl border", Ar.listContainer, Ct.listView),
3183
+ className: ze("w-full rounded-xl border", jr.listContainer, Z.listView),
3184
3184
  children: /* @__PURE__ */ K("div", {
3185
3185
  ref: x,
3186
- className: ze("rounded-xl [&_.ag-cell.ag-column-first]:ps-4 [&_.ag-cell.ag-column-last]:pe-4 [&_.ag-header-cell.ag-column-first]:ps-4 [&_.ag-header-cell.ag-column-last]:pe-4", Ar.gridClip),
3186
+ className: ze("rounded-xl [&_.ag-cell.ag-column-first]:ps-4 [&_.ag-cell.ag-column-last]:pe-4 [&_.ag-header-cell.ag-column-first]:ps-4 [&_.ag-header-cell.ag-column-last]:pe-4", jr.gridClip),
3187
3187
  children: [
3188
3188
  S > 0 && /* @__PURE__ */ G("div", {
3189
- style: { height: S * Br },
3189
+ style: { height: S * Vr },
3190
3190
  "aria-hidden": !0
3191
3191
  }),
3192
- /* @__PURE__ */ G(_t, {
3192
+ /* @__PURE__ */ G(vt, {
3193
3193
  columnDefs: y,
3194
3194
  rowData: w,
3195
- getRowId: Hr,
3195
+ getRowId: Ur,
3196
3196
  withoutHeaderBorders: !0,
3197
3197
  wrapCustomCellRenderers: !1,
3198
3198
  onGridApiChange: v,
@@ -3201,32 +3201,32 @@ var q = /* @__PURE__ */ function(e) {
3201
3201
  ariaLabel: r
3202
3202
  }),
3203
3203
  C < e.length && /* @__PURE__ */ G("div", {
3204
- style: { height: (e.length - C) * Br },
3204
+ style: { height: (e.length - C) * Vr },
3205
3205
  "aria-hidden": !0
3206
3206
  })
3207
3207
  ]
3208
3208
  })
3209
3209
  });
3210
- }, Gr = {
3211
- filterBtn: "_filterBtn_1ngmc_2",
3212
- filterBtnActive: "_filterBtnActive_1ngmc_19",
3213
- filterBtnOpen: "_filterBtnOpen_1ngmc_23",
3214
- filterBtnLabel: "_filterBtnLabel_1ngmc_28",
3215
- filterBtnFunnel: "_filterBtnFunnel_1ngmc_32",
3216
- filterBtnChevron: "_filterBtnChevron_1ngmc_36",
3217
- overlay: "_overlay_1ngmc_46",
3218
- rowLabel: "_rowLabel_1ngmc_54",
3219
- divider: "_divider_1ngmc_58",
3220
- sectionLabel: "_sectionLabel_1ngmc_62",
3221
- footer: "_footer_1ngmc_66"
3222
- }, Kr = (e, t, n, r, i) => {
3210
+ }, Kr = {
3211
+ filterBtn: "_filterBtn_5r8a5_7",
3212
+ filterBtnActive: "_filterBtnActive_5r8a5_24",
3213
+ filterBtnOpen: "_filterBtnOpen_5r8a5_28",
3214
+ filterBtnLabel: "_filterBtnLabel_5r8a5_33",
3215
+ filterBtnFunnel: "_filterBtnFunnel_5r8a5_37",
3216
+ filterBtnChevron: "_filterBtnChevron_5r8a5_41",
3217
+ overlay: "_overlay_5r8a5_51",
3218
+ rowLabel: "_rowLabel_5r8a5_59",
3219
+ divider: "_divider_5r8a5_63",
3220
+ sectionLabel: "_sectionLabel_5r8a5_67",
3221
+ footer: "_footer_5r8a5_71"
3222
+ }, qr = (e, t, n, r, i) => {
3223
3223
  let a = e.size > 0;
3224
3224
  return n && a ? `${r} · ${e.size}` : n ? r : a ? p(e, t, i) : i;
3225
- }, qr = (e, t) => {
3225
+ }, Jr = (e, t) => {
3226
3226
  let n = new Set(t);
3227
3227
  return n.has(e) ? n.delete(e) : n.add(e), n;
3228
- }, Jr = ({ 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 }) => {
3229
- let f = (r ?? !1) || e.size > 0, [p, m] = I(!1), h = re({
3228
+ }, Yr = ({ 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 }) => {
3229
+ let f = (r ?? !1) || e.size > 0, [p, m] = L(!1), h = j({
3230
3230
  "--cat-filter-btn-bg": d?.buttonBackground,
3231
3231
  "--cat-filter-btn-border": d?.buttonBorder,
3232
3232
  "--cat-filter-btn-border-hover": d?.buttonBorderHover,
@@ -3242,19 +3242,19 @@ var q = /* @__PURE__ */ function(e) {
3242
3242
  "--cat-filter-section-label": d?.sectionLabel,
3243
3243
  "--cat-filter-divider": d?.divider,
3244
3244
  "--cat-filter-footer-border": d?.footerBorder
3245
- }), g = P(() => n == null ? [] : [...n].sort(), [n]), _ = Kr(e, n, r, a, s), [v, y] = I(() => new Set(e)), [b, x] = I(r ?? !1);
3246
- N(() => {
3245
+ }), g = F(() => n == null ? [] : [...n].sort(), [n]), _ = qr(e, n, r, a, s), [v, y] = L(() => new Set(e)), [b, x] = L(r ?? !1);
3246
+ P(() => {
3247
3247
  p && (y(new Set(e)), x(r ?? !1));
3248
3248
  }, [
3249
3249
  p,
3250
3250
  e,
3251
3251
  r
3252
3252
  ]);
3253
- let S = g.length + 1, [C, w] = I(-1), T = F([]), E = F(null), D = M((e) => {
3253
+ let S = g.length + 1, [C, w] = L(-1), T = I([]), E = I(null), D = N((e) => {
3254
3254
  let t = (e + S) % S;
3255
3255
  w(t), T.current[t]?.focus();
3256
3256
  }, [S]);
3257
- N(() => {
3257
+ P(() => {
3258
3258
  if (!p) {
3259
3259
  w(-1);
3260
3260
  return;
@@ -3287,7 +3287,7 @@ var q = /* @__PURE__ */ function(e) {
3287
3287
  ...h,
3288
3288
  maxHeight: "calc(var(--fui-available-height, 9999px) - 8px)"
3289
3289
  },
3290
- className: j("flex min-w-[360px] flex-col rounded-xl p-[6px]", Gr.overlay),
3290
+ className: M("flex min-w-[360px] flex-col rounded-xl p-[6px]", Kr.overlay),
3291
3291
  onKeyDown: A,
3292
3292
  children: [
3293
3293
  /* @__PURE__ */ G(Te, {
@@ -3296,7 +3296,7 @@ var q = /* @__PURE__ */ function(e) {
3296
3296
  mark: Ee.Checkbox,
3297
3297
  selected: b,
3298
3298
  label: a,
3299
- labelClassName: j(Gr.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3299
+ labelClassName: M(Kr.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3300
3300
  className: "shrink-0",
3301
3301
  tabIndex: C === 0 ? 0 : -1,
3302
3302
  ref: (e) => {
@@ -3307,16 +3307,16 @@ var q = /* @__PURE__ */ function(e) {
3307
3307
  g.length > 0 && /* @__PURE__ */ K(W, { children: [
3308
3308
  /* @__PURE__ */ G("div", {
3309
3309
  role: "separator",
3310
- className: j("my-1 h-px", Gr.divider),
3310
+ className: M("my-1 h-px", Kr.divider),
3311
3311
  "aria-hidden": !0
3312
3312
  }),
3313
3313
  /* @__PURE__ */ G("div", {
3314
- className: j("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Gr.sectionLabel),
3314
+ className: M("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Kr.sectionLabel),
3315
3315
  "aria-hidden": !0,
3316
3316
  children: o
3317
3317
  }),
3318
3318
  /* @__PURE__ */ G("div", {
3319
- className: j(ne, "flex min-h-0 flex-col gap-1 overflow-y-auto"),
3319
+ className: M(ne, "flex min-h-0 flex-col gap-1 overflow-y-auto"),
3320
3320
  children: g.map((e, t) => {
3321
3321
  let n = v.has(e), r = t + 1;
3322
3322
  return /* @__PURE__ */ G(Te, {
@@ -3325,19 +3325,19 @@ var q = /* @__PURE__ */ function(e) {
3325
3325
  mark: Ee.Checkbox,
3326
3326
  selected: n,
3327
3327
  label: e,
3328
- labelClassName: Gr.rowLabel,
3328
+ labelClassName: Kr.rowLabel,
3329
3329
  className: "shrink-0",
3330
3330
  tabIndex: C === r ? 0 : -1,
3331
3331
  ref: (e) => {
3332
3332
  T.current[r] = e;
3333
3333
  },
3334
- onClick: () => y(qr(e, v))
3334
+ onClick: () => y(Jr(e, v))
3335
3335
  }, e);
3336
3336
  })
3337
3337
  })
3338
3338
  ] }),
3339
3339
  /* @__PURE__ */ K("div", {
3340
- className: j("mt-1 flex shrink-0 items-center px-1 py-3", Gr.footer),
3340
+ className: M("mt-1 flex shrink-0 items-center px-1 py-3", Kr.footer),
3341
3341
  onKeyDown: (e) => {
3342
3342
  (e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
3343
3343
  },
@@ -3352,57 +3352,52 @@ var q = /* @__PURE__ */ function(e) {
3352
3352
  })
3353
3353
  ]
3354
3354
  }),
3355
- children: /* @__PURE__ */ K("button", {
3355
+ children: /* @__PURE__ */ G(ce, {
3356
3356
  ref: E,
3357
- type: "button",
3358
3357
  "aria-haspopup": "menu",
3359
3358
  "aria-expanded": p,
3360
3359
  onKeyDown: k,
3361
3360
  style: h,
3362
- className: j("flex h-12 shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-lg px-[18px]", Gr.filterBtn, f && Gr.filterBtnActive, p && Gr.filterBtnOpen),
3363
- children: [
3364
- /* @__PURE__ */ G(Xe, {
3365
- size: R.SM,
3366
- stroke: z,
3367
- className: j("shrink-0", Gr.filterBtnFunnel),
3368
- "aria-hidden": !0
3369
- }),
3370
- /* @__PURE__ */ G("span", {
3371
- className: j(Gr.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3372
- children: _
3373
- }),
3374
- /* @__PURE__ */ G(We, {
3375
- size: 14,
3376
- stroke: z,
3377
- className: j("shrink-0 transition-transform duration-150", Gr.filterBtnChevron, p && "rotate-180"),
3378
- "aria-hidden": !0
3379
- })
3380
- ]
3361
+ iconBefore: /* @__PURE__ */ G(Xe, {
3362
+ size: z.SM,
3363
+ stroke: B,
3364
+ className: M("shrink-0", Kr.filterBtnFunnel),
3365
+ "aria-hidden": !0
3366
+ }),
3367
+ label: _,
3368
+ textClassName: M(Kr.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3369
+ iconAfter: /* @__PURE__ */ G(We, {
3370
+ size: 14,
3371
+ stroke: B,
3372
+ className: M("shrink-0 transition-transform duration-150", Kr.filterBtnChevron, p && "rotate-180"),
3373
+ "aria-hidden": !0
3374
+ }),
3375
+ className: M("h-12 shrink-0 gap-[7px] whitespace-nowrap !rounded-lg px-[18px]", Kr.filterBtn, f && Kr.filterBtnActive, p && Kr.filterBtnOpen)
3381
3376
  })
3382
3377
  });
3383
- }, Yr = {
3378
+ }, Xr = {
3384
3379
  section: "_section_mh952_1",
3385
3380
  divider: "_divider_mh952_5"
3386
- }, Xr = ({ totalCount: e, viewMode: t, onViewModeChange: n, title: r = "Browse", browseHeaderRenderer: i, styles: a, query: o, onQueryChange: s, searchPlaceholder: c, gridViewLabel: l = "Grid view", listViewLabel: u = "List view", viewToggleLabel: d = "View mode", sortKey: f, sortOptions: p, onSortChange: m, sortLabel: h = "Sort", filters: g, onFiltersChange: _, filterValues: v, isMyAppsActive: y, onMyAppsChange: b, filterFromLabel: x, filterMyAppsLabel: S, filterTopicsLabel: C }) => {
3387
- let w = a?.typography?.titleClassName ?? "dial-body-semi-text", T = a?.typography?.countClassName ?? "dial-tiny-semi-text", E = P(() => [{
3388
- value: yt.Grid,
3381
+ }, Zr = ({ totalCount: e, viewMode: t, onViewModeChange: n, title: r = "Browse", browseHeaderRenderer: i, styles: a, query: o, onQueryChange: s, searchPlaceholder: c, gridViewLabel: l = "Grid view", listViewLabel: u = "List view", viewToggleLabel: d = "View mode", sortKey: f, sortOptions: p, onSortChange: m, sortLabel: h = "Sort", filters: g, onFiltersChange: _, filterValues: v, isMyAppsActive: y, onMyAppsChange: b, filterFromLabel: x, filterMyAppsLabel: S, filterTopicsLabel: C }) => {
3382
+ let w = a?.typography?.titleClassName ?? "dial-body-semi-text", T = a?.typography?.countClassName ?? "dial-tiny-semi-text", E = F(() => [{
3383
+ value: St.Grid,
3389
3384
  icon: /* @__PURE__ */ G($e, {
3390
- size: R.SM,
3385
+ size: z.SM,
3391
3386
  "aria-hidden": !0,
3392
- stroke: z
3387
+ stroke: B
3393
3388
  }),
3394
3389
  "aria-label": l
3395
3390
  }, {
3396
- value: yt.Cards,
3391
+ value: St.Cards,
3397
3392
  icon: /* @__PURE__ */ G(et, {
3398
- size: R.SM,
3393
+ size: z.SM,
3399
3394
  "aria-hidden": !0,
3400
- stroke: z
3395
+ stroke: B
3401
3396
  }),
3402
3397
  "aria-label": u
3403
3398
  }], [l, u]), O = (e) => {
3404
3399
  s(e ?? "");
3405
- }, k = p?.find((e) => e.value === f)?.label ?? h, A = P(() => (p ?? []).map((e) => ({
3400
+ }, k = p?.find((e) => e.value === f)?.label ?? h, A = F(() => (p ?? []).map((e) => ({
3406
3401
  key: e.value,
3407
3402
  label: e.label,
3408
3403
  mark: Ee.Check,
@@ -3430,16 +3425,16 @@ var q = /* @__PURE__ */ function(e) {
3430
3425
  }
3431
3426
  }), /* @__PURE__ */ K("div", {
3432
3427
  className: "ms-auto flex shrink-0 items-center gap-2",
3433
- children: [/* @__PURE__ */ G(V, {
3428
+ children: [/* @__PURE__ */ G(Me, {
3434
3429
  "aria-label": d,
3435
3430
  value: t,
3436
3431
  onChange: n,
3437
3432
  items: E
3438
- }), p != null && p.length > 0 && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", { className: j("h-4 w-px shrink-0", Yr.divider) }), /* @__PURE__ */ G(L, {
3433
+ }), p != null && p.length > 0 && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", { className: M("h-4 w-px shrink-0", Xr.divider) }), /* @__PURE__ */ G(le, {
3439
3434
  items: A,
3440
3435
  label: k,
3441
3436
  variant: ue.Primary,
3442
- appearance: le.Ghost
3437
+ appearance: R.Ghost
3443
3438
  })] })]
3444
3439
  })]
3445
3440
  }), /* @__PURE__ */ K("div", {
@@ -3447,7 +3442,7 @@ var q = /* @__PURE__ */ function(e) {
3447
3442
  children: [/* @__PURE__ */ G("div", {
3448
3443
  role: "search",
3449
3444
  className: "flex-1",
3450
- children: /* @__PURE__ */ G(Me, {
3445
+ children: /* @__PURE__ */ G(H, {
3451
3446
  value: o,
3452
3447
  onChange: O,
3453
3448
  size: ge.Large,
@@ -3455,7 +3450,7 @@ var q = /* @__PURE__ */ function(e) {
3455
3450
  placeholder: c,
3456
3451
  "aria-label": c
3457
3452
  })
3458
- }), /* @__PURE__ */ G(Jr, {
3453
+ }), /* @__PURE__ */ G(Yr, {
3459
3454
  checked: g ?? /* @__PURE__ */ new Set(),
3460
3455
  onChange: _ ?? (() => void 0),
3461
3456
  values: v,
@@ -3468,12 +3463,12 @@ var q = /* @__PURE__ */ function(e) {
3468
3463
  })]
3469
3464
  })]
3470
3465
  });
3471
- }, 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 }) => {
3466
+ }, Qr = ({ 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 }) => {
3472
3467
  let b = { "--cat-browse-divider": r?.colors?.divider };
3473
3468
  return /* @__PURE__ */ G("section", {
3474
- className: j("flex-shrink-0 px-4", Yr.section, Ct.toolbar),
3469
+ className: M("flex-shrink-0 px-4", Xr.section, Z.toolbar),
3475
3470
  style: b,
3476
- children: /* @__PURE__ */ G(Xr, {
3471
+ children: /* @__PURE__ */ G(Zr, {
3477
3472
  styles: r,
3478
3473
  query: e,
3479
3474
  onQueryChange: t,
@@ -3496,30 +3491,30 @@ var q = /* @__PURE__ */ function(e) {
3496
3491
  ...y
3497
3492
  })
3498
3493
  });
3499
- }, Qr = {
3494
+ }, $r = {
3500
3495
  root: "_root_1h83l_1",
3501
3496
  heading: "_heading_1h83l_5",
3502
3497
  headingTitle: "_headingTitle_1h83l_9"
3503
- }, $r = ({ label: e, options: t, onClick: n }) => {
3504
- let r = F(null);
3498
+ }, ei = ({ label: e, options: t, onClick: n }) => {
3499
+ let r = I(null);
3505
3500
  return t?.length ? /* @__PURE__ */ G("div", {
3506
3501
  ref: r,
3507
- children: /* @__PURE__ */ G(L, {
3508
- appearance: le.Solid,
3502
+ children: /* @__PURE__ */ G(le, {
3503
+ appearance: R.Solid,
3509
3504
  label: e,
3510
3505
  variant: ue.Primary,
3511
3506
  items: t
3512
3507
  })
3513
3508
  }) : /* @__PURE__ */ G(ke, {
3514
3509
  label: e,
3515
- iconBefore: /* @__PURE__ */ G(at, {
3516
- size: R.SM,
3517
- stroke: z
3510
+ iconBefore: /* @__PURE__ */ G(U, {
3511
+ size: z.SM,
3512
+ stroke: B
3518
3513
  }),
3519
3514
  onClick: n
3520
3515
  });
3521
- }, ei = 3, ti = 300, ni = ({ items: e, tabs: t, topicOptions: n, favorites: o, titles: c, browseHeaderRenderer: d, onToggleFavorite: p, isFavoriteVisible: m, columnVisibility: g, onUseInChat: v, isPrimaryActionVisible: y, onShare: b, isPublishVisible: x, isPublishPrimary: S, getPublishHistory: C, publishFolderItems: w, publishExpandedPaths: T, onPublishExpandedPathsChange: E, publishLoadingPaths: D, hasPublishWriteAccess: O, publishDefaultAuthor: k, onPublish: A, onPublishSuccess: ee, onPublishError: te, onCreatePublishFolder: ne, publishLabels: re, ruleSourceOptions: ie, onFetchExistingRules: ae, shareOverlay: se, isShareVisible: ce, isSharePrimary: le, onFetchDetails: L, renderCredentials: ue, onEdit: de, onDownload: fe, isDownloadVisible: pe, isDownloadPrimary: R, onLoadContentFile: z, onLoadContentFilePreview: me, renderContentFilePreview: he, onDelete: ge, onUnshare: _e, isUnshareVisible: ve, onRevokeShare: ye, onFetchRecipientsCount: be, isRevokeShareVisible: xe, onUnpublish: Se, isUnpublishVisible: Ce, onLogin: B, onLogout: we, onCreateClick: Te, createOptions: Ee, hideCreateButton: De = !1, hidePageTitle: Oe = !1, isReadonly: ke = !1, initialViewMode: Ae = yt.Grid, isFullWidth: je = !1, selectedItemId: Me, onCardClick: V, isLoading: Ne, styles: Pe, detailsTexts: Le, detailsLimitsFooterNote: Re, initialDetailsItemId: ze, sortKey: Be, onSortChange: Ve, filterTopics: He, onFilterTopicsChange: Ue, isMyAppsActive: We, onMyAppsActiveChange: Ge, activeTab: Ke, onActiveTabChange: qe, renderEmptyState: Je }) => {
3522
- let { typography: Ye } = Pe ?? {}, Xe = wt(Pe), Ze = c?.pageTitle ?? "Catalog", Qe = c?.createLabel ?? "Create", $e = c?.favoritesTitle ?? "Your favorites", et = c?.browseTitle ?? "Browse", tt = c?.searchPlaceholder ?? "Search models, tools, agents…", nt = c?.noResultsTitle ?? ((e) => `No results for "${e}"`), rt = c?.featuredLabel ?? "Featured", it = c?.gridViewLabel ?? "Grid view", at = c?.listViewLabel ?? "List view", ot = c?.viewToggleLabel ?? "View mode", H = c?.ariaLabel ?? "Catalog", st = c?.sortLabel ?? "Sort", ct = [
3516
+ }, ti = 3, ni = 300, ri = ({ items: e, tabs: t, topicOptions: n, favorites: o, titles: c, browseHeaderRenderer: d, onToggleFavorite: p, isFavoriteVisible: m, columnVisibility: g, onUseInChat: v, isPrimaryActionVisible: y, onShare: b, isPublishVisible: x, isPublishPrimary: S, getPublishHistory: C, publishFolderItems: w, publishExpandedPaths: T, onPublishExpandedPathsChange: E, publishLoadingPaths: D, hasPublishWriteAccess: O, publishDefaultAuthor: k, onPublish: A, onPublishSuccess: ee, onPublishError: te, onCreatePublishFolder: ne, publishLabels: j, ruleSourceOptions: re, onFetchExistingRules: ie, shareOverlay: oe, isShareVisible: se, isSharePrimary: ce, onFetchDetails: R, renderCredentials: le, onEdit: ue, onDownload: de, isDownloadVisible: fe, isDownloadPrimary: pe, onLoadContentFile: z, onLoadContentFilePreview: B, renderContentFilePreview: me, onDelete: he, onUnshare: ge, isUnshareVisible: _e, onRevokeShare: ve, onFetchRecipientsCount: ye, isRevokeShareVisible: be, onUnpublish: xe, isUnpublishVisible: Se, onLogin: V, onLogout: Ce, onCreateClick: we, createOptions: Te, hideCreateButton: Ee = !1, hidePageTitle: De = !1, isReadonly: Oe = !1, initialViewMode: ke = St.Grid, isFullWidth: Ae = !1, selectedItemId: je, onCardClick: H, isLoading: Me, styles: Ne, detailsTexts: Pe, detailsLimitsFooterNote: Le, initialDetailsItemId: Re, sortKey: ze, onSortChange: Be, filterTopics: Ve, onFilterTopicsChange: He, isMyAppsActive: Ue, onMyAppsActiveChange: We, activeTab: Ge, onActiveTabChange: Ke, renderEmptyState: qe }) => {
3517
+ let { typography: Je } = Ne ?? {}, Ye = Et(Ne), Xe = c?.pageTitle ?? "Catalog", Ze = c?.createLabel ?? "Create", Qe = c?.favoritesTitle ?? "Your favorites", $e = c?.browseTitle ?? "Browse", et = c?.searchPlaceholder ?? "Search models, tools, agents…", tt = c?.noResultsTitle ?? ((e) => `No results for "${e}"`), nt = c?.featuredLabel ?? "Featured", rt = c?.gridViewLabel ?? "Grid view", it = c?.listViewLabel ?? "List view", U = c?.viewToggleLabel ?? "View mode", at = c?.ariaLabel ?? "Catalog", ot = c?.sortLabel ?? "Sort", st = [
3523
3518
  {
3524
3519
  value: s.RecentlyUpdated,
3525
3520
  label: c?.sortRecentlyUpdatedLabel ?? "Recently Updated"
@@ -3532,94 +3527,94 @@ var q = /* @__PURE__ */ function(e) {
3532
3527
  value: s.NameAZ,
3533
3528
  label: c?.sortNameAZLabel ?? "Name A-Z"
3534
3529
  }
3535
- ], [U, lt] = I(""), [ut, dt] = I(Ae), [ft, pt] = I(Ae === yt.Cards ? "shown" : "unmounted"), [mt, ht] = I(s.RecentlyUpdated), [gt, _t] = I(/* @__PURE__ */ new Set()), [q, J] = I(!1), vt = Be ?? mt, Y = He ?? gt, X = We ?? q, Z = M((e) => {
3530
+ ], [ct, lt] = L(""), [ut, dt] = L(ke), [ft, pt] = L(ke === St.Cards ? "shown" : "unmounted"), [mt, ht] = L(s.RecentlyUpdated), [gt, _t] = L(/* @__PURE__ */ new Set()), [vt, yt] = L(!1), q = ze ?? mt, J = Ve ?? gt, Y = Ue ?? vt, bt = N((e) => {
3536
3531
  let t = e;
3537
- ht(t), Ve?.(t);
3538
- }, [Ve]), bt = M((e) => {
3539
- _t(e), Ue?.(e);
3540
- }, [Ue]), xt = M((e) => {
3541
- J(e), Ge?.(e);
3542
- }, [Ge]), Q = P(() => e.filter((e) => !e.isHidden), [e]), St = P(() => n ?? u(Q), [n, Q]), Tt = P(() => t ?? r(Q, c?.tabLabels), [
3532
+ ht(t), Be?.(t);
3533
+ }, [Be]), xt = N((e) => {
3534
+ _t(e), He?.(e);
3535
+ }, [He]), Ct = N((e) => {
3536
+ yt(e), We?.(e);
3537
+ }, [We]), X = F(() => e.filter((e) => !e.isHidden), [e]), wt = F(() => n ?? u(X), [n, X]), Tt = F(() => t ?? r(X, c?.tabLabels), [
3543
3538
  t,
3544
- Q,
3539
+ X,
3545
3540
  c?.tabLabels
3546
- ]), Et = Tt[0]?.id ?? "", [Dt, Ot] = I(Et);
3547
- N(() => {
3548
- Ot((e) => e || Et);
3549
- }, [Et]);
3550
- let kt = Ke ?? Dt, At = M((e) => {
3551
- Ot(e), qe?.(e);
3552
- }, [qe]), [jt, Mt] = I(o.length > 0);
3553
- N(() => {
3554
- o.length > 0 && !jt && Mt(!0);
3555
- }, [o.length, jt]);
3556
- let Nt = M(() => {
3557
- Mt(!1);
3558
- }, []), Pt = jt && o.length === 0, [Ft, It] = I(null), [Lt, Rt] = I(!1), [zt, Bt] = I(void 0), [Vt, Ht] = I(!1), Ut = F(null), Wt = F(0), Gt = M(async (e) => {
3541
+ ]), Dt = Tt[0]?.id ?? "", [Ot, kt] = L(Dt);
3542
+ P(() => {
3543
+ kt((e) => e || Dt);
3544
+ }, [Dt]);
3545
+ let At = Ge ?? Ot, jt = N((e) => {
3546
+ kt(e), Ke?.(e);
3547
+ }, [Ke]), [Mt, Nt] = L(o.length > 0);
3548
+ P(() => {
3549
+ o.length > 0 && !Mt && Nt(!0);
3550
+ }, [o.length, Mt]);
3551
+ let Pt = N(() => {
3552
+ Nt(!1);
3553
+ }, []), Ft = Mt && o.length === 0, [Q, It] = L(null), [Lt, Rt] = L(!1), [zt, Bt] = L(void 0), [Vt, Ht] = L(!1), Ut = I(null), Wt = I(0), Gt = N(async (e) => {
3559
3554
  Ut.current = e.id;
3560
3555
  let t = ++Wt.current;
3561
- if (L) {
3556
+ if (R) {
3562
3557
  Ht(!0);
3563
3558
  try {
3564
- let n = await L(e);
3559
+ let n = await R(e);
3565
3560
  return Wt.current === t && Bt(n), n;
3566
3561
  } finally {
3567
3562
  Wt.current === t && Ht(!1);
3568
3563
  }
3569
3564
  }
3570
- }, [L]), Kt = M(async (e) => (It(e), Bt(void 0), Gt(e)), [Gt]), qt = M(async (e, t) => {
3571
- for (let n = 0; n < ei; n++) {
3565
+ }, [R]), Kt = N(async (e) => (It(e), Bt(void 0), Gt(e)), [Gt]), qt = N(async (e, t) => {
3566
+ for (let n = 0; n < ti; n++) {
3572
3567
  if (Ut.current !== e.id || t(await Gt(e))) return;
3573
- n < ei - 1 && await h(ti);
3568
+ n < ti - 1 && await h(ni);
3574
3569
  }
3575
- }, [Gt]), Jt = F(null);
3576
- N(() => {
3577
- if (!ze) {
3570
+ }, [Gt]), Jt = I(null);
3571
+ P(() => {
3572
+ if (!Re) {
3578
3573
  Jt.current = null;
3579
3574
  return;
3580
3575
  }
3581
- if (Jt.current === ze) return;
3582
- let t = e.find((e) => e.id === ze);
3583
- t && (Jt.current = ze, Kt(t));
3576
+ if (Jt.current === Re) return;
3577
+ let t = e.find((e) => e.id === Re);
3578
+ t && (Jt.current = Re, Kt(t));
3584
3579
  }, [
3585
- ze,
3580
+ Re,
3586
3581
  e,
3587
3582
  Kt
3588
- ]), N(() => {
3589
- if (Ft == null) return;
3590
- let t = e.find((e) => e.id === Ft.id);
3591
- t && t !== Ft && It(t);
3592
- }, [e, Ft]);
3593
- let Xt = M(async (e, t) => {
3594
- await B?.(e, t), L && await qt(e, (e) => f(e?.credentials, t.level));
3583
+ ]), P(() => {
3584
+ if (Q == null) return;
3585
+ let t = e.find((e) => e.id === Q.id);
3586
+ t && t !== Q && It(t);
3587
+ }, [e, Q]);
3588
+ let Yt = N(async (e, t) => {
3589
+ await V?.(e, t), R && await qt(e, (e) => f(e?.credentials, t.level));
3595
3590
  }, [
3596
- B,
3597
- L,
3591
+ V,
3592
+ R,
3598
3593
  qt
3599
- ]), Zt = M(async (e, t) => {
3600
- await we?.(e, t), L && await qt(e, (e) => !f(e?.credentials, t.level));
3594
+ ]), Zt = N(async (e, t) => {
3595
+ await Ce?.(e, t), R && await qt(e, (e) => !f(e?.credentials, t.level));
3601
3596
  }, [
3602
- we,
3603
- L,
3597
+ Ce,
3598
+ R,
3604
3599
  qt
3605
- ]), Qt = M(() => {
3600
+ ]), Qt = N(() => {
3606
3601
  Rt(!1), Ut.current = null, Wt.current += 1, setTimeout(() => {
3607
3602
  It(null), Bt(void 0), Ht(!1);
3608
3603
  }, 300);
3609
- }, []), $t = P(() => {
3610
- if (Ft == null) return null;
3611
- if (zt == null) return Ft;
3604
+ }, []), $t = F(() => {
3605
+ if (Q == null) return null;
3606
+ if (zt == null) return Q;
3612
3607
  let { credentials: e, ...t } = zt;
3613
3608
  return {
3614
- ...Ft,
3609
+ ...Q,
3615
3610
  details: t,
3616
- credentials: e ?? Ft.credentials
3611
+ credentials: e ?? Q.credentials
3617
3612
  };
3618
- }, [Ft, zt]), en = P(() => l(Q, vt), [Q, vt]), tn = P(() => a(en, U), [en, U]), nn = P(() => Y.size > 0 ? i(tn, Y) : tn, [tn, Y]), rn = P(() => X ? _(nn) : nn, [nn, X]), an = P(() => kt ? rn.filter((e) => e.type === kt) : rn, [rn, kt]);
3619
- N(() => {
3620
- if (ft !== "unmounted" || Ne || an.length === 0) return;
3613
+ }, [Q, zt]), en = F(() => l(X, q), [X, q]), tn = F(() => a(en, ct), [en, ct]), nn = F(() => J.size > 0 ? i(tn, J) : tn, [tn, J]), rn = F(() => Y ? _(nn) : nn, [nn, Y]), an = F(() => At ? rn.filter((e) => e.type === At) : rn, [rn, At]);
3614
+ P(() => {
3615
+ if (ft !== "unmounted" || Me || an.length === 0) return;
3621
3616
  let e = () => {
3622
- oe(() => {
3617
+ ae(() => {
3623
3618
  pt((e) => e === "unmounted" ? "prepared" : e);
3624
3619
  });
3625
3620
  };
@@ -3631,50 +3626,50 @@ var q = /* @__PURE__ */ function(e) {
3631
3626
  return () => window.clearTimeout(t);
3632
3627
  }, [
3633
3628
  ft,
3634
- Ne,
3629
+ Me,
3635
3630
  an.length
3636
3631
  ]);
3637
- let on = Ft != null && o.some((e) => e.id === Ft.id);
3638
- N(() => {
3639
- if (Ft == null) return;
3632
+ let on = Q != null && o.some((e) => e.id === Q.id);
3633
+ P(() => {
3634
+ if (Q == null) return;
3640
3635
  let e = requestAnimationFrame(() => Rt(!0));
3641
3636
  return () => cancelAnimationFrame(e);
3642
- }, [Ft]);
3643
- let sn = M((e) => {
3644
- e === yt.Cards && pt("shown"), dt(e);
3645
- }, []), cn = !De && !ke, ln = jt && !ke, un = U ? nt(U) : "No items", dn = P(() => ({
3637
+ }, [Q]);
3638
+ let sn = N((e) => {
3639
+ e === St.Cards && pt("shown"), dt(e);
3640
+ }, []), cn = !Ee && !Oe, ln = Mt && !Oe, un = ct ? tt(ct) : "No items", dn = F(() => ({
3646
3641
  noResultsTitle: un,
3647
- featuredLabel: rt,
3648
- credentialsBadgeLoggedOutLabel: Le?.credentialsBadgeLoggedOutLabel
3642
+ featuredLabel: nt,
3643
+ credentialsBadgeLoggedOutLabel: Pe?.credentialsBadgeLoggedOutLabel
3649
3644
  }), [
3650
3645
  un,
3651
- rt,
3652
- Le?.credentialsBadgeLoggedOutLabel
3653
- ]), fn = !Ne && an.length === 0 ? Je?.({
3654
- query: U,
3655
- activeTab: kt,
3656
- hasTopicFilters: Y.size > 0,
3657
- isMyAppsActive: X
3646
+ nt,
3647
+ Pe?.credentialsBadgeLoggedOutLabel
3648
+ ]), fn = !Me && an.length === 0 ? qe?.({
3649
+ query: ct,
3650
+ activeTab: At,
3651
+ hasTopicFilters: J.size > 0,
3652
+ isMyAppsActive: Y
3658
3653
  }) : void 0;
3659
- return Ne ? /* @__PURE__ */ G("div", {
3654
+ return Me ? /* @__PURE__ */ G("div", {
3660
3655
  className: "flex size-full min-h-0 flex-1 items-center justify-center",
3661
3656
  children: /* @__PURE__ */ G(Fe, {})
3662
3657
  }) : /* @__PURE__ */ K("section", {
3663
- "aria-label": H,
3664
- className: j("flex size-full min-h-0 flex-1 flex-col", Qr.root, Ct.root),
3665
- style: Xe,
3658
+ "aria-label": at,
3659
+ className: M("flex size-full min-h-0 flex-1 flex-col", $r.root, Z.root),
3660
+ style: Ye,
3666
3661
  children: [
3667
- (!Oe || cn) && /* @__PURE__ */ G("div", {
3668
- className: j("shrink-0", Qr.heading),
3662
+ (!De || cn) && /* @__PURE__ */ G("div", {
3663
+ className: M("shrink-0", $r.heading),
3669
3664
  children: /* @__PURE__ */ K("div", {
3670
3665
  className: "flex h-[64px] w-full items-center justify-between px-8",
3671
- children: [!Oe && /* @__PURE__ */ G("h1", {
3672
- className: j(Ye?.pageHeadingFontClassName ?? "dial-display2-text", Qr.headingTitle),
3673
- children: Ze
3674
- }), cn && /* @__PURE__ */ G($r, {
3675
- label: Qe,
3676
- options: Ee,
3677
- onClick: Te
3666
+ children: [!De && /* @__PURE__ */ G("h1", {
3667
+ className: M(Je?.pageHeadingFontClassName ?? "dial-display2-text", $r.headingTitle),
3668
+ children: Xe
3669
+ }), cn && /* @__PURE__ */ G(ei, {
3670
+ label: Ze,
3671
+ options: Te,
3672
+ onClick: we
3678
3673
  })]
3679
3674
  })
3680
3675
  }),
@@ -3683,42 +3678,42 @@ var q = /* @__PURE__ */ function(e) {
3683
3678
  children: [
3684
3679
  ln && /* @__PURE__ */ G("div", {
3685
3680
  className: "w-full px-8",
3686
- children: /* @__PURE__ */ G(kr, {
3681
+ children: /* @__PURE__ */ G(Ar, {
3687
3682
  items: o,
3688
3683
  totalCount: o.length,
3689
- title: $e,
3684
+ title: Qe,
3690
3685
  onToggleFavorite: p,
3691
3686
  isFavoriteVisible: m,
3692
- onItemClick: V ?? Kt,
3693
- isLeaving: Pt,
3694
- onExitComplete: Nt,
3695
- selectedItemId: Me,
3696
- credentialsBadgeLoggedOutLabel: Le?.credentialsBadgeLoggedOutLabel
3687
+ onItemClick: H ?? Kt,
3688
+ isLeaving: Ft,
3689
+ onExitComplete: Pt,
3690
+ selectedItemId: je,
3691
+ credentialsBadgeLoggedOutLabel: Pe?.credentialsBadgeLoggedOutLabel
3697
3692
  })
3698
3693
  }),
3699
3694
  /* @__PURE__ */ G("div", {
3700
3695
  className: "w-full px-4 pt-6",
3701
- children: /* @__PURE__ */ G(Zr, {
3696
+ children: /* @__PURE__ */ G(Qr, {
3702
3697
  totalCount: rn.length,
3703
3698
  viewMode: ut,
3704
3699
  onViewModeChange: sn,
3705
- sortKey: vt,
3706
- query: U,
3700
+ sortKey: q,
3701
+ query: ct,
3707
3702
  onQueryChange: lt,
3708
- title: et,
3703
+ title: $e,
3709
3704
  browseHeaderRenderer: d,
3710
- searchPlaceholder: tt,
3711
- gridViewLabel: it,
3712
- listViewLabel: at,
3713
- viewToggleLabel: ot,
3714
- sortOptions: ct,
3715
- onSortChange: Z,
3716
- sortLabel: st,
3717
- filters: Y,
3718
- onFiltersChange: bt,
3719
- filterValues: St,
3720
- isMyAppsActive: X,
3721
- onMyAppsChange: xt,
3705
+ searchPlaceholder: et,
3706
+ gridViewLabel: rt,
3707
+ listViewLabel: it,
3708
+ viewToggleLabel: U,
3709
+ sortOptions: st,
3710
+ onSortChange: bt,
3711
+ sortLabel: ot,
3712
+ filters: J,
3713
+ onFiltersChange: xt,
3714
+ filterValues: wt,
3715
+ isMyAppsActive: Y,
3716
+ onMyAppsChange: Ct,
3722
3717
  filterFromLabel: c?.filterFromLabel,
3723
3718
  filterMyAppsLabel: c?.filterMyAppsLabel,
3724
3719
  filterTopicsLabel: c?.filterTopicsLabel
@@ -3732,56 +3727,56 @@ var q = /* @__PURE__ */ function(e) {
3732
3727
  label: typeof e.label == "string" ? e.label : String(e.label),
3733
3728
  count: rn.filter((t) => t.type === e.id).length
3734
3729
  })),
3735
- activeTabId: kt,
3736
- onTabChange: At
3730
+ activeTabId: At,
3731
+ onTabChange: jt
3737
3732
  })
3738
3733
  }),
3739
3734
  /* @__PURE__ */ G("div", {
3740
- className: j(an.length > 0 ? ["min-h-full w-full px-8 py-6", !je && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", an.length === 0 && "px-8 py-6"),
3735
+ className: M(an.length > 0 ? ["min-h-full w-full px-8 py-6", !Ae && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", an.length === 0 && "px-8 py-6"),
3741
3736
  children: fn ?? /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", {
3742
- inert: ut !== yt.Grid,
3743
- className: j(an.length > 0 ? "pb-8" : "size-full flex-1", ut !== yt.Grid && "hidden"),
3744
- children: /* @__PURE__ */ G(Yt, {
3737
+ inert: ut !== St.Grid,
3738
+ className: M(an.length > 0 ? "pb-8" : "size-full flex-1", ut !== St.Grid && "hidden"),
3739
+ children: /* @__PURE__ */ G(Xt, {
3745
3740
  items: an,
3746
- query: U,
3741
+ query: ct,
3747
3742
  onToggleFavorite: p,
3748
3743
  isFavoriteVisible: m,
3749
- onItemClick: V ?? Kt,
3744
+ onItemClick: H ?? Kt,
3750
3745
  titles: dn,
3751
- selectedItemId: Me,
3752
- isReadonly: ke,
3753
- isFullWidth: je,
3754
- featuredChipStyle: Pe?.colors?.featuredChipStyle
3746
+ selectedItemId: je,
3747
+ isReadonly: Oe,
3748
+ isFullWidth: Ae,
3749
+ featuredChipStyle: Ne?.colors?.featuredChipStyle
3755
3750
  })
3756
3751
  }), ft !== "unmounted" && /* @__PURE__ */ G("div", {
3757
- inert: ut !== yt.Cards,
3758
- className: j("pb-8", ut !== yt.Cards && (ft === "prepared" ? "invisible h-0 overflow-hidden p-0" : "hidden"), an.length === 0 && ut === yt.Cards && "h-full"),
3759
- children: /* @__PURE__ */ G(Ur, {
3760
- type: kt,
3752
+ inert: ut !== St.Cards,
3753
+ className: M("pb-8", ut !== St.Cards && (ft === "prepared" ? "invisible h-0 overflow-hidden p-0" : "hidden"), an.length === 0 && ut === St.Cards && "h-full"),
3754
+ children: /* @__PURE__ */ G(Wr, {
3755
+ type: At,
3761
3756
  items: an,
3762
- query: U,
3763
- ariaLabel: H,
3757
+ query: ct,
3758
+ ariaLabel: at,
3764
3759
  emptyStateTitle: un,
3765
3760
  onToggleFavorite: p,
3766
3761
  isFavoriteVisible: m,
3767
3762
  columnVisibility: g,
3768
- onItemClick: V ?? Kt,
3763
+ onItemClick: H ?? Kt,
3769
3764
  stickyHeaderTop: 0,
3770
- selectedItemId: Me,
3771
- credentialsBadgeLoggedOutLabel: Le?.credentialsBadgeLoggedOutLabel,
3772
- isReadonly: ke
3765
+ selectedItemId: je,
3766
+ credentialsBadgeLoggedOutLabel: Pe?.credentialsBadgeLoggedOutLabel,
3767
+ isReadonly: Oe
3773
3768
  })
3774
3769
  })] })
3775
3770
  })
3776
3771
  ]
3777
3772
  }),
3778
- $t != null && /* @__PURE__ */ G(wr, {
3779
- renderCredentials: ue,
3773
+ $t != null && /* @__PURE__ */ G(Tr, {
3774
+ renderCredentials: le,
3780
3775
  item: $t,
3781
3776
  isOpen: Lt,
3782
3777
  isStarred: on,
3783
3778
  isDetailsLoading: Vt,
3784
- isReadonly: ke,
3779
+ isReadonly: Oe,
3785
3780
  onClose: Qt,
3786
3781
  onToggleFavorite: p,
3787
3782
  isFavoriteVisible: m,
@@ -3801,39 +3796,39 @@ var q = /* @__PURE__ */ function(e) {
3801
3796
  onPublishSuccess: ee,
3802
3797
  onPublishError: te,
3803
3798
  onCreatePublishFolder: ne,
3804
- publishLabels: re,
3805
- ruleSourceOptions: ie,
3806
- onFetchExistingRules: ae,
3807
- shareOverlay: se,
3808
- isShareVisible: ce,
3809
- isSharePrimary: le,
3810
- onEdit: de,
3811
- onDownload: fe,
3812
- isDownloadVisible: pe,
3813
- isDownloadPrimary: R,
3799
+ publishLabels: j,
3800
+ ruleSourceOptions: re,
3801
+ onFetchExistingRules: ie,
3802
+ shareOverlay: oe,
3803
+ isShareVisible: se,
3804
+ isSharePrimary: ce,
3805
+ onEdit: ue,
3806
+ onDownload: de,
3807
+ isDownloadVisible: fe,
3808
+ isDownloadPrimary: pe,
3814
3809
  onLoadContentFile: z,
3815
- onLoadContentFilePreview: me,
3816
- renderContentFilePreview: he,
3817
- onDelete: ge,
3818
- onUnshare: _e,
3819
- isUnshareVisible: ve,
3820
- onRevokeShare: ye,
3821
- onFetchRecipientsCount: be,
3822
- isRevokeShareVisible: xe,
3823
- onUnpublish: Se,
3824
- isUnpublishVisible: Ce,
3825
- onLogin: Xt,
3810
+ onLoadContentFilePreview: B,
3811
+ renderContentFilePreview: me,
3812
+ onDelete: he,
3813
+ onUnshare: ge,
3814
+ isUnshareVisible: _e,
3815
+ onRevokeShare: ve,
3816
+ onFetchRecipientsCount: ye,
3817
+ isRevokeShareVisible: be,
3818
+ onUnpublish: xe,
3819
+ isUnpublishVisible: Se,
3820
+ onLogin: Yt,
3826
3821
  onLogout: Zt,
3827
- texts: Le,
3828
- limitsFooterNote: Re,
3829
- styles: { colors: { featuredChipStyle: Pe?.colors?.featuredChipStyle } }
3822
+ texts: Pe,
3823
+ limitsFooterNote: Le,
3824
+ styles: { colors: { featuredChipStyle: Ne?.colors?.featuredChipStyle } }
3830
3825
  })
3831
3826
  ]
3832
3827
  });
3833
- }, ri = ({ selectedId: e, records: t, selectedLabel: n, placeholder: r, labels: i, onSelect: a, onBrowse: o, extraOptions: s = [], isLoading: c = !1, error: l, isDisabled: u = !1, isInvalid: d = !1, labelledById: f, ariaHasPopup: p = "listbox", className: m, panelClassName: h, iconAfter: g, renderPanel: _, open: v, onOpenChange: y, renderOverlay: b }) => {
3834
- let [x, S] = I(!1), C = v ?? x, w = (e) => {
3828
+ }, ii = ({ selectedId: e, records: t, selectedLabel: n, placeholder: r, labels: i, onSelect: a, onBrowse: o, extraOptions: s = [], isLoading: c = !1, error: l, isDisabled: u = !1, isInvalid: d = !1, labelledById: f, ariaHasPopup: p = "listbox", className: m, panelClassName: h, iconAfter: g, renderPanel: _, open: v, onOpenChange: y, renderOverlay: b }) => {
3829
+ let [x, S] = L(!1), C = v ?? x, w = (e) => {
3835
3830
  e && u || (v === void 0 && S(e), y?.(e));
3836
- }, [T, E] = I(""), D = F(null), O = P(() => [...s, ...t].filter((e) => e.label.toLocaleLowerCase().includes(T.toLocaleLowerCase())), [
3831
+ }, [T, E] = L(""), D = I(null), O = F(() => [...s, ...t].filter((e) => e.label.toLocaleLowerCase().includes(T.toLocaleLowerCase())), [
3837
3832
  s,
3838
3833
  t,
3839
3834
  T
@@ -3842,9 +3837,9 @@ var q = /* @__PURE__ */ function(e) {
3842
3837
  }, A = (e) => {
3843
3838
  a(e), k();
3844
3839
  }, ee = _ ? _(k) : /* @__PURE__ */ K("div", {
3845
- className: j("w-full min-w-0 max-w-full p-3", h),
3840
+ className: M("w-full min-w-0 max-w-full p-3", h),
3846
3841
  children: [
3847
- /* @__PURE__ */ G(Me, {
3842
+ /* @__PURE__ */ G(H, {
3848
3843
  value: T,
3849
3844
  onChange: (e) => E(e ?? ""),
3850
3845
  placeholder: i.searchPlaceholder,
@@ -3892,7 +3887,7 @@ var q = /* @__PURE__ */ function(e) {
3892
3887
  }
3893
3888
  })
3894
3889
  ]
3895
- }), te = /* @__PURE__ */ G(B, {
3890
+ }), te = /* @__PURE__ */ G(Ce, {
3896
3891
  onFocus: (e) => {
3897
3892
  D.current = e.currentTarget;
3898
3893
  },
@@ -3913,7 +3908,7 @@ var q = /* @__PURE__ */ function(e) {
3913
3908
  b && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), w(!C));
3914
3909
  },
3915
3910
  containerClassName: "w-full min-w-0",
3916
- wrapperClassName: j("cursor-pointer", m),
3911
+ wrapperClassName: M("cursor-pointer", m),
3917
3912
  className: "cursor-pointer",
3918
3913
  iconAfter: g
3919
3914
  });
@@ -3930,15 +3925,15 @@ var q = /* @__PURE__ */ function(e) {
3930
3925
  renderOverlay: () => ee,
3931
3926
  children: te
3932
3927
  });
3933
- }, ii = ({ service: e, texts: t, onLogin: n, onLogout: r }) => {
3934
- let [i, a] = I(!1), [s, c] = I(!1), [l, u] = I(!1), [d, f] = I(), p = e.authenticationType === y.ApiKey, m = p ? t?.deleteActionLabel ?? "Delete" : t?.logoutActionLabel ?? "Log out", h = p ? t?.deleteApiKeyConfirmMessage?.(b.User) ?? "Are you sure you want to delete your personal API key?" : t?.logoutConfirmMessage ?? "Are you sure you want to log out?";
3935
- return /* @__PURE__ */ K(En, {
3928
+ }, ai = ({ service: e, texts: t, onLogin: n, onLogout: r }) => {
3929
+ let [i, a] = L(!1), [s, c] = L(!1), [l, u] = L(!1), [d, f] = L(), p = e.authenticationType === y.ApiKey, m = p ? t?.deleteActionLabel ?? "Delete" : t?.logoutActionLabel ?? "Log out", h = p ? t?.deleteApiKeyConfirmMessage?.(b.User) ?? "Are you sure you want to delete your personal API key?" : t?.logoutConfirmMessage ?? "Are you sure you want to log out?";
3930
+ return /* @__PURE__ */ K(Dn, {
3936
3931
  label: e.name,
3937
3932
  description: e.description,
3938
- icon: /* @__PURE__ */ G(lt, {
3939
- size: R.SM,
3933
+ icon: /* @__PURE__ */ G(ut, {
3934
+ size: z.SM,
3940
3935
  "aria-hidden": !0,
3941
- stroke: z
3936
+ stroke: B
3942
3937
  }),
3943
3938
  status: e.status,
3944
3939
  isActive: e.status === o.SignedIn,
@@ -3957,7 +3952,7 @@ var q = /* @__PURE__ */ function(e) {
3957
3952
  errorClassName: "dial-caption-text",
3958
3953
  keyCardTitleClassName: "dial-tiny-semi-text",
3959
3954
  keyCardDescriptionClassName: "dial-tiny-text",
3960
- deleteActionClassName: Tn.errorText,
3955
+ deleteActionClassName: En.errorText,
3961
3956
  renderLoginOptions: e.canConsentToOfflineUsage ? (e) => /* @__PURE__ */ G(fe, {
3962
3957
  isSelected: i,
3963
3958
  onChange: a,
@@ -3967,14 +3962,14 @@ var q = /* @__PURE__ */ function(e) {
3967
3962
  }) : void 0,
3968
3963
  children: [
3969
3964
  e.hint && /* @__PURE__ */ G("p", {
3970
- className: j("dial-small-text break-words", Tn.description),
3965
+ className: M("dial-small-text break-words", En.description),
3971
3966
  children: e.hint
3972
3967
  }),
3973
- e.hasSharedCredentials && /* @__PURE__ */ G(vn, {
3968
+ e.hasSharedCredentials && /* @__PURE__ */ G(yn, {
3974
3969
  icon: /* @__PURE__ */ G(He, {
3975
- size: R.SM,
3970
+ size: z.SM,
3976
3971
  "aria-hidden": !0,
3977
- stroke: z
3972
+ stroke: B
3978
3973
  }),
3979
3974
  title: t?.sharedCredentials ?? "Shared credentials are available for this service."
3980
3975
  }),
@@ -3984,7 +3979,7 @@ var q = /* @__PURE__ */ function(e) {
3984
3979
  /* @__PURE__ */ G("p", { children: h }),
3985
3980
  d && /* @__PURE__ */ G("p", {
3986
3981
  role: "alert",
3987
- className: Tn.errorText,
3982
+ className: En.errorText,
3988
3983
  children: d
3989
3984
  }),
3990
3985
  /* @__PURE__ */ K("div", {
@@ -4018,7 +4013,7 @@ var q = /* @__PURE__ */ function(e) {
4018
4013
  })
4019
4014
  ]
4020
4015
  });
4021
- }, ai = ({ services: e, isLoading: t = !1, hasError: n = !1, showEmptyState: r = !1, onRetry: i, onLogin: a, onLogout: o, texts: s }) => t && !e.length ? /* @__PURE__ */ G("p", {
4016
+ }, oi = ({ services: e, isLoading: t = !1, hasError: n = !1, showEmptyState: r = !1, onRetry: i, onLogin: a, onLogout: o, texts: s }) => t && !e.length ? /* @__PURE__ */ G("p", {
4022
4017
  role: "status",
4023
4018
  className: "px-6 py-3",
4024
4019
  children: s?.loading ?? "Loading…"
@@ -4040,7 +4035,7 @@ var q = /* @__PURE__ */ function(e) {
4040
4035
  children: s?.title ?? "Credentials"
4041
4036
  }), /* @__PURE__ */ G("div", {
4042
4037
  className: "flex min-w-0 flex-col",
4043
- children: e.map((e) => /* @__PURE__ */ G(ii, {
4038
+ children: e.map((e) => /* @__PURE__ */ G(ai, {
4044
4039
  service: e,
4045
4040
  texts: s,
4046
4041
  onLogin: a,
@@ -4053,4 +4048,4 @@ var q = /* @__PURE__ */ function(e) {
4053
4048
  children: s?.empty ?? "No credentials required"
4054
4049
  }) : null;
4055
4050
  //#endregion
4056
- export { Ft as AppIdentity, ai as ApplicationCredentials, Ct as CATALOG_CLASS, qt as Card, Yt as CardGrid, Jt as CardRowRenderer, ni as Catalog, xt as CatalogContentNodeType, Q as CatalogContentPreviewType, J as CatalogDetailsTab, vt as CatalogLimitStatus, s as CatalogSortKey, yt as CatalogViewMode, q as CodeLanguage, Kn as ContentTab, o as CredentialStatus, Lt as CredentialsBadge, e as CredentialsBadgeState, b as CredentialsLevel, n as CredentialsUiState, ri as DeploymentSelectorField, Z as DeploymentSize, Y as DetailsConfirmationKind, X as DetailsConfirmationVariant, wr as DetailsPanel, Er as FavoriteCard, kr as Favorites, Jr as Filter, dn as InfoCard, bt as LimitRowLayout, ir as LimitsTab, Ur as ListView, Zr as Toolbar, y as ToolsetAuthenticationType, Ht as TopicTag, r as buildCatalogTabs, a as filterCatalogItems, d as getCredentialsBadgeState, c as getCredentialsUiState, t as getSignedInLevel, u as getTopicOptions, l as sortCatalogItems, St as useFavColumns, Mt as useScrollVirtualizer };
4051
+ export { It as AppIdentity, oi as ApplicationCredentials, Z as CATALOG_CLASS, Jt as Card, Xt as CardGrid, Yt as CardRowRenderer, ri as Catalog, X as CatalogContentNodeType, wt as CatalogContentPreviewType, q as CatalogDetailsTab, J as CatalogLimitStatus, s as CatalogSortKey, St as CatalogViewMode, yt as CodeLanguage, qn as ContentTab, o as CredentialStatus, Rt as CredentialsBadge, e as CredentialsBadgeState, b as CredentialsLevel, n as CredentialsUiState, ii as DeploymentSelectorField, xt as DeploymentSize, Y as DetailsConfirmationKind, bt as DetailsConfirmationVariant, Tr as DetailsPanel, Dr as FavoriteCard, Ar as Favorites, Yr as Filter, fn as InfoCard, Ct as LimitRowLayout, ar as LimitsTab, Wr as ListView, Qr as Toolbar, y as ToolsetAuthenticationType, Ut as TopicTag, r as buildCatalogTabs, a as filterCatalogItems, d as getCredentialsBadgeState, c as getCredentialsUiState, t as getSignedInLevel, u as getTopicOptions, l as sortCatalogItems, Tt as useFavColumns, Pt as useScrollVirtualizer };