@epam/ai-dial-catalog 1.2.0-dev.28 → 1.2.0-dev.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"Catalog.d.ts","sourceRoot":"","sources":["../../../src/components/Catalog/Catalog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAqD,MAAM,OAAO,CAAC;AAE9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAoC/D,mHAAmH;AACnH,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAypBpC,CAAC"}
1
+ {"version":3,"file":"Catalog.d.ts","sourceRoot":"","sources":["../../../src/components/Catalog/Catalog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAqD,MAAM,OAAO,CAAC;AAE9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAoC/D,mHAAmH;AACnH,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAqqBpC,CAAC"}
package/index.js CHANGED
@@ -17,42 +17,42 @@ var ht = /* @__PURE__ */ function(e) {
17
17
  return e.Delete = "delete", e.Logout = "logout", e.Unshare = "unshare", e.RevokeAccess = "revokeAccess", e.DeleteApiKey = "deleteApiKey", e.Unpublish = "unpublish", e;
18
18
  }({}), J = /* @__PURE__ */ function(e) {
19
19
  return e.Danger = "danger", e.Info = "info", e;
20
- }({}), _t = /* @__PURE__ */ function(e) {
21
- return e.SM = "sm", e.LG = "lg", e;
22
20
  }({}), Y = /* @__PURE__ */ function(e) {
23
- return e.Grid = "grid", e.Cards = "cards", e;
21
+ return e.SM = "sm", e.LG = "lg", e;
24
22
  }({}), X = /* @__PURE__ */ function(e) {
23
+ return e.Grid = "grid", e.Cards = "cards", e;
24
+ }({}), Z = /* @__PURE__ */ function(e) {
25
25
  return e.File = "file", e.Folder = "folder", e;
26
- }({}), vt = /* @__PURE__ */ function(e) {
26
+ }({}), _t = /* @__PURE__ */ function(e) {
27
27
  return e.Markdown = "markdown", e.Text = "text", e.Image = "image", e.Unsupported = "unsupported", e;
28
- }({}), yt = () => {
28
+ }({}), vt = () => {
29
29
  let [e, t] = P(() => window.innerWidth);
30
30
  return j(() => {
31
31
  let e = () => t(window.innerWidth);
32
32
  return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
33
33
  }, []), e >= 1024 ? 4 : e >= 640 ? 2 : 1;
34
- }, bt = (e) => {
34
+ }, yt = (e) => {
35
35
  let { colors: t } = e ?? {};
36
36
  return ie({
37
37
  "--cat-bg": t?.background,
38
38
  "--cat-heading-title-text": t?.headingTitleText
39
39
  });
40
- }, xt = 1180, Z = (e) => e >= 1280 ? 4 : e >= 966 ? 3 : e >= 620 ? 2 : 1, St = (e) => {
40
+ }, bt = 1180, Q = (e) => e >= 1280 ? 4 : e >= 966 ? 3 : e >= 620 ? 2 : 1, xt = (e) => {
41
41
  if (!e || e === document.body) return document.documentElement;
42
42
  let { overflow: t, overflowY: n } = getComputedStyle(e);
43
- return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : St(e.parentElement);
44
- }, Ct = 10, wt = 10, Tt = 30, Et = (e, t, n = Ct) => {
43
+ return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : xt(e.parentElement);
44
+ }, St = 10, Ct = 10, wt = 30, Tt = (e, t, n = St) => {
45
45
  let r = N(null), [i, a] = P({
46
46
  start: 0,
47
- end: Tt
47
+ end: wt
48
48
  });
49
49
  j(() => {
50
50
  let i = r.current;
51
51
  if (!i) return;
52
- let o = St(i.parentElement), s = () => {
52
+ let o = xt(i.parentElement), s = () => {
53
53
  let r = o.clientHeight;
54
54
  if (r === 0) return;
55
- let s = i.getBoundingClientRect().top, c = o.getBoundingClientRect().top, l = Math.max(0, c - s), u = Math.floor(l / t), d = Math.ceil(r / t), f = Math.max(0, Math.floor((u - n) / wt) * wt), p = Math.min(e, Math.ceil((u + d + n) / wt) * wt);
55
+ let s = i.getBoundingClientRect().top, c = o.getBoundingClientRect().top, l = Math.max(0, c - s), u = Math.floor(l / t), d = Math.ceil(r / t), f = Math.max(0, Math.floor((u - n) / Ct) * Ct), p = Math.min(e, Math.ceil((u + d + n) / Ct) * Ct);
56
56
  a((e) => e.start === f && e.end === p ? e : {
57
57
  start: f,
58
58
  end: p
@@ -68,15 +68,15 @@ var ht = /* @__PURE__ */ function(e) {
68
68
  t,
69
69
  n
70
70
  ]);
71
- let o = Math.max(0, Math.floor((e - 1) / wt) * wt), s = Math.min(i.start, o);
71
+ let o = Math.max(0, Math.floor((e - 1) / Ct) * Ct), s = Math.min(i.start, o);
72
72
  return {
73
73
  containerRef: r,
74
74
  startRow: s,
75
- endRow: Math.min(e, Math.max(i.end, s + wt))
75
+ endRow: Math.min(e, Math.max(i.end, s + Ct))
76
76
  };
77
- }, Dt = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
77
+ }, Et = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
78
78
  let r = N(null), [i, a] = P(() => {
79
- let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= x ? 60 : 0)), i = Z((n ? r : Math.min(xt, r)) - 64), a = Math.ceil(e / i);
79
+ let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= x ? 60 : 0)), i = Q((n ? r : Math.min(bt, r)) - 64), a = Math.ceil(e / i);
80
80
  return {
81
81
  startRow: 0,
82
82
  endRow: Math.min(a, 12),
@@ -86,8 +86,8 @@ var ht = /* @__PURE__ */ function(e) {
86
86
  j(() => {
87
87
  let n = r.current;
88
88
  if (!n) return;
89
- let i = St(n.parentElement), o = () => {
90
- let r = n.getBoundingClientRect(), o = i.getBoundingClientRect(), s = i.clientHeight, c = n.clientWidth, l = Z(c), u = Math.ceil(e / l), d = Math.max(0, o.top - r.top), f = Math.max(0, Math.floor(d / 268) - t);
89
+ let i = xt(n.parentElement), o = () => {
90
+ let r = n.getBoundingClientRect(), o = i.getBoundingClientRect(), s = i.clientHeight, c = n.clientWidth, l = Q(c), u = Math.ceil(e / l), d = Math.max(0, o.top - r.top), f = Math.max(0, Math.floor(d / 268) - t);
91
91
  a({
92
92
  startRow: f,
93
93
  endRow: Math.min(u, f + Math.ceil(s / 268) + 2 * t),
@@ -109,7 +109,7 @@ var ht = /* @__PURE__ */ function(e) {
109
109
  rowCount: o,
110
110
  totalHeight: o * 268
111
111
  };
112
- }, Ot = {
112
+ }, Dt = {
113
113
  skeletonColor: "var(--cg-skeleton-color, var(--bg-control-disable-primary, #dce0e8))",
114
114
  card: "_card_18c2b_2",
115
115
  emptyStarHidden: "_emptyStarHidden_18c2b_2",
@@ -119,12 +119,12 @@ var ht = /* @__PURE__ */ function(e) {
119
119
  selectedCard: "_selectedCard_18c2b_37",
120
120
  checkIcon: "_checkIcon_18c2b_42",
121
121
  footer: "_footer_18c2b_46"
122
- }, kt = {
122
+ }, Ot = {
123
123
  name: "_name_188yo_1",
124
124
  lastUsed: "_lastUsed_188yo_5",
125
125
  version: "_version_188yo_9"
126
- }, At = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, styles: c, lastUsedTrailing: l, iconClassName: u, iconOverlay: d }) => {
127
- let f = c?.colors, p = c?.typography ?? {}, m = a === _t.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = ie({
126
+ }, kt = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, styles: c, lastUsedTrailing: l, iconClassName: u, iconOverlay: d }) => {
127
+ let f = c?.colors, p = c?.typography ?? {}, m = a === Y.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = ie({
128
128
  "--ai-name-text": f?.nameColor,
129
129
  "--ai-last-used-text": f?.lastUsedColor,
130
130
  "--ai-version-text": f?.versionColor
@@ -157,22 +157,22 @@ var ht = /* @__PURE__ */ function(e) {
157
157
  text: n,
158
158
  query: o
159
159
  }) : n,
160
- className: k("min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text", kt.name)
160
+ className: k("min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text", Ot.name)
161
161
  }), r && /* @__PURE__ */ W(me, {
162
162
  text: r,
163
- className: k("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text", kt.version)
163
+ className: k("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text", Ot.version)
164
164
  })]
165
165
  }), m && i != null && /* @__PURE__ */ G("div", {
166
166
  className: "flex items-center gap-2",
167
167
  children: [/* @__PURE__ */ W("span", {
168
- className: k("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", kt.lastUsed),
168
+ className: k("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", Ot.lastUsed),
169
169
  children: i
170
170
  }), l]
171
171
  })]
172
172
  })]
173
173
  })]
174
174
  });
175
- }, jt = { icon: "_icon_a0p4u_1" }, Mt = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || g(e) == null ? null : /* @__PURE__ */ W(Fe, {
175
+ }, At = { icon: "_icon_a0p4u_1" }, jt = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || g(e) == null ? null : /* @__PURE__ */ W(Fe, {
176
176
  tooltip: t,
177
177
  asChild: !0,
178
178
  children: /* @__PURE__ */ W("span", {
@@ -185,11 +185,11 @@ var ht = /* @__PURE__ */ function(e) {
185
185
  className: k("absolute -bottom-1 -end-1 shrink-0", n),
186
186
  children: /* @__PURE__ */ W(Ie, {
187
187
  size: L.SM,
188
- className: jt.icon,
188
+ className: At.icon,
189
189
  "aria-hidden": !0
190
190
  })
191
191
  })
192
- }), Q = {
192
+ }), Mt = {
193
193
  starFilledIcon: "_starFilledIcon_po6zj_1",
194
194
  starPop: "_starPop_po6zj_1"
195
195
  }, Nt = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ W(Pe, {
@@ -198,7 +198,7 @@ var ht = /* @__PURE__ */ function(e) {
198
198
  className: i,
199
199
  icon: e ? /* @__PURE__ */ W(H, {
200
200
  size: L.SM,
201
- className: Q.starFilledIcon
201
+ className: Mt.starFilledIcon
202
202
  }) : /* @__PURE__ */ W(rt, {
203
203
  size: L.SM,
204
204
  stroke: R
@@ -311,7 +311,7 @@ var ht = /* @__PURE__ */ function(e) {
311
311
  } : {},
312
312
  "aria-label": e.name,
313
313
  style: b,
314
- className: k("box-border cursor-pointer gap-3", Ot.card, x ? Ot.featuredCard : void 0, l ? Ot.selectedCard : void 0, u),
314
+ className: k("box-border cursor-pointer gap-3", Dt.card, x ? Dt.featuredCard : void 0, l ? Dt.selectedCard : void 0, u),
315
315
  children: [
316
316
  x && /* @__PURE__ */ W("div", {
317
317
  className: "absolute end-[22px] top-0 -translate-y-1/2",
@@ -324,25 +324,25 @@ var ht = /* @__PURE__ */ function(e) {
324
324
  }),
325
325
  l && /* @__PURE__ */ W(ze, {
326
326
  size: L.SM,
327
- className: k("absolute end-3 top-3 shrink-0", Ot.checkIcon),
327
+ className: k("absolute end-3 top-3 shrink-0", Dt.checkIcon),
328
328
  "aria-hidden": !0,
329
329
  stroke: R
330
330
  }),
331
- /* @__PURE__ */ W(At, {
331
+ /* @__PURE__ */ W(kt, {
332
332
  icon: e.iconUrl,
333
333
  type: e.type,
334
334
  name: e.name,
335
335
  version: e.version,
336
- size: _t.SM,
336
+ size: Y.SM,
337
337
  query: t,
338
- iconClassName: Ot.cardIcon,
339
- iconOverlay: /* @__PURE__ */ W(Mt, {
338
+ iconClassName: Dt.cardIcon,
339
+ iconOverlay: /* @__PURE__ */ W(jt, {
340
340
  credentials: e.credentials,
341
341
  loggedOutLabel: f
342
342
  })
343
343
  }),
344
344
  /* @__PURE__ */ W("div", {
345
- className: k("line-clamp-2 min-h-[2lh] break-words", Ot.description),
345
+ className: k("line-clamp-2 min-h-[2lh] break-words", Dt.description),
346
346
  children: e.description && /* @__PURE__ */ W(O, {
347
347
  content: e.description,
348
348
  classNames: {
@@ -364,7 +364,7 @@ var ht = /* @__PURE__ */ function(e) {
364
364
  children: /* @__PURE__ */ W(Lt, { topics: e.topics })
365
365
  }),
366
366
  C && /* @__PURE__ */ W("div", {
367
- className: k("pt-3", !p && k("border-t", Ot.footer)),
367
+ className: k("pt-3", !p && k("border-t", Dt.footer)),
368
368
  children: /* @__PURE__ */ G("div", {
369
369
  className: "flex items-center gap-2",
370
370
  children: [/* @__PURE__ */ W("div", {
@@ -379,7 +379,7 @@ var ht = /* @__PURE__ */ function(e) {
379
379
  size: pe.Small,
380
380
  onClick: D,
381
381
  ariaLabel: m ? c : s,
382
- className: k(Ot.starBtn, !m && Ot.emptyStarHidden)
382
+ className: k(Dt.starBtn, !m && Dt.emptyStarHidden)
383
383
  })]
384
384
  })
385
385
  })
@@ -416,8 +416,8 @@ var ht = /* @__PURE__ */ function(e) {
416
416
  }, n?.id ?? `spacer-${t}`);
417
417
  })
418
418
  });
419
- }, Ht = oe(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = Ot.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1, featuredChipStyle: f }) => {
420
- let p = a?.noResultsTitle ?? "No results", m = a?.featuredLabel ?? "Featured", h = a?.addToFavoritesAriaLabel ?? "Add to favorites", g = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", _ = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", { containerRef: v, startRow: y, endRow: b, columnCount: x, totalHeight: S } = Dt(e.length, { isFullWidth: d }), C = M(() => ({
419
+ }, Ht = oe(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = Dt.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1, featuredChipStyle: f }) => {
420
+ let p = a?.noResultsTitle ?? "No results", m = a?.featuredLabel ?? "Featured", h = a?.addToFavoritesAriaLabel ?? "Add to favorites", g = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", _ = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", { containerRef: v, startRow: y, endRow: b, columnCount: x, totalHeight: S } = Et(e.length, { isFullWidth: d }), C = M(() => ({
421
421
  items: e,
422
422
  columnCount: x,
423
423
  query: t,
@@ -453,7 +453,7 @@ var ht = /* @__PURE__ */ function(e) {
453
453
  ...ie({ "--cg-skeleton-card-bg": l })
454
454
  },
455
455
  children: Array.from({ length: x * 3 }, (e, t) => /* @__PURE__ */ W("div", {
456
- className: k("rounded-md border p-4", Ot.skeletonCard),
456
+ className: k("rounded-md border p-4", Dt.skeletonCard),
457
457
  style: { height: 248 },
458
458
  children: /* @__PURE__ */ W(je, {
459
459
  avatar: {
@@ -481,15 +481,15 @@ var ht = /* @__PURE__ */ function(e) {
481
481
  }, n);
482
482
  })
483
483
  });
484
- }), Ut = (e) => e.reduce((e, t) => t.type === X.File ? e + 1 : e + Ut(t.items), 0), Wt = (e) => {
484
+ }), Ut = (e) => e.reduce((e, t) => t.type === Z.File ? e + 1 : e + Ut(t.items), 0), Wt = (e) => {
485
485
  let t = /* @__PURE__ */ new Set(), n = (e) => {
486
- for (let r of e) r.type === X.Folder && (t.add(r.id), n(r.items));
486
+ for (let r of e) r.type === Z.Folder && (t.add(r.id), n(r.items));
487
487
  };
488
488
  return n(e), t;
489
489
  }, Gt = (e, t) => {
490
490
  if (t != null) for (let n of e) {
491
491
  if (n.id === t) return n.name;
492
- if (n.type === X.Folder) {
492
+ if (n.type === Z.Folder) {
493
493
  let e = Gt(n.items, t);
494
494
  if (e != null) return e;
495
495
  }
@@ -1373,12 +1373,12 @@ var ht = /* @__PURE__ */ function(e) {
1373
1373
  ke,
1374
1374
  Ae,
1375
1375
  Oe
1376
- ]), [q, J] = P(!1), _t = rt === n.ApiKey && H !== y.ManageCredentials, Y = rt === n.ApiKey && H === y.LogOut, X = rt !== n.ApiKey && H !== y.ManageCredentials && H === y.LogOut, vt = A(() => {
1376
+ ]), [q, J] = P(!1), Y = rt === n.ApiKey && H !== y.ManageCredentials, X = rt === n.ApiKey && H === y.LogOut, Z = rt !== n.ApiKey && H !== y.ManageCredentials && H === y.LogOut, _t = A(() => {
1377
1377
  if (H === y.ManageCredentials) {
1378
1378
  T?.();
1379
1379
  return;
1380
1380
  }
1381
- if (_t) {
1381
+ if (Y) {
1382
1382
  J((e) => !e);
1383
1383
  return;
1384
1384
  }
@@ -1389,12 +1389,12 @@ var ht = /* @__PURE__ */ function(e) {
1389
1389
  S?.(e, { level: v.User });
1390
1390
  }, [
1391
1391
  H,
1392
- _t,
1392
+ Y,
1393
1393
  e,
1394
1394
  S,
1395
1395
  T,
1396
1396
  E
1397
- ]), yt = H === y.ManageCredentials ? (D?.manageCredentialsActionLabel ?? An)(rt) : rt === n.ApiKey ? H === y.LogOut ? D?.changeApiKeyActionLabel ?? "Change API key" : D?.apiKeyActionLabel ?? "API key" : H === y.LogOut ? D?.logoutActionLabel ?? "Log out" : D?.loginActionLabel ?? "Log in", bt = H === y.ManageCredentials || rt === n.ApiKey ? /* @__PURE__ */ W(Je, {
1397
+ ]), vt = H === y.ManageCredentials ? (D?.manageCredentialsActionLabel ?? An)(rt) : rt === n.ApiKey ? H === y.LogOut ? D?.changeApiKeyActionLabel ?? "Change API key" : D?.apiKeyActionLabel ?? "API key" : H === y.LogOut ? D?.logoutActionLabel ?? "Log out" : D?.loginActionLabel ?? "Log in", yt = H === y.ManageCredentials || rt === n.ApiKey ? /* @__PURE__ */ W(Je, {
1398
1398
  size: L.MD,
1399
1399
  stroke: R
1400
1400
  }) : H === y.LogOut ? /* @__PURE__ */ W(Qe, {
@@ -1403,23 +1403,23 @@ var ht = /* @__PURE__ */ function(e) {
1403
1403
  }) : /* @__PURE__ */ W(Ze, {
1404
1404
  size: L.MD,
1405
1405
  stroke: R
1406
- }), xt = H === y.ManageCredentials ? /* @__PURE__ */ W(Le, {
1406
+ }), bt = H === y.ManageCredentials ? /* @__PURE__ */ W(Le, {
1407
1407
  size: L.MD,
1408
1408
  className: "rtl:scale-x-[-1]",
1409
1409
  stroke: R
1410
- }) : _t ? /* @__PURE__ */ W(Be, {
1410
+ }) : Y ? /* @__PURE__ */ W(Be, {
1411
1411
  size: L.MD,
1412
1412
  stroke: R
1413
- }) : void 0, Z = (t) => {
1413
+ }) : void 0, Q = (t) => {
1414
1414
  let n = /* @__PURE__ */ W(t, {
1415
- label: yt,
1416
- iconBefore: bt,
1417
- iconAfter: xt,
1418
- onClick: vt,
1419
- "aria-haspopup": _t ? "dialog" : void 0,
1420
- "aria-expanded": _t ? q : void 0
1415
+ label: vt,
1416
+ iconBefore: yt,
1417
+ iconAfter: bt,
1418
+ onClick: _t,
1419
+ "aria-haspopup": Y ? "dialog" : void 0,
1420
+ "aria-expanded": Y ? q : void 0
1421
1421
  });
1422
- return !_t || e.credentials == null ? n : /* @__PURE__ */ W(fe, {
1422
+ return !Y || e.credentials == null ? n : /* @__PURE__ */ W(fe, {
1423
1423
  placement: "bottom-start",
1424
1424
  matchReferenceWidth: !1,
1425
1425
  open: q,
@@ -1438,7 +1438,7 @@ var ht = /* @__PURE__ */ function(e) {
1438
1438
  }),
1439
1439
  children: n
1440
1440
  });
1441
- }, St = () => {
1441
+ }, xt = () => {
1442
1442
  let t = /* @__PURE__ */ W(fe, {
1443
1443
  items: K,
1444
1444
  placement: "bottom-end",
@@ -1466,7 +1466,7 @@ var ht = /* @__PURE__ */ function(e) {
1466
1466
  renderOverlay: () => a(e, De),
1467
1467
  children: t
1468
1468
  });
1469
- }, Ct = ot || Ve || dt || Xe && Ye || tt && He || tt && Ke || at && !ot || K.length > 0 || Ue;
1469
+ }, St = ot || Ve || dt || Xe && Ye || tt && He || tt && Ke || at && !ot || K.length > 0 || Ue;
1470
1470
  return /* @__PURE__ */ G("div", {
1471
1471
  className: "flex flex-col gap-3 px-6 py-4",
1472
1472
  children: [/* @__PURE__ */ W(C, {
@@ -1481,10 +1481,10 @@ var ht = /* @__PURE__ */ function(e) {
1481
1481
  labelClassName: le,
1482
1482
  leafClassName: I
1483
1483
  }) : void 0
1484
- }), Ct && /* @__PURE__ */ G("div", {
1484
+ }), St && /* @__PURE__ */ G("div", {
1485
1485
  className: "flex flex-wrap items-center gap-2 ps-[60px]",
1486
1486
  children: [
1487
- ot && Z(Y || X ? we : Ee),
1487
+ ot && Q(X || Z ? we : Ee),
1488
1488
  Ve && /* @__PURE__ */ W(Ee, {
1489
1489
  label: D?.primaryActionLabel ?? "Use in chat",
1490
1490
  iconBefore: /* @__PURE__ */ W(et, { size: L.MD }),
@@ -1539,8 +1539,8 @@ var ht = /* @__PURE__ */ function(e) {
1539
1539
  onMouseEnter: ze,
1540
1540
  onFocus: ze
1541
1541
  }),
1542
- at && !ot && Z(we),
1543
- (K.length > 0 || Ue) && St()
1542
+ at && !ot && Q(we),
1543
+ (K.length > 0 || Ue) && xt()
1544
1544
  ]
1545
1545
  })]
1546
1546
  });
@@ -1575,7 +1575,7 @@ var ht = /* @__PURE__ */ function(e) {
1575
1575
  node: e,
1576
1576
  parentId: n
1577
1577
  };
1578
- return e.type === X.File || !t.has(e.id) ? [r] : [r, ...In(e.items, t, e.id)];
1578
+ return e.type === Z.File || !t.has(e.id) ? [r] : [r, ...In(e.items, t, e.id)];
1579
1579
  }), Ln = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
1580
1580
  let c = M(() => In(e, n), [e, n]), l = N({}), [u, d] = P(() => t ?? c[0]?.node.id);
1581
1581
  j(() => {
@@ -1601,14 +1601,14 @@ var ht = /* @__PURE__ */ function(e) {
1601
1601
  break;
1602
1602
  }
1603
1603
  case "ArrowRight":
1604
- e.preventDefault(), o.node.type === X.Folder && !n.has(o.node.id) && r(o.node.id);
1604
+ e.preventDefault(), o.node.type === Z.Folder && !n.has(o.node.id) && r(o.node.id);
1605
1605
  break;
1606
1606
  case "ArrowLeft":
1607
- e.preventDefault(), o.node.type === X.Folder && n.has(o.node.id) ? r(o.node.id) : o.parentId != null && f(o.parentId);
1607
+ e.preventDefault(), o.node.type === Z.Folder && n.has(o.node.id) ? r(o.node.id) : o.parentId != null && f(o.parentId);
1608
1608
  break;
1609
1609
  case "Enter":
1610
1610
  case " ":
1611
- e.preventDefault(), o.node.type === X.Folder ? r(o.node.id) : i(o.node.id);
1611
+ e.preventDefault(), o.node.type === Z.Folder ? r(o.node.id) : i(o.node.id);
1612
1612
  break;
1613
1613
  case "Escape":
1614
1614
  e.preventDefault(), a();
@@ -1617,7 +1617,7 @@ var ht = /* @__PURE__ */ function(e) {
1617
1617
  }
1618
1618
  }, m = (e) => k("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) => {
1619
1619
  let a = e.id === u;
1620
- if (e.type === X.File) {
1620
+ if (e.type === Z.File) {
1621
1621
  let n = e.id === t;
1622
1622
  return /* @__PURE__ */ W("div", {
1623
1623
  ref: (t) => {
@@ -1680,10 +1680,10 @@ var ht = /* @__PURE__ */ function(e) {
1680
1680
  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 = Ut(x) > 1, C = Gt(x, r) ?? "", w = (e) => {
1681
1681
  i?.(e), l(!1);
1682
1682
  }, T = a ? {
1683
- type: vt.Text,
1683
+ type: _t.Text,
1684
1684
  text: ""
1685
1685
  } : m ?? {
1686
- type: vt.Markdown,
1686
+ type: _t.Markdown,
1687
1687
  text: e
1688
1688
  };
1689
1689
  return /* @__PURE__ */ G("div", {
@@ -1732,21 +1732,21 @@ var ht = /* @__PURE__ */ function(e) {
1732
1732
  }), (() => {
1733
1733
  if (h != null) return h;
1734
1734
  switch (T.type) {
1735
- case vt.Markdown: return /* @__PURE__ */ W(ee, {
1735
+ case _t.Markdown: return /* @__PURE__ */ W(ee, {
1736
1736
  content: T.text,
1737
1737
  headingClassName: v
1738
1738
  });
1739
- case vt.Text: return /* @__PURE__ */ W(D, {
1739
+ case _t.Text: return /* @__PURE__ */ W(D, {
1740
1740
  language: T.language ?? "",
1741
1741
  value: T.text,
1742
1742
  hideDownload: !0
1743
1743
  });
1744
- case vt.Image: return /* @__PURE__ */ W("img", {
1744
+ case _t.Image: return /* @__PURE__ */ W("img", {
1745
1745
  src: T.url,
1746
1746
  alt: C,
1747
1747
  className: "max-w-full"
1748
1748
  });
1749
- case vt.Unsupported: return /* @__PURE__ */ W("p", {
1749
+ case _t.Unsupported: return /* @__PURE__ */ W("p", {
1750
1750
  className: "m-0",
1751
1751
  children: p
1752
1752
  });
@@ -2021,7 +2021,7 @@ var ht = /* @__PURE__ */ function(e) {
2021
2021
  "--cat-cred-card-title-text": B?.credentialsCardTitleText,
2022
2022
  "--cat-cred-card-description-text": B?.credentialsCardDescriptionText
2023
2023
  }), [Pe, Fe] = P(n), [V, Ie] = P(""), [Le, Re] = P(!1), [ze, Be] = P([]), [He, Ue] = P(!1), [We, Ge] = P(!1), [Ke, qe] = P(!1), Je = N(null), Ye = e.details?.promptContent, Xe = Ye?.selectedFileId, [Ze, Qe] = P(null), [$e, et] = P(!1), [tt, nt] = P(/* @__PURE__ */ new Set()), [rt, H] = P(!1), it = N(null), at = N(0), ot = A((e) => {
2024
- let t = it.current, n = e?.preview?.type === vt.Image ? e.preview.url : null;
2024
+ let t = it.current, n = e?.preview?.type === _t.Image ? e.preview.url : null;
2025
2025
  t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), it.current = n, Qe(e);
2026
2026
  }, []);
2027
2027
  j(() => {
@@ -2055,11 +2055,11 @@ var ht = /* @__PURE__ */ function(e) {
2055
2055
  }), et(!0);
2056
2056
  try {
2057
2057
  let n = le == null ? await ce?.(e).then((e) => e == null ? void 0 : {
2058
- type: vt.Markdown,
2058
+ type: _t.Markdown,
2059
2059
  text: e
2060
2060
  }) : await le(e);
2061
2061
  if (at.current !== t) {
2062
- n?.type === vt.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
2062
+ n?.type === _t.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
2063
2063
  return;
2064
2064
  }
2065
2065
  ot({
@@ -2082,7 +2082,7 @@ var ht = /* @__PURE__ */ function(e) {
2082
2082
  I,
2083
2083
  ot
2084
2084
  ]), lt = Ze?.id ?? Xe, mt = () => Ze == null ? null : Ze.preview == null ? {
2085
- type: vt.Text,
2085
+ type: _t.Text,
2086
2086
  text: z?.contentFileErrorLabel ?? "Failed to load this file."
2087
2087
  } : Ze.preview, ht = Ze != null && I != null ? I(Ze.id, Gt(Ye?.files ?? [], Ze.id) ?? "") : void 0, gt = A(() => {
2088
2088
  if (!h || Je.current === e.id) return;
@@ -2101,9 +2101,9 @@ var ht = /* @__PURE__ */ function(e) {
2101
2101
  j(() => {
2102
2102
  Le && gt();
2103
2103
  }, [Le, gt]);
2104
- let _t = A((e, t) => {
2104
+ let Y = A((e, t) => {
2105
2105
  Je.current = null, qe(!1), gt(), w?.(e, t);
2106
- }, [gt, w]), Y = pt({
2106
+ }, [gt, w]), X = pt({
2107
2107
  item: e,
2108
2108
  history: ze,
2109
2109
  folderItems: g,
@@ -2111,35 +2111,35 @@ var ht = /* @__PURE__ */ function(e) {
2111
2111
  defaultAuthor: S,
2112
2112
  onCreateFolder: E,
2113
2113
  onPublish: C ?? cr,
2114
- onPublishSuccess: _t,
2114
+ onPublishSuccess: Y,
2115
2115
  onPublishError: T,
2116
2116
  onFetchExistingRules: ee
2117
- }), X = M(() => ft({
2118
- hasSelectedFolder: Y.selectedFolderPath != null,
2119
- hasExistingPublicationInFolder: Y.hasExistingPublicationInFolder,
2120
- hasWriteAccess: Y.hasWriteAccess,
2121
- isSubmitting: Y.isSubmitting,
2122
- hasSubmitError: Y.hasSubmitError
2117
+ }), Z = M(() => ft({
2118
+ hasSelectedFolder: X.selectedFolderPath != null,
2119
+ hasExistingPublicationInFolder: X.hasExistingPublicationInFolder,
2120
+ hasWriteAccess: X.hasWriteAccess,
2121
+ isSubmitting: X.isSubmitting,
2122
+ hasSubmitError: X.hasSubmitError
2123
2123
  }), [
2124
- Y.selectedFolderPath,
2125
- Y.hasExistingPublicationInFolder,
2126
- Y.hasWriteAccess,
2127
- Y.isSubmitting,
2128
- Y.hasSubmitError
2129
- ]), [yt, bt] = P(!1), [xt, Z] = P(null), [St, Ct] = P(!1), [wt, Tt] = P(null), [Et, Dt] = P(null), [Ot, kt] = P(null);
2124
+ X.selectedFolderPath,
2125
+ X.hasExistingPublicationInFolder,
2126
+ X.hasWriteAccess,
2127
+ X.isSubmitting,
2128
+ X.hasSubmitError
2129
+ ]), [vt, yt] = P(!1), [bt, Q] = P(null), [xt, St] = P(!1), [Ct, wt] = P(null), [Tt, Et] = P(null), [Dt, Ot] = P(null);
2130
2130
  j(() => {
2131
2131
  Fe(n);
2132
2132
  }, [e.id, n]), j(() => {
2133
- Ie(""), Re(!1), Y.reset(), Be([]), Ge(!1), Ue(!1), qe(!1), Je.current = null, kt(null), bt(!1), Z(null), Ct(!1), Tt(null), Dt(null);
2133
+ Ie(""), Re(!1), X.reset(), Be([]), Ge(!1), Ue(!1), qe(!1), Je.current = null, Ot(null), yt(!1), Q(null), St(!1), wt(null), Et(null);
2134
2134
  }, [e.id]);
2135
- let At = A(() => bt(!0), []), jt = A(() => bt(!1), []), Mt = A(() => {
2136
- Z(q.Delete);
2137
- }, []), Q = A((t) => {
2138
- Dt(t ?? (e.credentials == null ? null : c(e.credentials))), Z(q.Logout);
2135
+ let kt = A(() => yt(!0), []), At = A(() => yt(!1), []), jt = A(() => {
2136
+ Q(q.Delete);
2137
+ }, []), Mt = A((t) => {
2138
+ Et(t ?? (e.credentials == null ? null : c(e.credentials))), Q(q.Logout);
2139
2139
  }, [e.credentials]), Pt = A(() => {
2140
- Z(q.Unshare);
2140
+ Q(q.Unshare);
2141
2141
  }, []), Ft = A(() => {
2142
- Z(q.RevokeAccess);
2142
+ Q(q.RevokeAccess);
2143
2143
  }, []), $ = M(() => {
2144
2144
  let e = /* @__PURE__ */ new Set(), t = [];
2145
2145
  for (let n of ze) {
@@ -2151,16 +2151,16 @@ var ht = /* @__PURE__ */ function(e) {
2151
2151
  }
2152
2152
  return t;
2153
2153
  }, [ze]), It = Ke && $.length > 0, Lt = A((e) => e || (D?.rootFolderLabel ?? "Organization"), [D]), Rt = A(() => {
2154
- Z(q.Unpublish);
2154
+ Q(q.Unpublish);
2155
2155
  }, []), zt = A((e) => {
2156
- Tt(e), Z(q.DeleteApiKey);
2156
+ wt(e), Q(q.DeleteApiKey);
2157
2157
  }, []), Bt = A(() => {
2158
- St || (Z(null), Tt(null), Dt(null), kt(null));
2159
- }, [St]), Vt = A(async () => {
2160
- if (!(St || xt == null)) {
2161
- Ct(!0);
2158
+ xt || (Q(null), wt(null), Et(null), Ot(null));
2159
+ }, [xt]), Vt = A(async () => {
2160
+ if (!(xt || bt == null)) {
2161
+ St(!0);
2162
2162
  try {
2163
- switch (xt) {
2163
+ switch (bt) {
2164
2164
  case q.Delete:
2165
2165
  await L?.(e);
2166
2166
  break;
@@ -2171,35 +2171,35 @@ var ht = /* @__PURE__ */ function(e) {
2171
2171
  await me?.(e);
2172
2172
  break;
2173
2173
  case q.Logout:
2174
- Et != null && await xe?.(e, { level: Et });
2174
+ Tt != null && await xe?.(e, { level: Tt });
2175
2175
  break;
2176
2176
  case q.DeleteApiKey:
2177
- wt != null && await xe?.(e, { level: wt });
2177
+ Ct != null && await xe?.(e, { level: Ct });
2178
2178
  break;
2179
2179
  case q.Unpublish: {
2180
- let t = sr($, Ot);
2180
+ let t = sr($, Dt);
2181
2181
  t != null && await ve?.(e, t.segments);
2182
2182
  break;
2183
2183
  }
2184
2184
  }
2185
- Z(null), Tt(null), Dt(null), kt(null), _r.has(xt) && a();
2185
+ Q(null), wt(null), Et(null), Ot(null), _r.has(bt) && a();
2186
2186
  } catch {
2187
- Z(null), Tt(null), Dt(null), kt(null);
2187
+ Q(null), wt(null), Et(null), Ot(null);
2188
2188
  } finally {
2189
- Ct(!1);
2189
+ St(!1);
2190
2190
  }
2191
2191
  }
2192
2192
  }, [
2193
- St,
2194
2193
  xt,
2195
- wt,
2196
- Et,
2194
+ bt,
2195
+ Ct,
2196
+ Tt,
2197
2197
  e,
2198
2198
  L,
2199
2199
  de,
2200
2200
  me,
2201
2201
  ve,
2202
- Ot,
2202
+ Dt,
2203
2203
  $,
2204
2204
  xe,
2205
2205
  a
@@ -2208,7 +2208,7 @@ var ht = /* @__PURE__ */ function(e) {
2208
2208
  if (!t) return;
2209
2209
  let e = (e) => {
2210
2210
  if (e.key === "Escape") {
2211
- if (xt != null) {
2211
+ if (bt != null) {
2212
2212
  Bt();
2213
2213
  return;
2214
2214
  }
@@ -2219,14 +2219,14 @@ var ht = /* @__PURE__ */ function(e) {
2219
2219
  }, [
2220
2220
  t,
2221
2221
  a,
2222
- xt,
2222
+ bt,
2223
2223
  Bt
2224
2224
  ]);
2225
2225
  let Ht = A(() => Re(!0), []), Ut = A(() => {
2226
- Re(!1), Y.reset();
2227
- }, [Y]), Kt = A(async () => {
2228
- await Y.handleSubmit() && Ut();
2229
- }, [Y, Ut]), qt = A(() => {
2226
+ Re(!1), X.reset();
2227
+ }, [X]), Kt = A(async () => {
2228
+ await X.handleSubmit() && Ut();
2229
+ }, [X, Ut]), qt = A(() => {
2230
2230
  let t = !Pe;
2231
2231
  Fe(t), o?.(e.id, t);
2232
2232
  }, [
@@ -2267,7 +2267,7 @@ var ht = /* @__PURE__ */ function(e) {
2267
2267
  V
2268
2268
  ]);
2269
2269
  let Xt = z?.overviewYesLabel ?? "Yes", Zt = z?.overviewNoLabel ?? "No", Qt = z?.ariaLabel ?? "Item details", en = z?.closeAriaLabel ?? "Close", nn = Pe ? z?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : z?.addToFavoritesAriaLabel ?? "Add to favorites", rn = z?.publishTitle ?? "Publish", on = z?.backToDetailsAriaLabel ?? "Back", sn = z?.cancelLabel ?? "Cancel", cn = M(() => {
2270
- switch (xt) {
2270
+ switch (bt) {
2271
2271
  case q.Delete: {
2272
2272
  let t = z?.deleteActionLabel ?? "Delete";
2273
2273
  return {
@@ -2346,7 +2346,7 @@ var ht = /* @__PURE__ */ function(e) {
2346
2346
  };
2347
2347
  }
2348
2348
  case q.DeleteApiKey: {
2349
- let e = z?.deleteActionLabel ?? "Delete", t = wt ?? v.User;
2349
+ let e = z?.deleteActionLabel ?? "Delete", t = Ct ?? v.User;
2350
2350
  return {
2351
2351
  title: e,
2352
2352
  message: (z?.deleteApiKeyConfirmMessage ?? gr)(t),
@@ -2360,24 +2360,24 @@ var ht = /* @__PURE__ */ function(e) {
2360
2360
  default: return null;
2361
2361
  }
2362
2362
  }, [
2363
- xt,
2363
+ bt,
2364
2364
  e.name,
2365
- wt,
2365
+ Ct,
2366
2366
  z,
2367
2367
  $,
2368
2368
  Lt
2369
- ]), ln = cn != null, un = xt === q.Unpublish && sr($, Ot) == null, dn = ln || Le || yt, fn = e.credentials == null ? "" : (z?.credentialsManagementTitle ?? hr)(e.credentials.authenticationType), pn = ln ? {
2369
+ ]), ln = cn != null, un = bt === q.Unpublish && sr($, Dt) == null, dn = ln || Le || vt, fn = e.credentials == null ? "" : (z?.credentialsManagementTitle ?? hr)(e.credentials.authenticationType), pn = ln ? {
2370
2370
  title: cn.title,
2371
- isBackDisabled: St,
2371
+ isBackDisabled: xt,
2372
2372
  onBack: Bt
2373
2373
  } : Le ? {
2374
2374
  title: rn,
2375
- isBackDisabled: Y.isSubmitting,
2375
+ isBackDisabled: X.isSubmitting,
2376
2376
  onBack: Ut
2377
- } : yt ? {
2377
+ } : vt ? {
2378
2378
  title: fn,
2379
2379
  isBackDisabled: !1,
2380
- onBack: jt
2380
+ onBack: At
2381
2381
  } : null, mn = pn?.title ?? Qt;
2382
2382
  return /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("div", {
2383
2383
  style: Me,
@@ -2428,11 +2428,11 @@ var ht = /* @__PURE__ */ function(e) {
2428
2428
  consequences: cn.consequences,
2429
2429
  variant: cn.cardVariant ?? cn.variant,
2430
2430
  messageClassName: Ae,
2431
- children: xt === q.Unpublish && $.length > 1 && /* @__PURE__ */ W(Oe, {
2431
+ children: bt === q.Unpublish && $.length > 1 && /* @__PURE__ */ W(Oe, {
2432
2432
  ariaLabel: z?.unpublishFolderGroupAriaLabel ?? "Published folders",
2433
- value: Ot ?? void 0,
2434
- onChange: kt,
2435
- disabled: St,
2433
+ value: Dt ?? void 0,
2434
+ onChange: Ot,
2435
+ disabled: xt,
2436
2436
  items: $.map((e) => ({
2437
2437
  value: e.key,
2438
2438
  label: Lt(e.key)
@@ -2440,10 +2440,10 @@ var ht = /* @__PURE__ */ function(e) {
2440
2440
  radioClassName: Ae
2441
2441
  })
2442
2442
  }),
2443
- !ln && !Le && yt && /* @__PURE__ */ W(xn, {
2443
+ !ln && !Le && vt && /* @__PURE__ */ W(xn, {
2444
2444
  item: e,
2445
2445
  onLogin: be,
2446
- onRequestLogout: Q,
2446
+ onRequestLogout: Mt,
2447
2447
  onRequestDeleteApiKey: zt,
2448
2448
  texts: z,
2449
2449
  detailsStyles: Se
@@ -2460,24 +2460,24 @@ var ht = /* @__PURE__ */ function(e) {
2460
2460
  history: ze,
2461
2461
  isHistoryLoading: He,
2462
2462
  hasHistoryError: We,
2463
- folderItems: Y.folderItems,
2464
- selectedFolderPath: Y.selectedFolderPath,
2465
- onSelectedFolderPathChange: Y.setSelectedFolderPath,
2466
- onCreateFolder: Y.handleCreateFolder,
2463
+ folderItems: X.folderItems,
2464
+ selectedFolderPath: X.selectedFolderPath,
2465
+ onSelectedFolderPathChange: X.setSelectedFolderPath,
2466
+ onCreateFolder: X.handleCreateFolder,
2467
2467
  expandedPaths: _,
2468
2468
  onExpandedPathsChange: y,
2469
2469
  loadingPaths: b,
2470
- hasExistingPublicationInFolder: Y.hasExistingPublicationInFolder,
2471
- hasWriteAccess: Y.hasWriteAccess,
2472
- isSubmitting: Y.isSubmitting,
2473
- hasSubmitError: Y.hasSubmitError,
2474
- author: Y.author,
2475
- onAuthorChange: Y.setAuthor,
2476
- rules: Y.rules,
2477
- onRulesChange: Y.setRules,
2470
+ hasExistingPublicationInFolder: X.hasExistingPublicationInFolder,
2471
+ hasWriteAccess: X.hasWriteAccess,
2472
+ isSubmitting: X.isSubmitting,
2473
+ hasSubmitError: X.hasSubmitError,
2474
+ author: X.author,
2475
+ onAuthorChange: X.setAuthor,
2476
+ rules: X.rules,
2477
+ onRulesChange: X.setRules,
2478
2478
  ruleSourceOptions: O,
2479
- isRulesLoading: Y.isRulesLoading,
2480
- hasRulesLoadError: Y.hasRulesLoadError,
2479
+ isRulesLoading: X.isRulesLoading,
2480
+ hasRulesLoadError: X.hasRulesLoadError,
2481
2481
  labels: D,
2482
2482
  styles: { colors: {
2483
2483
  summaryVersionTagBorder: B?.versionTagBorder,
@@ -2507,7 +2507,7 @@ var ht = /* @__PURE__ */ function(e) {
2507
2507
  onDownload: oe,
2508
2508
  isDownloadVisible: se,
2509
2509
  isDownloadPrimary: F,
2510
- onDelete: L ? Mt : void 0,
2510
+ onDelete: L ? jt : void 0,
2511
2511
  onUnshare: de ? Pt : void 0,
2512
2512
  isUnshareVisible: fe,
2513
2513
  onRevokeShare: me ? Ft : void 0,
@@ -2515,8 +2515,8 @@ var ht = /* @__PURE__ */ function(e) {
2515
2515
  isRevokeShareVisible: ge,
2516
2516
  onLogin: be,
2517
2517
  onLogout: xe,
2518
- onOpenCredentialsManagement: At,
2519
- onRequestLogout: Q,
2518
+ onOpenCredentialsManagement: kt,
2519
+ onRequestLogout: Mt,
2520
2520
  texts: z,
2521
2521
  detailsStyles: Se,
2522
2522
  isReadonly: i
@@ -2620,7 +2620,7 @@ var ht = /* @__PURE__ */ function(e) {
2620
2620
  confirmLabel: cn.confirmLabel,
2621
2621
  cancelLabel: sn,
2622
2622
  variant: cn.variant,
2623
- isLoading: St,
2623
+ isLoading: xt,
2624
2624
  isConfirmDisabled: un,
2625
2625
  loadingStatusLabel: cn.loadingStatusLabel,
2626
2626
  onConfirm: Vt,
@@ -2628,9 +2628,9 @@ var ht = /* @__PURE__ */ function(e) {
2628
2628
  }),
2629
2629
  !ln && Le && /* @__PURE__ */ W(ut, {
2630
2630
  version: e.version,
2631
- hasExistingPublicationInFolder: Y.hasExistingPublicationInFolder,
2632
- isSubmitDisabled: X.isSubmitDisabled,
2633
- isSubmitLoading: X.isSubmitLoading,
2631
+ hasExistingPublicationInFolder: X.hasExistingPublicationInFolder,
2632
+ isSubmitDisabled: Z.isSubmitDisabled,
2633
+ isSubmitLoading: Z.isSubmitLoading,
2634
2634
  onCancel: Ut,
2635
2635
  onSubmit: Kt,
2636
2636
  labels: D
@@ -2684,13 +2684,13 @@ var ht = /* @__PURE__ */ function(e) {
2684
2684
  }),
2685
2685
  /* @__PURE__ */ W("div", {
2686
2686
  className: "flex min-w-0 flex-1 flex-col items-start gap-1",
2687
- children: /* @__PURE__ */ W(At, {
2687
+ children: /* @__PURE__ */ W(kt, {
2688
2688
  icon: e.iconUrl,
2689
2689
  type: e.type,
2690
2690
  name: e.name,
2691
2691
  version: e.version,
2692
2692
  lastUsed: e.lastUsed,
2693
- size: _t.LG,
2693
+ size: Y.LG,
2694
2694
  query: l,
2695
2695
  className: "min-w-0 self-stretch",
2696
2696
  styles: {
@@ -2701,7 +2701,7 @@ var ht = /* @__PURE__ */ function(e) {
2701
2701
  lastUsedClassName: c
2702
2702
  }
2703
2703
  },
2704
- iconOverlay: /* @__PURE__ */ W(Mt, {
2704
+ iconOverlay: /* @__PURE__ */ W(jt, {
2705
2705
  credentials: e.credentials,
2706
2706
  loggedOutLabel: p
2707
2707
  })
@@ -2738,7 +2738,7 @@ var ht = /* @__PURE__ */ function(e) {
2738
2738
  "--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
2739
2739
  "--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
2740
2740
  "--cat-fav-page-nav-bg": o?.colors?.pageNavBackground
2741
- }), v = M(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = P(1), x = yt(), S = x * xr, C = (y - 1) * S, w = M(() => v.slice(C, C + S), [
2741
+ }), v = M(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = P(1), x = vt(), S = x * xr, C = (y - 1) * S, w = M(() => v.slice(C, C + S), [
2742
2742
  v,
2743
2743
  C,
2744
2744
  S
@@ -2949,7 +2949,7 @@ var ht = /* @__PURE__ */ function(e) {
2949
2949
  size: 36,
2950
2950
  initialsName: e.name,
2951
2951
  styles: { badgeClassName: "rounded-[10px]" }
2952
- }), /* @__PURE__ */ W(Mt, {
2952
+ }), /* @__PURE__ */ W(jt, {
2953
2953
  credentials: e.credentials,
2954
2954
  loggedOutLabel: t?.credentialsBadgeLoggedOutLabel
2955
2955
  })]
@@ -3068,7 +3068,7 @@ var ht = /* @__PURE__ */ function(e) {
3068
3068
  "--cat-list-selected-bg": h?.selectedRowBackground,
3069
3069
  "--cat-list-selected-check": h?.selectedRowCheckIcon,
3070
3070
  ...l == null ? {} : { "--list-header-sticky-top": `${l}px` }
3071
- }, _ = N(null), { containerRef: v, startRow: y, endRow: b } = Et(e.length, Pr), x = M(() => e.slice(y, b), [
3071
+ }, _ = N(null), { containerRef: v, startRow: y, endRow: b } = Tt(e.length, Pr), x = M(() => e.slice(y, b), [
3072
3072
  e,
3073
3073
  y,
3074
3074
  b
@@ -3308,7 +3308,7 @@ var ht = /* @__PURE__ */ function(e) {
3308
3308
  divider: "_divider_mh952_5"
3309
3309
  }, Vr = ({ totalCount: e, viewMode: t, onViewModeChange: n, title: r = "Browse", browseHeaderRenderer: i, styles: a, query: o, onQueryChange: s, searchPlaceholder: c, gridViewLabel: l = "Grid view", listViewLabel: u = "List view", viewToggleLabel: d = "View mode", sortKey: f, sortOptions: p, onSortChange: m, sortLabel: h = "Sort", filters: g, onFiltersChange: _, filterValues: v, isMyAppsActive: y, onMyAppsChange: b, filterFromLabel: x, filterMyAppsLabel: S, filterTopicsLabel: C }) => {
3310
3310
  let w = a?.typography?.titleClassName ?? "dial-body-semi-text", T = a?.typography?.countClassName ?? "dial-tiny-semi-text", D = M(() => [{
3311
- value: Y.Grid,
3311
+ value: X.Grid,
3312
3312
  icon: /* @__PURE__ */ W(Ye, {
3313
3313
  size: L.SM,
3314
3314
  "aria-hidden": !0,
@@ -3316,7 +3316,7 @@ var ht = /* @__PURE__ */ function(e) {
3316
3316
  }),
3317
3317
  "aria-label": l
3318
3318
  }, {
3319
- value: Y.Cards,
3319
+ value: X.Cards,
3320
3320
  icon: /* @__PURE__ */ W(Xe, {
3321
3321
  size: L.SM,
3322
3322
  "aria-hidden": !0,
@@ -3441,8 +3441,8 @@ var ht = /* @__PURE__ */ function(e) {
3441
3441
  }),
3442
3442
  onClick: n
3443
3443
  });
3444
- }, Gr = 3, Kr = 300, qr = ({ items: e, tabs: n, topicOptions: a, favorites: o, titles: s, browseHeaderRenderer: c, onToggleFavorite: d, isFavoriteVisible: m, columnVisibility: g, onUseInChat: v, isPrimaryActionVisible: y, onShare: b, isPublishVisible: x, isPublishPrimary: S, getPublishHistory: C, publishFolderItems: w, publishExpandedPaths: T, onPublishExpandedPathsChange: E, publishLoadingPaths: D, hasPublishWriteAccess: O, publishDefaultAuthor: ee, onPublish: te, onPublishSuccess: ne, onPublishError: re, onCreatePublishFolder: ie, publishLabels: ae, ruleSourceOptions: oe, onFetchExistingRules: se, shareOverlay: F, isShareVisible: ce, isSharePrimary: le, onFetchDetails: I, onEdit: ue, onDownload: L, isDownloadVisible: R, isDownloadPrimary: de, onLoadContentFile: fe, onLoadContentFilePreview: pe, renderContentFilePreview: me, onDelete: he, onUnshare: ge, isUnshareVisible: _e, onRevokeShare: ve, onFetchRecipientsCount: ye, isRevokeShareVisible: be, onUnpublish: xe, isUnpublishVisible: z, onLogin: Se, onLogout: Ce, onCreateClick: we, createOptions: Te, hideCreateButton: Ee = !1, hidePageTitle: De = !1, isReadonly: Oe = !1, initialViewMode: ke = Y.Grid, isFullWidth: Ae = !1, selectedItemId: je, onCardClick: B, isLoading: Pe, styles: Fe, detailsTexts: V, detailsLimitsFooterNote: Ie, initialDetailsItemId: Le, sortKey: Re, onSortChange: ze, filterTopics: Be, onFilterTopicsChange: Ve, isMyAppsActive: He, onMyAppsActiveChange: Ue, activeTab: We, onActiveTabChange: Ge, renderEmptyState: Ke }) => {
3445
- let { typography: qe } = Fe ?? {}, Je = bt(Fe), Ye = s?.pageTitle ?? "Catalog", Xe = s?.createLabel ?? "Create", Ze = s?.favoritesTitle ?? "Your favorites", Qe = s?.browseTitle ?? "Browse", $e = s?.searchPlaceholder ?? "Search models, tools, agents…", et = s?.noResultsTitle ?? ((e) => `No results for "${e}"`), tt = s?.featuredLabel ?? "Featured", nt = s?.gridViewLabel ?? "Grid view", rt = s?.listViewLabel ?? "List view", H = s?.viewToggleLabel ?? "View mode", it = s?.ariaLabel ?? "Catalog", at = s?.sortLabel ?? "Sort", ot = [
3444
+ }, Gr = 3, Kr = 300, qr = ({ items: e, tabs: n, topicOptions: a, favorites: o, titles: s, browseHeaderRenderer: c, onToggleFavorite: d, isFavoriteVisible: m, columnVisibility: g, onUseInChat: v, isPrimaryActionVisible: y, onShare: b, isPublishVisible: x, isPublishPrimary: S, getPublishHistory: C, publishFolderItems: w, publishExpandedPaths: T, onPublishExpandedPathsChange: E, publishLoadingPaths: D, hasPublishWriteAccess: O, publishDefaultAuthor: ee, onPublish: te, onPublishSuccess: ne, onPublishError: re, onCreatePublishFolder: ie, publishLabels: ae, ruleSourceOptions: oe, onFetchExistingRules: se, shareOverlay: F, isShareVisible: ce, isSharePrimary: le, onFetchDetails: I, onEdit: ue, onDownload: L, isDownloadVisible: R, isDownloadPrimary: de, onLoadContentFile: fe, onLoadContentFilePreview: pe, renderContentFilePreview: me, onDelete: he, onUnshare: ge, isUnshareVisible: _e, onRevokeShare: ve, onFetchRecipientsCount: ye, isRevokeShareVisible: be, onUnpublish: xe, isUnpublishVisible: z, onLogin: Se, onLogout: Ce, onCreateClick: we, createOptions: Te, hideCreateButton: Ee = !1, hidePageTitle: De = !1, isReadonly: Oe = !1, initialViewMode: ke = X.Grid, isFullWidth: Ae = !1, selectedItemId: je, onCardClick: B, isLoading: Pe, styles: Fe, detailsTexts: V, detailsLimitsFooterNote: Ie, initialDetailsItemId: Le, sortKey: Re, onSortChange: ze, filterTopics: Be, onFilterTopicsChange: Ve, isMyAppsActive: He, onMyAppsActiveChange: Ue, activeTab: We, onActiveTabChange: Ge, renderEmptyState: Ke }) => {
3445
+ let { typography: qe } = Fe ?? {}, Je = yt(Fe), Ye = s?.pageTitle ?? "Catalog", Xe = s?.createLabel ?? "Create", Ze = s?.favoritesTitle ?? "Your favorites", Qe = s?.browseTitle ?? "Browse", $e = s?.searchPlaceholder ?? "Search models, tools, agents…", et = s?.noResultsTitle ?? ((e) => `No results for "${e}"`), tt = s?.featuredLabel ?? "Featured", nt = s?.gridViewLabel ?? "Grid view", rt = s?.listViewLabel ?? "List view", H = s?.viewToggleLabel ?? "View mode", it = s?.ariaLabel ?? "Catalog", at = s?.sortLabel ?? "Sort", ot = [
3446
3446
  {
3447
3447
  value: u.RecentlyUpdated,
3448
3448
  label: s?.sortRecentlyUpdatedLabel ?? "Recently Updated"
@@ -3455,108 +3455,110 @@ var ht = /* @__PURE__ */ function(e) {
3455
3455
  value: u.NameAZ,
3456
3456
  label: s?.sortNameAZLabel ?? "Name A-Z"
3457
3457
  }
3458
- ], [st, ct] = P(""), [lt, ut] = P(ke), [dt, ft] = P(ke === Y.Cards), [pt, mt] = P(u.RecentlyUpdated), [ht, K] = P(/* @__PURE__ */ new Set()), [gt, q] = P(!1), J = Re ?? pt, _t = Be ?? ht, X = He ?? gt, vt = A((e) => {
3458
+ ], [st, ct] = P(""), [lt, ut] = P(ke), [dt, ft] = P(ke === X.Cards), [pt, mt] = P(u.RecentlyUpdated), [ht, K] = P(/* @__PURE__ */ new Set()), [gt, q] = P(!1), J = Re ?? pt, Y = Be ?? ht, Z = He ?? gt, _t = A((e) => {
3459
3459
  let t = e;
3460
3460
  mt(t), ze?.(t);
3461
- }, [ze]), yt = A((e) => {
3461
+ }, [ze]), vt = A((e) => {
3462
3462
  K(e), Ve?.(e);
3463
- }, [Ve]), xt = A((e) => {
3463
+ }, [Ve]), bt = A((e) => {
3464
3464
  q(e), Ue?.(e);
3465
- }, [Ue]), Z = M(() => e.filter((e) => !e.isHidden), [e]), St = M(() => a ?? p(Z), [a, Z]), Ct = M(() => n ?? h(Z, s?.tabLabels), [
3465
+ }, [Ue]), Q = M(() => e.filter((e) => !e.isHidden), [e]), xt = M(() => a ?? p(Q), [a, Q]), St = M(() => n ?? h(Q, s?.tabLabels), [
3466
3466
  n,
3467
- Z,
3467
+ Q,
3468
3468
  s?.tabLabels
3469
- ]), wt = Ct[0]?.id ?? "", [Tt, Et] = P(wt);
3469
+ ]), Ct = St[0]?.id ?? "", [wt, Tt] = P(Ct);
3470
3470
  j(() => {
3471
- Et((e) => e || wt);
3472
- }, [wt]);
3473
- let Dt = We ?? Tt, Ot = A((e) => {
3474
- Et(e), Ge?.(e);
3475
- }, [Ge]), [kt, At] = P(o.length > 0);
3471
+ Tt((e) => e || Ct);
3472
+ }, [Ct]);
3473
+ let Et = We ?? wt, Dt = A((e) => {
3474
+ Tt(e), Ge?.(e);
3475
+ }, [Ge]), [Ot, kt] = P(o.length > 0);
3476
3476
  j(() => {
3477
- o.length > 0 && !kt && At(!0);
3478
- }, [o.length, kt]);
3479
- let jt = A(() => {
3480
- At(!1);
3481
- }, []), Mt = kt && o.length === 0, [Q, Nt] = P(null), [Pt, Ft] = P(!1), [$, It] = P(void 0), [Lt, Rt] = P(!1), zt = N(null), Bt = A(async (e) => {
3482
- if (zt.current = e.id, I) {
3477
+ o.length > 0 && !Ot && kt(!0);
3478
+ }, [o.length, Ot]);
3479
+ let At = A(() => {
3480
+ kt(!1);
3481
+ }, []), jt = Ot && o.length === 0, [Mt, Nt] = P(null), [Pt, Ft] = P(!1), [$, It] = P(void 0), [Lt, Rt] = P(!1), zt = N(null), Bt = N(0), Vt = A(async (e) => {
3482
+ zt.current = e.id;
3483
+ let t = ++Bt.current;
3484
+ if (I) {
3483
3485
  Rt(!0);
3484
3486
  try {
3485
- let t = await I(e);
3486
- return zt.current === e.id && It(t), t;
3487
+ let n = await I(e);
3488
+ return Bt.current === t && It(n), n;
3487
3489
  } finally {
3488
- zt.current === e.id && Rt(!1);
3490
+ Bt.current === t && Rt(!1);
3489
3491
  }
3490
3492
  }
3491
- }, [I]), Vt = A(async (e) => (Nt(e), It(void 0), Bt(e)), [Bt]), Ut = A(async (e, t) => {
3493
+ }, [I]), Ut = A(async (e) => (Nt(e), It(void 0), Vt(e)), [Vt]), Wt = A(async (e, t) => {
3492
3494
  for (let n = 0; n < Gr; n++) {
3493
- if (zt.current !== e.id || t(await Bt(e))) return;
3495
+ if (zt.current !== e.id || t(await Vt(e))) return;
3494
3496
  n < Gr - 1 && await f(Kr);
3495
3497
  }
3496
- }, [Bt]), Wt = N(null);
3498
+ }, [Vt]), Gt = N(null);
3497
3499
  j(() => {
3498
3500
  if (!Le) {
3499
- Wt.current = null;
3501
+ Gt.current = null;
3500
3502
  return;
3501
3503
  }
3502
- if (Wt.current === Le) return;
3504
+ if (Gt.current === Le) return;
3503
3505
  let t = e.find((e) => e.id === Le);
3504
- t && (Wt.current = Le, Vt(t));
3506
+ t && (Gt.current = Le, Ut(t));
3505
3507
  }, [
3506
3508
  Le,
3507
3509
  e,
3508
- Vt
3510
+ Ut
3509
3511
  ]), j(() => {
3510
- if (Q == null) return;
3511
- let t = e.find((e) => e.id === Q.id);
3512
- t && t !== Q && Nt(t);
3513
- }, [e, Q]);
3514
- let Gt = A(async (e, n) => {
3515
- await Se?.(e, n), I && await Ut(e, (e) => t(e?.credentials, n.level));
3512
+ if (Mt == null) return;
3513
+ let t = e.find((e) => e.id === Mt.id);
3514
+ t && t !== Mt && Nt(t);
3515
+ }, [e, Mt]);
3516
+ let Kt = A(async (e, n) => {
3517
+ await Se?.(e, n), I && await Wt(e, (e) => t(e?.credentials, n.level));
3516
3518
  }, [
3517
3519
  Se,
3518
3520
  I,
3519
- Ut
3520
- ]), Kt = A(async (e, n) => {
3521
- await Ce?.(e, n), I && await Ut(e, (e) => !t(e?.credentials, n.level));
3521
+ Wt
3522
+ ]), qt = A(async (e, n) => {
3523
+ await Ce?.(e, n), I && await Wt(e, (e) => !t(e?.credentials, n.level));
3522
3524
  }, [
3523
3525
  Ce,
3524
3526
  I,
3525
- Ut
3526
- ]), qt = A(() => {
3527
- Ft(!1), zt.current = null, setTimeout(() => {
3527
+ Wt
3528
+ ]), Jt = A(() => {
3529
+ Ft(!1), zt.current = null, Bt.current += 1, setTimeout(() => {
3528
3530
  Nt(null), It(void 0), Rt(!1);
3529
3531
  }, 300);
3530
- }, []), Jt = M(() => {
3531
- if (Q == null) return null;
3532
- if ($ == null) return Q;
3532
+ }, []), Yt = M(() => {
3533
+ if (Mt == null) return null;
3534
+ if ($ == null) return Mt;
3533
3535
  let { credentials: e, ...t } = $;
3534
3536
  return {
3535
- ...Q,
3537
+ ...Mt,
3536
3538
  details: t,
3537
- credentials: e ?? Q.credentials
3539
+ credentials: e ?? Mt.credentials
3538
3540
  };
3539
- }, [Q, $]), Yt = M(() => r(Z, J), [Z, J]), Xt = M(() => i(Yt, st), [Yt, st]), Zt = M(() => _t.size > 0 ? _(Xt, _t) : Xt, [Xt, _t]), Qt = M(() => X ? l(Zt) : Zt, [Zt, X]), $t = M(() => Dt ? Qt.filter((e) => e.type === Dt) : Qt, [Qt, Dt]), en = Q != null && o.some((e) => e.id === Q.id);
3541
+ }, [Mt, $]), Xt = M(() => r(Q, J), [Q, J]), Zt = M(() => i(Xt, st), [Xt, st]), Qt = M(() => Y.size > 0 ? _(Zt, Y) : Zt, [Zt, Y]), $t = M(() => Z ? l(Qt) : Qt, [Qt, Z]), en = M(() => Et ? $t.filter((e) => e.type === Et) : $t, [$t, Et]), tn = Mt != null && o.some((e) => e.id === Mt.id);
3540
3542
  j(() => {
3541
- if (Q == null) return;
3543
+ if (Mt == null) return;
3542
3544
  let e = requestAnimationFrame(() => Ft(!0));
3543
3545
  return () => cancelAnimationFrame(e);
3544
- }, [Q]);
3545
- let tn = A((e) => {
3546
- e === Y.Cards && ft(!0), ut(e);
3547
- }, []), nn = !Ee && !Oe, rn = kt && !Oe, an = st ? et(st) : "No items", on = M(() => ({
3548
- noResultsTitle: an,
3546
+ }, [Mt]);
3547
+ let nn = A((e) => {
3548
+ e === X.Cards && ft(!0), ut(e);
3549
+ }, []), rn = !Ee && !Oe, an = Ot && !Oe, on = st ? et(st) : "No items", sn = M(() => ({
3550
+ noResultsTitle: on,
3549
3551
  featuredLabel: tt,
3550
3552
  credentialsBadgeLoggedOutLabel: V?.credentialsBadgeLoggedOutLabel
3551
3553
  }), [
3552
- an,
3554
+ on,
3553
3555
  tt,
3554
3556
  V?.credentialsBadgeLoggedOutLabel
3555
- ]), sn = !Pe && $t.length === 0 ? Ke?.({
3557
+ ]), cn = !Pe && en.length === 0 ? Ke?.({
3556
3558
  query: st,
3557
- activeTab: Dt,
3558
- hasTopicFilters: _t.size > 0,
3559
- isMyAppsActive: X
3559
+ activeTab: Et,
3560
+ hasTopicFilters: Y.size > 0,
3561
+ isMyAppsActive: Z
3560
3562
  }) : void 0;
3561
3563
  return Pe ? /* @__PURE__ */ W("div", {
3562
3564
  className: "flex size-full min-h-0 flex-1 items-center justify-center",
@@ -3566,14 +3568,14 @@ var ht = /* @__PURE__ */ function(e) {
3566
3568
  className: k("flex size-full min-h-0 flex-1 flex-col", Ur.root),
3567
3569
  style: Je,
3568
3570
  children: [
3569
- (!De || nn) && /* @__PURE__ */ W("div", {
3571
+ (!De || rn) && /* @__PURE__ */ W("div", {
3570
3572
  className: k("shrink-0", Ur.heading),
3571
3573
  children: /* @__PURE__ */ G("div", {
3572
3574
  className: "flex h-[64px] w-full items-center justify-between px-8",
3573
3575
  children: [!De && /* @__PURE__ */ W("h1", {
3574
3576
  className: k(qe?.pageHeadingFontClassName ?? "dial-display2-text", Ur.headingTitle),
3575
3577
  children: Ye
3576
- }), nn && /* @__PURE__ */ W(Wr, {
3578
+ }), rn && /* @__PURE__ */ W(Wr, {
3577
3579
  label: Xe,
3578
3580
  options: Te,
3579
3581
  onClick: we
@@ -3583,7 +3585,7 @@ var ht = /* @__PURE__ */ function(e) {
3583
3585
  /* @__PURE__ */ G("div", {
3584
3586
  className: "flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto overflow-x-hidden",
3585
3587
  children: [
3586
- rn && /* @__PURE__ */ W("div", {
3588
+ an && /* @__PURE__ */ W("div", {
3587
3589
  className: "w-full px-8",
3588
3590
  children: /* @__PURE__ */ W(Cr, {
3589
3591
  items: o,
@@ -3591,9 +3593,9 @@ var ht = /* @__PURE__ */ function(e) {
3591
3593
  title: Ze,
3592
3594
  onToggleFavorite: d,
3593
3595
  isFavoriteVisible: m,
3594
- onItemClick: B ?? Vt,
3595
- isLeaving: Mt,
3596
- onExitComplete: jt,
3596
+ onItemClick: B ?? Ut,
3597
+ isLeaving: jt,
3598
+ onExitComplete: At,
3597
3599
  selectedItemId: je,
3598
3600
  credentialsBadgeLoggedOutLabel: V?.credentialsBadgeLoggedOutLabel
3599
3601
  })
@@ -3601,9 +3603,9 @@ var ht = /* @__PURE__ */ function(e) {
3601
3603
  /* @__PURE__ */ W("div", {
3602
3604
  className: "w-full px-4 pt-6",
3603
3605
  children: /* @__PURE__ */ W(Hr, {
3604
- totalCount: Qt.length,
3606
+ totalCount: $t.length,
3605
3607
  viewMode: lt,
3606
- onViewModeChange: tn,
3608
+ onViewModeChange: nn,
3607
3609
  sortKey: J,
3608
3610
  query: st,
3609
3611
  onQueryChange: ct,
@@ -3614,58 +3616,58 @@ var ht = /* @__PURE__ */ function(e) {
3614
3616
  listViewLabel: rt,
3615
3617
  viewToggleLabel: H,
3616
3618
  sortOptions: ot,
3617
- onSortChange: vt,
3619
+ onSortChange: _t,
3618
3620
  sortLabel: at,
3619
- filters: _t,
3620
- onFiltersChange: yt,
3621
- filterValues: St,
3622
- isMyAppsActive: X,
3623
- onMyAppsChange: xt,
3621
+ filters: Y,
3622
+ onFiltersChange: vt,
3623
+ filterValues: xt,
3624
+ isMyAppsActive: Z,
3625
+ onMyAppsChange: bt,
3624
3626
  filterFromLabel: s?.filterFromLabel,
3625
3627
  filterMyAppsLabel: s?.filterMyAppsLabel,
3626
3628
  filterTopicsLabel: s?.filterTopicsLabel
3627
3629
  })
3628
3630
  }),
3629
- Ct.length > 1 && /* @__PURE__ */ W("div", {
3631
+ St.length > 1 && /* @__PURE__ */ W("div", {
3630
3632
  className: "min-w-0 shrink-0 overflow-x-auto px-8",
3631
3633
  children: /* @__PURE__ */ W(Ne, {
3632
- tabs: Ct.map((e) => ({
3634
+ tabs: St.map((e) => ({
3633
3635
  id: e.id,
3634
3636
  label: typeof e.label == "string" ? e.label : String(e.label),
3635
- count: Qt.filter((t) => t.type === e.id).length
3637
+ count: $t.filter((t) => t.type === e.id).length
3636
3638
  })),
3637
- activeTabId: Dt,
3638
- onTabChange: Ot
3639
+ activeTabId: Et,
3640
+ onTabChange: Dt
3639
3641
  })
3640
3642
  }),
3641
3643
  /* @__PURE__ */ W("div", {
3642
- className: k($t.length > 0 ? ["min-h-full w-full px-8 py-6", !Ae && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", $t.length === 0 && "px-8 py-6"),
3643
- children: sn ?? /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("div", {
3644
- className: k($t.length > 0 ? "pb-8" : "size-full flex-1", lt !== Y.Grid && "hidden"),
3644
+ className: k(en.length > 0 ? ["min-h-full w-full px-8 py-6", !Ae && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", en.length === 0 && "px-8 py-6"),
3645
+ children: cn ?? /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("div", {
3646
+ className: k(en.length > 0 ? "pb-8" : "size-full flex-1", lt !== X.Grid && "hidden"),
3645
3647
  children: /* @__PURE__ */ W(Ht, {
3646
- items: $t,
3648
+ items: en,
3647
3649
  query: st,
3648
3650
  onToggleFavorite: d,
3649
3651
  isFavoriteVisible: m,
3650
- onItemClick: B ?? Vt,
3651
- titles: on,
3652
+ onItemClick: B ?? Ut,
3653
+ titles: sn,
3652
3654
  selectedItemId: je,
3653
3655
  isReadonly: Oe,
3654
3656
  isFullWidth: Ae,
3655
3657
  featuredChipStyle: Fe?.colors?.featuredChipStyle
3656
3658
  })
3657
3659
  }), dt && /* @__PURE__ */ W("div", {
3658
- className: k("pb-8", lt !== Y.Cards && "hidden", $t.length === 0 && "h-full"),
3660
+ className: k("pb-8", lt !== X.Cards && "hidden", en.length === 0 && "h-full"),
3659
3661
  children: /* @__PURE__ */ W(Fr, {
3660
- type: Dt,
3661
- items: $t,
3662
+ type: Et,
3663
+ items: en,
3662
3664
  query: st,
3663
3665
  ariaLabel: it,
3664
- emptyStateTitle: an,
3666
+ emptyStateTitle: on,
3665
3667
  onToggleFavorite: d,
3666
3668
  isFavoriteVisible: m,
3667
3669
  columnVisibility: g,
3668
- onItemClick: B ?? Vt,
3670
+ onItemClick: B ?? Ut,
3669
3671
  stickyHeaderTop: 0,
3670
3672
  selectedItemId: je,
3671
3673
  credentialsBadgeLoggedOutLabel: V?.credentialsBadgeLoggedOutLabel,
@@ -3675,13 +3677,13 @@ var ht = /* @__PURE__ */ function(e) {
3675
3677
  })
3676
3678
  ]
3677
3679
  }),
3678
- Jt != null && /* @__PURE__ */ W(vr, {
3679
- item: Jt,
3680
+ Yt != null && /* @__PURE__ */ W(vr, {
3681
+ item: Yt,
3680
3682
  isOpen: Pt,
3681
- isStarred: en,
3683
+ isStarred: tn,
3682
3684
  isDetailsLoading: Lt,
3683
3685
  isReadonly: Oe,
3684
- onClose: qt,
3686
+ onClose: Jt,
3685
3687
  onToggleFavorite: d,
3686
3688
  isFavoriteVisible: m,
3687
3689
  onUseInChat: v,
@@ -3721,8 +3723,8 @@ var ht = /* @__PURE__ */ function(e) {
3721
3723
  isRevokeShareVisible: be,
3722
3724
  onUnpublish: xe,
3723
3725
  isUnpublishVisible: z,
3724
- onLogin: Gt,
3725
- onLogout: Kt,
3726
+ onLogin: Kt,
3727
+ onLogout: qt,
3726
3728
  texts: V,
3727
3729
  limitsFooterNote: Ie,
3728
3730
  styles: { colors: { featuredChipStyle: Fe?.colors?.featuredChipStyle } }
@@ -3731,4 +3733,4 @@ var ht = /* @__PURE__ */ function(e) {
3731
3733
  });
3732
3734
  };
3733
3735
  //#endregion
3734
- export { At as AppIdentity, Bt as Card, Ht as CardGrid, Vt as CardRowRenderer, qr as Catalog, X as CatalogContentNodeType, vt as CatalogContentPreviewType, K as CatalogDetailsTab, gt as CatalogLimitStatus, u as CatalogSortKey, Y as CatalogViewMode, ht as CodeLanguage, zn as ContentTab, s as CredentialStatus, Mt as CredentialsBadge, o as CredentialsBadgeState, v as CredentialsLevel, y as CredentialsUiState, _t as DeploymentSize, q as DetailsConfirmationKind, J as DetailsConfirmationVariant, vr as DetailsPanel, br as FavoriteCard, Cr as Favorites, zr as Filter, rn as InfoCard, Fr as ListView, Hr as Toolbar, n as ToolsetAuthenticationType, $ as TopicTag, h as buildCatalogTabs, i as filterCatalogItems, g as getCredentialsBadgeState, m as getCredentialsUiState, c as getSignedInLevel, p as getTopicOptions, r as sortCatalogItems, yt as useFavColumns, Dt as useScrollVirtualizer };
3736
+ export { kt as AppIdentity, Bt as Card, Ht as CardGrid, Vt as CardRowRenderer, qr as Catalog, Z as CatalogContentNodeType, _t as CatalogContentPreviewType, K as CatalogDetailsTab, gt as CatalogLimitStatus, u as CatalogSortKey, X as CatalogViewMode, ht as CodeLanguage, zn as ContentTab, s as CredentialStatus, jt as CredentialsBadge, o as CredentialsBadgeState, v as CredentialsLevel, y as CredentialsUiState, Y as DeploymentSize, q as DetailsConfirmationKind, J as DetailsConfirmationVariant, vr as DetailsPanel, br as FavoriteCard, Cr as Favorites, zr as Filter, rn as InfoCard, Fr as ListView, Hr as Toolbar, n as ToolsetAuthenticationType, $ as TopicTag, h as buildCatalogTabs, i as filterCatalogItems, g as getCredentialsBadgeState, m as getCredentialsUiState, c as getSignedInLevel, p as getTopicOptions, r as sortCatalogItems, vt as useFavColumns, Et as useScrollVirtualizer };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-catalog",
3
3
  "description": "Marketplace catalog component for browsing models, tools, and assistants with search, filter, and sort",
4
- "version": "1.2.0-dev.28",
4
+ "version": "1.2.0-dev.34",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "sideEffects": [
@@ -28,11 +28,11 @@
28
28
  "dependencies": {
29
29
  "@tabler/icons-react": "^3.44.0",
30
30
  "ag-grid-community": "^35.3.0",
31
- "@epam/ai-dial-publish-panel": "1.2.0-dev.28"
31
+ "@epam/ai-dial-publish-panel": "1.2.0-dev.34"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": "^19.2.8",
35
- "@epam/ai-dial-chat-shared": "1.2.0-dev.28",
35
+ "@epam/ai-dial-chat-shared": "1.2.0-dev.34",
36
36
  "@epam/ai-dial-ui-kit": "^0.14.2"
37
37
  },
38
38
  "repository": {