@epam/ai-dial-catalog 1.1.0-dev.43 → 1.1.0-dev.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import e, { Fragment as t, createElement as n, forwardRef as r, memo as i, useCallback as a, useEffect as o, useId as s, useLayoutEffect as c, useMemo as l, useRef as u, useState as d } from "react";
2
- import { ButtonAppearance as f, ButtonVariant as p, DIAL_ICON_SIZE as m, DialAccordion as h, DialBreadcrumb as g, DialButton as _, DialCheckbox as v, DialCloseButton as y, DialConfirmationPopup as b, DialDropdown as x, DialEllipsisTooltip as S, DialFileNodeType as C, DialFoldersTree as w, DialGhostButton as T, DialGhostIconButton as E, DialGrid as D, DialIcon as O, DialInput as k, DialNeutralButton as ee, DialNoDataContent as A, DialPrimaryButton as j, DialProgressBar as M, DialProgressBarSize as N, DialSkeleton as te, DialSkeletonAvatarShape as P, DialSpinner as ne, DialTag as re, DialTooltip as ie, ElementSize as F, Notification as I, NotificationType as ae, NotificationVariant as oe, mergeClasses as se } from "@epam/ai-dial-ui-kit";
2
+ import { ButtonAppearance as f, ButtonVariant as p, DIAL_ICON_SIZE as m, DialAccordion as h, DialBreadcrumb as g, DialButton as _, DialCheckbox as v, DialCloseButton as y, DialConfirmationPopup as b, DialDropdown as x, DialEllipsisTooltip as S, DialFileNodeType as C, DialFoldersTree as w, DialGhostButton as T, DialGhostIconButton as E, DialGrid as D, DialIcon as O, DialInput as k, DialNeutralButton as ee, DialNoDataContent as A, DialPrimaryButton as j, DialProgressBar as M, DialProgressBarSize as N, DialSkeleton as te, DialSkeletonAvatarShape as P, DialSpinner as ne, DialTag as re, DialTooltip as ie, ElementSize as ae, Notification as F, NotificationType as I, NotificationVariant as oe, mergeClasses as se } from "@epam/ai-dial-ui-kit";
3
3
  import { Fragment as L, jsx as R, jsxs as z } from "react/jsx-runtime";
4
- import { IconCheck as ce, IconChevronDown as le, IconChevronLeft as ue, IconChevronRight as de, IconCircleCheckFilled as fe, IconCopy as pe, IconFilter as me, IconFolder as he, IconFolderPlus as ge, IconKey as B, IconLayoutGrid as _e, IconLayoutList as ve, IconLogin as ye, IconLogout as be, IconMessageCircle as xe, IconPencil as Se, IconPlayerPlayFilled as Ce, IconPlugConnected as we, IconPlus as Te, IconSearch as Ee, IconShare as De, IconStar as Oe, IconStarFilled as ke, IconTrash as Ae, IconX as je, IconZoomCancel as Me } from "@tabler/icons-react";
4
+ import { IconCheck as ce, IconChevronDown as le, IconChevronLeft as ue, IconChevronRight as de, IconCircleCheckFilled as fe, IconCopy as pe, IconFilter as me, IconFolder as he, IconFolderPlus as ge, IconKey as _e, IconLayoutGrid as B, IconLayoutList as ve, IconLogin as ye, IconLogout as be, IconMessageCircle as xe, IconPencil as Se, IconPlayerPlayFilled as Ce, IconPlugConnected as we, IconPlus as Te, IconSearch as Ee, IconShare as De, IconStar as Oe, IconStarFilled as ke, IconTrash as Ae, IconX as je, IconZoomCancel as Me } from "@tabler/icons-react";
5
5
  //#region src/types/code-language.ts
6
6
  var Ne = /* @__PURE__ */ function(e) {
7
7
  return e.Python = "python", e.Curl = "curl", e.JavaScript = "javascript", e;
@@ -10,7 +10,7 @@ var Ne = /* @__PURE__ */ function(e) {
10
10
  }({}), Fe = /* @__PURE__ */ function(e) {
11
11
  return e.Free = "FREE", e.Featured = "FEATURED", e.ByRequest = "BY_REQUEST", e.Beta = "BETA", e.Deprecated = "DEPRECATED", e;
12
12
  }({}), V = /* @__PURE__ */ function(e) {
13
- return e.Model = "MODEL", e.Application = "APPLICATION", e.Agent = "AGENT", e.Toolset = "TOOLSET", e.Guardrail = "GUARDRAIL", e.Skill = "SKILL", e.Mcp = "MCP", e;
13
+ return e.Model = "MODEL", e.Agent = "AGENT", e.Toolset = "TOOLSET", e.Skill = "SKILL", e;
14
14
  }({}), Ie = /* @__PURE__ */ function(e) {
15
15
  return e.RecentlyUpdated = "recently-updated", e.Newest = "newest", e.NameAZ = "name-az", e;
16
16
  }({}), Le = /* @__PURE__ */ function(e) {
@@ -631,18 +631,18 @@ var Ot = /* @__PURE__ */ wt((/* @__PURE__ */ xt(((e, t) => {
631
631
  Bn,
632
632
  kn,
633
633
  { size: [W, U] }
634
- ], F = () => [
634
+ ], ae = () => [
635
635
  bn,
636
636
  Ln,
637
637
  An
638
- ], I = () => [
638
+ ], F = () => [
639
639
  "",
640
640
  "none",
641
641
  "full",
642
642
  l,
643
643
  W,
644
644
  U
645
- ], ae = () => [
645
+ ], I = () => [
646
646
  "",
647
647
  H,
648
648
  Ln,
@@ -1242,41 +1242,41 @@ var Ot = /* @__PURE__ */ wt((/* @__PURE__ */ xt(((e, t) => {
1242
1242
  Fn
1243
1243
  ] }],
1244
1244
  "bg-color": [{ bg: P() }],
1245
- "gradient-from-pos": [{ from: F() }],
1246
- "gradient-via-pos": [{ via: F() }],
1247
- "gradient-to-pos": [{ to: F() }],
1245
+ "gradient-from-pos": [{ from: ae() }],
1246
+ "gradient-via-pos": [{ via: ae() }],
1247
+ "gradient-to-pos": [{ to: ae() }],
1248
1248
  "gradient-from": [{ from: P() }],
1249
1249
  "gradient-via": [{ via: P() }],
1250
1250
  "gradient-to": [{ to: P() }],
1251
- rounded: [{ rounded: I() }],
1252
- "rounded-s": [{ "rounded-s": I() }],
1253
- "rounded-e": [{ "rounded-e": I() }],
1254
- "rounded-t": [{ "rounded-t": I() }],
1255
- "rounded-r": [{ "rounded-r": I() }],
1256
- "rounded-b": [{ "rounded-b": I() }],
1257
- "rounded-l": [{ "rounded-l": I() }],
1258
- "rounded-ss": [{ "rounded-ss": I() }],
1259
- "rounded-se": [{ "rounded-se": I() }],
1260
- "rounded-ee": [{ "rounded-ee": I() }],
1261
- "rounded-es": [{ "rounded-es": I() }],
1262
- "rounded-tl": [{ "rounded-tl": I() }],
1263
- "rounded-tr": [{ "rounded-tr": I() }],
1264
- "rounded-br": [{ "rounded-br": I() }],
1265
- "rounded-bl": [{ "rounded-bl": I() }],
1266
- "border-w": [{ border: ae() }],
1267
- "border-w-x": [{ "border-x": ae() }],
1268
- "border-w-y": [{ "border-y": ae() }],
1269
- "border-w-s": [{ "border-s": ae() }],
1270
- "border-w-e": [{ "border-e": ae() }],
1271
- "border-w-bs": [{ "border-bs": ae() }],
1272
- "border-w-be": [{ "border-be": ae() }],
1273
- "border-w-t": [{ "border-t": ae() }],
1274
- "border-w-r": [{ "border-r": ae() }],
1275
- "border-w-b": [{ "border-b": ae() }],
1276
- "border-w-l": [{ "border-l": ae() }],
1277
- "divide-x": [{ "divide-x": ae() }],
1251
+ rounded: [{ rounded: F() }],
1252
+ "rounded-s": [{ "rounded-s": F() }],
1253
+ "rounded-e": [{ "rounded-e": F() }],
1254
+ "rounded-t": [{ "rounded-t": F() }],
1255
+ "rounded-r": [{ "rounded-r": F() }],
1256
+ "rounded-b": [{ "rounded-b": F() }],
1257
+ "rounded-l": [{ "rounded-l": F() }],
1258
+ "rounded-ss": [{ "rounded-ss": F() }],
1259
+ "rounded-se": [{ "rounded-se": F() }],
1260
+ "rounded-ee": [{ "rounded-ee": F() }],
1261
+ "rounded-es": [{ "rounded-es": F() }],
1262
+ "rounded-tl": [{ "rounded-tl": F() }],
1263
+ "rounded-tr": [{ "rounded-tr": F() }],
1264
+ "rounded-br": [{ "rounded-br": F() }],
1265
+ "rounded-bl": [{ "rounded-bl": F() }],
1266
+ "border-w": [{ border: I() }],
1267
+ "border-w-x": [{ "border-x": I() }],
1268
+ "border-w-y": [{ "border-y": I() }],
1269
+ "border-w-s": [{ "border-s": I() }],
1270
+ "border-w-e": [{ "border-e": I() }],
1271
+ "border-w-bs": [{ "border-bs": I() }],
1272
+ "border-w-be": [{ "border-be": I() }],
1273
+ "border-w-t": [{ "border-t": I() }],
1274
+ "border-w-r": [{ "border-r": I() }],
1275
+ "border-w-b": [{ "border-b": I() }],
1276
+ "border-w-l": [{ "border-l": I() }],
1277
+ "divide-x": [{ "divide-x": I() }],
1278
1278
  "divide-x-reverse": ["divide-x-reverse"],
1279
- "divide-y": [{ "divide-y": ae() }],
1279
+ "divide-y": [{ "divide-y": I() }],
1280
1280
  "divide-y-reverse": ["divide-y-reverse"],
1281
1281
  "border-style": [{ border: [
1282
1282
  ...oe(),
@@ -1332,12 +1332,12 @@ var Ot = /* @__PURE__ */ wt((/* @__PURE__ */ xt(((e, t) => {
1332
1332
  In
1333
1333
  ] }],
1334
1334
  "inset-shadow-color": [{ "inset-shadow": P() }],
1335
- "ring-w": [{ ring: ae() }],
1335
+ "ring-w": [{ ring: I() }],
1336
1336
  "ring-w-inset": ["ring-inset"],
1337
1337
  "ring-color": [{ ring: P() }],
1338
1338
  "ring-offset-w": [{ "ring-offset": [H, An] }],
1339
1339
  "ring-offset-color": [{ "ring-offset": P() }],
1340
- "inset-ring-w": [{ "inset-ring": ae() }],
1340
+ "inset-ring-w": [{ "inset-ring": I() }],
1341
1341
  "inset-ring-color": [{ "inset-ring": P() }],
1342
1342
  "text-shadow": [{ "text-shadow": [
1343
1343
  "none",
@@ -5675,11 +5675,11 @@ function qs(e) {
5675
5675
  image: a(me),
5676
5676
  label: o,
5677
5677
  link: a(he),
5678
- listItem: a(B),
5678
+ listItem: a(_e),
5679
5679
  listItemValue: f,
5680
5680
  listOrdered: a(ge, d),
5681
5681
  listUnordered: a(ge),
5682
- paragraph: a(_e),
5682
+ paragraph: a(B),
5683
5683
  reference: ie,
5684
5684
  referenceString: o,
5685
5685
  resourceDestinationString: o,
@@ -5696,9 +5696,9 @@ function qs(e) {
5696
5696
  autolinkProtocol: se,
5697
5697
  blockQuote: c(),
5698
5698
  characterEscapeValue: E,
5699
- characterReferenceMarkerHexadecimal: I,
5700
- characterReferenceMarkerNumeric: I,
5701
- characterReferenceValue: ae,
5699
+ characterReferenceMarkerHexadecimal: F,
5700
+ characterReferenceMarkerNumeric: F,
5701
+ characterReferenceValue: I,
5702
5702
  characterReference: oe,
5703
5703
  codeFenced: c(g),
5704
5704
  codeFencedFence: h,
@@ -5729,7 +5729,7 @@ function qs(e) {
5729
5729
  listOrdered: c(),
5730
5730
  listUnordered: c(),
5731
5731
  paragraph: c(),
5732
- referenceString: F,
5732
+ referenceString: ae,
5733
5733
  resourceDestinationString: P,
5734
5734
  resourceTitleString: ne,
5735
5735
  resource: re,
@@ -5996,14 +5996,14 @@ function qs(e) {
5996
5996
  function ie() {
5997
5997
  this.data.referenceType = "collapsed";
5998
5998
  }
5999
- function F(e) {
5999
+ function ae(e) {
6000
6000
  let t = this.resume(), n = this.stack[this.stack.length - 1];
6001
6001
  n.label = t, n.identifier = ma(this.sliceSerialize(e)).toLowerCase(), this.data.referenceType = "full";
6002
6002
  }
6003
- function I(e) {
6003
+ function F(e) {
6004
6004
  this.data.characterReferenceType = e.type;
6005
6005
  }
6006
- function ae(e) {
6006
+ function I(e) {
6007
6007
  let t = this.sliceSerialize(e), n = this.data.characterReferenceType, r;
6008
6008
  n ? (r = pa(t, n === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : r = oa(t);
6009
6009
  let i = this.stack[this.stack.length - 1];
@@ -6099,7 +6099,7 @@ function qs(e) {
6099
6099
  children: []
6100
6100
  };
6101
6101
  }
6102
- function B(e) {
6102
+ function _e(e) {
6103
6103
  return {
6104
6104
  type: "listItem",
6105
6105
  spread: e._spread,
@@ -6107,7 +6107,7 @@ function qs(e) {
6107
6107
  children: []
6108
6108
  };
6109
6109
  }
6110
- function _e() {
6110
+ function B() {
6111
6111
  return {
6112
6112
  type: "paragraph",
6113
6113
  children: []
@@ -9989,24 +9989,24 @@ function rm(t, n) {
9989
9989
  numberStyle: S,
9990
9990
  startingLineNumber: y,
9991
9991
  codeString: N
9992
- }) : null, re = s.hljs || s["pre[class*=\"language-\"]"] || { backgroundColor: "#fff" }, ie = tm(te) ? "hljs" : "prismjs", F = p ? Object.assign({}, P, { style: Object.assign({}, re, l) }) : Object.assign({}, P, {
9992
+ }) : null, re = s.hljs || s["pre[class*=\"language-\"]"] || { backgroundColor: "#fff" }, ie = tm(te) ? "hljs" : "prismjs", ae = p ? Object.assign({}, P, { style: Object.assign({}, re, l) }) : Object.assign({}, P, {
9993
9993
  className: P.className ? `${ie} ${P.className}` : ie,
9994
9994
  style: Object.assign({}, l)
9995
9995
  });
9996
- if (T ? d.style = Up({ whiteSpace: "pre-wrap" }, d.style) : d.style = Up({ whiteSpace: "pre" }, d.style), !te) return /*#__PURE__*/ e.createElement(ee, F, ne, /*#__PURE__*/ e.createElement(j, d, N));
9996
+ if (T ? d.style = Up({ whiteSpace: "pre-wrap" }, d.style) : d.style = Up({ whiteSpace: "pre" }, d.style), !te) return /*#__PURE__*/ e.createElement(ee, ae, ne, /*#__PURE__*/ e.createElement(j, d, N));
9997
9997
  (C === void 0 && O || T) && (C = !0), O ||= em;
9998
- var I = [{
9998
+ var F = [{
9999
9999
  type: "text",
10000
10000
  value: N
10001
- }], ae = nm({
10001
+ }], I = nm({
10002
10002
  astGenerator: te,
10003
10003
  language: i,
10004
10004
  code: N,
10005
- defaultCodeValue: I
10005
+ defaultCodeValue: F
10006
10006
  });
10007
- ae.language === null && (ae.value = I);
10008
- var oe = y + (N.match(/\n/g)?.length ?? 0), se = $p(ae, C, D, h, _, y, oe, S, T);
10009
- return /*#__PURE__*/ e.createElement(ee, F, /*#__PURE__*/ e.createElement(j, d, !_ && ne, O({
10007
+ I.language === null && (I.value = F);
10008
+ var oe = y + (N.match(/\n/g)?.length ?? 0), se = $p(I, C, D, h, _, y, oe, S, T);
10009
+ return /*#__PURE__*/ e.createElement(ee, ae, /*#__PURE__*/ e.createElement(j, d, !_ && ne, O({
10010
10010
  rows: se,
10011
10011
  stylesheet: s,
10012
10012
  useInlineStyles: p
@@ -25844,7 +25844,7 @@ var bb = 2e3, xb = (e, t = bb) => {
25844
25844
  icon: /* @__PURE__ */ R(_p, { size: m.SM }),
25845
25845
  "aria-label": o,
25846
25846
  variant: p.Primary,
25847
- size: F.Small,
25847
+ size: ae.Small,
25848
25848
  onClick: () => {
25849
25849
  cr(t, `code.${ar(e)}`);
25850
25850
  }
@@ -25852,7 +25852,7 @@ var bb = 2e3, xb = (e, t = bb) => {
25852
25852
  icon: R(f ? hp : gp, { size: m.SM }),
25853
25853
  "aria-label": f ? a : i,
25854
25854
  variant: p.Primary,
25855
- size: F.Small,
25855
+ size: ae.Small,
25856
25856
  className: f ? Sb.copiedIcon : void 0,
25857
25857
  onClick: h
25858
25858
  })]
@@ -26187,14 +26187,19 @@ i(({ tabs: e, activeTabId: t, onTabChange: n, styles: r }) => {
26187
26187
  let { tabClassName: i = "dial-tiny-semi-text" } = r?.typography ?? {};
26188
26188
  return /* @__PURE__ */ R("div", {
26189
26189
  className: "flex flex-nowrap gap-1",
26190
+ role: "tablist",
26190
26191
  children: e.map((e) => {
26191
26192
  let r = t === e.id;
26192
- return /* @__PURE__ */ R(re, {
26193
- label: e.label,
26194
- selected: r,
26195
- onClick: () => n(e.id),
26193
+ return /* @__PURE__ */ R("div", {
26194
+ role: "tab",
26196
26195
  "aria-selected": r,
26197
- className: G("box-border h-auto shrink-0 justify-center rounded-full p-2 text-center", i, Jb.tabContainer, r && Jb.tabActive)
26196
+ className: "contents",
26197
+ children: /* @__PURE__ */ R(re, {
26198
+ label: e.label,
26199
+ selected: r,
26200
+ onClick: () => n(e.id),
26201
+ className: G("box-border h-auto shrink-0 justify-center rounded-full p-2 text-center", i, Jb.tabContainer, r && Jb.tabActive)
26202
+ })
26198
26203
  }, e.id);
26199
26204
  })
26200
26205
  });
@@ -26207,20 +26212,14 @@ var Yb = (e) => /* @__PURE__ */ R(j, { ...e }), Xb = (e) => /* @__PURE__ */ R(_,
26207
26212
  appearance: f.Outlined
26208
26213
  }), Zb = (e) => /* @__PURE__ */ R(T, { ...e }), Qb = (e) => /* @__PURE__ */ R(k, { ...e }), $b = {
26209
26214
  [V.Model]: "Models",
26210
- [V.Application]: "Agents",
26211
26215
  [V.Agent]: "Agents",
26212
26216
  [V.Toolset]: "Toolsets",
26213
- [V.Guardrail]: "Guardrails",
26214
- [V.Skill]: "Skills",
26215
- [V.Mcp]: "MCP"
26217
+ [V.Skill]: "Skills"
26216
26218
  }, ex = [
26217
26219
  V.Model,
26218
- V.Application,
26219
26220
  V.Agent,
26220
26221
  V.Toolset,
26221
- V.Guardrail,
26222
- V.Skill,
26223
- V.Mcp
26222
+ V.Skill
26224
26223
  ], tx = (e, t) => {
26225
26224
  let n = {
26226
26225
  ...$b,
@@ -26232,20 +26231,14 @@ var Yb = (e) => /* @__PURE__ */ R(j, { ...e }), Xb = (e) => /* @__PURE__ */ R(_,
26232
26231
  }));
26233
26232
  }, nx = {
26234
26233
  [V.Model]: "#2764D9",
26235
- [V.Application]: "#059669",
26236
- [V.Agent]: "#7C3AED",
26234
+ [V.Agent]: "#059669",
26237
26235
  [V.Skill]: "#0E7490",
26238
- [V.Toolset]: "#B45309",
26239
- [V.Guardrail]: "#BE123C",
26240
- [V.Mcp]: "#0E7490"
26236
+ [V.Toolset]: "#B45309"
26241
26237
  }, rx = {
26242
26238
  [V.Model]: "rgba(39, 100, 217, 0.12)",
26243
- [V.Application]: "rgba(5, 150, 105, 0.12)",
26244
- [V.Agent]: "rgba(124, 58, 237, 0.12)",
26239
+ [V.Agent]: "rgba(5, 150, 105, 0.12)",
26245
26240
  [V.Skill]: "rgba(14, 116, 144, 0.12)",
26246
- [V.Toolset]: "rgba(180, 83, 9, 0.12)",
26247
- [V.Guardrail]: "rgba(190, 18, 60, 0.12)",
26248
- [V.Mcp]: "rgba(14, 116, 144, 0.12)"
26241
+ [V.Toolset]: "rgba(180, 83, 9, 0.12)"
26249
26242
  }, ix = (e) => {
26250
26243
  if (e.isFeatured) return tr({
26251
26244
  "--entity-color": nx[e.type],
@@ -26336,14 +26329,14 @@ var Yb = (e) => /* @__PURE__ */ R(j, { ...e }), Xb = (e) => /* @__PURE__ */ R(_,
26336
26329
  children: [/* @__PURE__ */ z("div", {
26337
26330
  className: "flex min-w-0 items-start gap-1 overflow-hidden",
26338
26331
  children: [/* @__PURE__ */ R("span", {
26339
- className: G("flex-3 min-w-0 shrink truncate", l),
26332
+ className: G("flex-3 min-w-0 truncate", l),
26340
26333
  children: o ? /* @__PURE__ */ R(yr, {
26341
26334
  text: n,
26342
26335
  query: o
26343
26336
  }) : n
26344
26337
  }), r != null && /* @__PURE__ */ R(S, {
26345
26338
  text: r,
26346
- className: G("flex-1", dx.numericText, u)
26339
+ className: G("flex-2", dx.numericText, u)
26347
26340
  })]
26348
26341
  }), m && i != null && /* @__PURE__ */ z("div", {
26349
26342
  className: "flex items-center gap-2",
@@ -26501,7 +26494,7 @@ var Yb = (e) => /* @__PURE__ */ R(j, { ...e }), Xb = (e) => /* @__PURE__ */ R(_,
26501
26494
  })
26502
26495
  }), /* @__PURE__ */ R(yx, {
26503
26496
  isStarred: h,
26504
- size: F.Small,
26497
+ size: ae.Small,
26505
26498
  onClick: C,
26506
26499
  ariaLabel: h ? c : s,
26507
26500
  className: G(lx.starBtn, !h && lx.emptyStarHidden)
@@ -26683,14 +26676,14 @@ var jx = {
26683
26676
  className: G("flex items-center gap-2", i),
26684
26677
  children: [
26685
26678
  /* @__PURE__ */ R("h3", {
26686
- className: G("min-w-0", n, jx.title),
26679
+ className: G("flex-3 min-w-0", n, jx.title),
26687
26680
  children: a ? /* @__PURE__ */ R(yr, {
26688
26681
  text: e,
26689
26682
  query: a
26690
26683
  }) : /* @__PURE__ */ R(S, { text: e })
26691
26684
  }),
26692
26685
  t != null && /* @__PURE__ */ R(S, {
26693
- className: G(r, jx.count),
26686
+ className: G("flex-2", r, jx.count),
26694
26687
  text: t
26695
26688
  }),
26696
26689
  o != null && /* @__PURE__ */ R("div", {
@@ -26758,7 +26751,7 @@ var jx = {
26758
26751
  O(t), ee(lt(u, ut(e, t)));
26759
26752
  let n = it(t);
26760
26753
  n && E(new Set(T).add(n));
26761
- }, ie = () => re(t ?? []), F = (e) => {
26754
+ }, ie = () => re(t ?? []), ae = (e) => {
26762
26755
  let t = at(e.path), n = [{
26763
26756
  key: "add-child",
26764
26757
  label: c,
@@ -26777,7 +26770,7 @@ var jx = {
26777
26770
  }),
26778
26771
  onClick: () => re(t.slice(0, -1))
26779
26772
  }), n;
26780
- }, I = (t) => D ? ct(t, ut(e, D), {
26773
+ }, F = (t) => D ? ct(t, ut(e, D), {
26781
26774
  empty: p,
26782
26775
  invalid: h,
26783
26776
  duplicate: g
@@ -26794,16 +26787,16 @@ var jx = {
26794
26787
  onItemClick: (e) => {
26795
26788
  n(t != null && it(t) === e.path ? void 0 : at(e.path));
26796
26789
  },
26797
- getContextMenuItems: F,
26790
+ getContextMenuItems: ae,
26798
26791
  createdFolderPath: ne,
26799
26792
  newFolderDefaultName: k,
26800
26793
  onCreateFolderSave: (e) => {
26801
26794
  if (!D) return;
26802
26795
  let t = e.trim();
26803
- I(e) || (r(D, t), n([...D, t])), O(null);
26796
+ F(e) || (r(D, t), n([...D, t])), O(null);
26804
26797
  },
26805
26798
  onCreateFolderCancel: () => O(null),
26806
- onRenameValidate: (e) => I(e),
26799
+ onRenameValidate: (e) => F(e),
26807
26800
  emptyStateTitle: j ? f.replace("{query}", i.trim()) : void 0
26808
26801
  }), /* @__PURE__ */ z("button", {
26809
26802
  type: "button",
@@ -26843,28 +26836,28 @@ var jx = {
26843
26836
  children: Qe(e.publishedAt)
26844
26837
  })]
26845
26838
  }, `${e.version}-${n}`)) }), Ix = ({ item: e, resource: t, history: n, isHistoryLoading: r = !1, hasHistoryError: i = !1, folderItems: a, selectedFolderPath: o, onSelectedFolderPathChange: s, onCreateFolder: c, expandedPaths: u, onExpandedPathsChange: f, loadingPaths: p, hasExistingPublicationInFolder: m, hasWriteAccess: h, isSubmitting: g, hasSubmitError: _ = !1, allowReplace: v = !0, texts: y = {} }) => {
26846
- let { currentVersionSuffix: b = "current", folderLabel: x = "Publish to folder", searchPlaceholder: S = "Search folders", clearSearchAriaLabel: C = "Clear search", historyLabel: w = "Versions history", replaceWarning: T = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: E = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: D = "Publishing failed. Please try again.", folderEmptyStateText: O, addSiblingFolderLabel: k, addChildFolderLabel: ee, createFolderEmptyNameError: A, createFolderInvalidNameError: j, createFolderDuplicateNameError: M, historyLoadingText: N, historyErrorText: te, rootFolderLabel: P = "Organization" } = y, [ne, ie] = d(""), F = o != null, oe = l(() => Xe({
26847
- hasSelectedFolder: F,
26839
+ let { currentVersionSuffix: b = "current", folderLabel: x = "Publish to folder", searchPlaceholder: S = "Search folders", clearSearchAriaLabel: C = "Clear search", historyLabel: w = "Versions history", replaceWarning: T = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: E = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: D = "Publishing failed. Please try again.", folderEmptyStateText: O, addSiblingFolderLabel: k, addChildFolderLabel: ee, createFolderEmptyNameError: A, createFolderInvalidNameError: j, createFolderDuplicateNameError: M, historyLoadingText: N, historyErrorText: te, rootFolderLabel: P = "Organization" } = y, [ne, ie] = d(""), ae = o != null, oe = l(() => Xe({
26840
+ hasSelectedFolder: ae,
26848
26841
  hasExistingPublicationInFolder: m,
26849
26842
  hasWriteAccess: h,
26850
26843
  isSubmitting: g,
26851
26844
  hasSubmitError: _,
26852
26845
  allowReplace: v
26853
26846
  }), [
26854
- F,
26847
+ ae,
26855
26848
  m,
26856
26849
  h,
26857
26850
  g,
26858
26851
  _,
26859
26852
  v
26860
- ]), se = F ? o[o.length - 1] ?? P : "", ce = l(() => {
26861
- if (!F) return [];
26853
+ ]), se = ae ? o[o.length - 1] ?? P : "", ce = l(() => {
26854
+ if (!ae) return [];
26862
26855
  let e = o.join("/");
26863
26856
  return n.filter((t) => t.folderPath.join("/") === e);
26864
26857
  }, [
26865
26858
  n,
26866
26859
  o,
26867
- F
26860
+ ae
26868
26861
  ]);
26869
26862
  return /* @__PURE__ */ z("div", {
26870
26863
  className: "flex flex-col gap-5",
@@ -26924,8 +26917,8 @@ var jx = {
26924
26917
  }),
26925
26918
  oe.calloutKind !== Ue.None && oe.calloutKind !== Ue.Info && /* @__PURE__ */ R("div", {
26926
26919
  className: "mt-3",
26927
- children: /* @__PURE__ */ R(I, {
26928
- type: ae.SectionMessage,
26920
+ children: /* @__PURE__ */ R(F, {
26921
+ type: I.SectionMessage,
26929
26922
  variant: Lx(oe.calloutKind),
26930
26923
  message: zx(oe.calloutKind, {
26931
26924
  replaceWarning: T,
@@ -26937,7 +26930,7 @@ var jx = {
26937
26930
  })
26938
26931
  })
26939
26932
  ] }),
26940
- F && e && /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("div", {
26933
+ ae && e && /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("div", {
26941
26934
  className: "dial-body-semi-text mb-2 text-primary",
26942
26935
  children: w
26943
26936
  }), /* @__PURE__ */ R(Fx, {
@@ -27054,7 +27047,7 @@ var jx = {
27054
27047
  matchReferenceWidth: !1,
27055
27048
  listClassName: "cp-dropdown-overlay",
27056
27049
  children: /* @__PURE__ */ R(ee, {
27057
- size: F.Small,
27050
+ size: ae.Small,
27058
27051
  label: f,
27059
27052
  iconAfter: /* @__PURE__ */ R(le, { size: m.SM })
27060
27053
  })
@@ -27112,7 +27105,7 @@ var jx = {
27112
27105
  matchReferenceWidth: !1,
27113
27106
  listClassName: "cp-dropdown-overlay",
27114
27107
  children: /* @__PURE__ */ R(ee, {
27115
- size: F.Small,
27108
+ size: ae.Small,
27116
27109
  label: b?.label,
27117
27110
  iconAfter: /* @__PURE__ */ R(le, { size: m.SM })
27118
27111
  })
@@ -27348,7 +27341,7 @@ var jx = {
27348
27341
  "aria-expanded": i
27349
27342
  })
27350
27343
  });
27351
- }, Qx = (e) => e.isMyApp === !0 && (e.type === V.Application || e.type === V.Toolset), $x = ({ item: e, onDelete: t, onDeleted: n, texts: r }) => {
27344
+ }, Qx = (e) => e.isMyApp === !0 && (e.type === V.Agent || e.type === V.Toolset), $x = ({ item: e, onDelete: t, onDeleted: n, texts: r }) => {
27352
27345
  let [i, o] = d(!1), s = a(async () => {
27353
27346
  o(!0);
27354
27347
  try {
@@ -27378,10 +27371,10 @@ var jx = {
27378
27371
  className: "sr-only",
27379
27372
  children: r?.deletingStatusLabel ?? "Deleting"
27380
27373
  })] }) : null;
27381
- }, eS = (e) => e.isMyApp === !0 && e.type !== V.Guardrail && e.type !== V.Mcp, tS = ({ item: e, onShare: t, shareOverlay: n, label: r = "Share" }) => {
27382
- let [i, o] = d(!1), s = a(() => {
27374
+ }, eS = (e) => e.isMyApp === !0, tS = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
27375
+ let [o, s] = d(!1), c = a(() => {
27383
27376
  if (n) {
27384
- o((e) => !e);
27377
+ s((e) => !e);
27385
27378
  return;
27386
27379
  }
27387
27380
  t?.(e);
@@ -27390,99 +27383,100 @@ var jx = {
27390
27383
  t,
27391
27384
  n
27392
27385
  ]);
27393
- if (!eS(e)) return null;
27394
- let c = /* @__PURE__ */ R(Xb, {
27395
- label: r,
27386
+ if (!eS(e) || r && !r(e)) return null;
27387
+ let l = /* @__PURE__ */ R(Xb, {
27388
+ label: i,
27396
27389
  iconBefore: /* @__PURE__ */ R(De, { size: m.MD }),
27397
27390
  iconAfter: /* @__PURE__ */ R(le, { size: m.MD }),
27398
- onClick: s,
27391
+ onClick: c,
27399
27392
  "aria-haspopup": n ? "menu" : void 0,
27400
- "aria-expanded": n ? i : void 0
27393
+ "aria-expanded": n ? o : void 0
27401
27394
  });
27402
27395
  return n ? /* @__PURE__ */ R(x, {
27403
27396
  placement: "bottom-end",
27404
27397
  matchReferenceWidth: !1,
27405
- open: i,
27406
- onOpenChange: o,
27398
+ open: o,
27399
+ onOpenChange: s,
27407
27400
  trigger: [],
27408
27401
  outsideClosable: !0,
27409
27402
  listClassName: "cp-dropdown-overlay",
27410
- renderOverlay: () => n(e, () => o(!1)),
27411
- children: c
27412
- }) : c;
27413
- }, nS = ({ item: e, onUseInChat: t, isPrimaryActionVisible: n, onShare: r, shareOverlay: i, connectOverlay: o, isConnectVisible: s, onEdit: c, onDelete: l, onCloseDetails: u, onLogin: d, onLogout: f, onToggleCredentials: p, onRequestLogout: h, texts: g, detailsStyles: _, isPublishVisible: v, onOpenPublish: y }) => {
27414
- let { nameClassName: b = "dial-body-semi-text text-primary", folderLabelClassName: x = "dial-tiny-text", folderLeafClassName: S = "dial-tiny-semi-text" } = _?.typography ?? {}, C = a(() => {
27403
+ renderOverlay: () => n(e, () => s(!1)),
27404
+ children: l
27405
+ }) : l;
27406
+ }, nS = ({ item: e, onUseInChat: t, isPrimaryActionVisible: n, onShare: r, shareOverlay: i, isShareVisible: o, connectOverlay: s, isConnectVisible: c, onEdit: l, onDelete: u, onCloseDetails: d, onLogin: f, onLogout: p, onToggleCredentials: h, onRequestLogout: g, texts: _, detailsStyles: v, isPublishVisible: y, onOpenPublish: b }) => {
27407
+ let { nameClassName: x = "dial-body-semi-text text-primary", folderLabelClassName: S = "dial-tiny-text", folderLeafClassName: C = "dial-tiny-semi-text" } = v?.typography ?? {}, w = a(() => {
27415
27408
  t?.(e);
27416
- }, [e, t]), w = a(() => {
27417
- c?.(e);
27418
- }, [e, c]), T = g?.hasPrimaryAction !== !1 && (n?.(e) ?? (e.type === V.Model || e.type === V.Application)), E = v?.(e) ?? (e.type === V.Model || e.type === V.Toolset || e.type === V.Application), D = !!c && !!e.isEditable, O = e.credentials != null && e.credentials.authenticationType !== Le.None ? ft(e.credentials) : void 0, k = O != null && (!!d || !!f), ee = a(() => {
27419
- O === Be.LogOut ? h?.() : p?.();
27409
+ }, [e, t]), T = a(() => {
27410
+ l?.(e);
27411
+ }, [e, l]), E = _?.hasPrimaryAction !== !1 && (n?.(e) ?? (e.type === V.Model || e.type === V.Agent)), D = y?.(e) ?? (e.type === V.Model || e.type === V.Toolset || e.type === V.Agent), O = !!l && !!e.isEditable, k = e.credentials != null && e.credentials.authenticationType !== Le.None ? ft(e.credentials) : void 0, ee = k != null && (!!f || !!p), A = a(() => {
27412
+ k === Be.LogOut ? g?.() : h?.();
27420
27413
  }, [
27421
- O,
27422
- h,
27423
- p
27424
- ]), A = {
27425
- [Be.ManageCredentials]: g?.manageCredentialsActionLabel ?? "Manage credentials",
27426
- [Be.LoginWithMyCreds]: g?.loginWithMyCredsActionLabel ?? "Login with my creds",
27427
- [Be.LogIn]: g?.loginActionLabel ?? "Log in",
27428
- [Be.LogOut]: g?.logoutActionLabel ?? "Log out"
27429
- }[O ?? Be.LogIn], j = {
27430
- [Be.ManageCredentials]: /* @__PURE__ */ R(B, { size: m.MD }),
27414
+ k,
27415
+ g,
27416
+ h
27417
+ ]), j = {
27418
+ [Be.ManageCredentials]: _?.manageCredentialsActionLabel ?? "Manage credentials",
27419
+ [Be.LoginWithMyCreds]: _?.loginWithMyCredsActionLabel ?? "Login with my creds",
27420
+ [Be.LogIn]: _?.loginActionLabel ?? "Log in",
27421
+ [Be.LogOut]: _?.logoutActionLabel ?? "Log out"
27422
+ }[k ?? Be.LogIn], M = {
27423
+ [Be.ManageCredentials]: /* @__PURE__ */ R(_e, { size: m.MD }),
27431
27424
  [Be.LoginWithMyCreds]: /* @__PURE__ */ R(ye, { size: m.MD }),
27432
27425
  [Be.LogIn]: /* @__PURE__ */ R(ye, { size: m.MD }),
27433
27426
  [Be.LogOut]: /* @__PURE__ */ R(be, { size: m.MD })
27434
- }[O ?? Be.LogIn];
27427
+ }[k ?? Be.LogIn];
27435
27428
  return /* @__PURE__ */ z("div", {
27436
27429
  className: "flex flex-col gap-3 px-6 py-4",
27437
27430
  children: [/* @__PURE__ */ R(Nx, {
27438
27431
  item: e,
27439
27432
  iconSize: 52,
27440
- nameClassName: b,
27441
- featuredLabel: g?.featuredLabel ?? "Featured",
27433
+ nameClassName: x,
27434
+ featuredLabel: _?.featuredLabel ?? "Featured",
27442
27435
  footer: e.folder.length > 0 ? /* @__PURE__ */ R(_x, {
27443
27436
  segments: e.folder,
27444
- labelClassName: x,
27445
- leafClassName: S
27437
+ labelClassName: S,
27438
+ leafClassName: C
27446
27439
  }) : void 0
27447
27440
  }), /* @__PURE__ */ z("div", {
27448
27441
  className: "flex flex-wrap items-center gap-2 ps-[60px]",
27449
27442
  children: [
27450
- T && /* @__PURE__ */ R(Yb, {
27451
- label: g?.primaryActionLabel ?? "Use in chat",
27443
+ E && /* @__PURE__ */ R(Yb, {
27444
+ label: _?.primaryActionLabel ?? "Use in chat",
27452
27445
  iconBefore: /* @__PURE__ */ R(Ce, { size: m.MD }),
27453
- onClick: C
27446
+ onClick: w
27454
27447
  }),
27455
- D && /* @__PURE__ */ R(Xb, {
27456
- label: g?.editActionLabel ?? "Edit",
27448
+ O && /* @__PURE__ */ R(Xb, {
27449
+ label: _?.editActionLabel ?? "Edit",
27457
27450
  iconBefore: /* @__PURE__ */ R(Se, { size: m.MD }),
27458
- onClick: w
27451
+ onClick: T
27459
27452
  }),
27460
27453
  /* @__PURE__ */ R(tS, {
27461
27454
  item: e,
27462
27455
  onShare: r,
27463
27456
  shareOverlay: i,
27464
- label: g?.shareLabel
27457
+ isShareVisible: o,
27458
+ label: _?.shareLabel
27465
27459
  }),
27466
27460
  /* @__PURE__ */ R($x, {
27467
27461
  item: e,
27468
- onDelete: l,
27469
- onDeleted: u,
27470
- texts: g
27462
+ onDelete: u,
27463
+ onDeleted: d,
27464
+ texts: _
27471
27465
  }),
27472
- E && /* @__PURE__ */ R(Xb, {
27473
- label: g?.publishLabel ?? "Publish",
27474
- onClick: y
27466
+ D && /* @__PURE__ */ R(Xb, {
27467
+ label: _?.publishLabel ?? "Publish",
27468
+ onClick: b
27475
27469
  }),
27476
- k && /* @__PURE__ */ R(Xb, {
27477
- label: A,
27478
- iconBefore: j,
27479
- onClick: ee
27470
+ ee && /* @__PURE__ */ R(Xb, {
27471
+ label: j,
27472
+ iconBefore: M,
27473
+ onClick: A
27480
27474
  }),
27481
27475
  /* @__PURE__ */ R(Zx, {
27482
27476
  item: e,
27483
- connectOverlay: o,
27484
- isConnectVisible: s,
27485
- label: g?.connectLabel
27477
+ connectOverlay: s,
27478
+ isConnectVisible: c,
27479
+ label: _?.connectLabel
27486
27480
  })
27487
27481
  ]
27488
27482
  })]
@@ -27740,34 +27734,34 @@ var jx = {
27740
27734
  })
27741
27735
  ]
27742
27736
  }, e.name))
27743
- }), xS = async () => void 0, SS = [], CS = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, onClose: i, onToggleFavorite: s, onUseInChat: c, isPrimaryActionVisible: u, onShare: f, isPublishVisible: p, getPublishHistory: m, publishFolderItems: h = SS, publishExpandedPaths: g, onPublishExpandedPathsChange: _, publishLoadingPaths: v, hasPublishWriteAccess: x, onPublish: S, onPublishSuccess: C, onCreatePublishFolder: w, publishTexts: T, shareOverlay: E, connectOverlay: D, isConnectVisible: O, onEdit: k, onDelete: ee, onLogin: A, onLogout: j, texts: M, styles: N }) => {
27744
- let { overviewSectionClassName: P = "dial-caption-text", overviewLabelClassName: ne = "dial-small-semi-text", overviewValueClassName: re = "dial-small-text", overviewValueTrueClassName: ie = "dial-small-text", credentialsStatusLabelClassName: F } = N?.typography ?? {}, [I, ae] = d(n), [oe, se] = d(""), [ce, le] = d(!1), [de, fe] = d([]), [pe, me] = d(!1), [he, ge] = d(!1);
27737
+ }), xS = async () => void 0, SS = [], CS = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, onClose: i, onToggleFavorite: s, onUseInChat: c, isPrimaryActionVisible: u, onShare: f, isPublishVisible: p, getPublishHistory: m, publishFolderItems: h = SS, publishExpandedPaths: g, onPublishExpandedPathsChange: _, publishLoadingPaths: v, hasPublishWriteAccess: x, onPublish: S, onPublishSuccess: C, onCreatePublishFolder: w, publishTexts: T, shareOverlay: E, isShareVisible: D, connectOverlay: O, isConnectVisible: k, onEdit: ee, onDelete: A, onLogin: j, onLogout: M, texts: N, styles: P }) => {
27738
+ let { overviewSectionClassName: ne = "dial-caption-text", overviewLabelClassName: re = "dial-small-semi-text", overviewValueClassName: ie = "dial-small-text", overviewValueTrueClassName: ae = "dial-small-text", credentialsStatusLabelClassName: F } = P?.typography ?? {}, [I, oe] = d(n), [se, ce] = d(""), [le, de] = d(!1), [fe, pe] = d([]), [me, he] = d(!1), [ge, _e] = d(!1);
27745
27739
  o(() => {
27746
- if (!ce || !m) return;
27740
+ if (!le || !m) return;
27747
27741
  let t = !1;
27748
- return me(!0), ge(!1), m(e).then((e) => {
27749
- t || fe(e);
27742
+ return he(!0), _e(!1), m(e).then((e) => {
27743
+ t || pe(e);
27750
27744
  }).catch(() => {
27751
- t || ge(!0);
27745
+ t || _e(!0);
27752
27746
  }).finally(() => {
27753
- t || me(!1);
27747
+ t || he(!1);
27754
27748
  }), () => {
27755
27749
  t = !0;
27756
27750
  };
27757
27751
  }, [
27758
- ce,
27752
+ le,
27759
27753
  m,
27760
27754
  e
27761
27755
  ]);
27762
27756
  let B = tt({
27763
27757
  item: e,
27764
- history: de,
27758
+ history: fe,
27765
27759
  folderItems: h,
27766
27760
  hasWriteAccess: x,
27767
27761
  onCreateFolder: w,
27768
27762
  onPublish: S ?? xS,
27769
27763
  onPublishSuccess: C
27770
- }), _e = l(() => Xe({
27764
+ }), ve = l(() => Xe({
27771
27765
  hasSelectedFolder: B.selectedFolderPath != null,
27772
27766
  hasExistingPublicationInFolder: B.hasExistingPublicationInFolder,
27773
27767
  hasWriteAccess: B.hasWriteAccess,
@@ -27779,21 +27773,21 @@ var jx = {
27779
27773
  B.hasWriteAccess,
27780
27774
  B.isSubmitting,
27781
27775
  B.hasSubmitError
27782
- ]), [ve, ye] = d(!1), [be, xe] = d(!1);
27776
+ ]), [ye, be] = d(!1), [xe, Se] = d(!1);
27783
27777
  o(() => {
27784
- ae(n);
27778
+ oe(n);
27785
27779
  }, [e.id, n]), o(() => {
27786
- se(Pe.About), le(!1), B.reset(), fe([]), ge(!1), ye(!1), xe(!1);
27780
+ ce(Pe.About), de(!1), B.reset(), pe([]), _e(!1), be(!1), Se(!1);
27787
27781
  }, [e.id]);
27788
- let Se = a(() => {
27789
- ye((e) => !e);
27790
- }, []), Ce = a(() => {
27791
- xe(!0);
27782
+ let Ce = a(() => {
27783
+ be((e) => !e);
27792
27784
  }, []), we = a(() => {
27793
- xe(!1);
27785
+ Se(!0);
27794
27786
  }, []), Te = a(() => {
27795
- xe(!1), e.credentials != null && j?.(e, { level: mt(e.credentials) });
27796
- }, [e, j]);
27787
+ Se(!1);
27788
+ }, []), Ee = a(() => {
27789
+ Se(!1), e.credentials != null && M?.(e, { level: mt(e.credentials) });
27790
+ }, [e, M]);
27797
27791
  o(() => {
27798
27792
  if (!t) return;
27799
27793
  let e = (e) => {
@@ -27801,47 +27795,47 @@ var jx = {
27801
27795
  };
27802
27796
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
27803
27797
  }, [t, i]);
27804
- let Ee = a(() => le(!0), []), De = a(() => {
27805
- le(!1), B.reset();
27806
- }, [B]), Oe = a(async () => {
27807
- await B.handleSubmit() && De();
27808
- }, [B, De]), ke = a(() => {
27798
+ let De = a(() => de(!0), []), Oe = a(() => {
27799
+ de(!1), B.reset();
27800
+ }, [B]), ke = a(async () => {
27801
+ await B.handleSubmit() && Oe();
27802
+ }, [B, Oe]), Ae = a(() => {
27809
27803
  let t = !I;
27810
- ae(t), s?.(e.id, t);
27804
+ oe(t), s?.(e.id, t);
27811
27805
  }, [
27812
27806
  I,
27813
27807
  e.id,
27814
27808
  s
27815
- ]), Ae = l(() => {
27809
+ ]), je = l(() => {
27816
27810
  let t = [{
27817
27811
  id: Pe.About,
27818
- label: M?.tabAboutLabel ?? "About"
27812
+ label: N?.tabAboutLabel ?? "About"
27819
27813
  }];
27820
27814
  return e.details?.overview != null && t.push({
27821
27815
  id: Pe.Overview,
27822
- label: M?.tabOverviewLabel ?? "Overview"
27816
+ label: N?.tabOverviewLabel ?? "Overview"
27823
27817
  }), e.details?.pricing != null && t.push({
27824
27818
  id: Pe.Pricing,
27825
- label: M?.tabPricingLabel ?? "Pricing"
27819
+ label: N?.tabPricingLabel ?? "Pricing"
27826
27820
  }), e.details?.limits != null && t.push({
27827
27821
  id: Pe.Limits,
27828
- label: M?.tabLimitsLabel ?? "Limits"
27822
+ label: N?.tabLimitsLabel ?? "Limits"
27829
27823
  }), e.details?.api != null && t.push({
27830
27824
  id: Pe.Api,
27831
- label: M?.tabApiLabel ?? "API"
27825
+ label: N?.tabApiLabel ?? "API"
27832
27826
  }), e.details?.tools != null && t.push({
27833
27827
  id: Pe.Tools,
27834
- label: M?.tabToolsLabel ?? "Tools"
27828
+ label: N?.tabToolsLabel ?? "Tools"
27835
27829
  }), t;
27836
- }, [e.details, M]);
27830
+ }, [e.details, N]);
27837
27831
  o(() => {
27838
- Ae.some((e) => e.id === oe) || se(Ae[0]?.id ?? "");
27832
+ je.some((e) => e.id === se) || ce(je[0]?.id ?? "");
27839
27833
  }, [
27840
27834
  e.id,
27841
- Ae,
27842
- oe
27835
+ je,
27836
+ se
27843
27837
  ]);
27844
- let je = M?.overviewYesLabel ?? "Yes", Me = M?.overviewNoLabel ?? "No", Ne = M?.ariaLabel ?? "Item details", Fe = M?.closeAriaLabel ?? "Close", V = I ? M?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : M?.addToFavoritesAriaLabel ?? "Add to favorites", Ie = M?.publishTitle ?? "Publish", Le = M?.backToDetailsAriaLabel ?? "Back";
27838
+ let Me = N?.overviewYesLabel ?? "Yes", Ne = N?.overviewNoLabel ?? "No", Fe = N?.ariaLabel ?? "Item details", V = N?.closeAriaLabel ?? "Close", Ie = I ? N?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : N?.addToFavoritesAriaLabel ?? "Add to favorites", Le = N?.publishTitle ?? "Publish", Re = N?.backToDetailsAriaLabel ?? "Back";
27845
27839
  return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R("div", {
27846
27840
  className: G("fixed inset-0 z-40 transition-opacity duration-300", Xx.backdrop, t ? "opacity-100" : "pointer-events-none opacity-0"),
27847
27841
  onClick: i,
@@ -27849,38 +27843,38 @@ var jx = {
27849
27843
  }), /* @__PURE__ */ z("div", {
27850
27844
  role: "dialog",
27851
27845
  "aria-modal": "true",
27852
- "aria-label": Ne,
27846
+ "aria-label": Fe,
27853
27847
  className: G("fixed inset-y-0 end-0 z-50 flex w-full flex-col overflow-hidden", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", Xx.panel, t ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
27854
27848
  children: [
27855
27849
  /* @__PURE__ */ z("div", {
27856
27850
  className: "flex shrink-0 items-center gap-2 px-[22px] py-3",
27857
- children: [ce ? /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(Gb, {
27851
+ children: [le ? /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(Gb, {
27858
27852
  icon: /* @__PURE__ */ R(ue, { className: "rtl:scale-x-[-1]" }),
27859
- "aria-label": Le,
27853
+ "aria-label": Re,
27860
27854
  disabled: B.isSubmitting,
27861
- onClick: De
27855
+ onClick: Oe
27862
27856
  }), /* @__PURE__ */ R("span", {
27863
27857
  className: "dial-body-semi-text flex-1 text-primary",
27864
- children: Ie
27858
+ children: Le
27865
27859
  })] }) : /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R("div", { className: "flex-1" }), /* @__PURE__ */ R(yx, {
27866
27860
  isStarred: I,
27867
- ariaLabel: V,
27868
- onClick: ke
27869
- })] }), !ce && /* @__PURE__ */ R(y, {
27861
+ ariaLabel: Ie,
27862
+ onClick: Ae
27863
+ })] }), !le && /* @__PURE__ */ R(y, {
27870
27864
  onClose: i,
27871
- ariaLabel: Fe
27865
+ ariaLabel: V
27872
27866
  })]
27873
27867
  }),
27874
27868
  /* @__PURE__ */ R("div", { className: G("shrink-0", Xx.divider) }),
27875
27869
  /* @__PURE__ */ R("div", {
27876
27870
  className: G("min-h-0 flex-1 overflow-y-auto", Xx.content),
27877
- children: ce ? /* @__PURE__ */ R("div", {
27871
+ children: le ? /* @__PURE__ */ R("div", {
27878
27872
  className: "p-[22px]",
27879
27873
  children: /* @__PURE__ */ R(Ix, {
27880
27874
  item: e,
27881
- history: de,
27882
- isHistoryLoading: pe,
27883
- hasHistoryError: he,
27875
+ history: fe,
27876
+ isHistoryLoading: me,
27877
+ hasHistoryError: ge,
27884
27878
  folderItems: B.folderItems,
27885
27879
  selectedFolderPath: B.selectedFolderPath,
27886
27880
  onSelectedFolderPathChange: B.setSelectedFolderPath,
@@ -27901,55 +27895,56 @@ var jx = {
27901
27895
  isPrimaryActionVisible: u,
27902
27896
  onShare: f,
27903
27897
  shareOverlay: E,
27904
- connectOverlay: D,
27905
- isConnectVisible: O,
27898
+ isShareVisible: D,
27899
+ connectOverlay: O,
27900
+ isConnectVisible: k,
27906
27901
  isPublishVisible: p,
27907
- onOpenPublish: Ee,
27908
- onEdit: k,
27909
- onDelete: ee,
27902
+ onOpenPublish: De,
27903
+ onEdit: ee,
27904
+ onDelete: A,
27910
27905
  onCloseDetails: i,
27911
- onLogin: A,
27912
- onLogout: j,
27913
- onToggleCredentials: Se,
27914
- onRequestLogout: Ce,
27915
- texts: M,
27916
- detailsStyles: N
27906
+ onLogin: j,
27907
+ onLogout: M,
27908
+ onToggleCredentials: Ce,
27909
+ onRequestLogout: we,
27910
+ texts: N,
27911
+ detailsStyles: P
27917
27912
  }),
27918
- ve && /* @__PURE__ */ R(Yx, {
27913
+ ye && /* @__PURE__ */ R(Yx, {
27919
27914
  item: e,
27920
- onLogin: A,
27921
- onLogout: j,
27922
- texts: M,
27915
+ onLogin: j,
27916
+ onLogout: M,
27917
+ texts: N,
27923
27918
  statusLabelClassName: F
27924
27919
  }),
27925
27920
  /* @__PURE__ */ R(b, {
27926
- open: be,
27927
- header: M?.logoutActionLabel ?? "Log out",
27928
- description: M?.logoutConfirmMessage ?? "Are you sure you want to log out?",
27929
- confirmLabel: M?.logoutActionLabel ?? "Log out",
27930
- onConfirm: Te,
27931
- onCancel: we,
27932
- onClose: we
27921
+ open: xe,
27922
+ header: N?.logoutActionLabel ?? "Log out",
27923
+ description: N?.logoutConfirmMessage ?? "Are you sure you want to log out?",
27924
+ confirmLabel: N?.logoutActionLabel ?? "Log out",
27925
+ onConfirm: Ee,
27926
+ onCancel: Te,
27927
+ onClose: Te
27933
27928
  }),
27934
27929
  /* @__PURE__ */ R("div", { className: Xx.divider }),
27935
27930
  /* @__PURE__ */ R(lS, {
27936
27931
  item: e,
27937
- texts: M,
27938
- detailsStyles: N
27932
+ texts: N,
27933
+ detailsStyles: P
27939
27934
  }),
27940
27935
  /* @__PURE__ */ z("div", {
27941
27936
  className: "flex items-center gap-2 px-[22px]",
27942
27937
  children: [/* @__PURE__ */ R(qb, {
27943
- tabs: Ae,
27944
- activeTabId: oe,
27945
- onTabChange: se,
27938
+ tabs: je,
27939
+ activeTabId: se,
27940
+ onTabChange: ce,
27946
27941
  styles: { colors: {
27947
27942
  activeTabClassName: "text-catalog-tab-active",
27948
27943
  inactiveTabClassName: "text-catalog-tab-inactive hover:text-catalog-tab-hover border-transparent"
27949
27944
  } }
27950
27945
  }), r && /* @__PURE__ */ R("div", {
27951
27946
  role: "status",
27952
- "aria-label": M?.detailsLoadingAriaLabel ?? "Loading details",
27947
+ "aria-label": N?.detailsLoadingAriaLabel ?? "Loading details",
27953
27948
  className: "shrink-0",
27954
27949
  children: /* @__PURE__ */ R(te, {
27955
27950
  showTitle: !1,
@@ -27963,49 +27958,49 @@ var jx = {
27963
27958
  })]
27964
27959
  }),
27965
27960
  /* @__PURE__ */ z("div", {
27966
- className: G(oe !== Pe.Overview && "px-[22px] py-4"),
27961
+ className: G(se !== Pe.Overview && "px-[22px] py-4"),
27967
27962
  children: [
27968
- oe === Pe.About && /* @__PURE__ */ R(aS, {
27963
+ se === Pe.About && /* @__PURE__ */ R(aS, {
27969
27964
  content: e.description,
27970
- detailsStyles: N
27965
+ detailsStyles: P
27971
27966
  }),
27972
- oe === Pe.Overview && /* @__PURE__ */ R(hS, {
27967
+ se === Pe.Overview && /* @__PURE__ */ R(hS, {
27973
27968
  sections: e.details?.overview?.sections,
27974
- sectionClassName: P,
27975
- labelClassName: ne,
27976
- valueClassName: re,
27977
- valueTrueClassName: ie,
27978
- yesLabel: je,
27979
- noLabel: Me
27969
+ sectionClassName: ne,
27970
+ labelClassName: re,
27971
+ valueClassName: ie,
27972
+ valueTrueClassName: ae,
27973
+ yesLabel: Me,
27974
+ noLabel: Ne
27980
27975
  }),
27981
- oe === Pe.Pricing && /* @__PURE__ */ R(gS, {
27976
+ se === Pe.Pricing && /* @__PURE__ */ R(gS, {
27982
27977
  pricing: e.details?.pricing,
27983
- pricesSectionLabel: M?.pricingPricesSectionLabel,
27984
- limitsSectionLabel: M?.pricingLimitsSectionLabel
27978
+ pricesSectionLabel: N?.pricingPricesSectionLabel,
27979
+ limitsSectionLabel: N?.pricingLimitsSectionLabel
27985
27980
  }),
27986
- oe === Pe.Limits && /* @__PURE__ */ R(mS, { limits: e.details?.limits }),
27987
- oe === Pe.Api && e.details?.api != null && /* @__PURE__ */ R(qx, {
27981
+ se === Pe.Limits && /* @__PURE__ */ R(mS, { limits: e.details?.limits }),
27982
+ se === Pe.Api && e.details?.api != null && /* @__PURE__ */ R(qx, {
27988
27983
  api: e.details.api,
27989
- resourceSectionLabel: M?.apiResourceSectionLabel,
27990
- snippetSectionLabel: M?.apiSnippetSectionLabel,
27991
- modelIdLabel: M?.apiModelIdLabel,
27992
- endpointLabel: M?.apiEndpointLabel,
27993
- requestExampleLabel: M?.apiRequestExampleLabel,
27994
- responseSchemaLabel: M?.apiResponseSchemaLabel,
27995
- copyAriaLabel: M?.copyCodeAriaLabel
27984
+ resourceSectionLabel: N?.apiResourceSectionLabel,
27985
+ snippetSectionLabel: N?.apiSnippetSectionLabel,
27986
+ modelIdLabel: N?.apiModelIdLabel,
27987
+ endpointLabel: N?.apiEndpointLabel,
27988
+ requestExampleLabel: N?.apiRequestExampleLabel,
27989
+ responseSchemaLabel: N?.apiResponseSchemaLabel,
27990
+ copyAriaLabel: N?.copyCodeAriaLabel
27996
27991
  }),
27997
- oe === Pe.Tools && /* @__PURE__ */ R(bS, { tools: e.details?.tools })
27992
+ se === Pe.Tools && /* @__PURE__ */ R(bS, { tools: e.details?.tools })
27998
27993
  ]
27999
27994
  })
28000
27995
  ] })
28001
27996
  }),
28002
- ce && /* @__PURE__ */ R(Dx, {
27997
+ le && /* @__PURE__ */ R(Dx, {
28003
27998
  version: e.version,
28004
27999
  hasExistingPublicationInFolder: B.hasExistingPublicationInFolder,
28005
- isSubmitDisabled: _e.isSubmitDisabled,
28006
- isSubmitLoading: _e.isSubmitLoading,
28007
- onCancel: De,
28008
- onSubmit: Oe,
28000
+ isSubmitDisabled: ve.isSubmitDisabled,
28001
+ isSubmitLoading: ve.isSubmitLoading,
28002
+ onCancel: Oe,
28003
+ onSubmit: ke,
28009
28004
  texts: T
28010
28005
  })
28011
28006
  ]
@@ -28073,7 +28068,7 @@ var jx = {
28073
28068
  }),
28074
28069
  /* @__PURE__ */ R(yx, {
28075
28070
  isStarred: h,
28076
- size: F.Small,
28071
+ size: ae.Small,
28077
28072
  onClick: y,
28078
28073
  ariaLabel: h ? u : l,
28079
28074
  className: "self-end"
@@ -28112,20 +28107,20 @@ var jx = {
28112
28107
  C,
28113
28108
  N
28114
28109
  ]);
28115
- let ie = u(/* @__PURE__ */ new Map()), F = u(C), I = u(T), ae = u(0), oe = u(!1);
28110
+ let ie = u(/* @__PURE__ */ new Map()), ae = u(C), F = u(T), I = u(0), oe = u(!1);
28116
28111
  return c(() => {
28117
28112
  if (!M.current || s) return;
28118
28113
  if (A.current && !oe.current) {
28119
28114
  let e = A.current;
28120
28115
  e.style.height = "", e.style.transition = "";
28121
28116
  }
28122
- let e = F.current !== C, t = I.current !== T;
28123
- F.current = C, I.current = T;
28117
+ let e = ae.current !== C, t = F.current !== T;
28118
+ ae.current = C, F.current = T;
28124
28119
  let n = M.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
28125
28120
  if (n.forEach((e) => {
28126
28121
  r.set(e.dataset.cardId, DS(e));
28127
28122
  }), !e && !t) {
28128
- let e = j.current, t = ae.current, i = 0;
28123
+ let e = j.current, t = I.current, i = 0;
28129
28124
  if (e) {
28130
28125
  let t = e.style.height;
28131
28126
  t && (e.style.height = ""), i = e.offsetHeight, t && (e.style.height = t);
@@ -28150,7 +28145,7 @@ var jx = {
28150
28145
  }
28151
28146
  if (ie.current = r, j.current) {
28152
28147
  let e = j.current, t = e.style.height ? parseFloat(e.style.height) : NaN;
28153
- ae.current = Number.isNaN(t) ? e.offsetHeight : t;
28148
+ I.current = Number.isNaN(t) ? e.offsetHeight : t;
28154
28149
  }
28155
28150
  }, [
28156
28151
  O,
@@ -28357,6 +28352,10 @@ var jx = {
28357
28352
  let { overflow: t, overflowY: n } = getComputedStyle(e);
28358
28353
  return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : MS(e.parentElement);
28359
28354
  }, NS = ({ items: e, query: t = "", ariaLabel: n = "Catalog", emptyStateTitle: r, styles: i, onToggleFavorite: a, onItemClick: s, stickyHeaderTop: c, selectedItemId: f, credentialsBadgeLoggedOutLabel: p }) => {
28355
+ if (e.length === 0) return /* @__PURE__ */ R("div", {
28356
+ className: "flex size-full flex-col items-center justify-center",
28357
+ children: /* @__PURE__ */ R(xr, { label: r ?? "No results" })
28358
+ });
28360
28359
  let m = i?.typography ?? {}, h = {
28361
28360
  "--cat-list-name-text": i?.colors?.nameText,
28362
28361
  ...c == null ? {} : { "--list-header-sticky-top": `${c}px` }
@@ -28634,7 +28633,7 @@ var jx = {
28634
28633
  "aria-pressed": r,
28635
28634
  onClick: () => n(e),
28636
28635
  className: G("flex min-h-11 min-w-11 items-center justify-center rounded-full px-3 py-1.5 transition-colors desktop:min-h-8 desktop:min-w-10", r ? "bg-layer-0 text-accent-primary shadow-sm" : "text-secondary hover:text-primary"),
28637
- children: e === He.Grid ? /* @__PURE__ */ R(_e, { size: m.SM }) : /* @__PURE__ */ R(ve, { size: m.SM })
28636
+ children: e === He.Grid ? /* @__PURE__ */ R(B, { size: m.SM }) : /* @__PURE__ */ R(ve, { size: m.SM })
28638
28637
  }, e);
28639
28638
  })
28640
28639
  }), f != null && f.length > 0 && /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R("div", {
@@ -28820,8 +28819,8 @@ var jx = {
28820
28819
  onClick: n,
28821
28820
  className: US.gradientBtn
28822
28821
  });
28823
- }, GS = ({ items: e, favorites: t, titles: n, onToggleFavorite: r, onUseInChat: i, isPrimaryActionVisible: s, onShare: c, isPublishVisible: f, getPublishHistory: p, publishFolderItems: m, publishExpandedPaths: h, onPublishExpandedPathsChange: g, publishLoadingPaths: _, hasPublishWriteAccess: v, onPublish: y, onPublishSuccess: b, onCreatePublishFolder: x, publishTexts: S, shareOverlay: C, connectOverlay: w, isConnectVisible: T, onFetchDetails: E, onEdit: D, onDelete: O, onLogin: k, onLogout: ee, onCreateClick: A, createOptions: j, hideCreateButton: M = !1, hidePageTitle: N = !1, selectedItemId: te, onCardClick: P, isLoading: re, styles: ie, detailsTexts: F, initialDetailsItemId: I, sortKey: ae, onSortChange: oe, filterTopics: se, onFilterTopicsChange: L, isMyAppsActive: ce, onMyAppsActiveChange: le }) => {
28824
- let { typography: ue } = ie ?? {}, de = ax(ie), fe = n?.pageTitle ?? "Catalog", pe = n?.createLabel ?? "Create", me = n?.favoritesTitle ?? "Your favorites", he = n?.browseTitle ?? "Browse", ge = n?.searchPlaceholder ?? "Search models, tools, agents…", B = n?.noResultsTitle ?? ((e) => `No results for "${e}"`), _e = n?.featuredLabel ?? "Featured", ve = n?.gridViewLabel ?? "Grid view", ye = n?.listViewLabel ?? "List view", be = n?.ariaLabel ?? "Catalog", xe = [
28822
+ }, GS = ({ items: e, favorites: t, titles: n, onToggleFavorite: r, onUseInChat: i, isPrimaryActionVisible: s, onShare: c, isPublishVisible: f, getPublishHistory: p, publishFolderItems: m, publishExpandedPaths: h, onPublishExpandedPathsChange: g, publishLoadingPaths: _, hasPublishWriteAccess: v, onPublish: y, onPublishSuccess: b, onCreatePublishFolder: x, publishTexts: S, shareOverlay: C, isShareVisible: w, connectOverlay: T, isConnectVisible: E, onFetchDetails: D, onEdit: O, onDelete: k, onLogin: ee, onLogout: A, onCreateClick: j, createOptions: M, hideCreateButton: N = !1, hidePageTitle: te = !1, initialViewMode: P = He.Grid, selectedItemId: re, onCardClick: ie, isLoading: ae, styles: F, detailsTexts: I, initialDetailsItemId: oe, sortKey: se, onSortChange: L, filterTopics: ce, onFilterTopicsChange: le, isMyAppsActive: ue, onMyAppsActiveChange: de }) => {
28823
+ let { typography: fe } = F ?? {}, pe = ax(F), me = n?.pageTitle ?? "Catalog", he = n?.createLabel ?? "Create", ge = n?.favoritesTitle ?? "Your favorites", _e = n?.browseTitle ?? "Browse", B = n?.searchPlaceholder ?? "Search models, tools, agents…", ve = n?.noResultsTitle ?? ((e) => `No results for "${e}"`), ye = n?.featuredLabel ?? "Featured", be = n?.gridViewLabel ?? "Grid view", xe = n?.listViewLabel ?? "List view", Se = n?.ariaLabel ?? "Catalog", Ce = [
28825
28824
  {
28826
28825
  value: Ie.RecentlyUpdated,
28827
28826
  label: n?.sortRecentlyUpdatedLabel ?? "Recently Updated"
@@ -28834,156 +28833,156 @@ var jx = {
28834
28833
  value: Ie.NameAZ,
28835
28834
  label: n?.sortNameAZLabel ?? "Name A-Z"
28836
28835
  }
28837
- ], [Se, Ce] = d(""), [we, Te] = d(He.Grid), [Ee, De] = d(!1), [Oe, ke] = d(Ie.RecentlyUpdated), [Ae, je] = d(/* @__PURE__ */ new Set()), [Me, Ne] = d(!1), Pe = ae ?? Oe, Fe = se ?? Ae, V = ce ?? Me, Le = a((e) => {
28836
+ ], [we, Te] = d(""), [Ee, De] = d(P), [Oe, ke] = d(P === He.List), [Ae, je] = d(Ie.RecentlyUpdated), [Me, Ne] = d(/* @__PURE__ */ new Set()), [Pe, Fe] = d(!1), V = se ?? Ae, Le = ce ?? Me, Re = ue ?? Pe, ze = a((e) => {
28838
28837
  let t = e;
28839
- ke(t), oe?.(t);
28840
- }, [oe]), Re = a((e) => {
28841
- je(e), L?.(e);
28842
- }, [L]), ze = a((e) => {
28838
+ je(t), L?.(t);
28839
+ }, [L]), Be = a((e) => {
28843
28840
  Ne(e), le?.(e);
28844
- }, [le]), Be = l(() => e.filter((e) => !e.isHidden), [e]), Ve = l(() => new Set(Be.flatMap((e) => e.topics)), [Be]), Ue = l(() => tx(Be, n?.tabLabels), [Be, n?.tabLabels]), We = Ue[0]?.id ?? "", [Ye, Xe] = d(We);
28841
+ }, [le]), Ve = a((e) => {
28842
+ Fe(e), de?.(e);
28843
+ }, [de]), Ue = l(() => e.filter((e) => !e.isHidden), [e]), We = l(() => new Set(Ue.flatMap((e) => e.topics)), [Ue]), Ye = l(() => tx(Ue, n?.tabLabels), [Ue, n?.tabLabels]), Xe = Ye[0]?.id ?? "", [Ze, Qe] = d(Xe);
28845
28844
  o(() => {
28846
- Xe((e) => e || We);
28847
- }, [We]);
28848
- let [Ze, Qe] = d(t.length > 0);
28845
+ Qe((e) => e || Xe);
28846
+ }, [Xe]);
28847
+ let [$e, et] = d(t.length > 0);
28849
28848
  o(() => {
28850
- t.length > 0 && !Ze && Qe(!0);
28851
- }, [t.length, Ze]);
28852
- let $e = a(() => {
28853
- Qe(!1);
28854
- }, []), et = Ze && t.length === 0, [tt, nt] = d(null), [rt, it] = d(!1), [at, ot] = d(void 0), [st, ct] = d(!1), lt = u(null), ut = a(async (e) => {
28855
- nt(e), ot(void 0), lt.current = e.id;
28849
+ t.length > 0 && !$e && et(!0);
28850
+ }, [t.length, $e]);
28851
+ let tt = a(() => {
28852
+ et(!1);
28853
+ }, []), nt = $e && t.length === 0, [rt, it] = d(null), [at, ot] = d(!1), [st, ct] = d(void 0), [lt, ut] = d(!1), dt = u(null), ft = a(async (e) => {
28854
+ it(e), ct(void 0), dt.current = e.id;
28856
28855
  let t = [];
28857
- E && (ct(!0), t.push((async () => {
28856
+ D && (ut(!0), t.push((async () => {
28858
28857
  try {
28859
- let t = await E(e);
28860
- lt.current === e.id && ot(t);
28858
+ let t = await D(e);
28859
+ dt.current === e.id && ct(t);
28861
28860
  } finally {
28862
- lt.current === e.id && ct(!1);
28861
+ dt.current === e.id && ut(!1);
28863
28862
  }
28864
28863
  })())), await Promise.all(t);
28865
- }, [E]), dt = u(null);
28864
+ }, [D]), pt = u(null);
28866
28865
  o(() => {
28867
- if (!I) {
28868
- dt.current = null;
28866
+ if (!oe) {
28867
+ pt.current = null;
28869
28868
  return;
28870
28869
  }
28871
- if (dt.current === I) return;
28872
- let t = e.find((e) => e.id === I);
28873
- t && (dt.current = I, ut(t));
28870
+ if (pt.current === oe) return;
28871
+ let t = e.find((e) => e.id === oe);
28872
+ t && (pt.current = oe, ft(t));
28874
28873
  }, [
28875
- I,
28874
+ oe,
28876
28875
  e,
28877
- ut
28876
+ ft
28878
28877
  ]);
28879
- let ft = a(async (e, t) => {
28880
- await k?.(e, t), await ut(e);
28881
- }, [k, ut]), pt = a(async (e, t) => {
28882
- await ee?.(e, t), await ut(e);
28883
- }, [ee, ut]), mt = a(() => {
28884
- it(!1), lt.current = null, setTimeout(() => {
28885
- nt(null), ot(void 0), ct(!1);
28878
+ let mt = a(async (e, t) => {
28879
+ await ee?.(e, t), await ft(e);
28880
+ }, [ee, ft]), ht = a(async (e, t) => {
28881
+ await A?.(e, t), await ft(e);
28882
+ }, [A, ft]), gt = a(() => {
28883
+ ot(!1), dt.current = null, setTimeout(() => {
28884
+ it(null), ct(void 0), ut(!1);
28886
28885
  }, 300);
28887
- }, []), ht = l(() => {
28888
- if (tt == null) return null;
28889
- if (at == null) return tt;
28890
- let { credentials: e, ...t } = at;
28886
+ }, []), _t = l(() => {
28887
+ if (rt == null) return null;
28888
+ if (st == null) return rt;
28889
+ let { credentials: e, ...t } = st;
28891
28890
  return {
28892
- ...tt,
28891
+ ...rt,
28893
28892
  details: t,
28894
- credentials: e ?? tt.credentials
28893
+ credentials: e ?? rt.credentials
28895
28894
  };
28896
- }, [tt, at]), gt = l(() => Je(Be, Pe), [Be, Pe]), _t = l(() => qe(gt, Se), [gt, Se]), vt = l(() => Fe.size > 0 ? Ge(_t, Fe) : _t, [_t, Fe]), yt = l(() => V ? Ke(vt) : vt, [vt, V]), bt = l(() => Ye ? yt.filter((e) => e.type === Ye) : yt, [yt, Ye]), xt = tt != null && t.some((e) => e.id === tt.id);
28895
+ }, [rt, st]), vt = l(() => Je(Ue, V), [Ue, V]), yt = l(() => qe(vt, we), [vt, we]), bt = l(() => Le.size > 0 ? Ge(yt, Le) : yt, [yt, Le]), xt = l(() => Re ? Ke(bt) : bt, [bt, Re]), St = l(() => Ze ? xt.filter((e) => e.type === Ze) : xt, [xt, Ze]), Ct = rt != null && t.some((e) => e.id === rt.id);
28897
28896
  o(() => {
28898
- if (tt == null) return;
28899
- let e = requestAnimationFrame(() => it(!0));
28897
+ if (rt == null) return;
28898
+ let e = requestAnimationFrame(() => ot(!0));
28900
28899
  return () => cancelAnimationFrame(e);
28901
- }, [tt]);
28902
- let St = a((e) => {
28903
- e === He.List && De(!0), Te(e);
28904
- }, []), Ct = Se ? B(Se) : "No items", wt = l(() => ({
28905
- noResultsTitle: Ct,
28906
- featuredLabel: _e,
28907
- credentialsBadgeLoggedOutLabel: F?.credentialsBadgeLoggedOutLabel
28900
+ }, [rt]);
28901
+ let wt = a((e) => {
28902
+ e === He.List && ke(!0), De(e);
28903
+ }, []), Tt = we ? ve(we) : "No items", Et = l(() => ({
28904
+ noResultsTitle: Tt,
28905
+ featuredLabel: ye,
28906
+ credentialsBadgeLoggedOutLabel: I?.credentialsBadgeLoggedOutLabel
28908
28907
  }), [
28909
- Ct,
28910
- _e,
28911
- F?.credentialsBadgeLoggedOutLabel
28908
+ Tt,
28909
+ ye,
28910
+ I?.credentialsBadgeLoggedOutLabel
28912
28911
  ]);
28913
- return re ? /* @__PURE__ */ R("div", {
28912
+ return ae ? /* @__PURE__ */ R("div", {
28914
28913
  className: "flex size-full min-h-0 flex-1 items-center justify-center",
28915
28914
  children: /* @__PURE__ */ R(ne, {})
28916
28915
  }) : /* @__PURE__ */ z("section", {
28917
- "aria-label": be,
28916
+ "aria-label": Se,
28918
28917
  className: G("flex size-full min-h-0 flex-1 flex-col", HS.root),
28919
- style: de,
28918
+ style: pe,
28920
28919
  children: [
28921
- (!N || !M) && /* @__PURE__ */ R("div", {
28920
+ (!te || !N) && /* @__PURE__ */ R("div", {
28922
28921
  className: G("shrink-0", HS.heading),
28923
28922
  children: /* @__PURE__ */ z("div", {
28924
28923
  className: "flex h-[64px] w-full items-center justify-between px-8",
28925
- children: [!N && /* @__PURE__ */ R("h1", {
28926
- className: G(ue?.pageHeadingFontClassName ?? "dial-display2-text", HS.headingTitle),
28927
- children: fe
28928
- }), !M && /* @__PURE__ */ R(WS, {
28929
- label: pe,
28930
- options: j,
28931
- onClick: A
28924
+ children: [!te && /* @__PURE__ */ R("h1", {
28925
+ className: G(fe?.pageHeadingFontClassName ?? "dial-display2-text", HS.headingTitle),
28926
+ children: me
28927
+ }), !N && /* @__PURE__ */ R(WS, {
28928
+ label: he,
28929
+ options: M,
28930
+ onClick: j
28932
28931
  })]
28933
28932
  })
28934
28933
  }),
28935
28934
  /* @__PURE__ */ z("div", {
28936
28935
  className: "flex min-h-0 flex-1 flex-col overflow-auto",
28937
28936
  children: [
28938
- Ze && /* @__PURE__ */ R("div", {
28937
+ $e && /* @__PURE__ */ R("div", {
28939
28938
  className: "w-full px-8",
28940
28939
  children: /* @__PURE__ */ R(OS, {
28941
28940
  items: t,
28942
28941
  totalCount: t.length,
28943
- title: me,
28942
+ title: ge,
28944
28943
  onToggleFavorite: r,
28945
- onItemClick: P ?? ut,
28946
- isLeaving: et,
28947
- onExitComplete: $e,
28948
- selectedItemId: te,
28949
- credentialsBadgeLoggedOutLabel: F?.credentialsBadgeLoggedOutLabel
28944
+ onItemClick: ie ?? ft,
28945
+ isLeaving: nt,
28946
+ onExitComplete: tt,
28947
+ selectedItemId: re,
28948
+ credentialsBadgeLoggedOutLabel: I?.credentialsBadgeLoggedOutLabel
28950
28949
  })
28951
28950
  }),
28952
28951
  /* @__PURE__ */ R("div", {
28953
28952
  className: "w-full px-4 pt-6",
28954
28953
  children: /* @__PURE__ */ R(VS, {
28955
- totalCount: yt.length,
28956
- viewMode: we,
28957
- onViewModeChange: St,
28958
- sortKey: Pe,
28959
- onSortChange: Le,
28960
- query: Se,
28961
- onQueryChange: Ce,
28962
- title: he,
28963
- searchPlaceholder: ge,
28964
- gridViewLabel: ve,
28965
- listViewLabel: ye,
28966
- sortOptions: xe,
28967
- filters: Fe,
28968
- onFiltersChange: Re,
28969
- filterValues: Ve,
28970
- isMyAppsActive: V,
28971
- onMyAppsChange: ze,
28954
+ totalCount: xt.length,
28955
+ viewMode: Ee,
28956
+ onViewModeChange: wt,
28957
+ sortKey: V,
28958
+ onSortChange: ze,
28959
+ query: we,
28960
+ onQueryChange: Te,
28961
+ title: _e,
28962
+ searchPlaceholder: B,
28963
+ gridViewLabel: be,
28964
+ listViewLabel: xe,
28965
+ sortOptions: Ce,
28966
+ filters: Le,
28967
+ onFiltersChange: Be,
28968
+ filterValues: We,
28969
+ isMyAppsActive: Re,
28970
+ onMyAppsChange: Ve,
28972
28971
  filterFromLabel: n?.filterFromLabel,
28973
28972
  filterMyAppsLabel: n?.filterMyAppsLabel,
28974
28973
  filterTopicsLabel: n?.filterTopicsLabel
28975
28974
  })
28976
28975
  }),
28977
- Ue.length > 0 && /* @__PURE__ */ R("div", {
28976
+ Ye.length > 0 && /* @__PURE__ */ R("div", {
28978
28977
  className: "px-8",
28979
28978
  children: /* @__PURE__ */ R(qb, {
28980
- tabs: Ue.map((e) => ({
28979
+ tabs: Ye.map((e) => ({
28981
28980
  id: e.id,
28982
28981
  label: typeof e.label == "string" ? e.label : String(e.label),
28983
- count: yt.filter((t) => t.type === e.id).length
28982
+ count: xt.filter((t) => t.type === e.id).length
28984
28983
  })),
28985
- activeTabId: Ye,
28986
- onTabChange: Xe,
28984
+ activeTabId: Ze,
28985
+ onTabChange: Qe,
28987
28986
  styles: { colors: {
28988
28987
  activeTabClassName: "text-catalog-tab-active",
28989
28988
  inactiveTabClassName: "text-catalog-tab-inactive hover:text-catalog-tab-hover border-transparent",
@@ -28993,40 +28992,40 @@ var jx = {
28993
28992
  })
28994
28993
  }),
28995
28994
  /* @__PURE__ */ z("div", {
28996
- className: G(bt.length > 0 ? "mx-auto min-h-full w-full max-w-[1180px] px-8 pt-6" : "min-h-0 flex-1", bt.length === 0 && we === He.List && "px-8 pt-6"),
28995
+ className: G(St.length > 0 ? "mx-auto min-h-full w-full max-w-[1180px] px-8 pt-6" : "min-h-0 flex-1", St.length === 0 && Ee === He.List && "px-8 pt-6"),
28997
28996
  children: [/* @__PURE__ */ R("div", {
28998
- className: G(bt.length > 0 ? "pb-8" : "size-full flex-1", we !== He.Grid && "hidden"),
28997
+ className: G(St.length > 0 ? "pb-8" : "size-full flex-1", Ee !== He.Grid && "hidden"),
28999
28998
  children: /* @__PURE__ */ R(Tx, {
29000
- items: bt,
29001
- query: Se,
28999
+ items: St,
29000
+ query: we,
29002
29001
  onToggleFavorite: r,
29003
- onItemClick: P ?? ut,
29004
- titles: wt,
29005
- selectedItemId: te
29002
+ onItemClick: ie ?? ft,
29003
+ titles: Et,
29004
+ selectedItemId: re
29006
29005
  })
29007
- }), Ee && /* @__PURE__ */ R("div", {
29008
- className: G("pb-8", we !== He.List && "hidden", bt.length === 0 && "h-full"),
29006
+ }), Oe && /* @__PURE__ */ R("div", {
29007
+ className: G("pb-8", Ee !== He.List && "hidden", St.length === 0 && "h-full"),
29009
29008
  children: /* @__PURE__ */ R(NS, {
29010
- items: bt,
29011
- query: Se,
29012
- ariaLabel: be,
29013
- emptyStateTitle: Ct,
29009
+ items: St,
29010
+ query: we,
29011
+ ariaLabel: Se,
29012
+ emptyStateTitle: Tt,
29014
29013
  onToggleFavorite: r,
29015
- onItemClick: P ?? ut,
29014
+ onItemClick: ie ?? ft,
29016
29015
  stickyHeaderTop: 0,
29017
- selectedItemId: te,
29018
- credentialsBadgeLoggedOutLabel: F?.credentialsBadgeLoggedOutLabel
29016
+ selectedItemId: re,
29017
+ credentialsBadgeLoggedOutLabel: I?.credentialsBadgeLoggedOutLabel
29019
29018
  })
29020
29019
  })]
29021
29020
  })
29022
29021
  ]
29023
29022
  }),
29024
- ht != null && /* @__PURE__ */ R(CS, {
29025
- item: ht,
29026
- isOpen: rt,
29027
- isStarred: xt,
29028
- isDetailsLoading: st,
29029
- onClose: mt,
29023
+ _t != null && /* @__PURE__ */ R(CS, {
29024
+ item: _t,
29025
+ isOpen: at,
29026
+ isStarred: Ct,
29027
+ isDetailsLoading: lt,
29028
+ onClose: gt,
29030
29029
  onToggleFavorite: r,
29031
29030
  onUseInChat: i,
29032
29031
  isPrimaryActionVisible: s,
@@ -29043,13 +29042,14 @@ var jx = {
29043
29042
  onCreatePublishFolder: x,
29044
29043
  publishTexts: S,
29045
29044
  shareOverlay: C,
29046
- connectOverlay: w,
29047
- isConnectVisible: T,
29048
- onEdit: D,
29049
- onDelete: O,
29050
- onLogin: ft,
29051
- onLogout: pt,
29052
- texts: F
29045
+ isShareVisible: w,
29046
+ connectOverlay: T,
29047
+ isConnectVisible: E,
29048
+ onEdit: O,
29049
+ onDelete: k,
29050
+ onLogin: mt,
29051
+ onLogout: ht,
29052
+ texts: I
29053
29053
  })
29054
29054
  ]
29055
29055
  });