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