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

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