@epam/ai-dial-catalog 1.2.0-dev.48 → 1.2.0-dev.58
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/components/CardGrid/Card.d.ts.map +1 -1
- package/components/Catalog/Catalog.d.ts.map +1 -1
- package/components/Favorites/FavoriteCard.d.ts.map +1 -1
- package/components/ListView/ListView.d.ts.map +1 -1
- package/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/constants/public-class-names.d.ts +21 -0
- package/constants/public-class-names.d.ts.map +1 -0
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +439 -433
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -31,28 +31,34 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
31
31
|
let e = () => t(window.innerWidth);
|
|
32
32
|
return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
33
33
|
}, []), e >= 1024 ? 4 : e >= 640 ? 2 : 1;
|
|
34
|
-
}, yt =
|
|
34
|
+
}, yt = {
|
|
35
|
+
root: "dial-catalog-root",
|
|
36
|
+
toolbar: "dial-catalog-toolbar",
|
|
37
|
+
card: "dial-catalog-card",
|
|
38
|
+
favoriteCard: "dial-catalog-favorite-card",
|
|
39
|
+
listView: "dial-catalog-list-view"
|
|
40
|
+
}, bt = (e) => {
|
|
35
41
|
let { colors: t } = e ?? {};
|
|
36
42
|
return ie({
|
|
37
43
|
"--cat-bg": t?.background,
|
|
38
44
|
"--cat-heading-title-text": t?.headingTitleText
|
|
39
45
|
});
|
|
40
|
-
},
|
|
46
|
+
}, xt = 1180, Q = (e) => e >= 1280 ? 4 : e >= 966 ? 3 : e >= 620 ? 2 : 1, St = (e) => {
|
|
41
47
|
if (!e || e === document.body) return document.documentElement;
|
|
42
48
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
43
|
-
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e :
|
|
44
|
-
},
|
|
49
|
+
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : St(e.parentElement);
|
|
50
|
+
}, Ct = 10, wt = 10, Tt = 30, Et = (e, t, n = Ct) => {
|
|
45
51
|
let r = N(null), [i, a] = P({
|
|
46
52
|
start: 0,
|
|
47
|
-
end:
|
|
53
|
+
end: Tt
|
|
48
54
|
});
|
|
49
55
|
j(() => {
|
|
50
56
|
let i = r.current;
|
|
51
57
|
if (!i) return;
|
|
52
|
-
let o =
|
|
58
|
+
let o = St(i.parentElement), s = () => {
|
|
53
59
|
let r = o.clientHeight;
|
|
54
60
|
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) /
|
|
61
|
+
let s = i.getBoundingClientRect().top, c = o.getBoundingClientRect().top, l = Math.max(0, c - s), u = Math.floor(l / t), d = Math.ceil(r / t), f = Math.max(0, Math.floor((u - n) / wt) * wt), p = Math.min(e, Math.ceil((u + d + n) / wt) * wt);
|
|
56
62
|
a((e) => e.start === f && e.end === p ? e : {
|
|
57
63
|
start: f,
|
|
58
64
|
end: p
|
|
@@ -68,15 +74,15 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
68
74
|
t,
|
|
69
75
|
n
|
|
70
76
|
]);
|
|
71
|
-
let o = Math.max(0, Math.floor((e - 1) /
|
|
77
|
+
let o = Math.max(0, Math.floor((e - 1) / wt) * wt), s = Math.min(i.start, o);
|
|
72
78
|
return {
|
|
73
79
|
containerRef: r,
|
|
74
80
|
startRow: s,
|
|
75
|
-
endRow: Math.min(e, Math.max(i.end, s +
|
|
81
|
+
endRow: Math.min(e, Math.max(i.end, s + wt))
|
|
76
82
|
};
|
|
77
|
-
},
|
|
83
|
+
}, Dt = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
|
|
78
84
|
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(
|
|
85
|
+
let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= x ? 60 : 0)), i = Q((n ? r : Math.min(xt, r)) - 64), a = Math.ceil(e / i);
|
|
80
86
|
return {
|
|
81
87
|
startRow: 0,
|
|
82
88
|
endRow: Math.min(a, 12),
|
|
@@ -86,7 +92,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
86
92
|
j(() => {
|
|
87
93
|
let n = r.current;
|
|
88
94
|
if (!n) return;
|
|
89
|
-
let i =
|
|
95
|
+
let i = St(n.parentElement), o = () => {
|
|
90
96
|
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
97
|
a({
|
|
92
98
|
startRow: f,
|
|
@@ -109,7 +115,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
109
115
|
rowCount: o,
|
|
110
116
|
totalHeight: o * 268
|
|
111
117
|
};
|
|
112
|
-
},
|
|
118
|
+
}, $ = {
|
|
113
119
|
skeletonColor: "var(--cg-skeleton-color, var(--bg-control-disable-primary, #dce0e8))",
|
|
114
120
|
card: "_card_18c2b_2",
|
|
115
121
|
emptyStarHidden: "_emptyStarHidden_18c2b_2",
|
|
@@ -213,11 +219,11 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
213
219
|
}),
|
|
214
220
|
className: k("flex h-6 w-fit items-center justify-center whitespace-nowrap rounded-md border px-2", Pt.tag, n, t),
|
|
215
221
|
children: e
|
|
216
|
-
}),
|
|
222
|
+
}), It = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ W(Ft, {
|
|
217
223
|
label: e,
|
|
218
224
|
badgeClassName: t,
|
|
219
225
|
colors: n
|
|
220
|
-
}),
|
|
226
|
+
}), Lt = 8, Rt = ({ topics: e, overflowAriaLabel: t, className: n }) => {
|
|
221
227
|
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
228
|
let t = r.current;
|
|
223
229
|
if (!t || e.length === 0) return;
|
|
@@ -229,8 +235,8 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
229
235
|
let u = o.current?.offsetWidth ?? 0, d = 0, f = 0;
|
|
230
236
|
for (let t = 0; t < e.length; t++) {
|
|
231
237
|
let r = e.length - (t + 1) > 0;
|
|
232
|
-
if (d + (t > 0 ?
|
|
233
|
-
d += (t > 0 ?
|
|
238
|
+
if (d + (t > 0 ? Lt : 0) + c[t] + (r ? Lt + u : 0) > n) break;
|
|
239
|
+
d += (t > 0 ? Lt : 0) + c[t], f = t + 1;
|
|
234
240
|
}
|
|
235
241
|
l(Math.min(f, s.current));
|
|
236
242
|
}, [e.length]);
|
|
@@ -261,24 +267,24 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
261
267
|
ref: (e) => {
|
|
262
268
|
i.current[t] = e;
|
|
263
269
|
},
|
|
264
|
-
children: /* @__PURE__ */ W(
|
|
270
|
+
children: /* @__PURE__ */ W(It, { label: e })
|
|
265
271
|
}, e)),
|
|
266
272
|
f > 0 && /* @__PURE__ */ W(Fe, {
|
|
267
273
|
tooltip: e.slice(c).join(", "),
|
|
268
274
|
children: /* @__PURE__ */ W("span", {
|
|
269
275
|
"aria-label": t?.(f) ?? `and ${f} more topics`,
|
|
270
|
-
children: /* @__PURE__ */ W(
|
|
276
|
+
children: /* @__PURE__ */ W(It, { label: `+${f}` })
|
|
271
277
|
})
|
|
272
278
|
}),
|
|
273
279
|
/* @__PURE__ */ W("div", {
|
|
274
280
|
ref: o,
|
|
275
281
|
"aria-hidden": !0,
|
|
276
282
|
className: "invisible absolute start-0 top-0",
|
|
277
|
-
children: /* @__PURE__ */ W(
|
|
283
|
+
children: /* @__PURE__ */ W(It, { label: `+${e.length}` })
|
|
278
284
|
})
|
|
279
285
|
]
|
|
280
286
|
});
|
|
281
|
-
},
|
|
287
|
+
}, zt = { img: () => null }, Bt = (e) => e.target instanceof Element && e.target.closest("a") !== null, Vt = ({ 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
288
|
let [m, h] = P(r);
|
|
283
289
|
j(() => {
|
|
284
290
|
h(r);
|
|
@@ -290,9 +296,9 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
290
296
|
"--cg-check-icon": d?.colors?.checkIcon,
|
|
291
297
|
"--cg-footer-border": d?.colors?.footerBorder
|
|
292
298
|
}), x = !p && e.isFeatured === !0, S = !p && a?.(e) !== !1, C = !p || e.folder.length > 0, w = n ? (t) => {
|
|
293
|
-
|
|
299
|
+
Bt(t) || n(e);
|
|
294
300
|
} : void 0, E = A((t) => {
|
|
295
|
-
!n ||
|
|
301
|
+
!n || Bt(t) || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e));
|
|
296
302
|
}, [n, e]), D = A((t) => {
|
|
297
303
|
t.stopPropagation();
|
|
298
304
|
let n = !m;
|
|
@@ -311,7 +317,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
311
317
|
} : {},
|
|
312
318
|
"aria-label": e.name,
|
|
313
319
|
style: b,
|
|
314
|
-
className: k("box-border cursor-pointer gap-3",
|
|
320
|
+
className: k("box-border cursor-pointer gap-3", $.card, x ? $.featuredCard : void 0, l ? $.selectedCard : void 0, u, yt.card),
|
|
315
321
|
children: [
|
|
316
322
|
x && /* @__PURE__ */ W("div", {
|
|
317
323
|
className: "absolute end-[22px] top-0 -translate-y-1/2",
|
|
@@ -324,7 +330,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
324
330
|
}),
|
|
325
331
|
l && /* @__PURE__ */ W(ze, {
|
|
326
332
|
size: L.SM,
|
|
327
|
-
className: k("absolute end-3 top-3 shrink-0",
|
|
333
|
+
className: k("absolute end-3 top-3 shrink-0", $.checkIcon),
|
|
328
334
|
"aria-hidden": !0,
|
|
329
335
|
stroke: R
|
|
330
336
|
}),
|
|
@@ -335,14 +341,14 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
335
341
|
version: e.version,
|
|
336
342
|
size: Y.SM,
|
|
337
343
|
query: t,
|
|
338
|
-
iconClassName:
|
|
344
|
+
iconClassName: $.cardIcon,
|
|
339
345
|
iconOverlay: /* @__PURE__ */ W(jt, {
|
|
340
346
|
credentials: e.credentials,
|
|
341
347
|
loggedOutLabel: f
|
|
342
348
|
})
|
|
343
349
|
}),
|
|
344
350
|
/* @__PURE__ */ W("div", {
|
|
345
|
-
className: k("line-clamp-2 min-h-[2lh] break-words",
|
|
351
|
+
className: k("line-clamp-2 min-h-[2lh] break-words", $.description),
|
|
346
352
|
children: e.description && /* @__PURE__ */ W(O, {
|
|
347
353
|
content: e.description,
|
|
348
354
|
classNames: {
|
|
@@ -356,15 +362,15 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
356
362
|
h5: g,
|
|
357
363
|
h6: g
|
|
358
364
|
},
|
|
359
|
-
components:
|
|
365
|
+
components: zt
|
|
360
366
|
})
|
|
361
367
|
}),
|
|
362
368
|
/* @__PURE__ */ W("div", {
|
|
363
369
|
className: "mt-auto flex items-center gap-2",
|
|
364
|
-
children: /* @__PURE__ */ W(
|
|
370
|
+
children: /* @__PURE__ */ W(Rt, { topics: e.topics })
|
|
365
371
|
}),
|
|
366
372
|
C && /* @__PURE__ */ W("div", {
|
|
367
|
-
className: k("pt-3", !p && k("border-t",
|
|
373
|
+
className: k("pt-3", !p && k("border-t", $.footer)),
|
|
368
374
|
children: /* @__PURE__ */ G("div", {
|
|
369
375
|
className: "flex items-center gap-2",
|
|
370
376
|
children: [/* @__PURE__ */ W("div", {
|
|
@@ -379,13 +385,13 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
379
385
|
size: pe.Small,
|
|
380
386
|
onClick: D,
|
|
381
387
|
ariaLabel: m ? c : s,
|
|
382
|
-
className: k(
|
|
388
|
+
className: k($.starBtn, !m && $.emptyStarHidden)
|
|
383
389
|
})]
|
|
384
390
|
})
|
|
385
391
|
})
|
|
386
392
|
]
|
|
387
393
|
});
|
|
388
|
-
},
|
|
394
|
+
}, Ht = ({ 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
395
|
let m = e * n, h = t.slice(m, m + n);
|
|
390
396
|
return /* @__PURE__ */ W("div", {
|
|
391
397
|
style: {
|
|
@@ -397,7 +403,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
397
403
|
let n = h[t];
|
|
398
404
|
return /* @__PURE__ */ W("div", {
|
|
399
405
|
className: "h-full min-w-0 flex-1",
|
|
400
|
-
children: n && /* @__PURE__ */ W(
|
|
406
|
+
children: n && /* @__PURE__ */ W(Vt, {
|
|
401
407
|
item: n,
|
|
402
408
|
query: r,
|
|
403
409
|
initialIsStarred: n.isStarred,
|
|
@@ -416,8 +422,8 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
416
422
|
}, n?.id ?? `spacer-${t}`);
|
|
417
423
|
})
|
|
418
424
|
});
|
|
419
|
-
},
|
|
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 } =
|
|
425
|
+
}, Ut = oe(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = $.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1, featuredChipStyle: f }) => {
|
|
426
|
+
let p = a?.noResultsTitle ?? "No results", m = a?.featuredLabel ?? "Featured", h = a?.addToFavoritesAriaLabel ?? "Add to favorites", g = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", _ = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", { containerRef: v, startRow: y, endRow: b, columnCount: x, totalHeight: S } = Dt(e.length, { isFullWidth: d }), C = M(() => ({
|
|
421
427
|
items: e,
|
|
422
428
|
columnCount: x,
|
|
423
429
|
query: t,
|
|
@@ -453,7 +459,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
453
459
|
...ie({ "--cg-skeleton-card-bg": l })
|
|
454
460
|
},
|
|
455
461
|
children: Array.from({ length: x * 3 }, (e, t) => /* @__PURE__ */ W("div", {
|
|
456
|
-
className: k("rounded-md border p-4",
|
|
462
|
+
className: k("rounded-md border p-4", $.skeletonCard),
|
|
457
463
|
style: { height: 248 },
|
|
458
464
|
children: /* @__PURE__ */ W(je, {
|
|
459
465
|
avatar: {
|
|
@@ -475,26 +481,26 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
475
481
|
style: { height: S },
|
|
476
482
|
children: Array.from({ length: b - y }, (e, t) => {
|
|
477
483
|
let n = y + t;
|
|
478
|
-
return /* @__PURE__ */ W(
|
|
484
|
+
return /* @__PURE__ */ W(Ht, {
|
|
479
485
|
rowIndex: n,
|
|
480
486
|
...C
|
|
481
487
|
}, n);
|
|
482
488
|
})
|
|
483
489
|
});
|
|
484
|
-
}),
|
|
490
|
+
}), Wt = (e) => e.reduce((e, t) => t.type === Z.File ? e + 1 : e + Wt(t.items), 0), Gt = (e) => {
|
|
485
491
|
let t = /* @__PURE__ */ new Set(), n = (e) => {
|
|
486
492
|
for (let r of e) r.type === Z.Folder && (t.add(r.id), n(r.items));
|
|
487
493
|
};
|
|
488
494
|
return n(e), t;
|
|
489
|
-
},
|
|
495
|
+
}, Kt = (e, t) => {
|
|
490
496
|
if (t != null) for (let n of e) {
|
|
491
497
|
if (n.id === t) return n.name;
|
|
492
498
|
if (n.type === Z.Folder) {
|
|
493
|
-
let e =
|
|
499
|
+
let e = Kt(n.items, t);
|
|
494
500
|
if (e != null) return e;
|
|
495
501
|
}
|
|
496
502
|
}
|
|
497
|
-
},
|
|
503
|
+
}, qt = {
|
|
498
504
|
sectionHeading: "_sectionHeading_jnq93_1",
|
|
499
505
|
rowAlt: "_rowAlt_jnq93_5",
|
|
500
506
|
label: "_label_jnq93_9",
|
|
@@ -502,19 +508,19 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
502
508
|
valueTrue: "_valueTrue_jnq93_17",
|
|
503
509
|
valueFalse: "_valueFalse_jnq93_21",
|
|
504
510
|
valueText: "_valueText_jnq93_25"
|
|
505
|
-
},
|
|
511
|
+
}, Jt = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(Ue, {
|
|
506
512
|
size: L.MD,
|
|
507
|
-
className: k(r,
|
|
513
|
+
className: k(r, qt.checkIcon)
|
|
508
514
|
}), /* @__PURE__ */ W("span", {
|
|
509
|
-
className: k(n,
|
|
515
|
+
className: k(n, qt.valueTrue),
|
|
510
516
|
children: i
|
|
511
517
|
})] }) : e === !1 ? /* @__PURE__ */ W("span", {
|
|
512
|
-
className: k(t,
|
|
518
|
+
className: k(t, qt.valueFalse),
|
|
513
519
|
children: a
|
|
514
520
|
}) : /* @__PURE__ */ W("span", {
|
|
515
|
-
className: k("min-w-0 break-words", t,
|
|
521
|
+
className: k("min-w-0 break-words", t, qt.valueText),
|
|
516
522
|
children: e
|
|
517
|
-
}),
|
|
523
|
+
}), Yt = ({ 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
524
|
className: "flex flex-col",
|
|
519
525
|
style: ie({
|
|
520
526
|
"--tv-section-heading": l?.sectionHeading,
|
|
@@ -526,18 +532,18 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
526
532
|
"--tv-value-text": l?.valueText
|
|
527
533
|
}),
|
|
528
534
|
children: t != null && t.length > 0 && /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ W("p", {
|
|
529
|
-
className: k("mb-3 mt-0", o,
|
|
535
|
+
className: k("mb-3 mt-0", o, qt.sectionHeading),
|
|
530
536
|
children: e
|
|
531
537
|
}), /* @__PURE__ */ W("ul", {
|
|
532
538
|
className: "m-0 list-none p-0",
|
|
533
539
|
children: t.map((e, t) => /* @__PURE__ */ G("li", {
|
|
534
|
-
className: k("flex items-center rounded px-3 py-2", t % 2 == 0 ?
|
|
540
|
+
className: k("flex items-center rounded px-3 py-2", t % 2 == 0 ? qt.rowAlt : void 0),
|
|
535
541
|
children: [/* @__PURE__ */ W("span", {
|
|
536
|
-
className: k(n,
|
|
542
|
+
className: k(n, qt.label, "w-2/5 shrink-0"),
|
|
537
543
|
children: e.label
|
|
538
544
|
}), /* @__PURE__ */ W("div", {
|
|
539
545
|
className: "flex w-3/5 min-w-0 items-center gap-1",
|
|
540
|
-
children: /* @__PURE__ */ W(
|
|
546
|
+
children: /* @__PURE__ */ W(Jt, {
|
|
541
547
|
value: e.value,
|
|
542
548
|
valueClassName: r,
|
|
543
549
|
valueTrueClassName: i,
|
|
@@ -548,30 +554,30 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
548
554
|
})]
|
|
549
555
|
}, e.label))
|
|
550
556
|
})] })
|
|
551
|
-
}),
|
|
557
|
+
}), Xt = { sectionHeading: "_sectionHeading_148lj_1" }, Zt = {
|
|
552
558
|
[ht.Python]: "Python",
|
|
553
559
|
[ht.Curl]: "cURL",
|
|
554
560
|
[ht.JavaScript]: "JavaScript"
|
|
555
|
-
},
|
|
561
|
+
}, Qt = {
|
|
556
562
|
[ht.Python]: "python",
|
|
557
563
|
[ht.Curl]: "bash",
|
|
558
564
|
[ht.JavaScript]: "javascript"
|
|
559
|
-
},
|
|
565
|
+
}, $t = ({ 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
566
|
let [s, c] = P(e[0]?.language ?? ht.Python);
|
|
561
567
|
j(() => {
|
|
562
568
|
c(e[0]?.language ?? ht.Python);
|
|
563
569
|
}, [e]);
|
|
564
570
|
let l = M(() => e.map((e) => ({
|
|
565
571
|
key: e.language,
|
|
566
|
-
label:
|
|
572
|
+
label: Zt[e.language] ?? e.language,
|
|
567
573
|
onClick: () => c(e.language)
|
|
568
574
|
})), [e]), u = e.find((e) => e.language === s)?.code ?? "", d = e.length > 1;
|
|
569
575
|
return /* @__PURE__ */ G("section", { children: [t != null && /* @__PURE__ */ W("p", {
|
|
570
|
-
className: k("mb-3 mt-0", o,
|
|
576
|
+
className: k("mb-3 mt-0", o, Xt.sectionHeading),
|
|
571
577
|
children: t
|
|
572
578
|
}), /* @__PURE__ */ W(D, {
|
|
573
|
-
language:
|
|
574
|
-
title:
|
|
579
|
+
language: Qt[s] ?? s,
|
|
580
|
+
title: Zt[s] ?? s,
|
|
575
581
|
value: u,
|
|
576
582
|
copyLabel: n,
|
|
577
583
|
copiedLabel: r,
|
|
@@ -586,7 +592,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
586
592
|
selectedKey: s
|
|
587
593
|
}) : void 0
|
|
588
594
|
})] });
|
|
589
|
-
},
|
|
595
|
+
}, en = ({ 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
596
|
let [h, g] = P(0), _ = M(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = M(() => _.map((e, t) => ({
|
|
591
597
|
key: e.url,
|
|
592
598
|
label: e.label,
|
|
@@ -600,7 +606,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
600
606
|
return /* @__PURE__ */ G("div", {
|
|
601
607
|
className: "flex flex-col gap-6",
|
|
602
608
|
children: [
|
|
603
|
-
C && /* @__PURE__ */ W(
|
|
609
|
+
C && /* @__PURE__ */ W(Yt, {
|
|
604
610
|
sectionLabel: t,
|
|
605
611
|
values: x,
|
|
606
612
|
labelClassName: u,
|
|
@@ -618,7 +624,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
618
624
|
}),
|
|
619
625
|
v && /* @__PURE__ */ G("section", { children: [
|
|
620
626
|
/* @__PURE__ */ W("p", {
|
|
621
|
-
className: k("mb-3 mt-0", m,
|
|
627
|
+
className: k("mb-3 mt-0", m, Xt.sectionHeading),
|
|
622
628
|
children: n
|
|
623
629
|
}),
|
|
624
630
|
y != null && /* @__PURE__ */ W(D, {
|
|
@@ -639,7 +645,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
639
645
|
}, h),
|
|
640
646
|
y?.snippets != null && y.snippets.length > 0 && /* @__PURE__ */ W("div", {
|
|
641
647
|
className: "mt-4",
|
|
642
|
-
children: /* @__PURE__ */ W(
|
|
648
|
+
children: /* @__PURE__ */ W($t, {
|
|
643
649
|
snippets: y.snippets,
|
|
644
650
|
copyAriaLabel: c,
|
|
645
651
|
copiedStatusLabel: l,
|
|
@@ -649,7 +655,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
649
655
|
}, h)
|
|
650
656
|
})
|
|
651
657
|
] }),
|
|
652
|
-
!v && T && /* @__PURE__ */ W(
|
|
658
|
+
!v && T && /* @__PURE__ */ W($t, {
|
|
653
659
|
snippets: e.snippets ?? [],
|
|
654
660
|
sectionLabel: r,
|
|
655
661
|
copyAriaLabel: c,
|
|
@@ -659,7 +665,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
659
665
|
sectionClassName: m
|
|
660
666
|
}),
|
|
661
667
|
E && /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ W("p", {
|
|
662
|
-
className: k("mb-3 mt-0", m,
|
|
668
|
+
className: k("mb-3 mt-0", m, Xt.sectionHeading),
|
|
663
669
|
children: o
|
|
664
670
|
}), /* @__PURE__ */ W(D, {
|
|
665
671
|
language: "bash",
|
|
@@ -670,7 +676,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
670
676
|
hideDownload: !0
|
|
671
677
|
})] }),
|
|
672
678
|
O && /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ W("p", {
|
|
673
|
-
className: k("mb-3 mt-0", m,
|
|
679
|
+
className: k("mb-3 mt-0", m, Xt.sectionHeading),
|
|
674
680
|
children: s
|
|
675
681
|
}), /* @__PURE__ */ W(D, {
|
|
676
682
|
language: "json",
|
|
@@ -682,11 +688,11 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
682
688
|
})] })
|
|
683
689
|
]
|
|
684
690
|
});
|
|
685
|
-
},
|
|
691
|
+
}, tn = {
|
|
686
692
|
message: "_message_13mok_1",
|
|
687
693
|
consequences: "_consequences_13mok_5",
|
|
688
694
|
footer: "_footer_13mok_9"
|
|
689
|
-
},
|
|
695
|
+
}, nn = ({ confirmLabel: e, cancelLabel: t, variant: n = J.Info, isLoading: r = !1, isConfirmDisabled: i = !1, loadingStatusLabel: a, onConfirm: o, onCancel: s }) => {
|
|
690
696
|
let c = n === J.Danger, l = (() => {
|
|
691
697
|
if (r) return /* @__PURE__ */ W(Me, { size: L.SM });
|
|
692
698
|
if (c) return /* @__PURE__ */ W(at, {
|
|
@@ -696,7 +702,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
696
702
|
});
|
|
697
703
|
})(), u = c ? de : we;
|
|
698
704
|
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",
|
|
705
|
+
className: k("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start", tn.footer),
|
|
700
706
|
children: [
|
|
701
707
|
/* @__PURE__ */ W(ge, {
|
|
702
708
|
label: t,
|
|
@@ -717,78 +723,78 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
717
723
|
})
|
|
718
724
|
]
|
|
719
725
|
});
|
|
720
|
-
},
|
|
726
|
+
}, rn = {
|
|
721
727
|
info: "_info_lklha_1",
|
|
722
728
|
danger: "_danger_lklha_5"
|
|
723
|
-
},
|
|
729
|
+
}, an = ({ item: e, variant: t = J.Info, iconSize: n = 40 }) => /* @__PURE__ */ W(ne, {
|
|
724
730
|
item: e,
|
|
725
731
|
iconSize: n,
|
|
726
732
|
hasVersionTag: !1,
|
|
727
|
-
className: t === J.Danger ?
|
|
728
|
-
}),
|
|
733
|
+
className: t === J.Danger ? rn.danger : rn.info
|
|
734
|
+
}), on = ({ item: e, message: t, consequences: n, variant: r = J.Info, messageClassName: i = "dial-small-text", children: a }) => /* @__PURE__ */ G("div", {
|
|
729
735
|
className: "flex flex-col gap-4 px-6 py-4",
|
|
730
736
|
children: [
|
|
731
|
-
/* @__PURE__ */ W(
|
|
737
|
+
/* @__PURE__ */ W(an, {
|
|
732
738
|
item: e,
|
|
733
739
|
variant: r
|
|
734
740
|
}),
|
|
735
741
|
/* @__PURE__ */ W("p", {
|
|
736
|
-
className: k(i, "break-words",
|
|
742
|
+
className: k(i, "break-words", tn.message),
|
|
737
743
|
children: t
|
|
738
744
|
}),
|
|
739
745
|
n != null && n.length > 0 && /* @__PURE__ */ W("ul", {
|
|
740
|
-
className: k("flex list-disc flex-col gap-2 ps-5", i,
|
|
746
|
+
className: k("flex list-disc flex-col gap-2 ps-5", i, tn.consequences),
|
|
741
747
|
children: n.map((e) => /* @__PURE__ */ W("li", { children: e }, e))
|
|
742
748
|
}),
|
|
743
749
|
a
|
|
744
750
|
]
|
|
745
|
-
}),
|
|
751
|
+
}), sn = {
|
|
746
752
|
sunkenBox: "_sunkenBox_1lqi3_1",
|
|
747
753
|
raisedBox: "_raisedBox_1lqi3_5",
|
|
748
754
|
activeIcon: "_activeIcon_1lqi3_9"
|
|
749
|
-
},
|
|
755
|
+
}, cn = /* @__PURE__ */ function(e) {
|
|
750
756
|
return e.Sunken = "sunken", e.Raised = "raised", e;
|
|
751
|
-
}({}),
|
|
752
|
-
sunken:
|
|
753
|
-
raised:
|
|
754
|
-
},
|
|
757
|
+
}({}), ln = {
|
|
758
|
+
sunken: sn.sunkenBox,
|
|
759
|
+
raised: sn.raisedBox
|
|
760
|
+
}, un = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */ G("span", {
|
|
755
761
|
className: "relative inline-flex shrink-0",
|
|
756
762
|
children: [
|
|
757
763
|
/* @__PURE__ */ W("span", {
|
|
758
|
-
className: k("flex size-8 items-center justify-center rounded-lg",
|
|
764
|
+
className: k("flex size-8 items-center justify-center rounded-lg", ln[n]),
|
|
759
765
|
children: e
|
|
760
766
|
}),
|
|
761
767
|
t && /* @__PURE__ */ W(Ue, {
|
|
762
768
|
size: L.MD,
|
|
763
769
|
"aria-hidden": !0,
|
|
764
|
-
className: k("absolute -end-2 -top-2",
|
|
770
|
+
className: k("absolute -end-2 -top-2", sn.activeIcon)
|
|
765
771
|
}),
|
|
766
772
|
r != null && /* @__PURE__ */ W("span", {
|
|
767
773
|
className: "sr-only",
|
|
768
774
|
children: r
|
|
769
775
|
})
|
|
770
776
|
]
|
|
771
|
-
}),
|
|
777
|
+
}), dn = {
|
|
772
778
|
card: "_card_tqnz7_1",
|
|
773
779
|
icon: "_icon_tqnz7_6",
|
|
774
780
|
title: "_title_tqnz7_10",
|
|
775
781
|
description: "_description_tqnz7_14"
|
|
776
|
-
},
|
|
782
|
+
}, fn = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ G("div", {
|
|
777
783
|
role: "status",
|
|
778
784
|
"aria-live": "polite",
|
|
779
|
-
className: k("flex items-center gap-3 rounded-xl p-3",
|
|
785
|
+
className: k("flex items-center gap-3 rounded-xl p-3", dn.card),
|
|
780
786
|
children: [/* @__PURE__ */ W("span", {
|
|
781
|
-
className: k("shrink-0",
|
|
787
|
+
className: k("shrink-0", dn.icon, n != null && "mt-0.5"),
|
|
782
788
|
children: e
|
|
783
789
|
}), /* @__PURE__ */ G("div", {
|
|
784
790
|
className: "flex min-w-0 flex-1 items-center justify-between gap-2",
|
|
785
791
|
children: [/* @__PURE__ */ G("div", {
|
|
786
792
|
className: "flex min-w-0 flex-col gap-1",
|
|
787
793
|
children: [/* @__PURE__ */ W("span", {
|
|
788
|
-
className: k(i,
|
|
794
|
+
className: k(i, dn.title),
|
|
789
795
|
children: t
|
|
790
796
|
}), n != null && /* @__PURE__ */ W("span", {
|
|
791
|
-
className: k(a,
|
|
797
|
+
className: k(a, dn.description),
|
|
792
798
|
children: n
|
|
793
799
|
})]
|
|
794
800
|
}), r != null && /* @__PURE__ */ W("div", {
|
|
@@ -796,53 +802,53 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
796
802
|
children: r
|
|
797
803
|
})]
|
|
798
804
|
})]
|
|
799
|
-
}),
|
|
805
|
+
}), pn = (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.", mn = (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.", hn = (e) => e === n.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", gn = (e) => e === n.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", _n = 20, vn = ({ state: t, authenticationType: n, texts: r }) => {
|
|
800
806
|
let i = /* @__PURE__ */ W(Re, {
|
|
801
|
-
size:
|
|
807
|
+
size: _n,
|
|
802
808
|
"aria-hidden": !0,
|
|
803
809
|
stroke: R
|
|
804
810
|
});
|
|
805
811
|
if (t === e.PersonalCredentialsActive) {
|
|
806
|
-
let e = (r?.personalCredentialsActiveBannerTitle ??
|
|
807
|
-
return /* @__PURE__ */ W(
|
|
808
|
-
icon: /* @__PURE__ */ W(
|
|
812
|
+
let e = (r?.personalCredentialsActiveBannerTitle ?? gn)(n);
|
|
813
|
+
return /* @__PURE__ */ W(fn, {
|
|
814
|
+
icon: /* @__PURE__ */ W(un, {
|
|
809
815
|
icon: /* @__PURE__ */ W(ot, {
|
|
810
816
|
size: L.SM,
|
|
811
817
|
"aria-hidden": !0,
|
|
812
818
|
stroke: R
|
|
813
819
|
}),
|
|
814
820
|
isActive: !0,
|
|
815
|
-
surface:
|
|
821
|
+
surface: cn.Raised
|
|
816
822
|
}),
|
|
817
823
|
title: e
|
|
818
824
|
});
|
|
819
825
|
}
|
|
820
826
|
if (t === e.OrgCredentialsActive) {
|
|
821
|
-
let e = (r?.orgCredentialsActiveBannerTitle ??
|
|
822
|
-
return /* @__PURE__ */ W(
|
|
823
|
-
icon: /* @__PURE__ */ W(
|
|
827
|
+
let e = (r?.orgCredentialsActiveBannerTitle ?? hn)(n);
|
|
828
|
+
return /* @__PURE__ */ W(fn, {
|
|
829
|
+
icon: /* @__PURE__ */ W(un, {
|
|
824
830
|
icon: /* @__PURE__ */ W(Re, {
|
|
825
831
|
size: L.SM,
|
|
826
832
|
"aria-hidden": !0,
|
|
827
833
|
stroke: R
|
|
828
834
|
}),
|
|
829
835
|
isActive: !0,
|
|
830
|
-
surface:
|
|
836
|
+
surface: cn.Raised
|
|
831
837
|
}),
|
|
832
838
|
title: e
|
|
833
839
|
});
|
|
834
840
|
}
|
|
835
|
-
return /* @__PURE__ */ W(
|
|
841
|
+
return /* @__PURE__ */ W(fn, {
|
|
836
842
|
icon: i,
|
|
837
|
-
title: (r?.orgFallbackBannerTitle ??
|
|
838
|
-
description: (r?.orgFallbackBannerDescription ??
|
|
843
|
+
title: (r?.orgFallbackBannerTitle ?? pn)(n),
|
|
844
|
+
description: (r?.orgFallbackBannerDescription ?? mn)(n)
|
|
839
845
|
});
|
|
840
|
-
},
|
|
846
|
+
}, yn = {
|
|
841
847
|
surface: "_surface_1q3s8_1",
|
|
842
848
|
description: "_description_1q3s8_5",
|
|
843
849
|
rowDescription: "_rowDescription_1q3s8_9",
|
|
844
850
|
errorText: "_errorText_1q3s8_13"
|
|
845
|
-
},
|
|
851
|
+
}, bn = ({ 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
852
|
let [x, S] = P(""), [C, w] = P(!1), [T, E] = P(!1), D = o === s.SignedIn, O = A(() => {
|
|
847
853
|
d?.(e, { level: t });
|
|
848
854
|
}, [
|
|
@@ -877,7 +883,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
877
883
|
}, [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
884
|
return /* @__PURE__ */ G("div", {
|
|
879
885
|
className: "flex items-start gap-3 rounded-xl p-3",
|
|
880
|
-
children: [/* @__PURE__ */ W(
|
|
886
|
+
children: [/* @__PURE__ */ W(un, {
|
|
881
887
|
icon: a,
|
|
882
888
|
isActive: c,
|
|
883
889
|
statusLabel: c ? se : M
|
|
@@ -892,7 +898,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
892
898
|
className: h,
|
|
893
899
|
children: r
|
|
894
900
|
}), /* @__PURE__ */ W("span", {
|
|
895
|
-
className: k(g,
|
|
901
|
+
className: k(g, yn.rowDescription),
|
|
896
902
|
children: i
|
|
897
903
|
})]
|
|
898
904
|
}), l === n.OAuth && (D ? /* @__PURE__ */ W(de, {
|
|
@@ -932,13 +938,13 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
932
938
|
disabled: T
|
|
933
939
|
})]
|
|
934
940
|
}), C && /* @__PURE__ */ W("span", {
|
|
935
|
-
className: k(_,
|
|
941
|
+
className: k(_, yn.errorText),
|
|
936
942
|
children: m?.apiKeyRequiredErrorMessage ?? "API key is required."
|
|
937
943
|
})]
|
|
938
944
|
}),
|
|
939
945
|
l === n.ApiKey && D && /* @__PURE__ */ W("div", {
|
|
940
946
|
className: "animate-fadeIn pt-1",
|
|
941
|
-
children: /* @__PURE__ */ W(
|
|
947
|
+
children: /* @__PURE__ */ W(fn, {
|
|
942
948
|
icon: /* @__PURE__ */ W(Je, {
|
|
943
949
|
size: L.SM,
|
|
944
950
|
"aria-hidden": !0,
|
|
@@ -958,16 +964,16 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
958
964
|
]
|
|
959
965
|
})]
|
|
960
966
|
});
|
|
961
|
-
},
|
|
967
|
+
}, xn = (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.", Sn = ({ item: e, onLogin: t, onRequestLogout: n, onRequestDeleteApiKey: r, texts: i, detailsStyles: a, deleteActionClassName: o = "text-error" }) => {
|
|
962
968
|
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
969
|
if (m == null) return null;
|
|
964
|
-
let h = (i?.credentialsManagementDescription ??
|
|
970
|
+
let h = (i?.credentialsManagementDescription ?? xn)(m.authenticationType), g = m.userStatus === s.SignedIn, _ = !g && m.globalStatus === s.SignedIn;
|
|
965
971
|
return /* @__PURE__ */ G("div", {
|
|
966
972
|
className: "flex flex-col",
|
|
967
973
|
children: [/* @__PURE__ */ W("div", {
|
|
968
974
|
className: "px-6 py-4",
|
|
969
975
|
children: /* @__PURE__ */ W("div", {
|
|
970
|
-
className: k("rounded-xl p-3",
|
|
976
|
+
className: k("rounded-xl p-3", yn.surface),
|
|
971
977
|
children: /* @__PURE__ */ W(C, {
|
|
972
978
|
item: e,
|
|
973
979
|
iconSize: 40,
|
|
@@ -977,11 +983,11 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
977
983
|
}), /* @__PURE__ */ G("div", {
|
|
978
984
|
className: "flex flex-col gap-5 px-6 py-4",
|
|
979
985
|
children: [/* @__PURE__ */ W("span", {
|
|
980
|
-
className: k(c,
|
|
986
|
+
className: k(c, yn.description),
|
|
981
987
|
children: h
|
|
982
988
|
}), /* @__PURE__ */ G("div", {
|
|
983
989
|
className: "flex flex-col",
|
|
984
|
-
children: [/* @__PURE__ */ W(
|
|
990
|
+
children: [/* @__PURE__ */ W(bn, {
|
|
985
991
|
item: e,
|
|
986
992
|
level: v.User,
|
|
987
993
|
label: i?.personalCredentialsLabel ?? "Personal credentials",
|
|
@@ -1005,7 +1011,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1005
1011
|
keyCardTitleClassName: f,
|
|
1006
1012
|
keyCardDescriptionClassName: p,
|
|
1007
1013
|
deleteActionClassName: o
|
|
1008
|
-
}), /* @__PURE__ */ W(
|
|
1014
|
+
}), /* @__PURE__ */ W(bn, {
|
|
1009
1015
|
item: e,
|
|
1010
1016
|
level: v.Global,
|
|
1011
1017
|
label: i?.organizationCredentialsLabel ?? "Organization credentials",
|
|
@@ -1033,16 +1039,16 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1033
1039
|
})]
|
|
1034
1040
|
})]
|
|
1035
1041
|
});
|
|
1036
|
-
},
|
|
1042
|
+
}, Cn = {
|
|
1037
1043
|
skeletonColor: "var(--cat-details-skeleton, var(--bg-control-disable-primary, #dce0e8))",
|
|
1038
1044
|
backdrop: "_backdrop_16ka5_2",
|
|
1039
1045
|
panel: "_panel_16ka5_6",
|
|
1040
1046
|
divider: "_divider_16ka5_11",
|
|
1041
1047
|
content: "_content_16ka5_15",
|
|
1042
1048
|
publishTitle: "_publishTitle_16ka5_20"
|
|
1043
|
-
},
|
|
1049
|
+
}, wn = /* @__PURE__ */ function(e) {
|
|
1044
1050
|
return e.Idle = "idle", e.Loading = "loading", e.Resolved = "resolved", e.Unknown = "unknown", e;
|
|
1045
|
-
}({}),
|
|
1051
|
+
}({}), Tn = { divider: "_divider_nhloi_1" }, En = 16, Dn = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, onLogin: i, onLogout: a, onClose: o, texts: c, deleteActionClassName: l = "text-error" }) => {
|
|
1046
1052
|
let [u, d] = P(""), [f, p] = P(!1), [m, h] = P(!1), [g, _] = P(!1), v = n === s.SignedIn, y = A((e) => {
|
|
1047
1053
|
d(e ?? ""), p(!1);
|
|
1048
1054
|
}, []), b = A(async () => {
|
|
@@ -1088,7 +1094,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1088
1094
|
children: S
|
|
1089
1095
|
})
|
|
1090
1096
|
}),
|
|
1091
|
-
/* @__PURE__ */ W("div", { className: k("mx-4 h-px",
|
|
1097
|
+
/* @__PURE__ */ W("div", { className: k("mx-4 h-px", Tn.divider) }),
|
|
1092
1098
|
!v && /* @__PURE__ */ G("div", {
|
|
1093
1099
|
className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
|
|
1094
1100
|
children: [/* @__PURE__ */ G("div", {
|
|
@@ -1107,7 +1113,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1107
1113
|
label: m ? void 0 : C,
|
|
1108
1114
|
"aria-label": m ? T : void 0,
|
|
1109
1115
|
iconBefore: m ? /* @__PURE__ */ W(Me, {
|
|
1110
|
-
size:
|
|
1116
|
+
size: En,
|
|
1111
1117
|
ariaLabel: T
|
|
1112
1118
|
}) : void 0,
|
|
1113
1119
|
onClick: b,
|
|
@@ -1120,7 +1126,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1120
1126
|
}),
|
|
1121
1127
|
v && /* @__PURE__ */ W("div", {
|
|
1122
1128
|
className: "animate-fadeIn px-4 py-3.5",
|
|
1123
|
-
children: /* @__PURE__ */ W(
|
|
1129
|
+
children: /* @__PURE__ */ W(fn, {
|
|
1124
1130
|
icon: /* @__PURE__ */ W(Je, {
|
|
1125
1131
|
size: 20,
|
|
1126
1132
|
"aria-hidden": !0,
|
|
@@ -1132,7 +1138,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1132
1138
|
label: g ? void 0 : w,
|
|
1133
1139
|
"aria-label": g ? E : void 0,
|
|
1134
1140
|
iconBefore: g ? /* @__PURE__ */ W(Me, {
|
|
1135
|
-
size:
|
|
1141
|
+
size: En,
|
|
1136
1142
|
ariaLabel: E
|
|
1137
1143
|
}) : void 0,
|
|
1138
1144
|
className: l,
|
|
@@ -1143,7 +1149,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1143
1149
|
})
|
|
1144
1150
|
]
|
|
1145
1151
|
});
|
|
1146
|
-
},
|
|
1152
|
+
}, On = { name: "_name_gfs1p_1" }, kn = (e) => e.isMyApp === !0, An = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
|
|
1147
1153
|
let [a, o] = P(!1), s = A(() => {
|
|
1148
1154
|
if (n) {
|
|
1149
1155
|
o((e) => !e);
|
|
@@ -1155,7 +1161,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1155
1161
|
t,
|
|
1156
1162
|
n
|
|
1157
1163
|
]);
|
|
1158
|
-
if (!
|
|
1164
|
+
if (!kn(e) || r && !r(e)) return null;
|
|
1159
1165
|
let c = /* @__PURE__ */ W(we, {
|
|
1160
1166
|
label: i,
|
|
1161
1167
|
iconBefore: /* @__PURE__ */ W(nt, {
|
|
@@ -1180,14 +1186,14 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1180
1186
|
renderOverlay: () => n(e, () => o(!1)),
|
|
1181
1187
|
children: c
|
|
1182
1188
|
}) : c;
|
|
1183
|
-
},
|
|
1189
|
+
}, jn = (e) => e === n.ApiKey ? "Manage API keys" : "Manage credentials", Mn = {
|
|
1184
1190
|
[gt.LimitReached]: "bg-error text-error",
|
|
1185
1191
|
[gt.RunningLow]: "bg-warning text-warning"
|
|
1186
|
-
},
|
|
1187
|
-
className: k("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text",
|
|
1192
|
+
}, Nn = ({ status: e, label: t }) => /* @__PURE__ */ W("div", {
|
|
1193
|
+
className: k("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", Mn[e]),
|
|
1188
1194
|
children: t
|
|
1189
|
-
}),
|
|
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(
|
|
1195
|
+
}), Pn = ({ 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 }) => {
|
|
1196
|
+
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(Nn, {
|
|
1191
1197
|
status: ue,
|
|
1192
1198
|
label: ue === gt.LimitReached ? D?.limitReachedLabel ?? "Limit reached" : D?.limitRunningLowLabel ?? "Running low"
|
|
1193
1199
|
}), pe = A(() => {
|
|
@@ -1238,21 +1244,21 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1238
1244
|
f?.(e);
|
|
1239
1245
|
}, [e, f]), Ae = A(() => {
|
|
1240
1246
|
g?.(e);
|
|
1241
|
-
}, [e, g]), [je, B] = P(
|
|
1247
|
+
}, [e, g]), [je, B] = P(wn.Idle), [Ne, Pe] = P(void 0), Fe = N(null);
|
|
1242
1248
|
j(() => {
|
|
1243
|
-
Fe.current = null, B(
|
|
1249
|
+
Fe.current = null, B(wn.Idle), Pe(void 0);
|
|
1244
1250
|
}, [e.id]);
|
|
1245
1251
|
let V = A(() => {
|
|
1246
1252
|
if (!_ || Fe.current === e.id || !g || e.isMyApp !== !0 || x?.(e) === !1) return;
|
|
1247
1253
|
let t = e.id;
|
|
1248
|
-
Fe.current = t, B(
|
|
1254
|
+
Fe.current = t, B(wn.Loading), (async () => {
|
|
1249
1255
|
try {
|
|
1250
1256
|
let n = await _(e);
|
|
1251
1257
|
if (Fe.current !== t) return;
|
|
1252
|
-
Pe(n), B(n == null ?
|
|
1258
|
+
Pe(n), B(n == null ? wn.Unknown : wn.Resolved);
|
|
1253
1259
|
} catch {
|
|
1254
1260
|
if (Fe.current !== t) return;
|
|
1255
|
-
Pe(void 0), B(
|
|
1261
|
+
Pe(void 0), B(wn.Unknown);
|
|
1256
1262
|
}
|
|
1257
1263
|
})();
|
|
1258
1264
|
}, [
|
|
@@ -1266,7 +1272,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1266
1272
|
V(), oe?.();
|
|
1267
1273
|
}, [V, oe]), ze = A(() => {
|
|
1268
1274
|
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 ===
|
|
1275
|
+
}, [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 === wn.Unknown || je === wn.Resolved && (Ne ?? 0) > 0) && (x?.(e) ?? !0), K = M(() => {
|
|
1270
1276
|
let e = [];
|
|
1271
1277
|
if (!Xe && Ye && e.push({
|
|
1272
1278
|
key: "share",
|
|
@@ -1394,7 +1400,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1394
1400
|
S,
|
|
1395
1401
|
T,
|
|
1396
1402
|
E
|
|
1397
|
-
]), vt = H === y.ManageCredentials ? (D?.manageCredentialsActionLabel ??
|
|
1403
|
+
]), vt = H === y.ManageCredentials ? (D?.manageCredentialsActionLabel ?? jn)(rt) : rt === n.ApiKey ? H === y.LogOut ? D?.changeApiKeyActionLabel ?? "Change API key" : D?.apiKeyActionLabel ?? "API key" : H === y.LogOut ? D?.logoutActionLabel ?? "Log out" : D?.loginActionLabel ?? "Log in", yt = H === y.ManageCredentials || rt === n.ApiKey ? /* @__PURE__ */ W(Je, {
|
|
1398
1404
|
size: L.MD,
|
|
1399
1405
|
stroke: R
|
|
1400
1406
|
}) : H === y.LogOut ? /* @__PURE__ */ W(Qe, {
|
|
@@ -1410,7 +1416,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1410
1416
|
}) : Y ? /* @__PURE__ */ W(Be, {
|
|
1411
1417
|
size: L.MD,
|
|
1412
1418
|
stroke: R
|
|
1413
|
-
}) : void 0,
|
|
1419
|
+
}) : void 0, xt = (t) => {
|
|
1414
1420
|
let n = /* @__PURE__ */ W(t, {
|
|
1415
1421
|
label: vt,
|
|
1416
1422
|
iconBefore: yt,
|
|
@@ -1426,7 +1432,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1426
1432
|
onOpenChange: J,
|
|
1427
1433
|
trigger: [],
|
|
1428
1434
|
outsideClosable: !0,
|
|
1429
|
-
renderOverlay: () => /* @__PURE__ */ W(
|
|
1435
|
+
renderOverlay: () => /* @__PURE__ */ W(Dn, {
|
|
1430
1436
|
item: e,
|
|
1431
1437
|
level: v.User,
|
|
1432
1438
|
status: e.credentials?.userStatus,
|
|
@@ -1438,7 +1444,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1438
1444
|
}),
|
|
1439
1445
|
children: n
|
|
1440
1446
|
});
|
|
1441
|
-
},
|
|
1447
|
+
}, Q = () => {
|
|
1442
1448
|
let t = /* @__PURE__ */ W(fe, {
|
|
1443
1449
|
items: K,
|
|
1444
1450
|
placement: "bottom-end",
|
|
@@ -1472,7 +1478,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1472
1478
|
children: [/* @__PURE__ */ W(C, {
|
|
1473
1479
|
item: e,
|
|
1474
1480
|
iconSize: 52,
|
|
1475
|
-
nameClassName: k(ce,
|
|
1481
|
+
nameClassName: k(ce, On.name),
|
|
1476
1482
|
featuredLabel: D?.featuredLabel ?? "Featured",
|
|
1477
1483
|
featuredChipStyle: O?.colors?.featuredChipStyle,
|
|
1478
1484
|
statusBadge: de,
|
|
@@ -1484,7 +1490,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1484
1490
|
}), St && /* @__PURE__ */ G("div", {
|
|
1485
1491
|
className: "flex flex-wrap items-center gap-2 ps-[60px]",
|
|
1486
1492
|
children: [
|
|
1487
|
-
ot &&
|
|
1493
|
+
ot && xt(X || Z ? we : Ee),
|
|
1488
1494
|
Ve && /* @__PURE__ */ W(Ee, {
|
|
1489
1495
|
label: D?.primaryActionLabel ?? "Use in chat",
|
|
1490
1496
|
iconBefore: /* @__PURE__ */ W(et, { size: L.MD }),
|
|
@@ -1510,7 +1516,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1510
1516
|
className: "sr-only",
|
|
1511
1517
|
children: D?.downloadingStatusLabel ?? "Downloading"
|
|
1512
1518
|
})] }),
|
|
1513
|
-
Xe && Ye && /* @__PURE__ */ W(
|
|
1519
|
+
Xe && Ye && /* @__PURE__ */ W(An, {
|
|
1514
1520
|
item: e,
|
|
1515
1521
|
onShare: i,
|
|
1516
1522
|
shareOverlay: a,
|
|
@@ -1539,12 +1545,12 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1539
1545
|
onMouseEnter: ze,
|
|
1540
1546
|
onFocus: ze
|
|
1541
1547
|
}),
|
|
1542
|
-
at && !ot &&
|
|
1543
|
-
(K.length > 0 || Ue) &&
|
|
1548
|
+
at && !ot && xt(we),
|
|
1549
|
+
(K.length > 0 || Ue) && Q()
|
|
1544
1550
|
]
|
|
1545
1551
|
})]
|
|
1546
1552
|
});
|
|
1547
|
-
},
|
|
1553
|
+
}, Fn = ({ topics: e, content: t, detailsStyles: n }) => {
|
|
1548
1554
|
let r = n?.typography?.contentHeadingClassName ?? "dial-small-semi-text", i = n?.typography?.contentClassName ?? "dial-small-text";
|
|
1549
1555
|
return /* @__PURE__ */ G("div", {
|
|
1550
1556
|
className: "flex flex-col gap-5",
|
|
@@ -1563,21 +1569,21 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1563
1569
|
}
|
|
1564
1570
|
}), e && e.length > 0 && /* @__PURE__ */ W("div", {
|
|
1565
1571
|
className: "flex flex-wrap gap-2",
|
|
1566
|
-
children: e.map((e) => /* @__PURE__ */ W(
|
|
1572
|
+
children: e.map((e) => /* @__PURE__ */ W(It, { label: e }, e))
|
|
1567
1573
|
})]
|
|
1568
1574
|
});
|
|
1569
|
-
},
|
|
1575
|
+
}, In = {
|
|
1570
1576
|
divider: "_divider_1gzl9_1",
|
|
1571
1577
|
fileCount: "_fileCount_1gzl9_5",
|
|
1572
1578
|
body: "_body_1gzl9_9"
|
|
1573
|
-
},
|
|
1579
|
+
}, Ln = (e, t, n = void 0) => e.flatMap((e) => {
|
|
1574
1580
|
let r = {
|
|
1575
1581
|
node: e,
|
|
1576
1582
|
parentId: n
|
|
1577
1583
|
};
|
|
1578
|
-
return e.type === Z.File || !t.has(e.id) ? [r] : [r, ...
|
|
1579
|
-
}),
|
|
1580
|
-
let c = M(() =>
|
|
1584
|
+
return e.type === Z.File || !t.has(e.id) ? [r] : [r, ...Ln(e.items, t, e.id)];
|
|
1585
|
+
}), Rn = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
|
|
1586
|
+
let c = M(() => Ln(e, n), [e, n]), l = N({}), [u, d] = P(() => t ?? c[0]?.node.id);
|
|
1581
1587
|
j(() => {
|
|
1582
1588
|
u != null && l.current[u]?.focus();
|
|
1583
1589
|
}, []);
|
|
@@ -1676,8 +1682,8 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1676
1682
|
onKeyDown: p,
|
|
1677
1683
|
children: e.map((e) => h(e))
|
|
1678
1684
|
});
|
|
1679
|
-
},
|
|
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 =
|
|
1685
|
+
}, zn = () => void 0, Bn = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = zn, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = zn, 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 }) => {
|
|
1686
|
+
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 = Wt(x) > 1, C = Kt(x, r) ?? "", w = (e) => {
|
|
1681
1687
|
i?.(e), l(!1);
|
|
1682
1688
|
}, T = a ? {
|
|
1683
1689
|
type: _t.Text,
|
|
@@ -1698,7 +1704,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1698
1704
|
matchReferenceWidth: !1,
|
|
1699
1705
|
listClassName: "w-[280px]",
|
|
1700
1706
|
placement: "bottom-start",
|
|
1701
|
-
renderOverlay: () => /* @__PURE__ */ W(
|
|
1707
|
+
renderOverlay: () => /* @__PURE__ */ W(Rn, {
|
|
1702
1708
|
nodes: x,
|
|
1703
1709
|
selectedFileId: r,
|
|
1704
1710
|
expandedFolderIds: o,
|
|
@@ -1715,16 +1721,16 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1715
1721
|
onClick: () => l(!c)
|
|
1716
1722
|
})
|
|
1717
1723
|
}), /* @__PURE__ */ W("span", {
|
|
1718
|
-
className: k("shrink-0", y,
|
|
1719
|
-
children: d(
|
|
1724
|
+
className: k("shrink-0", y, In.fileCount),
|
|
1725
|
+
children: d(Wt(x))
|
|
1720
1726
|
})]
|
|
1721
1727
|
}),
|
|
1722
1728
|
b && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("p", {
|
|
1723
1729
|
className: k("m-0", _),
|
|
1724
1730
|
children: t
|
|
1725
|
-
}), /* @__PURE__ */ W("div", { className: k("shrink-0",
|
|
1731
|
+
}), /* @__PURE__ */ W("div", { className: k("shrink-0", In.divider) })] }),
|
|
1726
1732
|
/* @__PURE__ */ G("div", {
|
|
1727
|
-
className: k("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null &&
|
|
1733
|
+
className: k("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && In.body, h == null && _),
|
|
1728
1734
|
children: [a && /* @__PURE__ */ W("span", {
|
|
1729
1735
|
role: "status",
|
|
1730
1736
|
className: "sr-only",
|
|
@@ -1755,12 +1761,12 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1755
1761
|
})
|
|
1756
1762
|
]
|
|
1757
1763
|
});
|
|
1758
|
-
},
|
|
1764
|
+
}, Vn = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), Hn = /* @__PURE__ */ function(e) {
|
|
1759
1765
|
return e.Default = "default", e.Warning = "warning", e.Danger = "danger", e;
|
|
1760
|
-
}({}),
|
|
1761
|
-
let t =
|
|
1766
|
+
}({}), Un = (e) => !Number.isFinite(e.used) || !Number.isFinite(e.total) ? 0 : Math.min(Math.max(e.used, 0), Math.max(e.total, 0)), Wn = (e) => Number.isFinite(e) && e > 0 ? e : 1, Gn = ({ used: e, total: t, valueLabel: n }) => n ?? `${Vn.format(e)} / ${Vn.format(t)}`, Kn = ({ total: e }) => Number.isFinite(e) && e > 0, qn = (e) => e.isUnlimited !== !0 && Kn(e), Jn = (e) => Kn(e) ? Math.max(e.used, 0) / e.total : 0, Yn = (e) => {
|
|
1767
|
+
let t = Jn(e);
|
|
1762
1768
|
return t >= 1 ? "danger" : t >= .75 ? "warning" : "default";
|
|
1763
|
-
},
|
|
1769
|
+
}, Xn = {
|
|
1764
1770
|
sectionHeading: "_sectionHeading_ltnqp_1",
|
|
1765
1771
|
label: "_label_ltnqp_5",
|
|
1766
1772
|
valuePrimary: "_valuePrimary_ltnqp_9",
|
|
@@ -1769,58 +1775,58 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1769
1775
|
progressFillDefault: "_progressFillDefault_ltnqp_24",
|
|
1770
1776
|
progressFillWarning: "_progressFillWarning_ltnqp_28",
|
|
1771
1777
|
progressFillDanger: "_progressFillDanger_ltnqp_32"
|
|
1772
|
-
},
|
|
1773
|
-
let o =
|
|
1778
|
+
}, Zn = ({ row: e, labelClassName: t, captionClassName: n, valueClassName: r, noteValueClassName: i, noteClassName: a }) => {
|
|
1779
|
+
let o = Gn(e);
|
|
1774
1780
|
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",
|
|
1781
|
+
className: k("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", Xn.divider),
|
|
1776
1782
|
children: [/* @__PURE__ */ G("div", {
|
|
1777
1783
|
className: "flex min-w-0 flex-1 flex-col",
|
|
1778
1784
|
children: [/* @__PURE__ */ W("span", {
|
|
1779
|
-
className: k("break-words", t,
|
|
1785
|
+
className: k("break-words", t, Xn.label),
|
|
1780
1786
|
children: e.label
|
|
1781
1787
|
}), e.captionLabel != null && /* @__PURE__ */ W("span", {
|
|
1782
|
-
className: k("break-words", n,
|
|
1788
|
+
className: k("break-words", n, Xn.label),
|
|
1783
1789
|
children: e.captionLabel
|
|
1784
1790
|
})]
|
|
1785
|
-
}),
|
|
1791
|
+
}), qn(e) ? /* @__PURE__ */ G("div", {
|
|
1786
1792
|
className: "flex w-32 shrink-0 flex-col items-end gap-2",
|
|
1787
1793
|
children: [/* @__PURE__ */ W("div", {
|
|
1788
1794
|
className: k("flex gap-1", r),
|
|
1789
1795
|
children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("span", {
|
|
1790
|
-
className:
|
|
1796
|
+
className: Xn.valuePrimary,
|
|
1791
1797
|
children: e.usedLabel
|
|
1792
1798
|
}), /* @__PURE__ */ W("span", {
|
|
1793
|
-
className:
|
|
1799
|
+
className: Xn.label,
|
|
1794
1800
|
children: ` / ${e.totalLabel}`
|
|
1795
1801
|
})] }) : /* @__PURE__ */ W("span", {
|
|
1796
|
-
className:
|
|
1802
|
+
className: Xn.label,
|
|
1797
1803
|
children: o
|
|
1798
1804
|
})
|
|
1799
1805
|
}), /* @__PURE__ */ W(De, {
|
|
1800
|
-
value:
|
|
1801
|
-
max:
|
|
1806
|
+
value: Un(e),
|
|
1807
|
+
max: Wn(e.total),
|
|
1802
1808
|
size: pe.Small,
|
|
1803
|
-
className: k("!h-1 w-full",
|
|
1809
|
+
className: k("!h-1 w-full", Xn.progressTrack, Yn(e) === Hn.Default && Xn.progressFillDefault, Yn(e) === Hn.Warning && Xn.progressFillWarning, Yn(e) === Hn.Danger && Xn.progressFillDanger),
|
|
1804
1810
|
"aria-label": e.label,
|
|
1805
1811
|
"aria-valuetext": e.ariaLabel ?? o
|
|
1806
1812
|
})]
|
|
1807
1813
|
}) : /* @__PURE__ */ G("div", {
|
|
1808
1814
|
className: "flex shrink-0 flex-col items-end",
|
|
1809
1815
|
children: [/* @__PURE__ */ W("span", {
|
|
1810
|
-
className: k(i,
|
|
1816
|
+
className: k(i, Xn.valuePrimary),
|
|
1811
1817
|
children: o
|
|
1812
1818
|
}), e.noteLabel != null && /* @__PURE__ */ W("span", {
|
|
1813
|
-
className: k(a,
|
|
1819
|
+
className: k(a, Xn.label),
|
|
1814
1820
|
children: e.noteLabel
|
|
1815
1821
|
})]
|
|
1816
1822
|
})]
|
|
1817
1823
|
});
|
|
1818
|
-
},
|
|
1819
|
-
className: k("mb-3 mt-0", t,
|
|
1824
|
+
}, Qn = ({ group: e, sectionClassName: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ W("p", {
|
|
1825
|
+
className: k("mb-3 mt-0", t, Xn.sectionHeading),
|
|
1820
1826
|
children: e.label
|
|
1821
1827
|
}), /* @__PURE__ */ W("ul", {
|
|
1822
1828
|
className: "m-0 flex list-none flex-col p-0",
|
|
1823
|
-
children: e.rows.map((e) => /* @__PURE__ */ W(
|
|
1829
|
+
children: e.rows.map((e) => /* @__PURE__ */ W(Zn, {
|
|
1824
1830
|
row: e,
|
|
1825
1831
|
labelClassName: n,
|
|
1826
1832
|
captionClassName: r,
|
|
@@ -1828,7 +1834,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1828
1834
|
noteValueClassName: a,
|
|
1829
1835
|
noteClassName: o
|
|
1830
1836
|
}, e.label))
|
|
1831
|
-
})] }),
|
|
1837
|
+
})] }), $n = ({ 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
1838
|
let u = e?.groups.filter((e) => e.rows.length > 0);
|
|
1833
1839
|
return u == null || u.length === 0 ? null : /* @__PURE__ */ G("div", {
|
|
1834
1840
|
className: "flex flex-col gap-6",
|
|
@@ -1842,7 +1848,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1842
1848
|
"--lt-progress-fill-warning": l?.progressFillWarning,
|
|
1843
1849
|
"--lt-progress-fill-danger": l?.progressFillDanger
|
|
1844
1850
|
}),
|
|
1845
|
-
children: [u.map((e) => /* @__PURE__ */ W(
|
|
1851
|
+
children: [u.map((e) => /* @__PURE__ */ W(Qn, {
|
|
1846
1852
|
group: e,
|
|
1847
1853
|
sectionClassName: o,
|
|
1848
1854
|
labelClassName: t,
|
|
@@ -1851,17 +1857,17 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1851
1857
|
noteValueClassName: i,
|
|
1852
1858
|
noteClassName: a
|
|
1853
1859
|
}, e.label)), c != null && /* @__PURE__ */ W("p", {
|
|
1854
|
-
className: k("m-0 border-t pt-4", s,
|
|
1860
|
+
className: k("m-0 border-t pt-4", s, Xn.divider, Xn.label),
|
|
1855
1861
|
children: c
|
|
1856
1862
|
})]
|
|
1857
1863
|
});
|
|
1858
|
-
},
|
|
1864
|
+
}, er = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ W("div", {
|
|
1859
1865
|
className: "flex flex-col gap-4",
|
|
1860
1866
|
children: e.map((e, s) => /* @__PURE__ */ G("div", {
|
|
1861
1867
|
className: "flex flex-col gap-4",
|
|
1862
|
-
children: [s > 0 && /* @__PURE__ */ W("div", { className: k("shrink-0 border-b",
|
|
1868
|
+
children: [s > 0 && /* @__PURE__ */ W("div", { className: k("shrink-0 border-b", Cn.divider) }), /* @__PURE__ */ W("div", {
|
|
1863
1869
|
className: "px-6",
|
|
1864
|
-
children: /* @__PURE__ */ W(
|
|
1870
|
+
children: /* @__PURE__ */ W(Yt, {
|
|
1865
1871
|
sectionLabel: e.title,
|
|
1866
1872
|
values: e.specs,
|
|
1867
1873
|
sectionClassName: t,
|
|
@@ -1873,7 +1879,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1873
1879
|
})
|
|
1874
1880
|
})]
|
|
1875
1881
|
}, s))
|
|
1876
|
-
}) : null,
|
|
1882
|
+
}) : 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
1883
|
if (e == null) return null;
|
|
1878
1884
|
let o = e.prices?.map((e) => ({
|
|
1879
1885
|
label: e.label,
|
|
@@ -1884,13 +1890,13 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1884
1890
|
}));
|
|
1885
1891
|
return /* @__PURE__ */ G("div", {
|
|
1886
1892
|
className: "flex flex-col gap-4",
|
|
1887
|
-
children: [/* @__PURE__ */ W(
|
|
1893
|
+
children: [/* @__PURE__ */ W(Yt, {
|
|
1888
1894
|
sectionLabel: t,
|
|
1889
1895
|
values: o ?? [],
|
|
1890
1896
|
labelClassName: r,
|
|
1891
1897
|
valueClassName: i,
|
|
1892
1898
|
sectionClassName: a
|
|
1893
|
-
}), /* @__PURE__ */ W(
|
|
1899
|
+
}), /* @__PURE__ */ W(Yt, {
|
|
1894
1900
|
sectionLabel: n,
|
|
1895
1901
|
values: s ?? [],
|
|
1896
1902
|
labelClassName: r,
|
|
@@ -1898,32 +1904,32 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1898
1904
|
sectionClassName: a
|
|
1899
1905
|
})]
|
|
1900
1906
|
});
|
|
1901
|
-
},
|
|
1907
|
+
}, nr = {
|
|
1902
1908
|
container: "_container_ddi3i_1",
|
|
1903
1909
|
header: "_header_ddi3i_5",
|
|
1904
1910
|
cell: "_cell_ddi3i_10",
|
|
1905
1911
|
evenRow: "_evenRow_ddi3i_17"
|
|
1906
|
-
},
|
|
1912
|
+
}, rr = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
|
|
1907
1913
|
let a = n ?? `repeat(${e.length}, 1fr)`;
|
|
1908
1914
|
return /* @__PURE__ */ G("div", {
|
|
1909
|
-
className: k(
|
|
1915
|
+
className: k(nr.container, "grid overflow-hidden rounded-md"),
|
|
1910
1916
|
style: { gridTemplateColumns: a },
|
|
1911
1917
|
children: [e.map((e) => /* @__PURE__ */ W("div", {
|
|
1912
|
-
className: k("px-2 py-1 text-start", r,
|
|
1918
|
+
className: k("px-2 py-1 text-start", r, nr.header),
|
|
1913
1919
|
children: e
|
|
1914
1920
|
}, 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,
|
|
1921
|
+
className: k("px-2 py-1.5", i, nr.cell, t % 2 == 1 ? nr.evenRow : void 0),
|
|
1916
1922
|
children: e
|
|
1917
1923
|
}, n)) }, t))]
|
|
1918
1924
|
});
|
|
1919
|
-
},
|
|
1925
|
+
}, ir = {
|
|
1920
1926
|
divider: "_divider_1f796_1",
|
|
1921
1927
|
description: "_description_1f796_5",
|
|
1922
1928
|
code: "_code_1f796_9"
|
|
1923
|
-
},
|
|
1929
|
+
}, 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
1930
|
className: "flex flex-col",
|
|
1925
1931
|
children: e.tools.map((e, a) => /* @__PURE__ */ G("div", {
|
|
1926
|
-
className: k("flex flex-col gap-3 px-[22px] py-4", a > 0 ?
|
|
1932
|
+
className: k("flex flex-col gap-3 px-[22px] py-4", a > 0 ? ir.divider : void 0),
|
|
1927
1933
|
children: [
|
|
1928
1934
|
/* @__PURE__ */ G("div", {
|
|
1929
1935
|
className: "flex flex-col gap-1",
|
|
@@ -1931,11 +1937,11 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1931
1937
|
className: t,
|
|
1932
1938
|
children: e.name
|
|
1933
1939
|
}), e.description != null && /* @__PURE__ */ W("p", {
|
|
1934
|
-
className: k("m-0", n,
|
|
1940
|
+
className: k("m-0", n, ir.description),
|
|
1935
1941
|
children: e.description
|
|
1936
1942
|
})]
|
|
1937
1943
|
}),
|
|
1938
|
-
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ W(
|
|
1944
|
+
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ W(rr, {
|
|
1939
1945
|
columns: [
|
|
1940
1946
|
"Name",
|
|
1941
1947
|
"Type",
|
|
@@ -1944,11 +1950,11 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1944
1950
|
columnsTemplate: "1fr 1fr auto",
|
|
1945
1951
|
rows: e.inputParams.map((e) => [
|
|
1946
1952
|
/* @__PURE__ */ W("code", {
|
|
1947
|
-
className: k("text-inherit border-none bg-transparent p-0",
|
|
1953
|
+
className: k("text-inherit border-none bg-transparent p-0", ir.code),
|
|
1948
1954
|
children: e.name
|
|
1949
1955
|
}, "name"),
|
|
1950
1956
|
/* @__PURE__ */ W("code", {
|
|
1951
|
-
className: k("text-inherit border-none bg-transparent p-0",
|
|
1957
|
+
className: k("text-inherit border-none bg-transparent p-0", ir.code),
|
|
1952
1958
|
children: e.type
|
|
1953
1959
|
}, "type"),
|
|
1954
1960
|
e.isRequired ? "✓" : "—"
|
|
@@ -1956,10 +1962,10 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1956
1962
|
headingClassName: r,
|
|
1957
1963
|
cellClassName: i
|
|
1958
1964
|
}),
|
|
1959
|
-
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ W(
|
|
1965
|
+
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ W(rr, {
|
|
1960
1966
|
columns: ["Key", "Value"],
|
|
1961
1967
|
rows: e.annotations.map((e) => [/* @__PURE__ */ W("code", {
|
|
1962
|
-
className: k("text-inherit border-none bg-transparent p-0",
|
|
1968
|
+
className: k("text-inherit border-none bg-transparent p-0", ir.code),
|
|
1963
1969
|
children: e.key
|
|
1964
1970
|
}, "key"), e.value]),
|
|
1965
1971
|
headingClassName: r,
|
|
@@ -1967,23 +1973,23 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
1967
1973
|
})
|
|
1968
1974
|
]
|
|
1969
1975
|
}, e.name))
|
|
1970
|
-
}),
|
|
1976
|
+
}), 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
1977
|
"All shared configurations will be lost",
|
|
1972
1978
|
"Users who rely on it will lose access",
|
|
1973
1979
|
"Cannot be undone"
|
|
1974
|
-
],
|
|
1980
|
+
], pr = [
|
|
1975
1981
|
"You will lose access to this item",
|
|
1976
1982
|
"Other people keep their access",
|
|
1977
1983
|
"You will need a new invitation to get it back"
|
|
1978
|
-
],
|
|
1984
|
+
], mr = [
|
|
1979
1985
|
"Everyone loses access to the published copy",
|
|
1980
1986
|
"Your own copy is not deleted",
|
|
1981
1987
|
"You can publish it again later"
|
|
1982
|
-
],
|
|
1988
|
+
], hr = [
|
|
1983
1989
|
"Everyone you shared it with loses access",
|
|
1984
1990
|
"Existing share links stop working",
|
|
1985
1991
|
"You keep full access — nothing is deleted"
|
|
1986
|
-
],
|
|
1992
|
+
], 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
1993
|
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
1994
|
"--cat-details-backdrop": B?.backdrop,
|
|
1989
1995
|
"--cat-details-bg": B?.background,
|
|
@@ -2025,7 +2031,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2025
2031
|
t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), it.current = n, Qe(e);
|
|
2026
2032
|
}, []);
|
|
2027
2033
|
j(() => {
|
|
2028
|
-
at.current += 1, ot(null), et(!1), nt(
|
|
2034
|
+
at.current += 1, ot(null), et(!1), nt(Gt(Ye?.files ?? [])), H(!1);
|
|
2029
2035
|
}, [e.id, Xe]), j(() => () => {
|
|
2030
2036
|
let e = it.current;
|
|
2031
2037
|
e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
|
|
@@ -2084,7 +2090,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2084
2090
|
]), lt = Ze?.id ?? Xe, mt = () => Ze == null ? null : Ze.preview == null ? {
|
|
2085
2091
|
type: _t.Text,
|
|
2086
2092
|
text: z?.contentFileErrorLabel ?? "Failed to load this file."
|
|
2087
|
-
} : Ze.preview, ht = Ze != null && I != null ? I(Ze.id,
|
|
2093
|
+
} : Ze.preview, ht = Ze != null && I != null ? I(Ze.id, Kt(Ye?.files ?? [], Ze.id) ?? "") : void 0, gt = A(() => {
|
|
2088
2094
|
if (!h || Je.current === e.id) return;
|
|
2089
2095
|
let t = e.id;
|
|
2090
2096
|
Je.current = t, Ue(!0), Ge(!1), (async () => {
|
|
@@ -2110,7 +2116,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2110
2116
|
hasWriteAccess: x,
|
|
2111
2117
|
defaultAuthor: S,
|
|
2112
2118
|
onCreateFolder: E,
|
|
2113
|
-
onPublish: C ??
|
|
2119
|
+
onPublish: C ?? lr,
|
|
2114
2120
|
onPublishSuccess: Y,
|
|
2115
2121
|
onPublishError: T,
|
|
2116
2122
|
onFetchExistingRules: ee
|
|
@@ -2126,21 +2132,21 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2126
2132
|
X.hasWriteAccess,
|
|
2127
2133
|
X.isSubmitting,
|
|
2128
2134
|
X.hasSubmitError
|
|
2129
|
-
]), [vt, yt] = P(!1), [bt,
|
|
2135
|
+
]), [vt, yt] = P(!1), [bt, xt] = P(null), [Q, St] = P(!1), [Ct, wt] = P(null), [Tt, Et] = P(null), [Dt, $] = P(null);
|
|
2130
2136
|
j(() => {
|
|
2131
2137
|
Fe(n);
|
|
2132
2138
|
}, [e.id, n]), j(() => {
|
|
2133
|
-
Ie(""), Re(!1), X.reset(), Be([]), Ge(!1), Ue(!1), qe(!1), Je.current = null,
|
|
2139
|
+
Ie(""), Re(!1), X.reset(), Be([]), Ge(!1), Ue(!1), qe(!1), Je.current = null, $(null), yt(!1), xt(null), St(!1), wt(null), Et(null);
|
|
2134
2140
|
}, [e.id]);
|
|
2135
|
-
let
|
|
2136
|
-
|
|
2137
|
-
}, []),
|
|
2138
|
-
Et(t ?? (e.credentials == null ? null : c(e.credentials))),
|
|
2139
|
-
}, [e.credentials]),
|
|
2140
|
-
|
|
2141
|
-
}, []),
|
|
2142
|
-
|
|
2143
|
-
}, []),
|
|
2141
|
+
let Ot = A(() => yt(!0), []), kt = A(() => yt(!1), []), At = A(() => {
|
|
2142
|
+
xt(q.Delete);
|
|
2143
|
+
}, []), jt = A((t) => {
|
|
2144
|
+
Et(t ?? (e.credentials == null ? null : c(e.credentials))), xt(q.Logout);
|
|
2145
|
+
}, [e.credentials]), Mt = A(() => {
|
|
2146
|
+
xt(q.Unshare);
|
|
2147
|
+
}, []), Pt = A(() => {
|
|
2148
|
+
xt(q.RevokeAccess);
|
|
2149
|
+
}, []), Ft = M(() => {
|
|
2144
2150
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
2145
2151
|
for (let n of ze) {
|
|
2146
2152
|
let r = n.folderPath.join("/");
|
|
@@ -2150,14 +2156,14 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2150
2156
|
}));
|
|
2151
2157
|
}
|
|
2152
2158
|
return t;
|
|
2153
|
-
}, [ze]), It = Ke &&
|
|
2154
|
-
|
|
2159
|
+
}, [ze]), It = Ke && Ft.length > 0, Lt = A((e) => e || (D?.rootFolderLabel ?? "Organization"), [D]), Rt = A(() => {
|
|
2160
|
+
xt(q.Unpublish);
|
|
2155
2161
|
}, []), zt = A((e) => {
|
|
2156
|
-
wt(e),
|
|
2162
|
+
wt(e), xt(q.DeleteApiKey);
|
|
2157
2163
|
}, []), Bt = A(() => {
|
|
2158
|
-
|
|
2159
|
-
}, [
|
|
2160
|
-
if (!(
|
|
2164
|
+
Q || (xt(null), wt(null), Et(null), $(null));
|
|
2165
|
+
}, [Q]), Vt = A(async () => {
|
|
2166
|
+
if (!(Q || bt == null)) {
|
|
2161
2167
|
St(!0);
|
|
2162
2168
|
try {
|
|
2163
2169
|
switch (bt) {
|
|
@@ -2177,20 +2183,20 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2177
2183
|
Ct != null && await xe?.(e, { level: Ct });
|
|
2178
2184
|
break;
|
|
2179
2185
|
case q.Unpublish: {
|
|
2180
|
-
let t =
|
|
2186
|
+
let t = cr(Ft, Dt);
|
|
2181
2187
|
t != null && await ve?.(e, t.segments);
|
|
2182
2188
|
break;
|
|
2183
2189
|
}
|
|
2184
2190
|
}
|
|
2185
|
-
|
|
2191
|
+
xt(null), wt(null), Et(null), $(null), vr.has(bt) && a();
|
|
2186
2192
|
} catch {
|
|
2187
|
-
|
|
2193
|
+
xt(null), wt(null), Et(null), $(null);
|
|
2188
2194
|
} finally {
|
|
2189
2195
|
St(!1);
|
|
2190
2196
|
}
|
|
2191
2197
|
}
|
|
2192
2198
|
}, [
|
|
2193
|
-
|
|
2199
|
+
Q,
|
|
2194
2200
|
bt,
|
|
2195
2201
|
Ct,
|
|
2196
2202
|
Tt,
|
|
@@ -2200,7 +2206,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2200
2206
|
me,
|
|
2201
2207
|
ve,
|
|
2202
2208
|
Dt,
|
|
2203
|
-
|
|
2209
|
+
Ft,
|
|
2204
2210
|
xe,
|
|
2205
2211
|
a
|
|
2206
2212
|
]);
|
|
@@ -2224,7 +2230,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2224
2230
|
]);
|
|
2225
2231
|
let Ht = A(() => Re(!0), []), Ut = A(() => {
|
|
2226
2232
|
Re(!1), X.reset();
|
|
2227
|
-
}, [X]),
|
|
2233
|
+
}, [X]), Wt = A(async () => {
|
|
2228
2234
|
await X.handleSubmit() && Ut();
|
|
2229
2235
|
}, [X, Ut]), qt = A(() => {
|
|
2230
2236
|
let t = !Pe;
|
|
@@ -2234,7 +2240,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2234
2240
|
e.id,
|
|
2235
2241
|
o
|
|
2236
2242
|
]), Jt = M(() => {
|
|
2237
|
-
let t = [], n =
|
|
2243
|
+
let t = [], n = or.has(e.type);
|
|
2238
2244
|
return n || t.push({
|
|
2239
2245
|
id: K.About,
|
|
2240
2246
|
label: z?.tabAboutLabel ?? "About"
|
|
@@ -2253,7 +2259,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2253
2259
|
}), e.details?.tools != null && t.push({
|
|
2254
2260
|
id: K.Tools,
|
|
2255
2261
|
label: z?.tabToolsLabel ?? "Tools"
|
|
2256
|
-
}),
|
|
2262
|
+
}), sr(e.details?.api) && t.push({
|
|
2257
2263
|
id: K.Api,
|
|
2258
2264
|
label: z?.tabConnectLabel ?? "Connect"
|
|
2259
2265
|
}), t;
|
|
@@ -2266,7 +2272,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2266
2272
|
Jt,
|
|
2267
2273
|
V
|
|
2268
2274
|
]);
|
|
2269
|
-
let Xt = z?.overviewYesLabel ?? "Yes", Zt = z?.overviewNoLabel ?? "No", Qt = z?.ariaLabel ?? "Item details",
|
|
2275
|
+
let Xt = z?.overviewYesLabel ?? "Yes", Zt = z?.overviewNoLabel ?? "No", Qt = z?.ariaLabel ?? "Item details", $t = z?.closeAriaLabel ?? "Close", tn = Pe ? z?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : z?.addToFavoritesAriaLabel ?? "Add to favorites", rn = z?.publishTitle ?? "Publish", an = z?.backToDetailsAriaLabel ?? "Back", sn = z?.cancelLabel ?? "Cancel", cn = M(() => {
|
|
2270
2276
|
switch (bt) {
|
|
2271
2277
|
case q.Delete: {
|
|
2272
2278
|
let t = z?.deleteActionLabel ?? "Delete";
|
|
@@ -2277,7 +2283,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2277
2283
|
/* @__PURE__ */ W("strong", { children: e.name }),
|
|
2278
2284
|
"? This action is permanent and cannot be undone."
|
|
2279
2285
|
] }),
|
|
2280
|
-
consequences: z?.deleteConfirmConsequences ??
|
|
2286
|
+
consequences: z?.deleteConfirmConsequences ?? fr,
|
|
2281
2287
|
confirmLabel: t,
|
|
2282
2288
|
loadingStatusLabel: z?.deletingStatusLabel ?? "Deleting",
|
|
2283
2289
|
variant: J.Danger
|
|
@@ -2292,7 +2298,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2292
2298
|
/* @__PURE__ */ W("strong", { children: e.name }),
|
|
2293
2299
|
" from your list? You'll need a new invitation to access it again."
|
|
2294
2300
|
] }),
|
|
2295
|
-
consequences: z?.unshareConfirmConsequences ??
|
|
2301
|
+
consequences: z?.unshareConfirmConsequences ?? pr,
|
|
2296
2302
|
confirmLabel: t,
|
|
2297
2303
|
loadingStatusLabel: z?.unsharingStatusLabel ?? "Removing",
|
|
2298
2304
|
variant: J.Info
|
|
@@ -2307,14 +2313,14 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2307
2313
|
/* @__PURE__ */ W("strong", { children: e.name }),
|
|
2308
2314
|
"? Anyone you shared it with will lose access."
|
|
2309
2315
|
] }),
|
|
2310
|
-
consequences: z?.revokeShareConfirmConsequences ??
|
|
2316
|
+
consequences: z?.revokeShareConfirmConsequences ?? hr,
|
|
2311
2317
|
confirmLabel: t,
|
|
2312
2318
|
loadingStatusLabel: z?.revokingShareStatusLabel ?? "Revoking access",
|
|
2313
2319
|
variant: J.Danger
|
|
2314
2320
|
};
|
|
2315
2321
|
}
|
|
2316
2322
|
case q.Unpublish: {
|
|
2317
|
-
let t = z?.unpublishLabel ?? "Unpublish", n =
|
|
2323
|
+
let t = z?.unpublishLabel ?? "Unpublish", n = Ft.length === 1, r = n ? Lt(Ft[0].key) : "", i = z?.unpublishConfirmMessage?.(e.name, r) ?? /* @__PURE__ */ G(U, { children: [
|
|
2318
2324
|
"Unpublish ",
|
|
2319
2325
|
/* @__PURE__ */ W("strong", { children: e.name }),
|
|
2320
2326
|
" from \"",
|
|
@@ -2328,7 +2334,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2328
2334
|
return {
|
|
2329
2335
|
title: z?.unpublishConfirmTitle ?? t,
|
|
2330
2336
|
message: n ? i : a,
|
|
2331
|
-
consequences: z?.unpublishConfirmConsequences ??
|
|
2337
|
+
consequences: z?.unpublishConfirmConsequences ?? mr,
|
|
2332
2338
|
confirmLabel: t,
|
|
2333
2339
|
loadingStatusLabel: z?.unpublishingStatusLabel ?? "Requesting unpublish",
|
|
2334
2340
|
variant: J.Danger
|
|
@@ -2349,7 +2355,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2349
2355
|
let e = z?.deleteActionLabel ?? "Delete", t = Ct ?? v.User;
|
|
2350
2356
|
return {
|
|
2351
2357
|
title: e,
|
|
2352
|
-
message: (z?.deleteApiKeyConfirmMessage ??
|
|
2358
|
+
message: (z?.deleteApiKeyConfirmMessage ?? _r)(t),
|
|
2353
2359
|
consequences: void 0,
|
|
2354
2360
|
confirmLabel: e,
|
|
2355
2361
|
loadingStatusLabel: z?.deletingStatusLabel ?? "Deleting",
|
|
@@ -2364,11 +2370,11 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2364
2370
|
e.name,
|
|
2365
2371
|
Ct,
|
|
2366
2372
|
z,
|
|
2367
|
-
|
|
2373
|
+
Ft,
|
|
2368
2374
|
Lt
|
|
2369
|
-
]), ln = cn != null, un = bt === q.Unpublish &&
|
|
2375
|
+
]), ln = cn != null, un = bt === q.Unpublish && cr(Ft, Dt) == null, dn = ln || Le || vt, fn = e.credentials == null ? "" : (z?.credentialsManagementTitle ?? gr)(e.credentials.authenticationType), pn = ln ? {
|
|
2370
2376
|
title: cn.title,
|
|
2371
|
-
isBackDisabled:
|
|
2377
|
+
isBackDisabled: Q,
|
|
2372
2378
|
onBack: Bt
|
|
2373
2379
|
} : Le ? {
|
|
2374
2380
|
title: rn,
|
|
@@ -2377,11 +2383,11 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2377
2383
|
} : vt ? {
|
|
2378
2384
|
title: fn,
|
|
2379
2385
|
isBackDisabled: !1,
|
|
2380
|
-
onBack:
|
|
2386
|
+
onBack: kt
|
|
2381
2387
|
} : null, mn = pn?.title ?? Qt;
|
|
2382
2388
|
return /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("div", {
|
|
2383
2389
|
style: Me,
|
|
2384
|
-
className: k("fixed inset-0 z-50 transition-opacity duration-300",
|
|
2390
|
+
className: k("fixed inset-0 z-50 transition-opacity duration-300", Cn.backdrop, t ? "opacity-100" : "pointer-events-none opacity-0"),
|
|
2385
2391
|
onClick: a,
|
|
2386
2392
|
"aria-hidden": "true"
|
|
2387
2393
|
}), /* @__PURE__ */ G("div", {
|
|
@@ -2389,7 +2395,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2389
2395
|
"aria-modal": "true",
|
|
2390
2396
|
"aria-label": mn,
|
|
2391
2397
|
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",
|
|
2398
|
+
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", Cn.panel, t ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
|
|
2393
2399
|
children: [
|
|
2394
2400
|
/* @__PURE__ */ G("div", {
|
|
2395
2401
|
className: "flex shrink-0 items-center gap-2 px-6 py-3",
|
|
@@ -2398,52 +2404,52 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2398
2404
|
className: "rtl:scale-x-[-1]",
|
|
2399
2405
|
stroke: R
|
|
2400
2406
|
}),
|
|
2401
|
-
"aria-label":
|
|
2407
|
+
"aria-label": an,
|
|
2402
2408
|
disabled: pn.isBackDisabled,
|
|
2403
2409
|
onClick: pn.onBack
|
|
2404
2410
|
}), /* @__PURE__ */ W("span", {
|
|
2405
|
-
className: k("flex-1", we,
|
|
2411
|
+
className: k("flex-1", we, Cn.publishTitle),
|
|
2406
2412
|
children: pn.title
|
|
2407
2413
|
})] }), pn == null && /* @__PURE__ */ G(U, { children: [
|
|
2408
2414
|
/* @__PURE__ */ W("div", { className: "flex-1" }),
|
|
2409
2415
|
!i && s?.(e) !== !1 && /* @__PURE__ */ W(Nt, {
|
|
2410
2416
|
isStarred: Pe,
|
|
2411
|
-
ariaLabel:
|
|
2417
|
+
ariaLabel: tn,
|
|
2412
2418
|
onClick: qt
|
|
2413
2419
|
}),
|
|
2414
2420
|
/* @__PURE__ */ W(ue, {
|
|
2415
2421
|
onClose: a,
|
|
2416
2422
|
size: pe.Standard,
|
|
2417
|
-
ariaLabel:
|
|
2423
|
+
ariaLabel: $t
|
|
2418
2424
|
})
|
|
2419
2425
|
] })]
|
|
2420
2426
|
}),
|
|
2421
|
-
/* @__PURE__ */ W("div", { className: k("shrink-0",
|
|
2427
|
+
/* @__PURE__ */ W("div", { className: k("shrink-0", Cn.divider) }),
|
|
2422
2428
|
/* @__PURE__ */ G("div", {
|
|
2423
|
-
className: k("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto",
|
|
2429
|
+
className: k("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", Cn.content),
|
|
2424
2430
|
children: [
|
|
2425
|
-
ln && /* @__PURE__ */ W(
|
|
2431
|
+
ln && /* @__PURE__ */ W(on, {
|
|
2426
2432
|
item: e,
|
|
2427
2433
|
message: cn.message,
|
|
2428
2434
|
consequences: cn.consequences,
|
|
2429
2435
|
variant: cn.cardVariant ?? cn.variant,
|
|
2430
2436
|
messageClassName: Ae,
|
|
2431
|
-
children: bt === q.Unpublish &&
|
|
2437
|
+
children: bt === q.Unpublish && Ft.length > 1 && /* @__PURE__ */ W(Oe, {
|
|
2432
2438
|
ariaLabel: z?.unpublishFolderGroupAriaLabel ?? "Published folders",
|
|
2433
2439
|
value: Dt ?? void 0,
|
|
2434
|
-
onChange:
|
|
2435
|
-
disabled:
|
|
2436
|
-
items:
|
|
2440
|
+
onChange: $,
|
|
2441
|
+
disabled: Q,
|
|
2442
|
+
items: Ft.map((e) => ({
|
|
2437
2443
|
value: e.key,
|
|
2438
2444
|
label: Lt(e.key)
|
|
2439
2445
|
})),
|
|
2440
2446
|
radioClassName: Ae
|
|
2441
2447
|
})
|
|
2442
2448
|
}),
|
|
2443
|
-
!ln && !Le && vt && /* @__PURE__ */ W(
|
|
2449
|
+
!ln && !Le && vt && /* @__PURE__ */ W(Sn, {
|
|
2444
2450
|
item: e,
|
|
2445
2451
|
onLogin: be,
|
|
2446
|
-
onRequestLogout:
|
|
2452
|
+
onRequestLogout: jt,
|
|
2447
2453
|
onRequestDeleteApiKey: zt,
|
|
2448
2454
|
texts: z,
|
|
2449
2455
|
detailsStyles: Se
|
|
@@ -2487,7 +2493,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2487
2493
|
})
|
|
2488
2494
|
}),
|
|
2489
2495
|
!dn && /* @__PURE__ */ G(U, { children: [
|
|
2490
|
-
/* @__PURE__ */ W(
|
|
2496
|
+
/* @__PURE__ */ W(Pn, {
|
|
2491
2497
|
item: e,
|
|
2492
2498
|
onUseInChat: l,
|
|
2493
2499
|
isPrimaryActionVisible: u,
|
|
@@ -2507,16 +2513,16 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2507
2513
|
onDownload: oe,
|
|
2508
2514
|
isDownloadVisible: se,
|
|
2509
2515
|
isDownloadPrimary: F,
|
|
2510
|
-
onDelete: L ?
|
|
2511
|
-
onUnshare: de ?
|
|
2516
|
+
onDelete: L ? At : void 0,
|
|
2517
|
+
onUnshare: de ? Mt : void 0,
|
|
2512
2518
|
isUnshareVisible: fe,
|
|
2513
|
-
onRevokeShare: me ?
|
|
2519
|
+
onRevokeShare: me ? Pt : void 0,
|
|
2514
2520
|
onFetchRecipientsCount: he,
|
|
2515
2521
|
isRevokeShareVisible: ge,
|
|
2516
2522
|
onLogin: be,
|
|
2517
2523
|
onLogout: xe,
|
|
2518
|
-
onOpenCredentialsManagement:
|
|
2519
|
-
onRequestLogout:
|
|
2524
|
+
onOpenCredentialsManagement: Ot,
|
|
2525
|
+
onRequestLogout: jt,
|
|
2520
2526
|
texts: z,
|
|
2521
2527
|
detailsStyles: Se,
|
|
2522
2528
|
isReadonly: i
|
|
@@ -2525,7 +2531,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2525
2531
|
let t = d(e.credentials);
|
|
2526
2532
|
return t != null && /* @__PURE__ */ W("div", {
|
|
2527
2533
|
className: "px-6",
|
|
2528
|
-
children: /* @__PURE__ */ W(
|
|
2534
|
+
children: /* @__PURE__ */ W(vn, {
|
|
2529
2535
|
state: t,
|
|
2530
2536
|
authenticationType: e.credentials.authenticationType,
|
|
2531
2537
|
texts: z
|
|
@@ -2549,19 +2555,19 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2549
2555
|
width: "72px"
|
|
2550
2556
|
},
|
|
2551
2557
|
active: !0,
|
|
2552
|
-
color:
|
|
2558
|
+
color: Cn.skeletonColor
|
|
2553
2559
|
})
|
|
2554
2560
|
})]
|
|
2555
2561
|
}),
|
|
2556
2562
|
/* @__PURE__ */ G("div", {
|
|
2557
2563
|
className: k("min-h-0 flex-1 overflow-y-auto", V !== K.Overview && "px-6"),
|
|
2558
2564
|
children: [
|
|
2559
|
-
V === K.About && /* @__PURE__ */ W(
|
|
2565
|
+
V === K.About && /* @__PURE__ */ W(Fn, {
|
|
2560
2566
|
content: e.description,
|
|
2561
2567
|
topics: e.topics,
|
|
2562
2568
|
detailsStyles: Se
|
|
2563
2569
|
}),
|
|
2564
|
-
V === K.Content && /* @__PURE__ */ W(
|
|
2570
|
+
V === K.Content && /* @__PURE__ */ W(Bn, {
|
|
2565
2571
|
content: Ye?.content ?? "",
|
|
2566
2572
|
filePreview: mt(),
|
|
2567
2573
|
filePreviewContent: ht,
|
|
@@ -2580,7 +2586,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2580
2586
|
fileUnsupportedLabel: z?.contentFileUnsupportedLabel,
|
|
2581
2587
|
detailsStyles: Se
|
|
2582
2588
|
}),
|
|
2583
|
-
V === K.Overview && /* @__PURE__ */ W(
|
|
2589
|
+
V === K.Overview && /* @__PURE__ */ W(er, {
|
|
2584
2590
|
sections: e.details?.overview?.sections,
|
|
2585
2591
|
sectionClassName: Te,
|
|
2586
2592
|
labelClassName: Ee,
|
|
@@ -2589,16 +2595,16 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2589
2595
|
yesLabel: Xt,
|
|
2590
2596
|
noLabel: Zt
|
|
2591
2597
|
}),
|
|
2592
|
-
V === K.Pricing && /* @__PURE__ */ W(
|
|
2598
|
+
V === K.Pricing && /* @__PURE__ */ W(tr, {
|
|
2593
2599
|
pricing: e.details?.pricing,
|
|
2594
2600
|
pricesSectionLabel: z?.pricingPricesSectionLabel,
|
|
2595
2601
|
limitsSectionLabel: z?.pricingLimitsSectionLabel
|
|
2596
2602
|
}),
|
|
2597
|
-
V === K.Limits && /* @__PURE__ */ W(
|
|
2603
|
+
V === K.Limits && /* @__PURE__ */ W($n, {
|
|
2598
2604
|
limits: e.details?.limits,
|
|
2599
2605
|
footerNote: Ce
|
|
2600
2606
|
}),
|
|
2601
|
-
V === K.Api &&
|
|
2607
|
+
V === K.Api && sr(e.details?.api) && /* @__PURE__ */ W(en, {
|
|
2602
2608
|
api: e.details?.api,
|
|
2603
2609
|
resourceSectionLabel: z?.apiResourceSectionLabel,
|
|
2604
2610
|
snippetSectionLabel: z?.apiSnippetSectionLabel,
|
|
@@ -2610,17 +2616,17 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2610
2616
|
copyAriaLabel: z?.copyCodeAriaLabel,
|
|
2611
2617
|
copiedStatusLabel: z?.copiedCodeStatusLabel
|
|
2612
2618
|
}),
|
|
2613
|
-
V === K.Tools && /* @__PURE__ */ W(
|
|
2619
|
+
V === K.Tools && /* @__PURE__ */ W(ar, { tools: e.details?.tools })
|
|
2614
2620
|
]
|
|
2615
2621
|
})
|
|
2616
2622
|
] })
|
|
2617
2623
|
]
|
|
2618
2624
|
}),
|
|
2619
|
-
ln && /* @__PURE__ */ W(
|
|
2625
|
+
ln && /* @__PURE__ */ W(nn, {
|
|
2620
2626
|
confirmLabel: cn.confirmLabel,
|
|
2621
2627
|
cancelLabel: sn,
|
|
2622
2628
|
variant: cn.variant,
|
|
2623
|
-
isLoading:
|
|
2629
|
+
isLoading: Q,
|
|
2624
2630
|
isConfirmDisabled: un,
|
|
2625
2631
|
loadingStatusLabel: cn.loadingStatusLabel,
|
|
2626
2632
|
onConfirm: Vt,
|
|
@@ -2632,12 +2638,12 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2632
2638
|
isSubmitDisabled: Z.isSubmitDisabled,
|
|
2633
2639
|
isSubmitLoading: Z.isSubmitLoading,
|
|
2634
2640
|
onCancel: Ut,
|
|
2635
|
-
onSubmit:
|
|
2641
|
+
onSubmit: Wt,
|
|
2636
2642
|
labels: D
|
|
2637
2643
|
})
|
|
2638
2644
|
]
|
|
2639
2645
|
})] });
|
|
2640
|
-
},
|
|
2646
|
+
}, br = {
|
|
2641
2647
|
pageNav: "_pageNav_14qfn_1",
|
|
2642
2648
|
navBtn: "_navBtn_14qfn_6",
|
|
2643
2649
|
titleText: "_titleText_14qfn_23",
|
|
@@ -2652,7 +2658,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2652
2658
|
favFadeIn: "_favFadeIn_14qfn_1",
|
|
2653
2659
|
cardLeaving: "_cardLeaving_14qfn_54",
|
|
2654
2660
|
cardFadeOut: "_cardFadeOut_14qfn_1"
|
|
2655
|
-
},
|
|
2661
|
+
}, 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
2662
|
let [m, h] = P(t), [g, _] = P(!1), v = (t) => {
|
|
2657
2663
|
t.stopPropagation();
|
|
2658
2664
|
let r = !m;
|
|
@@ -2669,7 +2675,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2669
2675
|
role: y == null ? void 0 : "button",
|
|
2670
2676
|
tabIndex: y == null ? void 0 : 0,
|
|
2671
2677
|
"aria-label": e.name,
|
|
2672
|
-
className: k("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", g &&
|
|
2678
|
+
className: k("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", g && br.cardLeaving, f && br.selectedCard, yt.favoriteCard),
|
|
2673
2679
|
onClick: y,
|
|
2674
2680
|
onKeyDown: b,
|
|
2675
2681
|
onAnimationEnd: g ? (t) => {
|
|
@@ -2678,7 +2684,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2678
2684
|
children: [
|
|
2679
2685
|
f && /* @__PURE__ */ W(ze, {
|
|
2680
2686
|
size: L.SM,
|
|
2681
|
-
className: k("absolute end-3 top-3 shrink-0",
|
|
2687
|
+
className: k("absolute end-3 top-3 shrink-0", br.selectedCheck),
|
|
2682
2688
|
"aria-hidden": !0,
|
|
2683
2689
|
stroke: R
|
|
2684
2690
|
}),
|
|
@@ -2716,7 +2722,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2716
2722
|
})
|
|
2717
2723
|
]
|
|
2718
2724
|
});
|
|
2719
|
-
},
|
|
2725
|
+
}, Sr = 2, Cr = (e) => {
|
|
2720
2726
|
let t = e.getBoundingClientRect(), n = window.scrollX, r = window.scrollY, i = window.getComputedStyle(e).transform;
|
|
2721
2727
|
if (!i || i === "none") return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
2722
2728
|
try {
|
|
@@ -2725,7 +2731,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2725
2731
|
} catch {
|
|
2726
2732
|
return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
2727
2733
|
}
|
|
2728
|
-
},
|
|
2734
|
+
}, 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
2735
|
let h = o?.typography?.titleClassName ?? "dial-body-semi-text", g = o?.typography?.countClassName ?? "dial-tiny-semi-text", _ = ie({
|
|
2730
2736
|
"--cat-fav-title-text": o?.colors?.titleText,
|
|
2731
2737
|
"--cat-fav-count-text": o?.colors?.countText,
|
|
@@ -2738,7 +2744,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2738
2744
|
"--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
|
|
2739
2745
|
"--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
|
|
2740
2746
|
"--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 *
|
|
2747
|
+
}), 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 * Sr, C = (y - 1) * S, w = M(() => v.slice(C, C + S), [
|
|
2742
2748
|
v,
|
|
2743
2749
|
C,
|
|
2744
2750
|
S
|
|
@@ -2771,7 +2777,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2771
2777
|
ce.current = y, le.current = x;
|
|
2772
2778
|
let n = te.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
|
|
2773
2779
|
if (n.forEach((e) => {
|
|
2774
|
-
r.set(e.dataset.cardId,
|
|
2780
|
+
r.set(e.dataset.cardId, Cr(e));
|
|
2775
2781
|
}), !e && !t) {
|
|
2776
2782
|
let e = ee.current, t = I.current, i = 0;
|
|
2777
2783
|
if (e) {
|
|
@@ -2827,7 +2833,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2827
2833
|
ref: O,
|
|
2828
2834
|
children: /* @__PURE__ */ G("section", {
|
|
2829
2835
|
ref: ee,
|
|
2830
|
-
className: k("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2",
|
|
2836
|
+
className: k("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", br.section, s && br.sectionLeaving),
|
|
2831
2837
|
style: {
|
|
2832
2838
|
..._,
|
|
2833
2839
|
minHeight: ae
|
|
@@ -2838,16 +2844,16 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2838
2844
|
children: [/* @__PURE__ */ W(E, {
|
|
2839
2845
|
title: n,
|
|
2840
2846
|
postfix: D,
|
|
2841
|
-
titleClassName: k(h,
|
|
2842
|
-
postfixClassName: k(g,
|
|
2847
|
+
titleClassName: k(h, br.titleText),
|
|
2848
|
+
postfixClassName: k(g, br.countText),
|
|
2843
2849
|
trailing: T > 1 ? /* @__PURE__ */ G("div", {
|
|
2844
|
-
className: k("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]",
|
|
2850
|
+
className: k("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", br.pageNav),
|
|
2845
2851
|
children: [
|
|
2846
2852
|
/* @__PURE__ */ W("button", {
|
|
2847
2853
|
"aria-label": l,
|
|
2848
2854
|
disabled: y === 1,
|
|
2849
2855
|
onClick: () => b((e) => e - 1),
|
|
2850
|
-
className: k("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent",
|
|
2856
|
+
className: k("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", br.navBtn),
|
|
2851
2857
|
children: /* @__PURE__ */ W(Ve, {
|
|
2852
2858
|
size: 14,
|
|
2853
2859
|
className: "rtl:scale-x-[-1]",
|
|
@@ -2855,7 +2861,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2855
2861
|
})
|
|
2856
2862
|
}),
|
|
2857
2863
|
/* @__PURE__ */ G("span", {
|
|
2858
|
-
className: k("min-w-[32px] select-none px-1 text-center", g,
|
|
2864
|
+
className: k("min-w-[32px] select-none px-1 text-center", g, br.countText),
|
|
2859
2865
|
children: [
|
|
2860
2866
|
y,
|
|
2861
2867
|
" / ",
|
|
@@ -2866,7 +2872,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2866
2872
|
"aria-label": u,
|
|
2867
2873
|
disabled: y === T,
|
|
2868
2874
|
onClick: () => b((e) => e + 1),
|
|
2869
|
-
className: k("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent",
|
|
2875
|
+
className: k("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", br.navBtn),
|
|
2870
2876
|
children: /* @__PURE__ */ W(He, {
|
|
2871
2877
|
size: 14,
|
|
2872
2878
|
className: "rtl:scale-x-[-1]",
|
|
@@ -2877,12 +2883,12 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2877
2883
|
}) : void 0
|
|
2878
2884
|
}), /* @__PURE__ */ W("div", {
|
|
2879
2885
|
ref: te,
|
|
2880
|
-
className: k("grid content-start gap-5",
|
|
2886
|
+
className: k("grid content-start gap-5", br.gridPage),
|
|
2881
2887
|
style: {
|
|
2882
2888
|
gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
|
|
2883
2889
|
minHeight: ne
|
|
2884
2890
|
},
|
|
2885
|
-
children: w.map((e) => /* @__PURE__ */ W(
|
|
2891
|
+
children: w.map((e) => /* @__PURE__ */ W(xr, {
|
|
2886
2892
|
item: e,
|
|
2887
2893
|
onToggle: r,
|
|
2888
2894
|
isFavoriteVisible: i,
|
|
@@ -2895,7 +2901,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2895
2901
|
})]
|
|
2896
2902
|
})
|
|
2897
2903
|
});
|
|
2898
|
-
},
|
|
2904
|
+
}, Tr = {
|
|
2899
2905
|
listContainer: "_listContainer_145s6_1",
|
|
2900
2906
|
gridClip: "_gridClip_145s6_6",
|
|
2901
2907
|
favHeader: "_favHeader_145s6_43",
|
|
@@ -2904,19 +2910,19 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2904
2910
|
selectedCheck: "_selectedCheck_145s6_55",
|
|
2905
2911
|
starToggleOff: "_starToggleOff_145s6_59",
|
|
2906
2912
|
selectedRow: "_selectedRow_145s6_72"
|
|
2907
|
-
},
|
|
2913
|
+
}, Er = ({ data: e }) => e ? /* @__PURE__ */ W("div", {
|
|
2908
2914
|
className: "flex h-full items-center",
|
|
2909
2915
|
children: /* @__PURE__ */ W(w, { type: e.type })
|
|
2910
|
-
}) : null,
|
|
2916
|
+
}) : null, Dr = " / ", Or = ({ data: e, context: t }) => {
|
|
2911
2917
|
if (!e || e.folder.length === 0) return null;
|
|
2912
|
-
let n = e.folder.join(
|
|
2918
|
+
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
2919
|
return /* @__PURE__ */ G("div", {
|
|
2914
2920
|
className: "flex h-full w-full min-w-0 items-center gap-1.5",
|
|
2915
2921
|
children: [
|
|
2916
2922
|
/* @__PURE__ */ W(qe, {
|
|
2917
2923
|
size: L.SM,
|
|
2918
2924
|
stroke: R,
|
|
2919
|
-
className: k("shrink-0",
|
|
2925
|
+
className: k("shrink-0", Tr.folderIcon),
|
|
2920
2926
|
"aria-hidden": !0
|
|
2921
2927
|
}),
|
|
2922
2928
|
/* @__PURE__ */ W(Fe, {
|
|
@@ -2938,7 +2944,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2938
2944
|
})
|
|
2939
2945
|
]
|
|
2940
2946
|
});
|
|
2941
|
-
},
|
|
2947
|
+
}, kr = ({ data: e, context: t }) => {
|
|
2942
2948
|
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
2949
|
return e ? /* @__PURE__ */ G("div", {
|
|
2944
2950
|
className: "flex h-full w-full min-w-0 items-center gap-2.5",
|
|
@@ -2962,13 +2968,13 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2962
2968
|
className: "min-w-0 flex-1 items-baseline gap-1.5",
|
|
2963
2969
|
trailing: o ? /* @__PURE__ */ W(ze, {
|
|
2964
2970
|
size: L.SM,
|
|
2965
|
-
className: k("shrink-0",
|
|
2971
|
+
className: k("shrink-0", Tr.selectedCheck),
|
|
2966
2972
|
"aria-hidden": !0,
|
|
2967
2973
|
stroke: R
|
|
2968
2974
|
}) : void 0
|
|
2969
2975
|
})]
|
|
2970
2976
|
}) : null;
|
|
2971
|
-
},
|
|
2977
|
+
}, Ar = ({ data: e, context: t }) => {
|
|
2972
2978
|
let [n, r] = P(e?.isStarred ?? !1);
|
|
2973
2979
|
return j(() => {
|
|
2974
2980
|
r(e?.isStarred ?? !1);
|
|
@@ -2981,22 +2987,22 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
2981
2987
|
let a = !n;
|
|
2982
2988
|
r(a), t?.onToggleFavorite?.(e.id, a);
|
|
2983
2989
|
},
|
|
2984
|
-
className: n ? void 0 :
|
|
2990
|
+
className: n ? void 0 : Tr.starToggleOff
|
|
2985
2991
|
})
|
|
2986
2992
|
});
|
|
2987
|
-
},
|
|
2993
|
+
}, jr = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ W("div", {
|
|
2988
2994
|
className: "flex h-full w-full min-w-0 items-center",
|
|
2989
|
-
children: /* @__PURE__ */ W(
|
|
2990
|
-
}),
|
|
2995
|
+
children: /* @__PURE__ */ W(Rt, { topics: e.topics })
|
|
2996
|
+
}), Mr = {
|
|
2991
2997
|
folder: (e) => e !== b.Model,
|
|
2992
2998
|
tags: () => !0,
|
|
2993
2999
|
favorite: () => !0
|
|
2994
|
-
},
|
|
3000
|
+
}, Nr = (e, t) => Object.fromEntries([
|
|
2995
3001
|
"folder",
|
|
2996
3002
|
"tags",
|
|
2997
3003
|
"favorite"
|
|
2998
|
-
].map((n) => [n, (t?.[n] ??
|
|
2999
|
-
let r =
|
|
3004
|
+
].map((n) => [n, (t?.[n] ?? Mr[n])(e)])), Pr = (e, t = !1, n) => {
|
|
3005
|
+
let r = Nr(e, n);
|
|
3000
3006
|
return [
|
|
3001
3007
|
{
|
|
3002
3008
|
headerName: "Name",
|
|
@@ -3004,7 +3010,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3004
3010
|
minWidth: 220,
|
|
3005
3011
|
field: "name",
|
|
3006
3012
|
filter: !1,
|
|
3007
|
-
cellRenderer:
|
|
3013
|
+
cellRenderer: kr,
|
|
3008
3014
|
valueGetter: (e) => e.data?.name
|
|
3009
3015
|
},
|
|
3010
3016
|
{
|
|
@@ -3014,7 +3020,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3014
3020
|
field: "type",
|
|
3015
3021
|
filter: !1,
|
|
3016
3022
|
sortable: !1,
|
|
3017
|
-
cellRenderer:
|
|
3023
|
+
cellRenderer: Er,
|
|
3018
3024
|
valueGetter: (e) => e.data?.type
|
|
3019
3025
|
},
|
|
3020
3026
|
{
|
|
@@ -3024,7 +3030,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3024
3030
|
minWidth: 170,
|
|
3025
3031
|
filter: !1,
|
|
3026
3032
|
hide: !r.folder,
|
|
3027
|
-
cellRenderer:
|
|
3033
|
+
cellRenderer: Or,
|
|
3028
3034
|
valueGetter: (e) => e.data?.folder
|
|
3029
3035
|
},
|
|
3030
3036
|
{
|
|
@@ -3035,7 +3041,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3035
3041
|
filter: !1,
|
|
3036
3042
|
sortable: !1,
|
|
3037
3043
|
hide: !r.tags,
|
|
3038
|
-
cellRenderer:
|
|
3044
|
+
cellRenderer: jr,
|
|
3039
3045
|
valueGetter: (e) => e.data?.topics
|
|
3040
3046
|
},
|
|
3041
3047
|
{
|
|
@@ -3047,13 +3053,13 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3047
3053
|
sortable: !1,
|
|
3048
3054
|
resizable: !1,
|
|
3049
3055
|
hide: t || !r.favorite,
|
|
3050
|
-
headerClass:
|
|
3051
|
-
cellRenderer:
|
|
3056
|
+
headerClass: Tr.favHeader,
|
|
3057
|
+
cellRenderer: Ar
|
|
3052
3058
|
}
|
|
3053
3059
|
];
|
|
3054
|
-
},
|
|
3060
|
+
}, 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
3061
|
if (e.length === 0) return /* @__PURE__ */ W("div", {
|
|
3056
|
-
className: "flex size-full flex-col items-center justify-center",
|
|
3062
|
+
className: V("flex size-full flex-col items-center justify-center", yt.listView),
|
|
3057
3063
|
children: /* @__PURE__ */ W(te, { label: i ?? "No results" })
|
|
3058
3064
|
});
|
|
3059
3065
|
let m = a?.typography ?? {}, h = a?.colors, g = {
|
|
@@ -3068,7 +3074,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3068
3074
|
"--cat-list-selected-bg": h?.selectedRowBackground,
|
|
3069
3075
|
"--cat-list-selected-check": h?.selectedRowCheckIcon,
|
|
3070
3076
|
...l == null ? {} : { "--list-header-sticky-top": `${l}px` }
|
|
3071
|
-
}, _ = N(null), { containerRef: v, startRow: y, endRow: b } =
|
|
3077
|
+
}, _ = N(null), { containerRef: v, startRow: y, endRow: b } = Et(e.length, Fr), x = M(() => e.slice(y, b), [
|
|
3072
3078
|
e,
|
|
3073
3079
|
y,
|
|
3074
3080
|
b
|
|
@@ -3081,17 +3087,17 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3081
3087
|
_.current?.setGridOption("domLayout", e.length > 0 ? "autoHeight" : "normal");
|
|
3082
3088
|
}, [e]), /* @__PURE__ */ W("div", {
|
|
3083
3089
|
style: g,
|
|
3084
|
-
className: V("w-full rounded-xl border",
|
|
3090
|
+
className: V("w-full rounded-xl border", Tr.listContainer, yt.listView),
|
|
3085
3091
|
children: /* @__PURE__ */ G("div", {
|
|
3086
3092
|
ref: v,
|
|
3087
|
-
className: V("rounded-xl",
|
|
3093
|
+
className: V("rounded-xl", Tr.gridClip),
|
|
3088
3094
|
children: [
|
|
3089
3095
|
y > 0 && /* @__PURE__ */ W("div", {
|
|
3090
|
-
style: { height: y *
|
|
3096
|
+
style: { height: y * Fr },
|
|
3091
3097
|
"aria-hidden": !0
|
|
3092
3098
|
}),
|
|
3093
3099
|
/* @__PURE__ */ W(mt, {
|
|
3094
|
-
columnDefs:
|
|
3100
|
+
columnDefs: Pr(t, f, p),
|
|
3095
3101
|
rowData: x,
|
|
3096
3102
|
getRowId: (e) => e.id,
|
|
3097
3103
|
withoutHeaderBorders: !0,
|
|
@@ -3101,7 +3107,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3101
3107
|
},
|
|
3102
3108
|
emptyStateTitle: i,
|
|
3103
3109
|
additionalGridOptions: {
|
|
3104
|
-
rowHeight:
|
|
3110
|
+
rowHeight: Fr,
|
|
3105
3111
|
defaultColDef: {
|
|
3106
3112
|
filter: !1,
|
|
3107
3113
|
floatingFilter: !1
|
|
@@ -3119,18 +3125,18 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3119
3125
|
e.column.getColDef().field !== "isStarred" && e.data && c(e.data);
|
|
3120
3126
|
} : void 0,
|
|
3121
3127
|
rowClass: c ? "cursor-pointer" : void 0,
|
|
3122
|
-
getRowClass: (e) => e.data?.id === u ?
|
|
3128
|
+
getRowClass: (e) => e.data?.id === u ? Tr.selectedRow : void 0
|
|
3123
3129
|
},
|
|
3124
3130
|
ariaLabel: r
|
|
3125
3131
|
}),
|
|
3126
3132
|
b < e.length && /* @__PURE__ */ W("div", {
|
|
3127
|
-
style: { height: (e.length - b) *
|
|
3133
|
+
style: { height: (e.length - b) * Fr },
|
|
3128
3134
|
"aria-hidden": !0
|
|
3129
3135
|
})
|
|
3130
3136
|
]
|
|
3131
3137
|
})
|
|
3132
3138
|
});
|
|
3133
|
-
},
|
|
3139
|
+
}, Lr = {
|
|
3134
3140
|
filterBtn: "_filterBtn_1ngmc_2",
|
|
3135
3141
|
filterBtnActive: "_filterBtnActive_1ngmc_19",
|
|
3136
3142
|
filterBtnOpen: "_filterBtnOpen_1ngmc_23",
|
|
@@ -3142,13 +3148,13 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3142
3148
|
divider: "_divider_1ngmc_58",
|
|
3143
3149
|
sectionLabel: "_sectionLabel_1ngmc_62",
|
|
3144
3150
|
footer: "_footer_1ngmc_66"
|
|
3145
|
-
},
|
|
3151
|
+
}, Rr = (e, t, n, r, i) => {
|
|
3146
3152
|
let o = e.size > 0;
|
|
3147
3153
|
return n && o ? `${r} · ${e.size}` : n ? r : o ? a(e, t, i) : i;
|
|
3148
|
-
},
|
|
3154
|
+
}, zr = (e, t) => {
|
|
3149
3155
|
let n = new Set(t);
|
|
3150
3156
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
3151
|
-
},
|
|
3157
|
+
}, 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
3158
|
let f = (r ?? !1) || e.size > 0, [p, m] = P(!1), h = ie({
|
|
3153
3159
|
"--cat-filter-btn-bg": d?.buttonBackground,
|
|
3154
3160
|
"--cat-filter-btn-border": d?.buttonBorder,
|
|
@@ -3165,7 +3171,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3165
3171
|
"--cat-filter-section-label": d?.sectionLabel,
|
|
3166
3172
|
"--cat-filter-divider": d?.divider,
|
|
3167
3173
|
"--cat-filter-footer-border": d?.footerBorder
|
|
3168
|
-
}), g = M(() => n == null ? [] : [...n].sort(), [n]), _ =
|
|
3174
|
+
}), 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
3175
|
j(() => {
|
|
3170
3176
|
p && (y(new Set(e)), x(r ?? !1));
|
|
3171
3177
|
}, [
|
|
@@ -3210,7 +3216,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3210
3216
|
...h,
|
|
3211
3217
|
maxHeight: "calc(var(--fui-available-height, 9999px) - 8px)"
|
|
3212
3218
|
},
|
|
3213
|
-
className: k("flex min-w-[360px] flex-col rounded-xl p-[6px]",
|
|
3219
|
+
className: k("flex min-w-[360px] flex-col rounded-xl p-[6px]", Lr.overlay),
|
|
3214
3220
|
onKeyDown: te,
|
|
3215
3221
|
children: [
|
|
3216
3222
|
/* @__PURE__ */ W(Se, {
|
|
@@ -3219,7 +3225,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3219
3225
|
mark: Ce.Checkbox,
|
|
3220
3226
|
selected: b,
|
|
3221
3227
|
label: a,
|
|
3222
|
-
labelClassName: k(
|
|
3228
|
+
labelClassName: k(Lr.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
3223
3229
|
className: "shrink-0",
|
|
3224
3230
|
tabIndex: C === 0 ? 0 : -1,
|
|
3225
3231
|
ref: (e) => {
|
|
@@ -3230,11 +3236,11 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3230
3236
|
g.length > 0 && /* @__PURE__ */ G(U, { children: [
|
|
3231
3237
|
/* @__PURE__ */ W("div", {
|
|
3232
3238
|
role: "separator",
|
|
3233
|
-
className: k("my-1 h-px",
|
|
3239
|
+
className: k("my-1 h-px", Lr.divider),
|
|
3234
3240
|
"aria-hidden": !0
|
|
3235
3241
|
}),
|
|
3236
3242
|
/* @__PURE__ */ W("div", {
|
|
3237
|
-
className: k("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text",
|
|
3243
|
+
className: k("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Lr.sectionLabel),
|
|
3238
3244
|
"aria-hidden": !0,
|
|
3239
3245
|
children: o
|
|
3240
3246
|
}),
|
|
@@ -3248,19 +3254,19 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3248
3254
|
mark: Ce.Checkbox,
|
|
3249
3255
|
selected: n,
|
|
3250
3256
|
label: e,
|
|
3251
|
-
labelClassName:
|
|
3257
|
+
labelClassName: Lr.rowLabel,
|
|
3252
3258
|
className: "shrink-0",
|
|
3253
3259
|
tabIndex: C === r ? 0 : -1,
|
|
3254
3260
|
ref: (e) => {
|
|
3255
3261
|
T.current[r] = e;
|
|
3256
3262
|
},
|
|
3257
|
-
onClick: () => y(
|
|
3263
|
+
onClick: () => y(zr(e, v))
|
|
3258
3264
|
}, e);
|
|
3259
3265
|
})
|
|
3260
3266
|
})
|
|
3261
3267
|
] }),
|
|
3262
3268
|
/* @__PURE__ */ G("div", {
|
|
3263
|
-
className: k("mt-1 flex shrink-0 items-center px-1 py-3",
|
|
3269
|
+
className: k("mt-1 flex shrink-0 items-center px-1 py-3", Lr.footer),
|
|
3264
3270
|
onKeyDown: (e) => {
|
|
3265
3271
|
(e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
|
|
3266
3272
|
},
|
|
@@ -3282,31 +3288,31 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3282
3288
|
"aria-expanded": p,
|
|
3283
3289
|
onKeyDown: ee,
|
|
3284
3290
|
style: h,
|
|
3285
|
-
className: k("flex h-12 shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-lg px-[18px]",
|
|
3291
|
+
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
3292
|
children: [
|
|
3287
3293
|
/* @__PURE__ */ W(Ke, {
|
|
3288
3294
|
size: L.SM,
|
|
3289
3295
|
stroke: R,
|
|
3290
|
-
className: k("shrink-0",
|
|
3296
|
+
className: k("shrink-0", Lr.filterBtnFunnel),
|
|
3291
3297
|
"aria-hidden": !0
|
|
3292
3298
|
}),
|
|
3293
3299
|
/* @__PURE__ */ W("span", {
|
|
3294
|
-
className: k(
|
|
3300
|
+
className: k(Lr.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
3295
3301
|
children: _
|
|
3296
3302
|
}),
|
|
3297
3303
|
/* @__PURE__ */ W(Be, {
|
|
3298
3304
|
size: 14,
|
|
3299
3305
|
stroke: R,
|
|
3300
|
-
className: k("shrink-0 transition-transform duration-150",
|
|
3306
|
+
className: k("shrink-0 transition-transform duration-150", Lr.filterBtnChevron, p && "rotate-180"),
|
|
3301
3307
|
"aria-hidden": !0
|
|
3302
3308
|
})
|
|
3303
3309
|
]
|
|
3304
3310
|
})
|
|
3305
3311
|
});
|
|
3306
|
-
},
|
|
3312
|
+
}, Vr = {
|
|
3307
3313
|
section: "_section_mh952_1",
|
|
3308
3314
|
divider: "_divider_mh952_5"
|
|
3309
|
-
},
|
|
3315
|
+
}, 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
3316
|
let w = a?.typography?.titleClassName ?? "dial-body-semi-text", T = a?.typography?.countClassName ?? "dial-tiny-semi-text", D = M(() => [{
|
|
3311
3317
|
value: X.Grid,
|
|
3312
3318
|
icon: /* @__PURE__ */ W(Ye, {
|
|
@@ -3358,7 +3364,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3358
3364
|
value: t,
|
|
3359
3365
|
onChange: n,
|
|
3360
3366
|
items: D
|
|
3361
|
-
}), p != null && p.length > 0 && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("div", { className: k("h-4 w-px shrink-0",
|
|
3367
|
+
}), 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
3368
|
items: te,
|
|
3363
3369
|
label: ee,
|
|
3364
3370
|
variant: le.Primary,
|
|
@@ -3378,7 +3384,7 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3378
3384
|
placeholder: c,
|
|
3379
3385
|
"aria-label": c
|
|
3380
3386
|
})
|
|
3381
|
-
}), /* @__PURE__ */ W(
|
|
3387
|
+
}), /* @__PURE__ */ W(Br, {
|
|
3382
3388
|
checked: g ?? /* @__PURE__ */ new Set(),
|
|
3383
3389
|
onChange: _ ?? (() => void 0),
|
|
3384
3390
|
values: v,
|
|
@@ -3391,12 +3397,12 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3391
3397
|
})]
|
|
3392
3398
|
})]
|
|
3393
3399
|
});
|
|
3394
|
-
},
|
|
3400
|
+
}, 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
3401
|
let b = { "--cat-browse-divider": r?.colors?.divider };
|
|
3396
3402
|
return /* @__PURE__ */ W("section", {
|
|
3397
|
-
className: k("flex-shrink-0 px-4",
|
|
3403
|
+
className: k("flex-shrink-0 px-4", Vr.section, yt.toolbar),
|
|
3398
3404
|
style: b,
|
|
3399
|
-
children: /* @__PURE__ */ W(
|
|
3405
|
+
children: /* @__PURE__ */ W(Hr, {
|
|
3400
3406
|
styles: r,
|
|
3401
3407
|
query: e,
|
|
3402
3408
|
onQueryChange: t,
|
|
@@ -3419,11 +3425,11 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3419
3425
|
...y
|
|
3420
3426
|
})
|
|
3421
3427
|
});
|
|
3422
|
-
},
|
|
3428
|
+
}, Wr = {
|
|
3423
3429
|
root: "_root_1h83l_1",
|
|
3424
3430
|
heading: "_heading_1h83l_5",
|
|
3425
3431
|
headingTitle: "_headingTitle_1h83l_9"
|
|
3426
|
-
},
|
|
3432
|
+
}, Gr = ({ label: e, options: t, onClick: n }) => {
|
|
3427
3433
|
let r = N(null);
|
|
3428
3434
|
return t?.length ? /* @__PURE__ */ W("div", {
|
|
3429
3435
|
ref: r,
|
|
@@ -3441,8 +3447,8 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3441
3447
|
}),
|
|
3442
3448
|
onClick: n
|
|
3443
3449
|
});
|
|
3444
|
-
},
|
|
3445
|
-
let { typography: qe } = Fe ?? {}, Je =
|
|
3450
|
+
}, 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 = 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 }) => {
|
|
3451
|
+
let { typography: qe } = Fe ?? {}, Je = bt(Fe), Ye = s?.pageTitle ?? "Catalog", Xe = s?.createLabel ?? "Create", Ze = s?.favoritesTitle ?? "Your favorites", Qe = s?.browseTitle ?? "Browse", $e = s?.searchPlaceholder ?? "Search models, tools, agents…", et = s?.noResultsTitle ?? ((e) => `No results for "${e}"`), tt = s?.featuredLabel ?? "Featured", nt = s?.gridViewLabel ?? "Grid view", rt = s?.listViewLabel ?? "List view", H = s?.viewToggleLabel ?? "View mode", it = s?.ariaLabel ?? "Catalog", at = s?.sortLabel ?? "Sort", ot = [
|
|
3446
3452
|
{
|
|
3447
3453
|
value: u.RecentlyUpdated,
|
|
3448
3454
|
label: s?.sortRecentlyUpdatedLabel ?? "Recently Updated"
|
|
@@ -3460,103 +3466,103 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3460
3466
|
mt(t), ze?.(t);
|
|
3461
3467
|
}, [ze]), vt = A((e) => {
|
|
3462
3468
|
K(e), Ve?.(e);
|
|
3463
|
-
}, [Ve]),
|
|
3469
|
+
}, [Ve]), xt = A((e) => {
|
|
3464
3470
|
q(e), Ue?.(e);
|
|
3465
|
-
}, [Ue]), Q = M(() => e.filter((e) => !e.isHidden), [e]),
|
|
3471
|
+
}, [Ue]), Q = M(() => e.filter((e) => !e.isHidden), [e]), St = M(() => a ?? p(Q), [a, Q]), Ct = M(() => n ?? h(Q, s?.tabLabels), [
|
|
3466
3472
|
n,
|
|
3467
3473
|
Q,
|
|
3468
3474
|
s?.tabLabels
|
|
3469
|
-
]),
|
|
3475
|
+
]), wt = Ct[0]?.id ?? "", [Tt, Et] = P(wt);
|
|
3470
3476
|
j(() => {
|
|
3471
|
-
|
|
3472
|
-
}, [
|
|
3473
|
-
let
|
|
3474
|
-
|
|
3477
|
+
Et((e) => e || wt);
|
|
3478
|
+
}, [wt]);
|
|
3479
|
+
let Dt = We ?? Tt, $ = A((e) => {
|
|
3480
|
+
Et(e), Ge?.(e);
|
|
3475
3481
|
}, [Ge]), [Ot, kt] = P(o.length > 0);
|
|
3476
3482
|
j(() => {
|
|
3477
3483
|
o.length > 0 && !Ot && kt(!0);
|
|
3478
3484
|
}, [o.length, Ot]);
|
|
3479
3485
|
let At = A(() => {
|
|
3480
3486
|
kt(!1);
|
|
3481
|
-
}, []), jt = Ot && o.length === 0, [Mt, Nt] = P(null), [Pt, Ft] = P(!1), [
|
|
3482
|
-
|
|
3483
|
-
let t = ++
|
|
3487
|
+
}, []), jt = Ot && o.length === 0, [Mt, Nt] = P(null), [Pt, Ft] = P(!1), [It, Lt] = P(void 0), [Rt, zt] = P(!1), Bt = N(null), Vt = N(0), Ht = A(async (e) => {
|
|
3488
|
+
Bt.current = e.id;
|
|
3489
|
+
let t = ++Vt.current;
|
|
3484
3490
|
if (I) {
|
|
3485
|
-
|
|
3491
|
+
zt(!0);
|
|
3486
3492
|
try {
|
|
3487
3493
|
let n = await I(e);
|
|
3488
|
-
return
|
|
3494
|
+
return Vt.current === t && Lt(n), n;
|
|
3489
3495
|
} finally {
|
|
3490
|
-
|
|
3496
|
+
Vt.current === t && zt(!1);
|
|
3491
3497
|
}
|
|
3492
3498
|
}
|
|
3493
|
-
}, [I]),
|
|
3494
|
-
for (let n = 0; n <
|
|
3495
|
-
if (
|
|
3496
|
-
n <
|
|
3499
|
+
}, [I]), Wt = A(async (e) => (Nt(e), Lt(void 0), Ht(e)), [Ht]), Gt = A(async (e, t) => {
|
|
3500
|
+
for (let n = 0; n < Kr; n++) {
|
|
3501
|
+
if (Bt.current !== e.id || t(await Ht(e))) return;
|
|
3502
|
+
n < Kr - 1 && await f(qr);
|
|
3497
3503
|
}
|
|
3498
|
-
}, [
|
|
3504
|
+
}, [Ht]), Kt = N(null);
|
|
3499
3505
|
j(() => {
|
|
3500
3506
|
if (!Le) {
|
|
3501
|
-
|
|
3507
|
+
Kt.current = null;
|
|
3502
3508
|
return;
|
|
3503
3509
|
}
|
|
3504
|
-
if (
|
|
3510
|
+
if (Kt.current === Le) return;
|
|
3505
3511
|
let t = e.find((e) => e.id === Le);
|
|
3506
|
-
t && (
|
|
3512
|
+
t && (Kt.current = Le, Wt(t));
|
|
3507
3513
|
}, [
|
|
3508
3514
|
Le,
|
|
3509
3515
|
e,
|
|
3510
|
-
|
|
3516
|
+
Wt
|
|
3511
3517
|
]), j(() => {
|
|
3512
3518
|
if (Mt == null) return;
|
|
3513
3519
|
let t = e.find((e) => e.id === Mt.id);
|
|
3514
3520
|
t && t !== Mt && Nt(t);
|
|
3515
3521
|
}, [e, Mt]);
|
|
3516
|
-
let
|
|
3517
|
-
await Se?.(e, n), I && await
|
|
3522
|
+
let qt = A(async (e, n) => {
|
|
3523
|
+
await Se?.(e, n), I && await Gt(e, (e) => t(e?.credentials, n.level));
|
|
3518
3524
|
}, [
|
|
3519
3525
|
Se,
|
|
3520
3526
|
I,
|
|
3521
|
-
|
|
3522
|
-
]),
|
|
3523
|
-
await Ce?.(e, n), I && await
|
|
3527
|
+
Gt
|
|
3528
|
+
]), Jt = A(async (e, n) => {
|
|
3529
|
+
await Ce?.(e, n), I && await Gt(e, (e) => !t(e?.credentials, n.level));
|
|
3524
3530
|
}, [
|
|
3525
3531
|
Ce,
|
|
3526
3532
|
I,
|
|
3527
|
-
|
|
3528
|
-
]),
|
|
3529
|
-
Ft(!1),
|
|
3530
|
-
Nt(null),
|
|
3533
|
+
Gt
|
|
3534
|
+
]), Yt = A(() => {
|
|
3535
|
+
Ft(!1), Bt.current = null, Vt.current += 1, setTimeout(() => {
|
|
3536
|
+
Nt(null), Lt(void 0), zt(!1);
|
|
3531
3537
|
}, 300);
|
|
3532
|
-
}, []),
|
|
3538
|
+
}, []), Xt = M(() => {
|
|
3533
3539
|
if (Mt == null) return null;
|
|
3534
|
-
if (
|
|
3535
|
-
let { credentials: e, ...t } =
|
|
3540
|
+
if (It == null) return Mt;
|
|
3541
|
+
let { credentials: e, ...t } = It;
|
|
3536
3542
|
return {
|
|
3537
3543
|
...Mt,
|
|
3538
3544
|
details: t,
|
|
3539
3545
|
credentials: e ?? Mt.credentials
|
|
3540
3546
|
};
|
|
3541
|
-
}, [Mt,
|
|
3547
|
+
}, [Mt, It]), Zt = M(() => r(Q, J), [Q, J]), Qt = M(() => i(Zt, st), [Zt, st]), $t = M(() => Y.size > 0 ? _(Qt, Y) : Qt, [Qt, Y]), en = M(() => Z ? l($t) : $t, [$t, Z]), tn = M(() => Dt ? en.filter((e) => e.type === Dt) : en, [en, Dt]), nn = Mt != null && o.some((e) => e.id === Mt.id);
|
|
3542
3548
|
j(() => {
|
|
3543
3549
|
if (Mt == null) return;
|
|
3544
3550
|
let e = requestAnimationFrame(() => Ft(!0));
|
|
3545
3551
|
return () => cancelAnimationFrame(e);
|
|
3546
3552
|
}, [Mt]);
|
|
3547
|
-
let
|
|
3553
|
+
let rn = A((e) => {
|
|
3548
3554
|
e === X.Cards && ft(!0), ut(e);
|
|
3549
|
-
}, []),
|
|
3550
|
-
noResultsTitle:
|
|
3555
|
+
}, []), an = !Ee && !Oe, on = Ot && !Oe, sn = st ? et(st) : "No items", cn = M(() => ({
|
|
3556
|
+
noResultsTitle: sn,
|
|
3551
3557
|
featuredLabel: tt,
|
|
3552
3558
|
credentialsBadgeLoggedOutLabel: V?.credentialsBadgeLoggedOutLabel
|
|
3553
3559
|
}), [
|
|
3554
|
-
|
|
3560
|
+
sn,
|
|
3555
3561
|
tt,
|
|
3556
3562
|
V?.credentialsBadgeLoggedOutLabel
|
|
3557
|
-
]),
|
|
3563
|
+
]), ln = !Pe && tn.length === 0 ? Ke?.({
|
|
3558
3564
|
query: st,
|
|
3559
|
-
activeTab:
|
|
3565
|
+
activeTab: Dt,
|
|
3560
3566
|
hasTopicFilters: Y.size > 0,
|
|
3561
3567
|
isMyAppsActive: Z
|
|
3562
3568
|
}) : void 0;
|
|
@@ -3565,17 +3571,17 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3565
3571
|
children: /* @__PURE__ */ W(Me, {})
|
|
3566
3572
|
}) : /* @__PURE__ */ G("section", {
|
|
3567
3573
|
"aria-label": it,
|
|
3568
|
-
className: k("flex size-full min-h-0 flex-1 flex-col",
|
|
3574
|
+
className: k("flex size-full min-h-0 flex-1 flex-col", Wr.root, yt.root),
|
|
3569
3575
|
style: Je,
|
|
3570
3576
|
children: [
|
|
3571
|
-
(!De ||
|
|
3572
|
-
className: k("shrink-0",
|
|
3577
|
+
(!De || an) && /* @__PURE__ */ W("div", {
|
|
3578
|
+
className: k("shrink-0", Wr.heading),
|
|
3573
3579
|
children: /* @__PURE__ */ G("div", {
|
|
3574
3580
|
className: "flex h-[64px] w-full items-center justify-between px-8",
|
|
3575
3581
|
children: [!De && /* @__PURE__ */ W("h1", {
|
|
3576
|
-
className: k(qe?.pageHeadingFontClassName ?? "dial-display2-text",
|
|
3582
|
+
className: k(qe?.pageHeadingFontClassName ?? "dial-display2-text", Wr.headingTitle),
|
|
3577
3583
|
children: Ye
|
|
3578
|
-
}),
|
|
3584
|
+
}), an && /* @__PURE__ */ W(Gr, {
|
|
3579
3585
|
label: Xe,
|
|
3580
3586
|
options: Te,
|
|
3581
3587
|
onClick: we
|
|
@@ -3585,15 +3591,15 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3585
3591
|
/* @__PURE__ */ G("div", {
|
|
3586
3592
|
className: "flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto overflow-x-hidden",
|
|
3587
3593
|
children: [
|
|
3588
|
-
|
|
3594
|
+
on && /* @__PURE__ */ W("div", {
|
|
3589
3595
|
className: "w-full px-8",
|
|
3590
|
-
children: /* @__PURE__ */ W(
|
|
3596
|
+
children: /* @__PURE__ */ W(wr, {
|
|
3591
3597
|
items: o,
|
|
3592
3598
|
totalCount: o.length,
|
|
3593
3599
|
title: Ze,
|
|
3594
3600
|
onToggleFavorite: d,
|
|
3595
3601
|
isFavoriteVisible: m,
|
|
3596
|
-
onItemClick: B ??
|
|
3602
|
+
onItemClick: B ?? Wt,
|
|
3597
3603
|
isLeaving: jt,
|
|
3598
3604
|
onExitComplete: At,
|
|
3599
3605
|
selectedItemId: je,
|
|
@@ -3602,10 +3608,10 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3602
3608
|
}),
|
|
3603
3609
|
/* @__PURE__ */ W("div", {
|
|
3604
3610
|
className: "w-full px-4 pt-6",
|
|
3605
|
-
children: /* @__PURE__ */ W(
|
|
3606
|
-
totalCount:
|
|
3611
|
+
children: /* @__PURE__ */ W(Ur, {
|
|
3612
|
+
totalCount: en.length,
|
|
3607
3613
|
viewMode: lt,
|
|
3608
|
-
onViewModeChange:
|
|
3614
|
+
onViewModeChange: rn,
|
|
3609
3615
|
sortKey: J,
|
|
3610
3616
|
query: st,
|
|
3611
3617
|
onQueryChange: ct,
|
|
@@ -3620,54 +3626,54 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3620
3626
|
sortLabel: at,
|
|
3621
3627
|
filters: Y,
|
|
3622
3628
|
onFiltersChange: vt,
|
|
3623
|
-
filterValues:
|
|
3629
|
+
filterValues: St,
|
|
3624
3630
|
isMyAppsActive: Z,
|
|
3625
|
-
onMyAppsChange:
|
|
3631
|
+
onMyAppsChange: xt,
|
|
3626
3632
|
filterFromLabel: s?.filterFromLabel,
|
|
3627
3633
|
filterMyAppsLabel: s?.filterMyAppsLabel,
|
|
3628
3634
|
filterTopicsLabel: s?.filterTopicsLabel
|
|
3629
3635
|
})
|
|
3630
3636
|
}),
|
|
3631
|
-
|
|
3637
|
+
Ct.length > 1 && /* @__PURE__ */ W("div", {
|
|
3632
3638
|
className: "min-w-0 shrink-0 overflow-x-auto px-8",
|
|
3633
3639
|
children: /* @__PURE__ */ W(Ne, {
|
|
3634
|
-
tabs:
|
|
3640
|
+
tabs: Ct.map((e) => ({
|
|
3635
3641
|
id: e.id,
|
|
3636
3642
|
label: typeof e.label == "string" ? e.label : String(e.label),
|
|
3637
|
-
count:
|
|
3643
|
+
count: en.filter((t) => t.type === e.id).length
|
|
3638
3644
|
})),
|
|
3639
|
-
activeTabId:
|
|
3640
|
-
onTabChange:
|
|
3645
|
+
activeTabId: Dt,
|
|
3646
|
+
onTabChange: $
|
|
3641
3647
|
})
|
|
3642
3648
|
}),
|
|
3643
3649
|
/* @__PURE__ */ W("div", {
|
|
3644
|
-
className: k(
|
|
3645
|
-
children:
|
|
3646
|
-
className: k(
|
|
3647
|
-
children: /* @__PURE__ */ W(
|
|
3648
|
-
items:
|
|
3650
|
+
className: k(tn.length > 0 ? ["min-h-full w-full px-8 py-6", !Ae && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", tn.length === 0 && "px-8 py-6"),
|
|
3651
|
+
children: ln ?? /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("div", {
|
|
3652
|
+
className: k(tn.length > 0 ? "pb-8" : "size-full flex-1", lt !== X.Grid && "hidden"),
|
|
3653
|
+
children: /* @__PURE__ */ W(Ut, {
|
|
3654
|
+
items: tn,
|
|
3649
3655
|
query: st,
|
|
3650
3656
|
onToggleFavorite: d,
|
|
3651
3657
|
isFavoriteVisible: m,
|
|
3652
|
-
onItemClick: B ??
|
|
3653
|
-
titles:
|
|
3658
|
+
onItemClick: B ?? Wt,
|
|
3659
|
+
titles: cn,
|
|
3654
3660
|
selectedItemId: je,
|
|
3655
3661
|
isReadonly: Oe,
|
|
3656
3662
|
isFullWidth: Ae,
|
|
3657
3663
|
featuredChipStyle: Fe?.colors?.featuredChipStyle
|
|
3658
3664
|
})
|
|
3659
3665
|
}), dt && /* @__PURE__ */ W("div", {
|
|
3660
|
-
className: k("pb-8", lt !== X.Cards && "hidden",
|
|
3661
|
-
children: /* @__PURE__ */ W(
|
|
3662
|
-
type:
|
|
3663
|
-
items:
|
|
3666
|
+
className: k("pb-8", lt !== X.Cards && "hidden", tn.length === 0 && "h-full"),
|
|
3667
|
+
children: /* @__PURE__ */ W(Ir, {
|
|
3668
|
+
type: Dt,
|
|
3669
|
+
items: tn,
|
|
3664
3670
|
query: st,
|
|
3665
3671
|
ariaLabel: it,
|
|
3666
|
-
emptyStateTitle:
|
|
3672
|
+
emptyStateTitle: sn,
|
|
3667
3673
|
onToggleFavorite: d,
|
|
3668
3674
|
isFavoriteVisible: m,
|
|
3669
3675
|
columnVisibility: g,
|
|
3670
|
-
onItemClick: B ??
|
|
3676
|
+
onItemClick: B ?? Wt,
|
|
3671
3677
|
stickyHeaderTop: 0,
|
|
3672
3678
|
selectedItemId: je,
|
|
3673
3679
|
credentialsBadgeLoggedOutLabel: V?.credentialsBadgeLoggedOutLabel,
|
|
@@ -3677,13 +3683,13 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3677
3683
|
})
|
|
3678
3684
|
]
|
|
3679
3685
|
}),
|
|
3680
|
-
|
|
3681
|
-
item:
|
|
3686
|
+
Xt != null && /* @__PURE__ */ W(yr, {
|
|
3687
|
+
item: Xt,
|
|
3682
3688
|
isOpen: Pt,
|
|
3683
|
-
isStarred:
|
|
3684
|
-
isDetailsLoading:
|
|
3689
|
+
isStarred: nn,
|
|
3690
|
+
isDetailsLoading: Rt,
|
|
3685
3691
|
isReadonly: Oe,
|
|
3686
|
-
onClose:
|
|
3692
|
+
onClose: Yt,
|
|
3687
3693
|
onToggleFavorite: d,
|
|
3688
3694
|
isFavoriteVisible: m,
|
|
3689
3695
|
onUseInChat: v,
|
|
@@ -3723,8 +3729,8 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3723
3729
|
isRevokeShareVisible: be,
|
|
3724
3730
|
onUnpublish: xe,
|
|
3725
3731
|
isUnpublishVisible: z,
|
|
3726
|
-
onLogin:
|
|
3727
|
-
onLogout:
|
|
3732
|
+
onLogin: qt,
|
|
3733
|
+
onLogout: Jt,
|
|
3728
3734
|
texts: V,
|
|
3729
3735
|
limitsFooterNote: Ie,
|
|
3730
3736
|
styles: { colors: { featuredChipStyle: Fe?.colors?.featuredChipStyle } }
|
|
@@ -3733,4 +3739,4 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
3733
3739
|
});
|
|
3734
3740
|
};
|
|
3735
3741
|
//#endregion
|
|
3736
|
-
export { kt as AppIdentity,
|
|
3742
|
+
export { kt as AppIdentity, yt as CATALOG_CLASS, Vt as Card, Ut as CardGrid, Ht as CardRowRenderer, Jr as Catalog, Z as CatalogContentNodeType, _t as CatalogContentPreviewType, K as CatalogDetailsTab, gt as CatalogLimitStatus, u as CatalogSortKey, X as CatalogViewMode, ht as CodeLanguage, Bn 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, yr as DetailsPanel, xr as FavoriteCard, wr as Favorites, Br as Filter, an as InfoCard, Ir as ListView, Ur as Toolbar, n as ToolsetAuthenticationType, It 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, Dt as useScrollVirtualizer };
|