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

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;
@@ -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
  })]
@@ -26501,7 +26501,7 @@ var Yb = (e) => /* @__PURE__ */ R(j, { ...e }), Xb = (e) => /* @__PURE__ */ R(_,
26501
26501
  })
26502
26502
  }), /* @__PURE__ */ R(yx, {
26503
26503
  isStarred: h,
26504
- size: F.Small,
26504
+ size: ae.Small,
26505
26505
  onClick: C,
26506
26506
  ariaLabel: h ? c : s,
26507
26507
  className: G(lx.starBtn, !h && lx.emptyStarHidden)
@@ -26758,7 +26758,7 @@ var jx = {
26758
26758
  O(t), ee(lt(u, ut(e, t)));
26759
26759
  let n = it(t);
26760
26760
  n && E(new Set(T).add(n));
26761
- }, ie = () => re(t ?? []), F = (e) => {
26761
+ }, ie = () => re(t ?? []), ae = (e) => {
26762
26762
  let t = at(e.path), n = [{
26763
26763
  key: "add-child",
26764
26764
  label: c,
@@ -26777,7 +26777,7 @@ var jx = {
26777
26777
  }),
26778
26778
  onClick: () => re(t.slice(0, -1))
26779
26779
  }), n;
26780
- }, I = (t) => D ? ct(t, ut(e, D), {
26780
+ }, F = (t) => D ? ct(t, ut(e, D), {
26781
26781
  empty: p,
26782
26782
  invalid: h,
26783
26783
  duplicate: g
@@ -26794,16 +26794,16 @@ var jx = {
26794
26794
  onItemClick: (e) => {
26795
26795
  n(t != null && it(t) === e.path ? void 0 : at(e.path));
26796
26796
  },
26797
- getContextMenuItems: F,
26797
+ getContextMenuItems: ae,
26798
26798
  createdFolderPath: ne,
26799
26799
  newFolderDefaultName: k,
26800
26800
  onCreateFolderSave: (e) => {
26801
26801
  if (!D) return;
26802
26802
  let t = e.trim();
26803
- I(e) || (r(D, t), n([...D, t])), O(null);
26803
+ F(e) || (r(D, t), n([...D, t])), O(null);
26804
26804
  },
26805
26805
  onCreateFolderCancel: () => O(null),
26806
- onRenameValidate: (e) => I(e),
26806
+ onRenameValidate: (e) => F(e),
26807
26807
  emptyStateTitle: j ? f.replace("{query}", i.trim()) : void 0
26808
26808
  }), /* @__PURE__ */ z("button", {
26809
26809
  type: "button",
@@ -26843,28 +26843,28 @@ var jx = {
26843
26843
  children: Qe(e.publishedAt)
26844
26844
  })]
26845
26845
  }, `${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,
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(""), ae = o != null, oe = l(() => Xe({
26847
+ hasSelectedFolder: ae,
26848
26848
  hasExistingPublicationInFolder: m,
26849
26849
  hasWriteAccess: h,
26850
26850
  isSubmitting: g,
26851
26851
  hasSubmitError: _,
26852
26852
  allowReplace: v
26853
26853
  }), [
26854
- F,
26854
+ ae,
26855
26855
  m,
26856
26856
  h,
26857
26857
  g,
26858
26858
  _,
26859
26859
  v
26860
- ]), se = F ? o[o.length - 1] ?? P : "", ce = l(() => {
26861
- if (!F) return [];
26860
+ ]), se = ae ? o[o.length - 1] ?? P : "", ce = l(() => {
26861
+ if (!ae) return [];
26862
26862
  let e = o.join("/");
26863
26863
  return n.filter((t) => t.folderPath.join("/") === e);
26864
26864
  }, [
26865
26865
  n,
26866
26866
  o,
26867
- F
26867
+ ae
26868
26868
  ]);
26869
26869
  return /* @__PURE__ */ z("div", {
26870
26870
  className: "flex flex-col gap-5",
@@ -26924,8 +26924,8 @@ var jx = {
26924
26924
  }),
26925
26925
  oe.calloutKind !== Ue.None && oe.calloutKind !== Ue.Info && /* @__PURE__ */ R("div", {
26926
26926
  className: "mt-3",
26927
- children: /* @__PURE__ */ R(I, {
26928
- type: ae.SectionMessage,
26927
+ children: /* @__PURE__ */ R(F, {
26928
+ type: I.SectionMessage,
26929
26929
  variant: Lx(oe.calloutKind),
26930
26930
  message: zx(oe.calloutKind, {
26931
26931
  replaceWarning: T,
@@ -26937,7 +26937,7 @@ var jx = {
26937
26937
  })
26938
26938
  })
26939
26939
  ] }),
26940
- F && e && /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("div", {
26940
+ ae && e && /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("div", {
26941
26941
  className: "dial-body-semi-text mb-2 text-primary",
26942
26942
  children: w
26943
26943
  }), /* @__PURE__ */ R(Fx, {
@@ -27054,7 +27054,7 @@ var jx = {
27054
27054
  matchReferenceWidth: !1,
27055
27055
  listClassName: "cp-dropdown-overlay",
27056
27056
  children: /* @__PURE__ */ R(ee, {
27057
- size: F.Small,
27057
+ size: ae.Small,
27058
27058
  label: f,
27059
27059
  iconAfter: /* @__PURE__ */ R(le, { size: m.SM })
27060
27060
  })
@@ -27112,7 +27112,7 @@ var jx = {
27112
27112
  matchReferenceWidth: !1,
27113
27113
  listClassName: "cp-dropdown-overlay",
27114
27114
  children: /* @__PURE__ */ R(ee, {
27115
- size: F.Small,
27115
+ size: ae.Small,
27116
27116
  label: b?.label,
27117
27117
  iconAfter: /* @__PURE__ */ R(le, { size: m.SM })
27118
27118
  })
@@ -27378,10 +27378,10 @@ var jx = {
27378
27378
  className: "sr-only",
27379
27379
  children: r?.deletingStatusLabel ?? "Deleting"
27380
27380
  })] }) : 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(() => {
27381
+ }, eS = (e) => e.isMyApp === !0 && e.type !== V.Guardrail && e.type !== V.Mcp, tS = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
27382
+ let [o, s] = d(!1), c = a(() => {
27383
27383
  if (n) {
27384
- o((e) => !e);
27384
+ s((e) => !e);
27385
27385
  return;
27386
27386
  }
27387
27387
  t?.(e);
@@ -27390,99 +27390,100 @@ var jx = {
27390
27390
  t,
27391
27391
  n
27392
27392
  ]);
27393
- if (!eS(e)) return null;
27394
- let c = /* @__PURE__ */ R(Xb, {
27395
- label: r,
27393
+ if (!eS(e) || r && !r(e)) return null;
27394
+ let l = /* @__PURE__ */ R(Xb, {
27395
+ label: i,
27396
27396
  iconBefore: /* @__PURE__ */ R(De, { size: m.MD }),
27397
27397
  iconAfter: /* @__PURE__ */ R(le, { size: m.MD }),
27398
- onClick: s,
27398
+ onClick: c,
27399
27399
  "aria-haspopup": n ? "menu" : void 0,
27400
- "aria-expanded": n ? i : void 0
27400
+ "aria-expanded": n ? o : void 0
27401
27401
  });
27402
27402
  return n ? /* @__PURE__ */ R(x, {
27403
27403
  placement: "bottom-end",
27404
27404
  matchReferenceWidth: !1,
27405
- open: i,
27406
- onOpenChange: o,
27405
+ open: o,
27406
+ onOpenChange: s,
27407
27407
  trigger: [],
27408
27408
  outsideClosable: !0,
27409
27409
  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(() => {
27410
+ renderOverlay: () => n(e, () => s(!1)),
27411
+ children: l
27412
+ }) : l;
27413
+ }, 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 }) => {
27414
+ 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
27415
  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?.();
27416
+ }, [e, t]), T = a(() => {
27417
+ l?.(e);
27418
+ }, [e, l]), E = _?.hasPrimaryAction !== !1 && (n?.(e) ?? (e.type === V.Model || e.type === V.Application)), D = y?.(e) ?? (e.type === V.Model || e.type === V.Toolset || e.type === V.Application), 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(() => {
27419
+ k === Be.LogOut ? g?.() : h?.();
27420
27420
  }, [
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 }),
27421
+ k,
27422
+ g,
27423
+ h
27424
+ ]), j = {
27425
+ [Be.ManageCredentials]: _?.manageCredentialsActionLabel ?? "Manage credentials",
27426
+ [Be.LoginWithMyCreds]: _?.loginWithMyCredsActionLabel ?? "Login with my creds",
27427
+ [Be.LogIn]: _?.loginActionLabel ?? "Log in",
27428
+ [Be.LogOut]: _?.logoutActionLabel ?? "Log out"
27429
+ }[k ?? Be.LogIn], M = {
27430
+ [Be.ManageCredentials]: /* @__PURE__ */ R(_e, { size: m.MD }),
27431
27431
  [Be.LoginWithMyCreds]: /* @__PURE__ */ R(ye, { size: m.MD }),
27432
27432
  [Be.LogIn]: /* @__PURE__ */ R(ye, { size: m.MD }),
27433
27433
  [Be.LogOut]: /* @__PURE__ */ R(be, { size: m.MD })
27434
- }[O ?? Be.LogIn];
27434
+ }[k ?? Be.LogIn];
27435
27435
  return /* @__PURE__ */ z("div", {
27436
27436
  className: "flex flex-col gap-3 px-6 py-4",
27437
27437
  children: [/* @__PURE__ */ R(Nx, {
27438
27438
  item: e,
27439
27439
  iconSize: 52,
27440
- nameClassName: b,
27441
- featuredLabel: g?.featuredLabel ?? "Featured",
27440
+ nameClassName: x,
27441
+ featuredLabel: _?.featuredLabel ?? "Featured",
27442
27442
  footer: e.folder.length > 0 ? /* @__PURE__ */ R(_x, {
27443
27443
  segments: e.folder,
27444
- labelClassName: x,
27445
- leafClassName: S
27444
+ labelClassName: S,
27445
+ leafClassName: C
27446
27446
  }) : void 0
27447
27447
  }), /* @__PURE__ */ z("div", {
27448
27448
  className: "flex flex-wrap items-center gap-2 ps-[60px]",
27449
27449
  children: [
27450
- T && /* @__PURE__ */ R(Yb, {
27451
- label: g?.primaryActionLabel ?? "Use in chat",
27450
+ E && /* @__PURE__ */ R(Yb, {
27451
+ label: _?.primaryActionLabel ?? "Use in chat",
27452
27452
  iconBefore: /* @__PURE__ */ R(Ce, { size: m.MD }),
27453
- onClick: C
27453
+ onClick: w
27454
27454
  }),
27455
- D && /* @__PURE__ */ R(Xb, {
27456
- label: g?.editActionLabel ?? "Edit",
27455
+ O && /* @__PURE__ */ R(Xb, {
27456
+ label: _?.editActionLabel ?? "Edit",
27457
27457
  iconBefore: /* @__PURE__ */ R(Se, { size: m.MD }),
27458
- onClick: w
27458
+ onClick: T
27459
27459
  }),
27460
27460
  /* @__PURE__ */ R(tS, {
27461
27461
  item: e,
27462
27462
  onShare: r,
27463
27463
  shareOverlay: i,
27464
- label: g?.shareLabel
27464
+ isShareVisible: o,
27465
+ label: _?.shareLabel
27465
27466
  }),
27466
27467
  /* @__PURE__ */ R($x, {
27467
27468
  item: e,
27468
- onDelete: l,
27469
- onDeleted: u,
27470
- texts: g
27469
+ onDelete: u,
27470
+ onDeleted: d,
27471
+ texts: _
27471
27472
  }),
27472
- E && /* @__PURE__ */ R(Xb, {
27473
- label: g?.publishLabel ?? "Publish",
27474
- onClick: y
27473
+ D && /* @__PURE__ */ R(Xb, {
27474
+ label: _?.publishLabel ?? "Publish",
27475
+ onClick: b
27475
27476
  }),
27476
- k && /* @__PURE__ */ R(Xb, {
27477
- label: A,
27478
- iconBefore: j,
27479
- onClick: ee
27477
+ ee && /* @__PURE__ */ R(Xb, {
27478
+ label: j,
27479
+ iconBefore: M,
27480
+ onClick: A
27480
27481
  }),
27481
27482
  /* @__PURE__ */ R(Zx, {
27482
27483
  item: e,
27483
- connectOverlay: o,
27484
- isConnectVisible: s,
27485
- label: g?.connectLabel
27484
+ connectOverlay: s,
27485
+ isConnectVisible: c,
27486
+ label: _?.connectLabel
27486
27487
  })
27487
27488
  ]
27488
27489
  })]
@@ -27740,34 +27741,34 @@ var jx = {
27740
27741
  })
27741
27742
  ]
27742
27743
  }, 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);
27744
+ }), 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 }) => {
27745
+ 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
27746
  o(() => {
27746
- if (!ce || !m) return;
27747
+ if (!le || !m) return;
27747
27748
  let t = !1;
27748
- return me(!0), ge(!1), m(e).then((e) => {
27749
- t || fe(e);
27749
+ return he(!0), _e(!1), m(e).then((e) => {
27750
+ t || pe(e);
27750
27751
  }).catch(() => {
27751
- t || ge(!0);
27752
+ t || _e(!0);
27752
27753
  }).finally(() => {
27753
- t || me(!1);
27754
+ t || he(!1);
27754
27755
  }), () => {
27755
27756
  t = !0;
27756
27757
  };
27757
27758
  }, [
27758
- ce,
27759
+ le,
27759
27760
  m,
27760
27761
  e
27761
27762
  ]);
27762
27763
  let B = tt({
27763
27764
  item: e,
27764
- history: de,
27765
+ history: fe,
27765
27766
  folderItems: h,
27766
27767
  hasWriteAccess: x,
27767
27768
  onCreateFolder: w,
27768
27769
  onPublish: S ?? xS,
27769
27770
  onPublishSuccess: C
27770
- }), _e = l(() => Xe({
27771
+ }), ve = l(() => Xe({
27771
27772
  hasSelectedFolder: B.selectedFolderPath != null,
27772
27773
  hasExistingPublicationInFolder: B.hasExistingPublicationInFolder,
27773
27774
  hasWriteAccess: B.hasWriteAccess,
@@ -27779,21 +27780,21 @@ var jx = {
27779
27780
  B.hasWriteAccess,
27780
27781
  B.isSubmitting,
27781
27782
  B.hasSubmitError
27782
- ]), [ve, ye] = d(!1), [be, xe] = d(!1);
27783
+ ]), [ye, be] = d(!1), [xe, Se] = d(!1);
27783
27784
  o(() => {
27784
- ae(n);
27785
+ oe(n);
27785
27786
  }, [e.id, n]), o(() => {
27786
- se(Pe.About), le(!1), B.reset(), fe([]), ge(!1), ye(!1), xe(!1);
27787
+ ce(Pe.About), de(!1), B.reset(), pe([]), _e(!1), be(!1), Se(!1);
27787
27788
  }, [e.id]);
27788
- let Se = a(() => {
27789
- ye((e) => !e);
27790
- }, []), Ce = a(() => {
27791
- xe(!0);
27789
+ let Ce = a(() => {
27790
+ be((e) => !e);
27792
27791
  }, []), we = a(() => {
27793
- xe(!1);
27792
+ Se(!0);
27794
27793
  }, []), Te = a(() => {
27795
- xe(!1), e.credentials != null && j?.(e, { level: mt(e.credentials) });
27796
- }, [e, j]);
27794
+ Se(!1);
27795
+ }, []), Ee = a(() => {
27796
+ Se(!1), e.credentials != null && M?.(e, { level: mt(e.credentials) });
27797
+ }, [e, M]);
27797
27798
  o(() => {
27798
27799
  if (!t) return;
27799
27800
  let e = (e) => {
@@ -27801,47 +27802,47 @@ var jx = {
27801
27802
  };
27802
27803
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
27803
27804
  }, [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(() => {
27805
+ let De = a(() => de(!0), []), Oe = a(() => {
27806
+ de(!1), B.reset();
27807
+ }, [B]), ke = a(async () => {
27808
+ await B.handleSubmit() && Oe();
27809
+ }, [B, Oe]), Ae = a(() => {
27809
27810
  let t = !I;
27810
- ae(t), s?.(e.id, t);
27811
+ oe(t), s?.(e.id, t);
27811
27812
  }, [
27812
27813
  I,
27813
27814
  e.id,
27814
27815
  s
27815
- ]), Ae = l(() => {
27816
+ ]), je = l(() => {
27816
27817
  let t = [{
27817
27818
  id: Pe.About,
27818
- label: M?.tabAboutLabel ?? "About"
27819
+ label: N?.tabAboutLabel ?? "About"
27819
27820
  }];
27820
27821
  return e.details?.overview != null && t.push({
27821
27822
  id: Pe.Overview,
27822
- label: M?.tabOverviewLabel ?? "Overview"
27823
+ label: N?.tabOverviewLabel ?? "Overview"
27823
27824
  }), e.details?.pricing != null && t.push({
27824
27825
  id: Pe.Pricing,
27825
- label: M?.tabPricingLabel ?? "Pricing"
27826
+ label: N?.tabPricingLabel ?? "Pricing"
27826
27827
  }), e.details?.limits != null && t.push({
27827
27828
  id: Pe.Limits,
27828
- label: M?.tabLimitsLabel ?? "Limits"
27829
+ label: N?.tabLimitsLabel ?? "Limits"
27829
27830
  }), e.details?.api != null && t.push({
27830
27831
  id: Pe.Api,
27831
- label: M?.tabApiLabel ?? "API"
27832
+ label: N?.tabApiLabel ?? "API"
27832
27833
  }), e.details?.tools != null && t.push({
27833
27834
  id: Pe.Tools,
27834
- label: M?.tabToolsLabel ?? "Tools"
27835
+ label: N?.tabToolsLabel ?? "Tools"
27835
27836
  }), t;
27836
- }, [e.details, M]);
27837
+ }, [e.details, N]);
27837
27838
  o(() => {
27838
- Ae.some((e) => e.id === oe) || se(Ae[0]?.id ?? "");
27839
+ je.some((e) => e.id === se) || ce(je[0]?.id ?? "");
27839
27840
  }, [
27840
27841
  e.id,
27841
- Ae,
27842
- oe
27842
+ je,
27843
+ se
27843
27844
  ]);
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";
27845
+ 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
27846
  return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R("div", {
27846
27847
  className: G("fixed inset-0 z-40 transition-opacity duration-300", Xx.backdrop, t ? "opacity-100" : "pointer-events-none opacity-0"),
27847
27848
  onClick: i,
@@ -27849,38 +27850,38 @@ var jx = {
27849
27850
  }), /* @__PURE__ */ z("div", {
27850
27851
  role: "dialog",
27851
27852
  "aria-modal": "true",
27852
- "aria-label": Ne,
27853
+ "aria-label": Fe,
27853
27854
  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
27855
  children: [
27855
27856
  /* @__PURE__ */ z("div", {
27856
27857
  className: "flex shrink-0 items-center gap-2 px-[22px] py-3",
27857
- children: [ce ? /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(Gb, {
27858
+ children: [le ? /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(Gb, {
27858
27859
  icon: /* @__PURE__ */ R(ue, { className: "rtl:scale-x-[-1]" }),
27859
- "aria-label": Le,
27860
+ "aria-label": Re,
27860
27861
  disabled: B.isSubmitting,
27861
- onClick: De
27862
+ onClick: Oe
27862
27863
  }), /* @__PURE__ */ R("span", {
27863
27864
  className: "dial-body-semi-text flex-1 text-primary",
27864
- children: Ie
27865
+ children: Le
27865
27866
  })] }) : /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R("div", { className: "flex-1" }), /* @__PURE__ */ R(yx, {
27866
27867
  isStarred: I,
27867
- ariaLabel: V,
27868
- onClick: ke
27869
- })] }), !ce && /* @__PURE__ */ R(y, {
27868
+ ariaLabel: Ie,
27869
+ onClick: Ae
27870
+ })] }), !le && /* @__PURE__ */ R(y, {
27870
27871
  onClose: i,
27871
- ariaLabel: Fe
27872
+ ariaLabel: V
27872
27873
  })]
27873
27874
  }),
27874
27875
  /* @__PURE__ */ R("div", { className: G("shrink-0", Xx.divider) }),
27875
27876
  /* @__PURE__ */ R("div", {
27876
27877
  className: G("min-h-0 flex-1 overflow-y-auto", Xx.content),
27877
- children: ce ? /* @__PURE__ */ R("div", {
27878
+ children: le ? /* @__PURE__ */ R("div", {
27878
27879
  className: "p-[22px]",
27879
27880
  children: /* @__PURE__ */ R(Ix, {
27880
27881
  item: e,
27881
- history: de,
27882
- isHistoryLoading: pe,
27883
- hasHistoryError: he,
27882
+ history: fe,
27883
+ isHistoryLoading: me,
27884
+ hasHistoryError: ge,
27884
27885
  folderItems: B.folderItems,
27885
27886
  selectedFolderPath: B.selectedFolderPath,
27886
27887
  onSelectedFolderPathChange: B.setSelectedFolderPath,
@@ -27901,55 +27902,56 @@ var jx = {
27901
27902
  isPrimaryActionVisible: u,
27902
27903
  onShare: f,
27903
27904
  shareOverlay: E,
27904
- connectOverlay: D,
27905
- isConnectVisible: O,
27905
+ isShareVisible: D,
27906
+ connectOverlay: O,
27907
+ isConnectVisible: k,
27906
27908
  isPublishVisible: p,
27907
- onOpenPublish: Ee,
27908
- onEdit: k,
27909
- onDelete: ee,
27909
+ onOpenPublish: De,
27910
+ onEdit: ee,
27911
+ onDelete: A,
27910
27912
  onCloseDetails: i,
27911
- onLogin: A,
27912
- onLogout: j,
27913
- onToggleCredentials: Se,
27914
- onRequestLogout: Ce,
27915
- texts: M,
27916
- detailsStyles: N
27913
+ onLogin: j,
27914
+ onLogout: M,
27915
+ onToggleCredentials: Ce,
27916
+ onRequestLogout: we,
27917
+ texts: N,
27918
+ detailsStyles: P
27917
27919
  }),
27918
- ve && /* @__PURE__ */ R(Yx, {
27920
+ ye && /* @__PURE__ */ R(Yx, {
27919
27921
  item: e,
27920
- onLogin: A,
27921
- onLogout: j,
27922
- texts: M,
27922
+ onLogin: j,
27923
+ onLogout: M,
27924
+ texts: N,
27923
27925
  statusLabelClassName: F
27924
27926
  }),
27925
27927
  /* @__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
27928
+ open: xe,
27929
+ header: N?.logoutActionLabel ?? "Log out",
27930
+ description: N?.logoutConfirmMessage ?? "Are you sure you want to log out?",
27931
+ confirmLabel: N?.logoutActionLabel ?? "Log out",
27932
+ onConfirm: Ee,
27933
+ onCancel: Te,
27934
+ onClose: Te
27933
27935
  }),
27934
27936
  /* @__PURE__ */ R("div", { className: Xx.divider }),
27935
27937
  /* @__PURE__ */ R(lS, {
27936
27938
  item: e,
27937
- texts: M,
27938
- detailsStyles: N
27939
+ texts: N,
27940
+ detailsStyles: P
27939
27941
  }),
27940
27942
  /* @__PURE__ */ z("div", {
27941
27943
  className: "flex items-center gap-2 px-[22px]",
27942
27944
  children: [/* @__PURE__ */ R(qb, {
27943
- tabs: Ae,
27944
- activeTabId: oe,
27945
- onTabChange: se,
27945
+ tabs: je,
27946
+ activeTabId: se,
27947
+ onTabChange: ce,
27946
27948
  styles: { colors: {
27947
27949
  activeTabClassName: "text-catalog-tab-active",
27948
27950
  inactiveTabClassName: "text-catalog-tab-inactive hover:text-catalog-tab-hover border-transparent"
27949
27951
  } }
27950
27952
  }), r && /* @__PURE__ */ R("div", {
27951
27953
  role: "status",
27952
- "aria-label": M?.detailsLoadingAriaLabel ?? "Loading details",
27954
+ "aria-label": N?.detailsLoadingAriaLabel ?? "Loading details",
27953
27955
  className: "shrink-0",
27954
27956
  children: /* @__PURE__ */ R(te, {
27955
27957
  showTitle: !1,
@@ -27963,49 +27965,49 @@ var jx = {
27963
27965
  })]
27964
27966
  }),
27965
27967
  /* @__PURE__ */ z("div", {
27966
- className: G(oe !== Pe.Overview && "px-[22px] py-4"),
27968
+ className: G(se !== Pe.Overview && "px-[22px] py-4"),
27967
27969
  children: [
27968
- oe === Pe.About && /* @__PURE__ */ R(aS, {
27970
+ se === Pe.About && /* @__PURE__ */ R(aS, {
27969
27971
  content: e.description,
27970
- detailsStyles: N
27972
+ detailsStyles: P
27971
27973
  }),
27972
- oe === Pe.Overview && /* @__PURE__ */ R(hS, {
27974
+ se === Pe.Overview && /* @__PURE__ */ R(hS, {
27973
27975
  sections: e.details?.overview?.sections,
27974
- sectionClassName: P,
27975
- labelClassName: ne,
27976
- valueClassName: re,
27977
- valueTrueClassName: ie,
27978
- yesLabel: je,
27979
- noLabel: Me
27976
+ sectionClassName: ne,
27977
+ labelClassName: re,
27978
+ valueClassName: ie,
27979
+ valueTrueClassName: ae,
27980
+ yesLabel: Me,
27981
+ noLabel: Ne
27980
27982
  }),
27981
- oe === Pe.Pricing && /* @__PURE__ */ R(gS, {
27983
+ se === Pe.Pricing && /* @__PURE__ */ R(gS, {
27982
27984
  pricing: e.details?.pricing,
27983
- pricesSectionLabel: M?.pricingPricesSectionLabel,
27984
- limitsSectionLabel: M?.pricingLimitsSectionLabel
27985
+ pricesSectionLabel: N?.pricingPricesSectionLabel,
27986
+ limitsSectionLabel: N?.pricingLimitsSectionLabel
27985
27987
  }),
27986
- oe === Pe.Limits && /* @__PURE__ */ R(mS, { limits: e.details?.limits }),
27987
- oe === Pe.Api && e.details?.api != null && /* @__PURE__ */ R(qx, {
27988
+ se === Pe.Limits && /* @__PURE__ */ R(mS, { limits: e.details?.limits }),
27989
+ se === Pe.Api && e.details?.api != null && /* @__PURE__ */ R(qx, {
27988
27990
  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
27991
+ resourceSectionLabel: N?.apiResourceSectionLabel,
27992
+ snippetSectionLabel: N?.apiSnippetSectionLabel,
27993
+ modelIdLabel: N?.apiModelIdLabel,
27994
+ endpointLabel: N?.apiEndpointLabel,
27995
+ requestExampleLabel: N?.apiRequestExampleLabel,
27996
+ responseSchemaLabel: N?.apiResponseSchemaLabel,
27997
+ copyAriaLabel: N?.copyCodeAriaLabel
27996
27998
  }),
27997
- oe === Pe.Tools && /* @__PURE__ */ R(bS, { tools: e.details?.tools })
27999
+ se === Pe.Tools && /* @__PURE__ */ R(bS, { tools: e.details?.tools })
27998
28000
  ]
27999
28001
  })
28000
28002
  ] })
28001
28003
  }),
28002
- ce && /* @__PURE__ */ R(Dx, {
28004
+ le && /* @__PURE__ */ R(Dx, {
28003
28005
  version: e.version,
28004
28006
  hasExistingPublicationInFolder: B.hasExistingPublicationInFolder,
28005
- isSubmitDisabled: _e.isSubmitDisabled,
28006
- isSubmitLoading: _e.isSubmitLoading,
28007
- onCancel: De,
28008
- onSubmit: Oe,
28007
+ isSubmitDisabled: ve.isSubmitDisabled,
28008
+ isSubmitLoading: ve.isSubmitLoading,
28009
+ onCancel: Oe,
28010
+ onSubmit: ke,
28009
28011
  texts: T
28010
28012
  })
28011
28013
  ]
@@ -28073,7 +28075,7 @@ var jx = {
28073
28075
  }),
28074
28076
  /* @__PURE__ */ R(yx, {
28075
28077
  isStarred: h,
28076
- size: F.Small,
28078
+ size: ae.Small,
28077
28079
  onClick: y,
28078
28080
  ariaLabel: h ? u : l,
28079
28081
  className: "self-end"
@@ -28112,20 +28114,20 @@ var jx = {
28112
28114
  C,
28113
28115
  N
28114
28116
  ]);
28115
- let ie = u(/* @__PURE__ */ new Map()), F = u(C), I = u(T), ae = u(0), oe = u(!1);
28117
+ let ie = u(/* @__PURE__ */ new Map()), ae = u(C), F = u(T), I = u(0), oe = u(!1);
28116
28118
  return c(() => {
28117
28119
  if (!M.current || s) return;
28118
28120
  if (A.current && !oe.current) {
28119
28121
  let e = A.current;
28120
28122
  e.style.height = "", e.style.transition = "";
28121
28123
  }
28122
- let e = F.current !== C, t = I.current !== T;
28123
- F.current = C, I.current = T;
28124
+ let e = ae.current !== C, t = F.current !== T;
28125
+ ae.current = C, F.current = T;
28124
28126
  let n = M.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
28125
28127
  if (n.forEach((e) => {
28126
28128
  r.set(e.dataset.cardId, DS(e));
28127
28129
  }), !e && !t) {
28128
- let e = j.current, t = ae.current, i = 0;
28130
+ let e = j.current, t = I.current, i = 0;
28129
28131
  if (e) {
28130
28132
  let t = e.style.height;
28131
28133
  t && (e.style.height = ""), i = e.offsetHeight, t && (e.style.height = t);
@@ -28150,7 +28152,7 @@ var jx = {
28150
28152
  }
28151
28153
  if (ie.current = r, j.current) {
28152
28154
  let e = j.current, t = e.style.height ? parseFloat(e.style.height) : NaN;
28153
- ae.current = Number.isNaN(t) ? e.offsetHeight : t;
28155
+ I.current = Number.isNaN(t) ? e.offsetHeight : t;
28154
28156
  }
28155
28157
  }, [
28156
28158
  O,
@@ -28634,7 +28636,7 @@ var jx = {
28634
28636
  "aria-pressed": r,
28635
28637
  onClick: () => n(e),
28636
28638
  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 })
28639
+ children: e === He.Grid ? /* @__PURE__ */ R(B, { size: m.SM }) : /* @__PURE__ */ R(ve, { size: m.SM })
28638
28640
  }, e);
28639
28641
  })
28640
28642
  }), f != null && f.length > 0 && /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R("div", {
@@ -28820,8 +28822,8 @@ var jx = {
28820
28822
  onClick: n,
28821
28823
  className: US.gradientBtn
28822
28824
  });
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 = [
28825
+ }, 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 }) => {
28826
+ 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
28827
  {
28826
28828
  value: Ie.RecentlyUpdated,
28827
28829
  label: n?.sortRecentlyUpdatedLabel ?? "Recently Updated"
@@ -28834,156 +28836,156 @@ var jx = {
28834
28836
  value: Ie.NameAZ,
28835
28837
  label: n?.sortNameAZLabel ?? "Name A-Z"
28836
28838
  }
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) => {
28839
+ ], [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
28840
  let t = e;
28839
- ke(t), oe?.(t);
28840
- }, [oe]), Re = a((e) => {
28841
- je(e), L?.(e);
28842
- }, [L]), ze = a((e) => {
28841
+ je(t), L?.(t);
28842
+ }, [L]), Be = a((e) => {
28843
28843
  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);
28844
+ }, [le]), Ve = a((e) => {
28845
+ Fe(e), de?.(e);
28846
+ }, [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
28847
  o(() => {
28846
- Xe((e) => e || We);
28847
- }, [We]);
28848
- let [Ze, Qe] = d(t.length > 0);
28848
+ Qe((e) => e || Xe);
28849
+ }, [Xe]);
28850
+ let [$e, et] = d(t.length > 0);
28849
28851
  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;
28852
+ t.length > 0 && !$e && et(!0);
28853
+ }, [t.length, $e]);
28854
+ let tt = a(() => {
28855
+ et(!1);
28856
+ }, []), 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) => {
28857
+ it(e), ct(void 0), dt.current = e.id;
28856
28858
  let t = [];
28857
- E && (ct(!0), t.push((async () => {
28859
+ D && (ut(!0), t.push((async () => {
28858
28860
  try {
28859
- let t = await E(e);
28860
- lt.current === e.id && ot(t);
28861
+ let t = await D(e);
28862
+ dt.current === e.id && ct(t);
28861
28863
  } finally {
28862
- lt.current === e.id && ct(!1);
28864
+ dt.current === e.id && ut(!1);
28863
28865
  }
28864
28866
  })())), await Promise.all(t);
28865
- }, [E]), dt = u(null);
28867
+ }, [D]), pt = u(null);
28866
28868
  o(() => {
28867
- if (!I) {
28868
- dt.current = null;
28869
+ if (!oe) {
28870
+ pt.current = null;
28869
28871
  return;
28870
28872
  }
28871
- if (dt.current === I) return;
28872
- let t = e.find((e) => e.id === I);
28873
- t && (dt.current = I, ut(t));
28873
+ if (pt.current === oe) return;
28874
+ let t = e.find((e) => e.id === oe);
28875
+ t && (pt.current = oe, ft(t));
28874
28876
  }, [
28875
- I,
28877
+ oe,
28876
28878
  e,
28877
- ut
28879
+ ft
28878
28880
  ]);
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);
28881
+ let mt = a(async (e, t) => {
28882
+ await ee?.(e, t), await ft(e);
28883
+ }, [ee, ft]), ht = a(async (e, t) => {
28884
+ await A?.(e, t), await ft(e);
28885
+ }, [A, ft]), gt = a(() => {
28886
+ ot(!1), dt.current = null, setTimeout(() => {
28887
+ it(null), ct(void 0), ut(!1);
28886
28888
  }, 300);
28887
- }, []), ht = l(() => {
28888
- if (tt == null) return null;
28889
- if (at == null) return tt;
28890
- let { credentials: e, ...t } = at;
28889
+ }, []), _t = l(() => {
28890
+ if (rt == null) return null;
28891
+ if (st == null) return rt;
28892
+ let { credentials: e, ...t } = st;
28891
28893
  return {
28892
- ...tt,
28894
+ ...rt,
28893
28895
  details: t,
28894
- credentials: e ?? tt.credentials
28896
+ credentials: e ?? rt.credentials
28895
28897
  };
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);
28898
+ }, [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
28899
  o(() => {
28898
- if (tt == null) return;
28899
- let e = requestAnimationFrame(() => it(!0));
28900
+ if (rt == null) return;
28901
+ let e = requestAnimationFrame(() => ot(!0));
28900
28902
  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
28903
+ }, [rt]);
28904
+ let wt = a((e) => {
28905
+ e === He.List && ke(!0), De(e);
28906
+ }, []), Tt = we ? ve(we) : "No items", Et = l(() => ({
28907
+ noResultsTitle: Tt,
28908
+ featuredLabel: ye,
28909
+ credentialsBadgeLoggedOutLabel: I?.credentialsBadgeLoggedOutLabel
28908
28910
  }), [
28909
- Ct,
28910
- _e,
28911
- F?.credentialsBadgeLoggedOutLabel
28911
+ Tt,
28912
+ ye,
28913
+ I?.credentialsBadgeLoggedOutLabel
28912
28914
  ]);
28913
- return re ? /* @__PURE__ */ R("div", {
28915
+ return ae ? /* @__PURE__ */ R("div", {
28914
28916
  className: "flex size-full min-h-0 flex-1 items-center justify-center",
28915
28917
  children: /* @__PURE__ */ R(ne, {})
28916
28918
  }) : /* @__PURE__ */ z("section", {
28917
- "aria-label": be,
28919
+ "aria-label": Se,
28918
28920
  className: G("flex size-full min-h-0 flex-1 flex-col", HS.root),
28919
- style: de,
28921
+ style: pe,
28920
28922
  children: [
28921
- (!N || !M) && /* @__PURE__ */ R("div", {
28923
+ (!te || !N) && /* @__PURE__ */ R("div", {
28922
28924
  className: G("shrink-0", HS.heading),
28923
28925
  children: /* @__PURE__ */ z("div", {
28924
28926
  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
28927
+ children: [!te && /* @__PURE__ */ R("h1", {
28928
+ className: G(fe?.pageHeadingFontClassName ?? "dial-display2-text", HS.headingTitle),
28929
+ children: me
28930
+ }), !N && /* @__PURE__ */ R(WS, {
28931
+ label: he,
28932
+ options: M,
28933
+ onClick: j
28932
28934
  })]
28933
28935
  })
28934
28936
  }),
28935
28937
  /* @__PURE__ */ z("div", {
28936
28938
  className: "flex min-h-0 flex-1 flex-col overflow-auto",
28937
28939
  children: [
28938
- Ze && /* @__PURE__ */ R("div", {
28940
+ $e && /* @__PURE__ */ R("div", {
28939
28941
  className: "w-full px-8",
28940
28942
  children: /* @__PURE__ */ R(OS, {
28941
28943
  items: t,
28942
28944
  totalCount: t.length,
28943
- title: me,
28945
+ title: ge,
28944
28946
  onToggleFavorite: r,
28945
- onItemClick: P ?? ut,
28946
- isLeaving: et,
28947
- onExitComplete: $e,
28948
- selectedItemId: te,
28949
- credentialsBadgeLoggedOutLabel: F?.credentialsBadgeLoggedOutLabel
28947
+ onItemClick: ie ?? ft,
28948
+ isLeaving: nt,
28949
+ onExitComplete: tt,
28950
+ selectedItemId: re,
28951
+ credentialsBadgeLoggedOutLabel: I?.credentialsBadgeLoggedOutLabel
28950
28952
  })
28951
28953
  }),
28952
28954
  /* @__PURE__ */ R("div", {
28953
28955
  className: "w-full px-4 pt-6",
28954
28956
  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,
28957
+ totalCount: xt.length,
28958
+ viewMode: Ee,
28959
+ onViewModeChange: wt,
28960
+ sortKey: V,
28961
+ onSortChange: ze,
28962
+ query: we,
28963
+ onQueryChange: Te,
28964
+ title: _e,
28965
+ searchPlaceholder: B,
28966
+ gridViewLabel: be,
28967
+ listViewLabel: xe,
28968
+ sortOptions: Ce,
28969
+ filters: Le,
28970
+ onFiltersChange: Be,
28971
+ filterValues: We,
28972
+ isMyAppsActive: Re,
28973
+ onMyAppsChange: Ve,
28972
28974
  filterFromLabel: n?.filterFromLabel,
28973
28975
  filterMyAppsLabel: n?.filterMyAppsLabel,
28974
28976
  filterTopicsLabel: n?.filterTopicsLabel
28975
28977
  })
28976
28978
  }),
28977
- Ue.length > 0 && /* @__PURE__ */ R("div", {
28979
+ Ye.length > 0 && /* @__PURE__ */ R("div", {
28978
28980
  className: "px-8",
28979
28981
  children: /* @__PURE__ */ R(qb, {
28980
- tabs: Ue.map((e) => ({
28982
+ tabs: Ye.map((e) => ({
28981
28983
  id: e.id,
28982
28984
  label: typeof e.label == "string" ? e.label : String(e.label),
28983
- count: yt.filter((t) => t.type === e.id).length
28985
+ count: xt.filter((t) => t.type === e.id).length
28984
28986
  })),
28985
- activeTabId: Ye,
28986
- onTabChange: Xe,
28987
+ activeTabId: Ze,
28988
+ onTabChange: Qe,
28987
28989
  styles: { colors: {
28988
28990
  activeTabClassName: "text-catalog-tab-active",
28989
28991
  inactiveTabClassName: "text-catalog-tab-inactive hover:text-catalog-tab-hover border-transparent",
@@ -28993,40 +28995,40 @@ var jx = {
28993
28995
  })
28994
28996
  }),
28995
28997
  /* @__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"),
28998
+ 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
28999
  children: [/* @__PURE__ */ R("div", {
28998
- className: G(bt.length > 0 ? "pb-8" : "size-full flex-1", we !== He.Grid && "hidden"),
29000
+ className: G(St.length > 0 ? "pb-8" : "size-full flex-1", Ee !== He.Grid && "hidden"),
28999
29001
  children: /* @__PURE__ */ R(Tx, {
29000
- items: bt,
29001
- query: Se,
29002
+ items: St,
29003
+ query: we,
29002
29004
  onToggleFavorite: r,
29003
- onItemClick: P ?? ut,
29004
- titles: wt,
29005
- selectedItemId: te
29005
+ onItemClick: ie ?? ft,
29006
+ titles: Et,
29007
+ selectedItemId: re
29006
29008
  })
29007
- }), Ee && /* @__PURE__ */ R("div", {
29008
- className: G("pb-8", we !== He.List && "hidden", bt.length === 0 && "h-full"),
29009
+ }), Oe && /* @__PURE__ */ R("div", {
29010
+ className: G("pb-8", Ee !== He.List && "hidden", St.length === 0 && "h-full"),
29009
29011
  children: /* @__PURE__ */ R(NS, {
29010
- items: bt,
29011
- query: Se,
29012
- ariaLabel: be,
29013
- emptyStateTitle: Ct,
29012
+ items: St,
29013
+ query: we,
29014
+ ariaLabel: Se,
29015
+ emptyStateTitle: Tt,
29014
29016
  onToggleFavorite: r,
29015
- onItemClick: P ?? ut,
29017
+ onItemClick: ie ?? ft,
29016
29018
  stickyHeaderTop: 0,
29017
- selectedItemId: te,
29018
- credentialsBadgeLoggedOutLabel: F?.credentialsBadgeLoggedOutLabel
29019
+ selectedItemId: re,
29020
+ credentialsBadgeLoggedOutLabel: I?.credentialsBadgeLoggedOutLabel
29019
29021
  })
29020
29022
  })]
29021
29023
  })
29022
29024
  ]
29023
29025
  }),
29024
- ht != null && /* @__PURE__ */ R(CS, {
29025
- item: ht,
29026
- isOpen: rt,
29027
- isStarred: xt,
29028
- isDetailsLoading: st,
29029
- onClose: mt,
29026
+ _t != null && /* @__PURE__ */ R(CS, {
29027
+ item: _t,
29028
+ isOpen: at,
29029
+ isStarred: Ct,
29030
+ isDetailsLoading: lt,
29031
+ onClose: gt,
29030
29032
  onToggleFavorite: r,
29031
29033
  onUseInChat: i,
29032
29034
  isPrimaryActionVisible: s,
@@ -29043,13 +29045,14 @@ var jx = {
29043
29045
  onCreatePublishFolder: x,
29044
29046
  publishTexts: S,
29045
29047
  shareOverlay: C,
29046
- connectOverlay: w,
29047
- isConnectVisible: T,
29048
- onEdit: D,
29049
- onDelete: O,
29050
- onLogin: ft,
29051
- onLogout: pt,
29052
- texts: F
29048
+ isShareVisible: w,
29049
+ connectOverlay: T,
29050
+ isConnectVisible: E,
29051
+ onEdit: O,
29052
+ onDelete: k,
29053
+ onLogin: mt,
29054
+ onLogout: ht,
29055
+ texts: I
29053
29056
  })
29054
29057
  ]
29055
29058
  });