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