@epam/ai-dial-catalog 1.1.7 → 1.1.9

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
@@ -17,42 +17,44 @@ 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
- }({}), Y = /* @__PURE__ */ function(e) {
20
+ }({}), _t = /* @__PURE__ */ function(e) {
21
21
  return e.SM = "sm", e.LG = "lg", e;
22
- }({}), X = /* @__PURE__ */ function(e) {
22
+ }({}), Y = /* @__PURE__ */ function(e) {
23
23
  return e.Grid = "grid", e.Cards = "cards", e;
24
- }({}), Z = /* @__PURE__ */ function(e) {
24
+ }({}), vt = /* @__PURE__ */ function(e) {
25
+ return e.Inline = "inline", e.Stacked = "stacked", e;
26
+ }({}), yt = /* @__PURE__ */ function(e) {
25
27
  return e.File = "file", e.Folder = "folder", e;
26
- }({}), _t = /* @__PURE__ */ function(e) {
28
+ }({}), bt = /* @__PURE__ */ function(e) {
27
29
  return e.Markdown = "markdown", e.Text = "text", e.Image = "image", e.Unsupported = "unsupported", e;
28
- }({}), vt = () => {
30
+ }({}), xt = () => {
29
31
  let [e, t] = P(() => window.innerWidth);
30
32
  return j(() => {
31
33
  let e = () => t(window.innerWidth);
32
34
  return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
33
35
  }, []), e >= 1024 ? 4 : e >= 640 ? 2 : 1;
34
- }, yt = (e) => {
36
+ }, St = (e) => {
35
37
  let { colors: t } = e ?? {};
36
38
  return ie({
37
39
  "--cat-bg": t?.background,
38
40
  "--cat-heading-title-text": t?.headingTitleText
39
41
  });
40
- }, bt = 1180, Q = (e) => e >= 1280 ? 4 : e >= 966 ? 3 : e >= 620 ? 2 : 1, xt = (e) => {
42
+ }, X = 1180, Z = (e) => e >= 1280 ? 4 : e >= 966 ? 3 : e >= 620 ? 2 : 1, Ct = (e) => {
41
43
  if (!e || e === document.body) return document.documentElement;
42
44
  let { overflow: t, overflowY: n } = getComputedStyle(e);
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
+ return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : Ct(e.parentElement);
46
+ }, wt = 10, Tt = 10, Et = 30, Dt = (e, t, n = wt) => {
45
47
  let r = N(null), [i, a] = P({
46
48
  start: 0,
47
- end: wt
49
+ end: Et
48
50
  });
49
51
  j(() => {
50
52
  let i = r.current;
51
53
  if (!i) return;
52
- let o = xt(i.parentElement), s = () => {
54
+ let o = Ct(i.parentElement), s = () => {
53
55
  let r = o.clientHeight;
54
56
  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) / Ct) * Ct), p = Math.min(e, Math.ceil((u + d + n) / Ct) * Ct);
57
+ 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) / Tt) * Tt), p = Math.min(e, Math.ceil((u + d + n) / Tt) * Tt);
56
58
  a((e) => e.start === f && e.end === p ? e : {
57
59
  start: f,
58
60
  end: p
@@ -68,15 +70,15 @@ var ht = /* @__PURE__ */ function(e) {
68
70
  t,
69
71
  n
70
72
  ]);
71
- let o = Math.max(0, Math.floor((e - 1) / Ct) * Ct), s = Math.min(i.start, o);
73
+ let o = Math.max(0, Math.floor((e - 1) / Tt) * Tt), s = Math.min(i.start, o);
72
74
  return {
73
75
  containerRef: r,
74
76
  startRow: s,
75
- endRow: Math.min(e, Math.max(i.end, s + Ct))
77
+ endRow: Math.min(e, Math.max(i.end, s + Tt))
76
78
  };
77
- }, Et = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
79
+ }, Ot = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
78
80
  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 = Q((n ? r : Math.min(bt, r)) - 64), a = Math.ceil(e / i);
81
+ let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= x ? 60 : 0)), i = Z((n ? r : Math.min(X, r)) - 64), a = Math.ceil(e / i);
80
82
  return {
81
83
  startRow: 0,
82
84
  endRow: Math.min(a, 12),
@@ -86,8 +88,8 @@ var ht = /* @__PURE__ */ function(e) {
86
88
  j(() => {
87
89
  let n = r.current;
88
90
  if (!n) return;
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
+ let i = Ct(n.parentElement), o = () => {
92
+ 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);
91
93
  a({
92
94
  startRow: f,
93
95
  endRow: Math.min(u, f + Math.ceil(s / 268) + 2 * t),
@@ -109,7 +111,7 @@ var ht = /* @__PURE__ */ function(e) {
109
111
  rowCount: o,
110
112
  totalHeight: o * 268
111
113
  };
112
- }, Dt = {
114
+ }, Q = {
113
115
  skeletonColor: "var(--cg-skeleton-color, var(--bg-control-disable-primary, #dce0e8))",
114
116
  card: "_card_18c2b_2",
115
117
  emptyStarHidden: "_emptyStarHidden_18c2b_2",
@@ -119,12 +121,12 @@ var ht = /* @__PURE__ */ function(e) {
119
121
  selectedCard: "_selectedCard_18c2b_37",
120
122
  checkIcon: "_checkIcon_18c2b_42",
121
123
  footer: "_footer_18c2b_46"
122
- }, Ot = {
124
+ }, kt = {
123
125
  name: "_name_188yo_1",
124
126
  lastUsed: "_lastUsed_188yo_5",
125
127
  version: "_version_188yo_9"
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
+ }, 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 }) => {
129
+ 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({
128
130
  "--ai-name-text": f?.nameColor,
129
131
  "--ai-last-used-text": f?.lastUsedColor,
130
132
  "--ai-version-text": f?.versionColor
@@ -157,22 +159,22 @@ var ht = /* @__PURE__ */ function(e) {
157
159
  text: n,
158
160
  query: o
159
161
  }) : n,
160
- className: k("min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text", Ot.name)
162
+ className: k("min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text", kt.name)
161
163
  }), r && /* @__PURE__ */ W(me, {
162
164
  text: r,
163
- className: k("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text", Ot.version)
165
+ className: k("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text", kt.version)
164
166
  })]
165
167
  }), m && i != null && /* @__PURE__ */ G("div", {
166
168
  className: "flex items-center gap-2",
167
169
  children: [/* @__PURE__ */ W("span", {
168
- className: k("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", Ot.lastUsed),
170
+ className: k("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", kt.lastUsed),
169
171
  children: i
170
172
  }), l]
171
173
  })]
172
174
  })]
173
175
  })]
174
176
  });
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, {
177
+ }, 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, {
176
178
  tooltip: t,
177
179
  asChild: !0,
178
180
  children: /* @__PURE__ */ W("span", {
@@ -185,39 +187,39 @@ var ht = /* @__PURE__ */ function(e) {
185
187
  className: k("absolute -bottom-1 -end-1 shrink-0", n),
186
188
  children: /* @__PURE__ */ W(Ie, {
187
189
  size: L.SM,
188
- className: At.icon,
190
+ className: jt.icon,
189
191
  "aria-hidden": !0
190
192
  })
191
193
  })
192
- }), Mt = {
194
+ }), Nt = {
193
195
  starFilledIcon: "_starFilledIcon_po6zj_1",
194
196
  starPop: "_starPop_po6zj_1"
195
- }, Nt = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ W(Pe, {
197
+ }, Pt = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ W(Pe, {
196
198
  size: n,
197
199
  style: ie({ "--cat-star-filled": a }),
198
200
  className: i,
199
201
  icon: e ? /* @__PURE__ */ W(H, {
200
202
  size: L.SM,
201
- className: Mt.starFilledIcon
203
+ className: Nt.starFilledIcon
202
204
  }) : /* @__PURE__ */ W(rt, {
203
205
  size: L.SM,
204
206
  stroke: R
205
207
  }),
206
208
  "aria-label": r,
207
209
  onClick: t
208
- }), Pt = { tag: "_tag_12518_1" }, Ft = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ W("div", {
210
+ }), Ft = { tag: "_tag_12518_1" }, It = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ W("div", {
209
211
  style: ie({
210
212
  "--cat-card-tag-bg": r?.background,
211
213
  "--cat-card-tag-text": r?.text,
212
214
  "--cat-card-tag-border": r?.border
213
215
  }),
214
- className: k("flex h-6 w-fit items-center justify-center whitespace-nowrap rounded-md border px-2", Pt.tag, n, t),
216
+ className: k("flex h-6 w-fit items-center justify-center whitespace-nowrap rounded-md border px-2", Ft.tag, n, t),
215
217
  children: e
216
- }), $ = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ W(Ft, {
218
+ }), Lt = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ W(It, {
217
219
  label: e,
218
220
  badgeClassName: t,
219
221
  colors: n
220
- }), It = 8, Lt = ({ topics: e, overflowAriaLabel: t, className: n }) => {
222
+ }), Rt = 8, zt = ({ topics: e, overflowAriaLabel: t, className: n }) => {
221
223
  let r = N(null), i = N([]), a = N([]), o = N(null), s = N(Infinity), [c, l] = P(e.length), u = e.join("\0"), d = A(() => {
222
224
  let t = r.current;
223
225
  if (!t || e.length === 0) return;
@@ -229,8 +231,8 @@ var ht = /* @__PURE__ */ function(e) {
229
231
  let u = o.current?.offsetWidth ?? 0, d = 0, f = 0;
230
232
  for (let t = 0; t < e.length; t++) {
231
233
  let r = e.length - (t + 1) > 0;
232
- if (d + (t > 0 ? It : 0) + c[t] + (r ? It + u : 0) > n) break;
233
- d += (t > 0 ? It : 0) + c[t], f = t + 1;
234
+ if (d + (t > 0 ? Rt : 0) + c[t] + (r ? Rt + u : 0) > n) break;
235
+ d += (t > 0 ? Rt : 0) + c[t], f = t + 1;
234
236
  }
235
237
  l(Math.min(f, s.current));
236
238
  }, [e.length]);
@@ -261,24 +263,24 @@ var ht = /* @__PURE__ */ function(e) {
261
263
  ref: (e) => {
262
264
  i.current[t] = e;
263
265
  },
264
- children: /* @__PURE__ */ W($, { label: e })
266
+ children: /* @__PURE__ */ W(Lt, { label: e })
265
267
  }, e)),
266
268
  f > 0 && /* @__PURE__ */ W(Fe, {
267
269
  tooltip: e.slice(c).join(", "),
268
270
  children: /* @__PURE__ */ W("span", {
269
271
  "aria-label": t?.(f) ?? `and ${f} more topics`,
270
- children: /* @__PURE__ */ W($, { label: `+${f}` })
272
+ children: /* @__PURE__ */ W(Lt, { label: `+${f}` })
271
273
  })
272
274
  }),
273
275
  /* @__PURE__ */ W("div", {
274
276
  ref: o,
275
277
  "aria-hidden": !0,
276
278
  className: "invisible absolute start-0 top-0",
277
- children: /* @__PURE__ */ W($, { label: `+${e.length}` })
279
+ children: /* @__PURE__ */ W(Lt, { label: `+${e.length}` })
278
280
  })
279
281
  ]
280
282
  });
281
- }, Rt = { img: () => null }, zt = (e) => e.target instanceof Element && e.target.closest("a") !== null, Bt = ({ item: e, query: t = "", onClick: n, initialIsStarred: r = !1, onToggle: i, isFavoriteVisible: a, featuredLabel: o = "Featured", addToFavoritesAriaLabel: s = "Add to favorites", removeFromFavoritesAriaLabel: c = "Remove from favorites", isSelected: l = !1, className: u, styles: d, credentialsBadgeLoggedOutLabel: f, isReadonly: p = !1 }) => {
283
+ }, Bt = { img: () => null }, Vt = (e) => e.target instanceof Element && e.target.closest("a") !== null, Ht = ({ item: e, query: t = "", onClick: n, initialIsStarred: r = !1, onToggle: i, isFavoriteVisible: a, featuredLabel: o = "Featured", addToFavoritesAriaLabel: s = "Add to favorites", removeFromFavoritesAriaLabel: c = "Remove from favorites", isSelected: l = !1, className: u, styles: d, credentialsBadgeLoggedOutLabel: f, isReadonly: p = !1 }) => {
282
284
  let [m, h] = P(r);
283
285
  j(() => {
284
286
  h(r);
@@ -290,9 +292,9 @@ var ht = /* @__PURE__ */ function(e) {
290
292
  "--cg-check-icon": d?.colors?.checkIcon,
291
293
  "--cg-footer-border": d?.colors?.footerBorder
292
294
  }), x = !p && e.isFeatured === !0, S = !p && a?.(e) !== !1, C = !p || e.folder.length > 0, w = n ? (t) => {
293
- zt(t) || n(e);
295
+ Vt(t) || n(e);
294
296
  } : void 0, E = A((t) => {
295
- !n || zt(t) || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e));
297
+ !n || Vt(t) || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e));
296
298
  }, [n, e]), D = A((t) => {
297
299
  t.stopPropagation();
298
300
  let n = !m;
@@ -311,7 +313,7 @@ var ht = /* @__PURE__ */ function(e) {
311
313
  } : {},
312
314
  "aria-label": e.name,
313
315
  style: b,
314
- className: k("box-border cursor-pointer gap-3", Dt.card, x ? Dt.featuredCard : void 0, l ? Dt.selectedCard : void 0, u),
316
+ className: k("box-border cursor-pointer gap-3", Q.card, x ? Q.featuredCard : void 0, l ? Q.selectedCard : void 0, u),
315
317
  children: [
316
318
  x && /* @__PURE__ */ W("div", {
317
319
  className: "absolute end-[22px] top-0 -translate-y-1/2",
@@ -324,25 +326,25 @@ var ht = /* @__PURE__ */ function(e) {
324
326
  }),
325
327
  l && /* @__PURE__ */ W(ze, {
326
328
  size: L.SM,
327
- className: k("absolute end-3 top-3 shrink-0", Dt.checkIcon),
329
+ className: k("absolute end-3 top-3 shrink-0", Q.checkIcon),
328
330
  "aria-hidden": !0,
329
331
  stroke: R
330
332
  }),
331
- /* @__PURE__ */ W(kt, {
333
+ /* @__PURE__ */ W(At, {
332
334
  icon: e.iconUrl,
333
335
  type: e.type,
334
336
  name: e.name,
335
337
  version: e.version,
336
- size: Y.SM,
338
+ size: _t.SM,
337
339
  query: t,
338
- iconClassName: Dt.cardIcon,
339
- iconOverlay: /* @__PURE__ */ W(jt, {
340
+ iconClassName: Q.cardIcon,
341
+ iconOverlay: /* @__PURE__ */ W(Mt, {
340
342
  credentials: e.credentials,
341
343
  loggedOutLabel: f
342
344
  })
343
345
  }),
344
346
  /* @__PURE__ */ W("div", {
345
- className: k("line-clamp-2 min-h-[2lh] break-words", Dt.description),
347
+ className: k("line-clamp-2 min-h-[2lh] break-words", Q.description),
346
348
  children: e.description && /* @__PURE__ */ W(O, {
347
349
  content: e.description,
348
350
  classNames: {
@@ -356,15 +358,15 @@ var ht = /* @__PURE__ */ function(e) {
356
358
  h5: g,
357
359
  h6: g
358
360
  },
359
- components: Rt
361
+ components: Bt
360
362
  })
361
363
  }),
362
364
  /* @__PURE__ */ W("div", {
363
365
  className: "mt-auto flex items-center gap-2",
364
- children: /* @__PURE__ */ W(Lt, { topics: e.topics })
366
+ children: /* @__PURE__ */ W(zt, { topics: e.topics })
365
367
  }),
366
368
  C && /* @__PURE__ */ W("div", {
367
- className: k("pt-3", !p && k("border-t", Dt.footer)),
369
+ className: k("pt-3", !p && k("border-t", Q.footer)),
368
370
  children: /* @__PURE__ */ G("div", {
369
371
  className: "flex items-center gap-2",
370
372
  children: [/* @__PURE__ */ W("div", {
@@ -374,18 +376,18 @@ var ht = /* @__PURE__ */ function(e) {
374
376
  labelClassName: v,
375
377
  leafClassName: y
376
378
  })
377
- }), S && /* @__PURE__ */ W(Nt, {
379
+ }), S && /* @__PURE__ */ W(Pt, {
378
380
  isStarred: m,
379
381
  size: pe.Small,
380
382
  onClick: D,
381
383
  ariaLabel: m ? c : s,
382
- className: k(Dt.starBtn, !m && Dt.emptyStarHidden)
384
+ className: k(Q.starBtn, !m && Q.emptyStarHidden)
383
385
  })]
384
386
  })
385
387
  })
386
388
  ]
387
389
  });
388
- }, Vt = ({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, isFavoriteVisible: a, onItemClick: o, featuredLabel: s, addToFavoritesAriaLabel: c, removeFromFavoritesAriaLabel: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f, featuredChipStyle: p }) => {
390
+ }, Ut = ({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, isFavoriteVisible: a, onItemClick: o, featuredLabel: s, addToFavoritesAriaLabel: c, removeFromFavoritesAriaLabel: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f, featuredChipStyle: p }) => {
389
391
  let m = e * n, h = t.slice(m, m + n);
390
392
  return /* @__PURE__ */ W("div", {
391
393
  style: {
@@ -397,7 +399,7 @@ var ht = /* @__PURE__ */ function(e) {
397
399
  let n = h[t];
398
400
  return /* @__PURE__ */ W("div", {
399
401
  className: "h-full min-w-0 flex-1",
400
- children: n && /* @__PURE__ */ W(Bt, {
402
+ children: n && /* @__PURE__ */ W(Ht, {
401
403
  item: n,
402
404
  query: r,
403
405
  initialIsStarred: n.isStarred,
@@ -416,8 +418,8 @@ var ht = /* @__PURE__ */ function(e) {
416
418
  }, n?.id ?? `spacer-${t}`);
417
419
  })
418
420
  });
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
+ }, Wt = oe(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = Q.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1, featuredChipStyle: f }) => {
422
+ 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 } = Ot(e.length, { isFullWidth: d }), C = M(() => ({
421
423
  items: e,
422
424
  columnCount: x,
423
425
  query: t,
@@ -453,7 +455,7 @@ var ht = /* @__PURE__ */ function(e) {
453
455
  ...ie({ "--cg-skeleton-card-bg": l })
454
456
  },
455
457
  children: Array.from({ length: x * 3 }, (e, t) => /* @__PURE__ */ W("div", {
456
- className: k("rounded-md border p-4", Dt.skeletonCard),
458
+ className: k("rounded-md border p-4", Q.skeletonCard),
457
459
  style: { height: 248 },
458
460
  children: /* @__PURE__ */ W(je, {
459
461
  avatar: {
@@ -475,26 +477,26 @@ var ht = /* @__PURE__ */ function(e) {
475
477
  style: { height: S },
476
478
  children: Array.from({ length: b - y }, (e, t) => {
477
479
  let n = y + t;
478
- return /* @__PURE__ */ W(Vt, {
480
+ return /* @__PURE__ */ W(Ut, {
479
481
  rowIndex: n,
480
482
  ...C
481
483
  }, n);
482
484
  })
483
485
  });
484
- }), Ut = (e) => e.reduce((e, t) => t.type === Z.File ? e + 1 : e + Ut(t.items), 0), Wt = (e) => {
486
+ }), Gt = (e) => e.reduce((e, t) => t.type === yt.File ? e + 1 : e + Gt(t.items), 0), Kt = (e) => {
485
487
  let t = /* @__PURE__ */ new Set(), n = (e) => {
486
- for (let r of e) r.type === Z.Folder && (t.add(r.id), n(r.items));
488
+ for (let r of e) r.type === yt.Folder && (t.add(r.id), n(r.items));
487
489
  };
488
490
  return n(e), t;
489
- }, Gt = (e, t) => {
491
+ }, qt = (e, t) => {
490
492
  if (t != null) for (let n of e) {
491
493
  if (n.id === t) return n.name;
492
- if (n.type === Z.Folder) {
493
- let e = Gt(n.items, t);
494
+ if (n.type === yt.Folder) {
495
+ let e = qt(n.items, t);
494
496
  if (e != null) return e;
495
497
  }
496
498
  }
497
- }, Kt = {
499
+ }, Jt = {
498
500
  sectionHeading: "_sectionHeading_jnq93_1",
499
501
  rowAlt: "_rowAlt_jnq93_5",
500
502
  label: "_label_jnq93_9",
@@ -502,19 +504,19 @@ var ht = /* @__PURE__ */ function(e) {
502
504
  valueTrue: "_valueTrue_jnq93_17",
503
505
  valueFalse: "_valueFalse_jnq93_21",
504
506
  valueText: "_valueText_jnq93_25"
505
- }, qt = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(Ue, {
507
+ }, Yt = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(Ue, {
506
508
  size: L.MD,
507
- className: k(r, Kt.checkIcon)
509
+ className: k(r, Jt.checkIcon)
508
510
  }), /* @__PURE__ */ W("span", {
509
- className: k(n, Kt.valueTrue),
511
+ className: k(n, Jt.valueTrue),
510
512
  children: i
511
513
  })] }) : e === !1 ? /* @__PURE__ */ W("span", {
512
- className: k(t, Kt.valueFalse),
514
+ className: k(t, Jt.valueFalse),
513
515
  children: a
514
516
  }) : /* @__PURE__ */ W("span", {
515
- className: k("min-w-0 break-words", t, Kt.valueText),
517
+ className: k("min-w-0 break-words", t, Jt.valueText),
516
518
  children: e
517
- }), Jt = ({ sectionLabel: e = "Section", values: t, labelClassName: n = "dial-small-semi-text", valueClassName: r = "dial-small-text", valueTrueClassName: i = "dial-small-semi-text", checkIconClassName: a, sectionClassName: o = "dial-caption-text", yesLabel: s = "Yes", noLabel: c = "No", colors: l }) => /* @__PURE__ */ W("div", {
519
+ }), Xt = ({ sectionLabel: e = "Section", values: t, labelClassName: n = "dial-small-semi-text", valueClassName: r = "dial-small-text", valueTrueClassName: i = "dial-small-semi-text", checkIconClassName: a, sectionClassName: o = "dial-caption-text", yesLabel: s = "Yes", noLabel: c = "No", colors: l }) => /* @__PURE__ */ W("div", {
518
520
  className: "flex flex-col",
519
521
  style: ie({
520
522
  "--tv-section-heading": l?.sectionHeading,
@@ -526,18 +528,18 @@ var ht = /* @__PURE__ */ function(e) {
526
528
  "--tv-value-text": l?.valueText
527
529
  }),
528
530
  children: t != null && t.length > 0 && /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ W("p", {
529
- className: k("mb-3 mt-0", o, Kt.sectionHeading),
531
+ className: k("mb-3 mt-0", o, Jt.sectionHeading),
530
532
  children: e
531
533
  }), /* @__PURE__ */ W("ul", {
532
534
  className: "m-0 list-none p-0",
533
535
  children: t.map((e, t) => /* @__PURE__ */ G("li", {
534
- className: k("flex items-center rounded px-3 py-2", t % 2 == 0 ? Kt.rowAlt : void 0),
536
+ className: k("flex items-center rounded px-3 py-2", t % 2 == 0 ? Jt.rowAlt : void 0),
535
537
  children: [/* @__PURE__ */ W("span", {
536
- className: k(n, Kt.label, "w-2/5 shrink-0"),
538
+ className: k(n, Jt.label, "w-2/5 shrink-0"),
537
539
  children: e.label
538
540
  }), /* @__PURE__ */ W("div", {
539
541
  className: "flex w-3/5 min-w-0 items-center gap-1",
540
- children: /* @__PURE__ */ W(qt, {
542
+ children: /* @__PURE__ */ W(Yt, {
541
543
  value: e.value,
542
544
  valueClassName: r,
543
545
  valueTrueClassName: i,
@@ -548,30 +550,30 @@ var ht = /* @__PURE__ */ function(e) {
548
550
  })]
549
551
  }, e.label))
550
552
  })] })
551
- }), Yt = { sectionHeading: "_sectionHeading_148lj_1" }, Xt = {
553
+ }), Zt = { sectionHeading: "_sectionHeading_148lj_1" }, Qt = {
552
554
  [ht.Python]: "Python",
553
555
  [ht.Curl]: "cURL",
554
556
  [ht.JavaScript]: "JavaScript"
555
- }, Zt = {
557
+ }, $t = {
556
558
  [ht.Python]: "python",
557
559
  [ht.Curl]: "bash",
558
560
  [ht.JavaScript]: "javascript"
559
- }, Qt = ({ snippets: e, sectionLabel: t, copyAriaLabel: n = "Copy", copiedStatusLabel: r = "Copied!", codeClassName: i = "dial-code-text", codeTitleClassName: a = "dial-tiny-semi-text", sectionClassName: o = "dial-caption-text" }) => {
561
+ }, en = ({ snippets: e, sectionLabel: t, copyAriaLabel: n = "Copy", copiedStatusLabel: r = "Copied!", codeClassName: i = "dial-code-text", codeTitleClassName: a = "dial-tiny-semi-text", sectionClassName: o = "dial-caption-text" }) => {
560
562
  let [s, c] = P(e[0]?.language ?? ht.Python);
561
563
  j(() => {
562
564
  c(e[0]?.language ?? ht.Python);
563
565
  }, [e]);
564
566
  let l = M(() => e.map((e) => ({
565
567
  key: e.language,
566
- label: Xt[e.language] ?? e.language,
568
+ label: Qt[e.language] ?? e.language,
567
569
  onClick: () => c(e.language)
568
570
  })), [e]), u = e.find((e) => e.language === s)?.code ?? "", d = e.length > 1;
569
571
  return /* @__PURE__ */ G("section", { children: [t != null && /* @__PURE__ */ W("p", {
570
- className: k("mb-3 mt-0", o, Yt.sectionHeading),
572
+ className: k("mb-3 mt-0", o, Zt.sectionHeading),
571
573
  children: t
572
574
  }), /* @__PURE__ */ W(D, {
573
- language: Zt[s] ?? s,
574
- title: Xt[s] ?? s,
575
+ language: $t[s] ?? s,
576
+ title: Qt[s] ?? s,
575
577
  value: u,
576
578
  copyLabel: n,
577
579
  copiedLabel: r,
@@ -586,7 +588,7 @@ var ht = /* @__PURE__ */ function(e) {
586
588
  selectedKey: s
587
589
  }) : void 0
588
590
  })] });
589
- }, $t = ({ api: e, resourceSectionLabel: t = "Resource", endpointSectionLabel: n = "Endpoint", snippetSectionLabel: r = "Code snippet", modelIdLabel: i = "Model ID", endpointLabel: a = "Endpoint", requestExampleLabel: o = "Request example", responseSchemaLabel: s = "Response schema", copyAriaLabel: c = "Copy", copiedStatusLabel: l = "Copied!", labelClassName: u = "dial-small-semi-text", valueClassName: d = "dial-small-text", codeClassName: f = "dial-code-text", codeTitleClassName: p = "dial-tiny-semi-text", sectionClassName: m = "dial-caption-text" }) => {
591
+ }, tn = ({ api: e, resourceSectionLabel: t = "Resource", endpointSectionLabel: n = "Endpoint", snippetSectionLabel: r = "Code snippet", modelIdLabel: i = "Model ID", endpointLabel: a = "Endpoint", requestExampleLabel: o = "Request example", responseSchemaLabel: s = "Response schema", copyAriaLabel: c = "Copy", copiedStatusLabel: l = "Copied!", labelClassName: u = "dial-small-semi-text", valueClassName: d = "dial-small-text", codeClassName: f = "dial-code-text", codeTitleClassName: p = "dial-tiny-semi-text", sectionClassName: m = "dial-caption-text" }) => {
590
592
  let [h, g] = P(0), _ = M(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = M(() => _.map((e, t) => ({
591
593
  key: e.url,
592
594
  label: e.label,
@@ -600,7 +602,7 @@ var ht = /* @__PURE__ */ function(e) {
600
602
  return /* @__PURE__ */ G("div", {
601
603
  className: "flex flex-col gap-6",
602
604
  children: [
603
- C && /* @__PURE__ */ W(Jt, {
605
+ C && /* @__PURE__ */ W(Xt, {
604
606
  sectionLabel: t,
605
607
  values: x,
606
608
  labelClassName: u,
@@ -618,7 +620,7 @@ var ht = /* @__PURE__ */ function(e) {
618
620
  }),
619
621
  v && /* @__PURE__ */ G("section", { children: [
620
622
  /* @__PURE__ */ W("p", {
621
- className: k("mb-3 mt-0", m, Yt.sectionHeading),
623
+ className: k("mb-3 mt-0", m, Zt.sectionHeading),
622
624
  children: n
623
625
  }),
624
626
  y != null && /* @__PURE__ */ W(D, {
@@ -639,7 +641,7 @@ var ht = /* @__PURE__ */ function(e) {
639
641
  }, h),
640
642
  y?.snippets != null && y.snippets.length > 0 && /* @__PURE__ */ W("div", {
641
643
  className: "mt-4",
642
- children: /* @__PURE__ */ W(Qt, {
644
+ children: /* @__PURE__ */ W(en, {
643
645
  snippets: y.snippets,
644
646
  copyAriaLabel: c,
645
647
  copiedStatusLabel: l,
@@ -649,7 +651,7 @@ var ht = /* @__PURE__ */ function(e) {
649
651
  }, h)
650
652
  })
651
653
  ] }),
652
- !v && T && /* @__PURE__ */ W(Qt, {
654
+ !v && T && /* @__PURE__ */ W(en, {
653
655
  snippets: e.snippets ?? [],
654
656
  sectionLabel: r,
655
657
  copyAriaLabel: c,
@@ -659,7 +661,7 @@ var ht = /* @__PURE__ */ function(e) {
659
661
  sectionClassName: m
660
662
  }),
661
663
  E && /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ W("p", {
662
- className: k("mb-3 mt-0", m, Yt.sectionHeading),
664
+ className: k("mb-3 mt-0", m, Zt.sectionHeading),
663
665
  children: o
664
666
  }), /* @__PURE__ */ W(D, {
665
667
  language: "bash",
@@ -670,7 +672,7 @@ var ht = /* @__PURE__ */ function(e) {
670
672
  hideDownload: !0
671
673
  })] }),
672
674
  O && /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ W("p", {
673
- className: k("mb-3 mt-0", m, Yt.sectionHeading),
675
+ className: k("mb-3 mt-0", m, Zt.sectionHeading),
674
676
  children: s
675
677
  }), /* @__PURE__ */ W(D, {
676
678
  language: "json",
@@ -682,11 +684,11 @@ var ht = /* @__PURE__ */ function(e) {
682
684
  })] })
683
685
  ]
684
686
  });
685
- }, en = {
687
+ }, nn = {
686
688
  message: "_message_13mok_1",
687
689
  consequences: "_consequences_13mok_5",
688
690
  footer: "_footer_13mok_9"
689
- }, tn = ({ confirmLabel: e, cancelLabel: t, variant: n = J.Info, isLoading: r = !1, isConfirmDisabled: i = !1, loadingStatusLabel: a, onConfirm: o, onCancel: s }) => {
691
+ }, rn = ({ confirmLabel: e, cancelLabel: t, variant: n = J.Info, isLoading: r = !1, isConfirmDisabled: i = !1, loadingStatusLabel: a, onConfirm: o, onCancel: s }) => {
690
692
  let c = n === J.Danger, l = (() => {
691
693
  if (r) return /* @__PURE__ */ W(Me, { size: L.SM });
692
694
  if (c) return /* @__PURE__ */ W(at, {
@@ -696,7 +698,7 @@ var ht = /* @__PURE__ */ function(e) {
696
698
  });
697
699
  })(), u = c ? de : we;
698
700
  return /* @__PURE__ */ G("div", {
699
- className: k("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start", en.footer),
701
+ className: k("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start", nn.footer),
700
702
  children: [
701
703
  /* @__PURE__ */ W(ge, {
702
704
  label: t,
@@ -717,78 +719,78 @@ var ht = /* @__PURE__ */ function(e) {
717
719
  })
718
720
  ]
719
721
  });
720
- }, nn = {
722
+ }, an = {
721
723
  info: "_info_lklha_1",
722
724
  danger: "_danger_lklha_5"
723
- }, rn = ({ item: e, variant: t = J.Info, iconSize: n = 40 }) => /* @__PURE__ */ W(ne, {
725
+ }, on = ({ item: e, variant: t = J.Info, iconSize: n = 40 }) => /* @__PURE__ */ W(ne, {
724
726
  item: e,
725
727
  iconSize: n,
726
728
  hasVersionTag: !1,
727
- className: t === J.Danger ? nn.danger : nn.info
728
- }), an = ({ item: e, message: t, consequences: n, variant: r = J.Info, messageClassName: i = "dial-small-text", children: a }) => /* @__PURE__ */ G("div", {
729
+ className: t === J.Danger ? an.danger : an.info
730
+ }), sn = ({ item: e, message: t, consequences: n, variant: r = J.Info, messageClassName: i = "dial-small-text", children: a }) => /* @__PURE__ */ G("div", {
729
731
  className: "flex flex-col gap-4 px-6 py-4",
730
732
  children: [
731
- /* @__PURE__ */ W(rn, {
733
+ /* @__PURE__ */ W(on, {
732
734
  item: e,
733
735
  variant: r
734
736
  }),
735
737
  /* @__PURE__ */ W("p", {
736
- className: k(i, "break-words", en.message),
738
+ className: k(i, "break-words", nn.message),
737
739
  children: t
738
740
  }),
739
741
  n != null && n.length > 0 && /* @__PURE__ */ W("ul", {
740
- className: k("flex list-disc flex-col gap-2 ps-5", i, en.consequences),
742
+ className: k("flex list-disc flex-col gap-2 ps-5", i, nn.consequences),
741
743
  children: n.map((e) => /* @__PURE__ */ W("li", { children: e }, e))
742
744
  }),
743
745
  a
744
746
  ]
745
- }), on = {
747
+ }), cn = {
746
748
  sunkenBox: "_sunkenBox_1lqi3_1",
747
749
  raisedBox: "_raisedBox_1lqi3_5",
748
750
  activeIcon: "_activeIcon_1lqi3_9"
749
- }, sn = /* @__PURE__ */ function(e) {
751
+ }, ln = /* @__PURE__ */ function(e) {
750
752
  return e.Sunken = "sunken", e.Raised = "raised", e;
751
- }({}), cn = {
752
- sunken: on.sunkenBox,
753
- raised: on.raisedBox
754
- }, ln = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */ G("span", {
753
+ }({}), un = {
754
+ sunken: cn.sunkenBox,
755
+ raised: cn.raisedBox
756
+ }, dn = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */ G("span", {
755
757
  className: "relative inline-flex shrink-0",
756
758
  children: [
757
759
  /* @__PURE__ */ W("span", {
758
- className: k("flex size-8 items-center justify-center rounded-lg", cn[n]),
760
+ className: k("flex size-8 items-center justify-center rounded-lg", un[n]),
759
761
  children: e
760
762
  }),
761
763
  t && /* @__PURE__ */ W(Ue, {
762
764
  size: L.MD,
763
765
  "aria-hidden": !0,
764
- className: k("absolute -end-2 -top-2", on.activeIcon)
766
+ className: k("absolute -end-2 -top-2", cn.activeIcon)
765
767
  }),
766
768
  r != null && /* @__PURE__ */ W("span", {
767
769
  className: "sr-only",
768
770
  children: r
769
771
  })
770
772
  ]
771
- }), un = {
773
+ }), fn = {
772
774
  card: "_card_tqnz7_1",
773
775
  icon: "_icon_tqnz7_6",
774
776
  title: "_title_tqnz7_10",
775
777
  description: "_description_tqnz7_14"
776
- }, dn = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ G("div", {
778
+ }, pn = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ G("div", {
777
779
  role: "status",
778
780
  "aria-live": "polite",
779
- className: k("flex items-center gap-3 rounded-xl p-3", un.card),
781
+ className: k("flex items-center gap-3 rounded-xl p-3", fn.card),
780
782
  children: [/* @__PURE__ */ W("span", {
781
- className: k("shrink-0", un.icon, n != null && "mt-0.5"),
783
+ className: k("shrink-0", fn.icon, n != null && "mt-0.5"),
782
784
  children: e
783
785
  }), /* @__PURE__ */ G("div", {
784
786
  className: "flex min-w-0 flex-1 items-center justify-between gap-2",
785
787
  children: [/* @__PURE__ */ G("div", {
786
788
  className: "flex min-w-0 flex-col gap-1",
787
789
  children: [/* @__PURE__ */ W("span", {
788
- className: k(i, un.title),
790
+ className: k(i, fn.title),
789
791
  children: t
790
792
  }), n != null && /* @__PURE__ */ W("span", {
791
- className: k(a, un.description),
793
+ className: k(a, fn.description),
792
794
  children: n
793
795
  })]
794
796
  }), r != null && /* @__PURE__ */ W("div", {
@@ -796,53 +798,53 @@ var ht = /* @__PURE__ */ function(e) {
796
798
  children: r
797
799
  })]
798
800
  })]
799
- }), fn = (e) => e === n.ApiKey ? "You are currently using organization API key to access this toolset." : "You are currently using organization credentials to access this toolset.", pn = (e) => e === n.ApiKey ? "Configure your personal API key to have access to your data." : "Login using personal account to have access to your data.", mn = (e) => e === n.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", hn = (e) => e === n.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", gn = 20, _n = ({ state: t, authenticationType: n, texts: r }) => {
801
+ }), mn = (e) => e === n.ApiKey ? "You are currently using organization API key to access this toolset." : "You are currently using organization credentials to access this toolset.", hn = (e) => e === n.ApiKey ? "Configure your personal API key to have access to your data." : "Login using personal account to have access to your data.", gn = (e) => e === n.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", _n = (e) => e === n.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", vn = 20, yn = ({ state: t, authenticationType: n, texts: r }) => {
800
802
  let i = /* @__PURE__ */ W(Re, {
801
- size: gn,
803
+ size: vn,
802
804
  "aria-hidden": !0,
803
805
  stroke: R
804
806
  });
805
807
  if (t === e.PersonalCredentialsActive) {
806
- let e = (r?.personalCredentialsActiveBannerTitle ?? hn)(n);
807
- return /* @__PURE__ */ W(dn, {
808
- icon: /* @__PURE__ */ W(ln, {
808
+ let e = (r?.personalCredentialsActiveBannerTitle ?? _n)(n);
809
+ return /* @__PURE__ */ W(pn, {
810
+ icon: /* @__PURE__ */ W(dn, {
809
811
  icon: /* @__PURE__ */ W(ot, {
810
812
  size: L.SM,
811
813
  "aria-hidden": !0,
812
814
  stroke: R
813
815
  }),
814
816
  isActive: !0,
815
- surface: sn.Raised
817
+ surface: ln.Raised
816
818
  }),
817
819
  title: e
818
820
  });
819
821
  }
820
822
  if (t === e.OrgCredentialsActive) {
821
- let e = (r?.orgCredentialsActiveBannerTitle ?? mn)(n);
822
- return /* @__PURE__ */ W(dn, {
823
- icon: /* @__PURE__ */ W(ln, {
823
+ let e = (r?.orgCredentialsActiveBannerTitle ?? gn)(n);
824
+ return /* @__PURE__ */ W(pn, {
825
+ icon: /* @__PURE__ */ W(dn, {
824
826
  icon: /* @__PURE__ */ W(Re, {
825
827
  size: L.SM,
826
828
  "aria-hidden": !0,
827
829
  stroke: R
828
830
  }),
829
831
  isActive: !0,
830
- surface: sn.Raised
832
+ surface: ln.Raised
831
833
  }),
832
834
  title: e
833
835
  });
834
836
  }
835
- return /* @__PURE__ */ W(dn, {
837
+ return /* @__PURE__ */ W(pn, {
836
838
  icon: i,
837
- title: (r?.orgFallbackBannerTitle ?? fn)(n),
838
- description: (r?.orgFallbackBannerDescription ?? pn)(n)
839
+ title: (r?.orgFallbackBannerTitle ?? mn)(n),
840
+ description: (r?.orgFallbackBannerDescription ?? hn)(n)
839
841
  });
840
- }, vn = {
842
+ }, bn = {
841
843
  surface: "_surface_1q3s8_1",
842
844
  description: "_description_1q3s8_5",
843
845
  rowDescription: "_rowDescription_1q3s8_9",
844
846
  errorText: "_errorText_1q3s8_13"
845
- }, yn = ({ item: e, level: t, label: r, description: i, icon: a, status: o, isActive: c, authenticationType: l, apiKeyAddedWhen: u, onLogin: d, onRequestLogout: f, onRequestDeleteApiKey: p, texts: m, labelClassName: h, descriptionClassName: g, errorClassName: _, keyCardTitleClassName: v, keyCardDescriptionClassName: y, deleteActionClassName: b }) => {
847
+ }, xn = ({ item: e, level: t, label: r, description: i, icon: a, status: o, isActive: c, authenticationType: l, apiKeyAddedWhen: u, onLogin: d, onRequestLogout: f, onRequestDeleteApiKey: p, texts: m, labelClassName: h, descriptionClassName: g, errorClassName: _, keyCardTitleClassName: v, keyCardDescriptionClassName: y, deleteActionClassName: b }) => {
846
848
  let [x, S] = P(""), [C, w] = P(!1), [T, E] = P(!1), D = o === s.SignedIn, O = A(() => {
847
849
  d?.(e, { level: t });
848
850
  }, [
@@ -877,7 +879,7 @@ var ht = /* @__PURE__ */ function(e) {
877
879
  }, [t, p]), ie = m?.loginActionLabel ?? "Log in", ae = m?.logoutActionLabel ?? "Log out", oe = m?.addApiKeyActionLabel ?? "Add", j = m?.deleteActionLabel ?? "Delete", se = m?.credentialsSignedInLabel ?? "Signed in", M = m?.credentialsSignedOutLabel ?? "Signed out", N = m?.addingApiKeyStatusLabel ?? "Adding", ce = m?.apiKeyConfiguredMessage ?? "Key has been configured", le = u == null ? void 0 : (m?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(u);
878
880
  return /* @__PURE__ */ G("div", {
879
881
  className: "flex items-start gap-3 rounded-xl p-3",
880
- children: [/* @__PURE__ */ W(ln, {
882
+ children: [/* @__PURE__ */ W(dn, {
881
883
  icon: a,
882
884
  isActive: c,
883
885
  statusLabel: c ? se : M
@@ -892,7 +894,7 @@ var ht = /* @__PURE__ */ function(e) {
892
894
  className: h,
893
895
  children: r
894
896
  }), /* @__PURE__ */ W("span", {
895
- className: k(g, vn.rowDescription),
897
+ className: k(g, bn.rowDescription),
896
898
  children: i
897
899
  })]
898
900
  }), l === n.OAuth && (D ? /* @__PURE__ */ W(de, {
@@ -932,13 +934,13 @@ var ht = /* @__PURE__ */ function(e) {
932
934
  disabled: T
933
935
  })]
934
936
  }), C && /* @__PURE__ */ W("span", {
935
- className: k(_, vn.errorText),
937
+ className: k(_, bn.errorText),
936
938
  children: m?.apiKeyRequiredErrorMessage ?? "API key is required."
937
939
  })]
938
940
  }),
939
941
  l === n.ApiKey && D && /* @__PURE__ */ W("div", {
940
942
  className: "animate-fadeIn pt-1",
941
- children: /* @__PURE__ */ W(dn, {
943
+ children: /* @__PURE__ */ W(pn, {
942
944
  icon: /* @__PURE__ */ W(Je, {
943
945
  size: L.SM,
944
946
  "aria-hidden": !0,
@@ -958,16 +960,16 @@ var ht = /* @__PURE__ */ function(e) {
958
960
  ]
959
961
  })]
960
962
  });
961
- }, bn = (e) => e === n.ApiKey ? "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default for toolset access." : "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default.", xn = ({ item: e, onLogin: t, onRequestLogout: n, onRequestDeleteApiKey: r, texts: i, detailsStyles: a, deleteActionClassName: o = "text-error" }) => {
963
+ }, Sn = (e) => e === n.ApiKey ? "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default for toolset access." : "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default.", Cn = ({ item: e, onLogin: t, onRequestLogout: n, onRequestDeleteApiKey: r, texts: i, detailsStyles: a, deleteActionClassName: o = "text-error" }) => {
962
964
  let { credentialsDescriptionClassName: c = "dial-body-paragraph-text", credentialsRowLabelClassName: l = "dial-small-semi-text", credentialsRowDescriptionClassName: u = "dial-small-text", credentialsErrorClassName: d = "dial-caption-text", credentialsKeyCardTitleClassName: f = "dial-tiny-semi-text", credentialsKeyCardDescriptionClassName: p = "dial-tiny-text" } = a?.typography ?? {}, m = e.credentials;
963
965
  if (m == null) return null;
964
- let h = (i?.credentialsManagementDescription ?? bn)(m.authenticationType), g = m.userStatus === s.SignedIn, _ = !g && m.globalStatus === s.SignedIn;
966
+ let h = (i?.credentialsManagementDescription ?? Sn)(m.authenticationType), g = m.userStatus === s.SignedIn, _ = !g && m.globalStatus === s.SignedIn;
965
967
  return /* @__PURE__ */ G("div", {
966
968
  className: "flex flex-col",
967
969
  children: [/* @__PURE__ */ W("div", {
968
970
  className: "px-6 py-4",
969
971
  children: /* @__PURE__ */ W("div", {
970
- className: k("rounded-xl p-3", vn.surface),
972
+ className: k("rounded-xl p-3", bn.surface),
971
973
  children: /* @__PURE__ */ W(C, {
972
974
  item: e,
973
975
  iconSize: 40,
@@ -977,11 +979,11 @@ var ht = /* @__PURE__ */ function(e) {
977
979
  }), /* @__PURE__ */ G("div", {
978
980
  className: "flex flex-col gap-5 px-6 py-4",
979
981
  children: [/* @__PURE__ */ W("span", {
980
- className: k(c, vn.description),
982
+ className: k(c, bn.description),
981
983
  children: h
982
984
  }), /* @__PURE__ */ G("div", {
983
985
  className: "flex flex-col",
984
- children: [/* @__PURE__ */ W(yn, {
986
+ children: [/* @__PURE__ */ W(xn, {
985
987
  item: e,
986
988
  level: v.User,
987
989
  label: i?.personalCredentialsLabel ?? "Personal credentials",
@@ -1005,7 +1007,7 @@ var ht = /* @__PURE__ */ function(e) {
1005
1007
  keyCardTitleClassName: f,
1006
1008
  keyCardDescriptionClassName: p,
1007
1009
  deleteActionClassName: o
1008
- }), /* @__PURE__ */ W(yn, {
1010
+ }), /* @__PURE__ */ W(xn, {
1009
1011
  item: e,
1010
1012
  level: v.Global,
1011
1013
  label: i?.organizationCredentialsLabel ?? "Organization credentials",
@@ -1033,16 +1035,16 @@ var ht = /* @__PURE__ */ function(e) {
1033
1035
  })]
1034
1036
  })]
1035
1037
  });
1036
- }, Sn = {
1038
+ }, wn = {
1037
1039
  skeletonColor: "var(--cat-details-skeleton, var(--bg-control-disable-primary, #dce0e8))",
1038
1040
  backdrop: "_backdrop_16ka5_2",
1039
1041
  panel: "_panel_16ka5_6",
1040
1042
  divider: "_divider_16ka5_11",
1041
1043
  content: "_content_16ka5_15",
1042
1044
  publishTitle: "_publishTitle_16ka5_20"
1043
- }, Cn = /* @__PURE__ */ function(e) {
1045
+ }, Tn = /* @__PURE__ */ function(e) {
1044
1046
  return e.Idle = "idle", e.Loading = "loading", e.Resolved = "resolved", e.Unknown = "unknown", e;
1045
- }({}), wn = { divider: "_divider_nhloi_1" }, Tn = 16, En = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, onLogin: i, onLogout: a, onClose: o, texts: c, deleteActionClassName: l = "text-error" }) => {
1047
+ }({}), En = { divider: "_divider_nhloi_1" }, Dn = 16, On = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, onLogin: i, onLogout: a, onClose: o, texts: c, deleteActionClassName: l = "text-error" }) => {
1046
1048
  let [u, d] = P(""), [f, p] = P(!1), [m, h] = P(!1), [g, _] = P(!1), v = n === s.SignedIn, y = A((e) => {
1047
1049
  d(e ?? ""), p(!1);
1048
1050
  }, []), b = A(async () => {
@@ -1088,7 +1090,7 @@ var ht = /* @__PURE__ */ function(e) {
1088
1090
  children: S
1089
1091
  })
1090
1092
  }),
1091
- /* @__PURE__ */ W("div", { className: k("mx-4 h-px", wn.divider) }),
1093
+ /* @__PURE__ */ W("div", { className: k("mx-4 h-px", En.divider) }),
1092
1094
  !v && /* @__PURE__ */ G("div", {
1093
1095
  className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
1094
1096
  children: [/* @__PURE__ */ G("div", {
@@ -1107,7 +1109,7 @@ var ht = /* @__PURE__ */ function(e) {
1107
1109
  label: m ? void 0 : C,
1108
1110
  "aria-label": m ? T : void 0,
1109
1111
  iconBefore: m ? /* @__PURE__ */ W(Me, {
1110
- size: Tn,
1112
+ size: Dn,
1111
1113
  ariaLabel: T
1112
1114
  }) : void 0,
1113
1115
  onClick: b,
@@ -1120,7 +1122,7 @@ var ht = /* @__PURE__ */ function(e) {
1120
1122
  }),
1121
1123
  v && /* @__PURE__ */ W("div", {
1122
1124
  className: "animate-fadeIn px-4 py-3.5",
1123
- children: /* @__PURE__ */ W(dn, {
1125
+ children: /* @__PURE__ */ W(pn, {
1124
1126
  icon: /* @__PURE__ */ W(Je, {
1125
1127
  size: 20,
1126
1128
  "aria-hidden": !0,
@@ -1132,7 +1134,7 @@ var ht = /* @__PURE__ */ function(e) {
1132
1134
  label: g ? void 0 : w,
1133
1135
  "aria-label": g ? E : void 0,
1134
1136
  iconBefore: g ? /* @__PURE__ */ W(Me, {
1135
- size: Tn,
1137
+ size: Dn,
1136
1138
  ariaLabel: E
1137
1139
  }) : void 0,
1138
1140
  className: l,
@@ -1143,7 +1145,7 @@ var ht = /* @__PURE__ */ function(e) {
1143
1145
  })
1144
1146
  ]
1145
1147
  });
1146
- }, Dn = { name: "_name_gfs1p_1" }, On = (e) => e.isMyApp === !0, kn = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
1148
+ }, kn = { name: "_name_gfs1p_1" }, An = (e) => e.isMyApp === !0, jn = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
1147
1149
  let [a, o] = P(!1), s = A(() => {
1148
1150
  if (n) {
1149
1151
  o((e) => !e);
@@ -1155,7 +1157,7 @@ var ht = /* @__PURE__ */ function(e) {
1155
1157
  t,
1156
1158
  n
1157
1159
  ]);
1158
- if (!On(e) || r && !r(e)) return null;
1160
+ if (!An(e) || r && !r(e)) return null;
1159
1161
  let c = /* @__PURE__ */ W(we, {
1160
1162
  label: i,
1161
1163
  iconBefore: /* @__PURE__ */ W(nt, {
@@ -1180,14 +1182,14 @@ var ht = /* @__PURE__ */ function(e) {
1180
1182
  renderOverlay: () => n(e, () => o(!1)),
1181
1183
  children: c
1182
1184
  }) : c;
1183
- }, An = (e) => e === n.ApiKey ? "Manage API keys" : "Manage credentials", jn = {
1185
+ }, Mn = (e) => e === n.ApiKey ? "Manage API keys" : "Manage credentials", Nn = {
1184
1186
  [gt.LimitReached]: "bg-error text-error",
1185
1187
  [gt.RunningLow]: "bg-warning text-warning"
1186
- }, Mn = ({ status: e, label: t }) => /* @__PURE__ */ W("div", {
1187
- className: k("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", jn[e]),
1188
+ }, Pn = ({ status: e, label: t }) => /* @__PURE__ */ W("div", {
1189
+ className: k("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", Nn[e]),
1188
1190
  children: t
1189
- }), Nn = ({ item: e, onUseInChat: t, isPrimaryActionVisible: r, onShare: i, shareOverlay: a, isShareVisible: o, isSharePrimary: s, onEdit: c, onDownload: l, isDownloadVisible: u, isDownloadPrimary: d, onDelete: f, onUnshare: p, isUnshareVisible: h, onRevokeShare: g, onFetchRecipientsCount: _, isRevokeShareVisible: x, onLogin: S, onLogout: w, onOpenCredentialsManagement: T, onRequestLogout: E, texts: D, detailsStyles: O, isPublishVisible: ee, isPublishPrimary: te, onOpenPublish: ne, isUnpublishVisible: re, hasPublishedFolders: ie = !1, isPublishHistoryResolved: ae = !0, onRequestPublishHistory: oe, onOpenUnpublish: se, isReadonly: F = !1 }) => {
1190
- let { nameClassName: ce = "dial-body-semi-text", folderLabelClassName: le = "dial-tiny-text", folderLeafClassName: I = "dial-tiny-semi-text" } = O?.typography ?? {}, ue = e.details?.limits?.status, de = ue == null ? void 0 : /* @__PURE__ */ W(Mn, {
1191
+ }), Fn = ({ item: e, onUseInChat: t, isPrimaryActionVisible: r, onShare: i, shareOverlay: a, isShareVisible: o, isSharePrimary: s, onEdit: c, onDownload: l, isDownloadVisible: u, isDownloadPrimary: d, onDelete: f, onUnshare: p, isUnshareVisible: h, onRevokeShare: g, onFetchRecipientsCount: _, isRevokeShareVisible: x, onLogin: S, onLogout: w, onOpenCredentialsManagement: T, onRequestLogout: E, texts: D, detailsStyles: O, isPublishVisible: ee, isPublishPrimary: te, onOpenPublish: ne, isUnpublishVisible: re, hasPublishedFolders: ie = !1, isPublishHistoryResolved: ae = !0, onRequestPublishHistory: oe, onOpenUnpublish: se, isReadonly: F = !1 }) => {
1192
+ let { nameClassName: ce = "dial-body-semi-text", folderLabelClassName: le = "dial-tiny-text", folderLeafClassName: I = "dial-tiny-semi-text" } = O?.typography ?? {}, ue = e.details?.limits?.status, de = ue == null ? void 0 : /* @__PURE__ */ W(Pn, {
1191
1193
  status: ue,
1192
1194
  label: ue === gt.LimitReached ? D?.limitReachedLabel ?? "Limit reached" : D?.limitRunningLowLabel ?? "Running low"
1193
1195
  }), pe = A(() => {
@@ -1238,21 +1240,21 @@ var ht = /* @__PURE__ */ function(e) {
1238
1240
  f?.(e);
1239
1241
  }, [e, f]), Ae = A(() => {
1240
1242
  g?.(e);
1241
- }, [e, g]), [je, B] = P(Cn.Idle), [Ne, Pe] = P(void 0), Fe = N(null);
1243
+ }, [e, g]), [je, B] = P(Tn.Idle), [Ne, Pe] = P(void 0), Fe = N(null);
1242
1244
  j(() => {
1243
- Fe.current = null, B(Cn.Idle), Pe(void 0);
1245
+ Fe.current = null, B(Tn.Idle), Pe(void 0);
1244
1246
  }, [e.id]);
1245
1247
  let V = A(() => {
1246
1248
  if (!_ || Fe.current === e.id || !g || e.isMyApp !== !0 || x?.(e) === !1) return;
1247
1249
  let t = e.id;
1248
- Fe.current = t, B(Cn.Loading), (async () => {
1250
+ Fe.current = t, B(Tn.Loading), (async () => {
1249
1251
  try {
1250
1252
  let n = await _(e);
1251
1253
  if (Fe.current !== t) return;
1252
- Pe(n), B(n == null ? Cn.Unknown : Cn.Resolved);
1254
+ Pe(n), B(n == null ? Tn.Unknown : Tn.Resolved);
1253
1255
  } catch {
1254
1256
  if (Fe.current !== t) return;
1255
- Pe(void 0), B(Cn.Unknown);
1257
+ Pe(void 0), B(Tn.Unknown);
1256
1258
  }
1257
1259
  })();
1258
1260
  }, [
@@ -1266,7 +1268,7 @@ var ht = /* @__PURE__ */ function(e) {
1266
1268
  V(), oe?.();
1267
1269
  }, [V, oe]), ze = A(() => {
1268
1270
  oe?.();
1269
- }, [oe]), Ve = D?.hasPrimaryAction !== !1 && (r?.(e) ?? (e.type === b.Model || e.type === b.Agent || e.type === b.Prompt)), He = !F && !!se && ie && (re?.(e) ?? !0), Ue = !F && !!se && !ae && re?.(e) === !0, Ke = !F && !He && (ee?.(e) ?? (e.type === b.Model || e.type === b.Toolset || e.type === b.Agent)), qe = !F && !!c && !!e.isEditable, Ye = !F && e.isMyApp === !0 && (o?.(e) ?? !0), Xe = s?.(e) ?? !0, tt = te?.(e) ?? !1, rt = e.credentials?.authenticationType ?? n.None, H = e.credentials != null && rt !== n.None ? m(e.credentials) : void 0, at = !F && H != null && (!!S || !!w), ot = e.type === b.Toolset && at, ut = !!l && (u?.(e) ?? !0), dt = ut && !ot && (d?.(e) ?? (e.type === b.Skill && !Ve)), ft = ut && !dt, pt = !F && e.isMyApp, mt = !F && !!p && e.isMyApp !== !0 && e.sharedWithMe === !0 && (h?.(e) ?? !0), ht = !F && !!g && e.isMyApp === !0 && (!_ || je === Cn.Unknown || je === Cn.Resolved && (Ne ?? 0) > 0) && (x?.(e) ?? !0), K = M(() => {
1271
+ }, [oe]), Ve = D?.hasPrimaryAction !== !1 && (r?.(e) ?? (e.type === b.Model || e.type === b.Agent || e.type === b.Prompt)), He = !F && !!se && ie && (re?.(e) ?? !0), Ue = !F && !!se && !ae && re?.(e) === !0, Ke = !F && !He && (ee?.(e) ?? (e.type === b.Model || e.type === b.Toolset || e.type === b.Agent)), qe = !F && !!c && !!e.isEditable, Ye = !F && e.isMyApp === !0 && (o?.(e) ?? !0), Xe = s?.(e) ?? !0, tt = te?.(e) ?? !1, rt = e.credentials?.authenticationType ?? n.None, H = e.credentials != null && rt !== n.None ? m(e.credentials) : void 0, at = !F && H != null && (!!S || !!w), ot = e.type === b.Toolset && at, ut = !!l && (u?.(e) ?? !0), dt = ut && !ot && (d?.(e) ?? (e.type === b.Skill && !Ve)), ft = ut && !dt, pt = !F && e.isMyApp, mt = !F && !!p && e.isMyApp !== !0 && e.sharedWithMe === !0 && (h?.(e) ?? !0), ht = !F && !!g && e.isMyApp === !0 && (!_ || je === Tn.Unknown || je === Tn.Resolved && (Ne ?? 0) > 0) && (x?.(e) ?? !0), K = M(() => {
1270
1272
  let e = [];
1271
1273
  if (!Xe && Ye && e.push({
1272
1274
  key: "share",
@@ -1373,12 +1375,12 @@ var ht = /* @__PURE__ */ function(e) {
1373
1375
  ke,
1374
1376
  Ae,
1375
1377
  Oe
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(() => {
1378
+ ]), [q, J] = P(!1), _t = rt === n.ApiKey && H !== y.ManageCredentials, Y = rt === n.ApiKey && H === y.LogOut, vt = rt !== n.ApiKey && H !== y.ManageCredentials && H === y.LogOut, yt = A(() => {
1377
1379
  if (H === y.ManageCredentials) {
1378
1380
  T?.();
1379
1381
  return;
1380
1382
  }
1381
- if (Y) {
1383
+ if (_t) {
1382
1384
  J((e) => !e);
1383
1385
  return;
1384
1386
  }
@@ -1389,12 +1391,12 @@ var ht = /* @__PURE__ */ function(e) {
1389
1391
  S?.(e, { level: v.User });
1390
1392
  }, [
1391
1393
  H,
1392
- Y,
1394
+ _t,
1393
1395
  e,
1394
1396
  S,
1395
1397
  T,
1396
1398
  E
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, {
1399
+ ]), bt = H === y.ManageCredentials ? (D?.manageCredentialsActionLabel ?? Mn)(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", xt = H === y.ManageCredentials || rt === n.ApiKey ? /* @__PURE__ */ W(Je, {
1398
1400
  size: L.MD,
1399
1401
  stroke: R
1400
1402
  }) : H === y.LogOut ? /* @__PURE__ */ W(Qe, {
@@ -1403,30 +1405,30 @@ var ht = /* @__PURE__ */ function(e) {
1403
1405
  }) : /* @__PURE__ */ W(Ze, {
1404
1406
  size: L.MD,
1405
1407
  stroke: R
1406
- }), bt = H === y.ManageCredentials ? /* @__PURE__ */ W(Le, {
1408
+ }), St = H === y.ManageCredentials ? /* @__PURE__ */ W(Le, {
1407
1409
  size: L.MD,
1408
1410
  className: "rtl:scale-x-[-1]",
1409
1411
  stroke: R
1410
- }) : Y ? /* @__PURE__ */ W(Be, {
1412
+ }) : _t ? /* @__PURE__ */ W(Be, {
1411
1413
  size: L.MD,
1412
1414
  stroke: R
1413
- }) : void 0, Q = (t) => {
1415
+ }) : void 0, X = (t) => {
1414
1416
  let n = /* @__PURE__ */ W(t, {
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
1417
+ label: bt,
1418
+ iconBefore: xt,
1419
+ iconAfter: St,
1420
+ onClick: yt,
1421
+ "aria-haspopup": _t ? "dialog" : void 0,
1422
+ "aria-expanded": _t ? q : void 0
1421
1423
  });
1422
- return !Y || e.credentials == null ? n : /* @__PURE__ */ W(fe, {
1424
+ return !_t || e.credentials == null ? n : /* @__PURE__ */ W(fe, {
1423
1425
  placement: "bottom-start",
1424
1426
  matchReferenceWidth: !1,
1425
1427
  open: q,
1426
1428
  onOpenChange: J,
1427
1429
  trigger: [],
1428
1430
  outsideClosable: !0,
1429
- renderOverlay: () => /* @__PURE__ */ W(En, {
1431
+ renderOverlay: () => /* @__PURE__ */ W(On, {
1430
1432
  item: e,
1431
1433
  level: v.User,
1432
1434
  status: e.credentials?.userStatus,
@@ -1438,7 +1440,7 @@ var ht = /* @__PURE__ */ function(e) {
1438
1440
  }),
1439
1441
  children: n
1440
1442
  });
1441
- }, xt = () => {
1443
+ }, Z = () => {
1442
1444
  let t = /* @__PURE__ */ W(fe, {
1443
1445
  items: K,
1444
1446
  placement: "bottom-end",
@@ -1466,13 +1468,13 @@ var ht = /* @__PURE__ */ function(e) {
1466
1468
  renderOverlay: () => a(e, De),
1467
1469
  children: t
1468
1470
  });
1469
- }, St = ot || Ve || dt || Xe && Ye || tt && He || tt && Ke || at && !ot || K.length > 0 || Ue;
1471
+ }, Ct = ot || Ve || dt || Xe && Ye || tt && He || tt && Ke || at && !ot || K.length > 0 || Ue;
1470
1472
  return /* @__PURE__ */ G("div", {
1471
1473
  className: "flex flex-col gap-3 px-6 py-4",
1472
1474
  children: [/* @__PURE__ */ W(C, {
1473
1475
  item: e,
1474
1476
  iconSize: 52,
1475
- nameClassName: k(ce, Dn.name),
1477
+ nameClassName: k(ce, kn.name),
1476
1478
  featuredLabel: D?.featuredLabel ?? "Featured",
1477
1479
  featuredChipStyle: O?.colors?.featuredChipStyle,
1478
1480
  statusBadge: de,
@@ -1481,10 +1483,10 @@ var ht = /* @__PURE__ */ function(e) {
1481
1483
  labelClassName: le,
1482
1484
  leafClassName: I
1483
1485
  }) : void 0
1484
- }), St && /* @__PURE__ */ G("div", {
1486
+ }), Ct && /* @__PURE__ */ G("div", {
1485
1487
  className: "flex flex-wrap items-center gap-2 ps-[60px]",
1486
1488
  children: [
1487
- ot && Q(X || Z ? we : Ee),
1489
+ ot && X(Y || vt ? we : Ee),
1488
1490
  Ve && /* @__PURE__ */ W(Ee, {
1489
1491
  label: D?.primaryActionLabel ?? "Use in chat",
1490
1492
  iconBefore: /* @__PURE__ */ W(et, { size: L.MD }),
@@ -1510,7 +1512,7 @@ var ht = /* @__PURE__ */ function(e) {
1510
1512
  className: "sr-only",
1511
1513
  children: D?.downloadingStatusLabel ?? "Downloading"
1512
1514
  })] }),
1513
- Xe && Ye && /* @__PURE__ */ W(kn, {
1515
+ Xe && Ye && /* @__PURE__ */ W(jn, {
1514
1516
  item: e,
1515
1517
  onShare: i,
1516
1518
  shareOverlay: a,
@@ -1539,12 +1541,12 @@ var ht = /* @__PURE__ */ function(e) {
1539
1541
  onMouseEnter: ze,
1540
1542
  onFocus: ze
1541
1543
  }),
1542
- at && !ot && Q(we),
1543
- (K.length > 0 || Ue) && xt()
1544
+ at && !ot && X(we),
1545
+ (K.length > 0 || Ue) && Z()
1544
1546
  ]
1545
1547
  })]
1546
1548
  });
1547
- }, Pn = ({ topics: e, content: t, detailsStyles: n }) => {
1549
+ }, In = ({ topics: e, content: t, detailsStyles: n }) => {
1548
1550
  let r = n?.typography?.contentHeadingClassName ?? "dial-small-semi-text", i = n?.typography?.contentClassName ?? "dial-small-text";
1549
1551
  return /* @__PURE__ */ G("div", {
1550
1552
  className: "flex flex-col gap-5",
@@ -1563,21 +1565,21 @@ var ht = /* @__PURE__ */ function(e) {
1563
1565
  }
1564
1566
  }), e && e.length > 0 && /* @__PURE__ */ W("div", {
1565
1567
  className: "flex flex-wrap gap-2",
1566
- children: e.map((e) => /* @__PURE__ */ W($, { label: e }, e))
1568
+ children: e.map((e) => /* @__PURE__ */ W(Lt, { label: e }, e))
1567
1569
  })]
1568
1570
  });
1569
- }, Fn = {
1571
+ }, Ln = {
1570
1572
  divider: "_divider_1gzl9_1",
1571
1573
  fileCount: "_fileCount_1gzl9_5",
1572
1574
  body: "_body_1gzl9_9"
1573
- }, In = (e, t, n = void 0) => e.flatMap((e) => {
1575
+ }, Rn = (e, t, n = void 0) => e.flatMap((e) => {
1574
1576
  let r = {
1575
1577
  node: e,
1576
1578
  parentId: n
1577
1579
  };
1578
- return e.type === Z.File || !t.has(e.id) ? [r] : [r, ...In(e.items, t, e.id)];
1579
- }), Ln = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
1580
- let c = M(() => In(e, n), [e, n]), l = N({}), [u, d] = P(() => t ?? c[0]?.node.id);
1580
+ return e.type === yt.File || !t.has(e.id) ? [r] : [r, ...Rn(e.items, t, e.id)];
1581
+ }), zn = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
1582
+ let c = M(() => Rn(e, n), [e, n]), l = N({}), [u, d] = P(() => t ?? c[0]?.node.id);
1581
1583
  j(() => {
1582
1584
  u != null && l.current[u]?.focus();
1583
1585
  }, []);
@@ -1601,14 +1603,14 @@ var ht = /* @__PURE__ */ function(e) {
1601
1603
  break;
1602
1604
  }
1603
1605
  case "ArrowRight":
1604
- e.preventDefault(), o.node.type === Z.Folder && !n.has(o.node.id) && r(o.node.id);
1606
+ e.preventDefault(), o.node.type === yt.Folder && !n.has(o.node.id) && r(o.node.id);
1605
1607
  break;
1606
1608
  case "ArrowLeft":
1607
- e.preventDefault(), o.node.type === Z.Folder && n.has(o.node.id) ? r(o.node.id) : o.parentId != null && f(o.parentId);
1609
+ e.preventDefault(), o.node.type === yt.Folder && n.has(o.node.id) ? r(o.node.id) : o.parentId != null && f(o.parentId);
1608
1610
  break;
1609
1611
  case "Enter":
1610
1612
  case " ":
1611
- e.preventDefault(), o.node.type === Z.Folder ? r(o.node.id) : i(o.node.id);
1613
+ e.preventDefault(), o.node.type === yt.Folder ? r(o.node.id) : i(o.node.id);
1612
1614
  break;
1613
1615
  case "Escape":
1614
1616
  e.preventDefault(), a();
@@ -1617,7 +1619,7 @@ var ht = /* @__PURE__ */ function(e) {
1617
1619
  }
1618
1620
  }, 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
1621
  let a = e.id === u;
1620
- if (e.type === Z.File) {
1622
+ if (e.type === yt.File) {
1621
1623
  let n = e.id === t;
1622
1624
  return /* @__PURE__ */ W("div", {
1623
1625
  ref: (t) => {
@@ -1676,14 +1678,14 @@ var ht = /* @__PURE__ */ function(e) {
1676
1678
  onKeyDown: p,
1677
1679
  children: e.map((e) => h(e))
1678
1680
  });
1679
- }, Rn = () => void 0, zn = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = Rn, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = Rn, fileSelectorAriaLabel: u = "Select file", fileCountLabel: d = (e) => `${e} files`, fileLoadingLabel: f = "Loading file", fileUnsupportedLabel: p = "Preview is not supported for this file", filePreview: m, filePreviewContent: h, detailsStyles: g }) => {
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
+ }, Bn = () => void 0, Vn = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = Bn, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = Bn, fileSelectorAriaLabel: u = "Select file", fileCountLabel: d = (e) => `${e} files`, fileLoadingLabel: f = "Loading file", fileUnsupportedLabel: p = "Preview is not supported for this file", filePreview: m, filePreviewContent: h, detailsStyles: g }) => {
1682
+ 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 = Gt(x) > 1, C = qt(x, r) ?? "", w = (e) => {
1681
1683
  i?.(e), l(!1);
1682
1684
  }, T = a ? {
1683
- type: _t.Text,
1685
+ type: bt.Text,
1684
1686
  text: ""
1685
1687
  } : m ?? {
1686
- type: _t.Markdown,
1688
+ type: bt.Markdown,
1687
1689
  text: e
1688
1690
  };
1689
1691
  return /* @__PURE__ */ G("div", {
@@ -1698,7 +1700,7 @@ var ht = /* @__PURE__ */ function(e) {
1698
1700
  matchReferenceWidth: !1,
1699
1701
  listClassName: "w-[280px]",
1700
1702
  placement: "bottom-start",
1701
- renderOverlay: () => /* @__PURE__ */ W(Ln, {
1703
+ renderOverlay: () => /* @__PURE__ */ W(zn, {
1702
1704
  nodes: x,
1703
1705
  selectedFileId: r,
1704
1706
  expandedFolderIds: o,
@@ -1715,16 +1717,16 @@ var ht = /* @__PURE__ */ function(e) {
1715
1717
  onClick: () => l(!c)
1716
1718
  })
1717
1719
  }), /* @__PURE__ */ W("span", {
1718
- className: k("shrink-0", y, Fn.fileCount),
1719
- children: d(Ut(x))
1720
+ className: k("shrink-0", y, Ln.fileCount),
1721
+ children: d(Gt(x))
1720
1722
  })]
1721
1723
  }),
1722
1724
  b && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("p", {
1723
1725
  className: k("m-0", _),
1724
1726
  children: t
1725
- }), /* @__PURE__ */ W("div", { className: k("shrink-0", Fn.divider) })] }),
1727
+ }), /* @__PURE__ */ W("div", { className: k("shrink-0", Ln.divider) })] }),
1726
1728
  /* @__PURE__ */ G("div", {
1727
- className: k("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && Fn.body, h == null && _),
1729
+ className: k("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && Ln.body, h == null && _),
1728
1730
  children: [a && /* @__PURE__ */ W("span", {
1729
1731
  role: "status",
1730
1732
  className: "sr-only",
@@ -1732,21 +1734,21 @@ var ht = /* @__PURE__ */ function(e) {
1732
1734
  }), (() => {
1733
1735
  if (h != null) return h;
1734
1736
  switch (T.type) {
1735
- case _t.Markdown: return /* @__PURE__ */ W(ee, {
1737
+ case bt.Markdown: return /* @__PURE__ */ W(ee, {
1736
1738
  content: T.text,
1737
1739
  headingClassName: v
1738
1740
  });
1739
- case _t.Text: return /* @__PURE__ */ W(D, {
1741
+ case bt.Text: return /* @__PURE__ */ W(D, {
1740
1742
  language: T.language ?? "",
1741
1743
  value: T.text,
1742
1744
  hideDownload: !0
1743
1745
  });
1744
- case _t.Image: return /* @__PURE__ */ W("img", {
1746
+ case bt.Image: return /* @__PURE__ */ W("img", {
1745
1747
  src: T.url,
1746
1748
  alt: C,
1747
1749
  className: "max-w-full"
1748
1750
  });
1749
- case _t.Unsupported: return /* @__PURE__ */ W("p", {
1751
+ case bt.Unsupported: return /* @__PURE__ */ W("p", {
1750
1752
  className: "m-0",
1751
1753
  children: p
1752
1754
  });
@@ -1755,113 +1757,150 @@ var ht = /* @__PURE__ */ function(e) {
1755
1757
  })
1756
1758
  ]
1757
1759
  });
1758
- }, Bn = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), Vn = /* @__PURE__ */ function(e) {
1760
+ }, Hn = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), Un = /* @__PURE__ */ function(e) {
1759
1761
  return e.Default = "default", e.Warning = "warning", e.Danger = "danger", e;
1760
- }({}), Hn = (e) => !Number.isFinite(e.used) || !Number.isFinite(e.total) ? 0 : Math.min(Math.max(e.used, 0), Math.max(e.total, 0)), Un = (e) => Number.isFinite(e) && e > 0 ? e : 1, Wn = ({ used: e, total: t, valueLabel: n }) => n ?? `${Bn.format(e)} / ${Bn.format(t)}`, Gn = ({ total: e }) => Number.isFinite(e) && e > 0, Kn = (e) => e.isUnlimited !== !0 && Gn(e), qn = (e) => Gn(e) ? Math.max(e.used, 0) / e.total : 0, Jn = (e) => {
1761
- let t = qn(e);
1762
+ }({}), Wn = (e) => !Number.isFinite(e.used) || !Number.isFinite(e.total) ? 0 : Math.min(Math.max(e.used, 0), Math.max(e.total, 0)), Gn = (e) => Number.isFinite(e) && e > 0 ? e : 1, Kn = ({ used: e, total: t, valueLabel: n }) => n ?? `${Hn.format(e)} / ${Hn.format(t)}`, qn = ({ total: e }) => Number.isFinite(e) && e > 0, Jn = (e) => e.isUnlimited !== !0 && qn(e), Yn = (e) => qn(e) ? Math.max(e.used, 0) / e.total : 0, Xn = (e) => {
1763
+ let t = Yn(e);
1762
1764
  return t >= 1 ? "danger" : t >= .75 ? "warning" : "default";
1763
- }, Yn = {
1764
- sectionHeading: "_sectionHeading_ltnqp_1",
1765
- label: "_label_ltnqp_5",
1766
- valuePrimary: "_valuePrimary_ltnqp_9",
1767
- divider: "_divider_ltnqp_13",
1768
- progressTrack: "_progressTrack_ltnqp_19",
1769
- progressFillDefault: "_progressFillDefault_ltnqp_24",
1770
- progressFillWarning: "_progressFillWarning_ltnqp_28",
1771
- progressFillDanger: "_progressFillDanger_ltnqp_32"
1772
- }, Xn = ({ row: e, labelClassName: t, captionClassName: n, valueClassName: r, noteValueClassName: i, noteClassName: a }) => {
1773
- let o = Wn(e);
1774
- return /* @__PURE__ */ G("li", {
1775
- className: k("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", Yn.divider),
1765
+ }, $ = {
1766
+ sectionHeading: "_sectionHeading_10rw6_1",
1767
+ label: "_label_10rw6_5",
1768
+ valuePrimary: "_valuePrimary_10rw6_9",
1769
+ divider: "_divider_10rw6_13",
1770
+ progressTrack: "_progressTrack_10rw6_19",
1771
+ progressFillDefault: "_progressFillDefault_10rw6_24",
1772
+ progressFillWarning: "_progressFillWarning_10rw6_28",
1773
+ progressFillDanger: "_progressFillDanger_10rw6_32",
1774
+ resetLabel: "_resetLabel_10rw6_39",
1775
+ valueDanger: "_valueDanger_10rw6_44"
1776
+ }, Zn = ({ row: e, layout: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => {
1777
+ let s = Kn(e), c = Xn(e), l = /* @__PURE__ */ W(De, {
1778
+ value: Wn(e),
1779
+ max: Gn(e.total),
1780
+ size: pe.Small,
1781
+ className: k("!h-1 w-full", $.progressTrack, c === Un.Default && $.progressFillDefault, c === Un.Warning && $.progressFillWarning, c === Un.Danger && $.progressFillDanger),
1782
+ "aria-label": e.label,
1783
+ "aria-valuetext": e.ariaLabel ?? s
1784
+ }), u = e.captionLabel != null && /* @__PURE__ */ W("span", {
1785
+ className: k("break-words", r, $.label),
1786
+ children: e.captionLabel
1787
+ }), d = e.resetLabel != null && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("time", {
1788
+ dateTime: e.resetIsoValue,
1789
+ "aria-hidden": e.resetAriaLabel != null || void 0,
1790
+ className: k("break-words", r, $.resetLabel),
1791
+ children: e.resetLabel
1792
+ }), e.resetAriaLabel != null && /* @__PURE__ */ W("span", {
1793
+ className: "sr-only",
1794
+ children: e.resetAriaLabel
1795
+ })] });
1796
+ return t === vt.Stacked ? /* @__PURE__ */ G("li", {
1797
+ className: k("flex flex-col gap-2 border-b py-3 first:pt-0 last:border-b-0 last:pb-0", $.divider),
1798
+ children: [
1799
+ /* @__PURE__ */ G("div", {
1800
+ className: "flex items-baseline justify-between gap-3",
1801
+ children: [/* @__PURE__ */ W("span", {
1802
+ className: k("min-w-0 break-words", n, $.valuePrimary),
1803
+ children: e.label
1804
+ }), /* @__PURE__ */ W("span", {
1805
+ className: k("shrink-0", i, c === Un.Danger ? $.valueDanger : $.valuePrimary),
1806
+ children: s
1807
+ })]
1808
+ }),
1809
+ u,
1810
+ Jn(e) ? l : e.noteLabel != null && /* @__PURE__ */ W("span", {
1811
+ className: k(o, $.label),
1812
+ children: e.noteLabel
1813
+ }),
1814
+ d
1815
+ ]
1816
+ }) : /* @__PURE__ */ G("li", {
1817
+ className: k("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", $.divider),
1776
1818
  children: [/* @__PURE__ */ G("div", {
1777
1819
  className: "flex min-w-0 flex-1 flex-col",
1778
- children: [/* @__PURE__ */ W("span", {
1779
- className: k("break-words", t, Yn.label),
1780
- children: e.label
1781
- }), e.captionLabel != null && /* @__PURE__ */ W("span", {
1782
- className: k("break-words", n, Yn.label),
1783
- children: e.captionLabel
1784
- })]
1785
- }), Kn(e) ? /* @__PURE__ */ G("div", {
1820
+ children: [
1821
+ /* @__PURE__ */ W("span", {
1822
+ className: k("break-words", n, $.label),
1823
+ children: e.label
1824
+ }),
1825
+ u,
1826
+ d
1827
+ ]
1828
+ }), Jn(e) ? /* @__PURE__ */ G("div", {
1786
1829
  className: "flex w-32 shrink-0 flex-col items-end gap-2",
1787
1830
  children: [/* @__PURE__ */ W("div", {
1788
- className: k("flex gap-1", r),
1831
+ className: k("flex gap-1", i),
1789
1832
  children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("span", {
1790
- className: Yn.valuePrimary,
1833
+ className: $.valuePrimary,
1791
1834
  children: e.usedLabel
1792
1835
  }), /* @__PURE__ */ W("span", {
1793
- className: Yn.label,
1836
+ className: $.label,
1794
1837
  children: ` / ${e.totalLabel}`
1795
1838
  })] }) : /* @__PURE__ */ W("span", {
1796
- className: Yn.label,
1797
- children: o
1839
+ className: $.label,
1840
+ children: s
1798
1841
  })
1799
- }), /* @__PURE__ */ W(De, {
1800
- value: Hn(e),
1801
- max: Un(e.total),
1802
- size: pe.Small,
1803
- className: k("!h-1 w-full", Yn.progressTrack, Jn(e) === Vn.Default && Yn.progressFillDefault, Jn(e) === Vn.Warning && Yn.progressFillWarning, Jn(e) === Vn.Danger && Yn.progressFillDanger),
1804
- "aria-label": e.label,
1805
- "aria-valuetext": e.ariaLabel ?? o
1806
- })]
1842
+ }), l]
1807
1843
  }) : /* @__PURE__ */ G("div", {
1808
1844
  className: "flex shrink-0 flex-col items-end",
1809
1845
  children: [/* @__PURE__ */ W("span", {
1810
- className: k(i, Yn.valuePrimary),
1811
- children: o
1846
+ className: k(a, $.valuePrimary),
1847
+ children: s
1812
1848
  }), e.noteLabel != null && /* @__PURE__ */ W("span", {
1813
- className: k(a, Yn.label),
1849
+ className: k(o, $.label),
1814
1850
  children: e.noteLabel
1815
1851
  })]
1816
1852
  })]
1817
1853
  });
1818
- }, Zn = ({ group: e, sectionClassName: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ W("p", {
1819
- className: k("mb-3 mt-0", t, Yn.sectionHeading),
1854
+ }, Qn = ({ group: e, sectionClassName: t, layout: n, labelClassName: r, captionClassName: i, valueClassName: a, noteValueClassName: o, noteClassName: s }) => /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ W("p", {
1855
+ className: k("mb-3 mt-0", t, $.sectionHeading),
1820
1856
  children: e.label
1821
1857
  }), /* @__PURE__ */ W("ul", {
1822
1858
  className: "m-0 flex list-none flex-col p-0",
1823
- children: e.rows.map((e) => /* @__PURE__ */ W(Xn, {
1859
+ children: e.rows.map((e) => /* @__PURE__ */ W(Zn, {
1824
1860
  row: e,
1825
- labelClassName: n,
1826
- captionClassName: r,
1827
- valueClassName: i,
1828
- noteValueClassName: a,
1829
- noteClassName: o
1861
+ layout: n,
1862
+ labelClassName: r,
1863
+ captionClassName: i,
1864
+ valueClassName: a,
1865
+ noteValueClassName: o,
1866
+ noteClassName: s
1830
1867
  }, e.label))
1831
- })] }), Qn = ({ limits: e, labelClassName: t = "dial-small-semi-text", captionClassName: n = "dial-caption-text", valueClassName: r = "dial-tiny-text", noteValueClassName: i = "dial-tiny-semi-text", noteClassName: a = "dial-caption-text", sectionClassName: o = "dial-caption-text", footerClassName: s = "dial-caption-text", footerNote: c, colors: l }) => {
1832
- let u = e?.groups.filter((e) => e.rows.length > 0);
1833
- return u == null || u.length === 0 ? null : /* @__PURE__ */ G("div", {
1868
+ })] }), $n = ({ limits: e, layout: t = vt.Inline, labelClassName: n = "dial-small-semi-text", captionClassName: r = "dial-caption-text", valueClassName: i = "dial-tiny-text", noteValueClassName: a = "dial-tiny-semi-text", noteClassName: o = "dial-caption-text", sectionClassName: s = "dial-caption-text", footerClassName: c = "dial-caption-text", footerNote: l, colors: u }) => {
1869
+ let d = e?.groups.filter((e) => e.rows.length > 0);
1870
+ return d == null || d.length === 0 ? null : /* @__PURE__ */ G("div", {
1834
1871
  className: "flex flex-col gap-6",
1835
1872
  style: ie({
1836
- "--lt-section-heading": l?.sectionHeading,
1837
- "--lt-label": l?.label,
1838
- "--lt-value-primary": l?.valuePrimary,
1839
- "--lt-divider": l?.divider,
1840
- "--lt-progress-track": l?.progressTrack,
1841
- "--lt-progress-fill-default": l?.progressFillDefault,
1842
- "--lt-progress-fill-warning": l?.progressFillWarning,
1843
- "--lt-progress-fill-danger": l?.progressFillDanger
1873
+ "--lt-section-heading": u?.sectionHeading,
1874
+ "--lt-label": u?.label,
1875
+ "--lt-value-primary": u?.valuePrimary,
1876
+ "--lt-value-danger": u?.valueDanger,
1877
+ "--lt-divider": u?.divider,
1878
+ "--lt-progress-track": u?.progressTrack,
1879
+ "--lt-progress-fill-default": u?.progressFillDefault,
1880
+ "--lt-progress-fill-warning": u?.progressFillWarning,
1881
+ "--lt-progress-fill-danger": u?.progressFillDanger
1844
1882
  }),
1845
- children: [u.map((e) => /* @__PURE__ */ W(Zn, {
1883
+ children: [d.map((e) => /* @__PURE__ */ W(Qn, {
1846
1884
  group: e,
1847
- sectionClassName: o,
1848
- labelClassName: t,
1849
- captionClassName: n,
1850
- valueClassName: r,
1851
- noteValueClassName: i,
1852
- noteClassName: a
1853
- }, e.label)), c != null && /* @__PURE__ */ W("p", {
1854
- className: k("m-0 border-t pt-4", s, Yn.divider, Yn.label),
1855
- children: c
1885
+ layout: t,
1886
+ sectionClassName: s,
1887
+ labelClassName: n,
1888
+ captionClassName: r,
1889
+ valueClassName: i,
1890
+ noteValueClassName: a,
1891
+ noteClassName: o
1892
+ }, e.label)), l != null && /* @__PURE__ */ W("p", {
1893
+ className: k("m-0 border-t pt-4", c, $.divider, $.label),
1894
+ children: l
1856
1895
  })]
1857
1896
  });
1858
- }, $n = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ W("div", {
1897
+ }, er = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ W("div", {
1859
1898
  className: "flex flex-col gap-4",
1860
1899
  children: e.map((e, s) => /* @__PURE__ */ G("div", {
1861
1900
  className: "flex flex-col gap-4",
1862
- children: [s > 0 && /* @__PURE__ */ W("div", { className: k("shrink-0 border-b", Sn.divider) }), /* @__PURE__ */ W("div", {
1901
+ children: [s > 0 && /* @__PURE__ */ W("div", { className: k("shrink-0 border-b", wn.divider) }), /* @__PURE__ */ W("div", {
1863
1902
  className: "px-6",
1864
- children: /* @__PURE__ */ W(Jt, {
1903
+ children: /* @__PURE__ */ W(Xt, {
1865
1904
  sectionLabel: e.title,
1866
1905
  values: e.specs,
1867
1906
  sectionClassName: t,
@@ -1873,7 +1912,7 @@ var ht = /* @__PURE__ */ function(e) {
1873
1912
  })
1874
1913
  })]
1875
1914
  }, s))
1876
- }) : null, er = ({ pricing: e, pricesSectionLabel: t = "Token pricing", limitsSectionLabel: n = "Usage limits", labelClassName: r = "dial-small-semi-text", valueClassName: i = "dial-small-text", sectionClassName: a = "dial-caption-text" }) => {
1915
+ }) : null, tr = ({ pricing: e, pricesSectionLabel: t = "Token pricing", limitsSectionLabel: n = "Usage limits", labelClassName: r = "dial-small-semi-text", valueClassName: i = "dial-small-text", sectionClassName: a = "dial-caption-text" }) => {
1877
1916
  if (e == null) return null;
1878
1917
  let o = e.prices?.map((e) => ({
1879
1918
  label: e.label,
@@ -1884,13 +1923,13 @@ var ht = /* @__PURE__ */ function(e) {
1884
1923
  }));
1885
1924
  return /* @__PURE__ */ G("div", {
1886
1925
  className: "flex flex-col gap-4",
1887
- children: [/* @__PURE__ */ W(Jt, {
1926
+ children: [/* @__PURE__ */ W(Xt, {
1888
1927
  sectionLabel: t,
1889
1928
  values: o ?? [],
1890
1929
  labelClassName: r,
1891
1930
  valueClassName: i,
1892
1931
  sectionClassName: a
1893
- }), /* @__PURE__ */ W(Jt, {
1932
+ }), /* @__PURE__ */ W(Xt, {
1894
1933
  sectionLabel: n,
1895
1934
  values: s ?? [],
1896
1935
  labelClassName: r,
@@ -1898,32 +1937,32 @@ var ht = /* @__PURE__ */ function(e) {
1898
1937
  sectionClassName: a
1899
1938
  })]
1900
1939
  });
1901
- }, tr = {
1940
+ }, nr = {
1902
1941
  container: "_container_ddi3i_1",
1903
1942
  header: "_header_ddi3i_5",
1904
1943
  cell: "_cell_ddi3i_10",
1905
1944
  evenRow: "_evenRow_ddi3i_17"
1906
- }, nr = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
1945
+ }, rr = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
1907
1946
  let a = n ?? `repeat(${e.length}, 1fr)`;
1908
1947
  return /* @__PURE__ */ G("div", {
1909
- className: k(tr.container, "grid overflow-hidden rounded-md"),
1948
+ className: k(nr.container, "grid overflow-hidden rounded-md"),
1910
1949
  style: { gridTemplateColumns: a },
1911
1950
  children: [e.map((e) => /* @__PURE__ */ W("div", {
1912
- className: k("px-2 py-1 text-start", r, tr.header),
1951
+ className: k("px-2 py-1 text-start", r, nr.header),
1913
1952
  children: e
1914
1953
  }, e)), t.map((e, t) => /* @__PURE__ */ W(ae, { children: e.map((e, n) => /* @__PURE__ */ W("div", {
1915
- className: k("px-2 py-1.5", i, tr.cell, t % 2 == 1 ? tr.evenRow : void 0),
1954
+ className: k("px-2 py-1.5", i, nr.cell, t % 2 == 1 ? nr.evenRow : void 0),
1916
1955
  children: e
1917
1956
  }, n)) }, t))]
1918
1957
  });
1919
- }, rr = {
1958
+ }, ir = {
1920
1959
  divider: "_divider_1f796_1",
1921
1960
  description: "_description_1f796_5",
1922
1961
  code: "_code_1f796_9"
1923
- }, ir = ({ tools: e, toolNameClassName: t = "dial-small-semi-text", descriptionClassName: n = "dial-small-text", tableHeadingClassName: r = "dial-caption-text", tableCellClassName: i = "dial-tiny-text" }) => e == null ? null : /* @__PURE__ */ W("div", {
1962
+ }, ar = ({ tools: e, toolNameClassName: t = "dial-small-semi-text", descriptionClassName: n = "dial-small-text", tableHeadingClassName: r = "dial-caption-text", tableCellClassName: i = "dial-tiny-text" }) => e == null ? null : /* @__PURE__ */ W("div", {
1924
1963
  className: "flex flex-col",
1925
1964
  children: e.tools.map((e, a) => /* @__PURE__ */ G("div", {
1926
- className: k("flex flex-col gap-3 px-[22px] py-4", a > 0 ? rr.divider : void 0),
1965
+ className: k("flex flex-col gap-3 px-[22px] py-4", a > 0 ? ir.divider : void 0),
1927
1966
  children: [
1928
1967
  /* @__PURE__ */ G("div", {
1929
1968
  className: "flex flex-col gap-1",
@@ -1931,11 +1970,11 @@ var ht = /* @__PURE__ */ function(e) {
1931
1970
  className: t,
1932
1971
  children: e.name
1933
1972
  }), e.description != null && /* @__PURE__ */ W("p", {
1934
- className: k("m-0", n, rr.description),
1973
+ className: k("m-0", n, ir.description),
1935
1974
  children: e.description
1936
1975
  })]
1937
1976
  }),
1938
- e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ W(nr, {
1977
+ e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ W(rr, {
1939
1978
  columns: [
1940
1979
  "Name",
1941
1980
  "Type",
@@ -1944,11 +1983,11 @@ var ht = /* @__PURE__ */ function(e) {
1944
1983
  columnsTemplate: "1fr 1fr auto",
1945
1984
  rows: e.inputParams.map((e) => [
1946
1985
  /* @__PURE__ */ W("code", {
1947
- className: k("text-inherit border-none bg-transparent p-0", rr.code),
1986
+ className: k("text-inherit border-none bg-transparent p-0", ir.code),
1948
1987
  children: e.name
1949
1988
  }, "name"),
1950
1989
  /* @__PURE__ */ W("code", {
1951
- className: k("text-inherit border-none bg-transparent p-0", rr.code),
1990
+ className: k("text-inherit border-none bg-transparent p-0", ir.code),
1952
1991
  children: e.type
1953
1992
  }, "type"),
1954
1993
  e.isRequired ? "✓" : "—"
@@ -1956,10 +1995,10 @@ var ht = /* @__PURE__ */ function(e) {
1956
1995
  headingClassName: r,
1957
1996
  cellClassName: i
1958
1997
  }),
1959
- e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ W(nr, {
1998
+ e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ W(rr, {
1960
1999
  columns: ["Key", "Value"],
1961
2000
  rows: e.annotations.map((e) => [/* @__PURE__ */ W("code", {
1962
- className: k("text-inherit border-none bg-transparent p-0", rr.code),
2001
+ className: k("text-inherit border-none bg-transparent p-0", ir.code),
1963
2002
  children: e.key
1964
2003
  }, "key"), e.value]),
1965
2004
  headingClassName: r,
@@ -1967,23 +2006,23 @@ var ht = /* @__PURE__ */ function(e) {
1967
2006
  })
1968
2007
  ]
1969
2008
  }, e.name))
1970
- }), ar = new Set([b.Prompt, b.Skill]), or = (e) => e?.resource?.endpointUrl != null || (e?.endpoints?.length ?? 0) > 0, sr = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), cr = async () => void 0, lr = [], ur = [], dr = [
2009
+ }), or = new Set([b.Prompt, b.Skill]), sr = (e) => e?.resource?.endpointUrl != null || (e?.endpoints?.length ?? 0) > 0, cr = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), lr = async () => void 0, ur = [], dr = [], fr = [
1971
2010
  "All shared configurations will be lost",
1972
2011
  "Users who rely on it will lose access",
1973
2012
  "Cannot be undone"
1974
- ], fr = [
2013
+ ], pr = [
1975
2014
  "You will lose access to this item",
1976
2015
  "Other people keep their access",
1977
2016
  "You will need a new invitation to get it back"
1978
- ], pr = [
2017
+ ], mr = [
1979
2018
  "Everyone loses access to the published copy",
1980
2019
  "Your own copy is not deleted",
1981
2020
  "You can publish it again later"
1982
- ], mr = [
2021
+ ], hr = [
1983
2022
  "Everyone you shared it with loses access",
1984
2023
  "Existing share links stop working",
1985
2024
  "You keep full access — nothing is deleted"
1986
- ], hr = (e) => e === n.ApiKey ? "Toolset API keys" : "Toolset credentials", gr = (e) => e === v.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", _r = new Set([q.Delete, q.Unshare]), vr = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, isReadonly: i = !1, onClose: a, onToggleFavorite: o, isFavoriteVisible: s, onUseInChat: l, isPrimaryActionVisible: u, onShare: f, isPublishVisible: p, isPublishPrimary: m, getPublishHistory: h, publishFolderItems: g = lr, publishExpandedPaths: _, onPublishExpandedPathsChange: y, publishLoadingPaths: b, hasPublishWriteAccess: x, publishDefaultAuthor: S, onPublish: C, onPublishSuccess: w, onPublishError: T, onCreatePublishFolder: E, publishLabels: D, ruleSourceOptions: O = ur, onFetchExistingRules: ee, shareOverlay: te, isShareVisible: ne, isSharePrimary: re, onEdit: ae, onDownload: oe, isDownloadVisible: se, isDownloadPrimary: F, onLoadContentFile: ce, onLoadContentFilePreview: le, renderContentFilePreview: I, onDelete: L, onUnshare: de, isUnshareVisible: fe, onRevokeShare: me, onFetchRecipientsCount: he, isRevokeShareVisible: ge, onUnpublish: ve, isUnpublishVisible: ye, onLogin: be, onLogout: xe, texts: z, styles: Se, limitsFooterNote: Ce }) => {
2025
+ ], gr = (e) => e === n.ApiKey ? "Toolset API keys" : "Toolset credentials", _r = (e) => e === v.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", vr = new Set([q.Delete, q.Unshare]), yr = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, isReadonly: i = !1, onClose: a, onToggleFavorite: o, isFavoriteVisible: s, onUseInChat: l, isPrimaryActionVisible: u, onShare: f, isPublishVisible: p, isPublishPrimary: m, getPublishHistory: h, publishFolderItems: g = ur, publishExpandedPaths: _, onPublishExpandedPathsChange: y, publishLoadingPaths: b, hasPublishWriteAccess: x, publishDefaultAuthor: S, onPublish: C, onPublishSuccess: w, onPublishError: T, onCreatePublishFolder: E, publishLabels: D, ruleSourceOptions: O = dr, onFetchExistingRules: ee, shareOverlay: te, isShareVisible: ne, isSharePrimary: re, onEdit: ae, onDownload: oe, isDownloadVisible: se, isDownloadPrimary: F, onLoadContentFile: ce, onLoadContentFilePreview: le, renderContentFilePreview: I, onDelete: L, onUnshare: de, isUnshareVisible: fe, onRevokeShare: me, onFetchRecipientsCount: he, isRevokeShareVisible: ge, onUnpublish: ve, isUnpublishVisible: ye, onLogin: be, onLogout: xe, texts: z, styles: Se, limitsFooterNote: Ce }) => {
1987
2026
  let { subViewTitleClassName: we = "dial-body-semi-text", overviewSectionClassName: Te = "dial-caption-text", overviewLabelClassName: Ee = "dial-small-semi-text", overviewValueClassName: De = "dial-small-text", overviewValueTrueClassName: ke = "dial-small-text", confirmMessageClassName: Ae = "dial-small-text" } = Se?.typography ?? {}, B = Se?.colors, Me = ie({
1988
2027
  "--cat-details-backdrop": B?.backdrop,
1989
2028
  "--cat-details-bg": B?.background,
@@ -2021,11 +2060,11 @@ var ht = /* @__PURE__ */ function(e) {
2021
2060
  "--cat-cred-card-title-text": B?.credentialsCardTitleText,
2022
2061
  "--cat-cred-card-description-text": B?.credentialsCardDescriptionText
2023
2062
  }), [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 === _t.Image ? e.preview.url : null;
2063
+ let t = it.current, n = e?.preview?.type === bt.Image ? e.preview.url : null;
2025
2064
  t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), it.current = n, Qe(e);
2026
2065
  }, []);
2027
2066
  j(() => {
2028
- at.current += 1, ot(null), et(!1), nt(Wt(Ye?.files ?? [])), H(!1);
2067
+ at.current += 1, ot(null), et(!1), nt(Kt(Ye?.files ?? [])), H(!1);
2029
2068
  }, [e.id, Xe]), j(() => () => {
2030
2069
  let e = it.current;
2031
2070
  e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
@@ -2055,11 +2094,11 @@ var ht = /* @__PURE__ */ function(e) {
2055
2094
  }), et(!0);
2056
2095
  try {
2057
2096
  let n = le == null ? await ce?.(e).then((e) => e == null ? void 0 : {
2058
- type: _t.Markdown,
2097
+ type: bt.Markdown,
2059
2098
  text: e
2060
2099
  }) : await le(e);
2061
2100
  if (at.current !== t) {
2062
- n?.type === _t.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
2101
+ n?.type === bt.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
2063
2102
  return;
2064
2103
  }
2065
2104
  ot({
@@ -2082,9 +2121,9 @@ var ht = /* @__PURE__ */ function(e) {
2082
2121
  I,
2083
2122
  ot
2084
2123
  ]), lt = Ze?.id ?? Xe, mt = () => Ze == null ? null : Ze.preview == null ? {
2085
- type: _t.Text,
2124
+ type: bt.Text,
2086
2125
  text: z?.contentFileErrorLabel ?? "Failed to load this file."
2087
- } : Ze.preview, ht = Ze != null && I != null ? I(Ze.id, Gt(Ye?.files ?? [], Ze.id) ?? "") : void 0, gt = A(() => {
2126
+ } : Ze.preview, ht = Ze != null && I != null ? I(Ze.id, qt(Ye?.files ?? [], Ze.id) ?? "") : void 0, gt = A(() => {
2088
2127
  if (!h || Je.current === e.id) return;
2089
2128
  let t = e.id;
2090
2129
  Je.current = t, Ue(!0), Ge(!1), (async () => {
@@ -2101,46 +2140,46 @@ var ht = /* @__PURE__ */ function(e) {
2101
2140
  j(() => {
2102
2141
  Le && gt();
2103
2142
  }, [Le, gt]);
2104
- let Y = A((e, t) => {
2143
+ let _t = A((e, t) => {
2105
2144
  Je.current = null, qe(!1), gt(), w?.(e, t);
2106
- }, [gt, w]), X = pt({
2145
+ }, [gt, w]), Y = pt({
2107
2146
  item: e,
2108
2147
  history: ze,
2109
2148
  folderItems: g,
2110
2149
  hasWriteAccess: x,
2111
2150
  defaultAuthor: S,
2112
2151
  onCreateFolder: E,
2113
- onPublish: C ?? cr,
2114
- onPublishSuccess: Y,
2152
+ onPublish: C ?? lr,
2153
+ onPublishSuccess: _t,
2115
2154
  onPublishError: T,
2116
2155
  onFetchExistingRules: ee
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
2156
+ }), vt = M(() => ft({
2157
+ hasSelectedFolder: Y.selectedFolderPath != null,
2158
+ hasExistingPublicationInFolder: Y.hasExistingPublicationInFolder,
2159
+ hasWriteAccess: Y.hasWriteAccess,
2160
+ isSubmitting: Y.isSubmitting,
2161
+ hasSubmitError: Y.hasSubmitError
2123
2162
  }), [
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);
2163
+ Y.selectedFolderPath,
2164
+ Y.hasExistingPublicationInFolder,
2165
+ Y.hasWriteAccess,
2166
+ Y.isSubmitting,
2167
+ Y.hasSubmitError
2168
+ ]), [yt, xt] = P(!1), [St, X] = P(null), [Z, Ct] = P(!1), [wt, Tt] = P(null), [Et, Dt] = P(null), [Ot, Q] = P(null);
2130
2169
  j(() => {
2131
2170
  Fe(n);
2132
2171
  }, [e.id, n]), j(() => {
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);
2172
+ Ie(""), Re(!1), Y.reset(), Be([]), Ge(!1), Ue(!1), qe(!1), Je.current = null, Q(null), xt(!1), X(null), Ct(!1), Tt(null), Dt(null);
2134
2173
  }, [e.id]);
2135
- let kt = A(() => yt(!0), []), At = A(() => yt(!1), []), jt = A(() => {
2136
- Q(q.Delete);
2174
+ let kt = A(() => xt(!0), []), At = A(() => xt(!1), []), jt = A(() => {
2175
+ X(q.Delete);
2137
2176
  }, []), Mt = A((t) => {
2138
- Et(t ?? (e.credentials == null ? null : c(e.credentials))), Q(q.Logout);
2139
- }, [e.credentials]), Pt = A(() => {
2140
- Q(q.Unshare);
2177
+ Dt(t ?? (e.credentials == null ? null : c(e.credentials))), X(q.Logout);
2178
+ }, [e.credentials]), Nt = A(() => {
2179
+ X(q.Unshare);
2141
2180
  }, []), Ft = A(() => {
2142
- Q(q.RevokeAccess);
2143
- }, []), $ = M(() => {
2181
+ X(q.RevokeAccess);
2182
+ }, []), It = M(() => {
2144
2183
  let e = /* @__PURE__ */ new Set(), t = [];
2145
2184
  for (let n of ze) {
2146
2185
  let r = n.folderPath.join("/");
@@ -2150,17 +2189,17 @@ var ht = /* @__PURE__ */ function(e) {
2150
2189
  }));
2151
2190
  }
2152
2191
  return t;
2153
- }, [ze]), It = Ke && $.length > 0, Lt = A((e) => e || (D?.rootFolderLabel ?? "Organization"), [D]), Rt = A(() => {
2154
- Q(q.Unpublish);
2155
- }, []), zt = A((e) => {
2156
- wt(e), Q(q.DeleteApiKey);
2157
- }, []), Bt = A(() => {
2158
- xt || (Q(null), wt(null), Et(null), Ot(null));
2159
- }, [xt]), Vt = A(async () => {
2160
- if (!(xt || bt == null)) {
2161
- St(!0);
2192
+ }, [ze]), Lt = Ke && It.length > 0, Rt = A((e) => e || (D?.rootFolderLabel ?? "Organization"), [D]), zt = A(() => {
2193
+ X(q.Unpublish);
2194
+ }, []), Bt = A((e) => {
2195
+ Tt(e), X(q.DeleteApiKey);
2196
+ }, []), Vt = A(() => {
2197
+ Z || (X(null), Tt(null), Dt(null), Q(null));
2198
+ }, [Z]), Ht = A(async () => {
2199
+ if (!(Z || St == null)) {
2200
+ Ct(!0);
2162
2201
  try {
2163
- switch (bt) {
2202
+ switch (St) {
2164
2203
  case q.Delete:
2165
2204
  await L?.(e);
2166
2205
  break;
@@ -2171,36 +2210,36 @@ var ht = /* @__PURE__ */ function(e) {
2171
2210
  await me?.(e);
2172
2211
  break;
2173
2212
  case q.Logout:
2174
- Tt != null && await xe?.(e, { level: Tt });
2213
+ Et != null && await xe?.(e, { level: Et });
2175
2214
  break;
2176
2215
  case q.DeleteApiKey:
2177
- Ct != null && await xe?.(e, { level: Ct });
2216
+ wt != null && await xe?.(e, { level: wt });
2178
2217
  break;
2179
2218
  case q.Unpublish: {
2180
- let t = sr($, Dt);
2219
+ let t = cr(It, Ot);
2181
2220
  t != null && await ve?.(e, t.segments);
2182
2221
  break;
2183
2222
  }
2184
2223
  }
2185
- Q(null), wt(null), Et(null), Ot(null), _r.has(bt) && a();
2224
+ X(null), Tt(null), Dt(null), Q(null), vr.has(St) && a();
2186
2225
  } catch {
2187
- Q(null), wt(null), Et(null), Ot(null);
2226
+ X(null), Tt(null), Dt(null), Q(null);
2188
2227
  } finally {
2189
- St(!1);
2228
+ Ct(!1);
2190
2229
  }
2191
2230
  }
2192
2231
  }, [
2193
- xt,
2194
- bt,
2195
- Ct,
2196
- Tt,
2232
+ Z,
2233
+ St,
2234
+ wt,
2235
+ Et,
2197
2236
  e,
2198
2237
  L,
2199
2238
  de,
2200
2239
  me,
2201
2240
  ve,
2202
- Dt,
2203
- $,
2241
+ Ot,
2242
+ It,
2204
2243
  xe,
2205
2244
  a
2206
2245
  ]);
@@ -2208,8 +2247,8 @@ var ht = /* @__PURE__ */ function(e) {
2208
2247
  if (!t) return;
2209
2248
  let e = (e) => {
2210
2249
  if (e.key === "Escape") {
2211
- if (bt != null) {
2212
- Bt();
2250
+ if (St != null) {
2251
+ Vt();
2213
2252
  return;
2214
2253
  }
2215
2254
  a();
@@ -2219,22 +2258,22 @@ var ht = /* @__PURE__ */ function(e) {
2219
2258
  }, [
2220
2259
  t,
2221
2260
  a,
2222
- bt,
2223
- Bt
2261
+ St,
2262
+ Vt
2224
2263
  ]);
2225
- let Ht = A(() => Re(!0), []), Ut = A(() => {
2226
- Re(!1), X.reset();
2227
- }, [X]), Kt = A(async () => {
2228
- await X.handleSubmit() && Ut();
2229
- }, [X, Ut]), qt = A(() => {
2264
+ let Ut = A(() => Re(!0), []), Wt = A(() => {
2265
+ Re(!1), Y.reset();
2266
+ }, [Y]), Gt = A(async () => {
2267
+ await Y.handleSubmit() && Wt();
2268
+ }, [Y, Wt]), Jt = A(() => {
2230
2269
  let t = !Pe;
2231
2270
  Fe(t), o?.(e.id, t);
2232
2271
  }, [
2233
2272
  Pe,
2234
2273
  e.id,
2235
2274
  o
2236
- ]), Jt = M(() => {
2237
- let t = [], n = ar.has(e.type);
2275
+ ]), Yt = M(() => {
2276
+ let t = [], n = or.has(e.type);
2238
2277
  return n || t.push({
2239
2278
  id: K.About,
2240
2279
  label: z?.tabAboutLabel ?? "About"
@@ -2253,21 +2292,21 @@ var ht = /* @__PURE__ */ function(e) {
2253
2292
  }), e.details?.tools != null && t.push({
2254
2293
  id: K.Tools,
2255
2294
  label: z?.tabToolsLabel ?? "Tools"
2256
- }), or(e.details?.api) && t.push({
2295
+ }), sr(e.details?.api) && t.push({
2257
2296
  id: K.Api,
2258
2297
  label: z?.tabConnectLabel ?? "Connect"
2259
2298
  }), t;
2260
- }, [e, z]), Yt = N(null);
2299
+ }, [e, z]), Xt = N(null);
2261
2300
  j(() => {
2262
- let t = Yt.current !== e.id;
2263
- Yt.current = e.id, (t || !Jt.some((e) => e.id === V)) && Ie(Jt[0]?.id ?? "");
2301
+ let t = Xt.current !== e.id;
2302
+ Xt.current = e.id, (t || !Yt.some((e) => e.id === V)) && Ie(Yt[0]?.id ?? "");
2264
2303
  }, [
2265
2304
  e.id,
2266
- Jt,
2305
+ Yt,
2267
2306
  V
2268
2307
  ]);
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 (bt) {
2308
+ let Zt = z?.overviewYesLabel ?? "Yes", Qt = z?.overviewNoLabel ?? "No", $t = z?.ariaLabel ?? "Item details", en = z?.closeAriaLabel ?? "Close", nn = Pe ? z?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : z?.addToFavoritesAriaLabel ?? "Add to favorites", an = z?.publishTitle ?? "Publish", on = z?.backToDetailsAriaLabel ?? "Back", cn = z?.cancelLabel ?? "Cancel", ln = M(() => {
2309
+ switch (St) {
2271
2310
  case q.Delete: {
2272
2311
  let t = z?.deleteActionLabel ?? "Delete";
2273
2312
  return {
@@ -2277,7 +2316,7 @@ var ht = /* @__PURE__ */ function(e) {
2277
2316
  /* @__PURE__ */ W("strong", { children: e.name }),
2278
2317
  "? This action is permanent and cannot be undone."
2279
2318
  ] }),
2280
- consequences: z?.deleteConfirmConsequences ?? dr,
2319
+ consequences: z?.deleteConfirmConsequences ?? fr,
2281
2320
  confirmLabel: t,
2282
2321
  loadingStatusLabel: z?.deletingStatusLabel ?? "Deleting",
2283
2322
  variant: J.Danger
@@ -2292,7 +2331,7 @@ var ht = /* @__PURE__ */ function(e) {
2292
2331
  /* @__PURE__ */ W("strong", { children: e.name }),
2293
2332
  " from your list? You'll need a new invitation to access it again."
2294
2333
  ] }),
2295
- consequences: z?.unshareConfirmConsequences ?? fr,
2334
+ consequences: z?.unshareConfirmConsequences ?? pr,
2296
2335
  confirmLabel: t,
2297
2336
  loadingStatusLabel: z?.unsharingStatusLabel ?? "Removing",
2298
2337
  variant: J.Info
@@ -2307,14 +2346,14 @@ var ht = /* @__PURE__ */ function(e) {
2307
2346
  /* @__PURE__ */ W("strong", { children: e.name }),
2308
2347
  "? Anyone you shared it with will lose access."
2309
2348
  ] }),
2310
- consequences: z?.revokeShareConfirmConsequences ?? mr,
2349
+ consequences: z?.revokeShareConfirmConsequences ?? hr,
2311
2350
  confirmLabel: t,
2312
2351
  loadingStatusLabel: z?.revokingShareStatusLabel ?? "Revoking access",
2313
2352
  variant: J.Danger
2314
2353
  };
2315
2354
  }
2316
2355
  case q.Unpublish: {
2317
- let t = z?.unpublishLabel ?? "Unpublish", n = $.length === 1, r = n ? Lt($[0].key) : "", i = z?.unpublishConfirmMessage?.(e.name, r) ?? /* @__PURE__ */ G(U, { children: [
2356
+ let t = z?.unpublishLabel ?? "Unpublish", n = It.length === 1, r = n ? Rt(It[0].key) : "", i = z?.unpublishConfirmMessage?.(e.name, r) ?? /* @__PURE__ */ G(U, { children: [
2318
2357
  "Unpublish ",
2319
2358
  /* @__PURE__ */ W("strong", { children: e.name }),
2320
2359
  " from \"",
@@ -2328,7 +2367,7 @@ var ht = /* @__PURE__ */ function(e) {
2328
2367
  return {
2329
2368
  title: z?.unpublishConfirmTitle ?? t,
2330
2369
  message: n ? i : a,
2331
- consequences: z?.unpublishConfirmConsequences ?? pr,
2370
+ consequences: z?.unpublishConfirmConsequences ?? mr,
2332
2371
  confirmLabel: t,
2333
2372
  loadingStatusLabel: z?.unpublishingStatusLabel ?? "Requesting unpublish",
2334
2373
  variant: J.Danger
@@ -2346,10 +2385,10 @@ var ht = /* @__PURE__ */ function(e) {
2346
2385
  };
2347
2386
  }
2348
2387
  case q.DeleteApiKey: {
2349
- let e = z?.deleteActionLabel ?? "Delete", t = Ct ?? v.User;
2388
+ let e = z?.deleteActionLabel ?? "Delete", t = wt ?? v.User;
2350
2389
  return {
2351
2390
  title: e,
2352
- message: (z?.deleteApiKeyConfirmMessage ?? gr)(t),
2391
+ message: (z?.deleteApiKeyConfirmMessage ?? _r)(t),
2353
2392
  consequences: void 0,
2354
2393
  confirmLabel: e,
2355
2394
  loadingStatusLabel: z?.deletingStatusLabel ?? "Deleting",
@@ -2360,56 +2399,56 @@ var ht = /* @__PURE__ */ function(e) {
2360
2399
  default: return null;
2361
2400
  }
2362
2401
  }, [
2363
- bt,
2402
+ St,
2364
2403
  e.name,
2365
- Ct,
2404
+ wt,
2366
2405
  z,
2367
- $,
2368
- Lt
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
- title: cn.title,
2371
- isBackDisabled: xt,
2372
- onBack: Bt
2406
+ It,
2407
+ Rt
2408
+ ]), un = ln != null, dn = St === q.Unpublish && cr(It, Ot) == null, fn = un || Le || yt, pn = e.credentials == null ? "" : (z?.credentialsManagementTitle ?? gr)(e.credentials.authenticationType), mn = un ? {
2409
+ title: ln.title,
2410
+ isBackDisabled: Z,
2411
+ onBack: Vt
2373
2412
  } : Le ? {
2374
- title: rn,
2375
- isBackDisabled: X.isSubmitting,
2376
- onBack: Ut
2377
- } : vt ? {
2378
- title: fn,
2413
+ title: an,
2414
+ isBackDisabled: Y.isSubmitting,
2415
+ onBack: Wt
2416
+ } : yt ? {
2417
+ title: pn,
2379
2418
  isBackDisabled: !1,
2380
2419
  onBack: At
2381
- } : null, mn = pn?.title ?? Qt;
2420
+ } : null, hn = mn?.title ?? $t;
2382
2421
  return /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("div", {
2383
2422
  style: Me,
2384
- className: k("fixed inset-0 z-50 transition-opacity duration-300", Sn.backdrop, t ? "opacity-100" : "pointer-events-none opacity-0"),
2423
+ className: k("fixed inset-0 z-50 transition-opacity duration-300", wn.backdrop, t ? "opacity-100" : "pointer-events-none opacity-0"),
2385
2424
  onClick: a,
2386
2425
  "aria-hidden": "true"
2387
2426
  }), /* @__PURE__ */ G("div", {
2388
2427
  role: "dialog",
2389
2428
  "aria-modal": "true",
2390
- "aria-label": mn,
2429
+ "aria-label": hn,
2391
2430
  style: Me,
2392
- className: k("fixed inset-y-0 end-0 z-50 flex flex-col overflow-hidden mobile:w-full", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", Sn.panel, t ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
2431
+ className: k("fixed inset-y-0 end-0 z-50 flex flex-col overflow-hidden mobile:w-full", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", wn.panel, t ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
2393
2432
  children: [
2394
2433
  /* @__PURE__ */ G("div", {
2395
2434
  className: "flex shrink-0 items-center gap-2 px-6 py-3",
2396
- children: [pn != null && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(_e, {
2435
+ children: [mn != null && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(_e, {
2397
2436
  icon: /* @__PURE__ */ W(Ve, {
2398
2437
  className: "rtl:scale-x-[-1]",
2399
2438
  stroke: R
2400
2439
  }),
2401
2440
  "aria-label": on,
2402
- disabled: pn.isBackDisabled,
2403
- onClick: pn.onBack
2441
+ disabled: mn.isBackDisabled,
2442
+ onClick: mn.onBack
2404
2443
  }), /* @__PURE__ */ W("span", {
2405
- className: k("flex-1", we, Sn.publishTitle),
2406
- children: pn.title
2407
- })] }), pn == null && /* @__PURE__ */ G(U, { children: [
2444
+ className: k("flex-1", we, wn.publishTitle),
2445
+ children: mn.title
2446
+ })] }), mn == null && /* @__PURE__ */ G(U, { children: [
2408
2447
  /* @__PURE__ */ W("div", { className: "flex-1" }),
2409
- !i && s?.(e) !== !1 && /* @__PURE__ */ W(Nt, {
2448
+ !i && s?.(e) !== !1 && /* @__PURE__ */ W(Pt, {
2410
2449
  isStarred: Pe,
2411
2450
  ariaLabel: nn,
2412
- onClick: qt
2451
+ onClick: Jt
2413
2452
  }),
2414
2453
  /* @__PURE__ */ W(ue, {
2415
2454
  onClose: a,
@@ -2418,37 +2457,37 @@ var ht = /* @__PURE__ */ function(e) {
2418
2457
  })
2419
2458
  ] })]
2420
2459
  }),
2421
- /* @__PURE__ */ W("div", { className: k("shrink-0", Sn.divider) }),
2460
+ /* @__PURE__ */ W("div", { className: k("shrink-0", wn.divider) }),
2422
2461
  /* @__PURE__ */ G("div", {
2423
- className: k("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", Sn.content),
2462
+ className: k("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", wn.content),
2424
2463
  children: [
2425
- ln && /* @__PURE__ */ W(an, {
2464
+ un && /* @__PURE__ */ W(sn, {
2426
2465
  item: e,
2427
- message: cn.message,
2428
- consequences: cn.consequences,
2429
- variant: cn.cardVariant ?? cn.variant,
2466
+ message: ln.message,
2467
+ consequences: ln.consequences,
2468
+ variant: ln.cardVariant ?? ln.variant,
2430
2469
  messageClassName: Ae,
2431
- children: bt === q.Unpublish && $.length > 1 && /* @__PURE__ */ W(Oe, {
2470
+ children: St === q.Unpublish && It.length > 1 && /* @__PURE__ */ W(Oe, {
2432
2471
  ariaLabel: z?.unpublishFolderGroupAriaLabel ?? "Published folders",
2433
- value: Dt ?? void 0,
2434
- onChange: Ot,
2435
- disabled: xt,
2436
- items: $.map((e) => ({
2472
+ value: Ot ?? void 0,
2473
+ onChange: Q,
2474
+ disabled: Z,
2475
+ items: It.map((e) => ({
2437
2476
  value: e.key,
2438
- label: Lt(e.key)
2477
+ label: Rt(e.key)
2439
2478
  })),
2440
2479
  radioClassName: Ae
2441
2480
  })
2442
2481
  }),
2443
- !ln && !Le && vt && /* @__PURE__ */ W(xn, {
2482
+ !un && !Le && yt && /* @__PURE__ */ W(Cn, {
2444
2483
  item: e,
2445
2484
  onLogin: be,
2446
2485
  onRequestLogout: Mt,
2447
- onRequestDeleteApiKey: zt,
2486
+ onRequestDeleteApiKey: Bt,
2448
2487
  texts: z,
2449
2488
  detailsStyles: Se
2450
2489
  }),
2451
- !ln && Le && /* @__PURE__ */ W("div", {
2490
+ !un && Le && /* @__PURE__ */ W("div", {
2452
2491
  className: "p-[22px]",
2453
2492
  children: /* @__PURE__ */ W(dt, {
2454
2493
  resource: {
@@ -2460,24 +2499,24 @@ var ht = /* @__PURE__ */ function(e) {
2460
2499
  history: ze,
2461
2500
  isHistoryLoading: He,
2462
2501
  hasHistoryError: We,
2463
- folderItems: X.folderItems,
2464
- selectedFolderPath: X.selectedFolderPath,
2465
- onSelectedFolderPathChange: X.setSelectedFolderPath,
2466
- onCreateFolder: X.handleCreateFolder,
2502
+ folderItems: Y.folderItems,
2503
+ selectedFolderPath: Y.selectedFolderPath,
2504
+ onSelectedFolderPathChange: Y.setSelectedFolderPath,
2505
+ onCreateFolder: Y.handleCreateFolder,
2467
2506
  expandedPaths: _,
2468
2507
  onExpandedPathsChange: y,
2469
2508
  loadingPaths: b,
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,
2509
+ hasExistingPublicationInFolder: Y.hasExistingPublicationInFolder,
2510
+ hasWriteAccess: Y.hasWriteAccess,
2511
+ isSubmitting: Y.isSubmitting,
2512
+ hasSubmitError: Y.hasSubmitError,
2513
+ author: Y.author,
2514
+ onAuthorChange: Y.setAuthor,
2515
+ rules: Y.rules,
2516
+ onRulesChange: Y.setRules,
2478
2517
  ruleSourceOptions: O,
2479
- isRulesLoading: X.isRulesLoading,
2480
- hasRulesLoadError: X.hasRulesLoadError,
2518
+ isRulesLoading: Y.isRulesLoading,
2519
+ hasRulesLoadError: Y.hasRulesLoadError,
2481
2520
  labels: D,
2482
2521
  styles: { colors: {
2483
2522
  summaryVersionTagBorder: B?.versionTagBorder,
@@ -2486,8 +2525,8 @@ var ht = /* @__PURE__ */ function(e) {
2486
2525
  } }
2487
2526
  })
2488
2527
  }),
2489
- !dn && /* @__PURE__ */ G(U, { children: [
2490
- /* @__PURE__ */ W(Nn, {
2528
+ !fn && /* @__PURE__ */ G(U, { children: [
2529
+ /* @__PURE__ */ W(Fn, {
2491
2530
  item: e,
2492
2531
  onUseInChat: l,
2493
2532
  isPrimaryActionVisible: u,
@@ -2497,18 +2536,18 @@ var ht = /* @__PURE__ */ function(e) {
2497
2536
  isSharePrimary: re,
2498
2537
  isPublishVisible: p,
2499
2538
  isPublishPrimary: m,
2500
- onOpenPublish: Ht,
2539
+ onOpenPublish: Ut,
2501
2540
  isUnpublishVisible: ye,
2502
- hasPublishedFolders: It,
2541
+ hasPublishedFolders: Lt,
2503
2542
  isPublishHistoryResolved: h == null || Ke,
2504
2543
  onRequestPublishHistory: gt,
2505
- onOpenUnpublish: ve ? Rt : void 0,
2544
+ onOpenUnpublish: ve ? zt : void 0,
2506
2545
  onEdit: ae,
2507
2546
  onDownload: oe,
2508
2547
  isDownloadVisible: se,
2509
2548
  isDownloadPrimary: F,
2510
2549
  onDelete: L ? jt : void 0,
2511
- onUnshare: de ? Pt : void 0,
2550
+ onUnshare: de ? Nt : void 0,
2512
2551
  isUnshareVisible: fe,
2513
2552
  onRevokeShare: me ? Ft : void 0,
2514
2553
  onFetchRecipientsCount: he,
@@ -2525,7 +2564,7 @@ var ht = /* @__PURE__ */ function(e) {
2525
2564
  let t = d(e.credentials);
2526
2565
  return t != null && /* @__PURE__ */ W("div", {
2527
2566
  className: "px-6",
2528
- children: /* @__PURE__ */ W(_n, {
2567
+ children: /* @__PURE__ */ W(yn, {
2529
2568
  state: t,
2530
2569
  authenticationType: e.credentials.authenticationType,
2531
2570
  texts: z
@@ -2535,7 +2574,7 @@ var ht = /* @__PURE__ */ function(e) {
2535
2574
  /* @__PURE__ */ G("div", {
2536
2575
  className: "flex items-center px-6",
2537
2576
  children: [/* @__PURE__ */ W(Ne, {
2538
- tabs: Jt,
2577
+ tabs: Yt,
2539
2578
  activeTabId: V,
2540
2579
  onTabChange: Ie
2541
2580
  }), r && /* @__PURE__ */ W("div", {
@@ -2549,19 +2588,19 @@ var ht = /* @__PURE__ */ function(e) {
2549
2588
  width: "72px"
2550
2589
  },
2551
2590
  active: !0,
2552
- color: Sn.skeletonColor
2591
+ color: wn.skeletonColor
2553
2592
  })
2554
2593
  })]
2555
2594
  }),
2556
2595
  /* @__PURE__ */ G("div", {
2557
2596
  className: k("min-h-0 flex-1 overflow-y-auto", V !== K.Overview && "px-6"),
2558
2597
  children: [
2559
- V === K.About && /* @__PURE__ */ W(Pn, {
2598
+ V === K.About && /* @__PURE__ */ W(In, {
2560
2599
  content: e.description,
2561
2600
  topics: e.topics,
2562
2601
  detailsStyles: Se
2563
2602
  }),
2564
- V === K.Content && /* @__PURE__ */ W(zn, {
2603
+ V === K.Content && /* @__PURE__ */ W(Vn, {
2565
2604
  content: Ye?.content ?? "",
2566
2605
  filePreview: mt(),
2567
2606
  filePreviewContent: ht,
@@ -2580,25 +2619,25 @@ var ht = /* @__PURE__ */ function(e) {
2580
2619
  fileUnsupportedLabel: z?.contentFileUnsupportedLabel,
2581
2620
  detailsStyles: Se
2582
2621
  }),
2583
- V === K.Overview && /* @__PURE__ */ W($n, {
2622
+ V === K.Overview && /* @__PURE__ */ W(er, {
2584
2623
  sections: e.details?.overview?.sections,
2585
2624
  sectionClassName: Te,
2586
2625
  labelClassName: Ee,
2587
2626
  valueClassName: De,
2588
2627
  valueTrueClassName: ke,
2589
- yesLabel: Xt,
2590
- noLabel: Zt
2628
+ yesLabel: Zt,
2629
+ noLabel: Qt
2591
2630
  }),
2592
- V === K.Pricing && /* @__PURE__ */ W(er, {
2631
+ V === K.Pricing && /* @__PURE__ */ W(tr, {
2593
2632
  pricing: e.details?.pricing,
2594
2633
  pricesSectionLabel: z?.pricingPricesSectionLabel,
2595
2634
  limitsSectionLabel: z?.pricingLimitsSectionLabel
2596
2635
  }),
2597
- V === K.Limits && /* @__PURE__ */ W(Qn, {
2636
+ V === K.Limits && /* @__PURE__ */ W($n, {
2598
2637
  limits: e.details?.limits,
2599
2638
  footerNote: Ce
2600
2639
  }),
2601
- V === K.Api && or(e.details?.api) && /* @__PURE__ */ W($t, {
2640
+ V === K.Api && sr(e.details?.api) && /* @__PURE__ */ W(tn, {
2602
2641
  api: e.details?.api,
2603
2642
  resourceSectionLabel: z?.apiResourceSectionLabel,
2604
2643
  snippetSectionLabel: z?.apiSnippetSectionLabel,
@@ -2610,34 +2649,34 @@ var ht = /* @__PURE__ */ function(e) {
2610
2649
  copyAriaLabel: z?.copyCodeAriaLabel,
2611
2650
  copiedStatusLabel: z?.copiedCodeStatusLabel
2612
2651
  }),
2613
- V === K.Tools && /* @__PURE__ */ W(ir, { tools: e.details?.tools })
2652
+ V === K.Tools && /* @__PURE__ */ W(ar, { tools: e.details?.tools })
2614
2653
  ]
2615
2654
  })
2616
2655
  ] })
2617
2656
  ]
2618
2657
  }),
2619
- ln && /* @__PURE__ */ W(tn, {
2620
- confirmLabel: cn.confirmLabel,
2621
- cancelLabel: sn,
2622
- variant: cn.variant,
2623
- isLoading: xt,
2624
- isConfirmDisabled: un,
2625
- loadingStatusLabel: cn.loadingStatusLabel,
2626
- onConfirm: Vt,
2627
- onCancel: Bt
2658
+ un && /* @__PURE__ */ W(rn, {
2659
+ confirmLabel: ln.confirmLabel,
2660
+ cancelLabel: cn,
2661
+ variant: ln.variant,
2662
+ isLoading: Z,
2663
+ isConfirmDisabled: dn,
2664
+ loadingStatusLabel: ln.loadingStatusLabel,
2665
+ onConfirm: Ht,
2666
+ onCancel: Vt
2628
2667
  }),
2629
- !ln && Le && /* @__PURE__ */ W(ut, {
2668
+ !un && Le && /* @__PURE__ */ W(ut, {
2630
2669
  version: e.version,
2631
- hasExistingPublicationInFolder: X.hasExistingPublicationInFolder,
2632
- isSubmitDisabled: Z.isSubmitDisabled,
2633
- isSubmitLoading: Z.isSubmitLoading,
2634
- onCancel: Ut,
2635
- onSubmit: Kt,
2670
+ hasExistingPublicationInFolder: Y.hasExistingPublicationInFolder,
2671
+ isSubmitDisabled: vt.isSubmitDisabled,
2672
+ isSubmitLoading: vt.isSubmitLoading,
2673
+ onCancel: Wt,
2674
+ onSubmit: Gt,
2636
2675
  labels: D
2637
2676
  })
2638
2677
  ]
2639
2678
  })] });
2640
- }, yr = {
2679
+ }, br = {
2641
2680
  pageNav: "_pageNav_14qfn_1",
2642
2681
  navBtn: "_navBtn_14qfn_6",
2643
2682
  titleText: "_titleText_14qfn_23",
@@ -2652,7 +2691,7 @@ var ht = /* @__PURE__ */ function(e) {
2652
2691
  favFadeIn: "_favFadeIn_14qfn_1",
2653
2692
  cardLeaving: "_cardLeaving_14qfn_54",
2654
2693
  cardFadeOut: "_cardFadeOut_14qfn_1"
2655
- }, br = ({ item: e, initialIsStarred: t = !0, onToggle: n, isFavoriteVisible: r, onClick: i, nameClassName: a, colors: o, versionClassName: s, lastUsedClassName: c, query: l, addToFavoritesAriaLabel: u = "Add to favorites", removeFromFavoritesAriaLabel: d = "Remove from favorites", isSelected: f = !1, credentialsBadgeLoggedOutLabel: p }) => {
2694
+ }, xr = ({ item: e, initialIsStarred: t = !0, onToggle: n, isFavoriteVisible: r, onClick: i, nameClassName: a, colors: o, versionClassName: s, lastUsedClassName: c, query: l, addToFavoritesAriaLabel: u = "Add to favorites", removeFromFavoritesAriaLabel: d = "Remove from favorites", isSelected: f = !1, credentialsBadgeLoggedOutLabel: p }) => {
2656
2695
  let [m, h] = P(t), [g, _] = P(!1), v = (t) => {
2657
2696
  t.stopPropagation();
2658
2697
  let r = !m;
@@ -2669,7 +2708,7 @@ var ht = /* @__PURE__ */ function(e) {
2669
2708
  role: y == null ? void 0 : "button",
2670
2709
  tabIndex: y == null ? void 0 : 0,
2671
2710
  "aria-label": e.name,
2672
- className: k("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", g && yr.cardLeaving, f && yr.selectedCard),
2711
+ className: k("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", g && br.cardLeaving, f && br.selectedCard),
2673
2712
  onClick: y,
2674
2713
  onKeyDown: b,
2675
2714
  onAnimationEnd: g ? (t) => {
@@ -2678,19 +2717,19 @@ var ht = /* @__PURE__ */ function(e) {
2678
2717
  children: [
2679
2718
  f && /* @__PURE__ */ W(ze, {
2680
2719
  size: L.SM,
2681
- className: k("absolute end-3 top-3 shrink-0", yr.selectedCheck),
2720
+ className: k("absolute end-3 top-3 shrink-0", br.selectedCheck),
2682
2721
  "aria-hidden": !0,
2683
2722
  stroke: R
2684
2723
  }),
2685
2724
  /* @__PURE__ */ W("div", {
2686
2725
  className: "flex min-w-0 flex-1 flex-col items-start gap-1",
2687
- children: /* @__PURE__ */ W(kt, {
2726
+ children: /* @__PURE__ */ W(At, {
2688
2727
  icon: e.iconUrl,
2689
2728
  type: e.type,
2690
2729
  name: e.name,
2691
2730
  version: e.version,
2692
2731
  lastUsed: e.lastUsed,
2693
- size: Y.LG,
2732
+ size: _t.LG,
2694
2733
  query: l,
2695
2734
  className: "min-w-0 self-stretch",
2696
2735
  styles: {
@@ -2701,13 +2740,13 @@ var ht = /* @__PURE__ */ function(e) {
2701
2740
  lastUsedClassName: c
2702
2741
  }
2703
2742
  },
2704
- iconOverlay: /* @__PURE__ */ W(jt, {
2743
+ iconOverlay: /* @__PURE__ */ W(Mt, {
2705
2744
  credentials: e.credentials,
2706
2745
  loggedOutLabel: p
2707
2746
  })
2708
2747
  })
2709
2748
  }),
2710
- r?.(e) !== !1 && /* @__PURE__ */ W(Nt, {
2749
+ r?.(e) !== !1 && /* @__PURE__ */ W(Pt, {
2711
2750
  isStarred: m,
2712
2751
  size: pe.Small,
2713
2752
  onClick: v,
@@ -2716,7 +2755,7 @@ var ht = /* @__PURE__ */ function(e) {
2716
2755
  })
2717
2756
  ]
2718
2757
  });
2719
- }, xr = 2, Sr = (e) => {
2758
+ }, Sr = 2, Cr = (e) => {
2720
2759
  let t = e.getBoundingClientRect(), n = window.scrollX, r = window.scrollY, i = window.getComputedStyle(e).transform;
2721
2760
  if (!i || i === "none") return new DOMRect(t.x + n, t.y + r, t.width, t.height);
2722
2761
  try {
@@ -2725,7 +2764,7 @@ var ht = /* @__PURE__ */ function(e) {
2725
2764
  } catch {
2726
2765
  return new DOMRect(t.x + n, t.y + r, t.width, t.height);
2727
2766
  }
2728
- }, Cr = ({ items: e, totalCount: t, title: n = "Your Favorites", onToggleFavorite: r, isFavoriteVisible: i, onItemClick: a, styles: o, isLeaving: s, onExitComplete: c, prevPageAriaLabel: l = "Previous page", nextPageAriaLabel: u = "Next page", addToFavoritesAriaLabel: d, removeFromFavoritesAriaLabel: f, selectedItemId: p, credentialsBadgeLoggedOutLabel: m }) => {
2767
+ }, wr = ({ items: e, totalCount: t, title: n = "Your Favorites", onToggleFavorite: r, isFavoriteVisible: i, onItemClick: a, styles: o, isLeaving: s, onExitComplete: c, prevPageAriaLabel: l = "Previous page", nextPageAriaLabel: u = "Next page", addToFavoritesAriaLabel: d, removeFromFavoritesAriaLabel: f, selectedItemId: p, credentialsBadgeLoggedOutLabel: m }) => {
2729
2768
  let h = o?.typography?.titleClassName ?? "dial-body-semi-text", g = o?.typography?.countClassName ?? "dial-tiny-semi-text", _ = ie({
2730
2769
  "--cat-fav-title-text": o?.colors?.titleText,
2731
2770
  "--cat-fav-count-text": o?.colors?.countText,
@@ -2738,7 +2777,7 @@ var ht = /* @__PURE__ */ function(e) {
2738
2777
  "--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
2739
2778
  "--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
2740
2779
  "--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 = vt(), S = x * xr, C = (y - 1) * S, w = M(() => v.slice(C, C + S), [
2780
+ }), v = M(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = P(1), x = xt(), S = x * Sr, C = (y - 1) * S, w = M(() => v.slice(C, C + S), [
2742
2781
  v,
2743
2782
  C,
2744
2783
  S
@@ -2771,7 +2810,7 @@ var ht = /* @__PURE__ */ function(e) {
2771
2810
  ce.current = y, le.current = x;
2772
2811
  let n = te.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
2773
2812
  if (n.forEach((e) => {
2774
- r.set(e.dataset.cardId, Sr(e));
2813
+ r.set(e.dataset.cardId, Cr(e));
2775
2814
  }), !e && !t) {
2776
2815
  let e = ee.current, t = I.current, i = 0;
2777
2816
  if (e) {
@@ -2827,7 +2866,7 @@ var ht = /* @__PURE__ */ function(e) {
2827
2866
  ref: O,
2828
2867
  children: /* @__PURE__ */ G("section", {
2829
2868
  ref: ee,
2830
- className: k("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", yr.section, s && yr.sectionLeaving),
2869
+ className: k("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", br.section, s && br.sectionLeaving),
2831
2870
  style: {
2832
2871
  ..._,
2833
2872
  minHeight: ae
@@ -2838,16 +2877,16 @@ var ht = /* @__PURE__ */ function(e) {
2838
2877
  children: [/* @__PURE__ */ W(E, {
2839
2878
  title: n,
2840
2879
  postfix: D,
2841
- titleClassName: k(h, yr.titleText),
2842
- postfixClassName: k(g, yr.countText),
2880
+ titleClassName: k(h, br.titleText),
2881
+ postfixClassName: k(g, br.countText),
2843
2882
  trailing: T > 1 ? /* @__PURE__ */ G("div", {
2844
- className: k("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", yr.pageNav),
2883
+ className: k("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", br.pageNav),
2845
2884
  children: [
2846
2885
  /* @__PURE__ */ W("button", {
2847
2886
  "aria-label": l,
2848
2887
  disabled: y === 1,
2849
2888
  onClick: () => b((e) => e - 1),
2850
- className: k("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", yr.navBtn),
2889
+ className: k("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", br.navBtn),
2851
2890
  children: /* @__PURE__ */ W(Ve, {
2852
2891
  size: 14,
2853
2892
  className: "rtl:scale-x-[-1]",
@@ -2855,7 +2894,7 @@ var ht = /* @__PURE__ */ function(e) {
2855
2894
  })
2856
2895
  }),
2857
2896
  /* @__PURE__ */ G("span", {
2858
- className: k("min-w-[32px] select-none px-1 text-center", g, yr.countText),
2897
+ className: k("min-w-[32px] select-none px-1 text-center", g, br.countText),
2859
2898
  children: [
2860
2899
  y,
2861
2900
  " / ",
@@ -2866,7 +2905,7 @@ var ht = /* @__PURE__ */ function(e) {
2866
2905
  "aria-label": u,
2867
2906
  disabled: y === T,
2868
2907
  onClick: () => b((e) => e + 1),
2869
- className: k("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", yr.navBtn),
2908
+ className: k("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", br.navBtn),
2870
2909
  children: /* @__PURE__ */ W(He, {
2871
2910
  size: 14,
2872
2911
  className: "rtl:scale-x-[-1]",
@@ -2877,12 +2916,12 @@ var ht = /* @__PURE__ */ function(e) {
2877
2916
  }) : void 0
2878
2917
  }), /* @__PURE__ */ W("div", {
2879
2918
  ref: te,
2880
- className: k("grid content-start gap-5", yr.gridPage),
2919
+ className: k("grid content-start gap-5", br.gridPage),
2881
2920
  style: {
2882
2921
  gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
2883
2922
  minHeight: ne
2884
2923
  },
2885
- children: w.map((e) => /* @__PURE__ */ W(br, {
2924
+ children: w.map((e) => /* @__PURE__ */ W(xr, {
2886
2925
  item: e,
2887
2926
  onToggle: r,
2888
2927
  isFavoriteVisible: i,
@@ -2895,7 +2934,7 @@ var ht = /* @__PURE__ */ function(e) {
2895
2934
  })]
2896
2935
  })
2897
2936
  });
2898
- }, wr = {
2937
+ }, Tr = {
2899
2938
  listContainer: "_listContainer_145s6_1",
2900
2939
  gridClip: "_gridClip_145s6_6",
2901
2940
  favHeader: "_favHeader_145s6_43",
@@ -2904,19 +2943,19 @@ var ht = /* @__PURE__ */ function(e) {
2904
2943
  selectedCheck: "_selectedCheck_145s6_55",
2905
2944
  starToggleOff: "_starToggleOff_145s6_59",
2906
2945
  selectedRow: "_selectedRow_145s6_72"
2907
- }, Tr = ({ data: e }) => e ? /* @__PURE__ */ W("div", {
2946
+ }, Er = ({ data: e }) => e ? /* @__PURE__ */ W("div", {
2908
2947
  className: "flex h-full items-center",
2909
2948
  children: /* @__PURE__ */ W(w, { type: e.type })
2910
- }) : null, Er = " / ", Dr = ({ data: e, context: t }) => {
2949
+ }) : null, Dr = " / ", Or = ({ data: e, context: t }) => {
2911
2950
  if (!e || e.folder.length === 0) return null;
2912
- let n = e.folder.join(Er), r = e.folder[e.folder.length - 1], i = e.folder.length > 1, a = t?.typography?.folderClassName ?? "dial-small-text", o = t?.typography?.folderLastSegmentClassName ?? "dial-small-semi-text";
2951
+ let n = e.folder.join(Dr), r = e.folder[e.folder.length - 1], i = e.folder.length > 1, a = t?.typography?.folderClassName ?? "dial-small-text", o = t?.typography?.folderLastSegmentClassName ?? "dial-small-semi-text";
2913
2952
  return /* @__PURE__ */ G("div", {
2914
2953
  className: "flex h-full w-full min-w-0 items-center gap-1.5",
2915
2954
  children: [
2916
2955
  /* @__PURE__ */ W(qe, {
2917
2956
  size: L.SM,
2918
2957
  stroke: R,
2919
- className: k("shrink-0", wr.folderIcon),
2958
+ className: k("shrink-0", Tr.folderIcon),
2920
2959
  "aria-hidden": !0
2921
2960
  }),
2922
2961
  /* @__PURE__ */ W(Fe, {
@@ -2938,7 +2977,7 @@ var ht = /* @__PURE__ */ function(e) {
2938
2977
  })
2939
2978
  ]
2940
2979
  });
2941
- }, Or = ({ data: e, context: t }) => {
2980
+ }, kr = ({ data: e, context: t }) => {
2942
2981
  let n = t?.searchQuery ?? "", r = t?.typography, i = r?.nameClassName ?? "dial-small-semi-text", a = r?.versionClassName ?? "dial-tiny-text", o = e != null && e.id === t?.selectedItemId;
2943
2982
  return e ? /* @__PURE__ */ G("div", {
2944
2983
  className: "flex h-full w-full min-w-0 items-center gap-2.5",
@@ -2949,7 +2988,7 @@ var ht = /* @__PURE__ */ function(e) {
2949
2988
  size: 36,
2950
2989
  initialsName: e.name,
2951
2990
  styles: { badgeClassName: "rounded-[10px]" }
2952
- }), /* @__PURE__ */ W(jt, {
2991
+ }), /* @__PURE__ */ W(Mt, {
2953
2992
  credentials: e.credentials,
2954
2993
  loggedOutLabel: t?.credentialsBadgeLoggedOutLabel
2955
2994
  })]
@@ -2962,41 +3001,41 @@ var ht = /* @__PURE__ */ function(e) {
2962
3001
  className: "min-w-0 flex-1 items-baseline gap-1.5",
2963
3002
  trailing: o ? /* @__PURE__ */ W(ze, {
2964
3003
  size: L.SM,
2965
- className: k("shrink-0", wr.selectedCheck),
3004
+ className: k("shrink-0", Tr.selectedCheck),
2966
3005
  "aria-hidden": !0,
2967
3006
  stroke: R
2968
3007
  }) : void 0
2969
3008
  })]
2970
3009
  }) : null;
2971
- }, kr = ({ data: e, context: t }) => {
3010
+ }, Ar = ({ data: e, context: t }) => {
2972
3011
  let [n, r] = P(e?.isStarred ?? !1);
2973
3012
  return j(() => {
2974
3013
  r(e?.isStarred ?? !1);
2975
3014
  }, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ W("div", {
2976
3015
  className: "flex h-full items-center justify-end pe-4",
2977
- children: /* @__PURE__ */ W(Nt, {
3016
+ children: /* @__PURE__ */ W(Pt, {
2978
3017
  isStarred: n,
2979
3018
  onClick: (i) => {
2980
3019
  i.stopPropagation();
2981
3020
  let a = !n;
2982
3021
  r(a), t?.onToggleFavorite?.(e.id, a);
2983
3022
  },
2984
- className: n ? void 0 : wr.starToggleOff
3023
+ className: n ? void 0 : Tr.starToggleOff
2985
3024
  })
2986
3025
  });
2987
- }, Ar = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ W("div", {
3026
+ }, jr = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ W("div", {
2988
3027
  className: "flex h-full w-full min-w-0 items-center",
2989
- children: /* @__PURE__ */ W(Lt, { topics: e.topics })
2990
- }), jr = {
3028
+ children: /* @__PURE__ */ W(zt, { topics: e.topics })
3029
+ }), Mr = {
2991
3030
  folder: (e) => e !== b.Model,
2992
3031
  tags: () => !0,
2993
3032
  favorite: () => !0
2994
- }, Mr = (e, t) => Object.fromEntries([
3033
+ }, Nr = (e, t) => Object.fromEntries([
2995
3034
  "folder",
2996
3035
  "tags",
2997
3036
  "favorite"
2998
- ].map((n) => [n, (t?.[n] ?? jr[n])(e)])), Nr = (e, t = !1, n) => {
2999
- let r = Mr(e, n);
3037
+ ].map((n) => [n, (t?.[n] ?? Mr[n])(e)])), Pr = (e, t = !1, n) => {
3038
+ let r = Nr(e, n);
3000
3039
  return [
3001
3040
  {
3002
3041
  headerName: "Name",
@@ -3004,7 +3043,7 @@ var ht = /* @__PURE__ */ function(e) {
3004
3043
  minWidth: 220,
3005
3044
  field: "name",
3006
3045
  filter: !1,
3007
- cellRenderer: Or,
3046
+ cellRenderer: kr,
3008
3047
  valueGetter: (e) => e.data?.name
3009
3048
  },
3010
3049
  {
@@ -3014,7 +3053,7 @@ var ht = /* @__PURE__ */ function(e) {
3014
3053
  field: "type",
3015
3054
  filter: !1,
3016
3055
  sortable: !1,
3017
- cellRenderer: Tr,
3056
+ cellRenderer: Er,
3018
3057
  valueGetter: (e) => e.data?.type
3019
3058
  },
3020
3059
  {
@@ -3024,7 +3063,7 @@ var ht = /* @__PURE__ */ function(e) {
3024
3063
  minWidth: 170,
3025
3064
  filter: !1,
3026
3065
  hide: !r.folder,
3027
- cellRenderer: Dr,
3066
+ cellRenderer: Or,
3028
3067
  valueGetter: (e) => e.data?.folder
3029
3068
  },
3030
3069
  {
@@ -3035,7 +3074,7 @@ var ht = /* @__PURE__ */ function(e) {
3035
3074
  filter: !1,
3036
3075
  sortable: !1,
3037
3076
  hide: !r.tags,
3038
- cellRenderer: Ar,
3077
+ cellRenderer: jr,
3039
3078
  valueGetter: (e) => e.data?.topics
3040
3079
  },
3041
3080
  {
@@ -3047,11 +3086,11 @@ var ht = /* @__PURE__ */ function(e) {
3047
3086
  sortable: !1,
3048
3087
  resizable: !1,
3049
3088
  hide: t || !r.favorite,
3050
- headerClass: wr.favHeader,
3051
- cellRenderer: kr
3089
+ headerClass: Tr.favHeader,
3090
+ cellRenderer: Ar
3052
3091
  }
3053
3092
  ];
3054
- }, Pr = 60, Fr = ({ items: e, type: t, query: n = "", ariaLabel: r = "Catalog", emptyStateTitle: i, styles: a, onToggleFavorite: o, isFavoriteVisible: s, onItemClick: c, stickyHeaderTop: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f = !1, columnVisibility: p }) => {
3093
+ }, Fr = 60, Ir = ({ items: e, type: t, query: n = "", ariaLabel: r = "Catalog", emptyStateTitle: i, styles: a, onToggleFavorite: o, isFavoriteVisible: s, onItemClick: c, stickyHeaderTop: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f = !1, columnVisibility: p }) => {
3055
3094
  if (e.length === 0) return /* @__PURE__ */ W("div", {
3056
3095
  className: "flex size-full flex-col items-center justify-center",
3057
3096
  children: /* @__PURE__ */ W(te, { label: i ?? "No results" })
@@ -3068,7 +3107,7 @@ var ht = /* @__PURE__ */ function(e) {
3068
3107
  "--cat-list-selected-bg": h?.selectedRowBackground,
3069
3108
  "--cat-list-selected-check": h?.selectedRowCheckIcon,
3070
3109
  ...l == null ? {} : { "--list-header-sticky-top": `${l}px` }
3071
- }, _ = N(null), { containerRef: v, startRow: y, endRow: b } = Tt(e.length, Pr), x = M(() => e.slice(y, b), [
3110
+ }, _ = N(null), { containerRef: v, startRow: y, endRow: b } = Dt(e.length, Fr), x = M(() => e.slice(y, b), [
3072
3111
  e,
3073
3112
  y,
3074
3113
  b
@@ -3081,17 +3120,17 @@ var ht = /* @__PURE__ */ function(e) {
3081
3120
  _.current?.setGridOption("domLayout", e.length > 0 ? "autoHeight" : "normal");
3082
3121
  }, [e]), /* @__PURE__ */ W("div", {
3083
3122
  style: g,
3084
- className: V("w-full rounded-xl border", wr.listContainer),
3123
+ className: V("w-full rounded-xl border", Tr.listContainer),
3085
3124
  children: /* @__PURE__ */ G("div", {
3086
3125
  ref: v,
3087
- className: V("rounded-xl", wr.gridClip),
3126
+ className: V("rounded-xl", Tr.gridClip),
3088
3127
  children: [
3089
3128
  y > 0 && /* @__PURE__ */ W("div", {
3090
- style: { height: y * Pr },
3129
+ style: { height: y * Fr },
3091
3130
  "aria-hidden": !0
3092
3131
  }),
3093
3132
  /* @__PURE__ */ W(mt, {
3094
- columnDefs: Nr(t, f, p),
3133
+ columnDefs: Pr(t, f, p),
3095
3134
  rowData: x,
3096
3135
  getRowId: (e) => e.id,
3097
3136
  withoutHeaderBorders: !0,
@@ -3101,7 +3140,7 @@ var ht = /* @__PURE__ */ function(e) {
3101
3140
  },
3102
3141
  emptyStateTitle: i,
3103
3142
  additionalGridOptions: {
3104
- rowHeight: Pr,
3143
+ rowHeight: Fr,
3105
3144
  defaultColDef: {
3106
3145
  filter: !1,
3107
3146
  floatingFilter: !1
@@ -3119,18 +3158,18 @@ var ht = /* @__PURE__ */ function(e) {
3119
3158
  e.column.getColDef().field !== "isStarred" && e.data && c(e.data);
3120
3159
  } : void 0,
3121
3160
  rowClass: c ? "cursor-pointer" : void 0,
3122
- getRowClass: (e) => e.data?.id === u ? wr.selectedRow : void 0
3161
+ getRowClass: (e) => e.data?.id === u ? Tr.selectedRow : void 0
3123
3162
  },
3124
3163
  ariaLabel: r
3125
3164
  }),
3126
3165
  b < e.length && /* @__PURE__ */ W("div", {
3127
- style: { height: (e.length - b) * Pr },
3166
+ style: { height: (e.length - b) * Fr },
3128
3167
  "aria-hidden": !0
3129
3168
  })
3130
3169
  ]
3131
3170
  })
3132
3171
  });
3133
- }, Ir = {
3172
+ }, Lr = {
3134
3173
  filterBtn: "_filterBtn_1ngmc_2",
3135
3174
  filterBtnActive: "_filterBtnActive_1ngmc_19",
3136
3175
  filterBtnOpen: "_filterBtnOpen_1ngmc_23",
@@ -3142,13 +3181,13 @@ var ht = /* @__PURE__ */ function(e) {
3142
3181
  divider: "_divider_1ngmc_58",
3143
3182
  sectionLabel: "_sectionLabel_1ngmc_62",
3144
3183
  footer: "_footer_1ngmc_66"
3145
- }, Lr = (e, t, n, r, i) => {
3184
+ }, Rr = (e, t, n, r, i) => {
3146
3185
  let o = e.size > 0;
3147
3186
  return n && o ? `${r} · ${e.size}` : n ? r : o ? a(e, t, i) : i;
3148
- }, Rr = (e, t) => {
3187
+ }, zr = (e, t) => {
3149
3188
  let n = new Set(t);
3150
3189
  return n.has(e) ? n.delete(e) : n.add(e), n;
3151
- }, zr = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: a = "My", topicsLabel: o = "Topics", defaultLabel: s = "From", clearLabel: c = "Clear", applyLabel: l = "Apply", typography: u, colors: d }) => {
3190
+ }, Br = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: a = "My", topicsLabel: o = "Topics", defaultLabel: s = "From", clearLabel: c = "Clear", applyLabel: l = "Apply", typography: u, colors: d }) => {
3152
3191
  let f = (r ?? !1) || e.size > 0, [p, m] = P(!1), h = ie({
3153
3192
  "--cat-filter-btn-bg": d?.buttonBackground,
3154
3193
  "--cat-filter-btn-border": d?.buttonBorder,
@@ -3165,7 +3204,7 @@ var ht = /* @__PURE__ */ function(e) {
3165
3204
  "--cat-filter-section-label": d?.sectionLabel,
3166
3205
  "--cat-filter-divider": d?.divider,
3167
3206
  "--cat-filter-footer-border": d?.footerBorder
3168
- }), g = M(() => n == null ? [] : [...n].sort(), [n]), _ = Lr(e, n, r, a, s), [v, y] = P(() => new Set(e)), [b, x] = P(r ?? !1);
3207
+ }), g = M(() => n == null ? [] : [...n].sort(), [n]), _ = Rr(e, n, r, a, s), [v, y] = P(() => new Set(e)), [b, x] = P(r ?? !1);
3169
3208
  j(() => {
3170
3209
  p && (y(new Set(e)), x(r ?? !1));
3171
3210
  }, [
@@ -3210,7 +3249,7 @@ var ht = /* @__PURE__ */ function(e) {
3210
3249
  ...h,
3211
3250
  maxHeight: "calc(var(--fui-available-height, 9999px) - 8px)"
3212
3251
  },
3213
- className: k("flex min-w-[360px] flex-col rounded-xl p-[6px]", Ir.overlay),
3252
+ className: k("flex min-w-[360px] flex-col rounded-xl p-[6px]", Lr.overlay),
3214
3253
  onKeyDown: te,
3215
3254
  children: [
3216
3255
  /* @__PURE__ */ W(Se, {
@@ -3219,7 +3258,7 @@ var ht = /* @__PURE__ */ function(e) {
3219
3258
  mark: Ce.Checkbox,
3220
3259
  selected: b,
3221
3260
  label: a,
3222
- labelClassName: k(Ir.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3261
+ labelClassName: k(Lr.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3223
3262
  className: "shrink-0",
3224
3263
  tabIndex: C === 0 ? 0 : -1,
3225
3264
  ref: (e) => {
@@ -3230,11 +3269,11 @@ var ht = /* @__PURE__ */ function(e) {
3230
3269
  g.length > 0 && /* @__PURE__ */ G(U, { children: [
3231
3270
  /* @__PURE__ */ W("div", {
3232
3271
  role: "separator",
3233
- className: k("my-1 h-px", Ir.divider),
3272
+ className: k("my-1 h-px", Lr.divider),
3234
3273
  "aria-hidden": !0
3235
3274
  }),
3236
3275
  /* @__PURE__ */ W("div", {
3237
- className: k("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Ir.sectionLabel),
3276
+ className: k("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Lr.sectionLabel),
3238
3277
  "aria-hidden": !0,
3239
3278
  children: o
3240
3279
  }),
@@ -3248,19 +3287,19 @@ var ht = /* @__PURE__ */ function(e) {
3248
3287
  mark: Ce.Checkbox,
3249
3288
  selected: n,
3250
3289
  label: e,
3251
- labelClassName: Ir.rowLabel,
3290
+ labelClassName: Lr.rowLabel,
3252
3291
  className: "shrink-0",
3253
3292
  tabIndex: C === r ? 0 : -1,
3254
3293
  ref: (e) => {
3255
3294
  T.current[r] = e;
3256
3295
  },
3257
- onClick: () => y(Rr(e, v))
3296
+ onClick: () => y(zr(e, v))
3258
3297
  }, e);
3259
3298
  })
3260
3299
  })
3261
3300
  ] }),
3262
3301
  /* @__PURE__ */ G("div", {
3263
- className: k("mt-1 flex shrink-0 items-center px-1 py-3", Ir.footer),
3302
+ className: k("mt-1 flex shrink-0 items-center px-1 py-3", Lr.footer),
3264
3303
  onKeyDown: (e) => {
3265
3304
  (e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
3266
3305
  },
@@ -3282,33 +3321,33 @@ var ht = /* @__PURE__ */ function(e) {
3282
3321
  "aria-expanded": p,
3283
3322
  onKeyDown: ee,
3284
3323
  style: h,
3285
- className: k("flex h-12 shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-lg px-[18px]", Ir.filterBtn, f && Ir.filterBtnActive, p && Ir.filterBtnOpen),
3324
+ className: k("flex h-12 shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-lg px-[18px]", Lr.filterBtn, f && Lr.filterBtnActive, p && Lr.filterBtnOpen),
3286
3325
  children: [
3287
3326
  /* @__PURE__ */ W(Ke, {
3288
3327
  size: L.SM,
3289
3328
  stroke: R,
3290
- className: k("shrink-0", Ir.filterBtnFunnel),
3329
+ className: k("shrink-0", Lr.filterBtnFunnel),
3291
3330
  "aria-hidden": !0
3292
3331
  }),
3293
3332
  /* @__PURE__ */ W("span", {
3294
- className: k(Ir.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3333
+ className: k(Lr.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
3295
3334
  children: _
3296
3335
  }),
3297
3336
  /* @__PURE__ */ W(Be, {
3298
3337
  size: 14,
3299
3338
  stroke: R,
3300
- className: k("shrink-0 transition-transform duration-150", Ir.filterBtnChevron, p && "rotate-180"),
3339
+ className: k("shrink-0 transition-transform duration-150", Lr.filterBtnChevron, p && "rotate-180"),
3301
3340
  "aria-hidden": !0
3302
3341
  })
3303
3342
  ]
3304
3343
  })
3305
3344
  });
3306
- }, Br = {
3345
+ }, Vr = {
3307
3346
  section: "_section_mh952_1",
3308
3347
  divider: "_divider_mh952_5"
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 }) => {
3348
+ }, Hr = ({ 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
3349
  let w = a?.typography?.titleClassName ?? "dial-body-semi-text", T = a?.typography?.countClassName ?? "dial-tiny-semi-text", D = M(() => [{
3311
- value: X.Grid,
3350
+ value: Y.Grid,
3312
3351
  icon: /* @__PURE__ */ W(Ye, {
3313
3352
  size: L.SM,
3314
3353
  "aria-hidden": !0,
@@ -3316,7 +3355,7 @@ var ht = /* @__PURE__ */ function(e) {
3316
3355
  }),
3317
3356
  "aria-label": l
3318
3357
  }, {
3319
- value: X.Cards,
3358
+ value: Y.Cards,
3320
3359
  icon: /* @__PURE__ */ W(Xe, {
3321
3360
  size: L.SM,
3322
3361
  "aria-hidden": !0,
@@ -3358,7 +3397,7 @@ var ht = /* @__PURE__ */ function(e) {
3358
3397
  value: t,
3359
3398
  onChange: n,
3360
3399
  items: D
3361
- }), p != null && p.length > 0 && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("div", { className: k("h-4 w-px shrink-0", Br.divider) }), /* @__PURE__ */ W(ce, {
3400
+ }), p != null && p.length > 0 && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("div", { className: k("h-4 w-px shrink-0", Vr.divider) }), /* @__PURE__ */ W(ce, {
3362
3401
  items: te,
3363
3402
  label: ee,
3364
3403
  variant: le.Primary,
@@ -3378,7 +3417,7 @@ var ht = /* @__PURE__ */ function(e) {
3378
3417
  placeholder: c,
3379
3418
  "aria-label": c
3380
3419
  })
3381
- }), /* @__PURE__ */ W(zr, {
3420
+ }), /* @__PURE__ */ W(Br, {
3382
3421
  checked: g ?? /* @__PURE__ */ new Set(),
3383
3422
  onChange: _ ?? (() => void 0),
3384
3423
  values: v,
@@ -3391,12 +3430,12 @@ var ht = /* @__PURE__ */ function(e) {
3391
3430
  })]
3392
3431
  })]
3393
3432
  });
3394
- }, Hr = ({ query: e, onQueryChange: t, searchPlaceholder: n = "Search models, tools, agents…", styles: r, filters: i, onFiltersChange: a, filterValues: o, isMyAppsActive: s, onMyAppsChange: c, filterFromLabel: l, filterMyAppsLabel: u, filterTopicsLabel: d, gridViewLabel: f, listViewLabel: p, viewToggleLabel: m, sortKey: h, sortOptions: g, onSortChange: _, sortLabel: v, ...y }) => {
3433
+ }, Ur = ({ query: e, onQueryChange: t, searchPlaceholder: n = "Search models, tools, agents…", styles: r, filters: i, onFiltersChange: a, filterValues: o, isMyAppsActive: s, onMyAppsChange: c, filterFromLabel: l, filterMyAppsLabel: u, filterTopicsLabel: d, gridViewLabel: f, listViewLabel: p, viewToggleLabel: m, sortKey: h, sortOptions: g, onSortChange: _, sortLabel: v, ...y }) => {
3395
3434
  let b = { "--cat-browse-divider": r?.colors?.divider };
3396
3435
  return /* @__PURE__ */ W("section", {
3397
- className: k("flex-shrink-0 px-4", Br.section),
3436
+ className: k("flex-shrink-0 px-4", Vr.section),
3398
3437
  style: b,
3399
- children: /* @__PURE__ */ W(Vr, {
3438
+ children: /* @__PURE__ */ W(Hr, {
3400
3439
  styles: r,
3401
3440
  query: e,
3402
3441
  onQueryChange: t,
@@ -3419,11 +3458,11 @@ var ht = /* @__PURE__ */ function(e) {
3419
3458
  ...y
3420
3459
  })
3421
3460
  });
3422
- }, Ur = {
3461
+ }, Wr = {
3423
3462
  root: "_root_1h83l_1",
3424
3463
  heading: "_heading_1h83l_5",
3425
3464
  headingTitle: "_headingTitle_1h83l_9"
3426
- }, Wr = ({ label: e, options: t, onClick: n }) => {
3465
+ }, Gr = ({ label: e, options: t, onClick: n }) => {
3427
3466
  let r = N(null);
3428
3467
  return t?.length ? /* @__PURE__ */ W("div", {
3429
3468
  ref: r,
@@ -3441,8 +3480,8 @@ var ht = /* @__PURE__ */ function(e) {
3441
3480
  }),
3442
3481
  onClick: n
3443
3482
  });
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 = [
3483
+ }, Kr = 3, qr = 300, Jr = ({ 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 }) => {
3484
+ let { typography: qe } = Fe ?? {}, Je = St(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
3485
  {
3447
3486
  value: u.RecentlyUpdated,
3448
3487
  label: s?.sortRecentlyUpdatedLabel ?? "Recently Updated"
@@ -3455,127 +3494,127 @@ var ht = /* @__PURE__ */ function(e) {
3455
3494
  value: u.NameAZ,
3456
3495
  label: s?.sortNameAZLabel ?? "Name A-Z"
3457
3496
  }
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) => {
3497
+ ], [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, vt = He ?? gt, yt = A((e) => {
3459
3498
  let t = e;
3460
3499
  mt(t), ze?.(t);
3461
- }, [ze]), vt = A((e) => {
3500
+ }, [ze]), bt = A((e) => {
3462
3501
  K(e), Ve?.(e);
3463
- }, [Ve]), bt = A((e) => {
3502
+ }, [Ve]), xt = A((e) => {
3464
3503
  q(e), Ue?.(e);
3465
- }, [Ue]), Q = M(() => e.filter((e) => !e.isHidden), [e]), xt = M(() => a ?? p(Q), [a, Q]), St = M(() => n ?? h(Q, s?.tabLabels), [
3504
+ }, [Ue]), X = M(() => e.filter((e) => !e.isHidden), [e]), Z = M(() => o.filter((e) => !e.isHidden), [o]), Ct = M(() => a ?? p(X), [a, X]), wt = M(() => n ?? h(X, s?.tabLabels), [
3466
3505
  n,
3467
- Q,
3506
+ X,
3468
3507
  s?.tabLabels
3469
- ]), Ct = St[0]?.id ?? "", [wt, Tt] = P(Ct);
3508
+ ]), Tt = wt[0]?.id ?? "", [Et, Dt] = P(Tt);
3470
3509
  j(() => {
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);
3510
+ Dt((e) => e || Tt);
3511
+ }, [Tt]);
3512
+ let Ot = We ?? Et, Q = A((e) => {
3513
+ Dt(e), Ge?.(e);
3514
+ }, [Ge]), [kt, At] = P(Z.length > 0);
3476
3515
  j(() => {
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;
3516
+ Z.length > 0 && !kt && At(!0);
3517
+ }, [Z.length, kt]);
3518
+ let jt = A(() => {
3519
+ At(!1);
3520
+ }, []), Mt = kt && Z.length === 0, [Nt, Pt] = P(null), [Ft, It] = P(!1), [Lt, Rt] = P(void 0), [zt, Bt] = P(!1), Vt = N(null), Ht = N(0), Ut = A(async (e) => {
3521
+ Vt.current = e.id;
3522
+ let t = ++Ht.current;
3484
3523
  if (I) {
3485
- Rt(!0);
3524
+ Bt(!0);
3486
3525
  try {
3487
3526
  let n = await I(e);
3488
- return Bt.current === t && It(n), n;
3527
+ return Ht.current === t && Rt(n), n;
3489
3528
  } finally {
3490
- Bt.current === t && Rt(!1);
3529
+ Ht.current === t && Bt(!1);
3491
3530
  }
3492
3531
  }
3493
- }, [I]), Ut = A(async (e) => (Nt(e), It(void 0), Vt(e)), [Vt]), Wt = A(async (e, t) => {
3494
- for (let n = 0; n < Gr; n++) {
3495
- if (zt.current !== e.id || t(await Vt(e))) return;
3496
- n < Gr - 1 && await f(Kr);
3532
+ }, [I]), Gt = A(async (e) => (Pt(e), Rt(void 0), Ut(e)), [Ut]), Kt = A(async (e, t) => {
3533
+ for (let n = 0; n < Kr; n++) {
3534
+ if (Vt.current !== e.id || t(await Ut(e))) return;
3535
+ n < Kr - 1 && await f(qr);
3497
3536
  }
3498
- }, [Vt]), Gt = N(null);
3537
+ }, [Ut]), qt = N(null);
3499
3538
  j(() => {
3500
3539
  if (!Le) {
3501
- Gt.current = null;
3540
+ qt.current = null;
3502
3541
  return;
3503
3542
  }
3504
- if (Gt.current === Le) return;
3543
+ if (qt.current === Le) return;
3505
3544
  let t = e.find((e) => e.id === Le);
3506
- t && (Gt.current = Le, Ut(t));
3545
+ t && (qt.current = Le, Gt(t));
3507
3546
  }, [
3508
3547
  Le,
3509
3548
  e,
3510
- Ut
3549
+ Gt
3511
3550
  ]), j(() => {
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));
3551
+ if (Nt == null) return;
3552
+ let t = e.find((e) => e.id === Nt.id);
3553
+ t && t !== Nt && Pt(t);
3554
+ }, [e, Nt]);
3555
+ let Jt = A(async (e, n) => {
3556
+ await Se?.(e, n), I && await Kt(e, (e) => t(e?.credentials, n.level));
3518
3557
  }, [
3519
3558
  Se,
3520
3559
  I,
3521
- Wt
3522
- ]), qt = A(async (e, n) => {
3523
- await Ce?.(e, n), I && await Wt(e, (e) => !t(e?.credentials, n.level));
3560
+ Kt
3561
+ ]), Yt = A(async (e, n) => {
3562
+ await Ce?.(e, n), I && await Kt(e, (e) => !t(e?.credentials, n.level));
3524
3563
  }, [
3525
3564
  Ce,
3526
3565
  I,
3527
- Wt
3528
- ]), Jt = A(() => {
3529
- Ft(!1), zt.current = null, Bt.current += 1, setTimeout(() => {
3530
- Nt(null), It(void 0), Rt(!1);
3566
+ Kt
3567
+ ]), Xt = A(() => {
3568
+ It(!1), Vt.current = null, Ht.current += 1, setTimeout(() => {
3569
+ Pt(null), Rt(void 0), Bt(!1);
3531
3570
  }, 300);
3532
- }, []), Yt = M(() => {
3533
- if (Mt == null) return null;
3534
- if ($ == null) return Mt;
3535
- let { credentials: e, ...t } = $;
3571
+ }, []), Zt = M(() => {
3572
+ if (Nt == null) return null;
3573
+ if (Lt == null) return Nt;
3574
+ let { credentials: e, ...t } = Lt;
3536
3575
  return {
3537
- ...Mt,
3576
+ ...Nt,
3538
3577
  details: t,
3539
- credentials: e ?? Mt.credentials
3578
+ credentials: e ?? Nt.credentials
3540
3579
  };
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);
3580
+ }, [Nt, Lt]), Qt = M(() => r(X, J), [X, J]), $t = M(() => i(Qt, st), [Qt, st]), en = M(() => _t.size > 0 ? _($t, _t) : $t, [$t, _t]), tn = M(() => vt ? l(en) : en, [en, vt]), nn = M(() => Ot ? tn.filter((e) => e.type === Ot) : tn, [tn, Ot]), rn = Nt != null && Z.some((e) => e.id === Nt.id);
3542
3581
  j(() => {
3543
- if (Mt == null) return;
3544
- let e = requestAnimationFrame(() => Ft(!0));
3582
+ if (Nt == null) return;
3583
+ let e = requestAnimationFrame(() => It(!0));
3545
3584
  return () => cancelAnimationFrame(e);
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,
3585
+ }, [Nt]);
3586
+ let an = A((e) => {
3587
+ e === Y.Cards && ft(!0), ut(e);
3588
+ }, []), on = !Ee && !Oe, sn = kt && !Oe, cn = st ? et(st) : "No items", ln = M(() => ({
3589
+ noResultsTitle: cn,
3551
3590
  featuredLabel: tt,
3552
3591
  credentialsBadgeLoggedOutLabel: V?.credentialsBadgeLoggedOutLabel
3553
3592
  }), [
3554
- on,
3593
+ cn,
3555
3594
  tt,
3556
3595
  V?.credentialsBadgeLoggedOutLabel
3557
- ]), cn = !Pe && en.length === 0 ? Ke?.({
3596
+ ]), un = !Pe && nn.length === 0 ? Ke?.({
3558
3597
  query: st,
3559
- activeTab: Et,
3560
- hasTopicFilters: Y.size > 0,
3561
- isMyAppsActive: Z
3598
+ activeTab: Ot,
3599
+ hasTopicFilters: _t.size > 0,
3600
+ isMyAppsActive: vt
3562
3601
  }) : void 0;
3563
3602
  return Pe ? /* @__PURE__ */ W("div", {
3564
3603
  className: "flex size-full min-h-0 flex-1 items-center justify-center",
3565
3604
  children: /* @__PURE__ */ W(Me, {})
3566
3605
  }) : /* @__PURE__ */ G("section", {
3567
3606
  "aria-label": it,
3568
- className: k("flex size-full min-h-0 flex-1 flex-col", Ur.root),
3607
+ className: k("flex size-full min-h-0 flex-1 flex-col", Wr.root),
3569
3608
  style: Je,
3570
3609
  children: [
3571
- (!De || rn) && /* @__PURE__ */ W("div", {
3572
- className: k("shrink-0", Ur.heading),
3610
+ (!De || on) && /* @__PURE__ */ W("div", {
3611
+ className: k("shrink-0", Wr.heading),
3573
3612
  children: /* @__PURE__ */ G("div", {
3574
3613
  className: "flex h-[64px] w-full items-center justify-between px-8",
3575
3614
  children: [!De && /* @__PURE__ */ W("h1", {
3576
- className: k(qe?.pageHeadingFontClassName ?? "dial-display2-text", Ur.headingTitle),
3615
+ className: k(qe?.pageHeadingFontClassName ?? "dial-display2-text", Wr.headingTitle),
3577
3616
  children: Ye
3578
- }), rn && /* @__PURE__ */ W(Wr, {
3617
+ }), on && /* @__PURE__ */ W(Gr, {
3579
3618
  label: Xe,
3580
3619
  options: Te,
3581
3620
  onClick: we
@@ -3585,27 +3624,27 @@ var ht = /* @__PURE__ */ function(e) {
3585
3624
  /* @__PURE__ */ G("div", {
3586
3625
  className: "flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto overflow-x-hidden",
3587
3626
  children: [
3588
- an && /* @__PURE__ */ W("div", {
3627
+ sn && /* @__PURE__ */ W("div", {
3589
3628
  className: "w-full px-8",
3590
- children: /* @__PURE__ */ W(Cr, {
3591
- items: o,
3592
- totalCount: o.length,
3629
+ children: /* @__PURE__ */ W(wr, {
3630
+ items: Z,
3631
+ totalCount: Z.length,
3593
3632
  title: Ze,
3594
3633
  onToggleFavorite: d,
3595
3634
  isFavoriteVisible: m,
3596
- onItemClick: B ?? Ut,
3597
- isLeaving: jt,
3598
- onExitComplete: At,
3635
+ onItemClick: B ?? Gt,
3636
+ isLeaving: Mt,
3637
+ onExitComplete: jt,
3599
3638
  selectedItemId: je,
3600
3639
  credentialsBadgeLoggedOutLabel: V?.credentialsBadgeLoggedOutLabel
3601
3640
  })
3602
3641
  }),
3603
3642
  /* @__PURE__ */ W("div", {
3604
3643
  className: "w-full px-4 pt-6",
3605
- children: /* @__PURE__ */ W(Hr, {
3606
- totalCount: $t.length,
3644
+ children: /* @__PURE__ */ W(Ur, {
3645
+ totalCount: tn.length,
3607
3646
  viewMode: lt,
3608
- onViewModeChange: nn,
3647
+ onViewModeChange: an,
3609
3648
  sortKey: J,
3610
3649
  query: st,
3611
3650
  onQueryChange: ct,
@@ -3616,58 +3655,58 @@ var ht = /* @__PURE__ */ function(e) {
3616
3655
  listViewLabel: rt,
3617
3656
  viewToggleLabel: H,
3618
3657
  sortOptions: ot,
3619
- onSortChange: _t,
3658
+ onSortChange: yt,
3620
3659
  sortLabel: at,
3621
- filters: Y,
3622
- onFiltersChange: vt,
3623
- filterValues: xt,
3624
- isMyAppsActive: Z,
3625
- onMyAppsChange: bt,
3660
+ filters: _t,
3661
+ onFiltersChange: bt,
3662
+ filterValues: Ct,
3663
+ isMyAppsActive: vt,
3664
+ onMyAppsChange: xt,
3626
3665
  filterFromLabel: s?.filterFromLabel,
3627
3666
  filterMyAppsLabel: s?.filterMyAppsLabel,
3628
3667
  filterTopicsLabel: s?.filterTopicsLabel
3629
3668
  })
3630
3669
  }),
3631
- St.length > 1 && /* @__PURE__ */ W("div", {
3670
+ wt.length > 1 && /* @__PURE__ */ W("div", {
3632
3671
  className: "min-w-0 shrink-0 overflow-x-auto px-8",
3633
3672
  children: /* @__PURE__ */ W(Ne, {
3634
- tabs: St.map((e) => ({
3673
+ tabs: wt.map((e) => ({
3635
3674
  id: e.id,
3636
3675
  label: typeof e.label == "string" ? e.label : String(e.label),
3637
- count: $t.filter((t) => t.type === e.id).length
3676
+ count: tn.filter((t) => t.type === e.id).length
3638
3677
  })),
3639
- activeTabId: Et,
3640
- onTabChange: Dt
3678
+ activeTabId: Ot,
3679
+ onTabChange: Q
3641
3680
  })
3642
3681
  }),
3643
3682
  /* @__PURE__ */ W("div", {
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"),
3647
- children: /* @__PURE__ */ W(Ht, {
3648
- items: en,
3683
+ className: k(nn.length > 0 ? ["min-h-full w-full px-8 py-6", !Ae && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", nn.length === 0 && "px-8 py-6"),
3684
+ children: un ?? /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("div", {
3685
+ className: k(nn.length > 0 ? "pb-8" : "size-full flex-1", lt !== Y.Grid && "hidden"),
3686
+ children: /* @__PURE__ */ W(Wt, {
3687
+ items: nn,
3649
3688
  query: st,
3650
3689
  onToggleFavorite: d,
3651
3690
  isFavoriteVisible: m,
3652
- onItemClick: B ?? Ut,
3653
- titles: sn,
3691
+ onItemClick: B ?? Gt,
3692
+ titles: ln,
3654
3693
  selectedItemId: je,
3655
3694
  isReadonly: Oe,
3656
3695
  isFullWidth: Ae,
3657
3696
  featuredChipStyle: Fe?.colors?.featuredChipStyle
3658
3697
  })
3659
3698
  }), dt && /* @__PURE__ */ W("div", {
3660
- className: k("pb-8", lt !== X.Cards && "hidden", en.length === 0 && "h-full"),
3661
- children: /* @__PURE__ */ W(Fr, {
3662
- type: Et,
3663
- items: en,
3699
+ className: k("pb-8", lt !== Y.Cards && "hidden", nn.length === 0 && "h-full"),
3700
+ children: /* @__PURE__ */ W(Ir, {
3701
+ type: Ot,
3702
+ items: nn,
3664
3703
  query: st,
3665
3704
  ariaLabel: it,
3666
- emptyStateTitle: on,
3705
+ emptyStateTitle: cn,
3667
3706
  onToggleFavorite: d,
3668
3707
  isFavoriteVisible: m,
3669
3708
  columnVisibility: g,
3670
- onItemClick: B ?? Ut,
3709
+ onItemClick: B ?? Gt,
3671
3710
  stickyHeaderTop: 0,
3672
3711
  selectedItemId: je,
3673
3712
  credentialsBadgeLoggedOutLabel: V?.credentialsBadgeLoggedOutLabel,
@@ -3677,13 +3716,13 @@ var ht = /* @__PURE__ */ function(e) {
3677
3716
  })
3678
3717
  ]
3679
3718
  }),
3680
- Yt != null && /* @__PURE__ */ W(vr, {
3681
- item: Yt,
3682
- isOpen: Pt,
3683
- isStarred: tn,
3684
- isDetailsLoading: Lt,
3719
+ Zt != null && /* @__PURE__ */ W(yr, {
3720
+ item: Zt,
3721
+ isOpen: Ft,
3722
+ isStarred: rn,
3723
+ isDetailsLoading: zt,
3685
3724
  isReadonly: Oe,
3686
- onClose: Jt,
3725
+ onClose: Xt,
3687
3726
  onToggleFavorite: d,
3688
3727
  isFavoriteVisible: m,
3689
3728
  onUseInChat: v,
@@ -3723,8 +3762,8 @@ var ht = /* @__PURE__ */ function(e) {
3723
3762
  isRevokeShareVisible: be,
3724
3763
  onUnpublish: xe,
3725
3764
  isUnpublishVisible: z,
3726
- onLogin: Kt,
3727
- onLogout: qt,
3765
+ onLogin: Jt,
3766
+ onLogout: Yt,
3728
3767
  texts: V,
3729
3768
  limitsFooterNote: Ie,
3730
3769
  styles: { colors: { featuredChipStyle: Fe?.colors?.featuredChipStyle } }
@@ -3733,4 +3772,4 @@ var ht = /* @__PURE__ */ function(e) {
3733
3772
  });
3734
3773
  };
3735
3774
  //#endregion
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 };
3775
+ export { At as AppIdentity, Ht as Card, Wt as CardGrid, Ut as CardRowRenderer, Jr as Catalog, yt as CatalogContentNodeType, bt as CatalogContentPreviewType, K as CatalogDetailsTab, gt as CatalogLimitStatus, u as CatalogSortKey, Y as CatalogViewMode, ht as CodeLanguage, Vn 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, yr as DetailsPanel, xr as FavoriteCard, wr as Favorites, Br as Filter, on as InfoCard, vt as LimitRowLayout, $n as LimitsTab, Ir as ListView, Ur as Toolbar, n as ToolsetAuthenticationType, Lt as TopicTag, h as buildCatalogTabs, i as filterCatalogItems, g as getCredentialsBadgeState, m as getCredentialsUiState, c as getSignedInLevel, p as getTopicOptions, r as sortCatalogItems, xt as useFavColumns, Ot as useScrollVirtualizer };