@epam/ai-dial-catalog 1.2.0-dev.83 → 1.2.0-dev.88

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
@@ -2,28 +2,28 @@ import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c,
2
2
  import { CatalogEntityType as x, DESKTOP_BREAKPOINT_PX as S, DeploymentIcon as C, EntityHeader as w, EntityTypeLabel as T, FeaturedChip as E, ItemHeader as D, MarkdownCodeBlock as O, MarkdownRenderer as k, MarkdownWithPlaceholders as A, PanelEmptyState as ee, ResourceSummary as te, SELECT_LIST_MAX_HEIGHT_CLASS_NAME as ne, buildCssVars as re, mergeClasses as j } from "@epam/ai-dial-chat-shared";
3
3
  import { Fragment as ie, memo as ae, startTransition as oe, useCallback as M, useEffect as N, useId as se, useLayoutEffect as ce, useMemo as P, useRef as F, useState as I } from "react";
4
4
  import { ButtonAppearance as le, ButtonDropdown as L, ButtonVariant as ue, CardShell as de, Checkbox as fe, CloseButton as pe, DIAL_ICON_SIZE as R, DIAL_KIT_ICON_STROKE as z, DangerButton as me, Dropdown as he, ElementSize as ge, EllipsisTooltip as _e, FolderPath as ve, GhostButton as ye, GhostIconButton as be, Highlight as xe, InlineSelect as Se, InlineSelectTrigger as Ce, Input as B, LinkButton as we, MenuItem as Te, MenuItemMark as Ee, NeutralButton as De, NeutralIconButton as Oe, PrimaryButton as ke, ProgressBar as Ae, RadioGroup as je, Search as Me, SegmentedControl as V, Skeleton as Ne, SkeletonAvatarShape as Pe, Spinner as Fe, Tabs as Ie, ToggleIconButton as Le, Tooltip as H, mergeClasses as Re } from "@epam/ai-dial-ui-kit";
5
- import { IconAlertTriangleFilled as ze, IconArrowRight as Be, IconBuildingCommunity as Ve, IconCheck as He, IconChevronDown as Ue, IconChevronLeft as We, IconChevronRight as Ge, IconCircleCheckFilled as Ke, IconDots as qe, IconDownload as Je, IconFilter as Ye, IconFolder as U, IconKey as Xe, IconLayoutGrid as W, IconLayoutList as Ze, IconLogin as Qe, IconLogout as $e, IconPencil as et, IconPlayerPlayFilled as tt, IconPlus as nt, IconShare as rt, IconStar as it, IconStarFilled as at, IconTrash as ot, IconTrashX as G, IconUser as st, IconUserOff as ct, IconWorldOff as lt, IconWorldShare as ut } from "@tabler/icons-react";
6
- import { Fragment as dt, jsx as K, jsxs as q } from "react/jsx-runtime";
7
- import { PublishFooter as ft, PublishPanel as pt, derivePublishState as mt, usePublishFlow as ht } from "@epam/ai-dial-publish-panel";
8
- import { Grid as gt } from "@epam/ai-dial-ui-kit/grid";
5
+ import { IconAlertTriangleFilled as ze, IconArrowRight as Be, IconBuildingCommunity as Ve, IconCheck as He, IconChevronDown as Ue, IconChevronLeft as We, IconChevronRight as Ge, IconCircleCheckFilled as Ke, IconDots as qe, IconDownload as Je, IconFilter as Ye, IconFolder as Xe, IconKey as Ze, IconLayoutGrid as Qe, IconLayoutList as $e, IconLogin as et, IconLogout as tt, IconPencil as nt, IconPlayerPlayFilled as rt, IconPlus as it, IconShare as at, IconStar as U, IconStarFilled as ot, IconTrash as st, IconTrashX as W, IconUser as ct, IconUserOff as lt, IconWorldOff as ut, IconWorldShare as dt } from "@tabler/icons-react";
6
+ import { Fragment as ft, jsx as G, jsxs as K } from "react/jsx-runtime";
7
+ import { PublishFooter as pt, PublishPanel as mt, derivePublishState as ht, usePublishFlow as gt } from "@epam/ai-dial-publish-panel";
8
+ import { Grid as _t } from "@epam/ai-dial-ui-kit/grid";
9
9
  //#region src/types/code-language.ts
10
- var J = /* @__PURE__ */ function(e) {
10
+ var q = /* @__PURE__ */ function(e) {
11
11
  return e.Python = "python", e.Curl = "curl", e.JavaScript = "javascript", e;
12
- }({}), Y = /* @__PURE__ */ function(e) {
12
+ }({}), J = /* @__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
- }({}), _t = /* @__PURE__ */ function(e) {
14
+ }({}), vt = /* @__PURE__ */ function(e) {
15
15
  return e.RunningLow = "runningLow", e.LimitReached = "limitReached", e;
16
- }({}), X = /* @__PURE__ */ function(e) {
16
+ }({}), Y = /* @__PURE__ */ function(e) {
17
17
  return e.Delete = "delete", e.Logout = "logout", e.Unshare = "unshare", e.RevokeAccess = "revokeAccess", e.DeleteApiKey = "deleteApiKey", e.Unpublish = "unpublish", e;
18
- }({}), Z = /* @__PURE__ */ function(e) {
18
+ }({}), X = /* @__PURE__ */ function(e) {
19
19
  return e.Danger = "danger", e.Info = "info", e;
20
- }({}), Q = /* @__PURE__ */ function(e) {
20
+ }({}), Z = /* @__PURE__ */ function(e) {
21
21
  return e.SM = "sm", e.LG = "lg", e;
22
- }({}), vt = /* @__PURE__ */ function(e) {
23
- return e.Grid = "grid", e.Cards = "cards", e;
24
22
  }({}), yt = /* @__PURE__ */ function(e) {
25
- return e.File = "file", e.Folder = "folder", e;
23
+ return e.Grid = "grid", e.Cards = "cards", e;
26
24
  }({}), bt = /* @__PURE__ */ function(e) {
25
+ return e.File = "file", e.Folder = "folder", e;
26
+ }({}), Q = /* @__PURE__ */ function(e) {
27
27
  return e.Markdown = "markdown", e.Text = "text", e.Image = "image", e.Unsupported = "unsupported", e;
28
28
  }({}), xt = () => {
29
29
  let [e, t] = I(() => window.innerWidth);
@@ -132,47 +132,47 @@ var J = /* @__PURE__ */ function(e) {
132
132
  lastUsed: "_lastUsed_188yo_5",
133
133
  version: "_version_188yo_9"
134
134
  }, Nt = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, styles: c, lastUsedTrailing: l, iconClassName: u, iconOverlay: d }) => {
135
- let f = c?.colors, p = c?.typography ?? {}, m = a === Q.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = re({
135
+ let f = c?.colors, p = c?.typography ?? {}, m = a === Z.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = re({
136
136
  "--ai-name-text": f?.nameColor,
137
137
  "--ai-last-used-text": f?.lastUsedColor,
138
138
  "--ai-version-text": f?.versionColor
139
139
  });
140
- return /* @__PURE__ */ q("div", {
140
+ return /* @__PURE__ */ K("div", {
141
141
  className: j("flex min-w-0 items-start gap-3", s),
142
142
  style: _,
143
- children: [/* @__PURE__ */ q("div", {
143
+ children: [/* @__PURE__ */ K("div", {
144
144
  className: j("relative flex-shrink-0", h, u),
145
- children: [/* @__PURE__ */ K("div", {
145
+ children: [/* @__PURE__ */ G("div", {
146
146
  className: "size-full overflow-hidden rounded-[inherit]",
147
- children: /* @__PURE__ */ K(C, {
147
+ children: /* @__PURE__ */ G(C, {
148
148
  src: e ?? void 0,
149
149
  size: g,
150
150
  initialsName: n,
151
151
  styles: { badgeClassName: j(m ? "rounded-[14px]" : "rounded-[12px]") }
152
152
  })
153
153
  }), d]
154
- }), /* @__PURE__ */ q("div", {
154
+ }), /* @__PURE__ */ K("div", {
155
155
  className: "flex min-w-0 flex-1 flex-col gap-1",
156
- children: [/* @__PURE__ */ K(T, {
156
+ children: [/* @__PURE__ */ G(T, {
157
157
  type: t,
158
158
  className: p?.typeClassName
159
- }), /* @__PURE__ */ q("div", {
159
+ }), /* @__PURE__ */ K("div", {
160
160
  className: "flex min-w-0 flex-col",
161
- children: [/* @__PURE__ */ q("div", {
161
+ children: [/* @__PURE__ */ K("div", {
162
162
  className: "flex min-w-0 items-start gap-1 overflow-hidden",
163
- children: [/* @__PURE__ */ K(_e, {
164
- text: o ? /* @__PURE__ */ K(xe, {
163
+ children: [/* @__PURE__ */ G(_e, {
164
+ text: o ? /* @__PURE__ */ G(xe, {
165
165
  text: n,
166
166
  query: o
167
167
  }) : n,
168
168
  className: j("min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text", Mt.name)
169
- }), r && /* @__PURE__ */ K(_e, {
169
+ }), r && /* @__PURE__ */ G(_e, {
170
170
  text: r,
171
171
  className: j("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text", Mt.version)
172
172
  })]
173
- }), m && i != null && /* @__PURE__ */ q("div", {
173
+ }), m && i != null && /* @__PURE__ */ K("div", {
174
174
  className: "flex items-center gap-2",
175
- children: [/* @__PURE__ */ K("span", {
175
+ children: [/* @__PURE__ */ G("span", {
176
176
  className: j("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", Mt.lastUsed),
177
177
  children: i
178
178
  }), l]
@@ -180,10 +180,10 @@ var J = /* @__PURE__ */ function(e) {
180
180
  })]
181
181
  })]
182
182
  });
183
- }, Pt = { icon: "_icon_a0p4u_1" }, Ft = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || d(e) == null ? null : /* @__PURE__ */ K(H, {
183
+ }, Pt = { icon: "_icon_a0p4u_1" }, Ft = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || d(e) == null ? null : /* @__PURE__ */ G(H, {
184
184
  tooltip: t,
185
185
  asChild: !0,
186
- children: /* @__PURE__ */ K("span", {
186
+ children: /* @__PURE__ */ G("span", {
187
187
  role: "img",
188
188
  "aria-label": t,
189
189
  style: re({
@@ -191,7 +191,7 @@ var J = /* @__PURE__ */ function(e) {
191
191
  "--cat-cred-badge-icon": r?.icon
192
192
  }),
193
193
  className: j("absolute -bottom-1 -end-1 shrink-0", n),
194
- children: /* @__PURE__ */ K(ze, {
194
+ children: /* @__PURE__ */ G(ze, {
195
195
  size: R.SM,
196
196
  className: Pt.icon,
197
197
  "aria-hidden": !0
@@ -200,20 +200,20 @@ var J = /* @__PURE__ */ function(e) {
200
200
  }), It = {
201
201
  starFilledIcon: "_starFilledIcon_po6zj_1",
202
202
  starPop: "_starPop_po6zj_1"
203
- }, Lt = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ K(Le, {
203
+ }, Lt = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ G(Le, {
204
204
  size: n,
205
205
  style: re({ "--cat-star-filled": a }),
206
206
  className: i,
207
- icon: e ? /* @__PURE__ */ K(at, {
207
+ icon: e ? /* @__PURE__ */ G(ot, {
208
208
  size: R.SM,
209
209
  className: It.starFilledIcon
210
- }) : /* @__PURE__ */ K(it, {
210
+ }) : /* @__PURE__ */ G(U, {
211
211
  size: R.SM,
212
212
  stroke: z
213
213
  }),
214
214
  "aria-label": r,
215
215
  onClick: t
216
- }), Rt = { tag: "_tag_12518_1" }, zt = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ K("div", {
216
+ }), Rt = { tag: "_tag_12518_1" }, zt = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ G("div", {
217
217
  style: re({
218
218
  "--cat-card-tag-bg": r?.background,
219
219
  "--cat-card-tag-text": r?.text,
@@ -221,7 +221,7 @@ var J = /* @__PURE__ */ function(e) {
221
221
  }),
222
222
  className: j("flex h-6 w-fit items-center justify-center whitespace-nowrap rounded-md border px-2", Rt.tag, n, t),
223
223
  children: e
224
- }), Bt = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ K(zt, {
224
+ }), Bt = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ G(zt, {
225
225
  label: e,
226
226
  badgeClassName: t,
227
227
  colors: n
@@ -256,33 +256,33 @@ var J = /* @__PURE__ */ function(e) {
256
256
  s.current = Infinity, d();
257
257
  });
258
258
  return t.observe(e), () => t.disconnect();
259
- }, [d]), e.length === 0) return /* @__PURE__ */ K("div", {
259
+ }, [d]), e.length === 0) return /* @__PURE__ */ G("div", {
260
260
  ref: r,
261
261
  className: j("relative flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n)
262
262
  });
263
263
  let f = e.length - c;
264
- return /* @__PURE__ */ q("div", {
264
+ return /* @__PURE__ */ K("div", {
265
265
  ref: r,
266
266
  className: j("flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n),
267
267
  children: [
268
- e.slice(0, c).map((e, t) => /* @__PURE__ */ K("div", {
268
+ e.slice(0, c).map((e, t) => /* @__PURE__ */ G("div", {
269
269
  ref: (e) => {
270
270
  i.current[t] = e;
271
271
  },
272
- children: /* @__PURE__ */ K(Bt, { label: e })
272
+ children: /* @__PURE__ */ G(Bt, { label: e })
273
273
  }, e)),
274
- f > 0 && /* @__PURE__ */ K(H, {
274
+ f > 0 && /* @__PURE__ */ G(H, {
275
275
  tooltip: e.slice(c).join(", "),
276
- children: /* @__PURE__ */ K("span", {
276
+ children: /* @__PURE__ */ G("span", {
277
277
  "aria-label": t?.(f) ?? `and ${f} more topics`,
278
- children: /* @__PURE__ */ K(Bt, { label: `+${f}` })
278
+ children: /* @__PURE__ */ G(Bt, { label: `+${f}` })
279
279
  })
280
280
  }),
281
- /* @__PURE__ */ K("div", {
281
+ /* @__PURE__ */ G("div", {
282
282
  ref: o,
283
283
  "aria-hidden": !0,
284
284
  className: "invisible absolute start-0 top-0",
285
- children: /* @__PURE__ */ K(Bt, { label: `+${e.length}` })
285
+ children: /* @__PURE__ */ G(Bt, { label: `+${e.length}` })
286
286
  })
287
287
  ]
288
288
  });
@@ -310,7 +310,7 @@ var J = /* @__PURE__ */ function(e) {
310
310
  i,
311
311
  e.id
312
312
  ]);
313
- return /* @__PURE__ */ q(de, {
313
+ return /* @__PURE__ */ K(de, {
314
314
  ...n ? {
315
315
  role: "button",
316
316
  tabIndex: 0,
@@ -321,37 +321,37 @@ var J = /* @__PURE__ */ function(e) {
321
321
  style: b,
322
322
  className: j("box-border cursor-pointer gap-3", $.card, x ? $.featuredCard : void 0, l ? $.selectedCard : void 0, u, St.card),
323
323
  children: [
324
- x && /* @__PURE__ */ K("div", {
324
+ x && /* @__PURE__ */ G("div", {
325
325
  className: "absolute end-[22px] top-0 -translate-y-1/2",
326
- children: /* @__PURE__ */ K(E, {
326
+ children: /* @__PURE__ */ G(E, {
327
327
  label: o,
328
328
  type: e.type,
329
329
  className: _,
330
330
  style: d?.colors?.featuredChipStyle
331
331
  })
332
332
  }),
333
- l && /* @__PURE__ */ K(He, {
333
+ l && /* @__PURE__ */ G(He, {
334
334
  size: R.SM,
335
335
  className: j("absolute end-3 top-3 shrink-0", $.checkIcon),
336
336
  "aria-hidden": !0,
337
337
  stroke: z
338
338
  }),
339
- /* @__PURE__ */ K(Nt, {
339
+ /* @__PURE__ */ G(Nt, {
340
340
  icon: e.iconUrl,
341
341
  type: e.type,
342
342
  name: e.name,
343
343
  version: e.version,
344
- size: Q.SM,
344
+ size: Z.SM,
345
345
  query: t,
346
346
  iconClassName: $.cardIcon,
347
- iconOverlay: /* @__PURE__ */ K(Ft, {
347
+ iconOverlay: /* @__PURE__ */ G(Ft, {
348
348
  credentials: e.credentials,
349
349
  loggedOutLabel: f
350
350
  })
351
351
  }),
352
- /* @__PURE__ */ K("div", {
352
+ /* @__PURE__ */ G("div", {
353
353
  className: j("line-clamp-2 min-h-[2lh] break-words", $.description),
354
- children: e.description && /* @__PURE__ */ K(k, {
354
+ children: e.description && /* @__PURE__ */ G(k, {
355
355
  content: e.description,
356
356
  classNames: {
357
357
  p: g,
@@ -367,22 +367,22 @@ var J = /* @__PURE__ */ function(e) {
367
367
  components: Ut
368
368
  })
369
369
  }),
370
- /* @__PURE__ */ K("div", {
370
+ /* @__PURE__ */ G("div", {
371
371
  className: "mt-auto flex items-center gap-2",
372
- children: /* @__PURE__ */ K(Ht, { topics: e.topics })
372
+ children: /* @__PURE__ */ G(Ht, { topics: e.topics })
373
373
  }),
374
- C && /* @__PURE__ */ K("div", {
374
+ C && /* @__PURE__ */ G("div", {
375
375
  className: j("pt-3", !p && j("border-t", $.footer)),
376
- children: /* @__PURE__ */ q("div", {
376
+ children: /* @__PURE__ */ K("div", {
377
377
  className: "flex items-center gap-2",
378
- children: [/* @__PURE__ */ K("div", {
378
+ children: [/* @__PURE__ */ G("div", {
379
379
  className: "min-w-0 flex-1",
380
- children: e.folder.length > 0 && /* @__PURE__ */ K(ve, {
380
+ children: e.folder.length > 0 && /* @__PURE__ */ G(ve, {
381
381
  segments: e.folder,
382
382
  labelClassName: v,
383
383
  leafClassName: y
384
384
  })
385
- }), S && /* @__PURE__ */ K(Lt, {
385
+ }), S && /* @__PURE__ */ G(Lt, {
386
386
  isStarred: m,
387
387
  size: ge.Small,
388
388
  onClick: D,
@@ -395,7 +395,7 @@ var J = /* @__PURE__ */ function(e) {
395
395
  });
396
396
  }, Kt = ae(({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, isFavoriteVisible: a, onItemClick: o, featuredLabel: s, addToFavoritesAriaLabel: c, removeFromFavoritesAriaLabel: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f, featuredChipStyle: p }) => {
397
397
  let m = e * n, h = t.slice(m, m + n);
398
- return /* @__PURE__ */ K("div", {
398
+ return /* @__PURE__ */ G("div", {
399
399
  style: {
400
400
  top: e * 268,
401
401
  height: 268
@@ -403,9 +403,9 @@ var J = /* @__PURE__ */ function(e) {
403
403
  className: "absolute flex w-full gap-5 pb-5",
404
404
  children: Array.from({ length: n }, (e, t) => {
405
405
  let n = h[t];
406
- return /* @__PURE__ */ K("div", {
406
+ return /* @__PURE__ */ G("div", {
407
407
  className: "h-full min-w-0 flex-1",
408
- children: n && /* @__PURE__ */ K(Gt, {
408
+ children: n && /* @__PURE__ */ G(Gt, {
409
409
  item: n,
410
410
  query: r,
411
411
  initialIsStarred: n.isStarred,
@@ -454,16 +454,16 @@ var J = /* @__PURE__ */ function(e) {
454
454
  u,
455
455
  f
456
456
  ]);
457
- return o ? /* @__PURE__ */ K("div", {
457
+ return o ? /* @__PURE__ */ G("div", {
458
458
  className: "grid gap-5 p-5",
459
459
  style: {
460
460
  gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
461
461
  ...re({ "--cg-skeleton-card-bg": l })
462
462
  },
463
- children: Array.from({ length: x * 3 }, (e, t) => /* @__PURE__ */ K("div", {
463
+ children: Array.from({ length: x * 3 }, (e, t) => /* @__PURE__ */ G("div", {
464
464
  className: j("rounded-md border p-4", $.skeletonCard),
465
465
  style: { height: 248 },
466
- children: /* @__PURE__ */ K(Ne, {
466
+ children: /* @__PURE__ */ G(Ne, {
467
467
  avatar: {
468
468
  size: 48,
469
469
  shape: Pe.Square
@@ -474,30 +474,30 @@ var J = /* @__PURE__ */ function(e) {
474
474
  color: c
475
475
  })
476
476
  }, t))
477
- }) : e.length === 0 ? /* @__PURE__ */ K("div", {
477
+ }) : e.length === 0 ? /* @__PURE__ */ G("div", {
478
478
  className: "flex size-full flex-col items-center justify-center",
479
- children: /* @__PURE__ */ K(ee, { label: p })
480
- }) : /* @__PURE__ */ K("div", {
479
+ children: /* @__PURE__ */ G(ee, { label: p })
480
+ }) : /* @__PURE__ */ G("div", {
481
481
  ref: v,
482
482
  className: "relative",
483
483
  style: { height: S },
484
484
  children: Array.from({ length: b - y }, (e, t) => {
485
485
  let n = y + t;
486
- return /* @__PURE__ */ K(Kt, {
486
+ return /* @__PURE__ */ G(Kt, {
487
487
  rowIndex: n,
488
488
  ...C
489
489
  }, n);
490
490
  })
491
491
  });
492
- }), Jt = (e) => e.reduce((e, t) => t.type === yt.File ? e + 1 : e + Jt(t.items), 0), Yt = (e) => {
492
+ }), Jt = (e) => e.reduce((e, t) => t.type === bt.File ? e + 1 : e + Jt(t.items), 0), Yt = (e) => {
493
493
  let t = /* @__PURE__ */ new Set(), n = (e) => {
494
- for (let r of e) r.type === yt.Folder && (t.add(r.id), n(r.items));
494
+ for (let r of e) r.type === bt.Folder && (t.add(r.id), n(r.items));
495
495
  };
496
496
  return n(e), t;
497
497
  }, Xt = (e, t) => {
498
498
  if (t != null) for (let n of e) {
499
499
  if (n.id === t) return n.name;
500
- if (n.type === yt.Folder) {
500
+ if (n.type === bt.Folder) {
501
501
  let e = Xt(n.items, t);
502
502
  if (e != null) return e;
503
503
  }
@@ -510,19 +510,19 @@ var J = /* @__PURE__ */ function(e) {
510
510
  valueTrue: "_valueTrue_jnq93_17",
511
511
  valueFalse: "_valueFalse_jnq93_21",
512
512
  valueText: "_valueText_jnq93_25"
513
- }, Qt = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ q(dt, { children: [/* @__PURE__ */ K(Ke, {
513
+ }, Qt = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ K(ft, { children: [/* @__PURE__ */ G(Ke, {
514
514
  size: R.MD,
515
515
  className: j(r, Zt.checkIcon)
516
- }), /* @__PURE__ */ K("span", {
516
+ }), /* @__PURE__ */ G("span", {
517
517
  className: j(n, Zt.valueTrue),
518
518
  children: i
519
- })] }) : e === !1 ? /* @__PURE__ */ K("span", {
519
+ })] }) : e === !1 ? /* @__PURE__ */ G("span", {
520
520
  className: j(t, Zt.valueFalse),
521
521
  children: a
522
- }) : /* @__PURE__ */ K("span", {
522
+ }) : /* @__PURE__ */ G("span", {
523
523
  className: j("min-w-0 break-words", t, Zt.valueText),
524
524
  children: e
525
- }), $t = ({ sectionLabel: e = "Section", values: t, labelClassName: n = "dial-small-semi-text", valueClassName: r = "dial-small-text", valueTrueClassName: i = "dial-small-semi-text", checkIconClassName: a, sectionClassName: o = "dial-caption-text", yesLabel: s = "Yes", noLabel: c = "No", colors: l }) => /* @__PURE__ */ K("div", {
525
+ }), $t = ({ sectionLabel: e = "Section", values: t, labelClassName: n = "dial-small-semi-text", valueClassName: r = "dial-small-text", valueTrueClassName: i = "dial-small-semi-text", checkIconClassName: a, sectionClassName: o = "dial-caption-text", yesLabel: s = "Yes", noLabel: c = "No", colors: l }) => /* @__PURE__ */ G("div", {
526
526
  className: "flex flex-col",
527
527
  style: re({
528
528
  "--tv-section-heading": l?.sectionHeading,
@@ -533,19 +533,19 @@ var J = /* @__PURE__ */ function(e) {
533
533
  "--tv-value-false": l?.valueFalse,
534
534
  "--tv-value-text": l?.valueText
535
535
  }),
536
- children: t != null && t.length > 0 && /* @__PURE__ */ q("section", { children: [/* @__PURE__ */ K("p", {
536
+ children: t != null && t.length > 0 && /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("p", {
537
537
  className: j("mb-3 mt-0", o, Zt.sectionHeading),
538
538
  children: e
539
- }), /* @__PURE__ */ K("ul", {
539
+ }), /* @__PURE__ */ G("ul", {
540
540
  className: "m-0 list-none p-0",
541
- children: t.map((e, t) => /* @__PURE__ */ q("li", {
541
+ children: t.map((e, t) => /* @__PURE__ */ K("li", {
542
542
  className: j("flex items-center rounded px-3 py-2", t % 2 == 0 ? Zt.rowAlt : void 0),
543
- children: [/* @__PURE__ */ K("span", {
543
+ children: [/* @__PURE__ */ G("span", {
544
544
  className: j(n, Zt.label, "w-2/5 shrink-0"),
545
545
  children: e.label
546
- }), /* @__PURE__ */ K("div", {
546
+ }), /* @__PURE__ */ G("div", {
547
547
  className: "flex w-3/5 min-w-0 items-center gap-1",
548
- children: /* @__PURE__ */ K(Qt, {
548
+ children: /* @__PURE__ */ G(Qt, {
549
549
  value: e.value,
550
550
  valueClassName: r,
551
551
  valueTrueClassName: i,
@@ -557,27 +557,27 @@ var J = /* @__PURE__ */ function(e) {
557
557
  }, e.label))
558
558
  })] })
559
559
  }), en = { sectionHeading: "_sectionHeading_148lj_1" }, tn = {
560
- [J.Python]: "Python",
561
- [J.Curl]: "cURL",
562
- [J.JavaScript]: "JavaScript"
560
+ [q.Python]: "Python",
561
+ [q.Curl]: "cURL",
562
+ [q.JavaScript]: "JavaScript"
563
563
  }, nn = {
564
- [J.Python]: "python",
565
- [J.Curl]: "bash",
566
- [J.JavaScript]: "javascript"
564
+ [q.Python]: "python",
565
+ [q.Curl]: "bash",
566
+ [q.JavaScript]: "javascript"
567
567
  }, rn = ({ snippets: e, sectionLabel: t, copyAriaLabel: n = "Copy", copiedStatusLabel: r = "Copied!", codeClassName: i = "dial-code-text", codeTitleClassName: a = "dial-tiny-semi-text", sectionClassName: o = "dial-caption-text" }) => {
568
- let [s, c] = I(e[0]?.language ?? J.Python);
568
+ let [s, c] = I(e[0]?.language ?? q.Python);
569
569
  N(() => {
570
- c(e[0]?.language ?? J.Python);
570
+ c(e[0]?.language ?? q.Python);
571
571
  }, [e]);
572
572
  let l = P(() => e.map((e) => ({
573
573
  key: e.language,
574
574
  label: tn[e.language] ?? e.language,
575
575
  onClick: () => c(e.language)
576
576
  })), [e]), u = e.find((e) => e.language === s)?.code ?? "", d = e.length > 1;
577
- return /* @__PURE__ */ q("section", { children: [t != null && /* @__PURE__ */ K("p", {
577
+ return /* @__PURE__ */ K("section", { children: [t != null && /* @__PURE__ */ G("p", {
578
578
  className: j("mb-3 mt-0", o, en.sectionHeading),
579
579
  children: t
580
- }), /* @__PURE__ */ K(O, {
580
+ }), /* @__PURE__ */ G(O, {
581
581
  language: nn[s] ?? s,
582
582
  title: tn[s] ?? s,
583
583
  value: u,
@@ -586,7 +586,7 @@ var J = /* @__PURE__ */ function(e) {
586
586
  codeClassName: i,
587
587
  languageLabelClassName: a,
588
588
  hideDownload: !0,
589
- titleSlot: d ? /* @__PURE__ */ K(Se, {
589
+ titleSlot: d ? /* @__PURE__ */ G(Se, {
590
590
  items: l,
591
591
  matchReferenceWidth: !1,
592
592
  placement: "bottom-end",
@@ -605,17 +605,17 @@ var J = /* @__PURE__ */ function(e) {
605
605
  value: e.resource.modelId
606
606
  });
607
607
  let S = _.length > 1, C = x.length > 0, w = v ? null : e.resource?.endpointUrl, T = (e.snippets?.length ?? 0) > 0, E = e.requestExample != null, D = e.responseSchema != null;
608
- return /* @__PURE__ */ q("div", {
608
+ return /* @__PURE__ */ K("div", {
609
609
  className: "flex flex-col gap-6",
610
610
  children: [
611
- C && /* @__PURE__ */ K($t, {
611
+ C && /* @__PURE__ */ G($t, {
612
612
  sectionLabel: t,
613
613
  values: x,
614
614
  labelClassName: u,
615
615
  valueClassName: d,
616
616
  sectionClassName: m
617
617
  }),
618
- w != null && /* @__PURE__ */ K(O, {
618
+ w != null && /* @__PURE__ */ G(O, {
619
619
  language: a,
620
620
  value: w,
621
621
  copyLabel: c,
@@ -624,12 +624,12 @@ var J = /* @__PURE__ */ function(e) {
624
624
  languageLabelClassName: p,
625
625
  hideDownload: !0
626
626
  }),
627
- v && /* @__PURE__ */ q("section", { children: [
628
- /* @__PURE__ */ K("p", {
627
+ v && /* @__PURE__ */ K("section", { children: [
628
+ /* @__PURE__ */ G("p", {
629
629
  className: j("mb-3 mt-0", m, en.sectionHeading),
630
630
  children: n
631
631
  }),
632
- y != null && /* @__PURE__ */ K(O, {
632
+ y != null && /* @__PURE__ */ G(O, {
633
633
  language: y.label,
634
634
  value: y.url,
635
635
  copyLabel: c,
@@ -637,7 +637,7 @@ var J = /* @__PURE__ */ function(e) {
637
637
  codeClassName: f,
638
638
  languageLabelClassName: p,
639
639
  hideDownload: !0,
640
- titleSlot: S ? /* @__PURE__ */ K(Se, {
640
+ titleSlot: S ? /* @__PURE__ */ G(Se, {
641
641
  items: b,
642
642
  matchReferenceWidth: !1,
643
643
  placement: "bottom-end",
@@ -645,9 +645,9 @@ var J = /* @__PURE__ */ function(e) {
645
645
  selectedKey: y.url
646
646
  }) : void 0
647
647
  }, h),
648
- y?.snippets != null && y.snippets.length > 0 && /* @__PURE__ */ K("div", {
648
+ y?.snippets != null && y.snippets.length > 0 && /* @__PURE__ */ G("div", {
649
649
  className: "mt-4",
650
- children: /* @__PURE__ */ K(rn, {
650
+ children: /* @__PURE__ */ G(rn, {
651
651
  snippets: y.snippets,
652
652
  copyAriaLabel: c,
653
653
  copiedStatusLabel: l,
@@ -657,7 +657,7 @@ var J = /* @__PURE__ */ function(e) {
657
657
  }, h)
658
658
  })
659
659
  ] }),
660
- !v && T && /* @__PURE__ */ K(rn, {
660
+ !v && T && /* @__PURE__ */ G(rn, {
661
661
  snippets: e.snippets ?? [],
662
662
  sectionLabel: r,
663
663
  copyAriaLabel: c,
@@ -666,10 +666,10 @@ var J = /* @__PURE__ */ function(e) {
666
666
  codeTitleClassName: p,
667
667
  sectionClassName: m
668
668
  }),
669
- E && /* @__PURE__ */ q("section", { children: [/* @__PURE__ */ K("p", {
669
+ E && /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("p", {
670
670
  className: j("mb-3 mt-0", m, en.sectionHeading),
671
671
  children: o
672
- }), /* @__PURE__ */ K(O, {
672
+ }), /* @__PURE__ */ G(O, {
673
673
  language: "bash",
674
674
  value: e.requestExample ?? "",
675
675
  copyLabel: c,
@@ -677,10 +677,10 @@ var J = /* @__PURE__ */ function(e) {
677
677
  codeClassName: f,
678
678
  hideDownload: !0
679
679
  })] }),
680
- D && /* @__PURE__ */ q("section", { children: [/* @__PURE__ */ K("p", {
680
+ D && /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("p", {
681
681
  className: j("mb-3 mt-0", m, en.sectionHeading),
682
682
  children: s
683
- }), /* @__PURE__ */ K(O, {
683
+ }), /* @__PURE__ */ G(O, {
684
684
  language: "json",
685
685
  value: e.responseSchema ?? "",
686
686
  copyLabel: c,
@@ -694,30 +694,30 @@ var J = /* @__PURE__ */ function(e) {
694
694
  message: "_message_13mok_1",
695
695
  consequences: "_consequences_13mok_5",
696
696
  footer: "_footer_13mok_9"
697
- }, sn = ({ confirmLabel: e, cancelLabel: t, variant: n = Z.Info, isLoading: r = !1, isConfirmDisabled: i = !1, loadingStatusLabel: a, onConfirm: o, onCancel: s }) => {
698
- let c = n === Z.Danger, l = (() => {
699
- if (r) return /* @__PURE__ */ K(Fe, { size: R.SM });
700
- if (c) return /* @__PURE__ */ K(G, {
697
+ }, sn = ({ confirmLabel: e, cancelLabel: t, variant: n = X.Info, isLoading: r = !1, isConfirmDisabled: i = !1, loadingStatusLabel: a, onConfirm: o, onCancel: s }) => {
698
+ let c = n === X.Danger, l = (() => {
699
+ if (r) return /* @__PURE__ */ G(Fe, { size: R.SM });
700
+ if (c) return /* @__PURE__ */ G(W, {
701
701
  size: R.MD,
702
702
  "aria-hidden": !0,
703
703
  stroke: z
704
704
  });
705
705
  })(), u = c ? me : De;
706
- return /* @__PURE__ */ q("div", {
706
+ return /* @__PURE__ */ K("div", {
707
707
  className: j("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start", on.footer),
708
708
  children: [
709
- /* @__PURE__ */ K(ye, {
709
+ /* @__PURE__ */ G(ye, {
710
710
  label: t,
711
711
  disabled: r,
712
712
  onClick: s
713
713
  }),
714
- /* @__PURE__ */ K(u, {
714
+ /* @__PURE__ */ G(u, {
715
715
  label: e,
716
716
  disabled: r || i,
717
717
  iconBefore: l,
718
718
  onClick: o
719
719
  }),
720
- r && a != null && /* @__PURE__ */ K("span", {
720
+ r && a != null && /* @__PURE__ */ G("span", {
721
721
  role: "status",
722
722
  "aria-live": "polite",
723
723
  className: "sr-only",
@@ -728,25 +728,25 @@ var J = /* @__PURE__ */ function(e) {
728
728
  }, cn = {
729
729
  info: "_info_lklha_1",
730
730
  danger: "_danger_lklha_5"
731
- }, ln = ({ item: e, variant: t = Z.Info, iconSize: n = 40 }) => /* @__PURE__ */ K(te, {
731
+ }, ln = ({ item: e, variant: t = X.Info, iconSize: n = 40 }) => /* @__PURE__ */ G(te, {
732
732
  item: e,
733
733
  iconSize: n,
734
734
  hasVersionTag: !1,
735
- className: t === Z.Danger ? cn.danger : cn.info
736
- }), un = ({ item: e, message: t, consequences: n, variant: r = Z.Info, messageClassName: i = "dial-small-text", children: a }) => /* @__PURE__ */ q("div", {
735
+ className: t === X.Danger ? cn.danger : cn.info
736
+ }), un = ({ item: e, message: t, consequences: n, variant: r = X.Info, messageClassName: i = "dial-small-text", children: a }) => /* @__PURE__ */ K("div", {
737
737
  className: "flex flex-col gap-4 px-6 py-4",
738
738
  children: [
739
- /* @__PURE__ */ K(ln, {
739
+ /* @__PURE__ */ G(ln, {
740
740
  item: e,
741
741
  variant: r
742
742
  }),
743
- /* @__PURE__ */ K("p", {
743
+ /* @__PURE__ */ G("p", {
744
744
  className: j(i, "break-words", on.message),
745
745
  children: t
746
746
  }),
747
- n != null && n.length > 0 && /* @__PURE__ */ K("ul", {
747
+ n != null && n.length > 0 && /* @__PURE__ */ G("ul", {
748
748
  className: j("flex list-disc flex-col gap-2 ps-5", i, on.consequences),
749
- children: n.map((e) => /* @__PURE__ */ K("li", { children: e }, e))
749
+ children: n.map((e) => /* @__PURE__ */ G("li", { children: e }, e))
750
750
  }),
751
751
  a
752
752
  ]
@@ -759,19 +759,19 @@ var J = /* @__PURE__ */ function(e) {
759
759
  }({}), pn = {
760
760
  sunken: dn.sunkenBox,
761
761
  raised: dn.raisedBox
762
- }, mn = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */ q("span", {
762
+ }, mn = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */ K("span", {
763
763
  className: "relative inline-flex shrink-0",
764
764
  children: [
765
- /* @__PURE__ */ K("span", {
765
+ /* @__PURE__ */ G("span", {
766
766
  className: j("flex size-8 items-center justify-center rounded-lg", pn[n]),
767
767
  children: e
768
768
  }),
769
- t && /* @__PURE__ */ K(Ke, {
769
+ t && /* @__PURE__ */ G(Ke, {
770
770
  size: R.MD,
771
771
  "aria-hidden": !0,
772
772
  className: j("absolute -end-2 -top-2", dn.activeIcon)
773
773
  }),
774
- r != null && /* @__PURE__ */ K("span", {
774
+ r != null && /* @__PURE__ */ G("span", {
775
775
  role: "status",
776
776
  className: "sr-only",
777
777
  children: r
@@ -782,40 +782,40 @@ var J = /* @__PURE__ */ function(e) {
782
782
  icon: "_icon_tqnz7_6",
783
783
  title: "_title_tqnz7_10",
784
784
  description: "_description_tqnz7_14"
785
- }, gn = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ q("div", {
785
+ }, gn = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ K("div", {
786
786
  role: "status",
787
787
  "aria-live": "polite",
788
788
  className: j("flex items-center gap-3 rounded-xl p-3", hn.card),
789
- children: [/* @__PURE__ */ K("span", {
789
+ children: [/* @__PURE__ */ G("span", {
790
790
  className: j("shrink-0", hn.icon, n != null && "mt-0.5"),
791
791
  children: e
792
- }), /* @__PURE__ */ q("div", {
792
+ }), /* @__PURE__ */ K("div", {
793
793
  className: "flex min-w-0 flex-1 items-center justify-between gap-2",
794
- children: [/* @__PURE__ */ q("div", {
794
+ children: [/* @__PURE__ */ K("div", {
795
795
  className: "flex min-w-0 flex-col gap-1",
796
- children: [/* @__PURE__ */ K("span", {
796
+ children: [/* @__PURE__ */ G("span", {
797
797
  className: j(i, hn.title),
798
798
  children: t
799
- }), n != null && /* @__PURE__ */ K("span", {
799
+ }), n != null && /* @__PURE__ */ G("span", {
800
800
  className: j(a, hn.description),
801
801
  children: n
802
802
  })]
803
- }), r != null && /* @__PURE__ */ K("div", {
803
+ }), r != null && /* @__PURE__ */ G("div", {
804
804
  className: "shrink-0 whitespace-nowrap",
805
805
  children: r
806
806
  })]
807
807
  })]
808
808
  }), _n = (e) => e === y.ApiKey ? "You are currently using organization API key to access this toolset." : "You are currently using organization credentials to access this toolset.", vn = (e) => e === y.ApiKey ? "Configure your personal API key to have access to your data." : "Login using personal account to have access to your data.", yn = (e) => e === y.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", bn = (e) => e === y.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", xn = 20, Sn = ({ state: e, authenticationType: t, texts: n }) => {
809
- let r = /* @__PURE__ */ K(Ve, {
809
+ let r = /* @__PURE__ */ G(Ve, {
810
810
  size: xn,
811
811
  "aria-hidden": !0,
812
812
  stroke: z
813
813
  });
814
814
  if (e === v.PersonalCredentialsActive) {
815
815
  let e = (n?.personalCredentialsActiveBannerTitle ?? bn)(t);
816
- return /* @__PURE__ */ K(gn, {
817
- icon: /* @__PURE__ */ K(mn, {
818
- icon: /* @__PURE__ */ K(st, {
816
+ return /* @__PURE__ */ G(gn, {
817
+ icon: /* @__PURE__ */ G(mn, {
818
+ icon: /* @__PURE__ */ G(ct, {
819
819
  size: R.SM,
820
820
  "aria-hidden": !0,
821
821
  stroke: z
@@ -828,9 +828,9 @@ var J = /* @__PURE__ */ function(e) {
828
828
  }
829
829
  if (e === v.OrgCredentialsActive) {
830
830
  let e = (n?.orgCredentialsActiveBannerTitle ?? yn)(t);
831
- return /* @__PURE__ */ K(gn, {
832
- icon: /* @__PURE__ */ K(mn, {
833
- icon: /* @__PURE__ */ K(Ve, {
831
+ return /* @__PURE__ */ G(gn, {
832
+ icon: /* @__PURE__ */ G(mn, {
833
+ icon: /* @__PURE__ */ G(Ve, {
834
834
  size: R.SM,
835
835
  "aria-hidden": !0,
836
836
  stroke: z
@@ -841,7 +841,7 @@ var J = /* @__PURE__ */ function(e) {
841
841
  title: e
842
842
  });
843
843
  }
844
- return /* @__PURE__ */ K(gn, {
844
+ return /* @__PURE__ */ G(gn, {
845
845
  icon: r,
846
846
  title: (n?.orgFallbackBannerTitle ?? _n)(t),
847
847
  description: (n?.orgFallbackBannerDescription ?? vn)(t)
@@ -870,39 +870,39 @@ var J = /* @__PURE__ */ function(e) {
870
870
  ee(!1);
871
871
  }
872
872
  }, ie = d?.loginActionLabel ?? "Log in", ae = d?.logoutActionLabel ?? "Log out", oe = d?.addApiKeyActionLabel ?? "Add", N = d?.deleteActionLabel ?? "Delete", ce = d?.credentialsSignedInLabel ?? "Signed in", P = d?.credentialsSignedOutLabel ?? "Signed out", F = d?.addingApiKeyStatusLabel ?? "Adding", L = d?.apiKeyConfiguredMessage ?? "Key has been configured", ue = s == null ? void 0 : (d?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(s);
873
- return /* @__PURE__ */ q("div", {
873
+ return /* @__PURE__ */ K("div", {
874
874
  role: "group",
875
875
  "aria-label": e,
876
876
  "aria-busy": A || b,
877
877
  className: "flex min-w-0 items-start gap-3 rounded-xl p-3",
878
- children: [/* @__PURE__ */ K(mn, {
878
+ children: [/* @__PURE__ */ G(mn, {
879
879
  icon: n,
880
880
  isActive: i,
881
881
  statusLabel: i ? ce : P
882
- }), /* @__PURE__ */ q("div", {
882
+ }), /* @__PURE__ */ K("div", {
883
883
  className: "flex min-w-0 flex-1 flex-col gap-1",
884
884
  children: [
885
- /* @__PURE__ */ q("div", {
885
+ /* @__PURE__ */ K("div", {
886
886
  className: "flex flex-wrap items-start justify-between gap-2",
887
- children: [/* @__PURE__ */ q("div", {
887
+ children: [/* @__PURE__ */ K("div", {
888
888
  className: "flex min-w-0 flex-1 flex-col gap-0.5 break-words",
889
- children: [/* @__PURE__ */ K("span", {
889
+ children: [/* @__PURE__ */ G("span", {
890
890
  className: f,
891
891
  children: e
892
- }), /* @__PURE__ */ K("span", {
892
+ }), /* @__PURE__ */ G("span", {
893
893
  className: j(p, Cn.rowDescription),
894
894
  children: t
895
895
  })]
896
- }), a === y.OAuth && (te ? l && /* @__PURE__ */ K(me, {
896
+ }), a === y.OAuth && (te ? l && /* @__PURE__ */ G(me, {
897
897
  appearance: le.Ghost,
898
898
  label: ae,
899
899
  className: "min-h-11 min-w-28 shrink-0 justify-center whitespace-nowrap",
900
900
  onClick: l,
901
901
  disabled: A || v
902
- }) : /* @__PURE__ */ K(De, {
902
+ }) : /* @__PURE__ */ G(De, {
903
903
  label: A ? void 0 : ie,
904
904
  "aria-label": ie,
905
- iconBefore: A ? /* @__PURE__ */ K(Fe, {
905
+ iconBefore: A ? /* @__PURE__ */ G(Fe, {
906
906
  size: R.SM,
907
907
  ariaLabel: ie
908
908
  }) : void 0,
@@ -911,11 +911,11 @@ var J = /* @__PURE__ */ function(e) {
911
911
  onClick: re
912
912
  }))]
913
913
  }),
914
- a === y.ApiKey && !te && /* @__PURE__ */ q("div", {
914
+ a === y.ApiKey && !te && /* @__PURE__ */ K("div", {
915
915
  className: "flex animate-fadeIn flex-col gap-1 pt-1",
916
- children: [/* @__PURE__ */ q("div", {
916
+ children: [/* @__PURE__ */ K("div", {
917
917
  className: "flex items-end gap-2",
918
- children: [/* @__PURE__ */ K(B, {
918
+ children: [/* @__PURE__ */ G(B, {
919
919
  id: C,
920
920
  type: "password",
921
921
  autoComplete: "off",
@@ -925,10 +925,10 @@ var J = /* @__PURE__ */ function(e) {
925
925
  invalid: O,
926
926
  disabled: A || v,
927
927
  containerClassName: "min-w-0 flex-1"
928
- }), /* @__PURE__ */ K(De, {
928
+ }), /* @__PURE__ */ G(De, {
929
929
  label: A ? void 0 : oe,
930
930
  "aria-label": A ? F : void 0,
931
- iconBefore: A ? /* @__PURE__ */ K(Fe, {
931
+ iconBefore: A ? /* @__PURE__ */ G(Fe, {
932
932
  size: R.SM,
933
933
  ariaLabel: F
934
934
  }) : void 0,
@@ -936,16 +936,16 @@ var J = /* @__PURE__ */ function(e) {
936
936
  onClick: re,
937
937
  disabled: A || v
938
938
  })]
939
- }), O && /* @__PURE__ */ K("span", {
939
+ }), O && /* @__PURE__ */ G("span", {
940
940
  role: "alert",
941
941
  className: j(m, Cn.errorText),
942
942
  children: d?.apiKeyRequiredErrorMessage ?? "API key is required."
943
943
  })]
944
944
  }),
945
- a === y.ApiKey && te && /* @__PURE__ */ K("div", {
945
+ a === y.ApiKey && te && /* @__PURE__ */ G("div", {
946
946
  className: "animate-fadeIn pt-1",
947
- children: /* @__PURE__ */ K(gn, {
948
- icon: /* @__PURE__ */ K(Xe, {
947
+ children: /* @__PURE__ */ G(gn, {
948
+ icon: /* @__PURE__ */ G(Ze, {
949
949
  size: R.SM,
950
950
  "aria-hidden": !0,
951
951
  stroke: z
@@ -954,7 +954,7 @@ var J = /* @__PURE__ */ function(e) {
954
954
  description: ue,
955
955
  titleClassName: h,
956
956
  descriptionClassName: g,
957
- action: u && /* @__PURE__ */ K(we, {
957
+ action: u && /* @__PURE__ */ G(we, {
958
958
  label: N,
959
959
  className: j("min-h-11", _),
960
960
  onClick: u,
@@ -963,7 +963,7 @@ var J = /* @__PURE__ */ function(e) {
963
963
  })
964
964
  }),
965
965
  !te && x?.(A || v),
966
- w && /* @__PURE__ */ K("p", {
966
+ w && /* @__PURE__ */ G("p", {
967
967
  role: "alert",
968
968
  className: j(m, Cn.errorText),
969
969
  children: w
@@ -976,29 +976,29 @@ var J = /* @__PURE__ */ function(e) {
976
976
  let { credentialsDescriptionClassName: c = "dial-body-paragraph-text", credentialsRowLabelClassName: l = "dial-small-semi-text", credentialsRowDescriptionClassName: u = "dial-small-text", credentialsErrorClassName: d = "dial-caption-text", credentialsKeyCardTitleClassName: f = "dial-tiny-semi-text", credentialsKeyCardDescriptionClassName: p = "dial-tiny-text" } = a?.typography ?? {}, m = e.credentials;
977
977
  if (m == null) return null;
978
978
  let h = (i?.credentialsManagementDescription ?? Tn)(m.authenticationType), g = m.userStatus === o.SignedIn, _ = !g && m.globalStatus === o.SignedIn;
979
- return /* @__PURE__ */ q("div", {
979
+ return /* @__PURE__ */ K("div", {
980
980
  className: "flex flex-col",
981
- children: [/* @__PURE__ */ K("div", {
981
+ children: [/* @__PURE__ */ G("div", {
982
982
  className: "px-6 py-4",
983
- children: /* @__PURE__ */ K("div", {
983
+ children: /* @__PURE__ */ G("div", {
984
984
  className: j("rounded-xl p-3", Cn.surface),
985
- children: /* @__PURE__ */ K(w, {
985
+ children: /* @__PURE__ */ G(w, {
986
986
  item: e,
987
987
  iconSize: 40,
988
988
  hasFeaturedTag: !1
989
989
  })
990
990
  })
991
- }), /* @__PURE__ */ q("div", {
991
+ }), /* @__PURE__ */ K("div", {
992
992
  className: "flex flex-col gap-5 px-6 py-4",
993
- children: [/* @__PURE__ */ K("span", {
993
+ children: [/* @__PURE__ */ G("span", {
994
994
  className: j(c, Cn.description),
995
995
  children: h
996
- }), /* @__PURE__ */ q("div", {
996
+ }), /* @__PURE__ */ K("div", {
997
997
  className: "flex flex-col",
998
- children: [/* @__PURE__ */ K(wn, {
998
+ children: [/* @__PURE__ */ G(wn, {
999
999
  label: i?.personalCredentialsLabel ?? "Personal credentials",
1000
1000
  description: i?.personalCredentialsDescription ?? "These credentials apply only to your account.",
1001
- icon: /* @__PURE__ */ K(st, {
1001
+ icon: /* @__PURE__ */ G(ct, {
1002
1002
  size: R.SM,
1003
1003
  "aria-hidden": !0,
1004
1004
  stroke: z
@@ -1020,10 +1020,10 @@ var J = /* @__PURE__ */ function(e) {
1020
1020
  keyCardTitleClassName: f,
1021
1021
  keyCardDescriptionClassName: p,
1022
1022
  deleteActionClassName: s
1023
- }), /* @__PURE__ */ K(wn, {
1023
+ }), /* @__PURE__ */ G(wn, {
1024
1024
  label: i?.organizationCredentialsLabel ?? "Organization credentials",
1025
1025
  description: i?.organizationCredentialsDescription ?? "Once added, these credentials will grant all users in your organization access to this toolset.",
1026
- icon: /* @__PURE__ */ K(Ve, {
1026
+ icon: /* @__PURE__ */ G(Ve, {
1027
1027
  size: R.SM,
1028
1028
  "aria-hidden": !0,
1029
1029
  stroke: z
@@ -1094,22 +1094,22 @@ var J = /* @__PURE__ */ function(e) {
1094
1094
  a,
1095
1095
  s
1096
1096
  ]), S = c?.personalApiKeyPanelTitle ?? "Personal API key", C = c?.addApiKeyActionLabel ?? "Add", w = c?.deleteActionLabel ?? "Delete", T = c?.addingApiKeyStatusLabel ?? "Adding", E = c?.deletingStatusLabel ?? "Deleting", D = c?.apiKeyRequiredErrorMessage ?? "API key is required.", O = c?.personalApiKeyAddedMessage ?? "Personal key has been added", k = r == null ? void 0 : (c?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(r);
1097
- return /* @__PURE__ */ q("div", {
1097
+ return /* @__PURE__ */ K("div", {
1098
1098
  className: "flex w-[418px] flex-col",
1099
1099
  children: [
1100
- /* @__PURE__ */ K("div", {
1100
+ /* @__PURE__ */ G("div", {
1101
1101
  className: "flex items-center gap-2 px-4 py-3",
1102
- children: /* @__PURE__ */ K("span", {
1102
+ children: /* @__PURE__ */ G("span", {
1103
1103
  className: "dial-small-semi-text",
1104
1104
  children: S
1105
1105
  })
1106
1106
  }),
1107
- /* @__PURE__ */ K("div", { className: j("mx-4 h-px", kn.divider) }),
1108
- !v && /* @__PURE__ */ q("div", {
1107
+ /* @__PURE__ */ G("div", { className: j("mx-4 h-px", kn.divider) }),
1108
+ !v && /* @__PURE__ */ K("div", {
1109
1109
  className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
1110
- children: [/* @__PURE__ */ q("div", {
1110
+ children: [/* @__PURE__ */ K("div", {
1111
1111
  className: "flex items-end gap-2",
1112
- children: [/* @__PURE__ */ K(B, {
1112
+ children: [/* @__PURE__ */ G(B, {
1113
1113
  id: `catalog-item-${e.id}-${t}-api-key`,
1114
1114
  type: "password",
1115
1115
  autoComplete: "current-password",
@@ -1119,35 +1119,35 @@ var J = /* @__PURE__ */ function(e) {
1119
1119
  invalid: f,
1120
1120
  disabled: m,
1121
1121
  containerClassName: "min-w-0 flex-1"
1122
- }), /* @__PURE__ */ K(De, {
1122
+ }), /* @__PURE__ */ G(De, {
1123
1123
  label: m ? void 0 : C,
1124
1124
  "aria-label": m ? T : void 0,
1125
- iconBefore: m ? /* @__PURE__ */ K(Fe, {
1125
+ iconBefore: m ? /* @__PURE__ */ G(Fe, {
1126
1126
  size: An,
1127
1127
  ariaLabel: T
1128
1128
  }) : void 0,
1129
1129
  onClick: b,
1130
1130
  disabled: m
1131
1131
  })]
1132
- }), f && /* @__PURE__ */ K("span", {
1132
+ }), f && /* @__PURE__ */ G("span", {
1133
1133
  className: "dial-caption-text text-error",
1134
1134
  children: D
1135
1135
  })]
1136
1136
  }),
1137
- v && /* @__PURE__ */ K("div", {
1137
+ v && /* @__PURE__ */ G("div", {
1138
1138
  className: "animate-fadeIn px-4 py-3.5",
1139
- children: /* @__PURE__ */ K(gn, {
1140
- icon: /* @__PURE__ */ K(Xe, {
1139
+ children: /* @__PURE__ */ G(gn, {
1140
+ icon: /* @__PURE__ */ G(Ze, {
1141
1141
  size: 20,
1142
1142
  "aria-hidden": !0,
1143
1143
  stroke: z
1144
1144
  }),
1145
1145
  title: O,
1146
1146
  description: k,
1147
- action: /* @__PURE__ */ K(we, {
1147
+ action: /* @__PURE__ */ G(we, {
1148
1148
  label: g ? void 0 : w,
1149
1149
  "aria-label": g ? E : void 0,
1150
- iconBefore: g ? /* @__PURE__ */ K(Fe, {
1150
+ iconBefore: g ? /* @__PURE__ */ G(Fe, {
1151
1151
  size: An,
1152
1152
  ariaLabel: E
1153
1153
  }) : void 0,
@@ -1172,13 +1172,13 @@ var J = /* @__PURE__ */ function(e) {
1172
1172
  n
1173
1173
  ]);
1174
1174
  if (!Nn(e) || r && !r(e)) return null;
1175
- let c = /* @__PURE__ */ K(De, {
1175
+ let c = /* @__PURE__ */ G(De, {
1176
1176
  label: i,
1177
- iconBefore: /* @__PURE__ */ K(rt, {
1177
+ iconBefore: /* @__PURE__ */ G(at, {
1178
1178
  size: R.MD,
1179
1179
  stroke: z
1180
1180
  }),
1181
- iconAfter: /* @__PURE__ */ K(Ue, {
1181
+ iconAfter: /* @__PURE__ */ G(Ue, {
1182
1182
  size: R.MD,
1183
1183
  stroke: z
1184
1184
  }),
@@ -1186,7 +1186,7 @@ var J = /* @__PURE__ */ function(e) {
1186
1186
  "aria-haspopup": n ? "menu" : void 0,
1187
1187
  "aria-expanded": n ? a : void 0
1188
1188
  });
1189
- return n ? /* @__PURE__ */ K(he, {
1189
+ return n ? /* @__PURE__ */ G(he, {
1190
1190
  placement: "bottom-end",
1191
1191
  matchReferenceWidth: !1,
1192
1192
  open: a,
@@ -1197,48 +1197,48 @@ var J = /* @__PURE__ */ function(e) {
1197
1197
  children: c
1198
1198
  }) : c;
1199
1199
  }, Fn = (e) => e === y.ApiKey ? "Manage API keys" : "Manage credentials", In = {
1200
- [_t.LimitReached]: "bg-error text-error",
1201
- [_t.RunningLow]: "bg-warning text-warning"
1202
- }, Ln = ({ status: e, label: t }) => /* @__PURE__ */ K("div", {
1200
+ [vt.LimitReached]: "bg-error text-error",
1201
+ [vt.RunningLow]: "bg-warning text-warning"
1202
+ }, Ln = ({ status: e, label: t }) => /* @__PURE__ */ G("div", {
1203
1203
  className: j("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", In[e]),
1204
1204
  children: t
1205
1205
  }), Rn = ({ item: e, onUseInChat: t, isPrimaryActionVisible: r, onShare: i, shareOverlay: a, isShareVisible: o, isSharePrimary: s, onEdit: l, onDownload: u, isDownloadVisible: d, isDownloadPrimary: f, onDelete: p, onUnshare: m, isUnshareVisible: h, onRevokeShare: g, onFetchRecipientsCount: _, isRevokeShareVisible: v, onLogin: S, onLogout: C, onOpenCredentialsManagement: T, onRequestLogout: E, texts: D, detailsStyles: O, isPublishVisible: k, isPublishPrimary: A, onOpenPublish: ee, isUnpublishVisible: te, hasPublishedFolders: ne = !1, isPublishHistoryResolved: re = !0, onRequestPublishHistory: ie, onOpenUnpublish: ae, isReadonly: oe = !1 }) => {
1206
- let { nameClassName: se = "dial-body-semi-text", folderLabelClassName: ce = "dial-tiny-text", folderLeafClassName: le = "dial-tiny-semi-text" } = O?.typography ?? {}, L = e.details?.limits?.status, ue = L == null ? void 0 : /* @__PURE__ */ K(Ln, {
1206
+ let { nameClassName: se = "dial-body-semi-text", folderLabelClassName: ce = "dial-tiny-text", folderLeafClassName: le = "dial-tiny-semi-text" } = O?.typography ?? {}, L = e.details?.limits?.status, ue = L == null ? void 0 : /* @__PURE__ */ G(Ln, {
1207
1207
  status: L,
1208
- label: L === _t.LimitReached ? D?.limitReachedLabel ?? "Limit reached" : D?.limitRunningLowLabel ?? "Running low"
1208
+ label: L === vt.LimitReached ? D?.limitReachedLabel ?? "Limit reached" : D?.limitRunningLowLabel ?? "Running low"
1209
1209
  }), de = M(() => {
1210
1210
  t?.(e);
1211
1211
  }, [e, t]), fe = M(() => {
1212
1212
  l?.(e);
1213
1213
  }, [e, l]), pe = M(() => {
1214
1214
  ee?.();
1215
- }, [ee]), me = M(() => {
1215
+ }, [ee]), ge = M(() => {
1216
1216
  ae?.();
1217
- }, [ae]), ge = M(() => {
1217
+ }, [ae]), _e = M(() => {
1218
1218
  u?.(e);
1219
- }, [e, u]), [_e, ye] = I(!1);
1219
+ }, [e, u]), [ye, be] = I(!1);
1220
1220
  N(() => {
1221
- ye(!1);
1221
+ be(!1);
1222
1222
  }, [e.id]);
1223
- let be = M(() => {
1224
- _e || (ye(!0), (async () => {
1223
+ let xe = M(() => {
1224
+ ye || (be(!0), (async () => {
1225
1225
  try {
1226
1226
  await u?.(e);
1227
1227
  } catch {} finally {
1228
- ye(!1);
1228
+ be(!1);
1229
1229
  }
1230
1230
  })());
1231
1231
  }, [
1232
1232
  e,
1233
1233
  u,
1234
- _e
1235
- ]), [xe, Se] = I(!1);
1234
+ ye
1235
+ ]), [Se, Ce] = I(!1);
1236
1236
  N(() => {
1237
- Se(!1);
1237
+ Ce(!1);
1238
1238
  }, [e.id]);
1239
- let Ce = M(() => {
1239
+ let B = M(() => {
1240
1240
  if (a) {
1241
- Se(!0);
1241
+ Ce(!0);
1242
1242
  return;
1243
1243
  }
1244
1244
  i?.(e);
@@ -1246,29 +1246,29 @@ var J = /* @__PURE__ */ function(e) {
1246
1246
  e,
1247
1247
  i,
1248
1248
  a
1249
- ]), B = M(() => {
1250
- Se(!1);
1251
- }, []), we = M(() => {
1249
+ ]), we = M(() => {
1250
+ Ce(!1);
1251
+ }, []), Te = M(() => {
1252
1252
  m?.(e);
1253
- }, [e, m]), Te = M(() => {
1253
+ }, [e, m]), Ee = M(() => {
1254
1254
  p?.(e);
1255
- }, [e, p]), Ee = M(() => {
1255
+ }, [e, p]), Ae = M(() => {
1256
1256
  g?.(e);
1257
- }, [e, g]), [Ae, je] = I(On.Idle), [Me, V] = I(void 0), Ne = F(null);
1257
+ }, [e, g]), [je, Me] = I(On.Idle), [V, Ne] = I(void 0), Pe = F(null);
1258
1258
  N(() => {
1259
- Ne.current = null, je(On.Idle), V(void 0);
1259
+ Pe.current = null, Me(On.Idle), Ne(void 0);
1260
1260
  }, [e.id]);
1261
- let Pe = M(() => {
1262
- if (!_ || Ne.current === e.id || !g || e.isMyApp !== !0 || v?.(e) === !1) return;
1261
+ let Ie = M(() => {
1262
+ if (!_ || Pe.current === e.id || !g || e.isMyApp !== !0 || v?.(e) === !1) return;
1263
1263
  let t = e.id;
1264
- Ne.current = t, je(On.Loading), (async () => {
1264
+ Pe.current = t, Me(On.Loading), (async () => {
1265
1265
  try {
1266
1266
  let n = await _(e);
1267
- if (Ne.current !== t) return;
1268
- V(n), je(n == null ? On.Unknown : On.Resolved);
1267
+ if (Pe.current !== t) return;
1268
+ Ne(n), Me(n == null ? On.Unknown : On.Resolved);
1269
1269
  } catch {
1270
- if (Ne.current !== t) return;
1271
- V(void 0), je(On.Unknown);
1270
+ if (Pe.current !== t) return;
1271
+ Ne(void 0), Me(On.Unknown);
1272
1272
  }
1273
1273
  })();
1274
1274
  }, [
@@ -1276,295 +1276,292 @@ var J = /* @__PURE__ */ function(e) {
1276
1276
  _,
1277
1277
  g,
1278
1278
  v
1279
- ]), Ie = M((e) => {
1280
- e && (Pe(), ie?.());
1281
- }, [Pe, ie]), Le = M(() => {
1282
- Pe(), ie?.();
1283
- }, [Pe, ie]), H = M(() => {
1279
+ ]), [Le, H] = I(!1);
1280
+ N(() => {
1281
+ H(!1);
1282
+ }, [e.id]);
1283
+ let Re = M((e) => {
1284
+ H(e), e && (Ie(), ie?.());
1285
+ }, [Ie, ie]), ze = M(() => {
1286
+ Ie(), ie?.();
1287
+ }, [Ie, ie]), Ve = M(() => {
1284
1288
  ie?.();
1285
- }, [ie]), Re = D?.hasPrimaryAction !== !1 && (r?.(e) ?? (e.type === x.Model || e.type === x.Agent || e.type === x.Prompt)), ze = !oe && !!ae && ne && (te?.(e) ?? !0), Ve = !oe && !!ae && !re && te?.(e) === !0, He = !oe && !ze && (k?.(e) ?? (e.type === x.Model || e.type === x.Toolset || e.type === x.Agent)), We = !oe && !!l && !!e.isEditable, Ge = !oe && e.isMyApp === !0 && (o?.(e) ?? !0), Ke = s?.(e) ?? !0, Ye = A?.(e) ?? !1, U = e.credentials?.authenticationType ?? y.None, W = e.credentials != null && U !== y.None ? c(e.credentials) : void 0, Ze = !oe && W != null && (!!S || !!C), nt = e.type === x.Toolset && Ze, it = !!u && (d?.(e) ?? !0), at = it && !nt && (f?.(e) ?? (e.type === x.Skill && !Re)), G = it && !at, st = !oe && e.isMyApp, ft = !oe && !!m && e.isMyApp !== !0 && e.sharedWithMe === !0 && (h?.(e) ?? !0), pt = !oe && !!g && e.isMyApp === !0 && (!_ || Ae === On.Unknown || Ae === On.Resolved && (Me ?? 0) > 0) && (v?.(e) ?? !0), mt = P(() => {
1289
+ }, [ie]), He = D?.hasPrimaryAction !== !1 && (r?.(e) ?? (e.type === x.Model || e.type === x.Agent || e.type === x.Prompt)), We = !oe && !!ae && ne && (te?.(e) ?? !0), Ge = !oe && !!ae && !re && te?.(e) === !0, Ke = !oe && !We && (k?.(e) ?? (e.type === x.Model || e.type === x.Toolset || e.type === x.Agent)), Ye = !oe && !!l && !!e.isEditable, Xe = !oe && e.isMyApp === !0 && (o?.(e) ?? !0), Qe = s?.(e) ?? !0, $e = A?.(e) ?? !1, it = e.credentials?.authenticationType ?? y.None, U = e.credentials != null && it !== y.None ? c(e.credentials) : void 0, ot = !oe && U != null && (!!S || !!C), W = e.type === x.Toolset && ot, ct = !!u && (d?.(e) ?? !0), pt = ct && !W && (f?.(e) ?? (e.type === x.Skill && !He)), mt = ct && !pt, ht = !oe && e.isMyApp, gt = !oe && !!m && e.isMyApp !== !0 && e.sharedWithMe === !0 && (h?.(e) ?? !0), _t = !oe && !!g && e.isMyApp === !0 && (!_ || je === On.Unknown || je === On.Resolved && (V ?? 0) > 0) && (v?.(e) ?? !0), q = P(() => {
1286
1290
  let e = [];
1287
- if (!Ke && Ge && e.push({
1291
+ if (!Qe && Xe && e.push({
1288
1292
  key: "share",
1289
1293
  label: D?.shareLabel ?? "Share",
1290
- icon: /* @__PURE__ */ K(rt, {
1291
- size: R.SM,
1292
- "aria-hidden": !0,
1293
- className: "text-secondary",
1294
- stroke: z
1295
- }),
1296
- onClick: Ce
1297
- }), We && e.push({
1294
+ Icon: at,
1295
+ iconClassName: "text-secondary",
1296
+ onClick: B
1297
+ }), Ye && e.push({
1298
1298
  key: "edit",
1299
1299
  label: D?.editActionLabel ?? "Edit",
1300
- icon: /* @__PURE__ */ K(et, {
1301
- size: R.SM,
1302
- "aria-hidden": !0,
1303
- className: "text-secondary",
1304
- stroke: z
1305
- }),
1300
+ Icon: nt,
1301
+ iconClassName: "text-secondary",
1306
1302
  onClick: fe
1307
- }), G && e.push({
1303
+ }), mt && e.push({
1308
1304
  key: "download",
1309
1305
  label: D?.downloadActionLabel ?? "Download",
1310
- icon: /* @__PURE__ */ K(Je, {
1311
- size: R.SM,
1312
- "aria-hidden": !0,
1313
- className: "text-secondary",
1314
- stroke: z
1315
- }),
1316
- onClick: ge
1317
- }), !Ye && He && e.push({
1306
+ Icon: Je,
1307
+ iconClassName: "text-secondary",
1308
+ onClick: _e
1309
+ }), !$e && Ke && e.push({
1318
1310
  key: "publish",
1319
1311
  label: D?.publishLabel ?? "Publish",
1320
- icon: /* @__PURE__ */ K(ut, {
1321
- size: R.SM,
1322
- "aria-hidden": !0,
1323
- className: "text-secondary",
1324
- stroke: z
1325
- }),
1312
+ Icon: dt,
1313
+ iconClassName: "text-secondary",
1326
1314
  onClick: pe
1327
- }), !Ye && ze && e.push({
1315
+ }), !$e && We && e.push({
1328
1316
  key: "unpublish",
1329
1317
  label: D?.unpublishLabel ?? "Unpublish",
1330
- icon: /* @__PURE__ */ K(lt, {
1331
- size: R.SM,
1332
- "aria-hidden": !0,
1333
- className: "text-secondary",
1334
- stroke: z
1335
- }),
1336
- onClick: me
1337
- }), st && e.push({
1318
+ Icon: ut,
1319
+ iconClassName: "text-secondary",
1320
+ onClick: ge
1321
+ }), ht && e.push({
1338
1322
  key: "delete",
1339
1323
  label: D?.deleteActionLabel ?? "Delete",
1340
- icon: /* @__PURE__ */ K(ot, {
1341
- size: R.SM,
1342
- "aria-hidden": !0,
1343
- stroke: z
1344
- }),
1324
+ Icon: st,
1345
1325
  danger: !0,
1346
- onClick: Te
1347
- }), pt) {
1326
+ onClick: Ee
1327
+ }), _t) {
1348
1328
  let t = D?.revokeShareLabel ?? "Revoke access", n = D?.revokeShareLabelWithCount ?? ((e) => `${t} (${e})`);
1349
1329
  e.push({
1350
1330
  key: "revoke-share",
1351
- label: Me == null ? t : n(Me),
1352
- icon: /* @__PURE__ */ K(ct, {
1353
- size: R.SM,
1354
- "aria-hidden": !0,
1355
- stroke: z
1356
- }),
1331
+ label: V == null ? t : n(V),
1332
+ Icon: lt,
1357
1333
  danger: !0,
1358
- onClick: Ee
1334
+ onClick: Ae
1359
1335
  });
1360
1336
  }
1361
- return ft && e.push({
1337
+ return gt && e.push({
1362
1338
  key: "unshare",
1363
1339
  label: D?.unshareLabel ?? "Remove from My List",
1364
- icon: /* @__PURE__ */ K(ot, {
1365
- size: R.SM,
1366
- "aria-hidden": !0,
1367
- stroke: z
1368
- }),
1369
- onClick: we
1340
+ Icon: st,
1341
+ onClick: Te
1370
1342
  }), e;
1371
1343
  }, [
1344
+ Qe,
1345
+ Xe,
1346
+ Ye,
1347
+ mt,
1348
+ $e,
1372
1349
  Ke,
1373
- Ge,
1374
1350
  We,
1375
- G,
1376
- Ye,
1377
- He,
1378
- ze,
1379
- st,
1380
- pt,
1381
- Me,
1382
- ft,
1351
+ ht,
1352
+ _t,
1353
+ V,
1354
+ gt,
1383
1355
  D,
1384
- Ce,
1356
+ B,
1385
1357
  fe,
1386
- ge,
1358
+ _e,
1387
1359
  pe,
1388
- me,
1389
- Te,
1360
+ ge,
1390
1361
  Ee,
1391
- we
1392
- ]), [ht, gt] = I(!1), J = U === y.ApiKey && W !== n.ManageCredentials, Y = U === y.ApiKey && W === n.LogOut, X = U !== y.ApiKey && W !== n.ManageCredentials && W === n.LogOut, Z = M(() => {
1393
- if (W === n.ManageCredentials) {
1362
+ Ae,
1363
+ Te
1364
+ ]), J = P(() => q.map(({ key: e, label: t, Icon: n, iconClassName: r, danger: i, onClick: a }) => ({
1365
+ key: e,
1366
+ label: t,
1367
+ icon: /* @__PURE__ */ G(n, {
1368
+ size: R.SM,
1369
+ "aria-hidden": !0,
1370
+ className: r,
1371
+ stroke: z
1372
+ }),
1373
+ danger: i,
1374
+ onClick: a
1375
+ })), [q]), Y = !oe && !!ae && (te?.(e) ?? !0), X = !oe && !!g && !!_ && e.isMyApp === !0 && (v?.(e) ?? !0), Z = q.length === 1 && !Le && !Y && !X ? q[0] : void 0, [yt, bt] = I(!1), Q = it === y.ApiKey && U !== n.ManageCredentials, xt = it === y.ApiKey && U === n.LogOut, St = it !== y.ApiKey && U !== n.ManageCredentials && U === n.LogOut, Ct = M(() => {
1376
+ if (U === n.ManageCredentials) {
1394
1377
  T?.();
1395
1378
  return;
1396
1379
  }
1397
- if (J) {
1398
- gt((e) => !e);
1380
+ if (Q) {
1381
+ bt((e) => !e);
1399
1382
  return;
1400
1383
  }
1401
- if (W === n.LogOut) {
1384
+ if (U === n.LogOut) {
1402
1385
  E?.();
1403
1386
  return;
1404
1387
  }
1405
1388
  S?.(e, { level: b.User });
1406
1389
  }, [
1407
- W,
1408
- J,
1390
+ U,
1391
+ Q,
1409
1392
  e,
1410
1393
  S,
1411
1394
  T,
1412
1395
  E
1413
- ]), Q = W === n.ManageCredentials ? (D?.manageCredentialsActionLabel ?? Fn)(U) : U === y.ApiKey ? W === n.LogOut ? D?.changeApiKeyActionLabel ?? "Change API key" : D?.apiKeyActionLabel ?? "API key" : W === n.LogOut ? D?.logoutActionLabel ?? "Log out" : D?.loginActionLabel ?? "Log in", vt = W === n.ManageCredentials || U === y.ApiKey ? /* @__PURE__ */ K(Xe, {
1396
+ ]), wt = U === n.ManageCredentials ? (D?.manageCredentialsActionLabel ?? Fn)(it) : it === y.ApiKey ? U === n.LogOut ? D?.changeApiKeyActionLabel ?? "Change API key" : D?.apiKeyActionLabel ?? "API key" : U === n.LogOut ? D?.logoutActionLabel ?? "Log out" : D?.loginActionLabel ?? "Log in", Tt = U === n.ManageCredentials || it === y.ApiKey ? /* @__PURE__ */ G(Ze, {
1414
1397
  size: R.MD,
1415
1398
  stroke: z
1416
- }) : W === n.LogOut ? /* @__PURE__ */ K($e, {
1399
+ }) : U === n.LogOut ? /* @__PURE__ */ G(tt, {
1417
1400
  size: R.MD,
1418
1401
  stroke: z
1419
- }) : /* @__PURE__ */ K(Qe, {
1402
+ }) : /* @__PURE__ */ G(et, {
1420
1403
  size: R.MD,
1421
1404
  stroke: z
1422
- }), yt = W === n.ManageCredentials ? /* @__PURE__ */ K(Be, {
1405
+ }), Et = U === n.ManageCredentials ? /* @__PURE__ */ G(Be, {
1423
1406
  size: R.MD,
1424
1407
  className: "rtl:scale-x-[-1]",
1425
1408
  stroke: z
1426
- }) : J ? /* @__PURE__ */ K(Ue, {
1409
+ }) : Q ? /* @__PURE__ */ G(Ue, {
1427
1410
  size: R.MD,
1428
1411
  stroke: z
1429
- }) : void 0, bt = (t) => {
1430
- let n = /* @__PURE__ */ K(t, {
1431
- label: Q,
1432
- iconBefore: vt,
1433
- iconAfter: yt,
1434
- onClick: Z,
1435
- "aria-haspopup": J ? "dialog" : void 0,
1436
- "aria-expanded": J ? ht : void 0
1412
+ }) : void 0, Dt = (t) => {
1413
+ let n = /* @__PURE__ */ G(t, {
1414
+ label: wt,
1415
+ iconBefore: Tt,
1416
+ iconAfter: Et,
1417
+ onClick: Ct,
1418
+ "aria-haspopup": Q ? "dialog" : void 0,
1419
+ "aria-expanded": Q ? yt : void 0
1437
1420
  });
1438
- return !J || e.credentials == null ? n : /* @__PURE__ */ K(he, {
1421
+ return !Q || e.credentials == null ? n : /* @__PURE__ */ G(he, {
1439
1422
  placement: "bottom-start",
1440
1423
  matchReferenceWidth: !1,
1441
- open: ht,
1442
- onOpenChange: gt,
1424
+ open: yt,
1425
+ onOpenChange: bt,
1443
1426
  trigger: [],
1444
1427
  outsideClosable: !0,
1445
- renderOverlay: () => /* @__PURE__ */ K(jn, {
1428
+ renderOverlay: () => /* @__PURE__ */ G(jn, {
1446
1429
  item: e,
1447
1430
  level: b.User,
1448
1431
  status: e.credentials?.userStatus,
1449
1432
  apiKeyAddedWhen: e.credentials?.userApiKeyAddedWhen,
1450
1433
  onLogin: S,
1451
1434
  onLogout: C,
1452
- onClose: () => gt(!1),
1435
+ onClose: () => bt(!1),
1453
1436
  texts: D
1454
1437
  }),
1455
1438
  children: n
1456
1439
  });
1457
- }, xt = () => {
1458
- let t = /* @__PURE__ */ K(he, {
1459
- items: mt,
1440
+ }, Ot = ({ key: t, label: n, Icon: r, danger: s, onClick: c }) => t === "share" ? /* @__PURE__ */ G(Pn, {
1441
+ item: e,
1442
+ onShare: i,
1443
+ shareOverlay: a,
1444
+ isShareVisible: o,
1445
+ label: D?.shareLabel
1446
+ }) : /* @__PURE__ */ G(s ? me : De, {
1447
+ label: n,
1448
+ iconBefore: /* @__PURE__ */ G(r, {
1449
+ size: R.MD,
1450
+ "aria-hidden": !0,
1451
+ stroke: z
1452
+ }),
1453
+ onClick: c
1454
+ }), kt = () => {
1455
+ let t = /* @__PURE__ */ G(he, {
1456
+ items: J,
1460
1457
  placement: "bottom-end",
1461
1458
  matchReferenceWidth: !1,
1462
- onOpenChange: Ie,
1463
- children: /* @__PURE__ */ K(Oe, {
1464
- icon: /* @__PURE__ */ K(qe, {
1459
+ onOpenChange: Re,
1460
+ children: /* @__PURE__ */ G(Oe, {
1461
+ icon: /* @__PURE__ */ G(qe, {
1465
1462
  size: R.LG,
1466
1463
  "aria-hidden": !0,
1467
1464
  stroke: z
1468
1465
  }),
1469
1466
  "aria-label": D?.manageActionLabel ?? "Manage",
1470
1467
  "aria-haspopup": "menu",
1471
- onMouseEnter: Le,
1472
- onFocus: Le
1468
+ onMouseEnter: ze,
1469
+ onFocus: ze
1473
1470
  })
1474
1471
  });
1475
- return Ke || !a || !Ge ? t : /* @__PURE__ */ K(he, {
1472
+ return Qe || !a || !Xe ? t : /* @__PURE__ */ G(he, {
1476
1473
  placement: "bottom-end",
1477
1474
  matchReferenceWidth: !1,
1478
- open: xe,
1479
- onOpenChange: Se,
1475
+ open: Se,
1476
+ onOpenChange: Ce,
1480
1477
  trigger: [],
1481
1478
  outsideClosable: !0,
1482
- renderOverlay: () => a(e, B),
1479
+ renderOverlay: () => a(e, we),
1483
1480
  children: t
1484
1481
  });
1485
- }, St = nt || Re || at || Ke && Ge || Ye && ze || Ye && He || Ze && !nt || mt.length > 0 || Ve;
1486
- return /* @__PURE__ */ q("div", {
1482
+ }, At = W || He || pt || Qe && Xe || $e && We || $e && Ke || ot && !W || J.length > 0 || Ge;
1483
+ return /* @__PURE__ */ K("div", {
1487
1484
  className: "flex flex-col gap-3 px-6 py-4",
1488
- children: [/* @__PURE__ */ K(w, {
1485
+ children: [/* @__PURE__ */ G(w, {
1489
1486
  item: e,
1490
1487
  iconSize: 52,
1491
1488
  nameClassName: j(se, Mn.name),
1492
1489
  featuredLabel: D?.featuredLabel ?? "Featured",
1493
1490
  featuredChipStyle: O?.colors?.featuredChipStyle,
1494
1491
  statusBadge: ue,
1495
- footer: e.folder.length > 0 ? /* @__PURE__ */ K(ve, {
1492
+ footer: e.folder.length > 0 ? /* @__PURE__ */ G(ve, {
1496
1493
  segments: e.folder,
1497
1494
  labelClassName: ce,
1498
1495
  leafClassName: le
1499
1496
  }) : void 0
1500
- }), St && /* @__PURE__ */ q("div", {
1497
+ }), At && /* @__PURE__ */ K("div", {
1501
1498
  className: "flex flex-wrap items-center gap-2 ps-[60px]",
1502
1499
  children: [
1503
- nt && bt(Y || X ? De : ke),
1504
- Re && /* @__PURE__ */ K(ke, {
1500
+ W && Dt(xt || St ? De : ke),
1501
+ He && /* @__PURE__ */ G(ke, {
1505
1502
  label: D?.primaryActionLabel ?? "Use in chat",
1506
- iconBefore: /* @__PURE__ */ K(tt, { size: R.MD }),
1503
+ iconBefore: /* @__PURE__ */ G(rt, { size: R.MD }),
1507
1504
  onClick: de,
1508
- disabled: L === _t.LimitReached
1505
+ disabled: L === vt.LimitReached
1509
1506
  }),
1510
- at && /* @__PURE__ */ q(dt, { children: [/* @__PURE__ */ K(ke, {
1507
+ pt && /* @__PURE__ */ K(ft, { children: [/* @__PURE__ */ G(ke, {
1511
1508
  label: D?.downloadActionLabel ?? "Download",
1512
- iconBefore: _e ? /* @__PURE__ */ K(Fe, {
1509
+ iconBefore: ye ? /* @__PURE__ */ G(Fe, {
1513
1510
  size: R.MD,
1514
1511
  "aria-hidden": !0
1515
- }) : /* @__PURE__ */ K(Je, {
1512
+ }) : /* @__PURE__ */ G(Je, {
1516
1513
  size: R.MD,
1517
1514
  "aria-hidden": !0,
1518
1515
  stroke: z
1519
1516
  }),
1520
- onClick: be,
1521
- disabled: _e,
1522
- "aria-busy": _e
1523
- }), _e && /* @__PURE__ */ K("span", {
1517
+ onClick: xe,
1518
+ disabled: ye,
1519
+ "aria-busy": ye
1520
+ }), ye && /* @__PURE__ */ G("span", {
1524
1521
  role: "status",
1525
1522
  "aria-live": "polite",
1526
1523
  className: "sr-only",
1527
1524
  children: D?.downloadingStatusLabel ?? "Downloading"
1528
1525
  })] }),
1529
- Ke && Ge && /* @__PURE__ */ K(Pn, {
1526
+ Qe && Xe && /* @__PURE__ */ G(Pn, {
1530
1527
  item: e,
1531
1528
  onShare: i,
1532
1529
  shareOverlay: a,
1533
1530
  isShareVisible: o,
1534
1531
  label: D?.shareLabel
1535
1532
  }),
1536
- Ye && ze && /* @__PURE__ */ K(De, {
1533
+ $e && We && /* @__PURE__ */ G(De, {
1537
1534
  label: D?.unpublishLabel ?? "Unpublish",
1538
- iconBefore: /* @__PURE__ */ K(lt, {
1535
+ iconBefore: /* @__PURE__ */ G(ut, {
1539
1536
  size: R.MD,
1540
1537
  "aria-hidden": !0,
1541
1538
  stroke: z
1542
1539
  }),
1543
- onClick: me,
1544
- onMouseEnter: H,
1545
- onFocus: H
1540
+ onClick: ge,
1541
+ onMouseEnter: Ve,
1542
+ onFocus: Ve
1546
1543
  }),
1547
- Ye && He && /* @__PURE__ */ K(De, {
1544
+ $e && Ke && /* @__PURE__ */ G(De, {
1548
1545
  label: D?.publishLabel ?? "Publish",
1549
- iconBefore: /* @__PURE__ */ K(ut, {
1546
+ iconBefore: /* @__PURE__ */ G(dt, {
1550
1547
  size: R.MD,
1551
1548
  "aria-hidden": !0,
1552
1549
  stroke: z
1553
1550
  }),
1554
1551
  onClick: pe,
1555
- onMouseEnter: H,
1556
- onFocus: H
1552
+ onMouseEnter: Ve,
1553
+ onFocus: Ve
1557
1554
  }),
1558
- Ze && !nt && bt(De),
1559
- (mt.length > 0 || Ve) && xt()
1555
+ ot && !W && Dt(De),
1556
+ Z ? Ot(Z) : (J.length > 0 || Ge) && kt()
1560
1557
  ]
1561
1558
  })]
1562
1559
  });
1563
1560
  }, zn = ({ topics: e, content: t, detailsStyles: n }) => {
1564
1561
  let r = n?.typography?.contentHeadingClassName ?? "dial-small-semi-text", i = n?.typography?.contentClassName ?? "dial-small-text";
1565
- return /* @__PURE__ */ q("div", {
1562
+ return /* @__PURE__ */ K("div", {
1566
1563
  className: "flex flex-col gap-5",
1567
- children: [/* @__PURE__ */ K(k, {
1564
+ children: [/* @__PURE__ */ G(k, {
1568
1565
  content: t,
1569
1566
  classNames: {
1570
1567
  h1: r,
@@ -1577,9 +1574,9 @@ var J = /* @__PURE__ */ function(e) {
1577
1574
  ul: i,
1578
1575
  ol: i
1579
1576
  }
1580
- }), e && e.length > 0 && /* @__PURE__ */ K("div", {
1577
+ }), e && e.length > 0 && /* @__PURE__ */ G("div", {
1581
1578
  className: "flex flex-wrap gap-2",
1582
- children: e.map((e) => /* @__PURE__ */ K(Bt, { label: e }, e))
1579
+ children: e.map((e) => /* @__PURE__ */ G(Bt, { label: e }, e))
1583
1580
  })]
1584
1581
  });
1585
1582
  }, Bn = {
@@ -1591,7 +1588,7 @@ var J = /* @__PURE__ */ function(e) {
1591
1588
  node: e,
1592
1589
  parentId: n
1593
1590
  };
1594
- return e.type === yt.File || !t.has(e.id) ? [r] : [r, ...Vn(e.items, t, e.id)];
1591
+ return e.type === bt.File || !t.has(e.id) ? [r] : [r, ...Vn(e.items, t, e.id)];
1595
1592
  }), Hn = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
1596
1593
  let c = P(() => Vn(e, n), [e, n]), l = F({}), [u, d] = I(() => t ?? c[0]?.node.id);
1597
1594
  N(() => {
@@ -1617,14 +1614,14 @@ var J = /* @__PURE__ */ function(e) {
1617
1614
  break;
1618
1615
  }
1619
1616
  case "ArrowRight":
1620
- e.preventDefault(), o.node.type === yt.Folder && !n.has(o.node.id) && r(o.node.id);
1617
+ e.preventDefault(), o.node.type === bt.Folder && !n.has(o.node.id) && r(o.node.id);
1621
1618
  break;
1622
1619
  case "ArrowLeft":
1623
- e.preventDefault(), o.node.type === yt.Folder && n.has(o.node.id) ? r(o.node.id) : o.parentId != null && f(o.parentId);
1620
+ e.preventDefault(), o.node.type === bt.Folder && n.has(o.node.id) ? r(o.node.id) : o.parentId != null && f(o.parentId);
1624
1621
  break;
1625
1622
  case "Enter":
1626
1623
  case " ":
1627
- e.preventDefault(), o.node.type === yt.Folder ? r(o.node.id) : i(o.node.id);
1624
+ e.preventDefault(), o.node.type === bt.Folder ? r(o.node.id) : i(o.node.id);
1628
1625
  break;
1629
1626
  case "Escape":
1630
1627
  e.preventDefault(), a();
@@ -1633,9 +1630,9 @@ var J = /* @__PURE__ */ function(e) {
1633
1630
  }
1634
1631
  }, m = (e) => j("flex h-10 shrink-0 cursor-pointer items-center gap-2 rounded-2 px-3 outline-none", "hover:bg-control-accent-alpha-hover focus-visible:bg-control-accent-alpha-hover", e && "bg-control-accent-alpha-hover"), h = (e) => {
1635
1632
  let a = e.id === u;
1636
- if (e.type === yt.File) {
1633
+ if (e.type === bt.File) {
1637
1634
  let n = e.id === t;
1638
- return /* @__PURE__ */ K("div", {
1635
+ return /* @__PURE__ */ G("div", {
1639
1636
  ref: (t) => {
1640
1637
  l.current[e.id] = t;
1641
1638
  },
@@ -1645,14 +1642,14 @@ var J = /* @__PURE__ */ function(e) {
1645
1642
  className: j(m(a), n && "bg-control-accent-alpha-active"),
1646
1643
  onClick: () => i(e.id),
1647
1644
  onFocus: () => d(e.id),
1648
- children: /* @__PURE__ */ K("span", {
1645
+ children: /* @__PURE__ */ G("span", {
1649
1646
  className: j("min-w-0 flex-1 truncate", s),
1650
1647
  children: e.name
1651
1648
  })
1652
1649
  }, e.id);
1653
1650
  }
1654
1651
  let o = n.has(e.id);
1655
- return /* @__PURE__ */ q("div", { children: [/* @__PURE__ */ q("div", {
1652
+ return /* @__PURE__ */ K("div", { children: [/* @__PURE__ */ K("div", {
1656
1653
  ref: (t) => {
1657
1654
  l.current[e.id] = t;
1658
1655
  },
@@ -1663,30 +1660,30 @@ var J = /* @__PURE__ */ function(e) {
1663
1660
  onClick: () => r(e.id),
1664
1661
  onFocus: () => d(e.id),
1665
1662
  children: [
1666
- /* @__PURE__ */ K(U, {
1663
+ /* @__PURE__ */ G(Xe, {
1667
1664
  size: R.SM,
1668
1665
  className: "shrink-0",
1669
1666
  "aria-hidden": !0,
1670
1667
  stroke: z
1671
1668
  }),
1672
- /* @__PURE__ */ K("span", {
1669
+ /* @__PURE__ */ G("span", {
1673
1670
  className: j("min-w-0 flex-1 truncate", s),
1674
1671
  children: e.name
1675
1672
  }),
1676
- /* @__PURE__ */ K(Ue, {
1673
+ /* @__PURE__ */ G(Ue, {
1677
1674
  size: R.SM,
1678
1675
  className: j("shrink-0 transition-transform", !o && "-rotate-90 rtl:rotate-90"),
1679
1676
  "aria-hidden": !0,
1680
1677
  stroke: z
1681
1678
  })
1682
1679
  ]
1683
- }), o && e.items.length > 0 && /* @__PURE__ */ K("div", {
1680
+ }), o && e.items.length > 0 && /* @__PURE__ */ G("div", {
1684
1681
  role: "group",
1685
1682
  className: "ps-6",
1686
1683
  children: e.items.map((e) => h(e))
1687
1684
  })] }, e.id);
1688
1685
  };
1689
- return /* @__PURE__ */ K("div", {
1686
+ return /* @__PURE__ */ G("div", {
1690
1687
  role: "tree",
1691
1688
  "aria-label": o,
1692
1689
  onKeyDown: p,
@@ -1696,25 +1693,25 @@ var J = /* @__PURE__ */ function(e) {
1696
1693
  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 = Jt(x) > 1, C = Xt(x, r) ?? "", w = (e) => {
1697
1694
  i?.(e), l(!1);
1698
1695
  }, T = a ? {
1699
- type: bt.Text,
1696
+ type: Q.Text,
1700
1697
  text: ""
1701
1698
  } : m ?? {
1702
- type: bt.Markdown,
1699
+ type: Q.Markdown,
1703
1700
  text: e
1704
1701
  };
1705
- return /* @__PURE__ */ q("div", {
1702
+ return /* @__PURE__ */ K("div", {
1706
1703
  className: "flex h-full flex-col gap-4 pb-6",
1707
1704
  children: [
1708
- S && /* @__PURE__ */ q("div", {
1705
+ S && /* @__PURE__ */ K("div", {
1709
1706
  className: "flex shrink-0 items-center gap-3",
1710
- children: [/* @__PURE__ */ K(he, {
1707
+ children: [/* @__PURE__ */ G(he, {
1711
1708
  open: c,
1712
1709
  onOpenChange: l,
1713
1710
  trigger: [],
1714
1711
  matchReferenceWidth: !1,
1715
1712
  listClassName: "w-[280px]",
1716
1713
  placement: "bottom-start",
1717
- renderOverlay: () => /* @__PURE__ */ K(Hn, {
1714
+ renderOverlay: () => /* @__PURE__ */ G(Hn, {
1718
1715
  nodes: x,
1719
1716
  selectedFileId: r,
1720
1717
  expandedFolderIds: o,
@@ -1724,45 +1721,45 @@ var J = /* @__PURE__ */ function(e) {
1724
1721
  ariaLabel: u,
1725
1722
  rowNameClassName: _
1726
1723
  }),
1727
- children: /* @__PURE__ */ K(Ce, {
1724
+ children: /* @__PURE__ */ G(Ce, {
1728
1725
  label: C,
1729
1726
  size: ge.Small,
1730
1727
  isOpen: c,
1731
1728
  onClick: () => l(!c)
1732
1729
  })
1733
- }), /* @__PURE__ */ K("span", {
1730
+ }), /* @__PURE__ */ G("span", {
1734
1731
  className: j("shrink-0", y, Bn.fileCount),
1735
1732
  children: d(Jt(x))
1736
1733
  })]
1737
1734
  }),
1738
- b && /* @__PURE__ */ q(dt, { children: [/* @__PURE__ */ K("p", {
1735
+ b && /* @__PURE__ */ K(ft, { children: [/* @__PURE__ */ G("p", {
1739
1736
  className: j("m-0", _),
1740
1737
  children: t
1741
- }), /* @__PURE__ */ K("div", { className: j("shrink-0", Bn.divider) })] }),
1742
- /* @__PURE__ */ q("div", {
1738
+ }), /* @__PURE__ */ G("div", { className: j("shrink-0", Bn.divider) })] }),
1739
+ /* @__PURE__ */ K("div", {
1743
1740
  className: j("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && Bn.body, h == null && _),
1744
- children: [a && /* @__PURE__ */ K("span", {
1741
+ children: [a && /* @__PURE__ */ G("span", {
1745
1742
  role: "status",
1746
1743
  className: "sr-only",
1747
1744
  children: f
1748
1745
  }), (() => {
1749
1746
  if (h != null) return h;
1750
1747
  switch (T.type) {
1751
- case bt.Markdown: return /* @__PURE__ */ K(A, {
1748
+ case Q.Markdown: return /* @__PURE__ */ G(A, {
1752
1749
  content: T.text,
1753
1750
  headingClassName: v
1754
1751
  });
1755
- case bt.Text: return /* @__PURE__ */ K(O, {
1752
+ case Q.Text: return /* @__PURE__ */ G(O, {
1756
1753
  language: T.language ?? "",
1757
1754
  value: T.text,
1758
1755
  hideDownload: !0
1759
1756
  });
1760
- case bt.Image: return /* @__PURE__ */ K("img", {
1757
+ case Q.Image: return /* @__PURE__ */ G("img", {
1761
1758
  src: T.url,
1762
1759
  alt: C,
1763
1760
  className: "max-w-full"
1764
1761
  });
1765
- case bt.Unsupported: return /* @__PURE__ */ K("p", {
1762
+ case Q.Unsupported: return /* @__PURE__ */ G("p", {
1766
1763
  className: "m-0",
1767
1764
  children: p
1768
1765
  });
@@ -1787,32 +1784,32 @@ var J = /* @__PURE__ */ function(e) {
1787
1784
  progressFillDanger: "_progressFillDanger_ltnqp_32"
1788
1785
  }, tr = ({ row: e, labelClassName: t, captionClassName: n, valueClassName: r, noteValueClassName: i, noteClassName: a }) => {
1789
1786
  let o = Yn(e);
1790
- return /* @__PURE__ */ q("li", {
1787
+ return /* @__PURE__ */ K("li", {
1791
1788
  className: j("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", er.divider),
1792
- children: [/* @__PURE__ */ q("div", {
1789
+ children: [/* @__PURE__ */ K("div", {
1793
1790
  className: "flex min-w-0 flex-1 flex-col",
1794
- children: [/* @__PURE__ */ K("span", {
1791
+ children: [/* @__PURE__ */ G("span", {
1795
1792
  className: j("break-words", t, er.label),
1796
1793
  children: e.label
1797
- }), e.captionLabel != null && /* @__PURE__ */ K("span", {
1794
+ }), e.captionLabel != null && /* @__PURE__ */ G("span", {
1798
1795
  className: j("break-words", n, er.label),
1799
1796
  children: e.captionLabel
1800
1797
  })]
1801
- }), Zn(e) ? /* @__PURE__ */ q("div", {
1798
+ }), Zn(e) ? /* @__PURE__ */ K("div", {
1802
1799
  className: "flex w-32 shrink-0 flex-col items-end gap-2",
1803
- children: [/* @__PURE__ */ K("div", {
1800
+ children: [/* @__PURE__ */ G("div", {
1804
1801
  className: j("flex gap-1", r),
1805
- children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ q(dt, { children: [/* @__PURE__ */ K("span", {
1802
+ children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ K(ft, { children: [/* @__PURE__ */ G("span", {
1806
1803
  className: er.valuePrimary,
1807
1804
  children: e.usedLabel
1808
- }), /* @__PURE__ */ K("span", {
1805
+ }), /* @__PURE__ */ G("span", {
1809
1806
  className: er.label,
1810
1807
  children: ` / ${e.totalLabel}`
1811
- })] }) : /* @__PURE__ */ K("span", {
1808
+ })] }) : /* @__PURE__ */ G("span", {
1812
1809
  className: er.label,
1813
1810
  children: o
1814
1811
  })
1815
- }), /* @__PURE__ */ K(Ae, {
1812
+ }), /* @__PURE__ */ G(Ae, {
1816
1813
  value: qn(e),
1817
1814
  max: Jn(e.total),
1818
1815
  size: ge.Small,
@@ -1820,23 +1817,23 @@ var J = /* @__PURE__ */ function(e) {
1820
1817
  "aria-label": e.label,
1821
1818
  "aria-valuetext": e.ariaLabel ?? o
1822
1819
  })]
1823
- }) : /* @__PURE__ */ q("div", {
1820
+ }) : /* @__PURE__ */ K("div", {
1824
1821
  className: "flex shrink-0 flex-col items-end",
1825
- children: [/* @__PURE__ */ K("span", {
1822
+ children: [/* @__PURE__ */ G("span", {
1826
1823
  className: j(i, er.valuePrimary),
1827
1824
  children: o
1828
- }), e.noteLabel != null && /* @__PURE__ */ K("span", {
1825
+ }), e.noteLabel != null && /* @__PURE__ */ G("span", {
1829
1826
  className: j(a, er.label),
1830
1827
  children: e.noteLabel
1831
1828
  })]
1832
1829
  })]
1833
1830
  });
1834
- }, nr = ({ group: e, sectionClassName: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => /* @__PURE__ */ q("section", { children: [/* @__PURE__ */ K("p", {
1831
+ }, nr = ({ group: e, sectionClassName: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("p", {
1835
1832
  className: j("mb-3 mt-0", t, er.sectionHeading),
1836
1833
  children: e.label
1837
- }), /* @__PURE__ */ K("ul", {
1834
+ }), /* @__PURE__ */ G("ul", {
1838
1835
  className: "m-0 flex list-none flex-col p-0",
1839
- children: e.rows.map((e) => /* @__PURE__ */ K(tr, {
1836
+ children: e.rows.map((e) => /* @__PURE__ */ G(tr, {
1840
1837
  row: e,
1841
1838
  labelClassName: n,
1842
1839
  captionClassName: r,
@@ -1846,7 +1843,7 @@ var J = /* @__PURE__ */ function(e) {
1846
1843
  }, e.label))
1847
1844
  })] }), rr = ({ 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 }) => {
1848
1845
  let u = e?.groups.filter((e) => e.rows.length > 0);
1849
- return u == null || u.length === 0 ? null : /* @__PURE__ */ q("div", {
1846
+ return u == null || u.length === 0 ? null : /* @__PURE__ */ K("div", {
1850
1847
  className: "flex flex-col gap-6",
1851
1848
  style: re({
1852
1849
  "--lt-section-heading": l?.sectionHeading,
@@ -1858,7 +1855,7 @@ var J = /* @__PURE__ */ function(e) {
1858
1855
  "--lt-progress-fill-warning": l?.progressFillWarning,
1859
1856
  "--lt-progress-fill-danger": l?.progressFillDanger
1860
1857
  }),
1861
- children: [u.map((e) => /* @__PURE__ */ K(nr, {
1858
+ children: [u.map((e) => /* @__PURE__ */ G(nr, {
1862
1859
  group: e,
1863
1860
  sectionClassName: o,
1864
1861
  labelClassName: t,
@@ -1866,18 +1863,18 @@ var J = /* @__PURE__ */ function(e) {
1866
1863
  valueClassName: r,
1867
1864
  noteValueClassName: i,
1868
1865
  noteClassName: a
1869
- }, e.label)), c != null && /* @__PURE__ */ K("p", {
1866
+ }, e.label)), c != null && /* @__PURE__ */ G("p", {
1870
1867
  className: j("m-0 border-t pt-4", s, er.divider, er.label),
1871
1868
  children: c
1872
1869
  })]
1873
1870
  });
1874
- }, ir = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ K("div", {
1871
+ }, ir = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ G("div", {
1875
1872
  className: "flex flex-col gap-4",
1876
- children: e.map((e, s) => /* @__PURE__ */ q("div", {
1873
+ children: e.map((e, s) => /* @__PURE__ */ K("div", {
1877
1874
  className: "flex flex-col gap-4",
1878
- children: [s > 0 && /* @__PURE__ */ K("div", { className: j("shrink-0 border-b", Dn.divider) }), /* @__PURE__ */ K("div", {
1875
+ children: [s > 0 && /* @__PURE__ */ G("div", { className: j("shrink-0 border-b", Dn.divider) }), /* @__PURE__ */ G("div", {
1879
1876
  className: "px-6",
1880
- children: /* @__PURE__ */ K($t, {
1877
+ children: /* @__PURE__ */ G($t, {
1881
1878
  sectionLabel: e.title,
1882
1879
  values: e.specs,
1883
1880
  sectionClassName: t,
@@ -1898,15 +1895,15 @@ var J = /* @__PURE__ */ function(e) {
1898
1895
  label: e.label,
1899
1896
  value: e.value
1900
1897
  }));
1901
- return /* @__PURE__ */ q("div", {
1898
+ return /* @__PURE__ */ K("div", {
1902
1899
  className: "flex flex-col gap-4",
1903
- children: [/* @__PURE__ */ K($t, {
1900
+ children: [/* @__PURE__ */ G($t, {
1904
1901
  sectionLabel: t,
1905
1902
  values: o ?? [],
1906
1903
  labelClassName: r,
1907
1904
  valueClassName: i,
1908
1905
  sectionClassName: a
1909
- }), /* @__PURE__ */ K($t, {
1906
+ }), /* @__PURE__ */ G($t, {
1910
1907
  sectionLabel: n,
1911
1908
  values: s ?? [],
1912
1909
  labelClassName: r,
@@ -1921,13 +1918,13 @@ var J = /* @__PURE__ */ function(e) {
1921
1918
  evenRow: "_evenRow_ddi3i_17"
1922
1919
  }, sr = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
1923
1920
  let a = n ?? `repeat(${e.length}, 1fr)`;
1924
- return /* @__PURE__ */ q("div", {
1921
+ return /* @__PURE__ */ K("div", {
1925
1922
  className: j(or.container, "grid overflow-hidden rounded-md"),
1926
1923
  style: { gridTemplateColumns: a },
1927
- children: [e.map((e) => /* @__PURE__ */ K("div", {
1924
+ children: [e.map((e) => /* @__PURE__ */ G("div", {
1928
1925
  className: j("px-2 py-1 text-start", r, or.header),
1929
1926
  children: e
1930
- }, e)), t.map((e, t) => /* @__PURE__ */ K(ie, { children: e.map((e, n) => /* @__PURE__ */ K("div", {
1927
+ }, e)), t.map((e, t) => /* @__PURE__ */ G(ie, { children: e.map((e, n) => /* @__PURE__ */ G("div", {
1931
1928
  className: j("px-2 py-1.5", i, or.cell, t % 2 == 1 ? or.evenRow : void 0),
1932
1929
  children: e
1933
1930
  }, n)) }, t))]
@@ -1936,22 +1933,22 @@ var J = /* @__PURE__ */ function(e) {
1936
1933
  divider: "_divider_1f796_1",
1937
1934
  description: "_description_1f796_5",
1938
1935
  code: "_code_1f796_9"
1939
- }, lr = ({ tools: e, toolNameClassName: t = "dial-small-semi-text", descriptionClassName: n = "dial-small-text", tableHeadingClassName: r = "dial-caption-text", tableCellClassName: i = "dial-tiny-text" }) => e == null ? null : /* @__PURE__ */ K("div", {
1936
+ }, lr = ({ tools: e, toolNameClassName: t = "dial-small-semi-text", descriptionClassName: n = "dial-small-text", tableHeadingClassName: r = "dial-caption-text", tableCellClassName: i = "dial-tiny-text" }) => e == null ? null : /* @__PURE__ */ G("div", {
1940
1937
  className: "flex flex-col",
1941
- children: e.tools.map((e, a) => /* @__PURE__ */ q("div", {
1938
+ children: e.tools.map((e, a) => /* @__PURE__ */ K("div", {
1942
1939
  className: j("flex flex-col gap-3 px-[22px] py-4", a > 0 ? cr.divider : void 0),
1943
1940
  children: [
1944
- /* @__PURE__ */ q("div", {
1941
+ /* @__PURE__ */ K("div", {
1945
1942
  className: "flex flex-col gap-1",
1946
- children: [/* @__PURE__ */ K("span", {
1943
+ children: [/* @__PURE__ */ G("span", {
1947
1944
  className: t,
1948
1945
  children: e.name
1949
- }), e.description != null && /* @__PURE__ */ K("p", {
1946
+ }), e.description != null && /* @__PURE__ */ G("p", {
1950
1947
  className: j("m-0", n, cr.description),
1951
1948
  children: e.description
1952
1949
  })]
1953
1950
  }),
1954
- e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ K(sr, {
1951
+ e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ G(sr, {
1955
1952
  columns: [
1956
1953
  "Name",
1957
1954
  "Type",
@@ -1959,11 +1956,11 @@ var J = /* @__PURE__ */ function(e) {
1959
1956
  ],
1960
1957
  columnsTemplate: "1fr 1fr auto",
1961
1958
  rows: e.inputParams.map((e) => [
1962
- /* @__PURE__ */ K("code", {
1959
+ /* @__PURE__ */ G("code", {
1963
1960
  className: j("text-inherit border-none bg-transparent p-0", cr.code),
1964
1961
  children: e.name
1965
1962
  }, "name"),
1966
- /* @__PURE__ */ K("code", {
1963
+ /* @__PURE__ */ G("code", {
1967
1964
  className: j("text-inherit border-none bg-transparent p-0", cr.code),
1968
1965
  children: e.type
1969
1966
  }, "type"),
@@ -1972,9 +1969,9 @@ var J = /* @__PURE__ */ function(e) {
1972
1969
  headingClassName: r,
1973
1970
  cellClassName: i
1974
1971
  }),
1975
- e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ K(sr, {
1972
+ e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ G(sr, {
1976
1973
  columns: ["Key", "Value"],
1977
- rows: e.annotations.map((e) => [/* @__PURE__ */ K("code", {
1974
+ rows: e.annotations.map((e) => [/* @__PURE__ */ G("code", {
1978
1975
  className: j("text-inherit border-none bg-transparent p-0", cr.code),
1979
1976
  children: e.key
1980
1977
  }, "key"), e.value]),
@@ -1999,7 +1996,7 @@ var J = /* @__PURE__ */ function(e) {
1999
1996
  "Everyone you shared it with loses access",
2000
1997
  "Existing share links stop working",
2001
1998
  "You keep full access — nothing is deleted"
2002
- ], br = (e) => e === y.ApiKey ? "Toolset API keys" : "Toolset credentials", xr = (e) => e === b.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", Sr = new Set([X.Delete, X.Unshare]), Cr = ({ item: e, isOpen: n, isStarred: r = !1, isDetailsLoading: i = !1, isReadonly: a = !1, onClose: o, onToggleFavorite: s, isFavoriteVisible: c, onUseInChat: l, isPrimaryActionVisible: u, onShare: d, isPublishVisible: f, isPublishPrimary: p, getPublishHistory: h, publishFolderItems: _ = mr, publishExpandedPaths: v, onPublishExpandedPathsChange: y, publishLoadingPaths: S, hasPublishWriteAccess: C, publishDefaultAuthor: w, onPublish: T, onPublishSuccess: E, onPublishError: D, onCreatePublishFolder: O, publishLabels: k, ruleSourceOptions: A = hr, onFetchExistingRules: ee, shareOverlay: te, isShareVisible: ne, isSharePrimary: ie, onEdit: ae, onDownload: oe, isDownloadVisible: se, isDownloadPrimary: ce, onLoadContentFile: le, onLoadContentFilePreview: L, renderContentFilePreview: ue, renderCredentials: de, onDelete: fe, onUnshare: R, isUnshareVisible: me, onRevokeShare: he, onFetchRecipientsCount: _e, isRevokeShareVisible: ve, onUnpublish: ye, isUnpublishVisible: xe, onLogin: Se, onLogout: Ce, texts: B, styles: we, limitsFooterNote: Te }) => {
1999
+ ], br = (e) => e === y.ApiKey ? "Toolset API keys" : "Toolset credentials", xr = (e) => e === b.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", Sr = new Set([Y.Delete, Y.Unshare]), Cr = ({ item: e, isOpen: n, isStarred: r = !1, isDetailsLoading: i = !1, isReadonly: a = !1, onClose: o, onToggleFavorite: s, isFavoriteVisible: c, onUseInChat: l, isPrimaryActionVisible: u, onShare: d, isPublishVisible: f, isPublishPrimary: p, getPublishHistory: h, publishFolderItems: _ = mr, publishExpandedPaths: v, onPublishExpandedPathsChange: y, publishLoadingPaths: S, hasPublishWriteAccess: C, publishDefaultAuthor: w, onPublish: T, onPublishSuccess: E, onPublishError: D, onCreatePublishFolder: O, publishLabels: k, ruleSourceOptions: A = hr, onFetchExistingRules: ee, shareOverlay: te, isShareVisible: ne, isSharePrimary: ie, onEdit: ae, onDownload: oe, isDownloadVisible: se, isDownloadPrimary: ce, onLoadContentFile: le, onLoadContentFilePreview: L, renderContentFilePreview: ue, renderCredentials: de, onDelete: fe, onUnshare: R, isUnshareVisible: me, onRevokeShare: he, onFetchRecipientsCount: _e, isRevokeShareVisible: ve, onUnpublish: ye, isUnpublishVisible: xe, onLogin: Se, onLogout: Ce, texts: B, styles: we, limitsFooterNote: Te }) => {
2003
2000
  let { subViewTitleClassName: Ee = "dial-body-semi-text", overviewSectionClassName: De = "dial-caption-text", overviewLabelClassName: Oe = "dial-small-semi-text", overviewValueClassName: ke = "dial-small-text", overviewValueTrueClassName: Ae = "dial-small-text", confirmMessageClassName: Me = "dial-small-text" } = we?.typography ?? {}, V = we?.colors, Pe = re({
2004
2001
  "--cat-details-backdrop": V?.backdrop,
2005
2002
  "--cat-details-bg": V?.background,
@@ -2036,90 +2033,90 @@ var J = /* @__PURE__ */ function(e) {
2036
2033
  "--cat-cred-card-icon": V?.credentialsCardIcon,
2037
2034
  "--cat-cred-card-title-text": V?.credentialsCardTitleText,
2038
2035
  "--cat-cred-card-description-text": V?.credentialsCardDescriptionText
2039
- }), [Fe, Le] = I(r), [H, Re] = I(""), [ze, Be] = I(!1), [Ve, He] = I([]), [Ue, Ge] = I(!1), [Ke, qe] = I(!1), [Je, Ye] = I(!1), U = F(null), Xe = e.details?.promptContent, W = Xe?.selectedFileId, [Ze, Qe] = I(null), [$e, et] = I(!1), [tt, nt] = I(/* @__PURE__ */ new Set()), [rt, it] = I(!1), at = F(null), ot = F(0), G = M((e) => {
2040
- let t = at.current, n = e?.preview?.type === bt.Image ? e.preview.url : null;
2041
- t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), at.current = n, Qe(e);
2036
+ }), [Fe, Le] = I(r), [H, Re] = I(""), [ze, Be] = I(!1), [Ve, He] = I([]), [Ue, Ge] = I(!1), [Ke, qe] = I(!1), [Je, Ye] = I(!1), Xe = F(null), Ze = e.details?.promptContent, Qe = Ze?.selectedFileId, [$e, et] = I(null), [tt, nt] = I(!1), [rt, it] = I(/* @__PURE__ */ new Set()), [at, U] = I(!1), ot = F(null), st = F(0), W = M((e) => {
2037
+ let t = ot.current, n = e?.preview?.type === Q.Image ? e.preview.url : null;
2038
+ t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), ot.current = n, et(e);
2042
2039
  }, []);
2043
2040
  N(() => {
2044
- ot.current += 1, G(null), et(!1), nt(Yt(Xe?.files ?? [])), it(!1);
2045
- }, [e.id, W]), N(() => () => {
2046
- let e = at.current;
2041
+ st.current += 1, W(null), nt(!1), it(Yt(Ze?.files ?? [])), U(!1);
2042
+ }, [e.id, Qe]), N(() => () => {
2043
+ let e = ot.current;
2047
2044
  e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
2048
2045
  }, []);
2049
- let st = M((e) => {
2050
- nt((t) => {
2046
+ let ct = M((e) => {
2047
+ it((t) => {
2051
2048
  let n = new Set(t);
2052
2049
  return n.has(e) ? n.delete(e) : n.add(e), n;
2053
2050
  });
2054
- }, []), ct = M(async (e) => {
2055
- if (e === W) {
2056
- ot.current += 1, G(null), et(!1);
2051
+ }, []), lt = M(async (e) => {
2052
+ if (e === Qe) {
2053
+ st.current += 1, W(null), nt(!1);
2057
2054
  return;
2058
2055
  }
2059
2056
  if (ue == null && le == null && L == null) return;
2060
2057
  if (ue != null) {
2061
- ot.current += 1, G({
2058
+ st.current += 1, W({
2062
2059
  id: e,
2063
2060
  preview: null
2064
- }), et(!1);
2061
+ }), nt(!1);
2065
2062
  return;
2066
2063
  }
2067
- let t = ++ot.current;
2068
- G({
2064
+ let t = ++st.current;
2065
+ W({
2069
2066
  id: e,
2070
2067
  preview: null
2071
- }), et(!0);
2068
+ }), nt(!0);
2072
2069
  try {
2073
2070
  let n = L == null ? await le?.(e).then((e) => e == null ? void 0 : {
2074
- type: bt.Markdown,
2071
+ type: Q.Markdown,
2075
2072
  text: e
2076
2073
  }) : await L(e);
2077
- if (ot.current !== t) {
2078
- n?.type === bt.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
2074
+ if (st.current !== t) {
2075
+ n?.type === Q.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
2079
2076
  return;
2080
2077
  }
2081
- G({
2078
+ W({
2082
2079
  id: e,
2083
2080
  preview: n ?? null
2084
2081
  });
2085
2082
  } catch {
2086
- if (ot.current !== t) return;
2087
- G({
2083
+ if (st.current !== t) return;
2084
+ W({
2088
2085
  id: e,
2089
2086
  preview: null
2090
2087
  });
2091
2088
  } finally {
2092
- ot.current === t && et(!1);
2089
+ st.current === t && nt(!1);
2093
2090
  }
2094
2091
  }, [
2095
- W,
2092
+ Qe,
2096
2093
  le,
2097
2094
  L,
2098
2095
  ue,
2099
- G
2100
- ]), lt = Ze?.id ?? W, ut = () => Ze == null ? null : Ze.preview == null ? {
2101
- type: bt.Text,
2096
+ W
2097
+ ]), ut = $e?.id ?? Qe, dt = () => $e == null ? null : $e.preview == null ? {
2098
+ type: Q.Text,
2102
2099
  text: B?.contentFileErrorLabel ?? "Failed to load this file."
2103
- } : Ze.preview, gt = Ze != null && ue != null ? ue(Ze.id, Xt(Xe?.files ?? [], Ze.id) ?? "") : void 0, J = M(() => {
2104
- if (!h || U.current === e.id) return;
2100
+ } : $e.preview, _t = $e != null && ue != null ? ue($e.id, Xt(Ze?.files ?? [], $e.id) ?? "") : void 0, q = M(() => {
2101
+ if (!h || Xe.current === e.id) return;
2105
2102
  let t = e.id;
2106
- U.current = t, Ge(!0), qe(!1), (async () => {
2103
+ Xe.current = t, Ge(!0), qe(!1), (async () => {
2107
2104
  try {
2108
2105
  let n = await h(e);
2109
- if (U.current !== t) return;
2106
+ if (Xe.current !== t) return;
2110
2107
  He(n), Ye(!0), Ge(!1);
2111
2108
  } catch {
2112
- if (U.current !== t) return;
2113
- qe(!0), Ge(!1), U.current = null;
2109
+ if (Xe.current !== t) return;
2110
+ qe(!0), Ge(!1), Xe.current = null;
2114
2111
  }
2115
2112
  })();
2116
2113
  }, [h, e]);
2117
2114
  N(() => {
2118
- ze && J();
2119
- }, [ze, J]);
2120
- let _t = M((e, t) => {
2121
- U.current = null, Ye(!1), J(), E?.(e, t);
2122
- }, [J, E]), Q = ht({
2115
+ ze && q();
2116
+ }, [ze, q]);
2117
+ let vt = M((e, t) => {
2118
+ Xe.current = null, Ye(!1), q(), E?.(e, t);
2119
+ }, [q, E]), Z = gt({
2123
2120
  item: e,
2124
2121
  history: Ve,
2125
2122
  folderItems: _,
@@ -2127,35 +2124,35 @@ var J = /* @__PURE__ */ function(e) {
2127
2124
  defaultAuthor: w,
2128
2125
  onCreateFolder: O,
2129
2126
  onPublish: T ?? pr,
2130
- onPublishSuccess: _t,
2127
+ onPublishSuccess: vt,
2131
2128
  onPublishError: D,
2132
2129
  onFetchExistingRules: ee
2133
- }), vt = e.type === x.Toolset && g(e.credentials), yt = P(() => mt({
2134
- hasSelectedFolder: Q.selectedFolderPath != null,
2135
- hasExistingPublicationInFolder: Q.hasExistingPublicationInFolder,
2136
- hasWriteAccess: Q.hasWriteAccess,
2137
- isSubmitting: Q.isSubmitting,
2138
- hasSubmitError: Q.hasSubmitError
2130
+ }), yt = e.type === x.Toolset && g(e.credentials), bt = P(() => ht({
2131
+ hasSelectedFolder: Z.selectedFolderPath != null,
2132
+ hasExistingPublicationInFolder: Z.hasExistingPublicationInFolder,
2133
+ hasWriteAccess: Z.hasWriteAccess,
2134
+ isSubmitting: Z.isSubmitting,
2135
+ hasSubmitError: Z.hasSubmitError
2139
2136
  }), [
2140
- Q.selectedFolderPath,
2141
- Q.hasExistingPublicationInFolder,
2142
- Q.hasWriteAccess,
2143
- Q.isSubmitting,
2144
- Q.hasSubmitError
2137
+ Z.selectedFolderPath,
2138
+ Z.hasExistingPublicationInFolder,
2139
+ Z.hasWriteAccess,
2140
+ Z.isSubmitting,
2141
+ Z.hasSubmitError
2145
2142
  ]), [xt, St] = I(!1), [Ct, wt] = I(null), [Tt, Et] = I(!1), [Dt, Ot] = I(null), [kt, At] = I(null), [jt, $] = I(null);
2146
2143
  N(() => {
2147
2144
  Le(r);
2148
2145
  }, [e.id, r]), N(() => {
2149
- Re(""), Be(!1), Q.reset(), He([]), qe(!1), Ge(!1), Ye(!1), U.current = null, $(null), St(!1), wt(null), Et(!1), Ot(null), At(null);
2146
+ Re(""), Be(!1), Z.reset(), He([]), qe(!1), Ge(!1), Ye(!1), Xe.current = null, $(null), St(!1), wt(null), Et(!1), Ot(null), At(null);
2150
2147
  }, [e.id]);
2151
2148
  let Mt = M(() => St(!0), []), Nt = M(() => St(!1), []), Pt = M(() => {
2152
- wt(X.Delete);
2149
+ wt(Y.Delete);
2153
2150
  }, []), Ft = M((n) => {
2154
- At(n ?? (e.credentials == null ? null : t(e.credentials))), wt(X.Logout);
2151
+ At(n ?? (e.credentials == null ? null : t(e.credentials))), wt(Y.Logout);
2155
2152
  }, [e.credentials]), It = M(() => {
2156
- wt(X.Unshare);
2153
+ wt(Y.Unshare);
2157
2154
  }, []), Rt = M(() => {
2158
- wt(X.RevokeAccess);
2155
+ wt(Y.RevokeAccess);
2159
2156
  }, []), zt = P(() => {
2160
2157
  let e = /* @__PURE__ */ new Set(), t = [];
2161
2158
  for (let n of Ve) {
@@ -2167,9 +2164,9 @@ var J = /* @__PURE__ */ function(e) {
2167
2164
  }
2168
2165
  return t;
2169
2166
  }, [Ve]), Bt = Je && zt.length > 0, Vt = M((e) => e || (k?.rootFolderLabel ?? "Organization"), [k]), Ht = M(() => {
2170
- wt(X.Unpublish);
2167
+ wt(Y.Unpublish);
2171
2168
  }, []), Ut = M((e) => {
2172
- Ot(e), wt(X.DeleteApiKey);
2169
+ Ot(e), wt(Y.DeleteApiKey);
2173
2170
  }, []), Wt = M(() => {
2174
2171
  Tt || (wt(null), Ot(null), At(null), $(null));
2175
2172
  }, [Tt]), Gt = M(async () => {
@@ -2177,22 +2174,22 @@ var J = /* @__PURE__ */ function(e) {
2177
2174
  Et(!0);
2178
2175
  try {
2179
2176
  switch (Ct) {
2180
- case X.Delete:
2177
+ case Y.Delete:
2181
2178
  await fe?.(e);
2182
2179
  break;
2183
- case X.Unshare:
2180
+ case Y.Unshare:
2184
2181
  await R?.(e);
2185
2182
  break;
2186
- case X.RevokeAccess:
2183
+ case Y.RevokeAccess:
2187
2184
  await he?.(e);
2188
2185
  break;
2189
- case X.Logout:
2186
+ case Y.Logout:
2190
2187
  kt != null && await Ce?.(e, { level: kt });
2191
2188
  break;
2192
- case X.DeleteApiKey:
2189
+ case Y.DeleteApiKey:
2193
2190
  Dt != null && await Ce?.(e, { level: Dt });
2194
2191
  break;
2195
- case X.Unpublish: {
2192
+ case Y.Unpublish: {
2196
2193
  let t = fr(zt, jt);
2197
2194
  t != null && await ye?.(e, t.segments);
2198
2195
  break;
@@ -2239,10 +2236,10 @@ var J = /* @__PURE__ */ function(e) {
2239
2236
  Wt
2240
2237
  ]);
2241
2238
  let Kt = M(() => Be(!0), []), qt = M(() => {
2242
- Be(!1), Q.reset();
2243
- }, [Q]), Jt = M(async () => {
2244
- await Q.handleSubmit() && qt();
2245
- }, [Q, qt]), Zt = M(() => {
2239
+ Be(!1), Z.reset();
2240
+ }, [Z]), Jt = M(async () => {
2241
+ await Z.handleSubmit() && qt();
2242
+ }, [Z, qt]), Zt = M(() => {
2246
2243
  let t = !Fe;
2247
2244
  Le(t), s?.(e.id, t);
2248
2245
  }, [
@@ -2252,25 +2249,25 @@ var J = /* @__PURE__ */ function(e) {
2252
2249
  ]), Qt = P(() => {
2253
2250
  let t = [], n = ur.has(e.type);
2254
2251
  return n || t.push({
2255
- id: Y.About,
2252
+ id: J.About,
2256
2253
  label: B?.tabAboutLabel ?? "About"
2257
2254
  }), (n || e.details?.promptContent != null) && t.push({
2258
- id: Y.Content,
2255
+ id: J.Content,
2259
2256
  label: B?.tabContentLabel ?? "Details"
2260
2257
  }), e.details?.overview != null && t.push({
2261
- id: Y.Overview,
2258
+ id: J.Overview,
2262
2259
  label: B?.tabOverviewLabel ?? "Overview"
2263
2260
  }), e.details?.pricing != null && t.push({
2264
- id: Y.Pricing,
2261
+ id: J.Pricing,
2265
2262
  label: B?.tabPricingLabel ?? "Pricing"
2266
2263
  }), e.details?.limits != null && t.push({
2267
- id: Y.Limits,
2264
+ id: J.Limits,
2268
2265
  label: B?.tabLimitsLabel ?? "Limits"
2269
2266
  }), e.details?.tools != null && t.push({
2270
- id: Y.Tools,
2267
+ id: J.Tools,
2271
2268
  label: B?.tabToolsLabel ?? "Tools"
2272
2269
  }), dr(e.details?.api) && t.push({
2273
- id: Y.Api,
2270
+ id: J.Api,
2274
2271
  label: B?.tabConnectLabel ?? "Connect"
2275
2272
  }), t;
2276
2273
  }, [e, B]), $t = F(null);
@@ -2284,61 +2281,61 @@ var J = /* @__PURE__ */ function(e) {
2284
2281
  ]);
2285
2282
  let en = B?.overviewYesLabel ?? "Yes", tn = B?.overviewNoLabel ?? "No", nn = B?.ariaLabel ?? "Item details", rn = B?.closeAriaLabel ?? "Close", on = Fe ? B?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : B?.addToFavoritesAriaLabel ?? "Add to favorites", cn = B?.publishTitle ?? "Publish", ln = B?.backToDetailsAriaLabel ?? "Back", dn = B?.cancelLabel ?? "Cancel", fn = P(() => {
2286
2283
  switch (Ct) {
2287
- case X.Delete: {
2284
+ case Y.Delete: {
2288
2285
  let t = B?.deleteActionLabel ?? "Delete";
2289
2286
  return {
2290
2287
  title: B?.deleteConfirmTitle ?? t,
2291
- message: B?.deleteConfirmMessage?.(e.name) ?? /* @__PURE__ */ q(dt, { children: [
2288
+ message: B?.deleteConfirmMessage?.(e.name) ?? /* @__PURE__ */ K(ft, { children: [
2292
2289
  "Are you sure you want to delete ",
2293
- /* @__PURE__ */ K("strong", { children: e.name }),
2290
+ /* @__PURE__ */ G("strong", { children: e.name }),
2294
2291
  "? This action is permanent and cannot be undone."
2295
2292
  ] }),
2296
2293
  consequences: B?.deleteConfirmConsequences ?? gr,
2297
2294
  confirmLabel: t,
2298
2295
  loadingStatusLabel: B?.deletingStatusLabel ?? "Deleting",
2299
- variant: Z.Danger
2296
+ variant: X.Danger
2300
2297
  };
2301
2298
  }
2302
- case X.Unshare: {
2299
+ case Y.Unshare: {
2303
2300
  let t = B?.unshareLabel ?? "Remove from My List";
2304
2301
  return {
2305
2302
  title: B?.unshareConfirmTitle ?? t,
2306
- message: B?.unshareConfirmMessage?.(e.name) ?? /* @__PURE__ */ q(dt, { children: [
2303
+ message: B?.unshareConfirmMessage?.(e.name) ?? /* @__PURE__ */ K(ft, { children: [
2307
2304
  "Remove ",
2308
- /* @__PURE__ */ K("strong", { children: e.name }),
2305
+ /* @__PURE__ */ G("strong", { children: e.name }),
2309
2306
  " from your list? You'll need a new invitation to access it again."
2310
2307
  ] }),
2311
2308
  consequences: B?.unshareConfirmConsequences ?? _r,
2312
2309
  confirmLabel: t,
2313
2310
  loadingStatusLabel: B?.unsharingStatusLabel ?? "Removing",
2314
- variant: Z.Info
2311
+ variant: X.Info
2315
2312
  };
2316
2313
  }
2317
- case X.RevokeAccess: {
2314
+ case Y.RevokeAccess: {
2318
2315
  let t = B?.revokeShareLabel ?? "Revoke access";
2319
2316
  return {
2320
2317
  title: B?.revokeShareConfirmTitle ?? t,
2321
- message: B?.revokeShareConfirmMessage?.(e.name) ?? /* @__PURE__ */ q(dt, { children: [
2318
+ message: B?.revokeShareConfirmMessage?.(e.name) ?? /* @__PURE__ */ K(ft, { children: [
2322
2319
  "Revoke shared access to ",
2323
- /* @__PURE__ */ K("strong", { children: e.name }),
2320
+ /* @__PURE__ */ G("strong", { children: e.name }),
2324
2321
  "? Anyone you shared it with will lose access."
2325
2322
  ] }),
2326
2323
  consequences: B?.revokeShareConfirmConsequences ?? yr,
2327
2324
  confirmLabel: t,
2328
2325
  loadingStatusLabel: B?.revokingShareStatusLabel ?? "Revoking access",
2329
- variant: Z.Danger
2326
+ variant: X.Danger
2330
2327
  };
2331
2328
  }
2332
- case X.Unpublish: {
2333
- let t = B?.unpublishLabel ?? "Unpublish", n = zt.length === 1, r = n ? Vt(zt[0].key) : "", i = B?.unpublishConfirmMessage?.(e.name, r) ?? /* @__PURE__ */ q(dt, { children: [
2329
+ case Y.Unpublish: {
2330
+ let t = B?.unpublishLabel ?? "Unpublish", n = zt.length === 1, r = n ? Vt(zt[0].key) : "", i = B?.unpublishConfirmMessage?.(e.name, r) ?? /* @__PURE__ */ K(ft, { children: [
2334
2331
  "Unpublish ",
2335
- /* @__PURE__ */ K("strong", { children: e.name }),
2332
+ /* @__PURE__ */ G("strong", { children: e.name }),
2336
2333
  " from \"",
2337
2334
  r,
2338
2335
  "\"? The request is submitted for admin approval."
2339
- ] }), a = B?.unpublishSelectFolderMessage?.(e.name) ?? /* @__PURE__ */ q(dt, { children: [
2336
+ ] }), a = B?.unpublishSelectFolderMessage?.(e.name) ?? /* @__PURE__ */ K(ft, { children: [
2340
2337
  "Choose which folder to unpublish ",
2341
- /* @__PURE__ */ K("strong", { children: e.name }),
2338
+ /* @__PURE__ */ G("strong", { children: e.name }),
2342
2339
  " from. The request is submitted for admin approval."
2343
2340
  ] });
2344
2341
  return {
@@ -2347,10 +2344,10 @@ var J = /* @__PURE__ */ function(e) {
2347
2344
  consequences: B?.unpublishConfirmConsequences ?? vr,
2348
2345
  confirmLabel: t,
2349
2346
  loadingStatusLabel: B?.unpublishingStatusLabel ?? "Requesting unpublish",
2350
- variant: Z.Danger
2347
+ variant: X.Danger
2351
2348
  };
2352
2349
  }
2353
- case X.Logout: {
2350
+ case Y.Logout: {
2354
2351
  let e = B?.logoutActionLabel ?? "Log out";
2355
2352
  return {
2356
2353
  title: e,
@@ -2358,10 +2355,10 @@ var J = /* @__PURE__ */ function(e) {
2358
2355
  consequences: void 0,
2359
2356
  confirmLabel: e,
2360
2357
  loadingStatusLabel: B?.loggingOutStatusLabel ?? "Logging out",
2361
- variant: Z.Info
2358
+ variant: X.Info
2362
2359
  };
2363
2360
  }
2364
- case X.DeleteApiKey: {
2361
+ case Y.DeleteApiKey: {
2365
2362
  let e = B?.deleteActionLabel ?? "Delete", t = Dt ?? b.User;
2366
2363
  return {
2367
2364
  title: e,
@@ -2369,8 +2366,8 @@ var J = /* @__PURE__ */ function(e) {
2369
2366
  consequences: void 0,
2370
2367
  confirmLabel: e,
2371
2368
  loadingStatusLabel: B?.deletingStatusLabel ?? "Deleting",
2372
- variant: Z.Danger,
2373
- cardVariant: Z.Info
2369
+ variant: X.Danger,
2370
+ cardVariant: X.Info
2374
2371
  };
2375
2372
  }
2376
2373
  default: return null;
@@ -2382,69 +2379,69 @@ var J = /* @__PURE__ */ function(e) {
2382
2379
  B,
2383
2380
  zt,
2384
2381
  Vt
2385
- ]), pn = fn != null, mn = Ct === X.Unpublish && fr(zt, jt) == null, hn = pn || ze || xt, gn = e.credentials == null ? "" : (B?.credentialsManagementTitle ?? br)(e.credentials.authenticationType), _n = pn ? {
2382
+ ]), pn = fn != null, mn = Ct === Y.Unpublish && fr(zt, jt) == null, hn = pn || ze || xt, gn = e.credentials == null ? "" : (B?.credentialsManagementTitle ?? br)(e.credentials.authenticationType), _n = pn ? {
2386
2383
  title: fn.title,
2387
2384
  isBackDisabled: Tt,
2388
2385
  onBack: Wt
2389
2386
  } : ze ? {
2390
2387
  title: cn,
2391
- isBackDisabled: Q.isSubmitting,
2388
+ isBackDisabled: Z.isSubmitting,
2392
2389
  onBack: qt
2393
2390
  } : xt ? {
2394
2391
  title: gn,
2395
2392
  isBackDisabled: !1,
2396
2393
  onBack: Nt
2397
2394
  } : null, vn = _n?.title ?? nn;
2398
- return /* @__PURE__ */ q(dt, { children: [/* @__PURE__ */ K("div", {
2395
+ return /* @__PURE__ */ K(ft, { children: [/* @__PURE__ */ G("div", {
2399
2396
  style: Pe,
2400
2397
  className: j("fixed inset-0 z-50 transition-opacity duration-300", Dn.backdrop, n ? "opacity-100" : "pointer-events-none opacity-0"),
2401
2398
  onClick: o,
2402
2399
  "aria-hidden": "true"
2403
- }), /* @__PURE__ */ q("div", {
2400
+ }), /* @__PURE__ */ K("div", {
2404
2401
  role: "dialog",
2405
2402
  "aria-modal": "true",
2406
2403
  "aria-label": vn,
2407
2404
  style: Pe,
2408
2405
  className: j("fixed inset-y-0 end-0 z-50 flex flex-col overflow-hidden mobile:w-full", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", Dn.panel, n ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
2409
2406
  children: [
2410
- /* @__PURE__ */ q("div", {
2407
+ /* @__PURE__ */ K("div", {
2411
2408
  className: "flex shrink-0 items-center gap-2 px-6 py-3",
2412
- children: [_n != null && /* @__PURE__ */ q(dt, { children: [/* @__PURE__ */ K(be, {
2413
- icon: /* @__PURE__ */ K(We, {
2409
+ children: [_n != null && /* @__PURE__ */ K(ft, { children: [/* @__PURE__ */ G(be, {
2410
+ icon: /* @__PURE__ */ G(We, {
2414
2411
  className: "rtl:scale-x-[-1]",
2415
2412
  stroke: z
2416
2413
  }),
2417
2414
  "aria-label": ln,
2418
2415
  disabled: _n.isBackDisabled,
2419
2416
  onClick: _n.onBack
2420
- }), /* @__PURE__ */ K("span", {
2417
+ }), /* @__PURE__ */ G("span", {
2421
2418
  className: j("flex-1", Ee, Dn.publishTitle),
2422
2419
  children: _n.title
2423
- })] }), _n == null && /* @__PURE__ */ q(dt, { children: [
2424
- /* @__PURE__ */ K("div", { className: "flex-1" }),
2425
- !a && c?.(e) !== !1 && /* @__PURE__ */ K(Lt, {
2420
+ })] }), _n == null && /* @__PURE__ */ K(ft, { children: [
2421
+ /* @__PURE__ */ G("div", { className: "flex-1" }),
2422
+ !a && c?.(e) !== !1 && /* @__PURE__ */ G(Lt, {
2426
2423
  isStarred: Fe,
2427
2424
  ariaLabel: on,
2428
2425
  onClick: Zt
2429
2426
  }),
2430
- /* @__PURE__ */ K(pe, {
2427
+ /* @__PURE__ */ G(pe, {
2431
2428
  onClose: o,
2432
2429
  size: ge.Standard,
2433
2430
  ariaLabel: rn
2434
2431
  })
2435
2432
  ] })]
2436
2433
  }),
2437
- /* @__PURE__ */ K("div", { className: j("shrink-0", Dn.divider) }),
2438
- /* @__PURE__ */ q("div", {
2434
+ /* @__PURE__ */ G("div", { className: j("shrink-0", Dn.divider) }),
2435
+ /* @__PURE__ */ K("div", {
2439
2436
  className: j("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", Dn.content),
2440
2437
  children: [
2441
- pn && /* @__PURE__ */ K(un, {
2438
+ pn && /* @__PURE__ */ G(un, {
2442
2439
  item: e,
2443
2440
  message: fn.message,
2444
2441
  consequences: fn.consequences,
2445
2442
  variant: fn.cardVariant ?? fn.variant,
2446
2443
  messageClassName: Me,
2447
- children: Ct === X.Unpublish && zt.length > 1 && /* @__PURE__ */ K(je, {
2444
+ children: Ct === Y.Unpublish && zt.length > 1 && /* @__PURE__ */ G(je, {
2448
2445
  ariaLabel: B?.unpublishFolderGroupAriaLabel ?? "Published folders",
2449
2446
  value: jt ?? void 0,
2450
2447
  onChange: $,
@@ -2456,7 +2453,7 @@ var J = /* @__PURE__ */ function(e) {
2456
2453
  radioClassName: Me
2457
2454
  })
2458
2455
  }),
2459
- !pn && !ze && xt && /* @__PURE__ */ K(En, {
2456
+ !pn && !ze && xt && /* @__PURE__ */ G(En, {
2460
2457
  item: e,
2461
2458
  onLogin: Se,
2462
2459
  onRequestLogout: Ft,
@@ -2464,9 +2461,9 @@ var J = /* @__PURE__ */ function(e) {
2464
2461
  texts: B,
2465
2462
  detailsStyles: we
2466
2463
  }),
2467
- !pn && ze && /* @__PURE__ */ K("div", {
2464
+ !pn && ze && /* @__PURE__ */ G("div", {
2468
2465
  className: "p-[22px]",
2469
- children: /* @__PURE__ */ K(pt, {
2466
+ children: /* @__PURE__ */ G(mt, {
2470
2467
  resource: {
2471
2468
  title: e.name,
2472
2469
  version: e.version,
@@ -2476,26 +2473,26 @@ var J = /* @__PURE__ */ function(e) {
2476
2473
  history: Ve,
2477
2474
  isHistoryLoading: Ue,
2478
2475
  hasHistoryError: Ke,
2479
- folderItems: Q.folderItems,
2480
- selectedFolderPath: Q.selectedFolderPath,
2481
- onSelectedFolderPathChange: Q.setSelectedFolderPath,
2482
- onCreateFolder: Q.handleCreateFolder,
2476
+ folderItems: Z.folderItems,
2477
+ selectedFolderPath: Z.selectedFolderPath,
2478
+ onSelectedFolderPathChange: Z.setSelectedFolderPath,
2479
+ onCreateFolder: Z.handleCreateFolder,
2483
2480
  expandedPaths: v,
2484
2481
  onExpandedPathsChange: y,
2485
2482
  loadingPaths: S,
2486
- hasExistingPublicationInFolder: Q.hasExistingPublicationInFolder,
2487
- hasWriteAccess: Q.hasWriteAccess,
2488
- isSubmitting: Q.isSubmitting,
2489
- hasSubmitError: Q.hasSubmitError,
2490
- author: Q.author,
2491
- onAuthorChange: Q.setAuthor,
2492
- publishCredentials: Q.publishCredentials,
2493
- onPublishCredentialsChange: vt ? Q.setPublishCredentials : void 0,
2494
- rules: Q.rules,
2495
- onRulesChange: Q.setRules,
2483
+ hasExistingPublicationInFolder: Z.hasExistingPublicationInFolder,
2484
+ hasWriteAccess: Z.hasWriteAccess,
2485
+ isSubmitting: Z.isSubmitting,
2486
+ hasSubmitError: Z.hasSubmitError,
2487
+ author: Z.author,
2488
+ onAuthorChange: Z.setAuthor,
2489
+ publishCredentials: Z.publishCredentials,
2490
+ onPublishCredentialsChange: yt ? Z.setPublishCredentials : void 0,
2491
+ rules: Z.rules,
2492
+ onRulesChange: Z.setRules,
2496
2493
  ruleSourceOptions: A,
2497
- isRulesLoading: Q.isRulesLoading,
2498
- hasRulesLoadError: Q.hasRulesLoadError,
2494
+ isRulesLoading: Z.isRulesLoading,
2495
+ hasRulesLoadError: Z.hasRulesLoadError,
2499
2496
  labels: k,
2500
2497
  styles: { colors: {
2501
2498
  summaryVersionTagBorder: V?.versionTagBorder,
@@ -2504,8 +2501,8 @@ var J = /* @__PURE__ */ function(e) {
2504
2501
  } }
2505
2502
  })
2506
2503
  }),
2507
- !hn && /* @__PURE__ */ q(dt, { children: [
2508
- /* @__PURE__ */ K(Rn, {
2504
+ !hn && /* @__PURE__ */ K(ft, { children: [
2505
+ /* @__PURE__ */ G(Rn, {
2509
2506
  item: e,
2510
2507
  onUseInChat: l,
2511
2508
  isPrimaryActionVisible: u,
@@ -2519,7 +2516,7 @@ var J = /* @__PURE__ */ function(e) {
2519
2516
  isUnpublishVisible: xe,
2520
2517
  hasPublishedFolders: Bt,
2521
2518
  isPublishHistoryResolved: h == null || Je,
2522
- onRequestPublishHistory: J,
2519
+ onRequestPublishHistory: q,
2523
2520
  onOpenUnpublish: ye ? Ht : void 0,
2524
2521
  onEdit: ae,
2525
2522
  onDownload: oe,
@@ -2541,9 +2538,9 @@ var J = /* @__PURE__ */ function(e) {
2541
2538
  }),
2542
2539
  e.credentials != null && (() => {
2543
2540
  let t = m(e.credentials);
2544
- return t != null && /* @__PURE__ */ K("div", {
2541
+ return t != null && /* @__PURE__ */ G("div", {
2545
2542
  className: "px-6",
2546
- children: /* @__PURE__ */ K(Sn, {
2543
+ children: /* @__PURE__ */ G(Sn, {
2547
2544
  state: t,
2548
2545
  authenticationType: e.credentials.authenticationType,
2549
2546
  texts: B
@@ -2551,17 +2548,17 @@ var J = /* @__PURE__ */ function(e) {
2551
2548
  });
2552
2549
  })(),
2553
2550
  !a && n && de?.(e),
2554
- /* @__PURE__ */ q("div", {
2551
+ /* @__PURE__ */ K("div", {
2555
2552
  className: "flex items-center px-6",
2556
- children: [/* @__PURE__ */ K(Ie, {
2553
+ children: [/* @__PURE__ */ G(Ie, {
2557
2554
  tabs: Qt,
2558
2555
  activeTabId: H,
2559
2556
  onTabChange: Re
2560
- }), i && /* @__PURE__ */ K("div", {
2557
+ }), i && /* @__PURE__ */ G("div", {
2561
2558
  role: "status",
2562
2559
  "aria-label": B?.detailsLoadingAriaLabel ?? "Loading details",
2563
2560
  className: "shrink-0",
2564
- children: /* @__PURE__ */ K(Ne, {
2561
+ children: /* @__PURE__ */ G(Ne, {
2565
2562
  showTitle: !1,
2566
2563
  paragraph: {
2567
2564
  rows: 1,
@@ -2572,34 +2569,34 @@ var J = /* @__PURE__ */ function(e) {
2572
2569
  })
2573
2570
  })]
2574
2571
  }),
2575
- /* @__PURE__ */ q("div", {
2576
- className: j("min-h-0 flex-1 overflow-y-auto", H !== Y.Overview && "px-6"),
2572
+ /* @__PURE__ */ K("div", {
2573
+ className: j("min-h-0 flex-1 overflow-y-auto", H !== J.Overview && "px-6"),
2577
2574
  children: [
2578
- H === Y.About && /* @__PURE__ */ K(zn, {
2575
+ H === J.About && /* @__PURE__ */ G(zn, {
2579
2576
  content: e.description,
2580
2577
  topics: e.topics,
2581
2578
  detailsStyles: we
2582
2579
  }),
2583
- H === Y.Content && /* @__PURE__ */ K(Wn, {
2584
- content: Xe?.content ?? "",
2585
- filePreview: ut(),
2586
- filePreviewContent: gt,
2587
- description: Xe?.description ?? e.description,
2588
- files: Xe?.files,
2589
- selectedFileId: lt,
2590
- onSelectFile: (e) => void ct(e),
2591
- isFileLoading: $e,
2592
- expandedFolderIds: tt,
2593
- onToggleFolder: st,
2594
- isFileSelectorOpen: rt,
2595
- onFileSelectorOpenChange: it,
2580
+ H === J.Content && /* @__PURE__ */ G(Wn, {
2581
+ content: Ze?.content ?? "",
2582
+ filePreview: dt(),
2583
+ filePreviewContent: _t,
2584
+ description: Ze?.description ?? e.description,
2585
+ files: Ze?.files,
2586
+ selectedFileId: ut,
2587
+ onSelectFile: (e) => void lt(e),
2588
+ isFileLoading: tt,
2589
+ expandedFolderIds: rt,
2590
+ onToggleFolder: ct,
2591
+ isFileSelectorOpen: at,
2592
+ onFileSelectorOpenChange: U,
2596
2593
  fileSelectorAriaLabel: B?.contentFileSelectorAriaLabel,
2597
2594
  fileCountLabel: B?.contentFileCountLabel,
2598
2595
  fileLoadingLabel: B?.contentFileLoadingLabel,
2599
2596
  fileUnsupportedLabel: B?.contentFileUnsupportedLabel,
2600
2597
  detailsStyles: we
2601
2598
  }),
2602
- H === Y.Overview && /* @__PURE__ */ K(ir, {
2599
+ H === J.Overview && /* @__PURE__ */ G(ir, {
2603
2600
  sections: e.details?.overview?.sections,
2604
2601
  sectionClassName: De,
2605
2602
  labelClassName: Oe,
@@ -2608,16 +2605,16 @@ var J = /* @__PURE__ */ function(e) {
2608
2605
  yesLabel: en,
2609
2606
  noLabel: tn
2610
2607
  }),
2611
- H === Y.Pricing && /* @__PURE__ */ K(ar, {
2608
+ H === J.Pricing && /* @__PURE__ */ G(ar, {
2612
2609
  pricing: e.details?.pricing,
2613
2610
  pricesSectionLabel: B?.pricingPricesSectionLabel,
2614
2611
  limitsSectionLabel: B?.pricingLimitsSectionLabel
2615
2612
  }),
2616
- H === Y.Limits && /* @__PURE__ */ K(rr, {
2613
+ H === J.Limits && /* @__PURE__ */ G(rr, {
2617
2614
  limits: e.details?.limits,
2618
2615
  footerNote: Te
2619
2616
  }),
2620
- H === Y.Api && dr(e.details?.api) && /* @__PURE__ */ K(an, {
2617
+ H === J.Api && dr(e.details?.api) && /* @__PURE__ */ G(an, {
2621
2618
  api: e.details?.api,
2622
2619
  resourceSectionLabel: B?.apiResourceSectionLabel,
2623
2620
  snippetSectionLabel: B?.apiSnippetSectionLabel,
@@ -2629,13 +2626,13 @@ var J = /* @__PURE__ */ function(e) {
2629
2626
  copyAriaLabel: B?.copyCodeAriaLabel,
2630
2627
  copiedStatusLabel: B?.copiedCodeStatusLabel
2631
2628
  }),
2632
- H === Y.Tools && /* @__PURE__ */ K(lr, { tools: e.details?.tools })
2629
+ H === J.Tools && /* @__PURE__ */ G(lr, { tools: e.details?.tools })
2633
2630
  ]
2634
2631
  })
2635
2632
  ] })
2636
2633
  ]
2637
2634
  }),
2638
- pn && /* @__PURE__ */ K(sn, {
2635
+ pn && /* @__PURE__ */ G(sn, {
2639
2636
  confirmLabel: fn.confirmLabel,
2640
2637
  cancelLabel: dn,
2641
2638
  variant: fn.variant,
@@ -2645,11 +2642,11 @@ var J = /* @__PURE__ */ function(e) {
2645
2642
  onConfirm: Gt,
2646
2643
  onCancel: Wt
2647
2644
  }),
2648
- !pn && ze && /* @__PURE__ */ K(ft, {
2645
+ !pn && ze && /* @__PURE__ */ G(pt, {
2649
2646
  version: e.version,
2650
- hasExistingPublicationInFolder: Q.hasExistingPublicationInFolder,
2651
- isSubmitDisabled: yt.isSubmitDisabled,
2652
- isSubmitLoading: yt.isSubmitLoading,
2647
+ hasExistingPublicationInFolder: Z.hasExistingPublicationInFolder,
2648
+ isSubmitDisabled: bt.isSubmitDisabled,
2649
+ isSubmitLoading: bt.isSubmitLoading,
2653
2650
  onCancel: qt,
2654
2651
  onSubmit: Jt,
2655
2652
  labels: k
@@ -2683,7 +2680,7 @@ var J = /* @__PURE__ */ function(e) {
2683
2680
  e,
2684
2681
  g
2685
2682
  ]);
2686
- return /* @__PURE__ */ q(de, {
2683
+ return /* @__PURE__ */ K(de, {
2687
2684
  "data-card-id": e.id,
2688
2685
  role: y == null ? void 0 : "button",
2689
2686
  tabIndex: y == null ? void 0 : 0,
@@ -2695,21 +2692,21 @@ var J = /* @__PURE__ */ function(e) {
2695
2692
  t.currentTarget === t.target && n?.(e.id, !1);
2696
2693
  } : void 0,
2697
2694
  children: [
2698
- f && /* @__PURE__ */ K(He, {
2695
+ f && /* @__PURE__ */ G(He, {
2699
2696
  size: R.SM,
2700
2697
  className: j("absolute end-3 top-3 shrink-0", wr.selectedCheck),
2701
2698
  "aria-hidden": !0,
2702
2699
  stroke: z
2703
2700
  }),
2704
- /* @__PURE__ */ K("div", {
2701
+ /* @__PURE__ */ G("div", {
2705
2702
  className: "flex min-w-0 flex-1 flex-col items-start gap-1",
2706
- children: /* @__PURE__ */ K(Nt, {
2703
+ children: /* @__PURE__ */ G(Nt, {
2707
2704
  icon: e.iconUrl,
2708
2705
  type: e.type,
2709
2706
  name: e.name,
2710
2707
  version: e.version,
2711
2708
  lastUsed: e.lastUsed,
2712
- size: Q.LG,
2709
+ size: Z.LG,
2713
2710
  query: l,
2714
2711
  className: "min-w-0 self-stretch",
2715
2712
  styles: {
@@ -2720,13 +2717,13 @@ var J = /* @__PURE__ */ function(e) {
2720
2717
  lastUsedClassName: c
2721
2718
  }
2722
2719
  },
2723
- iconOverlay: /* @__PURE__ */ K(Ft, {
2720
+ iconOverlay: /* @__PURE__ */ G(Ft, {
2724
2721
  credentials: e.credentials,
2725
2722
  loggedOutLabel: p
2726
2723
  })
2727
2724
  })
2728
2725
  }),
2729
- r?.(e) !== !1 && /* @__PURE__ */ K(Lt, {
2726
+ r?.(e) !== !1 && /* @__PURE__ */ G(Lt, {
2730
2727
  isStarred: m,
2731
2728
  size: ge.Small,
2732
2729
  onClick: v,
@@ -2842,9 +2839,9 @@ var J = /* @__PURE__ */ function(e) {
2842
2839
  if (!s || !O.current) return;
2843
2840
  let e = O.current, t = e.offsetHeight;
2844
2841
  t !== 0 && (e.style.height = `${t}px`, e.offsetHeight, e.style.transition = "height 260ms ease-in", e.style.height = "0px");
2845
- }, [s]), /* @__PURE__ */ K("div", {
2842
+ }, [s]), /* @__PURE__ */ G("div", {
2846
2843
  ref: O,
2847
- children: /* @__PURE__ */ q("section", {
2844
+ children: /* @__PURE__ */ K("section", {
2848
2845
  ref: k,
2849
2846
  className: j("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", wr.section, s && wr.sectionLeaving),
2850
2847
  style: {
@@ -2854,26 +2851,26 @@ var J = /* @__PURE__ */ function(e) {
2854
2851
  onAnimationEnd: (e) => {
2855
2852
  e.target === k.current && s && c?.();
2856
2853
  },
2857
- children: [/* @__PURE__ */ K(D, {
2854
+ children: [/* @__PURE__ */ G(D, {
2858
2855
  title: n,
2859
2856
  postfix: E,
2860
2857
  titleClassName: j(h, wr.titleText),
2861
2858
  postfixClassName: j(g, wr.countText),
2862
- trailing: T > 1 ? /* @__PURE__ */ q("div", {
2859
+ trailing: T > 1 ? /* @__PURE__ */ K("div", {
2863
2860
  className: j("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", wr.pageNav),
2864
2861
  children: [
2865
- /* @__PURE__ */ K("button", {
2862
+ /* @__PURE__ */ G("button", {
2866
2863
  "aria-label": l,
2867
2864
  disabled: y === 1,
2868
2865
  onClick: () => b((e) => e - 1),
2869
2866
  className: j("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", wr.navBtn),
2870
- children: /* @__PURE__ */ K(We, {
2867
+ children: /* @__PURE__ */ G(We, {
2871
2868
  size: 14,
2872
2869
  className: "rtl:scale-x-[-1]",
2873
2870
  stroke: z
2874
2871
  })
2875
2872
  }),
2876
- /* @__PURE__ */ q("span", {
2873
+ /* @__PURE__ */ K("span", {
2877
2874
  className: j("min-w-[32px] select-none px-1 text-center", g, wr.countText),
2878
2875
  children: [
2879
2876
  y,
@@ -2881,12 +2878,12 @@ var J = /* @__PURE__ */ function(e) {
2881
2878
  T
2882
2879
  ]
2883
2880
  }),
2884
- /* @__PURE__ */ K("button", {
2881
+ /* @__PURE__ */ G("button", {
2885
2882
  "aria-label": u,
2886
2883
  disabled: y === T,
2887
2884
  onClick: () => b((e) => e + 1),
2888
2885
  className: j("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", wr.navBtn),
2889
- children: /* @__PURE__ */ K(Ge, {
2886
+ children: /* @__PURE__ */ G(Ge, {
2890
2887
  size: 14,
2891
2888
  className: "rtl:scale-x-[-1]",
2892
2889
  stroke: z
@@ -2894,14 +2891,14 @@ var J = /* @__PURE__ */ function(e) {
2894
2891
  })
2895
2892
  ]
2896
2893
  }) : void 0
2897
- }), /* @__PURE__ */ K("div", {
2894
+ }), /* @__PURE__ */ G("div", {
2898
2895
  ref: A,
2899
2896
  className: j("grid content-start gap-5", wr.gridPage),
2900
2897
  style: {
2901
2898
  gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
2902
2899
  minHeight: ee
2903
2900
  },
2904
- children: w.map((e) => /* @__PURE__ */ K(Tr, {
2901
+ children: w.map((e) => /* @__PURE__ */ G(Tr, {
2905
2902
  item: e,
2906
2903
  onToggle: r,
2907
2904
  isFavoriteVisible: i,
@@ -2923,35 +2920,35 @@ var J = /* @__PURE__ */ function(e) {
2923
2920
  selectedCheck: "_selectedCheck_lksnp_47",
2924
2921
  starToggleOff: "_starToggleOff_lksnp_51",
2925
2922
  selectedRow: "_selectedRow_lksnp_64"
2926
- }, Ar = ({ data: e }) => e ? /* @__PURE__ */ K("div", {
2923
+ }, Ar = ({ data: e }) => e ? /* @__PURE__ */ G("div", {
2927
2924
  className: "flex h-full items-center",
2928
- children: /* @__PURE__ */ K(T, { type: e.type })
2925
+ children: /* @__PURE__ */ G(T, { type: e.type })
2929
2926
  }) : null, jr = " / ", Mr = ({ data: e, context: t }) => {
2930
2927
  if (!e || e.folder.length === 0) return null;
2931
2928
  let n = e.folder.join(jr), 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";
2932
- return /* @__PURE__ */ q("div", {
2929
+ return /* @__PURE__ */ K("div", {
2933
2930
  className: "flex h-full w-full min-w-0 items-center gap-1.5",
2934
2931
  children: [
2935
- /* @__PURE__ */ K(U, {
2932
+ /* @__PURE__ */ G(Xe, {
2936
2933
  size: R.SM,
2937
2934
  stroke: z,
2938
2935
  className: j("shrink-0", kr.folderIcon),
2939
2936
  "aria-hidden": !0
2940
2937
  }),
2941
- /* @__PURE__ */ K(H, {
2942
- tooltip: /* @__PURE__ */ K("span", {
2938
+ /* @__PURE__ */ G(H, {
2939
+ tooltip: /* @__PURE__ */ G("span", {
2943
2940
  className: a,
2944
2941
  children: n
2945
2942
  }),
2946
2943
  hideTooltip: !i,
2947
2944
  triggerClassName: "min-w-0 flex-1",
2948
- children: /* @__PURE__ */ K(_e, {
2945
+ children: /* @__PURE__ */ G(_e, {
2949
2946
  text: r,
2950
2947
  className: o,
2951
2948
  hideTooltip: i
2952
2949
  })
2953
2950
  }),
2954
- i && /* @__PURE__ */ K("span", {
2951
+ i && /* @__PURE__ */ G("span", {
2955
2952
  className: "sr-only",
2956
2953
  children: n
2957
2954
  })
@@ -2959,27 +2956,27 @@ var J = /* @__PURE__ */ function(e) {
2959
2956
  });
2960
2957
  }, Nr = ({ data: e, context: t }) => {
2961
2958
  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;
2962
- return e ? /* @__PURE__ */ q("div", {
2959
+ return e ? /* @__PURE__ */ K("div", {
2963
2960
  className: "flex h-full w-full min-w-0 items-center gap-2.5",
2964
- children: [/* @__PURE__ */ q("div", {
2961
+ children: [/* @__PURE__ */ K("div", {
2965
2962
  className: "relative shrink-0",
2966
- children: [/* @__PURE__ */ K(C, {
2963
+ children: [/* @__PURE__ */ G(C, {
2967
2964
  src: e.iconUrl,
2968
2965
  size: 36,
2969
2966
  initialsName: e.name,
2970
2967
  styles: { badgeClassName: "rounded-[10px]" }
2971
- }), /* @__PURE__ */ K(Ft, {
2968
+ }), /* @__PURE__ */ G(Ft, {
2972
2969
  credentials: e.credentials,
2973
2970
  loggedOutLabel: t?.credentialsBadgeLoggedOutLabel
2974
2971
  })]
2975
- }), /* @__PURE__ */ K(D, {
2972
+ }), /* @__PURE__ */ G(D, {
2976
2973
  title: e.name,
2977
2974
  postfix: e.version,
2978
2975
  postfixClassName: a,
2979
2976
  query: n,
2980
2977
  titleClassName: i,
2981
2978
  className: "min-w-0 flex-1 items-baseline gap-1.5",
2982
- trailing: o ? /* @__PURE__ */ K(He, {
2979
+ trailing: o ? /* @__PURE__ */ G(He, {
2983
2980
  size: R.SM,
2984
2981
  className: j("shrink-0", kr.selectedCheck),
2985
2982
  "aria-hidden": !0,
@@ -2991,9 +2988,9 @@ var J = /* @__PURE__ */ function(e) {
2991
2988
  let [n, r] = I(e?.isStarred ?? !1);
2992
2989
  return N(() => {
2993
2990
  r(e?.isStarred ?? !1);
2994
- }, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ K("div", {
2991
+ }, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ G("div", {
2995
2992
  className: "flex size-full items-center justify-end",
2996
- children: /* @__PURE__ */ K(Lt, {
2993
+ children: /* @__PURE__ */ G(Lt, {
2997
2994
  isStarred: n,
2998
2995
  onClick: (i) => {
2999
2996
  i.stopPropagation();
@@ -3003,9 +3000,9 @@ var J = /* @__PURE__ */ function(e) {
3003
3000
  className: n ? void 0 : kr.starToggleOff
3004
3001
  })
3005
3002
  });
3006
- }, Fr = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ K("div", {
3003
+ }, Fr = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ G("div", {
3007
3004
  className: "flex h-full w-full min-w-0 items-center",
3008
- children: /* @__PURE__ */ K(Ht, { topics: e.topics })
3005
+ children: /* @__PURE__ */ G(Ht, { topics: e.topics })
3009
3006
  }), Ir = {
3010
3007
  folder: (e) => e !== x.Model,
3011
3008
  tags: () => !0,
@@ -3070,10 +3067,10 @@ var J = /* @__PURE__ */ function(e) {
3070
3067
  cellRenderer: Pr
3071
3068
  }
3072
3069
  ];
3073
- }, zr = 60, Br = {}, Vr = (e) => e.id, Hr = (e) => e.items.length === 0 ? /* @__PURE__ */ K("div", {
3070
+ }, zr = 60, Br = {}, Vr = (e) => e.id, Hr = (e) => e.items.length === 0 ? /* @__PURE__ */ G("div", {
3074
3071
  className: Re("flex size-full flex-col items-center justify-center", St.listView),
3075
- children: /* @__PURE__ */ K(ee, { label: e.emptyStateTitle ?? "No results" })
3076
- }) : /* @__PURE__ */ K(Ur, { ...e }), Ur = ({ 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 }) => {
3072
+ children: /* @__PURE__ */ G(ee, { label: e.emptyStateTitle ?? "No results" })
3073
+ }) : /* @__PURE__ */ G(Ur, { ...e }), Ur = ({ 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 }) => {
3077
3074
  let m = a?.typography ?? Br, h = a?.colors, g = {
3078
3075
  "--cat-list-bg": h?.background,
3079
3076
  "--cat-list-border": h?.border,
@@ -3134,18 +3131,18 @@ var J = /* @__PURE__ */ function(e) {
3134
3131
  _.current?.refreshCells({ force: !0 });
3135
3132
  }, [n]), N(() => {
3136
3133
  _.current?.redrawRows();
3137
- }, [u]), /* @__PURE__ */ K("div", {
3134
+ }, [u]), /* @__PURE__ */ G("div", {
3138
3135
  style: g,
3139
3136
  className: Re("w-full rounded-xl border", kr.listContainer, St.listView),
3140
- children: /* @__PURE__ */ q("div", {
3137
+ children: /* @__PURE__ */ K("div", {
3141
3138
  ref: x,
3142
3139
  className: Re("rounded-xl [&_.ag-cell.ag-column-first]:ps-4 [&_.ag-cell.ag-column-last]:pe-4 [&_.ag-header-cell.ag-column-first]:ps-4 [&_.ag-header-cell.ag-column-last]:pe-4", kr.gridClip),
3143
3140
  children: [
3144
- S > 0 && /* @__PURE__ */ K("div", {
3141
+ S > 0 && /* @__PURE__ */ G("div", {
3145
3142
  style: { height: S * zr },
3146
3143
  "aria-hidden": !0
3147
3144
  }),
3148
- /* @__PURE__ */ K(gt, {
3145
+ /* @__PURE__ */ G(_t, {
3149
3146
  columnDefs: y,
3150
3147
  rowData: w,
3151
3148
  getRowId: Vr,
@@ -3156,7 +3153,7 @@ var J = /* @__PURE__ */ function(e) {
3156
3153
  additionalGridOptions: b,
3157
3154
  ariaLabel: r
3158
3155
  }),
3159
- C < e.length && /* @__PURE__ */ K("div", {
3156
+ C < e.length && /* @__PURE__ */ G("div", {
3160
3157
  style: { height: (e.length - C) * zr },
3161
3158
  "aria-hidden": !0
3162
3159
  })
@@ -3229,13 +3226,13 @@ var J = /* @__PURE__ */ function(e) {
3229
3226
  }, te = () => {
3230
3227
  t(/* @__PURE__ */ new Set()), i?.(!1), O(!1);
3231
3228
  };
3232
- return /* @__PURE__ */ K(he, {
3229
+ return /* @__PURE__ */ G(he, {
3233
3230
  matchReferenceWidth: !1,
3234
3231
  placement: "bottom-start",
3235
3232
  open: p,
3236
3233
  onOpenChange: O,
3237
3234
  listClassName: "!bg-transparent !shadow-none !p-0",
3238
- renderOverlay: () => /* @__PURE__ */ q("div", {
3235
+ renderOverlay: () => /* @__PURE__ */ K("div", {
3239
3236
  role: "menu",
3240
3237
  "aria-label": s,
3241
3238
  tabIndex: -1,
@@ -3246,7 +3243,7 @@ var J = /* @__PURE__ */ function(e) {
3246
3243
  className: j("flex min-w-[360px] flex-col rounded-xl p-[6px]", Wr.overlay),
3247
3244
  onKeyDown: A,
3248
3245
  children: [
3249
- /* @__PURE__ */ K(Te, {
3246
+ /* @__PURE__ */ G(Te, {
3250
3247
  role: "menuitemcheckbox",
3251
3248
  "aria-checked": b,
3252
3249
  mark: Ee.Checkbox,
@@ -3260,22 +3257,22 @@ var J = /* @__PURE__ */ function(e) {
3260
3257
  },
3261
3258
  onClick: () => x(!b)
3262
3259
  }),
3263
- g.length > 0 && /* @__PURE__ */ q(dt, { children: [
3264
- /* @__PURE__ */ K("div", {
3260
+ g.length > 0 && /* @__PURE__ */ K(ft, { children: [
3261
+ /* @__PURE__ */ G("div", {
3265
3262
  role: "separator",
3266
3263
  className: j("my-1 h-px", Wr.divider),
3267
3264
  "aria-hidden": !0
3268
3265
  }),
3269
- /* @__PURE__ */ K("div", {
3266
+ /* @__PURE__ */ G("div", {
3270
3267
  className: j("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Wr.sectionLabel),
3271
3268
  "aria-hidden": !0,
3272
3269
  children: o
3273
3270
  }),
3274
- /* @__PURE__ */ K("div", {
3271
+ /* @__PURE__ */ G("div", {
3275
3272
  className: j(ne, "flex min-h-0 flex-col gap-1 overflow-y-auto"),
3276
3273
  children: g.map((e, t) => {
3277
3274
  let n = v.has(e), r = t + 1;
3278
- return /* @__PURE__ */ K(Te, {
3275
+ return /* @__PURE__ */ G(Te, {
3279
3276
  role: "menuitemcheckbox",
3280
3277
  "aria-checked": n,
3281
3278
  mark: Ee.Checkbox,
@@ -3292,15 +3289,15 @@ var J = /* @__PURE__ */ function(e) {
3292
3289
  })
3293
3290
  })
3294
3291
  ] }),
3295
- /* @__PURE__ */ q("div", {
3292
+ /* @__PURE__ */ K("div", {
3296
3293
  className: j("mt-1 flex shrink-0 items-center px-1 py-3", Wr.footer),
3297
3294
  onKeyDown: (e) => {
3298
3295
  (e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
3299
3296
  },
3300
- children: [/* @__PURE__ */ K(ye, {
3297
+ children: [/* @__PURE__ */ G(ye, {
3301
3298
  label: c,
3302
3299
  onClick: te
3303
- }), /* @__PURE__ */ K(ke, {
3300
+ }), /* @__PURE__ */ G(ke, {
3304
3301
  label: l,
3305
3302
  className: "ms-auto",
3306
3303
  onClick: ee
@@ -3308,7 +3305,7 @@ var J = /* @__PURE__ */ function(e) {
3308
3305
  })
3309
3306
  ]
3310
3307
  }),
3311
- children: /* @__PURE__ */ q("button", {
3308
+ children: /* @__PURE__ */ K("button", {
3312
3309
  ref: E,
3313
3310
  type: "button",
3314
3311
  "aria-haspopup": "menu",
@@ -3317,17 +3314,17 @@ var J = /* @__PURE__ */ function(e) {
3317
3314
  style: h,
3318
3315
  className: j("flex h-12 shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-lg px-[18px]", Wr.filterBtn, f && Wr.filterBtnActive, p && Wr.filterBtnOpen),
3319
3316
  children: [
3320
- /* @__PURE__ */ K(Ye, {
3317
+ /* @__PURE__ */ G(Ye, {
3321
3318
  size: R.SM,
3322
3319
  stroke: z,
3323
3320
  className: j("shrink-0", Wr.filterBtnFunnel),
3324
3321
  "aria-hidden": !0
3325
3322
  }),
3326
- /* @__PURE__ */ K("span", {
3323
+ /* @__PURE__ */ G("span", {
3327
3324
  className: j(Wr.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3328
3325
  children: _
3329
3326
  }),
3330
- /* @__PURE__ */ K(Ue, {
3327
+ /* @__PURE__ */ G(Ue, {
3331
3328
  size: 14,
3332
3329
  stroke: z,
3333
3330
  className: j("shrink-0 transition-transform duration-150", Wr.filterBtnChevron, p && "rotate-180"),
@@ -3341,16 +3338,16 @@ var J = /* @__PURE__ */ function(e) {
3341
3338
  divider: "_divider_mh952_5"
3342
3339
  }, Yr = ({ 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 }) => {
3343
3340
  let w = a?.typography?.titleClassName ?? "dial-body-semi-text", T = a?.typography?.countClassName ?? "dial-tiny-semi-text", E = P(() => [{
3344
- value: vt.Grid,
3345
- icon: /* @__PURE__ */ K(W, {
3341
+ value: yt.Grid,
3342
+ icon: /* @__PURE__ */ G(Qe, {
3346
3343
  size: R.SM,
3347
3344
  "aria-hidden": !0,
3348
3345
  stroke: z
3349
3346
  }),
3350
3347
  "aria-label": l
3351
3348
  }, {
3352
- value: vt.Cards,
3353
- icon: /* @__PURE__ */ K(Ze, {
3349
+ value: yt.Cards,
3350
+ icon: /* @__PURE__ */ G($e, {
3354
3351
  size: R.SM,
3355
3352
  "aria-hidden": !0,
3356
3353
  stroke: z
@@ -3369,11 +3366,11 @@ var J = /* @__PURE__ */ function(e) {
3369
3366
  f,
3370
3367
  m
3371
3368
  ]);
3372
- return /* @__PURE__ */ q("div", {
3369
+ return /* @__PURE__ */ K("div", {
3373
3370
  className: "flex flex-col gap-3",
3374
- children: [/* @__PURE__ */ q("div", {
3371
+ children: [/* @__PURE__ */ K("div", {
3375
3372
  className: "flex items-center gap-2",
3376
- children: [i ?? /* @__PURE__ */ K(D, {
3373
+ children: [i ?? /* @__PURE__ */ G(D, {
3377
3374
  title: r,
3378
3375
  postfix: e,
3379
3376
  titleClassName: w,
@@ -3384,26 +3381,26 @@ var J = /* @__PURE__ */ function(e) {
3384
3381
  title: a?.colors?.titleText,
3385
3382
  count: a?.colors?.countText
3386
3383
  }
3387
- }), /* @__PURE__ */ q("div", {
3384
+ }), /* @__PURE__ */ K("div", {
3388
3385
  className: "ms-auto flex shrink-0 items-center gap-2",
3389
- children: [/* @__PURE__ */ K(V, {
3386
+ children: [/* @__PURE__ */ G(V, {
3390
3387
  "aria-label": d,
3391
3388
  value: t,
3392
3389
  onChange: n,
3393
3390
  items: E
3394
- }), p != null && p.length > 0 && /* @__PURE__ */ q(dt, { children: [/* @__PURE__ */ K("div", { className: j("h-4 w-px shrink-0", Jr.divider) }), /* @__PURE__ */ K(L, {
3391
+ }), p != null && p.length > 0 && /* @__PURE__ */ K(ft, { children: [/* @__PURE__ */ G("div", { className: j("h-4 w-px shrink-0", Jr.divider) }), /* @__PURE__ */ G(L, {
3395
3392
  items: A,
3396
3393
  label: k,
3397
3394
  variant: ue.Primary,
3398
3395
  appearance: le.Ghost
3399
3396
  })] })]
3400
3397
  })]
3401
- }), /* @__PURE__ */ q("div", {
3398
+ }), /* @__PURE__ */ K("div", {
3402
3399
  className: "mb-5 flex items-center gap-3",
3403
- children: [/* @__PURE__ */ K("div", {
3400
+ children: [/* @__PURE__ */ G("div", {
3404
3401
  role: "search",
3405
3402
  className: "flex-1",
3406
- children: /* @__PURE__ */ K(Me, {
3403
+ children: /* @__PURE__ */ G(Me, {
3407
3404
  value: o,
3408
3405
  onChange: O,
3409
3406
  size: ge.Large,
@@ -3411,7 +3408,7 @@ var J = /* @__PURE__ */ function(e) {
3411
3408
  placeholder: c,
3412
3409
  "aria-label": c
3413
3410
  })
3414
- }), /* @__PURE__ */ K(qr, {
3411
+ }), /* @__PURE__ */ G(qr, {
3415
3412
  checked: g ?? /* @__PURE__ */ new Set(),
3416
3413
  onChange: _ ?? (() => void 0),
3417
3414
  values: v,
@@ -3426,10 +3423,10 @@ var J = /* @__PURE__ */ function(e) {
3426
3423
  });
3427
3424
  }, Xr = ({ 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 }) => {
3428
3425
  let b = { "--cat-browse-divider": r?.colors?.divider };
3429
- return /* @__PURE__ */ K("section", {
3426
+ return /* @__PURE__ */ G("section", {
3430
3427
  className: j("flex-shrink-0 px-4", Jr.section, St.toolbar),
3431
3428
  style: b,
3432
- children: /* @__PURE__ */ K(Yr, {
3429
+ children: /* @__PURE__ */ G(Yr, {
3433
3430
  styles: r,
3434
3431
  query: e,
3435
3432
  onQueryChange: t,
@@ -3458,24 +3455,24 @@ var J = /* @__PURE__ */ function(e) {
3458
3455
  headingTitle: "_headingTitle_1h83l_9"
3459
3456
  }, Qr = ({ label: e, options: t, onClick: n }) => {
3460
3457
  let r = F(null);
3461
- return t?.length ? /* @__PURE__ */ K("div", {
3458
+ return t?.length ? /* @__PURE__ */ G("div", {
3462
3459
  ref: r,
3463
- children: /* @__PURE__ */ K(L, {
3460
+ children: /* @__PURE__ */ G(L, {
3464
3461
  appearance: le.Solid,
3465
3462
  label: e,
3466
3463
  variant: ue.Primary,
3467
3464
  items: t
3468
3465
  })
3469
- }) : /* @__PURE__ */ K(ke, {
3466
+ }) : /* @__PURE__ */ G(ke, {
3470
3467
  label: e,
3471
- iconBefore: /* @__PURE__ */ K(nt, {
3468
+ iconBefore: /* @__PURE__ */ G(it, {
3472
3469
  size: R.SM,
3473
3470
  stroke: z
3474
3471
  }),
3475
3472
  onClick: n
3476
3473
  });
3477
- }, $r = 3, ei = 300, ti = ({ items: e, tabs: t, topicOptions: n, favorites: o, titles: c, browseHeaderRenderer: d, onToggleFavorite: p, isFavoriteVisible: m, columnVisibility: g, onUseInChat: v, isPrimaryActionVisible: y, onShare: b, isPublishVisible: x, isPublishPrimary: S, getPublishHistory: C, publishFolderItems: w, publishExpandedPaths: T, onPublishExpandedPathsChange: E, publishLoadingPaths: D, hasPublishWriteAccess: O, publishDefaultAuthor: k, onPublish: A, onPublishSuccess: ee, onPublishError: te, onCreatePublishFolder: ne, publishLabels: re, ruleSourceOptions: ie, onFetchExistingRules: ae, shareOverlay: se, isShareVisible: ce, isSharePrimary: le, onFetchDetails: L, renderCredentials: ue, onEdit: de, onDownload: fe, isDownloadVisible: pe, isDownloadPrimary: R, onLoadContentFile: z, onLoadContentFilePreview: me, renderContentFilePreview: he, onDelete: ge, onUnshare: _e, isUnshareVisible: ve, onRevokeShare: ye, onFetchRecipientsCount: be, isRevokeShareVisible: xe, onUnpublish: Se, isUnpublishVisible: Ce, onLogin: B, onLogout: we, onCreateClick: Te, createOptions: Ee, hideCreateButton: De = !1, hidePageTitle: Oe = !1, isReadonly: ke = !1, initialViewMode: Ae = vt.Grid, isFullWidth: je = !1, selectedItemId: Me, onCardClick: V, isLoading: Ne, styles: Pe, detailsTexts: Le, detailsLimitsFooterNote: H, initialDetailsItemId: Re, sortKey: ze, onSortChange: Be, filterTopics: Ve, onFilterTopicsChange: He, isMyAppsActive: Ue, onMyAppsActiveChange: We, activeTab: Ge, onActiveTabChange: Ke, renderEmptyState: qe }) => {
3478
- let { typography: Je } = Pe ?? {}, Ye = Ct(Pe), U = c?.pageTitle ?? "Catalog", Xe = c?.createLabel ?? "Create", W = c?.favoritesTitle ?? "Your favorites", Ze = c?.browseTitle ?? "Browse", Qe = c?.searchPlaceholder ?? "Search models, tools, agents…", $e = c?.noResultsTitle ?? ((e) => `No results for "${e}"`), et = c?.featuredLabel ?? "Featured", tt = c?.gridViewLabel ?? "Grid view", nt = c?.listViewLabel ?? "List view", rt = c?.viewToggleLabel ?? "View mode", it = c?.ariaLabel ?? "Catalog", at = c?.sortLabel ?? "Sort", ot = [
3474
+ }, $r = 3, ei = 300, ti = ({ items: e, tabs: t, topicOptions: n, favorites: o, titles: c, browseHeaderRenderer: d, onToggleFavorite: p, isFavoriteVisible: m, columnVisibility: g, onUseInChat: v, isPrimaryActionVisible: y, onShare: b, isPublishVisible: x, isPublishPrimary: S, getPublishHistory: C, publishFolderItems: w, publishExpandedPaths: T, onPublishExpandedPathsChange: E, publishLoadingPaths: D, hasPublishWriteAccess: O, publishDefaultAuthor: k, onPublish: A, onPublishSuccess: ee, onPublishError: te, onCreatePublishFolder: ne, publishLabels: re, ruleSourceOptions: ie, onFetchExistingRules: ae, shareOverlay: se, isShareVisible: ce, isSharePrimary: le, onFetchDetails: L, renderCredentials: ue, onEdit: de, onDownload: fe, isDownloadVisible: pe, isDownloadPrimary: R, onLoadContentFile: z, onLoadContentFilePreview: me, renderContentFilePreview: he, onDelete: ge, onUnshare: _e, isUnshareVisible: ve, onRevokeShare: ye, onFetchRecipientsCount: be, isRevokeShareVisible: xe, onUnpublish: Se, isUnpublishVisible: Ce, onLogin: B, onLogout: we, onCreateClick: Te, createOptions: Ee, hideCreateButton: De = !1, hidePageTitle: Oe = !1, isReadonly: ke = !1, initialViewMode: Ae = yt.Grid, isFullWidth: je = !1, selectedItemId: Me, onCardClick: V, isLoading: Ne, styles: Pe, detailsTexts: Le, detailsLimitsFooterNote: H, initialDetailsItemId: Re, sortKey: ze, onSortChange: Be, filterTopics: Ve, onFilterTopicsChange: He, isMyAppsActive: Ue, onMyAppsActiveChange: We, activeTab: Ge, onActiveTabChange: Ke, renderEmptyState: qe }) => {
3475
+ let { typography: Je } = Pe ?? {}, Ye = Ct(Pe), Xe = c?.pageTitle ?? "Catalog", Ze = c?.createLabel ?? "Create", Qe = c?.favoritesTitle ?? "Your favorites", $e = c?.browseTitle ?? "Browse", et = c?.searchPlaceholder ?? "Search models, tools, agents…", tt = c?.noResultsTitle ?? ((e) => `No results for "${e}"`), nt = c?.featuredLabel ?? "Featured", rt = c?.gridViewLabel ?? "Grid view", it = c?.listViewLabel ?? "List view", at = c?.viewToggleLabel ?? "View mode", U = c?.ariaLabel ?? "Catalog", ot = c?.sortLabel ?? "Sort", st = [
3479
3476
  {
3480
3477
  value: s.RecentlyUpdated,
3481
3478
  label: c?.sortRecentlyUpdatedLabel ?? "Recently Updated"
@@ -3488,13 +3485,13 @@ var J = /* @__PURE__ */ function(e) {
3488
3485
  value: s.NameAZ,
3489
3486
  label: c?.sortNameAZLabel ?? "Name A-Z"
3490
3487
  }
3491
- ], [G, st] = I(""), [ct, lt] = I(Ae), [ut, ft] = I(Ae === vt.Cards ? "shown" : "unmounted"), [pt, mt] = I(s.RecentlyUpdated), [ht, gt] = I(/* @__PURE__ */ new Set()), [J, Y] = I(!1), _t = ze ?? pt, X = Ve ?? ht, Z = Ue ?? J, Q = M((e) => {
3488
+ ], [W, ct] = I(""), [lt, ut] = I(Ae), [dt, pt] = I(Ae === yt.Cards ? "shown" : "unmounted"), [mt, ht] = I(s.RecentlyUpdated), [gt, _t] = I(/* @__PURE__ */ new Set()), [q, J] = I(!1), vt = ze ?? mt, Y = Ve ?? gt, X = Ue ?? q, Z = M((e) => {
3492
3489
  let t = e;
3493
- mt(t), Be?.(t);
3494
- }, [Be]), yt = M((e) => {
3495
- gt(e), He?.(e);
3496
- }, [He]), bt = M((e) => {
3497
- Y(e), We?.(e);
3490
+ ht(t), Be?.(t);
3491
+ }, [Be]), bt = M((e) => {
3492
+ _t(e), He?.(e);
3493
+ }, [He]), Q = M((e) => {
3494
+ J(e), We?.(e);
3498
3495
  }, [We]), xt = P(() => e.filter((e) => !e.isHidden), [e]), wt = P(() => n ?? u(xt), [n, xt]), Tt = P(() => t ?? r(xt, c?.tabLabels), [
3499
3496
  t,
3500
3497
  xt,
@@ -3571,12 +3568,12 @@ var J = /* @__PURE__ */ function(e) {
3571
3568
  details: t,
3572
3569
  credentials: e ?? Pt.credentials
3573
3570
  };
3574
- }, [Pt, Rt]), $t = P(() => l(xt, _t), [xt, _t]), en = P(() => a($t, G), [$t, G]), tn = P(() => X.size > 0 ? i(en, X) : en, [en, X]), nn = P(() => Z ? _(tn) : tn, [tn, Z]), rn = P(() => kt ? nn.filter((e) => e.type === kt) : nn, [nn, kt]);
3571
+ }, [Pt, Rt]), $t = P(() => l(xt, vt), [xt, vt]), en = P(() => a($t, W), [$t, W]), tn = P(() => Y.size > 0 ? i(en, Y) : en, [en, Y]), nn = P(() => X ? _(tn) : tn, [tn, X]), rn = P(() => kt ? nn.filter((e) => e.type === kt) : nn, [nn, kt]);
3575
3572
  N(() => {
3576
- if (ut !== "unmounted" || Ne || rn.length === 0) return;
3573
+ if (dt !== "unmounted" || Ne || rn.length === 0) return;
3577
3574
  let e = () => {
3578
3575
  oe(() => {
3579
- ft((e) => e === "unmounted" ? "prepared" : e);
3576
+ pt((e) => e === "unmounted" ? "prepared" : e);
3580
3577
  });
3581
3578
  };
3582
3579
  if (typeof window.requestIdleCallback == "function") {
@@ -3586,7 +3583,7 @@ var J = /* @__PURE__ */ function(e) {
3586
3583
  let t = window.setTimeout(e, 200);
3587
3584
  return () => window.clearTimeout(t);
3588
3585
  }, [
3589
- ut,
3586
+ dt,
3590
3587
  Ne,
3591
3588
  rn.length
3592
3589
  ]);
@@ -3597,52 +3594,52 @@ var J = /* @__PURE__ */ function(e) {
3597
3594
  return () => cancelAnimationFrame(e);
3598
3595
  }, [Pt]);
3599
3596
  let on = M((e) => {
3600
- e === vt.Cards && ft("shown"), lt(e);
3601
- }, []), sn = !De && !ke, cn = jt && !ke, ln = G ? $e(G) : "No items", un = P(() => ({
3597
+ e === yt.Cards && pt("shown"), ut(e);
3598
+ }, []), sn = !De && !ke, cn = jt && !ke, ln = W ? tt(W) : "No items", un = P(() => ({
3602
3599
  noResultsTitle: ln,
3603
- featuredLabel: et,
3600
+ featuredLabel: nt,
3604
3601
  credentialsBadgeLoggedOutLabel: Le?.credentialsBadgeLoggedOutLabel
3605
3602
  }), [
3606
3603
  ln,
3607
- et,
3604
+ nt,
3608
3605
  Le?.credentialsBadgeLoggedOutLabel
3609
3606
  ]), dn = !Ne && rn.length === 0 ? qe?.({
3610
- query: G,
3607
+ query: W,
3611
3608
  activeTab: kt,
3612
- hasTopicFilters: X.size > 0,
3613
- isMyAppsActive: Z
3609
+ hasTopicFilters: Y.size > 0,
3610
+ isMyAppsActive: X
3614
3611
  }) : void 0;
3615
- return Ne ? /* @__PURE__ */ K("div", {
3612
+ return Ne ? /* @__PURE__ */ G("div", {
3616
3613
  className: "flex size-full min-h-0 flex-1 items-center justify-center",
3617
- children: /* @__PURE__ */ K(Fe, {})
3618
- }) : /* @__PURE__ */ q("section", {
3619
- "aria-label": it,
3614
+ children: /* @__PURE__ */ G(Fe, {})
3615
+ }) : /* @__PURE__ */ K("section", {
3616
+ "aria-label": U,
3620
3617
  className: j("flex size-full min-h-0 flex-1 flex-col", Zr.root, St.root),
3621
3618
  style: Ye,
3622
3619
  children: [
3623
- (!Oe || sn) && /* @__PURE__ */ K("div", {
3620
+ (!Oe || sn) && /* @__PURE__ */ G("div", {
3624
3621
  className: j("shrink-0", Zr.heading),
3625
- children: /* @__PURE__ */ q("div", {
3622
+ children: /* @__PURE__ */ K("div", {
3626
3623
  className: "flex h-[64px] w-full items-center justify-between px-8",
3627
- children: [!Oe && /* @__PURE__ */ K("h1", {
3624
+ children: [!Oe && /* @__PURE__ */ G("h1", {
3628
3625
  className: j(Je?.pageHeadingFontClassName ?? "dial-display2-text", Zr.headingTitle),
3629
- children: U
3630
- }), sn && /* @__PURE__ */ K(Qr, {
3631
- label: Xe,
3626
+ children: Xe
3627
+ }), sn && /* @__PURE__ */ G(Qr, {
3628
+ label: Ze,
3632
3629
  options: Ee,
3633
3630
  onClick: Te
3634
3631
  })]
3635
3632
  })
3636
3633
  }),
3637
- /* @__PURE__ */ q("div", {
3634
+ /* @__PURE__ */ K("div", {
3638
3635
  className: "flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto overflow-x-hidden",
3639
3636
  children: [
3640
- cn && /* @__PURE__ */ K("div", {
3637
+ cn && /* @__PURE__ */ G("div", {
3641
3638
  className: "w-full px-8",
3642
- children: /* @__PURE__ */ K(Or, {
3639
+ children: /* @__PURE__ */ G(Or, {
3643
3640
  items: o,
3644
3641
  totalCount: o.length,
3645
- title: W,
3642
+ title: Qe,
3646
3643
  onToggleFavorite: p,
3647
3644
  isFavoriteVisible: m,
3648
3645
  onItemClick: V ?? Gt,
@@ -3652,37 +3649,37 @@ var J = /* @__PURE__ */ function(e) {
3652
3649
  credentialsBadgeLoggedOutLabel: Le?.credentialsBadgeLoggedOutLabel
3653
3650
  })
3654
3651
  }),
3655
- /* @__PURE__ */ K("div", {
3652
+ /* @__PURE__ */ G("div", {
3656
3653
  className: "w-full px-4 pt-6",
3657
- children: /* @__PURE__ */ K(Xr, {
3654
+ children: /* @__PURE__ */ G(Xr, {
3658
3655
  totalCount: nn.length,
3659
- viewMode: ct,
3656
+ viewMode: lt,
3660
3657
  onViewModeChange: on,
3661
- sortKey: _t,
3662
- query: G,
3663
- onQueryChange: st,
3664
- title: Ze,
3658
+ sortKey: vt,
3659
+ query: W,
3660
+ onQueryChange: ct,
3661
+ title: $e,
3665
3662
  browseHeaderRenderer: d,
3666
- searchPlaceholder: Qe,
3667
- gridViewLabel: tt,
3668
- listViewLabel: nt,
3669
- viewToggleLabel: rt,
3670
- sortOptions: ot,
3671
- onSortChange: Q,
3672
- sortLabel: at,
3673
- filters: X,
3674
- onFiltersChange: yt,
3663
+ searchPlaceholder: et,
3664
+ gridViewLabel: rt,
3665
+ listViewLabel: it,
3666
+ viewToggleLabel: at,
3667
+ sortOptions: st,
3668
+ onSortChange: Z,
3669
+ sortLabel: ot,
3670
+ filters: Y,
3671
+ onFiltersChange: bt,
3675
3672
  filterValues: wt,
3676
- isMyAppsActive: Z,
3677
- onMyAppsChange: bt,
3673
+ isMyAppsActive: X,
3674
+ onMyAppsChange: Q,
3678
3675
  filterFromLabel: c?.filterFromLabel,
3679
3676
  filterMyAppsLabel: c?.filterMyAppsLabel,
3680
3677
  filterTopicsLabel: c?.filterTopicsLabel
3681
3678
  })
3682
3679
  }),
3683
- Tt.length > 1 && /* @__PURE__ */ K("div", {
3680
+ Tt.length > 1 && /* @__PURE__ */ G("div", {
3684
3681
  className: "min-w-0 shrink-0 overflow-x-auto px-8",
3685
- children: /* @__PURE__ */ K(Ie, {
3682
+ children: /* @__PURE__ */ G(Ie, {
3686
3683
  tabs: Tt.map((e) => ({
3687
3684
  id: e.id,
3688
3685
  label: typeof e.label == "string" ? e.label : String(e.label),
@@ -3692,14 +3689,14 @@ var J = /* @__PURE__ */ function(e) {
3692
3689
  onTabChange: At
3693
3690
  })
3694
3691
  }),
3695
- /* @__PURE__ */ K("div", {
3692
+ /* @__PURE__ */ G("div", {
3696
3693
  className: j(rn.length > 0 ? ["min-h-full w-full px-8 py-6", !je && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", rn.length === 0 && "px-8 py-6"),
3697
- children: dn ?? /* @__PURE__ */ q(dt, { children: [/* @__PURE__ */ K("div", {
3698
- inert: ct !== vt.Grid,
3699
- className: j(rn.length > 0 ? "pb-8" : "size-full flex-1", ct !== vt.Grid && "hidden"),
3700
- children: /* @__PURE__ */ K(qt, {
3694
+ children: dn ?? /* @__PURE__ */ K(ft, { children: [/* @__PURE__ */ G("div", {
3695
+ inert: lt !== yt.Grid,
3696
+ className: j(rn.length > 0 ? "pb-8" : "size-full flex-1", lt !== yt.Grid && "hidden"),
3697
+ children: /* @__PURE__ */ G(qt, {
3701
3698
  items: rn,
3702
- query: G,
3699
+ query: W,
3703
3700
  onToggleFavorite: p,
3704
3701
  isFavoriteVisible: m,
3705
3702
  onItemClick: V ?? Gt,
@@ -3709,14 +3706,14 @@ var J = /* @__PURE__ */ function(e) {
3709
3706
  isFullWidth: je,
3710
3707
  featuredChipStyle: Pe?.colors?.featuredChipStyle
3711
3708
  })
3712
- }), ut !== "unmounted" && /* @__PURE__ */ K("div", {
3713
- inert: ct !== vt.Cards,
3714
- className: j("pb-8", ct !== vt.Cards && (ut === "prepared" ? "invisible h-0 overflow-hidden p-0" : "hidden"), rn.length === 0 && ct === vt.Cards && "h-full"),
3715
- children: /* @__PURE__ */ K(Hr, {
3709
+ }), dt !== "unmounted" && /* @__PURE__ */ G("div", {
3710
+ inert: lt !== yt.Cards,
3711
+ className: j("pb-8", lt !== yt.Cards && (dt === "prepared" ? "invisible h-0 overflow-hidden p-0" : "hidden"), rn.length === 0 && lt === yt.Cards && "h-full"),
3712
+ children: /* @__PURE__ */ G(Hr, {
3716
3713
  type: kt,
3717
3714
  items: rn,
3718
- query: G,
3719
- ariaLabel: it,
3715
+ query: W,
3716
+ ariaLabel: U,
3720
3717
  emptyStateTitle: ln,
3721
3718
  onToggleFavorite: p,
3722
3719
  isFavoriteVisible: m,
@@ -3731,7 +3728,7 @@ var J = /* @__PURE__ */ function(e) {
3731
3728
  })
3732
3729
  ]
3733
3730
  }),
3734
- Qt != null && /* @__PURE__ */ K(Cr, {
3731
+ Qt != null && /* @__PURE__ */ G(Cr, {
3735
3732
  renderCredentials: ue,
3736
3733
  item: Qt,
3737
3734
  isOpen: It,
@@ -3788,10 +3785,10 @@ var J = /* @__PURE__ */ function(e) {
3788
3785
  });
3789
3786
  }, ni = ({ service: e, texts: t, onLogin: n, onLogout: r }) => {
3790
3787
  let [i, a] = I(!1), [s, c] = I(!1), [l, u] = I(!1), [d, f] = I(), p = e.authenticationType === y.ApiKey, m = p ? t?.deleteActionLabel ?? "Delete" : t?.logoutActionLabel ?? "Log out", h = p ? t?.deleteApiKeyConfirmMessage?.(b.User) ?? "Are you sure you want to delete your personal API key?" : t?.logoutConfirmMessage ?? "Are you sure you want to log out?";
3791
- return /* @__PURE__ */ q(wn, {
3788
+ return /* @__PURE__ */ K(wn, {
3792
3789
  label: e.name,
3793
3790
  description: e.description,
3794
- icon: /* @__PURE__ */ K(st, {
3791
+ icon: /* @__PURE__ */ G(ct, {
3795
3792
  size: R.SM,
3796
3793
  "aria-hidden": !0,
3797
3794
  stroke: z
@@ -3814,7 +3811,7 @@ var J = /* @__PURE__ */ function(e) {
3814
3811
  keyCardTitleClassName: "dial-tiny-semi-text",
3815
3812
  keyCardDescriptionClassName: "dial-tiny-text",
3816
3813
  deleteActionClassName: Cn.errorText,
3817
- renderLoginOptions: e.canConsentToOfflineUsage ? (e) => /* @__PURE__ */ K(fe, {
3814
+ renderLoginOptions: e.canConsentToOfflineUsage ? (e) => /* @__PURE__ */ G(fe, {
3818
3815
  isSelected: i,
3819
3816
  onChange: a,
3820
3817
  disabled: e,
@@ -3822,37 +3819,37 @@ var J = /* @__PURE__ */ function(e) {
3822
3819
  caption: t?.offlineUsageConsentHint
3823
3820
  }) : void 0,
3824
3821
  children: [
3825
- e.hint && /* @__PURE__ */ K("p", {
3822
+ e.hint && /* @__PURE__ */ G("p", {
3826
3823
  className: j("dial-small-text break-words", Cn.description),
3827
3824
  children: e.hint
3828
3825
  }),
3829
- e.hasSharedCredentials && /* @__PURE__ */ K(gn, {
3830
- icon: /* @__PURE__ */ K(Ve, {
3826
+ e.hasSharedCredentials && /* @__PURE__ */ G(gn, {
3827
+ icon: /* @__PURE__ */ G(Ve, {
3831
3828
  size: R.SM,
3832
3829
  "aria-hidden": !0,
3833
3830
  stroke: z
3834
3831
  }),
3835
3832
  title: t?.sharedCredentials ?? "Shared credentials are available for this service."
3836
3833
  }),
3837
- s && /* @__PURE__ */ q("div", {
3834
+ s && /* @__PURE__ */ K("div", {
3838
3835
  className: "flex flex-col gap-3 pt-3",
3839
3836
  children: [
3840
- /* @__PURE__ */ K("p", { children: h }),
3841
- d && /* @__PURE__ */ K("p", {
3837
+ /* @__PURE__ */ G("p", { children: h }),
3838
+ d && /* @__PURE__ */ G("p", {
3842
3839
  role: "alert",
3843
3840
  className: Cn.errorText,
3844
3841
  children: d
3845
3842
  }),
3846
- /* @__PURE__ */ q("div", {
3843
+ /* @__PURE__ */ K("div", {
3847
3844
  className: "flex flex-wrap justify-end gap-2",
3848
- children: [/* @__PURE__ */ K(De, {
3845
+ children: [/* @__PURE__ */ G(De, {
3849
3846
  className: "min-h-11",
3850
3847
  label: t?.cancelLabel ?? "Cancel",
3851
3848
  disabled: l,
3852
3849
  onClick: () => {
3853
3850
  c(!1), f(void 0);
3854
3851
  }
3855
- }), /* @__PURE__ */ K(me, {
3852
+ }), /* @__PURE__ */ G(me, {
3856
3853
  className: "min-h-11",
3857
3854
  label: m,
3858
3855
  disabled: l,
@@ -3874,39 +3871,39 @@ var J = /* @__PURE__ */ function(e) {
3874
3871
  })
3875
3872
  ]
3876
3873
  });
3877
- }, ri = ({ services: e, isLoading: t = !1, hasError: n = !1, showEmptyState: r = !1, onRetry: i, onLogin: a, onLogout: o, texts: s }) => t && !e.length ? /* @__PURE__ */ K("p", {
3874
+ }, ri = ({ services: e, isLoading: t = !1, hasError: n = !1, showEmptyState: r = !1, onRetry: i, onLogin: a, onLogout: o, texts: s }) => t && !e.length ? /* @__PURE__ */ G("p", {
3878
3875
  role: "status",
3879
3876
  className: "px-6 py-3",
3880
3877
  children: s?.loading ?? "Loading…"
3881
- }) : n ? /* @__PURE__ */ q("div", {
3878
+ }) : n ? /* @__PURE__ */ K("div", {
3882
3879
  className: "flex flex-col gap-2 px-6 py-3",
3883
- children: [/* @__PURE__ */ K("p", {
3880
+ children: [/* @__PURE__ */ G("p", {
3884
3881
  role: "alert",
3885
3882
  children: s?.loadError ?? "Unable to load credentials"
3886
- }), /* @__PURE__ */ K(De, {
3883
+ }), /* @__PURE__ */ G(De, {
3887
3884
  className: "min-h-11 self-start",
3888
3885
  label: s?.retry ?? "Retry",
3889
3886
  onClick: i
3890
3887
  })]
3891
- }) : e.length ? /* @__PURE__ */ q("section", {
3888
+ }) : e.length ? /* @__PURE__ */ K("section", {
3892
3889
  "aria-label": s?.title ?? "Credentials",
3893
3890
  className: "flex min-w-0 flex-col gap-5 px-6 py-4",
3894
- children: [/* @__PURE__ */ K("h2", {
3891
+ children: [/* @__PURE__ */ G("h2", {
3895
3892
  className: "dial-h3-text",
3896
3893
  children: s?.title ?? "Credentials"
3897
- }), /* @__PURE__ */ K("div", {
3894
+ }), /* @__PURE__ */ G("div", {
3898
3895
  className: "flex min-w-0 flex-col",
3899
- children: e.map((e) => /* @__PURE__ */ K(ni, {
3896
+ children: e.map((e) => /* @__PURE__ */ G(ni, {
3900
3897
  service: e,
3901
3898
  texts: s,
3902
3899
  onLogin: a,
3903
3900
  onLogout: o
3904
3901
  }, e.id))
3905
3902
  })]
3906
- }) : r ? /* @__PURE__ */ K("p", {
3903
+ }) : r ? /* @__PURE__ */ G("p", {
3907
3904
  role: "status",
3908
3905
  className: "px-6 py-3",
3909
3906
  children: s?.empty ?? "No credentials required"
3910
3907
  }) : null;
3911
3908
  //#endregion
3912
- export { Nt as AppIdentity, ri as ApplicationCredentials, St as CATALOG_CLASS, Gt as Card, qt as CardGrid, Kt as CardRowRenderer, ti as Catalog, yt as CatalogContentNodeType, bt as CatalogContentPreviewType, Y as CatalogDetailsTab, _t as CatalogLimitStatus, s as CatalogSortKey, vt as CatalogViewMode, J as CodeLanguage, Wn as ContentTab, o as CredentialStatus, Ft as CredentialsBadge, e as CredentialsBadgeState, b as CredentialsLevel, n as CredentialsUiState, Q as DeploymentSize, X as DetailsConfirmationKind, Z as DetailsConfirmationVariant, Cr as DetailsPanel, Tr as FavoriteCard, Or as Favorites, qr as Filter, ln as InfoCard, Hr as ListView, Xr as Toolbar, y as ToolsetAuthenticationType, Bt as TopicTag, r as buildCatalogTabs, a as filterCatalogItems, d as getCredentialsBadgeState, c as getCredentialsUiState, t as getSignedInLevel, u as getTopicOptions, l as sortCatalogItems, xt as useFavColumns, jt as useScrollVirtualizer };
3909
+ export { Nt as AppIdentity, ri as ApplicationCredentials, St as CATALOG_CLASS, Gt as Card, qt as CardGrid, Kt as CardRowRenderer, ti as Catalog, bt as CatalogContentNodeType, Q as CatalogContentPreviewType, J as CatalogDetailsTab, vt as CatalogLimitStatus, s as CatalogSortKey, yt as CatalogViewMode, q as CodeLanguage, Wn as ContentTab, o as CredentialStatus, Ft as CredentialsBadge, e as CredentialsBadgeState, b as CredentialsLevel, n as CredentialsUiState, Z as DeploymentSize, Y as DetailsConfirmationKind, X as DetailsConfirmationVariant, Cr as DetailsPanel, Tr as FavoriteCard, Or as Favorites, qr as Filter, ln as InfoCard, Hr as ListView, Xr as Toolbar, y as ToolsetAuthenticationType, Bt as TopicTag, r as buildCatalogTabs, a as filterCatalogItems, d as getCredentialsBadgeState, c as getCredentialsUiState, t as getSignedInLevel, u as getTopicOptions, l as sortCatalogItems, xt as useFavColumns, jt as useScrollVirtualizer };