@epam/ai-dial-catalog 1.0.0-dev.500 → 1.0.0-dev.502
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 +0 -2
- package/components/Details/Header/Header.d.ts.map +1 -1
- package/components/Details/Header/ShareButton/ShareButton.d.ts +5 -11
- package/components/Details/Header/ShareButton/ShareButton.d.ts.map +1 -1
- package/components/PublishPanel/StandalonePublishPanel.d.ts +1 -1
- package/index.js +1199 -1241
- package/models/catalog-props.d.ts +0 -7
- package/models/catalog-props.d.ts.map +1 -1
- package/models/item-details-props.d.ts +0 -19
- package/models/item-details-props.d.ts.map +1 -1
- package/package.json +4 -4
- package/utils/catalog-sort.d.ts.map +1 -1
package/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
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, DialNotification as j, DialPrimaryButton as M, DialProgressBar as
|
|
3
|
-
import { Fragment as
|
|
4
|
-
import { IconCheck 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, DialNotification as j, DialPrimaryButton as M, DialProgressBar as te, DialProgressBarSize as N, DialSkeleton as P, DialSkeletonAvatarShape as ne, DialSpinner as re, DialTag as ie, DialTooltip as ae, ElementSize as F, NotificationVariant as I, mergeClasses as oe } from "@epam/ai-dial-ui-kit";
|
|
3
|
+
import { Fragment as se, jsx as L, jsxs as R } 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, IconKey as ge, IconLayoutGrid as _e, IconLayoutList as z, IconLogin as ve, IconLogout as ye, IconMessageCircle as be, IconPencil as xe, IconPlayerPlayFilled as Se, IconPlugConnected as Ce, IconPlus as we, IconSearch as Te, IconShare as Ee, IconStar as De, IconStarFilled as Oe, IconTrash as ke, IconX as Ae, IconZoomCancel as je } from "@tabler/icons-react";
|
|
5
5
|
//#region src/types/code-language.ts
|
|
6
|
-
var
|
|
6
|
+
var Me = /* @__PURE__ */ function(e) {
|
|
7
7
|
return e.Python = "python", e.Curl = "curl", e.JavaScript = "javascript", e;
|
|
8
|
-
}({}), Me = /* @__PURE__ */ function(e) {
|
|
9
|
-
return e.About = "about", e.Overview = "overview", e.Pricing = "pricing", e.Limits = "limits", e.Api = "api", e.Tools = "tools", e;
|
|
10
8
|
}({}), Ne = /* @__PURE__ */ function(e) {
|
|
9
|
+
return e.About = "about", e.Overview = "overview", e.Pricing = "pricing", e.Limits = "limits", e.Api = "api", e.Tools = "tools", e;
|
|
10
|
+
}({}), Pe = /* @__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
|
+
}({}), B = /* @__PURE__ */ function(e) {
|
|
13
13
|
return e.Model = "MODEL", e.Application = "APPLICATION", e.Agent = "AGENT", e.Toolset = "TOOLSET", e.Guardrail = "GUARDRAIL", e.Skill = "SKILL", e.Mcp = "MCP", e;
|
|
14
|
-
}({}), Pe = /* @__PURE__ */ function(e) {
|
|
15
|
-
return e.RecentlyUpdated = "recently-updated", e.Newest = "newest", e.NameAZ = "name-az", e;
|
|
16
14
|
}({}), Fe = /* @__PURE__ */ function(e) {
|
|
17
|
-
return e.
|
|
15
|
+
return e.RecentlyUpdated = "recently-updated", e.Newest = "newest", e.NameAZ = "name-az", e;
|
|
18
16
|
}({}), Ie = /* @__PURE__ */ function(e) {
|
|
19
|
-
return e.
|
|
17
|
+
return e.None = "NONE", e.ApiKey = "API_KEY", e.OAuth = "OAUTH", e;
|
|
20
18
|
}({}), Le = /* @__PURE__ */ function(e) {
|
|
21
|
-
return e.
|
|
19
|
+
return e.SignedIn = "SIGNED_IN", e.SignedOut = "SIGNED_OUT", e.Failed = "FAILED", e;
|
|
22
20
|
}({}), Re = /* @__PURE__ */ function(e) {
|
|
21
|
+
return e.User = "USER", e.Global = "GLOBAL", e;
|
|
22
|
+
}({}), V = /* @__PURE__ */ function(e) {
|
|
23
23
|
return e.ManageCredentials = "MANAGE_CREDENTIALS", e.LoginWithMyCreds = "LOGIN_WITH_MY_CREDS", e.LogIn = "LOG_IN", e.LogOut = "LOG_OUT", e;
|
|
24
24
|
}({}), ze = /* @__PURE__ */ function(e) {
|
|
25
25
|
return e.LoggedOut = "LOGGED_OUT", e;
|
|
@@ -39,7 +39,7 @@ var je = /* @__PURE__ */ function(e) {
|
|
|
39
39
|
let n = t.trim().toLowerCase(), r = e;
|
|
40
40
|
return n && (r = r.filter((e) => e.name.toLowerCase().includes(n) || e.description.toLowerCase().includes(n) || e.type.toLowerCase().includes(n))), r;
|
|
41
41
|
}, Ke = (e, t) => {
|
|
42
|
-
let n = e.filter((e) => e.isFeatured), r = e.filter((e) => !e.isFeatured), i = (e) => t ===
|
|
42
|
+
let n = e.filter((e) => e.isFeatured), r = e.filter((e) => !e.isFeatured), i = (e) => t === Fe.NameAZ ? [...e].sort((e, t) => e.name.trim().toLowerCase().localeCompare(t.name.trim().toLowerCase())) : t === Fe.Newest ? [...e].sort((e, t) => !e.updatedAt && !t.updatedAt ? 0 : e.updatedAt ? t.updatedAt ? t.updatedAt - e.updatedAt : -1 : 1) : e;
|
|
43
43
|
return [...i(n), ...i(r)];
|
|
44
44
|
}, qe = () => {
|
|
45
45
|
let [e, t] = d(() => window.innerWidth);
|
|
@@ -193,14 +193,14 @@ var je = /* @__PURE__ */ function(e) {
|
|
|
193
193
|
}
|
|
194
194
|
};
|
|
195
195
|
return (r(e)?.children ?? []).map((e) => e.name);
|
|
196
|
-
}, st = (e) => e ===
|
|
196
|
+
}, st = (e) => e === Le.SignedIn, ct = (e) => {
|
|
197
197
|
let t = st(e.userStatus), n = st(e.globalStatus);
|
|
198
|
-
return e.isManageableByAdmin ?
|
|
198
|
+
return e.isManageableByAdmin ? V.ManageCredentials : e.isPublic && !t ? V.LoginWithMyCreds : !t && !n ? V.LogIn : V.LogOut;
|
|
199
199
|
}, lt = (e) => {
|
|
200
|
-
if (e.authenticationType ===
|
|
200
|
+
if (e.authenticationType === Ie.None) return;
|
|
201
201
|
let t = st(e.userStatus), n = st(e.globalStatus);
|
|
202
202
|
return !t && !n ? ze.LoggedOut : void 0;
|
|
203
|
-
}, ut = (e) => st(e.userStatus) ?
|
|
203
|
+
}, ut = (e) => st(e.userStatus) ? Re.User : Re.Global, dt = Object.create, ft = Object.defineProperty, pt = Object.getOwnPropertyDescriptor, mt = Object.getOwnPropertyNames, ht = Object.getPrototypeOf, gt = Object.prototype.hasOwnProperty, _t = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), vt = (e, t) => {
|
|
204
204
|
let n = {};
|
|
205
205
|
for (var r in e) ft(n, r, {
|
|
206
206
|
get: e[r],
|
|
@@ -593,7 +593,7 @@ var wt = /* @__PURE__ */ bt((/* @__PURE__ */ _t(((e, t) => {
|
|
|
593
593
|
"max",
|
|
594
594
|
"fit",
|
|
595
595
|
...w()
|
|
596
|
-
],
|
|
596
|
+
], te = () => [
|
|
597
597
|
mn,
|
|
598
598
|
"screen",
|
|
599
599
|
"full",
|
|
@@ -604,7 +604,7 @@ var wt = /* @__PURE__ */ bt((/* @__PURE__ */ _t(((e, t) => {
|
|
|
604
604
|
"max",
|
|
605
605
|
"fit",
|
|
606
606
|
...w()
|
|
607
|
-
],
|
|
607
|
+
], N = () => [
|
|
608
608
|
mn,
|
|
609
609
|
"screen",
|
|
610
610
|
"full",
|
|
@@ -616,50 +616,50 @@ var wt = /* @__PURE__ */ bt((/* @__PURE__ */ _t(((e, t) => {
|
|
|
616
616
|
"max",
|
|
617
617
|
"fit",
|
|
618
618
|
...w()
|
|
619
|
-
],
|
|
619
|
+
], P = () => [
|
|
620
620
|
e,
|
|
621
621
|
W,
|
|
622
622
|
U
|
|
623
|
-
],
|
|
623
|
+
], ne = () => [
|
|
624
624
|
...b(),
|
|
625
625
|
Fn,
|
|
626
626
|
An,
|
|
627
627
|
{ position: [W, U] }
|
|
628
|
-
],
|
|
628
|
+
], re = () => ["no-repeat", { repeat: [
|
|
629
629
|
"",
|
|
630
630
|
"x",
|
|
631
631
|
"y",
|
|
632
632
|
"space",
|
|
633
633
|
"round"
|
|
634
|
-
] }],
|
|
634
|
+
] }], ie = () => [
|
|
635
635
|
"auto",
|
|
636
636
|
"cover",
|
|
637
637
|
"contain",
|
|
638
638
|
In,
|
|
639
639
|
Tn,
|
|
640
640
|
{ size: [W, U] }
|
|
641
|
-
],
|
|
641
|
+
], ae = () => [
|
|
642
642
|
gn,
|
|
643
643
|
Nn,
|
|
644
644
|
En
|
|
645
|
-
],
|
|
645
|
+
], F = () => [
|
|
646
646
|
"",
|
|
647
647
|
"none",
|
|
648
648
|
"full",
|
|
649
649
|
l,
|
|
650
650
|
W,
|
|
651
651
|
U
|
|
652
|
-
],
|
|
652
|
+
], I = () => [
|
|
653
653
|
"",
|
|
654
654
|
H,
|
|
655
655
|
Nn,
|
|
656
656
|
En
|
|
657
|
-
],
|
|
657
|
+
], oe = () => [
|
|
658
658
|
"solid",
|
|
659
659
|
"dashed",
|
|
660
660
|
"dotted",
|
|
661
661
|
"double"
|
|
662
|
-
],
|
|
662
|
+
], se = () => [
|
|
663
663
|
"normal",
|
|
664
664
|
"multiply",
|
|
665
665
|
"screen",
|
|
@@ -676,32 +676,32 @@ var wt = /* @__PURE__ */ bt((/* @__PURE__ */ _t(((e, t) => {
|
|
|
676
676
|
"saturation",
|
|
677
677
|
"color",
|
|
678
678
|
"luminosity"
|
|
679
|
-
],
|
|
679
|
+
], L = () => [
|
|
680
680
|
H,
|
|
681
681
|
gn,
|
|
682
682
|
Fn,
|
|
683
683
|
An
|
|
684
|
-
],
|
|
684
|
+
], R = () => [
|
|
685
685
|
"",
|
|
686
686
|
"none",
|
|
687
687
|
m,
|
|
688
688
|
W,
|
|
689
689
|
U
|
|
690
|
-
],
|
|
690
|
+
], ce = () => [
|
|
691
691
|
"none",
|
|
692
692
|
H,
|
|
693
693
|
W,
|
|
694
694
|
U
|
|
695
|
-
],
|
|
695
|
+
], le = () => [
|
|
696
696
|
"none",
|
|
697
697
|
H,
|
|
698
698
|
W,
|
|
699
699
|
U
|
|
700
|
-
],
|
|
700
|
+
], ue = () => [
|
|
701
701
|
H,
|
|
702
702
|
W,
|
|
703
703
|
U
|
|
704
|
-
],
|
|
704
|
+
], de = () => [
|
|
705
705
|
mn,
|
|
706
706
|
"full",
|
|
707
707
|
...w()
|
|
@@ -998,12 +998,12 @@ var wt = /* @__PURE__ */ bt((/* @__PURE__ */ _t(((e, t) => {
|
|
|
998
998
|
"space-y": [{ "space-y": w() }],
|
|
999
999
|
"space-y-reverse": ["space-y-reverse"],
|
|
1000
1000
|
size: [{ size: M() }],
|
|
1001
|
-
"inline-size": [{ inline: ["auto", ...
|
|
1002
|
-
"min-inline-size": [{ "min-inline": ["auto", ...
|
|
1003
|
-
"max-inline-size": [{ "max-inline": ["none", ...
|
|
1004
|
-
"block-size": [{ block: ["auto", ...
|
|
1005
|
-
"min-block-size": [{ "min-block": ["auto", ...
|
|
1006
|
-
"max-block-size": [{ "max-block": ["none", ...
|
|
1001
|
+
"inline-size": [{ inline: ["auto", ...te()] }],
|
|
1002
|
+
"min-inline-size": [{ "min-inline": ["auto", ...te()] }],
|
|
1003
|
+
"max-inline-size": [{ "max-inline": ["none", ...te()] }],
|
|
1004
|
+
"block-size": [{ block: ["auto", ...N()] }],
|
|
1005
|
+
"min-block-size": [{ "min-block": ["auto", ...N()] }],
|
|
1006
|
+
"max-block-size": [{ "max-block": ["none", ...N()] }],
|
|
1007
1007
|
w: [{ w: [
|
|
1008
1008
|
s,
|
|
1009
1009
|
"screen",
|
|
@@ -1110,15 +1110,15 @@ var wt = /* @__PURE__ */ bt((/* @__PURE__ */ _t(((e, t) => {
|
|
|
1110
1110
|
"start",
|
|
1111
1111
|
"end"
|
|
1112
1112
|
] }],
|
|
1113
|
-
"placeholder-color": [{ placeholder:
|
|
1114
|
-
"text-color": [{ text:
|
|
1113
|
+
"placeholder-color": [{ placeholder: P() }],
|
|
1114
|
+
"text-color": [{ text: P() }],
|
|
1115
1115
|
"text-decoration": [
|
|
1116
1116
|
"underline",
|
|
1117
1117
|
"overline",
|
|
1118
1118
|
"line-through",
|
|
1119
1119
|
"no-underline"
|
|
1120
1120
|
],
|
|
1121
|
-
"text-decoration-style": [{ decoration: [...
|
|
1121
|
+
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
|
|
1122
1122
|
"text-decoration-thickness": [{ decoration: [
|
|
1123
1123
|
H,
|
|
1124
1124
|
"from-font",
|
|
@@ -1126,7 +1126,7 @@ var wt = /* @__PURE__ */ bt((/* @__PURE__ */ _t(((e, t) => {
|
|
|
1126
1126
|
W,
|
|
1127
1127
|
En
|
|
1128
1128
|
] }],
|
|
1129
|
-
"text-decoration-color": [{ decoration:
|
|
1129
|
+
"text-decoration-color": [{ decoration: P() }],
|
|
1130
1130
|
"underline-offset": [{ "underline-offset": [
|
|
1131
1131
|
H,
|
|
1132
1132
|
"auto",
|
|
@@ -1213,9 +1213,9 @@ var wt = /* @__PURE__ */ bt((/* @__PURE__ */ _t(((e, t) => {
|
|
|
1213
1213
|
"padding",
|
|
1214
1214
|
"content"
|
|
1215
1215
|
] }],
|
|
1216
|
-
"bg-position": [{ bg:
|
|
1217
|
-
"bg-repeat": [{ bg:
|
|
1218
|
-
"bg-size": [{ bg:
|
|
1216
|
+
"bg-position": [{ bg: ne() }],
|
|
1217
|
+
"bg-repeat": [{ bg: re() }],
|
|
1218
|
+
"bg-size": [{ bg: ie() }],
|
|
1219
1219
|
"bg-image": [{ bg: [
|
|
1220
1220
|
"none",
|
|
1221
1221
|
{
|
|
@@ -1248,67 +1248,67 @@ var wt = /* @__PURE__ */ bt((/* @__PURE__ */ _t(((e, t) => {
|
|
|
1248
1248
|
Ln,
|
|
1249
1249
|
jn
|
|
1250
1250
|
] }],
|
|
1251
|
-
"bg-color": [{ bg:
|
|
1252
|
-
"gradient-from-pos": [{ from:
|
|
1253
|
-
"gradient-via-pos": [{ via:
|
|
1254
|
-
"gradient-to-pos": [{ to:
|
|
1255
|
-
"gradient-from": [{ from:
|
|
1256
|
-
"gradient-via": [{ via:
|
|
1257
|
-
"gradient-to": [{ to:
|
|
1258
|
-
rounded: [{ rounded:
|
|
1259
|
-
"rounded-s": [{ "rounded-s":
|
|
1260
|
-
"rounded-e": [{ "rounded-e":
|
|
1261
|
-
"rounded-t": [{ "rounded-t":
|
|
1262
|
-
"rounded-r": [{ "rounded-r":
|
|
1263
|
-
"rounded-b": [{ "rounded-b":
|
|
1264
|
-
"rounded-l": [{ "rounded-l":
|
|
1265
|
-
"rounded-ss": [{ "rounded-ss":
|
|
1266
|
-
"rounded-se": [{ "rounded-se":
|
|
1267
|
-
"rounded-ee": [{ "rounded-ee":
|
|
1268
|
-
"rounded-es": [{ "rounded-es":
|
|
1269
|
-
"rounded-tl": [{ "rounded-tl":
|
|
1270
|
-
"rounded-tr": [{ "rounded-tr":
|
|
1271
|
-
"rounded-br": [{ "rounded-br":
|
|
1272
|
-
"rounded-bl": [{ "rounded-bl":
|
|
1273
|
-
"border-w": [{ border:
|
|
1274
|
-
"border-w-x": [{ "border-x":
|
|
1275
|
-
"border-w-y": [{ "border-y":
|
|
1276
|
-
"border-w-s": [{ "border-s":
|
|
1277
|
-
"border-w-e": [{ "border-e":
|
|
1278
|
-
"border-w-bs": [{ "border-bs":
|
|
1279
|
-
"border-w-be": [{ "border-be":
|
|
1280
|
-
"border-w-t": [{ "border-t":
|
|
1281
|
-
"border-w-r": [{ "border-r":
|
|
1282
|
-
"border-w-b": [{ "border-b":
|
|
1283
|
-
"border-w-l": [{ "border-l":
|
|
1284
|
-
"divide-x": [{ "divide-x":
|
|
1251
|
+
"bg-color": [{ bg: P() }],
|
|
1252
|
+
"gradient-from-pos": [{ from: ae() }],
|
|
1253
|
+
"gradient-via-pos": [{ via: ae() }],
|
|
1254
|
+
"gradient-to-pos": [{ to: ae() }],
|
|
1255
|
+
"gradient-from": [{ from: P() }],
|
|
1256
|
+
"gradient-via": [{ via: P() }],
|
|
1257
|
+
"gradient-to": [{ to: P() }],
|
|
1258
|
+
rounded: [{ rounded: F() }],
|
|
1259
|
+
"rounded-s": [{ "rounded-s": F() }],
|
|
1260
|
+
"rounded-e": [{ "rounded-e": F() }],
|
|
1261
|
+
"rounded-t": [{ "rounded-t": F() }],
|
|
1262
|
+
"rounded-r": [{ "rounded-r": F() }],
|
|
1263
|
+
"rounded-b": [{ "rounded-b": F() }],
|
|
1264
|
+
"rounded-l": [{ "rounded-l": F() }],
|
|
1265
|
+
"rounded-ss": [{ "rounded-ss": F() }],
|
|
1266
|
+
"rounded-se": [{ "rounded-se": F() }],
|
|
1267
|
+
"rounded-ee": [{ "rounded-ee": F() }],
|
|
1268
|
+
"rounded-es": [{ "rounded-es": F() }],
|
|
1269
|
+
"rounded-tl": [{ "rounded-tl": F() }],
|
|
1270
|
+
"rounded-tr": [{ "rounded-tr": F() }],
|
|
1271
|
+
"rounded-br": [{ "rounded-br": F() }],
|
|
1272
|
+
"rounded-bl": [{ "rounded-bl": F() }],
|
|
1273
|
+
"border-w": [{ border: I() }],
|
|
1274
|
+
"border-w-x": [{ "border-x": I() }],
|
|
1275
|
+
"border-w-y": [{ "border-y": I() }],
|
|
1276
|
+
"border-w-s": [{ "border-s": I() }],
|
|
1277
|
+
"border-w-e": [{ "border-e": I() }],
|
|
1278
|
+
"border-w-bs": [{ "border-bs": I() }],
|
|
1279
|
+
"border-w-be": [{ "border-be": I() }],
|
|
1280
|
+
"border-w-t": [{ "border-t": I() }],
|
|
1281
|
+
"border-w-r": [{ "border-r": I() }],
|
|
1282
|
+
"border-w-b": [{ "border-b": I() }],
|
|
1283
|
+
"border-w-l": [{ "border-l": I() }],
|
|
1284
|
+
"divide-x": [{ "divide-x": I() }],
|
|
1285
1285
|
"divide-x-reverse": ["divide-x-reverse"],
|
|
1286
|
-
"divide-y": [{ "divide-y":
|
|
1286
|
+
"divide-y": [{ "divide-y": I() }],
|
|
1287
1287
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
1288
1288
|
"border-style": [{ border: [
|
|
1289
|
-
...
|
|
1289
|
+
...oe(),
|
|
1290
1290
|
"hidden",
|
|
1291
1291
|
"none"
|
|
1292
1292
|
] }],
|
|
1293
1293
|
"divide-style": [{ divide: [
|
|
1294
|
-
...
|
|
1294
|
+
...oe(),
|
|
1295
1295
|
"hidden",
|
|
1296
1296
|
"none"
|
|
1297
1297
|
] }],
|
|
1298
|
-
"border-color": [{ border:
|
|
1299
|
-
"border-color-x": [{ "border-x":
|
|
1300
|
-
"border-color-y": [{ "border-y":
|
|
1301
|
-
"border-color-s": [{ "border-s":
|
|
1302
|
-
"border-color-e": [{ "border-e":
|
|
1303
|
-
"border-color-bs": [{ "border-bs":
|
|
1304
|
-
"border-color-be": [{ "border-be":
|
|
1305
|
-
"border-color-t": [{ "border-t":
|
|
1306
|
-
"border-color-r": [{ "border-r":
|
|
1307
|
-
"border-color-b": [{ "border-b":
|
|
1308
|
-
"border-color-l": [{ "border-l":
|
|
1309
|
-
"divide-color": [{ divide:
|
|
1298
|
+
"border-color": [{ border: P() }],
|
|
1299
|
+
"border-color-x": [{ "border-x": P() }],
|
|
1300
|
+
"border-color-y": [{ "border-y": P() }],
|
|
1301
|
+
"border-color-s": [{ "border-s": P() }],
|
|
1302
|
+
"border-color-e": [{ "border-e": P() }],
|
|
1303
|
+
"border-color-bs": [{ "border-bs": P() }],
|
|
1304
|
+
"border-color-be": [{ "border-be": P() }],
|
|
1305
|
+
"border-color-t": [{ "border-t": P() }],
|
|
1306
|
+
"border-color-r": [{ "border-r": P() }],
|
|
1307
|
+
"border-color-b": [{ "border-b": P() }],
|
|
1308
|
+
"border-color-l": [{ "border-l": P() }],
|
|
1309
|
+
"divide-color": [{ divide: P() }],
|
|
1310
1310
|
"outline-style": [{ outline: [
|
|
1311
|
-
...
|
|
1311
|
+
...oe(),
|
|
1312
1312
|
"none",
|
|
1313
1313
|
"hidden"
|
|
1314
1314
|
] }],
|
|
@@ -1323,7 +1323,7 @@ var wt = /* @__PURE__ */ bt((/* @__PURE__ */ _t(((e, t) => {
|
|
|
1323
1323
|
Nn,
|
|
1324
1324
|
En
|
|
1325
1325
|
] }],
|
|
1326
|
-
"outline-color": [{ outline:
|
|
1326
|
+
"outline-color": [{ outline: P() }],
|
|
1327
1327
|
shadow: [{ shadow: [
|
|
1328
1328
|
"",
|
|
1329
1329
|
"none",
|
|
@@ -1331,39 +1331,39 @@ var wt = /* @__PURE__ */ bt((/* @__PURE__ */ _t(((e, t) => {
|
|
|
1331
1331
|
Rn,
|
|
1332
1332
|
Mn
|
|
1333
1333
|
] }],
|
|
1334
|
-
"shadow-color": [{ shadow:
|
|
1334
|
+
"shadow-color": [{ shadow: P() }],
|
|
1335
1335
|
"inset-shadow": [{ "inset-shadow": [
|
|
1336
1336
|
"none",
|
|
1337
1337
|
d,
|
|
1338
1338
|
Rn,
|
|
1339
1339
|
Mn
|
|
1340
1340
|
] }],
|
|
1341
|
-
"inset-shadow-color": [{ "inset-shadow":
|
|
1342
|
-
"ring-w": [{ ring:
|
|
1341
|
+
"inset-shadow-color": [{ "inset-shadow": P() }],
|
|
1342
|
+
"ring-w": [{ ring: I() }],
|
|
1343
1343
|
"ring-w-inset": ["ring-inset"],
|
|
1344
|
-
"ring-color": [{ ring:
|
|
1344
|
+
"ring-color": [{ ring: P() }],
|
|
1345
1345
|
"ring-offset-w": [{ "ring-offset": [H, En] }],
|
|
1346
|
-
"ring-offset-color": [{ "ring-offset":
|
|
1347
|
-
"inset-ring-w": [{ "inset-ring":
|
|
1348
|
-
"inset-ring-color": [{ "inset-ring":
|
|
1346
|
+
"ring-offset-color": [{ "ring-offset": P() }],
|
|
1347
|
+
"inset-ring-w": [{ "inset-ring": I() }],
|
|
1348
|
+
"inset-ring-color": [{ "inset-ring": P() }],
|
|
1349
1349
|
"text-shadow": [{ "text-shadow": [
|
|
1350
1350
|
"none",
|
|
1351
1351
|
f,
|
|
1352
1352
|
Rn,
|
|
1353
1353
|
Mn
|
|
1354
1354
|
] }],
|
|
1355
|
-
"text-shadow-color": [{ "text-shadow":
|
|
1355
|
+
"text-shadow-color": [{ "text-shadow": P() }],
|
|
1356
1356
|
opacity: [{ opacity: [
|
|
1357
1357
|
H,
|
|
1358
1358
|
W,
|
|
1359
1359
|
U
|
|
1360
1360
|
] }],
|
|
1361
1361
|
"mix-blend": [{ "mix-blend": [
|
|
1362
|
-
...
|
|
1362
|
+
...se(),
|
|
1363
1363
|
"plus-darker",
|
|
1364
1364
|
"plus-lighter"
|
|
1365
1365
|
] }],
|
|
1366
|
-
"bg-blend": [{ "bg-blend":
|
|
1366
|
+
"bg-blend": [{ "bg-blend": se() }],
|
|
1367
1367
|
"mask-clip": [{ "mask-clip": [
|
|
1368
1368
|
"border",
|
|
1369
1369
|
"padding",
|
|
@@ -1379,39 +1379,39 @@ var wt = /* @__PURE__ */ bt((/* @__PURE__ */ _t(((e, t) => {
|
|
|
1379
1379
|
"exclude"
|
|
1380
1380
|
] }],
|
|
1381
1381
|
"mask-image-linear-pos": [{ "mask-linear": [H] }],
|
|
1382
|
-
"mask-image-linear-from-pos": [{ "mask-linear-from":
|
|
1383
|
-
"mask-image-linear-to-pos": [{ "mask-linear-to":
|
|
1384
|
-
"mask-image-linear-from-color": [{ "mask-linear-from":
|
|
1385
|
-
"mask-image-linear-to-color": [{ "mask-linear-to":
|
|
1386
|
-
"mask-image-t-from-pos": [{ "mask-t-from":
|
|
1387
|
-
"mask-image-t-to-pos": [{ "mask-t-to":
|
|
1388
|
-
"mask-image-t-from-color": [{ "mask-t-from":
|
|
1389
|
-
"mask-image-t-to-color": [{ "mask-t-to":
|
|
1390
|
-
"mask-image-r-from-pos": [{ "mask-r-from":
|
|
1391
|
-
"mask-image-r-to-pos": [{ "mask-r-to":
|
|
1392
|
-
"mask-image-r-from-color": [{ "mask-r-from":
|
|
1393
|
-
"mask-image-r-to-color": [{ "mask-r-to":
|
|
1394
|
-
"mask-image-b-from-pos": [{ "mask-b-from":
|
|
1395
|
-
"mask-image-b-to-pos": [{ "mask-b-to":
|
|
1396
|
-
"mask-image-b-from-color": [{ "mask-b-from":
|
|
1397
|
-
"mask-image-b-to-color": [{ "mask-b-to":
|
|
1398
|
-
"mask-image-l-from-pos": [{ "mask-l-from":
|
|
1399
|
-
"mask-image-l-to-pos": [{ "mask-l-to":
|
|
1400
|
-
"mask-image-l-from-color": [{ "mask-l-from":
|
|
1401
|
-
"mask-image-l-to-color": [{ "mask-l-to":
|
|
1402
|
-
"mask-image-x-from-pos": [{ "mask-x-from":
|
|
1403
|
-
"mask-image-x-to-pos": [{ "mask-x-to":
|
|
1404
|
-
"mask-image-x-from-color": [{ "mask-x-from":
|
|
1405
|
-
"mask-image-x-to-color": [{ "mask-x-to":
|
|
1406
|
-
"mask-image-y-from-pos": [{ "mask-y-from":
|
|
1407
|
-
"mask-image-y-to-pos": [{ "mask-y-to":
|
|
1408
|
-
"mask-image-y-from-color": [{ "mask-y-from":
|
|
1409
|
-
"mask-image-y-to-color": [{ "mask-y-to":
|
|
1382
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": L() }],
|
|
1383
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": L() }],
|
|
1384
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": P() }],
|
|
1385
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": P() }],
|
|
1386
|
+
"mask-image-t-from-pos": [{ "mask-t-from": L() }],
|
|
1387
|
+
"mask-image-t-to-pos": [{ "mask-t-to": L() }],
|
|
1388
|
+
"mask-image-t-from-color": [{ "mask-t-from": P() }],
|
|
1389
|
+
"mask-image-t-to-color": [{ "mask-t-to": P() }],
|
|
1390
|
+
"mask-image-r-from-pos": [{ "mask-r-from": L() }],
|
|
1391
|
+
"mask-image-r-to-pos": [{ "mask-r-to": L() }],
|
|
1392
|
+
"mask-image-r-from-color": [{ "mask-r-from": P() }],
|
|
1393
|
+
"mask-image-r-to-color": [{ "mask-r-to": P() }],
|
|
1394
|
+
"mask-image-b-from-pos": [{ "mask-b-from": L() }],
|
|
1395
|
+
"mask-image-b-to-pos": [{ "mask-b-to": L() }],
|
|
1396
|
+
"mask-image-b-from-color": [{ "mask-b-from": P() }],
|
|
1397
|
+
"mask-image-b-to-color": [{ "mask-b-to": P() }],
|
|
1398
|
+
"mask-image-l-from-pos": [{ "mask-l-from": L() }],
|
|
1399
|
+
"mask-image-l-to-pos": [{ "mask-l-to": L() }],
|
|
1400
|
+
"mask-image-l-from-color": [{ "mask-l-from": P() }],
|
|
1401
|
+
"mask-image-l-to-color": [{ "mask-l-to": P() }],
|
|
1402
|
+
"mask-image-x-from-pos": [{ "mask-x-from": L() }],
|
|
1403
|
+
"mask-image-x-to-pos": [{ "mask-x-to": L() }],
|
|
1404
|
+
"mask-image-x-from-color": [{ "mask-x-from": P() }],
|
|
1405
|
+
"mask-image-x-to-color": [{ "mask-x-to": P() }],
|
|
1406
|
+
"mask-image-y-from-pos": [{ "mask-y-from": L() }],
|
|
1407
|
+
"mask-image-y-to-pos": [{ "mask-y-to": L() }],
|
|
1408
|
+
"mask-image-y-from-color": [{ "mask-y-from": P() }],
|
|
1409
|
+
"mask-image-y-to-color": [{ "mask-y-to": P() }],
|
|
1410
1410
|
"mask-image-radial": [{ "mask-radial": [W, U] }],
|
|
1411
|
-
"mask-image-radial-from-pos": [{ "mask-radial-from":
|
|
1412
|
-
"mask-image-radial-to-pos": [{ "mask-radial-to":
|
|
1413
|
-
"mask-image-radial-from-color": [{ "mask-radial-from":
|
|
1414
|
-
"mask-image-radial-to-color": [{ "mask-radial-to":
|
|
1411
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": L() }],
|
|
1412
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": L() }],
|
|
1413
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": P() }],
|
|
1414
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": P() }],
|
|
1415
1415
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
1416
1416
|
"mask-image-radial-size": [{ "mask-radial": [{
|
|
1417
1417
|
closest: ["side", "corner"],
|
|
@@ -1419,10 +1419,10 @@ var wt = /* @__PURE__ */ bt((/* @__PURE__ */ _t(((e, t) => {
|
|
|
1419
1419
|
}] }],
|
|
1420
1420
|
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
|
|
1421
1421
|
"mask-image-conic-pos": [{ "mask-conic": [H] }],
|
|
1422
|
-
"mask-image-conic-from-pos": [{ "mask-conic-from":
|
|
1423
|
-
"mask-image-conic-to-pos": [{ "mask-conic-to":
|
|
1424
|
-
"mask-image-conic-from-color": [{ "mask-conic-from":
|
|
1425
|
-
"mask-image-conic-to-color": [{ "mask-conic-to":
|
|
1422
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": L() }],
|
|
1423
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": L() }],
|
|
1424
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": P() }],
|
|
1425
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": P() }],
|
|
1426
1426
|
"mask-mode": [{ mask: [
|
|
1427
1427
|
"alpha",
|
|
1428
1428
|
"luminance",
|
|
@@ -1436,9 +1436,9 @@ var wt = /* @__PURE__ */ bt((/* @__PURE__ */ _t(((e, t) => {
|
|
|
1436
1436
|
"stroke",
|
|
1437
1437
|
"view"
|
|
1438
1438
|
] }],
|
|
1439
|
-
"mask-position": [{ mask:
|
|
1440
|
-
"mask-repeat": [{ mask:
|
|
1441
|
-
"mask-size": [{ mask:
|
|
1439
|
+
"mask-position": [{ mask: ne() }],
|
|
1440
|
+
"mask-repeat": [{ mask: re() }],
|
|
1441
|
+
"mask-size": [{ mask: ie() }],
|
|
1442
1442
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
1443
1443
|
"mask-image": [{ mask: [
|
|
1444
1444
|
"none",
|
|
@@ -1451,7 +1451,7 @@ var wt = /* @__PURE__ */ bt((/* @__PURE__ */ _t(((e, t) => {
|
|
|
1451
1451
|
W,
|
|
1452
1452
|
U
|
|
1453
1453
|
] }],
|
|
1454
|
-
blur: [{ blur:
|
|
1454
|
+
blur: [{ blur: R() }],
|
|
1455
1455
|
brightness: [{ brightness: [
|
|
1456
1456
|
H,
|
|
1457
1457
|
W,
|
|
@@ -1469,7 +1469,7 @@ var wt = /* @__PURE__ */ bt((/* @__PURE__ */ _t(((e, t) => {
|
|
|
1469
1469
|
Rn,
|
|
1470
1470
|
Mn
|
|
1471
1471
|
] }],
|
|
1472
|
-
"drop-shadow-color": [{ "drop-shadow":
|
|
1472
|
+
"drop-shadow-color": [{ "drop-shadow": P() }],
|
|
1473
1473
|
grayscale: [{ grayscale: [
|
|
1474
1474
|
"",
|
|
1475
1475
|
H,
|
|
@@ -1504,7 +1504,7 @@ var wt = /* @__PURE__ */ bt((/* @__PURE__ */ _t(((e, t) => {
|
|
|
1504
1504
|
W,
|
|
1505
1505
|
U
|
|
1506
1506
|
] }],
|
|
1507
|
-
"backdrop-blur": [{ "backdrop-blur":
|
|
1507
|
+
"backdrop-blur": [{ "backdrop-blur": R() }],
|
|
1508
1508
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
1509
1509
|
H,
|
|
1510
1510
|
W,
|
|
@@ -1597,18 +1597,18 @@ var wt = /* @__PURE__ */ bt((/* @__PURE__ */ _t(((e, t) => {
|
|
|
1597
1597
|
U
|
|
1598
1598
|
] }],
|
|
1599
1599
|
"perspective-origin": [{ "perspective-origin": x() }],
|
|
1600
|
-
rotate: [{ rotate:
|
|
1601
|
-
"rotate-x": [{ "rotate-x":
|
|
1602
|
-
"rotate-y": [{ "rotate-y":
|
|
1603
|
-
"rotate-z": [{ "rotate-z":
|
|
1604
|
-
scale: [{ scale:
|
|
1605
|
-
"scale-x": [{ "scale-x":
|
|
1606
|
-
"scale-y": [{ "scale-y":
|
|
1607
|
-
"scale-z": [{ "scale-z":
|
|
1600
|
+
rotate: [{ rotate: ce() }],
|
|
1601
|
+
"rotate-x": [{ "rotate-x": ce() }],
|
|
1602
|
+
"rotate-y": [{ "rotate-y": ce() }],
|
|
1603
|
+
"rotate-z": [{ "rotate-z": ce() }],
|
|
1604
|
+
scale: [{ scale: le() }],
|
|
1605
|
+
"scale-x": [{ "scale-x": le() }],
|
|
1606
|
+
"scale-y": [{ "scale-y": le() }],
|
|
1607
|
+
"scale-z": [{ "scale-z": le() }],
|
|
1608
1608
|
"scale-3d": ["scale-3d"],
|
|
1609
|
-
skew: [{ skew:
|
|
1610
|
-
"skew-x": [{ "skew-x":
|
|
1611
|
-
"skew-y": [{ "skew-y":
|
|
1609
|
+
skew: [{ skew: ue() }],
|
|
1610
|
+
"skew-x": [{ "skew-x": ue() }],
|
|
1611
|
+
"skew-y": [{ "skew-y": ue() }],
|
|
1612
1612
|
transform: [{ transform: [
|
|
1613
1613
|
W,
|
|
1614
1614
|
U,
|
|
@@ -1619,19 +1619,19 @@ var wt = /* @__PURE__ */ bt((/* @__PURE__ */ _t(((e, t) => {
|
|
|
1619
1619
|
] }],
|
|
1620
1620
|
"transform-origin": [{ origin: x() }],
|
|
1621
1621
|
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
1622
|
-
translate: [{ translate:
|
|
1623
|
-
"translate-x": [{ "translate-x":
|
|
1624
|
-
"translate-y": [{ "translate-y":
|
|
1625
|
-
"translate-z": [{ "translate-z":
|
|
1622
|
+
translate: [{ translate: de() }],
|
|
1623
|
+
"translate-x": [{ "translate-x": de() }],
|
|
1624
|
+
"translate-y": [{ "translate-y": de() }],
|
|
1625
|
+
"translate-z": [{ "translate-z": de() }],
|
|
1626
1626
|
"translate-none": ["translate-none"],
|
|
1627
1627
|
zoom: [{ zoom: [
|
|
1628
1628
|
hn,
|
|
1629
1629
|
W,
|
|
1630
1630
|
U
|
|
1631
1631
|
] }],
|
|
1632
|
-
accent: [{ accent:
|
|
1632
|
+
accent: [{ accent: P() }],
|
|
1633
1633
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
1634
|
-
"caret-color": [{ caret:
|
|
1634
|
+
"caret-color": [{ caret: P() }],
|
|
1635
1635
|
"color-scheme": [{ scheme: [
|
|
1636
1636
|
"normal",
|
|
1637
1637
|
"dark",
|
|
@@ -1689,8 +1689,8 @@ var wt = /* @__PURE__ */ bt((/* @__PURE__ */ _t(((e, t) => {
|
|
|
1689
1689
|
"x"
|
|
1690
1690
|
] }],
|
|
1691
1691
|
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
1692
|
-
"scrollbar-thumb-color": [{ "scrollbar-thumb":
|
|
1693
|
-
"scrollbar-track-color": [{ "scrollbar-track":
|
|
1692
|
+
"scrollbar-thumb-color": [{ "scrollbar-thumb": P() }],
|
|
1693
|
+
"scrollbar-track-color": [{ "scrollbar-track": P() }],
|
|
1694
1694
|
"scrollbar-gutter": [{ "scrollbar-gutter": [
|
|
1695
1695
|
"auto",
|
|
1696
1696
|
"stable",
|
|
@@ -1767,14 +1767,14 @@ var wt = /* @__PURE__ */ bt((/* @__PURE__ */ _t(((e, t) => {
|
|
|
1767
1767
|
W,
|
|
1768
1768
|
U
|
|
1769
1769
|
] }],
|
|
1770
|
-
fill: [{ fill: ["none", ...
|
|
1770
|
+
fill: [{ fill: ["none", ...P()] }],
|
|
1771
1771
|
"stroke-w": [{ stroke: [
|
|
1772
1772
|
H,
|
|
1773
1773
|
Nn,
|
|
1774
1774
|
En,
|
|
1775
1775
|
Dn
|
|
1776
1776
|
] }],
|
|
1777
|
-
stroke: [{ stroke: ["none", ...
|
|
1777
|
+
stroke: [{ stroke: ["none", ...P()] }],
|
|
1778
1778
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
1779
1779
|
},
|
|
1780
1780
|
conflictingClassGroups: {
|
|
@@ -2066,7 +2066,7 @@ var Qn = (e) => typeof navigator < "u" && navigator.clipboard?.writeText ? navig
|
|
|
2066
2066
|
return t.length === 0 ? "?" : t.length >= 2 ? (sr(t[0]) + sr(t[1])).toUpperCase() || "?" : t[0].replace(/[^\p{L}]/gu, "").slice(0, 2).toUpperCase() || "?";
|
|
2067
2067
|
}, lr = ({ name: e, size: t, className: n }) => {
|
|
2068
2068
|
let { background: r, foreground: i } = or(e), a = cr(e), o = Math.round(t * .4);
|
|
2069
|
-
return /* @__PURE__ */
|
|
2069
|
+
return /* @__PURE__ */ L("div", {
|
|
2070
2070
|
"aria-hidden": "true",
|
|
2071
2071
|
className: G("flex select-none items-center justify-center rounded-md", n),
|
|
2072
2072
|
style: {
|
|
@@ -2074,7 +2074,7 @@ var Qn = (e) => typeof navigator < "u" && navigator.clipboard?.writeText ? navig
|
|
|
2074
2074
|
height: t,
|
|
2075
2075
|
backgroundColor: r
|
|
2076
2076
|
},
|
|
2077
|
-
children: /* @__PURE__ */
|
|
2077
|
+
children: /* @__PURE__ */ L("span", {
|
|
2078
2078
|
className: "font-semibold leading-none",
|
|
2079
2079
|
style: {
|
|
2080
2080
|
fontSize: o,
|
|
@@ -2105,22 +2105,22 @@ var Qn = (e) => typeof navigator < "u" && navigator.clipboard?.writeText ? navig
|
|
|
2105
2105
|
let t = () => f(s);
|
|
2106
2106
|
return e.addEventListener("error", t), () => e.removeEventListener("error", t);
|
|
2107
2107
|
}, [s]);
|
|
2108
|
-
let m = s != null && l === s, h = /* @__PURE__ */
|
|
2108
|
+
let m = s != null && l === s, h = /* @__PURE__ */ L(lr, {
|
|
2109
2109
|
name: n,
|
|
2110
2110
|
size: t,
|
|
2111
2111
|
className: "shrink-0"
|
|
2112
|
-
}), g = /* @__PURE__ */
|
|
2112
|
+
}), g = /* @__PURE__ */ L("div", {
|
|
2113
2113
|
style: {
|
|
2114
2114
|
width: t,
|
|
2115
2115
|
height: t
|
|
2116
2116
|
},
|
|
2117
2117
|
className: G(ur.agentIconBadge, "shrink-0 overflow-hidden rounded-md", i),
|
|
2118
|
-
children: !s || m ? /* @__PURE__ */
|
|
2118
|
+
children: !s || m ? /* @__PURE__ */ L("div", {
|
|
2119
2119
|
className: "flex size-full items-center justify-center",
|
|
2120
2120
|
children: r ?? h
|
|
2121
|
-
}) : /* @__PURE__ */
|
|
2121
|
+
}) : /* @__PURE__ */ L("div", {
|
|
2122
2122
|
className: "size-full",
|
|
2123
|
-
children: /* @__PURE__ */
|
|
2123
|
+
children: /* @__PURE__ */ L("img", {
|
|
2124
2124
|
ref: p,
|
|
2125
2125
|
src: s,
|
|
2126
2126
|
alt: "",
|
|
@@ -2128,7 +2128,7 @@ var Qn = (e) => typeof navigator < "u" && navigator.clipboard?.writeText ? navig
|
|
|
2128
2128
|
})
|
|
2129
2129
|
})
|
|
2130
2130
|
});
|
|
2131
|
-
return a ? /* @__PURE__ */
|
|
2131
|
+
return a ? /* @__PURE__ */ L(ae, {
|
|
2132
2132
|
tooltip: a,
|
|
2133
2133
|
triggerClassName: "flex shrink-0",
|
|
2134
2134
|
children: g
|
|
@@ -2141,23 +2141,23 @@ var Qn = (e) => typeof navigator < "u" && navigator.clipboard?.writeText ? navig
|
|
|
2141
2141
|
6: "line-clamp-6"
|
|
2142
2142
|
}, mr = (e) => e === 1 ? "!truncate !whitespace-nowrap" : `${pr[e] ?? pr[2]} !whitespace-normal`, hr = ({ text: e, query: t, markClassName: n, className: r, maxLines: i = 2 }) => {
|
|
2143
2143
|
let a = mr(i);
|
|
2144
|
-
if (!t.trim()) return /* @__PURE__ */
|
|
2144
|
+
if (!t.trim()) return /* @__PURE__ */ L(S, {
|
|
2145
2145
|
className: G(a, r),
|
|
2146
2146
|
text: e
|
|
2147
2147
|
});
|
|
2148
|
-
let o = e.toLowerCase().indexOf(t.toLowerCase()), s = o === -1 ? e : /* @__PURE__ */
|
|
2148
|
+
let o = e.toLowerCase().indexOf(t.toLowerCase()), s = o === -1 ? e : /* @__PURE__ */ R(se, { children: [
|
|
2149
2149
|
e.slice(0, o),
|
|
2150
|
-
/* @__PURE__ */
|
|
2150
|
+
/* @__PURE__ */ L("mark", {
|
|
2151
2151
|
className: [fr.mark, n].filter(Boolean).join(" "),
|
|
2152
2152
|
children: e.slice(o, o + t.length)
|
|
2153
2153
|
}),
|
|
2154
2154
|
e.slice(o + t.length)
|
|
2155
2155
|
] });
|
|
2156
|
-
return /* @__PURE__ */
|
|
2156
|
+
return /* @__PURE__ */ L(S, {
|
|
2157
2157
|
className: G(a, r),
|
|
2158
2158
|
text: s
|
|
2159
2159
|
});
|
|
2160
|
-
}, gr = i(({ icon: e, label: t }) => /* @__PURE__ */
|
|
2160
|
+
}, gr = i(({ icon: e, label: t }) => /* @__PURE__ */ L(A, {
|
|
2161
2161
|
title: t,
|
|
2162
2162
|
icon: e
|
|
2163
2163
|
}));
|
|
@@ -4686,13 +4686,13 @@ function Mo(e, t, n) {
|
|
|
4686
4686
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(t), d;
|
|
4687
4687
|
}
|
|
4688
4688
|
function d(s) {
|
|
4689
|
-
return s === 33 ? (e.consume(s), f) : s === 47 ? (e.consume(s), a = !0, h) : s === 63 ? (e.consume(s), i = 3, r.interrupt ? t :
|
|
4689
|
+
return s === 33 ? (e.consume(s), f) : s === 47 ? (e.consume(s), a = !0, h) : s === 63 ? (e.consume(s), i = 3, r.interrupt ? t : P) : ua(s) ? (e.consume(s), o = String.fromCharCode(s), g) : n(s);
|
|
4690
4690
|
}
|
|
4691
4691
|
function f(a) {
|
|
4692
|
-
return a === 45 ? (e.consume(a), i = 2, p) : a === 91 ? (e.consume(a), i = 5, s = 0, m) : ua(a) ? (e.consume(a), i = 4, r.interrupt ? t :
|
|
4692
|
+
return a === 45 ? (e.consume(a), i = 2, p) : a === 91 ? (e.consume(a), i = 5, s = 0, m) : ua(a) ? (e.consume(a), i = 4, r.interrupt ? t : P) : n(a);
|
|
4693
4693
|
}
|
|
4694
4694
|
function p(i) {
|
|
4695
|
-
return i === 45 ? (e.consume(i), r.interrupt ? t :
|
|
4695
|
+
return i === 45 ? (e.consume(i), r.interrupt ? t : P) : n(i);
|
|
4696
4696
|
}
|
|
4697
4697
|
function m(i) {
|
|
4698
4698
|
return i === "CDATA[".charCodeAt(s++) ? (e.consume(i), s === 6 ? r.interrupt ? t : O : m) : n(i);
|
|
@@ -4741,10 +4741,10 @@ function Mo(e, t, n) {
|
|
|
4741
4741
|
return t === null || J(t) ? O(t) : X(t) ? (e.consume(t), D) : n(t);
|
|
4742
4742
|
}
|
|
4743
4743
|
function O(t) {
|
|
4744
|
-
return t === 45 && i === 2 ? (e.consume(t), j) : t === 60 && i === 1 ? (e.consume(t), M) : t === 62 && i === 4 ? (e.consume(t),
|
|
4744
|
+
return t === 45 && i === 2 ? (e.consume(t), j) : t === 60 && i === 1 ? (e.consume(t), M) : t === 62 && i === 4 ? (e.consume(t), ne) : t === 63 && i === 3 ? (e.consume(t), P) : t === 93 && i === 5 ? (e.consume(t), N) : J(t) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(ko, re, k)(t)) : t === null || J(t) ? (e.exit("htmlFlowData"), k(t)) : (e.consume(t), O);
|
|
4745
4745
|
}
|
|
4746
4746
|
function k(t) {
|
|
4747
|
-
return e.check(Ao, ee,
|
|
4747
|
+
return e.check(Ao, ee, re)(t);
|
|
4748
4748
|
}
|
|
4749
4749
|
function ee(t) {
|
|
4750
4750
|
return e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), A;
|
|
@@ -4753,28 +4753,28 @@ function Mo(e, t, n) {
|
|
|
4753
4753
|
return t === null || J(t) ? k(t) : (e.enter("htmlFlowData"), O(t));
|
|
4754
4754
|
}
|
|
4755
4755
|
function j(t) {
|
|
4756
|
-
return t === 45 ? (e.consume(t),
|
|
4756
|
+
return t === 45 ? (e.consume(t), P) : O(t);
|
|
4757
4757
|
}
|
|
4758
4758
|
function M(t) {
|
|
4759
|
-
return t === 47 ? (e.consume(t), o = "",
|
|
4759
|
+
return t === 47 ? (e.consume(t), o = "", te) : O(t);
|
|
4760
4760
|
}
|
|
4761
|
-
function
|
|
4761
|
+
function te(t) {
|
|
4762
4762
|
if (t === 62) {
|
|
4763
4763
|
let n = o.toLowerCase();
|
|
4764
|
-
return Do.includes(n) ? (e.consume(t),
|
|
4764
|
+
return Do.includes(n) ? (e.consume(t), ne) : O(t);
|
|
4765
4765
|
}
|
|
4766
|
-
return ua(t) && o.length < 8 ? (e.consume(t), o += String.fromCharCode(t),
|
|
4766
|
+
return ua(t) && o.length < 8 ? (e.consume(t), o += String.fromCharCode(t), te) : O(t);
|
|
4767
4767
|
}
|
|
4768
|
-
function
|
|
4769
|
-
return t === 93 ? (e.consume(t),
|
|
4768
|
+
function N(t) {
|
|
4769
|
+
return t === 93 ? (e.consume(t), P) : O(t);
|
|
4770
4770
|
}
|
|
4771
|
-
function
|
|
4772
|
-
return t === 62 ? (e.consume(t),
|
|
4771
|
+
function P(t) {
|
|
4772
|
+
return t === 62 ? (e.consume(t), ne) : t === 45 && i === 2 ? (e.consume(t), P) : O(t);
|
|
4773
4773
|
}
|
|
4774
|
-
function
|
|
4775
|
-
return t === null || J(t) ? (e.exit("htmlFlowData"),
|
|
4774
|
+
function ne(t) {
|
|
4775
|
+
return t === null || J(t) ? (e.exit("htmlFlowData"), re(t)) : (e.consume(t), ne);
|
|
4776
4776
|
}
|
|
4777
|
-
function
|
|
4777
|
+
function re(n) {
|
|
4778
4778
|
return e.exit("htmlFlow"), t(n);
|
|
4779
4779
|
}
|
|
4780
4780
|
}
|
|
@@ -4880,12 +4880,12 @@ function Io(e, t, n) {
|
|
|
4880
4880
|
return r === 62 ? (e.consume(r), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(r);
|
|
4881
4881
|
}
|
|
4882
4882
|
function M(t) {
|
|
4883
|
-
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"),
|
|
4883
|
+
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), te;
|
|
4884
4884
|
}
|
|
4885
|
-
function
|
|
4886
|
-
return X(t) ? Z(e,
|
|
4885
|
+
function te(t) {
|
|
4886
|
+
return X(t) ? Z(e, N, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(t) : N(t);
|
|
4887
4887
|
}
|
|
4888
|
-
function
|
|
4888
|
+
function N(t) {
|
|
4889
4889
|
return e.enter("htmlTextData"), o(t);
|
|
4890
4890
|
}
|
|
4891
4891
|
}
|
|
@@ -5633,60 +5633,60 @@ function Hs(e) {
|
|
|
5633
5633
|
"strong"
|
|
5634
5634
|
],
|
|
5635
5635
|
enter: {
|
|
5636
|
-
autolink: a(
|
|
5636
|
+
autolink: a(ge),
|
|
5637
5637
|
autolinkProtocol: T,
|
|
5638
5638
|
autolinkEmail: T,
|
|
5639
|
-
atxHeading: a(
|
|
5640
|
-
blockQuote: a(
|
|
5639
|
+
atxHeading: a(fe),
|
|
5640
|
+
blockQuote: a(R),
|
|
5641
5641
|
characterEscape: T,
|
|
5642
5642
|
characterReference: T,
|
|
5643
|
-
codeFenced: a(
|
|
5643
|
+
codeFenced: a(ce),
|
|
5644
5644
|
codeFencedFenceInfo: o,
|
|
5645
5645
|
codeFencedFenceMeta: o,
|
|
5646
|
-
codeIndented: a(
|
|
5647
|
-
codeText: a(
|
|
5646
|
+
codeIndented: a(ce, o),
|
|
5647
|
+
codeText: a(le, o),
|
|
5648
5648
|
codeTextData: T,
|
|
5649
5649
|
data: T,
|
|
5650
5650
|
codeFlowValue: T,
|
|
5651
|
-
definition: a(
|
|
5651
|
+
definition: a(ue),
|
|
5652
5652
|
definitionDestinationString: o,
|
|
5653
5653
|
definitionLabelString: o,
|
|
5654
5654
|
definitionTitleString: o,
|
|
5655
|
-
emphasis: a(
|
|
5656
|
-
hardBreakEscape: a(
|
|
5657
|
-
hardBreakTrailing: a(
|
|
5658
|
-
htmlFlow: a(
|
|
5655
|
+
emphasis: a(de),
|
|
5656
|
+
hardBreakEscape: a(pe),
|
|
5657
|
+
hardBreakTrailing: a(pe),
|
|
5658
|
+
htmlFlow: a(me, o),
|
|
5659
5659
|
htmlFlowData: T,
|
|
5660
|
-
htmlText: a(
|
|
5660
|
+
htmlText: a(me, o),
|
|
5661
5661
|
htmlTextData: T,
|
|
5662
|
-
image: a(
|
|
5662
|
+
image: a(he),
|
|
5663
5663
|
label: o,
|
|
5664
|
-
link: a(
|
|
5665
|
-
listItem: a(
|
|
5664
|
+
link: a(ge),
|
|
5665
|
+
listItem: a(z),
|
|
5666
5666
|
listItemValue: f,
|
|
5667
|
-
listOrdered: a(
|
|
5668
|
-
listUnordered: a(
|
|
5669
|
-
paragraph: a(
|
|
5670
|
-
reference:
|
|
5667
|
+
listOrdered: a(_e, d),
|
|
5668
|
+
listUnordered: a(_e),
|
|
5669
|
+
paragraph: a(ve),
|
|
5670
|
+
reference: ie,
|
|
5671
5671
|
referenceString: o,
|
|
5672
5672
|
resourceDestinationString: o,
|
|
5673
5673
|
resourceTitleString: o,
|
|
5674
|
-
setextHeading: a(
|
|
5675
|
-
strong: a(
|
|
5676
|
-
thematicBreak: a(
|
|
5674
|
+
setextHeading: a(fe),
|
|
5675
|
+
strong: a(ye),
|
|
5676
|
+
thematicBreak: a(xe)
|
|
5677
5677
|
},
|
|
5678
5678
|
exit: {
|
|
5679
5679
|
atxHeading: c(),
|
|
5680
5680
|
atxHeadingSequence: x,
|
|
5681
5681
|
autolink: c(),
|
|
5682
|
-
autolinkEmail:
|
|
5683
|
-
autolinkProtocol:
|
|
5682
|
+
autolinkEmail: L,
|
|
5683
|
+
autolinkProtocol: se,
|
|
5684
5684
|
blockQuote: c(),
|
|
5685
5685
|
characterEscapeValue: E,
|
|
5686
|
-
characterReferenceMarkerHexadecimal:
|
|
5687
|
-
characterReferenceMarkerNumeric:
|
|
5688
|
-
characterReferenceValue:
|
|
5689
|
-
characterReference:
|
|
5686
|
+
characterReferenceMarkerHexadecimal: F,
|
|
5687
|
+
characterReferenceMarkerNumeric: F,
|
|
5688
|
+
characterReferenceValue: I,
|
|
5689
|
+
characterReference: oe,
|
|
5690
5690
|
codeFenced: c(g),
|
|
5691
5691
|
codeFencedFence: h,
|
|
5692
5692
|
codeFencedFenceInfo: p,
|
|
@@ -5708,18 +5708,18 @@ function Hs(e) {
|
|
|
5708
5708
|
htmlText: c(ee),
|
|
5709
5709
|
htmlTextData: E,
|
|
5710
5710
|
image: c(M),
|
|
5711
|
-
label:
|
|
5712
|
-
labelText:
|
|
5711
|
+
label: N,
|
|
5712
|
+
labelText: te,
|
|
5713
5713
|
lineEnding: D,
|
|
5714
5714
|
link: c(j),
|
|
5715
5715
|
listItem: c(),
|
|
5716
5716
|
listOrdered: c(),
|
|
5717
5717
|
listUnordered: c(),
|
|
5718
5718
|
paragraph: c(),
|
|
5719
|
-
referenceString:
|
|
5720
|
-
resourceDestinationString:
|
|
5721
|
-
resourceTitleString:
|
|
5722
|
-
resource:
|
|
5719
|
+
referenceString: ae,
|
|
5720
|
+
resourceDestinationString: P,
|
|
5721
|
+
resourceTitleString: ne,
|
|
5722
|
+
resource: re,
|
|
5723
5723
|
setextHeading: c(w),
|
|
5724
5724
|
setextHeadingLineSequence: C,
|
|
5725
5725
|
setextHeadingText: S,
|
|
@@ -5912,7 +5912,7 @@ function Hs(e) {
|
|
|
5912
5912
|
}
|
|
5913
5913
|
function T(e) {
|
|
5914
5914
|
let t = this.stack[this.stack.length - 1].children, n = t[t.length - 1];
|
|
5915
|
-
(!n || n.type !== "text") && (n =
|
|
5915
|
+
(!n || n.type !== "text") && (n = be(), n.position = {
|
|
5916
5916
|
start: Us(e.start),
|
|
5917
5917
|
end: void 0
|
|
5918
5918
|
}, t.push(n)), this.stack.push(n);
|
|
@@ -5961,62 +5961,62 @@ function Hs(e) {
|
|
|
5961
5961
|
} else delete e.identifier, delete e.label;
|
|
5962
5962
|
this.data.referenceType = void 0;
|
|
5963
5963
|
}
|
|
5964
|
-
function
|
|
5964
|
+
function te(e) {
|
|
5965
5965
|
let t = this.sliceSerialize(e), n = this.stack[this.stack.length - 2];
|
|
5966
5966
|
n.label = Rs(t), n.identifier = la(t).toLowerCase();
|
|
5967
5967
|
}
|
|
5968
|
-
function
|
|
5968
|
+
function N() {
|
|
5969
5969
|
let e = this.stack[this.stack.length - 1], t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
5970
5970
|
this.data.inReference = !0, n.type === "link" ? n.children = e.children : n.alt = t;
|
|
5971
5971
|
}
|
|
5972
|
-
function
|
|
5972
|
+
function P() {
|
|
5973
5973
|
let e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
5974
5974
|
t.url = e;
|
|
5975
5975
|
}
|
|
5976
|
-
function
|
|
5976
|
+
function ne() {
|
|
5977
5977
|
let e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
5978
5978
|
t.title = e;
|
|
5979
5979
|
}
|
|
5980
|
-
function
|
|
5980
|
+
function re() {
|
|
5981
5981
|
this.data.inReference = void 0;
|
|
5982
5982
|
}
|
|
5983
|
-
function
|
|
5983
|
+
function ie() {
|
|
5984
5984
|
this.data.referenceType = "collapsed";
|
|
5985
5985
|
}
|
|
5986
|
-
function
|
|
5986
|
+
function ae(e) {
|
|
5987
5987
|
let t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
5988
5988
|
n.label = t, n.identifier = la(this.sliceSerialize(e)).toLowerCase(), this.data.referenceType = "full";
|
|
5989
5989
|
}
|
|
5990
|
-
function
|
|
5990
|
+
function F(e) {
|
|
5991
5991
|
this.data.characterReferenceType = e.type;
|
|
5992
5992
|
}
|
|
5993
|
-
function
|
|
5993
|
+
function I(e) {
|
|
5994
5994
|
let t = this.sliceSerialize(e), n = this.data.characterReferenceType, r;
|
|
5995
5995
|
n ? (r = ca(t, n === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : r = ta(t);
|
|
5996
5996
|
let i = this.stack[this.stack.length - 1];
|
|
5997
5997
|
i.value += r;
|
|
5998
5998
|
}
|
|
5999
|
-
function
|
|
5999
|
+
function oe(e) {
|
|
6000
6000
|
let t = this.stack.pop();
|
|
6001
6001
|
t.position.end = Us(e.end);
|
|
6002
6002
|
}
|
|
6003
|
-
function
|
|
6003
|
+
function se(e) {
|
|
6004
6004
|
E.call(this, e);
|
|
6005
6005
|
let t = this.stack[this.stack.length - 1];
|
|
6006
6006
|
t.url = this.sliceSerialize(e);
|
|
6007
6007
|
}
|
|
6008
|
-
function
|
|
6008
|
+
function L(e) {
|
|
6009
6009
|
E.call(this, e);
|
|
6010
6010
|
let t = this.stack[this.stack.length - 1];
|
|
6011
6011
|
t.url = "mailto:" + this.sliceSerialize(e);
|
|
6012
6012
|
}
|
|
6013
|
-
function
|
|
6013
|
+
function R() {
|
|
6014
6014
|
return {
|
|
6015
6015
|
type: "blockquote",
|
|
6016
6016
|
children: []
|
|
6017
6017
|
};
|
|
6018
6018
|
}
|
|
6019
|
-
function
|
|
6019
|
+
function ce() {
|
|
6020
6020
|
return {
|
|
6021
6021
|
type: "code",
|
|
6022
6022
|
lang: null,
|
|
@@ -6024,13 +6024,13 @@ function Hs(e) {
|
|
|
6024
6024
|
value: ""
|
|
6025
6025
|
};
|
|
6026
6026
|
}
|
|
6027
|
-
function
|
|
6027
|
+
function le() {
|
|
6028
6028
|
return {
|
|
6029
6029
|
type: "inlineCode",
|
|
6030
6030
|
value: ""
|
|
6031
6031
|
};
|
|
6032
6032
|
}
|
|
6033
|
-
function
|
|
6033
|
+
function ue() {
|
|
6034
6034
|
return {
|
|
6035
6035
|
type: "definition",
|
|
6036
6036
|
identifier: "",
|
|
@@ -6039,29 +6039,29 @@ function Hs(e) {
|
|
|
6039
6039
|
url: ""
|
|
6040
6040
|
};
|
|
6041
6041
|
}
|
|
6042
|
-
function
|
|
6042
|
+
function de() {
|
|
6043
6043
|
return {
|
|
6044
6044
|
type: "emphasis",
|
|
6045
6045
|
children: []
|
|
6046
6046
|
};
|
|
6047
6047
|
}
|
|
6048
|
-
function
|
|
6048
|
+
function fe() {
|
|
6049
6049
|
return {
|
|
6050
6050
|
type: "heading",
|
|
6051
6051
|
depth: 0,
|
|
6052
6052
|
children: []
|
|
6053
6053
|
};
|
|
6054
6054
|
}
|
|
6055
|
-
function
|
|
6055
|
+
function pe() {
|
|
6056
6056
|
return { type: "break" };
|
|
6057
6057
|
}
|
|
6058
|
-
function
|
|
6058
|
+
function me() {
|
|
6059
6059
|
return {
|
|
6060
6060
|
type: "html",
|
|
6061
6061
|
value: ""
|
|
6062
6062
|
};
|
|
6063
6063
|
}
|
|
6064
|
-
function
|
|
6064
|
+
function he() {
|
|
6065
6065
|
return {
|
|
6066
6066
|
type: "image",
|
|
6067
6067
|
title: null,
|
|
@@ -6069,7 +6069,7 @@ function Hs(e) {
|
|
|
6069
6069
|
alt: null
|
|
6070
6070
|
};
|
|
6071
6071
|
}
|
|
6072
|
-
function
|
|
6072
|
+
function ge() {
|
|
6073
6073
|
return {
|
|
6074
6074
|
type: "link",
|
|
6075
6075
|
title: null,
|
|
@@ -6077,7 +6077,7 @@ function Hs(e) {
|
|
|
6077
6077
|
children: []
|
|
6078
6078
|
};
|
|
6079
6079
|
}
|
|
6080
|
-
function
|
|
6080
|
+
function _e(e) {
|
|
6081
6081
|
return {
|
|
6082
6082
|
type: "list",
|
|
6083
6083
|
ordered: e.type === "listOrdered",
|
|
@@ -6086,7 +6086,7 @@ function Hs(e) {
|
|
|
6086
6086
|
children: []
|
|
6087
6087
|
};
|
|
6088
6088
|
}
|
|
6089
|
-
function
|
|
6089
|
+
function z(e) {
|
|
6090
6090
|
return {
|
|
6091
6091
|
type: "listItem",
|
|
6092
6092
|
spread: e._spread,
|
|
@@ -6094,25 +6094,25 @@ function Hs(e) {
|
|
|
6094
6094
|
children: []
|
|
6095
6095
|
};
|
|
6096
6096
|
}
|
|
6097
|
-
function
|
|
6097
|
+
function ve() {
|
|
6098
6098
|
return {
|
|
6099
6099
|
type: "paragraph",
|
|
6100
6100
|
children: []
|
|
6101
6101
|
};
|
|
6102
6102
|
}
|
|
6103
|
-
function
|
|
6103
|
+
function ye() {
|
|
6104
6104
|
return {
|
|
6105
6105
|
type: "strong",
|
|
6106
6106
|
children: []
|
|
6107
6107
|
};
|
|
6108
6108
|
}
|
|
6109
|
-
function
|
|
6109
|
+
function be() {
|
|
6110
6110
|
return {
|
|
6111
6111
|
type: "text",
|
|
6112
6112
|
value: ""
|
|
6113
6113
|
};
|
|
6114
6114
|
}
|
|
6115
|
-
function
|
|
6115
|
+
function xe() {
|
|
6116
6116
|
return { type: "thematicBreak" };
|
|
6117
6117
|
}
|
|
6118
6118
|
}
|
|
@@ -7582,11 +7582,11 @@ function Ql(e, t) {
|
|
|
7582
7582
|
let n = t.allowedElements, r = t.allowElement, i = t.components, a = t.disallowedElements, o = t.skipHtml, s = t.unwrapDisallowed, c = t.urlTransform || $l;
|
|
7583
7583
|
for (let e of Jl) Object.hasOwn(t, e.from) && "" + e.from + (e.to ? "use `" + e.to + "` instead" : "remove it") + e.id;
|
|
7584
7584
|
return Zc(e, l), Ei(e, {
|
|
7585
|
-
Fragment:
|
|
7585
|
+
Fragment: se,
|
|
7586
7586
|
components: i,
|
|
7587
7587
|
ignoreInvalidStyle: !0,
|
|
7588
|
-
jsx:
|
|
7589
|
-
jsxs:
|
|
7588
|
+
jsx: L,
|
|
7589
|
+
jsxs: R,
|
|
7590
7590
|
passKeys: !0,
|
|
7591
7591
|
passNode: !0
|
|
7592
7592
|
});
|
|
@@ -9968,33 +9968,33 @@ function Qp(t, n) {
|
|
|
9968
9968
|
var i = r.language, a = r.children, o = r.style, s = o === void 0 ? n : o, c = r.customStyle, l = c === void 0 ? {} : c, u = r.codeTagProps, d = u === void 0 ? {
|
|
9969
9969
|
className: i ? `language-${i}` : void 0,
|
|
9970
9970
|
style: Rp(Rp({}, s["code[class*=\"language-\"]"]), s[`code[class*="language-${i}"]`])
|
|
9971
|
-
} : u, f = r.useInlineStyles, p = f === void 0 ? !0 : f, m = r.showLineNumbers, h = m === void 0 ? !1 : m, g = r.showInlineLineNumbers, _ = g === void 0 ? !0 : g, v = r.startingLineNumber, y = v === void 0 ? 1 : v, b = r.lineNumberContainerStyle, x = r.lineNumberStyle, S = x === void 0 ? {} : x, C = r.wrapLines, w = r.wrapLongLines, T = w === void 0 ? !1 : w, E = r.lineProps, D = E === void 0 ? {} : E, O = r.renderer, k = r.PreTag, ee = k === void 0 ? "pre" : k, A = r.CodeTag, j = A === void 0 ? "code" : A, M = r.code,
|
|
9972
|
-
|
|
9973
|
-
var
|
|
9971
|
+
} : u, f = r.useInlineStyles, p = f === void 0 ? !0 : f, m = r.showLineNumbers, h = m === void 0 ? !1 : m, g = r.showInlineLineNumbers, _ = g === void 0 ? !0 : g, v = r.startingLineNumber, y = v === void 0 ? 1 : v, b = r.lineNumberContainerStyle, x = r.lineNumberStyle, S = x === void 0 ? {} : x, C = r.wrapLines, w = r.wrapLongLines, T = w === void 0 ? !1 : w, E = r.lineProps, D = E === void 0 ? {} : E, O = r.renderer, k = r.PreTag, ee = k === void 0 ? "pre" : k, A = r.CodeTag, j = A === void 0 ? "code" : A, M = r.code, te = M === void 0 ? (Array.isArray(a) ? a[0] : a) || "" : M, N = r.astGenerator, P = mp(r, Ip);
|
|
9972
|
+
N ||= t;
|
|
9973
|
+
var ne = h ? /*#__PURE__*/ e.createElement(Hp, {
|
|
9974
9974
|
containerStyle: b,
|
|
9975
9975
|
codeStyle: d.style || {},
|
|
9976
9976
|
numberStyle: S,
|
|
9977
9977
|
startingLineNumber: y,
|
|
9978
|
-
codeString:
|
|
9979
|
-
}) : null,
|
|
9980
|
-
className:
|
|
9978
|
+
codeString: te
|
|
9979
|
+
}) : null, re = s.hljs || s["pre[class*=\"language-\"]"] || { backgroundColor: "#fff" }, ie = Xp(N) ? "hljs" : "prismjs", ae = p ? Object.assign({}, P, { style: Object.assign({}, re, l) }) : Object.assign({}, P, {
|
|
9980
|
+
className: P.className ? `${ie} ${P.className}` : ie,
|
|
9981
9981
|
style: Object.assign({}, l)
|
|
9982
9982
|
});
|
|
9983
|
-
if (T ? d.style = Rp({ whiteSpace: "pre-wrap" }, d.style) : d.style = Rp({ whiteSpace: "pre" }, d.style), !
|
|
9983
|
+
if (T ? d.style = Rp({ whiteSpace: "pre-wrap" }, d.style) : d.style = Rp({ whiteSpace: "pre" }, d.style), !N) return /*#__PURE__*/ e.createElement(ee, ae, ne, /*#__PURE__*/ e.createElement(j, d, te));
|
|
9984
9984
|
(C === void 0 && O || T) && (C = !0), O ||= Yp;
|
|
9985
|
-
var
|
|
9985
|
+
var F = [{
|
|
9986
9986
|
type: "text",
|
|
9987
|
-
value:
|
|
9988
|
-
}],
|
|
9989
|
-
astGenerator:
|
|
9987
|
+
value: te
|
|
9988
|
+
}], I = Zp({
|
|
9989
|
+
astGenerator: N,
|
|
9990
9990
|
language: i,
|
|
9991
|
-
code:
|
|
9992
|
-
defaultCodeValue:
|
|
9991
|
+
code: te,
|
|
9992
|
+
defaultCodeValue: F
|
|
9993
9993
|
});
|
|
9994
|
-
|
|
9995
|
-
var
|
|
9996
|
-
return /*#__PURE__*/ e.createElement(ee,
|
|
9997
|
-
rows:
|
|
9994
|
+
I.language === null && (I.value = F);
|
|
9995
|
+
var oe = y + (te.match(/\n/g)?.length ?? 0), se = Jp(I, C, D, h, _, y, oe, S, T);
|
|
9996
|
+
return /*#__PURE__*/ e.createElement(ee, ae, /*#__PURE__*/ e.createElement(j, d, !_ && ne, O({
|
|
9997
|
+
rows: se,
|
|
9998
9998
|
stylesheet: s,
|
|
9999
9999
|
useInlineStyles: p
|
|
10000
10000
|
})));
|
|
@@ -25810,36 +25810,36 @@ var hb = 2e3, gb = (e, t = hb) => {
|
|
|
25810
25810
|
light: Sb
|
|
25811
25811
|
}, wb = i(({ language: e, value: t, isStreaming: n, theme: r = Ct.Dark, copyLabel: i = "Copy code", copiedLabel: a = "Copied!", downloadLabel: o = "Download code", containerClassName: s, headerClassName: c, codeClassName: l = "dial-code-text", languageLabelClassName: u = "dial-tiny-semi-text uppercase" }) => {
|
|
25812
25812
|
let { isCopied: d, copy: f } = gb(t), h = r === Ct.Light;
|
|
25813
|
-
return /* @__PURE__ */
|
|
25813
|
+
return /* @__PURE__ */ R("div", {
|
|
25814
25814
|
className: G("my-4 max-w-full overflow-hidden rounded-xl border", _b.container, h && _b.containerLight, s),
|
|
25815
|
-
children: [/* @__PURE__ */
|
|
25815
|
+
children: [/* @__PURE__ */ R("div", {
|
|
25816
25816
|
className: G("flex min-h-10 items-center justify-between border-b px-3 py-2", _b.header, c),
|
|
25817
|
-
children: [/* @__PURE__ */
|
|
25817
|
+
children: [/* @__PURE__ */ L("span", {
|
|
25818
25818
|
className: G(_b.languageLabel, u),
|
|
25819
25819
|
children: e
|
|
25820
|
-
}), !n && /* @__PURE__ */
|
|
25820
|
+
}), !n && /* @__PURE__ */ R("div", {
|
|
25821
25821
|
className: "flex items-center gap-1",
|
|
25822
|
-
children: [/* @__PURE__ */
|
|
25823
|
-
icon: /* @__PURE__ */
|
|
25822
|
+
children: [/* @__PURE__ */ L(E, {
|
|
25823
|
+
icon: /* @__PURE__ */ L(fp, { size: m.SM }),
|
|
25824
25824
|
"aria-label": o,
|
|
25825
25825
|
variant: p.Primary,
|
|
25826
|
-
size:
|
|
25826
|
+
size: F.Small,
|
|
25827
25827
|
onClick: () => {
|
|
25828
25828
|
ir(t, `code.${tr(e)}`);
|
|
25829
25829
|
}
|
|
25830
|
-
}), /* @__PURE__ */
|
|
25831
|
-
icon:
|
|
25830
|
+
}), /* @__PURE__ */ L(E, {
|
|
25831
|
+
icon: L(d ? up : dp, { size: m.SM }),
|
|
25832
25832
|
"aria-label": d ? a : i,
|
|
25833
25833
|
variant: p.Primary,
|
|
25834
|
-
size:
|
|
25834
|
+
size: F.Small,
|
|
25835
25835
|
className: d ? _b.copiedIcon : void 0,
|
|
25836
25836
|
onClick: f
|
|
25837
25837
|
})]
|
|
25838
25838
|
})]
|
|
25839
|
-
}), /* @__PURE__ */
|
|
25839
|
+
}), /* @__PURE__ */ L("div", {
|
|
25840
25840
|
className: G(_b.scrollContainer, "max-h-[60vh] overflow-auto"),
|
|
25841
25841
|
dir: "ltr",
|
|
25842
|
-
children: e ? /* @__PURE__ */
|
|
25842
|
+
children: e ? /* @__PURE__ */ L(mb, {
|
|
25843
25843
|
language: e,
|
|
25844
25844
|
style: Cb[r] ?? Sb,
|
|
25845
25845
|
customStyle: {
|
|
@@ -25853,9 +25853,9 @@ var hb = 2e3, gb = (e, t = hb) => {
|
|
|
25853
25853
|
},
|
|
25854
25854
|
codeTagProps: { className: l },
|
|
25855
25855
|
children: t
|
|
25856
|
-
}) : /* @__PURE__ */
|
|
25856
|
+
}) : /* @__PURE__ */ L("pre", {
|
|
25857
25857
|
className: "p-4",
|
|
25858
|
-
children: /* @__PURE__ */
|
|
25858
|
+
children: /* @__PURE__ */ L("code", {
|
|
25859
25859
|
className: G("whitespace-pre", l),
|
|
25860
25860
|
children: t
|
|
25861
25861
|
})
|
|
@@ -25893,9 +25893,9 @@ var hb = 2e3, gb = (e, t = hb) => {
|
|
|
25893
25893
|
tableScrollFadeBoth: "_tableScrollFadeBoth_1bv91_33"
|
|
25894
25894
|
}, kb = i(({ children: e, classNames: t }) => {
|
|
25895
25895
|
let { scrollContainerRef: n, tableRef: r, hasContentBeyondStart: i, hasContentBeyondEnd: a, handleScroll: o } = Db();
|
|
25896
|
-
return /* @__PURE__ */
|
|
25896
|
+
return /* @__PURE__ */ L("div", {
|
|
25897
25897
|
className: G("relative w-full min-w-0 max-w-full overflow-hidden", t.tableWrapper),
|
|
25898
|
-
children: /* @__PURE__ */
|
|
25898
|
+
children: /* @__PURE__ */ L("div", {
|
|
25899
25899
|
ref: n,
|
|
25900
25900
|
className: G("w-full min-w-0 max-w-full overflow-x-auto rounded border", Ob.scrollContainer, {
|
|
25901
25901
|
[Ob.tableScrollFadeBoth]: i && a,
|
|
@@ -25903,72 +25903,72 @@ var hb = 2e3, gb = (e, t = hb) => {
|
|
|
25903
25903
|
[Ob.tableScrollFadeEnd]: !i && a
|
|
25904
25904
|
}),
|
|
25905
25905
|
onScroll: o,
|
|
25906
|
-
children: /* @__PURE__ */
|
|
25906
|
+
children: /* @__PURE__ */ L("table", {
|
|
25907
25907
|
ref: r,
|
|
25908
25908
|
className: G("w-max min-w-full border-collapse", t.tableFont ?? "text-sm"),
|
|
25909
25909
|
children: e
|
|
25910
25910
|
})
|
|
25911
25911
|
})
|
|
25912
25912
|
});
|
|
25913
|
-
}), Ab = ({ checked: e = !1 }) => /* @__PURE__ */
|
|
25913
|
+
}), Ab = ({ checked: e = !1 }) => /* @__PURE__ */ L("span", {
|
|
25914
25914
|
className: "me-1.5 inline-flex align-middle",
|
|
25915
|
-
children: /* @__PURE__ */
|
|
25915
|
+
children: /* @__PURE__ */ L(v, {
|
|
25916
25916
|
id: s(),
|
|
25917
25917
|
checked: e,
|
|
25918
25918
|
disabled: !0
|
|
25919
25919
|
})
|
|
25920
|
-
}), jb = [ep], Mb = {}, Nb = { li: ({ children: e }) => /* @__PURE__ */
|
|
25920
|
+
}), jb = [ep], Mb = {}, Nb = { li: ({ children: e }) => /* @__PURE__ */ L("li", {
|
|
25921
25921
|
className: "mb-1.5 last:mb-0",
|
|
25922
25922
|
children: e
|
|
25923
25923
|
}) }, Pb = (e, t, n, r, i) => ({
|
|
25924
|
-
h1: ({ children: t }) => /* @__PURE__ */
|
|
25924
|
+
h1: ({ children: t }) => /* @__PURE__ */ L("h1", {
|
|
25925
25925
|
className: e.h1,
|
|
25926
25926
|
children: t
|
|
25927
25927
|
}),
|
|
25928
|
-
h2: ({ children: t }) => /* @__PURE__ */
|
|
25928
|
+
h2: ({ children: t }) => /* @__PURE__ */ L("h2", {
|
|
25929
25929
|
className: e.h2,
|
|
25930
25930
|
children: t
|
|
25931
25931
|
}),
|
|
25932
|
-
h3: ({ children: t }) => /* @__PURE__ */
|
|
25932
|
+
h3: ({ children: t }) => /* @__PURE__ */ L("h3", {
|
|
25933
25933
|
className: e.h3,
|
|
25934
25934
|
children: t
|
|
25935
25935
|
}),
|
|
25936
|
-
h4: ({ children: t }) => /* @__PURE__ */
|
|
25936
|
+
h4: ({ children: t }) => /* @__PURE__ */ L("h4", {
|
|
25937
25937
|
className: e.h4,
|
|
25938
25938
|
children: t
|
|
25939
25939
|
}),
|
|
25940
|
-
h5: ({ children: t }) => /* @__PURE__ */
|
|
25940
|
+
h5: ({ children: t }) => /* @__PURE__ */ L("h5", {
|
|
25941
25941
|
className: e.h5,
|
|
25942
25942
|
children: t
|
|
25943
25943
|
}),
|
|
25944
|
-
h6: ({ children: t }) => /* @__PURE__ */
|
|
25944
|
+
h6: ({ children: t }) => /* @__PURE__ */ L("h6", {
|
|
25945
25945
|
className: e.h6,
|
|
25946
25946
|
children: t
|
|
25947
25947
|
}),
|
|
25948
|
-
p: ({ children: t }) => /* @__PURE__ */
|
|
25948
|
+
p: ({ children: t }) => /* @__PURE__ */ L("p", {
|
|
25949
25949
|
className: e.p,
|
|
25950
25950
|
children: t
|
|
25951
25951
|
}),
|
|
25952
|
-
ul: ({ children: t }) => /* @__PURE__ */
|
|
25952
|
+
ul: ({ children: t }) => /* @__PURE__ */ L("ul", {
|
|
25953
25953
|
className: G("list-disc ps-5", e.ul),
|
|
25954
25954
|
children: t
|
|
25955
25955
|
}),
|
|
25956
|
-
ol: ({ children: t }) => /* @__PURE__ */
|
|
25956
|
+
ol: ({ children: t }) => /* @__PURE__ */ L("ol", {
|
|
25957
25957
|
className: G("list-decimal ps-5", e.ol),
|
|
25958
25958
|
children: t
|
|
25959
25959
|
}),
|
|
25960
|
-
strong: ({ children: t }) => /* @__PURE__ */
|
|
25960
|
+
strong: ({ children: t }) => /* @__PURE__ */ L("strong", {
|
|
25961
25961
|
className: e.strong ?? "font-semibold",
|
|
25962
25962
|
children: t
|
|
25963
25963
|
}),
|
|
25964
|
-
em: ({ children: t }) => /* @__PURE__ */
|
|
25964
|
+
em: ({ children: t }) => /* @__PURE__ */ L("em", {
|
|
25965
25965
|
className: e.em ?? "italic",
|
|
25966
25966
|
children: t
|
|
25967
25967
|
}),
|
|
25968
|
-
pre: ({ children: e }) => /* @__PURE__ */
|
|
25968
|
+
pre: ({ children: e }) => /* @__PURE__ */ L(se, { children: e }),
|
|
25969
25969
|
code: ({ children: a, className: o }) => {
|
|
25970
25970
|
let s = /language-(\w+)/.exec(o ?? "")?.[1] ?? "", c = String(a);
|
|
25971
|
-
return s || c.includes("\n") ? /* @__PURE__ */
|
|
25971
|
+
return s || c.includes("\n") ? /* @__PURE__ */ L(wb, {
|
|
25972
25972
|
language: s,
|
|
25973
25973
|
value: c.replace(/\n$/, ""),
|
|
25974
25974
|
isStreaming: t,
|
|
@@ -25978,37 +25978,37 @@ var hb = 2e3, gb = (e, t = hb) => {
|
|
|
25978
25978
|
containerClassName: e.codeBlockContainer,
|
|
25979
25979
|
headerClassName: e.codeBlockHeader,
|
|
25980
25980
|
codeClassName: e.codeFont
|
|
25981
|
-
}) : /* @__PURE__ */
|
|
25981
|
+
}) : /* @__PURE__ */ L("code", {
|
|
25982
25982
|
className: G("rounded px-1 py-0.5", e.codeInlineFont ?? "dial-code-text", e.codeInline),
|
|
25983
25983
|
children: a
|
|
25984
25984
|
});
|
|
25985
25985
|
},
|
|
25986
|
-
blockquote: ({ children: t }) => /* @__PURE__ */
|
|
25986
|
+
blockquote: ({ children: t }) => /* @__PURE__ */ L("blockquote", {
|
|
25987
25987
|
className: G("border-s-2 border-primary py-1 ps-4 text-secondary", e.blockquote),
|
|
25988
25988
|
children: t
|
|
25989
25989
|
}),
|
|
25990
|
-
a: ({ href: t, children: n }) => /* @__PURE__ */
|
|
25990
|
+
a: ({ href: t, children: n }) => /* @__PURE__ */ L("a", {
|
|
25991
25991
|
href: t,
|
|
25992
25992
|
target: "_blank",
|
|
25993
25993
|
rel: "noopener noreferrer",
|
|
25994
25994
|
className: G("decoration-current/60 text-accent-primary underline underline-offset-2 hover:decoration-current focus-visible:outline focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-[var(--stroke-focus,#EEF1F7)]", e.link),
|
|
25995
25995
|
children: n
|
|
25996
25996
|
}),
|
|
25997
|
-
hr: () => /* @__PURE__ */
|
|
25998
|
-
del: ({ children: t }) => /* @__PURE__ */
|
|
25997
|
+
hr: () => /* @__PURE__ */ L("hr", { className: G("my-5 border-t", Tb.secondaryBorder, e.hr) }),
|
|
25998
|
+
del: ({ children: t }) => /* @__PURE__ */ L("del", {
|
|
25999
25999
|
className: G("opacity-75", e.del),
|
|
26000
26000
|
children: t
|
|
26001
26001
|
}),
|
|
26002
|
-
input: ({ type: e, checked: t }) => e === "checkbox" ? /* @__PURE__ */
|
|
26003
|
-
table: ({ children: t }) => /* @__PURE__ */
|
|
26002
|
+
input: ({ type: e, checked: t }) => e === "checkbox" ? /* @__PURE__ */ L(Ab, { checked: t ?? !1 }) : null,
|
|
26003
|
+
table: ({ children: t }) => /* @__PURE__ */ L(kb, {
|
|
26004
26004
|
classNames: e,
|
|
26005
26005
|
children: t
|
|
26006
26006
|
}),
|
|
26007
|
-
th: ({ children: t }) => /* @__PURE__ */
|
|
26007
|
+
th: ({ children: t }) => /* @__PURE__ */ L("th", {
|
|
26008
26008
|
className: G("max-w-96 whitespace-normal break-words border-b px-3 py-2.5 text-start text-secondary", Tb.secondaryBorder, e.tableHeaderFont ?? "font-semibold", e.tableCell, e.tableHeader),
|
|
26009
26009
|
children: t
|
|
26010
26010
|
}),
|
|
26011
|
-
td: ({ children: t }) => /* @__PURE__ */
|
|
26011
|
+
td: ({ children: t }) => /* @__PURE__ */ L("td", {
|
|
26012
26012
|
className: G("max-w-96 whitespace-normal break-words border-b px-3 py-2.5 align-top", Tb.secondaryBorder, e.tableBodyCell, e.tableCell),
|
|
26013
26013
|
children: t
|
|
26014
26014
|
})
|
|
@@ -26025,10 +26025,10 @@ var hb = 2e3, gb = (e, t = hb) => {
|
|
|
26025
26025
|
c,
|
|
26026
26026
|
i
|
|
26027
26027
|
]);
|
|
26028
|
-
return t && !u ? /* @__PURE__ */
|
|
26028
|
+
return t && !u ? /* @__PURE__ */ L("span", {
|
|
26029
26029
|
className: Tb.thinking,
|
|
26030
26030
|
children: a
|
|
26031
|
-
}) : /* @__PURE__ */
|
|
26031
|
+
}) : /* @__PURE__ */ L(Yl, {
|
|
26032
26032
|
remarkPlugins: jb,
|
|
26033
26033
|
components: d,
|
|
26034
26034
|
children: u
|
|
@@ -26050,7 +26050,7 @@ var hb = 2e3, gb = (e, t = hb) => {
|
|
|
26050
26050
|
tableHeader: "bg-layer-3",
|
|
26051
26051
|
tableBodyCell: "bg-layer-2"
|
|
26052
26052
|
};
|
|
26053
|
-
i(({ content: e, isStreaming: t, thinkingLabel: n, components: r, codeBlockCopyLabel: i, codeBlockCopiedLabel: a, codeBlockTheme: o }) => /* @__PURE__ */
|
|
26053
|
+
i(({ content: e, isStreaming: t, thinkingLabel: n, components: r, codeBlockCopyLabel: i, codeBlockCopiedLabel: a, codeBlockTheme: o }) => /* @__PURE__ */ L(Fb, {
|
|
26054
26054
|
content: e,
|
|
26055
26055
|
isStreaming: t,
|
|
26056
26056
|
thinkingLabel: n,
|
|
@@ -26066,18 +26066,18 @@ var Lb = {
|
|
|
26066
26066
|
input: "_input_bc4pw_20"
|
|
26067
26067
|
}, Rb = ({ value: e, onChange: t, placeholder: n = "Search", ariaLabel: r, containerClassName: i, iconClassName: a, inputClassName: o, iconSize: s = m.MD, iconStrokeWidth: c, clearLabel: l = "Clear search", clearButtonClassName: u }) => {
|
|
26068
26068
|
let d = r ?? n;
|
|
26069
|
-
return /* @__PURE__ */
|
|
26069
|
+
return /* @__PURE__ */ L("div", {
|
|
26070
26070
|
role: "search",
|
|
26071
|
-
children: /* @__PURE__ */
|
|
26071
|
+
children: /* @__PURE__ */ R("div", {
|
|
26072
26072
|
className: G(Lb.container, "flex cursor-text items-center gap-3 rounded-xl border px-4 py-2 transition-[border-color,box-shadow] duration-150 ease-in-out", i),
|
|
26073
26073
|
children: [
|
|
26074
|
-
/* @__PURE__ */
|
|
26074
|
+
/* @__PURE__ */ L(Te, {
|
|
26075
26075
|
size: s,
|
|
26076
26076
|
stroke: c,
|
|
26077
26077
|
className: G(Lb.icon, "shrink-0 transition-colors duration-150 ease-in-out", a),
|
|
26078
26078
|
"aria-hidden": !0
|
|
26079
26079
|
}),
|
|
26080
|
-
/* @__PURE__ */
|
|
26080
|
+
/* @__PURE__ */ L("input", {
|
|
26081
26081
|
type: "text",
|
|
26082
26082
|
className: G(Lb.input, "min-w-0 flex-1 border-0 p-0 text-sm font-normal leading-5 outline-none", o),
|
|
26083
26083
|
value: e,
|
|
@@ -26085,12 +26085,12 @@ var Lb = {
|
|
|
26085
26085
|
"aria-label": d,
|
|
26086
26086
|
onChange: (e) => t(e.target.value)
|
|
26087
26087
|
}),
|
|
26088
|
-
e && /* @__PURE__ */
|
|
26088
|
+
e && /* @__PURE__ */ L("button", {
|
|
26089
26089
|
type: "button",
|
|
26090
26090
|
onClick: () => t(""),
|
|
26091
26091
|
"aria-label": l,
|
|
26092
26092
|
className: G("flex shrink-0 items-center justify-center", u),
|
|
26093
|
-
children: /* @__PURE__ */
|
|
26093
|
+
children: /* @__PURE__ */ L(Ae, {
|
|
26094
26094
|
size: s,
|
|
26095
26095
|
stroke: c,
|
|
26096
26096
|
className: G(Lb.icon, a),
|
|
@@ -26100,23 +26100,23 @@ var Lb = {
|
|
|
26100
26100
|
]
|
|
26101
26101
|
})
|
|
26102
26102
|
});
|
|
26103
|
-
}, zb = ({ isActive: e, activeClassName: t = "!bg-layer-0 !text-accent-primary shadow-sm", inactiveClassName: n = "!text-secondary", className: r, ...i }) => /* @__PURE__ */
|
|
26103
|
+
}, zb = ({ isActive: e, activeClassName: t = "!bg-layer-0 !text-accent-primary shadow-sm", inactiveClassName: n = "!text-secondary", className: r, ...i }) => /* @__PURE__ */ L(E, {
|
|
26104
26104
|
className: G("rounded-[6px]", e ? t : n, r),
|
|
26105
26105
|
...i
|
|
26106
26106
|
}), Bb = {
|
|
26107
26107
|
tabsRow: "_tabsRow_is040_1",
|
|
26108
26108
|
activeTab: "_activeTab_is040_5"
|
|
26109
|
-
}, Vb = ({ tabs: e, activeTabId: t, onTabChange: n, className: r, activeTabClassName: i = "text-primary", inactiveTabClassName: a = "text-secondary hover:text-primary border-transparent", activeBadgeClassName: o = "bg-accent-primary-alpha text-accent-primary", inactiveBadgeClassName: s = "bg-layer-3 text-tertiary", tabLabelClassName: c = "dial-small-semi-text", badgeLabelClassName: l = "dial-tiny-semi-text" }) => /* @__PURE__ */
|
|
26109
|
+
}, Vb = ({ tabs: e, activeTabId: t, onTabChange: n, className: r, activeTabClassName: i = "text-primary", inactiveTabClassName: a = "text-secondary hover:text-primary border-transparent", activeBadgeClassName: o = "bg-accent-primary-alpha text-accent-primary", inactiveBadgeClassName: s = "bg-layer-3 text-tertiary", tabLabelClassName: c = "dial-small-semi-text", badgeLabelClassName: l = "dial-tiny-semi-text" }) => /* @__PURE__ */ L("div", {
|
|
26110
26110
|
role: "tablist",
|
|
26111
26111
|
className: G("flex justify-start gap-1 border-b", Bb.tabsRow, r),
|
|
26112
26112
|
children: e.map((e) => {
|
|
26113
26113
|
let r = t === e.id;
|
|
26114
|
-
return /* @__PURE__ */
|
|
26114
|
+
return /* @__PURE__ */ R("button", {
|
|
26115
26115
|
role: "tab",
|
|
26116
26116
|
"aria-selected": r,
|
|
26117
26117
|
onClick: () => n(e.id),
|
|
26118
26118
|
className: G(c, "-mb-px flex items-center gap-1.5 border-b-2 px-3 py-2.5 text-start transition-colors", r ? G(Bb.activeTab, i) : a),
|
|
26119
|
-
children: [/* @__PURE__ */
|
|
26119
|
+
children: [/* @__PURE__ */ L("span", { children: e.label }), e.count != null && /* @__PURE__ */ L("span", {
|
|
26120
26120
|
className: G(l, "rounded-full px-1.5 py-0.5", r ? o : s),
|
|
26121
26121
|
children: e.count
|
|
26122
26122
|
})]
|
|
@@ -26126,11 +26126,11 @@ var Lb = {
|
|
|
26126
26126
|
tabContainer: "_tabContainer_rzv03_1",
|
|
26127
26127
|
tabActive: "_tabActive_rzv03_13"
|
|
26128
26128
|
};
|
|
26129
|
-
i(({ tabs: e, activeTabId: t, onTabChange: n, tabClassName: r = "dial-tiny-semi-text" }) => /* @__PURE__ */
|
|
26129
|
+
i(({ tabs: e, activeTabId: t, onTabChange: n, tabClassName: r = "dial-tiny-semi-text" }) => /* @__PURE__ */ L("div", {
|
|
26130
26130
|
className: "flex flex-nowrap gap-1",
|
|
26131
26131
|
children: e.map((e) => {
|
|
26132
26132
|
let i = t === e.id;
|
|
26133
|
-
return /* @__PURE__ */
|
|
26133
|
+
return /* @__PURE__ */ L(ie, {
|
|
26134
26134
|
label: e.label,
|
|
26135
26135
|
selected: i,
|
|
26136
26136
|
onClick: () => n(e.id),
|
|
@@ -26140,26 +26140,26 @@ i(({ tabs: e, activeTabId: t, onTabChange: n, tabClassName: r = "dial-tiny-semi-
|
|
|
26140
26140
|
}));
|
|
26141
26141
|
//#endregion
|
|
26142
26142
|
//#region ../ai-dial-kit/src/components/Button/Buttons.tsx
|
|
26143
|
-
var Ub = (e) => /* @__PURE__ */
|
|
26143
|
+
var Ub = (e) => /* @__PURE__ */ L(M, { ...e }), Wb = (e) => /* @__PURE__ */ L(_, {
|
|
26144
26144
|
...e,
|
|
26145
26145
|
variant: p.Neutral,
|
|
26146
26146
|
appearance: f.Outlined
|
|
26147
|
-
}), Gb = (e) => /* @__PURE__ */
|
|
26148
|
-
[
|
|
26149
|
-
[
|
|
26150
|
-
[
|
|
26151
|
-
[
|
|
26152
|
-
[
|
|
26153
|
-
[
|
|
26154
|
-
[
|
|
26147
|
+
}), Gb = (e) => /* @__PURE__ */ L(T, { ...e }), Kb = (e) => /* @__PURE__ */ L(k, { ...e }), qb = {
|
|
26148
|
+
[B.Model]: "Models",
|
|
26149
|
+
[B.Application]: "Agents",
|
|
26150
|
+
[B.Agent]: "Agents",
|
|
26151
|
+
[B.Toolset]: "Toolsets",
|
|
26152
|
+
[B.Guardrail]: "Guardrails",
|
|
26153
|
+
[B.Skill]: "Skills",
|
|
26154
|
+
[B.Mcp]: "MCP"
|
|
26155
26155
|
}, Jb = [
|
|
26156
|
-
|
|
26157
|
-
|
|
26158
|
-
|
|
26159
|
-
|
|
26160
|
-
|
|
26161
|
-
|
|
26162
|
-
|
|
26156
|
+
B.Model,
|
|
26157
|
+
B.Application,
|
|
26158
|
+
B.Agent,
|
|
26159
|
+
B.Toolset,
|
|
26160
|
+
B.Guardrail,
|
|
26161
|
+
B.Skill,
|
|
26162
|
+
B.Mcp
|
|
26163
26163
|
], Yb = (e, t) => {
|
|
26164
26164
|
let n = {
|
|
26165
26165
|
...qb,
|
|
@@ -26170,21 +26170,21 @@ var Ub = (e) => /* @__PURE__ */ R(M, { ...e }), Wb = (e) => /* @__PURE__ */ R(_,
|
|
|
26170
26170
|
label: n[e] ?? e
|
|
26171
26171
|
}));
|
|
26172
26172
|
}, Xb = {
|
|
26173
|
-
[
|
|
26174
|
-
[
|
|
26175
|
-
[
|
|
26176
|
-
[
|
|
26177
|
-
[
|
|
26178
|
-
[
|
|
26179
|
-
[
|
|
26173
|
+
[B.Model]: "#2764D9",
|
|
26174
|
+
[B.Application]: "#059669",
|
|
26175
|
+
[B.Agent]: "#7C3AED",
|
|
26176
|
+
[B.Skill]: "#0E7490",
|
|
26177
|
+
[B.Toolset]: "#B45309",
|
|
26178
|
+
[B.Guardrail]: "#BE123C",
|
|
26179
|
+
[B.Mcp]: "#0E7490"
|
|
26180
26180
|
}, Zb = {
|
|
26181
|
-
[
|
|
26182
|
-
[
|
|
26183
|
-
[
|
|
26184
|
-
[
|
|
26185
|
-
[
|
|
26186
|
-
[
|
|
26187
|
-
[
|
|
26181
|
+
[B.Model]: "rgba(39, 100, 217, 0.12)",
|
|
26182
|
+
[B.Application]: "rgba(5, 150, 105, 0.12)",
|
|
26183
|
+
[B.Agent]: "rgba(124, 58, 237, 0.12)",
|
|
26184
|
+
[B.Skill]: "rgba(14, 116, 144, 0.12)",
|
|
26185
|
+
[B.Toolset]: "rgba(180, 83, 9, 0.12)",
|
|
26186
|
+
[B.Guardrail]: "rgba(190, 18, 60, 0.12)",
|
|
26187
|
+
[B.Mcp]: "rgba(14, 116, 144, 0.12)"
|
|
26188
26188
|
}, Qb = (e) => {
|
|
26189
26189
|
if (e.isFeatured) return Zn({
|
|
26190
26190
|
"--entity-color": Xb[e.type],
|
|
@@ -26251,39 +26251,39 @@ var Ub = (e) => /* @__PURE__ */ R(M, { ...e }), Wb = (e) => /* @__PURE__ */ R(_,
|
|
|
26251
26251
|
skeletonCard: "_skeletonCard_ymqsc_48"
|
|
26252
26252
|
}, ix = { numericText: "_numericText_uy8cg_2" }, ax = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, typeClassName: c = "dial-caption-text font-semibold text-accent-primary", typeColor: l, nameClassName: u = "dial-body-semi-text text-primary", versionClassName: d = "dial-tiny-text text-secondary", lastUsedClassName: f = "dial-tiny-text text-tertiary", lastUsedTrailing: p, iconClassName: m }) => {
|
|
26253
26253
|
let h = a === "lg", g = h ? "h-[54px] w-[54px] rounded-[14px]" : "h-[44px] w-[44px] rounded-[12px]", _ = h ? 54 : 44;
|
|
26254
|
-
return /* @__PURE__ */
|
|
26254
|
+
return /* @__PURE__ */ R("div", {
|
|
26255
26255
|
className: G("flex min-w-0 items-start gap-[14px]", s),
|
|
26256
|
-
children: [/* @__PURE__ */
|
|
26256
|
+
children: [/* @__PURE__ */ L("div", {
|
|
26257
26257
|
className: G("flex-shrink-0 overflow-hidden", g, m),
|
|
26258
|
-
children: /* @__PURE__ */
|
|
26258
|
+
children: /* @__PURE__ */ L(dr, {
|
|
26259
26259
|
src: e ?? void 0,
|
|
26260
26260
|
size: _,
|
|
26261
26261
|
initialsName: n,
|
|
26262
26262
|
badgeClassName: G(h ? "rounded-[14px]" : "rounded-[12px]")
|
|
26263
26263
|
})
|
|
26264
|
-
}), /* @__PURE__ */
|
|
26264
|
+
}), /* @__PURE__ */ R("div", {
|
|
26265
26265
|
className: "flex min-w-0 flex-1 flex-col gap-[5px]",
|
|
26266
|
-
children: [/* @__PURE__ */
|
|
26266
|
+
children: [/* @__PURE__ */ L("span", {
|
|
26267
26267
|
className: G("uppercase tracking-[0.06em]", c),
|
|
26268
26268
|
style: l ? { color: l } : void 0,
|
|
26269
26269
|
children: t
|
|
26270
|
-
}), /* @__PURE__ */
|
|
26270
|
+
}), /* @__PURE__ */ R("div", {
|
|
26271
26271
|
className: "flex min-w-0 flex-col",
|
|
26272
|
-
children: [/* @__PURE__ */
|
|
26272
|
+
children: [/* @__PURE__ */ R("div", {
|
|
26273
26273
|
className: "flex min-w-0 items-start gap-1 overflow-hidden",
|
|
26274
|
-
children: [/* @__PURE__ */
|
|
26274
|
+
children: [/* @__PURE__ */ L("span", {
|
|
26275
26275
|
className: G("flex-3 min-w-0 shrink truncate", u),
|
|
26276
|
-
children: o ? /* @__PURE__ */
|
|
26276
|
+
children: o ? /* @__PURE__ */ L(hr, {
|
|
26277
26277
|
text: n,
|
|
26278
26278
|
query: o
|
|
26279
26279
|
}) : n
|
|
26280
|
-
}), r != null && /* @__PURE__ */
|
|
26280
|
+
}), r != null && /* @__PURE__ */ L(S, {
|
|
26281
26281
|
text: r,
|
|
26282
26282
|
className: G("flex-1", ix.numericText, d)
|
|
26283
26283
|
})]
|
|
26284
|
-
}), h && i != null && /* @__PURE__ */
|
|
26284
|
+
}), h && i != null && /* @__PURE__ */ R("div", {
|
|
26285
26285
|
className: "flex items-center gap-2",
|
|
26286
|
-
children: [/* @__PURE__ */
|
|
26286
|
+
children: [/* @__PURE__ */ L("span", {
|
|
26287
26287
|
className: G(ix.numericText, f),
|
|
26288
26288
|
children: i
|
|
26289
26289
|
}), p]
|
|
@@ -26291,31 +26291,31 @@ var Ub = (e) => /* @__PURE__ */ R(M, { ...e }), Wb = (e) => /* @__PURE__ */ R(_,
|
|
|
26291
26291
|
})]
|
|
26292
26292
|
})]
|
|
26293
26293
|
});
|
|
26294
|
-
}, ox = ({ credentials: e, loggedOutLabel: t = "LOGGED OUT", className: n, badgeClassName: r = "bg-error text-[10px] font-semibold uppercase tracking-[0.06em] text-error" }) => e == null || lt(e) == null ? null : /* @__PURE__ */
|
|
26294
|
+
}, ox = ({ credentials: e, loggedOutLabel: t = "LOGGED OUT", className: n, badgeClassName: r = "bg-error text-[10px] font-semibold uppercase tracking-[0.06em] text-error" }) => e == null || lt(e) == null ? null : /* @__PURE__ */ L(ie, {
|
|
26295
26295
|
label: t,
|
|
26296
26296
|
className: G("border-none", r, n)
|
|
26297
|
-
}), sx = { featuredChip: "_featuredChip_zbis1_1" }, cx = ({ label: e, className: t }) => /* @__PURE__ */
|
|
26297
|
+
}), sx = { featuredChip: "_featuredChip_zbis1_1" }, cx = ({ label: e, className: t }) => /* @__PURE__ */ L(ie, {
|
|
26298
26298
|
label: e,
|
|
26299
26299
|
className: G("rounded-2xl border-none text-[10px] font-semibold uppercase tracking-[0.06em]", t, sx.featuredChip)
|
|
26300
26300
|
}), lx = {
|
|
26301
26301
|
icon: "_icon_182e4_1",
|
|
26302
26302
|
label: "_label_182e4_5"
|
|
26303
26303
|
}, ux = ({ segments: e, labelClassName: t = "dial-small-text", leafClassName: n = "dial-small-semi-text", className: r }) => {
|
|
26304
|
-
let i = /* @__PURE__ */
|
|
26305
|
-
icon: /* @__PURE__ */
|
|
26304
|
+
let i = /* @__PURE__ */ L(O, {
|
|
26305
|
+
icon: /* @__PURE__ */ L(he, { size: m.SM }),
|
|
26306
26306
|
className: lx.icon
|
|
26307
26307
|
}), a = e.map((t, r) => ({
|
|
26308
|
-
label: r === e.length - 1 ? /* @__PURE__ */
|
|
26308
|
+
label: r === e.length - 1 ? /* @__PURE__ */ L("span", {
|
|
26309
26309
|
className: n,
|
|
26310
26310
|
children: t
|
|
26311
26311
|
}) : t,
|
|
26312
26312
|
disabled: !0,
|
|
26313
26313
|
...r === 0 ? { iconBefore: i } : {}
|
|
26314
26314
|
}));
|
|
26315
|
-
return /* @__PURE__ */
|
|
26315
|
+
return /* @__PURE__ */ L(g, {
|
|
26316
26316
|
className: r,
|
|
26317
|
-
separator: /* @__PURE__ */
|
|
26318
|
-
icon: /* @__PURE__ */
|
|
26317
|
+
separator: /* @__PURE__ */ L(O, {
|
|
26318
|
+
icon: /* @__PURE__ */ L(de, {
|
|
26319
26319
|
size: 14,
|
|
26320
26320
|
className: "rtl:scale-x-[-1]"
|
|
26321
26321
|
}),
|
|
@@ -26327,16 +26327,16 @@ var Ub = (e) => /* @__PURE__ */ R(M, { ...e }), Wb = (e) => /* @__PURE__ */ R(_,
|
|
|
26327
26327
|
}, dx = {
|
|
26328
26328
|
starFilledIcon: "_starFilledIcon_po6zj_1",
|
|
26329
26329
|
starPop: "_starPop_po6zj_1"
|
|
26330
|
-
}, fx = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i }) => /* @__PURE__ */
|
|
26330
|
+
}, fx = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i }) => /* @__PURE__ */ L(E, {
|
|
26331
26331
|
size: n,
|
|
26332
26332
|
className: i,
|
|
26333
|
-
icon: e ? /* @__PURE__ */
|
|
26333
|
+
icon: e ? /* @__PURE__ */ L(Oe, {
|
|
26334
26334
|
size: m.SM,
|
|
26335
26335
|
className: dx.starFilledIcon
|
|
26336
|
-
}) : /* @__PURE__ */
|
|
26336
|
+
}) : /* @__PURE__ */ L(De, { size: m.SM }),
|
|
26337
26337
|
"aria-label": r,
|
|
26338
26338
|
onClick: t
|
|
26339
|
-
}), px = { tag: "_tag_1ife5_1" }, mx = ({ label: e, className: t = "dial-tiny-text" }) => /* @__PURE__ */
|
|
26339
|
+
}), px = { tag: "_tag_1ife5_1" }, mx = ({ label: e, className: t = "dial-tiny-text" }) => /* @__PURE__ */ L(ie, {
|
|
26340
26340
|
label: e,
|
|
26341
26341
|
className: G(t, px.tag)
|
|
26342
26342
|
}), hx = 1, gx = ({ topics: e, overflowAriaLabel: t }) => {
|
|
@@ -26357,14 +26357,14 @@ var Ub = (e) => /* @__PURE__ */ R(M, { ...e }), Wb = (e) => /* @__PURE__ */ R(_,
|
|
|
26357
26357
|
r(o < n.length ? Math.max(0, o - 1) : n.length);
|
|
26358
26358
|
}, [e.join("\0"), e.length]);
|
|
26359
26359
|
let a = e.length - n;
|
|
26360
|
-
return /* @__PURE__ */
|
|
26360
|
+
return /* @__PURE__ */ R("div", {
|
|
26361
26361
|
ref: i,
|
|
26362
26362
|
className: "flex flex-wrap gap-2",
|
|
26363
|
-
children: [e.slice(0, n).map((e) => /* @__PURE__ */
|
|
26363
|
+
children: [e.slice(0, n).map((e) => /* @__PURE__ */ L(mx, { label: e }, e)), a > 0 && /* @__PURE__ */ L(ae, {
|
|
26364
26364
|
tooltip: e.slice(n).join(", "),
|
|
26365
|
-
children: /* @__PURE__ */
|
|
26365
|
+
children: /* @__PURE__ */ L("span", {
|
|
26366
26366
|
"aria-label": t?.(a) ?? `and ${a} more topics`,
|
|
26367
|
-
children: /* @__PURE__ */
|
|
26367
|
+
children: /* @__PURE__ */ L(mx, { label: `+${a}` })
|
|
26368
26368
|
})
|
|
26369
26369
|
})]
|
|
26370
26370
|
});
|
|
@@ -26380,7 +26380,7 @@ var Ub = (e) => /* @__PURE__ */ R(M, { ...e }), Wb = (e) => /* @__PURE__ */ R(_,
|
|
|
26380
26380
|
i,
|
|
26381
26381
|
e.id
|
|
26382
26382
|
]);
|
|
26383
|
-
return /* @__PURE__ */
|
|
26383
|
+
return /* @__PURE__ */ R("article", {
|
|
26384
26384
|
...n ? {
|
|
26385
26385
|
role: "button",
|
|
26386
26386
|
tabIndex: 0,
|
|
@@ -26391,19 +26391,19 @@ var Ub = (e) => /* @__PURE__ */ R(M, { ...e }), Wb = (e) => /* @__PURE__ */ R(_,
|
|
|
26391
26391
|
style: Qb(e),
|
|
26392
26392
|
className: G("relative box-border flex cursor-pointer flex-col gap-[14px]", "rounded-[20px] border-2 p-[22px]", rx.card, e.isFeatured ? rx.featuredCard : void 0, l ? "border-accent-primary !bg-accent-primary-alpha" : "border-transparent", u),
|
|
26393
26393
|
children: [
|
|
26394
|
-
e.isFeatured && /* @__PURE__ */
|
|
26394
|
+
e.isFeatured && /* @__PURE__ */ L("div", {
|
|
26395
26395
|
className: "absolute end-[22px] top-0 -translate-y-1/2",
|
|
26396
|
-
children: /* @__PURE__ */
|
|
26396
|
+
children: /* @__PURE__ */ L(cx, {
|
|
26397
26397
|
label: o,
|
|
26398
26398
|
className: v
|
|
26399
26399
|
})
|
|
26400
26400
|
}),
|
|
26401
|
-
l && /* @__PURE__ */
|
|
26401
|
+
l && /* @__PURE__ */ L(ce, {
|
|
26402
26402
|
size: m.SM,
|
|
26403
26403
|
className: "absolute end-3 top-3 shrink-0 text-accent-primary",
|
|
26404
26404
|
"aria-hidden": !0
|
|
26405
26405
|
}),
|
|
26406
|
-
/* @__PURE__ */
|
|
26406
|
+
/* @__PURE__ */ L(ax, {
|
|
26407
26407
|
icon: e.iconUrl,
|
|
26408
26408
|
type: e.type,
|
|
26409
26409
|
name: e.name,
|
|
@@ -26414,31 +26414,31 @@ var Ub = (e) => /* @__PURE__ */ R(M, { ...e }), Wb = (e) => /* @__PURE__ */ R(_,
|
|
|
26414
26414
|
typeColor: Xb[e.type],
|
|
26415
26415
|
iconClassName: rx.cardIcon
|
|
26416
26416
|
}),
|
|
26417
|
-
/* @__PURE__ */
|
|
26417
|
+
/* @__PURE__ */ L("p", {
|
|
26418
26418
|
className: G(_, "line-clamp-2 min-h-[44px] !leading-[22px]", rx.description),
|
|
26419
26419
|
children: e.description
|
|
26420
26420
|
}),
|
|
26421
|
-
/* @__PURE__ */
|
|
26421
|
+
/* @__PURE__ */ R("div", {
|
|
26422
26422
|
className: "flex min-h-[28px] items-center justify-between gap-2",
|
|
26423
|
-
children: [/* @__PURE__ */
|
|
26423
|
+
children: [/* @__PURE__ */ L(gx, { topics: e.topics }), /* @__PURE__ */ L(ox, {
|
|
26424
26424
|
credentials: e.credentials,
|
|
26425
26425
|
loggedOutLabel: p
|
|
26426
26426
|
})]
|
|
26427
26427
|
}),
|
|
26428
|
-
/* @__PURE__ */
|
|
26428
|
+
/* @__PURE__ */ L("div", {
|
|
26429
26429
|
className: "mt-auto border-t border-tertiary pt-3",
|
|
26430
|
-
children: /* @__PURE__ */
|
|
26430
|
+
children: /* @__PURE__ */ R("div", {
|
|
26431
26431
|
className: "flex items-center gap-2",
|
|
26432
|
-
children: [/* @__PURE__ */
|
|
26432
|
+
children: [/* @__PURE__ */ L("div", {
|
|
26433
26433
|
className: "min-w-0 flex-1",
|
|
26434
|
-
children: e.folder.length > 0 && /* @__PURE__ */
|
|
26434
|
+
children: e.folder.length > 0 && /* @__PURE__ */ L(ux, {
|
|
26435
26435
|
segments: e.folder,
|
|
26436
26436
|
labelClassName: y,
|
|
26437
26437
|
leafClassName: b
|
|
26438
26438
|
})
|
|
26439
|
-
}), /* @__PURE__ */
|
|
26439
|
+
}), /* @__PURE__ */ L(fx, {
|
|
26440
26440
|
isStarred: h,
|
|
26441
|
-
size:
|
|
26441
|
+
size: F.Small,
|
|
26442
26442
|
onClick: C,
|
|
26443
26443
|
ariaLabel: h ? c : s,
|
|
26444
26444
|
className: G(rx.starBtn, !h && rx.emptyStarHidden)
|
|
@@ -26449,7 +26449,7 @@ var Ub = (e) => /* @__PURE__ */ R(M, { ...e }), Wb = (e) => /* @__PURE__ */ R(_,
|
|
|
26449
26449
|
});
|
|
26450
26450
|
}, vx = ({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, onItemClick: a, featuredLabel: o, addToFavoritesAriaLabel: s, removeFromFavoritesAriaLabel: c, selectedItemId: l, credentialsBadgeLoggedOutLabel: u }) => {
|
|
26451
26451
|
let d = e * n, f = t.slice(d, d + n);
|
|
26452
|
-
return /* @__PURE__ */
|
|
26452
|
+
return /* @__PURE__ */ L("div", {
|
|
26453
26453
|
style: {
|
|
26454
26454
|
position: "absolute",
|
|
26455
26455
|
top: e * 268,
|
|
@@ -26459,9 +26459,9 @@ var Ub = (e) => /* @__PURE__ */ R(M, { ...e }), Wb = (e) => /* @__PURE__ */ R(_,
|
|
|
26459
26459
|
className: "flex gap-5 pb-5",
|
|
26460
26460
|
children: Array.from({ length: n }, (e, t) => {
|
|
26461
26461
|
let n = f[t];
|
|
26462
|
-
return /* @__PURE__ */
|
|
26462
|
+
return /* @__PURE__ */ L("div", {
|
|
26463
26463
|
className: "h-full min-w-0 flex-1",
|
|
26464
|
-
children: n && /* @__PURE__ */
|
|
26464
|
+
children: n && /* @__PURE__ */ L(_x, {
|
|
26465
26465
|
item: n,
|
|
26466
26466
|
query: r,
|
|
26467
26467
|
initialIsStarred: n.isStarred,
|
|
@@ -26501,16 +26501,16 @@ var Ub = (e) => /* @__PURE__ */ R(M, { ...e }), Wb = (e) => /* @__PURE__ */ R(_,
|
|
|
26501
26501
|
o,
|
|
26502
26502
|
f
|
|
26503
26503
|
]);
|
|
26504
|
-
return a ? /* @__PURE__ */
|
|
26504
|
+
return a ? /* @__PURE__ */ L("div", {
|
|
26505
26505
|
className: "grid gap-5 p-5",
|
|
26506
26506
|
style: { gridTemplateColumns: `repeat(${g}, minmax(0, 1fr))` },
|
|
26507
|
-
children: Array.from({ length: g * 3 }, (e, t) => /* @__PURE__ */
|
|
26507
|
+
children: Array.from({ length: g * 3 }, (e, t) => /* @__PURE__ */ L("div", {
|
|
26508
26508
|
className: G("rounded-[6px] border p-4", rx.skeletonCard),
|
|
26509
26509
|
style: { height: 248 },
|
|
26510
|
-
children: /* @__PURE__ */
|
|
26510
|
+
children: /* @__PURE__ */ L(P, {
|
|
26511
26511
|
avatar: {
|
|
26512
26512
|
size: 48,
|
|
26513
|
-
shape:
|
|
26513
|
+
shape: ne.Square
|
|
26514
26514
|
},
|
|
26515
26515
|
showTitle: { width: `${60 + t * 17 % 30}%` },
|
|
26516
26516
|
paragraph: { rows: 3 },
|
|
@@ -26518,19 +26518,19 @@ var Ub = (e) => /* @__PURE__ */ R(M, { ...e }), Wb = (e) => /* @__PURE__ */ R(_,
|
|
|
26518
26518
|
color: "var(--bg-layer-4)"
|
|
26519
26519
|
})
|
|
26520
26520
|
}, t))
|
|
26521
|
-
}) : e.length === 0 ? /* @__PURE__ */
|
|
26521
|
+
}) : e.length === 0 ? /* @__PURE__ */ L("div", {
|
|
26522
26522
|
className: "flex w-full flex-col items-center justify-center gap-2 py-20",
|
|
26523
|
-
children: /* @__PURE__ */
|
|
26523
|
+
children: /* @__PURE__ */ L(gr, {
|
|
26524
26524
|
label: s,
|
|
26525
26525
|
icon: null
|
|
26526
26526
|
})
|
|
26527
|
-
}) : /* @__PURE__ */
|
|
26527
|
+
}) : /* @__PURE__ */ L("div", {
|
|
26528
26528
|
ref: p,
|
|
26529
26529
|
className: "relative",
|
|
26530
26530
|
style: { height: _ },
|
|
26531
26531
|
children: Array.from({ length: h - m }, (e, t) => {
|
|
26532
26532
|
let n = m + t;
|
|
26533
|
-
return /* @__PURE__ */
|
|
26533
|
+
return /* @__PURE__ */ L(vx, {
|
|
26534
26534
|
rowIndex: n,
|
|
26535
26535
|
...v
|
|
26536
26536
|
}, n);
|
|
@@ -26538,17 +26538,17 @@ var Ub = (e) => /* @__PURE__ */ R(M, { ...e }), Wb = (e) => /* @__PURE__ */ R(_,
|
|
|
26538
26538
|
});
|
|
26539
26539
|
}), bx = { cancelButton: "_cancelButton_tjpsd_1" }, xx = ({ version: e, hasExistingPublicationInFolder: t, isSubmitDisabled: n, isSubmitLoading: r, onCancel: i, onSubmit: a, texts: o = {} }) => {
|
|
26540
26540
|
let { cancelLabel: s = "Cancel", publishDefaultLabel: c = "Publish", updateLabel: l = "Update version {version}", publishingInProgressLabel: u = "Publishing…" } = o, d = r ? u : t && e != null ? l.replace("{version}", e) : c;
|
|
26541
|
-
return /* @__PURE__ */
|
|
26541
|
+
return /* @__PURE__ */ R("div", {
|
|
26542
26542
|
className: "flex items-center justify-end gap-2 border-t border-tertiary px-3.5 py-4",
|
|
26543
|
-
children: [/* @__PURE__ */
|
|
26543
|
+
children: [/* @__PURE__ */ L(Gb, {
|
|
26544
26544
|
label: s,
|
|
26545
26545
|
disabled: r,
|
|
26546
26546
|
onClick: i,
|
|
26547
26547
|
className: bx.cancelButton
|
|
26548
|
-
}), /* @__PURE__ */
|
|
26548
|
+
}), /* @__PURE__ */ L(Wb, {
|
|
26549
26549
|
label: d,
|
|
26550
26550
|
disabled: n,
|
|
26551
|
-
iconBefore: r ? /* @__PURE__ */
|
|
26551
|
+
iconBefore: r ? /* @__PURE__ */ L(re, { size: m.SM }) : void 0,
|
|
26552
26552
|
onClick: a
|
|
26553
26553
|
})]
|
|
26554
26554
|
});
|
|
@@ -26561,18 +26561,18 @@ var Ub = (e) => /* @__PURE__ */ R(M, { ...e }), Wb = (e) => /* @__PURE__ */ R(_,
|
|
|
26561
26561
|
fadeIn: "_fadeIn_oh1ub_1",
|
|
26562
26562
|
resizeHandler: "_resizeHandler_oh1ub_31"
|
|
26563
26563
|
};
|
|
26564
|
-
i(({ title: e, titleClassName: t = "dial-h1-text", leftActions: n, className: r, rightActions: i }) => /* @__PURE__ */
|
|
26564
|
+
i(({ title: e, titleClassName: t = "dial-h1-text", leftActions: n, className: r, rightActions: i }) => /* @__PURE__ */ R("div", {
|
|
26565
26565
|
className: G("flex h-12 shrink-0 items-center gap-2 px-4", r, Sx.header),
|
|
26566
26566
|
children: [
|
|
26567
|
-
n && /* @__PURE__ */
|
|
26567
|
+
n && /* @__PURE__ */ L("div", {
|
|
26568
26568
|
className: "flex items-center gap-1",
|
|
26569
26569
|
children: n
|
|
26570
26570
|
}),
|
|
26571
|
-
/* @__PURE__ */
|
|
26571
|
+
/* @__PURE__ */ L(S, {
|
|
26572
26572
|
text: e,
|
|
26573
26573
|
className: G("min-w-0 flex-1 truncate", t)
|
|
26574
26574
|
}),
|
|
26575
|
-
i && /* @__PURE__ */
|
|
26575
|
+
i && /* @__PURE__ */ L("div", {
|
|
26576
26576
|
className: "flex items-center gap-1",
|
|
26577
26577
|
children: i
|
|
26578
26578
|
})
|
|
@@ -26580,10 +26580,10 @@ i(({ title: e, titleClassName: t = "dial-h1-text", leftActions: n, className: r,
|
|
|
26580
26580
|
}));
|
|
26581
26581
|
var Cx = { icon: "_icon_1b1ye_1" }, wx = i(({ placeholder: e, value: t, onChange: n, clearLabel: r, ariaLabel: i, iconClassName: a = Cx.icon, wrapperClassName: o, rowClassName: s, colors: c }) => {
|
|
26582
26582
|
let u = l(() => Zn({ "--si-icon": c?.icon }), [c]);
|
|
26583
|
-
return /* @__PURE__ */
|
|
26583
|
+
return /* @__PURE__ */ L("div", {
|
|
26584
26584
|
className: G("px-3 py-2", o),
|
|
26585
26585
|
style: u,
|
|
26586
|
-
children: /* @__PURE__ */
|
|
26586
|
+
children: /* @__PURE__ */ L(Rb, {
|
|
26587
26587
|
value: t,
|
|
26588
26588
|
onChange: n,
|
|
26589
26589
|
placeholder: e,
|
|
@@ -26597,15 +26597,15 @@ var Cx = { icon: "_icon_1b1ye_1" }, wx = i(({ placeholder: e, value: t, onChange
|
|
|
26597
26597
|
})
|
|
26598
26598
|
});
|
|
26599
26599
|
});
|
|
26600
|
-
i(({ label: e, icon: t =
|
|
26601
|
-
icon: /* @__PURE__ */
|
|
26600
|
+
i(({ label: e, icon: t = be, iconSize: n = 48 }) => /* @__PURE__ */ L(gr, {
|
|
26601
|
+
icon: /* @__PURE__ */ L(t, {
|
|
26602
26602
|
"aria-hidden": !0,
|
|
26603
26603
|
size: n,
|
|
26604
26604
|
stroke: 1
|
|
26605
26605
|
}),
|
|
26606
26606
|
label: e
|
|
26607
|
-
})), i(({ label: e, icon: t =
|
|
26608
|
-
icon: /* @__PURE__ */
|
|
26607
|
+
})), i(({ label: e, icon: t = je, iconSize: n = 45 }) => /* @__PURE__ */ L(gr, {
|
|
26608
|
+
icon: /* @__PURE__ */ L(t, {
|
|
26609
26609
|
"aria-hidden": !0,
|
|
26610
26610
|
size: n,
|
|
26611
26611
|
stroke: 1
|
|
@@ -26615,58 +26615,58 @@ i(({ label: e, icon: t = ye, iconSize: n = 48 }) => /* @__PURE__ */ R(gr, {
|
|
|
26615
26615
|
var Tx = {
|
|
26616
26616
|
title: "_title_jw4lf_1",
|
|
26617
26617
|
count: "_count_jw4lf_5"
|
|
26618
|
-
}, Ex = ({ title: e, postfix: t, titleClassName: n = "dial-h3-text", postfixClassName: r = "dial-tiny-text", className: i, query: a, trailing: o }) => /* @__PURE__ */
|
|
26618
|
+
}, Ex = ({ title: e, postfix: t, titleClassName: n = "dial-h3-text", postfixClassName: r = "dial-tiny-text", className: i, query: a, trailing: o }) => /* @__PURE__ */ R("div", {
|
|
26619
26619
|
className: G("flex items-center gap-2", i),
|
|
26620
26620
|
children: [
|
|
26621
|
-
/* @__PURE__ */
|
|
26621
|
+
/* @__PURE__ */ L("h3", {
|
|
26622
26622
|
className: G("min-w-0", n, Tx.title),
|
|
26623
|
-
children: a ? /* @__PURE__ */
|
|
26623
|
+
children: a ? /* @__PURE__ */ L(hr, {
|
|
26624
26624
|
text: e,
|
|
26625
26625
|
query: a
|
|
26626
|
-
}) : /* @__PURE__ */
|
|
26626
|
+
}) : /* @__PURE__ */ L(S, { text: e })
|
|
26627
26627
|
}),
|
|
26628
|
-
t != null && /* @__PURE__ */
|
|
26628
|
+
t != null && /* @__PURE__ */ L(S, {
|
|
26629
26629
|
className: G(r, Tx.count),
|
|
26630
26630
|
text: t
|
|
26631
26631
|
}),
|
|
26632
|
-
o != null && /* @__PURE__ */
|
|
26632
|
+
o != null && /* @__PURE__ */ L("div", {
|
|
26633
26633
|
className: "ms-auto",
|
|
26634
26634
|
children: o
|
|
26635
26635
|
})
|
|
26636
26636
|
]
|
|
26637
|
-
}), Dx = ({ item: e, nameClassName: t, versionClassName: n, showVersion: r = !0, typeClassName: i = "dial-caption-text font-semibold", iconBadgeClassName: a = "rounded-[14px]", featuredChipClassName: o, featuredLabel: s = "Featured", hasFeaturedTag: c = !0, iconSize: l = 48, query: u, footer: d }) => /* @__PURE__ */
|
|
26637
|
+
}), Dx = ({ item: e, nameClassName: t, versionClassName: n, showVersion: r = !0, typeClassName: i = "dial-caption-text font-semibold", iconBadgeClassName: a = "rounded-[14px]", featuredChipClassName: o, featuredLabel: s = "Featured", hasFeaturedTag: c = !0, iconSize: l = 48, query: u, footer: d }) => /* @__PURE__ */ R("div", {
|
|
26638
26638
|
className: "flex items-start gap-2",
|
|
26639
26639
|
style: Qb(e),
|
|
26640
|
-
children: [/* @__PURE__ */
|
|
26640
|
+
children: [/* @__PURE__ */ L(dr, {
|
|
26641
26641
|
src: e.iconUrl,
|
|
26642
26642
|
size: l,
|
|
26643
26643
|
initialsName: e.name,
|
|
26644
26644
|
badgeClassName: a
|
|
26645
|
-
}), /* @__PURE__ */
|
|
26645
|
+
}), /* @__PURE__ */ R("div", {
|
|
26646
26646
|
className: G("flex min-w-0 flex-1 flex-col", d == null ? "gap-1" : "self-stretch"),
|
|
26647
26647
|
children: [
|
|
26648
|
-
/* @__PURE__ */
|
|
26648
|
+
/* @__PURE__ */ R("div", {
|
|
26649
26649
|
className: "relative flex flex-row items-center justify-between",
|
|
26650
|
-
children: [/* @__PURE__ */
|
|
26650
|
+
children: [/* @__PURE__ */ L("span", {
|
|
26651
26651
|
className: G("uppercase tracking-[0.06em]", i),
|
|
26652
26652
|
style: { color: Xb[e.type] },
|
|
26653
26653
|
children: e.type
|
|
26654
|
-
}), c && e.isFeatured && /* @__PURE__ */
|
|
26654
|
+
}), c && e.isFeatured && /* @__PURE__ */ L("div", {
|
|
26655
26655
|
className: "absolute end-0 top-[-6px]",
|
|
26656
|
-
children: /* @__PURE__ */
|
|
26656
|
+
children: /* @__PURE__ */ L(cx, {
|
|
26657
26657
|
label: s,
|
|
26658
26658
|
className: o
|
|
26659
26659
|
})
|
|
26660
26660
|
})]
|
|
26661
26661
|
}),
|
|
26662
|
-
/* @__PURE__ */
|
|
26662
|
+
/* @__PURE__ */ L(Ex, {
|
|
26663
26663
|
title: e.name,
|
|
26664
26664
|
postfix: r ? e.version : void 0,
|
|
26665
26665
|
postfixClassName: n,
|
|
26666
26666
|
titleClassName: t,
|
|
26667
26667
|
query: u
|
|
26668
26668
|
}),
|
|
26669
|
-
d != null && /* @__PURE__ */
|
|
26669
|
+
d != null && /* @__PURE__ */ L("div", {
|
|
26670
26670
|
className: "mt-auto pt-1",
|
|
26671
26671
|
children: d
|
|
26672
26672
|
})
|
|
@@ -26698,9 +26698,9 @@ var Tx = {
|
|
|
26698
26698
|
u,
|
|
26699
26699
|
T
|
|
26700
26700
|
]), ee = b ? nt([...b, s]) : null;
|
|
26701
|
-
return /* @__PURE__ */
|
|
26701
|
+
return /* @__PURE__ */ R("div", {
|
|
26702
26702
|
className: G(a && "pointer-events-none opacity-60"),
|
|
26703
|
-
children: [/* @__PURE__ */
|
|
26703
|
+
children: [/* @__PURE__ */ L(w, {
|
|
26704
26704
|
items: k,
|
|
26705
26705
|
showFiles: !1,
|
|
26706
26706
|
selectedPath: t == null ? void 0 : nt(t),
|
|
@@ -26719,7 +26719,7 @@ var Tx = {
|
|
|
26719
26719
|
},
|
|
26720
26720
|
onCreateFolderCancel: () => x(null),
|
|
26721
26721
|
emptyStateDescription: T ? c.replace("{query}", i.trim()) : void 0
|
|
26722
|
-
}), /* @__PURE__ */
|
|
26722
|
+
}), /* @__PURE__ */ R("button", {
|
|
26723
26723
|
type: "button",
|
|
26724
26724
|
disabled: a,
|
|
26725
26725
|
onClick: () => {
|
|
@@ -26729,97 +26729,97 @@ var Tx = {
|
|
|
26729
26729
|
n && y(new Set(v).add(n));
|
|
26730
26730
|
},
|
|
26731
26731
|
className: "dial-small-semi-text mt-2 flex w-full items-center gap-2 border-t border-tertiary px-3 py-3 text-accent-primary",
|
|
26732
|
-
children: [/* @__PURE__ */
|
|
26732
|
+
children: [/* @__PURE__ */ L(we, { size: m.SM }), o]
|
|
26733
26733
|
})]
|
|
26734
26734
|
});
|
|
26735
|
-
}, kx = ({ entries: e, currentVersion: t, isLoading: n = !1, hasError: r = !1, versionPrefix: i = "Version", currentBadgeLabel: a = "Current", emptyStateText: o = "Not published to this folder yet — this will be the first version here.", loadingText: s = "Loading history…", errorText: c = "Failed to load publish history.", versionClassName: l = "dial-small-text text-primary", dateClassName: u = "dial-small-text text-secondary", emptyStateClassName: d = "dial-small-text text-secondary" }) => n ? /* @__PURE__ */
|
|
26735
|
+
}, kx = ({ entries: e, currentVersion: t, isLoading: n = !1, hasError: r = !1, versionPrefix: i = "Version", currentBadgeLabel: a = "Current", emptyStateText: o = "Not published to this folder yet — this will be the first version here.", loadingText: s = "Loading history…", errorText: c = "Failed to load publish history.", versionClassName: l = "dial-small-text text-primary", dateClassName: u = "dial-small-text text-secondary", emptyStateClassName: d = "dial-small-text text-secondary" }) => n ? /* @__PURE__ */ L("p", {
|
|
26736
26736
|
className: d,
|
|
26737
26737
|
children: s
|
|
26738
|
-
}) : r ? /* @__PURE__ */
|
|
26738
|
+
}) : r ? /* @__PURE__ */ L("p", {
|
|
26739
26739
|
className: d,
|
|
26740
26740
|
role: "alert",
|
|
26741
26741
|
children: c
|
|
26742
|
-
}) : e.length === 0 ? /* @__PURE__ */
|
|
26742
|
+
}) : e.length === 0 ? /* @__PURE__ */ L("p", {
|
|
26743
26743
|
className: d,
|
|
26744
26744
|
children: o
|
|
26745
|
-
}) : /* @__PURE__ */
|
|
26745
|
+
}) : /* @__PURE__ */ L("ul", { children: e.map((e, n) => /* @__PURE__ */ R("li", {
|
|
26746
26746
|
className: G("flex items-center justify-between gap-2 rounded-lg px-3 py-[11px]", n % 2 == 0 && "bg-layer-2"),
|
|
26747
|
-
children: [/* @__PURE__ */
|
|
26747
|
+
children: [/* @__PURE__ */ R("span", {
|
|
26748
26748
|
className: "flex min-w-0 items-center gap-2",
|
|
26749
|
-
children: [/* @__PURE__ */
|
|
26749
|
+
children: [/* @__PURE__ */ R("span", {
|
|
26750
26750
|
className: l,
|
|
26751
26751
|
children: [
|
|
26752
26752
|
i,
|
|
26753
26753
|
" ",
|
|
26754
26754
|
e.version
|
|
26755
26755
|
]
|
|
26756
|
-
}), e.version === t && /* @__PURE__ */
|
|
26756
|
+
}), e.version === t && /* @__PURE__ */ L(ie, {
|
|
26757
26757
|
label: a,
|
|
26758
26758
|
className: "shrink-0 !cursor-default whitespace-nowrap !border-tertiary !bg-accent-primary-alpha !text-accent-primary"
|
|
26759
26759
|
})]
|
|
26760
|
-
}), /* @__PURE__ */
|
|
26760
|
+
}), /* @__PURE__ */ L("span", {
|
|
26761
26761
|
className: u,
|
|
26762
26762
|
children: Xe(e.publishedAt)
|
|
26763
26763
|
})]
|
|
26764
26764
|
}, `${e.version}-${n}`)) }), Ax = ({ 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 = {} }) => {
|
|
26765
|
-
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, historyLoadingText: k, historyErrorText: ee, rootFolderLabel: A = "Organization" } = y, [M,
|
|
26766
|
-
hasSelectedFolder:
|
|
26765
|
+
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, historyLoadingText: k, historyErrorText: ee, rootFolderLabel: A = "Organization" } = y, [M, te] = d(""), N = o != null, P = l(() => Je({
|
|
26766
|
+
hasSelectedFolder: N,
|
|
26767
26767
|
hasExistingPublicationInFolder: m,
|
|
26768
26768
|
hasWriteAccess: h,
|
|
26769
26769
|
isSubmitting: g,
|
|
26770
26770
|
hasSubmitError: _,
|
|
26771
26771
|
allowReplace: v
|
|
26772
26772
|
}), [
|
|
26773
|
-
|
|
26773
|
+
N,
|
|
26774
26774
|
m,
|
|
26775
26775
|
h,
|
|
26776
26776
|
g,
|
|
26777
26777
|
_,
|
|
26778
26778
|
v
|
|
26779
|
-
]),
|
|
26780
|
-
if (!
|
|
26779
|
+
]), ne = N ? o[o.length - 1] ?? A : "", re = l(() => {
|
|
26780
|
+
if (!N) return [];
|
|
26781
26781
|
let e = o.join("/");
|
|
26782
26782
|
return n.filter((t) => t.folderPath.join("/") === e);
|
|
26783
26783
|
}, [
|
|
26784
26784
|
n,
|
|
26785
26785
|
o,
|
|
26786
|
-
|
|
26786
|
+
N
|
|
26787
26787
|
]);
|
|
26788
|
-
return /* @__PURE__ */
|
|
26788
|
+
return /* @__PURE__ */ R("div", {
|
|
26789
26789
|
className: "flex flex-col gap-5",
|
|
26790
26790
|
children: [
|
|
26791
|
-
/* @__PURE__ */
|
|
26791
|
+
/* @__PURE__ */ L("div", {
|
|
26792
26792
|
className: "flex items-center justify-between gap-3 rounded-xl border border-tertiary bg-layer-2 px-3.5 py-3",
|
|
26793
|
-
children: e ? /* @__PURE__ */
|
|
26793
|
+
children: e ? /* @__PURE__ */ R(se, { children: [/* @__PURE__ */ L(Dx, {
|
|
26794
26794
|
item: e,
|
|
26795
26795
|
iconSize: 40,
|
|
26796
26796
|
hasFeaturedTag: !1,
|
|
26797
26797
|
showVersion: !1
|
|
26798
|
-
}), /* @__PURE__ */
|
|
26798
|
+
}), /* @__PURE__ */ L(ie, {
|
|
26799
26799
|
label: `Version ${e.version} · ${b}`,
|
|
26800
26800
|
className: "shrink-0 whitespace-nowrap !border-tertiary !bg-accent-primary-alpha !text-accent-primary"
|
|
26801
|
-
})] }) : /* @__PURE__ */
|
|
26801
|
+
})] }) : /* @__PURE__ */ L("span", {
|
|
26802
26802
|
className: "dial-body-semi-text truncate text-primary",
|
|
26803
26803
|
children: t?.title
|
|
26804
26804
|
})
|
|
26805
26805
|
}),
|
|
26806
|
-
/* @__PURE__ */
|
|
26807
|
-
/* @__PURE__ */
|
|
26806
|
+
/* @__PURE__ */ R("div", { children: [
|
|
26807
|
+
/* @__PURE__ */ L("div", {
|
|
26808
26808
|
className: "dial-body-semi-text mb-2 text-primary",
|
|
26809
26809
|
children: x
|
|
26810
26810
|
}),
|
|
26811
|
-
/* @__PURE__ */
|
|
26811
|
+
/* @__PURE__ */ L("div", {
|
|
26812
26812
|
className: "mb-3",
|
|
26813
|
-
children: /* @__PURE__ */
|
|
26813
|
+
children: /* @__PURE__ */ L(wx, {
|
|
26814
26814
|
value: M,
|
|
26815
|
-
onChange:
|
|
26815
|
+
onChange: te,
|
|
26816
26816
|
placeholder: S,
|
|
26817
26817
|
clearLabel: C,
|
|
26818
26818
|
wrapperClassName: "px-0",
|
|
26819
26819
|
rowClassName: "!rounded-lg"
|
|
26820
26820
|
})
|
|
26821
26821
|
}),
|
|
26822
|
-
/* @__PURE__ */
|
|
26822
|
+
/* @__PURE__ */ L(Ox, {
|
|
26823
26823
|
items: a,
|
|
26824
26824
|
selectedPath: o,
|
|
26825
26825
|
onSelectedPathChange: s,
|
|
@@ -26832,25 +26832,25 @@ var Tx = {
|
|
|
26832
26832
|
noResultsText: O,
|
|
26833
26833
|
rootLabel: A
|
|
26834
26834
|
}),
|
|
26835
|
-
|
|
26835
|
+
P.calloutKind !== Ve.None && P.calloutKind !== Ve.Info && /* @__PURE__ */ L("div", {
|
|
26836
26836
|
className: "mt-3",
|
|
26837
|
-
children: /* @__PURE__ */
|
|
26838
|
-
variant: jx(
|
|
26839
|
-
message: Nx(
|
|
26837
|
+
children: /* @__PURE__ */ L(j, {
|
|
26838
|
+
variant: jx(P.calloutKind),
|
|
26839
|
+
message: Nx(P.calloutKind, {
|
|
26840
26840
|
replaceWarning: T,
|
|
26841
26841
|
noAccessError: E,
|
|
26842
26842
|
submitError: D,
|
|
26843
|
-
folderName:
|
|
26843
|
+
folderName: ne,
|
|
26844
26844
|
version: e?.version ?? t?.version
|
|
26845
26845
|
})
|
|
26846
26846
|
})
|
|
26847
26847
|
})
|
|
26848
26848
|
] }),
|
|
26849
|
-
|
|
26849
|
+
N && e && /* @__PURE__ */ R("div", { children: [/* @__PURE__ */ L("div", {
|
|
26850
26850
|
className: "dial-body-semi-text mb-2 text-primary",
|
|
26851
26851
|
children: w
|
|
26852
|
-
}), /* @__PURE__ */
|
|
26853
|
-
entries:
|
|
26852
|
+
}), /* @__PURE__ */ L(kx, {
|
|
26853
|
+
entries: re,
|
|
26854
26854
|
isLoading: r,
|
|
26855
26855
|
hasError: i,
|
|
26856
26856
|
currentVersion: e.version,
|
|
@@ -26859,11 +26859,11 @@ var Tx = {
|
|
|
26859
26859
|
})] })
|
|
26860
26860
|
]
|
|
26861
26861
|
});
|
|
26862
|
-
}, jx = (e) => e === Ve.ReplaceWarning ?
|
|
26862
|
+
}, jx = (e) => e === Ve.ReplaceWarning ? I.Warning : I.Error, Mx = (e, t) => {
|
|
26863
26863
|
let [n, r, ...i] = e.split("{folder}");
|
|
26864
|
-
return r === void 0 || i.length > 0 ? e : /* @__PURE__ */
|
|
26864
|
+
return r === void 0 || i.length > 0 ? e : /* @__PURE__ */ R(se, { children: [
|
|
26865
26865
|
n,
|
|
26866
|
-
/* @__PURE__ */
|
|
26866
|
+
/* @__PURE__ */ L("strong", {
|
|
26867
26867
|
className: "font-semibold",
|
|
26868
26868
|
children: t
|
|
26869
26869
|
}),
|
|
@@ -26877,33 +26877,33 @@ var Tx = {
|
|
|
26877
26877
|
valueTrue: "_valueTrue_orno3_17",
|
|
26878
26878
|
valueFalse: "_valueFalse_orno3_21",
|
|
26879
26879
|
valueText: "_valueText_orno3_25"
|
|
26880
|
-
}, Fx = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */
|
|
26880
|
+
}, Fx = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ R(se, { children: [/* @__PURE__ */ L(fe, {
|
|
26881
26881
|
size: m.MD,
|
|
26882
26882
|
className: G(r, Px.checkIcon)
|
|
26883
|
-
}), /* @__PURE__ */
|
|
26883
|
+
}), /* @__PURE__ */ L("span", {
|
|
26884
26884
|
className: G(n, Px.valueTrue),
|
|
26885
26885
|
children: i
|
|
26886
|
-
})] }) : e === !1 ? /* @__PURE__ */
|
|
26886
|
+
})] }) : e === !1 ? /* @__PURE__ */ L("span", {
|
|
26887
26887
|
className: G(t, Px.valueFalse),
|
|
26888
26888
|
children: a
|
|
26889
|
-
}) : /* @__PURE__ */
|
|
26889
|
+
}) : /* @__PURE__ */ L("span", {
|
|
26890
26890
|
className: G(t, Px.valueText),
|
|
26891
26891
|
children: e
|
|
26892
|
-
}), Ix = ({ sectionLabel: e = "Section", values: t, labelClassName: n = "dial-small-semi-text", valueClassName: r = "dial-small-text", valueTrueClassName: i = "dial-small-semi-text", checkIconClassName: a, sectionClassName: o = "dial-caption-text", yesLabel: s = "Yes", noLabel: c = "No" }) => /* @__PURE__ */
|
|
26892
|
+
}), Ix = ({ sectionLabel: e = "Section", values: t, labelClassName: n = "dial-small-semi-text", valueClassName: r = "dial-small-text", valueTrueClassName: i = "dial-small-semi-text", checkIconClassName: a, sectionClassName: o = "dial-caption-text", yesLabel: s = "Yes", noLabel: c = "No" }) => /* @__PURE__ */ L("div", {
|
|
26893
26893
|
className: "flex flex-col",
|
|
26894
|
-
children: t != null && t.length > 0 && /* @__PURE__ */
|
|
26894
|
+
children: t != null && t.length > 0 && /* @__PURE__ */ R("section", { children: [/* @__PURE__ */ L("p", {
|
|
26895
26895
|
className: G("mb-3 mt-0", o, Px.sectionHeading),
|
|
26896
26896
|
children: e
|
|
26897
|
-
}), /* @__PURE__ */
|
|
26897
|
+
}), /* @__PURE__ */ L("ul", {
|
|
26898
26898
|
className: "m-0 list-none p-0",
|
|
26899
|
-
children: t.map((e, t) => /* @__PURE__ */
|
|
26899
|
+
children: t.map((e, t) => /* @__PURE__ */ R("li", {
|
|
26900
26900
|
className: G("flex items-center rounded px-3 py-2", t % 2 == 0 ? Px.rowAlt : void 0),
|
|
26901
|
-
children: [/* @__PURE__ */
|
|
26901
|
+
children: [/* @__PURE__ */ L("span", {
|
|
26902
26902
|
className: G(n, Px.label, "w-2/5 shrink-0"),
|
|
26903
26903
|
children: e.label
|
|
26904
|
-
}), /* @__PURE__ */
|
|
26904
|
+
}), /* @__PURE__ */ L("div", {
|
|
26905
26905
|
className: "flex w-3/5 items-center gap-1",
|
|
26906
|
-
children: /* @__PURE__ */
|
|
26906
|
+
children: /* @__PURE__ */ L(Fx, {
|
|
26907
26907
|
value: e.value,
|
|
26908
26908
|
valueClassName: r,
|
|
26909
26909
|
valueTrueClassName: i,
|
|
@@ -26930,19 +26930,19 @@ var Tx = {
|
|
|
26930
26930
|
return !1;
|
|
26931
26931
|
}
|
|
26932
26932
|
}, zx = {
|
|
26933
|
-
[
|
|
26934
|
-
[
|
|
26935
|
-
[
|
|
26933
|
+
[Me.Python]: "Python",
|
|
26934
|
+
[Me.Curl]: "cURL",
|
|
26935
|
+
[Me.JavaScript]: "JavaScript"
|
|
26936
26936
|
}, Bx = ({ snippets: e, sectionLabel: t, copyAriaLabel: n = "Copy", codeClassName: r = "dial-code-text", sectionClassName: i = "dial-caption-text" }) => {
|
|
26937
|
-
let [s, c] = d(e[0]?.language ??
|
|
26937
|
+
let [s, c] = d(e[0]?.language ?? Me.Python);
|
|
26938
26938
|
o(() => {
|
|
26939
|
-
c(e[0]?.language ??
|
|
26939
|
+
c(e[0]?.language ?? Me.Python);
|
|
26940
26940
|
}, [e]);
|
|
26941
26941
|
let u = l(() => e.map((e) => ({
|
|
26942
26942
|
key: e.language,
|
|
26943
|
-
label: /* @__PURE__ */
|
|
26943
|
+
label: /* @__PURE__ */ R("span", {
|
|
26944
26944
|
className: "flex w-full items-center justify-between gap-2",
|
|
26945
|
-
children: [zx[e.language] ?? e.language, e.language === s && /* @__PURE__ */
|
|
26945
|
+
children: [zx[e.language] ?? e.language, e.language === s && /* @__PURE__ */ L(ce, {
|
|
26946
26946
|
size: m.SM,
|
|
26947
26947
|
"aria-hidden": !0
|
|
26948
26948
|
})]
|
|
@@ -26951,41 +26951,41 @@ var Tx = {
|
|
|
26951
26951
|
})), [e, s]), f = zx[s] ?? s, p = e.find((e) => e.language === s)?.code ?? "", h = a(() => {
|
|
26952
26952
|
navigator.clipboard.writeText(p);
|
|
26953
26953
|
}, [p]);
|
|
26954
|
-
return /* @__PURE__ */
|
|
26954
|
+
return /* @__PURE__ */ R("section", { children: [t != null && /* @__PURE__ */ L("p", {
|
|
26955
26955
|
className: G("mb-3 mt-0", i, Lx.sectionHeading),
|
|
26956
26956
|
children: t
|
|
26957
|
-
}), /* @__PURE__ */
|
|
26957
|
+
}), /* @__PURE__ */ R("div", {
|
|
26958
26958
|
className: G("overflow-hidden rounded-lg", Lx.snippetWrapper),
|
|
26959
|
-
children: [/* @__PURE__ */
|
|
26959
|
+
children: [/* @__PURE__ */ R("div", {
|
|
26960
26960
|
className: G("flex items-center justify-end gap-2 px-3 py-[6px]", Lx.snippetTabs),
|
|
26961
|
-
children: [/* @__PURE__ */
|
|
26961
|
+
children: [/* @__PURE__ */ L(x, {
|
|
26962
26962
|
items: u,
|
|
26963
26963
|
matchReferenceWidth: !1,
|
|
26964
26964
|
listClassName: "cp-dropdown-overlay",
|
|
26965
|
-
children: /* @__PURE__ */
|
|
26966
|
-
size:
|
|
26965
|
+
children: /* @__PURE__ */ L(ee, {
|
|
26966
|
+
size: F.Small,
|
|
26967
26967
|
label: f,
|
|
26968
|
-
iconAfter: /* @__PURE__ */
|
|
26968
|
+
iconAfter: /* @__PURE__ */ L(le, { size: m.SM })
|
|
26969
26969
|
})
|
|
26970
|
-
}), /* @__PURE__ */
|
|
26971
|
-
icon: /* @__PURE__ */
|
|
26970
|
+
}), /* @__PURE__ */ L(E, {
|
|
26971
|
+
icon: /* @__PURE__ */ L(pe, { size: m.SM }),
|
|
26972
26972
|
"aria-label": n,
|
|
26973
26973
|
onClick: h
|
|
26974
26974
|
})]
|
|
26975
|
-
}), /* @__PURE__ */
|
|
26975
|
+
}), /* @__PURE__ */ L("div", {
|
|
26976
26976
|
className: G("relative rounded-lg p-3", Lx.codeBlock),
|
|
26977
|
-
children: /* @__PURE__ */
|
|
26977
|
+
children: /* @__PURE__ */ L("pre", {
|
|
26978
26978
|
className: G("m-0 overflow-x-auto pe-8", r, Lx.pre),
|
|
26979
|
-
children: /* @__PURE__ */
|
|
26979
|
+
children: /* @__PURE__ */ L("code", { children: p })
|
|
26980
26980
|
})
|
|
26981
26981
|
})]
|
|
26982
26982
|
})] });
|
|
26983
26983
|
}, Vx = ({ api: e, resourceSectionLabel: t = "Resource", endpointSectionLabel: n = "Endpoint", snippetSectionLabel: r = "Code snippet", modelIdLabel: i = "Model ID", endpointLabel: a = "Endpoint", requestExampleLabel: o = "Request example", responseSchemaLabel: s = "Response schema", copyAriaLabel: c = "Copy", labelClassName: u = "dial-small-semi-text", valueClassName: f = "dial-small-text", codeClassName: p = "dial-code-text", sectionClassName: h = "dial-caption-text" }) => {
|
|
26984
26984
|
let [g, _] = d(0), v = l(() => e.endpoints ?? [], [e.endpoints]), y = v.length > 0, b = v[g] ?? null, S = l(() => v.map((e, t) => ({
|
|
26985
26985
|
key: String(t),
|
|
26986
|
-
label: /* @__PURE__ */
|
|
26986
|
+
label: /* @__PURE__ */ R("span", {
|
|
26987
26987
|
className: "flex w-full items-center justify-between gap-2",
|
|
26988
|
-
children: [e.label, t === g && /* @__PURE__ */
|
|
26988
|
+
children: [e.label, t === g && /* @__PURE__ */ L(ce, {
|
|
26989
26989
|
size: m.SM,
|
|
26990
26990
|
"aria-hidden": !0
|
|
26991
26991
|
})]
|
|
@@ -27000,53 +27000,53 @@ var Tx = {
|
|
|
27000
27000
|
value: e.resource.endpointUrl
|
|
27001
27001
|
});
|
|
27002
27002
|
let w = C.length > 0, T = (e.snippets?.length ?? 0) > 0, D = e.requestExample != null, O = e.responseSchema != null;
|
|
27003
|
-
return /* @__PURE__ */
|
|
27003
|
+
return /* @__PURE__ */ R("div", {
|
|
27004
27004
|
className: "flex flex-col gap-6",
|
|
27005
27005
|
children: [
|
|
27006
|
-
w && /* @__PURE__ */
|
|
27006
|
+
w && /* @__PURE__ */ L(Ix, {
|
|
27007
27007
|
sectionLabel: t,
|
|
27008
27008
|
values: C,
|
|
27009
27009
|
labelClassName: u,
|
|
27010
27010
|
valueClassName: f,
|
|
27011
27011
|
sectionClassName: h
|
|
27012
27012
|
}),
|
|
27013
|
-
y && /* @__PURE__ */
|
|
27014
|
-
/* @__PURE__ */
|
|
27013
|
+
y && /* @__PURE__ */ R("section", { children: [
|
|
27014
|
+
/* @__PURE__ */ R("div", {
|
|
27015
27015
|
className: "mb-3 flex items-center justify-between",
|
|
27016
|
-
children: [/* @__PURE__ */
|
|
27016
|
+
children: [/* @__PURE__ */ L("p", {
|
|
27017
27017
|
className: G("m-0", h, Lx.sectionHeading),
|
|
27018
27018
|
children: n
|
|
27019
|
-
}), /* @__PURE__ */
|
|
27019
|
+
}), /* @__PURE__ */ L(x, {
|
|
27020
27020
|
items: S,
|
|
27021
27021
|
matchReferenceWidth: !1,
|
|
27022
27022
|
listClassName: "cp-dropdown-overlay",
|
|
27023
|
-
children: /* @__PURE__ */
|
|
27024
|
-
size:
|
|
27023
|
+
children: /* @__PURE__ */ L(ee, {
|
|
27024
|
+
size: F.Small,
|
|
27025
27025
|
label: b?.label,
|
|
27026
|
-
iconAfter: /* @__PURE__ */
|
|
27026
|
+
iconAfter: /* @__PURE__ */ L(le, { size: m.SM })
|
|
27027
27027
|
})
|
|
27028
27028
|
})]
|
|
27029
27029
|
}),
|
|
27030
|
-
b != null && /* @__PURE__ */
|
|
27030
|
+
b != null && /* @__PURE__ */ R("div", {
|
|
27031
27031
|
className: G("mt-3 flex items-start gap-2 rounded-lg px-3 py-2.5", Lx.urlBox),
|
|
27032
|
-
children: [Rx(b.url) ? /* @__PURE__ */
|
|
27032
|
+
children: [Rx(b.url) ? /* @__PURE__ */ L("a", {
|
|
27033
27033
|
href: b.url,
|
|
27034
27034
|
target: "_blank",
|
|
27035
27035
|
rel: "noreferrer",
|
|
27036
27036
|
className: G("flex-1 break-all", p),
|
|
27037
27037
|
children: b.url
|
|
27038
|
-
}) : /* @__PURE__ */
|
|
27038
|
+
}) : /* @__PURE__ */ L("span", {
|
|
27039
27039
|
className: G("flex-1 break-all", p),
|
|
27040
27040
|
children: b.url
|
|
27041
|
-
}), /* @__PURE__ */
|
|
27042
|
-
icon: /* @__PURE__ */
|
|
27041
|
+
}), /* @__PURE__ */ L(E, {
|
|
27042
|
+
icon: /* @__PURE__ */ L(pe, { size: m.SM }),
|
|
27043
27043
|
"aria-label": c,
|
|
27044
27044
|
onClick: () => void navigator.clipboard.writeText(b.url)
|
|
27045
27045
|
})]
|
|
27046
27046
|
}),
|
|
27047
|
-
b?.snippets != null && b.snippets.length > 0 && /* @__PURE__ */
|
|
27047
|
+
b?.snippets != null && b.snippets.length > 0 && /* @__PURE__ */ L("div", {
|
|
27048
27048
|
className: "mt-4",
|
|
27049
|
-
children: /* @__PURE__ */
|
|
27049
|
+
children: /* @__PURE__ */ L(Bx, {
|
|
27050
27050
|
snippets: b.snippets,
|
|
27051
27051
|
copyAriaLabel: c,
|
|
27052
27052
|
codeClassName: p,
|
|
@@ -27054,51 +27054,51 @@ var Tx = {
|
|
|
27054
27054
|
}, g)
|
|
27055
27055
|
})
|
|
27056
27056
|
] }),
|
|
27057
|
-
!y && T && /* @__PURE__ */
|
|
27057
|
+
!y && T && /* @__PURE__ */ L(Bx, {
|
|
27058
27058
|
snippets: e.snippets,
|
|
27059
27059
|
sectionLabel: r,
|
|
27060
27060
|
copyAriaLabel: c,
|
|
27061
27061
|
codeClassName: p,
|
|
27062
27062
|
sectionClassName: h
|
|
27063
27063
|
}),
|
|
27064
|
-
D && /* @__PURE__ */
|
|
27064
|
+
D && /* @__PURE__ */ R("section", { children: [/* @__PURE__ */ L("p", {
|
|
27065
27065
|
className: G("mb-3 mt-0", h, Lx.sectionHeading),
|
|
27066
27066
|
children: o
|
|
27067
|
-
}), /* @__PURE__ */
|
|
27067
|
+
}), /* @__PURE__ */ R("div", {
|
|
27068
27068
|
className: G("relative rounded-lg p-3", Lx.codeBlock),
|
|
27069
|
-
children: [/* @__PURE__ */
|
|
27070
|
-
icon: /* @__PURE__ */
|
|
27069
|
+
children: [/* @__PURE__ */ L(E, {
|
|
27070
|
+
icon: /* @__PURE__ */ L(pe, { size: m.SM }),
|
|
27071
27071
|
"aria-label": c,
|
|
27072
27072
|
onClick: () => {
|
|
27073
27073
|
navigator.clipboard.writeText(e.requestExample ?? "");
|
|
27074
27074
|
},
|
|
27075
27075
|
className: G("absolute end-2 top-2 flex size-6 cursor-pointer items-center justify-center rounded border-none p-0", Lx.copyButton)
|
|
27076
|
-
}), /* @__PURE__ */
|
|
27076
|
+
}), /* @__PURE__ */ L("pre", {
|
|
27077
27077
|
className: G("m-0 overflow-x-auto pe-8", p, Lx.pre),
|
|
27078
|
-
children: /* @__PURE__ */
|
|
27078
|
+
children: /* @__PURE__ */ L("code", { children: e.requestExample })
|
|
27079
27079
|
})]
|
|
27080
27080
|
})] }),
|
|
27081
|
-
O && /* @__PURE__ */
|
|
27081
|
+
O && /* @__PURE__ */ R("section", { children: [/* @__PURE__ */ L("p", {
|
|
27082
27082
|
className: G("mb-3 mt-0", h, Lx.sectionHeading),
|
|
27083
27083
|
children: s
|
|
27084
|
-
}), /* @__PURE__ */
|
|
27084
|
+
}), /* @__PURE__ */ R("div", {
|
|
27085
27085
|
className: G("relative rounded-lg p-3", Lx.codeBlock),
|
|
27086
|
-
children: [/* @__PURE__ */
|
|
27087
|
-
icon: /* @__PURE__ */
|
|
27086
|
+
children: [/* @__PURE__ */ L(E, {
|
|
27087
|
+
icon: /* @__PURE__ */ L(pe, { size: m.SM }),
|
|
27088
27088
|
"aria-label": c,
|
|
27089
27089
|
onClick: () => {
|
|
27090
27090
|
navigator.clipboard.writeText(e.responseSchema ?? "");
|
|
27091
27091
|
},
|
|
27092
27092
|
className: G("absolute end-2 top-2 flex size-6 cursor-pointer items-center justify-center rounded border-none p-0", Lx.copyButton)
|
|
27093
|
-
}), /* @__PURE__ */
|
|
27093
|
+
}), /* @__PURE__ */ L("pre", {
|
|
27094
27094
|
className: G("m-0 overflow-x-auto pe-8", p, Lx.pre),
|
|
27095
|
-
children: /* @__PURE__ */
|
|
27095
|
+
children: /* @__PURE__ */ L("code", { children: e.responseSchema })
|
|
27096
27096
|
})]
|
|
27097
27097
|
})] })
|
|
27098
27098
|
]
|
|
27099
27099
|
});
|
|
27100
27100
|
}, Hx = ({ item: e, level: t, status: n, authenticationType: r, apiKeyHeader: i, onLogin: o, onLogout: s, texts: c, statusLabelClassName: l = "dial-small-semi-text text-primary" }) => {
|
|
27101
|
-
let [u, f] = d(""), [p, m] = d(!1), h = n ===
|
|
27101
|
+
let [u, f] = d(""), [p, m] = d(!1), h = n === Le.SignedIn, g = a(() => {
|
|
27102
27102
|
o?.(e, {
|
|
27103
27103
|
level: t,
|
|
27104
27104
|
apiKey: u
|
|
@@ -27125,16 +27125,16 @@ var Tx = {
|
|
|
27125
27125
|
]), x = a(() => {
|
|
27126
27126
|
m(!1);
|
|
27127
27127
|
}, []), S = c?.loginActionLabel ?? "Log in", C = c?.logoutActionLabel ?? "Log out", w = h ? c?.credentialsSignedInLabel ?? "Signed in" : c?.credentialsSignedOutLabel ?? "Signed out", T = i == null ? void 0 : c?.apiKeyFieldHint?.(i) ?? `Enter your API key value for "${i}" header`;
|
|
27128
|
-
return /* @__PURE__ */
|
|
27128
|
+
return /* @__PURE__ */ R("div", {
|
|
27129
27129
|
className: "flex flex-col gap-3",
|
|
27130
27130
|
children: [
|
|
27131
|
-
/* @__PURE__ */
|
|
27131
|
+
/* @__PURE__ */ L("span", {
|
|
27132
27132
|
className: l,
|
|
27133
27133
|
children: w
|
|
27134
27134
|
}),
|
|
27135
|
-
!h && r ===
|
|
27135
|
+
!h && r === Ie.ApiKey && /* @__PURE__ */ R("div", {
|
|
27136
27136
|
className: "flex items-end gap-2",
|
|
27137
|
-
children: [/* @__PURE__ */
|
|
27137
|
+
children: [/* @__PURE__ */ L(Kb, {
|
|
27138
27138
|
id: `catalog-item-${e.id}-${t}-api-key`,
|
|
27139
27139
|
type: "password",
|
|
27140
27140
|
autoComplete: "current-password",
|
|
@@ -27143,21 +27143,21 @@ var Tx = {
|
|
|
27143
27143
|
labelProps: { label: c?.apiKeyFieldLabel ?? "API key" },
|
|
27144
27144
|
caption: T,
|
|
27145
27145
|
containerClassName: "min-w-0 flex-1"
|
|
27146
|
-
}), /* @__PURE__ */
|
|
27146
|
+
}), /* @__PURE__ */ L(Ub, {
|
|
27147
27147
|
label: S,
|
|
27148
27148
|
onClick: g,
|
|
27149
27149
|
disabled: u.trim().length === 0
|
|
27150
27150
|
})]
|
|
27151
27151
|
}),
|
|
27152
|
-
!h && r ===
|
|
27152
|
+
!h && r === Ie.OAuth && /* @__PURE__ */ L(Ub, {
|
|
27153
27153
|
label: S,
|
|
27154
27154
|
onClick: _
|
|
27155
27155
|
}),
|
|
27156
|
-
h && /* @__PURE__ */
|
|
27156
|
+
h && /* @__PURE__ */ L(Wb, {
|
|
27157
27157
|
label: C,
|
|
27158
27158
|
onClick: v
|
|
27159
27159
|
}),
|
|
27160
|
-
/* @__PURE__ */
|
|
27160
|
+
/* @__PURE__ */ L(b, {
|
|
27161
27161
|
open: p,
|
|
27162
27162
|
header: C,
|
|
27163
27163
|
description: c?.logoutConfirmMessage ?? "Are you sure you want to log out?",
|
|
@@ -27169,19 +27169,19 @@ var Tx = {
|
|
|
27169
27169
|
]
|
|
27170
27170
|
});
|
|
27171
27171
|
}, Ux = ({ item: e, onLogin: t, onLogout: n, texts: r, statusLabelClassName: i }) => {
|
|
27172
|
-
let [a, o] = d(
|
|
27172
|
+
let [a, o] = d(Re.User), s = e.credentials;
|
|
27173
27173
|
if (s == null) return null;
|
|
27174
|
-
if (s.isManageableByAdmin) return /* @__PURE__ */
|
|
27174
|
+
if (s.isManageableByAdmin) return /* @__PURE__ */ R("div", {
|
|
27175
27175
|
role: "region",
|
|
27176
27176
|
"aria-label": r?.manageCredentialsActionLabel ?? "Manage credentials",
|
|
27177
27177
|
className: "flex flex-col gap-2 px-6 py-4 ps-[60px]",
|
|
27178
|
-
children: [/* @__PURE__ */
|
|
27178
|
+
children: [/* @__PURE__ */ L(h, {
|
|
27179
27179
|
title: r?.myCredentialsSectionLabel ?? "My credentials",
|
|
27180
|
-
expanded: a ===
|
|
27181
|
-
onToggle: (e) => o(e ?
|
|
27182
|
-
children: /* @__PURE__ */
|
|
27180
|
+
expanded: a === Re.User,
|
|
27181
|
+
onToggle: (e) => o(e ? Re.User : a),
|
|
27182
|
+
children: /* @__PURE__ */ L(Hx, {
|
|
27183
27183
|
item: e,
|
|
27184
|
-
level:
|
|
27184
|
+
level: Re.User,
|
|
27185
27185
|
status: s.userStatus,
|
|
27186
27186
|
authenticationType: s.authenticationType,
|
|
27187
27187
|
apiKeyHeader: s.apiKeyHeader,
|
|
@@ -27190,13 +27190,13 @@ var Tx = {
|
|
|
27190
27190
|
texts: r,
|
|
27191
27191
|
statusLabelClassName: i
|
|
27192
27192
|
})
|
|
27193
|
-
}), /* @__PURE__ */
|
|
27193
|
+
}), /* @__PURE__ */ L(h, {
|
|
27194
27194
|
title: r?.organizationCredentialsSectionLabel ?? "Entire organization credentials",
|
|
27195
|
-
expanded: a ===
|
|
27196
|
-
onToggle: (e) => o(e ?
|
|
27197
|
-
children: /* @__PURE__ */
|
|
27195
|
+
expanded: a === Re.Global,
|
|
27196
|
+
onToggle: (e) => o(e ? Re.Global : a),
|
|
27197
|
+
children: /* @__PURE__ */ L(Hx, {
|
|
27198
27198
|
item: e,
|
|
27199
|
-
level:
|
|
27199
|
+
level: Re.Global,
|
|
27200
27200
|
status: s.globalStatus,
|
|
27201
27201
|
authenticationType: s.authenticationType,
|
|
27202
27202
|
apiKeyHeader: s.apiKeyHeader,
|
|
@@ -27208,14 +27208,14 @@ var Tx = {
|
|
|
27208
27208
|
})]
|
|
27209
27209
|
});
|
|
27210
27210
|
let c = ct(s), l;
|
|
27211
|
-
return l = c ===
|
|
27211
|
+
return l = c === V.LoginWithMyCreds ? Re.User : c === V.LogOut ? ut(s) : Re.Global, /* @__PURE__ */ L("div", {
|
|
27212
27212
|
role: "region",
|
|
27213
27213
|
"aria-label": r?.loginActionLabel ?? "Log in",
|
|
27214
27214
|
className: "px-6 py-4 ps-[60px]",
|
|
27215
|
-
children: /* @__PURE__ */
|
|
27215
|
+
children: /* @__PURE__ */ L(Hx, {
|
|
27216
27216
|
item: e,
|
|
27217
27217
|
level: l,
|
|
27218
|
-
status: l ===
|
|
27218
|
+
status: l === Re.User ? s.userStatus : s.globalStatus,
|
|
27219
27219
|
authenticationType: s.authenticationType,
|
|
27220
27220
|
apiKeyHeader: s.apiKeyHeader,
|
|
27221
27221
|
onLogin: t,
|
|
@@ -27236,7 +27236,7 @@ var Tx = {
|
|
|
27236
27236
|
let [i, o] = d(!1), s = a(() => {
|
|
27237
27237
|
o((e) => !e);
|
|
27238
27238
|
}, []);
|
|
27239
|
-
return !n?.(e) || !t ? null : /* @__PURE__ */
|
|
27239
|
+
return !n?.(e) || !t ? null : /* @__PURE__ */ L(x, {
|
|
27240
27240
|
placement: "bottom-end",
|
|
27241
27241
|
matchReferenceWidth: !1,
|
|
27242
27242
|
open: i,
|
|
@@ -27245,19 +27245,19 @@ var Tx = {
|
|
|
27245
27245
|
outsideClosable: !0,
|
|
27246
27246
|
listClassName: "cp-dropdown-overlay",
|
|
27247
27247
|
renderOverlay: () => t(e, () => o(!1)),
|
|
27248
|
-
children: /* @__PURE__ */
|
|
27248
|
+
children: /* @__PURE__ */ L(Wb, {
|
|
27249
27249
|
label: r,
|
|
27250
|
-
iconBefore: /* @__PURE__ */
|
|
27250
|
+
iconBefore: /* @__PURE__ */ L(Ce, {
|
|
27251
27251
|
size: m.MD,
|
|
27252
27252
|
"aria-hidden": !0
|
|
27253
27253
|
}),
|
|
27254
|
-
iconAfter: /* @__PURE__ */
|
|
27254
|
+
iconAfter: /* @__PURE__ */ L(le, { size: m.MD }),
|
|
27255
27255
|
onClick: s,
|
|
27256
27256
|
"aria-haspopup": "menu",
|
|
27257
27257
|
"aria-expanded": i
|
|
27258
27258
|
})
|
|
27259
27259
|
});
|
|
27260
|
-
}, Kx = (e) => e.isMyApp === !0 && (e.type ===
|
|
27260
|
+
}, Kx = (e) => e.isMyApp === !0 && (e.type === B.Application || e.type === B.Toolset), qx = ({ item: e, onDelete: t, onDeleted: n, texts: r }) => {
|
|
27261
27261
|
let [i, o] = d(!1), s = a(async () => {
|
|
27262
27262
|
o(!0);
|
|
27263
27263
|
try {
|
|
@@ -27270,16 +27270,16 @@ var Tx = {
|
|
|
27270
27270
|
t,
|
|
27271
27271
|
n
|
|
27272
27272
|
]);
|
|
27273
|
-
return Kx(e) ? /* @__PURE__ */
|
|
27273
|
+
return Kx(e) ? /* @__PURE__ */ L(Wb, {
|
|
27274
27274
|
label: r?.deleteActionLabel ?? "Delete",
|
|
27275
|
-
iconBefore: /* @__PURE__ */
|
|
27275
|
+
iconBefore: /* @__PURE__ */ L(ke, { size: m.MD }),
|
|
27276
27276
|
onClick: s,
|
|
27277
27277
|
disabled: i
|
|
27278
27278
|
}) : null;
|
|
27279
|
-
}, Jx = (e) => e.isMyApp === !0 && e.type !==
|
|
27280
|
-
let [
|
|
27279
|
+
}, Jx = (e) => e.isMyApp === !0 && e.type !== B.Guardrail && e.type !== B.Mcp, Yx = ({ item: e, onShare: t, shareOverlay: n, label: r = "Share" }) => {
|
|
27280
|
+
let [i, o] = d(!1), s = a(() => {
|
|
27281
27281
|
if (n) {
|
|
27282
|
-
|
|
27282
|
+
o((e) => !e);
|
|
27283
27283
|
return;
|
|
27284
27284
|
}
|
|
27285
27285
|
t?.(e);
|
|
@@ -27287,114 +27287,105 @@ var Tx = {
|
|
|
27287
27287
|
e,
|
|
27288
27288
|
t,
|
|
27289
27289
|
n
|
|
27290
|
-
])
|
|
27291
|
-
r?.(e);
|
|
27292
|
-
}, [e, r]);
|
|
27293
|
-
if (Yx(e)) return /* @__PURE__ */ R(Wb, {
|
|
27294
|
-
label: o,
|
|
27295
|
-
iconBefore: /* @__PURE__ */ R(Oe, { size: m.MD }),
|
|
27296
|
-
onClick: u
|
|
27297
|
-
});
|
|
27290
|
+
]);
|
|
27298
27291
|
if (!Jx(e)) return null;
|
|
27299
|
-
let
|
|
27300
|
-
label:
|
|
27301
|
-
iconBefore: /* @__PURE__ */
|
|
27302
|
-
iconAfter: /* @__PURE__ */
|
|
27303
|
-
onClick:
|
|
27292
|
+
let c = /* @__PURE__ */ L(Wb, {
|
|
27293
|
+
label: r,
|
|
27294
|
+
iconBefore: /* @__PURE__ */ L(Ee, { size: m.MD }),
|
|
27295
|
+
iconAfter: /* @__PURE__ */ L(le, { size: m.MD }),
|
|
27296
|
+
onClick: s,
|
|
27304
27297
|
"aria-haspopup": n ? "menu" : void 0,
|
|
27305
|
-
"aria-expanded": n ?
|
|
27298
|
+
"aria-expanded": n ? i : void 0
|
|
27306
27299
|
});
|
|
27307
|
-
return n ? /* @__PURE__ */
|
|
27300
|
+
return n ? /* @__PURE__ */ L(x, {
|
|
27308
27301
|
placement: "bottom-end",
|
|
27309
27302
|
matchReferenceWidth: !1,
|
|
27310
|
-
open:
|
|
27311
|
-
onOpenChange:
|
|
27303
|
+
open: i,
|
|
27304
|
+
onOpenChange: o,
|
|
27312
27305
|
trigger: [],
|
|
27313
27306
|
outsideClosable: !0,
|
|
27314
27307
|
listClassName: "cp-dropdown-overlay",
|
|
27315
|
-
renderOverlay: () => n(e, () =>
|
|
27316
|
-
children:
|
|
27317
|
-
}) :
|
|
27318
|
-
},
|
|
27319
|
-
let { nameClassName:
|
|
27308
|
+
renderOverlay: () => n(e, () => o(!1)),
|
|
27309
|
+
children: c
|
|
27310
|
+
}) : c;
|
|
27311
|
+
}, Xx = ({ item: e, onUseInChat: t, isPrimaryActionVisible: n, onShare: r, shareOverlay: i, connectOverlay: o, isConnectVisible: s, onEdit: c, onDelete: l, onCloseDetails: u, onLogin: d, onLogout: f, onToggleCredentials: p, onRequestLogout: h, texts: g, detailsStyles: _, isPublishVisible: v, onOpenPublish: y }) => {
|
|
27312
|
+
let { nameClassName: b = "dial-body-semi-text text-primary", folderLabelClassName: x = "dial-tiny-text", folderLeafClassName: S = "dial-tiny-semi-text" } = _?.typography ?? {}, C = a(() => {
|
|
27320
27313
|
t?.(e);
|
|
27321
|
-
}, [e, t]),
|
|
27322
|
-
|
|
27323
|
-
}, [e,
|
|
27324
|
-
|
|
27314
|
+
}, [e, t]), w = a(() => {
|
|
27315
|
+
c?.(e);
|
|
27316
|
+
}, [e, c]), T = g?.hasPrimaryAction !== !1 && (n?.(e) ?? (e.type === B.Model || e.type === B.Application)), E = v?.(e) ?? (e.type === B.Model || e.type === B.Toolset || e.type === B.Application), D = !!c && !!e.isEditable, O = e.credentials != null && e.credentials.authenticationType !== Ie.None ? ct(e.credentials) : void 0, k = O != null && (!!d || !!f), ee = a(() => {
|
|
27317
|
+
O === V.LogOut ? h?.() : p?.();
|
|
27325
27318
|
}, [
|
|
27326
|
-
|
|
27327
|
-
|
|
27328
|
-
|
|
27329
|
-
]),
|
|
27330
|
-
[
|
|
27331
|
-
[
|
|
27332
|
-
[
|
|
27333
|
-
[
|
|
27334
|
-
}[
|
|
27335
|
-
[
|
|
27336
|
-
[
|
|
27337
|
-
[
|
|
27338
|
-
[
|
|
27339
|
-
}[
|
|
27340
|
-
return /* @__PURE__ */
|
|
27319
|
+
O,
|
|
27320
|
+
h,
|
|
27321
|
+
p
|
|
27322
|
+
]), A = {
|
|
27323
|
+
[V.ManageCredentials]: g?.manageCredentialsActionLabel ?? "Manage credentials",
|
|
27324
|
+
[V.LoginWithMyCreds]: g?.loginWithMyCredsActionLabel ?? "Login with my creds",
|
|
27325
|
+
[V.LogIn]: g?.loginActionLabel ?? "Log in",
|
|
27326
|
+
[V.LogOut]: g?.logoutActionLabel ?? "Log out"
|
|
27327
|
+
}[O ?? V.LogIn], j = {
|
|
27328
|
+
[V.ManageCredentials]: /* @__PURE__ */ L(ge, { size: m.MD }),
|
|
27329
|
+
[V.LoginWithMyCreds]: /* @__PURE__ */ L(ve, { size: m.MD }),
|
|
27330
|
+
[V.LogIn]: /* @__PURE__ */ L(ve, { size: m.MD }),
|
|
27331
|
+
[V.LogOut]: /* @__PURE__ */ L(ye, { size: m.MD })
|
|
27332
|
+
}[O ?? V.LogIn];
|
|
27333
|
+
return /* @__PURE__ */ R("div", {
|
|
27341
27334
|
className: "flex flex-col gap-3 px-6 py-4",
|
|
27342
|
-
children: [/* @__PURE__ */
|
|
27335
|
+
children: [/* @__PURE__ */ L(Dx, {
|
|
27343
27336
|
item: e,
|
|
27344
27337
|
iconSize: 52,
|
|
27345
|
-
nameClassName:
|
|
27346
|
-
featuredLabel:
|
|
27347
|
-
footer: e.folder.length > 0 ? /* @__PURE__ */
|
|
27338
|
+
nameClassName: b,
|
|
27339
|
+
featuredLabel: g?.featuredLabel ?? "Featured",
|
|
27340
|
+
footer: e.folder.length > 0 ? /* @__PURE__ */ L(ux, {
|
|
27348
27341
|
segments: e.folder,
|
|
27349
|
-
labelClassName:
|
|
27350
|
-
leafClassName:
|
|
27342
|
+
labelClassName: x,
|
|
27343
|
+
leafClassName: S
|
|
27351
27344
|
}) : void 0
|
|
27352
|
-
}), /* @__PURE__ */
|
|
27345
|
+
}), /* @__PURE__ */ R("div", {
|
|
27353
27346
|
className: "flex flex-wrap items-center gap-2 ps-[60px]",
|
|
27354
27347
|
children: [
|
|
27355
|
-
|
|
27356
|
-
label:
|
|
27357
|
-
iconBefore: /* @__PURE__ */
|
|
27358
|
-
onClick:
|
|
27348
|
+
T && /* @__PURE__ */ L(Ub, {
|
|
27349
|
+
label: g?.primaryActionLabel ?? "Use in chat",
|
|
27350
|
+
iconBefore: /* @__PURE__ */ L(Se, { size: m.MD }),
|
|
27351
|
+
onClick: C
|
|
27359
27352
|
}),
|
|
27360
|
-
|
|
27361
|
-
label:
|
|
27362
|
-
iconBefore: /* @__PURE__ */
|
|
27363
|
-
onClick:
|
|
27353
|
+
D && /* @__PURE__ */ L(Wb, {
|
|
27354
|
+
label: g?.editActionLabel ?? "Edit",
|
|
27355
|
+
iconBefore: /* @__PURE__ */ L(xe, { size: m.MD }),
|
|
27356
|
+
onClick: w
|
|
27364
27357
|
}),
|
|
27365
|
-
/* @__PURE__ */
|
|
27358
|
+
/* @__PURE__ */ L(Yx, {
|
|
27366
27359
|
item: e,
|
|
27367
27360
|
onShare: r,
|
|
27368
27361
|
shareOverlay: i,
|
|
27369
|
-
|
|
27370
|
-
label: _?.shareLabel,
|
|
27371
|
-
unshareLabel: _?.unshareLabel
|
|
27362
|
+
label: g?.shareLabel
|
|
27372
27363
|
}),
|
|
27373
|
-
/* @__PURE__ */
|
|
27364
|
+
/* @__PURE__ */ L(qx, {
|
|
27374
27365
|
item: e,
|
|
27375
|
-
onDelete:
|
|
27376
|
-
onDeleted:
|
|
27377
|
-
texts:
|
|
27366
|
+
onDelete: l,
|
|
27367
|
+
onDeleted: u,
|
|
27368
|
+
texts: g
|
|
27378
27369
|
}),
|
|
27379
|
-
|
|
27380
|
-
label:
|
|
27381
|
-
onClick:
|
|
27370
|
+
E && /* @__PURE__ */ L(Wb, {
|
|
27371
|
+
label: g?.publishLabel ?? "Publish",
|
|
27372
|
+
onClick: y
|
|
27382
27373
|
}),
|
|
27383
|
-
|
|
27384
|
-
label:
|
|
27385
|
-
iconBefore:
|
|
27386
|
-
onClick:
|
|
27374
|
+
k && /* @__PURE__ */ L(Wb, {
|
|
27375
|
+
label: A,
|
|
27376
|
+
iconBefore: j,
|
|
27377
|
+
onClick: ee
|
|
27387
27378
|
}),
|
|
27388
|
-
/* @__PURE__ */
|
|
27379
|
+
/* @__PURE__ */ L(Gx, {
|
|
27389
27380
|
item: e,
|
|
27390
27381
|
connectOverlay: o,
|
|
27391
27382
|
isConnectVisible: s,
|
|
27392
|
-
label:
|
|
27383
|
+
label: g?.connectLabel
|
|
27393
27384
|
})
|
|
27394
27385
|
]
|
|
27395
27386
|
})]
|
|
27396
27387
|
});
|
|
27397
|
-
},
|
|
27388
|
+
}, Zx = (e) => e.trim().split(/\n\n+/).filter((e) => e.trim()).map((e) => {
|
|
27398
27389
|
let t = e.split("\n").filter((e) => e.trim()), n = t[0] ?? "", r = t.length > 1 && !n.trimStart().startsWith("•") && n.trim().length <= 60, i = r ? t.slice(1) : t, a = [];
|
|
27399
27390
|
for (let e of i) {
|
|
27400
27391
|
let t = e.trim();
|
|
@@ -27413,34 +27404,34 @@ var Tx = {
|
|
|
27413
27404
|
heading: r ? n.trim() : void 0,
|
|
27414
27405
|
runs: a
|
|
27415
27406
|
};
|
|
27416
|
-
}),
|
|
27407
|
+
}), Qx = ({ run: e, contentClassName: t }) => e.kind === "bullets" ? /* @__PURE__ */ L("ul", {
|
|
27417
27408
|
className: "m-0 flex list-none flex-col gap-1 ps-0",
|
|
27418
|
-
children: e.items.map((e, n) => /* @__PURE__ */
|
|
27409
|
+
children: e.items.map((e, n) => /* @__PURE__ */ R("li", {
|
|
27419
27410
|
className: G("flex gap-2", t),
|
|
27420
|
-
children: [/* @__PURE__ */
|
|
27411
|
+
children: [/* @__PURE__ */ L("span", {
|
|
27421
27412
|
"aria-hidden": "true",
|
|
27422
27413
|
children: "•"
|
|
27423
|
-
}), /* @__PURE__ */
|
|
27414
|
+
}), /* @__PURE__ */ L("span", { children: e })]
|
|
27424
27415
|
}, n))
|
|
27425
|
-
}) : /* @__PURE__ */
|
|
27416
|
+
}) : /* @__PURE__ */ L("p", {
|
|
27426
27417
|
className: G("m-0", t),
|
|
27427
27418
|
children: e.text
|
|
27428
|
-
}),
|
|
27419
|
+
}), $x = ({ content: e, detailsStyles: t }) => {
|
|
27429
27420
|
let { contentHeadingClassName: n = "dial-small-semi-text", contentClassName: r = "dial-small-text" } = t?.typography ?? {};
|
|
27430
|
-
return /* @__PURE__ */
|
|
27421
|
+
return /* @__PURE__ */ L("div", {
|
|
27431
27422
|
className: "flex flex-col gap-5",
|
|
27432
|
-
children: l(() =>
|
|
27423
|
+
children: l(() => Zx(e), [e]).map((e, t) => /* @__PURE__ */ R("div", {
|
|
27433
27424
|
className: "flex flex-col gap-2",
|
|
27434
|
-
children: [e.heading != null && /* @__PURE__ */
|
|
27425
|
+
children: [e.heading != null && /* @__PURE__ */ L("span", {
|
|
27435
27426
|
className: n,
|
|
27436
27427
|
children: e.heading
|
|
27437
|
-
}), e.runs.map((e, t) => /* @__PURE__ */
|
|
27428
|
+
}), e.runs.map((e, t) => /* @__PURE__ */ L(Qx, {
|
|
27438
27429
|
run: e,
|
|
27439
27430
|
contentClassName: r
|
|
27440
27431
|
}, t))]
|
|
27441
27432
|
}, t))
|
|
27442
27433
|
});
|
|
27443
|
-
},
|
|
27434
|
+
}, eS = {
|
|
27444
27435
|
"tag--FREE": "_tag--FREE_roky1_1",
|
|
27445
27436
|
"tag--FEATURED": "_tag--FEATURED_roky1_6",
|
|
27446
27437
|
"tag--BY_REQUEST": "_tag--BY_REQUEST_roky1_11",
|
|
@@ -27449,100 +27440,100 @@ var Tx = {
|
|
|
27449
27440
|
progressTrack: "_progressTrack_roky1_27",
|
|
27450
27441
|
progressFill: "_progressFill_roky1_31",
|
|
27451
27442
|
resetLabel: "_resetLabel_roky1_35"
|
|
27452
|
-
},
|
|
27453
|
-
[
|
|
27454
|
-
[
|
|
27455
|
-
[
|
|
27456
|
-
[
|
|
27457
|
-
[
|
|
27458
|
-
},
|
|
27443
|
+
}, tS = {
|
|
27444
|
+
[Pe.Free]: "Free",
|
|
27445
|
+
[Pe.Featured]: "Featured",
|
|
27446
|
+
[Pe.ByRequest]: "By request",
|
|
27447
|
+
[Pe.Beta]: "Beta",
|
|
27448
|
+
[Pe.Deprecated]: "Deprecated"
|
|
27449
|
+
}, nS = ({ summary: e, dailyLimitLabel: t = "Daily limit", tagClassName: n = "dial-tiny-text", limitLabelClassName: r = "dial-caption-text", limitResetClassName: i = "dial-tiny-text" }) => {
|
|
27459
27450
|
let { tag: a, dailyLimit: o } = e;
|
|
27460
|
-
return /* @__PURE__ */
|
|
27451
|
+
return /* @__PURE__ */ R("div", {
|
|
27461
27452
|
className: "flex flex-col gap-3",
|
|
27462
|
-
children: [a != null && a !==
|
|
27453
|
+
children: [a != null && a !== Pe.Featured && /* @__PURE__ */ L("div", {
|
|
27463
27454
|
className: "flex flex-wrap items-center gap-2",
|
|
27464
|
-
children: /* @__PURE__ */
|
|
27465
|
-
label:
|
|
27466
|
-
className: G(
|
|
27455
|
+
children: /* @__PURE__ */ L(ie, {
|
|
27456
|
+
label: tS[a],
|
|
27457
|
+
className: G(eS.tag, eS[`tag--${a}`], n)
|
|
27467
27458
|
})
|
|
27468
|
-
}), o != null && /* @__PURE__ */
|
|
27459
|
+
}), o != null && /* @__PURE__ */ R("div", {
|
|
27469
27460
|
className: "flex flex-col gap-1.5",
|
|
27470
|
-
children: [/* @__PURE__ */
|
|
27461
|
+
children: [/* @__PURE__ */ R("div", {
|
|
27471
27462
|
className: "flex items-center justify-between gap-2",
|
|
27472
|
-
children: [/* @__PURE__ */
|
|
27463
|
+
children: [/* @__PURE__ */ L("span", {
|
|
27473
27464
|
className: r,
|
|
27474
27465
|
children: t
|
|
27475
|
-
}), o.resetLabel != null && /* @__PURE__ */
|
|
27476
|
-
className: G(i,
|
|
27466
|
+
}), o.resetLabel != null && /* @__PURE__ */ L("span", {
|
|
27467
|
+
className: G(i, eS.resetLabel),
|
|
27477
27468
|
children: o.resetLabel
|
|
27478
27469
|
})]
|
|
27479
|
-
}), /* @__PURE__ */
|
|
27480
|
-
className: G("h-1.5 overflow-hidden rounded-[3px]",
|
|
27470
|
+
}), /* @__PURE__ */ L("div", {
|
|
27471
|
+
className: G("h-1.5 overflow-hidden rounded-[3px]", eS.progressTrack),
|
|
27481
27472
|
role: "progressbar",
|
|
27482
27473
|
"aria-valuenow": o.used,
|
|
27483
27474
|
"aria-valuemin": 0,
|
|
27484
27475
|
"aria-valuemax": o.total,
|
|
27485
|
-
children: /* @__PURE__ */
|
|
27486
|
-
className: G("h-full rounded-[3px] [transition:width_0.3s_ease]",
|
|
27476
|
+
children: /* @__PURE__ */ L("div", {
|
|
27477
|
+
className: G("h-full rounded-[3px] [transition:width_0.3s_ease]", eS.progressFill),
|
|
27487
27478
|
style: { width: `${Math.min(100, o.used / o.total * 100)}%` }
|
|
27488
27479
|
})
|
|
27489
27480
|
})]
|
|
27490
27481
|
})]
|
|
27491
27482
|
});
|
|
27492
|
-
},
|
|
27483
|
+
}, rS = ({ item: e, texts: t, detailsStyles: n }) => {
|
|
27493
27484
|
let { introCaptionClassName: r = "dial-caption-text" } = n?.typography ?? {};
|
|
27494
|
-
return /* @__PURE__ */
|
|
27485
|
+
return /* @__PURE__ */ R("div", {
|
|
27495
27486
|
className: "flex shrink-0 flex-col gap-5 px-[22px] py-4",
|
|
27496
27487
|
children: [
|
|
27497
|
-
/* @__PURE__ */
|
|
27488
|
+
/* @__PURE__ */ R("div", {
|
|
27498
27489
|
className: "flex flex-col gap-2.5",
|
|
27499
|
-
children: [/* @__PURE__ */
|
|
27490
|
+
children: [/* @__PURE__ */ L("span", {
|
|
27500
27491
|
className: G(r, Wx.introCaption),
|
|
27501
27492
|
children: t?.introLabel ?? "Intro"
|
|
27502
|
-
}), /* @__PURE__ */
|
|
27493
|
+
}), /* @__PURE__ */ L($x, {
|
|
27503
27494
|
content: e.intro ?? e.description,
|
|
27504
27495
|
detailsStyles: n
|
|
27505
27496
|
})]
|
|
27506
27497
|
}),
|
|
27507
|
-
e.topics.length > 0 && /* @__PURE__ */
|
|
27498
|
+
e.topics.length > 0 && /* @__PURE__ */ L("div", {
|
|
27508
27499
|
className: "flex flex-wrap gap-2",
|
|
27509
|
-
children: e.topics.map((e) => /* @__PURE__ */
|
|
27500
|
+
children: e.topics.map((e) => /* @__PURE__ */ L(mx, { label: e }, e))
|
|
27510
27501
|
}),
|
|
27511
|
-
e.summary != null && /* @__PURE__ */
|
|
27502
|
+
e.summary != null && /* @__PURE__ */ L(nS, {
|
|
27512
27503
|
summary: e.summary,
|
|
27513
27504
|
dailyLimitLabel: t?.dailyLimitLabel ?? "Daily limit"
|
|
27514
27505
|
})
|
|
27515
27506
|
]
|
|
27516
27507
|
});
|
|
27517
|
-
},
|
|
27508
|
+
}, iS = (e) => !Number.isFinite(e.used) || !Number.isFinite(e.total) ? 0 : Math.min(Math.max(e.used, 0), Math.max(e.total, 0)), aS = (e) => Number.isFinite(e) && e > 0 ? e : 1, oS = ({ used: e, total: t, valueLabel: n }) => n ?? `${e} / ${t}`, sS = ({ total: e }) => Number.isFinite(e) && e > 0, cS = ({ limits: e, labelClassName: t = "dial-small-semi-text", valueClassName: n = "dial-small-text" }) => e == null || e.rows.length === 0 ? null : /* @__PURE__ */ L("ul", {
|
|
27518
27509
|
className: "m-0 flex list-none flex-col gap-3 p-0",
|
|
27519
27510
|
children: e.rows.map((e) => {
|
|
27520
|
-
let r =
|
|
27521
|
-
return /* @__PURE__ */
|
|
27511
|
+
let r = oS(e), i = sS(e);
|
|
27512
|
+
return /* @__PURE__ */ R("li", {
|
|
27522
27513
|
className: "flex flex-col gap-2 rounded px-3 py-2",
|
|
27523
|
-
children: [/* @__PURE__ */
|
|
27514
|
+
children: [/* @__PURE__ */ R("div", {
|
|
27524
27515
|
className: "flex items-start justify-between gap-3",
|
|
27525
|
-
children: [/* @__PURE__ */
|
|
27516
|
+
children: [/* @__PURE__ */ L("span", {
|
|
27526
27517
|
className: G("min-w-0 break-words", t),
|
|
27527
27518
|
children: e.label
|
|
27528
|
-
}), /* @__PURE__ */
|
|
27519
|
+
}), /* @__PURE__ */ L("span", {
|
|
27529
27520
|
className: G("shrink-0", n),
|
|
27530
27521
|
children: r
|
|
27531
27522
|
})]
|
|
27532
|
-
}), i && /* @__PURE__ */
|
|
27533
|
-
value:
|
|
27534
|
-
max:
|
|
27535
|
-
size:
|
|
27523
|
+
}), i && /* @__PURE__ */ L(te, {
|
|
27524
|
+
value: iS(e),
|
|
27525
|
+
max: aS(e.total),
|
|
27526
|
+
size: N.Medium,
|
|
27536
27527
|
className: "w-full",
|
|
27537
27528
|
ariaLabel: e.ariaLabel ?? `${e.label}: ${r}`
|
|
27538
27529
|
})]
|
|
27539
27530
|
}, e.label);
|
|
27540
27531
|
})
|
|
27541
|
-
}),
|
|
27532
|
+
}), lS = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ L("div", {
|
|
27542
27533
|
className: "flex flex-col",
|
|
27543
|
-
children: e.map((e, s) => /* @__PURE__ */
|
|
27534
|
+
children: e.map((e, s) => /* @__PURE__ */ R("div", { children: [s > 0 && /* @__PURE__ */ L("div", { className: G("shrink-0 border-b", Wx.divider) }), /* @__PURE__ */ L("div", {
|
|
27544
27535
|
className: "px-[22px] py-4",
|
|
27545
|
-
children: /* @__PURE__ */
|
|
27536
|
+
children: /* @__PURE__ */ L(Ix, {
|
|
27546
27537
|
sectionLabel: e.title,
|
|
27547
27538
|
values: e.specs,
|
|
27548
27539
|
sectionClassName: t,
|
|
@@ -27553,7 +27544,7 @@ var Tx = {
|
|
|
27553
27544
|
noLabel: o
|
|
27554
27545
|
})
|
|
27555
27546
|
})] }, s))
|
|
27556
|
-
}) : null,
|
|
27547
|
+
}) : null, uS = ({ pricing: e, pricesSectionLabel: t = "Token pricing", limitsSectionLabel: n = "Usage limits", labelClassName: r = "dial-small-semi-text", valueClassName: i = "dial-small-text", sectionClassName: a = "dial-caption-text" }) => {
|
|
27557
27548
|
if (e == null) return null;
|
|
27558
27549
|
let o = e.prices?.map((e) => ({
|
|
27559
27550
|
label: e.label,
|
|
@@ -27562,15 +27553,15 @@ var Tx = {
|
|
|
27562
27553
|
label: e.label,
|
|
27563
27554
|
value: e.value
|
|
27564
27555
|
}));
|
|
27565
|
-
return /* @__PURE__ */
|
|
27556
|
+
return /* @__PURE__ */ R("div", {
|
|
27566
27557
|
className: "flex flex-col gap-6",
|
|
27567
|
-
children: [/* @__PURE__ */
|
|
27558
|
+
children: [/* @__PURE__ */ L(Ix, {
|
|
27568
27559
|
sectionLabel: t,
|
|
27569
27560
|
values: o ?? [],
|
|
27570
27561
|
labelClassName: r,
|
|
27571
27562
|
valueClassName: i,
|
|
27572
27563
|
sectionClassName: a
|
|
27573
|
-
}), /* @__PURE__ */
|
|
27564
|
+
}), /* @__PURE__ */ L(Ix, {
|
|
27574
27565
|
sectionLabel: n,
|
|
27575
27566
|
values: s ?? [],
|
|
27576
27567
|
labelClassName: r,
|
|
@@ -27578,44 +27569,44 @@ var Tx = {
|
|
|
27578
27569
|
sectionClassName: a
|
|
27579
27570
|
})]
|
|
27580
27571
|
});
|
|
27581
|
-
},
|
|
27572
|
+
}, dS = {
|
|
27582
27573
|
container: "_container_1aye5_1",
|
|
27583
27574
|
header: "_header_1aye5_5",
|
|
27584
27575
|
cell: "_cell_1aye5_12",
|
|
27585
27576
|
evenRow: "_evenRow_1aye5_17"
|
|
27586
|
-
},
|
|
27577
|
+
}, fS = ({ columns: e, rows: n, columnsTemplate: r, headingClassName: i = "dial-caption-text", cellClassName: a = "dial-tiny-text" }) => {
|
|
27587
27578
|
let o = r ?? `repeat(${e.length}, 1fr)`;
|
|
27588
|
-
return /* @__PURE__ */
|
|
27589
|
-
className: G(
|
|
27579
|
+
return /* @__PURE__ */ R("div", {
|
|
27580
|
+
className: G(dS.container, "grid overflow-hidden rounded-[6px]"),
|
|
27590
27581
|
style: { gridTemplateColumns: o },
|
|
27591
|
-
children: [e.map((e) => /* @__PURE__ */
|
|
27592
|
-
className: G("px-2 py-1 text-start uppercase", i,
|
|
27582
|
+
children: [e.map((e) => /* @__PURE__ */ L("div", {
|
|
27583
|
+
className: G("px-2 py-1 text-start uppercase", i, dS.header),
|
|
27593
27584
|
children: e
|
|
27594
|
-
}, e)), n.map((e, n) => /* @__PURE__ */
|
|
27595
|
-
className: G("px-2 py-1.5", a,
|
|
27585
|
+
}, e)), n.map((e, n) => /* @__PURE__ */ L(t, { children: e.map((e, t) => /* @__PURE__ */ L("div", {
|
|
27586
|
+
className: G("px-2 py-1.5", a, dS.cell, n % 2 == 1 ? dS.evenRow : void 0),
|
|
27596
27587
|
children: e
|
|
27597
27588
|
}, t)) }, n))]
|
|
27598
27589
|
});
|
|
27599
|
-
},
|
|
27590
|
+
}, pS = {
|
|
27600
27591
|
divider: "_divider_1e5ho_1",
|
|
27601
27592
|
description: "_description_1e5ho_5",
|
|
27602
27593
|
code: "_code_1e5ho_9"
|
|
27603
|
-
},
|
|
27594
|
+
}, mS = ({ tools: e, toolNameClassName: t = "dial-small-semi-text", descriptionClassName: n = "dial-small-text", tableHeadingClassName: r = "dial-caption-text", tableCellClassName: i = "dial-tiny-text" }) => e == null ? null : /* @__PURE__ */ L("div", {
|
|
27604
27595
|
className: "flex flex-col",
|
|
27605
|
-
children: e.tools.map((e, a) => /* @__PURE__ */
|
|
27606
|
-
className: G("flex flex-col gap-3 px-[22px] py-4", a > 0 ?
|
|
27596
|
+
children: e.tools.map((e, a) => /* @__PURE__ */ R("div", {
|
|
27597
|
+
className: G("flex flex-col gap-3 px-[22px] py-4", a > 0 ? pS.divider : void 0),
|
|
27607
27598
|
children: [
|
|
27608
|
-
/* @__PURE__ */
|
|
27599
|
+
/* @__PURE__ */ R("div", {
|
|
27609
27600
|
className: "flex flex-col gap-1",
|
|
27610
|
-
children: [/* @__PURE__ */
|
|
27601
|
+
children: [/* @__PURE__ */ L("span", {
|
|
27611
27602
|
className: t,
|
|
27612
27603
|
children: e.name
|
|
27613
|
-
}), e.description != null && /* @__PURE__ */
|
|
27614
|
-
className: G("m-0", n,
|
|
27604
|
+
}), e.description != null && /* @__PURE__ */ L("p", {
|
|
27605
|
+
className: G("m-0", n, pS.description),
|
|
27615
27606
|
children: e.description
|
|
27616
27607
|
})]
|
|
27617
27608
|
}),
|
|
27618
|
-
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */
|
|
27609
|
+
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ L(fS, {
|
|
27619
27610
|
columns: [
|
|
27620
27611
|
"Name",
|
|
27621
27612
|
"Type",
|
|
@@ -27623,12 +27614,12 @@ var Tx = {
|
|
|
27623
27614
|
],
|
|
27624
27615
|
columnsTemplate: "1fr 1fr auto",
|
|
27625
27616
|
rows: e.inputParams.map((e) => [
|
|
27626
|
-
/* @__PURE__ */
|
|
27627
|
-
className: G("text-inherit border-none bg-transparent p-0",
|
|
27617
|
+
/* @__PURE__ */ L("code", {
|
|
27618
|
+
className: G("text-inherit border-none bg-transparent p-0", pS.code),
|
|
27628
27619
|
children: e.name
|
|
27629
27620
|
}, "name"),
|
|
27630
|
-
/* @__PURE__ */
|
|
27631
|
-
className: G("text-inherit border-none bg-transparent p-0",
|
|
27621
|
+
/* @__PURE__ */ L("code", {
|
|
27622
|
+
className: G("text-inherit border-none bg-transparent p-0", pS.code),
|
|
27632
27623
|
children: e.type
|
|
27633
27624
|
}, "type"),
|
|
27634
27625
|
e.isRequired ? "✓" : "—"
|
|
@@ -27636,10 +27627,10 @@ var Tx = {
|
|
|
27636
27627
|
headingClassName: r,
|
|
27637
27628
|
cellClassName: i
|
|
27638
27629
|
}),
|
|
27639
|
-
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */
|
|
27630
|
+
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ L(fS, {
|
|
27640
27631
|
columns: ["Key", "Value"],
|
|
27641
|
-
rows: e.annotations.map((e) => [/* @__PURE__ */
|
|
27642
|
-
className: G("text-inherit border-none bg-transparent p-0",
|
|
27632
|
+
rows: e.annotations.map((e) => [/* @__PURE__ */ L("code", {
|
|
27633
|
+
className: G("text-inherit border-none bg-transparent p-0", pS.code),
|
|
27643
27634
|
children: e.key
|
|
27644
27635
|
}, "key"), e.value]),
|
|
27645
27636
|
headingClassName: r,
|
|
@@ -27647,12 +27638,12 @@ var Tx = {
|
|
|
27647
27638
|
})
|
|
27648
27639
|
]
|
|
27649
27640
|
}, e.name))
|
|
27650
|
-
}),
|
|
27651
|
-
let { overviewSectionClassName:
|
|
27641
|
+
}), hS = async () => void 0, gS = [], _S = ({ 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 = gS, publishExpandedPaths: g, onPublishExpandedPathsChange: _, publishLoadingPaths: v, hasPublishWriteAccess: x, onPublish: S, onPublishSuccess: C, onCreatePublishFolder: w, publishTexts: T, shareOverlay: E, connectOverlay: D, isConnectVisible: O, onEdit: k, onDelete: ee, onLogin: A, onLogout: j, texts: M, styles: te }) => {
|
|
27642
|
+
let { overviewSectionClassName: N = "dial-caption-text", overviewLabelClassName: ne = "dial-small-semi-text", overviewValueClassName: re = "dial-small-text", overviewValueTrueClassName: ie = "dial-small-text", credentialsStatusLabelClassName: ae } = te?.typography ?? {}, [F, I] = d(n), [oe, ce] = d(""), [le, de] = d(!1), [fe, pe] = d([]), [me, he] = d(!1), [ge, _e] = d(!1);
|
|
27652
27643
|
o(() => {
|
|
27653
|
-
if (!
|
|
27644
|
+
if (!le || !m) return;
|
|
27654
27645
|
let t = !1;
|
|
27655
|
-
return he(!0), _e(!1),
|
|
27646
|
+
return he(!0), _e(!1), m(e).then((e) => {
|
|
27656
27647
|
t || pe(e);
|
|
27657
27648
|
}).catch(() => {
|
|
27658
27649
|
t || _e(!0);
|
|
@@ -27662,65 +27653,45 @@ var Tx = {
|
|
|
27662
27653
|
t = !0;
|
|
27663
27654
|
};
|
|
27664
27655
|
}, [
|
|
27665
|
-
|
|
27666
|
-
|
|
27656
|
+
le,
|
|
27657
|
+
m,
|
|
27667
27658
|
e
|
|
27668
27659
|
]);
|
|
27669
|
-
let
|
|
27660
|
+
let z = $e({
|
|
27670
27661
|
item: e,
|
|
27671
27662
|
history: fe,
|
|
27672
|
-
folderItems:
|
|
27673
|
-
hasWriteAccess:
|
|
27674
|
-
onCreateFolder:
|
|
27675
|
-
onPublish:
|
|
27676
|
-
onPublishSuccess:
|
|
27663
|
+
folderItems: h,
|
|
27664
|
+
hasWriteAccess: x,
|
|
27665
|
+
onCreateFolder: w,
|
|
27666
|
+
onPublish: S ?? hS,
|
|
27667
|
+
onPublishSuccess: C
|
|
27677
27668
|
}), ve = l(() => Je({
|
|
27678
|
-
hasSelectedFolder:
|
|
27679
|
-
hasExistingPublicationInFolder:
|
|
27680
|
-
hasWriteAccess:
|
|
27681
|
-
isSubmitting:
|
|
27682
|
-
hasSubmitError:
|
|
27669
|
+
hasSelectedFolder: z.selectedFolderPath != null,
|
|
27670
|
+
hasExistingPublicationInFolder: z.hasExistingPublicationInFolder,
|
|
27671
|
+
hasWriteAccess: z.hasWriteAccess,
|
|
27672
|
+
isSubmitting: z.isSubmitting,
|
|
27673
|
+
hasSubmitError: z.hasSubmitError
|
|
27683
27674
|
}), [
|
|
27684
|
-
|
|
27685
|
-
|
|
27686
|
-
|
|
27687
|
-
|
|
27688
|
-
|
|
27689
|
-
]), [ye, be] = d(!1), [xe, Se] = d(!1)
|
|
27675
|
+
z.selectedFolderPath,
|
|
27676
|
+
z.hasExistingPublicationInFolder,
|
|
27677
|
+
z.hasWriteAccess,
|
|
27678
|
+
z.isSubmitting,
|
|
27679
|
+
z.hasSubmitError
|
|
27680
|
+
]), [ye, be] = d(!1), [xe, Se] = d(!1);
|
|
27690
27681
|
o(() => {
|
|
27691
|
-
|
|
27682
|
+
I(n);
|
|
27692
27683
|
}, [e.id, n]), o(() => {
|
|
27693
|
-
ce(
|
|
27684
|
+
ce(Ne.About), de(!1), z.reset(), pe([]), _e(!1), be(!1), Se(!1);
|
|
27694
27685
|
}, [e.id]);
|
|
27695
|
-
let
|
|
27686
|
+
let Ce = a(() => {
|
|
27696
27687
|
be((e) => !e);
|
|
27697
|
-
}, []),
|
|
27688
|
+
}, []), we = a(() => {
|
|
27698
27689
|
Se(!0);
|
|
27699
|
-
}, []),
|
|
27690
|
+
}, []), Te = a(() => {
|
|
27700
27691
|
Se(!1);
|
|
27701
|
-
}, []),
|
|
27702
|
-
Se(!1), e.credentials != null &&
|
|
27703
|
-
}, [e,
|
|
27704
|
-
we(!0);
|
|
27705
|
-
}, []), Ne = a(() => {
|
|
27706
|
-
we(!1);
|
|
27707
|
-
}, []), V = a(async () => {
|
|
27708
|
-
if (!Te) {
|
|
27709
|
-
Ee(!0);
|
|
27710
|
-
try {
|
|
27711
|
-
await p?.(e), we(!1), i();
|
|
27712
|
-
} catch {
|
|
27713
|
-
we(!1);
|
|
27714
|
-
} finally {
|
|
27715
|
-
Ee(!1);
|
|
27716
|
-
}
|
|
27717
|
-
}
|
|
27718
|
-
}, [
|
|
27719
|
-
Te,
|
|
27720
|
-
e,
|
|
27721
|
-
p,
|
|
27722
|
-
i
|
|
27723
|
-
]);
|
|
27692
|
+
}, []), Ee = a(() => {
|
|
27693
|
+
Se(!1), e.credentials != null && j?.(e, { level: ut(e.credentials) });
|
|
27694
|
+
}, [e, j]);
|
|
27724
27695
|
o(() => {
|
|
27725
27696
|
if (!t) return;
|
|
27726
27697
|
let e = (e) => {
|
|
@@ -27728,167 +27699,155 @@ var Tx = {
|
|
|
27728
27699
|
};
|
|
27729
27700
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
27730
27701
|
}, [t, i]);
|
|
27731
|
-
let
|
|
27732
|
-
de(!1),
|
|
27733
|
-
}, [
|
|
27734
|
-
await
|
|
27735
|
-
}, [
|
|
27736
|
-
let t = !
|
|
27737
|
-
|
|
27702
|
+
let De = a(() => de(!0), []), Oe = a(() => {
|
|
27703
|
+
de(!1), z.reset();
|
|
27704
|
+
}, [z]), ke = a(async () => {
|
|
27705
|
+
await z.handleSubmit() && Oe();
|
|
27706
|
+
}, [z, Oe]), Ae = a(() => {
|
|
27707
|
+
let t = !F;
|
|
27708
|
+
I(t), s?.(e.id, t);
|
|
27738
27709
|
}, [
|
|
27739
|
-
|
|
27710
|
+
F,
|
|
27740
27711
|
e.id,
|
|
27741
27712
|
s
|
|
27742
|
-
]),
|
|
27713
|
+
]), je = l(() => {
|
|
27743
27714
|
let t = [{
|
|
27744
|
-
id:
|
|
27745
|
-
label:
|
|
27715
|
+
id: Ne.About,
|
|
27716
|
+
label: M?.tabAboutLabel ?? "About"
|
|
27746
27717
|
}];
|
|
27747
27718
|
return e.details?.overview != null && t.push({
|
|
27748
|
-
id:
|
|
27749
|
-
label:
|
|
27719
|
+
id: Ne.Overview,
|
|
27720
|
+
label: M?.tabOverviewLabel ?? "Overview"
|
|
27750
27721
|
}), e.details?.pricing != null && t.push({
|
|
27751
|
-
id:
|
|
27752
|
-
label:
|
|
27722
|
+
id: Ne.Pricing,
|
|
27723
|
+
label: M?.tabPricingLabel ?? "Pricing"
|
|
27753
27724
|
}), e.details?.limits != null && t.push({
|
|
27754
|
-
id:
|
|
27755
|
-
label:
|
|
27725
|
+
id: Ne.Limits,
|
|
27726
|
+
label: M?.tabLimitsLabel ?? "Limits"
|
|
27756
27727
|
}), e.details?.api != null && t.push({
|
|
27757
|
-
id:
|
|
27758
|
-
label:
|
|
27728
|
+
id: Ne.Api,
|
|
27729
|
+
label: M?.tabApiLabel ?? "API"
|
|
27759
27730
|
}), e.details?.tools != null && t.push({
|
|
27760
|
-
id:
|
|
27761
|
-
label:
|
|
27731
|
+
id: Ne.Tools,
|
|
27732
|
+
label: M?.tabToolsLabel ?? "Tools"
|
|
27762
27733
|
}), t;
|
|
27763
|
-
}, [e.details,
|
|
27734
|
+
}, [e.details, M]);
|
|
27764
27735
|
o(() => {
|
|
27765
|
-
|
|
27736
|
+
je.some((e) => e.id === oe) || ce(je[0]?.id ?? "");
|
|
27766
27737
|
}, [
|
|
27767
27738
|
e.id,
|
|
27768
|
-
|
|
27769
|
-
|
|
27739
|
+
je,
|
|
27740
|
+
oe
|
|
27770
27741
|
]);
|
|
27771
|
-
let
|
|
27772
|
-
return /* @__PURE__ */
|
|
27742
|
+
let Me = M?.overviewYesLabel ?? "Yes", Pe = M?.overviewNoLabel ?? "No", B = M?.ariaLabel ?? "Item details", Fe = M?.closeAriaLabel ?? "Close", Ie = F ? M?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : M?.addToFavoritesAriaLabel ?? "Add to favorites", Le = M?.publishTitle ?? "Publish", Re = M?.backToDetailsAriaLabel ?? "Back";
|
|
27743
|
+
return /* @__PURE__ */ R(se, { children: [/* @__PURE__ */ L("div", {
|
|
27773
27744
|
className: G("fixed inset-0 z-40 transition-opacity duration-300", Wx.backdrop, t ? "opacity-100" : "pointer-events-none opacity-0"),
|
|
27774
27745
|
onClick: i,
|
|
27775
27746
|
"aria-hidden": "true"
|
|
27776
|
-
}), /* @__PURE__ */
|
|
27747
|
+
}), /* @__PURE__ */ R("div", {
|
|
27777
27748
|
role: "dialog",
|
|
27778
27749
|
"aria-modal": "true",
|
|
27779
|
-
"aria-label":
|
|
27750
|
+
"aria-label": B,
|
|
27780
27751
|
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", Wx.panel, t ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
|
|
27781
27752
|
children: [
|
|
27782
|
-
/* @__PURE__ */
|
|
27753
|
+
/* @__PURE__ */ R("div", {
|
|
27783
27754
|
className: "flex shrink-0 items-center gap-2 px-[22px] py-3",
|
|
27784
|
-
children: [
|
|
27785
|
-
icon: /* @__PURE__ */
|
|
27786
|
-
"aria-label":
|
|
27787
|
-
disabled:
|
|
27788
|
-
onClick:
|
|
27789
|
-
}), /* @__PURE__ */
|
|
27755
|
+
children: [le ? /* @__PURE__ */ R(se, { children: [/* @__PURE__ */ L(zb, {
|
|
27756
|
+
icon: /* @__PURE__ */ L(ue, { className: "rtl:scale-x-[-1]" }),
|
|
27757
|
+
"aria-label": Re,
|
|
27758
|
+
disabled: z.isSubmitting,
|
|
27759
|
+
onClick: Oe
|
|
27760
|
+
}), /* @__PURE__ */ L("span", {
|
|
27790
27761
|
className: "dial-body-semi-text flex-1 text-primary",
|
|
27791
|
-
children:
|
|
27792
|
-
})] }) : /* @__PURE__ */
|
|
27793
|
-
isStarred:
|
|
27794
|
-
ariaLabel:
|
|
27795
|
-
onClick:
|
|
27796
|
-
})] }), !
|
|
27762
|
+
children: Le
|
|
27763
|
+
})] }) : /* @__PURE__ */ R(se, { children: [/* @__PURE__ */ L("div", { className: "flex-1" }), /* @__PURE__ */ L(fx, {
|
|
27764
|
+
isStarred: F,
|
|
27765
|
+
ariaLabel: Ie,
|
|
27766
|
+
onClick: Ae
|
|
27767
|
+
})] }), !le && /* @__PURE__ */ L(y, {
|
|
27797
27768
|
onClose: i,
|
|
27798
|
-
ariaLabel:
|
|
27769
|
+
ariaLabel: Fe
|
|
27799
27770
|
})]
|
|
27800
27771
|
}),
|
|
27801
|
-
/* @__PURE__ */
|
|
27802
|
-
/* @__PURE__ */
|
|
27772
|
+
/* @__PURE__ */ L("div", { className: G("shrink-0", Wx.divider) }),
|
|
27773
|
+
/* @__PURE__ */ L("div", {
|
|
27803
27774
|
className: G("min-h-0 flex-1 overflow-y-auto", Wx.content),
|
|
27804
|
-
children:
|
|
27775
|
+
children: le ? /* @__PURE__ */ L("div", {
|
|
27805
27776
|
className: "p-[22px]",
|
|
27806
|
-
children: /* @__PURE__ */
|
|
27777
|
+
children: /* @__PURE__ */ L(Ax, {
|
|
27807
27778
|
item: e,
|
|
27808
27779
|
history: fe,
|
|
27809
27780
|
isHistoryLoading: me,
|
|
27810
27781
|
hasHistoryError: ge,
|
|
27811
|
-
folderItems:
|
|
27812
|
-
selectedFolderPath:
|
|
27813
|
-
onSelectedFolderPathChange:
|
|
27814
|
-
onCreateFolder:
|
|
27815
|
-
expandedPaths:
|
|
27816
|
-
onExpandedPathsChange:
|
|
27817
|
-
loadingPaths:
|
|
27818
|
-
hasExistingPublicationInFolder:
|
|
27819
|
-
hasWriteAccess:
|
|
27820
|
-
isSubmitting:
|
|
27821
|
-
hasSubmitError:
|
|
27822
|
-
texts:
|
|
27782
|
+
folderItems: z.folderItems,
|
|
27783
|
+
selectedFolderPath: z.selectedFolderPath,
|
|
27784
|
+
onSelectedFolderPathChange: z.setSelectedFolderPath,
|
|
27785
|
+
onCreateFolder: z.handleCreateFolder,
|
|
27786
|
+
expandedPaths: g,
|
|
27787
|
+
onExpandedPathsChange: _,
|
|
27788
|
+
loadingPaths: v,
|
|
27789
|
+
hasExistingPublicationInFolder: z.hasExistingPublicationInFolder,
|
|
27790
|
+
hasWriteAccess: z.hasWriteAccess,
|
|
27791
|
+
isSubmitting: z.isSubmitting,
|
|
27792
|
+
hasSubmitError: z.hasSubmitError,
|
|
27793
|
+
texts: T
|
|
27823
27794
|
})
|
|
27824
|
-
}) : /* @__PURE__ */
|
|
27825
|
-
/* @__PURE__ */
|
|
27795
|
+
}) : /* @__PURE__ */ R(se, { children: [
|
|
27796
|
+
/* @__PURE__ */ L(Xx, {
|
|
27826
27797
|
item: e,
|
|
27827
27798
|
onUseInChat: c,
|
|
27828
27799
|
isPrimaryActionVisible: u,
|
|
27829
27800
|
onShare: f,
|
|
27830
|
-
shareOverlay:
|
|
27831
|
-
connectOverlay:
|
|
27832
|
-
isConnectVisible:
|
|
27833
|
-
|
|
27834
|
-
|
|
27835
|
-
|
|
27836
|
-
|
|
27837
|
-
onDelete: A,
|
|
27801
|
+
shareOverlay: E,
|
|
27802
|
+
connectOverlay: D,
|
|
27803
|
+
isConnectVisible: O,
|
|
27804
|
+
isPublishVisible: p,
|
|
27805
|
+
onOpenPublish: De,
|
|
27806
|
+
onEdit: k,
|
|
27807
|
+
onDelete: ee,
|
|
27838
27808
|
onCloseDetails: i,
|
|
27839
|
-
onLogin:
|
|
27840
|
-
onLogout:
|
|
27841
|
-
onToggleCredentials:
|
|
27842
|
-
onRequestLogout:
|
|
27843
|
-
texts:
|
|
27844
|
-
detailsStyles:
|
|
27809
|
+
onLogin: A,
|
|
27810
|
+
onLogout: j,
|
|
27811
|
+
onToggleCredentials: Ce,
|
|
27812
|
+
onRequestLogout: we,
|
|
27813
|
+
texts: M,
|
|
27814
|
+
detailsStyles: te
|
|
27845
27815
|
}),
|
|
27846
|
-
ye && /* @__PURE__ */
|
|
27816
|
+
ye && /* @__PURE__ */ L(Ux, {
|
|
27847
27817
|
item: e,
|
|
27848
|
-
onLogin:
|
|
27849
|
-
onLogout:
|
|
27850
|
-
texts:
|
|
27851
|
-
statusLabelClassName:
|
|
27818
|
+
onLogin: A,
|
|
27819
|
+
onLogout: j,
|
|
27820
|
+
texts: M,
|
|
27821
|
+
statusLabelClassName: ae
|
|
27852
27822
|
}),
|
|
27853
|
-
/* @__PURE__ */
|
|
27823
|
+
/* @__PURE__ */ L(b, {
|
|
27854
27824
|
open: xe,
|
|
27855
|
-
header:
|
|
27856
|
-
description:
|
|
27857
|
-
confirmLabel:
|
|
27858
|
-
onConfirm:
|
|
27859
|
-
onCancel:
|
|
27860
|
-
onClose:
|
|
27825
|
+
header: M?.logoutActionLabel ?? "Log out",
|
|
27826
|
+
description: M?.logoutConfirmMessage ?? "Are you sure you want to log out?",
|
|
27827
|
+
confirmLabel: M?.logoutActionLabel ?? "Log out",
|
|
27828
|
+
onConfirm: Ee,
|
|
27829
|
+
onCancel: Te,
|
|
27830
|
+
onClose: Te
|
|
27861
27831
|
}),
|
|
27862
|
-
/* @__PURE__ */
|
|
27863
|
-
|
|
27864
|
-
header: N?.unshareConfirmTitle ?? "Delete item?",
|
|
27865
|
-
description: N?.unshareConfirmMessage?.(e.name) ?? `Delete "${e.name}" from your catalog? You'll need a new invitation to access it again.`,
|
|
27866
|
-
confirmLabel: N?.unshareLabel ?? "Delete",
|
|
27867
|
-
cancelLabel: N?.cancelLabel ?? "Cancel",
|
|
27868
|
-
isLoading: Te,
|
|
27869
|
-
onConfirm: V,
|
|
27870
|
-
onCancel: Ne,
|
|
27871
|
-
onClose: Ne
|
|
27872
|
-
}),
|
|
27873
|
-
/* @__PURE__ */ R("div", { className: Wx.divider }),
|
|
27874
|
-
/* @__PURE__ */ R(iS, {
|
|
27832
|
+
/* @__PURE__ */ L("div", { className: Wx.divider }),
|
|
27833
|
+
/* @__PURE__ */ L(rS, {
|
|
27875
27834
|
item: e,
|
|
27876
|
-
texts:
|
|
27877
|
-
detailsStyles:
|
|
27835
|
+
texts: M,
|
|
27836
|
+
detailsStyles: te
|
|
27878
27837
|
}),
|
|
27879
|
-
/* @__PURE__ */
|
|
27838
|
+
/* @__PURE__ */ R("div", {
|
|
27880
27839
|
className: "flex items-center gap-2 px-[22px]",
|
|
27881
|
-
children: [/* @__PURE__ */
|
|
27882
|
-
tabs:
|
|
27883
|
-
activeTabId:
|
|
27840
|
+
children: [/* @__PURE__ */ L(Vb, {
|
|
27841
|
+
tabs: je,
|
|
27842
|
+
activeTabId: oe,
|
|
27884
27843
|
onTabChange: ce,
|
|
27885
27844
|
activeTabClassName: "text-catalog-tab-active",
|
|
27886
27845
|
inactiveTabClassName: "text-catalog-tab-inactive hover:text-catalog-tab-hover border-transparent"
|
|
27887
|
-
}), r && /* @__PURE__ */
|
|
27846
|
+
}), r && /* @__PURE__ */ L("div", {
|
|
27888
27847
|
role: "status",
|
|
27889
|
-
"aria-label":
|
|
27848
|
+
"aria-label": M?.detailsLoadingAriaLabel ?? "Loading details",
|
|
27890
27849
|
className: "shrink-0",
|
|
27891
|
-
children: /* @__PURE__ */
|
|
27850
|
+
children: /* @__PURE__ */ L(P, {
|
|
27892
27851
|
showTitle: !1,
|
|
27893
27852
|
paragraph: {
|
|
27894
27853
|
rows: 1,
|
|
@@ -27899,55 +27858,55 @@ var Tx = {
|
|
|
27899
27858
|
})
|
|
27900
27859
|
})]
|
|
27901
27860
|
}),
|
|
27902
|
-
/* @__PURE__ */
|
|
27903
|
-
className: G(
|
|
27861
|
+
/* @__PURE__ */ R("div", {
|
|
27862
|
+
className: G(oe !== Ne.Overview && "px-[22px] py-4"),
|
|
27904
27863
|
children: [
|
|
27905
|
-
|
|
27864
|
+
oe === Ne.About && /* @__PURE__ */ L($x, {
|
|
27906
27865
|
content: e.description,
|
|
27907
|
-
detailsStyles:
|
|
27866
|
+
detailsStyles: te
|
|
27908
27867
|
}),
|
|
27909
|
-
|
|
27868
|
+
oe === Ne.Overview && /* @__PURE__ */ L(lS, {
|
|
27910
27869
|
sections: e.details?.overview?.sections,
|
|
27911
|
-
sectionClassName:
|
|
27870
|
+
sectionClassName: N,
|
|
27912
27871
|
labelClassName: ne,
|
|
27913
27872
|
valueClassName: re,
|
|
27914
27873
|
valueTrueClassName: ie,
|
|
27915
|
-
yesLabel:
|
|
27916
|
-
noLabel:
|
|
27874
|
+
yesLabel: Me,
|
|
27875
|
+
noLabel: Pe
|
|
27917
27876
|
}),
|
|
27918
|
-
|
|
27877
|
+
oe === Ne.Pricing && /* @__PURE__ */ L(uS, {
|
|
27919
27878
|
pricing: e.details?.pricing,
|
|
27920
|
-
pricesSectionLabel:
|
|
27921
|
-
limitsSectionLabel:
|
|
27879
|
+
pricesSectionLabel: M?.pricingPricesSectionLabel,
|
|
27880
|
+
limitsSectionLabel: M?.pricingLimitsSectionLabel
|
|
27922
27881
|
}),
|
|
27923
|
-
|
|
27924
|
-
|
|
27882
|
+
oe === Ne.Limits && /* @__PURE__ */ L(cS, { limits: e.details?.limits }),
|
|
27883
|
+
oe === Ne.Api && e.details?.api != null && /* @__PURE__ */ L(Vx, {
|
|
27925
27884
|
api: e.details.api,
|
|
27926
|
-
resourceSectionLabel:
|
|
27927
|
-
snippetSectionLabel:
|
|
27928
|
-
modelIdLabel:
|
|
27929
|
-
endpointLabel:
|
|
27930
|
-
requestExampleLabel:
|
|
27931
|
-
responseSchemaLabel:
|
|
27932
|
-
copyAriaLabel:
|
|
27885
|
+
resourceSectionLabel: M?.apiResourceSectionLabel,
|
|
27886
|
+
snippetSectionLabel: M?.apiSnippetSectionLabel,
|
|
27887
|
+
modelIdLabel: M?.apiModelIdLabel,
|
|
27888
|
+
endpointLabel: M?.apiEndpointLabel,
|
|
27889
|
+
requestExampleLabel: M?.apiRequestExampleLabel,
|
|
27890
|
+
responseSchemaLabel: M?.apiResponseSchemaLabel,
|
|
27891
|
+
copyAriaLabel: M?.copyCodeAriaLabel
|
|
27933
27892
|
}),
|
|
27934
|
-
|
|
27893
|
+
oe === Ne.Tools && /* @__PURE__ */ L(mS, { tools: e.details?.tools })
|
|
27935
27894
|
]
|
|
27936
27895
|
})
|
|
27937
27896
|
] })
|
|
27938
27897
|
}),
|
|
27939
|
-
|
|
27898
|
+
le && /* @__PURE__ */ L(xx, {
|
|
27940
27899
|
version: e.version,
|
|
27941
|
-
hasExistingPublicationInFolder:
|
|
27900
|
+
hasExistingPublicationInFolder: z.hasExistingPublicationInFolder,
|
|
27942
27901
|
isSubmitDisabled: ve.isSubmitDisabled,
|
|
27943
27902
|
isSubmitLoading: ve.isSubmitLoading,
|
|
27944
|
-
onCancel:
|
|
27945
|
-
onSubmit:
|
|
27946
|
-
texts:
|
|
27903
|
+
onCancel: Oe,
|
|
27904
|
+
onSubmit: ke,
|
|
27905
|
+
texts: T
|
|
27947
27906
|
})
|
|
27948
27907
|
]
|
|
27949
27908
|
})] });
|
|
27950
|
-
},
|
|
27909
|
+
}, vS = {
|
|
27951
27910
|
pageNav: "_pageNav_1b9kr_1",
|
|
27952
27911
|
navBtn: "_navBtn_1b9kr_6",
|
|
27953
27912
|
pageCounter: "_pageCounter_1b9kr_23",
|
|
@@ -27960,7 +27919,7 @@ var Tx = {
|
|
|
27960
27919
|
favFadeIn: "_favFadeIn_1b9kr_1",
|
|
27961
27920
|
cardLeaving: "_cardLeaving_1b9kr_64",
|
|
27962
27921
|
cardFadeOut: "_cardFadeOut_1b9kr_1"
|
|
27963
|
-
},
|
|
27922
|
+
}, yS = ({ item: e, initialIsStarred: t = !0, onToggle: n, onClick: r, nameClassName: i, versionClassName: o, lastUsedClassName: s, query: c, addToFavoritesAriaLabel: l = "Add to favorites", removeFromFavoritesAriaLabel: u = "Remove from favorites", isSelected: f = !1, credentialsBadgeLoggedOutLabel: p }) => {
|
|
27964
27923
|
let [h, g] = d(t), [_, v] = d(!1), y = (t) => {
|
|
27965
27924
|
t.stopPropagation();
|
|
27966
27925
|
let r = !h;
|
|
@@ -27972,26 +27931,26 @@ var Tx = {
|
|
|
27972
27931
|
e,
|
|
27973
27932
|
_
|
|
27974
27933
|
]);
|
|
27975
|
-
return /* @__PURE__ */
|
|
27934
|
+
return /* @__PURE__ */ R("article", {
|
|
27976
27935
|
"data-card-id": e.id,
|
|
27977
27936
|
role: b == null ? void 0 : "button",
|
|
27978
27937
|
tabIndex: b == null ? void 0 : 0,
|
|
27979
27938
|
"aria-label": e.name,
|
|
27980
|
-
className: G("relative box-border flex min-w-0 cursor-pointer items-start gap-1", "rounded-[20px] border-2 p-[22px] text-start",
|
|
27939
|
+
className: G("relative box-border flex min-w-0 cursor-pointer items-start gap-1", "rounded-[20px] border-2 p-[22px] text-start", vS.card, _ && vS.cardLeaving, f ? "border-accent-primary !bg-accent-primary-alpha" : "border-transparent"),
|
|
27981
27940
|
onClick: b,
|
|
27982
27941
|
onKeyDown: x,
|
|
27983
27942
|
onAnimationEnd: _ ? (t) => {
|
|
27984
27943
|
t.currentTarget === t.target && n?.(e.id, !1);
|
|
27985
27944
|
} : void 0,
|
|
27986
27945
|
children: [
|
|
27987
|
-
f && /* @__PURE__ */
|
|
27946
|
+
f && /* @__PURE__ */ L(ce, {
|
|
27988
27947
|
size: m.SM,
|
|
27989
27948
|
className: "absolute end-3 top-3 shrink-0 text-accent-primary",
|
|
27990
27949
|
"aria-hidden": !0
|
|
27991
27950
|
}),
|
|
27992
|
-
/* @__PURE__ */
|
|
27951
|
+
/* @__PURE__ */ R("div", {
|
|
27993
27952
|
className: "flex min-w-0 flex-1 flex-col items-start gap-1",
|
|
27994
|
-
children: [/* @__PURE__ */
|
|
27953
|
+
children: [/* @__PURE__ */ L(ax, {
|
|
27995
27954
|
icon: e.iconUrl,
|
|
27996
27955
|
type: e.type,
|
|
27997
27956
|
name: e.name,
|
|
@@ -28004,21 +27963,21 @@ var Tx = {
|
|
|
28004
27963
|
nameClassName: i,
|
|
28005
27964
|
versionClassName: o,
|
|
28006
27965
|
lastUsedClassName: s
|
|
28007
|
-
}), /* @__PURE__ */
|
|
27966
|
+
}), /* @__PURE__ */ L(ox, {
|
|
28008
27967
|
credentials: e.credentials,
|
|
28009
27968
|
loggedOutLabel: p
|
|
28010
27969
|
})]
|
|
28011
27970
|
}),
|
|
28012
|
-
/* @__PURE__ */
|
|
27971
|
+
/* @__PURE__ */ L(fx, {
|
|
28013
27972
|
isStarred: h,
|
|
28014
|
-
size:
|
|
27973
|
+
size: F.Small,
|
|
28015
27974
|
onClick: y,
|
|
28016
27975
|
ariaLabel: h ? u : l,
|
|
28017
27976
|
className: "self-end"
|
|
28018
27977
|
})
|
|
28019
27978
|
]
|
|
28020
27979
|
});
|
|
28021
|
-
},
|
|
27980
|
+
}, bS = 2, xS = (e) => {
|
|
28022
27981
|
let t = e.getBoundingClientRect(), n = window.scrollX, r = window.scrollY, i = window.getComputedStyle(e).transform;
|
|
28023
27982
|
if (!i || i === "none") return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
28024
27983
|
try {
|
|
@@ -28027,50 +27986,50 @@ var Tx = {
|
|
|
28027
27986
|
} catch {
|
|
28028
27987
|
return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
28029
27988
|
}
|
|
28030
|
-
},
|
|
28031
|
-
let y = a?.typography?.titleClassName ?? "dial-body-semi-text text-primary", b = a?.typography?.countClassName ?? "dial-tiny-semi-text text-secondary", x = { "--cat-favorites-border": a?.colors?.border }, S = l(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [C, w] = d(1), T = qe(), E = T *
|
|
27989
|
+
}, SS = ({ items: e, totalCount: t, title: n = "Your Favorites", onToggleFavorite: r, onItemClick: i, styles: a, isLeaving: s, onExitComplete: f, prevPageAriaLabel: p = "Previous page", nextPageAriaLabel: m = "Next page", addToFavoritesAriaLabel: h, removeFromFavoritesAriaLabel: g, selectedItemId: _, credentialsBadgeLoggedOutLabel: v }) => {
|
|
27990
|
+
let y = a?.typography?.titleClassName ?? "dial-body-semi-text text-primary", b = a?.typography?.countClassName ?? "dial-tiny-semi-text text-secondary", x = { "--cat-favorites-border": a?.colors?.border }, S = l(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [C, w] = d(1), T = qe(), E = T * bS, D = (C - 1) * E, O = l(() => S.slice(D, D + E), [
|
|
28032
27991
|
S,
|
|
28033
27992
|
D,
|
|
28034
27993
|
E
|
|
28035
|
-
]), k = Math.ceil(S.length / E), ee = t ?? e.length, A = u(null), j = u(null), M = u(null), [
|
|
27994
|
+
]), k = Math.ceil(S.length / E), ee = t ?? e.length, A = u(null), j = u(null), M = u(null), [te, N] = d(), [P, ne] = d(), re = u(T);
|
|
28036
27995
|
o(() => {
|
|
28037
|
-
|
|
27996
|
+
re.current !== T && (re.current = T, w(1), N(void 0), ne(void 0));
|
|
28038
27997
|
}, [T]), o(() => {
|
|
28039
27998
|
C > k && k > 0 && w(k);
|
|
28040
27999
|
}, [C, k]), o(() => {
|
|
28041
|
-
k <= 1 && (
|
|
28000
|
+
k <= 1 && (te !== void 0 || P !== void 0) && (N(void 0), ne(void 0));
|
|
28042
28001
|
}, [
|
|
28043
28002
|
k,
|
|
28044
|
-
|
|
28045
|
-
|
|
28003
|
+
te,
|
|
28004
|
+
P
|
|
28046
28005
|
]), c(() => {
|
|
28047
|
-
!M.current || !j.current || k <= 1 || C !== 1 ||
|
|
28006
|
+
!M.current || !j.current || k <= 1 || C !== 1 || te !== void 0 || (N(M.current.offsetHeight), ne(j.current.offsetHeight));
|
|
28048
28007
|
}, [
|
|
28049
28008
|
k,
|
|
28050
28009
|
C,
|
|
28051
|
-
|
|
28010
|
+
te
|
|
28052
28011
|
]);
|
|
28053
|
-
let
|
|
28012
|
+
let ie = u(/* @__PURE__ */ new Map()), ae = u(C), F = u(T), I = u(0), oe = u(!1);
|
|
28054
28013
|
return c(() => {
|
|
28055
28014
|
if (!M.current || s) return;
|
|
28056
|
-
if (A.current && !
|
|
28015
|
+
if (A.current && !oe.current) {
|
|
28057
28016
|
let e = A.current;
|
|
28058
28017
|
e.style.height = "", e.style.transition = "";
|
|
28059
28018
|
}
|
|
28060
|
-
let e =
|
|
28061
|
-
|
|
28019
|
+
let e = ae.current !== C, t = F.current !== T;
|
|
28020
|
+
ae.current = C, F.current = T;
|
|
28062
28021
|
let n = M.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
|
|
28063
28022
|
if (n.forEach((e) => {
|
|
28064
|
-
r.set(e.dataset.cardId,
|
|
28023
|
+
r.set(e.dataset.cardId, xS(e));
|
|
28065
28024
|
}), !e && !t) {
|
|
28066
|
-
let e = j.current, t =
|
|
28025
|
+
let e = j.current, t = I.current, i = 0;
|
|
28067
28026
|
if (e) {
|
|
28068
28027
|
let t = e.style.height;
|
|
28069
28028
|
t && (e.style.height = ""), i = e.offsetHeight, t && (e.style.height = t);
|
|
28070
28029
|
}
|
|
28071
28030
|
let a = e != null && t > 0 && Math.abs(i - t) > 2, o = i > t ? 280 : 220, s = [];
|
|
28072
28031
|
if (n.forEach((e) => {
|
|
28073
|
-
let t = e.dataset.cardId, n =
|
|
28032
|
+
let t = e.dataset.cardId, n = ie.current.get(t), i = r.get(t);
|
|
28074
28033
|
if (!n || !i) return;
|
|
28075
28034
|
let o = n.left - i.left, c = n.top - i.top;
|
|
28076
28035
|
!a && Math.abs(c) > .5 || Math.abs(o) < .5 && Math.abs(c) < .5 || (e.style.transition = "none", e.style.transform = `translate(${o}px, ${c}px)`, s.push(e));
|
|
@@ -28086,9 +28045,9 @@ var Tx = {
|
|
|
28086
28045
|
e.addEventListener("transitionend", t);
|
|
28087
28046
|
}
|
|
28088
28047
|
}
|
|
28089
|
-
if (
|
|
28048
|
+
if (ie.current = r, j.current) {
|
|
28090
28049
|
let e = j.current, t = e.style.height ? parseFloat(e.style.height) : NaN;
|
|
28091
|
-
|
|
28050
|
+
I.current = Number.isNaN(t) ? e.offsetHeight : t;
|
|
28092
28051
|
}
|
|
28093
28052
|
}, [
|
|
28094
28053
|
O,
|
|
@@ -28100,11 +28059,11 @@ var Tx = {
|
|
|
28100
28059
|
if (!e) return;
|
|
28101
28060
|
let t = e.offsetHeight;
|
|
28102
28061
|
if (t === 0) return;
|
|
28103
|
-
|
|
28062
|
+
oe.current = !0, e.style.height = "0px", e.offsetHeight, e.style.transition = "height 300ms cubic-bezier(0, 0, 0.2, 1)", e.style.height = `${t}px`;
|
|
28104
28063
|
let n = (t) => {
|
|
28105
28064
|
t.target !== e || t.propertyName !== "height" || r();
|
|
28106
28065
|
}, r = () => {
|
|
28107
|
-
|
|
28066
|
+
oe.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
|
|
28108
28067
|
}, i = setTimeout(r, 400);
|
|
28109
28068
|
return e.addEventListener("transitionend", n), () => {
|
|
28110
28069
|
clearTimeout(i), e.removeEventListener("transitionend", n);
|
|
@@ -28113,64 +28072,64 @@ var Tx = {
|
|
|
28113
28072
|
if (!s || !A.current) return;
|
|
28114
28073
|
let e = A.current, t = e.offsetHeight;
|
|
28115
28074
|
t !== 0 && (e.style.height = `${t}px`, e.offsetHeight, e.style.transition = "height 260ms ease-in", e.style.height = "0px");
|
|
28116
|
-
}, [s]), /* @__PURE__ */
|
|
28075
|
+
}, [s]), /* @__PURE__ */ L("div", {
|
|
28117
28076
|
ref: A,
|
|
28118
|
-
children: /* @__PURE__ */
|
|
28077
|
+
children: /* @__PURE__ */ R("section", {
|
|
28119
28078
|
ref: j,
|
|
28120
|
-
className: G("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2",
|
|
28079
|
+
className: G("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", vS.section, s && vS.sectionLeaving),
|
|
28121
28080
|
style: {
|
|
28122
28081
|
...x,
|
|
28123
|
-
minHeight:
|
|
28082
|
+
minHeight: P
|
|
28124
28083
|
},
|
|
28125
28084
|
onAnimationEnd: (e) => {
|
|
28126
28085
|
e.target === j.current && s && f?.();
|
|
28127
28086
|
},
|
|
28128
|
-
children: [/* @__PURE__ */
|
|
28087
|
+
children: [/* @__PURE__ */ L(Ex, {
|
|
28129
28088
|
title: n,
|
|
28130
28089
|
postfix: ee,
|
|
28131
28090
|
titleClassName: y,
|
|
28132
28091
|
postfixClassName: b,
|
|
28133
|
-
trailing: k > 1 ? /* @__PURE__ */
|
|
28134
|
-
className: G("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]",
|
|
28092
|
+
trailing: k > 1 ? /* @__PURE__ */ R("div", {
|
|
28093
|
+
className: G("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", vS.pageNav),
|
|
28135
28094
|
children: [
|
|
28136
|
-
/* @__PURE__ */
|
|
28095
|
+
/* @__PURE__ */ L("button", {
|
|
28137
28096
|
"aria-label": p,
|
|
28138
28097
|
disabled: C === 1,
|
|
28139
28098
|
onClick: () => w((e) => e - 1),
|
|
28140
|
-
className: G("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent",
|
|
28141
|
-
children: /* @__PURE__ */
|
|
28099
|
+
className: G("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", vS.navBtn),
|
|
28100
|
+
children: /* @__PURE__ */ L(ue, {
|
|
28142
28101
|
size: 14,
|
|
28143
28102
|
className: "rtl:scale-x-[-1]"
|
|
28144
28103
|
})
|
|
28145
28104
|
}),
|
|
28146
|
-
/* @__PURE__ */
|
|
28147
|
-
className: G("min-w-[32px] select-none px-1 text-center",
|
|
28105
|
+
/* @__PURE__ */ R("span", {
|
|
28106
|
+
className: G("min-w-[32px] select-none px-1 text-center", vS.pageCounter),
|
|
28148
28107
|
children: [
|
|
28149
28108
|
C,
|
|
28150
28109
|
" / ",
|
|
28151
28110
|
k
|
|
28152
28111
|
]
|
|
28153
28112
|
}),
|
|
28154
|
-
/* @__PURE__ */
|
|
28113
|
+
/* @__PURE__ */ L("button", {
|
|
28155
28114
|
"aria-label": m,
|
|
28156
28115
|
disabled: C === k,
|
|
28157
28116
|
onClick: () => w((e) => e + 1),
|
|
28158
|
-
className: G("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent",
|
|
28159
|
-
children: /* @__PURE__ */
|
|
28117
|
+
className: G("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", vS.navBtn),
|
|
28118
|
+
children: /* @__PURE__ */ L(de, {
|
|
28160
28119
|
size: 14,
|
|
28161
28120
|
className: "rtl:scale-x-[-1]"
|
|
28162
28121
|
})
|
|
28163
28122
|
})
|
|
28164
28123
|
]
|
|
28165
28124
|
}) : void 0
|
|
28166
|
-
}), /* @__PURE__ */
|
|
28125
|
+
}), /* @__PURE__ */ L("div", {
|
|
28167
28126
|
ref: M,
|
|
28168
|
-
className: G("grid content-start gap-5",
|
|
28127
|
+
className: G("grid content-start gap-5", vS.gridPage),
|
|
28169
28128
|
style: {
|
|
28170
28129
|
gridTemplateColumns: `repeat(${T}, minmax(0, 1fr))`,
|
|
28171
|
-
minHeight:
|
|
28130
|
+
minHeight: te
|
|
28172
28131
|
},
|
|
28173
|
-
children: O.map((e) => /* @__PURE__ */
|
|
28132
|
+
children: O.map((e) => /* @__PURE__ */ L(yS, {
|
|
28174
28133
|
item: e,
|
|
28175
28134
|
onToggle: r,
|
|
28176
28135
|
onClick: i,
|
|
@@ -28182,7 +28141,7 @@ var Tx = {
|
|
|
28182
28141
|
})]
|
|
28183
28142
|
})
|
|
28184
28143
|
});
|
|
28185
|
-
},
|
|
28144
|
+
}, CS = {
|
|
28186
28145
|
model: "_model_et6cv_1",
|
|
28187
28146
|
application: "_application_et6cv_6",
|
|
28188
28147
|
agent: "_agent_et6cv_11",
|
|
@@ -28191,30 +28150,30 @@ var Tx = {
|
|
|
28191
28150
|
guardrail: "_guardrail_et6cv_26",
|
|
28192
28151
|
mcp: "_mcp_et6cv_31",
|
|
28193
28152
|
fallback: "_fallback_et6cv_36"
|
|
28194
|
-
},
|
|
28195
|
-
[
|
|
28196
|
-
[
|
|
28197
|
-
[
|
|
28198
|
-
[
|
|
28199
|
-
[
|
|
28200
|
-
[
|
|
28201
|
-
[
|
|
28202
|
-
},
|
|
28203
|
-
className: G("inline-flex items-center rounded-full px-[7px] py-[2px] leading-[1.4]", "uppercase tracking-[0.06em]", t,
|
|
28153
|
+
}, wS = {
|
|
28154
|
+
[B.Model]: CS.model,
|
|
28155
|
+
[B.Application]: CS.application,
|
|
28156
|
+
[B.Agent]: CS.agent,
|
|
28157
|
+
[B.Toolset]: CS.toolset,
|
|
28158
|
+
[B.Guardrail]: CS.guardrail,
|
|
28159
|
+
[B.Skill]: CS.skill,
|
|
28160
|
+
[B.Mcp]: CS.mcp
|
|
28161
|
+
}, TS = ({ type: e, className: t = "dial-caption-text" }) => /* @__PURE__ */ L("span", {
|
|
28162
|
+
className: G("inline-flex items-center rounded-full px-[7px] py-[2px] leading-[1.4]", "uppercase tracking-[0.06em]", t, wS[e] ?? CS.fallback),
|
|
28204
28163
|
children: e
|
|
28205
|
-
}),
|
|
28164
|
+
}), ES = ({ data: e }) => e ? /* @__PURE__ */ L("div", {
|
|
28206
28165
|
className: "flex h-full items-center",
|
|
28207
|
-
children: /* @__PURE__ */
|
|
28208
|
-
}) : null,
|
|
28166
|
+
children: /* @__PURE__ */ L(TS, { type: e.type })
|
|
28167
|
+
}) : null, DS = ({ data: e, context: t }) => !e || e.folder.length === 0 ? null : /* @__PURE__ */ L(ux, {
|
|
28209
28168
|
segments: e.folder,
|
|
28210
28169
|
labelClassName: t?.typography?.folderClassName,
|
|
28211
28170
|
leafClassName: t?.typography?.folderLastSegmentClassName
|
|
28212
|
-
}),
|
|
28171
|
+
}), OS = {
|
|
28213
28172
|
secondaryText: "_secondaryText_1lje3_1",
|
|
28214
28173
|
listContainer: "_listContainer_1lje3_5",
|
|
28215
28174
|
starFilledIcon: "_starFilledIcon_1lje3_16",
|
|
28216
28175
|
selectedRow: "_selectedRow_1lje3_20"
|
|
28217
|
-
},
|
|
28176
|
+
}, kS = [
|
|
28218
28177
|
{
|
|
28219
28178
|
headerName: "Name",
|
|
28220
28179
|
flex: 4,
|
|
@@ -28222,38 +28181,38 @@ var Tx = {
|
|
|
28222
28181
|
filter: !1,
|
|
28223
28182
|
cellRenderer: ({ data: e, context: t }) => {
|
|
28224
28183
|
let n = t?.searchQuery ?? "", r = t?.typography, i = r?.nameClassName ?? "dial-h3-text", a = r?.versionClassName ?? "dial-tiny-text", o = r?.descriptionClassName ?? "dial-small-text", s = e != null && e.id === t?.selectedItemId;
|
|
28225
|
-
return e ? /* @__PURE__ */
|
|
28184
|
+
return e ? /* @__PURE__ */ R("div", {
|
|
28226
28185
|
className: "flex h-full items-center gap-2.5",
|
|
28227
28186
|
children: [
|
|
28228
|
-
/* @__PURE__ */
|
|
28187
|
+
/* @__PURE__ */ L(dr, {
|
|
28229
28188
|
src: e.iconUrl,
|
|
28230
28189
|
size: 48,
|
|
28231
28190
|
initialsName: e.name
|
|
28232
28191
|
}),
|
|
28233
|
-
/* @__PURE__ */
|
|
28192
|
+
/* @__PURE__ */ R("div", {
|
|
28234
28193
|
className: "flex min-w-0 flex-col gap-0.5",
|
|
28235
|
-
children: [/* @__PURE__ */
|
|
28194
|
+
children: [/* @__PURE__ */ L(Ex, {
|
|
28236
28195
|
title: e.name,
|
|
28237
28196
|
postfix: e.version,
|
|
28238
28197
|
postfixClassName: a,
|
|
28239
28198
|
query: n,
|
|
28240
28199
|
titleClassName: i,
|
|
28241
28200
|
className: "items-baseline gap-1.5",
|
|
28242
|
-
trailing: s ? /* @__PURE__ */
|
|
28201
|
+
trailing: s ? /* @__PURE__ */ L(ce, {
|
|
28243
28202
|
size: m.SM,
|
|
28244
28203
|
className: "shrink-0 text-accent-primary",
|
|
28245
28204
|
"aria-hidden": !0
|
|
28246
28205
|
}) : void 0
|
|
28247
|
-
}), /* @__PURE__ */
|
|
28248
|
-
className: G(o,
|
|
28249
|
-
children: /* @__PURE__ */
|
|
28206
|
+
}), /* @__PURE__ */ L("p", {
|
|
28207
|
+
className: G(o, OS.secondaryText),
|
|
28208
|
+
children: /* @__PURE__ */ L(hr, {
|
|
28250
28209
|
text: e.description,
|
|
28251
28210
|
query: n,
|
|
28252
28211
|
maxLines: 2
|
|
28253
28212
|
})
|
|
28254
28213
|
})]
|
|
28255
28214
|
}),
|
|
28256
|
-
/* @__PURE__ */
|
|
28215
|
+
/* @__PURE__ */ L(ox, {
|
|
28257
28216
|
credentials: e.credentials,
|
|
28258
28217
|
loggedOutLabel: t?.credentialsBadgeLoggedOutLabel,
|
|
28259
28218
|
className: "ms-2 shrink-0"
|
|
@@ -28269,7 +28228,7 @@ var Tx = {
|
|
|
28269
28228
|
field: "type",
|
|
28270
28229
|
filter: !1,
|
|
28271
28230
|
sortable: !1,
|
|
28272
|
-
cellRenderer:
|
|
28231
|
+
cellRenderer: ES,
|
|
28273
28232
|
valueGetter: (e) => e.data?.type
|
|
28274
28233
|
},
|
|
28275
28234
|
{
|
|
@@ -28277,7 +28236,7 @@ var Tx = {
|
|
|
28277
28236
|
field: "folder",
|
|
28278
28237
|
flex: 3,
|
|
28279
28238
|
filter: !1,
|
|
28280
|
-
cellRenderer:
|
|
28239
|
+
cellRenderer: DS,
|
|
28281
28240
|
valueGetter: (e) => e.data?.folder
|
|
28282
28241
|
},
|
|
28283
28242
|
{
|
|
@@ -28286,9 +28245,9 @@ var Tx = {
|
|
|
28286
28245
|
flex: 2,
|
|
28287
28246
|
filter: !1,
|
|
28288
28247
|
sortable: !1,
|
|
28289
|
-
cellRenderer: ({ data: e }) => e ? /* @__PURE__ */
|
|
28248
|
+
cellRenderer: ({ data: e }) => e ? /* @__PURE__ */ L("div", {
|
|
28290
28249
|
className: "flex h-full flex-wrap items-center gap-1",
|
|
28291
|
-
children: e.topics.map((e) => /* @__PURE__ */
|
|
28250
|
+
children: e.topics.map((e) => /* @__PURE__ */ L(mx, { label: e }, e))
|
|
28292
28251
|
}) : null,
|
|
28293
28252
|
valueGetter: (e) => e.data?.topics
|
|
28294
28253
|
},
|
|
@@ -28302,9 +28261,9 @@ var Tx = {
|
|
|
28302
28261
|
resizable: !1,
|
|
28303
28262
|
cellRenderer: ({ data: e, context: t }) => {
|
|
28304
28263
|
let [n, r] = d(e?.isStarred ?? !1);
|
|
28305
|
-
return e ? /* @__PURE__ */
|
|
28264
|
+
return e ? /* @__PURE__ */ L("div", {
|
|
28306
28265
|
className: "flex h-full items-center justify-center pe-4",
|
|
28307
|
-
children: /* @__PURE__ */
|
|
28266
|
+
children: /* @__PURE__ */ L(fx, {
|
|
28308
28267
|
isStarred: n,
|
|
28309
28268
|
onClick: (i) => {
|
|
28310
28269
|
i.stopPropagation();
|
|
@@ -28315,26 +28274,26 @@ var Tx = {
|
|
|
28315
28274
|
}) : null;
|
|
28316
28275
|
}
|
|
28317
28276
|
}
|
|
28318
|
-
],
|
|
28277
|
+
], AS = 50, jS = (e) => {
|
|
28319
28278
|
if (!e || e === document.body) return null;
|
|
28320
28279
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
28321
|
-
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e :
|
|
28322
|
-
},
|
|
28280
|
+
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : jS(e.parentElement);
|
|
28281
|
+
}, MS = ({ items: e, query: t = "", ariaLabel: n = "Catalog", emptyStateTitle: r, styles: i, onToggleFavorite: a, onItemClick: s, stickyHeaderTop: c, selectedItemId: f, credentialsBadgeLoggedOutLabel: p }) => {
|
|
28323
28282
|
let m = i?.typography ?? {}, h = i?.colors, g = {
|
|
28324
28283
|
"--cat-list-name-text": h?.nameText,
|
|
28325
28284
|
"--cat-list-secondary-text": h?.secondaryText,
|
|
28326
28285
|
...c == null ? {} : { "--list-header-sticky-top": `${c}px` }
|
|
28327
|
-
}, _ = u(null), v = u(null), [y, b] = d(() => Math.min(e.length,
|
|
28286
|
+
}, _ = u(null), v = u(null), [y, b] = d(() => Math.min(e.length, AS)), x = u(e);
|
|
28328
28287
|
o(() => {
|
|
28329
|
-
x.current !== e && (x.current = e, b(Math.min(e.length,
|
|
28288
|
+
x.current !== e && (x.current = e, b(Math.min(e.length, AS)));
|
|
28330
28289
|
}, [e]), o(() => {
|
|
28331
28290
|
let t = v.current;
|
|
28332
28291
|
if (!t) return;
|
|
28333
|
-
let n =
|
|
28292
|
+
let n = jS(t.parentElement);
|
|
28334
28293
|
if (!n) return;
|
|
28335
28294
|
let r = () => {
|
|
28336
28295
|
let r = n.getBoundingClientRect(), i = t.getBoundingClientRect();
|
|
28337
|
-
i.top < r.bottom && i.bottom > r.top && b((t) => Math.min(e.length, t +
|
|
28296
|
+
i.top < r.bottom && i.bottom > r.top && b((t) => Math.min(e.length, t + AS));
|
|
28338
28297
|
};
|
|
28339
28298
|
return n.addEventListener("scroll", r, { passive: !0 }), r(), () => n.removeEventListener("scroll", r);
|
|
28340
28299
|
}, [e.length]);
|
|
@@ -28343,11 +28302,11 @@ var Tx = {
|
|
|
28343
28302
|
_.current?.refreshCells({ force: !0 });
|
|
28344
28303
|
}, [t]), o(() => {
|
|
28345
28304
|
_.current?.redrawRows();
|
|
28346
|
-
}, [f]), /* @__PURE__ */
|
|
28305
|
+
}, [f]), /* @__PURE__ */ R("div", {
|
|
28347
28306
|
style: g,
|
|
28348
|
-
className:
|
|
28349
|
-
children: [/* @__PURE__ */
|
|
28350
|
-
columnDefs:
|
|
28307
|
+
className: oe("w-full px-4", OS.listContainer),
|
|
28308
|
+
children: [/* @__PURE__ */ L(D, {
|
|
28309
|
+
columnDefs: kS,
|
|
28351
28310
|
rowData: S,
|
|
28352
28311
|
getRowId: (e) => e.id,
|
|
28353
28312
|
alternateOddRowColors: !0,
|
|
@@ -28373,16 +28332,16 @@ var Tx = {
|
|
|
28373
28332
|
e.column.getColDef().field !== "isStarred" && e.data && s(e.data);
|
|
28374
28333
|
} : void 0,
|
|
28375
28334
|
rowClass: s ? "cursor-pointer" : void 0,
|
|
28376
|
-
getRowClass: (e) => e.data?.id === f ?
|
|
28335
|
+
getRowClass: (e) => e.data?.id === f ? OS.selectedRow : void 0
|
|
28377
28336
|
},
|
|
28378
28337
|
ariaLabel: n
|
|
28379
|
-
}), y < e.length && /* @__PURE__ */
|
|
28338
|
+
}), y < e.length && /* @__PURE__ */ L("div", {
|
|
28380
28339
|
ref: v,
|
|
28381
28340
|
className: "h-2",
|
|
28382
28341
|
"aria-hidden": !0
|
|
28383
28342
|
})]
|
|
28384
28343
|
});
|
|
28385
|
-
},
|
|
28344
|
+
}, NS = {
|
|
28386
28345
|
filterBtn: "_filterBtn_6kwgr_5",
|
|
28387
28346
|
filterBtnActive: "_filterBtnActive_6kwgr_21",
|
|
28388
28347
|
filterBtnOpen: "_filterBtnOpen_6kwgr_25",
|
|
@@ -28398,14 +28357,14 @@ var Tx = {
|
|
|
28398
28357
|
divider: "_divider_6kwgr_117",
|
|
28399
28358
|
sectionLabel: "_sectionLabel_6kwgr_123",
|
|
28400
28359
|
footer: "_footer_6kwgr_131"
|
|
28401
|
-
},
|
|
28360
|
+
}, PS = (e, t, n, r, i) => {
|
|
28402
28361
|
let a = e.size > 0;
|
|
28403
28362
|
return n && a ? `${r} · ${e.size}` : n ? r : a ? He(e, t, i) : i;
|
|
28404
|
-
},
|
|
28363
|
+
}, FS = (e, t) => {
|
|
28405
28364
|
let n = new Set(t);
|
|
28406
28365
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
28407
|
-
},
|
|
28408
|
-
let g = (r ?? !1) || e.size > 0, [_, v] = d(!1), y = l(() => n == null ? [] : [...n].sort(), [n]), b =
|
|
28366
|
+
}, IS = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: s = "My", topicsLabel: c = "Topics", defaultLabel: f = "From", clearLabel: p = "Clear", applyLabel: h = "Apply" }) => {
|
|
28367
|
+
let g = (r ?? !1) || e.size > 0, [_, v] = d(!1), y = l(() => n == null ? [] : [...n].sort(), [n]), b = PS(e, n, r, s, f), [S, C] = d(() => new Set(e)), [w, T] = d(r ?? !1);
|
|
28409
28368
|
o(() => {
|
|
28410
28369
|
_ && (C(new Set(e)), T(r ?? !1));
|
|
28411
28370
|
}, [
|
|
@@ -28429,128 +28388,128 @@ var Tx = {
|
|
|
28429
28388
|
v(e), e || ee.current?.focus();
|
|
28430
28389
|
}, M = (e) => {
|
|
28431
28390
|
e.key === "ArrowDown" && !_ && (e.preventDefault(), v(!0));
|
|
28432
|
-
},
|
|
28391
|
+
}, te = (e) => {
|
|
28433
28392
|
e.key === "ArrowDown" ? (e.preventDefault(), A(D + 1)) : e.key === "ArrowUp" ? (e.preventDefault(), A(D - 1)) : e.key === "Escape" && (e.preventDefault(), v(!1), ee.current?.focus());
|
|
28434
|
-
},
|
|
28393
|
+
}, N = (e) => (t) => {
|
|
28435
28394
|
(t.key === " " || t.key === "Enter") && (t.preventDefault(), e());
|
|
28436
|
-
},
|
|
28395
|
+
}, P = () => {
|
|
28437
28396
|
t(S), i?.(w), j(!1);
|
|
28438
|
-
},
|
|
28397
|
+
}, ne = () => {
|
|
28439
28398
|
t(/* @__PURE__ */ new Set()), i?.(!1), j(!1);
|
|
28440
28399
|
};
|
|
28441
|
-
return /* @__PURE__ */
|
|
28400
|
+
return /* @__PURE__ */ L(x, {
|
|
28442
28401
|
matchReferenceWidth: !1,
|
|
28443
28402
|
placement: "bottom-start",
|
|
28444
28403
|
open: _,
|
|
28445
28404
|
onOpenChange: j,
|
|
28446
28405
|
listClassName: "!bg-transparent !shadow-none !p-0",
|
|
28447
|
-
renderOverlay: () => /* @__PURE__ */
|
|
28406
|
+
renderOverlay: () => /* @__PURE__ */ R("div", {
|
|
28448
28407
|
role: "menu",
|
|
28449
28408
|
"aria-label": f,
|
|
28450
28409
|
tabIndex: -1,
|
|
28451
|
-
className: G("min-w-[360px] rounded-xl p-[6px]",
|
|
28452
|
-
onKeyDown:
|
|
28410
|
+
className: G("min-w-[360px] rounded-xl p-[6px]", NS.overlay),
|
|
28411
|
+
onKeyDown: te,
|
|
28453
28412
|
children: [
|
|
28454
|
-
/* @__PURE__ */
|
|
28413
|
+
/* @__PURE__ */ R("div", {
|
|
28455
28414
|
role: "menuitemcheckbox",
|
|
28456
28415
|
"aria-checked": w,
|
|
28457
28416
|
tabIndex: D === 0 ? 0 : -1,
|
|
28458
28417
|
ref: (e) => {
|
|
28459
28418
|
k.current[0] = e;
|
|
28460
28419
|
},
|
|
28461
|
-
className: G("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none",
|
|
28420
|
+
className: G("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", NS.row, w && NS.rowChecked),
|
|
28462
28421
|
onClick: () => T(!w),
|
|
28463
|
-
onKeyDown:
|
|
28464
|
-
children: [/* @__PURE__ */
|
|
28465
|
-
className: G("flex size-5 shrink-0 items-center justify-center rounded-[6px]",
|
|
28422
|
+
onKeyDown: N(() => T(!w)),
|
|
28423
|
+
children: [/* @__PURE__ */ L("span", {
|
|
28424
|
+
className: G("flex size-5 shrink-0 items-center justify-center rounded-[6px]", NS.checkbox, w && NS.checkboxChecked),
|
|
28466
28425
|
"aria-hidden": !0
|
|
28467
|
-
}), /* @__PURE__ */
|
|
28468
|
-
className:
|
|
28426
|
+
}), /* @__PURE__ */ L("span", {
|
|
28427
|
+
className: NS.rowLabel,
|
|
28469
28428
|
children: s
|
|
28470
28429
|
})]
|
|
28471
28430
|
}),
|
|
28472
|
-
y.length > 0 && /* @__PURE__ */
|
|
28473
|
-
/* @__PURE__ */
|
|
28431
|
+
y.length > 0 && /* @__PURE__ */ R(se, { children: [
|
|
28432
|
+
/* @__PURE__ */ L("div", {
|
|
28474
28433
|
role: "separator",
|
|
28475
|
-
className: G("my-1 h-px",
|
|
28434
|
+
className: G("my-1 h-px", NS.divider),
|
|
28476
28435
|
"aria-hidden": !0
|
|
28477
28436
|
}),
|
|
28478
|
-
/* @__PURE__ */
|
|
28479
|
-
className: G("px-[10px] pb-1 pt-[10px] uppercase tracking-[0.06em]",
|
|
28437
|
+
/* @__PURE__ */ L("div", {
|
|
28438
|
+
className: G("px-[10px] pb-1 pt-[10px] uppercase tracking-[0.06em]", NS.sectionLabel),
|
|
28480
28439
|
"aria-hidden": !0,
|
|
28481
28440
|
children: c
|
|
28482
28441
|
}),
|
|
28483
|
-
/* @__PURE__ */
|
|
28442
|
+
/* @__PURE__ */ L("div", {
|
|
28484
28443
|
className: "flex max-h-[220px] flex-col gap-1 overflow-y-auto",
|
|
28485
28444
|
children: y.map((e, t) => {
|
|
28486
|
-
let n = S.has(e), r = t + 1, i = () => C(
|
|
28487
|
-
return /* @__PURE__ */
|
|
28445
|
+
let n = S.has(e), r = t + 1, i = () => C(FS(e, S));
|
|
28446
|
+
return /* @__PURE__ */ R("div", {
|
|
28488
28447
|
role: "menuitemcheckbox",
|
|
28489
28448
|
"aria-checked": n,
|
|
28490
28449
|
tabIndex: D === r ? 0 : -1,
|
|
28491
28450
|
ref: (e) => {
|
|
28492
28451
|
k.current[r] = e;
|
|
28493
28452
|
},
|
|
28494
|
-
className: G("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none",
|
|
28453
|
+
className: G("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", NS.row, n && NS.rowChecked),
|
|
28495
28454
|
onClick: i,
|
|
28496
|
-
onKeyDown:
|
|
28497
|
-
children: [/* @__PURE__ */
|
|
28498
|
-
className: G("flex size-5 shrink-0 items-center justify-center rounded-[6px]",
|
|
28455
|
+
onKeyDown: N(i),
|
|
28456
|
+
children: [/* @__PURE__ */ L("span", {
|
|
28457
|
+
className: G("flex size-5 shrink-0 items-center justify-center rounded-[6px]", NS.checkbox, n && NS.checkboxChecked),
|
|
28499
28458
|
"aria-hidden": !0
|
|
28500
|
-
}), /* @__PURE__ */
|
|
28501
|
-
className:
|
|
28459
|
+
}), /* @__PURE__ */ L("span", {
|
|
28460
|
+
className: NS.rowLabel,
|
|
28502
28461
|
children: e
|
|
28503
28462
|
})]
|
|
28504
28463
|
}, e);
|
|
28505
28464
|
})
|
|
28506
28465
|
})
|
|
28507
28466
|
] }),
|
|
28508
|
-
/* @__PURE__ */
|
|
28509
|
-
className: G("mt-1 flex items-center px-1 py-3",
|
|
28467
|
+
/* @__PURE__ */ R("div", {
|
|
28468
|
+
className: G("mt-1 flex items-center px-1 py-3", NS.footer),
|
|
28510
28469
|
onKeyDown: (e) => {
|
|
28511
28470
|
(e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
|
|
28512
28471
|
},
|
|
28513
|
-
children: [/* @__PURE__ */
|
|
28472
|
+
children: [/* @__PURE__ */ L(Gb, {
|
|
28514
28473
|
label: p,
|
|
28515
|
-
onClick:
|
|
28516
|
-
}), /* @__PURE__ */
|
|
28474
|
+
onClick: ne
|
|
28475
|
+
}), /* @__PURE__ */ L(Ub, {
|
|
28517
28476
|
label: h,
|
|
28518
28477
|
className: "ms-auto",
|
|
28519
|
-
onClick:
|
|
28478
|
+
onClick: P
|
|
28520
28479
|
})]
|
|
28521
28480
|
})
|
|
28522
28481
|
]
|
|
28523
28482
|
}),
|
|
28524
|
-
children: /* @__PURE__ */
|
|
28483
|
+
children: /* @__PURE__ */ R("button", {
|
|
28525
28484
|
ref: ee,
|
|
28526
28485
|
type: "button",
|
|
28527
28486
|
"aria-haspopup": "menu",
|
|
28528
28487
|
"aria-expanded": _,
|
|
28529
28488
|
onKeyDown: M,
|
|
28530
|
-
className: G("flex h-[50px] shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-xl px-[18px]",
|
|
28489
|
+
className: G("flex h-[50px] shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-xl px-[18px]", NS.filterBtn, g && NS.filterBtnActive, _ && NS.filterBtnOpen),
|
|
28531
28490
|
children: [
|
|
28532
|
-
/* @__PURE__ */
|
|
28491
|
+
/* @__PURE__ */ L(me, {
|
|
28533
28492
|
size: m.SM,
|
|
28534
28493
|
strokeWidth: 1.8,
|
|
28535
|
-
className: G("shrink-0",
|
|
28494
|
+
className: G("shrink-0", NS.filterBtnFunnel),
|
|
28536
28495
|
"aria-hidden": !0
|
|
28537
28496
|
}),
|
|
28538
|
-
/* @__PURE__ */
|
|
28539
|
-
className:
|
|
28497
|
+
/* @__PURE__ */ L("span", {
|
|
28498
|
+
className: NS.filterBtnLabel,
|
|
28540
28499
|
children: b
|
|
28541
28500
|
}),
|
|
28542
|
-
/* @__PURE__ */
|
|
28501
|
+
/* @__PURE__ */ L(le, {
|
|
28543
28502
|
size: 14,
|
|
28544
28503
|
strokeWidth: 2.2,
|
|
28545
|
-
className: G("shrink-0 transition-transform duration-150",
|
|
28504
|
+
className: G("shrink-0 transition-transform duration-150", NS.filterBtnChevron, _ && "rotate-180"),
|
|
28546
28505
|
"aria-hidden": !0
|
|
28547
28506
|
})
|
|
28548
28507
|
]
|
|
28549
28508
|
})
|
|
28550
28509
|
});
|
|
28551
|
-
},
|
|
28510
|
+
}, LS = ({ placeholder: e = "Search", className: t, ...n }) => /* @__PURE__ */ L("div", {
|
|
28552
28511
|
className: "flex-1",
|
|
28553
|
-
children: /* @__PURE__ */
|
|
28512
|
+
children: /* @__PURE__ */ L(Rb, {
|
|
28554
28513
|
placeholder: e,
|
|
28555
28514
|
...n,
|
|
28556
28515
|
iconSize: 18,
|
|
@@ -28559,21 +28518,21 @@ var Tx = {
|
|
|
28559
28518
|
inputClassName: "text-[15px]",
|
|
28560
28519
|
clearButtonClassName: "size-11 desktop:size-auto"
|
|
28561
28520
|
})
|
|
28562
|
-
}),
|
|
28521
|
+
}), RS = ({ totalCount: e, viewMode: t, onViewModeChange: n, title: r = "Browse", styles: i, query: a, onQueryChange: o, searchPlaceholder: s, gridViewLabel: c = "Grid view", listViewLabel: l = "List view", sortKey: u, onSortChange: d, sortOptions: f, filters: p, onFiltersChange: h, filterValues: g, isMyAppsActive: _, onMyAppsChange: v, filterFromLabel: y, filterMyAppsLabel: b, filterTopicsLabel: S }) => {
|
|
28563
28522
|
let C = i?.typography?.titleClassName ?? "dial-body-semi-text", w = i?.typography?.countClassName ?? "dial-tiny-semi-text", T = f?.find((e) => e.value === u)?.label ?? "";
|
|
28564
|
-
return /* @__PURE__ */
|
|
28523
|
+
return /* @__PURE__ */ R("div", {
|
|
28565
28524
|
className: "flex flex-col gap-3",
|
|
28566
|
-
children: [/* @__PURE__ */
|
|
28525
|
+
children: [/* @__PURE__ */ R("div", {
|
|
28567
28526
|
className: "flex items-center gap-2",
|
|
28568
|
-
children: [/* @__PURE__ */
|
|
28527
|
+
children: [/* @__PURE__ */ L(Ex, {
|
|
28569
28528
|
title: r,
|
|
28570
28529
|
postfix: e,
|
|
28571
28530
|
titleClassName: C,
|
|
28572
28531
|
postfixClassName: w,
|
|
28573
28532
|
className: "shrink-0"
|
|
28574
|
-
}), /* @__PURE__ */
|
|
28533
|
+
}), /* @__PURE__ */ R("div", {
|
|
28575
28534
|
className: "ms-auto flex items-center gap-2",
|
|
28576
|
-
children: [/* @__PURE__ */
|
|
28535
|
+
children: [/* @__PURE__ */ L("div", {
|
|
28577
28536
|
className: "flex items-center rounded-full border p-[3px]",
|
|
28578
28537
|
style: {
|
|
28579
28538
|
background: "var(--bg-layer-2, #EEEEF0)",
|
|
@@ -28581,50 +28540,50 @@ var Tx = {
|
|
|
28581
28540
|
},
|
|
28582
28541
|
children: [Be.Grid, Be.List].map((e) => {
|
|
28583
28542
|
let r = t === e;
|
|
28584
|
-
return /* @__PURE__ */
|
|
28543
|
+
return /* @__PURE__ */ L("button", {
|
|
28585
28544
|
type: "button",
|
|
28586
28545
|
"aria-label": e === Be.Grid ? c : l,
|
|
28587
28546
|
"aria-pressed": r,
|
|
28588
28547
|
onClick: () => n(e),
|
|
28589
28548
|
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"),
|
|
28590
|
-
children: e === Be.Grid ? /* @__PURE__ */
|
|
28549
|
+
children: e === Be.Grid ? /* @__PURE__ */ L(_e, { size: m.SM }) : /* @__PURE__ */ L(z, { size: m.SM })
|
|
28591
28550
|
}, e);
|
|
28592
28551
|
})
|
|
28593
|
-
}), f != null && f.length > 0 && /* @__PURE__ */
|
|
28552
|
+
}), f != null && f.length > 0 && /* @__PURE__ */ R(se, { children: [/* @__PURE__ */ L("div", {
|
|
28594
28553
|
className: "h-4 w-px shrink-0",
|
|
28595
28554
|
style: { background: "var(--stroke-secondary, #d1dbea)" }
|
|
28596
|
-
}), /* @__PURE__ */
|
|
28555
|
+
}), /* @__PURE__ */ L(x, {
|
|
28597
28556
|
matchReferenceWidth: !1,
|
|
28598
28557
|
placement: "bottom-end",
|
|
28599
28558
|
listClassName: "cp-dropdown-overlay",
|
|
28600
28559
|
items: f.map((e) => ({
|
|
28601
28560
|
key: e.value,
|
|
28602
|
-
label: /* @__PURE__ */
|
|
28561
|
+
label: /* @__PURE__ */ R("span", {
|
|
28603
28562
|
className: "flex w-full items-center justify-between gap-2",
|
|
28604
|
-
children: [e.label, e.value === u && /* @__PURE__ */
|
|
28563
|
+
children: [e.label, e.value === u && /* @__PURE__ */ L(ce, {
|
|
28605
28564
|
size: m.SM,
|
|
28606
28565
|
"aria-hidden": !0
|
|
28607
28566
|
})]
|
|
28608
28567
|
}),
|
|
28609
28568
|
onClick: () => d?.(e.value)
|
|
28610
28569
|
})),
|
|
28611
|
-
children: /* @__PURE__ */
|
|
28570
|
+
children: /* @__PURE__ */ L(Gb, {
|
|
28612
28571
|
label: T,
|
|
28613
|
-
iconAfter: /* @__PURE__ */
|
|
28572
|
+
iconAfter: /* @__PURE__ */ L(le, {
|
|
28614
28573
|
size: m.SM,
|
|
28615
28574
|
"aria-hidden": !0
|
|
28616
28575
|
})
|
|
28617
28576
|
})
|
|
28618
28577
|
})] })]
|
|
28619
28578
|
})]
|
|
28620
|
-
}), /* @__PURE__ */
|
|
28579
|
+
}), /* @__PURE__ */ R("div", {
|
|
28621
28580
|
className: "mb-5 flex items-center gap-3",
|
|
28622
|
-
children: [/* @__PURE__ */
|
|
28581
|
+
children: [/* @__PURE__ */ L(LS, {
|
|
28623
28582
|
value: a,
|
|
28624
28583
|
onChange: o,
|
|
28625
28584
|
placeholder: s,
|
|
28626
28585
|
className: "flex-1"
|
|
28627
|
-
}), /* @__PURE__ */
|
|
28586
|
+
}), /* @__PURE__ */ L(IS, {
|
|
28628
28587
|
checked: p ?? /* @__PURE__ */ new Set(),
|
|
28629
28588
|
onChange: h ?? (() => void 0),
|
|
28630
28589
|
values: g,
|
|
@@ -28636,12 +28595,12 @@ var Tx = {
|
|
|
28636
28595
|
})]
|
|
28637
28596
|
})]
|
|
28638
28597
|
});
|
|
28639
|
-
},
|
|
28598
|
+
}, zS = {
|
|
28640
28599
|
section: "_section_qj3lh_1",
|
|
28641
28600
|
icon: "_icon_qj3lh_5",
|
|
28642
28601
|
divider: "_divider_qj3lh_9",
|
|
28643
28602
|
clearAll: "_clearAll_qj3lh_13"
|
|
28644
|
-
},
|
|
28603
|
+
}, BS = ({ query: e, onQueryChange: t, searchPlaceholder: n = "Search models, tools, agents…", styles: r, filters: i, onFiltersChange: a, filterValues: o, isMyAppsActive: s, onMyAppsChange: c, filterFromLabel: l, filterMyAppsLabel: u, filterTopicsLabel: d, gridViewLabel: f, listViewLabel: p, sortKey: m, onSortChange: h, sortOptions: g, ..._ }) => {
|
|
28645
28604
|
let v = {
|
|
28646
28605
|
"--cat-browse-bg": r?.colors?.background,
|
|
28647
28606
|
"--cat-browse-title-text": r?.colors?.titleText,
|
|
@@ -28650,10 +28609,10 @@ var Tx = {
|
|
|
28650
28609
|
"--cat-browse-divider": r?.colors?.divider,
|
|
28651
28610
|
"--cat-browse-clear-all": r?.colors?.clearAll
|
|
28652
28611
|
};
|
|
28653
|
-
return /* @__PURE__ */
|
|
28654
|
-
className: G("flex-shrink-0 px-4",
|
|
28612
|
+
return /* @__PURE__ */ L("section", {
|
|
28613
|
+
className: G("flex-shrink-0 px-4", zS.section),
|
|
28655
28614
|
style: v,
|
|
28656
|
-
children: /* @__PURE__ */
|
|
28615
|
+
children: /* @__PURE__ */ L(RS, {
|
|
28657
28616
|
styles: r,
|
|
28658
28617
|
query: e,
|
|
28659
28618
|
onQueryChange: t,
|
|
@@ -28674,13 +28633,13 @@ var Tx = {
|
|
|
28674
28633
|
..._
|
|
28675
28634
|
})
|
|
28676
28635
|
});
|
|
28677
|
-
},
|
|
28636
|
+
}, VS = {
|
|
28678
28637
|
root: "_root_1jtp2_1",
|
|
28679
28638
|
heading: "_heading_1jtp2_5",
|
|
28680
28639
|
headingTitle: "_headingTitle_1jtp2_9",
|
|
28681
28640
|
tabsRow: "_tabsRow_1jtp2_13",
|
|
28682
28641
|
activeTab: "_activeTab_1jtp2_17"
|
|
28683
|
-
},
|
|
28642
|
+
}, HS = {
|
|
28684
28643
|
splitDivider: "_splitDivider_1efwg_1",
|
|
28685
28644
|
chevron: "_chevron_1efwg_10",
|
|
28686
28645
|
chevronOpen: "_chevronOpen_1efwg_14",
|
|
@@ -28692,7 +28651,7 @@ var Tx = {
|
|
|
28692
28651
|
itemText: "_itemText_1efwg_71",
|
|
28693
28652
|
itemLabel: "_itemLabel_1efwg_78",
|
|
28694
28653
|
itemDescription: "_itemDescription_1efwg_82"
|
|
28695
|
-
},
|
|
28654
|
+
}, US = ({ label: e, options: t, onClick: n }) => {
|
|
28696
28655
|
let [r, i] = d(!1), o = u(null), s = u([]), c = a(() => {
|
|
28697
28656
|
o.current?.querySelector("button")?.focus();
|
|
28698
28657
|
}, []), l = a((e) => {
|
|
@@ -28708,197 +28667,197 @@ var Tx = {
|
|
|
28708
28667
|
let t = s.current.findIndex((e) => e === document.activeElement);
|
|
28709
28668
|
e.key === "ArrowDown" ? (e.preventDefault(), f(t + 1)) : e.key === "ArrowUp" ? (e.preventDefault(), f(t <= 0 ? 0 : t - 1)) : e.key === "Escape" && (e.stopPropagation(), l(!1));
|
|
28710
28669
|
}, [f, l]);
|
|
28711
|
-
return t?.length ? /* @__PURE__ */
|
|
28670
|
+
return t?.length ? /* @__PURE__ */ L("div", {
|
|
28712
28671
|
ref: o,
|
|
28713
|
-
children: /* @__PURE__ */
|
|
28672
|
+
children: /* @__PURE__ */ L(x, {
|
|
28714
28673
|
open: r,
|
|
28715
28674
|
onOpenChange: l,
|
|
28716
28675
|
matchReferenceWidth: !1,
|
|
28717
28676
|
placement: "bottom-end",
|
|
28718
28677
|
outsideClosable: !0,
|
|
28719
|
-
listClassName:
|
|
28720
|
-
renderOverlay: () => /* @__PURE__ */
|
|
28678
|
+
listClassName: HS.dropdownWrapper,
|
|
28679
|
+
renderOverlay: () => /* @__PURE__ */ L("div", {
|
|
28721
28680
|
role: "menu",
|
|
28722
28681
|
"aria-label": e,
|
|
28723
|
-
className:
|
|
28682
|
+
className: HS.menu,
|
|
28724
28683
|
onKeyDown: h,
|
|
28725
|
-
children: t.map((e, t) => /* @__PURE__ */
|
|
28684
|
+
children: t.map((e, t) => /* @__PURE__ */ R("button", {
|
|
28726
28685
|
ref: (e) => {
|
|
28727
28686
|
s.current[t] = e;
|
|
28728
28687
|
},
|
|
28729
28688
|
role: "menuitem",
|
|
28730
28689
|
tabIndex: -1,
|
|
28731
|
-
className:
|
|
28690
|
+
className: HS.item,
|
|
28732
28691
|
onClick: () => {
|
|
28733
28692
|
e.onClick(), l(!1);
|
|
28734
28693
|
},
|
|
28735
28694
|
onKeyDown: (t) => {
|
|
28736
28695
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), e.onClick(), l(!1));
|
|
28737
28696
|
},
|
|
28738
|
-
children: [e.icon && /* @__PURE__ */
|
|
28739
|
-
className: G(
|
|
28697
|
+
children: [e.icon && /* @__PURE__ */ L("div", {
|
|
28698
|
+
className: G(HS.itemIcon, e.iconContainerClassName),
|
|
28740
28699
|
children: e.icon
|
|
28741
|
-
}), /* @__PURE__ */
|
|
28742
|
-
className:
|
|
28743
|
-
children: [/* @__PURE__ */
|
|
28744
|
-
className: G(
|
|
28700
|
+
}), /* @__PURE__ */ R("div", {
|
|
28701
|
+
className: HS.itemText,
|
|
28702
|
+
children: [/* @__PURE__ */ L("span", {
|
|
28703
|
+
className: G(HS.itemLabel, "dial-small-semi-text"),
|
|
28745
28704
|
children: e.label
|
|
28746
|
-
}), e.description && /* @__PURE__ */
|
|
28747
|
-
className: G(
|
|
28705
|
+
}), e.description && /* @__PURE__ */ L("span", {
|
|
28706
|
+
className: G(HS.itemDescription, "dial-tiny-text"),
|
|
28748
28707
|
children: e.description
|
|
28749
28708
|
})]
|
|
28750
28709
|
})]
|
|
28751
28710
|
}, String(t)))
|
|
28752
28711
|
}),
|
|
28753
|
-
children: /* @__PURE__ */
|
|
28712
|
+
children: /* @__PURE__ */ L(Ub, {
|
|
28754
28713
|
label: e,
|
|
28755
|
-
iconBefore: /* @__PURE__ */
|
|
28756
|
-
iconAfter: /* @__PURE__ */
|
|
28714
|
+
iconBefore: /* @__PURE__ */ L(we, { size: m.SM }),
|
|
28715
|
+
iconAfter: /* @__PURE__ */ R("span", {
|
|
28757
28716
|
className: "flex items-center gap-2",
|
|
28758
|
-
children: [/* @__PURE__ */
|
|
28717
|
+
children: [/* @__PURE__ */ L("span", { className: HS.splitDivider }), /* @__PURE__ */ L(le, {
|
|
28759
28718
|
size: m.SM,
|
|
28760
|
-
className: G(
|
|
28719
|
+
className: G(HS.chevron, r && HS.chevronOpen)
|
|
28761
28720
|
})]
|
|
28762
28721
|
}),
|
|
28763
|
-
className:
|
|
28722
|
+
className: HS.gradientBtn,
|
|
28764
28723
|
"aria-haspopup": "menu",
|
|
28765
28724
|
"aria-expanded": r,
|
|
28766
28725
|
onKeyDown: p
|
|
28767
28726
|
})
|
|
28768
28727
|
})
|
|
28769
|
-
}) : /* @__PURE__ */
|
|
28728
|
+
}) : /* @__PURE__ */ L(Ub, {
|
|
28770
28729
|
label: e,
|
|
28771
|
-
iconBefore: /* @__PURE__ */
|
|
28730
|
+
iconBefore: /* @__PURE__ */ L(we, { size: m.SM }),
|
|
28772
28731
|
onClick: n,
|
|
28773
|
-
className:
|
|
28732
|
+
className: HS.gradientBtn
|
|
28774
28733
|
});
|
|
28775
|
-
},
|
|
28776
|
-
let { typography:
|
|
28734
|
+
}, WS = ({ 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, connectOverlay: w, isConnectVisible: T, onFetchDetails: E, onEdit: D, onDelete: O, onLogin: k, onLogout: ee, onCreateClick: A, createOptions: j, hideCreateButton: M = !1, hidePageTitle: te = !1, selectedItemId: N, onCardClick: P, isLoading: ne, styles: ie, detailsTexts: ae, initialDetailsItemId: F }) => {
|
|
28735
|
+
let { typography: I } = ie ?? {}, oe = $b(ie), se = n?.pageTitle ?? "Catalog", ce = n?.createLabel ?? "Create", le = n?.favoritesTitle ?? "Your favorites", ue = n?.browseTitle ?? "Browse", de = n?.searchPlaceholder ?? "Search models, tools, agents…", fe = n?.noResultsTitle ?? ((e) => `No results for "${e}"`), pe = n?.featuredLabel ?? "Featured", me = n?.gridViewLabel ?? "Grid view", he = n?.listViewLabel ?? "List view", ge = n?.ariaLabel ?? "Catalog", _e = [
|
|
28777
28736
|
{
|
|
28778
|
-
value:
|
|
28737
|
+
value: Fe.RecentlyUpdated,
|
|
28779
28738
|
label: n?.sortRecentlyUpdatedLabel ?? "Recently Updated"
|
|
28780
28739
|
},
|
|
28781
28740
|
{
|
|
28782
|
-
value:
|
|
28741
|
+
value: Fe.Newest,
|
|
28783
28742
|
label: n?.sortNewestLabel ?? "Newest"
|
|
28784
28743
|
},
|
|
28785
28744
|
{
|
|
28786
|
-
value:
|
|
28745
|
+
value: Fe.NameAZ,
|
|
28787
28746
|
label: n?.sortNameAZLabel ?? "Name A-Z"
|
|
28788
28747
|
}
|
|
28789
|
-
], [
|
|
28748
|
+
], [z, ve] = d(""), [ye, be] = d(Be.Grid), [xe, Se] = d(!1), [Ce, we] = d(Fe.RecentlyUpdated), [Te, Ee] = d(/* @__PURE__ */ new Set()), [De, Oe] = d(!1), ke = l(() => e.filter((e) => !e.isHidden), [e]), Ae = l(() => new Set(ke.flatMap((e) => e.topics)), [ke]), je = l(() => Yb(ke, n?.tabLabels), [ke, n?.tabLabels]), Me = je[0]?.id ?? "", [Ne, Pe] = d(Me);
|
|
28790
28749
|
o(() => {
|
|
28791
|
-
|
|
28750
|
+
Pe((e) => e || Me);
|
|
28792
28751
|
}, [Me]);
|
|
28793
|
-
let [
|
|
28752
|
+
let [B, Ie] = d(t.length > 0);
|
|
28794
28753
|
o(() => {
|
|
28795
|
-
t.length > 0 && !
|
|
28796
|
-
}, [t.length,
|
|
28754
|
+
t.length > 0 && !B && Ie(!0);
|
|
28755
|
+
}, [t.length, B]);
|
|
28797
28756
|
let Le = a(() => {
|
|
28798
28757
|
Ie(!1);
|
|
28799
|
-
}, []), Re =
|
|
28800
|
-
|
|
28758
|
+
}, []), Re = B && t.length === 0, [V, ze] = d(null), [Ve, He] = d(!1), [qe, Je] = d(void 0), [Ye, Xe] = d(!1), Ze = u(null), Qe = a(async (e) => {
|
|
28759
|
+
ze(e), Je(void 0), Ze.current = e.id;
|
|
28801
28760
|
let t = [];
|
|
28802
|
-
E && (
|
|
28761
|
+
E && (Xe(!0), t.push((async () => {
|
|
28803
28762
|
try {
|
|
28804
28763
|
let t = await E(e);
|
|
28805
|
-
|
|
28764
|
+
Ze.current === e.id && Je(t);
|
|
28806
28765
|
} finally {
|
|
28807
|
-
|
|
28766
|
+
Ze.current === e.id && Xe(!1);
|
|
28808
28767
|
}
|
|
28809
28768
|
})())), await Promise.all(t);
|
|
28810
|
-
}, [E]),
|
|
28769
|
+
}, [E]), $e = u(null);
|
|
28811
28770
|
o(() => {
|
|
28812
|
-
if (!
|
|
28813
|
-
let t = e.find((e) => e.id ===
|
|
28814
|
-
t && (
|
|
28771
|
+
if (!F || $e.current === F) return;
|
|
28772
|
+
let t = e.find((e) => e.id === F);
|
|
28773
|
+
t && ($e.current = F, Qe(t));
|
|
28815
28774
|
}, [
|
|
28816
|
-
|
|
28775
|
+
F,
|
|
28817
28776
|
e,
|
|
28818
|
-
|
|
28777
|
+
Qe
|
|
28819
28778
|
]);
|
|
28820
|
-
let
|
|
28821
|
-
await k?.(e, t), await
|
|
28822
|
-
}, [k,
|
|
28823
|
-
await ee?.(e, t), await
|
|
28824
|
-
}, [ee,
|
|
28825
|
-
|
|
28826
|
-
|
|
28779
|
+
let et = a(async (e, t) => {
|
|
28780
|
+
await k?.(e, t), await Qe(e);
|
|
28781
|
+
}, [k, Qe]), tt = a(async (e, t) => {
|
|
28782
|
+
await ee?.(e, t), await Qe(e);
|
|
28783
|
+
}, [ee, Qe]), nt = a(() => {
|
|
28784
|
+
He(!1), Ze.current = null, setTimeout(() => {
|
|
28785
|
+
ze(null), Je(void 0), Xe(!1);
|
|
28827
28786
|
}, 300);
|
|
28828
|
-
}, []),
|
|
28829
|
-
if (
|
|
28830
|
-
if (
|
|
28831
|
-
let { credentials: e, ...t } =
|
|
28787
|
+
}, []), rt = l(() => {
|
|
28788
|
+
if (V == null) return null;
|
|
28789
|
+
if (qe == null) return V;
|
|
28790
|
+
let { credentials: e, ...t } = qe;
|
|
28832
28791
|
return {
|
|
28833
|
-
...
|
|
28792
|
+
...V,
|
|
28834
28793
|
details: t,
|
|
28835
|
-
credentials: e ??
|
|
28794
|
+
credentials: e ?? V.credentials
|
|
28836
28795
|
};
|
|
28837
|
-
}, [
|
|
28796
|
+
}, [V, qe]), it = l(() => Ke(ke, Ce), [ke, Ce]), at = l(() => Ge(it, z), [it, z]), ot = l(() => Te.size > 0 ? Ue(at, Te) : at, [at, Te]), st = l(() => De ? We(ot) : ot, [ot, De]), ct = l(() => Ne ? st.filter((e) => e.type === Ne) : st, [st, Ne]), lt = V != null && t.some((e) => e.id === V.id);
|
|
28838
28797
|
o(() => {
|
|
28839
|
-
if (
|
|
28840
|
-
let e = requestAnimationFrame(() =>
|
|
28798
|
+
if (V == null) return;
|
|
28799
|
+
let e = requestAnimationFrame(() => He(!0));
|
|
28841
28800
|
return () => cancelAnimationFrame(e);
|
|
28842
|
-
}, [
|
|
28843
|
-
let
|
|
28801
|
+
}, [V]);
|
|
28802
|
+
let ut = a((e) => {
|
|
28844
28803
|
e === Be.List && Se(!0), be(e);
|
|
28845
|
-
}, []),
|
|
28846
|
-
noResultsTitle:
|
|
28804
|
+
}, []), dt = z ? fe(z) : "No items", ft = l(() => ({
|
|
28805
|
+
noResultsTitle: dt,
|
|
28847
28806
|
featuredLabel: pe,
|
|
28848
|
-
credentialsBadgeLoggedOutLabel:
|
|
28807
|
+
credentialsBadgeLoggedOutLabel: ae?.credentialsBadgeLoggedOutLabel
|
|
28849
28808
|
}), [
|
|
28850
|
-
|
|
28809
|
+
dt,
|
|
28851
28810
|
pe,
|
|
28852
|
-
|
|
28811
|
+
ae?.credentialsBadgeLoggedOutLabel
|
|
28853
28812
|
]);
|
|
28854
|
-
return
|
|
28813
|
+
return ne ? /* @__PURE__ */ L("div", {
|
|
28855
28814
|
className: "flex size-full min-h-0 flex-1 items-center justify-center",
|
|
28856
|
-
children: /* @__PURE__ */
|
|
28857
|
-
}) : /* @__PURE__ */
|
|
28815
|
+
children: /* @__PURE__ */ L(re, {})
|
|
28816
|
+
}) : /* @__PURE__ */ R("section", {
|
|
28858
28817
|
"aria-label": ge,
|
|
28859
|
-
className: G("flex size-full min-h-0 flex-1 flex-col",
|
|
28818
|
+
className: G("flex size-full min-h-0 flex-1 flex-col", VS.root),
|
|
28860
28819
|
style: oe,
|
|
28861
28820
|
children: [
|
|
28862
|
-
(!
|
|
28863
|
-
className: G("shrink-0",
|
|
28864
|
-
children: /* @__PURE__ */
|
|
28821
|
+
(!te || !M) && /* @__PURE__ */ L("div", {
|
|
28822
|
+
className: G("shrink-0", VS.heading),
|
|
28823
|
+
children: /* @__PURE__ */ R("div", {
|
|
28865
28824
|
className: "flex h-[64px] w-full items-center justify-between px-8",
|
|
28866
|
-
children: [!
|
|
28867
|
-
className: G(
|
|
28825
|
+
children: [!te && /* @__PURE__ */ L("h1", {
|
|
28826
|
+
className: G(I?.pageHeadingFontClassName ?? "dial-display2-text", VS.headingTitle),
|
|
28868
28827
|
children: se
|
|
28869
|
-
}), !
|
|
28828
|
+
}), !M && /* @__PURE__ */ L(US, {
|
|
28870
28829
|
label: ce,
|
|
28871
|
-
options:
|
|
28872
|
-
onClick:
|
|
28830
|
+
options: j,
|
|
28831
|
+
onClick: A
|
|
28873
28832
|
})]
|
|
28874
28833
|
})
|
|
28875
28834
|
}),
|
|
28876
|
-
/* @__PURE__ */
|
|
28835
|
+
/* @__PURE__ */ R("div", {
|
|
28877
28836
|
className: "min-h-0 flex-1 overflow-auto",
|
|
28878
28837
|
children: [
|
|
28879
|
-
|
|
28838
|
+
B && /* @__PURE__ */ L("div", {
|
|
28880
28839
|
className: "w-full px-8",
|
|
28881
|
-
children: /* @__PURE__ */
|
|
28840
|
+
children: /* @__PURE__ */ L(SS, {
|
|
28882
28841
|
items: t,
|
|
28883
28842
|
totalCount: t.length,
|
|
28884
28843
|
title: le,
|
|
28885
28844
|
onToggleFavorite: r,
|
|
28886
|
-
onItemClick:
|
|
28845
|
+
onItemClick: P ?? Qe,
|
|
28887
28846
|
isLeaving: Re,
|
|
28888
28847
|
onExitComplete: Le,
|
|
28889
|
-
selectedItemId:
|
|
28890
|
-
credentialsBadgeLoggedOutLabel:
|
|
28848
|
+
selectedItemId: N,
|
|
28849
|
+
credentialsBadgeLoggedOutLabel: ae?.credentialsBadgeLoggedOutLabel
|
|
28891
28850
|
})
|
|
28892
28851
|
}),
|
|
28893
|
-
/* @__PURE__ */
|
|
28852
|
+
/* @__PURE__ */ L("div", {
|
|
28894
28853
|
className: "w-full px-4 pt-6",
|
|
28895
|
-
children: /* @__PURE__ */
|
|
28896
|
-
totalCount:
|
|
28854
|
+
children: /* @__PURE__ */ L(BS, {
|
|
28855
|
+
totalCount: st.length,
|
|
28897
28856
|
viewMode: ye,
|
|
28898
|
-
onViewModeChange:
|
|
28857
|
+
onViewModeChange: ut,
|
|
28899
28858
|
sortKey: Ce,
|
|
28900
28859
|
onSortChange: we,
|
|
28901
|
-
query:
|
|
28860
|
+
query: z,
|
|
28902
28861
|
onQueryChange: ve,
|
|
28903
28862
|
title: ue,
|
|
28904
28863
|
searchPlaceholder: de,
|
|
@@ -28915,57 +28874,57 @@ var Tx = {
|
|
|
28915
28874
|
filterTopicsLabel: n?.filterTopicsLabel
|
|
28916
28875
|
})
|
|
28917
28876
|
}),
|
|
28918
|
-
je.length > 0 && /* @__PURE__ */
|
|
28877
|
+
je.length > 0 && /* @__PURE__ */ L("div", {
|
|
28919
28878
|
className: "px-8",
|
|
28920
|
-
children: /* @__PURE__ */
|
|
28879
|
+
children: /* @__PURE__ */ L(Vb, {
|
|
28921
28880
|
tabs: je.map((e) => ({
|
|
28922
28881
|
id: e.id,
|
|
28923
28882
|
label: typeof e.label == "string" ? e.label : String(e.label),
|
|
28924
|
-
count:
|
|
28883
|
+
count: st.filter((t) => t.type === e.id).length
|
|
28925
28884
|
})),
|
|
28926
28885
|
activeTabId: Ne,
|
|
28927
|
-
onTabChange:
|
|
28886
|
+
onTabChange: Pe,
|
|
28928
28887
|
activeTabClassName: "text-catalog-tab-active",
|
|
28929
28888
|
inactiveTabClassName: "text-catalog-tab-inactive hover:text-catalog-tab-hover border-transparent",
|
|
28930
28889
|
activeBadgeClassName: "bg-catalog-badge-active text-catalog-badge-active",
|
|
28931
28890
|
inactiveBadgeClassName: "bg-catalog-badge-inactive text-catalog-badge-inactive"
|
|
28932
28891
|
})
|
|
28933
28892
|
}),
|
|
28934
|
-
/* @__PURE__ */
|
|
28893
|
+
/* @__PURE__ */ R("div", {
|
|
28935
28894
|
className: "mx-auto min-h-full w-full max-w-[1180px] px-8 pt-6",
|
|
28936
|
-
children: [/* @__PURE__ */
|
|
28895
|
+
children: [/* @__PURE__ */ L("div", {
|
|
28937
28896
|
className: G("pb-8", ye !== Be.Grid && "hidden"),
|
|
28938
|
-
children: /* @__PURE__ */
|
|
28939
|
-
items:
|
|
28940
|
-
query:
|
|
28897
|
+
children: /* @__PURE__ */ L(yx, {
|
|
28898
|
+
items: ct,
|
|
28899
|
+
query: z,
|
|
28941
28900
|
onToggleFavorite: r,
|
|
28942
|
-
onItemClick:
|
|
28943
|
-
titles:
|
|
28944
|
-
selectedItemId:
|
|
28901
|
+
onItemClick: P ?? Qe,
|
|
28902
|
+
titles: ft,
|
|
28903
|
+
selectedItemId: N
|
|
28945
28904
|
})
|
|
28946
|
-
}), xe && /* @__PURE__ */
|
|
28905
|
+
}), xe && /* @__PURE__ */ L("div", {
|
|
28947
28906
|
className: G("pb-8", ye !== Be.List && "hidden"),
|
|
28948
|
-
children: /* @__PURE__ */
|
|
28949
|
-
items:
|
|
28950
|
-
query:
|
|
28907
|
+
children: /* @__PURE__ */ L(MS, {
|
|
28908
|
+
items: ct,
|
|
28909
|
+
query: z,
|
|
28951
28910
|
ariaLabel: ge,
|
|
28952
|
-
emptyStateTitle:
|
|
28911
|
+
emptyStateTitle: dt,
|
|
28953
28912
|
onToggleFavorite: r,
|
|
28954
|
-
onItemClick:
|
|
28913
|
+
onItemClick: P ?? Qe,
|
|
28955
28914
|
stickyHeaderTop: 0,
|
|
28956
|
-
selectedItemId:
|
|
28957
|
-
credentialsBadgeLoggedOutLabel:
|
|
28915
|
+
selectedItemId: N,
|
|
28916
|
+
credentialsBadgeLoggedOutLabel: ae?.credentialsBadgeLoggedOutLabel
|
|
28958
28917
|
})
|
|
28959
28918
|
})]
|
|
28960
28919
|
})
|
|
28961
28920
|
]
|
|
28962
28921
|
}),
|
|
28963
|
-
|
|
28964
|
-
item:
|
|
28965
|
-
isOpen:
|
|
28966
|
-
isStarred:
|
|
28967
|
-
isDetailsLoading:
|
|
28968
|
-
onClose:
|
|
28922
|
+
rt != null && /* @__PURE__ */ L(_S, {
|
|
28923
|
+
item: rt,
|
|
28924
|
+
isOpen: Ve,
|
|
28925
|
+
isStarred: lt,
|
|
28926
|
+
isDetailsLoading: Ye,
|
|
28927
|
+
onClose: nt,
|
|
28969
28928
|
onToggleFavorite: r,
|
|
28970
28929
|
onUseInChat: i,
|
|
28971
28930
|
isPrimaryActionVisible: s,
|
|
@@ -28986,19 +28945,18 @@ var Tx = {
|
|
|
28986
28945
|
isConnectVisible: T,
|
|
28987
28946
|
onEdit: D,
|
|
28988
28947
|
onDelete: O,
|
|
28989
|
-
onLogin:
|
|
28990
|
-
onLogout:
|
|
28991
|
-
|
|
28992
|
-
texts: I
|
|
28948
|
+
onLogin: et,
|
|
28949
|
+
onLogout: tt,
|
|
28950
|
+
texts: ae
|
|
28993
28951
|
})
|
|
28994
28952
|
]
|
|
28995
28953
|
});
|
|
28996
|
-
},
|
|
28954
|
+
}, GS = {
|
|
28997
28955
|
backdrop: "_backdrop_4t085_1",
|
|
28998
28956
|
panel: "_panel_4t085_5",
|
|
28999
28957
|
divider: "_divider_4t085_10",
|
|
29000
28958
|
content: "_content_4t085_14"
|
|
29001
|
-
},
|
|
28959
|
+
}, KS = ({ isOpen: e, item: t, resource: n, history: r, isHistoryLoading: i = !1, hasHistoryError: a = !1, folderItems: s, selectedFolderPath: c, onSelectedFolderPathChange: d, onCreateFolder: f, expandedPaths: p, onExpandedPathsChange: m, loadingPaths: h, hasExistingPublicationInFolder: g, hasWriteAccess: _, isSubmitting: v, hasSubmitError: b = !1, allowReplace: x = !0, onClose: S, returnFocusRef: C, onSubmit: w, panelTexts: T, footerTexts: E, texts: D = {} }) => {
|
|
29002
28960
|
let O = u(null), { title: k = "Publish", ariaLabel: ee = "Publish", closeAriaLabel: A = "Close" } = D, j = l(() => Je({
|
|
29003
28961
|
hasSelectedFolder: c != null,
|
|
29004
28962
|
hasExistingPublicationInFolder: g,
|
|
@@ -29029,11 +28987,11 @@ var Tx = {
|
|
|
29029
28987
|
return document.addEventListener("keydown", t), () => {
|
|
29030
28988
|
document.removeEventListener("keydown", t);
|
|
29031
28989
|
};
|
|
29032
|
-
}, [e, S]), /* @__PURE__ */
|
|
29033
|
-
className: G("fixed inset-0 z-[55] transition-opacity duration-300",
|
|
28990
|
+
}, [e, S]), /* @__PURE__ */ R(se, { children: [/* @__PURE__ */ L("div", {
|
|
28991
|
+
className: G("fixed inset-0 z-[55] transition-opacity duration-300", GS.backdrop, e ? "opacity-100" : "pointer-events-none opacity-0"),
|
|
29034
28992
|
onClick: S,
|
|
29035
28993
|
"aria-hidden": "true"
|
|
29036
|
-
}), /* @__PURE__ */
|
|
28994
|
+
}), /* @__PURE__ */ R("div", {
|
|
29037
28995
|
ref: O,
|
|
29038
28996
|
role: "dialog",
|
|
29039
28997
|
"aria-modal": "true",
|
|
@@ -29041,19 +28999,19 @@ var Tx = {
|
|
|
29041
28999
|
"aria-hidden": !e,
|
|
29042
29000
|
inert: !e,
|
|
29043
29001
|
tabIndex: -1,
|
|
29044
|
-
className: G("fixed inset-y-0 end-0 z-[60] 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",
|
|
29002
|
+
className: G("fixed inset-y-0 end-0 z-[60] 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", GS.panel, e ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
|
|
29045
29003
|
children: [
|
|
29046
|
-
/* @__PURE__ */
|
|
29004
|
+
/* @__PURE__ */ R("div", {
|
|
29047
29005
|
className: "flex shrink-0 items-center gap-2 px-[22px] py-3",
|
|
29048
29006
|
children: [
|
|
29049
|
-
/* @__PURE__ */
|
|
29050
|
-
/* @__PURE__ */
|
|
29007
|
+
/* @__PURE__ */ L("div", { className: "flex-1" }),
|
|
29008
|
+
/* @__PURE__ */ L("span", {
|
|
29051
29009
|
className: "dial-body-semi-text flex-1 text-center text-primary",
|
|
29052
29010
|
children: k
|
|
29053
29011
|
}),
|
|
29054
|
-
/* @__PURE__ */
|
|
29012
|
+
/* @__PURE__ */ L("div", {
|
|
29055
29013
|
className: "flex flex-1 justify-end",
|
|
29056
|
-
children: /* @__PURE__ */
|
|
29014
|
+
children: /* @__PURE__ */ L(y, {
|
|
29057
29015
|
onClose: S,
|
|
29058
29016
|
ariaLabel: A,
|
|
29059
29017
|
disabled: v
|
|
@@ -29061,12 +29019,12 @@ var Tx = {
|
|
|
29061
29019
|
})
|
|
29062
29020
|
]
|
|
29063
29021
|
}),
|
|
29064
|
-
/* @__PURE__ */
|
|
29065
|
-
/* @__PURE__ */
|
|
29066
|
-
className: G("min-h-0 flex-1 overflow-y-auto",
|
|
29067
|
-
children: /* @__PURE__ */
|
|
29022
|
+
/* @__PURE__ */ L("div", { className: G("shrink-0", GS.divider) }),
|
|
29023
|
+
/* @__PURE__ */ L("div", {
|
|
29024
|
+
className: G("min-h-0 flex-1 overflow-y-auto", GS.content),
|
|
29025
|
+
children: /* @__PURE__ */ L("div", {
|
|
29068
29026
|
className: "p-[22px]",
|
|
29069
|
-
children: /* @__PURE__ */
|
|
29027
|
+
children: /* @__PURE__ */ L(Ax, {
|
|
29070
29028
|
item: t,
|
|
29071
29029
|
resource: n,
|
|
29072
29030
|
history: r,
|
|
@@ -29088,7 +29046,7 @@ var Tx = {
|
|
|
29088
29046
|
})
|
|
29089
29047
|
})
|
|
29090
29048
|
}),
|
|
29091
|
-
/* @__PURE__ */
|
|
29049
|
+
/* @__PURE__ */ L(xx, {
|
|
29092
29050
|
version: t?.version ?? n?.version,
|
|
29093
29051
|
hasExistingPublicationInFolder: g,
|
|
29094
29052
|
isSubmitDisabled: j.isSubmitDisabled,
|
|
@@ -29101,4 +29059,4 @@ var Tx = {
|
|
|
29101
29059
|
})] });
|
|
29102
29060
|
};
|
|
29103
29061
|
//#endregion
|
|
29104
|
-
export { _x as Card, yx as CardGrid, vx as CardRowRenderer,
|
|
29062
|
+
export { _x as Card, yx as CardGrid, vx as CardRowRenderer, WS as Catalog, Ne as CatalogDetailsTab, B as CatalogEntityType, Fe as CatalogSortKey, Be as CatalogViewMode, Me as CodeLanguage, Le as CredentialStatus, ox as CredentialsBadge, ze as CredentialsBadgeState, Re as CredentialsLevel, V as CredentialsUiState, TS as EntityBadge, Pe as EntityTag, yS as FavoriteCard, SS as Favorites, IS as Filter, ux as FolderPath, MS as ListView, Ve as PublishCalloutKind, Ox as PublishFoldersTree, xx as PublishFooter, kx as PublishHistoryList, Ax as PublishPanel, KS as StandalonePublishPanel, BS as Toolbar, Ie as ToolsetAuthenticationType, mx as TopicTag, tt as collectFolderKeys, Je as derivePublishState, Ge as filterCatalogItems, et as filterFolderTree, Xe as formatPublishedDate, lt as getCredentialsBadgeState, ct as getCredentialsUiState, ut as getSignedInLevel, Ke as sortCatalogItems, qe as useFavColumns, $e as usePublishFlow, nx as useScrollVirtualizer };
|