@epam/ai-dial-catalog 1.1.0-dev.430 → 1.1.0-dev.432

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _ } from "./mapping-FVCFAmAc.js";
2
2
  import { CatalogEntityType as v, DeploymentIcon as y, EntityHeader as b, EntityTypeLabel as x, FeaturedChip as S, ItemHeader as C, MarkdownCodeBlock as w, MarkdownRenderer as T, MarkdownWithPlaceholders as E, PanelEmptyState as D, ResourceSummary as O, SELECT_LIST_MAX_HEIGHT_CLASS_NAME as ee, buildCssVars as k, mergeClasses as A } from "@epam/ai-dial-chat-shared";
3
3
  import { Fragment as te, memo as ne, useCallback as j, useEffect as M, useLayoutEffect as re, useMemo as N, useRef as P, useState as F } from "react";
4
- import { ButtonAppearance as ie, ButtonDropdown as ae, ButtonVariant as oe, CardShell as se, CloseButton as ce, DIAL_ICON_SIZE as I, DIAL_KIT_ICON_STROKE as L, DangerButton as le, Dropdown as ue, ElementSize as de, EllipsisTooltip as fe, FolderPath as pe, GhostButton as me, GhostIconButton as he, Highlight as ge, InlineSelect as _e, InlineSelectTrigger as ve, Input as ye, LinkButton as be, MenuItem as xe, MenuItemMark as R, NeutralButton as z, NeutralIconButton as Se, PrimaryButton as Ce, ProgressBar as we, RadioGroup as Te, Search as Ee, SegmentedControl as De, Skeleton as Oe, SkeletonAvatarShape as ke, Spinner as Ae, Tabs as je, ToggleIconButton as B, Tooltip as Me, mergeClasses as Ne } from "@epam/ai-dial-ui-kit";
5
- import { IconAlertTriangleFilled as Pe, IconArrowRight as V, IconBuildingCommunity as Fe, IconCheck as Ie, IconChevronDown as Le, IconChevronLeft as Re, IconChevronRight as ze, IconCircleCheckFilled as Be, IconDots as Ve, IconDownload as He, IconFilter as Ue, IconFolder as We, IconKey as Ge, IconLayoutGrid as Ke, IconLayoutList as qe, IconLogin as Je, IconLogout as Ye, IconPencil as Xe, IconPlayerPlayFilled as Ze, IconPlus as Qe, IconShare as $e, IconStar as et, IconStarFilled as tt, IconTrash as nt, IconTrashX as H, IconUser as rt, IconUserOff as it, IconWorldOff as at, IconWorldShare as ot } from "@tabler/icons-react";
6
- import { Fragment as U, jsx as W, jsxs as G } from "react/jsx-runtime";
4
+ import { ButtonAppearance as ie, ButtonDropdown as ae, ButtonVariant as oe, CardShell as I, CloseButton as se, DIAL_ICON_SIZE as L, DIAL_KIT_ICON_STROKE as R, DangerButton as ce, Dropdown as le, ElementSize as ue, EllipsisTooltip as de, FolderPath as fe, GhostButton as pe, GhostIconButton as me, Highlight as he, InlineSelect as ge, InlineSelectTrigger as _e, Input as ve, LinkButton as ye, MenuItem as be, MenuItemMark as z, NeutralButton as B, NeutralIconButton as xe, PrimaryButton as Se, ProgressBar as Ce, RadioGroup as we, Search as Te, SegmentedControl as Ee, Skeleton as De, SkeletonAvatarShape as Oe, Spinner as ke, Tabs as Ae, ToggleIconButton as V, Tooltip as je, mergeClasses as Me } from "@epam/ai-dial-ui-kit";
5
+ import { IconAlertTriangleFilled as Ne, IconArrowRight as H, IconBuildingCommunity as Pe, IconCheck as Fe, IconChevronDown as Ie, IconChevronLeft as Le, IconChevronRight as Re, IconCircleCheckFilled as ze, IconDots as Be, IconDownload as Ve, IconFilter as He, IconFolder as Ue, IconKey as We, IconLayoutGrid as Ge, IconLayoutList as Ke, IconLogin as qe, IconLogout as Je, IconPencil as Ye, IconPlayerPlayFilled as Xe, IconPlus as Ze, IconShare as Qe, IconStar as $e, IconStarFilled as et, IconTrash as tt, IconTrashX as nt, IconUser as U, IconUserOff as rt, IconWorldOff as it, IconWorldShare as at } from "@tabler/icons-react";
6
+ import { Fragment as ot, jsx as W, jsxs as G } from "react/jsx-runtime";
7
7
  import { PublishFooter as st, PublishPanel as ct, derivePublishState as lt, usePublishFlow as ut } from "@epam/ai-dial-publish-panel";
8
8
  import { Grid as dt } from "@epam/ai-dial-ui-kit/grid";
9
9
  //#region src/types/code-language.ts
@@ -19,11 +19,11 @@ var ft = /* @__PURE__ */ function(e) {
19
19
  return e.Danger = "danger", e.Info = "info", e;
20
20
  }({}), mt = /* @__PURE__ */ function(e) {
21
21
  return e.SM = "sm", e.LG = "lg", e;
22
- }({}), Y = /* @__PURE__ */ function(e) {
23
- return e.Grid = "grid", e.Cards = "cards", e;
24
22
  }({}), ht = /* @__PURE__ */ function(e) {
25
- return e.File = "file", e.Folder = "folder", e;
23
+ return e.Grid = "grid", e.Cards = "cards", e;
26
24
  }({}), gt = /* @__PURE__ */ function(e) {
25
+ return e.File = "file", e.Folder = "folder", e;
26
+ }({}), Y = /* @__PURE__ */ function(e) {
27
27
  return e.Markdown = "markdown", e.Text = "text", e.Image = "image", e.Unsupported = "unsupported", e;
28
28
  }({}), X = () => {
29
29
  let [e, t] = F(() => window.innerWidth);
@@ -152,13 +152,13 @@ var ft = /* @__PURE__ */ function(e) {
152
152
  className: "flex min-w-0 flex-col",
153
153
  children: [/* @__PURE__ */ G("div", {
154
154
  className: "flex min-w-0 items-start gap-1 overflow-hidden",
155
- children: [/* @__PURE__ */ W(fe, {
156
- text: o ? /* @__PURE__ */ W(ge, {
155
+ children: [/* @__PURE__ */ W(de, {
156
+ text: o ? /* @__PURE__ */ W(he, {
157
157
  text: n,
158
158
  query: o
159
159
  }) : n,
160
160
  className: A("min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text", Tt.name)
161
- }), r && /* @__PURE__ */ W(fe, {
161
+ }), r && /* @__PURE__ */ W(de, {
162
162
  text: r,
163
163
  className: A("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text", Tt.version)
164
164
  })]
@@ -172,7 +172,7 @@ var ft = /* @__PURE__ */ function(e) {
172
172
  })]
173
173
  })]
174
174
  });
175
- }, $ = { icon: "_icon_a0p4u_1" }, Dt = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || h(e) == null ? null : /* @__PURE__ */ W(Me, {
175
+ }, $ = { icon: "_icon_a0p4u_1" }, Dt = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || h(e) == null ? null : /* @__PURE__ */ W(je, {
176
176
  tooltip: t,
177
177
  asChild: !0,
178
178
  children: /* @__PURE__ */ W("span", {
@@ -183,8 +183,8 @@ var ft = /* @__PURE__ */ function(e) {
183
183
  "--cat-cred-badge-icon": r?.icon
184
184
  }),
185
185
  className: A("absolute -bottom-1 -end-1 shrink-0", n),
186
- children: /* @__PURE__ */ W(Pe, {
187
- size: I.SM,
186
+ children: /* @__PURE__ */ W(Ne, {
187
+ size: L.SM,
188
188
  className: $.icon,
189
189
  "aria-hidden": !0
190
190
  })
@@ -192,16 +192,16 @@ var ft = /* @__PURE__ */ function(e) {
192
192
  }), Ot = {
193
193
  starFilledIcon: "_starFilledIcon_po6zj_1",
194
194
  starPop: "_starPop_po6zj_1"
195
- }, kt = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ W(B, {
195
+ }, kt = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ W(V, {
196
196
  size: n,
197
197
  style: k({ "--cat-star-filled": a }),
198
198
  className: i,
199
- icon: e ? /* @__PURE__ */ W(tt, {
200
- size: I.SM,
199
+ icon: e ? /* @__PURE__ */ W(et, {
200
+ size: L.SM,
201
201
  className: Ot.starFilledIcon
202
- }) : /* @__PURE__ */ W(et, {
203
- size: I.SM,
204
- stroke: L
202
+ }) : /* @__PURE__ */ W($e, {
203
+ size: L.SM,
204
+ stroke: R
205
205
  }),
206
206
  "aria-label": r,
207
207
  onClick: t
@@ -263,7 +263,7 @@ var ft = /* @__PURE__ */ function(e) {
263
263
  },
264
264
  children: /* @__PURE__ */ W(Mt, { label: e })
265
265
  }, e)),
266
- f > 0 && /* @__PURE__ */ W(Me, {
266
+ f > 0 && /* @__PURE__ */ W(je, {
267
267
  tooltip: e.slice(c).join(", "),
268
268
  children: /* @__PURE__ */ W("span", {
269
269
  "aria-label": t?.(f) ?? `and ${f} more topics`,
@@ -302,7 +302,7 @@ var ft = /* @__PURE__ */ function(e) {
302
302
  i,
303
303
  e.id
304
304
  ]);
305
- return /* @__PURE__ */ G(se, {
305
+ return /* @__PURE__ */ G(I, {
306
306
  ...n ? {
307
307
  role: "button",
308
308
  tabIndex: 0,
@@ -321,11 +321,11 @@ var ft = /* @__PURE__ */ function(e) {
321
321
  className: _
322
322
  })
323
323
  }),
324
- l && /* @__PURE__ */ W(Ie, {
325
- size: I.SM,
324
+ l && /* @__PURE__ */ W(Fe, {
325
+ size: L.SM,
326
326
  className: A("absolute end-3 top-3 shrink-0", wt.checkIcon),
327
327
  "aria-hidden": !0,
328
- stroke: L
328
+ stroke: R
329
329
  }),
330
330
  /* @__PURE__ */ W(Et, {
331
331
  icon: e.iconUrl,
@@ -368,14 +368,14 @@ var ft = /* @__PURE__ */ function(e) {
368
368
  className: "flex items-center gap-2",
369
369
  children: [/* @__PURE__ */ W("div", {
370
370
  className: "min-w-0 flex-1",
371
- children: e.folder.length > 0 && /* @__PURE__ */ W(pe, {
371
+ children: e.folder.length > 0 && /* @__PURE__ */ W(fe, {
372
372
  segments: e.folder,
373
373
  labelClassName: v,
374
374
  leafClassName: y
375
375
  })
376
376
  }), C && /* @__PURE__ */ W(kt, {
377
377
  isStarred: m,
378
- size: de.Small,
378
+ size: ue.Small,
379
379
  onClick: O,
380
380
  ariaLabel: m ? c : s,
381
381
  className: A(wt.starBtn, !m && wt.emptyStarHidden)
@@ -451,10 +451,10 @@ var ft = /* @__PURE__ */ function(e) {
451
451
  children: Array.from({ length: b * 3 }, (e, t) => /* @__PURE__ */ W("div", {
452
452
  className: A("rounded-md border p-4", wt.skeletonCard),
453
453
  style: { height: 248 },
454
- children: /* @__PURE__ */ W(Oe, {
454
+ children: /* @__PURE__ */ W(De, {
455
455
  avatar: {
456
456
  size: 48,
457
- shape: ke.Square
457
+ shape: Oe.Square
458
458
  },
459
459
  showTitle: { width: `${60 + t * 17 % 30}%` },
460
460
  paragraph: { rows: 3 },
@@ -477,15 +477,15 @@ var ft = /* @__PURE__ */ function(e) {
477
477
  }, n);
478
478
  })
479
479
  });
480
- }), Bt = (e) => e.reduce((e, t) => t.type === ht.File ? e + 1 : e + Bt(t.items), 0), Vt = (e) => {
480
+ }), Bt = (e) => e.reduce((e, t) => t.type === gt.File ? e + 1 : e + Bt(t.items), 0), Vt = (e) => {
481
481
  let t = /* @__PURE__ */ new Set(), n = (e) => {
482
- for (let r of e) r.type === ht.Folder && (t.add(r.id), n(r.items));
482
+ for (let r of e) r.type === gt.Folder && (t.add(r.id), n(r.items));
483
483
  };
484
484
  return n(e), t;
485
485
  }, Ht = (e, t) => {
486
486
  if (t != null) for (let n of e) {
487
487
  if (n.id === t) return n.name;
488
- if (n.type === ht.Folder) {
488
+ if (n.type === gt.Folder) {
489
489
  let e = Ht(n.items, t);
490
490
  if (e != null) return e;
491
491
  }
@@ -498,8 +498,8 @@ var ft = /* @__PURE__ */ function(e) {
498
498
  valueTrue: "_valueTrue_jnq93_17",
499
499
  valueFalse: "_valueFalse_jnq93_21",
500
500
  valueText: "_valueText_jnq93_25"
501
- }, Wt = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(Be, {
502
- size: I.MD,
501
+ }, Wt = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ G(ot, { children: [/* @__PURE__ */ W(ze, {
502
+ size: L.MD,
503
503
  className: A(r, Ut.checkIcon)
504
504
  }), /* @__PURE__ */ W("span", {
505
505
  className: A(n, Ut.valueTrue),
@@ -574,11 +574,11 @@ var ft = /* @__PURE__ */ function(e) {
574
574
  codeClassName: i,
575
575
  languageLabelClassName: a,
576
576
  hideDownload: !0,
577
- titleSlot: d ? /* @__PURE__ */ W(_e, {
577
+ titleSlot: d ? /* @__PURE__ */ W(ge, {
578
578
  items: l,
579
579
  matchReferenceWidth: !1,
580
580
  placement: "bottom-end",
581
- size: de.Small,
581
+ size: ue.Small,
582
582
  selectedKey: s
583
583
  }) : void 0
584
584
  })] });
@@ -625,11 +625,11 @@ var ft = /* @__PURE__ */ function(e) {
625
625
  codeClassName: f,
626
626
  languageLabelClassName: p,
627
627
  hideDownload: !0,
628
- titleSlot: S ? /* @__PURE__ */ W(_e, {
628
+ titleSlot: S ? /* @__PURE__ */ W(ge, {
629
629
  items: b,
630
630
  matchReferenceWidth: !1,
631
631
  placement: "bottom-end",
632
- size: de.Small,
632
+ size: ue.Small,
633
633
  selectedKey: y.url
634
634
  }) : void 0
635
635
  }, h),
@@ -684,17 +684,17 @@ var ft = /* @__PURE__ */ function(e) {
684
684
  footer: "_footer_13mok_9"
685
685
  }, Qt = ({ confirmLabel: e, cancelLabel: t, variant: n = J.Info, isLoading: r = !1, isConfirmDisabled: i = !1, loadingStatusLabel: a, onConfirm: o, onCancel: s }) => {
686
686
  let c = n === J.Danger, l = (() => {
687
- if (r) return /* @__PURE__ */ W(Ae, { size: I.SM });
688
- if (c) return /* @__PURE__ */ W(H, {
689
- size: I.MD,
687
+ if (r) return /* @__PURE__ */ W(ke, { size: L.SM });
688
+ if (c) return /* @__PURE__ */ W(nt, {
689
+ size: L.MD,
690
690
  "aria-hidden": !0,
691
- stroke: L
691
+ stroke: R
692
692
  });
693
- })(), u = c ? le : z;
693
+ })(), u = c ? ce : B;
694
694
  return /* @__PURE__ */ G("div", {
695
695
  className: A("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start", Zt.footer),
696
696
  children: [
697
- /* @__PURE__ */ W(me, {
697
+ /* @__PURE__ */ W(pe, {
698
698
  label: t,
699
699
  disabled: r,
700
700
  onClick: s
@@ -754,8 +754,8 @@ var ft = /* @__PURE__ */ function(e) {
754
754
  className: A("flex size-8 items-center justify-center rounded-lg", an[n]),
755
755
  children: e
756
756
  }),
757
- t && /* @__PURE__ */ W(Be, {
758
- size: I.MD,
757
+ t && /* @__PURE__ */ W(ze, {
758
+ size: L.MD,
759
759
  "aria-hidden": !0,
760
760
  className: A("absolute -end-2 -top-2", nn.activeIcon)
761
761
  }),
@@ -793,19 +793,19 @@ var ft = /* @__PURE__ */ function(e) {
793
793
  })]
794
794
  })]
795
795
  }), ln = (e) => e === _.ApiKey ? "You are currently using organization API key to access this toolset." : "You are currently using organization credentials to access this toolset.", un = (e) => e === _.ApiKey ? "Configure your personal API key to have access to your data." : "Login using personal account to have access to your data.", dn = (e) => e === _.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", fn = (e) => e === _.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", pn = 20, mn = ({ state: e, authenticationType: t, texts: n }) => {
796
- let r = /* @__PURE__ */ W(Fe, {
796
+ let r = /* @__PURE__ */ W(Pe, {
797
797
  size: pn,
798
798
  "aria-hidden": !0,
799
- stroke: L
799
+ stroke: R
800
800
  });
801
801
  if (e === o.PersonalCredentialsActive) {
802
802
  let e = (n?.personalCredentialsActiveBannerTitle ?? fn)(t);
803
803
  return /* @__PURE__ */ W(cn, {
804
804
  icon: /* @__PURE__ */ W(on, {
805
- icon: /* @__PURE__ */ W(rt, {
806
- size: I.SM,
805
+ icon: /* @__PURE__ */ W(U, {
806
+ size: L.SM,
807
807
  "aria-hidden": !0,
808
- stroke: L
808
+ stroke: R
809
809
  }),
810
810
  isActive: !0,
811
811
  surface: rn.Raised
@@ -817,10 +817,10 @@ var ft = /* @__PURE__ */ function(e) {
817
817
  let e = (n?.orgCredentialsActiveBannerTitle ?? dn)(t);
818
818
  return /* @__PURE__ */ W(cn, {
819
819
  icon: /* @__PURE__ */ W(on, {
820
- icon: /* @__PURE__ */ W(Fe, {
821
- size: I.SM,
820
+ icon: /* @__PURE__ */ W(Pe, {
821
+ size: L.SM,
822
822
  "aria-hidden": !0,
823
- stroke: L
823
+ stroke: R
824
824
  }),
825
825
  isActive: !0,
826
826
  surface: rn.Raised
@@ -870,7 +870,7 @@ var ft = /* @__PURE__ */ function(e) {
870
870
  u?.(t);
871
871
  }, [t, u]), ne = j(() => {
872
872
  d?.(t);
873
- }, [t, d]), M = p?.loginActionLabel ?? "Log in", re = p?.logoutActionLabel ?? "Log out", N = p?.addApiKeyActionLabel ?? "Add", P = p?.deleteActionLabel ?? "Delete", ae = p?.credentialsSignedInLabel ?? "Signed in", oe = p?.credentialsSignedOutLabel ?? "Signed out", se = p?.addingApiKeyStatusLabel ?? "Adding", ce = p?.apiKeyConfiguredMessage ?? "Key has been configured", ue = c == null ? void 0 : (p?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(c);
873
+ }, [t, d]), M = p?.loginActionLabel ?? "Log in", re = p?.logoutActionLabel ?? "Log out", N = p?.addApiKeyActionLabel ?? "Add", P = p?.deleteActionLabel ?? "Delete", ae = p?.credentialsSignedInLabel ?? "Signed in", oe = p?.credentialsSignedOutLabel ?? "Signed out", I = p?.addingApiKeyStatusLabel ?? "Adding", se = p?.apiKeyConfiguredMessage ?? "Key has been configured", le = c == null ? void 0 : (p?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(c);
874
874
  return /* @__PURE__ */ G("div", {
875
875
  className: "flex items-start gap-3 rounded-xl p-3",
876
876
  children: [/* @__PURE__ */ W(on, {
@@ -891,12 +891,12 @@ var ft = /* @__PURE__ */ function(e) {
891
891
  className: A(h, hn.rowDescription),
892
892
  children: r
893
893
  })]
894
- }), s === _.OAuth && (D ? /* @__PURE__ */ W(le, {
894
+ }), s === _.OAuth && (D ? /* @__PURE__ */ W(ce, {
895
895
  appearance: ie.Ghost,
896
896
  label: re,
897
897
  className: "min-w-28 shrink-0 justify-center whitespace-nowrap",
898
898
  onClick: te
899
- }) : /* @__PURE__ */ W(z, {
899
+ }) : /* @__PURE__ */ W(B, {
900
900
  label: M,
901
901
  className: "min-w-28 shrink-0 justify-center whitespace-nowrap",
902
902
  onClick: O
@@ -906,7 +906,7 @@ var ft = /* @__PURE__ */ function(e) {
906
906
  className: "flex animate-fadeIn flex-col gap-1 pt-1",
907
907
  children: [/* @__PURE__ */ G("div", {
908
908
  className: "flex items-end gap-2",
909
- children: [/* @__PURE__ */ W(ye, {
909
+ children: [/* @__PURE__ */ W(ve, {
910
910
  id: `catalog-item-${e.id}-${t}-api-key`,
911
911
  type: "password",
912
912
  autoComplete: "current-password",
@@ -916,12 +916,12 @@ var ft = /* @__PURE__ */ function(e) {
916
916
  invalid: C,
917
917
  disabled: T,
918
918
  containerClassName: "min-w-0 flex-1"
919
- }), /* @__PURE__ */ W(z, {
919
+ }), /* @__PURE__ */ W(B, {
920
920
  label: T ? void 0 : N,
921
- "aria-label": T ? se : void 0,
922
- iconBefore: T ? /* @__PURE__ */ W(Ae, {
923
- size: I.SM,
924
- ariaLabel: se
921
+ "aria-label": T ? I : void 0,
922
+ iconBefore: T ? /* @__PURE__ */ W(ke, {
923
+ size: L.SM,
924
+ ariaLabel: I
925
925
  }) : void 0,
926
926
  className: "shrink-0 whitespace-nowrap",
927
927
  onClick: k,
@@ -935,16 +935,16 @@ var ft = /* @__PURE__ */ function(e) {
935
935
  s === _.ApiKey && D && /* @__PURE__ */ W("div", {
936
936
  className: "animate-fadeIn pt-1",
937
937
  children: /* @__PURE__ */ W(cn, {
938
- icon: /* @__PURE__ */ W(Ge, {
939
- size: I.SM,
938
+ icon: /* @__PURE__ */ W(We, {
939
+ size: L.SM,
940
940
  "aria-hidden": !0,
941
- stroke: L
941
+ stroke: R
942
942
  }),
943
- title: ce,
944
- description: ue,
943
+ title: se,
944
+ description: le,
945
945
  titleClassName: v,
946
946
  descriptionClassName: y,
947
- action: /* @__PURE__ */ W(be, {
947
+ action: /* @__PURE__ */ W(ye, {
948
948
  label: P,
949
949
  className: b,
950
950
  onClick: ne
@@ -982,10 +982,10 @@ var ft = /* @__PURE__ */ function(e) {
982
982
  level: a.User,
983
983
  label: i?.personalCredentialsLabel ?? "Personal credentials",
984
984
  description: i?.personalCredentialsDescription ?? "These credentials apply only to your account.",
985
- icon: /* @__PURE__ */ W(rt, {
986
- size: I.SM,
985
+ icon: /* @__PURE__ */ W(U, {
986
+ size: L.SM,
987
987
  "aria-hidden": !0,
988
- stroke: L
988
+ stroke: R
989
989
  }),
990
990
  status: h.userStatus,
991
991
  isActive: _,
@@ -1006,10 +1006,10 @@ var ft = /* @__PURE__ */ function(e) {
1006
1006
  level: a.Global,
1007
1007
  label: i?.organizationCredentialsLabel ?? "Organization credentials",
1008
1008
  description: i?.organizationCredentialsDescription ?? "Once added, these credentials will grant all users in your organization access to this toolset.",
1009
- icon: /* @__PURE__ */ W(Fe, {
1010
- size: I.SM,
1009
+ icon: /* @__PURE__ */ W(Pe, {
1010
+ size: L.SM,
1011
1011
  "aria-hidden": !0,
1012
- stroke: L
1012
+ stroke: R
1013
1013
  }),
1014
1014
  status: h.globalStatus,
1015
1015
  isActive: v,
@@ -1089,7 +1089,7 @@ var ft = /* @__PURE__ */ function(e) {
1089
1089
  className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
1090
1090
  children: [/* @__PURE__ */ G("div", {
1091
1091
  className: "flex items-end gap-2",
1092
- children: [/* @__PURE__ */ W(ye, {
1092
+ children: [/* @__PURE__ */ W(ve, {
1093
1093
  id: `catalog-item-${e.id}-${t}-api-key`,
1094
1094
  type: "password",
1095
1095
  autoComplete: "current-password",
@@ -1099,10 +1099,10 @@ var ft = /* @__PURE__ */ function(e) {
1099
1099
  invalid: d,
1100
1100
  disabled: m,
1101
1101
  containerClassName: "min-w-0 flex-1"
1102
- }), /* @__PURE__ */ W(z, {
1102
+ }), /* @__PURE__ */ W(B, {
1103
1103
  label: m ? void 0 : C,
1104
1104
  "aria-label": m ? T : void 0,
1105
- iconBefore: m ? /* @__PURE__ */ W(Ae, {
1105
+ iconBefore: m ? /* @__PURE__ */ W(ke, {
1106
1106
  size: Sn,
1107
1107
  ariaLabel: T
1108
1108
  }) : void 0,
@@ -1117,17 +1117,17 @@ var ft = /* @__PURE__ */ function(e) {
1117
1117
  v && /* @__PURE__ */ W("div", {
1118
1118
  className: "animate-fadeIn px-4 py-3.5",
1119
1119
  children: /* @__PURE__ */ W(cn, {
1120
- icon: /* @__PURE__ */ W(Ge, {
1120
+ icon: /* @__PURE__ */ W(We, {
1121
1121
  size: 20,
1122
1122
  "aria-hidden": !0,
1123
- stroke: L
1123
+ stroke: R
1124
1124
  }),
1125
1125
  title: O,
1126
1126
  description: ee,
1127
- action: /* @__PURE__ */ W(be, {
1127
+ action: /* @__PURE__ */ W(ye, {
1128
1128
  label: g ? void 0 : w,
1129
1129
  "aria-label": g ? E : void 0,
1130
- iconBefore: g ? /* @__PURE__ */ W(Ae, {
1130
+ iconBefore: g ? /* @__PURE__ */ W(ke, {
1131
1131
  size: Sn,
1132
1132
  ariaLabel: E
1133
1133
  }) : void 0,
@@ -1152,21 +1152,21 @@ var ft = /* @__PURE__ */ function(e) {
1152
1152
  n
1153
1153
  ]);
1154
1154
  if (!Tn(e) || r && !r(e)) return null;
1155
- let c = /* @__PURE__ */ W(z, {
1155
+ let c = /* @__PURE__ */ W(B, {
1156
1156
  label: i,
1157
- iconBefore: /* @__PURE__ */ W($e, {
1158
- size: I.MD,
1159
- stroke: L
1157
+ iconBefore: /* @__PURE__ */ W(Qe, {
1158
+ size: L.MD,
1159
+ stroke: R
1160
1160
  }),
1161
- iconAfter: /* @__PURE__ */ W(Le, {
1162
- size: I.MD,
1163
- stroke: L
1161
+ iconAfter: /* @__PURE__ */ W(Ie, {
1162
+ size: L.MD,
1163
+ stroke: R
1164
1164
  }),
1165
1165
  onClick: s,
1166
1166
  "aria-haspopup": n ? "menu" : void 0,
1167
1167
  "aria-expanded": n ? a : void 0
1168
1168
  });
1169
- return n ? /* @__PURE__ */ W(ue, {
1169
+ return n ? /* @__PURE__ */ W(le, {
1170
1170
  placement: "bottom-end",
1171
1171
  matchReferenceWidth: !1,
1172
1172
  open: a,
@@ -1182,8 +1182,8 @@ var ft = /* @__PURE__ */ function(e) {
1182
1182
  }, kn = ({ status: e, label: t }) => /* @__PURE__ */ W("div", {
1183
1183
  className: A("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", On[e]),
1184
1184
  children: t
1185
- }), An = ({ item: t, onUseInChat: n, isPrimaryActionVisible: r, onShare: i, shareOverlay: o, isShareVisible: s, isSharePrimary: c, onEdit: l, onDownload: u, isDownloadVisible: d, isDownloadPrimary: f, onDelete: m, onUnshare: h, isUnshareVisible: g, onRevokeShare: y, onFetchRecipientsCount: x, isRevokeShareVisible: S, onLogin: C, onLogout: w, onOpenCredentialsManagement: T, onRequestLogout: E, texts: D, detailsStyles: O, isPublishVisible: ee, isPublishPrimary: k, onOpenPublish: te, isUnpublishVisible: ne, hasPublishedFolders: re = !1, onRequestPublishHistory: ie, onOpenUnpublish: ae, isReadonly: oe = !1 }) => {
1186
- let { nameClassName: se = "dial-body-semi-text", folderLabelClassName: ce = "dial-tiny-text", folderLeafClassName: le = "dial-tiny-semi-text" } = O?.typography ?? {}, de = t.details?.limits?.status, fe = de == null ? void 0 : /* @__PURE__ */ W(kn, {
1185
+ }), An = ({ item: t, onUseInChat: n, isPrimaryActionVisible: r, onShare: i, shareOverlay: o, isShareVisible: s, isSharePrimary: c, onEdit: l, onDownload: u, isDownloadVisible: d, isDownloadPrimary: f, onDelete: m, onUnshare: h, isUnshareVisible: g, onRevokeShare: y, onFetchRecipientsCount: x, isRevokeShareVisible: S, onLogin: C, onLogout: w, onOpenCredentialsManagement: T, onRequestLogout: E, texts: D, detailsStyles: O, isPublishVisible: ee, isPublishPrimary: k, onOpenPublish: te, isUnpublishVisible: ne, hasPublishedFolders: re = !1, isPublishHistoryResolved: ie = !0, onRequestPublishHistory: ae, onOpenUnpublish: oe, isReadonly: I = !1 }) => {
1186
+ let { nameClassName: se = "dial-body-semi-text", folderLabelClassName: ce = "dial-tiny-text", folderLeafClassName: ue = "dial-tiny-semi-text" } = O?.typography ?? {}, de = t.details?.limits?.status, pe = de == null ? void 0 : /* @__PURE__ */ W(kn, {
1187
1187
  status: de,
1188
1188
  label: de === pt.LimitReached ? D?.limitReachedLabel ?? "Limit reached" : D?.limitRunningLowLabel ?? "Running low"
1189
1189
  }), me = j(() => {
@@ -1193,14 +1193,14 @@ var ft = /* @__PURE__ */ function(e) {
1193
1193
  }, [t, l]), ge = j(() => {
1194
1194
  te?.();
1195
1195
  }, [te]), _e = j(() => {
1196
- ae?.();
1197
- }, [ae]), ve = j(() => {
1196
+ oe?.();
1197
+ }, [oe]), ve = j(() => {
1198
1198
  u?.(t);
1199
1199
  }, [t, u]), [ye, be] = F(!1);
1200
1200
  M(() => {
1201
1201
  be(!1);
1202
1202
  }, [t.id]);
1203
- let xe = j(() => {
1203
+ let z = j(() => {
1204
1204
  ye || (be(!0), (async () => {
1205
1205
  try {
1206
1206
  await u?.(t);
@@ -1212,7 +1212,7 @@ var ft = /* @__PURE__ */ function(e) {
1212
1212
  t,
1213
1213
  u,
1214
1214
  ye
1215
- ]), [R, we] = F(!1);
1215
+ ]), [Ce, we] = F(!1);
1216
1216
  M(() => {
1217
1217
  we(!1);
1218
1218
  }, [t.id]);
@@ -1232,23 +1232,23 @@ var ft = /* @__PURE__ */ function(e) {
1232
1232
  h?.(t);
1233
1233
  }, [t, h]), Oe = j(() => {
1234
1234
  m?.(t);
1235
- }, [t, m]), ke = j(() => {
1235
+ }, [t, m]), Ae = j(() => {
1236
1236
  y?.(t);
1237
- }, [t, y]), [je, B] = F(bn.Idle), [Me, Ne] = F(void 0), Pe = P(null);
1237
+ }, [t, y]), [V, je] = F(bn.Idle), [Me, Ne] = F(void 0), Pe = P(null);
1238
1238
  M(() => {
1239
- Pe.current = null, B(bn.Idle), Ne(void 0);
1239
+ Pe.current = null, je(bn.Idle), Ne(void 0);
1240
1240
  }, [t.id]);
1241
1241
  let Fe = j(() => {
1242
1242
  if (!x || Pe.current === t.id || !y || t.isMyApp !== !0 || S?.(t) === !1) return;
1243
1243
  let e = t.id;
1244
- Pe.current = e, B(bn.Loading), (async () => {
1244
+ Pe.current = e, je(bn.Loading), (async () => {
1245
1245
  try {
1246
1246
  let n = await x(t);
1247
1247
  if (Pe.current !== e) return;
1248
- Ne(n), B(n == null ? bn.Unknown : bn.Resolved);
1248
+ Ne(n), je(n == null ? bn.Unknown : bn.Resolved);
1249
1249
  } catch {
1250
1250
  if (Pe.current !== e) return;
1251
- Ne(void 0), B(bn.Unknown);
1251
+ Ne(void 0), je(bn.Unknown);
1252
1252
  }
1253
1253
  })();
1254
1254
  }, [
@@ -1256,110 +1256,110 @@ var ft = /* @__PURE__ */ function(e) {
1256
1256
  x,
1257
1257
  y,
1258
1258
  S
1259
- ]), Ie = j((e) => {
1260
- e && (Fe(), ie?.());
1261
- }, [Fe, ie]), Re = j(() => {
1262
- Fe(), ie?.();
1263
- }, [Fe, ie]), ze = j(() => {
1264
- ie?.();
1265
- }, [ie]), Be = D?.hasPrimaryAction !== !1 && (r?.(t) ?? (t.type === v.Model || t.type === v.Agent || t.type === v.Prompt)), Ue = !oe && !!ae && re && (ne?.(t) ?? !0), We = !oe && !Ue && (ee?.(t) ?? (t.type === v.Model || t.type === v.Toolset || t.type === v.Agent)), Ke = !oe && !!l && !!t.isEditable, qe = !oe && t.isMyApp === !0 && (s?.(t) ?? !0), Qe = c?.(t) ?? !0, et = k?.(t) ?? !1, tt = t.credentials?.authenticationType ?? _.None, H = t.credentials != null && tt !== _.None ? p(t.credentials) : void 0, rt = !oe && H != null && (!!C || !!w), st = t.type === v.Toolset && rt, ct = !!u && (d?.(t) ?? !0), lt = ct && !st && (f?.(t) ?? t.type === v.Skill), ut = ct && !lt, dt = !oe && t.isMyApp, ft = !oe && !!h && t.isMyApp !== !0 && t.sharedWithMe === !0 && (g?.(t) ?? !0), K = !oe && !!y && t.isMyApp === !0 && (!x || je === bn.Unknown || je === bn.Resolved && (Me ?? 0) > 0) && (S?.(t) ?? !0), q = N(() => {
1259
+ ]), Le = j((e) => {
1260
+ e && (Fe(), ae?.());
1261
+ }, [Fe, ae]), Re = j(() => {
1262
+ Fe(), ae?.();
1263
+ }, [Fe, ae]), ze = j(() => {
1264
+ ae?.();
1265
+ }, [ae]), He = D?.hasPrimaryAction !== !1 && (r?.(t) ?? (t.type === v.Model || t.type === v.Agent || t.type === v.Prompt)), Ue = !I && !!oe && re && (ne?.(t) ?? !0), Ge = !I && !!oe && !ie && ne?.(t) === !0, Ke = !I && !Ue && (ee?.(t) ?? (t.type === v.Model || t.type === v.Toolset || t.type === v.Agent)), Ze = !I && !!l && !!t.isEditable, $e = !I && t.isMyApp === !0 && (s?.(t) ?? !0), et = c?.(t) ?? !0, nt = k?.(t) ?? !1, U = t.credentials?.authenticationType ?? _.None, st = t.credentials != null && U !== _.None ? p(t.credentials) : void 0, ct = !I && st != null && (!!C || !!w), lt = t.type === v.Toolset && ct, ut = !!u && (d?.(t) ?? !0), dt = ut && !lt && (f?.(t) ?? (t.type === v.Skill && !He)), ft = ut && !dt, K = !I && t.isMyApp, q = !I && !!h && t.isMyApp !== !0 && t.sharedWithMe === !0 && (g?.(t) ?? !0), J = !I && !!y && t.isMyApp === !0 && (!x || V === bn.Unknown || V === bn.Resolved && (Me ?? 0) > 0) && (S?.(t) ?? !0), mt = N(() => {
1266
1266
  let e = [];
1267
- if (!Qe && qe && e.push({
1267
+ if (!et && $e && e.push({
1268
1268
  key: "share",
1269
1269
  label: D?.shareLabel ?? "Share",
1270
- icon: /* @__PURE__ */ W($e, {
1271
- size: I.SM,
1270
+ icon: /* @__PURE__ */ W(Qe, {
1271
+ size: L.SM,
1272
1272
  "aria-hidden": !0,
1273
1273
  className: "text-secondary",
1274
- stroke: L
1274
+ stroke: R
1275
1275
  }),
1276
1276
  onClick: Te
1277
- }), Ke && e.push({
1277
+ }), Ze && e.push({
1278
1278
  key: "edit",
1279
1279
  label: D?.editActionLabel ?? "Edit",
1280
- icon: /* @__PURE__ */ W(Xe, {
1281
- size: I.SM,
1280
+ icon: /* @__PURE__ */ W(Ye, {
1281
+ size: L.SM,
1282
1282
  "aria-hidden": !0,
1283
1283
  className: "text-secondary",
1284
- stroke: L
1284
+ stroke: R
1285
1285
  }),
1286
1286
  onClick: he
1287
- }), ut && e.push({
1287
+ }), ft && e.push({
1288
1288
  key: "download",
1289
1289
  label: D?.downloadActionLabel ?? "Download",
1290
- icon: /* @__PURE__ */ W(He, {
1291
- size: I.SM,
1290
+ icon: /* @__PURE__ */ W(Ve, {
1291
+ size: L.SM,
1292
1292
  "aria-hidden": !0,
1293
1293
  className: "text-secondary",
1294
- stroke: L
1294
+ stroke: R
1295
1295
  }),
1296
1296
  onClick: ve
1297
- }), !et && We && e.push({
1297
+ }), !nt && Ke && e.push({
1298
1298
  key: "publish",
1299
1299
  label: D?.publishLabel ?? "Publish",
1300
- icon: /* @__PURE__ */ W(ot, {
1301
- size: I.SM,
1300
+ icon: /* @__PURE__ */ W(at, {
1301
+ size: L.SM,
1302
1302
  "aria-hidden": !0,
1303
1303
  className: "text-secondary",
1304
- stroke: L
1304
+ stroke: R
1305
1305
  }),
1306
1306
  onClick: ge
1307
- }), !et && Ue && e.push({
1307
+ }), !nt && Ue && e.push({
1308
1308
  key: "unpublish",
1309
1309
  label: D?.unpublishLabel ?? "Unpublish",
1310
- icon: /* @__PURE__ */ W(at, {
1311
- size: I.SM,
1310
+ icon: /* @__PURE__ */ W(it, {
1311
+ size: L.SM,
1312
1312
  "aria-hidden": !0,
1313
1313
  className: "text-secondary",
1314
- stroke: L
1314
+ stroke: R
1315
1315
  }),
1316
1316
  onClick: _e
1317
- }), dt && e.push({
1317
+ }), K && e.push({
1318
1318
  key: "delete",
1319
1319
  label: D?.deleteActionLabel ?? "Delete",
1320
- icon: /* @__PURE__ */ W(nt, {
1321
- size: I.SM,
1320
+ icon: /* @__PURE__ */ W(tt, {
1321
+ size: L.SM,
1322
1322
  "aria-hidden": !0,
1323
- stroke: L
1323
+ stroke: R
1324
1324
  }),
1325
1325
  danger: !0,
1326
1326
  onClick: Oe
1327
- }), K) {
1327
+ }), J) {
1328
1328
  let t = D?.revokeShareLabel ?? "Revoke access", n = D?.revokeShareLabelWithCount ?? ((e) => `${t} (${e})`);
1329
1329
  e.push({
1330
1330
  key: "revoke-share",
1331
1331
  label: Me == null ? t : n(Me),
1332
- icon: /* @__PURE__ */ W(it, {
1333
- size: I.SM,
1332
+ icon: /* @__PURE__ */ W(rt, {
1333
+ size: L.SM,
1334
1334
  "aria-hidden": !0,
1335
- stroke: L
1335
+ stroke: R
1336
1336
  }),
1337
1337
  danger: !0,
1338
- onClick: ke
1338
+ onClick: Ae
1339
1339
  });
1340
1340
  }
1341
- return ft && e.push({
1341
+ return q && e.push({
1342
1342
  key: "unshare",
1343
1343
  label: D?.unshareLabel ?? "Remove from My List",
1344
- icon: /* @__PURE__ */ W(nt, {
1345
- size: I.SM,
1344
+ icon: /* @__PURE__ */ W(tt, {
1345
+ size: L.SM,
1346
1346
  "aria-hidden": !0,
1347
- stroke: L
1347
+ stroke: R
1348
1348
  }),
1349
1349
  onClick: De
1350
1350
  }), e;
1351
1351
  }, [
1352
- Qe,
1353
- qe,
1354
- Ke,
1355
- ut,
1356
1352
  et,
1357
- We,
1353
+ $e,
1354
+ Ze,
1355
+ ft,
1356
+ nt,
1357
+ Ke,
1358
1358
  Ue,
1359
- dt,
1360
1359
  K,
1360
+ J,
1361
1361
  Me,
1362
- ft,
1362
+ q,
1363
1363
  D,
1364
1364
  Te,
1365
1365
  he,
@@ -1367,59 +1367,59 @@ var ft = /* @__PURE__ */ function(e) {
1367
1367
  ge,
1368
1368
  _e,
1369
1369
  Oe,
1370
- ke,
1370
+ Ae,
1371
1371
  De
1372
- ]), [J, mt] = F(!1), Y = tt === _.ApiKey && H !== e.ManageCredentials, ht = tt === _.ApiKey && H === e.LogOut, gt = tt !== _.ApiKey && H !== e.ManageCredentials && H === e.LogOut, X = j(() => {
1373
- if (H === e.ManageCredentials) {
1372
+ ]), [ht, gt] = F(!1), Y = U === _.ApiKey && st !== e.ManageCredentials, X = U === _.ApiKey && st === e.LogOut, _t = U !== _.ApiKey && st !== e.ManageCredentials && st === e.LogOut, vt = j(() => {
1373
+ if (st === e.ManageCredentials) {
1374
1374
  T?.();
1375
1375
  return;
1376
1376
  }
1377
1377
  if (Y) {
1378
- mt((e) => !e);
1378
+ gt((e) => !e);
1379
1379
  return;
1380
1380
  }
1381
- if (H === e.LogOut) {
1381
+ if (st === e.LogOut) {
1382
1382
  E?.();
1383
1383
  return;
1384
1384
  }
1385
1385
  C?.(t, { level: a.User });
1386
1386
  }, [
1387
- H,
1387
+ st,
1388
1388
  Y,
1389
1389
  t,
1390
1390
  C,
1391
1391
  T,
1392
1392
  E
1393
- ]), _t = H === e.ManageCredentials ? (D?.manageCredentialsActionLabel ?? Dn)(tt) : tt === _.ApiKey ? H === e.LogOut ? D?.changeApiKeyActionLabel ?? "Change API key" : D?.apiKeyActionLabel ?? "API key" : H === e.LogOut ? D?.logoutActionLabel ?? "Log out" : D?.loginActionLabel ?? "Log in", vt = H === e.ManageCredentials || tt === _.ApiKey ? /* @__PURE__ */ W(Ge, {
1394
- size: I.MD,
1395
- stroke: L
1396
- }) : H === e.LogOut ? /* @__PURE__ */ W(Ye, {
1397
- size: I.MD,
1398
- stroke: L
1399
- }) : /* @__PURE__ */ W(Je, {
1400
- size: I.MD,
1401
- stroke: L
1402
- }), yt = H === e.ManageCredentials ? /* @__PURE__ */ W(V, {
1403
- size: I.MD,
1393
+ ]), yt = st === e.ManageCredentials ? (D?.manageCredentialsActionLabel ?? Dn)(U) : U === _.ApiKey ? st === e.LogOut ? D?.changeApiKeyActionLabel ?? "Change API key" : D?.apiKeyActionLabel ?? "API key" : st === e.LogOut ? D?.logoutActionLabel ?? "Log out" : D?.loginActionLabel ?? "Log in", Z = st === e.ManageCredentials || U === _.ApiKey ? /* @__PURE__ */ W(We, {
1394
+ size: L.MD,
1395
+ stroke: R
1396
+ }) : st === e.LogOut ? /* @__PURE__ */ W(Je, {
1397
+ size: L.MD,
1398
+ stroke: R
1399
+ }) : /* @__PURE__ */ W(qe, {
1400
+ size: L.MD,
1401
+ stroke: R
1402
+ }), bt = st === e.ManageCredentials ? /* @__PURE__ */ W(H, {
1403
+ size: L.MD,
1404
1404
  className: "rtl:scale-x-[-1]",
1405
- stroke: L
1406
- }) : Y ? /* @__PURE__ */ W(Le, {
1407
- size: I.MD,
1408
- stroke: L
1409
- }) : void 0, Z = (e) => {
1405
+ stroke: R
1406
+ }) : Y ? /* @__PURE__ */ W(Ie, {
1407
+ size: L.MD,
1408
+ stroke: R
1409
+ }) : void 0, Q = (e) => {
1410
1410
  let n = /* @__PURE__ */ W(e, {
1411
- label: _t,
1412
- iconBefore: vt,
1413
- iconAfter: yt,
1414
- onClick: X,
1411
+ label: yt,
1412
+ iconBefore: Z,
1413
+ iconAfter: bt,
1414
+ onClick: vt,
1415
1415
  "aria-haspopup": Y ? "dialog" : void 0,
1416
- "aria-expanded": Y ? J : void 0
1416
+ "aria-expanded": Y ? ht : void 0
1417
1417
  });
1418
- return !Y || t.credentials == null ? n : /* @__PURE__ */ W(ue, {
1418
+ return !Y || t.credentials == null ? n : /* @__PURE__ */ W(le, {
1419
1419
  placement: "bottom-start",
1420
1420
  matchReferenceWidth: !1,
1421
- open: J,
1422
- onOpenChange: mt,
1421
+ open: ht,
1422
+ onOpenChange: gt,
1423
1423
  trigger: [],
1424
1424
  outsideClosable: !0,
1425
1425
  renderOverlay: () => /* @__PURE__ */ W(Cn, {
@@ -1429,7 +1429,7 @@ var ft = /* @__PURE__ */ function(e) {
1429
1429
  apiKeyAddedWhen: t.credentials?.userApiKeyAddedWhen,
1430
1430
  onLogin: C,
1431
1431
  onLogout: w,
1432
- onClose: () => mt(!1),
1432
+ onClose: () => gt(!1),
1433
1433
  texts: D
1434
1434
  }),
1435
1435
  children: n
@@ -1442,33 +1442,33 @@ var ft = /* @__PURE__ */ function(e) {
1442
1442
  iconSize: 52,
1443
1443
  nameClassName: A(se, wn.name),
1444
1444
  featuredLabel: D?.featuredLabel ?? "Featured",
1445
- statusBadge: fe,
1446
- footer: t.folder.length > 0 ? /* @__PURE__ */ W(pe, {
1445
+ statusBadge: pe,
1446
+ footer: t.folder.length > 0 ? /* @__PURE__ */ W(fe, {
1447
1447
  segments: t.folder,
1448
1448
  labelClassName: ce,
1449
- leafClassName: le
1449
+ leafClassName: ue
1450
1450
  }) : void 0
1451
1451
  }), /* @__PURE__ */ G("div", {
1452
1452
  className: "flex flex-wrap items-center gap-2 ps-[60px]",
1453
1453
  children: [
1454
- st && Z(ht || gt ? z : Ce),
1455
- Be && /* @__PURE__ */ W(Ce, {
1454
+ lt && Q(X || _t ? B : Se),
1455
+ He && /* @__PURE__ */ W(Se, {
1456
1456
  label: D?.primaryActionLabel ?? "Use in chat",
1457
- iconBefore: /* @__PURE__ */ W(Ze, { size: I.MD }),
1457
+ iconBefore: /* @__PURE__ */ W(Xe, { size: L.MD }),
1458
1458
  onClick: me,
1459
1459
  disabled: de === pt.LimitReached
1460
1460
  }),
1461
- lt && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(Ce, {
1461
+ dt && /* @__PURE__ */ G(ot, { children: [/* @__PURE__ */ W(Se, {
1462
1462
  label: D?.downloadActionLabel ?? "Download",
1463
- iconBefore: ye ? /* @__PURE__ */ W(Ae, {
1464
- size: I.MD,
1463
+ iconBefore: ye ? /* @__PURE__ */ W(ke, {
1464
+ size: L.MD,
1465
1465
  "aria-hidden": !0
1466
- }) : /* @__PURE__ */ W(He, {
1467
- size: I.MD,
1466
+ }) : /* @__PURE__ */ W(Ve, {
1467
+ size: L.MD,
1468
1468
  "aria-hidden": !0,
1469
- stroke: L
1469
+ stroke: R
1470
1470
  }),
1471
- onClick: xe,
1471
+ onClick: z,
1472
1472
  disabled: ye,
1473
1473
  "aria-busy": ye
1474
1474
  }), ye && /* @__PURE__ */ W("span", {
@@ -1477,47 +1477,47 @@ var ft = /* @__PURE__ */ function(e) {
1477
1477
  className: "sr-only",
1478
1478
  children: D?.downloadingStatusLabel ?? "Downloading"
1479
1479
  })] }),
1480
- Qe && qe && /* @__PURE__ */ W(En, {
1480
+ et && $e && /* @__PURE__ */ W(En, {
1481
1481
  item: t,
1482
1482
  onShare: i,
1483
1483
  shareOverlay: o,
1484
1484
  isShareVisible: s,
1485
1485
  label: D?.shareLabel
1486
1486
  }),
1487
- et && Ue && /* @__PURE__ */ W(z, {
1487
+ nt && Ue && /* @__PURE__ */ W(B, {
1488
1488
  label: D?.unpublishLabel ?? "Unpublish",
1489
- iconBefore: /* @__PURE__ */ W(at, {
1490
- size: I.MD,
1489
+ iconBefore: /* @__PURE__ */ W(it, {
1490
+ size: L.MD,
1491
1491
  "aria-hidden": !0,
1492
- stroke: L
1492
+ stroke: R
1493
1493
  }),
1494
1494
  onClick: _e,
1495
1495
  onMouseEnter: ze,
1496
1496
  onFocus: ze
1497
1497
  }),
1498
- et && We && /* @__PURE__ */ W(z, {
1498
+ nt && Ke && /* @__PURE__ */ W(B, {
1499
1499
  label: D?.publishLabel ?? "Publish",
1500
- iconBefore: /* @__PURE__ */ W(ot, {
1501
- size: I.MD,
1500
+ iconBefore: /* @__PURE__ */ W(at, {
1501
+ size: L.MD,
1502
1502
  "aria-hidden": !0,
1503
- stroke: L
1503
+ stroke: R
1504
1504
  }),
1505
1505
  onClick: ge,
1506
1506
  onMouseEnter: ze,
1507
1507
  onFocus: ze
1508
1508
  }),
1509
- rt && !st && Z(z),
1510
- q.length > 0 && (() => {
1511
- let e = /* @__PURE__ */ W(ue, {
1512
- items: q,
1509
+ ct && !lt && Q(B),
1510
+ (mt.length > 0 || Ge) && (() => {
1511
+ let e = /* @__PURE__ */ W(le, {
1512
+ items: mt,
1513
1513
  placement: "bottom-end",
1514
1514
  matchReferenceWidth: !1,
1515
- onOpenChange: Ie,
1516
- children: /* @__PURE__ */ W(Se, {
1517
- icon: /* @__PURE__ */ W(Ve, {
1518
- size: I.LG,
1515
+ onOpenChange: Le,
1516
+ children: /* @__PURE__ */ W(xe, {
1517
+ icon: /* @__PURE__ */ W(Be, {
1518
+ size: L.LG,
1519
1519
  "aria-hidden": !0,
1520
- stroke: L
1520
+ stroke: R
1521
1521
  }),
1522
1522
  "aria-label": D?.manageActionLabel ?? "Manage",
1523
1523
  "aria-haspopup": "menu",
@@ -1525,10 +1525,10 @@ var ft = /* @__PURE__ */ function(e) {
1525
1525
  onFocus: Re
1526
1526
  })
1527
1527
  });
1528
- return Qe || !o || !qe ? e : /* @__PURE__ */ W(ue, {
1528
+ return et || !o || !$e ? e : /* @__PURE__ */ W(le, {
1529
1529
  placement: "bottom-end",
1530
1530
  matchReferenceWidth: !1,
1531
- open: R,
1531
+ open: Ce,
1532
1532
  onOpenChange: we,
1533
1533
  trigger: [],
1534
1534
  outsideClosable: !0,
@@ -1570,7 +1570,7 @@ var ft = /* @__PURE__ */ function(e) {
1570
1570
  node: e,
1571
1571
  parentId: n
1572
1572
  };
1573
- return e.type === ht.File || !t.has(e.id) ? [r] : [r, ...Nn(e.items, t, e.id)];
1573
+ return e.type === gt.File || !t.has(e.id) ? [r] : [r, ...Nn(e.items, t, e.id)];
1574
1574
  }), Pn = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
1575
1575
  let c = N(() => Nn(e, n), [e, n]), l = P({}), [u, d] = F(() => t ?? c[0]?.node.id);
1576
1576
  M(() => {
@@ -1596,14 +1596,14 @@ var ft = /* @__PURE__ */ function(e) {
1596
1596
  break;
1597
1597
  }
1598
1598
  case "ArrowRight":
1599
- e.preventDefault(), o.node.type === ht.Folder && !n.has(o.node.id) && r(o.node.id);
1599
+ e.preventDefault(), o.node.type === gt.Folder && !n.has(o.node.id) && r(o.node.id);
1600
1600
  break;
1601
1601
  case "ArrowLeft":
1602
- e.preventDefault(), o.node.type === ht.Folder && n.has(o.node.id) ? r(o.node.id) : o.parentId != null && f(o.parentId);
1602
+ e.preventDefault(), o.node.type === gt.Folder && n.has(o.node.id) ? r(o.node.id) : o.parentId != null && f(o.parentId);
1603
1603
  break;
1604
1604
  case "Enter":
1605
1605
  case " ":
1606
- e.preventDefault(), o.node.type === ht.Folder ? r(o.node.id) : i(o.node.id);
1606
+ e.preventDefault(), o.node.type === gt.Folder ? r(o.node.id) : i(o.node.id);
1607
1607
  break;
1608
1608
  case "Escape":
1609
1609
  e.preventDefault(), a();
@@ -1612,7 +1612,7 @@ var ft = /* @__PURE__ */ function(e) {
1612
1612
  }
1613
1613
  }, m = (e) => A("flex h-10 shrink-0 cursor-pointer items-center gap-2 rounded-2 px-3 outline-none", "hover:bg-control-accent-alpha-hover focus-visible:bg-control-accent-alpha-hover", e && "bg-control-accent-alpha-hover"), h = (e) => {
1614
1614
  let a = e.id === u;
1615
- if (e.type === ht.File) {
1615
+ if (e.type === gt.File) {
1616
1616
  let n = e.id === t;
1617
1617
  return /* @__PURE__ */ W("div", {
1618
1618
  ref: (t) => {
@@ -1642,21 +1642,21 @@ var ft = /* @__PURE__ */ function(e) {
1642
1642
  onClick: () => r(e.id),
1643
1643
  onFocus: () => d(e.id),
1644
1644
  children: [
1645
- /* @__PURE__ */ W(We, {
1646
- size: I.SM,
1645
+ /* @__PURE__ */ W(Ue, {
1646
+ size: L.SM,
1647
1647
  className: "shrink-0",
1648
1648
  "aria-hidden": !0,
1649
- stroke: L
1649
+ stroke: R
1650
1650
  }),
1651
1651
  /* @__PURE__ */ W("span", {
1652
1652
  className: A("min-w-0 flex-1 truncate", s),
1653
1653
  children: e.name
1654
1654
  }),
1655
- /* @__PURE__ */ W(Le, {
1656
- size: I.SM,
1655
+ /* @__PURE__ */ W(Ie, {
1656
+ size: L.SM,
1657
1657
  className: A("shrink-0 transition-transform", !o && "-rotate-90 rtl:rotate-90"),
1658
1658
  "aria-hidden": !0,
1659
- stroke: L
1659
+ stroke: R
1660
1660
  })
1661
1661
  ]
1662
1662
  }), o && e.items.length > 0 && /* @__PURE__ */ W("div", {
@@ -1675,10 +1675,10 @@ var ft = /* @__PURE__ */ function(e) {
1675
1675
  let _ = g?.typography?.contentClassName ?? "dial-small-text", v = g?.typography?.contentHeadingClassName ?? "dial-small-semi-text", y = g?.typography?.contentFileCountClassName ?? "dial-tiny-text", b = t != null && t !== "", x = n ?? [], S = Bt(x) > 1, C = Ht(x, r) ?? "", T = (e) => {
1676
1676
  i?.(e), l(!1);
1677
1677
  }, D = a ? {
1678
- type: gt.Text,
1678
+ type: Y.Text,
1679
1679
  text: ""
1680
1680
  } : m ?? {
1681
- type: gt.Markdown,
1681
+ type: Y.Markdown,
1682
1682
  text: e
1683
1683
  };
1684
1684
  return /* @__PURE__ */ G("div", {
@@ -1686,7 +1686,7 @@ var ft = /* @__PURE__ */ function(e) {
1686
1686
  children: [
1687
1687
  S && /* @__PURE__ */ G("div", {
1688
1688
  className: "flex shrink-0 items-center gap-3",
1689
- children: [/* @__PURE__ */ W(ue, {
1689
+ children: [/* @__PURE__ */ W(le, {
1690
1690
  open: c,
1691
1691
  onOpenChange: l,
1692
1692
  trigger: [],
@@ -1703,9 +1703,9 @@ var ft = /* @__PURE__ */ function(e) {
1703
1703
  ariaLabel: u,
1704
1704
  rowNameClassName: _
1705
1705
  }),
1706
- children: /* @__PURE__ */ W(ve, {
1706
+ children: /* @__PURE__ */ W(_e, {
1707
1707
  label: C,
1708
- size: de.Small,
1708
+ size: ue.Small,
1709
1709
  isOpen: c,
1710
1710
  onClick: () => l(!c)
1711
1711
  })
@@ -1714,7 +1714,7 @@ var ft = /* @__PURE__ */ function(e) {
1714
1714
  children: d(Bt(x))
1715
1715
  })]
1716
1716
  }),
1717
- b && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("p", {
1717
+ b && /* @__PURE__ */ G(ot, { children: [/* @__PURE__ */ W("p", {
1718
1718
  className: A("m-0", _),
1719
1719
  children: t
1720
1720
  }), /* @__PURE__ */ W("div", { className: A("shrink-0", Mn.divider) })] }),
@@ -1727,21 +1727,21 @@ var ft = /* @__PURE__ */ function(e) {
1727
1727
  }), (() => {
1728
1728
  if (h != null) return h;
1729
1729
  switch (D.type) {
1730
- case gt.Markdown: return /* @__PURE__ */ W(E, {
1730
+ case Y.Markdown: return /* @__PURE__ */ W(E, {
1731
1731
  content: D.text,
1732
1732
  headingClassName: v
1733
1733
  });
1734
- case gt.Text: return /* @__PURE__ */ W(w, {
1734
+ case Y.Text: return /* @__PURE__ */ W(w, {
1735
1735
  language: D.language ?? "",
1736
1736
  value: D.text,
1737
1737
  hideDownload: !0
1738
1738
  });
1739
- case gt.Image: return /* @__PURE__ */ W("img", {
1739
+ case Y.Image: return /* @__PURE__ */ W("img", {
1740
1740
  src: D.url,
1741
1741
  alt: C,
1742
1742
  className: "max-w-full"
1743
1743
  });
1744
- case gt.Unsupported: return /* @__PURE__ */ W("p", {
1744
+ case Y.Unsupported: return /* @__PURE__ */ W("p", {
1745
1745
  className: "m-0",
1746
1746
  children: p
1747
1747
  });
@@ -1781,7 +1781,7 @@ var ft = /* @__PURE__ */ function(e) {
1781
1781
  className: "flex w-32 shrink-0 flex-col items-end gap-2",
1782
1782
  children: [/* @__PURE__ */ W("div", {
1783
1783
  className: A("flex gap-1", r),
1784
- children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("span", {
1784
+ children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ G(ot, { children: [/* @__PURE__ */ W("span", {
1785
1785
  className: Kn.valuePrimary,
1786
1786
  children: e.usedLabel
1787
1787
  }), /* @__PURE__ */ W("span", {
@@ -1791,10 +1791,10 @@ var ft = /* @__PURE__ */ function(e) {
1791
1791
  className: Kn.label,
1792
1792
  children: o
1793
1793
  })
1794
- }), /* @__PURE__ */ W(we, {
1794
+ }), /* @__PURE__ */ W(Ce, {
1795
1795
  value: zn(e),
1796
1796
  max: Bn(e.total),
1797
- size: de.Small,
1797
+ size: ue.Small,
1798
1798
  className: A("!h-1 w-full", Kn.progressTrack, Gn(e) === Rn.Default && Kn.progressFillDefault, Gn(e) === Rn.Warning && Kn.progressFillWarning, Gn(e) === Rn.Danger && Kn.progressFillDanger),
1799
1799
  "aria-label": e.label,
1800
1800
  "aria-valuetext": e.ariaLabel ?? o
@@ -1978,134 +1978,134 @@ var ft = /* @__PURE__ */ function(e) {
1978
1978
  "Everyone you shared it with loses access",
1979
1979
  "Existing share links stop working",
1980
1980
  "You keep full access — nothing is deleted"
1981
- ], fr = (e) => e === _.ApiKey ? "Toolset API keys" : "Toolset credentials", pr = (e) => e === a.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", mr = new Set([q.Delete, q.Unshare]), hr = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, isReadonly: i = !1, onClose: o, onToggleFavorite: c, isFavoriteVisible: l, onUseInChat: d, isPrimaryActionVisible: f, onShare: p, isPublishVisible: m, isPublishPrimary: h, getPublishHistory: g, publishFolderItems: _ = or, publishExpandedPaths: v, onPublishExpandedPathsChange: y, publishLoadingPaths: b, hasPublishWriteAccess: x, onPublish: S, onPublishSuccess: C, onPublishError: w, onCreatePublishFolder: T, publishLabels: E, ruleSourceOptions: D = sr, onFetchExistingRules: O, shareOverlay: ee, isShareVisible: te, isSharePrimary: ne, onEdit: re, onDownload: ie, isDownloadVisible: ae, isDownloadPrimary: oe, onLoadContentFile: se, onLoadContentFilePreview: I, renderContentFilePreview: le, onDelete: ue, onUnshare: fe, isUnshareVisible: pe, onRevokeShare: me, onFetchRecipientsCount: ge, isRevokeShareVisible: _e, onUnpublish: ve, isUnpublishVisible: ye, onLogin: be, onLogout: xe, texts: R, styles: z, limitsFooterNote: Se }) => {
1982
- let { subViewTitleClassName: Ce = "dial-body-semi-text", overviewSectionClassName: we = "dial-caption-text", overviewLabelClassName: Ee = "dial-small-semi-text", overviewValueClassName: De = "dial-small-text", overviewValueTrueClassName: ke = "dial-small-text", confirmMessageClassName: Ae = "dial-small-text" } = z?.typography ?? {}, B = z?.colors, Me = k({
1983
- "--cat-details-backdrop": B?.backdrop,
1984
- "--cat-details-bg": B?.background,
1985
- "--cat-details-border": B?.border,
1986
- "--cat-details-divider": B?.divider,
1987
- "--cat-details-scrollbar": B?.scrollbar,
1988
- "--cat-details-skeleton": B?.skeleton,
1989
- "--cat-details-name-text": B?.nameText,
1990
- "--cat-details-publish-title-text": B?.publishTitleText,
1991
- "--cat-details-content-text": B?.contentText,
1992
- "--cat-details-variable-text": B?.variableText,
1993
- "--cat-details-file-count-text": B?.contentFileCountText,
1994
- "--cat-api-heading-text": B?.apiHeadingText,
1995
- "--cat-tools-divider": B?.toolsDivider,
1996
- "--cat-tools-description-text": B?.toolsDescriptionText,
1997
- "--cat-grid-border": B?.gridBorder,
1998
- "--cat-grid-header-text": B?.gridHeaderText,
1999
- "--cat-grid-header-bg": B?.gridHeaderBackground,
2000
- "--cat-grid-cell-text": B?.gridCellText,
2001
- "--cat-grid-cell-divider": B?.gridCellDivider,
2002
- "--cat-grid-row-even-bg": B?.gridRowEvenBackground,
2003
- "--cat-info-card-bg": B?.infoCardBackground,
2004
- "--cat-info-card-danger-bg": B?.infoCardDangerBackground,
2005
- "--cat-confirm-message-text": B?.confirmMessageText,
2006
- "--cat-confirm-consequence-text": B?.confirmConsequenceText,
2007
- "--cat-confirm-footer-border": B?.confirmFooterBorder,
2008
- "--cat-cred-surface-bg": B?.credentialsSurfaceBackground,
2009
- "--cat-cred-active-icon": B?.credentialsActiveIcon,
2010
- "--cat-cred-banner-icon-bg": B?.credentialsBannerIconBackground,
2011
- "--cat-cred-description-text": B?.credentialsDescriptionText,
2012
- "--cat-cred-row-description-text": B?.credentialsRowDescriptionText,
2013
- "--cat-cred-error-text": B?.credentialsErrorText,
2014
- "--cat-cred-card-bg": B?.credentialsCardBackground,
2015
- "--cat-cred-card-icon": B?.credentialsCardIcon,
2016
- "--cat-cred-card-title-text": B?.credentialsCardTitleText,
2017
- "--cat-cred-card-description-text": B?.credentialsCardDescriptionText
2018
- }), [Ne, Pe] = F(n), [V, Fe] = F(""), [Ie, Le] = F(!1), [ze, Be] = F([]), [Ve, He] = F(!1), [Ue, We] = F(!1), [Ge, Ke] = F(!1), qe = P(null), Je = e.details?.promptContent, Ye = Je?.selectedFileId, [Xe, Ze] = F(null), [Qe, $e] = F(!1), [et, tt] = F(/* @__PURE__ */ new Set()), [nt, H] = F(!1), rt = P(null), it = P(0), at = j((e) => {
2019
- let t = rt.current, n = e?.preview?.type === gt.Image ? e.preview.url : null;
2020
- t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), rt.current = n, Ze(e);
1981
+ ], fr = (e) => e === _.ApiKey ? "Toolset API keys" : "Toolset credentials", pr = (e) => e === a.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", mr = new Set([q.Delete, q.Unshare]), hr = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, isReadonly: i = !1, onClose: o, onToggleFavorite: c, isFavoriteVisible: l, onUseInChat: d, isPrimaryActionVisible: f, onShare: p, isPublishVisible: m, isPublishPrimary: h, getPublishHistory: g, publishFolderItems: _ = or, publishExpandedPaths: v, onPublishExpandedPathsChange: y, publishLoadingPaths: b, hasPublishWriteAccess: x, onPublish: S, onPublishSuccess: C, onPublishError: w, onCreatePublishFolder: T, publishLabels: E, ruleSourceOptions: D = sr, onFetchExistingRules: O, shareOverlay: ee, isShareVisible: te, isSharePrimary: ne, onEdit: re, onDownload: ie, isDownloadVisible: ae, isDownloadPrimary: oe, onLoadContentFile: I, onLoadContentFilePreview: L, renderContentFilePreview: ce, onDelete: le, onUnshare: de, isUnshareVisible: fe, onRevokeShare: pe, onFetchRecipientsCount: he, isRevokeShareVisible: ge, onUnpublish: _e, isUnpublishVisible: ve, onLogin: ye, onLogout: be, texts: z, styles: B, limitsFooterNote: xe }) => {
1982
+ let { subViewTitleClassName: Se = "dial-body-semi-text", overviewSectionClassName: Ce = "dial-caption-text", overviewLabelClassName: Te = "dial-small-semi-text", overviewValueClassName: Ee = "dial-small-text", overviewValueTrueClassName: Oe = "dial-small-text", confirmMessageClassName: ke = "dial-small-text" } = B?.typography ?? {}, V = B?.colors, je = k({
1983
+ "--cat-details-backdrop": V?.backdrop,
1984
+ "--cat-details-bg": V?.background,
1985
+ "--cat-details-border": V?.border,
1986
+ "--cat-details-divider": V?.divider,
1987
+ "--cat-details-scrollbar": V?.scrollbar,
1988
+ "--cat-details-skeleton": V?.skeleton,
1989
+ "--cat-details-name-text": V?.nameText,
1990
+ "--cat-details-publish-title-text": V?.publishTitleText,
1991
+ "--cat-details-content-text": V?.contentText,
1992
+ "--cat-details-variable-text": V?.variableText,
1993
+ "--cat-details-file-count-text": V?.contentFileCountText,
1994
+ "--cat-api-heading-text": V?.apiHeadingText,
1995
+ "--cat-tools-divider": V?.toolsDivider,
1996
+ "--cat-tools-description-text": V?.toolsDescriptionText,
1997
+ "--cat-grid-border": V?.gridBorder,
1998
+ "--cat-grid-header-text": V?.gridHeaderText,
1999
+ "--cat-grid-header-bg": V?.gridHeaderBackground,
2000
+ "--cat-grid-cell-text": V?.gridCellText,
2001
+ "--cat-grid-cell-divider": V?.gridCellDivider,
2002
+ "--cat-grid-row-even-bg": V?.gridRowEvenBackground,
2003
+ "--cat-info-card-bg": V?.infoCardBackground,
2004
+ "--cat-info-card-danger-bg": V?.infoCardDangerBackground,
2005
+ "--cat-confirm-message-text": V?.confirmMessageText,
2006
+ "--cat-confirm-consequence-text": V?.confirmConsequenceText,
2007
+ "--cat-confirm-footer-border": V?.confirmFooterBorder,
2008
+ "--cat-cred-surface-bg": V?.credentialsSurfaceBackground,
2009
+ "--cat-cred-active-icon": V?.credentialsActiveIcon,
2010
+ "--cat-cred-banner-icon-bg": V?.credentialsBannerIconBackground,
2011
+ "--cat-cred-description-text": V?.credentialsDescriptionText,
2012
+ "--cat-cred-row-description-text": V?.credentialsRowDescriptionText,
2013
+ "--cat-cred-error-text": V?.credentialsErrorText,
2014
+ "--cat-cred-card-bg": V?.credentialsCardBackground,
2015
+ "--cat-cred-card-icon": V?.credentialsCardIcon,
2016
+ "--cat-cred-card-title-text": V?.credentialsCardTitleText,
2017
+ "--cat-cred-card-description-text": V?.credentialsCardDescriptionText
2018
+ }), [Me, Ne] = F(n), [H, Pe] = F(""), [Fe, Ie] = F(!1), [Re, ze] = F([]), [Be, Ve] = F(!1), [He, Ue] = F(!1), [We, Ge] = F(!1), Ke = P(null), qe = e.details?.promptContent, Je = qe?.selectedFileId, [Ye, Xe] = F(null), [Ze, Qe] = F(!1), [$e, et] = F(/* @__PURE__ */ new Set()), [tt, nt] = F(!1), U = P(null), rt = P(0), it = j((e) => {
2019
+ let t = U.current, n = e?.preview?.type === Y.Image ? e.preview.url : null;
2020
+ t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), U.current = n, Xe(e);
2021
2021
  }, []);
2022
2022
  M(() => {
2023
- it.current += 1, at(null), $e(!1), tt(Vt(Je?.files ?? [])), H(!1);
2024
- }, [e.id, Ye]), M(() => () => {
2025
- let e = rt.current;
2023
+ rt.current += 1, it(null), Qe(!1), et(Vt(qe?.files ?? [])), nt(!1);
2024
+ }, [e.id, Je]), M(() => () => {
2025
+ let e = U.current;
2026
2026
  e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
2027
2027
  }, []);
2028
- let ot = j((e) => {
2029
- tt((t) => {
2028
+ let at = j((e) => {
2029
+ et((t) => {
2030
2030
  let n = new Set(t);
2031
2031
  return n.has(e) ? n.delete(e) : n.add(e), n;
2032
2032
  });
2033
2033
  }, []), dt = j(async (e) => {
2034
- if (e === Ye) {
2035
- it.current += 1, at(null), $e(!1);
2034
+ if (e === Je) {
2035
+ rt.current += 1, it(null), Qe(!1);
2036
2036
  return;
2037
2037
  }
2038
- if (le == null && se == null && I == null) return;
2039
- if (le != null) {
2040
- it.current += 1, at({
2038
+ if (ce == null && I == null && L == null) return;
2039
+ if (ce != null) {
2040
+ rt.current += 1, it({
2041
2041
  id: e,
2042
2042
  preview: null
2043
- }), $e(!1);
2043
+ }), Qe(!1);
2044
2044
  return;
2045
2045
  }
2046
- let t = ++it.current;
2047
- at({
2046
+ let t = ++rt.current;
2047
+ it({
2048
2048
  id: e,
2049
2049
  preview: null
2050
- }), $e(!0);
2050
+ }), Qe(!0);
2051
2051
  try {
2052
- let n = I == null ? await se?.(e).then((e) => e == null ? void 0 : {
2053
- type: gt.Markdown,
2052
+ let n = L == null ? await I?.(e).then((e) => e == null ? void 0 : {
2053
+ type: Y.Markdown,
2054
2054
  text: e
2055
- }) : await I(e);
2056
- if (it.current !== t) {
2057
- n?.type === gt.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
2055
+ }) : await L(e);
2056
+ if (rt.current !== t) {
2057
+ n?.type === Y.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
2058
2058
  return;
2059
2059
  }
2060
- at({
2060
+ it({
2061
2061
  id: e,
2062
2062
  preview: n ?? null
2063
2063
  });
2064
2064
  } catch {
2065
- if (it.current !== t) return;
2066
- at({
2065
+ if (rt.current !== t) return;
2066
+ it({
2067
2067
  id: e,
2068
2068
  preview: null
2069
2069
  });
2070
2070
  } finally {
2071
- it.current === t && $e(!1);
2071
+ rt.current === t && Qe(!1);
2072
2072
  }
2073
2073
  }, [
2074
- Ye,
2075
- se,
2074
+ Je,
2076
2075
  I,
2077
- le,
2078
- at
2079
- ]), ft = Xe?.id ?? Ye, pt = () => Xe == null ? null : Xe.preview == null ? {
2080
- type: gt.Text,
2081
- text: R?.contentFileErrorLabel ?? "Failed to load this file."
2082
- } : Xe.preview, mt = Xe != null && le != null ? le(Xe.id, Ht(Je?.files ?? [], Xe.id) ?? "") : void 0, Y = j(() => {
2083
- if (!g || qe.current === e.id) return;
2076
+ L,
2077
+ ce,
2078
+ it
2079
+ ]), ft = Ye?.id ?? Je, pt = () => Ye == null ? null : Ye.preview == null ? {
2080
+ type: Y.Text,
2081
+ text: z?.contentFileErrorLabel ?? "Failed to load this file."
2082
+ } : Ye.preview, mt = Ye != null && ce != null ? ce(Ye.id, Ht(qe?.files ?? [], Ye.id) ?? "") : void 0, ht = j(() => {
2083
+ if (!g || Ke.current === e.id) return;
2084
2084
  let t = e.id;
2085
- qe.current = t, He(!0), We(!1), (async () => {
2085
+ Ke.current = t, Ve(!0), Ue(!1), (async () => {
2086
2086
  try {
2087
2087
  let n = await g(e);
2088
- if (qe.current !== t) return;
2089
- Be(n), Ke(!0), He(!1);
2088
+ if (Ke.current !== t) return;
2089
+ ze(n), Ge(!0), Ve(!1);
2090
2090
  } catch {
2091
- if (qe.current !== t) return;
2092
- We(!0), He(!1), qe.current = null;
2091
+ if (Ke.current !== t) return;
2092
+ Ue(!0), Ve(!1), Ke.current = null;
2093
2093
  }
2094
2094
  })();
2095
2095
  }, [g, e]);
2096
2096
  M(() => {
2097
- Ie && Y();
2098
- }, [Ie, Y]);
2099
- let ht = j((e, t) => {
2100
- qe.current = null, Ke(!1), Y(), C?.(e, t);
2101
- }, [Y, C]), X = ut({
2097
+ Fe && ht();
2098
+ }, [Fe, ht]);
2099
+ let gt = j((e, t) => {
2100
+ Ke.current = null, Ge(!1), ht(), C?.(e, t);
2101
+ }, [ht, C]), X = ut({
2102
2102
  item: e,
2103
- history: ze,
2103
+ history: Re,
2104
2104
  folderItems: _,
2105
2105
  hasWriteAccess: x,
2106
2106
  onCreateFolder: T,
2107
2107
  onPublish: S ?? ar,
2108
- onPublishSuccess: ht,
2108
+ onPublishSuccess: gt,
2109
2109
  onPublishError: w,
2110
2110
  onFetchExistingRules: O
2111
2111
  }), _t = N(() => lt({
@@ -2122,9 +2122,9 @@ var ft = /* @__PURE__ */ function(e) {
2122
2122
  X.hasSubmitError
2123
2123
  ]), [vt, yt] = F(!1), [Z, bt] = F(null), [Q, xt] = F(!1), [St, Ct] = F(null), [wt, Tt] = F(null), [Et, $] = F(null);
2124
2124
  M(() => {
2125
- Pe(n);
2125
+ Ne(n);
2126
2126
  }, [e.id, n]), M(() => {
2127
- Fe(""), Le(!1), X.reset(), Be([]), We(!1), He(!1), Ke(!1), qe.current = null, $(null), yt(!1), bt(null), xt(!1), Ct(null), Tt(null);
2127
+ Pe(""), Ie(!1), X.reset(), ze([]), Ue(!1), Ve(!1), Ge(!1), Ke.current = null, $(null), yt(!1), bt(null), xt(!1), Ct(null), Tt(null);
2128
2128
  }, [e.id]);
2129
2129
  let Dt = j(() => yt(!0), []), Ot = j(() => yt(!1), []), At = j(() => {
2130
2130
  bt(q.Delete);
@@ -2136,7 +2136,7 @@ var ft = /* @__PURE__ */ function(e) {
2136
2136
  bt(q.RevokeAccess);
2137
2137
  }, []), Pt = N(() => {
2138
2138
  let e = /* @__PURE__ */ new Set(), t = [];
2139
- for (let n of ze) {
2139
+ for (let n of Re) {
2140
2140
  let r = n.folderPath.join("/");
2141
2141
  e.has(r) || (e.add(r), t.push({
2142
2142
  key: r,
@@ -2144,7 +2144,7 @@ var ft = /* @__PURE__ */ function(e) {
2144
2144
  }));
2145
2145
  }
2146
2146
  return t;
2147
- }, [ze]), Ft = Ge && Pt.length > 0, It = j((e) => e || (E?.rootFolderLabel ?? "Organization"), [E]), Lt = j(() => {
2147
+ }, [Re]), Ft = We && Pt.length > 0, It = j((e) => e || (E?.rootFolderLabel ?? "Organization"), [E]), Lt = j(() => {
2148
2148
  bt(q.Unpublish);
2149
2149
  }, []), Rt = j((e) => {
2150
2150
  Ct(e), bt(q.DeleteApiKey);
@@ -2156,23 +2156,23 @@ var ft = /* @__PURE__ */ function(e) {
2156
2156
  try {
2157
2157
  switch (Z) {
2158
2158
  case q.Delete:
2159
- await ue?.(e);
2159
+ await le?.(e);
2160
2160
  break;
2161
2161
  case q.Unshare:
2162
- await fe?.(e);
2162
+ await de?.(e);
2163
2163
  break;
2164
2164
  case q.RevokeAccess:
2165
- await me?.(e);
2165
+ await pe?.(e);
2166
2166
  break;
2167
2167
  case q.Logout:
2168
- wt != null && await xe?.(e, { level: wt });
2168
+ wt != null && await be?.(e, { level: wt });
2169
2169
  break;
2170
2170
  case q.DeleteApiKey:
2171
- St != null && await xe?.(e, { level: St });
2171
+ St != null && await be?.(e, { level: St });
2172
2172
  break;
2173
2173
  case q.Unpublish: {
2174
2174
  let t = ir(Pt, Et);
2175
- t != null && await ve?.(e, t.segments);
2175
+ t != null && await _e?.(e, t.segments);
2176
2176
  break;
2177
2177
  }
2178
2178
  }
@@ -2189,13 +2189,13 @@ var ft = /* @__PURE__ */ function(e) {
2189
2189
  St,
2190
2190
  wt,
2191
2191
  e,
2192
- ue,
2193
- fe,
2194
- me,
2195
- ve,
2192
+ le,
2193
+ de,
2194
+ pe,
2195
+ _e,
2196
2196
  Et,
2197
2197
  Pt,
2198
- xe,
2198
+ be,
2199
2199
  o
2200
2200
  ]);
2201
2201
  M(() => {
@@ -2216,137 +2216,137 @@ var ft = /* @__PURE__ */ function(e) {
2216
2216
  Z,
2217
2217
  zt
2218
2218
  ]);
2219
- let Ut = j(() => Le(!0), []), Wt = j(() => {
2220
- Le(!1), X.reset();
2219
+ let Ut = j(() => Ie(!0), []), Wt = j(() => {
2220
+ Ie(!1), X.reset();
2221
2221
  }, [X]), Gt = j(async () => {
2222
2222
  await X.handleSubmit() && Wt();
2223
2223
  }, [X, Wt]), Kt = j(() => {
2224
- let t = !Ne;
2225
- Pe(t), c?.(e.id, t);
2224
+ let t = !Me;
2225
+ Ne(t), c?.(e.id, t);
2226
2226
  }, [
2227
- Ne,
2227
+ Me,
2228
2228
  e.id,
2229
2229
  c
2230
2230
  ]), qt = N(() => {
2231
2231
  let t = [], n = nr.has(e.type);
2232
2232
  return n || t.push({
2233
2233
  id: K.About,
2234
- label: R?.tabAboutLabel ?? "About"
2234
+ label: z?.tabAboutLabel ?? "About"
2235
2235
  }), (n || e.details?.promptContent != null) && t.push({
2236
2236
  id: K.Content,
2237
- label: R?.tabContentLabel ?? "Details"
2237
+ label: z?.tabContentLabel ?? "Details"
2238
2238
  }), e.details?.overview != null && t.push({
2239
2239
  id: K.Overview,
2240
- label: R?.tabOverviewLabel ?? "Overview"
2240
+ label: z?.tabOverviewLabel ?? "Overview"
2241
2241
  }), e.details?.pricing != null && t.push({
2242
2242
  id: K.Pricing,
2243
- label: R?.tabPricingLabel ?? "Pricing"
2243
+ label: z?.tabPricingLabel ?? "Pricing"
2244
2244
  }), e.details?.limits != null && t.push({
2245
2245
  id: K.Limits,
2246
- label: R?.tabLimitsLabel ?? "Limits"
2246
+ label: z?.tabLimitsLabel ?? "Limits"
2247
2247
  }), e.details?.tools != null && t.push({
2248
2248
  id: K.Tools,
2249
- label: R?.tabToolsLabel ?? "Tools"
2249
+ label: z?.tabToolsLabel ?? "Tools"
2250
2250
  }), rr(e.details?.api) && t.push({
2251
2251
  id: K.Api,
2252
- label: R?.tabConnectLabel ?? "Connect"
2252
+ label: z?.tabConnectLabel ?? "Connect"
2253
2253
  }), t;
2254
- }, [e, R]), Jt = P(null);
2254
+ }, [e, z]), Jt = P(null);
2255
2255
  M(() => {
2256
2256
  let t = Jt.current !== e.id;
2257
- Jt.current = e.id, (t || !qt.some((e) => e.id === V)) && Fe(qt[0]?.id ?? "");
2257
+ Jt.current = e.id, (t || !qt.some((e) => e.id === H)) && Pe(qt[0]?.id ?? "");
2258
2258
  }, [
2259
2259
  e.id,
2260
2260
  qt,
2261
- V
2261
+ H
2262
2262
  ]);
2263
- let Yt = R?.overviewYesLabel ?? "Yes", Zt = R?.overviewNoLabel ?? "No", $t = R?.ariaLabel ?? "Item details", en = R?.closeAriaLabel ?? "Close", nn = Ne ? R?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : R?.addToFavoritesAriaLabel ?? "Add to favorites", rn = R?.publishTitle ?? "Publish", an = R?.backToDetailsAriaLabel ?? "Back", on = R?.cancelLabel ?? "Cancel", sn = N(() => {
2263
+ let Yt = z?.overviewYesLabel ?? "Yes", Zt = z?.overviewNoLabel ?? "No", $t = z?.ariaLabel ?? "Item details", en = z?.closeAriaLabel ?? "Close", nn = Me ? z?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : z?.addToFavoritesAriaLabel ?? "Add to favorites", rn = z?.publishTitle ?? "Publish", an = z?.backToDetailsAriaLabel ?? "Back", on = z?.cancelLabel ?? "Cancel", sn = N(() => {
2264
2264
  switch (Z) {
2265
2265
  case q.Delete: {
2266
- let t = R?.deleteActionLabel ?? "Delete";
2266
+ let t = z?.deleteActionLabel ?? "Delete";
2267
2267
  return {
2268
- title: R?.deleteConfirmTitle ?? t,
2269
- message: R?.deleteConfirmMessage?.(e.name) ?? /* @__PURE__ */ G(U, { children: [
2268
+ title: z?.deleteConfirmTitle ?? t,
2269
+ message: z?.deleteConfirmMessage?.(e.name) ?? /* @__PURE__ */ G(ot, { children: [
2270
2270
  "Are you sure you want to delete ",
2271
2271
  /* @__PURE__ */ W("strong", { children: e.name }),
2272
2272
  "? This action is permanent and cannot be undone."
2273
2273
  ] }),
2274
- consequences: R?.deleteConfirmConsequences ?? cr,
2274
+ consequences: z?.deleteConfirmConsequences ?? cr,
2275
2275
  confirmLabel: t,
2276
- loadingStatusLabel: R?.deletingStatusLabel ?? "Deleting",
2276
+ loadingStatusLabel: z?.deletingStatusLabel ?? "Deleting",
2277
2277
  variant: J.Danger
2278
2278
  };
2279
2279
  }
2280
2280
  case q.Unshare: {
2281
- let t = R?.unshareLabel ?? "Remove from My List";
2281
+ let t = z?.unshareLabel ?? "Remove from My List";
2282
2282
  return {
2283
- title: R?.unshareConfirmTitle ?? t,
2284
- message: R?.unshareConfirmMessage?.(e.name) ?? /* @__PURE__ */ G(U, { children: [
2283
+ title: z?.unshareConfirmTitle ?? t,
2284
+ message: z?.unshareConfirmMessage?.(e.name) ?? /* @__PURE__ */ G(ot, { children: [
2285
2285
  "Remove ",
2286
2286
  /* @__PURE__ */ W("strong", { children: e.name }),
2287
2287
  " from your list? You'll need a new invitation to access it again."
2288
2288
  ] }),
2289
- consequences: R?.unshareConfirmConsequences ?? lr,
2289
+ consequences: z?.unshareConfirmConsequences ?? lr,
2290
2290
  confirmLabel: t,
2291
- loadingStatusLabel: R?.unsharingStatusLabel ?? "Removing",
2291
+ loadingStatusLabel: z?.unsharingStatusLabel ?? "Removing",
2292
2292
  variant: J.Info
2293
2293
  };
2294
2294
  }
2295
2295
  case q.RevokeAccess: {
2296
- let t = R?.revokeShareLabel ?? "Revoke access";
2296
+ let t = z?.revokeShareLabel ?? "Revoke access";
2297
2297
  return {
2298
- title: R?.revokeShareConfirmTitle ?? t,
2299
- message: R?.revokeShareConfirmMessage?.(e.name) ?? /* @__PURE__ */ G(U, { children: [
2298
+ title: z?.revokeShareConfirmTitle ?? t,
2299
+ message: z?.revokeShareConfirmMessage?.(e.name) ?? /* @__PURE__ */ G(ot, { children: [
2300
2300
  "Revoke shared access to ",
2301
2301
  /* @__PURE__ */ W("strong", { children: e.name }),
2302
2302
  "? Anyone you shared it with will lose access."
2303
2303
  ] }),
2304
- consequences: R?.revokeShareConfirmConsequences ?? dr,
2304
+ consequences: z?.revokeShareConfirmConsequences ?? dr,
2305
2305
  confirmLabel: t,
2306
- loadingStatusLabel: R?.revokingShareStatusLabel ?? "Revoking access",
2306
+ loadingStatusLabel: z?.revokingShareStatusLabel ?? "Revoking access",
2307
2307
  variant: J.Danger
2308
2308
  };
2309
2309
  }
2310
2310
  case q.Unpublish: {
2311
- let t = R?.unpublishLabel ?? "Unpublish", n = Pt.length === 1, r = n ? It(Pt[0].key) : "", i = R?.unpublishConfirmMessage?.(e.name, r) ?? /* @__PURE__ */ G(U, { children: [
2311
+ let t = z?.unpublishLabel ?? "Unpublish", n = Pt.length === 1, r = n ? It(Pt[0].key) : "", i = z?.unpublishConfirmMessage?.(e.name, r) ?? /* @__PURE__ */ G(ot, { children: [
2312
2312
  "Unpublish ",
2313
2313
  /* @__PURE__ */ W("strong", { children: e.name }),
2314
2314
  " from \"",
2315
2315
  r,
2316
2316
  "\"? The request is submitted for admin approval."
2317
- ] }), a = R?.unpublishSelectFolderMessage?.(e.name) ?? /* @__PURE__ */ G(U, { children: [
2317
+ ] }), a = z?.unpublishSelectFolderMessage?.(e.name) ?? /* @__PURE__ */ G(ot, { children: [
2318
2318
  "Choose which folder to unpublish ",
2319
2319
  /* @__PURE__ */ W("strong", { children: e.name }),
2320
2320
  " from. The request is submitted for admin approval."
2321
2321
  ] });
2322
2322
  return {
2323
- title: R?.unpublishConfirmTitle ?? t,
2323
+ title: z?.unpublishConfirmTitle ?? t,
2324
2324
  message: n ? i : a,
2325
- consequences: R?.unpublishConfirmConsequences ?? ur,
2325
+ consequences: z?.unpublishConfirmConsequences ?? ur,
2326
2326
  confirmLabel: t,
2327
- loadingStatusLabel: R?.unpublishingStatusLabel ?? "Requesting unpublish",
2327
+ loadingStatusLabel: z?.unpublishingStatusLabel ?? "Requesting unpublish",
2328
2328
  variant: J.Danger
2329
2329
  };
2330
2330
  }
2331
2331
  case q.Logout: {
2332
- let e = R?.logoutActionLabel ?? "Log out";
2332
+ let e = z?.logoutActionLabel ?? "Log out";
2333
2333
  return {
2334
2334
  title: e,
2335
- message: R?.logoutConfirmMessage ?? "Are you sure you want to log out?",
2335
+ message: z?.logoutConfirmMessage ?? "Are you sure you want to log out?",
2336
2336
  consequences: void 0,
2337
2337
  confirmLabel: e,
2338
- loadingStatusLabel: R?.loggingOutStatusLabel ?? "Logging out",
2338
+ loadingStatusLabel: z?.loggingOutStatusLabel ?? "Logging out",
2339
2339
  variant: J.Info
2340
2340
  };
2341
2341
  }
2342
2342
  case q.DeleteApiKey: {
2343
- let e = R?.deleteActionLabel ?? "Delete", t = St ?? a.User;
2343
+ let e = z?.deleteActionLabel ?? "Delete", t = St ?? a.User;
2344
2344
  return {
2345
2345
  title: e,
2346
- message: (R?.deleteApiKeyConfirmMessage ?? pr)(t),
2346
+ message: (z?.deleteApiKeyConfirmMessage ?? pr)(t),
2347
2347
  consequences: void 0,
2348
2348
  confirmLabel: e,
2349
- loadingStatusLabel: R?.deletingStatusLabel ?? "Deleting",
2349
+ loadingStatusLabel: z?.deletingStatusLabel ?? "Deleting",
2350
2350
  variant: J.Danger,
2351
2351
  cardVariant: J.Info
2352
2352
  };
@@ -2357,14 +2357,14 @@ var ft = /* @__PURE__ */ function(e) {
2357
2357
  Z,
2358
2358
  e.name,
2359
2359
  St,
2360
- R,
2360
+ z,
2361
2361
  Pt,
2362
2362
  It
2363
- ]), cn = sn != null, ln = Z === q.Unpublish && ir(Pt, Et) == null, un = cn || Ie || vt, dn = e.credentials == null ? "" : (R?.credentialsManagementTitle ?? fr)(e.credentials.authenticationType), fn = cn ? {
2363
+ ]), cn = sn != null, ln = Z === q.Unpublish && ir(Pt, Et) == null, un = cn || Fe || vt, dn = e.credentials == null ? "" : (z?.credentialsManagementTitle ?? fr)(e.credentials.authenticationType), fn = cn ? {
2364
2364
  title: sn.title,
2365
2365
  isBackDisabled: Q,
2366
2366
  onBack: zt
2367
- } : Ie ? {
2367
+ } : Fe ? {
2368
2368
  title: rn,
2369
2369
  isBackDisabled: X.isSubmitting,
2370
2370
  onBack: Wt
@@ -2373,8 +2373,8 @@ var ft = /* @__PURE__ */ function(e) {
2373
2373
  isBackDisabled: !1,
2374
2374
  onBack: Ot
2375
2375
  } : null, pn = fn?.title ?? $t;
2376
- return /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("div", {
2377
- style: Me,
2376
+ return /* @__PURE__ */ G(ot, { children: [/* @__PURE__ */ W("div", {
2377
+ style: je,
2378
2378
  className: A("fixed inset-0 z-40 transition-opacity duration-300", yn.backdrop, t ? "opacity-100" : "pointer-events-none opacity-0"),
2379
2379
  onClick: o,
2380
2380
  "aria-hidden": "true"
@@ -2382,32 +2382,32 @@ var ft = /* @__PURE__ */ function(e) {
2382
2382
  role: "dialog",
2383
2383
  "aria-modal": "true",
2384
2384
  "aria-label": pn,
2385
- style: Me,
2385
+ style: je,
2386
2386
  className: A("fixed inset-y-0 end-0 z-50 flex w-full flex-col overflow-hidden", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", yn.panel, t ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
2387
2387
  children: [
2388
2388
  /* @__PURE__ */ G("div", {
2389
2389
  className: "flex shrink-0 items-center gap-2 px-6 py-3",
2390
- children: [fn != null && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(he, {
2391
- icon: /* @__PURE__ */ W(Re, {
2390
+ children: [fn != null && /* @__PURE__ */ G(ot, { children: [/* @__PURE__ */ W(me, {
2391
+ icon: /* @__PURE__ */ W(Le, {
2392
2392
  className: "rtl:scale-x-[-1]",
2393
- stroke: L
2393
+ stroke: R
2394
2394
  }),
2395
2395
  "aria-label": an,
2396
2396
  disabled: fn.isBackDisabled,
2397
2397
  onClick: fn.onBack
2398
2398
  }), /* @__PURE__ */ W("span", {
2399
- className: A("flex-1", Ce, yn.publishTitle),
2399
+ className: A("flex-1", Se, yn.publishTitle),
2400
2400
  children: fn.title
2401
- })] }), fn == null && /* @__PURE__ */ G(U, { children: [
2401
+ })] }), fn == null && /* @__PURE__ */ G(ot, { children: [
2402
2402
  /* @__PURE__ */ W("div", { className: "flex-1" }),
2403
2403
  !i && l?.(e) !== !1 && /* @__PURE__ */ W(kt, {
2404
- isStarred: Ne,
2404
+ isStarred: Me,
2405
2405
  ariaLabel: nn,
2406
2406
  onClick: Kt
2407
2407
  }),
2408
- /* @__PURE__ */ W(ce, {
2408
+ /* @__PURE__ */ W(se, {
2409
2409
  onClose: o,
2410
- size: de.Standard,
2410
+ size: ue.Standard,
2411
2411
  ariaLabel: en
2412
2412
  })
2413
2413
  ] })]
@@ -2421,9 +2421,9 @@ var ft = /* @__PURE__ */ function(e) {
2421
2421
  message: sn.message,
2422
2422
  consequences: sn.consequences,
2423
2423
  variant: sn.cardVariant ?? sn.variant,
2424
- messageClassName: Ae,
2425
- children: Z === q.Unpublish && Pt.length > 1 && /* @__PURE__ */ W(Te, {
2426
- ariaLabel: R?.unpublishFolderGroupAriaLabel ?? "Published folders",
2424
+ messageClassName: ke,
2425
+ children: Z === q.Unpublish && Pt.length > 1 && /* @__PURE__ */ W(we, {
2426
+ ariaLabel: z?.unpublishFolderGroupAriaLabel ?? "Published folders",
2427
2427
  value: Et ?? void 0,
2428
2428
  onChange: $,
2429
2429
  disabled: Q,
@@ -2431,18 +2431,18 @@ var ft = /* @__PURE__ */ function(e) {
2431
2431
  value: e.key,
2432
2432
  label: It(e.key)
2433
2433
  })),
2434
- radioClassName: Ae
2434
+ radioClassName: ke
2435
2435
  })
2436
2436
  }),
2437
- !cn && !Ie && vt && /* @__PURE__ */ W(vn, {
2437
+ !cn && !Fe && vt && /* @__PURE__ */ W(vn, {
2438
2438
  item: e,
2439
- onLogin: be,
2439
+ onLogin: ye,
2440
2440
  onRequestLogout: jt,
2441
2441
  onRequestDeleteApiKey: Rt,
2442
- texts: R,
2443
- detailsStyles: z
2442
+ texts: z,
2443
+ detailsStyles: B
2444
2444
  }),
2445
- !cn && Ie && /* @__PURE__ */ W("div", {
2445
+ !cn && Fe && /* @__PURE__ */ W("div", {
2446
2446
  className: "p-[22px]",
2447
2447
  children: /* @__PURE__ */ W(ct, {
2448
2448
  resource: {
@@ -2451,9 +2451,9 @@ var ft = /* @__PURE__ */ function(e) {
2451
2451
  type: e.type,
2452
2452
  iconUrl: e.iconUrl
2453
2453
  },
2454
- history: ze,
2455
- isHistoryLoading: Ve,
2456
- hasHistoryError: Ue,
2454
+ history: Re,
2455
+ isHistoryLoading: Be,
2456
+ hasHistoryError: He,
2457
2457
  folderItems: X.folderItems,
2458
2458
  selectedFolderPath: X.selectedFolderPath,
2459
2459
  onSelectedFolderPathChange: X.setSelectedFolderPath,
@@ -2472,13 +2472,13 @@ var ft = /* @__PURE__ */ function(e) {
2472
2472
  hasRulesLoadError: X.hasRulesLoadError,
2473
2473
  labels: E,
2474
2474
  styles: { colors: {
2475
- summaryVersionTagBorder: B?.versionTagBorder,
2476
- summaryVersionTagBackground: B?.versionTagBackground,
2477
- summaryVersionTagText: B?.versionTagText
2475
+ summaryVersionTagBorder: V?.versionTagBorder,
2476
+ summaryVersionTagBackground: V?.versionTagBackground,
2477
+ summaryVersionTagText: V?.versionTagText
2478
2478
  } }
2479
2479
  })
2480
2480
  }),
2481
- !un && /* @__PURE__ */ G(U, { children: [
2481
+ !un && /* @__PURE__ */ G(ot, { children: [
2482
2482
  /* @__PURE__ */ W(An, {
2483
2483
  item: e,
2484
2484
  onUseInChat: d,
@@ -2490,26 +2490,27 @@ var ft = /* @__PURE__ */ function(e) {
2490
2490
  isPublishVisible: m,
2491
2491
  isPublishPrimary: h,
2492
2492
  onOpenPublish: Ut,
2493
- isUnpublishVisible: ye,
2493
+ isUnpublishVisible: ve,
2494
2494
  hasPublishedFolders: Ft,
2495
- onRequestPublishHistory: Y,
2496
- onOpenUnpublish: ve ? Lt : void 0,
2495
+ isPublishHistoryResolved: g == null || We,
2496
+ onRequestPublishHistory: ht,
2497
+ onOpenUnpublish: _e ? Lt : void 0,
2497
2498
  onEdit: re,
2498
2499
  onDownload: ie,
2499
2500
  isDownloadVisible: ae,
2500
2501
  isDownloadPrimary: oe,
2501
- onDelete: ue ? At : void 0,
2502
- onUnshare: fe ? Mt : void 0,
2503
- isUnshareVisible: pe,
2504
- onRevokeShare: me ? Nt : void 0,
2505
- onFetchRecipientsCount: ge,
2506
- isRevokeShareVisible: _e,
2507
- onLogin: be,
2508
- onLogout: xe,
2502
+ onDelete: le ? At : void 0,
2503
+ onUnshare: de ? Mt : void 0,
2504
+ isUnshareVisible: fe,
2505
+ onRevokeShare: pe ? Nt : void 0,
2506
+ onFetchRecipientsCount: he,
2507
+ isRevokeShareVisible: ge,
2508
+ onLogin: ye,
2509
+ onLogout: be,
2509
2510
  onOpenCredentialsManagement: Dt,
2510
2511
  onRequestLogout: jt,
2511
- texts: R,
2512
- detailsStyles: z,
2512
+ texts: z,
2513
+ detailsStyles: B,
2513
2514
  isReadonly: i
2514
2515
  }),
2515
2516
  e.credentials != null && (() => {
@@ -2519,21 +2520,21 @@ var ft = /* @__PURE__ */ function(e) {
2519
2520
  children: /* @__PURE__ */ W(mn, {
2520
2521
  state: t,
2521
2522
  authenticationType: e.credentials.authenticationType,
2522
- texts: R
2523
+ texts: z
2523
2524
  })
2524
2525
  });
2525
2526
  })(),
2526
2527
  /* @__PURE__ */ G("div", {
2527
2528
  className: "flex items-center px-6",
2528
- children: [/* @__PURE__ */ W(je, {
2529
+ children: [/* @__PURE__ */ W(Ae, {
2529
2530
  tabs: qt,
2530
- activeTabId: V,
2531
- onTabChange: Fe
2531
+ activeTabId: H,
2532
+ onTabChange: Pe
2532
2533
  }), r && /* @__PURE__ */ W("div", {
2533
2534
  role: "status",
2534
- "aria-label": R?.detailsLoadingAriaLabel ?? "Loading details",
2535
+ "aria-label": z?.detailsLoadingAriaLabel ?? "Loading details",
2535
2536
  className: "shrink-0",
2536
- children: /* @__PURE__ */ W(Oe, {
2537
+ children: /* @__PURE__ */ W(De, {
2537
2538
  showTitle: !1,
2538
2539
  paragraph: {
2539
2540
  rows: 1,
@@ -2545,63 +2546,63 @@ var ft = /* @__PURE__ */ function(e) {
2545
2546
  })]
2546
2547
  }),
2547
2548
  /* @__PURE__ */ G("div", {
2548
- className: A("min-h-0 flex-1 overflow-y-auto", V !== K.Overview && "px-6"),
2549
+ className: A("min-h-0 flex-1 overflow-y-auto", H !== K.Overview && "px-6"),
2549
2550
  children: [
2550
- V === K.About && /* @__PURE__ */ W(jn, {
2551
+ H === K.About && /* @__PURE__ */ W(jn, {
2551
2552
  content: e.description,
2552
2553
  topics: e.topics,
2553
- detailsStyles: z
2554
+ detailsStyles: B
2554
2555
  }),
2555
- V === K.Content && /* @__PURE__ */ W(In, {
2556
- content: Je?.content ?? "",
2556
+ H === K.Content && /* @__PURE__ */ W(In, {
2557
+ content: qe?.content ?? "",
2557
2558
  filePreview: pt(),
2558
2559
  filePreviewContent: mt,
2559
- description: Je?.description ?? e.description,
2560
- files: Je?.files,
2560
+ description: qe?.description ?? e.description,
2561
+ files: qe?.files,
2561
2562
  selectedFileId: ft,
2562
2563
  onSelectFile: (e) => void dt(e),
2563
- isFileLoading: Qe,
2564
- expandedFolderIds: et,
2565
- onToggleFolder: ot,
2566
- isFileSelectorOpen: nt,
2567
- onFileSelectorOpenChange: H,
2568
- fileSelectorAriaLabel: R?.contentFileSelectorAriaLabel,
2569
- fileCountLabel: R?.contentFileCountLabel,
2570
- fileLoadingLabel: R?.contentFileLoadingLabel,
2571
- fileUnsupportedLabel: R?.contentFileUnsupportedLabel,
2572
- detailsStyles: z
2564
+ isFileLoading: Ze,
2565
+ expandedFolderIds: $e,
2566
+ onToggleFolder: at,
2567
+ isFileSelectorOpen: tt,
2568
+ onFileSelectorOpenChange: nt,
2569
+ fileSelectorAriaLabel: z?.contentFileSelectorAriaLabel,
2570
+ fileCountLabel: z?.contentFileCountLabel,
2571
+ fileLoadingLabel: z?.contentFileLoadingLabel,
2572
+ fileUnsupportedLabel: z?.contentFileUnsupportedLabel,
2573
+ detailsStyles: B
2573
2574
  }),
2574
- V === K.Overview && /* @__PURE__ */ W(Xn, {
2575
+ H === K.Overview && /* @__PURE__ */ W(Xn, {
2575
2576
  sections: e.details?.overview?.sections,
2576
- sectionClassName: we,
2577
- labelClassName: Ee,
2578
- valueClassName: De,
2579
- valueTrueClassName: ke,
2577
+ sectionClassName: Ce,
2578
+ labelClassName: Te,
2579
+ valueClassName: Ee,
2580
+ valueTrueClassName: Oe,
2580
2581
  yesLabel: Yt,
2581
2582
  noLabel: Zt
2582
2583
  }),
2583
- V === K.Pricing && /* @__PURE__ */ W(Zn, {
2584
+ H === K.Pricing && /* @__PURE__ */ W(Zn, {
2584
2585
  pricing: e.details?.pricing,
2585
- pricesSectionLabel: R?.pricingPricesSectionLabel,
2586
- limitsSectionLabel: R?.pricingLimitsSectionLabel
2586
+ pricesSectionLabel: z?.pricingPricesSectionLabel,
2587
+ limitsSectionLabel: z?.pricingLimitsSectionLabel
2587
2588
  }),
2588
- V === K.Limits && /* @__PURE__ */ W(Yn, {
2589
+ H === K.Limits && /* @__PURE__ */ W(Yn, {
2589
2590
  limits: e.details?.limits,
2590
- footerNote: Se
2591
+ footerNote: xe
2591
2592
  }),
2592
- V === K.Api && rr(e.details?.api) && /* @__PURE__ */ W(Xt, {
2593
+ H === K.Api && rr(e.details?.api) && /* @__PURE__ */ W(Xt, {
2593
2594
  api: e.details?.api,
2594
- resourceSectionLabel: R?.apiResourceSectionLabel,
2595
- snippetSectionLabel: R?.apiSnippetSectionLabel,
2596
- modelIdLabel: R?.apiModelIdLabel,
2597
- endpointLabel: R?.apiEndpointLabel,
2598
- endpointSectionLabel: R?.apiEndpointSectionLabel,
2599
- requestExampleLabel: R?.apiRequestExampleLabel,
2600
- responseSchemaLabel: R?.apiResponseSchemaLabel,
2601
- copyAriaLabel: R?.copyCodeAriaLabel,
2602
- copiedStatusLabel: R?.copiedCodeStatusLabel
2595
+ resourceSectionLabel: z?.apiResourceSectionLabel,
2596
+ snippetSectionLabel: z?.apiSnippetSectionLabel,
2597
+ modelIdLabel: z?.apiModelIdLabel,
2598
+ endpointLabel: z?.apiEndpointLabel,
2599
+ endpointSectionLabel: z?.apiEndpointSectionLabel,
2600
+ requestExampleLabel: z?.apiRequestExampleLabel,
2601
+ responseSchemaLabel: z?.apiResponseSchemaLabel,
2602
+ copyAriaLabel: z?.copyCodeAriaLabel,
2603
+ copiedStatusLabel: z?.copiedCodeStatusLabel
2603
2604
  }),
2604
- V === K.Tools && /* @__PURE__ */ W(tr, { tools: e.details?.tools })
2605
+ H === K.Tools && /* @__PURE__ */ W(tr, { tools: e.details?.tools })
2605
2606
  ]
2606
2607
  })
2607
2608
  ] })
@@ -2617,7 +2618,7 @@ var ft = /* @__PURE__ */ function(e) {
2617
2618
  onConfirm: Bt,
2618
2619
  onCancel: zt
2619
2620
  }),
2620
- !cn && Ie && /* @__PURE__ */ W(st, {
2621
+ !cn && Fe && /* @__PURE__ */ W(st, {
2621
2622
  version: e.version,
2622
2623
  hasExistingPublicationInFolder: X.hasExistingPublicationInFolder,
2623
2624
  isSubmitDisabled: _t.isSubmitDisabled,
@@ -2655,7 +2656,7 @@ var ft = /* @__PURE__ */ function(e) {
2655
2656
  e,
2656
2657
  g
2657
2658
  ]);
2658
- return /* @__PURE__ */ G(se, {
2659
+ return /* @__PURE__ */ G(I, {
2659
2660
  "data-card-id": e.id,
2660
2661
  role: y == null ? void 0 : "button",
2661
2662
  tabIndex: y == null ? void 0 : 0,
@@ -2667,11 +2668,11 @@ var ft = /* @__PURE__ */ function(e) {
2667
2668
  t.currentTarget === t.target && n?.(e.id, !1);
2668
2669
  } : void 0,
2669
2670
  children: [
2670
- f && /* @__PURE__ */ W(Ie, {
2671
- size: I.SM,
2671
+ f && /* @__PURE__ */ W(Fe, {
2672
+ size: L.SM,
2672
2673
  className: A("absolute end-3 top-3 shrink-0", gr.selectedCheck),
2673
2674
  "aria-hidden": !0,
2674
- stroke: L
2675
+ stroke: R
2675
2676
  }),
2676
2677
  /* @__PURE__ */ W("div", {
2677
2678
  className: "flex min-w-0 flex-1 flex-col items-start gap-1",
@@ -2700,7 +2701,7 @@ var ft = /* @__PURE__ */ function(e) {
2700
2701
  }),
2701
2702
  r?.(e) !== !1 && /* @__PURE__ */ W(kt, {
2702
2703
  isStarred: m,
2703
- size: de.Small,
2704
+ size: ue.Small,
2704
2705
  onClick: v,
2705
2706
  ariaLabel: m ? d : u,
2706
2707
  className: "self-end"
@@ -2751,27 +2752,27 @@ var ft = /* @__PURE__ */ function(e) {
2751
2752
  y,
2752
2753
  ne
2753
2754
  ]);
2754
- let se = P(/* @__PURE__ */ new Map()), ce = P(y), I = P(x), le = P(0), ue = P(!1);
2755
+ let I = P(/* @__PURE__ */ new Map()), se = P(y), L = P(x), ce = P(0), le = P(!1);
2755
2756
  return re(() => {
2756
2757
  if (!te.current || s) return;
2757
- if (O.current && !ue.current) {
2758
+ if (O.current && !le.current) {
2758
2759
  let e = O.current;
2759
2760
  e.style.height = "", e.style.transition = "";
2760
2761
  }
2761
- let e = ce.current !== y, t = I.current !== x;
2762
- ce.current = y, I.current = x;
2762
+ let e = se.current !== y, t = L.current !== x;
2763
+ se.current = y, L.current = x;
2763
2764
  let n = te.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
2764
2765
  if (n.forEach((e) => {
2765
2766
  r.set(e.dataset.cardId, yr(e));
2766
2767
  }), !e && !t) {
2767
- let e = ee.current, t = le.current, i = 0;
2768
+ let e = ee.current, t = ce.current, i = 0;
2768
2769
  if (e) {
2769
2770
  let t = e.style.height;
2770
2771
  t && (e.style.height = ""), i = e.offsetHeight, t && (e.style.height = t);
2771
2772
  }
2772
2773
  let a = e != null && t > 0 && Math.abs(i - t) > 2, o = i > t ? 280 : 220, s = [];
2773
2774
  if (n.forEach((e) => {
2774
- let t = e.dataset.cardId, n = se.current.get(t), i = r.get(t);
2775
+ let t = e.dataset.cardId, n = I.current.get(t), i = r.get(t);
2775
2776
  if (!n || !i) return;
2776
2777
  let o = n.left - i.left, c = n.top - i.top;
2777
2778
  !a && Math.abs(c) > .5 || Math.abs(o) < .5 && Math.abs(c) < .5 || (e.style.transition = "none", e.style.transform = `translate(${o}px, ${c}px)`, s.push(e));
@@ -2787,9 +2788,9 @@ var ft = /* @__PURE__ */ function(e) {
2787
2788
  e.addEventListener("transitionend", t);
2788
2789
  }
2789
2790
  }
2790
- if (se.current = r, ee.current) {
2791
+ if (I.current = r, ee.current) {
2791
2792
  let e = ee.current, t = e.style.height ? parseFloat(e.style.height) : NaN;
2792
- le.current = Number.isNaN(t) ? e.offsetHeight : t;
2793
+ ce.current = Number.isNaN(t) ? e.offsetHeight : t;
2793
2794
  }
2794
2795
  }, [
2795
2796
  T,
@@ -2801,11 +2802,11 @@ var ft = /* @__PURE__ */ function(e) {
2801
2802
  if (!e) return;
2802
2803
  let t = e.offsetHeight;
2803
2804
  if (t === 0) return;
2804
- ue.current = !0, e.style.height = "0px", e.offsetHeight, e.style.transition = "height 300ms cubic-bezier(0, 0, 0.2, 1)", e.style.height = `${t}px`;
2805
+ le.current = !0, e.style.height = "0px", e.offsetHeight, e.style.transition = "height 300ms cubic-bezier(0, 0, 0.2, 1)", e.style.height = `${t}px`;
2805
2806
  let n = (t) => {
2806
2807
  t.target !== e || t.propertyName !== "height" || r();
2807
2808
  }, r = () => {
2808
- ue.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
2809
+ le.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
2809
2810
  }, i = setTimeout(r, 400);
2810
2811
  return e.addEventListener("transitionend", n), () => {
2811
2812
  clearTimeout(i), e.removeEventListener("transitionend", n);
@@ -2839,10 +2840,10 @@ var ft = /* @__PURE__ */ function(e) {
2839
2840
  disabled: y === 1,
2840
2841
  onClick: () => b((e) => e - 1),
2841
2842
  className: A("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", gr.navBtn),
2842
- children: /* @__PURE__ */ W(Re, {
2843
+ children: /* @__PURE__ */ W(Le, {
2843
2844
  size: 14,
2844
2845
  className: "rtl:scale-x-[-1]",
2845
- stroke: L
2846
+ stroke: R
2846
2847
  })
2847
2848
  }),
2848
2849
  /* @__PURE__ */ G("span", {
@@ -2858,10 +2859,10 @@ var ft = /* @__PURE__ */ function(e) {
2858
2859
  disabled: y === E,
2859
2860
  onClick: () => b((e) => e + 1),
2860
2861
  className: A("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", gr.navBtn),
2861
- children: /* @__PURE__ */ W(ze, {
2862
+ children: /* @__PURE__ */ W(Re, {
2862
2863
  size: 14,
2863
2864
  className: "rtl:scale-x-[-1]",
2864
- stroke: L
2865
+ stroke: R
2865
2866
  })
2866
2867
  })
2867
2868
  ]
@@ -2904,20 +2905,20 @@ var ft = /* @__PURE__ */ function(e) {
2904
2905
  return /* @__PURE__ */ G("div", {
2905
2906
  className: "flex h-full w-full min-w-0 items-center gap-1.5",
2906
2907
  children: [
2907
- /* @__PURE__ */ W(We, {
2908
- size: I.SM,
2909
- stroke: L,
2908
+ /* @__PURE__ */ W(Ue, {
2909
+ size: L.SM,
2910
+ stroke: R,
2910
2911
  className: A("shrink-0", xr.folderIcon),
2911
2912
  "aria-hidden": !0
2912
2913
  }),
2913
- /* @__PURE__ */ W(Me, {
2914
+ /* @__PURE__ */ W(je, {
2914
2915
  tooltip: /* @__PURE__ */ W("span", {
2915
2916
  className: a,
2916
2917
  children: n
2917
2918
  }),
2918
2919
  hideTooltip: !i,
2919
2920
  triggerClassName: "min-w-0 flex-1",
2920
- children: /* @__PURE__ */ W(fe, {
2921
+ children: /* @__PURE__ */ W(de, {
2921
2922
  text: r,
2922
2923
  className: o,
2923
2924
  hideTooltip: i
@@ -2951,11 +2952,11 @@ var ft = /* @__PURE__ */ function(e) {
2951
2952
  query: n,
2952
2953
  titleClassName: i,
2953
2954
  className: "min-w-0 flex-1 items-baseline gap-1.5",
2954
- trailing: o ? /* @__PURE__ */ W(Ie, {
2955
- size: I.SM,
2955
+ trailing: o ? /* @__PURE__ */ W(Fe, {
2956
+ size: L.SM,
2956
2957
  className: A("shrink-0", xr.selectedCheck),
2957
2958
  "aria-hidden": !0,
2958
- stroke: L
2959
+ stroke: R
2959
2960
  }) : void 0
2960
2961
  })]
2961
2962
  }) : null;
@@ -3072,10 +3073,10 @@ var ft = /* @__PURE__ */ function(e) {
3072
3073
  _.current?.setGridOption("domLayout", e.length > 0 ? "autoHeight" : "normal");
3073
3074
  }, [e]), /* @__PURE__ */ W("div", {
3074
3075
  style: g,
3075
- className: Ne("w-full rounded-xl border", xr.listContainer),
3076
+ className: Me("w-full rounded-xl border", xr.listContainer),
3076
3077
  children: /* @__PURE__ */ G("div", {
3077
3078
  ref: v,
3078
- className: Ne("rounded-xl", xr.gridClip),
3079
+ className: Me("rounded-xl", xr.gridClip),
3079
3080
  children: [
3080
3081
  y > 0 && /* @__PURE__ */ W("div", {
3081
3082
  style: { height: y * jr },
@@ -3187,7 +3188,7 @@ var ft = /* @__PURE__ */ function(e) {
3187
3188
  }, ie = () => {
3188
3189
  t(/* @__PURE__ */ new Set()), i?.(!1), O(!1);
3189
3190
  };
3190
- return /* @__PURE__ */ W(ue, {
3191
+ return /* @__PURE__ */ W(le, {
3191
3192
  matchReferenceWidth: !1,
3192
3193
  placement: "bottom-start",
3193
3194
  open: p,
@@ -3204,10 +3205,10 @@ var ft = /* @__PURE__ */ function(e) {
3204
3205
  className: A("flex min-w-[360px] flex-col rounded-xl p-[6px]", Nr.overlay),
3205
3206
  onKeyDown: ne,
3206
3207
  children: [
3207
- /* @__PURE__ */ W(xe, {
3208
+ /* @__PURE__ */ W(be, {
3208
3209
  role: "menuitemcheckbox",
3209
3210
  "aria-checked": b,
3210
- mark: R.Checkbox,
3211
+ mark: z.Checkbox,
3211
3212
  selected: b,
3212
3213
  label: a,
3213
3214
  labelClassName: A(Nr.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
@@ -3218,7 +3219,7 @@ var ft = /* @__PURE__ */ function(e) {
3218
3219
  },
3219
3220
  onClick: () => x(!b)
3220
3221
  }),
3221
- g.length > 0 && /* @__PURE__ */ G(U, { children: [
3222
+ g.length > 0 && /* @__PURE__ */ G(ot, { children: [
3222
3223
  /* @__PURE__ */ W("div", {
3223
3224
  role: "separator",
3224
3225
  className: A("my-1 h-px", Nr.divider),
@@ -3233,10 +3234,10 @@ var ft = /* @__PURE__ */ function(e) {
3233
3234
  className: A(ee, "flex min-h-0 flex-col gap-1 overflow-y-auto"),
3234
3235
  children: g.map((e, t) => {
3235
3236
  let n = v.has(e), r = t + 1;
3236
- return /* @__PURE__ */ W(xe, {
3237
+ return /* @__PURE__ */ W(be, {
3237
3238
  role: "menuitemcheckbox",
3238
3239
  "aria-checked": n,
3239
- mark: R.Checkbox,
3240
+ mark: z.Checkbox,
3240
3241
  selected: n,
3241
3242
  label: e,
3242
3243
  labelClassName: Nr.rowLabel,
@@ -3255,10 +3256,10 @@ var ft = /* @__PURE__ */ function(e) {
3255
3256
  onKeyDown: (e) => {
3256
3257
  (e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
3257
3258
  },
3258
- children: [/* @__PURE__ */ W(me, {
3259
+ children: [/* @__PURE__ */ W(pe, {
3259
3260
  label: c,
3260
3261
  onClick: ie
3261
- }), /* @__PURE__ */ W(Ce, {
3262
+ }), /* @__PURE__ */ W(Se, {
3262
3263
  label: l,
3263
3264
  className: "ms-auto",
3264
3265
  onClick: re
@@ -3275,9 +3276,9 @@ var ft = /* @__PURE__ */ function(e) {
3275
3276
  style: h,
3276
3277
  className: A("flex h-12 shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-lg px-[18px]", Nr.filterBtn, f && Nr.filterBtnActive, p && Nr.filterBtnOpen),
3277
3278
  children: [
3278
- /* @__PURE__ */ W(Ue, {
3279
- size: I.SM,
3280
- stroke: L,
3279
+ /* @__PURE__ */ W(He, {
3280
+ size: L.SM,
3281
+ stroke: R,
3281
3282
  className: A("shrink-0", Nr.filterBtnFunnel),
3282
3283
  "aria-hidden": !0
3283
3284
  }),
@@ -3285,9 +3286,9 @@ var ft = /* @__PURE__ */ function(e) {
3285
3286
  className: A(Nr.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3286
3287
  children: _
3287
3288
  }),
3288
- /* @__PURE__ */ W(Le, {
3289
+ /* @__PURE__ */ W(Ie, {
3289
3290
  size: 14,
3290
- stroke: L,
3291
+ stroke: R,
3291
3292
  className: A("shrink-0 transition-transform duration-150", Nr.filterBtnChevron, p && "rotate-180"),
3292
3293
  "aria-hidden": !0
3293
3294
  })
@@ -3299,19 +3300,19 @@ var ft = /* @__PURE__ */ function(e) {
3299
3300
  divider: "_divider_mh952_5"
3300
3301
  }, Rr = ({ 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: w }) => {
3301
3302
  let T = a?.typography?.titleClassName ?? "dial-body-semi-text", E = a?.typography?.countClassName ?? "dial-tiny-semi-text", D = N(() => [{
3302
- value: Y.Grid,
3303
- icon: /* @__PURE__ */ W(Ke, {
3304
- size: I.SM,
3303
+ value: ht.Grid,
3304
+ icon: /* @__PURE__ */ W(Ge, {
3305
+ size: L.SM,
3305
3306
  "aria-hidden": !0,
3306
- stroke: L
3307
+ stroke: R
3307
3308
  }),
3308
3309
  "aria-label": l
3309
3310
  }, {
3310
- value: Y.Cards,
3311
- icon: /* @__PURE__ */ W(qe, {
3312
- size: I.SM,
3311
+ value: ht.Cards,
3312
+ icon: /* @__PURE__ */ W(Ke, {
3313
+ size: L.SM,
3313
3314
  "aria-hidden": !0,
3314
- stroke: L
3315
+ stroke: R
3315
3316
  }),
3316
3317
  "aria-label": u
3317
3318
  }], [l, u]), O = (e) => {
@@ -3319,7 +3320,7 @@ var ft = /* @__PURE__ */ function(e) {
3319
3320
  }, ee = p?.find((e) => e.value === f)?.label ?? h, k = N(() => (p ?? []).map((e) => ({
3320
3321
  key: e.value,
3321
3322
  label: e.label,
3322
- mark: R.Check,
3323
+ mark: z.Check,
3323
3324
  checked: e.value === f,
3324
3325
  onClick: () => m?.(e.value)
3325
3326
  })), [
@@ -3344,12 +3345,12 @@ var ft = /* @__PURE__ */ function(e) {
3344
3345
  }
3345
3346
  }), /* @__PURE__ */ G("div", {
3346
3347
  className: "ms-auto flex shrink-0 items-center gap-2",
3347
- children: [/* @__PURE__ */ W(De, {
3348
+ children: [/* @__PURE__ */ W(Ee, {
3348
3349
  "aria-label": d,
3349
3350
  value: t,
3350
3351
  onChange: n,
3351
3352
  items: D
3352
- }), p != null && p.length > 0 && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("div", { className: A("h-4 w-px shrink-0", Lr.divider) }), /* @__PURE__ */ W(ae, {
3353
+ }), p != null && p.length > 0 && /* @__PURE__ */ G(ot, { children: [/* @__PURE__ */ W("div", { className: A("h-4 w-px shrink-0", Lr.divider) }), /* @__PURE__ */ W(ae, {
3353
3354
  items: k,
3354
3355
  label: ee,
3355
3356
  variant: oe.Primary,
@@ -3361,10 +3362,10 @@ var ft = /* @__PURE__ */ function(e) {
3361
3362
  children: [/* @__PURE__ */ W("div", {
3362
3363
  role: "search",
3363
3364
  className: "flex-1",
3364
- children: /* @__PURE__ */ W(Ee, {
3365
+ children: /* @__PURE__ */ W(Te, {
3365
3366
  value: o,
3366
3367
  onChange: O,
3367
- size: de.Large,
3368
+ size: ue.Large,
3368
3369
  wrapperClassName: "dial-kit-input-large",
3369
3370
  placeholder: c,
3370
3371
  "aria-label": c
@@ -3421,23 +3422,23 @@ var ft = /* @__PURE__ */ function(e) {
3421
3422
  children: /* @__PURE__ */ W(ae, {
3422
3423
  appearance: ie.Solid,
3423
3424
  label: e,
3424
- iconBefore: /* @__PURE__ */ W(Qe, {
3425
- size: I.SM,
3426
- stroke: L
3425
+ iconBefore: /* @__PURE__ */ W(Ze, {
3426
+ size: L.SM,
3427
+ stroke: R
3427
3428
  }),
3428
3429
  variant: oe.Primary,
3429
3430
  items: t
3430
3431
  })
3431
- }) : /* @__PURE__ */ W(Ce, {
3432
+ }) : /* @__PURE__ */ W(Se, {
3432
3433
  label: e,
3433
- iconBefore: /* @__PURE__ */ W(Qe, {
3434
- size: I.SM,
3435
- stroke: L
3434
+ iconBefore: /* @__PURE__ */ W(Ze, {
3435
+ size: L.SM,
3436
+ stroke: R
3436
3437
  }),
3437
3438
  onClick: n
3438
3439
  });
3439
- }, Hr = ({ items: e, tabs: a, topicOptions: o, favorites: s, titles: l, browseHeaderRenderer: u, onToggleFavorite: f, isFavoriteVisible: p, columnVisibility: h, onUseInChat: g, isPrimaryActionVisible: _, onShare: v, isPublishVisible: y, isPublishPrimary: b, getPublishHistory: x, publishFolderItems: S, publishExpandedPaths: C, onPublishExpandedPathsChange: w, publishLoadingPaths: T, hasPublishWriteAccess: E, onPublish: D, onPublishSuccess: O, onPublishError: ee, onCreatePublishFolder: k, publishLabels: te, ruleSourceOptions: ne, onFetchExistingRules: re, shareOverlay: ie, isShareVisible: ae, isSharePrimary: oe, onFetchDetails: se, onEdit: ce, onDownload: I, isDownloadVisible: L, isDownloadPrimary: le, onLoadContentFile: ue, onLoadContentFilePreview: de, renderContentFilePreview: fe, onDelete: pe, onUnshare: me, isUnshareVisible: he, onRevokeShare: ge, onFetchRecipientsCount: _e, isRevokeShareVisible: ve, onUnpublish: ye, isUnpublishVisible: be, onLogin: xe, onLogout: R, onCreateClick: z, createOptions: Se, hideCreateButton: Ce = !1, hidePageTitle: we = !1, isReadonly: Te = !1, initialViewMode: Ee = Y.Grid, isFullWidth: De = !1, selectedItemId: Oe, onCardClick: ke, isLoading: B, styles: Me, detailsTexts: Ne, detailsLimitsFooterNote: Pe, initialDetailsItemId: V, sortKey: Fe, onSortChange: Ie, filterTopics: Le, onFilterTopicsChange: Re, isMyAppsActive: ze, onMyAppsActiveChange: Be, activeTab: Ve, onActiveTabChange: He }) => {
3440
- let { typography: Ue } = Me ?? {}, We = _t(Me), Ge = l?.pageTitle ?? "Catalog", Ke = l?.createLabel ?? "Create", qe = l?.favoritesTitle ?? "Your favorites", Je = l?.browseTitle ?? "Browse", Ye = l?.searchPlaceholder ?? "Search models, tools, agents…", Xe = l?.noResultsTitle ?? ((e) => `No results for "${e}"`), Ze = l?.featuredLabel ?? "Featured", Qe = l?.gridViewLabel ?? "Grid view", $e = l?.listViewLabel ?? "List view", et = l?.viewToggleLabel ?? "View mode", tt = l?.ariaLabel ?? "Catalog", nt = l?.sortLabel ?? "Sort", H = [
3440
+ }, Hr = ({ items: e, tabs: a, topicOptions: o, favorites: s, titles: l, browseHeaderRenderer: u, onToggleFavorite: f, isFavoriteVisible: p, columnVisibility: h, onUseInChat: g, isPrimaryActionVisible: _, onShare: v, isPublishVisible: y, isPublishPrimary: b, getPublishHistory: x, publishFolderItems: S, publishExpandedPaths: C, onPublishExpandedPathsChange: w, publishLoadingPaths: T, hasPublishWriteAccess: E, onPublish: D, onPublishSuccess: O, onPublishError: ee, onCreatePublishFolder: k, publishLabels: te, ruleSourceOptions: ne, onFetchExistingRules: re, shareOverlay: ie, isShareVisible: ae, isSharePrimary: oe, onFetchDetails: I, onEdit: se, onDownload: L, isDownloadVisible: R, isDownloadPrimary: ce, onLoadContentFile: le, onLoadContentFilePreview: ue, renderContentFilePreview: de, onDelete: fe, onUnshare: pe, isUnshareVisible: me, onRevokeShare: he, onFetchRecipientsCount: ge, isRevokeShareVisible: _e, onUnpublish: ve, isUnpublishVisible: ye, onLogin: be, onLogout: z, onCreateClick: B, createOptions: xe, hideCreateButton: Se = !1, hidePageTitle: Ce = !1, isReadonly: we = !1, initialViewMode: Te = ht.Grid, isFullWidth: Ee = !1, selectedItemId: De, onCardClick: Oe, isLoading: V, styles: je, detailsTexts: Me, detailsLimitsFooterNote: Ne, initialDetailsItemId: H, sortKey: Pe, onSortChange: Fe, filterTopics: Ie, onFilterTopicsChange: Le, isMyAppsActive: Re, onMyAppsActiveChange: ze, activeTab: Be, onActiveTabChange: Ve }) => {
3441
+ let { typography: He } = je ?? {}, Ue = _t(je), We = l?.pageTitle ?? "Catalog", Ge = l?.createLabel ?? "Create", Ke = l?.favoritesTitle ?? "Your favorites", qe = l?.browseTitle ?? "Browse", Je = l?.searchPlaceholder ?? "Search models, tools, agents…", Ye = l?.noResultsTitle ?? ((e) => `No results for "${e}"`), Xe = l?.featuredLabel ?? "Featured", Ze = l?.gridViewLabel ?? "Grid view", Qe = l?.listViewLabel ?? "List view", $e = l?.viewToggleLabel ?? "View mode", et = l?.ariaLabel ?? "Catalog", tt = l?.sortLabel ?? "Sort", nt = [
3441
3442
  {
3442
3443
  value: i.RecentlyUpdated,
3443
3444
  label: l?.sortRecentlyUpdatedLabel ?? "Recently Updated"
@@ -3450,14 +3451,14 @@ var ft = /* @__PURE__ */ function(e) {
3450
3451
  value: i.NameAZ,
3451
3452
  label: l?.sortNameAZLabel ?? "Name A-Z"
3452
3453
  }
3453
- ], [rt, it] = F(""), [at, ot] = F(Ee), [U, st] = F(Ee === Y.Cards), [ct, lt] = F(i.RecentlyUpdated), [ut, dt] = F(/* @__PURE__ */ new Set()), [ft, K] = F(!1), pt = Fe ?? ct, q = Le ?? ut, J = ze ?? ft, mt = j((e) => {
3454
+ ], [U, rt] = F(""), [it, at] = F(Te), [ot, st] = F(Te === ht.Cards), [ct, lt] = F(i.RecentlyUpdated), [ut, dt] = F(/* @__PURE__ */ new Set()), [ft, K] = F(!1), pt = Pe ?? ct, q = Ie ?? ut, J = Re ?? ft, mt = j((e) => {
3454
3455
  let t = e;
3455
- lt(t), Ie?.(t);
3456
- }, [Ie]), ht = j((e) => {
3457
- dt(e), Re?.(e);
3458
- }, [Re]), gt = j((e) => {
3459
- K(e), Be?.(e);
3460
- }, [Be]), X = N(() => e.filter((e) => !e.isHidden), [e]), vt = N(() => o ?? r(X), [o, X]), yt = N(() => a ?? t(X, l?.tabLabels), [
3456
+ lt(t), Fe?.(t);
3457
+ }, [Fe]), gt = j((e) => {
3458
+ dt(e), Le?.(e);
3459
+ }, [Le]), Y = j((e) => {
3460
+ K(e), ze?.(e);
3461
+ }, [ze]), X = N(() => e.filter((e) => !e.isHidden), [e]), vt = N(() => o ?? r(X), [o, X]), yt = N(() => a ?? t(X, l?.tabLabels), [
3461
3462
  a,
3462
3463
  X,
3463
3464
  l?.tabLabels
@@ -3465,9 +3466,9 @@ var ft = /* @__PURE__ */ function(e) {
3465
3466
  M(() => {
3466
3467
  Q((e) => e || Z);
3467
3468
  }, [Z]);
3468
- let xt = Ve ?? bt, St = j((e) => {
3469
- Q(e), He?.(e);
3470
- }, [He]), [Ct, wt] = F(s.length > 0);
3469
+ let xt = Be ?? bt, St = j((e) => {
3470
+ Q(e), Ve?.(e);
3471
+ }, [Ve]), [Ct, wt] = F(s.length > 0);
3471
3472
  M(() => {
3472
3473
  s.length > 0 && !Ct && wt(!0);
3473
3474
  }, [s.length, Ct]);
@@ -3476,25 +3477,25 @@ var ft = /* @__PURE__ */ function(e) {
3476
3477
  }, []), Et = Ct && s.length === 0, [$, Dt] = F(null), [Ot, kt] = F(!1), [At, jt] = F(void 0), [Mt, Nt] = F(!1), Pt = P(null), Ft = j(async (e) => {
3477
3478
  Dt(e), jt(void 0), Pt.current = e.id;
3478
3479
  let t = [];
3479
- se && (Nt(!0), t.push((async () => {
3480
+ I && (Nt(!0), t.push((async () => {
3480
3481
  try {
3481
- let t = await se(e);
3482
+ let t = await I(e);
3482
3483
  Pt.current === e.id && jt(t);
3483
3484
  } finally {
3484
3485
  Pt.current === e.id && Nt(!1);
3485
3486
  }
3486
3487
  })())), await Promise.all(t);
3487
- }, [se]), It = P(null);
3488
+ }, [I]), It = P(null);
3488
3489
  M(() => {
3489
- if (!V) {
3490
+ if (!H) {
3490
3491
  It.current = null;
3491
3492
  return;
3492
3493
  }
3493
- if (It.current === V) return;
3494
- let t = e.find((e) => e.id === V);
3495
- t && (It.current = V, Ft(t));
3494
+ if (It.current === H) return;
3495
+ let t = e.find((e) => e.id === H);
3496
+ t && (It.current = H, Ft(t));
3496
3497
  }, [
3497
- V,
3498
+ H,
3498
3499
  e,
3499
3500
  Ft
3500
3501
  ]), M(() => {
@@ -3503,10 +3504,10 @@ var ft = /* @__PURE__ */ function(e) {
3503
3504
  t && t !== $ && Dt(t);
3504
3505
  }, [e, $]);
3505
3506
  let Lt = j(async (e, t) => {
3506
- await xe?.(e, t), await Ft(e);
3507
- }, [xe, Ft]), Rt = j(async (e, t) => {
3508
- await R?.(e, t), await Ft(e);
3509
- }, [R, Ft]), Bt = j(() => {
3507
+ await be?.(e, t), await Ft(e);
3508
+ }, [be, Ft]), Rt = j(async (e, t) => {
3509
+ await z?.(e, t), await Ft(e);
3510
+ }, [z, Ft]), Bt = j(() => {
3510
3511
  kt(!1), Pt.current = null, setTimeout(() => {
3511
3512
  Dt(null), jt(void 0), Nt(!1);
3512
3513
  }, 300);
@@ -3519,42 +3520,42 @@ var ft = /* @__PURE__ */ function(e) {
3519
3520
  details: t,
3520
3521
  credentials: e ?? $.credentials
3521
3522
  };
3522
- }, [$, At]), Ht = N(() => d(X, pt), [X, pt]), Ut = N(() => c(Ht, rt), [Ht, rt]), Wt = N(() => q.size > 0 ? n(Ut, q) : Ut, [Ut, q]), Gt = N(() => J ? m(Wt) : Wt, [Wt, J]), Kt = N(() => xt ? Gt.filter((e) => e.type === xt) : Gt, [Gt, xt]), qt = $ != null && s.some((e) => e.id === $.id);
3523
+ }, [$, At]), Ht = N(() => d(X, pt), [X, pt]), Ut = N(() => c(Ht, U), [Ht, U]), Wt = N(() => q.size > 0 ? n(Ut, q) : Ut, [Ut, q]), Gt = N(() => J ? m(Wt) : Wt, [Wt, J]), Kt = N(() => xt ? Gt.filter((e) => e.type === xt) : Gt, [Gt, xt]), qt = $ != null && s.some((e) => e.id === $.id);
3523
3524
  M(() => {
3524
3525
  if ($ == null) return;
3525
3526
  let e = requestAnimationFrame(() => kt(!0));
3526
3527
  return () => cancelAnimationFrame(e);
3527
3528
  }, [$]);
3528
3529
  let Jt = j((e) => {
3529
- e === Y.Cards && st(!0), ot(e);
3530
- }, []), Yt = !Ce && !Te, Xt = Ct && !Te, Zt = rt ? Xe(rt) : "No items", Qt = N(() => ({
3530
+ e === ht.Cards && st(!0), at(e);
3531
+ }, []), Yt = !Se && !we, Xt = Ct && !we, Zt = U ? Ye(U) : "No items", Qt = N(() => ({
3531
3532
  noResultsTitle: Zt,
3532
- featuredLabel: Ze,
3533
- credentialsBadgeLoggedOutLabel: Ne?.credentialsBadgeLoggedOutLabel
3533
+ featuredLabel: Xe,
3534
+ credentialsBadgeLoggedOutLabel: Me?.credentialsBadgeLoggedOutLabel
3534
3535
  }), [
3535
3536
  Zt,
3536
- Ze,
3537
- Ne?.credentialsBadgeLoggedOutLabel
3537
+ Xe,
3538
+ Me?.credentialsBadgeLoggedOutLabel
3538
3539
  ]);
3539
- return B ? /* @__PURE__ */ W("div", {
3540
+ return V ? /* @__PURE__ */ W("div", {
3540
3541
  className: "flex size-full min-h-0 flex-1 items-center justify-center",
3541
- children: /* @__PURE__ */ W(Ae, {})
3542
+ children: /* @__PURE__ */ W(ke, {})
3542
3543
  }) : /* @__PURE__ */ G("section", {
3543
- "aria-label": tt,
3544
+ "aria-label": et,
3544
3545
  className: A("flex size-full min-h-0 flex-1 flex-col", Br.root),
3545
- style: We,
3546
+ style: Ue,
3546
3547
  children: [
3547
- (!we || Yt) && /* @__PURE__ */ W("div", {
3548
+ (!Ce || Yt) && /* @__PURE__ */ W("div", {
3548
3549
  className: A("shrink-0", Br.heading),
3549
3550
  children: /* @__PURE__ */ G("div", {
3550
3551
  className: "flex h-[64px] w-full items-center justify-between px-8",
3551
- children: [!we && /* @__PURE__ */ W("h1", {
3552
- className: A(Ue?.pageHeadingFontClassName ?? "dial-display2-text", Br.headingTitle),
3553
- children: Ge
3552
+ children: [!Ce && /* @__PURE__ */ W("h1", {
3553
+ className: A(He?.pageHeadingFontClassName ?? "dial-display2-text", Br.headingTitle),
3554
+ children: We
3554
3555
  }), Yt && /* @__PURE__ */ W(Vr, {
3555
- label: Ke,
3556
- options: Se,
3557
- onClick: z
3556
+ label: Ge,
3557
+ options: xe,
3558
+ onClick: B
3558
3559
  })]
3559
3560
  })
3560
3561
  }),
@@ -3566,39 +3567,39 @@ var ft = /* @__PURE__ */ function(e) {
3566
3567
  children: /* @__PURE__ */ W(br, {
3567
3568
  items: s,
3568
3569
  totalCount: s.length,
3569
- title: qe,
3570
+ title: Ke,
3570
3571
  onToggleFavorite: f,
3571
3572
  isFavoriteVisible: p,
3572
- onItemClick: ke ?? Ft,
3573
+ onItemClick: Oe ?? Ft,
3573
3574
  isLeaving: Et,
3574
3575
  onExitComplete: Tt,
3575
- selectedItemId: Oe,
3576
- credentialsBadgeLoggedOutLabel: Ne?.credentialsBadgeLoggedOutLabel
3576
+ selectedItemId: De,
3577
+ credentialsBadgeLoggedOutLabel: Me?.credentialsBadgeLoggedOutLabel
3577
3578
  })
3578
3579
  }),
3579
3580
  /* @__PURE__ */ W("div", {
3580
3581
  className: "w-full px-4 pt-6",
3581
3582
  children: /* @__PURE__ */ W(zr, {
3582
3583
  totalCount: Gt.length,
3583
- viewMode: at,
3584
+ viewMode: it,
3584
3585
  onViewModeChange: Jt,
3585
3586
  sortKey: pt,
3586
- query: rt,
3587
- onQueryChange: it,
3588
- title: Je,
3587
+ query: U,
3588
+ onQueryChange: rt,
3589
+ title: qe,
3589
3590
  browseHeaderRenderer: u,
3590
- searchPlaceholder: Ye,
3591
- gridViewLabel: Qe,
3592
- listViewLabel: $e,
3593
- viewToggleLabel: et,
3594
- sortOptions: H,
3591
+ searchPlaceholder: Je,
3592
+ gridViewLabel: Ze,
3593
+ listViewLabel: Qe,
3594
+ viewToggleLabel: $e,
3595
+ sortOptions: nt,
3595
3596
  onSortChange: mt,
3596
- sortLabel: nt,
3597
+ sortLabel: tt,
3597
3598
  filters: q,
3598
- onFiltersChange: ht,
3599
+ onFiltersChange: gt,
3599
3600
  filterValues: vt,
3600
3601
  isMyAppsActive: J,
3601
- onMyAppsChange: gt,
3602
+ onMyAppsChange: Y,
3602
3603
  filterFromLabel: l?.filterFromLabel,
3603
3604
  filterMyAppsLabel: l?.filterMyAppsLabel,
3604
3605
  filterTopicsLabel: l?.filterTopicsLabel
@@ -3606,7 +3607,7 @@ var ft = /* @__PURE__ */ function(e) {
3606
3607
  }),
3607
3608
  yt.length > 1 && /* @__PURE__ */ W("div", {
3608
3609
  className: "min-w-0 shrink-0 overflow-x-auto px-8",
3609
- children: /* @__PURE__ */ W(je, {
3610
+ children: /* @__PURE__ */ W(Ae, {
3610
3611
  tabs: yt.map((e) => ({
3611
3612
  id: e.id,
3612
3613
  label: typeof e.label == "string" ? e.label : String(e.label),
@@ -3617,36 +3618,36 @@ var ft = /* @__PURE__ */ function(e) {
3617
3618
  })
3618
3619
  }),
3619
3620
  /* @__PURE__ */ G("div", {
3620
- className: A(Kt.length > 0 ? ["min-h-full w-full px-8 py-6", !De && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", Kt.length === 0 && "px-8 py-6"),
3621
+ className: A(Kt.length > 0 ? ["min-h-full w-full px-8 py-6", !Ee && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", Kt.length === 0 && "px-8 py-6"),
3621
3622
  children: [/* @__PURE__ */ W("div", {
3622
- className: A(Kt.length > 0 ? "pb-8" : "size-full flex-1", at !== Y.Grid && "hidden"),
3623
+ className: A(Kt.length > 0 ? "pb-8" : "size-full flex-1", it !== ht.Grid && "hidden"),
3623
3624
  children: /* @__PURE__ */ W(zt, {
3624
3625
  items: Kt,
3625
- query: rt,
3626
+ query: U,
3626
3627
  onToggleFavorite: f,
3627
3628
  isFavoriteVisible: p,
3628
- onItemClick: ke ?? Ft,
3629
+ onItemClick: Oe ?? Ft,
3629
3630
  titles: Qt,
3630
- selectedItemId: Oe,
3631
- isReadonly: Te,
3632
- isFullWidth: De
3631
+ selectedItemId: De,
3632
+ isReadonly: we,
3633
+ isFullWidth: Ee
3633
3634
  })
3634
- }), U && /* @__PURE__ */ W("div", {
3635
- className: A("pb-8", at !== Y.Cards && "hidden", Kt.length === 0 && "h-full"),
3635
+ }), ot && /* @__PURE__ */ W("div", {
3636
+ className: A("pb-8", it !== ht.Cards && "hidden", Kt.length === 0 && "h-full"),
3636
3637
  children: /* @__PURE__ */ W(Mr, {
3637
3638
  type: xt,
3638
3639
  items: Kt,
3639
- query: rt,
3640
- ariaLabel: tt,
3640
+ query: U,
3641
+ ariaLabel: et,
3641
3642
  emptyStateTitle: Zt,
3642
3643
  onToggleFavorite: f,
3643
3644
  isFavoriteVisible: p,
3644
3645
  columnVisibility: h,
3645
- onItemClick: ke ?? Ft,
3646
+ onItemClick: Oe ?? Ft,
3646
3647
  stickyHeaderTop: 0,
3647
- selectedItemId: Oe,
3648
- credentialsBadgeLoggedOutLabel: Ne?.credentialsBadgeLoggedOutLabel,
3649
- isReadonly: Te
3648
+ selectedItemId: De,
3649
+ credentialsBadgeLoggedOutLabel: Me?.credentialsBadgeLoggedOutLabel,
3650
+ isReadonly: we
3650
3651
  })
3651
3652
  })]
3652
3653
  })
@@ -3657,7 +3658,7 @@ var ft = /* @__PURE__ */ function(e) {
3657
3658
  isOpen: Ot,
3658
3659
  isStarred: qt,
3659
3660
  isDetailsLoading: Mt,
3660
- isReadonly: Te,
3661
+ isReadonly: we,
3661
3662
  onClose: Bt,
3662
3663
  onToggleFavorite: f,
3663
3664
  isFavoriteVisible: p,
@@ -3682,28 +3683,28 @@ var ft = /* @__PURE__ */ function(e) {
3682
3683
  shareOverlay: ie,
3683
3684
  isShareVisible: ae,
3684
3685
  isSharePrimary: oe,
3685
- onEdit: ce,
3686
- onDownload: I,
3687
- isDownloadVisible: L,
3688
- isDownloadPrimary: le,
3689
- onLoadContentFile: ue,
3690
- onLoadContentFilePreview: de,
3691
- renderContentFilePreview: fe,
3692
- onDelete: pe,
3693
- onUnshare: me,
3694
- isUnshareVisible: he,
3695
- onRevokeShare: ge,
3696
- onFetchRecipientsCount: _e,
3697
- isRevokeShareVisible: ve,
3698
- onUnpublish: ye,
3699
- isUnpublishVisible: be,
3686
+ onEdit: se,
3687
+ onDownload: L,
3688
+ isDownloadVisible: R,
3689
+ isDownloadPrimary: ce,
3690
+ onLoadContentFile: le,
3691
+ onLoadContentFilePreview: ue,
3692
+ renderContentFilePreview: de,
3693
+ onDelete: fe,
3694
+ onUnshare: pe,
3695
+ isUnshareVisible: me,
3696
+ onRevokeShare: he,
3697
+ onFetchRecipientsCount: ge,
3698
+ isRevokeShareVisible: _e,
3699
+ onUnpublish: ve,
3700
+ isUnpublishVisible: ye,
3700
3701
  onLogin: Lt,
3701
3702
  onLogout: Rt,
3702
- texts: Ne,
3703
- limitsFooterNote: Pe
3703
+ texts: Me,
3704
+ limitsFooterNote: Ne
3704
3705
  })
3705
3706
  ]
3706
3707
  });
3707
3708
  };
3708
3709
  //#endregion
3709
- export { Et as AppIdentity, Lt as Card, zt as CardGrid, Rt as CardRowRenderer, Hr as Catalog, ht as CatalogContentNodeType, gt as CatalogContentPreviewType, K as CatalogDetailsTab, pt as CatalogLimitStatus, i as CatalogSortKey, Y as CatalogViewMode, ft as CodeLanguage, In as ContentTab, f as CredentialStatus, Dt as CredentialsBadge, l as CredentialsBadgeState, a as CredentialsLevel, e as CredentialsUiState, mt as DeploymentSize, q as DetailsConfirmationKind, J as DetailsConfirmationVariant, _r as FavoriteCard, br as Favorites, Ir as Filter, en as InfoCard, Mr as ListView, zr as Toolbar, _ as ToolsetAuthenticationType, Mt as TopicTag, t as buildCatalogTabs, c as filterCatalogItems, h as getCredentialsBadgeState, p as getCredentialsUiState, s as getSignedInLevel, r as getTopicOptions, d as sortCatalogItems, X as useFavColumns, Ct as useScrollVirtualizer };
3710
+ export { Et as AppIdentity, Lt as Card, zt as CardGrid, Rt as CardRowRenderer, Hr as Catalog, gt as CatalogContentNodeType, Y as CatalogContentPreviewType, K as CatalogDetailsTab, pt as CatalogLimitStatus, i as CatalogSortKey, ht as CatalogViewMode, ft as CodeLanguage, In as ContentTab, f as CredentialStatus, Dt as CredentialsBadge, l as CredentialsBadgeState, a as CredentialsLevel, e as CredentialsUiState, mt as DeploymentSize, q as DetailsConfirmationKind, J as DetailsConfirmationVariant, hr as DetailsPanel, _r as FavoriteCard, br as Favorites, Ir as Filter, en as InfoCard, Mr as ListView, zr as Toolbar, _ as ToolsetAuthenticationType, Mt as TopicTag, t as buildCatalogTabs, c as filterCatalogItems, h as getCredentialsBadgeState, p as getCredentialsUiState, s as getSignedInLevel, r as getTopicOptions, d as sortCatalogItems, X as useFavColumns, Ct as useScrollVirtualizer };