@epam/ai-dial-catalog 1.4.0-dev.68 → 1.4.0-dev.72
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/Catalog/Catalog.d.ts.map +1 -1
- package/components/Details/DetailsPanel.d.ts.map +1 -1
- package/components/Details/DetailsPublishContent.d.ts +1 -1
- package/components/Details/DetailsPublishContent.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.js +1086 -1068
- package/models/catalog-props.d.ts +8 -1
- package/models/catalog-props.d.ts.map +1 -1
- package/models/item-details-props.d.ts +8 -1
- package/models/item-details-props.d.ts.map +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as e, C as t, D as n, E as r, M as i, N as a, O as o, P as s, S as c, T as l, _ as u, a as d, b as f, c as p, d as m, f as h, g, h as _, i as v, j as y, k as b, l as x, m as S, n as C, o as w, p as T, r as E, s as D, t as O, u as k, v as A, w as j, x as M, y as N } from "./mapping-Bsy4fyg5.js";
|
|
2
|
-
import { CatalogEntityType as P, ConfirmationFooter as F, ConfirmationView as
|
|
3
|
-
import { Fragment as
|
|
4
|
-
import { Badge as
|
|
2
|
+
import { CatalogEntityType as P, ConfirmationFooter as F, ConfirmationView as ee, DESKTOP_BREAKPOINT_PX as I, DeploymentIcon as L, EntityHeader as te, EntityTypeLabel as ne, FeaturedChip as re, ItemHeader as ie, MarkdownCodeBlock as ae, MarkdownRenderer as R, MarkdownWithPlaceholders as oe, PanelEmptyState as se, SELECT_LIST_MAX_HEIGHT_CLASS_NAME as ce, SELECT_LIST_MAX_HEIGHT_PX as le, buildCssVars as z, mergeClasses as B, useIsMobile as ue, useIsPhone as de, useIsVerticallyClamped as fe } from "@epam/ai-dial-chat-shared";
|
|
3
|
+
import { Fragment as pe, memo as me, startTransition as he, useCallback as V, useEffect as H, useId as ge, useImperativeHandle as _e, useLayoutEffect as ve, useMemo as U, useRef as W, useState as G } from "react";
|
|
4
|
+
import { Badge as K, BottomSheet as ye, Breadcrumbs as be, Button as xe, ButtonAppearance as Se, ButtonDropdown as Ce, ButtonVariant as we, CaptionText as Te, CardShell as Ee, Checkbox as De, ConfirmationPopupVariant as Oe, DIAL_ICON_SIZE as q, DIAL_KIT_ICON_STROKE as J, DangerButton as ke, Dropdown as Ae, DropdownItemType as je, DropdownOverlayRole as Me, ElementSize as Y, EllipsisTooltip as Ne, ErrorText as Pe, FabButton as Fe, FileIcon as Ie, FolderPath as Le, GhostButton as Re, GhostIconButton as ze, Highlight as Be, InlineSelect as Ve, InlineSelectTrigger as He, Input as Ue, InteractiveTooltip as We, LinkButton as Ge, LiveRegion as Ke, LiveRegionElement as qe, LiveRegionPoliteness as Je, MenuItem as Ye, MenuItemMark as Xe, NeutralButton as Ze, NeutralIconButton as Qe, NoDataContent as $e, Popup as et, PopupSize as tt, PrimaryButton as nt, ProgressBar as rt, RadioGroup as it, Search as at, SegmentedControl as ot, SideDrawer as st, Skeleton as ct, SkeletonAvatarShape as lt, Spinner as ut, Tabs as dt, ToggleIconButton as ft, Tooltip as pt, mergeClasses as mt } from "@epam/ai-dial-ui-kit";
|
|
5
5
|
import { Fragment as X, jsx as Z, jsxs as Q } from "react/jsx-runtime";
|
|
6
6
|
import { IconAdjustmentsHorizontal as ht, IconAlertCircleFilled as gt, IconAlertTriangleFilled as _t, IconArrowNarrowUp as vt, IconArrowRight as yt, IconBuildingCommunity as bt, IconCheck as xt, IconChevronDown as St, IconChevronLeft as Ct, IconChevronRight as wt, IconCircleCheckFilled as Tt, IconDots as Et, IconDownload as Dt, IconFilter as Ot, IconFolder as kt, IconKey as At, IconLayoutGrid as jt, IconLayoutList as Mt, IconLogin as Nt, IconLogout as Pt, IconPencil as Ft, IconPlayerPlayFilled as It, IconPlus as Lt, IconShare as Rt, IconStar as zt, IconStarFilled as Bt, IconTrash as Vt, IconTrashX as Ht, IconUser as Ut, IconUserOff as Wt, IconWorldOff as Gt, IconWorldShare as Kt } from "@tabler/icons-react";
|
|
7
7
|
import { PublishFooter as qt, PublishPanel as Jt, PublishPanelView as Yt, derivePublishState as Xt, usePublishFlow as Zt, usePublishFolderView as Qt } from "@epam/ai-dial-publish-panel";
|
|
@@ -28,8 +28,8 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
28
28
|
}({}), fn = /* @__PURE__ */ function(e) {
|
|
29
29
|
return e.Markdown = "markdown", e.Text = "text", e.Image = "image", e.Unsupported = "unsupported", e;
|
|
30
30
|
}({}), pn = () => {
|
|
31
|
-
let [e, t] =
|
|
32
|
-
return
|
|
31
|
+
let [e, t] = G(() => window.innerWidth);
|
|
32
|
+
return H(() => {
|
|
33
33
|
let e = () => t(window.innerWidth);
|
|
34
34
|
return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
35
35
|
}, []), e >= 1024 ? 4 : e >= 640 ? 2 : 1;
|
|
@@ -40,27 +40,27 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
40
40
|
favoriteCard: "dial-catalog-favorite-card",
|
|
41
41
|
listView: "dial-catalog-list-view"
|
|
42
42
|
}, hn = "(prefers-reduced-motion: reduce)", gn = () => typeof window.matchMedia == "function" && window.matchMedia(hn).matches ? "auto" : "smooth", _n = ({ scrollBody: e, searchInputRef: t, listViewRef: n, isListView: r }) => {
|
|
43
|
-
let [i, a] =
|
|
43
|
+
let [i, a] = G(!1), o = W(0), s = W(r), c = W(null), l = V(() => {
|
|
44
44
|
if (!e) return;
|
|
45
45
|
let t = s.current ? o.current : 0;
|
|
46
46
|
a(e.scrollTop + t >= e.clientHeight && e.clientHeight > 0);
|
|
47
|
-
}, [e]), u =
|
|
47
|
+
}, [e]), u = V(() => {
|
|
48
48
|
c.current ??= requestAnimationFrame(() => {
|
|
49
49
|
c.current = null, l();
|
|
50
50
|
});
|
|
51
51
|
}, [l]);
|
|
52
|
-
return
|
|
52
|
+
return H(() => {
|
|
53
53
|
r || (o.current = 0), s.current = r, l();
|
|
54
|
-
}, [r, l]),
|
|
54
|
+
}, [r, l]), H(() => {
|
|
55
55
|
if (e) return e.addEventListener("scroll", u, { passive: !0 }), () => {
|
|
56
56
|
e.removeEventListener("scroll", u), c.current != null && (cancelAnimationFrame(c.current), c.current = null);
|
|
57
57
|
};
|
|
58
58
|
}, [e, u]), {
|
|
59
59
|
isVisible: i,
|
|
60
|
-
handleRowsScroll:
|
|
60
|
+
handleRowsScroll: V((e) => {
|
|
61
61
|
s.current && (o.current = e, u());
|
|
62
62
|
}, [u]),
|
|
63
|
-
scrollToTop:
|
|
63
|
+
scrollToTop: V(() => {
|
|
64
64
|
e?.scrollTo({
|
|
65
65
|
top: 0,
|
|
66
66
|
behavior: gn()
|
|
@@ -71,7 +71,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
71
71
|
t
|
|
72
72
|
])
|
|
73
73
|
};
|
|
74
|
-
}, vn = (e) => e.type ===
|
|
74
|
+
}, vn = (e) => e.type === je.Divider || e.type === je.PlainText, yn = (e, t) => e.map((e) => vn(e) ? e : {
|
|
75
75
|
...e,
|
|
76
76
|
label: typeof e.label == "string" ? /* @__PURE__ */ Z(Be, {
|
|
77
77
|
text: e.label,
|
|
@@ -101,7 +101,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
101
101
|
mathScrollRegionAriaLabel: e?.mathScrollRegionAriaLabel
|
|
102
102
|
}), Sn = (e) => {
|
|
103
103
|
let { colors: t } = e ?? {};
|
|
104
|
-
return
|
|
104
|
+
return z({
|
|
105
105
|
"--cat-bg": t?.background,
|
|
106
106
|
"--cat-heading-title-text": t?.headingTitleText
|
|
107
107
|
});
|
|
@@ -113,15 +113,15 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
113
113
|
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
|
|
114
114
|
r.top < n.top ? e.scrollTop -= n.top - r.top : r.bottom > n.bottom && (e.scrollTop += r.bottom - n.bottom);
|
|
115
115
|
}, Dn = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
|
|
116
|
-
let r =
|
|
117
|
-
let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >=
|
|
116
|
+
let r = W(null), [i, a] = G(() => {
|
|
117
|
+
let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= I ? 60 : 0)), i = wn((n ? r : Math.min(Cn, r)) - 64), a = Math.ceil(e / i);
|
|
118
118
|
return {
|
|
119
119
|
startRow: 0,
|
|
120
120
|
endRow: Math.min(a, 12),
|
|
121
121
|
columnCount: i
|
|
122
122
|
};
|
|
123
123
|
});
|
|
124
|
-
|
|
124
|
+
H(() => {
|
|
125
125
|
let n = r.current;
|
|
126
126
|
if (!n) return;
|
|
127
127
|
let i = Tn(n.parentElement), o = () => {
|
|
@@ -160,14 +160,14 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
160
160
|
footer: "_footer_tucta_34",
|
|
161
161
|
cardButton: "_cardButton_tucta_44"
|
|
162
162
|
}, kn = ({ name: e, query: t = "", className: n }) => {
|
|
163
|
-
let { ref: r, isClamped: i } =
|
|
163
|
+
let { ref: r, isClamped: i } = fe(e);
|
|
164
164
|
return /* @__PURE__ */ Z(pt, {
|
|
165
165
|
asChild: !0,
|
|
166
166
|
tooltip: e,
|
|
167
167
|
hideTooltip: !i,
|
|
168
168
|
children: /* @__PURE__ */ Z("span", {
|
|
169
169
|
ref: r,
|
|
170
|
-
className:
|
|
170
|
+
className: B("line-clamp-2 min-w-0 wrap-break-word", n),
|
|
171
171
|
children: /* @__PURE__ */ Z(Be, {
|
|
172
172
|
text: e,
|
|
173
173
|
query: t
|
|
@@ -179,23 +179,23 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
179
179
|
lastUsed: "_lastUsed_188yo_5",
|
|
180
180
|
version: "_version_188yo_9"
|
|
181
181
|
}, jn = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, styles: c, lastUsedTrailing: l, iconClassName: u, iconOverlay: d }) => {
|
|
182
|
-
let f = c?.colors, p = c?.typography ?? {}, m = a === sn.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = !m && !!r, v = m && (!!r || i != null || l != null), y =
|
|
182
|
+
let f = c?.colors, p = c?.typography ?? {}, m = a === sn.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = !m && !!r, v = m && (!!r || i != null || l != null), y = B(p?.versionClassName ?? "dial-tiny-text", An.version), b = z({
|
|
183
183
|
"--ai-name-text": f?.nameColor,
|
|
184
184
|
"--ai-last-used-text": f?.lastUsedColor,
|
|
185
185
|
"--ai-version-text": f?.versionColor
|
|
186
186
|
});
|
|
187
187
|
return /* @__PURE__ */ Q("div", {
|
|
188
|
-
className:
|
|
188
|
+
className: B("flex min-w-0 items-start gap-3", s),
|
|
189
189
|
style: b,
|
|
190
190
|
children: [/* @__PURE__ */ Q("div", {
|
|
191
|
-
className:
|
|
191
|
+
className: B("relative shrink-0", h, u),
|
|
192
192
|
children: [/* @__PURE__ */ Z("div", {
|
|
193
193
|
className: "size-full overflow-hidden rounded-[inherit]",
|
|
194
194
|
children: /* @__PURE__ */ Z(L, {
|
|
195
195
|
src: e ?? void 0,
|
|
196
196
|
size: g,
|
|
197
197
|
initialsName: n,
|
|
198
|
-
styles: { badgeClassName:
|
|
198
|
+
styles: { badgeClassName: B(m ? "rounded-[14px]" : "rounded-[12px]") }
|
|
199
199
|
})
|
|
200
200
|
}), d]
|
|
201
201
|
}), /* @__PURE__ */ Q("div", {
|
|
@@ -210,20 +210,20 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
210
210
|
children: [/* @__PURE__ */ Z(kn, {
|
|
211
211
|
name: n,
|
|
212
212
|
query: o,
|
|
213
|
-
className:
|
|
213
|
+
className: B(_ ? "max-w-max flex-[66_1_0%]" : "flex-1", p?.nameClassName ?? "dial-body-semi-text", An.name)
|
|
214
214
|
}), _ && /* @__PURE__ */ Z(Ne, {
|
|
215
215
|
text: r,
|
|
216
|
-
className:
|
|
216
|
+
className: B("max-w-max min-w-0 flex-[34_1_0%] tabular-nums", y)
|
|
217
217
|
})]
|
|
218
218
|
}), v && /* @__PURE__ */ Q("div", {
|
|
219
219
|
className: "flex min-w-0 items-center gap-2",
|
|
220
220
|
children: [
|
|
221
221
|
r && /* @__PURE__ */ Z(Ne, {
|
|
222
222
|
text: r,
|
|
223
|
-
className:
|
|
223
|
+
className: B("min-w-0 tabular-nums", y)
|
|
224
224
|
}),
|
|
225
225
|
i != null && /* @__PURE__ */ Z("span", {
|
|
226
|
-
className:
|
|
226
|
+
className: B("shrink-0 tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", An.lastUsed),
|
|
227
227
|
children: i
|
|
228
228
|
}),
|
|
229
229
|
l != null && /* @__PURE__ */ Z("div", {
|
|
@@ -237,7 +237,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
237
237
|
});
|
|
238
238
|
}, Mn = { icon: "_icon_a0p4u_1" }, Nn = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => {
|
|
239
239
|
if (e == null || C(e) == null) return null;
|
|
240
|
-
let i =
|
|
240
|
+
let i = z({
|
|
241
241
|
"--cat-cred-badge-halo": r?.halo,
|
|
242
242
|
"--cat-cred-badge-icon": r?.icon
|
|
243
243
|
});
|
|
@@ -248,9 +248,9 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
248
248
|
role: "img",
|
|
249
249
|
"aria-label": t,
|
|
250
250
|
style: i,
|
|
251
|
-
className:
|
|
251
|
+
className: B("absolute -inset-e-1 -bottom-1 shrink-0", n),
|
|
252
252
|
children: /* @__PURE__ */ Z(_t, {
|
|
253
|
-
size:
|
|
253
|
+
size: q.SM,
|
|
254
254
|
className: Mn.icon,
|
|
255
255
|
"aria-hidden": !0
|
|
256
256
|
})
|
|
@@ -261,36 +261,36 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
261
261
|
starPop: "_starPop_po6zj_1"
|
|
262
262
|
}, Fn = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ Z(ft, {
|
|
263
263
|
size: n,
|
|
264
|
-
style:
|
|
264
|
+
style: z({ "--cat-star-filled": a }),
|
|
265
265
|
className: i,
|
|
266
266
|
isSelected: e,
|
|
267
267
|
icon: /* @__PURE__ */ Z(zt, {
|
|
268
|
-
size:
|
|
269
|
-
stroke:
|
|
268
|
+
size: q.SM,
|
|
269
|
+
stroke: J,
|
|
270
270
|
"aria-hidden": !0
|
|
271
271
|
}),
|
|
272
272
|
selectedIcon: /* @__PURE__ */ Z(Bt, {
|
|
273
|
-
size:
|
|
273
|
+
size: q.SM,
|
|
274
274
|
className: Pn.starFilledIcon,
|
|
275
275
|
"aria-hidden": !0
|
|
276
276
|
}),
|
|
277
277
|
"aria-label": r,
|
|
278
278
|
onClick: t
|
|
279
|
-
}), In = { tag: "_tag_iqin5_3" }, Ln = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ Z(
|
|
279
|
+
}), In = { tag: "_tag_iqin5_3" }, Ln = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ Z(K, {
|
|
280
280
|
label: e,
|
|
281
281
|
textClassName: n,
|
|
282
|
-
style:
|
|
282
|
+
style: z({
|
|
283
283
|
"--cat-card-tag-bg": r?.background,
|
|
284
284
|
"--cat-card-tag-text": r?.text,
|
|
285
285
|
"--cat-card-tag-border": r?.border
|
|
286
286
|
}),
|
|
287
|
-
className:
|
|
287
|
+
className: B(In.tag, t)
|
|
288
288
|
}), Rn = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ Z(Ln, {
|
|
289
289
|
label: e,
|
|
290
290
|
badgeClassName: t,
|
|
291
291
|
colors: n
|
|
292
292
|
}), zn = 8, Bn = ({ topics: e, overflowAriaLabel: t, className: n }) => {
|
|
293
|
-
let r =
|
|
293
|
+
let r = W(null), i = W([]), a = W([]), o = W(null), s = W(Infinity), [c, l] = G(e.length), u = e.join("\0"), d = V(() => {
|
|
294
294
|
let t = r.current;
|
|
295
295
|
if (!t || e.length === 0) return;
|
|
296
296
|
let n = t.clientWidth;
|
|
@@ -306,14 +306,14 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
306
306
|
}
|
|
307
307
|
l(Math.min(f, s.current));
|
|
308
308
|
}, [e.length]);
|
|
309
|
-
if (
|
|
309
|
+
if (ve(() => {
|
|
310
310
|
a.current = [], s.current = Infinity, l(e.length);
|
|
311
|
-
}, [u]),
|
|
311
|
+
}, [u]), ve(() => {
|
|
312
312
|
d();
|
|
313
|
-
}),
|
|
313
|
+
}), ve(() => {
|
|
314
314
|
let e = r.current;
|
|
315
315
|
e && c !== 0 && (e.scrollWidth <= e.clientWidth || (s.current = c - 1, l(s.current)));
|
|
316
|
-
}, [c]),
|
|
316
|
+
}, [c]), H(() => {
|
|
317
317
|
let e = r.current;
|
|
318
318
|
if (!e) return;
|
|
319
319
|
let t = new ResizeObserver(() => {
|
|
@@ -322,12 +322,12 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
322
322
|
return t.observe(e), () => t.disconnect();
|
|
323
323
|
}, [d]), e.length === 0) return /* @__PURE__ */ Z("div", {
|
|
324
324
|
ref: r,
|
|
325
|
-
className:
|
|
325
|
+
className: B("relative flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n)
|
|
326
326
|
});
|
|
327
327
|
let f = e.length - c;
|
|
328
328
|
return /* @__PURE__ */ Q("div", {
|
|
329
329
|
ref: r,
|
|
330
|
-
className:
|
|
330
|
+
className: B("flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n),
|
|
331
331
|
children: [
|
|
332
332
|
e.slice(0, c).map((e, t) => /* @__PURE__ */ Z("div", {
|
|
333
333
|
ref: (e) => {
|
|
@@ -351,11 +351,11 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
351
351
|
]
|
|
352
352
|
});
|
|
353
353
|
}, Vn = { img: () => null }, Hn = (e) => e.target instanceof Element && e.target.closest("a") !== null, Un = (e) => !(e.target instanceof Node) || !e.currentTarget.contains(e.target), Wn = ({ 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, noFolderLabel: p = "No folder", isReadonly: m = !1, markdownLabels: h, activeTab: g }) => {
|
|
354
|
-
let [_, v] =
|
|
355
|
-
|
|
354
|
+
let [_, v] = G(r), y = T(e, g);
|
|
355
|
+
H(() => {
|
|
356
356
|
v(r);
|
|
357
357
|
}, [e.id, r]);
|
|
358
|
-
let { ref: b, isClamped: x } =
|
|
358
|
+
let { ref: b, isClamped: x } = fe(e.description), S = d?.typography?.descriptionClassName ?? "dial-small-paragraph-text", C = d?.typography?.featuredChipClassName, w = d?.typography?.folderLabelClassName ?? "dial-tiny-text", E = d?.typography?.folderLeafClassName ?? "dial-tiny-semi-text", D = d?.typography?.descriptionTooltipClassName ?? "dial-small-text", O = d?.typography?.descriptionTooltipStrongClassName ?? "dial-small-semi-text", k = U(() => ({
|
|
359
359
|
p: D,
|
|
360
360
|
ul: D,
|
|
361
361
|
ol: D,
|
|
@@ -366,7 +366,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
366
366
|
h5: D,
|
|
367
367
|
h6: D,
|
|
368
368
|
strong: O
|
|
369
|
-
}), [D, O]), A =
|
|
369
|
+
}), [D, O]), A = z({
|
|
370
370
|
"--cg-description-text": d?.colors?.textSecondary,
|
|
371
371
|
"--cg-selected-border": d?.colors?.selectedBorder,
|
|
372
372
|
"--cg-selected-bg": d?.colors?.selectedBackground,
|
|
@@ -375,7 +375,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
375
375
|
"--cg-focus-outline": d?.colors?.focusOutline
|
|
376
376
|
}), j = !m && e.isFeatured === !0, M = !m && a?.(e) !== !1, N = !m || e.folder.length > 0, P = n ? (t) => {
|
|
377
377
|
!Hn(t) && !Un(t) && n(e);
|
|
378
|
-
} : void 0, F =
|
|
378
|
+
} : void 0, F = V((t) => {
|
|
379
379
|
t.stopPropagation();
|
|
380
380
|
let n = !_;
|
|
381
381
|
v(n), i?.(e.id, n);
|
|
@@ -384,15 +384,15 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
384
384
|
i,
|
|
385
385
|
e.id
|
|
386
386
|
]);
|
|
387
|
-
return /* @__PURE__ */ Q(
|
|
387
|
+
return /* @__PURE__ */ Q(Ee, {
|
|
388
388
|
onClick: P,
|
|
389
389
|
"aria-label": e.name,
|
|
390
390
|
style: A,
|
|
391
|
-
className:
|
|
391
|
+
className: B("box-border cursor-pointer gap-3 p-3", On.card, j ? On.featuredCard : void 0, l ? On.selectedCard : void 0, u, mn.card),
|
|
392
392
|
children: [
|
|
393
393
|
n && /* @__PURE__ */ Z("button", {
|
|
394
394
|
type: "button",
|
|
395
|
-
className:
|
|
395
|
+
className: B("sr-only", On.cardButton),
|
|
396
396
|
children: e.name
|
|
397
397
|
}),
|
|
398
398
|
j && /* @__PURE__ */ Z("div", {
|
|
@@ -405,10 +405,10 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
405
405
|
})
|
|
406
406
|
}),
|
|
407
407
|
l && /* @__PURE__ */ Z(xt, {
|
|
408
|
-
size:
|
|
409
|
-
className:
|
|
408
|
+
size: q.SM,
|
|
409
|
+
className: B("absolute inset-e-3 top-3 shrink-0", On.checkIcon),
|
|
410
410
|
"aria-hidden": !0,
|
|
411
|
-
stroke:
|
|
411
|
+
stroke: J
|
|
412
412
|
}),
|
|
413
413
|
/* @__PURE__ */ Z(jn, {
|
|
414
414
|
icon: e.iconUrl,
|
|
@@ -435,7 +435,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
435
435
|
}),
|
|
436
436
|
children: /* @__PURE__ */ Z("div", {
|
|
437
437
|
ref: b,
|
|
438
|
-
className:
|
|
438
|
+
className: B(e.topics.length > 0 ? "line-clamp-2 min-h-[2lh]" : "line-clamp-3 min-h-[3lh]", "wrap-break-word", On.description),
|
|
439
439
|
children: e.description && /* @__PURE__ */ Z(R, {
|
|
440
440
|
content: e.description,
|
|
441
441
|
classNames: {
|
|
@@ -459,7 +459,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
459
459
|
children: /* @__PURE__ */ Z(Bn, { topics: e.topics })
|
|
460
460
|
}),
|
|
461
461
|
N && /* @__PURE__ */ Z("div", {
|
|
462
|
-
className:
|
|
462
|
+
className: B("pt-3", !m && B("border-t", On.footer)),
|
|
463
463
|
children: /* @__PURE__ */ Q("div", {
|
|
464
464
|
className: "flex items-center gap-2",
|
|
465
465
|
children: [/* @__PURE__ */ Z("div", {
|
|
@@ -469,21 +469,21 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
469
469
|
labelClassName: w,
|
|
470
470
|
leafClassName: E
|
|
471
471
|
}) : /* @__PURE__ */ Z("span", {
|
|
472
|
-
className:
|
|
472
|
+
className: B(w, On.description),
|
|
473
473
|
children: p
|
|
474
474
|
})
|
|
475
475
|
}), M && /* @__PURE__ */ Z(Fn, {
|
|
476
476
|
isStarred: _,
|
|
477
|
-
size:
|
|
477
|
+
size: Y.Small,
|
|
478
478
|
onClick: F,
|
|
479
479
|
ariaLabel: _ ? c : s,
|
|
480
|
-
className:
|
|
480
|
+
className: B(!_ && On.emptyStarHidden)
|
|
481
481
|
})]
|
|
482
482
|
})
|
|
483
483
|
})
|
|
484
484
|
]
|
|
485
485
|
});
|
|
486
|
-
}, Gn =
|
|
486
|
+
}, Gn = me(({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, isFavoriteVisible: a, onItemClick: o, featuredLabel: s, addToFavoritesAriaLabel: c, removeFromFavoritesAriaLabel: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, noFolderLabel: f, isReadonly: p, featuredChipStyle: m, markdownLabels: h, activeTab: g }) => {
|
|
487
487
|
let _ = e * n, v = t.slice(_, _ + n), y = {
|
|
488
488
|
top: e * 268,
|
|
489
489
|
height: 268
|
|
@@ -517,8 +517,8 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
517
517
|
}, n?.id ?? `spacer-${t}`);
|
|
518
518
|
})
|
|
519
519
|
});
|
|
520
|
-
}), Kn =
|
|
521
|
-
let h = a?.noResultsTitle ?? "No results", g = a?.featuredLabel ?? "Featured", _ = a?.addToFavoritesAriaLabel ?? "Add to favorites", v = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", y = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", b = a?.noFolderLabel ?? "No folder", { containerRef: x, startRow: S, endRow: C, columnCount: w, totalHeight: T } = Dn(e.length, { isFullWidth: d }), E =
|
|
520
|
+
}), Kn = me(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = On.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1, featuredChipStyle: f, markdownLabels: p, activeTab: m }) => {
|
|
521
|
+
let h = a?.noResultsTitle ?? "No results", g = a?.featuredLabel ?? "Featured", _ = a?.addToFavoritesAriaLabel ?? "Add to favorites", v = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", y = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", b = a?.noFolderLabel ?? "No folder", { containerRef: x, startRow: S, endRow: C, columnCount: w, totalHeight: T } = Dn(e.length, { isFullWidth: d }), E = U(() => ({
|
|
522
522
|
items: e,
|
|
523
523
|
columnCount: w,
|
|
524
524
|
query: t,
|
|
@@ -557,10 +557,10 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
557
557
|
className: "grid gap-5 p-5",
|
|
558
558
|
style: {
|
|
559
559
|
gridTemplateColumns: `repeat(${w}, minmax(0, 1fr))`,
|
|
560
|
-
...
|
|
560
|
+
...z({ "--cg-skeleton-card-bg": l })
|
|
561
561
|
},
|
|
562
562
|
children: Array.from({ length: w * 3 }, (e, t) => /* @__PURE__ */ Z("div", {
|
|
563
|
-
className:
|
|
563
|
+
className: B("rounded-md border p-3", On.skeletonCard),
|
|
564
564
|
style: { height: 248 },
|
|
565
565
|
children: /* @__PURE__ */ Z(ct, {
|
|
566
566
|
avatar: {
|
|
@@ -575,7 +575,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
575
575
|
}, t))
|
|
576
576
|
}) : e.length === 0 ? /* @__PURE__ */ Z("div", {
|
|
577
577
|
className: "flex size-full flex-col items-center justify-center",
|
|
578
|
-
children: /* @__PURE__ */ Z(
|
|
578
|
+
children: /* @__PURE__ */ Z(se, {
|
|
579
579
|
label: h,
|
|
580
580
|
description: a?.noResultsDescription
|
|
581
581
|
})
|
|
@@ -607,7 +607,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
607
607
|
"Everyone you shared it with loses access",
|
|
608
608
|
"Existing share links stop working",
|
|
609
609
|
"You keep full access — nothing is deleted"
|
|
610
|
-
], nr = (e) => e === s.ApiKey ? "Toolset API keys" : "Toolset credentials", rr = (e) => e === i.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", ir = /* @__PURE__ */ new Set([$.Delete, $.Unshare]), ar = (e) =>
|
|
610
|
+
], nr = (e) => e === s.ApiKey ? "Toolset API keys" : "Toolset credentials", rr = (e) => e === i.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", ir = /* @__PURE__ */ new Set([$.Delete, $.Unshare]), ar = (e) => z({
|
|
611
611
|
"--cat-details-backdrop": e?.backdrop,
|
|
612
612
|
"--cat-details-bg": e?.background,
|
|
613
613
|
"--cat-details-border": e?.border,
|
|
@@ -657,13 +657,13 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
657
657
|
className: "relative inline-flex shrink-0",
|
|
658
658
|
children: [
|
|
659
659
|
/* @__PURE__ */ Z("span", {
|
|
660
|
-
className:
|
|
660
|
+
className: B("flex size-8 items-center justify-center rounded-lg", cr[n]),
|
|
661
661
|
children: e
|
|
662
662
|
}),
|
|
663
663
|
t && /* @__PURE__ */ Z(Tt, {
|
|
664
|
-
size:
|
|
664
|
+
size: q.MD,
|
|
665
665
|
"aria-hidden": !0,
|
|
666
|
-
className:
|
|
666
|
+
className: B("absolute -inset-e-2 -top-2", or.activeIcon)
|
|
667
667
|
}),
|
|
668
668
|
r != null && /* @__PURE__ */ Z(Ke, {
|
|
669
669
|
visuallyHidden: !0,
|
|
@@ -677,19 +677,19 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
677
677
|
title: "_title_tqnz7_10",
|
|
678
678
|
description: "_description_tqnz7_14"
|
|
679
679
|
}, dr = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ Q("div", {
|
|
680
|
-
className:
|
|
680
|
+
className: B("flex items-center gap-3 rounded-xl p-3", ur.card),
|
|
681
681
|
children: [/* @__PURE__ */ Z("span", {
|
|
682
|
-
className:
|
|
682
|
+
className: B("shrink-0", ur.icon, n != null && "mt-0.5"),
|
|
683
683
|
children: e
|
|
684
684
|
}), /* @__PURE__ */ Q("div", {
|
|
685
685
|
className: "flex min-w-0 flex-1 items-center justify-between gap-2",
|
|
686
686
|
children: [/* @__PURE__ */ Q("div", {
|
|
687
687
|
className: "flex min-w-0 flex-col gap-1",
|
|
688
688
|
children: [/* @__PURE__ */ Z("span", {
|
|
689
|
-
className:
|
|
689
|
+
className: B(i, ur.title),
|
|
690
690
|
children: t
|
|
691
691
|
}), n != null && /* @__PURE__ */ Z("span", {
|
|
692
|
-
className:
|
|
692
|
+
className: B(a, ur.description),
|
|
693
693
|
children: n
|
|
694
694
|
})]
|
|
695
695
|
}), r != null && /* @__PURE__ */ Z("div", {
|
|
@@ -701,16 +701,16 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
701
701
|
let r = /* @__PURE__ */ Z(bt, {
|
|
702
702
|
size: gr,
|
|
703
703
|
"aria-hidden": !0,
|
|
704
|
-
stroke:
|
|
704
|
+
stroke: J
|
|
705
705
|
});
|
|
706
706
|
if (e === y.PersonalCredentialsActive) {
|
|
707
707
|
let e = (n?.personalCredentialsActiveBannerTitle ?? hr)(t);
|
|
708
708
|
return /* @__PURE__ */ Z(dr, {
|
|
709
709
|
icon: /* @__PURE__ */ Z(lr, {
|
|
710
710
|
icon: /* @__PURE__ */ Z(Ut, {
|
|
711
|
-
size:
|
|
711
|
+
size: q.SM,
|
|
712
712
|
"aria-hidden": !0,
|
|
713
|
-
stroke:
|
|
713
|
+
stroke: J
|
|
714
714
|
}),
|
|
715
715
|
isActive: !0,
|
|
716
716
|
surface: sr.Raised
|
|
@@ -723,9 +723,9 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
723
723
|
return /* @__PURE__ */ Z(dr, {
|
|
724
724
|
icon: /* @__PURE__ */ Z(lr, {
|
|
725
725
|
icon: /* @__PURE__ */ Z(bt, {
|
|
726
|
-
size:
|
|
726
|
+
size: q.SM,
|
|
727
727
|
"aria-hidden": !0,
|
|
728
|
-
stroke:
|
|
728
|
+
stroke: J
|
|
729
729
|
}),
|
|
730
730
|
isActive: !0,
|
|
731
731
|
surface: sr.Raised
|
|
@@ -746,7 +746,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
746
746
|
errorText: "_errorText_qltis_13",
|
|
747
747
|
deleteAction: "_deleteAction_qltis_18"
|
|
748
748
|
}, yr = ({ label: e, description: t, icon: n, status: r, isActive: i, authenticationType: a, apiKeyAddedWhen: o, apiKeyHeader: c, onLogin: l, onRequestLogout: u, onRequestDeleteApiKey: d, texts: f, labelClassName: p, descriptionClassName: m, errorClassName: h, keyCardTitleClassName: g, keyCardDescriptionClassName: _, deleteActionClassName: v, disabled: y = !1, isPending: x = !1, renderLoginOptions: S, children: C }) => {
|
|
749
|
-
let w =
|
|
749
|
+
let w = ge(), [T, E] = G(), [D, O] = G(""), [k, A] = G(!1), [j, M] = G(!1), N = r === b.SignedIn, P = V((e) => {
|
|
750
750
|
O(e ?? ""), A(!1), E(void 0);
|
|
751
751
|
}, []), F = async () => {
|
|
752
752
|
if (j || y) return;
|
|
@@ -762,7 +762,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
762
762
|
M(!1);
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
},
|
|
765
|
+
}, ee = f?.loginActionLabel ?? "Log in", I = f?.logoutActionLabel ?? "Log out", L = f?.addApiKeyActionLabel ?? "Add", te = f?.deleteActionLabel ?? "Delete", ne = f?.credentialsSignedInLabel ?? "Signed in", re = f?.credentialsSignedOutLabel ?? "Signed out", ie = f?.addingApiKeyStatusLabel ?? "Adding", ae = f?.apiKeyConfiguredMessage ?? "Key has been configured", R = `${w}-header-hint`, oe = `${w}-empty-key-error`, se = c ? (f?.apiKeyHeaderHint ?? ((e) => `Enter your API key value for "${e}" header`))(c) : void 0, ce = o == null ? void 0 : (f?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(o);
|
|
766
766
|
return /* @__PURE__ */ Q("div", {
|
|
767
767
|
role: "group",
|
|
768
768
|
"aria-label": e,
|
|
@@ -783,24 +783,24 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
783
783
|
className: p,
|
|
784
784
|
children: e
|
|
785
785
|
}), /* @__PURE__ */ Z("span", {
|
|
786
|
-
className:
|
|
786
|
+
className: B(m, vr.rowDescription),
|
|
787
787
|
children: t
|
|
788
788
|
})]
|
|
789
|
-
}), a === s.OAuth && (N ? u && /* @__PURE__ */ Z(
|
|
790
|
-
size:
|
|
791
|
-
appearance:
|
|
792
|
-
label:
|
|
789
|
+
}), a === s.OAuth && (N ? u && /* @__PURE__ */ Z(ke, {
|
|
790
|
+
size: Y.Small,
|
|
791
|
+
appearance: Se.Ghost,
|
|
792
|
+
label: I,
|
|
793
793
|
className: "min-w-28 shrink-0 justify-center whitespace-nowrap",
|
|
794
794
|
onClick: u,
|
|
795
795
|
disabled: j || y
|
|
796
796
|
}) : /* @__PURE__ */ Z(Ze, {
|
|
797
|
-
label: j ? void 0 :
|
|
798
|
-
"aria-label":
|
|
797
|
+
label: j ? void 0 : ee,
|
|
798
|
+
"aria-label": ee,
|
|
799
799
|
iconBefore: j ? /* @__PURE__ */ Z(ut, {
|
|
800
|
-
size:
|
|
801
|
-
ariaLabel:
|
|
800
|
+
size: q.SM,
|
|
801
|
+
ariaLabel: ee
|
|
802
802
|
}) : void 0,
|
|
803
|
-
size:
|
|
803
|
+
size: Y.Small,
|
|
804
804
|
disabled: j || y,
|
|
805
805
|
className: "min-w-28 shrink-0 justify-center whitespace-nowrap",
|
|
806
806
|
onClick: F
|
|
@@ -813,7 +813,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
813
813
|
className: "flex items-end gap-2",
|
|
814
814
|
children: [/* @__PURE__ */ Z(Ue, {
|
|
815
815
|
id: w,
|
|
816
|
-
"aria-describedby": [
|
|
816
|
+
"aria-describedby": [se ? R : void 0, k ? oe : void 0].filter(Boolean).join(" ") || void 0,
|
|
817
817
|
type: "password",
|
|
818
818
|
autoComplete: "off",
|
|
819
819
|
value: D,
|
|
@@ -826,7 +826,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
826
826
|
label: j ? void 0 : L,
|
|
827
827
|
"aria-label": j ? ie : void 0,
|
|
828
828
|
iconBefore: j ? /* @__PURE__ */ Z(ut, {
|
|
829
|
-
size:
|
|
829
|
+
size: q.SM,
|
|
830
830
|
ariaLabel: ie
|
|
831
831
|
}) : void 0,
|
|
832
832
|
className: "min-h-11 shrink-0 whitespace-nowrap",
|
|
@@ -834,14 +834,14 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
834
834
|
disabled: j || y
|
|
835
835
|
})]
|
|
836
836
|
}),
|
|
837
|
-
/* @__PURE__ */ Z(
|
|
837
|
+
/* @__PURE__ */ Z(Te, {
|
|
838
838
|
id: R,
|
|
839
|
-
text:
|
|
840
|
-
className:
|
|
839
|
+
text: se,
|
|
840
|
+
className: B(m, vr.rowDescription)
|
|
841
841
|
}),
|
|
842
842
|
k && /* @__PURE__ */ Z(Pe, {
|
|
843
843
|
id: oe,
|
|
844
|
-
className:
|
|
844
|
+
className: B(h, vr.errorText),
|
|
845
845
|
text: f?.apiKeyRequiredErrorMessage ?? "API key is required."
|
|
846
846
|
})
|
|
847
847
|
]
|
|
@@ -850,17 +850,17 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
850
850
|
className: "animate-fadeIn pt-1",
|
|
851
851
|
children: /* @__PURE__ */ Z(dr, {
|
|
852
852
|
icon: /* @__PURE__ */ Z(At, {
|
|
853
|
-
size:
|
|
853
|
+
size: q.SM,
|
|
854
854
|
"aria-hidden": !0,
|
|
855
|
-
stroke:
|
|
855
|
+
stroke: J
|
|
856
856
|
}),
|
|
857
857
|
title: ae,
|
|
858
|
-
description:
|
|
858
|
+
description: ce,
|
|
859
859
|
titleClassName: g,
|
|
860
860
|
descriptionClassName: _,
|
|
861
861
|
action: d && /* @__PURE__ */ Z(Ge, {
|
|
862
862
|
label: te,
|
|
863
|
-
className:
|
|
863
|
+
className: B("min-h-11", v),
|
|
864
864
|
onClick: d,
|
|
865
865
|
disabled: j || y
|
|
866
866
|
})
|
|
@@ -869,7 +869,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
869
869
|
!N && S?.(j || y),
|
|
870
870
|
/* @__PURE__ */ Z(Pe, {
|
|
871
871
|
announce: Je.Assertive,
|
|
872
|
-
className:
|
|
872
|
+
className: B(h, vr.errorText),
|
|
873
873
|
text: T ?? ""
|
|
874
874
|
}),
|
|
875
875
|
C
|
|
@@ -877,7 +877,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
877
877
|
})]
|
|
878
878
|
});
|
|
879
879
|
}, br = (e) => e === s.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.", xr = ({ item: e, onLogin: t, onRequestLogout: n, onRequestDeleteApiKey: r, texts: a, detailsStyles: o, deleteActionClassName: s }) => {
|
|
880
|
-
let c =
|
|
880
|
+
let c = B(vr.deleteAction, s), { credentialsDescriptionClassName: l = "dial-body-paragraph-text", credentialsRowLabelClassName: u = "dial-small-semi-text", credentialsRowDescriptionClassName: d = "dial-small-text", credentialsErrorClassName: f = "dial-caption-text", credentialsKeyCardTitleClassName: p = "dial-tiny-semi-text", credentialsKeyCardDescriptionClassName: m = "dial-tiny-text" } = o?.typography ?? {}, h = e.credentials;
|
|
881
881
|
if (h == null) return null;
|
|
882
882
|
let g = (a?.credentialsManagementDescription ?? br)(h.authenticationType), _ = h.userStatus === b.SignedIn, v = !_ && h.globalStatus === b.SignedIn;
|
|
883
883
|
return /* @__PURE__ */ Q("div", {
|
|
@@ -885,7 +885,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
885
885
|
children: [/* @__PURE__ */ Z("div", {
|
|
886
886
|
className: "px-6 py-4",
|
|
887
887
|
children: /* @__PURE__ */ Z("div", {
|
|
888
|
-
className:
|
|
888
|
+
className: B("rounded-xl p-3", vr.surface),
|
|
889
889
|
children: /* @__PURE__ */ Z(te, {
|
|
890
890
|
item: e,
|
|
891
891
|
iconSize: 40,
|
|
@@ -895,7 +895,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
895
895
|
}), /* @__PURE__ */ Q("div", {
|
|
896
896
|
className: "flex flex-col gap-5 px-6 py-4",
|
|
897
897
|
children: [/* @__PURE__ */ Z("span", {
|
|
898
|
-
className:
|
|
898
|
+
className: B(l, vr.description),
|
|
899
899
|
children: g
|
|
900
900
|
}), /* @__PURE__ */ Q("div", {
|
|
901
901
|
className: "flex flex-col",
|
|
@@ -903,9 +903,9 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
903
903
|
label: a?.personalCredentialsLabel ?? "Personal credentials",
|
|
904
904
|
description: a?.personalCredentialsDescription ?? "These credentials apply only to your account.",
|
|
905
905
|
icon: /* @__PURE__ */ Z(Ut, {
|
|
906
|
-
size:
|
|
906
|
+
size: q.SM,
|
|
907
907
|
"aria-hidden": !0,
|
|
908
|
-
stroke:
|
|
908
|
+
stroke: J
|
|
909
909
|
}),
|
|
910
910
|
status: h.userStatus,
|
|
911
911
|
isActive: _,
|
|
@@ -929,9 +929,9 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
929
929
|
label: a?.organizationCredentialsLabel ?? "Organization credentials",
|
|
930
930
|
description: a?.organizationCredentialsDescription ?? "Once added, these credentials will grant all users in your organization access to this toolset.",
|
|
931
931
|
icon: /* @__PURE__ */ Z(bt, {
|
|
932
|
-
size:
|
|
932
|
+
size: q.SM,
|
|
933
933
|
"aria-hidden": !0,
|
|
934
|
-
stroke:
|
|
934
|
+
stroke: J
|
|
935
935
|
}),
|
|
936
936
|
status: h.globalStatus,
|
|
937
937
|
isActive: v,
|
|
@@ -963,7 +963,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
963
963
|
content: "_content_1nv0c_20",
|
|
964
964
|
tabsScroll: "_tabsScroll_1nv0c_26",
|
|
965
965
|
publishTitle: "_publishTitle_1nv0c_33"
|
|
966
|
-
}, Cr = ({ item: e, publishFlow: t, publishDependencies: n, publishFolderView: r, isPublishCredentialsEligible: i, publishExpandedPaths: a, onPublishExpandedPathsChange: o, publishLoadingPaths: s, ruleSourceOptions: c, publishLabels: l, resolvePublishDependenciesLabels: u, resolvePublishApprovalLabels: d }) => /* @__PURE__ */ Z("div", {
|
|
966
|
+
}, Cr = ({ item: e, publishFlow: t, publishDependencies: n, publishFolderView: r, isPublishCredentialsEligible: i, publishExpandedPaths: a, onPublishExpandedPathsChange: o, publishLoadingPaths: s, ruleSourceOptions: c, publishLabels: l, resolvePublishDependenciesLabels: u, resolvePublishApprovalLabels: d, publishVersionHistory: f }) => /* @__PURE__ */ Z("div", {
|
|
967
967
|
className: "p-4 desktop:p-[22px]",
|
|
968
968
|
children: /* @__PURE__ */ Z(Jt, {
|
|
969
969
|
resource: {
|
|
@@ -1004,7 +1004,8 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1004
1004
|
...u(e)
|
|
1005
1005
|
} }
|
|
1006
1006
|
},
|
|
1007
|
-
dependencies: n
|
|
1007
|
+
dependencies: n,
|
|
1008
|
+
versionHistory: f
|
|
1008
1009
|
})
|
|
1009
1010
|
}), wr = {
|
|
1010
1011
|
sectionHeading: "_sectionHeading_jnq93_1",
|
|
@@ -1015,19 +1016,19 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1015
1016
|
valueFalse: "_valueFalse_jnq93_21",
|
|
1016
1017
|
valueText: "_valueText_jnq93_25"
|
|
1017
1018
|
}, Tr = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(Tt, {
|
|
1018
|
-
size:
|
|
1019
|
-
className:
|
|
1019
|
+
size: q.MD,
|
|
1020
|
+
className: B(r, wr.checkIcon)
|
|
1020
1021
|
}), /* @__PURE__ */ Z("span", {
|
|
1021
|
-
className:
|
|
1022
|
+
className: B(n, wr.valueTrue),
|
|
1022
1023
|
children: i
|
|
1023
1024
|
})] }) : e === !1 ? /* @__PURE__ */ Z("span", {
|
|
1024
|
-
className:
|
|
1025
|
+
className: B(t, wr.valueFalse),
|
|
1025
1026
|
children: a
|
|
1026
1027
|
}) : /* @__PURE__ */ Z("span", {
|
|
1027
|
-
className:
|
|
1028
|
+
className: B("min-w-0 wrap-break-word", t, wr.valueText),
|
|
1028
1029
|
children: e
|
|
1029
1030
|
}), Er = ({ 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 }) => {
|
|
1030
|
-
let u =
|
|
1031
|
+
let u = z({
|
|
1031
1032
|
"--tv-section-heading": l?.sectionHeading,
|
|
1032
1033
|
"--tv-row-alt-bg": l?.rowAlt,
|
|
1033
1034
|
"--tv-label": l?.label,
|
|
@@ -1040,14 +1041,14 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1040
1041
|
className: "flex flex-col",
|
|
1041
1042
|
style: u,
|
|
1042
1043
|
children: t != null && t.length > 0 && /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Z("p", {
|
|
1043
|
-
className:
|
|
1044
|
+
className: B("mt-0 mb-3", o, wr.sectionHeading),
|
|
1044
1045
|
children: e
|
|
1045
1046
|
}), /* @__PURE__ */ Z("ul", {
|
|
1046
1047
|
className: "m-0 list-none p-0",
|
|
1047
1048
|
children: t.map((e, t) => /* @__PURE__ */ Q("li", {
|
|
1048
|
-
className:
|
|
1049
|
+
className: B("flex items-center rounded px-3 py-2", t % 2 == 0 ? wr.rowAlt : void 0),
|
|
1049
1050
|
children: [/* @__PURE__ */ Z("span", {
|
|
1050
|
-
className:
|
|
1051
|
+
className: B(n, wr.label, "w-2/5 shrink-0"),
|
|
1051
1052
|
children: e.label
|
|
1052
1053
|
}), /* @__PURE__ */ Z("div", {
|
|
1053
1054
|
className: "flex w-3/5 min-w-0 items-center gap-1",
|
|
@@ -1072,17 +1073,17 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1072
1073
|
[rn.Curl]: "bash",
|
|
1073
1074
|
[rn.JavaScript]: "javascript"
|
|
1074
1075
|
}, Ar = ({ 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" }) => {
|
|
1075
|
-
let [s, c] =
|
|
1076
|
-
|
|
1076
|
+
let [s, c] = G(e[0]?.language ?? rn.Python);
|
|
1077
|
+
H(() => {
|
|
1077
1078
|
c(e[0]?.language ?? rn.Python);
|
|
1078
1079
|
}, [e]);
|
|
1079
|
-
let l =
|
|
1080
|
+
let l = U(() => e.map((e) => ({
|
|
1080
1081
|
key: e.language,
|
|
1081
1082
|
label: Or[e.language] ?? e.language,
|
|
1082
1083
|
onClick: () => c(e.language)
|
|
1083
1084
|
})), [e]), u = e.find((e) => e.language === s)?.code ?? "", d = e.length > 1;
|
|
1084
1085
|
return /* @__PURE__ */ Q("section", { children: [t != null && /* @__PURE__ */ Z("p", {
|
|
1085
|
-
className:
|
|
1086
|
+
className: B("mt-0 mb-3", o, Dr.sectionHeading),
|
|
1086
1087
|
children: t
|
|
1087
1088
|
}), /* @__PURE__ */ Z(ae, {
|
|
1088
1089
|
language: kr[s] ?? s,
|
|
@@ -1098,12 +1099,12 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1098
1099
|
items: l,
|
|
1099
1100
|
matchReferenceWidth: !1,
|
|
1100
1101
|
placement: "bottom-end",
|
|
1101
|
-
size:
|
|
1102
|
+
size: Y.Small,
|
|
1102
1103
|
selectedKey: s
|
|
1103
1104
|
}) : void 0
|
|
1104
1105
|
})] });
|
|
1105
1106
|
}, jr = ({ 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" }) => {
|
|
1106
|
-
let [h, g] =
|
|
1107
|
+
let [h, g] = G(0), _ = U(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = U(() => _.map((e, t) => ({
|
|
1107
1108
|
key: e.url,
|
|
1108
1109
|
label: e.label,
|
|
1109
1110
|
onClick: () => g(t)
|
|
@@ -1135,7 +1136,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1135
1136
|
}),
|
|
1136
1137
|
v && /* @__PURE__ */ Q("section", { children: [
|
|
1137
1138
|
/* @__PURE__ */ Z("p", {
|
|
1138
|
-
className:
|
|
1139
|
+
className: B("mt-0 mb-3", m, Dr.sectionHeading),
|
|
1139
1140
|
children: n
|
|
1140
1141
|
}),
|
|
1141
1142
|
y != null && /* @__PURE__ */ Z(ae, {
|
|
@@ -1151,7 +1152,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1151
1152
|
items: b,
|
|
1152
1153
|
matchReferenceWidth: !1,
|
|
1153
1154
|
placement: "bottom-end",
|
|
1154
|
-
size:
|
|
1155
|
+
size: Y.Small,
|
|
1155
1156
|
selectedKey: y.url
|
|
1156
1157
|
}) : void 0
|
|
1157
1158
|
}, h),
|
|
@@ -1177,7 +1178,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1177
1178
|
sectionClassName: m
|
|
1178
1179
|
}),
|
|
1179
1180
|
E && /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Z("p", {
|
|
1180
|
-
className:
|
|
1181
|
+
className: B("mt-0 mb-3", m, Dr.sectionHeading),
|
|
1181
1182
|
children: o
|
|
1182
1183
|
}), /* @__PURE__ */ Z(ae, {
|
|
1183
1184
|
language: "bash",
|
|
@@ -1189,7 +1190,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1189
1190
|
hasContentTopPadding: !1
|
|
1190
1191
|
})] }),
|
|
1191
1192
|
D && /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Z("p", {
|
|
1192
|
-
className:
|
|
1193
|
+
className: B("mt-0 mb-3", m, Dr.sectionHeading),
|
|
1193
1194
|
children: s
|
|
1194
1195
|
}), /* @__PURE__ */ Z(ae, {
|
|
1195
1196
|
language: "json",
|
|
@@ -1254,11 +1255,11 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1254
1255
|
};
|
|
1255
1256
|
return e.type === dn.File || !t.has(e.id) ? [r] : [r, ...Rr(e.items, t, e.id)];
|
|
1256
1257
|
}), zr = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text", colors: c }) => {
|
|
1257
|
-
let l =
|
|
1258
|
+
let l = z({
|
|
1258
1259
|
"--cat-content-tree-row-hover-bg": c?.rowHoverBackground,
|
|
1259
1260
|
"--cat-content-tree-row-selected-bg": c?.rowSelectedBackground
|
|
1260
|
-
}), u =
|
|
1261
|
-
|
|
1261
|
+
}), u = U(() => Rr(e, n), [e, n]), d = W({}), [f, p] = G(() => t ?? u[0]?.node.id);
|
|
1262
|
+
H(() => {
|
|
1262
1263
|
f != null && d.current[f]?.focus();
|
|
1263
1264
|
}, []);
|
|
1264
1265
|
let m = (e) => {
|
|
@@ -1292,7 +1293,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1292
1293
|
break;
|
|
1293
1294
|
case "Escape": e.preventDefault(), a();
|
|
1294
1295
|
}
|
|
1295
|
-
}, g = (e) =>
|
|
1296
|
+
}, g = (e) => B("flex h-10 shrink-0 cursor-pointer items-center gap-2 rounded-2 px-3 outline-hidden", Lr.row, e && Lr.focusedRow), _ = (e) => {
|
|
1296
1297
|
let a = e.id === f;
|
|
1297
1298
|
if (e.type === dn.File) {
|
|
1298
1299
|
let n = e.id === t;
|
|
@@ -1303,11 +1304,11 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1303
1304
|
role: "treeitem",
|
|
1304
1305
|
"aria-selected": n,
|
|
1305
1306
|
tabIndex: a ? 0 : -1,
|
|
1306
|
-
className:
|
|
1307
|
+
className: B(g(a), n && Lr.selectedRow),
|
|
1307
1308
|
onClick: () => i(e.id),
|
|
1308
1309
|
onFocus: () => p(e.id),
|
|
1309
1310
|
children: /* @__PURE__ */ Z("span", {
|
|
1310
|
-
className:
|
|
1311
|
+
className: B("min-w-0 flex-1 truncate", s),
|
|
1311
1312
|
children: e.name
|
|
1312
1313
|
})
|
|
1313
1314
|
}, e.id);
|
|
@@ -1325,20 +1326,20 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1325
1326
|
onFocus: () => p(e.id),
|
|
1326
1327
|
children: [
|
|
1327
1328
|
/* @__PURE__ */ Z(kt, {
|
|
1328
|
-
size:
|
|
1329
|
+
size: q.SM,
|
|
1329
1330
|
className: "shrink-0",
|
|
1330
1331
|
"aria-hidden": !0,
|
|
1331
|
-
stroke:
|
|
1332
|
+
stroke: J
|
|
1332
1333
|
}),
|
|
1333
1334
|
/* @__PURE__ */ Z("span", {
|
|
1334
|
-
className:
|
|
1335
|
+
className: B("min-w-0 flex-1 truncate", s),
|
|
1335
1336
|
children: e.name
|
|
1336
1337
|
}),
|
|
1337
1338
|
/* @__PURE__ */ Z(St, {
|
|
1338
|
-
size:
|
|
1339
|
-
className:
|
|
1339
|
+
size: q.SM,
|
|
1340
|
+
className: B("shrink-0 transition-transform", !o && "-rotate-90 rtl:rotate-90"),
|
|
1340
1341
|
"aria-hidden": !0,
|
|
1341
|
-
stroke:
|
|
1342
|
+
stroke: J
|
|
1342
1343
|
})
|
|
1343
1344
|
]
|
|
1344
1345
|
}), o && e.items.length > 0 && /* @__PURE__ */ Z("div", {
|
|
@@ -1355,7 +1356,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1355
1356
|
children: e.map((e) => _(e))
|
|
1356
1357
|
});
|
|
1357
1358
|
}, Br = () => void 0, Vr = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = Br, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = Br, 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, renderFileTree: g, detailsStyles: _, markdownLabels: v }) => {
|
|
1358
|
-
let y = _?.typography?.contentClassName ?? "dial-small-text", b = _?.typography?.contentHeadingClassName ?? "dial-small-semi-text", x = _?.typography?.contentFileCountClassName ?? "dial-tiny-text", S =
|
|
1359
|
+
let y = _?.typography?.contentClassName ?? "dial-small-text", b = _?.typography?.contentHeadingClassName ?? "dial-small-semi-text", x = _?.typography?.contentFileCountClassName ?? "dial-tiny-text", S = ge(), C = t != null && t !== "", w = n ?? [], T = Nr(w) > 1, E = Fr(w, r) ?? "", D = {
|
|
1359
1360
|
nodes: w,
|
|
1360
1361
|
selectedFileId: r,
|
|
1361
1362
|
expandedFolderIds: o,
|
|
@@ -1375,22 +1376,22 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1375
1376
|
};
|
|
1376
1377
|
return /* @__PURE__ */ Q("div", {
|
|
1377
1378
|
className: "flex h-full min-h-0 min-w-0 flex-col gap-4 overflow-y-auto pb-6",
|
|
1378
|
-
style:
|
|
1379
|
+
style: z({ "--cat-details-bg": _?.colors?.background }),
|
|
1379
1380
|
children: [
|
|
1380
1381
|
C && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("p", {
|
|
1381
|
-
className:
|
|
1382
|
+
className: B("m-0 shrink-0 px-6 wrap-break-word", y),
|
|
1382
1383
|
children: t
|
|
1383
|
-
}), /* @__PURE__ */ Z("div", { className:
|
|
1384
|
+
}), /* @__PURE__ */ Z("div", { className: B("shrink-0", Ir.divider) })] }),
|
|
1384
1385
|
T && /* @__PURE__ */ Q("div", {
|
|
1385
|
-
className:
|
|
1386
|
-
children: [/* @__PURE__ */ Z(
|
|
1386
|
+
className: B("sticky top-0 z-10 flex min-h-10 shrink-0 items-center gap-3 px-6", Ir.fileSelector),
|
|
1387
|
+
children: [/* @__PURE__ */ Z(Ae, {
|
|
1387
1388
|
open: c,
|
|
1388
1389
|
onOpenChange: l,
|
|
1389
1390
|
trigger: [],
|
|
1390
1391
|
matchReferenceWidth: !1,
|
|
1391
1392
|
listClassName: "w-[280px] shadow-md",
|
|
1392
1393
|
placement: "bottom-start",
|
|
1393
|
-
overlayRole:
|
|
1394
|
+
overlayRole: Me.None,
|
|
1394
1395
|
renderOverlay: () => g ? g(D) : /* @__PURE__ */ Z(zr, {
|
|
1395
1396
|
...D,
|
|
1396
1397
|
colors: {
|
|
@@ -1401,19 +1402,19 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1401
1402
|
children: /* @__PURE__ */ Z(He, {
|
|
1402
1403
|
id: S,
|
|
1403
1404
|
label: E,
|
|
1404
|
-
size:
|
|
1405
|
+
size: Y.Small,
|
|
1405
1406
|
isOpen: c,
|
|
1406
1407
|
onClick: () => l(!c)
|
|
1407
1408
|
})
|
|
1408
1409
|
}), /* @__PURE__ */ Z("span", {
|
|
1409
|
-
className:
|
|
1410
|
+
className: B("shrink-0", x, Ir.fileCount),
|
|
1410
1411
|
children: d(Nr(w))
|
|
1411
1412
|
})]
|
|
1412
1413
|
}),
|
|
1413
1414
|
/* @__PURE__ */ Q("div", {
|
|
1414
1415
|
role: T ? "region" : void 0,
|
|
1415
1416
|
"aria-labelledby": T ? S : void 0,
|
|
1416
|
-
className:
|
|
1417
|
+
className: B("min-w-0 shrink-0 px-6 text-start", h != null && "min-h-full", h == null && "wrap-break-word", h == null && Ir.body, h == null && y),
|
|
1417
1418
|
children: [/* @__PURE__ */ Z(Ke, {
|
|
1418
1419
|
visuallyHidden: !0,
|
|
1419
1420
|
as: qe.Span,
|
|
@@ -1467,49 +1468,49 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1467
1468
|
let s = Kr(e), c = Xr(e), l = /* @__PURE__ */ Z(rt, {
|
|
1468
1469
|
value: Wr(e),
|
|
1469
1470
|
max: Gr(e.total),
|
|
1470
|
-
size:
|
|
1471
|
-
className:
|
|
1471
|
+
size: Y.Small,
|
|
1472
|
+
className: B("h-1! w-full", Zr.progressTrack, c === Ur.Default && Zr.progressFillDefault, c === Ur.Warning && Zr.progressFillWarning, c === Ur.Danger && Zr.progressFillDanger),
|
|
1472
1473
|
"aria-label": e.label,
|
|
1473
1474
|
"aria-valuetext": e.ariaLabel ?? s
|
|
1474
1475
|
}), u = e.captionLabel != null && /* @__PURE__ */ Z("span", {
|
|
1475
|
-
className:
|
|
1476
|
+
className: B("wrap-break-word", r, Zr.label),
|
|
1476
1477
|
children: e.captionLabel
|
|
1477
1478
|
}), d = e.resetLabel != null && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("time", {
|
|
1478
1479
|
dateTime: e.resetIsoValue,
|
|
1479
1480
|
"aria-hidden": e.resetAriaLabel != null || void 0,
|
|
1480
|
-
className:
|
|
1481
|
+
className: B("wrap-break-word", r, Zr.resetLabel),
|
|
1481
1482
|
children: e.resetLabel
|
|
1482
1483
|
}), e.resetAriaLabel != null && /* @__PURE__ */ Z("span", {
|
|
1483
1484
|
className: "sr-only",
|
|
1484
1485
|
children: e.resetAriaLabel
|
|
1485
1486
|
})] });
|
|
1486
1487
|
return t === un.Stacked ? /* @__PURE__ */ Q("li", {
|
|
1487
|
-
className:
|
|
1488
|
+
className: B("flex flex-col gap-2 border-b py-3 first:pt-0 last:border-b-0 last:pb-0", Zr.divider),
|
|
1488
1489
|
children: [
|
|
1489
1490
|
/* @__PURE__ */ Q("div", {
|
|
1490
1491
|
className: "flex items-baseline justify-between gap-3",
|
|
1491
1492
|
children: [/* @__PURE__ */ Z("span", {
|
|
1492
|
-
className:
|
|
1493
|
+
className: B("min-w-0 wrap-break-word", n, Zr.valuePrimary),
|
|
1493
1494
|
children: e.label
|
|
1494
1495
|
}), /* @__PURE__ */ Z("span", {
|
|
1495
|
-
className:
|
|
1496
|
+
className: B("shrink-0", i, c === Ur.Danger ? Zr.valueDanger : Zr.valuePrimary),
|
|
1496
1497
|
children: s
|
|
1497
1498
|
})]
|
|
1498
1499
|
}),
|
|
1499
1500
|
u,
|
|
1500
1501
|
Jr(e) ? l : e.noteLabel != null && /* @__PURE__ */ Z("span", {
|
|
1501
|
-
className:
|
|
1502
|
+
className: B(o, Zr.label),
|
|
1502
1503
|
children: e.noteLabel
|
|
1503
1504
|
}),
|
|
1504
1505
|
d
|
|
1505
1506
|
]
|
|
1506
1507
|
}) : /* @__PURE__ */ Q("li", {
|
|
1507
|
-
className:
|
|
1508
|
+
className: B("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", Zr.divider),
|
|
1508
1509
|
children: [/* @__PURE__ */ Q("div", {
|
|
1509
1510
|
className: "flex min-w-0 flex-1 flex-col",
|
|
1510
1511
|
children: [
|
|
1511
1512
|
/* @__PURE__ */ Z("span", {
|
|
1512
|
-
className:
|
|
1513
|
+
className: B("wrap-break-word", n, Zr.label),
|
|
1513
1514
|
children: e.label
|
|
1514
1515
|
}),
|
|
1515
1516
|
u,
|
|
@@ -1518,7 +1519,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1518
1519
|
}), Jr(e) ? /* @__PURE__ */ Q("div", {
|
|
1519
1520
|
className: "flex w-32 shrink-0 flex-col items-end gap-2",
|
|
1520
1521
|
children: [/* @__PURE__ */ Z("div", {
|
|
1521
|
-
className:
|
|
1522
|
+
className: B("flex gap-1", i),
|
|
1522
1523
|
children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("span", {
|
|
1523
1524
|
className: Zr.valuePrimary,
|
|
1524
1525
|
children: e.usedLabel
|
|
@@ -1533,16 +1534,16 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1533
1534
|
}) : /* @__PURE__ */ Q("div", {
|
|
1534
1535
|
className: "flex shrink-0 flex-col items-end",
|
|
1535
1536
|
children: [/* @__PURE__ */ Z("span", {
|
|
1536
|
-
className:
|
|
1537
|
+
className: B(a, Zr.valuePrimary),
|
|
1537
1538
|
children: s
|
|
1538
1539
|
}), e.noteLabel != null && /* @__PURE__ */ Z("span", {
|
|
1539
|
-
className:
|
|
1540
|
+
className: B(o, Zr.label),
|
|
1540
1541
|
children: e.noteLabel
|
|
1541
1542
|
})]
|
|
1542
1543
|
})]
|
|
1543
1544
|
});
|
|
1544
1545
|
}, $r = ({ group: e, sectionClassName: t, layout: n, labelClassName: r, captionClassName: i, valueClassName: a, noteValueClassName: o, noteClassName: s }) => /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Z("p", {
|
|
1545
|
-
className:
|
|
1546
|
+
className: B("mt-0 mb-3", t, Zr.sectionHeading),
|
|
1546
1547
|
children: e.label
|
|
1547
1548
|
}), /* @__PURE__ */ Z("ul", {
|
|
1548
1549
|
className: "m-0 flex list-none flex-col p-0",
|
|
@@ -1558,7 +1559,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1558
1559
|
})] }), ei = ({ limits: e, layout: t = un.Inline, labelClassName: n = "dial-small-semi-text", captionClassName: r = "dial-caption-text", valueClassName: i = "dial-tiny-text", noteValueClassName: a = "dial-tiny-semi-text", noteClassName: o = "dial-caption-text", sectionClassName: s = "dial-caption-text", footerClassName: c = "dial-caption-text", footerNote: l, colors: u }) => {
|
|
1559
1560
|
let d = e?.groups.filter((e) => e.rows.length > 0);
|
|
1560
1561
|
if (d == null || d.length === 0) return null;
|
|
1561
|
-
let f =
|
|
1562
|
+
let f = z({
|
|
1562
1563
|
"--lt-section-heading": u?.sectionHeading,
|
|
1563
1564
|
"--lt-label": u?.label,
|
|
1564
1565
|
"--lt-value-primary": u?.valuePrimary,
|
|
@@ -1582,7 +1583,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1582
1583
|
noteValueClassName: a,
|
|
1583
1584
|
noteClassName: o
|
|
1584
1585
|
}, e.label)), l != null && /* @__PURE__ */ Z("p", {
|
|
1585
|
-
className:
|
|
1586
|
+
className: B("m-0 border-t pt-4", c, Zr.divider, Zr.label),
|
|
1586
1587
|
children: l
|
|
1587
1588
|
})]
|
|
1588
1589
|
});
|
|
@@ -1590,7 +1591,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1590
1591
|
className: "flex flex-col gap-4",
|
|
1591
1592
|
children: e.map((e, c) => /* @__PURE__ */ Q("div", {
|
|
1592
1593
|
className: "flex flex-col gap-4",
|
|
1593
|
-
children: [c > 0 && /* @__PURE__ */ Z("div", { className:
|
|
1594
|
+
children: [c > 0 && /* @__PURE__ */ Z("div", { className: B("shrink-0 border-b", Sr.divider) }), /* @__PURE__ */ Z("div", {
|
|
1594
1595
|
className: s,
|
|
1595
1596
|
children: /* @__PURE__ */ Z(Er, {
|
|
1596
1597
|
sectionLabel: e.title,
|
|
@@ -1637,13 +1638,13 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1637
1638
|
}, ii = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
|
|
1638
1639
|
let a = n ?? `repeat(${e.length}, 1fr)`;
|
|
1639
1640
|
return /* @__PURE__ */ Q("div", {
|
|
1640
|
-
className:
|
|
1641
|
+
className: B(ri.container, "grid overflow-hidden rounded-md"),
|
|
1641
1642
|
style: { gridTemplateColumns: a },
|
|
1642
1643
|
children: [e.map((e) => /* @__PURE__ */ Z("div", {
|
|
1643
|
-
className:
|
|
1644
|
+
className: B("px-2 py-1 text-start", r, ri.header),
|
|
1644
1645
|
children: e
|
|
1645
|
-
}, e)), t.map((e, t) => /* @__PURE__ */ Z(
|
|
1646
|
-
className:
|
|
1646
|
+
}, e)), t.map((e, t) => /* @__PURE__ */ Z(pe, { children: e.map((e, n) => /* @__PURE__ */ Z("div", {
|
|
1647
|
+
className: B("px-2 py-1.5", i, ri.cell, t % 2 == 1 ? ri.evenRow : void 0),
|
|
1647
1648
|
children: e
|
|
1648
1649
|
}, n)) }, t))]
|
|
1649
1650
|
});
|
|
@@ -1665,7 +1666,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1665
1666
|
let c = {
|
|
1666
1667
|
...oi,
|
|
1667
1668
|
...s
|
|
1668
|
-
}, [l, u] =
|
|
1669
|
+
}, [l, u] = G(""), d = l.trim(), f = U(() => {
|
|
1669
1670
|
let t = l.trim().toLowerCase(), n = e?.tools ?? [];
|
|
1670
1671
|
return t === "" ? n : n.filter((e) => ci(e, t));
|
|
1671
1672
|
}, [e, l]);
|
|
@@ -1682,13 +1683,13 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1682
1683
|
onChange: (e) => u(e ?? "")
|
|
1683
1684
|
}), /* @__PURE__ */ Z(Ke, {
|
|
1684
1685
|
as: qe.Span,
|
|
1685
|
-
className:
|
|
1686
|
+
className: B(a, ai.count),
|
|
1686
1687
|
children: c.toolCount(f.length)
|
|
1687
1688
|
})]
|
|
1688
1689
|
}),
|
|
1689
|
-
f.length === 0 && l.trim() !== "" && /* @__PURE__ */ Z(
|
|
1690
|
+
f.length === 0 && l.trim() !== "" && /* @__PURE__ */ Z(se, { label: c.noResults }),
|
|
1690
1691
|
f.map((e, a) => /* @__PURE__ */ Q("div", {
|
|
1691
|
-
className:
|
|
1692
|
+
className: B("flex flex-col gap-3 px-[22px] py-4", a > 0 ? ai.divider : void 0),
|
|
1692
1693
|
children: [
|
|
1693
1694
|
/* @__PURE__ */ Q("div", {
|
|
1694
1695
|
className: "flex flex-col gap-1",
|
|
@@ -1699,7 +1700,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1699
1700
|
query: d
|
|
1700
1701
|
})
|
|
1701
1702
|
}), e.description != null && /* @__PURE__ */ Z("p", {
|
|
1702
|
-
className:
|
|
1703
|
+
className: B("m-0", n, ai.description),
|
|
1703
1704
|
children: /* @__PURE__ */ Z(Be, {
|
|
1704
1705
|
text: e.description,
|
|
1705
1706
|
query: d,
|
|
@@ -1716,11 +1717,11 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1716
1717
|
columnsTemplate: "1fr 1fr auto",
|
|
1717
1718
|
rows: e.inputParams.map((e) => [
|
|
1718
1719
|
/* @__PURE__ */ Z("code", {
|
|
1719
|
-
className:
|
|
1720
|
+
className: B("border-none bg-transparent p-0 text-inherit", o),
|
|
1720
1721
|
children: e.name
|
|
1721
1722
|
}, "name"),
|
|
1722
1723
|
/* @__PURE__ */ Z("code", {
|
|
1723
|
-
className:
|
|
1724
|
+
className: B("border-none bg-transparent p-0 text-inherit", o),
|
|
1724
1725
|
children: e.type
|
|
1725
1726
|
}, "type"),
|
|
1726
1727
|
e.isRequired ? "✓" : "—"
|
|
@@ -1731,7 +1732,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1731
1732
|
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ Z(ii, {
|
|
1732
1733
|
columns: [c.annotationKey, c.annotationValue],
|
|
1733
1734
|
rows: e.annotations.map((e) => [/* @__PURE__ */ Z("code", {
|
|
1734
|
-
className:
|
|
1735
|
+
className: B("border-none bg-transparent p-0 text-inherit", o),
|
|
1735
1736
|
children: e.key
|
|
1736
1737
|
}, "key"), e.value]),
|
|
1737
1738
|
headingClassName: r,
|
|
@@ -1742,12 +1743,12 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1742
1743
|
]
|
|
1743
1744
|
});
|
|
1744
1745
|
}, ui = ({ item: e, tabs: t, activeTab: r, onTabChange: i, isDetailsLoading: a = !1, contentFile: o, renderContentFileTree: s, texts: c, detailsStyles: l, limitsFooterNote: u }) => {
|
|
1745
|
-
let { overviewSectionClassName: d = "dial-caption-text", overviewLabelClassName: f = "dial-small-semi-text", overviewValueClassName: p = "dial-small-text", overviewValueTrueClassName: m = "dial-small-text" } = l?.typography ?? {}, { promptContent: h, selectedFileId: g, isContentFileLoading: _, expandedFolderIds: v, isFileSelectorOpen: y, setIsFileSelectorOpen: b, handleToggleFolder: x, handleSelectContentFile: S, resolveContentFilePreview: C, renderedContentFilePreview: w } = o, T =
|
|
1746
|
+
let { overviewSectionClassName: d = "dial-caption-text", overviewLabelClassName: f = "dial-small-semi-text", overviewValueClassName: p = "dial-small-text", overviewValueTrueClassName: m = "dial-small-text" } = l?.typography ?? {}, { promptContent: h, selectedFileId: g, isContentFileLoading: _, expandedFolderIds: v, isFileSelectorOpen: y, setIsFileSelectorOpen: b, handleToggleFolder: x, handleSelectContentFile: S, resolveContentFilePreview: C, renderedContentFilePreview: w } = o, T = U(() => xn(c), [c]), E = U(() => {
|
|
1746
1747
|
let e = {};
|
|
1747
1748
|
return c?.toolsSearchPlaceholder != null && (e.searchPlaceholder = c.toolsSearchPlaceholder), c?.toolsSearchClearLabel != null && (e.searchClearLabel = c.toolsSearchClearLabel), c?.toolsCountLabel != null && (e.toolCount = c.toolsCountLabel), c?.toolsNoResultsLabel != null && (e.noResults = c.toolsNoResultsLabel), e;
|
|
1748
1749
|
}, [c]), D = c?.emptyTabLabel ?? "No data", O = !e.description?.trim() && (e.topics?.length ?? 0) === 0, A = !e.details?.overview?.sections?.length, j = /* @__PURE__ */ Z("div", {
|
|
1749
1750
|
className: "flex size-full items-center justify-center py-6",
|
|
1750
|
-
children: /* @__PURE__ */ Z(
|
|
1751
|
+
children: /* @__PURE__ */ Z(se, { label: D })
|
|
1751
1752
|
}), M = c?.overviewYesLabel ?? "Yes", N = c?.overviewNoLabel ?? "No";
|
|
1752
1753
|
return /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Q("div", {
|
|
1753
1754
|
className: "flex items-center px-6",
|
|
@@ -1756,7 +1757,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1756
1757
|
tabs: t,
|
|
1757
1758
|
activeTabId: r,
|
|
1758
1759
|
onTabChange: i,
|
|
1759
|
-
className:
|
|
1760
|
+
className: B("min-w-0 flex-1 overflow-x-auto", Sr.tabsScroll),
|
|
1760
1761
|
tabClassName: "shrink-0"
|
|
1761
1762
|
}),
|
|
1762
1763
|
/* @__PURE__ */ Z(Ke, {
|
|
@@ -1779,7 +1780,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1779
1780
|
})
|
|
1780
1781
|
]
|
|
1781
1782
|
}), /* @__PURE__ */ Q("div", {
|
|
1782
|
-
className:
|
|
1783
|
+
className: B("min-h-0 min-w-0 flex-1", r === n.Content ? "overflow-hidden" : "overflow-y-auto", r !== n.Overview && r !== n.Content && "px-6"),
|
|
1783
1784
|
children: [
|
|
1784
1785
|
r === n.About && O ? j : null,
|
|
1785
1786
|
r === n.About && !O && /* @__PURE__ */ Z(Mr, {
|
|
@@ -1850,7 +1851,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1850
1851
|
}, di = /* @__PURE__ */ function(e) {
|
|
1851
1852
|
return e.Idle = "idle", e.Loading = "loading", e.Resolved = "resolved", e.Unknown = "unknown", e;
|
|
1852
1853
|
}({}), fi = (e) => e === s.ApiKey ? "Manage API keys" : "Manage credentials", pi = ({ item: e, texts: t, isReadonly: n = !1, isPrimaryActionVisible: r, onOpenUnpublish: i, hasPublishedFolders: o = !1, isUnpublishVisible: c, isPublishHistoryResolved: l = !0, isPublishVisible: u, onEdit: d, isShareVisible: f, isSharePrimary: p, isPublishPrimary: m, onLogin: h, onLogout: g, onDownload: _, isDownloadVisible: y, isDownloadPrimary: b, onUnshare: x, isUnshareVisible: S, onRevokeShare: C, onFetchRecipientsCount: w, isRevokeShareVisible: T, recipientsCountStatus: E, recipientsCount: D }) => {
|
|
1853
|
-
let O = t?.hasPrimaryAction !== !1 && (r?.(e) ?? (e.type === P.Model || e.type === P.Agent || e.type === P.Prompt)), k = !n && !!i && o && (c?.(e) ?? !0), A = !n && !!i && !l && c?.(e) === !0, j = !n && !k && (u?.(e) ?? (e.type === P.Model || e.type === P.Toolset || e.type === P.Agent)), M = !n && !!d && !!e.isEditable, N = !n && e.isMyApp === !0 && (f?.(e) ?? !0), F = p?.(e) ?? !0,
|
|
1854
|
+
let O = t?.hasPrimaryAction !== !1 && (r?.(e) ?? (e.type === P.Model || e.type === P.Agent || e.type === P.Prompt)), k = !n && !!i && o && (c?.(e) ?? !0), A = !n && !!i && !l && c?.(e) === !0, j = !n && !k && (u?.(e) ?? (e.type === P.Model || e.type === P.Toolset || e.type === P.Agent)), M = !n && !!d && !!e.isEditable, N = !n && e.isMyApp === !0 && (f?.(e) ?? !0), F = p?.(e) ?? !0, ee = m?.(e) ?? !1, I = e.credentials?.authenticationType ?? s.None, L = e.credentials != null && I !== s.None ? v(e.credentials) : void 0, te = !n && L != null && (!!h || !!g), ne = e.type === P.Toolset && te, re = !!_ && (y?.(e) ?? !0), ie = re && !ne && (b?.(e) ?? (e.type === P.Skill && !O)), ae = re && !ie, R = !n && e.isMyApp, oe = !n && !!x && e.isMyApp !== !0 && e.sharedWithMe === !0 && (S?.(e) ?? !0), se = !n && !!C && e.isMyApp === !0 && (!w || E === di.Unknown || E === di.Resolved && (D ?? 0) > 0) && (T?.(e) ?? !0), ce = c?.(e);
|
|
1854
1855
|
return {
|
|
1855
1856
|
shouldShowPrimaryAction: O,
|
|
1856
1857
|
shouldShowUnpublish: k,
|
|
@@ -1859,8 +1860,8 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1859
1860
|
shouldShowEditAction: M,
|
|
1860
1861
|
shouldShowShareAction: N,
|
|
1861
1862
|
isShareInActionRow: F,
|
|
1862
|
-
isPublishInActionRow:
|
|
1863
|
-
authenticationType:
|
|
1863
|
+
isPublishInActionRow: ee,
|
|
1864
|
+
authenticationType: I,
|
|
1864
1865
|
credentialsUiState: L,
|
|
1865
1866
|
shouldShowCredentialsAction: te,
|
|
1866
1867
|
isCredentialsActionPrimary: ne,
|
|
@@ -1868,11 +1869,11 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1868
1869
|
shouldShowDownloadAction: ae,
|
|
1869
1870
|
shouldShowDeleteAction: R,
|
|
1870
1871
|
shouldShowUnshareAction: oe,
|
|
1871
|
-
shouldShowRevokeShareAction:
|
|
1872
|
-
mayGainUnpublishEntry: !n && !!i && (
|
|
1872
|
+
shouldShowRevokeShareAction: se,
|
|
1873
|
+
mayGainUnpublishEntry: !n && !!i && (ce == null || ce && !l),
|
|
1873
1874
|
mayGainRevokeShareEntry: !n && !!C && !!w && e.isMyApp === !0 && (T?.(e) ?? !0),
|
|
1874
|
-
isApiKeyConfigured:
|
|
1875
|
-
isOAuthLogoutState:
|
|
1875
|
+
isApiKeyConfigured: I === s.ApiKey && L === a.LogOut,
|
|
1876
|
+
isOAuthLogoutState: I !== s.ApiKey && L !== a.ManageCredentials && L === a.LogOut
|
|
1876
1877
|
};
|
|
1877
1878
|
}, mi = {
|
|
1878
1879
|
name: "_name_rnlwb_1",
|
|
@@ -1884,9 +1885,9 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1884
1885
|
hint: "_hint_1lu6m_5",
|
|
1885
1886
|
deleteAction: "_deleteAction_1lu6m_10"
|
|
1886
1887
|
}, gi = 16, _i = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, apiKeyHeader: i, onLogin: a, onLogout: o, onClose: s, texts: c, colors: l, typography: u, deleteActionClassName: d }) => {
|
|
1887
|
-
let { credentialsOverlayTitleClassName: f = "dial-small-semi-text", credentialsHintClassName: p = "dial-caption-text", credentialsErrorClassName: m = "dial-caption-text" } = u ?? {}, [h, g] =
|
|
1888
|
+
let { credentialsOverlayTitleClassName: f = "dial-small-semi-text", credentialsHintClassName: p = "dial-caption-text", credentialsErrorClassName: m = "dial-caption-text" } = u ?? {}, [h, g] = G(""), [_, v] = G(!1), [y, x] = G(!1), [S, C] = G(!1), w = n === b.SignedIn, T = V((e) => {
|
|
1888
1889
|
g(e ?? ""), v(!1);
|
|
1889
|
-
}, []), E =
|
|
1890
|
+
}, []), E = V(async () => {
|
|
1890
1891
|
if (h.trim().length === 0) v(!0);
|
|
1891
1892
|
else {
|
|
1892
1893
|
x(!0);
|
|
@@ -1905,7 +1906,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1905
1906
|
h,
|
|
1906
1907
|
a,
|
|
1907
1908
|
s
|
|
1908
|
-
]), D =
|
|
1909
|
+
]), D = V(async () => {
|
|
1909
1910
|
C(!0);
|
|
1910
1911
|
try {
|
|
1911
1912
|
await o?.(e, { level: t }), s();
|
|
@@ -1917,7 +1918,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1917
1918
|
t,
|
|
1918
1919
|
o,
|
|
1919
1920
|
s
|
|
1920
|
-
]), O = c?.personalApiKeyPanelTitle ?? "Personal API key", k = c?.addApiKeyActionLabel ?? "Add", A = c?.deleteActionLabel ?? "Delete", j = c?.addingApiKeyStatusLabel ?? "Adding", M = c?.deletingStatusLabel ?? "Deleting", N = c?.apiKeyRequiredErrorMessage ?? "API key is required.", P = c?.personalApiKeyAddedMessage ?? "Personal key has been added", F = `catalog-item-${e.id}-${t}-api-key`,
|
|
1921
|
+
]), O = c?.personalApiKeyPanelTitle ?? "Personal API key", k = c?.addApiKeyActionLabel ?? "Add", A = c?.deleteActionLabel ?? "Delete", j = c?.addingApiKeyStatusLabel ?? "Adding", M = c?.deletingStatusLabel ?? "Deleting", N = c?.apiKeyRequiredErrorMessage ?? "API key is required.", P = c?.personalApiKeyAddedMessage ?? "Personal key has been added", F = `catalog-item-${e.id}-${t}-api-key`, ee = `${F}-header-hint`, I = `${F}-empty-key-error`, L = i ? (c?.apiKeyHeaderHint ?? ((e) => `Enter your API key value for "${e}" header`))(i) : void 0, te = r == null ? void 0 : (c?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(r), ne = z({
|
|
1921
1922
|
"--cat-details-divider": l?.divider,
|
|
1922
1923
|
"--cat-cred-hint-text": l?.credentialsHintText,
|
|
1923
1924
|
"--cat-cred-card-bg": l?.credentialsCardBackground,
|
|
@@ -1937,7 +1938,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1937
1938
|
children: O
|
|
1938
1939
|
})
|
|
1939
1940
|
}),
|
|
1940
|
-
/* @__PURE__ */ Z("div", { className:
|
|
1941
|
+
/* @__PURE__ */ Z("div", { className: B("mx-4 h-px", hi.divider) }),
|
|
1941
1942
|
!w && /* @__PURE__ */ Q("div", {
|
|
1942
1943
|
className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
|
|
1943
1944
|
children: [
|
|
@@ -1945,7 +1946,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1945
1946
|
className: "flex items-end gap-2",
|
|
1946
1947
|
children: [/* @__PURE__ */ Z(Ue, {
|
|
1947
1948
|
id: F,
|
|
1948
|
-
"aria-describedby": [L ?
|
|
1949
|
+
"aria-describedby": [L ? ee : void 0, _ ? I : void 0].filter(Boolean).join(" ") || void 0,
|
|
1949
1950
|
type: "password",
|
|
1950
1951
|
autoComplete: "current-password",
|
|
1951
1952
|
value: h,
|
|
@@ -1965,13 +1966,13 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1965
1966
|
disabled: y
|
|
1966
1967
|
})]
|
|
1967
1968
|
}),
|
|
1968
|
-
/* @__PURE__ */ Z(
|
|
1969
|
-
id:
|
|
1969
|
+
/* @__PURE__ */ Z(Te, {
|
|
1970
|
+
id: ee,
|
|
1970
1971
|
text: L,
|
|
1971
|
-
className:
|
|
1972
|
+
className: B(p, hi.hint)
|
|
1972
1973
|
}),
|
|
1973
1974
|
_ && /* @__PURE__ */ Z(Pe, {
|
|
1974
|
-
id:
|
|
1975
|
+
id: I,
|
|
1975
1976
|
className: m,
|
|
1976
1977
|
text: N
|
|
1977
1978
|
})
|
|
@@ -1983,7 +1984,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1983
1984
|
icon: /* @__PURE__ */ Z(At, {
|
|
1984
1985
|
size: 20,
|
|
1985
1986
|
"aria-hidden": !0,
|
|
1986
|
-
stroke:
|
|
1987
|
+
stroke: J
|
|
1987
1988
|
}),
|
|
1988
1989
|
title: P,
|
|
1989
1990
|
description: te,
|
|
@@ -1994,7 +1995,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
1994
1995
|
size: gi,
|
|
1995
1996
|
ariaLabel: M
|
|
1996
1997
|
}) : void 0,
|
|
1997
|
-
className:
|
|
1998
|
+
className: B(hi.deleteAction, d),
|
|
1998
1999
|
onClick: D,
|
|
1999
2000
|
disabled: S
|
|
2000
2001
|
})
|
|
@@ -2003,7 +2004,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2003
2004
|
]
|
|
2004
2005
|
});
|
|
2005
2006
|
}, vi = ({ item: e, buttonComponent: t, authenticationType: n, credentialsUiState: r, onLogin: o, onLogout: c, onOpenCredentialsManagement: l, onRequestLogout: u, texts: f, detailsStyles: p }) => {
|
|
2006
|
-
let [m, h] =
|
|
2007
|
+
let [m, h] = G(!1), g = n === s.ApiKey && r !== a.ManageCredentials, _ = e.credentials == null ? i.User : d(e.credentials), v = V(() => {
|
|
2007
2008
|
r === a.ManageCredentials ? l?.() : g ? h((e) => !e) : r === a.LogOut ? u?.() : e.credentials != null && o?.(e, { level: d(e.credentials) });
|
|
2008
2009
|
}, [
|
|
2009
2010
|
r,
|
|
@@ -2013,21 +2014,21 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2013
2014
|
l,
|
|
2014
2015
|
u
|
|
2015
2016
|
]), y = r === a.ManageCredentials ? (f?.manageCredentialsActionLabel ?? fi)(n) : n === s.ApiKey ? r === a.LogOut ? f?.changeApiKeyActionLabel ?? "Change API key" : f?.apiKeyActionLabel ?? "API key" : r === a.LogOut ? f?.logoutActionLabel ?? "Log out" : f?.loginActionLabel ?? "Log in", b = r === a.ManageCredentials || n === s.ApiKey ? /* @__PURE__ */ Z(At, {
|
|
2016
|
-
size:
|
|
2017
|
-
stroke:
|
|
2017
|
+
size: q.MD,
|
|
2018
|
+
stroke: J
|
|
2018
2019
|
}) : r === a.LogOut ? /* @__PURE__ */ Z(Pt, {
|
|
2019
|
-
size:
|
|
2020
|
-
stroke:
|
|
2020
|
+
size: q.MD,
|
|
2021
|
+
stroke: J
|
|
2021
2022
|
}) : /* @__PURE__ */ Z(Nt, {
|
|
2022
|
-
size:
|
|
2023
|
-
stroke:
|
|
2023
|
+
size: q.MD,
|
|
2024
|
+
stroke: J
|
|
2024
2025
|
}), x = r === a.ManageCredentials ? /* @__PURE__ */ Z(yt, {
|
|
2025
|
-
size:
|
|
2026
|
+
size: q.MD,
|
|
2026
2027
|
className: "rtl:scale-x-[-1]",
|
|
2027
|
-
stroke:
|
|
2028
|
+
stroke: J
|
|
2028
2029
|
}) : g ? /* @__PURE__ */ Z(St, {
|
|
2029
|
-
size:
|
|
2030
|
-
stroke:
|
|
2030
|
+
size: q.MD,
|
|
2031
|
+
stroke: J
|
|
2031
2032
|
}) : void 0, S = /* @__PURE__ */ Z(t, {
|
|
2032
2033
|
label: y,
|
|
2033
2034
|
iconBefore: b,
|
|
@@ -2035,14 +2036,14 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2035
2036
|
onClick: v,
|
|
2036
2037
|
"aria-expanded": g ? m : void 0
|
|
2037
2038
|
});
|
|
2038
|
-
return !g || e.credentials == null ? S : /* @__PURE__ */ Z(
|
|
2039
|
+
return !g || e.credentials == null ? S : /* @__PURE__ */ Z(Ae, {
|
|
2039
2040
|
placement: "bottom-start",
|
|
2040
2041
|
matchReferenceWidth: !1,
|
|
2041
2042
|
open: m,
|
|
2042
2043
|
onOpenChange: h,
|
|
2043
2044
|
trigger: [],
|
|
2044
2045
|
outsideClosable: !0,
|
|
2045
|
-
overlayRole:
|
|
2046
|
+
overlayRole: Me.Dialog,
|
|
2046
2047
|
overlayAriaLabel: f?.personalApiKeyPanelTitle ?? "Personal API key",
|
|
2047
2048
|
renderOverlay: () => /* @__PURE__ */ Z(_i, {
|
|
2048
2049
|
item: e,
|
|
@@ -2060,7 +2061,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2060
2061
|
children: S
|
|
2061
2062
|
});
|
|
2062
2063
|
}, yi = (e) => e.isMyApp === !0, bi = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
|
|
2063
|
-
let [a, o] =
|
|
2064
|
+
let [a, o] = G(!1), s = V(() => {
|
|
2064
2065
|
n ? o((e) => !e) : t?.(e);
|
|
2065
2066
|
}, [
|
|
2066
2067
|
e,
|
|
@@ -2071,25 +2072,25 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2071
2072
|
let c = /* @__PURE__ */ Z(Ze, {
|
|
2072
2073
|
label: i,
|
|
2073
2074
|
iconBefore: /* @__PURE__ */ Z(Rt, {
|
|
2074
|
-
size:
|
|
2075
|
-
stroke:
|
|
2075
|
+
size: q.MD,
|
|
2076
|
+
stroke: J
|
|
2076
2077
|
}),
|
|
2077
2078
|
iconAfter: /* @__PURE__ */ Z(St, {
|
|
2078
|
-
size:
|
|
2079
|
-
stroke:
|
|
2079
|
+
size: q.MD,
|
|
2080
|
+
stroke: J
|
|
2080
2081
|
}),
|
|
2081
2082
|
onClick: s,
|
|
2082
2083
|
"aria-haspopup": n ? "menu" : void 0,
|
|
2083
2084
|
"aria-expanded": n ? a : void 0
|
|
2084
2085
|
});
|
|
2085
|
-
return n ? /* @__PURE__ */ Z(
|
|
2086
|
+
return n ? /* @__PURE__ */ Z(Ae, {
|
|
2086
2087
|
placement: "bottom-end",
|
|
2087
2088
|
matchReferenceWidth: !1,
|
|
2088
2089
|
open: a,
|
|
2089
2090
|
onOpenChange: o,
|
|
2090
2091
|
trigger: [],
|
|
2091
2092
|
outsideClosable: !0,
|
|
2092
|
-
overlayRole:
|
|
2093
|
+
overlayRole: Me.None,
|
|
2093
2094
|
renderOverlay: () => n(e, () => o(!1)),
|
|
2094
2095
|
children: c
|
|
2095
2096
|
}) : c;
|
|
@@ -2099,25 +2100,25 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2099
2100
|
shareOverlay: s,
|
|
2100
2101
|
isShareVisible: f,
|
|
2101
2102
|
label: p?.shareLabel
|
|
2102
|
-
}) : /* @__PURE__ */ Z(i ?
|
|
2103
|
+
}) : /* @__PURE__ */ Z(i ? ke : Ze, {
|
|
2103
2104
|
label: n,
|
|
2104
2105
|
iconBefore: /* @__PURE__ */ Z(r, {
|
|
2105
|
-
size:
|
|
2106
|
+
size: q.MD,
|
|
2106
2107
|
"aria-hidden": !0,
|
|
2107
|
-
stroke:
|
|
2108
|
+
stroke: J
|
|
2108
2109
|
}),
|
|
2109
2110
|
onClick: a
|
|
2110
2111
|
}))(t) : n.length > 0 ? (() => {
|
|
2111
|
-
let t = /* @__PURE__ */ Z(
|
|
2112
|
+
let t = /* @__PURE__ */ Z(Ae, {
|
|
2112
2113
|
items: n,
|
|
2113
2114
|
placement: "bottom-end",
|
|
2114
2115
|
matchReferenceWidth: !1,
|
|
2115
2116
|
onOpenChange: r,
|
|
2116
2117
|
children: /* @__PURE__ */ Z(Qe, {
|
|
2117
2118
|
icon: /* @__PURE__ */ Z(Et, {
|
|
2118
|
-
size:
|
|
2119
|
+
size: q.LG,
|
|
2119
2120
|
"aria-hidden": !0,
|
|
2120
|
-
stroke:
|
|
2121
|
+
stroke: J
|
|
2121
2122
|
}),
|
|
2122
2123
|
"aria-label": p?.manageActionLabel ?? "Manage",
|
|
2123
2124
|
"aria-haspopup": "menu",
|
|
@@ -2125,19 +2126,19 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2125
2126
|
onFocus: i
|
|
2126
2127
|
})
|
|
2127
2128
|
});
|
|
2128
|
-
return a || !s || !o ? t : /* @__PURE__ */ Z(
|
|
2129
|
+
return a || !s || !o ? t : /* @__PURE__ */ Z(Ae, {
|
|
2129
2130
|
placement: "bottom-end",
|
|
2130
2131
|
matchReferenceWidth: !1,
|
|
2131
2132
|
open: c,
|
|
2132
2133
|
onOpenChange: l,
|
|
2133
2134
|
trigger: [],
|
|
2134
2135
|
outsideClosable: !0,
|
|
2135
|
-
overlayRole:
|
|
2136
|
+
overlayRole: Me.None,
|
|
2136
2137
|
renderOverlay: () => s(e, u),
|
|
2137
2138
|
children: t
|
|
2138
2139
|
});
|
|
2139
2140
|
})() : null, Si = ({ visibility: e, texts: t, detailsStyles: n, recipientsCount: r, isManageMenuOpen: i, handleShare: a, handleEdit: o, handleDownload: s, handleOpenPublish: c, handleOpenUnpublish: l, handleDelete: u, handleRevokeShare: d, handleUnshare: f }) => {
|
|
2140
|
-
let { isShareInActionRow: p, shouldShowShareAction: m, shouldShowEditAction: h, shouldShowDownloadAction: g, isPublishInActionRow: _, shouldShowPublish: v, shouldShowUnpublish: y, shouldShowDeleteAction: b, shouldShowRevokeShareAction: x, shouldShowUnshareAction: S, mayGainUnpublishEntry: C, mayGainRevokeShareEntry: w } = e, T =
|
|
2141
|
+
let { isShareInActionRow: p, shouldShowShareAction: m, shouldShowEditAction: h, shouldShowDownloadAction: g, isPublishInActionRow: _, shouldShowPublish: v, shouldShowUnpublish: y, shouldShowDeleteAction: b, shouldShowRevokeShareAction: x, shouldShowUnshareAction: S, mayGainUnpublishEntry: C, mayGainRevokeShareEntry: w } = e, T = U(() => {
|
|
2141
2142
|
let e = [];
|
|
2142
2143
|
if (!p && m && e.push({
|
|
2143
2144
|
key: "share",
|
|
@@ -2212,17 +2213,17 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2212
2213
|
u,
|
|
2213
2214
|
d,
|
|
2214
2215
|
f
|
|
2215
|
-
]), E = n?.colors?.manageMenuIcon, D =
|
|
2216
|
+
]), E = n?.colors?.manageMenuIcon, D = U(() => z({ "--cat-details-manage-menu-icon": E }), [E]);
|
|
2216
2217
|
return {
|
|
2217
|
-
manageItems:
|
|
2218
|
+
manageItems: U(() => T.map(({ key: e, label: t, Icon: n, iconClassName: r, danger: i, onClick: a }) => ({
|
|
2218
2219
|
key: e,
|
|
2219
2220
|
label: t,
|
|
2220
2221
|
icon: /* @__PURE__ */ Z(n, {
|
|
2221
|
-
size:
|
|
2222
|
+
size: q.SM,
|
|
2222
2223
|
"aria-hidden": !0,
|
|
2223
2224
|
className: r,
|
|
2224
2225
|
style: D,
|
|
2225
|
-
stroke:
|
|
2226
|
+
stroke: J
|
|
2226
2227
|
}),
|
|
2227
2228
|
danger: i,
|
|
2228
2229
|
onClick: a
|
|
@@ -2230,13 +2231,13 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2230
2231
|
promotedManageAction: T.length === 1 && !i && !C && !w ? T[0] : void 0
|
|
2231
2232
|
};
|
|
2232
2233
|
}, Ci = ({ item: e, onFetchRecipientsCount: t, onRevokeShare: n, isRevokeShareVisible: r }) => {
|
|
2233
|
-
let [i, a] =
|
|
2234
|
-
return
|
|
2234
|
+
let [i, a] = G(di.Idle), [o, s] = G(void 0), c = W(null);
|
|
2235
|
+
return H(() => {
|
|
2235
2236
|
c.current = null, a(di.Idle), s(void 0);
|
|
2236
2237
|
}, [e.id]), {
|
|
2237
2238
|
recipientsCountStatus: i,
|
|
2238
2239
|
recipientsCount: o,
|
|
2239
|
-
requestRecipientsCount:
|
|
2240
|
+
requestRecipientsCount: V(() => {
|
|
2240
2241
|
if (!t || c.current === e.id || !n || e.isMyApp !== !0 || r?.(e) === !1) return;
|
|
2241
2242
|
let i = e.id;
|
|
2242
2243
|
c.current = i, a(di.Loading), (async () => {
|
|
@@ -2260,28 +2261,28 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2260
2261
|
[an.LimitReached]: mi.limitReached,
|
|
2261
2262
|
[an.RunningLow]: mi.limitRunningLow
|
|
2262
2263
|
}, Ti = ({ status: e, label: t, className: n }) => /* @__PURE__ */ Z("div", {
|
|
2263
|
-
className:
|
|
2264
|
+
className: B("flex h-[24px] items-center justify-center gap-1 rounded-2xl px-2 whitespace-nowrap", n, wi[e]),
|
|
2264
2265
|
children: t
|
|
2265
2266
|
}), Ei = ({ item: e, onUseInChat: t, isPrimaryActionVisible: n, onShare: r, shareOverlay: i, isShareVisible: a, isSharePrimary: o, onEdit: s, onDownload: c, isDownloadVisible: l, isDownloadPrimary: u, onDelete: d, onUnshare: f, isUnshareVisible: p, onRevokeShare: m, onFetchRecipientsCount: h, isRevokeShareVisible: g, onLogin: _, onLogout: v, onOpenCredentialsManagement: y, onRequestLogout: b, texts: x, detailsStyles: S, isPublishVisible: C, isPublishPrimary: w, onOpenPublish: T, isUnpublishVisible: E, hasPublishedFolders: D = !1, isPublishHistoryResolved: O = !0, onRequestPublishHistory: k, onOpenUnpublish: A, isReadonly: j = !1 }) => {
|
|
2266
|
-
let { nameClassName: M = "dial-body-semi-text", folderLabelClassName: N = "dial-tiny-text", folderLeafClassName: P = "dial-tiny-semi-text", limitStatusBadgeClassName: F = "dial-caption-lead-semi-text" } = S?.typography ?? {},
|
|
2267
|
-
status:
|
|
2267
|
+
let { nameClassName: M = "dial-body-semi-text", folderLabelClassName: N = "dial-tiny-text", folderLeafClassName: P = "dial-tiny-semi-text", limitStatusBadgeClassName: F = "dial-caption-lead-semi-text" } = S?.typography ?? {}, ee = e.details?.limits?.status, I = ee == null ? void 0 : /* @__PURE__ */ Z(Ti, {
|
|
2268
|
+
status: ee,
|
|
2268
2269
|
className: F,
|
|
2269
|
-
label:
|
|
2270
|
-
}), L =
|
|
2270
|
+
label: ee === an.LimitReached ? x?.limitReachedLabel ?? "Limit reached" : x?.limitRunningLowLabel ?? "Running low"
|
|
2271
|
+
}), L = V(() => {
|
|
2271
2272
|
t?.(e);
|
|
2272
|
-
}, [e, t]), ne =
|
|
2273
|
+
}, [e, t]), ne = V(() => {
|
|
2273
2274
|
s?.(e);
|
|
2274
|
-
}, [e, s]), re =
|
|
2275
|
+
}, [e, s]), re = V(() => {
|
|
2275
2276
|
T?.();
|
|
2276
|
-
}, [T]), ie =
|
|
2277
|
+
}, [T]), ie = V(() => {
|
|
2277
2278
|
A?.();
|
|
2278
|
-
}, [A]), ae =
|
|
2279
|
+
}, [A]), ae = V(() => {
|
|
2279
2280
|
c?.(e);
|
|
2280
|
-
}, [e, c]), [R, oe] =
|
|
2281
|
-
|
|
2281
|
+
}, [e, c]), [R, oe] = G(!1);
|
|
2282
|
+
H(() => {
|
|
2282
2283
|
oe(!1);
|
|
2283
2284
|
}, [e.id]);
|
|
2284
|
-
let
|
|
2285
|
+
let se = V(() => {
|
|
2285
2286
|
R || (oe(!0), (async () => {
|
|
2286
2287
|
try {
|
|
2287
2288
|
await c?.(e);
|
|
@@ -2293,40 +2294,40 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2293
2294
|
e,
|
|
2294
2295
|
c,
|
|
2295
2296
|
R
|
|
2296
|
-
]), [
|
|
2297
|
-
|
|
2298
|
-
|
|
2297
|
+
]), [ce, le] = G(!1);
|
|
2298
|
+
H(() => {
|
|
2299
|
+
le(!1);
|
|
2299
2300
|
}, [e.id]);
|
|
2300
|
-
let
|
|
2301
|
-
i ?
|
|
2301
|
+
let z = V(() => {
|
|
2302
|
+
i ? le(!0) : r?.(e);
|
|
2302
2303
|
}, [
|
|
2303
2304
|
e,
|
|
2304
2305
|
r,
|
|
2305
2306
|
i
|
|
2306
|
-
]),
|
|
2307
|
-
|
|
2308
|
-
}, []),
|
|
2307
|
+
]), ue = V(() => {
|
|
2308
|
+
le(!1);
|
|
2309
|
+
}, []), de = V(() => {
|
|
2309
2310
|
f?.(e);
|
|
2310
|
-
}, [e, f]),
|
|
2311
|
+
}, [e, f]), fe = V(() => {
|
|
2311
2312
|
d?.(e);
|
|
2312
|
-
}, [e, d]),
|
|
2313
|
+
}, [e, d]), pe = V(() => {
|
|
2313
2314
|
m?.(e);
|
|
2314
|
-
}, [e, m]), { recipientsCountStatus:
|
|
2315
|
+
}, [e, m]), { recipientsCountStatus: me, recipientsCount: he, requestRecipientsCount: ge } = Ci({
|
|
2315
2316
|
item: e,
|
|
2316
2317
|
onFetchRecipientsCount: h,
|
|
2317
2318
|
onRevokeShare: m,
|
|
2318
2319
|
isRevokeShareVisible: g
|
|
2319
|
-
}), [
|
|
2320
|
-
|
|
2321
|
-
|
|
2320
|
+
}), [_e, ve] = G(!1);
|
|
2321
|
+
H(() => {
|
|
2322
|
+
ve(!1);
|
|
2322
2323
|
}, [e.id]);
|
|
2323
|
-
let
|
|
2324
|
-
|
|
2325
|
-
}, [
|
|
2326
|
-
|
|
2327
|
-
}, [
|
|
2324
|
+
let U = V((e) => {
|
|
2325
|
+
ve(e), e && (ge(), k?.());
|
|
2326
|
+
}, [ge, k]), W = V(() => {
|
|
2327
|
+
ge(), k?.();
|
|
2328
|
+
}, [ge, k]), K = V(() => {
|
|
2328
2329
|
k?.();
|
|
2329
|
-
}, [k]),
|
|
2330
|
+
}, [k]), ye = pi({
|
|
2330
2331
|
item: e,
|
|
2331
2332
|
texts: x,
|
|
2332
2333
|
isReadonly: j,
|
|
@@ -2350,43 +2351,43 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2350
2351
|
onRevokeShare: m,
|
|
2351
2352
|
onFetchRecipientsCount: h,
|
|
2352
2353
|
isRevokeShareVisible: g,
|
|
2353
|
-
recipientsCountStatus:
|
|
2354
|
-
recipientsCount:
|
|
2355
|
-
}), { shouldShowPrimaryAction:
|
|
2356
|
-
visibility:
|
|
2354
|
+
recipientsCountStatus: me,
|
|
2355
|
+
recipientsCount: he
|
|
2356
|
+
}), { shouldShowPrimaryAction: be, shouldShowUnpublish: xe, isUnpublishPending: Se, shouldShowPublish: Ce, shouldShowShareAction: we, isShareInActionRow: Te, isPublishInActionRow: Ee, authenticationType: De, credentialsUiState: Oe, shouldShowCredentialsAction: ke, isCredentialsActionPrimary: Ae, isDownloadActionPrimary: je, isApiKeyConfigured: Me, isOAuthLogoutState: Y } = ye, { manageItems: Ne, promotedManageAction: Pe } = Si({
|
|
2357
|
+
visibility: ye,
|
|
2357
2358
|
texts: x,
|
|
2358
2359
|
detailsStyles: S,
|
|
2359
|
-
recipientsCount:
|
|
2360
|
-
isManageMenuOpen:
|
|
2361
|
-
handleShare:
|
|
2360
|
+
recipientsCount: he,
|
|
2361
|
+
isManageMenuOpen: _e,
|
|
2362
|
+
handleShare: z,
|
|
2362
2363
|
handleEdit: ne,
|
|
2363
2364
|
handleDownload: ae,
|
|
2364
2365
|
handleOpenPublish: re,
|
|
2365
2366
|
handleOpenUnpublish: ie,
|
|
2366
|
-
handleDelete:
|
|
2367
|
-
handleRevokeShare:
|
|
2368
|
-
handleUnshare:
|
|
2367
|
+
handleDelete: fe,
|
|
2368
|
+
handleRevokeShare: pe,
|
|
2369
|
+
handleUnshare: de
|
|
2369
2370
|
}), Fe = {
|
|
2370
2371
|
item: e,
|
|
2371
|
-
authenticationType:
|
|
2372
|
-
credentialsUiState:
|
|
2372
|
+
authenticationType: De,
|
|
2373
|
+
credentialsUiState: Oe,
|
|
2373
2374
|
onLogin: _,
|
|
2374
2375
|
onLogout: v,
|
|
2375
2376
|
onOpenCredentialsManagement: y,
|
|
2376
2377
|
onRequestLogout: b,
|
|
2377
2378
|
texts: x,
|
|
2378
2379
|
detailsStyles: S
|
|
2379
|
-
}, Ie =
|
|
2380
|
+
}, Ie = Ae || be || je || Te && we || Ee && xe || Ee && Ce || ke && !Ae || Ne.length > 0 && !Se;
|
|
2380
2381
|
return /* @__PURE__ */ Q("div", {
|
|
2381
2382
|
className: "flex flex-col gap-3 px-6 py-4",
|
|
2382
2383
|
children: [/* @__PURE__ */ Z(te, {
|
|
2383
2384
|
item: e,
|
|
2384
2385
|
iconSize: 52,
|
|
2385
|
-
nameClassName:
|
|
2386
|
+
nameClassName: B(M, mi.name),
|
|
2386
2387
|
featuredLabel: x?.featuredLabel ?? "Featured",
|
|
2387
2388
|
typeLabel: x?.entityTypeLabels?.[e.type],
|
|
2388
2389
|
featuredChipStyle: S?.colors?.featuredChipStyle,
|
|
2389
|
-
statusBadge:
|
|
2390
|
+
statusBadge: I,
|
|
2390
2391
|
footer: e.folder.length > 0 ? /* @__PURE__ */ Z(Le, {
|
|
2391
2392
|
segments: e.folder,
|
|
2392
2393
|
labelClassName: N,
|
|
@@ -2395,27 +2396,27 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2395
2396
|
}), Ie && /* @__PURE__ */ Q("div", {
|
|
2396
2397
|
className: "flex flex-wrap items-center gap-2 ps-[60px]",
|
|
2397
2398
|
children: [
|
|
2398
|
-
|
|
2399
|
-
buttonComponent:
|
|
2399
|
+
Ae && /* @__PURE__ */ Z(vi, {
|
|
2400
|
+
buttonComponent: Me || Y ? Ze : nt,
|
|
2400
2401
|
...Fe
|
|
2401
2402
|
}),
|
|
2402
|
-
|
|
2403
|
+
be && /* @__PURE__ */ Z(nt, {
|
|
2403
2404
|
label: x?.primaryActionLabel ?? "Use in chat",
|
|
2404
|
-
iconBefore: /* @__PURE__ */ Z(It, { size:
|
|
2405
|
+
iconBefore: /* @__PURE__ */ Z(It, { size: q.MD }),
|
|
2405
2406
|
onClick: L,
|
|
2406
|
-
disabled:
|
|
2407
|
+
disabled: ee === an.LimitReached
|
|
2407
2408
|
}),
|
|
2408
|
-
|
|
2409
|
+
je && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(nt, {
|
|
2409
2410
|
label: x?.downloadActionLabel ?? "Download",
|
|
2410
2411
|
iconBefore: R ? /* @__PURE__ */ Z(ut, {
|
|
2411
|
-
size:
|
|
2412
|
+
size: q.MD,
|
|
2412
2413
|
"aria-hidden": !0
|
|
2413
2414
|
}) : /* @__PURE__ */ Z(Dt, {
|
|
2414
|
-
size:
|
|
2415
|
+
size: q.MD,
|
|
2415
2416
|
"aria-hidden": !0,
|
|
2416
|
-
stroke:
|
|
2417
|
+
stroke: J
|
|
2417
2418
|
}),
|
|
2418
|
-
onClick:
|
|
2419
|
+
onClick: se,
|
|
2419
2420
|
disabled: R,
|
|
2420
2421
|
"aria-busy": R
|
|
2421
2422
|
}), /* @__PURE__ */ Z(Ke, {
|
|
@@ -2423,51 +2424,51 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2423
2424
|
as: qe.Span,
|
|
2424
2425
|
children: R ? x?.downloadingStatusLabel ?? "Downloading" : ""
|
|
2425
2426
|
})] }),
|
|
2426
|
-
|
|
2427
|
+
Te && we && /* @__PURE__ */ Z(bi, {
|
|
2427
2428
|
item: e,
|
|
2428
2429
|
onShare: r,
|
|
2429
2430
|
shareOverlay: i,
|
|
2430
2431
|
isShareVisible: a,
|
|
2431
2432
|
label: x?.shareLabel
|
|
2432
2433
|
}),
|
|
2433
|
-
|
|
2434
|
+
Ee && xe && /* @__PURE__ */ Z(Ze, {
|
|
2434
2435
|
label: x?.unpublishLabel ?? "Unpublish",
|
|
2435
2436
|
iconBefore: /* @__PURE__ */ Z(Gt, {
|
|
2436
|
-
size:
|
|
2437
|
+
size: q.MD,
|
|
2437
2438
|
"aria-hidden": !0,
|
|
2438
|
-
stroke:
|
|
2439
|
+
stroke: J
|
|
2439
2440
|
}),
|
|
2440
2441
|
onClick: ie,
|
|
2441
|
-
onMouseEnter:
|
|
2442
|
-
onFocus:
|
|
2442
|
+
onMouseEnter: K,
|
|
2443
|
+
onFocus: K
|
|
2443
2444
|
}),
|
|
2444
|
-
|
|
2445
|
+
Ee && Ce && /* @__PURE__ */ Z(Ze, {
|
|
2445
2446
|
label: x?.publishLabel ?? "Publish",
|
|
2446
2447
|
iconBefore: /* @__PURE__ */ Z(Kt, {
|
|
2447
|
-
size:
|
|
2448
|
+
size: q.MD,
|
|
2448
2449
|
"aria-hidden": !0,
|
|
2449
|
-
stroke:
|
|
2450
|
+
stroke: J
|
|
2450
2451
|
}),
|
|
2451
2452
|
onClick: re,
|
|
2452
|
-
onMouseEnter:
|
|
2453
|
-
onFocus:
|
|
2453
|
+
onMouseEnter: K,
|
|
2454
|
+
onFocus: K
|
|
2454
2455
|
}),
|
|
2455
|
-
|
|
2456
|
+
ke && !Ae && /* @__PURE__ */ Z(vi, {
|
|
2456
2457
|
buttonComponent: Ze,
|
|
2457
2458
|
...Fe
|
|
2458
2459
|
}),
|
|
2459
|
-
!
|
|
2460
|
+
!Se && /* @__PURE__ */ Z(xi, {
|
|
2460
2461
|
item: e,
|
|
2461
2462
|
promotedManageAction: Pe,
|
|
2462
2463
|
manageItems: Ne,
|
|
2463
|
-
onManageOpenChange:
|
|
2464
|
-
onManageTriggerIntent:
|
|
2465
|
-
isShareInActionRow:
|
|
2466
|
-
shouldShowShareAction:
|
|
2464
|
+
onManageOpenChange: U,
|
|
2465
|
+
onManageTriggerIntent: W,
|
|
2466
|
+
isShareInActionRow: Te,
|
|
2467
|
+
shouldShowShareAction: we,
|
|
2467
2468
|
shareOverlay: i,
|
|
2468
|
-
isShareOverlayOpen:
|
|
2469
|
-
onShareOverlayOpenChange:
|
|
2470
|
-
onCloseShareOverlay:
|
|
2469
|
+
isShareOverlayOpen: ce,
|
|
2470
|
+
onShareOverlayOpenChange: le,
|
|
2471
|
+
onCloseShareOverlay: ue,
|
|
2471
2472
|
onShare: r,
|
|
2472
2473
|
isShareVisible: a,
|
|
2473
2474
|
texts: x
|
|
@@ -2476,25 +2477,25 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2476
2477
|
})]
|
|
2477
2478
|
});
|
|
2478
2479
|
}, Di = ({ item: e, isOpen: t, onClose: n, onDelete: r, onUnshare: a, onRevokeShare: o, onLogout: s, onUnpublish: c, texts: l, publishedFolders: u, formatFolderLabel: d }) => {
|
|
2479
|
-
let [f, p] =
|
|
2480
|
-
|
|
2480
|
+
let [f, p] = G(null), [m, h] = G(!1), [g, _] = G(null), [v, y] = G(null), [b, x] = G(null);
|
|
2481
|
+
H(() => {
|
|
2481
2482
|
x(null), p(null), h(!1), _(null), y(null);
|
|
2482
2483
|
}, [e.id]);
|
|
2483
|
-
let S =
|
|
2484
|
+
let S = V(() => {
|
|
2484
2485
|
p($.Delete);
|
|
2485
|
-
}, []), C =
|
|
2486
|
+
}, []), C = V((t) => {
|
|
2486
2487
|
y(t ?? (e.credentials == null ? null : w(e.credentials))), p($.Logout);
|
|
2487
|
-
}, [e.credentials]), T =
|
|
2488
|
+
}, [e.credentials]), T = V(() => {
|
|
2488
2489
|
p($.Unshare);
|
|
2489
|
-
}, []), E =
|
|
2490
|
+
}, []), E = V(() => {
|
|
2490
2491
|
p($.RevokeAccess);
|
|
2491
|
-
}, []), D =
|
|
2492
|
+
}, []), D = V(() => {
|
|
2492
2493
|
p($.Unpublish);
|
|
2493
|
-
}, []), O =
|
|
2494
|
+
}, []), O = V((e) => {
|
|
2494
2495
|
_(e), p($.DeleteApiKey);
|
|
2495
|
-
}, []), k =
|
|
2496
|
+
}, []), k = V(() => {
|
|
2496
2497
|
m || (p(null), _(null), y(null), x(null));
|
|
2497
|
-
}, [m]), A =
|
|
2498
|
+
}, [m]), A = V(async () => {
|
|
2498
2499
|
if (!(m || f == null)) {
|
|
2499
2500
|
h(!0);
|
|
2500
2501
|
try {
|
|
@@ -2542,7 +2543,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2542
2543
|
s,
|
|
2543
2544
|
n
|
|
2544
2545
|
]);
|
|
2545
|
-
return
|
|
2546
|
+
return H(() => {
|
|
2546
2547
|
if (!t || f == null) return;
|
|
2547
2548
|
let e = (e) => {
|
|
2548
2549
|
e.key === "Escape" && (e.stopPropagation(), k());
|
|
@@ -2565,7 +2566,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2565
2566
|
handleRequestDeleteApiKey: O,
|
|
2566
2567
|
handleCancelConfirmation: k,
|
|
2567
2568
|
handleConfirm: A,
|
|
2568
|
-
confirmationContent:
|
|
2569
|
+
confirmationContent: U(() => {
|
|
2569
2570
|
switch (f) {
|
|
2570
2571
|
case $.Delete: {
|
|
2571
2572
|
let t = l?.deleteActionLabel ?? "Delete";
|
|
@@ -2579,7 +2580,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2579
2580
|
consequences: l?.deleteConfirmConsequences ?? Qn,
|
|
2580
2581
|
confirmLabel: t,
|
|
2581
2582
|
loadingStatusLabel: l?.deletingStatusLabel ?? "Deleting",
|
|
2582
|
-
variant:
|
|
2583
|
+
variant: Oe.Danger
|
|
2583
2584
|
};
|
|
2584
2585
|
}
|
|
2585
2586
|
case $.Unshare: {
|
|
@@ -2594,7 +2595,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2594
2595
|
consequences: l?.unshareConfirmConsequences ?? $n,
|
|
2595
2596
|
confirmLabel: t,
|
|
2596
2597
|
loadingStatusLabel: l?.unsharingStatusLabel ?? "Removing",
|
|
2597
|
-
variant:
|
|
2598
|
+
variant: Oe.Info
|
|
2598
2599
|
};
|
|
2599
2600
|
}
|
|
2600
2601
|
case $.RevokeAccess: {
|
|
@@ -2609,7 +2610,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2609
2610
|
consequences: l?.revokeShareConfirmConsequences ?? tr,
|
|
2610
2611
|
confirmLabel: t,
|
|
2611
2612
|
loadingStatusLabel: l?.revokingShareStatusLabel ?? "Revoking access",
|
|
2612
|
-
variant:
|
|
2613
|
+
variant: Oe.Danger
|
|
2613
2614
|
};
|
|
2614
2615
|
}
|
|
2615
2616
|
case $.Unpublish: {
|
|
@@ -2630,7 +2631,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2630
2631
|
consequences: l?.unpublishConfirmConsequences ?? er,
|
|
2631
2632
|
confirmLabel: t,
|
|
2632
2633
|
loadingStatusLabel: l?.unpublishingStatusLabel ?? "Requesting unpublish",
|
|
2633
|
-
variant:
|
|
2634
|
+
variant: Oe.Danger
|
|
2634
2635
|
};
|
|
2635
2636
|
}
|
|
2636
2637
|
case $.Logout: {
|
|
@@ -2641,7 +2642,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2641
2642
|
consequences: void 0,
|
|
2642
2643
|
confirmLabel: e,
|
|
2643
2644
|
loadingStatusLabel: l?.loggingOutStatusLabel ?? "Logging out",
|
|
2644
|
-
variant:
|
|
2645
|
+
variant: Oe.Info
|
|
2645
2646
|
};
|
|
2646
2647
|
}
|
|
2647
2648
|
case $.DeleteApiKey: {
|
|
@@ -2652,8 +2653,8 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2652
2653
|
consequences: void 0,
|
|
2653
2654
|
confirmLabel: e,
|
|
2654
2655
|
loadingStatusLabel: l?.deletingStatusLabel ?? "Deleting",
|
|
2655
|
-
variant:
|
|
2656
|
-
cardVariant:
|
|
2656
|
+
variant: Oe.Danger,
|
|
2657
|
+
cardVariant: Oe.Info
|
|
2657
2658
|
};
|
|
2658
2659
|
}
|
|
2659
2660
|
default: return null;
|
|
@@ -2669,22 +2670,22 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2669
2670
|
isConfirmDisabled: f === $.Unpublish && qn(u, b) == null
|
|
2670
2671
|
};
|
|
2671
2672
|
}, Oi = ({ item: e, onLoadContentFile: t, onLoadContentFilePreview: n, renderContentFilePreview: r, texts: i }) => {
|
|
2672
|
-
let a = e.details?.promptContent, o = a?.selectedFileId, [s, c] =
|
|
2673
|
+
let a = e.details?.promptContent, o = a?.selectedFileId, [s, c] = G(null), [l, u] = G(!1), [d, f] = G(/* @__PURE__ */ new Set()), [p, m] = G(!1), h = W(null), g = W(0), _ = V((e) => {
|
|
2673
2674
|
let t = h.current, n = e?.preview?.type === fn.Image ? e.preview.url : null;
|
|
2674
2675
|
t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), h.current = n, c(e);
|
|
2675
2676
|
}, []);
|
|
2676
|
-
|
|
2677
|
+
H(() => {
|
|
2677
2678
|
g.current += 1, _(null), u(!1), f(Pr(a?.files ?? [])), m(!1);
|
|
2678
|
-
}, [e.id, o]),
|
|
2679
|
+
}, [e.id, o]), H(() => () => {
|
|
2679
2680
|
let e = h.current;
|
|
2680
2681
|
e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
|
|
2681
2682
|
}, []);
|
|
2682
|
-
let v =
|
|
2683
|
+
let v = V((e) => {
|
|
2683
2684
|
f((t) => {
|
|
2684
2685
|
let n = new Set(t);
|
|
2685
2686
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
2686
2687
|
});
|
|
2687
|
-
}, []), y =
|
|
2688
|
+
}, []), y = V(async (e) => {
|
|
2688
2689
|
if (e === o) {
|
|
2689
2690
|
g.current += 1, _(null), u(!1);
|
|
2690
2691
|
return;
|
|
@@ -2747,7 +2748,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2747
2748
|
renderedContentFilePreview: s != null && r != null ? r(s.id, Fr(a?.files ?? [], s.id) ?? "") : void 0
|
|
2748
2749
|
};
|
|
2749
2750
|
}, ki = ({ item: e, isReadonly: t = !1, getPublishHistory: n, getPublishDependencies: r, publishFolderItems: i = Yn, hasPublishWriteAccess: a, publishDefaultAuthor: o, onPublish: s, onPublishSuccess: c, onPublishError: l, onCreatePublishFolder: u, onFetchExistingRules: d, onUnpublish: f, isUnpublishVisible: p, publishLabels: m }) => {
|
|
2750
|
-
let [h, g] =
|
|
2751
|
+
let [h, g] = G(!1), [_, v] = G([]), [y, b] = G(!1), x = W(null), S = V(() => {
|
|
2751
2752
|
if (!n || x.current === e.id) return;
|
|
2752
2753
|
let t = e.id;
|
|
2753
2754
|
x.current = t, (async () => {
|
|
@@ -2761,15 +2762,15 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2761
2762
|
}
|
|
2762
2763
|
})();
|
|
2763
2764
|
}, [n, e]);
|
|
2764
|
-
|
|
2765
|
+
H(() => {
|
|
2765
2766
|
h && S();
|
|
2766
2767
|
}, [h, S]);
|
|
2767
|
-
let [C, w] =
|
|
2768
|
-
|
|
2768
|
+
let [C, w] = G(), T = W(r), E = W(e);
|
|
2769
|
+
H(() => {
|
|
2769
2770
|
T.current = r, E.current = e;
|
|
2770
2771
|
}, [r, e]);
|
|
2771
2772
|
let D = r != null, k = e.id;
|
|
2772
|
-
|
|
2773
|
+
H(() => {
|
|
2773
2774
|
if (!h || !D) return;
|
|
2774
2775
|
let e = !1;
|
|
2775
2776
|
return (async () => {
|
|
@@ -2791,7 +2792,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2791
2792
|
]);
|
|
2792
2793
|
let A;
|
|
2793
2794
|
D && (A = C?.itemId === k ? C.dependencies : Xn);
|
|
2794
|
-
let j =
|
|
2795
|
+
let j = V((e, t) => {
|
|
2795
2796
|
x.current = null, b(!1), S(), c?.(e, t);
|
|
2796
2797
|
}, [S, c]), M = Zt({
|
|
2797
2798
|
item: e,
|
|
@@ -2804,7 +2805,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2804
2805
|
onPublishSuccess: j,
|
|
2805
2806
|
onPublishError: l,
|
|
2806
2807
|
onFetchExistingRules: d
|
|
2807
|
-
}), N = e.type === P.Toolset && O(e.credentials), F =
|
|
2808
|
+
}), N = e.type === P.Toolset && O(e.credentials), F = U(() => Xt({
|
|
2808
2809
|
hasSelectedFolder: M.selectedFolderPath != null,
|
|
2809
2810
|
hasExistingPublicationInFolder: M.hasExistingPublicationInFolder,
|
|
2810
2811
|
hasWriteAccess: M.hasWriteAccess,
|
|
@@ -2818,14 +2819,14 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2818
2819
|
M.isSubmitting,
|
|
2819
2820
|
M.hasSubmitError
|
|
2820
2821
|
]);
|
|
2821
|
-
|
|
2822
|
+
H(() => {
|
|
2822
2823
|
g(!1), M.reset(), v([]), b(!1), x.current = null;
|
|
2823
2824
|
}, [e.id]);
|
|
2824
|
-
let
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
}, [
|
|
2828
|
-
let
|
|
2825
|
+
let ee = !t && !!f && p?.(e) === !0;
|
|
2826
|
+
H(() => {
|
|
2827
|
+
ee && S();
|
|
2828
|
+
}, [ee, S]);
|
|
2829
|
+
let I = U(() => {
|
|
2829
2830
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
2830
2831
|
for (let n of _) {
|
|
2831
2832
|
let r = n.folderPath.join("/");
|
|
@@ -2835,13 +2836,13 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2835
2836
|
}));
|
|
2836
2837
|
}
|
|
2837
2838
|
return t;
|
|
2838
|
-
}, [_]), L = y &&
|
|
2839
|
+
}, [_]), L = y && I.length > 0, te = V((e) => e || (m?.rootFolderLabel ?? "Organization"), [m]), ne = V(() => g(!0), []), re = V(() => {
|
|
2839
2840
|
g(!1), M.reset();
|
|
2840
2841
|
}, [M]), ie = Qt({
|
|
2841
2842
|
isOpen: h,
|
|
2842
2843
|
selectedFolderPath: M.selectedFolderPath,
|
|
2843
2844
|
onSelectedFolderPathChange: M.setSelectedFolderPath
|
|
2844
|
-
}), ae = ie.view === Yt.ChangeFolder, R =
|
|
2845
|
+
}), ae = ie.view === Yt.ChangeFolder, R = V(async () => {
|
|
2845
2846
|
await M.handleSubmit() && re();
|
|
2846
2847
|
}, [M, re]);
|
|
2847
2848
|
return {
|
|
@@ -2852,7 +2853,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2852
2853
|
publishDependencies: A,
|
|
2853
2854
|
isPublishCredentialsEligible: N,
|
|
2854
2855
|
publishDerived: F,
|
|
2855
|
-
publishedFolders:
|
|
2856
|
+
publishedFolders: I,
|
|
2856
2857
|
hasPublishedFolders: L,
|
|
2857
2858
|
formatFolderLabel: te,
|
|
2858
2859
|
handleOpenPublish: ne,
|
|
@@ -2861,195 +2862,210 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
2861
2862
|
isPublishFolderView: ae,
|
|
2862
2863
|
handleSubmitPublish: R
|
|
2863
2864
|
};
|
|
2864
|
-
}, Ai = ({ item: e, isOpen: t, isStarred: r = !1, isDetailsLoading: i = !1, isReadonly: a = !1, onClose: o, onToggleFavorite: s, isFavoriteVisible: c, onUseInChat: l, isPrimaryActionVisible: u, onShare: d, isPublishVisible: f, isPublishPrimary: p, getPublishHistory: m, getPublishDependencies: h, resolvePublishDependenciesLabels: g, resolvePublishApprovalLabels: _,
|
|
2865
|
-
let { subViewTitleClassName:
|
|
2865
|
+
}, Ai = ({ item: e, isOpen: t, isStarred: r = !1, isDetailsLoading: i = !1, isReadonly: a = !1, onClose: o, onToggleFavorite: s, isFavoriteVisible: c, onUseInChat: l, isPrimaryActionVisible: u, onShare: d, isPublishVisible: f, isPublishPrimary: p, getPublishHistory: m, getPublishDependencies: h, resolvePublishDependenciesLabels: g, resolvePublishApprovalLabels: _, publishVersionHistory: v, onPublishOpenChange: y, publishFolderItems: b = Yn, publishExpandedPaths: S, onPublishExpandedPathsChange: C, publishLoadingPaths: w, hasPublishWriteAccess: T, publishDefaultAuthor: D, onPublish: O, onPublishSuccess: k, onPublishError: A, onCreatePublishFolder: j, publishLabels: M, ruleSourceOptions: N = Zn, onFetchExistingRules: P, shareOverlay: I, isShareVisible: L, isSharePrimary: te, onEdit: ne, onDownload: re, isDownloadVisible: ie, isDownloadPrimary: ae, onLoadContentFile: R, onLoadContentFilePreview: oe, renderContentFilePreview: se, renderContentFileTree: ce, renderCredentials: le, onDelete: z, onUnshare: ue, isUnshareVisible: de, onRevokeShare: fe, onFetchRecipientsCount: pe, isRevokeShareVisible: me, onUnpublish: he, isUnpublishVisible: ge, onLogin: _e, onLogout: ve, texts: K, styles: ye, limitsFooterNote: be }) => {
|
|
2866
|
+
let { subViewTitleClassName: xe = "dial-body-semi-text", confirmMessageClassName: Se = "dial-small-text" } = ye?.typography ?? {}, Ce = ye?.colors, we = ar(Ce), [Te, Ee] = G(r), [De, Oe] = G(""), q = Oi({
|
|
2866
2867
|
item: e,
|
|
2867
|
-
onLoadContentFile:
|
|
2868
|
-
onLoadContentFilePreview:
|
|
2869
|
-
renderContentFilePreview:
|
|
2870
|
-
texts:
|
|
2871
|
-
}), { isPublishOpen:
|
|
2868
|
+
onLoadContentFile: R,
|
|
2869
|
+
onLoadContentFilePreview: oe,
|
|
2870
|
+
renderContentFilePreview: se,
|
|
2871
|
+
texts: K
|
|
2872
|
+
}), { isPublishOpen: J, isPublishHistoryResolved: ke, requestPublishHistory: Ae, publishFlow: je, publishDependencies: Me, isPublishCredentialsEligible: Y, publishDerived: Ne, publishedFolders: Pe, hasPublishedFolders: Fe, formatFolderLabel: Ie, handleOpenPublish: Le, handleClosePublish: Re, publishFolderView: ze, isPublishFolderView: Be, handleSubmitPublish: Ve } = ki({
|
|
2872
2873
|
item: e,
|
|
2873
2874
|
isReadonly: a,
|
|
2874
2875
|
getPublishHistory: m,
|
|
2875
2876
|
getPublishDependencies: h,
|
|
2876
|
-
publishFolderItems:
|
|
2877
|
-
hasPublishWriteAccess:
|
|
2878
|
-
publishDefaultAuthor:
|
|
2879
|
-
onPublish:
|
|
2880
|
-
onPublishSuccess:
|
|
2881
|
-
onPublishError:
|
|
2882
|
-
onCreatePublishFolder:
|
|
2883
|
-
onFetchExistingRules:
|
|
2884
|
-
onUnpublish:
|
|
2885
|
-
isUnpublishVisible:
|
|
2886
|
-
publishLabels:
|
|
2887
|
-
}), { confirmation:
|
|
2877
|
+
publishFolderItems: b,
|
|
2878
|
+
hasPublishWriteAccess: T,
|
|
2879
|
+
publishDefaultAuthor: D,
|
|
2880
|
+
onPublish: O,
|
|
2881
|
+
onPublishSuccess: k,
|
|
2882
|
+
onPublishError: A,
|
|
2883
|
+
onCreatePublishFolder: j,
|
|
2884
|
+
onFetchExistingRules: P,
|
|
2885
|
+
onUnpublish: he,
|
|
2886
|
+
isUnpublishVisible: ge,
|
|
2887
|
+
publishLabels: M
|
|
2888
|
+
}), { confirmation: He, isConfirming: Ue, selectedUnpublishFolder: We, setSelectedUnpublishFolder: Ge, handleRequestDelete: Ke, handleRequestLogout: qe, handleRequestUnshare: Je, handleRequestRevokeShare: Ye, handleRequestUnpublish: Xe, handleRequestDeleteApiKey: Ze, handleCancelConfirmation: Qe, handleConfirm: $e, confirmationContent: et, isConfirmDisabled: tt } = Di({
|
|
2888
2889
|
item: e,
|
|
2889
2890
|
isOpen: t,
|
|
2890
2891
|
onClose: o,
|
|
2891
|
-
onDelete:
|
|
2892
|
-
onUnshare:
|
|
2893
|
-
onRevokeShare:
|
|
2894
|
-
onLogout:
|
|
2895
|
-
onUnpublish:
|
|
2896
|
-
texts:
|
|
2897
|
-
publishedFolders:
|
|
2898
|
-
formatFolderLabel:
|
|
2899
|
-
}), [
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
}
|
|
2903
|
-
|
|
2892
|
+
onDelete: z,
|
|
2893
|
+
onUnshare: ue,
|
|
2894
|
+
onRevokeShare: fe,
|
|
2895
|
+
onLogout: ve,
|
|
2896
|
+
onUnpublish: he,
|
|
2897
|
+
texts: K,
|
|
2898
|
+
publishedFolders: Pe,
|
|
2899
|
+
formatFolderLabel: Ie
|
|
2900
|
+
}), [nt, rt] = G(!1), at = W({
|
|
2901
|
+
onPublishOpenChange: y,
|
|
2902
|
+
item: e
|
|
2903
|
+
});
|
|
2904
|
+
H(() => {
|
|
2905
|
+
at.current = {
|
|
2906
|
+
onPublishOpenChange: y,
|
|
2907
|
+
item: e
|
|
2908
|
+
};
|
|
2909
|
+
}, [y, e]), H(() => {
|
|
2910
|
+
let { onPublishOpenChange: e, item: t } = at.current;
|
|
2911
|
+
return e?.(J, t), () => {
|
|
2912
|
+
let { onPublishOpenChange: e, item: t } = at.current;
|
|
2913
|
+
e?.(!1, t);
|
|
2914
|
+
};
|
|
2915
|
+
}, [J, e.id]), H(() => {
|
|
2916
|
+
Ee(r);
|
|
2917
|
+
}, [e.id, r]), H(() => {
|
|
2918
|
+
Oe(""), rt(!1);
|
|
2904
2919
|
}, [e.id]);
|
|
2905
|
-
let
|
|
2906
|
-
let t = !
|
|
2907
|
-
|
|
2920
|
+
let ot = V(() => rt(!0), []), ct = V(() => rt(!1), []), lt = V(() => {
|
|
2921
|
+
let t = !Te;
|
|
2922
|
+
Ee(t), s?.(e.id, t);
|
|
2908
2923
|
}, [
|
|
2909
|
-
|
|
2924
|
+
Te,
|
|
2910
2925
|
e.id,
|
|
2911
2926
|
s
|
|
2912
|
-
]),
|
|
2927
|
+
]), ut = U(() => {
|
|
2913
2928
|
let t = {
|
|
2914
|
-
[n.About]:
|
|
2915
|
-
[n.Content]:
|
|
2916
|
-
[n.Overview]:
|
|
2917
|
-
[n.Pricing]:
|
|
2918
|
-
[n.Limits]:
|
|
2919
|
-
[n.Api]:
|
|
2920
|
-
[n.Tools]:
|
|
2929
|
+
[n.About]: K?.tabAboutLabel ?? "About",
|
|
2930
|
+
[n.Content]: K?.tabContentLabel ?? "Details",
|
|
2931
|
+
[n.Overview]: K?.tabOverviewLabel ?? "Overview",
|
|
2932
|
+
[n.Pricing]: K?.tabPricingLabel ?? "Pricing",
|
|
2933
|
+
[n.Limits]: K?.tabLimitsLabel ?? "Limits",
|
|
2934
|
+
[n.Api]: K?.tabConnectLabel ?? "Connect",
|
|
2935
|
+
[n.Tools]: K?.tabToolsLabel ?? "Tools"
|
|
2921
2936
|
};
|
|
2922
2937
|
return x(e).map((e) => ({
|
|
2923
2938
|
id: e,
|
|
2924
2939
|
label: t[e]
|
|
2925
2940
|
}));
|
|
2926
|
-
}, [e,
|
|
2927
|
-
|
|
2928
|
-
let t =
|
|
2929
|
-
|
|
2941
|
+
}, [e, K]), dt = W(null);
|
|
2942
|
+
H(() => {
|
|
2943
|
+
let t = dt.current !== e.id;
|
|
2944
|
+
dt.current = e.id, (t || !ut.some((e) => e.id === De)) && Oe(ut[0]?.id ?? "");
|
|
2930
2945
|
}, [
|
|
2931
2946
|
e.id,
|
|
2932
|
-
|
|
2933
|
-
|
|
2947
|
+
ut,
|
|
2948
|
+
De
|
|
2934
2949
|
]);
|
|
2935
|
-
let
|
|
2936
|
-
title:
|
|
2937
|
-
isBackDisabled:
|
|
2938
|
-
onBack:
|
|
2939
|
-
} :
|
|
2940
|
-
title:
|
|
2941
|
-
isBackDisabled:
|
|
2942
|
-
onBack:
|
|
2943
|
-
} :
|
|
2944
|
-
title:
|
|
2950
|
+
let ft = K?.ariaLabel ?? "Item details", pt = K?.closeAriaLabel ?? "Close", mt = Te ? K?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : K?.addToFavoritesAriaLabel ?? "Add to favorites", ht = K?.publishTitle ?? "Publish", gt = K?.backToDetailsAriaLabel ?? "Back", _t = K?.cancelLabel ?? "Cancel", vt = et != null, yt = vt || J || nt, bt = e.credentials == null ? "" : (K?.credentialsManagementTitle ?? nr)(e.credentials.authenticationType), xt = vt ? {
|
|
2951
|
+
title: et.title,
|
|
2952
|
+
isBackDisabled: Ue,
|
|
2953
|
+
onBack: Qe
|
|
2954
|
+
} : J ? {
|
|
2955
|
+
title: Be ? K?.publishChangeFolderTitle ?? "Change folder" : ht,
|
|
2956
|
+
isBackDisabled: je.isSubmitting,
|
|
2957
|
+
onBack: Be ? ze.backToMain : Re
|
|
2958
|
+
} : nt ? {
|
|
2959
|
+
title: bt,
|
|
2945
2960
|
isBackDisabled: !1,
|
|
2946
|
-
onBack:
|
|
2947
|
-
} : null,
|
|
2961
|
+
onBack: ct
|
|
2962
|
+
} : null, St = xt?.title ?? ft;
|
|
2948
2963
|
return /* @__PURE__ */ Q(st, {
|
|
2949
2964
|
open: t,
|
|
2950
2965
|
onClose: o,
|
|
2951
|
-
header:
|
|
2952
|
-
ariaLabel:
|
|
2953
|
-
onBack:
|
|
2954
|
-
backAriaLabel:
|
|
2955
|
-
backDisabled:
|
|
2956
|
-
hideClose:
|
|
2957
|
-
closeAriaLabel:
|
|
2958
|
-
headerActions:
|
|
2959
|
-
isStarred:
|
|
2960
|
-
ariaLabel:
|
|
2961
|
-
onClick:
|
|
2966
|
+
header: xt?.title,
|
|
2967
|
+
ariaLabel: St,
|
|
2968
|
+
onBack: xt?.onBack,
|
|
2969
|
+
backAriaLabel: gt,
|
|
2970
|
+
backDisabled: xt?.isBackDisabled,
|
|
2971
|
+
hideClose: xt != null,
|
|
2972
|
+
closeAriaLabel: pt,
|
|
2973
|
+
headerActions: xt == null && !a && c?.(e) !== !1 ? /* @__PURE__ */ Z(Fn, {
|
|
2974
|
+
isStarred: Te,
|
|
2975
|
+
ariaLabel: mt,
|
|
2976
|
+
onClick: lt
|
|
2962
2977
|
}) : void 0,
|
|
2963
|
-
style:
|
|
2964
|
-
overlayStyle:
|
|
2965
|
-
className:
|
|
2978
|
+
style: we,
|
|
2979
|
+
overlayStyle: we,
|
|
2980
|
+
className: B(Sr.panel, "tablet:w-[540px]! tablet:max-w-[calc(100%-32px)]!"),
|
|
2966
2981
|
overlayClassName: Sr.backdrop,
|
|
2967
2982
|
headerClassName: Sr.divider,
|
|
2968
|
-
titleClassName:
|
|
2983
|
+
titleClassName: B(xe, Sr.publishTitle),
|
|
2969
2984
|
bodyClassName: "flex flex-col overflow-hidden",
|
|
2970
2985
|
children: [
|
|
2971
2986
|
/* @__PURE__ */ Q("div", {
|
|
2972
|
-
className:
|
|
2987
|
+
className: B("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", Sr.content),
|
|
2973
2988
|
children: [
|
|
2974
|
-
|
|
2989
|
+
vt && /* @__PURE__ */ Z(ee, {
|
|
2975
2990
|
item: e,
|
|
2976
|
-
message:
|
|
2977
|
-
consequences:
|
|
2978
|
-
variant:
|
|
2979
|
-
messageClassName:
|
|
2991
|
+
message: et.message,
|
|
2992
|
+
consequences: et.consequences,
|
|
2993
|
+
variant: et.cardVariant ?? et.variant,
|
|
2994
|
+
messageClassName: Se,
|
|
2980
2995
|
styles: { colors: {
|
|
2981
|
-
messageText:
|
|
2982
|
-
consequenceText:
|
|
2983
|
-
cardBackground:
|
|
2984
|
-
cardDangerBackground:
|
|
2996
|
+
messageText: Ce?.confirmMessageText,
|
|
2997
|
+
consequenceText: Ce?.confirmConsequenceText,
|
|
2998
|
+
cardBackground: Ce?.infoCardBackground,
|
|
2999
|
+
cardDangerBackground: Ce?.infoCardDangerBackground
|
|
2985
3000
|
} },
|
|
2986
|
-
children:
|
|
2987
|
-
ariaLabel:
|
|
2988
|
-
value:
|
|
2989
|
-
onChange:
|
|
2990
|
-
disabled:
|
|
2991
|
-
items:
|
|
3001
|
+
children: He === $.Unpublish && Pe.length > 1 && /* @__PURE__ */ Z(it, {
|
|
3002
|
+
ariaLabel: K?.unpublishFolderGroupAriaLabel ?? "Published folders",
|
|
3003
|
+
value: We ?? void 0,
|
|
3004
|
+
onChange: Ge,
|
|
3005
|
+
disabled: Ue,
|
|
3006
|
+
items: Pe.map((e) => ({
|
|
2992
3007
|
value: e.key,
|
|
2993
|
-
label:
|
|
3008
|
+
label: Ie(e.key)
|
|
2994
3009
|
})),
|
|
2995
|
-
radioClassName:
|
|
3010
|
+
radioClassName: Se
|
|
2996
3011
|
})
|
|
2997
3012
|
}),
|
|
2998
|
-
!
|
|
3013
|
+
!vt && !J && nt && /* @__PURE__ */ Z(xr, {
|
|
2999
3014
|
item: e,
|
|
3000
|
-
onLogin:
|
|
3001
|
-
onRequestLogout:
|
|
3002
|
-
onRequestDeleteApiKey:
|
|
3003
|
-
texts:
|
|
3004
|
-
detailsStyles:
|
|
3015
|
+
onLogin: _e,
|
|
3016
|
+
onRequestLogout: qe,
|
|
3017
|
+
onRequestDeleteApiKey: Ze,
|
|
3018
|
+
texts: K,
|
|
3019
|
+
detailsStyles: ye
|
|
3005
3020
|
}),
|
|
3006
|
-
!
|
|
3021
|
+
!vt && J && /* @__PURE__ */ Z(Cr, {
|
|
3007
3022
|
item: e,
|
|
3008
|
-
publishFlow:
|
|
3009
|
-
publishDependencies:
|
|
3010
|
-
publishFolderView:
|
|
3011
|
-
isPublishCredentialsEligible:
|
|
3012
|
-
publishExpandedPaths:
|
|
3013
|
-
onPublishExpandedPathsChange:
|
|
3014
|
-
publishLoadingPaths:
|
|
3015
|
-
ruleSourceOptions:
|
|
3016
|
-
publishLabels:
|
|
3023
|
+
publishFlow: je,
|
|
3024
|
+
publishDependencies: Me,
|
|
3025
|
+
publishFolderView: ze,
|
|
3026
|
+
isPublishCredentialsEligible: Y,
|
|
3027
|
+
publishExpandedPaths: S,
|
|
3028
|
+
onPublishExpandedPathsChange: C,
|
|
3029
|
+
publishLoadingPaths: w,
|
|
3030
|
+
ruleSourceOptions: N,
|
|
3031
|
+
publishLabels: M,
|
|
3017
3032
|
resolvePublishDependenciesLabels: g,
|
|
3018
|
-
resolvePublishApprovalLabels: _
|
|
3033
|
+
resolvePublishApprovalLabels: _,
|
|
3034
|
+
publishVersionHistory: v
|
|
3019
3035
|
}),
|
|
3020
|
-
!
|
|
3036
|
+
!yt && /* @__PURE__ */ Q(X, { children: [
|
|
3021
3037
|
/* @__PURE__ */ Z(Ei, {
|
|
3022
3038
|
item: e,
|
|
3023
3039
|
onUseInChat: l,
|
|
3024
3040
|
isPrimaryActionVisible: u,
|
|
3025
3041
|
onShare: d,
|
|
3026
|
-
shareOverlay:
|
|
3027
|
-
isShareVisible:
|
|
3028
|
-
isSharePrimary:
|
|
3042
|
+
shareOverlay: I,
|
|
3043
|
+
isShareVisible: L,
|
|
3044
|
+
isSharePrimary: te,
|
|
3029
3045
|
isPublishVisible: f,
|
|
3030
3046
|
isPublishPrimary: p,
|
|
3031
|
-
onOpenPublish:
|
|
3032
|
-
isUnpublishVisible:
|
|
3033
|
-
hasPublishedFolders:
|
|
3034
|
-
isPublishHistoryResolved: m == null ||
|
|
3035
|
-
onRequestPublishHistory:
|
|
3036
|
-
onOpenUnpublish:
|
|
3037
|
-
onEdit:
|
|
3038
|
-
onDownload:
|
|
3039
|
-
isDownloadVisible:
|
|
3040
|
-
isDownloadPrimary:
|
|
3041
|
-
onDelete:
|
|
3042
|
-
onUnshare:
|
|
3043
|
-
isUnshareVisible:
|
|
3044
|
-
onRevokeShare:
|
|
3045
|
-
onFetchRecipientsCount:
|
|
3046
|
-
isRevokeShareVisible:
|
|
3047
|
-
onLogin:
|
|
3048
|
-
onLogout:
|
|
3049
|
-
onOpenCredentialsManagement:
|
|
3050
|
-
onRequestLogout:
|
|
3051
|
-
texts:
|
|
3052
|
-
detailsStyles:
|
|
3047
|
+
onOpenPublish: Le,
|
|
3048
|
+
isUnpublishVisible: ge,
|
|
3049
|
+
hasPublishedFolders: Fe,
|
|
3050
|
+
isPublishHistoryResolved: m == null || ke,
|
|
3051
|
+
onRequestPublishHistory: Ae,
|
|
3052
|
+
onOpenUnpublish: he ? Xe : void 0,
|
|
3053
|
+
onEdit: ne,
|
|
3054
|
+
onDownload: re,
|
|
3055
|
+
isDownloadVisible: ie,
|
|
3056
|
+
isDownloadPrimary: ae,
|
|
3057
|
+
onDelete: z ? Ke : void 0,
|
|
3058
|
+
onUnshare: ue ? Je : void 0,
|
|
3059
|
+
isUnshareVisible: de,
|
|
3060
|
+
onRevokeShare: fe ? Ye : void 0,
|
|
3061
|
+
onFetchRecipientsCount: pe,
|
|
3062
|
+
isRevokeShareVisible: me,
|
|
3063
|
+
onLogin: _e,
|
|
3064
|
+
onLogout: ve,
|
|
3065
|
+
onOpenCredentialsManagement: ot,
|
|
3066
|
+
onRequestLogout: qe,
|
|
3067
|
+
texts: K,
|
|
3068
|
+
detailsStyles: ye,
|
|
3053
3069
|
isReadonly: a
|
|
3054
3070
|
}),
|
|
3055
3071
|
e.credentials != null && (() => {
|
|
@@ -3059,49 +3075,49 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3059
3075
|
children: /* @__PURE__ */ Z(_r, {
|
|
3060
3076
|
state: t,
|
|
3061
3077
|
authenticationType: e.credentials.authenticationType,
|
|
3062
|
-
texts:
|
|
3078
|
+
texts: K
|
|
3063
3079
|
})
|
|
3064
3080
|
});
|
|
3065
3081
|
})(),
|
|
3066
|
-
!a && t &&
|
|
3082
|
+
!a && t && le?.(e),
|
|
3067
3083
|
/* @__PURE__ */ Z(ui, {
|
|
3068
3084
|
item: e,
|
|
3069
|
-
tabs:
|
|
3070
|
-
activeTab:
|
|
3071
|
-
onTabChange:
|
|
3085
|
+
tabs: ut,
|
|
3086
|
+
activeTab: De,
|
|
3087
|
+
onTabChange: Oe,
|
|
3072
3088
|
isDetailsLoading: i,
|
|
3073
|
-
contentFile:
|
|
3074
|
-
renderContentFileTree:
|
|
3075
|
-
texts:
|
|
3076
|
-
detailsStyles:
|
|
3077
|
-
limitsFooterNote:
|
|
3089
|
+
contentFile: q,
|
|
3090
|
+
renderContentFileTree: ce,
|
|
3091
|
+
texts: K,
|
|
3092
|
+
detailsStyles: ye,
|
|
3093
|
+
limitsFooterNote: be
|
|
3078
3094
|
})
|
|
3079
3095
|
] })
|
|
3080
3096
|
]
|
|
3081
3097
|
}),
|
|
3082
|
-
|
|
3083
|
-
confirmLabel:
|
|
3084
|
-
cancelLabel:
|
|
3085
|
-
variant:
|
|
3086
|
-
isLoading:
|
|
3087
|
-
isConfirmDisabled:
|
|
3088
|
-
loadingStatusLabel:
|
|
3089
|
-
styles: { colors: { border:
|
|
3090
|
-
onConfirm:
|
|
3091
|
-
onCancel:
|
|
3098
|
+
vt && /* @__PURE__ */ Z(F, {
|
|
3099
|
+
confirmLabel: et.confirmLabel,
|
|
3100
|
+
cancelLabel: _t,
|
|
3101
|
+
variant: et.variant,
|
|
3102
|
+
isLoading: Ue,
|
|
3103
|
+
isConfirmDisabled: tt,
|
|
3104
|
+
loadingStatusLabel: et.loadingStatusLabel,
|
|
3105
|
+
styles: { colors: { border: Ce?.confirmFooterBorder } },
|
|
3106
|
+
onConfirm: $e,
|
|
3107
|
+
onCancel: Qe
|
|
3092
3108
|
}),
|
|
3093
|
-
!
|
|
3109
|
+
!vt && J && /* @__PURE__ */ Z(qt, {
|
|
3094
3110
|
version: e.version,
|
|
3095
|
-
hasExistingPublicationInFolder:
|
|
3111
|
+
hasExistingPublicationInFolder: je.hasExistingPublicationInFolder,
|
|
3096
3112
|
allowReplace: !1,
|
|
3097
|
-
isSubmitDisabled:
|
|
3098
|
-
isSubmitLoading:
|
|
3099
|
-
onCancel:
|
|
3100
|
-
onSubmit:
|
|
3101
|
-
view:
|
|
3102
|
-
onSelectFolder:
|
|
3103
|
-
isSelectFolderDisabled:
|
|
3104
|
-
labels:
|
|
3113
|
+
isSubmitDisabled: Ne.isSubmitDisabled,
|
|
3114
|
+
isSubmitLoading: Ne.isSubmitLoading,
|
|
3115
|
+
onCancel: Be ? ze.backToMain : Re,
|
|
3116
|
+
onSubmit: Ve,
|
|
3117
|
+
view: ze.view,
|
|
3118
|
+
onSelectFolder: ze.selectFolder,
|
|
3119
|
+
isSelectFolderDisabled: ze.pendingFolderPath == null,
|
|
3120
|
+
labels: M
|
|
3105
3121
|
})
|
|
3106
3122
|
]
|
|
3107
3123
|
});
|
|
@@ -3134,16 +3150,16 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3134
3150
|
favoriteCard: "_favoriteCard_iy8tl_101",
|
|
3135
3151
|
cardButton: "_cardButton_iy8tl_101"
|
|
3136
3152
|
}, Fi = ({ 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, focusOutlineColor: m }) => {
|
|
3137
|
-
let [h, g] =
|
|
3153
|
+
let [h, g] = G(t), [_, v] = G(!1), y = (t) => {
|
|
3138
3154
|
t.stopPropagation();
|
|
3139
3155
|
let r = !h;
|
|
3140
3156
|
g(r), r ? n?.(e.id, r) : v(!0);
|
|
3141
3157
|
}, b = i && !_ ? () => i(e) : void 0;
|
|
3142
|
-
return /* @__PURE__ */ Q(
|
|
3158
|
+
return /* @__PURE__ */ Q(Ee, {
|
|
3143
3159
|
"data-card-id": e.id,
|
|
3144
3160
|
"aria-label": e.name,
|
|
3145
|
-
style:
|
|
3146
|
-
className:
|
|
3161
|
+
style: z({ "--fc-focus-outline": m }),
|
|
3162
|
+
className: B("box-border min-w-0 cursor-pointer flex-row items-center gap-3 p-5 text-start", Pi.favoriteCard, _ && Pi.cardLeaving, f && Pi.selectedCard, mn.favoriteCard),
|
|
3147
3163
|
onClick: b,
|
|
3148
3164
|
onAnimationEnd: _ ? (t) => {
|
|
3149
3165
|
t.currentTarget === t.target && n?.(e.id, !1);
|
|
@@ -3151,14 +3167,14 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3151
3167
|
children: [
|
|
3152
3168
|
b != null && /* @__PURE__ */ Z("button", {
|
|
3153
3169
|
type: "button",
|
|
3154
|
-
className:
|
|
3170
|
+
className: B("sr-only", Pi.cardButton),
|
|
3155
3171
|
children: e.name
|
|
3156
3172
|
}),
|
|
3157
3173
|
f && /* @__PURE__ */ Z(xt, {
|
|
3158
|
-
size:
|
|
3159
|
-
className:
|
|
3174
|
+
size: q.SM,
|
|
3175
|
+
className: B("absolute inset-e-3 top-3 shrink-0", Pi.selectedCheck),
|
|
3160
3176
|
"aria-hidden": !0,
|
|
3161
|
-
stroke:
|
|
3177
|
+
stroke: J
|
|
3162
3178
|
}),
|
|
3163
3179
|
/* @__PURE__ */ Z(jn, {
|
|
3164
3180
|
icon: e.iconUrl,
|
|
@@ -3183,7 +3199,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3183
3199
|
}),
|
|
3184
3200
|
lastUsedTrailing: r?.(e) === !1 ? void 0 : /* @__PURE__ */ Z(Fn, {
|
|
3185
3201
|
isStarred: h,
|
|
3186
|
-
size:
|
|
3202
|
+
size: Y.Small,
|
|
3187
3203
|
onClick: y,
|
|
3188
3204
|
ariaLabel: h ? d : u
|
|
3189
3205
|
})
|
|
@@ -3200,7 +3216,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3200
3216
|
return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
3201
3217
|
}
|
|
3202
3218
|
}, Ri = ({ 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, isPaginationHidden: h = !1 }) => {
|
|
3203
|
-
let g = o?.typography?.titleClassName ?? "dial-body-semi-text", _ = o?.typography?.countClassName ?? "dial-tiny-semi-text", v =
|
|
3219
|
+
let g = o?.typography?.titleClassName ?? "dial-body-semi-text", _ = o?.typography?.countClassName ?? "dial-tiny-semi-text", v = z({
|
|
3204
3220
|
"--cat-fav-title-text": o?.colors?.titleText,
|
|
3205
3221
|
"--cat-fav-count-text": o?.colors?.countText,
|
|
3206
3222
|
"--cat-fav-selected-check": o?.colors?.selectedCheckIcon,
|
|
@@ -3212,34 +3228,34 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3212
3228
|
"--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
|
|
3213
3229
|
"--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
|
|
3214
3230
|
"--cat-fav-page-nav-bg": o?.colors?.pageNavBackground
|
|
3215
|
-
}), y =
|
|
3231
|
+
}), y = U(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [b, x] = G(1), S = pn(), C = ue(), w = !h && !C, T = S * Ii, E = (b - 1) * T, D = U(() => w ? y.slice(E, E + T) : y, [
|
|
3216
3232
|
w,
|
|
3217
3233
|
y,
|
|
3218
3234
|
E,
|
|
3219
3235
|
T
|
|
3220
3236
|
]), O = 1;
|
|
3221
3237
|
w ? O = Math.ceil(y.length / T) : C && !h && (O = y.length);
|
|
3222
|
-
let k = t ?? e.length, A =
|
|
3223
|
-
|
|
3224
|
-
(
|
|
3225
|
-
}, [S, C]),
|
|
3238
|
+
let k = t ?? e.length, A = W(null), j = W(null), M = W(null), [N, P] = G(), [F, ee] = G(), I = W(S), L = W(C);
|
|
3239
|
+
H(() => {
|
|
3240
|
+
(I.current !== S || L.current !== C) && (I.current = S, L.current = C, x(1), P(void 0), ee(void 0));
|
|
3241
|
+
}, [S, C]), H(() => {
|
|
3226
3242
|
b > O && O > 0 && x(O);
|
|
3227
|
-
}, [b, O]),
|
|
3228
|
-
O <= 1 && (N !== void 0 || F !== void 0) && (P(void 0),
|
|
3243
|
+
}, [b, O]), H(() => {
|
|
3244
|
+
O <= 1 && (N !== void 0 || F !== void 0) && (P(void 0), ee(void 0));
|
|
3229
3245
|
}, [
|
|
3230
3246
|
O,
|
|
3231
3247
|
N,
|
|
3232
3248
|
F
|
|
3233
|
-
]),
|
|
3234
|
-
!M.current || !j.current || C || O <= 1 || b !== 1 || N !== void 0 || (P(M.current.offsetHeight),
|
|
3249
|
+
]), ve(() => {
|
|
3250
|
+
!M.current || !j.current || C || O <= 1 || b !== 1 || N !== void 0 || (P(M.current.offsetHeight), ee(j.current.offsetHeight));
|
|
3235
3251
|
}, [
|
|
3236
3252
|
C,
|
|
3237
3253
|
O,
|
|
3238
3254
|
b,
|
|
3239
3255
|
N
|
|
3240
3256
|
]);
|
|
3241
|
-
let te =
|
|
3242
|
-
|
|
3257
|
+
let te = W(/* @__PURE__ */ new Map()), ne = W(b), re = W(S), ae = W(0), R = W(!1);
|
|
3258
|
+
ve(() => {
|
|
3243
3259
|
if (!M.current || s) return;
|
|
3244
3260
|
if (A.current && !R.current) {
|
|
3245
3261
|
let e = A.current;
|
|
@@ -3287,7 +3303,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3287
3303
|
S,
|
|
3288
3304
|
C,
|
|
3289
3305
|
s
|
|
3290
|
-
]),
|
|
3306
|
+
]), ve(() => {
|
|
3291
3307
|
let e = A.current;
|
|
3292
3308
|
if (!e) return;
|
|
3293
3309
|
let t = e.offsetHeight;
|
|
@@ -3299,35 +3315,35 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3299
3315
|
R.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
|
|
3300
3316
|
}, i = setTimeout(r, 400);
|
|
3301
3317
|
return e.addEventListener("transitionend", n), r;
|
|
3302
|
-
}, []),
|
|
3318
|
+
}, []), ve(() => {
|
|
3303
3319
|
if (!s || !A.current) return;
|
|
3304
3320
|
let e = A.current, t = e.offsetHeight;
|
|
3305
3321
|
t !== 0 && (e.style.height = `${t}px`, e.offsetHeight, e.style.transition = "height 260ms ease-in", e.style.height = "0px");
|
|
3306
3322
|
}, [s]);
|
|
3307
|
-
let oe =
|
|
3308
|
-
|
|
3309
|
-
|
|
3323
|
+
let oe = V(() => M.current ? Array.from(M.current.querySelectorAll("[data-card-id]")) : [], []), se = W(null), ce = W(null), le = V(() => {
|
|
3324
|
+
ce.current ??= requestAnimationFrame(() => {
|
|
3325
|
+
ce.current = null;
|
|
3310
3326
|
let e = M.current;
|
|
3311
3327
|
if (!e) return;
|
|
3312
3328
|
let t = Ni(e, oe()) + 1;
|
|
3313
|
-
if (
|
|
3314
|
-
if (t !==
|
|
3315
|
-
|
|
3329
|
+
if (se.current != null) {
|
|
3330
|
+
if (t !== se.current) return;
|
|
3331
|
+
se.current = null;
|
|
3316
3332
|
}
|
|
3317
3333
|
x(t);
|
|
3318
3334
|
});
|
|
3319
|
-
}, [oe]),
|
|
3320
|
-
|
|
3335
|
+
}, [oe]), de = V(() => {
|
|
3336
|
+
se.current = null;
|
|
3321
3337
|
}, []);
|
|
3322
|
-
|
|
3323
|
-
|
|
3338
|
+
H(() => () => {
|
|
3339
|
+
ce.current != null && cancelAnimationFrame(ce.current);
|
|
3324
3340
|
}, []);
|
|
3325
|
-
let
|
|
3341
|
+
let fe = (e) => {
|
|
3326
3342
|
if (x(e), !C || !M.current) return;
|
|
3327
3343
|
let t = oe()[e - 1];
|
|
3328
3344
|
if (!t) return;
|
|
3329
3345
|
let n = Mi(M.current, t);
|
|
3330
|
-
Math.abs(n) < 1 || (
|
|
3346
|
+
Math.abs(n) < 1 || (se.current = e, M.current.scrollBy({
|
|
3331
3347
|
left: n,
|
|
3332
3348
|
behavior: "smooth"
|
|
3333
3349
|
}));
|
|
@@ -3336,7 +3352,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3336
3352
|
ref: A,
|
|
3337
3353
|
children: /* @__PURE__ */ Q("section", {
|
|
3338
3354
|
ref: j,
|
|
3339
|
-
className:
|
|
3355
|
+
className: B("flex shrink-0 flex-col gap-4 pt-2 pb-2", Pi.section, s && Pi.sectionLeaving),
|
|
3340
3356
|
style: {
|
|
3341
3357
|
...v,
|
|
3342
3358
|
minHeight: F
|
|
@@ -3347,26 +3363,26 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3347
3363
|
children: [/* @__PURE__ */ Z(ie, {
|
|
3348
3364
|
title: n,
|
|
3349
3365
|
postfix: k,
|
|
3350
|
-
titleClassName:
|
|
3351
|
-
postfixClassName:
|
|
3366
|
+
titleClassName: B(g, Pi.titleText),
|
|
3367
|
+
postfixClassName: B(_, Pi.countText),
|
|
3352
3368
|
trailing: O > 1 ? /* @__PURE__ */ Q("div", {
|
|
3353
|
-
className:
|
|
3369
|
+
className: B("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", Pi.pageNav),
|
|
3354
3370
|
children: [
|
|
3355
3371
|
/* @__PURE__ */ Z(ze, {
|
|
3356
|
-
size:
|
|
3372
|
+
size: Y.Small,
|
|
3357
3373
|
"aria-label": l,
|
|
3358
3374
|
disabled: b === 1,
|
|
3359
|
-
onClick: () =>
|
|
3360
|
-
className:
|
|
3375
|
+
onClick: () => fe(b - 1),
|
|
3376
|
+
className: B("rounded-full", Pi.navBtn),
|
|
3361
3377
|
icon: /* @__PURE__ */ Z(Ct, {
|
|
3362
3378
|
size: 14,
|
|
3363
3379
|
"aria-hidden": !0,
|
|
3364
3380
|
className: "rtl:scale-x-[-1]",
|
|
3365
|
-
stroke:
|
|
3381
|
+
stroke: J
|
|
3366
3382
|
})
|
|
3367
3383
|
}),
|
|
3368
3384
|
/* @__PURE__ */ Q("span", {
|
|
3369
|
-
className:
|
|
3385
|
+
className: B("min-w-[32px] px-1 text-center select-none", _, Pi.countText),
|
|
3370
3386
|
children: [
|
|
3371
3387
|
b,
|
|
3372
3388
|
" / ",
|
|
@@ -3374,30 +3390,30 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3374
3390
|
]
|
|
3375
3391
|
}),
|
|
3376
3392
|
/* @__PURE__ */ Z(ze, {
|
|
3377
|
-
size:
|
|
3393
|
+
size: Y.Small,
|
|
3378
3394
|
"aria-label": u,
|
|
3379
3395
|
disabled: b === O,
|
|
3380
|
-
onClick: () =>
|
|
3381
|
-
className:
|
|
3396
|
+
onClick: () => fe(b + 1),
|
|
3397
|
+
className: B("rounded-full", Pi.navBtn),
|
|
3382
3398
|
icon: /* @__PURE__ */ Z(wt, {
|
|
3383
3399
|
size: 14,
|
|
3384
3400
|
"aria-hidden": !0,
|
|
3385
3401
|
className: "rtl:scale-x-[-1]",
|
|
3386
|
-
stroke:
|
|
3402
|
+
stroke: J
|
|
3387
3403
|
})
|
|
3388
3404
|
})
|
|
3389
3405
|
]
|
|
3390
3406
|
}) : void 0
|
|
3391
3407
|
}), /* @__PURE__ */ Z("div", {
|
|
3392
3408
|
ref: M,
|
|
3393
|
-
className:
|
|
3409
|
+
className: B("grid content-start", C ? "-m-4 snap-x snap-mandatory scroll-p-4 scrollbar-none auto-cols-[328px] grid-flow-col gap-2 overflow-x-auto mask-[linear-gradient(to_bottom,transparent,black_16px,black_calc(100%-16px),transparent)] p-4 *:snap-start" : "gap-5", Pi.gridPage),
|
|
3394
3410
|
style: {
|
|
3395
3411
|
gridTemplateColumns: C ? void 0 : `repeat(${S}, minmax(0, 1fr))`,
|
|
3396
3412
|
minHeight: N
|
|
3397
3413
|
},
|
|
3398
|
-
onScroll: C ?
|
|
3399
|
-
onScrollEnd: C ?
|
|
3400
|
-
onPointerDown: C ?
|
|
3414
|
+
onScroll: C ? le : void 0,
|
|
3415
|
+
onScrollEnd: C ? de : void 0,
|
|
3416
|
+
onPointerDown: C ? de : void 0,
|
|
3401
3417
|
children: D.map((e) => /* @__PURE__ */ Z(Fi, {
|
|
3402
3418
|
item: e,
|
|
3403
3419
|
onToggle: r,
|
|
@@ -3431,9 +3447,9 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3431
3447
|
className: "flex h-full w-full min-w-0 items-center gap-1.5",
|
|
3432
3448
|
children: [
|
|
3433
3449
|
/* @__PURE__ */ Z(kt, {
|
|
3434
|
-
size:
|
|
3435
|
-
stroke:
|
|
3436
|
-
className:
|
|
3450
|
+
size: q.SM,
|
|
3451
|
+
stroke: J,
|
|
3452
|
+
className: B("shrink-0", Bi.folderIcon),
|
|
3437
3453
|
"aria-hidden": !0
|
|
3438
3454
|
}),
|
|
3439
3455
|
/* @__PURE__ */ Z(pt, {
|
|
@@ -3474,7 +3490,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3474
3490
|
className: "flex min-w-0 flex-1 items-baseline gap-1.5",
|
|
3475
3491
|
children: [
|
|
3476
3492
|
/* @__PURE__ */ Z("h3", {
|
|
3477
|
-
className:
|
|
3493
|
+
className: B("min-w-0 shrink", i, Bi.name),
|
|
3478
3494
|
children: /* @__PURE__ */ Z(kn, {
|
|
3479
3495
|
name: e.name,
|
|
3480
3496
|
query: n,
|
|
@@ -3483,20 +3499,20 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3483
3499
|
}),
|
|
3484
3500
|
e.version && /* @__PURE__ */ Z(Ne, {
|
|
3485
3501
|
text: e.version,
|
|
3486
|
-
className:
|
|
3502
|
+
className: B("max-w-[30%] shrink-0", a, Bi.version)
|
|
3487
3503
|
}),
|
|
3488
3504
|
o && /* @__PURE__ */ Z(xt, {
|
|
3489
|
-
size:
|
|
3490
|
-
className:
|
|
3505
|
+
size: q.SM,
|
|
3506
|
+
className: B("ms-auto shrink-0", Bi.selectedCheck),
|
|
3491
3507
|
"aria-hidden": !0,
|
|
3492
|
-
stroke:
|
|
3508
|
+
stroke: J
|
|
3493
3509
|
})
|
|
3494
3510
|
]
|
|
3495
3511
|
})]
|
|
3496
3512
|
}) : null;
|
|
3497
3513
|
}, Gi = ({ data: e, context: t }) => {
|
|
3498
|
-
let [n, r] =
|
|
3499
|
-
return
|
|
3514
|
+
let [n, r] = G(e?.isStarred ?? !1);
|
|
3515
|
+
return H(() => {
|
|
3500
3516
|
r(e?.isStarred ?? !1);
|
|
3501
3517
|
}, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ Z("div", {
|
|
3502
3518
|
className: "flex size-full items-center justify-end",
|
|
@@ -3591,29 +3607,29 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3591
3607
|
"--cat-list-selected-check": T?.selectedRowCheckIcon,
|
|
3592
3608
|
"--cat-list-name-text": T?.nameText,
|
|
3593
3609
|
"--cat-list-version-text": T?.versionText
|
|
3594
|
-
}, D =
|
|
3610
|
+
}, D = W(null), O = W(t);
|
|
3595
3611
|
O.current = t;
|
|
3596
|
-
let k =
|
|
3612
|
+
let k = V((e) => {
|
|
3597
3613
|
e.direction === "vertical" && O.current?.(e.top);
|
|
3598
|
-
}, []), j =
|
|
3614
|
+
}, []), j = V(() => {
|
|
3599
3615
|
let e = D.current;
|
|
3600
3616
|
e != null && !e.isDestroyed() && e.removeEventListener("bodyScroll", k);
|
|
3601
|
-
}, [k]), M =
|
|
3617
|
+
}, [k]), M = V((e) => {
|
|
3602
3618
|
j(), D.current = e, e.addEventListener("bodyScroll", k);
|
|
3603
3619
|
}, [j, k]);
|
|
3604
|
-
|
|
3620
|
+
H(() => j, [j]), _e(e, () => ({ scrollToTop: () => {
|
|
3605
3621
|
let e = D.current;
|
|
3606
3622
|
e == null || e.isDestroyed() || e.getDisplayedRowCount() === 0 || e.ensureIndexVisible(0, "top");
|
|
3607
3623
|
} }), []);
|
|
3608
|
-
let N =
|
|
3624
|
+
let N = U(() => Yi(r, h, g), [
|
|
3609
3625
|
r,
|
|
3610
3626
|
h,
|
|
3611
3627
|
g
|
|
3612
|
-
]), P =
|
|
3628
|
+
]), P = U(() => n.map(ia), [n]), F = V((e) => y?.(A(v, e, P)), [
|
|
3613
3629
|
y,
|
|
3614
3630
|
v,
|
|
3615
3631
|
P
|
|
3616
|
-
]),
|
|
3632
|
+
]), ee = U(() => new Set(C == null ? [] : [C]), [C]), I = U(() => ({
|
|
3617
3633
|
rowHeight: Xi,
|
|
3618
3634
|
suppressCellFocus: !1,
|
|
3619
3635
|
defaultColDef: Qi,
|
|
@@ -3646,7 +3662,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3646
3662
|
f,
|
|
3647
3663
|
S
|
|
3648
3664
|
]);
|
|
3649
|
-
return
|
|
3665
|
+
return H(() => {
|
|
3650
3666
|
D.current?.refreshCells({ force: !0 });
|
|
3651
3667
|
}, [i, C]), /* @__PURE__ */ Z("div", {
|
|
3652
3668
|
style: E,
|
|
@@ -3662,7 +3678,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3662
3678
|
emptyStateTitle: o,
|
|
3663
3679
|
emptyStateDescription: s ?? "",
|
|
3664
3680
|
emptyStateLive: c,
|
|
3665
|
-
additionalGridOptions:
|
|
3681
|
+
additionalGridOptions: I,
|
|
3666
3682
|
ariaLabel: a,
|
|
3667
3683
|
...S ? {
|
|
3668
3684
|
selectionMode: nn.MULTIPLE,
|
|
@@ -3670,14 +3686,14 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3670
3686
|
onSelectionChange: F,
|
|
3671
3687
|
selectRowLabel: b,
|
|
3672
3688
|
selectAllLabel: x
|
|
3673
|
-
} : { selectedRowIds:
|
|
3689
|
+
} : { selectedRowIds: ee }
|
|
3674
3690
|
})
|
|
3675
3691
|
});
|
|
3676
3692
|
}, ca = "w-[320px]", la = {
|
|
3677
3693
|
divider: "_divider_k154m_1",
|
|
3678
3694
|
sectionHeader: "_sectionHeader_k154m_5"
|
|
3679
3695
|
}, ua = ({ open: e, onClose: t, title: n, options: r, search: i, searchPlaceholder: a, searchClearLabel: o, noResultsLabel: s, backLabel: c, closeLabel: l, colors: u, sectionHeaderClassName: d = "dial-caption-text" }) => {
|
|
3680
|
-
let [f, p] =
|
|
3696
|
+
let [f, p] = G(null), m = f ? r.find((e) => e.key === f) : void 0, h = m?.children ?? r, g = i ? yn(h, i.value) : h, _ = z({
|
|
3681
3697
|
"--cat-create-menu-divider": u?.divider,
|
|
3682
3698
|
"--cat-create-menu-section-header-text": u?.sectionHeaderText
|
|
3683
3699
|
}), v = () => {
|
|
@@ -3688,7 +3704,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3688
3704
|
domEvent: t
|
|
3689
3705
|
}), v());
|
|
3690
3706
|
};
|
|
3691
|
-
return /* @__PURE__ */ Q(
|
|
3707
|
+
return /* @__PURE__ */ Q(ye, {
|
|
3692
3708
|
open: e,
|
|
3693
3709
|
title: m ? String(m.label ?? "") : n,
|
|
3694
3710
|
onBack: m ? () => p(null) : void 0,
|
|
@@ -3703,7 +3719,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3703
3719
|
placeholder: a,
|
|
3704
3720
|
"aria-label": a,
|
|
3705
3721
|
clearLabel: o,
|
|
3706
|
-
size:
|
|
3722
|
+
size: Y.Small,
|
|
3707
3723
|
onChange: (e) => i.onChange(e ?? "")
|
|
3708
3724
|
})
|
|
3709
3725
|
}),
|
|
@@ -3711,12 +3727,12 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3711
3727
|
role: "menu",
|
|
3712
3728
|
"aria-label": m ? void 0 : n,
|
|
3713
3729
|
style: _,
|
|
3714
|
-
children: g.map((e) => e.type ===
|
|
3730
|
+
children: g.map((e) => e.type === je.Divider ? /* @__PURE__ */ Z("div", {
|
|
3715
3731
|
role: "separator",
|
|
3716
|
-
className:
|
|
3717
|
-
}, e.key) : e.type ===
|
|
3732
|
+
className: B("my-1", la.divider, e.className)
|
|
3733
|
+
}, e.key) : e.type === je.PlainText ? /* @__PURE__ */ Z("div", {
|
|
3718
3734
|
role: "presentation",
|
|
3719
|
-
className:
|
|
3735
|
+
className: B("px-3 py-2", la.sectionHeader, d, e.className),
|
|
3720
3736
|
children: e.label
|
|
3721
3737
|
}, e.key) : /* @__PURE__ */ Z(Ye, {
|
|
3722
3738
|
role: "menuitem",
|
|
@@ -3726,8 +3742,8 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3726
3742
|
danger: e.danger,
|
|
3727
3743
|
"aria-haspopup": e.children?.length ? "menu" : void 0,
|
|
3728
3744
|
trailing: e.children?.length ? /* @__PURE__ */ Z(wt, {
|
|
3729
|
-
size:
|
|
3730
|
-
stroke:
|
|
3745
|
+
size: q.SM,
|
|
3746
|
+
stroke: J,
|
|
3731
3747
|
className: "rtl:scale-x-[-1]",
|
|
3732
3748
|
"aria-hidden": !0
|
|
3733
3749
|
}) : void 0,
|
|
@@ -3741,16 +3757,16 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3741
3757
|
})
|
|
3742
3758
|
]
|
|
3743
3759
|
});
|
|
3744
|
-
}, da = ({ label: e, options: t, onClick: n, search: r, searchPlaceholder: i = "Search", searchClearLabel: a = "Clear search", noResultsLabel: o = "No results found", backLabel: s = "Back", closeLabel: c = "Close", variant: l =
|
|
3745
|
-
let [p, m] =
|
|
3746
|
-
size:
|
|
3747
|
-
stroke:
|
|
3760
|
+
}, da = ({ label: e, options: t, onClick: n, search: r, searchPlaceholder: i = "Search", searchClearLabel: a = "Clear search", noResultsLabel: o = "No results found", backLabel: s = "Back", closeLabel: c = "Close", variant: l = we.Primary, colors: u, sectionHeaderClassName: d, isFloating: f = !1 }) => {
|
|
3761
|
+
let [p, m] = G(!1), h = de(), g = /* @__PURE__ */ Z(St, {
|
|
3762
|
+
size: q.SM,
|
|
3763
|
+
stroke: J,
|
|
3748
3764
|
"aria-hidden": !0,
|
|
3749
|
-
className:
|
|
3765
|
+
className: B("transition-transform", p && "rotate-180")
|
|
3750
3766
|
}), _ = {
|
|
3751
3767
|
iconBefore: /* @__PURE__ */ Z(Lt, {
|
|
3752
|
-
size:
|
|
3753
|
-
stroke:
|
|
3768
|
+
size: q.LG,
|
|
3769
|
+
stroke: J,
|
|
3754
3770
|
"aria-hidden": !0
|
|
3755
3771
|
}),
|
|
3756
3772
|
"aria-label": e,
|
|
@@ -3760,13 +3776,13 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3760
3776
|
let n = () => {
|
|
3761
3777
|
m(!1), r?.onChange("");
|
|
3762
3778
|
};
|
|
3763
|
-
return /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(
|
|
3779
|
+
return /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(xe, {
|
|
3764
3780
|
...f ? _ : {
|
|
3765
3781
|
label: e,
|
|
3766
3782
|
iconAfter: g
|
|
3767
3783
|
},
|
|
3768
3784
|
variant: l,
|
|
3769
|
-
appearance:
|
|
3785
|
+
appearance: Se.Solid,
|
|
3770
3786
|
"aria-haspopup": "dialog",
|
|
3771
3787
|
"aria-expanded": p,
|
|
3772
3788
|
onClick: () => m(!0)
|
|
@@ -3785,19 +3801,19 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3785
3801
|
sectionHeaderClassName: d
|
|
3786
3802
|
})] });
|
|
3787
3803
|
}
|
|
3788
|
-
if (f && !r && !t?.length) return /* @__PURE__ */ Z(
|
|
3804
|
+
if (f && !r && !t?.length) return /* @__PURE__ */ Z(xe, {
|
|
3789
3805
|
..._,
|
|
3790
3806
|
variant: l,
|
|
3791
|
-
appearance:
|
|
3807
|
+
appearance: Se.Solid,
|
|
3792
3808
|
onClick: n
|
|
3793
3809
|
});
|
|
3794
|
-
if (r || f && t?.length) return /* @__PURE__ */ Z(
|
|
3810
|
+
if (r || f && t?.length) return /* @__PURE__ */ Z(Ce, {
|
|
3795
3811
|
...f ? {
|
|
3796
3812
|
..._,
|
|
3797
3813
|
iconAfter: null
|
|
3798
3814
|
} : { label: e },
|
|
3799
3815
|
variant: l,
|
|
3800
|
-
appearance:
|
|
3816
|
+
appearance: Se.Solid,
|
|
3801
3817
|
items: t ?? [],
|
|
3802
3818
|
open: p,
|
|
3803
3819
|
onOpenChange: m,
|
|
@@ -3816,23 +3832,23 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3816
3832
|
});
|
|
3817
3833
|
if (!t?.length) {
|
|
3818
3834
|
let t = /* @__PURE__ */ Z(Lt, {
|
|
3819
|
-
size:
|
|
3820
|
-
stroke:
|
|
3835
|
+
size: q.SM,
|
|
3836
|
+
stroke: J
|
|
3821
3837
|
});
|
|
3822
|
-
return l ===
|
|
3838
|
+
return l === we.Primary ? /* @__PURE__ */ Z(nt, {
|
|
3823
3839
|
label: e,
|
|
3824
3840
|
iconBefore: t,
|
|
3825
3841
|
onClick: n
|
|
3826
|
-
}) : /* @__PURE__ */ Z(
|
|
3842
|
+
}) : /* @__PURE__ */ Z(xe, {
|
|
3827
3843
|
label: e,
|
|
3828
3844
|
variant: l,
|
|
3829
|
-
appearance:
|
|
3845
|
+
appearance: Se.Solid,
|
|
3830
3846
|
iconBefore: t,
|
|
3831
3847
|
onClick: n
|
|
3832
3848
|
});
|
|
3833
3849
|
}
|
|
3834
|
-
return /* @__PURE__ */ Z(
|
|
3835
|
-
appearance:
|
|
3850
|
+
return /* @__PURE__ */ Z(Ce, {
|
|
3851
|
+
appearance: Se.Solid,
|
|
3836
3852
|
label: e,
|
|
3837
3853
|
variant: l,
|
|
3838
3854
|
items: t,
|
|
@@ -3845,13 +3861,13 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3845
3861
|
titleClassName: r,
|
|
3846
3862
|
descriptionClassName: i,
|
|
3847
3863
|
action: n == null ? void 0 : /* @__PURE__ */ Z(da, {
|
|
3848
|
-
variant:
|
|
3864
|
+
variant: we.Secondary,
|
|
3849
3865
|
...n
|
|
3850
3866
|
})
|
|
3851
3867
|
}), pa = ({ label: e, onClick: t, className: n }) => /* @__PURE__ */ Z(Fe, {
|
|
3852
3868
|
icon: /* @__PURE__ */ Z(vt, {
|
|
3853
|
-
size:
|
|
3854
|
-
stroke:
|
|
3869
|
+
size: q.LG,
|
|
3870
|
+
stroke: J,
|
|
3855
3871
|
"aria-hidden": !0
|
|
3856
3872
|
}),
|
|
3857
3873
|
"aria-label": e,
|
|
@@ -3888,7 +3904,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3888
3904
|
let o = e.size > 0;
|
|
3889
3905
|
return r && o ? `${i} · ${e.size}` : r ? i : o ? t(e, n, a) : a;
|
|
3890
3906
|
}, _a = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: a = "My", topicsLabel: o = "Topics", defaultLabel: s = "From", clearLabel: c = "Clear", applyLabel: u = "Apply", typography: d, colors: f }) => {
|
|
3891
|
-
let p = (r ?? !1) || e.size > 0, [m, h] =
|
|
3907
|
+
let p = (r ?? !1) || e.size > 0, [m, h] = G(!1), g = z({
|
|
3892
3908
|
"--cat-filter-btn-bg": f?.buttonBackground,
|
|
3893
3909
|
"--cat-filter-btn-border": f?.buttonBorder,
|
|
3894
3910
|
"--cat-filter-btn-border-hover": f?.buttonBorderHover,
|
|
@@ -3905,19 +3921,19 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3905
3921
|
"--cat-filter-section-label": f?.sectionLabel,
|
|
3906
3922
|
"--cat-filter-divider": f?.divider,
|
|
3907
3923
|
"--cat-filter-footer-border": f?.footerBorder
|
|
3908
|
-
}), _ =
|
|
3909
|
-
|
|
3924
|
+
}), _ = U(() => n == null ? [] : [...n].sort(), [n]), v = ga(e, n, r, a, s), [y, b] = G(() => new Set(e)), [x, S] = G(r ?? !1);
|
|
3925
|
+
H(() => {
|
|
3910
3926
|
m && (b(new Set(e)), S(r ?? !1));
|
|
3911
3927
|
}, [
|
|
3912
3928
|
m,
|
|
3913
3929
|
e,
|
|
3914
3930
|
r
|
|
3915
3931
|
]);
|
|
3916
|
-
let C = _.length + 1, [w, T] =
|
|
3932
|
+
let C = _.length + 1, [w, T] = G(-1), E = W([]), D = W(null), O = W(null), k = V((e) => {
|
|
3917
3933
|
let t = (e + C) % C;
|
|
3918
3934
|
T(t), E.current[t]?.focus();
|
|
3919
3935
|
}, [C]);
|
|
3920
|
-
|
|
3936
|
+
H(() => {
|
|
3921
3937
|
if (!m) {
|
|
3922
3938
|
T(-1);
|
|
3923
3939
|
return;
|
|
@@ -3937,13 +3953,13 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3937
3953
|
}, P = () => {
|
|
3938
3954
|
t(/* @__PURE__ */ new Set()), i?.(!1), A(!1);
|
|
3939
3955
|
};
|
|
3940
|
-
return /* @__PURE__ */ Z(
|
|
3956
|
+
return /* @__PURE__ */ Z(Ae, {
|
|
3941
3957
|
matchReferenceWidth: !1,
|
|
3942
3958
|
placement: "bottom-start",
|
|
3943
3959
|
open: m,
|
|
3944
3960
|
onOpenChange: A,
|
|
3945
3961
|
listClassName: "!bg-transparent !shadow-none !p-0",
|
|
3946
|
-
overlayRole:
|
|
3962
|
+
overlayRole: Me.Dialog,
|
|
3947
3963
|
overlayAriaLabel: s,
|
|
3948
3964
|
optionArrowNavigation: !1,
|
|
3949
3965
|
renderOverlay: () => /* @__PURE__ */ Q("div", {
|
|
@@ -3952,7 +3968,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3952
3968
|
...g,
|
|
3953
3969
|
maxHeight: "calc(var(--fui-available-height, 9999px) - 8px)"
|
|
3954
3970
|
},
|
|
3955
|
-
className:
|
|
3971
|
+
className: B("flex min-w-[360px] flex-col rounded-xl p-[6px]", ha.overlay),
|
|
3956
3972
|
onKeyDown: M,
|
|
3957
3973
|
children: [/* @__PURE__ */ Q("div", {
|
|
3958
3974
|
role: "menu",
|
|
@@ -3964,7 +3980,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3964
3980
|
mark: Xe.Checkbox,
|
|
3965
3981
|
selected: x,
|
|
3966
3982
|
label: a,
|
|
3967
|
-
labelClassName:
|
|
3983
|
+
labelClassName: B(ha.rowLabel, d?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
3968
3984
|
className: "shrink-0",
|
|
3969
3985
|
tabIndex: w === 0 ? 0 : -1,
|
|
3970
3986
|
ref: (e) => {
|
|
@@ -3974,16 +3990,16 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
3974
3990
|
}), _.length > 0 && /* @__PURE__ */ Q(X, { children: [
|
|
3975
3991
|
/* @__PURE__ */ Z("div", {
|
|
3976
3992
|
role: "separator",
|
|
3977
|
-
className:
|
|
3993
|
+
className: B("my-1 h-px", ha.divider),
|
|
3978
3994
|
"aria-hidden": !0
|
|
3979
3995
|
}),
|
|
3980
3996
|
/* @__PURE__ */ Z("div", {
|
|
3981
|
-
className:
|
|
3997
|
+
className: B("px-[10px] pt-[10px] pb-1", d?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", ha.sectionLabel),
|
|
3982
3998
|
"aria-hidden": !0,
|
|
3983
3999
|
children: o
|
|
3984
4000
|
}),
|
|
3985
4001
|
/* @__PURE__ */ Z("div", {
|
|
3986
|
-
className:
|
|
4002
|
+
className: B(ce, "flex min-h-0 flex-col gap-1 overflow-y-auto"),
|
|
3987
4003
|
children: _.map((e, t) => {
|
|
3988
4004
|
let n = y.has(e), r = t + 1;
|
|
3989
4005
|
return /* @__PURE__ */ Z(Ye, {
|
|
@@ -4004,7 +4020,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4004
4020
|
})
|
|
4005
4021
|
] })]
|
|
4006
4022
|
}), /* @__PURE__ */ Q("div", {
|
|
4007
|
-
className:
|
|
4023
|
+
className: B("mt-1 flex shrink-0 items-center px-1 py-3", ha.footer),
|
|
4008
4024
|
ref: O,
|
|
4009
4025
|
children: [/* @__PURE__ */ Z(Re, {
|
|
4010
4026
|
label: c,
|
|
@@ -4016,37 +4032,37 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4016
4032
|
})]
|
|
4017
4033
|
})]
|
|
4018
4034
|
}),
|
|
4019
|
-
children: /* @__PURE__ */ Z(
|
|
4035
|
+
children: /* @__PURE__ */ Z(xe, {
|
|
4020
4036
|
ref: D,
|
|
4021
4037
|
"aria-expanded": m,
|
|
4022
4038
|
onKeyDown: j,
|
|
4023
4039
|
style: g,
|
|
4024
4040
|
iconBefore: /* @__PURE__ */ Z(Ot, {
|
|
4025
|
-
size:
|
|
4026
|
-
stroke:
|
|
4027
|
-
className:
|
|
4041
|
+
size: q.SM,
|
|
4042
|
+
stroke: J,
|
|
4043
|
+
className: B("shrink-0", ha.filterBtnFunnel),
|
|
4028
4044
|
"aria-hidden": !0
|
|
4029
4045
|
}),
|
|
4030
4046
|
label: v,
|
|
4031
|
-
textClassName:
|
|
4047
|
+
textClassName: B(ha.filterBtnLabel, d?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
4032
4048
|
iconAfter: /* @__PURE__ */ Z(St, {
|
|
4033
4049
|
size: 14,
|
|
4034
|
-
stroke:
|
|
4035
|
-
className:
|
|
4050
|
+
stroke: J,
|
|
4051
|
+
className: B("shrink-0 transition-transform duration-150", ha.filterBtnChevron, m && "rotate-180"),
|
|
4036
4052
|
"aria-hidden": !0
|
|
4037
4053
|
}),
|
|
4038
|
-
className:
|
|
4054
|
+
className: B("h-12 shrink-0 gap-[7px] rounded-lg! px-[18px] whitespace-nowrap", ha.filterBtn, p && ha.filterBtnActive, m && ha.filterBtnOpen)
|
|
4039
4055
|
})
|
|
4040
4056
|
});
|
|
4041
4057
|
}, va = /* @__PURE__ */ function(e) {
|
|
4042
4058
|
return e.Root = "root", e.View = "view", e.Sorting = "sorting", e.Filtering = "filtering", e;
|
|
4043
4059
|
}({}), ya = /* @__PURE__ */ Z(wt, {
|
|
4044
|
-
size:
|
|
4045
|
-
stroke:
|
|
4060
|
+
size: q.SM,
|
|
4061
|
+
stroke: J,
|
|
4046
4062
|
className: "rtl:scale-x-[-1]",
|
|
4047
4063
|
"aria-hidden": !0
|
|
4048
4064
|
}), ba = ({ open: e, onClose: t, viewMode: n, onViewModeChange: r, sortOptions: i, sortKey: a, onSortChange: o, filters: s, onFiltersChange: c, filterValues: u, isMyAppsActive: d, onMyAppsChange: f, labels: p, typography: m }) => {
|
|
4049
|
-
let [h, g] =
|
|
4065
|
+
let [h, g] = G(va.Root), [_, v] = G(() => /* @__PURE__ */ new Set()), [y, b] = G(!1), x = U(() => u == null ? [] : [...u].sort(), [u]), S = i != null && i.length > 0, C = s.size + +!!d, w = () => {
|
|
4050
4066
|
g(va.Root), t();
|
|
4051
4067
|
}, T = () => {
|
|
4052
4068
|
v(new Set(s)), b(d ?? !1), g(va.Filtering);
|
|
@@ -4068,14 +4084,14 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4068
4084
|
[va.Sorting]: p.sorting,
|
|
4069
4085
|
[va.Filtering]: p.filtering
|
|
4070
4086
|
}, A = h === va.Filtering;
|
|
4071
|
-
return /* @__PURE__ */ Q(
|
|
4087
|
+
return /* @__PURE__ */ Q(ye, {
|
|
4072
4088
|
open: e,
|
|
4073
4089
|
title: k[h],
|
|
4074
4090
|
onBack: h === va.Root ? void 0 : () => g(va.Root),
|
|
4075
4091
|
backAriaLabel: p.back,
|
|
4076
4092
|
closeAriaLabel: p.close,
|
|
4077
4093
|
onClose: w,
|
|
4078
|
-
bodyClassName:
|
|
4094
|
+
bodyClassName: B(A && "flex flex-col"),
|
|
4079
4095
|
children: [
|
|
4080
4096
|
h === va.Root && /* @__PURE__ */ Q("div", {
|
|
4081
4097
|
role: "menu",
|
|
@@ -4117,8 +4133,8 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4117
4133
|
selected: n === e,
|
|
4118
4134
|
label: t,
|
|
4119
4135
|
icon: /* @__PURE__ */ Z(i, {
|
|
4120
|
-
size:
|
|
4121
|
-
stroke:
|
|
4136
|
+
size: q.SM,
|
|
4137
|
+
stroke: J,
|
|
4122
4138
|
"aria-hidden": !0
|
|
4123
4139
|
}),
|
|
4124
4140
|
onClick: () => {
|
|
@@ -4157,11 +4173,11 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4157
4173
|
}), x.length > 0 && /* @__PURE__ */ Q(X, { children: [
|
|
4158
4174
|
/* @__PURE__ */ Z("div", {
|
|
4159
4175
|
role: "separator",
|
|
4160
|
-
className:
|
|
4176
|
+
className: B("my-1 h-px", ha.divider),
|
|
4161
4177
|
"aria-hidden": !0
|
|
4162
4178
|
}),
|
|
4163
4179
|
/* @__PURE__ */ Z("div", {
|
|
4164
|
-
className:
|
|
4180
|
+
className: B("px-[10px] pt-[10px] pb-1", m?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", ha.sectionLabel),
|
|
4165
4181
|
"aria-hidden": !0,
|
|
4166
4182
|
children: p.topics
|
|
4167
4183
|
}),
|
|
@@ -4180,7 +4196,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4180
4196
|
})
|
|
4181
4197
|
] })]
|
|
4182
4198
|
}), /* @__PURE__ */ Q("div", {
|
|
4183
|
-
className:
|
|
4199
|
+
className: B("flex shrink-0 items-center gap-3 px-4 py-3", ha.footer),
|
|
4184
4200
|
children: [/* @__PURE__ */ Z(Re, {
|
|
4185
4201
|
label: p.clear,
|
|
4186
4202
|
className: "flex-1",
|
|
@@ -4199,8 +4215,8 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4199
4215
|
settingsDot: "_settingsDot_mk15x_9",
|
|
4200
4216
|
searchField: "_searchField_mk15x_17"
|
|
4201
4217
|
}, Sa = /* @__PURE__ */ new Set(), Ca = ({ totalCount: e, viewMode: t, onViewModeChange: n, title: r = "Browse", browseHeaderRenderer: i, styles: a, query: o, onQueryChange: s, searchPlaceholder: c, searchInputRef: l, gridViewLabel: u = "Grid view", listViewLabel: d = "List view", viewToggleLabel: f = "View mode", sortKey: p, sortOptions: m, onSortChange: h, sortLabel: g = "Sort", filters: _, onFiltersChange: v, filterValues: y, isMyAppsActive: b, onMyAppsChange: x, filterFromLabel: S, filterMyAppsLabel: C, filterTopicsLabel: w, browseSettingsLabels: T }) => {
|
|
4202
|
-
let E =
|
|
4203
|
-
|
|
4218
|
+
let E = de(), D = W(null), O = W(null), k = W(null), A = W(!1), j = W(E), [M, N] = G(!1);
|
|
4219
|
+
ve(() => {
|
|
4204
4220
|
j.current !== E && (j.current = E, (M || A.current && document.activeElement === document.body) && (N(!1), E ? O.current?.focus() : k.current?.querySelector("[role=\"radio\"]")?.focus()));
|
|
4205
4221
|
}, [E, M]);
|
|
4206
4222
|
let P = (b ?? !1) || (_?.size ?? 0) > 0, F = {
|
|
@@ -4208,25 +4224,25 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4208
4224
|
myApps: C ?? ma.myApps,
|
|
4209
4225
|
topics: w ?? ma.topics,
|
|
4210
4226
|
...T
|
|
4211
|
-
},
|
|
4227
|
+
}, ee = a?.typography?.titleClassName ?? "dial-body-semi-text", I = a?.typography?.countClassName ?? "dial-tiny-semi-text", L = U(() => [{
|
|
4212
4228
|
value: cn.Grid,
|
|
4213
4229
|
icon: /* @__PURE__ */ Z(jt, {
|
|
4214
|
-
size:
|
|
4230
|
+
size: q.SM,
|
|
4215
4231
|
"aria-hidden": !0,
|
|
4216
|
-
stroke:
|
|
4232
|
+
stroke: J
|
|
4217
4233
|
}),
|
|
4218
4234
|
"aria-label": u
|
|
4219
4235
|
}, {
|
|
4220
4236
|
value: cn.Cards,
|
|
4221
4237
|
icon: /* @__PURE__ */ Z(Mt, {
|
|
4222
|
-
size:
|
|
4238
|
+
size: q.SM,
|
|
4223
4239
|
"aria-hidden": !0,
|
|
4224
|
-
stroke:
|
|
4240
|
+
stroke: J
|
|
4225
4241
|
}),
|
|
4226
4242
|
"aria-label": d
|
|
4227
4243
|
}], [u, d]), te = (e) => {
|
|
4228
4244
|
s(e ?? "");
|
|
4229
|
-
}, ne = m?.find((e) => e.value === p)?.label ?? g, re =
|
|
4245
|
+
}, ne = m?.find((e) => e.value === p)?.label ?? g, re = U(() => (m ?? []).map((e) => ({
|
|
4230
4246
|
key: e.value,
|
|
4231
4247
|
label: e.label,
|
|
4232
4248
|
mark: Xe.Check,
|
|
@@ -4251,8 +4267,8 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4251
4267
|
children: [i ?? /* @__PURE__ */ Z(ie, {
|
|
4252
4268
|
title: r,
|
|
4253
4269
|
postfix: e,
|
|
4254
|
-
titleClassName:
|
|
4255
|
-
postfixClassName:
|
|
4270
|
+
titleClassName: ee,
|
|
4271
|
+
postfixClassName: I,
|
|
4256
4272
|
className: "shrink-0",
|
|
4257
4273
|
shouldTruncateTitle: !1,
|
|
4258
4274
|
colors: {
|
|
@@ -4267,11 +4283,11 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4267
4283
|
value: t,
|
|
4268
4284
|
onChange: n,
|
|
4269
4285
|
items: L
|
|
4270
|
-
}), m != null && m.length > 0 && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", { className:
|
|
4286
|
+
}), m != null && m.length > 0 && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", { className: B("h-4 w-px shrink-0", xa.divider) }), /* @__PURE__ */ Z(Ce, {
|
|
4271
4287
|
items: re,
|
|
4272
4288
|
label: ne,
|
|
4273
|
-
variant:
|
|
4274
|
-
appearance:
|
|
4289
|
+
variant: we.Primary,
|
|
4290
|
+
appearance: Se.Ghost
|
|
4275
4291
|
})] })]
|
|
4276
4292
|
})]
|
|
4277
4293
|
}), /* @__PURE__ */ Q("div", {
|
|
@@ -4282,7 +4298,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4282
4298
|
children: /* @__PURE__ */ Z(at, {
|
|
4283
4299
|
value: o,
|
|
4284
4300
|
onChange: te,
|
|
4285
|
-
size:
|
|
4301
|
+
size: Y.Large,
|
|
4286
4302
|
wrapperClassName: xa.searchField,
|
|
4287
4303
|
placeholder: c,
|
|
4288
4304
|
"aria-label": c,
|
|
@@ -4292,18 +4308,18 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4292
4308
|
className: "relative shrink-0",
|
|
4293
4309
|
children: [/* @__PURE__ */ Z(ze, {
|
|
4294
4310
|
ref: O,
|
|
4295
|
-
size:
|
|
4311
|
+
size: Y.Large,
|
|
4296
4312
|
"aria-label": F.title,
|
|
4297
4313
|
"aria-haspopup": "dialog",
|
|
4298
4314
|
"aria-expanded": M,
|
|
4299
4315
|
onClick: () => N(!0),
|
|
4300
4316
|
icon: /* @__PURE__ */ Z(ht, {
|
|
4301
|
-
size:
|
|
4302
|
-
stroke:
|
|
4317
|
+
size: q.LG,
|
|
4318
|
+
stroke: J,
|
|
4303
4319
|
"aria-hidden": !0
|
|
4304
4320
|
})
|
|
4305
4321
|
}), P && /* @__PURE__ */ Z("span", {
|
|
4306
|
-
className:
|
|
4322
|
+
className: B("pointer-events-none absolute inset-e-2.5 top-2.5 size-2 rounded-full", xa.settingsDot),
|
|
4307
4323
|
"aria-hidden": !0
|
|
4308
4324
|
})]
|
|
4309
4325
|
}), /* @__PURE__ */ Z(ba, {
|
|
@@ -4342,7 +4358,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4342
4358
|
"--cat-browse-settings-dot": r?.colors?.settingsActiveDot
|
|
4343
4359
|
};
|
|
4344
4360
|
return /* @__PURE__ */ Z("section", {
|
|
4345
|
-
className:
|
|
4361
|
+
className: B("shrink-0 px-4", xa.section, mn.toolbar),
|
|
4346
4362
|
style: b,
|
|
4347
4363
|
children: /* @__PURE__ */ Z(Ca, {
|
|
4348
4364
|
styles: r,
|
|
@@ -4371,8 +4387,8 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4371
4387
|
root: "_root_1h83l_1",
|
|
4372
4388
|
heading: "_heading_1h83l_5",
|
|
4373
4389
|
headingTitle: "_headingTitle_1h83l_9"
|
|
4374
|
-
}, Ea = 3, Da = 300, Oa = ({ items: e, tabs: t, topicOptions: n, favorites: i, titles: a, browseHeaderRenderer: s, onToggleFavorite: c, isFavoriteVisible: l, columnVisibility: u, onUseInChat: d, isPrimaryActionVisible: m, onShare: v, isPublishVisible: y, isPublishPrimary: b, getPublishHistory: x, getPublishDependencies: C, resolvePublishDependenciesLabels: w, resolvePublishApprovalLabels: T,
|
|
4375
|
-
let { typography:
|
|
4390
|
+
}, Ea = 3, Da = 300, Oa = ({ items: e, tabs: t, topicOptions: n, favorites: i, titles: a, browseHeaderRenderer: s, onToggleFavorite: c, isFavoriteVisible: l, columnVisibility: u, onUseInChat: d, isPrimaryActionVisible: m, onShare: v, isPublishVisible: y, isPublishPrimary: b, getPublishHistory: x, getPublishDependencies: C, resolvePublishDependenciesLabels: w, resolvePublishApprovalLabels: T, publishVersionHistory: E, onPublishOpenChange: O, publishFolderItems: k, publishExpandedPaths: A, onPublishExpandedPathsChange: P, publishLoadingPaths: F, hasPublishWriteAccess: ee, publishDefaultAuthor: I, onPublish: L, onPublishSuccess: te, onPublishError: ne, onCreatePublishFolder: re, publishLabels: ie, ruleSourceOptions: ae, onFetchExistingRules: R, shareOverlay: oe, isShareVisible: se, isSharePrimary: ce, onFetchDetails: le, renderCredentials: z, onEdit: ue, onDownload: fe, isDownloadVisible: pe, isDownloadPrimary: me, onLoadContentFile: ge, onLoadContentFilePreview: _e, renderContentFilePreview: ve, renderContentFileTree: K, onDelete: ye, onUnshare: be, isUnshareVisible: xe, onRevokeShare: Se, onFetchRecipientsCount: Ce, isRevokeShareVisible: we, onUnpublish: Te, isUnpublishVisible: Ee, onLogin: De, onLogout: Oe, onCreateClick: q, createOptions: J, createSearch: ke, createMenuByTab: Ae, hideCreateButton: je = !1, hidePageTitle: Me = !1, isReadonly: Y = !1, initialViewMode: Ne = cn.Grid, isFullWidth: Pe = !1, isFavoritesPaginationHidden: Fe = !1, selectedItemId: Ie, onCardClick: Le, isLoading: Re, styles: ze, detailsTexts: Be, detailsLimitsFooterNote: Ve, initialDetailsItemId: He, sortKey: Ue, onSortChange: We, filterTopics: Ge, onFilterTopicsChange: Ke, isMyAppsActive: qe, onMyAppsActiveChange: Je, activeTab: Ye, onActiveTabChange: Xe, renderEmptyState: Ze }) => {
|
|
4391
|
+
let { typography: Qe, headingRowClassName: $e = "h-[64px]" } = ze ?? {}, et = Sn(ze), tt = de(), nt = a?.pageTitle ?? "Catalog", rt = a?.createLabel ?? "Create", it = a?.favoritesTitle ?? "Your favorites", at = a?.browseTitle ?? "Browse", ot = a?.searchPlaceholder ?? "Search models, tools, agents…", st = a?.noResultsTitle ?? (() => "No items found"), ct = a?.myAppsEmptyTitle ?? (() => "No personal items yet"), lt = a?.myAppsEmptyDescription ?? "Create your first one, it'll show up right here.", ft = a?.featuredLabel ?? "Featured", pt = a?.gridViewLabel ?? "Grid view", mt = a?.listViewLabel ?? "List view", ht = a?.viewToggleLabel ?? "View mode", gt = a?.ariaLabel ?? "Catalog", _t = a?.scrollToTopLabel ?? "Scroll to top", vt = a?.sortLabel ?? "Sort", yt = [
|
|
4376
4392
|
{
|
|
4377
4393
|
value: o.RecentlyUpdated,
|
|
4378
4394
|
label: a?.sortRecentlyUpdatedLabel ?? "Recently Updated"
|
|
@@ -4385,103 +4401,103 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4385
4401
|
value: o.NameAZ,
|
|
4386
4402
|
label: a?.sortNameAZLabel ?? "Name A-Z"
|
|
4387
4403
|
}
|
|
4388
|
-
], [
|
|
4404
|
+
], [bt, xt] = G(""), [St, Ct] = G(Ne), [wt, Tt] = G(Ne === cn.Cards ? "shown" : "unmounted"), [Et, Dt] = G(o.RecentlyUpdated), [Ot, kt] = G(/* @__PURE__ */ new Set()), [At, jt] = G(!1), Mt = Ue ?? Et, Nt = Ge ?? Ot, Pt = qe ?? At, Ft = V((e) => {
|
|
4389
4405
|
let t = e;
|
|
4390
|
-
|
|
4391
|
-
}, [
|
|
4392
|
-
Dt(e), We?.(e);
|
|
4393
|
-
}, [We]), Ft = H((e) => {
|
|
4406
|
+
Dt(t), We?.(t);
|
|
4407
|
+
}, [We]), It = V((e) => {
|
|
4394
4408
|
kt(e), Ke?.(e);
|
|
4395
|
-
}, [Ke]),
|
|
4409
|
+
}, [Ke]), Lt = V((e) => {
|
|
4410
|
+
jt(e), Je?.(e);
|
|
4411
|
+
}, [Je]), Rt = U(() => e.filter((e) => !e.isHidden), [e]), zt = U(() => i.filter((e) => !e.isHidden), [i]), Bt = U(() => n ?? j(Rt), [n, Rt]), Vt = U(() => t ?? h(Rt, a?.tabLabels), [
|
|
4396
4412
|
t,
|
|
4397
|
-
|
|
4413
|
+
Rt,
|
|
4398
4414
|
a?.tabLabels
|
|
4399
|
-
]),
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
}, [
|
|
4403
|
-
let
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
}, [
|
|
4407
|
-
let
|
|
4408
|
-
|
|
4409
|
-
}, [
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
}, [
|
|
4413
|
-
let
|
|
4414
|
-
|
|
4415
|
-
}, []),
|
|
4416
|
-
|
|
4417
|
-
|
|
4415
|
+
]), Ht = Vt[0]?.id ?? "", [Ut, Wt] = G(Ht);
|
|
4416
|
+
H(() => {
|
|
4417
|
+
Wt((e) => e || Ht);
|
|
4418
|
+
}, [Ht]);
|
|
4419
|
+
let Gt = Ye ?? Ut, Kt = W(null);
|
|
4420
|
+
H(() => {
|
|
4421
|
+
Kt.current != null && g(Kt.current);
|
|
4422
|
+
}, [Gt, Vt.length]);
|
|
4423
|
+
let qt = V((e) => {
|
|
4424
|
+
Wt(e), Xe?.(e);
|
|
4425
|
+
}, [Xe]), [Jt, Yt] = G(zt.length > 0);
|
|
4426
|
+
H(() => {
|
|
4427
|
+
zt.length > 0 && !Jt && Yt(!0);
|
|
4428
|
+
}, [zt.length, Jt]);
|
|
4429
|
+
let Xt = V(() => {
|
|
4430
|
+
Yt(!1);
|
|
4431
|
+
}, []), Zt = Jt && zt.length === 0, [Qt, $t] = G(null), [en, tn] = G(!1), [nn, rn] = G(void 0), [an, on] = G(!1), $ = W(null);
|
|
4432
|
+
H(() => () => {
|
|
4433
|
+
$.current !== null && clearTimeout($.current);
|
|
4418
4434
|
}, []);
|
|
4419
|
-
let
|
|
4420
|
-
|
|
4421
|
-
let t =
|
|
4422
|
-
if (
|
|
4423
|
-
|
|
4435
|
+
let sn = W(null), ln = W(0), un = V(async (e) => {
|
|
4436
|
+
sn.current = e.id;
|
|
4437
|
+
let t = ++ln.current;
|
|
4438
|
+
if (le) {
|
|
4439
|
+
on(!0);
|
|
4424
4440
|
try {
|
|
4425
|
-
let n = await
|
|
4426
|
-
return
|
|
4441
|
+
let n = await le(e);
|
|
4442
|
+
return ln.current === t && rn(n), n;
|
|
4427
4443
|
} finally {
|
|
4428
|
-
|
|
4444
|
+
ln.current === t && on(!1);
|
|
4429
4445
|
}
|
|
4430
4446
|
}
|
|
4431
|
-
}, [
|
|
4447
|
+
}, [le]), dn = V(async (e) => ($.current !== null && (clearTimeout($.current), $.current = null, tn(!0)), $t(e), rn(void 0), un(e)), [un]), fn = V(async (e, t) => {
|
|
4432
4448
|
for (let n = 0; n < Ea; n++) {
|
|
4433
|
-
if (
|
|
4449
|
+
if (sn.current !== e.id || t(await un(e))) return;
|
|
4434
4450
|
n < 2 && await p(Da);
|
|
4435
4451
|
}
|
|
4436
|
-
}, [
|
|
4437
|
-
|
|
4438
|
-
if (!
|
|
4439
|
-
|
|
4452
|
+
}, [un]), pn = W(null);
|
|
4453
|
+
H(() => {
|
|
4454
|
+
if (!He) {
|
|
4455
|
+
pn.current = null;
|
|
4440
4456
|
return;
|
|
4441
4457
|
}
|
|
4442
|
-
if (
|
|
4443
|
-
let t = e.find((e) => e.id ===
|
|
4444
|
-
t && (
|
|
4458
|
+
if (pn.current === He) return;
|
|
4459
|
+
let t = e.find((e) => e.id === He);
|
|
4460
|
+
t && (pn.current = He, dn(t));
|
|
4445
4461
|
}, [
|
|
4446
|
-
|
|
4462
|
+
He,
|
|
4447
4463
|
e,
|
|
4448
|
-
|
|
4449
|
-
]),
|
|
4450
|
-
if (
|
|
4451
|
-
let t = e.find((e) => e.id ===
|
|
4452
|
-
t && t !==
|
|
4453
|
-
}, [e,
|
|
4454
|
-
let
|
|
4455
|
-
await
|
|
4464
|
+
dn
|
|
4465
|
+
]), H(() => {
|
|
4466
|
+
if (Qt == null) return;
|
|
4467
|
+
let t = e.find((e) => e.id === Qt.id);
|
|
4468
|
+
t && t !== Qt && $t(t);
|
|
4469
|
+
}, [e, Qt]);
|
|
4470
|
+
let hn = V(async (e, t) => {
|
|
4471
|
+
await De?.(e, t), le && await fn(e, (e) => D(e?.credentials, t.level));
|
|
4456
4472
|
}, [
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
]),
|
|
4461
|
-
await
|
|
4473
|
+
De,
|
|
4474
|
+
le,
|
|
4475
|
+
fn
|
|
4476
|
+
]), gn = V(async (e, t) => {
|
|
4477
|
+
await Oe?.(e, t), le && await fn(e, (e) => !D(e?.credentials, t.level));
|
|
4462
4478
|
}, [
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
]),
|
|
4467
|
-
|
|
4468
|
-
|
|
4479
|
+
Oe,
|
|
4480
|
+
le,
|
|
4481
|
+
fn
|
|
4482
|
+
]), vn = V(() => {
|
|
4483
|
+
tn(!1), sn.current = null, ln.current += 1, $.current !== null && clearTimeout($.current), $.current = setTimeout(() => {
|
|
4484
|
+
$.current = null, $t(null), rn(void 0), on(!1);
|
|
4469
4485
|
}, 300);
|
|
4470
|
-
}, []),
|
|
4471
|
-
if (
|
|
4472
|
-
if (
|
|
4473
|
-
let { credentials: e, ...t } =
|
|
4486
|
+
}, []), yn = U(() => {
|
|
4487
|
+
if (Qt == null) return null;
|
|
4488
|
+
if (nn == null) return Qt;
|
|
4489
|
+
let { credentials: e, ...t } = nn;
|
|
4474
4490
|
return {
|
|
4475
|
-
...
|
|
4491
|
+
...Qt,
|
|
4476
4492
|
details: t,
|
|
4477
|
-
credentials: e ??
|
|
4493
|
+
credentials: e ?? Qt.credentials
|
|
4478
4494
|
};
|
|
4479
|
-
}, [
|
|
4480
|
-
|
|
4481
|
-
if (
|
|
4495
|
+
}, [Qt, nn]), Cn = U(() => r(Rt, Mt), [Rt, Mt]), wn = U(() => M(Cn, bt), [Cn, bt]), Tn = U(() => Nt.size > 0 ? f(wn, Nt) : wn, [wn, Nt]), En = U(() => Pt ? N(Tn) : Tn, [Tn, Pt]), Dn = U(() => Gt ? En.filter((e) => S(e).includes(Gt)) : En, [En, Gt]);
|
|
4496
|
+
H(() => {
|
|
4497
|
+
if (wt !== "unmounted" || Re || Dn.length === 0) return;
|
|
4482
4498
|
let e = () => {
|
|
4483
|
-
|
|
4484
|
-
|
|
4499
|
+
he(() => {
|
|
4500
|
+
Tt((e) => e === "unmounted" ? "prepared" : e);
|
|
4485
4501
|
});
|
|
4486
4502
|
};
|
|
4487
4503
|
if (typeof window.requestIdleCallback == "function") {
|
|
@@ -4491,224 +4507,224 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4491
4507
|
let t = window.setTimeout(e, 200);
|
|
4492
4508
|
return () => window.clearTimeout(t);
|
|
4493
4509
|
}, [
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4510
|
+
wt,
|
|
4511
|
+
Re,
|
|
4512
|
+
Dn.length
|
|
4497
4513
|
]);
|
|
4498
|
-
let
|
|
4499
|
-
|
|
4500
|
-
if (
|
|
4501
|
-
let e = requestAnimationFrame(() =>
|
|
4514
|
+
let On = Qt != null && zt.some((e) => e.id === Qt.id);
|
|
4515
|
+
H(() => {
|
|
4516
|
+
if (Qt == null) return;
|
|
4517
|
+
let e = requestAnimationFrame(() => tn(!0));
|
|
4502
4518
|
return () => cancelAnimationFrame(e);
|
|
4503
|
-
}, [
|
|
4504
|
-
let
|
|
4505
|
-
e === cn.Cards &&
|
|
4506
|
-
}, []),
|
|
4507
|
-
scrollBody:
|
|
4508
|
-
searchInputRef:
|
|
4509
|
-
listViewRef:
|
|
4510
|
-
isListView:
|
|
4511
|
-
}),
|
|
4512
|
-
copyCodeAriaLabel:
|
|
4513
|
-
copiedCodeStatusLabel:
|
|
4514
|
-
downloadCodeAriaLabel:
|
|
4515
|
-
tableScrollRegionAriaLabel:
|
|
4516
|
-
mathScrollRegionAriaLabel:
|
|
4519
|
+
}, [Qt]);
|
|
4520
|
+
let kn = V((e) => {
|
|
4521
|
+
e === cn.Cards && Tt("shown"), Ct(e);
|
|
4522
|
+
}, []), An = !je && !Y, jn = An && tt, [Mn, Nn] = G(null), Pn = W(null), Fn = W(null), { isVisible: In, handleRowsScroll: Ln, scrollToTop: Rn } = _n({
|
|
4523
|
+
scrollBody: Mn,
|
|
4524
|
+
searchInputRef: Pn,
|
|
4525
|
+
listViewRef: Fn,
|
|
4526
|
+
isListView: St === cn.Cards
|
|
4527
|
+
}), zn = Jt && !Y, Bn = bt !== "" || Nt.size > 0, Vn = Bn ? st(bt, Gt) : _(a?.emptyTitle, Gt) ?? "No items yet", Hn = Bn ? a?.noResultsDescription ?? "Try a different search term or check your filters." : _(a?.emptyDescription, Gt), { copyCodeAriaLabel: Un, copiedCodeStatusLabel: Wn, downloadCodeAriaLabel: Gn, tableScrollRegionAriaLabel: qn, mathScrollRegionAriaLabel: Jn } = Be ?? {}, Yn = U(() => xn({
|
|
4528
|
+
copyCodeAriaLabel: Un,
|
|
4529
|
+
copiedCodeStatusLabel: Wn,
|
|
4530
|
+
downloadCodeAriaLabel: Gn,
|
|
4531
|
+
tableScrollRegionAriaLabel: qn,
|
|
4532
|
+
mathScrollRegionAriaLabel: Jn
|
|
4517
4533
|
}), [
|
|
4518
|
-
Vn,
|
|
4519
|
-
Hn,
|
|
4520
4534
|
Un,
|
|
4521
4535
|
Wn,
|
|
4522
|
-
Gn
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4536
|
+
Gn,
|
|
4537
|
+
qn,
|
|
4538
|
+
Jn
|
|
4539
|
+
]), Xn = U(() => ({
|
|
4540
|
+
noResultsTitle: Vn,
|
|
4541
|
+
noResultsDescription: Hn,
|
|
4542
|
+
featuredLabel: ft,
|
|
4527
4543
|
noFolderLabel: a?.noFolderLabel,
|
|
4528
|
-
credentialsBadgeLoggedOutLabel:
|
|
4544
|
+
credentialsBadgeLoggedOutLabel: Be?.credentialsBadgeLoggedOutLabel
|
|
4529
4545
|
}), [
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4546
|
+
Vn,
|
|
4547
|
+
Hn,
|
|
4548
|
+
ft,
|
|
4533
4549
|
a?.noFolderLabel,
|
|
4534
|
-
|
|
4535
|
-
]),
|
|
4536
|
-
query:
|
|
4537
|
-
activeTab:
|
|
4538
|
-
hasTopicFilters:
|
|
4539
|
-
isMyAppsActive:
|
|
4540
|
-
}) : void 0,
|
|
4541
|
-
label:
|
|
4542
|
-
options:
|
|
4543
|
-
onClick:
|
|
4544
|
-
search:
|
|
4550
|
+
Be?.credentialsBadgeLoggedOutLabel
|
|
4551
|
+
]), Zn = !Re && Dn.length === 0, Qn = Zn ? Ze?.({
|
|
4552
|
+
query: bt,
|
|
4553
|
+
activeTab: Gt,
|
|
4554
|
+
hasTopicFilters: Nt.size > 0,
|
|
4555
|
+
isMyAppsActive: Pt
|
|
4556
|
+
}) : void 0, $n = Zn && Pt && !bt && Nt.size === 0 && (Ae == null || Ae[Gt] != null), er = {
|
|
4557
|
+
label: rt,
|
|
4558
|
+
options: J,
|
|
4559
|
+
onClick: q,
|
|
4560
|
+
search: ke,
|
|
4545
4561
|
searchPlaceholder: a?.createSearchPlaceholder,
|
|
4546
4562
|
searchClearLabel: a?.createSearchClearLabel,
|
|
4547
4563
|
noResultsLabel: a?.createNoResultsLabel,
|
|
4548
4564
|
backLabel: a?.createMenuBackLabel,
|
|
4549
4565
|
closeLabel: a?.createMenuCloseLabel,
|
|
4550
|
-
colors:
|
|
4551
|
-
sectionHeaderClassName:
|
|
4552
|
-
},
|
|
4553
|
-
...
|
|
4554
|
-
|
|
4566
|
+
colors: ze?.colors?.createMenu,
|
|
4567
|
+
sectionHeaderClassName: Qe?.createMenuSectionHeaderClassName
|
|
4568
|
+
}, tr = Ae ? bn(Ae[Gt]) : er, nr = An && tr != null ? {
|
|
4569
|
+
...er,
|
|
4570
|
+
...tr
|
|
4555
4571
|
} : void 0;
|
|
4556
|
-
return
|
|
4572
|
+
return Re ? /* @__PURE__ */ Z("div", {
|
|
4557
4573
|
className: "flex size-full min-h-0 flex-1 items-center justify-center",
|
|
4558
4574
|
children: /* @__PURE__ */ Z(ut, { ariaLabel: a?.loadingLabel ?? "Loading…" })
|
|
4559
4575
|
}) : /* @__PURE__ */ Q("section", {
|
|
4560
|
-
"aria-label":
|
|
4561
|
-
className:
|
|
4562
|
-
style:
|
|
4576
|
+
"aria-label": gt,
|
|
4577
|
+
className: B("relative flex size-full min-h-0 flex-1 flex-col", Ta.root, mn.root),
|
|
4578
|
+
style: et,
|
|
4563
4579
|
children: [
|
|
4564
|
-
(!
|
|
4565
|
-
className:
|
|
4580
|
+
(!Me || An) && /* @__PURE__ */ Z("div", {
|
|
4581
|
+
className: B("shrink-0", Ta.heading),
|
|
4566
4582
|
children: /* @__PURE__ */ Q("div", {
|
|
4567
|
-
className:
|
|
4568
|
-
children: [!
|
|
4569
|
-
className:
|
|
4570
|
-
children:
|
|
4571
|
-
}),
|
|
4572
|
-
className:
|
|
4583
|
+
className: B("flex w-full items-center justify-between px-4 desktop:px-8", !(Me && jn) && $e),
|
|
4584
|
+
children: [!Me && /* @__PURE__ */ Z("h1", {
|
|
4585
|
+
className: B(Qe?.pageHeadingFontClassName ?? "dial-display2-text", Ta.headingTitle),
|
|
4586
|
+
children: nt
|
|
4587
|
+
}), An && /* @__PURE__ */ Z("div", {
|
|
4588
|
+
className: jn ? "absolute inset-e-4 bottom-4 z-10" : void 0,
|
|
4573
4589
|
children: /* @__PURE__ */ Z(da, {
|
|
4574
|
-
...
|
|
4575
|
-
isFloating:
|
|
4590
|
+
...er,
|
|
4591
|
+
isFloating: jn
|
|
4576
4592
|
})
|
|
4577
4593
|
})]
|
|
4578
4594
|
})
|
|
4579
4595
|
}),
|
|
4580
|
-
|
|
4581
|
-
className:
|
|
4596
|
+
In && /* @__PURE__ */ Z("div", {
|
|
4597
|
+
className: B("absolute inset-e-4 z-10", jn ? "bottom-20" : "bottom-4"),
|
|
4582
4598
|
children: /* @__PURE__ */ Z(pa, {
|
|
4583
|
-
label:
|
|
4584
|
-
onClick:
|
|
4599
|
+
label: _t,
|
|
4600
|
+
onClick: Rn
|
|
4585
4601
|
})
|
|
4586
4602
|
}),
|
|
4587
4603
|
/* @__PURE__ */ Q("div", {
|
|
4588
|
-
ref:
|
|
4589
|
-
className:
|
|
4604
|
+
ref: Nn,
|
|
4605
|
+
className: B("relative flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden overflow-y-auto", jn && "pb-16"),
|
|
4590
4606
|
children: [
|
|
4591
|
-
|
|
4607
|
+
zn && /* @__PURE__ */ Z("div", {
|
|
4592
4608
|
className: "w-full px-4 desktop:px-8",
|
|
4593
4609
|
children: /* @__PURE__ */ Z(Ri, {
|
|
4594
|
-
items:
|
|
4595
|
-
totalCount:
|
|
4596
|
-
title:
|
|
4610
|
+
items: zt,
|
|
4611
|
+
totalCount: zt.length,
|
|
4612
|
+
title: it,
|
|
4597
4613
|
onToggleFavorite: c,
|
|
4598
4614
|
isFavoriteVisible: l,
|
|
4599
|
-
onItemClick:
|
|
4600
|
-
isLeaving:
|
|
4601
|
-
onExitComplete:
|
|
4602
|
-
selectedItemId:
|
|
4603
|
-
credentialsBadgeLoggedOutLabel:
|
|
4604
|
-
isPaginationHidden:
|
|
4615
|
+
onItemClick: Le ?? dn,
|
|
4616
|
+
isLeaving: Zt,
|
|
4617
|
+
onExitComplete: Xt,
|
|
4618
|
+
selectedItemId: Ie,
|
|
4619
|
+
credentialsBadgeLoggedOutLabel: Be?.credentialsBadgeLoggedOutLabel,
|
|
4620
|
+
isPaginationHidden: Fe
|
|
4605
4621
|
})
|
|
4606
4622
|
}),
|
|
4607
4623
|
/* @__PURE__ */ Z("div", {
|
|
4608
4624
|
className: "w-full pt-6 desktop:px-4",
|
|
4609
4625
|
children: /* @__PURE__ */ Z(wa, {
|
|
4610
|
-
totalCount:
|
|
4611
|
-
viewMode:
|
|
4612
|
-
onViewModeChange:
|
|
4613
|
-
sortKey:
|
|
4614
|
-
query:
|
|
4615
|
-
onQueryChange:
|
|
4616
|
-
searchInputRef:
|
|
4617
|
-
title:
|
|
4626
|
+
totalCount: En.length,
|
|
4627
|
+
viewMode: St,
|
|
4628
|
+
onViewModeChange: kn,
|
|
4629
|
+
sortKey: Mt,
|
|
4630
|
+
query: bt,
|
|
4631
|
+
onQueryChange: xt,
|
|
4632
|
+
searchInputRef: Pn,
|
|
4633
|
+
title: at,
|
|
4618
4634
|
browseHeaderRenderer: s,
|
|
4619
|
-
searchPlaceholder:
|
|
4620
|
-
gridViewLabel:
|
|
4621
|
-
listViewLabel:
|
|
4622
|
-
viewToggleLabel:
|
|
4623
|
-
sortOptions:
|
|
4624
|
-
onSortChange:
|
|
4625
|
-
sortLabel:
|
|
4626
|
-
filters:
|
|
4627
|
-
onFiltersChange:
|
|
4628
|
-
filterValues:
|
|
4629
|
-
isMyAppsActive:
|
|
4630
|
-
onMyAppsChange:
|
|
4635
|
+
searchPlaceholder: ot,
|
|
4636
|
+
gridViewLabel: pt,
|
|
4637
|
+
listViewLabel: mt,
|
|
4638
|
+
viewToggleLabel: ht,
|
|
4639
|
+
sortOptions: yt,
|
|
4640
|
+
onSortChange: Ft,
|
|
4641
|
+
sortLabel: vt,
|
|
4642
|
+
filters: Nt,
|
|
4643
|
+
onFiltersChange: It,
|
|
4644
|
+
filterValues: Bt,
|
|
4645
|
+
isMyAppsActive: Pt,
|
|
4646
|
+
onMyAppsChange: Lt,
|
|
4631
4647
|
filterFromLabel: a?.filterFromLabel,
|
|
4632
4648
|
filterMyAppsLabel: a?.filterMyAppsLabel,
|
|
4633
4649
|
filterTopicsLabel: a?.filterTopicsLabel,
|
|
4634
4650
|
browseSettingsLabels: a?.browseSettings
|
|
4635
4651
|
})
|
|
4636
4652
|
}),
|
|
4637
|
-
|
|
4638
|
-
ref:
|
|
4653
|
+
Vt.length > 1 && /* @__PURE__ */ Z("div", {
|
|
4654
|
+
ref: Kt,
|
|
4639
4655
|
className: "mx-4 min-w-0 shrink-0 scrollbar-none overflow-x-auto desktop:mx-8",
|
|
4640
4656
|
children: /* @__PURE__ */ Z(dt, {
|
|
4641
4657
|
tabListClassName: "w-max min-w-full",
|
|
4642
4658
|
tabClassName: "shrink-0 whitespace-nowrap",
|
|
4643
|
-
tabs:
|
|
4659
|
+
tabs: Vt.map((e) => ({
|
|
4644
4660
|
id: e.id,
|
|
4645
4661
|
label: typeof e.label == "string" ? e.label : String(e.label),
|
|
4646
|
-
count:
|
|
4662
|
+
count: En.filter((t) => S(t).includes(e.id)).length
|
|
4647
4663
|
})),
|
|
4648
|
-
activeTabId:
|
|
4649
|
-
onTabChange:
|
|
4664
|
+
activeTabId: Gt,
|
|
4665
|
+
onTabChange: qt
|
|
4650
4666
|
})
|
|
4651
4667
|
}),
|
|
4652
4668
|
/* @__PURE__ */ Q("div", {
|
|
4653
|
-
className:
|
|
4669
|
+
className: B(Dn.length > 0 ? ["w-full flex-1 px-4 py-6 desktop:px-8", !Pe && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", Dn.length === 0 && "px-4 py-6 desktop:px-8"),
|
|
4654
4670
|
children: [
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
title:
|
|
4658
|
-
description:
|
|
4659
|
-
createButton:
|
|
4671
|
+
Qn != null && Qn,
|
|
4672
|
+
Qn == null && $n && /* @__PURE__ */ Z(fa, {
|
|
4673
|
+
title: ct(Gt),
|
|
4674
|
+
description: lt,
|
|
4675
|
+
createButton: nr
|
|
4660
4676
|
}),
|
|
4661
|
-
|
|
4662
|
-
inert:
|
|
4663
|
-
className:
|
|
4677
|
+
Qn == null && !$n && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", {
|
|
4678
|
+
inert: St !== cn.Grid,
|
|
4679
|
+
className: B(Dn.length > 0 ? "pb-8" : "size-full flex-1", St !== cn.Grid && "hidden"),
|
|
4664
4680
|
children: /* @__PURE__ */ Z(Kn, {
|
|
4665
|
-
items:
|
|
4666
|
-
query:
|
|
4681
|
+
items: Dn,
|
|
4682
|
+
query: bt,
|
|
4667
4683
|
onToggleFavorite: c,
|
|
4668
4684
|
isFavoriteVisible: l,
|
|
4669
|
-
onItemClick:
|
|
4670
|
-
titles:
|
|
4671
|
-
selectedItemId:
|
|
4672
|
-
isReadonly:
|
|
4673
|
-
isFullWidth:
|
|
4674
|
-
featuredChipStyle:
|
|
4675
|
-
markdownLabels:
|
|
4676
|
-
activeTab:
|
|
4685
|
+
onItemClick: Le ?? dn,
|
|
4686
|
+
titles: Xn,
|
|
4687
|
+
selectedItemId: Ie,
|
|
4688
|
+
isReadonly: Y,
|
|
4689
|
+
isFullWidth: Pe,
|
|
4690
|
+
featuredChipStyle: ze?.colors?.featuredChipStyle,
|
|
4691
|
+
markdownLabels: Yn,
|
|
4692
|
+
activeTab: Gt
|
|
4677
4693
|
})
|
|
4678
|
-
}),
|
|
4679
|
-
inert:
|
|
4680
|
-
className:
|
|
4694
|
+
}), wt !== "unmounted" && /* @__PURE__ */ Z("div", {
|
|
4695
|
+
inert: St !== cn.Cards,
|
|
4696
|
+
className: B(St === cn.Cards && "h-full min-h-[360px] pb-8", St !== cn.Cards && (wt === "prepared" ? "invisible h-0 overflow-hidden" : "hidden")),
|
|
4681
4697
|
children: /* @__PURE__ */ Z(sa, {
|
|
4682
|
-
ref:
|
|
4683
|
-
onRowsScroll:
|
|
4684
|
-
type:
|
|
4685
|
-
items:
|
|
4686
|
-
query:
|
|
4687
|
-
ariaLabel:
|
|
4688
|
-
emptyStateTitle:
|
|
4689
|
-
emptyStateDescription:
|
|
4690
|
-
isEmptyStateLive:
|
|
4698
|
+
ref: Fn,
|
|
4699
|
+
onRowsScroll: Ln,
|
|
4700
|
+
type: Gt,
|
|
4701
|
+
items: Dn,
|
|
4702
|
+
query: bt,
|
|
4703
|
+
ariaLabel: gt,
|
|
4704
|
+
emptyStateTitle: Vn,
|
|
4705
|
+
emptyStateDescription: Hn,
|
|
4706
|
+
isEmptyStateLive: Bn,
|
|
4691
4707
|
onToggleFavorite: c,
|
|
4692
4708
|
isFavoriteVisible: l,
|
|
4693
4709
|
columnVisibility: u,
|
|
4694
|
-
onItemClick:
|
|
4695
|
-
selectedItemId:
|
|
4696
|
-
credentialsBadgeLoggedOutLabel:
|
|
4697
|
-
isReadonly:
|
|
4710
|
+
onItemClick: Le ?? dn,
|
|
4711
|
+
selectedItemId: Ie,
|
|
4712
|
+
credentialsBadgeLoggedOutLabel: Be?.credentialsBadgeLoggedOutLabel,
|
|
4713
|
+
isReadonly: Y
|
|
4698
4714
|
})
|
|
4699
4715
|
})] })
|
|
4700
4716
|
]
|
|
4701
4717
|
})
|
|
4702
4718
|
]
|
|
4703
4719
|
}),
|
|
4704
|
-
|
|
4705
|
-
renderCredentials:
|
|
4706
|
-
item:
|
|
4707
|
-
isOpen:
|
|
4708
|
-
isStarred:
|
|
4709
|
-
isDetailsLoading:
|
|
4710
|
-
isReadonly:
|
|
4711
|
-
onClose:
|
|
4720
|
+
yn != null && /* @__PURE__ */ Z(Ai, {
|
|
4721
|
+
renderCredentials: z,
|
|
4722
|
+
item: yn,
|
|
4723
|
+
isOpen: en,
|
|
4724
|
+
isStarred: On,
|
|
4725
|
+
isDetailsLoading: an,
|
|
4726
|
+
isReadonly: Y,
|
|
4727
|
+
onClose: vn,
|
|
4712
4728
|
onToggleFavorite: c,
|
|
4713
4729
|
isFavoriteVisible: l,
|
|
4714
4730
|
onUseInChat: d,
|
|
@@ -4720,43 +4736,45 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4720
4736
|
getPublishDependencies: C,
|
|
4721
4737
|
resolvePublishDependenciesLabels: w,
|
|
4722
4738
|
resolvePublishApprovalLabels: T,
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4739
|
+
publishVersionHistory: E,
|
|
4740
|
+
onPublishOpenChange: O,
|
|
4741
|
+
publishFolderItems: k,
|
|
4742
|
+
publishExpandedPaths: A,
|
|
4743
|
+
onPublishExpandedPathsChange: P,
|
|
4744
|
+
publishLoadingPaths: F,
|
|
4745
|
+
hasPublishWriteAccess: ee,
|
|
4746
|
+
publishDefaultAuthor: I,
|
|
4747
|
+
onPublish: L,
|
|
4748
|
+
onPublishSuccess: te,
|
|
4749
|
+
onPublishError: ne,
|
|
4750
|
+
onCreatePublishFolder: re,
|
|
4751
|
+
publishLabels: ie,
|
|
4752
|
+
ruleSourceOptions: ae,
|
|
4753
|
+
onFetchExistingRules: R,
|
|
4754
|
+
shareOverlay: oe,
|
|
4755
|
+
isShareVisible: se,
|
|
4756
|
+
isSharePrimary: ce,
|
|
4757
|
+
onEdit: ue,
|
|
4758
|
+
onDownload: fe,
|
|
4759
|
+
isDownloadVisible: pe,
|
|
4760
|
+
isDownloadPrimary: me,
|
|
4761
|
+
onLoadContentFile: ge,
|
|
4762
|
+
onLoadContentFilePreview: _e,
|
|
4763
|
+
renderContentFilePreview: ve,
|
|
4764
|
+
renderContentFileTree: K,
|
|
4765
|
+
onDelete: ye,
|
|
4766
|
+
onUnshare: be,
|
|
4767
|
+
isUnshareVisible: xe,
|
|
4768
|
+
onRevokeShare: Se,
|
|
4769
|
+
onFetchRecipientsCount: Ce,
|
|
4770
|
+
isRevokeShareVisible: we,
|
|
4771
|
+
onUnpublish: Te,
|
|
4772
|
+
isUnpublishVisible: Ee,
|
|
4773
|
+
onLogin: hn,
|
|
4774
|
+
onLogout: gn,
|
|
4775
|
+
texts: Be,
|
|
4776
|
+
limitsFooterNote: Ve,
|
|
4777
|
+
styles: { colors: { featuredChipStyle: ze?.colors?.featuredChipStyle } }
|
|
4760
4778
|
})
|
|
4761
4779
|
]
|
|
4762
4780
|
});
|
|
@@ -4768,20 +4786,20 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4768
4786
|
headerClassName: "px-6 py-4 max-[767px]:px-4 max-[767px]:py-3",
|
|
4769
4787
|
footerClassName: "px-6 py-4 max-[767px]:px-4 max-[767px]:py-3"
|
|
4770
4788
|
}, Ma = ({ items: e, labels: t, status: n, error: r, onRetry: i, isConfirmDisabled: a = !1, footerStart: s, colors: l, headingClassName: u = "dial-body-semi-text", onConfirm: d, onClose: f, listProps: p, renderList: m }) => {
|
|
4771
|
-
let [h, g] =
|
|
4789
|
+
let [h, g] = G(""), [_, v] = G(() => /* @__PURE__ */ new Set()), [y, b] = G(!1), [x, S] = G(o.RecentlyUpdated), [C, w] = G(null), T = W(null), E = W(null), { isVisible: D, handleRowsScroll: O, scrollToTop: k } = _n({
|
|
4772
4790
|
scrollBody: C,
|
|
4773
4791
|
searchInputRef: E,
|
|
4774
4792
|
listViewRef: T,
|
|
4775
4793
|
isListView: !0
|
|
4776
|
-
}), A =
|
|
4794
|
+
}), A = W(O);
|
|
4777
4795
|
A.current = O;
|
|
4778
|
-
let M =
|
|
4796
|
+
let M = V((e) => {
|
|
4779
4797
|
e ?? A.current(0), w(e);
|
|
4780
|
-
}, []), N = p?.ref, P =
|
|
4798
|
+
}, []), N = p?.ref, P = V((e) => {
|
|
4781
4799
|
T.current = e, typeof N == "function" ? N(e) : N != null && (N.current = e);
|
|
4782
|
-
}, [N]), F = p?.onRowsScroll,
|
|
4800
|
+
}, [N]), F = p?.onRowsScroll, ee = V((e) => {
|
|
4783
4801
|
O(e), F?.(e);
|
|
4784
|
-
}, [O, F]),
|
|
4802
|
+
}, [O, F]), I = n === ka.Ready, L = I && !a, te = t.cancel ?? "Cancel", ne = t.add ?? "Add", re = U(() => j(e), [e]), ae = U(() => c(e, {
|
|
4785
4803
|
search: h,
|
|
4786
4804
|
topics: _,
|
|
4787
4805
|
isMyOnly: y,
|
|
@@ -4792,7 +4810,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4792
4810
|
_,
|
|
4793
4811
|
y,
|
|
4794
4812
|
x
|
|
4795
|
-
]), R =
|
|
4813
|
+
]), R = U(() => [
|
|
4796
4814
|
{
|
|
4797
4815
|
value: o.RecentlyUpdated,
|
|
4798
4816
|
label: t.sortUpdated ?? "Recently Updated"
|
|
@@ -4809,32 +4827,32 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4809
4827
|
t.sortUpdated,
|
|
4810
4828
|
t.sortNewest,
|
|
4811
4829
|
t.sortNameAZ
|
|
4812
|
-
]), oe =
|
|
4830
|
+
]), oe = U(() => R.map((e) => ({
|
|
4813
4831
|
key: e.value,
|
|
4814
4832
|
label: e.label,
|
|
4815
4833
|
mark: Xe.Check,
|
|
4816
4834
|
checked: e.value === x,
|
|
4817
4835
|
onClick: () => S(e.value)
|
|
4818
|
-
})), [R, x]),
|
|
4836
|
+
})), [R, x]), se = R.find((e) => e.value === x)?.label ?? t.sort ?? "Sort", ce = V((e) => g(e ?? ""), []), le = V(() => {
|
|
4819
4837
|
L && d();
|
|
4820
|
-
}, [L, d]),
|
|
4838
|
+
}, [L, d]), B = U(() => [{
|
|
4821
4839
|
label: te,
|
|
4822
|
-
variant:
|
|
4823
|
-
appearance:
|
|
4840
|
+
variant: we.Primary,
|
|
4841
|
+
appearance: Se.Ghost,
|
|
4824
4842
|
onClick: f
|
|
4825
4843
|
}, {
|
|
4826
4844
|
label: ne,
|
|
4827
4845
|
disabled: !L,
|
|
4828
|
-
onClick:
|
|
4846
|
+
onClick: le
|
|
4829
4847
|
}], [
|
|
4830
4848
|
te,
|
|
4831
4849
|
ne,
|
|
4832
4850
|
f,
|
|
4833
4851
|
L,
|
|
4834
|
-
|
|
4835
|
-
]),
|
|
4852
|
+
le
|
|
4853
|
+
]), ue = s == null ? void 0 : /* @__PURE__ */ Q("div", {
|
|
4836
4854
|
className: mt("flex flex-wrap items-center justify-between gap-2 border-t", Aa.footer, ja.footerClassName),
|
|
4837
|
-
style:
|
|
4855
|
+
style: z({ "--cat-picker-footer-border": l?.footerBorder }),
|
|
4838
4856
|
children: [/* @__PURE__ */ Z("div", {
|
|
4839
4857
|
className: "flex flex-wrap items-center gap-4",
|
|
4840
4858
|
children: s
|
|
@@ -4842,15 +4860,15 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4842
4860
|
className: "ms-auto flex items-center gap-2",
|
|
4843
4861
|
children: [/* @__PURE__ */ Z(nt, {
|
|
4844
4862
|
label: te,
|
|
4845
|
-
appearance:
|
|
4863
|
+
appearance: Se.Ghost,
|
|
4846
4864
|
onClick: f
|
|
4847
4865
|
}), /* @__PURE__ */ Z(Ze, {
|
|
4848
4866
|
label: ne,
|
|
4849
4867
|
disabled: !L,
|
|
4850
|
-
onClick:
|
|
4868
|
+
onClick: le
|
|
4851
4869
|
})]
|
|
4852
4870
|
})]
|
|
4853
|
-
}),
|
|
4871
|
+
}), de = () => {
|
|
4854
4872
|
if (n === ka.Loading) return /* @__PURE__ */ Z("div", {
|
|
4855
4873
|
className: "flex items-center justify-center py-16",
|
|
4856
4874
|
children: /* @__PURE__ */ Z(ut, {
|
|
@@ -4883,7 +4901,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4883
4901
|
ariaLabel: t.catalog,
|
|
4884
4902
|
...p,
|
|
4885
4903
|
ref: P,
|
|
4886
|
-
onRowsScroll:
|
|
4904
|
+
onRowsScroll: ee,
|
|
4887
4905
|
items: ae,
|
|
4888
4906
|
query: h
|
|
4889
4907
|
}), D && /* @__PURE__ */ Z("div", {
|
|
@@ -4894,7 +4912,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4894
4912
|
})
|
|
4895
4913
|
})]
|
|
4896
4914
|
});
|
|
4897
|
-
},
|
|
4915
|
+
}, fe = t.search ?? "Search";
|
|
4898
4916
|
return /* @__PURE__ */ Q(et, {
|
|
4899
4917
|
open: !0,
|
|
4900
4918
|
header: t.title,
|
|
@@ -4904,8 +4922,8 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4904
4922
|
...ja,
|
|
4905
4923
|
closeAriaLabel: t.closeDialog ?? "Close dialog",
|
|
4906
4924
|
bodyClassName: "flex min-h-0 flex-col overflow-hidden px-6 py-2 h-[70vh] max-[767px]:h-auto max-[767px]:px-4",
|
|
4907
|
-
mainButtons:
|
|
4908
|
-
footer:
|
|
4925
|
+
mainButtons: B,
|
|
4926
|
+
footer: ue,
|
|
4909
4927
|
onClose: f,
|
|
4910
4928
|
children: [/* @__PURE__ */ Q("div", {
|
|
4911
4929
|
className: "flex shrink-0 flex-col gap-3 pb-5",
|
|
@@ -4913,16 +4931,16 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4913
4931
|
className: "flex items-center gap-2",
|
|
4914
4932
|
children: [/* @__PURE__ */ Z(ie, {
|
|
4915
4933
|
title: t.catalog,
|
|
4916
|
-
postfix:
|
|
4934
|
+
postfix: I ? ae.length : void 0,
|
|
4917
4935
|
titleClassName: u,
|
|
4918
4936
|
shouldTruncateTitle: !1
|
|
4919
4937
|
}), /* @__PURE__ */ Z("div", {
|
|
4920
4938
|
className: "ms-auto shrink-0",
|
|
4921
|
-
children: /* @__PURE__ */ Z(
|
|
4939
|
+
children: /* @__PURE__ */ Z(Ce, {
|
|
4922
4940
|
items: oe,
|
|
4923
|
-
label:
|
|
4924
|
-
variant:
|
|
4925
|
-
appearance:
|
|
4941
|
+
label: se,
|
|
4942
|
+
variant: we.Primary,
|
|
4943
|
+
appearance: Se.Ghost
|
|
4926
4944
|
})
|
|
4927
4945
|
})]
|
|
4928
4946
|
}), /* @__PURE__ */ Q("div", {
|
|
@@ -4932,11 +4950,11 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4932
4950
|
className: "flex-1",
|
|
4933
4951
|
children: /* @__PURE__ */ Z(at, {
|
|
4934
4952
|
value: h,
|
|
4935
|
-
onChange:
|
|
4936
|
-
size:
|
|
4953
|
+
onChange: ce,
|
|
4954
|
+
size: Y.Large,
|
|
4937
4955
|
wrapperClassName: "dial-kit-input-large",
|
|
4938
|
-
placeholder:
|
|
4939
|
-
"aria-label":
|
|
4956
|
+
placeholder: fe,
|
|
4957
|
+
"aria-label": fe,
|
|
4940
4958
|
clearLabel: t.clearSearch ?? "Clear search",
|
|
4941
4959
|
inputRef: E
|
|
4942
4960
|
})
|
|
@@ -4953,10 +4971,10 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4953
4971
|
applyLabel: t.apply ?? "Apply"
|
|
4954
4972
|
})]
|
|
4955
4973
|
})]
|
|
4956
|
-
}),
|
|
4974
|
+
}), de()]
|
|
4957
4975
|
});
|
|
4958
4976
|
}, Na = ({ type: e, items: t, attachedIds: n, labels: r, status: i, error: a, onRetry: o, listProps: s, renderFooterStart: c, onConfirm: l, onClose: d, headingClassName: f }) => {
|
|
4959
|
-
let [p, m] =
|
|
4977
|
+
let [p, m] = G(() => new Set(n)), h = U(() => new Set(t.map((e) => e.id)), [t]), { selectRow: g } = r, _ = V((e) => g ? g(e.name) : `Select ${e.name}`, [g]), v = V(() => l(u(n, p, h)), [
|
|
4960
4978
|
l,
|
|
4961
4979
|
n,
|
|
4962
4980
|
p,
|
|
@@ -4987,7 +5005,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
4987
5005
|
focusable: "_focusable_xykcx_5",
|
|
4988
5006
|
description: "_description_xykcx_9"
|
|
4989
5007
|
}, Fa = "group relative flex min-w-0 items-center gap-1 rounded-[10px] pe-1", Ia = "outline-hidden focus-visible:outline", La = ({ name: e, version: t, iconUrl: n, fileType: r, iconSize: i = 36, path: a, description: o, trailing: s, credentials: c, labels: l, colors: u, titleClassName: d = "dial-small-semi-text", versionClassName: f = "dial-tiny-text", descriptionClassName: p = "dial-tiny-text", isDisabled: m = !1, onOpen: h, onRemove: g }) => {
|
|
4990
|
-
let _ =
|
|
5008
|
+
let _ = ge(), v = ge(), y = o != null && o !== "", b = z({
|
|
4991
5009
|
"--cat-add-on-row-hover-bg": u?.rowHoverBackground,
|
|
4992
5010
|
"--cat-add-on-focus-outline": u?.focusOutline,
|
|
4993
5011
|
"--cat-add-on-description": u?.description
|
|
@@ -5035,7 +5053,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5035
5053
|
className: "pointer-events-none flex min-w-0 flex-1 items-center gap-2.5 py-1",
|
|
5036
5054
|
children: [x, /* @__PURE__ */ Q("span", {
|
|
5037
5055
|
className: "flex min-w-0 flex-1 flex-col",
|
|
5038
|
-
children: [/* @__PURE__ */ Z(
|
|
5056
|
+
children: [/* @__PURE__ */ Z(be, {
|
|
5039
5057
|
items: a.map((e) => ({ label: e })),
|
|
5040
5058
|
ariaLabel: l?.location ?? "Location"
|
|
5041
5059
|
}), S]
|
|
@@ -5071,11 +5089,11 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5071
5089
|
children: s
|
|
5072
5090
|
}),
|
|
5073
5091
|
g && /* @__PURE__ */ Z(ze, {
|
|
5074
|
-
size:
|
|
5092
|
+
size: Y.Small,
|
|
5075
5093
|
icon: /* @__PURE__ */ Z(Vt, {
|
|
5076
5094
|
"aria-hidden": !0,
|
|
5077
|
-
size:
|
|
5078
|
-
stroke:
|
|
5095
|
+
size: q.SM,
|
|
5096
|
+
stroke: J
|
|
5079
5097
|
}),
|
|
5080
5098
|
"aria-label": l?.remove ?? `Remove ${e}`,
|
|
5081
5099
|
disabled: m,
|
|
@@ -5085,8 +5103,8 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5085
5103
|
]
|
|
5086
5104
|
});
|
|
5087
5105
|
}, Ra = (e) => {
|
|
5088
|
-
let t =
|
|
5089
|
-
return
|
|
5106
|
+
let t = W(null), n = W(e);
|
|
5107
|
+
return H(() => {
|
|
5090
5108
|
let r = e < n.current;
|
|
5091
5109
|
if (n.current = e, !r) return;
|
|
5092
5110
|
let i = document.activeElement;
|
|
@@ -5095,9 +5113,9 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5095
5113
|
(a?.querySelector("ul button") ?? a?.querySelector("button"))?.focus();
|
|
5096
5114
|
}, [e]), t;
|
|
5097
5115
|
}, za = ({ selectedId: e, records: t, selectedLabel: n, placeholder: r, labels: i, onSelect: a, onBrowse: o, extraOptions: s = [], isLoading: c = !1, error: l, isDisabled: u = !1, isInvalid: d = !1, labelledById: f, ariaHasPopup: p = "listbox", className: m, panelClassName: h, iconAfter: g, renderPanel: _, open: v, onOpenChange: y, renderOverlay: b }) => {
|
|
5098
|
-
let [x, S] =
|
|
5116
|
+
let [x, S] = G(!1), C = v ?? x, w = (e) => {
|
|
5099
5117
|
e && u || (v === void 0 && S(e), y?.(e));
|
|
5100
|
-
}, [T, E] =
|
|
5118
|
+
}, [T, E] = G(""), D = W(null), O = U(() => [...s, ...t].filter((e) => e.label.toLocaleLowerCase().includes(T.toLocaleLowerCase())), [
|
|
5101
5119
|
s,
|
|
5102
5120
|
t,
|
|
5103
5121
|
T
|
|
@@ -5108,7 +5126,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5108
5126
|
}, j = "";
|
|
5109
5127
|
c ? j = i.searchPlaceholder : !l && O.length === 0 && (j = i.emptyLabel);
|
|
5110
5128
|
let M = !c && !!l, N = !c && !l && O.length > 0, P = _ ? _(k) : /* @__PURE__ */ Q("div", {
|
|
5111
|
-
className:
|
|
5129
|
+
className: B("w-full max-w-full min-w-0 p-3", h),
|
|
5112
5130
|
children: [
|
|
5113
5131
|
/* @__PURE__ */ Z(at, {
|
|
5114
5132
|
value: T,
|
|
@@ -5177,7 +5195,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5177
5195
|
e.key === "Escape" ? k() : b && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), w(!C));
|
|
5178
5196
|
},
|
|
5179
5197
|
containerClassName: "w-full min-w-0",
|
|
5180
|
-
wrapperClassName:
|
|
5198
|
+
wrapperClassName: B("cursor-pointer", m),
|
|
5181
5199
|
className: "cursor-pointer",
|
|
5182
5200
|
iconAfter: g
|
|
5183
5201
|
});
|
|
@@ -5185,13 +5203,13 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5185
5203
|
className: "w-full min-w-0",
|
|
5186
5204
|
onClick: () => w(!C),
|
|
5187
5205
|
children: F
|
|
5188
|
-
}), b(P, C, k)] }) : /* @__PURE__ */ Z(
|
|
5206
|
+
}), b(P, C, k)] }) : /* @__PURE__ */ Z(Ae, {
|
|
5189
5207
|
open: C,
|
|
5190
5208
|
onOpenChange: w,
|
|
5191
5209
|
disabled: u,
|
|
5192
5210
|
className: "w-full",
|
|
5193
5211
|
listClassName: "w-[min(var(--reference-width),calc(100vw-2rem))] max-w-full",
|
|
5194
|
-
overlayRole:
|
|
5212
|
+
overlayRole: Me.Dialog,
|
|
5195
5213
|
overlayAriaLabel: i.panelAriaLabel ?? "Select model",
|
|
5196
5214
|
optionArrowNavigation: !0,
|
|
5197
5215
|
renderOverlay: () => P,
|
|
@@ -5215,20 +5233,20 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5215
5233
|
let n = t.toLowerCase();
|
|
5216
5234
|
return e.name.toLowerCase().includes(n) || e.topics.some((e) => e.toLowerCase().includes(n)) || e.folder.some((e) => e.toLowerCase().includes(n));
|
|
5217
5235
|
}, Wa = (e) => S(e).some((e) => e === P.Model || e === P.Agent), Ga = [], Ka = ({ searchQuery: e, onSearchQueryChange: t, favorites: n, extraOptions: r = Ga, pinnedItem: i, canFavoritePinnedItem: a = !0, selectedId: o, selectedItem: s, isSelectableItem: c = Wa, layout: l = Ba.Sectioned, onSelect: u, onToggleFavorite: d, onBrowseCatalog: f, onClose: p, labels: m = {}, colors: h, sectionHeadingClassName: g = "dial-tiny-lead-semi-text", itemNameClassName: _ = "dial-small-text", emptyHintClassName: v = "dial-small-text", className: y }) => {
|
|
5218
|
-
let { searchPlaceholder: b = "Search models, agents…", clearSearchLabel: x = "Clear search", favoritesLabel: S = "Favorites", emptyHint: C = "Star a model or agent to pin it here.", browseCatalogLabel: w = "Catalog", removeFromFavoritesLabel: T = "Remove from favorites", currentlySelectedLabel: E = "Currently selected", addToFavoritesLabel: D = "Add to favorites", listAriaLabel: O = "Select model", unavailableLabel: k = "Unavailable" } = m, A = l === Ba.Sectioned, [j, M] =
|
|
5236
|
+
let { searchPlaceholder: b = "Search models, agents…", clearSearchLabel: x = "Clear search", favoritesLabel: S = "Favorites", emptyHint: C = "Star a model or agent to pin it here.", browseCatalogLabel: w = "Catalog", removeFromFavoritesLabel: T = "Remove from favorites", currentlySelectedLabel: E = "Currently selected", addToFavoritesLabel: D = "Add to favorites", listAriaLabel: O = "Select model", unavailableLabel: k = "Unavailable" } = m, A = l === Ba.Sectioned, [j, M] = G(""), N = e ?? j, P = (e) => {
|
|
5219
5237
|
M(e ?? ""), t?.(e ?? "");
|
|
5220
|
-
}, [F,
|
|
5221
|
-
|
|
5222
|
-
let e =
|
|
5238
|
+
}, [F, ee] = G(/* @__PURE__ */ new Set()), I = W(/* @__PURE__ */ new Map());
|
|
5239
|
+
H(() => {
|
|
5240
|
+
let e = I.current;
|
|
5223
5241
|
return () => {
|
|
5224
5242
|
e.forEach((e) => clearTimeout(e)), e.clear();
|
|
5225
5243
|
};
|
|
5226
5244
|
}, []);
|
|
5227
|
-
let te =
|
|
5245
|
+
let te = U(() => (i == null ? n : [i, ...n.filter((e) => e.id !== i.id)]).filter((e) => !e.isHidden && c(e)), [
|
|
5228
5246
|
n,
|
|
5229
5247
|
i,
|
|
5230
5248
|
c
|
|
5231
|
-
]), ne =
|
|
5249
|
+
]), ne = U(() => new Set(n.map((e) => e.id)), [n]), re = N.trim(), ie = s != null && te.some((e) => e.id === s.id), ae = s != null && c(s) && (A || !ie) && (!re || Ua(s, N)), R = U(() => {
|
|
5232
5250
|
let e = A ? te.filter((e) => e.id !== s?.id) : te;
|
|
5233
5251
|
return re ? e.filter((e) => Ua(e, N)) : e;
|
|
5234
5252
|
}, [
|
|
@@ -5237,65 +5255,65 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5237
5255
|
re,
|
|
5238
5256
|
N,
|
|
5239
5257
|
s?.id
|
|
5240
|
-
]), oe =
|
|
5258
|
+
]), oe = U(() => {
|
|
5241
5259
|
let e = re.toLowerCase();
|
|
5242
5260
|
return e ? r.filter((t) => t.label.toLowerCase().includes(e)) : r;
|
|
5243
|
-
}, [r, re]),
|
|
5244
|
-
|
|
5245
|
-
|
|
5261
|
+
}, [r, re]), se = W(null), [ue, fe] = G();
|
|
5262
|
+
ve(() => {
|
|
5263
|
+
se.current && fe(Math.min(se.current.scrollHeight, le));
|
|
5246
5264
|
}, [
|
|
5247
5265
|
R,
|
|
5248
5266
|
oe,
|
|
5249
5267
|
ae
|
|
5250
5268
|
]);
|
|
5251
|
-
let
|
|
5252
|
-
|
|
5253
|
-
|
|
5269
|
+
let pe = W(null), me = W(null);
|
|
5270
|
+
H(() => {
|
|
5271
|
+
me.current && pe.current && En(me.current, pe.current);
|
|
5254
5272
|
}, []);
|
|
5255
|
-
let
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
}, [
|
|
5259
|
-
let
|
|
5273
|
+
let he = de(), V = W(null);
|
|
5274
|
+
H(() => {
|
|
5275
|
+
he || V.current?.focus();
|
|
5276
|
+
}, [he]);
|
|
5277
|
+
let ge = (e) => {
|
|
5260
5278
|
u(e), p();
|
|
5261
|
-
},
|
|
5279
|
+
}, _e = () => {
|
|
5262
5280
|
f?.(), p();
|
|
5263
|
-
},
|
|
5264
|
-
|
|
5281
|
+
}, K = (e, t) => {
|
|
5282
|
+
ee((t) => new Set(t).add(e));
|
|
5265
5283
|
let n = setTimeout(() => {
|
|
5266
|
-
d(e, t),
|
|
5284
|
+
d(e, t), ee((t) => {
|
|
5267
5285
|
let n = new Set(t);
|
|
5268
5286
|
return n.delete(e), n;
|
|
5269
|
-
}),
|
|
5287
|
+
}), I.current.delete(e);
|
|
5270
5288
|
}, Ha);
|
|
5271
|
-
|
|
5272
|
-
},
|
|
5289
|
+
I.current.set(e, n);
|
|
5290
|
+
}, ye = (e) => re ? /* @__PURE__ */ Z(Be, {
|
|
5273
5291
|
text: e,
|
|
5274
5292
|
query: N,
|
|
5275
|
-
className:
|
|
5293
|
+
className: B(_, "min-w-0 flex-initial!")
|
|
5276
5294
|
}) : /* @__PURE__ */ Z(Ne, {
|
|
5277
5295
|
text: e,
|
|
5278
|
-
className:
|
|
5279
|
-
}),
|
|
5296
|
+
className: B(_, "min-w-0 flex-initial!")
|
|
5297
|
+
}), be = (e) => {
|
|
5280
5298
|
let t = e.id === o;
|
|
5281
5299
|
return /* @__PURE__ */ Z("li", {
|
|
5282
5300
|
role: "none",
|
|
5283
|
-
ref: t ?
|
|
5301
|
+
ref: t ? pe : void 0,
|
|
5284
5302
|
children: /* @__PURE__ */ Z(Ye, {
|
|
5285
5303
|
role: "menuitemradio",
|
|
5286
5304
|
"aria-checked": t,
|
|
5287
5305
|
mark: Xe.Tint,
|
|
5288
5306
|
selected: t,
|
|
5289
5307
|
className: "h-auto py-1.5",
|
|
5290
|
-
label:
|
|
5291
|
-
onClick: () =>
|
|
5308
|
+
label: ye(e.label),
|
|
5309
|
+
onClick: () => ge(e.id)
|
|
5292
5310
|
})
|
|
5293
5311
|
}, e.id);
|
|
5294
|
-
},
|
|
5312
|
+
}, xe = (e, t = !1) => {
|
|
5295
5313
|
let n = e.id === o, r = ne.has(e.id), s = !!e.isHidden, c = !s && (a || e.id !== i?.id), l = !t && F.has(e.id);
|
|
5296
5314
|
return /* @__PURE__ */ Z("li", {
|
|
5297
5315
|
role: "none",
|
|
5298
|
-
ref: n ?
|
|
5316
|
+
ref: n ? pe : void 0,
|
|
5299
5317
|
className: l ? Va.rowLeaving : Va.rowEnter,
|
|
5300
5318
|
children: /* @__PURE__ */ Z(Ye, {
|
|
5301
5319
|
role: "menuitemradio",
|
|
@@ -5307,58 +5325,58 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5307
5325
|
description: s ? k : void 0,
|
|
5308
5326
|
icon: /* @__PURE__ */ Z(L, {
|
|
5309
5327
|
src: e.iconUrl,
|
|
5310
|
-
size:
|
|
5328
|
+
size: q.MD,
|
|
5311
5329
|
initialsName: e.name
|
|
5312
5330
|
}),
|
|
5313
5331
|
label: /* @__PURE__ */ Q("span", {
|
|
5314
5332
|
className: "flex min-w-0 flex-1 flex-wrap items-start gap-x-1.5 whitespace-normal",
|
|
5315
|
-
children: [
|
|
5333
|
+
children: [ye(e.name), e.version && /* @__PURE__ */ Z(Te, {
|
|
5316
5334
|
text: e.version,
|
|
5317
5335
|
className: "min-w-0 wrap-break-word"
|
|
5318
5336
|
})]
|
|
5319
5337
|
}),
|
|
5320
|
-
onClick: () =>
|
|
5338
|
+
onClick: () => ge(e.id),
|
|
5321
5339
|
rightControl: c ? /* @__PURE__ */ Z(ft, {
|
|
5322
5340
|
icon: /* @__PURE__ */ Z(zt, {
|
|
5323
|
-
size:
|
|
5341
|
+
size: q.SM,
|
|
5324
5342
|
"aria-hidden": !0,
|
|
5325
|
-
stroke:
|
|
5343
|
+
stroke: J
|
|
5326
5344
|
}),
|
|
5327
5345
|
selectedIcon: /* @__PURE__ */ Z(Bt, {
|
|
5328
|
-
size:
|
|
5346
|
+
size: q.SM,
|
|
5329
5347
|
className: Va.starFilledIcon,
|
|
5330
5348
|
"aria-hidden": !0
|
|
5331
5349
|
}),
|
|
5332
5350
|
isSelected: r,
|
|
5333
5351
|
"aria-label": r ? T : D,
|
|
5334
5352
|
onClick: (t) => {
|
|
5335
|
-
t.stopPropagation(),
|
|
5353
|
+
t.stopPropagation(), K(e.id, !r);
|
|
5336
5354
|
}
|
|
5337
5355
|
}) : void 0
|
|
5338
5356
|
})
|
|
5339
5357
|
}, e.id);
|
|
5340
|
-
},
|
|
5341
|
-
className:
|
|
5358
|
+
}, Se = () => /* @__PURE__ */ Z("p", {
|
|
5359
|
+
className: B(v, "px-4 py-4 text-center", Va.emptyHint),
|
|
5342
5360
|
children: C
|
|
5343
|
-
}),
|
|
5361
|
+
}), Ce = () => /* @__PURE__ */ Q(X, { children: [
|
|
5344
5362
|
ae && s && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("p", {
|
|
5345
|
-
className:
|
|
5363
|
+
className: B(g, "px-3 pt-2 pb-2", Va.sectionHeading),
|
|
5346
5364
|
children: E
|
|
5347
5365
|
}), /* @__PURE__ */ Z("ul", {
|
|
5348
5366
|
role: "group",
|
|
5349
5367
|
className: "flex flex-col gap-1 px-1 pb-1",
|
|
5350
|
-
children:
|
|
5368
|
+
children: xe(s, !0)
|
|
5351
5369
|
})] }),
|
|
5352
5370
|
(ae || R.length > 0) && /* @__PURE__ */ Z("p", {
|
|
5353
|
-
className:
|
|
5371
|
+
className: B(g, "sticky top-0 z-10 px-3 pt-2 pb-2 will-change-transform", Va.sectionHeading, Va.stickyHeading),
|
|
5354
5372
|
children: S
|
|
5355
5373
|
}),
|
|
5356
5374
|
R.length > 0 ? /* @__PURE__ */ Z("ul", {
|
|
5357
5375
|
role: "group",
|
|
5358
5376
|
className: "flex flex-col gap-1 px-1 pb-1",
|
|
5359
|
-
children: R.map((e) =>
|
|
5360
|
-
}) :
|
|
5361
|
-
] }),
|
|
5377
|
+
children: R.map((e) => xe(e))
|
|
5378
|
+
}) : Se()
|
|
5379
|
+
] }), we = () => {
|
|
5362
5380
|
let [e, ...t] = R, n = e != null && e.id === i?.id, r = n ? t : R, a = [
|
|
5363
5381
|
...n ? [e] : [],
|
|
5364
5382
|
...ae && s ? [s] : [],
|
|
@@ -5367,14 +5385,14 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5367
5385
|
return /* @__PURE__ */ Q(X, { children: [a.length > 0 && /* @__PURE__ */ Z("ul", {
|
|
5368
5386
|
role: "group",
|
|
5369
5387
|
className: "flex flex-col gap-1 px-1 py-1",
|
|
5370
|
-
children: a.map((e) =>
|
|
5371
|
-
}), r.length === 0 && !n &&
|
|
5388
|
+
children: a.map((e) => xe(e))
|
|
5389
|
+
}), r.length === 0 && !n && Se()] });
|
|
5372
5390
|
};
|
|
5373
5391
|
return /* @__PURE__ */ Q("div", {
|
|
5374
|
-
className:
|
|
5392
|
+
className: B("flex min-w-[360px] flex-col", y),
|
|
5375
5393
|
style: {
|
|
5376
5394
|
maxHeight: "calc(var(--fui-available-height, 9999px) - 8px)",
|
|
5377
|
-
...
|
|
5395
|
+
...z({
|
|
5378
5396
|
"--ds-surface": h?.surface,
|
|
5379
5397
|
"--ds-section-heading": h?.sectionHeading,
|
|
5380
5398
|
"--ds-empty-hint": h?.emptyHint,
|
|
@@ -5385,9 +5403,9 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5385
5403
|
children: [
|
|
5386
5404
|
/* @__PURE__ */ Z("div", {
|
|
5387
5405
|
role: "search",
|
|
5388
|
-
className:
|
|
5406
|
+
className: B("sticky top-0 z-10 pt-2 pb-3", Va.searchHeader),
|
|
5389
5407
|
children: /* @__PURE__ */ Z(at, {
|
|
5390
|
-
inputRef:
|
|
5408
|
+
inputRef: V,
|
|
5391
5409
|
value: N,
|
|
5392
5410
|
onChange: P,
|
|
5393
5411
|
placeholder: b,
|
|
@@ -5396,39 +5414,39 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5396
5414
|
})
|
|
5397
5415
|
}),
|
|
5398
5416
|
/* @__PURE__ */ Z("div", {
|
|
5399
|
-
ref:
|
|
5400
|
-
className:
|
|
5401
|
-
style: { maxHeight:
|
|
5417
|
+
ref: me,
|
|
5418
|
+
className: B(ce, "min-h-0 flex-1 overflow-y-auto", Va.listContent),
|
|
5419
|
+
style: { maxHeight: ue },
|
|
5402
5420
|
children: /* @__PURE__ */ Q("div", {
|
|
5403
5421
|
role: "menu",
|
|
5404
5422
|
"aria-label": O,
|
|
5405
|
-
ref:
|
|
5423
|
+
ref: se,
|
|
5406
5424
|
children: [oe.length > 0 && /* @__PURE__ */ Z("ul", {
|
|
5407
5425
|
role: "group",
|
|
5408
5426
|
className: "flex flex-col gap-1 px-1 pt-1 pb-1",
|
|
5409
|
-
children: oe.map(
|
|
5410
|
-
}), A ?
|
|
5427
|
+
children: oe.map(be)
|
|
5428
|
+
}), A ? Ce() : we()]
|
|
5411
5429
|
})
|
|
5412
5430
|
}),
|
|
5413
5431
|
/* @__PURE__ */ Z("div", {
|
|
5414
|
-
className:
|
|
5432
|
+
className: B("px-2 py-3", Va.footer),
|
|
5415
5433
|
children: /* @__PURE__ */ Z(Re, {
|
|
5416
5434
|
label: w,
|
|
5417
5435
|
className: "w-full justify-center",
|
|
5418
|
-
onClick:
|
|
5436
|
+
onClick: _e
|
|
5419
5437
|
})
|
|
5420
5438
|
})
|
|
5421
5439
|
]
|
|
5422
5440
|
});
|
|
5423
5441
|
}, qa = ({ service: e, texts: t, onLogin: n, onLogout: r, typography: a }) => {
|
|
5424
|
-
let { rowLabelClassName: o = "dial-small-semi-text", rowDescriptionClassName: c = "dial-small-text", errorClassName: l = "dial-caption-text", keyCardTitleClassName: u = "dial-tiny-semi-text", keyCardDescriptionClassName: d = "dial-tiny-text" } = a ?? {}, [f, p] =
|
|
5442
|
+
let { rowLabelClassName: o = "dial-small-semi-text", rowDescriptionClassName: c = "dial-small-text", errorClassName: l = "dial-caption-text", keyCardTitleClassName: u = "dial-tiny-semi-text", keyCardDescriptionClassName: d = "dial-tiny-text" } = a ?? {}, [f, p] = G(!1), [m, h] = G(!1), [g, _] = G(!1), [v, y] = G(), x = e.authenticationType === s.ApiKey, S = x ? t?.deleteActionLabel ?? "Delete" : t?.logoutActionLabel ?? "Log out", C = x ? t?.deleteApiKeyConfirmMessage?.(i.User) ?? "Are you sure you want to delete your personal API key?" : t?.logoutConfirmMessage ?? "Are you sure you want to log out?";
|
|
5425
5443
|
return /* @__PURE__ */ Q(yr, {
|
|
5426
5444
|
label: e.name,
|
|
5427
5445
|
description: e.description,
|
|
5428
5446
|
icon: /* @__PURE__ */ Z(Ut, {
|
|
5429
|
-
size:
|
|
5447
|
+
size: q.SM,
|
|
5430
5448
|
"aria-hidden": !0,
|
|
5431
|
-
stroke:
|
|
5449
|
+
stroke: J
|
|
5432
5450
|
}),
|
|
5433
5451
|
status: e.status,
|
|
5434
5452
|
isActive: e.status === b.SignedIn,
|
|
@@ -5448,7 +5466,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5448
5466
|
keyCardTitleClassName: u,
|
|
5449
5467
|
keyCardDescriptionClassName: d,
|
|
5450
5468
|
deleteActionClassName: vr.deleteAction,
|
|
5451
|
-
renderLoginOptions: e.canConsentToOfflineUsage ? (e) => /* @__PURE__ */ Z(
|
|
5469
|
+
renderLoginOptions: e.canConsentToOfflineUsage ? (e) => /* @__PURE__ */ Z(De, {
|
|
5452
5470
|
isSelected: f,
|
|
5453
5471
|
onChange: p,
|
|
5454
5472
|
disabled: e,
|
|
@@ -5457,14 +5475,14 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5457
5475
|
}) : void 0,
|
|
5458
5476
|
children: [
|
|
5459
5477
|
e.hint && /* @__PURE__ */ Z("p", {
|
|
5460
|
-
className:
|
|
5478
|
+
className: B(c, "wrap-break-word", vr.description),
|
|
5461
5479
|
children: e.hint
|
|
5462
5480
|
}),
|
|
5463
5481
|
e.hasSharedCredentials && /* @__PURE__ */ Z(dr, {
|
|
5464
5482
|
icon: /* @__PURE__ */ Z(bt, {
|
|
5465
|
-
size:
|
|
5483
|
+
size: q.SM,
|
|
5466
5484
|
"aria-hidden": !0,
|
|
5467
|
-
stroke:
|
|
5485
|
+
stroke: J
|
|
5468
5486
|
}),
|
|
5469
5487
|
title: t?.sharedCredentials ?? "Shared credentials are available for this service."
|
|
5470
5488
|
}),
|
|
@@ -5486,7 +5504,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5486
5504
|
onClick: () => {
|
|
5487
5505
|
h(!1), y(void 0);
|
|
5488
5506
|
}
|
|
5489
|
-
}), /* @__PURE__ */ Z(
|
|
5507
|
+
}), /* @__PURE__ */ Z(ke, {
|
|
5490
5508
|
className: "min-h-11",
|
|
5491
5509
|
label: S,
|
|
5492
5510
|
disabled: g,
|
|
@@ -5514,7 +5532,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5514
5532
|
let h = null;
|
|
5515
5533
|
return d ? h = /* @__PURE__ */ Z(ut, {
|
|
5516
5534
|
className: "justify-start px-6 py-3",
|
|
5517
|
-
size:
|
|
5535
|
+
size: q.MD,
|
|
5518
5536
|
ariaLabel: s?.loading ?? "Loading…"
|
|
5519
5537
|
}) : f ? h = /* @__PURE__ */ Q("div", {
|
|
5520
5538
|
className: "flex flex-col gap-2 px-6 py-3",
|
|
@@ -5526,7 +5544,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5526
5544
|
label: s?.retry ?? "Retry",
|
|
5527
5545
|
onClick: i
|
|
5528
5546
|
})]
|
|
5529
|
-
}) : p ? h = /* @__PURE__ */ Z(
|
|
5547
|
+
}) : p ? h = /* @__PURE__ */ Z(Te, {
|
|
5530
5548
|
"aria-hidden": !0,
|
|
5531
5549
|
className: "block px-6 py-3",
|
|
5532
5550
|
text: u
|
|
@@ -5562,12 +5580,12 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5562
5580
|
role: "group",
|
|
5563
5581
|
"aria-label": e.displayName,
|
|
5564
5582
|
"aria-busy": l,
|
|
5565
|
-
className:
|
|
5583
|
+
className: B("flex flex-col gap-2 border-b py-3 last:border-b-0", Ya.row),
|
|
5566
5584
|
children: [
|
|
5567
5585
|
/* @__PURE__ */ Z("div", {
|
|
5568
5586
|
className: "flex min-w-0 items-center justify-between gap-2",
|
|
5569
5587
|
children: /* @__PURE__ */ Q("span", {
|
|
5570
|
-
className:
|
|
5588
|
+
className: B("min-w-0 flex-1 truncate", n, Ya.name),
|
|
5571
5589
|
children: [e.displayName, e.displayVersion ? ` (${e.displayVersion})` : ""]
|
|
5572
5590
|
})
|
|
5573
5591
|
}),
|
|
@@ -5582,10 +5600,10 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5582
5600
|
}),
|
|
5583
5601
|
/* @__PURE__ */ Z(Ke, {
|
|
5584
5602
|
politeness: Je.Assertive,
|
|
5585
|
-
className:
|
|
5603
|
+
className: B("flex flex-wrap items-center gap-2 wrap-break-word", r, Ya.error),
|
|
5586
5604
|
children: e.errorMessage && /* @__PURE__ */ Q(X, { children: [
|
|
5587
5605
|
/* @__PURE__ */ Z(gt, {
|
|
5588
|
-
size:
|
|
5606
|
+
size: q.SM,
|
|
5589
5607
|
"aria-hidden": !0
|
|
5590
5608
|
}),
|
|
5591
5609
|
/* @__PURE__ */ Z("span", { children: e.errorMessage }),
|
|
@@ -5597,13 +5615,13 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5597
5615
|
] })
|
|
5598
5616
|
}),
|
|
5599
5617
|
e.showDialNativeHint && /* @__PURE__ */ Z("p", {
|
|
5600
|
-
className:
|
|
5618
|
+
className: B("wrap-break-word", i, Ya.hint),
|
|
5601
5619
|
children: t.dialNativeHint
|
|
5602
5620
|
}),
|
|
5603
5621
|
e.requiresNoCredentials ? /* @__PURE__ */ Z("div", {
|
|
5604
5622
|
className: "flex justify-end",
|
|
5605
5623
|
children: /* @__PURE__ */ Z("span", {
|
|
5606
|
-
className:
|
|
5624
|
+
className: B(i, Ya.hint),
|
|
5607
5625
|
children: t.noCredentialsRequired
|
|
5608
5626
|
})
|
|
5609
5627
|
}) : /* @__PURE__ */ Q("div", {
|
|
@@ -5653,7 +5671,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5653
5671
|
footer: g,
|
|
5654
5672
|
children: /* @__PURE__ */ Q("div", {
|
|
5655
5673
|
className: "flex flex-col gap-2 px-6 py-4",
|
|
5656
|
-
style:
|
|
5674
|
+
style: z({
|
|
5657
5675
|
"--cat-signin-description-text": u?.descriptionText,
|
|
5658
5676
|
"--cat-signin-row-border": u?.rowBorder,
|
|
5659
5677
|
"--cat-signin-name-text": u?.nameText,
|
|
@@ -5662,7 +5680,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5662
5680
|
}),
|
|
5663
5681
|
children: [
|
|
5664
5682
|
/* @__PURE__ */ Z("p", {
|
|
5665
|
-
className:
|
|
5683
|
+
className: B(d, Ya.description),
|
|
5666
5684
|
children: l?.description ?? "One or more tools or services need you to sign in before the conversation can continue."
|
|
5667
5685
|
}),
|
|
5668
5686
|
/* @__PURE__ */ Z(Ke, {
|
|
@@ -5683,7 +5701,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
5683
5701
|
onDecline: s
|
|
5684
5702
|
}, e.id))
|
|
5685
5703
|
}),
|
|
5686
|
-
n && /* @__PURE__ */ Z(
|
|
5704
|
+
n && /* @__PURE__ */ Z(De, {
|
|
5687
5705
|
className: "mt-2",
|
|
5688
5706
|
isSelected: r,
|
|
5689
5707
|
onChange: i,
|