@epam/ai-dial-catalog 1.1.0-dev.228 → 1.1.0-dev.229
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Details/DetailsPanel.d.ts.map +1 -1
- package/components/Details/TabsContent/About.d.ts +2 -2
- package/components/Details/TabsContent/About.d.ts.map +1 -1
- package/components/TableView/TableView.d.ts.map +1 -1
- package/index.js +173 -197
- package/package.json +3 -3
- package/utils/parse-about-content.d.ts +0 -22
- package/utils/parse-about-content.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/Details/DetailsPanel.tsx"],"names":[],"mappings":"AAuBA,OAAO,EACL,EAAE,EAOH,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DetailsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/Details/DetailsPanel.tsx"],"names":[],"mappings":"AAuBA,OAAO,EACL,EAAE,EAOH,MAAM,OAAO,CAAC;AAMf,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AA4HzE,4EAA4E;AAC5E,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA+hC9C,CAAC"}
|
|
@@ -2,11 +2,11 @@ import { FC } from 'react';
|
|
|
2
2
|
import { ItemDetailsStyles } from '../../../models/item-details-props';
|
|
3
3
|
interface AboutTabProps {
|
|
4
4
|
topics?: string[];
|
|
5
|
-
/**
|
|
5
|
+
/** Markdown text to render, typically `item.description`. */
|
|
6
6
|
content: string;
|
|
7
7
|
detailsStyles?: ItemDetailsStyles;
|
|
8
8
|
}
|
|
9
|
-
/** Renders
|
|
9
|
+
/** Renders a catalog item's description as markdown, followed by its topic tags. */
|
|
10
10
|
export declare const AboutTab: FC<AboutTabProps>;
|
|
11
11
|
export {};
|
|
12
12
|
//# sourceMappingURL=About.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"About.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/TabsContent/About.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"About.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/TabsContent/About.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAG5E,UAAU,aAAa;IACrB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,6DAA6D;IAC7D,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACnC;AAED,oFAAoF;AACpF,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAmCtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableView.d.ts","sourceRoot":"","sources":["../../../src/components/TableView/TableView.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TableView.d.ts","sourceRoot":"","sources":["../../../src/components/TableView/TableView.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAqD3B,qCAAqC;AACrC,MAAM,WAAW,YAAY;IAC3B,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CACzB;AAED,yEAAyE;AACzE,MAAM,WAAW,eAAe;IAC9B,gEAAgE;IAChE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0FAA0F;IAC1F,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mEAAmE;IACnE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,6BAA6B;AAC7B,MAAM,WAAW,cAAc;IAC7B,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yEAAyE;IACzE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,6DAA6D;IAC7D,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kEAAkE;IAClE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wDAAwD;IACxD,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B;AAED,yGAAyG;AACzG,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAsExC,CAAC"}
|
package/index.js
CHANGED
|
@@ -62767,7 +62767,7 @@ var uI = () => {
|
|
|
62767
62767
|
className: I(t, DI.valueFalse),
|
|
62768
62768
|
children: a
|
|
62769
62769
|
}) : /* @__PURE__ */ N("span", {
|
|
62770
|
-
className: I(t, DI.valueText),
|
|
62770
|
+
className: I("min-w-0 break-words", t, DI.valueText),
|
|
62771
62771
|
children: e
|
|
62772
62772
|
}), kI = ({ sectionLabel: e = "Section", values: t, labelClassName: n = "dial-small-semi-text", valueClassName: r = "dial-small-text", valueTrueClassName: i = "dial-small-semi-text", checkIconClassName: a, sectionClassName: o = "dial-caption-text", yesLabel: s = "Yes", noLabel: c = "No", colors: l }) => /* @__PURE__ */ N("div", {
|
|
62773
62773
|
className: "flex flex-col",
|
|
@@ -62791,7 +62791,7 @@ var uI = () => {
|
|
|
62791
62791
|
className: I(n, DI.label, "w-2/5 shrink-0"),
|
|
62792
62792
|
children: e.label
|
|
62793
62793
|
}), /* @__PURE__ */ N("div", {
|
|
62794
|
-
className: "flex w-3/5 items-center gap-1",
|
|
62794
|
+
className: "flex w-3/5 min-w-0 items-center gap-1",
|
|
62795
62795
|
children: /* @__PURE__ */ N(OI, {
|
|
62796
62796
|
value: e.value,
|
|
62797
62797
|
valueClassName: r,
|
|
@@ -63632,64 +63632,40 @@ var uI = () => {
|
|
|
63632
63632
|
]
|
|
63633
63633
|
})]
|
|
63634
63634
|
});
|
|
63635
|
-
}, cL = (e
|
|
63636
|
-
let
|
|
63637
|
-
|
|
63638
|
-
|
|
63639
|
-
|
|
63640
|
-
|
|
63641
|
-
|
|
63642
|
-
|
|
63643
|
-
|
|
63644
|
-
|
|
63645
|
-
|
|
63646
|
-
|
|
63647
|
-
|
|
63648
|
-
|
|
63649
|
-
|
|
63650
|
-
|
|
63651
|
-
|
|
63652
|
-
|
|
63653
|
-
|
|
63654
|
-
|
|
63655
|
-
|
|
63656
|
-
|
|
63657
|
-
|
|
63658
|
-
children: [/* @__PURE__ */ N("span", {
|
|
63659
|
-
"aria-hidden": "true",
|
|
63660
|
-
children: "•"
|
|
63661
|
-
}), /* @__PURE__ */ N("span", { children: e })]
|
|
63662
|
-
}, n))
|
|
63663
|
-
}) : /* @__PURE__ */ N("p", {
|
|
63664
|
-
className: I("m-0", t),
|
|
63665
|
-
children: e.text
|
|
63666
|
-
}), uL = ({ topics: e, content: t, detailsStyles: n }) => /* @__PURE__ */ P("div", {
|
|
63667
|
-
className: "flex flex-col gap-5",
|
|
63668
|
-
children: [p(() => cL(t), [t]).map((e, t) => /* @__PURE__ */ P("div", {
|
|
63669
|
-
className: "flex flex-col gap-2",
|
|
63670
|
-
children: [e.heading != null && /* @__PURE__ */ N("span", {
|
|
63671
|
-
className: n?.typography?.contentHeadingClassName ?? "dial-small-semi-text",
|
|
63672
|
-
children: e.heading
|
|
63673
|
-
}), e.runs.map((e, t) => /* @__PURE__ */ N(lL, {
|
|
63674
|
-
run: e,
|
|
63675
|
-
contentClassName: n?.typography?.contentClassName ?? "dial-small-text"
|
|
63676
|
-
}, t))]
|
|
63677
|
-
}, t)), e && e.length > 0 && /* @__PURE__ */ N("div", {
|
|
63678
|
-
className: "flex flex-wrap gap-2",
|
|
63679
|
-
children: e.map((e) => /* @__PURE__ */ N(oN, { label: e }, e))
|
|
63680
|
-
})]
|
|
63681
|
-
}), dL = {
|
|
63635
|
+
}, cL = ({ topics: e, content: t, detailsStyles: n }) => {
|
|
63636
|
+
let r = n?.typography?.contentHeadingClassName ?? "dial-small-semi-text", i = n?.typography?.contentClassName ?? "dial-small-text";
|
|
63637
|
+
return /* @__PURE__ */ P("div", {
|
|
63638
|
+
className: "flex flex-col gap-5",
|
|
63639
|
+
children: [/* @__PURE__ */ N(BM, {
|
|
63640
|
+
content: t,
|
|
63641
|
+
classNames: {
|
|
63642
|
+
h1: r,
|
|
63643
|
+
h2: r,
|
|
63644
|
+
h3: r,
|
|
63645
|
+
h4: r,
|
|
63646
|
+
h5: r,
|
|
63647
|
+
h6: r,
|
|
63648
|
+
p: i,
|
|
63649
|
+
ul: i,
|
|
63650
|
+
ol: i
|
|
63651
|
+
}
|
|
63652
|
+
}), e && e.length > 0 && /* @__PURE__ */ N("div", {
|
|
63653
|
+
className: "flex flex-wrap gap-2",
|
|
63654
|
+
children: e.map((e) => /* @__PURE__ */ N(oN, { label: e }, e))
|
|
63655
|
+
})]
|
|
63656
|
+
});
|
|
63657
|
+
}, lL = {
|
|
63682
63658
|
divider: "_divider_1gzl9_1",
|
|
63683
63659
|
fileCount: "_fileCount_1gzl9_5",
|
|
63684
63660
|
body: "_body_1gzl9_9"
|
|
63685
|
-
},
|
|
63661
|
+
}, uL = (e, t, n = void 0) => e.flatMap((e) => {
|
|
63686
63662
|
let r = {
|
|
63687
63663
|
node: e,
|
|
63688
63664
|
parentId: n
|
|
63689
63665
|
};
|
|
63690
|
-
return e.type === bn.File || !t.has(e.id) ? [r] : [r, ...
|
|
63691
|
-
}),
|
|
63692
|
-
let c = p(() =>
|
|
63666
|
+
return e.type === bn.File || !t.has(e.id) ? [r] : [r, ...uL(e.items, t, e.id)];
|
|
63667
|
+
}), dL = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
|
|
63668
|
+
let c = p(() => uL(e, n), [e, n]), u = m({}), [d, f] = h(() => t ?? c[0]?.node.id);
|
|
63693
63669
|
l(() => {
|
|
63694
63670
|
d != null && u.current[d]?.focus();
|
|
63695
63671
|
}, []);
|
|
@@ -63786,7 +63762,7 @@ var uI = () => {
|
|
|
63786
63762
|
onKeyDown: _,
|
|
63787
63763
|
children: e.map((e) => y(e))
|
|
63788
63764
|
});
|
|
63789
|
-
},
|
|
63765
|
+
}, fL = () => void 0, pL = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = fL, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = fL, fileSelectorAriaLabel: u = "Select file", fileCountLabel: d = (e) => `${e} files`, fileLoadingLabel: f = "Loading file", fileUnsupportedLabel: p = "Preview is not supported for this file", filePreview: m, filePreviewContent: h, detailsStyles: g }) => {
|
|
63790
63766
|
let _ = g?.typography?.contentClassName ?? "dial-small-text", v = g?.typography?.contentHeadingClassName ?? "dial-small-semi-text", y = g?.typography?.contentFileCountClassName ?? "dial-tiny-text", b = t != null && t !== "", x = n ?? [], S = wI(x) > 1, C = EI(x, r) ?? "", w = (e) => {
|
|
63791
63767
|
i?.(e), l(!1);
|
|
63792
63768
|
}, T = a ? {
|
|
@@ -63808,7 +63784,7 @@ var uI = () => {
|
|
|
63808
63784
|
matchReferenceWidth: !1,
|
|
63809
63785
|
listClassName: "w-[280px]",
|
|
63810
63786
|
placement: "bottom-start",
|
|
63811
|
-
renderOverlay: () => /* @__PURE__ */ N(
|
|
63787
|
+
renderOverlay: () => /* @__PURE__ */ N(dL, {
|
|
63812
63788
|
nodes: x,
|
|
63813
63789
|
selectedFileId: r,
|
|
63814
63790
|
expandedFolderIds: o,
|
|
@@ -63825,16 +63801,16 @@ var uI = () => {
|
|
|
63825
63801
|
onClick: () => l(!c)
|
|
63826
63802
|
})
|
|
63827
63803
|
}), /* @__PURE__ */ N("span", {
|
|
63828
|
-
className: I("shrink-0", y,
|
|
63804
|
+
className: I("shrink-0", y, lL.fileCount),
|
|
63829
63805
|
children: d(wI(x))
|
|
63830
63806
|
})]
|
|
63831
63807
|
}),
|
|
63832
63808
|
b && /* @__PURE__ */ P(et, { children: [/* @__PURE__ */ N("p", {
|
|
63833
63809
|
className: I("m-0", _),
|
|
63834
63810
|
children: t
|
|
63835
|
-
}), /* @__PURE__ */ N("div", { className: I("shrink-0",
|
|
63811
|
+
}), /* @__PURE__ */ N("div", { className: I("shrink-0", lL.divider) })] }),
|
|
63836
63812
|
/* @__PURE__ */ P("div", {
|
|
63837
|
-
className: I("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null &&
|
|
63813
|
+
className: I("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && lL.body, h == null && _),
|
|
63838
63814
|
children: [a && /* @__PURE__ */ N("span", {
|
|
63839
63815
|
role: "status",
|
|
63840
63816
|
className: "sr-only",
|
|
@@ -63865,7 +63841,7 @@ var uI = () => {
|
|
|
63865
63841
|
})
|
|
63866
63842
|
]
|
|
63867
63843
|
});
|
|
63868
|
-
},
|
|
63844
|
+
}, mL = {
|
|
63869
63845
|
sectionHeading: "_sectionHeading_5pff9_1",
|
|
63870
63846
|
label: "_label_5pff9_5",
|
|
63871
63847
|
value: "_value_5pff9_9",
|
|
@@ -63873,12 +63849,12 @@ var uI = () => {
|
|
|
63873
63849
|
progressFillDefault: "_progressFillDefault_5pff9_20",
|
|
63874
63850
|
progressFillWarning: "_progressFillWarning_5pff9_24",
|
|
63875
63851
|
progressFillDanger: "_progressFillDanger_5pff9_28"
|
|
63876
|
-
},
|
|
63877
|
-
let t =
|
|
63852
|
+
}, hL = (e) => !Number.isFinite(e.used) || !Number.isFinite(e.total) ? 0 : Math.min(Math.max(e.used, 0), Math.max(e.total, 0)), gL = (e) => Number.isFinite(e) && e > 0 ? e : 1, _L = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), vL = ({ used: e, total: t, valueLabel: n }) => n ?? `${_L.format(e)} / ${_L.format(t)}`, yL = ({ total: e }) => Number.isFinite(e) && e > 0, bL = (e) => e.isUnlimited !== !0 && yL(e), xL = (e) => yL(e) ? Math.max(e.used, 0) / e.total : 0, SL = (e) => {
|
|
63853
|
+
let t = xL(e);
|
|
63878
63854
|
return t >= 1 ? "danger" : t >= .75 ? "warning" : "default";
|
|
63879
|
-
},
|
|
63855
|
+
}, CL = ({ limits: e, costCapsSectionLabel: t = "Cost caps", unlimitedSectionLabel: n = "Unlimited", labelClassName: r = "dial-small-semi-text", unlimitedLabelClassName: i = "dial-tiny-text", valueClassName: a = "dial-small-text", unlimitedValueClassName: o = "dial-tiny-text", sectionClassName: s = "dial-caption-text", limitClassName: c = "dial-small-semi-text", colors: l }) => {
|
|
63880
63856
|
if (e == null || e.rows.length === 0) return null;
|
|
63881
|
-
let u = e.rows.filter(
|
|
63857
|
+
let u = e.rows.filter(bL), d = e.rows.filter((e) => !bL(e));
|
|
63882
63858
|
return /* @__PURE__ */ P("div", {
|
|
63883
63859
|
className: "flex flex-col gap-6",
|
|
63884
63860
|
style: bi({
|
|
@@ -63891,58 +63867,58 @@ var uI = () => {
|
|
|
63891
63867
|
"--lt-progress-fill-danger": l?.progressFillDanger
|
|
63892
63868
|
}),
|
|
63893
63869
|
children: [u.length > 0 && /* @__PURE__ */ P("section", { children: [/* @__PURE__ */ N("p", {
|
|
63894
|
-
className: I("mb-3 mt-0", s,
|
|
63870
|
+
className: I("mb-3 mt-0", s, mL.sectionHeading),
|
|
63895
63871
|
children: t
|
|
63896
63872
|
}), /* @__PURE__ */ N("ul", {
|
|
63897
63873
|
className: "m-0 flex list-none flex-col gap-4 p-0",
|
|
63898
63874
|
children: u.map((e) => {
|
|
63899
|
-
let t =
|
|
63875
|
+
let t = vL(e), n = SL(e);
|
|
63900
63876
|
return /* @__PURE__ */ N("li", { children: /* @__PURE__ */ N(ze, {
|
|
63901
|
-
value:
|
|
63902
|
-
max:
|
|
63877
|
+
value: hL(e),
|
|
63878
|
+
max: gL(e.total),
|
|
63903
63879
|
size: ye.Small,
|
|
63904
|
-
className: I("!h-2 w-full",
|
|
63880
|
+
className: I("!h-2 w-full", mL.progressTrack, n === "default" && mL.progressFillDefault, n === "warning" && mL.progressFillWarning, n === "danger" && mL.progressFillDanger),
|
|
63905
63881
|
labelProps: { label: /* @__PURE__ */ N("span", {
|
|
63906
|
-
className: I(r,
|
|
63882
|
+
className: I(r, mL.label),
|
|
63907
63883
|
children: e.label
|
|
63908
63884
|
}) },
|
|
63909
63885
|
valueLabel: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ P(et, { children: [
|
|
63910
63886
|
/* @__PURE__ */ N("span", {
|
|
63911
|
-
className: I(a,
|
|
63887
|
+
className: I(a, mL.value),
|
|
63912
63888
|
children: e.usedLabel
|
|
63913
63889
|
}),
|
|
63914
63890
|
" ",
|
|
63915
63891
|
"/",
|
|
63916
63892
|
" ",
|
|
63917
63893
|
/* @__PURE__ */ N("span", {
|
|
63918
|
-
className: I(c,
|
|
63894
|
+
className: I(c, mL.value),
|
|
63919
63895
|
children: e.totalLabel
|
|
63920
63896
|
})
|
|
63921
63897
|
] }) : /* @__PURE__ */ N("span", {
|
|
63922
|
-
className: I(a,
|
|
63898
|
+
className: I(a, mL.value),
|
|
63923
63899
|
children: t
|
|
63924
63900
|
}),
|
|
63925
63901
|
"aria-valuetext": e.ariaLabel ?? t
|
|
63926
63902
|
}) }, e.label);
|
|
63927
63903
|
})
|
|
63928
63904
|
})] }), d.length > 0 && /* @__PURE__ */ P("section", { children: [/* @__PURE__ */ N("p", {
|
|
63929
|
-
className: I("mb-3 mt-0", s,
|
|
63905
|
+
className: I("mb-3 mt-0", s, mL.sectionHeading),
|
|
63930
63906
|
children: n
|
|
63931
63907
|
}), /* @__PURE__ */ N("ul", {
|
|
63932
63908
|
className: "m-0 list-none p-0",
|
|
63933
63909
|
children: d.map((e) => /* @__PURE__ */ P("li", {
|
|
63934
63910
|
className: "flex items-center justify-between gap-3 py-[4.8px]",
|
|
63935
63911
|
children: [/* @__PURE__ */ N("span", {
|
|
63936
|
-
className: I("min-w-0 break-words", i,
|
|
63912
|
+
className: I("min-w-0 break-words", i, mL.label),
|
|
63937
63913
|
children: e.label
|
|
63938
63914
|
}), /* @__PURE__ */ N("span", {
|
|
63939
|
-
className: I("shrink-0", o,
|
|
63940
|
-
children:
|
|
63915
|
+
className: I("shrink-0", o, mL.value),
|
|
63916
|
+
children: vL(e)
|
|
63941
63917
|
})]
|
|
63942
63918
|
}, e.label))
|
|
63943
63919
|
})] })]
|
|
63944
63920
|
});
|
|
63945
|
-
},
|
|
63921
|
+
}, wL = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ N("div", {
|
|
63946
63922
|
className: "flex flex-col gap-4",
|
|
63947
63923
|
children: e.map((e, s) => /* @__PURE__ */ P("div", {
|
|
63948
63924
|
className: "flex flex-col gap-4",
|
|
@@ -63960,7 +63936,7 @@ var uI = () => {
|
|
|
63960
63936
|
})
|
|
63961
63937
|
})]
|
|
63962
63938
|
}, s))
|
|
63963
|
-
}) : null,
|
|
63939
|
+
}) : null, TL = ({ 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" }) => {
|
|
63964
63940
|
if (e == null) return null;
|
|
63965
63941
|
let o = e.prices?.map((e) => ({
|
|
63966
63942
|
label: e.label,
|
|
@@ -63985,32 +63961,32 @@ var uI = () => {
|
|
|
63985
63961
|
sectionClassName: a
|
|
63986
63962
|
})]
|
|
63987
63963
|
});
|
|
63988
|
-
},
|
|
63964
|
+
}, EL = {
|
|
63989
63965
|
container: "_container_13yuu_1",
|
|
63990
63966
|
header: "_header_13yuu_5",
|
|
63991
63967
|
cell: "_cell_13yuu_10",
|
|
63992
63968
|
evenRow: "_evenRow_13yuu_15"
|
|
63993
|
-
},
|
|
63969
|
+
}, DL = ({ columns: e, rows: t, columnsTemplate: r, headingClassName: i = "dial-caption-lead-semi-text", cellClassName: a = "dial-tiny-text" }) => {
|
|
63994
63970
|
let o = r ?? `repeat(${e.length}, 1fr)`;
|
|
63995
63971
|
return /* @__PURE__ */ P("div", {
|
|
63996
|
-
className: I(
|
|
63972
|
+
className: I(EL.container, "grid overflow-hidden rounded-md"),
|
|
63997
63973
|
style: { gridTemplateColumns: o },
|
|
63998
63974
|
children: [e.map((e) => /* @__PURE__ */ N("div", {
|
|
63999
|
-
className: I("px-2 py-1 text-start", i,
|
|
63975
|
+
className: I("px-2 py-1 text-start", i, EL.header),
|
|
64000
63976
|
children: e
|
|
64001
63977
|
}, e)), t.map((e, t) => /* @__PURE__ */ N(n, { children: e.map((e, n) => /* @__PURE__ */ N("div", {
|
|
64002
|
-
className: I("px-2 py-1.5", a,
|
|
63978
|
+
className: I("px-2 py-1.5", a, EL.cell, t % 2 == 1 ? EL.evenRow : void 0),
|
|
64003
63979
|
children: e
|
|
64004
63980
|
}, n)) }, t))]
|
|
64005
63981
|
});
|
|
64006
|
-
},
|
|
63982
|
+
}, OL = {
|
|
64007
63983
|
divider: "_divider_1f796_1",
|
|
64008
63984
|
description: "_description_1f796_5",
|
|
64009
63985
|
code: "_code_1f796_9"
|
|
64010
|
-
},
|
|
63986
|
+
}, kL = ({ 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__ */ N("div", {
|
|
64011
63987
|
className: "flex flex-col",
|
|
64012
63988
|
children: e.tools.map((e, a) => /* @__PURE__ */ P("div", {
|
|
64013
|
-
className: I("flex flex-col gap-3 px-[22px] py-4", a > 0 ?
|
|
63989
|
+
className: I("flex flex-col gap-3 px-[22px] py-4", a > 0 ? OL.divider : void 0),
|
|
64014
63990
|
children: [
|
|
64015
63991
|
/* @__PURE__ */ P("div", {
|
|
64016
63992
|
className: "flex flex-col gap-1",
|
|
@@ -64018,11 +63994,11 @@ var uI = () => {
|
|
|
64018
63994
|
className: t,
|
|
64019
63995
|
children: e.name
|
|
64020
63996
|
}), e.description != null && /* @__PURE__ */ N("p", {
|
|
64021
|
-
className: I("m-0", n,
|
|
63997
|
+
className: I("m-0", n, OL.description),
|
|
64022
63998
|
children: e.description
|
|
64023
63999
|
})]
|
|
64024
64000
|
}),
|
|
64025
|
-
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ N(
|
|
64001
|
+
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ N(DL, {
|
|
64026
64002
|
columns: [
|
|
64027
64003
|
"Name",
|
|
64028
64004
|
"Type",
|
|
@@ -64031,11 +64007,11 @@ var uI = () => {
|
|
|
64031
64007
|
columnsTemplate: "1fr 1fr auto",
|
|
64032
64008
|
rows: e.inputParams.map((e) => [
|
|
64033
64009
|
/* @__PURE__ */ N("code", {
|
|
64034
|
-
className: I("text-inherit border-none bg-transparent p-0",
|
|
64010
|
+
className: I("text-inherit border-none bg-transparent p-0", OL.code),
|
|
64035
64011
|
children: e.name
|
|
64036
64012
|
}, "name"),
|
|
64037
64013
|
/* @__PURE__ */ N("code", {
|
|
64038
|
-
className: I("text-inherit border-none bg-transparent p-0",
|
|
64014
|
+
className: I("text-inherit border-none bg-transparent p-0", OL.code),
|
|
64039
64015
|
children: e.type
|
|
64040
64016
|
}, "type"),
|
|
64041
64017
|
e.isRequired ? "✓" : "—"
|
|
@@ -64043,10 +64019,10 @@ var uI = () => {
|
|
|
64043
64019
|
headingClassName: r,
|
|
64044
64020
|
cellClassName: i
|
|
64045
64021
|
}),
|
|
64046
|
-
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ N(
|
|
64022
|
+
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ N(DL, {
|
|
64047
64023
|
columns: ["Key", "Value"],
|
|
64048
64024
|
rows: e.annotations.map((e) => [/* @__PURE__ */ N("code", {
|
|
64049
|
-
className: I("text-inherit border-none bg-transparent p-0",
|
|
64025
|
+
className: I("text-inherit border-none bg-transparent p-0", OL.code),
|
|
64050
64026
|
children: e.key
|
|
64051
64027
|
}, "key"), e.value]),
|
|
64052
64028
|
headingClassName: r,
|
|
@@ -64054,19 +64030,19 @@ var uI = () => {
|
|
|
64054
64030
|
})
|
|
64055
64031
|
]
|
|
64056
64032
|
}, e.name))
|
|
64057
|
-
}),
|
|
64033
|
+
}), AL = new Set([Un.Prompt, Un.Skill]), jL = (e) => e?.resource?.endpointUrl != null || (e?.endpoints?.length ?? 0) > 0, ML = async () => void 0, NL = [], PL = [], FL = [
|
|
64058
64034
|
"All shared configurations will be lost",
|
|
64059
64035
|
"Users who rely on it will lose access",
|
|
64060
64036
|
"Cannot be undone"
|
|
64061
|
-
],
|
|
64037
|
+
], IL = [
|
|
64062
64038
|
"You will lose access to this item",
|
|
64063
64039
|
"Other people keep their access",
|
|
64064
64040
|
"You will need a new invitation to get it back"
|
|
64065
|
-
],
|
|
64041
|
+
], LL = [
|
|
64066
64042
|
"Everyone you shared it with loses access",
|
|
64067
64043
|
"Existing share links stop working",
|
|
64068
64044
|
"You keep full access — nothing is deleted"
|
|
64069
|
-
],
|
|
64045
|
+
], RL = (e) => e === fn.ApiKey ? "Toolset API keys" : "Toolset credentials", zL = (e) => e === mn.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", BL = new Set([ln.Delete, ln.Unshare]), VL = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, onClose: i, onToggleFavorite: a, onUseInChat: o, isPrimaryActionVisible: c, onShare: u, isPublishVisible: d, getPublishHistory: f, publishFolderItems: g = NL, publishExpandedPaths: _, onPublishExpandedPathsChange: v, publishLoadingPaths: y, hasPublishWriteAccess: b, onPublish: x, onPublishSuccess: C, onPublishError: w, onCreatePublishFolder: T, publishLabels: E, ruleSourceOptions: D = PL, onFetchExistingRules: O, shareOverlay: k, isShareVisible: ee, onEdit: te, onDownload: ne, isDownloadVisible: A, isDownloadPrimary: re, onLoadContentFile: ie, onLoadContentFilePreview: j, renderContentFilePreview: ae, onDelete: oe, onUnshare: se, isUnshareVisible: ce, onRevokeShare: le, onFetchRecipientsCount: ue, isRevokeShareVisible: de, onLogin: fe, onLogout: pe, texts: M, styles: me }) => {
|
|
64070
64046
|
let { subViewTitleClassName: he = "dial-body-semi-text", overviewSectionClassName: ge = "dial-caption-text", overviewLabelClassName: _e = "dial-small-semi-text", overviewValueClassName: ve = "dial-small-text", overviewValueTrueClassName: be = "dial-small-text", confirmMessageClassName: xe = "dial-small-text" } = me?.typography ?? {}, Se = me?.colors, Ce = bi({
|
|
64071
64047
|
"--cat-details-backdrop": Se?.backdrop,
|
|
64072
64048
|
"--cat-details-bg": Se?.background,
|
|
@@ -64190,7 +64166,7 @@ var uI = () => {
|
|
|
64190
64166
|
folderItems: g,
|
|
64191
64167
|
hasWriteAccess: b,
|
|
64192
64168
|
onCreateFolder: T,
|
|
64193
|
-
onPublish: x ??
|
|
64169
|
+
onPublish: x ?? ML,
|
|
64194
64170
|
onPublishSuccess: C,
|
|
64195
64171
|
onPublishError: w,
|
|
64196
64172
|
onFetchExistingRules: O
|
|
@@ -64245,7 +64221,7 @@ var uI = () => {
|
|
|
64245
64221
|
pt != null && await pe?.(e, { level: pt });
|
|
64246
64222
|
break;
|
|
64247
64223
|
}
|
|
64248
|
-
ut(null), mt(null), gt(null),
|
|
64224
|
+
ut(null), mt(null), gt(null), BL.has(ct) && i();
|
|
64249
64225
|
} catch {
|
|
64250
64226
|
ut(null), mt(null), gt(null);
|
|
64251
64227
|
} finally {
|
|
@@ -64294,7 +64270,7 @@ var uI = () => {
|
|
|
64294
64270
|
e.id,
|
|
64295
64271
|
a
|
|
64296
64272
|
]), At = p(() => {
|
|
64297
|
-
let t = [], n =
|
|
64273
|
+
let t = [], n = AL.has(e.type);
|
|
64298
64274
|
return n || t.push({
|
|
64299
64275
|
id: cn.About,
|
|
64300
64276
|
label: M?.tabAboutLabel ?? "About"
|
|
@@ -64313,7 +64289,7 @@ var uI = () => {
|
|
|
64313
64289
|
}), e.details?.tools != null && t.push({
|
|
64314
64290
|
id: cn.Tools,
|
|
64315
64291
|
label: M?.tabToolsLabel ?? "Tools"
|
|
64316
|
-
}), e.details?.api
|
|
64292
|
+
}), jL(e.details?.api) && t.push({
|
|
64317
64293
|
id: cn.Api,
|
|
64318
64294
|
label: M?.tabConnectLabel ?? "Connect"
|
|
64319
64295
|
}), t;
|
|
@@ -64337,7 +64313,7 @@ var uI = () => {
|
|
|
64337
64313
|
/* @__PURE__ */ N("strong", { children: e.name }),
|
|
64338
64314
|
"? This action is permanent and cannot be undone."
|
|
64339
64315
|
] }),
|
|
64340
|
-
consequences: M?.deleteConfirmConsequences ??
|
|
64316
|
+
consequences: M?.deleteConfirmConsequences ?? FL,
|
|
64341
64317
|
confirmLabel: t,
|
|
64342
64318
|
loadingStatusLabel: M?.deletingStatusLabel ?? "Deleting",
|
|
64343
64319
|
variant: un.Danger
|
|
@@ -64352,7 +64328,7 @@ var uI = () => {
|
|
|
64352
64328
|
/* @__PURE__ */ N("strong", { children: e.name }),
|
|
64353
64329
|
" from your list? You'll need a new invitation to access it again."
|
|
64354
64330
|
] }),
|
|
64355
|
-
consequences: M?.unshareConfirmConsequences ??
|
|
64331
|
+
consequences: M?.unshareConfirmConsequences ?? IL,
|
|
64356
64332
|
confirmLabel: t,
|
|
64357
64333
|
loadingStatusLabel: M?.unsharingStatusLabel ?? "Removing",
|
|
64358
64334
|
variant: un.Info
|
|
@@ -64367,7 +64343,7 @@ var uI = () => {
|
|
|
64367
64343
|
/* @__PURE__ */ N("strong", { children: e.name }),
|
|
64368
64344
|
"? Anyone you shared it with will lose access."
|
|
64369
64345
|
] }),
|
|
64370
|
-
consequences: M?.revokeShareConfirmConsequences ??
|
|
64346
|
+
consequences: M?.revokeShareConfirmConsequences ?? LL,
|
|
64371
64347
|
confirmLabel: t,
|
|
64372
64348
|
loadingStatusLabel: M?.revokingShareStatusLabel ?? "Revoking access",
|
|
64373
64349
|
variant: un.Danger
|
|
@@ -64388,7 +64364,7 @@ var uI = () => {
|
|
|
64388
64364
|
let e = M?.deleteActionLabel ?? "Delete", t = pt ?? mn.User;
|
|
64389
64365
|
return {
|
|
64390
64366
|
title: e,
|
|
64391
|
-
message: (M?.deleteApiKeyConfirmMessage ??
|
|
64367
|
+
message: (M?.deleteApiKeyConfirmMessage ?? zL)(t),
|
|
64392
64368
|
consequences: void 0,
|
|
64393
64369
|
confirmLabel: e,
|
|
64394
64370
|
loadingStatusLabel: M?.deletingStatusLabel ?? "Deleting",
|
|
@@ -64403,7 +64379,7 @@ var uI = () => {
|
|
|
64403
64379
|
e.name,
|
|
64404
64380
|
pt,
|
|
64405
64381
|
M
|
|
64406
|
-
]), Vt = Bt != null, Ht = Vt || ke || ot, Ut = e.credentials == null ? "" : (M?.credentialsManagementTitle ??
|
|
64382
|
+
]), Vt = Bt != null, Ht = Vt || ke || ot, Ut = e.credentials == null ? "" : (M?.credentialsManagementTitle ?? RL)(e.credentials.authenticationType), Wt = Vt ? {
|
|
64407
64383
|
title: Bt.title,
|
|
64408
64384
|
isBackDisabled: dt,
|
|
64409
64385
|
onBack: wt
|
|
@@ -64569,12 +64545,12 @@ var uI = () => {
|
|
|
64569
64545
|
/* @__PURE__ */ P("div", {
|
|
64570
64546
|
className: I("min-h-0 flex-1 overflow-y-auto", De !== cn.Overview && "px-6"),
|
|
64571
64547
|
children: [
|
|
64572
|
-
De === cn.About && /* @__PURE__ */ N(
|
|
64548
|
+
De === cn.About && /* @__PURE__ */ N(cL, {
|
|
64573
64549
|
content: e.description,
|
|
64574
64550
|
topics: e.topics,
|
|
64575
64551
|
detailsStyles: me
|
|
64576
64552
|
}),
|
|
64577
|
-
De === cn.Content && /* @__PURE__ */ N(
|
|
64553
|
+
De === cn.Content && /* @__PURE__ */ N(pL, {
|
|
64578
64554
|
content: Le?.content ?? "",
|
|
64579
64555
|
filePreview: nt(),
|
|
64580
64556
|
filePreviewContent: rt,
|
|
@@ -64593,7 +64569,7 @@ var uI = () => {
|
|
|
64593
64569
|
fileUnsupportedLabel: M?.contentFileUnsupportedLabel,
|
|
64594
64570
|
detailsStyles: me
|
|
64595
64571
|
}),
|
|
64596
|
-
De === cn.Overview && /* @__PURE__ */ N(
|
|
64572
|
+
De === cn.Overview && /* @__PURE__ */ N(wL, {
|
|
64597
64573
|
sections: e.details?.overview?.sections,
|
|
64598
64574
|
sectionClassName: ge,
|
|
64599
64575
|
labelClassName: _e,
|
|
@@ -64602,18 +64578,18 @@ var uI = () => {
|
|
|
64602
64578
|
yesLabel: Mt,
|
|
64603
64579
|
noLabel: Nt
|
|
64604
64580
|
}),
|
|
64605
|
-
De === cn.Pricing && /* @__PURE__ */ N(
|
|
64581
|
+
De === cn.Pricing && /* @__PURE__ */ N(TL, {
|
|
64606
64582
|
pricing: e.details?.pricing,
|
|
64607
64583
|
pricesSectionLabel: M?.pricingPricesSectionLabel,
|
|
64608
64584
|
limitsSectionLabel: M?.pricingLimitsSectionLabel
|
|
64609
64585
|
}),
|
|
64610
|
-
De === cn.Limits && /* @__PURE__ */ N(
|
|
64586
|
+
De === cn.Limits && /* @__PURE__ */ N(CL, {
|
|
64611
64587
|
limits: e.details?.limits,
|
|
64612
64588
|
costCapsSectionLabel: M?.limitsCostCapsSectionLabel,
|
|
64613
64589
|
unlimitedSectionLabel: M?.limitsUnlimitedSectionLabel
|
|
64614
64590
|
}),
|
|
64615
|
-
De === cn.Api && e.details?.api
|
|
64616
|
-
api: e.details
|
|
64591
|
+
De === cn.Api && jL(e.details?.api) && /* @__PURE__ */ N(PI, {
|
|
64592
|
+
api: e.details?.api,
|
|
64617
64593
|
resourceSectionLabel: M?.apiResourceSectionLabel,
|
|
64618
64594
|
snippetSectionLabel: M?.apiSnippetSectionLabel,
|
|
64619
64595
|
modelIdLabel: M?.apiModelIdLabel,
|
|
@@ -64623,7 +64599,7 @@ var uI = () => {
|
|
|
64623
64599
|
responseSchemaLabel: M?.apiResponseSchemaLabel,
|
|
64624
64600
|
copyAriaLabel: M?.copyCodeAriaLabel
|
|
64625
64601
|
}),
|
|
64626
|
-
De === cn.Tools && /* @__PURE__ */ N(
|
|
64602
|
+
De === cn.Tools && /* @__PURE__ */ N(kL, { tools: e.details?.tools })
|
|
64627
64603
|
]
|
|
64628
64604
|
})
|
|
64629
64605
|
] })
|
|
@@ -64649,7 +64625,7 @@ var uI = () => {
|
|
|
64649
64625
|
})
|
|
64650
64626
|
]
|
|
64651
64627
|
})] });
|
|
64652
|
-
},
|
|
64628
|
+
}, HL = {
|
|
64653
64629
|
pageNav: "_pageNav_w2g6t_1",
|
|
64654
64630
|
navBtn: "_navBtn_w2g6t_6",
|
|
64655
64631
|
titleText: "_titleText_w2g6t_23",
|
|
@@ -64664,7 +64640,7 @@ var uI = () => {
|
|
|
64664
64640
|
favFadeIn: "_favFadeIn_w2g6t_1",
|
|
64665
64641
|
cardLeaving: "_cardLeaving_w2g6t_54",
|
|
64666
64642
|
cardFadeOut: "_cardFadeOut_w2g6t_1"
|
|
64667
|
-
},
|
|
64643
|
+
}, UL = ({ item: e, initialIsStarred: t = !0, onToggle: n, onClick: r, nameClassName: i, colors: a, versionClassName: o, lastUsedClassName: c, query: l, addToFavoritesAriaLabel: u = "Add to favorites", removeFromFavoritesAriaLabel: d = "Remove from favorites", isSelected: f = !1, credentialsBadgeLoggedOutLabel: p }) => {
|
|
64668
64644
|
let [m, g] = h(t), [_, v] = h(!1), y = (t) => {
|
|
64669
64645
|
t.stopPropagation();
|
|
64670
64646
|
let r = !m;
|
|
@@ -64681,7 +64657,7 @@ var uI = () => {
|
|
|
64681
64657
|
role: b == null ? void 0 : "button",
|
|
64682
64658
|
tabIndex: b == null ? void 0 : 0,
|
|
64683
64659
|
"aria-label": e.name,
|
|
64684
|
-
className: I("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", _ &&
|
|
64660
|
+
className: I("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", _ && HL.cardLeaving, f && HL.selectedCard),
|
|
64685
64661
|
onClick: b,
|
|
64686
64662
|
onKeyDown: S,
|
|
64687
64663
|
onAnimationEnd: _ ? (t) => {
|
|
@@ -64690,7 +64666,7 @@ var uI = () => {
|
|
|
64690
64666
|
children: [
|
|
64691
64667
|
f && /* @__PURE__ */ N(st, {
|
|
64692
64668
|
size: D.SM,
|
|
64693
|
-
className: I("absolute end-3 top-3 shrink-0",
|
|
64669
|
+
className: I("absolute end-3 top-3 shrink-0", HL.selectedCheck),
|
|
64694
64670
|
"aria-hidden": !0
|
|
64695
64671
|
}),
|
|
64696
64672
|
/* @__PURE__ */ P("div", {
|
|
@@ -64726,7 +64702,7 @@ var uI = () => {
|
|
|
64726
64702
|
})
|
|
64727
64703
|
]
|
|
64728
64704
|
});
|
|
64729
|
-
},
|
|
64705
|
+
}, WL = 2, GL = (e) => {
|
|
64730
64706
|
let t = e.getBoundingClientRect(), n = window.scrollX, r = window.scrollY, i = window.getComputedStyle(e).transform;
|
|
64731
64707
|
if (!i || i === "none") return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
64732
64708
|
try {
|
|
@@ -64735,7 +64711,7 @@ var uI = () => {
|
|
|
64735
64711
|
} catch {
|
|
64736
64712
|
return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
64737
64713
|
}
|
|
64738
|
-
},
|
|
64714
|
+
}, KL = ({ items: e, totalCount: t, title: n = "Your Favorites", onToggleFavorite: r, onItemClick: i, styles: a, isLeaving: o, onExitComplete: s, prevPageAriaLabel: c = "Previous page", nextPageAriaLabel: u = "Next page", addToFavoritesAriaLabel: d, removeFromFavoritesAriaLabel: g, selectedItemId: _, credentialsBadgeLoggedOutLabel: v }) => {
|
|
64739
64715
|
let y = a?.typography?.titleClassName ?? "dial-body-semi-text", b = a?.typography?.countClassName ?? "dial-tiny-semi-text", x = bi({
|
|
64740
64716
|
"--cat-fav-title-text": a?.colors?.titleText,
|
|
64741
64717
|
"--cat-fav-count-text": a?.colors?.countText,
|
|
@@ -64744,7 +64720,7 @@ var uI = () => {
|
|
|
64744
64720
|
"--cat-fav-selected-bg": a?.colors?.selectedCardBackground,
|
|
64745
64721
|
"--cat-fav-nav-btn": a?.colors?.navButton,
|
|
64746
64722
|
"--cat-fav-nav-btn-disabled": a?.colors?.navButtonDisabled
|
|
64747
|
-
}), S = p(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [C, w] = h(1), T = Dn(), E = T *
|
|
64723
|
+
}), S = p(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [C, w] = h(1), T = Dn(), E = T * WL, D = (C - 1) * E, O = p(() => S.slice(D, D + E), [
|
|
64748
64724
|
S,
|
|
64749
64725
|
D,
|
|
64750
64726
|
E
|
|
@@ -64777,7 +64753,7 @@ var uI = () => {
|
|
|
64777
64753
|
ce.current = C, le.current = T;
|
|
64778
64754
|
let n = A.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
|
|
64779
64755
|
if (n.forEach((e) => {
|
|
64780
|
-
r.set(e.dataset.cardId,
|
|
64756
|
+
r.set(e.dataset.cardId, GL(e));
|
|
64781
64757
|
}), !e && !t) {
|
|
64782
64758
|
let e = ne.current, t = ue.current, i = 0;
|
|
64783
64759
|
if (e) {
|
|
@@ -64833,7 +64809,7 @@ var uI = () => {
|
|
|
64833
64809
|
ref: te,
|
|
64834
64810
|
children: /* @__PURE__ */ P("section", {
|
|
64835
64811
|
ref: ne,
|
|
64836
|
-
className: I("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2",
|
|
64812
|
+
className: I("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", HL.section, o && HL.sectionLeaving),
|
|
64837
64813
|
style: {
|
|
64838
64814
|
...x,
|
|
64839
64815
|
minHeight: j
|
|
@@ -64844,23 +64820,23 @@ var uI = () => {
|
|
|
64844
64820
|
children: [/* @__PURE__ */ N(Ng, {
|
|
64845
64821
|
title: n,
|
|
64846
64822
|
postfix: ee,
|
|
64847
|
-
titleClassName: I(y,
|
|
64848
|
-
postfixClassName: I(b,
|
|
64823
|
+
titleClassName: I(y, HL.titleText),
|
|
64824
|
+
postfixClassName: I(b, HL.countText),
|
|
64849
64825
|
trailing: k > 1 ? /* @__PURE__ */ P("div", {
|
|
64850
|
-
className: I("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]",
|
|
64826
|
+
className: I("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", HL.pageNav),
|
|
64851
64827
|
children: [
|
|
64852
64828
|
/* @__PURE__ */ N("button", {
|
|
64853
64829
|
"aria-label": c,
|
|
64854
64830
|
disabled: C === 1,
|
|
64855
64831
|
onClick: () => w((e) => e - 1),
|
|
64856
|
-
className: I("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent",
|
|
64832
|
+
className: I("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", HL.navBtn),
|
|
64857
64833
|
children: /* @__PURE__ */ N(lt, {
|
|
64858
64834
|
size: 14,
|
|
64859
64835
|
className: "rtl:scale-x-[-1]"
|
|
64860
64836
|
})
|
|
64861
64837
|
}),
|
|
64862
64838
|
/* @__PURE__ */ P("span", {
|
|
64863
|
-
className: I("min-w-[32px] select-none px-1 text-center", b,
|
|
64839
|
+
className: I("min-w-[32px] select-none px-1 text-center", b, HL.countText),
|
|
64864
64840
|
children: [
|
|
64865
64841
|
C,
|
|
64866
64842
|
" / ",
|
|
@@ -64871,7 +64847,7 @@ var uI = () => {
|
|
|
64871
64847
|
"aria-label": u,
|
|
64872
64848
|
disabled: C === k,
|
|
64873
64849
|
onClick: () => w((e) => e + 1),
|
|
64874
|
-
className: I("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent",
|
|
64850
|
+
className: I("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", HL.navBtn),
|
|
64875
64851
|
children: /* @__PURE__ */ N(ut, {
|
|
64876
64852
|
size: 14,
|
|
64877
64853
|
className: "rtl:scale-x-[-1]"
|
|
@@ -64881,12 +64857,12 @@ var uI = () => {
|
|
|
64881
64857
|
}) : void 0
|
|
64882
64858
|
}), /* @__PURE__ */ N("div", {
|
|
64883
64859
|
ref: A,
|
|
64884
|
-
className: I("grid content-start gap-5",
|
|
64860
|
+
className: I("grid content-start gap-5", HL.gridPage),
|
|
64885
64861
|
style: {
|
|
64886
64862
|
gridTemplateColumns: `repeat(${T}, minmax(0, 1fr))`,
|
|
64887
64863
|
minHeight: re
|
|
64888
64864
|
},
|
|
64889
|
-
children: O.map((e) => /* @__PURE__ */ N(
|
|
64865
|
+
children: O.map((e) => /* @__PURE__ */ N(UL, {
|
|
64890
64866
|
item: e,
|
|
64891
64867
|
onToggle: r,
|
|
64892
64868
|
onClick: i,
|
|
@@ -64898,7 +64874,7 @@ var uI = () => {
|
|
|
64898
64874
|
})]
|
|
64899
64875
|
})
|
|
64900
64876
|
});
|
|
64901
|
-
},
|
|
64877
|
+
}, qL = {
|
|
64902
64878
|
listContainer: "_listContainer_u1abe_1",
|
|
64903
64879
|
gridClip: "_gridClip_u1abe_6",
|
|
64904
64880
|
favHeader: "_favHeader_u1abe_43",
|
|
@@ -64906,14 +64882,14 @@ var uI = () => {
|
|
|
64906
64882
|
selectedCheck: "_selectedCheck_u1abe_51",
|
|
64907
64883
|
starToggleOff: "_starToggleOff_u1abe_55",
|
|
64908
64884
|
selectedRow: "_selectedRow_u1abe_68"
|
|
64909
|
-
},
|
|
64885
|
+
}, JL = ({ data: e }) => e ? /* @__PURE__ */ N("div", {
|
|
64910
64886
|
className: "flex h-full items-center",
|
|
64911
64887
|
children: /* @__PURE__ */ N(Pg, { type: e.type })
|
|
64912
|
-
}) : null,
|
|
64888
|
+
}) : null, YL = ({ data: e, context: t }) => !e || e.folder.length === 0 ? null : /* @__PURE__ */ N(Se, {
|
|
64913
64889
|
segments: e.folder,
|
|
64914
64890
|
labelClassName: t?.typography?.folderClassName,
|
|
64915
64891
|
leafClassName: t?.typography?.folderLastSegmentClassName
|
|
64916
|
-
}),
|
|
64892
|
+
}), XL = ({ data: e, context: t }) => {
|
|
64917
64893
|
let n = t?.searchQuery ?? "", r = t?.typography, i = r?.nameClassName ?? "dial-small-semi-text", a = r?.versionClassName ?? "dial-tiny-text", o = e != null && e.id === t?.selectedItemId;
|
|
64918
64894
|
return e ? /* @__PURE__ */ P("div", {
|
|
64919
64895
|
className: "flex h-full min-w-0 items-center gap-2.5",
|
|
@@ -64933,7 +64909,7 @@ var uI = () => {
|
|
|
64933
64909
|
className: "min-w-0 items-baseline gap-1.5",
|
|
64934
64910
|
trailing: o ? /* @__PURE__ */ N(st, {
|
|
64935
64911
|
size: D.SM,
|
|
64936
|
-
className: I("shrink-0",
|
|
64912
|
+
className: I("shrink-0", qL.selectedCheck),
|
|
64937
64913
|
"aria-hidden": !0
|
|
64938
64914
|
}) : void 0
|
|
64939
64915
|
}),
|
|
@@ -64944,7 +64920,7 @@ var uI = () => {
|
|
|
64944
64920
|
})
|
|
64945
64921
|
]
|
|
64946
64922
|
}) : null;
|
|
64947
|
-
},
|
|
64923
|
+
}, ZL = ({ data: e, context: t }) => {
|
|
64948
64924
|
let [n, r] = h(e?.isStarred ?? !1);
|
|
64949
64925
|
return l(() => {
|
|
64950
64926
|
r(e?.isStarred ?? !1);
|
|
@@ -64957,20 +64933,20 @@ var uI = () => {
|
|
|
64957
64933
|
let a = !n;
|
|
64958
64934
|
r(a), t?.onToggleFavorite?.(e.id, a);
|
|
64959
64935
|
},
|
|
64960
|
-
className: n ? void 0 :
|
|
64936
|
+
className: n ? void 0 : qL.starToggleOff
|
|
64961
64937
|
})
|
|
64962
64938
|
}) : null;
|
|
64963
|
-
},
|
|
64939
|
+
}, QL = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ N("div", {
|
|
64964
64940
|
className: "flex h-full items-center",
|
|
64965
64941
|
children: /* @__PURE__ */ N(cN, { topics: e.topics })
|
|
64966
|
-
}),
|
|
64942
|
+
}), $L = (e) => [
|
|
64967
64943
|
{
|
|
64968
64944
|
headerName: "Name",
|
|
64969
64945
|
flex: 1,
|
|
64970
64946
|
minWidth: 220,
|
|
64971
64947
|
field: "name",
|
|
64972
64948
|
filter: !1,
|
|
64973
|
-
cellRenderer:
|
|
64949
|
+
cellRenderer: XL,
|
|
64974
64950
|
valueGetter: (e) => e.data?.name
|
|
64975
64951
|
},
|
|
64976
64952
|
{
|
|
@@ -64980,7 +64956,7 @@ var uI = () => {
|
|
|
64980
64956
|
field: "type",
|
|
64981
64957
|
filter: !1,
|
|
64982
64958
|
sortable: !1,
|
|
64983
|
-
cellRenderer:
|
|
64959
|
+
cellRenderer: JL,
|
|
64984
64960
|
valueGetter: (e) => e.data?.type
|
|
64985
64961
|
},
|
|
64986
64962
|
{
|
|
@@ -64990,7 +64966,7 @@ var uI = () => {
|
|
|
64990
64966
|
minWidth: 170,
|
|
64991
64967
|
filter: !1,
|
|
64992
64968
|
hide: e === Un.Model,
|
|
64993
|
-
cellRenderer:
|
|
64969
|
+
cellRenderer: YL,
|
|
64994
64970
|
valueGetter: (e) => e.data?.folder
|
|
64995
64971
|
},
|
|
64996
64972
|
{
|
|
@@ -65000,7 +64976,7 @@ var uI = () => {
|
|
|
65000
64976
|
minWidth: 230,
|
|
65001
64977
|
filter: !1,
|
|
65002
64978
|
sortable: !1,
|
|
65003
|
-
cellRenderer:
|
|
64979
|
+
cellRenderer: QL,
|
|
65004
64980
|
valueGetter: (e) => e.data?.topics
|
|
65005
64981
|
},
|
|
65006
64982
|
{
|
|
@@ -65011,14 +64987,14 @@ var uI = () => {
|
|
|
65011
64987
|
filter: !1,
|
|
65012
64988
|
sortable: !1,
|
|
65013
64989
|
resizable: !1,
|
|
65014
|
-
headerClass:
|
|
65015
|
-
cellRenderer:
|
|
64990
|
+
headerClass: qL.favHeader,
|
|
64991
|
+
cellRenderer: ZL
|
|
65016
64992
|
}
|
|
65017
|
-
],
|
|
64993
|
+
], eR = 50, tR = (e) => {
|
|
65018
64994
|
if (!e || e === document.body) return null;
|
|
65019
64995
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
65020
|
-
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e :
|
|
65021
|
-
},
|
|
64996
|
+
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : tR(e.parentElement);
|
|
64997
|
+
}, nR = ({ items: e, type: t, query: n = "", ariaLabel: r = "Catalog", emptyStateTitle: i, styles: a, onToggleFavorite: o, onItemClick: s, stickyHeaderTop: c, selectedItemId: u, credentialsBadgeLoggedOutLabel: d }) => {
|
|
65022
64998
|
if (e.length === 0) return /* @__PURE__ */ N("div", {
|
|
65023
64999
|
className: "flex size-full flex-col items-center justify-center",
|
|
65024
65000
|
children: /* @__PURE__ */ N(jg, { label: i ?? "No results" })
|
|
@@ -65034,17 +65010,17 @@ var uI = () => {
|
|
|
65034
65010
|
"--cat-list-selected-bg": g?.selectedRowBackground,
|
|
65035
65011
|
"--cat-list-selected-check": g?.selectedRowCheckIcon,
|
|
65036
65012
|
...c == null ? {} : { "--list-header-sticky-top": `${c}px` }
|
|
65037
|
-
}, v = m(null), y = m(null), [b, x] = h(() => Math.min(e.length,
|
|
65013
|
+
}, v = m(null), y = m(null), [b, x] = h(() => Math.min(e.length, eR)), S = m(e);
|
|
65038
65014
|
l(() => {
|
|
65039
|
-
S.current !== e && (S.current = e, x(Math.min(e.length,
|
|
65015
|
+
S.current !== e && (S.current = e, x(Math.min(e.length, eR)));
|
|
65040
65016
|
}, [e]), l(() => {
|
|
65041
65017
|
let t = y.current;
|
|
65042
65018
|
if (!t) return;
|
|
65043
|
-
let n =
|
|
65019
|
+
let n = tR(t.parentElement);
|
|
65044
65020
|
if (!n) return;
|
|
65045
65021
|
let r = () => {
|
|
65046
65022
|
let r = n.getBoundingClientRect(), i = t.getBoundingClientRect();
|
|
65047
|
-
i.top < r.bottom && i.bottom > r.top && x((t) => Math.min(e.length, t +
|
|
65023
|
+
i.top < r.bottom && i.bottom > r.top && x((t) => Math.min(e.length, t + eR));
|
|
65048
65024
|
};
|
|
65049
65025
|
return n.addEventListener("scroll", r, { passive: !0 }), r(), () => n.removeEventListener("scroll", r);
|
|
65050
65026
|
}, [e.length]);
|
|
@@ -65057,11 +65033,11 @@ var uI = () => {
|
|
|
65057
65033
|
v.current?.setGridOption("domLayout", e.length > 0 ? "autoHeight" : "normal");
|
|
65058
65034
|
}, [e]), /* @__PURE__ */ N("div", {
|
|
65059
65035
|
style: _,
|
|
65060
|
-
className: Qe("w-full rounded-xl border",
|
|
65036
|
+
className: Qe("w-full rounded-xl border", qL.listContainer),
|
|
65061
65037
|
children: /* @__PURE__ */ P("div", {
|
|
65062
|
-
className: Qe("rounded-xl",
|
|
65038
|
+
className: Qe("rounded-xl", qL.gridClip),
|
|
65063
65039
|
children: [/* @__PURE__ */ N(se, {
|
|
65064
|
-
columnDefs:
|
|
65040
|
+
columnDefs: $L(t),
|
|
65065
65041
|
rowData: C,
|
|
65066
65042
|
getRowId: (e) => e.id,
|
|
65067
65043
|
withoutHeaderBorders: !0,
|
|
@@ -65086,7 +65062,7 @@ var uI = () => {
|
|
|
65086
65062
|
e.column.getColDef().field !== "isStarred" && e.data && s(e.data);
|
|
65087
65063
|
} : void 0,
|
|
65088
65064
|
rowClass: s ? "cursor-pointer" : void 0,
|
|
65089
|
-
getRowClass: (e) => e.data?.id === u ?
|
|
65065
|
+
getRowClass: (e) => e.data?.id === u ? qL.selectedRow : void 0
|
|
65090
65066
|
},
|
|
65091
65067
|
ariaLabel: r
|
|
65092
65068
|
}), b < e.length && /* @__PURE__ */ N("div", {
|
|
@@ -65096,7 +65072,7 @@ var uI = () => {
|
|
|
65096
65072
|
})]
|
|
65097
65073
|
})
|
|
65098
65074
|
});
|
|
65099
|
-
},
|
|
65075
|
+
}, rR = {
|
|
65100
65076
|
filterBtn: "_filterBtn_3zhuq_2",
|
|
65101
65077
|
filterBtnActive: "_filterBtnActive_3zhuq_25",
|
|
65102
65078
|
filterBtnOpen: "_filterBtnOpen_3zhuq_29",
|
|
@@ -65112,13 +65088,13 @@ var uI = () => {
|
|
|
65112
65088
|
divider: "_divider_3zhuq_113",
|
|
65113
65089
|
sectionLabel: "_sectionLabel_3zhuq_117",
|
|
65114
65090
|
footer: "_footer_3zhuq_121"
|
|
65115
|
-
},
|
|
65091
|
+
}, iR = (e, t, n, r, i) => {
|
|
65116
65092
|
let a = e.size > 0;
|
|
65117
65093
|
return n && a ? `${r} · ${e.size}` : n ? r : a ? Sn(e, t, i) : i;
|
|
65118
|
-
},
|
|
65094
|
+
}, aR = (e, t) => {
|
|
65119
65095
|
let n = new Set(t);
|
|
65120
65096
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
65121
|
-
},
|
|
65097
|
+
}, oR = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: a = "My", topicsLabel: o = "Topics", defaultLabel: c = "From", clearLabel: u = "Clear", applyLabel: d = "Apply", typography: f, colors: g }) => {
|
|
65122
65098
|
let _ = (r ?? !1) || e.size > 0, [v, y] = h(!1), b = bi({
|
|
65123
65099
|
"--cat-filter-btn-bg": g?.buttonBackground,
|
|
65124
65100
|
"--cat-filter-btn-border-focus": g?.buttonBorderFocus,
|
|
@@ -65134,7 +65110,7 @@ var uI = () => {
|
|
|
65134
65110
|
"--cat-filter-checkbox-border": g?.checkboxBorder,
|
|
65135
65111
|
"--cat-filter-checkbox-bg": g?.checkboxBackground,
|
|
65136
65112
|
"--cat-filter-section-label": g?.sectionLabel
|
|
65137
|
-
}), x = p(() => n == null ? [] : [...n].sort(), [n]), S =
|
|
65113
|
+
}), x = p(() => n == null ? [] : [...n].sort(), [n]), S = iR(e, n, r, a, c), [C, w] = h(() => new Set(e)), [T, E] = h(r ?? !1);
|
|
65138
65114
|
l(() => {
|
|
65139
65115
|
v && (w(new Set(e)), E(r ?? !1));
|
|
65140
65116
|
}, [
|
|
@@ -65178,7 +65154,7 @@ var uI = () => {
|
|
|
65178
65154
|
"aria-label": c,
|
|
65179
65155
|
tabIndex: -1,
|
|
65180
65156
|
style: b,
|
|
65181
|
-
className: I("min-w-[360px] rounded-xl p-[6px]",
|
|
65157
|
+
className: I("min-w-[360px] rounded-xl p-[6px]", rR.overlay),
|
|
65182
65158
|
onKeyDown: j,
|
|
65183
65159
|
children: [
|
|
65184
65160
|
/* @__PURE__ */ P("div", {
|
|
@@ -65188,32 +65164,32 @@ var uI = () => {
|
|
|
65188
65164
|
ref: (e) => {
|
|
65189
65165
|
te.current[0] = e;
|
|
65190
65166
|
},
|
|
65191
|
-
className: I("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none",
|
|
65167
|
+
className: I("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", rR.row, T && rR.rowChecked),
|
|
65192
65168
|
onClick: () => E(!T),
|
|
65193
65169
|
onKeyDown: ae(() => E(!T)),
|
|
65194
65170
|
children: [/* @__PURE__ */ N("span", {
|
|
65195
|
-
className: I("flex size-5 shrink-0 items-center justify-center rounded-md",
|
|
65171
|
+
className: I("flex size-5 shrink-0 items-center justify-center rounded-md", rR.checkbox, T && rR.checkboxChecked),
|
|
65196
65172
|
"aria-hidden": !0
|
|
65197
65173
|
}), /* @__PURE__ */ N("span", {
|
|
65198
|
-
className: I(
|
|
65174
|
+
className: I(rR.rowLabel, f?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
65199
65175
|
children: a
|
|
65200
65176
|
})]
|
|
65201
65177
|
}),
|
|
65202
65178
|
x.length > 0 && /* @__PURE__ */ P(et, { children: [
|
|
65203
65179
|
/* @__PURE__ */ N("div", {
|
|
65204
65180
|
role: "separator",
|
|
65205
|
-
className: I("my-1 h-px",
|
|
65181
|
+
className: I("my-1 h-px", rR.divider),
|
|
65206
65182
|
"aria-hidden": !0
|
|
65207
65183
|
}),
|
|
65208
65184
|
/* @__PURE__ */ N("div", {
|
|
65209
|
-
className: I("px-[10px] pb-1 pt-[10px]", f?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text",
|
|
65185
|
+
className: I("px-[10px] pb-1 pt-[10px]", f?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", rR.sectionLabel),
|
|
65210
65186
|
"aria-hidden": !0,
|
|
65211
65187
|
children: o
|
|
65212
65188
|
}),
|
|
65213
65189
|
/* @__PURE__ */ N("div", {
|
|
65214
65190
|
className: "flex max-h-[220px] flex-col gap-1 overflow-y-auto",
|
|
65215
65191
|
children: x.map((e, t) => {
|
|
65216
|
-
let n = C.has(e), r = t + 1, i = () => w(
|
|
65192
|
+
let n = C.has(e), r = t + 1, i = () => w(aR(e, C));
|
|
65217
65193
|
return /* @__PURE__ */ P("div", {
|
|
65218
65194
|
role: "menuitemcheckbox",
|
|
65219
65195
|
"aria-checked": n,
|
|
@@ -65221,14 +65197,14 @@ var uI = () => {
|
|
|
65221
65197
|
ref: (e) => {
|
|
65222
65198
|
te.current[r] = e;
|
|
65223
65199
|
},
|
|
65224
|
-
className: I("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none",
|
|
65200
|
+
className: I("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", rR.row, n && rR.rowChecked),
|
|
65225
65201
|
onClick: i,
|
|
65226
65202
|
onKeyDown: ae(i),
|
|
65227
65203
|
children: [/* @__PURE__ */ N("span", {
|
|
65228
|
-
className: I("flex size-5 shrink-0 items-center justify-center rounded-md",
|
|
65204
|
+
className: I("flex size-5 shrink-0 items-center justify-center rounded-md", rR.checkbox, n && rR.checkboxChecked),
|
|
65229
65205
|
"aria-hidden": !0
|
|
65230
65206
|
}), /* @__PURE__ */ N("span", {
|
|
65231
|
-
className:
|
|
65207
|
+
className: rR.rowLabel,
|
|
65232
65208
|
children: e
|
|
65233
65209
|
})]
|
|
65234
65210
|
}, e);
|
|
@@ -65236,7 +65212,7 @@ var uI = () => {
|
|
|
65236
65212
|
})
|
|
65237
65213
|
] }),
|
|
65238
65214
|
/* @__PURE__ */ P("div", {
|
|
65239
|
-
className: I("mt-1 flex items-center px-1 py-3",
|
|
65215
|
+
className: I("mt-1 flex items-center px-1 py-3", rR.footer),
|
|
65240
65216
|
onKeyDown: (e) => {
|
|
65241
65217
|
(e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
|
|
65242
65218
|
},
|
|
@@ -65258,34 +65234,34 @@ var uI = () => {
|
|
|
65258
65234
|
"aria-expanded": v,
|
|
65259
65235
|
onKeyDown: ie,
|
|
65260
65236
|
style: b,
|
|
65261
|
-
className: I("flex h-[50px] shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-xl px-[18px]",
|
|
65237
|
+
className: I("flex h-[50px] shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-xl px-[18px]", rR.filterBtn, _ && rR.filterBtnActive, v && rR.filterBtnOpen),
|
|
65262
65238
|
children: [
|
|
65263
65239
|
/* @__PURE__ */ N(wt, {
|
|
65264
65240
|
size: D.SM,
|
|
65265
65241
|
strokeWidth: 1.8,
|
|
65266
|
-
className: I("shrink-0",
|
|
65242
|
+
className: I("shrink-0", rR.filterBtnFunnel),
|
|
65267
65243
|
"aria-hidden": !0
|
|
65268
65244
|
}),
|
|
65269
65245
|
/* @__PURE__ */ N("span", {
|
|
65270
|
-
className: I(
|
|
65246
|
+
className: I(rR.filterBtnLabel, f?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
65271
65247
|
children: S
|
|
65272
65248
|
}),
|
|
65273
65249
|
/* @__PURE__ */ N(ct, {
|
|
65274
65250
|
size: 14,
|
|
65275
65251
|
strokeWidth: 2.2,
|
|
65276
|
-
className: I("shrink-0 transition-transform duration-150",
|
|
65252
|
+
className: I("shrink-0 transition-transform duration-150", rR.filterBtnChevron, v && "rotate-180"),
|
|
65277
65253
|
"aria-hidden": !0
|
|
65278
65254
|
})
|
|
65279
65255
|
]
|
|
65280
65256
|
})
|
|
65281
65257
|
});
|
|
65282
|
-
},
|
|
65258
|
+
}, sR = {
|
|
65283
65259
|
section: "_section_1tk10_1",
|
|
65284
65260
|
divider: "_divider_1tk10_5",
|
|
65285
65261
|
viewToggleWrapper: "_viewToggleWrapper_1tk10_9",
|
|
65286
65262
|
viewToggleActive: "_viewToggleActive_1tk10_14",
|
|
65287
65263
|
viewToggleInactive: "_viewToggleInactive_1tk10_19"
|
|
65288
|
-
},
|
|
65264
|
+
}, cR = ({ 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, sortOptions: d, filters: f, onFiltersChange: p, filterValues: m, isMyAppsActive: h, onMyAppsChange: g, filterFromLabel: _, filterMyAppsLabel: x, filterTopicsLabel: S }) => {
|
|
65289
65265
|
let C = i?.typography?.titleClassName ?? "dial-body-semi-text", w = i?.typography?.countClassName ?? "dial-tiny-semi-text", T = d?.find((e) => e.key === u)?.label ?? "";
|
|
65290
65266
|
return /* @__PURE__ */ P("div", {
|
|
65291
65267
|
className: "flex flex-col gap-3",
|
|
@@ -65305,7 +65281,7 @@ var uI = () => {
|
|
|
65305
65281
|
}), /* @__PURE__ */ P("div", {
|
|
65306
65282
|
className: "ms-auto flex items-center gap-2",
|
|
65307
65283
|
children: [/* @__PURE__ */ N("div", {
|
|
65308
|
-
className: I("flex items-center rounded-full border p-[3px]",
|
|
65284
|
+
className: I("flex items-center rounded-full border p-[3px]", sR.viewToggleWrapper),
|
|
65309
65285
|
children: [vn.Grid, vn.List].map((e) => {
|
|
65310
65286
|
let r = t === e;
|
|
65311
65287
|
return /* @__PURE__ */ N("button", {
|
|
@@ -65313,11 +65289,11 @@ var uI = () => {
|
|
|
65313
65289
|
"aria-label": e === vn.Grid ? c : l,
|
|
65314
65290
|
"aria-pressed": r,
|
|
65315
65291
|
onClick: () => n(e),
|
|
65316
|
-
className: I("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 ? I("shadow-sm",
|
|
65292
|
+
className: I("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 ? I("shadow-sm", sR.viewToggleActive) : sR.viewToggleInactive),
|
|
65317
65293
|
children: e === vn.Grid ? /* @__PURE__ */ N(kt, { size: D.SM }) : /* @__PURE__ */ N(At, { size: D.SM })
|
|
65318
65294
|
}, e);
|
|
65319
65295
|
})
|
|
65320
|
-
}), d != null && d.length > 0 && /* @__PURE__ */ P(et, { children: [/* @__PURE__ */ N("div", { className: I("h-4 w-px shrink-0",
|
|
65296
|
+
}), d != null && d.length > 0 && /* @__PURE__ */ P(et, { children: [/* @__PURE__ */ N("div", { className: I("h-4 w-px shrink-0", sR.divider) }), /* @__PURE__ */ N(y, {
|
|
65321
65297
|
label: T,
|
|
65322
65298
|
variant: b.Primary,
|
|
65323
65299
|
appearance: v.Ghost,
|
|
@@ -65338,7 +65314,7 @@ var uI = () => {
|
|
|
65338
65314
|
placeholder: s,
|
|
65339
65315
|
"aria-label": s
|
|
65340
65316
|
})
|
|
65341
|
-
}), /* @__PURE__ */ N(
|
|
65317
|
+
}), /* @__PURE__ */ N(oR, {
|
|
65342
65318
|
checked: f ?? /* @__PURE__ */ new Set(),
|
|
65343
65319
|
onChange: p ?? (() => void 0),
|
|
65344
65320
|
values: m,
|
|
@@ -65351,7 +65327,7 @@ var uI = () => {
|
|
|
65351
65327
|
})]
|
|
65352
65328
|
})]
|
|
65353
65329
|
});
|
|
65354
|
-
},
|
|
65330
|
+
}, lR = ({ 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, sortOptions: h, ...g }) => {
|
|
65355
65331
|
let _ = {
|
|
65356
65332
|
"--cat-browse-divider": r?.colors?.divider,
|
|
65357
65333
|
"--cat-view-toggle-bg": r?.colors?.viewToggleBackground,
|
|
@@ -65362,9 +65338,9 @@ var uI = () => {
|
|
|
65362
65338
|
"--cat-view-toggle-text-hover": r?.colors?.viewToggleTextHover
|
|
65363
65339
|
};
|
|
65364
65340
|
return /* @__PURE__ */ N("section", {
|
|
65365
|
-
className: I("flex-shrink-0 px-4",
|
|
65341
|
+
className: I("flex-shrink-0 px-4", sR.section),
|
|
65366
65342
|
style: _,
|
|
65367
|
-
children: /* @__PURE__ */ N(
|
|
65343
|
+
children: /* @__PURE__ */ N(cR, {
|
|
65368
65344
|
styles: r,
|
|
65369
65345
|
query: e,
|
|
65370
65346
|
onQueryChange: t,
|
|
@@ -65384,11 +65360,11 @@ var uI = () => {
|
|
|
65384
65360
|
...g
|
|
65385
65361
|
})
|
|
65386
65362
|
});
|
|
65387
|
-
},
|
|
65363
|
+
}, uR = {
|
|
65388
65364
|
root: "_root_1h83l_1",
|
|
65389
65365
|
heading: "_heading_1h83l_5",
|
|
65390
65366
|
headingTitle: "_headingTitle_1h83l_9"
|
|
65391
|
-
},
|
|
65367
|
+
}, dR = ({ label: e, options: t, onClick: n }) => {
|
|
65392
65368
|
let r = m(null);
|
|
65393
65369
|
return t?.length ? /* @__PURE__ */ N("div", {
|
|
65394
65370
|
ref: r,
|
|
@@ -65404,7 +65380,7 @@ var uI = () => {
|
|
|
65404
65380
|
iconBefore: /* @__PURE__ */ N(It, { size: D.SM }),
|
|
65405
65381
|
onClick: n
|
|
65406
65382
|
});
|
|
65407
|
-
},
|
|
65383
|
+
}, fR = ({ items: e, favorites: t, titles: n, onToggleFavorite: r, onUseInChat: i, isPrimaryActionVisible: a, onShare: o, isPublishVisible: c, getPublishHistory: u, publishFolderItems: d, publishExpandedPaths: f, onPublishExpandedPathsChange: g, publishLoadingPaths: _, hasPublishWriteAccess: v, onPublish: y, onPublishSuccess: b, onPublishError: x, onCreatePublishFolder: S, publishLabels: C, ruleSourceOptions: w, onFetchExistingRules: T, shareOverlay: E, isShareVisible: D, onFetchDetails: O, onEdit: k, onDownload: ee, isDownloadVisible: te, isDownloadPrimary: ne, onLoadContentFile: A, onLoadContentFilePreview: re, renderContentFilePreview: ie, onDelete: j, onUnshare: ae, isUnshareVisible: oe, onRevokeShare: se, onFetchRecipientsCount: ce, isRevokeShareVisible: le, onLogin: ue, onLogout: de, onCreateClick: fe, createOptions: pe, hideCreateButton: M = !1, hidePageTitle: me = !1, initialViewMode: he = vn.Grid, selectedItemId: ge, onCardClick: _e, isLoading: ve, styles: ye, detailsTexts: be, initialDetailsItemId: xe, sortKey: Se, onSortChange: Ce, filterTopics: we, onFilterTopicsChange: Te, isMyAppsActive: Ee, onMyAppsActiveChange: De, activeTab: Oe, onActiveTabChange: ke }) => {
|
|
65408
65384
|
let { typography: Ae } = ye ?? {}, je = qM(ye), Me = n?.pageTitle ?? "Catalog", Ne = n?.createLabel ?? "Create", Pe = n?.favoritesTitle ?? "Your favorites", Fe = n?.browseTitle ?? "Browse", Ie = n?.searchPlaceholder ?? "Search models, tools, agents…", Le = n?.noResultsTitle ?? ((e) => `No results for "${e}"`), Re = n?.featuredLabel ?? "Featured", ze = n?.gridViewLabel ?? "Grid view", Be = n?.listViewLabel ?? "List view", Ve = n?.ariaLabel ?? "Catalog", He = [
|
|
65409
65385
|
{
|
|
65410
65386
|
key: yn.RecentlyUpdated,
|
|
@@ -65508,17 +65484,17 @@ var uI = () => {
|
|
|
65508
65484
|
children: /* @__PURE__ */ N(Ke, {})
|
|
65509
65485
|
}) : /* @__PURE__ */ P("section", {
|
|
65510
65486
|
"aria-label": Ve,
|
|
65511
|
-
className: I("flex size-full min-h-0 flex-1 flex-col",
|
|
65487
|
+
className: I("flex size-full min-h-0 flex-1 flex-col", uR.root),
|
|
65512
65488
|
style: je,
|
|
65513
65489
|
children: [
|
|
65514
65490
|
(!me || !M) && /* @__PURE__ */ N("div", {
|
|
65515
|
-
className: I("shrink-0",
|
|
65491
|
+
className: I("shrink-0", uR.heading),
|
|
65516
65492
|
children: /* @__PURE__ */ P("div", {
|
|
65517
65493
|
className: "flex h-[64px] w-full items-center justify-between px-8",
|
|
65518
65494
|
children: [!me && /* @__PURE__ */ N("h1", {
|
|
65519
|
-
className: I(Ae?.pageHeadingFontClassName ?? "dial-display2-text",
|
|
65495
|
+
className: I(Ae?.pageHeadingFontClassName ?? "dial-display2-text", uR.headingTitle),
|
|
65520
65496
|
children: Me
|
|
65521
|
-
}), !M && /* @__PURE__ */ N(
|
|
65497
|
+
}), !M && /* @__PURE__ */ N(dR, {
|
|
65522
65498
|
label: Ne,
|
|
65523
65499
|
options: pe,
|
|
65524
65500
|
onClick: fe
|
|
@@ -65530,7 +65506,7 @@ var uI = () => {
|
|
|
65530
65506
|
children: [
|
|
65531
65507
|
_t && /* @__PURE__ */ N("div", {
|
|
65532
65508
|
className: "w-full px-8",
|
|
65533
|
-
children: /* @__PURE__ */ N(
|
|
65509
|
+
children: /* @__PURE__ */ N(KL, {
|
|
65534
65510
|
items: t,
|
|
65535
65511
|
totalCount: t.length,
|
|
65536
65512
|
title: Pe,
|
|
@@ -65544,7 +65520,7 @@ var uI = () => {
|
|
|
65544
65520
|
}),
|
|
65545
65521
|
/* @__PURE__ */ N("div", {
|
|
65546
65522
|
className: "w-full px-4 pt-6",
|
|
65547
|
-
children: /* @__PURE__ */ N(
|
|
65523
|
+
children: /* @__PURE__ */ N(lR, {
|
|
65548
65524
|
totalCount: zt.length,
|
|
65549
65525
|
viewMode: Ge,
|
|
65550
65526
|
onViewModeChange: Ht,
|
|
@@ -65592,7 +65568,7 @@ var uI = () => {
|
|
|
65592
65568
|
})
|
|
65593
65569
|
}), Ye && /* @__PURE__ */ N("div", {
|
|
65594
65570
|
className: I("pb-8", Ge !== vn.List && "hidden", Bt.length === 0 && "h-full"),
|
|
65595
|
-
children: /* @__PURE__ */ N(
|
|
65571
|
+
children: /* @__PURE__ */ N(nR, {
|
|
65596
65572
|
type: ht,
|
|
65597
65573
|
items: Bt,
|
|
65598
65574
|
query: Ue,
|
|
@@ -65608,7 +65584,7 @@ var uI = () => {
|
|
|
65608
65584
|
})
|
|
65609
65585
|
]
|
|
65610
65586
|
}),
|
|
65611
|
-
Ft != null && /* @__PURE__ */ N(
|
|
65587
|
+
Ft != null && /* @__PURE__ */ N(VL, {
|
|
65612
65588
|
item: Ft,
|
|
65613
65589
|
isOpen: Ct,
|
|
65614
65590
|
isStarred: Vt,
|
|
@@ -65655,4 +65631,4 @@ var uI = () => {
|
|
|
65655
65631
|
});
|
|
65656
65632
|
};
|
|
65657
65633
|
//#endregion
|
|
65658
|
-
export { $M as AppIdentity, lN as Card, dN as CardGrid, uN as CardRowRenderer,
|
|
65634
|
+
export { $M as AppIdentity, lN as Card, dN as CardGrid, uN as CardRowRenderer, fR as Catalog, bn as CatalogContentNodeType, xn as CatalogContentPreviewType, cn as CatalogDetailsTab, yn as CatalogSortKey, vn as CatalogViewMode, sn as CodeLanguage, pL as ContentTab, pn as CredentialStatus, rN as CredentialsBadge, gn as CredentialsBadgeState, mn as CredentialsLevel, hn as CredentialsUiState, dn as DeploymentSize, ln as DetailsConfirmationKind, un as DetailsConfirmationVariant, UL as FavoriteCard, KL as Favorites, oR as Filter, xe as FolderPath, RI as InfoCard, nR as ListView, lR as Toolbar, fn as ToolsetAuthenticationType, oN as TopicTag, Tn as filterCatalogItems, An as getCredentialsBadgeState, kn as getCredentialsUiState, jn as getSignedInLevel, En as sortCatalogItems, Dn as useFavColumns, XM as useScrollVirtualizer };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-catalog",
|
|
3
3
|
"description": "Marketplace catalog component for browsing models, tools, and assistants with search, filter, and sort",
|
|
4
|
-
"version": "1.1.0-dev.
|
|
4
|
+
"version": "1.1.0-dev.229",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"react": "^19.0.0",
|
|
21
21
|
"@tabler/icons-react": "^3.0.0",
|
|
22
|
-
"@epam/ai-dial-chat-shared": "1.1.0-dev.
|
|
23
|
-
"@epam/ai-dial-publish-panel": "1.1.0-dev.
|
|
22
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.229",
|
|
23
|
+
"@epam/ai-dial-publish-panel": "1.1.0-dev.229",
|
|
24
24
|
"ag-grid-community": "35.3.0",
|
|
25
25
|
"@epam/ai-dial-ui-kit": "^0.13.0-dev.26"
|
|
26
26
|
},
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/** A run of consecutive bullet items within an about-content block. */
|
|
2
|
-
export interface AboutBulletRun {
|
|
3
|
-
kind: 'bullets';
|
|
4
|
-
items: string[];
|
|
5
|
-
}
|
|
6
|
-
/** A plain-text paragraph within an about-content block. */
|
|
7
|
-
export interface AboutTextRun {
|
|
8
|
-
kind: 'text';
|
|
9
|
-
text: string;
|
|
10
|
-
}
|
|
11
|
-
/** A single content run — either a list of bullets or a paragraph of text. */
|
|
12
|
-
export type AboutRun = AboutBulletRun | AboutTextRun;
|
|
13
|
-
/** A parsed section of an item's about-page content. */
|
|
14
|
-
export interface AboutBlock {
|
|
15
|
-
/** Optional section heading (e.g. "Capabilities", "Pricing"). */
|
|
16
|
-
heading?: string;
|
|
17
|
-
/** Ordered list of content runs inside this block. */
|
|
18
|
-
runs: AboutRun[];
|
|
19
|
-
}
|
|
20
|
-
/** Parses a plain-text about description into structured `AboutBlock[]` for rendering. */
|
|
21
|
-
export declare const parseAboutContent: (content: string) => AboutBlock[];
|
|
22
|
-
//# sourceMappingURL=parse-about-content.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parse-about-content.d.ts","sourceRoot":"","sources":["../../src/utils/parse-about-content.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,4DAA4D;AAC5D,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,8EAA8E;AAC9E,MAAM,MAAM,QAAQ,GAAG,cAAc,GAAG,YAAY,CAAC;AAErD,wDAAwD;AACxD,MAAM,WAAW,UAAU;IACzB,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,IAAI,EAAE,QAAQ,EAAE,CAAC;CAClB;AAED,0FAA0F;AAC1F,eAAO,MAAM,iBAAiB,GAAI,SAAS,MAAM,KAAG,UAAU,EAgCxD,CAAC"}
|