@epam/ai-dial-catalog 1.2.0-dev.274 → 1.2.0-dev.276
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/index.css +1 -1
- package/index.js +1200 -1203
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, x as y, y as b } from "./mapping-BHlCxGmC.js";
|
|
2
2
|
import { CatalogEntityType as x, ConfirmationFooter as S, ConfirmationView as C, DESKTOP_BREAKPOINT_PX as w, DeploymentIcon as T, EntityHeader as E, EntityTypeLabel as D, FeaturedChip as O, ItemHeader as ee, MarkdownCodeBlock as k, MarkdownRenderer as A, MarkdownWithPlaceholders as te, PanelEmptyState as ne, SELECT_LIST_MAX_HEIGHT_CLASS_NAME as re, buildCssVars as j, mergeClasses as M } from "@epam/ai-dial-chat-shared";
|
|
3
|
-
import { Fragment as ie, memo as
|
|
4
|
-
import { Badge as
|
|
5
|
-
import { IconAlertTriangleFilled as
|
|
6
|
-
import { Fragment as
|
|
7
|
-
import { PublishFooter as
|
|
8
|
-
import { Grid as
|
|
3
|
+
import { Fragment as ie, memo as ae, startTransition as oe, useCallback as N, useEffect as P, useId as se, useLayoutEffect as ce, useMemo as F, useRef as I, useState as L } from "react";
|
|
4
|
+
import { Badge as le, Button as ue, ButtonAppearance as de, ButtonDropdown as fe, ButtonVariant as pe, CardShell as me, Checkbox as he, ConfirmationPopupVariant as ge, DIAL_ICON_SIZE as R, DIAL_KIT_ICON_STROKE as z, DangerButton as _e, Dropdown as ve, DropdownItemType as ye, ElementSize as be, EllipsisTooltip as xe, FolderPath as Se, GhostButton as Ce, GhostIconButton as B, Highlight as we, InlineSelect as Te, InlineSelectTrigger as Ee, Input as De, LinkButton as Oe, MenuItem as ke, MenuItemMark as Ae, NeutralButton as je, NeutralIconButton as V, PrimaryButton as Me, ProgressBar as Ne, RadioGroup as Pe, Search as Fe, SegmentedControl as Ie, SideDrawer as Le, Skeleton as Re, SkeletonAvatarShape as ze, Spinner as Be, Tabs as Ve, ToggleIconButton as He, Tooltip as Ue, mergeClasses as We } from "@epam/ai-dial-ui-kit";
|
|
5
|
+
import { IconAlertTriangleFilled as Ge, IconArrowRight as Ke, IconBuildingCommunity as qe, IconCheck as Je, IconChevronDown as Ye, IconChevronLeft as Xe, IconChevronRight as Ze, IconCircleCheckFilled as Qe, IconDots as $e, IconDownload as et, IconFilter as H, IconFolder as tt, IconKey as nt, IconLayoutGrid as rt, IconLayoutList as it, IconLogin as at, IconLogout as ot, IconPencil as st, IconPlayerPlayFilled as ct, IconPlus as lt, IconShare as ut, IconStar as U, IconStarFilled as dt, IconTrashX as W, IconUser as ft, IconUserOff as pt, IconWorldOff as mt, IconWorldShare as ht } from "@tabler/icons-react";
|
|
6
|
+
import { Fragment as gt, jsx as G, jsxs as K } from "react/jsx-runtime";
|
|
7
|
+
import { PublishFooter as _t, PublishPanel as vt, derivePublishState as yt, usePublishFlow as bt } from "@epam/ai-dial-publish-panel";
|
|
8
|
+
import { Grid as xt } from "@epam/ai-dial-ui-kit/grid";
|
|
9
9
|
//#region src/types/code-language.ts
|
|
10
|
-
var
|
|
10
|
+
var q = /* @__PURE__ */ function(e) {
|
|
11
11
|
return e.Python = "python", e.Curl = "curl", e.JavaScript = "javascript", e;
|
|
12
12
|
}({}), J = /* @__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;
|
|
@@ -26,8 +26,8 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
26
26
|
}({}), Q = /* @__PURE__ */ function(e) {
|
|
27
27
|
return e.Markdown = "markdown", e.Text = "text", e.Image = "image", e.Unsupported = "unsupported", e;
|
|
28
28
|
}({}), Tt = () => {
|
|
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;
|
|
@@ -48,11 +48,11 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
48
48
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
49
49
|
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : At(e.parentElement);
|
|
50
50
|
}, jt = 10, Mt = 10, Nt = 30, Pt = (e, t, n = jt) => {
|
|
51
|
-
let r =
|
|
51
|
+
let r = I(null), [i, a] = L({
|
|
52
52
|
start: 0,
|
|
53
53
|
end: Nt
|
|
54
54
|
});
|
|
55
|
-
|
|
55
|
+
P(() => {
|
|
56
56
|
let i = r.current;
|
|
57
57
|
if (!i) return;
|
|
58
58
|
let o = At(i.parentElement), s = () => {
|
|
@@ -81,7 +81,7 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
81
81
|
endRow: Math.min(e, Math.max(i.end, s + Mt))
|
|
82
82
|
};
|
|
83
83
|
}, Ft = (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 >= w ? 60 : 0)), i = kt((n ? r : Math.min(Ot, r)) - 64), a = Math.ceil(e / i);
|
|
86
86
|
return {
|
|
87
87
|
startRow: 0,
|
|
@@ -89,7 +89,7 @@ var xt = /* @__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 = At(n.parentElement), o = () => {
|
|
@@ -137,42 +137,42 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
137
137
|
"--ai-last-used-text": f?.lastUsedColor,
|
|
138
138
|
"--ai-version-text": f?.versionColor
|
|
139
139
|
});
|
|
140
|
-
return /* @__PURE__ */
|
|
140
|
+
return /* @__PURE__ */ K("div", {
|
|
141
141
|
className: M("flex min-w-0 items-start gap-3", s),
|
|
142
142
|
style: _,
|
|
143
|
-
children: [/* @__PURE__ */
|
|
143
|
+
children: [/* @__PURE__ */ K("div", {
|
|
144
144
|
className: M("relative flex-shrink-0", h, u),
|
|
145
|
-
children: [/* @__PURE__ */
|
|
145
|
+
children: [/* @__PURE__ */ G("div", {
|
|
146
146
|
className: "size-full overflow-hidden rounded-[inherit]",
|
|
147
|
-
children: /* @__PURE__ */
|
|
147
|
+
children: /* @__PURE__ */ G(T, {
|
|
148
148
|
src: e ?? void 0,
|
|
149
149
|
size: g,
|
|
150
150
|
initialsName: n,
|
|
151
151
|
styles: { badgeClassName: M(m ? "rounded-[14px]" : "rounded-[12px]") }
|
|
152
152
|
})
|
|
153
153
|
}), d]
|
|
154
|
-
}), /* @__PURE__ */
|
|
154
|
+
}), /* @__PURE__ */ K("div", {
|
|
155
155
|
className: "flex min-w-0 flex-1 flex-col gap-1",
|
|
156
|
-
children: [/* @__PURE__ */
|
|
156
|
+
children: [/* @__PURE__ */ G(D, {
|
|
157
157
|
type: t,
|
|
158
158
|
className: p?.typeClassName
|
|
159
|
-
}), /* @__PURE__ */
|
|
159
|
+
}), /* @__PURE__ */ K("div", {
|
|
160
160
|
className: "flex min-w-0 flex-col",
|
|
161
|
-
children: [/* @__PURE__ */
|
|
161
|
+
children: [/* @__PURE__ */ K("div", {
|
|
162
162
|
className: "flex min-w-0 items-start gap-1 overflow-hidden",
|
|
163
|
-
children: [/* @__PURE__ */
|
|
164
|
-
text: o ? /* @__PURE__ */
|
|
163
|
+
children: [/* @__PURE__ */ G(xe, {
|
|
164
|
+
text: o ? /* @__PURE__ */ G(we, {
|
|
165
165
|
text: n,
|
|
166
166
|
query: o
|
|
167
167
|
}) : n,
|
|
168
168
|
className: M(r ? "min-w-0 max-w-[66%] shrink-0" : "min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text", Lt.name)
|
|
169
|
-
}), r && /* @__PURE__ */
|
|
169
|
+
}), r && /* @__PURE__ */ G(xe, {
|
|
170
170
|
text: r,
|
|
171
171
|
className: M("min-w-0 flex-1 text-end tabular-nums", p?.versionClassName ?? "dial-tiny-text", Lt.version)
|
|
172
172
|
})]
|
|
173
|
-
}), m && i != null && /* @__PURE__ */
|
|
173
|
+
}), m && i != null && /* @__PURE__ */ K("div", {
|
|
174
174
|
className: "flex items-center gap-2",
|
|
175
|
-
children: [/* @__PURE__ */
|
|
175
|
+
children: [/* @__PURE__ */ G("span", {
|
|
176
176
|
className: M("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", Lt.lastUsed),
|
|
177
177
|
children: i
|
|
178
178
|
}), l]
|
|
@@ -180,10 +180,10 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
180
180
|
})]
|
|
181
181
|
})]
|
|
182
182
|
});
|
|
183
|
-
}, zt = { icon: "_icon_a0p4u_1" }, Bt = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || d(e) == null ? null : /* @__PURE__ */
|
|
183
|
+
}, zt = { icon: "_icon_a0p4u_1" }, Bt = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || d(e) == null ? null : /* @__PURE__ */ G(Ue, {
|
|
184
184
|
tooltip: t,
|
|
185
185
|
asChild: !0,
|
|
186
|
-
children: /* @__PURE__ */
|
|
186
|
+
children: /* @__PURE__ */ G("span", {
|
|
187
187
|
role: "img",
|
|
188
188
|
"aria-label": t,
|
|
189
189
|
style: j({
|
|
@@ -191,8 +191,8 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
191
191
|
"--cat-cred-badge-icon": r?.icon
|
|
192
192
|
}),
|
|
193
193
|
className: M("absolute -bottom-1 -end-1 shrink-0", n),
|
|
194
|
-
children: /* @__PURE__ */
|
|
195
|
-
size:
|
|
194
|
+
children: /* @__PURE__ */ G(Ge, {
|
|
195
|
+
size: R.SM,
|
|
196
196
|
className: zt.icon,
|
|
197
197
|
"aria-hidden": !0
|
|
198
198
|
})
|
|
@@ -200,24 +200,24 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
200
200
|
}), Vt = {
|
|
201
201
|
starFilledIcon: "_starFilledIcon_po6zj_1",
|
|
202
202
|
starPop: "_starPop_po6zj_1"
|
|
203
|
-
}, Ht = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */
|
|
203
|
+
}, Ht = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ G(He, {
|
|
204
204
|
size: n,
|
|
205
205
|
style: j({ "--cat-star-filled": a }),
|
|
206
206
|
className: i,
|
|
207
207
|
isSelected: e,
|
|
208
|
-
icon: /* @__PURE__ */
|
|
209
|
-
size:
|
|
210
|
-
stroke:
|
|
208
|
+
icon: /* @__PURE__ */ G(U, {
|
|
209
|
+
size: R.SM,
|
|
210
|
+
stroke: z,
|
|
211
211
|
"aria-hidden": !0
|
|
212
212
|
}),
|
|
213
|
-
selectedIcon: /* @__PURE__ */
|
|
214
|
-
size:
|
|
213
|
+
selectedIcon: /* @__PURE__ */ G(dt, {
|
|
214
|
+
size: R.SM,
|
|
215
215
|
className: Vt.starFilledIcon,
|
|
216
216
|
"aria-hidden": !0
|
|
217
217
|
}),
|
|
218
218
|
"aria-label": r,
|
|
219
219
|
onClick: t
|
|
220
|
-
}), Ut = { tag: "_tag_iqin5_3" }, Wt = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */
|
|
220
|
+
}), Ut = { tag: "_tag_iqin5_3" }, Wt = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ G(le, {
|
|
221
221
|
label: e,
|
|
222
222
|
textClassName: n,
|
|
223
223
|
style: j({
|
|
@@ -226,12 +226,12 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
226
226
|
"--cat-card-tag-border": r?.border
|
|
227
227
|
}),
|
|
228
228
|
className: M(Ut.tag, t)
|
|
229
|
-
}), Gt = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */
|
|
229
|
+
}), Gt = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ G(Wt, {
|
|
230
230
|
label: e,
|
|
231
231
|
badgeClassName: t,
|
|
232
232
|
colors: n
|
|
233
233
|
}), Kt = 8, qt = ({ topics: e, overflowAriaLabel: t, className: n }) => {
|
|
234
|
-
let r =
|
|
234
|
+
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(() => {
|
|
235
235
|
let t = r.current;
|
|
236
236
|
if (!t || e.length === 0) return;
|
|
237
237
|
let n = t.clientWidth;
|
|
@@ -247,53 +247,53 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
247
247
|
}
|
|
248
248
|
l(Math.min(f, s.current));
|
|
249
249
|
}, [e.length]);
|
|
250
|
-
if (
|
|
250
|
+
if (ce(() => {
|
|
251
251
|
a.current = [], s.current = Infinity, l(e.length);
|
|
252
|
-
}, [u]),
|
|
252
|
+
}, [u]), ce(() => {
|
|
253
253
|
d();
|
|
254
|
-
}),
|
|
254
|
+
}), ce(() => {
|
|
255
255
|
let e = r.current;
|
|
256
256
|
!e || c === 0 || e.scrollWidth <= e.clientWidth || (s.current = c - 1, l(s.current));
|
|
257
|
-
}, [c]),
|
|
257
|
+
}, [c]), P(() => {
|
|
258
258
|
let e = r.current;
|
|
259
259
|
if (!e) return;
|
|
260
260
|
let t = new ResizeObserver(() => {
|
|
261
261
|
s.current = Infinity, d();
|
|
262
262
|
});
|
|
263
263
|
return t.observe(e), () => t.disconnect();
|
|
264
|
-
}, [d]), e.length === 0) return /* @__PURE__ */
|
|
264
|
+
}, [d]), e.length === 0) return /* @__PURE__ */ G("div", {
|
|
265
265
|
ref: r,
|
|
266
266
|
className: M("relative flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n)
|
|
267
267
|
});
|
|
268
268
|
let f = e.length - c;
|
|
269
|
-
return /* @__PURE__ */
|
|
269
|
+
return /* @__PURE__ */ K("div", {
|
|
270
270
|
ref: r,
|
|
271
271
|
className: M("flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n),
|
|
272
272
|
children: [
|
|
273
|
-
e.slice(0, c).map((e, t) => /* @__PURE__ */
|
|
273
|
+
e.slice(0, c).map((e, t) => /* @__PURE__ */ G("div", {
|
|
274
274
|
ref: (e) => {
|
|
275
275
|
i.current[t] = e;
|
|
276
276
|
},
|
|
277
|
-
children: /* @__PURE__ */
|
|
277
|
+
children: /* @__PURE__ */ G(Gt, { label: e })
|
|
278
278
|
}, e)),
|
|
279
|
-
f > 0 && /* @__PURE__ */
|
|
279
|
+
f > 0 && /* @__PURE__ */ G(Ue, {
|
|
280
280
|
tooltip: e.slice(c).join(", "),
|
|
281
|
-
children: /* @__PURE__ */
|
|
281
|
+
children: /* @__PURE__ */ G("span", {
|
|
282
282
|
"aria-label": t?.(f) ?? `and ${f} more topics`,
|
|
283
|
-
children: /* @__PURE__ */
|
|
283
|
+
children: /* @__PURE__ */ G(Gt, { label: `+${f}` })
|
|
284
284
|
})
|
|
285
285
|
}),
|
|
286
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ G("div", {
|
|
287
287
|
ref: o,
|
|
288
288
|
"aria-hidden": !0,
|
|
289
289
|
className: "invisible absolute start-0 top-0",
|
|
290
|
-
children: /* @__PURE__ */
|
|
290
|
+
children: /* @__PURE__ */ G(Gt, { label: `+${e.length}` })
|
|
291
291
|
})
|
|
292
292
|
]
|
|
293
293
|
});
|
|
294
294
|
}, Jt = { img: () => null }, Yt = (e) => e.target instanceof Element && e.target.closest("a") !== null, Xt = ({ 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 }) => {
|
|
295
|
-
let [m, h] =
|
|
296
|
-
|
|
295
|
+
let [m, h] = L(r);
|
|
296
|
+
P(() => {
|
|
297
297
|
h(r);
|
|
298
298
|
}, [e.id, r]);
|
|
299
299
|
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({
|
|
@@ -304,9 +304,9 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
304
304
|
"--cg-footer-border": d?.colors?.footerBorder
|
|
305
305
|
}), x = !p && e.isFeatured === !0, S = !p && a?.(e) !== !1, C = !p || e.folder.length > 0, w = n ? (t) => {
|
|
306
306
|
Yt(t) || n(e);
|
|
307
|
-
} : void 0, T =
|
|
307
|
+
} : void 0, T = N((t) => {
|
|
308
308
|
!n || Yt(t) || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e));
|
|
309
|
-
}, [n, e]), E =
|
|
309
|
+
}, [n, e]), E = N((t) => {
|
|
310
310
|
t.stopPropagation();
|
|
311
311
|
let n = !m;
|
|
312
312
|
h(n), i?.(e.id, n);
|
|
@@ -315,7 +315,7 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
315
315
|
i,
|
|
316
316
|
e.id
|
|
317
317
|
]);
|
|
318
|
-
return /* @__PURE__ */
|
|
318
|
+
return /* @__PURE__ */ K(me, {
|
|
319
319
|
...n ? {
|
|
320
320
|
role: "button",
|
|
321
321
|
tabIndex: 0,
|
|
@@ -326,22 +326,22 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
326
326
|
style: b,
|
|
327
327
|
className: M("box-border cursor-pointer gap-3", It.card, x ? It.featuredCard : void 0, l ? It.selectedCard : void 0, u, Et.card),
|
|
328
328
|
children: [
|
|
329
|
-
x && /* @__PURE__ */
|
|
329
|
+
x && /* @__PURE__ */ G("div", {
|
|
330
330
|
className: "absolute end-[22px] top-0 -translate-y-1/2",
|
|
331
|
-
children: /* @__PURE__ */
|
|
331
|
+
children: /* @__PURE__ */ G(O, {
|
|
332
332
|
label: o,
|
|
333
333
|
type: e.type,
|
|
334
334
|
className: _,
|
|
335
335
|
style: d?.colors?.featuredChipStyle
|
|
336
336
|
})
|
|
337
337
|
}),
|
|
338
|
-
l && /* @__PURE__ */
|
|
339
|
-
size:
|
|
338
|
+
l && /* @__PURE__ */ G(Je, {
|
|
339
|
+
size: R.SM,
|
|
340
340
|
className: M("absolute end-3 top-3 shrink-0", It.checkIcon),
|
|
341
341
|
"aria-hidden": !0,
|
|
342
|
-
stroke:
|
|
342
|
+
stroke: z
|
|
343
343
|
}),
|
|
344
|
-
/* @__PURE__ */
|
|
344
|
+
/* @__PURE__ */ G(Rt, {
|
|
345
345
|
icon: e.iconUrl,
|
|
346
346
|
type: e.type,
|
|
347
347
|
name: e.name,
|
|
@@ -349,14 +349,14 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
349
349
|
size: Ct.SM,
|
|
350
350
|
query: t,
|
|
351
351
|
iconClassName: It.cardIcon,
|
|
352
|
-
iconOverlay: /* @__PURE__ */
|
|
352
|
+
iconOverlay: /* @__PURE__ */ G(Bt, {
|
|
353
353
|
credentials: e.credentials,
|
|
354
354
|
loggedOutLabel: f
|
|
355
355
|
})
|
|
356
356
|
}),
|
|
357
|
-
/* @__PURE__ */
|
|
357
|
+
/* @__PURE__ */ G("div", {
|
|
358
358
|
className: M("line-clamp-2 min-h-[2lh] break-words", It.description),
|
|
359
|
-
children: e.description && /* @__PURE__ */
|
|
359
|
+
children: e.description && /* @__PURE__ */ G(A, {
|
|
360
360
|
content: e.description,
|
|
361
361
|
classNames: {
|
|
362
362
|
p: g,
|
|
@@ -372,24 +372,24 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
372
372
|
components: Jt
|
|
373
373
|
})
|
|
374
374
|
}),
|
|
375
|
-
/* @__PURE__ */
|
|
375
|
+
/* @__PURE__ */ G("div", {
|
|
376
376
|
className: "mt-auto flex items-center gap-2",
|
|
377
|
-
children: /* @__PURE__ */
|
|
377
|
+
children: /* @__PURE__ */ G(qt, { topics: e.topics })
|
|
378
378
|
}),
|
|
379
|
-
C && /* @__PURE__ */
|
|
379
|
+
C && /* @__PURE__ */ G("div", {
|
|
380
380
|
className: M("pt-3", !p && M("border-t", It.footer)),
|
|
381
|
-
children: /* @__PURE__ */
|
|
381
|
+
children: /* @__PURE__ */ K("div", {
|
|
382
382
|
className: "flex items-center gap-2",
|
|
383
|
-
children: [/* @__PURE__ */
|
|
383
|
+
children: [/* @__PURE__ */ G("div", {
|
|
384
384
|
className: "min-w-0 flex-1",
|
|
385
|
-
children: e.folder.length > 0 && /* @__PURE__ */
|
|
385
|
+
children: e.folder.length > 0 && /* @__PURE__ */ G(Se, {
|
|
386
386
|
segments: e.folder,
|
|
387
387
|
labelClassName: v,
|
|
388
388
|
leafClassName: y
|
|
389
389
|
})
|
|
390
|
-
}), S && /* @__PURE__ */
|
|
390
|
+
}), S && /* @__PURE__ */ G(Ht, {
|
|
391
391
|
isStarred: m,
|
|
392
|
-
size:
|
|
392
|
+
size: be.Small,
|
|
393
393
|
onClick: E,
|
|
394
394
|
ariaLabel: m ? c : s,
|
|
395
395
|
className: M(It.starBtn, !m && It.emptyStarHidden)
|
|
@@ -398,9 +398,9 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
398
398
|
})
|
|
399
399
|
]
|
|
400
400
|
});
|
|
401
|
-
}, Zt =
|
|
401
|
+
}, Zt = ae(({ 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 }) => {
|
|
402
402
|
let m = e * n, h = t.slice(m, m + n);
|
|
403
|
-
return /* @__PURE__ */
|
|
403
|
+
return /* @__PURE__ */ G("div", {
|
|
404
404
|
style: {
|
|
405
405
|
top: e * 268,
|
|
406
406
|
height: 268
|
|
@@ -408,9 +408,9 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
408
408
|
className: "absolute flex w-full gap-5 pb-5",
|
|
409
409
|
children: Array.from({ length: n }, (e, t) => {
|
|
410
410
|
let n = h[t];
|
|
411
|
-
return /* @__PURE__ */
|
|
411
|
+
return /* @__PURE__ */ G("div", {
|
|
412
412
|
className: "h-full min-w-0 flex-1",
|
|
413
|
-
children: n && /* @__PURE__ */
|
|
413
|
+
children: n && /* @__PURE__ */ G(Xt, {
|
|
414
414
|
item: n,
|
|
415
415
|
query: r,
|
|
416
416
|
initialIsStarred: n.isStarred,
|
|
@@ -429,8 +429,8 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
429
429
|
}, n?.id ?? `spacer-${t}`);
|
|
430
430
|
})
|
|
431
431
|
});
|
|
432
|
-
}), Qt =
|
|
433
|
-
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 } = Ft(e.length, { isFullWidth: d }), C =
|
|
432
|
+
}), Qt = ae(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = It.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1, featuredChipStyle: f }) => {
|
|
433
|
+
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 } = Ft(e.length, { isFullWidth: d }), C = F(() => ({
|
|
434
434
|
items: e,
|
|
435
435
|
columnCount: x,
|
|
436
436
|
query: t,
|
|
@@ -459,19 +459,19 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
459
459
|
u,
|
|
460
460
|
f
|
|
461
461
|
]);
|
|
462
|
-
return o ? /* @__PURE__ */
|
|
462
|
+
return o ? /* @__PURE__ */ G("div", {
|
|
463
463
|
className: "grid gap-5 p-5",
|
|
464
464
|
style: {
|
|
465
465
|
gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
|
|
466
466
|
...j({ "--cg-skeleton-card-bg": l })
|
|
467
467
|
},
|
|
468
|
-
children: Array.from({ length: x * 3 }, (e, t) => /* @__PURE__ */
|
|
468
|
+
children: Array.from({ length: x * 3 }, (e, t) => /* @__PURE__ */ G("div", {
|
|
469
469
|
className: M("rounded-md border p-4", It.skeletonCard),
|
|
470
470
|
style: { height: 248 },
|
|
471
|
-
children: /* @__PURE__ */
|
|
471
|
+
children: /* @__PURE__ */ G(Re, {
|
|
472
472
|
avatar: {
|
|
473
473
|
size: 48,
|
|
474
|
-
shape:
|
|
474
|
+
shape: ze.Square
|
|
475
475
|
},
|
|
476
476
|
showTitle: { width: `${60 + t * 17 % 30}%` },
|
|
477
477
|
paragraph: { rows: 3 },
|
|
@@ -479,16 +479,16 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
479
479
|
color: c
|
|
480
480
|
})
|
|
481
481
|
}, t))
|
|
482
|
-
}) : e.length === 0 ? /* @__PURE__ */
|
|
482
|
+
}) : e.length === 0 ? /* @__PURE__ */ G("div", {
|
|
483
483
|
className: "flex size-full flex-col items-center justify-center",
|
|
484
|
-
children: /* @__PURE__ */
|
|
485
|
-
}) : /* @__PURE__ */
|
|
484
|
+
children: /* @__PURE__ */ G(ne, { label: p })
|
|
485
|
+
}) : /* @__PURE__ */ G("div", {
|
|
486
486
|
ref: v,
|
|
487
487
|
className: "relative",
|
|
488
488
|
style: { height: S },
|
|
489
489
|
children: Array.from({ length: b - y }, (e, t) => {
|
|
490
490
|
let n = y + t;
|
|
491
|
-
return /* @__PURE__ */
|
|
491
|
+
return /* @__PURE__ */ G(Zt, {
|
|
492
492
|
rowIndex: n,
|
|
493
493
|
...C
|
|
494
494
|
}, n);
|
|
@@ -515,19 +515,19 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
515
515
|
valueTrue: "_valueTrue_jnq93_17",
|
|
516
516
|
valueFalse: "_valueFalse_jnq93_21",
|
|
517
517
|
valueText: "_valueText_jnq93_25"
|
|
518
|
-
}, rn = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */
|
|
519
|
-
size:
|
|
518
|
+
}, rn = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ K(gt, { children: [/* @__PURE__ */ G(Qe, {
|
|
519
|
+
size: R.MD,
|
|
520
520
|
className: M(r, nn.checkIcon)
|
|
521
|
-
}), /* @__PURE__ */
|
|
521
|
+
}), /* @__PURE__ */ G("span", {
|
|
522
522
|
className: M(n, nn.valueTrue),
|
|
523
523
|
children: i
|
|
524
|
-
})] }) : e === !1 ? /* @__PURE__ */
|
|
524
|
+
})] }) : e === !1 ? /* @__PURE__ */ G("span", {
|
|
525
525
|
className: M(t, nn.valueFalse),
|
|
526
526
|
children: a
|
|
527
|
-
}) : /* @__PURE__ */
|
|
527
|
+
}) : /* @__PURE__ */ G("span", {
|
|
528
528
|
className: M("min-w-0 break-words", t, nn.valueText),
|
|
529
529
|
children: e
|
|
530
|
-
}), an = ({ 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__ */
|
|
530
|
+
}), an = ({ 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__ */ G("div", {
|
|
531
531
|
className: "flex flex-col",
|
|
532
532
|
style: j({
|
|
533
533
|
"--tv-section-heading": l?.sectionHeading,
|
|
@@ -538,19 +538,19 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
538
538
|
"--tv-value-false": l?.valueFalse,
|
|
539
539
|
"--tv-value-text": l?.valueText
|
|
540
540
|
}),
|
|
541
|
-
children: t != null && t.length > 0 && /* @__PURE__ */
|
|
541
|
+
children: t != null && t.length > 0 && /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("p", {
|
|
542
542
|
className: M("mb-3 mt-0", o, nn.sectionHeading),
|
|
543
543
|
children: e
|
|
544
|
-
}), /* @__PURE__ */
|
|
544
|
+
}), /* @__PURE__ */ G("ul", {
|
|
545
545
|
className: "m-0 list-none p-0",
|
|
546
|
-
children: t.map((e, t) => /* @__PURE__ */
|
|
546
|
+
children: t.map((e, t) => /* @__PURE__ */ K("li", {
|
|
547
547
|
className: M("flex items-center rounded px-3 py-2", t % 2 == 0 ? nn.rowAlt : void 0),
|
|
548
|
-
children: [/* @__PURE__ */
|
|
548
|
+
children: [/* @__PURE__ */ G("span", {
|
|
549
549
|
className: M(n, nn.label, "w-2/5 shrink-0"),
|
|
550
550
|
children: e.label
|
|
551
|
-
}), /* @__PURE__ */
|
|
551
|
+
}), /* @__PURE__ */ G("div", {
|
|
552
552
|
className: "flex w-3/5 min-w-0 items-center gap-1",
|
|
553
|
-
children: /* @__PURE__ */
|
|
553
|
+
children: /* @__PURE__ */ G(rn, {
|
|
554
554
|
value: e.value,
|
|
555
555
|
valueClassName: r,
|
|
556
556
|
valueTrueClassName: i,
|
|
@@ -562,27 +562,27 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
562
562
|
}, e.label))
|
|
563
563
|
})] })
|
|
564
564
|
}), on = { sectionHeading: "_sectionHeading_148lj_1" }, sn = {
|
|
565
|
-
[
|
|
566
|
-
[
|
|
567
|
-
[
|
|
565
|
+
[q.Python]: "Python",
|
|
566
|
+
[q.Curl]: "cURL",
|
|
567
|
+
[q.JavaScript]: "JavaScript"
|
|
568
568
|
}, cn = {
|
|
569
|
-
[
|
|
570
|
-
[
|
|
571
|
-
[
|
|
569
|
+
[q.Python]: "python",
|
|
570
|
+
[q.Curl]: "bash",
|
|
571
|
+
[q.JavaScript]: "javascript"
|
|
572
572
|
}, ln = ({ 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" }) => {
|
|
573
|
-
let [s, c] =
|
|
574
|
-
|
|
575
|
-
c(e[0]?.language ??
|
|
573
|
+
let [s, c] = L(e[0]?.language ?? q.Python);
|
|
574
|
+
P(() => {
|
|
575
|
+
c(e[0]?.language ?? q.Python);
|
|
576
576
|
}, [e]);
|
|
577
|
-
let l =
|
|
577
|
+
let l = F(() => e.map((e) => ({
|
|
578
578
|
key: e.language,
|
|
579
579
|
label: sn[e.language] ?? e.language,
|
|
580
580
|
onClick: () => c(e.language)
|
|
581
581
|
})), [e]), u = e.find((e) => e.language === s)?.code ?? "", d = e.length > 1;
|
|
582
|
-
return /* @__PURE__ */
|
|
582
|
+
return /* @__PURE__ */ K("section", { children: [t != null && /* @__PURE__ */ G("p", {
|
|
583
583
|
className: M("mb-3 mt-0", o, on.sectionHeading),
|
|
584
584
|
children: t
|
|
585
|
-
}), /* @__PURE__ */
|
|
585
|
+
}), /* @__PURE__ */ G(k, {
|
|
586
586
|
language: cn[s] ?? s,
|
|
587
587
|
title: sn[s] ?? s,
|
|
588
588
|
value: u,
|
|
@@ -591,16 +591,16 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
591
591
|
codeClassName: i,
|
|
592
592
|
languageLabelClassName: a,
|
|
593
593
|
hideDownload: !0,
|
|
594
|
-
titleSlot: d ? /* @__PURE__ */
|
|
594
|
+
titleSlot: d ? /* @__PURE__ */ G(Te, {
|
|
595
595
|
items: l,
|
|
596
596
|
matchReferenceWidth: !1,
|
|
597
597
|
placement: "bottom-end",
|
|
598
|
-
size:
|
|
598
|
+
size: be.Small,
|
|
599
599
|
selectedKey: s
|
|
600
600
|
}) : void 0
|
|
601
601
|
})] });
|
|
602
602
|
}, un = ({ 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" }) => {
|
|
603
|
-
let [h, g] =
|
|
603
|
+
let [h, g] = L(0), _ = F(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = F(() => _.map((e, t) => ({
|
|
604
604
|
key: e.url,
|
|
605
605
|
label: e.label,
|
|
606
606
|
onClick: () => g(t)
|
|
@@ -610,17 +610,17 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
610
610
|
value: e.resource.modelId
|
|
611
611
|
});
|
|
612
612
|
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;
|
|
613
|
-
return /* @__PURE__ */
|
|
613
|
+
return /* @__PURE__ */ K("div", {
|
|
614
614
|
className: "flex flex-col gap-6",
|
|
615
615
|
children: [
|
|
616
|
-
C && /* @__PURE__ */
|
|
616
|
+
C && /* @__PURE__ */ G(an, {
|
|
617
617
|
sectionLabel: t,
|
|
618
618
|
values: x,
|
|
619
619
|
labelClassName: u,
|
|
620
620
|
valueClassName: d,
|
|
621
621
|
sectionClassName: m
|
|
622
622
|
}),
|
|
623
|
-
w != null && /* @__PURE__ */
|
|
623
|
+
w != null && /* @__PURE__ */ G(k, {
|
|
624
624
|
language: a,
|
|
625
625
|
value: w,
|
|
626
626
|
copyLabel: c,
|
|
@@ -629,12 +629,12 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
629
629
|
languageLabelClassName: p,
|
|
630
630
|
hideDownload: !0
|
|
631
631
|
}),
|
|
632
|
-
v && /* @__PURE__ */
|
|
633
|
-
/* @__PURE__ */
|
|
632
|
+
v && /* @__PURE__ */ K("section", { children: [
|
|
633
|
+
/* @__PURE__ */ G("p", {
|
|
634
634
|
className: M("mb-3 mt-0", m, on.sectionHeading),
|
|
635
635
|
children: n
|
|
636
636
|
}),
|
|
637
|
-
y != null && /* @__PURE__ */
|
|
637
|
+
y != null && /* @__PURE__ */ G(k, {
|
|
638
638
|
language: y.label,
|
|
639
639
|
value: y.url,
|
|
640
640
|
copyLabel: c,
|
|
@@ -642,17 +642,17 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
642
642
|
codeClassName: f,
|
|
643
643
|
languageLabelClassName: p,
|
|
644
644
|
hideDownload: !0,
|
|
645
|
-
titleSlot: S ? /* @__PURE__ */
|
|
645
|
+
titleSlot: S ? /* @__PURE__ */ G(Te, {
|
|
646
646
|
items: b,
|
|
647
647
|
matchReferenceWidth: !1,
|
|
648
648
|
placement: "bottom-end",
|
|
649
|
-
size:
|
|
649
|
+
size: be.Small,
|
|
650
650
|
selectedKey: y.url
|
|
651
651
|
}) : void 0
|
|
652
652
|
}, h),
|
|
653
|
-
y?.snippets != null && y.snippets.length > 0 && /* @__PURE__ */
|
|
653
|
+
y?.snippets != null && y.snippets.length > 0 && /* @__PURE__ */ G("div", {
|
|
654
654
|
className: "mt-4",
|
|
655
|
-
children: /* @__PURE__ */
|
|
655
|
+
children: /* @__PURE__ */ G(ln, {
|
|
656
656
|
snippets: y.snippets,
|
|
657
657
|
copyAriaLabel: c,
|
|
658
658
|
copiedStatusLabel: l,
|
|
@@ -662,7 +662,7 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
662
662
|
}, h)
|
|
663
663
|
})
|
|
664
664
|
] }),
|
|
665
|
-
!v && T && /* @__PURE__ */
|
|
665
|
+
!v && T && /* @__PURE__ */ G(ln, {
|
|
666
666
|
snippets: e.snippets ?? [],
|
|
667
667
|
sectionLabel: r,
|
|
668
668
|
copyAriaLabel: c,
|
|
@@ -671,10 +671,10 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
671
671
|
codeTitleClassName: p,
|
|
672
672
|
sectionClassName: m
|
|
673
673
|
}),
|
|
674
|
-
E && /* @__PURE__ */
|
|
674
|
+
E && /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("p", {
|
|
675
675
|
className: M("mb-3 mt-0", m, on.sectionHeading),
|
|
676
676
|
children: o
|
|
677
|
-
}), /* @__PURE__ */
|
|
677
|
+
}), /* @__PURE__ */ G(k, {
|
|
678
678
|
language: "bash",
|
|
679
679
|
value: e.requestExample ?? "",
|
|
680
680
|
copyLabel: c,
|
|
@@ -682,10 +682,10 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
682
682
|
codeClassName: f,
|
|
683
683
|
hideDownload: !0
|
|
684
684
|
})] }),
|
|
685
|
-
D && /* @__PURE__ */
|
|
685
|
+
D && /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("p", {
|
|
686
686
|
className: M("mb-3 mt-0", m, on.sectionHeading),
|
|
687
687
|
children: s
|
|
688
|
-
}), /* @__PURE__ */
|
|
688
|
+
}), /* @__PURE__ */ G(k, {
|
|
689
689
|
language: "json",
|
|
690
690
|
value: e.responseSchema ?? "",
|
|
691
691
|
copyLabel: c,
|
|
@@ -704,19 +704,19 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
704
704
|
}({}), pn = {
|
|
705
705
|
sunken: dn.sunkenBox,
|
|
706
706
|
raised: dn.raisedBox
|
|
707
|
-
}, mn = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */
|
|
707
|
+
}, mn = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */ K("span", {
|
|
708
708
|
className: "relative inline-flex shrink-0",
|
|
709
709
|
children: [
|
|
710
|
-
/* @__PURE__ */
|
|
710
|
+
/* @__PURE__ */ G("span", {
|
|
711
711
|
className: M("flex size-8 items-center justify-center rounded-lg", pn[n]),
|
|
712
712
|
children: e
|
|
713
713
|
}),
|
|
714
|
-
t && /* @__PURE__ */
|
|
715
|
-
size:
|
|
714
|
+
t && /* @__PURE__ */ G(Qe, {
|
|
715
|
+
size: R.MD,
|
|
716
716
|
"aria-hidden": !0,
|
|
717
717
|
className: M("absolute -end-2 -top-2", dn.activeIcon)
|
|
718
718
|
}),
|
|
719
|
-
r != null && /* @__PURE__ */
|
|
719
|
+
r != null && /* @__PURE__ */ G("span", {
|
|
720
720
|
role: "status",
|
|
721
721
|
className: "sr-only",
|
|
722
722
|
children: r
|
|
@@ -727,43 +727,43 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
727
727
|
icon: "_icon_tqnz7_6",
|
|
728
728
|
title: "_title_tqnz7_10",
|
|
729
729
|
description: "_description_tqnz7_14"
|
|
730
|
-
}, gn = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */
|
|
730
|
+
}, gn = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ K("div", {
|
|
731
731
|
role: "status",
|
|
732
732
|
"aria-live": "polite",
|
|
733
733
|
className: M("flex items-center gap-3 rounded-xl p-3", hn.card),
|
|
734
|
-
children: [/* @__PURE__ */
|
|
734
|
+
children: [/* @__PURE__ */ G("span", {
|
|
735
735
|
className: M("shrink-0", hn.icon, n != null && "mt-0.5"),
|
|
736
736
|
children: e
|
|
737
|
-
}), /* @__PURE__ */
|
|
737
|
+
}), /* @__PURE__ */ K("div", {
|
|
738
738
|
className: "flex min-w-0 flex-1 items-center justify-between gap-2",
|
|
739
|
-
children: [/* @__PURE__ */
|
|
739
|
+
children: [/* @__PURE__ */ K("div", {
|
|
740
740
|
className: "flex min-w-0 flex-col gap-1",
|
|
741
|
-
children: [/* @__PURE__ */
|
|
741
|
+
children: [/* @__PURE__ */ G("span", {
|
|
742
742
|
className: M(i, hn.title),
|
|
743
743
|
children: t
|
|
744
|
-
}), n != null && /* @__PURE__ */
|
|
744
|
+
}), n != null && /* @__PURE__ */ G("span", {
|
|
745
745
|
className: M(a, hn.description),
|
|
746
746
|
children: n
|
|
747
747
|
})]
|
|
748
|
-
}), r != null && /* @__PURE__ */
|
|
748
|
+
}), r != null && /* @__PURE__ */ G("div", {
|
|
749
749
|
className: "shrink-0 whitespace-nowrap",
|
|
750
750
|
children: r
|
|
751
751
|
})]
|
|
752
752
|
})]
|
|
753
753
|
}), _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 }) => {
|
|
754
|
-
let r = /* @__PURE__ */
|
|
754
|
+
let r = /* @__PURE__ */ G(qe, {
|
|
755
755
|
size: xn,
|
|
756
756
|
"aria-hidden": !0,
|
|
757
|
-
stroke:
|
|
757
|
+
stroke: z
|
|
758
758
|
});
|
|
759
759
|
if (e === v.PersonalCredentialsActive) {
|
|
760
760
|
let e = (n?.personalCredentialsActiveBannerTitle ?? bn)(t);
|
|
761
|
-
return /* @__PURE__ */
|
|
762
|
-
icon: /* @__PURE__ */
|
|
763
|
-
icon: /* @__PURE__ */
|
|
764
|
-
size:
|
|
761
|
+
return /* @__PURE__ */ G(gn, {
|
|
762
|
+
icon: /* @__PURE__ */ G(mn, {
|
|
763
|
+
icon: /* @__PURE__ */ G(ft, {
|
|
764
|
+
size: R.SM,
|
|
765
765
|
"aria-hidden": !0,
|
|
766
|
-
stroke:
|
|
766
|
+
stroke: z
|
|
767
767
|
}),
|
|
768
768
|
isActive: !0,
|
|
769
769
|
surface: fn.Raised
|
|
@@ -773,12 +773,12 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
773
773
|
}
|
|
774
774
|
if (e === v.OrgCredentialsActive) {
|
|
775
775
|
let e = (n?.orgCredentialsActiveBannerTitle ?? yn)(t);
|
|
776
|
-
return /* @__PURE__ */
|
|
777
|
-
icon: /* @__PURE__ */
|
|
778
|
-
icon: /* @__PURE__ */
|
|
779
|
-
size:
|
|
776
|
+
return /* @__PURE__ */ G(gn, {
|
|
777
|
+
icon: /* @__PURE__ */ G(mn, {
|
|
778
|
+
icon: /* @__PURE__ */ G(qe, {
|
|
779
|
+
size: R.SM,
|
|
780
780
|
"aria-hidden": !0,
|
|
781
|
-
stroke:
|
|
781
|
+
stroke: z
|
|
782
782
|
}),
|
|
783
783
|
isActive: !0,
|
|
784
784
|
surface: fn.Raised
|
|
@@ -786,7 +786,7 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
786
786
|
title: e
|
|
787
787
|
});
|
|
788
788
|
}
|
|
789
|
-
return /* @__PURE__ */
|
|
789
|
+
return /* @__PURE__ */ G(gn, {
|
|
790
790
|
icon: r,
|
|
791
791
|
title: (n?.orgFallbackBannerTitle ?? _n)(t),
|
|
792
792
|
description: (n?.orgFallbackBannerDescription ?? vn)(t)
|
|
@@ -797,7 +797,7 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
797
797
|
rowDescription: "_rowDescription_lyarp_9",
|
|
798
798
|
errorText: "_errorText_lyarp_13"
|
|
799
799
|
}, 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 }) => {
|
|
800
|
-
let C =
|
|
800
|
+
let C = se(), [w, T] = L(), [E, D] = L(""), [O, ee] = L(!1), [k, A] = L(!1), te = r === o.SignedIn, ne = N((e) => {
|
|
801
801
|
D(e ?? ""), ee(!1), T(void 0);
|
|
802
802
|
}, []), re = async () => {
|
|
803
803
|
if (k || v) return;
|
|
@@ -814,41 +814,41 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
814
814
|
} finally {
|
|
815
815
|
A(!1);
|
|
816
816
|
}
|
|
817
|
-
}, j = d?.loginActionLabel ?? "Log in", ie = d?.logoutActionLabel ?? "Log out",
|
|
818
|
-
return /* @__PURE__ */
|
|
817
|
+
}, j = d?.loginActionLabel ?? "Log in", ie = d?.logoutActionLabel ?? "Log out", ae = d?.addApiKeyActionLabel ?? "Add", oe = d?.deleteActionLabel ?? "Delete", P = d?.credentialsSignedInLabel ?? "Signed in", ce = d?.credentialsSignedOutLabel ?? "Signed out", F = d?.addingApiKeyStatusLabel ?? "Adding", I = d?.apiKeyConfiguredMessage ?? "Key has been configured", le = s == null ? void 0 : (d?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(s);
|
|
818
|
+
return /* @__PURE__ */ K("div", {
|
|
819
819
|
role: "group",
|
|
820
820
|
"aria-label": e,
|
|
821
821
|
"aria-busy": k || b,
|
|
822
822
|
className: "flex min-w-0 items-start gap-3 rounded-xl p-3",
|
|
823
|
-
children: [/* @__PURE__ */
|
|
823
|
+
children: [/* @__PURE__ */ G(mn, {
|
|
824
824
|
icon: n,
|
|
825
825
|
isActive: i,
|
|
826
|
-
statusLabel: i ?
|
|
827
|
-
}), /* @__PURE__ */
|
|
826
|
+
statusLabel: i ? P : ce
|
|
827
|
+
}), /* @__PURE__ */ K("div", {
|
|
828
828
|
className: "flex min-w-0 flex-1 flex-col gap-1",
|
|
829
829
|
children: [
|
|
830
|
-
/* @__PURE__ */
|
|
830
|
+
/* @__PURE__ */ K("div", {
|
|
831
831
|
className: "flex flex-wrap items-start justify-between gap-2",
|
|
832
|
-
children: [/* @__PURE__ */
|
|
832
|
+
children: [/* @__PURE__ */ K("div", {
|
|
833
833
|
className: "flex min-w-0 flex-1 flex-col gap-0.5 break-words",
|
|
834
|
-
children: [/* @__PURE__ */
|
|
834
|
+
children: [/* @__PURE__ */ G("span", {
|
|
835
835
|
className: f,
|
|
836
836
|
children: e
|
|
837
|
-
}), /* @__PURE__ */
|
|
837
|
+
}), /* @__PURE__ */ G("span", {
|
|
838
838
|
className: M(p, Cn.rowDescription),
|
|
839
839
|
children: t
|
|
840
840
|
})]
|
|
841
|
-
}), a === y.OAuth && (te ? l && /* @__PURE__ */
|
|
842
|
-
appearance:
|
|
841
|
+
}), a === y.OAuth && (te ? l && /* @__PURE__ */ G(_e, {
|
|
842
|
+
appearance: de.Ghost,
|
|
843
843
|
label: ie,
|
|
844
844
|
className: "min-h-11 min-w-28 shrink-0 justify-center whitespace-nowrap",
|
|
845
845
|
onClick: l,
|
|
846
846
|
disabled: k || v
|
|
847
|
-
}) : /* @__PURE__ */
|
|
847
|
+
}) : /* @__PURE__ */ G(je, {
|
|
848
848
|
label: k ? void 0 : j,
|
|
849
849
|
"aria-label": j,
|
|
850
|
-
iconBefore: k ? /* @__PURE__ */
|
|
851
|
-
size:
|
|
850
|
+
iconBefore: k ? /* @__PURE__ */ G(Be, {
|
|
851
|
+
size: R.SM,
|
|
852
852
|
ariaLabel: j
|
|
853
853
|
}) : void 0,
|
|
854
854
|
disabled: k || v,
|
|
@@ -856,11 +856,11 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
856
856
|
onClick: re
|
|
857
857
|
}))]
|
|
858
858
|
}),
|
|
859
|
-
a === y.ApiKey && !te && /* @__PURE__ */
|
|
859
|
+
a === y.ApiKey && !te && /* @__PURE__ */ K("div", {
|
|
860
860
|
className: "flex animate-fadeIn flex-col gap-1 pt-1",
|
|
861
|
-
children: [/* @__PURE__ */
|
|
861
|
+
children: [/* @__PURE__ */ K("div", {
|
|
862
862
|
className: "flex items-end gap-2",
|
|
863
|
-
children: [/* @__PURE__ */
|
|
863
|
+
children: [/* @__PURE__ */ G(De, {
|
|
864
864
|
id: C,
|
|
865
865
|
type: "password",
|
|
866
866
|
autoComplete: "off",
|
|
@@ -870,37 +870,37 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
870
870
|
invalid: O,
|
|
871
871
|
disabled: k || v,
|
|
872
872
|
containerClassName: "min-w-0 flex-1"
|
|
873
|
-
}), /* @__PURE__ */
|
|
874
|
-
label: k ? void 0 :
|
|
875
|
-
"aria-label": k ?
|
|
876
|
-
iconBefore: k ? /* @__PURE__ */
|
|
877
|
-
size:
|
|
878
|
-
ariaLabel:
|
|
873
|
+
}), /* @__PURE__ */ G(je, {
|
|
874
|
+
label: k ? void 0 : ae,
|
|
875
|
+
"aria-label": k ? F : void 0,
|
|
876
|
+
iconBefore: k ? /* @__PURE__ */ G(Be, {
|
|
877
|
+
size: R.SM,
|
|
878
|
+
ariaLabel: F
|
|
879
879
|
}) : void 0,
|
|
880
880
|
className: "min-h-11 shrink-0 whitespace-nowrap",
|
|
881
881
|
onClick: re,
|
|
882
882
|
disabled: k || v
|
|
883
883
|
})]
|
|
884
|
-
}), O && /* @__PURE__ */
|
|
884
|
+
}), O && /* @__PURE__ */ G("span", {
|
|
885
885
|
role: "alert",
|
|
886
886
|
className: M(m, Cn.errorText),
|
|
887
887
|
children: d?.apiKeyRequiredErrorMessage ?? "API key is required."
|
|
888
888
|
})]
|
|
889
889
|
}),
|
|
890
|
-
a === y.ApiKey && te && /* @__PURE__ */
|
|
890
|
+
a === y.ApiKey && te && /* @__PURE__ */ G("div", {
|
|
891
891
|
className: "animate-fadeIn pt-1",
|
|
892
|
-
children: /* @__PURE__ */
|
|
893
|
-
icon: /* @__PURE__ */
|
|
894
|
-
size:
|
|
892
|
+
children: /* @__PURE__ */ G(gn, {
|
|
893
|
+
icon: /* @__PURE__ */ G(nt, {
|
|
894
|
+
size: R.SM,
|
|
895
895
|
"aria-hidden": !0,
|
|
896
|
-
stroke:
|
|
896
|
+
stroke: z
|
|
897
897
|
}),
|
|
898
|
-
title:
|
|
899
|
-
description:
|
|
898
|
+
title: I,
|
|
899
|
+
description: le,
|
|
900
900
|
titleClassName: h,
|
|
901
901
|
descriptionClassName: g,
|
|
902
|
-
action: u && /* @__PURE__ */
|
|
903
|
-
label:
|
|
902
|
+
action: u && /* @__PURE__ */ G(Oe, {
|
|
903
|
+
label: oe,
|
|
904
904
|
className: M("min-h-11", _),
|
|
905
905
|
onClick: u,
|
|
906
906
|
disabled: k || v
|
|
@@ -908,7 +908,7 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
908
908
|
})
|
|
909
909
|
}),
|
|
910
910
|
!te && x?.(k || v),
|
|
911
|
-
w && /* @__PURE__ */
|
|
911
|
+
w && /* @__PURE__ */ G("p", {
|
|
912
912
|
role: "alert",
|
|
913
913
|
className: M(m, Cn.errorText),
|
|
914
914
|
children: w
|
|
@@ -921,32 +921,32 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
921
921
|
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;
|
|
922
922
|
if (m == null) return null;
|
|
923
923
|
let h = (i?.credentialsManagementDescription ?? Tn)(m.authenticationType), g = m.userStatus === o.SignedIn, _ = !g && m.globalStatus === o.SignedIn;
|
|
924
|
-
return /* @__PURE__ */
|
|
924
|
+
return /* @__PURE__ */ K("div", {
|
|
925
925
|
className: "flex flex-col",
|
|
926
|
-
children: [/* @__PURE__ */
|
|
926
|
+
children: [/* @__PURE__ */ G("div", {
|
|
927
927
|
className: "px-6 py-4",
|
|
928
|
-
children: /* @__PURE__ */
|
|
928
|
+
children: /* @__PURE__ */ G("div", {
|
|
929
929
|
className: M("rounded-xl p-3", Cn.surface),
|
|
930
|
-
children: /* @__PURE__ */
|
|
930
|
+
children: /* @__PURE__ */ G(E, {
|
|
931
931
|
item: e,
|
|
932
932
|
iconSize: 40,
|
|
933
933
|
hasFeaturedTag: !1
|
|
934
934
|
})
|
|
935
935
|
})
|
|
936
|
-
}), /* @__PURE__ */
|
|
936
|
+
}), /* @__PURE__ */ K("div", {
|
|
937
937
|
className: "flex flex-col gap-5 px-6 py-4",
|
|
938
|
-
children: [/* @__PURE__ */
|
|
938
|
+
children: [/* @__PURE__ */ G("span", {
|
|
939
939
|
className: M(c, Cn.description),
|
|
940
940
|
children: h
|
|
941
|
-
}), /* @__PURE__ */
|
|
941
|
+
}), /* @__PURE__ */ K("div", {
|
|
942
942
|
className: "flex flex-col",
|
|
943
|
-
children: [/* @__PURE__ */
|
|
943
|
+
children: [/* @__PURE__ */ G(wn, {
|
|
944
944
|
label: i?.personalCredentialsLabel ?? "Personal credentials",
|
|
945
945
|
description: i?.personalCredentialsDescription ?? "These credentials apply only to your account.",
|
|
946
|
-
icon: /* @__PURE__ */
|
|
947
|
-
size:
|
|
946
|
+
icon: /* @__PURE__ */ G(ft, {
|
|
947
|
+
size: R.SM,
|
|
948
948
|
"aria-hidden": !0,
|
|
949
|
-
stroke:
|
|
949
|
+
stroke: z
|
|
950
950
|
}),
|
|
951
951
|
status: m.userStatus,
|
|
952
952
|
isActive: g,
|
|
@@ -965,13 +965,13 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
965
965
|
keyCardTitleClassName: f,
|
|
966
966
|
keyCardDescriptionClassName: p,
|
|
967
967
|
deleteActionClassName: s
|
|
968
|
-
}), /* @__PURE__ */
|
|
968
|
+
}), /* @__PURE__ */ G(wn, {
|
|
969
969
|
label: i?.organizationCredentialsLabel ?? "Organization credentials",
|
|
970
970
|
description: i?.organizationCredentialsDescription ?? "Once added, these credentials will grant all users in your organization access to this toolset.",
|
|
971
|
-
icon: /* @__PURE__ */
|
|
972
|
-
size:
|
|
971
|
+
icon: /* @__PURE__ */ G(qe, {
|
|
972
|
+
size: R.SM,
|
|
973
973
|
"aria-hidden": !0,
|
|
974
|
-
stroke:
|
|
974
|
+
stroke: z
|
|
975
975
|
}),
|
|
976
976
|
status: m.globalStatus,
|
|
977
977
|
isActive: _,
|
|
@@ -1004,9 +1004,9 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1004
1004
|
}, On = /* @__PURE__ */ function(e) {
|
|
1005
1005
|
return e.Idle = "idle", e.Loading = "loading", e.Resolved = "resolved", e.Unknown = "unknown", e;
|
|
1006
1006
|
}({}), 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" }) => {
|
|
1007
|
-
let [u, d] =
|
|
1007
|
+
let [u, d] = L(""), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L(!1), v = n === o.SignedIn, y = N((e) => {
|
|
1008
1008
|
d(e ?? ""), p(!1);
|
|
1009
|
-
}, []), b =
|
|
1009
|
+
}, []), b = N(async () => {
|
|
1010
1010
|
if (u.trim().length === 0) {
|
|
1011
1011
|
p(!0);
|
|
1012
1012
|
return;
|
|
@@ -1026,7 +1026,7 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1026
1026
|
u,
|
|
1027
1027
|
i,
|
|
1028
1028
|
s
|
|
1029
|
-
]), x =
|
|
1029
|
+
]), x = N(async () => {
|
|
1030
1030
|
_(!0);
|
|
1031
1031
|
try {
|
|
1032
1032
|
await a?.(e, { level: t }), s();
|
|
@@ -1039,22 +1039,22 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1039
1039
|
a,
|
|
1040
1040
|
s
|
|
1041
1041
|
]), 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", ee = r == null ? void 0 : (c?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(r);
|
|
1042
|
-
return /* @__PURE__ */
|
|
1042
|
+
return /* @__PURE__ */ K("div", {
|
|
1043
1043
|
className: "flex w-[418px] flex-col",
|
|
1044
1044
|
children: [
|
|
1045
|
-
/* @__PURE__ */
|
|
1045
|
+
/* @__PURE__ */ G("div", {
|
|
1046
1046
|
className: "flex items-center gap-2 px-4 py-3",
|
|
1047
|
-
children: /* @__PURE__ */
|
|
1047
|
+
children: /* @__PURE__ */ G("span", {
|
|
1048
1048
|
className: "dial-small-semi-text",
|
|
1049
1049
|
children: S
|
|
1050
1050
|
})
|
|
1051
1051
|
}),
|
|
1052
|
-
/* @__PURE__ */
|
|
1053
|
-
!v && /* @__PURE__ */
|
|
1052
|
+
/* @__PURE__ */ G("div", { className: M("mx-4 h-px", kn.divider) }),
|
|
1053
|
+
!v && /* @__PURE__ */ K("div", {
|
|
1054
1054
|
className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
|
|
1055
|
-
children: [/* @__PURE__ */
|
|
1055
|
+
children: [/* @__PURE__ */ K("div", {
|
|
1056
1056
|
className: "flex items-end gap-2",
|
|
1057
|
-
children: [/* @__PURE__ */
|
|
1057
|
+
children: [/* @__PURE__ */ G(De, {
|
|
1058
1058
|
id: `catalog-item-${e.id}-${t}-api-key`,
|
|
1059
1059
|
type: "password",
|
|
1060
1060
|
autoComplete: "current-password",
|
|
@@ -1064,35 +1064,35 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1064
1064
|
invalid: f,
|
|
1065
1065
|
disabled: m,
|
|
1066
1066
|
containerClassName: "min-w-0 flex-1"
|
|
1067
|
-
}), /* @__PURE__ */
|
|
1067
|
+
}), /* @__PURE__ */ G(je, {
|
|
1068
1068
|
label: m ? void 0 : C,
|
|
1069
1069
|
"aria-label": m ? T : void 0,
|
|
1070
|
-
iconBefore: m ? /* @__PURE__ */
|
|
1070
|
+
iconBefore: m ? /* @__PURE__ */ G(Be, {
|
|
1071
1071
|
size: An,
|
|
1072
1072
|
ariaLabel: T
|
|
1073
1073
|
}) : void 0,
|
|
1074
1074
|
onClick: b,
|
|
1075
1075
|
disabled: m
|
|
1076
1076
|
})]
|
|
1077
|
-
}), f && /* @__PURE__ */
|
|
1077
|
+
}), f && /* @__PURE__ */ G("span", {
|
|
1078
1078
|
className: "dial-caption-text text-error",
|
|
1079
1079
|
children: D
|
|
1080
1080
|
})]
|
|
1081
1081
|
}),
|
|
1082
|
-
v && /* @__PURE__ */
|
|
1082
|
+
v && /* @__PURE__ */ G("div", {
|
|
1083
1083
|
className: "animate-fadeIn px-4 py-3.5",
|
|
1084
|
-
children: /* @__PURE__ */
|
|
1085
|
-
icon: /* @__PURE__ */
|
|
1084
|
+
children: /* @__PURE__ */ G(gn, {
|
|
1085
|
+
icon: /* @__PURE__ */ G(nt, {
|
|
1086
1086
|
size: 20,
|
|
1087
1087
|
"aria-hidden": !0,
|
|
1088
|
-
stroke:
|
|
1088
|
+
stroke: z
|
|
1089
1089
|
}),
|
|
1090
1090
|
title: O,
|
|
1091
1091
|
description: ee,
|
|
1092
|
-
action: /* @__PURE__ */
|
|
1092
|
+
action: /* @__PURE__ */ G(Oe, {
|
|
1093
1093
|
label: g ? void 0 : w,
|
|
1094
1094
|
"aria-label": g ? E : void 0,
|
|
1095
|
-
iconBefore: g ? /* @__PURE__ */
|
|
1095
|
+
iconBefore: g ? /* @__PURE__ */ G(Be, {
|
|
1096
1096
|
size: An,
|
|
1097
1097
|
ariaLabel: E
|
|
1098
1098
|
}) : void 0,
|
|
@@ -1105,7 +1105,7 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1105
1105
|
]
|
|
1106
1106
|
});
|
|
1107
1107
|
}, Mn = { name: "_name_gfs1p_1" }, Nn = (e) => e.isMyApp === !0, Pn = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
|
|
1108
|
-
let [a, o] =
|
|
1108
|
+
let [a, o] = L(!1), s = N(() => {
|
|
1109
1109
|
if (n) {
|
|
1110
1110
|
o((e) => !e);
|
|
1111
1111
|
return;
|
|
@@ -1117,21 +1117,21 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1117
1117
|
n
|
|
1118
1118
|
]);
|
|
1119
1119
|
if (!Nn(e) || r && !r(e)) return null;
|
|
1120
|
-
let c = /* @__PURE__ */
|
|
1120
|
+
let c = /* @__PURE__ */ G(je, {
|
|
1121
1121
|
label: i,
|
|
1122
|
-
iconBefore: /* @__PURE__ */
|
|
1123
|
-
size:
|
|
1124
|
-
stroke:
|
|
1122
|
+
iconBefore: /* @__PURE__ */ G(ut, {
|
|
1123
|
+
size: R.MD,
|
|
1124
|
+
stroke: z
|
|
1125
1125
|
}),
|
|
1126
|
-
iconAfter: /* @__PURE__ */
|
|
1127
|
-
size:
|
|
1128
|
-
stroke:
|
|
1126
|
+
iconAfter: /* @__PURE__ */ G(Ye, {
|
|
1127
|
+
size: R.MD,
|
|
1128
|
+
stroke: z
|
|
1129
1129
|
}),
|
|
1130
1130
|
onClick: s,
|
|
1131
1131
|
"aria-haspopup": n ? "menu" : void 0,
|
|
1132
1132
|
"aria-expanded": n ? a : void 0
|
|
1133
1133
|
});
|
|
1134
|
-
return n ? /* @__PURE__ */
|
|
1134
|
+
return n ? /* @__PURE__ */ G(ve, {
|
|
1135
1135
|
placement: "bottom-end",
|
|
1136
1136
|
matchReferenceWidth: !1,
|
|
1137
1137
|
open: a,
|
|
@@ -1144,46 +1144,46 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1144
1144
|
}, Fn = (e) => e === y.ApiKey ? "Manage API keys" : "Manage credentials", In = {
|
|
1145
1145
|
[St.LimitReached]: "bg-error text-error",
|
|
1146
1146
|
[St.RunningLow]: "bg-warning text-warning"
|
|
1147
|
-
}, Ln = ({ status: e, label: t }) => /* @__PURE__ */
|
|
1147
|
+
}, Ln = ({ status: e, label: t }) => /* @__PURE__ */ G("div", {
|
|
1148
1148
|
className: M("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", In[e]),
|
|
1149
1149
|
children: t
|
|
1150
|
-
}), 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: w, onRequestLogout: T, texts: D, detailsStyles: O, isPublishVisible: ee, isPublishPrimary: k, onOpenPublish: A, isUnpublishVisible: te, hasPublishedFolders: ne = !1, isPublishHistoryResolved: re = !0, onRequestPublishHistory: j, onOpenUnpublish: ie, isReadonly:
|
|
1151
|
-
let { nameClassName:
|
|
1152
|
-
status:
|
|
1153
|
-
label:
|
|
1154
|
-
}),
|
|
1150
|
+
}), 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: w, onRequestLogout: T, texts: D, detailsStyles: O, isPublishVisible: ee, isPublishPrimary: k, onOpenPublish: A, isUnpublishVisible: te, hasPublishedFolders: ne = !1, isPublishHistoryResolved: re = !0, onRequestPublishHistory: j, onOpenUnpublish: ie, isReadonly: ae = !1 }) => {
|
|
1151
|
+
let { nameClassName: oe = "dial-body-semi-text", folderLabelClassName: se = "dial-tiny-text", folderLeafClassName: ce = "dial-tiny-semi-text" } = O?.typography ?? {}, le = e.details?.limits?.status, ue = le == null ? void 0 : /* @__PURE__ */ G(Ln, {
|
|
1152
|
+
status: le,
|
|
1153
|
+
label: le === St.LimitReached ? D?.limitReachedLabel ?? "Limit reached" : D?.limitRunningLowLabel ?? "Running low"
|
|
1154
|
+
}), de = N(() => {
|
|
1155
1155
|
t?.(e);
|
|
1156
|
-
}, [e, t]),
|
|
1156
|
+
}, [e, t]), fe = N(() => {
|
|
1157
1157
|
l?.(e);
|
|
1158
|
-
}, [e, l]),
|
|
1158
|
+
}, [e, l]), pe = N(() => {
|
|
1159
1159
|
A?.();
|
|
1160
|
-
}, [A]),
|
|
1160
|
+
}, [A]), me = N(() => {
|
|
1161
1161
|
ie?.();
|
|
1162
|
-
}, [ie]),
|
|
1162
|
+
}, [ie]), he = N(() => {
|
|
1163
1163
|
u?.(e);
|
|
1164
|
-
}, [e, u]), [
|
|
1165
|
-
|
|
1166
|
-
|
|
1164
|
+
}, [e, u]), [ge, ye] = L(!1);
|
|
1165
|
+
P(() => {
|
|
1166
|
+
ye(!1);
|
|
1167
1167
|
}, [e.id]);
|
|
1168
|
-
let
|
|
1169
|
-
|
|
1168
|
+
let be = N(() => {
|
|
1169
|
+
ge || (ye(!0), (async () => {
|
|
1170
1170
|
try {
|
|
1171
1171
|
await u?.(e);
|
|
1172
1172
|
} catch {} finally {
|
|
1173
|
-
|
|
1173
|
+
ye(!1);
|
|
1174
1174
|
}
|
|
1175
1175
|
})());
|
|
1176
1176
|
}, [
|
|
1177
1177
|
e,
|
|
1178
1178
|
u,
|
|
1179
|
-
|
|
1180
|
-
]), [
|
|
1181
|
-
|
|
1182
|
-
|
|
1179
|
+
ge
|
|
1180
|
+
]), [xe, Ce] = L(!1);
|
|
1181
|
+
P(() => {
|
|
1182
|
+
Ce(!1);
|
|
1183
1183
|
}, [e.id]);
|
|
1184
|
-
let
|
|
1184
|
+
let B = N(() => {
|
|
1185
1185
|
if (a) {
|
|
1186
|
-
|
|
1186
|
+
Ce(!0);
|
|
1187
1187
|
return;
|
|
1188
1188
|
}
|
|
1189
1189
|
i?.(e);
|
|
@@ -1191,29 +1191,29 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1191
1191
|
e,
|
|
1192
1192
|
i,
|
|
1193
1193
|
a
|
|
1194
|
-
]),
|
|
1195
|
-
|
|
1196
|
-
}, []),
|
|
1194
|
+
]), we = N(() => {
|
|
1195
|
+
Ce(!1);
|
|
1196
|
+
}, []), Te = N(() => {
|
|
1197
1197
|
m?.(e);
|
|
1198
|
-
}, [e, m]),
|
|
1198
|
+
}, [e, m]), Ee = N(() => {
|
|
1199
1199
|
p?.(e);
|
|
1200
|
-
}, [e, p]),
|
|
1200
|
+
}, [e, p]), De = N(() => {
|
|
1201
1201
|
g?.(e);
|
|
1202
|
-
}, [e, g]), [
|
|
1203
|
-
|
|
1204
|
-
|
|
1202
|
+
}, [e, g]), [Oe, ke] = L(On.Idle), [Ae, Ne] = L(void 0), Pe = I(null);
|
|
1203
|
+
P(() => {
|
|
1204
|
+
Pe.current = null, ke(On.Idle), Ne(void 0);
|
|
1205
1205
|
}, [e.id]);
|
|
1206
|
-
let
|
|
1207
|
-
if (!_ ||
|
|
1206
|
+
let Fe = N(() => {
|
|
1207
|
+
if (!_ || Pe.current === e.id || !g || e.isMyApp !== !0 || v?.(e) === !1) return;
|
|
1208
1208
|
let t = e.id;
|
|
1209
|
-
|
|
1209
|
+
Pe.current = t, ke(On.Loading), (async () => {
|
|
1210
1210
|
try {
|
|
1211
1211
|
let n = await _(e);
|
|
1212
|
-
if (
|
|
1213
|
-
|
|
1212
|
+
if (Pe.current !== t) return;
|
|
1213
|
+
Ne(n), ke(n == null ? On.Unknown : On.Resolved);
|
|
1214
1214
|
} catch {
|
|
1215
|
-
if (
|
|
1216
|
-
|
|
1215
|
+
if (Pe.current !== t) return;
|
|
1216
|
+
Ne(void 0), ke(On.Unknown);
|
|
1217
1217
|
}
|
|
1218
1218
|
})();
|
|
1219
1219
|
}, [
|
|
@@ -1221,104 +1221,104 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1221
1221
|
_,
|
|
1222
1222
|
g,
|
|
1223
1223
|
v
|
|
1224
|
-
]), [
|
|
1225
|
-
|
|
1226
|
-
|
|
1224
|
+
]), [Ie, Le] = L(!1);
|
|
1225
|
+
P(() => {
|
|
1226
|
+
Le(!1);
|
|
1227
1227
|
}, [e.id]);
|
|
1228
|
-
let
|
|
1229
|
-
|
|
1230
|
-
}, [
|
|
1231
|
-
|
|
1232
|
-
}, [
|
|
1228
|
+
let Re = N((e) => {
|
|
1229
|
+
Le(e), e && (Fe(), j?.());
|
|
1230
|
+
}, [Fe, j]), ze = N(() => {
|
|
1231
|
+
Fe(), j?.();
|
|
1232
|
+
}, [Fe, j]), Ve = N(() => {
|
|
1233
1233
|
j?.();
|
|
1234
|
-
}, [j]),
|
|
1234
|
+
}, [j]), He = 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 && !re && te?.(e) === !0, Ge = !ae && !Ue && (ee?.(e) ?? (e.type === x.Model || e.type === x.Toolset || e.type === x.Agent)), qe = !ae && !!l && !!e.isEditable, Je = !ae && e.isMyApp === !0 && (o?.(e) ?? !0), Xe = s?.(e) ?? !0, Ze = k?.(e) ?? !1, Qe = e.credentials?.authenticationType ?? y.None, H = e.credentials != null && Qe !== y.None ? c(e.credentials) : void 0, tt = !ae && H != null && (!!S || !!C), rt = e.type === x.Toolset && tt, it = !!u && (d?.(e) ?? !0), lt = it && !rt && (f?.(e) ?? (e.type === x.Skill && !He)), U = it && !lt, dt = !ae && e.isMyApp, ft = !ae && !!m && e.isMyApp !== !0 && e.sharedWithMe === !0 && (h?.(e) ?? !0), _t = !ae && !!g && e.isMyApp === !0 && (!_ || Oe === On.Unknown || Oe === On.Resolved && (Ae ?? 0) > 0) && (v?.(e) ?? !0), vt = F(() => {
|
|
1235
1235
|
let e = [];
|
|
1236
|
-
if (!
|
|
1236
|
+
if (!Xe && Je && e.push({
|
|
1237
1237
|
key: "share",
|
|
1238
1238
|
label: D?.shareLabel ?? "Share",
|
|
1239
|
-
Icon:
|
|
1239
|
+
Icon: ut,
|
|
1240
1240
|
iconClassName: "text-secondary",
|
|
1241
|
-
onClick:
|
|
1242
|
-
}),
|
|
1241
|
+
onClick: B
|
|
1242
|
+
}), qe && e.push({
|
|
1243
1243
|
key: "edit",
|
|
1244
1244
|
label: D?.editActionLabel ?? "Edit",
|
|
1245
|
-
Icon:
|
|
1245
|
+
Icon: st,
|
|
1246
1246
|
iconClassName: "text-secondary",
|
|
1247
|
-
onClick:
|
|
1248
|
-
}),
|
|
1247
|
+
onClick: fe
|
|
1248
|
+
}), U && e.push({
|
|
1249
1249
|
key: "download",
|
|
1250
1250
|
label: D?.downloadActionLabel ?? "Download",
|
|
1251
|
-
Icon:
|
|
1251
|
+
Icon: et,
|
|
1252
1252
|
iconClassName: "text-secondary",
|
|
1253
|
-
onClick:
|
|
1254
|
-
}), !
|
|
1253
|
+
onClick: he
|
|
1254
|
+
}), !Ze && Ge && e.push({
|
|
1255
1255
|
key: "publish",
|
|
1256
1256
|
label: D?.publishLabel ?? "Publish",
|
|
1257
|
-
Icon:
|
|
1257
|
+
Icon: ht,
|
|
1258
1258
|
iconClassName: "text-secondary",
|
|
1259
|
-
onClick:
|
|
1260
|
-
}), !
|
|
1259
|
+
onClick: pe
|
|
1260
|
+
}), !Ze && Ue && e.push({
|
|
1261
1261
|
key: "unpublish",
|
|
1262
1262
|
label: D?.unpublishLabel ?? "Unpublish",
|
|
1263
1263
|
Icon: mt,
|
|
1264
1264
|
iconClassName: "text-secondary",
|
|
1265
|
-
onClick:
|
|
1266
|
-
}),
|
|
1265
|
+
onClick: me
|
|
1266
|
+
}), _t) {
|
|
1267
1267
|
let t = D?.revokeShareLabel ?? "Revoke access", n = D?.revokeShareLabelWithCount ?? ((e) => `${t} (${e})`);
|
|
1268
1268
|
e.push({
|
|
1269
1269
|
key: "revoke-share",
|
|
1270
|
-
label:
|
|
1270
|
+
label: Ae == null ? t : n(Ae),
|
|
1271
1271
|
Icon: pt,
|
|
1272
1272
|
danger: !0,
|
|
1273
|
-
onClick:
|
|
1273
|
+
onClick: De
|
|
1274
1274
|
});
|
|
1275
1275
|
}
|
|
1276
1276
|
return ft && e.push({
|
|
1277
1277
|
key: "unshare",
|
|
1278
1278
|
label: D?.unshareLabel ?? "Remove from My List",
|
|
1279
|
-
Icon:
|
|
1280
|
-
onClick:
|
|
1281
|
-
}),
|
|
1279
|
+
Icon: W,
|
|
1280
|
+
onClick: Te
|
|
1281
|
+
}), dt && e.push({
|
|
1282
1282
|
key: "delete",
|
|
1283
1283
|
label: D?.deleteActionLabel ?? "Delete",
|
|
1284
|
-
Icon:
|
|
1284
|
+
Icon: W,
|
|
1285
1285
|
danger: !0,
|
|
1286
|
-
onClick:
|
|
1286
|
+
onClick: Ee
|
|
1287
1287
|
}), e;
|
|
1288
1288
|
}, [
|
|
1289
|
+
Xe,
|
|
1290
|
+
Je,
|
|
1289
1291
|
qe,
|
|
1292
|
+
U,
|
|
1293
|
+
Ze,
|
|
1290
1294
|
Ge,
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
Be,
|
|
1296
|
-
ut,
|
|
1297
|
-
gt,
|
|
1298
|
-
Oe,
|
|
1295
|
+
Ue,
|
|
1296
|
+
dt,
|
|
1297
|
+
_t,
|
|
1298
|
+
Ae,
|
|
1299
1299
|
ft,
|
|
1300
1300
|
D,
|
|
1301
|
-
|
|
1302
|
-
ue,
|
|
1303
|
-
pe,
|
|
1304
|
-
de,
|
|
1301
|
+
B,
|
|
1305
1302
|
fe,
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1303
|
+
he,
|
|
1304
|
+
pe,
|
|
1305
|
+
me,
|
|
1306
|
+
Ee,
|
|
1307
|
+
De,
|
|
1308
|
+
Te
|
|
1309
|
+
]), yt = F(() => vt.map(({ key: e, label: t, Icon: n, iconClassName: r, danger: i, onClick: a }) => ({
|
|
1310
1310
|
key: e,
|
|
1311
1311
|
label: t,
|
|
1312
|
-
icon: /* @__PURE__ */
|
|
1313
|
-
size:
|
|
1312
|
+
icon: /* @__PURE__ */ G(n, {
|
|
1313
|
+
size: R.SM,
|
|
1314
1314
|
"aria-hidden": !0,
|
|
1315
1315
|
className: r,
|
|
1316
|
-
stroke:
|
|
1316
|
+
stroke: z
|
|
1317
1317
|
}),
|
|
1318
1318
|
danger: i,
|
|
1319
1319
|
onClick: a
|
|
1320
|
-
})), [
|
|
1321
|
-
if (
|
|
1320
|
+
})), [vt]), bt = te?.(e), xt = !ae && !!ie && (bt == null || bt && !re), q = !ae && !!g && !!_ && e.isMyApp === !0 && (v?.(e) ?? !0), J = vt.length === 1 && !Ie && !xt && !q ? vt[0] : void 0, [Y, Ct] = L(!1), X = Qe === y.ApiKey && H !== n.ManageCredentials, wt = Qe === y.ApiKey && H === n.LogOut, Z = Qe !== y.ApiKey && H !== n.ManageCredentials && H === n.LogOut, Q = N(() => {
|
|
1321
|
+
if (H === n.ManageCredentials) {
|
|
1322
1322
|
w?.();
|
|
1323
1323
|
return;
|
|
1324
1324
|
}
|
|
@@ -1326,36 +1326,36 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1326
1326
|
Ct((e) => !e);
|
|
1327
1327
|
return;
|
|
1328
1328
|
}
|
|
1329
|
-
if (
|
|
1329
|
+
if (H === n.LogOut) {
|
|
1330
1330
|
T?.();
|
|
1331
1331
|
return;
|
|
1332
1332
|
}
|
|
1333
1333
|
S?.(e, { level: b.User });
|
|
1334
1334
|
}, [
|
|
1335
|
-
|
|
1335
|
+
H,
|
|
1336
1336
|
X,
|
|
1337
1337
|
e,
|
|
1338
1338
|
S,
|
|
1339
1339
|
w,
|
|
1340
1340
|
T
|
|
1341
|
-
]), Tt =
|
|
1342
|
-
size:
|
|
1343
|
-
stroke:
|
|
1344
|
-
}) :
|
|
1345
|
-
size:
|
|
1346
|
-
stroke:
|
|
1347
|
-
}) : /* @__PURE__ */
|
|
1348
|
-
size:
|
|
1349
|
-
stroke:
|
|
1350
|
-
}), Dt =
|
|
1351
|
-
size:
|
|
1341
|
+
]), Tt = H === n.ManageCredentials ? (D?.manageCredentialsActionLabel ?? Fn)(Qe) : Qe === y.ApiKey ? H === n.LogOut ? D?.changeApiKeyActionLabel ?? "Change API key" : D?.apiKeyActionLabel ?? "API key" : H === n.LogOut ? D?.logoutActionLabel ?? "Log out" : D?.loginActionLabel ?? "Log in", Et = H === n.ManageCredentials || Qe === y.ApiKey ? /* @__PURE__ */ G(nt, {
|
|
1342
|
+
size: R.MD,
|
|
1343
|
+
stroke: z
|
|
1344
|
+
}) : H === n.LogOut ? /* @__PURE__ */ G(ot, {
|
|
1345
|
+
size: R.MD,
|
|
1346
|
+
stroke: z
|
|
1347
|
+
}) : /* @__PURE__ */ G(at, {
|
|
1348
|
+
size: R.MD,
|
|
1349
|
+
stroke: z
|
|
1350
|
+
}), Dt = H === n.ManageCredentials ? /* @__PURE__ */ G(Ke, {
|
|
1351
|
+
size: R.MD,
|
|
1352
1352
|
className: "rtl:scale-x-[-1]",
|
|
1353
|
-
stroke:
|
|
1354
|
-
}) : X ? /* @__PURE__ */
|
|
1355
|
-
size:
|
|
1356
|
-
stroke:
|
|
1353
|
+
stroke: z
|
|
1354
|
+
}) : X ? /* @__PURE__ */ G(Ye, {
|
|
1355
|
+
size: R.MD,
|
|
1356
|
+
stroke: z
|
|
1357
1357
|
}) : void 0, Ot = (t) => {
|
|
1358
|
-
let n = /* @__PURE__ */
|
|
1358
|
+
let n = /* @__PURE__ */ G(t, {
|
|
1359
1359
|
label: Tt,
|
|
1360
1360
|
iconBefore: Et,
|
|
1361
1361
|
iconAfter: Dt,
|
|
@@ -1363,14 +1363,14 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1363
1363
|
"aria-haspopup": X ? "dialog" : void 0,
|
|
1364
1364
|
"aria-expanded": X ? Y : void 0
|
|
1365
1365
|
});
|
|
1366
|
-
return !X || e.credentials == null ? n : /* @__PURE__ */
|
|
1366
|
+
return !X || e.credentials == null ? n : /* @__PURE__ */ G(ve, {
|
|
1367
1367
|
placement: "bottom-start",
|
|
1368
1368
|
matchReferenceWidth: !1,
|
|
1369
1369
|
open: Y,
|
|
1370
1370
|
onOpenChange: Ct,
|
|
1371
1371
|
trigger: [],
|
|
1372
1372
|
outsideClosable: !0,
|
|
1373
|
-
renderOverlay: () => /* @__PURE__ */
|
|
1373
|
+
renderOverlay: () => /* @__PURE__ */ G(jn, {
|
|
1374
1374
|
item: e,
|
|
1375
1375
|
level: b.User,
|
|
1376
1376
|
status: e.credentials?.userStatus,
|
|
@@ -1382,131 +1382,131 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1382
1382
|
}),
|
|
1383
1383
|
children: n
|
|
1384
1384
|
});
|
|
1385
|
-
}, kt = ({ key: t, label: n, Icon: r, danger: s, onClick: c }) => t === "share" ? /* @__PURE__ */
|
|
1385
|
+
}, kt = ({ key: t, label: n, Icon: r, danger: s, onClick: c }) => t === "share" ? /* @__PURE__ */ G(Pn, {
|
|
1386
1386
|
item: e,
|
|
1387
1387
|
onShare: i,
|
|
1388
1388
|
shareOverlay: a,
|
|
1389
1389
|
isShareVisible: o,
|
|
1390
1390
|
label: D?.shareLabel
|
|
1391
|
-
}) : /* @__PURE__ */
|
|
1391
|
+
}) : /* @__PURE__ */ G(s ? _e : je, {
|
|
1392
1392
|
label: n,
|
|
1393
|
-
iconBefore: /* @__PURE__ */
|
|
1394
|
-
size:
|
|
1393
|
+
iconBefore: /* @__PURE__ */ G(r, {
|
|
1394
|
+
size: R.MD,
|
|
1395
1395
|
"aria-hidden": !0,
|
|
1396
|
-
stroke:
|
|
1396
|
+
stroke: z
|
|
1397
1397
|
}),
|
|
1398
1398
|
onClick: c
|
|
1399
1399
|
}), At = () => {
|
|
1400
|
-
let t = /* @__PURE__ */
|
|
1401
|
-
items:
|
|
1400
|
+
let t = /* @__PURE__ */ G(ve, {
|
|
1401
|
+
items: yt,
|
|
1402
1402
|
placement: "bottom-end",
|
|
1403
1403
|
matchReferenceWidth: !1,
|
|
1404
|
-
onOpenChange:
|
|
1405
|
-
children: /* @__PURE__ */
|
|
1406
|
-
icon: /* @__PURE__ */
|
|
1407
|
-
size:
|
|
1404
|
+
onOpenChange: Re,
|
|
1405
|
+
children: /* @__PURE__ */ G(V, {
|
|
1406
|
+
icon: /* @__PURE__ */ G($e, {
|
|
1407
|
+
size: R.LG,
|
|
1408
1408
|
"aria-hidden": !0,
|
|
1409
|
-
stroke:
|
|
1409
|
+
stroke: z
|
|
1410
1410
|
}),
|
|
1411
1411
|
"aria-label": D?.manageActionLabel ?? "Manage",
|
|
1412
1412
|
"aria-haspopup": "menu",
|
|
1413
|
-
onMouseEnter:
|
|
1414
|
-
onFocus:
|
|
1413
|
+
onMouseEnter: ze,
|
|
1414
|
+
onFocus: ze
|
|
1415
1415
|
})
|
|
1416
1416
|
});
|
|
1417
|
-
return
|
|
1417
|
+
return Xe || !a || !Je ? t : /* @__PURE__ */ G(ve, {
|
|
1418
1418
|
placement: "bottom-end",
|
|
1419
1419
|
matchReferenceWidth: !1,
|
|
1420
|
-
open:
|
|
1421
|
-
onOpenChange:
|
|
1420
|
+
open: xe,
|
|
1421
|
+
onOpenChange: Ce,
|
|
1422
1422
|
trigger: [],
|
|
1423
1423
|
outsideClosable: !0,
|
|
1424
|
-
renderOverlay: () => a(e,
|
|
1424
|
+
renderOverlay: () => a(e, we),
|
|
1425
1425
|
children: t
|
|
1426
1426
|
});
|
|
1427
|
-
}, jt =
|
|
1428
|
-
return /* @__PURE__ */
|
|
1427
|
+
}, jt = rt || He || lt || Xe && Je || Ze && Ue || Ze && Ge || tt && !rt || yt.length > 0 || We;
|
|
1428
|
+
return /* @__PURE__ */ K("div", {
|
|
1429
1429
|
className: "flex flex-col gap-3 px-6 py-4",
|
|
1430
|
-
children: [/* @__PURE__ */
|
|
1430
|
+
children: [/* @__PURE__ */ G(E, {
|
|
1431
1431
|
item: e,
|
|
1432
1432
|
iconSize: 52,
|
|
1433
|
-
nameClassName: M(
|
|
1433
|
+
nameClassName: M(oe, Mn.name),
|
|
1434
1434
|
featuredLabel: D?.featuredLabel ?? "Featured",
|
|
1435
1435
|
featuredChipStyle: O?.colors?.featuredChipStyle,
|
|
1436
|
-
statusBadge:
|
|
1437
|
-
footer: e.folder.length > 0 ? /* @__PURE__ */
|
|
1436
|
+
statusBadge: ue,
|
|
1437
|
+
footer: e.folder.length > 0 ? /* @__PURE__ */ G(Se, {
|
|
1438
1438
|
segments: e.folder,
|
|
1439
|
-
labelClassName:
|
|
1440
|
-
leafClassName:
|
|
1439
|
+
labelClassName: se,
|
|
1440
|
+
leafClassName: ce
|
|
1441
1441
|
}) : void 0
|
|
1442
|
-
}), jt && /* @__PURE__ */
|
|
1442
|
+
}), jt && /* @__PURE__ */ K("div", {
|
|
1443
1443
|
className: "flex flex-wrap items-center gap-2 ps-[60px]",
|
|
1444
1444
|
children: [
|
|
1445
|
-
|
|
1446
|
-
|
|
1445
|
+
rt && Ot(wt || Z ? je : Me),
|
|
1446
|
+
He && /* @__PURE__ */ G(Me, {
|
|
1447
1447
|
label: D?.primaryActionLabel ?? "Use in chat",
|
|
1448
|
-
iconBefore: /* @__PURE__ */
|
|
1449
|
-
onClick:
|
|
1450
|
-
disabled:
|
|
1448
|
+
iconBefore: /* @__PURE__ */ G(ct, { size: R.MD }),
|
|
1449
|
+
onClick: de,
|
|
1450
|
+
disabled: le === St.LimitReached
|
|
1451
1451
|
}),
|
|
1452
|
-
|
|
1452
|
+
lt && /* @__PURE__ */ K(gt, { children: [/* @__PURE__ */ G(Me, {
|
|
1453
1453
|
label: D?.downloadActionLabel ?? "Download",
|
|
1454
|
-
iconBefore:
|
|
1455
|
-
size:
|
|
1454
|
+
iconBefore: ge ? /* @__PURE__ */ G(Be, {
|
|
1455
|
+
size: R.MD,
|
|
1456
1456
|
"aria-hidden": !0
|
|
1457
|
-
}) : /* @__PURE__ */
|
|
1458
|
-
size:
|
|
1457
|
+
}) : /* @__PURE__ */ G(et, {
|
|
1458
|
+
size: R.MD,
|
|
1459
1459
|
"aria-hidden": !0,
|
|
1460
|
-
stroke:
|
|
1460
|
+
stroke: z
|
|
1461
1461
|
}),
|
|
1462
|
-
onClick:
|
|
1463
|
-
disabled:
|
|
1464
|
-
"aria-busy":
|
|
1465
|
-
}),
|
|
1462
|
+
onClick: be,
|
|
1463
|
+
disabled: ge,
|
|
1464
|
+
"aria-busy": ge
|
|
1465
|
+
}), ge && /* @__PURE__ */ G("span", {
|
|
1466
1466
|
role: "status",
|
|
1467
1467
|
"aria-live": "polite",
|
|
1468
1468
|
className: "sr-only",
|
|
1469
1469
|
children: D?.downloadingStatusLabel ?? "Downloading"
|
|
1470
1470
|
})] }),
|
|
1471
|
-
|
|
1471
|
+
Xe && Je && /* @__PURE__ */ G(Pn, {
|
|
1472
1472
|
item: e,
|
|
1473
1473
|
onShare: i,
|
|
1474
1474
|
shareOverlay: a,
|
|
1475
1475
|
isShareVisible: o,
|
|
1476
1476
|
label: D?.shareLabel
|
|
1477
1477
|
}),
|
|
1478
|
-
|
|
1478
|
+
Ze && Ue && /* @__PURE__ */ G(je, {
|
|
1479
1479
|
label: D?.unpublishLabel ?? "Unpublish",
|
|
1480
|
-
iconBefore: /* @__PURE__ */
|
|
1481
|
-
size:
|
|
1480
|
+
iconBefore: /* @__PURE__ */ G(mt, {
|
|
1481
|
+
size: R.MD,
|
|
1482
1482
|
"aria-hidden": !0,
|
|
1483
|
-
stroke:
|
|
1483
|
+
stroke: z
|
|
1484
1484
|
}),
|
|
1485
|
-
onClick:
|
|
1486
|
-
onMouseEnter:
|
|
1487
|
-
onFocus:
|
|
1485
|
+
onClick: me,
|
|
1486
|
+
onMouseEnter: Ve,
|
|
1487
|
+
onFocus: Ve
|
|
1488
1488
|
}),
|
|
1489
|
-
|
|
1489
|
+
Ze && Ge && /* @__PURE__ */ G(je, {
|
|
1490
1490
|
label: D?.publishLabel ?? "Publish",
|
|
1491
|
-
iconBefore: /* @__PURE__ */
|
|
1492
|
-
size:
|
|
1491
|
+
iconBefore: /* @__PURE__ */ G(ht, {
|
|
1492
|
+
size: R.MD,
|
|
1493
1493
|
"aria-hidden": !0,
|
|
1494
|
-
stroke:
|
|
1494
|
+
stroke: z
|
|
1495
1495
|
}),
|
|
1496
|
-
onClick:
|
|
1497
|
-
onMouseEnter:
|
|
1498
|
-
onFocus:
|
|
1496
|
+
onClick: pe,
|
|
1497
|
+
onMouseEnter: Ve,
|
|
1498
|
+
onFocus: Ve
|
|
1499
1499
|
}),
|
|
1500
|
-
|
|
1501
|
-
J ? kt(J) : (
|
|
1500
|
+
tt && !rt && Ot(je),
|
|
1501
|
+
J ? kt(J) : (yt.length > 0 || We) && At()
|
|
1502
1502
|
]
|
|
1503
1503
|
})]
|
|
1504
1504
|
});
|
|
1505
1505
|
}, zn = ({ topics: e, content: t, detailsStyles: n }) => {
|
|
1506
1506
|
let r = n?.typography?.contentHeadingClassName ?? "dial-small-semi-text", i = n?.typography?.contentClassName ?? "dial-small-text";
|
|
1507
|
-
return /* @__PURE__ */
|
|
1507
|
+
return /* @__PURE__ */ K("div", {
|
|
1508
1508
|
className: "flex flex-col gap-5",
|
|
1509
|
-
children: [/* @__PURE__ */
|
|
1509
|
+
children: [/* @__PURE__ */ G(A, {
|
|
1510
1510
|
content: t,
|
|
1511
1511
|
classNames: {
|
|
1512
1512
|
h1: r,
|
|
@@ -1519,9 +1519,9 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1519
1519
|
ul: i,
|
|
1520
1520
|
ol: i
|
|
1521
1521
|
}
|
|
1522
|
-
}), e && e.length > 0 && /* @__PURE__ */
|
|
1522
|
+
}), e && e.length > 0 && /* @__PURE__ */ G("div", {
|
|
1523
1523
|
className: "flex flex-wrap gap-2",
|
|
1524
|
-
children: e.map((e) => /* @__PURE__ */
|
|
1524
|
+
children: e.map((e) => /* @__PURE__ */ G(Gt, { label: e }, e))
|
|
1525
1525
|
})]
|
|
1526
1526
|
});
|
|
1527
1527
|
}, Bn = {
|
|
@@ -1535,8 +1535,8 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1535
1535
|
};
|
|
1536
1536
|
return e.type === Z.File || !t.has(e.id) ? [r] : [r, ...Vn(e.items, t, e.id)];
|
|
1537
1537
|
}), Hn = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
|
|
1538
|
-
let c =
|
|
1539
|
-
|
|
1538
|
+
let c = F(() => Vn(e, n), [e, n]), l = I({}), [u, d] = L(() => t ?? c[0]?.node.id);
|
|
1539
|
+
P(() => {
|
|
1540
1540
|
u != null && l.current[u]?.focus();
|
|
1541
1541
|
}, []);
|
|
1542
1542
|
let f = (e) => {
|
|
@@ -1577,7 +1577,7 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1577
1577
|
let a = e.id === u;
|
|
1578
1578
|
if (e.type === Z.File) {
|
|
1579
1579
|
let n = e.id === t;
|
|
1580
|
-
return /* @__PURE__ */
|
|
1580
|
+
return /* @__PURE__ */ G("div", {
|
|
1581
1581
|
ref: (t) => {
|
|
1582
1582
|
l.current[e.id] = t;
|
|
1583
1583
|
},
|
|
@@ -1587,14 +1587,14 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1587
1587
|
className: M(m(a), n && "bg-control-accent-alpha-active"),
|
|
1588
1588
|
onClick: () => i(e.id),
|
|
1589
1589
|
onFocus: () => d(e.id),
|
|
1590
|
-
children: /* @__PURE__ */
|
|
1590
|
+
children: /* @__PURE__ */ G("span", {
|
|
1591
1591
|
className: M("min-w-0 flex-1 truncate", s),
|
|
1592
1592
|
children: e.name
|
|
1593
1593
|
})
|
|
1594
1594
|
}, e.id);
|
|
1595
1595
|
}
|
|
1596
1596
|
let o = n.has(e.id);
|
|
1597
|
-
return /* @__PURE__ */
|
|
1597
|
+
return /* @__PURE__ */ K("div", { children: [/* @__PURE__ */ K("div", {
|
|
1598
1598
|
ref: (t) => {
|
|
1599
1599
|
l.current[e.id] = t;
|
|
1600
1600
|
},
|
|
@@ -1605,30 +1605,30 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1605
1605
|
onClick: () => r(e.id),
|
|
1606
1606
|
onFocus: () => d(e.id),
|
|
1607
1607
|
children: [
|
|
1608
|
-
/* @__PURE__ */
|
|
1609
|
-
size:
|
|
1608
|
+
/* @__PURE__ */ G(tt, {
|
|
1609
|
+
size: R.SM,
|
|
1610
1610
|
className: "shrink-0",
|
|
1611
1611
|
"aria-hidden": !0,
|
|
1612
|
-
stroke:
|
|
1612
|
+
stroke: z
|
|
1613
1613
|
}),
|
|
1614
|
-
/* @__PURE__ */
|
|
1614
|
+
/* @__PURE__ */ G("span", {
|
|
1615
1615
|
className: M("min-w-0 flex-1 truncate", s),
|
|
1616
1616
|
children: e.name
|
|
1617
1617
|
}),
|
|
1618
|
-
/* @__PURE__ */
|
|
1619
|
-
size:
|
|
1618
|
+
/* @__PURE__ */ G(Ye, {
|
|
1619
|
+
size: R.SM,
|
|
1620
1620
|
className: M("shrink-0 transition-transform", !o && "-rotate-90 rtl:rotate-90"),
|
|
1621
1621
|
"aria-hidden": !0,
|
|
1622
|
-
stroke:
|
|
1622
|
+
stroke: z
|
|
1623
1623
|
})
|
|
1624
1624
|
]
|
|
1625
|
-
}), o && e.items.length > 0 && /* @__PURE__ */
|
|
1625
|
+
}), o && e.items.length > 0 && /* @__PURE__ */ G("div", {
|
|
1626
1626
|
role: "group",
|
|
1627
1627
|
className: "ps-6",
|
|
1628
1628
|
children: e.items.map((e) => h(e))
|
|
1629
1629
|
})] }, e.id);
|
|
1630
1630
|
};
|
|
1631
|
-
return /* @__PURE__ */
|
|
1631
|
+
return /* @__PURE__ */ G("div", {
|
|
1632
1632
|
role: "tree",
|
|
1633
1633
|
"aria-label": o,
|
|
1634
1634
|
onKeyDown: p,
|
|
@@ -1653,58 +1653,58 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1653
1653
|
type: Q.Markdown,
|
|
1654
1654
|
text: e
|
|
1655
1655
|
};
|
|
1656
|
-
return /* @__PURE__ */
|
|
1656
|
+
return /* @__PURE__ */ K("div", {
|
|
1657
1657
|
className: "flex h-full flex-col gap-4 pb-6",
|
|
1658
1658
|
children: [
|
|
1659
|
-
C && /* @__PURE__ */
|
|
1659
|
+
C && /* @__PURE__ */ K("div", {
|
|
1660
1660
|
className: "flex shrink-0 items-center gap-3",
|
|
1661
|
-
children: [/* @__PURE__ */
|
|
1661
|
+
children: [/* @__PURE__ */ G(ve, {
|
|
1662
1662
|
open: c,
|
|
1663
1663
|
onOpenChange: l,
|
|
1664
1664
|
trigger: [],
|
|
1665
1665
|
matchReferenceWidth: !1,
|
|
1666
1666
|
listClassName: "w-[280px] shadow-md",
|
|
1667
1667
|
placement: "bottom-start",
|
|
1668
|
-
renderOverlay: () => g ? g(T) : /* @__PURE__ */
|
|
1669
|
-
children: /* @__PURE__ */
|
|
1668
|
+
renderOverlay: () => g ? g(T) : /* @__PURE__ */ G(Hn, { ...T }),
|
|
1669
|
+
children: /* @__PURE__ */ G(Ee, {
|
|
1670
1670
|
label: w,
|
|
1671
|
-
size:
|
|
1671
|
+
size: be.Small,
|
|
1672
1672
|
isOpen: c,
|
|
1673
1673
|
onClick: () => l(!c)
|
|
1674
1674
|
})
|
|
1675
|
-
}), /* @__PURE__ */
|
|
1675
|
+
}), /* @__PURE__ */ G("span", {
|
|
1676
1676
|
className: M("shrink-0", b, Bn.fileCount),
|
|
1677
1677
|
children: d($t(S))
|
|
1678
1678
|
})]
|
|
1679
1679
|
}),
|
|
1680
|
-
x && /* @__PURE__ */
|
|
1680
|
+
x && /* @__PURE__ */ K(gt, { children: [/* @__PURE__ */ G("p", {
|
|
1681
1681
|
className: M("m-0", v),
|
|
1682
1682
|
children: t
|
|
1683
|
-
}), /* @__PURE__ */
|
|
1684
|
-
/* @__PURE__ */
|
|
1683
|
+
}), /* @__PURE__ */ G("div", { className: M("shrink-0", Bn.divider) })] }),
|
|
1684
|
+
/* @__PURE__ */ K("div", {
|
|
1685
1685
|
className: M("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && Bn.body, h == null && v),
|
|
1686
|
-
children: [a && /* @__PURE__ */
|
|
1686
|
+
children: [a && /* @__PURE__ */ G("span", {
|
|
1687
1687
|
role: "status",
|
|
1688
1688
|
className: "sr-only",
|
|
1689
1689
|
children: f
|
|
1690
1690
|
}), (() => {
|
|
1691
1691
|
if (h != null) return h;
|
|
1692
1692
|
switch (E.type) {
|
|
1693
|
-
case Q.Markdown: return /* @__PURE__ */
|
|
1693
|
+
case Q.Markdown: return /* @__PURE__ */ G(te, {
|
|
1694
1694
|
content: E.text,
|
|
1695
1695
|
headingClassName: y
|
|
1696
1696
|
});
|
|
1697
|
-
case Q.Text: return /* @__PURE__ */
|
|
1697
|
+
case Q.Text: return /* @__PURE__ */ G(k, {
|
|
1698
1698
|
language: E.language ?? "",
|
|
1699
1699
|
value: E.text,
|
|
1700
1700
|
hideDownload: !0
|
|
1701
1701
|
});
|
|
1702
|
-
case Q.Image: return /* @__PURE__ */
|
|
1702
|
+
case Q.Image: return /* @__PURE__ */ G("img", {
|
|
1703
1703
|
src: E.url,
|
|
1704
1704
|
alt: w,
|
|
1705
1705
|
className: "max-w-full"
|
|
1706
1706
|
});
|
|
1707
|
-
case Q.Unsupported: return /* @__PURE__ */
|
|
1707
|
+
case Q.Unsupported: return /* @__PURE__ */ G("p", {
|
|
1708
1708
|
className: "m-0",
|
|
1709
1709
|
children: p
|
|
1710
1710
|
});
|
|
@@ -1730,89 +1730,89 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1730
1730
|
resetLabel: "_resetLabel_10rw6_39",
|
|
1731
1731
|
valueDanger: "_valueDanger_10rw6_44"
|
|
1732
1732
|
}, er = ({ row: e, layout: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => {
|
|
1733
|
-
let s = Yn(e), c = $n(e), l = /* @__PURE__ */
|
|
1733
|
+
let s = Yn(e), c = $n(e), l = /* @__PURE__ */ G(Ne, {
|
|
1734
1734
|
value: qn(e),
|
|
1735
1735
|
max: Jn(e.total),
|
|
1736
|
-
size:
|
|
1736
|
+
size: be.Small,
|
|
1737
1737
|
className: M("!h-1 w-full", $.progressTrack, c === Kn.Default && $.progressFillDefault, c === Kn.Warning && $.progressFillWarning, c === Kn.Danger && $.progressFillDanger),
|
|
1738
1738
|
"aria-label": e.label,
|
|
1739
1739
|
"aria-valuetext": e.ariaLabel ?? s
|
|
1740
|
-
}), u = e.captionLabel != null && /* @__PURE__ */
|
|
1740
|
+
}), u = e.captionLabel != null && /* @__PURE__ */ G("span", {
|
|
1741
1741
|
className: M("break-words", r, $.label),
|
|
1742
1742
|
children: e.captionLabel
|
|
1743
|
-
}), d = e.resetLabel != null && /* @__PURE__ */
|
|
1743
|
+
}), d = e.resetLabel != null && /* @__PURE__ */ K(gt, { children: [/* @__PURE__ */ G("time", {
|
|
1744
1744
|
dateTime: e.resetIsoValue,
|
|
1745
1745
|
"aria-hidden": e.resetAriaLabel != null || void 0,
|
|
1746
1746
|
className: M("break-words", r, $.resetLabel),
|
|
1747
1747
|
children: e.resetLabel
|
|
1748
|
-
}), e.resetAriaLabel != null && /* @__PURE__ */
|
|
1748
|
+
}), e.resetAriaLabel != null && /* @__PURE__ */ G("span", {
|
|
1749
1749
|
className: "sr-only",
|
|
1750
1750
|
children: e.resetAriaLabel
|
|
1751
1751
|
})] });
|
|
1752
|
-
return t === wt.Stacked ? /* @__PURE__ */
|
|
1752
|
+
return t === wt.Stacked ? /* @__PURE__ */ K("li", {
|
|
1753
1753
|
className: M("flex flex-col gap-2 border-b py-3 first:pt-0 last:border-b-0 last:pb-0", $.divider),
|
|
1754
1754
|
children: [
|
|
1755
|
-
/* @__PURE__ */
|
|
1755
|
+
/* @__PURE__ */ K("div", {
|
|
1756
1756
|
className: "flex items-baseline justify-between gap-3",
|
|
1757
|
-
children: [/* @__PURE__ */
|
|
1757
|
+
children: [/* @__PURE__ */ G("span", {
|
|
1758
1758
|
className: M("min-w-0 break-words", n, $.valuePrimary),
|
|
1759
1759
|
children: e.label
|
|
1760
|
-
}), /* @__PURE__ */
|
|
1760
|
+
}), /* @__PURE__ */ G("span", {
|
|
1761
1761
|
className: M("shrink-0", i, c === Kn.Danger ? $.valueDanger : $.valuePrimary),
|
|
1762
1762
|
children: s
|
|
1763
1763
|
})]
|
|
1764
1764
|
}),
|
|
1765
1765
|
u,
|
|
1766
|
-
Zn(e) ? l : e.noteLabel != null && /* @__PURE__ */
|
|
1766
|
+
Zn(e) ? l : e.noteLabel != null && /* @__PURE__ */ G("span", {
|
|
1767
1767
|
className: M(o, $.label),
|
|
1768
1768
|
children: e.noteLabel
|
|
1769
1769
|
}),
|
|
1770
1770
|
d
|
|
1771
1771
|
]
|
|
1772
|
-
}) : /* @__PURE__ */
|
|
1772
|
+
}) : /* @__PURE__ */ K("li", {
|
|
1773
1773
|
className: M("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", $.divider),
|
|
1774
|
-
children: [/* @__PURE__ */
|
|
1774
|
+
children: [/* @__PURE__ */ K("div", {
|
|
1775
1775
|
className: "flex min-w-0 flex-1 flex-col",
|
|
1776
1776
|
children: [
|
|
1777
|
-
/* @__PURE__ */
|
|
1777
|
+
/* @__PURE__ */ G("span", {
|
|
1778
1778
|
className: M("break-words", n, $.label),
|
|
1779
1779
|
children: e.label
|
|
1780
1780
|
}),
|
|
1781
1781
|
u,
|
|
1782
1782
|
d
|
|
1783
1783
|
]
|
|
1784
|
-
}), Zn(e) ? /* @__PURE__ */
|
|
1784
|
+
}), Zn(e) ? /* @__PURE__ */ K("div", {
|
|
1785
1785
|
className: "flex w-32 shrink-0 flex-col items-end gap-2",
|
|
1786
|
-
children: [/* @__PURE__ */
|
|
1786
|
+
children: [/* @__PURE__ */ G("div", {
|
|
1787
1787
|
className: M("flex gap-1", i),
|
|
1788
|
-
children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */
|
|
1788
|
+
children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ K(gt, { children: [/* @__PURE__ */ G("span", {
|
|
1789
1789
|
className: $.valuePrimary,
|
|
1790
1790
|
children: e.usedLabel
|
|
1791
|
-
}), /* @__PURE__ */
|
|
1791
|
+
}), /* @__PURE__ */ G("span", {
|
|
1792
1792
|
className: $.label,
|
|
1793
1793
|
children: ` / ${e.totalLabel}`
|
|
1794
|
-
})] }) : /* @__PURE__ */
|
|
1794
|
+
})] }) : /* @__PURE__ */ G("span", {
|
|
1795
1795
|
className: $.label,
|
|
1796
1796
|
children: s
|
|
1797
1797
|
})
|
|
1798
1798
|
}), l]
|
|
1799
|
-
}) : /* @__PURE__ */
|
|
1799
|
+
}) : /* @__PURE__ */ K("div", {
|
|
1800
1800
|
className: "flex shrink-0 flex-col items-end",
|
|
1801
|
-
children: [/* @__PURE__ */
|
|
1801
|
+
children: [/* @__PURE__ */ G("span", {
|
|
1802
1802
|
className: M(a, $.valuePrimary),
|
|
1803
1803
|
children: s
|
|
1804
|
-
}), e.noteLabel != null && /* @__PURE__ */
|
|
1804
|
+
}), e.noteLabel != null && /* @__PURE__ */ G("span", {
|
|
1805
1805
|
className: M(o, $.label),
|
|
1806
1806
|
children: e.noteLabel
|
|
1807
1807
|
})]
|
|
1808
1808
|
})]
|
|
1809
1809
|
});
|
|
1810
|
-
}, tr = ({ group: e, sectionClassName: t, layout: n, labelClassName: r, captionClassName: i, valueClassName: a, noteValueClassName: o, noteClassName: s }) => /* @__PURE__ */
|
|
1810
|
+
}, tr = ({ group: e, sectionClassName: t, layout: n, labelClassName: r, captionClassName: i, valueClassName: a, noteValueClassName: o, noteClassName: s }) => /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("p", {
|
|
1811
1811
|
className: M("mb-3 mt-0", t, $.sectionHeading),
|
|
1812
1812
|
children: e.label
|
|
1813
|
-
}), /* @__PURE__ */
|
|
1813
|
+
}), /* @__PURE__ */ G("ul", {
|
|
1814
1814
|
className: "m-0 flex list-none flex-col p-0",
|
|
1815
|
-
children: e.rows.map((e) => /* @__PURE__ */
|
|
1815
|
+
children: e.rows.map((e) => /* @__PURE__ */ G(er, {
|
|
1816
1816
|
row: e,
|
|
1817
1817
|
layout: n,
|
|
1818
1818
|
labelClassName: r,
|
|
@@ -1823,7 +1823,7 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1823
1823
|
}, e.label))
|
|
1824
1824
|
})] }), nr = ({ limits: e, layout: t = wt.Inline, labelClassName: n = "dial-small-semi-text", captionClassName: r = "dial-caption-text", valueClassName: i = "dial-tiny-text", noteValueClassName: a = "dial-tiny-semi-text", noteClassName: o = "dial-caption-text", sectionClassName: s = "dial-caption-text", footerClassName: c = "dial-caption-text", footerNote: l, colors: u }) => {
|
|
1825
1825
|
let d = e?.groups.filter((e) => e.rows.length > 0);
|
|
1826
|
-
return d == null || d.length === 0 ? null : /* @__PURE__ */
|
|
1826
|
+
return d == null || d.length === 0 ? null : /* @__PURE__ */ K("div", {
|
|
1827
1827
|
className: "flex flex-col gap-6",
|
|
1828
1828
|
style: j({
|
|
1829
1829
|
"--lt-section-heading": u?.sectionHeading,
|
|
@@ -1836,7 +1836,7 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1836
1836
|
"--lt-progress-fill-warning": u?.progressFillWarning,
|
|
1837
1837
|
"--lt-progress-fill-danger": u?.progressFillDanger
|
|
1838
1838
|
}),
|
|
1839
|
-
children: [d.map((e) => /* @__PURE__ */
|
|
1839
|
+
children: [d.map((e) => /* @__PURE__ */ G(tr, {
|
|
1840
1840
|
group: e,
|
|
1841
1841
|
layout: t,
|
|
1842
1842
|
sectionClassName: s,
|
|
@@ -1845,18 +1845,18 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1845
1845
|
valueClassName: i,
|
|
1846
1846
|
noteValueClassName: a,
|
|
1847
1847
|
noteClassName: o
|
|
1848
|
-
}, e.label)), l != null && /* @__PURE__ */
|
|
1848
|
+
}, e.label)), l != null && /* @__PURE__ */ G("p", {
|
|
1849
1849
|
className: M("m-0 border-t pt-4", c, $.divider, $.label),
|
|
1850
1850
|
children: l
|
|
1851
1851
|
})]
|
|
1852
1852
|
});
|
|
1853
|
-
}, rr = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */
|
|
1853
|
+
}, rr = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ G("div", {
|
|
1854
1854
|
className: "flex flex-col gap-4",
|
|
1855
|
-
children: e.map((e, s) => /* @__PURE__ */
|
|
1855
|
+
children: e.map((e, s) => /* @__PURE__ */ K("div", {
|
|
1856
1856
|
className: "flex flex-col gap-4",
|
|
1857
|
-
children: [s > 0 && /* @__PURE__ */
|
|
1857
|
+
children: [s > 0 && /* @__PURE__ */ G("div", { className: M("shrink-0 border-b", Dn.divider) }), /* @__PURE__ */ G("div", {
|
|
1858
1858
|
className: "px-6",
|
|
1859
|
-
children: /* @__PURE__ */
|
|
1859
|
+
children: /* @__PURE__ */ G(an, {
|
|
1860
1860
|
sectionLabel: e.title,
|
|
1861
1861
|
values: e.specs,
|
|
1862
1862
|
sectionClassName: t,
|
|
@@ -1877,15 +1877,15 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1877
1877
|
label: e.label,
|
|
1878
1878
|
value: e.value
|
|
1879
1879
|
}));
|
|
1880
|
-
return /* @__PURE__ */
|
|
1880
|
+
return /* @__PURE__ */ K("div", {
|
|
1881
1881
|
className: "flex flex-col gap-4",
|
|
1882
|
-
children: [/* @__PURE__ */
|
|
1882
|
+
children: [/* @__PURE__ */ G(an, {
|
|
1883
1883
|
sectionLabel: t,
|
|
1884
1884
|
values: o ?? [],
|
|
1885
1885
|
labelClassName: r,
|
|
1886
1886
|
valueClassName: i,
|
|
1887
1887
|
sectionClassName: a
|
|
1888
|
-
}), /* @__PURE__ */
|
|
1888
|
+
}), /* @__PURE__ */ G(an, {
|
|
1889
1889
|
sectionLabel: n,
|
|
1890
1890
|
values: s ?? [],
|
|
1891
1891
|
labelClassName: r,
|
|
@@ -1900,13 +1900,13 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1900
1900
|
evenRow: "_evenRow_ddi3i_17"
|
|
1901
1901
|
}, or = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
|
|
1902
1902
|
let a = n ?? `repeat(${e.length}, 1fr)`;
|
|
1903
|
-
return /* @__PURE__ */
|
|
1903
|
+
return /* @__PURE__ */ K("div", {
|
|
1904
1904
|
className: M(ar.container, "grid overflow-hidden rounded-md"),
|
|
1905
1905
|
style: { gridTemplateColumns: a },
|
|
1906
|
-
children: [e.map((e) => /* @__PURE__ */
|
|
1906
|
+
children: [e.map((e) => /* @__PURE__ */ G("div", {
|
|
1907
1907
|
className: M("px-2 py-1 text-start", r, ar.header),
|
|
1908
1908
|
children: e
|
|
1909
|
-
}, e)), t.map((e, t) => /* @__PURE__ */
|
|
1909
|
+
}, e)), t.map((e, t) => /* @__PURE__ */ G(ie, { children: e.map((e, n) => /* @__PURE__ */ G("div", {
|
|
1910
1910
|
className: M("px-2 py-1.5", i, ar.cell, t % 2 == 1 ? ar.evenRow : void 0),
|
|
1911
1911
|
children: e
|
|
1912
1912
|
}, n)) }, t))]
|
|
@@ -1915,22 +1915,22 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1915
1915
|
divider: "_divider_1f796_1",
|
|
1916
1916
|
description: "_description_1f796_5",
|
|
1917
1917
|
code: "_code_1f796_9"
|
|
1918
|
-
}, cr = ({ 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__ */
|
|
1918
|
+
}, cr = ({ 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__ */ G("div", {
|
|
1919
1919
|
className: "flex flex-col",
|
|
1920
|
-
children: e.tools.map((e, a) => /* @__PURE__ */
|
|
1920
|
+
children: e.tools.map((e, a) => /* @__PURE__ */ K("div", {
|
|
1921
1921
|
className: M("flex flex-col gap-3 px-[22px] py-4", a > 0 ? sr.divider : void 0),
|
|
1922
1922
|
children: [
|
|
1923
|
-
/* @__PURE__ */
|
|
1923
|
+
/* @__PURE__ */ K("div", {
|
|
1924
1924
|
className: "flex flex-col gap-1",
|
|
1925
|
-
children: [/* @__PURE__ */
|
|
1925
|
+
children: [/* @__PURE__ */ G("span", {
|
|
1926
1926
|
className: t,
|
|
1927
1927
|
children: e.name
|
|
1928
|
-
}), e.description != null && /* @__PURE__ */
|
|
1928
|
+
}), e.description != null && /* @__PURE__ */ G("p", {
|
|
1929
1929
|
className: M("m-0", n, sr.description),
|
|
1930
1930
|
children: e.description
|
|
1931
1931
|
})]
|
|
1932
1932
|
}),
|
|
1933
|
-
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */
|
|
1933
|
+
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ G(or, {
|
|
1934
1934
|
columns: [
|
|
1935
1935
|
"Name",
|
|
1936
1936
|
"Type",
|
|
@@ -1938,11 +1938,11 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1938
1938
|
],
|
|
1939
1939
|
columnsTemplate: "1fr 1fr auto",
|
|
1940
1940
|
rows: e.inputParams.map((e) => [
|
|
1941
|
-
/* @__PURE__ */
|
|
1941
|
+
/* @__PURE__ */ G("code", {
|
|
1942
1942
|
className: M("text-inherit border-none bg-transparent p-0", sr.code),
|
|
1943
1943
|
children: e.name
|
|
1944
1944
|
}, "name"),
|
|
1945
|
-
/* @__PURE__ */
|
|
1945
|
+
/* @__PURE__ */ G("code", {
|
|
1946
1946
|
className: M("text-inherit border-none bg-transparent p-0", sr.code),
|
|
1947
1947
|
children: e.type
|
|
1948
1948
|
}, "type"),
|
|
@@ -1951,9 +1951,9 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1951
1951
|
headingClassName: r,
|
|
1952
1952
|
cellClassName: i
|
|
1953
1953
|
}),
|
|
1954
|
-
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */
|
|
1954
|
+
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ G(or, {
|
|
1955
1955
|
columns: ["Key", "Value"],
|
|
1956
|
-
rows: e.annotations.map((e) => [/* @__PURE__ */
|
|
1956
|
+
rows: e.annotations.map((e) => [/* @__PURE__ */ G("code", {
|
|
1957
1957
|
className: M("text-inherit border-none bg-transparent p-0", sr.code),
|
|
1958
1958
|
children: e.key
|
|
1959
1959
|
}, "key"), e.value]),
|
|
@@ -1978,165 +1978,165 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
1978
1978
|
"Everyone you shared it with loses access",
|
|
1979
1979
|
"Existing share links stop working",
|
|
1980
1980
|
"You keep full access — nothing is deleted"
|
|
1981
|
-
], yr = (e) => e === y.ApiKey ? "Toolset API keys" : "Toolset credentials", br = (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?", xr = new Set([Y.Delete, Y.Unshare]), Sr = ({ 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: _ = pr, publishExpandedPaths: v, onPublishExpandedPathsChange: y, publishLoadingPaths: w, hasPublishWriteAccess: T, publishDefaultAuthor: E, onPublish: D, onPublishSuccess: O, onPublishError: ee, onCreatePublishFolder: k, publishLabels: A, ruleSourceOptions: te = mr, onFetchExistingRules: ne, shareOverlay: re, isShareVisible: ie, isSharePrimary:
|
|
1982
|
-
let { subViewTitleClassName:
|
|
1983
|
-
"--cat-details-backdrop":
|
|
1984
|
-
"--cat-details-bg":
|
|
1985
|
-
"--cat-details-border":
|
|
1986
|
-
"--cat-details-divider":
|
|
1987
|
-
"--cat-details-scrollbar":
|
|
1988
|
-
"--cat-details-skeleton":
|
|
1989
|
-
"--cat-details-name-text":
|
|
1990
|
-
"--cat-details-publish-title-text":
|
|
1991
|
-
"--cat-details-content-text":
|
|
1992
|
-
"--cat-details-variable-text":
|
|
1993
|
-
"--cat-details-file-count-text":
|
|
1994
|
-
"--cat-api-heading-text":
|
|
1995
|
-
"--cat-tools-divider":
|
|
1996
|
-
"--cat-tools-description-text":
|
|
1997
|
-
"--cat-grid-border":
|
|
1998
|
-
"--cat-grid-header-text":
|
|
1999
|
-
"--cat-grid-header-bg":
|
|
2000
|
-
"--cat-grid-cell-text":
|
|
2001
|
-
"--cat-grid-cell-divider":
|
|
2002
|
-
"--cat-grid-row-even-bg":
|
|
2003
|
-
"--cat-cred-surface-bg":
|
|
2004
|
-
"--cat-cred-active-icon":
|
|
2005
|
-
"--cat-cred-banner-icon-bg":
|
|
2006
|
-
"--cat-cred-description-text":
|
|
2007
|
-
"--cat-cred-row-description-text":
|
|
2008
|
-
"--cat-cred-error-text":
|
|
2009
|
-
"--cat-cred-card-bg":
|
|
2010
|
-
"--cat-cred-card-icon":
|
|
2011
|
-
"--cat-cred-card-title-text":
|
|
2012
|
-
"--cat-cred-card-description-text":
|
|
2013
|
-
}), [
|
|
2014
|
-
let t =
|
|
2015
|
-
t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t),
|
|
1981
|
+
], yr = (e) => e === y.ApiKey ? "Toolset API keys" : "Toolset credentials", br = (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?", xr = new Set([Y.Delete, Y.Unshare]), Sr = ({ 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: _ = pr, publishExpandedPaths: v, onPublishExpandedPathsChange: y, publishLoadingPaths: w, hasPublishWriteAccess: T, publishDefaultAuthor: E, onPublish: D, onPublishSuccess: O, onPublishError: ee, onCreatePublishFolder: k, publishLabels: A, ruleSourceOptions: te = mr, onFetchExistingRules: ne, shareOverlay: re, isShareVisible: ie, isSharePrimary: ae, onEdit: oe, onDownload: se, isDownloadVisible: ce, isDownloadPrimary: le, onLoadContentFile: ue, onLoadContentFilePreview: de, renderContentFilePreview: fe, renderContentFileTree: pe, renderCredentials: me, onDelete: he, onUnshare: R, isUnshareVisible: z, onRevokeShare: _e, onFetchRecipientsCount: ve, isRevokeShareVisible: ye, onUnpublish: be, isUnpublishVisible: xe, onLogin: Se, onLogout: Ce, texts: B, styles: we, limitsFooterNote: Te }) => {
|
|
1982
|
+
let { subViewTitleClassName: Ee = "dial-body-semi-text", overviewSectionClassName: De = "dial-caption-text", overviewLabelClassName: Oe = "dial-small-semi-text", overviewValueClassName: ke = "dial-small-text", overviewValueTrueClassName: Ae = "dial-small-text", confirmMessageClassName: je = "dial-small-text" } = we?.typography ?? {}, V = we?.colors, Me = j({
|
|
1983
|
+
"--cat-details-backdrop": V?.backdrop,
|
|
1984
|
+
"--cat-details-bg": V?.background,
|
|
1985
|
+
"--cat-details-border": V?.border,
|
|
1986
|
+
"--cat-details-divider": V?.divider,
|
|
1987
|
+
"--cat-details-scrollbar": V?.scrollbar,
|
|
1988
|
+
"--cat-details-skeleton": V?.skeleton,
|
|
1989
|
+
"--cat-details-name-text": V?.nameText,
|
|
1990
|
+
"--cat-details-publish-title-text": V?.publishTitleText,
|
|
1991
|
+
"--cat-details-content-text": V?.contentText,
|
|
1992
|
+
"--cat-details-variable-text": V?.variableText,
|
|
1993
|
+
"--cat-details-file-count-text": V?.contentFileCountText,
|
|
1994
|
+
"--cat-api-heading-text": V?.apiHeadingText,
|
|
1995
|
+
"--cat-tools-divider": V?.toolsDivider,
|
|
1996
|
+
"--cat-tools-description-text": V?.toolsDescriptionText,
|
|
1997
|
+
"--cat-grid-border": V?.gridBorder,
|
|
1998
|
+
"--cat-grid-header-text": V?.gridHeaderText,
|
|
1999
|
+
"--cat-grid-header-bg": V?.gridHeaderBackground,
|
|
2000
|
+
"--cat-grid-cell-text": V?.gridCellText,
|
|
2001
|
+
"--cat-grid-cell-divider": V?.gridCellDivider,
|
|
2002
|
+
"--cat-grid-row-even-bg": V?.gridRowEvenBackground,
|
|
2003
|
+
"--cat-cred-surface-bg": V?.credentialsSurfaceBackground,
|
|
2004
|
+
"--cat-cred-active-icon": V?.credentialsActiveIcon,
|
|
2005
|
+
"--cat-cred-banner-icon-bg": V?.credentialsBannerIconBackground,
|
|
2006
|
+
"--cat-cred-description-text": V?.credentialsDescriptionText,
|
|
2007
|
+
"--cat-cred-row-description-text": V?.credentialsRowDescriptionText,
|
|
2008
|
+
"--cat-cred-error-text": V?.credentialsErrorText,
|
|
2009
|
+
"--cat-cred-card-bg": V?.credentialsCardBackground,
|
|
2010
|
+
"--cat-cred-card-icon": V?.credentialsCardIcon,
|
|
2011
|
+
"--cat-cred-card-title-text": V?.credentialsCardTitleText,
|
|
2012
|
+
"--cat-cred-card-description-text": V?.credentialsCardDescriptionText
|
|
2013
|
+
}), [Ne, Fe] = L(r), [Ie, ze] = L(""), [Be, He] = L(!1), [Ue, We] = L([]), [Ge, Ke] = L(!1), qe = I(null), Je = e.details?.promptContent, Ye = Je?.selectedFileId, [Xe, Ze] = L(null), [Qe, $e] = L(!1), [et, H] = L(/* @__PURE__ */ new Set()), [tt, nt] = L(!1), rt = I(null), it = I(0), at = N((e) => {
|
|
2014
|
+
let t = rt.current, n = e?.preview?.type === Q.Image ? e.preview.url : null;
|
|
2015
|
+
t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), rt.current = n, Ze(e);
|
|
2016
2016
|
}, []);
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
}, [e.id,
|
|
2020
|
-
let e =
|
|
2017
|
+
P(() => {
|
|
2018
|
+
it.current += 1, at(null), $e(!1), H(en(Je?.files ?? [])), nt(!1);
|
|
2019
|
+
}, [e.id, Ye]), P(() => () => {
|
|
2020
|
+
let e = rt.current;
|
|
2021
2021
|
e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
|
|
2022
2022
|
}, []);
|
|
2023
|
-
let
|
|
2024
|
-
|
|
2023
|
+
let ot = N((e) => {
|
|
2024
|
+
H((t) => {
|
|
2025
2025
|
let n = new Set(t);
|
|
2026
2026
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
2027
2027
|
});
|
|
2028
|
-
}, []),
|
|
2029
|
-
if (e ===
|
|
2030
|
-
|
|
2028
|
+
}, []), st = N(async (e) => {
|
|
2029
|
+
if (e === Ye) {
|
|
2030
|
+
it.current += 1, at(null), $e(!1);
|
|
2031
2031
|
return;
|
|
2032
2032
|
}
|
|
2033
|
-
if (
|
|
2034
|
-
if (
|
|
2035
|
-
|
|
2033
|
+
if (fe == null && ue == null && de == null) return;
|
|
2034
|
+
if (fe != null) {
|
|
2035
|
+
it.current += 1, at({
|
|
2036
2036
|
id: e,
|
|
2037
2037
|
preview: null
|
|
2038
|
-
}),
|
|
2038
|
+
}), $e(!1);
|
|
2039
2039
|
return;
|
|
2040
2040
|
}
|
|
2041
|
-
let t = ++
|
|
2042
|
-
|
|
2041
|
+
let t = ++it.current;
|
|
2042
|
+
at({
|
|
2043
2043
|
id: e,
|
|
2044
2044
|
preview: null
|
|
2045
|
-
}),
|
|
2045
|
+
}), $e(!0);
|
|
2046
2046
|
try {
|
|
2047
|
-
let n =
|
|
2047
|
+
let n = de == null ? await ue?.(e).then((e) => e == null ? void 0 : {
|
|
2048
2048
|
type: Q.Markdown,
|
|
2049
2049
|
text: e
|
|
2050
|
-
}) : await
|
|
2051
|
-
if (
|
|
2050
|
+
}) : await de(e);
|
|
2051
|
+
if (it.current !== t) {
|
|
2052
2052
|
n?.type === Q.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
|
|
2053
2053
|
return;
|
|
2054
2054
|
}
|
|
2055
|
-
|
|
2055
|
+
at({
|
|
2056
2056
|
id: e,
|
|
2057
2057
|
preview: n ?? null
|
|
2058
2058
|
});
|
|
2059
2059
|
} catch {
|
|
2060
|
-
if (
|
|
2061
|
-
|
|
2060
|
+
if (it.current !== t) return;
|
|
2061
|
+
at({
|
|
2062
2062
|
id: e,
|
|
2063
2063
|
preview: null
|
|
2064
2064
|
});
|
|
2065
2065
|
} finally {
|
|
2066
|
-
|
|
2066
|
+
it.current === t && $e(!1);
|
|
2067
2067
|
}
|
|
2068
2068
|
}, [
|
|
2069
|
-
|
|
2070
|
-
ce,
|
|
2071
|
-
le,
|
|
2069
|
+
Ye,
|
|
2072
2070
|
ue,
|
|
2073
|
-
|
|
2074
|
-
|
|
2071
|
+
de,
|
|
2072
|
+
fe,
|
|
2073
|
+
at
|
|
2074
|
+
]), ct = Xe?.id ?? Ye, lt = () => Xe == null ? null : Xe.preview == null ? {
|
|
2075
2075
|
type: Q.Text,
|
|
2076
|
-
text:
|
|
2077
|
-
} :
|
|
2078
|
-
if (!h ||
|
|
2076
|
+
text: B?.contentFileErrorLabel ?? "Failed to load this file."
|
|
2077
|
+
} : Xe.preview, ut = Xe != null && fe != null ? fe(Xe.id, tn(Je?.files ?? [], Xe.id) ?? "") : void 0, U = N(() => {
|
|
2078
|
+
if (!h || qe.current === e.id) return;
|
|
2079
2079
|
let t = e.id;
|
|
2080
|
-
|
|
2080
|
+
qe.current = t, (async () => {
|
|
2081
2081
|
try {
|
|
2082
2082
|
let n = await h(e);
|
|
2083
|
-
if (
|
|
2084
|
-
|
|
2083
|
+
if (qe.current !== t) return;
|
|
2084
|
+
We(n), Ke(!0);
|
|
2085
2085
|
} catch {
|
|
2086
|
-
if (
|
|
2087
|
-
|
|
2086
|
+
if (qe.current !== t) return;
|
|
2087
|
+
qe.current = null;
|
|
2088
2088
|
}
|
|
2089
2089
|
})();
|
|
2090
2090
|
}, [h, e]);
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
}, [
|
|
2094
|
-
let
|
|
2095
|
-
|
|
2096
|
-
}, [
|
|
2091
|
+
P(() => {
|
|
2092
|
+
Be && U();
|
|
2093
|
+
}, [Be, U]);
|
|
2094
|
+
let dt = N((e, t) => {
|
|
2095
|
+
qe.current = null, Ke(!1), U(), O?.(e, t);
|
|
2096
|
+
}, [U, O]), W = bt({
|
|
2097
2097
|
item: e,
|
|
2098
|
-
history:
|
|
2098
|
+
history: Ue,
|
|
2099
2099
|
folderItems: _,
|
|
2100
2100
|
hasWriteAccess: T,
|
|
2101
2101
|
defaultAuthor: E,
|
|
2102
2102
|
onCreateFolder: k,
|
|
2103
2103
|
onPublish: D ?? fr,
|
|
2104
|
-
onPublishSuccess:
|
|
2104
|
+
onPublishSuccess: dt,
|
|
2105
2105
|
onPublishError: ee,
|
|
2106
2106
|
onFetchExistingRules: ne
|
|
2107
|
-
}),
|
|
2108
|
-
hasSelectedFolder:
|
|
2109
|
-
hasExistingPublicationInFolder:
|
|
2110
|
-
hasWriteAccess:
|
|
2111
|
-
isSubmitting:
|
|
2112
|
-
hasSubmitError:
|
|
2107
|
+
}), ft = e.type === x.Toolset && g(e.credentials), pt = F(() => yt({
|
|
2108
|
+
hasSelectedFolder: W.selectedFolderPath != null,
|
|
2109
|
+
hasExistingPublicationInFolder: W.hasExistingPublicationInFolder,
|
|
2110
|
+
hasWriteAccess: W.hasWriteAccess,
|
|
2111
|
+
isSubmitting: W.isSubmitting,
|
|
2112
|
+
hasSubmitError: W.hasSubmitError
|
|
2113
2113
|
}), [
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
]), [
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
}, [e.id, r]),
|
|
2123
|
-
|
|
2114
|
+
W.selectedFolderPath,
|
|
2115
|
+
W.hasExistingPublicationInFolder,
|
|
2116
|
+
W.hasWriteAccess,
|
|
2117
|
+
W.isSubmitting,
|
|
2118
|
+
W.hasSubmitError
|
|
2119
|
+
]), [mt, ht] = L(!1), [xt, q] = L(null), [St, Ct] = L(!1), [X, wt] = L(null), [Z, Tt] = L(null), [Et, Dt] = L(null);
|
|
2120
|
+
P(() => {
|
|
2121
|
+
Fe(r);
|
|
2122
|
+
}, [e.id, r]), P(() => {
|
|
2123
|
+
ze(""), He(!1), W.reset(), We([]), Ke(!1), qe.current = null, Dt(null), ht(!1), q(null), Ct(!1), wt(null), Tt(null);
|
|
2124
2124
|
}, [e.id]);
|
|
2125
|
-
let
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
}, [
|
|
2129
|
-
let
|
|
2130
|
-
|
|
2131
|
-
}, []),
|
|
2132
|
-
|
|
2133
|
-
}, [e.credentials]),
|
|
2134
|
-
|
|
2135
|
-
}, []),
|
|
2136
|
-
|
|
2137
|
-
}, []),
|
|
2125
|
+
let Ot = !a && !!be && xe?.(e) === !0;
|
|
2126
|
+
P(() => {
|
|
2127
|
+
Ot && U();
|
|
2128
|
+
}, [Ot, U]);
|
|
2129
|
+
let kt = N(() => ht(!0), []), At = N(() => ht(!1), []), jt = N(() => {
|
|
2130
|
+
q(Y.Delete);
|
|
2131
|
+
}, []), Mt = N((n) => {
|
|
2132
|
+
Tt(n ?? (e.credentials == null ? null : t(e.credentials))), q(Y.Logout);
|
|
2133
|
+
}, [e.credentials]), Nt = N(() => {
|
|
2134
|
+
q(Y.Unshare);
|
|
2135
|
+
}, []), Pt = N(() => {
|
|
2136
|
+
q(Y.RevokeAccess);
|
|
2137
|
+
}, []), Ft = F(() => {
|
|
2138
2138
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
2139
|
-
for (let n of
|
|
2139
|
+
for (let n of Ue) {
|
|
2140
2140
|
let r = n.folderPath.join("/");
|
|
2141
2141
|
e.has(r) || (e.add(r), t.push({
|
|
2142
2142
|
key: r,
|
|
@@ -2144,384 +2144,381 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
2144
2144
|
}));
|
|
2145
2145
|
}
|
|
2146
2146
|
return t;
|
|
2147
|
-
}, [
|
|
2148
|
-
|
|
2149
|
-
}, []),
|
|
2150
|
-
|
|
2151
|
-
}, []),
|
|
2152
|
-
|
|
2153
|
-
}, [
|
|
2154
|
-
if (!(
|
|
2155
|
-
|
|
2147
|
+
}, [Ue]), It = Ge && Ft.length > 0, Lt = N((e) => e || (A?.rootFolderLabel ?? "Organization"), [A]), Rt = N(() => {
|
|
2148
|
+
q(Y.Unpublish);
|
|
2149
|
+
}, []), zt = N((e) => {
|
|
2150
|
+
wt(e), q(Y.DeleteApiKey);
|
|
2151
|
+
}, []), Bt = N(() => {
|
|
2152
|
+
St || (q(null), wt(null), Tt(null), Dt(null));
|
|
2153
|
+
}, [St]), Vt = N(async () => {
|
|
2154
|
+
if (!(St || xt == null)) {
|
|
2155
|
+
Ct(!0);
|
|
2156
2156
|
try {
|
|
2157
|
-
switch (
|
|
2157
|
+
switch (xt) {
|
|
2158
2158
|
case Y.Delete:
|
|
2159
|
-
await
|
|
2159
|
+
await he?.(e);
|
|
2160
2160
|
break;
|
|
2161
2161
|
case Y.Unshare:
|
|
2162
|
-
await
|
|
2162
|
+
await R?.(e);
|
|
2163
2163
|
break;
|
|
2164
2164
|
case Y.RevokeAccess:
|
|
2165
|
-
await
|
|
2165
|
+
await _e?.(e);
|
|
2166
2166
|
break;
|
|
2167
2167
|
case Y.Logout:
|
|
2168
|
-
|
|
2168
|
+
Z != null && await Ce?.(e, { level: Z });
|
|
2169
2169
|
break;
|
|
2170
2170
|
case Y.DeleteApiKey:
|
|
2171
|
-
|
|
2171
|
+
X != null && await Ce?.(e, { level: X });
|
|
2172
2172
|
break;
|
|
2173
2173
|
case Y.Unpublish: {
|
|
2174
|
-
let t = dr(
|
|
2175
|
-
t != null && await
|
|
2174
|
+
let t = dr(Ft, Et);
|
|
2175
|
+
t != null && await be?.(e, t.segments);
|
|
2176
2176
|
break;
|
|
2177
2177
|
}
|
|
2178
2178
|
}
|
|
2179
|
-
|
|
2179
|
+
q(null), wt(null), Tt(null), Dt(null), xr.has(xt) && o();
|
|
2180
2180
|
} catch {
|
|
2181
|
-
|
|
2181
|
+
q(null), wt(null), Tt(null), Dt(null);
|
|
2182
2182
|
} finally {
|
|
2183
|
-
|
|
2183
|
+
Ct(!1);
|
|
2184
2184
|
}
|
|
2185
2185
|
}
|
|
2186
2186
|
}, [
|
|
2187
|
-
|
|
2187
|
+
St,
|
|
2188
|
+
xt,
|
|
2188
2189
|
X,
|
|
2189
|
-
|
|
2190
|
-
Ot,
|
|
2190
|
+
Z,
|
|
2191
2191
|
e,
|
|
2192
|
-
pe,
|
|
2193
|
-
B,
|
|
2194
2192
|
he,
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2193
|
+
R,
|
|
2194
|
+
_e,
|
|
2195
|
+
be,
|
|
2196
|
+
Et,
|
|
2197
|
+
Ft,
|
|
2198
|
+
Ce,
|
|
2199
2199
|
o
|
|
2200
2200
|
]);
|
|
2201
|
-
|
|
2202
|
-
if (!n ||
|
|
2201
|
+
P(() => {
|
|
2202
|
+
if (!n || xt == null) return;
|
|
2203
2203
|
let e = (e) => {
|
|
2204
|
-
e.key === "Escape" && (e.stopPropagation(),
|
|
2204
|
+
e.key === "Escape" && (e.stopPropagation(), Bt());
|
|
2205
2205
|
};
|
|
2206
2206
|
return document.addEventListener("keydown", e, !0), () => document.removeEventListener("keydown", e, !0);
|
|
2207
2207
|
}, [
|
|
2208
2208
|
n,
|
|
2209
|
-
|
|
2210
|
-
|
|
2209
|
+
xt,
|
|
2210
|
+
Bt
|
|
2211
2211
|
]);
|
|
2212
|
-
let
|
|
2213
|
-
|
|
2214
|
-
}, [
|
|
2215
|
-
await
|
|
2216
|
-
}, [
|
|
2217
|
-
let t = !
|
|
2218
|
-
|
|
2212
|
+
let Ut = N(() => He(!0), []), Wt = N(() => {
|
|
2213
|
+
He(!1), W.reset();
|
|
2214
|
+
}, [W]), Gt = N(async () => {
|
|
2215
|
+
await W.handleSubmit() && Wt();
|
|
2216
|
+
}, [W, Wt]), Kt = N(() => {
|
|
2217
|
+
let t = !Ne;
|
|
2218
|
+
Fe(t), s?.(e.id, t);
|
|
2219
2219
|
}, [
|
|
2220
|
-
|
|
2220
|
+
Ne,
|
|
2221
2221
|
e.id,
|
|
2222
2222
|
s
|
|
2223
|
-
]),
|
|
2223
|
+
]), qt = F(() => {
|
|
2224
2224
|
let t = [], n = lr.has(e.type);
|
|
2225
2225
|
return n || t.push({
|
|
2226
2226
|
id: J.About,
|
|
2227
|
-
label:
|
|
2227
|
+
label: B?.tabAboutLabel ?? "About"
|
|
2228
2228
|
}), (n || e.details?.promptContent != null) && t.push({
|
|
2229
2229
|
id: J.Content,
|
|
2230
|
-
label:
|
|
2230
|
+
label: B?.tabContentLabel ?? "Details"
|
|
2231
2231
|
}), e.details?.overview != null && t.push({
|
|
2232
2232
|
id: J.Overview,
|
|
2233
|
-
label:
|
|
2233
|
+
label: B?.tabOverviewLabel ?? "Overview"
|
|
2234
2234
|
}), e.details?.pricing != null && t.push({
|
|
2235
2235
|
id: J.Pricing,
|
|
2236
|
-
label:
|
|
2236
|
+
label: B?.tabPricingLabel ?? "Pricing"
|
|
2237
2237
|
}), e.details?.limits != null && t.push({
|
|
2238
2238
|
id: J.Limits,
|
|
2239
|
-
label:
|
|
2239
|
+
label: B?.tabLimitsLabel ?? "Limits"
|
|
2240
2240
|
}), e.details?.tools != null && t.push({
|
|
2241
2241
|
id: J.Tools,
|
|
2242
|
-
label:
|
|
2242
|
+
label: B?.tabToolsLabel ?? "Tools"
|
|
2243
2243
|
}), ur(e.details?.api) && t.push({
|
|
2244
2244
|
id: J.Api,
|
|
2245
|
-
label:
|
|
2245
|
+
label: B?.tabConnectLabel ?? "Connect"
|
|
2246
2246
|
}), t;
|
|
2247
|
-
}, [e,
|
|
2248
|
-
|
|
2249
|
-
let t =
|
|
2250
|
-
|
|
2247
|
+
}, [e, B]), Jt = I(null);
|
|
2248
|
+
P(() => {
|
|
2249
|
+
let t = Jt.current !== e.id;
|
|
2250
|
+
Jt.current = e.id, (t || !qt.some((e) => e.id === Ie)) && ze(qt[0]?.id ?? "");
|
|
2251
2251
|
}, [
|
|
2252
2252
|
e.id,
|
|
2253
|
-
|
|
2254
|
-
|
|
2253
|
+
qt,
|
|
2254
|
+
Ie
|
|
2255
2255
|
]);
|
|
2256
|
-
let
|
|
2257
|
-
switch (
|
|
2256
|
+
let Yt = B?.overviewYesLabel ?? "Yes", Xt = B?.overviewNoLabel ?? "No", Zt = B?.ariaLabel ?? "Item details", Qt = B?.closeAriaLabel ?? "Close", $t = Ne ? B?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : B?.addToFavoritesAriaLabel ?? "Add to favorites", nn = B?.publishTitle ?? "Publish", rn = B?.backToDetailsAriaLabel ?? "Back", an = B?.cancelLabel ?? "Cancel", on = F(() => {
|
|
2257
|
+
switch (xt) {
|
|
2258
2258
|
case Y.Delete: {
|
|
2259
|
-
let t =
|
|
2259
|
+
let t = B?.deleteActionLabel ?? "Delete";
|
|
2260
2260
|
return {
|
|
2261
|
-
title:
|
|
2262
|
-
message:
|
|
2261
|
+
title: B?.deleteConfirmTitle ?? t,
|
|
2262
|
+
message: B?.deleteConfirmMessage?.(e.name) ?? /* @__PURE__ */ K(gt, { children: [
|
|
2263
2263
|
"Are you sure you want to delete ",
|
|
2264
|
-
/* @__PURE__ */
|
|
2264
|
+
/* @__PURE__ */ G("strong", { children: e.name }),
|
|
2265
2265
|
"? This action is permanent and cannot be undone."
|
|
2266
2266
|
] }),
|
|
2267
|
-
consequences:
|
|
2267
|
+
consequences: B?.deleteConfirmConsequences ?? hr,
|
|
2268
2268
|
confirmLabel: t,
|
|
2269
|
-
loadingStatusLabel:
|
|
2270
|
-
variant:
|
|
2269
|
+
loadingStatusLabel: B?.deletingStatusLabel ?? "Deleting",
|
|
2270
|
+
variant: ge.Danger
|
|
2271
2271
|
};
|
|
2272
2272
|
}
|
|
2273
2273
|
case Y.Unshare: {
|
|
2274
|
-
let t =
|
|
2274
|
+
let t = B?.unshareLabel ?? "Remove from My List";
|
|
2275
2275
|
return {
|
|
2276
|
-
title:
|
|
2277
|
-
message:
|
|
2276
|
+
title: B?.unshareConfirmTitle ?? t,
|
|
2277
|
+
message: B?.unshareConfirmMessage?.(e.name) ?? /* @__PURE__ */ K(gt, { children: [
|
|
2278
2278
|
"Remove ",
|
|
2279
|
-
/* @__PURE__ */
|
|
2279
|
+
/* @__PURE__ */ G("strong", { children: e.name }),
|
|
2280
2280
|
" from your list? You'll need a new invitation to access it again."
|
|
2281
2281
|
] }),
|
|
2282
|
-
consequences:
|
|
2282
|
+
consequences: B?.unshareConfirmConsequences ?? gr,
|
|
2283
2283
|
confirmLabel: t,
|
|
2284
|
-
loadingStatusLabel:
|
|
2285
|
-
variant:
|
|
2284
|
+
loadingStatusLabel: B?.unsharingStatusLabel ?? "Removing",
|
|
2285
|
+
variant: ge.Info
|
|
2286
2286
|
};
|
|
2287
2287
|
}
|
|
2288
2288
|
case Y.RevokeAccess: {
|
|
2289
|
-
let t =
|
|
2289
|
+
let t = B?.revokeShareLabel ?? "Revoke access";
|
|
2290
2290
|
return {
|
|
2291
|
-
title:
|
|
2292
|
-
message:
|
|
2291
|
+
title: B?.revokeShareConfirmTitle ?? t,
|
|
2292
|
+
message: B?.revokeShareConfirmMessage?.(e.name) ?? /* @__PURE__ */ K(gt, { children: [
|
|
2293
2293
|
"Revoke shared access to ",
|
|
2294
|
-
/* @__PURE__ */
|
|
2294
|
+
/* @__PURE__ */ G("strong", { children: e.name }),
|
|
2295
2295
|
"? Anyone you shared it with will lose access."
|
|
2296
2296
|
] }),
|
|
2297
|
-
consequences:
|
|
2297
|
+
consequences: B?.revokeShareConfirmConsequences ?? vr,
|
|
2298
2298
|
confirmLabel: t,
|
|
2299
|
-
loadingStatusLabel:
|
|
2300
|
-
variant:
|
|
2299
|
+
loadingStatusLabel: B?.revokingShareStatusLabel ?? "Revoking access",
|
|
2300
|
+
variant: ge.Danger
|
|
2301
2301
|
};
|
|
2302
2302
|
}
|
|
2303
2303
|
case Y.Unpublish: {
|
|
2304
|
-
let t =
|
|
2304
|
+
let t = B?.unpublishLabel ?? "Unpublish", n = Ft.length === 1, r = n ? Lt(Ft[0].key) : "", i = B?.unpublishConfirmMessage?.(e.name, r) ?? /* @__PURE__ */ K(gt, { children: [
|
|
2305
2305
|
"Unpublish ",
|
|
2306
|
-
/* @__PURE__ */
|
|
2306
|
+
/* @__PURE__ */ G("strong", { children: e.name }),
|
|
2307
2307
|
" from \"",
|
|
2308
2308
|
r,
|
|
2309
2309
|
"\"? The request is submitted for admin approval."
|
|
2310
|
-
] }), a =
|
|
2310
|
+
] }), a = B?.unpublishSelectFolderMessage?.(e.name) ?? /* @__PURE__ */ K(gt, { children: [
|
|
2311
2311
|
"Choose which folder to unpublish ",
|
|
2312
|
-
/* @__PURE__ */
|
|
2312
|
+
/* @__PURE__ */ G("strong", { children: e.name }),
|
|
2313
2313
|
" from. The request is submitted for admin approval."
|
|
2314
2314
|
] });
|
|
2315
2315
|
return {
|
|
2316
|
-
title:
|
|
2316
|
+
title: B?.unpublishConfirmTitle ?? t,
|
|
2317
2317
|
message: n ? i : a,
|
|
2318
|
-
consequences:
|
|
2318
|
+
consequences: B?.unpublishConfirmConsequences ?? _r,
|
|
2319
2319
|
confirmLabel: t,
|
|
2320
|
-
loadingStatusLabel:
|
|
2321
|
-
variant:
|
|
2320
|
+
loadingStatusLabel: B?.unpublishingStatusLabel ?? "Requesting unpublish",
|
|
2321
|
+
variant: ge.Danger
|
|
2322
2322
|
};
|
|
2323
2323
|
}
|
|
2324
2324
|
case Y.Logout: {
|
|
2325
|
-
let e =
|
|
2325
|
+
let e = B?.logoutActionLabel ?? "Log out";
|
|
2326
2326
|
return {
|
|
2327
2327
|
title: e,
|
|
2328
|
-
message:
|
|
2328
|
+
message: B?.logoutConfirmMessage ?? "Are you sure you want to log out?",
|
|
2329
2329
|
consequences: void 0,
|
|
2330
2330
|
confirmLabel: e,
|
|
2331
|
-
loadingStatusLabel:
|
|
2332
|
-
variant:
|
|
2331
|
+
loadingStatusLabel: B?.loggingOutStatusLabel ?? "Logging out",
|
|
2332
|
+
variant: ge.Info
|
|
2333
2333
|
};
|
|
2334
2334
|
}
|
|
2335
2335
|
case Y.DeleteApiKey: {
|
|
2336
|
-
let e =
|
|
2336
|
+
let e = B?.deleteActionLabel ?? "Delete", t = X ?? b.User;
|
|
2337
2337
|
return {
|
|
2338
2338
|
title: e,
|
|
2339
|
-
message: (
|
|
2339
|
+
message: (B?.deleteApiKeyConfirmMessage ?? br)(t),
|
|
2340
2340
|
consequences: void 0,
|
|
2341
2341
|
confirmLabel: e,
|
|
2342
|
-
loadingStatusLabel:
|
|
2343
|
-
variant:
|
|
2344
|
-
cardVariant:
|
|
2342
|
+
loadingStatusLabel: B?.deletingStatusLabel ?? "Deleting",
|
|
2343
|
+
variant: ge.Danger,
|
|
2344
|
+
cardVariant: ge.Info
|
|
2345
2345
|
};
|
|
2346
2346
|
}
|
|
2347
2347
|
default: return null;
|
|
2348
2348
|
}
|
|
2349
2349
|
}, [
|
|
2350
|
-
|
|
2350
|
+
xt,
|
|
2351
2351
|
e.name,
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
]),
|
|
2357
|
-
title:
|
|
2358
|
-
isBackDisabled:
|
|
2359
|
-
onBack:
|
|
2360
|
-
} :
|
|
2361
|
-
title:
|
|
2362
|
-
isBackDisabled:
|
|
2363
|
-
onBack:
|
|
2364
|
-
} :
|
|
2365
|
-
title:
|
|
2352
|
+
X,
|
|
2353
|
+
B,
|
|
2354
|
+
Ft,
|
|
2355
|
+
Lt
|
|
2356
|
+
]), sn = on != null, cn = xt === Y.Unpublish && dr(Ft, Et) == null, ln = sn || Be || mt, dn = e.credentials == null ? "" : (B?.credentialsManagementTitle ?? yr)(e.credentials.authenticationType), fn = sn ? {
|
|
2357
|
+
title: on.title,
|
|
2358
|
+
isBackDisabled: St,
|
|
2359
|
+
onBack: Bt
|
|
2360
|
+
} : Be ? {
|
|
2361
|
+
title: nn,
|
|
2362
|
+
isBackDisabled: W.isSubmitting,
|
|
2363
|
+
onBack: Wt
|
|
2364
|
+
} : mt ? {
|
|
2365
|
+
title: dn,
|
|
2366
2366
|
isBackDisabled: !1,
|
|
2367
|
-
onBack:
|
|
2368
|
-
} : null,
|
|
2369
|
-
return /* @__PURE__ */
|
|
2367
|
+
onBack: At
|
|
2368
|
+
} : null, pn = fn?.title ?? Zt;
|
|
2369
|
+
return /* @__PURE__ */ K(Le, {
|
|
2370
2370
|
open: n,
|
|
2371
2371
|
onClose: o,
|
|
2372
|
-
header:
|
|
2373
|
-
ariaLabel:
|
|
2374
|
-
onBack:
|
|
2375
|
-
backAriaLabel:
|
|
2376
|
-
backDisabled:
|
|
2377
|
-
hideClose:
|
|
2378
|
-
closeAriaLabel:
|
|
2379
|
-
headerActions:
|
|
2380
|
-
isStarred:
|
|
2381
|
-
ariaLabel:
|
|
2382
|
-
onClick:
|
|
2372
|
+
header: fn?.title,
|
|
2373
|
+
ariaLabel: pn,
|
|
2374
|
+
onBack: fn?.onBack,
|
|
2375
|
+
backAriaLabel: rn,
|
|
2376
|
+
backDisabled: fn?.isBackDisabled,
|
|
2377
|
+
hideClose: fn != null,
|
|
2378
|
+
closeAriaLabel: Qt,
|
|
2379
|
+
headerActions: fn == null && !a && c?.(e) !== !1 ? /* @__PURE__ */ G(Ht, {
|
|
2380
|
+
isStarred: Ne,
|
|
2381
|
+
ariaLabel: $t,
|
|
2382
|
+
onClick: Kt
|
|
2383
2383
|
}) : void 0,
|
|
2384
|
-
style:
|
|
2385
|
-
overlayStyle:
|
|
2384
|
+
style: Me,
|
|
2385
|
+
overlayStyle: Me,
|
|
2386
2386
|
className: Dn.panel,
|
|
2387
2387
|
overlayClassName: Dn.backdrop,
|
|
2388
2388
|
headerClassName: Dn.divider,
|
|
2389
|
-
titleClassName: M(
|
|
2389
|
+
titleClassName: M(Ee, Dn.publishTitle),
|
|
2390
2390
|
bodyClassName: "flex flex-col overflow-hidden",
|
|
2391
2391
|
children: [
|
|
2392
|
-
/* @__PURE__ */
|
|
2392
|
+
/* @__PURE__ */ K("div", {
|
|
2393
2393
|
className: M("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", Dn.content),
|
|
2394
2394
|
children: [
|
|
2395
|
-
|
|
2395
|
+
sn && /* @__PURE__ */ G(C, {
|
|
2396
2396
|
item: e,
|
|
2397
|
-
message:
|
|
2398
|
-
consequences:
|
|
2399
|
-
variant:
|
|
2400
|
-
messageClassName:
|
|
2397
|
+
message: on.message,
|
|
2398
|
+
consequences: on.consequences,
|
|
2399
|
+
variant: on.cardVariant ?? on.variant,
|
|
2400
|
+
messageClassName: je,
|
|
2401
2401
|
styles: { colors: {
|
|
2402
|
-
messageText:
|
|
2403
|
-
consequenceText:
|
|
2404
|
-
cardBackground:
|
|
2405
|
-
cardDangerBackground:
|
|
2402
|
+
messageText: V?.confirmMessageText,
|
|
2403
|
+
consequenceText: V?.confirmConsequenceText,
|
|
2404
|
+
cardBackground: V?.infoCardBackground,
|
|
2405
|
+
cardDangerBackground: V?.infoCardDangerBackground
|
|
2406
2406
|
} },
|
|
2407
|
-
children:
|
|
2408
|
-
ariaLabel:
|
|
2409
|
-
value:
|
|
2410
|
-
onChange:
|
|
2411
|
-
disabled:
|
|
2412
|
-
items:
|
|
2407
|
+
children: xt === Y.Unpublish && Ft.length > 1 && /* @__PURE__ */ G(Pe, {
|
|
2408
|
+
ariaLabel: B?.unpublishFolderGroupAriaLabel ?? "Published folders",
|
|
2409
|
+
value: Et ?? void 0,
|
|
2410
|
+
onChange: Dt,
|
|
2411
|
+
disabled: St,
|
|
2412
|
+
items: Ft.map((e) => ({
|
|
2413
2413
|
value: e.key,
|
|
2414
|
-
label:
|
|
2414
|
+
label: Lt(e.key)
|
|
2415
2415
|
})),
|
|
2416
|
-
radioClassName:
|
|
2416
|
+
radioClassName: je
|
|
2417
2417
|
})
|
|
2418
2418
|
}),
|
|
2419
|
-
!
|
|
2419
|
+
!sn && !Be && mt && /* @__PURE__ */ G(En, {
|
|
2420
2420
|
item: e,
|
|
2421
|
-
onLogin:
|
|
2422
|
-
onRequestLogout:
|
|
2423
|
-
onRequestDeleteApiKey:
|
|
2424
|
-
texts:
|
|
2425
|
-
detailsStyles:
|
|
2421
|
+
onLogin: Se,
|
|
2422
|
+
onRequestLogout: Mt,
|
|
2423
|
+
onRequestDeleteApiKey: zt,
|
|
2424
|
+
texts: B,
|
|
2425
|
+
detailsStyles: we
|
|
2426
2426
|
}),
|
|
2427
|
-
!
|
|
2427
|
+
!sn && Be && /* @__PURE__ */ G("div", {
|
|
2428
2428
|
className: "p-[22px]",
|
|
2429
|
-
children: /* @__PURE__ */
|
|
2429
|
+
children: /* @__PURE__ */ G(vt, {
|
|
2430
2430
|
resource: {
|
|
2431
2431
|
title: e.name,
|
|
2432
2432
|
version: e.version,
|
|
2433
2433
|
type: e.type,
|
|
2434
2434
|
iconUrl: e.iconUrl
|
|
2435
2435
|
},
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
selectedFolderPath: G.selectedFolderPath,
|
|
2441
|
-
onSelectedFolderPathChange: G.setSelectedFolderPath,
|
|
2442
|
-
onCreateFolder: G.handleCreateFolder,
|
|
2436
|
+
folderItems: W.folderItems,
|
|
2437
|
+
selectedFolderPath: W.selectedFolderPath,
|
|
2438
|
+
onSelectedFolderPathChange: W.setSelectedFolderPath,
|
|
2439
|
+
onCreateFolder: W.handleCreateFolder,
|
|
2443
2440
|
expandedPaths: v,
|
|
2444
2441
|
onExpandedPathsChange: y,
|
|
2445
2442
|
loadingPaths: w,
|
|
2446
|
-
hasExistingPublicationInFolder:
|
|
2447
|
-
hasWriteAccess:
|
|
2448
|
-
isSubmitting:
|
|
2449
|
-
hasSubmitError:
|
|
2450
|
-
author:
|
|
2451
|
-
onAuthorChange:
|
|
2452
|
-
publishCredentials:
|
|
2453
|
-
onPublishCredentialsChange:
|
|
2454
|
-
rules:
|
|
2455
|
-
onRulesChange:
|
|
2443
|
+
hasExistingPublicationInFolder: W.hasExistingPublicationInFolder,
|
|
2444
|
+
hasWriteAccess: W.hasWriteAccess,
|
|
2445
|
+
isSubmitting: W.isSubmitting,
|
|
2446
|
+
hasSubmitError: W.hasSubmitError,
|
|
2447
|
+
author: W.author,
|
|
2448
|
+
onAuthorChange: W.setAuthor,
|
|
2449
|
+
publishCredentials: W.publishCredentials,
|
|
2450
|
+
onPublishCredentialsChange: ft ? W.setPublishCredentials : void 0,
|
|
2451
|
+
rules: W.rules,
|
|
2452
|
+
onRulesChange: W.setRules,
|
|
2456
2453
|
ruleSourceOptions: te,
|
|
2457
|
-
isRulesLoading:
|
|
2458
|
-
hasRulesLoadError:
|
|
2454
|
+
isRulesLoading: W.isRulesLoading,
|
|
2455
|
+
hasRulesLoadError: W.hasRulesLoadError,
|
|
2459
2456
|
labels: A,
|
|
2460
2457
|
styles: { colors: {
|
|
2461
|
-
summaryVersionTagBorder:
|
|
2462
|
-
summaryVersionTagBackground:
|
|
2463
|
-
summaryVersionTagText:
|
|
2458
|
+
summaryVersionTagBorder: V?.versionTagBorder,
|
|
2459
|
+
summaryVersionTagBackground: V?.versionTagBackground,
|
|
2460
|
+
summaryVersionTagText: V?.versionTagText
|
|
2464
2461
|
} }
|
|
2465
2462
|
})
|
|
2466
2463
|
}),
|
|
2467
|
-
!
|
|
2468
|
-
/* @__PURE__ */
|
|
2464
|
+
!ln && /* @__PURE__ */ K(gt, { children: [
|
|
2465
|
+
/* @__PURE__ */ G(Rn, {
|
|
2469
2466
|
item: e,
|
|
2470
2467
|
onUseInChat: l,
|
|
2471
2468
|
isPrimaryActionVisible: u,
|
|
2472
2469
|
onShare: d,
|
|
2473
2470
|
shareOverlay: re,
|
|
2474
2471
|
isShareVisible: ie,
|
|
2475
|
-
isSharePrimary:
|
|
2472
|
+
isSharePrimary: ae,
|
|
2476
2473
|
isPublishVisible: f,
|
|
2477
2474
|
isPublishPrimary: p,
|
|
2478
|
-
onOpenPublish:
|
|
2479
|
-
isUnpublishVisible:
|
|
2480
|
-
hasPublishedFolders:
|
|
2481
|
-
isPublishHistoryResolved: h == null ||
|
|
2482
|
-
onRequestPublishHistory:
|
|
2483
|
-
onOpenUnpublish:
|
|
2484
|
-
onEdit:
|
|
2485
|
-
onDownload:
|
|
2486
|
-
isDownloadVisible:
|
|
2487
|
-
isDownloadPrimary:
|
|
2488
|
-
onDelete:
|
|
2489
|
-
onUnshare:
|
|
2490
|
-
isUnshareVisible:
|
|
2491
|
-
onRevokeShare:
|
|
2492
|
-
onFetchRecipientsCount:
|
|
2493
|
-
isRevokeShareVisible:
|
|
2494
|
-
onLogin:
|
|
2495
|
-
onLogout:
|
|
2496
|
-
onOpenCredentialsManagement:
|
|
2497
|
-
onRequestLogout:
|
|
2498
|
-
texts:
|
|
2499
|
-
detailsStyles:
|
|
2475
|
+
onOpenPublish: Ut,
|
|
2476
|
+
isUnpublishVisible: xe,
|
|
2477
|
+
hasPublishedFolders: It,
|
|
2478
|
+
isPublishHistoryResolved: h == null || Ge,
|
|
2479
|
+
onRequestPublishHistory: U,
|
|
2480
|
+
onOpenUnpublish: be ? Rt : void 0,
|
|
2481
|
+
onEdit: oe,
|
|
2482
|
+
onDownload: se,
|
|
2483
|
+
isDownloadVisible: ce,
|
|
2484
|
+
isDownloadPrimary: le,
|
|
2485
|
+
onDelete: he ? jt : void 0,
|
|
2486
|
+
onUnshare: R ? Nt : void 0,
|
|
2487
|
+
isUnshareVisible: z,
|
|
2488
|
+
onRevokeShare: _e ? Pt : void 0,
|
|
2489
|
+
onFetchRecipientsCount: ve,
|
|
2490
|
+
isRevokeShareVisible: ye,
|
|
2491
|
+
onLogin: Se,
|
|
2492
|
+
onLogout: Ce,
|
|
2493
|
+
onOpenCredentialsManagement: kt,
|
|
2494
|
+
onRequestLogout: Mt,
|
|
2495
|
+
texts: B,
|
|
2496
|
+
detailsStyles: we,
|
|
2500
2497
|
isReadonly: a
|
|
2501
2498
|
}),
|
|
2502
2499
|
e.credentials != null && (() => {
|
|
2503
2500
|
let t = m(e.credentials);
|
|
2504
|
-
return t != null && /* @__PURE__ */
|
|
2501
|
+
return t != null && /* @__PURE__ */ G("div", {
|
|
2505
2502
|
className: "px-6",
|
|
2506
|
-
children: /* @__PURE__ */
|
|
2503
|
+
children: /* @__PURE__ */ G(Sn, {
|
|
2507
2504
|
state: t,
|
|
2508
2505
|
authenticationType: e.credentials.authenticationType,
|
|
2509
|
-
texts:
|
|
2506
|
+
texts: B
|
|
2510
2507
|
})
|
|
2511
2508
|
});
|
|
2512
2509
|
})(),
|
|
2513
|
-
!a && n &&
|
|
2514
|
-
/* @__PURE__ */
|
|
2510
|
+
!a && n && me?.(e),
|
|
2511
|
+
/* @__PURE__ */ K("div", {
|
|
2515
2512
|
className: "flex items-center px-6",
|
|
2516
|
-
children: [/* @__PURE__ */
|
|
2517
|
-
tabs:
|
|
2518
|
-
activeTabId:
|
|
2519
|
-
onTabChange:
|
|
2520
|
-
}), i && /* @__PURE__ */
|
|
2513
|
+
children: [/* @__PURE__ */ G(Ve, {
|
|
2514
|
+
tabs: qt,
|
|
2515
|
+
activeTabId: Ie,
|
|
2516
|
+
onTabChange: ze
|
|
2517
|
+
}), i && /* @__PURE__ */ G("div", {
|
|
2521
2518
|
role: "status",
|
|
2522
|
-
"aria-label":
|
|
2519
|
+
"aria-label": B?.detailsLoadingAriaLabel ?? "Loading details",
|
|
2523
2520
|
className: "shrink-0",
|
|
2524
|
-
children: /* @__PURE__ */
|
|
2521
|
+
children: /* @__PURE__ */ G(Re, {
|
|
2525
2522
|
showTitle: !1,
|
|
2526
2523
|
paragraph: {
|
|
2527
2524
|
rows: 1,
|
|
@@ -2532,88 +2529,88 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
2532
2529
|
})
|
|
2533
2530
|
})]
|
|
2534
2531
|
}),
|
|
2535
|
-
/* @__PURE__ */
|
|
2536
|
-
className: M("min-h-0 flex-1 overflow-y-auto",
|
|
2532
|
+
/* @__PURE__ */ K("div", {
|
|
2533
|
+
className: M("min-h-0 flex-1 overflow-y-auto", Ie !== J.Overview && "px-6"),
|
|
2537
2534
|
children: [
|
|
2538
|
-
|
|
2535
|
+
Ie === J.About && /* @__PURE__ */ G(zn, {
|
|
2539
2536
|
content: e.description,
|
|
2540
2537
|
topics: e.topics,
|
|
2541
|
-
detailsStyles:
|
|
2538
|
+
detailsStyles: we
|
|
2542
2539
|
}),
|
|
2543
|
-
|
|
2544
|
-
content:
|
|
2545
|
-
filePreview:
|
|
2546
|
-
filePreviewContent:
|
|
2547
|
-
renderFileTree:
|
|
2548
|
-
description:
|
|
2549
|
-
files:
|
|
2550
|
-
selectedFileId:
|
|
2551
|
-
onSelectFile: (e) => void
|
|
2552
|
-
isFileLoading:
|
|
2553
|
-
expandedFolderIds:
|
|
2554
|
-
onToggleFolder:
|
|
2555
|
-
isFileSelectorOpen:
|
|
2556
|
-
onFileSelectorOpenChange:
|
|
2557
|
-
fileSelectorAriaLabel:
|
|
2558
|
-
fileCountLabel:
|
|
2559
|
-
fileLoadingLabel:
|
|
2560
|
-
fileUnsupportedLabel:
|
|
2561
|
-
detailsStyles:
|
|
2540
|
+
Ie === J.Content && /* @__PURE__ */ G(Wn, {
|
|
2541
|
+
content: Je?.content ?? "",
|
|
2542
|
+
filePreview: lt(),
|
|
2543
|
+
filePreviewContent: ut,
|
|
2544
|
+
renderFileTree: pe,
|
|
2545
|
+
description: Je?.description ?? e.description,
|
|
2546
|
+
files: Je?.files,
|
|
2547
|
+
selectedFileId: ct,
|
|
2548
|
+
onSelectFile: (e) => void st(e),
|
|
2549
|
+
isFileLoading: Qe,
|
|
2550
|
+
expandedFolderIds: et,
|
|
2551
|
+
onToggleFolder: ot,
|
|
2552
|
+
isFileSelectorOpen: tt,
|
|
2553
|
+
onFileSelectorOpenChange: nt,
|
|
2554
|
+
fileSelectorAriaLabel: B?.contentFileSelectorAriaLabel,
|
|
2555
|
+
fileCountLabel: B?.contentFileCountLabel,
|
|
2556
|
+
fileLoadingLabel: B?.contentFileLoadingLabel,
|
|
2557
|
+
fileUnsupportedLabel: B?.contentFileUnsupportedLabel,
|
|
2558
|
+
detailsStyles: we
|
|
2562
2559
|
}),
|
|
2563
|
-
|
|
2560
|
+
Ie === J.Overview && /* @__PURE__ */ G(rr, {
|
|
2564
2561
|
sections: e.details?.overview?.sections,
|
|
2565
|
-
sectionClassName:
|
|
2566
|
-
labelClassName:
|
|
2567
|
-
valueClassName:
|
|
2568
|
-
valueTrueClassName:
|
|
2569
|
-
yesLabel:
|
|
2570
|
-
noLabel:
|
|
2562
|
+
sectionClassName: De,
|
|
2563
|
+
labelClassName: Oe,
|
|
2564
|
+
valueClassName: ke,
|
|
2565
|
+
valueTrueClassName: Ae,
|
|
2566
|
+
yesLabel: Yt,
|
|
2567
|
+
noLabel: Xt
|
|
2571
2568
|
}),
|
|
2572
|
-
|
|
2569
|
+
Ie === J.Pricing && /* @__PURE__ */ G(ir, {
|
|
2573
2570
|
pricing: e.details?.pricing,
|
|
2574
|
-
pricesSectionLabel:
|
|
2575
|
-
limitsSectionLabel:
|
|
2571
|
+
pricesSectionLabel: B?.pricingPricesSectionLabel,
|
|
2572
|
+
limitsSectionLabel: B?.pricingLimitsSectionLabel
|
|
2576
2573
|
}),
|
|
2577
|
-
|
|
2574
|
+
Ie === J.Limits && /* @__PURE__ */ G(nr, {
|
|
2578
2575
|
limits: e.details?.limits,
|
|
2579
|
-
footerNote:
|
|
2576
|
+
footerNote: Te
|
|
2580
2577
|
}),
|
|
2581
|
-
|
|
2578
|
+
Ie === J.Api && ur(e.details?.api) && /* @__PURE__ */ G(un, {
|
|
2582
2579
|
api: e.details?.api,
|
|
2583
|
-
resourceSectionLabel:
|
|
2584
|
-
snippetSectionLabel:
|
|
2585
|
-
modelIdLabel:
|
|
2586
|
-
endpointLabel:
|
|
2587
|
-
endpointSectionLabel:
|
|
2588
|
-
requestExampleLabel:
|
|
2589
|
-
responseSchemaLabel:
|
|
2590
|
-
copyAriaLabel:
|
|
2591
|
-
copiedStatusLabel:
|
|
2580
|
+
resourceSectionLabel: B?.apiResourceSectionLabel,
|
|
2581
|
+
snippetSectionLabel: B?.apiSnippetSectionLabel,
|
|
2582
|
+
modelIdLabel: B?.apiModelIdLabel,
|
|
2583
|
+
endpointLabel: B?.apiEndpointLabel,
|
|
2584
|
+
endpointSectionLabel: B?.apiEndpointSectionLabel,
|
|
2585
|
+
requestExampleLabel: B?.apiRequestExampleLabel,
|
|
2586
|
+
responseSchemaLabel: B?.apiResponseSchemaLabel,
|
|
2587
|
+
copyAriaLabel: B?.copyCodeAriaLabel,
|
|
2588
|
+
copiedStatusLabel: B?.copiedCodeStatusLabel
|
|
2592
2589
|
}),
|
|
2593
|
-
|
|
2590
|
+
Ie === J.Tools && /* @__PURE__ */ G(cr, { tools: e.details?.tools })
|
|
2594
2591
|
]
|
|
2595
2592
|
})
|
|
2596
2593
|
] })
|
|
2597
2594
|
]
|
|
2598
2595
|
}),
|
|
2599
|
-
|
|
2600
|
-
confirmLabel:
|
|
2601
|
-
cancelLabel:
|
|
2602
|
-
variant:
|
|
2603
|
-
isLoading:
|
|
2604
|
-
isConfirmDisabled:
|
|
2605
|
-
loadingStatusLabel:
|
|
2606
|
-
styles: { colors: { border:
|
|
2607
|
-
onConfirm:
|
|
2608
|
-
onCancel:
|
|
2596
|
+
sn && /* @__PURE__ */ G(S, {
|
|
2597
|
+
confirmLabel: on.confirmLabel,
|
|
2598
|
+
cancelLabel: an,
|
|
2599
|
+
variant: on.variant,
|
|
2600
|
+
isLoading: St,
|
|
2601
|
+
isConfirmDisabled: cn,
|
|
2602
|
+
loadingStatusLabel: on.loadingStatusLabel,
|
|
2603
|
+
styles: { colors: { border: V?.confirmFooterBorder } },
|
|
2604
|
+
onConfirm: Vt,
|
|
2605
|
+
onCancel: Bt
|
|
2609
2606
|
}),
|
|
2610
|
-
!
|
|
2607
|
+
!sn && Be && /* @__PURE__ */ G(_t, {
|
|
2611
2608
|
version: e.version,
|
|
2612
|
-
hasExistingPublicationInFolder:
|
|
2613
|
-
isSubmitDisabled:
|
|
2614
|
-
isSubmitLoading:
|
|
2615
|
-
onCancel:
|
|
2616
|
-
onSubmit:
|
|
2609
|
+
hasExistingPublicationInFolder: W.hasExistingPublicationInFolder,
|
|
2610
|
+
isSubmitDisabled: pt.isSubmitDisabled,
|
|
2611
|
+
isSubmitLoading: pt.isSubmitLoading,
|
|
2612
|
+
onCancel: Wt,
|
|
2613
|
+
onSubmit: Gt,
|
|
2617
2614
|
labels: A
|
|
2618
2615
|
})
|
|
2619
2616
|
]
|
|
@@ -2634,18 +2631,18 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
2634
2631
|
cardLeaving: "_cardLeaving_14qfn_54",
|
|
2635
2632
|
cardFadeOut: "_cardFadeOut_14qfn_1"
|
|
2636
2633
|
}, wr = ({ 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 }) => {
|
|
2637
|
-
let [m, h] =
|
|
2634
|
+
let [m, h] = L(t), [g, _] = L(!1), v = (t) => {
|
|
2638
2635
|
t.stopPropagation();
|
|
2639
2636
|
let r = !m;
|
|
2640
2637
|
h(r), r ? n?.(e.id, r) : _(!0);
|
|
2641
|
-
}, y = i && !g ? () => i(e) : void 0, b =
|
|
2638
|
+
}, y = i && !g ? () => i(e) : void 0, b = N((t) => {
|
|
2642
2639
|
!i || g || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), i(e));
|
|
2643
2640
|
}, [
|
|
2644
2641
|
i,
|
|
2645
2642
|
e,
|
|
2646
2643
|
g
|
|
2647
2644
|
]);
|
|
2648
|
-
return /* @__PURE__ */
|
|
2645
|
+
return /* @__PURE__ */ K(me, {
|
|
2649
2646
|
"data-card-id": e.id,
|
|
2650
2647
|
role: y == null ? void 0 : "button",
|
|
2651
2648
|
tabIndex: y == null ? void 0 : 0,
|
|
@@ -2657,15 +2654,15 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
2657
2654
|
t.currentTarget === t.target && n?.(e.id, !1);
|
|
2658
2655
|
} : void 0,
|
|
2659
2656
|
children: [
|
|
2660
|
-
f && /* @__PURE__ */
|
|
2661
|
-
size:
|
|
2657
|
+
f && /* @__PURE__ */ G(Je, {
|
|
2658
|
+
size: R.SM,
|
|
2662
2659
|
className: M("absolute end-3 top-3 shrink-0", Cr.selectedCheck),
|
|
2663
2660
|
"aria-hidden": !0,
|
|
2664
|
-
stroke:
|
|
2661
|
+
stroke: z
|
|
2665
2662
|
}),
|
|
2666
|
-
/* @__PURE__ */
|
|
2663
|
+
/* @__PURE__ */ G("div", {
|
|
2667
2664
|
className: "flex min-w-0 flex-1 flex-col items-start gap-1",
|
|
2668
|
-
children: /* @__PURE__ */
|
|
2665
|
+
children: /* @__PURE__ */ G(Rt, {
|
|
2669
2666
|
icon: e.iconUrl,
|
|
2670
2667
|
type: e.type,
|
|
2671
2668
|
name: e.name,
|
|
@@ -2682,15 +2679,15 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
2682
2679
|
lastUsedClassName: c
|
|
2683
2680
|
}
|
|
2684
2681
|
},
|
|
2685
|
-
iconOverlay: /* @__PURE__ */
|
|
2682
|
+
iconOverlay: /* @__PURE__ */ G(Bt, {
|
|
2686
2683
|
credentials: e.credentials,
|
|
2687
2684
|
loggedOutLabel: p
|
|
2688
2685
|
})
|
|
2689
2686
|
})
|
|
2690
2687
|
}),
|
|
2691
|
-
r?.(e) !== !1 && /* @__PURE__ */
|
|
2688
|
+
r?.(e) !== !1 && /* @__PURE__ */ G(Ht, {
|
|
2692
2689
|
isStarred: m,
|
|
2693
|
-
size:
|
|
2690
|
+
size: be.Small,
|
|
2694
2691
|
onClick: v,
|
|
2695
2692
|
ariaLabel: m ? d : u,
|
|
2696
2693
|
className: "self-end"
|
|
@@ -2719,49 +2716,49 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
2719
2716
|
"--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
|
|
2720
2717
|
"--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
|
|
2721
2718
|
"--cat-fav-page-nav-bg": o?.colors?.pageNavBackground
|
|
2722
|
-
}), v =
|
|
2719
|
+
}), v = F(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = L(1), x = Tt(), S = x * Tr, C = (y - 1) * S, w = F(() => v.slice(C, C + S), [
|
|
2723
2720
|
v,
|
|
2724
2721
|
C,
|
|
2725
2722
|
S
|
|
2726
|
-
]), T = Math.ceil(v.length / S), E = t ?? e.length, D =
|
|
2727
|
-
|
|
2723
|
+
]), T = Math.ceil(v.length / S), E = t ?? e.length, D = I(null), O = I(null), k = I(null), [A, te] = L(), [ne, re] = L(), ie = I(x);
|
|
2724
|
+
P(() => {
|
|
2728
2725
|
ie.current !== x && (ie.current = x, b(1), te(void 0), re(void 0));
|
|
2729
|
-
}, [x]),
|
|
2726
|
+
}, [x]), P(() => {
|
|
2730
2727
|
y > T && T > 0 && b(T);
|
|
2731
|
-
}, [y, T]),
|
|
2728
|
+
}, [y, T]), P(() => {
|
|
2732
2729
|
T <= 1 && (A !== void 0 || ne !== void 0) && (te(void 0), re(void 0));
|
|
2733
2730
|
}, [
|
|
2734
2731
|
T,
|
|
2735
2732
|
A,
|
|
2736
2733
|
ne
|
|
2737
|
-
]),
|
|
2734
|
+
]), ce(() => {
|
|
2738
2735
|
!k.current || !O.current || T <= 1 || y !== 1 || A !== void 0 || (te(k.current.offsetHeight), re(O.current.offsetHeight));
|
|
2739
2736
|
}, [
|
|
2740
2737
|
T,
|
|
2741
2738
|
y,
|
|
2742
2739
|
A
|
|
2743
2740
|
]);
|
|
2744
|
-
let
|
|
2745
|
-
return
|
|
2741
|
+
let ae = I(/* @__PURE__ */ new Map()), oe = I(y), N = I(x), se = I(0), le = I(!1);
|
|
2742
|
+
return ce(() => {
|
|
2746
2743
|
if (!k.current || s) return;
|
|
2747
|
-
if (D.current && !
|
|
2744
|
+
if (D.current && !le.current) {
|
|
2748
2745
|
let e = D.current;
|
|
2749
2746
|
e.style.height = "", e.style.transition = "";
|
|
2750
2747
|
}
|
|
2751
|
-
let e =
|
|
2752
|
-
|
|
2748
|
+
let e = oe.current !== y, t = N.current !== x;
|
|
2749
|
+
oe.current = y, N.current = x;
|
|
2753
2750
|
let n = k.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
|
|
2754
2751
|
if (n.forEach((e) => {
|
|
2755
2752
|
r.set(e.dataset.cardId, Er(e));
|
|
2756
2753
|
}), !e && !t) {
|
|
2757
|
-
let e = O.current, t =
|
|
2754
|
+
let e = O.current, t = se.current, i = 0;
|
|
2758
2755
|
if (e) {
|
|
2759
2756
|
let t = e.style.height;
|
|
2760
2757
|
t && (e.style.height = ""), i = e.offsetHeight, t && (e.style.height = t);
|
|
2761
2758
|
}
|
|
2762
2759
|
let a = e != null && t > 0 && Math.abs(i - t) > 2, o = i > t ? 280 : 220, s = [];
|
|
2763
2760
|
if (n.forEach((e) => {
|
|
2764
|
-
let t = e.dataset.cardId, n =
|
|
2761
|
+
let t = e.dataset.cardId, n = ae.current.get(t), i = r.get(t);
|
|
2765
2762
|
if (!n || !i) return;
|
|
2766
2763
|
let o = n.left - i.left, c = n.top - i.top;
|
|
2767
2764
|
!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));
|
|
@@ -2777,36 +2774,36 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
2777
2774
|
e.addEventListener("transitionend", t);
|
|
2778
2775
|
}
|
|
2779
2776
|
}
|
|
2780
|
-
if (
|
|
2777
|
+
if (ae.current = r, O.current) {
|
|
2781
2778
|
let e = O.current, t = e.style.height ? parseFloat(e.style.height) : NaN;
|
|
2782
|
-
|
|
2779
|
+
se.current = Number.isNaN(t) ? e.offsetHeight : t;
|
|
2783
2780
|
}
|
|
2784
2781
|
}, [
|
|
2785
2782
|
w,
|
|
2786
2783
|
y,
|
|
2787
2784
|
x,
|
|
2788
2785
|
s
|
|
2789
|
-
]),
|
|
2786
|
+
]), ce(() => {
|
|
2790
2787
|
let e = D.current;
|
|
2791
2788
|
if (!e) return;
|
|
2792
2789
|
let t = e.offsetHeight;
|
|
2793
2790
|
if (t === 0) return;
|
|
2794
|
-
|
|
2791
|
+
le.current = !0, e.style.height = "0px", e.offsetHeight, e.style.transition = "height 300ms cubic-bezier(0, 0, 0.2, 1)", e.style.height = `${t}px`;
|
|
2795
2792
|
let n = (t) => {
|
|
2796
2793
|
t.target !== e || t.propertyName !== "height" || r();
|
|
2797
2794
|
}, r = () => {
|
|
2798
|
-
|
|
2795
|
+
le.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
|
|
2799
2796
|
}, i = setTimeout(r, 400);
|
|
2800
2797
|
return e.addEventListener("transitionend", n), () => {
|
|
2801
2798
|
clearTimeout(i), e.removeEventListener("transitionend", n);
|
|
2802
2799
|
};
|
|
2803
|
-
}, []),
|
|
2800
|
+
}, []), ce(() => {
|
|
2804
2801
|
if (!s || !D.current) return;
|
|
2805
2802
|
let e = D.current, t = e.offsetHeight;
|
|
2806
2803
|
t !== 0 && (e.style.height = `${t}px`, e.offsetHeight, e.style.transition = "height 260ms ease-in", e.style.height = "0px");
|
|
2807
|
-
}, [s]), /* @__PURE__ */
|
|
2804
|
+
}, [s]), /* @__PURE__ */ G("div", {
|
|
2808
2805
|
ref: D,
|
|
2809
|
-
children: /* @__PURE__ */
|
|
2806
|
+
children: /* @__PURE__ */ K("section", {
|
|
2810
2807
|
ref: O,
|
|
2811
2808
|
className: M("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", Cr.section, s && Cr.sectionLeaving),
|
|
2812
2809
|
style: {
|
|
@@ -2816,28 +2813,28 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
2816
2813
|
onAnimationEnd: (e) => {
|
|
2817
2814
|
e.target === O.current && s && c?.();
|
|
2818
2815
|
},
|
|
2819
|
-
children: [/* @__PURE__ */
|
|
2816
|
+
children: [/* @__PURE__ */ G(ee, {
|
|
2820
2817
|
title: n,
|
|
2821
2818
|
postfix: E,
|
|
2822
2819
|
titleClassName: M(h, Cr.titleText),
|
|
2823
2820
|
postfixClassName: M(g, Cr.countText),
|
|
2824
|
-
trailing: T > 1 ? /* @__PURE__ */
|
|
2821
|
+
trailing: T > 1 ? /* @__PURE__ */ K("div", {
|
|
2825
2822
|
className: M("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", Cr.pageNav),
|
|
2826
2823
|
children: [
|
|
2827
|
-
/* @__PURE__ */
|
|
2828
|
-
size:
|
|
2824
|
+
/* @__PURE__ */ G(B, {
|
|
2825
|
+
size: be.Small,
|
|
2829
2826
|
"aria-label": l,
|
|
2830
2827
|
disabled: y === 1,
|
|
2831
2828
|
onClick: () => b((e) => e - 1),
|
|
2832
2829
|
className: M("rounded-full", Cr.navBtn),
|
|
2833
|
-
icon: /* @__PURE__ */
|
|
2830
|
+
icon: /* @__PURE__ */ G(Xe, {
|
|
2834
2831
|
size: 14,
|
|
2835
2832
|
"aria-hidden": !0,
|
|
2836
2833
|
className: "rtl:scale-x-[-1]",
|
|
2837
|
-
stroke:
|
|
2834
|
+
stroke: z
|
|
2838
2835
|
})
|
|
2839
2836
|
}),
|
|
2840
|
-
/* @__PURE__ */
|
|
2837
|
+
/* @__PURE__ */ K("span", {
|
|
2841
2838
|
className: M("min-w-[32px] select-none px-1 text-center", g, Cr.countText),
|
|
2842
2839
|
children: [
|
|
2843
2840
|
y,
|
|
@@ -2845,29 +2842,29 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
2845
2842
|
T
|
|
2846
2843
|
]
|
|
2847
2844
|
}),
|
|
2848
|
-
/* @__PURE__ */
|
|
2849
|
-
size:
|
|
2845
|
+
/* @__PURE__ */ G(B, {
|
|
2846
|
+
size: be.Small,
|
|
2850
2847
|
"aria-label": u,
|
|
2851
2848
|
disabled: y === T,
|
|
2852
2849
|
onClick: () => b((e) => e + 1),
|
|
2853
2850
|
className: M("rounded-full", Cr.navBtn),
|
|
2854
|
-
icon: /* @__PURE__ */
|
|
2851
|
+
icon: /* @__PURE__ */ G(Ze, {
|
|
2855
2852
|
size: 14,
|
|
2856
2853
|
"aria-hidden": !0,
|
|
2857
2854
|
className: "rtl:scale-x-[-1]",
|
|
2858
|
-
stroke:
|
|
2855
|
+
stroke: z
|
|
2859
2856
|
})
|
|
2860
2857
|
})
|
|
2861
2858
|
]
|
|
2862
2859
|
}) : void 0
|
|
2863
|
-
}), /* @__PURE__ */
|
|
2860
|
+
}), /* @__PURE__ */ G("div", {
|
|
2864
2861
|
ref: k,
|
|
2865
2862
|
className: M("grid content-start gap-5", Cr.gridPage),
|
|
2866
2863
|
style: {
|
|
2867
2864
|
gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
|
|
2868
2865
|
minHeight: A
|
|
2869
2866
|
},
|
|
2870
|
-
children: w.map((e) => /* @__PURE__ */
|
|
2867
|
+
children: w.map((e) => /* @__PURE__ */ G(wr, {
|
|
2871
2868
|
item: e,
|
|
2872
2869
|
onToggle: r,
|
|
2873
2870
|
isFavoriteVisible: i,
|
|
@@ -2889,35 +2886,35 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
2889
2886
|
selectedCheck: "_selectedCheck_lksnp_47",
|
|
2890
2887
|
starToggleOff: "_starToggleOff_lksnp_51",
|
|
2891
2888
|
selectedRow: "_selectedRow_lksnp_64"
|
|
2892
|
-
}, kr = ({ data: e }) => e ? /* @__PURE__ */
|
|
2889
|
+
}, kr = ({ data: e }) => e ? /* @__PURE__ */ G("div", {
|
|
2893
2890
|
className: "flex h-full items-center",
|
|
2894
|
-
children: /* @__PURE__ */
|
|
2891
|
+
children: /* @__PURE__ */ G(D, { type: e.type })
|
|
2895
2892
|
}) : null, Ar = " / ", jr = ({ data: e, context: t }) => {
|
|
2896
2893
|
if (!e || e.folder.length === 0) return null;
|
|
2897
2894
|
let n = e.folder.join(Ar), 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";
|
|
2898
|
-
return /* @__PURE__ */
|
|
2895
|
+
return /* @__PURE__ */ K("div", {
|
|
2899
2896
|
className: "flex h-full w-full min-w-0 items-center gap-1.5",
|
|
2900
2897
|
children: [
|
|
2901
|
-
/* @__PURE__ */
|
|
2902
|
-
size:
|
|
2903
|
-
stroke:
|
|
2898
|
+
/* @__PURE__ */ G(tt, {
|
|
2899
|
+
size: R.SM,
|
|
2900
|
+
stroke: z,
|
|
2904
2901
|
className: M("shrink-0", Or.folderIcon),
|
|
2905
2902
|
"aria-hidden": !0
|
|
2906
2903
|
}),
|
|
2907
|
-
/* @__PURE__ */
|
|
2908
|
-
tooltip: /* @__PURE__ */
|
|
2904
|
+
/* @__PURE__ */ G(Ue, {
|
|
2905
|
+
tooltip: /* @__PURE__ */ G("span", {
|
|
2909
2906
|
className: a,
|
|
2910
2907
|
children: n
|
|
2911
2908
|
}),
|
|
2912
2909
|
hideTooltip: !i,
|
|
2913
2910
|
triggerClassName: "min-w-0 flex-1",
|
|
2914
|
-
children: /* @__PURE__ */
|
|
2911
|
+
children: /* @__PURE__ */ G(xe, {
|
|
2915
2912
|
text: r,
|
|
2916
2913
|
className: o,
|
|
2917
2914
|
hideTooltip: i
|
|
2918
2915
|
})
|
|
2919
2916
|
}),
|
|
2920
|
-
i && /* @__PURE__ */
|
|
2917
|
+
i && /* @__PURE__ */ G("span", {
|
|
2921
2918
|
className: "sr-only",
|
|
2922
2919
|
children: n
|
|
2923
2920
|
})
|
|
@@ -2925,41 +2922,41 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
2925
2922
|
});
|
|
2926
2923
|
}, Mr = ({ data: e, context: t }) => {
|
|
2927
2924
|
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;
|
|
2928
|
-
return e ? /* @__PURE__ */
|
|
2925
|
+
return e ? /* @__PURE__ */ K("div", {
|
|
2929
2926
|
className: "flex h-full w-full min-w-0 items-center gap-2.5",
|
|
2930
|
-
children: [/* @__PURE__ */
|
|
2927
|
+
children: [/* @__PURE__ */ K("div", {
|
|
2931
2928
|
className: "relative shrink-0",
|
|
2932
|
-
children: [/* @__PURE__ */
|
|
2929
|
+
children: [/* @__PURE__ */ G(T, {
|
|
2933
2930
|
src: e.iconUrl,
|
|
2934
2931
|
size: 36,
|
|
2935
2932
|
initialsName: e.name,
|
|
2936
2933
|
styles: { badgeClassName: "rounded-[10px]" }
|
|
2937
|
-
}), /* @__PURE__ */
|
|
2934
|
+
}), /* @__PURE__ */ G(Bt, {
|
|
2938
2935
|
credentials: e.credentials,
|
|
2939
2936
|
loggedOutLabel: t?.credentialsBadgeLoggedOutLabel
|
|
2940
2937
|
})]
|
|
2941
|
-
}), /* @__PURE__ */
|
|
2938
|
+
}), /* @__PURE__ */ G(ee, {
|
|
2942
2939
|
title: e.name,
|
|
2943
2940
|
postfix: e.version,
|
|
2944
2941
|
postfixClassName: a,
|
|
2945
2942
|
query: n,
|
|
2946
2943
|
titleClassName: i,
|
|
2947
2944
|
className: "min-w-0 flex-1 items-baseline gap-1.5",
|
|
2948
|
-
trailing: o ? /* @__PURE__ */
|
|
2949
|
-
size:
|
|
2945
|
+
trailing: o ? /* @__PURE__ */ G(Je, {
|
|
2946
|
+
size: R.SM,
|
|
2950
2947
|
className: M("shrink-0", Or.selectedCheck),
|
|
2951
2948
|
"aria-hidden": !0,
|
|
2952
|
-
stroke:
|
|
2949
|
+
stroke: z
|
|
2953
2950
|
}) : void 0
|
|
2954
2951
|
})]
|
|
2955
2952
|
}) : null;
|
|
2956
2953
|
}, Nr = ({ data: e, context: t }) => {
|
|
2957
|
-
let [n, r] =
|
|
2958
|
-
return
|
|
2954
|
+
let [n, r] = L(e?.isStarred ?? !1);
|
|
2955
|
+
return P(() => {
|
|
2959
2956
|
r(e?.isStarred ?? !1);
|
|
2960
|
-
}, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */
|
|
2957
|
+
}, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ G("div", {
|
|
2961
2958
|
className: "flex size-full items-center justify-end",
|
|
2962
|
-
children: /* @__PURE__ */
|
|
2959
|
+
children: /* @__PURE__ */ G(Ht, {
|
|
2963
2960
|
isStarred: n,
|
|
2964
2961
|
onClick: (i) => {
|
|
2965
2962
|
i.stopPropagation();
|
|
@@ -2969,9 +2966,9 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
2969
2966
|
className: n ? void 0 : Or.starToggleOff
|
|
2970
2967
|
})
|
|
2971
2968
|
});
|
|
2972
|
-
}, Pr = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */
|
|
2969
|
+
}, Pr = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ G("div", {
|
|
2973
2970
|
className: "flex h-full w-full min-w-0 items-center",
|
|
2974
|
-
children: /* @__PURE__ */
|
|
2971
|
+
children: /* @__PURE__ */ G(qt, { topics: e.topics })
|
|
2975
2972
|
}), Fr = {
|
|
2976
2973
|
folder: (e) => e !== x.Model,
|
|
2977
2974
|
tags: () => !0,
|
|
@@ -3036,10 +3033,10 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3036
3033
|
cellRenderer: Nr
|
|
3037
3034
|
}
|
|
3038
3035
|
];
|
|
3039
|
-
}, Rr = 60, zr = {}, Br = (e) => e.id, Vr = (e) => e.items.length === 0 ? /* @__PURE__ */
|
|
3040
|
-
className:
|
|
3041
|
-
children: /* @__PURE__ */
|
|
3042
|
-
}) : /* @__PURE__ */
|
|
3036
|
+
}, Rr = 60, zr = {}, Br = (e) => e.id, Vr = (e) => e.items.length === 0 ? /* @__PURE__ */ G("div", {
|
|
3037
|
+
className: We("flex size-full flex-col items-center justify-center", Et.listView),
|
|
3038
|
+
children: /* @__PURE__ */ G(ne, { label: e.emptyStateTitle ?? "No results" })
|
|
3039
|
+
}) : /* @__PURE__ */ G(Hr, { ...e }), Hr = ({ 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 }) => {
|
|
3043
3040
|
let m = a?.typography ?? zr, h = a?.colors, g = {
|
|
3044
3041
|
"--cat-list-bg": h?.background,
|
|
3045
3042
|
"--cat-list-border": h?.border,
|
|
@@ -3052,13 +3049,13 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3052
3049
|
"--cat-list-selected-bg": h?.selectedRowBackground,
|
|
3053
3050
|
"--cat-list-selected-check": h?.selectedRowCheckIcon,
|
|
3054
3051
|
...l == null ? {} : { "--list-header-sticky-top": `${l}px` }
|
|
3055
|
-
}, _ =
|
|
3052
|
+
}, _ = I(null), v = N((e) => {
|
|
3056
3053
|
_.current = e;
|
|
3057
|
-
}, []), y =
|
|
3054
|
+
}, []), y = F(() => Lr(t, f, p), [
|
|
3058
3055
|
t,
|
|
3059
3056
|
f,
|
|
3060
3057
|
p
|
|
3061
|
-
]), b =
|
|
3058
|
+
]), b = F(() => ({
|
|
3062
3059
|
domLayout: "autoHeight",
|
|
3063
3060
|
rowHeight: Rr,
|
|
3064
3061
|
animateRows: !1,
|
|
@@ -3091,27 +3088,27 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3091
3088
|
d,
|
|
3092
3089
|
f,
|
|
3093
3090
|
c
|
|
3094
|
-
]), { containerRef: x, startRow: S, endRow: C } = Pt(e.length, Rr), w =
|
|
3091
|
+
]), { containerRef: x, startRow: S, endRow: C } = Pt(e.length, Rr), w = F(() => e.slice(S, C), [
|
|
3095
3092
|
e,
|
|
3096
3093
|
S,
|
|
3097
3094
|
C
|
|
3098
3095
|
]);
|
|
3099
|
-
return
|
|
3096
|
+
return P(() => {
|
|
3100
3097
|
_.current?.refreshCells({ force: !0 });
|
|
3101
|
-
}, [n]),
|
|
3098
|
+
}, [n]), P(() => {
|
|
3102
3099
|
_.current?.redrawRows();
|
|
3103
|
-
}, [u]), /* @__PURE__ */
|
|
3100
|
+
}, [u]), /* @__PURE__ */ G("div", {
|
|
3104
3101
|
style: g,
|
|
3105
|
-
className:
|
|
3106
|
-
children: /* @__PURE__ */
|
|
3102
|
+
className: We("w-full rounded-xl border", Or.listContainer, Et.listView),
|
|
3103
|
+
children: /* @__PURE__ */ K("div", {
|
|
3107
3104
|
ref: x,
|
|
3108
|
-
className:
|
|
3105
|
+
className: We("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", Or.gridClip),
|
|
3109
3106
|
children: [
|
|
3110
|
-
S > 0 && /* @__PURE__ */
|
|
3107
|
+
S > 0 && /* @__PURE__ */ G("div", {
|
|
3111
3108
|
style: { height: S * Rr },
|
|
3112
3109
|
"aria-hidden": !0
|
|
3113
3110
|
}),
|
|
3114
|
-
/* @__PURE__ */
|
|
3111
|
+
/* @__PURE__ */ G(xt, {
|
|
3115
3112
|
columnDefs: y,
|
|
3116
3113
|
rowData: w,
|
|
3117
3114
|
getRowId: Br,
|
|
@@ -3122,7 +3119,7 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3122
3119
|
additionalGridOptions: b,
|
|
3123
3120
|
ariaLabel: r
|
|
3124
3121
|
}),
|
|
3125
|
-
C < e.length && /* @__PURE__ */
|
|
3122
|
+
C < e.length && /* @__PURE__ */ G("div", {
|
|
3126
3123
|
style: { height: (e.length - C) * Rr },
|
|
3127
3124
|
"aria-hidden": !0
|
|
3128
3125
|
})
|
|
@@ -3148,7 +3145,7 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3148
3145
|
let n = new Set(t);
|
|
3149
3146
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
3150
3147
|
}, Kr = ({ 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 }) => {
|
|
3151
|
-
let f = (r ?? !1) || e.size > 0, [p, m] =
|
|
3148
|
+
let f = (r ?? !1) || e.size > 0, [p, m] = L(!1), h = j({
|
|
3152
3149
|
"--cat-filter-btn-bg": d?.buttonBackground,
|
|
3153
3150
|
"--cat-filter-btn-border": d?.buttonBorder,
|
|
3154
3151
|
"--cat-filter-btn-border-hover": d?.buttonBorderHover,
|
|
@@ -3164,19 +3161,19 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3164
3161
|
"--cat-filter-section-label": d?.sectionLabel,
|
|
3165
3162
|
"--cat-filter-divider": d?.divider,
|
|
3166
3163
|
"--cat-filter-footer-border": d?.footerBorder
|
|
3167
|
-
}), g =
|
|
3168
|
-
|
|
3164
|
+
}), g = F(() => n == null ? [] : [...n].sort(), [n]), _ = Wr(e, n, r, a, s), [v, y] = L(() => new Set(e)), [b, x] = L(r ?? !1);
|
|
3165
|
+
P(() => {
|
|
3169
3166
|
p && (y(new Set(e)), x(r ?? !1));
|
|
3170
3167
|
}, [
|
|
3171
3168
|
p,
|
|
3172
3169
|
e,
|
|
3173
3170
|
r
|
|
3174
3171
|
]);
|
|
3175
|
-
let S = g.length + 1, [C, w] =
|
|
3172
|
+
let S = g.length + 1, [C, w] = L(-1), T = I([]), E = I(null), D = N((e) => {
|
|
3176
3173
|
let t = (e + S) % S;
|
|
3177
3174
|
w(t), T.current[t]?.focus();
|
|
3178
3175
|
}, [S]);
|
|
3179
|
-
|
|
3176
|
+
P(() => {
|
|
3180
3177
|
if (!p) {
|
|
3181
3178
|
w(-1);
|
|
3182
3179
|
return;
|
|
@@ -3195,13 +3192,13 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3195
3192
|
}, te = () => {
|
|
3196
3193
|
t(/* @__PURE__ */ new Set()), i?.(!1), O(!1);
|
|
3197
3194
|
};
|
|
3198
|
-
return /* @__PURE__ */
|
|
3195
|
+
return /* @__PURE__ */ G(ve, {
|
|
3199
3196
|
matchReferenceWidth: !1,
|
|
3200
3197
|
placement: "bottom-start",
|
|
3201
3198
|
open: p,
|
|
3202
3199
|
onOpenChange: O,
|
|
3203
3200
|
listClassName: "!bg-transparent !shadow-none !p-0",
|
|
3204
|
-
renderOverlay: () => /* @__PURE__ */
|
|
3201
|
+
renderOverlay: () => /* @__PURE__ */ K("div", {
|
|
3205
3202
|
role: "menu",
|
|
3206
3203
|
"aria-label": s,
|
|
3207
3204
|
tabIndex: -1,
|
|
@@ -3212,10 +3209,10 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3212
3209
|
className: M("flex min-w-[360px] flex-col rounded-xl p-[6px]", Ur.overlay),
|
|
3213
3210
|
onKeyDown: k,
|
|
3214
3211
|
children: [
|
|
3215
|
-
/* @__PURE__ */
|
|
3212
|
+
/* @__PURE__ */ G(ke, {
|
|
3216
3213
|
role: "menuitemcheckbox",
|
|
3217
3214
|
"aria-checked": b,
|
|
3218
|
-
mark:
|
|
3215
|
+
mark: Ae.Checkbox,
|
|
3219
3216
|
selected: b,
|
|
3220
3217
|
label: a,
|
|
3221
3218
|
labelClassName: M(Ur.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
@@ -3226,25 +3223,25 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3226
3223
|
},
|
|
3227
3224
|
onClick: () => x(!b)
|
|
3228
3225
|
}),
|
|
3229
|
-
g.length > 0 && /* @__PURE__ */
|
|
3230
|
-
/* @__PURE__ */
|
|
3226
|
+
g.length > 0 && /* @__PURE__ */ K(gt, { children: [
|
|
3227
|
+
/* @__PURE__ */ G("div", {
|
|
3231
3228
|
role: "separator",
|
|
3232
3229
|
className: M("my-1 h-px", Ur.divider),
|
|
3233
3230
|
"aria-hidden": !0
|
|
3234
3231
|
}),
|
|
3235
|
-
/* @__PURE__ */
|
|
3232
|
+
/* @__PURE__ */ G("div", {
|
|
3236
3233
|
className: M("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Ur.sectionLabel),
|
|
3237
3234
|
"aria-hidden": !0,
|
|
3238
3235
|
children: o
|
|
3239
3236
|
}),
|
|
3240
|
-
/* @__PURE__ */
|
|
3237
|
+
/* @__PURE__ */ G("div", {
|
|
3241
3238
|
className: M(re, "flex min-h-0 flex-col gap-1 overflow-y-auto"),
|
|
3242
3239
|
children: g.map((e, t) => {
|
|
3243
3240
|
let n = v.has(e), r = t + 1;
|
|
3244
|
-
return /* @__PURE__ */
|
|
3241
|
+
return /* @__PURE__ */ G(ke, {
|
|
3245
3242
|
role: "menuitemcheckbox",
|
|
3246
3243
|
"aria-checked": n,
|
|
3247
|
-
mark:
|
|
3244
|
+
mark: Ae.Checkbox,
|
|
3248
3245
|
selected: n,
|
|
3249
3246
|
label: e,
|
|
3250
3247
|
labelClassName: Ur.rowLabel,
|
|
@@ -3258,15 +3255,15 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3258
3255
|
})
|
|
3259
3256
|
})
|
|
3260
3257
|
] }),
|
|
3261
|
-
/* @__PURE__ */
|
|
3258
|
+
/* @__PURE__ */ K("div", {
|
|
3262
3259
|
className: M("mt-1 flex shrink-0 items-center px-1 py-3", Ur.footer),
|
|
3263
3260
|
onKeyDown: (e) => {
|
|
3264
3261
|
(e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
|
|
3265
3262
|
},
|
|
3266
|
-
children: [/* @__PURE__ */
|
|
3263
|
+
children: [/* @__PURE__ */ G(Ce, {
|
|
3267
3264
|
label: c,
|
|
3268
3265
|
onClick: te
|
|
3269
|
-
}), /* @__PURE__ */
|
|
3266
|
+
}), /* @__PURE__ */ G(Me, {
|
|
3270
3267
|
label: l,
|
|
3271
3268
|
className: "ms-auto",
|
|
3272
3269
|
onClick: A
|
|
@@ -3274,23 +3271,23 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3274
3271
|
})
|
|
3275
3272
|
]
|
|
3276
3273
|
}),
|
|
3277
|
-
children: /* @__PURE__ */
|
|
3274
|
+
children: /* @__PURE__ */ G(ue, {
|
|
3278
3275
|
ref: E,
|
|
3279
3276
|
"aria-haspopup": "menu",
|
|
3280
3277
|
"aria-expanded": p,
|
|
3281
3278
|
onKeyDown: ee,
|
|
3282
3279
|
style: h,
|
|
3283
|
-
iconBefore: /* @__PURE__ */
|
|
3284
|
-
size:
|
|
3285
|
-
stroke:
|
|
3280
|
+
iconBefore: /* @__PURE__ */ G(H, {
|
|
3281
|
+
size: R.SM,
|
|
3282
|
+
stroke: z,
|
|
3286
3283
|
className: M("shrink-0", Ur.filterBtnFunnel),
|
|
3287
3284
|
"aria-hidden": !0
|
|
3288
3285
|
}),
|
|
3289
3286
|
label: _,
|
|
3290
3287
|
textClassName: M(Ur.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
3291
|
-
iconAfter: /* @__PURE__ */
|
|
3288
|
+
iconAfter: /* @__PURE__ */ G(Ye, {
|
|
3292
3289
|
size: 14,
|
|
3293
|
-
stroke:
|
|
3290
|
+
stroke: z,
|
|
3294
3291
|
className: M("shrink-0 transition-transform duration-150", Ur.filterBtnChevron, p && "rotate-180"),
|
|
3295
3292
|
"aria-hidden": !0
|
|
3296
3293
|
}),
|
|
@@ -3301,28 +3298,28 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3301
3298
|
section: "_section_mh952_1",
|
|
3302
3299
|
divider: "_divider_mh952_5"
|
|
3303
3300
|
}, Jr = ({ 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 }) => {
|
|
3304
|
-
let w = a?.typography?.titleClassName ?? "dial-body-semi-text", T = a?.typography?.countClassName ?? "dial-tiny-semi-text", E =
|
|
3301
|
+
let w = a?.typography?.titleClassName ?? "dial-body-semi-text", T = a?.typography?.countClassName ?? "dial-tiny-semi-text", E = F(() => [{
|
|
3305
3302
|
value: X.Grid,
|
|
3306
|
-
icon: /* @__PURE__ */
|
|
3307
|
-
size:
|
|
3303
|
+
icon: /* @__PURE__ */ G(rt, {
|
|
3304
|
+
size: R.SM,
|
|
3308
3305
|
"aria-hidden": !0,
|
|
3309
|
-
stroke:
|
|
3306
|
+
stroke: z
|
|
3310
3307
|
}),
|
|
3311
3308
|
"aria-label": l
|
|
3312
3309
|
}, {
|
|
3313
3310
|
value: X.Cards,
|
|
3314
|
-
icon: /* @__PURE__ */
|
|
3315
|
-
size:
|
|
3311
|
+
icon: /* @__PURE__ */ G(it, {
|
|
3312
|
+
size: R.SM,
|
|
3316
3313
|
"aria-hidden": !0,
|
|
3317
|
-
stroke:
|
|
3314
|
+
stroke: z
|
|
3318
3315
|
}),
|
|
3319
3316
|
"aria-label": u
|
|
3320
3317
|
}], [l, u]), D = (e) => {
|
|
3321
3318
|
s(e ?? "");
|
|
3322
|
-
}, O = p?.find((e) => e.value === f)?.label ?? h, k =
|
|
3319
|
+
}, O = p?.find((e) => e.value === f)?.label ?? h, k = F(() => (p ?? []).map((e) => ({
|
|
3323
3320
|
key: e.value,
|
|
3324
3321
|
label: e.label,
|
|
3325
|
-
mark:
|
|
3322
|
+
mark: Ae.Check,
|
|
3326
3323
|
checked: e.value === f,
|
|
3327
3324
|
onClick: () => m?.(e.value)
|
|
3328
3325
|
})), [
|
|
@@ -3330,11 +3327,11 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3330
3327
|
f,
|
|
3331
3328
|
m
|
|
3332
3329
|
]);
|
|
3333
|
-
return /* @__PURE__ */
|
|
3330
|
+
return /* @__PURE__ */ K("div", {
|
|
3334
3331
|
className: "flex flex-col gap-3",
|
|
3335
|
-
children: [/* @__PURE__ */
|
|
3332
|
+
children: [/* @__PURE__ */ K("div", {
|
|
3336
3333
|
className: "flex items-center gap-2",
|
|
3337
|
-
children: [i ?? /* @__PURE__ */
|
|
3334
|
+
children: [i ?? /* @__PURE__ */ G(ee, {
|
|
3338
3335
|
title: r,
|
|
3339
3336
|
postfix: e,
|
|
3340
3337
|
titleClassName: w,
|
|
@@ -3345,34 +3342,34 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3345
3342
|
title: a?.colors?.titleText,
|
|
3346
3343
|
count: a?.colors?.countText
|
|
3347
3344
|
}
|
|
3348
|
-
}), /* @__PURE__ */
|
|
3345
|
+
}), /* @__PURE__ */ K("div", {
|
|
3349
3346
|
className: "ms-auto flex shrink-0 items-center gap-2",
|
|
3350
|
-
children: [/* @__PURE__ */
|
|
3347
|
+
children: [/* @__PURE__ */ G(Ie, {
|
|
3351
3348
|
"aria-label": d,
|
|
3352
3349
|
value: t,
|
|
3353
3350
|
onChange: n,
|
|
3354
3351
|
items: E
|
|
3355
|
-
}), p != null && p.length > 0 && /* @__PURE__ */
|
|
3352
|
+
}), p != null && p.length > 0 && /* @__PURE__ */ K(gt, { children: [/* @__PURE__ */ G("div", { className: M("h-4 w-px shrink-0", qr.divider) }), /* @__PURE__ */ G(fe, {
|
|
3356
3353
|
items: k,
|
|
3357
3354
|
label: O,
|
|
3358
|
-
variant:
|
|
3359
|
-
appearance:
|
|
3355
|
+
variant: pe.Primary,
|
|
3356
|
+
appearance: de.Ghost
|
|
3360
3357
|
})] })]
|
|
3361
3358
|
})]
|
|
3362
|
-
}), /* @__PURE__ */
|
|
3359
|
+
}), /* @__PURE__ */ K("div", {
|
|
3363
3360
|
className: "mb-5 flex items-center gap-3",
|
|
3364
|
-
children: [/* @__PURE__ */
|
|
3361
|
+
children: [/* @__PURE__ */ G("div", {
|
|
3365
3362
|
role: "search",
|
|
3366
3363
|
className: "flex-1",
|
|
3367
|
-
children: /* @__PURE__ */
|
|
3364
|
+
children: /* @__PURE__ */ G(Fe, {
|
|
3368
3365
|
value: o,
|
|
3369
3366
|
onChange: D,
|
|
3370
|
-
size:
|
|
3367
|
+
size: be.Large,
|
|
3371
3368
|
wrapperClassName: "dial-kit-input-large",
|
|
3372
3369
|
placeholder: c,
|
|
3373
3370
|
"aria-label": c
|
|
3374
3371
|
})
|
|
3375
|
-
}), /* @__PURE__ */
|
|
3372
|
+
}), /* @__PURE__ */ G(Kr, {
|
|
3376
3373
|
checked: g ?? /* @__PURE__ */ new Set(),
|
|
3377
3374
|
onChange: _ ?? (() => void 0),
|
|
3378
3375
|
values: v,
|
|
@@ -3387,10 +3384,10 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3387
3384
|
});
|
|
3388
3385
|
}, Yr = ({ 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 }) => {
|
|
3389
3386
|
let b = { "--cat-browse-divider": r?.colors?.divider };
|
|
3390
|
-
return /* @__PURE__ */
|
|
3387
|
+
return /* @__PURE__ */ G("section", {
|
|
3391
3388
|
className: M("flex-shrink-0 px-4", qr.section, Et.toolbar),
|
|
3392
3389
|
style: b,
|
|
3393
|
-
children: /* @__PURE__ */
|
|
3390
|
+
children: /* @__PURE__ */ G(Jr, {
|
|
3394
3391
|
styles: r,
|
|
3395
3392
|
query: e,
|
|
3396
3393
|
onQueryChange: t,
|
|
@@ -3419,21 +3416,21 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3419
3416
|
headingTitle: "_headingTitle_1h83l_9"
|
|
3420
3417
|
}, Zr = "w-[320px]", Qr = (e, t) => e.map((e) => ({
|
|
3421
3418
|
...e,
|
|
3422
|
-
label: typeof e.label == "string" ? /* @__PURE__ */
|
|
3419
|
+
label: typeof e.label == "string" ? /* @__PURE__ */ G(we, {
|
|
3423
3420
|
text: e.label,
|
|
3424
3421
|
query: t,
|
|
3425
3422
|
maxLines: 1
|
|
3426
3423
|
}) : e.label,
|
|
3427
3424
|
children: e.children ? Qr(e.children, t) : void 0
|
|
3428
3425
|
})), $r = ({ label: e, options: t, onClick: n, search: r, searchPlaceholder: i = "Search", searchClearLabel: a = "Clear search", noResultsLabel: o = "No results found" }) => {
|
|
3429
|
-
let s =
|
|
3430
|
-
return r ? /* @__PURE__ */
|
|
3426
|
+
let s = I(null), [c, l] = L(!1);
|
|
3427
|
+
return r ? /* @__PURE__ */ G("div", {
|
|
3431
3428
|
ref: s,
|
|
3432
|
-
children: /* @__PURE__ */
|
|
3429
|
+
children: /* @__PURE__ */ G(ve, {
|
|
3433
3430
|
items: t?.length ? Qr(t, r.value) : [{
|
|
3434
3431
|
key: "no-results",
|
|
3435
|
-
type:
|
|
3436
|
-
label: /* @__PURE__ */
|
|
3432
|
+
type: ye.PlainText,
|
|
3433
|
+
label: /* @__PURE__ */ G("span", {
|
|
3437
3434
|
role: "status",
|
|
3438
3435
|
children: o
|
|
3439
3436
|
})
|
|
@@ -3442,27 +3439,27 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3442
3439
|
placement: "bottom-end",
|
|
3443
3440
|
matchReferenceWidth: !1,
|
|
3444
3441
|
listClassName: Zr,
|
|
3445
|
-
menuHeader: /* @__PURE__ */
|
|
3442
|
+
menuHeader: /* @__PURE__ */ G("div", {
|
|
3446
3443
|
className: "sticky -top-1 z-10 bg-layer-raised px-2 pb-1 pt-2",
|
|
3447
|
-
children: /* @__PURE__ */
|
|
3444
|
+
children: /* @__PURE__ */ G(Fe, {
|
|
3448
3445
|
value: r.value,
|
|
3449
3446
|
placeholder: i,
|
|
3450
3447
|
"aria-label": i,
|
|
3451
3448
|
clearLabel: a,
|
|
3452
|
-
size:
|
|
3449
|
+
size: be.Small,
|
|
3453
3450
|
onChange: (e) => r.onChange(e ?? "")
|
|
3454
3451
|
})
|
|
3455
3452
|
}),
|
|
3456
3453
|
onOpenChange: (e) => {
|
|
3457
3454
|
l(e), e || r.onChange("");
|
|
3458
3455
|
},
|
|
3459
|
-
children: /* @__PURE__ */
|
|
3456
|
+
children: /* @__PURE__ */ G(ue, {
|
|
3460
3457
|
label: e,
|
|
3461
|
-
variant:
|
|
3462
|
-
appearance:
|
|
3463
|
-
iconAfter: /* @__PURE__ */
|
|
3464
|
-
size:
|
|
3465
|
-
stroke:
|
|
3458
|
+
variant: pe.Primary,
|
|
3459
|
+
appearance: de.Solid,
|
|
3460
|
+
iconAfter: /* @__PURE__ */ G(Ye, {
|
|
3461
|
+
size: R.SM,
|
|
3462
|
+
stroke: z,
|
|
3466
3463
|
"aria-hidden": !0,
|
|
3467
3464
|
className: M("transition-transform", c && "rotate-180")
|
|
3468
3465
|
}),
|
|
@@ -3470,24 +3467,24 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3470
3467
|
"aria-expanded": c
|
|
3471
3468
|
})
|
|
3472
3469
|
})
|
|
3473
|
-
}) : t?.length ? /* @__PURE__ */
|
|
3470
|
+
}) : t?.length ? /* @__PURE__ */ G("div", {
|
|
3474
3471
|
ref: s,
|
|
3475
|
-
children: /* @__PURE__ */
|
|
3476
|
-
appearance:
|
|
3472
|
+
children: /* @__PURE__ */ G(fe, {
|
|
3473
|
+
appearance: de.Solid,
|
|
3477
3474
|
label: e,
|
|
3478
|
-
variant:
|
|
3475
|
+
variant: pe.Primary,
|
|
3479
3476
|
items: t
|
|
3480
3477
|
})
|
|
3481
|
-
}) : /* @__PURE__ */
|
|
3478
|
+
}) : /* @__PURE__ */ G(Me, {
|
|
3482
3479
|
label: e,
|
|
3483
|
-
iconBefore: /* @__PURE__ */
|
|
3484
|
-
size:
|
|
3485
|
-
stroke:
|
|
3480
|
+
iconBefore: /* @__PURE__ */ G(lt, {
|
|
3481
|
+
size: R.SM,
|
|
3482
|
+
stroke: z
|
|
3486
3483
|
}),
|
|
3487
3484
|
onClick: n
|
|
3488
3485
|
});
|
|
3489
|
-
}, ei = 3, ti = 300, ni = ({ 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: ee, onPublish: k, onPublishSuccess: A, onPublishError: te, onCreatePublishFolder: ne, publishLabels: re, ruleSourceOptions: j, onFetchExistingRules: ie, shareOverlay:
|
|
3490
|
-
let { typography:
|
|
3486
|
+
}, ei = 3, ti = 300, ni = ({ 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: ee, onPublish: k, onPublishSuccess: A, onPublishError: te, onCreatePublishFolder: ne, publishLabels: re, ruleSourceOptions: j, onFetchExistingRules: ie, shareOverlay: ae, isShareVisible: se, isSharePrimary: ce, onFetchDetails: le, renderCredentials: ue, onEdit: de, onDownload: fe, isDownloadVisible: pe, isDownloadPrimary: me, onLoadContentFile: he, onLoadContentFilePreview: ge, renderContentFilePreview: R, renderContentFileTree: z, onDelete: _e, onUnshare: ve, isUnshareVisible: ye, onRevokeShare: be, onFetchRecipientsCount: xe, isRevokeShareVisible: Se, onUnpublish: Ce, isUnpublishVisible: B, onLogin: we, onLogout: Te, onCreateClick: Ee, createOptions: De, createSearch: Oe, hideCreateButton: ke = !1, hidePageTitle: Ae = !1, isReadonly: je = !1, initialViewMode: V = X.Grid, isFullWidth: Me = !1, selectedItemId: Ne, onCardClick: Pe, isLoading: Fe, styles: Ie, detailsTexts: Le, detailsLimitsFooterNote: Re, initialDetailsItemId: ze, sortKey: He, onSortChange: Ue, filterTopics: We, onFilterTopicsChange: Ge, isMyAppsActive: Ke, onMyAppsActiveChange: qe, activeTab: Je, onActiveTabChange: Ye, renderEmptyState: Xe }) => {
|
|
3487
|
+
let { typography: Ze } = Ie ?? {}, Qe = Dt(Ie), $e = c?.pageTitle ?? "Catalog", et = c?.createLabel ?? "Create", H = c?.favoritesTitle ?? "Your favorites", tt = c?.browseTitle ?? "Browse", nt = c?.searchPlaceholder ?? "Search models, tools, agents…", rt = c?.noResultsTitle ?? ((e) => `No results for "${e}"`), it = c?.featuredLabel ?? "Featured", at = c?.gridViewLabel ?? "Grid view", ot = c?.listViewLabel ?? "List view", st = c?.viewToggleLabel ?? "View mode", ct = c?.ariaLabel ?? "Catalog", lt = c?.sortLabel ?? "Sort", ut = [
|
|
3491
3488
|
{
|
|
3492
3489
|
value: s.RecentlyUpdated,
|
|
3493
3490
|
label: c?.sortRecentlyUpdatedLabel ?? "Recently Updated"
|
|
@@ -3500,81 +3497,81 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3500
3497
|
value: s.NameAZ,
|
|
3501
3498
|
label: c?.sortNameAZLabel ?? "Name A-Z"
|
|
3502
3499
|
}
|
|
3503
|
-
], [
|
|
3500
|
+
], [U, dt] = L(""), [W, ft] = L(V), [pt, mt] = L(V === X.Cards ? "shown" : "unmounted"), [ht, _t] = L(s.RecentlyUpdated), [vt, yt] = L(/* @__PURE__ */ new Set()), [bt, xt] = L(!1), q = He ?? ht, J = We ?? vt, St = Ke ?? bt, Y = N((e) => {
|
|
3504
3501
|
let t = e;
|
|
3505
|
-
|
|
3506
|
-
}, [
|
|
3507
|
-
|
|
3508
|
-
}, [
|
|
3509
|
-
|
|
3510
|
-
}, [
|
|
3502
|
+
_t(t), Ue?.(t);
|
|
3503
|
+
}, [Ue]), Ct = N((e) => {
|
|
3504
|
+
yt(e), Ge?.(e);
|
|
3505
|
+
}, [Ge]), wt = N((e) => {
|
|
3506
|
+
xt(e), qe?.(e);
|
|
3507
|
+
}, [qe]), Z = F(() => e.filter((e) => !e.isHidden), [e]), Q = F(() => o.filter((e) => !e.isHidden), [o]), Tt = F(() => n ?? u(Z), [n, Z]), Ot = F(() => t ?? r(Z, c?.tabLabels), [
|
|
3511
3508
|
t,
|
|
3512
3509
|
Z,
|
|
3513
3510
|
c?.tabLabels
|
|
3514
|
-
]), kt = Ot[0]?.id ?? "", [At, jt] =
|
|
3515
|
-
|
|
3511
|
+
]), kt = Ot[0]?.id ?? "", [At, jt] = L(kt);
|
|
3512
|
+
P(() => {
|
|
3516
3513
|
jt((e) => e || kt);
|
|
3517
3514
|
}, [kt]);
|
|
3518
|
-
let Mt =
|
|
3519
|
-
jt(e),
|
|
3520
|
-
}, [
|
|
3521
|
-
|
|
3515
|
+
let Mt = Je ?? At, Nt = N((e) => {
|
|
3516
|
+
jt(e), Ye?.(e);
|
|
3517
|
+
}, [Ye]), [Pt, Ft] = L(Q.length > 0);
|
|
3518
|
+
P(() => {
|
|
3522
3519
|
Q.length > 0 && !Pt && Ft(!0);
|
|
3523
3520
|
}, [Q.length, Pt]);
|
|
3524
|
-
let It =
|
|
3521
|
+
let It = N(() => {
|
|
3525
3522
|
Ft(!1);
|
|
3526
|
-
}, []), Lt = Pt && Q.length === 0, [Rt, zt] =
|
|
3523
|
+
}, []), Lt = Pt && Q.length === 0, [Rt, zt] = L(null), [Bt, Vt] = L(!1), [Ht, Ut] = L(void 0), [Wt, Gt] = L(!1), Kt = I(null), qt = I(0), Jt = N(async (e) => {
|
|
3527
3524
|
Kt.current = e.id;
|
|
3528
3525
|
let t = ++qt.current;
|
|
3529
|
-
if (
|
|
3526
|
+
if (le) {
|
|
3530
3527
|
Gt(!0);
|
|
3531
3528
|
try {
|
|
3532
|
-
let n = await
|
|
3529
|
+
let n = await le(e);
|
|
3533
3530
|
return qt.current === t && Ut(n), n;
|
|
3534
3531
|
} finally {
|
|
3535
3532
|
qt.current === t && Gt(!1);
|
|
3536
3533
|
}
|
|
3537
3534
|
}
|
|
3538
|
-
}, [
|
|
3535
|
+
}, [le]), Yt = N(async (e) => (zt(e), Ut(void 0), Jt(e)), [Jt]), Xt = N(async (e, t) => {
|
|
3539
3536
|
for (let n = 0; n < ei; n++) {
|
|
3540
3537
|
if (Kt.current !== e.id || t(await Jt(e))) return;
|
|
3541
3538
|
n < ei - 1 && await h(ti);
|
|
3542
3539
|
}
|
|
3543
|
-
}, [Jt]), Zt =
|
|
3544
|
-
|
|
3545
|
-
if (!
|
|
3540
|
+
}, [Jt]), Zt = I(null);
|
|
3541
|
+
P(() => {
|
|
3542
|
+
if (!ze) {
|
|
3546
3543
|
Zt.current = null;
|
|
3547
3544
|
return;
|
|
3548
3545
|
}
|
|
3549
|
-
if (Zt.current ===
|
|
3550
|
-
let t = e.find((e) => e.id ===
|
|
3551
|
-
t && (Zt.current =
|
|
3546
|
+
if (Zt.current === ze) return;
|
|
3547
|
+
let t = e.find((e) => e.id === ze);
|
|
3548
|
+
t && (Zt.current = ze, Yt(t));
|
|
3552
3549
|
}, [
|
|
3553
|
-
|
|
3550
|
+
ze,
|
|
3554
3551
|
e,
|
|
3555
3552
|
Yt
|
|
3556
|
-
]),
|
|
3553
|
+
]), P(() => {
|
|
3557
3554
|
if (Rt == null) return;
|
|
3558
3555
|
let t = e.find((e) => e.id === Rt.id);
|
|
3559
3556
|
t && t !== Rt && zt(t);
|
|
3560
3557
|
}, [e, Rt]);
|
|
3561
|
-
let $t =
|
|
3562
|
-
await
|
|
3558
|
+
let $t = N(async (e, t) => {
|
|
3559
|
+
await we?.(e, t), le && await Xt(e, (e) => f(e?.credentials, t.level));
|
|
3563
3560
|
}, [
|
|
3564
|
-
|
|
3565
|
-
|
|
3561
|
+
we,
|
|
3562
|
+
le,
|
|
3566
3563
|
Xt
|
|
3567
|
-
]), en =
|
|
3568
|
-
await
|
|
3564
|
+
]), en = N(async (e, t) => {
|
|
3565
|
+
await Te?.(e, t), le && await Xt(e, (e) => !f(e?.credentials, t.level));
|
|
3569
3566
|
}, [
|
|
3570
|
-
|
|
3571
|
-
|
|
3567
|
+
Te,
|
|
3568
|
+
le,
|
|
3572
3569
|
Xt
|
|
3573
|
-
]), tn =
|
|
3570
|
+
]), tn = N(() => {
|
|
3574
3571
|
Vt(!1), Kt.current = null, qt.current += 1, setTimeout(() => {
|
|
3575
3572
|
zt(null), Ut(void 0), Gt(!1);
|
|
3576
3573
|
}, 300);
|
|
3577
|
-
}, []), nn =
|
|
3574
|
+
}, []), nn = F(() => {
|
|
3578
3575
|
if (Rt == null) return null;
|
|
3579
3576
|
if (Ht == null) return Rt;
|
|
3580
3577
|
let { credentials: e, ...t } = Ht;
|
|
@@ -3583,11 +3580,11 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3583
3580
|
details: t,
|
|
3584
3581
|
credentials: e ?? Rt.credentials
|
|
3585
3582
|
};
|
|
3586
|
-
}, [Rt, Ht]), rn =
|
|
3587
|
-
|
|
3588
|
-
if (pt !== "unmounted" ||
|
|
3583
|
+
}, [Rt, Ht]), rn = F(() => l(Z, q), [Z, q]), an = F(() => a(rn, U), [rn, U]), on = F(() => J.size > 0 ? i(an, J) : an, [an, J]), sn = F(() => St ? _(on) : on, [on, St]), cn = F(() => Mt ? sn.filter((e) => e.type === Mt) : sn, [sn, Mt]);
|
|
3584
|
+
P(() => {
|
|
3585
|
+
if (pt !== "unmounted" || Fe || cn.length === 0) return;
|
|
3589
3586
|
let e = () => {
|
|
3590
|
-
|
|
3587
|
+
oe(() => {
|
|
3591
3588
|
mt((e) => e === "unmounted" ? "prepared" : e);
|
|
3592
3589
|
});
|
|
3593
3590
|
};
|
|
@@ -3599,93 +3596,93 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3599
3596
|
return () => window.clearTimeout(t);
|
|
3600
3597
|
}, [
|
|
3601
3598
|
pt,
|
|
3602
|
-
|
|
3599
|
+
Fe,
|
|
3603
3600
|
cn.length
|
|
3604
3601
|
]);
|
|
3605
3602
|
let ln = Rt != null && Q.some((e) => e.id === Rt.id);
|
|
3606
|
-
|
|
3603
|
+
P(() => {
|
|
3607
3604
|
if (Rt == null) return;
|
|
3608
3605
|
let e = requestAnimationFrame(() => Vt(!0));
|
|
3609
3606
|
return () => cancelAnimationFrame(e);
|
|
3610
3607
|
}, [Rt]);
|
|
3611
|
-
let un =
|
|
3608
|
+
let un = N((e) => {
|
|
3612
3609
|
e === X.Cards && mt("shown"), ft(e);
|
|
3613
|
-
}, []), dn = !
|
|
3610
|
+
}, []), dn = !ke && !je, fn = Pt && !je, pn = U ? rt(U) : "No items", mn = F(() => ({
|
|
3614
3611
|
noResultsTitle: pn,
|
|
3615
|
-
featuredLabel:
|
|
3616
|
-
credentialsBadgeLoggedOutLabel:
|
|
3612
|
+
featuredLabel: it,
|
|
3613
|
+
credentialsBadgeLoggedOutLabel: Le?.credentialsBadgeLoggedOutLabel
|
|
3617
3614
|
}), [
|
|
3618
3615
|
pn,
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
]), hn = !
|
|
3622
|
-
query:
|
|
3616
|
+
it,
|
|
3617
|
+
Le?.credentialsBadgeLoggedOutLabel
|
|
3618
|
+
]), hn = !Fe && cn.length === 0 ? Xe?.({
|
|
3619
|
+
query: U,
|
|
3623
3620
|
activeTab: Mt,
|
|
3624
3621
|
hasTopicFilters: J.size > 0,
|
|
3625
3622
|
isMyAppsActive: St
|
|
3626
3623
|
}) : void 0;
|
|
3627
|
-
return
|
|
3624
|
+
return Fe ? /* @__PURE__ */ G("div", {
|
|
3628
3625
|
className: "flex size-full min-h-0 flex-1 items-center justify-center",
|
|
3629
|
-
children: /* @__PURE__ */
|
|
3630
|
-
}) : /* @__PURE__ */
|
|
3631
|
-
"aria-label":
|
|
3626
|
+
children: /* @__PURE__ */ G(Be, {})
|
|
3627
|
+
}) : /* @__PURE__ */ K("section", {
|
|
3628
|
+
"aria-label": ct,
|
|
3632
3629
|
className: M("flex size-full min-h-0 flex-1 flex-col", Xr.root, Et.root),
|
|
3633
|
-
style:
|
|
3630
|
+
style: Qe,
|
|
3634
3631
|
children: [
|
|
3635
|
-
(!
|
|
3632
|
+
(!Ae || dn) && /* @__PURE__ */ G("div", {
|
|
3636
3633
|
className: M("shrink-0", Xr.heading),
|
|
3637
|
-
children: /* @__PURE__ */
|
|
3634
|
+
children: /* @__PURE__ */ K("div", {
|
|
3638
3635
|
className: "flex h-[64px] w-full items-center justify-between px-8",
|
|
3639
|
-
children: [!
|
|
3640
|
-
className: M(
|
|
3641
|
-
children:
|
|
3642
|
-
}), dn && /* @__PURE__ */
|
|
3643
|
-
label:
|
|
3644
|
-
options:
|
|
3645
|
-
onClick:
|
|
3646
|
-
search:
|
|
3636
|
+
children: [!Ae && /* @__PURE__ */ G("h1", {
|
|
3637
|
+
className: M(Ze?.pageHeadingFontClassName ?? "dial-display2-text", Xr.headingTitle),
|
|
3638
|
+
children: $e
|
|
3639
|
+
}), dn && /* @__PURE__ */ G($r, {
|
|
3640
|
+
label: et,
|
|
3641
|
+
options: De,
|
|
3642
|
+
onClick: Ee,
|
|
3643
|
+
search: Oe,
|
|
3647
3644
|
searchPlaceholder: c?.createSearchPlaceholder,
|
|
3648
3645
|
searchClearLabel: c?.createSearchClearLabel,
|
|
3649
3646
|
noResultsLabel: c?.createNoResultsLabel
|
|
3650
3647
|
})]
|
|
3651
3648
|
})
|
|
3652
3649
|
}),
|
|
3653
|
-
/* @__PURE__ */
|
|
3650
|
+
/* @__PURE__ */ K("div", {
|
|
3654
3651
|
className: "flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto overflow-x-hidden",
|
|
3655
3652
|
children: [
|
|
3656
|
-
fn && /* @__PURE__ */
|
|
3653
|
+
fn && /* @__PURE__ */ G("div", {
|
|
3657
3654
|
className: "w-full px-8",
|
|
3658
|
-
children: /* @__PURE__ */
|
|
3655
|
+
children: /* @__PURE__ */ G(Dr, {
|
|
3659
3656
|
items: Q,
|
|
3660
3657
|
totalCount: Q.length,
|
|
3661
|
-
title:
|
|
3658
|
+
title: H,
|
|
3662
3659
|
onToggleFavorite: p,
|
|
3663
3660
|
isFavoriteVisible: m,
|
|
3664
|
-
onItemClick:
|
|
3661
|
+
onItemClick: Pe ?? Yt,
|
|
3665
3662
|
isLeaving: Lt,
|
|
3666
3663
|
onExitComplete: It,
|
|
3667
|
-
selectedItemId:
|
|
3668
|
-
credentialsBadgeLoggedOutLabel:
|
|
3664
|
+
selectedItemId: Ne,
|
|
3665
|
+
credentialsBadgeLoggedOutLabel: Le?.credentialsBadgeLoggedOutLabel
|
|
3669
3666
|
})
|
|
3670
3667
|
}),
|
|
3671
|
-
/* @__PURE__ */
|
|
3668
|
+
/* @__PURE__ */ G("div", {
|
|
3672
3669
|
className: "w-full px-4 pt-6",
|
|
3673
|
-
children: /* @__PURE__ */
|
|
3670
|
+
children: /* @__PURE__ */ G(Yr, {
|
|
3674
3671
|
totalCount: sn.length,
|
|
3675
|
-
viewMode:
|
|
3672
|
+
viewMode: W,
|
|
3676
3673
|
onViewModeChange: un,
|
|
3677
|
-
sortKey:
|
|
3678
|
-
query:
|
|
3679
|
-
onQueryChange:
|
|
3680
|
-
title:
|
|
3674
|
+
sortKey: q,
|
|
3675
|
+
query: U,
|
|
3676
|
+
onQueryChange: dt,
|
|
3677
|
+
title: tt,
|
|
3681
3678
|
browseHeaderRenderer: d,
|
|
3682
|
-
searchPlaceholder:
|
|
3683
|
-
gridViewLabel:
|
|
3684
|
-
listViewLabel:
|
|
3685
|
-
viewToggleLabel:
|
|
3686
|
-
sortOptions:
|
|
3679
|
+
searchPlaceholder: nt,
|
|
3680
|
+
gridViewLabel: at,
|
|
3681
|
+
listViewLabel: ot,
|
|
3682
|
+
viewToggleLabel: st,
|
|
3683
|
+
sortOptions: ut,
|
|
3687
3684
|
onSortChange: Y,
|
|
3688
|
-
sortLabel:
|
|
3685
|
+
sortLabel: lt,
|
|
3689
3686
|
filters: J,
|
|
3690
3687
|
onFiltersChange: Ct,
|
|
3691
3688
|
filterValues: Tt,
|
|
@@ -3696,9 +3693,9 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3696
3693
|
filterTopicsLabel: c?.filterTopicsLabel
|
|
3697
3694
|
})
|
|
3698
3695
|
}),
|
|
3699
|
-
Ot.length > 1 && /* @__PURE__ */
|
|
3696
|
+
Ot.length > 1 && /* @__PURE__ */ G("div", {
|
|
3700
3697
|
className: "min-w-0 shrink-0 overflow-x-auto px-8",
|
|
3701
|
-
children: /* @__PURE__ */
|
|
3698
|
+
children: /* @__PURE__ */ G(Ve, {
|
|
3702
3699
|
tabs: Ot.map((e) => ({
|
|
3703
3700
|
id: e.id,
|
|
3704
3701
|
label: typeof e.label == "string" ? e.label : String(e.label),
|
|
@@ -3708,52 +3705,52 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3708
3705
|
onTabChange: Nt
|
|
3709
3706
|
})
|
|
3710
3707
|
}),
|
|
3711
|
-
/* @__PURE__ */
|
|
3712
|
-
className: M(cn.length > 0 ? ["min-h-full w-full px-8 py-6", !
|
|
3713
|
-
children: hn ?? /* @__PURE__ */
|
|
3714
|
-
inert:
|
|
3715
|
-
className: M(cn.length > 0 ? "pb-8" : "size-full flex-1",
|
|
3716
|
-
children: /* @__PURE__ */
|
|
3708
|
+
/* @__PURE__ */ G("div", {
|
|
3709
|
+
className: M(cn.length > 0 ? ["min-h-full w-full px-8 py-6", !Me && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", cn.length === 0 && "px-8 py-6"),
|
|
3710
|
+
children: hn ?? /* @__PURE__ */ K(gt, { children: [/* @__PURE__ */ G("div", {
|
|
3711
|
+
inert: W !== X.Grid,
|
|
3712
|
+
className: M(cn.length > 0 ? "pb-8" : "size-full flex-1", W !== X.Grid && "hidden"),
|
|
3713
|
+
children: /* @__PURE__ */ G(Qt, {
|
|
3717
3714
|
items: cn,
|
|
3718
|
-
query:
|
|
3715
|
+
query: U,
|
|
3719
3716
|
onToggleFavorite: p,
|
|
3720
3717
|
isFavoriteVisible: m,
|
|
3721
|
-
onItemClick:
|
|
3718
|
+
onItemClick: Pe ?? Yt,
|
|
3722
3719
|
titles: mn,
|
|
3723
|
-
selectedItemId:
|
|
3724
|
-
isReadonly:
|
|
3725
|
-
isFullWidth:
|
|
3726
|
-
featuredChipStyle:
|
|
3720
|
+
selectedItemId: Ne,
|
|
3721
|
+
isReadonly: je,
|
|
3722
|
+
isFullWidth: Me,
|
|
3723
|
+
featuredChipStyle: Ie?.colors?.featuredChipStyle
|
|
3727
3724
|
})
|
|
3728
|
-
}), pt !== "unmounted" && /* @__PURE__ */
|
|
3729
|
-
inert:
|
|
3730
|
-
className: M("pb-8",
|
|
3731
|
-
children: /* @__PURE__ */
|
|
3725
|
+
}), pt !== "unmounted" && /* @__PURE__ */ G("div", {
|
|
3726
|
+
inert: W !== X.Cards,
|
|
3727
|
+
className: M("pb-8", W !== X.Cards && (pt === "prepared" ? "invisible h-0 overflow-hidden p-0" : "hidden"), cn.length === 0 && W === X.Cards && "h-full"),
|
|
3728
|
+
children: /* @__PURE__ */ G(Vr, {
|
|
3732
3729
|
type: Mt,
|
|
3733
3730
|
items: cn,
|
|
3734
|
-
query:
|
|
3735
|
-
ariaLabel:
|
|
3731
|
+
query: U,
|
|
3732
|
+
ariaLabel: ct,
|
|
3736
3733
|
emptyStateTitle: pn,
|
|
3737
3734
|
onToggleFavorite: p,
|
|
3738
3735
|
isFavoriteVisible: m,
|
|
3739
3736
|
columnVisibility: g,
|
|
3740
|
-
onItemClick:
|
|
3737
|
+
onItemClick: Pe ?? Yt,
|
|
3741
3738
|
stickyHeaderTop: 0,
|
|
3742
|
-
selectedItemId:
|
|
3743
|
-
credentialsBadgeLoggedOutLabel:
|
|
3744
|
-
isReadonly:
|
|
3739
|
+
selectedItemId: Ne,
|
|
3740
|
+
credentialsBadgeLoggedOutLabel: Le?.credentialsBadgeLoggedOutLabel,
|
|
3741
|
+
isReadonly: je
|
|
3745
3742
|
})
|
|
3746
3743
|
})] })
|
|
3747
3744
|
})
|
|
3748
3745
|
]
|
|
3749
3746
|
}),
|
|
3750
|
-
nn != null && /* @__PURE__ */
|
|
3751
|
-
renderCredentials:
|
|
3747
|
+
nn != null && /* @__PURE__ */ G(Sr, {
|
|
3748
|
+
renderCredentials: ue,
|
|
3752
3749
|
item: nn,
|
|
3753
3750
|
isOpen: Bt,
|
|
3754
3751
|
isStarred: ln,
|
|
3755
3752
|
isDetailsLoading: Wt,
|
|
3756
|
-
isReadonly:
|
|
3753
|
+
isReadonly: je,
|
|
3757
3754
|
onClose: tn,
|
|
3758
3755
|
onToggleFavorite: p,
|
|
3759
3756
|
isFavoriteVisible: m,
|
|
@@ -3776,37 +3773,37 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3776
3773
|
publishLabels: re,
|
|
3777
3774
|
ruleSourceOptions: j,
|
|
3778
3775
|
onFetchExistingRules: ie,
|
|
3779
|
-
shareOverlay:
|
|
3780
|
-
isShareVisible:
|
|
3781
|
-
isSharePrimary:
|
|
3782
|
-
onEdit:
|
|
3783
|
-
onDownload:
|
|
3784
|
-
isDownloadVisible:
|
|
3785
|
-
isDownloadPrimary:
|
|
3786
|
-
onLoadContentFile:
|
|
3787
|
-
onLoadContentFilePreview:
|
|
3788
|
-
renderContentFilePreview:
|
|
3789
|
-
renderContentFileTree:
|
|
3790
|
-
onDelete:
|
|
3791
|
-
onUnshare:
|
|
3792
|
-
isUnshareVisible:
|
|
3793
|
-
onRevokeShare:
|
|
3794
|
-
onFetchRecipientsCount:
|
|
3795
|
-
isRevokeShareVisible:
|
|
3796
|
-
onUnpublish:
|
|
3797
|
-
isUnpublishVisible:
|
|
3776
|
+
shareOverlay: ae,
|
|
3777
|
+
isShareVisible: se,
|
|
3778
|
+
isSharePrimary: ce,
|
|
3779
|
+
onEdit: de,
|
|
3780
|
+
onDownload: fe,
|
|
3781
|
+
isDownloadVisible: pe,
|
|
3782
|
+
isDownloadPrimary: me,
|
|
3783
|
+
onLoadContentFile: he,
|
|
3784
|
+
onLoadContentFilePreview: ge,
|
|
3785
|
+
renderContentFilePreview: R,
|
|
3786
|
+
renderContentFileTree: z,
|
|
3787
|
+
onDelete: _e,
|
|
3788
|
+
onUnshare: ve,
|
|
3789
|
+
isUnshareVisible: ye,
|
|
3790
|
+
onRevokeShare: be,
|
|
3791
|
+
onFetchRecipientsCount: xe,
|
|
3792
|
+
isRevokeShareVisible: Se,
|
|
3793
|
+
onUnpublish: Ce,
|
|
3794
|
+
isUnpublishVisible: B,
|
|
3798
3795
|
onLogin: $t,
|
|
3799
3796
|
onLogout: en,
|
|
3800
|
-
texts:
|
|
3801
|
-
limitsFooterNote:
|
|
3802
|
-
styles: { colors: { featuredChipStyle:
|
|
3797
|
+
texts: Le,
|
|
3798
|
+
limitsFooterNote: Re,
|
|
3799
|
+
styles: { colors: { featuredChipStyle: Ie?.colors?.featuredChipStyle } }
|
|
3803
3800
|
})
|
|
3804
3801
|
]
|
|
3805
3802
|
});
|
|
3806
3803
|
}, ri = ({ 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 }) => {
|
|
3807
|
-
let [x, S] =
|
|
3804
|
+
let [x, S] = L(!1), C = v ?? x, w = (e) => {
|
|
3808
3805
|
e && u || (v === void 0 && S(e), y?.(e));
|
|
3809
|
-
}, [T, E] =
|
|
3806
|
+
}, [T, E] = L(""), D = I(null), O = F(() => [...s, ...t].filter((e) => e.label.toLocaleLowerCase().includes(T.toLocaleLowerCase())), [
|
|
3810
3807
|
s,
|
|
3811
3808
|
t,
|
|
3812
3809
|
T
|
|
@@ -3814,50 +3811,50 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3814
3811
|
w(!1), requestAnimationFrame(() => D.current?.focus());
|
|
3815
3812
|
}, k = (e) => {
|
|
3816
3813
|
a(e), ee();
|
|
3817
|
-
}, A = _ ? _(ee) : /* @__PURE__ */
|
|
3814
|
+
}, A = _ ? _(ee) : /* @__PURE__ */ K("div", {
|
|
3818
3815
|
className: M("w-full min-w-0 max-w-full p-3", h),
|
|
3819
3816
|
children: [
|
|
3820
|
-
/* @__PURE__ */
|
|
3817
|
+
/* @__PURE__ */ G(Fe, {
|
|
3821
3818
|
value: T,
|
|
3822
3819
|
onChange: (e) => E(e ?? ""),
|
|
3823
3820
|
placeholder: i.searchPlaceholder,
|
|
3824
3821
|
"aria-label": i.searchAriaLabel
|
|
3825
3822
|
}),
|
|
3826
|
-
/* @__PURE__ */
|
|
3823
|
+
/* @__PURE__ */ G("div", {
|
|
3827
3824
|
role: "listbox",
|
|
3828
3825
|
className: "mt-2 max-h-[min(50dvh,320px)] min-w-0 overflow-y-auto",
|
|
3829
|
-
children: c ? /* @__PURE__ */
|
|
3826
|
+
children: c ? /* @__PURE__ */ G("span", {
|
|
3830
3827
|
role: "status",
|
|
3831
3828
|
children: i.searchPlaceholder
|
|
3832
|
-
}) : l ? /* @__PURE__ */
|
|
3829
|
+
}) : l ? /* @__PURE__ */ G("span", {
|
|
3833
3830
|
role: "alert",
|
|
3834
3831
|
children: i.errorLabel
|
|
3835
|
-
}) : O.length === 0 ? /* @__PURE__ */
|
|
3832
|
+
}) : O.length === 0 ? /* @__PURE__ */ G("span", {
|
|
3836
3833
|
role: "status",
|
|
3837
3834
|
children: i.emptyLabel
|
|
3838
|
-
}) : O.map((t) => /* @__PURE__ */
|
|
3835
|
+
}) : O.map((t) => /* @__PURE__ */ G(ke, {
|
|
3839
3836
|
role: "option",
|
|
3840
3837
|
"aria-selected": t.id === e,
|
|
3841
3838
|
selected: t.id === e,
|
|
3842
|
-
label: /* @__PURE__ */
|
|
3839
|
+
label: /* @__PURE__ */ K("span", {
|
|
3843
3840
|
className: "flex min-w-0 items-center gap-2",
|
|
3844
|
-
children: [t.icon && /* @__PURE__ */
|
|
3841
|
+
children: [t.icon && /* @__PURE__ */ G("span", {
|
|
3845
3842
|
"aria-hidden": !0,
|
|
3846
3843
|
children: t.icon
|
|
3847
|
-
}), /* @__PURE__ */
|
|
3844
|
+
}), /* @__PURE__ */ K("span", {
|
|
3848
3845
|
className: "flex min-w-0 flex-col",
|
|
3849
|
-
children: [/* @__PURE__ */
|
|
3846
|
+
children: [/* @__PURE__ */ G(we, {
|
|
3850
3847
|
text: t.label,
|
|
3851
3848
|
query: T,
|
|
3852
3849
|
maxLines: 2
|
|
3853
|
-
}), t.description && /* @__PURE__ */
|
|
3850
|
+
}), t.description && /* @__PURE__ */ G("span", { children: t.description })]
|
|
3854
3851
|
})]
|
|
3855
3852
|
}),
|
|
3856
3853
|
onClick: () => k(t.id),
|
|
3857
3854
|
className: "h-auto max-w-full py-2"
|
|
3858
3855
|
}, t.id))
|
|
3859
3856
|
}),
|
|
3860
|
-
o && /* @__PURE__ */
|
|
3857
|
+
o && /* @__PURE__ */ G(Ce, {
|
|
3861
3858
|
className: "mt-2 min-h-11 max-w-full",
|
|
3862
3859
|
label: i.browseLabel ?? "",
|
|
3863
3860
|
onClick: () => {
|
|
@@ -3865,7 +3862,7 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3865
3862
|
}
|
|
3866
3863
|
})
|
|
3867
3864
|
]
|
|
3868
|
-
}), te = /* @__PURE__ */
|
|
3865
|
+
}), te = /* @__PURE__ */ G(De, {
|
|
3869
3866
|
onFocus: (e) => {
|
|
3870
3867
|
D.current = e.currentTarget;
|
|
3871
3868
|
},
|
|
@@ -3890,11 +3887,11 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3890
3887
|
className: "cursor-pointer",
|
|
3891
3888
|
iconAfter: g
|
|
3892
3889
|
});
|
|
3893
|
-
return b ? /* @__PURE__ */
|
|
3890
|
+
return b ? /* @__PURE__ */ K(gt, { children: [/* @__PURE__ */ G("div", {
|
|
3894
3891
|
className: "w-full min-w-0",
|
|
3895
3892
|
onClick: () => w(!C),
|
|
3896
3893
|
children: te
|
|
3897
|
-
}), b(A, C, ee)] }) : /* @__PURE__ */
|
|
3894
|
+
}), b(A, C, ee)] }) : /* @__PURE__ */ G(ve, {
|
|
3898
3895
|
open: C,
|
|
3899
3896
|
onOpenChange: w,
|
|
3900
3897
|
disabled: u,
|
|
@@ -3904,14 +3901,14 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3904
3901
|
children: te
|
|
3905
3902
|
});
|
|
3906
3903
|
}, ii = ({ service: e, texts: t, onLogin: n, onLogout: r }) => {
|
|
3907
|
-
let [i, a] =
|
|
3908
|
-
return /* @__PURE__ */
|
|
3904
|
+
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?";
|
|
3905
|
+
return /* @__PURE__ */ K(wn, {
|
|
3909
3906
|
label: e.name,
|
|
3910
3907
|
description: e.description,
|
|
3911
|
-
icon: /* @__PURE__ */
|
|
3912
|
-
size:
|
|
3908
|
+
icon: /* @__PURE__ */ G(ft, {
|
|
3909
|
+
size: R.SM,
|
|
3913
3910
|
"aria-hidden": !0,
|
|
3914
|
-
stroke:
|
|
3911
|
+
stroke: z
|
|
3915
3912
|
}),
|
|
3916
3913
|
status: e.status,
|
|
3917
3914
|
isActive: e.status === o.SignedIn,
|
|
@@ -3931,7 +3928,7 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3931
3928
|
keyCardTitleClassName: "dial-tiny-semi-text",
|
|
3932
3929
|
keyCardDescriptionClassName: "dial-tiny-text",
|
|
3933
3930
|
deleteActionClassName: Cn.errorText,
|
|
3934
|
-
renderLoginOptions: e.canConsentToOfflineUsage ? (e) => /* @__PURE__ */
|
|
3931
|
+
renderLoginOptions: e.canConsentToOfflineUsage ? (e) => /* @__PURE__ */ G(he, {
|
|
3935
3932
|
isSelected: i,
|
|
3936
3933
|
onChange: a,
|
|
3937
3934
|
disabled: e,
|
|
@@ -3939,37 +3936,37 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3939
3936
|
caption: t?.offlineUsageConsentHint
|
|
3940
3937
|
}) : void 0,
|
|
3941
3938
|
children: [
|
|
3942
|
-
e.hint && /* @__PURE__ */
|
|
3939
|
+
e.hint && /* @__PURE__ */ G("p", {
|
|
3943
3940
|
className: M("dial-small-text break-words", Cn.description),
|
|
3944
3941
|
children: e.hint
|
|
3945
3942
|
}),
|
|
3946
|
-
e.hasSharedCredentials && /* @__PURE__ */
|
|
3947
|
-
icon: /* @__PURE__ */
|
|
3948
|
-
size:
|
|
3943
|
+
e.hasSharedCredentials && /* @__PURE__ */ G(gn, {
|
|
3944
|
+
icon: /* @__PURE__ */ G(qe, {
|
|
3945
|
+
size: R.SM,
|
|
3949
3946
|
"aria-hidden": !0,
|
|
3950
|
-
stroke:
|
|
3947
|
+
stroke: z
|
|
3951
3948
|
}),
|
|
3952
3949
|
title: t?.sharedCredentials ?? "Shared credentials are available for this service."
|
|
3953
3950
|
}),
|
|
3954
|
-
s && /* @__PURE__ */
|
|
3951
|
+
s && /* @__PURE__ */ K("div", {
|
|
3955
3952
|
className: "flex flex-col gap-3 pt-3",
|
|
3956
3953
|
children: [
|
|
3957
|
-
/* @__PURE__ */
|
|
3958
|
-
d && /* @__PURE__ */
|
|
3954
|
+
/* @__PURE__ */ G("p", { children: h }),
|
|
3955
|
+
d && /* @__PURE__ */ G("p", {
|
|
3959
3956
|
role: "alert",
|
|
3960
3957
|
className: Cn.errorText,
|
|
3961
3958
|
children: d
|
|
3962
3959
|
}),
|
|
3963
|
-
/* @__PURE__ */
|
|
3960
|
+
/* @__PURE__ */ K("div", {
|
|
3964
3961
|
className: "flex flex-wrap justify-end gap-2",
|
|
3965
|
-
children: [/* @__PURE__ */
|
|
3962
|
+
children: [/* @__PURE__ */ G(je, {
|
|
3966
3963
|
className: "min-h-11",
|
|
3967
3964
|
label: t?.cancelLabel ?? "Cancel",
|
|
3968
3965
|
disabled: l,
|
|
3969
3966
|
onClick: () => {
|
|
3970
3967
|
c(!1), f(void 0);
|
|
3971
3968
|
}
|
|
3972
|
-
}), /* @__PURE__ */
|
|
3969
|
+
}), /* @__PURE__ */ G(_e, {
|
|
3973
3970
|
className: "min-h-11",
|
|
3974
3971
|
label: m,
|
|
3975
3972
|
disabled: l,
|
|
@@ -3991,39 +3988,39 @@ var xt = /* @__PURE__ */ function(e) {
|
|
|
3991
3988
|
})
|
|
3992
3989
|
]
|
|
3993
3990
|
});
|
|
3994
|
-
}, ai = ({ services: e, isLoading: t = !1, hasError: n = !1, showEmptyState: r = !1, onRetry: i, onLogin: a, onLogout: o, texts: s }) => t && !e.length ? /* @__PURE__ */
|
|
3991
|
+
}, ai = ({ services: e, isLoading: t = !1, hasError: n = !1, showEmptyState: r = !1, onRetry: i, onLogin: a, onLogout: o, texts: s }) => t && !e.length ? /* @__PURE__ */ G("p", {
|
|
3995
3992
|
role: "status",
|
|
3996
3993
|
className: "px-6 py-3",
|
|
3997
3994
|
children: s?.loading ?? "Loading…"
|
|
3998
|
-
}) : n ? /* @__PURE__ */
|
|
3995
|
+
}) : n ? /* @__PURE__ */ K("div", {
|
|
3999
3996
|
className: "flex flex-col gap-2 px-6 py-3",
|
|
4000
|
-
children: [/* @__PURE__ */
|
|
3997
|
+
children: [/* @__PURE__ */ G("p", {
|
|
4001
3998
|
role: "alert",
|
|
4002
3999
|
children: s?.loadError ?? "Unable to load credentials"
|
|
4003
|
-
}), /* @__PURE__ */
|
|
4000
|
+
}), /* @__PURE__ */ G(je, {
|
|
4004
4001
|
className: "min-h-11 self-start",
|
|
4005
4002
|
label: s?.retry ?? "Retry",
|
|
4006
4003
|
onClick: i
|
|
4007
4004
|
})]
|
|
4008
|
-
}) : e.length ? /* @__PURE__ */
|
|
4005
|
+
}) : e.length ? /* @__PURE__ */ K("section", {
|
|
4009
4006
|
"aria-label": s?.title ?? "Credentials",
|
|
4010
4007
|
className: "flex min-w-0 flex-col gap-5 px-6 py-4",
|
|
4011
|
-
children: [/* @__PURE__ */
|
|
4008
|
+
children: [/* @__PURE__ */ G("h2", {
|
|
4012
4009
|
className: "dial-h3-text",
|
|
4013
4010
|
children: s?.title ?? "Credentials"
|
|
4014
|
-
}), /* @__PURE__ */
|
|
4011
|
+
}), /* @__PURE__ */ G("div", {
|
|
4015
4012
|
className: "flex min-w-0 flex-col",
|
|
4016
|
-
children: e.map((e) => /* @__PURE__ */
|
|
4013
|
+
children: e.map((e) => /* @__PURE__ */ G(ii, {
|
|
4017
4014
|
service: e,
|
|
4018
4015
|
texts: s,
|
|
4019
4016
|
onLogin: a,
|
|
4020
4017
|
onLogout: o
|
|
4021
4018
|
}, e.id))
|
|
4022
4019
|
})]
|
|
4023
|
-
}) : r ? /* @__PURE__ */
|
|
4020
|
+
}) : r ? /* @__PURE__ */ G("p", {
|
|
4024
4021
|
role: "status",
|
|
4025
4022
|
className: "px-6 py-3",
|
|
4026
4023
|
children: s?.empty ?? "No credentials required"
|
|
4027
4024
|
}) : null;
|
|
4028
4025
|
//#endregion
|
|
4029
|
-
export { Rt as AppIdentity, ai as ApplicationCredentials, Et as CATALOG_CLASS, Xt as Card, Qt as CardGrid, Zt as CardRowRenderer, ni as Catalog, Z as CatalogContentNodeType, Q as CatalogContentPreviewType, J as CatalogDetailsTab, St as CatalogLimitStatus, s as CatalogSortKey, X as CatalogViewMode,
|
|
4026
|
+
export { Rt as AppIdentity, ai as ApplicationCredentials, Et as CATALOG_CLASS, Xt as Card, Qt as CardGrid, Zt as CardRowRenderer, ni as Catalog, Z as CatalogContentNodeType, Q as CatalogContentPreviewType, J as CatalogDetailsTab, St as CatalogLimitStatus, s as CatalogSortKey, X as CatalogViewMode, q as CodeLanguage, Wn as ContentTab, o as CredentialStatus, Bt as CredentialsBadge, e as CredentialsBadgeState, b as CredentialsLevel, n as CredentialsUiState, ri as DeploymentSelectorField, Ct as DeploymentSize, Y as DetailsConfirmationKind, Sr as DetailsPanel, wr as FavoriteCard, Dr as Favorites, Kr as Filter, wt as LimitRowLayout, nr as LimitsTab, Vr as ListView, Yr as Toolbar, y as ToolsetAuthenticationType, Gt as TopicTag, r as buildCatalogTabs, a as filterCatalogItems, d as getCredentialsBadgeState, c as getCredentialsUiState, t as getSignedInLevel, u as getTopicOptions, l as sortCatalogItems, Tt as useFavColumns, Ft as useScrollVirtualizer };
|