@epam/ai-dial-catalog 1.1.0-dev.43 → 1.1.0-dev.44
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/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/index.js +371 -368
- 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/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;
|
|
@@ -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
|
})]
|
|
@@ -26501,7 +26501,7 @@ var Yb = (e) => /* @__PURE__ */ R(j, { ...e }), Xb = (e) => /* @__PURE__ */ R(_,
|
|
|
26501
26501
|
})
|
|
26502
26502
|
}), /* @__PURE__ */ R(yx, {
|
|
26503
26503
|
isStarred: h,
|
|
26504
|
-
size:
|
|
26504
|
+
size: ae.Small,
|
|
26505
26505
|
onClick: C,
|
|
26506
26506
|
ariaLabel: h ? c : s,
|
|
26507
26507
|
className: G(lx.starBtn, !h && lx.emptyStarHidden)
|
|
@@ -26758,7 +26758,7 @@ var jx = {
|
|
|
26758
26758
|
O(t), ee(lt(u, ut(e, t)));
|
|
26759
26759
|
let n = it(t);
|
|
26760
26760
|
n && E(new Set(T).add(n));
|
|
26761
|
-
}, ie = () => re(t ?? []),
|
|
26761
|
+
}, ie = () => re(t ?? []), ae = (e) => {
|
|
26762
26762
|
let t = at(e.path), n = [{
|
|
26763
26763
|
key: "add-child",
|
|
26764
26764
|
label: c,
|
|
@@ -26777,7 +26777,7 @@ var jx = {
|
|
|
26777
26777
|
}),
|
|
26778
26778
|
onClick: () => re(t.slice(0, -1))
|
|
26779
26779
|
}), n;
|
|
26780
|
-
},
|
|
26780
|
+
}, F = (t) => D ? ct(t, ut(e, D), {
|
|
26781
26781
|
empty: p,
|
|
26782
26782
|
invalid: h,
|
|
26783
26783
|
duplicate: g
|
|
@@ -26794,16 +26794,16 @@ var jx = {
|
|
|
26794
26794
|
onItemClick: (e) => {
|
|
26795
26795
|
n(t != null && it(t) === e.path ? void 0 : at(e.path));
|
|
26796
26796
|
},
|
|
26797
|
-
getContextMenuItems:
|
|
26797
|
+
getContextMenuItems: ae,
|
|
26798
26798
|
createdFolderPath: ne,
|
|
26799
26799
|
newFolderDefaultName: k,
|
|
26800
26800
|
onCreateFolderSave: (e) => {
|
|
26801
26801
|
if (!D) return;
|
|
26802
26802
|
let t = e.trim();
|
|
26803
|
-
|
|
26803
|
+
F(e) || (r(D, t), n([...D, t])), O(null);
|
|
26804
26804
|
},
|
|
26805
26805
|
onCreateFolderCancel: () => O(null),
|
|
26806
|
-
onRenameValidate: (e) =>
|
|
26806
|
+
onRenameValidate: (e) => F(e),
|
|
26807
26807
|
emptyStateTitle: j ? f.replace("{query}", i.trim()) : void 0
|
|
26808
26808
|
}), /* @__PURE__ */ z("button", {
|
|
26809
26809
|
type: "button",
|
|
@@ -26843,28 +26843,28 @@ var jx = {
|
|
|
26843
26843
|
children: Qe(e.publishedAt)
|
|
26844
26844
|
})]
|
|
26845
26845
|
}, `${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:
|
|
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(""), ae = o != null, oe = l(() => Xe({
|
|
26847
|
+
hasSelectedFolder: ae,
|
|
26848
26848
|
hasExistingPublicationInFolder: m,
|
|
26849
26849
|
hasWriteAccess: h,
|
|
26850
26850
|
isSubmitting: g,
|
|
26851
26851
|
hasSubmitError: _,
|
|
26852
26852
|
allowReplace: v
|
|
26853
26853
|
}), [
|
|
26854
|
-
|
|
26854
|
+
ae,
|
|
26855
26855
|
m,
|
|
26856
26856
|
h,
|
|
26857
26857
|
g,
|
|
26858
26858
|
_,
|
|
26859
26859
|
v
|
|
26860
|
-
]), se =
|
|
26861
|
-
if (!
|
|
26860
|
+
]), se = ae ? o[o.length - 1] ?? P : "", ce = l(() => {
|
|
26861
|
+
if (!ae) return [];
|
|
26862
26862
|
let e = o.join("/");
|
|
26863
26863
|
return n.filter((t) => t.folderPath.join("/") === e);
|
|
26864
26864
|
}, [
|
|
26865
26865
|
n,
|
|
26866
26866
|
o,
|
|
26867
|
-
|
|
26867
|
+
ae
|
|
26868
26868
|
]);
|
|
26869
26869
|
return /* @__PURE__ */ z("div", {
|
|
26870
26870
|
className: "flex flex-col gap-5",
|
|
@@ -26924,8 +26924,8 @@ var jx = {
|
|
|
26924
26924
|
}),
|
|
26925
26925
|
oe.calloutKind !== Ue.None && oe.calloutKind !== Ue.Info && /* @__PURE__ */ R("div", {
|
|
26926
26926
|
className: "mt-3",
|
|
26927
|
-
children: /* @__PURE__ */ R(
|
|
26928
|
-
type:
|
|
26927
|
+
children: /* @__PURE__ */ R(F, {
|
|
26928
|
+
type: I.SectionMessage,
|
|
26929
26929
|
variant: Lx(oe.calloutKind),
|
|
26930
26930
|
message: zx(oe.calloutKind, {
|
|
26931
26931
|
replaceWarning: T,
|
|
@@ -26937,7 +26937,7 @@ var jx = {
|
|
|
26937
26937
|
})
|
|
26938
26938
|
})
|
|
26939
26939
|
] }),
|
|
26940
|
-
|
|
26940
|
+
ae && e && /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("div", {
|
|
26941
26941
|
className: "dial-body-semi-text mb-2 text-primary",
|
|
26942
26942
|
children: w
|
|
26943
26943
|
}), /* @__PURE__ */ R(Fx, {
|
|
@@ -27054,7 +27054,7 @@ var jx = {
|
|
|
27054
27054
|
matchReferenceWidth: !1,
|
|
27055
27055
|
listClassName: "cp-dropdown-overlay",
|
|
27056
27056
|
children: /* @__PURE__ */ R(ee, {
|
|
27057
|
-
size:
|
|
27057
|
+
size: ae.Small,
|
|
27058
27058
|
label: f,
|
|
27059
27059
|
iconAfter: /* @__PURE__ */ R(le, { size: m.SM })
|
|
27060
27060
|
})
|
|
@@ -27112,7 +27112,7 @@ var jx = {
|
|
|
27112
27112
|
matchReferenceWidth: !1,
|
|
27113
27113
|
listClassName: "cp-dropdown-overlay",
|
|
27114
27114
|
children: /* @__PURE__ */ R(ee, {
|
|
27115
|
-
size:
|
|
27115
|
+
size: ae.Small,
|
|
27116
27116
|
label: b?.label,
|
|
27117
27117
|
iconAfter: /* @__PURE__ */ R(le, { size: m.SM })
|
|
27118
27118
|
})
|
|
@@ -27378,10 +27378,10 @@ var jx = {
|
|
|
27378
27378
|
className: "sr-only",
|
|
27379
27379
|
children: r?.deletingStatusLabel ?? "Deleting"
|
|
27380
27380
|
})] }) : null;
|
|
27381
|
-
}, eS = (e) => e.isMyApp === !0 && e.type !== V.Guardrail && e.type !== V.Mcp, tS = ({ item: e, onShare: t, shareOverlay: n,
|
|
27382
|
-
let [
|
|
27381
|
+
}, eS = (e) => e.isMyApp === !0 && e.type !== V.Guardrail && e.type !== V.Mcp, tS = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
|
|
27382
|
+
let [o, s] = d(!1), c = a(() => {
|
|
27383
27383
|
if (n) {
|
|
27384
|
-
|
|
27384
|
+
s((e) => !e);
|
|
27385
27385
|
return;
|
|
27386
27386
|
}
|
|
27387
27387
|
t?.(e);
|
|
@@ -27390,99 +27390,100 @@ var jx = {
|
|
|
27390
27390
|
t,
|
|
27391
27391
|
n
|
|
27392
27392
|
]);
|
|
27393
|
-
if (!eS(e)) return null;
|
|
27394
|
-
let
|
|
27395
|
-
label:
|
|
27393
|
+
if (!eS(e) || r && !r(e)) return null;
|
|
27394
|
+
let l = /* @__PURE__ */ R(Xb, {
|
|
27395
|
+
label: i,
|
|
27396
27396
|
iconBefore: /* @__PURE__ */ R(De, { size: m.MD }),
|
|
27397
27397
|
iconAfter: /* @__PURE__ */ R(le, { size: m.MD }),
|
|
27398
|
-
onClick:
|
|
27398
|
+
onClick: c,
|
|
27399
27399
|
"aria-haspopup": n ? "menu" : void 0,
|
|
27400
|
-
"aria-expanded": n ?
|
|
27400
|
+
"aria-expanded": n ? o : void 0
|
|
27401
27401
|
});
|
|
27402
27402
|
return n ? /* @__PURE__ */ R(x, {
|
|
27403
27403
|
placement: "bottom-end",
|
|
27404
27404
|
matchReferenceWidth: !1,
|
|
27405
|
-
open:
|
|
27406
|
-
onOpenChange:
|
|
27405
|
+
open: o,
|
|
27406
|
+
onOpenChange: s,
|
|
27407
27407
|
trigger: [],
|
|
27408
27408
|
outsideClosable: !0,
|
|
27409
27409
|
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:
|
|
27410
|
+
renderOverlay: () => n(e, () => s(!1)),
|
|
27411
|
+
children: l
|
|
27412
|
+
}) : l;
|
|
27413
|
+
}, 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 }) => {
|
|
27414
|
+
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
27415
|
t?.(e);
|
|
27416
|
-
}, [e, t]),
|
|
27417
|
-
|
|
27418
|
-
}, [e,
|
|
27419
|
-
|
|
27416
|
+
}, [e, t]), T = a(() => {
|
|
27417
|
+
l?.(e);
|
|
27418
|
+
}, [e, l]), E = _?.hasPrimaryAction !== !1 && (n?.(e) ?? (e.type === V.Model || e.type === V.Application)), D = y?.(e) ?? (e.type === V.Model || e.type === V.Toolset || e.type === V.Application), 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(() => {
|
|
27419
|
+
k === Be.LogOut ? g?.() : h?.();
|
|
27420
27420
|
}, [
|
|
27421
|
-
|
|
27422
|
-
|
|
27423
|
-
|
|
27424
|
-
]),
|
|
27425
|
-
[Be.ManageCredentials]:
|
|
27426
|
-
[Be.LoginWithMyCreds]:
|
|
27427
|
-
[Be.LogIn]:
|
|
27428
|
-
[Be.LogOut]:
|
|
27429
|
-
}[
|
|
27430
|
-
[Be.ManageCredentials]: /* @__PURE__ */ R(
|
|
27421
|
+
k,
|
|
27422
|
+
g,
|
|
27423
|
+
h
|
|
27424
|
+
]), j = {
|
|
27425
|
+
[Be.ManageCredentials]: _?.manageCredentialsActionLabel ?? "Manage credentials",
|
|
27426
|
+
[Be.LoginWithMyCreds]: _?.loginWithMyCredsActionLabel ?? "Login with my creds",
|
|
27427
|
+
[Be.LogIn]: _?.loginActionLabel ?? "Log in",
|
|
27428
|
+
[Be.LogOut]: _?.logoutActionLabel ?? "Log out"
|
|
27429
|
+
}[k ?? Be.LogIn], M = {
|
|
27430
|
+
[Be.ManageCredentials]: /* @__PURE__ */ R(_e, { size: m.MD }),
|
|
27431
27431
|
[Be.LoginWithMyCreds]: /* @__PURE__ */ R(ye, { size: m.MD }),
|
|
27432
27432
|
[Be.LogIn]: /* @__PURE__ */ R(ye, { size: m.MD }),
|
|
27433
27433
|
[Be.LogOut]: /* @__PURE__ */ R(be, { size: m.MD })
|
|
27434
|
-
}[
|
|
27434
|
+
}[k ?? Be.LogIn];
|
|
27435
27435
|
return /* @__PURE__ */ z("div", {
|
|
27436
27436
|
className: "flex flex-col gap-3 px-6 py-4",
|
|
27437
27437
|
children: [/* @__PURE__ */ R(Nx, {
|
|
27438
27438
|
item: e,
|
|
27439
27439
|
iconSize: 52,
|
|
27440
|
-
nameClassName:
|
|
27441
|
-
featuredLabel:
|
|
27440
|
+
nameClassName: x,
|
|
27441
|
+
featuredLabel: _?.featuredLabel ?? "Featured",
|
|
27442
27442
|
footer: e.folder.length > 0 ? /* @__PURE__ */ R(_x, {
|
|
27443
27443
|
segments: e.folder,
|
|
27444
|
-
labelClassName:
|
|
27445
|
-
leafClassName:
|
|
27444
|
+
labelClassName: S,
|
|
27445
|
+
leafClassName: C
|
|
27446
27446
|
}) : void 0
|
|
27447
27447
|
}), /* @__PURE__ */ z("div", {
|
|
27448
27448
|
className: "flex flex-wrap items-center gap-2 ps-[60px]",
|
|
27449
27449
|
children: [
|
|
27450
|
-
|
|
27451
|
-
label:
|
|
27450
|
+
E && /* @__PURE__ */ R(Yb, {
|
|
27451
|
+
label: _?.primaryActionLabel ?? "Use in chat",
|
|
27452
27452
|
iconBefore: /* @__PURE__ */ R(Ce, { size: m.MD }),
|
|
27453
|
-
onClick:
|
|
27453
|
+
onClick: w
|
|
27454
27454
|
}),
|
|
27455
|
-
|
|
27456
|
-
label:
|
|
27455
|
+
O && /* @__PURE__ */ R(Xb, {
|
|
27456
|
+
label: _?.editActionLabel ?? "Edit",
|
|
27457
27457
|
iconBefore: /* @__PURE__ */ R(Se, { size: m.MD }),
|
|
27458
|
-
onClick:
|
|
27458
|
+
onClick: T
|
|
27459
27459
|
}),
|
|
27460
27460
|
/* @__PURE__ */ R(tS, {
|
|
27461
27461
|
item: e,
|
|
27462
27462
|
onShare: r,
|
|
27463
27463
|
shareOverlay: i,
|
|
27464
|
-
|
|
27464
|
+
isShareVisible: o,
|
|
27465
|
+
label: _?.shareLabel
|
|
27465
27466
|
}),
|
|
27466
27467
|
/* @__PURE__ */ R($x, {
|
|
27467
27468
|
item: e,
|
|
27468
|
-
onDelete:
|
|
27469
|
-
onDeleted:
|
|
27470
|
-
texts:
|
|
27469
|
+
onDelete: u,
|
|
27470
|
+
onDeleted: d,
|
|
27471
|
+
texts: _
|
|
27471
27472
|
}),
|
|
27472
|
-
|
|
27473
|
-
label:
|
|
27474
|
-
onClick:
|
|
27473
|
+
D && /* @__PURE__ */ R(Xb, {
|
|
27474
|
+
label: _?.publishLabel ?? "Publish",
|
|
27475
|
+
onClick: b
|
|
27475
27476
|
}),
|
|
27476
|
-
|
|
27477
|
-
label:
|
|
27478
|
-
iconBefore:
|
|
27479
|
-
onClick:
|
|
27477
|
+
ee && /* @__PURE__ */ R(Xb, {
|
|
27478
|
+
label: j,
|
|
27479
|
+
iconBefore: M,
|
|
27480
|
+
onClick: A
|
|
27480
27481
|
}),
|
|
27481
27482
|
/* @__PURE__ */ R(Zx, {
|
|
27482
27483
|
item: e,
|
|
27483
|
-
connectOverlay:
|
|
27484
|
-
isConnectVisible:
|
|
27485
|
-
label:
|
|
27484
|
+
connectOverlay: s,
|
|
27485
|
+
isConnectVisible: c,
|
|
27486
|
+
label: _?.connectLabel
|
|
27486
27487
|
})
|
|
27487
27488
|
]
|
|
27488
27489
|
})]
|
|
@@ -27740,34 +27741,34 @@ var jx = {
|
|
|
27740
27741
|
})
|
|
27741
27742
|
]
|
|
27742
27743
|
}, 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:
|
|
27744
|
+
}), 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 }) => {
|
|
27745
|
+
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
27746
|
o(() => {
|
|
27746
|
-
if (!
|
|
27747
|
+
if (!le || !m) return;
|
|
27747
27748
|
let t = !1;
|
|
27748
|
-
return
|
|
27749
|
-
t ||
|
|
27749
|
+
return he(!0), _e(!1), m(e).then((e) => {
|
|
27750
|
+
t || pe(e);
|
|
27750
27751
|
}).catch(() => {
|
|
27751
|
-
t ||
|
|
27752
|
+
t || _e(!0);
|
|
27752
27753
|
}).finally(() => {
|
|
27753
|
-
t ||
|
|
27754
|
+
t || he(!1);
|
|
27754
27755
|
}), () => {
|
|
27755
27756
|
t = !0;
|
|
27756
27757
|
};
|
|
27757
27758
|
}, [
|
|
27758
|
-
|
|
27759
|
+
le,
|
|
27759
27760
|
m,
|
|
27760
27761
|
e
|
|
27761
27762
|
]);
|
|
27762
27763
|
let B = tt({
|
|
27763
27764
|
item: e,
|
|
27764
|
-
history:
|
|
27765
|
+
history: fe,
|
|
27765
27766
|
folderItems: h,
|
|
27766
27767
|
hasWriteAccess: x,
|
|
27767
27768
|
onCreateFolder: w,
|
|
27768
27769
|
onPublish: S ?? xS,
|
|
27769
27770
|
onPublishSuccess: C
|
|
27770
|
-
}),
|
|
27771
|
+
}), ve = l(() => Xe({
|
|
27771
27772
|
hasSelectedFolder: B.selectedFolderPath != null,
|
|
27772
27773
|
hasExistingPublicationInFolder: B.hasExistingPublicationInFolder,
|
|
27773
27774
|
hasWriteAccess: B.hasWriteAccess,
|
|
@@ -27779,21 +27780,21 @@ var jx = {
|
|
|
27779
27780
|
B.hasWriteAccess,
|
|
27780
27781
|
B.isSubmitting,
|
|
27781
27782
|
B.hasSubmitError
|
|
27782
|
-
]), [
|
|
27783
|
+
]), [ye, be] = d(!1), [xe, Se] = d(!1);
|
|
27783
27784
|
o(() => {
|
|
27784
|
-
|
|
27785
|
+
oe(n);
|
|
27785
27786
|
}, [e.id, n]), o(() => {
|
|
27786
|
-
|
|
27787
|
+
ce(Pe.About), de(!1), B.reset(), pe([]), _e(!1), be(!1), Se(!1);
|
|
27787
27788
|
}, [e.id]);
|
|
27788
|
-
let
|
|
27789
|
-
|
|
27790
|
-
}, []), Ce = a(() => {
|
|
27791
|
-
xe(!0);
|
|
27789
|
+
let Ce = a(() => {
|
|
27790
|
+
be((e) => !e);
|
|
27792
27791
|
}, []), we = a(() => {
|
|
27793
|
-
|
|
27792
|
+
Se(!0);
|
|
27794
27793
|
}, []), Te = a(() => {
|
|
27795
|
-
|
|
27796
|
-
}, [
|
|
27794
|
+
Se(!1);
|
|
27795
|
+
}, []), Ee = a(() => {
|
|
27796
|
+
Se(!1), e.credentials != null && M?.(e, { level: mt(e.credentials) });
|
|
27797
|
+
}, [e, M]);
|
|
27797
27798
|
o(() => {
|
|
27798
27799
|
if (!t) return;
|
|
27799
27800
|
let e = (e) => {
|
|
@@ -27801,47 +27802,47 @@ var jx = {
|
|
|
27801
27802
|
};
|
|
27802
27803
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
27803
27804
|
}, [t, i]);
|
|
27804
|
-
let
|
|
27805
|
-
|
|
27806
|
-
}, [B]),
|
|
27807
|
-
await B.handleSubmit() &&
|
|
27808
|
-
}, [B,
|
|
27805
|
+
let De = a(() => de(!0), []), Oe = a(() => {
|
|
27806
|
+
de(!1), B.reset();
|
|
27807
|
+
}, [B]), ke = a(async () => {
|
|
27808
|
+
await B.handleSubmit() && Oe();
|
|
27809
|
+
}, [B, Oe]), Ae = a(() => {
|
|
27809
27810
|
let t = !I;
|
|
27810
|
-
|
|
27811
|
+
oe(t), s?.(e.id, t);
|
|
27811
27812
|
}, [
|
|
27812
27813
|
I,
|
|
27813
27814
|
e.id,
|
|
27814
27815
|
s
|
|
27815
|
-
]),
|
|
27816
|
+
]), je = l(() => {
|
|
27816
27817
|
let t = [{
|
|
27817
27818
|
id: Pe.About,
|
|
27818
|
-
label:
|
|
27819
|
+
label: N?.tabAboutLabel ?? "About"
|
|
27819
27820
|
}];
|
|
27820
27821
|
return e.details?.overview != null && t.push({
|
|
27821
27822
|
id: Pe.Overview,
|
|
27822
|
-
label:
|
|
27823
|
+
label: N?.tabOverviewLabel ?? "Overview"
|
|
27823
27824
|
}), e.details?.pricing != null && t.push({
|
|
27824
27825
|
id: Pe.Pricing,
|
|
27825
|
-
label:
|
|
27826
|
+
label: N?.tabPricingLabel ?? "Pricing"
|
|
27826
27827
|
}), e.details?.limits != null && t.push({
|
|
27827
27828
|
id: Pe.Limits,
|
|
27828
|
-
label:
|
|
27829
|
+
label: N?.tabLimitsLabel ?? "Limits"
|
|
27829
27830
|
}), e.details?.api != null && t.push({
|
|
27830
27831
|
id: Pe.Api,
|
|
27831
|
-
label:
|
|
27832
|
+
label: N?.tabApiLabel ?? "API"
|
|
27832
27833
|
}), e.details?.tools != null && t.push({
|
|
27833
27834
|
id: Pe.Tools,
|
|
27834
|
-
label:
|
|
27835
|
+
label: N?.tabToolsLabel ?? "Tools"
|
|
27835
27836
|
}), t;
|
|
27836
|
-
}, [e.details,
|
|
27837
|
+
}, [e.details, N]);
|
|
27837
27838
|
o(() => {
|
|
27838
|
-
|
|
27839
|
+
je.some((e) => e.id === se) || ce(je[0]?.id ?? "");
|
|
27839
27840
|
}, [
|
|
27840
27841
|
e.id,
|
|
27841
|
-
|
|
27842
|
-
|
|
27842
|
+
je,
|
|
27843
|
+
se
|
|
27843
27844
|
]);
|
|
27844
|
-
let
|
|
27845
|
+
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
27846
|
return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R("div", {
|
|
27846
27847
|
className: G("fixed inset-0 z-40 transition-opacity duration-300", Xx.backdrop, t ? "opacity-100" : "pointer-events-none opacity-0"),
|
|
27847
27848
|
onClick: i,
|
|
@@ -27849,38 +27850,38 @@ var jx = {
|
|
|
27849
27850
|
}), /* @__PURE__ */ z("div", {
|
|
27850
27851
|
role: "dialog",
|
|
27851
27852
|
"aria-modal": "true",
|
|
27852
|
-
"aria-label":
|
|
27853
|
+
"aria-label": Fe,
|
|
27853
27854
|
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
27855
|
children: [
|
|
27855
27856
|
/* @__PURE__ */ z("div", {
|
|
27856
27857
|
className: "flex shrink-0 items-center gap-2 px-[22px] py-3",
|
|
27857
|
-
children: [
|
|
27858
|
+
children: [le ? /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(Gb, {
|
|
27858
27859
|
icon: /* @__PURE__ */ R(ue, { className: "rtl:scale-x-[-1]" }),
|
|
27859
|
-
"aria-label":
|
|
27860
|
+
"aria-label": Re,
|
|
27860
27861
|
disabled: B.isSubmitting,
|
|
27861
|
-
onClick:
|
|
27862
|
+
onClick: Oe
|
|
27862
27863
|
}), /* @__PURE__ */ R("span", {
|
|
27863
27864
|
className: "dial-body-semi-text flex-1 text-primary",
|
|
27864
|
-
children:
|
|
27865
|
+
children: Le
|
|
27865
27866
|
})] }) : /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R("div", { className: "flex-1" }), /* @__PURE__ */ R(yx, {
|
|
27866
27867
|
isStarred: I,
|
|
27867
|
-
ariaLabel:
|
|
27868
|
-
onClick:
|
|
27869
|
-
})] }), !
|
|
27868
|
+
ariaLabel: Ie,
|
|
27869
|
+
onClick: Ae
|
|
27870
|
+
})] }), !le && /* @__PURE__ */ R(y, {
|
|
27870
27871
|
onClose: i,
|
|
27871
|
-
ariaLabel:
|
|
27872
|
+
ariaLabel: V
|
|
27872
27873
|
})]
|
|
27873
27874
|
}),
|
|
27874
27875
|
/* @__PURE__ */ R("div", { className: G("shrink-0", Xx.divider) }),
|
|
27875
27876
|
/* @__PURE__ */ R("div", {
|
|
27876
27877
|
className: G("min-h-0 flex-1 overflow-y-auto", Xx.content),
|
|
27877
|
-
children:
|
|
27878
|
+
children: le ? /* @__PURE__ */ R("div", {
|
|
27878
27879
|
className: "p-[22px]",
|
|
27879
27880
|
children: /* @__PURE__ */ R(Ix, {
|
|
27880
27881
|
item: e,
|
|
27881
|
-
history:
|
|
27882
|
-
isHistoryLoading:
|
|
27883
|
-
hasHistoryError:
|
|
27882
|
+
history: fe,
|
|
27883
|
+
isHistoryLoading: me,
|
|
27884
|
+
hasHistoryError: ge,
|
|
27884
27885
|
folderItems: B.folderItems,
|
|
27885
27886
|
selectedFolderPath: B.selectedFolderPath,
|
|
27886
27887
|
onSelectedFolderPathChange: B.setSelectedFolderPath,
|
|
@@ -27901,55 +27902,56 @@ var jx = {
|
|
|
27901
27902
|
isPrimaryActionVisible: u,
|
|
27902
27903
|
onShare: f,
|
|
27903
27904
|
shareOverlay: E,
|
|
27904
|
-
|
|
27905
|
-
|
|
27905
|
+
isShareVisible: D,
|
|
27906
|
+
connectOverlay: O,
|
|
27907
|
+
isConnectVisible: k,
|
|
27906
27908
|
isPublishVisible: p,
|
|
27907
|
-
onOpenPublish:
|
|
27908
|
-
onEdit:
|
|
27909
|
-
onDelete:
|
|
27909
|
+
onOpenPublish: De,
|
|
27910
|
+
onEdit: ee,
|
|
27911
|
+
onDelete: A,
|
|
27910
27912
|
onCloseDetails: i,
|
|
27911
|
-
onLogin:
|
|
27912
|
-
onLogout:
|
|
27913
|
-
onToggleCredentials:
|
|
27914
|
-
onRequestLogout:
|
|
27915
|
-
texts:
|
|
27916
|
-
detailsStyles:
|
|
27913
|
+
onLogin: j,
|
|
27914
|
+
onLogout: M,
|
|
27915
|
+
onToggleCredentials: Ce,
|
|
27916
|
+
onRequestLogout: we,
|
|
27917
|
+
texts: N,
|
|
27918
|
+
detailsStyles: P
|
|
27917
27919
|
}),
|
|
27918
|
-
|
|
27920
|
+
ye && /* @__PURE__ */ R(Yx, {
|
|
27919
27921
|
item: e,
|
|
27920
|
-
onLogin:
|
|
27921
|
-
onLogout:
|
|
27922
|
-
texts:
|
|
27922
|
+
onLogin: j,
|
|
27923
|
+
onLogout: M,
|
|
27924
|
+
texts: N,
|
|
27923
27925
|
statusLabelClassName: F
|
|
27924
27926
|
}),
|
|
27925
27927
|
/* @__PURE__ */ R(b, {
|
|
27926
|
-
open:
|
|
27927
|
-
header:
|
|
27928
|
-
description:
|
|
27929
|
-
confirmLabel:
|
|
27930
|
-
onConfirm:
|
|
27931
|
-
onCancel:
|
|
27932
|
-
onClose:
|
|
27928
|
+
open: xe,
|
|
27929
|
+
header: N?.logoutActionLabel ?? "Log out",
|
|
27930
|
+
description: N?.logoutConfirmMessage ?? "Are you sure you want to log out?",
|
|
27931
|
+
confirmLabel: N?.logoutActionLabel ?? "Log out",
|
|
27932
|
+
onConfirm: Ee,
|
|
27933
|
+
onCancel: Te,
|
|
27934
|
+
onClose: Te
|
|
27933
27935
|
}),
|
|
27934
27936
|
/* @__PURE__ */ R("div", { className: Xx.divider }),
|
|
27935
27937
|
/* @__PURE__ */ R(lS, {
|
|
27936
27938
|
item: e,
|
|
27937
|
-
texts:
|
|
27938
|
-
detailsStyles:
|
|
27939
|
+
texts: N,
|
|
27940
|
+
detailsStyles: P
|
|
27939
27941
|
}),
|
|
27940
27942
|
/* @__PURE__ */ z("div", {
|
|
27941
27943
|
className: "flex items-center gap-2 px-[22px]",
|
|
27942
27944
|
children: [/* @__PURE__ */ R(qb, {
|
|
27943
|
-
tabs:
|
|
27944
|
-
activeTabId:
|
|
27945
|
-
onTabChange:
|
|
27945
|
+
tabs: je,
|
|
27946
|
+
activeTabId: se,
|
|
27947
|
+
onTabChange: ce,
|
|
27946
27948
|
styles: { colors: {
|
|
27947
27949
|
activeTabClassName: "text-catalog-tab-active",
|
|
27948
27950
|
inactiveTabClassName: "text-catalog-tab-inactive hover:text-catalog-tab-hover border-transparent"
|
|
27949
27951
|
} }
|
|
27950
27952
|
}), r && /* @__PURE__ */ R("div", {
|
|
27951
27953
|
role: "status",
|
|
27952
|
-
"aria-label":
|
|
27954
|
+
"aria-label": N?.detailsLoadingAriaLabel ?? "Loading details",
|
|
27953
27955
|
className: "shrink-0",
|
|
27954
27956
|
children: /* @__PURE__ */ R(te, {
|
|
27955
27957
|
showTitle: !1,
|
|
@@ -27963,49 +27965,49 @@ var jx = {
|
|
|
27963
27965
|
})]
|
|
27964
27966
|
}),
|
|
27965
27967
|
/* @__PURE__ */ z("div", {
|
|
27966
|
-
className: G(
|
|
27968
|
+
className: G(se !== Pe.Overview && "px-[22px] py-4"),
|
|
27967
27969
|
children: [
|
|
27968
|
-
|
|
27970
|
+
se === Pe.About && /* @__PURE__ */ R(aS, {
|
|
27969
27971
|
content: e.description,
|
|
27970
|
-
detailsStyles:
|
|
27972
|
+
detailsStyles: P
|
|
27971
27973
|
}),
|
|
27972
|
-
|
|
27974
|
+
se === Pe.Overview && /* @__PURE__ */ R(hS, {
|
|
27973
27975
|
sections: e.details?.overview?.sections,
|
|
27974
|
-
sectionClassName:
|
|
27975
|
-
labelClassName:
|
|
27976
|
-
valueClassName:
|
|
27977
|
-
valueTrueClassName:
|
|
27978
|
-
yesLabel:
|
|
27979
|
-
noLabel:
|
|
27976
|
+
sectionClassName: ne,
|
|
27977
|
+
labelClassName: re,
|
|
27978
|
+
valueClassName: ie,
|
|
27979
|
+
valueTrueClassName: ae,
|
|
27980
|
+
yesLabel: Me,
|
|
27981
|
+
noLabel: Ne
|
|
27980
27982
|
}),
|
|
27981
|
-
|
|
27983
|
+
se === Pe.Pricing && /* @__PURE__ */ R(gS, {
|
|
27982
27984
|
pricing: e.details?.pricing,
|
|
27983
|
-
pricesSectionLabel:
|
|
27984
|
-
limitsSectionLabel:
|
|
27985
|
+
pricesSectionLabel: N?.pricingPricesSectionLabel,
|
|
27986
|
+
limitsSectionLabel: N?.pricingLimitsSectionLabel
|
|
27985
27987
|
}),
|
|
27986
|
-
|
|
27987
|
-
|
|
27988
|
+
se === Pe.Limits && /* @__PURE__ */ R(mS, { limits: e.details?.limits }),
|
|
27989
|
+
se === Pe.Api && e.details?.api != null && /* @__PURE__ */ R(qx, {
|
|
27988
27990
|
api: e.details.api,
|
|
27989
|
-
resourceSectionLabel:
|
|
27990
|
-
snippetSectionLabel:
|
|
27991
|
-
modelIdLabel:
|
|
27992
|
-
endpointLabel:
|
|
27993
|
-
requestExampleLabel:
|
|
27994
|
-
responseSchemaLabel:
|
|
27995
|
-
copyAriaLabel:
|
|
27991
|
+
resourceSectionLabel: N?.apiResourceSectionLabel,
|
|
27992
|
+
snippetSectionLabel: N?.apiSnippetSectionLabel,
|
|
27993
|
+
modelIdLabel: N?.apiModelIdLabel,
|
|
27994
|
+
endpointLabel: N?.apiEndpointLabel,
|
|
27995
|
+
requestExampleLabel: N?.apiRequestExampleLabel,
|
|
27996
|
+
responseSchemaLabel: N?.apiResponseSchemaLabel,
|
|
27997
|
+
copyAriaLabel: N?.copyCodeAriaLabel
|
|
27996
27998
|
}),
|
|
27997
|
-
|
|
27999
|
+
se === Pe.Tools && /* @__PURE__ */ R(bS, { tools: e.details?.tools })
|
|
27998
28000
|
]
|
|
27999
28001
|
})
|
|
28000
28002
|
] })
|
|
28001
28003
|
}),
|
|
28002
|
-
|
|
28004
|
+
le && /* @__PURE__ */ R(Dx, {
|
|
28003
28005
|
version: e.version,
|
|
28004
28006
|
hasExistingPublicationInFolder: B.hasExistingPublicationInFolder,
|
|
28005
|
-
isSubmitDisabled:
|
|
28006
|
-
isSubmitLoading:
|
|
28007
|
-
onCancel:
|
|
28008
|
-
onSubmit:
|
|
28007
|
+
isSubmitDisabled: ve.isSubmitDisabled,
|
|
28008
|
+
isSubmitLoading: ve.isSubmitLoading,
|
|
28009
|
+
onCancel: Oe,
|
|
28010
|
+
onSubmit: ke,
|
|
28009
28011
|
texts: T
|
|
28010
28012
|
})
|
|
28011
28013
|
]
|
|
@@ -28073,7 +28075,7 @@ var jx = {
|
|
|
28073
28075
|
}),
|
|
28074
28076
|
/* @__PURE__ */ R(yx, {
|
|
28075
28077
|
isStarred: h,
|
|
28076
|
-
size:
|
|
28078
|
+
size: ae.Small,
|
|
28077
28079
|
onClick: y,
|
|
28078
28080
|
ariaLabel: h ? u : l,
|
|
28079
28081
|
className: "self-end"
|
|
@@ -28112,20 +28114,20 @@ var jx = {
|
|
|
28112
28114
|
C,
|
|
28113
28115
|
N
|
|
28114
28116
|
]);
|
|
28115
|
-
let ie = u(/* @__PURE__ */ new Map()),
|
|
28117
|
+
let ie = u(/* @__PURE__ */ new Map()), ae = u(C), F = u(T), I = u(0), oe = u(!1);
|
|
28116
28118
|
return c(() => {
|
|
28117
28119
|
if (!M.current || s) return;
|
|
28118
28120
|
if (A.current && !oe.current) {
|
|
28119
28121
|
let e = A.current;
|
|
28120
28122
|
e.style.height = "", e.style.transition = "";
|
|
28121
28123
|
}
|
|
28122
|
-
let e =
|
|
28123
|
-
|
|
28124
|
+
let e = ae.current !== C, t = F.current !== T;
|
|
28125
|
+
ae.current = C, F.current = T;
|
|
28124
28126
|
let n = M.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
|
|
28125
28127
|
if (n.forEach((e) => {
|
|
28126
28128
|
r.set(e.dataset.cardId, DS(e));
|
|
28127
28129
|
}), !e && !t) {
|
|
28128
|
-
let e = j.current, t =
|
|
28130
|
+
let e = j.current, t = I.current, i = 0;
|
|
28129
28131
|
if (e) {
|
|
28130
28132
|
let t = e.style.height;
|
|
28131
28133
|
t && (e.style.height = ""), i = e.offsetHeight, t && (e.style.height = t);
|
|
@@ -28150,7 +28152,7 @@ var jx = {
|
|
|
28150
28152
|
}
|
|
28151
28153
|
if (ie.current = r, j.current) {
|
|
28152
28154
|
let e = j.current, t = e.style.height ? parseFloat(e.style.height) : NaN;
|
|
28153
|
-
|
|
28155
|
+
I.current = Number.isNaN(t) ? e.offsetHeight : t;
|
|
28154
28156
|
}
|
|
28155
28157
|
}, [
|
|
28156
28158
|
O,
|
|
@@ -28634,7 +28636,7 @@ var jx = {
|
|
|
28634
28636
|
"aria-pressed": r,
|
|
28635
28637
|
onClick: () => n(e),
|
|
28636
28638
|
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(
|
|
28639
|
+
children: e === He.Grid ? /* @__PURE__ */ R(B, { size: m.SM }) : /* @__PURE__ */ R(ve, { size: m.SM })
|
|
28638
28640
|
}, e);
|
|
28639
28641
|
})
|
|
28640
28642
|
}), f != null && f.length > 0 && /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R("div", {
|
|
@@ -28820,8 +28822,8 @@ var jx = {
|
|
|
28820
28822
|
onClick: n,
|
|
28821
28823
|
className: US.gradientBtn
|
|
28822
28824
|
});
|
|
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:
|
|
28825
|
+
}, 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 }) => {
|
|
28826
|
+
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
28827
|
{
|
|
28826
28828
|
value: Ie.RecentlyUpdated,
|
|
28827
28829
|
label: n?.sortRecentlyUpdatedLabel ?? "Recently Updated"
|
|
@@ -28834,156 +28836,156 @@ var jx = {
|
|
|
28834
28836
|
value: Ie.NameAZ,
|
|
28835
28837
|
label: n?.sortNameAZLabel ?? "Name A-Z"
|
|
28836
28838
|
}
|
|
28837
|
-
], [
|
|
28839
|
+
], [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
28840
|
let t = e;
|
|
28839
|
-
|
|
28840
|
-
}, [
|
|
28841
|
-
je(e), L?.(e);
|
|
28842
|
-
}, [L]), ze = a((e) => {
|
|
28841
|
+
je(t), L?.(t);
|
|
28842
|
+
}, [L]), Be = a((e) => {
|
|
28843
28843
|
Ne(e), le?.(e);
|
|
28844
|
-
}, [le]),
|
|
28844
|
+
}, [le]), Ve = a((e) => {
|
|
28845
|
+
Fe(e), de?.(e);
|
|
28846
|
+
}, [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
28847
|
o(() => {
|
|
28846
|
-
|
|
28847
|
-
}, [
|
|
28848
|
-
let [
|
|
28848
|
+
Qe((e) => e || Xe);
|
|
28849
|
+
}, [Xe]);
|
|
28850
|
+
let [$e, et] = d(t.length > 0);
|
|
28849
28851
|
o(() => {
|
|
28850
|
-
t.length > 0 &&
|
|
28851
|
-
}, [t.length,
|
|
28852
|
-
let
|
|
28853
|
-
|
|
28854
|
-
}, []),
|
|
28855
|
-
|
|
28852
|
+
t.length > 0 && !$e && et(!0);
|
|
28853
|
+
}, [t.length, $e]);
|
|
28854
|
+
let tt = a(() => {
|
|
28855
|
+
et(!1);
|
|
28856
|
+
}, []), 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) => {
|
|
28857
|
+
it(e), ct(void 0), dt.current = e.id;
|
|
28856
28858
|
let t = [];
|
|
28857
|
-
|
|
28859
|
+
D && (ut(!0), t.push((async () => {
|
|
28858
28860
|
try {
|
|
28859
|
-
let t = await
|
|
28860
|
-
|
|
28861
|
+
let t = await D(e);
|
|
28862
|
+
dt.current === e.id && ct(t);
|
|
28861
28863
|
} finally {
|
|
28862
|
-
|
|
28864
|
+
dt.current === e.id && ut(!1);
|
|
28863
28865
|
}
|
|
28864
28866
|
})())), await Promise.all(t);
|
|
28865
|
-
}, [
|
|
28867
|
+
}, [D]), pt = u(null);
|
|
28866
28868
|
o(() => {
|
|
28867
|
-
if (!
|
|
28868
|
-
|
|
28869
|
+
if (!oe) {
|
|
28870
|
+
pt.current = null;
|
|
28869
28871
|
return;
|
|
28870
28872
|
}
|
|
28871
|
-
if (
|
|
28872
|
-
let t = e.find((e) => e.id ===
|
|
28873
|
-
t && (
|
|
28873
|
+
if (pt.current === oe) return;
|
|
28874
|
+
let t = e.find((e) => e.id === oe);
|
|
28875
|
+
t && (pt.current = oe, ft(t));
|
|
28874
28876
|
}, [
|
|
28875
|
-
|
|
28877
|
+
oe,
|
|
28876
28878
|
e,
|
|
28877
|
-
|
|
28879
|
+
ft
|
|
28878
28880
|
]);
|
|
28879
|
-
let
|
|
28880
|
-
await
|
|
28881
|
-
}, [
|
|
28882
|
-
await
|
|
28883
|
-
}, [
|
|
28884
|
-
|
|
28885
|
-
|
|
28881
|
+
let mt = a(async (e, t) => {
|
|
28882
|
+
await ee?.(e, t), await ft(e);
|
|
28883
|
+
}, [ee, ft]), ht = a(async (e, t) => {
|
|
28884
|
+
await A?.(e, t), await ft(e);
|
|
28885
|
+
}, [A, ft]), gt = a(() => {
|
|
28886
|
+
ot(!1), dt.current = null, setTimeout(() => {
|
|
28887
|
+
it(null), ct(void 0), ut(!1);
|
|
28886
28888
|
}, 300);
|
|
28887
|
-
}, []),
|
|
28888
|
-
if (
|
|
28889
|
-
if (
|
|
28890
|
-
let { credentials: e, ...t } =
|
|
28889
|
+
}, []), _t = l(() => {
|
|
28890
|
+
if (rt == null) return null;
|
|
28891
|
+
if (st == null) return rt;
|
|
28892
|
+
let { credentials: e, ...t } = st;
|
|
28891
28893
|
return {
|
|
28892
|
-
...
|
|
28894
|
+
...rt,
|
|
28893
28895
|
details: t,
|
|
28894
|
-
credentials: e ??
|
|
28896
|
+
credentials: e ?? rt.credentials
|
|
28895
28897
|
};
|
|
28896
|
-
}, [
|
|
28898
|
+
}, [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
28899
|
o(() => {
|
|
28898
|
-
if (
|
|
28899
|
-
let e = requestAnimationFrame(() =>
|
|
28900
|
+
if (rt == null) return;
|
|
28901
|
+
let e = requestAnimationFrame(() => ot(!0));
|
|
28900
28902
|
return () => cancelAnimationFrame(e);
|
|
28901
|
-
}, [
|
|
28902
|
-
let
|
|
28903
|
-
e === He.List &&
|
|
28904
|
-
}, []),
|
|
28905
|
-
noResultsTitle:
|
|
28906
|
-
featuredLabel:
|
|
28907
|
-
credentialsBadgeLoggedOutLabel:
|
|
28903
|
+
}, [rt]);
|
|
28904
|
+
let wt = a((e) => {
|
|
28905
|
+
e === He.List && ke(!0), De(e);
|
|
28906
|
+
}, []), Tt = we ? ve(we) : "No items", Et = l(() => ({
|
|
28907
|
+
noResultsTitle: Tt,
|
|
28908
|
+
featuredLabel: ye,
|
|
28909
|
+
credentialsBadgeLoggedOutLabel: I?.credentialsBadgeLoggedOutLabel
|
|
28908
28910
|
}), [
|
|
28909
|
-
|
|
28910
|
-
|
|
28911
|
-
|
|
28911
|
+
Tt,
|
|
28912
|
+
ye,
|
|
28913
|
+
I?.credentialsBadgeLoggedOutLabel
|
|
28912
28914
|
]);
|
|
28913
|
-
return
|
|
28915
|
+
return ae ? /* @__PURE__ */ R("div", {
|
|
28914
28916
|
className: "flex size-full min-h-0 flex-1 items-center justify-center",
|
|
28915
28917
|
children: /* @__PURE__ */ R(ne, {})
|
|
28916
28918
|
}) : /* @__PURE__ */ z("section", {
|
|
28917
|
-
"aria-label":
|
|
28919
|
+
"aria-label": Se,
|
|
28918
28920
|
className: G("flex size-full min-h-0 flex-1 flex-col", HS.root),
|
|
28919
|
-
style:
|
|
28921
|
+
style: pe,
|
|
28920
28922
|
children: [
|
|
28921
|
-
(!
|
|
28923
|
+
(!te || !N) && /* @__PURE__ */ R("div", {
|
|
28922
28924
|
className: G("shrink-0", HS.heading),
|
|
28923
28925
|
children: /* @__PURE__ */ z("div", {
|
|
28924
28926
|
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:
|
|
28927
|
+
children: [!te && /* @__PURE__ */ R("h1", {
|
|
28928
|
+
className: G(fe?.pageHeadingFontClassName ?? "dial-display2-text", HS.headingTitle),
|
|
28929
|
+
children: me
|
|
28930
|
+
}), !N && /* @__PURE__ */ R(WS, {
|
|
28931
|
+
label: he,
|
|
28932
|
+
options: M,
|
|
28933
|
+
onClick: j
|
|
28932
28934
|
})]
|
|
28933
28935
|
})
|
|
28934
28936
|
}),
|
|
28935
28937
|
/* @__PURE__ */ z("div", {
|
|
28936
28938
|
className: "flex min-h-0 flex-1 flex-col overflow-auto",
|
|
28937
28939
|
children: [
|
|
28938
|
-
|
|
28940
|
+
$e && /* @__PURE__ */ R("div", {
|
|
28939
28941
|
className: "w-full px-8",
|
|
28940
28942
|
children: /* @__PURE__ */ R(OS, {
|
|
28941
28943
|
items: t,
|
|
28942
28944
|
totalCount: t.length,
|
|
28943
|
-
title:
|
|
28945
|
+
title: ge,
|
|
28944
28946
|
onToggleFavorite: r,
|
|
28945
|
-
onItemClick:
|
|
28946
|
-
isLeaving:
|
|
28947
|
-
onExitComplete:
|
|
28948
|
-
selectedItemId:
|
|
28949
|
-
credentialsBadgeLoggedOutLabel:
|
|
28947
|
+
onItemClick: ie ?? ft,
|
|
28948
|
+
isLeaving: nt,
|
|
28949
|
+
onExitComplete: tt,
|
|
28950
|
+
selectedItemId: re,
|
|
28951
|
+
credentialsBadgeLoggedOutLabel: I?.credentialsBadgeLoggedOutLabel
|
|
28950
28952
|
})
|
|
28951
28953
|
}),
|
|
28952
28954
|
/* @__PURE__ */ R("div", {
|
|
28953
28955
|
className: "w-full px-4 pt-6",
|
|
28954
28956
|
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:
|
|
28957
|
+
totalCount: xt.length,
|
|
28958
|
+
viewMode: Ee,
|
|
28959
|
+
onViewModeChange: wt,
|
|
28960
|
+
sortKey: V,
|
|
28961
|
+
onSortChange: ze,
|
|
28962
|
+
query: we,
|
|
28963
|
+
onQueryChange: Te,
|
|
28964
|
+
title: _e,
|
|
28965
|
+
searchPlaceholder: B,
|
|
28966
|
+
gridViewLabel: be,
|
|
28967
|
+
listViewLabel: xe,
|
|
28968
|
+
sortOptions: Ce,
|
|
28969
|
+
filters: Le,
|
|
28970
|
+
onFiltersChange: Be,
|
|
28971
|
+
filterValues: We,
|
|
28972
|
+
isMyAppsActive: Re,
|
|
28973
|
+
onMyAppsChange: Ve,
|
|
28972
28974
|
filterFromLabel: n?.filterFromLabel,
|
|
28973
28975
|
filterMyAppsLabel: n?.filterMyAppsLabel,
|
|
28974
28976
|
filterTopicsLabel: n?.filterTopicsLabel
|
|
28975
28977
|
})
|
|
28976
28978
|
}),
|
|
28977
|
-
|
|
28979
|
+
Ye.length > 0 && /* @__PURE__ */ R("div", {
|
|
28978
28980
|
className: "px-8",
|
|
28979
28981
|
children: /* @__PURE__ */ R(qb, {
|
|
28980
|
-
tabs:
|
|
28982
|
+
tabs: Ye.map((e) => ({
|
|
28981
28983
|
id: e.id,
|
|
28982
28984
|
label: typeof e.label == "string" ? e.label : String(e.label),
|
|
28983
|
-
count:
|
|
28985
|
+
count: xt.filter((t) => t.type === e.id).length
|
|
28984
28986
|
})),
|
|
28985
|
-
activeTabId:
|
|
28986
|
-
onTabChange:
|
|
28987
|
+
activeTabId: Ze,
|
|
28988
|
+
onTabChange: Qe,
|
|
28987
28989
|
styles: { colors: {
|
|
28988
28990
|
activeTabClassName: "text-catalog-tab-active",
|
|
28989
28991
|
inactiveTabClassName: "text-catalog-tab-inactive hover:text-catalog-tab-hover border-transparent",
|
|
@@ -28993,40 +28995,40 @@ var jx = {
|
|
|
28993
28995
|
})
|
|
28994
28996
|
}),
|
|
28995
28997
|
/* @__PURE__ */ z("div", {
|
|
28996
|
-
className: G(
|
|
28998
|
+
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
28999
|
children: [/* @__PURE__ */ R("div", {
|
|
28998
|
-
className: G(
|
|
29000
|
+
className: G(St.length > 0 ? "pb-8" : "size-full flex-1", Ee !== He.Grid && "hidden"),
|
|
28999
29001
|
children: /* @__PURE__ */ R(Tx, {
|
|
29000
|
-
items:
|
|
29001
|
-
query:
|
|
29002
|
+
items: St,
|
|
29003
|
+
query: we,
|
|
29002
29004
|
onToggleFavorite: r,
|
|
29003
|
-
onItemClick:
|
|
29004
|
-
titles:
|
|
29005
|
-
selectedItemId:
|
|
29005
|
+
onItemClick: ie ?? ft,
|
|
29006
|
+
titles: Et,
|
|
29007
|
+
selectedItemId: re
|
|
29006
29008
|
})
|
|
29007
|
-
}),
|
|
29008
|
-
className: G("pb-8",
|
|
29009
|
+
}), Oe && /* @__PURE__ */ R("div", {
|
|
29010
|
+
className: G("pb-8", Ee !== He.List && "hidden", St.length === 0 && "h-full"),
|
|
29009
29011
|
children: /* @__PURE__ */ R(NS, {
|
|
29010
|
-
items:
|
|
29011
|
-
query:
|
|
29012
|
-
ariaLabel:
|
|
29013
|
-
emptyStateTitle:
|
|
29012
|
+
items: St,
|
|
29013
|
+
query: we,
|
|
29014
|
+
ariaLabel: Se,
|
|
29015
|
+
emptyStateTitle: Tt,
|
|
29014
29016
|
onToggleFavorite: r,
|
|
29015
|
-
onItemClick:
|
|
29017
|
+
onItemClick: ie ?? ft,
|
|
29016
29018
|
stickyHeaderTop: 0,
|
|
29017
|
-
selectedItemId:
|
|
29018
|
-
credentialsBadgeLoggedOutLabel:
|
|
29019
|
+
selectedItemId: re,
|
|
29020
|
+
credentialsBadgeLoggedOutLabel: I?.credentialsBadgeLoggedOutLabel
|
|
29019
29021
|
})
|
|
29020
29022
|
})]
|
|
29021
29023
|
})
|
|
29022
29024
|
]
|
|
29023
29025
|
}),
|
|
29024
|
-
|
|
29025
|
-
item:
|
|
29026
|
-
isOpen:
|
|
29027
|
-
isStarred:
|
|
29028
|
-
isDetailsLoading:
|
|
29029
|
-
onClose:
|
|
29026
|
+
_t != null && /* @__PURE__ */ R(CS, {
|
|
29027
|
+
item: _t,
|
|
29028
|
+
isOpen: at,
|
|
29029
|
+
isStarred: Ct,
|
|
29030
|
+
isDetailsLoading: lt,
|
|
29031
|
+
onClose: gt,
|
|
29030
29032
|
onToggleFavorite: r,
|
|
29031
29033
|
onUseInChat: i,
|
|
29032
29034
|
isPrimaryActionVisible: s,
|
|
@@ -29043,13 +29045,14 @@ var jx = {
|
|
|
29043
29045
|
onCreatePublishFolder: x,
|
|
29044
29046
|
publishTexts: S,
|
|
29045
29047
|
shareOverlay: C,
|
|
29046
|
-
|
|
29047
|
-
|
|
29048
|
-
|
|
29049
|
-
|
|
29050
|
-
|
|
29051
|
-
|
|
29052
|
-
|
|
29048
|
+
isShareVisible: w,
|
|
29049
|
+
connectOverlay: T,
|
|
29050
|
+
isConnectVisible: E,
|
|
29051
|
+
onEdit: O,
|
|
29052
|
+
onDelete: k,
|
|
29053
|
+
onLogin: mt,
|
|
29054
|
+
onLogout: ht,
|
|
29055
|
+
texts: I
|
|
29053
29056
|
})
|
|
29054
29057
|
]
|
|
29055
29058
|
});
|