@epam/ai-dial-catalog 1.2.0-dev.61 → 1.2.0-dev.72

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