@epam/ai-dial-catalog 1.2.0-dev.252 → 1.2.0-dev.256
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Catalog/CreateButton.d.ts.map +1 -1
- package/components/Details/DetailsPanel.d.ts.map +1 -1
- package/constants/create-menu.d.ts +7 -0
- package/constants/create-menu.d.ts.map +1 -0
- package/index.css +2 -2
- package/index.js +1141 -1153
- package/package.json +4 -4
- package/utils/create-menu.d.ts +4 -0
- package/utils/create-menu.d.ts.map +1 -0
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
3
|
import { Fragment as ie, memo as N, startTransition as ae, useCallback as P, useEffect as F, useId as oe, useLayoutEffect as se, useMemo as I, useRef as L, useState as R } from "react";
|
|
4
|
-
import { Badge as
|
|
5
|
-
import { IconAlertTriangleFilled as
|
|
6
|
-
import { Fragment as
|
|
7
|
-
import { PublishFooter as
|
|
8
|
-
import { Grid as
|
|
4
|
+
import { Badge as z, Button as ce, ButtonAppearance as le, ButtonDropdown as ue, ButtonVariant as de, CardShell as fe, Checkbox as pe, ConfirmationPopupVariant as me, DIAL_ICON_SIZE as B, DIAL_KIT_ICON_STROKE as V, DangerButton as he, Dropdown as ge, DropdownItemType as _e, ElementSize as ve, EllipsisTooltip as ye, FolderPath as be, GhostButton as xe, GhostIconButton as H, Highlight as Se, InlineSelect as Ce, InlineSelectTrigger as we, Input as Te, LinkButton as Ee, MenuItem as De, MenuItemMark as Oe, NeutralButton as U, NeutralIconButton as W, PrimaryButton as ke, ProgressBar as Ae, RadioGroup as je, Search as Me, SegmentedControl as Ne, SideDrawer as Pe, Skeleton as Fe, SkeletonAvatarShape as Ie, Spinner as Le, Tabs as Re, ToggleIconButton as ze, Tooltip as Be, mergeClasses as Ve } from "@epam/ai-dial-ui-kit";
|
|
5
|
+
import { IconAlertTriangleFilled as He, IconArrowRight as Ue, IconBuildingCommunity as We, IconCheck as Ge, IconChevronDown as Ke, IconChevronLeft as qe, IconChevronRight as Je, IconCircleCheckFilled as Ye, IconDots as Xe, IconDownload as Ze, IconFilter as Qe, IconFolder as $e, IconKey as et, IconLayoutGrid as tt, IconLayoutList as nt, IconLogin as rt, IconLogout as it, IconPencil as at, IconPlayerPlayFilled as ot, IconPlus as st, IconShare as ct, IconStar as lt, IconStarFilled as ut, IconTrashX as dt, IconUser as ft, IconUserOff as pt, IconWorldOff as mt, IconWorldShare as G } from "@tabler/icons-react";
|
|
6
|
+
import { Fragment as ht, jsx as K, jsxs as q } from "react/jsx-runtime";
|
|
7
|
+
import { PublishFooter as gt, PublishPanel as _t, derivePublishState as vt, usePublishFlow as yt } from "@epam/ai-dial-publish-panel";
|
|
8
|
+
import { Grid as bt } from "@epam/ai-dial-ui-kit/grid";
|
|
9
9
|
//#region src/types/code-language.ts
|
|
10
|
-
var
|
|
10
|
+
var xt = /* @__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;
|
|
@@ -15,9 +15,9 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
15
15
|
return e.RunningLow = "runningLow", e.LimitReached = "limitReached", e;
|
|
16
16
|
}({}), Y = /* @__PURE__ */ function(e) {
|
|
17
17
|
return e.Delete = "delete", e.Logout = "logout", e.Unshare = "unshare", e.RevokeAccess = "revokeAccess", e.DeleteApiKey = "deleteApiKey", e.Unpublish = "unpublish", e;
|
|
18
|
-
}({}), X = /* @__PURE__ */ function(e) {
|
|
19
|
-
return e.SM = "sm", e.LG = "lg", e;
|
|
20
18
|
}({}), Ct = /* @__PURE__ */ function(e) {
|
|
19
|
+
return e.SM = "sm", e.LG = "lg", e;
|
|
20
|
+
}({}), X = /* @__PURE__ */ function(e) {
|
|
21
21
|
return e.Grid = "grid", e.Cards = "cards", e;
|
|
22
22
|
}({}), wt = /* @__PURE__ */ function(e) {
|
|
23
23
|
return e.Inline = "inline", e.Stacked = "stacked", e;
|
|
@@ -132,47 +132,47 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
132
132
|
lastUsed: "_lastUsed_188yo_5",
|
|
133
133
|
version: "_version_188yo_9"
|
|
134
134
|
}, Rt = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, styles: c, lastUsedTrailing: l, iconClassName: u, iconOverlay: d }) => {
|
|
135
|
-
let f = c?.colors, p = c?.typography ?? {}, m = a ===
|
|
135
|
+
let f = c?.colors, p = c?.typography ?? {}, m = a === Ct.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = j({
|
|
136
136
|
"--ai-name-text": f?.nameColor,
|
|
137
137
|
"--ai-last-used-text": f?.lastUsedColor,
|
|
138
138
|
"--ai-version-text": f?.versionColor
|
|
139
139
|
});
|
|
140
|
-
return /* @__PURE__ */
|
|
140
|
+
return /* @__PURE__ */ q("div", {
|
|
141
141
|
className: M("flex min-w-0 items-start gap-3", s),
|
|
142
142
|
style: _,
|
|
143
|
-
children: [/* @__PURE__ */
|
|
143
|
+
children: [/* @__PURE__ */ q("div", {
|
|
144
144
|
className: M("relative flex-shrink-0", h, u),
|
|
145
|
-
children: [/* @__PURE__ */
|
|
145
|
+
children: [/* @__PURE__ */ K("div", {
|
|
146
146
|
className: "size-full overflow-hidden rounded-[inherit]",
|
|
147
|
-
children: /* @__PURE__ */
|
|
147
|
+
children: /* @__PURE__ */ K(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__ */ q("div", {
|
|
155
155
|
className: "flex min-w-0 flex-1 flex-col gap-1",
|
|
156
|
-
children: [/* @__PURE__ */
|
|
156
|
+
children: [/* @__PURE__ */ K(D, {
|
|
157
157
|
type: t,
|
|
158
158
|
className: p?.typeClassName
|
|
159
|
-
}), /* @__PURE__ */
|
|
159
|
+
}), /* @__PURE__ */ q("div", {
|
|
160
160
|
className: "flex min-w-0 flex-col",
|
|
161
|
-
children: [/* @__PURE__ */
|
|
161
|
+
children: [/* @__PURE__ */ q("div", {
|
|
162
162
|
className: "flex min-w-0 items-start gap-1 overflow-hidden",
|
|
163
|
-
children: [/* @__PURE__ */
|
|
164
|
-
text: o ? /* @__PURE__ */
|
|
163
|
+
children: [/* @__PURE__ */ K(ye, {
|
|
164
|
+
text: o ? /* @__PURE__ */ K(Se, {
|
|
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__ */ K(ye, {
|
|
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__ */ q("div", {
|
|
174
174
|
className: "flex items-center gap-2",
|
|
175
|
-
children: [/* @__PURE__ */
|
|
175
|
+
children: [/* @__PURE__ */ K("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 q = /* @__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__ */ K(Be, {
|
|
184
184
|
tooltip: t,
|
|
185
185
|
asChild: !0,
|
|
186
|
-
children: /* @__PURE__ */
|
|
186
|
+
children: /* @__PURE__ */ K("span", {
|
|
187
187
|
role: "img",
|
|
188
188
|
"aria-label": t,
|
|
189
189
|
style: j({
|
|
@@ -191,8 +191,8 @@ var q = /* @__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__ */ K(He, {
|
|
195
|
+
size: B.SM,
|
|
196
196
|
className: zt.icon,
|
|
197
197
|
"aria-hidden": !0
|
|
198
198
|
})
|
|
@@ -200,24 +200,24 @@ var q = /* @__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__ */ K(ze, {
|
|
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__ */ K(lt, {
|
|
209
|
+
size: B.SM,
|
|
210
|
+
stroke: V,
|
|
211
211
|
"aria-hidden": !0
|
|
212
212
|
}),
|
|
213
|
-
selectedIcon: /* @__PURE__ */
|
|
214
|
-
size:
|
|
213
|
+
selectedIcon: /* @__PURE__ */ K(ut, {
|
|
214
|
+
size: B.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__ */ K(z, {
|
|
221
221
|
label: e,
|
|
222
222
|
textClassName: n,
|
|
223
223
|
style: j({
|
|
@@ -226,7 +226,7 @@ var q = /* @__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__ */ K(Wt, {
|
|
230
230
|
label: e,
|
|
231
231
|
badgeClassName: t,
|
|
232
232
|
colors: n
|
|
@@ -261,33 +261,33 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
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__ */ K("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__ */ q("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__ */ K("div", {
|
|
274
274
|
ref: (e) => {
|
|
275
275
|
i.current[t] = e;
|
|
276
276
|
},
|
|
277
|
-
children: /* @__PURE__ */
|
|
277
|
+
children: /* @__PURE__ */ K(Gt, { label: e })
|
|
278
278
|
}, e)),
|
|
279
|
-
f > 0 && /* @__PURE__ */
|
|
279
|
+
f > 0 && /* @__PURE__ */ K(Be, {
|
|
280
280
|
tooltip: e.slice(c).join(", "),
|
|
281
|
-
children: /* @__PURE__ */
|
|
281
|
+
children: /* @__PURE__ */ K("span", {
|
|
282
282
|
"aria-label": t?.(f) ?? `and ${f} more topics`,
|
|
283
|
-
children: /* @__PURE__ */
|
|
283
|
+
children: /* @__PURE__ */ K(Gt, { label: `+${f}` })
|
|
284
284
|
})
|
|
285
285
|
}),
|
|
286
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ K("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__ */ K(Gt, { label: `+${e.length}` })
|
|
291
291
|
})
|
|
292
292
|
]
|
|
293
293
|
});
|
|
@@ -315,7 +315,7 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
315
315
|
i,
|
|
316
316
|
e.id
|
|
317
317
|
]);
|
|
318
|
-
return /* @__PURE__ */
|
|
318
|
+
return /* @__PURE__ */ q(fe, {
|
|
319
319
|
...n ? {
|
|
320
320
|
role: "button",
|
|
321
321
|
tabIndex: 0,
|
|
@@ -326,37 +326,37 @@ var q = /* @__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__ */ K("div", {
|
|
330
330
|
className: "absolute end-[22px] top-0 -translate-y-1/2",
|
|
331
|
-
children: /* @__PURE__ */
|
|
331
|
+
children: /* @__PURE__ */ K(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__ */ K(Ge, {
|
|
339
|
+
size: B.SM,
|
|
340
340
|
className: M("absolute end-3 top-3 shrink-0", It.checkIcon),
|
|
341
341
|
"aria-hidden": !0,
|
|
342
|
-
stroke:
|
|
342
|
+
stroke: V
|
|
343
343
|
}),
|
|
344
|
-
/* @__PURE__ */
|
|
344
|
+
/* @__PURE__ */ K(Rt, {
|
|
345
345
|
icon: e.iconUrl,
|
|
346
346
|
type: e.type,
|
|
347
347
|
name: e.name,
|
|
348
348
|
version: e.version,
|
|
349
|
-
size:
|
|
349
|
+
size: Ct.SM,
|
|
350
350
|
query: t,
|
|
351
351
|
iconClassName: It.cardIcon,
|
|
352
|
-
iconOverlay: /* @__PURE__ */
|
|
352
|
+
iconOverlay: /* @__PURE__ */ K(Bt, {
|
|
353
353
|
credentials: e.credentials,
|
|
354
354
|
loggedOutLabel: f
|
|
355
355
|
})
|
|
356
356
|
}),
|
|
357
|
-
/* @__PURE__ */
|
|
357
|
+
/* @__PURE__ */ K("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__ */ K(A, {
|
|
360
360
|
content: e.description,
|
|
361
361
|
classNames: {
|
|
362
362
|
p: g,
|
|
@@ -372,24 +372,24 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
372
372
|
components: Jt
|
|
373
373
|
})
|
|
374
374
|
}),
|
|
375
|
-
/* @__PURE__ */
|
|
375
|
+
/* @__PURE__ */ K("div", {
|
|
376
376
|
className: "mt-auto flex items-center gap-2",
|
|
377
|
-
children: /* @__PURE__ */
|
|
377
|
+
children: /* @__PURE__ */ K(qt, { topics: e.topics })
|
|
378
378
|
}),
|
|
379
|
-
C && /* @__PURE__ */
|
|
379
|
+
C && /* @__PURE__ */ K("div", {
|
|
380
380
|
className: M("pt-3", !p && M("border-t", It.footer)),
|
|
381
|
-
children: /* @__PURE__ */
|
|
381
|
+
children: /* @__PURE__ */ q("div", {
|
|
382
382
|
className: "flex items-center gap-2",
|
|
383
|
-
children: [/* @__PURE__ */
|
|
383
|
+
children: [/* @__PURE__ */ K("div", {
|
|
384
384
|
className: "min-w-0 flex-1",
|
|
385
|
-
children: e.folder.length > 0 && /* @__PURE__ */
|
|
385
|
+
children: e.folder.length > 0 && /* @__PURE__ */ K(be, {
|
|
386
386
|
segments: e.folder,
|
|
387
387
|
labelClassName: v,
|
|
388
388
|
leafClassName: y
|
|
389
389
|
})
|
|
390
|
-
}), S && /* @__PURE__ */
|
|
390
|
+
}), S && /* @__PURE__ */ K(Ht, {
|
|
391
391
|
isStarred: m,
|
|
392
|
-
size:
|
|
392
|
+
size: ve.Small,
|
|
393
393
|
onClick: E,
|
|
394
394
|
ariaLabel: m ? c : s,
|
|
395
395
|
className: M(It.starBtn, !m && It.emptyStarHidden)
|
|
@@ -400,7 +400,7 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
400
400
|
});
|
|
401
401
|
}, Zt = N(({ 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__ */ K("div", {
|
|
404
404
|
style: {
|
|
405
405
|
top: e * 268,
|
|
406
406
|
height: 268
|
|
@@ -408,9 +408,9 @@ var q = /* @__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__ */ K("div", {
|
|
412
412
|
className: "h-full min-w-0 flex-1",
|
|
413
|
-
children: n && /* @__PURE__ */
|
|
413
|
+
children: n && /* @__PURE__ */ K(Xt, {
|
|
414
414
|
item: n,
|
|
415
415
|
query: r,
|
|
416
416
|
initialIsStarred: n.isStarred,
|
|
@@ -459,19 +459,19 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
459
459
|
u,
|
|
460
460
|
f
|
|
461
461
|
]);
|
|
462
|
-
return o ? /* @__PURE__ */
|
|
462
|
+
return o ? /* @__PURE__ */ K("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__ */ K("div", {
|
|
469
469
|
className: M("rounded-md border p-4", It.skeletonCard),
|
|
470
470
|
style: { height: 248 },
|
|
471
|
-
children: /* @__PURE__ */
|
|
471
|
+
children: /* @__PURE__ */ K(Fe, {
|
|
472
472
|
avatar: {
|
|
473
473
|
size: 48,
|
|
474
|
-
shape:
|
|
474
|
+
shape: Ie.Square
|
|
475
475
|
},
|
|
476
476
|
showTitle: { width: `${60 + t * 17 % 30}%` },
|
|
477
477
|
paragraph: { rows: 3 },
|
|
@@ -479,16 +479,16 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
479
479
|
color: c
|
|
480
480
|
})
|
|
481
481
|
}, t))
|
|
482
|
-
}) : e.length === 0 ? /* @__PURE__ */
|
|
482
|
+
}) : e.length === 0 ? /* @__PURE__ */ K("div", {
|
|
483
483
|
className: "flex size-full flex-col items-center justify-center",
|
|
484
|
-
children: /* @__PURE__ */
|
|
485
|
-
}) : /* @__PURE__ */
|
|
484
|
+
children: /* @__PURE__ */ K(ne, { label: p })
|
|
485
|
+
}) : /* @__PURE__ */ K("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__ */ K(Zt, {
|
|
492
492
|
rowIndex: n,
|
|
493
493
|
...C
|
|
494
494
|
}, n);
|
|
@@ -515,19 +515,19 @@ var q = /* @__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__ */ q(ht, { children: [/* @__PURE__ */ K(Ye, {
|
|
519
|
+
size: B.MD,
|
|
520
520
|
className: M(r, nn.checkIcon)
|
|
521
|
-
}), /* @__PURE__ */
|
|
521
|
+
}), /* @__PURE__ */ K("span", {
|
|
522
522
|
className: M(n, nn.valueTrue),
|
|
523
523
|
children: i
|
|
524
|
-
})] }) : e === !1 ? /* @__PURE__ */
|
|
524
|
+
})] }) : e === !1 ? /* @__PURE__ */ K("span", {
|
|
525
525
|
className: M(t, nn.valueFalse),
|
|
526
526
|
children: a
|
|
527
|
-
}) : /* @__PURE__ */
|
|
527
|
+
}) : /* @__PURE__ */ K("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__ */ K("div", {
|
|
531
531
|
className: "flex flex-col",
|
|
532
532
|
style: j({
|
|
533
533
|
"--tv-section-heading": l?.sectionHeading,
|
|
@@ -538,19 +538,19 @@ var q = /* @__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__ */ q("section", { children: [/* @__PURE__ */ K("p", {
|
|
542
542
|
className: M("mb-3 mt-0", o, nn.sectionHeading),
|
|
543
543
|
children: e
|
|
544
|
-
}), /* @__PURE__ */
|
|
544
|
+
}), /* @__PURE__ */ K("ul", {
|
|
545
545
|
className: "m-0 list-none p-0",
|
|
546
|
-
children: t.map((e, t) => /* @__PURE__ */
|
|
546
|
+
children: t.map((e, t) => /* @__PURE__ */ q("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__ */ K("span", {
|
|
549
549
|
className: M(n, nn.label, "w-2/5 shrink-0"),
|
|
550
550
|
children: e.label
|
|
551
|
-
}), /* @__PURE__ */
|
|
551
|
+
}), /* @__PURE__ */ K("div", {
|
|
552
552
|
className: "flex w-3/5 min-w-0 items-center gap-1",
|
|
553
|
-
children: /* @__PURE__ */
|
|
553
|
+
children: /* @__PURE__ */ K(rn, {
|
|
554
554
|
value: e.value,
|
|
555
555
|
valueClassName: r,
|
|
556
556
|
valueTrueClassName: i,
|
|
@@ -562,27 +562,27 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
562
562
|
}, e.label))
|
|
563
563
|
})] })
|
|
564
564
|
}), on = { sectionHeading: "_sectionHeading_148lj_1" }, sn = {
|
|
565
|
-
[
|
|
566
|
-
[
|
|
567
|
-
[
|
|
565
|
+
[xt.Python]: "Python",
|
|
566
|
+
[xt.Curl]: "cURL",
|
|
567
|
+
[xt.JavaScript]: "JavaScript"
|
|
568
568
|
}, cn = {
|
|
569
|
-
[
|
|
570
|
-
[
|
|
571
|
-
[
|
|
569
|
+
[xt.Python]: "python",
|
|
570
|
+
[xt.Curl]: "bash",
|
|
571
|
+
[xt.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] = R(e[0]?.language ??
|
|
573
|
+
let [s, c] = R(e[0]?.language ?? xt.Python);
|
|
574
574
|
F(() => {
|
|
575
|
-
c(e[0]?.language ??
|
|
575
|
+
c(e[0]?.language ?? xt.Python);
|
|
576
576
|
}, [e]);
|
|
577
577
|
let l = I(() => 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__ */ q("section", { children: [t != null && /* @__PURE__ */ K("p", {
|
|
583
583
|
className: M("mb-3 mt-0", o, on.sectionHeading),
|
|
584
584
|
children: t
|
|
585
|
-
}), /* @__PURE__ */
|
|
585
|
+
}), /* @__PURE__ */ K(k, {
|
|
586
586
|
language: cn[s] ?? s,
|
|
587
587
|
title: sn[s] ?? s,
|
|
588
588
|
value: u,
|
|
@@ -591,11 +591,11 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
591
591
|
codeClassName: i,
|
|
592
592
|
languageLabelClassName: a,
|
|
593
593
|
hideDownload: !0,
|
|
594
|
-
titleSlot: d ? /* @__PURE__ */
|
|
594
|
+
titleSlot: d ? /* @__PURE__ */ K(Ce, {
|
|
595
595
|
items: l,
|
|
596
596
|
matchReferenceWidth: !1,
|
|
597
597
|
placement: "bottom-end",
|
|
598
|
-
size:
|
|
598
|
+
size: ve.Small,
|
|
599
599
|
selectedKey: s
|
|
600
600
|
}) : void 0
|
|
601
601
|
})] });
|
|
@@ -610,17 +610,17 @@ var q = /* @__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__ */ q("div", {
|
|
614
614
|
className: "flex flex-col gap-6",
|
|
615
615
|
children: [
|
|
616
|
-
C && /* @__PURE__ */
|
|
616
|
+
C && /* @__PURE__ */ K(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__ */ K(k, {
|
|
624
624
|
language: a,
|
|
625
625
|
value: w,
|
|
626
626
|
copyLabel: c,
|
|
@@ -629,12 +629,12 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
629
629
|
languageLabelClassName: p,
|
|
630
630
|
hideDownload: !0
|
|
631
631
|
}),
|
|
632
|
-
v && /* @__PURE__ */
|
|
633
|
-
/* @__PURE__ */
|
|
632
|
+
v && /* @__PURE__ */ q("section", { children: [
|
|
633
|
+
/* @__PURE__ */ K("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__ */ K(k, {
|
|
638
638
|
language: y.label,
|
|
639
639
|
value: y.url,
|
|
640
640
|
copyLabel: c,
|
|
@@ -642,17 +642,17 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
642
642
|
codeClassName: f,
|
|
643
643
|
languageLabelClassName: p,
|
|
644
644
|
hideDownload: !0,
|
|
645
|
-
titleSlot: S ? /* @__PURE__ */
|
|
645
|
+
titleSlot: S ? /* @__PURE__ */ K(Ce, {
|
|
646
646
|
items: b,
|
|
647
647
|
matchReferenceWidth: !1,
|
|
648
648
|
placement: "bottom-end",
|
|
649
|
-
size:
|
|
649
|
+
size: ve.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__ */ K("div", {
|
|
654
654
|
className: "mt-4",
|
|
655
|
-
children: /* @__PURE__ */
|
|
655
|
+
children: /* @__PURE__ */ K(ln, {
|
|
656
656
|
snippets: y.snippets,
|
|
657
657
|
copyAriaLabel: c,
|
|
658
658
|
copiedStatusLabel: l,
|
|
@@ -662,7 +662,7 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
662
662
|
}, h)
|
|
663
663
|
})
|
|
664
664
|
] }),
|
|
665
|
-
!v && T && /* @__PURE__ */
|
|
665
|
+
!v && T && /* @__PURE__ */ K(ln, {
|
|
666
666
|
snippets: e.snippets ?? [],
|
|
667
667
|
sectionLabel: r,
|
|
668
668
|
copyAriaLabel: c,
|
|
@@ -671,10 +671,10 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
671
671
|
codeTitleClassName: p,
|
|
672
672
|
sectionClassName: m
|
|
673
673
|
}),
|
|
674
|
-
E && /* @__PURE__ */
|
|
674
|
+
E && /* @__PURE__ */ q("section", { children: [/* @__PURE__ */ K("p", {
|
|
675
675
|
className: M("mb-3 mt-0", m, on.sectionHeading),
|
|
676
676
|
children: o
|
|
677
|
-
}), /* @__PURE__ */
|
|
677
|
+
}), /* @__PURE__ */ K(k, {
|
|
678
678
|
language: "bash",
|
|
679
679
|
value: e.requestExample ?? "",
|
|
680
680
|
copyLabel: c,
|
|
@@ -682,10 +682,10 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
682
682
|
codeClassName: f,
|
|
683
683
|
hideDownload: !0
|
|
684
684
|
})] }),
|
|
685
|
-
D && /* @__PURE__ */
|
|
685
|
+
D && /* @__PURE__ */ q("section", { children: [/* @__PURE__ */ K("p", {
|
|
686
686
|
className: M("mb-3 mt-0", m, on.sectionHeading),
|
|
687
687
|
children: s
|
|
688
|
-
}), /* @__PURE__ */
|
|
688
|
+
}), /* @__PURE__ */ K(k, {
|
|
689
689
|
language: "json",
|
|
690
690
|
value: e.responseSchema ?? "",
|
|
691
691
|
copyLabel: c,
|
|
@@ -704,19 +704,19 @@ var q = /* @__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__ */ q("span", {
|
|
708
708
|
className: "relative inline-flex shrink-0",
|
|
709
709
|
children: [
|
|
710
|
-
/* @__PURE__ */
|
|
710
|
+
/* @__PURE__ */ K("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__ */ K(Ye, {
|
|
715
|
+
size: B.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__ */ K("span", {
|
|
720
720
|
role: "status",
|
|
721
721
|
className: "sr-only",
|
|
722
722
|
children: r
|
|
@@ -727,43 +727,43 @@ var q = /* @__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__ */ q("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__ */ K("span", {
|
|
735
735
|
className: M("shrink-0", hn.icon, n != null && "mt-0.5"),
|
|
736
736
|
children: e
|
|
737
|
-
}), /* @__PURE__ */
|
|
737
|
+
}), /* @__PURE__ */ q("div", {
|
|
738
738
|
className: "flex min-w-0 flex-1 items-center justify-between gap-2",
|
|
739
|
-
children: [/* @__PURE__ */
|
|
739
|
+
children: [/* @__PURE__ */ q("div", {
|
|
740
740
|
className: "flex min-w-0 flex-col gap-1",
|
|
741
|
-
children: [/* @__PURE__ */
|
|
741
|
+
children: [/* @__PURE__ */ K("span", {
|
|
742
742
|
className: M(i, hn.title),
|
|
743
743
|
children: t
|
|
744
|
-
}), n != null && /* @__PURE__ */
|
|
744
|
+
}), n != null && /* @__PURE__ */ K("span", {
|
|
745
745
|
className: M(a, hn.description),
|
|
746
746
|
children: n
|
|
747
747
|
})]
|
|
748
|
-
}), r != null && /* @__PURE__ */
|
|
748
|
+
}), r != null && /* @__PURE__ */ K("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__ */ K(We, {
|
|
755
755
|
size: xn,
|
|
756
756
|
"aria-hidden": !0,
|
|
757
|
-
stroke:
|
|
757
|
+
stroke: V
|
|
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__ */ K(gn, {
|
|
762
|
+
icon: /* @__PURE__ */ K(mn, {
|
|
763
|
+
icon: /* @__PURE__ */ K(ft, {
|
|
764
|
+
size: B.SM,
|
|
765
765
|
"aria-hidden": !0,
|
|
766
|
-
stroke:
|
|
766
|
+
stroke: V
|
|
767
767
|
}),
|
|
768
768
|
isActive: !0,
|
|
769
769
|
surface: fn.Raised
|
|
@@ -773,12 +773,12 @@ var q = /* @__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__ */ K(gn, {
|
|
777
|
+
icon: /* @__PURE__ */ K(mn, {
|
|
778
|
+
icon: /* @__PURE__ */ K(We, {
|
|
779
|
+
size: B.SM,
|
|
780
780
|
"aria-hidden": !0,
|
|
781
|
-
stroke:
|
|
781
|
+
stroke: V
|
|
782
782
|
}),
|
|
783
783
|
isActive: !0,
|
|
784
784
|
surface: fn.Raised
|
|
@@ -786,7 +786,7 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
786
786
|
title: e
|
|
787
787
|
});
|
|
788
788
|
}
|
|
789
|
-
return /* @__PURE__ */
|
|
789
|
+
return /* @__PURE__ */ K(gn, {
|
|
790
790
|
icon: r,
|
|
791
791
|
title: (n?.orgFallbackBannerTitle ?? _n)(t),
|
|
792
792
|
description: (n?.orgFallbackBannerDescription ?? vn)(t)
|
|
@@ -814,41 +814,41 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
814
814
|
} finally {
|
|
815
815
|
A(!1);
|
|
816
816
|
}
|
|
817
|
-
}, j = d?.loginActionLabel ?? "Log in", ie = d?.logoutActionLabel ?? "Log out", N = d?.addApiKeyActionLabel ?? "Add", ae = d?.deleteActionLabel ?? "Delete", F = d?.credentialsSignedInLabel ?? "Signed in", se = d?.credentialsSignedOutLabel ?? "Signed out", I = d?.addingApiKeyStatusLabel ?? "Adding", L = d?.apiKeyConfiguredMessage ?? "Key has been configured",
|
|
818
|
-
return /* @__PURE__ */
|
|
817
|
+
}, j = d?.loginActionLabel ?? "Log in", ie = d?.logoutActionLabel ?? "Log out", N = d?.addApiKeyActionLabel ?? "Add", ae = d?.deleteActionLabel ?? "Delete", F = d?.credentialsSignedInLabel ?? "Signed in", se = d?.credentialsSignedOutLabel ?? "Signed out", I = d?.addingApiKeyStatusLabel ?? "Adding", L = d?.apiKeyConfiguredMessage ?? "Key has been configured", z = s == null ? void 0 : (d?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(s);
|
|
818
|
+
return /* @__PURE__ */ q("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__ */ K(mn, {
|
|
824
824
|
icon: n,
|
|
825
825
|
isActive: i,
|
|
826
826
|
statusLabel: i ? F : se
|
|
827
|
-
}), /* @__PURE__ */
|
|
827
|
+
}), /* @__PURE__ */ q("div", {
|
|
828
828
|
className: "flex min-w-0 flex-1 flex-col gap-1",
|
|
829
829
|
children: [
|
|
830
|
-
/* @__PURE__ */
|
|
830
|
+
/* @__PURE__ */ q("div", {
|
|
831
831
|
className: "flex flex-wrap items-start justify-between gap-2",
|
|
832
|
-
children: [/* @__PURE__ */
|
|
832
|
+
children: [/* @__PURE__ */ q("div", {
|
|
833
833
|
className: "flex min-w-0 flex-1 flex-col gap-0.5 break-words",
|
|
834
|
-
children: [/* @__PURE__ */
|
|
834
|
+
children: [/* @__PURE__ */ K("span", {
|
|
835
835
|
className: f,
|
|
836
836
|
children: e
|
|
837
|
-
}), /* @__PURE__ */
|
|
837
|
+
}), /* @__PURE__ */ K("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__ */ K(he, {
|
|
842
|
+
appearance: le.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__ */ K(U, {
|
|
848
848
|
label: k ? void 0 : j,
|
|
849
849
|
"aria-label": j,
|
|
850
|
-
iconBefore: k ? /* @__PURE__ */
|
|
851
|
-
size:
|
|
850
|
+
iconBefore: k ? /* @__PURE__ */ K(Le, {
|
|
851
|
+
size: B.SM,
|
|
852
852
|
ariaLabel: j
|
|
853
853
|
}) : void 0,
|
|
854
854
|
disabled: k || v,
|
|
@@ -856,11 +856,11 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
856
856
|
onClick: re
|
|
857
857
|
}))]
|
|
858
858
|
}),
|
|
859
|
-
a === y.ApiKey && !te && /* @__PURE__ */
|
|
859
|
+
a === y.ApiKey && !te && /* @__PURE__ */ q("div", {
|
|
860
860
|
className: "flex animate-fadeIn flex-col gap-1 pt-1",
|
|
861
|
-
children: [/* @__PURE__ */
|
|
861
|
+
children: [/* @__PURE__ */ q("div", {
|
|
862
862
|
className: "flex items-end gap-2",
|
|
863
|
-
children: [/* @__PURE__ */
|
|
863
|
+
children: [/* @__PURE__ */ K(Te, {
|
|
864
864
|
id: C,
|
|
865
865
|
type: "password",
|
|
866
866
|
autoComplete: "off",
|
|
@@ -870,36 +870,36 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
870
870
|
invalid: O,
|
|
871
871
|
disabled: k || v,
|
|
872
872
|
containerClassName: "min-w-0 flex-1"
|
|
873
|
-
}), /* @__PURE__ */
|
|
873
|
+
}), /* @__PURE__ */ K(U, {
|
|
874
874
|
label: k ? void 0 : N,
|
|
875
875
|
"aria-label": k ? I : void 0,
|
|
876
|
-
iconBefore: k ? /* @__PURE__ */
|
|
877
|
-
size:
|
|
876
|
+
iconBefore: k ? /* @__PURE__ */ K(Le, {
|
|
877
|
+
size: B.SM,
|
|
878
878
|
ariaLabel: I
|
|
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__ */ K("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__ */ K("div", {
|
|
891
891
|
className: "animate-fadeIn pt-1",
|
|
892
|
-
children: /* @__PURE__ */
|
|
893
|
-
icon: /* @__PURE__ */
|
|
894
|
-
size:
|
|
892
|
+
children: /* @__PURE__ */ K(gn, {
|
|
893
|
+
icon: /* @__PURE__ */ K(et, {
|
|
894
|
+
size: B.SM,
|
|
895
895
|
"aria-hidden": !0,
|
|
896
|
-
stroke:
|
|
896
|
+
stroke: V
|
|
897
897
|
}),
|
|
898
898
|
title: L,
|
|
899
|
-
description:
|
|
899
|
+
description: z,
|
|
900
900
|
titleClassName: h,
|
|
901
901
|
descriptionClassName: g,
|
|
902
|
-
action: u && /* @__PURE__ */
|
|
902
|
+
action: u && /* @__PURE__ */ K(Ee, {
|
|
903
903
|
label: ae,
|
|
904
904
|
className: M("min-h-11", _),
|
|
905
905
|
onClick: u,
|
|
@@ -908,7 +908,7 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
908
908
|
})
|
|
909
909
|
}),
|
|
910
910
|
!te && x?.(k || v),
|
|
911
|
-
w && /* @__PURE__ */
|
|
911
|
+
w && /* @__PURE__ */ K("p", {
|
|
912
912
|
role: "alert",
|
|
913
913
|
className: M(m, Cn.errorText),
|
|
914
914
|
children: w
|
|
@@ -921,32 +921,32 @@ var q = /* @__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__ */ q("div", {
|
|
925
925
|
className: "flex flex-col",
|
|
926
|
-
children: [/* @__PURE__ */
|
|
926
|
+
children: [/* @__PURE__ */ K("div", {
|
|
927
927
|
className: "px-6 py-4",
|
|
928
|
-
children: /* @__PURE__ */
|
|
928
|
+
children: /* @__PURE__ */ K("div", {
|
|
929
929
|
className: M("rounded-xl p-3", Cn.surface),
|
|
930
|
-
children: /* @__PURE__ */
|
|
930
|
+
children: /* @__PURE__ */ K(E, {
|
|
931
931
|
item: e,
|
|
932
932
|
iconSize: 40,
|
|
933
933
|
hasFeaturedTag: !1
|
|
934
934
|
})
|
|
935
935
|
})
|
|
936
|
-
}), /* @__PURE__ */
|
|
936
|
+
}), /* @__PURE__ */ q("div", {
|
|
937
937
|
className: "flex flex-col gap-5 px-6 py-4",
|
|
938
|
-
children: [/* @__PURE__ */
|
|
938
|
+
children: [/* @__PURE__ */ K("span", {
|
|
939
939
|
className: M(c, Cn.description),
|
|
940
940
|
children: h
|
|
941
|
-
}), /* @__PURE__ */
|
|
941
|
+
}), /* @__PURE__ */ q("div", {
|
|
942
942
|
className: "flex flex-col",
|
|
943
|
-
children: [/* @__PURE__ */
|
|
943
|
+
children: [/* @__PURE__ */ K(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__ */ K(ft, {
|
|
947
|
+
size: B.SM,
|
|
948
948
|
"aria-hidden": !0,
|
|
949
|
-
stroke:
|
|
949
|
+
stroke: V
|
|
950
950
|
}),
|
|
951
951
|
status: m.userStatus,
|
|
952
952
|
isActive: g,
|
|
@@ -965,13 +965,13 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
965
965
|
keyCardTitleClassName: f,
|
|
966
966
|
keyCardDescriptionClassName: p,
|
|
967
967
|
deleteActionClassName: s
|
|
968
|
-
}), /* @__PURE__ */
|
|
968
|
+
}), /* @__PURE__ */ K(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__ */ K(We, {
|
|
972
|
+
size: B.SM,
|
|
973
973
|
"aria-hidden": !0,
|
|
974
|
-
stroke:
|
|
974
|
+
stroke: V
|
|
975
975
|
}),
|
|
976
976
|
status: m.globalStatus,
|
|
977
977
|
isActive: _,
|
|
@@ -996,11 +996,11 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
996
996
|
});
|
|
997
997
|
}, Dn = {
|
|
998
998
|
skeletonColor: "var(--cat-details-skeleton, var(--bg-control-disable-primary, #dce0e8))",
|
|
999
|
-
backdrop: "
|
|
1000
|
-
panel: "
|
|
1001
|
-
divider: "
|
|
1002
|
-
content: "
|
|
1003
|
-
publishTitle: "
|
|
999
|
+
backdrop: "_backdrop_1i04q_7",
|
|
1000
|
+
panel: "_panel_1i04q_11",
|
|
1001
|
+
divider: "_divider_1i04q_16",
|
|
1002
|
+
content: "_content_1i04q_20",
|
|
1003
|
+
publishTitle: "_publishTitle_1i04q_25"
|
|
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" }) => {
|
|
@@ -1039,22 +1039,22 @@ var q = /* @__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__ */ q("div", {
|
|
1043
1043
|
className: "flex w-[418px] flex-col",
|
|
1044
1044
|
children: [
|
|
1045
|
-
/* @__PURE__ */
|
|
1045
|
+
/* @__PURE__ */ K("div", {
|
|
1046
1046
|
className: "flex items-center gap-2 px-4 py-3",
|
|
1047
|
-
children: /* @__PURE__ */
|
|
1047
|
+
children: /* @__PURE__ */ K("span", {
|
|
1048
1048
|
className: "dial-small-semi-text",
|
|
1049
1049
|
children: S
|
|
1050
1050
|
})
|
|
1051
1051
|
}),
|
|
1052
|
-
/* @__PURE__ */
|
|
1053
|
-
!v && /* @__PURE__ */
|
|
1052
|
+
/* @__PURE__ */ K("div", { className: M("mx-4 h-px", kn.divider) }),
|
|
1053
|
+
!v && /* @__PURE__ */ q("div", {
|
|
1054
1054
|
className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
|
|
1055
|
-
children: [/* @__PURE__ */
|
|
1055
|
+
children: [/* @__PURE__ */ q("div", {
|
|
1056
1056
|
className: "flex items-end gap-2",
|
|
1057
|
-
children: [/* @__PURE__ */
|
|
1057
|
+
children: [/* @__PURE__ */ K(Te, {
|
|
1058
1058
|
id: `catalog-item-${e.id}-${t}-api-key`,
|
|
1059
1059
|
type: "password",
|
|
1060
1060
|
autoComplete: "current-password",
|
|
@@ -1064,35 +1064,35 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
1064
1064
|
invalid: f,
|
|
1065
1065
|
disabled: m,
|
|
1066
1066
|
containerClassName: "min-w-0 flex-1"
|
|
1067
|
-
}), /* @__PURE__ */
|
|
1067
|
+
}), /* @__PURE__ */ K(U, {
|
|
1068
1068
|
label: m ? void 0 : C,
|
|
1069
1069
|
"aria-label": m ? T : void 0,
|
|
1070
|
-
iconBefore: m ? /* @__PURE__ */
|
|
1070
|
+
iconBefore: m ? /* @__PURE__ */ K(Le, {
|
|
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__ */ K("span", {
|
|
1078
1078
|
className: "dial-caption-text text-error",
|
|
1079
1079
|
children: D
|
|
1080
1080
|
})]
|
|
1081
1081
|
}),
|
|
1082
|
-
v && /* @__PURE__ */
|
|
1082
|
+
v && /* @__PURE__ */ K("div", {
|
|
1083
1083
|
className: "animate-fadeIn px-4 py-3.5",
|
|
1084
|
-
children: /* @__PURE__ */
|
|
1085
|
-
icon: /* @__PURE__ */
|
|
1084
|
+
children: /* @__PURE__ */ K(gn, {
|
|
1085
|
+
icon: /* @__PURE__ */ K(et, {
|
|
1086
1086
|
size: 20,
|
|
1087
1087
|
"aria-hidden": !0,
|
|
1088
|
-
stroke:
|
|
1088
|
+
stroke: V
|
|
1089
1089
|
}),
|
|
1090
1090
|
title: O,
|
|
1091
1091
|
description: ee,
|
|
1092
|
-
action: /* @__PURE__ */
|
|
1092
|
+
action: /* @__PURE__ */ K(Ee, {
|
|
1093
1093
|
label: g ? void 0 : w,
|
|
1094
1094
|
"aria-label": g ? E : void 0,
|
|
1095
|
-
iconBefore: g ? /* @__PURE__ */
|
|
1095
|
+
iconBefore: g ? /* @__PURE__ */ K(Le, {
|
|
1096
1096
|
size: An,
|
|
1097
1097
|
ariaLabel: E
|
|
1098
1098
|
}) : void 0,
|
|
@@ -1117,21 +1117,21 @@ var q = /* @__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__ */ K(U, {
|
|
1121
1121
|
label: i,
|
|
1122
|
-
iconBefore: /* @__PURE__ */
|
|
1123
|
-
size:
|
|
1124
|
-
stroke:
|
|
1122
|
+
iconBefore: /* @__PURE__ */ K(ct, {
|
|
1123
|
+
size: B.MD,
|
|
1124
|
+
stroke: V
|
|
1125
1125
|
}),
|
|
1126
|
-
iconAfter: /* @__PURE__ */
|
|
1127
|
-
size:
|
|
1128
|
-
stroke:
|
|
1126
|
+
iconAfter: /* @__PURE__ */ K(Ke, {
|
|
1127
|
+
size: B.MD,
|
|
1128
|
+
stroke: V
|
|
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__ */ K(ge, {
|
|
1135
1135
|
placement: "bottom-end",
|
|
1136
1136
|
matchReferenceWidth: !1,
|
|
1137
1137
|
open: a,
|
|
@@ -1144,44 +1144,44 @@ var q = /* @__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__ */ K("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
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: N = !1 }) => {
|
|
1151
|
-
let { nameClassName: ae = "dial-body-semi-text", folderLabelClassName: oe = "dial-tiny-text", folderLeafClassName: se = "dial-tiny-semi-text" } = O?.typography ?? {},
|
|
1152
|
-
status:
|
|
1153
|
-
label:
|
|
1154
|
-
}),
|
|
1151
|
+
let { nameClassName: ae = "dial-body-semi-text", folderLabelClassName: oe = "dial-tiny-text", folderLeafClassName: se = "dial-tiny-semi-text" } = O?.typography ?? {}, z = e.details?.limits?.status, ce = z == null ? void 0 : /* @__PURE__ */ K(Ln, {
|
|
1152
|
+
status: z,
|
|
1153
|
+
label: z === St.LimitReached ? D?.limitReachedLabel ?? "Limit reached" : D?.limitRunningLowLabel ?? "Running low"
|
|
1154
|
+
}), le = P(() => {
|
|
1155
1155
|
t?.(e);
|
|
1156
|
-
}, [e, t]),
|
|
1156
|
+
}, [e, t]), ue = P(() => {
|
|
1157
1157
|
l?.(e);
|
|
1158
|
-
}, [e, l]),
|
|
1158
|
+
}, [e, l]), de = P(() => {
|
|
1159
1159
|
A?.();
|
|
1160
|
-
}, [A]),
|
|
1160
|
+
}, [A]), fe = P(() => {
|
|
1161
1161
|
ie?.();
|
|
1162
|
-
}, [ie]),
|
|
1162
|
+
}, [ie]), pe = P(() => {
|
|
1163
1163
|
u?.(e);
|
|
1164
|
-
}, [e, u]), [
|
|
1164
|
+
}, [e, u]), [me, _e] = R(!1);
|
|
1165
1165
|
F(() => {
|
|
1166
|
-
|
|
1166
|
+
_e(!1);
|
|
1167
1167
|
}, [e.id]);
|
|
1168
|
-
let
|
|
1169
|
-
|
|
1168
|
+
let ve = P(() => {
|
|
1169
|
+
me || (_e(!0), (async () => {
|
|
1170
1170
|
try {
|
|
1171
1171
|
await u?.(e);
|
|
1172
1172
|
} catch {} finally {
|
|
1173
|
-
|
|
1173
|
+
_e(!1);
|
|
1174
1174
|
}
|
|
1175
1175
|
})());
|
|
1176
1176
|
}, [
|
|
1177
1177
|
e,
|
|
1178
1178
|
u,
|
|
1179
|
-
|
|
1180
|
-
]), [
|
|
1179
|
+
me
|
|
1180
|
+
]), [ye, xe] = R(!1);
|
|
1181
1181
|
F(() => {
|
|
1182
1182
|
xe(!1);
|
|
1183
1183
|
}, [e.id]);
|
|
1184
|
-
let
|
|
1184
|
+
let H = P(() => {
|
|
1185
1185
|
if (a) {
|
|
1186
1186
|
xe(!0);
|
|
1187
1187
|
return;
|
|
@@ -1191,29 +1191,29 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
1191
1191
|
e,
|
|
1192
1192
|
i,
|
|
1193
1193
|
a
|
|
1194
|
-
]),
|
|
1194
|
+
]), Se = P(() => {
|
|
1195
1195
|
xe(!1);
|
|
1196
|
-
}, []),
|
|
1196
|
+
}, []), Ce = P(() => {
|
|
1197
1197
|
m?.(e);
|
|
1198
|
-
}, [e, m]),
|
|
1198
|
+
}, [e, m]), we = P(() => {
|
|
1199
1199
|
p?.(e);
|
|
1200
|
-
}, [e, p]),
|
|
1200
|
+
}, [e, p]), Te = P(() => {
|
|
1201
1201
|
g?.(e);
|
|
1202
|
-
}, [e, g]), [
|
|
1202
|
+
}, [e, g]), [Ee, De] = R(On.Idle), [Oe, Ae] = R(void 0), je = L(null);
|
|
1203
1203
|
F(() => {
|
|
1204
|
-
|
|
1204
|
+
je.current = null, De(On.Idle), Ae(void 0);
|
|
1205
1205
|
}, [e.id]);
|
|
1206
|
-
let
|
|
1207
|
-
if (!_ ||
|
|
1206
|
+
let Me = P(() => {
|
|
1207
|
+
if (!_ || je.current === e.id || !g || e.isMyApp !== !0 || v?.(e) === !1) return;
|
|
1208
1208
|
let t = e.id;
|
|
1209
|
-
|
|
1209
|
+
je.current = t, De(On.Loading), (async () => {
|
|
1210
1210
|
try {
|
|
1211
1211
|
let n = await _(e);
|
|
1212
|
-
if (
|
|
1213
|
-
Ae(n),
|
|
1212
|
+
if (je.current !== t) return;
|
|
1213
|
+
Ae(n), De(n == null ? On.Unknown : On.Resolved);
|
|
1214
1214
|
} catch {
|
|
1215
|
-
if (
|
|
1216
|
-
Ae(void 0),
|
|
1215
|
+
if (je.current !== t) return;
|
|
1216
|
+
Ae(void 0), De(On.Unknown);
|
|
1217
1217
|
}
|
|
1218
1218
|
})();
|
|
1219
1219
|
}, [
|
|
@@ -1221,292 +1221,292 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
1221
1221
|
_,
|
|
1222
1222
|
g,
|
|
1223
1223
|
v
|
|
1224
|
-
]), [
|
|
1224
|
+
]), [Ne, Pe] = R(!1);
|
|
1225
1225
|
F(() => {
|
|
1226
|
-
|
|
1226
|
+
Pe(!1);
|
|
1227
1227
|
}, [e.id]);
|
|
1228
|
-
let
|
|
1229
|
-
|
|
1230
|
-
}, [
|
|
1231
|
-
|
|
1232
|
-
}, [
|
|
1228
|
+
let Fe = P((e) => {
|
|
1229
|
+
Pe(e), e && (Me(), j?.());
|
|
1230
|
+
}, [Me, j]), Ie = P(() => {
|
|
1231
|
+
Me(), j?.();
|
|
1232
|
+
}, [Me, j]), Re = P(() => {
|
|
1233
1233
|
j?.();
|
|
1234
|
-
}, [j]),
|
|
1234
|
+
}, [j]), ze = D?.hasPrimaryAction !== !1 && (r?.(e) ?? (e.type === x.Model || e.type === x.Agent || e.type === x.Prompt)), Be = !N && !!ie && ne && (te?.(e) ?? !0), Ve = !N && !!ie && !re && te?.(e) === !0, He = !N && !Be && (ee?.(e) ?? (e.type === x.Model || e.type === x.Toolset || e.type === x.Agent)), We = !N && !!l && !!e.isEditable, Ge = !N && e.isMyApp === !0 && (o?.(e) ?? !0), qe = s?.(e) ?? !0, Je = k?.(e) ?? !1, Ye = e.credentials?.authenticationType ?? y.None, Qe = e.credentials != null && Ye !== y.None ? c(e.credentials) : void 0, $e = !N && Qe != null && (!!S || !!C), tt = e.type === x.Toolset && $e, nt = !!u && (d?.(e) ?? !0), st = nt && !tt && (f?.(e) ?? (e.type === x.Skill && !ze)), lt = nt && !st, ut = !N && e.isMyApp, ft = !N && !!m && e.isMyApp !== !0 && e.sharedWithMe === !0 && (h?.(e) ?? !0), gt = !N && !!g && e.isMyApp === !0 && (!_ || Ee === On.Unknown || Ee === On.Resolved && (Oe ?? 0) > 0) && (v?.(e) ?? !0), _t = I(() => {
|
|
1235
1235
|
let e = [];
|
|
1236
|
-
if (!
|
|
1236
|
+
if (!qe && Ge && e.push({
|
|
1237
1237
|
key: "share",
|
|
1238
1238
|
label: D?.shareLabel ?? "Share",
|
|
1239
|
-
Icon:
|
|
1239
|
+
Icon: ct,
|
|
1240
1240
|
iconClassName: "text-secondary",
|
|
1241
|
-
onClick:
|
|
1242
|
-
}),
|
|
1241
|
+
onClick: H
|
|
1242
|
+
}), We && e.push({
|
|
1243
1243
|
key: "edit",
|
|
1244
1244
|
label: D?.editActionLabel ?? "Edit",
|
|
1245
|
-
Icon:
|
|
1245
|
+
Icon: at,
|
|
1246
1246
|
iconClassName: "text-secondary",
|
|
1247
|
-
onClick:
|
|
1248
|
-
}),
|
|
1247
|
+
onClick: ue
|
|
1248
|
+
}), lt && e.push({
|
|
1249
1249
|
key: "download",
|
|
1250
1250
|
label: D?.downloadActionLabel ?? "Download",
|
|
1251
|
-
Icon:
|
|
1251
|
+
Icon: Ze,
|
|
1252
1252
|
iconClassName: "text-secondary",
|
|
1253
|
-
onClick:
|
|
1254
|
-
}), !
|
|
1253
|
+
onClick: pe
|
|
1254
|
+
}), !Je && He && e.push({
|
|
1255
1255
|
key: "publish",
|
|
1256
1256
|
label: D?.publishLabel ?? "Publish",
|
|
1257
|
-
Icon:
|
|
1257
|
+
Icon: G,
|
|
1258
1258
|
iconClassName: "text-secondary",
|
|
1259
|
-
onClick:
|
|
1260
|
-
}), !
|
|
1259
|
+
onClick: de
|
|
1260
|
+
}), !Je && Be && e.push({
|
|
1261
1261
|
key: "unpublish",
|
|
1262
1262
|
label: D?.unpublishLabel ?? "Unpublish",
|
|
1263
|
-
Icon:
|
|
1263
|
+
Icon: mt,
|
|
1264
1264
|
iconClassName: "text-secondary",
|
|
1265
|
-
onClick:
|
|
1266
|
-
}),
|
|
1265
|
+
onClick: fe
|
|
1266
|
+
}), gt) {
|
|
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:
|
|
1271
|
-
Icon:
|
|
1270
|
+
label: Oe == null ? t : n(Oe),
|
|
1271
|
+
Icon: pt,
|
|
1272
1272
|
danger: !0,
|
|
1273
|
-
onClick:
|
|
1273
|
+
onClick: Te
|
|
1274
1274
|
});
|
|
1275
1275
|
}
|
|
1276
|
-
return
|
|
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: dt,
|
|
1280
|
+
onClick: Ce
|
|
1281
|
+
}), ut && e.push({
|
|
1282
1282
|
key: "delete",
|
|
1283
1283
|
label: D?.deleteActionLabel ?? "Delete",
|
|
1284
|
-
Icon:
|
|
1284
|
+
Icon: dt,
|
|
1285
1285
|
danger: !0,
|
|
1286
|
-
onClick:
|
|
1286
|
+
onClick: we
|
|
1287
1287
|
}), e;
|
|
1288
1288
|
}, [
|
|
1289
|
-
Ye,
|
|
1290
1289
|
qe,
|
|
1291
|
-
|
|
1292
|
-
ut,
|
|
1293
|
-
Xe,
|
|
1290
|
+
Ge,
|
|
1294
1291
|
We,
|
|
1292
|
+
lt,
|
|
1293
|
+
Je,
|
|
1295
1294
|
He,
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1295
|
+
Be,
|
|
1296
|
+
ut,
|
|
1297
|
+
gt,
|
|
1298
|
+
Oe,
|
|
1299
|
+
ft,
|
|
1300
1300
|
D,
|
|
1301
|
-
|
|
1301
|
+
H,
|
|
1302
|
+
ue,
|
|
1303
|
+
pe,
|
|
1302
1304
|
de,
|
|
1303
|
-
me,
|
|
1304
1305
|
fe,
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
]), yt = I(() => vt.map(({ key: e, label: t, Icon: n, iconClassName: r, danger: i, onClick: a }) => ({
|
|
1306
|
+
we,
|
|
1307
|
+
Te,
|
|
1308
|
+
Ce
|
|
1309
|
+
]), vt = I(() => _t.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__ */ K(n, {
|
|
1313
|
+
size: B.SM,
|
|
1314
1314
|
"aria-hidden": !0,
|
|
1315
1315
|
className: r,
|
|
1316
|
-
stroke:
|
|
1316
|
+
stroke: V
|
|
1317
1317
|
}),
|
|
1318
1318
|
danger: i,
|
|
1319
1319
|
onClick: a
|
|
1320
|
-
})), [
|
|
1321
|
-
if (
|
|
1320
|
+
})), [_t]), yt = te?.(e), bt = !N && !!ie && (yt == null || yt && !re), xt = !N && !!g && !!_ && e.isMyApp === !0 && (v?.(e) ?? !0), J = _t.length === 1 && !Ne && !bt && !xt ? _t[0] : void 0, [Y, Ct] = R(!1), X = Ye === y.ApiKey && Qe !== n.ManageCredentials, wt = Ye === y.ApiKey && Qe === n.LogOut, Z = Ye !== y.ApiKey && Qe !== n.ManageCredentials && Qe === n.LogOut, Q = P(() => {
|
|
1321
|
+
if (Qe === n.ManageCredentials) {
|
|
1322
1322
|
w?.();
|
|
1323
1323
|
return;
|
|
1324
1324
|
}
|
|
1325
|
-
if (
|
|
1326
|
-
|
|
1325
|
+
if (X) {
|
|
1326
|
+
Ct((e) => !e);
|
|
1327
1327
|
return;
|
|
1328
1328
|
}
|
|
1329
|
-
if (
|
|
1329
|
+
if (Qe === n.LogOut) {
|
|
1330
1330
|
T?.();
|
|
1331
1331
|
return;
|
|
1332
1332
|
}
|
|
1333
1333
|
S?.(e, { level: b.User });
|
|
1334
1334
|
}, [
|
|
1335
|
-
|
|
1336
|
-
|
|
1335
|
+
Qe,
|
|
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 = Qe === n.ManageCredentials ? (D?.manageCredentialsActionLabel ?? Fn)(Ye) : Ye === y.ApiKey ? Qe === n.LogOut ? D?.changeApiKeyActionLabel ?? "Change API key" : D?.apiKeyActionLabel ?? "API key" : Qe === n.LogOut ? D?.logoutActionLabel ?? "Log out" : D?.loginActionLabel ?? "Log in", Et = Qe === n.ManageCredentials || Ye === y.ApiKey ? /* @__PURE__ */ K(et, {
|
|
1342
|
+
size: B.MD,
|
|
1343
|
+
stroke: V
|
|
1344
|
+
}) : Qe === n.LogOut ? /* @__PURE__ */ K(it, {
|
|
1345
|
+
size: B.MD,
|
|
1346
|
+
stroke: V
|
|
1347
|
+
}) : /* @__PURE__ */ K(rt, {
|
|
1348
|
+
size: B.MD,
|
|
1349
|
+
stroke: V
|
|
1350
|
+
}), Dt = Qe === n.ManageCredentials ? /* @__PURE__ */ K(Ue, {
|
|
1351
|
+
size: B.MD,
|
|
1352
1352
|
className: "rtl:scale-x-[-1]",
|
|
1353
|
-
stroke:
|
|
1354
|
-
}) :
|
|
1355
|
-
size:
|
|
1356
|
-
stroke:
|
|
1353
|
+
stroke: V
|
|
1354
|
+
}) : X ? /* @__PURE__ */ K(Ke, {
|
|
1355
|
+
size: B.MD,
|
|
1356
|
+
stroke: V
|
|
1357
1357
|
}) : void 0, Ot = (t) => {
|
|
1358
|
-
let n = /* @__PURE__ */
|
|
1358
|
+
let n = /* @__PURE__ */ K(t, {
|
|
1359
1359
|
label: Tt,
|
|
1360
1360
|
iconBefore: Et,
|
|
1361
1361
|
iconAfter: Dt,
|
|
1362
1362
|
onClick: Q,
|
|
1363
|
-
"aria-haspopup":
|
|
1364
|
-
"aria-expanded":
|
|
1363
|
+
"aria-haspopup": X ? "dialog" : void 0,
|
|
1364
|
+
"aria-expanded": X ? Y : void 0
|
|
1365
1365
|
});
|
|
1366
|
-
return !
|
|
1366
|
+
return !X || e.credentials == null ? n : /* @__PURE__ */ K(ge, {
|
|
1367
1367
|
placement: "bottom-start",
|
|
1368
1368
|
matchReferenceWidth: !1,
|
|
1369
1369
|
open: Y,
|
|
1370
|
-
onOpenChange:
|
|
1370
|
+
onOpenChange: Ct,
|
|
1371
1371
|
trigger: [],
|
|
1372
1372
|
outsideClosable: !0,
|
|
1373
|
-
renderOverlay: () => /* @__PURE__ */
|
|
1373
|
+
renderOverlay: () => /* @__PURE__ */ K(jn, {
|
|
1374
1374
|
item: e,
|
|
1375
1375
|
level: b.User,
|
|
1376
1376
|
status: e.credentials?.userStatus,
|
|
1377
1377
|
apiKeyAddedWhen: e.credentials?.userApiKeyAddedWhen,
|
|
1378
1378
|
onLogin: S,
|
|
1379
1379
|
onLogout: C,
|
|
1380
|
-
onClose: () =>
|
|
1380
|
+
onClose: () => Ct(!1),
|
|
1381
1381
|
texts: D
|
|
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__ */ K(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__ */ K(s ? he : U, {
|
|
1392
1392
|
label: n,
|
|
1393
|
-
iconBefore: /* @__PURE__ */
|
|
1394
|
-
size:
|
|
1393
|
+
iconBefore: /* @__PURE__ */ K(r, {
|
|
1394
|
+
size: B.MD,
|
|
1395
1395
|
"aria-hidden": !0,
|
|
1396
|
-
stroke:
|
|
1396
|
+
stroke: V
|
|
1397
1397
|
}),
|
|
1398
1398
|
onClick: c
|
|
1399
1399
|
}), At = () => {
|
|
1400
|
-
let t = /* @__PURE__ */
|
|
1401
|
-
items:
|
|
1400
|
+
let t = /* @__PURE__ */ K(ge, {
|
|
1401
|
+
items: vt,
|
|
1402
1402
|
placement: "bottom-end",
|
|
1403
1403
|
matchReferenceWidth: !1,
|
|
1404
|
-
onOpenChange:
|
|
1405
|
-
children: /* @__PURE__ */
|
|
1406
|
-
icon: /* @__PURE__ */
|
|
1407
|
-
size:
|
|
1404
|
+
onOpenChange: Fe,
|
|
1405
|
+
children: /* @__PURE__ */ K(W, {
|
|
1406
|
+
icon: /* @__PURE__ */ K(Xe, {
|
|
1407
|
+
size: B.LG,
|
|
1408
1408
|
"aria-hidden": !0,
|
|
1409
|
-
stroke:
|
|
1409
|
+
stroke: V
|
|
1410
1410
|
}),
|
|
1411
1411
|
"aria-label": D?.manageActionLabel ?? "Manage",
|
|
1412
1412
|
"aria-haspopup": "menu",
|
|
1413
|
-
onMouseEnter:
|
|
1414
|
-
onFocus:
|
|
1413
|
+
onMouseEnter: Ie,
|
|
1414
|
+
onFocus: Ie
|
|
1415
1415
|
})
|
|
1416
1416
|
});
|
|
1417
|
-
return
|
|
1417
|
+
return qe || !a || !Ge ? t : /* @__PURE__ */ K(ge, {
|
|
1418
1418
|
placement: "bottom-end",
|
|
1419
1419
|
matchReferenceWidth: !1,
|
|
1420
|
-
open:
|
|
1420
|
+
open: ye,
|
|
1421
1421
|
onOpenChange: xe,
|
|
1422
1422
|
trigger: [],
|
|
1423
1423
|
outsideClosable: !0,
|
|
1424
|
-
renderOverlay: () => a(e,
|
|
1424
|
+
renderOverlay: () => a(e, Se),
|
|
1425
1425
|
children: t
|
|
1426
1426
|
});
|
|
1427
|
-
}, jt =
|
|
1428
|
-
return /* @__PURE__ */
|
|
1427
|
+
}, jt = tt || ze || st || qe && Ge || Je && Be || Je && He || $e && !tt || vt.length > 0 || Ve;
|
|
1428
|
+
return /* @__PURE__ */ q("div", {
|
|
1429
1429
|
className: "flex flex-col gap-3 px-6 py-4",
|
|
1430
|
-
children: [/* @__PURE__ */
|
|
1430
|
+
children: [/* @__PURE__ */ K(E, {
|
|
1431
1431
|
item: e,
|
|
1432
1432
|
iconSize: 52,
|
|
1433
1433
|
nameClassName: M(ae, 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: ce,
|
|
1437
|
+
footer: e.folder.length > 0 ? /* @__PURE__ */ K(be, {
|
|
1438
1438
|
segments: e.folder,
|
|
1439
1439
|
labelClassName: oe,
|
|
1440
1440
|
leafClassName: se
|
|
1441
1441
|
}) : void 0
|
|
1442
|
-
}), jt && /* @__PURE__ */
|
|
1442
|
+
}), jt && /* @__PURE__ */ q("div", {
|
|
1443
1443
|
className: "flex flex-wrap items-center gap-2 ps-[60px]",
|
|
1444
1444
|
children: [
|
|
1445
|
-
|
|
1446
|
-
|
|
1445
|
+
tt && Ot(wt || Z ? U : ke),
|
|
1446
|
+
ze && /* @__PURE__ */ K(ke, {
|
|
1447
1447
|
label: D?.primaryActionLabel ?? "Use in chat",
|
|
1448
|
-
iconBefore: /* @__PURE__ */
|
|
1449
|
-
onClick:
|
|
1450
|
-
disabled:
|
|
1448
|
+
iconBefore: /* @__PURE__ */ K(ot, { size: B.MD }),
|
|
1449
|
+
onClick: le,
|
|
1450
|
+
disabled: z === St.LimitReached
|
|
1451
1451
|
}),
|
|
1452
|
-
|
|
1452
|
+
st && /* @__PURE__ */ q(ht, { children: [/* @__PURE__ */ K(ke, {
|
|
1453
1453
|
label: D?.downloadActionLabel ?? "Download",
|
|
1454
|
-
iconBefore:
|
|
1455
|
-
size:
|
|
1454
|
+
iconBefore: me ? /* @__PURE__ */ K(Le, {
|
|
1455
|
+
size: B.MD,
|
|
1456
1456
|
"aria-hidden": !0
|
|
1457
|
-
}) : /* @__PURE__ */
|
|
1458
|
-
size:
|
|
1457
|
+
}) : /* @__PURE__ */ K(Ze, {
|
|
1458
|
+
size: B.MD,
|
|
1459
1459
|
"aria-hidden": !0,
|
|
1460
|
-
stroke:
|
|
1460
|
+
stroke: V
|
|
1461
1461
|
}),
|
|
1462
|
-
onClick:
|
|
1463
|
-
disabled:
|
|
1464
|
-
"aria-busy":
|
|
1465
|
-
}),
|
|
1462
|
+
onClick: ve,
|
|
1463
|
+
disabled: me,
|
|
1464
|
+
"aria-busy": me
|
|
1465
|
+
}), me && /* @__PURE__ */ K("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
|
+
qe && Ge && /* @__PURE__ */ K(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
|
+
Je && Be && /* @__PURE__ */ K(U, {
|
|
1479
1479
|
label: D?.unpublishLabel ?? "Unpublish",
|
|
1480
|
-
iconBefore: /* @__PURE__ */
|
|
1481
|
-
size:
|
|
1480
|
+
iconBefore: /* @__PURE__ */ K(mt, {
|
|
1481
|
+
size: B.MD,
|
|
1482
1482
|
"aria-hidden": !0,
|
|
1483
|
-
stroke:
|
|
1483
|
+
stroke: V
|
|
1484
1484
|
}),
|
|
1485
|
-
onClick:
|
|
1486
|
-
onMouseEnter:
|
|
1487
|
-
onFocus:
|
|
1485
|
+
onClick: fe,
|
|
1486
|
+
onMouseEnter: Re,
|
|
1487
|
+
onFocus: Re
|
|
1488
1488
|
}),
|
|
1489
|
-
|
|
1489
|
+
Je && He && /* @__PURE__ */ K(U, {
|
|
1490
1490
|
label: D?.publishLabel ?? "Publish",
|
|
1491
|
-
iconBefore: /* @__PURE__ */ G
|
|
1492
|
-
size:
|
|
1491
|
+
iconBefore: /* @__PURE__ */ K(G, {
|
|
1492
|
+
size: B.MD,
|
|
1493
1493
|
"aria-hidden": !0,
|
|
1494
|
-
stroke:
|
|
1494
|
+
stroke: V
|
|
1495
1495
|
}),
|
|
1496
|
-
onClick:
|
|
1497
|
-
onMouseEnter:
|
|
1498
|
-
onFocus:
|
|
1496
|
+
onClick: de,
|
|
1497
|
+
onMouseEnter: Re,
|
|
1498
|
+
onFocus: Re
|
|
1499
1499
|
}),
|
|
1500
|
-
|
|
1501
|
-
J ? kt(J) : (
|
|
1500
|
+
$e && !tt && Ot(U),
|
|
1501
|
+
J ? kt(J) : (vt.length > 0 || Ve) && 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__ */ q("div", {
|
|
1508
1508
|
className: "flex flex-col gap-5",
|
|
1509
|
-
children: [/* @__PURE__ */
|
|
1509
|
+
children: [/* @__PURE__ */ K(A, {
|
|
1510
1510
|
content: t,
|
|
1511
1511
|
classNames: {
|
|
1512
1512
|
h1: r,
|
|
@@ -1519,9 +1519,9 @@ var q = /* @__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__ */ K("div", {
|
|
1523
1523
|
className: "flex flex-wrap gap-2",
|
|
1524
|
-
children: e.map((e) => /* @__PURE__ */
|
|
1524
|
+
children: e.map((e) => /* @__PURE__ */ K(Gt, { label: e }, e))
|
|
1525
1525
|
})]
|
|
1526
1526
|
});
|
|
1527
1527
|
}, Bn = {
|
|
@@ -1577,7 +1577,7 @@ var q = /* @__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__ */ K("div", {
|
|
1581
1581
|
ref: (t) => {
|
|
1582
1582
|
l.current[e.id] = t;
|
|
1583
1583
|
},
|
|
@@ -1587,14 +1587,14 @@ var q = /* @__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__ */ K("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__ */ q("div", { children: [/* @__PURE__ */ q("div", {
|
|
1598
1598
|
ref: (t) => {
|
|
1599
1599
|
l.current[e.id] = t;
|
|
1600
1600
|
},
|
|
@@ -1605,30 +1605,30 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
1605
1605
|
onClick: () => r(e.id),
|
|
1606
1606
|
onFocus: () => d(e.id),
|
|
1607
1607
|
children: [
|
|
1608
|
-
/* @__PURE__ */
|
|
1609
|
-
size:
|
|
1608
|
+
/* @__PURE__ */ K($e, {
|
|
1609
|
+
size: B.SM,
|
|
1610
1610
|
className: "shrink-0",
|
|
1611
1611
|
"aria-hidden": !0,
|
|
1612
|
-
stroke:
|
|
1612
|
+
stroke: V
|
|
1613
1613
|
}),
|
|
1614
|
-
/* @__PURE__ */
|
|
1614
|
+
/* @__PURE__ */ K("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__ */ K(Ke, {
|
|
1619
|
+
size: B.SM,
|
|
1620
1620
|
className: M("shrink-0 transition-transform", !o && "-rotate-90 rtl:rotate-90"),
|
|
1621
1621
|
"aria-hidden": !0,
|
|
1622
|
-
stroke:
|
|
1622
|
+
stroke: V
|
|
1623
1623
|
})
|
|
1624
1624
|
]
|
|
1625
|
-
}), o && e.items.length > 0 && /* @__PURE__ */
|
|
1625
|
+
}), o && e.items.length > 0 && /* @__PURE__ */ K("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__ */ K("div", {
|
|
1632
1632
|
role: "tree",
|
|
1633
1633
|
"aria-label": o,
|
|
1634
1634
|
onKeyDown: p,
|
|
@@ -1653,58 +1653,58 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
1653
1653
|
type: Q.Markdown,
|
|
1654
1654
|
text: e
|
|
1655
1655
|
};
|
|
1656
|
-
return /* @__PURE__ */
|
|
1656
|
+
return /* @__PURE__ */ q("div", {
|
|
1657
1657
|
className: "flex h-full flex-col gap-4 pb-6",
|
|
1658
1658
|
children: [
|
|
1659
|
-
C && /* @__PURE__ */
|
|
1659
|
+
C && /* @__PURE__ */ q("div", {
|
|
1660
1660
|
className: "flex shrink-0 items-center gap-3",
|
|
1661
|
-
children: [/* @__PURE__ */
|
|
1661
|
+
children: [/* @__PURE__ */ K(ge, {
|
|
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__ */ K(Hn, { ...T }),
|
|
1669
|
+
children: /* @__PURE__ */ K(we, {
|
|
1670
1670
|
label: w,
|
|
1671
|
-
size:
|
|
1671
|
+
size: ve.Small,
|
|
1672
1672
|
isOpen: c,
|
|
1673
1673
|
onClick: () => l(!c)
|
|
1674
1674
|
})
|
|
1675
|
-
}), /* @__PURE__ */
|
|
1675
|
+
}), /* @__PURE__ */ K("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__ */ q(ht, { children: [/* @__PURE__ */ K("p", {
|
|
1681
1681
|
className: M("m-0", v),
|
|
1682
1682
|
children: t
|
|
1683
|
-
}), /* @__PURE__ */
|
|
1684
|
-
/* @__PURE__ */
|
|
1683
|
+
}), /* @__PURE__ */ K("div", { className: M("shrink-0", Bn.divider) })] }),
|
|
1684
|
+
/* @__PURE__ */ q("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__ */ K("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__ */ K(te, {
|
|
1694
1694
|
content: E.text,
|
|
1695
1695
|
headingClassName: y
|
|
1696
1696
|
});
|
|
1697
|
-
case Q.Text: return /* @__PURE__ */
|
|
1697
|
+
case Q.Text: return /* @__PURE__ */ K(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__ */ K("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__ */ K("p", {
|
|
1708
1708
|
className: "m-0",
|
|
1709
1709
|
children: p
|
|
1710
1710
|
});
|
|
@@ -1730,89 +1730,89 @@ var q = /* @__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__ */ K(Ae, {
|
|
1734
1734
|
value: qn(e),
|
|
1735
1735
|
max: Jn(e.total),
|
|
1736
|
-
size:
|
|
1736
|
+
size: ve.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__ */ K("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__ */ q(ht, { children: [/* @__PURE__ */ K("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__ */ K("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__ */ q("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__ */ q("div", {
|
|
1756
1756
|
className: "flex items-baseline justify-between gap-3",
|
|
1757
|
-
children: [/* @__PURE__ */
|
|
1757
|
+
children: [/* @__PURE__ */ K("span", {
|
|
1758
1758
|
className: M("min-w-0 break-words", n, $.valuePrimary),
|
|
1759
1759
|
children: e.label
|
|
1760
|
-
}), /* @__PURE__ */
|
|
1760
|
+
}), /* @__PURE__ */ K("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__ */ K("span", {
|
|
1767
1767
|
className: M(o, $.label),
|
|
1768
1768
|
children: e.noteLabel
|
|
1769
1769
|
}),
|
|
1770
1770
|
d
|
|
1771
1771
|
]
|
|
1772
|
-
}) : /* @__PURE__ */
|
|
1772
|
+
}) : /* @__PURE__ */ q("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__ */ q("div", {
|
|
1775
1775
|
className: "flex min-w-0 flex-1 flex-col",
|
|
1776
1776
|
children: [
|
|
1777
|
-
/* @__PURE__ */
|
|
1777
|
+
/* @__PURE__ */ K("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__ */ q("div", {
|
|
1785
1785
|
className: "flex w-32 shrink-0 flex-col items-end gap-2",
|
|
1786
|
-
children: [/* @__PURE__ */
|
|
1786
|
+
children: [/* @__PURE__ */ K("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__ */ q(ht, { children: [/* @__PURE__ */ K("span", {
|
|
1789
1789
|
className: $.valuePrimary,
|
|
1790
1790
|
children: e.usedLabel
|
|
1791
|
-
}), /* @__PURE__ */
|
|
1791
|
+
}), /* @__PURE__ */ K("span", {
|
|
1792
1792
|
className: $.label,
|
|
1793
1793
|
children: ` / ${e.totalLabel}`
|
|
1794
|
-
})] }) : /* @__PURE__ */
|
|
1794
|
+
})] }) : /* @__PURE__ */ K("span", {
|
|
1795
1795
|
className: $.label,
|
|
1796
1796
|
children: s
|
|
1797
1797
|
})
|
|
1798
1798
|
}), l]
|
|
1799
|
-
}) : /* @__PURE__ */
|
|
1799
|
+
}) : /* @__PURE__ */ q("div", {
|
|
1800
1800
|
className: "flex shrink-0 flex-col items-end",
|
|
1801
|
-
children: [/* @__PURE__ */
|
|
1801
|
+
children: [/* @__PURE__ */ K("span", {
|
|
1802
1802
|
className: M(a, $.valuePrimary),
|
|
1803
1803
|
children: s
|
|
1804
|
-
}), e.noteLabel != null && /* @__PURE__ */
|
|
1804
|
+
}), e.noteLabel != null && /* @__PURE__ */ K("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__ */ q("section", { children: [/* @__PURE__ */ K("p", {
|
|
1811
1811
|
className: M("mb-3 mt-0", t, $.sectionHeading),
|
|
1812
1812
|
children: e.label
|
|
1813
|
-
}), /* @__PURE__ */
|
|
1813
|
+
}), /* @__PURE__ */ K("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__ */ K(er, {
|
|
1816
1816
|
row: e,
|
|
1817
1817
|
layout: n,
|
|
1818
1818
|
labelClassName: r,
|
|
@@ -1823,7 +1823,7 @@ var q = /* @__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__ */ q("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 q = /* @__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__ */ K(tr, {
|
|
1840
1840
|
group: e,
|
|
1841
1841
|
layout: t,
|
|
1842
1842
|
sectionClassName: s,
|
|
@@ -1845,18 +1845,18 @@ var q = /* @__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__ */ K("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__ */ K("div", {
|
|
1854
1854
|
className: "flex flex-col gap-4",
|
|
1855
|
-
children: e.map((e, s) => /* @__PURE__ */
|
|
1855
|
+
children: e.map((e, s) => /* @__PURE__ */ q("div", {
|
|
1856
1856
|
className: "flex flex-col gap-4",
|
|
1857
|
-
children: [s > 0 && /* @__PURE__ */
|
|
1857
|
+
children: [s > 0 && /* @__PURE__ */ K("div", { className: M("shrink-0 border-b", Dn.divider) }), /* @__PURE__ */ K("div", {
|
|
1858
1858
|
className: "px-6",
|
|
1859
|
-
children: /* @__PURE__ */
|
|
1859
|
+
children: /* @__PURE__ */ K(an, {
|
|
1860
1860
|
sectionLabel: e.title,
|
|
1861
1861
|
values: e.specs,
|
|
1862
1862
|
sectionClassName: t,
|
|
@@ -1877,15 +1877,15 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
1877
1877
|
label: e.label,
|
|
1878
1878
|
value: e.value
|
|
1879
1879
|
}));
|
|
1880
|
-
return /* @__PURE__ */
|
|
1880
|
+
return /* @__PURE__ */ q("div", {
|
|
1881
1881
|
className: "flex flex-col gap-4",
|
|
1882
|
-
children: [/* @__PURE__ */
|
|
1882
|
+
children: [/* @__PURE__ */ K(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__ */ K(an, {
|
|
1889
1889
|
sectionLabel: n,
|
|
1890
1890
|
values: s ?? [],
|
|
1891
1891
|
labelClassName: r,
|
|
@@ -1900,13 +1900,13 @@ var q = /* @__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__ */ q("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__ */ K("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__ */ K(ie, { children: e.map((e, n) => /* @__PURE__ */ K("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 q = /* @__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__ */ K("div", {
|
|
1919
1919
|
className: "flex flex-col",
|
|
1920
|
-
children: e.tools.map((e, a) => /* @__PURE__ */
|
|
1920
|
+
children: e.tools.map((e, a) => /* @__PURE__ */ q("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__ */ q("div", {
|
|
1924
1924
|
className: "flex flex-col gap-1",
|
|
1925
|
-
children: [/* @__PURE__ */
|
|
1925
|
+
children: [/* @__PURE__ */ K("span", {
|
|
1926
1926
|
className: t,
|
|
1927
1927
|
children: e.name
|
|
1928
|
-
}), e.description != null && /* @__PURE__ */
|
|
1928
|
+
}), e.description != null && /* @__PURE__ */ K("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__ */ K(or, {
|
|
1934
1934
|
columns: [
|
|
1935
1935
|
"Name",
|
|
1936
1936
|
"Type",
|
|
@@ -1938,11 +1938,11 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
1938
1938
|
],
|
|
1939
1939
|
columnsTemplate: "1fr 1fr auto",
|
|
1940
1940
|
rows: e.inputParams.map((e) => [
|
|
1941
|
-
/* @__PURE__ */
|
|
1941
|
+
/* @__PURE__ */ K("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__ */ K("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 q = /* @__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__ */ K(or, {
|
|
1955
1955
|
columns: ["Key", "Value"],
|
|
1956
|
-
rows: e.annotations.map((e) => [/* @__PURE__ */
|
|
1956
|
+
rows: e.annotations.map((e) => [/* @__PURE__ */ K("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 q = /* @__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: N, onEdit: ae, onDownload: oe, isDownloadVisible: se, isDownloadPrimary:
|
|
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: N, onEdit: ae, onDownload: oe, isDownloadVisible: se, isDownloadPrimary: z, onLoadContentFile: ce, onLoadContentFilePreview: le, renderContentFilePreview: ue, renderContentFileTree: de, renderCredentials: fe, onDelete: pe, onUnshare: B, isUnshareVisible: V, onRevokeShare: he, onFetchRecipientsCount: ge, isRevokeShareVisible: _e, onUnpublish: ve, isUnpublishVisible: ye, onLogin: be, onLogout: xe, texts: H, styles: Se, limitsFooterNote: Ce }) => {
|
|
1982
|
+
let { subViewTitleClassName: we = "dial-body-semi-text", overviewSectionClassName: Te = "dial-caption-text", overviewLabelClassName: Ee = "dial-small-semi-text", overviewValueClassName: De = "dial-small-text", overviewValueTrueClassName: Oe = "dial-small-text", confirmMessageClassName: U = "dial-small-text" } = Se?.typography ?? {}, W = Se?.colors, ke = j({
|
|
1983
|
+
"--cat-details-backdrop": W?.backdrop,
|
|
1984
|
+
"--cat-details-bg": W?.background,
|
|
1985
|
+
"--cat-details-border": W?.border,
|
|
1986
|
+
"--cat-details-divider": W?.divider,
|
|
1987
|
+
"--cat-details-scrollbar": W?.scrollbar,
|
|
1988
|
+
"--cat-details-skeleton": W?.skeleton,
|
|
1989
|
+
"--cat-details-name-text": W?.nameText,
|
|
1990
|
+
"--cat-details-publish-title-text": W?.publishTitleText,
|
|
1991
|
+
"--cat-details-content-text": W?.contentText,
|
|
1992
|
+
"--cat-details-variable-text": W?.variableText,
|
|
1993
|
+
"--cat-details-file-count-text": W?.contentFileCountText,
|
|
1994
|
+
"--cat-api-heading-text": W?.apiHeadingText,
|
|
1995
|
+
"--cat-tools-divider": W?.toolsDivider,
|
|
1996
|
+
"--cat-tools-description-text": W?.toolsDescriptionText,
|
|
1997
|
+
"--cat-grid-border": W?.gridBorder,
|
|
1998
|
+
"--cat-grid-header-text": W?.gridHeaderText,
|
|
1999
|
+
"--cat-grid-header-bg": W?.gridHeaderBackground,
|
|
2000
|
+
"--cat-grid-cell-text": W?.gridCellText,
|
|
2001
|
+
"--cat-grid-cell-divider": W?.gridCellDivider,
|
|
2002
|
+
"--cat-grid-row-even-bg": W?.gridRowEvenBackground,
|
|
2003
|
+
"--cat-cred-surface-bg": W?.credentialsSurfaceBackground,
|
|
2004
|
+
"--cat-cred-active-icon": W?.credentialsActiveIcon,
|
|
2005
|
+
"--cat-cred-banner-icon-bg": W?.credentialsBannerIconBackground,
|
|
2006
|
+
"--cat-cred-description-text": W?.credentialsDescriptionText,
|
|
2007
|
+
"--cat-cred-row-description-text": W?.credentialsRowDescriptionText,
|
|
2008
|
+
"--cat-cred-error-text": W?.credentialsErrorText,
|
|
2009
|
+
"--cat-cred-card-bg": W?.credentialsCardBackground,
|
|
2010
|
+
"--cat-cred-card-icon": W?.credentialsCardIcon,
|
|
2011
|
+
"--cat-cred-card-title-text": W?.credentialsCardTitleText,
|
|
2012
|
+
"--cat-cred-card-description-text": W?.credentialsCardDescriptionText
|
|
2013
|
+
}), [Ae, Me] = R(r), [Ne, Ie] = R(""), [Le, ze] = R(!1), [Be, Ve] = R([]), [He, Ue] = R(!1), [We, Ge] = R(!1), [Ke, qe] = R(!1), Je = L(null), Ye = e.details?.promptContent, Xe = Ye?.selectedFileId, [Ze, Qe] = R(null), [$e, et] = R(!1), [tt, nt] = R(/* @__PURE__ */ new Set()), [rt, it] = R(!1), at = L(null), ot = L(0), st = P((e) => {
|
|
2014
|
+
let t = at.current, n = e?.preview?.type === Q.Image ? e.preview.url : null;
|
|
2015
|
+
t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), at.current = n, Qe(e);
|
|
2016
2016
|
}, []);
|
|
2017
2017
|
F(() => {
|
|
2018
|
-
|
|
2019
|
-
}, [e.id,
|
|
2020
|
-
let e =
|
|
2018
|
+
ot.current += 1, st(null), et(!1), nt(en(Ye?.files ?? [])), it(!1);
|
|
2019
|
+
}, [e.id, Xe]), F(() => () => {
|
|
2020
|
+
let e = at.current;
|
|
2021
2021
|
e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
|
|
2022
2022
|
}, []);
|
|
2023
|
-
let
|
|
2024
|
-
|
|
2023
|
+
let ct = P((e) => {
|
|
2024
|
+
nt((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
|
+
}, []), lt = P(async (e) => {
|
|
2029
|
+
if (e === Xe) {
|
|
2030
|
+
ot.current += 1, st(null), et(!1);
|
|
2031
2031
|
return;
|
|
2032
2032
|
}
|
|
2033
|
-
if (
|
|
2034
|
-
if (
|
|
2035
|
-
|
|
2033
|
+
if (ue == null && ce == null && le == null) return;
|
|
2034
|
+
if (ue != null) {
|
|
2035
|
+
ot.current += 1, st({
|
|
2036
2036
|
id: e,
|
|
2037
2037
|
preview: null
|
|
2038
|
-
}),
|
|
2038
|
+
}), et(!1);
|
|
2039
2039
|
return;
|
|
2040
2040
|
}
|
|
2041
|
-
let t = ++
|
|
2042
|
-
|
|
2041
|
+
let t = ++ot.current;
|
|
2042
|
+
st({
|
|
2043
2043
|
id: e,
|
|
2044
2044
|
preview: null
|
|
2045
|
-
}),
|
|
2045
|
+
}), et(!0);
|
|
2046
2046
|
try {
|
|
2047
|
-
let n =
|
|
2047
|
+
let n = le == null ? await ce?.(e).then((e) => e == null ? void 0 : {
|
|
2048
2048
|
type: Q.Markdown,
|
|
2049
2049
|
text: e
|
|
2050
|
-
}) : await
|
|
2051
|
-
if (
|
|
2050
|
+
}) : await le(e);
|
|
2051
|
+
if (ot.current !== t) {
|
|
2052
2052
|
n?.type === Q.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
|
|
2053
2053
|
return;
|
|
2054
2054
|
}
|
|
2055
|
-
|
|
2055
|
+
st({
|
|
2056
2056
|
id: e,
|
|
2057
2057
|
preview: n ?? null
|
|
2058
2058
|
});
|
|
2059
2059
|
} catch {
|
|
2060
|
-
if (
|
|
2061
|
-
|
|
2060
|
+
if (ot.current !== t) return;
|
|
2061
|
+
st({
|
|
2062
2062
|
id: e,
|
|
2063
2063
|
preview: null
|
|
2064
2064
|
});
|
|
2065
2065
|
} finally {
|
|
2066
|
-
|
|
2066
|
+
ot.current === t && et(!1);
|
|
2067
2067
|
}
|
|
2068
2068
|
}, [
|
|
2069
|
-
|
|
2069
|
+
Xe,
|
|
2070
|
+
ce,
|
|
2070
2071
|
le,
|
|
2071
2072
|
ue,
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
]), ht = nt?.id ?? tt, gt = () => nt == null ? null : nt.preview == null ? {
|
|
2073
|
+
st
|
|
2074
|
+
]), ut = Ze?.id ?? Xe, dt = () => Ze == null ? null : Ze.preview == null ? {
|
|
2075
2075
|
type: Q.Text,
|
|
2076
|
-
text:
|
|
2077
|
-
} :
|
|
2078
|
-
if (!h ||
|
|
2076
|
+
text: H?.contentFileErrorLabel ?? "Failed to load this file."
|
|
2077
|
+
} : Ze.preview, ft = Ze != null && ue != null ? ue(Ze.id, tn(Ye?.files ?? [], Ze.id) ?? "") : void 0, pt = P(() => {
|
|
2078
|
+
if (!h || Je.current === e.id) return;
|
|
2079
2079
|
let t = e.id;
|
|
2080
|
-
|
|
2080
|
+
Je.current = t, Ue(!0), Ge(!1), (async () => {
|
|
2081
2081
|
try {
|
|
2082
2082
|
let n = await h(e);
|
|
2083
|
-
if (
|
|
2084
|
-
|
|
2083
|
+
if (Je.current !== t) return;
|
|
2084
|
+
Ve(n), qe(!0), Ue(!1);
|
|
2085
2085
|
} catch {
|
|
2086
|
-
if (
|
|
2087
|
-
|
|
2086
|
+
if (Je.current !== t) return;
|
|
2087
|
+
Ge(!0), Ue(!1), Je.current = null;
|
|
2088
2088
|
}
|
|
2089
2089
|
})();
|
|
2090
2090
|
}, [h, e]);
|
|
2091
2091
|
F(() => {
|
|
2092
|
-
|
|
2093
|
-
}, [
|
|
2094
|
-
let
|
|
2095
|
-
|
|
2096
|
-
}, [
|
|
2092
|
+
Le && pt();
|
|
2093
|
+
}, [Le, pt]);
|
|
2094
|
+
let mt = P((e, t) => {
|
|
2095
|
+
Je.current = null, qe(!1), pt(), O?.(e, t);
|
|
2096
|
+
}, [pt, O]), G = yt({
|
|
2097
2097
|
item: e,
|
|
2098
|
-
history:
|
|
2098
|
+
history: Be,
|
|
2099
2099
|
folderItems: _,
|
|
2100
2100
|
hasWriteAccess: T,
|
|
2101
2101
|
defaultAuthor: E,
|
|
2102
2102
|
onCreateFolder: k,
|
|
2103
2103
|
onPublish: D ?? fr,
|
|
2104
|
-
onPublishSuccess:
|
|
2104
|
+
onPublishSuccess: mt,
|
|
2105
2105
|
onPublishError: ee,
|
|
2106
2106
|
onFetchExistingRules: ne
|
|
2107
|
-
}),
|
|
2108
|
-
hasSelectedFolder:
|
|
2109
|
-
hasExistingPublicationInFolder:
|
|
2110
|
-
hasWriteAccess:
|
|
2111
|
-
isSubmitting:
|
|
2112
|
-
hasSubmitError:
|
|
2107
|
+
}), bt = e.type === x.Toolset && g(e.credentials), xt = I(() => vt({
|
|
2108
|
+
hasSelectedFolder: G.selectedFolderPath != null,
|
|
2109
|
+
hasExistingPublicationInFolder: G.hasExistingPublicationInFolder,
|
|
2110
|
+
hasWriteAccess: G.hasWriteAccess,
|
|
2111
|
+
isSubmitting: G.isSubmitting,
|
|
2112
|
+
hasSubmitError: G.hasSubmitError
|
|
2113
2113
|
}), [
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
]), [
|
|
2114
|
+
G.selectedFolderPath,
|
|
2115
|
+
G.hasExistingPublicationInFolder,
|
|
2116
|
+
G.hasWriteAccess,
|
|
2117
|
+
G.isSubmitting,
|
|
2118
|
+
G.hasSubmitError
|
|
2119
|
+
]), [St, Ct] = R(!1), [X, wt] = R(null), [Z, Tt] = R(!1), [Et, Dt] = R(null), [Ot, kt] = R(null), [At, jt] = R(null);
|
|
2120
2120
|
F(() => {
|
|
2121
|
-
|
|
2121
|
+
Me(r);
|
|
2122
2122
|
}, [e.id, r]), F(() => {
|
|
2123
|
-
|
|
2123
|
+
Ie(""), ze(!1), G.reset(), Ve([]), Ge(!1), Ue(!1), qe(!1), Je.current = null, jt(null), Ct(!1), wt(null), Tt(!1), Dt(null), kt(null);
|
|
2124
2124
|
}, [e.id]);
|
|
2125
|
-
let
|
|
2125
|
+
let Mt = !a && !!ve && ye?.(e) === !0;
|
|
2126
2126
|
F(() => {
|
|
2127
|
-
|
|
2128
|
-
}, [
|
|
2129
|
-
let
|
|
2130
|
-
|
|
2131
|
-
}, []),
|
|
2132
|
-
|
|
2133
|
-
}, [e.credentials]),
|
|
2134
|
-
|
|
2135
|
-
}, []),
|
|
2136
|
-
|
|
2137
|
-
}, []),
|
|
2127
|
+
Mt && pt();
|
|
2128
|
+
}, [Mt, pt]);
|
|
2129
|
+
let Nt = P(() => Ct(!0), []), Pt = P(() => Ct(!1), []), Ft = P(() => {
|
|
2130
|
+
wt(Y.Delete);
|
|
2131
|
+
}, []), It = P((n) => {
|
|
2132
|
+
kt(n ?? (e.credentials == null ? null : t(e.credentials))), wt(Y.Logout);
|
|
2133
|
+
}, [e.credentials]), Lt = P(() => {
|
|
2134
|
+
wt(Y.Unshare);
|
|
2135
|
+
}, []), Rt = P(() => {
|
|
2136
|
+
wt(Y.RevokeAccess);
|
|
2137
|
+
}, []), zt = I(() => {
|
|
2138
2138
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
2139
|
-
for (let n of
|
|
2139
|
+
for (let n of Be) {
|
|
2140
2140
|
let r = n.folderPath.join("/");
|
|
2141
2141
|
e.has(r) || (e.add(r), t.push({
|
|
2142
2142
|
key: r,
|
|
@@ -2144,352 +2144,328 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
2144
2144
|
}));
|
|
2145
2145
|
}
|
|
2146
2146
|
return t;
|
|
2147
|
-
}, [
|
|
2148
|
-
|
|
2149
|
-
}, []),
|
|
2150
|
-
|
|
2151
|
-
}, []),
|
|
2152
|
-
|
|
2153
|
-
}, [
|
|
2154
|
-
if (!(
|
|
2155
|
-
|
|
2147
|
+
}, [Be]), Bt = Ke && zt.length > 0, Vt = P((e) => e || (A?.rootFolderLabel ?? "Organization"), [A]), Ut = P(() => {
|
|
2148
|
+
wt(Y.Unpublish);
|
|
2149
|
+
}, []), Wt = P((e) => {
|
|
2150
|
+
Dt(e), wt(Y.DeleteApiKey);
|
|
2151
|
+
}, []), Gt = P(() => {
|
|
2152
|
+
Z || (wt(null), Dt(null), kt(null), jt(null));
|
|
2153
|
+
}, [Z]), Kt = P(async () => {
|
|
2154
|
+
if (!(Z || X == null)) {
|
|
2155
|
+
Tt(!0);
|
|
2156
2156
|
try {
|
|
2157
|
-
switch (
|
|
2157
|
+
switch (X) {
|
|
2158
2158
|
case Y.Delete:
|
|
2159
|
-
await
|
|
2159
|
+
await pe?.(e);
|
|
2160
2160
|
break;
|
|
2161
2161
|
case Y.Unshare:
|
|
2162
|
-
await
|
|
2162
|
+
await B?.(e);
|
|
2163
2163
|
break;
|
|
2164
2164
|
case Y.RevokeAccess:
|
|
2165
|
-
await
|
|
2165
|
+
await he?.(e);
|
|
2166
2166
|
break;
|
|
2167
2167
|
case Y.Logout:
|
|
2168
|
-
|
|
2168
|
+
Ot != null && await xe?.(e, { level: Ot });
|
|
2169
2169
|
break;
|
|
2170
2170
|
case Y.DeleteApiKey:
|
|
2171
|
-
|
|
2171
|
+
Et != null && await xe?.(e, { level: Et });
|
|
2172
2172
|
break;
|
|
2173
2173
|
case Y.Unpublish: {
|
|
2174
|
-
let t = dr(
|
|
2175
|
-
t != null && await
|
|
2174
|
+
let t = dr(zt, At);
|
|
2175
|
+
t != null && await ve?.(e, t.segments);
|
|
2176
2176
|
break;
|
|
2177
2177
|
}
|
|
2178
2178
|
}
|
|
2179
|
-
|
|
2179
|
+
wt(null), Dt(null), kt(null), jt(null), xr.has(X) && o();
|
|
2180
2180
|
} catch {
|
|
2181
|
-
|
|
2181
|
+
wt(null), Dt(null), kt(null), jt(null);
|
|
2182
2182
|
} finally {
|
|
2183
|
-
|
|
2183
|
+
Tt(!1);
|
|
2184
2184
|
}
|
|
2185
2185
|
}
|
|
2186
2186
|
}, [
|
|
2187
|
-
|
|
2187
|
+
Z,
|
|
2188
|
+
X,
|
|
2188
2189
|
Et,
|
|
2189
|
-
|
|
2190
|
-
Mt,
|
|
2190
|
+
Ot,
|
|
2191
2191
|
e,
|
|
2192
|
-
|
|
2193
|
-
|
|
2192
|
+
pe,
|
|
2193
|
+
B,
|
|
2194
|
+
he,
|
|
2194
2195
|
ve,
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
Ee,
|
|
2196
|
+
At,
|
|
2197
|
+
zt,
|
|
2198
|
+
xe,
|
|
2199
2199
|
o
|
|
2200
2200
|
]);
|
|
2201
2201
|
F(() => {
|
|
2202
|
-
if (!n) return;
|
|
2202
|
+
if (!n || X == null) return;
|
|
2203
2203
|
let e = (e) => {
|
|
2204
|
-
|
|
2205
|
-
if (Et != null) {
|
|
2206
|
-
Yt();
|
|
2207
|
-
return;
|
|
2208
|
-
}
|
|
2209
|
-
o();
|
|
2210
|
-
}
|
|
2204
|
+
e.key === "Escape" && (e.stopPropagation(), Gt());
|
|
2211
2205
|
};
|
|
2212
|
-
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
2206
|
+
return document.addEventListener("keydown", e, !0), () => document.removeEventListener("keydown", e, !0);
|
|
2213
2207
|
}, [
|
|
2214
2208
|
n,
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
Yt
|
|
2209
|
+
X,
|
|
2210
|
+
Gt
|
|
2218
2211
|
]);
|
|
2219
|
-
let
|
|
2220
|
-
|
|
2221
|
-
}, [
|
|
2222
|
-
await
|
|
2223
|
-
}, [
|
|
2224
|
-
let t = !
|
|
2225
|
-
|
|
2212
|
+
let qt = P(() => ze(!0), []), Jt = P(() => {
|
|
2213
|
+
ze(!1), G.reset();
|
|
2214
|
+
}, [G]), Yt = P(async () => {
|
|
2215
|
+
await G.handleSubmit() && Jt();
|
|
2216
|
+
}, [G, Jt]), Xt = P(() => {
|
|
2217
|
+
let t = !Ae;
|
|
2218
|
+
Me(t), s?.(e.id, t);
|
|
2226
2219
|
}, [
|
|
2227
|
-
|
|
2220
|
+
Ae,
|
|
2228
2221
|
e.id,
|
|
2229
2222
|
s
|
|
2230
|
-
]),
|
|
2223
|
+
]), Zt = I(() => {
|
|
2231
2224
|
let t = [], n = lr.has(e.type);
|
|
2232
2225
|
return n || t.push({
|
|
2233
2226
|
id: J.About,
|
|
2234
|
-
label:
|
|
2227
|
+
label: H?.tabAboutLabel ?? "About"
|
|
2235
2228
|
}), (n || e.details?.promptContent != null) && t.push({
|
|
2236
2229
|
id: J.Content,
|
|
2237
|
-
label:
|
|
2230
|
+
label: H?.tabContentLabel ?? "Details"
|
|
2238
2231
|
}), e.details?.overview != null && t.push({
|
|
2239
2232
|
id: J.Overview,
|
|
2240
|
-
label:
|
|
2233
|
+
label: H?.tabOverviewLabel ?? "Overview"
|
|
2241
2234
|
}), e.details?.pricing != null && t.push({
|
|
2242
2235
|
id: J.Pricing,
|
|
2243
|
-
label:
|
|
2236
|
+
label: H?.tabPricingLabel ?? "Pricing"
|
|
2244
2237
|
}), e.details?.limits != null && t.push({
|
|
2245
2238
|
id: J.Limits,
|
|
2246
|
-
label:
|
|
2239
|
+
label: H?.tabLimitsLabel ?? "Limits"
|
|
2247
2240
|
}), e.details?.tools != null && t.push({
|
|
2248
2241
|
id: J.Tools,
|
|
2249
|
-
label:
|
|
2242
|
+
label: H?.tabToolsLabel ?? "Tools"
|
|
2250
2243
|
}), ur(e.details?.api) && t.push({
|
|
2251
2244
|
id: J.Api,
|
|
2252
|
-
label:
|
|
2245
|
+
label: H?.tabConnectLabel ?? "Connect"
|
|
2253
2246
|
}), t;
|
|
2254
|
-
}, [e,
|
|
2247
|
+
}, [e, H]), Qt = L(null);
|
|
2255
2248
|
F(() => {
|
|
2256
|
-
let t =
|
|
2257
|
-
|
|
2249
|
+
let t = Qt.current !== e.id;
|
|
2250
|
+
Qt.current = e.id, (t || !Zt.some((e) => e.id === Ne)) && Ie(Zt[0]?.id ?? "");
|
|
2258
2251
|
}, [
|
|
2259
2252
|
e.id,
|
|
2260
|
-
|
|
2261
|
-
|
|
2253
|
+
Zt,
|
|
2254
|
+
Ne
|
|
2262
2255
|
]);
|
|
2263
|
-
let
|
|
2264
|
-
switch (
|
|
2256
|
+
let $t = H?.overviewYesLabel ?? "Yes", nn = H?.overviewNoLabel ?? "No", rn = H?.ariaLabel ?? "Item details", an = H?.closeAriaLabel ?? "Close", on = Ae ? H?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : H?.addToFavoritesAriaLabel ?? "Add to favorites", sn = H?.publishTitle ?? "Publish", cn = H?.backToDetailsAriaLabel ?? "Back", ln = H?.cancelLabel ?? "Cancel", dn = I(() => {
|
|
2257
|
+
switch (X) {
|
|
2265
2258
|
case Y.Delete: {
|
|
2266
|
-
let t =
|
|
2259
|
+
let t = H?.deleteActionLabel ?? "Delete";
|
|
2267
2260
|
return {
|
|
2268
|
-
title:
|
|
2269
|
-
message:
|
|
2261
|
+
title: H?.deleteConfirmTitle ?? t,
|
|
2262
|
+
message: H?.deleteConfirmMessage?.(e.name) ?? /* @__PURE__ */ q(ht, { children: [
|
|
2270
2263
|
"Are you sure you want to delete ",
|
|
2271
|
-
/* @__PURE__ */
|
|
2264
|
+
/* @__PURE__ */ K("strong", { children: e.name }),
|
|
2272
2265
|
"? This action is permanent and cannot be undone."
|
|
2273
2266
|
] }),
|
|
2274
|
-
consequences:
|
|
2267
|
+
consequences: H?.deleteConfirmConsequences ?? hr,
|
|
2275
2268
|
confirmLabel: t,
|
|
2276
|
-
loadingStatusLabel:
|
|
2277
|
-
variant:
|
|
2269
|
+
loadingStatusLabel: H?.deletingStatusLabel ?? "Deleting",
|
|
2270
|
+
variant: me.Danger
|
|
2278
2271
|
};
|
|
2279
2272
|
}
|
|
2280
2273
|
case Y.Unshare: {
|
|
2281
|
-
let t =
|
|
2274
|
+
let t = H?.unshareLabel ?? "Remove from My List";
|
|
2282
2275
|
return {
|
|
2283
|
-
title:
|
|
2284
|
-
message:
|
|
2276
|
+
title: H?.unshareConfirmTitle ?? t,
|
|
2277
|
+
message: H?.unshareConfirmMessage?.(e.name) ?? /* @__PURE__ */ q(ht, { children: [
|
|
2285
2278
|
"Remove ",
|
|
2286
|
-
/* @__PURE__ */
|
|
2279
|
+
/* @__PURE__ */ K("strong", { children: e.name }),
|
|
2287
2280
|
" from your list? You'll need a new invitation to access it again."
|
|
2288
2281
|
] }),
|
|
2289
|
-
consequences:
|
|
2282
|
+
consequences: H?.unshareConfirmConsequences ?? gr,
|
|
2290
2283
|
confirmLabel: t,
|
|
2291
|
-
loadingStatusLabel:
|
|
2292
|
-
variant:
|
|
2284
|
+
loadingStatusLabel: H?.unsharingStatusLabel ?? "Removing",
|
|
2285
|
+
variant: me.Info
|
|
2293
2286
|
};
|
|
2294
2287
|
}
|
|
2295
2288
|
case Y.RevokeAccess: {
|
|
2296
|
-
let t =
|
|
2289
|
+
let t = H?.revokeShareLabel ?? "Revoke access";
|
|
2297
2290
|
return {
|
|
2298
|
-
title:
|
|
2299
|
-
message:
|
|
2291
|
+
title: H?.revokeShareConfirmTitle ?? t,
|
|
2292
|
+
message: H?.revokeShareConfirmMessage?.(e.name) ?? /* @__PURE__ */ q(ht, { children: [
|
|
2300
2293
|
"Revoke shared access to ",
|
|
2301
|
-
/* @__PURE__ */
|
|
2294
|
+
/* @__PURE__ */ K("strong", { children: e.name }),
|
|
2302
2295
|
"? Anyone you shared it with will lose access."
|
|
2303
2296
|
] }),
|
|
2304
|
-
consequences:
|
|
2297
|
+
consequences: H?.revokeShareConfirmConsequences ?? vr,
|
|
2305
2298
|
confirmLabel: t,
|
|
2306
|
-
loadingStatusLabel:
|
|
2307
|
-
variant:
|
|
2299
|
+
loadingStatusLabel: H?.revokingShareStatusLabel ?? "Revoking access",
|
|
2300
|
+
variant: me.Danger
|
|
2308
2301
|
};
|
|
2309
2302
|
}
|
|
2310
2303
|
case Y.Unpublish: {
|
|
2311
|
-
let t =
|
|
2304
|
+
let t = H?.unpublishLabel ?? "Unpublish", n = zt.length === 1, r = n ? Vt(zt[0].key) : "", i = H?.unpublishConfirmMessage?.(e.name, r) ?? /* @__PURE__ */ q(ht, { children: [
|
|
2312
2305
|
"Unpublish ",
|
|
2313
|
-
/* @__PURE__ */
|
|
2306
|
+
/* @__PURE__ */ K("strong", { children: e.name }),
|
|
2314
2307
|
" from \"",
|
|
2315
2308
|
r,
|
|
2316
2309
|
"\"? The request is submitted for admin approval."
|
|
2317
|
-
] }), a =
|
|
2310
|
+
] }), a = H?.unpublishSelectFolderMessage?.(e.name) ?? /* @__PURE__ */ q(ht, { children: [
|
|
2318
2311
|
"Choose which folder to unpublish ",
|
|
2319
|
-
/* @__PURE__ */
|
|
2312
|
+
/* @__PURE__ */ K("strong", { children: e.name }),
|
|
2320
2313
|
" from. The request is submitted for admin approval."
|
|
2321
2314
|
] });
|
|
2322
2315
|
return {
|
|
2323
|
-
title:
|
|
2316
|
+
title: H?.unpublishConfirmTitle ?? t,
|
|
2324
2317
|
message: n ? i : a,
|
|
2325
|
-
consequences:
|
|
2318
|
+
consequences: H?.unpublishConfirmConsequences ?? _r,
|
|
2326
2319
|
confirmLabel: t,
|
|
2327
|
-
loadingStatusLabel:
|
|
2328
|
-
variant:
|
|
2320
|
+
loadingStatusLabel: H?.unpublishingStatusLabel ?? "Requesting unpublish",
|
|
2321
|
+
variant: me.Danger
|
|
2329
2322
|
};
|
|
2330
2323
|
}
|
|
2331
2324
|
case Y.Logout: {
|
|
2332
|
-
let e =
|
|
2325
|
+
let e = H?.logoutActionLabel ?? "Log out";
|
|
2333
2326
|
return {
|
|
2334
2327
|
title: e,
|
|
2335
|
-
message:
|
|
2328
|
+
message: H?.logoutConfirmMessage ?? "Are you sure you want to log out?",
|
|
2336
2329
|
consequences: void 0,
|
|
2337
2330
|
confirmLabel: e,
|
|
2338
|
-
loadingStatusLabel:
|
|
2339
|
-
variant:
|
|
2331
|
+
loadingStatusLabel: H?.loggingOutStatusLabel ?? "Logging out",
|
|
2332
|
+
variant: me.Info
|
|
2340
2333
|
};
|
|
2341
2334
|
}
|
|
2342
2335
|
case Y.DeleteApiKey: {
|
|
2343
|
-
let e =
|
|
2336
|
+
let e = H?.deleteActionLabel ?? "Delete", t = Et ?? b.User;
|
|
2344
2337
|
return {
|
|
2345
2338
|
title: e,
|
|
2346
|
-
message: (
|
|
2339
|
+
message: (H?.deleteApiKeyConfirmMessage ?? br)(t),
|
|
2347
2340
|
consequences: void 0,
|
|
2348
2341
|
confirmLabel: e,
|
|
2349
|
-
loadingStatusLabel:
|
|
2350
|
-
variant:
|
|
2351
|
-
cardVariant:
|
|
2342
|
+
loadingStatusLabel: H?.deletingStatusLabel ?? "Deleting",
|
|
2343
|
+
variant: me.Danger,
|
|
2344
|
+
cardVariant: me.Info
|
|
2352
2345
|
};
|
|
2353
2346
|
}
|
|
2354
2347
|
default: return null;
|
|
2355
2348
|
}
|
|
2356
2349
|
}, [
|
|
2357
|
-
|
|
2350
|
+
X,
|
|
2358
2351
|
e.name,
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
]),
|
|
2364
|
-
title:
|
|
2365
|
-
isBackDisabled:
|
|
2366
|
-
onBack:
|
|
2367
|
-
} :
|
|
2368
|
-
title:
|
|
2369
|
-
isBackDisabled:
|
|
2370
|
-
onBack:
|
|
2371
|
-
} :
|
|
2372
|
-
title:
|
|
2352
|
+
Et,
|
|
2353
|
+
H,
|
|
2354
|
+
zt,
|
|
2355
|
+
Vt
|
|
2356
|
+
]), fn = dn != null, pn = X === Y.Unpublish && dr(zt, At) == null, mn = fn || Le || St, hn = e.credentials == null ? "" : (H?.credentialsManagementTitle ?? yr)(e.credentials.authenticationType), gn = fn ? {
|
|
2357
|
+
title: dn.title,
|
|
2358
|
+
isBackDisabled: Z,
|
|
2359
|
+
onBack: Gt
|
|
2360
|
+
} : Le ? {
|
|
2361
|
+
title: sn,
|
|
2362
|
+
isBackDisabled: G.isSubmitting,
|
|
2363
|
+
onBack: Jt
|
|
2364
|
+
} : St ? {
|
|
2365
|
+
title: hn,
|
|
2373
2366
|
isBackDisabled: !1,
|
|
2374
|
-
onBack:
|
|
2375
|
-
} : null,
|
|
2376
|
-
return /* @__PURE__ */
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2367
|
+
onBack: Pt
|
|
2368
|
+
} : null, _n = gn?.title ?? rn;
|
|
2369
|
+
return /* @__PURE__ */ q(Pe, {
|
|
2370
|
+
open: n,
|
|
2371
|
+
onClose: o,
|
|
2372
|
+
header: gn?.title,
|
|
2373
|
+
ariaLabel: _n,
|
|
2374
|
+
onBack: gn?.onBack,
|
|
2375
|
+
backAriaLabel: cn,
|
|
2376
|
+
backDisabled: gn?.isBackDisabled,
|
|
2377
|
+
hideClose: gn != null,
|
|
2378
|
+
closeAriaLabel: an,
|
|
2379
|
+
headerActions: gn == null && !a && c?.(e) !== !1 ? /* @__PURE__ */ K(Ht, {
|
|
2380
|
+
isStarred: Ae,
|
|
2381
|
+
ariaLabel: on,
|
|
2382
|
+
onClick: Xt
|
|
2383
|
+
}) : void 0,
|
|
2384
|
+
style: ke,
|
|
2385
|
+
overlayStyle: ke,
|
|
2386
|
+
className: Dn.panel,
|
|
2387
|
+
overlayClassName: Dn.backdrop,
|
|
2388
|
+
headerClassName: Dn.divider,
|
|
2389
|
+
titleClassName: M(we, Dn.publishTitle),
|
|
2390
|
+
bodyClassName: "flex flex-col overflow-hidden",
|
|
2387
2391
|
children: [
|
|
2388
|
-
/* @__PURE__ */
|
|
2389
|
-
className: "flex shrink-0 items-center gap-2 px-6 py-3",
|
|
2390
|
-
children: [bn != null && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(we, {
|
|
2391
|
-
icon: /* @__PURE__ */ G(Ye, {
|
|
2392
|
-
className: "rtl:scale-x-[-1]",
|
|
2393
|
-
stroke: B
|
|
2394
|
-
}),
|
|
2395
|
-
"aria-label": pn,
|
|
2396
|
-
disabled: bn.isBackDisabled,
|
|
2397
|
-
onClick: bn.onBack
|
|
2398
|
-
}), /* @__PURE__ */ G("span", {
|
|
2399
|
-
className: M("flex-1", ke, Dn.publishTitle),
|
|
2400
|
-
children: bn.title
|
|
2401
|
-
})] }), bn == null && /* @__PURE__ */ K(W, { children: [
|
|
2402
|
-
/* @__PURE__ */ G("div", { className: "flex-1" }),
|
|
2403
|
-
!a && c?.(e) !== !1 && /* @__PURE__ */ G(Ht, {
|
|
2404
|
-
isStarred: Re,
|
|
2405
|
-
ariaLabel: dn,
|
|
2406
|
-
onClick: nn
|
|
2407
|
-
}),
|
|
2408
|
-
/* @__PURE__ */ G(he, {
|
|
2409
|
-
onClose: o,
|
|
2410
|
-
size: be.Standard,
|
|
2411
|
-
ariaLabel: ln
|
|
2412
|
-
})
|
|
2413
|
-
] })]
|
|
2414
|
-
}),
|
|
2415
|
-
/* @__PURE__ */ G("div", { className: M("shrink-0", Dn.divider) }),
|
|
2416
|
-
/* @__PURE__ */ K("div", {
|
|
2392
|
+
/* @__PURE__ */ q("div", {
|
|
2417
2393
|
className: M("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", Dn.content),
|
|
2418
2394
|
children: [
|
|
2419
|
-
|
|
2395
|
+
fn && /* @__PURE__ */ K(C, {
|
|
2420
2396
|
item: e,
|
|
2421
|
-
message:
|
|
2422
|
-
consequences:
|
|
2423
|
-
variant:
|
|
2424
|
-
messageClassName:
|
|
2397
|
+
message: dn.message,
|
|
2398
|
+
consequences: dn.consequences,
|
|
2399
|
+
variant: dn.cardVariant ?? dn.variant,
|
|
2400
|
+
messageClassName: U,
|
|
2425
2401
|
styles: { colors: {
|
|
2426
|
-
messageText:
|
|
2427
|
-
consequenceText:
|
|
2428
|
-
cardBackground:
|
|
2429
|
-
cardDangerBackground:
|
|
2402
|
+
messageText: W?.confirmMessageText,
|
|
2403
|
+
consequenceText: W?.confirmConsequenceText,
|
|
2404
|
+
cardBackground: W?.infoCardBackground,
|
|
2405
|
+
cardDangerBackground: W?.infoCardDangerBackground
|
|
2430
2406
|
} },
|
|
2431
|
-
children:
|
|
2432
|
-
ariaLabel:
|
|
2433
|
-
value:
|
|
2434
|
-
onChange:
|
|
2435
|
-
disabled:
|
|
2436
|
-
items:
|
|
2407
|
+
children: X === Y.Unpublish && zt.length > 1 && /* @__PURE__ */ K(je, {
|
|
2408
|
+
ariaLabel: H?.unpublishFolderGroupAriaLabel ?? "Published folders",
|
|
2409
|
+
value: At ?? void 0,
|
|
2410
|
+
onChange: jt,
|
|
2411
|
+
disabled: Z,
|
|
2412
|
+
items: zt.map((e) => ({
|
|
2437
2413
|
value: e.key,
|
|
2438
|
-
label:
|
|
2414
|
+
label: Vt(e.key)
|
|
2439
2415
|
})),
|
|
2440
|
-
radioClassName:
|
|
2416
|
+
radioClassName: U
|
|
2441
2417
|
})
|
|
2442
2418
|
}),
|
|
2443
|
-
!
|
|
2419
|
+
!fn && !Le && St && /* @__PURE__ */ K(En, {
|
|
2444
2420
|
item: e,
|
|
2445
|
-
onLogin:
|
|
2446
|
-
onRequestLogout:
|
|
2447
|
-
onRequestDeleteApiKey:
|
|
2448
|
-
texts:
|
|
2449
|
-
detailsStyles:
|
|
2421
|
+
onLogin: be,
|
|
2422
|
+
onRequestLogout: It,
|
|
2423
|
+
onRequestDeleteApiKey: Wt,
|
|
2424
|
+
texts: H,
|
|
2425
|
+
detailsStyles: Se
|
|
2450
2426
|
}),
|
|
2451
|
-
!
|
|
2427
|
+
!fn && Le && /* @__PURE__ */ K("div", {
|
|
2452
2428
|
className: "p-[22px]",
|
|
2453
|
-
children: /* @__PURE__ */
|
|
2429
|
+
children: /* @__PURE__ */ K(_t, {
|
|
2454
2430
|
resource: {
|
|
2455
2431
|
title: e.name,
|
|
2456
2432
|
version: e.version,
|
|
2457
2433
|
type: e.type,
|
|
2458
2434
|
iconUrl: e.iconUrl
|
|
2459
2435
|
},
|
|
2460
|
-
history:
|
|
2461
|
-
isHistoryLoading:
|
|
2462
|
-
hasHistoryError:
|
|
2463
|
-
folderItems:
|
|
2464
|
-
selectedFolderPath:
|
|
2465
|
-
onSelectedFolderPathChange:
|
|
2466
|
-
onCreateFolder:
|
|
2436
|
+
history: Be,
|
|
2437
|
+
isHistoryLoading: He,
|
|
2438
|
+
hasHistoryError: We,
|
|
2439
|
+
folderItems: G.folderItems,
|
|
2440
|
+
selectedFolderPath: G.selectedFolderPath,
|
|
2441
|
+
onSelectedFolderPathChange: G.setSelectedFolderPath,
|
|
2442
|
+
onCreateFolder: G.handleCreateFolder,
|
|
2467
2443
|
expandedPaths: v,
|
|
2468
2444
|
onExpandedPathsChange: y,
|
|
2469
2445
|
loadingPaths: w,
|
|
2470
|
-
hasExistingPublicationInFolder:
|
|
2471
|
-
hasWriteAccess:
|
|
2472
|
-
isSubmitting:
|
|
2473
|
-
hasSubmitError:
|
|
2474
|
-
author:
|
|
2475
|
-
onAuthorChange:
|
|
2476
|
-
publishCredentials:
|
|
2477
|
-
onPublishCredentialsChange:
|
|
2478
|
-
rules:
|
|
2479
|
-
onRulesChange:
|
|
2446
|
+
hasExistingPublicationInFolder: G.hasExistingPublicationInFolder,
|
|
2447
|
+
hasWriteAccess: G.hasWriteAccess,
|
|
2448
|
+
isSubmitting: G.isSubmitting,
|
|
2449
|
+
hasSubmitError: G.hasSubmitError,
|
|
2450
|
+
author: G.author,
|
|
2451
|
+
onAuthorChange: G.setAuthor,
|
|
2452
|
+
publishCredentials: G.publishCredentials,
|
|
2453
|
+
onPublishCredentialsChange: bt ? G.setPublishCredentials : void 0,
|
|
2454
|
+
rules: G.rules,
|
|
2455
|
+
onRulesChange: G.setRules,
|
|
2480
2456
|
ruleSourceOptions: te,
|
|
2481
|
-
isRulesLoading:
|
|
2482
|
-
hasRulesLoadError:
|
|
2457
|
+
isRulesLoading: G.isRulesLoading,
|
|
2458
|
+
hasRulesLoadError: G.hasRulesLoadError,
|
|
2483
2459
|
labels: A,
|
|
2484
2460
|
styles: { colors: {
|
|
2485
|
-
summaryVersionTagBorder:
|
|
2486
|
-
summaryVersionTagBackground:
|
|
2487
|
-
summaryVersionTagText:
|
|
2461
|
+
summaryVersionTagBorder: W?.versionTagBorder,
|
|
2462
|
+
summaryVersionTagBackground: W?.versionTagBackground,
|
|
2463
|
+
summaryVersionTagText: W?.versionTagText
|
|
2488
2464
|
} }
|
|
2489
2465
|
})
|
|
2490
2466
|
}),
|
|
2491
|
-
!
|
|
2492
|
-
/* @__PURE__ */
|
|
2467
|
+
!mn && /* @__PURE__ */ q(ht, { children: [
|
|
2468
|
+
/* @__PURE__ */ K(Rn, {
|
|
2493
2469
|
item: e,
|
|
2494
2470
|
onUseInChat: l,
|
|
2495
2471
|
isPrimaryActionVisible: u,
|
|
@@ -2499,53 +2475,53 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
2499
2475
|
isSharePrimary: N,
|
|
2500
2476
|
isPublishVisible: f,
|
|
2501
2477
|
isPublishPrimary: p,
|
|
2502
|
-
onOpenPublish:
|
|
2503
|
-
isUnpublishVisible:
|
|
2504
|
-
hasPublishedFolders:
|
|
2505
|
-
isPublishHistoryResolved: h == null ||
|
|
2506
|
-
onRequestPublishHistory:
|
|
2507
|
-
onOpenUnpublish:
|
|
2478
|
+
onOpenPublish: qt,
|
|
2479
|
+
isUnpublishVisible: ye,
|
|
2480
|
+
hasPublishedFolders: Bt,
|
|
2481
|
+
isPublishHistoryResolved: h == null || Ke,
|
|
2482
|
+
onRequestPublishHistory: pt,
|
|
2483
|
+
onOpenUnpublish: ve ? Ut : void 0,
|
|
2508
2484
|
onEdit: ae,
|
|
2509
2485
|
onDownload: oe,
|
|
2510
2486
|
isDownloadVisible: se,
|
|
2511
|
-
isDownloadPrimary:
|
|
2512
|
-
onDelete:
|
|
2513
|
-
onUnshare:
|
|
2514
|
-
isUnshareVisible:
|
|
2515
|
-
onRevokeShare:
|
|
2516
|
-
onFetchRecipientsCount:
|
|
2517
|
-
isRevokeShareVisible:
|
|
2518
|
-
onLogin:
|
|
2519
|
-
onLogout:
|
|
2520
|
-
onOpenCredentialsManagement:
|
|
2521
|
-
onRequestLogout:
|
|
2522
|
-
texts:
|
|
2523
|
-
detailsStyles:
|
|
2487
|
+
isDownloadPrimary: z,
|
|
2488
|
+
onDelete: pe ? Ft : void 0,
|
|
2489
|
+
onUnshare: B ? Lt : void 0,
|
|
2490
|
+
isUnshareVisible: V,
|
|
2491
|
+
onRevokeShare: he ? Rt : void 0,
|
|
2492
|
+
onFetchRecipientsCount: ge,
|
|
2493
|
+
isRevokeShareVisible: _e,
|
|
2494
|
+
onLogin: be,
|
|
2495
|
+
onLogout: xe,
|
|
2496
|
+
onOpenCredentialsManagement: Nt,
|
|
2497
|
+
onRequestLogout: It,
|
|
2498
|
+
texts: H,
|
|
2499
|
+
detailsStyles: Se,
|
|
2524
2500
|
isReadonly: a
|
|
2525
2501
|
}),
|
|
2526
2502
|
e.credentials != null && (() => {
|
|
2527
2503
|
let t = m(e.credentials);
|
|
2528
|
-
return t != null && /* @__PURE__ */
|
|
2504
|
+
return t != null && /* @__PURE__ */ K("div", {
|
|
2529
2505
|
className: "px-6",
|
|
2530
|
-
children: /* @__PURE__ */
|
|
2506
|
+
children: /* @__PURE__ */ K(Sn, {
|
|
2531
2507
|
state: t,
|
|
2532
2508
|
authenticationType: e.credentials.authenticationType,
|
|
2533
|
-
texts:
|
|
2509
|
+
texts: H
|
|
2534
2510
|
})
|
|
2535
2511
|
});
|
|
2536
2512
|
})(),
|
|
2537
|
-
!a && n &&
|
|
2538
|
-
/* @__PURE__ */
|
|
2513
|
+
!a && n && fe?.(e),
|
|
2514
|
+
/* @__PURE__ */ q("div", {
|
|
2539
2515
|
className: "flex items-center px-6",
|
|
2540
|
-
children: [/* @__PURE__ */
|
|
2541
|
-
tabs:
|
|
2542
|
-
activeTabId:
|
|
2543
|
-
onTabChange:
|
|
2544
|
-
}), i && /* @__PURE__ */
|
|
2516
|
+
children: [/* @__PURE__ */ K(Re, {
|
|
2517
|
+
tabs: Zt,
|
|
2518
|
+
activeTabId: Ne,
|
|
2519
|
+
onTabChange: Ie
|
|
2520
|
+
}), i && /* @__PURE__ */ K("div", {
|
|
2545
2521
|
role: "status",
|
|
2546
|
-
"aria-label":
|
|
2522
|
+
"aria-label": H?.detailsLoadingAriaLabel ?? "Loading details",
|
|
2547
2523
|
className: "shrink-0",
|
|
2548
|
-
children: /* @__PURE__ */
|
|
2524
|
+
children: /* @__PURE__ */ K(Fe, {
|
|
2549
2525
|
showTitle: !1,
|
|
2550
2526
|
paragraph: {
|
|
2551
2527
|
rows: 1,
|
|
@@ -2556,92 +2532,92 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
2556
2532
|
})
|
|
2557
2533
|
})]
|
|
2558
2534
|
}),
|
|
2559
|
-
/* @__PURE__ */
|
|
2560
|
-
className: M("min-h-0 flex-1 overflow-y-auto",
|
|
2535
|
+
/* @__PURE__ */ q("div", {
|
|
2536
|
+
className: M("min-h-0 flex-1 overflow-y-auto", Ne !== J.Overview && "px-6"),
|
|
2561
2537
|
children: [
|
|
2562
|
-
|
|
2538
|
+
Ne === J.About && /* @__PURE__ */ K(zn, {
|
|
2563
2539
|
content: e.description,
|
|
2564
2540
|
topics: e.topics,
|
|
2565
|
-
detailsStyles:
|
|
2541
|
+
detailsStyles: Se
|
|
2566
2542
|
}),
|
|
2567
|
-
|
|
2568
|
-
content:
|
|
2569
|
-
filePreview:
|
|
2570
|
-
filePreviewContent:
|
|
2571
|
-
renderFileTree:
|
|
2572
|
-
description:
|
|
2573
|
-
files:
|
|
2574
|
-
selectedFileId:
|
|
2575
|
-
onSelectFile: (e) => void
|
|
2576
|
-
isFileLoading:
|
|
2577
|
-
expandedFolderIds:
|
|
2578
|
-
onToggleFolder:
|
|
2579
|
-
isFileSelectorOpen:
|
|
2580
|
-
onFileSelectorOpenChange:
|
|
2581
|
-
fileSelectorAriaLabel:
|
|
2582
|
-
fileCountLabel:
|
|
2583
|
-
fileLoadingLabel:
|
|
2584
|
-
fileUnsupportedLabel:
|
|
2585
|
-
detailsStyles:
|
|
2543
|
+
Ne === J.Content && /* @__PURE__ */ K(Wn, {
|
|
2544
|
+
content: Ye?.content ?? "",
|
|
2545
|
+
filePreview: dt(),
|
|
2546
|
+
filePreviewContent: ft,
|
|
2547
|
+
renderFileTree: de,
|
|
2548
|
+
description: Ye?.description ?? e.description,
|
|
2549
|
+
files: Ye?.files,
|
|
2550
|
+
selectedFileId: ut,
|
|
2551
|
+
onSelectFile: (e) => void lt(e),
|
|
2552
|
+
isFileLoading: $e,
|
|
2553
|
+
expandedFolderIds: tt,
|
|
2554
|
+
onToggleFolder: ct,
|
|
2555
|
+
isFileSelectorOpen: rt,
|
|
2556
|
+
onFileSelectorOpenChange: it,
|
|
2557
|
+
fileSelectorAriaLabel: H?.contentFileSelectorAriaLabel,
|
|
2558
|
+
fileCountLabel: H?.contentFileCountLabel,
|
|
2559
|
+
fileLoadingLabel: H?.contentFileLoadingLabel,
|
|
2560
|
+
fileUnsupportedLabel: H?.contentFileUnsupportedLabel,
|
|
2561
|
+
detailsStyles: Se
|
|
2586
2562
|
}),
|
|
2587
|
-
|
|
2563
|
+
Ne === J.Overview && /* @__PURE__ */ K(rr, {
|
|
2588
2564
|
sections: e.details?.overview?.sections,
|
|
2589
|
-
sectionClassName:
|
|
2590
|
-
labelClassName:
|
|
2591
|
-
valueClassName:
|
|
2592
|
-
valueTrueClassName:
|
|
2593
|
-
yesLabel:
|
|
2594
|
-
noLabel:
|
|
2565
|
+
sectionClassName: Te,
|
|
2566
|
+
labelClassName: Ee,
|
|
2567
|
+
valueClassName: De,
|
|
2568
|
+
valueTrueClassName: Oe,
|
|
2569
|
+
yesLabel: $t,
|
|
2570
|
+
noLabel: nn
|
|
2595
2571
|
}),
|
|
2596
|
-
|
|
2572
|
+
Ne === J.Pricing && /* @__PURE__ */ K(ir, {
|
|
2597
2573
|
pricing: e.details?.pricing,
|
|
2598
|
-
pricesSectionLabel:
|
|
2599
|
-
limitsSectionLabel:
|
|
2574
|
+
pricesSectionLabel: H?.pricingPricesSectionLabel,
|
|
2575
|
+
limitsSectionLabel: H?.pricingLimitsSectionLabel
|
|
2600
2576
|
}),
|
|
2601
|
-
|
|
2577
|
+
Ne === J.Limits && /* @__PURE__ */ K(nr, {
|
|
2602
2578
|
limits: e.details?.limits,
|
|
2603
|
-
footerNote:
|
|
2579
|
+
footerNote: Ce
|
|
2604
2580
|
}),
|
|
2605
|
-
|
|
2581
|
+
Ne === J.Api && ur(e.details?.api) && /* @__PURE__ */ K(un, {
|
|
2606
2582
|
api: e.details?.api,
|
|
2607
|
-
resourceSectionLabel:
|
|
2608
|
-
snippetSectionLabel:
|
|
2609
|
-
modelIdLabel:
|
|
2610
|
-
endpointLabel:
|
|
2611
|
-
endpointSectionLabel:
|
|
2612
|
-
requestExampleLabel:
|
|
2613
|
-
responseSchemaLabel:
|
|
2614
|
-
copyAriaLabel:
|
|
2615
|
-
copiedStatusLabel:
|
|
2583
|
+
resourceSectionLabel: H?.apiResourceSectionLabel,
|
|
2584
|
+
snippetSectionLabel: H?.apiSnippetSectionLabel,
|
|
2585
|
+
modelIdLabel: H?.apiModelIdLabel,
|
|
2586
|
+
endpointLabel: H?.apiEndpointLabel,
|
|
2587
|
+
endpointSectionLabel: H?.apiEndpointSectionLabel,
|
|
2588
|
+
requestExampleLabel: H?.apiRequestExampleLabel,
|
|
2589
|
+
responseSchemaLabel: H?.apiResponseSchemaLabel,
|
|
2590
|
+
copyAriaLabel: H?.copyCodeAriaLabel,
|
|
2591
|
+
copiedStatusLabel: H?.copiedCodeStatusLabel
|
|
2616
2592
|
}),
|
|
2617
|
-
|
|
2593
|
+
Ne === J.Tools && /* @__PURE__ */ K(cr, { tools: e.details?.tools })
|
|
2618
2594
|
]
|
|
2619
2595
|
})
|
|
2620
2596
|
] })
|
|
2621
2597
|
]
|
|
2622
2598
|
}),
|
|
2623
|
-
|
|
2624
|
-
confirmLabel:
|
|
2625
|
-
cancelLabel:
|
|
2626
|
-
variant:
|
|
2627
|
-
isLoading:
|
|
2628
|
-
isConfirmDisabled:
|
|
2629
|
-
loadingStatusLabel:
|
|
2630
|
-
styles: { colors: { border:
|
|
2631
|
-
onConfirm:
|
|
2632
|
-
onCancel:
|
|
2599
|
+
fn && /* @__PURE__ */ K(S, {
|
|
2600
|
+
confirmLabel: dn.confirmLabel,
|
|
2601
|
+
cancelLabel: ln,
|
|
2602
|
+
variant: dn.variant,
|
|
2603
|
+
isLoading: Z,
|
|
2604
|
+
isConfirmDisabled: pn,
|
|
2605
|
+
loadingStatusLabel: dn.loadingStatusLabel,
|
|
2606
|
+
styles: { colors: { border: W?.confirmFooterBorder } },
|
|
2607
|
+
onConfirm: Kt,
|
|
2608
|
+
onCancel: Gt
|
|
2633
2609
|
}),
|
|
2634
|
-
!
|
|
2610
|
+
!fn && Le && /* @__PURE__ */ K(gt, {
|
|
2635
2611
|
version: e.version,
|
|
2636
|
-
hasExistingPublicationInFolder:
|
|
2637
|
-
isSubmitDisabled:
|
|
2638
|
-
isSubmitLoading:
|
|
2639
|
-
onCancel:
|
|
2640
|
-
onSubmit:
|
|
2612
|
+
hasExistingPublicationInFolder: G.hasExistingPublicationInFolder,
|
|
2613
|
+
isSubmitDisabled: xt.isSubmitDisabled,
|
|
2614
|
+
isSubmitLoading: xt.isSubmitLoading,
|
|
2615
|
+
onCancel: Jt,
|
|
2616
|
+
onSubmit: Yt,
|
|
2641
2617
|
labels: A
|
|
2642
2618
|
})
|
|
2643
2619
|
]
|
|
2644
|
-
})
|
|
2620
|
+
});
|
|
2645
2621
|
}, Cr = {
|
|
2646
2622
|
pageNav: "_pageNav_14qfn_1",
|
|
2647
2623
|
navBtn: "_navBtn_14qfn_6",
|
|
@@ -2669,7 +2645,7 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
2669
2645
|
e,
|
|
2670
2646
|
g
|
|
2671
2647
|
]);
|
|
2672
|
-
return /* @__PURE__ */
|
|
2648
|
+
return /* @__PURE__ */ q(fe, {
|
|
2673
2649
|
"data-card-id": e.id,
|
|
2674
2650
|
role: y == null ? void 0 : "button",
|
|
2675
2651
|
tabIndex: y == null ? void 0 : 0,
|
|
@@ -2681,21 +2657,21 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
2681
2657
|
t.currentTarget === t.target && n?.(e.id, !1);
|
|
2682
2658
|
} : void 0,
|
|
2683
2659
|
children: [
|
|
2684
|
-
f && /* @__PURE__ */
|
|
2685
|
-
size:
|
|
2660
|
+
f && /* @__PURE__ */ K(Ge, {
|
|
2661
|
+
size: B.SM,
|
|
2686
2662
|
className: M("absolute end-3 top-3 shrink-0", Cr.selectedCheck),
|
|
2687
2663
|
"aria-hidden": !0,
|
|
2688
|
-
stroke:
|
|
2664
|
+
stroke: V
|
|
2689
2665
|
}),
|
|
2690
|
-
/* @__PURE__ */
|
|
2666
|
+
/* @__PURE__ */ K("div", {
|
|
2691
2667
|
className: "flex min-w-0 flex-1 flex-col items-start gap-1",
|
|
2692
|
-
children: /* @__PURE__ */
|
|
2668
|
+
children: /* @__PURE__ */ K(Rt, {
|
|
2693
2669
|
icon: e.iconUrl,
|
|
2694
2670
|
type: e.type,
|
|
2695
2671
|
name: e.name,
|
|
2696
2672
|
version: e.version,
|
|
2697
2673
|
lastUsed: e.lastUsed,
|
|
2698
|
-
size:
|
|
2674
|
+
size: Ct.LG,
|
|
2699
2675
|
query: l,
|
|
2700
2676
|
className: "min-w-0 self-stretch",
|
|
2701
2677
|
styles: {
|
|
@@ -2706,15 +2682,15 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
2706
2682
|
lastUsedClassName: c
|
|
2707
2683
|
}
|
|
2708
2684
|
},
|
|
2709
|
-
iconOverlay: /* @__PURE__ */
|
|
2685
|
+
iconOverlay: /* @__PURE__ */ K(Bt, {
|
|
2710
2686
|
credentials: e.credentials,
|
|
2711
2687
|
loggedOutLabel: p
|
|
2712
2688
|
})
|
|
2713
2689
|
})
|
|
2714
2690
|
}),
|
|
2715
|
-
r?.(e) !== !1 && /* @__PURE__ */
|
|
2691
|
+
r?.(e) !== !1 && /* @__PURE__ */ K(Ht, {
|
|
2716
2692
|
isStarred: m,
|
|
2717
|
-
size:
|
|
2693
|
+
size: ve.Small,
|
|
2718
2694
|
onClick: v,
|
|
2719
2695
|
ariaLabel: m ? d : u,
|
|
2720
2696
|
className: "self-end"
|
|
@@ -2765,10 +2741,10 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
2765
2741
|
y,
|
|
2766
2742
|
A
|
|
2767
2743
|
]);
|
|
2768
|
-
let N = L(/* @__PURE__ */ new Map()), ae = L(y), P = L(x), oe = L(0),
|
|
2744
|
+
let N = L(/* @__PURE__ */ new Map()), ae = L(y), P = L(x), oe = L(0), z = L(!1);
|
|
2769
2745
|
return se(() => {
|
|
2770
2746
|
if (!k.current || s) return;
|
|
2771
|
-
if (D.current && !
|
|
2747
|
+
if (D.current && !z.current) {
|
|
2772
2748
|
let e = D.current;
|
|
2773
2749
|
e.style.height = "", e.style.transition = "";
|
|
2774
2750
|
}
|
|
@@ -2815,11 +2791,11 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
2815
2791
|
if (!e) return;
|
|
2816
2792
|
let t = e.offsetHeight;
|
|
2817
2793
|
if (t === 0) return;
|
|
2818
|
-
|
|
2794
|
+
z.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`;
|
|
2819
2795
|
let n = (t) => {
|
|
2820
2796
|
t.target !== e || t.propertyName !== "height" || r();
|
|
2821
2797
|
}, r = () => {
|
|
2822
|
-
|
|
2798
|
+
z.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
|
|
2823
2799
|
}, i = setTimeout(r, 400);
|
|
2824
2800
|
return e.addEventListener("transitionend", n), () => {
|
|
2825
2801
|
clearTimeout(i), e.removeEventListener("transitionend", n);
|
|
@@ -2828,9 +2804,9 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
2828
2804
|
if (!s || !D.current) return;
|
|
2829
2805
|
let e = D.current, t = e.offsetHeight;
|
|
2830
2806
|
t !== 0 && (e.style.height = `${t}px`, e.offsetHeight, e.style.transition = "height 260ms ease-in", e.style.height = "0px");
|
|
2831
|
-
}, [s]), /* @__PURE__ */
|
|
2807
|
+
}, [s]), /* @__PURE__ */ K("div", {
|
|
2832
2808
|
ref: D,
|
|
2833
|
-
children: /* @__PURE__ */
|
|
2809
|
+
children: /* @__PURE__ */ q("section", {
|
|
2834
2810
|
ref: O,
|
|
2835
2811
|
className: M("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", Cr.section, s && Cr.sectionLeaving),
|
|
2836
2812
|
style: {
|
|
@@ -2840,28 +2816,28 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
2840
2816
|
onAnimationEnd: (e) => {
|
|
2841
2817
|
e.target === O.current && s && c?.();
|
|
2842
2818
|
},
|
|
2843
|
-
children: [/* @__PURE__ */
|
|
2819
|
+
children: [/* @__PURE__ */ K(ee, {
|
|
2844
2820
|
title: n,
|
|
2845
2821
|
postfix: E,
|
|
2846
2822
|
titleClassName: M(h, Cr.titleText),
|
|
2847
2823
|
postfixClassName: M(g, Cr.countText),
|
|
2848
|
-
trailing: T > 1 ? /* @__PURE__ */
|
|
2824
|
+
trailing: T > 1 ? /* @__PURE__ */ q("div", {
|
|
2849
2825
|
className: M("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", Cr.pageNav),
|
|
2850
2826
|
children: [
|
|
2851
|
-
/* @__PURE__ */
|
|
2852
|
-
size:
|
|
2827
|
+
/* @__PURE__ */ K(H, {
|
|
2828
|
+
size: ve.Small,
|
|
2853
2829
|
"aria-label": l,
|
|
2854
2830
|
disabled: y === 1,
|
|
2855
2831
|
onClick: () => b((e) => e - 1),
|
|
2856
2832
|
className: M("rounded-full", Cr.navBtn),
|
|
2857
|
-
icon: /* @__PURE__ */
|
|
2833
|
+
icon: /* @__PURE__ */ K(qe, {
|
|
2858
2834
|
size: 14,
|
|
2859
2835
|
"aria-hidden": !0,
|
|
2860
2836
|
className: "rtl:scale-x-[-1]",
|
|
2861
|
-
stroke:
|
|
2837
|
+
stroke: V
|
|
2862
2838
|
})
|
|
2863
2839
|
}),
|
|
2864
|
-
/* @__PURE__ */
|
|
2840
|
+
/* @__PURE__ */ q("span", {
|
|
2865
2841
|
className: M("min-w-[32px] select-none px-1 text-center", g, Cr.countText),
|
|
2866
2842
|
children: [
|
|
2867
2843
|
y,
|
|
@@ -2869,29 +2845,29 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
2869
2845
|
T
|
|
2870
2846
|
]
|
|
2871
2847
|
}),
|
|
2872
|
-
/* @__PURE__ */
|
|
2873
|
-
size:
|
|
2848
|
+
/* @__PURE__ */ K(H, {
|
|
2849
|
+
size: ve.Small,
|
|
2874
2850
|
"aria-label": u,
|
|
2875
2851
|
disabled: y === T,
|
|
2876
2852
|
onClick: () => b((e) => e + 1),
|
|
2877
2853
|
className: M("rounded-full", Cr.navBtn),
|
|
2878
|
-
icon: /* @__PURE__ */
|
|
2854
|
+
icon: /* @__PURE__ */ K(Je, {
|
|
2879
2855
|
size: 14,
|
|
2880
2856
|
"aria-hidden": !0,
|
|
2881
2857
|
className: "rtl:scale-x-[-1]",
|
|
2882
|
-
stroke:
|
|
2858
|
+
stroke: V
|
|
2883
2859
|
})
|
|
2884
2860
|
})
|
|
2885
2861
|
]
|
|
2886
2862
|
}) : void 0
|
|
2887
|
-
}), /* @__PURE__ */
|
|
2863
|
+
}), /* @__PURE__ */ K("div", {
|
|
2888
2864
|
ref: k,
|
|
2889
2865
|
className: M("grid content-start gap-5", Cr.gridPage),
|
|
2890
2866
|
style: {
|
|
2891
2867
|
gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
|
|
2892
2868
|
minHeight: A
|
|
2893
2869
|
},
|
|
2894
|
-
children: w.map((e) => /* @__PURE__ */
|
|
2870
|
+
children: w.map((e) => /* @__PURE__ */ K(wr, {
|
|
2895
2871
|
item: e,
|
|
2896
2872
|
onToggle: r,
|
|
2897
2873
|
isFavoriteVisible: i,
|
|
@@ -2913,35 +2889,35 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
2913
2889
|
selectedCheck: "_selectedCheck_lksnp_47",
|
|
2914
2890
|
starToggleOff: "_starToggleOff_lksnp_51",
|
|
2915
2891
|
selectedRow: "_selectedRow_lksnp_64"
|
|
2916
|
-
}, kr = ({ data: e }) => e ? /* @__PURE__ */
|
|
2892
|
+
}, kr = ({ data: e }) => e ? /* @__PURE__ */ K("div", {
|
|
2917
2893
|
className: "flex h-full items-center",
|
|
2918
|
-
children: /* @__PURE__ */
|
|
2894
|
+
children: /* @__PURE__ */ K(D, { type: e.type })
|
|
2919
2895
|
}) : null, Ar = " / ", jr = ({ data: e, context: t }) => {
|
|
2920
2896
|
if (!e || e.folder.length === 0) return null;
|
|
2921
2897
|
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";
|
|
2922
|
-
return /* @__PURE__ */
|
|
2898
|
+
return /* @__PURE__ */ q("div", {
|
|
2923
2899
|
className: "flex h-full w-full min-w-0 items-center gap-1.5",
|
|
2924
2900
|
children: [
|
|
2925
|
-
/* @__PURE__ */
|
|
2926
|
-
size:
|
|
2927
|
-
stroke:
|
|
2901
|
+
/* @__PURE__ */ K($e, {
|
|
2902
|
+
size: B.SM,
|
|
2903
|
+
stroke: V,
|
|
2928
2904
|
className: M("shrink-0", Or.folderIcon),
|
|
2929
2905
|
"aria-hidden": !0
|
|
2930
2906
|
}),
|
|
2931
|
-
/* @__PURE__ */
|
|
2932
|
-
tooltip: /* @__PURE__ */
|
|
2907
|
+
/* @__PURE__ */ K(Be, {
|
|
2908
|
+
tooltip: /* @__PURE__ */ K("span", {
|
|
2933
2909
|
className: a,
|
|
2934
2910
|
children: n
|
|
2935
2911
|
}),
|
|
2936
2912
|
hideTooltip: !i,
|
|
2937
2913
|
triggerClassName: "min-w-0 flex-1",
|
|
2938
|
-
children: /* @__PURE__ */
|
|
2914
|
+
children: /* @__PURE__ */ K(ye, {
|
|
2939
2915
|
text: r,
|
|
2940
2916
|
className: o,
|
|
2941
2917
|
hideTooltip: i
|
|
2942
2918
|
})
|
|
2943
2919
|
}),
|
|
2944
|
-
i && /* @__PURE__ */
|
|
2920
|
+
i && /* @__PURE__ */ K("span", {
|
|
2945
2921
|
className: "sr-only",
|
|
2946
2922
|
children: n
|
|
2947
2923
|
})
|
|
@@ -2949,31 +2925,31 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
2949
2925
|
});
|
|
2950
2926
|
}, Mr = ({ data: e, context: t }) => {
|
|
2951
2927
|
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;
|
|
2952
|
-
return e ? /* @__PURE__ */
|
|
2928
|
+
return e ? /* @__PURE__ */ q("div", {
|
|
2953
2929
|
className: "flex h-full w-full min-w-0 items-center gap-2.5",
|
|
2954
|
-
children: [/* @__PURE__ */
|
|
2930
|
+
children: [/* @__PURE__ */ q("div", {
|
|
2955
2931
|
className: "relative shrink-0",
|
|
2956
|
-
children: [/* @__PURE__ */
|
|
2932
|
+
children: [/* @__PURE__ */ K(T, {
|
|
2957
2933
|
src: e.iconUrl,
|
|
2958
2934
|
size: 36,
|
|
2959
2935
|
initialsName: e.name,
|
|
2960
2936
|
styles: { badgeClassName: "rounded-[10px]" }
|
|
2961
|
-
}), /* @__PURE__ */
|
|
2937
|
+
}), /* @__PURE__ */ K(Bt, {
|
|
2962
2938
|
credentials: e.credentials,
|
|
2963
2939
|
loggedOutLabel: t?.credentialsBadgeLoggedOutLabel
|
|
2964
2940
|
})]
|
|
2965
|
-
}), /* @__PURE__ */
|
|
2941
|
+
}), /* @__PURE__ */ K(ee, {
|
|
2966
2942
|
title: e.name,
|
|
2967
2943
|
postfix: e.version,
|
|
2968
2944
|
postfixClassName: a,
|
|
2969
2945
|
query: n,
|
|
2970
2946
|
titleClassName: i,
|
|
2971
2947
|
className: "min-w-0 flex-1 items-baseline gap-1.5",
|
|
2972
|
-
trailing: o ? /* @__PURE__ */
|
|
2973
|
-
size:
|
|
2948
|
+
trailing: o ? /* @__PURE__ */ K(Ge, {
|
|
2949
|
+
size: B.SM,
|
|
2974
2950
|
className: M("shrink-0", Or.selectedCheck),
|
|
2975
2951
|
"aria-hidden": !0,
|
|
2976
|
-
stroke:
|
|
2952
|
+
stroke: V
|
|
2977
2953
|
}) : void 0
|
|
2978
2954
|
})]
|
|
2979
2955
|
}) : null;
|
|
@@ -2981,9 +2957,9 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
2981
2957
|
let [n, r] = R(e?.isStarred ?? !1);
|
|
2982
2958
|
return F(() => {
|
|
2983
2959
|
r(e?.isStarred ?? !1);
|
|
2984
|
-
}, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */
|
|
2960
|
+
}, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ K("div", {
|
|
2985
2961
|
className: "flex size-full items-center justify-end",
|
|
2986
|
-
children: /* @__PURE__ */
|
|
2962
|
+
children: /* @__PURE__ */ K(Ht, {
|
|
2987
2963
|
isStarred: n,
|
|
2988
2964
|
onClick: (i) => {
|
|
2989
2965
|
i.stopPropagation();
|
|
@@ -2993,9 +2969,9 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
2993
2969
|
className: n ? void 0 : Or.starToggleOff
|
|
2994
2970
|
})
|
|
2995
2971
|
});
|
|
2996
|
-
}, Pr = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */
|
|
2972
|
+
}, Pr = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ K("div", {
|
|
2997
2973
|
className: "flex h-full w-full min-w-0 items-center",
|
|
2998
|
-
children: /* @__PURE__ */
|
|
2974
|
+
children: /* @__PURE__ */ K(qt, { topics: e.topics })
|
|
2999
2975
|
}), Fr = {
|
|
3000
2976
|
folder: (e) => e !== x.Model,
|
|
3001
2977
|
tags: () => !0,
|
|
@@ -3060,10 +3036,10 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3060
3036
|
cellRenderer: Nr
|
|
3061
3037
|
}
|
|
3062
3038
|
];
|
|
3063
|
-
}, Rr = 60, zr = {}, Br = (e) => e.id, Vr = (e) => e.items.length === 0 ? /* @__PURE__ */
|
|
3064
|
-
className:
|
|
3065
|
-
children: /* @__PURE__ */
|
|
3066
|
-
}) : /* @__PURE__ */
|
|
3039
|
+
}, Rr = 60, zr = {}, Br = (e) => e.id, Vr = (e) => e.items.length === 0 ? /* @__PURE__ */ K("div", {
|
|
3040
|
+
className: Ve("flex size-full flex-col items-center justify-center", Et.listView),
|
|
3041
|
+
children: /* @__PURE__ */ K(ne, { label: e.emptyStateTitle ?? "No results" })
|
|
3042
|
+
}) : /* @__PURE__ */ K(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 }) => {
|
|
3067
3043
|
let m = a?.typography ?? zr, h = a?.colors, g = {
|
|
3068
3044
|
"--cat-list-bg": h?.background,
|
|
3069
3045
|
"--cat-list-border": h?.border,
|
|
@@ -3124,18 +3100,18 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3124
3100
|
_.current?.refreshCells({ force: !0 });
|
|
3125
3101
|
}, [n]), F(() => {
|
|
3126
3102
|
_.current?.redrawRows();
|
|
3127
|
-
}, [u]), /* @__PURE__ */
|
|
3103
|
+
}, [u]), /* @__PURE__ */ K("div", {
|
|
3128
3104
|
style: g,
|
|
3129
|
-
className:
|
|
3130
|
-
children: /* @__PURE__ */
|
|
3105
|
+
className: Ve("w-full rounded-xl border", Or.listContainer, Et.listView),
|
|
3106
|
+
children: /* @__PURE__ */ q("div", {
|
|
3131
3107
|
ref: x,
|
|
3132
|
-
className:
|
|
3108
|
+
className: Ve("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),
|
|
3133
3109
|
children: [
|
|
3134
|
-
S > 0 && /* @__PURE__ */
|
|
3110
|
+
S > 0 && /* @__PURE__ */ K("div", {
|
|
3135
3111
|
style: { height: S * Rr },
|
|
3136
3112
|
"aria-hidden": !0
|
|
3137
3113
|
}),
|
|
3138
|
-
/* @__PURE__ */
|
|
3114
|
+
/* @__PURE__ */ K(bt, {
|
|
3139
3115
|
columnDefs: y,
|
|
3140
3116
|
rowData: w,
|
|
3141
3117
|
getRowId: Br,
|
|
@@ -3146,7 +3122,7 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3146
3122
|
additionalGridOptions: b,
|
|
3147
3123
|
ariaLabel: r
|
|
3148
3124
|
}),
|
|
3149
|
-
C < e.length && /* @__PURE__ */
|
|
3125
|
+
C < e.length && /* @__PURE__ */ K("div", {
|
|
3150
3126
|
style: { height: (e.length - C) * Rr },
|
|
3151
3127
|
"aria-hidden": !0
|
|
3152
3128
|
})
|
|
@@ -3219,13 +3195,13 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3219
3195
|
}, te = () => {
|
|
3220
3196
|
t(/* @__PURE__ */ new Set()), i?.(!1), O(!1);
|
|
3221
3197
|
};
|
|
3222
|
-
return /* @__PURE__ */
|
|
3198
|
+
return /* @__PURE__ */ K(ge, {
|
|
3223
3199
|
matchReferenceWidth: !1,
|
|
3224
3200
|
placement: "bottom-start",
|
|
3225
3201
|
open: p,
|
|
3226
3202
|
onOpenChange: O,
|
|
3227
3203
|
listClassName: "!bg-transparent !shadow-none !p-0",
|
|
3228
|
-
renderOverlay: () => /* @__PURE__ */
|
|
3204
|
+
renderOverlay: () => /* @__PURE__ */ q("div", {
|
|
3229
3205
|
role: "menu",
|
|
3230
3206
|
"aria-label": s,
|
|
3231
3207
|
tabIndex: -1,
|
|
@@ -3236,10 +3212,10 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3236
3212
|
className: M("flex min-w-[360px] flex-col rounded-xl p-[6px]", Ur.overlay),
|
|
3237
3213
|
onKeyDown: k,
|
|
3238
3214
|
children: [
|
|
3239
|
-
/* @__PURE__ */
|
|
3215
|
+
/* @__PURE__ */ K(De, {
|
|
3240
3216
|
role: "menuitemcheckbox",
|
|
3241
3217
|
"aria-checked": b,
|
|
3242
|
-
mark:
|
|
3218
|
+
mark: Oe.Checkbox,
|
|
3243
3219
|
selected: b,
|
|
3244
3220
|
label: a,
|
|
3245
3221
|
labelClassName: M(Ur.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
@@ -3250,25 +3226,25 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3250
3226
|
},
|
|
3251
3227
|
onClick: () => x(!b)
|
|
3252
3228
|
}),
|
|
3253
|
-
g.length > 0 && /* @__PURE__ */
|
|
3254
|
-
/* @__PURE__ */
|
|
3229
|
+
g.length > 0 && /* @__PURE__ */ q(ht, { children: [
|
|
3230
|
+
/* @__PURE__ */ K("div", {
|
|
3255
3231
|
role: "separator",
|
|
3256
3232
|
className: M("my-1 h-px", Ur.divider),
|
|
3257
3233
|
"aria-hidden": !0
|
|
3258
3234
|
}),
|
|
3259
|
-
/* @__PURE__ */
|
|
3235
|
+
/* @__PURE__ */ K("div", {
|
|
3260
3236
|
className: M("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Ur.sectionLabel),
|
|
3261
3237
|
"aria-hidden": !0,
|
|
3262
3238
|
children: o
|
|
3263
3239
|
}),
|
|
3264
|
-
/* @__PURE__ */
|
|
3240
|
+
/* @__PURE__ */ K("div", {
|
|
3265
3241
|
className: M(re, "flex min-h-0 flex-col gap-1 overflow-y-auto"),
|
|
3266
3242
|
children: g.map((e, t) => {
|
|
3267
3243
|
let n = v.has(e), r = t + 1;
|
|
3268
|
-
return /* @__PURE__ */
|
|
3244
|
+
return /* @__PURE__ */ K(De, {
|
|
3269
3245
|
role: "menuitemcheckbox",
|
|
3270
3246
|
"aria-checked": n,
|
|
3271
|
-
mark:
|
|
3247
|
+
mark: Oe.Checkbox,
|
|
3272
3248
|
selected: n,
|
|
3273
3249
|
label: e,
|
|
3274
3250
|
labelClassName: Ur.rowLabel,
|
|
@@ -3282,15 +3258,15 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3282
3258
|
})
|
|
3283
3259
|
})
|
|
3284
3260
|
] }),
|
|
3285
|
-
/* @__PURE__ */
|
|
3261
|
+
/* @__PURE__ */ q("div", {
|
|
3286
3262
|
className: M("mt-1 flex shrink-0 items-center px-1 py-3", Ur.footer),
|
|
3287
3263
|
onKeyDown: (e) => {
|
|
3288
3264
|
(e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
|
|
3289
3265
|
},
|
|
3290
|
-
children: [/* @__PURE__ */
|
|
3266
|
+
children: [/* @__PURE__ */ K(xe, {
|
|
3291
3267
|
label: c,
|
|
3292
3268
|
onClick: te
|
|
3293
|
-
}), /* @__PURE__ */
|
|
3269
|
+
}), /* @__PURE__ */ K(ke, {
|
|
3294
3270
|
label: l,
|
|
3295
3271
|
className: "ms-auto",
|
|
3296
3272
|
onClick: A
|
|
@@ -3298,23 +3274,23 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3298
3274
|
})
|
|
3299
3275
|
]
|
|
3300
3276
|
}),
|
|
3301
|
-
children: /* @__PURE__ */
|
|
3277
|
+
children: /* @__PURE__ */ K(ce, {
|
|
3302
3278
|
ref: E,
|
|
3303
3279
|
"aria-haspopup": "menu",
|
|
3304
3280
|
"aria-expanded": p,
|
|
3305
3281
|
onKeyDown: ee,
|
|
3306
3282
|
style: h,
|
|
3307
|
-
iconBefore: /* @__PURE__ */
|
|
3308
|
-
size:
|
|
3309
|
-
stroke:
|
|
3283
|
+
iconBefore: /* @__PURE__ */ K(Qe, {
|
|
3284
|
+
size: B.SM,
|
|
3285
|
+
stroke: V,
|
|
3310
3286
|
className: M("shrink-0", Ur.filterBtnFunnel),
|
|
3311
3287
|
"aria-hidden": !0
|
|
3312
3288
|
}),
|
|
3313
3289
|
label: _,
|
|
3314
3290
|
textClassName: M(Ur.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
3315
|
-
iconAfter: /* @__PURE__ */
|
|
3291
|
+
iconAfter: /* @__PURE__ */ K(Ke, {
|
|
3316
3292
|
size: 14,
|
|
3317
|
-
stroke:
|
|
3293
|
+
stroke: V,
|
|
3318
3294
|
className: M("shrink-0 transition-transform duration-150", Ur.filterBtnChevron, p && "rotate-180"),
|
|
3319
3295
|
"aria-hidden": !0
|
|
3320
3296
|
}),
|
|
@@ -3326,19 +3302,19 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3326
3302
|
divider: "_divider_mh952_5"
|
|
3327
3303
|
}, 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 }) => {
|
|
3328
3304
|
let w = a?.typography?.titleClassName ?? "dial-body-semi-text", T = a?.typography?.countClassName ?? "dial-tiny-semi-text", E = I(() => [{
|
|
3329
|
-
value:
|
|
3330
|
-
icon: /* @__PURE__ */
|
|
3331
|
-
size:
|
|
3305
|
+
value: X.Grid,
|
|
3306
|
+
icon: /* @__PURE__ */ K(tt, {
|
|
3307
|
+
size: B.SM,
|
|
3332
3308
|
"aria-hidden": !0,
|
|
3333
|
-
stroke:
|
|
3309
|
+
stroke: V
|
|
3334
3310
|
}),
|
|
3335
3311
|
"aria-label": l
|
|
3336
3312
|
}, {
|
|
3337
|
-
value:
|
|
3338
|
-
icon: /* @__PURE__ */
|
|
3339
|
-
size:
|
|
3313
|
+
value: X.Cards,
|
|
3314
|
+
icon: /* @__PURE__ */ K(nt, {
|
|
3315
|
+
size: B.SM,
|
|
3340
3316
|
"aria-hidden": !0,
|
|
3341
|
-
stroke:
|
|
3317
|
+
stroke: V
|
|
3342
3318
|
}),
|
|
3343
3319
|
"aria-label": u
|
|
3344
3320
|
}], [l, u]), D = (e) => {
|
|
@@ -3346,7 +3322,7 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3346
3322
|
}, O = p?.find((e) => e.value === f)?.label ?? h, k = I(() => (p ?? []).map((e) => ({
|
|
3347
3323
|
key: e.value,
|
|
3348
3324
|
label: e.label,
|
|
3349
|
-
mark:
|
|
3325
|
+
mark: Oe.Check,
|
|
3350
3326
|
checked: e.value === f,
|
|
3351
3327
|
onClick: () => m?.(e.value)
|
|
3352
3328
|
})), [
|
|
@@ -3354,11 +3330,11 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3354
3330
|
f,
|
|
3355
3331
|
m
|
|
3356
3332
|
]);
|
|
3357
|
-
return /* @__PURE__ */
|
|
3333
|
+
return /* @__PURE__ */ q("div", {
|
|
3358
3334
|
className: "flex flex-col gap-3",
|
|
3359
|
-
children: [/* @__PURE__ */
|
|
3335
|
+
children: [/* @__PURE__ */ q("div", {
|
|
3360
3336
|
className: "flex items-center gap-2",
|
|
3361
|
-
children: [i ?? /* @__PURE__ */
|
|
3337
|
+
children: [i ?? /* @__PURE__ */ K(ee, {
|
|
3362
3338
|
title: r,
|
|
3363
3339
|
postfix: e,
|
|
3364
3340
|
titleClassName: w,
|
|
@@ -3369,34 +3345,34 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3369
3345
|
title: a?.colors?.titleText,
|
|
3370
3346
|
count: a?.colors?.countText
|
|
3371
3347
|
}
|
|
3372
|
-
}), /* @__PURE__ */
|
|
3348
|
+
}), /* @__PURE__ */ q("div", {
|
|
3373
3349
|
className: "ms-auto flex shrink-0 items-center gap-2",
|
|
3374
|
-
children: [/* @__PURE__ */
|
|
3350
|
+
children: [/* @__PURE__ */ K(Ne, {
|
|
3375
3351
|
"aria-label": d,
|
|
3376
3352
|
value: t,
|
|
3377
3353
|
onChange: n,
|
|
3378
3354
|
items: E
|
|
3379
|
-
}), p != null && p.length > 0 && /* @__PURE__ */
|
|
3355
|
+
}), p != null && p.length > 0 && /* @__PURE__ */ q(ht, { children: [/* @__PURE__ */ K("div", { className: M("h-4 w-px shrink-0", qr.divider) }), /* @__PURE__ */ K(ue, {
|
|
3380
3356
|
items: k,
|
|
3381
3357
|
label: O,
|
|
3382
|
-
variant:
|
|
3383
|
-
appearance:
|
|
3358
|
+
variant: de.Primary,
|
|
3359
|
+
appearance: le.Ghost
|
|
3384
3360
|
})] })]
|
|
3385
3361
|
})]
|
|
3386
|
-
}), /* @__PURE__ */
|
|
3362
|
+
}), /* @__PURE__ */ q("div", {
|
|
3387
3363
|
className: "mb-5 flex items-center gap-3",
|
|
3388
|
-
children: [/* @__PURE__ */
|
|
3364
|
+
children: [/* @__PURE__ */ K("div", {
|
|
3389
3365
|
role: "search",
|
|
3390
3366
|
className: "flex-1",
|
|
3391
|
-
children: /* @__PURE__ */
|
|
3367
|
+
children: /* @__PURE__ */ K(Me, {
|
|
3392
3368
|
value: o,
|
|
3393
3369
|
onChange: D,
|
|
3394
|
-
size:
|
|
3370
|
+
size: ve.Large,
|
|
3395
3371
|
wrapperClassName: "dial-kit-input-large",
|
|
3396
3372
|
placeholder: c,
|
|
3397
3373
|
"aria-label": c
|
|
3398
3374
|
})
|
|
3399
|
-
}), /* @__PURE__ */
|
|
3375
|
+
}), /* @__PURE__ */ K(Kr, {
|
|
3400
3376
|
checked: g ?? /* @__PURE__ */ new Set(),
|
|
3401
3377
|
onChange: _ ?? (() => void 0),
|
|
3402
3378
|
values: v,
|
|
@@ -3411,10 +3387,10 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3411
3387
|
});
|
|
3412
3388
|
}, 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 }) => {
|
|
3413
3389
|
let b = { "--cat-browse-divider": r?.colors?.divider };
|
|
3414
|
-
return /* @__PURE__ */
|
|
3390
|
+
return /* @__PURE__ */ K("section", {
|
|
3415
3391
|
className: M("flex-shrink-0 px-4", qr.section, Et.toolbar),
|
|
3416
3392
|
style: b,
|
|
3417
|
-
children: /* @__PURE__ */
|
|
3393
|
+
children: /* @__PURE__ */ K(Jr, {
|
|
3418
3394
|
styles: r,
|
|
3419
3395
|
query: e,
|
|
3420
3396
|
onQueryChange: t,
|
|
@@ -3441,40 +3417,52 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3441
3417
|
root: "_root_1h83l_1",
|
|
3442
3418
|
heading: "_heading_1h83l_5",
|
|
3443
3419
|
headingTitle: "_headingTitle_1h83l_9"
|
|
3444
|
-
}, Zr =
|
|
3420
|
+
}, Zr = "w-[320px]", Qr = (e, t) => e.map((e) => ({
|
|
3421
|
+
...e,
|
|
3422
|
+
label: typeof e.label == "string" ? /* @__PURE__ */ K(Se, {
|
|
3423
|
+
text: e.label,
|
|
3424
|
+
query: t,
|
|
3425
|
+
maxLines: 1
|
|
3426
|
+
}) : e.label,
|
|
3427
|
+
children: e.children ? Qr(e.children, t) : void 0
|
|
3428
|
+
})), $r = ({ label: e, options: t, onClick: n, search: r, searchPlaceholder: i = "Search", searchClearLabel: a = "Clear search", noResultsLabel: o = "No results found" }) => {
|
|
3445
3429
|
let s = L(null), [c, l] = R(!1);
|
|
3446
|
-
return r ? /* @__PURE__ */
|
|
3430
|
+
return r ? /* @__PURE__ */ K("div", {
|
|
3447
3431
|
ref: s,
|
|
3448
|
-
children: /* @__PURE__ */
|
|
3449
|
-
items: t?.length ? t : [{
|
|
3432
|
+
children: /* @__PURE__ */ K(ge, {
|
|
3433
|
+
items: t?.length ? Qr(t, r.value) : [{
|
|
3450
3434
|
key: "no-results",
|
|
3451
|
-
type:
|
|
3452
|
-
label: /* @__PURE__ */
|
|
3435
|
+
type: _e.PlainText,
|
|
3436
|
+
label: /* @__PURE__ */ K("span", {
|
|
3453
3437
|
role: "status",
|
|
3454
3438
|
children: o
|
|
3455
3439
|
})
|
|
3456
3440
|
}],
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3441
|
+
maxDropdownHeight: 344,
|
|
3442
|
+
placement: "bottom-end",
|
|
3443
|
+
matchReferenceWidth: !1,
|
|
3444
|
+
listClassName: Zr,
|
|
3445
|
+
menuHeader: /* @__PURE__ */ K("div", {
|
|
3446
|
+
className: "sticky -top-1 z-10 bg-layer-raised px-2 pb-1 pt-2",
|
|
3447
|
+
children: /* @__PURE__ */ K(Me, {
|
|
3460
3448
|
value: r.value,
|
|
3461
3449
|
placeholder: i,
|
|
3462
3450
|
"aria-label": i,
|
|
3463
3451
|
clearLabel: a,
|
|
3464
|
-
size:
|
|
3452
|
+
size: ve.Small,
|
|
3465
3453
|
onChange: (e) => r.onChange(e ?? "")
|
|
3466
3454
|
})
|
|
3467
3455
|
}),
|
|
3468
3456
|
onOpenChange: (e) => {
|
|
3469
3457
|
l(e), e || r.onChange("");
|
|
3470
3458
|
},
|
|
3471
|
-
children: /* @__PURE__ */
|
|
3459
|
+
children: /* @__PURE__ */ K(ce, {
|
|
3472
3460
|
label: e,
|
|
3473
|
-
variant:
|
|
3474
|
-
appearance:
|
|
3475
|
-
iconAfter: /* @__PURE__ */
|
|
3476
|
-
size:
|
|
3477
|
-
stroke:
|
|
3461
|
+
variant: de.Primary,
|
|
3462
|
+
appearance: le.Solid,
|
|
3463
|
+
iconAfter: /* @__PURE__ */ K(Ke, {
|
|
3464
|
+
size: B.SM,
|
|
3465
|
+
stroke: V,
|
|
3478
3466
|
"aria-hidden": !0,
|
|
3479
3467
|
className: M("transition-transform", c && "rotate-180")
|
|
3480
3468
|
}),
|
|
@@ -3482,24 +3470,24 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3482
3470
|
"aria-expanded": c
|
|
3483
3471
|
})
|
|
3484
3472
|
})
|
|
3485
|
-
}) : t?.length ? /* @__PURE__ */
|
|
3473
|
+
}) : t?.length ? /* @__PURE__ */ K("div", {
|
|
3486
3474
|
ref: s,
|
|
3487
|
-
children: /* @__PURE__ */
|
|
3488
|
-
appearance:
|
|
3475
|
+
children: /* @__PURE__ */ K(ue, {
|
|
3476
|
+
appearance: le.Solid,
|
|
3489
3477
|
label: e,
|
|
3490
|
-
variant:
|
|
3478
|
+
variant: de.Primary,
|
|
3491
3479
|
items: t
|
|
3492
3480
|
})
|
|
3493
|
-
}) : /* @__PURE__ */
|
|
3481
|
+
}) : /* @__PURE__ */ K(ke, {
|
|
3494
3482
|
label: e,
|
|
3495
|
-
iconBefore: /* @__PURE__ */
|
|
3496
|
-
size:
|
|
3497
|
-
stroke:
|
|
3483
|
+
iconBefore: /* @__PURE__ */ K(st, {
|
|
3484
|
+
size: B.SM,
|
|
3485
|
+
stroke: V
|
|
3498
3486
|
}),
|
|
3499
3487
|
onClick: n
|
|
3500
3488
|
});
|
|
3501
|
-
},
|
|
3502
|
-
let { typography:
|
|
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: N, isShareVisible: oe, isSharePrimary: se, onFetchDetails: z, renderCredentials: ce, onEdit: le, onDownload: ue, isDownloadVisible: de, isDownloadPrimary: fe, onLoadContentFile: pe, onLoadContentFilePreview: me, renderContentFilePreview: B, renderContentFileTree: V, onDelete: he, onUnshare: ge, isUnshareVisible: _e, onRevokeShare: ve, onFetchRecipientsCount: ye, isRevokeShareVisible: be, onUnpublish: xe, isUnpublishVisible: H, onLogin: Se, onLogout: Ce, onCreateClick: we, createOptions: Te, createSearch: Ee, hideCreateButton: De = !1, hidePageTitle: Oe = !1, isReadonly: U = !1, initialViewMode: W = X.Grid, isFullWidth: ke = !1, selectedItemId: Ae, onCardClick: je, isLoading: Me, styles: Ne, detailsTexts: Pe, detailsLimitsFooterNote: Fe, initialDetailsItemId: Ie, sortKey: ze, onSortChange: Be, filterTopics: Ve, onFilterTopicsChange: He, isMyAppsActive: Ue, onMyAppsActiveChange: We, activeTab: Ge, onActiveTabChange: Ke, renderEmptyState: qe }) => {
|
|
3490
|
+
let { typography: Je } = Ne ?? {}, Ye = Dt(Ne), Xe = c?.pageTitle ?? "Catalog", Ze = c?.createLabel ?? "Create", Qe = c?.favoritesTitle ?? "Your favorites", $e = c?.browseTitle ?? "Browse", et = c?.searchPlaceholder ?? "Search models, tools, agents…", tt = c?.noResultsTitle ?? ((e) => `No results for "${e}"`), nt = c?.featuredLabel ?? "Featured", rt = c?.gridViewLabel ?? "Grid view", it = c?.listViewLabel ?? "List view", at = c?.viewToggleLabel ?? "View mode", ot = c?.ariaLabel ?? "Catalog", st = c?.sortLabel ?? "Sort", ct = [
|
|
3503
3491
|
{
|
|
3504
3492
|
value: s.RecentlyUpdated,
|
|
3505
3493
|
label: c?.sortRecentlyUpdatedLabel ?? "Recently Updated"
|
|
@@ -3512,14 +3500,14 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3512
3500
|
value: s.NameAZ,
|
|
3513
3501
|
label: c?.sortNameAZLabel ?? "Name A-Z"
|
|
3514
3502
|
}
|
|
3515
|
-
], [
|
|
3503
|
+
], [lt, ut] = R(""), [dt, ft] = R(W), [pt, mt] = R(W === X.Cards ? "shown" : "unmounted"), [G, gt] = R(s.RecentlyUpdated), [_t, vt] = R(/* @__PURE__ */ new Set()), [yt, bt] = R(!1), xt = ze ?? G, J = Ve ?? _t, St = Ue ?? yt, Y = P((e) => {
|
|
3516
3504
|
let t = e;
|
|
3517
|
-
|
|
3518
|
-
}, [
|
|
3519
|
-
|
|
3520
|
-
}, [
|
|
3521
|
-
|
|
3522
|
-
}, [
|
|
3505
|
+
gt(t), Be?.(t);
|
|
3506
|
+
}, [Be]), Ct = P((e) => {
|
|
3507
|
+
vt(e), He?.(e);
|
|
3508
|
+
}, [He]), wt = P((e) => {
|
|
3509
|
+
bt(e), We?.(e);
|
|
3510
|
+
}, [We]), Z = I(() => e.filter((e) => !e.isHidden), [e]), Q = I(() => o.filter((e) => !e.isHidden), [o]), Tt = I(() => n ?? u(Z), [n, Z]), Ot = I(() => t ?? r(Z, c?.tabLabels), [
|
|
3523
3511
|
t,
|
|
3524
3512
|
Z,
|
|
3525
3513
|
c?.tabLabels
|
|
@@ -3527,9 +3515,9 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3527
3515
|
F(() => {
|
|
3528
3516
|
jt((e) => e || kt);
|
|
3529
3517
|
}, [kt]);
|
|
3530
|
-
let Mt =
|
|
3531
|
-
jt(e),
|
|
3532
|
-
}, [
|
|
3518
|
+
let Mt = Ge ?? At, Nt = P((e) => {
|
|
3519
|
+
jt(e), Ke?.(e);
|
|
3520
|
+
}, [Ke]), [Pt, Ft] = R(Q.length > 0);
|
|
3533
3521
|
F(() => {
|
|
3534
3522
|
Q.length > 0 && !Pt && Ft(!0);
|
|
3535
3523
|
}, [Q.length, Pt]);
|
|
@@ -3538,31 +3526,31 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3538
3526
|
}, []), Lt = Pt && Q.length === 0, [Rt, zt] = R(null), [Bt, Vt] = R(!1), [Ht, Ut] = R(void 0), [Wt, Gt] = R(!1), Kt = L(null), qt = L(0), Jt = P(async (e) => {
|
|
3539
3527
|
Kt.current = e.id;
|
|
3540
3528
|
let t = ++qt.current;
|
|
3541
|
-
if (
|
|
3529
|
+
if (z) {
|
|
3542
3530
|
Gt(!0);
|
|
3543
3531
|
try {
|
|
3544
|
-
let n = await
|
|
3532
|
+
let n = await z(e);
|
|
3545
3533
|
return qt.current === t && Ut(n), n;
|
|
3546
3534
|
} finally {
|
|
3547
3535
|
qt.current === t && Gt(!1);
|
|
3548
3536
|
}
|
|
3549
3537
|
}
|
|
3550
|
-
}, [
|
|
3551
|
-
for (let n = 0; n <
|
|
3538
|
+
}, [z]), Yt = P(async (e) => (zt(e), Ut(void 0), Jt(e)), [Jt]), Xt = P(async (e, t) => {
|
|
3539
|
+
for (let n = 0; n < ei; n++) {
|
|
3552
3540
|
if (Kt.current !== e.id || t(await Jt(e))) return;
|
|
3553
|
-
n <
|
|
3541
|
+
n < ei - 1 && await h(ti);
|
|
3554
3542
|
}
|
|
3555
3543
|
}, [Jt]), Zt = L(null);
|
|
3556
3544
|
F(() => {
|
|
3557
|
-
if (!
|
|
3545
|
+
if (!Ie) {
|
|
3558
3546
|
Zt.current = null;
|
|
3559
3547
|
return;
|
|
3560
3548
|
}
|
|
3561
|
-
if (Zt.current ===
|
|
3562
|
-
let t = e.find((e) => e.id ===
|
|
3563
|
-
t && (Zt.current =
|
|
3549
|
+
if (Zt.current === Ie) return;
|
|
3550
|
+
let t = e.find((e) => e.id === Ie);
|
|
3551
|
+
t && (Zt.current = Ie, Yt(t));
|
|
3564
3552
|
}, [
|
|
3565
|
-
|
|
3553
|
+
Ie,
|
|
3566
3554
|
e,
|
|
3567
3555
|
Yt
|
|
3568
3556
|
]), F(() => {
|
|
@@ -3571,16 +3559,16 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3571
3559
|
t && t !== Rt && zt(t);
|
|
3572
3560
|
}, [e, Rt]);
|
|
3573
3561
|
let $t = P(async (e, t) => {
|
|
3574
|
-
await
|
|
3562
|
+
await Se?.(e, t), z && await Xt(e, (e) => f(e?.credentials, t.level));
|
|
3575
3563
|
}, [
|
|
3576
|
-
|
|
3577
|
-
|
|
3564
|
+
Se,
|
|
3565
|
+
z,
|
|
3578
3566
|
Xt
|
|
3579
3567
|
]), en = P(async (e, t) => {
|
|
3580
|
-
await
|
|
3568
|
+
await Ce?.(e, t), z && await Xt(e, (e) => !f(e?.credentials, t.level));
|
|
3581
3569
|
}, [
|
|
3582
|
-
|
|
3583
|
-
|
|
3570
|
+
Ce,
|
|
3571
|
+
z,
|
|
3584
3572
|
Xt
|
|
3585
3573
|
]), tn = P(() => {
|
|
3586
3574
|
Vt(!1), Kt.current = null, qt.current += 1, setTimeout(() => {
|
|
@@ -3595,12 +3583,12 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3595
3583
|
details: t,
|
|
3596
3584
|
credentials: e ?? Rt.credentials
|
|
3597
3585
|
};
|
|
3598
|
-
}, [Rt, Ht]), rn = I(() => l(Z,
|
|
3586
|
+
}, [Rt, Ht]), rn = I(() => l(Z, xt), [Z, xt]), an = I(() => a(rn, lt), [rn, lt]), on = I(() => J.size > 0 ? i(an, J) : an, [an, J]), sn = I(() => St ? _(on) : on, [on, St]), cn = I(() => Mt ? sn.filter((e) => e.type === Mt) : sn, [sn, Mt]);
|
|
3599
3587
|
F(() => {
|
|
3600
|
-
if (
|
|
3588
|
+
if (pt !== "unmounted" || Me || cn.length === 0) return;
|
|
3601
3589
|
let e = () => {
|
|
3602
3590
|
ae(() => {
|
|
3603
|
-
|
|
3591
|
+
mt((e) => e === "unmounted" ? "prepared" : e);
|
|
3604
3592
|
});
|
|
3605
3593
|
};
|
|
3606
3594
|
if (typeof window.requestIdleCallback == "function") {
|
|
@@ -3610,8 +3598,8 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3610
3598
|
let t = window.setTimeout(e, 200);
|
|
3611
3599
|
return () => window.clearTimeout(t);
|
|
3612
3600
|
}, [
|
|
3613
|
-
|
|
3614
|
-
|
|
3601
|
+
pt,
|
|
3602
|
+
Me,
|
|
3615
3603
|
cn.length
|
|
3616
3604
|
]);
|
|
3617
3605
|
let ln = Rt != null && Q.some((e) => e.id === Rt.id);
|
|
@@ -3621,85 +3609,85 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3621
3609
|
return () => cancelAnimationFrame(e);
|
|
3622
3610
|
}, [Rt]);
|
|
3623
3611
|
let un = P((e) => {
|
|
3624
|
-
e ===
|
|
3625
|
-
}, []), dn = !
|
|
3612
|
+
e === X.Cards && mt("shown"), ft(e);
|
|
3613
|
+
}, []), dn = !De && !U, fn = Pt && !U, pn = lt ? tt(lt) : "No items", mn = I(() => ({
|
|
3626
3614
|
noResultsTitle: pn,
|
|
3627
|
-
featuredLabel:
|
|
3628
|
-
credentialsBadgeLoggedOutLabel:
|
|
3615
|
+
featuredLabel: nt,
|
|
3616
|
+
credentialsBadgeLoggedOutLabel: Pe?.credentialsBadgeLoggedOutLabel
|
|
3629
3617
|
}), [
|
|
3630
3618
|
pn,
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
]), hn = !
|
|
3634
|
-
query:
|
|
3619
|
+
nt,
|
|
3620
|
+
Pe?.credentialsBadgeLoggedOutLabel
|
|
3621
|
+
]), hn = !Me && cn.length === 0 ? qe?.({
|
|
3622
|
+
query: lt,
|
|
3635
3623
|
activeTab: Mt,
|
|
3636
3624
|
hasTopicFilters: J.size > 0,
|
|
3637
3625
|
isMyAppsActive: St
|
|
3638
3626
|
}) : void 0;
|
|
3639
|
-
return
|
|
3627
|
+
return Me ? /* @__PURE__ */ K("div", {
|
|
3640
3628
|
className: "flex size-full min-h-0 flex-1 items-center justify-center",
|
|
3641
|
-
children: /* @__PURE__ */
|
|
3642
|
-
}) : /* @__PURE__ */
|
|
3643
|
-
"aria-label":
|
|
3629
|
+
children: /* @__PURE__ */ K(Le, {})
|
|
3630
|
+
}) : /* @__PURE__ */ q("section", {
|
|
3631
|
+
"aria-label": ot,
|
|
3644
3632
|
className: M("flex size-full min-h-0 flex-1 flex-col", Xr.root, Et.root),
|
|
3645
|
-
style:
|
|
3633
|
+
style: Ye,
|
|
3646
3634
|
children: [
|
|
3647
|
-
(!
|
|
3635
|
+
(!Oe || dn) && /* @__PURE__ */ K("div", {
|
|
3648
3636
|
className: M("shrink-0", Xr.heading),
|
|
3649
|
-
children: /* @__PURE__ */
|
|
3637
|
+
children: /* @__PURE__ */ q("div", {
|
|
3650
3638
|
className: "flex h-[64px] w-full items-center justify-between px-8",
|
|
3651
|
-
children: [!
|
|
3652
|
-
className: M(
|
|
3653
|
-
children:
|
|
3654
|
-
}), dn && /* @__PURE__ */
|
|
3655
|
-
label:
|
|
3656
|
-
options:
|
|
3657
|
-
onClick:
|
|
3658
|
-
search:
|
|
3639
|
+
children: [!Oe && /* @__PURE__ */ K("h1", {
|
|
3640
|
+
className: M(Je?.pageHeadingFontClassName ?? "dial-display2-text", Xr.headingTitle),
|
|
3641
|
+
children: Xe
|
|
3642
|
+
}), dn && /* @__PURE__ */ K($r, {
|
|
3643
|
+
label: Ze,
|
|
3644
|
+
options: Te,
|
|
3645
|
+
onClick: we,
|
|
3646
|
+
search: Ee,
|
|
3659
3647
|
searchPlaceholder: c?.createSearchPlaceholder,
|
|
3660
3648
|
searchClearLabel: c?.createSearchClearLabel,
|
|
3661
3649
|
noResultsLabel: c?.createNoResultsLabel
|
|
3662
3650
|
})]
|
|
3663
3651
|
})
|
|
3664
3652
|
}),
|
|
3665
|
-
/* @__PURE__ */
|
|
3653
|
+
/* @__PURE__ */ q("div", {
|
|
3666
3654
|
className: "flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto overflow-x-hidden",
|
|
3667
3655
|
children: [
|
|
3668
|
-
fn && /* @__PURE__ */
|
|
3656
|
+
fn && /* @__PURE__ */ K("div", {
|
|
3669
3657
|
className: "w-full px-8",
|
|
3670
|
-
children: /* @__PURE__ */
|
|
3658
|
+
children: /* @__PURE__ */ K(Dr, {
|
|
3671
3659
|
items: Q,
|
|
3672
3660
|
totalCount: Q.length,
|
|
3673
|
-
title:
|
|
3661
|
+
title: Qe,
|
|
3674
3662
|
onToggleFavorite: p,
|
|
3675
3663
|
isFavoriteVisible: m,
|
|
3676
|
-
onItemClick:
|
|
3664
|
+
onItemClick: je ?? Yt,
|
|
3677
3665
|
isLeaving: Lt,
|
|
3678
3666
|
onExitComplete: It,
|
|
3679
|
-
selectedItemId:
|
|
3680
|
-
credentialsBadgeLoggedOutLabel:
|
|
3667
|
+
selectedItemId: Ae,
|
|
3668
|
+
credentialsBadgeLoggedOutLabel: Pe?.credentialsBadgeLoggedOutLabel
|
|
3681
3669
|
})
|
|
3682
3670
|
}),
|
|
3683
|
-
/* @__PURE__ */
|
|
3671
|
+
/* @__PURE__ */ K("div", {
|
|
3684
3672
|
className: "w-full px-4 pt-6",
|
|
3685
|
-
children: /* @__PURE__ */
|
|
3673
|
+
children: /* @__PURE__ */ K(Yr, {
|
|
3686
3674
|
totalCount: sn.length,
|
|
3687
|
-
viewMode:
|
|
3675
|
+
viewMode: dt,
|
|
3688
3676
|
onViewModeChange: un,
|
|
3689
|
-
sortKey:
|
|
3690
|
-
query:
|
|
3691
|
-
onQueryChange:
|
|
3692
|
-
title:
|
|
3677
|
+
sortKey: xt,
|
|
3678
|
+
query: lt,
|
|
3679
|
+
onQueryChange: ut,
|
|
3680
|
+
title: $e,
|
|
3693
3681
|
browseHeaderRenderer: d,
|
|
3694
|
-
searchPlaceholder:
|
|
3695
|
-
gridViewLabel:
|
|
3696
|
-
listViewLabel:
|
|
3697
|
-
viewToggleLabel:
|
|
3698
|
-
sortOptions:
|
|
3682
|
+
searchPlaceholder: et,
|
|
3683
|
+
gridViewLabel: rt,
|
|
3684
|
+
listViewLabel: it,
|
|
3685
|
+
viewToggleLabel: at,
|
|
3686
|
+
sortOptions: ct,
|
|
3699
3687
|
onSortChange: Y,
|
|
3700
|
-
sortLabel:
|
|
3688
|
+
sortLabel: st,
|
|
3701
3689
|
filters: J,
|
|
3702
|
-
onFiltersChange:
|
|
3690
|
+
onFiltersChange: Ct,
|
|
3703
3691
|
filterValues: Tt,
|
|
3704
3692
|
isMyAppsActive: St,
|
|
3705
3693
|
onMyAppsChange: wt,
|
|
@@ -3708,9 +3696,9 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3708
3696
|
filterTopicsLabel: c?.filterTopicsLabel
|
|
3709
3697
|
})
|
|
3710
3698
|
}),
|
|
3711
|
-
Ot.length > 1 && /* @__PURE__ */
|
|
3699
|
+
Ot.length > 1 && /* @__PURE__ */ K("div", {
|
|
3712
3700
|
className: "min-w-0 shrink-0 overflow-x-auto px-8",
|
|
3713
|
-
children: /* @__PURE__ */
|
|
3701
|
+
children: /* @__PURE__ */ K(Re, {
|
|
3714
3702
|
tabs: Ot.map((e) => ({
|
|
3715
3703
|
id: e.id,
|
|
3716
3704
|
label: typeof e.label == "string" ? e.label : String(e.label),
|
|
@@ -3720,52 +3708,52 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3720
3708
|
onTabChange: Nt
|
|
3721
3709
|
})
|
|
3722
3710
|
}),
|
|
3723
|
-
/* @__PURE__ */
|
|
3724
|
-
className: M(cn.length > 0 ? ["min-h-full w-full px-8 py-6", !
|
|
3725
|
-
children: hn ?? /* @__PURE__ */
|
|
3726
|
-
inert:
|
|
3727
|
-
className: M(cn.length > 0 ? "pb-8" : "size-full flex-1",
|
|
3728
|
-
children: /* @__PURE__ */
|
|
3711
|
+
/* @__PURE__ */ K("div", {
|
|
3712
|
+
className: M(cn.length > 0 ? ["min-h-full w-full px-8 py-6", !ke && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", cn.length === 0 && "px-8 py-6"),
|
|
3713
|
+
children: hn ?? /* @__PURE__ */ q(ht, { children: [/* @__PURE__ */ K("div", {
|
|
3714
|
+
inert: dt !== X.Grid,
|
|
3715
|
+
className: M(cn.length > 0 ? "pb-8" : "size-full flex-1", dt !== X.Grid && "hidden"),
|
|
3716
|
+
children: /* @__PURE__ */ K(Qt, {
|
|
3729
3717
|
items: cn,
|
|
3730
|
-
query:
|
|
3718
|
+
query: lt,
|
|
3731
3719
|
onToggleFavorite: p,
|
|
3732
3720
|
isFavoriteVisible: m,
|
|
3733
|
-
onItemClick:
|
|
3721
|
+
onItemClick: je ?? Yt,
|
|
3734
3722
|
titles: mn,
|
|
3735
|
-
selectedItemId:
|
|
3736
|
-
isReadonly:
|
|
3737
|
-
isFullWidth:
|
|
3738
|
-
featuredChipStyle:
|
|
3723
|
+
selectedItemId: Ae,
|
|
3724
|
+
isReadonly: U,
|
|
3725
|
+
isFullWidth: ke,
|
|
3726
|
+
featuredChipStyle: Ne?.colors?.featuredChipStyle
|
|
3739
3727
|
})
|
|
3740
|
-
}),
|
|
3741
|
-
inert:
|
|
3742
|
-
className: M("pb-8",
|
|
3743
|
-
children: /* @__PURE__ */
|
|
3728
|
+
}), pt !== "unmounted" && /* @__PURE__ */ K("div", {
|
|
3729
|
+
inert: dt !== X.Cards,
|
|
3730
|
+
className: M("pb-8", dt !== X.Cards && (pt === "prepared" ? "invisible h-0 overflow-hidden p-0" : "hidden"), cn.length === 0 && dt === X.Cards && "h-full"),
|
|
3731
|
+
children: /* @__PURE__ */ K(Vr, {
|
|
3744
3732
|
type: Mt,
|
|
3745
3733
|
items: cn,
|
|
3746
|
-
query:
|
|
3747
|
-
ariaLabel:
|
|
3734
|
+
query: lt,
|
|
3735
|
+
ariaLabel: ot,
|
|
3748
3736
|
emptyStateTitle: pn,
|
|
3749
3737
|
onToggleFavorite: p,
|
|
3750
3738
|
isFavoriteVisible: m,
|
|
3751
3739
|
columnVisibility: g,
|
|
3752
|
-
onItemClick:
|
|
3740
|
+
onItemClick: je ?? Yt,
|
|
3753
3741
|
stickyHeaderTop: 0,
|
|
3754
|
-
selectedItemId:
|
|
3755
|
-
credentialsBadgeLoggedOutLabel:
|
|
3756
|
-
isReadonly:
|
|
3742
|
+
selectedItemId: Ae,
|
|
3743
|
+
credentialsBadgeLoggedOutLabel: Pe?.credentialsBadgeLoggedOutLabel,
|
|
3744
|
+
isReadonly: U
|
|
3757
3745
|
})
|
|
3758
3746
|
})] })
|
|
3759
3747
|
})
|
|
3760
3748
|
]
|
|
3761
3749
|
}),
|
|
3762
|
-
nn != null && /* @__PURE__ */
|
|
3763
|
-
renderCredentials:
|
|
3750
|
+
nn != null && /* @__PURE__ */ K(Sr, {
|
|
3751
|
+
renderCredentials: ce,
|
|
3764
3752
|
item: nn,
|
|
3765
3753
|
isOpen: Bt,
|
|
3766
3754
|
isStarred: ln,
|
|
3767
3755
|
isDetailsLoading: Wt,
|
|
3768
|
-
isReadonly:
|
|
3756
|
+
isReadonly: U,
|
|
3769
3757
|
onClose: tn,
|
|
3770
3758
|
onToggleFavorite: p,
|
|
3771
3759
|
isFavoriteVisible: m,
|
|
@@ -3791,31 +3779,31 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3791
3779
|
shareOverlay: N,
|
|
3792
3780
|
isShareVisible: oe,
|
|
3793
3781
|
isSharePrimary: se,
|
|
3794
|
-
onEdit:
|
|
3795
|
-
onDownload:
|
|
3796
|
-
isDownloadVisible:
|
|
3797
|
-
isDownloadPrimary:
|
|
3798
|
-
onLoadContentFile:
|
|
3799
|
-
onLoadContentFilePreview:
|
|
3800
|
-
renderContentFilePreview:
|
|
3801
|
-
renderContentFileTree:
|
|
3802
|
-
onDelete:
|
|
3803
|
-
onUnshare:
|
|
3804
|
-
isUnshareVisible:
|
|
3805
|
-
onRevokeShare:
|
|
3806
|
-
onFetchRecipientsCount:
|
|
3807
|
-
isRevokeShareVisible:
|
|
3808
|
-
onUnpublish:
|
|
3809
|
-
isUnpublishVisible:
|
|
3782
|
+
onEdit: le,
|
|
3783
|
+
onDownload: ue,
|
|
3784
|
+
isDownloadVisible: de,
|
|
3785
|
+
isDownloadPrimary: fe,
|
|
3786
|
+
onLoadContentFile: pe,
|
|
3787
|
+
onLoadContentFilePreview: me,
|
|
3788
|
+
renderContentFilePreview: B,
|
|
3789
|
+
renderContentFileTree: V,
|
|
3790
|
+
onDelete: he,
|
|
3791
|
+
onUnshare: ge,
|
|
3792
|
+
isUnshareVisible: _e,
|
|
3793
|
+
onRevokeShare: ve,
|
|
3794
|
+
onFetchRecipientsCount: ye,
|
|
3795
|
+
isRevokeShareVisible: be,
|
|
3796
|
+
onUnpublish: xe,
|
|
3797
|
+
isUnpublishVisible: H,
|
|
3810
3798
|
onLogin: $t,
|
|
3811
3799
|
onLogout: en,
|
|
3812
|
-
texts:
|
|
3813
|
-
limitsFooterNote:
|
|
3814
|
-
styles: { colors: { featuredChipStyle:
|
|
3800
|
+
texts: Pe,
|
|
3801
|
+
limitsFooterNote: Fe,
|
|
3802
|
+
styles: { colors: { featuredChipStyle: Ne?.colors?.featuredChipStyle } }
|
|
3815
3803
|
})
|
|
3816
3804
|
]
|
|
3817
3805
|
});
|
|
3818
|
-
},
|
|
3806
|
+
}, 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 }) => {
|
|
3819
3807
|
let [x, S] = R(!1), C = v ?? x, w = (e) => {
|
|
3820
3808
|
e && u || (v === void 0 && S(e), y?.(e));
|
|
3821
3809
|
}, [T, E] = R(""), D = L(null), O = I(() => [...s, ...t].filter((e) => e.label.toLocaleLowerCase().includes(T.toLocaleLowerCase())), [
|
|
@@ -3826,50 +3814,50 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3826
3814
|
w(!1), requestAnimationFrame(() => D.current?.focus());
|
|
3827
3815
|
}, k = (e) => {
|
|
3828
3816
|
a(e), ee();
|
|
3829
|
-
}, A = _ ? _(ee) : /* @__PURE__ */
|
|
3817
|
+
}, A = _ ? _(ee) : /* @__PURE__ */ q("div", {
|
|
3830
3818
|
className: M("w-full min-w-0 max-w-full p-3", h),
|
|
3831
3819
|
children: [
|
|
3832
|
-
/* @__PURE__ */
|
|
3820
|
+
/* @__PURE__ */ K(Me, {
|
|
3833
3821
|
value: T,
|
|
3834
3822
|
onChange: (e) => E(e ?? ""),
|
|
3835
3823
|
placeholder: i.searchPlaceholder,
|
|
3836
3824
|
"aria-label": i.searchAriaLabel
|
|
3837
3825
|
}),
|
|
3838
|
-
/* @__PURE__ */
|
|
3826
|
+
/* @__PURE__ */ K("div", {
|
|
3839
3827
|
role: "listbox",
|
|
3840
3828
|
className: "mt-2 max-h-[min(50dvh,320px)] min-w-0 overflow-y-auto",
|
|
3841
|
-
children: c ? /* @__PURE__ */
|
|
3829
|
+
children: c ? /* @__PURE__ */ K("span", {
|
|
3842
3830
|
role: "status",
|
|
3843
3831
|
children: i.searchPlaceholder
|
|
3844
|
-
}) : l ? /* @__PURE__ */
|
|
3832
|
+
}) : l ? /* @__PURE__ */ K("span", {
|
|
3845
3833
|
role: "alert",
|
|
3846
3834
|
children: i.errorLabel
|
|
3847
|
-
}) : O.length === 0 ? /* @__PURE__ */
|
|
3835
|
+
}) : O.length === 0 ? /* @__PURE__ */ K("span", {
|
|
3848
3836
|
role: "status",
|
|
3849
3837
|
children: i.emptyLabel
|
|
3850
|
-
}) : O.map((t) => /* @__PURE__ */
|
|
3838
|
+
}) : O.map((t) => /* @__PURE__ */ K(De, {
|
|
3851
3839
|
role: "option",
|
|
3852
3840
|
"aria-selected": t.id === e,
|
|
3853
3841
|
selected: t.id === e,
|
|
3854
|
-
label: /* @__PURE__ */
|
|
3842
|
+
label: /* @__PURE__ */ q("span", {
|
|
3855
3843
|
className: "flex min-w-0 items-center gap-2",
|
|
3856
|
-
children: [t.icon && /* @__PURE__ */
|
|
3844
|
+
children: [t.icon && /* @__PURE__ */ K("span", {
|
|
3857
3845
|
"aria-hidden": !0,
|
|
3858
3846
|
children: t.icon
|
|
3859
|
-
}), /* @__PURE__ */
|
|
3847
|
+
}), /* @__PURE__ */ q("span", {
|
|
3860
3848
|
className: "flex min-w-0 flex-col",
|
|
3861
|
-
children: [/* @__PURE__ */
|
|
3849
|
+
children: [/* @__PURE__ */ K(Se, {
|
|
3862
3850
|
text: t.label,
|
|
3863
3851
|
query: T,
|
|
3864
3852
|
maxLines: 2
|
|
3865
|
-
}), t.description && /* @__PURE__ */
|
|
3853
|
+
}), t.description && /* @__PURE__ */ K("span", { children: t.description })]
|
|
3866
3854
|
})]
|
|
3867
3855
|
}),
|
|
3868
3856
|
onClick: () => k(t.id),
|
|
3869
3857
|
className: "h-auto max-w-full py-2"
|
|
3870
3858
|
}, t.id))
|
|
3871
3859
|
}),
|
|
3872
|
-
o && /* @__PURE__ */
|
|
3860
|
+
o && /* @__PURE__ */ K(xe, {
|
|
3873
3861
|
className: "mt-2 min-h-11 max-w-full",
|
|
3874
3862
|
label: i.browseLabel ?? "",
|
|
3875
3863
|
onClick: () => {
|
|
@@ -3877,7 +3865,7 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3877
3865
|
}
|
|
3878
3866
|
})
|
|
3879
3867
|
]
|
|
3880
|
-
}), te = /* @__PURE__ */
|
|
3868
|
+
}), te = /* @__PURE__ */ K(Te, {
|
|
3881
3869
|
onFocus: (e) => {
|
|
3882
3870
|
D.current = e.currentTarget;
|
|
3883
3871
|
},
|
|
@@ -3902,11 +3890,11 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3902
3890
|
className: "cursor-pointer",
|
|
3903
3891
|
iconAfter: g
|
|
3904
3892
|
});
|
|
3905
|
-
return b ? /* @__PURE__ */
|
|
3893
|
+
return b ? /* @__PURE__ */ q(ht, { children: [/* @__PURE__ */ K("div", {
|
|
3906
3894
|
className: "w-full min-w-0",
|
|
3907
3895
|
onClick: () => w(!C),
|
|
3908
3896
|
children: te
|
|
3909
|
-
}), b(A, C, ee)] }) : /* @__PURE__ */
|
|
3897
|
+
}), b(A, C, ee)] }) : /* @__PURE__ */ K(ge, {
|
|
3910
3898
|
open: C,
|
|
3911
3899
|
onOpenChange: w,
|
|
3912
3900
|
disabled: u,
|
|
@@ -3915,15 +3903,15 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3915
3903
|
renderOverlay: () => A,
|
|
3916
3904
|
children: te
|
|
3917
3905
|
});
|
|
3918
|
-
},
|
|
3906
|
+
}, ii = ({ service: e, texts: t, onLogin: n, onLogout: r }) => {
|
|
3919
3907
|
let [i, a] = R(!1), [s, c] = R(!1), [l, u] = R(!1), [d, f] = R(), 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?";
|
|
3920
|
-
return /* @__PURE__ */
|
|
3908
|
+
return /* @__PURE__ */ q(wn, {
|
|
3921
3909
|
label: e.name,
|
|
3922
3910
|
description: e.description,
|
|
3923
|
-
icon: /* @__PURE__ */
|
|
3924
|
-
size:
|
|
3911
|
+
icon: /* @__PURE__ */ K(ft, {
|
|
3912
|
+
size: B.SM,
|
|
3925
3913
|
"aria-hidden": !0,
|
|
3926
|
-
stroke:
|
|
3914
|
+
stroke: V
|
|
3927
3915
|
}),
|
|
3928
3916
|
status: e.status,
|
|
3929
3917
|
isActive: e.status === o.SignedIn,
|
|
@@ -3943,7 +3931,7 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3943
3931
|
keyCardTitleClassName: "dial-tiny-semi-text",
|
|
3944
3932
|
keyCardDescriptionClassName: "dial-tiny-text",
|
|
3945
3933
|
deleteActionClassName: Cn.errorText,
|
|
3946
|
-
renderLoginOptions: e.canConsentToOfflineUsage ? (e) => /* @__PURE__ */
|
|
3934
|
+
renderLoginOptions: e.canConsentToOfflineUsage ? (e) => /* @__PURE__ */ K(pe, {
|
|
3947
3935
|
isSelected: i,
|
|
3948
3936
|
onChange: a,
|
|
3949
3937
|
disabled: e,
|
|
@@ -3951,37 +3939,37 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
3951
3939
|
caption: t?.offlineUsageConsentHint
|
|
3952
3940
|
}) : void 0,
|
|
3953
3941
|
children: [
|
|
3954
|
-
e.hint && /* @__PURE__ */
|
|
3942
|
+
e.hint && /* @__PURE__ */ K("p", {
|
|
3955
3943
|
className: M("dial-small-text break-words", Cn.description),
|
|
3956
3944
|
children: e.hint
|
|
3957
3945
|
}),
|
|
3958
|
-
e.hasSharedCredentials && /* @__PURE__ */
|
|
3959
|
-
icon: /* @__PURE__ */
|
|
3960
|
-
size:
|
|
3946
|
+
e.hasSharedCredentials && /* @__PURE__ */ K(gn, {
|
|
3947
|
+
icon: /* @__PURE__ */ K(We, {
|
|
3948
|
+
size: B.SM,
|
|
3961
3949
|
"aria-hidden": !0,
|
|
3962
|
-
stroke:
|
|
3950
|
+
stroke: V
|
|
3963
3951
|
}),
|
|
3964
3952
|
title: t?.sharedCredentials ?? "Shared credentials are available for this service."
|
|
3965
3953
|
}),
|
|
3966
|
-
s && /* @__PURE__ */
|
|
3954
|
+
s && /* @__PURE__ */ q("div", {
|
|
3967
3955
|
className: "flex flex-col gap-3 pt-3",
|
|
3968
3956
|
children: [
|
|
3969
|
-
/* @__PURE__ */
|
|
3970
|
-
d && /* @__PURE__ */
|
|
3957
|
+
/* @__PURE__ */ K("p", { children: h }),
|
|
3958
|
+
d && /* @__PURE__ */ K("p", {
|
|
3971
3959
|
role: "alert",
|
|
3972
3960
|
className: Cn.errorText,
|
|
3973
3961
|
children: d
|
|
3974
3962
|
}),
|
|
3975
|
-
/* @__PURE__ */
|
|
3963
|
+
/* @__PURE__ */ q("div", {
|
|
3976
3964
|
className: "flex flex-wrap justify-end gap-2",
|
|
3977
|
-
children: [/* @__PURE__ */
|
|
3965
|
+
children: [/* @__PURE__ */ K(U, {
|
|
3978
3966
|
className: "min-h-11",
|
|
3979
3967
|
label: t?.cancelLabel ?? "Cancel",
|
|
3980
3968
|
disabled: l,
|
|
3981
3969
|
onClick: () => {
|
|
3982
3970
|
c(!1), f(void 0);
|
|
3983
3971
|
}
|
|
3984
|
-
}), /* @__PURE__ */
|
|
3972
|
+
}), /* @__PURE__ */ K(he, {
|
|
3985
3973
|
className: "min-h-11",
|
|
3986
3974
|
label: m,
|
|
3987
3975
|
disabled: l,
|
|
@@ -4003,39 +3991,39 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
4003
3991
|
})
|
|
4004
3992
|
]
|
|
4005
3993
|
});
|
|
4006
|
-
},
|
|
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__ */ K("p", {
|
|
4007
3995
|
role: "status",
|
|
4008
3996
|
className: "px-6 py-3",
|
|
4009
3997
|
children: s?.loading ?? "Loading…"
|
|
4010
|
-
}) : n ? /* @__PURE__ */
|
|
3998
|
+
}) : n ? /* @__PURE__ */ q("div", {
|
|
4011
3999
|
className: "flex flex-col gap-2 px-6 py-3",
|
|
4012
|
-
children: [/* @__PURE__ */
|
|
4000
|
+
children: [/* @__PURE__ */ K("p", {
|
|
4013
4001
|
role: "alert",
|
|
4014
4002
|
children: s?.loadError ?? "Unable to load credentials"
|
|
4015
|
-
}), /* @__PURE__ */
|
|
4003
|
+
}), /* @__PURE__ */ K(U, {
|
|
4016
4004
|
className: "min-h-11 self-start",
|
|
4017
4005
|
label: s?.retry ?? "Retry",
|
|
4018
4006
|
onClick: i
|
|
4019
4007
|
})]
|
|
4020
|
-
}) : e.length ? /* @__PURE__ */
|
|
4008
|
+
}) : e.length ? /* @__PURE__ */ q("section", {
|
|
4021
4009
|
"aria-label": s?.title ?? "Credentials",
|
|
4022
4010
|
className: "flex min-w-0 flex-col gap-5 px-6 py-4",
|
|
4023
|
-
children: [/* @__PURE__ */
|
|
4011
|
+
children: [/* @__PURE__ */ K("h2", {
|
|
4024
4012
|
className: "dial-h3-text",
|
|
4025
4013
|
children: s?.title ?? "Credentials"
|
|
4026
|
-
}), /* @__PURE__ */
|
|
4014
|
+
}), /* @__PURE__ */ K("div", {
|
|
4027
4015
|
className: "flex min-w-0 flex-col",
|
|
4028
|
-
children: e.map((e) => /* @__PURE__ */
|
|
4016
|
+
children: e.map((e) => /* @__PURE__ */ K(ii, {
|
|
4029
4017
|
service: e,
|
|
4030
4018
|
texts: s,
|
|
4031
4019
|
onLogin: a,
|
|
4032
4020
|
onLogout: o
|
|
4033
4021
|
}, e.id))
|
|
4034
4022
|
})]
|
|
4035
|
-
}) : r ? /* @__PURE__ */
|
|
4023
|
+
}) : r ? /* @__PURE__ */ K("p", {
|
|
4036
4024
|
role: "status",
|
|
4037
4025
|
className: "px-6 py-3",
|
|
4038
4026
|
children: s?.empty ?? "No credentials required"
|
|
4039
4027
|
}) : null;
|
|
4040
4028
|
//#endregion
|
|
4041
|
-
export { Rt as AppIdentity,
|
|
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, xt 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 };
|