@epam/ai-dial-catalog 1.3.0-dev.103 → 1.3.0-dev.106

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Tools.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/TabsContent/Tools/Tools.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAqB,MAAM,OAAO,CAAC;AAC9C,OAAO,KAAK,EACV,gBAAgB,EAEhB,WAAW,EACZ,MAAM,sCAAsC,CAAC;AAqB9C,yBAAyB;AACzB,MAAM,WAAW,UAAU;IACzB,4BAA4B;IAC5B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,8EAA8E;IAC9E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wEAAwE;IACxE,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,6EAA6E;IAC7E,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,oEAAoE;IACpE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mFAAmF;IACnF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gGAAgG;IAChG,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;CAC/B;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAmIhC,CAAC"}
1
+ {"version":3,"file":"Tools.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/TabsContent/Tools/Tools.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAqB,MAAM,OAAO,CAAC;AAC9C,OAAO,KAAK,EACV,gBAAgB,EAEhB,WAAW,EACZ,MAAM,sCAAsC,CAAC;AAwB9C,yBAAyB;AACzB,MAAM,WAAW,UAAU;IACzB,4BAA4B;IAC5B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,8EAA8E;IAC9E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wEAAwE;IACxE,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,6EAA6E;IAC7E,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,oEAAoE;IACpE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mFAAmF;IACnF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gGAAgG;IAChG,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;CAC/B;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CA2IhC,CAAC"}
package/index.js CHANGED
@@ -2073,13 +2073,13 @@ var At = /* @__PURE__ */ function(e) {
2073
2073
  searchClearLabel: "Clear search",
2074
2074
  toolCount: (e) => `${e} tools`,
2075
2075
  noResults: "No results found"
2076
- }, Nr = (e, t) => e.name.toLowerCase().includes(t) || (e.description?.toLowerCase().includes(t) ?? !1), Pr = ({ tools: e, toolNameClassName: t = "dial-small-semi-text", descriptionClassName: n = "dial-small-text", tableHeadingClassName: r = "dial-caption-text", tableCellClassName: i = "dial-tiny-text", countClassName: a = "dial-tiny-text", labels: o }) => {
2076
+ }, Nr = 6, Pr = (e, t) => e.name.toLowerCase().includes(t) || (e.description?.toLowerCase().includes(t) ?? !1), Fr = ({ tools: e, toolNameClassName: t = "dial-small-semi-text", descriptionClassName: n = "dial-small-text", tableHeadingClassName: r = "dial-caption-text", tableCellClassName: i = "dial-tiny-text", countClassName: a = "dial-tiny-text", labels: o }) => {
2077
2077
  let s = {
2078
2078
  ...Mr,
2079
2079
  ...o
2080
- }, [c, l] = z(""), u = L(() => {
2080
+ }, [c, l] = z(""), u = c.trim(), d = L(() => {
2081
2081
  let t = c.trim().toLowerCase(), n = e?.tools ?? [];
2082
- return t === "" ? n : n.filter((e) => Nr(e, t));
2082
+ return t === "" ? n : n.filter((e) => Pr(e, t));
2083
2083
  }, [e, c]);
2084
2084
  return e == null ? null : /* @__PURE__ */ Y("div", {
2085
2085
  className: "flex flex-col",
@@ -2096,21 +2096,28 @@ var At = /* @__PURE__ */ function(e) {
2096
2096
  role: "status",
2097
2097
  "aria-live": "polite",
2098
2098
  className: N(a, jr.count),
2099
- children: s.toolCount(u.length)
2099
+ children: s.toolCount(d.length)
2100
2100
  })]
2101
2101
  }),
2102
- u.length === 0 && c.trim() !== "" && /* @__PURE__ */ J(ae, { label: s.noResults }),
2103
- u.map((e, a) => /* @__PURE__ */ Y("div", {
2102
+ d.length === 0 && c.trim() !== "" && /* @__PURE__ */ J(ae, { label: s.noResults }),
2103
+ d.map((e, a) => /* @__PURE__ */ Y("div", {
2104
2104
  className: N("flex flex-col gap-3 px-[22px] py-4", a > 0 ? jr.divider : void 0),
2105
2105
  children: [
2106
2106
  /* @__PURE__ */ Y("div", {
2107
2107
  className: "flex flex-col gap-1",
2108
2108
  children: [/* @__PURE__ */ J("span", {
2109
2109
  className: t,
2110
- children: e.name
2110
+ children: /* @__PURE__ */ J(Ae, {
2111
+ text: e.name,
2112
+ query: u
2113
+ })
2111
2114
  }), e.description != null && /* @__PURE__ */ J("p", {
2112
2115
  className: N("m-0", n, jr.description),
2113
- children: e.description
2116
+ children: /* @__PURE__ */ J(Ae, {
2117
+ text: e.description,
2118
+ query: u,
2119
+ maxLines: Nr
2120
+ })
2114
2121
  })]
2115
2122
  }),
2116
2123
  e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ J(Ar, {
@@ -2147,23 +2154,23 @@ var At = /* @__PURE__ */ function(e) {
2147
2154
  }, e.name))
2148
2155
  ]
2149
2156
  });
2150
- }, Fr = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), Ir = !1, Lr = async () => void 0, Rr = [], zr = [], Br = [
2157
+ }, Ir = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), Lr = !1, Rr = async () => void 0, zr = [], Br = [], Vr = [
2151
2158
  "All shared configurations will be lost",
2152
2159
  "Users who rely on it will lose access",
2153
2160
  "Cannot be undone"
2154
- ], Vr = [
2161
+ ], Hr = [
2155
2162
  "You will lose access to this item",
2156
2163
  "Other people keep their access",
2157
2164
  "You will need a new invitation to get it back"
2158
- ], Hr = [
2165
+ ], Ur = [
2159
2166
  "Everyone loses access to the published copy",
2160
2167
  "Your own copy is not deleted",
2161
2168
  "You can publish it again later"
2162
- ], Ur = [
2169
+ ], Wr = [
2163
2170
  "Everyone you shared it with loses access",
2164
2171
  "Existing share links stop working",
2165
2172
  "You keep full access — nothing is deleted"
2166
- ], Wr = (e) => e === t.ApiKey ? "Toolset API keys" : "Toolset credentials", Gr = (e) => e === C.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", Kr = new Set([Z.Delete, Z.Unshare]), qr = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, isReadonly: i = !1, onClose: o, onToggleFavorite: c, isFavoriteVisible: l, onUseInChat: u, isPrimaryActionVisible: d, onShare: f, isPublishVisible: m, isPublishPrimary: h, getPublishHistory: g, publishFolderItems: _ = Rr, publishExpandedPaths: y, onPublishExpandedPathsChange: x, publishLoadingPaths: S, hasPublishWriteAccess: w, publishDefaultAuthor: k, onPublish: A, onPublishSuccess: j, onPublishError: ee, onCreatePublishFolder: te, publishLabels: ne, ruleSourceOptions: M = zr, onFetchExistingRules: re, shareOverlay: ie, isShareVisible: oe, isSharePrimary: ce, onEdit: le, onDownload: ue, isDownloadVisible: de, isDownloadPrimary: fe, onLoadContentFile: pe, onLoadContentFilePreview: me, renderContentFilePreview: I, renderContentFileTree: he, renderCredentials: ge, onDelete: _e, onUnshare: ve, isUnshareVisible: ye, onRevokeShare: be, onFetchRecipientsCount: xe, isRevokeShareVisible: Se, onUnpublish: B, isUnpublishVisible: V, onLogin: we, onLogout: Te, texts: H, styles: U, limitsFooterNote: Ee }) => {
2173
+ ], Gr = (e) => e === t.ApiKey ? "Toolset API keys" : "Toolset credentials", Kr = (e) => e === C.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", qr = new Set([Z.Delete, Z.Unshare]), Jr = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, isReadonly: i = !1, onClose: o, onToggleFavorite: c, isFavoriteVisible: l, onUseInChat: u, isPrimaryActionVisible: d, onShare: f, isPublishVisible: m, isPublishPrimary: h, getPublishHistory: g, publishFolderItems: _ = zr, publishExpandedPaths: y, onPublishExpandedPathsChange: x, publishLoadingPaths: S, hasPublishWriteAccess: w, publishDefaultAuthor: k, onPublish: A, onPublishSuccess: j, onPublishError: ee, onCreatePublishFolder: te, publishLabels: ne, ruleSourceOptions: M = Br, onFetchExistingRules: re, shareOverlay: ie, isShareVisible: oe, isSharePrimary: ce, onEdit: le, onDownload: ue, isDownloadVisible: de, isDownloadPrimary: fe, onLoadContentFile: pe, onLoadContentFilePreview: me, renderContentFilePreview: I, renderContentFileTree: he, renderCredentials: ge, onDelete: _e, onUnshare: ve, isUnshareVisible: ye, onRevokeShare: be, onFetchRecipientsCount: xe, isRevokeShareVisible: Se, onUnpublish: B, isUnpublishVisible: V, onLogin: we, onLogout: Te, texts: H, styles: U, limitsFooterNote: Ee }) => {
2167
2174
  let { subViewTitleClassName: De = "dial-body-semi-text", overviewSectionClassName: Oe = "dial-caption-text", overviewLabelClassName: ke = "dial-small-semi-text", overviewValueClassName: Ae = "dial-small-text", overviewValueTrueClassName: je = "dial-small-text", confirmMessageClassName: Me = "dial-small-text" } = U?.typography ?? {}, W = U?.colors, Ne = se({
2168
2175
  "--cat-details-backdrop": W?.backdrop,
2169
2176
  "--cat-details-bg": W?.background,
@@ -2286,7 +2293,7 @@ var At = /* @__PURE__ */ function(e) {
2286
2293
  hasWriteAccess: w,
2287
2294
  defaultAuthor: k,
2288
2295
  onCreateFolder: te,
2289
- onPublish: A ?? Lr,
2296
+ onPublish: A ?? Rr,
2290
2297
  onPublishSuccess: ft,
2291
2298
  onPublishError: ee,
2292
2299
  onFetchExistingRules: re
@@ -2296,7 +2303,7 @@ var At = /* @__PURE__ */ function(e) {
2296
2303
  hasWriteAccess: X.hasWriteAccess,
2297
2304
  isSubmitting: X.isSubmitting,
2298
2305
  hasSubmitError: X.hasSubmitError,
2299
- allowReplace: Ir
2306
+ allowReplace: Lr
2300
2307
  }), [
2301
2308
  X.selectedFolderPath,
2302
2309
  X.hasExistingPublicationInFolder,
@@ -2358,12 +2365,12 @@ var At = /* @__PURE__ */ function(e) {
2358
2365
  xt != null && await Te?.(e, { level: xt });
2359
2366
  break;
2360
2367
  case Z.Unpublish: {
2361
- let t = Fr(zt, kt);
2368
+ let t = Ir(zt, kt);
2362
2369
  t != null && await B?.(e, t.segments);
2363
2370
  break;
2364
2371
  }
2365
2372
  }
2366
- vt(null), St(null), wt(null), At(null), Kr.has(_t) && o();
2373
+ vt(null), St(null), wt(null), At(null), qr.has(_t) && o();
2367
2374
  } catch {
2368
2375
  vt(null), St(null), wt(null), At(null);
2369
2376
  } finally {
@@ -2447,7 +2454,7 @@ var At = /* @__PURE__ */ function(e) {
2447
2454
  /* @__PURE__ */ J("strong", { children: e.name }),
2448
2455
  "? This action is permanent and cannot be undone."
2449
2456
  ] }),
2450
- consequences: H?.deleteConfirmConsequences ?? Br,
2457
+ consequences: H?.deleteConfirmConsequences ?? Vr,
2451
2458
  confirmLabel: t,
2452
2459
  loadingStatusLabel: H?.deletingStatusLabel ?? "Deleting",
2453
2460
  variant: Ce.Danger
@@ -2462,7 +2469,7 @@ var At = /* @__PURE__ */ function(e) {
2462
2469
  /* @__PURE__ */ J("strong", { children: e.name }),
2463
2470
  " from your list? You'll need a new invitation to access it again."
2464
2471
  ] }),
2465
- consequences: H?.unshareConfirmConsequences ?? Vr,
2472
+ consequences: H?.unshareConfirmConsequences ?? Hr,
2466
2473
  confirmLabel: t,
2467
2474
  loadingStatusLabel: H?.unsharingStatusLabel ?? "Removing",
2468
2475
  variant: Ce.Info
@@ -2477,7 +2484,7 @@ var At = /* @__PURE__ */ function(e) {
2477
2484
  /* @__PURE__ */ J("strong", { children: e.name }),
2478
2485
  "? Anyone you shared it with will lose access."
2479
2486
  ] }),
2480
- consequences: H?.revokeShareConfirmConsequences ?? Ur,
2487
+ consequences: H?.revokeShareConfirmConsequences ?? Wr,
2481
2488
  confirmLabel: t,
2482
2489
  loadingStatusLabel: H?.revokingShareStatusLabel ?? "Revoking access",
2483
2490
  variant: Ce.Danger
@@ -2498,7 +2505,7 @@ var At = /* @__PURE__ */ function(e) {
2498
2505
  return {
2499
2506
  title: H?.unpublishConfirmTitle ?? t,
2500
2507
  message: n ? i : a,
2501
- consequences: H?.unpublishConfirmConsequences ?? Hr,
2508
+ consequences: H?.unpublishConfirmConsequences ?? Ur,
2502
2509
  confirmLabel: t,
2503
2510
  loadingStatusLabel: H?.unpublishingStatusLabel ?? "Requesting unpublish",
2504
2511
  variant: Ce.Danger
@@ -2519,7 +2526,7 @@ var At = /* @__PURE__ */ function(e) {
2519
2526
  let e = H?.deleteActionLabel ?? "Delete", t = xt ?? C.User;
2520
2527
  return {
2521
2528
  title: e,
2522
- message: (H?.deleteApiKeyConfirmMessage ?? Gr)(t),
2529
+ message: (H?.deleteApiKeyConfirmMessage ?? Kr)(t),
2523
2530
  consequences: void 0,
2524
2531
  confirmLabel: e,
2525
2532
  loadingStatusLabel: H?.deletingStatusLabel ?? "Deleting",
@@ -2536,7 +2543,7 @@ var At = /* @__PURE__ */ function(e) {
2536
2543
  H,
2537
2544
  zt,
2538
2545
  Vt
2539
- ]), hn = Q != null, gn = _t === Z.Unpublish && Fr(zt, kt) == null, _n = hn || Ie || ht, vn = e.credentials == null ? "" : (H?.credentialsManagementTitle ?? Wr)(e.credentials.authenticationType), yn = hn ? {
2546
+ ]), hn = Q != null, gn = _t === Z.Unpublish && Ir(zt, kt) == null, _n = hn || Ie || ht, vn = e.credentials == null ? "" : (H?.credentialsManagementTitle ?? Gr)(e.credentials.authenticationType), yn = hn ? {
2540
2547
  title: Q.title,
2541
2548
  isBackDisabled: yt,
2542
2549
  onBack: Gt
@@ -2627,7 +2634,7 @@ var At = /* @__PURE__ */ function(e) {
2627
2634
  hasWriteAccess: X.hasWriteAccess,
2628
2635
  isSubmitting: X.isSubmitting,
2629
2636
  hasSubmitError: X.hasSubmitError,
2630
- allowReplace: Ir,
2637
+ allowReplace: Lr,
2631
2638
  author: X.author,
2632
2639
  onAuthorChange: X.setAuthor,
2633
2640
  publishCredentials: X.publishCredentials,
@@ -2778,7 +2785,7 @@ var At = /* @__PURE__ */ function(e) {
2778
2785
  copyAriaLabel: H?.copyCodeAriaLabel,
2779
2786
  copiedStatusLabel: H?.copiedCodeStatusLabel
2780
2787
  }),
2781
- K === T.Tools && /* @__PURE__ */ J(Pr, {
2788
+ K === T.Tools && /* @__PURE__ */ J(Fr, {
2782
2789
  tools: e.details?.tools,
2783
2790
  labels: en
2784
2791
  })
@@ -2801,7 +2808,7 @@ var At = /* @__PURE__ */ function(e) {
2801
2808
  !hn && Ie && /* @__PURE__ */ J(Tt, {
2802
2809
  version: e.version,
2803
2810
  hasExistingPublicationInFolder: X.hasExistingPublicationInFolder,
2804
- allowReplace: Ir,
2811
+ allowReplace: Lr,
2805
2812
  isSubmitDisabled: mt.isSubmitDisabled,
2806
2813
  isSubmitLoading: mt.isSubmitLoading,
2807
2814
  onCancel: Jt,
@@ -2810,7 +2817,7 @@ var At = /* @__PURE__ */ function(e) {
2810
2817
  })
2811
2818
  ]
2812
2819
  });
2813
- }, Jr = {
2820
+ }, Yr = {
2814
2821
  pageNav: "_pageNav_14qfn_1",
2815
2822
  navBtn: "_navBtn_14qfn_6",
2816
2823
  titleText: "_titleText_14qfn_23",
@@ -2825,7 +2832,7 @@ var At = /* @__PURE__ */ function(e) {
2825
2832
  favFadeIn: "_favFadeIn_14qfn_1",
2826
2833
  cardLeaving: "_cardLeaving_14qfn_54",
2827
2834
  cardFadeOut: "_cardFadeOut_14qfn_1"
2828
- }, Yr = ({ item: e, initialIsStarred: t = !0, onToggle: n, isFavoriteVisible: r, onClick: i, nameClassName: a, colors: o, versionClassName: s, lastUsedClassName: c, query: l, addToFavoritesAriaLabel: u = "Add to favorites", removeFromFavoritesAriaLabel: d = "Remove from favorites", isSelected: f = !1, credentialsBadgeLoggedOutLabel: p }) => {
2835
+ }, Xr = ({ item: e, initialIsStarred: t = !0, onToggle: n, isFavoriteVisible: r, onClick: i, nameClassName: a, colors: o, versionClassName: s, lastUsedClassName: c, query: l, addToFavoritesAriaLabel: u = "Add to favorites", removeFromFavoritesAriaLabel: d = "Remove from favorites", isSelected: f = !1, credentialsBadgeLoggedOutLabel: p }) => {
2829
2836
  let [m, h] = z(t), [g, _] = z(!1), v = (t) => {
2830
2837
  t.stopPropagation();
2831
2838
  let r = !m;
@@ -2842,7 +2849,7 @@ var At = /* @__PURE__ */ function(e) {
2842
2849
  role: y == null ? void 0 : "button",
2843
2850
  tabIndex: y == null ? void 0 : 0,
2844
2851
  "aria-label": e.name,
2845
- className: N("box-border min-w-0 cursor-pointer flex-row items-start gap-1 p-3 text-start", g && Jr.cardLeaving, f && Jr.selectedCard, Bt.favoriteCard),
2852
+ className: N("box-border min-w-0 cursor-pointer flex-row items-start gap-1 p-3 text-start", g && Yr.cardLeaving, f && Yr.selectedCard, Bt.favoriteCard),
2846
2853
  onClick: y,
2847
2854
  onKeyDown: b,
2848
2855
  onAnimationEnd: g ? (t) => {
@@ -2850,7 +2857,7 @@ var At = /* @__PURE__ */ function(e) {
2850
2857
  } : void 0,
2851
2858
  children: [f && /* @__PURE__ */ J(tt, {
2852
2859
  size: B.SM,
2853
- className: N("absolute end-3 top-3 shrink-0", Jr.selectedCheck),
2860
+ className: N("absolute end-3 top-3 shrink-0", Yr.selectedCheck),
2854
2861
  "aria-hidden": !0,
2855
2862
  stroke: V
2856
2863
  }), /* @__PURE__ */ J(sn, {
@@ -2882,7 +2889,7 @@ var At = /* @__PURE__ */ function(e) {
2882
2889
  })
2883
2890
  })]
2884
2891
  });
2885
- }, Xr = 2, Zr = (e) => {
2892
+ }, Zr = 2, Qr = (e) => {
2886
2893
  let t = e.getBoundingClientRect(), n = window.scrollX, r = window.scrollY, i = window.getComputedStyle(e).transform;
2887
2894
  if (!i || i === "none") return new DOMRect(t.x + n, t.y + r, t.width, t.height);
2888
2895
  try {
@@ -2891,7 +2898,7 @@ var At = /* @__PURE__ */ function(e) {
2891
2898
  } catch {
2892
2899
  return new DOMRect(t.x + n, t.y + r, t.width, t.height);
2893
2900
  }
2894
- }, Qr = ({ items: e, totalCount: t, title: n = "Your Favorites", onToggleFavorite: r, isFavoriteVisible: i, onItemClick: a, styles: o, isLeaving: s, onExitComplete: c, prevPageAriaLabel: l = "Previous page", nextPageAriaLabel: u = "Next page", addToFavoritesAriaLabel: d, removeFromFavoritesAriaLabel: f, selectedItemId: p, credentialsBadgeLoggedOutLabel: m }) => {
2901
+ }, $r = ({ items: e, totalCount: t, title: n = "Your Favorites", onToggleFavorite: r, isFavoriteVisible: i, onItemClick: a, styles: o, isLeaving: s, onExitComplete: c, prevPageAriaLabel: l = "Previous page", nextPageAriaLabel: u = "Next page", addToFavoritesAriaLabel: d, removeFromFavoritesAriaLabel: f, selectedItemId: p, credentialsBadgeLoggedOutLabel: m }) => {
2895
2902
  let h = o?.typography?.titleClassName ?? "dial-body-semi-text", g = o?.typography?.countClassName ?? "dial-tiny-semi-text", _ = se({
2896
2903
  "--cat-fav-title-text": o?.colors?.titleText,
2897
2904
  "--cat-fav-count-text": o?.colors?.countText,
@@ -2904,7 +2911,7 @@ var At = /* @__PURE__ */ function(e) {
2904
2911
  "--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
2905
2912
  "--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
2906
2913
  "--cat-fav-page-nav-bg": o?.colors?.pageNavBackground
2907
- }), v = L(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = z(1), x = zt(), S = x * Xr, C = (y - 1) * S, w = L(() => v.slice(C, C + S), [
2914
+ }), v = L(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = z(1), x = zt(), S = x * Zr, C = (y - 1) * S, w = L(() => v.slice(C, C + S), [
2908
2915
  v,
2909
2916
  C,
2910
2917
  S
@@ -2938,7 +2945,7 @@ var At = /* @__PURE__ */ function(e) {
2938
2945
  let n = k.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
2939
2946
  if (n.forEach((e) => {
2940
2947
  let { cardId: t } = e.dataset;
2941
- t && r.set(t, Zr(e));
2948
+ t && r.set(t, Qr(e));
2942
2949
  }), !e && !t) {
2943
2950
  let e = O.current, t = oe.current, i = 0;
2944
2951
  if (e) {
@@ -2996,7 +3003,7 @@ var At = /* @__PURE__ */ function(e) {
2996
3003
  ref: D,
2997
3004
  children: /* @__PURE__ */ Y("section", {
2998
3005
  ref: O,
2999
- className: N("flex flex-shrink-0 flex-col gap-4 pt-2 pb-2", Jr.section, s && Jr.sectionLeaving),
3006
+ className: N("flex flex-shrink-0 flex-col gap-4 pt-2 pb-2", Yr.section, s && Yr.sectionLeaving),
3000
3007
  style: {
3001
3008
  ..._,
3002
3009
  minHeight: ee
@@ -3007,17 +3014,17 @@ var At = /* @__PURE__ */ function(e) {
3007
3014
  children: [/* @__PURE__ */ J(ne, {
3008
3015
  title: n,
3009
3016
  postfix: E,
3010
- titleClassName: N(h, Jr.titleText),
3011
- postfixClassName: N(g, Jr.countText),
3017
+ titleClassName: N(h, Yr.titleText),
3018
+ postfixClassName: N(g, Yr.countText),
3012
3019
  trailing: T > 1 ? /* @__PURE__ */ Y("div", {
3013
- className: N("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", Jr.pageNav),
3020
+ className: N("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", Yr.pageNav),
3014
3021
  children: [
3015
3022
  /* @__PURE__ */ J(ke, {
3016
3023
  size: U.Small,
3017
3024
  "aria-label": l,
3018
3025
  disabled: y === 1,
3019
3026
  onClick: () => b((e) => e - 1),
3020
- className: N("rounded-full", Jr.navBtn),
3027
+ className: N("rounded-full", Yr.navBtn),
3021
3028
  icon: /* @__PURE__ */ J(rt, {
3022
3029
  size: 14,
3023
3030
  "aria-hidden": !0,
@@ -3026,7 +3033,7 @@ var At = /* @__PURE__ */ function(e) {
3026
3033
  })
3027
3034
  }),
3028
3035
  /* @__PURE__ */ Y("span", {
3029
- className: N("min-w-[32px] px-1 text-center select-none", g, Jr.countText),
3036
+ className: N("min-w-[32px] px-1 text-center select-none", g, Yr.countText),
3030
3037
  children: [
3031
3038
  y,
3032
3039
  " / ",
@@ -3038,7 +3045,7 @@ var At = /* @__PURE__ */ function(e) {
3038
3045
  "aria-label": u,
3039
3046
  disabled: y === T,
3040
3047
  onClick: () => b((e) => e + 1),
3041
- className: N("rounded-full", Jr.navBtn),
3048
+ className: N("rounded-full", Yr.navBtn),
3042
3049
  icon: /* @__PURE__ */ J(it, {
3043
3050
  size: 14,
3044
3051
  "aria-hidden": !0,
@@ -3050,12 +3057,12 @@ var At = /* @__PURE__ */ function(e) {
3050
3057
  }) : void 0
3051
3058
  }), /* @__PURE__ */ J("div", {
3052
3059
  ref: k,
3053
- className: N("grid content-start gap-5", Jr.gridPage),
3060
+ className: N("grid content-start gap-5", Yr.gridPage),
3054
3061
  style: {
3055
3062
  gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
3056
3063
  minHeight: A
3057
3064
  },
3058
- children: w.map((e) => /* @__PURE__ */ J(Yr, {
3065
+ children: w.map((e) => /* @__PURE__ */ J(Xr, {
3059
3066
  item: e,
3060
3067
  onToggle: r,
3061
3068
  isFavoriteVisible: i,
@@ -3068,15 +3075,15 @@ var At = /* @__PURE__ */ function(e) {
3068
3075
  })]
3069
3076
  })
3070
3077
  });
3071
- }, $r = (e, t) => {
3078
+ }, ei = (e, t) => {
3072
3079
  let n = new Set(e);
3073
3080
  return n.has(t) ? n.delete(t) : n.add(t), n;
3074
- }, ei = (e, t) => {
3081
+ }, ti = (e, t) => {
3075
3082
  let n = new Set(e), r = t.length > 0 && t.every((t) => e.has(t));
3076
3083
  return t.forEach((e) => {
3077
3084
  r ? n.delete(e) : n.add(e);
3078
3085
  }), n;
3079
- }, ti = {
3086
+ }, ni = {
3080
3087
  listContainer: "_listContainer_1cc13_1",
3081
3088
  gridClip: "_gridClip_1cc13_6",
3082
3089
  favHeader: "_favHeader_1cc13_35",
@@ -3087,19 +3094,19 @@ var At = /* @__PURE__ */ function(e) {
3087
3094
  selectedRow: "_selectedRow_1cc13_64",
3088
3095
  name: "_name_1cc13_72",
3089
3096
  version: "_version_1cc13_76"
3090
- }, ni = ({ data: e }) => e ? /* @__PURE__ */ J("div", {
3097
+ }, ri = ({ data: e }) => e ? /* @__PURE__ */ J("div", {
3091
3098
  className: "flex h-full items-center",
3092
3099
  children: /* @__PURE__ */ J(ee, { type: e.type })
3093
- }) : null, ri = " / ", ii = ({ data: e, context: t }) => {
3100
+ }) : null, ii = " / ", ai = ({ data: e, context: t }) => {
3094
3101
  if (!e || e.folder.length === 0) return null;
3095
- let n = e.folder.join(ri), r = e.folder[e.folder.length - 1], i = e.folder.length > 1, a = t?.typography?.folderClassName ?? "dial-small-text", o = t?.typography?.folderLastSegmentClassName ?? "dial-small-semi-text";
3102
+ let n = e.folder.join(ii), r = e.folder[e.folder.length - 1], i = e.folder.length > 1, a = t?.typography?.folderClassName ?? "dial-small-text", o = t?.typography?.folderLastSegmentClassName ?? "dial-small-semi-text";
3096
3103
  return /* @__PURE__ */ Y("div", {
3097
3104
  className: "flex h-full w-full min-w-0 items-center gap-1.5",
3098
3105
  children: [
3099
3106
  /* @__PURE__ */ J(lt, {
3100
3107
  size: B.SM,
3101
3108
  stroke: V,
3102
- className: N("shrink-0", ti.folderIcon),
3109
+ className: N("shrink-0", ni.folderIcon),
3103
3110
  "aria-hidden": !0
3104
3111
  }),
3105
3112
  /* @__PURE__ */ J(Je, {
@@ -3121,7 +3128,7 @@ var At = /* @__PURE__ */ function(e) {
3121
3128
  })
3122
3129
  ]
3123
3130
  });
3124
- }, ai = ({ data: e, context: t }) => {
3131
+ }, oi = ({ data: e, context: t }) => {
3125
3132
  let n = t?.searchQuery ?? "", r = t?.typography, i = r?.nameClassName ?? "dial-small-semi-text", a = r?.versionClassName ?? "dial-tiny-text", o = e != null && e.id === t?.selectedItemId;
3126
3133
  return e ? /* @__PURE__ */ Y("div", {
3127
3134
  className: "flex h-full w-full min-w-0 items-center gap-2.5",
@@ -3140,7 +3147,7 @@ var At = /* @__PURE__ */ function(e) {
3140
3147
  className: "flex min-w-0 flex-1 items-baseline gap-1.5",
3141
3148
  children: [
3142
3149
  /* @__PURE__ */ J("h3", {
3143
- className: N("min-w-0 shrink", i, ti.name),
3150
+ className: N("min-w-0 shrink", i, ni.name),
3144
3151
  children: /* @__PURE__ */ J(an, {
3145
3152
  name: e.name,
3146
3153
  query: n,
@@ -3149,23 +3156,23 @@ var At = /* @__PURE__ */ function(e) {
3149
3156
  }),
3150
3157
  e.version && /* @__PURE__ */ J(Ee, {
3151
3158
  text: e.version,
3152
- className: N("max-w-[30%] shrink-0", a, ti.version)
3159
+ className: N("max-w-[30%] shrink-0", a, ni.version)
3153
3160
  }),
3154
3161
  o && /* @__PURE__ */ J(tt, {
3155
3162
  size: B.SM,
3156
- className: N("ms-auto shrink-0", ti.selectedCheck),
3163
+ className: N("ms-auto shrink-0", ni.selectedCheck),
3157
3164
  "aria-hidden": !0,
3158
3165
  stroke: V
3159
3166
  })
3160
3167
  ]
3161
3168
  })]
3162
3169
  }) : null;
3163
- }, oi = ue(null), si = () => {
3164
- let e = pe(oi);
3170
+ }, si = ue(null), ci = () => {
3171
+ let e = pe(si);
3165
3172
  if (e == null) throw Error("useListSelection must be used inside a ListView in multiple selection mode.");
3166
3173
  return e;
3167
- }, ci = ({ data: e }) => {
3168
- let { selectedIds: t, toggle: n, getRowAriaLabel: r } = si();
3174
+ }, li = ({ data: e }) => {
3175
+ let { selectedIds: t, toggle: n, getRowAriaLabel: r } = ci();
3169
3176
  return e ? /* @__PURE__ */ J("div", {
3170
3177
  className: "flex size-full items-center",
3171
3178
  children: /* @__PURE__ */ J(Se, {
@@ -3174,8 +3181,8 @@ var At = /* @__PURE__ */ function(e) {
3174
3181
  onChange: () => n(e.id)
3175
3182
  })
3176
3183
  }) : null;
3177
- }, li = () => {
3178
- let { isAllSelected: e, isSomeSelected: t, hasItems: n, toggleAll: r, selectAllAriaLabel: i } = si();
3184
+ }, ui = () => {
3185
+ let { isAllSelected: e, isSomeSelected: t, hasItems: n, toggleAll: r, selectAllAriaLabel: i } = ci();
3179
3186
  return /* @__PURE__ */ J("div", {
3180
3187
  className: "flex size-full items-center",
3181
3188
  children: /* @__PURE__ */ J(Se, {
@@ -3186,7 +3193,7 @@ var At = /* @__PURE__ */ function(e) {
3186
3193
  onChange: r
3187
3194
  })
3188
3195
  });
3189
- }, ui = ({ data: e, context: t }) => {
3196
+ }, di = ({ data: e, context: t }) => {
3190
3197
  let [n, r] = z(e?.isStarred ?? !1);
3191
3198
  return F(() => {
3192
3199
  r(e?.isStarred ?? !1);
@@ -3199,35 +3206,35 @@ var At = /* @__PURE__ */ function(e) {
3199
3206
  let a = !n;
3200
3207
  r(a), t?.onToggleFavorite?.(e.id, a);
3201
3208
  },
3202
- className: n ? void 0 : ti.starToggleOff
3209
+ className: n ? void 0 : ni.starToggleOff
3203
3210
  })
3204
3211
  });
3205
- }, di = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ J("div", {
3212
+ }, fi = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ J("div", {
3206
3213
  className: "flex h-full w-full min-w-0 items-center",
3207
3214
  children: /* @__PURE__ */ J(hn, { topics: e.topics })
3208
- }), fi = "selection", pi = 52, mi = {
3215
+ }), pi = "selection", mi = 52, hi = {
3209
3216
  folder: (e) => e !== E.Model,
3210
3217
  tags: () => !0,
3211
3218
  favorite: () => !0
3212
- }, hi = (e, t) => Object.fromEntries([
3219
+ }, gi = (e, t) => Object.fromEntries([
3213
3220
  "folder",
3214
3221
  "tags",
3215
3222
  "favorite"
3216
- ].map((n) => [n, (t?.[n] ?? mi[n])(e)])), gi = (e, t = !1, n, r = !1) => {
3217
- let i = hi(e, n);
3223
+ ].map((n) => [n, (t?.[n] ?? hi[n])(e)])), _i = (e, t = !1, n, r = !1) => {
3224
+ let i = gi(e, n);
3218
3225
  return [
3219
3226
  ...r ? [{
3220
- colId: fi,
3227
+ colId: pi,
3221
3228
  headerName: "",
3222
- width: pi,
3223
- minWidth: pi,
3224
- maxWidth: pi,
3229
+ width: mi,
3230
+ minWidth: mi,
3231
+ maxWidth: mi,
3225
3232
  filter: !1,
3226
3233
  sortable: !1,
3227
3234
  resizable: !1,
3228
3235
  suppressMovable: !0,
3229
- headerComponent: li,
3230
- cellRenderer: ci
3236
+ headerComponent: ui,
3237
+ cellRenderer: li
3231
3238
  }] : [],
3232
3239
  {
3233
3240
  headerName: "Name",
@@ -3235,7 +3242,7 @@ var At = /* @__PURE__ */ function(e) {
3235
3242
  minWidth: 220,
3236
3243
  field: "name",
3237
3244
  filter: !1,
3238
- cellRenderer: ai,
3245
+ cellRenderer: oi,
3239
3246
  valueGetter: (e) => e.data?.name
3240
3247
  },
3241
3248
  {
@@ -3245,7 +3252,7 @@ var At = /* @__PURE__ */ function(e) {
3245
3252
  field: "type",
3246
3253
  filter: !1,
3247
3254
  sortable: !1,
3248
- cellRenderer: ni,
3255
+ cellRenderer: ri,
3249
3256
  valueGetter: (e) => e.data?.type
3250
3257
  },
3251
3258
  {
@@ -3255,7 +3262,7 @@ var At = /* @__PURE__ */ function(e) {
3255
3262
  minWidth: 170,
3256
3263
  filter: !1,
3257
3264
  hide: !i.folder,
3258
- cellRenderer: ii,
3265
+ cellRenderer: ai,
3259
3266
  valueGetter: (e) => e.data?.folder
3260
3267
  },
3261
3268
  {
@@ -3266,7 +3273,7 @@ var At = /* @__PURE__ */ function(e) {
3266
3273
  filter: !1,
3267
3274
  sortable: !1,
3268
3275
  hide: !i.tags,
3269
- cellRenderer: di,
3276
+ cellRenderer: fi,
3270
3277
  valueGetter: (e) => e.data?.topics
3271
3278
  },
3272
3279
  {
@@ -3278,15 +3285,15 @@ var At = /* @__PURE__ */ function(e) {
3278
3285
  sortable: !1,
3279
3286
  resizable: !1,
3280
3287
  hide: t || !i.favorite,
3281
- headerClass: ti.favHeader,
3282
- cellRenderer: ui
3288
+ headerClass: ni.favHeader,
3289
+ cellRenderer: di
3283
3290
  }
3284
3291
  ];
3285
- }, _i = 60, vi = {}, yi = /* @__PURE__ */ new Set(), bi = "Select all", xi = (e) => e.id, Si = (e) => `Select ${e.name}`, Ci = (e) => e.items.length === 0 ? /* @__PURE__ */ J("div", {
3292
+ }, vi = 60, yi = {}, bi = /* @__PURE__ */ new Set(), xi = "Select all", Si = (e) => e.id, Ci = (e) => `Select ${e.name}`, wi = (e) => e.items.length === 0 ? /* @__PURE__ */ J("div", {
3286
3293
  className: Ye("flex size-full flex-col items-center justify-center", Bt.listView),
3287
3294
  children: /* @__PURE__ */ J(ae, { label: e.emptyStateTitle ?? "No results" })
3288
- }) : /* @__PURE__ */ J(wi, { ...e }), wi = ({ items: e, type: t, query: n = "", ariaLabel: r = "Catalog", emptyStateTitle: i, styles: a, onToggleFavorite: o, isFavoriteVisible: s, onItemClick: c, stickyHeaderTop: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f = !1, columnVisibility: p, selectionMode: m = Ft.Single, selectedItemIds: h = yi, onSelectionChange: g, selectRowAriaLabel: _ = Si, selectAllAriaLabel: v = bi }) => {
3289
- let y = m === Ft.Multiple, b = y ? void 0 : u, x = a?.typography ?? vi, S = a?.colors, C = {
3295
+ }) : /* @__PURE__ */ J(Ti, { ...e }), Ti = ({ items: e, type: t, query: n = "", ariaLabel: r = "Catalog", emptyStateTitle: i, styles: a, onToggleFavorite: o, isFavoriteVisible: s, onItemClick: c, stickyHeaderTop: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f = !1, columnVisibility: p, selectionMode: m = Ft.Single, selectedItemIds: h = bi, onSelectionChange: g, selectRowAriaLabel: _ = Ci, selectAllAriaLabel: v = xi }) => {
3296
+ let y = m === Ft.Multiple, b = y ? void 0 : u, x = a?.typography ?? yi, S = a?.colors, C = {
3290
3297
  "--cat-list-bg": S?.background,
3291
3298
  "--cat-list-border": S?.border,
3292
3299
  "--cat-list-header-bg": S?.headerBackground,
@@ -3300,12 +3307,12 @@ var At = /* @__PURE__ */ function(e) {
3300
3307
  ...l == null ? {} : { "--list-header-sticky-top": `${l}px` }
3301
3308
  }, w = R(null), T = P((e) => {
3302
3309
  w.current = e;
3303
- }, []), E = L(() => gi(t, f, p, y), [
3310
+ }, []), E = L(() => _i(t, f, p, y), [
3304
3311
  t,
3305
3312
  f,
3306
3313
  p,
3307
3314
  y
3308
- ]), D = L(() => e.map(xi), [e]), O = L(() => D.filter((e) => h.has(e)).length, [D, h]), k = P((e) => g?.($r(h, e)), [g, h]), A = P(() => g?.(ei(h, D)), [
3315
+ ]), D = L(() => e.map(Si), [e]), O = L(() => D.filter((e) => h.has(e)).length, [D, h]), k = P((e) => g?.(ei(h, e)), [g, h]), A = P(() => g?.(ti(h, D)), [
3309
3316
  g,
3310
3317
  h,
3311
3318
  D
@@ -3337,7 +3344,7 @@ var At = /* @__PURE__ */ function(e) {
3337
3344
  t != null && (e.preventDefault(), k(t));
3338
3345
  }, [k]), re = L(() => ({
3339
3346
  domLayout: "autoHeight",
3340
- rowHeight: _i,
3347
+ rowHeight: vi,
3341
3348
  animateRows: !1,
3342
3349
  suppressAnimationFrame: !0,
3343
3350
  suppressScrollOnNewData: !0,
@@ -3360,7 +3367,7 @@ var At = /* @__PURE__ */ function(e) {
3360
3367
  t.field !== "isStarred" && t.colId !== "selection" && e.data && (y && ee.current(e.data.id), c?.(e.data));
3361
3368
  } : void 0,
3362
3369
  rowClass: c || y ? "cursor-pointer" : void 0,
3363
- getRowClass: (e) => e.data?.id === b ? ti.selectedRow : void 0
3370
+ getRowClass: (e) => e.data?.id === b ? ni.selectedRow : void 0
3364
3371
  }), [
3365
3372
  n,
3366
3373
  x,
@@ -3372,7 +3379,7 @@ var At = /* @__PURE__ */ function(e) {
3372
3379
  c,
3373
3380
  y,
3374
3381
  ne
3375
- ]), { containerRef: ie, startRow: ae, endRow: oe } = Qt(e.length, _i), se = L(() => e.slice(ae, oe), [
3382
+ ]), { containerRef: ie, startRow: ae, endRow: oe } = Qt(e.length, vi), se = L(() => e.slice(ae, oe), [
3376
3383
  e,
3377
3384
  ae,
3378
3385
  oe
@@ -3383,22 +3390,22 @@ var At = /* @__PURE__ */ function(e) {
3383
3390
  w.current?.redrawRows();
3384
3391
  }, [b]), /* @__PURE__ */ J("div", {
3385
3392
  style: C,
3386
- className: Ye("w-full rounded-xl border", ti.listContainer, Bt.listView),
3393
+ className: Ye("w-full rounded-xl border", ni.listContainer, Bt.listView),
3387
3394
  children: /* @__PURE__ */ Y("div", {
3388
3395
  ref: ie,
3389
3396
  onKeyDown: y ? M : void 0,
3390
- className: Ye("rounded-xl [&_.ag-cell.ag-column-first]:ps-4 [&_.ag-cell.ag-column-last]:pe-4 [&_.ag-header-cell.ag-column-first]:ps-4 [&_.ag-header-cell.ag-column-last]:pe-4", ti.gridClip),
3397
+ className: Ye("rounded-xl [&_.ag-cell.ag-column-first]:ps-4 [&_.ag-cell.ag-column-last]:pe-4 [&_.ag-header-cell.ag-column-first]:ps-4 [&_.ag-header-cell.ag-column-last]:pe-4", ni.gridClip),
3391
3398
  children: [
3392
3399
  ae > 0 && /* @__PURE__ */ J("div", {
3393
- style: { height: ae * _i },
3400
+ style: { height: ae * vi },
3394
3401
  "aria-hidden": !0
3395
3402
  }),
3396
- /* @__PURE__ */ J(oi.Provider, {
3403
+ /* @__PURE__ */ J(si.Provider, {
3397
3404
  value: j,
3398
3405
  children: /* @__PURE__ */ J(kt, {
3399
3406
  columnDefs: E,
3400
3407
  rowData: se,
3401
- getRowId: xi,
3408
+ getRowId: Si,
3402
3409
  withoutHeaderBorders: !0,
3403
3410
  wrapCustomCellRenderers: !1,
3404
3411
  onGridApiChange: T,
@@ -3408,16 +3415,16 @@ var At = /* @__PURE__ */ function(e) {
3408
3415
  })
3409
3416
  }),
3410
3417
  oe < e.length && /* @__PURE__ */ J("div", {
3411
- style: { height: (e.length - oe) * _i },
3418
+ style: { height: (e.length - oe) * vi },
3412
3419
  "aria-hidden": !0
3413
3420
  })
3414
3421
  ]
3415
3422
  })
3416
3423
  });
3417
- }, Ti = "w-[320px]", Ei = {
3424
+ }, Ei = "w-[320px]", Di = {
3418
3425
  divider: "_divider_k154m_1",
3419
3426
  sectionHeader: "_sectionHeader_k154m_5"
3420
- }, Di = ({ open: e, onClose: t, title: n, options: r, search: i, searchPlaceholder: a, searchClearLabel: o, noResultsLabel: s, backLabel: c, closeLabel: l, colors: u, sectionHeaderClassName: d = "dial-caption-text" }) => {
3427
+ }, Oi = ({ open: e, onClose: t, title: n, options: r, search: i, searchPlaceholder: a, searchClearLabel: o, noResultsLabel: s, backLabel: c, closeLabel: l, colors: u, sectionHeaderClassName: d = "dial-caption-text" }) => {
3421
3428
  let [f, p] = z(null), m = f ? r.find((e) => e.key === f) : void 0, h = m?.children ?? r, g = i ? Ht(h, i.value) : h, _ = se({
3422
3429
  "--cat-create-menu-divider": u?.divider,
3423
3430
  "--cat-create-menu-section-header-text": u?.sectionHeaderText
@@ -3456,10 +3463,10 @@ var At = /* @__PURE__ */ function(e) {
3456
3463
  style: _,
3457
3464
  children: g.map((e) => e.type === H.Divider ? /* @__PURE__ */ J("div", {
3458
3465
  role: "separator",
3459
- className: N("my-1", Ei.divider, e.className)
3466
+ className: N("my-1", Di.divider, e.className)
3460
3467
  }, e.key) : e.type === H.PlainText ? /* @__PURE__ */ J("div", {
3461
3468
  role: "presentation",
3462
- className: N("px-3 py-2", Ei.sectionHeader, d, e.className),
3469
+ className: N("px-3 py-2", Di.sectionHeader, d, e.className),
3463
3470
  children: e.label
3464
3471
  }, e.key) : /* @__PURE__ */ J(G, {
3465
3472
  role: "menuitem",
@@ -3482,7 +3489,7 @@ var At = /* @__PURE__ */ function(e) {
3482
3489
  children: s
3483
3490
  })]
3484
3491
  });
3485
- }, Oi = ({ label: e, options: t, onClick: n, search: r, searchPlaceholder: i = "Search", searchClearLabel: a = "Clear search", noResultsLabel: o = "No results found", backLabel: s = "Back", closeLabel: c = "Close", variant: l = be.Primary, colors: u, sectionHeaderClassName: d }) => {
3492
+ }, ki = ({ label: e, options: t, onClick: n, search: r, searchPlaceholder: i = "Search", searchClearLabel: a = "Clear search", noResultsLabel: o = "No results found", backLabel: s = "Back", closeLabel: c = "Close", variant: l = be.Primary, colors: u, sectionHeaderClassName: d }) => {
3486
3493
  let f = R(null), [p, m] = z(!1), h = ce(), g = /* @__PURE__ */ J(nt, {
3487
3494
  size: B.SM,
3488
3495
  stroke: V,
@@ -3497,7 +3504,7 @@ var At = /* @__PURE__ */ function(e) {
3497
3504
  "aria-haspopup": "dialog",
3498
3505
  "aria-expanded": p,
3499
3506
  onClick: () => m(!0)
3500
- }), /* @__PURE__ */ J(Di, {
3507
+ }), /* @__PURE__ */ J(Oi, {
3501
3508
  open: p,
3502
3509
  onClose: () => {
3503
3510
  m(!1), r?.onChange("");
@@ -3526,7 +3533,7 @@ var At = /* @__PURE__ */ function(e) {
3526
3533
  maxVisibleItems: 7,
3527
3534
  placement: "bottom-end",
3528
3535
  matchReferenceWidth: !1,
3529
- listClassName: Ti,
3536
+ listClassName: Ei,
3530
3537
  onOpenChange: m,
3531
3538
  children: /* @__PURE__ */ J(_e, {
3532
3539
  label: e,
@@ -3564,7 +3571,7 @@ var At = /* @__PURE__ */ function(e) {
3564
3571
  items: t
3565
3572
  })
3566
3573
  });
3567
- }, ki = ({ title: e, description: t, createButton: n, titleClassName: r = "dial-small-semi-text text-primary", descriptionClassName: i = "dial-tiny-text text-secondary" }) => /* @__PURE__ */ Y("div", {
3574
+ }, Ai = ({ title: e, description: t, createButton: n, titleClassName: r = "dial-small-semi-text text-primary", descriptionClassName: i = "dial-tiny-text text-secondary" }) => /* @__PURE__ */ Y("div", {
3568
3575
  className: "flex size-full flex-col items-center justify-center gap-4 text-center",
3569
3576
  children: [/* @__PURE__ */ J(Le, {
3570
3577
  title: e,
@@ -3572,11 +3579,11 @@ var At = /* @__PURE__ */ function(e) {
3572
3579
  className: "size-auto",
3573
3580
  titleClassName: r,
3574
3581
  descriptionClassName: i
3575
- }), n != null && /* @__PURE__ */ J(Oi, {
3582
+ }), n != null && /* @__PURE__ */ J(ki, {
3576
3583
  variant: be.Secondary,
3577
3584
  ...n
3578
3585
  })]
3579
- }), Ai = {
3586
+ }), ji = {
3580
3587
  title: "Browse settings",
3581
3588
  view: "View",
3582
3589
  sorting: "Sorting",
@@ -3590,7 +3597,7 @@ var At = /* @__PURE__ */ function(e) {
3590
3597
  back: "Back",
3591
3598
  close: "Close",
3592
3599
  formatFilterCount: (e, t) => `${e} of ${t}`
3593
- }, ji = {
3600
+ }, Mi = {
3594
3601
  filterBtn: "_filterBtn_1xxr2_7",
3595
3602
  filterBtnActive: "_filterBtnActive_1xxr2_24",
3596
3603
  filterBtnOpen: "_filterBtnOpen_1xxr2_28",
@@ -3602,10 +3609,10 @@ var At = /* @__PURE__ */ function(e) {
3602
3609
  divider: "_divider_1xxr2_63",
3603
3610
  sectionLabel: "_sectionLabel_1xxr2_67",
3604
3611
  footer: "_footer_1xxr2_71"
3605
- }, Mi = (e, t, n, r, i) => {
3612
+ }, Ni = (e, t, n, r, i) => {
3606
3613
  let a = e.size > 0;
3607
3614
  return n && a ? `${r} · ${e.size}` : n ? r : a ? u(e, t, i) : i;
3608
- }, Ni = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: a = "My", topicsLabel: o = "Topics", defaultLabel: s = "From", clearLabel: c = "Clear", applyLabel: l = "Apply", typography: u, colors: d }) => {
3615
+ }, Pi = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: a = "My", topicsLabel: o = "Topics", defaultLabel: s = "From", clearLabel: c = "Clear", applyLabel: l = "Apply", typography: u, colors: d }) => {
3609
3616
  let f = (r ?? !1) || e.size > 0, [p, m] = z(!1), h = se({
3610
3617
  "--cat-filter-btn-bg": d?.buttonBackground,
3611
3618
  "--cat-filter-btn-border": d?.buttonBorder,
@@ -3622,7 +3629,7 @@ var At = /* @__PURE__ */ function(e) {
3622
3629
  "--cat-filter-section-label": d?.sectionLabel,
3623
3630
  "--cat-filter-divider": d?.divider,
3624
3631
  "--cat-filter-footer-border": d?.footerBorder
3625
- }), g = L(() => n == null ? [] : [...n].sort(), [n]), _ = Mi(e, n, r, a, s), [v, y] = z(() => new Set(e)), [b, x] = z(r ?? !1);
3632
+ }), g = L(() => n == null ? [] : [...n].sort(), [n]), _ = Ni(e, n, r, a, s), [v, y] = z(() => new Set(e)), [b, x] = z(r ?? !1);
3626
3633
  F(() => {
3627
3634
  p && (y(new Set(e)), x(r ?? !1));
3628
3635
  }, [
@@ -3668,7 +3675,7 @@ var At = /* @__PURE__ */ function(e) {
3668
3675
  ...h,
3669
3676
  maxHeight: "calc(var(--fui-available-height, 9999px) - 8px)"
3670
3677
  },
3671
- className: N("flex min-w-[360px] flex-col rounded-xl p-[6px]", ji.overlay),
3678
+ className: N("flex min-w-[360px] flex-col rounded-xl p-[6px]", Mi.overlay),
3672
3679
  onKeyDown: ee,
3673
3680
  children: [
3674
3681
  /* @__PURE__ */ J(G, {
@@ -3677,7 +3684,7 @@ var At = /* @__PURE__ */ function(e) {
3677
3684
  mark: K.Checkbox,
3678
3685
  selected: b,
3679
3686
  label: a,
3680
- labelClassName: N(ji.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3687
+ labelClassName: N(Mi.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3681
3688
  className: "shrink-0",
3682
3689
  tabIndex: w === 0 ? 0 : -1,
3683
3690
  ref: (e) => {
@@ -3688,11 +3695,11 @@ var At = /* @__PURE__ */ function(e) {
3688
3695
  g.length > 0 && /* @__PURE__ */ Y(Xe, { children: [
3689
3696
  /* @__PURE__ */ J("div", {
3690
3697
  role: "separator",
3691
- className: N("my-1 h-px", ji.divider),
3698
+ className: N("my-1 h-px", Mi.divider),
3692
3699
  "aria-hidden": !0
3693
3700
  }),
3694
3701
  /* @__PURE__ */ J("div", {
3695
- className: N("px-[10px] pt-[10px] pb-1", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", ji.sectionLabel),
3702
+ className: N("px-[10px] pt-[10px] pb-1", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Mi.sectionLabel),
3696
3703
  "aria-hidden": !0,
3697
3704
  children: o
3698
3705
  }),
@@ -3706,7 +3713,7 @@ var At = /* @__PURE__ */ function(e) {
3706
3713
  mark: K.Checkbox,
3707
3714
  selected: n,
3708
3715
  label: e,
3709
- labelClassName: ji.rowLabel,
3716
+ labelClassName: Mi.rowLabel,
3710
3717
  className: "shrink-0",
3711
3718
  tabIndex: w === r ? 0 : -1,
3712
3719
  ref: (e) => {
@@ -3718,7 +3725,7 @@ var At = /* @__PURE__ */ function(e) {
3718
3725
  })
3719
3726
  ] }),
3720
3727
  /* @__PURE__ */ Y("div", {
3721
- className: N("mt-1 flex shrink-0 items-center px-1 py-3", ji.footer),
3728
+ className: N("mt-1 flex shrink-0 items-center px-1 py-3", Mi.footer),
3722
3729
  ref: O,
3723
3730
  children: [/* @__PURE__ */ J(Oe, {
3724
3731
  label: c,
@@ -3740,32 +3747,32 @@ var At = /* @__PURE__ */ function(e) {
3740
3747
  iconBefore: /* @__PURE__ */ J(ct, {
3741
3748
  size: B.SM,
3742
3749
  stroke: V,
3743
- className: N("shrink-0", ji.filterBtnFunnel),
3750
+ className: N("shrink-0", Mi.filterBtnFunnel),
3744
3751
  "aria-hidden": !0
3745
3752
  }),
3746
3753
  label: _,
3747
- textClassName: N(ji.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3754
+ textClassName: N(Mi.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3748
3755
  iconAfter: /* @__PURE__ */ J(nt, {
3749
3756
  size: 14,
3750
3757
  stroke: V,
3751
- className: N("shrink-0 transition-transform duration-150", ji.filterBtnChevron, p && "rotate-180"),
3758
+ className: N("shrink-0 transition-transform duration-150", Mi.filterBtnChevron, p && "rotate-180"),
3752
3759
  "aria-hidden": !0
3753
3760
  }),
3754
- className: N("h-12 shrink-0 gap-[7px] !rounded-lg px-[18px] whitespace-nowrap", ji.filterBtn, f && ji.filterBtnActive, p && ji.filterBtnOpen)
3761
+ className: N("h-12 shrink-0 gap-[7px] !rounded-lg px-[18px] whitespace-nowrap", Mi.filterBtn, f && Mi.filterBtnActive, p && Mi.filterBtnOpen)
3755
3762
  })
3756
3763
  });
3757
- }, Pi = /* @__PURE__ */ function(e) {
3764
+ }, Fi = /* @__PURE__ */ function(e) {
3758
3765
  return e.Root = "root", e.View = "view", e.Sorting = "sorting", e.Filtering = "filtering", e;
3759
- }({}), Fi = /* @__PURE__ */ J(it, {
3766
+ }({}), Ii = /* @__PURE__ */ J(it, {
3760
3767
  size: B.SM,
3761
3768
  stroke: V,
3762
3769
  className: "rtl:scale-x-[-1]",
3763
3770
  "aria-hidden": !0
3764
- }), Ii = ({ open: e, onClose: t, viewMode: n, onViewModeChange: r, sortOptions: i, sortKey: a, onSortChange: o, filters: s, onFiltersChange: c, filterValues: l, isMyAppsActive: u, onMyAppsChange: d, labels: f, typography: p }) => {
3765
- let [m, h] = z(Pi.Root), [g, _] = z(() => /* @__PURE__ */ new Set()), [v, y] = z(!1), b = L(() => l == null ? [] : [...l].sort(), [l]), x = i != null && i.length > 0, C = s.size + +!!u, w = () => {
3766
- h(Pi.Root), t();
3771
+ }), Li = ({ open: e, onClose: t, viewMode: n, onViewModeChange: r, sortOptions: i, sortKey: a, onSortChange: o, filters: s, onFiltersChange: c, filterValues: l, isMyAppsActive: u, onMyAppsChange: d, labels: f, typography: p }) => {
3772
+ let [m, h] = z(Fi.Root), [g, _] = z(() => /* @__PURE__ */ new Set()), [v, y] = z(!1), b = L(() => l == null ? [] : [...l].sort(), [l]), x = i != null && i.length > 0, C = s.size + +!!u, w = () => {
3773
+ h(Fi.Root), t();
3767
3774
  }, T = () => {
3768
- _(new Set(s)), y(u ?? !1), h(Pi.Filtering);
3775
+ _(new Set(s)), y(u ?? !1), h(Fi.Filtering);
3769
3776
  }, E = () => {
3770
3777
  c(g), d?.(v), w();
3771
3778
  }, D = () => {
@@ -3779,21 +3786,21 @@ var At = /* @__PURE__ */ function(e) {
3779
3786
  label: f.listView,
3780
3787
  Icon: ft
3781
3788
  }], k = {
3782
- [Pi.Root]: f.title,
3783
- [Pi.View]: f.view,
3784
- [Pi.Sorting]: f.sorting,
3785
- [Pi.Filtering]: f.filtering
3786
- }, A = m === Pi.Filtering;
3789
+ [Fi.Root]: f.title,
3790
+ [Fi.View]: f.view,
3791
+ [Fi.Sorting]: f.sorting,
3792
+ [Fi.Filtering]: f.filtering
3793
+ }, A = m === Fi.Filtering;
3787
3794
  return /* @__PURE__ */ Y(ge, {
3788
3795
  open: e,
3789
3796
  title: k[m],
3790
- onBack: m === Pi.Root ? void 0 : () => h(Pi.Root),
3797
+ onBack: m === Fi.Root ? void 0 : () => h(Fi.Root),
3791
3798
  backAriaLabel: f.back,
3792
3799
  closeAriaLabel: f.close,
3793
3800
  onClose: w,
3794
3801
  bodyClassName: N(A && "flex flex-col"),
3795
3802
  children: [
3796
- m === Pi.Root && /* @__PURE__ */ Y("div", {
3803
+ m === Fi.Root && /* @__PURE__ */ Y("div", {
3797
3804
  role: "menu",
3798
3805
  "aria-label": f.title,
3799
3806
  className: "p-2",
@@ -3802,27 +3809,27 @@ var At = /* @__PURE__ */ function(e) {
3802
3809
  role: "menuitem",
3803
3810
  "aria-haspopup": "menu",
3804
3811
  label: f.view,
3805
- trailing: Fi,
3806
- onClick: () => h(Pi.View)
3812
+ trailing: Ii,
3813
+ onClick: () => h(Fi.View)
3807
3814
  }),
3808
3815
  x && /* @__PURE__ */ J(G, {
3809
3816
  role: "menuitem",
3810
3817
  "aria-haspopup": "menu",
3811
3818
  label: f.sorting,
3812
- trailing: Fi,
3813
- onClick: () => h(Pi.Sorting)
3819
+ trailing: Ii,
3820
+ onClick: () => h(Fi.Sorting)
3814
3821
  }),
3815
3822
  /* @__PURE__ */ J(G, {
3816
3823
  role: "menuitem",
3817
3824
  "aria-haspopup": "menu",
3818
3825
  label: f.filtering,
3819
3826
  description: C > 0 ? f.formatFilterCount(C, b.length + 1) : void 0,
3820
- trailing: Fi,
3827
+ trailing: Ii,
3821
3828
  onClick: T
3822
3829
  })
3823
3830
  ]
3824
3831
  }),
3825
- m === Pi.View && /* @__PURE__ */ J("div", {
3832
+ m === Fi.View && /* @__PURE__ */ J("div", {
3826
3833
  role: "menu",
3827
3834
  "aria-label": f.view,
3828
3835
  className: "p-2",
@@ -3842,7 +3849,7 @@ var At = /* @__PURE__ */ function(e) {
3842
3849
  }
3843
3850
  }, e))
3844
3851
  }),
3845
- m === Pi.Sorting && x && /* @__PURE__ */ J("div", {
3852
+ m === Fi.Sorting && x && /* @__PURE__ */ J("div", {
3846
3853
  role: "menu",
3847
3854
  "aria-label": f.sorting,
3848
3855
  className: "p-2",
@@ -3867,17 +3874,17 @@ var At = /* @__PURE__ */ function(e) {
3867
3874
  mark: K.Checkbox,
3868
3875
  selected: v,
3869
3876
  label: f.myApps,
3870
- labelClassName: ji.rowLabel,
3877
+ labelClassName: Mi.rowLabel,
3871
3878
  className: "shrink-0",
3872
3879
  onClick: () => y(!v)
3873
3880
  }), b.length > 0 && /* @__PURE__ */ Y(Xe, { children: [
3874
3881
  /* @__PURE__ */ J("div", {
3875
3882
  role: "separator",
3876
- className: N("my-1 h-px", ji.divider),
3883
+ className: N("my-1 h-px", Mi.divider),
3877
3884
  "aria-hidden": !0
3878
3885
  }),
3879
3886
  /* @__PURE__ */ J("div", {
3880
- className: N("px-[10px] pt-[10px] pb-1", p?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", ji.sectionLabel),
3887
+ className: N("px-[10px] pt-[10px] pb-1", p?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Mi.sectionLabel),
3881
3888
  "aria-hidden": !0,
3882
3889
  children: f.topics
3883
3890
  }),
@@ -3889,14 +3896,14 @@ var At = /* @__PURE__ */ function(e) {
3889
3896
  mark: K.Checkbox,
3890
3897
  selected: t,
3891
3898
  label: e,
3892
- labelClassName: ji.rowLabel,
3899
+ labelClassName: Mi.rowLabel,
3893
3900
  className: "shrink-0",
3894
3901
  onClick: () => _(S(e, g))
3895
3902
  }, e);
3896
3903
  })
3897
3904
  ] })]
3898
3905
  }), /* @__PURE__ */ Y("div", {
3899
- className: N("flex shrink-0 items-center gap-3 px-4 py-3", ji.footer),
3906
+ className: N("flex shrink-0 items-center gap-3 px-4 py-3", Mi.footer),
3900
3907
  children: [/* @__PURE__ */ J(Oe, {
3901
3908
  label: f.clear,
3902
3909
  className: "flex-1",
@@ -3909,16 +3916,16 @@ var At = /* @__PURE__ */ function(e) {
3909
3916
  })] })
3910
3917
  ]
3911
3918
  });
3912
- }, Li = {
3919
+ }, Ri = {
3913
3920
  section: "_section_mk15x_1",
3914
3921
  divider: "_divider_mk15x_5",
3915
3922
  settingsDot: "_settingsDot_mk15x_9",
3916
3923
  searchField: "_searchField_mk15x_17"
3917
- }, Ri = /* @__PURE__ */ new Set(), zi = ({ totalCount: e, viewMode: t, onViewModeChange: n, title: r = "Browse", browseHeaderRenderer: i, styles: a, query: o, onQueryChange: s, searchPlaceholder: c, gridViewLabel: l = "Grid view", listViewLabel: u = "List view", viewToggleLabel: d = "View mode", sortKey: f, sortOptions: p, onSortChange: m, sortLabel: h = "Sort", filters: g, onFiltersChange: _, filterValues: v, isMyAppsActive: y, onMyAppsChange: b, filterFromLabel: x, filterMyAppsLabel: S, filterTopicsLabel: C, browseSettingsLabels: w }) => {
3924
+ }, zi = /* @__PURE__ */ new Set(), Bi = ({ totalCount: e, viewMode: t, onViewModeChange: n, title: r = "Browse", browseHeaderRenderer: i, styles: a, query: o, onQueryChange: s, searchPlaceholder: c, gridViewLabel: l = "Grid view", listViewLabel: u = "List view", viewToggleLabel: d = "View mode", sortKey: f, sortOptions: p, onSortChange: m, sortLabel: h = "Sort", filters: g, onFiltersChange: _, filterValues: v, isMyAppsActive: y, onMyAppsChange: b, filterFromLabel: x, filterMyAppsLabel: S, filterTopicsLabel: C, browseSettingsLabels: w }) => {
3918
3925
  let T = ce(), [E, D] = z(!1), O = (y ?? !1) || (g?.size ?? 0) > 0, k = {
3919
- ...Ai,
3920
- myApps: S ?? Ai.myApps,
3921
- topics: C ?? Ai.topics,
3926
+ ...ji,
3927
+ myApps: S ?? ji.myApps,
3928
+ topics: C ?? ji.topics,
3922
3929
  ...w
3923
3930
  }, A = a?.typography?.titleClassName ?? "dial-body-semi-text", j = a?.typography?.countClassName ?? "dial-tiny-semi-text", ee = L(() => [{
3924
3931
  value: Pt.Grid,
@@ -3971,7 +3978,7 @@ var At = /* @__PURE__ */ function(e) {
3971
3978
  value: t,
3972
3979
  onChange: n,
3973
3980
  items: ee
3974
- }), p != null && p.length > 0 && /* @__PURE__ */ Y(Xe, { children: [/* @__PURE__ */ J("div", { className: N("h-4 w-px shrink-0", Li.divider) }), /* @__PURE__ */ J(ye, {
3981
+ }), p != null && p.length > 0 && /* @__PURE__ */ Y(Xe, { children: [/* @__PURE__ */ J("div", { className: N("h-4 w-px shrink-0", Ri.divider) }), /* @__PURE__ */ J(ye, {
3975
3982
  items: re,
3976
3983
  label: M,
3977
3984
  variant: be.Primary,
@@ -3987,7 +3994,7 @@ var At = /* @__PURE__ */ function(e) {
3987
3994
  value: o,
3988
3995
  onChange: te,
3989
3996
  size: U.Large,
3990
- wrapperClassName: Li.searchField,
3997
+ wrapperClassName: Ri.searchField,
3991
3998
  placeholder: c,
3992
3999
  "aria-label": c
3993
4000
  })
@@ -4005,10 +4012,10 @@ var At = /* @__PURE__ */ function(e) {
4005
4012
  "aria-hidden": !0
4006
4013
  })
4007
4014
  }), O && /* @__PURE__ */ J("span", {
4008
- className: N("pointer-events-none absolute end-2.5 top-2.5 size-2 rounded-full", Li.settingsDot),
4015
+ className: N("pointer-events-none absolute end-2.5 top-2.5 size-2 rounded-full", Ri.settingsDot),
4009
4016
  "aria-hidden": !0
4010
4017
  })]
4011
- }), /* @__PURE__ */ J(Ii, {
4018
+ }), /* @__PURE__ */ J(Li, {
4012
4019
  open: E,
4013
4020
  onClose: () => D(!1),
4014
4021
  viewMode: t,
@@ -4016,15 +4023,15 @@ var At = /* @__PURE__ */ function(e) {
4016
4023
  sortOptions: p,
4017
4024
  sortKey: f,
4018
4025
  onSortChange: m,
4019
- filters: g ?? Ri,
4026
+ filters: g ?? zi,
4020
4027
  onFiltersChange: _ ?? (() => void 0),
4021
4028
  filterValues: v,
4022
4029
  isMyAppsActive: y,
4023
4030
  onMyAppsChange: b,
4024
4031
  labels: k,
4025
4032
  typography: a?.typography
4026
- })] }) : /* @__PURE__ */ J(Ni, {
4027
- checked: g ?? Ri,
4033
+ })] }) : /* @__PURE__ */ J(Pi, {
4034
+ checked: g ?? zi,
4028
4035
  onChange: _ ?? (() => void 0),
4029
4036
  values: v,
4030
4037
  isMyAppsActive: y,
@@ -4038,15 +4045,15 @@ var At = /* @__PURE__ */ function(e) {
4038
4045
  })]
4039
4046
  })]
4040
4047
  });
4041
- }, Bi = ({ query: e, onQueryChange: t, searchPlaceholder: n = "Search models, tools, agents…", styles: r, filters: i, onFiltersChange: a, filterValues: o, isMyAppsActive: s, onMyAppsChange: c, filterFromLabel: l, filterMyAppsLabel: u, filterTopicsLabel: d, gridViewLabel: f, listViewLabel: p, viewToggleLabel: m, sortKey: h, sortOptions: g, onSortChange: _, sortLabel: v, ...y }) => {
4048
+ }, Vi = ({ query: e, onQueryChange: t, searchPlaceholder: n = "Search models, tools, agents…", styles: r, filters: i, onFiltersChange: a, filterValues: o, isMyAppsActive: s, onMyAppsChange: c, filterFromLabel: l, filterMyAppsLabel: u, filterTopicsLabel: d, gridViewLabel: f, listViewLabel: p, viewToggleLabel: m, sortKey: h, sortOptions: g, onSortChange: _, sortLabel: v, ...y }) => {
4042
4049
  let b = {
4043
4050
  "--cat-browse-divider": r?.colors?.divider,
4044
4051
  "--cat-browse-settings-dot": r?.colors?.settingsActiveDot
4045
4052
  };
4046
4053
  return /* @__PURE__ */ J("section", {
4047
- className: N("flex-shrink-0 px-4", Li.section, Bt.toolbar),
4054
+ className: N("flex-shrink-0 px-4", Ri.section, Bt.toolbar),
4048
4055
  style: b,
4049
- children: /* @__PURE__ */ J(zi, {
4056
+ children: /* @__PURE__ */ J(Bi, {
4050
4057
  styles: r,
4051
4058
  query: e,
4052
4059
  onQueryChange: t,
@@ -4069,11 +4076,11 @@ var At = /* @__PURE__ */ function(e) {
4069
4076
  ...y
4070
4077
  })
4071
4078
  });
4072
- }, Vi = {
4079
+ }, Hi = {
4073
4080
  root: "_root_1h83l_1",
4074
4081
  heading: "_heading_1h83l_5",
4075
4082
  headingTitle: "_headingTitle_1h83l_9"
4076
- }, Hi = 3, Ui = 300, Wi = ({ items: e, tabs: t, topicOptions: n, favorites: r, titles: a, browseHeaderRenderer: s, onToggleFavorite: u, isFavoriteVisible: f, columnVisibility: p, onUseInChat: h, isPrimaryActionVisible: v, onShare: b, isPublishVisible: S, isPublishPrimary: C, getPublishHistory: w, publishFolderItems: T, publishExpandedPaths: E, onPublishExpandedPathsChange: D, publishLoadingPaths: O, hasPublishWriteAccess: k, publishDefaultAuthor: A, onPublish: j, onPublishSuccess: ee, onPublishError: te, onCreatePublishFolder: ne, publishLabels: M, ruleSourceOptions: re, onFetchExistingRules: ie, shareOverlay: ae, isShareVisible: oe, isSharePrimary: se, onFetchDetails: ce, renderCredentials: le, onEdit: ue, onDownload: de, isDownloadVisible: pe, isDownloadPrimary: me, onLoadContentFile: I, onLoadContentFilePreview: he, renderContentFilePreview: ge, renderContentFileTree: _e, onDelete: ve, onUnshare: ye, isUnshareVisible: be, onRevokeShare: xe, onFetchRecipientsCount: Se, isRevokeShareVisible: Ce, onUnpublish: B, isUnpublishVisible: V, onLogin: we, onLogout: Te, onCreateClick: H, createOptions: U, createSearch: Ee, createMenuByTab: De, hideCreateButton: Oe = !1, hidePageTitle: ke = !1, isReadonly: Ae = !1, initialViewMode: je = Pt.Grid, isFullWidth: Me = !1, selectedItemId: W, onCardClick: Ne, isLoading: Pe, styles: G, detailsTexts: K, detailsLimitsFooterNote: Fe, initialDetailsItemId: Ie, sortKey: Le, onSortChange: Re, filterTopics: ze, onFilterTopicsChange: Be, isMyAppsActive: Ve, onMyAppsActiveChange: He, activeTab: Ue, onActiveTabChange: We, renderEmptyState: q }) => {
4083
+ }, Ui = 3, Wi = 300, Gi = ({ items: e, tabs: t, topicOptions: n, favorites: r, titles: a, browseHeaderRenderer: s, onToggleFavorite: u, isFavoriteVisible: f, columnVisibility: p, onUseInChat: h, isPrimaryActionVisible: v, onShare: b, isPublishVisible: S, isPublishPrimary: C, getPublishHistory: w, publishFolderItems: T, publishExpandedPaths: E, onPublishExpandedPathsChange: D, publishLoadingPaths: O, hasPublishWriteAccess: k, publishDefaultAuthor: A, onPublish: j, onPublishSuccess: ee, onPublishError: te, onCreatePublishFolder: ne, publishLabels: M, ruleSourceOptions: re, onFetchExistingRules: ie, shareOverlay: ae, isShareVisible: oe, isSharePrimary: se, onFetchDetails: ce, renderCredentials: le, onEdit: ue, onDownload: de, isDownloadVisible: pe, isDownloadPrimary: me, onLoadContentFile: I, onLoadContentFilePreview: he, renderContentFilePreview: ge, renderContentFileTree: _e, onDelete: ve, onUnshare: ye, isUnshareVisible: be, onRevokeShare: xe, onFetchRecipientsCount: Se, isRevokeShareVisible: Ce, onUnpublish: B, isUnpublishVisible: V, onLogin: we, onLogout: Te, onCreateClick: H, createOptions: U, createSearch: Ee, createMenuByTab: De, hideCreateButton: Oe = !1, hidePageTitle: ke = !1, isReadonly: Ae = !1, initialViewMode: je = Pt.Grid, isFullWidth: Me = !1, selectedItemId: W, onCardClick: Ne, isLoading: Pe, styles: G, detailsTexts: K, detailsLimitsFooterNote: Fe, initialDetailsItemId: Ie, sortKey: Le, onSortChange: Re, filterTopics: ze, onFilterTopicsChange: Be, isMyAppsActive: Ve, onMyAppsActiveChange: He, activeTab: Ue, onActiveTabChange: We, renderEmptyState: q }) => {
4077
4084
  let { typography: qe } = G ?? {}, Je = Gt(G), Ye = a?.pageTitle ?? "Catalog", Ze = a?.createLabel ?? "Create", Qe = a?.favoritesTitle ?? "Your favorites", $e = a?.browseTitle ?? "Browse", et = a?.searchPlaceholder ?? "Search models, tools, agents…", tt = a?.noResultsTitle ?? ((e) => `No results for "${e}"`), nt = a?.myAppsEmptyTitle ?? (() => "No personal items yet"), rt = a?.myAppsEmptyDescription ?? "Create your first one, it'll show up right here.", it = a?.featuredLabel ?? "Featured", at = a?.gridViewLabel ?? "Grid view", ot = a?.listViewLabel ?? "List view", st = a?.viewToggleLabel ?? "View mode", ct = a?.ariaLabel ?? "Catalog", lt = a?.sortLabel ?? "Sort", ut = [
4078
4085
  {
4079
4086
  value: o.RecentlyUpdated,
@@ -4127,9 +4134,9 @@ var At = /* @__PURE__ */ function(e) {
4127
4134
  }
4128
4135
  }
4129
4136
  }, [ce]), rn = P(async (e) => (qt(e), Zt(void 0), nn(e)), [nn]), an = P(async (e, t) => {
4130
- for (let n = 0; n < Hi; n++) {
4137
+ for (let n = 0; n < Ui; n++) {
4131
4138
  if (en.current !== e.id || t(await nn(e))) return;
4132
- n < Hi - 1 && await y(Ui);
4139
+ n < Ui - 1 && await y(Wi);
4133
4140
  }
4134
4141
  }, [nn]), on = R(null);
4135
4142
  F(() => {
@@ -4249,17 +4256,17 @@ var At = /* @__PURE__ */ function(e) {
4249
4256
  children: /* @__PURE__ */ J(Ge, {})
4250
4257
  }) : /* @__PURE__ */ Y("section", {
4251
4258
  "aria-label": ct,
4252
- className: N("flex size-full min-h-0 flex-1 flex-col", Vi.root, Bt.root),
4259
+ className: N("flex size-full min-h-0 flex-1 flex-col", Hi.root, Bt.root),
4253
4260
  style: Je,
4254
4261
  children: [
4255
4262
  (!ke || _n) && /* @__PURE__ */ J("div", {
4256
- className: N("shrink-0", Vi.heading),
4263
+ className: N("shrink-0", Hi.heading),
4257
4264
  children: /* @__PURE__ */ Y("div", {
4258
4265
  className: "flex h-[64px] w-full items-center justify-between px-4 desktop:px-8",
4259
4266
  children: [!ke && /* @__PURE__ */ J("h1", {
4260
- className: N(qe?.pageHeadingFontClassName ?? "dial-display2-text", Vi.headingTitle),
4267
+ className: N(qe?.pageHeadingFontClassName ?? "dial-display2-text", Hi.headingTitle),
4261
4268
  children: Ye
4262
- }), _n && /* @__PURE__ */ J(Oi, { ...jn })]
4269
+ }), _n && /* @__PURE__ */ J(ki, { ...jn })]
4263
4270
  })
4264
4271
  }),
4265
4272
  /* @__PURE__ */ Y("div", {
@@ -4267,7 +4274,7 @@ var At = /* @__PURE__ */ function(e) {
4267
4274
  children: [
4268
4275
  vn && /* @__PURE__ */ J("div", {
4269
4276
  className: "w-full px-4 desktop:px-8",
4270
- children: /* @__PURE__ */ J(Qr, {
4277
+ children: /* @__PURE__ */ J($r, {
4271
4278
  items: kt,
4272
4279
  totalCount: kt.length,
4273
4280
  title: Qe,
@@ -4282,7 +4289,7 @@ var At = /* @__PURE__ */ function(e) {
4282
4289
  }),
4283
4290
  /* @__PURE__ */ J("div", {
4284
4291
  className: "w-full pt-6 desktop:px-4",
4285
- children: /* @__PURE__ */ J(Bi, {
4292
+ children: /* @__PURE__ */ J(Vi, {
4286
4293
  totalCount: mn.length,
4287
4294
  viewMode: X,
4288
4295
  onViewModeChange: gn,
@@ -4328,7 +4335,7 @@ var At = /* @__PURE__ */ function(e) {
4328
4335
  className: N(Q.length > 0 ? ["w-full flex-1 px-4 py-6 desktop:px-8", !Me && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", Q.length === 0 && "px-4 py-6 desktop:px-8"),
4329
4336
  children: [
4330
4337
  kn != null && kn,
4331
- kn == null && An && /* @__PURE__ */ J(ki, {
4338
+ kn == null && An && /* @__PURE__ */ J(Ai, {
4332
4339
  title: nt(Ft),
4333
4340
  description: rt,
4334
4341
  createButton: Nn
@@ -4352,7 +4359,7 @@ var At = /* @__PURE__ */ function(e) {
4352
4359
  }), mt !== "unmounted" && /* @__PURE__ */ J("div", {
4353
4360
  inert: X !== Pt.Cards,
4354
4361
  className: N("pb-8", X !== Pt.Cards && (mt === "prepared" ? "invisible h-0 overflow-hidden p-0" : "hidden"), Q.length === 0 && X === Pt.Cards && "h-full"),
4355
- children: /* @__PURE__ */ J(Ci, {
4362
+ children: /* @__PURE__ */ J(wi, {
4356
4363
  type: Ft,
4357
4364
  items: Q,
4358
4365
  query: dt,
@@ -4372,7 +4379,7 @@ var At = /* @__PURE__ */ function(e) {
4372
4379
  })
4373
4380
  ]
4374
4381
  }),
4375
- un != null && /* @__PURE__ */ J(qr, {
4382
+ un != null && /* @__PURE__ */ J(Jr, {
4376
4383
  renderCredentials: le,
4377
4384
  item: un,
4378
4385
  isOpen: Jt,
@@ -4428,7 +4435,7 @@ var At = /* @__PURE__ */ function(e) {
4428
4435
  })
4429
4436
  ]
4430
4437
  });
4431
- }, Gi = ({ selectedId: e, records: t, selectedLabel: n, placeholder: r, labels: i, onSelect: a, onBrowse: o, extraOptions: s = [], isLoading: c = !1, error: l, isDisabled: u = !1, isInvalid: d = !1, labelledById: f, ariaHasPopup: p = "listbox", className: m, panelClassName: h, iconAfter: g, renderPanel: _, open: v, onOpenChange: y, renderOverlay: b }) => {
4438
+ }, Ki = ({ selectedId: e, records: t, selectedLabel: n, placeholder: r, labels: i, onSelect: a, onBrowse: o, extraOptions: s = [], isLoading: c = !1, error: l, isDisabled: u = !1, isInvalid: d = !1, labelledById: f, ariaHasPopup: p = "listbox", className: m, panelClassName: h, iconAfter: g, renderPanel: _, open: v, onOpenChange: y, renderOverlay: b }) => {
4432
4439
  let [x, S] = z(!1), C = v ?? x, w = (e) => {
4433
4440
  e && u || (v === void 0 && S(e), y?.(e));
4434
4441
  }, [T, E] = z(""), D = R(null), O = L(() => [...s, ...t].filter((e) => e.label.toLocaleLowerCase().includes(T.toLocaleLowerCase())), [
@@ -4528,7 +4535,7 @@ var At = /* @__PURE__ */ function(e) {
4528
4535
  renderOverlay: () => j,
4529
4536
  children: ee
4530
4537
  });
4531
- }, Ki = ({ service: e, texts: n, onLogin: r, onLogout: i }) => {
4538
+ }, qi = ({ service: e, texts: n, onLogin: r, onLogout: i }) => {
4532
4539
  let [a, o] = z(!1), [s, c] = z(!1), [l, u] = z(!1), [d, f] = z(), p = e.authenticationType === t.ApiKey, m = p ? n?.deleteActionLabel ?? "Delete" : n?.logoutActionLabel ?? "Log out", h = p ? n?.deleteApiKeyConfirmMessage?.(C.User) ?? "Are you sure you want to delete your personal API key?" : n?.logoutConfirmMessage ?? "Are you sure you want to log out?";
4533
4540
  return /* @__PURE__ */ Y(Jn, {
4534
4541
  label: e.name,
@@ -4616,7 +4623,7 @@ var At = /* @__PURE__ */ function(e) {
4616
4623
  })
4617
4624
  ]
4618
4625
  });
4619
- }, qi = ({ services: e, isLoading: t = !1, hasError: n = !1, showEmptyState: r = !1, onRetry: i, onLogin: a, onLogout: o, texts: s }) => t && !e.length ? /* @__PURE__ */ J("p", {
4626
+ }, Ji = ({ services: e, isLoading: t = !1, hasError: n = !1, showEmptyState: r = !1, onRetry: i, onLogin: a, onLogout: o, texts: s }) => t && !e.length ? /* @__PURE__ */ J("p", {
4620
4627
  role: "status",
4621
4628
  className: "px-6 py-3",
4622
4629
  children: s?.loading ?? "Loading…"
@@ -4638,7 +4645,7 @@ var At = /* @__PURE__ */ function(e) {
4638
4645
  children: s?.title ?? "Credentials"
4639
4646
  }), /* @__PURE__ */ J("div", {
4640
4647
  className: "flex min-w-0 flex-col",
4641
- children: e.map((e) => /* @__PURE__ */ J(Ki, {
4648
+ children: e.map((e) => /* @__PURE__ */ J(qi, {
4642
4649
  service: e,
4643
4650
  texts: s,
4644
4651
  onLogin: a,
@@ -4651,4 +4658,4 @@ var At = /* @__PURE__ */ function(e) {
4651
4658
  children: s?.empty ?? "No credentials required"
4652
4659
  }) : null;
4653
4660
  //#endregion
4654
- export { lr as AboutTab, Pn as ApiTab, sn as AppIdentity, qi as ApplicationCredentials, Bt as CATALOG_CLASS, xn as Card, Cn as CardGrid, Sn as CardRowRenderer, Wi as Catalog, Lt as CatalogContentNodeType, Rt as CatalogContentPreviewType, T as CatalogDetailsTab, jt as CatalogLimitStatus, Mt as CatalogPricingUnit, Ft as CatalogSelectionMode, o as CatalogSortKey, Pt as CatalogViewMode, At as CodeLanguage, mr as ContentTab, w as CredentialStatus, tr as CredentialsApiKeyOverlay, ln as CredentialsBadge, n as CredentialsBadgeState, Kn as CredentialsBanner, e as CredentialsBannerState, C as CredentialsLevel, Xn as CredentialsManagementPanel, r as CredentialsUiState, Gi as DeploymentSelectorField, Nt as DeploymentSize, Z as DetailsConfirmationKind, cr as DetailsHeader, qr as DetailsPanel, Yr as FavoriteCard, Qr as Favorites, Ni as Filter, It as LimitRowLayout, Er as LimitsTab, Ci as ListView, Dr as OverviewTab, Or as PricingTab, Bi as Toolbar, Pr as ToolsTab, t as ToolsetAuthenticationType, mn as TopicTag, x as buildCatalogTabs, d as filterCatalogItems, s as getCatalogDetailsTabs, h as getCredentialsBadgeState, v as getCredentialsBannerState, f as getCredentialsUiState, a as getSignedInLevel, i as getTopicOptions, l as sortCatalogItems, zt as useFavColumns, $t as useScrollVirtualizer };
4661
+ export { lr as AboutTab, Pn as ApiTab, sn as AppIdentity, Ji as ApplicationCredentials, Bt as CATALOG_CLASS, xn as Card, Cn as CardGrid, Sn as CardRowRenderer, Gi as Catalog, Lt as CatalogContentNodeType, Rt as CatalogContentPreviewType, T as CatalogDetailsTab, jt as CatalogLimitStatus, Mt as CatalogPricingUnit, Ft as CatalogSelectionMode, o as CatalogSortKey, Pt as CatalogViewMode, At as CodeLanguage, mr as ContentTab, w as CredentialStatus, tr as CredentialsApiKeyOverlay, ln as CredentialsBadge, n as CredentialsBadgeState, Kn as CredentialsBanner, e as CredentialsBannerState, C as CredentialsLevel, Xn as CredentialsManagementPanel, r as CredentialsUiState, Ki as DeploymentSelectorField, Nt as DeploymentSize, Z as DetailsConfirmationKind, cr as DetailsHeader, Jr as DetailsPanel, Xr as FavoriteCard, $r as Favorites, Pi as Filter, It as LimitRowLayout, Er as LimitsTab, wi as ListView, Dr as OverviewTab, Or as PricingTab, Vi as Toolbar, Fr as ToolsTab, t as ToolsetAuthenticationType, mn as TopicTag, x as buildCatalogTabs, d as filterCatalogItems, s as getCatalogDetailsTabs, h as getCredentialsBadgeState, v as getCredentialsBannerState, f as getCredentialsUiState, a as getSignedInLevel, i as getTopicOptions, l as sortCatalogItems, zt as useFavColumns, $t as useScrollVirtualizer };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-catalog",
3
3
  "description": "Marketplace catalog component for browsing models, tools, and assistants with search, filter, and sort",
4
- "version": "1.3.0-dev.103",
4
+ "version": "1.3.0-dev.106",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "sideEffects": [
@@ -28,11 +28,11 @@
28
28
  "dependencies": {
29
29
  "@tabler/icons-react": "^3.44.0",
30
30
  "ag-grid-community": "^35.3.0",
31
- "@epam/ai-dial-publish-panel": "1.3.0-dev.103"
31
+ "@epam/ai-dial-publish-panel": "1.3.0-dev.106"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": "^19.2.8",
35
- "@epam/ai-dial-chat-shared": "1.3.0-dev.103",
35
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.106",
36
36
  "@epam/ai-dial-ui-kit": "^0.16.0-dev.16"
37
37
  },
38
38
  "repository": {