@epam/ai-dial-catalog 1.2.0-dev.69 → 1.2.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/CardGrid/CardRowRenderer.d.ts.map +1 -1
- package/components/Catalog/Catalog.d.ts.map +1 -1
- package/components/ListView/ListView.d.ts.map +1 -1
- package/components/ListView/columns.d.ts +2 -1
- package/components/ListView/columns.d.ts.map +1 -1
- package/index.css +2 -2
- package/index.js +1270 -1233
- package/package.json +3 -3
- package/utils/scroll-window.d.ts.map +1 -1
- package/utils/use-scroll-virtualizer.d.ts.map +1 -1
package/index.js
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
1
|
import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, x as y, y as b } from "./mapping-BHlCxGmC.js";
|
|
2
2
|
import { CatalogEntityType as x, DESKTOP_BREAKPOINT_PX as S, DeploymentIcon as C, EntityHeader as w, EntityTypeLabel as T, FeaturedChip as ee, ItemHeader as E, MarkdownCodeBlock as D, MarkdownRenderer as O, MarkdownWithPlaceholders as te, PanelEmptyState as ne, ResourceSummary as re, SELECT_LIST_MAX_HEIGHT_CLASS_NAME as ie, buildCssVars as ae, mergeClasses as k } from "@epam/ai-dial-chat-shared";
|
|
3
|
-
import { Fragment as oe, memo as se, useCallback as A, useEffect as j, useLayoutEffect as
|
|
4
|
-
import { ButtonAppearance as
|
|
5
|
-
import { IconAlertTriangleFilled as
|
|
6
|
-
import { Fragment as
|
|
7
|
-
import { PublishFooter as
|
|
8
|
-
import { Grid as
|
|
3
|
+
import { Fragment as oe, memo as se, startTransition as ce, useCallback as A, useEffect as j, useLayoutEffect as le, useMemo as M, useRef as N, useState as P } from "react";
|
|
4
|
+
import { ButtonAppearance as ue, ButtonDropdown as de, ButtonVariant as F, CardShell as fe, CloseButton as pe, DIAL_ICON_SIZE as I, DIAL_KIT_ICON_STROKE as L, DangerButton as me, Dropdown as he, ElementSize as ge, EllipsisTooltip as _e, FolderPath as ve, GhostButton as ye, GhostIconButton as be, Highlight as xe, InlineSelect as Se, InlineSelectTrigger as Ce, Input as we, LinkButton as R, MenuItem as Te, MenuItemMark as Ee, NeutralButton as De, NeutralIconButton as Oe, PrimaryButton as ke, ProgressBar as Ae, RadioGroup as je, Search as Me, SegmentedControl as Ne, Skeleton as Pe, SkeletonAvatarShape as z, Spinner as Fe, Tabs as Ie, ToggleIconButton as Le, Tooltip as Re, mergeClasses as B } from "@epam/ai-dial-ui-kit";
|
|
5
|
+
import { IconAlertTriangleFilled as ze, IconArrowRight as Be, IconBuildingCommunity as Ve, IconCheck as He, IconChevronDown as Ue, IconChevronLeft as We, IconChevronRight as Ge, IconCircleCheckFilled as Ke, IconDots as qe, IconDownload as Je, IconFilter as Ye, IconFolder as Xe, IconKey as Ze, IconLayoutGrid as Qe, IconLayoutList as $e, IconLogin as et, IconLogout as tt, IconPencil as nt, IconPlayerPlayFilled as rt, IconPlus as V, IconShare as it, IconStar as at, IconStarFilled as ot, IconTrash as st, IconTrashX as ct, IconUser as H, IconUserOff as lt, IconWorldOff as ut, IconWorldShare as dt } from "@tabler/icons-react";
|
|
6
|
+
import { Fragment as U, jsx as W, jsxs as G } from "react/jsx-runtime";
|
|
7
|
+
import { PublishFooter as ft, PublishPanel as pt, derivePublishState as mt, usePublishFlow as ht } from "@epam/ai-dial-publish-panel";
|
|
8
|
+
import { Grid as gt } from "@epam/ai-dial-ui-kit/grid";
|
|
9
9
|
//#region src/types/code-language.ts
|
|
10
|
-
var
|
|
10
|
+
var _t = /* @__PURE__ */ function(e) {
|
|
11
11
|
return e.Python = "python", e.Curl = "curl", e.JavaScript = "javascript", e;
|
|
12
|
-
}({}),
|
|
12
|
+
}({}), K = /* @__PURE__ */ function(e) {
|
|
13
13
|
return e.About = "about", e.Content = "content", e.Overview = "overview", e.Pricing = "pricing", e.Limits = "limits", e.Api = "api", e.Tools = "tools", e;
|
|
14
|
-
}({}),
|
|
14
|
+
}({}), vt = /* @__PURE__ */ function(e) {
|
|
15
15
|
return e.RunningLow = "runningLow", e.LimitReached = "limitReached", e;
|
|
16
|
-
}({}),
|
|
16
|
+
}({}), q = /* @__PURE__ */ function(e) {
|
|
17
17
|
return e.Delete = "delete", e.Logout = "logout", e.Unshare = "unshare", e.RevokeAccess = "revokeAccess", e.DeleteApiKey = "deleteApiKey", e.Unpublish = "unpublish", e;
|
|
18
|
-
}({}),
|
|
18
|
+
}({}), J = /* @__PURE__ */ function(e) {
|
|
19
19
|
return e.Danger = "danger", e.Info = "info", e;
|
|
20
|
-
}({}),
|
|
20
|
+
}({}), yt = /* @__PURE__ */ function(e) {
|
|
21
21
|
return e.SM = "sm", e.LG = "lg", e;
|
|
22
|
-
}({}),
|
|
22
|
+
}({}), Y = /* @__PURE__ */ function(e) {
|
|
23
23
|
return e.Grid = "grid", e.Cards = "cards", e;
|
|
24
|
-
}({}),
|
|
24
|
+
}({}), bt = /* @__PURE__ */ function(e) {
|
|
25
25
|
return e.File = "file", e.Folder = "folder", e;
|
|
26
|
-
}({}),
|
|
26
|
+
}({}), xt = /* @__PURE__ */ function(e) {
|
|
27
27
|
return e.Markdown = "markdown", e.Text = "text", e.Image = "image", e.Unsupported = "unsupported", e;
|
|
28
|
-
}({}),
|
|
29
|
-
let [e, t] =
|
|
28
|
+
}({}), St = () => {
|
|
29
|
+
let [e, t] = P(() => window.innerWidth);
|
|
30
30
|
return j(() => {
|
|
31
31
|
let e = () => t(window.innerWidth);
|
|
32
32
|
return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
33
33
|
}, []), e >= 1024 ? 4 : e >= 640 ? 2 : 1;
|
|
34
|
-
},
|
|
34
|
+
}, Ct = {
|
|
35
35
|
root: "dial-catalog-root",
|
|
36
36
|
toolbar: "dial-catalog-toolbar",
|
|
37
37
|
card: "dial-catalog-card",
|
|
38
38
|
favoriteCard: "dial-catalog-favorite-card",
|
|
39
39
|
listView: "dial-catalog-list-view"
|
|
40
|
-
},
|
|
40
|
+
}, wt = (e) => {
|
|
41
41
|
let { colors: t } = e ?? {};
|
|
42
42
|
return ae({
|
|
43
43
|
"--cat-bg": t?.background,
|
|
44
44
|
"--cat-heading-title-text": t?.headingTitleText
|
|
45
45
|
});
|
|
46
|
-
},
|
|
46
|
+
}, X = 1180, Tt = (e) => e >= 1280 ? 4 : e >= 966 ? 3 : e >= 620 ? 2 : 1, Et = (e) => {
|
|
47
47
|
if (!e || e === document.body) return document.documentElement;
|
|
48
48
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
49
|
-
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e :
|
|
50
|
-
},
|
|
51
|
-
let r =
|
|
49
|
+
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : Et(e.parentElement);
|
|
50
|
+
}, Dt = 10, Ot = 10, kt = 30, At = (e, t, n = Dt) => {
|
|
51
|
+
let r = N(null), [i, a] = P({
|
|
52
52
|
start: 0,
|
|
53
|
-
end:
|
|
53
|
+
end: kt
|
|
54
54
|
});
|
|
55
55
|
j(() => {
|
|
56
56
|
let i = r.current;
|
|
57
57
|
if (!i) return;
|
|
58
|
-
let o =
|
|
58
|
+
let o = Et(i.parentElement), s = () => {
|
|
59
59
|
let r = o.clientHeight;
|
|
60
|
-
if (r === 0) return;
|
|
61
|
-
let s = i.getBoundingClientRect().top, c = o.getBoundingClientRect().top, l = Math.max(0, c - s), u = Math.floor(l / t), d = Math.ceil(r / t), f = Math.max(0, Math.floor((u - n) /
|
|
60
|
+
if (r === 0 || i.clientWidth === 0 || getComputedStyle(i).visibility === "hidden") return;
|
|
61
|
+
let s = i.getBoundingClientRect().top, c = o.getBoundingClientRect().top, l = Math.max(0, c - s), u = Math.floor(l / t), d = Math.ceil(r / t), f = Math.max(0, Math.floor((u - n) / Ot) * Ot), p = Math.min(e, Math.ceil((u + d + n) / Ot) * Ot);
|
|
62
62
|
a((e) => e.start === f && e.end === p ? e : {
|
|
63
63
|
start: f,
|
|
64
64
|
end: p
|
|
@@ -74,15 +74,15 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
74
74
|
t,
|
|
75
75
|
n
|
|
76
76
|
]);
|
|
77
|
-
let o = Math.max(0, Math.floor((e - 1) /
|
|
77
|
+
let o = Math.max(0, Math.floor((e - 1) / Ot) * Ot), s = Math.min(i.start, o);
|
|
78
78
|
return {
|
|
79
79
|
containerRef: r,
|
|
80
80
|
startRow: s,
|
|
81
|
-
endRow: Math.min(e, Math.max(i.end, s +
|
|
81
|
+
endRow: Math.min(e, Math.max(i.end, s + Ot))
|
|
82
82
|
};
|
|
83
|
-
},
|
|
84
|
-
let r =
|
|
85
|
-
let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= S ? 60 : 0)), i =
|
|
83
|
+
}, jt = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
|
|
84
|
+
let r = N(null), [i, a] = P(() => {
|
|
85
|
+
let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= S ? 60 : 0)), i = Tt((n ? r : Math.min(X, r)) - 64), a = Math.ceil(e / i);
|
|
86
86
|
return {
|
|
87
87
|
startRow: 0,
|
|
88
88
|
endRow: Math.min(a, 12),
|
|
@@ -92,17 +92,19 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
92
92
|
j(() => {
|
|
93
93
|
let n = r.current;
|
|
94
94
|
if (!n) return;
|
|
95
|
-
let i =
|
|
96
|
-
let r = n.
|
|
97
|
-
|
|
95
|
+
let i = Et(n.parentElement), o = () => {
|
|
96
|
+
let r = n.clientWidth, o = i.clientHeight;
|
|
97
|
+
if (r === 0 || o === 0) return;
|
|
98
|
+
let s = n.getBoundingClientRect(), c = i.getBoundingClientRect(), l = Tt(r), u = Math.ceil(e / l), d = Math.max(0, c.top - s.top), f = Math.max(0, Math.floor(d / 268) - t), p = Math.min(u, f + Math.ceil(o / 268) + 2 * t);
|
|
99
|
+
a((e) => e.startRow === f && e.endRow === p && e.columnCount === l ? e : {
|
|
98
100
|
startRow: f,
|
|
99
|
-
endRow:
|
|
101
|
+
endRow: p,
|
|
100
102
|
columnCount: l
|
|
101
103
|
});
|
|
102
104
|
};
|
|
103
105
|
i.addEventListener("scroll", o, { passive: !0 });
|
|
104
106
|
let s = new ResizeObserver(o);
|
|
105
|
-
return s.observe(n), o(), () => {
|
|
107
|
+
return s.observe(n), s.observe(i), o(), () => {
|
|
106
108
|
i.removeEventListener("scroll", o), s.disconnect();
|
|
107
109
|
};
|
|
108
110
|
}, [e, t]);
|
|
@@ -115,7 +117,7 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
115
117
|
rowCount: o,
|
|
116
118
|
totalHeight: o * 268
|
|
117
119
|
};
|
|
118
|
-
},
|
|
120
|
+
}, Z = {
|
|
119
121
|
skeletonColor: "var(--cg-skeleton-color, var(--bg-control-disable-primary, #dce0e8))",
|
|
120
122
|
card: "_card_18c2b_2",
|
|
121
123
|
emptyStarHidden: "_emptyStarHidden_18c2b_2",
|
|
@@ -125,63 +127,63 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
125
127
|
selectedCard: "_selectedCard_18c2b_37",
|
|
126
128
|
checkIcon: "_checkIcon_18c2b_42",
|
|
127
129
|
footer: "_footer_18c2b_46"
|
|
128
|
-
},
|
|
130
|
+
}, Mt = {
|
|
129
131
|
name: "_name_188yo_1",
|
|
130
132
|
lastUsed: "_lastUsed_188yo_5",
|
|
131
133
|
version: "_version_188yo_9"
|
|
132
|
-
},
|
|
133
|
-
let f = c?.colors, p = c?.typography ?? {}, m = a ===
|
|
134
|
+
}, Nt = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, styles: c, lastUsedTrailing: l, iconClassName: u, iconOverlay: d }) => {
|
|
135
|
+
let f = c?.colors, p = c?.typography ?? {}, m = a === yt.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = ae({
|
|
134
136
|
"--ai-name-text": f?.nameColor,
|
|
135
137
|
"--ai-last-used-text": f?.lastUsedColor,
|
|
136
138
|
"--ai-version-text": f?.versionColor
|
|
137
139
|
});
|
|
138
|
-
return /* @__PURE__ */
|
|
140
|
+
return /* @__PURE__ */ G("div", {
|
|
139
141
|
className: k("flex min-w-0 items-start gap-3", s),
|
|
140
142
|
style: _,
|
|
141
|
-
children: [/* @__PURE__ */
|
|
143
|
+
children: [/* @__PURE__ */ G("div", {
|
|
142
144
|
className: k("relative flex-shrink-0", h, u),
|
|
143
|
-
children: [/* @__PURE__ */
|
|
145
|
+
children: [/* @__PURE__ */ W("div", {
|
|
144
146
|
className: "size-full overflow-hidden rounded-[inherit]",
|
|
145
|
-
children: /* @__PURE__ */
|
|
147
|
+
children: /* @__PURE__ */ W(C, {
|
|
146
148
|
src: e ?? void 0,
|
|
147
149
|
size: g,
|
|
148
150
|
initialsName: n,
|
|
149
151
|
styles: { badgeClassName: k(m ? "rounded-[14px]" : "rounded-[12px]") }
|
|
150
152
|
})
|
|
151
153
|
}), d]
|
|
152
|
-
}), /* @__PURE__ */
|
|
154
|
+
}), /* @__PURE__ */ G("div", {
|
|
153
155
|
className: "flex min-w-0 flex-1 flex-col gap-1",
|
|
154
|
-
children: [/* @__PURE__ */
|
|
156
|
+
children: [/* @__PURE__ */ W(T, {
|
|
155
157
|
type: t,
|
|
156
158
|
className: p?.typeClassName
|
|
157
|
-
}), /* @__PURE__ */
|
|
159
|
+
}), /* @__PURE__ */ G("div", {
|
|
158
160
|
className: "flex min-w-0 flex-col",
|
|
159
|
-
children: [/* @__PURE__ */
|
|
161
|
+
children: [/* @__PURE__ */ G("div", {
|
|
160
162
|
className: "flex min-w-0 items-start gap-1 overflow-hidden",
|
|
161
|
-
children: [/* @__PURE__ */
|
|
162
|
-
text: o ? /* @__PURE__ */
|
|
163
|
+
children: [/* @__PURE__ */ W(_e, {
|
|
164
|
+
text: o ? /* @__PURE__ */ W(xe, {
|
|
163
165
|
text: n,
|
|
164
166
|
query: o
|
|
165
167
|
}) : n,
|
|
166
|
-
className: k("min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text",
|
|
167
|
-
}), r && /* @__PURE__ */
|
|
168
|
+
className: k("min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text", Mt.name)
|
|
169
|
+
}), r && /* @__PURE__ */ W(_e, {
|
|
168
170
|
text: r,
|
|
169
|
-
className: k("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text",
|
|
171
|
+
className: k("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text", Mt.version)
|
|
170
172
|
})]
|
|
171
|
-
}), m && i != null && /* @__PURE__ */
|
|
173
|
+
}), m && i != null && /* @__PURE__ */ G("div", {
|
|
172
174
|
className: "flex items-center gap-2",
|
|
173
|
-
children: [/* @__PURE__ */
|
|
174
|
-
className: k("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text",
|
|
175
|
+
children: [/* @__PURE__ */ W("span", {
|
|
176
|
+
className: k("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", Mt.lastUsed),
|
|
175
177
|
children: i
|
|
176
178
|
}), l]
|
|
177
179
|
})]
|
|
178
180
|
})]
|
|
179
181
|
})]
|
|
180
182
|
});
|
|
181
|
-
},
|
|
183
|
+
}, Pt = { icon: "_icon_a0p4u_1" }, Q = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || d(e) == null ? null : /* @__PURE__ */ W(Re, {
|
|
182
184
|
tooltip: t,
|
|
183
185
|
asChild: !0,
|
|
184
|
-
children: /* @__PURE__ */
|
|
186
|
+
children: /* @__PURE__ */ W("span", {
|
|
185
187
|
role: "img",
|
|
186
188
|
"aria-label": t,
|
|
187
189
|
style: ae({
|
|
@@ -189,42 +191,42 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
189
191
|
"--cat-cred-badge-icon": r?.icon
|
|
190
192
|
}),
|
|
191
193
|
className: k("absolute -bottom-1 -end-1 shrink-0", n),
|
|
192
|
-
children: /* @__PURE__ */
|
|
194
|
+
children: /* @__PURE__ */ W(ze, {
|
|
193
195
|
size: I.SM,
|
|
194
|
-
className:
|
|
196
|
+
className: Pt.icon,
|
|
195
197
|
"aria-hidden": !0
|
|
196
198
|
})
|
|
197
199
|
})
|
|
198
|
-
}),
|
|
200
|
+
}), Ft = {
|
|
199
201
|
starFilledIcon: "_starFilledIcon_po6zj_1",
|
|
200
202
|
starPop: "_starPop_po6zj_1"
|
|
201
|
-
},
|
|
203
|
+
}, It = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ W(Le, {
|
|
202
204
|
size: n,
|
|
203
205
|
style: ae({ "--cat-star-filled": a }),
|
|
204
206
|
className: i,
|
|
205
|
-
icon: e ? /* @__PURE__ */
|
|
207
|
+
icon: e ? /* @__PURE__ */ W(ot, {
|
|
206
208
|
size: I.SM,
|
|
207
|
-
className:
|
|
208
|
-
}) : /* @__PURE__ */
|
|
209
|
+
className: Ft.starFilledIcon
|
|
210
|
+
}) : /* @__PURE__ */ W(at, {
|
|
209
211
|
size: I.SM,
|
|
210
212
|
stroke: L
|
|
211
213
|
}),
|
|
212
214
|
"aria-label": r,
|
|
213
215
|
onClick: t
|
|
214
|
-
}),
|
|
216
|
+
}), Lt = { tag: "_tag_12518_1" }, Rt = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ W("div", {
|
|
215
217
|
style: ae({
|
|
216
218
|
"--cat-card-tag-bg": r?.background,
|
|
217
219
|
"--cat-card-tag-text": r?.text,
|
|
218
220
|
"--cat-card-tag-border": r?.border
|
|
219
221
|
}),
|
|
220
|
-
className: k("flex h-6 w-fit items-center justify-center whitespace-nowrap rounded-md border px-2",
|
|
222
|
+
className: k("flex h-6 w-fit items-center justify-center whitespace-nowrap rounded-md border px-2", Lt.tag, n, t),
|
|
221
223
|
children: e
|
|
222
|
-
}),
|
|
224
|
+
}), $ = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ W(Rt, {
|
|
223
225
|
label: e,
|
|
224
226
|
badgeClassName: t,
|
|
225
227
|
colors: n
|
|
226
|
-
}),
|
|
227
|
-
let r =
|
|
228
|
+
}), zt = 8, Bt = ({ topics: e, overflowAriaLabel: t, className: n }) => {
|
|
229
|
+
let r = N(null), i = N([]), a = N([]), o = N(null), s = N(Infinity), [c, l] = P(e.length), u = e.join("\0"), d = A(() => {
|
|
228
230
|
let t = r.current;
|
|
229
231
|
if (!t || e.length === 0) return;
|
|
230
232
|
let n = t.clientWidth;
|
|
@@ -235,16 +237,16 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
235
237
|
let u = o.current?.offsetWidth ?? 0, d = 0, f = 0;
|
|
236
238
|
for (let t = 0; t < e.length; t++) {
|
|
237
239
|
let r = e.length - (t + 1) > 0;
|
|
238
|
-
if (d + (t > 0 ?
|
|
239
|
-
d += (t > 0 ?
|
|
240
|
+
if (d + (t > 0 ? zt : 0) + c[t] + (r ? zt + u : 0) > n) break;
|
|
241
|
+
d += (t > 0 ? zt : 0) + c[t], f = t + 1;
|
|
240
242
|
}
|
|
241
243
|
l(Math.min(f, s.current));
|
|
242
244
|
}, [e.length]);
|
|
243
|
-
if (
|
|
245
|
+
if (le(() => {
|
|
244
246
|
a.current = [], s.current = Infinity, l(e.length);
|
|
245
|
-
}, [u]),
|
|
247
|
+
}, [u]), le(() => {
|
|
246
248
|
d();
|
|
247
|
-
}),
|
|
249
|
+
}), le(() => {
|
|
248
250
|
let e = r.current;
|
|
249
251
|
!e || c === 0 || e.scrollWidth <= e.clientWidth || (s.current = c - 1, l(s.current));
|
|
250
252
|
}, [c]), j(() => {
|
|
@@ -254,38 +256,38 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
254
256
|
s.current = Infinity, d();
|
|
255
257
|
});
|
|
256
258
|
return t.observe(e), () => t.disconnect();
|
|
257
|
-
}, [d]), e.length === 0) return /* @__PURE__ */
|
|
259
|
+
}, [d]), e.length === 0) return /* @__PURE__ */ W("div", {
|
|
258
260
|
ref: r,
|
|
259
261
|
className: k("relative flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n)
|
|
260
262
|
});
|
|
261
263
|
let f = e.length - c;
|
|
262
|
-
return /* @__PURE__ */
|
|
264
|
+
return /* @__PURE__ */ G("div", {
|
|
263
265
|
ref: r,
|
|
264
266
|
className: k("flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n),
|
|
265
267
|
children: [
|
|
266
|
-
e.slice(0, c).map((e, t) => /* @__PURE__ */
|
|
268
|
+
e.slice(0, c).map((e, t) => /* @__PURE__ */ W("div", {
|
|
267
269
|
ref: (e) => {
|
|
268
270
|
i.current[t] = e;
|
|
269
271
|
},
|
|
270
|
-
children: /* @__PURE__ */
|
|
272
|
+
children: /* @__PURE__ */ W($, { label: e })
|
|
271
273
|
}, e)),
|
|
272
|
-
f > 0 && /* @__PURE__ */
|
|
274
|
+
f > 0 && /* @__PURE__ */ W(Re, {
|
|
273
275
|
tooltip: e.slice(c).join(", "),
|
|
274
|
-
children: /* @__PURE__ */
|
|
276
|
+
children: /* @__PURE__ */ W("span", {
|
|
275
277
|
"aria-label": t?.(f) ?? `and ${f} more topics`,
|
|
276
|
-
children: /* @__PURE__ */
|
|
278
|
+
children: /* @__PURE__ */ W($, { label: `+${f}` })
|
|
277
279
|
})
|
|
278
280
|
}),
|
|
279
|
-
/* @__PURE__ */
|
|
281
|
+
/* @__PURE__ */ W("div", {
|
|
280
282
|
ref: o,
|
|
281
283
|
"aria-hidden": !0,
|
|
282
284
|
className: "invisible absolute start-0 top-0",
|
|
283
|
-
children: /* @__PURE__ */
|
|
285
|
+
children: /* @__PURE__ */ W($, { label: `+${e.length}` })
|
|
284
286
|
})
|
|
285
287
|
]
|
|
286
288
|
});
|
|
287
|
-
},
|
|
288
|
-
let [m, h] =
|
|
289
|
+
}, Vt = { img: () => null }, Ht = (e) => e.target instanceof Element && e.target.closest("a") !== null, Ut = ({ item: e, query: t = "", onClick: n, initialIsStarred: r = !1, onToggle: i, isFavoriteVisible: a, featuredLabel: o = "Featured", addToFavoritesAriaLabel: s = "Add to favorites", removeFromFavoritesAriaLabel: c = "Remove from favorites", isSelected: l = !1, className: u, styles: d, credentialsBadgeLoggedOutLabel: f, isReadonly: p = !1 }) => {
|
|
290
|
+
let [m, h] = P(r);
|
|
289
291
|
j(() => {
|
|
290
292
|
h(r);
|
|
291
293
|
}, [e.id, r]);
|
|
@@ -296,9 +298,9 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
296
298
|
"--cg-check-icon": d?.colors?.checkIcon,
|
|
297
299
|
"--cg-footer-border": d?.colors?.footerBorder
|
|
298
300
|
}), x = !p && e.isFeatured === !0, S = !p && a?.(e) !== !1, C = !p || e.folder.length > 0, w = n ? (t) => {
|
|
299
|
-
|
|
301
|
+
Ht(t) || n(e);
|
|
300
302
|
} : void 0, T = A((t) => {
|
|
301
|
-
!n ||
|
|
303
|
+
!n || Ht(t) || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e));
|
|
302
304
|
}, [n, e]), E = A((t) => {
|
|
303
305
|
t.stopPropagation();
|
|
304
306
|
let n = !m;
|
|
@@ -308,7 +310,7 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
308
310
|
i,
|
|
309
311
|
e.id
|
|
310
312
|
]);
|
|
311
|
-
return /* @__PURE__ */
|
|
313
|
+
return /* @__PURE__ */ G(fe, {
|
|
312
314
|
...n ? {
|
|
313
315
|
role: "button",
|
|
314
316
|
tabIndex: 0,
|
|
@@ -317,39 +319,39 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
317
319
|
} : {},
|
|
318
320
|
"aria-label": e.name,
|
|
319
321
|
style: b,
|
|
320
|
-
className: k("box-border cursor-pointer gap-3",
|
|
322
|
+
className: k("box-border cursor-pointer gap-3", Z.card, x ? Z.featuredCard : void 0, l ? Z.selectedCard : void 0, u, Ct.card),
|
|
321
323
|
children: [
|
|
322
|
-
x && /* @__PURE__ */
|
|
324
|
+
x && /* @__PURE__ */ W("div", {
|
|
323
325
|
className: "absolute end-[22px] top-0 -translate-y-1/2",
|
|
324
|
-
children: /* @__PURE__ */
|
|
326
|
+
children: /* @__PURE__ */ W(ee, {
|
|
325
327
|
label: o,
|
|
326
328
|
type: e.type,
|
|
327
329
|
className: _,
|
|
328
330
|
style: d?.colors?.featuredChipStyle
|
|
329
331
|
})
|
|
330
332
|
}),
|
|
331
|
-
l && /* @__PURE__ */
|
|
333
|
+
l && /* @__PURE__ */ W(He, {
|
|
332
334
|
size: I.SM,
|
|
333
|
-
className: k("absolute end-3 top-3 shrink-0",
|
|
335
|
+
className: k("absolute end-3 top-3 shrink-0", Z.checkIcon),
|
|
334
336
|
"aria-hidden": !0,
|
|
335
337
|
stroke: L
|
|
336
338
|
}),
|
|
337
|
-
/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ W(Nt, {
|
|
338
340
|
icon: e.iconUrl,
|
|
339
341
|
type: e.type,
|
|
340
342
|
name: e.name,
|
|
341
343
|
version: e.version,
|
|
342
|
-
size:
|
|
344
|
+
size: yt.SM,
|
|
343
345
|
query: t,
|
|
344
|
-
iconClassName:
|
|
345
|
-
iconOverlay: /* @__PURE__ */
|
|
346
|
+
iconClassName: Z.cardIcon,
|
|
347
|
+
iconOverlay: /* @__PURE__ */ W(Q, {
|
|
346
348
|
credentials: e.credentials,
|
|
347
349
|
loggedOutLabel: f
|
|
348
350
|
})
|
|
349
351
|
}),
|
|
350
|
-
/* @__PURE__ */
|
|
351
|
-
className: k("line-clamp-2 min-h-[2lh] break-words",
|
|
352
|
-
children: e.description && /* @__PURE__ */
|
|
352
|
+
/* @__PURE__ */ W("div", {
|
|
353
|
+
className: k("line-clamp-2 min-h-[2lh] break-words", Z.description),
|
|
354
|
+
children: e.description && /* @__PURE__ */ W(O, {
|
|
353
355
|
content: e.description,
|
|
354
356
|
classNames: {
|
|
355
357
|
p: g,
|
|
@@ -362,38 +364,38 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
362
364
|
h5: g,
|
|
363
365
|
h6: g
|
|
364
366
|
},
|
|
365
|
-
components:
|
|
367
|
+
components: Vt
|
|
366
368
|
})
|
|
367
369
|
}),
|
|
368
|
-
/* @__PURE__ */
|
|
370
|
+
/* @__PURE__ */ W("div", {
|
|
369
371
|
className: "mt-auto flex items-center gap-2",
|
|
370
|
-
children: /* @__PURE__ */
|
|
372
|
+
children: /* @__PURE__ */ W(Bt, { topics: e.topics })
|
|
371
373
|
}),
|
|
372
|
-
C && /* @__PURE__ */
|
|
373
|
-
className: k("pt-3", !p && k("border-t",
|
|
374
|
-
children: /* @__PURE__ */
|
|
374
|
+
C && /* @__PURE__ */ W("div", {
|
|
375
|
+
className: k("pt-3", !p && k("border-t", Z.footer)),
|
|
376
|
+
children: /* @__PURE__ */ G("div", {
|
|
375
377
|
className: "flex items-center gap-2",
|
|
376
|
-
children: [/* @__PURE__ */
|
|
378
|
+
children: [/* @__PURE__ */ W("div", {
|
|
377
379
|
className: "min-w-0 flex-1",
|
|
378
|
-
children: e.folder.length > 0 && /* @__PURE__ */
|
|
380
|
+
children: e.folder.length > 0 && /* @__PURE__ */ W(ve, {
|
|
379
381
|
segments: e.folder,
|
|
380
382
|
labelClassName: v,
|
|
381
383
|
leafClassName: y
|
|
382
384
|
})
|
|
383
|
-
}), S && /* @__PURE__ */
|
|
385
|
+
}), S && /* @__PURE__ */ W(It, {
|
|
384
386
|
isStarred: m,
|
|
385
|
-
size:
|
|
387
|
+
size: ge.Small,
|
|
386
388
|
onClick: E,
|
|
387
389
|
ariaLabel: m ? c : s,
|
|
388
|
-
className: k(
|
|
390
|
+
className: k(Z.starBtn, !m && Z.emptyStarHidden)
|
|
389
391
|
})]
|
|
390
392
|
})
|
|
391
393
|
})
|
|
392
394
|
]
|
|
393
395
|
});
|
|
394
|
-
},
|
|
396
|
+
}, Wt = se(({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, isFavoriteVisible: a, onItemClick: o, featuredLabel: s, addToFavoritesAriaLabel: c, removeFromFavoritesAriaLabel: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f, featuredChipStyle: p }) => {
|
|
395
397
|
let m = e * n, h = t.slice(m, m + n);
|
|
396
|
-
return /* @__PURE__ */
|
|
398
|
+
return /* @__PURE__ */ W("div", {
|
|
397
399
|
style: {
|
|
398
400
|
top: e * 268,
|
|
399
401
|
height: 268
|
|
@@ -401,9 +403,9 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
401
403
|
className: "absolute flex w-full gap-5 pb-5",
|
|
402
404
|
children: Array.from({ length: n }, (e, t) => {
|
|
403
405
|
let n = h[t];
|
|
404
|
-
return /* @__PURE__ */
|
|
406
|
+
return /* @__PURE__ */ W("div", {
|
|
405
407
|
className: "h-full min-w-0 flex-1",
|
|
406
|
-
children: n && /* @__PURE__ */
|
|
408
|
+
children: n && /* @__PURE__ */ W(Ut, {
|
|
407
409
|
item: n,
|
|
408
410
|
query: r,
|
|
409
411
|
initialIsStarred: n.isStarred,
|
|
@@ -422,8 +424,8 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
422
424
|
}, n?.id ?? `spacer-${t}`);
|
|
423
425
|
})
|
|
424
426
|
});
|
|
425
|
-
},
|
|
426
|
-
let p = a?.noResultsTitle ?? "No results", m = a?.featuredLabel ?? "Featured", h = a?.addToFavoritesAriaLabel ?? "Add to favorites", g = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", _ = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", { containerRef: v, startRow: y, endRow: b, columnCount: x, totalHeight: S } =
|
|
427
|
+
}), Gt = se(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = Z.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1, featuredChipStyle: f }) => {
|
|
428
|
+
let p = a?.noResultsTitle ?? "No results", m = a?.featuredLabel ?? "Featured", h = a?.addToFavoritesAriaLabel ?? "Add to favorites", g = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", _ = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", { containerRef: v, startRow: y, endRow: b, columnCount: x, totalHeight: S } = jt(e.length, { isFullWidth: d }), C = M(() => ({
|
|
427
429
|
items: e,
|
|
428
430
|
columnCount: x,
|
|
429
431
|
query: t,
|
|
@@ -452,19 +454,19 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
452
454
|
u,
|
|
453
455
|
f
|
|
454
456
|
]);
|
|
455
|
-
return o ? /* @__PURE__ */
|
|
457
|
+
return o ? /* @__PURE__ */ W("div", {
|
|
456
458
|
className: "grid gap-5 p-5",
|
|
457
459
|
style: {
|
|
458
460
|
gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
|
|
459
461
|
...ae({ "--cg-skeleton-card-bg": l })
|
|
460
462
|
},
|
|
461
|
-
children: Array.from({ length: x * 3 }, (e, t) => /* @__PURE__ */
|
|
462
|
-
className: k("rounded-md border p-4",
|
|
463
|
+
children: Array.from({ length: x * 3 }, (e, t) => /* @__PURE__ */ W("div", {
|
|
464
|
+
className: k("rounded-md border p-4", Z.skeletonCard),
|
|
463
465
|
style: { height: 248 },
|
|
464
|
-
children: /* @__PURE__ */
|
|
466
|
+
children: /* @__PURE__ */ W(Pe, {
|
|
465
467
|
avatar: {
|
|
466
468
|
size: 48,
|
|
467
|
-
shape:
|
|
469
|
+
shape: z.Square
|
|
468
470
|
},
|
|
469
471
|
showTitle: { width: `${60 + t * 17 % 30}%` },
|
|
470
472
|
paragraph: { rows: 3 },
|
|
@@ -472,35 +474,35 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
472
474
|
color: c
|
|
473
475
|
})
|
|
474
476
|
}, t))
|
|
475
|
-
}) : e.length === 0 ? /* @__PURE__ */
|
|
477
|
+
}) : e.length === 0 ? /* @__PURE__ */ W("div", {
|
|
476
478
|
className: "flex size-full flex-col items-center justify-center",
|
|
477
|
-
children: /* @__PURE__ */
|
|
478
|
-
}) : /* @__PURE__ */
|
|
479
|
+
children: /* @__PURE__ */ W(ne, { label: p })
|
|
480
|
+
}) : /* @__PURE__ */ W("div", {
|
|
479
481
|
ref: v,
|
|
480
482
|
className: "relative",
|
|
481
483
|
style: { height: S },
|
|
482
484
|
children: Array.from({ length: b - y }, (e, t) => {
|
|
483
485
|
let n = y + t;
|
|
484
|
-
return /* @__PURE__ */
|
|
486
|
+
return /* @__PURE__ */ W(Wt, {
|
|
485
487
|
rowIndex: n,
|
|
486
488
|
...C
|
|
487
489
|
}, n);
|
|
488
490
|
})
|
|
489
491
|
});
|
|
490
|
-
}),
|
|
492
|
+
}), Kt = (e) => e.reduce((e, t) => t.type === bt.File ? e + 1 : e + Kt(t.items), 0), qt = (e) => {
|
|
491
493
|
let t = /* @__PURE__ */ new Set(), n = (e) => {
|
|
492
|
-
for (let r of e) r.type ===
|
|
494
|
+
for (let r of e) r.type === bt.Folder && (t.add(r.id), n(r.items));
|
|
493
495
|
};
|
|
494
496
|
return n(e), t;
|
|
495
|
-
},
|
|
497
|
+
}, Jt = (e, t) => {
|
|
496
498
|
if (t != null) for (let n of e) {
|
|
497
499
|
if (n.id === t) return n.name;
|
|
498
|
-
if (n.type ===
|
|
499
|
-
let e =
|
|
500
|
+
if (n.type === bt.Folder) {
|
|
501
|
+
let e = Jt(n.items, t);
|
|
500
502
|
if (e != null) return e;
|
|
501
503
|
}
|
|
502
504
|
}
|
|
503
|
-
},
|
|
505
|
+
}, Yt = {
|
|
504
506
|
sectionHeading: "_sectionHeading_jnq93_1",
|
|
505
507
|
rowAlt: "_rowAlt_jnq93_5",
|
|
506
508
|
label: "_label_jnq93_9",
|
|
@@ -508,19 +510,19 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
508
510
|
valueTrue: "_valueTrue_jnq93_17",
|
|
509
511
|
valueFalse: "_valueFalse_jnq93_21",
|
|
510
512
|
valueText: "_valueText_jnq93_25"
|
|
511
|
-
},
|
|
513
|
+
}, Xt = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(Ke, {
|
|
512
514
|
size: I.MD,
|
|
513
|
-
className: k(r,
|
|
514
|
-
}), /* @__PURE__ */
|
|
515
|
-
className: k(n,
|
|
515
|
+
className: k(r, Yt.checkIcon)
|
|
516
|
+
}), /* @__PURE__ */ W("span", {
|
|
517
|
+
className: k(n, Yt.valueTrue),
|
|
516
518
|
children: i
|
|
517
|
-
})] }) : e === !1 ? /* @__PURE__ */
|
|
518
|
-
className: k(t,
|
|
519
|
+
})] }) : e === !1 ? /* @__PURE__ */ W("span", {
|
|
520
|
+
className: k(t, Yt.valueFalse),
|
|
519
521
|
children: a
|
|
520
|
-
}) : /* @__PURE__ */
|
|
521
|
-
className: k("min-w-0 break-words", t,
|
|
522
|
+
}) : /* @__PURE__ */ W("span", {
|
|
523
|
+
className: k("min-w-0 break-words", t, Yt.valueText),
|
|
522
524
|
children: e
|
|
523
|
-
}),
|
|
525
|
+
}), Zt = ({ sectionLabel: e = "Section", values: t, labelClassName: n = "dial-small-semi-text", valueClassName: r = "dial-small-text", valueTrueClassName: i = "dial-small-semi-text", checkIconClassName: a, sectionClassName: o = "dial-caption-text", yesLabel: s = "Yes", noLabel: c = "No", colors: l }) => /* @__PURE__ */ W("div", {
|
|
524
526
|
className: "flex flex-col",
|
|
525
527
|
style: ae({
|
|
526
528
|
"--tv-section-heading": l?.sectionHeading,
|
|
@@ -531,19 +533,19 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
531
533
|
"--tv-value-false": l?.valueFalse,
|
|
532
534
|
"--tv-value-text": l?.valueText
|
|
533
535
|
}),
|
|
534
|
-
children: t != null && t.length > 0 && /* @__PURE__ */
|
|
535
|
-
className: k("mb-3 mt-0", o,
|
|
536
|
+
children: t != null && t.length > 0 && /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ W("p", {
|
|
537
|
+
className: k("mb-3 mt-0", o, Yt.sectionHeading),
|
|
536
538
|
children: e
|
|
537
|
-
}), /* @__PURE__ */
|
|
539
|
+
}), /* @__PURE__ */ W("ul", {
|
|
538
540
|
className: "m-0 list-none p-0",
|
|
539
|
-
children: t.map((e, t) => /* @__PURE__ */
|
|
540
|
-
className: k("flex items-center rounded px-3 py-2", t % 2 == 0 ?
|
|
541
|
-
children: [/* @__PURE__ */
|
|
542
|
-
className: k(n,
|
|
541
|
+
children: t.map((e, t) => /* @__PURE__ */ G("li", {
|
|
542
|
+
className: k("flex items-center rounded px-3 py-2", t % 2 == 0 ? Yt.rowAlt : void 0),
|
|
543
|
+
children: [/* @__PURE__ */ W("span", {
|
|
544
|
+
className: k(n, Yt.label, "w-2/5 shrink-0"),
|
|
543
545
|
children: e.label
|
|
544
|
-
}), /* @__PURE__ */
|
|
546
|
+
}), /* @__PURE__ */ W("div", {
|
|
545
547
|
className: "flex w-3/5 min-w-0 items-center gap-1",
|
|
546
|
-
children: /* @__PURE__ */
|
|
548
|
+
children: /* @__PURE__ */ W(Xt, {
|
|
547
549
|
value: e.value,
|
|
548
550
|
valueClassName: r,
|
|
549
551
|
valueTrueClassName: i,
|
|
@@ -554,46 +556,46 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
554
556
|
})]
|
|
555
557
|
}, e.label))
|
|
556
558
|
})] })
|
|
557
|
-
}),
|
|
558
|
-
[
|
|
559
|
-
[
|
|
560
|
-
[
|
|
561
|
-
},
|
|
562
|
-
[
|
|
563
|
-
[
|
|
564
|
-
[
|
|
565
|
-
},
|
|
566
|
-
let [s, c] =
|
|
559
|
+
}), Qt = { sectionHeading: "_sectionHeading_148lj_1" }, $t = {
|
|
560
|
+
[_t.Python]: "Python",
|
|
561
|
+
[_t.Curl]: "cURL",
|
|
562
|
+
[_t.JavaScript]: "JavaScript"
|
|
563
|
+
}, en = {
|
|
564
|
+
[_t.Python]: "python",
|
|
565
|
+
[_t.Curl]: "bash",
|
|
566
|
+
[_t.JavaScript]: "javascript"
|
|
567
|
+
}, tn = ({ 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" }) => {
|
|
568
|
+
let [s, c] = P(e[0]?.language ?? _t.Python);
|
|
567
569
|
j(() => {
|
|
568
|
-
c(e[0]?.language ??
|
|
570
|
+
c(e[0]?.language ?? _t.Python);
|
|
569
571
|
}, [e]);
|
|
570
|
-
let l =
|
|
572
|
+
let l = M(() => e.map((e) => ({
|
|
571
573
|
key: e.language,
|
|
572
|
-
label:
|
|
574
|
+
label: $t[e.language] ?? e.language,
|
|
573
575
|
onClick: () => c(e.language)
|
|
574
576
|
})), [e]), u = e.find((e) => e.language === s)?.code ?? "", d = e.length > 1;
|
|
575
|
-
return /* @__PURE__ */
|
|
576
|
-
className: k("mb-3 mt-0", o,
|
|
577
|
+
return /* @__PURE__ */ G("section", { children: [t != null && /* @__PURE__ */ W("p", {
|
|
578
|
+
className: k("mb-3 mt-0", o, Qt.sectionHeading),
|
|
577
579
|
children: t
|
|
578
|
-
}), /* @__PURE__ */
|
|
579
|
-
language:
|
|
580
|
-
title:
|
|
580
|
+
}), /* @__PURE__ */ W(D, {
|
|
581
|
+
language: en[s] ?? s,
|
|
582
|
+
title: $t[s] ?? s,
|
|
581
583
|
value: u,
|
|
582
584
|
copyLabel: n,
|
|
583
585
|
copiedLabel: r,
|
|
584
586
|
codeClassName: i,
|
|
585
587
|
languageLabelClassName: a,
|
|
586
588
|
hideDownload: !0,
|
|
587
|
-
titleSlot: d ? /* @__PURE__ */
|
|
589
|
+
titleSlot: d ? /* @__PURE__ */ W(Se, {
|
|
588
590
|
items: l,
|
|
589
591
|
matchReferenceWidth: !1,
|
|
590
592
|
placement: "bottom-end",
|
|
591
|
-
size:
|
|
593
|
+
size: ge.Small,
|
|
592
594
|
selectedKey: s
|
|
593
595
|
}) : void 0
|
|
594
596
|
})] });
|
|
595
|
-
},
|
|
596
|
-
let [h, g] =
|
|
597
|
+
}, nn = ({ 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" }) => {
|
|
598
|
+
let [h, g] = P(0), _ = M(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = M(() => _.map((e, t) => ({
|
|
597
599
|
key: e.url,
|
|
598
600
|
label: e.label,
|
|
599
601
|
onClick: () => g(t)
|
|
@@ -603,17 +605,17 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
603
605
|
value: e.resource.modelId
|
|
604
606
|
});
|
|
605
607
|
let S = _.length > 1, C = x.length > 0, w = v ? null : e.resource?.endpointUrl, T = (e.snippets?.length ?? 0) > 0, ee = e.requestExample != null, E = e.responseSchema != null;
|
|
606
|
-
return /* @__PURE__ */
|
|
608
|
+
return /* @__PURE__ */ G("div", {
|
|
607
609
|
className: "flex flex-col gap-6",
|
|
608
610
|
children: [
|
|
609
|
-
C && /* @__PURE__ */
|
|
611
|
+
C && /* @__PURE__ */ W(Zt, {
|
|
610
612
|
sectionLabel: t,
|
|
611
613
|
values: x,
|
|
612
614
|
labelClassName: u,
|
|
613
615
|
valueClassName: d,
|
|
614
616
|
sectionClassName: m
|
|
615
617
|
}),
|
|
616
|
-
w != null && /* @__PURE__ */
|
|
618
|
+
w != null && /* @__PURE__ */ W(D, {
|
|
617
619
|
language: a,
|
|
618
620
|
value: w,
|
|
619
621
|
copyLabel: c,
|
|
@@ -622,12 +624,12 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
622
624
|
languageLabelClassName: p,
|
|
623
625
|
hideDownload: !0
|
|
624
626
|
}),
|
|
625
|
-
v && /* @__PURE__ */
|
|
626
|
-
/* @__PURE__ */
|
|
627
|
-
className: k("mb-3 mt-0", m,
|
|
627
|
+
v && /* @__PURE__ */ G("section", { children: [
|
|
628
|
+
/* @__PURE__ */ W("p", {
|
|
629
|
+
className: k("mb-3 mt-0", m, Qt.sectionHeading),
|
|
628
630
|
children: n
|
|
629
631
|
}),
|
|
630
|
-
y != null && /* @__PURE__ */
|
|
632
|
+
y != null && /* @__PURE__ */ W(D, {
|
|
631
633
|
language: y.label,
|
|
632
634
|
value: y.url,
|
|
633
635
|
copyLabel: c,
|
|
@@ -635,17 +637,17 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
635
637
|
codeClassName: f,
|
|
636
638
|
languageLabelClassName: p,
|
|
637
639
|
hideDownload: !0,
|
|
638
|
-
titleSlot: S ? /* @__PURE__ */
|
|
640
|
+
titleSlot: S ? /* @__PURE__ */ W(Se, {
|
|
639
641
|
items: b,
|
|
640
642
|
matchReferenceWidth: !1,
|
|
641
643
|
placement: "bottom-end",
|
|
642
|
-
size:
|
|
644
|
+
size: ge.Small,
|
|
643
645
|
selectedKey: y.url
|
|
644
646
|
}) : void 0
|
|
645
647
|
}, h),
|
|
646
|
-
y?.snippets != null && y.snippets.length > 0 && /* @__PURE__ */
|
|
648
|
+
y?.snippets != null && y.snippets.length > 0 && /* @__PURE__ */ W("div", {
|
|
647
649
|
className: "mt-4",
|
|
648
|
-
children: /* @__PURE__ */
|
|
650
|
+
children: /* @__PURE__ */ W(tn, {
|
|
649
651
|
snippets: y.snippets,
|
|
650
652
|
copyAriaLabel: c,
|
|
651
653
|
copiedStatusLabel: l,
|
|
@@ -655,7 +657,7 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
655
657
|
}, h)
|
|
656
658
|
})
|
|
657
659
|
] }),
|
|
658
|
-
!v && T && /* @__PURE__ */
|
|
660
|
+
!v && T && /* @__PURE__ */ W(tn, {
|
|
659
661
|
snippets: e.snippets ?? [],
|
|
660
662
|
sectionLabel: r,
|
|
661
663
|
copyAriaLabel: c,
|
|
@@ -664,10 +666,10 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
664
666
|
codeTitleClassName: p,
|
|
665
667
|
sectionClassName: m
|
|
666
668
|
}),
|
|
667
|
-
ee && /* @__PURE__ */
|
|
668
|
-
className: k("mb-3 mt-0", m,
|
|
669
|
+
ee && /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ W("p", {
|
|
670
|
+
className: k("mb-3 mt-0", m, Qt.sectionHeading),
|
|
669
671
|
children: o
|
|
670
|
-
}), /* @__PURE__ */
|
|
672
|
+
}), /* @__PURE__ */ W(D, {
|
|
671
673
|
language: "bash",
|
|
672
674
|
value: e.requestExample ?? "",
|
|
673
675
|
copyLabel: c,
|
|
@@ -675,10 +677,10 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
675
677
|
codeClassName: f,
|
|
676
678
|
hideDownload: !0
|
|
677
679
|
})] }),
|
|
678
|
-
E && /* @__PURE__ */
|
|
679
|
-
className: k("mb-3 mt-0", m,
|
|
680
|
+
E && /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ W("p", {
|
|
681
|
+
className: k("mb-3 mt-0", m, Qt.sectionHeading),
|
|
680
682
|
children: s
|
|
681
|
-
}), /* @__PURE__ */
|
|
683
|
+
}), /* @__PURE__ */ W(D, {
|
|
682
684
|
language: "json",
|
|
683
685
|
value: e.responseSchema ?? "",
|
|
684
686
|
copyLabel: c,
|
|
@@ -688,34 +690,34 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
688
690
|
})] })
|
|
689
691
|
]
|
|
690
692
|
});
|
|
691
|
-
},
|
|
693
|
+
}, rn = {
|
|
692
694
|
message: "_message_13mok_1",
|
|
693
695
|
consequences: "_consequences_13mok_5",
|
|
694
696
|
footer: "_footer_13mok_9"
|
|
695
|
-
},
|
|
696
|
-
let c = n ===
|
|
697
|
-
if (r) return /* @__PURE__ */
|
|
698
|
-
if (c) return /* @__PURE__ */
|
|
697
|
+
}, an = ({ confirmLabel: e, cancelLabel: t, variant: n = J.Info, isLoading: r = !1, isConfirmDisabled: i = !1, loadingStatusLabel: a, onConfirm: o, onCancel: s }) => {
|
|
698
|
+
let c = n === J.Danger, l = (() => {
|
|
699
|
+
if (r) return /* @__PURE__ */ W(Fe, { size: I.SM });
|
|
700
|
+
if (c) return /* @__PURE__ */ W(ct, {
|
|
699
701
|
size: I.MD,
|
|
700
702
|
"aria-hidden": !0,
|
|
701
703
|
stroke: L
|
|
702
704
|
});
|
|
703
|
-
})(), u = c ?
|
|
704
|
-
return /* @__PURE__ */
|
|
705
|
-
className: k("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start",
|
|
705
|
+
})(), u = c ? me : De;
|
|
706
|
+
return /* @__PURE__ */ G("div", {
|
|
707
|
+
className: k("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start", rn.footer),
|
|
706
708
|
children: [
|
|
707
|
-
/* @__PURE__ */
|
|
709
|
+
/* @__PURE__ */ W(ye, {
|
|
708
710
|
label: t,
|
|
709
711
|
disabled: r,
|
|
710
712
|
onClick: s
|
|
711
713
|
}),
|
|
712
|
-
/* @__PURE__ */
|
|
714
|
+
/* @__PURE__ */ W(u, {
|
|
713
715
|
label: e,
|
|
714
716
|
disabled: r || i,
|
|
715
717
|
iconBefore: l,
|
|
716
718
|
onClick: o
|
|
717
719
|
}),
|
|
718
|
-
r && a != null && /* @__PURE__ */
|
|
720
|
+
r && a != null && /* @__PURE__ */ W("span", {
|
|
719
721
|
role: "status",
|
|
720
722
|
"aria-live": "polite",
|
|
721
723
|
className: "sr-only",
|
|
@@ -723,133 +725,133 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
723
725
|
})
|
|
724
726
|
]
|
|
725
727
|
});
|
|
726
|
-
},
|
|
728
|
+
}, on = {
|
|
727
729
|
info: "_info_lklha_1",
|
|
728
730
|
danger: "_danger_lklha_5"
|
|
729
|
-
},
|
|
731
|
+
}, sn = ({ item: e, variant: t = J.Info, iconSize: n = 40 }) => /* @__PURE__ */ W(re, {
|
|
730
732
|
item: e,
|
|
731
733
|
iconSize: n,
|
|
732
734
|
hasVersionTag: !1,
|
|
733
|
-
className: t ===
|
|
734
|
-
}),
|
|
735
|
+
className: t === J.Danger ? on.danger : on.info
|
|
736
|
+
}), cn = ({ item: e, message: t, consequences: n, variant: r = J.Info, messageClassName: i = "dial-small-text", children: a }) => /* @__PURE__ */ G("div", {
|
|
735
737
|
className: "flex flex-col gap-4 px-6 py-4",
|
|
736
738
|
children: [
|
|
737
|
-
/* @__PURE__ */
|
|
739
|
+
/* @__PURE__ */ W(sn, {
|
|
738
740
|
item: e,
|
|
739
741
|
variant: r
|
|
740
742
|
}),
|
|
741
|
-
/* @__PURE__ */
|
|
742
|
-
className: k(i, "break-words",
|
|
743
|
+
/* @__PURE__ */ W("p", {
|
|
744
|
+
className: k(i, "break-words", rn.message),
|
|
743
745
|
children: t
|
|
744
746
|
}),
|
|
745
|
-
n != null && n.length > 0 && /* @__PURE__ */
|
|
746
|
-
className: k("flex list-disc flex-col gap-2 ps-5", i,
|
|
747
|
-
children: n.map((e) => /* @__PURE__ */
|
|
747
|
+
n != null && n.length > 0 && /* @__PURE__ */ W("ul", {
|
|
748
|
+
className: k("flex list-disc flex-col gap-2 ps-5", i, rn.consequences),
|
|
749
|
+
children: n.map((e) => /* @__PURE__ */ W("li", { children: e }, e))
|
|
748
750
|
}),
|
|
749
751
|
a
|
|
750
752
|
]
|
|
751
|
-
}),
|
|
753
|
+
}), ln = {
|
|
752
754
|
sunkenBox: "_sunkenBox_1lqi3_1",
|
|
753
755
|
raisedBox: "_raisedBox_1lqi3_5",
|
|
754
756
|
activeIcon: "_activeIcon_1lqi3_9"
|
|
755
|
-
},
|
|
757
|
+
}, un = /* @__PURE__ */ function(e) {
|
|
756
758
|
return e.Sunken = "sunken", e.Raised = "raised", e;
|
|
757
|
-
}({}),
|
|
758
|
-
sunken:
|
|
759
|
-
raised:
|
|
760
|
-
},
|
|
759
|
+
}({}), dn = {
|
|
760
|
+
sunken: ln.sunkenBox,
|
|
761
|
+
raised: ln.raisedBox
|
|
762
|
+
}, fn = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */ G("span", {
|
|
761
763
|
className: "relative inline-flex shrink-0",
|
|
762
764
|
children: [
|
|
763
|
-
/* @__PURE__ */
|
|
764
|
-
className: k("flex size-8 items-center justify-center rounded-lg",
|
|
765
|
+
/* @__PURE__ */ W("span", {
|
|
766
|
+
className: k("flex size-8 items-center justify-center rounded-lg", dn[n]),
|
|
765
767
|
children: e
|
|
766
768
|
}),
|
|
767
|
-
t && /* @__PURE__ */
|
|
769
|
+
t && /* @__PURE__ */ W(Ke, {
|
|
768
770
|
size: I.MD,
|
|
769
771
|
"aria-hidden": !0,
|
|
770
|
-
className: k("absolute -end-2 -top-2",
|
|
772
|
+
className: k("absolute -end-2 -top-2", ln.activeIcon)
|
|
771
773
|
}),
|
|
772
|
-
r != null && /* @__PURE__ */
|
|
774
|
+
r != null && /* @__PURE__ */ W("span", {
|
|
773
775
|
className: "sr-only",
|
|
774
776
|
children: r
|
|
775
777
|
})
|
|
776
778
|
]
|
|
777
|
-
}),
|
|
779
|
+
}), pn = {
|
|
778
780
|
card: "_card_tqnz7_1",
|
|
779
781
|
icon: "_icon_tqnz7_6",
|
|
780
782
|
title: "_title_tqnz7_10",
|
|
781
783
|
description: "_description_tqnz7_14"
|
|
782
|
-
},
|
|
784
|
+
}, mn = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ G("div", {
|
|
783
785
|
role: "status",
|
|
784
786
|
"aria-live": "polite",
|
|
785
|
-
className: k("flex items-center gap-3 rounded-xl p-3",
|
|
786
|
-
children: [/* @__PURE__ */
|
|
787
|
-
className: k("shrink-0",
|
|
787
|
+
className: k("flex items-center gap-3 rounded-xl p-3", pn.card),
|
|
788
|
+
children: [/* @__PURE__ */ W("span", {
|
|
789
|
+
className: k("shrink-0", pn.icon, n != null && "mt-0.5"),
|
|
788
790
|
children: e
|
|
789
|
-
}), /* @__PURE__ */
|
|
791
|
+
}), /* @__PURE__ */ G("div", {
|
|
790
792
|
className: "flex min-w-0 flex-1 items-center justify-between gap-2",
|
|
791
|
-
children: [/* @__PURE__ */
|
|
793
|
+
children: [/* @__PURE__ */ G("div", {
|
|
792
794
|
className: "flex min-w-0 flex-col gap-1",
|
|
793
|
-
children: [/* @__PURE__ */
|
|
794
|
-
className: k(i,
|
|
795
|
+
children: [/* @__PURE__ */ W("span", {
|
|
796
|
+
className: k(i, pn.title),
|
|
795
797
|
children: t
|
|
796
|
-
}), n != null && /* @__PURE__ */
|
|
797
|
-
className: k(a,
|
|
798
|
+
}), n != null && /* @__PURE__ */ W("span", {
|
|
799
|
+
className: k(a, pn.description),
|
|
798
800
|
children: n
|
|
799
801
|
})]
|
|
800
|
-
}), r != null && /* @__PURE__ */
|
|
802
|
+
}), r != null && /* @__PURE__ */ W("div", {
|
|
801
803
|
className: "shrink-0 whitespace-nowrap",
|
|
802
804
|
children: r
|
|
803
805
|
})]
|
|
804
806
|
})]
|
|
805
|
-
}),
|
|
806
|
-
let r = /* @__PURE__ */
|
|
807
|
-
size:
|
|
807
|
+
}), hn = (e) => e === y.ApiKey ? "You are currently using organization API key to access this toolset." : "You are currently using organization credentials to access this toolset.", gn = (e) => e === y.ApiKey ? "Configure your personal API key to have access to your data." : "Login using personal account to have access to your data.", _n = (e) => e === y.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", vn = (e) => e === y.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", yn = 20, bn = ({ state: e, authenticationType: t, texts: n }) => {
|
|
808
|
+
let r = /* @__PURE__ */ W(Ve, {
|
|
809
|
+
size: yn,
|
|
808
810
|
"aria-hidden": !0,
|
|
809
811
|
stroke: L
|
|
810
812
|
});
|
|
811
813
|
if (e === v.PersonalCredentialsActive) {
|
|
812
|
-
let e = (n?.personalCredentialsActiveBannerTitle ??
|
|
813
|
-
return /* @__PURE__ */
|
|
814
|
-
icon: /* @__PURE__ */
|
|
815
|
-
icon: /* @__PURE__ */
|
|
814
|
+
let e = (n?.personalCredentialsActiveBannerTitle ?? vn)(t);
|
|
815
|
+
return /* @__PURE__ */ W(mn, {
|
|
816
|
+
icon: /* @__PURE__ */ W(fn, {
|
|
817
|
+
icon: /* @__PURE__ */ W(H, {
|
|
816
818
|
size: I.SM,
|
|
817
819
|
"aria-hidden": !0,
|
|
818
820
|
stroke: L
|
|
819
821
|
}),
|
|
820
822
|
isActive: !0,
|
|
821
|
-
surface:
|
|
823
|
+
surface: un.Raised
|
|
822
824
|
}),
|
|
823
825
|
title: e
|
|
824
826
|
});
|
|
825
827
|
}
|
|
826
828
|
if (e === v.OrgCredentialsActive) {
|
|
827
|
-
let e = (n?.orgCredentialsActiveBannerTitle ??
|
|
828
|
-
return /* @__PURE__ */
|
|
829
|
-
icon: /* @__PURE__ */
|
|
830
|
-
icon: /* @__PURE__ */
|
|
829
|
+
let e = (n?.orgCredentialsActiveBannerTitle ?? _n)(t);
|
|
830
|
+
return /* @__PURE__ */ W(mn, {
|
|
831
|
+
icon: /* @__PURE__ */ W(fn, {
|
|
832
|
+
icon: /* @__PURE__ */ W(Ve, {
|
|
831
833
|
size: I.SM,
|
|
832
834
|
"aria-hidden": !0,
|
|
833
835
|
stroke: L
|
|
834
836
|
}),
|
|
835
837
|
isActive: !0,
|
|
836
|
-
surface:
|
|
838
|
+
surface: un.Raised
|
|
837
839
|
}),
|
|
838
840
|
title: e
|
|
839
841
|
});
|
|
840
842
|
}
|
|
841
|
-
return /* @__PURE__ */
|
|
843
|
+
return /* @__PURE__ */ W(mn, {
|
|
842
844
|
icon: r,
|
|
843
|
-
title: (n?.orgFallbackBannerTitle ??
|
|
844
|
-
description: (n?.orgFallbackBannerDescription ??
|
|
845
|
+
title: (n?.orgFallbackBannerTitle ?? hn)(t),
|
|
846
|
+
description: (n?.orgFallbackBannerDescription ?? gn)(t)
|
|
845
847
|
});
|
|
846
|
-
},
|
|
848
|
+
}, xn = {
|
|
847
849
|
surface: "_surface_1q3s8_1",
|
|
848
850
|
description: "_description_1q3s8_5",
|
|
849
851
|
rowDescription: "_rowDescription_1q3s8_9",
|
|
850
852
|
errorText: "_errorText_1q3s8_13"
|
|
851
|
-
},
|
|
852
|
-
let [x, S] =
|
|
853
|
+
}, Sn = ({ item: e, level: t, label: n, description: r, icon: i, status: a, isActive: s, authenticationType: c, apiKeyAddedWhen: l, onLogin: u, onRequestLogout: d, onRequestDeleteApiKey: f, texts: p, labelClassName: m, descriptionClassName: h, errorClassName: g, keyCardTitleClassName: _, keyCardDescriptionClassName: v, deleteActionClassName: b }) => {
|
|
854
|
+
let [x, S] = P(""), [C, w] = P(!1), [T, ee] = P(!1), E = a === o.SignedIn, D = A(() => {
|
|
853
855
|
u?.(e, { level: t });
|
|
854
856
|
}, [
|
|
855
857
|
e,
|
|
@@ -880,43 +882,43 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
880
882
|
d?.(t);
|
|
881
883
|
}, [t, d]), re = A(() => {
|
|
882
884
|
f?.(t);
|
|
883
|
-
}, [t, f]), ie = p?.loginActionLabel ?? "Log in", ae = p?.logoutActionLabel ?? "Log out", oe = p?.addApiKeyActionLabel ?? "Add", se = p?.deleteActionLabel ?? "Delete",
|
|
884
|
-
return /* @__PURE__ */
|
|
885
|
+
}, [t, f]), ie = p?.loginActionLabel ?? "Log in", ae = p?.logoutActionLabel ?? "Log out", oe = p?.addApiKeyActionLabel ?? "Add", se = p?.deleteActionLabel ?? "Delete", ce = p?.credentialsSignedInLabel ?? "Signed in", j = p?.credentialsSignedOutLabel ?? "Signed out", le = p?.addingApiKeyStatusLabel ?? "Adding", M = p?.apiKeyConfiguredMessage ?? "Key has been configured", N = l == null ? void 0 : (p?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(l);
|
|
886
|
+
return /* @__PURE__ */ G("div", {
|
|
885
887
|
className: "flex items-start gap-3 rounded-xl p-3",
|
|
886
|
-
children: [/* @__PURE__ */
|
|
888
|
+
children: [/* @__PURE__ */ W(fn, {
|
|
887
889
|
icon: i,
|
|
888
890
|
isActive: s,
|
|
889
|
-
statusLabel: s ?
|
|
890
|
-
}), /* @__PURE__ */
|
|
891
|
+
statusLabel: s ? ce : j
|
|
892
|
+
}), /* @__PURE__ */ G("div", {
|
|
891
893
|
className: "flex min-w-0 flex-1 flex-col gap-1",
|
|
892
894
|
children: [
|
|
893
|
-
/* @__PURE__ */
|
|
895
|
+
/* @__PURE__ */ G("div", {
|
|
894
896
|
className: "flex items-start justify-between gap-2",
|
|
895
|
-
children: [/* @__PURE__ */
|
|
897
|
+
children: [/* @__PURE__ */ G("div", {
|
|
896
898
|
className: "flex min-w-0 flex-col gap-0.5",
|
|
897
|
-
children: [/* @__PURE__ */
|
|
899
|
+
children: [/* @__PURE__ */ W("span", {
|
|
898
900
|
className: m,
|
|
899
901
|
children: n
|
|
900
|
-
}), /* @__PURE__ */
|
|
901
|
-
className: k(h,
|
|
902
|
+
}), /* @__PURE__ */ W("span", {
|
|
903
|
+
className: k(h, xn.rowDescription),
|
|
902
904
|
children: r
|
|
903
905
|
})]
|
|
904
|
-
}), c === y.OAuth && (E ? /* @__PURE__ */
|
|
905
|
-
appearance:
|
|
906
|
+
}), c === y.OAuth && (E ? /* @__PURE__ */ W(me, {
|
|
907
|
+
appearance: ue.Ghost,
|
|
906
908
|
label: ae,
|
|
907
909
|
className: "min-w-28 shrink-0 justify-center whitespace-nowrap",
|
|
908
910
|
onClick: ne
|
|
909
|
-
}) : /* @__PURE__ */
|
|
911
|
+
}) : /* @__PURE__ */ W(De, {
|
|
910
912
|
label: ie,
|
|
911
913
|
className: "min-w-28 shrink-0 justify-center whitespace-nowrap",
|
|
912
914
|
onClick: D
|
|
913
915
|
}))]
|
|
914
916
|
}),
|
|
915
|
-
c === y.ApiKey && !E && /* @__PURE__ */
|
|
917
|
+
c === y.ApiKey && !E && /* @__PURE__ */ G("div", {
|
|
916
918
|
className: "flex animate-fadeIn flex-col gap-1 pt-1",
|
|
917
|
-
children: [/* @__PURE__ */
|
|
919
|
+
children: [/* @__PURE__ */ G("div", {
|
|
918
920
|
className: "flex items-end gap-2",
|
|
919
|
-
children: [/* @__PURE__ */
|
|
921
|
+
children: [/* @__PURE__ */ W(we, {
|
|
920
922
|
id: `catalog-item-${e.id}-${t}-api-key`,
|
|
921
923
|
type: "password",
|
|
922
924
|
autoComplete: "current-password",
|
|
@@ -926,35 +928,35 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
926
928
|
invalid: C,
|
|
927
929
|
disabled: T,
|
|
928
930
|
containerClassName: "min-w-0 flex-1"
|
|
929
|
-
}), /* @__PURE__ */
|
|
931
|
+
}), /* @__PURE__ */ W(De, {
|
|
930
932
|
label: T ? void 0 : oe,
|
|
931
|
-
"aria-label": T ?
|
|
932
|
-
iconBefore: T ? /* @__PURE__ */
|
|
933
|
+
"aria-label": T ? le : void 0,
|
|
934
|
+
iconBefore: T ? /* @__PURE__ */ W(Fe, {
|
|
933
935
|
size: I.SM,
|
|
934
|
-
ariaLabel:
|
|
936
|
+
ariaLabel: le
|
|
935
937
|
}) : void 0,
|
|
936
938
|
className: "shrink-0 whitespace-nowrap",
|
|
937
939
|
onClick: te,
|
|
938
940
|
disabled: T
|
|
939
941
|
})]
|
|
940
|
-
}), C && /* @__PURE__ */
|
|
941
|
-
className: k(g,
|
|
942
|
+
}), C && /* @__PURE__ */ W("span", {
|
|
943
|
+
className: k(g, xn.errorText),
|
|
942
944
|
children: p?.apiKeyRequiredErrorMessage ?? "API key is required."
|
|
943
945
|
})]
|
|
944
946
|
}),
|
|
945
|
-
c === y.ApiKey && E && /* @__PURE__ */
|
|
947
|
+
c === y.ApiKey && E && /* @__PURE__ */ W("div", {
|
|
946
948
|
className: "animate-fadeIn pt-1",
|
|
947
|
-
children: /* @__PURE__ */
|
|
948
|
-
icon: /* @__PURE__ */
|
|
949
|
+
children: /* @__PURE__ */ W(mn, {
|
|
950
|
+
icon: /* @__PURE__ */ W(Ze, {
|
|
949
951
|
size: I.SM,
|
|
950
952
|
"aria-hidden": !0,
|
|
951
953
|
stroke: L
|
|
952
954
|
}),
|
|
953
|
-
title:
|
|
954
|
-
description:
|
|
955
|
+
title: M,
|
|
956
|
+
description: N,
|
|
955
957
|
titleClassName: _,
|
|
956
958
|
descriptionClassName: v,
|
|
957
|
-
action: /* @__PURE__ */
|
|
959
|
+
action: /* @__PURE__ */ W(R, {
|
|
958
960
|
label: se,
|
|
959
961
|
className: b,
|
|
960
962
|
onClick: re
|
|
@@ -964,35 +966,35 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
964
966
|
]
|
|
965
967
|
})]
|
|
966
968
|
});
|
|
967
|
-
},
|
|
969
|
+
}, Cn = (e) => e === y.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.", wn = ({ item: e, onLogin: t, onRequestLogout: n, onRequestDeleteApiKey: r, texts: i, detailsStyles: a, deleteActionClassName: s = "text-error" }) => {
|
|
968
970
|
let { credentialsDescriptionClassName: c = "dial-body-paragraph-text", credentialsRowLabelClassName: l = "dial-small-semi-text", credentialsRowDescriptionClassName: u = "dial-small-text", credentialsErrorClassName: d = "dial-caption-text", credentialsKeyCardTitleClassName: f = "dial-tiny-semi-text", credentialsKeyCardDescriptionClassName: p = "dial-tiny-text" } = a?.typography ?? {}, m = e.credentials;
|
|
969
971
|
if (m == null) return null;
|
|
970
|
-
let h = (i?.credentialsManagementDescription ??
|
|
971
|
-
return /* @__PURE__ */
|
|
972
|
+
let h = (i?.credentialsManagementDescription ?? Cn)(m.authenticationType), g = m.userStatus === o.SignedIn, _ = !g && m.globalStatus === o.SignedIn;
|
|
973
|
+
return /* @__PURE__ */ G("div", {
|
|
972
974
|
className: "flex flex-col",
|
|
973
|
-
children: [/* @__PURE__ */
|
|
975
|
+
children: [/* @__PURE__ */ W("div", {
|
|
974
976
|
className: "px-6 py-4",
|
|
975
|
-
children: /* @__PURE__ */
|
|
976
|
-
className: k("rounded-xl p-3",
|
|
977
|
-
children: /* @__PURE__ */
|
|
977
|
+
children: /* @__PURE__ */ W("div", {
|
|
978
|
+
className: k("rounded-xl p-3", xn.surface),
|
|
979
|
+
children: /* @__PURE__ */ W(w, {
|
|
978
980
|
item: e,
|
|
979
981
|
iconSize: 40,
|
|
980
982
|
hasFeaturedTag: !1
|
|
981
983
|
})
|
|
982
984
|
})
|
|
983
|
-
}), /* @__PURE__ */
|
|
985
|
+
}), /* @__PURE__ */ G("div", {
|
|
984
986
|
className: "flex flex-col gap-5 px-6 py-4",
|
|
985
|
-
children: [/* @__PURE__ */
|
|
986
|
-
className: k(c,
|
|
987
|
+
children: [/* @__PURE__ */ W("span", {
|
|
988
|
+
className: k(c, xn.description),
|
|
987
989
|
children: h
|
|
988
|
-
}), /* @__PURE__ */
|
|
990
|
+
}), /* @__PURE__ */ G("div", {
|
|
989
991
|
className: "flex flex-col",
|
|
990
|
-
children: [/* @__PURE__ */
|
|
992
|
+
children: [/* @__PURE__ */ W(Sn, {
|
|
991
993
|
item: e,
|
|
992
994
|
level: b.User,
|
|
993
995
|
label: i?.personalCredentialsLabel ?? "Personal credentials",
|
|
994
996
|
description: i?.personalCredentialsDescription ?? "These credentials apply only to your account.",
|
|
995
|
-
icon: /* @__PURE__ */
|
|
997
|
+
icon: /* @__PURE__ */ W(H, {
|
|
996
998
|
size: I.SM,
|
|
997
999
|
"aria-hidden": !0,
|
|
998
1000
|
stroke: L
|
|
@@ -1011,12 +1013,12 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1011
1013
|
keyCardTitleClassName: f,
|
|
1012
1014
|
keyCardDescriptionClassName: p,
|
|
1013
1015
|
deleteActionClassName: s
|
|
1014
|
-
}), /* @__PURE__ */
|
|
1016
|
+
}), /* @__PURE__ */ W(Sn, {
|
|
1015
1017
|
item: e,
|
|
1016
1018
|
level: b.Global,
|
|
1017
1019
|
label: i?.organizationCredentialsLabel ?? "Organization credentials",
|
|
1018
1020
|
description: i?.organizationCredentialsDescription ?? "Once added, these credentials will grant all users in your organization access to this toolset.",
|
|
1019
|
-
icon: /* @__PURE__ */
|
|
1021
|
+
icon: /* @__PURE__ */ W(Ve, {
|
|
1020
1022
|
size: I.SM,
|
|
1021
1023
|
"aria-hidden": !0,
|
|
1022
1024
|
stroke: L
|
|
@@ -1039,17 +1041,17 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1039
1041
|
})]
|
|
1040
1042
|
})]
|
|
1041
1043
|
});
|
|
1042
|
-
},
|
|
1044
|
+
}, Tn = {
|
|
1043
1045
|
skeletonColor: "var(--cat-details-skeleton, var(--bg-control-disable-primary, #dce0e8))",
|
|
1044
1046
|
backdrop: "_backdrop_16ka5_2",
|
|
1045
1047
|
panel: "_panel_16ka5_6",
|
|
1046
1048
|
divider: "_divider_16ka5_11",
|
|
1047
1049
|
content: "_content_16ka5_15",
|
|
1048
1050
|
publishTitle: "_publishTitle_16ka5_20"
|
|
1049
|
-
},
|
|
1051
|
+
}, En = /* @__PURE__ */ function(e) {
|
|
1050
1052
|
return e.Idle = "idle", e.Loading = "loading", e.Resolved = "resolved", e.Unknown = "unknown", e;
|
|
1051
|
-
}({}),
|
|
1052
|
-
let [u, d] =
|
|
1053
|
+
}({}), Dn = { divider: "_divider_nhloi_1" }, On = 16, kn = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, onLogin: i, onLogout: a, onClose: s, texts: c, deleteActionClassName: l = "text-error" }) => {
|
|
1054
|
+
let [u, d] = P(""), [f, p] = P(!1), [m, h] = P(!1), [g, _] = P(!1), v = n === o.SignedIn, y = A((e) => {
|
|
1053
1055
|
d(e ?? ""), p(!1);
|
|
1054
1056
|
}, []), b = A(async () => {
|
|
1055
1057
|
if (u.trim().length === 0) {
|
|
@@ -1084,22 +1086,22 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1084
1086
|
a,
|
|
1085
1087
|
s
|
|
1086
1088
|
]), S = c?.personalApiKeyPanelTitle ?? "Personal API key", C = c?.addApiKeyActionLabel ?? "Add", w = c?.deleteActionLabel ?? "Delete", T = c?.addingApiKeyStatusLabel ?? "Adding", ee = c?.deletingStatusLabel ?? "Deleting", E = c?.apiKeyRequiredErrorMessage ?? "API key is required.", D = c?.personalApiKeyAddedMessage ?? "Personal key has been added", O = r == null ? void 0 : (c?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(r);
|
|
1087
|
-
return /* @__PURE__ */
|
|
1089
|
+
return /* @__PURE__ */ G("div", {
|
|
1088
1090
|
className: "flex w-[418px] flex-col",
|
|
1089
1091
|
children: [
|
|
1090
|
-
/* @__PURE__ */
|
|
1092
|
+
/* @__PURE__ */ W("div", {
|
|
1091
1093
|
className: "flex items-center gap-2 px-4 py-3",
|
|
1092
|
-
children: /* @__PURE__ */
|
|
1094
|
+
children: /* @__PURE__ */ W("span", {
|
|
1093
1095
|
className: "dial-small-semi-text",
|
|
1094
1096
|
children: S
|
|
1095
1097
|
})
|
|
1096
1098
|
}),
|
|
1097
|
-
/* @__PURE__ */
|
|
1098
|
-
!v && /* @__PURE__ */
|
|
1099
|
+
/* @__PURE__ */ W("div", { className: k("mx-4 h-px", Dn.divider) }),
|
|
1100
|
+
!v && /* @__PURE__ */ G("div", {
|
|
1099
1101
|
className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
|
|
1100
|
-
children: [/* @__PURE__ */
|
|
1102
|
+
children: [/* @__PURE__ */ G("div", {
|
|
1101
1103
|
className: "flex items-end gap-2",
|
|
1102
|
-
children: [/* @__PURE__ */
|
|
1104
|
+
children: [/* @__PURE__ */ W(we, {
|
|
1103
1105
|
id: `catalog-item-${e.id}-${t}-api-key`,
|
|
1104
1106
|
type: "password",
|
|
1105
1107
|
autoComplete: "current-password",
|
|
@@ -1109,36 +1111,36 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1109
1111
|
invalid: f,
|
|
1110
1112
|
disabled: m,
|
|
1111
1113
|
containerClassName: "min-w-0 flex-1"
|
|
1112
|
-
}), /* @__PURE__ */
|
|
1114
|
+
}), /* @__PURE__ */ W(De, {
|
|
1113
1115
|
label: m ? void 0 : C,
|
|
1114
1116
|
"aria-label": m ? T : void 0,
|
|
1115
|
-
iconBefore: m ? /* @__PURE__ */
|
|
1116
|
-
size:
|
|
1117
|
+
iconBefore: m ? /* @__PURE__ */ W(Fe, {
|
|
1118
|
+
size: On,
|
|
1117
1119
|
ariaLabel: T
|
|
1118
1120
|
}) : void 0,
|
|
1119
1121
|
onClick: b,
|
|
1120
1122
|
disabled: m
|
|
1121
1123
|
})]
|
|
1122
|
-
}), f && /* @__PURE__ */
|
|
1124
|
+
}), f && /* @__PURE__ */ W("span", {
|
|
1123
1125
|
className: "dial-caption-text text-error",
|
|
1124
1126
|
children: E
|
|
1125
1127
|
})]
|
|
1126
1128
|
}),
|
|
1127
|
-
v && /* @__PURE__ */
|
|
1129
|
+
v && /* @__PURE__ */ W("div", {
|
|
1128
1130
|
className: "animate-fadeIn px-4 py-3.5",
|
|
1129
|
-
children: /* @__PURE__ */
|
|
1130
|
-
icon: /* @__PURE__ */
|
|
1131
|
+
children: /* @__PURE__ */ W(mn, {
|
|
1132
|
+
icon: /* @__PURE__ */ W(Ze, {
|
|
1131
1133
|
size: 20,
|
|
1132
1134
|
"aria-hidden": !0,
|
|
1133
1135
|
stroke: L
|
|
1134
1136
|
}),
|
|
1135
1137
|
title: D,
|
|
1136
1138
|
description: O,
|
|
1137
|
-
action: /* @__PURE__ */
|
|
1139
|
+
action: /* @__PURE__ */ W(R, {
|
|
1138
1140
|
label: g ? void 0 : w,
|
|
1139
1141
|
"aria-label": g ? ee : void 0,
|
|
1140
|
-
iconBefore: g ? /* @__PURE__ */
|
|
1141
|
-
size:
|
|
1142
|
+
iconBefore: g ? /* @__PURE__ */ W(Fe, {
|
|
1143
|
+
size: On,
|
|
1142
1144
|
ariaLabel: ee
|
|
1143
1145
|
}) : void 0,
|
|
1144
1146
|
className: l,
|
|
@@ -1149,8 +1151,8 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1149
1151
|
})
|
|
1150
1152
|
]
|
|
1151
1153
|
});
|
|
1152
|
-
},
|
|
1153
|
-
let [a, o] =
|
|
1154
|
+
}, An = { name: "_name_gfs1p_1" }, jn = (e) => e.isMyApp === !0, Mn = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
|
|
1155
|
+
let [a, o] = P(!1), s = A(() => {
|
|
1154
1156
|
if (n) {
|
|
1155
1157
|
o((e) => !e);
|
|
1156
1158
|
return;
|
|
@@ -1161,14 +1163,14 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1161
1163
|
t,
|
|
1162
1164
|
n
|
|
1163
1165
|
]);
|
|
1164
|
-
if (!
|
|
1165
|
-
let c = /* @__PURE__ */
|
|
1166
|
+
if (!jn(e) || r && !r(e)) return null;
|
|
1167
|
+
let c = /* @__PURE__ */ W(De, {
|
|
1166
1168
|
label: i,
|
|
1167
|
-
iconBefore: /* @__PURE__ */
|
|
1169
|
+
iconBefore: /* @__PURE__ */ W(it, {
|
|
1168
1170
|
size: I.MD,
|
|
1169
1171
|
stroke: L
|
|
1170
1172
|
}),
|
|
1171
|
-
iconAfter: /* @__PURE__ */
|
|
1173
|
+
iconAfter: /* @__PURE__ */ W(Ue, {
|
|
1172
1174
|
size: I.MD,
|
|
1173
1175
|
stroke: L
|
|
1174
1176
|
}),
|
|
@@ -1176,7 +1178,7 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1176
1178
|
"aria-haspopup": n ? "menu" : void 0,
|
|
1177
1179
|
"aria-expanded": n ? a : void 0
|
|
1178
1180
|
});
|
|
1179
|
-
return n ? /* @__PURE__ */
|
|
1181
|
+
return n ? /* @__PURE__ */ W(he, {
|
|
1180
1182
|
placement: "bottom-end",
|
|
1181
1183
|
matchReferenceWidth: !1,
|
|
1182
1184
|
open: a,
|
|
@@ -1186,27 +1188,27 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1186
1188
|
renderOverlay: () => n(e, () => o(!1)),
|
|
1187
1189
|
children: c
|
|
1188
1190
|
}) : c;
|
|
1189
|
-
},
|
|
1190
|
-
[
|
|
1191
|
-
[
|
|
1192
|
-
},
|
|
1193
|
-
className: k("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text",
|
|
1191
|
+
}, Nn = (e) => e === y.ApiKey ? "Manage API keys" : "Manage credentials", Pn = {
|
|
1192
|
+
[vt.LimitReached]: "bg-error text-error",
|
|
1193
|
+
[vt.RunningLow]: "bg-warning text-warning"
|
|
1194
|
+
}, Fn = ({ status: e, label: t }) => /* @__PURE__ */ W("div", {
|
|
1195
|
+
className: k("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", Pn[e]),
|
|
1194
1196
|
children: t
|
|
1195
|
-
}),
|
|
1196
|
-
let { nameClassName:
|
|
1197
|
-
status:
|
|
1198
|
-
label:
|
|
1197
|
+
}), In = ({ item: e, onUseInChat: t, isPrimaryActionVisible: r, onShare: i, shareOverlay: a, isShareVisible: o, isSharePrimary: s, onEdit: l, onDownload: u, isDownloadVisible: d, isDownloadPrimary: f, onDelete: p, onUnshare: m, isUnshareVisible: h, onRevokeShare: g, onFetchRecipientsCount: _, isRevokeShareVisible: v, onLogin: S, onLogout: C, onOpenCredentialsManagement: T, onRequestLogout: ee, texts: E, detailsStyles: D, isPublishVisible: O, isPublishPrimary: te, onOpenPublish: ne, isUnpublishVisible: re, hasPublishedFolders: ie = !1, isPublishHistoryResolved: ae = !0, onRequestPublishHistory: oe, onOpenUnpublish: se, isReadonly: ce = !1 }) => {
|
|
1198
|
+
let { nameClassName: le = "dial-body-semi-text", folderLabelClassName: ue = "dial-tiny-text", folderLeafClassName: de = "dial-tiny-semi-text" } = D?.typography ?? {}, F = e.details?.limits?.status, fe = F == null ? void 0 : /* @__PURE__ */ W(Fn, {
|
|
1199
|
+
status: F,
|
|
1200
|
+
label: F === vt.LimitReached ? E?.limitReachedLabel ?? "Limit reached" : E?.limitRunningLowLabel ?? "Running low"
|
|
1199
1201
|
}), pe = A(() => {
|
|
1200
1202
|
t?.(e);
|
|
1201
|
-
}, [e, t]),
|
|
1203
|
+
}, [e, t]), me = A(() => {
|
|
1202
1204
|
l?.(e);
|
|
1203
1205
|
}, [e, l]), ge = A(() => {
|
|
1204
1206
|
ne?.();
|
|
1205
|
-
}, [ne]),
|
|
1207
|
+
}, [ne]), _e = A(() => {
|
|
1206
1208
|
se?.();
|
|
1207
1209
|
}, [se]), ye = A(() => {
|
|
1208
1210
|
u?.(e);
|
|
1209
|
-
}, [e, u]), [be, xe] =
|
|
1211
|
+
}, [e, u]), [be, xe] = P(!1);
|
|
1210
1212
|
j(() => {
|
|
1211
1213
|
xe(!1);
|
|
1212
1214
|
}, [e.id]);
|
|
@@ -1222,7 +1224,7 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1222
1224
|
e,
|
|
1223
1225
|
u,
|
|
1224
1226
|
be
|
|
1225
|
-
]), [Ce, we] =
|
|
1227
|
+
]), [Ce, we] = P(!1);
|
|
1226
1228
|
j(() => {
|
|
1227
1229
|
we(!1);
|
|
1228
1230
|
}, [e.id]);
|
|
@@ -1238,27 +1240,27 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1238
1240
|
a
|
|
1239
1241
|
]), Te = A(() => {
|
|
1240
1242
|
we(!1);
|
|
1241
|
-
}, []),
|
|
1243
|
+
}, []), Ee = A(() => {
|
|
1242
1244
|
m?.(e);
|
|
1243
1245
|
}, [e, m]), Ae = A(() => {
|
|
1244
1246
|
p?.(e);
|
|
1245
1247
|
}, [e, p]), je = A(() => {
|
|
1246
1248
|
g?.(e);
|
|
1247
|
-
}, [e, g]), [Me, Ne] =
|
|
1249
|
+
}, [e, g]), [Me, Ne] = P(En.Idle), [Pe, z] = P(void 0), Ie = N(null);
|
|
1248
1250
|
j(() => {
|
|
1249
|
-
Ie.current = null, Ne(
|
|
1251
|
+
Ie.current = null, Ne(En.Idle), z(void 0);
|
|
1250
1252
|
}, [e.id]);
|
|
1251
|
-
let
|
|
1253
|
+
let Le = A(() => {
|
|
1252
1254
|
if (!_ || Ie.current === e.id || !g || e.isMyApp !== !0 || v?.(e) === !1) return;
|
|
1253
1255
|
let t = e.id;
|
|
1254
|
-
Ie.current = t, Ne(
|
|
1256
|
+
Ie.current = t, Ne(En.Loading), (async () => {
|
|
1255
1257
|
try {
|
|
1256
1258
|
let n = await _(e);
|
|
1257
1259
|
if (Ie.current !== t) return;
|
|
1258
|
-
|
|
1260
|
+
z(n), Ne(n == null ? En.Unknown : En.Resolved);
|
|
1259
1261
|
} catch {
|
|
1260
1262
|
if (Ie.current !== t) return;
|
|
1261
|
-
|
|
1263
|
+
z(void 0), Ne(En.Unknown);
|
|
1262
1264
|
}
|
|
1263
1265
|
})();
|
|
1264
1266
|
}, [
|
|
@@ -1266,18 +1268,18 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1266
1268
|
_,
|
|
1267
1269
|
g,
|
|
1268
1270
|
v
|
|
1269
|
-
]),
|
|
1270
|
-
e && (
|
|
1271
|
-
}, [
|
|
1272
|
-
|
|
1273
|
-
}, [
|
|
1271
|
+
]), Re = A((e) => {
|
|
1272
|
+
e && (Le(), oe?.());
|
|
1273
|
+
}, [Le, oe]), B = A(() => {
|
|
1274
|
+
Le(), oe?.();
|
|
1275
|
+
}, [Le, oe]), ze = A(() => {
|
|
1274
1276
|
oe?.();
|
|
1275
|
-
}, [oe]),
|
|
1277
|
+
}, [oe]), Ve = E?.hasPrimaryAction !== !1 && (r?.(e) ?? (e.type === x.Model || e.type === x.Agent || e.type === x.Prompt)), He = !ce && !!se && ie && (re?.(e) ?? !0), We = !ce && !!se && !ae && re?.(e) === !0, Ge = !ce && !He && (O?.(e) ?? (e.type === x.Model || e.type === x.Toolset || e.type === x.Agent)), Ke = !ce && !!l && !!e.isEditable, Ye = !ce && e.isMyApp === !0 && (o?.(e) ?? !0), Xe = s?.(e) ?? !0, Qe = te?.(e) ?? !1, $e = e.credentials?.authenticationType ?? y.None, V = e.credentials != null && $e !== y.None ? c(e.credentials) : void 0, at = !ce && V != null && (!!S || !!C), ot = e.type === x.Toolset && at, ct = !!u && (d?.(e) ?? !0), H = ct && !ot && (f?.(e) ?? (e.type === x.Skill && !Ve)), ft = ct && !H, pt = !ce && e.isMyApp, mt = !ce && !!m && e.isMyApp !== !0 && e.sharedWithMe === !0 && (h?.(e) ?? !0), ht = !ce && !!g && e.isMyApp === !0 && (!_ || Me === En.Unknown || Me === En.Resolved && (Pe ?? 0) > 0) && (v?.(e) ?? !0), gt = M(() => {
|
|
1276
1278
|
let e = [];
|
|
1277
|
-
if (!
|
|
1279
|
+
if (!Xe && Ye && e.push({
|
|
1278
1280
|
key: "share",
|
|
1279
1281
|
label: E?.shareLabel ?? "Share",
|
|
1280
|
-
icon: /* @__PURE__ */
|
|
1282
|
+
icon: /* @__PURE__ */ W(it, {
|
|
1281
1283
|
size: I.SM,
|
|
1282
1284
|
"aria-hidden": !0,
|
|
1283
1285
|
className: "text-secondary",
|
|
@@ -1287,59 +1289,59 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1287
1289
|
}), Ke && e.push({
|
|
1288
1290
|
key: "edit",
|
|
1289
1291
|
label: E?.editActionLabel ?? "Edit",
|
|
1290
|
-
icon: /* @__PURE__ */
|
|
1292
|
+
icon: /* @__PURE__ */ W(nt, {
|
|
1291
1293
|
size: I.SM,
|
|
1292
1294
|
"aria-hidden": !0,
|
|
1293
1295
|
className: "text-secondary",
|
|
1294
1296
|
stroke: L
|
|
1295
1297
|
}),
|
|
1296
|
-
onClick:
|
|
1297
|
-
}),
|
|
1298
|
+
onClick: me
|
|
1299
|
+
}), ft && e.push({
|
|
1298
1300
|
key: "download",
|
|
1299
1301
|
label: E?.downloadActionLabel ?? "Download",
|
|
1300
|
-
icon: /* @__PURE__ */
|
|
1302
|
+
icon: /* @__PURE__ */ W(Je, {
|
|
1301
1303
|
size: I.SM,
|
|
1302
1304
|
"aria-hidden": !0,
|
|
1303
1305
|
className: "text-secondary",
|
|
1304
1306
|
stroke: L
|
|
1305
1307
|
}),
|
|
1306
1308
|
onClick: ye
|
|
1307
|
-
}), !
|
|
1309
|
+
}), !Qe && Ge && e.push({
|
|
1308
1310
|
key: "publish",
|
|
1309
1311
|
label: E?.publishLabel ?? "Publish",
|
|
1310
|
-
icon: /* @__PURE__ */
|
|
1312
|
+
icon: /* @__PURE__ */ W(dt, {
|
|
1311
1313
|
size: I.SM,
|
|
1312
1314
|
"aria-hidden": !0,
|
|
1313
1315
|
className: "text-secondary",
|
|
1314
1316
|
stroke: L
|
|
1315
1317
|
}),
|
|
1316
1318
|
onClick: ge
|
|
1317
|
-
}), !
|
|
1319
|
+
}), !Qe && He && e.push({
|
|
1318
1320
|
key: "unpublish",
|
|
1319
1321
|
label: E?.unpublishLabel ?? "Unpublish",
|
|
1320
|
-
icon: /* @__PURE__ */
|
|
1322
|
+
icon: /* @__PURE__ */ W(ut, {
|
|
1321
1323
|
size: I.SM,
|
|
1322
1324
|
"aria-hidden": !0,
|
|
1323
1325
|
className: "text-secondary",
|
|
1324
1326
|
stroke: L
|
|
1325
1327
|
}),
|
|
1326
|
-
onClick:
|
|
1327
|
-
}),
|
|
1328
|
+
onClick: _e
|
|
1329
|
+
}), pt && e.push({
|
|
1328
1330
|
key: "delete",
|
|
1329
1331
|
label: E?.deleteActionLabel ?? "Delete",
|
|
1330
|
-
icon: /* @__PURE__ */
|
|
1332
|
+
icon: /* @__PURE__ */ W(st, {
|
|
1331
1333
|
size: I.SM,
|
|
1332
1334
|
"aria-hidden": !0,
|
|
1333
1335
|
stroke: L
|
|
1334
1336
|
}),
|
|
1335
1337
|
danger: !0,
|
|
1336
1338
|
onClick: Ae
|
|
1337
|
-
}),
|
|
1339
|
+
}), ht) {
|
|
1338
1340
|
let t = E?.revokeShareLabel ?? "Revoke access", n = E?.revokeShareLabelWithCount ?? ((e) => `${t} (${e})`);
|
|
1339
1341
|
e.push({
|
|
1340
1342
|
key: "revoke-share",
|
|
1341
1343
|
label: Pe == null ? t : n(Pe),
|
|
1342
|
-
icon: /* @__PURE__ */
|
|
1344
|
+
icon: /* @__PURE__ */ W(lt, {
|
|
1343
1345
|
size: I.SM,
|
|
1344
1346
|
"aria-hidden": !0,
|
|
1345
1347
|
stroke: L
|
|
@@ -1348,121 +1350,121 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1348
1350
|
onClick: je
|
|
1349
1351
|
});
|
|
1350
1352
|
}
|
|
1351
|
-
return
|
|
1353
|
+
return mt && e.push({
|
|
1352
1354
|
key: "unshare",
|
|
1353
1355
|
label: E?.unshareLabel ?? "Remove from My List",
|
|
1354
|
-
icon: /* @__PURE__ */
|
|
1356
|
+
icon: /* @__PURE__ */ W(st, {
|
|
1355
1357
|
size: I.SM,
|
|
1356
1358
|
"aria-hidden": !0,
|
|
1357
1359
|
stroke: L
|
|
1358
1360
|
}),
|
|
1359
|
-
onClick:
|
|
1361
|
+
onClick: Ee
|
|
1360
1362
|
}), e;
|
|
1361
1363
|
}, [
|
|
1364
|
+
Xe,
|
|
1362
1365
|
Ye,
|
|
1363
|
-
qe,
|
|
1364
1366
|
Ke,
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
dt,
|
|
1367
|
+
ft,
|
|
1368
|
+
Qe,
|
|
1369
|
+
Ge,
|
|
1370
|
+
He,
|
|
1370
1371
|
pt,
|
|
1372
|
+
ht,
|
|
1371
1373
|
Pe,
|
|
1372
|
-
|
|
1374
|
+
mt,
|
|
1373
1375
|
E,
|
|
1374
1376
|
R,
|
|
1375
|
-
|
|
1377
|
+
me,
|
|
1376
1378
|
ye,
|
|
1377
1379
|
ge,
|
|
1378
|
-
|
|
1380
|
+
_e,
|
|
1379
1381
|
Ae,
|
|
1380
1382
|
je,
|
|
1381
|
-
|
|
1382
|
-
]), [
|
|
1383
|
-
if (
|
|
1383
|
+
Ee
|
|
1384
|
+
]), [_t, K] = P(!1), q = $e === y.ApiKey && V !== n.ManageCredentials, J = $e === y.ApiKey && V === n.LogOut, yt = $e !== y.ApiKey && V !== n.ManageCredentials && V === n.LogOut, Y = A(() => {
|
|
1385
|
+
if (V === n.ManageCredentials) {
|
|
1384
1386
|
T?.();
|
|
1385
1387
|
return;
|
|
1386
1388
|
}
|
|
1387
|
-
if (
|
|
1388
|
-
|
|
1389
|
+
if (q) {
|
|
1390
|
+
K((e) => !e);
|
|
1389
1391
|
return;
|
|
1390
1392
|
}
|
|
1391
|
-
if (
|
|
1393
|
+
if (V === n.LogOut) {
|
|
1392
1394
|
ee?.();
|
|
1393
1395
|
return;
|
|
1394
1396
|
}
|
|
1395
1397
|
S?.(e, { level: b.User });
|
|
1396
1398
|
}, [
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
+
V,
|
|
1400
|
+
q,
|
|
1399
1401
|
e,
|
|
1400
1402
|
S,
|
|
1401
1403
|
T,
|
|
1402
1404
|
ee
|
|
1403
|
-
]),
|
|
1405
|
+
]), bt = V === n.ManageCredentials ? (E?.manageCredentialsActionLabel ?? Nn)($e) : $e === y.ApiKey ? V === n.LogOut ? E?.changeApiKeyActionLabel ?? "Change API key" : E?.apiKeyActionLabel ?? "API key" : V === n.LogOut ? E?.logoutActionLabel ?? "Log out" : E?.loginActionLabel ?? "Log in", xt = V === n.ManageCredentials || $e === y.ApiKey ? /* @__PURE__ */ W(Ze, {
|
|
1404
1406
|
size: I.MD,
|
|
1405
1407
|
stroke: L
|
|
1406
|
-
}) :
|
|
1408
|
+
}) : V === n.LogOut ? /* @__PURE__ */ W(tt, {
|
|
1407
1409
|
size: I.MD,
|
|
1408
1410
|
stroke: L
|
|
1409
|
-
}) : /* @__PURE__ */
|
|
1411
|
+
}) : /* @__PURE__ */ W(et, {
|
|
1410
1412
|
size: I.MD,
|
|
1411
1413
|
stroke: L
|
|
1412
|
-
}),
|
|
1414
|
+
}), St = V === n.ManageCredentials ? /* @__PURE__ */ W(Be, {
|
|
1413
1415
|
size: I.MD,
|
|
1414
1416
|
className: "rtl:scale-x-[-1]",
|
|
1415
1417
|
stroke: L
|
|
1416
|
-
}) :
|
|
1418
|
+
}) : q ? /* @__PURE__ */ W(Ue, {
|
|
1417
1419
|
size: I.MD,
|
|
1418
1420
|
stroke: L
|
|
1419
|
-
}) : void 0,
|
|
1420
|
-
let n = /* @__PURE__ */
|
|
1421
|
-
label:
|
|
1422
|
-
iconBefore:
|
|
1423
|
-
iconAfter:
|
|
1424
|
-
onClick:
|
|
1425
|
-
"aria-haspopup":
|
|
1426
|
-
"aria-expanded":
|
|
1421
|
+
}) : void 0, Ct = (t) => {
|
|
1422
|
+
let n = /* @__PURE__ */ W(t, {
|
|
1423
|
+
label: bt,
|
|
1424
|
+
iconBefore: xt,
|
|
1425
|
+
iconAfter: St,
|
|
1426
|
+
onClick: Y,
|
|
1427
|
+
"aria-haspopup": q ? "dialog" : void 0,
|
|
1428
|
+
"aria-expanded": q ? _t : void 0
|
|
1427
1429
|
});
|
|
1428
|
-
return !
|
|
1430
|
+
return !q || e.credentials == null ? n : /* @__PURE__ */ W(he, {
|
|
1429
1431
|
placement: "bottom-start",
|
|
1430
1432
|
matchReferenceWidth: !1,
|
|
1431
|
-
open:
|
|
1432
|
-
onOpenChange:
|
|
1433
|
+
open: _t,
|
|
1434
|
+
onOpenChange: K,
|
|
1433
1435
|
trigger: [],
|
|
1434
1436
|
outsideClosable: !0,
|
|
1435
|
-
renderOverlay: () => /* @__PURE__ */
|
|
1437
|
+
renderOverlay: () => /* @__PURE__ */ W(kn, {
|
|
1436
1438
|
item: e,
|
|
1437
1439
|
level: b.User,
|
|
1438
1440
|
status: e.credentials?.userStatus,
|
|
1439
1441
|
apiKeyAddedWhen: e.credentials?.userApiKeyAddedWhen,
|
|
1440
1442
|
onLogin: S,
|
|
1441
1443
|
onLogout: C,
|
|
1442
|
-
onClose: () =>
|
|
1444
|
+
onClose: () => K(!1),
|
|
1443
1445
|
texts: E
|
|
1444
1446
|
}),
|
|
1445
1447
|
children: n
|
|
1446
1448
|
});
|
|
1447
|
-
},
|
|
1448
|
-
let t = /* @__PURE__ */
|
|
1449
|
-
items:
|
|
1449
|
+
}, wt = () => {
|
|
1450
|
+
let t = /* @__PURE__ */ W(he, {
|
|
1451
|
+
items: gt,
|
|
1450
1452
|
placement: "bottom-end",
|
|
1451
1453
|
matchReferenceWidth: !1,
|
|
1452
|
-
onOpenChange:
|
|
1453
|
-
children: /* @__PURE__ */
|
|
1454
|
-
icon: /* @__PURE__ */
|
|
1454
|
+
onOpenChange: Re,
|
|
1455
|
+
children: /* @__PURE__ */ W(Oe, {
|
|
1456
|
+
icon: /* @__PURE__ */ W(qe, {
|
|
1455
1457
|
size: I.LG,
|
|
1456
1458
|
"aria-hidden": !0,
|
|
1457
1459
|
stroke: L
|
|
1458
1460
|
}),
|
|
1459
1461
|
"aria-label": E?.manageActionLabel ?? "Manage",
|
|
1460
1462
|
"aria-haspopup": "menu",
|
|
1461
|
-
onMouseEnter:
|
|
1462
|
-
onFocus:
|
|
1463
|
+
onMouseEnter: B,
|
|
1464
|
+
onFocus: B
|
|
1463
1465
|
})
|
|
1464
1466
|
});
|
|
1465
|
-
return
|
|
1467
|
+
return Xe || !a || !Ye ? t : /* @__PURE__ */ W(he, {
|
|
1466
1468
|
placement: "bottom-end",
|
|
1467
1469
|
matchReferenceWidth: !1,
|
|
1468
1470
|
open: Ce,
|
|
@@ -1472,37 +1474,37 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1472
1474
|
renderOverlay: () => a(e, Te),
|
|
1473
1475
|
children: t
|
|
1474
1476
|
});
|
|
1475
|
-
},
|
|
1476
|
-
return /* @__PURE__ */
|
|
1477
|
+
}, X = ot || Ve || H || Xe && Ye || Qe && He || Qe && Ge || at && !ot || gt.length > 0 || We;
|
|
1478
|
+
return /* @__PURE__ */ G("div", {
|
|
1477
1479
|
className: "flex flex-col gap-3 px-6 py-4",
|
|
1478
|
-
children: [/* @__PURE__ */
|
|
1480
|
+
children: [/* @__PURE__ */ W(w, {
|
|
1479
1481
|
item: e,
|
|
1480
1482
|
iconSize: 52,
|
|
1481
|
-
nameClassName: k(
|
|
1483
|
+
nameClassName: k(le, An.name),
|
|
1482
1484
|
featuredLabel: E?.featuredLabel ?? "Featured",
|
|
1483
1485
|
featuredChipStyle: D?.colors?.featuredChipStyle,
|
|
1484
1486
|
statusBadge: fe,
|
|
1485
|
-
footer: e.folder.length > 0 ? /* @__PURE__ */
|
|
1487
|
+
footer: e.folder.length > 0 ? /* @__PURE__ */ W(ve, {
|
|
1486
1488
|
segments: e.folder,
|
|
1487
|
-
labelClassName:
|
|
1488
|
-
leafClassName:
|
|
1489
|
+
labelClassName: ue,
|
|
1490
|
+
leafClassName: de
|
|
1489
1491
|
}) : void 0
|
|
1490
|
-
}),
|
|
1492
|
+
}), X && /* @__PURE__ */ G("div", {
|
|
1491
1493
|
className: "flex flex-wrap items-center gap-2 ps-[60px]",
|
|
1492
1494
|
children: [
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
+
ot && Ct(J || yt ? De : ke),
|
|
1496
|
+
Ve && /* @__PURE__ */ W(ke, {
|
|
1495
1497
|
label: E?.primaryActionLabel ?? "Use in chat",
|
|
1496
|
-
iconBefore: /* @__PURE__ */
|
|
1498
|
+
iconBefore: /* @__PURE__ */ W(rt, { size: I.MD }),
|
|
1497
1499
|
onClick: pe,
|
|
1498
|
-
disabled:
|
|
1500
|
+
disabled: F === vt.LimitReached
|
|
1499
1501
|
}),
|
|
1500
|
-
|
|
1502
|
+
H && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(ke, {
|
|
1501
1503
|
label: E?.downloadActionLabel ?? "Download",
|
|
1502
|
-
iconBefore: be ? /* @__PURE__ */
|
|
1504
|
+
iconBefore: be ? /* @__PURE__ */ W(Fe, {
|
|
1503
1505
|
size: I.MD,
|
|
1504
1506
|
"aria-hidden": !0
|
|
1505
|
-
}) : /* @__PURE__ */
|
|
1507
|
+
}) : /* @__PURE__ */ W(Je, {
|
|
1506
1508
|
size: I.MD,
|
|
1507
1509
|
"aria-hidden": !0,
|
|
1508
1510
|
stroke: L
|
|
@@ -1510,51 +1512,51 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1510
1512
|
onClick: Se,
|
|
1511
1513
|
disabled: be,
|
|
1512
1514
|
"aria-busy": be
|
|
1513
|
-
}), be && /* @__PURE__ */
|
|
1515
|
+
}), be && /* @__PURE__ */ W("span", {
|
|
1514
1516
|
role: "status",
|
|
1515
1517
|
"aria-live": "polite",
|
|
1516
1518
|
className: "sr-only",
|
|
1517
1519
|
children: E?.downloadingStatusLabel ?? "Downloading"
|
|
1518
1520
|
})] }),
|
|
1519
|
-
|
|
1521
|
+
Xe && Ye && /* @__PURE__ */ W(Mn, {
|
|
1520
1522
|
item: e,
|
|
1521
1523
|
onShare: i,
|
|
1522
1524
|
shareOverlay: a,
|
|
1523
1525
|
isShareVisible: o,
|
|
1524
1526
|
label: E?.shareLabel
|
|
1525
1527
|
}),
|
|
1526
|
-
|
|
1528
|
+
Qe && He && /* @__PURE__ */ W(De, {
|
|
1527
1529
|
label: E?.unpublishLabel ?? "Unpublish",
|
|
1528
|
-
iconBefore: /* @__PURE__ */
|
|
1530
|
+
iconBefore: /* @__PURE__ */ W(ut, {
|
|
1529
1531
|
size: I.MD,
|
|
1530
1532
|
"aria-hidden": !0,
|
|
1531
1533
|
stroke: L
|
|
1532
1534
|
}),
|
|
1533
|
-
onClick:
|
|
1534
|
-
onMouseEnter:
|
|
1535
|
-
onFocus:
|
|
1535
|
+
onClick: _e,
|
|
1536
|
+
onMouseEnter: ze,
|
|
1537
|
+
onFocus: ze
|
|
1536
1538
|
}),
|
|
1537
|
-
|
|
1539
|
+
Qe && Ge && /* @__PURE__ */ W(De, {
|
|
1538
1540
|
label: E?.publishLabel ?? "Publish",
|
|
1539
|
-
iconBefore: /* @__PURE__ */
|
|
1541
|
+
iconBefore: /* @__PURE__ */ W(dt, {
|
|
1540
1542
|
size: I.MD,
|
|
1541
1543
|
"aria-hidden": !0,
|
|
1542
1544
|
stroke: L
|
|
1543
1545
|
}),
|
|
1544
1546
|
onClick: ge,
|
|
1545
|
-
onMouseEnter:
|
|
1546
|
-
onFocus:
|
|
1547
|
+
onMouseEnter: ze,
|
|
1548
|
+
onFocus: ze
|
|
1547
1549
|
}),
|
|
1548
|
-
|
|
1549
|
-
(
|
|
1550
|
+
at && !ot && Ct(De),
|
|
1551
|
+
(gt.length > 0 || We) && wt()
|
|
1550
1552
|
]
|
|
1551
1553
|
})]
|
|
1552
1554
|
});
|
|
1553
|
-
},
|
|
1555
|
+
}, Ln = ({ topics: e, content: t, detailsStyles: n }) => {
|
|
1554
1556
|
let r = n?.typography?.contentHeadingClassName ?? "dial-small-semi-text", i = n?.typography?.contentClassName ?? "dial-small-text";
|
|
1555
|
-
return /* @__PURE__ */
|
|
1557
|
+
return /* @__PURE__ */ G("div", {
|
|
1556
1558
|
className: "flex flex-col gap-5",
|
|
1557
|
-
children: [/* @__PURE__ */
|
|
1559
|
+
children: [/* @__PURE__ */ W(O, {
|
|
1558
1560
|
content: t,
|
|
1559
1561
|
classNames: {
|
|
1560
1562
|
h1: r,
|
|
@@ -1567,23 +1569,23 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1567
1569
|
ul: i,
|
|
1568
1570
|
ol: i
|
|
1569
1571
|
}
|
|
1570
|
-
}), e && e.length > 0 && /* @__PURE__ */
|
|
1572
|
+
}), e && e.length > 0 && /* @__PURE__ */ W("div", {
|
|
1571
1573
|
className: "flex flex-wrap gap-2",
|
|
1572
|
-
children: e.map((e) => /* @__PURE__ */
|
|
1574
|
+
children: e.map((e) => /* @__PURE__ */ W($, { label: e }, e))
|
|
1573
1575
|
})]
|
|
1574
1576
|
});
|
|
1575
|
-
},
|
|
1577
|
+
}, Rn = {
|
|
1576
1578
|
divider: "_divider_1gzl9_1",
|
|
1577
1579
|
fileCount: "_fileCount_1gzl9_5",
|
|
1578
1580
|
body: "_body_1gzl9_9"
|
|
1579
|
-
},
|
|
1581
|
+
}, zn = (e, t, n = void 0) => e.flatMap((e) => {
|
|
1580
1582
|
let r = {
|
|
1581
1583
|
node: e,
|
|
1582
1584
|
parentId: n
|
|
1583
1585
|
};
|
|
1584
|
-
return e.type ===
|
|
1585
|
-
}),
|
|
1586
|
-
let c =
|
|
1586
|
+
return e.type === bt.File || !t.has(e.id) ? [r] : [r, ...zn(e.items, t, e.id)];
|
|
1587
|
+
}), Bn = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
|
|
1588
|
+
let c = M(() => zn(e, n), [e, n]), l = N({}), [u, d] = P(() => t ?? c[0]?.node.id);
|
|
1587
1589
|
j(() => {
|
|
1588
1590
|
u != null && l.current[u]?.focus();
|
|
1589
1591
|
}, []);
|
|
@@ -1607,14 +1609,14 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1607
1609
|
break;
|
|
1608
1610
|
}
|
|
1609
1611
|
case "ArrowRight":
|
|
1610
|
-
e.preventDefault(), o.node.type ===
|
|
1612
|
+
e.preventDefault(), o.node.type === bt.Folder && !n.has(o.node.id) && r(o.node.id);
|
|
1611
1613
|
break;
|
|
1612
1614
|
case "ArrowLeft":
|
|
1613
|
-
e.preventDefault(), o.node.type ===
|
|
1615
|
+
e.preventDefault(), o.node.type === bt.Folder && n.has(o.node.id) ? r(o.node.id) : o.parentId != null && f(o.parentId);
|
|
1614
1616
|
break;
|
|
1615
1617
|
case "Enter":
|
|
1616
1618
|
case " ":
|
|
1617
|
-
e.preventDefault(), o.node.type ===
|
|
1619
|
+
e.preventDefault(), o.node.type === bt.Folder ? r(o.node.id) : i(o.node.id);
|
|
1618
1620
|
break;
|
|
1619
1621
|
case "Escape":
|
|
1620
1622
|
e.preventDefault(), a();
|
|
@@ -1623,9 +1625,9 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1623
1625
|
}
|
|
1624
1626
|
}, m = (e) => k("flex h-10 shrink-0 cursor-pointer items-center gap-2 rounded-2 px-3 outline-none", "hover:bg-control-accent-alpha-hover focus-visible:bg-control-accent-alpha-hover", e && "bg-control-accent-alpha-hover"), h = (e) => {
|
|
1625
1627
|
let a = e.id === u;
|
|
1626
|
-
if (e.type ===
|
|
1628
|
+
if (e.type === bt.File) {
|
|
1627
1629
|
let n = e.id === t;
|
|
1628
|
-
return /* @__PURE__ */
|
|
1630
|
+
return /* @__PURE__ */ W("div", {
|
|
1629
1631
|
ref: (t) => {
|
|
1630
1632
|
l.current[e.id] = t;
|
|
1631
1633
|
},
|
|
@@ -1635,14 +1637,14 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1635
1637
|
className: k(m(a), n && "bg-control-accent-alpha-active"),
|
|
1636
1638
|
onClick: () => i(e.id),
|
|
1637
1639
|
onFocus: () => d(e.id),
|
|
1638
|
-
children: /* @__PURE__ */
|
|
1640
|
+
children: /* @__PURE__ */ W("span", {
|
|
1639
1641
|
className: k("min-w-0 flex-1 truncate", s),
|
|
1640
1642
|
children: e.name
|
|
1641
1643
|
})
|
|
1642
1644
|
}, e.id);
|
|
1643
1645
|
}
|
|
1644
1646
|
let o = n.has(e.id);
|
|
1645
|
-
return /* @__PURE__ */
|
|
1647
|
+
return /* @__PURE__ */ G("div", { children: [/* @__PURE__ */ G("div", {
|
|
1646
1648
|
ref: (t) => {
|
|
1647
1649
|
l.current[e.id] = t;
|
|
1648
1650
|
},
|
|
@@ -1653,58 +1655,58 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1653
1655
|
onClick: () => r(e.id),
|
|
1654
1656
|
onFocus: () => d(e.id),
|
|
1655
1657
|
children: [
|
|
1656
|
-
/* @__PURE__ */
|
|
1658
|
+
/* @__PURE__ */ W(Xe, {
|
|
1657
1659
|
size: I.SM,
|
|
1658
1660
|
className: "shrink-0",
|
|
1659
1661
|
"aria-hidden": !0,
|
|
1660
1662
|
stroke: L
|
|
1661
1663
|
}),
|
|
1662
|
-
/* @__PURE__ */
|
|
1664
|
+
/* @__PURE__ */ W("span", {
|
|
1663
1665
|
className: k("min-w-0 flex-1 truncate", s),
|
|
1664
1666
|
children: e.name
|
|
1665
1667
|
}),
|
|
1666
|
-
/* @__PURE__ */
|
|
1668
|
+
/* @__PURE__ */ W(Ue, {
|
|
1667
1669
|
size: I.SM,
|
|
1668
1670
|
className: k("shrink-0 transition-transform", !o && "-rotate-90 rtl:rotate-90"),
|
|
1669
1671
|
"aria-hidden": !0,
|
|
1670
1672
|
stroke: L
|
|
1671
1673
|
})
|
|
1672
1674
|
]
|
|
1673
|
-
}), o && e.items.length > 0 && /* @__PURE__ */
|
|
1675
|
+
}), o && e.items.length > 0 && /* @__PURE__ */ W("div", {
|
|
1674
1676
|
role: "group",
|
|
1675
1677
|
className: "ps-6",
|
|
1676
1678
|
children: e.items.map((e) => h(e))
|
|
1677
1679
|
})] }, e.id);
|
|
1678
1680
|
};
|
|
1679
|
-
return /* @__PURE__ */
|
|
1681
|
+
return /* @__PURE__ */ W("div", {
|
|
1680
1682
|
role: "tree",
|
|
1681
1683
|
"aria-label": o,
|
|
1682
1684
|
onKeyDown: p,
|
|
1683
1685
|
children: e.map((e) => h(e))
|
|
1684
1686
|
});
|
|
1685
|
-
},
|
|
1686
|
-
let _ = g?.typography?.contentClassName ?? "dial-small-text", v = g?.typography?.contentHeadingClassName ?? "dial-small-semi-text", y = g?.typography?.contentFileCountClassName ?? "dial-tiny-text", b = t != null && t !== "", x = n ?? [], S =
|
|
1687
|
+
}, Vn = () => void 0, Hn = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = Vn, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = Vn, fileSelectorAriaLabel: u = "Select file", fileCountLabel: d = (e) => `${e} files`, fileLoadingLabel: f = "Loading file", fileUnsupportedLabel: p = "Preview is not supported for this file", filePreview: m, filePreviewContent: h, detailsStyles: g }) => {
|
|
1688
|
+
let _ = g?.typography?.contentClassName ?? "dial-small-text", v = g?.typography?.contentHeadingClassName ?? "dial-small-semi-text", y = g?.typography?.contentFileCountClassName ?? "dial-tiny-text", b = t != null && t !== "", x = n ?? [], S = Kt(x) > 1, C = Jt(x, r) ?? "", w = (e) => {
|
|
1687
1689
|
i?.(e), l(!1);
|
|
1688
1690
|
}, T = a ? {
|
|
1689
|
-
type:
|
|
1691
|
+
type: xt.Text,
|
|
1690
1692
|
text: ""
|
|
1691
1693
|
} : m ?? {
|
|
1692
|
-
type:
|
|
1694
|
+
type: xt.Markdown,
|
|
1693
1695
|
text: e
|
|
1694
1696
|
};
|
|
1695
|
-
return /* @__PURE__ */
|
|
1697
|
+
return /* @__PURE__ */ G("div", {
|
|
1696
1698
|
className: "flex h-full flex-col gap-4 pb-6",
|
|
1697
1699
|
children: [
|
|
1698
|
-
S && /* @__PURE__ */
|
|
1700
|
+
S && /* @__PURE__ */ G("div", {
|
|
1699
1701
|
className: "flex shrink-0 items-center gap-3",
|
|
1700
|
-
children: [/* @__PURE__ */
|
|
1702
|
+
children: [/* @__PURE__ */ W(he, {
|
|
1701
1703
|
open: c,
|
|
1702
1704
|
onOpenChange: l,
|
|
1703
1705
|
trigger: [],
|
|
1704
1706
|
matchReferenceWidth: !1,
|
|
1705
1707
|
listClassName: "w-[280px]",
|
|
1706
1708
|
placement: "bottom-start",
|
|
1707
|
-
renderOverlay: () => /* @__PURE__ */
|
|
1709
|
+
renderOverlay: () => /* @__PURE__ */ W(Bn, {
|
|
1708
1710
|
nodes: x,
|
|
1709
1711
|
selectedFileId: r,
|
|
1710
1712
|
expandedFolderIds: o,
|
|
@@ -1714,45 +1716,45 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1714
1716
|
ariaLabel: u,
|
|
1715
1717
|
rowNameClassName: _
|
|
1716
1718
|
}),
|
|
1717
|
-
children: /* @__PURE__ */
|
|
1719
|
+
children: /* @__PURE__ */ W(Ce, {
|
|
1718
1720
|
label: C,
|
|
1719
|
-
size:
|
|
1721
|
+
size: ge.Small,
|
|
1720
1722
|
isOpen: c,
|
|
1721
1723
|
onClick: () => l(!c)
|
|
1722
1724
|
})
|
|
1723
|
-
}), /* @__PURE__ */
|
|
1724
|
-
className: k("shrink-0", y,
|
|
1725
|
-
children: d(
|
|
1725
|
+
}), /* @__PURE__ */ W("span", {
|
|
1726
|
+
className: k("shrink-0", y, Rn.fileCount),
|
|
1727
|
+
children: d(Kt(x))
|
|
1726
1728
|
})]
|
|
1727
1729
|
}),
|
|
1728
|
-
b && /* @__PURE__ */
|
|
1730
|
+
b && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("p", {
|
|
1729
1731
|
className: k("m-0", _),
|
|
1730
1732
|
children: t
|
|
1731
|
-
}), /* @__PURE__ */
|
|
1732
|
-
/* @__PURE__ */
|
|
1733
|
-
className: k("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null &&
|
|
1734
|
-
children: [a && /* @__PURE__ */
|
|
1733
|
+
}), /* @__PURE__ */ W("div", { className: k("shrink-0", Rn.divider) })] }),
|
|
1734
|
+
/* @__PURE__ */ G("div", {
|
|
1735
|
+
className: k("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && Rn.body, h == null && _),
|
|
1736
|
+
children: [a && /* @__PURE__ */ W("span", {
|
|
1735
1737
|
role: "status",
|
|
1736
1738
|
className: "sr-only",
|
|
1737
1739
|
children: f
|
|
1738
1740
|
}), (() => {
|
|
1739
1741
|
if (h != null) return h;
|
|
1740
1742
|
switch (T.type) {
|
|
1741
|
-
case
|
|
1743
|
+
case xt.Markdown: return /* @__PURE__ */ W(te, {
|
|
1742
1744
|
content: T.text,
|
|
1743
1745
|
headingClassName: v
|
|
1744
1746
|
});
|
|
1745
|
-
case
|
|
1747
|
+
case xt.Text: return /* @__PURE__ */ W(D, {
|
|
1746
1748
|
language: T.language ?? "",
|
|
1747
1749
|
value: T.text,
|
|
1748
1750
|
hideDownload: !0
|
|
1749
1751
|
});
|
|
1750
|
-
case
|
|
1752
|
+
case xt.Image: return /* @__PURE__ */ W("img", {
|
|
1751
1753
|
src: T.url,
|
|
1752
1754
|
alt: C,
|
|
1753
1755
|
className: "max-w-full"
|
|
1754
1756
|
});
|
|
1755
|
-
case
|
|
1757
|
+
case xt.Unsupported: return /* @__PURE__ */ W("p", {
|
|
1756
1758
|
className: "m-0",
|
|
1757
1759
|
children: p
|
|
1758
1760
|
});
|
|
@@ -1761,12 +1763,12 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1761
1763
|
})
|
|
1762
1764
|
]
|
|
1763
1765
|
});
|
|
1764
|
-
},
|
|
1766
|
+
}, Un = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), Wn = /* @__PURE__ */ function(e) {
|
|
1765
1767
|
return e.Default = "default", e.Warning = "warning", e.Danger = "danger", e;
|
|
1766
|
-
}({}),
|
|
1767
|
-
let t =
|
|
1768
|
+
}({}), Gn = (e) => !Number.isFinite(e.used) || !Number.isFinite(e.total) ? 0 : Math.min(Math.max(e.used, 0), Math.max(e.total, 0)), Kn = (e) => Number.isFinite(e) && e > 0 ? e : 1, qn = ({ used: e, total: t, valueLabel: n }) => n ?? `${Un.format(e)} / ${Un.format(t)}`, Jn = ({ total: e }) => Number.isFinite(e) && e > 0, Yn = (e) => e.isUnlimited !== !0 && Jn(e), Xn = (e) => Jn(e) ? Math.max(e.used, 0) / e.total : 0, Zn = (e) => {
|
|
1769
|
+
let t = Xn(e);
|
|
1768
1770
|
return t >= 1 ? "danger" : t >= .75 ? "warning" : "default";
|
|
1769
|
-
},
|
|
1771
|
+
}, Qn = {
|
|
1770
1772
|
sectionHeading: "_sectionHeading_ltnqp_1",
|
|
1771
1773
|
label: "_label_ltnqp_5",
|
|
1772
1774
|
valuePrimary: "_valuePrimary_ltnqp_9",
|
|
@@ -1775,58 +1777,58 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1775
1777
|
progressFillDefault: "_progressFillDefault_ltnqp_24",
|
|
1776
1778
|
progressFillWarning: "_progressFillWarning_ltnqp_28",
|
|
1777
1779
|
progressFillDanger: "_progressFillDanger_ltnqp_32"
|
|
1778
|
-
},
|
|
1779
|
-
let o =
|
|
1780
|
-
return /* @__PURE__ */
|
|
1781
|
-
className: k("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0",
|
|
1782
|
-
children: [/* @__PURE__ */
|
|
1780
|
+
}, $n = ({ row: e, labelClassName: t, captionClassName: n, valueClassName: r, noteValueClassName: i, noteClassName: a }) => {
|
|
1781
|
+
let o = qn(e);
|
|
1782
|
+
return /* @__PURE__ */ G("li", {
|
|
1783
|
+
className: k("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", Qn.divider),
|
|
1784
|
+
children: [/* @__PURE__ */ G("div", {
|
|
1783
1785
|
className: "flex min-w-0 flex-1 flex-col",
|
|
1784
|
-
children: [/* @__PURE__ */
|
|
1785
|
-
className: k("break-words", t,
|
|
1786
|
+
children: [/* @__PURE__ */ W("span", {
|
|
1787
|
+
className: k("break-words", t, Qn.label),
|
|
1786
1788
|
children: e.label
|
|
1787
|
-
}), e.captionLabel != null && /* @__PURE__ */
|
|
1788
|
-
className: k("break-words", n,
|
|
1789
|
+
}), e.captionLabel != null && /* @__PURE__ */ W("span", {
|
|
1790
|
+
className: k("break-words", n, Qn.label),
|
|
1789
1791
|
children: e.captionLabel
|
|
1790
1792
|
})]
|
|
1791
|
-
}),
|
|
1793
|
+
}), Yn(e) ? /* @__PURE__ */ G("div", {
|
|
1792
1794
|
className: "flex w-32 shrink-0 flex-col items-end gap-2",
|
|
1793
|
-
children: [/* @__PURE__ */
|
|
1795
|
+
children: [/* @__PURE__ */ W("div", {
|
|
1794
1796
|
className: k("flex gap-1", r),
|
|
1795
|
-
children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */
|
|
1796
|
-
className:
|
|
1797
|
+
children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("span", {
|
|
1798
|
+
className: Qn.valuePrimary,
|
|
1797
1799
|
children: e.usedLabel
|
|
1798
|
-
}), /* @__PURE__ */
|
|
1799
|
-
className:
|
|
1800
|
+
}), /* @__PURE__ */ W("span", {
|
|
1801
|
+
className: Qn.label,
|
|
1800
1802
|
children: ` / ${e.totalLabel}`
|
|
1801
|
-
})] }) : /* @__PURE__ */
|
|
1802
|
-
className:
|
|
1803
|
+
})] }) : /* @__PURE__ */ W("span", {
|
|
1804
|
+
className: Qn.label,
|
|
1803
1805
|
children: o
|
|
1804
1806
|
})
|
|
1805
|
-
}), /* @__PURE__ */
|
|
1806
|
-
value:
|
|
1807
|
-
max:
|
|
1808
|
-
size:
|
|
1809
|
-
className: k("!h-1 w-full",
|
|
1807
|
+
}), /* @__PURE__ */ W(Ae, {
|
|
1808
|
+
value: Gn(e),
|
|
1809
|
+
max: Kn(e.total),
|
|
1810
|
+
size: ge.Small,
|
|
1811
|
+
className: k("!h-1 w-full", Qn.progressTrack, Zn(e) === Wn.Default && Qn.progressFillDefault, Zn(e) === Wn.Warning && Qn.progressFillWarning, Zn(e) === Wn.Danger && Qn.progressFillDanger),
|
|
1810
1812
|
"aria-label": e.label,
|
|
1811
1813
|
"aria-valuetext": e.ariaLabel ?? o
|
|
1812
1814
|
})]
|
|
1813
|
-
}) : /* @__PURE__ */
|
|
1815
|
+
}) : /* @__PURE__ */ G("div", {
|
|
1814
1816
|
className: "flex shrink-0 flex-col items-end",
|
|
1815
|
-
children: [/* @__PURE__ */
|
|
1816
|
-
className: k(i,
|
|
1817
|
+
children: [/* @__PURE__ */ W("span", {
|
|
1818
|
+
className: k(i, Qn.valuePrimary),
|
|
1817
1819
|
children: o
|
|
1818
|
-
}), e.noteLabel != null && /* @__PURE__ */
|
|
1819
|
-
className: k(a,
|
|
1820
|
+
}), e.noteLabel != null && /* @__PURE__ */ W("span", {
|
|
1821
|
+
className: k(a, Qn.label),
|
|
1820
1822
|
children: e.noteLabel
|
|
1821
1823
|
})]
|
|
1822
1824
|
})]
|
|
1823
1825
|
});
|
|
1824
|
-
},
|
|
1825
|
-
className: k("mb-3 mt-0", t,
|
|
1826
|
+
}, er = ({ group: e, sectionClassName: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ W("p", {
|
|
1827
|
+
className: k("mb-3 mt-0", t, Qn.sectionHeading),
|
|
1826
1828
|
children: e.label
|
|
1827
|
-
}), /* @__PURE__ */
|
|
1829
|
+
}), /* @__PURE__ */ W("ul", {
|
|
1828
1830
|
className: "m-0 flex list-none flex-col p-0",
|
|
1829
|
-
children: e.rows.map((e) => /* @__PURE__ */
|
|
1831
|
+
children: e.rows.map((e) => /* @__PURE__ */ W($n, {
|
|
1830
1832
|
row: e,
|
|
1831
1833
|
labelClassName: n,
|
|
1832
1834
|
captionClassName: r,
|
|
@@ -1834,9 +1836,9 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1834
1836
|
noteValueClassName: a,
|
|
1835
1837
|
noteClassName: o
|
|
1836
1838
|
}, e.label))
|
|
1837
|
-
})] }),
|
|
1839
|
+
})] }), tr = ({ limits: e, labelClassName: t = "dial-small-semi-text", captionClassName: n = "dial-caption-text", valueClassName: r = "dial-tiny-text", noteValueClassName: i = "dial-tiny-semi-text", noteClassName: a = "dial-caption-text", sectionClassName: o = "dial-caption-text", footerClassName: s = "dial-caption-text", footerNote: c, colors: l }) => {
|
|
1838
1840
|
let u = e?.groups.filter((e) => e.rows.length > 0);
|
|
1839
|
-
return u == null || u.length === 0 ? null : /* @__PURE__ */
|
|
1841
|
+
return u == null || u.length === 0 ? null : /* @__PURE__ */ G("div", {
|
|
1840
1842
|
className: "flex flex-col gap-6",
|
|
1841
1843
|
style: ae({
|
|
1842
1844
|
"--lt-section-heading": l?.sectionHeading,
|
|
@@ -1848,7 +1850,7 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1848
1850
|
"--lt-progress-fill-warning": l?.progressFillWarning,
|
|
1849
1851
|
"--lt-progress-fill-danger": l?.progressFillDanger
|
|
1850
1852
|
}),
|
|
1851
|
-
children: [u.map((e) => /* @__PURE__ */
|
|
1853
|
+
children: [u.map((e) => /* @__PURE__ */ W(er, {
|
|
1852
1854
|
group: e,
|
|
1853
1855
|
sectionClassName: o,
|
|
1854
1856
|
labelClassName: t,
|
|
@@ -1856,18 +1858,18 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1856
1858
|
valueClassName: r,
|
|
1857
1859
|
noteValueClassName: i,
|
|
1858
1860
|
noteClassName: a
|
|
1859
|
-
}, e.label)), c != null && /* @__PURE__ */
|
|
1860
|
-
className: k("m-0 border-t pt-4", s,
|
|
1861
|
+
}, e.label)), c != null && /* @__PURE__ */ W("p", {
|
|
1862
|
+
className: k("m-0 border-t pt-4", s, Qn.divider, Qn.label),
|
|
1861
1863
|
children: c
|
|
1862
1864
|
})]
|
|
1863
1865
|
});
|
|
1864
|
-
},
|
|
1866
|
+
}, nr = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ W("div", {
|
|
1865
1867
|
className: "flex flex-col gap-4",
|
|
1866
|
-
children: e.map((e, s) => /* @__PURE__ */
|
|
1868
|
+
children: e.map((e, s) => /* @__PURE__ */ G("div", {
|
|
1867
1869
|
className: "flex flex-col gap-4",
|
|
1868
|
-
children: [s > 0 && /* @__PURE__ */
|
|
1870
|
+
children: [s > 0 && /* @__PURE__ */ W("div", { className: k("shrink-0 border-b", Tn.divider) }), /* @__PURE__ */ W("div", {
|
|
1869
1871
|
className: "px-6",
|
|
1870
|
-
children: /* @__PURE__ */
|
|
1872
|
+
children: /* @__PURE__ */ W(Zt, {
|
|
1871
1873
|
sectionLabel: e.title,
|
|
1872
1874
|
values: e.specs,
|
|
1873
1875
|
sectionClassName: t,
|
|
@@ -1879,7 +1881,7 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1879
1881
|
})
|
|
1880
1882
|
})]
|
|
1881
1883
|
}, s))
|
|
1882
|
-
}) : null,
|
|
1884
|
+
}) : null, rr = ({ pricing: e, pricesSectionLabel: t = "Token pricing", limitsSectionLabel: n = "Usage limits", labelClassName: r = "dial-small-semi-text", valueClassName: i = "dial-small-text", sectionClassName: a = "dial-caption-text" }) => {
|
|
1883
1885
|
if (e == null) return null;
|
|
1884
1886
|
let o = e.prices?.map((e) => ({
|
|
1885
1887
|
label: e.label,
|
|
@@ -1888,15 +1890,15 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1888
1890
|
label: e.label,
|
|
1889
1891
|
value: e.value
|
|
1890
1892
|
}));
|
|
1891
|
-
return /* @__PURE__ */
|
|
1893
|
+
return /* @__PURE__ */ G("div", {
|
|
1892
1894
|
className: "flex flex-col gap-4",
|
|
1893
|
-
children: [/* @__PURE__ */
|
|
1895
|
+
children: [/* @__PURE__ */ W(Zt, {
|
|
1894
1896
|
sectionLabel: t,
|
|
1895
1897
|
values: o ?? [],
|
|
1896
1898
|
labelClassName: r,
|
|
1897
1899
|
valueClassName: i,
|
|
1898
1900
|
sectionClassName: a
|
|
1899
|
-
}), /* @__PURE__ */
|
|
1901
|
+
}), /* @__PURE__ */ W(Zt, {
|
|
1900
1902
|
sectionLabel: n,
|
|
1901
1903
|
values: s ?? [],
|
|
1902
1904
|
labelClassName: r,
|
|
@@ -1904,44 +1906,44 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1904
1906
|
sectionClassName: a
|
|
1905
1907
|
})]
|
|
1906
1908
|
});
|
|
1907
|
-
},
|
|
1909
|
+
}, ir = {
|
|
1908
1910
|
container: "_container_ddi3i_1",
|
|
1909
1911
|
header: "_header_ddi3i_5",
|
|
1910
1912
|
cell: "_cell_ddi3i_10",
|
|
1911
1913
|
evenRow: "_evenRow_ddi3i_17"
|
|
1912
|
-
},
|
|
1914
|
+
}, ar = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
|
|
1913
1915
|
let a = n ?? `repeat(${e.length}, 1fr)`;
|
|
1914
|
-
return /* @__PURE__ */
|
|
1915
|
-
className: k(
|
|
1916
|
+
return /* @__PURE__ */ G("div", {
|
|
1917
|
+
className: k(ir.container, "grid overflow-hidden rounded-md"),
|
|
1916
1918
|
style: { gridTemplateColumns: a },
|
|
1917
|
-
children: [e.map((e) => /* @__PURE__ */
|
|
1918
|
-
className: k("px-2 py-1 text-start", r,
|
|
1919
|
+
children: [e.map((e) => /* @__PURE__ */ W("div", {
|
|
1920
|
+
className: k("px-2 py-1 text-start", r, ir.header),
|
|
1919
1921
|
children: e
|
|
1920
|
-
}, e)), t.map((e, t) => /* @__PURE__ */
|
|
1921
|
-
className: k("px-2 py-1.5", i,
|
|
1922
|
+
}, e)), t.map((e, t) => /* @__PURE__ */ W(oe, { children: e.map((e, n) => /* @__PURE__ */ W("div", {
|
|
1923
|
+
className: k("px-2 py-1.5", i, ir.cell, t % 2 == 1 ? ir.evenRow : void 0),
|
|
1922
1924
|
children: e
|
|
1923
1925
|
}, n)) }, t))]
|
|
1924
1926
|
});
|
|
1925
|
-
},
|
|
1927
|
+
}, or = {
|
|
1926
1928
|
divider: "_divider_1f796_1",
|
|
1927
1929
|
description: "_description_1f796_5",
|
|
1928
1930
|
code: "_code_1f796_9"
|
|
1929
|
-
},
|
|
1931
|
+
}, sr = ({ tools: e, toolNameClassName: t = "dial-small-semi-text", descriptionClassName: n = "dial-small-text", tableHeadingClassName: r = "dial-caption-text", tableCellClassName: i = "dial-tiny-text" }) => e == null ? null : /* @__PURE__ */ W("div", {
|
|
1930
1932
|
className: "flex flex-col",
|
|
1931
|
-
children: e.tools.map((e, a) => /* @__PURE__ */
|
|
1932
|
-
className: k("flex flex-col gap-3 px-[22px] py-4", a > 0 ?
|
|
1933
|
+
children: e.tools.map((e, a) => /* @__PURE__ */ G("div", {
|
|
1934
|
+
className: k("flex flex-col gap-3 px-[22px] py-4", a > 0 ? or.divider : void 0),
|
|
1933
1935
|
children: [
|
|
1934
|
-
/* @__PURE__ */
|
|
1936
|
+
/* @__PURE__ */ G("div", {
|
|
1935
1937
|
className: "flex flex-col gap-1",
|
|
1936
|
-
children: [/* @__PURE__ */
|
|
1938
|
+
children: [/* @__PURE__ */ W("span", {
|
|
1937
1939
|
className: t,
|
|
1938
1940
|
children: e.name
|
|
1939
|
-
}), e.description != null && /* @__PURE__ */
|
|
1940
|
-
className: k("m-0", n,
|
|
1941
|
+
}), e.description != null && /* @__PURE__ */ W("p", {
|
|
1942
|
+
className: k("m-0", n, or.description),
|
|
1941
1943
|
children: e.description
|
|
1942
1944
|
})]
|
|
1943
1945
|
}),
|
|
1944
|
-
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */
|
|
1946
|
+
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ W(ar, {
|
|
1945
1947
|
columns: [
|
|
1946
1948
|
"Name",
|
|
1947
1949
|
"Type",
|
|
@@ -1949,12 +1951,12 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1949
1951
|
],
|
|
1950
1952
|
columnsTemplate: "1fr 1fr auto",
|
|
1951
1953
|
rows: e.inputParams.map((e) => [
|
|
1952
|
-
/* @__PURE__ */
|
|
1953
|
-
className: k("text-inherit border-none bg-transparent p-0",
|
|
1954
|
+
/* @__PURE__ */ W("code", {
|
|
1955
|
+
className: k("text-inherit border-none bg-transparent p-0", or.code),
|
|
1954
1956
|
children: e.name
|
|
1955
1957
|
}, "name"),
|
|
1956
|
-
/* @__PURE__ */
|
|
1957
|
-
className: k("text-inherit border-none bg-transparent p-0",
|
|
1958
|
+
/* @__PURE__ */ W("code", {
|
|
1959
|
+
className: k("text-inherit border-none bg-transparent p-0", or.code),
|
|
1958
1960
|
children: e.type
|
|
1959
1961
|
}, "type"),
|
|
1960
1962
|
e.isRequired ? "✓" : "—"
|
|
@@ -1962,10 +1964,10 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1962
1964
|
headingClassName: r,
|
|
1963
1965
|
cellClassName: i
|
|
1964
1966
|
}),
|
|
1965
|
-
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */
|
|
1967
|
+
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ W(ar, {
|
|
1966
1968
|
columns: ["Key", "Value"],
|
|
1967
|
-
rows: e.annotations.map((e) => [/* @__PURE__ */
|
|
1968
|
-
className: k("text-inherit border-none bg-transparent p-0",
|
|
1969
|
+
rows: e.annotations.map((e) => [/* @__PURE__ */ W("code", {
|
|
1970
|
+
className: k("text-inherit border-none bg-transparent p-0", or.code),
|
|
1969
1971
|
children: e.key
|
|
1970
1972
|
}, "key"), e.value]),
|
|
1971
1973
|
headingClassName: r,
|
|
@@ -1973,24 +1975,24 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
1973
1975
|
})
|
|
1974
1976
|
]
|
|
1975
1977
|
}, e.name))
|
|
1976
|
-
}),
|
|
1978
|
+
}), cr = new Set([x.Prompt, x.Skill]), lr = (e) => e?.resource?.endpointUrl != null || (e?.endpoints?.length ?? 0) > 0, ur = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), dr = async () => void 0, fr = [], pr = [], mr = [
|
|
1977
1979
|
"All shared configurations will be lost",
|
|
1978
1980
|
"Users who rely on it will lose access",
|
|
1979
1981
|
"Cannot be undone"
|
|
1980
|
-
],
|
|
1982
|
+
], hr = [
|
|
1981
1983
|
"You will lose access to this item",
|
|
1982
1984
|
"Other people keep their access",
|
|
1983
1985
|
"You will need a new invitation to get it back"
|
|
1984
|
-
],
|
|
1986
|
+
], gr = [
|
|
1985
1987
|
"Everyone loses access to the published copy",
|
|
1986
1988
|
"Your own copy is not deleted",
|
|
1987
1989
|
"You can publish it again later"
|
|
1988
|
-
],
|
|
1990
|
+
], _r = [
|
|
1989
1991
|
"Everyone you shared it with loses access",
|
|
1990
1992
|
"Existing share links stop working",
|
|
1991
1993
|
"You keep full access — nothing is deleted"
|
|
1992
|
-
],
|
|
1993
|
-
let { subViewTitleClassName: De = "dial-body-semi-text", overviewSectionClassName: Oe = "dial-caption-text", overviewLabelClassName: ke = "dial-small-semi-text", overviewValueClassName:
|
|
1994
|
+
], vr = (e) => e === y.ApiKey ? "Toolset API keys" : "Toolset credentials", yr = (e) => e === b.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", br = new Set([q.Delete, q.Unshare]), xr = ({ item: e, isOpen: n, 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: h, publishFolderItems: _ = fr, publishExpandedPaths: v, onPublishExpandedPathsChange: y, publishLoadingPaths: S, hasPublishWriteAccess: C, publishDefaultAuthor: w, onPublish: T, onPublishSuccess: ee, onPublishError: E, onCreatePublishFolder: D, publishLabels: O, ruleSourceOptions: te = pr, onFetchExistingRules: ne, shareOverlay: re, isShareVisible: ie, isSharePrimary: oe, onEdit: se, onDownload: ce, isDownloadVisible: le, isDownloadPrimary: ue, onLoadContentFile: de, onLoadContentFilePreview: F, renderContentFilePreview: fe, onDelete: I, onUnshare: me, isUnshareVisible: he, onRevokeShare: _e, onFetchRecipientsCount: ve, isRevokeShareVisible: ye, onUnpublish: xe, isUnpublishVisible: Se, onLogin: Ce, onLogout: we, texts: R, styles: Te, limitsFooterNote: Ee }) => {
|
|
1995
|
+
let { subViewTitleClassName: De = "dial-body-semi-text", overviewSectionClassName: Oe = "dial-caption-text", overviewLabelClassName: ke = "dial-small-semi-text", overviewValueClassName: Ae = "dial-small-text", overviewValueTrueClassName: Me = "dial-small-text", confirmMessageClassName: Ne = "dial-small-text" } = Te?.typography ?? {}, z = Te?.colors, Fe = ae({
|
|
1994
1996
|
"--cat-details-backdrop": z?.backdrop,
|
|
1995
1997
|
"--cat-details-bg": z?.background,
|
|
1996
1998
|
"--cat-details-border": z?.border,
|
|
@@ -2026,129 +2028,129 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
2026
2028
|
"--cat-cred-card-icon": z?.credentialsCardIcon,
|
|
2027
2029
|
"--cat-cred-card-title-text": z?.credentialsCardTitleText,
|
|
2028
2030
|
"--cat-cred-card-description-text": z?.credentialsCardDescriptionText
|
|
2029
|
-
}), [
|
|
2030
|
-
let t =
|
|
2031
|
-
t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t),
|
|
2031
|
+
}), [Le, Re] = P(r), [B, ze] = P(""), [Be, Ve] = P(!1), [He, Ue] = P([]), [Ge, Ke] = P(!1), [qe, Je] = P(!1), [Ye, Xe] = P(!1), Ze = N(null), Qe = e.details?.promptContent, $e = Qe?.selectedFileId, [et, tt] = P(null), [nt, rt] = P(!1), [V, it] = P(/* @__PURE__ */ new Set()), [at, ot] = P(!1), st = N(null), ct = N(0), H = A((e) => {
|
|
2032
|
+
let t = st.current, n = e?.preview?.type === xt.Image ? e.preview.url : null;
|
|
2033
|
+
t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), st.current = n, tt(e);
|
|
2032
2034
|
}, []);
|
|
2033
2035
|
j(() => {
|
|
2034
|
-
|
|
2035
|
-
}, [e.id,
|
|
2036
|
-
let e =
|
|
2036
|
+
ct.current += 1, H(null), rt(!1), it(qt(Qe?.files ?? [])), ot(!1);
|
|
2037
|
+
}, [e.id, $e]), j(() => () => {
|
|
2038
|
+
let e = st.current;
|
|
2037
2039
|
e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
|
|
2038
2040
|
}, []);
|
|
2039
|
-
let
|
|
2040
|
-
|
|
2041
|
+
let lt = A((e) => {
|
|
2042
|
+
it((t) => {
|
|
2041
2043
|
let n = new Set(t);
|
|
2042
2044
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
2043
2045
|
});
|
|
2044
|
-
}, []),
|
|
2045
|
-
if (e ===
|
|
2046
|
-
|
|
2046
|
+
}, []), ut = A(async (e) => {
|
|
2047
|
+
if (e === $e) {
|
|
2048
|
+
ct.current += 1, H(null), rt(!1);
|
|
2047
2049
|
return;
|
|
2048
2050
|
}
|
|
2049
|
-
if (
|
|
2050
|
-
if (
|
|
2051
|
-
|
|
2051
|
+
if (fe == null && de == null && F == null) return;
|
|
2052
|
+
if (fe != null) {
|
|
2053
|
+
ct.current += 1, H({
|
|
2052
2054
|
id: e,
|
|
2053
2055
|
preview: null
|
|
2054
|
-
}),
|
|
2056
|
+
}), rt(!1);
|
|
2055
2057
|
return;
|
|
2056
2058
|
}
|
|
2057
|
-
let t = ++
|
|
2058
|
-
|
|
2059
|
+
let t = ++ct.current;
|
|
2060
|
+
H({
|
|
2059
2061
|
id: e,
|
|
2060
2062
|
preview: null
|
|
2061
|
-
}),
|
|
2063
|
+
}), rt(!0);
|
|
2062
2064
|
try {
|
|
2063
|
-
let n =
|
|
2064
|
-
type:
|
|
2065
|
+
let n = F == null ? await de?.(e).then((e) => e == null ? void 0 : {
|
|
2066
|
+
type: xt.Markdown,
|
|
2065
2067
|
text: e
|
|
2066
|
-
}) : await
|
|
2067
|
-
if (
|
|
2068
|
-
n?.type ===
|
|
2068
|
+
}) : await F(e);
|
|
2069
|
+
if (ct.current !== t) {
|
|
2070
|
+
n?.type === xt.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
|
|
2069
2071
|
return;
|
|
2070
2072
|
}
|
|
2071
|
-
|
|
2073
|
+
H({
|
|
2072
2074
|
id: e,
|
|
2073
2075
|
preview: n ?? null
|
|
2074
2076
|
});
|
|
2075
2077
|
} catch {
|
|
2076
|
-
if (
|
|
2077
|
-
|
|
2078
|
+
if (ct.current !== t) return;
|
|
2079
|
+
H({
|
|
2078
2080
|
id: e,
|
|
2079
2081
|
preview: null
|
|
2080
2082
|
});
|
|
2081
2083
|
} finally {
|
|
2082
|
-
|
|
2084
|
+
ct.current === t && rt(!1);
|
|
2083
2085
|
}
|
|
2084
2086
|
}, [
|
|
2085
|
-
|
|
2086
|
-
ue,
|
|
2087
|
+
$e,
|
|
2087
2088
|
de,
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2089
|
+
F,
|
|
2090
|
+
fe,
|
|
2091
|
+
H
|
|
2092
|
+
]), dt = et?.id ?? $e, gt = () => et == null ? null : et.preview == null ? {
|
|
2093
|
+
type: xt.Text,
|
|
2092
2094
|
text: R?.contentFileErrorLabel ?? "Failed to load this file."
|
|
2093
|
-
} :
|
|
2094
|
-
if (!h ||
|
|
2095
|
+
} : et.preview, _t = et != null && fe != null ? fe(et.id, Jt(Qe?.files ?? [], et.id) ?? "") : void 0, vt = A(() => {
|
|
2096
|
+
if (!h || Ze.current === e.id) return;
|
|
2095
2097
|
let t = e.id;
|
|
2096
|
-
|
|
2098
|
+
Ze.current = t, Ke(!0), Je(!1), (async () => {
|
|
2097
2099
|
try {
|
|
2098
2100
|
let n = await h(e);
|
|
2099
|
-
if (
|
|
2100
|
-
|
|
2101
|
+
if (Ze.current !== t) return;
|
|
2102
|
+
Ue(n), Xe(!0), Ke(!1);
|
|
2101
2103
|
} catch {
|
|
2102
|
-
if (
|
|
2103
|
-
|
|
2104
|
+
if (Ze.current !== t) return;
|
|
2105
|
+
Je(!0), Ke(!1), Ze.current = null;
|
|
2104
2106
|
}
|
|
2105
2107
|
})();
|
|
2106
2108
|
}, [h, e]);
|
|
2107
2109
|
j(() => {
|
|
2108
|
-
|
|
2109
|
-
}, [
|
|
2110
|
-
let
|
|
2111
|
-
|
|
2112
|
-
}, [
|
|
2110
|
+
Be && vt();
|
|
2111
|
+
}, [Be, vt]);
|
|
2112
|
+
let yt = A((e, t) => {
|
|
2113
|
+
Ze.current = null, Xe(!1), vt(), ee?.(e, t);
|
|
2114
|
+
}, [vt, ee]), Y = ht({
|
|
2113
2115
|
item: e,
|
|
2114
|
-
history:
|
|
2116
|
+
history: He,
|
|
2115
2117
|
folderItems: _,
|
|
2116
2118
|
hasWriteAccess: C,
|
|
2117
2119
|
defaultAuthor: w,
|
|
2118
2120
|
onCreateFolder: D,
|
|
2119
|
-
onPublish: T ??
|
|
2120
|
-
onPublishSuccess:
|
|
2121
|
+
onPublish: T ?? dr,
|
|
2122
|
+
onPublishSuccess: yt,
|
|
2121
2123
|
onPublishError: E,
|
|
2122
2124
|
onFetchExistingRules: ne
|
|
2123
|
-
}),
|
|
2124
|
-
hasSelectedFolder:
|
|
2125
|
-
hasExistingPublicationInFolder:
|
|
2126
|
-
hasWriteAccess:
|
|
2127
|
-
isSubmitting:
|
|
2128
|
-
hasSubmitError:
|
|
2125
|
+
}), bt = e.type === x.Toolset && g(e.credentials), St = M(() => mt({
|
|
2126
|
+
hasSelectedFolder: Y.selectedFolderPath != null,
|
|
2127
|
+
hasExistingPublicationInFolder: Y.hasExistingPublicationInFolder,
|
|
2128
|
+
hasWriteAccess: Y.hasWriteAccess,
|
|
2129
|
+
isSubmitting: Y.isSubmitting,
|
|
2130
|
+
hasSubmitError: Y.hasSubmitError
|
|
2129
2131
|
}), [
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
]), [
|
|
2132
|
+
Y.selectedFolderPath,
|
|
2133
|
+
Y.hasExistingPublicationInFolder,
|
|
2134
|
+
Y.hasWriteAccess,
|
|
2135
|
+
Y.isSubmitting,
|
|
2136
|
+
Y.hasSubmitError
|
|
2137
|
+
]), [Ct, wt] = P(!1), [X, Tt] = P(null), [Et, Dt] = P(!1), [Ot, kt] = P(null), [At, jt] = P(null), [Z, Mt] = P(null);
|
|
2136
2138
|
j(() => {
|
|
2137
|
-
|
|
2139
|
+
Re(r);
|
|
2138
2140
|
}, [e.id, r]), j(() => {
|
|
2139
|
-
|
|
2141
|
+
ze(""), Ve(!1), Y.reset(), Ue([]), Je(!1), Ke(!1), Xe(!1), Ze.current = null, Mt(null), wt(!1), Tt(null), Dt(!1), kt(null), jt(null);
|
|
2140
2142
|
}, [e.id]);
|
|
2141
|
-
let
|
|
2142
|
-
|
|
2143
|
+
let Nt = A(() => wt(!0), []), Pt = A(() => wt(!1), []), Q = A(() => {
|
|
2144
|
+
Tt(q.Delete);
|
|
2143
2145
|
}, []), Ft = A((n) => {
|
|
2144
|
-
|
|
2145
|
-
}, [e.credentials]),
|
|
2146
|
-
|
|
2147
|
-
}, []),
|
|
2148
|
-
|
|
2149
|
-
}, []),
|
|
2146
|
+
jt(n ?? (e.credentials == null ? null : t(e.credentials))), Tt(q.Logout);
|
|
2147
|
+
}, [e.credentials]), Lt = A(() => {
|
|
2148
|
+
Tt(q.Unshare);
|
|
2149
|
+
}, []), Rt = A(() => {
|
|
2150
|
+
Tt(q.RevokeAccess);
|
|
2151
|
+
}, []), $ = M(() => {
|
|
2150
2152
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
2151
|
-
for (let n of
|
|
2153
|
+
for (let n of He) {
|
|
2152
2154
|
let r = n.folderPath.join("/");
|
|
2153
2155
|
e.has(r) || (e.add(r), t.push({
|
|
2154
2156
|
key: r,
|
|
@@ -2156,57 +2158,57 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
2156
2158
|
}));
|
|
2157
2159
|
}
|
|
2158
2160
|
return t;
|
|
2159
|
-
}, [
|
|
2160
|
-
|
|
2161
|
+
}, [He]), zt = Ye && $.length > 0, Bt = A((e) => e || (O?.rootFolderLabel ?? "Organization"), [O]), Vt = A(() => {
|
|
2162
|
+
Tt(q.Unpublish);
|
|
2161
2163
|
}, []), Ht = A((e) => {
|
|
2162
|
-
|
|
2164
|
+
kt(e), Tt(q.DeleteApiKey);
|
|
2163
2165
|
}, []), Ut = A(() => {
|
|
2164
|
-
|
|
2165
|
-
}, [
|
|
2166
|
-
if (!(
|
|
2167
|
-
|
|
2166
|
+
Et || (Tt(null), kt(null), jt(null), Mt(null));
|
|
2167
|
+
}, [Et]), Wt = A(async () => {
|
|
2168
|
+
if (!(Et || X == null)) {
|
|
2169
|
+
Dt(!0);
|
|
2168
2170
|
try {
|
|
2169
|
-
switch (
|
|
2170
|
-
case
|
|
2171
|
-
await
|
|
2171
|
+
switch (X) {
|
|
2172
|
+
case q.Delete:
|
|
2173
|
+
await I?.(e);
|
|
2172
2174
|
break;
|
|
2173
|
-
case
|
|
2175
|
+
case q.Unshare:
|
|
2174
2176
|
await me?.(e);
|
|
2175
2177
|
break;
|
|
2176
|
-
case
|
|
2178
|
+
case q.RevokeAccess:
|
|
2177
2179
|
await _e?.(e);
|
|
2178
2180
|
break;
|
|
2179
|
-
case
|
|
2180
|
-
|
|
2181
|
+
case q.Logout:
|
|
2182
|
+
At != null && await we?.(e, { level: At });
|
|
2181
2183
|
break;
|
|
2182
|
-
case
|
|
2183
|
-
|
|
2184
|
+
case q.DeleteApiKey:
|
|
2185
|
+
Ot != null && await we?.(e, { level: Ot });
|
|
2184
2186
|
break;
|
|
2185
|
-
case
|
|
2186
|
-
let t =
|
|
2187
|
+
case q.Unpublish: {
|
|
2188
|
+
let t = ur($, Z);
|
|
2187
2189
|
t != null && await xe?.(e, t.segments);
|
|
2188
2190
|
break;
|
|
2189
2191
|
}
|
|
2190
2192
|
}
|
|
2191
|
-
|
|
2193
|
+
Tt(null), kt(null), jt(null), Mt(null), br.has(X) && o();
|
|
2192
2194
|
} catch {
|
|
2193
|
-
|
|
2195
|
+
Tt(null), kt(null), jt(null), Mt(null);
|
|
2194
2196
|
} finally {
|
|
2195
|
-
|
|
2197
|
+
Dt(!1);
|
|
2196
2198
|
}
|
|
2197
2199
|
}
|
|
2198
2200
|
}, [
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2201
|
+
Et,
|
|
2202
|
+
X,
|
|
2203
|
+
Ot,
|
|
2204
|
+
At,
|
|
2203
2205
|
e,
|
|
2204
|
-
|
|
2206
|
+
I,
|
|
2205
2207
|
me,
|
|
2206
2208
|
_e,
|
|
2207
2209
|
xe,
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
+
Z,
|
|
2211
|
+
$,
|
|
2210
2212
|
we,
|
|
2211
2213
|
o
|
|
2212
2214
|
]);
|
|
@@ -2214,7 +2216,7 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
2214
2216
|
if (!n) return;
|
|
2215
2217
|
let e = (e) => {
|
|
2216
2218
|
if (e.key === "Escape") {
|
|
2217
|
-
if (
|
|
2219
|
+
if (X != null) {
|
|
2218
2220
|
Ut();
|
|
2219
2221
|
return;
|
|
2220
2222
|
}
|
|
@@ -2225,122 +2227,122 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
2225
2227
|
}, [
|
|
2226
2228
|
n,
|
|
2227
2229
|
o,
|
|
2228
|
-
|
|
2230
|
+
X,
|
|
2229
2231
|
Ut
|
|
2230
2232
|
]);
|
|
2231
|
-
let Gt = A(() =>
|
|
2232
|
-
|
|
2233
|
-
}, [
|
|
2234
|
-
await
|
|
2235
|
-
}, [
|
|
2236
|
-
let t = !
|
|
2237
|
-
|
|
2233
|
+
let Gt = A(() => Ve(!0), []), Kt = A(() => {
|
|
2234
|
+
Ve(!1), Y.reset();
|
|
2235
|
+
}, [Y]), Yt = A(async () => {
|
|
2236
|
+
await Y.handleSubmit() && Kt();
|
|
2237
|
+
}, [Y, Kt]), Xt = A(() => {
|
|
2238
|
+
let t = !Le;
|
|
2239
|
+
Re(t), s?.(e.id, t);
|
|
2238
2240
|
}, [
|
|
2239
|
-
|
|
2241
|
+
Le,
|
|
2240
2242
|
e.id,
|
|
2241
2243
|
s
|
|
2242
|
-
]), Zt =
|
|
2243
|
-
let t = [], n =
|
|
2244
|
+
]), Zt = M(() => {
|
|
2245
|
+
let t = [], n = cr.has(e.type);
|
|
2244
2246
|
return n || t.push({
|
|
2245
|
-
id:
|
|
2247
|
+
id: K.About,
|
|
2246
2248
|
label: R?.tabAboutLabel ?? "About"
|
|
2247
2249
|
}), (n || e.details?.promptContent != null) && t.push({
|
|
2248
|
-
id:
|
|
2250
|
+
id: K.Content,
|
|
2249
2251
|
label: R?.tabContentLabel ?? "Details"
|
|
2250
2252
|
}), e.details?.overview != null && t.push({
|
|
2251
|
-
id:
|
|
2253
|
+
id: K.Overview,
|
|
2252
2254
|
label: R?.tabOverviewLabel ?? "Overview"
|
|
2253
2255
|
}), e.details?.pricing != null && t.push({
|
|
2254
|
-
id:
|
|
2256
|
+
id: K.Pricing,
|
|
2255
2257
|
label: R?.tabPricingLabel ?? "Pricing"
|
|
2256
2258
|
}), e.details?.limits != null && t.push({
|
|
2257
|
-
id:
|
|
2259
|
+
id: K.Limits,
|
|
2258
2260
|
label: R?.tabLimitsLabel ?? "Limits"
|
|
2259
2261
|
}), e.details?.tools != null && t.push({
|
|
2260
|
-
id:
|
|
2262
|
+
id: K.Tools,
|
|
2261
2263
|
label: R?.tabToolsLabel ?? "Tools"
|
|
2262
|
-
}),
|
|
2263
|
-
id:
|
|
2264
|
+
}), lr(e.details?.api) && t.push({
|
|
2265
|
+
id: K.Api,
|
|
2264
2266
|
label: R?.tabConnectLabel ?? "Connect"
|
|
2265
2267
|
}), t;
|
|
2266
|
-
}, [e, R]), Qt =
|
|
2268
|
+
}, [e, R]), Qt = N(null);
|
|
2267
2269
|
j(() => {
|
|
2268
2270
|
let t = Qt.current !== e.id;
|
|
2269
|
-
Qt.current = e.id, (t || !Zt.some((e) => e.id ===
|
|
2271
|
+
Qt.current = e.id, (t || !Zt.some((e) => e.id === B)) && ze(Zt[0]?.id ?? "");
|
|
2270
2272
|
}, [
|
|
2271
2273
|
e.id,
|
|
2272
2274
|
Zt,
|
|
2273
|
-
|
|
2275
|
+
B
|
|
2274
2276
|
]);
|
|
2275
|
-
let $t = R?.overviewYesLabel ?? "Yes", en = R?.overviewNoLabel ?? "No",
|
|
2276
|
-
switch (
|
|
2277
|
-
case
|
|
2277
|
+
let $t = R?.overviewYesLabel ?? "Yes", en = R?.overviewNoLabel ?? "No", tn = R?.ariaLabel ?? "Item details", rn = R?.closeAriaLabel ?? "Close", on = Le ? R?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : R?.addToFavoritesAriaLabel ?? "Add to favorites", sn = R?.publishTitle ?? "Publish", ln = R?.backToDetailsAriaLabel ?? "Back", un = R?.cancelLabel ?? "Cancel", dn = M(() => {
|
|
2278
|
+
switch (X) {
|
|
2279
|
+
case q.Delete: {
|
|
2278
2280
|
let t = R?.deleteActionLabel ?? "Delete";
|
|
2279
2281
|
return {
|
|
2280
2282
|
title: R?.deleteConfirmTitle ?? t,
|
|
2281
|
-
message: R?.deleteConfirmMessage?.(e.name) ?? /* @__PURE__ */
|
|
2283
|
+
message: R?.deleteConfirmMessage?.(e.name) ?? /* @__PURE__ */ G(U, { children: [
|
|
2282
2284
|
"Are you sure you want to delete ",
|
|
2283
|
-
/* @__PURE__ */
|
|
2285
|
+
/* @__PURE__ */ W("strong", { children: e.name }),
|
|
2284
2286
|
"? This action is permanent and cannot be undone."
|
|
2285
2287
|
] }),
|
|
2286
|
-
consequences: R?.deleteConfirmConsequences ??
|
|
2288
|
+
consequences: R?.deleteConfirmConsequences ?? mr,
|
|
2287
2289
|
confirmLabel: t,
|
|
2288
2290
|
loadingStatusLabel: R?.deletingStatusLabel ?? "Deleting",
|
|
2289
|
-
variant:
|
|
2291
|
+
variant: J.Danger
|
|
2290
2292
|
};
|
|
2291
2293
|
}
|
|
2292
|
-
case
|
|
2294
|
+
case q.Unshare: {
|
|
2293
2295
|
let t = R?.unshareLabel ?? "Remove from My List";
|
|
2294
2296
|
return {
|
|
2295
2297
|
title: R?.unshareConfirmTitle ?? t,
|
|
2296
|
-
message: R?.unshareConfirmMessage?.(e.name) ?? /* @__PURE__ */
|
|
2298
|
+
message: R?.unshareConfirmMessage?.(e.name) ?? /* @__PURE__ */ G(U, { children: [
|
|
2297
2299
|
"Remove ",
|
|
2298
|
-
/* @__PURE__ */
|
|
2300
|
+
/* @__PURE__ */ W("strong", { children: e.name }),
|
|
2299
2301
|
" from your list? You'll need a new invitation to access it again."
|
|
2300
2302
|
] }),
|
|
2301
|
-
consequences: R?.unshareConfirmConsequences ??
|
|
2303
|
+
consequences: R?.unshareConfirmConsequences ?? hr,
|
|
2302
2304
|
confirmLabel: t,
|
|
2303
2305
|
loadingStatusLabel: R?.unsharingStatusLabel ?? "Removing",
|
|
2304
|
-
variant:
|
|
2306
|
+
variant: J.Info
|
|
2305
2307
|
};
|
|
2306
2308
|
}
|
|
2307
|
-
case
|
|
2309
|
+
case q.RevokeAccess: {
|
|
2308
2310
|
let t = R?.revokeShareLabel ?? "Revoke access";
|
|
2309
2311
|
return {
|
|
2310
2312
|
title: R?.revokeShareConfirmTitle ?? t,
|
|
2311
|
-
message: R?.revokeShareConfirmMessage?.(e.name) ?? /* @__PURE__ */
|
|
2313
|
+
message: R?.revokeShareConfirmMessage?.(e.name) ?? /* @__PURE__ */ G(U, { children: [
|
|
2312
2314
|
"Revoke shared access to ",
|
|
2313
|
-
/* @__PURE__ */
|
|
2315
|
+
/* @__PURE__ */ W("strong", { children: e.name }),
|
|
2314
2316
|
"? Anyone you shared it with will lose access."
|
|
2315
2317
|
] }),
|
|
2316
|
-
consequences: R?.revokeShareConfirmConsequences ??
|
|
2318
|
+
consequences: R?.revokeShareConfirmConsequences ?? _r,
|
|
2317
2319
|
confirmLabel: t,
|
|
2318
2320
|
loadingStatusLabel: R?.revokingShareStatusLabel ?? "Revoking access",
|
|
2319
|
-
variant:
|
|
2321
|
+
variant: J.Danger
|
|
2320
2322
|
};
|
|
2321
2323
|
}
|
|
2322
|
-
case
|
|
2323
|
-
let t = R?.unpublishLabel ?? "Unpublish", n =
|
|
2324
|
+
case q.Unpublish: {
|
|
2325
|
+
let t = R?.unpublishLabel ?? "Unpublish", n = $.length === 1, r = n ? Bt($[0].key) : "", i = R?.unpublishConfirmMessage?.(e.name, r) ?? /* @__PURE__ */ G(U, { children: [
|
|
2324
2326
|
"Unpublish ",
|
|
2325
|
-
/* @__PURE__ */
|
|
2327
|
+
/* @__PURE__ */ W("strong", { children: e.name }),
|
|
2326
2328
|
" from \"",
|
|
2327
2329
|
r,
|
|
2328
2330
|
"\"? The request is submitted for admin approval."
|
|
2329
|
-
] }), a = R?.unpublishSelectFolderMessage?.(e.name) ?? /* @__PURE__ */
|
|
2331
|
+
] }), a = R?.unpublishSelectFolderMessage?.(e.name) ?? /* @__PURE__ */ G(U, { children: [
|
|
2330
2332
|
"Choose which folder to unpublish ",
|
|
2331
|
-
/* @__PURE__ */
|
|
2333
|
+
/* @__PURE__ */ W("strong", { children: e.name }),
|
|
2332
2334
|
" from. The request is submitted for admin approval."
|
|
2333
2335
|
] });
|
|
2334
2336
|
return {
|
|
2335
2337
|
title: R?.unpublishConfirmTitle ?? t,
|
|
2336
2338
|
message: n ? i : a,
|
|
2337
|
-
consequences: R?.unpublishConfirmConsequences ??
|
|
2339
|
+
consequences: R?.unpublishConfirmConsequences ?? gr,
|
|
2338
2340
|
confirmLabel: t,
|
|
2339
2341
|
loadingStatusLabel: R?.unpublishingStatusLabel ?? "Requesting unpublish",
|
|
2340
|
-
variant:
|
|
2342
|
+
variant: J.Danger
|
|
2341
2343
|
};
|
|
2342
2344
|
}
|
|
2343
|
-
case
|
|
2345
|
+
case q.Logout: {
|
|
2344
2346
|
let e = R?.logoutActionLabel ?? "Log out";
|
|
2345
2347
|
return {
|
|
2346
2348
|
title: e,
|
|
@@ -2348,105 +2350,105 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
2348
2350
|
consequences: void 0,
|
|
2349
2351
|
confirmLabel: e,
|
|
2350
2352
|
loadingStatusLabel: R?.loggingOutStatusLabel ?? "Logging out",
|
|
2351
|
-
variant:
|
|
2353
|
+
variant: J.Info
|
|
2352
2354
|
};
|
|
2353
2355
|
}
|
|
2354
|
-
case
|
|
2355
|
-
let e = R?.deleteActionLabel ?? "Delete", t =
|
|
2356
|
+
case q.DeleteApiKey: {
|
|
2357
|
+
let e = R?.deleteActionLabel ?? "Delete", t = Ot ?? b.User;
|
|
2356
2358
|
return {
|
|
2357
2359
|
title: e,
|
|
2358
|
-
message: (R?.deleteApiKeyConfirmMessage ??
|
|
2360
|
+
message: (R?.deleteApiKeyConfirmMessage ?? yr)(t),
|
|
2359
2361
|
consequences: void 0,
|
|
2360
2362
|
confirmLabel: e,
|
|
2361
2363
|
loadingStatusLabel: R?.deletingStatusLabel ?? "Deleting",
|
|
2362
|
-
variant:
|
|
2363
|
-
cardVariant:
|
|
2364
|
+
variant: J.Danger,
|
|
2365
|
+
cardVariant: J.Info
|
|
2364
2366
|
};
|
|
2365
2367
|
}
|
|
2366
2368
|
default: return null;
|
|
2367
2369
|
}
|
|
2368
2370
|
}, [
|
|
2369
|
-
|
|
2371
|
+
X,
|
|
2370
2372
|
e.name,
|
|
2371
|
-
|
|
2373
|
+
Ot,
|
|
2372
2374
|
R,
|
|
2373
|
-
|
|
2375
|
+
$,
|
|
2374
2376
|
Bt
|
|
2375
|
-
]), fn = dn != null, pn =
|
|
2377
|
+
]), fn = dn != null, pn = X === q.Unpublish && ur($, Z) == null, mn = fn || Be || Ct, hn = e.credentials == null ? "" : (R?.credentialsManagementTitle ?? vr)(e.credentials.authenticationType), gn = fn ? {
|
|
2376
2378
|
title: dn.title,
|
|
2377
|
-
isBackDisabled:
|
|
2379
|
+
isBackDisabled: Et,
|
|
2378
2380
|
onBack: Ut
|
|
2379
|
-
} :
|
|
2380
|
-
title:
|
|
2381
|
-
isBackDisabled:
|
|
2382
|
-
onBack:
|
|
2383
|
-
} :
|
|
2381
|
+
} : Be ? {
|
|
2382
|
+
title: sn,
|
|
2383
|
+
isBackDisabled: Y.isSubmitting,
|
|
2384
|
+
onBack: Kt
|
|
2385
|
+
} : Ct ? {
|
|
2384
2386
|
title: hn,
|
|
2385
2387
|
isBackDisabled: !1,
|
|
2386
|
-
onBack:
|
|
2387
|
-
} : null, _n = gn?.title ??
|
|
2388
|
-
return /* @__PURE__ */
|
|
2389
|
-
style:
|
|
2390
|
-
className: k("fixed inset-0 z-50 transition-opacity duration-300",
|
|
2388
|
+
onBack: Pt
|
|
2389
|
+
} : null, _n = gn?.title ?? tn;
|
|
2390
|
+
return /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("div", {
|
|
2391
|
+
style: Fe,
|
|
2392
|
+
className: k("fixed inset-0 z-50 transition-opacity duration-300", Tn.backdrop, n ? "opacity-100" : "pointer-events-none opacity-0"),
|
|
2391
2393
|
onClick: o,
|
|
2392
2394
|
"aria-hidden": "true"
|
|
2393
|
-
}), /* @__PURE__ */
|
|
2395
|
+
}), /* @__PURE__ */ G("div", {
|
|
2394
2396
|
role: "dialog",
|
|
2395
2397
|
"aria-modal": "true",
|
|
2396
2398
|
"aria-label": _n,
|
|
2397
|
-
style:
|
|
2398
|
-
className: k("fixed inset-y-0 end-0 z-50 flex flex-col overflow-hidden mobile:w-full", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300",
|
|
2399
|
+
style: Fe,
|
|
2400
|
+
className: k("fixed inset-y-0 end-0 z-50 flex flex-col overflow-hidden mobile:w-full", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", Tn.panel, n ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
|
|
2399
2401
|
children: [
|
|
2400
|
-
/* @__PURE__ */
|
|
2402
|
+
/* @__PURE__ */ G("div", {
|
|
2401
2403
|
className: "flex shrink-0 items-center gap-2 px-6 py-3",
|
|
2402
|
-
children: [gn != null && /* @__PURE__ */
|
|
2403
|
-
icon: /* @__PURE__ */
|
|
2404
|
+
children: [gn != null && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(be, {
|
|
2405
|
+
icon: /* @__PURE__ */ W(We, {
|
|
2404
2406
|
className: "rtl:scale-x-[-1]",
|
|
2405
2407
|
stroke: L
|
|
2406
2408
|
}),
|
|
2407
2409
|
"aria-label": ln,
|
|
2408
2410
|
disabled: gn.isBackDisabled,
|
|
2409
2411
|
onClick: gn.onBack
|
|
2410
|
-
}), /* @__PURE__ */
|
|
2411
|
-
className: k("flex-1", De,
|
|
2412
|
+
}), /* @__PURE__ */ W("span", {
|
|
2413
|
+
className: k("flex-1", De, Tn.publishTitle),
|
|
2412
2414
|
children: gn.title
|
|
2413
|
-
})] }), gn == null && /* @__PURE__ */
|
|
2414
|
-
/* @__PURE__ */
|
|
2415
|
-
!a && c?.(e) !== !1 && /* @__PURE__ */
|
|
2416
|
-
isStarred:
|
|
2415
|
+
})] }), gn == null && /* @__PURE__ */ G(U, { children: [
|
|
2416
|
+
/* @__PURE__ */ W("div", { className: "flex-1" }),
|
|
2417
|
+
!a && c?.(e) !== !1 && /* @__PURE__ */ W(It, {
|
|
2418
|
+
isStarred: Le,
|
|
2417
2419
|
ariaLabel: on,
|
|
2418
2420
|
onClick: Xt
|
|
2419
2421
|
}),
|
|
2420
|
-
/* @__PURE__ */
|
|
2422
|
+
/* @__PURE__ */ W(pe, {
|
|
2421
2423
|
onClose: o,
|
|
2422
|
-
size:
|
|
2423
|
-
ariaLabel:
|
|
2424
|
+
size: ge.Standard,
|
|
2425
|
+
ariaLabel: rn
|
|
2424
2426
|
})
|
|
2425
2427
|
] })]
|
|
2426
2428
|
}),
|
|
2427
|
-
/* @__PURE__ */
|
|
2428
|
-
/* @__PURE__ */
|
|
2429
|
-
className: k("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto",
|
|
2429
|
+
/* @__PURE__ */ W("div", { className: k("shrink-0", Tn.divider) }),
|
|
2430
|
+
/* @__PURE__ */ G("div", {
|
|
2431
|
+
className: k("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", Tn.content),
|
|
2430
2432
|
children: [
|
|
2431
|
-
fn && /* @__PURE__ */
|
|
2433
|
+
fn && /* @__PURE__ */ W(cn, {
|
|
2432
2434
|
item: e,
|
|
2433
2435
|
message: dn.message,
|
|
2434
2436
|
consequences: dn.consequences,
|
|
2435
2437
|
variant: dn.cardVariant ?? dn.variant,
|
|
2436
|
-
messageClassName:
|
|
2437
|
-
children:
|
|
2438
|
+
messageClassName: Ne,
|
|
2439
|
+
children: X === q.Unpublish && $.length > 1 && /* @__PURE__ */ W(je, {
|
|
2438
2440
|
ariaLabel: R?.unpublishFolderGroupAriaLabel ?? "Published folders",
|
|
2439
|
-
value:
|
|
2440
|
-
onChange:
|
|
2441
|
-
disabled:
|
|
2442
|
-
items:
|
|
2441
|
+
value: Z ?? void 0,
|
|
2442
|
+
onChange: Mt,
|
|
2443
|
+
disabled: Et,
|
|
2444
|
+
items: $.map((e) => ({
|
|
2443
2445
|
value: e.key,
|
|
2444
2446
|
label: Bt(e.key)
|
|
2445
2447
|
})),
|
|
2446
|
-
radioClassName:
|
|
2448
|
+
radioClassName: Ne
|
|
2447
2449
|
})
|
|
2448
2450
|
}),
|
|
2449
|
-
!fn && !
|
|
2451
|
+
!fn && !Be && Ct && /* @__PURE__ */ W(wn, {
|
|
2450
2452
|
item: e,
|
|
2451
2453
|
onLogin: Ce,
|
|
2452
2454
|
onRequestLogout: Ft,
|
|
@@ -2454,38 +2456,38 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
2454
2456
|
texts: R,
|
|
2455
2457
|
detailsStyles: Te
|
|
2456
2458
|
}),
|
|
2457
|
-
!fn &&
|
|
2459
|
+
!fn && Be && /* @__PURE__ */ W("div", {
|
|
2458
2460
|
className: "p-[22px]",
|
|
2459
|
-
children: /* @__PURE__ */
|
|
2461
|
+
children: /* @__PURE__ */ W(pt, {
|
|
2460
2462
|
resource: {
|
|
2461
2463
|
title: e.name,
|
|
2462
2464
|
version: e.version,
|
|
2463
2465
|
type: e.type,
|
|
2464
2466
|
iconUrl: e.iconUrl
|
|
2465
2467
|
},
|
|
2466
|
-
history:
|
|
2467
|
-
isHistoryLoading:
|
|
2468
|
-
hasHistoryError:
|
|
2469
|
-
folderItems:
|
|
2470
|
-
selectedFolderPath:
|
|
2471
|
-
onSelectedFolderPathChange:
|
|
2472
|
-
onCreateFolder:
|
|
2468
|
+
history: He,
|
|
2469
|
+
isHistoryLoading: Ge,
|
|
2470
|
+
hasHistoryError: qe,
|
|
2471
|
+
folderItems: Y.folderItems,
|
|
2472
|
+
selectedFolderPath: Y.selectedFolderPath,
|
|
2473
|
+
onSelectedFolderPathChange: Y.setSelectedFolderPath,
|
|
2474
|
+
onCreateFolder: Y.handleCreateFolder,
|
|
2473
2475
|
expandedPaths: v,
|
|
2474
2476
|
onExpandedPathsChange: y,
|
|
2475
2477
|
loadingPaths: S,
|
|
2476
|
-
hasExistingPublicationInFolder:
|
|
2477
|
-
hasWriteAccess:
|
|
2478
|
-
isSubmitting:
|
|
2479
|
-
hasSubmitError:
|
|
2480
|
-
author:
|
|
2481
|
-
onAuthorChange:
|
|
2482
|
-
publishCredentials:
|
|
2483
|
-
onPublishCredentialsChange:
|
|
2484
|
-
rules:
|
|
2485
|
-
onRulesChange:
|
|
2478
|
+
hasExistingPublicationInFolder: Y.hasExistingPublicationInFolder,
|
|
2479
|
+
hasWriteAccess: Y.hasWriteAccess,
|
|
2480
|
+
isSubmitting: Y.isSubmitting,
|
|
2481
|
+
hasSubmitError: Y.hasSubmitError,
|
|
2482
|
+
author: Y.author,
|
|
2483
|
+
onAuthorChange: Y.setAuthor,
|
|
2484
|
+
publishCredentials: Y.publishCredentials,
|
|
2485
|
+
onPublishCredentialsChange: bt ? Y.setPublishCredentials : void 0,
|
|
2486
|
+
rules: Y.rules,
|
|
2487
|
+
onRulesChange: Y.setRules,
|
|
2486
2488
|
ruleSourceOptions: te,
|
|
2487
|
-
isRulesLoading:
|
|
2488
|
-
hasRulesLoadError:
|
|
2489
|
+
isRulesLoading: Y.isRulesLoading,
|
|
2490
|
+
hasRulesLoadError: Y.hasRulesLoadError,
|
|
2489
2491
|
labels: O,
|
|
2490
2492
|
styles: { colors: {
|
|
2491
2493
|
summaryVersionTagBorder: z?.versionTagBorder,
|
|
@@ -2494,8 +2496,8 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
2494
2496
|
} }
|
|
2495
2497
|
})
|
|
2496
2498
|
}),
|
|
2497
|
-
!mn && /* @__PURE__ */
|
|
2498
|
-
/* @__PURE__ */
|
|
2499
|
+
!mn && /* @__PURE__ */ G(U, { children: [
|
|
2500
|
+
/* @__PURE__ */ W(In, {
|
|
2499
2501
|
item: e,
|
|
2500
2502
|
onUseInChat: l,
|
|
2501
2503
|
isPrimaryActionVisible: u,
|
|
@@ -2508,22 +2510,22 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
2508
2510
|
onOpenPublish: Gt,
|
|
2509
2511
|
isUnpublishVisible: Se,
|
|
2510
2512
|
hasPublishedFolders: zt,
|
|
2511
|
-
isPublishHistoryResolved: h == null ||
|
|
2512
|
-
onRequestPublishHistory:
|
|
2513
|
+
isPublishHistoryResolved: h == null || Ye,
|
|
2514
|
+
onRequestPublishHistory: vt,
|
|
2513
2515
|
onOpenUnpublish: xe ? Vt : void 0,
|
|
2514
2516
|
onEdit: se,
|
|
2515
|
-
onDownload:
|
|
2516
|
-
isDownloadVisible:
|
|
2517
|
-
isDownloadPrimary:
|
|
2518
|
-
onDelete:
|
|
2519
|
-
onUnshare: me ?
|
|
2520
|
-
isUnshareVisible:
|
|
2521
|
-
onRevokeShare: _e ?
|
|
2517
|
+
onDownload: ce,
|
|
2518
|
+
isDownloadVisible: le,
|
|
2519
|
+
isDownloadPrimary: ue,
|
|
2520
|
+
onDelete: I ? Q : void 0,
|
|
2521
|
+
onUnshare: me ? Lt : void 0,
|
|
2522
|
+
isUnshareVisible: he,
|
|
2523
|
+
onRevokeShare: _e ? Rt : void 0,
|
|
2522
2524
|
onFetchRecipientsCount: ve,
|
|
2523
|
-
isRevokeShareVisible:
|
|
2525
|
+
isRevokeShareVisible: ye,
|
|
2524
2526
|
onLogin: Ce,
|
|
2525
2527
|
onLogout: we,
|
|
2526
|
-
onOpenCredentialsManagement:
|
|
2528
|
+
onOpenCredentialsManagement: Nt,
|
|
2527
2529
|
onRequestLogout: Ft,
|
|
2528
2530
|
texts: R,
|
|
2529
2531
|
detailsStyles: Te,
|
|
@@ -2531,82 +2533,82 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
2531
2533
|
}),
|
|
2532
2534
|
e.credentials != null && (() => {
|
|
2533
2535
|
let t = m(e.credentials);
|
|
2534
|
-
return t != null && /* @__PURE__ */
|
|
2536
|
+
return t != null && /* @__PURE__ */ W("div", {
|
|
2535
2537
|
className: "px-6",
|
|
2536
|
-
children: /* @__PURE__ */
|
|
2538
|
+
children: /* @__PURE__ */ W(bn, {
|
|
2537
2539
|
state: t,
|
|
2538
2540
|
authenticationType: e.credentials.authenticationType,
|
|
2539
2541
|
texts: R
|
|
2540
2542
|
})
|
|
2541
2543
|
});
|
|
2542
2544
|
})(),
|
|
2543
|
-
/* @__PURE__ */
|
|
2545
|
+
/* @__PURE__ */ G("div", {
|
|
2544
2546
|
className: "flex items-center px-6",
|
|
2545
|
-
children: [/* @__PURE__ */
|
|
2547
|
+
children: [/* @__PURE__ */ W(Ie, {
|
|
2546
2548
|
tabs: Zt,
|
|
2547
|
-
activeTabId:
|
|
2548
|
-
onTabChange:
|
|
2549
|
-
}), i && /* @__PURE__ */
|
|
2549
|
+
activeTabId: B,
|
|
2550
|
+
onTabChange: ze
|
|
2551
|
+
}), i && /* @__PURE__ */ W("div", {
|
|
2550
2552
|
role: "status",
|
|
2551
2553
|
"aria-label": R?.detailsLoadingAriaLabel ?? "Loading details",
|
|
2552
2554
|
className: "shrink-0",
|
|
2553
|
-
children: /* @__PURE__ */
|
|
2555
|
+
children: /* @__PURE__ */ W(Pe, {
|
|
2554
2556
|
showTitle: !1,
|
|
2555
2557
|
paragraph: {
|
|
2556
2558
|
rows: 1,
|
|
2557
2559
|
width: "72px"
|
|
2558
2560
|
},
|
|
2559
2561
|
active: !0,
|
|
2560
|
-
color:
|
|
2562
|
+
color: Tn.skeletonColor
|
|
2561
2563
|
})
|
|
2562
2564
|
})]
|
|
2563
2565
|
}),
|
|
2564
|
-
/* @__PURE__ */
|
|
2565
|
-
className: k("min-h-0 flex-1 overflow-y-auto",
|
|
2566
|
+
/* @__PURE__ */ G("div", {
|
|
2567
|
+
className: k("min-h-0 flex-1 overflow-y-auto", B !== K.Overview && "px-6"),
|
|
2566
2568
|
children: [
|
|
2567
|
-
|
|
2569
|
+
B === K.About && /* @__PURE__ */ W(Ln, {
|
|
2568
2570
|
content: e.description,
|
|
2569
2571
|
topics: e.topics,
|
|
2570
2572
|
detailsStyles: Te
|
|
2571
2573
|
}),
|
|
2572
|
-
|
|
2573
|
-
content:
|
|
2574
|
-
filePreview:
|
|
2575
|
-
filePreviewContent:
|
|
2576
|
-
description:
|
|
2577
|
-
files:
|
|
2578
|
-
selectedFileId:
|
|
2579
|
-
onSelectFile: (e) => void
|
|
2580
|
-
isFileLoading:
|
|
2581
|
-
expandedFolderIds:
|
|
2582
|
-
onToggleFolder:
|
|
2583
|
-
isFileSelectorOpen:
|
|
2584
|
-
onFileSelectorOpenChange:
|
|
2574
|
+
B === K.Content && /* @__PURE__ */ W(Hn, {
|
|
2575
|
+
content: Qe?.content ?? "",
|
|
2576
|
+
filePreview: gt(),
|
|
2577
|
+
filePreviewContent: _t,
|
|
2578
|
+
description: Qe?.description ?? e.description,
|
|
2579
|
+
files: Qe?.files,
|
|
2580
|
+
selectedFileId: dt,
|
|
2581
|
+
onSelectFile: (e) => void ut(e),
|
|
2582
|
+
isFileLoading: nt,
|
|
2583
|
+
expandedFolderIds: V,
|
|
2584
|
+
onToggleFolder: lt,
|
|
2585
|
+
isFileSelectorOpen: at,
|
|
2586
|
+
onFileSelectorOpenChange: ot,
|
|
2585
2587
|
fileSelectorAriaLabel: R?.contentFileSelectorAriaLabel,
|
|
2586
2588
|
fileCountLabel: R?.contentFileCountLabel,
|
|
2587
2589
|
fileLoadingLabel: R?.contentFileLoadingLabel,
|
|
2588
2590
|
fileUnsupportedLabel: R?.contentFileUnsupportedLabel,
|
|
2589
2591
|
detailsStyles: Te
|
|
2590
2592
|
}),
|
|
2591
|
-
|
|
2593
|
+
B === K.Overview && /* @__PURE__ */ W(nr, {
|
|
2592
2594
|
sections: e.details?.overview?.sections,
|
|
2593
2595
|
sectionClassName: Oe,
|
|
2594
2596
|
labelClassName: ke,
|
|
2595
|
-
valueClassName:
|
|
2597
|
+
valueClassName: Ae,
|
|
2596
2598
|
valueTrueClassName: Me,
|
|
2597
2599
|
yesLabel: $t,
|
|
2598
2600
|
noLabel: en
|
|
2599
2601
|
}),
|
|
2600
|
-
|
|
2602
|
+
B === K.Pricing && /* @__PURE__ */ W(rr, {
|
|
2601
2603
|
pricing: e.details?.pricing,
|
|
2602
2604
|
pricesSectionLabel: R?.pricingPricesSectionLabel,
|
|
2603
2605
|
limitsSectionLabel: R?.pricingLimitsSectionLabel
|
|
2604
2606
|
}),
|
|
2605
|
-
|
|
2607
|
+
B === K.Limits && /* @__PURE__ */ W(tr, {
|
|
2606
2608
|
limits: e.details?.limits,
|
|
2607
2609
|
footerNote: Ee
|
|
2608
2610
|
}),
|
|
2609
|
-
|
|
2611
|
+
B === K.Api && lr(e.details?.api) && /* @__PURE__ */ W(nn, {
|
|
2610
2612
|
api: e.details?.api,
|
|
2611
2613
|
resourceSectionLabel: R?.apiResourceSectionLabel,
|
|
2612
2614
|
snippetSectionLabel: R?.apiSnippetSectionLabel,
|
|
@@ -2618,34 +2620,34 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
2618
2620
|
copyAriaLabel: R?.copyCodeAriaLabel,
|
|
2619
2621
|
copiedStatusLabel: R?.copiedCodeStatusLabel
|
|
2620
2622
|
}),
|
|
2621
|
-
|
|
2623
|
+
B === K.Tools && /* @__PURE__ */ W(sr, { tools: e.details?.tools })
|
|
2622
2624
|
]
|
|
2623
2625
|
})
|
|
2624
2626
|
] })
|
|
2625
2627
|
]
|
|
2626
2628
|
}),
|
|
2627
|
-
fn && /* @__PURE__ */
|
|
2629
|
+
fn && /* @__PURE__ */ W(an, {
|
|
2628
2630
|
confirmLabel: dn.confirmLabel,
|
|
2629
2631
|
cancelLabel: un,
|
|
2630
2632
|
variant: dn.variant,
|
|
2631
|
-
isLoading:
|
|
2633
|
+
isLoading: Et,
|
|
2632
2634
|
isConfirmDisabled: pn,
|
|
2633
2635
|
loadingStatusLabel: dn.loadingStatusLabel,
|
|
2634
2636
|
onConfirm: Wt,
|
|
2635
2637
|
onCancel: Ut
|
|
2636
2638
|
}),
|
|
2637
|
-
!fn &&
|
|
2639
|
+
!fn && Be && /* @__PURE__ */ W(ft, {
|
|
2638
2640
|
version: e.version,
|
|
2639
|
-
hasExistingPublicationInFolder:
|
|
2640
|
-
isSubmitDisabled:
|
|
2641
|
-
isSubmitLoading:
|
|
2642
|
-
onCancel:
|
|
2641
|
+
hasExistingPublicationInFolder: Y.hasExistingPublicationInFolder,
|
|
2642
|
+
isSubmitDisabled: St.isSubmitDisabled,
|
|
2643
|
+
isSubmitLoading: St.isSubmitLoading,
|
|
2644
|
+
onCancel: Kt,
|
|
2643
2645
|
onSubmit: Yt,
|
|
2644
2646
|
labels: O
|
|
2645
2647
|
})
|
|
2646
2648
|
]
|
|
2647
2649
|
})] });
|
|
2648
|
-
},
|
|
2650
|
+
}, Sr = {
|
|
2649
2651
|
pageNav: "_pageNav_14qfn_1",
|
|
2650
2652
|
navBtn: "_navBtn_14qfn_6",
|
|
2651
2653
|
titleText: "_titleText_14qfn_23",
|
|
@@ -2660,8 +2662,8 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
2660
2662
|
favFadeIn: "_favFadeIn_14qfn_1",
|
|
2661
2663
|
cardLeaving: "_cardLeaving_14qfn_54",
|
|
2662
2664
|
cardFadeOut: "_cardFadeOut_14qfn_1"
|
|
2663
|
-
},
|
|
2664
|
-
let [m, h] =
|
|
2665
|
+
}, Cr = ({ 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 }) => {
|
|
2666
|
+
let [m, h] = P(t), [g, _] = P(!1), v = (t) => {
|
|
2665
2667
|
t.stopPropagation();
|
|
2666
2668
|
let r = !m;
|
|
2667
2669
|
h(r), r ? n?.(e.id, r) : _(!0);
|
|
@@ -2672,33 +2674,33 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
2672
2674
|
e,
|
|
2673
2675
|
g
|
|
2674
2676
|
]);
|
|
2675
|
-
return /* @__PURE__ */
|
|
2677
|
+
return /* @__PURE__ */ G(fe, {
|
|
2676
2678
|
"data-card-id": e.id,
|
|
2677
2679
|
role: y == null ? void 0 : "button",
|
|
2678
2680
|
tabIndex: y == null ? void 0 : 0,
|
|
2679
2681
|
"aria-label": e.name,
|
|
2680
|
-
className: k("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", g &&
|
|
2682
|
+
className: k("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", g && Sr.cardLeaving, f && Sr.selectedCard, Ct.favoriteCard),
|
|
2681
2683
|
onClick: y,
|
|
2682
2684
|
onKeyDown: b,
|
|
2683
2685
|
onAnimationEnd: g ? (t) => {
|
|
2684
2686
|
t.currentTarget === t.target && n?.(e.id, !1);
|
|
2685
2687
|
} : void 0,
|
|
2686
2688
|
children: [
|
|
2687
|
-
f && /* @__PURE__ */
|
|
2689
|
+
f && /* @__PURE__ */ W(He, {
|
|
2688
2690
|
size: I.SM,
|
|
2689
|
-
className: k("absolute end-3 top-3 shrink-0",
|
|
2691
|
+
className: k("absolute end-3 top-3 shrink-0", Sr.selectedCheck),
|
|
2690
2692
|
"aria-hidden": !0,
|
|
2691
2693
|
stroke: L
|
|
2692
2694
|
}),
|
|
2693
|
-
/* @__PURE__ */
|
|
2695
|
+
/* @__PURE__ */ W("div", {
|
|
2694
2696
|
className: "flex min-w-0 flex-1 flex-col items-start gap-1",
|
|
2695
|
-
children: /* @__PURE__ */
|
|
2697
|
+
children: /* @__PURE__ */ W(Nt, {
|
|
2696
2698
|
icon: e.iconUrl,
|
|
2697
2699
|
type: e.type,
|
|
2698
2700
|
name: e.name,
|
|
2699
2701
|
version: e.version,
|
|
2700
2702
|
lastUsed: e.lastUsed,
|
|
2701
|
-
size:
|
|
2703
|
+
size: yt.LG,
|
|
2702
2704
|
query: l,
|
|
2703
2705
|
className: "min-w-0 self-stretch",
|
|
2704
2706
|
styles: {
|
|
@@ -2709,22 +2711,22 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
2709
2711
|
lastUsedClassName: c
|
|
2710
2712
|
}
|
|
2711
2713
|
},
|
|
2712
|
-
iconOverlay: /* @__PURE__ */
|
|
2714
|
+
iconOverlay: /* @__PURE__ */ W(Q, {
|
|
2713
2715
|
credentials: e.credentials,
|
|
2714
2716
|
loggedOutLabel: p
|
|
2715
2717
|
})
|
|
2716
2718
|
})
|
|
2717
2719
|
}),
|
|
2718
|
-
r?.(e) !== !1 && /* @__PURE__ */
|
|
2720
|
+
r?.(e) !== !1 && /* @__PURE__ */ W(It, {
|
|
2719
2721
|
isStarred: m,
|
|
2720
|
-
size:
|
|
2722
|
+
size: ge.Small,
|
|
2721
2723
|
onClick: v,
|
|
2722
2724
|
ariaLabel: m ? d : u,
|
|
2723
2725
|
className: "self-end"
|
|
2724
2726
|
})
|
|
2725
2727
|
]
|
|
2726
2728
|
});
|
|
2727
|
-
},
|
|
2729
|
+
}, wr = 2, Tr = (e) => {
|
|
2728
2730
|
let t = e.getBoundingClientRect(), n = window.scrollX, r = window.scrollY, i = window.getComputedStyle(e).transform;
|
|
2729
2731
|
if (!i || i === "none") return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
2730
2732
|
try {
|
|
@@ -2733,7 +2735,7 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
2733
2735
|
} catch {
|
|
2734
2736
|
return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
2735
2737
|
}
|
|
2736
|
-
},
|
|
2738
|
+
}, Er = ({ 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 }) => {
|
|
2737
2739
|
let h = o?.typography?.titleClassName ?? "dial-body-semi-text", g = o?.typography?.countClassName ?? "dial-tiny-semi-text", _ = ae({
|
|
2738
2740
|
"--cat-fav-title-text": o?.colors?.titleText,
|
|
2739
2741
|
"--cat-fav-count-text": o?.colors?.countText,
|
|
@@ -2746,11 +2748,11 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
2746
2748
|
"--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
|
|
2747
2749
|
"--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
|
|
2748
2750
|
"--cat-fav-page-nav-bg": o?.colors?.pageNavBackground
|
|
2749
|
-
}), v =
|
|
2751
|
+
}), v = M(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = P(1), x = St(), S = x * wr, C = (y - 1) * S, w = M(() => v.slice(C, C + S), [
|
|
2750
2752
|
v,
|
|
2751
2753
|
C,
|
|
2752
2754
|
S
|
|
2753
|
-
]), T = Math.ceil(v.length / S), ee = t ?? e.length, D =
|
|
2755
|
+
]), T = Math.ceil(v.length / S), ee = t ?? e.length, D = N(null), O = N(null), te = N(null), [ne, re] = P(), [ie, oe] = P(), se = N(x);
|
|
2754
2756
|
j(() => {
|
|
2755
2757
|
se.current !== x && (se.current = x, b(1), re(void 0), oe(void 0));
|
|
2756
2758
|
}, [x]), j(() => {
|
|
@@ -2761,34 +2763,34 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
2761
2763
|
T,
|
|
2762
2764
|
ne,
|
|
2763
2765
|
ie
|
|
2764
|
-
]),
|
|
2766
|
+
]), le(() => {
|
|
2765
2767
|
!te.current || !O.current || T <= 1 || y !== 1 || ne !== void 0 || (re(te.current.offsetHeight), oe(O.current.offsetHeight));
|
|
2766
2768
|
}, [
|
|
2767
2769
|
T,
|
|
2768
2770
|
y,
|
|
2769
2771
|
ne
|
|
2770
2772
|
]);
|
|
2771
|
-
let
|
|
2772
|
-
return
|
|
2773
|
+
let ce = N(/* @__PURE__ */ new Map()), A = N(y), ue = N(x), de = N(0), F = N(!1);
|
|
2774
|
+
return le(() => {
|
|
2773
2775
|
if (!te.current || s) return;
|
|
2774
|
-
if (D.current && !
|
|
2776
|
+
if (D.current && !F.current) {
|
|
2775
2777
|
let e = D.current;
|
|
2776
2778
|
e.style.height = "", e.style.transition = "";
|
|
2777
2779
|
}
|
|
2778
|
-
let e =
|
|
2779
|
-
|
|
2780
|
+
let e = A.current !== y, t = ue.current !== x;
|
|
2781
|
+
A.current = y, ue.current = x;
|
|
2780
2782
|
let n = te.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
|
|
2781
2783
|
if (n.forEach((e) => {
|
|
2782
|
-
r.set(e.dataset.cardId,
|
|
2784
|
+
r.set(e.dataset.cardId, Tr(e));
|
|
2783
2785
|
}), !e && !t) {
|
|
2784
|
-
let e = O.current, t =
|
|
2786
|
+
let e = O.current, t = de.current, i = 0;
|
|
2785
2787
|
if (e) {
|
|
2786
2788
|
let t = e.style.height;
|
|
2787
2789
|
t && (e.style.height = ""), i = e.offsetHeight, t && (e.style.height = t);
|
|
2788
2790
|
}
|
|
2789
2791
|
let a = e != null && t > 0 && Math.abs(i - t) > 2, o = i > t ? 280 : 220, s = [];
|
|
2790
2792
|
if (n.forEach((e) => {
|
|
2791
|
-
let t = e.dataset.cardId, n =
|
|
2793
|
+
let t = e.dataset.cardId, n = ce.current.get(t), i = r.get(t);
|
|
2792
2794
|
if (!n || !i) return;
|
|
2793
2795
|
let o = n.left - i.left, c = n.top - i.top;
|
|
2794
2796
|
!a && Math.abs(c) > .5 || Math.abs(o) < .5 && Math.abs(c) < .5 || (e.style.transition = "none", e.style.transform = `translate(${o}px, ${c}px)`, s.push(e));
|
|
@@ -2804,38 +2806,38 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
2804
2806
|
e.addEventListener("transitionend", t);
|
|
2805
2807
|
}
|
|
2806
2808
|
}
|
|
2807
|
-
if (
|
|
2809
|
+
if (ce.current = r, O.current) {
|
|
2808
2810
|
let e = O.current, t = e.style.height ? parseFloat(e.style.height) : NaN;
|
|
2809
|
-
|
|
2811
|
+
de.current = Number.isNaN(t) ? e.offsetHeight : t;
|
|
2810
2812
|
}
|
|
2811
2813
|
}, [
|
|
2812
2814
|
w,
|
|
2813
2815
|
y,
|
|
2814
2816
|
x,
|
|
2815
2817
|
s
|
|
2816
|
-
]),
|
|
2818
|
+
]), le(() => {
|
|
2817
2819
|
let e = D.current;
|
|
2818
2820
|
if (!e) return;
|
|
2819
2821
|
let t = e.offsetHeight;
|
|
2820
2822
|
if (t === 0) return;
|
|
2821
|
-
|
|
2823
|
+
F.current = !0, e.style.height = "0px", e.offsetHeight, e.style.transition = "height 300ms cubic-bezier(0, 0, 0.2, 1)", e.style.height = `${t}px`;
|
|
2822
2824
|
let n = (t) => {
|
|
2823
2825
|
t.target !== e || t.propertyName !== "height" || r();
|
|
2824
2826
|
}, r = () => {
|
|
2825
|
-
|
|
2827
|
+
F.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
|
|
2826
2828
|
}, i = setTimeout(r, 400);
|
|
2827
2829
|
return e.addEventListener("transitionend", n), () => {
|
|
2828
2830
|
clearTimeout(i), e.removeEventListener("transitionend", n);
|
|
2829
2831
|
};
|
|
2830
|
-
}, []),
|
|
2832
|
+
}, []), le(() => {
|
|
2831
2833
|
if (!s || !D.current) return;
|
|
2832
2834
|
let e = D.current, t = e.offsetHeight;
|
|
2833
2835
|
t !== 0 && (e.style.height = `${t}px`, e.offsetHeight, e.style.transition = "height 260ms ease-in", e.style.height = "0px");
|
|
2834
|
-
}, [s]), /* @__PURE__ */
|
|
2836
|
+
}, [s]), /* @__PURE__ */ W("div", {
|
|
2835
2837
|
ref: D,
|
|
2836
|
-
children: /* @__PURE__ */
|
|
2838
|
+
children: /* @__PURE__ */ G("section", {
|
|
2837
2839
|
ref: O,
|
|
2838
|
-
className: k("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2",
|
|
2840
|
+
className: k("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", Sr.section, s && Sr.sectionLeaving),
|
|
2839
2841
|
style: {
|
|
2840
2842
|
..._,
|
|
2841
2843
|
minHeight: ie
|
|
@@ -2843,39 +2845,39 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
2843
2845
|
onAnimationEnd: (e) => {
|
|
2844
2846
|
e.target === O.current && s && c?.();
|
|
2845
2847
|
},
|
|
2846
|
-
children: [/* @__PURE__ */
|
|
2848
|
+
children: [/* @__PURE__ */ W(E, {
|
|
2847
2849
|
title: n,
|
|
2848
2850
|
postfix: ee,
|
|
2849
|
-
titleClassName: k(h,
|
|
2850
|
-
postfixClassName: k(g,
|
|
2851
|
-
trailing: T > 1 ? /* @__PURE__ */
|
|
2852
|
-
className: k("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]",
|
|
2851
|
+
titleClassName: k(h, Sr.titleText),
|
|
2852
|
+
postfixClassName: k(g, Sr.countText),
|
|
2853
|
+
trailing: T > 1 ? /* @__PURE__ */ G("div", {
|
|
2854
|
+
className: k("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", Sr.pageNav),
|
|
2853
2855
|
children: [
|
|
2854
|
-
/* @__PURE__ */
|
|
2856
|
+
/* @__PURE__ */ W("button", {
|
|
2855
2857
|
"aria-label": l,
|
|
2856
2858
|
disabled: y === 1,
|
|
2857
2859
|
onClick: () => b((e) => e - 1),
|
|
2858
|
-
className: k("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent",
|
|
2859
|
-
children: /* @__PURE__ */
|
|
2860
|
+
className: k("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", Sr.navBtn),
|
|
2861
|
+
children: /* @__PURE__ */ W(We, {
|
|
2860
2862
|
size: 14,
|
|
2861
2863
|
className: "rtl:scale-x-[-1]",
|
|
2862
2864
|
stroke: L
|
|
2863
2865
|
})
|
|
2864
2866
|
}),
|
|
2865
|
-
/* @__PURE__ */
|
|
2866
|
-
className: k("min-w-[32px] select-none px-1 text-center", g,
|
|
2867
|
+
/* @__PURE__ */ G("span", {
|
|
2868
|
+
className: k("min-w-[32px] select-none px-1 text-center", g, Sr.countText),
|
|
2867
2869
|
children: [
|
|
2868
2870
|
y,
|
|
2869
2871
|
" / ",
|
|
2870
2872
|
T
|
|
2871
2873
|
]
|
|
2872
2874
|
}),
|
|
2873
|
-
/* @__PURE__ */
|
|
2875
|
+
/* @__PURE__ */ W("button", {
|
|
2874
2876
|
"aria-label": u,
|
|
2875
2877
|
disabled: y === T,
|
|
2876
2878
|
onClick: () => b((e) => e + 1),
|
|
2877
|
-
className: k("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent",
|
|
2878
|
-
children: /* @__PURE__ */
|
|
2879
|
+
className: k("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", Sr.navBtn),
|
|
2880
|
+
children: /* @__PURE__ */ W(Ge, {
|
|
2879
2881
|
size: 14,
|
|
2880
2882
|
className: "rtl:scale-x-[-1]",
|
|
2881
2883
|
stroke: L
|
|
@@ -2883,14 +2885,14 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
2883
2885
|
})
|
|
2884
2886
|
]
|
|
2885
2887
|
}) : void 0
|
|
2886
|
-
}), /* @__PURE__ */
|
|
2888
|
+
}), /* @__PURE__ */ W("div", {
|
|
2887
2889
|
ref: te,
|
|
2888
|
-
className: k("grid content-start gap-5",
|
|
2890
|
+
className: k("grid content-start gap-5", Sr.gridPage),
|
|
2889
2891
|
style: {
|
|
2890
2892
|
gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
|
|
2891
2893
|
minHeight: ne
|
|
2892
2894
|
},
|
|
2893
|
-
children: w.map((e) => /* @__PURE__ */
|
|
2895
|
+
children: w.map((e) => /* @__PURE__ */ W(Cr, {
|
|
2894
2896
|
item: e,
|
|
2895
2897
|
onToggle: r,
|
|
2896
2898
|
isFavoriteVisible: i,
|
|
@@ -2903,108 +2905,108 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
2903
2905
|
})]
|
|
2904
2906
|
})
|
|
2905
2907
|
});
|
|
2906
|
-
},
|
|
2907
|
-
listContainer: "
|
|
2908
|
-
gridClip: "
|
|
2909
|
-
favHeader: "
|
|
2910
|
-
starFilledIcon: "
|
|
2911
|
-
folderIcon: "
|
|
2912
|
-
selectedCheck: "
|
|
2913
|
-
starToggleOff: "
|
|
2914
|
-
selectedRow: "
|
|
2915
|
-
},
|
|
2908
|
+
}, Dr = {
|
|
2909
|
+
listContainer: "_listContainer_lksnp_1",
|
|
2910
|
+
gridClip: "_gridClip_lksnp_6",
|
|
2911
|
+
favHeader: "_favHeader_lksnp_35",
|
|
2912
|
+
starFilledIcon: "_starFilledIcon_lksnp_39",
|
|
2913
|
+
folderIcon: "_folderIcon_lksnp_43",
|
|
2914
|
+
selectedCheck: "_selectedCheck_lksnp_47",
|
|
2915
|
+
starToggleOff: "_starToggleOff_lksnp_51",
|
|
2916
|
+
selectedRow: "_selectedRow_lksnp_64"
|
|
2917
|
+
}, Or = ({ data: e }) => e ? /* @__PURE__ */ W("div", {
|
|
2916
2918
|
className: "flex h-full items-center",
|
|
2917
|
-
children: /* @__PURE__ */
|
|
2918
|
-
}) : null,
|
|
2919
|
+
children: /* @__PURE__ */ W(T, { type: e.type })
|
|
2920
|
+
}) : null, kr = " / ", Ar = ({ data: e, context: t }) => {
|
|
2919
2921
|
if (!e || e.folder.length === 0) return null;
|
|
2920
|
-
let n = e.folder.join(
|
|
2921
|
-
return /* @__PURE__ */
|
|
2922
|
+
let n = e.folder.join(kr), r = e.folder[e.folder.length - 1], i = e.folder.length > 1, a = t?.typography?.folderClassName ?? "dial-small-text", o = t?.typography?.folderLastSegmentClassName ?? "dial-small-semi-text";
|
|
2923
|
+
return /* @__PURE__ */ G("div", {
|
|
2922
2924
|
className: "flex h-full w-full min-w-0 items-center gap-1.5",
|
|
2923
2925
|
children: [
|
|
2924
|
-
/* @__PURE__ */
|
|
2926
|
+
/* @__PURE__ */ W(Xe, {
|
|
2925
2927
|
size: I.SM,
|
|
2926
2928
|
stroke: L,
|
|
2927
|
-
className: k("shrink-0",
|
|
2929
|
+
className: k("shrink-0", Dr.folderIcon),
|
|
2928
2930
|
"aria-hidden": !0
|
|
2929
2931
|
}),
|
|
2930
|
-
/* @__PURE__ */
|
|
2931
|
-
tooltip: /* @__PURE__ */
|
|
2932
|
+
/* @__PURE__ */ W(Re, {
|
|
2933
|
+
tooltip: /* @__PURE__ */ W("span", {
|
|
2932
2934
|
className: a,
|
|
2933
2935
|
children: n
|
|
2934
2936
|
}),
|
|
2935
2937
|
hideTooltip: !i,
|
|
2936
2938
|
triggerClassName: "min-w-0 flex-1",
|
|
2937
|
-
children: /* @__PURE__ */
|
|
2939
|
+
children: /* @__PURE__ */ W(_e, {
|
|
2938
2940
|
text: r,
|
|
2939
2941
|
className: o,
|
|
2940
2942
|
hideTooltip: i
|
|
2941
2943
|
})
|
|
2942
2944
|
}),
|
|
2943
|
-
i && /* @__PURE__ */
|
|
2945
|
+
i && /* @__PURE__ */ W("span", {
|
|
2944
2946
|
className: "sr-only",
|
|
2945
2947
|
children: n
|
|
2946
2948
|
})
|
|
2947
2949
|
]
|
|
2948
2950
|
});
|
|
2949
|
-
},
|
|
2951
|
+
}, jr = ({ data: e, context: t }) => {
|
|
2950
2952
|
let n = t?.searchQuery ?? "", r = t?.typography, i = r?.nameClassName ?? "dial-small-semi-text", a = r?.versionClassName ?? "dial-tiny-text", o = e != null && e.id === t?.selectedItemId;
|
|
2951
|
-
return e ? /* @__PURE__ */
|
|
2953
|
+
return e ? /* @__PURE__ */ G("div", {
|
|
2952
2954
|
className: "flex h-full w-full min-w-0 items-center gap-2.5",
|
|
2953
|
-
children: [/* @__PURE__ */
|
|
2955
|
+
children: [/* @__PURE__ */ G("div", {
|
|
2954
2956
|
className: "relative shrink-0",
|
|
2955
|
-
children: [/* @__PURE__ */
|
|
2957
|
+
children: [/* @__PURE__ */ W(C, {
|
|
2956
2958
|
src: e.iconUrl,
|
|
2957
2959
|
size: 36,
|
|
2958
2960
|
initialsName: e.name,
|
|
2959
2961
|
styles: { badgeClassName: "rounded-[10px]" }
|
|
2960
|
-
}), /* @__PURE__ */
|
|
2962
|
+
}), /* @__PURE__ */ W(Q, {
|
|
2961
2963
|
credentials: e.credentials,
|
|
2962
2964
|
loggedOutLabel: t?.credentialsBadgeLoggedOutLabel
|
|
2963
2965
|
})]
|
|
2964
|
-
}), /* @__PURE__ */
|
|
2966
|
+
}), /* @__PURE__ */ W(E, {
|
|
2965
2967
|
title: e.name,
|
|
2966
2968
|
postfix: e.version,
|
|
2967
2969
|
postfixClassName: a,
|
|
2968
2970
|
query: n,
|
|
2969
2971
|
titleClassName: i,
|
|
2970
2972
|
className: "min-w-0 flex-1 items-baseline gap-1.5",
|
|
2971
|
-
trailing: o ? /* @__PURE__ */
|
|
2973
|
+
trailing: o ? /* @__PURE__ */ W(He, {
|
|
2972
2974
|
size: I.SM,
|
|
2973
|
-
className: k("shrink-0",
|
|
2975
|
+
className: k("shrink-0", Dr.selectedCheck),
|
|
2974
2976
|
"aria-hidden": !0,
|
|
2975
2977
|
stroke: L
|
|
2976
2978
|
}) : void 0
|
|
2977
2979
|
})]
|
|
2978
2980
|
}) : null;
|
|
2979
|
-
},
|
|
2980
|
-
let [n, r] =
|
|
2981
|
+
}, Mr = ({ data: e, context: t }) => {
|
|
2982
|
+
let [n, r] = P(e?.isStarred ?? !1);
|
|
2981
2983
|
return j(() => {
|
|
2982
2984
|
r(e?.isStarred ?? !1);
|
|
2983
|
-
}, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */
|
|
2984
|
-
className: "flex
|
|
2985
|
-
children: /* @__PURE__ */
|
|
2985
|
+
}, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ W("div", {
|
|
2986
|
+
className: "flex size-full items-center justify-end",
|
|
2987
|
+
children: /* @__PURE__ */ W(It, {
|
|
2986
2988
|
isStarred: n,
|
|
2987
2989
|
onClick: (i) => {
|
|
2988
2990
|
i.stopPropagation();
|
|
2989
2991
|
let a = !n;
|
|
2990
2992
|
r(a), t?.onToggleFavorite?.(e.id, a);
|
|
2991
2993
|
},
|
|
2992
|
-
className: n ? void 0 :
|
|
2994
|
+
className: n ? void 0 : Dr.starToggleOff
|
|
2993
2995
|
})
|
|
2994
2996
|
});
|
|
2995
|
-
},
|
|
2997
|
+
}, Nr = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ W("div", {
|
|
2996
2998
|
className: "flex h-full w-full min-w-0 items-center",
|
|
2997
|
-
children: /* @__PURE__ */
|
|
2998
|
-
}),
|
|
2999
|
+
children: /* @__PURE__ */ W(Bt, { topics: e.topics })
|
|
3000
|
+
}), Pr = {
|
|
2999
3001
|
folder: (e) => e !== x.Model,
|
|
3000
3002
|
tags: () => !0,
|
|
3001
3003
|
favorite: () => !0
|
|
3002
|
-
},
|
|
3004
|
+
}, Fr = (e, t) => Object.fromEntries([
|
|
3003
3005
|
"folder",
|
|
3004
3006
|
"tags",
|
|
3005
3007
|
"favorite"
|
|
3006
|
-
].map((n) => [n, (t?.[n] ??
|
|
3007
|
-
let r =
|
|
3008
|
+
].map((n) => [n, (t?.[n] ?? Pr[n])(e)])), Ir = (e, t = !1, n) => {
|
|
3009
|
+
let r = Fr(e, n);
|
|
3008
3010
|
return [
|
|
3009
3011
|
{
|
|
3010
3012
|
headerName: "Name",
|
|
@@ -3012,7 +3014,7 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
3012
3014
|
minWidth: 220,
|
|
3013
3015
|
field: "name",
|
|
3014
3016
|
filter: !1,
|
|
3015
|
-
cellRenderer:
|
|
3017
|
+
cellRenderer: jr,
|
|
3016
3018
|
valueGetter: (e) => e.data?.name
|
|
3017
3019
|
},
|
|
3018
3020
|
{
|
|
@@ -3022,7 +3024,7 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
3022
3024
|
field: "type",
|
|
3023
3025
|
filter: !1,
|
|
3024
3026
|
sortable: !1,
|
|
3025
|
-
cellRenderer:
|
|
3027
|
+
cellRenderer: Or,
|
|
3026
3028
|
valueGetter: (e) => e.data?.type
|
|
3027
3029
|
},
|
|
3028
3030
|
{
|
|
@@ -3032,7 +3034,7 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
3032
3034
|
minWidth: 170,
|
|
3033
3035
|
filter: !1,
|
|
3034
3036
|
hide: !r.folder,
|
|
3035
|
-
cellRenderer:
|
|
3037
|
+
cellRenderer: Ar,
|
|
3036
3038
|
valueGetter: (e) => e.data?.folder
|
|
3037
3039
|
},
|
|
3038
3040
|
{
|
|
@@ -3043,7 +3045,7 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
3043
3045
|
filter: !1,
|
|
3044
3046
|
sortable: !1,
|
|
3045
3047
|
hide: !r.tags,
|
|
3046
|
-
cellRenderer:
|
|
3048
|
+
cellRenderer: Nr,
|
|
3047
3049
|
valueGetter: (e) => e.data?.topics
|
|
3048
3050
|
},
|
|
3049
3051
|
{
|
|
@@ -3055,16 +3057,15 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
3055
3057
|
sortable: !1,
|
|
3056
3058
|
resizable: !1,
|
|
3057
3059
|
hide: t || !r.favorite,
|
|
3058
|
-
headerClass:
|
|
3059
|
-
cellRenderer:
|
|
3060
|
+
headerClass: Dr.favHeader,
|
|
3061
|
+
cellRenderer: Mr
|
|
3060
3062
|
}
|
|
3061
3063
|
];
|
|
3062
|
-
},
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
let m = a?.typography ?? {}, h = a?.colors, g = {
|
|
3064
|
+
}, Lr = 60, Rr = {}, zr = (e) => e.id, Br = (e) => e.items.length === 0 ? /* @__PURE__ */ W("div", {
|
|
3065
|
+
className: B("flex size-full flex-col items-center justify-center", Ct.listView),
|
|
3066
|
+
children: /* @__PURE__ */ W(ne, { label: e.emptyStateTitle ?? "No results" })
|
|
3067
|
+
}) : /* @__PURE__ */ W(Vr, { ...e }), Vr = ({ items: e, type: t, query: n = "", ariaLabel: r = "Catalog", emptyStateTitle: i, styles: a, onToggleFavorite: o, isFavoriteVisible: s, onItemClick: c, stickyHeaderTop: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f = !1, columnVisibility: p }) => {
|
|
3068
|
+
let m = a?.typography ?? Rr, h = a?.colors, g = {
|
|
3068
3069
|
"--cat-list-bg": h?.background,
|
|
3069
3070
|
"--cat-list-border": h?.border,
|
|
3070
3071
|
"--cat-list-header-bg": h?.headerBackground,
|
|
@@ -3076,69 +3077,84 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
3076
3077
|
"--cat-list-selected-bg": h?.selectedRowBackground,
|
|
3077
3078
|
"--cat-list-selected-check": h?.selectedRowCheckIcon,
|
|
3078
3079
|
...l == null ? {} : { "--list-header-sticky-top": `${l}px` }
|
|
3079
|
-
}, _ =
|
|
3080
|
+
}, _ = N(null), v = A((e) => {
|
|
3081
|
+
_.current = e;
|
|
3082
|
+
}, []), y = M(() => Ir(t, f, p), [
|
|
3083
|
+
t,
|
|
3084
|
+
f,
|
|
3085
|
+
p
|
|
3086
|
+
]), b = M(() => ({
|
|
3087
|
+
domLayout: "autoHeight",
|
|
3088
|
+
rowHeight: Lr,
|
|
3089
|
+
animateRows: !1,
|
|
3090
|
+
suppressAnimationFrame: !0,
|
|
3091
|
+
suppressScrollOnNewData: !0,
|
|
3092
|
+
defaultColDef: {
|
|
3093
|
+
filter: !1,
|
|
3094
|
+
floatingFilter: !1
|
|
3095
|
+
},
|
|
3096
|
+
context: {
|
|
3097
|
+
searchQuery: n,
|
|
3098
|
+
typography: m,
|
|
3099
|
+
onToggleFavorite: o,
|
|
3100
|
+
isFavoriteVisible: s,
|
|
3101
|
+
selectedItemId: u,
|
|
3102
|
+
credentialsBadgeLoggedOutLabel: d,
|
|
3103
|
+
isReadonly: f
|
|
3104
|
+
},
|
|
3105
|
+
onCellClicked: c ? (e) => {
|
|
3106
|
+
e.column.getColDef().field !== "isStarred" && e.data && c(e.data);
|
|
3107
|
+
} : void 0,
|
|
3108
|
+
rowClass: c ? "cursor-pointer" : void 0,
|
|
3109
|
+
getRowClass: (e) => e.data?.id === u ? Dr.selectedRow : void 0
|
|
3110
|
+
}), [
|
|
3111
|
+
n,
|
|
3112
|
+
m,
|
|
3113
|
+
o,
|
|
3114
|
+
s,
|
|
3115
|
+
u,
|
|
3116
|
+
d,
|
|
3117
|
+
f,
|
|
3118
|
+
c
|
|
3119
|
+
]), { containerRef: x, startRow: S, endRow: C } = At(e.length, Lr), w = M(() => e.slice(S, C), [
|
|
3080
3120
|
e,
|
|
3081
|
-
|
|
3082
|
-
|
|
3121
|
+
S,
|
|
3122
|
+
C
|
|
3083
3123
|
]);
|
|
3084
3124
|
return j(() => {
|
|
3085
3125
|
_.current?.refreshCells({ force: !0 });
|
|
3086
3126
|
}, [n]), j(() => {
|
|
3087
3127
|
_.current?.redrawRows();
|
|
3088
|
-
}, [u]),
|
|
3089
|
-
_.current?.setGridOption("domLayout", e.length > 0 ? "autoHeight" : "normal");
|
|
3090
|
-
}, [e]), /* @__PURE__ */ K("div", {
|
|
3128
|
+
}, [u]), /* @__PURE__ */ W("div", {
|
|
3091
3129
|
style: g,
|
|
3092
|
-
className:
|
|
3093
|
-
children: /* @__PURE__ */
|
|
3094
|
-
ref:
|
|
3095
|
-
className:
|
|
3130
|
+
className: B("w-full rounded-xl border", Dr.listContainer, Ct.listView),
|
|
3131
|
+
children: /* @__PURE__ */ G("div", {
|
|
3132
|
+
ref: x,
|
|
3133
|
+
className: B("rounded-xl [&_.ag-cell.ag-column-first]:ps-4 [&_.ag-cell.ag-column-last]:pe-4 [&_.ag-header-cell.ag-column-first]:ps-4 [&_.ag-header-cell.ag-column-last]:pe-4", Dr.gridClip),
|
|
3096
3134
|
children: [
|
|
3097
|
-
|
|
3098
|
-
style: { height:
|
|
3135
|
+
S > 0 && /* @__PURE__ */ W("div", {
|
|
3136
|
+
style: { height: S * Lr },
|
|
3099
3137
|
"aria-hidden": !0
|
|
3100
3138
|
}),
|
|
3101
|
-
/* @__PURE__ */
|
|
3102
|
-
columnDefs:
|
|
3103
|
-
rowData:
|
|
3104
|
-
getRowId:
|
|
3139
|
+
/* @__PURE__ */ W(gt, {
|
|
3140
|
+
columnDefs: y,
|
|
3141
|
+
rowData: w,
|
|
3142
|
+
getRowId: zr,
|
|
3105
3143
|
withoutHeaderBorders: !0,
|
|
3106
3144
|
wrapCustomCellRenderers: !1,
|
|
3107
|
-
onGridApiChange:
|
|
3108
|
-
_.current = e;
|
|
3109
|
-
},
|
|
3145
|
+
onGridApiChange: v,
|
|
3110
3146
|
emptyStateTitle: i,
|
|
3111
|
-
additionalGridOptions:
|
|
3112
|
-
rowHeight: Ir,
|
|
3113
|
-
defaultColDef: {
|
|
3114
|
-
filter: !1,
|
|
3115
|
-
floatingFilter: !1
|
|
3116
|
-
},
|
|
3117
|
-
context: {
|
|
3118
|
-
searchQuery: n,
|
|
3119
|
-
typography: m,
|
|
3120
|
-
onToggleFavorite: o,
|
|
3121
|
-
isFavoriteVisible: s,
|
|
3122
|
-
selectedItemId: u,
|
|
3123
|
-
credentialsBadgeLoggedOutLabel: d,
|
|
3124
|
-
isReadonly: f
|
|
3125
|
-
},
|
|
3126
|
-
onCellClicked: c ? (e) => {
|
|
3127
|
-
e.column.getColDef().field !== "isStarred" && e.data && c(e.data);
|
|
3128
|
-
} : void 0,
|
|
3129
|
-
rowClass: c ? "cursor-pointer" : void 0,
|
|
3130
|
-
getRowClass: (e) => e.data?.id === u ? Er.selectedRow : void 0
|
|
3131
|
-
},
|
|
3147
|
+
additionalGridOptions: b,
|
|
3132
3148
|
ariaLabel: r
|
|
3133
3149
|
}),
|
|
3134
|
-
|
|
3135
|
-
style: { height: (e.length -
|
|
3150
|
+
C < e.length && /* @__PURE__ */ W("div", {
|
|
3151
|
+
style: { height: (e.length - C) * Lr },
|
|
3136
3152
|
"aria-hidden": !0
|
|
3137
3153
|
})
|
|
3138
3154
|
]
|
|
3139
3155
|
})
|
|
3140
3156
|
});
|
|
3141
|
-
},
|
|
3157
|
+
}, Hr = {
|
|
3142
3158
|
filterBtn: "_filterBtn_1ngmc_2",
|
|
3143
3159
|
filterBtnActive: "_filterBtnActive_1ngmc_19",
|
|
3144
3160
|
filterBtnOpen: "_filterBtnOpen_1ngmc_23",
|
|
@@ -3150,14 +3166,14 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
3150
3166
|
divider: "_divider_1ngmc_58",
|
|
3151
3167
|
sectionLabel: "_sectionLabel_1ngmc_62",
|
|
3152
3168
|
footer: "_footer_1ngmc_66"
|
|
3153
|
-
},
|
|
3169
|
+
}, Ur = (e, t, n, r, i) => {
|
|
3154
3170
|
let a = e.size > 0;
|
|
3155
3171
|
return n && a ? `${r} · ${e.size}` : n ? r : a ? p(e, t, i) : i;
|
|
3156
|
-
},
|
|
3172
|
+
}, Wr = (e, t) => {
|
|
3157
3173
|
let n = new Set(t);
|
|
3158
3174
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
3159
|
-
},
|
|
3160
|
-
let f = (r ?? !1) || e.size > 0, [p, m] =
|
|
3175
|
+
}, Gr = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: a = "My", topicsLabel: o = "Topics", defaultLabel: s = "From", clearLabel: c = "Clear", applyLabel: l = "Apply", typography: u, colors: d }) => {
|
|
3176
|
+
let f = (r ?? !1) || e.size > 0, [p, m] = P(!1), h = ae({
|
|
3161
3177
|
"--cat-filter-btn-bg": d?.buttonBackground,
|
|
3162
3178
|
"--cat-filter-btn-border": d?.buttonBorder,
|
|
3163
3179
|
"--cat-filter-btn-border-hover": d?.buttonBorderHover,
|
|
@@ -3173,7 +3189,7 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
3173
3189
|
"--cat-filter-section-label": d?.sectionLabel,
|
|
3174
3190
|
"--cat-filter-divider": d?.divider,
|
|
3175
3191
|
"--cat-filter-footer-border": d?.footerBorder
|
|
3176
|
-
}), g =
|
|
3192
|
+
}), g = M(() => n == null ? [] : [...n].sort(), [n]), _ = Ur(e, n, r, a, s), [v, y] = P(() => new Set(e)), [b, x] = P(r ?? !1);
|
|
3177
3193
|
j(() => {
|
|
3178
3194
|
p && (y(new Set(e)), x(r ?? !1));
|
|
3179
3195
|
}, [
|
|
@@ -3181,7 +3197,7 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
3181
3197
|
e,
|
|
3182
3198
|
r
|
|
3183
3199
|
]);
|
|
3184
|
-
let S = g.length + 1, [C, w] =
|
|
3200
|
+
let S = g.length + 1, [C, w] = P(-1), T = N([]), ee = N(null), E = A((e) => {
|
|
3185
3201
|
let t = (e + S) % S;
|
|
3186
3202
|
w(t), T.current[t]?.focus();
|
|
3187
3203
|
}, [S]);
|
|
@@ -3204,13 +3220,13 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
3204
3220
|
}, re = () => {
|
|
3205
3221
|
t(/* @__PURE__ */ new Set()), i?.(!1), D(!1);
|
|
3206
3222
|
};
|
|
3207
|
-
return /* @__PURE__ */
|
|
3223
|
+
return /* @__PURE__ */ W(he, {
|
|
3208
3224
|
matchReferenceWidth: !1,
|
|
3209
3225
|
placement: "bottom-start",
|
|
3210
3226
|
open: p,
|
|
3211
3227
|
onOpenChange: D,
|
|
3212
3228
|
listClassName: "!bg-transparent !shadow-none !p-0",
|
|
3213
|
-
renderOverlay: () => /* @__PURE__ */
|
|
3229
|
+
renderOverlay: () => /* @__PURE__ */ G("div", {
|
|
3214
3230
|
role: "menu",
|
|
3215
3231
|
"aria-label": s,
|
|
3216
3232
|
tabIndex: -1,
|
|
@@ -3218,16 +3234,16 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
3218
3234
|
...h,
|
|
3219
3235
|
maxHeight: "calc(var(--fui-available-height, 9999px) - 8px)"
|
|
3220
3236
|
},
|
|
3221
|
-
className: k("flex min-w-[360px] flex-col rounded-xl p-[6px]",
|
|
3237
|
+
className: k("flex min-w-[360px] flex-col rounded-xl p-[6px]", Hr.overlay),
|
|
3222
3238
|
onKeyDown: te,
|
|
3223
3239
|
children: [
|
|
3224
|
-
/* @__PURE__ */
|
|
3240
|
+
/* @__PURE__ */ W(Te, {
|
|
3225
3241
|
role: "menuitemcheckbox",
|
|
3226
3242
|
"aria-checked": b,
|
|
3227
|
-
mark:
|
|
3243
|
+
mark: Ee.Checkbox,
|
|
3228
3244
|
selected: b,
|
|
3229
3245
|
label: a,
|
|
3230
|
-
labelClassName: k(
|
|
3246
|
+
labelClassName: k(Hr.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
3231
3247
|
className: "shrink-0",
|
|
3232
3248
|
tabIndex: C === 0 ? 0 : -1,
|
|
3233
3249
|
ref: (e) => {
|
|
@@ -3235,47 +3251,47 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
3235
3251
|
},
|
|
3236
3252
|
onClick: () => x(!b)
|
|
3237
3253
|
}),
|
|
3238
|
-
g.length > 0 && /* @__PURE__ */
|
|
3239
|
-
/* @__PURE__ */
|
|
3254
|
+
g.length > 0 && /* @__PURE__ */ G(U, { children: [
|
|
3255
|
+
/* @__PURE__ */ W("div", {
|
|
3240
3256
|
role: "separator",
|
|
3241
|
-
className: k("my-1 h-px",
|
|
3257
|
+
className: k("my-1 h-px", Hr.divider),
|
|
3242
3258
|
"aria-hidden": !0
|
|
3243
3259
|
}),
|
|
3244
|
-
/* @__PURE__ */
|
|
3245
|
-
className: k("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text",
|
|
3260
|
+
/* @__PURE__ */ W("div", {
|
|
3261
|
+
className: k("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Hr.sectionLabel),
|
|
3246
3262
|
"aria-hidden": !0,
|
|
3247
3263
|
children: o
|
|
3248
3264
|
}),
|
|
3249
|
-
/* @__PURE__ */
|
|
3265
|
+
/* @__PURE__ */ W("div", {
|
|
3250
3266
|
className: k(ie, "flex min-h-0 flex-col gap-1 overflow-y-auto"),
|
|
3251
3267
|
children: g.map((e, t) => {
|
|
3252
3268
|
let n = v.has(e), r = t + 1;
|
|
3253
|
-
return /* @__PURE__ */
|
|
3269
|
+
return /* @__PURE__ */ W(Te, {
|
|
3254
3270
|
role: "menuitemcheckbox",
|
|
3255
3271
|
"aria-checked": n,
|
|
3256
|
-
mark:
|
|
3272
|
+
mark: Ee.Checkbox,
|
|
3257
3273
|
selected: n,
|
|
3258
3274
|
label: e,
|
|
3259
|
-
labelClassName:
|
|
3275
|
+
labelClassName: Hr.rowLabel,
|
|
3260
3276
|
className: "shrink-0",
|
|
3261
3277
|
tabIndex: C === r ? 0 : -1,
|
|
3262
3278
|
ref: (e) => {
|
|
3263
3279
|
T.current[r] = e;
|
|
3264
3280
|
},
|
|
3265
|
-
onClick: () => y(
|
|
3281
|
+
onClick: () => y(Wr(e, v))
|
|
3266
3282
|
}, e);
|
|
3267
3283
|
})
|
|
3268
3284
|
})
|
|
3269
3285
|
] }),
|
|
3270
|
-
/* @__PURE__ */
|
|
3271
|
-
className: k("mt-1 flex shrink-0 items-center px-1 py-3",
|
|
3286
|
+
/* @__PURE__ */ G("div", {
|
|
3287
|
+
className: k("mt-1 flex shrink-0 items-center px-1 py-3", Hr.footer),
|
|
3272
3288
|
onKeyDown: (e) => {
|
|
3273
3289
|
(e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
|
|
3274
3290
|
},
|
|
3275
|
-
children: [/* @__PURE__ */
|
|
3291
|
+
children: [/* @__PURE__ */ W(ye, {
|
|
3276
3292
|
label: c,
|
|
3277
3293
|
onClick: re
|
|
3278
|
-
}), /* @__PURE__ */
|
|
3294
|
+
}), /* @__PURE__ */ W(ke, {
|
|
3279
3295
|
label: l,
|
|
3280
3296
|
className: "ms-auto",
|
|
3281
3297
|
onClick: ne
|
|
@@ -3283,49 +3299,49 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
3283
3299
|
})
|
|
3284
3300
|
]
|
|
3285
3301
|
}),
|
|
3286
|
-
children: /* @__PURE__ */
|
|
3302
|
+
children: /* @__PURE__ */ G("button", {
|
|
3287
3303
|
ref: ee,
|
|
3288
3304
|
type: "button",
|
|
3289
3305
|
"aria-haspopup": "menu",
|
|
3290
3306
|
"aria-expanded": p,
|
|
3291
3307
|
onKeyDown: O,
|
|
3292
3308
|
style: h,
|
|
3293
|
-
className: k("flex h-12 shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-lg px-[18px]",
|
|
3309
|
+
className: k("flex h-12 shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-lg px-[18px]", Hr.filterBtn, f && Hr.filterBtnActive, p && Hr.filterBtnOpen),
|
|
3294
3310
|
children: [
|
|
3295
|
-
/* @__PURE__ */
|
|
3311
|
+
/* @__PURE__ */ W(Ye, {
|
|
3296
3312
|
size: I.SM,
|
|
3297
3313
|
stroke: L,
|
|
3298
|
-
className: k("shrink-0",
|
|
3314
|
+
className: k("shrink-0", Hr.filterBtnFunnel),
|
|
3299
3315
|
"aria-hidden": !0
|
|
3300
3316
|
}),
|
|
3301
|
-
/* @__PURE__ */
|
|
3302
|
-
className: k(
|
|
3317
|
+
/* @__PURE__ */ W("span", {
|
|
3318
|
+
className: k(Hr.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
3303
3319
|
children: _
|
|
3304
3320
|
}),
|
|
3305
|
-
/* @__PURE__ */
|
|
3321
|
+
/* @__PURE__ */ W(Ue, {
|
|
3306
3322
|
size: 14,
|
|
3307
3323
|
stroke: L,
|
|
3308
|
-
className: k("shrink-0 transition-transform duration-150",
|
|
3324
|
+
className: k("shrink-0 transition-transform duration-150", Hr.filterBtnChevron, p && "rotate-180"),
|
|
3309
3325
|
"aria-hidden": !0
|
|
3310
3326
|
})
|
|
3311
3327
|
]
|
|
3312
3328
|
})
|
|
3313
3329
|
});
|
|
3314
|
-
},
|
|
3330
|
+
}, Kr = {
|
|
3315
3331
|
section: "_section_mh952_1",
|
|
3316
3332
|
divider: "_divider_mh952_5"
|
|
3317
|
-
},
|
|
3318
|
-
let w = a?.typography?.titleClassName ?? "dial-body-semi-text", T = a?.typography?.countClassName ?? "dial-tiny-semi-text", ee =
|
|
3319
|
-
value:
|
|
3320
|
-
icon: /* @__PURE__ */
|
|
3333
|
+
}, qr = ({ totalCount: e, viewMode: t, onViewModeChange: n, title: r = "Browse", browseHeaderRenderer: i, styles: a, query: o, onQueryChange: s, searchPlaceholder: c, gridViewLabel: l = "Grid view", listViewLabel: u = "List view", viewToggleLabel: d = "View mode", sortKey: f, sortOptions: p, onSortChange: m, sortLabel: h = "Sort", filters: g, onFiltersChange: _, filterValues: v, isMyAppsActive: y, onMyAppsChange: b, filterFromLabel: x, filterMyAppsLabel: S, filterTopicsLabel: C }) => {
|
|
3334
|
+
let w = a?.typography?.titleClassName ?? "dial-body-semi-text", T = a?.typography?.countClassName ?? "dial-tiny-semi-text", ee = M(() => [{
|
|
3335
|
+
value: Y.Grid,
|
|
3336
|
+
icon: /* @__PURE__ */ W(Qe, {
|
|
3321
3337
|
size: I.SM,
|
|
3322
3338
|
"aria-hidden": !0,
|
|
3323
3339
|
stroke: L
|
|
3324
3340
|
}),
|
|
3325
3341
|
"aria-label": l
|
|
3326
3342
|
}, {
|
|
3327
|
-
value:
|
|
3328
|
-
icon: /* @__PURE__ */
|
|
3343
|
+
value: Y.Cards,
|
|
3344
|
+
icon: /* @__PURE__ */ W($e, {
|
|
3329
3345
|
size: I.SM,
|
|
3330
3346
|
"aria-hidden": !0,
|
|
3331
3347
|
stroke: L
|
|
@@ -3333,10 +3349,10 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
3333
3349
|
"aria-label": u
|
|
3334
3350
|
}], [l, u]), D = (e) => {
|
|
3335
3351
|
s(e ?? "");
|
|
3336
|
-
}, O = p?.find((e) => e.value === f)?.label ?? h, te =
|
|
3352
|
+
}, O = p?.find((e) => e.value === f)?.label ?? h, te = M(() => (p ?? []).map((e) => ({
|
|
3337
3353
|
key: e.value,
|
|
3338
3354
|
label: e.label,
|
|
3339
|
-
mark:
|
|
3355
|
+
mark: Ee.Check,
|
|
3340
3356
|
checked: e.value === f,
|
|
3341
3357
|
onClick: () => m?.(e.value)
|
|
3342
3358
|
})), [
|
|
@@ -3344,11 +3360,11 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
3344
3360
|
f,
|
|
3345
3361
|
m
|
|
3346
3362
|
]);
|
|
3347
|
-
return /* @__PURE__ */
|
|
3363
|
+
return /* @__PURE__ */ G("div", {
|
|
3348
3364
|
className: "flex flex-col gap-3",
|
|
3349
|
-
children: [/* @__PURE__ */
|
|
3365
|
+
children: [/* @__PURE__ */ G("div", {
|
|
3350
3366
|
className: "flex items-center gap-2",
|
|
3351
|
-
children: [i ?? /* @__PURE__ */
|
|
3367
|
+
children: [i ?? /* @__PURE__ */ W(E, {
|
|
3352
3368
|
title: r,
|
|
3353
3369
|
postfix: e,
|
|
3354
3370
|
titleClassName: w,
|
|
@@ -3359,34 +3375,34 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
3359
3375
|
title: a?.colors?.titleText,
|
|
3360
3376
|
count: a?.colors?.countText
|
|
3361
3377
|
}
|
|
3362
|
-
}), /* @__PURE__ */
|
|
3378
|
+
}), /* @__PURE__ */ G("div", {
|
|
3363
3379
|
className: "ms-auto flex shrink-0 items-center gap-2",
|
|
3364
|
-
children: [/* @__PURE__ */
|
|
3380
|
+
children: [/* @__PURE__ */ W(Ne, {
|
|
3365
3381
|
"aria-label": d,
|
|
3366
3382
|
value: t,
|
|
3367
3383
|
onChange: n,
|
|
3368
3384
|
items: ee
|
|
3369
|
-
}), p != null && p.length > 0 && /* @__PURE__ */
|
|
3385
|
+
}), p != null && p.length > 0 && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("div", { className: k("h-4 w-px shrink-0", Kr.divider) }), /* @__PURE__ */ W(de, {
|
|
3370
3386
|
items: te,
|
|
3371
3387
|
label: O,
|
|
3372
|
-
variant:
|
|
3373
|
-
appearance:
|
|
3388
|
+
variant: F.Primary,
|
|
3389
|
+
appearance: ue.Ghost
|
|
3374
3390
|
})] })]
|
|
3375
3391
|
})]
|
|
3376
|
-
}), /* @__PURE__ */
|
|
3392
|
+
}), /* @__PURE__ */ G("div", {
|
|
3377
3393
|
className: "mb-5 flex items-center gap-3",
|
|
3378
|
-
children: [/* @__PURE__ */
|
|
3394
|
+
children: [/* @__PURE__ */ W("div", {
|
|
3379
3395
|
role: "search",
|
|
3380
3396
|
className: "flex-1",
|
|
3381
|
-
children: /* @__PURE__ */
|
|
3397
|
+
children: /* @__PURE__ */ W(Me, {
|
|
3382
3398
|
value: o,
|
|
3383
3399
|
onChange: D,
|
|
3384
|
-
size:
|
|
3400
|
+
size: ge.Large,
|
|
3385
3401
|
wrapperClassName: "dial-kit-input-large",
|
|
3386
3402
|
placeholder: c,
|
|
3387
3403
|
"aria-label": c
|
|
3388
3404
|
})
|
|
3389
|
-
}), /* @__PURE__ */
|
|
3405
|
+
}), /* @__PURE__ */ W(Gr, {
|
|
3390
3406
|
checked: g ?? /* @__PURE__ */ new Set(),
|
|
3391
3407
|
onChange: _ ?? (() => void 0),
|
|
3392
3408
|
values: v,
|
|
@@ -3399,12 +3415,12 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
3399
3415
|
})]
|
|
3400
3416
|
})]
|
|
3401
3417
|
});
|
|
3402
|
-
},
|
|
3418
|
+
}, Jr = ({ query: e, onQueryChange: t, searchPlaceholder: n = "Search models, tools, agents…", styles: r, filters: i, onFiltersChange: a, filterValues: o, isMyAppsActive: s, onMyAppsChange: c, filterFromLabel: l, filterMyAppsLabel: u, filterTopicsLabel: d, gridViewLabel: f, listViewLabel: p, viewToggleLabel: m, sortKey: h, sortOptions: g, onSortChange: _, sortLabel: v, ...y }) => {
|
|
3403
3419
|
let b = { "--cat-browse-divider": r?.colors?.divider };
|
|
3404
|
-
return /* @__PURE__ */
|
|
3405
|
-
className: k("flex-shrink-0 px-4",
|
|
3420
|
+
return /* @__PURE__ */ W("section", {
|
|
3421
|
+
className: k("flex-shrink-0 px-4", Kr.section, Ct.toolbar),
|
|
3406
3422
|
style: b,
|
|
3407
|
-
children: /* @__PURE__ */
|
|
3423
|
+
children: /* @__PURE__ */ W(qr, {
|
|
3408
3424
|
styles: r,
|
|
3409
3425
|
query: e,
|
|
3410
3426
|
onQueryChange: t,
|
|
@@ -3427,30 +3443,30 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
3427
3443
|
...y
|
|
3428
3444
|
})
|
|
3429
3445
|
});
|
|
3430
|
-
},
|
|
3446
|
+
}, Yr = {
|
|
3431
3447
|
root: "_root_1h83l_1",
|
|
3432
3448
|
heading: "_heading_1h83l_5",
|
|
3433
3449
|
headingTitle: "_headingTitle_1h83l_9"
|
|
3434
|
-
},
|
|
3435
|
-
let r =
|
|
3436
|
-
return t?.length ? /* @__PURE__ */
|
|
3450
|
+
}, Xr = ({ label: e, options: t, onClick: n }) => {
|
|
3451
|
+
let r = N(null);
|
|
3452
|
+
return t?.length ? /* @__PURE__ */ W("div", {
|
|
3437
3453
|
ref: r,
|
|
3438
|
-
children: /* @__PURE__ */
|
|
3439
|
-
appearance:
|
|
3454
|
+
children: /* @__PURE__ */ W(de, {
|
|
3455
|
+
appearance: ue.Solid,
|
|
3440
3456
|
label: e,
|
|
3441
|
-
variant:
|
|
3457
|
+
variant: F.Primary,
|
|
3442
3458
|
items: t
|
|
3443
3459
|
})
|
|
3444
|
-
}) : /* @__PURE__ */
|
|
3460
|
+
}) : /* @__PURE__ */ W(ke, {
|
|
3445
3461
|
label: e,
|
|
3446
|
-
iconBefore: /* @__PURE__ */
|
|
3462
|
+
iconBefore: /* @__PURE__ */ W(V, {
|
|
3447
3463
|
size: I.SM,
|
|
3448
3464
|
stroke: L
|
|
3449
3465
|
}),
|
|
3450
3466
|
onClick: n
|
|
3451
3467
|
});
|
|
3452
|
-
},
|
|
3453
|
-
let { typography:
|
|
3468
|
+
}, Zr = 3, Qr = 300, $r = ({ items: e, tabs: t, topicOptions: n, favorites: o, titles: c, browseHeaderRenderer: d, onToggleFavorite: p, isFavoriteVisible: m, columnVisibility: g, onUseInChat: v, isPrimaryActionVisible: y, onShare: b, isPublishVisible: x, isPublishPrimary: S, getPublishHistory: C, publishFolderItems: w, publishExpandedPaths: T, onPublishExpandedPathsChange: ee, publishLoadingPaths: E, hasPublishWriteAccess: D, publishDefaultAuthor: O, onPublish: te, onPublishSuccess: ne, onPublishError: re, onCreatePublishFolder: ie, publishLabels: ae, ruleSourceOptions: oe, onFetchExistingRules: se, shareOverlay: le, isShareVisible: ue, isSharePrimary: de, onFetchDetails: F, onEdit: fe, onDownload: pe, isDownloadVisible: I, isDownloadPrimary: L, onLoadContentFile: me, onLoadContentFilePreview: he, renderContentFilePreview: ge, onDelete: _e, onUnshare: ve, isUnshareVisible: ye, onRevokeShare: be, onFetchRecipientsCount: xe, isRevokeShareVisible: Se, onUnpublish: Ce, isUnpublishVisible: we, onLogin: R, onLogout: Te, onCreateClick: Ee, createOptions: De, hideCreateButton: Oe = !1, hidePageTitle: ke = !1, isReadonly: Ae = !1, initialViewMode: je = Y.Grid, isFullWidth: Me = !1, selectedItemId: Ne, onCardClick: Pe, isLoading: z, styles: Le, detailsTexts: Re, detailsLimitsFooterNote: B, initialDetailsItemId: ze, sortKey: Be, onSortChange: Ve, filterTopics: He, onFilterTopicsChange: Ue, isMyAppsActive: We, onMyAppsActiveChange: Ge, activeTab: Ke, onActiveTabChange: qe, renderEmptyState: Je }) => {
|
|
3469
|
+
let { typography: Ye } = Le ?? {}, Xe = wt(Le), Ze = c?.pageTitle ?? "Catalog", Qe = c?.createLabel ?? "Create", $e = c?.favoritesTitle ?? "Your favorites", et = c?.browseTitle ?? "Browse", tt = c?.searchPlaceholder ?? "Search models, tools, agents…", nt = c?.noResultsTitle ?? ((e) => `No results for "${e}"`), rt = c?.featuredLabel ?? "Featured", V = c?.gridViewLabel ?? "Grid view", it = c?.listViewLabel ?? "List view", at = c?.viewToggleLabel ?? "View mode", ot = c?.ariaLabel ?? "Catalog", st = c?.sortLabel ?? "Sort", ct = [
|
|
3454
3470
|
{
|
|
3455
3471
|
value: s.RecentlyUpdated,
|
|
3456
3472
|
label: c?.sortRecentlyUpdatedLabel ?? "Recently Updated"
|
|
@@ -3463,235 +3479,256 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
3463
3479
|
value: s.NameAZ,
|
|
3464
3480
|
label: c?.sortNameAZLabel ?? "Name A-Z"
|
|
3465
3481
|
}
|
|
3466
|
-
], [
|
|
3482
|
+
], [H, lt] = P(""), [ut, dt] = P(je), [ft, pt] = P(je === Y.Cards ? "shown" : "unmounted"), [mt, ht] = P(s.RecentlyUpdated), [gt, _t] = P(/* @__PURE__ */ new Set()), [K, vt] = P(!1), q = Be ?? mt, J = He ?? gt, yt = We ?? K, bt = A((e) => {
|
|
3467
3483
|
let t = e;
|
|
3468
|
-
|
|
3469
|
-
}, [
|
|
3470
|
-
|
|
3471
|
-
}, [
|
|
3472
|
-
|
|
3473
|
-
}, [
|
|
3484
|
+
ht(t), Ve?.(t);
|
|
3485
|
+
}, [Ve]), xt = A((e) => {
|
|
3486
|
+
_t(e), Ue?.(e);
|
|
3487
|
+
}, [Ue]), St = A((e) => {
|
|
3488
|
+
vt(e), Ge?.(e);
|
|
3489
|
+
}, [Ge]), X = M(() => e.filter((e) => !e.isHidden), [e]), Tt = M(() => n ?? u(X), [n, X]), Et = M(() => t ?? r(X, c?.tabLabels), [
|
|
3474
3490
|
t,
|
|
3475
|
-
|
|
3491
|
+
X,
|
|
3476
3492
|
c?.tabLabels
|
|
3477
|
-
]),
|
|
3493
|
+
]), Dt = Et[0]?.id ?? "", [Ot, kt] = P(Dt);
|
|
3478
3494
|
j(() => {
|
|
3479
|
-
|
|
3480
|
-
}, [
|
|
3481
|
-
let
|
|
3482
|
-
|
|
3483
|
-
}, [
|
|
3495
|
+
kt((e) => e || Dt);
|
|
3496
|
+
}, [Dt]);
|
|
3497
|
+
let At = Ke ?? Ot, jt = A((e) => {
|
|
3498
|
+
kt(e), qe?.(e);
|
|
3499
|
+
}, [qe]), [Z, Mt] = P(o.length > 0);
|
|
3484
3500
|
j(() => {
|
|
3485
|
-
o.length > 0 && !
|
|
3486
|
-
}, [o.length,
|
|
3487
|
-
let
|
|
3488
|
-
|
|
3489
|
-
}, []),
|
|
3490
|
-
|
|
3491
|
-
let t = ++
|
|
3492
|
-
if (
|
|
3493
|
-
|
|
3501
|
+
o.length > 0 && !Z && Mt(!0);
|
|
3502
|
+
}, [o.length, Z]);
|
|
3503
|
+
let Nt = A(() => {
|
|
3504
|
+
Mt(!1);
|
|
3505
|
+
}, []), Pt = Z && o.length === 0, [Q, Ft] = P(null), [It, Lt] = P(!1), [Rt, $] = P(void 0), [zt, Bt] = P(!1), Vt = N(null), Ht = N(0), Ut = A(async (e) => {
|
|
3506
|
+
Vt.current = e.id;
|
|
3507
|
+
let t = ++Ht.current;
|
|
3508
|
+
if (F) {
|
|
3509
|
+
Bt(!0);
|
|
3494
3510
|
try {
|
|
3495
|
-
let n = await
|
|
3496
|
-
return
|
|
3511
|
+
let n = await F(e);
|
|
3512
|
+
return Ht.current === t && $(n), n;
|
|
3497
3513
|
} finally {
|
|
3498
|
-
|
|
3514
|
+
Ht.current === t && Bt(!1);
|
|
3499
3515
|
}
|
|
3500
3516
|
}
|
|
3501
|
-
}, [
|
|
3502
|
-
for (let n = 0; n <
|
|
3503
|
-
if (
|
|
3504
|
-
n <
|
|
3517
|
+
}, [F]), Wt = A(async (e) => (Ft(e), $(void 0), Ut(e)), [Ut]), Kt = A(async (e, t) => {
|
|
3518
|
+
for (let n = 0; n < Zr; n++) {
|
|
3519
|
+
if (Vt.current !== e.id || t(await Ut(e))) return;
|
|
3520
|
+
n < Zr - 1 && await h(Qr);
|
|
3505
3521
|
}
|
|
3506
|
-
}, [
|
|
3522
|
+
}, [Ut]), qt = N(null);
|
|
3507
3523
|
j(() => {
|
|
3508
|
-
if (!
|
|
3509
|
-
|
|
3524
|
+
if (!ze) {
|
|
3525
|
+
qt.current = null;
|
|
3510
3526
|
return;
|
|
3511
3527
|
}
|
|
3512
|
-
if (
|
|
3513
|
-
let t = e.find((e) => e.id ===
|
|
3514
|
-
t && (
|
|
3528
|
+
if (qt.current === ze) return;
|
|
3529
|
+
let t = e.find((e) => e.id === ze);
|
|
3530
|
+
t && (qt.current = ze, Wt(t));
|
|
3515
3531
|
}, [
|
|
3516
|
-
|
|
3532
|
+
ze,
|
|
3517
3533
|
e,
|
|
3518
|
-
|
|
3534
|
+
Wt
|
|
3519
3535
|
]), j(() => {
|
|
3520
|
-
if (
|
|
3521
|
-
let t = e.find((e) => e.id ===
|
|
3522
|
-
t && t !==
|
|
3523
|
-
}, [e,
|
|
3524
|
-
let
|
|
3525
|
-
await
|
|
3526
|
-
}, [
|
|
3527
|
-
we,
|
|
3528
|
-
ue,
|
|
3529
|
-
Gt
|
|
3530
|
-
]), Jt = A(async (e, t) => {
|
|
3531
|
-
await R?.(e, t), ue && await Gt(e, (e) => !f(e?.credentials, t.level));
|
|
3536
|
+
if (Q == null) return;
|
|
3537
|
+
let t = e.find((e) => e.id === Q.id);
|
|
3538
|
+
t && t !== Q && Ft(t);
|
|
3539
|
+
}, [e, Q]);
|
|
3540
|
+
let Jt = A(async (e, t) => {
|
|
3541
|
+
await R?.(e, t), F && await Kt(e, (e) => f(e?.credentials, t.level));
|
|
3532
3542
|
}, [
|
|
3533
3543
|
R,
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
]), Yt = A(() => {
|
|
3537
|
-
|
|
3538
|
-
|
|
3544
|
+
F,
|
|
3545
|
+
Kt
|
|
3546
|
+
]), Yt = A(async (e, t) => {
|
|
3547
|
+
await Te?.(e, t), F && await Kt(e, (e) => !f(e?.credentials, t.level));
|
|
3548
|
+
}, [
|
|
3549
|
+
Te,
|
|
3550
|
+
F,
|
|
3551
|
+
Kt
|
|
3552
|
+
]), Xt = A(() => {
|
|
3553
|
+
Lt(!1), Vt.current = null, Ht.current += 1, setTimeout(() => {
|
|
3554
|
+
Ft(null), $(void 0), Bt(!1);
|
|
3539
3555
|
}, 300);
|
|
3540
|
-
}, []),
|
|
3541
|
-
if (
|
|
3542
|
-
if (
|
|
3543
|
-
let { credentials: e, ...t } =
|
|
3556
|
+
}, []), Zt = M(() => {
|
|
3557
|
+
if (Q == null) return null;
|
|
3558
|
+
if (Rt == null) return Q;
|
|
3559
|
+
let { credentials: e, ...t } = Rt;
|
|
3544
3560
|
return {
|
|
3545
|
-
|
|
3561
|
+
...Q,
|
|
3546
3562
|
details: t,
|
|
3547
|
-
credentials: e ??
|
|
3563
|
+
credentials: e ?? Q.credentials
|
|
3548
3564
|
};
|
|
3549
|
-
}, [
|
|
3565
|
+
}, [Q, Rt]), Qt = M(() => l(X, q), [X, q]), $t = M(() => a(Qt, H), [Qt, H]), en = M(() => J.size > 0 ? i($t, J) : $t, [$t, J]), tn = M(() => yt ? _(en) : en, [en, yt]), nn = M(() => At ? tn.filter((e) => e.type === At) : tn, [tn, At]);
|
|
3566
|
+
j(() => {
|
|
3567
|
+
if (ft !== "unmounted" || z || nn.length === 0) return;
|
|
3568
|
+
let e = () => {
|
|
3569
|
+
ce(() => {
|
|
3570
|
+
pt((e) => e === "unmounted" ? "prepared" : e);
|
|
3571
|
+
});
|
|
3572
|
+
};
|
|
3573
|
+
if (typeof window.requestIdleCallback == "function") {
|
|
3574
|
+
let t = window.requestIdleCallback(e);
|
|
3575
|
+
return () => window.cancelIdleCallback(t);
|
|
3576
|
+
}
|
|
3577
|
+
let t = window.setTimeout(e, 200);
|
|
3578
|
+
return () => window.clearTimeout(t);
|
|
3579
|
+
}, [
|
|
3580
|
+
ft,
|
|
3581
|
+
z,
|
|
3582
|
+
nn.length
|
|
3583
|
+
]);
|
|
3584
|
+
let rn = Q != null && o.some((e) => e.id === Q.id);
|
|
3550
3585
|
j(() => {
|
|
3551
|
-
if (
|
|
3552
|
-
let e = requestAnimationFrame(() =>
|
|
3586
|
+
if (Q == null) return;
|
|
3587
|
+
let e = requestAnimationFrame(() => Lt(!0));
|
|
3553
3588
|
return () => cancelAnimationFrame(e);
|
|
3554
|
-
}, [
|
|
3555
|
-
let
|
|
3556
|
-
e ===
|
|
3557
|
-
}, []),
|
|
3558
|
-
noResultsTitle:
|
|
3559
|
-
featuredLabel:
|
|
3560
|
-
credentialsBadgeLoggedOutLabel:
|
|
3589
|
+
}, [Q]);
|
|
3590
|
+
let an = A((e) => {
|
|
3591
|
+
e === Y.Cards && pt("shown"), dt(e);
|
|
3592
|
+
}, []), on = !Oe && !Ae, sn = Z && !Ae, cn = H ? nt(H) : "No items", ln = M(() => ({
|
|
3593
|
+
noResultsTitle: cn,
|
|
3594
|
+
featuredLabel: rt,
|
|
3595
|
+
credentialsBadgeLoggedOutLabel: Re?.credentialsBadgeLoggedOutLabel
|
|
3561
3596
|
}), [
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
]),
|
|
3566
|
-
query:
|
|
3567
|
-
activeTab:
|
|
3568
|
-
hasTopicFilters:
|
|
3569
|
-
isMyAppsActive:
|
|
3597
|
+
cn,
|
|
3598
|
+
rt,
|
|
3599
|
+
Re?.credentialsBadgeLoggedOutLabel
|
|
3600
|
+
]), un = !z && nn.length === 0 ? Je?.({
|
|
3601
|
+
query: H,
|
|
3602
|
+
activeTab: At,
|
|
3603
|
+
hasTopicFilters: J.size > 0,
|
|
3604
|
+
isMyAppsActive: yt
|
|
3570
3605
|
}) : void 0;
|
|
3571
|
-
return
|
|
3606
|
+
return z ? /* @__PURE__ */ W("div", {
|
|
3572
3607
|
className: "flex size-full min-h-0 flex-1 items-center justify-center",
|
|
3573
|
-
children: /* @__PURE__ */
|
|
3574
|
-
}) : /* @__PURE__ */
|
|
3575
|
-
"aria-label":
|
|
3576
|
-
className: k("flex size-full min-h-0 flex-1 flex-col",
|
|
3577
|
-
style:
|
|
3608
|
+
children: /* @__PURE__ */ W(Fe, {})
|
|
3609
|
+
}) : /* @__PURE__ */ G("section", {
|
|
3610
|
+
"aria-label": ot,
|
|
3611
|
+
className: k("flex size-full min-h-0 flex-1 flex-col", Yr.root, Ct.root),
|
|
3612
|
+
style: Xe,
|
|
3578
3613
|
children: [
|
|
3579
|
-
(!
|
|
3580
|
-
className: k("shrink-0",
|
|
3581
|
-
children: /* @__PURE__ */
|
|
3614
|
+
(!ke || on) && /* @__PURE__ */ W("div", {
|
|
3615
|
+
className: k("shrink-0", Yr.heading),
|
|
3616
|
+
children: /* @__PURE__ */ G("div", {
|
|
3582
3617
|
className: "flex h-[64px] w-full items-center justify-between px-8",
|
|
3583
|
-
children: [!
|
|
3584
|
-
className: k(
|
|
3585
|
-
children:
|
|
3586
|
-
}),
|
|
3587
|
-
label:
|
|
3588
|
-
options:
|
|
3589
|
-
onClick:
|
|
3618
|
+
children: [!ke && /* @__PURE__ */ W("h1", {
|
|
3619
|
+
className: k(Ye?.pageHeadingFontClassName ?? "dial-display2-text", Yr.headingTitle),
|
|
3620
|
+
children: Ze
|
|
3621
|
+
}), on && /* @__PURE__ */ W(Xr, {
|
|
3622
|
+
label: Qe,
|
|
3623
|
+
options: De,
|
|
3624
|
+
onClick: Ee
|
|
3590
3625
|
})]
|
|
3591
3626
|
})
|
|
3592
3627
|
}),
|
|
3593
|
-
/* @__PURE__ */
|
|
3628
|
+
/* @__PURE__ */ G("div", {
|
|
3594
3629
|
className: "flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto overflow-x-hidden",
|
|
3595
3630
|
children: [
|
|
3596
|
-
|
|
3631
|
+
sn && /* @__PURE__ */ W("div", {
|
|
3597
3632
|
className: "w-full px-8",
|
|
3598
|
-
children: /* @__PURE__ */
|
|
3633
|
+
children: /* @__PURE__ */ W(Er, {
|
|
3599
3634
|
items: o,
|
|
3600
3635
|
totalCount: o.length,
|
|
3601
|
-
title:
|
|
3636
|
+
title: $e,
|
|
3602
3637
|
onToggleFavorite: p,
|
|
3603
3638
|
isFavoriteVisible: m,
|
|
3604
|
-
onItemClick:
|
|
3605
|
-
isLeaving:
|
|
3606
|
-
onExitComplete:
|
|
3607
|
-
selectedItemId:
|
|
3608
|
-
credentialsBadgeLoggedOutLabel:
|
|
3639
|
+
onItemClick: Pe ?? Wt,
|
|
3640
|
+
isLeaving: Pt,
|
|
3641
|
+
onExitComplete: Nt,
|
|
3642
|
+
selectedItemId: Ne,
|
|
3643
|
+
credentialsBadgeLoggedOutLabel: Re?.credentialsBadgeLoggedOutLabel
|
|
3609
3644
|
})
|
|
3610
3645
|
}),
|
|
3611
|
-
/* @__PURE__ */
|
|
3646
|
+
/* @__PURE__ */ W("div", {
|
|
3612
3647
|
className: "w-full px-4 pt-6",
|
|
3613
|
-
children: /* @__PURE__ */
|
|
3614
|
-
totalCount:
|
|
3615
|
-
viewMode:
|
|
3616
|
-
onViewModeChange:
|
|
3617
|
-
sortKey:
|
|
3618
|
-
query:
|
|
3619
|
-
onQueryChange:
|
|
3620
|
-
title:
|
|
3648
|
+
children: /* @__PURE__ */ W(Jr, {
|
|
3649
|
+
totalCount: tn.length,
|
|
3650
|
+
viewMode: ut,
|
|
3651
|
+
onViewModeChange: an,
|
|
3652
|
+
sortKey: q,
|
|
3653
|
+
query: H,
|
|
3654
|
+
onQueryChange: lt,
|
|
3655
|
+
title: et,
|
|
3621
3656
|
browseHeaderRenderer: d,
|
|
3622
|
-
searchPlaceholder:
|
|
3623
|
-
gridViewLabel:
|
|
3624
|
-
listViewLabel:
|
|
3625
|
-
viewToggleLabel:
|
|
3626
|
-
sortOptions:
|
|
3627
|
-
onSortChange:
|
|
3628
|
-
sortLabel:
|
|
3629
|
-
filters:
|
|
3630
|
-
onFiltersChange:
|
|
3631
|
-
filterValues:
|
|
3632
|
-
isMyAppsActive:
|
|
3633
|
-
onMyAppsChange:
|
|
3657
|
+
searchPlaceholder: tt,
|
|
3658
|
+
gridViewLabel: V,
|
|
3659
|
+
listViewLabel: it,
|
|
3660
|
+
viewToggleLabel: at,
|
|
3661
|
+
sortOptions: ct,
|
|
3662
|
+
onSortChange: bt,
|
|
3663
|
+
sortLabel: st,
|
|
3664
|
+
filters: J,
|
|
3665
|
+
onFiltersChange: xt,
|
|
3666
|
+
filterValues: Tt,
|
|
3667
|
+
isMyAppsActive: yt,
|
|
3668
|
+
onMyAppsChange: St,
|
|
3634
3669
|
filterFromLabel: c?.filterFromLabel,
|
|
3635
3670
|
filterMyAppsLabel: c?.filterMyAppsLabel,
|
|
3636
3671
|
filterTopicsLabel: c?.filterTopicsLabel
|
|
3637
3672
|
})
|
|
3638
3673
|
}),
|
|
3639
|
-
|
|
3674
|
+
Et.length > 1 && /* @__PURE__ */ W("div", {
|
|
3640
3675
|
className: "min-w-0 shrink-0 overflow-x-auto px-8",
|
|
3641
|
-
children: /* @__PURE__ */
|
|
3642
|
-
tabs:
|
|
3676
|
+
children: /* @__PURE__ */ W(Ie, {
|
|
3677
|
+
tabs: Et.map((e) => ({
|
|
3643
3678
|
id: e.id,
|
|
3644
3679
|
label: typeof e.label == "string" ? e.label : String(e.label),
|
|
3645
|
-
count:
|
|
3680
|
+
count: tn.filter((t) => t.type === e.id).length
|
|
3646
3681
|
})),
|
|
3647
|
-
activeTabId:
|
|
3648
|
-
onTabChange:
|
|
3682
|
+
activeTabId: At,
|
|
3683
|
+
onTabChange: jt
|
|
3649
3684
|
})
|
|
3650
3685
|
}),
|
|
3651
|
-
/* @__PURE__ */
|
|
3652
|
-
className: k(
|
|
3653
|
-
children:
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3686
|
+
/* @__PURE__ */ W("div", {
|
|
3687
|
+
className: k(nn.length > 0 ? ["min-h-full w-full px-8 py-6", !Me && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", nn.length === 0 && "px-8 py-6"),
|
|
3688
|
+
children: un ?? /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("div", {
|
|
3689
|
+
inert: ut !== Y.Grid,
|
|
3690
|
+
className: k(nn.length > 0 ? "pb-8" : "size-full flex-1", ut !== Y.Grid && "hidden"),
|
|
3691
|
+
children: /* @__PURE__ */ W(Gt, {
|
|
3692
|
+
items: nn,
|
|
3693
|
+
query: H,
|
|
3658
3694
|
onToggleFavorite: p,
|
|
3659
3695
|
isFavoriteVisible: m,
|
|
3660
|
-
onItemClick:
|
|
3661
|
-
titles:
|
|
3662
|
-
selectedItemId:
|
|
3663
|
-
isReadonly:
|
|
3664
|
-
isFullWidth:
|
|
3665
|
-
featuredChipStyle:
|
|
3696
|
+
onItemClick: Pe ?? Wt,
|
|
3697
|
+
titles: ln,
|
|
3698
|
+
selectedItemId: Ne,
|
|
3699
|
+
isReadonly: Ae,
|
|
3700
|
+
isFullWidth: Me,
|
|
3701
|
+
featuredChipStyle: Le?.colors?.featuredChipStyle
|
|
3666
3702
|
})
|
|
3667
|
-
}),
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3703
|
+
}), ft !== "unmounted" && /* @__PURE__ */ W("div", {
|
|
3704
|
+
inert: ut !== Y.Cards,
|
|
3705
|
+
className: k("pb-8", ut !== Y.Cards && (ft === "prepared" ? "invisible h-0 overflow-hidden p-0" : "hidden"), nn.length === 0 && ut === Y.Cards && "h-full"),
|
|
3706
|
+
children: /* @__PURE__ */ W(Br, {
|
|
3707
|
+
type: At,
|
|
3708
|
+
items: nn,
|
|
3709
|
+
query: H,
|
|
3710
|
+
ariaLabel: ot,
|
|
3711
|
+
emptyStateTitle: cn,
|
|
3675
3712
|
onToggleFavorite: p,
|
|
3676
3713
|
isFavoriteVisible: m,
|
|
3677
3714
|
columnVisibility: g,
|
|
3678
|
-
onItemClick:
|
|
3715
|
+
onItemClick: Pe ?? Wt,
|
|
3679
3716
|
stickyHeaderTop: 0,
|
|
3680
|
-
selectedItemId:
|
|
3681
|
-
credentialsBadgeLoggedOutLabel:
|
|
3682
|
-
isReadonly:
|
|
3717
|
+
selectedItemId: Ne,
|
|
3718
|
+
credentialsBadgeLoggedOutLabel: Re?.credentialsBadgeLoggedOutLabel,
|
|
3719
|
+
isReadonly: Ae
|
|
3683
3720
|
})
|
|
3684
3721
|
})] })
|
|
3685
3722
|
})
|
|
3686
3723
|
]
|
|
3687
3724
|
}),
|
|
3688
|
-
|
|
3689
|
-
item:
|
|
3690
|
-
isOpen:
|
|
3691
|
-
isStarred:
|
|
3692
|
-
isDetailsLoading:
|
|
3693
|
-
isReadonly:
|
|
3694
|
-
onClose:
|
|
3725
|
+
Zt != null && /* @__PURE__ */ W(xr, {
|
|
3726
|
+
item: Zt,
|
|
3727
|
+
isOpen: It,
|
|
3728
|
+
isStarred: rn,
|
|
3729
|
+
isDetailsLoading: zt,
|
|
3730
|
+
isReadonly: Ae,
|
|
3731
|
+
onClose: Xt,
|
|
3695
3732
|
onToggleFavorite: p,
|
|
3696
3733
|
isFavoriteVisible: m,
|
|
3697
3734
|
onUseInChat: v,
|
|
@@ -3713,32 +3750,32 @@ var mt = /* @__PURE__ */ function(e) {
|
|
|
3713
3750
|
publishLabels: ae,
|
|
3714
3751
|
ruleSourceOptions: oe,
|
|
3715
3752
|
onFetchExistingRules: se,
|
|
3716
|
-
shareOverlay:
|
|
3717
|
-
isShareVisible:
|
|
3718
|
-
isSharePrimary:
|
|
3719
|
-
onEdit:
|
|
3720
|
-
onDownload:
|
|
3753
|
+
shareOverlay: le,
|
|
3754
|
+
isShareVisible: ue,
|
|
3755
|
+
isSharePrimary: de,
|
|
3756
|
+
onEdit: fe,
|
|
3757
|
+
onDownload: pe,
|
|
3721
3758
|
isDownloadVisible: I,
|
|
3722
3759
|
isDownloadPrimary: L,
|
|
3723
|
-
onLoadContentFile:
|
|
3724
|
-
onLoadContentFilePreview:
|
|
3725
|
-
renderContentFilePreview:
|
|
3726
|
-
onDelete:
|
|
3727
|
-
onUnshare:
|
|
3728
|
-
isUnshareVisible:
|
|
3729
|
-
onRevokeShare:
|
|
3730
|
-
onFetchRecipientsCount:
|
|
3731
|
-
isRevokeShareVisible:
|
|
3732
|
-
onUnpublish:
|
|
3733
|
-
isUnpublishVisible:
|
|
3734
|
-
onLogin:
|
|
3735
|
-
onLogout:
|
|
3736
|
-
texts:
|
|
3737
|
-
limitsFooterNote:
|
|
3738
|
-
styles: { colors: { featuredChipStyle:
|
|
3760
|
+
onLoadContentFile: me,
|
|
3761
|
+
onLoadContentFilePreview: he,
|
|
3762
|
+
renderContentFilePreview: ge,
|
|
3763
|
+
onDelete: _e,
|
|
3764
|
+
onUnshare: ve,
|
|
3765
|
+
isUnshareVisible: ye,
|
|
3766
|
+
onRevokeShare: be,
|
|
3767
|
+
onFetchRecipientsCount: xe,
|
|
3768
|
+
isRevokeShareVisible: Se,
|
|
3769
|
+
onUnpublish: Ce,
|
|
3770
|
+
isUnpublishVisible: we,
|
|
3771
|
+
onLogin: Jt,
|
|
3772
|
+
onLogout: Yt,
|
|
3773
|
+
texts: Re,
|
|
3774
|
+
limitsFooterNote: B,
|
|
3775
|
+
styles: { colors: { featuredChipStyle: Le?.colors?.featuredChipStyle } }
|
|
3739
3776
|
})
|
|
3740
3777
|
]
|
|
3741
3778
|
});
|
|
3742
3779
|
};
|
|
3743
3780
|
//#endregion
|
|
3744
|
-
export {
|
|
3781
|
+
export { Nt as AppIdentity, Ct as CATALOG_CLASS, Ut as Card, Gt as CardGrid, Wt as CardRowRenderer, $r as Catalog, bt as CatalogContentNodeType, xt as CatalogContentPreviewType, K as CatalogDetailsTab, vt as CatalogLimitStatus, s as CatalogSortKey, Y as CatalogViewMode, _t as CodeLanguage, Hn as ContentTab, o as CredentialStatus, Q as CredentialsBadge, e as CredentialsBadgeState, b as CredentialsLevel, n as CredentialsUiState, yt as DeploymentSize, q as DetailsConfirmationKind, J as DetailsConfirmationVariant, xr as DetailsPanel, Cr as FavoriteCard, Er as Favorites, Gr as Filter, sn as InfoCard, Br as ListView, Jr as Toolbar, y as ToolsetAuthenticationType, $ as TopicTag, r as buildCatalogTabs, a as filterCatalogItems, d as getCredentialsBadgeState, c as getCredentialsUiState, t as getSignedInLevel, u as getTopicOptions, l as sortCatalogItems, St as useFavColumns, jt as useScrollVirtualizer };
|