@epam/ai-dial-catalog 1.1.0-dev.43 → 1.1.0-dev.45
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/AppIdentity/AppIdentity.d.ts.map +1 -1
- package/components/Catalog/Catalog.d.ts.map +1 -1
- package/components/Details/DetailsPanel.d.ts.map +1 -1
- package/components/Details/Header/Header.d.ts +5 -0
- package/components/Details/Header/Header.d.ts.map +1 -1
- package/components/Details/Header/ShareButton/ShareButton.d.ts +6 -0
- package/components/Details/Header/ShareButton/ShareButton.d.ts.map +1 -1
- package/components/ItemHeader/ItemHeader.d.ts.map +1 -1
- package/components/ListView/ListView.d.ts.map +1 -1
- package/constants/entity-colors.d.ts.map +1 -1
- package/index.js +397 -397
- package/models/catalog-props.d.ts +9 -0
- package/models/catalog-props.d.ts.map +1 -1
- package/models/item-details-props.d.ts +6 -0
- package/models/item-details-props.d.ts.map +1 -1
- package/package.json +4 -4
- package/types/entity-type.d.ts +1 -4
- package/types/entity-type.d.ts.map +1 -1
- package/utils/catalog-tabs.d.ts.map +1 -1
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e, { Fragment as t, createElement as n, forwardRef as r, memo as i, useCallback as a, useEffect as o, useId as s, useLayoutEffect as c, useMemo as l, useRef as u, useState as d } from "react";
|
|
2
|
-
import { ButtonAppearance as f, ButtonVariant as p, DIAL_ICON_SIZE as m, DialAccordion as h, DialBreadcrumb as g, DialButton as _, DialCheckbox as v, DialCloseButton as y, DialConfirmationPopup as b, DialDropdown as x, DialEllipsisTooltip as S, DialFileNodeType as C, DialFoldersTree as w, DialGhostButton as T, DialGhostIconButton as E, DialGrid as D, DialIcon as O, DialInput as k, DialNeutralButton as ee, DialNoDataContent as A, DialPrimaryButton as j, DialProgressBar as M, DialProgressBarSize as N, DialSkeleton as te, DialSkeletonAvatarShape as P, DialSpinner as ne, DialTag as re, DialTooltip as ie, ElementSize as
|
|
2
|
+
import { ButtonAppearance as f, ButtonVariant as p, DIAL_ICON_SIZE as m, DialAccordion as h, DialBreadcrumb as g, DialButton as _, DialCheckbox as v, DialCloseButton as y, DialConfirmationPopup as b, DialDropdown as x, DialEllipsisTooltip as S, DialFileNodeType as C, DialFoldersTree as w, DialGhostButton as T, DialGhostIconButton as E, DialGrid as D, DialIcon as O, DialInput as k, DialNeutralButton as ee, DialNoDataContent as A, DialPrimaryButton as j, DialProgressBar as M, DialProgressBarSize as N, DialSkeleton as te, DialSkeletonAvatarShape as P, DialSpinner as ne, DialTag as re, DialTooltip as ie, ElementSize as ae, Notification as F, NotificationType as I, NotificationVariant as oe, mergeClasses as se } from "@epam/ai-dial-ui-kit";
|
|
3
3
|
import { Fragment as L, jsx as R, jsxs as z } from "react/jsx-runtime";
|
|
4
|
-
import { IconCheck as ce, IconChevronDown as le, IconChevronLeft as ue, IconChevronRight as de, IconCircleCheckFilled as fe, IconCopy as pe, IconFilter as me, IconFolder as he, IconFolderPlus as ge, IconKey as
|
|
4
|
+
import { IconCheck as ce, IconChevronDown as le, IconChevronLeft as ue, IconChevronRight as de, IconCircleCheckFilled as fe, IconCopy as pe, IconFilter as me, IconFolder as he, IconFolderPlus as ge, IconKey as _e, IconLayoutGrid as B, IconLayoutList as ve, IconLogin as ye, IconLogout as be, IconMessageCircle as xe, IconPencil as Se, IconPlayerPlayFilled as Ce, IconPlugConnected as we, IconPlus as Te, IconSearch as Ee, IconShare as De, IconStar as Oe, IconStarFilled as ke, IconTrash as Ae, IconX as je, IconZoomCancel as Me } from "@tabler/icons-react";
|
|
5
5
|
//#region src/types/code-language.ts
|
|
6
6
|
var Ne = /* @__PURE__ */ function(e) {
|
|
7
7
|
return e.Python = "python", e.Curl = "curl", e.JavaScript = "javascript", e;
|
|
@@ -10,7 +10,7 @@ var Ne = /* @__PURE__ */ function(e) {
|
|
|
10
10
|
}({}), Fe = /* @__PURE__ */ function(e) {
|
|
11
11
|
return e.Free = "FREE", e.Featured = "FEATURED", e.ByRequest = "BY_REQUEST", e.Beta = "BETA", e.Deprecated = "DEPRECATED", e;
|
|
12
12
|
}({}), V = /* @__PURE__ */ function(e) {
|
|
13
|
-
return e.Model = "MODEL", e.
|
|
13
|
+
return e.Model = "MODEL", e.Agent = "AGENT", e.Toolset = "TOOLSET", e.Skill = "SKILL", e;
|
|
14
14
|
}({}), Ie = /* @__PURE__ */ function(e) {
|
|
15
15
|
return e.RecentlyUpdated = "recently-updated", e.Newest = "newest", e.NameAZ = "name-az", e;
|
|
16
16
|
}({}), Le = /* @__PURE__ */ function(e) {
|
|
@@ -631,18 +631,18 @@ var Ot = /* @__PURE__ */ wt((/* @__PURE__ */ xt(((e, t) => {
|
|
|
631
631
|
Bn,
|
|
632
632
|
kn,
|
|
633
633
|
{ size: [W, U] }
|
|
634
|
-
],
|
|
634
|
+
], ae = () => [
|
|
635
635
|
bn,
|
|
636
636
|
Ln,
|
|
637
637
|
An
|
|
638
|
-
],
|
|
638
|
+
], F = () => [
|
|
639
639
|
"",
|
|
640
640
|
"none",
|
|
641
641
|
"full",
|
|
642
642
|
l,
|
|
643
643
|
W,
|
|
644
644
|
U
|
|
645
|
-
],
|
|
645
|
+
], I = () => [
|
|
646
646
|
"",
|
|
647
647
|
H,
|
|
648
648
|
Ln,
|
|
@@ -1242,41 +1242,41 @@ var Ot = /* @__PURE__ */ wt((/* @__PURE__ */ xt(((e, t) => {
|
|
|
1242
1242
|
Fn
|
|
1243
1243
|
] }],
|
|
1244
1244
|
"bg-color": [{ bg: P() }],
|
|
1245
|
-
"gradient-from-pos": [{ from:
|
|
1246
|
-
"gradient-via-pos": [{ via:
|
|
1247
|
-
"gradient-to-pos": [{ to:
|
|
1245
|
+
"gradient-from-pos": [{ from: ae() }],
|
|
1246
|
+
"gradient-via-pos": [{ via: ae() }],
|
|
1247
|
+
"gradient-to-pos": [{ to: ae() }],
|
|
1248
1248
|
"gradient-from": [{ from: P() }],
|
|
1249
1249
|
"gradient-via": [{ via: P() }],
|
|
1250
1250
|
"gradient-to": [{ to: P() }],
|
|
1251
|
-
rounded: [{ rounded:
|
|
1252
|
-
"rounded-s": [{ "rounded-s":
|
|
1253
|
-
"rounded-e": [{ "rounded-e":
|
|
1254
|
-
"rounded-t": [{ "rounded-t":
|
|
1255
|
-
"rounded-r": [{ "rounded-r":
|
|
1256
|
-
"rounded-b": [{ "rounded-b":
|
|
1257
|
-
"rounded-l": [{ "rounded-l":
|
|
1258
|
-
"rounded-ss": [{ "rounded-ss":
|
|
1259
|
-
"rounded-se": [{ "rounded-se":
|
|
1260
|
-
"rounded-ee": [{ "rounded-ee":
|
|
1261
|
-
"rounded-es": [{ "rounded-es":
|
|
1262
|
-
"rounded-tl": [{ "rounded-tl":
|
|
1263
|
-
"rounded-tr": [{ "rounded-tr":
|
|
1264
|
-
"rounded-br": [{ "rounded-br":
|
|
1265
|
-
"rounded-bl": [{ "rounded-bl":
|
|
1266
|
-
"border-w": [{ border:
|
|
1267
|
-
"border-w-x": [{ "border-x":
|
|
1268
|
-
"border-w-y": [{ "border-y":
|
|
1269
|
-
"border-w-s": [{ "border-s":
|
|
1270
|
-
"border-w-e": [{ "border-e":
|
|
1271
|
-
"border-w-bs": [{ "border-bs":
|
|
1272
|
-
"border-w-be": [{ "border-be":
|
|
1273
|
-
"border-w-t": [{ "border-t":
|
|
1274
|
-
"border-w-r": [{ "border-r":
|
|
1275
|
-
"border-w-b": [{ "border-b":
|
|
1276
|
-
"border-w-l": [{ "border-l":
|
|
1277
|
-
"divide-x": [{ "divide-x":
|
|
1251
|
+
rounded: [{ rounded: F() }],
|
|
1252
|
+
"rounded-s": [{ "rounded-s": F() }],
|
|
1253
|
+
"rounded-e": [{ "rounded-e": F() }],
|
|
1254
|
+
"rounded-t": [{ "rounded-t": F() }],
|
|
1255
|
+
"rounded-r": [{ "rounded-r": F() }],
|
|
1256
|
+
"rounded-b": [{ "rounded-b": F() }],
|
|
1257
|
+
"rounded-l": [{ "rounded-l": F() }],
|
|
1258
|
+
"rounded-ss": [{ "rounded-ss": F() }],
|
|
1259
|
+
"rounded-se": [{ "rounded-se": F() }],
|
|
1260
|
+
"rounded-ee": [{ "rounded-ee": F() }],
|
|
1261
|
+
"rounded-es": [{ "rounded-es": F() }],
|
|
1262
|
+
"rounded-tl": [{ "rounded-tl": F() }],
|
|
1263
|
+
"rounded-tr": [{ "rounded-tr": F() }],
|
|
1264
|
+
"rounded-br": [{ "rounded-br": F() }],
|
|
1265
|
+
"rounded-bl": [{ "rounded-bl": F() }],
|
|
1266
|
+
"border-w": [{ border: I() }],
|
|
1267
|
+
"border-w-x": [{ "border-x": I() }],
|
|
1268
|
+
"border-w-y": [{ "border-y": I() }],
|
|
1269
|
+
"border-w-s": [{ "border-s": I() }],
|
|
1270
|
+
"border-w-e": [{ "border-e": I() }],
|
|
1271
|
+
"border-w-bs": [{ "border-bs": I() }],
|
|
1272
|
+
"border-w-be": [{ "border-be": I() }],
|
|
1273
|
+
"border-w-t": [{ "border-t": I() }],
|
|
1274
|
+
"border-w-r": [{ "border-r": I() }],
|
|
1275
|
+
"border-w-b": [{ "border-b": I() }],
|
|
1276
|
+
"border-w-l": [{ "border-l": I() }],
|
|
1277
|
+
"divide-x": [{ "divide-x": I() }],
|
|
1278
1278
|
"divide-x-reverse": ["divide-x-reverse"],
|
|
1279
|
-
"divide-y": [{ "divide-y":
|
|
1279
|
+
"divide-y": [{ "divide-y": I() }],
|
|
1280
1280
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
1281
1281
|
"border-style": [{ border: [
|
|
1282
1282
|
...oe(),
|
|
@@ -1332,12 +1332,12 @@ var Ot = /* @__PURE__ */ wt((/* @__PURE__ */ xt(((e, t) => {
|
|
|
1332
1332
|
In
|
|
1333
1333
|
] }],
|
|
1334
1334
|
"inset-shadow-color": [{ "inset-shadow": P() }],
|
|
1335
|
-
"ring-w": [{ ring:
|
|
1335
|
+
"ring-w": [{ ring: I() }],
|
|
1336
1336
|
"ring-w-inset": ["ring-inset"],
|
|
1337
1337
|
"ring-color": [{ ring: P() }],
|
|
1338
1338
|
"ring-offset-w": [{ "ring-offset": [H, An] }],
|
|
1339
1339
|
"ring-offset-color": [{ "ring-offset": P() }],
|
|
1340
|
-
"inset-ring-w": [{ "inset-ring":
|
|
1340
|
+
"inset-ring-w": [{ "inset-ring": I() }],
|
|
1341
1341
|
"inset-ring-color": [{ "inset-ring": P() }],
|
|
1342
1342
|
"text-shadow": [{ "text-shadow": [
|
|
1343
1343
|
"none",
|
|
@@ -5675,11 +5675,11 @@ function qs(e) {
|
|
|
5675
5675
|
image: a(me),
|
|
5676
5676
|
label: o,
|
|
5677
5677
|
link: a(he),
|
|
5678
|
-
listItem: a(
|
|
5678
|
+
listItem: a(_e),
|
|
5679
5679
|
listItemValue: f,
|
|
5680
5680
|
listOrdered: a(ge, d),
|
|
5681
5681
|
listUnordered: a(ge),
|
|
5682
|
-
paragraph: a(
|
|
5682
|
+
paragraph: a(B),
|
|
5683
5683
|
reference: ie,
|
|
5684
5684
|
referenceString: o,
|
|
5685
5685
|
resourceDestinationString: o,
|
|
@@ -5696,9 +5696,9 @@ function qs(e) {
|
|
|
5696
5696
|
autolinkProtocol: se,
|
|
5697
5697
|
blockQuote: c(),
|
|
5698
5698
|
characterEscapeValue: E,
|
|
5699
|
-
characterReferenceMarkerHexadecimal:
|
|
5700
|
-
characterReferenceMarkerNumeric:
|
|
5701
|
-
characterReferenceValue:
|
|
5699
|
+
characterReferenceMarkerHexadecimal: F,
|
|
5700
|
+
characterReferenceMarkerNumeric: F,
|
|
5701
|
+
characterReferenceValue: I,
|
|
5702
5702
|
characterReference: oe,
|
|
5703
5703
|
codeFenced: c(g),
|
|
5704
5704
|
codeFencedFence: h,
|
|
@@ -5729,7 +5729,7 @@ function qs(e) {
|
|
|
5729
5729
|
listOrdered: c(),
|
|
5730
5730
|
listUnordered: c(),
|
|
5731
5731
|
paragraph: c(),
|
|
5732
|
-
referenceString:
|
|
5732
|
+
referenceString: ae,
|
|
5733
5733
|
resourceDestinationString: P,
|
|
5734
5734
|
resourceTitleString: ne,
|
|
5735
5735
|
resource: re,
|
|
@@ -5996,14 +5996,14 @@ function qs(e) {
|
|
|
5996
5996
|
function ie() {
|
|
5997
5997
|
this.data.referenceType = "collapsed";
|
|
5998
5998
|
}
|
|
5999
|
-
function
|
|
5999
|
+
function ae(e) {
|
|
6000
6000
|
let t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
6001
6001
|
n.label = t, n.identifier = ma(this.sliceSerialize(e)).toLowerCase(), this.data.referenceType = "full";
|
|
6002
6002
|
}
|
|
6003
|
-
function
|
|
6003
|
+
function F(e) {
|
|
6004
6004
|
this.data.characterReferenceType = e.type;
|
|
6005
6005
|
}
|
|
6006
|
-
function
|
|
6006
|
+
function I(e) {
|
|
6007
6007
|
let t = this.sliceSerialize(e), n = this.data.characterReferenceType, r;
|
|
6008
6008
|
n ? (r = pa(t, n === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : r = oa(t);
|
|
6009
6009
|
let i = this.stack[this.stack.length - 1];
|
|
@@ -6099,7 +6099,7 @@ function qs(e) {
|
|
|
6099
6099
|
children: []
|
|
6100
6100
|
};
|
|
6101
6101
|
}
|
|
6102
|
-
function
|
|
6102
|
+
function _e(e) {
|
|
6103
6103
|
return {
|
|
6104
6104
|
type: "listItem",
|
|
6105
6105
|
spread: e._spread,
|
|
@@ -6107,7 +6107,7 @@ function qs(e) {
|
|
|
6107
6107
|
children: []
|
|
6108
6108
|
};
|
|
6109
6109
|
}
|
|
6110
|
-
function
|
|
6110
|
+
function B() {
|
|
6111
6111
|
return {
|
|
6112
6112
|
type: "paragraph",
|
|
6113
6113
|
children: []
|
|
@@ -9989,24 +9989,24 @@ function rm(t, n) {
|
|
|
9989
9989
|
numberStyle: S,
|
|
9990
9990
|
startingLineNumber: y,
|
|
9991
9991
|
codeString: N
|
|
9992
|
-
}) : null, re = s.hljs || s["pre[class*=\"language-\"]"] || { backgroundColor: "#fff" }, ie = tm(te) ? "hljs" : "prismjs",
|
|
9992
|
+
}) : null, re = s.hljs || s["pre[class*=\"language-\"]"] || { backgroundColor: "#fff" }, ie = tm(te) ? "hljs" : "prismjs", ae = p ? Object.assign({}, P, { style: Object.assign({}, re, l) }) : Object.assign({}, P, {
|
|
9993
9993
|
className: P.className ? `${ie} ${P.className}` : ie,
|
|
9994
9994
|
style: Object.assign({}, l)
|
|
9995
9995
|
});
|
|
9996
|
-
if (T ? d.style = Up({ whiteSpace: "pre-wrap" }, d.style) : d.style = Up({ whiteSpace: "pre" }, d.style), !te) return /*#__PURE__*/ e.createElement(ee,
|
|
9996
|
+
if (T ? d.style = Up({ whiteSpace: "pre-wrap" }, d.style) : d.style = Up({ whiteSpace: "pre" }, d.style), !te) return /*#__PURE__*/ e.createElement(ee, ae, ne, /*#__PURE__*/ e.createElement(j, d, N));
|
|
9997
9997
|
(C === void 0 && O || T) && (C = !0), O ||= em;
|
|
9998
|
-
var
|
|
9998
|
+
var F = [{
|
|
9999
9999
|
type: "text",
|
|
10000
10000
|
value: N
|
|
10001
|
-
}],
|
|
10001
|
+
}], I = nm({
|
|
10002
10002
|
astGenerator: te,
|
|
10003
10003
|
language: i,
|
|
10004
10004
|
code: N,
|
|
10005
|
-
defaultCodeValue:
|
|
10005
|
+
defaultCodeValue: F
|
|
10006
10006
|
});
|
|
10007
|
-
|
|
10008
|
-
var oe = y + (N.match(/\n/g)?.length ?? 0), se = $p(
|
|
10009
|
-
return /*#__PURE__*/ e.createElement(ee,
|
|
10007
|
+
I.language === null && (I.value = F);
|
|
10008
|
+
var oe = y + (N.match(/\n/g)?.length ?? 0), se = $p(I, C, D, h, _, y, oe, S, T);
|
|
10009
|
+
return /*#__PURE__*/ e.createElement(ee, ae, /*#__PURE__*/ e.createElement(j, d, !_ && ne, O({
|
|
10010
10010
|
rows: se,
|
|
10011
10011
|
stylesheet: s,
|
|
10012
10012
|
useInlineStyles: p
|
|
@@ -25844,7 +25844,7 @@ var bb = 2e3, xb = (e, t = bb) => {
|
|
|
25844
25844
|
icon: /* @__PURE__ */ R(_p, { size: m.SM }),
|
|
25845
25845
|
"aria-label": o,
|
|
25846
25846
|
variant: p.Primary,
|
|
25847
|
-
size:
|
|
25847
|
+
size: ae.Small,
|
|
25848
25848
|
onClick: () => {
|
|
25849
25849
|
cr(t, `code.${ar(e)}`);
|
|
25850
25850
|
}
|
|
@@ -25852,7 +25852,7 @@ var bb = 2e3, xb = (e, t = bb) => {
|
|
|
25852
25852
|
icon: R(f ? hp : gp, { size: m.SM }),
|
|
25853
25853
|
"aria-label": f ? a : i,
|
|
25854
25854
|
variant: p.Primary,
|
|
25855
|
-
size:
|
|
25855
|
+
size: ae.Small,
|
|
25856
25856
|
className: f ? Sb.copiedIcon : void 0,
|
|
25857
25857
|
onClick: h
|
|
25858
25858
|
})]
|
|
@@ -26187,14 +26187,19 @@ i(({ tabs: e, activeTabId: t, onTabChange: n, styles: r }) => {
|
|
|
26187
26187
|
let { tabClassName: i = "dial-tiny-semi-text" } = r?.typography ?? {};
|
|
26188
26188
|
return /* @__PURE__ */ R("div", {
|
|
26189
26189
|
className: "flex flex-nowrap gap-1",
|
|
26190
|
+
role: "tablist",
|
|
26190
26191
|
children: e.map((e) => {
|
|
26191
26192
|
let r = t === e.id;
|
|
26192
|
-
return /* @__PURE__ */ R(
|
|
26193
|
-
|
|
26194
|
-
selected: r,
|
|
26195
|
-
onClick: () => n(e.id),
|
|
26193
|
+
return /* @__PURE__ */ R("div", {
|
|
26194
|
+
role: "tab",
|
|
26196
26195
|
"aria-selected": r,
|
|
26197
|
-
className:
|
|
26196
|
+
className: "contents",
|
|
26197
|
+
children: /* @__PURE__ */ R(re, {
|
|
26198
|
+
label: e.label,
|
|
26199
|
+
selected: r,
|
|
26200
|
+
onClick: () => n(e.id),
|
|
26201
|
+
className: G("box-border h-auto shrink-0 justify-center rounded-full p-2 text-center", i, Jb.tabContainer, r && Jb.tabActive)
|
|
26202
|
+
})
|
|
26198
26203
|
}, e.id);
|
|
26199
26204
|
})
|
|
26200
26205
|
});
|
|
@@ -26207,20 +26212,14 @@ var Yb = (e) => /* @__PURE__ */ R(j, { ...e }), Xb = (e) => /* @__PURE__ */ R(_,
|
|
|
26207
26212
|
appearance: f.Outlined
|
|
26208
26213
|
}), Zb = (e) => /* @__PURE__ */ R(T, { ...e }), Qb = (e) => /* @__PURE__ */ R(k, { ...e }), $b = {
|
|
26209
26214
|
[V.Model]: "Models",
|
|
26210
|
-
[V.Application]: "Agents",
|
|
26211
26215
|
[V.Agent]: "Agents",
|
|
26212
26216
|
[V.Toolset]: "Toolsets",
|
|
26213
|
-
[V.
|
|
26214
|
-
[V.Skill]: "Skills",
|
|
26215
|
-
[V.Mcp]: "MCP"
|
|
26217
|
+
[V.Skill]: "Skills"
|
|
26216
26218
|
}, ex = [
|
|
26217
26219
|
V.Model,
|
|
26218
|
-
V.Application,
|
|
26219
26220
|
V.Agent,
|
|
26220
26221
|
V.Toolset,
|
|
26221
|
-
V.
|
|
26222
|
-
V.Skill,
|
|
26223
|
-
V.Mcp
|
|
26222
|
+
V.Skill
|
|
26224
26223
|
], tx = (e, t) => {
|
|
26225
26224
|
let n = {
|
|
26226
26225
|
...$b,
|
|
@@ -26232,20 +26231,14 @@ var Yb = (e) => /* @__PURE__ */ R(j, { ...e }), Xb = (e) => /* @__PURE__ */ R(_,
|
|
|
26232
26231
|
}));
|
|
26233
26232
|
}, nx = {
|
|
26234
26233
|
[V.Model]: "#2764D9",
|
|
26235
|
-
[V.
|
|
26236
|
-
[V.Agent]: "#7C3AED",
|
|
26234
|
+
[V.Agent]: "#059669",
|
|
26237
26235
|
[V.Skill]: "#0E7490",
|
|
26238
|
-
[V.Toolset]: "#B45309"
|
|
26239
|
-
[V.Guardrail]: "#BE123C",
|
|
26240
|
-
[V.Mcp]: "#0E7490"
|
|
26236
|
+
[V.Toolset]: "#B45309"
|
|
26241
26237
|
}, rx = {
|
|
26242
26238
|
[V.Model]: "rgba(39, 100, 217, 0.12)",
|
|
26243
|
-
[V.
|
|
26244
|
-
[V.Agent]: "rgba(124, 58, 237, 0.12)",
|
|
26239
|
+
[V.Agent]: "rgba(5, 150, 105, 0.12)",
|
|
26245
26240
|
[V.Skill]: "rgba(14, 116, 144, 0.12)",
|
|
26246
|
-
[V.Toolset]: "rgba(180, 83, 9, 0.12)"
|
|
26247
|
-
[V.Guardrail]: "rgba(190, 18, 60, 0.12)",
|
|
26248
|
-
[V.Mcp]: "rgba(14, 116, 144, 0.12)"
|
|
26241
|
+
[V.Toolset]: "rgba(180, 83, 9, 0.12)"
|
|
26249
26242
|
}, ix = (e) => {
|
|
26250
26243
|
if (e.isFeatured) return tr({
|
|
26251
26244
|
"--entity-color": nx[e.type],
|
|
@@ -26336,14 +26329,14 @@ var Yb = (e) => /* @__PURE__ */ R(j, { ...e }), Xb = (e) => /* @__PURE__ */ R(_,
|
|
|
26336
26329
|
children: [/* @__PURE__ */ z("div", {
|
|
26337
26330
|
className: "flex min-w-0 items-start gap-1 overflow-hidden",
|
|
26338
26331
|
children: [/* @__PURE__ */ R("span", {
|
|
26339
|
-
className: G("flex-3 min-w-0
|
|
26332
|
+
className: G("flex-3 min-w-0 truncate", l),
|
|
26340
26333
|
children: o ? /* @__PURE__ */ R(yr, {
|
|
26341
26334
|
text: n,
|
|
26342
26335
|
query: o
|
|
26343
26336
|
}) : n
|
|
26344
26337
|
}), r != null && /* @__PURE__ */ R(S, {
|
|
26345
26338
|
text: r,
|
|
26346
|
-
className: G("flex-
|
|
26339
|
+
className: G("flex-2", dx.numericText, u)
|
|
26347
26340
|
})]
|
|
26348
26341
|
}), m && i != null && /* @__PURE__ */ z("div", {
|
|
26349
26342
|
className: "flex items-center gap-2",
|
|
@@ -26501,7 +26494,7 @@ var Yb = (e) => /* @__PURE__ */ R(j, { ...e }), Xb = (e) => /* @__PURE__ */ R(_,
|
|
|
26501
26494
|
})
|
|
26502
26495
|
}), /* @__PURE__ */ R(yx, {
|
|
26503
26496
|
isStarred: h,
|
|
26504
|
-
size:
|
|
26497
|
+
size: ae.Small,
|
|
26505
26498
|
onClick: C,
|
|
26506
26499
|
ariaLabel: h ? c : s,
|
|
26507
26500
|
className: G(lx.starBtn, !h && lx.emptyStarHidden)
|
|
@@ -26683,14 +26676,14 @@ var jx = {
|
|
|
26683
26676
|
className: G("flex items-center gap-2", i),
|
|
26684
26677
|
children: [
|
|
26685
26678
|
/* @__PURE__ */ R("h3", {
|
|
26686
|
-
className: G("min-w-0", n, jx.title),
|
|
26679
|
+
className: G("flex-3 min-w-0", n, jx.title),
|
|
26687
26680
|
children: a ? /* @__PURE__ */ R(yr, {
|
|
26688
26681
|
text: e,
|
|
26689
26682
|
query: a
|
|
26690
26683
|
}) : /* @__PURE__ */ R(S, { text: e })
|
|
26691
26684
|
}),
|
|
26692
26685
|
t != null && /* @__PURE__ */ R(S, {
|
|
26693
|
-
className: G(r, jx.count),
|
|
26686
|
+
className: G("flex-2", r, jx.count),
|
|
26694
26687
|
text: t
|
|
26695
26688
|
}),
|
|
26696
26689
|
o != null && /* @__PURE__ */ R("div", {
|
|
@@ -26758,7 +26751,7 @@ var jx = {
|
|
|
26758
26751
|
O(t), ee(lt(u, ut(e, t)));
|
|
26759
26752
|
let n = it(t);
|
|
26760
26753
|
n && E(new Set(T).add(n));
|
|
26761
|
-
}, ie = () => re(t ?? []),
|
|
26754
|
+
}, ie = () => re(t ?? []), ae = (e) => {
|
|
26762
26755
|
let t = at(e.path), n = [{
|
|
26763
26756
|
key: "add-child",
|
|
26764
26757
|
label: c,
|
|
@@ -26777,7 +26770,7 @@ var jx = {
|
|
|
26777
26770
|
}),
|
|
26778
26771
|
onClick: () => re(t.slice(0, -1))
|
|
26779
26772
|
}), n;
|
|
26780
|
-
},
|
|
26773
|
+
}, F = (t) => D ? ct(t, ut(e, D), {
|
|
26781
26774
|
empty: p,
|
|
26782
26775
|
invalid: h,
|
|
26783
26776
|
duplicate: g
|
|
@@ -26794,16 +26787,16 @@ var jx = {
|
|
|
26794
26787
|
onItemClick: (e) => {
|
|
26795
26788
|
n(t != null && it(t) === e.path ? void 0 : at(e.path));
|
|
26796
26789
|
},
|
|
26797
|
-
getContextMenuItems:
|
|
26790
|
+
getContextMenuItems: ae,
|
|
26798
26791
|
createdFolderPath: ne,
|
|
26799
26792
|
newFolderDefaultName: k,
|
|
26800
26793
|
onCreateFolderSave: (e) => {
|
|
26801
26794
|
if (!D) return;
|
|
26802
26795
|
let t = e.trim();
|
|
26803
|
-
|
|
26796
|
+
F(e) || (r(D, t), n([...D, t])), O(null);
|
|
26804
26797
|
},
|
|
26805
26798
|
onCreateFolderCancel: () => O(null),
|
|
26806
|
-
onRenameValidate: (e) =>
|
|
26799
|
+
onRenameValidate: (e) => F(e),
|
|
26807
26800
|
emptyStateTitle: j ? f.replace("{query}", i.trim()) : void 0
|
|
26808
26801
|
}), /* @__PURE__ */ z("button", {
|
|
26809
26802
|
type: "button",
|
|
@@ -26843,28 +26836,28 @@ var jx = {
|
|
|
26843
26836
|
children: Qe(e.publishedAt)
|
|
26844
26837
|
})]
|
|
26845
26838
|
}, `${e.version}-${n}`)) }), Ix = ({ item: e, resource: t, history: n, isHistoryLoading: r = !1, hasHistoryError: i = !1, folderItems: a, selectedFolderPath: o, onSelectedFolderPathChange: s, onCreateFolder: c, expandedPaths: u, onExpandedPathsChange: f, loadingPaths: p, hasExistingPublicationInFolder: m, hasWriteAccess: h, isSubmitting: g, hasSubmitError: _ = !1, allowReplace: v = !0, texts: y = {} }) => {
|
|
26846
|
-
let { currentVersionSuffix: b = "current", folderLabel: x = "Publish to folder", searchPlaceholder: S = "Search folders", clearSearchAriaLabel: C = "Clear search", historyLabel: w = "Versions history", replaceWarning: T = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: E = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: D = "Publishing failed. Please try again.", folderEmptyStateText: O, addSiblingFolderLabel: k, addChildFolderLabel: ee, createFolderEmptyNameError: A, createFolderInvalidNameError: j, createFolderDuplicateNameError: M, historyLoadingText: N, historyErrorText: te, rootFolderLabel: P = "Organization" } = y, [ne, ie] = d(""),
|
|
26847
|
-
hasSelectedFolder:
|
|
26839
|
+
let { currentVersionSuffix: b = "current", folderLabel: x = "Publish to folder", searchPlaceholder: S = "Search folders", clearSearchAriaLabel: C = "Clear search", historyLabel: w = "Versions history", replaceWarning: T = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: E = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: D = "Publishing failed. Please try again.", folderEmptyStateText: O, addSiblingFolderLabel: k, addChildFolderLabel: ee, createFolderEmptyNameError: A, createFolderInvalidNameError: j, createFolderDuplicateNameError: M, historyLoadingText: N, historyErrorText: te, rootFolderLabel: P = "Organization" } = y, [ne, ie] = d(""), ae = o != null, oe = l(() => Xe({
|
|
26840
|
+
hasSelectedFolder: ae,
|
|
26848
26841
|
hasExistingPublicationInFolder: m,
|
|
26849
26842
|
hasWriteAccess: h,
|
|
26850
26843
|
isSubmitting: g,
|
|
26851
26844
|
hasSubmitError: _,
|
|
26852
26845
|
allowReplace: v
|
|
26853
26846
|
}), [
|
|
26854
|
-
|
|
26847
|
+
ae,
|
|
26855
26848
|
m,
|
|
26856
26849
|
h,
|
|
26857
26850
|
g,
|
|
26858
26851
|
_,
|
|
26859
26852
|
v
|
|
26860
|
-
]), se =
|
|
26861
|
-
if (!
|
|
26853
|
+
]), se = ae ? o[o.length - 1] ?? P : "", ce = l(() => {
|
|
26854
|
+
if (!ae) return [];
|
|
26862
26855
|
let e = o.join("/");
|
|
26863
26856
|
return n.filter((t) => t.folderPath.join("/") === e);
|
|
26864
26857
|
}, [
|
|
26865
26858
|
n,
|
|
26866
26859
|
o,
|
|
26867
|
-
|
|
26860
|
+
ae
|
|
26868
26861
|
]);
|
|
26869
26862
|
return /* @__PURE__ */ z("div", {
|
|
26870
26863
|
className: "flex flex-col gap-5",
|
|
@@ -26924,8 +26917,8 @@ var jx = {
|
|
|
26924
26917
|
}),
|
|
26925
26918
|
oe.calloutKind !== Ue.None && oe.calloutKind !== Ue.Info && /* @__PURE__ */ R("div", {
|
|
26926
26919
|
className: "mt-3",
|
|
26927
|
-
children: /* @__PURE__ */ R(
|
|
26928
|
-
type:
|
|
26920
|
+
children: /* @__PURE__ */ R(F, {
|
|
26921
|
+
type: I.SectionMessage,
|
|
26929
26922
|
variant: Lx(oe.calloutKind),
|
|
26930
26923
|
message: zx(oe.calloutKind, {
|
|
26931
26924
|
replaceWarning: T,
|
|
@@ -26937,7 +26930,7 @@ var jx = {
|
|
|
26937
26930
|
})
|
|
26938
26931
|
})
|
|
26939
26932
|
] }),
|
|
26940
|
-
|
|
26933
|
+
ae && e && /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("div", {
|
|
26941
26934
|
className: "dial-body-semi-text mb-2 text-primary",
|
|
26942
26935
|
children: w
|
|
26943
26936
|
}), /* @__PURE__ */ R(Fx, {
|
|
@@ -27054,7 +27047,7 @@ var jx = {
|
|
|
27054
27047
|
matchReferenceWidth: !1,
|
|
27055
27048
|
listClassName: "cp-dropdown-overlay",
|
|
27056
27049
|
children: /* @__PURE__ */ R(ee, {
|
|
27057
|
-
size:
|
|
27050
|
+
size: ae.Small,
|
|
27058
27051
|
label: f,
|
|
27059
27052
|
iconAfter: /* @__PURE__ */ R(le, { size: m.SM })
|
|
27060
27053
|
})
|
|
@@ -27112,7 +27105,7 @@ var jx = {
|
|
|
27112
27105
|
matchReferenceWidth: !1,
|
|
27113
27106
|
listClassName: "cp-dropdown-overlay",
|
|
27114
27107
|
children: /* @__PURE__ */ R(ee, {
|
|
27115
|
-
size:
|
|
27108
|
+
size: ae.Small,
|
|
27116
27109
|
label: b?.label,
|
|
27117
27110
|
iconAfter: /* @__PURE__ */ R(le, { size: m.SM })
|
|
27118
27111
|
})
|
|
@@ -27348,7 +27341,7 @@ var jx = {
|
|
|
27348
27341
|
"aria-expanded": i
|
|
27349
27342
|
})
|
|
27350
27343
|
});
|
|
27351
|
-
}, Qx = (e) => e.isMyApp === !0 && (e.type === V.
|
|
27344
|
+
}, Qx = (e) => e.isMyApp === !0 && (e.type === V.Agent || e.type === V.Toolset), $x = ({ item: e, onDelete: t, onDeleted: n, texts: r }) => {
|
|
27352
27345
|
let [i, o] = d(!1), s = a(async () => {
|
|
27353
27346
|
o(!0);
|
|
27354
27347
|
try {
|
|
@@ -27378,10 +27371,10 @@ var jx = {
|
|
|
27378
27371
|
className: "sr-only",
|
|
27379
27372
|
children: r?.deletingStatusLabel ?? "Deleting"
|
|
27380
27373
|
})] }) : null;
|
|
27381
|
-
}, eS = (e) => e.isMyApp === !0
|
|
27382
|
-
let [
|
|
27374
|
+
}, eS = (e) => e.isMyApp === !0, tS = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
|
|
27375
|
+
let [o, s] = d(!1), c = a(() => {
|
|
27383
27376
|
if (n) {
|
|
27384
|
-
|
|
27377
|
+
s((e) => !e);
|
|
27385
27378
|
return;
|
|
27386
27379
|
}
|
|
27387
27380
|
t?.(e);
|
|
@@ -27390,99 +27383,100 @@ var jx = {
|
|
|
27390
27383
|
t,
|
|
27391
27384
|
n
|
|
27392
27385
|
]);
|
|
27393
|
-
if (!eS(e)) return null;
|
|
27394
|
-
let
|
|
27395
|
-
label:
|
|
27386
|
+
if (!eS(e) || r && !r(e)) return null;
|
|
27387
|
+
let l = /* @__PURE__ */ R(Xb, {
|
|
27388
|
+
label: i,
|
|
27396
27389
|
iconBefore: /* @__PURE__ */ R(De, { size: m.MD }),
|
|
27397
27390
|
iconAfter: /* @__PURE__ */ R(le, { size: m.MD }),
|
|
27398
|
-
onClick:
|
|
27391
|
+
onClick: c,
|
|
27399
27392
|
"aria-haspopup": n ? "menu" : void 0,
|
|
27400
|
-
"aria-expanded": n ?
|
|
27393
|
+
"aria-expanded": n ? o : void 0
|
|
27401
27394
|
});
|
|
27402
27395
|
return n ? /* @__PURE__ */ R(x, {
|
|
27403
27396
|
placement: "bottom-end",
|
|
27404
27397
|
matchReferenceWidth: !1,
|
|
27405
|
-
open:
|
|
27406
|
-
onOpenChange:
|
|
27398
|
+
open: o,
|
|
27399
|
+
onOpenChange: s,
|
|
27407
27400
|
trigger: [],
|
|
27408
27401
|
outsideClosable: !0,
|
|
27409
27402
|
listClassName: "cp-dropdown-overlay",
|
|
27410
|
-
renderOverlay: () => n(e, () =>
|
|
27411
|
-
children:
|
|
27412
|
-
}) :
|
|
27413
|
-
}, nS = ({ item: e, onUseInChat: t, isPrimaryActionVisible: n, onShare: r, shareOverlay: i,
|
|
27414
|
-
let { nameClassName:
|
|
27403
|
+
renderOverlay: () => n(e, () => s(!1)),
|
|
27404
|
+
children: l
|
|
27405
|
+
}) : l;
|
|
27406
|
+
}, nS = ({ item: e, onUseInChat: t, isPrimaryActionVisible: n, onShare: r, shareOverlay: i, isShareVisible: o, connectOverlay: s, isConnectVisible: c, onEdit: l, onDelete: u, onCloseDetails: d, onLogin: f, onLogout: p, onToggleCredentials: h, onRequestLogout: g, texts: _, detailsStyles: v, isPublishVisible: y, onOpenPublish: b }) => {
|
|
27407
|
+
let { nameClassName: x = "dial-body-semi-text text-primary", folderLabelClassName: S = "dial-tiny-text", folderLeafClassName: C = "dial-tiny-semi-text" } = v?.typography ?? {}, w = a(() => {
|
|
27415
27408
|
t?.(e);
|
|
27416
|
-
}, [e, t]),
|
|
27417
|
-
|
|
27418
|
-
}, [e,
|
|
27419
|
-
|
|
27409
|
+
}, [e, t]), T = a(() => {
|
|
27410
|
+
l?.(e);
|
|
27411
|
+
}, [e, l]), E = _?.hasPrimaryAction !== !1 && (n?.(e) ?? (e.type === V.Model || e.type === V.Agent)), D = y?.(e) ?? (e.type === V.Model || e.type === V.Toolset || e.type === V.Agent), O = !!l && !!e.isEditable, k = e.credentials != null && e.credentials.authenticationType !== Le.None ? ft(e.credentials) : void 0, ee = k != null && (!!f || !!p), A = a(() => {
|
|
27412
|
+
k === Be.LogOut ? g?.() : h?.();
|
|
27420
27413
|
}, [
|
|
27421
|
-
|
|
27422
|
-
|
|
27423
|
-
|
|
27424
|
-
]),
|
|
27425
|
-
[Be.ManageCredentials]:
|
|
27426
|
-
[Be.LoginWithMyCreds]:
|
|
27427
|
-
[Be.LogIn]:
|
|
27428
|
-
[Be.LogOut]:
|
|
27429
|
-
}[
|
|
27430
|
-
[Be.ManageCredentials]: /* @__PURE__ */ R(
|
|
27414
|
+
k,
|
|
27415
|
+
g,
|
|
27416
|
+
h
|
|
27417
|
+
]), j = {
|
|
27418
|
+
[Be.ManageCredentials]: _?.manageCredentialsActionLabel ?? "Manage credentials",
|
|
27419
|
+
[Be.LoginWithMyCreds]: _?.loginWithMyCredsActionLabel ?? "Login with my creds",
|
|
27420
|
+
[Be.LogIn]: _?.loginActionLabel ?? "Log in",
|
|
27421
|
+
[Be.LogOut]: _?.logoutActionLabel ?? "Log out"
|
|
27422
|
+
}[k ?? Be.LogIn], M = {
|
|
27423
|
+
[Be.ManageCredentials]: /* @__PURE__ */ R(_e, { size: m.MD }),
|
|
27431
27424
|
[Be.LoginWithMyCreds]: /* @__PURE__ */ R(ye, { size: m.MD }),
|
|
27432
27425
|
[Be.LogIn]: /* @__PURE__ */ R(ye, { size: m.MD }),
|
|
27433
27426
|
[Be.LogOut]: /* @__PURE__ */ R(be, { size: m.MD })
|
|
27434
|
-
}[
|
|
27427
|
+
}[k ?? Be.LogIn];
|
|
27435
27428
|
return /* @__PURE__ */ z("div", {
|
|
27436
27429
|
className: "flex flex-col gap-3 px-6 py-4",
|
|
27437
27430
|
children: [/* @__PURE__ */ R(Nx, {
|
|
27438
27431
|
item: e,
|
|
27439
27432
|
iconSize: 52,
|
|
27440
|
-
nameClassName:
|
|
27441
|
-
featuredLabel:
|
|
27433
|
+
nameClassName: x,
|
|
27434
|
+
featuredLabel: _?.featuredLabel ?? "Featured",
|
|
27442
27435
|
footer: e.folder.length > 0 ? /* @__PURE__ */ R(_x, {
|
|
27443
27436
|
segments: e.folder,
|
|
27444
|
-
labelClassName:
|
|
27445
|
-
leafClassName:
|
|
27437
|
+
labelClassName: S,
|
|
27438
|
+
leafClassName: C
|
|
27446
27439
|
}) : void 0
|
|
27447
27440
|
}), /* @__PURE__ */ z("div", {
|
|
27448
27441
|
className: "flex flex-wrap items-center gap-2 ps-[60px]",
|
|
27449
27442
|
children: [
|
|
27450
|
-
|
|
27451
|
-
label:
|
|
27443
|
+
E && /* @__PURE__ */ R(Yb, {
|
|
27444
|
+
label: _?.primaryActionLabel ?? "Use in chat",
|
|
27452
27445
|
iconBefore: /* @__PURE__ */ R(Ce, { size: m.MD }),
|
|
27453
|
-
onClick:
|
|
27446
|
+
onClick: w
|
|
27454
27447
|
}),
|
|
27455
|
-
|
|
27456
|
-
label:
|
|
27448
|
+
O && /* @__PURE__ */ R(Xb, {
|
|
27449
|
+
label: _?.editActionLabel ?? "Edit",
|
|
27457
27450
|
iconBefore: /* @__PURE__ */ R(Se, { size: m.MD }),
|
|
27458
|
-
onClick:
|
|
27451
|
+
onClick: T
|
|
27459
27452
|
}),
|
|
27460
27453
|
/* @__PURE__ */ R(tS, {
|
|
27461
27454
|
item: e,
|
|
27462
27455
|
onShare: r,
|
|
27463
27456
|
shareOverlay: i,
|
|
27464
|
-
|
|
27457
|
+
isShareVisible: o,
|
|
27458
|
+
label: _?.shareLabel
|
|
27465
27459
|
}),
|
|
27466
27460
|
/* @__PURE__ */ R($x, {
|
|
27467
27461
|
item: e,
|
|
27468
|
-
onDelete:
|
|
27469
|
-
onDeleted:
|
|
27470
|
-
texts:
|
|
27462
|
+
onDelete: u,
|
|
27463
|
+
onDeleted: d,
|
|
27464
|
+
texts: _
|
|
27471
27465
|
}),
|
|
27472
|
-
|
|
27473
|
-
label:
|
|
27474
|
-
onClick:
|
|
27466
|
+
D && /* @__PURE__ */ R(Xb, {
|
|
27467
|
+
label: _?.publishLabel ?? "Publish",
|
|
27468
|
+
onClick: b
|
|
27475
27469
|
}),
|
|
27476
|
-
|
|
27477
|
-
label:
|
|
27478
|
-
iconBefore:
|
|
27479
|
-
onClick:
|
|
27470
|
+
ee && /* @__PURE__ */ R(Xb, {
|
|
27471
|
+
label: j,
|
|
27472
|
+
iconBefore: M,
|
|
27473
|
+
onClick: A
|
|
27480
27474
|
}),
|
|
27481
27475
|
/* @__PURE__ */ R(Zx, {
|
|
27482
27476
|
item: e,
|
|
27483
|
-
connectOverlay:
|
|
27484
|
-
isConnectVisible:
|
|
27485
|
-
label:
|
|
27477
|
+
connectOverlay: s,
|
|
27478
|
+
isConnectVisible: c,
|
|
27479
|
+
label: _?.connectLabel
|
|
27486
27480
|
})
|
|
27487
27481
|
]
|
|
27488
27482
|
})]
|
|
@@ -27740,34 +27734,34 @@ var jx = {
|
|
|
27740
27734
|
})
|
|
27741
27735
|
]
|
|
27742
27736
|
}, e.name))
|
|
27743
|
-
}), xS = async () => void 0, SS = [], CS = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, onClose: i, onToggleFavorite: s, onUseInChat: c, isPrimaryActionVisible: u, onShare: f, isPublishVisible: p, getPublishHistory: m, publishFolderItems: h = SS, publishExpandedPaths: g, onPublishExpandedPathsChange: _, publishLoadingPaths: v, hasPublishWriteAccess: x, onPublish: S, onPublishSuccess: C, onCreatePublishFolder: w, publishTexts: T, shareOverlay: E,
|
|
27744
|
-
let { overviewSectionClassName:
|
|
27737
|
+
}), xS = async () => void 0, SS = [], CS = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, onClose: i, onToggleFavorite: s, onUseInChat: c, isPrimaryActionVisible: u, onShare: f, isPublishVisible: p, getPublishHistory: m, publishFolderItems: h = SS, publishExpandedPaths: g, onPublishExpandedPathsChange: _, publishLoadingPaths: v, hasPublishWriteAccess: x, onPublish: S, onPublishSuccess: C, onCreatePublishFolder: w, publishTexts: T, shareOverlay: E, isShareVisible: D, connectOverlay: O, isConnectVisible: k, onEdit: ee, onDelete: A, onLogin: j, onLogout: M, texts: N, styles: P }) => {
|
|
27738
|
+
let { overviewSectionClassName: ne = "dial-caption-text", overviewLabelClassName: re = "dial-small-semi-text", overviewValueClassName: ie = "dial-small-text", overviewValueTrueClassName: ae = "dial-small-text", credentialsStatusLabelClassName: F } = P?.typography ?? {}, [I, oe] = d(n), [se, ce] = d(""), [le, de] = d(!1), [fe, pe] = d([]), [me, he] = d(!1), [ge, _e] = d(!1);
|
|
27745
27739
|
o(() => {
|
|
27746
|
-
if (!
|
|
27740
|
+
if (!le || !m) return;
|
|
27747
27741
|
let t = !1;
|
|
27748
|
-
return
|
|
27749
|
-
t ||
|
|
27742
|
+
return he(!0), _e(!1), m(e).then((e) => {
|
|
27743
|
+
t || pe(e);
|
|
27750
27744
|
}).catch(() => {
|
|
27751
|
-
t ||
|
|
27745
|
+
t || _e(!0);
|
|
27752
27746
|
}).finally(() => {
|
|
27753
|
-
t ||
|
|
27747
|
+
t || he(!1);
|
|
27754
27748
|
}), () => {
|
|
27755
27749
|
t = !0;
|
|
27756
27750
|
};
|
|
27757
27751
|
}, [
|
|
27758
|
-
|
|
27752
|
+
le,
|
|
27759
27753
|
m,
|
|
27760
27754
|
e
|
|
27761
27755
|
]);
|
|
27762
27756
|
let B = tt({
|
|
27763
27757
|
item: e,
|
|
27764
|
-
history:
|
|
27758
|
+
history: fe,
|
|
27765
27759
|
folderItems: h,
|
|
27766
27760
|
hasWriteAccess: x,
|
|
27767
27761
|
onCreateFolder: w,
|
|
27768
27762
|
onPublish: S ?? xS,
|
|
27769
27763
|
onPublishSuccess: C
|
|
27770
|
-
}),
|
|
27764
|
+
}), ve = l(() => Xe({
|
|
27771
27765
|
hasSelectedFolder: B.selectedFolderPath != null,
|
|
27772
27766
|
hasExistingPublicationInFolder: B.hasExistingPublicationInFolder,
|
|
27773
27767
|
hasWriteAccess: B.hasWriteAccess,
|
|
@@ -27779,21 +27773,21 @@ var jx = {
|
|
|
27779
27773
|
B.hasWriteAccess,
|
|
27780
27774
|
B.isSubmitting,
|
|
27781
27775
|
B.hasSubmitError
|
|
27782
|
-
]), [
|
|
27776
|
+
]), [ye, be] = d(!1), [xe, Se] = d(!1);
|
|
27783
27777
|
o(() => {
|
|
27784
|
-
|
|
27778
|
+
oe(n);
|
|
27785
27779
|
}, [e.id, n]), o(() => {
|
|
27786
|
-
|
|
27780
|
+
ce(Pe.About), de(!1), B.reset(), pe([]), _e(!1), be(!1), Se(!1);
|
|
27787
27781
|
}, [e.id]);
|
|
27788
|
-
let
|
|
27789
|
-
|
|
27790
|
-
}, []), Ce = a(() => {
|
|
27791
|
-
xe(!0);
|
|
27782
|
+
let Ce = a(() => {
|
|
27783
|
+
be((e) => !e);
|
|
27792
27784
|
}, []), we = a(() => {
|
|
27793
|
-
|
|
27785
|
+
Se(!0);
|
|
27794
27786
|
}, []), Te = a(() => {
|
|
27795
|
-
|
|
27796
|
-
}, [
|
|
27787
|
+
Se(!1);
|
|
27788
|
+
}, []), Ee = a(() => {
|
|
27789
|
+
Se(!1), e.credentials != null && M?.(e, { level: mt(e.credentials) });
|
|
27790
|
+
}, [e, M]);
|
|
27797
27791
|
o(() => {
|
|
27798
27792
|
if (!t) return;
|
|
27799
27793
|
let e = (e) => {
|
|
@@ -27801,47 +27795,47 @@ var jx = {
|
|
|
27801
27795
|
};
|
|
27802
27796
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
27803
27797
|
}, [t, i]);
|
|
27804
|
-
let
|
|
27805
|
-
|
|
27806
|
-
}, [B]),
|
|
27807
|
-
await B.handleSubmit() &&
|
|
27808
|
-
}, [B,
|
|
27798
|
+
let De = a(() => de(!0), []), Oe = a(() => {
|
|
27799
|
+
de(!1), B.reset();
|
|
27800
|
+
}, [B]), ke = a(async () => {
|
|
27801
|
+
await B.handleSubmit() && Oe();
|
|
27802
|
+
}, [B, Oe]), Ae = a(() => {
|
|
27809
27803
|
let t = !I;
|
|
27810
|
-
|
|
27804
|
+
oe(t), s?.(e.id, t);
|
|
27811
27805
|
}, [
|
|
27812
27806
|
I,
|
|
27813
27807
|
e.id,
|
|
27814
27808
|
s
|
|
27815
|
-
]),
|
|
27809
|
+
]), je = l(() => {
|
|
27816
27810
|
let t = [{
|
|
27817
27811
|
id: Pe.About,
|
|
27818
|
-
label:
|
|
27812
|
+
label: N?.tabAboutLabel ?? "About"
|
|
27819
27813
|
}];
|
|
27820
27814
|
return e.details?.overview != null && t.push({
|
|
27821
27815
|
id: Pe.Overview,
|
|
27822
|
-
label:
|
|
27816
|
+
label: N?.tabOverviewLabel ?? "Overview"
|
|
27823
27817
|
}), e.details?.pricing != null && t.push({
|
|
27824
27818
|
id: Pe.Pricing,
|
|
27825
|
-
label:
|
|
27819
|
+
label: N?.tabPricingLabel ?? "Pricing"
|
|
27826
27820
|
}), e.details?.limits != null && t.push({
|
|
27827
27821
|
id: Pe.Limits,
|
|
27828
|
-
label:
|
|
27822
|
+
label: N?.tabLimitsLabel ?? "Limits"
|
|
27829
27823
|
}), e.details?.api != null && t.push({
|
|
27830
27824
|
id: Pe.Api,
|
|
27831
|
-
label:
|
|
27825
|
+
label: N?.tabApiLabel ?? "API"
|
|
27832
27826
|
}), e.details?.tools != null && t.push({
|
|
27833
27827
|
id: Pe.Tools,
|
|
27834
|
-
label:
|
|
27828
|
+
label: N?.tabToolsLabel ?? "Tools"
|
|
27835
27829
|
}), t;
|
|
27836
|
-
}, [e.details,
|
|
27830
|
+
}, [e.details, N]);
|
|
27837
27831
|
o(() => {
|
|
27838
|
-
|
|
27832
|
+
je.some((e) => e.id === se) || ce(je[0]?.id ?? "");
|
|
27839
27833
|
}, [
|
|
27840
27834
|
e.id,
|
|
27841
|
-
|
|
27842
|
-
|
|
27835
|
+
je,
|
|
27836
|
+
se
|
|
27843
27837
|
]);
|
|
27844
|
-
let
|
|
27838
|
+
let Me = N?.overviewYesLabel ?? "Yes", Ne = N?.overviewNoLabel ?? "No", Fe = N?.ariaLabel ?? "Item details", V = N?.closeAriaLabel ?? "Close", Ie = I ? N?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : N?.addToFavoritesAriaLabel ?? "Add to favorites", Le = N?.publishTitle ?? "Publish", Re = N?.backToDetailsAriaLabel ?? "Back";
|
|
27845
27839
|
return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R("div", {
|
|
27846
27840
|
className: G("fixed inset-0 z-40 transition-opacity duration-300", Xx.backdrop, t ? "opacity-100" : "pointer-events-none opacity-0"),
|
|
27847
27841
|
onClick: i,
|
|
@@ -27849,38 +27843,38 @@ var jx = {
|
|
|
27849
27843
|
}), /* @__PURE__ */ z("div", {
|
|
27850
27844
|
role: "dialog",
|
|
27851
27845
|
"aria-modal": "true",
|
|
27852
|
-
"aria-label":
|
|
27846
|
+
"aria-label": Fe,
|
|
27853
27847
|
className: G("fixed inset-y-0 end-0 z-50 flex w-full flex-col overflow-hidden", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", Xx.panel, t ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
|
|
27854
27848
|
children: [
|
|
27855
27849
|
/* @__PURE__ */ z("div", {
|
|
27856
27850
|
className: "flex shrink-0 items-center gap-2 px-[22px] py-3",
|
|
27857
|
-
children: [
|
|
27851
|
+
children: [le ? /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(Gb, {
|
|
27858
27852
|
icon: /* @__PURE__ */ R(ue, { className: "rtl:scale-x-[-1]" }),
|
|
27859
|
-
"aria-label":
|
|
27853
|
+
"aria-label": Re,
|
|
27860
27854
|
disabled: B.isSubmitting,
|
|
27861
|
-
onClick:
|
|
27855
|
+
onClick: Oe
|
|
27862
27856
|
}), /* @__PURE__ */ R("span", {
|
|
27863
27857
|
className: "dial-body-semi-text flex-1 text-primary",
|
|
27864
|
-
children:
|
|
27858
|
+
children: Le
|
|
27865
27859
|
})] }) : /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R("div", { className: "flex-1" }), /* @__PURE__ */ R(yx, {
|
|
27866
27860
|
isStarred: I,
|
|
27867
|
-
ariaLabel:
|
|
27868
|
-
onClick:
|
|
27869
|
-
})] }), !
|
|
27861
|
+
ariaLabel: Ie,
|
|
27862
|
+
onClick: Ae
|
|
27863
|
+
})] }), !le && /* @__PURE__ */ R(y, {
|
|
27870
27864
|
onClose: i,
|
|
27871
|
-
ariaLabel:
|
|
27865
|
+
ariaLabel: V
|
|
27872
27866
|
})]
|
|
27873
27867
|
}),
|
|
27874
27868
|
/* @__PURE__ */ R("div", { className: G("shrink-0", Xx.divider) }),
|
|
27875
27869
|
/* @__PURE__ */ R("div", {
|
|
27876
27870
|
className: G("min-h-0 flex-1 overflow-y-auto", Xx.content),
|
|
27877
|
-
children:
|
|
27871
|
+
children: le ? /* @__PURE__ */ R("div", {
|
|
27878
27872
|
className: "p-[22px]",
|
|
27879
27873
|
children: /* @__PURE__ */ R(Ix, {
|
|
27880
27874
|
item: e,
|
|
27881
|
-
history:
|
|
27882
|
-
isHistoryLoading:
|
|
27883
|
-
hasHistoryError:
|
|
27875
|
+
history: fe,
|
|
27876
|
+
isHistoryLoading: me,
|
|
27877
|
+
hasHistoryError: ge,
|
|
27884
27878
|
folderItems: B.folderItems,
|
|
27885
27879
|
selectedFolderPath: B.selectedFolderPath,
|
|
27886
27880
|
onSelectedFolderPathChange: B.setSelectedFolderPath,
|
|
@@ -27901,55 +27895,56 @@ var jx = {
|
|
|
27901
27895
|
isPrimaryActionVisible: u,
|
|
27902
27896
|
onShare: f,
|
|
27903
27897
|
shareOverlay: E,
|
|
27904
|
-
|
|
27905
|
-
|
|
27898
|
+
isShareVisible: D,
|
|
27899
|
+
connectOverlay: O,
|
|
27900
|
+
isConnectVisible: k,
|
|
27906
27901
|
isPublishVisible: p,
|
|
27907
|
-
onOpenPublish:
|
|
27908
|
-
onEdit:
|
|
27909
|
-
onDelete:
|
|
27902
|
+
onOpenPublish: De,
|
|
27903
|
+
onEdit: ee,
|
|
27904
|
+
onDelete: A,
|
|
27910
27905
|
onCloseDetails: i,
|
|
27911
|
-
onLogin:
|
|
27912
|
-
onLogout:
|
|
27913
|
-
onToggleCredentials:
|
|
27914
|
-
onRequestLogout:
|
|
27915
|
-
texts:
|
|
27916
|
-
detailsStyles:
|
|
27906
|
+
onLogin: j,
|
|
27907
|
+
onLogout: M,
|
|
27908
|
+
onToggleCredentials: Ce,
|
|
27909
|
+
onRequestLogout: we,
|
|
27910
|
+
texts: N,
|
|
27911
|
+
detailsStyles: P
|
|
27917
27912
|
}),
|
|
27918
|
-
|
|
27913
|
+
ye && /* @__PURE__ */ R(Yx, {
|
|
27919
27914
|
item: e,
|
|
27920
|
-
onLogin:
|
|
27921
|
-
onLogout:
|
|
27922
|
-
texts:
|
|
27915
|
+
onLogin: j,
|
|
27916
|
+
onLogout: M,
|
|
27917
|
+
texts: N,
|
|
27923
27918
|
statusLabelClassName: F
|
|
27924
27919
|
}),
|
|
27925
27920
|
/* @__PURE__ */ R(b, {
|
|
27926
|
-
open:
|
|
27927
|
-
header:
|
|
27928
|
-
description:
|
|
27929
|
-
confirmLabel:
|
|
27930
|
-
onConfirm:
|
|
27931
|
-
onCancel:
|
|
27932
|
-
onClose:
|
|
27921
|
+
open: xe,
|
|
27922
|
+
header: N?.logoutActionLabel ?? "Log out",
|
|
27923
|
+
description: N?.logoutConfirmMessage ?? "Are you sure you want to log out?",
|
|
27924
|
+
confirmLabel: N?.logoutActionLabel ?? "Log out",
|
|
27925
|
+
onConfirm: Ee,
|
|
27926
|
+
onCancel: Te,
|
|
27927
|
+
onClose: Te
|
|
27933
27928
|
}),
|
|
27934
27929
|
/* @__PURE__ */ R("div", { className: Xx.divider }),
|
|
27935
27930
|
/* @__PURE__ */ R(lS, {
|
|
27936
27931
|
item: e,
|
|
27937
|
-
texts:
|
|
27938
|
-
detailsStyles:
|
|
27932
|
+
texts: N,
|
|
27933
|
+
detailsStyles: P
|
|
27939
27934
|
}),
|
|
27940
27935
|
/* @__PURE__ */ z("div", {
|
|
27941
27936
|
className: "flex items-center gap-2 px-[22px]",
|
|
27942
27937
|
children: [/* @__PURE__ */ R(qb, {
|
|
27943
|
-
tabs:
|
|
27944
|
-
activeTabId:
|
|
27945
|
-
onTabChange:
|
|
27938
|
+
tabs: je,
|
|
27939
|
+
activeTabId: se,
|
|
27940
|
+
onTabChange: ce,
|
|
27946
27941
|
styles: { colors: {
|
|
27947
27942
|
activeTabClassName: "text-catalog-tab-active",
|
|
27948
27943
|
inactiveTabClassName: "text-catalog-tab-inactive hover:text-catalog-tab-hover border-transparent"
|
|
27949
27944
|
} }
|
|
27950
27945
|
}), r && /* @__PURE__ */ R("div", {
|
|
27951
27946
|
role: "status",
|
|
27952
|
-
"aria-label":
|
|
27947
|
+
"aria-label": N?.detailsLoadingAriaLabel ?? "Loading details",
|
|
27953
27948
|
className: "shrink-0",
|
|
27954
27949
|
children: /* @__PURE__ */ R(te, {
|
|
27955
27950
|
showTitle: !1,
|
|
@@ -27963,49 +27958,49 @@ var jx = {
|
|
|
27963
27958
|
})]
|
|
27964
27959
|
}),
|
|
27965
27960
|
/* @__PURE__ */ z("div", {
|
|
27966
|
-
className: G(
|
|
27961
|
+
className: G(se !== Pe.Overview && "px-[22px] py-4"),
|
|
27967
27962
|
children: [
|
|
27968
|
-
|
|
27963
|
+
se === Pe.About && /* @__PURE__ */ R(aS, {
|
|
27969
27964
|
content: e.description,
|
|
27970
|
-
detailsStyles:
|
|
27965
|
+
detailsStyles: P
|
|
27971
27966
|
}),
|
|
27972
|
-
|
|
27967
|
+
se === Pe.Overview && /* @__PURE__ */ R(hS, {
|
|
27973
27968
|
sections: e.details?.overview?.sections,
|
|
27974
|
-
sectionClassName:
|
|
27975
|
-
labelClassName:
|
|
27976
|
-
valueClassName:
|
|
27977
|
-
valueTrueClassName:
|
|
27978
|
-
yesLabel:
|
|
27979
|
-
noLabel:
|
|
27969
|
+
sectionClassName: ne,
|
|
27970
|
+
labelClassName: re,
|
|
27971
|
+
valueClassName: ie,
|
|
27972
|
+
valueTrueClassName: ae,
|
|
27973
|
+
yesLabel: Me,
|
|
27974
|
+
noLabel: Ne
|
|
27980
27975
|
}),
|
|
27981
|
-
|
|
27976
|
+
se === Pe.Pricing && /* @__PURE__ */ R(gS, {
|
|
27982
27977
|
pricing: e.details?.pricing,
|
|
27983
|
-
pricesSectionLabel:
|
|
27984
|
-
limitsSectionLabel:
|
|
27978
|
+
pricesSectionLabel: N?.pricingPricesSectionLabel,
|
|
27979
|
+
limitsSectionLabel: N?.pricingLimitsSectionLabel
|
|
27985
27980
|
}),
|
|
27986
|
-
|
|
27987
|
-
|
|
27981
|
+
se === Pe.Limits && /* @__PURE__ */ R(mS, { limits: e.details?.limits }),
|
|
27982
|
+
se === Pe.Api && e.details?.api != null && /* @__PURE__ */ R(qx, {
|
|
27988
27983
|
api: e.details.api,
|
|
27989
|
-
resourceSectionLabel:
|
|
27990
|
-
snippetSectionLabel:
|
|
27991
|
-
modelIdLabel:
|
|
27992
|
-
endpointLabel:
|
|
27993
|
-
requestExampleLabel:
|
|
27994
|
-
responseSchemaLabel:
|
|
27995
|
-
copyAriaLabel:
|
|
27984
|
+
resourceSectionLabel: N?.apiResourceSectionLabel,
|
|
27985
|
+
snippetSectionLabel: N?.apiSnippetSectionLabel,
|
|
27986
|
+
modelIdLabel: N?.apiModelIdLabel,
|
|
27987
|
+
endpointLabel: N?.apiEndpointLabel,
|
|
27988
|
+
requestExampleLabel: N?.apiRequestExampleLabel,
|
|
27989
|
+
responseSchemaLabel: N?.apiResponseSchemaLabel,
|
|
27990
|
+
copyAriaLabel: N?.copyCodeAriaLabel
|
|
27996
27991
|
}),
|
|
27997
|
-
|
|
27992
|
+
se === Pe.Tools && /* @__PURE__ */ R(bS, { tools: e.details?.tools })
|
|
27998
27993
|
]
|
|
27999
27994
|
})
|
|
28000
27995
|
] })
|
|
28001
27996
|
}),
|
|
28002
|
-
|
|
27997
|
+
le && /* @__PURE__ */ R(Dx, {
|
|
28003
27998
|
version: e.version,
|
|
28004
27999
|
hasExistingPublicationInFolder: B.hasExistingPublicationInFolder,
|
|
28005
|
-
isSubmitDisabled:
|
|
28006
|
-
isSubmitLoading:
|
|
28007
|
-
onCancel:
|
|
28008
|
-
onSubmit:
|
|
28000
|
+
isSubmitDisabled: ve.isSubmitDisabled,
|
|
28001
|
+
isSubmitLoading: ve.isSubmitLoading,
|
|
28002
|
+
onCancel: Oe,
|
|
28003
|
+
onSubmit: ke,
|
|
28009
28004
|
texts: T
|
|
28010
28005
|
})
|
|
28011
28006
|
]
|
|
@@ -28073,7 +28068,7 @@ var jx = {
|
|
|
28073
28068
|
}),
|
|
28074
28069
|
/* @__PURE__ */ R(yx, {
|
|
28075
28070
|
isStarred: h,
|
|
28076
|
-
size:
|
|
28071
|
+
size: ae.Small,
|
|
28077
28072
|
onClick: y,
|
|
28078
28073
|
ariaLabel: h ? u : l,
|
|
28079
28074
|
className: "self-end"
|
|
@@ -28112,20 +28107,20 @@ var jx = {
|
|
|
28112
28107
|
C,
|
|
28113
28108
|
N
|
|
28114
28109
|
]);
|
|
28115
|
-
let ie = u(/* @__PURE__ */ new Map()),
|
|
28110
|
+
let ie = u(/* @__PURE__ */ new Map()), ae = u(C), F = u(T), I = u(0), oe = u(!1);
|
|
28116
28111
|
return c(() => {
|
|
28117
28112
|
if (!M.current || s) return;
|
|
28118
28113
|
if (A.current && !oe.current) {
|
|
28119
28114
|
let e = A.current;
|
|
28120
28115
|
e.style.height = "", e.style.transition = "";
|
|
28121
28116
|
}
|
|
28122
|
-
let e =
|
|
28123
|
-
|
|
28117
|
+
let e = ae.current !== C, t = F.current !== T;
|
|
28118
|
+
ae.current = C, F.current = T;
|
|
28124
28119
|
let n = M.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
|
|
28125
28120
|
if (n.forEach((e) => {
|
|
28126
28121
|
r.set(e.dataset.cardId, DS(e));
|
|
28127
28122
|
}), !e && !t) {
|
|
28128
|
-
let e = j.current, t =
|
|
28123
|
+
let e = j.current, t = I.current, i = 0;
|
|
28129
28124
|
if (e) {
|
|
28130
28125
|
let t = e.style.height;
|
|
28131
28126
|
t && (e.style.height = ""), i = e.offsetHeight, t && (e.style.height = t);
|
|
@@ -28150,7 +28145,7 @@ var jx = {
|
|
|
28150
28145
|
}
|
|
28151
28146
|
if (ie.current = r, j.current) {
|
|
28152
28147
|
let e = j.current, t = e.style.height ? parseFloat(e.style.height) : NaN;
|
|
28153
|
-
|
|
28148
|
+
I.current = Number.isNaN(t) ? e.offsetHeight : t;
|
|
28154
28149
|
}
|
|
28155
28150
|
}, [
|
|
28156
28151
|
O,
|
|
@@ -28357,6 +28352,10 @@ var jx = {
|
|
|
28357
28352
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
28358
28353
|
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : MS(e.parentElement);
|
|
28359
28354
|
}, NS = ({ items: e, query: t = "", ariaLabel: n = "Catalog", emptyStateTitle: r, styles: i, onToggleFavorite: a, onItemClick: s, stickyHeaderTop: c, selectedItemId: f, credentialsBadgeLoggedOutLabel: p }) => {
|
|
28355
|
+
if (e.length === 0) return /* @__PURE__ */ R("div", {
|
|
28356
|
+
className: "flex size-full flex-col items-center justify-center",
|
|
28357
|
+
children: /* @__PURE__ */ R(xr, { label: r ?? "No results" })
|
|
28358
|
+
});
|
|
28360
28359
|
let m = i?.typography ?? {}, h = {
|
|
28361
28360
|
"--cat-list-name-text": i?.colors?.nameText,
|
|
28362
28361
|
...c == null ? {} : { "--list-header-sticky-top": `${c}px` }
|
|
@@ -28634,7 +28633,7 @@ var jx = {
|
|
|
28634
28633
|
"aria-pressed": r,
|
|
28635
28634
|
onClick: () => n(e),
|
|
28636
28635
|
className: G("flex min-h-11 min-w-11 items-center justify-center rounded-full px-3 py-1.5 transition-colors desktop:min-h-8 desktop:min-w-10", r ? "bg-layer-0 text-accent-primary shadow-sm" : "text-secondary hover:text-primary"),
|
|
28637
|
-
children: e === He.Grid ? /* @__PURE__ */ R(
|
|
28636
|
+
children: e === He.Grid ? /* @__PURE__ */ R(B, { size: m.SM }) : /* @__PURE__ */ R(ve, { size: m.SM })
|
|
28638
28637
|
}, e);
|
|
28639
28638
|
})
|
|
28640
28639
|
}), f != null && f.length > 0 && /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R("div", {
|
|
@@ -28820,8 +28819,8 @@ var jx = {
|
|
|
28820
28819
|
onClick: n,
|
|
28821
28820
|
className: US.gradientBtn
|
|
28822
28821
|
});
|
|
28823
|
-
}, GS = ({ items: e, favorites: t, titles: n, onToggleFavorite: r, onUseInChat: i, isPrimaryActionVisible: s, onShare: c, isPublishVisible: f, getPublishHistory: p, publishFolderItems: m, publishExpandedPaths: h, onPublishExpandedPathsChange: g, publishLoadingPaths: _, hasPublishWriteAccess: v, onPublish: y, onPublishSuccess: b, onCreatePublishFolder: x, publishTexts: S, shareOverlay: C,
|
|
28824
|
-
let { typography:
|
|
28822
|
+
}, GS = ({ items: e, favorites: t, titles: n, onToggleFavorite: r, onUseInChat: i, isPrimaryActionVisible: s, onShare: c, isPublishVisible: f, getPublishHistory: p, publishFolderItems: m, publishExpandedPaths: h, onPublishExpandedPathsChange: g, publishLoadingPaths: _, hasPublishWriteAccess: v, onPublish: y, onPublishSuccess: b, onCreatePublishFolder: x, publishTexts: S, shareOverlay: C, isShareVisible: w, connectOverlay: T, isConnectVisible: E, onFetchDetails: D, onEdit: O, onDelete: k, onLogin: ee, onLogout: A, onCreateClick: j, createOptions: M, hideCreateButton: N = !1, hidePageTitle: te = !1, initialViewMode: P = He.Grid, selectedItemId: re, onCardClick: ie, isLoading: ae, styles: F, detailsTexts: I, initialDetailsItemId: oe, sortKey: se, onSortChange: L, filterTopics: ce, onFilterTopicsChange: le, isMyAppsActive: ue, onMyAppsActiveChange: de }) => {
|
|
28823
|
+
let { typography: fe } = F ?? {}, pe = ax(F), me = n?.pageTitle ?? "Catalog", he = n?.createLabel ?? "Create", ge = n?.favoritesTitle ?? "Your favorites", _e = n?.browseTitle ?? "Browse", B = n?.searchPlaceholder ?? "Search models, tools, agents…", ve = n?.noResultsTitle ?? ((e) => `No results for "${e}"`), ye = n?.featuredLabel ?? "Featured", be = n?.gridViewLabel ?? "Grid view", xe = n?.listViewLabel ?? "List view", Se = n?.ariaLabel ?? "Catalog", Ce = [
|
|
28825
28824
|
{
|
|
28826
28825
|
value: Ie.RecentlyUpdated,
|
|
28827
28826
|
label: n?.sortRecentlyUpdatedLabel ?? "Recently Updated"
|
|
@@ -28834,156 +28833,156 @@ var jx = {
|
|
|
28834
28833
|
value: Ie.NameAZ,
|
|
28835
28834
|
label: n?.sortNameAZLabel ?? "Name A-Z"
|
|
28836
28835
|
}
|
|
28837
|
-
], [
|
|
28836
|
+
], [we, Te] = d(""), [Ee, De] = d(P), [Oe, ke] = d(P === He.List), [Ae, je] = d(Ie.RecentlyUpdated), [Me, Ne] = d(/* @__PURE__ */ new Set()), [Pe, Fe] = d(!1), V = se ?? Ae, Le = ce ?? Me, Re = ue ?? Pe, ze = a((e) => {
|
|
28838
28837
|
let t = e;
|
|
28839
|
-
|
|
28840
|
-
}, [
|
|
28841
|
-
je(e), L?.(e);
|
|
28842
|
-
}, [L]), ze = a((e) => {
|
|
28838
|
+
je(t), L?.(t);
|
|
28839
|
+
}, [L]), Be = a((e) => {
|
|
28843
28840
|
Ne(e), le?.(e);
|
|
28844
|
-
}, [le]),
|
|
28841
|
+
}, [le]), Ve = a((e) => {
|
|
28842
|
+
Fe(e), de?.(e);
|
|
28843
|
+
}, [de]), Ue = l(() => e.filter((e) => !e.isHidden), [e]), We = l(() => new Set(Ue.flatMap((e) => e.topics)), [Ue]), Ye = l(() => tx(Ue, n?.tabLabels), [Ue, n?.tabLabels]), Xe = Ye[0]?.id ?? "", [Ze, Qe] = d(Xe);
|
|
28845
28844
|
o(() => {
|
|
28846
|
-
|
|
28847
|
-
}, [
|
|
28848
|
-
let [
|
|
28845
|
+
Qe((e) => e || Xe);
|
|
28846
|
+
}, [Xe]);
|
|
28847
|
+
let [$e, et] = d(t.length > 0);
|
|
28849
28848
|
o(() => {
|
|
28850
|
-
t.length > 0 &&
|
|
28851
|
-
}, [t.length,
|
|
28852
|
-
let
|
|
28853
|
-
|
|
28854
|
-
}, []),
|
|
28855
|
-
|
|
28849
|
+
t.length > 0 && !$e && et(!0);
|
|
28850
|
+
}, [t.length, $e]);
|
|
28851
|
+
let tt = a(() => {
|
|
28852
|
+
et(!1);
|
|
28853
|
+
}, []), nt = $e && t.length === 0, [rt, it] = d(null), [at, ot] = d(!1), [st, ct] = d(void 0), [lt, ut] = d(!1), dt = u(null), ft = a(async (e) => {
|
|
28854
|
+
it(e), ct(void 0), dt.current = e.id;
|
|
28856
28855
|
let t = [];
|
|
28857
|
-
|
|
28856
|
+
D && (ut(!0), t.push((async () => {
|
|
28858
28857
|
try {
|
|
28859
|
-
let t = await
|
|
28860
|
-
|
|
28858
|
+
let t = await D(e);
|
|
28859
|
+
dt.current === e.id && ct(t);
|
|
28861
28860
|
} finally {
|
|
28862
|
-
|
|
28861
|
+
dt.current === e.id && ut(!1);
|
|
28863
28862
|
}
|
|
28864
28863
|
})())), await Promise.all(t);
|
|
28865
|
-
}, [
|
|
28864
|
+
}, [D]), pt = u(null);
|
|
28866
28865
|
o(() => {
|
|
28867
|
-
if (!
|
|
28868
|
-
|
|
28866
|
+
if (!oe) {
|
|
28867
|
+
pt.current = null;
|
|
28869
28868
|
return;
|
|
28870
28869
|
}
|
|
28871
|
-
if (
|
|
28872
|
-
let t = e.find((e) => e.id ===
|
|
28873
|
-
t && (
|
|
28870
|
+
if (pt.current === oe) return;
|
|
28871
|
+
let t = e.find((e) => e.id === oe);
|
|
28872
|
+
t && (pt.current = oe, ft(t));
|
|
28874
28873
|
}, [
|
|
28875
|
-
|
|
28874
|
+
oe,
|
|
28876
28875
|
e,
|
|
28877
|
-
|
|
28876
|
+
ft
|
|
28878
28877
|
]);
|
|
28879
|
-
let
|
|
28880
|
-
await
|
|
28881
|
-
}, [
|
|
28882
|
-
await
|
|
28883
|
-
}, [
|
|
28884
|
-
|
|
28885
|
-
|
|
28878
|
+
let mt = a(async (e, t) => {
|
|
28879
|
+
await ee?.(e, t), await ft(e);
|
|
28880
|
+
}, [ee, ft]), ht = a(async (e, t) => {
|
|
28881
|
+
await A?.(e, t), await ft(e);
|
|
28882
|
+
}, [A, ft]), gt = a(() => {
|
|
28883
|
+
ot(!1), dt.current = null, setTimeout(() => {
|
|
28884
|
+
it(null), ct(void 0), ut(!1);
|
|
28886
28885
|
}, 300);
|
|
28887
|
-
}, []),
|
|
28888
|
-
if (
|
|
28889
|
-
if (
|
|
28890
|
-
let { credentials: e, ...t } =
|
|
28886
|
+
}, []), _t = l(() => {
|
|
28887
|
+
if (rt == null) return null;
|
|
28888
|
+
if (st == null) return rt;
|
|
28889
|
+
let { credentials: e, ...t } = st;
|
|
28891
28890
|
return {
|
|
28892
|
-
...
|
|
28891
|
+
...rt,
|
|
28893
28892
|
details: t,
|
|
28894
|
-
credentials: e ??
|
|
28893
|
+
credentials: e ?? rt.credentials
|
|
28895
28894
|
};
|
|
28896
|
-
}, [
|
|
28895
|
+
}, [rt, st]), vt = l(() => Je(Ue, V), [Ue, V]), yt = l(() => qe(vt, we), [vt, we]), bt = l(() => Le.size > 0 ? Ge(yt, Le) : yt, [yt, Le]), xt = l(() => Re ? Ke(bt) : bt, [bt, Re]), St = l(() => Ze ? xt.filter((e) => e.type === Ze) : xt, [xt, Ze]), Ct = rt != null && t.some((e) => e.id === rt.id);
|
|
28897
28896
|
o(() => {
|
|
28898
|
-
if (
|
|
28899
|
-
let e = requestAnimationFrame(() =>
|
|
28897
|
+
if (rt == null) return;
|
|
28898
|
+
let e = requestAnimationFrame(() => ot(!0));
|
|
28900
28899
|
return () => cancelAnimationFrame(e);
|
|
28901
|
-
}, [
|
|
28902
|
-
let
|
|
28903
|
-
e === He.List &&
|
|
28904
|
-
}, []),
|
|
28905
|
-
noResultsTitle:
|
|
28906
|
-
featuredLabel:
|
|
28907
|
-
credentialsBadgeLoggedOutLabel:
|
|
28900
|
+
}, [rt]);
|
|
28901
|
+
let wt = a((e) => {
|
|
28902
|
+
e === He.List && ke(!0), De(e);
|
|
28903
|
+
}, []), Tt = we ? ve(we) : "No items", Et = l(() => ({
|
|
28904
|
+
noResultsTitle: Tt,
|
|
28905
|
+
featuredLabel: ye,
|
|
28906
|
+
credentialsBadgeLoggedOutLabel: I?.credentialsBadgeLoggedOutLabel
|
|
28908
28907
|
}), [
|
|
28909
|
-
|
|
28910
|
-
|
|
28911
|
-
|
|
28908
|
+
Tt,
|
|
28909
|
+
ye,
|
|
28910
|
+
I?.credentialsBadgeLoggedOutLabel
|
|
28912
28911
|
]);
|
|
28913
|
-
return
|
|
28912
|
+
return ae ? /* @__PURE__ */ R("div", {
|
|
28914
28913
|
className: "flex size-full min-h-0 flex-1 items-center justify-center",
|
|
28915
28914
|
children: /* @__PURE__ */ R(ne, {})
|
|
28916
28915
|
}) : /* @__PURE__ */ z("section", {
|
|
28917
|
-
"aria-label":
|
|
28916
|
+
"aria-label": Se,
|
|
28918
28917
|
className: G("flex size-full min-h-0 flex-1 flex-col", HS.root),
|
|
28919
|
-
style:
|
|
28918
|
+
style: pe,
|
|
28920
28919
|
children: [
|
|
28921
|
-
(!
|
|
28920
|
+
(!te || !N) && /* @__PURE__ */ R("div", {
|
|
28922
28921
|
className: G("shrink-0", HS.heading),
|
|
28923
28922
|
children: /* @__PURE__ */ z("div", {
|
|
28924
28923
|
className: "flex h-[64px] w-full items-center justify-between px-8",
|
|
28925
|
-
children: [!
|
|
28926
|
-
className: G(
|
|
28927
|
-
children:
|
|
28928
|
-
}), !
|
|
28929
|
-
label:
|
|
28930
|
-
options:
|
|
28931
|
-
onClick:
|
|
28924
|
+
children: [!te && /* @__PURE__ */ R("h1", {
|
|
28925
|
+
className: G(fe?.pageHeadingFontClassName ?? "dial-display2-text", HS.headingTitle),
|
|
28926
|
+
children: me
|
|
28927
|
+
}), !N && /* @__PURE__ */ R(WS, {
|
|
28928
|
+
label: he,
|
|
28929
|
+
options: M,
|
|
28930
|
+
onClick: j
|
|
28932
28931
|
})]
|
|
28933
28932
|
})
|
|
28934
28933
|
}),
|
|
28935
28934
|
/* @__PURE__ */ z("div", {
|
|
28936
28935
|
className: "flex min-h-0 flex-1 flex-col overflow-auto",
|
|
28937
28936
|
children: [
|
|
28938
|
-
|
|
28937
|
+
$e && /* @__PURE__ */ R("div", {
|
|
28939
28938
|
className: "w-full px-8",
|
|
28940
28939
|
children: /* @__PURE__ */ R(OS, {
|
|
28941
28940
|
items: t,
|
|
28942
28941
|
totalCount: t.length,
|
|
28943
|
-
title:
|
|
28942
|
+
title: ge,
|
|
28944
28943
|
onToggleFavorite: r,
|
|
28945
|
-
onItemClick:
|
|
28946
|
-
isLeaving:
|
|
28947
|
-
onExitComplete:
|
|
28948
|
-
selectedItemId:
|
|
28949
|
-
credentialsBadgeLoggedOutLabel:
|
|
28944
|
+
onItemClick: ie ?? ft,
|
|
28945
|
+
isLeaving: nt,
|
|
28946
|
+
onExitComplete: tt,
|
|
28947
|
+
selectedItemId: re,
|
|
28948
|
+
credentialsBadgeLoggedOutLabel: I?.credentialsBadgeLoggedOutLabel
|
|
28950
28949
|
})
|
|
28951
28950
|
}),
|
|
28952
28951
|
/* @__PURE__ */ R("div", {
|
|
28953
28952
|
className: "w-full px-4 pt-6",
|
|
28954
28953
|
children: /* @__PURE__ */ R(VS, {
|
|
28955
|
-
totalCount:
|
|
28956
|
-
viewMode:
|
|
28957
|
-
onViewModeChange:
|
|
28958
|
-
sortKey:
|
|
28959
|
-
onSortChange:
|
|
28960
|
-
query:
|
|
28961
|
-
onQueryChange:
|
|
28962
|
-
title:
|
|
28963
|
-
searchPlaceholder:
|
|
28964
|
-
gridViewLabel:
|
|
28965
|
-
listViewLabel:
|
|
28966
|
-
sortOptions:
|
|
28967
|
-
filters:
|
|
28968
|
-
onFiltersChange:
|
|
28969
|
-
filterValues:
|
|
28970
|
-
isMyAppsActive:
|
|
28971
|
-
onMyAppsChange:
|
|
28954
|
+
totalCount: xt.length,
|
|
28955
|
+
viewMode: Ee,
|
|
28956
|
+
onViewModeChange: wt,
|
|
28957
|
+
sortKey: V,
|
|
28958
|
+
onSortChange: ze,
|
|
28959
|
+
query: we,
|
|
28960
|
+
onQueryChange: Te,
|
|
28961
|
+
title: _e,
|
|
28962
|
+
searchPlaceholder: B,
|
|
28963
|
+
gridViewLabel: be,
|
|
28964
|
+
listViewLabel: xe,
|
|
28965
|
+
sortOptions: Ce,
|
|
28966
|
+
filters: Le,
|
|
28967
|
+
onFiltersChange: Be,
|
|
28968
|
+
filterValues: We,
|
|
28969
|
+
isMyAppsActive: Re,
|
|
28970
|
+
onMyAppsChange: Ve,
|
|
28972
28971
|
filterFromLabel: n?.filterFromLabel,
|
|
28973
28972
|
filterMyAppsLabel: n?.filterMyAppsLabel,
|
|
28974
28973
|
filterTopicsLabel: n?.filterTopicsLabel
|
|
28975
28974
|
})
|
|
28976
28975
|
}),
|
|
28977
|
-
|
|
28976
|
+
Ye.length > 0 && /* @__PURE__ */ R("div", {
|
|
28978
28977
|
className: "px-8",
|
|
28979
28978
|
children: /* @__PURE__ */ R(qb, {
|
|
28980
|
-
tabs:
|
|
28979
|
+
tabs: Ye.map((e) => ({
|
|
28981
28980
|
id: e.id,
|
|
28982
28981
|
label: typeof e.label == "string" ? e.label : String(e.label),
|
|
28983
|
-
count:
|
|
28982
|
+
count: xt.filter((t) => t.type === e.id).length
|
|
28984
28983
|
})),
|
|
28985
|
-
activeTabId:
|
|
28986
|
-
onTabChange:
|
|
28984
|
+
activeTabId: Ze,
|
|
28985
|
+
onTabChange: Qe,
|
|
28987
28986
|
styles: { colors: {
|
|
28988
28987
|
activeTabClassName: "text-catalog-tab-active",
|
|
28989
28988
|
inactiveTabClassName: "text-catalog-tab-inactive hover:text-catalog-tab-hover border-transparent",
|
|
@@ -28993,40 +28992,40 @@ var jx = {
|
|
|
28993
28992
|
})
|
|
28994
28993
|
}),
|
|
28995
28994
|
/* @__PURE__ */ z("div", {
|
|
28996
|
-
className: G(
|
|
28995
|
+
className: G(St.length > 0 ? "mx-auto min-h-full w-full max-w-[1180px] px-8 pt-6" : "min-h-0 flex-1", St.length === 0 && Ee === He.List && "px-8 pt-6"),
|
|
28997
28996
|
children: [/* @__PURE__ */ R("div", {
|
|
28998
|
-
className: G(
|
|
28997
|
+
className: G(St.length > 0 ? "pb-8" : "size-full flex-1", Ee !== He.Grid && "hidden"),
|
|
28999
28998
|
children: /* @__PURE__ */ R(Tx, {
|
|
29000
|
-
items:
|
|
29001
|
-
query:
|
|
28999
|
+
items: St,
|
|
29000
|
+
query: we,
|
|
29002
29001
|
onToggleFavorite: r,
|
|
29003
|
-
onItemClick:
|
|
29004
|
-
titles:
|
|
29005
|
-
selectedItemId:
|
|
29002
|
+
onItemClick: ie ?? ft,
|
|
29003
|
+
titles: Et,
|
|
29004
|
+
selectedItemId: re
|
|
29006
29005
|
})
|
|
29007
|
-
}),
|
|
29008
|
-
className: G("pb-8",
|
|
29006
|
+
}), Oe && /* @__PURE__ */ R("div", {
|
|
29007
|
+
className: G("pb-8", Ee !== He.List && "hidden", St.length === 0 && "h-full"),
|
|
29009
29008
|
children: /* @__PURE__ */ R(NS, {
|
|
29010
|
-
items:
|
|
29011
|
-
query:
|
|
29012
|
-
ariaLabel:
|
|
29013
|
-
emptyStateTitle:
|
|
29009
|
+
items: St,
|
|
29010
|
+
query: we,
|
|
29011
|
+
ariaLabel: Se,
|
|
29012
|
+
emptyStateTitle: Tt,
|
|
29014
29013
|
onToggleFavorite: r,
|
|
29015
|
-
onItemClick:
|
|
29014
|
+
onItemClick: ie ?? ft,
|
|
29016
29015
|
stickyHeaderTop: 0,
|
|
29017
|
-
selectedItemId:
|
|
29018
|
-
credentialsBadgeLoggedOutLabel:
|
|
29016
|
+
selectedItemId: re,
|
|
29017
|
+
credentialsBadgeLoggedOutLabel: I?.credentialsBadgeLoggedOutLabel
|
|
29019
29018
|
})
|
|
29020
29019
|
})]
|
|
29021
29020
|
})
|
|
29022
29021
|
]
|
|
29023
29022
|
}),
|
|
29024
|
-
|
|
29025
|
-
item:
|
|
29026
|
-
isOpen:
|
|
29027
|
-
isStarred:
|
|
29028
|
-
isDetailsLoading:
|
|
29029
|
-
onClose:
|
|
29023
|
+
_t != null && /* @__PURE__ */ R(CS, {
|
|
29024
|
+
item: _t,
|
|
29025
|
+
isOpen: at,
|
|
29026
|
+
isStarred: Ct,
|
|
29027
|
+
isDetailsLoading: lt,
|
|
29028
|
+
onClose: gt,
|
|
29030
29029
|
onToggleFavorite: r,
|
|
29031
29030
|
onUseInChat: i,
|
|
29032
29031
|
isPrimaryActionVisible: s,
|
|
@@ -29043,13 +29042,14 @@ var jx = {
|
|
|
29043
29042
|
onCreatePublishFolder: x,
|
|
29044
29043
|
publishTexts: S,
|
|
29045
29044
|
shareOverlay: C,
|
|
29046
|
-
|
|
29047
|
-
|
|
29048
|
-
|
|
29049
|
-
|
|
29050
|
-
|
|
29051
|
-
|
|
29052
|
-
|
|
29045
|
+
isShareVisible: w,
|
|
29046
|
+
connectOverlay: T,
|
|
29047
|
+
isConnectVisible: E,
|
|
29048
|
+
onEdit: O,
|
|
29049
|
+
onDelete: k,
|
|
29050
|
+
onLogin: mt,
|
|
29051
|
+
onLogout: ht,
|
|
29052
|
+
texts: I
|
|
29053
29053
|
})
|
|
29054
29054
|
]
|
|
29055
29055
|
});
|