@epam/ai-dial-catalog 1.2.0-dev.336 → 1.2.0-dev.337

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
@@ -1903,12 +1903,12 @@ var X = /* @__PURE__ */ function(e) {
1903
1903
  children: l
1904
1904
  })]
1905
1905
  });
1906
- }, fr = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ J("div", {
1906
+ }, fr = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o, sectionContainerClassName: s = "px-6" }) => e ? /* @__PURE__ */ J("div", {
1907
1907
  className: "flex flex-col gap-4",
1908
- children: e.map((e, s) => /* @__PURE__ */ Y("div", {
1908
+ children: e.map((e, c) => /* @__PURE__ */ Y("div", {
1909
1909
  className: "flex flex-col gap-4",
1910
- children: [s > 0 && /* @__PURE__ */ J("div", { className: P("shrink-0 border-b", In.divider) }), /* @__PURE__ */ J("div", {
1911
- className: "px-6",
1910
+ children: [c > 0 && /* @__PURE__ */ J("div", { className: P("shrink-0 border-b", In.divider) }), /* @__PURE__ */ J("div", {
1911
+ className: s,
1912
1912
  children: /* @__PURE__ */ J(mn, {
1913
1913
  sectionLabel: e.title,
1914
1914
  values: e.specs,
@@ -1920,7 +1920,7 @@ var X = /* @__PURE__ */ function(e) {
1920
1920
  noLabel: o
1921
1921
  })
1922
1922
  })]
1923
- }, s))
1923
+ }, c))
1924
1924
  }) : null, pr = ({ pricing: e, pricesSectionLabel: t = "Token pricing", characterPricesSectionLabel: n = "Character pricing", limitsSectionLabel: r = "Usage limits", labelClassName: i = "dial-small-semi-text", valueClassName: a = "dial-small-text", sectionClassName: o = "dial-caption-text" }) => {
1925
1925
  if (e == null) return null;
1926
1926
  let s = e.prices?.map((e) => ({
@@ -1965,85 +1965,111 @@ var X = /* @__PURE__ */ function(e) {
1965
1965
  }, n)) }, t))]
1966
1966
  });
1967
1967
  }, gr = {
1968
- divider: "_divider_1f796_1",
1969
- description: "_description_1f796_5",
1970
- code: "_code_1f796_9"
1968
+ divider: "_divider_4udep_1",
1969
+ count: "_count_4udep_5",
1970
+ description: "_description_4udep_9",
1971
+ code: "_code_4udep_13"
1971
1972
  }, _r = {
1972
1973
  inputName: "Name",
1973
1974
  inputType: "Type",
1974
1975
  inputRequired: "Required",
1975
1976
  annotationKey: "Key",
1976
- annotationValue: "Value"
1977
- }, vr = ({ tools: e, toolNameClassName: t = "dial-small-semi-text", descriptionClassName: n = "dial-small-text", tableHeadingClassName: r = "dial-caption-text", tableCellClassName: i = "dial-tiny-text", labels: a }) => {
1978
- let o = {
1977
+ annotationValue: "Value",
1978
+ searchPlaceholder: "Search...",
1979
+ searchClearLabel: "Clear search",
1980
+ toolCount: (e) => `${e} tools`,
1981
+ noResults: "No results found"
1982
+ }, vr = (e, t) => e.name.toLowerCase().includes(t) || (e.description?.toLowerCase().includes(t) ?? !1), yr = ({ 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 }) => {
1983
+ let s = {
1979
1984
  ..._r,
1980
- ...a
1981
- };
1982
- return e == null ? null : /* @__PURE__ */ J("div", {
1985
+ ...o
1986
+ }, [c, l] = z(""), u = L(() => {
1987
+ let t = c.trim().toLowerCase(), n = e?.tools ?? [];
1988
+ return t === "" ? n : n.filter((e) => vr(e, t));
1989
+ }, [e, c]);
1990
+ return e == null ? null : /* @__PURE__ */ Y("div", {
1983
1991
  className: "flex flex-col",
1984
- children: e.tools.map((e, a) => /* @__PURE__ */ Y("div", {
1985
- className: P("flex flex-col gap-3 px-[22px] py-4", a > 0 ? gr.divider : void 0),
1986
- children: [
1987
- /* @__PURE__ */ Y("div", {
1988
- className: "flex flex-col gap-1",
1989
- children: [/* @__PURE__ */ J("span", {
1990
- className: t,
1991
- children: e.name
1992
- }), e.description != null && /* @__PURE__ */ J("p", {
1993
- className: P("m-0", n, gr.description),
1994
- children: e.description
1995
- })]
1996
- }),
1997
- e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ J(hr, {
1998
- columns: [
1999
- o.inputName,
2000
- o.inputType,
2001
- o.inputRequired
2002
- ],
2003
- columnsTemplate: "1fr 1fr auto",
2004
- rows: e.inputParams.map((e) => [
2005
- /* @__PURE__ */ J("code", {
2006
- className: P("text-inherit border-none bg-transparent p-0", gr.code),
1992
+ children: [
1993
+ /* @__PURE__ */ Y("div", {
1994
+ className: "flex flex-col gap-3 pb-2 pt-4",
1995
+ children: [/* @__PURE__ */ J(ze, {
1996
+ value: c,
1997
+ placeholder: s.searchPlaceholder,
1998
+ "aria-label": s.searchPlaceholder,
1999
+ clearLabel: s.searchClearLabel,
2000
+ onChange: (e) => l(e ?? "")
2001
+ }), /* @__PURE__ */ J("span", {
2002
+ role: "status",
2003
+ "aria-live": "polite",
2004
+ className: P(a, gr.count),
2005
+ children: s.toolCount(u.length)
2006
+ })]
2007
+ }),
2008
+ u.length === 0 && c.trim() !== "" && /* @__PURE__ */ J(M, { label: s.noResults }),
2009
+ u.map((e, a) => /* @__PURE__ */ Y("div", {
2010
+ className: P("flex flex-col gap-3 px-[22px] py-4", a > 0 ? gr.divider : void 0),
2011
+ children: [
2012
+ /* @__PURE__ */ Y("div", {
2013
+ className: "flex flex-col gap-1",
2014
+ children: [/* @__PURE__ */ J("span", {
2015
+ className: t,
2007
2016
  children: e.name
2008
- }, "name"),
2009
- /* @__PURE__ */ J("code", {
2017
+ }), e.description != null && /* @__PURE__ */ J("p", {
2018
+ className: P("m-0", n, gr.description),
2019
+ children: e.description
2020
+ })]
2021
+ }),
2022
+ e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ J(hr, {
2023
+ columns: [
2024
+ s.inputName,
2025
+ s.inputType,
2026
+ s.inputRequired
2027
+ ],
2028
+ columnsTemplate: "1fr 1fr auto",
2029
+ rows: e.inputParams.map((e) => [
2030
+ /* @__PURE__ */ J("code", {
2031
+ className: P("text-inherit border-none bg-transparent p-0", gr.code),
2032
+ children: e.name
2033
+ }, "name"),
2034
+ /* @__PURE__ */ J("code", {
2035
+ className: P("text-inherit border-none bg-transparent p-0", gr.code),
2036
+ children: e.type
2037
+ }, "type"),
2038
+ e.isRequired ? "✓" : "—"
2039
+ ]),
2040
+ headingClassName: r,
2041
+ cellClassName: i
2042
+ }),
2043
+ e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ J(hr, {
2044
+ columns: [s.annotationKey, s.annotationValue],
2045
+ rows: e.annotations.map((e) => [/* @__PURE__ */ J("code", {
2010
2046
  className: P("text-inherit border-none bg-transparent p-0", gr.code),
2011
- children: e.type
2012
- }, "type"),
2013
- e.isRequired ? "✓" : "—"
2014
- ]),
2015
- headingClassName: r,
2016
- cellClassName: i
2017
- }),
2018
- e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ J(hr, {
2019
- columns: [o.annotationKey, o.annotationValue],
2020
- rows: e.annotations.map((e) => [/* @__PURE__ */ J("code", {
2021
- className: P("text-inherit border-none bg-transparent p-0", gr.code),
2022
- children: e.key
2023
- }, "key"), e.value]),
2024
- headingClassName: r,
2025
- cellClassName: i
2026
- })
2027
- ]
2028
- }, e.name))
2047
+ children: e.key
2048
+ }, "key"), e.value]),
2049
+ headingClassName: r,
2050
+ cellClassName: i
2051
+ })
2052
+ ]
2053
+ }, e.name))
2054
+ ]
2029
2055
  });
2030
- }, yr = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), br = async () => void 0, xr = [], Sr = [], Cr = [
2056
+ }, br = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), xr = async () => void 0, Sr = [], Cr = [], wr = [
2031
2057
  "All shared configurations will be lost",
2032
2058
  "Users who rely on it will lose access",
2033
2059
  "Cannot be undone"
2034
- ], wr = [
2060
+ ], Tr = [
2035
2061
  "You will lose access to this item",
2036
2062
  "Other people keep their access",
2037
2063
  "You will need a new invitation to get it back"
2038
- ], Tr = [
2064
+ ], Er = [
2039
2065
  "Everyone loses access to the published copy",
2040
2066
  "Your own copy is not deleted",
2041
2067
  "You can publish it again later"
2042
- ], Er = [
2068
+ ], Dr = [
2043
2069
  "Everyone you shared it with loses access",
2044
2070
  "Existing share links stop working",
2045
2071
  "You keep full access — nothing is deleted"
2046
- ], Dr = (e) => e === x.ApiKey ? "Toolset API keys" : "Toolset credentials", Or = (e) => e === t.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]), Ar = ({ item: e, isOpen: i, isStarred: o = !1, isDetailsLoading: s = !1, isReadonly: c = !1, onClose: l, onToggleFavorite: u, isFavoriteVisible: f, onUseInChat: p, isPrimaryActionVisible: m, onShare: h, isPublishVisible: _, isPublishPrimary: y, getPublishHistory: b, publishFolderItems: x = xr, publishExpandedPaths: S, onPublishExpandedPathsChange: C, publishLoadingPaths: D, hasPublishWriteAccess: O, publishDefaultAuthor: k, onPublish: ee, onPublishSuccess: A, onPublishError: te, onCreatePublishFolder: j, publishLabels: ne, ruleSourceOptions: re = Sr, onFetchExistingRules: M, shareOverlay: N, isShareVisible: ae, isSharePrimary: oe, onEdit: se, onDownload: ce, isDownloadVisible: le, isDownloadPrimary: ue, onLoadContentFile: de, onLoadContentFilePreview: fe, renderContentFilePreview: pe, renderContentFileTree: me, renderCredentials: he, onDelete: ge, onUnshare: _e, isUnshareVisible: ve, onRevokeShare: ye, onFetchRecipientsCount: be, isRevokeShareVisible: B, onUnpublish: V, isUnpublishVisible: Se, onLogin: Ce, onLogout: we, texts: H, styles: Te, limitsFooterNote: Ee }) => {
2072
+ ], Or = (e) => e === x.ApiKey ? "Toolset API keys" : "Toolset credentials", kr = (e) => e === t.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", Ar = new Set([Z.Delete, Z.Unshare]), jr = ({ item: e, isOpen: i, isStarred: o = !1, isDetailsLoading: s = !1, isReadonly: c = !1, onClose: l, onToggleFavorite: u, isFavoriteVisible: f, onUseInChat: p, isPrimaryActionVisible: m, onShare: h, isPublishVisible: _, isPublishPrimary: y, getPublishHistory: b, publishFolderItems: x = Sr, publishExpandedPaths: S, onPublishExpandedPathsChange: C, publishLoadingPaths: D, hasPublishWriteAccess: O, publishDefaultAuthor: k, onPublish: ee, onPublishSuccess: A, onPublishError: te, onCreatePublishFolder: j, publishLabels: ne, ruleSourceOptions: re = Cr, onFetchExistingRules: M, shareOverlay: N, isShareVisible: ae, isSharePrimary: oe, onEdit: se, onDownload: ce, isDownloadVisible: le, isDownloadPrimary: ue, onLoadContentFile: de, onLoadContentFilePreview: fe, renderContentFilePreview: pe, renderContentFileTree: me, renderCredentials: he, onDelete: ge, onUnshare: _e, isUnshareVisible: ve, onRevokeShare: ye, onFetchRecipientsCount: be, isRevokeShareVisible: B, onUnpublish: V, isUnpublishVisible: Se, onLogin: Ce, onLogout: we, texts: H, styles: Te, limitsFooterNote: Ee }) => {
2047
2073
  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" } = Te?.typography ?? {}, U = Te?.colors, Ne = ie({
2048
2074
  "--cat-details-backdrop": U?.backdrop,
2049
2075
  "--cat-details-bg": U?.background,
@@ -2059,6 +2085,7 @@ var X = /* @__PURE__ */ function(e) {
2059
2085
  "--cat-api-heading-text": U?.apiHeadingText,
2060
2086
  "--cat-tools-divider": U?.toolsDivider,
2061
2087
  "--cat-tools-description-text": U?.toolsDescriptionText,
2088
+ "--cat-tools-count-text": U?.toolsCountText,
2062
2089
  "--cat-grid-border": U?.gridBorder,
2063
2090
  "--cat-grid-header-text": U?.gridHeaderText,
2064
2091
  "--cat-grid-header-bg": U?.gridHeaderBackground,
@@ -2165,7 +2192,7 @@ var X = /* @__PURE__ */ function(e) {
2165
2192
  hasWriteAccess: O,
2166
2193
  defaultAuthor: k,
2167
2194
  onCreateFolder: j,
2168
- onPublish: ee ?? br,
2195
+ onPublish: ee ?? xr,
2169
2196
  onPublishSuccess: dt,
2170
2197
  onPublishError: te,
2171
2198
  onFetchExistingRules: M
@@ -2236,12 +2263,12 @@ var X = /* @__PURE__ */ function(e) {
2236
2263
  Tt != null && await we?.(e, { level: Tt });
2237
2264
  break;
2238
2265
  case Z.Unpublish: {
2239
- let t = yr(zt, Ot);
2266
+ let t = br(zt, Ot);
2240
2267
  t != null && await V?.(e, t.segments);
2241
2268
  break;
2242
2269
  }
2243
2270
  }
2244
- _t(null), X(null), Dt(null), kt(null), kr.has(gt) && l();
2271
+ _t(null), X(null), Dt(null), kt(null), Ar.has(gt) && l();
2245
2272
  } catch {
2246
2273
  _t(null), X(null), Dt(null), kt(null);
2247
2274
  } finally {
@@ -2308,7 +2335,10 @@ var X = /* @__PURE__ */ function(e) {
2308
2335
  Xt,
2309
2336
  Fe
2310
2337
  ]);
2311
- let $t = L(() => It(H), [H]), en = H?.overviewYesLabel ?? "Yes", tn = H?.overviewNoLabel ?? "No", nn = H?.ariaLabel ?? "Item details", rn = H?.closeAriaLabel ?? "Close", an = Pe ? H?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : H?.addToFavoritesAriaLabel ?? "Add to favorites", on = H?.publishTitle ?? "Publish", sn = H?.backToDetailsAriaLabel ?? "Back", cn = H?.cancelLabel ?? "Cancel", ln = L(() => {
2338
+ let $t = L(() => It(H), [H]), en = L(() => {
2339
+ let e = {};
2340
+ return H?.toolsSearchPlaceholder != null && (e.searchPlaceholder = H.toolsSearchPlaceholder), H?.toolsSearchClearLabel != null && (e.searchClearLabel = H.toolsSearchClearLabel), H?.toolsCountLabel != null && (e.toolCount = H.toolsCountLabel), H?.toolsNoResultsLabel != null && (e.noResults = H.toolsNoResultsLabel), e;
2341
+ }, [H]), tn = H?.overviewYesLabel ?? "Yes", nn = H?.overviewNoLabel ?? "No", rn = H?.ariaLabel ?? "Item details", an = H?.closeAriaLabel ?? "Close", on = Pe ? H?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : H?.addToFavoritesAriaLabel ?? "Add to favorites", sn = H?.publishTitle ?? "Publish", cn = H?.backToDetailsAriaLabel ?? "Back", ln = H?.cancelLabel ?? "Cancel", Q = L(() => {
2312
2342
  switch (gt) {
2313
2343
  case Z.Delete: {
2314
2344
  let t = H?.deleteActionLabel ?? "Delete";
@@ -2319,7 +2349,7 @@ var X = /* @__PURE__ */ function(e) {
2319
2349
  /* @__PURE__ */ J("strong", { children: e.name }),
2320
2350
  "? This action is permanent and cannot be undone."
2321
2351
  ] }),
2322
- consequences: H?.deleteConfirmConsequences ?? Cr,
2352
+ consequences: H?.deleteConfirmConsequences ?? wr,
2323
2353
  confirmLabel: t,
2324
2354
  loadingStatusLabel: H?.deletingStatusLabel ?? "Deleting",
2325
2355
  variant: xe.Danger
@@ -2334,7 +2364,7 @@ var X = /* @__PURE__ */ function(e) {
2334
2364
  /* @__PURE__ */ J("strong", { children: e.name }),
2335
2365
  " from your list? You'll need a new invitation to access it again."
2336
2366
  ] }),
2337
- consequences: H?.unshareConfirmConsequences ?? wr,
2367
+ consequences: H?.unshareConfirmConsequences ?? Tr,
2338
2368
  confirmLabel: t,
2339
2369
  loadingStatusLabel: H?.unsharingStatusLabel ?? "Removing",
2340
2370
  variant: xe.Info
@@ -2349,7 +2379,7 @@ var X = /* @__PURE__ */ function(e) {
2349
2379
  /* @__PURE__ */ J("strong", { children: e.name }),
2350
2380
  "? Anyone you shared it with will lose access."
2351
2381
  ] }),
2352
- consequences: H?.revokeShareConfirmConsequences ?? Er,
2382
+ consequences: H?.revokeShareConfirmConsequences ?? Dr,
2353
2383
  confirmLabel: t,
2354
2384
  loadingStatusLabel: H?.revokingShareStatusLabel ?? "Revoking access",
2355
2385
  variant: xe.Danger
@@ -2370,7 +2400,7 @@ var X = /* @__PURE__ */ function(e) {
2370
2400
  return {
2371
2401
  title: H?.unpublishConfirmTitle ?? t,
2372
2402
  message: n ? i : a,
2373
- consequences: H?.unpublishConfirmConsequences ?? Tr,
2403
+ consequences: H?.unpublishConfirmConsequences ?? Er,
2374
2404
  confirmLabel: t,
2375
2405
  loadingStatusLabel: H?.unpublishingStatusLabel ?? "Requesting unpublish",
2376
2406
  variant: xe.Danger
@@ -2391,7 +2421,7 @@ var X = /* @__PURE__ */ function(e) {
2391
2421
  let e = H?.deleteActionLabel ?? "Delete", n = Tt ?? t.User;
2392
2422
  return {
2393
2423
  title: e,
2394
- message: (H?.deleteApiKeyConfirmMessage ?? Or)(n),
2424
+ message: (H?.deleteApiKeyConfirmMessage ?? kr)(n),
2395
2425
  consequences: void 0,
2396
2426
  confirmLabel: e,
2397
2427
  loadingStatusLabel: H?.deletingStatusLabel ?? "Deleting",
@@ -2408,32 +2438,32 @@ var X = /* @__PURE__ */ function(e) {
2408
2438
  H,
2409
2439
  zt,
2410
2440
  Vt
2411
- ]), Q = ln != null, fn = gt === Z.Unpublish && yr(zt, Ot) == null, pn = Q || Le || mt, mn = e.credentials == null ? "" : (H?.credentialsManagementTitle ?? Dr)(e.credentials.authenticationType), hn = Q ? {
2412
- title: ln.title,
2441
+ ]), fn = Q != null, pn = gt === Z.Unpublish && br(zt, Ot) == null, mn = fn || Le || mt, hn = e.credentials == null ? "" : (H?.credentialsManagementTitle ?? Or)(e.credentials.authenticationType), gn = fn ? {
2442
+ title: Q.title,
2413
2443
  isBackDisabled: vt,
2414
2444
  onBack: Wt
2415
2445
  } : Le ? {
2416
- title: on,
2446
+ title: sn,
2417
2447
  isBackDisabled: q.isSubmitting,
2418
2448
  onBack: qt
2419
2449
  } : mt ? {
2420
- title: mn,
2450
+ title: hn,
2421
2451
  isBackDisabled: !1,
2422
2452
  onBack: Mt
2423
- } : null, gn = hn?.title ?? nn;
2453
+ } : null, _n = gn?.title ?? rn;
2424
2454
  return /* @__PURE__ */ Y(Ve, {
2425
2455
  open: i,
2426
2456
  onClose: l,
2427
- header: hn?.title,
2428
- ariaLabel: gn,
2429
- onBack: hn?.onBack,
2430
- backAriaLabel: sn,
2431
- backDisabled: hn?.isBackDisabled,
2432
- hideClose: hn != null,
2433
- closeAriaLabel: rn,
2434
- headerActions: hn == null && !c && f?.(e) !== !1 ? /* @__PURE__ */ J(Qt, {
2457
+ header: gn?.title,
2458
+ ariaLabel: _n,
2459
+ onBack: gn?.onBack,
2460
+ backAriaLabel: cn,
2461
+ backDisabled: gn?.isBackDisabled,
2462
+ hideClose: gn != null,
2463
+ closeAriaLabel: an,
2464
+ headerActions: gn == null && !c && f?.(e) !== !1 ? /* @__PURE__ */ J(Qt, {
2435
2465
  isStarred: Pe,
2436
- ariaLabel: an,
2466
+ ariaLabel: on,
2437
2467
  onClick: Yt
2438
2468
  }) : void 0,
2439
2469
  style: Ne,
@@ -2447,11 +2477,11 @@ var X = /* @__PURE__ */ function(e) {
2447
2477
  /* @__PURE__ */ Y("div", {
2448
2478
  className: P("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", In.content),
2449
2479
  children: [
2450
- Q && /* @__PURE__ */ J(E, {
2480
+ fn && /* @__PURE__ */ J(E, {
2451
2481
  item: e,
2452
- message: ln.message,
2453
- consequences: ln.consequences,
2454
- variant: ln.cardVariant ?? ln.variant,
2482
+ message: Q.message,
2483
+ consequences: Q.consequences,
2484
+ variant: Q.cardVariant ?? Q.variant,
2455
2485
  messageClassName: Me,
2456
2486
  styles: { colors: {
2457
2487
  messageText: U?.confirmMessageText,
@@ -2471,7 +2501,7 @@ var X = /* @__PURE__ */ function(e) {
2471
2501
  radioClassName: Me
2472
2502
  })
2473
2503
  }),
2474
- !Q && !Le && mt && /* @__PURE__ */ J(Fn, {
2504
+ !fn && !Le && mt && /* @__PURE__ */ J(Fn, {
2475
2505
  item: e,
2476
2506
  onLogin: Ce,
2477
2507
  onRequestLogout: Ft,
@@ -2479,7 +2509,7 @@ var X = /* @__PURE__ */ function(e) {
2479
2509
  texts: H,
2480
2510
  detailsStyles: Te
2481
2511
  }),
2482
- !Q && Le && /* @__PURE__ */ J("div", {
2512
+ !fn && Le && /* @__PURE__ */ J("div", {
2483
2513
  className: "p-[22px]",
2484
2514
  children: /* @__PURE__ */ J(St, {
2485
2515
  resource: {
@@ -2516,7 +2546,7 @@ var X = /* @__PURE__ */ function(e) {
2516
2546
  } }
2517
2547
  })
2518
2548
  }),
2519
- !pn && /* @__PURE__ */ Y(bt, { children: [
2549
+ !mn && /* @__PURE__ */ Y(bt, { children: [
2520
2550
  /* @__PURE__ */ J(qn, {
2521
2551
  item: e,
2522
2552
  onUseInChat: p,
@@ -2620,8 +2650,8 @@ var X = /* @__PURE__ */ function(e) {
2620
2650
  labelClassName: ke,
2621
2651
  valueClassName: Ae,
2622
2652
  valueTrueClassName: je,
2623
- yesLabel: en,
2624
- noLabel: tn
2653
+ yesLabel: tn,
2654
+ noLabel: nn
2625
2655
  }),
2626
2656
  Fe === n.Pricing && /* @__PURE__ */ J(pr, {
2627
2657
  pricing: e.details?.pricing,
@@ -2645,24 +2675,27 @@ var X = /* @__PURE__ */ function(e) {
2645
2675
  copyAriaLabel: H?.copyCodeAriaLabel,
2646
2676
  copiedStatusLabel: H?.copiedCodeStatusLabel
2647
2677
  }),
2648
- Fe === n.Tools && /* @__PURE__ */ J(vr, { tools: e.details?.tools })
2678
+ Fe === n.Tools && /* @__PURE__ */ J(yr, {
2679
+ tools: e.details?.tools,
2680
+ labels: en
2681
+ })
2649
2682
  ]
2650
2683
  })
2651
2684
  ] })
2652
2685
  ]
2653
2686
  }),
2654
- Q && /* @__PURE__ */ J(T, {
2655
- confirmLabel: ln.confirmLabel,
2656
- cancelLabel: cn,
2657
- variant: ln.variant,
2687
+ fn && /* @__PURE__ */ J(T, {
2688
+ confirmLabel: Q.confirmLabel,
2689
+ cancelLabel: ln,
2690
+ variant: Q.variant,
2658
2691
  isLoading: vt,
2659
- isConfirmDisabled: fn,
2660
- loadingStatusLabel: ln.loadingStatusLabel,
2692
+ isConfirmDisabled: pn,
2693
+ loadingStatusLabel: Q.loadingStatusLabel,
2661
2694
  styles: { colors: { border: U?.confirmFooterBorder } },
2662
2695
  onConfirm: Gt,
2663
2696
  onCancel: Wt
2664
2697
  }),
2665
- !Q && Le && /* @__PURE__ */ J(xt, {
2698
+ !fn && Le && /* @__PURE__ */ J(xt, {
2666
2699
  version: e.version,
2667
2700
  hasExistingPublicationInFolder: q.hasExistingPublicationInFolder,
2668
2701
  isSubmitDisabled: pt.isSubmitDisabled,
@@ -2673,7 +2706,7 @@ var X = /* @__PURE__ */ function(e) {
2673
2706
  })
2674
2707
  ]
2675
2708
  });
2676
- }, jr = {
2709
+ }, Mr = {
2677
2710
  pageNav: "_pageNav_14qfn_1",
2678
2711
  navBtn: "_navBtn_14qfn_6",
2679
2712
  titleText: "_titleText_14qfn_23",
@@ -2688,7 +2721,7 @@ var X = /* @__PURE__ */ function(e) {
2688
2721
  favFadeIn: "_favFadeIn_14qfn_1",
2689
2722
  cardLeaving: "_cardLeaving_14qfn_54",
2690
2723
  cardFadeOut: "_cardFadeOut_14qfn_1"
2691
- }, Mr = ({ 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 }) => {
2724
+ }, Nr = ({ 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 }) => {
2692
2725
  let [m, h] = z(t), [g, _] = z(!1), v = (t) => {
2693
2726
  t.stopPropagation();
2694
2727
  let r = !m;
@@ -2705,7 +2738,7 @@ var X = /* @__PURE__ */ function(e) {
2705
2738
  role: y == null ? void 0 : "button",
2706
2739
  tabIndex: y == null ? void 0 : 0,
2707
2740
  "aria-label": e.name,
2708
- className: P("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", g && jr.cardLeaving, f && jr.selectedCard, Ft.favoriteCard),
2741
+ className: P("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", g && Mr.cardLeaving, f && Mr.selectedCard, Ft.favoriteCard),
2709
2742
  onClick: y,
2710
2743
  onKeyDown: b,
2711
2744
  onAnimationEnd: g ? (t) => {
@@ -2714,7 +2747,7 @@ var X = /* @__PURE__ */ function(e) {
2714
2747
  children: [
2715
2748
  f && /* @__PURE__ */ J(Xe, {
2716
2749
  size: B.SM,
2717
- className: P("absolute end-3 top-3 shrink-0", jr.selectedCheck),
2750
+ className: P("absolute end-3 top-3 shrink-0", Mr.selectedCheck),
2718
2751
  "aria-hidden": !0,
2719
2752
  stroke: V
2720
2753
  }),
@@ -2752,7 +2785,7 @@ var X = /* @__PURE__ */ function(e) {
2752
2785
  })
2753
2786
  ]
2754
2787
  });
2755
- }, Nr = 2, Pr = (e) => {
2788
+ }, Pr = 2, Fr = (e) => {
2756
2789
  let t = e.getBoundingClientRect(), n = window.scrollX, r = window.scrollY, i = window.getComputedStyle(e).transform;
2757
2790
  if (!i || i === "none") return new DOMRect(t.x + n, t.y + r, t.width, t.height);
2758
2791
  try {
@@ -2761,7 +2794,7 @@ var X = /* @__PURE__ */ function(e) {
2761
2794
  } catch {
2762
2795
  return new DOMRect(t.x + n, t.y + r, t.width, t.height);
2763
2796
  }
2764
- }, Fr = ({ 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 }) => {
2797
+ }, Ir = ({ 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 }) => {
2765
2798
  let h = o?.typography?.titleClassName ?? "dial-body-semi-text", g = o?.typography?.countClassName ?? "dial-tiny-semi-text", _ = ie({
2766
2799
  "--cat-fav-title-text": o?.colors?.titleText,
2767
2800
  "--cat-fav-count-text": o?.colors?.countText,
@@ -2774,7 +2807,7 @@ var X = /* @__PURE__ */ function(e) {
2774
2807
  "--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
2775
2808
  "--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
2776
2809
  "--cat-fav-page-nav-bg": o?.colors?.pageNavBackground
2777
- }), v = L(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = z(1), x = Pt(), S = x * Nr, C = (y - 1) * S, w = L(() => v.slice(C, C + S), [
2810
+ }), v = L(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = z(1), x = Pt(), S = x * Pr, C = (y - 1) * S, w = L(() => v.slice(C, C + S), [
2778
2811
  v,
2779
2812
  C,
2780
2813
  S
@@ -2807,7 +2840,7 @@ var X = /* @__PURE__ */ function(e) {
2807
2840
  N.current = y, ae.current = x;
2808
2841
  let n = k.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
2809
2842
  if (n.forEach((e) => {
2810
- r.set(e.dataset.cardId, Pr(e));
2843
+ r.set(e.dataset.cardId, Fr(e));
2811
2844
  }), !e && !t) {
2812
2845
  let e = O.current, t = oe.current, i = 0;
2813
2846
  if (e) {
@@ -2863,7 +2896,7 @@ var X = /* @__PURE__ */ function(e) {
2863
2896
  ref: D,
2864
2897
  children: /* @__PURE__ */ Y("section", {
2865
2898
  ref: O,
2866
- className: P("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", jr.section, s && jr.sectionLeaving),
2899
+ className: P("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", Mr.section, s && Mr.sectionLeaving),
2867
2900
  style: {
2868
2901
  ..._,
2869
2902
  minHeight: j
@@ -2874,17 +2907,17 @@ var X = /* @__PURE__ */ function(e) {
2874
2907
  children: [/* @__PURE__ */ J(te, {
2875
2908
  title: n,
2876
2909
  postfix: E,
2877
- titleClassName: P(h, jr.titleText),
2878
- postfixClassName: P(g, jr.countText),
2910
+ titleClassName: P(h, Mr.titleText),
2911
+ postfixClassName: P(g, Mr.countText),
2879
2912
  trailing: T > 1 ? /* @__PURE__ */ Y("div", {
2880
- className: P("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", jr.pageNav),
2913
+ className: P("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", Mr.pageNav),
2881
2914
  children: [
2882
2915
  /* @__PURE__ */ J(Oe, {
2883
2916
  size: H.Small,
2884
2917
  "aria-label": l,
2885
2918
  disabled: y === 1,
2886
2919
  onClick: () => b((e) => e - 1),
2887
- className: P("rounded-full", jr.navBtn),
2920
+ className: P("rounded-full", Mr.navBtn),
2888
2921
  icon: /* @__PURE__ */ J(Qe, {
2889
2922
  size: 14,
2890
2923
  "aria-hidden": !0,
@@ -2893,7 +2926,7 @@ var X = /* @__PURE__ */ function(e) {
2893
2926
  })
2894
2927
  }),
2895
2928
  /* @__PURE__ */ Y("span", {
2896
- className: P("min-w-[32px] select-none px-1 text-center", g, jr.countText),
2929
+ className: P("min-w-[32px] select-none px-1 text-center", g, Mr.countText),
2897
2930
  children: [
2898
2931
  y,
2899
2932
  " / ",
@@ -2905,7 +2938,7 @@ var X = /* @__PURE__ */ function(e) {
2905
2938
  "aria-label": u,
2906
2939
  disabled: y === T,
2907
2940
  onClick: () => b((e) => e + 1),
2908
- className: P("rounded-full", jr.navBtn),
2941
+ className: P("rounded-full", Mr.navBtn),
2909
2942
  icon: /* @__PURE__ */ J($e, {
2910
2943
  size: 14,
2911
2944
  "aria-hidden": !0,
@@ -2917,12 +2950,12 @@ var X = /* @__PURE__ */ function(e) {
2917
2950
  }) : void 0
2918
2951
  }), /* @__PURE__ */ J("div", {
2919
2952
  ref: k,
2920
- className: P("grid content-start gap-5", jr.gridPage),
2953
+ className: P("grid content-start gap-5", Mr.gridPage),
2921
2954
  style: {
2922
2955
  gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
2923
2956
  minHeight: ee
2924
2957
  },
2925
- children: w.map((e) => /* @__PURE__ */ J(Mr, {
2958
+ children: w.map((e) => /* @__PURE__ */ J(Nr, {
2926
2959
  item: e,
2927
2960
  onToggle: r,
2928
2961
  isFavoriteVisible: i,
@@ -2935,15 +2968,15 @@ var X = /* @__PURE__ */ function(e) {
2935
2968
  })]
2936
2969
  })
2937
2970
  });
2938
- }, Ir = (e, t) => {
2971
+ }, Lr = (e, t) => {
2939
2972
  let n = new Set(e);
2940
2973
  return n.has(t) ? n.delete(t) : n.add(t), n;
2941
- }, Lr = (e, t) => {
2974
+ }, Rr = (e, t) => {
2942
2975
  let n = new Set(e), r = t.length > 0 && t.every((t) => e.has(t));
2943
2976
  return t.forEach((e) => {
2944
2977
  r ? n.delete(e) : n.add(e);
2945
2978
  }), n;
2946
- }, Rr = {
2979
+ }, zr = {
2947
2980
  listContainer: "_listContainer_uwfwj_1",
2948
2981
  gridClip: "_gridClip_uwfwj_6",
2949
2982
  favHeader: "_favHeader_uwfwj_35",
@@ -2952,19 +2985,19 @@ var X = /* @__PURE__ */ function(e) {
2952
2985
  selectedCheck: "_selectedCheck_uwfwj_47",
2953
2986
  starToggleOff: "_starToggleOff_uwfwj_51",
2954
2987
  selectedRow: "_selectedRow_uwfwj_64"
2955
- }, zr = ({ data: e }) => e ? /* @__PURE__ */ J("div", {
2988
+ }, Br = ({ data: e }) => e ? /* @__PURE__ */ J("div", {
2956
2989
  className: "flex h-full items-center",
2957
2990
  children: /* @__PURE__ */ J(ee, { type: e.type })
2958
- }) : null, Br = " / ", Vr = ({ data: e, context: t }) => {
2991
+ }) : null, Vr = " / ", Hr = ({ data: e, context: t }) => {
2959
2992
  if (!e || e.folder.length === 0) return null;
2960
- let n = e.folder.join(Br), 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";
2993
+ let n = e.folder.join(Vr), 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";
2961
2994
  return /* @__PURE__ */ Y("div", {
2962
2995
  className: "flex h-full w-full min-w-0 items-center gap-1.5",
2963
2996
  children: [
2964
2997
  /* @__PURE__ */ J(it, {
2965
2998
  size: B.SM,
2966
2999
  stroke: V,
2967
- className: P("shrink-0", Rr.folderIcon),
3000
+ className: P("shrink-0", zr.folderIcon),
2968
3001
  "aria-hidden": !0
2969
3002
  }),
2970
3003
  /* @__PURE__ */ J(G, {
@@ -2986,7 +3019,7 @@ var X = /* @__PURE__ */ function(e) {
2986
3019
  })
2987
3020
  ]
2988
3021
  });
2989
- }, Hr = ({ data: e, context: t }) => {
3022
+ }, Ur = ({ data: e, context: t }) => {
2990
3023
  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;
2991
3024
  return e ? /* @__PURE__ */ Y("div", {
2992
3025
  className: "flex h-full w-full min-w-0 items-center gap-2.5",
@@ -3010,18 +3043,18 @@ var X = /* @__PURE__ */ function(e) {
3010
3043
  className: "min-w-0 flex-1 items-baseline gap-1.5",
3011
3044
  trailing: o ? /* @__PURE__ */ J(Xe, {
3012
3045
  size: B.SM,
3013
- className: P("shrink-0", Rr.selectedCheck),
3046
+ className: P("shrink-0", zr.selectedCheck),
3014
3047
  "aria-hidden": !0,
3015
3048
  stroke: V
3016
3049
  }) : void 0
3017
3050
  })]
3018
3051
  }) : null;
3019
- }, Ur = se(null), Wr = () => {
3020
- let e = ue(Ur);
3052
+ }, Wr = se(null), Gr = () => {
3053
+ let e = ue(Wr);
3021
3054
  if (e == null) throw Error("useListSelection must be used inside a ListView in multiple selection mode.");
3022
3055
  return e;
3023
- }, Gr = ({ data: e }) => {
3024
- let { selectedIds: t, toggle: n, getRowAriaLabel: r } = Wr();
3056
+ }, Kr = ({ data: e }) => {
3057
+ let { selectedIds: t, toggle: n, getRowAriaLabel: r } = Gr();
3025
3058
  return e ? /* @__PURE__ */ J("div", {
3026
3059
  className: "flex size-full items-center",
3027
3060
  children: /* @__PURE__ */ J(be, {
@@ -3030,8 +3063,8 @@ var X = /* @__PURE__ */ function(e) {
3030
3063
  onChange: () => n(e.id)
3031
3064
  })
3032
3065
  }) : null;
3033
- }, Kr = () => {
3034
- let { isAllSelected: e, isSomeSelected: t, hasItems: n, toggleAll: r, selectAllAriaLabel: i } = Wr();
3066
+ }, qr = () => {
3067
+ let { isAllSelected: e, isSomeSelected: t, hasItems: n, toggleAll: r, selectAllAriaLabel: i } = Gr();
3035
3068
  return /* @__PURE__ */ J("div", {
3036
3069
  className: "flex size-full items-center",
3037
3070
  children: /* @__PURE__ */ J(be, {
@@ -3042,7 +3075,7 @@ var X = /* @__PURE__ */ function(e) {
3042
3075
  onChange: r
3043
3076
  })
3044
3077
  });
3045
- }, qr = ({ data: e, context: t }) => {
3078
+ }, Jr = ({ data: e, context: t }) => {
3046
3079
  let [n, r] = z(e?.isStarred ?? !1);
3047
3080
  return I(() => {
3048
3081
  r(e?.isStarred ?? !1);
@@ -3055,35 +3088,35 @@ var X = /* @__PURE__ */ function(e) {
3055
3088
  let a = !n;
3056
3089
  r(a), t?.onToggleFavorite?.(e.id, a);
3057
3090
  },
3058
- className: n ? void 0 : Rr.starToggleOff
3091
+ className: n ? void 0 : zr.starToggleOff
3059
3092
  })
3060
3093
  });
3061
- }, Jr = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ J("div", {
3094
+ }, Yr = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ J("div", {
3062
3095
  className: "flex h-full w-full min-w-0 items-center",
3063
3096
  children: /* @__PURE__ */ J(rn, { topics: e.topics })
3064
- }), Yr = "selection", Xr = 52, Zr = {
3097
+ }), Xr = "selection", Zr = 52, Qr = {
3065
3098
  folder: (e) => e !== w.Model,
3066
3099
  tags: () => !0,
3067
3100
  favorite: () => !0
3068
- }, Qr = (e, t) => Object.fromEntries([
3101
+ }, $r = (e, t) => Object.fromEntries([
3069
3102
  "folder",
3070
3103
  "tags",
3071
3104
  "favorite"
3072
- ].map((n) => [n, (t?.[n] ?? Zr[n])(e)])), $r = (e, t = !1, n, r = !1) => {
3073
- let i = Qr(e, n);
3105
+ ].map((n) => [n, (t?.[n] ?? Qr[n])(e)])), ei = (e, t = !1, n, r = !1) => {
3106
+ let i = $r(e, n);
3074
3107
  return [
3075
3108
  ...r ? [{
3076
- colId: Yr,
3109
+ colId: Xr,
3077
3110
  headerName: "",
3078
- width: Xr,
3079
- minWidth: Xr,
3080
- maxWidth: Xr,
3111
+ width: Zr,
3112
+ minWidth: Zr,
3113
+ maxWidth: Zr,
3081
3114
  filter: !1,
3082
3115
  sortable: !1,
3083
3116
  resizable: !1,
3084
3117
  suppressMovable: !0,
3085
- headerComponent: Kr,
3086
- cellRenderer: Gr
3118
+ headerComponent: qr,
3119
+ cellRenderer: Kr
3087
3120
  }] : [],
3088
3121
  {
3089
3122
  headerName: "Name",
@@ -3091,7 +3124,7 @@ var X = /* @__PURE__ */ function(e) {
3091
3124
  minWidth: 220,
3092
3125
  field: "name",
3093
3126
  filter: !1,
3094
- cellRenderer: Hr,
3127
+ cellRenderer: Ur,
3095
3128
  valueGetter: (e) => e.data?.name
3096
3129
  },
3097
3130
  {
@@ -3101,7 +3134,7 @@ var X = /* @__PURE__ */ function(e) {
3101
3134
  field: "type",
3102
3135
  filter: !1,
3103
3136
  sortable: !1,
3104
- cellRenderer: zr,
3137
+ cellRenderer: Br,
3105
3138
  valueGetter: (e) => e.data?.type
3106
3139
  },
3107
3140
  {
@@ -3111,7 +3144,7 @@ var X = /* @__PURE__ */ function(e) {
3111
3144
  minWidth: 170,
3112
3145
  filter: !1,
3113
3146
  hide: !i.folder,
3114
- cellRenderer: Vr,
3147
+ cellRenderer: Hr,
3115
3148
  valueGetter: (e) => e.data?.folder
3116
3149
  },
3117
3150
  {
@@ -3122,7 +3155,7 @@ var X = /* @__PURE__ */ function(e) {
3122
3155
  filter: !1,
3123
3156
  sortable: !1,
3124
3157
  hide: !i.tags,
3125
- cellRenderer: Jr,
3158
+ cellRenderer: Yr,
3126
3159
  valueGetter: (e) => e.data?.topics
3127
3160
  },
3128
3161
  {
@@ -3134,15 +3167,15 @@ var X = /* @__PURE__ */ function(e) {
3134
3167
  sortable: !1,
3135
3168
  resizable: !1,
3136
3169
  hide: t || !i.favorite,
3137
- headerClass: Rr.favHeader,
3138
- cellRenderer: qr
3170
+ headerClass: zr.favHeader,
3171
+ cellRenderer: Jr
3139
3172
  }
3140
3173
  ];
3141
- }, ei = 60, ti = {}, ni = /* @__PURE__ */ new Set(), ri = "Select all", ii = (e) => e.id, ai = (e) => `Select ${e.name}`, oi = (e) => e.items.length === 0 ? /* @__PURE__ */ J("div", {
3174
+ }, ti = 60, ni = {}, ri = /* @__PURE__ */ new Set(), ii = "Select all", ai = (e) => e.id, oi = (e) => `Select ${e.name}`, si = (e) => e.items.length === 0 ? /* @__PURE__ */ J("div", {
3142
3175
  className: K("flex size-full flex-col items-center justify-center", Ft.listView),
3143
3176
  children: /* @__PURE__ */ J(M, { label: e.emptyStateTitle ?? "No results" })
3144
- }) : /* @__PURE__ */ J(si, { ...e }), si = ({ 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 = At.Single, selectedItemIds: h = ni, onSelectionChange: g, selectRowAriaLabel: _ = ai, selectAllAriaLabel: v = ri }) => {
3145
- let y = m === At.Multiple, b = y ? void 0 : u, x = a?.typography ?? ti, S = a?.colors, C = {
3177
+ }) : /* @__PURE__ */ J(ci, { ...e }), ci = ({ 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 = At.Single, selectedItemIds: h = ri, onSelectionChange: g, selectRowAriaLabel: _ = oi, selectAllAriaLabel: v = ii }) => {
3178
+ let y = m === At.Multiple, b = y ? void 0 : u, x = a?.typography ?? ni, S = a?.colors, C = {
3146
3179
  "--cat-list-bg": S?.background,
3147
3180
  "--cat-list-border": S?.border,
3148
3181
  "--cat-list-header-bg": S?.headerBackground,
@@ -3156,12 +3189,12 @@ var X = /* @__PURE__ */ function(e) {
3156
3189
  ...l == null ? {} : { "--list-header-sticky-top": `${l}px` }
3157
3190
  }, w = R(null), T = F((e) => {
3158
3191
  w.current = e;
3159
- }, []), E = L(() => $r(t, f, p, y), [
3192
+ }, []), E = L(() => ei(t, f, p, y), [
3160
3193
  t,
3161
3194
  f,
3162
3195
  p,
3163
3196
  y
3164
- ]), D = L(() => e.map(ii), [e]), O = L(() => D.filter((e) => h.has(e)).length, [D, h]), k = F((e) => g?.(Ir(h, e)), [g, h]), ee = F(() => g?.(Lr(h, D)), [
3197
+ ]), D = L(() => e.map(ai), [e]), O = L(() => D.filter((e) => h.has(e)).length, [D, h]), k = F((e) => g?.(Lr(h, e)), [g, h]), ee = F(() => g?.(Rr(h, D)), [
3165
3198
  g,
3166
3199
  h,
3167
3200
  D
@@ -3191,7 +3224,7 @@ var X = /* @__PURE__ */ function(e) {
3191
3224
  t != null && (e.preventDefault(), k(t));
3192
3225
  }, [k]), ne = L(() => ({
3193
3226
  domLayout: "autoHeight",
3194
- rowHeight: ei,
3227
+ rowHeight: ti,
3195
3228
  animateRows: !1,
3196
3229
  suppressAnimationFrame: !0,
3197
3230
  suppressScrollOnNewData: !0,
@@ -3213,7 +3246,7 @@ var X = /* @__PURE__ */ function(e) {
3213
3246
  t.field !== "isStarred" && t.colId !== "selection" && e.data && (y && te.current(e.data.id), c?.(e.data));
3214
3247
  } : void 0,
3215
3248
  rowClass: c || y ? "cursor-pointer" : void 0,
3216
- getRowClass: (e) => e.data?.id === b ? Rr.selectedRow : void 0
3249
+ getRowClass: (e) => e.data?.id === b ? zr.selectedRow : void 0
3217
3250
  }), [
3218
3251
  n,
3219
3252
  x,
@@ -3224,7 +3257,7 @@ var X = /* @__PURE__ */ function(e) {
3224
3257
  f,
3225
3258
  c,
3226
3259
  y
3227
- ]), { containerRef: re, startRow: M, endRow: N } = Wt(e.length, ei), ie = L(() => e.slice(M, N), [
3260
+ ]), { containerRef: re, startRow: M, endRow: N } = Wt(e.length, ti), ie = L(() => e.slice(M, N), [
3228
3261
  e,
3229
3262
  M,
3230
3263
  N
@@ -3235,22 +3268,22 @@ var X = /* @__PURE__ */ function(e) {
3235
3268
  w.current?.redrawRows();
3236
3269
  }, [b]), /* @__PURE__ */ J("div", {
3237
3270
  style: C,
3238
- className: K("w-full rounded-xl border", Rr.listContainer, Ft.listView),
3271
+ className: K("w-full rounded-xl border", zr.listContainer, Ft.listView),
3239
3272
  children: /* @__PURE__ */ Y("div", {
3240
3273
  ref: re,
3241
3274
  onKeyDown: y ? j : void 0,
3242
- className: K("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", Rr.gridClip),
3275
+ className: K("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", zr.gridClip),
3243
3276
  children: [
3244
3277
  M > 0 && /* @__PURE__ */ J("div", {
3245
- style: { height: M * ei },
3278
+ style: { height: M * ti },
3246
3279
  "aria-hidden": !0
3247
3280
  }),
3248
- /* @__PURE__ */ J(Ur.Provider, {
3281
+ /* @__PURE__ */ J(Wr.Provider, {
3249
3282
  value: A,
3250
3283
  children: /* @__PURE__ */ J(Tt, {
3251
3284
  columnDefs: E,
3252
3285
  rowData: ie,
3253
- getRowId: ii,
3286
+ getRowId: ai,
3254
3287
  withoutHeaderBorders: !0,
3255
3288
  wrapCustomCellRenderers: !1,
3256
3289
  onGridApiChange: T,
@@ -3260,13 +3293,13 @@ var X = /* @__PURE__ */ function(e) {
3260
3293
  })
3261
3294
  }),
3262
3295
  N < e.length && /* @__PURE__ */ J("div", {
3263
- style: { height: (e.length - N) * ei },
3296
+ style: { height: (e.length - N) * ti },
3264
3297
  "aria-hidden": !0
3265
3298
  })
3266
3299
  ]
3267
3300
  })
3268
3301
  });
3269
- }, ci = {
3302
+ }, li = {
3270
3303
  filterBtn: "_filterBtn_5r8a5_7",
3271
3304
  filterBtnActive: "_filterBtnActive_5r8a5_24",
3272
3305
  filterBtnOpen: "_filterBtnOpen_5r8a5_28",
@@ -3278,13 +3311,13 @@ var X = /* @__PURE__ */ function(e) {
3278
3311
  divider: "_divider_5r8a5_63",
3279
3312
  sectionLabel: "_sectionLabel_5r8a5_67",
3280
3313
  footer: "_footer_5r8a5_71"
3281
- }, li = (e, t, n, r, i) => {
3314
+ }, ui = (e, t, n, r, i) => {
3282
3315
  let a = e.size > 0;
3283
3316
  return n && a ? `${r} · ${e.size}` : n ? r : a ? l(e, t, i) : i;
3284
- }, ui = (e, t) => {
3317
+ }, di = (e, t) => {
3285
3318
  let n = new Set(t);
3286
3319
  return n.has(e) ? n.delete(e) : n.add(e), n;
3287
- }, di = ({ 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 }) => {
3320
+ }, fi = ({ 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 }) => {
3288
3321
  let f = (r ?? !1) || e.size > 0, [p, m] = z(!1), h = ie({
3289
3322
  "--cat-filter-btn-bg": d?.buttonBackground,
3290
3323
  "--cat-filter-btn-border": d?.buttonBorder,
@@ -3301,7 +3334,7 @@ var X = /* @__PURE__ */ function(e) {
3301
3334
  "--cat-filter-section-label": d?.sectionLabel,
3302
3335
  "--cat-filter-divider": d?.divider,
3303
3336
  "--cat-filter-footer-border": d?.footerBorder
3304
- }), g = L(() => n == null ? [] : [...n].sort(), [n]), _ = li(e, n, r, a, s), [v, y] = z(() => new Set(e)), [b, x] = z(r ?? !1);
3337
+ }), g = L(() => n == null ? [] : [...n].sort(), [n]), _ = ui(e, n, r, a, s), [v, y] = z(() => new Set(e)), [b, x] = z(r ?? !1);
3305
3338
  I(() => {
3306
3339
  p && (y(new Set(e)), x(r ?? !1));
3307
3340
  }, [
@@ -3346,7 +3379,7 @@ var X = /* @__PURE__ */ function(e) {
3346
3379
  ...h,
3347
3380
  maxHeight: "calc(var(--fui-available-height, 9999px) - 8px)"
3348
3381
  },
3349
- className: P("flex min-w-[360px] flex-col rounded-xl p-[6px]", ci.overlay),
3382
+ className: P("flex min-w-[360px] flex-col rounded-xl p-[6px]", li.overlay),
3350
3383
  onKeyDown: ee,
3351
3384
  children: [
3352
3385
  /* @__PURE__ */ J(Ne, {
@@ -3355,7 +3388,7 @@ var X = /* @__PURE__ */ function(e) {
3355
3388
  mark: Pe.Checkbox,
3356
3389
  selected: b,
3357
3390
  label: a,
3358
- labelClassName: P(ci.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3391
+ labelClassName: P(li.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3359
3392
  className: "shrink-0",
3360
3393
  tabIndex: C === 0 ? 0 : -1,
3361
3394
  ref: (e) => {
@@ -3366,11 +3399,11 @@ var X = /* @__PURE__ */ function(e) {
3366
3399
  g.length > 0 && /* @__PURE__ */ Y(bt, { children: [
3367
3400
  /* @__PURE__ */ J("div", {
3368
3401
  role: "separator",
3369
- className: P("my-1 h-px", ci.divider),
3402
+ className: P("my-1 h-px", li.divider),
3370
3403
  "aria-hidden": !0
3371
3404
  }),
3372
3405
  /* @__PURE__ */ J("div", {
3373
- className: P("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", ci.sectionLabel),
3406
+ className: P("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", li.sectionLabel),
3374
3407
  "aria-hidden": !0,
3375
3408
  children: o
3376
3409
  }),
@@ -3384,19 +3417,19 @@ var X = /* @__PURE__ */ function(e) {
3384
3417
  mark: Pe.Checkbox,
3385
3418
  selected: n,
3386
3419
  label: e,
3387
- labelClassName: ci.rowLabel,
3420
+ labelClassName: li.rowLabel,
3388
3421
  className: "shrink-0",
3389
3422
  tabIndex: C === r ? 0 : -1,
3390
3423
  ref: (e) => {
3391
3424
  T.current[r] = e;
3392
3425
  },
3393
- onClick: () => y(ui(e, v))
3426
+ onClick: () => y(di(e, v))
3394
3427
  }, e);
3395
3428
  })
3396
3429
  })
3397
3430
  ] }),
3398
3431
  /* @__PURE__ */ Y("div", {
3399
- className: P("mt-1 flex shrink-0 items-center px-1 py-3", ci.footer),
3432
+ className: P("mt-1 flex shrink-0 items-center px-1 py-3", li.footer),
3400
3433
  onKeyDown: (e) => {
3401
3434
  (e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
3402
3435
  },
@@ -3420,24 +3453,24 @@ var X = /* @__PURE__ */ function(e) {
3420
3453
  iconBefore: /* @__PURE__ */ J(rt, {
3421
3454
  size: B.SM,
3422
3455
  stroke: V,
3423
- className: P("shrink-0", ci.filterBtnFunnel),
3456
+ className: P("shrink-0", li.filterBtnFunnel),
3424
3457
  "aria-hidden": !0
3425
3458
  }),
3426
3459
  label: _,
3427
- textClassName: P(ci.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3460
+ textClassName: P(li.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3428
3461
  iconAfter: /* @__PURE__ */ J(Ze, {
3429
3462
  size: 14,
3430
3463
  stroke: V,
3431
- className: P("shrink-0 transition-transform duration-150", ci.filterBtnChevron, p && "rotate-180"),
3464
+ className: P("shrink-0 transition-transform duration-150", li.filterBtnChevron, p && "rotate-180"),
3432
3465
  "aria-hidden": !0
3433
3466
  }),
3434
- className: P("h-12 shrink-0 gap-[7px] whitespace-nowrap !rounded-lg px-[18px]", ci.filterBtn, f && ci.filterBtnActive, p && ci.filterBtnOpen)
3467
+ className: P("h-12 shrink-0 gap-[7px] whitespace-nowrap !rounded-lg px-[18px]", li.filterBtn, f && li.filterBtnActive, p && li.filterBtnOpen)
3435
3468
  })
3436
3469
  });
3437
- }, fi = {
3470
+ }, pi = {
3438
3471
  section: "_section_mh952_1",
3439
3472
  divider: "_divider_mh952_5"
3440
- }, pi = ({ 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 }) => {
3473
+ }, mi = ({ 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 }) => {
3441
3474
  let w = a?.typography?.titleClassName ?? "dial-body-semi-text", T = a?.typography?.countClassName ?? "dial-tiny-semi-text", E = L(() => [{
3442
3475
  value: kt.Grid,
3443
3476
  icon: /* @__PURE__ */ J(ot, {
@@ -3489,7 +3522,7 @@ var X = /* @__PURE__ */ function(e) {
3489
3522
  value: t,
3490
3523
  onChange: n,
3491
3524
  items: E
3492
- }), p != null && p.length > 0 && /* @__PURE__ */ Y(bt, { children: [/* @__PURE__ */ J("div", { className: P("h-4 w-px shrink-0", fi.divider) }), /* @__PURE__ */ J(_e, {
3525
+ }), p != null && p.length > 0 && /* @__PURE__ */ Y(bt, { children: [/* @__PURE__ */ J("div", { className: P("h-4 w-px shrink-0", pi.divider) }), /* @__PURE__ */ J(_e, {
3493
3526
  items: k,
3494
3527
  label: O,
3495
3528
  variant: ve.Primary,
@@ -3509,7 +3542,7 @@ var X = /* @__PURE__ */ function(e) {
3509
3542
  placeholder: c,
3510
3543
  "aria-label": c
3511
3544
  })
3512
- }), /* @__PURE__ */ J(di, {
3545
+ }), /* @__PURE__ */ J(fi, {
3513
3546
  checked: g ?? /* @__PURE__ */ new Set(),
3514
3547
  onChange: _ ?? (() => void 0),
3515
3548
  values: v,
@@ -3522,12 +3555,12 @@ var X = /* @__PURE__ */ function(e) {
3522
3555
  })]
3523
3556
  })]
3524
3557
  });
3525
- }, mi = ({ 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 }) => {
3558
+ }, hi = ({ 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 }) => {
3526
3559
  let b = { "--cat-browse-divider": r?.colors?.divider };
3527
3560
  return /* @__PURE__ */ J("section", {
3528
- className: P("flex-shrink-0 px-4", fi.section, Ft.toolbar),
3561
+ className: P("flex-shrink-0 px-4", pi.section, Ft.toolbar),
3529
3562
  style: b,
3530
- children: /* @__PURE__ */ J(pi, {
3563
+ children: /* @__PURE__ */ J(mi, {
3531
3564
  styles: r,
3532
3565
  query: e,
3533
3566
  onQueryChange: t,
@@ -3550,20 +3583,20 @@ var X = /* @__PURE__ */ function(e) {
3550
3583
  ...y
3551
3584
  })
3552
3585
  });
3553
- }, hi = {
3586
+ }, gi = {
3554
3587
  root: "_root_1h83l_1",
3555
3588
  heading: "_heading_1h83l_5",
3556
3589
  headingTitle: "_headingTitle_1h83l_9"
3557
- }, gi = "w-[320px]", _i = (e, t) => e.map((e) => ({
3590
+ }, _i = "w-[320px]", vi = (e, t) => e.map((e) => ({
3558
3591
  ...e,
3559
3592
  label: typeof e.label == "string" ? /* @__PURE__ */ J(ke, {
3560
3593
  text: e.label,
3561
3594
  query: t,
3562
3595
  maxLines: 1
3563
3596
  }) : e.label,
3564
- children: e.children ? _i(e.children, t) : void 0
3565
- })), vi = ({ open: e, onClose: t, title: n, options: r, search: i, searchPlaceholder: a, searchClearLabel: o, noResultsLabel: s, backLabel: c, closeLabel: l }) => {
3566
- let [u, d] = z(null), f = u ? r.find((e) => e.key === u) : void 0, p = f?.children ?? r, m = i ? _i(p, i.value) : p, h = () => {
3597
+ children: e.children ? vi(e.children, t) : void 0
3598
+ })), yi = ({ open: e, onClose: t, title: n, options: r, search: i, searchPlaceholder: a, searchClearLabel: o, noResultsLabel: s, backLabel: c, closeLabel: l }) => {
3599
+ let [u, d] = z(null), f = u ? r.find((e) => e.key === u) : void 0, p = f?.children ?? r, m = i ? vi(p, i.value) : p, h = () => {
3567
3600
  d(null), t();
3568
3601
  }, g = (e, t) => {
3569
3602
  if (e.children?.length) {
@@ -3616,7 +3649,7 @@ var X = /* @__PURE__ */ function(e) {
3616
3649
  children: s
3617
3650
  })]
3618
3651
  });
3619
- }, yi = ({ 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" }) => {
3652
+ }, bi = ({ 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" }) => {
3620
3653
  let l = R(null), [u, d] = z(!1), f = ae(), p = /* @__PURE__ */ J(Ze, {
3621
3654
  size: B.SM,
3622
3655
  stroke: V,
@@ -3631,7 +3664,7 @@ var X = /* @__PURE__ */ function(e) {
3631
3664
  "aria-haspopup": "dialog",
3632
3665
  "aria-expanded": u,
3633
3666
  onClick: () => d(!0)
3634
- }), /* @__PURE__ */ J(vi, {
3667
+ }), /* @__PURE__ */ J(yi, {
3635
3668
  open: u,
3636
3669
  onClose: () => {
3637
3670
  d(!1), r?.onChange("");
@@ -3647,7 +3680,7 @@ var X = /* @__PURE__ */ function(e) {
3647
3680
  })] }) : r ? /* @__PURE__ */ J("div", {
3648
3681
  ref: l,
3649
3682
  children: /* @__PURE__ */ J(Ce, {
3650
- items: t?.length ? _i(t, r.value) : [{
3683
+ items: t?.length ? vi(t, r.value) : [{
3651
3684
  key: "no-results",
3652
3685
  type: we.PlainText,
3653
3686
  label: /* @__PURE__ */ J("span", {
@@ -3658,7 +3691,7 @@ var X = /* @__PURE__ */ function(e) {
3658
3691
  maxDropdownHeight: 344,
3659
3692
  placement: "bottom-end",
3660
3693
  matchReferenceWidth: !1,
3661
- listClassName: gi,
3694
+ listClassName: _i,
3662
3695
  menuHeader: /* @__PURE__ */ J("div", {
3663
3696
  className: "sticky -top-1 z-10 bg-layer-raised px-2 pb-1 pt-2",
3664
3697
  children: /* @__PURE__ */ J(ze, {
@@ -3698,7 +3731,7 @@ var X = /* @__PURE__ */ function(e) {
3698
3731
  }),
3699
3732
  onClick: n
3700
3733
  });
3701
- }, bi = 3, xi = 300, Si = ({ items: e, tabs: t, topicOptions: n, favorites: r, titles: i, browseHeaderRenderer: a, onToggleFavorite: l, isFavoriteVisible: u, columnVisibility: d, onUseInChat: p, isPrimaryActionVisible: g, onShare: v, isPublishVisible: x, isPublishPrimary: S, getPublishHistory: C, publishFolderItems: w, publishExpandedPaths: T, onPublishExpandedPathsChange: E, publishLoadingPaths: D, hasPublishWriteAccess: O, publishDefaultAuthor: k, onPublish: ee, onPublishSuccess: A, onPublishError: te, onCreatePublishFolder: j, publishLabels: ne, ruleSourceOptions: re, onFetchExistingRules: M, shareOverlay: N, isShareVisible: ie, isSharePrimary: ae, onFetchDetails: oe, renderCredentials: se, onEdit: ce, onDownload: ue, isDownloadVisible: de, isDownloadPrimary: fe, onLoadContentFile: pe, onLoadContentFilePreview: me, renderContentFilePreview: he, renderContentFileTree: ge, onDelete: _e, onUnshare: ve, isUnshareVisible: ye, onRevokeShare: be, onFetchRecipientsCount: xe, isRevokeShareVisible: B, onUnpublish: V, isUnpublishVisible: Se, onLogin: Ce, onLogout: we, onCreateClick: H, createOptions: Te, createSearch: Ee, hideCreateButton: De = !1, hidePageTitle: Oe = !1, isReadonly: ke = !1, initialViewMode: Ae = kt.Grid, isFullWidth: je = !1, selectedItemId: Me, onCardClick: U, isLoading: Ne, styles: Pe, detailsTexts: W, detailsLimitsFooterNote: Fe, initialDetailsItemId: Ie, sortKey: Le, onSortChange: Re, filterTopics: ze, onFilterTopicsChange: Be, isMyAppsActive: Ve, onMyAppsActiveChange: He, activeTab: Ue, onActiveTabChange: Ke, renderEmptyState: G }) => {
3734
+ }, xi = 3, Si = 300, Ci = ({ items: e, tabs: t, topicOptions: n, favorites: r, titles: i, browseHeaderRenderer: a, onToggleFavorite: l, isFavoriteVisible: u, columnVisibility: d, onUseInChat: p, isPrimaryActionVisible: g, onShare: v, isPublishVisible: x, isPublishPrimary: S, getPublishHistory: C, publishFolderItems: w, publishExpandedPaths: T, onPublishExpandedPathsChange: E, publishLoadingPaths: D, hasPublishWriteAccess: O, publishDefaultAuthor: k, onPublish: ee, onPublishSuccess: A, onPublishError: te, onCreatePublishFolder: j, publishLabels: ne, ruleSourceOptions: re, onFetchExistingRules: M, shareOverlay: N, isShareVisible: ie, isSharePrimary: ae, onFetchDetails: oe, renderCredentials: se, onEdit: ce, onDownload: ue, isDownloadVisible: de, isDownloadPrimary: fe, onLoadContentFile: pe, onLoadContentFilePreview: me, renderContentFilePreview: he, renderContentFileTree: ge, onDelete: _e, onUnshare: ve, isUnshareVisible: ye, onRevokeShare: be, onFetchRecipientsCount: xe, isRevokeShareVisible: B, onUnpublish: V, isUnpublishVisible: Se, onLogin: Ce, onLogout: we, onCreateClick: H, createOptions: Te, createSearch: Ee, hideCreateButton: De = !1, hidePageTitle: Oe = !1, isReadonly: ke = !1, initialViewMode: Ae = kt.Grid, isFullWidth: je = !1, selectedItemId: Me, onCardClick: U, isLoading: Ne, styles: Pe, detailsTexts: W, detailsLimitsFooterNote: Fe, initialDetailsItemId: Ie, sortKey: Le, onSortChange: Re, filterTopics: ze, onFilterTopicsChange: Be, isMyAppsActive: Ve, onMyAppsActiveChange: He, activeTab: Ue, onActiveTabChange: Ke, renderEmptyState: G }) => {
3702
3735
  let { typography: K } = Pe ?? {}, qe = Lt(Pe), Je = i?.pageTitle ?? "Catalog", Ye = i?.createLabel ?? "Create", Xe = i?.favoritesTitle ?? "Your favorites", Ze = i?.browseTitle ?? "Browse", Qe = i?.searchPlaceholder ?? "Search models, tools, agents…", $e = i?.noResultsTitle ?? ((e) => `No results for "${e}"`), et = i?.featuredLabel ?? "Featured", tt = i?.gridViewLabel ?? "Grid view", nt = i?.listViewLabel ?? "List view", rt = i?.viewToggleLabel ?? "View mode", it = i?.ariaLabel ?? "Catalog", at = i?.sortLabel ?? "Sort", ot = [
3703
3736
  {
3704
3737
  value: b.RecentlyUpdated,
@@ -3748,9 +3781,9 @@ var X = /* @__PURE__ */ function(e) {
3748
3781
  }
3749
3782
  }
3750
3783
  }, [oe]), Zt = F(async (e) => (Vt(e), Gt(void 0), Xt(e)), [Xt]), Qt = F(async (e, t) => {
3751
- for (let n = 0; n < bi; n++) {
3784
+ for (let n = 0; n < xi; n++) {
3752
3785
  if (Jt.current !== e.id || t(await Xt(e))) return;
3753
- n < bi - 1 && await _(xi);
3786
+ n < xi - 1 && await _(Si);
3754
3787
  }
3755
3788
  }, [Xt]), $t = R(null);
3756
3789
  I(() => {
@@ -3853,17 +3886,17 @@ var X = /* @__PURE__ */ function(e) {
3853
3886
  children: /* @__PURE__ */ J(We, {})
3854
3887
  }) : /* @__PURE__ */ Y("section", {
3855
3888
  "aria-label": it,
3856
- className: P("flex size-full min-h-0 flex-1 flex-col", hi.root, Ft.root),
3889
+ className: P("flex size-full min-h-0 flex-1 flex-col", gi.root, Ft.root),
3857
3890
  style: qe,
3858
3891
  children: [
3859
3892
  (!Oe || fn) && /* @__PURE__ */ J("div", {
3860
- className: P("shrink-0", hi.heading),
3893
+ className: P("shrink-0", gi.heading),
3861
3894
  children: /* @__PURE__ */ Y("div", {
3862
3895
  className: "flex h-[64px] w-full items-center justify-between px-8",
3863
3896
  children: [!Oe && /* @__PURE__ */ J("h1", {
3864
- className: P(K?.pageHeadingFontClassName ?? "dial-display2-text", hi.headingTitle),
3897
+ className: P(K?.pageHeadingFontClassName ?? "dial-display2-text", gi.headingTitle),
3865
3898
  children: Je
3866
- }), fn && /* @__PURE__ */ J(yi, {
3899
+ }), fn && /* @__PURE__ */ J(bi, {
3867
3900
  label: Ye,
3868
3901
  options: Te,
3869
3902
  onClick: H,
@@ -3881,7 +3914,7 @@ var X = /* @__PURE__ */ function(e) {
3881
3914
  children: [
3882
3915
  pn && /* @__PURE__ */ J("div", {
3883
3916
  className: "w-full px-8",
3884
- children: /* @__PURE__ */ J(Fr, {
3917
+ children: /* @__PURE__ */ J(Ir, {
3885
3918
  items: X,
3886
3919
  totalCount: X.length,
3887
3920
  title: Xe,
@@ -3896,7 +3929,7 @@ var X = /* @__PURE__ */ function(e) {
3896
3929
  }),
3897
3930
  /* @__PURE__ */ J("div", {
3898
3931
  className: "w-full px-4 pt-6",
3899
- children: /* @__PURE__ */ J(mi, {
3932
+ children: /* @__PURE__ */ J(hi, {
3900
3933
  totalCount: cn.length,
3901
3934
  viewMode: lt,
3902
3935
  onViewModeChange: dn,
@@ -3955,7 +3988,7 @@ var X = /* @__PURE__ */ function(e) {
3955
3988
  }), dt !== "unmounted" && /* @__PURE__ */ J("div", {
3956
3989
  inert: lt !== kt.Cards,
3957
3990
  className: P("pb-8", lt !== kt.Cards && (dt === "prepared" ? "invisible h-0 overflow-hidden p-0" : "hidden"), Q.length === 0 && lt === kt.Cards && "h-full"),
3958
- children: /* @__PURE__ */ J(oi, {
3991
+ children: /* @__PURE__ */ J(si, {
3959
3992
  type: jt,
3960
3993
  items: Q,
3961
3994
  query: st,
@@ -3974,7 +4007,7 @@ var X = /* @__PURE__ */ function(e) {
3974
4007
  })
3975
4008
  ]
3976
4009
  }),
3977
- rn != null && /* @__PURE__ */ J(Ar, {
4010
+ rn != null && /* @__PURE__ */ J(jr, {
3978
4011
  renderCredentials: se,
3979
4012
  item: rn,
3980
4013
  isOpen: Ht,
@@ -4030,7 +4063,7 @@ var X = /* @__PURE__ */ function(e) {
4030
4063
  })
4031
4064
  ]
4032
4065
  });
4033
- }, Ci = ({ 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 }) => {
4066
+ }, wi = ({ 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 }) => {
4034
4067
  let [x, S] = z(!1), C = v ?? x, w = (e) => {
4035
4068
  e && u || (v === void 0 && S(e), y?.(e));
4036
4069
  }, [T, E] = z(""), D = R(null), O = L(() => [...s, ...t].filter((e) => e.label.toLocaleLowerCase().includes(T.toLocaleLowerCase())), [
@@ -4130,7 +4163,7 @@ var X = /* @__PURE__ */ function(e) {
4130
4163
  renderOverlay: () => A,
4131
4164
  children: te
4132
4165
  });
4133
- }, wi = ({ service: e, texts: n, onLogin: r, onLogout: i }) => {
4166
+ }, Ti = ({ service: e, texts: n, onLogin: r, onLogout: i }) => {
4134
4167
  let [a, o] = z(!1), [s, c] = z(!1), [l, u] = z(!1), [d, f] = z(), p = e.authenticationType === x.ApiKey, m = p ? n?.deleteActionLabel ?? "Delete" : n?.logoutActionLabel ?? "Log out", h = p ? n?.deleteApiKeyConfirmMessage?.(t.User) ?? "Are you sure you want to delete your personal API key?" : n?.logoutConfirmMessage ?? "Are you sure you want to log out?";
4135
4168
  return /* @__PURE__ */ Y(Nn, {
4136
4169
  label: e.name,
@@ -4218,7 +4251,7 @@ var X = /* @__PURE__ */ function(e) {
4218
4251
  })
4219
4252
  ]
4220
4253
  });
4221
- }, Ti = ({ 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", {
4254
+ }, Ei = ({ 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", {
4222
4255
  role: "status",
4223
4256
  className: "px-6 py-3",
4224
4257
  children: s?.loading ?? "Loading…"
@@ -4240,7 +4273,7 @@ var X = /* @__PURE__ */ function(e) {
4240
4273
  children: s?.title ?? "Credentials"
4241
4274
  }), /* @__PURE__ */ J("div", {
4242
4275
  className: "flex min-w-0 flex-col",
4243
- children: e.map((e) => /* @__PURE__ */ J(wi, {
4276
+ children: e.map((e) => /* @__PURE__ */ J(Ti, {
4244
4277
  service: e,
4245
4278
  texts: s,
4246
4279
  onLogin: a,
@@ -4253,4 +4286,4 @@ var X = /* @__PURE__ */ function(e) {
4253
4286
  children: s?.empty ?? "No credentials required"
4254
4287
  }) : null;
4255
4288
  //#endregion
4256
- export { Jn as AboutTab, yn as ApiTab, Jt as AppIdentity, Ti as ApplicationCredentials, Ft as CATALOG_CLASS, sn as Card, ln as CardGrid, cn as CardRowRenderer, Si as Catalog, Mt as CatalogContentNodeType, Nt as CatalogContentPreviewType, n as CatalogDetailsTab, Et as CatalogLimitStatus, Dt as CatalogPricingUnit, At as CatalogSelectionMode, b as CatalogSortKey, kt as CatalogViewMode, X as CodeLanguage, $n as ContentTab, C as CredentialStatus, Bn as CredentialsApiKeyOverlay, Xt as CredentialsBadge, i as CredentialsBadgeState, jn as CredentialsBanner, S as CredentialsBannerState, t as CredentialsLevel, Fn as CredentialsManagementPanel, e as CredentialsUiState, Ci as DeploymentSelectorField, Ot as DeploymentSize, Z as DetailsConfirmationKind, qn as DetailsHeader, Ar as DetailsPanel, Mr as FavoriteCard, Fr as Favorites, di as Filter, jt as LimitRowLayout, dr as LimitsTab, oi as ListView, fr as OverviewTab, pr as PricingTab, mi as Toolbar, vr as ToolsTab, x as ToolsetAuthenticationType, tn as TopicTag, y as buildCatalogTabs, f as filterCatalogItems, a as getCatalogDetailsTabs, p as getCredentialsBadgeState, g as getCredentialsBannerState, u as getCredentialsUiState, r as getSignedInLevel, c as getTopicOptions, o as sortCatalogItems, Pt as useFavColumns, Gt as useScrollVirtualizer };
4289
+ export { Jn as AboutTab, yn as ApiTab, Jt as AppIdentity, Ei as ApplicationCredentials, Ft as CATALOG_CLASS, sn as Card, ln as CardGrid, cn as CardRowRenderer, Ci as Catalog, Mt as CatalogContentNodeType, Nt as CatalogContentPreviewType, n as CatalogDetailsTab, Et as CatalogLimitStatus, Dt as CatalogPricingUnit, At as CatalogSelectionMode, b as CatalogSortKey, kt as CatalogViewMode, X as CodeLanguage, $n as ContentTab, C as CredentialStatus, Bn as CredentialsApiKeyOverlay, Xt as CredentialsBadge, i as CredentialsBadgeState, jn as CredentialsBanner, S as CredentialsBannerState, t as CredentialsLevel, Fn as CredentialsManagementPanel, e as CredentialsUiState, wi as DeploymentSelectorField, Ot as DeploymentSize, Z as DetailsConfirmationKind, qn as DetailsHeader, jr as DetailsPanel, Nr as FavoriteCard, Ir as Favorites, fi as Filter, jt as LimitRowLayout, dr as LimitsTab, si as ListView, fr as OverviewTab, pr as PricingTab, hi as Toolbar, yr as ToolsTab, x as ToolsetAuthenticationType, tn as TopicTag, y as buildCatalogTabs, f as filterCatalogItems, a as getCatalogDetailsTabs, p as getCredentialsBadgeState, g as getCredentialsBannerState, u as getCredentialsUiState, r as getSignedInLevel, c as getTopicOptions, o as sortCatalogItems, Pt as useFavColumns, Gt as useScrollVirtualizer };