@epam/ai-dial-catalog 1.1.0-dev.420 → 1.1.0-dev.423
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/index.js +506 -504
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -27394,7 +27394,7 @@ var dT = 120, fT = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
27394
27394
|
"katex-error"
|
|
27395
27395
|
]]
|
|
27396
27396
|
}
|
|
27397
|
-
}], cE = [], lE = /\$\$|\\\(|\\\[/, uE = (e) => lE.test(e), dE = {}, fE = {
|
|
27397
|
+
}], cE = [], lE = /\$\$|\\\(|\\\[/, uE = (e) => lE.test(e), dE = {}, fE = (e) => e == null ? Ty : (t) => Ty(e(t)), pE = {
|
|
27398
27398
|
li: ({ children: e }) => /* @__PURE__ */ z("li", {
|
|
27399
27399
|
className: "mb-1.5 last:mb-0",
|
|
27400
27400
|
children: e
|
|
@@ -27404,17 +27404,17 @@ var dT = 120, fT = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
27404
27404
|
e,
|
|
27405
27405
|
"</cit>"
|
|
27406
27406
|
] })
|
|
27407
|
-
},
|
|
27407
|
+
}, mE = (e) => {
|
|
27408
27408
|
let t = e?.properties?.className;
|
|
27409
27409
|
return !Array.isArray(t) || !t.includes("katex") ? !1 : (e?.children ?? []).some((e) => e.type === "element" && e.tagName === "math" && e.properties?.display === "block");
|
|
27410
|
-
},
|
|
27410
|
+
}, hE = {
|
|
27411
27411
|
left: "text-start",
|
|
27412
27412
|
center: "text-center",
|
|
27413
27413
|
right: "text-end"
|
|
27414
|
-
},
|
|
27414
|
+
}, gE = (e) => {
|
|
27415
27415
|
let t = e?.properties?.align;
|
|
27416
|
-
return typeof t == "string" ?
|
|
27417
|
-
},
|
|
27416
|
+
return typeof t == "string" ? hE[t] : void 0;
|
|
27417
|
+
}, _E = (e) => e ? e.type === "text" ? e.value ?? "" : (e.children ?? []).map(_E).join("") : "", vE = (e, { isStreaming: t, codeBlockCopyLabel: n, codeBlockCopiedLabel: r, codeBlockTheme: i, tableActionLabels: a, tableDownloadFilename: o, tableOnOpenInCanvas: s, tableScrollRegionAriaLabel: c, mathScrollRegionAriaLabel: l }) => ({
|
|
27418
27418
|
h1: ({ children: t }) => /* @__PURE__ */ z("h1", {
|
|
27419
27419
|
className: e.h1,
|
|
27420
27420
|
children: t
|
|
@@ -27494,7 +27494,7 @@ var dT = 120, fT = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
27494
27494
|
children: t
|
|
27495
27495
|
}),
|
|
27496
27496
|
input: ({ type: e, checked: t }) => e === "checkbox" ? /* @__PURE__ */ z(nE, { checked: t ?? !1 }) : null,
|
|
27497
|
-
span: ({ children: t, node: n, ...r }) =>
|
|
27497
|
+
span: ({ children: t, node: n, ...r }) => mE(n) ? /* @__PURE__ */ z(UT, {
|
|
27498
27498
|
className: e.mathBlock,
|
|
27499
27499
|
scrollRegionAriaLabel: l,
|
|
27500
27500
|
children: t
|
|
@@ -27512,7 +27512,7 @@ var dT = 120, fT = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
27512
27512
|
children: n
|
|
27513
27513
|
}),
|
|
27514
27514
|
tr: ({ children: e, node: t }) => {
|
|
27515
|
-
let n = t?.children.filter((e) => e.type === "element") ?? [], r = n.some((e) => e.tagName === "th"), i = n.filter((e) =>
|
|
27515
|
+
let n = t?.children.filter((e) => e.type === "element") ?? [], r = n.some((e) => e.tagName === "th"), i = n.filter((e) => _E(e).trim().length > 0).length, a = !r && n.length > 1 && i === 1;
|
|
27516
27516
|
return /* @__PURE__ */ z("tr", {
|
|
27517
27517
|
className: W(WT.row, a && WT.sectionRow),
|
|
27518
27518
|
children: e
|
|
@@ -27520,87 +27520,88 @@ var dT = 120, fT = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
27520
27520
|
},
|
|
27521
27521
|
th: ({ children: t, node: n }) => /* @__PURE__ */ z("th", {
|
|
27522
27522
|
scope: "col",
|
|
27523
|
-
className: W("sticky top-0 z-[2] max-w-96 whitespace-normal break-words px-3 py-2.5 text-start",
|
|
27523
|
+
className: W("sticky top-0 z-[2] max-w-96 whitespace-normal break-words px-3 py-2.5 text-start", gE(n), WT.rowDivider, WT.tableHeaderCell, e.tableHeaderFont ?? "dial-tiny-lead-semi-text", e.tableCell, e.tableHeader),
|
|
27524
27524
|
children: t
|
|
27525
27525
|
}),
|
|
27526
27526
|
td: ({ children: t, node: n }) => /* @__PURE__ */ z("td", {
|
|
27527
|
-
className: W("max-w-96 whitespace-normal px-3 py-2.5 align-top [overflow-wrap:anywhere]",
|
|
27527
|
+
className: W("max-w-96 whitespace-normal px-3 py-2.5 align-top [overflow-wrap:anywhere]", gE(n), WT.rowDivider, e.tableBodyCell, e.tableCell),
|
|
27528
27528
|
children: t
|
|
27529
27529
|
})
|
|
27530
|
-
}),
|
|
27531
|
-
let
|
|
27530
|
+
}), yE = ut(({ content: e, containerClassName: t, isStreaming: n, streamCharactersPerSecond: r, classNames: i = dE, components: a, urlTransform: o, rehypePlugins: s = cE, thinkingLabel: c = "Thinking", codeBlockCopyLabel: l, codeBlockCopiedLabel: u, codeBlockTheme: d, colors: f, tableActionLabels: p, tableDownloadFilename: m, tableOnOpenInCanvas: h, tableScrollRegionAriaLabel: g, mathScrollRegionAriaLabel: _ }) => {
|
|
27531
|
+
let v = _T(e, n, r), y = I(() => DT(v), [v]), b = I(() => uE(y), [y]), [x, S] = R(null);
|
|
27532
27532
|
F(() => {
|
|
27533
|
-
if (!
|
|
27533
|
+
if (!b || x) return;
|
|
27534
27534
|
let e = !1;
|
|
27535
27535
|
return (async () => {
|
|
27536
27536
|
let [t] = await Promise.all([import("./rehype-katex-Da1z0EAE-BhD6x-qn.js"), Promise.resolve({ })]);
|
|
27537
|
-
e ||
|
|
27537
|
+
e || S([t.default, {
|
|
27538
27538
|
output: "mathml",
|
|
27539
27539
|
strict: !1
|
|
27540
27540
|
}]);
|
|
27541
27541
|
})(), () => {
|
|
27542
27542
|
e = !0;
|
|
27543
27543
|
};
|
|
27544
|
-
}, [
|
|
27545
|
-
let
|
|
27544
|
+
}, [b, x]);
|
|
27545
|
+
let C = I(() => [
|
|
27546
27546
|
...oE,
|
|
27547
|
-
...
|
|
27547
|
+
...x ? [x] : [],
|
|
27548
27548
|
sE,
|
|
27549
|
-
...
|
|
27550
|
-
], [
|
|
27551
|
-
"--cm-thinking-inverted":
|
|
27552
|
-
"--cm-thinking-secondary":
|
|
27553
|
-
"--cm-markdown-border":
|
|
27554
|
-
"--cm-blockquote-border":
|
|
27555
|
-
"--cm-blockquote-text":
|
|
27556
|
-
"--cm-link-text":
|
|
27557
|
-
"--cm-link-focus":
|
|
27558
|
-
"--cm-table-header-text":
|
|
27559
|
-
"--cm-h6-text":
|
|
27560
|
-
"--cm-code-inline-bg":
|
|
27561
|
-
"--cm-code-inline-text":
|
|
27562
|
-
}),
|
|
27563
|
-
...
|
|
27549
|
+
...s
|
|
27550
|
+
], [x, s]), w = is({
|
|
27551
|
+
"--cm-thinking-inverted": f?.thinkingPrimary,
|
|
27552
|
+
"--cm-thinking-secondary": f?.thinkingSecondary,
|
|
27553
|
+
"--cm-markdown-border": f?.border,
|
|
27554
|
+
"--cm-blockquote-border": f?.blockquoteBorder,
|
|
27555
|
+
"--cm-blockquote-text": f?.blockquoteText,
|
|
27556
|
+
"--cm-link-text": f?.linkText,
|
|
27557
|
+
"--cm-link-focus": f?.linkFocus,
|
|
27558
|
+
"--cm-table-header-text": f?.tableHeaderText,
|
|
27559
|
+
"--cm-h6-text": f?.headingSixText,
|
|
27560
|
+
"--cm-code-inline-bg": f?.inlineCodeBackground,
|
|
27561
|
+
"--cm-code-inline-text": f?.inlineCodeText
|
|
27562
|
+
}), T = I(() => fE(o), [o]), E = I(() => ({
|
|
27563
|
+
...vE(i, {
|
|
27564
27564
|
isStreaming: n,
|
|
27565
|
-
codeBlockCopyLabel:
|
|
27566
|
-
codeBlockCopiedLabel:
|
|
27567
|
-
codeBlockTheme:
|
|
27568
|
-
tableActionLabels:
|
|
27569
|
-
tableDownloadFilename:
|
|
27570
|
-
tableOnOpenInCanvas:
|
|
27571
|
-
tableScrollRegionAriaLabel:
|
|
27572
|
-
mathScrollRegionAriaLabel:
|
|
27565
|
+
codeBlockCopyLabel: l,
|
|
27566
|
+
codeBlockCopiedLabel: u,
|
|
27567
|
+
codeBlockTheme: d,
|
|
27568
|
+
tableActionLabels: p,
|
|
27569
|
+
tableDownloadFilename: m,
|
|
27570
|
+
tableOnOpenInCanvas: h,
|
|
27571
|
+
tableScrollRegionAriaLabel: g,
|
|
27572
|
+
mathScrollRegionAriaLabel: _
|
|
27573
27573
|
}),
|
|
27574
|
-
...
|
|
27574
|
+
...pE,
|
|
27575
27575
|
...a
|
|
27576
27576
|
}), [
|
|
27577
27577
|
i,
|
|
27578
27578
|
n,
|
|
27579
|
-
c,
|
|
27580
27579
|
l,
|
|
27581
27580
|
u,
|
|
27582
|
-
|
|
27581
|
+
d,
|
|
27583
27582
|
p,
|
|
27584
27583
|
m,
|
|
27585
27584
|
h,
|
|
27586
27585
|
g,
|
|
27586
|
+
_,
|
|
27587
27587
|
a
|
|
27588
27588
|
]);
|
|
27589
|
-
return n && !
|
|
27589
|
+
return n && !v ? /* @__PURE__ */ z("span", {
|
|
27590
27590
|
className: zT.thinking,
|
|
27591
|
-
style:
|
|
27592
|
-
children:
|
|
27591
|
+
style: w,
|
|
27592
|
+
children: c
|
|
27593
27593
|
}) : /* @__PURE__ */ z("div", {
|
|
27594
|
-
style:
|
|
27594
|
+
style: w,
|
|
27595
27595
|
className: t,
|
|
27596
27596
|
children: /* @__PURE__ */ z(xy, {
|
|
27597
27597
|
remarkPlugins: rE,
|
|
27598
|
-
rehypePlugins:
|
|
27599
|
-
components:
|
|
27600
|
-
|
|
27598
|
+
rehypePlugins: C,
|
|
27599
|
+
components: E,
|
|
27600
|
+
urlTransform: T,
|
|
27601
|
+
children: y
|
|
27601
27602
|
})
|
|
27602
27603
|
});
|
|
27603
|
-
}),
|
|
27604
|
+
}), bE = {
|
|
27604
27605
|
h1: "dial-h1-text mb-3 mt-6 first:mt-0 [text-wrap:balance]",
|
|
27605
27606
|
h2: "dial-h2-text mb-2 mt-5 first:mt-0 [text-wrap:balance]",
|
|
27606
27607
|
h3: "dial-h3-text mb-2 mt-4 first:mt-0 [text-wrap:balance]",
|
|
@@ -27616,23 +27617,24 @@ var dT = 120, fT = () => typeof window < "u" && window.matchMedia?.("(prefers-re
|
|
|
27616
27617
|
tableWrapper: "my-4",
|
|
27617
27618
|
mathBlock: "my-4"
|
|
27618
27619
|
};
|
|
27619
|
-
({ ...
|
|
27620
|
+
({ ...bE }), ut(({ content: e, isStreaming: t, thinkingLabel: n, components: r, urlTransform: i, codeBlockCopyLabel: a, codeBlockCopiedLabel: o, codeBlockTheme: s, tableActionLabels: c, tableDownloadFilename: l, tableOnOpenInCanvas: u, tableScrollRegionAriaLabel: d, classNames: f = bE }) => /* @__PURE__ */ z(yE, {
|
|
27620
27621
|
content: e,
|
|
27621
27622
|
isStreaming: t,
|
|
27622
27623
|
thinkingLabel: n,
|
|
27623
27624
|
components: r,
|
|
27624
|
-
|
|
27625
|
-
|
|
27626
|
-
|
|
27627
|
-
|
|
27628
|
-
|
|
27629
|
-
|
|
27630
|
-
|
|
27631
|
-
|
|
27625
|
+
urlTransform: i,
|
|
27626
|
+
codeBlockCopyLabel: a,
|
|
27627
|
+
codeBlockCopiedLabel: o,
|
|
27628
|
+
codeBlockTheme: s,
|
|
27629
|
+
tableActionLabels: c,
|
|
27630
|
+
tableDownloadFilename: l,
|
|
27631
|
+
tableOnOpenInCanvas: u,
|
|
27632
|
+
tableScrollRegionAriaLabel: d,
|
|
27633
|
+
classNames: f
|
|
27632
27634
|
}));
|
|
27633
|
-
var
|
|
27635
|
+
var xE = [sv], SE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(yE, {
|
|
27634
27636
|
content: e,
|
|
27635
|
-
rehypePlugins:
|
|
27637
|
+
rehypePlugins: xE,
|
|
27636
27638
|
classNames: {
|
|
27637
27639
|
h1: t,
|
|
27638
27640
|
h2: t,
|
|
@@ -27641,65 +27643,65 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
27641
27643
|
h5: t,
|
|
27642
27644
|
h6: t
|
|
27643
27645
|
}
|
|
27644
|
-
}),
|
|
27646
|
+
}), CE = {
|
|
27645
27647
|
[Da.Model]: "Models",
|
|
27646
27648
|
[Da.Agent]: "Agents",
|
|
27647
27649
|
[Da.Toolset]: "Toolsets",
|
|
27648
27650
|
[Da.Prompt]: "Prompts",
|
|
27649
27651
|
[Da.Skill]: "Skills"
|
|
27650
|
-
},
|
|
27652
|
+
}, wE = [
|
|
27651
27653
|
Da.Model,
|
|
27652
27654
|
Da.Agent,
|
|
27653
27655
|
Da.Toolset,
|
|
27654
27656
|
Da.Skill,
|
|
27655
27657
|
Da.Prompt
|
|
27656
|
-
],
|
|
27658
|
+
], TE = (e, t) => {
|
|
27657
27659
|
let n = {
|
|
27658
|
-
...
|
|
27660
|
+
...CE,
|
|
27659
27661
|
...t
|
|
27660
27662
|
}, r = new Set(e.map((e) => e.type));
|
|
27661
|
-
return
|
|
27663
|
+
return wE.filter((e) => r.has(e)).map((e) => ({
|
|
27662
27664
|
id: e,
|
|
27663
27665
|
label: n[e] ?? e
|
|
27664
27666
|
}));
|
|
27665
|
-
},
|
|
27667
|
+
}, EE = () => {
|
|
27666
27668
|
let [e, t] = R(() => window.innerWidth);
|
|
27667
27669
|
return F(() => {
|
|
27668
27670
|
let e = () => t(window.innerWidth);
|
|
27669
27671
|
return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
27670
27672
|
}, []), e >= 1024 ? 4 : e >= 640 ? 2 : 1;
|
|
27671
|
-
},
|
|
27672
|
-
let t =
|
|
27673
|
+
}, DE = (e) => e === jn.SignedIn, OE = (e) => {
|
|
27674
|
+
let t = DE(e.userStatus), n = DE(e.globalStatus);
|
|
27673
27675
|
return e.isManageableByAdmin ? Nn.ManageCredentials : e.isPublic && !t ? Nn.LoginWithMyCreds : !t && !n ? Nn.LogIn : Nn.LogOut;
|
|
27674
|
-
},
|
|
27676
|
+
}, kE = (e) => {
|
|
27675
27677
|
if (e.authenticationType === An.None) return;
|
|
27676
|
-
let t =
|
|
27678
|
+
let t = DE(e.userStatus), n = DE(e.globalStatus);
|
|
27677
27679
|
return !t && !n ? Pn.LoggedOut : void 0;
|
|
27678
|
-
},
|
|
27679
|
-
if (e.isManageableByAdmin) return
|
|
27680
|
-
if (
|
|
27681
|
-
},
|
|
27680
|
+
}, AE = (e) => DE(e.userStatus) ? Mn.User : Mn.Global, jE = (e) => {
|
|
27681
|
+
if (e.isManageableByAdmin) return DE(e.userStatus) ? Fn.PersonalCredentialsActive : DE(e.globalStatus) ? Fn.OrgCredentialsActive : void 0;
|
|
27682
|
+
if (DE(e.globalStatus) && e.isPublic && !DE(e.userStatus)) return Fn.UsingOrgCredentials;
|
|
27683
|
+
}, ME = (e) => {
|
|
27682
27684
|
let { colors: t } = e ?? {};
|
|
27683
27685
|
return is({
|
|
27684
27686
|
"--cat-bg": t?.background,
|
|
27685
27687
|
"--cat-heading-title-text": t?.headingTitleText
|
|
27686
27688
|
});
|
|
27687
|
-
},
|
|
27689
|
+
}, NE = 1180, PE = (e) => e >= 1280 ? 4 : e >= 966 ? 3 : e >= 620 ? 2 : 1, FE = (e) => {
|
|
27688
27690
|
if (!e || e === document.body) return document.documentElement;
|
|
27689
27691
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
27690
|
-
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e :
|
|
27691
|
-
},
|
|
27692
|
+
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : FE(e.parentElement);
|
|
27693
|
+
}, IE = 10, LE = 10, RE = 30, zE = (e, t, n = IE) => {
|
|
27692
27694
|
let r = L(null), [i, a] = R({
|
|
27693
27695
|
start: 0,
|
|
27694
|
-
end:
|
|
27696
|
+
end: RE
|
|
27695
27697
|
});
|
|
27696
27698
|
F(() => {
|
|
27697
27699
|
let i = r.current;
|
|
27698
27700
|
if (!i) return;
|
|
27699
|
-
let o =
|
|
27701
|
+
let o = FE(i.parentElement), s = () => {
|
|
27700
27702
|
let r = o.clientHeight;
|
|
27701
27703
|
if (r === 0) return;
|
|
27702
|
-
let s = i.getBoundingClientRect().top, c = o.getBoundingClientRect().top, l = Math.max(0, c - s), u = Math.floor(l / t), d = Math.ceil(r / t), f = Math.max(0, Math.floor((u - n) /
|
|
27704
|
+
let s = i.getBoundingClientRect().top, c = o.getBoundingClientRect().top, l = Math.max(0, c - s), u = Math.floor(l / t), d = Math.ceil(r / t), f = Math.max(0, Math.floor((u - n) / LE) * LE), p = Math.min(e, Math.ceil((u + d + n) / LE) * LE);
|
|
27703
27705
|
a((e) => e.start === f && e.end === p ? e : {
|
|
27704
27706
|
start: f,
|
|
27705
27707
|
end: p
|
|
@@ -27715,15 +27717,15 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
27715
27717
|
t,
|
|
27716
27718
|
n
|
|
27717
27719
|
]);
|
|
27718
|
-
let o = Math.max(0, Math.floor((e - 1) /
|
|
27720
|
+
let o = Math.max(0, Math.floor((e - 1) / LE) * LE), s = Math.min(i.start, o);
|
|
27719
27721
|
return {
|
|
27720
27722
|
containerRef: r,
|
|
27721
27723
|
startRow: s,
|
|
27722
|
-
endRow: Math.min(e, Math.max(i.end, s +
|
|
27724
|
+
endRow: Math.min(e, Math.max(i.end, s + LE))
|
|
27723
27725
|
};
|
|
27724
|
-
},
|
|
27726
|
+
}, BE = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
|
|
27725
27727
|
let r = L(null), [i, a] = R(() => {
|
|
27726
|
-
let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t > 768 ? 60 : 0)), i =
|
|
27728
|
+
let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t > 768 ? 60 : 0)), i = PE((n ? r : Math.min(NE, r)) - 64), a = Math.ceil(e / i);
|
|
27727
27729
|
return {
|
|
27728
27730
|
startRow: 0,
|
|
27729
27731
|
endRow: Math.min(a, 12),
|
|
@@ -27733,8 +27735,8 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
27733
27735
|
F(() => {
|
|
27734
27736
|
let n = r.current;
|
|
27735
27737
|
if (!n) return;
|
|
27736
|
-
let i =
|
|
27737
|
-
let r = n.getBoundingClientRect(), o = i.getBoundingClientRect(), s = i.clientHeight, c = n.clientWidth, l =
|
|
27738
|
+
let i = FE(n.parentElement), o = () => {
|
|
27739
|
+
let r = n.getBoundingClientRect(), o = i.getBoundingClientRect(), s = i.clientHeight, c = n.clientWidth, l = PE(c), u = Math.ceil(e / l), d = Math.max(0, o.top - r.top), f = Math.max(0, Math.floor(d / 268) - t);
|
|
27738
27740
|
a({
|
|
27739
27741
|
startRow: f,
|
|
27740
27742
|
endRow: Math.min(u, f + Math.ceil(s / 268) + 2 * t),
|
|
@@ -27756,7 +27758,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
27756
27758
|
rowCount: o,
|
|
27757
27759
|
totalHeight: o * 268
|
|
27758
27760
|
};
|
|
27759
|
-
},
|
|
27761
|
+
}, VE = {
|
|
27760
27762
|
skeletonColor: "var(--cg-skeleton-color, var(--bg-control-disable-primary, #dce0e8))",
|
|
27761
27763
|
card: "_card_18c2b_2",
|
|
27762
27764
|
emptyStarHidden: "_emptyStarHidden_18c2b_2",
|
|
@@ -27766,11 +27768,11 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
27766
27768
|
selectedCard: "_selectedCard_18c2b_37",
|
|
27767
27769
|
checkIcon: "_checkIcon_18c2b_42",
|
|
27768
27770
|
footer: "_footer_18c2b_46"
|
|
27769
|
-
},
|
|
27771
|
+
}, HE = {
|
|
27770
27772
|
name: "_name_188yo_1",
|
|
27771
27773
|
lastUsed: "_lastUsed_188yo_5",
|
|
27772
27774
|
version: "_version_188yo_9"
|
|
27773
|
-
},
|
|
27775
|
+
}, UE = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, styles: c, lastUsedTrailing: l, iconClassName: u, iconOverlay: d }) => {
|
|
27774
27776
|
let f = c?.colors, p = c?.typography ?? {}, m = a === kn.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = is({
|
|
27775
27777
|
"--ai-name-text": f?.nameColor,
|
|
27776
27778
|
"--ai-last-used-text": f?.lastUsedColor,
|
|
@@ -27804,22 +27806,22 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
27804
27806
|
text: n,
|
|
27805
27807
|
query: o
|
|
27806
27808
|
}) : n,
|
|
27807
|
-
className: W("min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text",
|
|
27809
|
+
className: W("min-w-0 flex-1", p?.nameClassName ?? "dial-body-semi-text", HE.name)
|
|
27808
27810
|
}), r && /* @__PURE__ */ z(me, {
|
|
27809
27811
|
text: r,
|
|
27810
|
-
className: W("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text",
|
|
27812
|
+
className: W("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text", HE.version)
|
|
27811
27813
|
})]
|
|
27812
27814
|
}), m && i != null && /* @__PURE__ */ B("div", {
|
|
27813
27815
|
className: "flex items-center gap-2",
|
|
27814
27816
|
children: [/* @__PURE__ */ z("span", {
|
|
27815
|
-
className: W("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text",
|
|
27817
|
+
className: W("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", HE.lastUsed),
|
|
27816
27818
|
children: i
|
|
27817
27819
|
}), l]
|
|
27818
27820
|
})]
|
|
27819
27821
|
})]
|
|
27820
27822
|
})]
|
|
27821
27823
|
});
|
|
27822
|
-
},
|
|
27824
|
+
}, WE = { icon: "_icon_a0p4u_1" }, GE = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || kE(e) == null ? null : /* @__PURE__ */ z(Je, {
|
|
27823
27825
|
tooltip: t,
|
|
27824
27826
|
asChild: !0,
|
|
27825
27827
|
children: /* @__PURE__ */ z("span", {
|
|
@@ -27832,39 +27834,39 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
27832
27834
|
className: W("absolute -bottom-1 -end-1 shrink-0", n),
|
|
27833
27835
|
children: /* @__PURE__ */ z(_t, {
|
|
27834
27836
|
size: k.SM,
|
|
27835
|
-
className:
|
|
27837
|
+
className: WE.icon,
|
|
27836
27838
|
"aria-hidden": !0
|
|
27837
27839
|
})
|
|
27838
27840
|
})
|
|
27839
|
-
}),
|
|
27841
|
+
}), KE = {
|
|
27840
27842
|
starFilledIcon: "_starFilledIcon_po6zj_1",
|
|
27841
27843
|
starPop: "_starPop_po6zj_1"
|
|
27842
|
-
},
|
|
27844
|
+
}, qE = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ z(qe, {
|
|
27843
27845
|
size: n,
|
|
27844
27846
|
style: is({ "--cat-star-filled": a }),
|
|
27845
27847
|
className: i,
|
|
27846
27848
|
icon: e ? /* @__PURE__ */ z(en, {
|
|
27847
27849
|
size: k.SM,
|
|
27848
|
-
className:
|
|
27850
|
+
className: KE.starFilledIcon
|
|
27849
27851
|
}) : /* @__PURE__ */ z($t, {
|
|
27850
27852
|
size: k.SM,
|
|
27851
27853
|
stroke: A
|
|
27852
27854
|
}),
|
|
27853
27855
|
"aria-label": r,
|
|
27854
27856
|
onClick: t
|
|
27855
|
-
}),
|
|
27857
|
+
}), JE = { tag: "_tag_12518_1" }, YE = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ z("div", {
|
|
27856
27858
|
style: is({
|
|
27857
27859
|
"--cat-card-tag-bg": r?.background,
|
|
27858
27860
|
"--cat-card-tag-text": r?.text,
|
|
27859
27861
|
"--cat-card-tag-border": r?.border
|
|
27860
27862
|
}),
|
|
27861
|
-
className: W("flex h-6 w-fit items-center justify-center whitespace-nowrap rounded-md border px-2",
|
|
27863
|
+
className: W("flex h-6 w-fit items-center justify-center whitespace-nowrap rounded-md border px-2", JE.tag, n, t),
|
|
27862
27864
|
children: e
|
|
27863
|
-
}),
|
|
27865
|
+
}), XE = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ z(YE, {
|
|
27864
27866
|
label: e,
|
|
27865
27867
|
badgeClassName: t,
|
|
27866
27868
|
colors: n
|
|
27867
|
-
}),
|
|
27869
|
+
}), ZE = 8, QE = ({ topics: e, overflowAriaLabel: t, className: n }) => {
|
|
27868
27870
|
let r = L(null), i = L([]), a = L([]), o = L(null), s = L(Infinity), [c, l] = R(e.length), u = e.join("\0"), d = P(() => {
|
|
27869
27871
|
let t = r.current;
|
|
27870
27872
|
if (!t || e.length === 0) return;
|
|
@@ -27876,8 +27878,8 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
27876
27878
|
let u = o.current?.offsetWidth ?? 0, d = 0, f = 0;
|
|
27877
27879
|
for (let t = 0; t < e.length; t++) {
|
|
27878
27880
|
let r = e.length - (t + 1) > 0;
|
|
27879
|
-
if (d + (t > 0 ?
|
|
27880
|
-
d += (t > 0 ?
|
|
27881
|
+
if (d + (t > 0 ? ZE : 0) + c[t] + (r ? ZE + u : 0) > n) break;
|
|
27882
|
+
d += (t > 0 ? ZE : 0) + c[t], f = t + 1;
|
|
27881
27883
|
}
|
|
27882
27884
|
l(Math.min(f, s.current));
|
|
27883
27885
|
}, [e.length]);
|
|
@@ -27908,24 +27910,24 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
27908
27910
|
ref: (e) => {
|
|
27909
27911
|
i.current[t] = e;
|
|
27910
27912
|
},
|
|
27911
|
-
children: /* @__PURE__ */ z(
|
|
27913
|
+
children: /* @__PURE__ */ z(XE, { label: e })
|
|
27912
27914
|
}, e)),
|
|
27913
27915
|
f > 0 && /* @__PURE__ */ z(Je, {
|
|
27914
27916
|
tooltip: e.slice(c).join(", "),
|
|
27915
27917
|
children: /* @__PURE__ */ z("span", {
|
|
27916
27918
|
"aria-label": t?.(f) ?? `and ${f} more topics`,
|
|
27917
|
-
children: /* @__PURE__ */ z(
|
|
27919
|
+
children: /* @__PURE__ */ z(XE, { label: `+${f}` })
|
|
27918
27920
|
})
|
|
27919
27921
|
}),
|
|
27920
27922
|
/* @__PURE__ */ z("div", {
|
|
27921
27923
|
ref: o,
|
|
27922
27924
|
"aria-hidden": !0,
|
|
27923
27925
|
className: "invisible absolute start-0 top-0",
|
|
27924
|
-
children: /* @__PURE__ */ z(
|
|
27926
|
+
children: /* @__PURE__ */ z(XE, { label: `+${e.length}` })
|
|
27925
27927
|
})
|
|
27926
27928
|
]
|
|
27927
27929
|
});
|
|
27928
|
-
},
|
|
27930
|
+
}, $E = { img: () => null }, eD = (e) => e.target instanceof Element && e.target.closest("a") !== null, tD = ({ item: e, query: t = "", onClick: n, initialIsStarred: r = !1, onToggle: i, isFavoriteVisible: a, featuredLabel: o = "Featured", addToFavoritesAriaLabel: s = "Add to favorites", removeFromFavoritesAriaLabel: c = "Remove from favorites", isSelected: l = !1, className: u, styles: d, credentialsBadgeLoggedOutLabel: f, isReadonly: p = !1 }) => {
|
|
27929
27931
|
let [m, h] = R(r);
|
|
27930
27932
|
F(() => {
|
|
27931
27933
|
h(r);
|
|
@@ -27937,9 +27939,9 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
27937
27939
|
"--cg-check-icon": d?.colors?.checkIcon,
|
|
27938
27940
|
"--cg-footer-border": d?.colors?.footerBorder
|
|
27939
27941
|
}), S = !p && e.isFeatured === !0, C = !p && a?.(e) !== !1, w = !p || e.folder.length > 0, T = n ? (t) => {
|
|
27940
|
-
|
|
27942
|
+
eD(t) || n(e);
|
|
27941
27943
|
} : void 0, E = P((t) => {
|
|
27942
|
-
!n ||
|
|
27944
|
+
!n || eD(t) || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e));
|
|
27943
27945
|
}, [n, e]), D = P((t) => {
|
|
27944
27946
|
t.stopPropagation();
|
|
27945
27947
|
let n = !m;
|
|
@@ -27958,7 +27960,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
27958
27960
|
} : {},
|
|
27959
27961
|
"aria-label": e.name,
|
|
27960
27962
|
style: x,
|
|
27961
|
-
className: W("box-border cursor-pointer gap-3",
|
|
27963
|
+
className: W("box-border cursor-pointer gap-3", VE.card, S ? VE.featuredCard : void 0, l ? VE.selectedCard : void 0, u),
|
|
27962
27964
|
children: [
|
|
27963
27965
|
S && /* @__PURE__ */ z("div", {
|
|
27964
27966
|
className: "absolute end-[22px] top-0 -translate-y-1/2",
|
|
@@ -27970,26 +27972,26 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
27970
27972
|
}),
|
|
27971
27973
|
l && /* @__PURE__ */ z(St, {
|
|
27972
27974
|
size: k.SM,
|
|
27973
|
-
className: W("absolute end-3 top-3 shrink-0",
|
|
27975
|
+
className: W("absolute end-3 top-3 shrink-0", VE.checkIcon),
|
|
27974
27976
|
"aria-hidden": !0,
|
|
27975
27977
|
stroke: A
|
|
27976
27978
|
}),
|
|
27977
|
-
/* @__PURE__ */ z(
|
|
27979
|
+
/* @__PURE__ */ z(UE, {
|
|
27978
27980
|
icon: e.iconUrl,
|
|
27979
27981
|
type: e.type,
|
|
27980
27982
|
name: e.name,
|
|
27981
27983
|
version: e.version,
|
|
27982
27984
|
size: kn.SM,
|
|
27983
27985
|
query: t,
|
|
27984
|
-
iconClassName:
|
|
27985
|
-
iconOverlay: /* @__PURE__ */ z(
|
|
27986
|
+
iconClassName: VE.cardIcon,
|
|
27987
|
+
iconOverlay: /* @__PURE__ */ z(GE, {
|
|
27986
27988
|
credentials: e.credentials,
|
|
27987
27989
|
loggedOutLabel: f
|
|
27988
27990
|
})
|
|
27989
27991
|
}),
|
|
27990
27992
|
/* @__PURE__ */ z("div", {
|
|
27991
|
-
className: W("line-clamp-2 min-h-[2lh] break-words",
|
|
27992
|
-
children: e.description && /* @__PURE__ */ z(
|
|
27993
|
+
className: W("line-clamp-2 min-h-[2lh] break-words", VE.description),
|
|
27994
|
+
children: e.description && /* @__PURE__ */ z(yE, {
|
|
27993
27995
|
content: e.description,
|
|
27994
27996
|
classNames: {
|
|
27995
27997
|
p: g,
|
|
@@ -28002,15 +28004,15 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28002
28004
|
h5: g,
|
|
28003
28005
|
h6: g
|
|
28004
28006
|
},
|
|
28005
|
-
components:
|
|
28007
|
+
components: $E
|
|
28006
28008
|
})
|
|
28007
28009
|
}),
|
|
28008
28010
|
/* @__PURE__ */ z("div", {
|
|
28009
28011
|
className: "mt-auto flex items-center gap-2",
|
|
28010
|
-
children: /* @__PURE__ */ z(
|
|
28012
|
+
children: /* @__PURE__ */ z(QE, { topics: e.topics })
|
|
28011
28013
|
}),
|
|
28012
28014
|
w && /* @__PURE__ */ z("div", {
|
|
28013
|
-
className: W("pt-3", !p && W("border-t",
|
|
28015
|
+
className: W("pt-3", !p && W("border-t", VE.footer)),
|
|
28014
28016
|
children: /* @__PURE__ */ B("div", {
|
|
28015
28017
|
className: "flex items-center gap-2",
|
|
28016
28018
|
children: [/* @__PURE__ */ z("div", {
|
|
@@ -28020,18 +28022,18 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28020
28022
|
labelClassName: v,
|
|
28021
28023
|
leafClassName: y
|
|
28022
28024
|
})
|
|
28023
|
-
}), C && /* @__PURE__ */ z(
|
|
28025
|
+
}), C && /* @__PURE__ */ z(qE, {
|
|
28024
28026
|
isStarred: m,
|
|
28025
28027
|
size: pe.Small,
|
|
28026
28028
|
onClick: D,
|
|
28027
28029
|
ariaLabel: m ? c : s,
|
|
28028
|
-
className: W(
|
|
28030
|
+
className: W(VE.starBtn, !m && VE.emptyStarHidden)
|
|
28029
28031
|
})]
|
|
28030
28032
|
})
|
|
28031
28033
|
})
|
|
28032
28034
|
]
|
|
28033
28035
|
});
|
|
28034
|
-
},
|
|
28036
|
+
}, nD = ({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, isFavoriteVisible: a, onItemClick: o, featuredLabel: s, addToFavoritesAriaLabel: c, removeFromFavoritesAriaLabel: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f }) => {
|
|
28035
28037
|
let p = e * n, m = t.slice(p, p + n);
|
|
28036
28038
|
return /* @__PURE__ */ z("div", {
|
|
28037
28039
|
style: {
|
|
@@ -28043,7 +28045,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28043
28045
|
let n = m[t];
|
|
28044
28046
|
return /* @__PURE__ */ z("div", {
|
|
28045
28047
|
className: "h-full min-w-0 flex-1",
|
|
28046
|
-
children: n && /* @__PURE__ */ z(
|
|
28048
|
+
children: n && /* @__PURE__ */ z(tD, {
|
|
28047
28049
|
item: n,
|
|
28048
28050
|
query: r,
|
|
28049
28051
|
initialIsStarred: n.isStarred,
|
|
@@ -28061,8 +28063,8 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28061
28063
|
}, n?.id ?? `spacer-${t}`);
|
|
28062
28064
|
})
|
|
28063
28065
|
});
|
|
28064
|
-
},
|
|
28065
|
-
let f = a?.noResultsTitle ?? "No results", p = a?.featuredLabel ?? "Featured", m = a?.addToFavoritesAriaLabel ?? "Add to favorites", h = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", g = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", { containerRef: _, startRow: v, endRow: y, columnCount: b, totalHeight: x } =
|
|
28066
|
+
}, rD = ut(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = VE.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1 }) => {
|
|
28067
|
+
let f = a?.noResultsTitle ?? "No results", p = a?.featuredLabel ?? "Featured", m = a?.addToFavoritesAriaLabel ?? "Add to favorites", h = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", g = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", { containerRef: _, startRow: v, endRow: y, columnCount: b, totalHeight: x } = BE(e.length, { isFullWidth: d }), S = I(() => ({
|
|
28066
28068
|
items: e,
|
|
28067
28069
|
columnCount: b,
|
|
28068
28070
|
query: t,
|
|
@@ -28096,7 +28098,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28096
28098
|
...is({ "--cg-skeleton-card-bg": l })
|
|
28097
28099
|
},
|
|
28098
28100
|
children: Array.from({ length: b * 3 }, (e, t) => /* @__PURE__ */ z("div", {
|
|
28099
|
-
className: W("rounded-md border p-4",
|
|
28101
|
+
className: W("rounded-md border p-4", VE.skeletonCard),
|
|
28100
28102
|
style: { height: 248 },
|
|
28101
28103
|
children: /* @__PURE__ */ z(Be, {
|
|
28102
28104
|
avatar: {
|
|
@@ -28118,41 +28120,41 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28118
28120
|
style: { height: x },
|
|
28119
28121
|
children: Array.from({ length: y - v }, (e, t) => {
|
|
28120
28122
|
let n = v + t;
|
|
28121
|
-
return /* @__PURE__ */ z(
|
|
28123
|
+
return /* @__PURE__ */ z(nD, {
|
|
28122
28124
|
rowIndex: n,
|
|
28123
28125
|
...S
|
|
28124
28126
|
}, n);
|
|
28125
28127
|
})
|
|
28126
28128
|
});
|
|
28127
|
-
}),
|
|
28129
|
+
}), iD = /* @__PURE__ */ function(e) {
|
|
28128
28130
|
return e.Equal = "EQUAL", e.Contain = "CONTAIN", e.Regex = "REGEX", e;
|
|
28129
|
-
}({}),
|
|
28131
|
+
}({}), aD = /* @__PURE__ */ function(e) {
|
|
28130
28132
|
return e.None = "none", e.Info = "info", e.ReplaceWarning = "replaceWarning", e.NoAccess = "noAccess", e.SubmitError = "submitError", e;
|
|
28131
|
-
}({}),
|
|
28132
|
-
calloutKind:
|
|
28133
|
+
}({}), oD = (e) => e.isSubmitting ? {
|
|
28134
|
+
calloutKind: aD.None,
|
|
28133
28135
|
isSubmitDisabled: !0,
|
|
28134
28136
|
isSubmitLoading: !0
|
|
28135
28137
|
} : e.hasSelectedFolder ? e.hasWriteAccess ? e.hasSubmitError ? {
|
|
28136
|
-
calloutKind:
|
|
28138
|
+
calloutKind: aD.SubmitError,
|
|
28137
28139
|
isSubmitDisabled: !1,
|
|
28138
28140
|
isSubmitLoading: !1
|
|
28139
28141
|
} : e.hasExistingPublicationInFolder ? {
|
|
28140
|
-
calloutKind:
|
|
28142
|
+
calloutKind: aD.ReplaceWarning,
|
|
28141
28143
|
isSubmitDisabled: e.allowReplace === !1,
|
|
28142
28144
|
isSubmitLoading: !1
|
|
28143
28145
|
} : {
|
|
28144
|
-
calloutKind:
|
|
28146
|
+
calloutKind: aD.Info,
|
|
28145
28147
|
isSubmitDisabled: !1,
|
|
28146
28148
|
isSubmitLoading: !1
|
|
28147
28149
|
} : {
|
|
28148
|
-
calloutKind:
|
|
28150
|
+
calloutKind: aD.NoAccess,
|
|
28149
28151
|
isSubmitDisabled: !0,
|
|
28150
28152
|
isSubmitLoading: !1
|
|
28151
28153
|
} : {
|
|
28152
|
-
calloutKind:
|
|
28154
|
+
calloutKind: aD.None,
|
|
28153
28155
|
isSubmitDisabled: !0,
|
|
28154
28156
|
isSubmitLoading: !1
|
|
28155
|
-
},
|
|
28157
|
+
}, sD = (e, t, n) => t.length === 0 ? [...e, {
|
|
28156
28158
|
path: [n],
|
|
28157
28159
|
name: n
|
|
28158
28160
|
}] : e.map((e) => e.path.join("/") === t.join("/") ? {
|
|
@@ -28163,17 +28165,17 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28163
28165
|
}]
|
|
28164
28166
|
} : {
|
|
28165
28167
|
...e,
|
|
28166
|
-
children: e.children ?
|
|
28167
|
-
}),
|
|
28168
|
+
children: e.children ? sD(e.children, t, n) : e.children
|
|
28169
|
+
}), cD = (e, t, n) => {
|
|
28168
28170
|
let r = [...t, n].join("/");
|
|
28169
28171
|
return t.length === 0 ? e.filter((e) => e.path.join("/") !== r) : e.map((e) => e.path.join("/") === t.join("/") ? {
|
|
28170
28172
|
...e,
|
|
28171
28173
|
children: (e.children ?? []).filter((e) => e.path.join("/") !== r)
|
|
28172
28174
|
} : {
|
|
28173
28175
|
...e,
|
|
28174
|
-
children: e.children ?
|
|
28176
|
+
children: e.children ? cD(e.children, t, n) : e.children
|
|
28175
28177
|
});
|
|
28176
|
-
},
|
|
28178
|
+
}, lD = ({ item: e, history: t, folderItems: n, hasWriteAccess: r = () => !0, onCreateFolder: i, onPublish: a, onPublishSuccess: o, onPublishError: s, onFetchExistingRules: c }) => {
|
|
28177
28179
|
let [l, u] = R(n);
|
|
28178
28180
|
F(() => {
|
|
28179
28181
|
u(n);
|
|
@@ -28205,11 +28207,11 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28205
28207
|
e.version,
|
|
28206
28208
|
d
|
|
28207
28209
|
]), w = P(async (e, t) => {
|
|
28208
|
-
u((n) =>
|
|
28210
|
+
u((n) => sD(n, e, t));
|
|
28209
28211
|
try {
|
|
28210
28212
|
await i?.(e, t);
|
|
28211
28213
|
} catch {
|
|
28212
|
-
u((n) =>
|
|
28214
|
+
u((n) => cD(n, e, t)), g(!0);
|
|
28213
28215
|
}
|
|
28214
28216
|
}, [i]), T = P(async () => {
|
|
28215
28217
|
if (!d) return !1;
|
|
@@ -28247,63 +28249,63 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28247
28249
|
isRulesLoading: y,
|
|
28248
28250
|
hasRulesLoadError: x
|
|
28249
28251
|
};
|
|
28250
|
-
},
|
|
28252
|
+
}, uD = (e, t) => {
|
|
28251
28253
|
let n = t.trim().toLowerCase();
|
|
28252
28254
|
return n ? e.reduce((e, r) => {
|
|
28253
|
-
let i = r.children ?
|
|
28255
|
+
let i = r.children ? uD(r.children, t) : void 0;
|
|
28254
28256
|
return r.name.toLowerCase().includes(n) ? e.push(r) : i?.length && e.push({
|
|
28255
28257
|
...r,
|
|
28256
28258
|
children: i
|
|
28257
28259
|
}), e;
|
|
28258
28260
|
}, []) : e;
|
|
28259
|
-
},
|
|
28261
|
+
}, dD = (e, t) => e.localeCompare(t, void 0, {
|
|
28260
28262
|
sensitivity: "base",
|
|
28261
28263
|
numeric: !0
|
|
28262
|
-
}),
|
|
28264
|
+
}), fD = (e) => [...e].sort((e, t) => dD(e.name, t.name)).map((e) => e.children ? {
|
|
28263
28265
|
...e,
|
|
28264
|
-
children:
|
|
28265
|
-
} : e),
|
|
28266
|
-
let t =
|
|
28266
|
+
children: fD(e.children)
|
|
28267
|
+
} : e), pD = (e) => e.flatMap((e) => [e.path.join("/"), ...e.children ? pD(e.children) : []]), mD = (e) => e.join("/"), hD = (e) => e.split("/").filter(Boolean), gD = (e) => e.map((e) => {
|
|
28268
|
+
let t = mD(e.path);
|
|
28267
28269
|
return {
|
|
28268
28270
|
path: t,
|
|
28269
28271
|
name: e.name,
|
|
28270
28272
|
folderId: t,
|
|
28271
28273
|
nodeType: M.FOLDER,
|
|
28272
|
-
items: e.children ?
|
|
28274
|
+
items: e.children ? gD(e.children) : void 0
|
|
28273
28275
|
};
|
|
28274
|
-
}),
|
|
28276
|
+
}), _D = /[/\\:;,={}&"]/, vD = (e, t, n) => {
|
|
28275
28277
|
let r = e.trim();
|
|
28276
|
-
return r ? r.includes("..") ||
|
|
28277
|
-
},
|
|
28278
|
+
return r ? r.includes("..") || _D.test(r) ? n.invalid : t.some((e) => e.toLowerCase() === r.toLowerCase()) ? n.duplicate : null : n.empty;
|
|
28279
|
+
}, yD = (e, t) => {
|
|
28278
28280
|
let n = new Set(t.map((e) => e.toLowerCase()));
|
|
28279
28281
|
if (!n.has(e.toLowerCase())) return e;
|
|
28280
28282
|
let r = 2;
|
|
28281
28283
|
for (; n.has(`${e} ${r}`.toLowerCase());) r += 1;
|
|
28282
28284
|
return `${e} ${r}`;
|
|
28283
|
-
},
|
|
28285
|
+
}, bD = (e, t) => {
|
|
28284
28286
|
if (t.length === 0) return e.map((e) => e.name);
|
|
28285
|
-
let n =
|
|
28287
|
+
let n = mD(t), r = (e) => {
|
|
28286
28288
|
for (let t of e) {
|
|
28287
|
-
if (
|
|
28289
|
+
if (mD(t.path) === n) return t;
|
|
28288
28290
|
let e = t.children ? r(t.children) : void 0;
|
|
28289
28291
|
if (e) return e;
|
|
28290
28292
|
}
|
|
28291
28293
|
};
|
|
28292
28294
|
return (r(e)?.children ?? []).map((e) => e.name);
|
|
28293
|
-
},
|
|
28295
|
+
}, xD = {
|
|
28294
28296
|
dialog: "_dialog_1chty_2",
|
|
28295
28297
|
error: "_error_1chty_11",
|
|
28296
28298
|
selectField: "_selectField_1chty_25",
|
|
28297
28299
|
selectFieldOpen: "_selectFieldOpen_1chty_37"
|
|
28298
|
-
},
|
|
28300
|
+
}, SD = 20, CD = 200, wD = 8, TD = (e) => {
|
|
28299
28301
|
let t = e.trim();
|
|
28300
|
-
if (t.length === 0 || t.length >
|
|
28302
|
+
if (t.length === 0 || t.length > CD) return !1;
|
|
28301
28303
|
try {
|
|
28302
28304
|
return new RegExp(t) instanceof RegExp;
|
|
28303
28305
|
} catch {
|
|
28304
28306
|
return !1;
|
|
28305
28307
|
}
|
|
28306
|
-
},
|
|
28308
|
+
}, ED = ({ sourceOptions: e, onSave: t, onCancel: n, disabled: r = !1, maxTargets: i = SD, labels: a = {}, errorClassName: o = "dial-small-text", styles: s = {} }) => {
|
|
28307
28309
|
let c = {
|
|
28308
28310
|
...is({
|
|
28309
28311
|
"--pare-mobile-bg": s.colors?.mobileBackground,
|
|
@@ -28319,27 +28321,27 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28319
28321
|
F(() => {
|
|
28320
28322
|
k.current?.focus();
|
|
28321
28323
|
}, []);
|
|
28322
|
-
let [A, te] = R(), [ne, re] = R(), [ie, j] = R([]), [M, ae] = R(""), [oe, se] = R(!1), [ce, le] = R(!1), [ue, de] = R(!1), fe = W(
|
|
28324
|
+
let [A, te] = R(), [ne, re] = R(), [ie, j] = R([]), [M, ae] = R(""), [oe, se] = R(!1), [ce, le] = R(!1), [ue, de] = R(!1), fe = W(xD.selectField, oe && xD.selectFieldOpen), pe = W(xD.selectField, ce && xD.selectFieldOpen), me = I(() => e.map((e) => ({
|
|
28323
28325
|
value: e,
|
|
28324
28326
|
label: e
|
|
28325
28327
|
})), [e]), he = I(() => [
|
|
28326
28328
|
{
|
|
28327
|
-
value:
|
|
28329
|
+
value: iD.Equal,
|
|
28328
28330
|
label: f
|
|
28329
28331
|
},
|
|
28330
28332
|
{
|
|
28331
|
-
value:
|
|
28333
|
+
value: iD.Contain,
|
|
28332
28334
|
label: p
|
|
28333
28335
|
},
|
|
28334
28336
|
{
|
|
28335
|
-
value:
|
|
28337
|
+
value: iD.Regex,
|
|
28336
28338
|
label: m
|
|
28337
28339
|
}
|
|
28338
28340
|
], [
|
|
28339
28341
|
f,
|
|
28340
28342
|
p,
|
|
28341
28343
|
m
|
|
28342
|
-
]), N = ne ===
|
|
28344
|
+
]), N = ne === iD.Regex, ge = TD(M), ve = A != null && ne != null && (N ? ge : ie.length > 0);
|
|
28343
28345
|
return /* @__PURE__ */ B("div", {
|
|
28344
28346
|
ref: k,
|
|
28345
28347
|
role: "dialog",
|
|
@@ -28350,7 +28352,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28350
28352
|
e.key === "Escape" && (e.stopPropagation(), n());
|
|
28351
28353
|
},
|
|
28352
28354
|
style: c,
|
|
28353
|
-
className: W("fixed inset-0 z-[60] flex flex-col gap-3 overflow-y-auto p-4", "desktop:static desktop:z-auto desktop:flex-none desktop:overflow-visible desktop:rounded-lg desktop:p-3",
|
|
28355
|
+
className: W("fixed inset-0 z-[60] flex flex-col gap-3 overflow-y-auto p-4", "desktop:static desktop:z-auto desktop:flex-none desktop:overflow-visible desktop:rounded-lg desktop:p-3", xD.dialog),
|
|
28354
28356
|
children: [
|
|
28355
28357
|
/* @__PURE__ */ z(ze, {
|
|
28356
28358
|
id: D,
|
|
@@ -28361,7 +28363,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28361
28363
|
te(Array.isArray(e) ? e[0] : e), se(!1);
|
|
28362
28364
|
},
|
|
28363
28365
|
placeholder: u,
|
|
28364
|
-
searchable: e.length >
|
|
28366
|
+
searchable: e.length > wD,
|
|
28365
28367
|
searchPlaceholder: u,
|
|
28366
28368
|
disabled: r,
|
|
28367
28369
|
open: oe,
|
|
@@ -28377,7 +28379,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28377
28379
|
value: ne,
|
|
28378
28380
|
onChange: (e) => {
|
|
28379
28381
|
let t = Array.isArray(e) ? e[0] : e;
|
|
28380
|
-
ne ===
|
|
28382
|
+
ne === iD.Regex != (t === iD.Regex) && (j([]), ae("")), re(t), le(!1);
|
|
28381
28383
|
},
|
|
28382
28384
|
placeholder: d,
|
|
28383
28385
|
disabled: r,
|
|
@@ -28399,7 +28401,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28399
28401
|
}), (M.length > 0 || ue) && !ge && /* @__PURE__ */ z("span", {
|
|
28400
28402
|
id: E,
|
|
28401
28403
|
role: "alert",
|
|
28402
|
-
className: W("mt-1 block", o,
|
|
28404
|
+
className: W("mt-1 block", o, xD.error),
|
|
28403
28405
|
children: b
|
|
28404
28406
|
})] }) : /* @__PURE__ */ z(Ke, {
|
|
28405
28407
|
id: ee,
|
|
@@ -28444,13 +28446,13 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28444
28446
|
})
|
|
28445
28447
|
]
|
|
28446
28448
|
});
|
|
28447
|
-
},
|
|
28449
|
+
}, DD = {
|
|
28448
28450
|
ruleRow: "_ruleRow_nx0en_1",
|
|
28449
28451
|
heading: "_heading_nx0en_5",
|
|
28450
28452
|
hint: "_hint_nx0en_9",
|
|
28451
28453
|
loading: "_loading_nx0en_13",
|
|
28452
28454
|
ruleText: "_ruleText_nx0en_17"
|
|
28453
|
-
},
|
|
28455
|
+
}, OD = 20, kD = (e, t) => e === iD.Equal ? t.equal : e === iD.Contain ? t.contain : t.regex, AD = ({ rules: e, onRulesChange: t, sourceOptions: n, folderName: r, disabled: i = !1, isLoading: a = !1, hasLoadError: o = !1, maxRules: s = OD, maxTargetsPerRule: c, labels: l = {}, headingClassName: u = "dial-body-semi-text", hintClassName: d = "dial-small-text", loadingClassName: f = "dial-small-text", ruleTextClassName: p = "dial-small-text", ruleSourceClassName: m = "dial-small-semi-text", styles: h = {} }) => {
|
|
28454
28456
|
let g = {
|
|
28455
28457
|
...is({
|
|
28456
28458
|
"--par-rule-bg": h.colors?.ruleBackground,
|
|
@@ -28499,7 +28501,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28499
28501
|
className: "mb-1 flex items-center justify-between gap-2",
|
|
28500
28502
|
children: [/* @__PURE__ */ z("div", {
|
|
28501
28503
|
id: oe,
|
|
28502
|
-
className: W(u,
|
|
28504
|
+
className: W(u, DD.heading),
|
|
28503
28505
|
children: _
|
|
28504
28506
|
}), e.length > 0 && /* @__PURE__ */ z(_e, {
|
|
28505
28507
|
variant: y.Primary,
|
|
@@ -28509,7 +28511,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28509
28511
|
})]
|
|
28510
28512
|
}),
|
|
28511
28513
|
/* @__PURE__ */ z("p", {
|
|
28512
|
-
className: W("mb-2", d,
|
|
28514
|
+
className: W("mb-2", d, DD.hint),
|
|
28513
28515
|
children: Se ? v.replace("{folder}", r) : b
|
|
28514
28516
|
}),
|
|
28515
28517
|
e.length > 0 && !Se && /* @__PURE__ */ z("div", {
|
|
@@ -28521,7 +28523,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28521
28523
|
})
|
|
28522
28524
|
}),
|
|
28523
28525
|
a && /* @__PURE__ */ B("div", {
|
|
28524
|
-
className: W("mb-2 flex items-center gap-2", f,
|
|
28526
|
+
className: W("mb-2 flex items-center gap-2", f, DD.loading),
|
|
28525
28527
|
children: [/* @__PURE__ */ z(Ue, {
|
|
28526
28528
|
size: 16,
|
|
28527
28529
|
ariaLabel: te
|
|
@@ -28540,16 +28542,16 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28540
28542
|
children: e.map((e, t) => {
|
|
28541
28543
|
let n = e.targets.join(` ${T} `), r = E.replace("{source}", e.source).replace("{targets}", n);
|
|
28542
28544
|
return /* @__PURE__ */ B("li", {
|
|
28543
|
-
className: W("flex items-center justify-between gap-2 rounded-lg px-3 py-2",
|
|
28545
|
+
className: W("flex items-center justify-between gap-2 rounded-lg px-3 py-2", DD.ruleRow),
|
|
28544
28546
|
children: [/* @__PURE__ */ B("span", {
|
|
28545
|
-
className: W("truncate", p,
|
|
28547
|
+
className: W("truncate", p, DD.ruleText),
|
|
28546
28548
|
children: [
|
|
28547
28549
|
/* @__PURE__ */ z("span", {
|
|
28548
28550
|
className: m,
|
|
28549
28551
|
children: e.source
|
|
28550
28552
|
}),
|
|
28551
28553
|
" ",
|
|
28552
|
-
|
|
28554
|
+
kD(e.function, ye),
|
|
28553
28555
|
": ",
|
|
28554
28556
|
n
|
|
28555
28557
|
]
|
|
@@ -28566,7 +28568,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28566
28568
|
}, t);
|
|
28567
28569
|
})
|
|
28568
28570
|
}),
|
|
28569
|
-
se && /* @__PURE__ */ z(
|
|
28571
|
+
se && /* @__PURE__ */ z(ED, {
|
|
28570
28572
|
sourceOptions: n,
|
|
28571
28573
|
onSave: he,
|
|
28572
28574
|
onCancel: me,
|
|
@@ -28589,27 +28591,27 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28589
28591
|
})
|
|
28590
28592
|
}),
|
|
28591
28593
|
be && /* @__PURE__ */ z("p", {
|
|
28592
|
-
className: W("mt-2", d,
|
|
28594
|
+
className: W("mt-2", d, DD.hint),
|
|
28593
28595
|
children: S.replace("{max}", String(s))
|
|
28594
28596
|
})
|
|
28595
28597
|
]
|
|
28596
28598
|
});
|
|
28597
|
-
},
|
|
28599
|
+
}, jD = { divider: "_divider_a8iz6_1" }, MD = ({ items: e, selectedPath: t, onSelectedPathChange: n, onCreateFolder: r, searchQuery: i, disabled: a = !1, createFolderLabel: o = "Create new folder", cancelCreatingFolderLabel: s = "Cancel", addSiblingFolderLabel: c = "Add sibling", addChildFolderLabel: l = "Add child", newFolderDefaultName: u = "New folder", noResultsLabel: d = "No folders match \"{query}\".", emptyFolderNameError: f = "Folder name cannot be empty.", invalidFolderNameError: p = "Folder name contains invalid characters.", duplicateFolderNameError: m = "A folder with this name already exists.", rootLabel: h = "Organization", expandedPaths: g, onExpandedPathsChange: _, loadingPaths: v, styles: y = {} }) => {
|
|
28598
28600
|
let b = {
|
|
28599
28601
|
...is({ "--pft-divider": y.colors?.divider }),
|
|
28600
28602
|
...y.cssVars
|
|
28601
|
-
}, [x, S] = R(() => new Set(t?.map((e, n) =>
|
|
28603
|
+
}, [x, S] = R(() => new Set(t?.map((e, n) => mD(t.slice(0, n + 1))) ?? [])), C = g ?? x, w = (e) => {
|
|
28602
28604
|
let t = new Set(e);
|
|
28603
28605
|
t.delete(""), _ ? _(t) : S(t);
|
|
28604
|
-
}, [T, E] = R(null), [D, O] = R(u), ee = L(null), te = i.trim(), ne = T != null, re = I(() =>
|
|
28606
|
+
}, [T, E] = R(null), [D, O] = R(u), ee = L(null), te = i.trim(), ne = T != null, re = I(() => uD(e, i), [e, i]), ie = te.length > 0 && re.length === 0, j = !ne && te.length > 0, M = I(() => fD(j ? re : e), [
|
|
28605
28607
|
j,
|
|
28606
28608
|
re,
|
|
28607
28609
|
e
|
|
28608
|
-
]), ae = I(() => new Set(["", ...
|
|
28610
|
+
]), ae = I(() => new Set(["", ...pD(M)]), [M]), oe = I(() => new Set(["", ...j ? ae : C]), [
|
|
28609
28611
|
j,
|
|
28610
28612
|
ae,
|
|
28611
28613
|
C
|
|
28612
|
-
]), se = I(() =>
|
|
28614
|
+
]), se = I(() => gD(M), [M]), ce = I(() => j && se.length === 0 ? [] : [{
|
|
28613
28615
|
path: "",
|
|
28614
28616
|
name: h,
|
|
28615
28617
|
folderId: "",
|
|
@@ -28619,16 +28621,16 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28619
28621
|
se,
|
|
28620
28622
|
h,
|
|
28621
28623
|
j
|
|
28622
|
-
]), le = T ?
|
|
28624
|
+
]), le = T ? mD(T) : null, ue = {
|
|
28623
28625
|
empty: f,
|
|
28624
28626
|
invalid: p,
|
|
28625
28627
|
duplicate: m
|
|
28626
|
-
}, de = (t) =>
|
|
28628
|
+
}, de = (t) => yD(ie && vD(te, [], ue) == null ? te : u, bD(e, t)), fe = (e) => {
|
|
28627
28629
|
E(e), O(de(e)), ee.current = null;
|
|
28628
|
-
let t =
|
|
28630
|
+
let t = mD(e);
|
|
28629
28631
|
t && w(new Set(C).add(t));
|
|
28630
28632
|
}, pe = () => fe(t ?? []), me = (e) => {
|
|
28631
|
-
let t =
|
|
28633
|
+
let t = hD(e.path), n = [{
|
|
28632
28634
|
key: "add-child",
|
|
28633
28635
|
label: l,
|
|
28634
28636
|
icon: /* @__PURE__ */ z(Vt, {
|
|
@@ -28650,7 +28652,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28650
28652
|
}), n;
|
|
28651
28653
|
}, he = (t) => {
|
|
28652
28654
|
if (!T) return null;
|
|
28653
|
-
let n =
|
|
28655
|
+
let n = vD(t, bD(e, T), ue);
|
|
28654
28656
|
return ee.current = n, n;
|
|
28655
28657
|
}, N = (e) => {
|
|
28656
28658
|
if (!T) return;
|
|
@@ -28666,12 +28668,12 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28666
28668
|
children: /* @__PURE__ */ z(ma, {
|
|
28667
28669
|
items: ce,
|
|
28668
28670
|
showFiles: !1,
|
|
28669
|
-
selectedPath: t == null ? void 0 :
|
|
28671
|
+
selectedPath: t == null ? void 0 : mD(t),
|
|
28670
28672
|
expandedPaths: oe,
|
|
28671
28673
|
onExpandedPathsChange: w,
|
|
28672
28674
|
loadingPaths: v,
|
|
28673
28675
|
onItemClick: (e) => {
|
|
28674
|
-
n(t != null &&
|
|
28676
|
+
n(t != null && mD(t) === e.path ? void 0 : hD(e.path));
|
|
28675
28677
|
},
|
|
28676
28678
|
getContextMenuItems: me,
|
|
28677
28679
|
createdFolderPath: le,
|
|
@@ -28683,7 +28685,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28683
28685
|
})
|
|
28684
28686
|
}),
|
|
28685
28687
|
/* @__PURE__ */ z("div", {
|
|
28686
|
-
className: W("my-2 h-px",
|
|
28688
|
+
className: W("my-2 h-px", jD.divider),
|
|
28687
28689
|
"aria-hidden": !0
|
|
28688
28690
|
}),
|
|
28689
28691
|
/* @__PURE__ */ B("div", {
|
|
@@ -28705,10 +28707,10 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28705
28707
|
})
|
|
28706
28708
|
]
|
|
28707
28709
|
});
|
|
28708
|
-
},
|
|
28710
|
+
}, ND = {
|
|
28709
28711
|
summaryTitle: "_summaryTitle_tf20a_1",
|
|
28710
28712
|
sectionHeading: "_sectionHeading_tf20a_5"
|
|
28711
|
-
},
|
|
28713
|
+
}, PD = ({ resource: e, renderSummary: t, history: n, isHistoryLoading: r = !1, hasHistoryError: i = !1, folderItems: a, selectedFolderPath: o, onSelectedFolderPathChange: s, onCreateFolder: c, expandedPaths: l, onExpandedPathsChange: u, loadingPaths: d, hasExistingPublicationInFolder: f, hasWriteAccess: p, isSubmitting: m, hasSubmitError: h = !1, allowReplace: g = !0, rules: _, onRulesChange: v, ruleSourceOptions: y, isRulesLoading: b = !1, hasRulesLoadError: x = !1, labels: S = {}, summaryTitleClassName: C = "dial-body-semi-text", headingClassName: w = "dial-body-semi-text", styles: T = {} }) => {
|
|
28712
28714
|
let { colors: E, folderTree: D, accessRules: O } = T, ee = {
|
|
28713
28715
|
...is({
|
|
28714
28716
|
"--pp-summary-title-text": E?.summaryTitleText,
|
|
@@ -28723,7 +28725,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28723
28725
|
versionTagText: E?.summaryVersionTagText
|
|
28724
28726
|
}, { folderLabel: A = "Publish to folder", replaceWarning: te = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: ne = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: re = "Publishing failed. Please try again.", folderEmptyStateLabel: ie, addSiblingFolderLabel: j, addChildFolderLabel: M, cancelCreatingFolderLabel: ae, createFolderEmptyNameError: oe, createFolderInvalidNameError: se, createFolderDuplicateNameError: ce, rootFolderLabel: le = "Organization", summaryVersionLabel: ue, accessRulesLabels: de, searchPlaceholder: fe, clearSearchAriaLabel: pe } = S, [me, he] = R(""), N = (e) => {
|
|
28725
28727
|
he(e ?? "");
|
|
28726
|
-
}, ge = o != null, _e = I(() =>
|
|
28728
|
+
}, ge = o != null, _e = I(() => oD({
|
|
28727
28729
|
hasSelectedFolder: ge,
|
|
28728
28730
|
hasExistingPublicationInFolder: f,
|
|
28729
28731
|
hasWriteAccess: p,
|
|
@@ -28738,7 +28740,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28738
28740
|
h,
|
|
28739
28741
|
g
|
|
28740
28742
|
]), ve = ge ? o[o.length - 1] ?? le : "", ye = t ? t() : /* @__PURE__ */ z("span", {
|
|
28741
|
-
className: W("truncate", C,
|
|
28743
|
+
className: W("truncate", C, ND.summaryTitle),
|
|
28742
28744
|
children: e?.title
|
|
28743
28745
|
});
|
|
28744
28746
|
return /* @__PURE__ */ B("div", {
|
|
@@ -28758,7 +28760,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28758
28760
|
colors: k
|
|
28759
28761
|
}), /* @__PURE__ */ B("div", { children: [
|
|
28760
28762
|
/* @__PURE__ */ z("div", {
|
|
28761
|
-
className: W("mb-2", w,
|
|
28763
|
+
className: W("mb-2", w, ND.sectionHeading),
|
|
28762
28764
|
children: A
|
|
28763
28765
|
}),
|
|
28764
28766
|
/* @__PURE__ */ z("div", {
|
|
@@ -28772,7 +28774,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28772
28774
|
"aria-label": fe
|
|
28773
28775
|
})
|
|
28774
28776
|
}),
|
|
28775
|
-
/* @__PURE__ */ z(
|
|
28777
|
+
/* @__PURE__ */ z(MD, {
|
|
28776
28778
|
items: a,
|
|
28777
28779
|
selectedPath: o,
|
|
28778
28780
|
onSelectedPathChange: s,
|
|
@@ -28792,12 +28794,12 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28792
28794
|
rootLabel: le,
|
|
28793
28795
|
styles: D
|
|
28794
28796
|
}),
|
|
28795
|
-
_e.calloutKind !==
|
|
28797
|
+
_e.calloutKind !== aD.None && _e.calloutKind !== aD.Info && /* @__PURE__ */ z("div", {
|
|
28796
28798
|
className: "mt-3",
|
|
28797
28799
|
children: /* @__PURE__ */ z(ke, {
|
|
28798
28800
|
type: Ae.SectionMessage,
|
|
28799
|
-
variant:
|
|
28800
|
-
message:
|
|
28801
|
+
variant: FD(_e.calloutKind),
|
|
28802
|
+
message: LD(_e.calloutKind, {
|
|
28801
28803
|
replaceWarning: te,
|
|
28802
28804
|
noAccessError: ne,
|
|
28803
28805
|
submitError: re,
|
|
@@ -28808,7 +28810,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28808
28810
|
}),
|
|
28809
28811
|
/* @__PURE__ */ z("div", {
|
|
28810
28812
|
className: "mt-4",
|
|
28811
|
-
children: /* @__PURE__ */ z(
|
|
28813
|
+
children: /* @__PURE__ */ z(AD, {
|
|
28812
28814
|
rules: _,
|
|
28813
28815
|
onRulesChange: v,
|
|
28814
28816
|
sourceOptions: y,
|
|
@@ -28822,7 +28824,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28822
28824
|
})
|
|
28823
28825
|
] })]
|
|
28824
28826
|
});
|
|
28825
|
-
},
|
|
28827
|
+
}, FD = (e) => e === aD.ReplaceWarning ? je.Warning : je.Error, ID = (e, t) => {
|
|
28826
28828
|
let [n, r, ...i] = e.split("{folder}");
|
|
28827
28829
|
return r === void 0 || i.length > 0 ? e : /* @__PURE__ */ B(ht, { children: [
|
|
28828
28830
|
n,
|
|
@@ -28832,11 +28834,11 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28832
28834
|
}),
|
|
28833
28835
|
r
|
|
28834
28836
|
] });
|
|
28835
|
-
},
|
|
28837
|
+
}, LD = (e, t) => e === aD.ReplaceWarning ? ID(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName) : e === aD.NoAccess ? ID(t.noAccessError, t.folderName) : t.submitError, RD = { footer: "_footer_dks1v_1" }, zD = ({ version: e, hasExistingPublicationInFolder: t, isSubmitDisabled: n, isSubmitLoading: r, onCancel: i, onSubmit: a, labels: o = {}, colors: s }) => {
|
|
28836
28838
|
let c = is({ "--pf-border": s?.border }), { cancelLabel: l = "Cancel", publishDefaultLabel: u = "Publish", updateLabel: d = "Update version {version}", publishingInProgressLabel: f = "Publishing…" } = o, p = r ? f : t && e != null ? d.replace("{version}", e) : u;
|
|
28837
28839
|
return /* @__PURE__ */ B("div", {
|
|
28838
28840
|
style: c,
|
|
28839
|
-
className: W("flex items-center justify-end gap-2 border-t px-3.5 py-4 rtl:flex-row-reverse rtl:justify-start",
|
|
28841
|
+
className: W("flex items-center justify-end gap-2 border-t px-3.5 py-4 rtl:flex-row-reverse rtl:justify-start", RD.footer),
|
|
28840
28842
|
children: [/* @__PURE__ */ z(_e, {
|
|
28841
28843
|
label: l,
|
|
28842
28844
|
disabled: r,
|
|
@@ -28848,20 +28850,20 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28848
28850
|
onClick: a
|
|
28849
28851
|
})]
|
|
28850
28852
|
});
|
|
28851
|
-
},
|
|
28853
|
+
}, BD = (e) => e.reduce((e, t) => t.type === Rn.File ? e + 1 : e + BD(t.items), 0), VD = (e) => {
|
|
28852
28854
|
let t = /* @__PURE__ */ new Set(), n = (e) => {
|
|
28853
28855
|
for (let r of e) r.type === Rn.Folder && (t.add(r.id), n(r.items));
|
|
28854
28856
|
};
|
|
28855
28857
|
return n(e), t;
|
|
28856
|
-
},
|
|
28858
|
+
}, HD = (e, t) => {
|
|
28857
28859
|
if (t != null) for (let n of e) {
|
|
28858
28860
|
if (n.id === t) return n.name;
|
|
28859
28861
|
if (n.type === Rn.Folder) {
|
|
28860
|
-
let e =
|
|
28862
|
+
let e = HD(n.items, t);
|
|
28861
28863
|
if (e != null) return e;
|
|
28862
28864
|
}
|
|
28863
28865
|
}
|
|
28864
|
-
},
|
|
28866
|
+
}, UD = {
|
|
28865
28867
|
sectionHeading: "_sectionHeading_jnq93_1",
|
|
28866
28868
|
rowAlt: "_rowAlt_jnq93_5",
|
|
28867
28869
|
label: "_label_jnq93_9",
|
|
@@ -28869,19 +28871,19 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28869
28871
|
valueTrue: "_valueTrue_jnq93_17",
|
|
28870
28872
|
valueFalse: "_valueFalse_jnq93_21",
|
|
28871
28873
|
valueText: "_valueText_jnq93_25"
|
|
28872
|
-
},
|
|
28874
|
+
}, WD = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ B(ht, { children: [/* @__PURE__ */ z(Et, {
|
|
28873
28875
|
size: k.MD,
|
|
28874
|
-
className: W(r,
|
|
28876
|
+
className: W(r, UD.checkIcon)
|
|
28875
28877
|
}), /* @__PURE__ */ z("span", {
|
|
28876
|
-
className: W(n,
|
|
28878
|
+
className: W(n, UD.valueTrue),
|
|
28877
28879
|
children: i
|
|
28878
28880
|
})] }) : e === !1 ? /* @__PURE__ */ z("span", {
|
|
28879
|
-
className: W(t,
|
|
28881
|
+
className: W(t, UD.valueFalse),
|
|
28880
28882
|
children: a
|
|
28881
28883
|
}) : /* @__PURE__ */ z("span", {
|
|
28882
|
-
className: W("min-w-0 break-words", t,
|
|
28884
|
+
className: W("min-w-0 break-words", t, UD.valueText),
|
|
28883
28885
|
children: e
|
|
28884
|
-
}),
|
|
28886
|
+
}), GD = ({ 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__ */ z("div", {
|
|
28885
28887
|
className: "flex flex-col",
|
|
28886
28888
|
style: is({
|
|
28887
28889
|
"--tv-section-heading": l?.sectionHeading,
|
|
@@ -28893,18 +28895,18 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28893
28895
|
"--tv-value-text": l?.valueText
|
|
28894
28896
|
}),
|
|
28895
28897
|
children: t != null && t.length > 0 && /* @__PURE__ */ B("section", { children: [/* @__PURE__ */ z("p", {
|
|
28896
|
-
className: W("mb-3 mt-0", o,
|
|
28898
|
+
className: W("mb-3 mt-0", o, UD.sectionHeading),
|
|
28897
28899
|
children: e
|
|
28898
28900
|
}), /* @__PURE__ */ z("ul", {
|
|
28899
28901
|
className: "m-0 list-none p-0",
|
|
28900
28902
|
children: t.map((e, t) => /* @__PURE__ */ B("li", {
|
|
28901
|
-
className: W("flex items-center rounded px-3 py-2", t % 2 == 0 ?
|
|
28903
|
+
className: W("flex items-center rounded px-3 py-2", t % 2 == 0 ? UD.rowAlt : void 0),
|
|
28902
28904
|
children: [/* @__PURE__ */ z("span", {
|
|
28903
|
-
className: W(n,
|
|
28905
|
+
className: W(n, UD.label, "w-2/5 shrink-0"),
|
|
28904
28906
|
children: e.label
|
|
28905
28907
|
}), /* @__PURE__ */ z("div", {
|
|
28906
28908
|
className: "flex w-3/5 min-w-0 items-center gap-1",
|
|
28907
|
-
children: /* @__PURE__ */ z(
|
|
28909
|
+
children: /* @__PURE__ */ z(WD, {
|
|
28908
28910
|
value: e.value,
|
|
28909
28911
|
valueClassName: r,
|
|
28910
28912
|
valueTrueClassName: i,
|
|
@@ -28915,30 +28917,30 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28915
28917
|
})]
|
|
28916
28918
|
}, e.label))
|
|
28917
28919
|
})] })
|
|
28918
|
-
}),
|
|
28920
|
+
}), KD = { sectionHeading: "_sectionHeading_148lj_1" }, qD = {
|
|
28919
28921
|
[wn.Python]: "Python",
|
|
28920
28922
|
[wn.Curl]: "cURL",
|
|
28921
28923
|
[wn.JavaScript]: "JavaScript"
|
|
28922
|
-
},
|
|
28924
|
+
}, JD = {
|
|
28923
28925
|
[wn.Python]: "python",
|
|
28924
28926
|
[wn.Curl]: "bash",
|
|
28925
28927
|
[wn.JavaScript]: "javascript"
|
|
28926
|
-
},
|
|
28928
|
+
}, YD = ({ snippets: e, sectionLabel: t, copyAriaLabel: n = "Copy", copiedStatusLabel: r = "Copied!", codeClassName: i = "dial-code-text", codeTitleClassName: a = "dial-tiny-semi-text", sectionClassName: o = "dial-caption-text" }) => {
|
|
28927
28929
|
let [s, c] = R(e[0]?.language ?? wn.Python);
|
|
28928
28930
|
F(() => {
|
|
28929
28931
|
c(e[0]?.language ?? wn.Python);
|
|
28930
28932
|
}, [e]);
|
|
28931
28933
|
let l = I(() => e.map((e) => ({
|
|
28932
28934
|
key: e.language,
|
|
28933
|
-
label:
|
|
28935
|
+
label: qD[e.language] ?? e.language,
|
|
28934
28936
|
onClick: () => c(e.language)
|
|
28935
28937
|
})), [e]), u = e.find((e) => e.language === s)?.code ?? "", d = e.length > 1;
|
|
28936
28938
|
return /* @__PURE__ */ B("section", { children: [t != null && /* @__PURE__ */ z("p", {
|
|
28937
|
-
className: W("mb-3 mt-0", o,
|
|
28939
|
+
className: W("mb-3 mt-0", o, KD.sectionHeading),
|
|
28938
28940
|
children: t
|
|
28939
28941
|
}), /* @__PURE__ */ z(RT, {
|
|
28940
|
-
language:
|
|
28941
|
-
title:
|
|
28942
|
+
language: JD[s] ?? s,
|
|
28943
|
+
title: qD[s] ?? s,
|
|
28942
28944
|
value: u,
|
|
28943
28945
|
copyLabel: n,
|
|
28944
28946
|
copiedLabel: r,
|
|
@@ -28953,7 +28955,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28953
28955
|
selectedKey: s
|
|
28954
28956
|
}) : void 0
|
|
28955
28957
|
})] });
|
|
28956
|
-
},
|
|
28958
|
+
}, XD = ({ 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", copiedStatusLabel: l = "Copied!", labelClassName: u = "dial-small-semi-text", valueClassName: d = "dial-small-text", codeClassName: f = "dial-code-text", codeTitleClassName: p = "dial-tiny-semi-text", sectionClassName: m = "dial-caption-text" }) => {
|
|
28957
28959
|
let [h, g] = R(0), _ = I(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = I(() => _.map((e, t) => ({
|
|
28958
28960
|
key: e.url,
|
|
28959
28961
|
label: e.label,
|
|
@@ -28967,7 +28969,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28967
28969
|
return /* @__PURE__ */ B("div", {
|
|
28968
28970
|
className: "flex flex-col gap-6",
|
|
28969
28971
|
children: [
|
|
28970
|
-
C && /* @__PURE__ */ z(
|
|
28972
|
+
C && /* @__PURE__ */ z(GD, {
|
|
28971
28973
|
sectionLabel: t,
|
|
28972
28974
|
values: x,
|
|
28973
28975
|
labelClassName: u,
|
|
@@ -28985,7 +28987,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
28985
28987
|
}),
|
|
28986
28988
|
v && /* @__PURE__ */ B("section", { children: [
|
|
28987
28989
|
/* @__PURE__ */ z("p", {
|
|
28988
|
-
className: W("mb-3 mt-0", m,
|
|
28990
|
+
className: W("mb-3 mt-0", m, KD.sectionHeading),
|
|
28989
28991
|
children: n
|
|
28990
28992
|
}),
|
|
28991
28993
|
y != null && /* @__PURE__ */ z(RT, {
|
|
@@ -29006,7 +29008,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29006
29008
|
}, h),
|
|
29007
29009
|
y?.snippets != null && y.snippets.length > 0 && /* @__PURE__ */ z("div", {
|
|
29008
29010
|
className: "mt-4",
|
|
29009
|
-
children: /* @__PURE__ */ z(
|
|
29011
|
+
children: /* @__PURE__ */ z(YD, {
|
|
29010
29012
|
snippets: y.snippets,
|
|
29011
29013
|
copyAriaLabel: c,
|
|
29012
29014
|
copiedStatusLabel: l,
|
|
@@ -29016,7 +29018,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29016
29018
|
}, h)
|
|
29017
29019
|
})
|
|
29018
29020
|
] }),
|
|
29019
|
-
!v && T && /* @__PURE__ */ z(
|
|
29021
|
+
!v && T && /* @__PURE__ */ z(YD, {
|
|
29020
29022
|
snippets: e.snippets ?? [],
|
|
29021
29023
|
sectionLabel: r,
|
|
29022
29024
|
copyAriaLabel: c,
|
|
@@ -29026,7 +29028,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29026
29028
|
sectionClassName: m
|
|
29027
29029
|
}),
|
|
29028
29030
|
E && /* @__PURE__ */ B("section", { children: [/* @__PURE__ */ z("p", {
|
|
29029
|
-
className: W("mb-3 mt-0", m,
|
|
29031
|
+
className: W("mb-3 mt-0", m, KD.sectionHeading),
|
|
29030
29032
|
children: o
|
|
29031
29033
|
}), /* @__PURE__ */ z(RT, {
|
|
29032
29034
|
language: "bash",
|
|
@@ -29037,7 +29039,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29037
29039
|
hideDownload: !0
|
|
29038
29040
|
})] }),
|
|
29039
29041
|
D && /* @__PURE__ */ B("section", { children: [/* @__PURE__ */ z("p", {
|
|
29040
|
-
className: W("mb-3 mt-0", m,
|
|
29042
|
+
className: W("mb-3 mt-0", m, KD.sectionHeading),
|
|
29041
29043
|
children: s
|
|
29042
29044
|
}), /* @__PURE__ */ z(RT, {
|
|
29043
29045
|
language: "json",
|
|
@@ -29049,11 +29051,11 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29049
29051
|
})] })
|
|
29050
29052
|
]
|
|
29051
29053
|
});
|
|
29052
|
-
},
|
|
29054
|
+
}, ZD = {
|
|
29053
29055
|
message: "_message_13mok_1",
|
|
29054
29056
|
consequences: "_consequences_13mok_5",
|
|
29055
29057
|
footer: "_footer_13mok_9"
|
|
29056
|
-
},
|
|
29058
|
+
}, QD = ({ confirmLabel: e, cancelLabel: t, variant: n = On.Info, isLoading: r = !1, isConfirmDisabled: i = !1, loadingStatusLabel: a, onConfirm: o, onCancel: s }) => {
|
|
29057
29059
|
let c = n === On.Danger, l = (() => {
|
|
29058
29060
|
if (r) return /* @__PURE__ */ z(Ue, { size: k.SM });
|
|
29059
29061
|
if (c) return /* @__PURE__ */ z(nn, {
|
|
@@ -29063,7 +29065,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29063
29065
|
});
|
|
29064
29066
|
})(), u = c ? te : Ee;
|
|
29065
29067
|
return /* @__PURE__ */ B("div", {
|
|
29066
|
-
className: W("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start",
|
|
29068
|
+
className: W("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start", ZD.footer),
|
|
29067
29069
|
children: [
|
|
29068
29070
|
/* @__PURE__ */ z(_e, {
|
|
29069
29071
|
label: t,
|
|
@@ -29084,78 +29086,78 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29084
29086
|
})
|
|
29085
29087
|
]
|
|
29086
29088
|
});
|
|
29087
|
-
},
|
|
29089
|
+
}, $D = {
|
|
29088
29090
|
info: "_info_lklha_1",
|
|
29089
29091
|
danger: "_danger_lklha_5"
|
|
29090
|
-
},
|
|
29092
|
+
}, eO = ({ item: e, variant: t = On.Info, iconSize: n = 40 }) => /* @__PURE__ */ z(Pv, {
|
|
29091
29093
|
item: e,
|
|
29092
29094
|
iconSize: n,
|
|
29093
29095
|
hasVersionTag: !1,
|
|
29094
|
-
className: t === On.Danger ?
|
|
29095
|
-
}),
|
|
29096
|
+
className: t === On.Danger ? $D.danger : $D.info
|
|
29097
|
+
}), tO = ({ item: e, message: t, consequences: n, variant: r = On.Info, messageClassName: i = "dial-small-text", children: a }) => /* @__PURE__ */ B("div", {
|
|
29096
29098
|
className: "flex flex-col gap-4 px-6 py-4",
|
|
29097
29099
|
children: [
|
|
29098
|
-
/* @__PURE__ */ z(
|
|
29100
|
+
/* @__PURE__ */ z(eO, {
|
|
29099
29101
|
item: e,
|
|
29100
29102
|
variant: r
|
|
29101
29103
|
}),
|
|
29102
29104
|
/* @__PURE__ */ z("p", {
|
|
29103
|
-
className: W(i, "break-words",
|
|
29105
|
+
className: W(i, "break-words", ZD.message),
|
|
29104
29106
|
children: t
|
|
29105
29107
|
}),
|
|
29106
29108
|
n != null && n.length > 0 && /* @__PURE__ */ z("ul", {
|
|
29107
|
-
className: W("flex list-disc flex-col gap-2 ps-5", i,
|
|
29109
|
+
className: W("flex list-disc flex-col gap-2 ps-5", i, ZD.consequences),
|
|
29108
29110
|
children: n.map((e) => /* @__PURE__ */ z("li", { children: e }, e))
|
|
29109
29111
|
}),
|
|
29110
29112
|
a
|
|
29111
29113
|
]
|
|
29112
|
-
}),
|
|
29114
|
+
}), nO = {
|
|
29113
29115
|
sunkenBox: "_sunkenBox_1lqi3_1",
|
|
29114
29116
|
raisedBox: "_raisedBox_1lqi3_5",
|
|
29115
29117
|
activeIcon: "_activeIcon_1lqi3_9"
|
|
29116
|
-
},
|
|
29118
|
+
}, rO = /* @__PURE__ */ function(e) {
|
|
29117
29119
|
return e.Sunken = "sunken", e.Raised = "raised", e;
|
|
29118
|
-
}({}),
|
|
29119
|
-
sunken:
|
|
29120
|
-
raised:
|
|
29121
|
-
},
|
|
29120
|
+
}({}), iO = {
|
|
29121
|
+
sunken: nO.sunkenBox,
|
|
29122
|
+
raised: nO.raisedBox
|
|
29123
|
+
}, aO = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */ B("span", {
|
|
29122
29124
|
className: "relative inline-flex shrink-0",
|
|
29123
29125
|
children: [
|
|
29124
29126
|
/* @__PURE__ */ z("span", {
|
|
29125
|
-
className: W("flex size-8 items-center justify-center rounded-lg",
|
|
29127
|
+
className: W("flex size-8 items-center justify-center rounded-lg", iO[n]),
|
|
29126
29128
|
children: e
|
|
29127
29129
|
}),
|
|
29128
29130
|
t && /* @__PURE__ */ z(Et, {
|
|
29129
29131
|
size: k.MD,
|
|
29130
29132
|
"aria-hidden": !0,
|
|
29131
|
-
className: W("absolute -end-2 -top-2",
|
|
29133
|
+
className: W("absolute -end-2 -top-2", nO.activeIcon)
|
|
29132
29134
|
}),
|
|
29133
29135
|
r != null && /* @__PURE__ */ z("span", {
|
|
29134
29136
|
className: "sr-only",
|
|
29135
29137
|
children: r
|
|
29136
29138
|
})
|
|
29137
29139
|
]
|
|
29138
|
-
}),
|
|
29140
|
+
}), oO = {
|
|
29139
29141
|
card: "_card_tqnz7_1",
|
|
29140
29142
|
icon: "_icon_tqnz7_6",
|
|
29141
29143
|
title: "_title_tqnz7_10",
|
|
29142
29144
|
description: "_description_tqnz7_14"
|
|
29143
|
-
},
|
|
29145
|
+
}, sO = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ B("div", {
|
|
29144
29146
|
role: "status",
|
|
29145
29147
|
"aria-live": "polite",
|
|
29146
|
-
className: W("flex items-center gap-3 rounded-xl p-3",
|
|
29148
|
+
className: W("flex items-center gap-3 rounded-xl p-3", oO.card),
|
|
29147
29149
|
children: [/* @__PURE__ */ z("span", {
|
|
29148
|
-
className: W("shrink-0",
|
|
29150
|
+
className: W("shrink-0", oO.icon, n != null && "mt-0.5"),
|
|
29149
29151
|
children: e
|
|
29150
29152
|
}), /* @__PURE__ */ B("div", {
|
|
29151
29153
|
className: "flex min-w-0 flex-1 items-center justify-between gap-2",
|
|
29152
29154
|
children: [/* @__PURE__ */ B("div", {
|
|
29153
29155
|
className: "flex min-w-0 flex-col gap-1",
|
|
29154
29156
|
children: [/* @__PURE__ */ z("span", {
|
|
29155
|
-
className: W(i,
|
|
29157
|
+
className: W(i, oO.title),
|
|
29156
29158
|
children: t
|
|
29157
29159
|
}), n != null && /* @__PURE__ */ z("span", {
|
|
29158
|
-
className: W(a,
|
|
29160
|
+
className: W(a, oO.description),
|
|
29159
29161
|
children: n
|
|
29160
29162
|
})]
|
|
29161
29163
|
}), r != null && /* @__PURE__ */ z("div", {
|
|
@@ -29163,53 +29165,53 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29163
29165
|
children: r
|
|
29164
29166
|
})]
|
|
29165
29167
|
})]
|
|
29166
|
-
}),
|
|
29168
|
+
}), cO = (e) => e === An.ApiKey ? "You are currently using organization API key to access this toolset." : "You are currently using organization credentials to access this toolset.", lO = (e) => e === An.ApiKey ? "Configure your personal API key to have access to your data." : "Login using personal account to have access to your data.", uO = (e) => e === An.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", dO = (e) => e === An.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", fO = 20, pO = ({ state: e, authenticationType: t, texts: n }) => {
|
|
29167
29169
|
let r = /* @__PURE__ */ z(bt, {
|
|
29168
|
-
size:
|
|
29170
|
+
size: fO,
|
|
29169
29171
|
"aria-hidden": !0,
|
|
29170
29172
|
stroke: A
|
|
29171
29173
|
});
|
|
29172
29174
|
if (e === Fn.PersonalCredentialsActive) {
|
|
29173
|
-
let e = (n?.personalCredentialsActiveBannerTitle ??
|
|
29174
|
-
return /* @__PURE__ */ z(
|
|
29175
|
-
icon: /* @__PURE__ */ z(
|
|
29175
|
+
let e = (n?.personalCredentialsActiveBannerTitle ?? dO)(t);
|
|
29176
|
+
return /* @__PURE__ */ z(sO, {
|
|
29177
|
+
icon: /* @__PURE__ */ z(aO, {
|
|
29176
29178
|
icon: /* @__PURE__ */ z(rn, {
|
|
29177
29179
|
size: k.SM,
|
|
29178
29180
|
"aria-hidden": !0,
|
|
29179
29181
|
stroke: A
|
|
29180
29182
|
}),
|
|
29181
29183
|
isActive: !0,
|
|
29182
|
-
surface:
|
|
29184
|
+
surface: rO.Raised
|
|
29183
29185
|
}),
|
|
29184
29186
|
title: e
|
|
29185
29187
|
});
|
|
29186
29188
|
}
|
|
29187
29189
|
if (e === Fn.OrgCredentialsActive) {
|
|
29188
|
-
let e = (n?.orgCredentialsActiveBannerTitle ??
|
|
29189
|
-
return /* @__PURE__ */ z(
|
|
29190
|
-
icon: /* @__PURE__ */ z(
|
|
29190
|
+
let e = (n?.orgCredentialsActiveBannerTitle ?? uO)(t);
|
|
29191
|
+
return /* @__PURE__ */ z(sO, {
|
|
29192
|
+
icon: /* @__PURE__ */ z(aO, {
|
|
29191
29193
|
icon: /* @__PURE__ */ z(bt, {
|
|
29192
29194
|
size: k.SM,
|
|
29193
29195
|
"aria-hidden": !0,
|
|
29194
29196
|
stroke: A
|
|
29195
29197
|
}),
|
|
29196
29198
|
isActive: !0,
|
|
29197
|
-
surface:
|
|
29199
|
+
surface: rO.Raised
|
|
29198
29200
|
}),
|
|
29199
29201
|
title: e
|
|
29200
29202
|
});
|
|
29201
29203
|
}
|
|
29202
|
-
return /* @__PURE__ */ z(
|
|
29204
|
+
return /* @__PURE__ */ z(sO, {
|
|
29203
29205
|
icon: r,
|
|
29204
|
-
title: (n?.orgFallbackBannerTitle ??
|
|
29205
|
-
description: (n?.orgFallbackBannerDescription ??
|
|
29206
|
+
title: (n?.orgFallbackBannerTitle ?? cO)(t),
|
|
29207
|
+
description: (n?.orgFallbackBannerDescription ?? lO)(t)
|
|
29206
29208
|
});
|
|
29207
|
-
},
|
|
29209
|
+
}, mO = {
|
|
29208
29210
|
surface: "_surface_1q3s8_1",
|
|
29209
29211
|
description: "_description_1q3s8_5",
|
|
29210
29212
|
rowDescription: "_rowDescription_1q3s8_9",
|
|
29211
29213
|
errorText: "_errorText_1q3s8_13"
|
|
29212
|
-
},
|
|
29214
|
+
}, hO = ({ item: e, level: t, label: n, description: r, icon: i, status: a, isActive: o, authenticationType: s, apiKeyAddedWhen: c, onLogin: l, onRequestLogout: u, onRequestDeleteApiKey: d, texts: f, labelClassName: p, descriptionClassName: m, errorClassName: h, keyCardTitleClassName: g, keyCardDescriptionClassName: v, deleteActionClassName: y }) => {
|
|
29213
29215
|
let [b, x] = R(""), [S, C] = R(!1), [w, T] = R(!1), E = a === jn.SignedIn, D = P(() => {
|
|
29214
29216
|
l?.(e, { level: t });
|
|
29215
29217
|
}, [
|
|
@@ -29244,7 +29246,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29244
29246
|
}, [t, d]), ie = f?.loginActionLabel ?? "Log in", j = f?.logoutActionLabel ?? "Log out", M = f?.addApiKeyActionLabel ?? "Add", ae = f?.deleteActionLabel ?? "Delete", oe = f?.credentialsSignedInLabel ?? "Signed in", se = f?.credentialsSignedOutLabel ?? "Signed out", ce = f?.addingApiKeyStatusLabel ?? "Adding", le = f?.apiKeyConfiguredMessage ?? "Key has been configured", ue = c == null ? void 0 : (f?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(c);
|
|
29245
29247
|
return /* @__PURE__ */ B("div", {
|
|
29246
29248
|
className: "flex items-start gap-3 rounded-xl p-3",
|
|
29247
|
-
children: [/* @__PURE__ */ z(
|
|
29249
|
+
children: [/* @__PURE__ */ z(aO, {
|
|
29248
29250
|
icon: i,
|
|
29249
29251
|
isActive: o,
|
|
29250
29252
|
statusLabel: o ? oe : se
|
|
@@ -29259,7 +29261,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29259
29261
|
className: p,
|
|
29260
29262
|
children: n
|
|
29261
29263
|
}), /* @__PURE__ */ z("span", {
|
|
29262
|
-
className: W(m,
|
|
29264
|
+
className: W(m, mO.rowDescription),
|
|
29263
29265
|
children: r
|
|
29264
29266
|
})]
|
|
29265
29267
|
}), s === An.OAuth && (E ? /* @__PURE__ */ z(te, {
|
|
@@ -29299,13 +29301,13 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29299
29301
|
disabled: w
|
|
29300
29302
|
})]
|
|
29301
29303
|
}), S && /* @__PURE__ */ z("span", {
|
|
29302
|
-
className: W(h,
|
|
29304
|
+
className: W(h, mO.errorText),
|
|
29303
29305
|
children: f?.apiKeyRequiredErrorMessage ?? "API key is required."
|
|
29304
29306
|
})]
|
|
29305
29307
|
}),
|
|
29306
29308
|
s === An.ApiKey && E && /* @__PURE__ */ z("div", {
|
|
29307
29309
|
className: "animate-fadeIn pt-1",
|
|
29308
|
-
children: /* @__PURE__ */ z(
|
|
29310
|
+
children: /* @__PURE__ */ z(sO, {
|
|
29309
29311
|
icon: /* @__PURE__ */ z(Ut, {
|
|
29310
29312
|
size: k.SM,
|
|
29311
29313
|
"aria-hidden": !0,
|
|
@@ -29325,16 +29327,16 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29325
29327
|
]
|
|
29326
29328
|
})]
|
|
29327
29329
|
});
|
|
29328
|
-
},
|
|
29330
|
+
}, gO = (e) => e === An.ApiKey ? "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default for toolset access." : "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default.", _O = ({ item: e, onLogin: t, onRequestLogout: n, onRequestDeleteApiKey: r, texts: i, detailsStyles: a, deleteActionClassName: o = "text-error" }) => {
|
|
29329
29331
|
let { credentialsDescriptionClassName: s = "dial-body-paragraph-text", credentialsRowLabelClassName: c = "dial-small-semi-text", credentialsRowDescriptionClassName: l = "dial-small-text", credentialsErrorClassName: u = "dial-caption-text", credentialsKeyCardTitleClassName: d = "dial-tiny-semi-text", credentialsKeyCardDescriptionClassName: f = "dial-tiny-text" } = a?.typography ?? {}, p = e.credentials;
|
|
29330
29332
|
if (p == null) return null;
|
|
29331
|
-
let m = (i?.credentialsManagementDescription ??
|
|
29333
|
+
let m = (i?.credentialsManagementDescription ?? gO)(p.authenticationType), h = p.userStatus === jn.SignedIn, g = !h && p.globalStatus === jn.SignedIn;
|
|
29332
29334
|
return /* @__PURE__ */ B("div", {
|
|
29333
29335
|
className: "flex flex-col",
|
|
29334
29336
|
children: [/* @__PURE__ */ z("div", {
|
|
29335
29337
|
className: "px-6 py-4",
|
|
29336
29338
|
children: /* @__PURE__ */ z("div", {
|
|
29337
|
-
className: W("rounded-xl p-3",
|
|
29339
|
+
className: W("rounded-xl p-3", mO.surface),
|
|
29338
29340
|
children: /* @__PURE__ */ z(Mv, {
|
|
29339
29341
|
item: e,
|
|
29340
29342
|
iconSize: 40,
|
|
@@ -29344,11 +29346,11 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29344
29346
|
}), /* @__PURE__ */ B("div", {
|
|
29345
29347
|
className: "flex flex-col gap-5 px-6 py-4",
|
|
29346
29348
|
children: [/* @__PURE__ */ z("span", {
|
|
29347
|
-
className: W(s,
|
|
29349
|
+
className: W(s, mO.description),
|
|
29348
29350
|
children: m
|
|
29349
29351
|
}), /* @__PURE__ */ B("div", {
|
|
29350
29352
|
className: "flex flex-col",
|
|
29351
|
-
children: [/* @__PURE__ */ z(
|
|
29353
|
+
children: [/* @__PURE__ */ z(hO, {
|
|
29352
29354
|
item: e,
|
|
29353
29355
|
level: Mn.User,
|
|
29354
29356
|
label: i?.personalCredentialsLabel ?? "Personal credentials",
|
|
@@ -29372,7 +29374,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29372
29374
|
keyCardTitleClassName: d,
|
|
29373
29375
|
keyCardDescriptionClassName: f,
|
|
29374
29376
|
deleteActionClassName: o
|
|
29375
|
-
}), /* @__PURE__ */ z(
|
|
29377
|
+
}), /* @__PURE__ */ z(hO, {
|
|
29376
29378
|
item: e,
|
|
29377
29379
|
level: Mn.Global,
|
|
29378
29380
|
label: i?.organizationCredentialsLabel ?? "Organization credentials",
|
|
@@ -29400,16 +29402,16 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29400
29402
|
})]
|
|
29401
29403
|
})]
|
|
29402
29404
|
});
|
|
29403
|
-
},
|
|
29405
|
+
}, vO = {
|
|
29404
29406
|
skeletonColor: "var(--cat-details-skeleton, var(--bg-control-disable-primary, #dce0e8))",
|
|
29405
29407
|
backdrop: "_backdrop_16ka5_2",
|
|
29406
29408
|
panel: "_panel_16ka5_6",
|
|
29407
29409
|
divider: "_divider_16ka5_11",
|
|
29408
29410
|
content: "_content_16ka5_15",
|
|
29409
29411
|
publishTitle: "_publishTitle_16ka5_20"
|
|
29410
|
-
},
|
|
29412
|
+
}, yO = /* @__PURE__ */ function(e) {
|
|
29411
29413
|
return e.Idle = "idle", e.Loading = "loading", e.Resolved = "resolved", e.Unknown = "unknown", e;
|
|
29412
|
-
}({}),
|
|
29414
|
+
}({}), bO = { divider: "_divider_nhloi_1" }, xO = 16, SO = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, onLogin: i, onLogout: a, onClose: o, texts: s, deleteActionClassName: c = "text-error" }) => {
|
|
29413
29415
|
let [l, u] = R(""), [d, f] = R(!1), [p, m] = R(!1), [h, g] = R(!1), _ = n === jn.SignedIn, v = P((e) => {
|
|
29414
29416
|
u(e ?? ""), f(!1);
|
|
29415
29417
|
}, []), y = P(async () => {
|
|
@@ -29455,7 +29457,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29455
29457
|
children: x
|
|
29456
29458
|
})
|
|
29457
29459
|
}),
|
|
29458
|
-
/* @__PURE__ */ z("div", { className: W("mx-4 h-px",
|
|
29460
|
+
/* @__PURE__ */ z("div", { className: W("mx-4 h-px", bO.divider) }),
|
|
29459
29461
|
!_ && /* @__PURE__ */ B("div", {
|
|
29460
29462
|
className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
|
|
29461
29463
|
children: [/* @__PURE__ */ B("div", {
|
|
@@ -29474,7 +29476,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29474
29476
|
label: p ? void 0 : S,
|
|
29475
29477
|
"aria-label": p ? w : void 0,
|
|
29476
29478
|
iconBefore: p ? /* @__PURE__ */ z(Ue, {
|
|
29477
|
-
size:
|
|
29479
|
+
size: xO,
|
|
29478
29480
|
ariaLabel: w
|
|
29479
29481
|
}) : void 0,
|
|
29480
29482
|
onClick: y,
|
|
@@ -29487,7 +29489,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29487
29489
|
}),
|
|
29488
29490
|
_ && /* @__PURE__ */ z("div", {
|
|
29489
29491
|
className: "animate-fadeIn px-4 py-3.5",
|
|
29490
|
-
children: /* @__PURE__ */ z(
|
|
29492
|
+
children: /* @__PURE__ */ z(sO, {
|
|
29491
29493
|
icon: /* @__PURE__ */ z(Ut, {
|
|
29492
29494
|
size: 20,
|
|
29493
29495
|
"aria-hidden": !0,
|
|
@@ -29499,7 +29501,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29499
29501
|
label: h ? void 0 : C,
|
|
29500
29502
|
"aria-label": h ? T : void 0,
|
|
29501
29503
|
iconBefore: h ? /* @__PURE__ */ z(Ue, {
|
|
29502
|
-
size:
|
|
29504
|
+
size: xO,
|
|
29503
29505
|
ariaLabel: T
|
|
29504
29506
|
}) : void 0,
|
|
29505
29507
|
className: c,
|
|
@@ -29510,7 +29512,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29510
29512
|
})
|
|
29511
29513
|
]
|
|
29512
29514
|
});
|
|
29513
|
-
},
|
|
29515
|
+
}, CO = { name: "_name_gfs1p_1" }, wO = (e) => e.isMyApp === !0, TO = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
|
|
29514
29516
|
let [a, o] = R(!1), s = P(() => {
|
|
29515
29517
|
if (n) {
|
|
29516
29518
|
o((e) => !e);
|
|
@@ -29522,7 +29524,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29522
29524
|
t,
|
|
29523
29525
|
n
|
|
29524
29526
|
]);
|
|
29525
|
-
if (!
|
|
29527
|
+
if (!wO(e) || r && !r(e)) return null;
|
|
29526
29528
|
let c = /* @__PURE__ */ z(Ee, {
|
|
29527
29529
|
label: i,
|
|
29528
29530
|
iconBefore: /* @__PURE__ */ z(Qt, {
|
|
@@ -29547,14 +29549,14 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29547
29549
|
renderOverlay: () => n(e, () => o(!1)),
|
|
29548
29550
|
children: c
|
|
29549
29551
|
}) : c;
|
|
29550
|
-
},
|
|
29552
|
+
}, EO = (e) => e === An.ApiKey ? "Manage API keys" : "Manage credentials", DO = {
|
|
29551
29553
|
[En.LimitReached]: "bg-error text-error",
|
|
29552
29554
|
[En.RunningLow]: "bg-warning text-warning"
|
|
29553
|
-
},
|
|
29554
|
-
className: W("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text",
|
|
29555
|
+
}, OO = ({ status: e, label: t }) => /* @__PURE__ */ z("div", {
|
|
29556
|
+
className: W("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", DO[e]),
|
|
29555
29557
|
children: t
|
|
29556
|
-
}),
|
|
29557
|
-
let { nameClassName: ne = "dial-body-semi-text", folderLabelClassName: re = "dial-tiny-text", folderLeafClassName: ie = "dial-tiny-semi-text" } = S?.typography ?? {}, j = e.details?.limits?.status, M = j == null ? void 0 : /* @__PURE__ */ z(
|
|
29558
|
+
}), kO = ({ item: e, onUseInChat: t, isPrimaryActionVisible: n, onShare: r, shareOverlay: i, isShareVisible: a, isSharePrimary: o, onEdit: s, onDownload: c, isDownloadVisible: l, isDownloadPrimary: u, onDelete: d, onUnshare: f, isUnshareVisible: p, onRevokeShare: m, onFetchRecipientsCount: h, isRevokeShareVisible: g, onLogin: _, onLogout: v, onOpenCredentialsManagement: y, onRequestLogout: b, texts: x, detailsStyles: S, isPublishVisible: C, isPublishPrimary: w, onOpenPublish: T, isUnpublishVisible: E, hasPublishedFolders: D = !1, onRequestPublishHistory: O, onOpenUnpublish: ee, isReadonly: te = !1 }) => {
|
|
29559
|
+
let { nameClassName: ne = "dial-body-semi-text", folderLabelClassName: re = "dial-tiny-text", folderLeafClassName: ie = "dial-tiny-semi-text" } = S?.typography ?? {}, j = e.details?.limits?.status, M = j == null ? void 0 : /* @__PURE__ */ z(OO, {
|
|
29558
29560
|
status: j,
|
|
29559
29561
|
label: j === En.LimitReached ? x?.limitReachedLabel ?? "Limit reached" : x?.limitRunningLowLabel ?? "Running low"
|
|
29560
29562
|
}), ae = P(() => {
|
|
@@ -29605,21 +29607,21 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29605
29607
|
d?.(e);
|
|
29606
29608
|
}, [e, d]), be = P(() => {
|
|
29607
29609
|
m?.(e);
|
|
29608
|
-
}, [e, m]), [xe, Se] = R(
|
|
29610
|
+
}, [e, m]), [xe, Se] = R(yO.Idle), [Ce, we] = R(void 0), Te = L(null);
|
|
29609
29611
|
F(() => {
|
|
29610
|
-
Te.current = null, Se(
|
|
29612
|
+
Te.current = null, Se(yO.Idle), we(void 0);
|
|
29611
29613
|
}, [e.id]);
|
|
29612
29614
|
let Oe = P(() => {
|
|
29613
29615
|
if (!h || Te.current === e.id || !m || e.isMyApp !== !0 || g?.(e) === !1) return;
|
|
29614
29616
|
let t = e.id;
|
|
29615
|
-
Te.current = t, Se(
|
|
29617
|
+
Te.current = t, Se(yO.Loading), (async () => {
|
|
29616
29618
|
try {
|
|
29617
29619
|
let n = await h(e);
|
|
29618
29620
|
if (Te.current !== t) return;
|
|
29619
|
-
we(n), Se(n == null ?
|
|
29621
|
+
we(n), Se(n == null ? yO.Unknown : yO.Resolved);
|
|
29620
29622
|
} catch {
|
|
29621
29623
|
if (Te.current !== t) return;
|
|
29622
|
-
we(void 0), Se(
|
|
29624
|
+
we(void 0), Se(yO.Unknown);
|
|
29623
29625
|
}
|
|
29624
29626
|
})();
|
|
29625
29627
|
}, [
|
|
@@ -29633,7 +29635,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29633
29635
|
Oe(), O?.();
|
|
29634
29636
|
}, [Oe, O]), je = P(() => {
|
|
29635
29637
|
O?.();
|
|
29636
|
-
}, [O]), Me = x?.hasPrimaryAction !== !1 && (n?.(e) ?? (e.type === Da.Model || e.type === Da.Agent || e.type === Da.Prompt)), Ne = !te && !!ee && D && (E?.(e) ?? !0), Fe = !te && !Ne && (C?.(e) ?? (e.type === Da.Model || e.type === Da.Toolset || e.type === Da.Agent)), Ie = !te && !!s && !!e.isEditable, Le = !te && e.isMyApp === !0 && (a?.(e) ?? !0), Re = o?.(e) ?? !0, ze = w?.(e) ?? !1, Be = e.credentials?.authenticationType ?? An.None, Ve = e.credentials != null && Be !== An.None ?
|
|
29638
|
+
}, [O]), Me = x?.hasPrimaryAction !== !1 && (n?.(e) ?? (e.type === Da.Model || e.type === Da.Agent || e.type === Da.Prompt)), Ne = !te && !!ee && D && (E?.(e) ?? !0), Fe = !te && !Ne && (C?.(e) ?? (e.type === Da.Model || e.type === Da.Toolset || e.type === Da.Agent)), Ie = !te && !!s && !!e.isEditable, Le = !te && e.isMyApp === !0 && (a?.(e) ?? !0), Re = o?.(e) ?? !0, ze = w?.(e) ?? !1, Be = e.credentials?.authenticationType ?? An.None, Ve = e.credentials != null && Be !== An.None ? OE(e.credentials) : void 0, He = !te && Ve != null && (!!_ || !!v), We = e.type === Da.Toolset && He, Ge = !!c && (l?.(e) ?? !0), Ke = Ge && !We && (u?.(e) ?? e.type === Da.Skill), qe = Ge && !Ke, Je = !te && e.isMyApp, Ye = !te && !!f && e.isMyApp !== !0 && e.sharedWithMe === !0 && (p?.(e) ?? !0), Xe = !te && !!m && e.isMyApp === !0 && (!h || xe === yO.Unknown || xe === yO.Resolved && (Ce ?? 0) > 0) && (g?.(e) ?? !0), Ze = I(() => {
|
|
29637
29639
|
let e = [];
|
|
29638
29640
|
if (!Re && Le && e.push({
|
|
29639
29641
|
key: "share",
|
|
@@ -29761,7 +29763,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29761
29763
|
_,
|
|
29762
29764
|
y,
|
|
29763
29765
|
b
|
|
29764
|
-
]), it = Ve === Nn.ManageCredentials ? (x?.manageCredentialsActionLabel ??
|
|
29766
|
+
]), it = Ve === Nn.ManageCredentials ? (x?.manageCredentialsActionLabel ?? EO)(Be) : Be === An.ApiKey ? Ve === Nn.LogOut ? x?.changeApiKeyActionLabel ?? "Change API key" : x?.apiKeyActionLabel ?? "API key" : Ve === Nn.LogOut ? x?.logoutActionLabel ?? "Log out" : x?.loginActionLabel ?? "Log in", at = Ve === Nn.ManageCredentials || Be === An.ApiKey ? /* @__PURE__ */ z(Ut, {
|
|
29765
29767
|
size: k.MD,
|
|
29766
29768
|
stroke: A
|
|
29767
29769
|
}) : Ve === Nn.LogOut ? /* @__PURE__ */ z(qt, {
|
|
@@ -29793,7 +29795,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29793
29795
|
onOpenChange: $e,
|
|
29794
29796
|
trigger: [],
|
|
29795
29797
|
outsideClosable: !0,
|
|
29796
|
-
renderOverlay: () => /* @__PURE__ */ z(
|
|
29798
|
+
renderOverlay: () => /* @__PURE__ */ z(SO, {
|
|
29797
29799
|
item: e,
|
|
29798
29800
|
level: Mn.User,
|
|
29799
29801
|
status: e.credentials?.userStatus,
|
|
@@ -29811,7 +29813,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29811
29813
|
children: [/* @__PURE__ */ z(Mv, {
|
|
29812
29814
|
item: e,
|
|
29813
29815
|
iconSize: 52,
|
|
29814
|
-
nameClassName: W(ne,
|
|
29816
|
+
nameClassName: W(ne, CO.name),
|
|
29815
29817
|
featuredLabel: x?.featuredLabel ?? "Featured",
|
|
29816
29818
|
statusBadge: M,
|
|
29817
29819
|
footer: e.folder.length > 0 ? /* @__PURE__ */ z(N, {
|
|
@@ -29848,7 +29850,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29848
29850
|
className: "sr-only",
|
|
29849
29851
|
children: x?.downloadingStatusLabel ?? "Downloading"
|
|
29850
29852
|
})] }),
|
|
29851
|
-
Re && Le && /* @__PURE__ */ z(
|
|
29853
|
+
Re && Le && /* @__PURE__ */ z(TO, {
|
|
29852
29854
|
item: e,
|
|
29853
29855
|
onShare: r,
|
|
29854
29856
|
shareOverlay: i,
|
|
@@ -29910,11 +29912,11 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29910
29912
|
]
|
|
29911
29913
|
})]
|
|
29912
29914
|
});
|
|
29913
|
-
},
|
|
29915
|
+
}, AO = ({ topics: e, content: t, detailsStyles: n }) => {
|
|
29914
29916
|
let r = n?.typography?.contentHeadingClassName ?? "dial-small-semi-text", i = n?.typography?.contentClassName ?? "dial-small-text";
|
|
29915
29917
|
return /* @__PURE__ */ B("div", {
|
|
29916
29918
|
className: "flex flex-col gap-5",
|
|
29917
|
-
children: [/* @__PURE__ */ z(
|
|
29919
|
+
children: [/* @__PURE__ */ z(yE, {
|
|
29918
29920
|
content: t,
|
|
29919
29921
|
classNames: {
|
|
29920
29922
|
h1: r,
|
|
@@ -29929,21 +29931,21 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
29929
29931
|
}
|
|
29930
29932
|
}), e && e.length > 0 && /* @__PURE__ */ z("div", {
|
|
29931
29933
|
className: "flex flex-wrap gap-2",
|
|
29932
|
-
children: e.map((e) => /* @__PURE__ */ z(
|
|
29934
|
+
children: e.map((e) => /* @__PURE__ */ z(XE, { label: e }, e))
|
|
29933
29935
|
})]
|
|
29934
29936
|
});
|
|
29935
|
-
},
|
|
29937
|
+
}, jO = {
|
|
29936
29938
|
divider: "_divider_1gzl9_1",
|
|
29937
29939
|
fileCount: "_fileCount_1gzl9_5",
|
|
29938
29940
|
body: "_body_1gzl9_9"
|
|
29939
|
-
},
|
|
29941
|
+
}, MO = (e, t, n = void 0) => e.flatMap((e) => {
|
|
29940
29942
|
let r = {
|
|
29941
29943
|
node: e,
|
|
29942
29944
|
parentId: n
|
|
29943
29945
|
};
|
|
29944
|
-
return e.type === Rn.File || !t.has(e.id) ? [r] : [r, ...
|
|
29945
|
-
}),
|
|
29946
|
-
let c = I(() =>
|
|
29946
|
+
return e.type === Rn.File || !t.has(e.id) ? [r] : [r, ...MO(e.items, t, e.id)];
|
|
29947
|
+
}), NO = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
|
|
29948
|
+
let c = I(() => MO(e, n), [e, n]), l = L({}), [u, d] = R(() => t ?? c[0]?.node.id);
|
|
29947
29949
|
F(() => {
|
|
29948
29950
|
u != null && l.current[u]?.focus();
|
|
29949
29951
|
}, []);
|
|
@@ -30042,8 +30044,8 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30042
30044
|
onKeyDown: p,
|
|
30043
30045
|
children: e.map((e) => h(e))
|
|
30044
30046
|
});
|
|
30045
|
-
},
|
|
30046
|
-
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 =
|
|
30047
|
+
}, PO = () => void 0, FO = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = PO, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = PO, 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 }) => {
|
|
30048
|
+
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 = BD(x) > 1, C = HD(x, r) ?? "", w = (e) => {
|
|
30047
30049
|
i?.(e), l(!1);
|
|
30048
30050
|
}, T = a ? {
|
|
30049
30051
|
type: zn.Text,
|
|
@@ -30064,7 +30066,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30064
30066
|
matchReferenceWidth: !1,
|
|
30065
30067
|
listClassName: "w-[280px]",
|
|
30066
30068
|
placement: "bottom-start",
|
|
30067
|
-
renderOverlay: () => /* @__PURE__ */ z(
|
|
30069
|
+
renderOverlay: () => /* @__PURE__ */ z(NO, {
|
|
30068
30070
|
nodes: x,
|
|
30069
30071
|
selectedFileId: r,
|
|
30070
30072
|
expandedFolderIds: o,
|
|
@@ -30081,16 +30083,16 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30081
30083
|
onClick: () => l(!c)
|
|
30082
30084
|
})
|
|
30083
30085
|
}), /* @__PURE__ */ z("span", {
|
|
30084
|
-
className: W("shrink-0", y,
|
|
30085
|
-
children: d(
|
|
30086
|
+
className: W("shrink-0", y, jO.fileCount),
|
|
30087
|
+
children: d(BD(x))
|
|
30086
30088
|
})]
|
|
30087
30089
|
}),
|
|
30088
30090
|
b && /* @__PURE__ */ B(ht, { children: [/* @__PURE__ */ z("p", {
|
|
30089
30091
|
className: W("m-0", _),
|
|
30090
30092
|
children: t
|
|
30091
|
-
}), /* @__PURE__ */ z("div", { className: W("shrink-0",
|
|
30093
|
+
}), /* @__PURE__ */ z("div", { className: W("shrink-0", jO.divider) })] }),
|
|
30092
30094
|
/* @__PURE__ */ B("div", {
|
|
30093
|
-
className: W("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null &&
|
|
30095
|
+
className: W("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && jO.body, h == null && _),
|
|
30094
30096
|
children: [a && /* @__PURE__ */ z("span", {
|
|
30095
30097
|
role: "status",
|
|
30096
30098
|
className: "sr-only",
|
|
@@ -30098,7 +30100,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30098
30100
|
}), (() => {
|
|
30099
30101
|
if (h != null) return h;
|
|
30100
30102
|
switch (T.type) {
|
|
30101
|
-
case zn.Markdown: return /* @__PURE__ */ z(
|
|
30103
|
+
case zn.Markdown: return /* @__PURE__ */ z(SE, {
|
|
30102
30104
|
content: T.text,
|
|
30103
30105
|
headingClassName: v
|
|
30104
30106
|
});
|
|
@@ -30121,12 +30123,12 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30121
30123
|
})
|
|
30122
30124
|
]
|
|
30123
30125
|
});
|
|
30124
|
-
},
|
|
30126
|
+
}, IO = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), LO = /* @__PURE__ */ function(e) {
|
|
30125
30127
|
return e.Default = "default", e.Warning = "warning", e.Danger = "danger", e;
|
|
30126
|
-
}({}),
|
|
30127
|
-
let t =
|
|
30128
|
+
}({}), RO = (e) => !Number.isFinite(e.used) || !Number.isFinite(e.total) ? 0 : Math.min(Math.max(e.used, 0), Math.max(e.total, 0)), zO = (e) => Number.isFinite(e) && e > 0 ? e : 1, BO = ({ used: e, total: t, valueLabel: n }) => n ?? `${IO.format(e)} / ${IO.format(t)}`, VO = ({ total: e }) => Number.isFinite(e) && e > 0, HO = (e) => e.isUnlimited !== !0 && VO(e), UO = (e) => VO(e) ? Math.max(e.used, 0) / e.total : 0, WO = (e) => {
|
|
30129
|
+
let t = UO(e);
|
|
30128
30130
|
return t >= 1 ? "danger" : t >= .75 ? "warning" : "default";
|
|
30129
|
-
},
|
|
30131
|
+
}, GO = {
|
|
30130
30132
|
sectionHeading: "_sectionHeading_ltnqp_1",
|
|
30131
30133
|
label: "_label_ltnqp_5",
|
|
30132
30134
|
valuePrimary: "_valuePrimary_ltnqp_9",
|
|
@@ -30135,58 +30137,58 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30135
30137
|
progressFillDefault: "_progressFillDefault_ltnqp_24",
|
|
30136
30138
|
progressFillWarning: "_progressFillWarning_ltnqp_28",
|
|
30137
30139
|
progressFillDanger: "_progressFillDanger_ltnqp_32"
|
|
30138
|
-
},
|
|
30139
|
-
let o =
|
|
30140
|
+
}, KO = ({ row: e, labelClassName: t, captionClassName: n, valueClassName: r, noteValueClassName: i, noteClassName: a }) => {
|
|
30141
|
+
let o = BO(e);
|
|
30140
30142
|
return /* @__PURE__ */ B("li", {
|
|
30141
|
-
className: W("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0",
|
|
30143
|
+
className: W("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", GO.divider),
|
|
30142
30144
|
children: [/* @__PURE__ */ B("div", {
|
|
30143
30145
|
className: "flex min-w-0 flex-1 flex-col",
|
|
30144
30146
|
children: [/* @__PURE__ */ z("span", {
|
|
30145
|
-
className: W("break-words", t,
|
|
30147
|
+
className: W("break-words", t, GO.label),
|
|
30146
30148
|
children: e.label
|
|
30147
30149
|
}), e.captionLabel != null && /* @__PURE__ */ z("span", {
|
|
30148
|
-
className: W("break-words", n,
|
|
30150
|
+
className: W("break-words", n, GO.label),
|
|
30149
30151
|
children: e.captionLabel
|
|
30150
30152
|
})]
|
|
30151
|
-
}),
|
|
30153
|
+
}), HO(e) ? /* @__PURE__ */ B("div", {
|
|
30152
30154
|
className: "flex w-32 shrink-0 flex-col items-end gap-2",
|
|
30153
30155
|
children: [/* @__PURE__ */ z("div", {
|
|
30154
30156
|
className: W("flex gap-1", r),
|
|
30155
30157
|
children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ B(ht, { children: [/* @__PURE__ */ z("span", {
|
|
30156
|
-
className:
|
|
30158
|
+
className: GO.valuePrimary,
|
|
30157
30159
|
children: e.usedLabel
|
|
30158
30160
|
}), /* @__PURE__ */ z("span", {
|
|
30159
|
-
className:
|
|
30161
|
+
className: GO.label,
|
|
30160
30162
|
children: ` / ${e.totalLabel}`
|
|
30161
30163
|
})] }) : /* @__PURE__ */ z("span", {
|
|
30162
|
-
className:
|
|
30164
|
+
className: GO.label,
|
|
30163
30165
|
children: o
|
|
30164
30166
|
})
|
|
30165
30167
|
}), /* @__PURE__ */ z(Fe, {
|
|
30166
|
-
value:
|
|
30167
|
-
max:
|
|
30168
|
+
value: RO(e),
|
|
30169
|
+
max: zO(e.total),
|
|
30168
30170
|
size: pe.Small,
|
|
30169
|
-
className: W("!h-1 w-full",
|
|
30171
|
+
className: W("!h-1 w-full", GO.progressTrack, WO(e) === LO.Default && GO.progressFillDefault, WO(e) === LO.Warning && GO.progressFillWarning, WO(e) === LO.Danger && GO.progressFillDanger),
|
|
30170
30172
|
"aria-label": e.label,
|
|
30171
30173
|
"aria-valuetext": e.ariaLabel ?? o
|
|
30172
30174
|
})]
|
|
30173
30175
|
}) : /* @__PURE__ */ B("div", {
|
|
30174
30176
|
className: "flex shrink-0 flex-col items-end",
|
|
30175
30177
|
children: [/* @__PURE__ */ z("span", {
|
|
30176
|
-
className: W(i,
|
|
30178
|
+
className: W(i, GO.valuePrimary),
|
|
30177
30179
|
children: o
|
|
30178
30180
|
}), e.noteLabel != null && /* @__PURE__ */ z("span", {
|
|
30179
|
-
className: W(a,
|
|
30181
|
+
className: W(a, GO.label),
|
|
30180
30182
|
children: e.noteLabel
|
|
30181
30183
|
})]
|
|
30182
30184
|
})]
|
|
30183
30185
|
});
|
|
30184
|
-
},
|
|
30185
|
-
className: W("mb-3 mt-0", t,
|
|
30186
|
+
}, qO = ({ group: e, sectionClassName: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => /* @__PURE__ */ B("section", { children: [/* @__PURE__ */ z("p", {
|
|
30187
|
+
className: W("mb-3 mt-0", t, GO.sectionHeading),
|
|
30186
30188
|
children: e.label
|
|
30187
30189
|
}), /* @__PURE__ */ z("ul", {
|
|
30188
30190
|
className: "m-0 flex list-none flex-col p-0",
|
|
30189
|
-
children: e.rows.map((e) => /* @__PURE__ */ z(
|
|
30191
|
+
children: e.rows.map((e) => /* @__PURE__ */ z(KO, {
|
|
30190
30192
|
row: e,
|
|
30191
30193
|
labelClassName: n,
|
|
30192
30194
|
captionClassName: r,
|
|
@@ -30194,7 +30196,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30194
30196
|
noteValueClassName: a,
|
|
30195
30197
|
noteClassName: o
|
|
30196
30198
|
}, e.label))
|
|
30197
|
-
})] }),
|
|
30199
|
+
})] }), JO = ({ limits: e, labelClassName: t = "dial-small-semi-text", captionClassName: n = "dial-caption-text", valueClassName: r = "dial-tiny-text", noteValueClassName: i = "dial-tiny-semi-text", noteClassName: a = "dial-caption-text", sectionClassName: o = "dial-caption-text", footerClassName: s = "dial-caption-text", footerNote: c, colors: l }) => {
|
|
30198
30200
|
let u = e?.groups.filter((e) => e.rows.length > 0);
|
|
30199
30201
|
return u == null || u.length === 0 ? null : /* @__PURE__ */ B("div", {
|
|
30200
30202
|
className: "flex flex-col gap-6",
|
|
@@ -30208,7 +30210,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30208
30210
|
"--lt-progress-fill-warning": l?.progressFillWarning,
|
|
30209
30211
|
"--lt-progress-fill-danger": l?.progressFillDanger
|
|
30210
30212
|
}),
|
|
30211
|
-
children: [u.map((e) => /* @__PURE__ */ z(
|
|
30213
|
+
children: [u.map((e) => /* @__PURE__ */ z(qO, {
|
|
30212
30214
|
group: e,
|
|
30213
30215
|
sectionClassName: o,
|
|
30214
30216
|
labelClassName: t,
|
|
@@ -30217,17 +30219,17 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30217
30219
|
noteValueClassName: i,
|
|
30218
30220
|
noteClassName: a
|
|
30219
30221
|
}, e.label)), c != null && /* @__PURE__ */ z("p", {
|
|
30220
|
-
className: W("m-0 border-t pt-4", s,
|
|
30222
|
+
className: W("m-0 border-t pt-4", s, GO.divider, GO.label),
|
|
30221
30223
|
children: c
|
|
30222
30224
|
})]
|
|
30223
30225
|
});
|
|
30224
|
-
},
|
|
30226
|
+
}, YO = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ z("div", {
|
|
30225
30227
|
className: "flex flex-col gap-4",
|
|
30226
30228
|
children: e.map((e, s) => /* @__PURE__ */ B("div", {
|
|
30227
30229
|
className: "flex flex-col gap-4",
|
|
30228
|
-
children: [s > 0 && /* @__PURE__ */ z("div", { className: W("shrink-0 border-b",
|
|
30230
|
+
children: [s > 0 && /* @__PURE__ */ z("div", { className: W("shrink-0 border-b", vO.divider) }), /* @__PURE__ */ z("div", {
|
|
30229
30231
|
className: "px-6",
|
|
30230
|
-
children: /* @__PURE__ */ z(
|
|
30232
|
+
children: /* @__PURE__ */ z(GD, {
|
|
30231
30233
|
sectionLabel: e.title,
|
|
30232
30234
|
values: e.specs,
|
|
30233
30235
|
sectionClassName: t,
|
|
@@ -30239,7 +30241,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30239
30241
|
})
|
|
30240
30242
|
})]
|
|
30241
30243
|
}, s))
|
|
30242
|
-
}) : null,
|
|
30244
|
+
}) : null, XO = ({ 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" }) => {
|
|
30243
30245
|
if (e == null) return null;
|
|
30244
30246
|
let o = e.prices?.map((e) => ({
|
|
30245
30247
|
label: e.label,
|
|
@@ -30250,13 +30252,13 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30250
30252
|
}));
|
|
30251
30253
|
return /* @__PURE__ */ B("div", {
|
|
30252
30254
|
className: "flex flex-col gap-4",
|
|
30253
|
-
children: [/* @__PURE__ */ z(
|
|
30255
|
+
children: [/* @__PURE__ */ z(GD, {
|
|
30254
30256
|
sectionLabel: t,
|
|
30255
30257
|
values: o ?? [],
|
|
30256
30258
|
labelClassName: r,
|
|
30257
30259
|
valueClassName: i,
|
|
30258
30260
|
sectionClassName: a
|
|
30259
|
-
}), /* @__PURE__ */ z(
|
|
30261
|
+
}), /* @__PURE__ */ z(GD, {
|
|
30260
30262
|
sectionLabel: n,
|
|
30261
30263
|
values: s ?? [],
|
|
30262
30264
|
labelClassName: r,
|
|
@@ -30264,32 +30266,32 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30264
30266
|
sectionClassName: a
|
|
30265
30267
|
})]
|
|
30266
30268
|
});
|
|
30267
|
-
},
|
|
30269
|
+
}, ZO = {
|
|
30268
30270
|
container: "_container_ddi3i_1",
|
|
30269
30271
|
header: "_header_ddi3i_5",
|
|
30270
30272
|
cell: "_cell_ddi3i_10",
|
|
30271
30273
|
evenRow: "_evenRow_ddi3i_17"
|
|
30272
|
-
},
|
|
30274
|
+
}, QO = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
|
|
30273
30275
|
let a = n ?? `repeat(${e.length}, 1fr)`;
|
|
30274
30276
|
return /* @__PURE__ */ B("div", {
|
|
30275
|
-
className: W(
|
|
30277
|
+
className: W(ZO.container, "grid overflow-hidden rounded-md"),
|
|
30276
30278
|
style: { gridTemplateColumns: a },
|
|
30277
30279
|
children: [e.map((e) => /* @__PURE__ */ z("div", {
|
|
30278
|
-
className: W("px-2 py-1 text-start", r,
|
|
30280
|
+
className: W("px-2 py-1 text-start", r, ZO.header),
|
|
30279
30281
|
children: e
|
|
30280
30282
|
}, e)), t.map((e, t) => /* @__PURE__ */ z(it, { children: e.map((e, n) => /* @__PURE__ */ z("div", {
|
|
30281
|
-
className: W("px-2 py-1.5", i,
|
|
30283
|
+
className: W("px-2 py-1.5", i, ZO.cell, t % 2 == 1 ? ZO.evenRow : void 0),
|
|
30282
30284
|
children: e
|
|
30283
30285
|
}, n)) }, t))]
|
|
30284
30286
|
});
|
|
30285
|
-
},
|
|
30287
|
+
}, $O = {
|
|
30286
30288
|
divider: "_divider_1f796_1",
|
|
30287
30289
|
description: "_description_1f796_5",
|
|
30288
30290
|
code: "_code_1f796_9"
|
|
30289
|
-
},
|
|
30291
|
+
}, ek = ({ 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__ */ z("div", {
|
|
30290
30292
|
className: "flex flex-col",
|
|
30291
30293
|
children: e.tools.map((e, a) => /* @__PURE__ */ B("div", {
|
|
30292
|
-
className: W("flex flex-col gap-3 px-[22px] py-4", a > 0 ?
|
|
30294
|
+
className: W("flex flex-col gap-3 px-[22px] py-4", a > 0 ? $O.divider : void 0),
|
|
30293
30295
|
children: [
|
|
30294
30296
|
/* @__PURE__ */ B("div", {
|
|
30295
30297
|
className: "flex flex-col gap-1",
|
|
@@ -30297,11 +30299,11 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30297
30299
|
className: t,
|
|
30298
30300
|
children: e.name
|
|
30299
30301
|
}), e.description != null && /* @__PURE__ */ z("p", {
|
|
30300
|
-
className: W("m-0", n,
|
|
30302
|
+
className: W("m-0", n, $O.description),
|
|
30301
30303
|
children: e.description
|
|
30302
30304
|
})]
|
|
30303
30305
|
}),
|
|
30304
|
-
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ z(
|
|
30306
|
+
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ z(QO, {
|
|
30305
30307
|
columns: [
|
|
30306
30308
|
"Name",
|
|
30307
30309
|
"Type",
|
|
@@ -30310,11 +30312,11 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30310
30312
|
columnsTemplate: "1fr 1fr auto",
|
|
30311
30313
|
rows: e.inputParams.map((e) => [
|
|
30312
30314
|
/* @__PURE__ */ z("code", {
|
|
30313
|
-
className: W("text-inherit border-none bg-transparent p-0",
|
|
30315
|
+
className: W("text-inherit border-none bg-transparent p-0", $O.code),
|
|
30314
30316
|
children: e.name
|
|
30315
30317
|
}, "name"),
|
|
30316
30318
|
/* @__PURE__ */ z("code", {
|
|
30317
|
-
className: W("text-inherit border-none bg-transparent p-0",
|
|
30319
|
+
className: W("text-inherit border-none bg-transparent p-0", $O.code),
|
|
30318
30320
|
children: e.type
|
|
30319
30321
|
}, "type"),
|
|
30320
30322
|
e.isRequired ? "✓" : "—"
|
|
@@ -30322,10 +30324,10 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30322
30324
|
headingClassName: r,
|
|
30323
30325
|
cellClassName: i
|
|
30324
30326
|
}),
|
|
30325
|
-
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ z(
|
|
30327
|
+
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ z(QO, {
|
|
30326
30328
|
columns: ["Key", "Value"],
|
|
30327
30329
|
rows: e.annotations.map((e) => [/* @__PURE__ */ z("code", {
|
|
30328
|
-
className: W("text-inherit border-none bg-transparent p-0",
|
|
30330
|
+
className: W("text-inherit border-none bg-transparent p-0", $O.code),
|
|
30329
30331
|
children: e.key
|
|
30330
30332
|
}, "key"), e.value]),
|
|
30331
30333
|
headingClassName: r,
|
|
@@ -30333,23 +30335,23 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30333
30335
|
})
|
|
30334
30336
|
]
|
|
30335
30337
|
}, e.name))
|
|
30336
|
-
}),
|
|
30338
|
+
}), tk = new Set([Da.Prompt, Da.Skill]), nk = (e) => e?.resource?.endpointUrl != null || (e?.endpoints?.length ?? 0) > 0, rk = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), ik = async () => void 0, ak = [], ok = [], sk = [
|
|
30337
30339
|
"All shared configurations will be lost",
|
|
30338
30340
|
"Users who rely on it will lose access",
|
|
30339
30341
|
"Cannot be undone"
|
|
30340
|
-
],
|
|
30342
|
+
], ck = [
|
|
30341
30343
|
"You will lose access to this item",
|
|
30342
30344
|
"Other people keep their access",
|
|
30343
30345
|
"You will need a new invitation to get it back"
|
|
30344
|
-
],
|
|
30346
|
+
], lk = [
|
|
30345
30347
|
"Everyone loses access to the published copy",
|
|
30346
30348
|
"Your own copy is not deleted",
|
|
30347
30349
|
"You can publish it again later"
|
|
30348
|
-
],
|
|
30350
|
+
], uk = [
|
|
30349
30351
|
"Everyone you shared it with loses access",
|
|
30350
30352
|
"Existing share links stop working",
|
|
30351
30353
|
"You keep full access — nothing is deleted"
|
|
30352
|
-
],
|
|
30354
|
+
], dk = (e) => e === An.ApiKey ? "Toolset API keys" : "Toolset credentials", fk = (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?", pk = new Set([Dn.Delete, Dn.Unshare]), mk = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, isReadonly: i = !1, onClose: a, onToggleFavorite: o, isFavoriteVisible: s, onUseInChat: c, isPrimaryActionVisible: l, onShare: u, isPublishVisible: d, isPublishPrimary: f, getPublishHistory: p, publishFolderItems: m = ak, publishExpandedPaths: h, onPublishExpandedPathsChange: g, publishLoadingPaths: _, hasPublishWriteAccess: v, onPublish: y, onPublishSuccess: b, onPublishError: x, onCreatePublishFolder: S, publishLabels: w, ruleSourceOptions: T = ok, onFetchExistingRules: E, shareOverlay: D, isShareVisible: O, isSharePrimary: ee, onEdit: k, onDownload: te, isDownloadVisible: ne, isDownloadPrimary: re, onLoadContentFile: ie, onLoadContentFilePreview: j, renderContentFilePreview: M, onDelete: ae, onUnshare: oe, isUnshareVisible: se, onRevokeShare: ce, onFetchRecipientsCount: le, isRevokeShareVisible: ue, onUnpublish: de, isUnpublishVisible: fe, onLogin: me, onLogout: he, texts: N, styles: ge, limitsFooterNote: _e }) => {
|
|
30353
30355
|
let { subViewTitleClassName: ye = "dial-body-semi-text", overviewSectionClassName: be = "dial-caption-text", overviewLabelClassName: xe = "dial-small-semi-text", overviewValueClassName: Se = "dial-small-text", overviewValueTrueClassName: Ce = "dial-small-text", confirmMessageClassName: we = "dial-small-text" } = ge?.typography ?? {}, Te = ge?.colors, Ee = is({
|
|
30354
30356
|
"--cat-details-backdrop": Te?.backdrop,
|
|
30355
30357
|
"--cat-details-bg": Te?.background,
|
|
@@ -30391,7 +30393,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30391
30393
|
t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), tt.current = n, Je(e);
|
|
30392
30394
|
}, []);
|
|
30393
30395
|
F(() => {
|
|
30394
|
-
nt.current += 1, rt(null), Xe(!1), Qe(
|
|
30396
|
+
nt.current += 1, rt(null), Xe(!1), Qe(VD(We?.files ?? [])), et(!1);
|
|
30395
30397
|
}, [e.id, Ke]), F(() => () => {
|
|
30396
30398
|
let e = tt.current;
|
|
30397
30399
|
e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
|
|
@@ -30450,7 +30452,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30450
30452
|
]), ot = qe?.id ?? Ke, st = () => qe == null ? null : qe.preview == null ? {
|
|
30451
30453
|
type: zn.Text,
|
|
30452
30454
|
text: N?.contentFileErrorLabel ?? "Failed to load this file."
|
|
30453
|
-
} : qe.preview, ct = qe != null && M != null ? M(qe.id,
|
|
30455
|
+
} : qe.preview, ct = qe != null && M != null ? M(qe.id, HD(We?.files ?? [], qe.id) ?? "") : void 0, lt = P(() => {
|
|
30454
30456
|
if (!p || Ue.current === e.id) return;
|
|
30455
30457
|
let t = e.id;
|
|
30456
30458
|
Ue.current = t, Le(!0), ze(!1), (async () => {
|
|
@@ -30469,17 +30471,17 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30469
30471
|
}, [je, lt]);
|
|
30470
30472
|
let ut = P((e, t) => {
|
|
30471
30473
|
Ue.current = null, He(!1), lt(), b?.(e, t);
|
|
30472
|
-
}, [lt, b]), dt =
|
|
30474
|
+
}, [lt, b]), dt = lD({
|
|
30473
30475
|
item: e,
|
|
30474
30476
|
history: Ne,
|
|
30475
30477
|
folderItems: m,
|
|
30476
30478
|
hasWriteAccess: v,
|
|
30477
30479
|
onCreateFolder: S,
|
|
30478
|
-
onPublish: y ??
|
|
30480
|
+
onPublish: y ?? ik,
|
|
30479
30481
|
onPublishSuccess: ut,
|
|
30480
30482
|
onPublishError: x,
|
|
30481
30483
|
onFetchExistingRules: E
|
|
30482
|
-
}), ft = I(() =>
|
|
30484
|
+
}), ft = I(() => oD({
|
|
30483
30485
|
hasSelectedFolder: dt.selectedFolderPath != null,
|
|
30484
30486
|
hasExistingPublicationInFolder: dt.hasExistingPublicationInFolder,
|
|
30485
30487
|
hasWriteAccess: dt.hasWriteAccess,
|
|
@@ -30500,7 +30502,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30500
30502
|
let Dt = P(() => mt(!0), []), Ot = P(() => mt(!1), []), kt = P(() => {
|
|
30501
30503
|
_t(Dn.Delete);
|
|
30502
30504
|
}, []), At = P((t) => {
|
|
30503
|
-
Ct(t ?? (e.credentials == null ? null :
|
|
30505
|
+
Ct(t ?? (e.credentials == null ? null : AE(e.credentials))), _t(Dn.Logout);
|
|
30504
30506
|
}, [e.credentials]), jt = P(() => {
|
|
30505
30507
|
_t(Dn.Unshare);
|
|
30506
30508
|
}, []), Mt = P(() => {
|
|
@@ -30542,12 +30544,12 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30542
30544
|
bt != null && await he?.(e, { level: bt });
|
|
30543
30545
|
break;
|
|
30544
30546
|
case Dn.Unpublish: {
|
|
30545
|
-
let t =
|
|
30547
|
+
let t = rk(Nt, Tt);
|
|
30546
30548
|
t != null && await de?.(e, t.segments);
|
|
30547
30549
|
break;
|
|
30548
30550
|
}
|
|
30549
30551
|
}
|
|
30550
|
-
_t(null), xt(null), Ct(null), Et(null),
|
|
30552
|
+
_t(null), xt(null), Ct(null), Et(null), pk.has(gt) && a();
|
|
30551
30553
|
} catch {
|
|
30552
30554
|
_t(null), xt(null), Ct(null), Et(null);
|
|
30553
30555
|
} finally {
|
|
@@ -30599,7 +30601,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30599
30601
|
e.id,
|
|
30600
30602
|
o
|
|
30601
30603
|
]), Wt = I(() => {
|
|
30602
|
-
let t = [], n =
|
|
30604
|
+
let t = [], n = tk.has(e.type);
|
|
30603
30605
|
return n || t.push({
|
|
30604
30606
|
id: Tn.About,
|
|
30605
30607
|
label: N?.tabAboutLabel ?? "About"
|
|
@@ -30618,7 +30620,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30618
30620
|
}), e.details?.tools != null && t.push({
|
|
30619
30621
|
id: Tn.Tools,
|
|
30620
30622
|
label: N?.tabToolsLabel ?? "Tools"
|
|
30621
|
-
}),
|
|
30623
|
+
}), nk(e.details?.api) && t.push({
|
|
30622
30624
|
id: Tn.Api,
|
|
30623
30625
|
label: N?.tabConnectLabel ?? "Connect"
|
|
30624
30626
|
}), t;
|
|
@@ -30642,7 +30644,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30642
30644
|
/* @__PURE__ */ z("strong", { children: e.name }),
|
|
30643
30645
|
"? This action is permanent and cannot be undone."
|
|
30644
30646
|
] }),
|
|
30645
|
-
consequences: N?.deleteConfirmConsequences ??
|
|
30647
|
+
consequences: N?.deleteConfirmConsequences ?? sk,
|
|
30646
30648
|
confirmLabel: t,
|
|
30647
30649
|
loadingStatusLabel: N?.deletingStatusLabel ?? "Deleting",
|
|
30648
30650
|
variant: On.Danger
|
|
@@ -30657,7 +30659,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30657
30659
|
/* @__PURE__ */ z("strong", { children: e.name }),
|
|
30658
30660
|
" from your list? You'll need a new invitation to access it again."
|
|
30659
30661
|
] }),
|
|
30660
|
-
consequences: N?.unshareConfirmConsequences ??
|
|
30662
|
+
consequences: N?.unshareConfirmConsequences ?? ck,
|
|
30661
30663
|
confirmLabel: t,
|
|
30662
30664
|
loadingStatusLabel: N?.unsharingStatusLabel ?? "Removing",
|
|
30663
30665
|
variant: On.Info
|
|
@@ -30672,7 +30674,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30672
30674
|
/* @__PURE__ */ z("strong", { children: e.name }),
|
|
30673
30675
|
"? Anyone you shared it with will lose access."
|
|
30674
30676
|
] }),
|
|
30675
|
-
consequences: N?.revokeShareConfirmConsequences ??
|
|
30677
|
+
consequences: N?.revokeShareConfirmConsequences ?? uk,
|
|
30676
30678
|
confirmLabel: t,
|
|
30677
30679
|
loadingStatusLabel: N?.revokingShareStatusLabel ?? "Revoking access",
|
|
30678
30680
|
variant: On.Danger
|
|
@@ -30693,7 +30695,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30693
30695
|
return {
|
|
30694
30696
|
title: N?.unpublishConfirmTitle ?? t,
|
|
30695
30697
|
message: n ? i : a,
|
|
30696
|
-
consequences: N?.unpublishConfirmConsequences ??
|
|
30698
|
+
consequences: N?.unpublishConfirmConsequences ?? lk,
|
|
30697
30699
|
confirmLabel: t,
|
|
30698
30700
|
loadingStatusLabel: N?.unpublishingStatusLabel ?? "Requesting unpublish",
|
|
30699
30701
|
variant: On.Danger
|
|
@@ -30714,7 +30716,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30714
30716
|
let e = N?.deleteActionLabel ?? "Delete", t = bt ?? Mn.User;
|
|
30715
30717
|
return {
|
|
30716
30718
|
title: e,
|
|
30717
|
-
message: (N?.deleteApiKeyConfirmMessage ??
|
|
30719
|
+
message: (N?.deleteApiKeyConfirmMessage ?? fk)(t),
|
|
30718
30720
|
consequences: void 0,
|
|
30719
30721
|
confirmLabel: e,
|
|
30720
30722
|
loadingStatusLabel: N?.deletingStatusLabel ?? "Deleting",
|
|
@@ -30731,7 +30733,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30731
30733
|
N,
|
|
30732
30734
|
Nt,
|
|
30733
30735
|
Ft
|
|
30734
|
-
]), tn = en != null, nn = gt === Dn.Unpublish &&
|
|
30736
|
+
]), tn = en != null, nn = gt === Dn.Unpublish && rk(Nt, Tt) == null, rn = tn || je || pt, an = e.credentials == null ? "" : (N?.credentialsManagementTitle ?? dk)(e.credentials.authenticationType), on = tn ? {
|
|
30735
30737
|
title: en.title,
|
|
30736
30738
|
isBackDisabled: vt,
|
|
30737
30739
|
onBack: Rt
|
|
@@ -30746,7 +30748,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30746
30748
|
} : null, sn = on?.title ?? Jt;
|
|
30747
30749
|
return /* @__PURE__ */ B(ht, { children: [/* @__PURE__ */ z("div", {
|
|
30748
30750
|
style: Ee,
|
|
30749
|
-
className: W("fixed inset-0 z-40 transition-opacity duration-300",
|
|
30751
|
+
className: W("fixed inset-0 z-40 transition-opacity duration-300", vO.backdrop, t ? "opacity-100" : "pointer-events-none opacity-0"),
|
|
30750
30752
|
onClick: a,
|
|
30751
30753
|
"aria-hidden": "true"
|
|
30752
30754
|
}), /* @__PURE__ */ B("div", {
|
|
@@ -30754,7 +30756,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30754
30756
|
"aria-modal": "true",
|
|
30755
30757
|
"aria-label": sn,
|
|
30756
30758
|
style: Ee,
|
|
30757
|
-
className: W("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",
|
|
30759
|
+
className: W("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", vO.panel, t ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
|
|
30758
30760
|
children: [
|
|
30759
30761
|
/* @__PURE__ */ B("div", {
|
|
30760
30762
|
className: "flex shrink-0 items-center gap-2 px-6 py-3",
|
|
@@ -30767,11 +30769,11 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30767
30769
|
disabled: on.isBackDisabled,
|
|
30768
30770
|
onClick: on.onBack
|
|
30769
30771
|
}), /* @__PURE__ */ z("span", {
|
|
30770
|
-
className: W("flex-1", ye,
|
|
30772
|
+
className: W("flex-1", ye, vO.publishTitle),
|
|
30771
30773
|
children: on.title
|
|
30772
30774
|
})] }), on == null && /* @__PURE__ */ B(ht, { children: [
|
|
30773
30775
|
/* @__PURE__ */ z("div", { className: "flex-1" }),
|
|
30774
|
-
!i && s?.(e) !== !1 && /* @__PURE__ */ z(
|
|
30776
|
+
!i && s?.(e) !== !1 && /* @__PURE__ */ z(qE, {
|
|
30775
30777
|
isStarred: De,
|
|
30776
30778
|
ariaLabel: Xt,
|
|
30777
30779
|
onClick: Ut
|
|
@@ -30783,11 +30785,11 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30783
30785
|
})
|
|
30784
30786
|
] })]
|
|
30785
30787
|
}),
|
|
30786
|
-
/* @__PURE__ */ z("div", { className: W("shrink-0",
|
|
30788
|
+
/* @__PURE__ */ z("div", { className: W("shrink-0", vO.divider) }),
|
|
30787
30789
|
/* @__PURE__ */ B("div", {
|
|
30788
|
-
className: W("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto",
|
|
30790
|
+
className: W("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", vO.content),
|
|
30789
30791
|
children: [
|
|
30790
|
-
tn && /* @__PURE__ */ z(
|
|
30792
|
+
tn && /* @__PURE__ */ z(tO, {
|
|
30791
30793
|
item: e,
|
|
30792
30794
|
message: en.message,
|
|
30793
30795
|
consequences: en.consequences,
|
|
@@ -30805,7 +30807,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30805
30807
|
radioClassName: we
|
|
30806
30808
|
})
|
|
30807
30809
|
}),
|
|
30808
|
-
!tn && !je && pt && /* @__PURE__ */ z(
|
|
30810
|
+
!tn && !je && pt && /* @__PURE__ */ z(_O, {
|
|
30809
30811
|
item: e,
|
|
30810
30812
|
onLogin: me,
|
|
30811
30813
|
onRequestLogout: At,
|
|
@@ -30815,7 +30817,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30815
30817
|
}),
|
|
30816
30818
|
!tn && je && /* @__PURE__ */ z("div", {
|
|
30817
30819
|
className: "p-[22px]",
|
|
30818
|
-
children: /* @__PURE__ */ z(
|
|
30820
|
+
children: /* @__PURE__ */ z(PD, {
|
|
30819
30821
|
resource: {
|
|
30820
30822
|
title: e.name,
|
|
30821
30823
|
version: e.version,
|
|
@@ -30850,7 +30852,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30850
30852
|
})
|
|
30851
30853
|
}),
|
|
30852
30854
|
!rn && /* @__PURE__ */ B(ht, { children: [
|
|
30853
|
-
/* @__PURE__ */ z(
|
|
30855
|
+
/* @__PURE__ */ z(kO, {
|
|
30854
30856
|
item: e,
|
|
30855
30857
|
onUseInChat: c,
|
|
30856
30858
|
isPrimaryActionVisible: l,
|
|
@@ -30884,10 +30886,10 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30884
30886
|
isReadonly: i
|
|
30885
30887
|
}),
|
|
30886
30888
|
e.credentials != null && (() => {
|
|
30887
|
-
let t =
|
|
30889
|
+
let t = jE(e.credentials);
|
|
30888
30890
|
return t != null && /* @__PURE__ */ z("div", {
|
|
30889
30891
|
className: "px-6",
|
|
30890
|
-
children: /* @__PURE__ */ z(
|
|
30892
|
+
children: /* @__PURE__ */ z(pO, {
|
|
30891
30893
|
state: t,
|
|
30892
30894
|
authenticationType: e.credentials.authenticationType,
|
|
30893
30895
|
texts: N
|
|
@@ -30911,19 +30913,19 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30911
30913
|
width: "72px"
|
|
30912
30914
|
},
|
|
30913
30915
|
active: !0,
|
|
30914
|
-
color:
|
|
30916
|
+
color: vO.skeletonColor
|
|
30915
30917
|
})
|
|
30916
30918
|
})]
|
|
30917
30919
|
}),
|
|
30918
30920
|
/* @__PURE__ */ B("div", {
|
|
30919
30921
|
className: W("min-h-0 flex-1 overflow-y-auto", ke !== Tn.Overview && "px-6"),
|
|
30920
30922
|
children: [
|
|
30921
|
-
ke === Tn.About && /* @__PURE__ */ z(
|
|
30923
|
+
ke === Tn.About && /* @__PURE__ */ z(AO, {
|
|
30922
30924
|
content: e.description,
|
|
30923
30925
|
topics: e.topics,
|
|
30924
30926
|
detailsStyles: ge
|
|
30925
30927
|
}),
|
|
30926
|
-
ke === Tn.Content && /* @__PURE__ */ z(
|
|
30928
|
+
ke === Tn.Content && /* @__PURE__ */ z(FO, {
|
|
30927
30929
|
content: We?.content ?? "",
|
|
30928
30930
|
filePreview: st(),
|
|
30929
30931
|
filePreviewContent: ct,
|
|
@@ -30942,7 +30944,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30942
30944
|
fileUnsupportedLabel: N?.contentFileUnsupportedLabel,
|
|
30943
30945
|
detailsStyles: ge
|
|
30944
30946
|
}),
|
|
30945
|
-
ke === Tn.Overview && /* @__PURE__ */ z(
|
|
30947
|
+
ke === Tn.Overview && /* @__PURE__ */ z(YO, {
|
|
30946
30948
|
sections: e.details?.overview?.sections,
|
|
30947
30949
|
sectionClassName: be,
|
|
30948
30950
|
labelClassName: xe,
|
|
@@ -30951,16 +30953,16 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30951
30953
|
yesLabel: Kt,
|
|
30952
30954
|
noLabel: qt
|
|
30953
30955
|
}),
|
|
30954
|
-
ke === Tn.Pricing && /* @__PURE__ */ z(
|
|
30956
|
+
ke === Tn.Pricing && /* @__PURE__ */ z(XO, {
|
|
30955
30957
|
pricing: e.details?.pricing,
|
|
30956
30958
|
pricesSectionLabel: N?.pricingPricesSectionLabel,
|
|
30957
30959
|
limitsSectionLabel: N?.pricingLimitsSectionLabel
|
|
30958
30960
|
}),
|
|
30959
|
-
ke === Tn.Limits && /* @__PURE__ */ z(
|
|
30961
|
+
ke === Tn.Limits && /* @__PURE__ */ z(JO, {
|
|
30960
30962
|
limits: e.details?.limits,
|
|
30961
30963
|
footerNote: _e
|
|
30962
30964
|
}),
|
|
30963
|
-
ke === Tn.Api &&
|
|
30965
|
+
ke === Tn.Api && nk(e.details?.api) && /* @__PURE__ */ z(XD, {
|
|
30964
30966
|
api: e.details?.api,
|
|
30965
30967
|
resourceSectionLabel: N?.apiResourceSectionLabel,
|
|
30966
30968
|
snippetSectionLabel: N?.apiSnippetSectionLabel,
|
|
@@ -30972,13 +30974,13 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30972
30974
|
copyAriaLabel: N?.copyCodeAriaLabel,
|
|
30973
30975
|
copiedStatusLabel: N?.copiedCodeStatusLabel
|
|
30974
30976
|
}),
|
|
30975
|
-
ke === Tn.Tools && /* @__PURE__ */ z(
|
|
30977
|
+
ke === Tn.Tools && /* @__PURE__ */ z(ek, { tools: e.details?.tools })
|
|
30976
30978
|
]
|
|
30977
30979
|
})
|
|
30978
30980
|
] })
|
|
30979
30981
|
]
|
|
30980
30982
|
}),
|
|
30981
|
-
tn && /* @__PURE__ */ z(
|
|
30983
|
+
tn && /* @__PURE__ */ z(QD, {
|
|
30982
30984
|
confirmLabel: en.confirmLabel,
|
|
30983
30985
|
cancelLabel: $t,
|
|
30984
30986
|
variant: en.variant,
|
|
@@ -30988,7 +30990,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30988
30990
|
onConfirm: zt,
|
|
30989
30991
|
onCancel: Rt
|
|
30990
30992
|
}),
|
|
30991
|
-
!tn && je && /* @__PURE__ */ z(
|
|
30993
|
+
!tn && je && /* @__PURE__ */ z(zD, {
|
|
30992
30994
|
version: e.version,
|
|
30993
30995
|
hasExistingPublicationInFolder: dt.hasExistingPublicationInFolder,
|
|
30994
30996
|
isSubmitDisabled: ft.isSubmitDisabled,
|
|
@@ -30999,7 +31001,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
30999
31001
|
})
|
|
31000
31002
|
]
|
|
31001
31003
|
})] });
|
|
31002
|
-
},
|
|
31004
|
+
}, hk = {
|
|
31003
31005
|
pageNav: "_pageNav_14qfn_1",
|
|
31004
31006
|
navBtn: "_navBtn_14qfn_6",
|
|
31005
31007
|
titleText: "_titleText_14qfn_23",
|
|
@@ -31014,7 +31016,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31014
31016
|
favFadeIn: "_favFadeIn_14qfn_1",
|
|
31015
31017
|
cardLeaving: "_cardLeaving_14qfn_54",
|
|
31016
31018
|
cardFadeOut: "_cardFadeOut_14qfn_1"
|
|
31017
|
-
},
|
|
31019
|
+
}, gk = ({ item: e, initialIsStarred: t = !0, onToggle: n, isFavoriteVisible: r, onClick: i, nameClassName: a, colors: o, versionClassName: s, lastUsedClassName: c, query: l, addToFavoritesAriaLabel: u = "Add to favorites", removeFromFavoritesAriaLabel: d = "Remove from favorites", isSelected: f = !1, credentialsBadgeLoggedOutLabel: p }) => {
|
|
31018
31020
|
let [m, h] = R(t), [g, _] = R(!1), v = (t) => {
|
|
31019
31021
|
t.stopPropagation();
|
|
31020
31022
|
let r = !m;
|
|
@@ -31031,7 +31033,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31031
31033
|
role: y == null ? void 0 : "button",
|
|
31032
31034
|
tabIndex: y == null ? void 0 : 0,
|
|
31033
31035
|
"aria-label": e.name,
|
|
31034
|
-
className: W("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", g &&
|
|
31036
|
+
className: W("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", g && hk.cardLeaving, f && hk.selectedCard),
|
|
31035
31037
|
onClick: y,
|
|
31036
31038
|
onKeyDown: x,
|
|
31037
31039
|
onAnimationEnd: g ? (t) => {
|
|
@@ -31040,13 +31042,13 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31040
31042
|
children: [
|
|
31041
31043
|
f && /* @__PURE__ */ z(St, {
|
|
31042
31044
|
size: k.SM,
|
|
31043
|
-
className: W("absolute end-3 top-3 shrink-0",
|
|
31045
|
+
className: W("absolute end-3 top-3 shrink-0", hk.selectedCheck),
|
|
31044
31046
|
"aria-hidden": !0,
|
|
31045
31047
|
stroke: A
|
|
31046
31048
|
}),
|
|
31047
31049
|
/* @__PURE__ */ z("div", {
|
|
31048
31050
|
className: "flex min-w-0 flex-1 flex-col items-start gap-1",
|
|
31049
|
-
children: /* @__PURE__ */ z(
|
|
31051
|
+
children: /* @__PURE__ */ z(UE, {
|
|
31050
31052
|
icon: e.iconUrl,
|
|
31051
31053
|
type: e.type,
|
|
31052
31054
|
name: e.name,
|
|
@@ -31063,13 +31065,13 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31063
31065
|
lastUsedClassName: c
|
|
31064
31066
|
}
|
|
31065
31067
|
},
|
|
31066
|
-
iconOverlay: /* @__PURE__ */ z(
|
|
31068
|
+
iconOverlay: /* @__PURE__ */ z(GE, {
|
|
31067
31069
|
credentials: e.credentials,
|
|
31068
31070
|
loggedOutLabel: p
|
|
31069
31071
|
})
|
|
31070
31072
|
})
|
|
31071
31073
|
}),
|
|
31072
|
-
r?.(e) !== !1 && /* @__PURE__ */ z(
|
|
31074
|
+
r?.(e) !== !1 && /* @__PURE__ */ z(qE, {
|
|
31073
31075
|
isStarred: m,
|
|
31074
31076
|
size: pe.Small,
|
|
31075
31077
|
onClick: v,
|
|
@@ -31078,7 +31080,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31078
31080
|
})
|
|
31079
31081
|
]
|
|
31080
31082
|
});
|
|
31081
|
-
},
|
|
31083
|
+
}, _k = 2, vk = (e) => {
|
|
31082
31084
|
let t = e.getBoundingClientRect(), n = window.scrollX, r = window.scrollY, i = window.getComputedStyle(e).transform;
|
|
31083
31085
|
if (!i || i === "none") return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
31084
31086
|
try {
|
|
@@ -31087,7 +31089,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31087
31089
|
} catch {
|
|
31088
31090
|
return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
31089
31091
|
}
|
|
31090
|
-
},
|
|
31092
|
+
}, yk = ({ items: e, totalCount: t, title: n = "Your Favorites", onToggleFavorite: r, isFavoriteVisible: i, onItemClick: a, styles: o, isLeaving: s, onExitComplete: c, prevPageAriaLabel: l = "Previous page", nextPageAriaLabel: u = "Next page", addToFavoritesAriaLabel: d, removeFromFavoritesAriaLabel: f, selectedItemId: p, credentialsBadgeLoggedOutLabel: m }) => {
|
|
31091
31093
|
let h = o?.typography?.titleClassName ?? "dial-body-semi-text", g = o?.typography?.countClassName ?? "dial-tiny-semi-text", _ = is({
|
|
31092
31094
|
"--cat-fav-title-text": o?.colors?.titleText,
|
|
31093
31095
|
"--cat-fav-count-text": o?.colors?.countText,
|
|
@@ -31100,7 +31102,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31100
31102
|
"--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
|
|
31101
31103
|
"--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
|
|
31102
31104
|
"--cat-fav-page-nav-bg": o?.colors?.pageNavBackground
|
|
31103
|
-
}), v = I(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = R(1), x =
|
|
31105
|
+
}), v = I(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = R(1), x = EE(), S = x * _k, C = (y - 1) * S, w = I(() => v.slice(C, C + S), [
|
|
31104
31106
|
v,
|
|
31105
31107
|
C,
|
|
31106
31108
|
S
|
|
@@ -31133,7 +31135,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31133
31135
|
M.current = y, ae.current = x;
|
|
31134
31136
|
let n = ee.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
|
|
31135
31137
|
if (n.forEach((e) => {
|
|
31136
|
-
r.set(e.dataset.cardId,
|
|
31138
|
+
r.set(e.dataset.cardId, vk(e));
|
|
31137
31139
|
}), !e && !t) {
|
|
31138
31140
|
let e = O.current, t = oe.current, i = 0;
|
|
31139
31141
|
if (e) {
|
|
@@ -31189,7 +31191,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31189
31191
|
ref: D,
|
|
31190
31192
|
children: /* @__PURE__ */ B("section", {
|
|
31191
31193
|
ref: O,
|
|
31192
|
-
className: W("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2",
|
|
31194
|
+
className: W("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", hk.section, s && hk.sectionLeaving),
|
|
31193
31195
|
style: {
|
|
31194
31196
|
..._,
|
|
31195
31197
|
minHeight: ne
|
|
@@ -31200,16 +31202,16 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31200
31202
|
children: [/* @__PURE__ */ z(kv, {
|
|
31201
31203
|
title: n,
|
|
31202
31204
|
postfix: E,
|
|
31203
|
-
titleClassName: W(h,
|
|
31204
|
-
postfixClassName: W(g,
|
|
31205
|
+
titleClassName: W(h, hk.titleText),
|
|
31206
|
+
postfixClassName: W(g, hk.countText),
|
|
31205
31207
|
trailing: T > 1 ? /* @__PURE__ */ B("div", {
|
|
31206
|
-
className: W("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]",
|
|
31208
|
+
className: W("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", hk.pageNav),
|
|
31207
31209
|
children: [
|
|
31208
31210
|
/* @__PURE__ */ z("button", {
|
|
31209
31211
|
"aria-label": l,
|
|
31210
31212
|
disabled: y === 1,
|
|
31211
31213
|
onClick: () => b((e) => e - 1),
|
|
31212
|
-
className: W("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent",
|
|
31214
|
+
className: W("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", hk.navBtn),
|
|
31213
31215
|
children: /* @__PURE__ */ z(wt, {
|
|
31214
31216
|
size: 14,
|
|
31215
31217
|
className: "rtl:scale-x-[-1]",
|
|
@@ -31217,7 +31219,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31217
31219
|
})
|
|
31218
31220
|
}),
|
|
31219
31221
|
/* @__PURE__ */ B("span", {
|
|
31220
|
-
className: W("min-w-[32px] select-none px-1 text-center", g,
|
|
31222
|
+
className: W("min-w-[32px] select-none px-1 text-center", g, hk.countText),
|
|
31221
31223
|
children: [
|
|
31222
31224
|
y,
|
|
31223
31225
|
" / ",
|
|
@@ -31228,7 +31230,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31228
31230
|
"aria-label": u,
|
|
31229
31231
|
disabled: y === T,
|
|
31230
31232
|
onClick: () => b((e) => e + 1),
|
|
31231
|
-
className: W("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent",
|
|
31233
|
+
className: W("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", hk.navBtn),
|
|
31232
31234
|
children: /* @__PURE__ */ z(Tt, {
|
|
31233
31235
|
size: 14,
|
|
31234
31236
|
className: "rtl:scale-x-[-1]",
|
|
@@ -31239,12 +31241,12 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31239
31241
|
}) : void 0
|
|
31240
31242
|
}), /* @__PURE__ */ z("div", {
|
|
31241
31243
|
ref: ee,
|
|
31242
|
-
className: W("grid content-start gap-5",
|
|
31244
|
+
className: W("grid content-start gap-5", hk.gridPage),
|
|
31243
31245
|
style: {
|
|
31244
31246
|
gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
|
|
31245
31247
|
minHeight: k
|
|
31246
31248
|
},
|
|
31247
|
-
children: w.map((e) => /* @__PURE__ */ z(
|
|
31249
|
+
children: w.map((e) => /* @__PURE__ */ z(gk, {
|
|
31248
31250
|
item: e,
|
|
31249
31251
|
onToggle: r,
|
|
31250
31252
|
isFavoriteVisible: i,
|
|
@@ -31257,7 +31259,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31257
31259
|
})]
|
|
31258
31260
|
})
|
|
31259
31261
|
});
|
|
31260
|
-
},
|
|
31262
|
+
}, bk = {
|
|
31261
31263
|
listContainer: "_listContainer_145s6_1",
|
|
31262
31264
|
gridClip: "_gridClip_145s6_6",
|
|
31263
31265
|
favHeader: "_favHeader_145s6_43",
|
|
@@ -31266,19 +31268,19 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31266
31268
|
selectedCheck: "_selectedCheck_145s6_55",
|
|
31267
31269
|
starToggleOff: "_starToggleOff_145s6_59",
|
|
31268
31270
|
selectedRow: "_selectedRow_145s6_72"
|
|
31269
|
-
},
|
|
31271
|
+
}, xk = ({ data: e }) => e ? /* @__PURE__ */ z("div", {
|
|
31270
31272
|
className: "flex h-full items-center",
|
|
31271
31273
|
children: /* @__PURE__ */ z(Av, { type: e.type })
|
|
31272
|
-
}) : null,
|
|
31274
|
+
}) : null, Sk = " / ", Ck = ({ data: e, context: t }) => {
|
|
31273
31275
|
if (!e || e.folder.length === 0) return null;
|
|
31274
|
-
let n = e.folder.join(
|
|
31276
|
+
let n = e.folder.join(Sk), r = e.folder[e.folder.length - 1], i = e.folder.length > 1, a = t?.typography?.folderClassName ?? "dial-small-text", o = t?.typography?.folderLastSegmentClassName ?? "dial-small-semi-text";
|
|
31275
31277
|
return /* @__PURE__ */ B("div", {
|
|
31276
31278
|
className: "flex h-full w-full min-w-0 items-center gap-1.5",
|
|
31277
31279
|
children: [
|
|
31278
31280
|
/* @__PURE__ */ z(Bt, {
|
|
31279
31281
|
size: k.SM,
|
|
31280
31282
|
stroke: A,
|
|
31281
|
-
className: W("shrink-0",
|
|
31283
|
+
className: W("shrink-0", bk.folderIcon),
|
|
31282
31284
|
"aria-hidden": !0
|
|
31283
31285
|
}),
|
|
31284
31286
|
/* @__PURE__ */ z(Je, {
|
|
@@ -31300,7 +31302,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31300
31302
|
})
|
|
31301
31303
|
]
|
|
31302
31304
|
});
|
|
31303
|
-
},
|
|
31305
|
+
}, wk = ({ data: e, context: t }) => {
|
|
31304
31306
|
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;
|
|
31305
31307
|
return e ? /* @__PURE__ */ B("div", {
|
|
31306
31308
|
className: "flex h-full w-full min-w-0 items-center gap-2.5",
|
|
@@ -31311,7 +31313,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31311
31313
|
size: 36,
|
|
31312
31314
|
initialsName: e.name,
|
|
31313
31315
|
styles: { badgeClassName: "rounded-[10px]" }
|
|
31314
|
-
}), /* @__PURE__ */ z(
|
|
31316
|
+
}), /* @__PURE__ */ z(GE, {
|
|
31315
31317
|
credentials: e.credentials,
|
|
31316
31318
|
loggedOutLabel: t?.credentialsBadgeLoggedOutLabel
|
|
31317
31319
|
})]
|
|
@@ -31324,41 +31326,41 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31324
31326
|
className: "min-w-0 flex-1 items-baseline gap-1.5",
|
|
31325
31327
|
trailing: o ? /* @__PURE__ */ z(St, {
|
|
31326
31328
|
size: k.SM,
|
|
31327
|
-
className: W("shrink-0",
|
|
31329
|
+
className: W("shrink-0", bk.selectedCheck),
|
|
31328
31330
|
"aria-hidden": !0,
|
|
31329
31331
|
stroke: A
|
|
31330
31332
|
}) : void 0
|
|
31331
31333
|
})]
|
|
31332
31334
|
}) : null;
|
|
31333
|
-
},
|
|
31335
|
+
}, Tk = ({ data: e, context: t }) => {
|
|
31334
31336
|
let [n, r] = R(e?.isStarred ?? !1);
|
|
31335
31337
|
return F(() => {
|
|
31336
31338
|
r(e?.isStarred ?? !1);
|
|
31337
31339
|
}, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ z("div", {
|
|
31338
31340
|
className: "flex h-full items-center justify-end pe-4",
|
|
31339
|
-
children: /* @__PURE__ */ z(
|
|
31341
|
+
children: /* @__PURE__ */ z(qE, {
|
|
31340
31342
|
isStarred: n,
|
|
31341
31343
|
onClick: (i) => {
|
|
31342
31344
|
i.stopPropagation();
|
|
31343
31345
|
let a = !n;
|
|
31344
31346
|
r(a), t?.onToggleFavorite?.(e.id, a);
|
|
31345
31347
|
},
|
|
31346
|
-
className: n ? void 0 :
|
|
31348
|
+
className: n ? void 0 : bk.starToggleOff
|
|
31347
31349
|
})
|
|
31348
31350
|
});
|
|
31349
|
-
},
|
|
31351
|
+
}, Ek = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ z("div", {
|
|
31350
31352
|
className: "flex h-full w-full min-w-0 items-center",
|
|
31351
|
-
children: /* @__PURE__ */ z(
|
|
31352
|
-
}),
|
|
31353
|
+
children: /* @__PURE__ */ z(QE, { topics: e.topics })
|
|
31354
|
+
}), Dk = {
|
|
31353
31355
|
folder: (e) => e !== Da.Model,
|
|
31354
31356
|
tags: () => !0,
|
|
31355
31357
|
favorite: () => !0
|
|
31356
|
-
},
|
|
31358
|
+
}, Ok = (e, t) => Object.fromEntries([
|
|
31357
31359
|
"folder",
|
|
31358
31360
|
"tags",
|
|
31359
31361
|
"favorite"
|
|
31360
|
-
].map((n) => [n, (t?.[n] ??
|
|
31361
|
-
let r =
|
|
31362
|
+
].map((n) => [n, (t?.[n] ?? Dk[n])(e)])), kk = (e, t = !1, n) => {
|
|
31363
|
+
let r = Ok(e, n);
|
|
31362
31364
|
return [
|
|
31363
31365
|
{
|
|
31364
31366
|
headerName: "Name",
|
|
@@ -31366,7 +31368,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31366
31368
|
minWidth: 220,
|
|
31367
31369
|
field: "name",
|
|
31368
31370
|
filter: !1,
|
|
31369
|
-
cellRenderer:
|
|
31371
|
+
cellRenderer: wk,
|
|
31370
31372
|
valueGetter: (e) => e.data?.name
|
|
31371
31373
|
},
|
|
31372
31374
|
{
|
|
@@ -31376,7 +31378,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31376
31378
|
field: "type",
|
|
31377
31379
|
filter: !1,
|
|
31378
31380
|
sortable: !1,
|
|
31379
|
-
cellRenderer:
|
|
31381
|
+
cellRenderer: xk,
|
|
31380
31382
|
valueGetter: (e) => e.data?.type
|
|
31381
31383
|
},
|
|
31382
31384
|
{
|
|
@@ -31386,7 +31388,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31386
31388
|
minWidth: 170,
|
|
31387
31389
|
filter: !1,
|
|
31388
31390
|
hide: !r.folder,
|
|
31389
|
-
cellRenderer:
|
|
31391
|
+
cellRenderer: Ck,
|
|
31390
31392
|
valueGetter: (e) => e.data?.folder
|
|
31391
31393
|
},
|
|
31392
31394
|
{
|
|
@@ -31397,7 +31399,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31397
31399
|
filter: !1,
|
|
31398
31400
|
sortable: !1,
|
|
31399
31401
|
hide: !r.tags,
|
|
31400
|
-
cellRenderer:
|
|
31402
|
+
cellRenderer: Ek,
|
|
31401
31403
|
valueGetter: (e) => e.data?.topics
|
|
31402
31404
|
},
|
|
31403
31405
|
{
|
|
@@ -31409,11 +31411,11 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31409
31411
|
sortable: !1,
|
|
31410
31412
|
resizable: !1,
|
|
31411
31413
|
hide: t || !r.favorite,
|
|
31412
|
-
headerClass:
|
|
31413
|
-
cellRenderer:
|
|
31414
|
+
headerClass: bk.favHeader,
|
|
31415
|
+
cellRenderer: Tk
|
|
31414
31416
|
}
|
|
31415
31417
|
];
|
|
31416
|
-
},
|
|
31418
|
+
}, Ak = 60, jk = ({ items: e, type: t, query: n = "", ariaLabel: r = "Catalog", emptyStateTitle: i, styles: a, onToggleFavorite: o, isFavoriteVisible: s, onItemClick: c, stickyHeaderTop: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f = !1, columnVisibility: p }) => {
|
|
31417
31419
|
if (e.length === 0) return /* @__PURE__ */ z("div", {
|
|
31418
31420
|
className: "flex size-full flex-col items-center justify-center",
|
|
31419
31421
|
children: /* @__PURE__ */ z(Dv, { label: i ?? "No results" })
|
|
@@ -31430,7 +31432,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31430
31432
|
"--cat-list-selected-bg": h?.selectedRowBackground,
|
|
31431
31433
|
"--cat-list-selected-check": h?.selectedRowCheckIcon,
|
|
31432
31434
|
...l == null ? {} : { "--list-header-sticky-top": `${l}px` }
|
|
31433
|
-
}, _ = L(null), { containerRef: v, startRow: y, endRow: b } =
|
|
31435
|
+
}, _ = L(null), { containerRef: v, startRow: y, endRow: b } = zE(e.length, Ak), x = I(() => e.slice(y, b), [
|
|
31434
31436
|
e,
|
|
31435
31437
|
y,
|
|
31436
31438
|
b
|
|
@@ -31443,17 +31445,17 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31443
31445
|
_.current?.setGridOption("domLayout", e.length > 0 ? "autoHeight" : "normal");
|
|
31444
31446
|
}, [e]), /* @__PURE__ */ z("div", {
|
|
31445
31447
|
style: g,
|
|
31446
|
-
className: tt("w-full rounded-xl border",
|
|
31448
|
+
className: tt("w-full rounded-xl border", bk.listContainer),
|
|
31447
31449
|
children: /* @__PURE__ */ B("div", {
|
|
31448
31450
|
ref: v,
|
|
31449
|
-
className: tt("rounded-xl",
|
|
31451
|
+
className: tt("rounded-xl", bk.gridClip),
|
|
31450
31452
|
children: [
|
|
31451
31453
|
y > 0 && /* @__PURE__ */ z("div", {
|
|
31452
|
-
style: { height: y *
|
|
31454
|
+
style: { height: y * Ak },
|
|
31453
31455
|
"aria-hidden": !0
|
|
31454
31456
|
}),
|
|
31455
31457
|
/* @__PURE__ */ z(dn, {
|
|
31456
|
-
columnDefs:
|
|
31458
|
+
columnDefs: kk(t, f, p),
|
|
31457
31459
|
rowData: x,
|
|
31458
31460
|
getRowId: (e) => e.id,
|
|
31459
31461
|
withoutHeaderBorders: !0,
|
|
@@ -31463,7 +31465,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31463
31465
|
},
|
|
31464
31466
|
emptyStateTitle: i,
|
|
31465
31467
|
additionalGridOptions: {
|
|
31466
|
-
rowHeight:
|
|
31468
|
+
rowHeight: Ak,
|
|
31467
31469
|
defaultColDef: {
|
|
31468
31470
|
filter: !1,
|
|
31469
31471
|
floatingFilter: !1
|
|
@@ -31481,18 +31483,18 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31481
31483
|
e.column.getColDef().field !== "isStarred" && e.data && c(e.data);
|
|
31482
31484
|
} : void 0,
|
|
31483
31485
|
rowClass: c ? "cursor-pointer" : void 0,
|
|
31484
|
-
getRowClass: (e) => e.data?.id === u ?
|
|
31486
|
+
getRowClass: (e) => e.data?.id === u ? bk.selectedRow : void 0
|
|
31485
31487
|
},
|
|
31486
31488
|
ariaLabel: r
|
|
31487
31489
|
}),
|
|
31488
31490
|
b < e.length && /* @__PURE__ */ z("div", {
|
|
31489
|
-
style: { height: (e.length - b) *
|
|
31491
|
+
style: { height: (e.length - b) * Ak },
|
|
31490
31492
|
"aria-hidden": !0
|
|
31491
31493
|
})
|
|
31492
31494
|
]
|
|
31493
31495
|
})
|
|
31494
31496
|
});
|
|
31495
|
-
},
|
|
31497
|
+
}, Mk = {
|
|
31496
31498
|
filterBtn: "_filterBtn_ehf8i_1",
|
|
31497
31499
|
filterBtnActive: "_filterBtnActive_ehf8i_18",
|
|
31498
31500
|
filterBtnOpen: "_filterBtnOpen_ehf8i_22",
|
|
@@ -31506,13 +31508,13 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31506
31508
|
divider: "_divider_ehf8i_74",
|
|
31507
31509
|
sectionLabel: "_sectionLabel_ehf8i_78",
|
|
31508
31510
|
footer: "_footer_ehf8i_82"
|
|
31509
|
-
},
|
|
31511
|
+
}, Nk = (e, t, n, r, i) => {
|
|
31510
31512
|
let a = e.size > 0;
|
|
31511
31513
|
return n && a ? `${r} · ${e.size}` : n ? r : a ? Bn(e, t, i) : i;
|
|
31512
|
-
},
|
|
31514
|
+
}, Pk = (e, t) => {
|
|
31513
31515
|
let n = new Set(t);
|
|
31514
31516
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
31515
|
-
},
|
|
31517
|
+
}, Fk = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: a = "My", topicsLabel: o = "Topics", defaultLabel: s = "From", clearLabel: c = "Clear", applyLabel: l = "Apply", typography: u, colors: d }) => {
|
|
31516
31518
|
let f = (r ?? !1) || e.size > 0, [p, m] = R(!1), h = is({
|
|
31517
31519
|
"--cat-filter-btn-bg": d?.buttonBackground,
|
|
31518
31520
|
"--cat-filter-btn-border": d?.buttonBorder,
|
|
@@ -31532,7 +31534,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31532
31534
|
"--cat-filter-section-label": d?.sectionLabel,
|
|
31533
31535
|
"--cat-filter-divider": d?.divider,
|
|
31534
31536
|
"--cat-filter-footer-border": d?.footerBorder
|
|
31535
|
-
}), g = I(() => n == null ? [] : [...n].sort(), [n]), _ =
|
|
31537
|
+
}), g = I(() => n == null ? [] : [...n].sort(), [n]), _ = Nk(e, n, r, a, s), [v, y] = R(() => new Set(e)), [b, x] = R(r ?? !1);
|
|
31536
31538
|
F(() => {
|
|
31537
31539
|
p && (y(new Set(e)), x(r ?? !1));
|
|
31538
31540
|
}, [
|
|
@@ -31576,7 +31578,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31576
31578
|
"aria-label": s,
|
|
31577
31579
|
tabIndex: -1,
|
|
31578
31580
|
style: h,
|
|
31579
|
-
className: W("min-w-[360px] rounded-xl p-[6px]",
|
|
31581
|
+
className: W("min-w-[360px] rounded-xl p-[6px]", Mk.overlay),
|
|
31580
31582
|
onKeyDown: ne,
|
|
31581
31583
|
children: [
|
|
31582
31584
|
/* @__PURE__ */ B("div", {
|
|
@@ -31586,32 +31588,32 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31586
31588
|
ref: (e) => {
|
|
31587
31589
|
E.current[0] = e;
|
|
31588
31590
|
},
|
|
31589
|
-
className: W("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none",
|
|
31591
|
+
className: W("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", Mk.row, b && Mk.rowChecked),
|
|
31590
31592
|
onClick: () => x(!b),
|
|
31591
31593
|
onKeyDown: re(() => x(!b)),
|
|
31592
31594
|
children: [/* @__PURE__ */ z(S, {
|
|
31593
31595
|
isSelected: b,
|
|
31594
31596
|
className: "shrink-0"
|
|
31595
31597
|
}), /* @__PURE__ */ z("span", {
|
|
31596
|
-
className: W(
|
|
31598
|
+
className: W(Mk.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
31597
31599
|
children: a
|
|
31598
31600
|
})]
|
|
31599
31601
|
}),
|
|
31600
31602
|
g.length > 0 && /* @__PURE__ */ B(ht, { children: [
|
|
31601
31603
|
/* @__PURE__ */ z("div", {
|
|
31602
31604
|
role: "separator",
|
|
31603
|
-
className: W("my-1 h-px",
|
|
31605
|
+
className: W("my-1 h-px", Mk.divider),
|
|
31604
31606
|
"aria-hidden": !0
|
|
31605
31607
|
}),
|
|
31606
31608
|
/* @__PURE__ */ z("div", {
|
|
31607
|
-
className: W("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text",
|
|
31609
|
+
className: W("px-[10px] pb-1 pt-[10px]", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Mk.sectionLabel),
|
|
31608
31610
|
"aria-hidden": !0,
|
|
31609
31611
|
children: o
|
|
31610
31612
|
}),
|
|
31611
31613
|
/* @__PURE__ */ z("div", {
|
|
31612
31614
|
className: "flex max-h-[220px] flex-col gap-1 overflow-y-auto",
|
|
31613
31615
|
children: g.map((e, t) => {
|
|
31614
|
-
let n = v.has(e), r = t + 1, i = () => y(
|
|
31616
|
+
let n = v.has(e), r = t + 1, i = () => y(Pk(e, v));
|
|
31615
31617
|
return /* @__PURE__ */ B("div", {
|
|
31616
31618
|
role: "menuitemcheckbox",
|
|
31617
31619
|
"aria-checked": n,
|
|
@@ -31619,14 +31621,14 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31619
31621
|
ref: (e) => {
|
|
31620
31622
|
E.current[r] = e;
|
|
31621
31623
|
},
|
|
31622
|
-
className: W("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none",
|
|
31624
|
+
className: W("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", Mk.row, n && Mk.rowChecked),
|
|
31623
31625
|
onClick: i,
|
|
31624
31626
|
onKeyDown: re(i),
|
|
31625
31627
|
children: [/* @__PURE__ */ z(S, {
|
|
31626
31628
|
isSelected: n,
|
|
31627
31629
|
className: "shrink-0"
|
|
31628
31630
|
}), /* @__PURE__ */ z("span", {
|
|
31629
|
-
className:
|
|
31631
|
+
className: Mk.rowLabel,
|
|
31630
31632
|
children: e
|
|
31631
31633
|
})]
|
|
31632
31634
|
}, e);
|
|
@@ -31634,7 +31636,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31634
31636
|
})
|
|
31635
31637
|
] }),
|
|
31636
31638
|
/* @__PURE__ */ B("div", {
|
|
31637
|
-
className: W("mt-1 flex items-center px-1 py-3",
|
|
31639
|
+
className: W("mt-1 flex items-center px-1 py-3", Mk.footer),
|
|
31638
31640
|
onKeyDown: (e) => {
|
|
31639
31641
|
(e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
|
|
31640
31642
|
},
|
|
@@ -31656,31 +31658,31 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31656
31658
|
"aria-expanded": p,
|
|
31657
31659
|
onKeyDown: te,
|
|
31658
31660
|
style: h,
|
|
31659
|
-
className: W("flex h-12 shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-lg px-[18px]",
|
|
31661
|
+
className: W("flex h-12 shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-lg px-[18px]", Mk.filterBtn, f && Mk.filterBtnActive, p && Mk.filterBtnOpen),
|
|
31660
31662
|
children: [
|
|
31661
31663
|
/* @__PURE__ */ z(zt, {
|
|
31662
31664
|
size: k.SM,
|
|
31663
31665
|
stroke: A,
|
|
31664
|
-
className: W("shrink-0",
|
|
31666
|
+
className: W("shrink-0", Mk.filterBtnFunnel),
|
|
31665
31667
|
"aria-hidden": !0
|
|
31666
31668
|
}),
|
|
31667
31669
|
/* @__PURE__ */ z("span", {
|
|
31668
|
-
className: W(
|
|
31670
|
+
className: W(Mk.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
31669
31671
|
children: _
|
|
31670
31672
|
}),
|
|
31671
31673
|
/* @__PURE__ */ z(Ct, {
|
|
31672
31674
|
size: 14,
|
|
31673
31675
|
stroke: A,
|
|
31674
|
-
className: W("shrink-0 transition-transform duration-150",
|
|
31676
|
+
className: W("shrink-0 transition-transform duration-150", Mk.filterBtnChevron, p && "rotate-180"),
|
|
31675
31677
|
"aria-hidden": !0
|
|
31676
31678
|
})
|
|
31677
31679
|
]
|
|
31678
31680
|
})
|
|
31679
31681
|
});
|
|
31680
|
-
},
|
|
31682
|
+
}, Ik = {
|
|
31681
31683
|
section: "_section_mh952_1",
|
|
31682
31684
|
divider: "_divider_mh952_5"
|
|
31683
|
-
},
|
|
31685
|
+
}, Lk = ({ totalCount: e, viewMode: t, onViewModeChange: n, title: r = "Browse", browseHeaderRenderer: i, styles: a, query: o, onQueryChange: s, searchPlaceholder: c, gridViewLabel: l = "Grid view", listViewLabel: u = "List view", viewToggleLabel: d = "View mode", sortKey: f, sortOptions: p, filters: m, onFiltersChange: h, filterValues: g, isMyAppsActive: b, onMyAppsChange: x, filterFromLabel: S, filterMyAppsLabel: C, filterTopicsLabel: w }) => {
|
|
31684
31686
|
let T = a?.typography?.titleClassName ?? "dial-body-semi-text", E = a?.typography?.countClassName ?? "dial-tiny-semi-text", D = I(() => [{
|
|
31685
31687
|
value: In.Grid,
|
|
31686
31688
|
icon: /* @__PURE__ */ z(Wt, {
|
|
@@ -31720,7 +31722,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31720
31722
|
value: t,
|
|
31721
31723
|
onChange: n,
|
|
31722
31724
|
items: D
|
|
31723
|
-
}), p != null && p.length > 0 && /* @__PURE__ */ B(ht, { children: [/* @__PURE__ */ z("div", { className: W("h-4 w-px shrink-0",
|
|
31725
|
+
}), p != null && p.length > 0 && /* @__PURE__ */ B(ht, { children: [/* @__PURE__ */ z("div", { className: W("h-4 w-px shrink-0", Ik.divider) }), /* @__PURE__ */ z(v, {
|
|
31724
31726
|
label: O,
|
|
31725
31727
|
variant: y.Primary,
|
|
31726
31728
|
appearance: _.Ghost,
|
|
@@ -31742,7 +31744,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31742
31744
|
placeholder: c,
|
|
31743
31745
|
"aria-label": c
|
|
31744
31746
|
})
|
|
31745
|
-
}), /* @__PURE__ */ z(
|
|
31747
|
+
}), /* @__PURE__ */ z(Fk, {
|
|
31746
31748
|
checked: m ?? /* @__PURE__ */ new Set(),
|
|
31747
31749
|
onChange: h ?? (() => void 0),
|
|
31748
31750
|
values: g,
|
|
@@ -31755,12 +31757,12 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31755
31757
|
})]
|
|
31756
31758
|
})]
|
|
31757
31759
|
});
|
|
31758
|
-
},
|
|
31760
|
+
}, Rk = ({ query: e, onQueryChange: t, searchPlaceholder: n = "Search models, tools, agents…", styles: r, filters: i, onFiltersChange: a, filterValues: o, isMyAppsActive: s, onMyAppsChange: c, filterFromLabel: l, filterMyAppsLabel: u, filterTopicsLabel: d, gridViewLabel: f, listViewLabel: p, viewToggleLabel: m, sortKey: h, sortOptions: g, ..._ }) => {
|
|
31759
31761
|
let v = { "--cat-browse-divider": r?.colors?.divider };
|
|
31760
31762
|
return /* @__PURE__ */ z("section", {
|
|
31761
|
-
className: W("flex-shrink-0 px-4",
|
|
31763
|
+
className: W("flex-shrink-0 px-4", Ik.section),
|
|
31762
31764
|
style: v,
|
|
31763
|
-
children: /* @__PURE__ */ z(
|
|
31765
|
+
children: /* @__PURE__ */ z(Lk, {
|
|
31764
31766
|
styles: r,
|
|
31765
31767
|
query: e,
|
|
31766
31768
|
onQueryChange: t,
|
|
@@ -31781,11 +31783,11 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31781
31783
|
..._
|
|
31782
31784
|
})
|
|
31783
31785
|
});
|
|
31784
|
-
},
|
|
31786
|
+
}, zk = {
|
|
31785
31787
|
root: "_root_1h83l_1",
|
|
31786
31788
|
heading: "_heading_1h83l_5",
|
|
31787
31789
|
headingTitle: "_headingTitle_1h83l_9"
|
|
31788
|
-
},
|
|
31790
|
+
}, Bk = ({ label: e, options: t, onClick: n }) => {
|
|
31789
31791
|
let r = L(null);
|
|
31790
31792
|
return t?.length ? /* @__PURE__ */ z("div", {
|
|
31791
31793
|
ref: r,
|
|
@@ -31807,8 +31809,8 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31807
31809
|
}),
|
|
31808
31810
|
onClick: n
|
|
31809
31811
|
});
|
|
31810
|
-
},
|
|
31811
|
-
let { typography: Ie } = we ?? {}, Le =
|
|
31812
|
+
}, Vk = ({ items: e, tabs: t, topicOptions: n, favorites: r, titles: i, browseHeaderRenderer: a, onToggleFavorite: o, isFavoriteVisible: s, columnVisibility: c, onUseInChat: l, isPrimaryActionVisible: u, onShare: d, isPublishVisible: f, isPublishPrimary: p, getPublishHistory: m, publishFolderItems: h, publishExpandedPaths: g, onPublishExpandedPathsChange: _, publishLoadingPaths: v, hasPublishWriteAccess: y, onPublish: b, onPublishSuccess: x, onPublishError: S, onCreatePublishFolder: C, publishLabels: w, ruleSourceOptions: T, onFetchExistingRules: E, shareOverlay: D, isShareVisible: O, isSharePrimary: ee, onFetchDetails: k, onEdit: A, onDownload: te, isDownloadVisible: ne, isDownloadPrimary: re, onLoadContentFile: ie, onLoadContentFilePreview: j, renderContentFilePreview: M, onDelete: ae, onUnshare: oe, isUnshareVisible: se, onRevokeShare: ce, onFetchRecipientsCount: le, isRevokeShareVisible: ue, onUnpublish: de, isUnpublishVisible: fe, onLogin: pe, onLogout: me, onCreateClick: he, createOptions: N, hideCreateButton: ge = !1, hidePageTitle: _e = !1, isReadonly: ve = !1, initialViewMode: ye = In.Grid, isFullWidth: be = !1, selectedItemId: xe, onCardClick: Se, isLoading: Ce, styles: we, detailsTexts: Te, detailsLimitsFooterNote: Ee, initialDetailsItemId: De, sortKey: Oe, onSortChange: ke, filterTopics: Ae, onFilterTopicsChange: je, isMyAppsActive: Me, onMyAppsActiveChange: Ne, activeTab: Pe, onActiveTabChange: Fe }) => {
|
|
31813
|
+
let { typography: Ie } = we ?? {}, Le = ME(we), Re = i?.pageTitle ?? "Catalog", ze = i?.createLabel ?? "Create", Be = i?.favoritesTitle ?? "Your favorites", Ve = i?.browseTitle ?? "Browse", He = i?.searchPlaceholder ?? "Search models, tools, agents…", We = i?.noResultsTitle ?? ((e) => `No results for "${e}"`), Ke = i?.featuredLabel ?? "Featured", qe = i?.gridViewLabel ?? "Grid view", Je = i?.listViewLabel ?? "List view", Ye = i?.viewToggleLabel ?? "View mode", Xe = i?.ariaLabel ?? "Catalog", Ze = [
|
|
31812
31814
|
{
|
|
31813
31815
|
key: Ln.RecentlyUpdated,
|
|
31814
31816
|
label: i?.sortRecentlyUpdatedLabel ?? "Recently Updated",
|
|
@@ -31831,7 +31833,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31831
31833
|
st(e), je?.(e);
|
|
31832
31834
|
}, [je]), ht = P((e) => {
|
|
31833
31835
|
lt(e), Ne?.(e);
|
|
31834
|
-
}, [Ne]), gt = I(() => e.filter((e) => !e.isHidden), [e]), _t = I(() => n ?? Un(gt), [n, gt]), vt = I(() => t ??
|
|
31836
|
+
}, [Ne]), gt = I(() => e.filter((e) => !e.isHidden), [e]), _t = I(() => n ?? Un(gt), [n, gt]), vt = I(() => t ?? TE(gt, i?.tabLabels), [
|
|
31835
31837
|
t,
|
|
31836
31838
|
gt,
|
|
31837
31839
|
i?.tabLabels
|
|
@@ -31915,17 +31917,17 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31915
31917
|
children: /* @__PURE__ */ z(Ue, {})
|
|
31916
31918
|
}) : /* @__PURE__ */ B("section", {
|
|
31917
31919
|
"aria-label": Xe,
|
|
31918
|
-
className: W("flex size-full min-h-0 flex-1 flex-col",
|
|
31920
|
+
className: W("flex size-full min-h-0 flex-1 flex-col", zk.root),
|
|
31919
31921
|
style: Le,
|
|
31920
31922
|
children: [
|
|
31921
31923
|
(!_e || Xt) && /* @__PURE__ */ z("div", {
|
|
31922
|
-
className: W("shrink-0",
|
|
31924
|
+
className: W("shrink-0", zk.heading),
|
|
31923
31925
|
children: /* @__PURE__ */ B("div", {
|
|
31924
31926
|
className: "flex h-[64px] w-full items-center justify-between px-8",
|
|
31925
31927
|
children: [!_e && /* @__PURE__ */ z("h1", {
|
|
31926
|
-
className: W(Ie?.pageHeadingFontClassName ?? "dial-display2-text",
|
|
31928
|
+
className: W(Ie?.pageHeadingFontClassName ?? "dial-display2-text", zk.headingTitle),
|
|
31927
31929
|
children: Re
|
|
31928
|
-
}), Xt && /* @__PURE__ */ z(
|
|
31930
|
+
}), Xt && /* @__PURE__ */ z(Bk, {
|
|
31929
31931
|
label: ze,
|
|
31930
31932
|
options: N,
|
|
31931
31933
|
onClick: he
|
|
@@ -31937,7 +31939,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31937
31939
|
children: [
|
|
31938
31940
|
Zt && /* @__PURE__ */ z("div", {
|
|
31939
31941
|
className: "w-full px-8",
|
|
31940
|
-
children: /* @__PURE__ */ z(
|
|
31942
|
+
children: /* @__PURE__ */ z(yk, {
|
|
31941
31943
|
items: r,
|
|
31942
31944
|
totalCount: r.length,
|
|
31943
31945
|
title: Be,
|
|
@@ -31952,7 +31954,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31952
31954
|
}),
|
|
31953
31955
|
/* @__PURE__ */ z("div", {
|
|
31954
31956
|
className: "w-full px-4 pt-6",
|
|
31955
|
-
children: /* @__PURE__ */ z(
|
|
31957
|
+
children: /* @__PURE__ */ z(Rk, {
|
|
31956
31958
|
totalCount: Kt.length,
|
|
31957
31959
|
viewMode: et,
|
|
31958
31960
|
onViewModeChange: Yt,
|
|
@@ -31992,7 +31994,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
31992
31994
|
className: W(qt.length > 0 ? ["min-h-full w-full px-8 py-6", !be && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", qt.length === 0 && "px-8 py-6"),
|
|
31993
31995
|
children: [/* @__PURE__ */ z("div", {
|
|
31994
31996
|
className: W(qt.length > 0 ? "pb-8" : "size-full flex-1", et !== In.Grid && "hidden"),
|
|
31995
|
-
children: /* @__PURE__ */ z(
|
|
31997
|
+
children: /* @__PURE__ */ z(rD, {
|
|
31996
31998
|
items: qt,
|
|
31997
31999
|
query: Qe,
|
|
31998
32000
|
onToggleFavorite: o,
|
|
@@ -32005,7 +32007,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
32005
32007
|
})
|
|
32006
32008
|
}), nt && /* @__PURE__ */ z("div", {
|
|
32007
32009
|
className: W("pb-8", et !== In.Cards && "hidden", qt.length === 0 && "h-full"),
|
|
32008
|
-
children: /* @__PURE__ */ z(
|
|
32010
|
+
children: /* @__PURE__ */ z(jk, {
|
|
32009
32011
|
type: St,
|
|
32010
32012
|
items: qt,
|
|
32011
32013
|
query: Qe,
|
|
@@ -32024,7 +32026,7 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
32024
32026
|
})
|
|
32025
32027
|
]
|
|
32026
32028
|
}),
|
|
32027
|
-
Ht != null && /* @__PURE__ */ z(
|
|
32029
|
+
Ht != null && /* @__PURE__ */ z(mk, {
|
|
32028
32030
|
item: Ht,
|
|
32029
32031
|
isOpen: At,
|
|
32030
32032
|
isStarred: Jt,
|
|
@@ -32078,4 +32080,4 @@ var bE = [sv], xE = ({ content: e, headingClassName: t }) => /* @__PURE__ */ z(v
|
|
|
32078
32080
|
});
|
|
32079
32081
|
};
|
|
32080
32082
|
//#endregion
|
|
32081
|
-
export {
|
|
32083
|
+
export { UE as AppIdentity, tD as Card, rD as CardGrid, nD as CardRowRenderer, Vk as Catalog, Rn as CatalogContentNodeType, zn as CatalogContentPreviewType, Tn as CatalogDetailsTab, En as CatalogLimitStatus, Ln as CatalogSortKey, In as CatalogViewMode, wn as CodeLanguage, FO as ContentTab, jn as CredentialStatus, GE as CredentialsBadge, Pn as CredentialsBadgeState, Mn as CredentialsLevel, Nn as CredentialsUiState, kn as DeploymentSize, Dn as DetailsConfirmationKind, On as DetailsConfirmationVariant, gk as FavoriteCard, yk as Favorites, Fk as Filter, eO as InfoCard, jk as ListView, Rk as Toolbar, An as ToolsetAuthenticationType, XE as TopicTag, TE as buildCatalogTabs, Wn as filterCatalogItems, kE as getCredentialsBadgeState, OE as getCredentialsUiState, AE as getSignedInLevel, Un as getTopicOptions, Gn as sortCatalogItems, EE as useFavColumns, BE as useScrollVirtualizer };
|