@kong-ui-public/documentation 0.2.3 → 0.2.4
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/dist/documentation.es.js +145 -145
- package/dist/documentation.umd.js +1 -1
- package/package.json +3 -3
package/dist/documentation.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as q, openBlock as v, createBlock as C, resolveDynamicComponent as Q, unref as w, withCtx as A, createElementVNode as j, renderSlot as
|
|
1
|
+
import { defineComponent as q, openBlock as v, createBlock as C, resolveDynamicComponent as Q, unref as w, withCtx as A, createElementVNode as j, renderSlot as V, normalizeClass as Ae, computed as P, createElementBlock as F, toDisplayString as T, createVNode as I, mergeProps as ke, ref as Z, Fragment as Xe, createTextVNode as M, createCommentVNode as U, watch as ge, resolveComponent as B, pushScopeId as fe, popScopeId as he, normalizeStyle as Me, reactive as Qe, onMounted as et, Teleport as tt, createSlots as Ie } from "vue";
|
|
2
2
|
import { createI18n as qe, Translation as ze } from "@kong-ui-public/i18n";
|
|
3
3
|
import "axios";
|
|
4
4
|
import "@kong/kongponents";
|
|
@@ -81,17 +81,17 @@ const K = (e, n) => {
|
|
|
81
81
|
}, ut = {};
|
|
82
82
|
function ct(e, n) {
|
|
83
83
|
return v(), F("blockquote", null, [
|
|
84
|
-
|
|
84
|
+
V(e.$slots, "default", {}, void 0, !0)
|
|
85
85
|
]);
|
|
86
86
|
}
|
|
87
87
|
const dt = /* @__PURE__ */ K(ut, [["render", ct], ["__scopeId", "data-v-afdbfde6"]]), pt = {};
|
|
88
88
|
function mt(e, n) {
|
|
89
89
|
return v(), F("code", null, [
|
|
90
|
-
|
|
90
|
+
V(e.$slots, "default", {}, void 0, !0)
|
|
91
91
|
]);
|
|
92
92
|
}
|
|
93
93
|
const gt = /* @__PURE__ */ K(pt, [["render", mt], ["__scopeId", "data-v-cbde41ab"]]);
|
|
94
|
-
var
|
|
94
|
+
var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
95
95
|
function ft(e) {
|
|
96
96
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
97
97
|
}
|
|
@@ -719,7 +719,7 @@ var Ke = { exports: {} };
|
|
|
719
719
|
for (var S = 0; S < g.length; ++S) {
|
|
720
720
|
if (m && m.cause == b + "," + S)
|
|
721
721
|
return;
|
|
722
|
-
var N = g[S], D = N.inside,
|
|
722
|
+
var N = g[S], D = N.inside, J = !!N.lookbehind, oe = !!N.greedy, ve = N.alias;
|
|
723
723
|
if (oe && !N.pattern.global) {
|
|
724
724
|
var ne = N.pattern.toString().match(/[imsuy]*$/)[0];
|
|
725
725
|
N.pattern = RegExp(N.pattern.source, ne + "g");
|
|
@@ -731,24 +731,24 @@ var Ke = { exports: {} };
|
|
|
731
731
|
if (!(ee instanceof h)) {
|
|
732
732
|
var le = 1, H;
|
|
733
733
|
if (oe) {
|
|
734
|
-
if (H = f(ie, Y, l,
|
|
734
|
+
if (H = f(ie, Y, l, J), !H || H.index >= l.length)
|
|
735
735
|
break;
|
|
736
|
-
var se = H.index,
|
|
737
|
-
for (
|
|
738
|
-
$ = $.next,
|
|
739
|
-
if (
|
|
736
|
+
var se = H.index, Je = H.index + H[0].length, G = Y;
|
|
737
|
+
for (G += $.value.length; se >= G; )
|
|
738
|
+
$ = $.next, G += $.value.length;
|
|
739
|
+
if (G -= $.value.length, Y = G, $.value instanceof h)
|
|
740
740
|
continue;
|
|
741
|
-
for (var ae = $; ae !== i.tail && (
|
|
742
|
-
le++,
|
|
743
|
-
le--, ee = l.slice(Y,
|
|
744
|
-
} else if (H = f(ie, 0, ee,
|
|
741
|
+
for (var ae = $; ae !== i.tail && (G < Je || typeof ae.value == "string"); ae = ae.next)
|
|
742
|
+
le++, G += ae.value.length;
|
|
743
|
+
le--, ee = l.slice(Y, G), H.index -= Y;
|
|
744
|
+
} else if (H = f(ie, 0, ee, J), !H)
|
|
745
745
|
continue;
|
|
746
746
|
var se = H.index, ue = H[0], be = ee.slice(0, se), Ne = ee.slice(se + ue.length), ye = Y + ee.length;
|
|
747
747
|
m && ye > m.reach && (m.reach = ye);
|
|
748
748
|
var ce = $.prev;
|
|
749
749
|
be && (ce = L(i, ce, be), Y += be.length), R(i, ce, le);
|
|
750
|
-
var
|
|
751
|
-
if ($ = L(i, ce,
|
|
750
|
+
var We = new h(b, D ? o.tokenize(ue, D) : ue, ve, ue);
|
|
751
|
+
if ($ = L(i, ce, We), Ne && L(i, $, Ne), le > 1) {
|
|
752
752
|
var _e = {
|
|
753
753
|
cause: b + "," + S,
|
|
754
754
|
reach: ye
|
|
@@ -794,7 +794,7 @@ var Ke = { exports: {} };
|
|
|
794
794
|
}
|
|
795
795
|
return o;
|
|
796
796
|
}(n);
|
|
797
|
-
e.exports && (e.exports = t), typeof
|
|
797
|
+
e.exports && (e.exports = t), typeof Te < "u" && (Te.Prism = t), t.languages.markup = {
|
|
798
798
|
comment: {
|
|
799
799
|
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
800
800
|
greedy: !0
|
|
@@ -1346,7 +1346,7 @@ const de = /* @__PURE__ */ ft(ht), vt = /* @__PURE__ */ q({
|
|
|
1346
1346
|
const n = e.level === 1 ? "em" : "strong";
|
|
1347
1347
|
return (t, r) => (v(), C(Q(w(n)), null, {
|
|
1348
1348
|
default: A(() => [
|
|
1349
|
-
|
|
1349
|
+
V(t.$slots, "default")
|
|
1350
1350
|
]),
|
|
1351
1351
|
_: 3
|
|
1352
1352
|
}));
|
|
@@ -1373,7 +1373,7 @@ const de = /* @__PURE__ */ ft(ht), vt = /* @__PURE__ */ q({
|
|
|
1373
1373
|
const n = e, t = `${n.slug}`, r = `h${n.level}`;
|
|
1374
1374
|
return (a, d) => (v(), C(Q(r), { id: t }, {
|
|
1375
1375
|
default: A(() => [
|
|
1376
|
-
|
|
1376
|
+
V(a.$slots, "default", {}, void 0, !0)
|
|
1377
1377
|
]),
|
|
1378
1378
|
_: 3
|
|
1379
1379
|
}));
|
|
@@ -1408,16 +1408,16 @@ function Ft(e, n) {
|
|
|
1408
1408
|
const $t = /* @__PURE__ */ K(At, [["render", Ft], ["__scopeId", "data-v-b6e25b56"]]), Ct = {};
|
|
1409
1409
|
function Et(e, n) {
|
|
1410
1410
|
return v(), F("s", null, [
|
|
1411
|
-
|
|
1411
|
+
V(e.$slots, "default")
|
|
1412
1412
|
]);
|
|
1413
1413
|
}
|
|
1414
|
-
const Nt = /* @__PURE__ */ K(Ct, [["render", Et]]),
|
|
1415
|
-
function
|
|
1414
|
+
const Nt = /* @__PURE__ */ K(Ct, [["render", Et]]), It = {};
|
|
1415
|
+
function Tt(e, n) {
|
|
1416
1416
|
return v(), F("table", null, [
|
|
1417
|
-
|
|
1417
|
+
V(e.$slots, "default", {}, void 0, !0)
|
|
1418
1418
|
]);
|
|
1419
1419
|
}
|
|
1420
|
-
const Ot = /* @__PURE__ */ K(
|
|
1420
|
+
const Ot = /* @__PURE__ */ K(It, [["render", Tt], ["__scopeId", "data-v-c2502730"]]), jt = /* @__PURE__ */ q({
|
|
1421
1421
|
__name: "TableRow",
|
|
1422
1422
|
props: {
|
|
1423
1423
|
section: {
|
|
@@ -1431,7 +1431,7 @@ const Ot = /* @__PURE__ */ K(Tt, [["render", It], ["__scopeId", "data-v-c2502730
|
|
|
1431
1431
|
return n.section === X.header ? t = "thead" : n.section === X.body ? t = "tbody" : n.section === X.footer && (t = "tfoot"), (r, a) => (v(), C(Q(w(t)), null, {
|
|
1432
1432
|
default: A(() => [
|
|
1433
1433
|
j("tr", null, [
|
|
1434
|
-
|
|
1434
|
+
V(r.$slots, "default", {}, void 0, !0)
|
|
1435
1435
|
])
|
|
1436
1436
|
]),
|
|
1437
1437
|
_: 3
|
|
@@ -1457,7 +1457,7 @@ const Ot = /* @__PURE__ */ K(Tt, [["render", It], ["__scopeId", "data-v-c2502730
|
|
|
1457
1457
|
class: Ae(w(a))
|
|
1458
1458
|
}, {
|
|
1459
1459
|
default: A(() => [
|
|
1460
|
-
|
|
1460
|
+
V(d.$slots, "default", {}, void 0, !0)
|
|
1461
1461
|
]),
|
|
1462
1462
|
_: 3
|
|
1463
1463
|
}, 8, ["class"]));
|
|
@@ -1496,24 +1496,24 @@ const Ot = /* @__PURE__ */ K(Tt, [["render", It], ["__scopeId", "data-v-c2502730
|
|
|
1496
1496
|
},
|
|
1497
1497
|
setup(e) {
|
|
1498
1498
|
return (n, t) => (v(), F(Xe, null, [
|
|
1499
|
-
M(
|
|
1500
|
-
e.appendSpace ? (v(), F("span", Mt, " ")) :
|
|
1501
|
-
e.hardBreak ? (v(), F("br", qt)) :
|
|
1499
|
+
M(T(e.text), 1),
|
|
1500
|
+
e.appendSpace ? (v(), F("span", Mt, " ")) : U("", !0),
|
|
1501
|
+
e.hardBreak ? (v(), F("br", qt)) : U("", !0)
|
|
1502
1502
|
], 64));
|
|
1503
1503
|
}
|
|
1504
|
-
}),
|
|
1505
|
-
function
|
|
1504
|
+
}), Ut = {};
|
|
1505
|
+
function Vt(e, n) {
|
|
1506
1506
|
return v(), F("span", null, [
|
|
1507
|
-
|
|
1507
|
+
V(e.$slots, "default")
|
|
1508
1508
|
]);
|
|
1509
1509
|
}
|
|
1510
|
-
const Rt = /* @__PURE__ */ K(
|
|
1510
|
+
const Rt = /* @__PURE__ */ K(Ut, [["render", Vt]]), Ht = {};
|
|
1511
1511
|
function Zt(e, n) {
|
|
1512
1512
|
return v(), F("p", null, [
|
|
1513
|
-
|
|
1513
|
+
V(e.$slots, "default", {}, void 0, !0)
|
|
1514
1514
|
]);
|
|
1515
1515
|
}
|
|
1516
|
-
const Yt = /* @__PURE__ */ K(Ht, [["render", Zt], ["__scopeId", "data-v-7b54f530"]]),
|
|
1516
|
+
const Yt = /* @__PURE__ */ K(Ht, [["render", Zt], ["__scopeId", "data-v-7b54f530"]]), Gt = /* @__PURE__ */ q({
|
|
1517
1517
|
__name: "List",
|
|
1518
1518
|
props: {
|
|
1519
1519
|
isOrdered: {
|
|
@@ -1531,18 +1531,18 @@ const Yt = /* @__PURE__ */ K(Ht, [["render", Zt], ["__scopeId", "data-v-7b54f530
|
|
|
1531
1531
|
class: Ae({ "has-task-items": e.hasTaskItems })
|
|
1532
1532
|
}, {
|
|
1533
1533
|
default: A(() => [
|
|
1534
|
-
|
|
1534
|
+
V(t.$slots, "default", {}, void 0, !0)
|
|
1535
1535
|
]),
|
|
1536
1536
|
_: 3
|
|
1537
1537
|
}, 8, ["class"]));
|
|
1538
1538
|
}
|
|
1539
|
-
}),
|
|
1539
|
+
}), Jt = /* @__PURE__ */ K(Gt, [["__scopeId", "data-v-7555911f"]]), Wt = {};
|
|
1540
1540
|
function Xt(e, n) {
|
|
1541
1541
|
return v(), F("li", null, [
|
|
1542
|
-
|
|
1542
|
+
V(e.$slots, "default", {}, void 0, !0)
|
|
1543
1543
|
]);
|
|
1544
1544
|
}
|
|
1545
|
-
const Qt = /* @__PURE__ */ K(
|
|
1545
|
+
const Qt = /* @__PURE__ */ K(Wt, [["render", Xt], ["__scopeId", "data-v-cf238e78"]]), en = ["href", "title"], tn = /* @__PURE__ */ q({
|
|
1546
1546
|
__name: "Link",
|
|
1547
1547
|
props: {
|
|
1548
1548
|
href: {
|
|
@@ -1560,7 +1560,7 @@ const Qt = /* @__PURE__ */ K(Gt, [["render", Xt], ["__scopeId", "data-v-cf238e78
|
|
|
1560
1560
|
rel: "noreferrer noopener nofollow",
|
|
1561
1561
|
title: e.title
|
|
1562
1562
|
}, [
|
|
1563
|
-
|
|
1563
|
+
V(n.$slots, "default", {}, void 0, !0)
|
|
1564
1564
|
], 8, en));
|
|
1565
1565
|
}
|
|
1566
1566
|
}), nn = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-0f033d16"]]), an = {
|
|
@@ -1572,7 +1572,7 @@ const Qt = /* @__PURE__ */ K(Gt, [["render", Xt], ["__scopeId", "data-v-cf238e78
|
|
|
1572
1572
|
image: St,
|
|
1573
1573
|
break: $t,
|
|
1574
1574
|
link: nn,
|
|
1575
|
-
list:
|
|
1575
|
+
list: Jt,
|
|
1576
1576
|
list_item: Qt,
|
|
1577
1577
|
paragraph: Yt,
|
|
1578
1578
|
strikethrough: Nt,
|
|
@@ -1607,7 +1607,7 @@ function we(e, n) {
|
|
|
1607
1607
|
return (R = L.children) == null ? void 0 : R.some((O) => O.type === "task_checkbox");
|
|
1608
1608
|
});
|
|
1609
1609
|
});
|
|
1610
|
-
return
|
|
1610
|
+
return I(h, ke({
|
|
1611
1611
|
hasTaskItems: f
|
|
1612
1612
|
}, o, {
|
|
1613
1613
|
parent: n
|
|
@@ -1615,11 +1615,11 @@ function we(e, n) {
|
|
|
1615
1615
|
default: () => s && we(s, t)
|
|
1616
1616
|
});
|
|
1617
1617
|
}
|
|
1618
|
-
return (t == null ? void 0 : t.type) === "code_block" ?
|
|
1618
|
+
return (t == null ? void 0 : t.type) === "code_block" ? I(h, ke(o, {
|
|
1619
1619
|
lines: s,
|
|
1620
1620
|
isSingleLine: (s == null ? void 0 : s.length) && s.length === 1,
|
|
1621
1621
|
codeBlockIndex: r
|
|
1622
|
-
}), null) :
|
|
1622
|
+
}), null) : I(h, ke(o, {
|
|
1623
1623
|
parent: n
|
|
1624
1624
|
}), {
|
|
1625
1625
|
default: () => s && we(s, t)
|
|
@@ -1657,11 +1657,11 @@ const cn = {
|
|
|
1657
1657
|
function dn(e, n = "") {
|
|
1658
1658
|
return e.toLowerCase().trim().replace(/ /g, "-").replace(/[^\w-]+/g, "") + n;
|
|
1659
1659
|
}
|
|
1660
|
-
function
|
|
1660
|
+
function Ue(e, n = /* @__PURE__ */ new Map()) {
|
|
1661
1661
|
if (!e)
|
|
1662
1662
|
return e;
|
|
1663
1663
|
const t = n || /* @__PURE__ */ new Map();
|
|
1664
|
-
return e.map((r) => lt(r) ? pn(r, n) : (r.children && (r.children =
|
|
1664
|
+
return e.map((r) => lt(r) ? pn(r, n) : (r.children && (r.children = Ue(r.children, t)), r));
|
|
1665
1665
|
}
|
|
1666
1666
|
function pn(e, n, t = "doc-heading-") {
|
|
1667
1667
|
var r;
|
|
@@ -1689,12 +1689,12 @@ const mn = {
|
|
|
1689
1689
|
},
|
|
1690
1690
|
setup(e) {
|
|
1691
1691
|
var n;
|
|
1692
|
-
const t = e, { i18n: r } = cn.useI18n(), a = (h) => !h || Object.keys(h).length === 0 && h.constructor === Object, d = P(() => !a(t.document)), s =
|
|
1692
|
+
const t = e, { i18n: r } = cn.useI18n(), a = (h) => !h || Object.keys(h).length === 0 && h.constructor === Object, d = P(() => !a(t.document)), s = Ue((n = t.document) == null ? void 0 : n.children), o = () => {
|
|
1693
1693
|
var h;
|
|
1694
1694
|
return (h = t.document) != null && h.children ? we(s) : null;
|
|
1695
1695
|
};
|
|
1696
1696
|
return (h, f) => (v(), F("div", mn, [
|
|
1697
|
-
d.value ? (v(), C(o, { key: 0 })) : (v(), F("div", gn,
|
|
1697
|
+
d.value ? (v(), C(o, { key: 0 })) : (v(), F("div", gn, T(w(r).t("documentViewer.error")), 1))
|
|
1698
1698
|
]));
|
|
1699
1699
|
}
|
|
1700
1700
|
}), hn = /* @__PURE__ */ K(fn, [["__scopeId", "data-v-1ab71c85"]]);
|
|
@@ -1706,14 +1706,14 @@ function vn(e) {
|
|
|
1706
1706
|
return Object.keys(e).length === 0;
|
|
1707
1707
|
}
|
|
1708
1708
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1709
|
-
function
|
|
1709
|
+
function Ve(e) {
|
|
1710
1710
|
return typeof e > "u" || e === null;
|
|
1711
1711
|
}
|
|
1712
1712
|
function bn(e) {
|
|
1713
1713
|
return typeof e == "object" && e !== null;
|
|
1714
1714
|
}
|
|
1715
1715
|
function yn(e) {
|
|
1716
|
-
return Array.isArray(e) ? e :
|
|
1716
|
+
return Array.isArray(e) ? e : Ve(e) ? [] : [e];
|
|
1717
1717
|
}
|
|
1718
1718
|
function _n(e, n) {
|
|
1719
1719
|
var t, r, a, d;
|
|
@@ -1731,7 +1731,7 @@ function kn(e, n) {
|
|
|
1731
1731
|
function wn(e) {
|
|
1732
1732
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1733
1733
|
}
|
|
1734
|
-
var xn =
|
|
1734
|
+
var xn = Ve, Sn = bn, An = yn, Fn = kn, $n = wn, Cn = _n, $e = {
|
|
1735
1735
|
isNothing: xn,
|
|
1736
1736
|
isObject: Sn,
|
|
1737
1737
|
toArray: An,
|
|
@@ -1753,7 +1753,7 @@ re.prototype.constructor = re;
|
|
|
1753
1753
|
re.prototype.toString = function(e) {
|
|
1754
1754
|
return this.name + ": " + Re(this, e);
|
|
1755
1755
|
};
|
|
1756
|
-
var
|
|
1756
|
+
var W = re, En = [
|
|
1757
1757
|
"kind",
|
|
1758
1758
|
"multi",
|
|
1759
1759
|
"resolve",
|
|
@@ -1769,7 +1769,7 @@ var G = re, En = [
|
|
|
1769
1769
|
"sequence",
|
|
1770
1770
|
"mapping"
|
|
1771
1771
|
];
|
|
1772
|
-
function
|
|
1772
|
+
function In(e) {
|
|
1773
1773
|
var n = {};
|
|
1774
1774
|
return e !== null && Object.keys(e).forEach(function(t) {
|
|
1775
1775
|
e[t].forEach(function(r) {
|
|
@@ -1777,18 +1777,18 @@ function Tn(e) {
|
|
|
1777
1777
|
});
|
|
1778
1778
|
}), n;
|
|
1779
1779
|
}
|
|
1780
|
-
function
|
|
1780
|
+
function Tn(e, n) {
|
|
1781
1781
|
if (n = n || {}, Object.keys(n).forEach(function(t) {
|
|
1782
1782
|
if (En.indexOf(t) === -1)
|
|
1783
|
-
throw new
|
|
1783
|
+
throw new W('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
1784
1784
|
}), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
|
|
1785
1785
|
return !0;
|
|
1786
1786
|
}, this.construct = n.construct || function(t) {
|
|
1787
1787
|
return t;
|
|
1788
|
-
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases =
|
|
1789
|
-
throw new
|
|
1788
|
+
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = In(n.styleAliases || null), Nn.indexOf(this.kind) === -1)
|
|
1789
|
+
throw new W('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1790
1790
|
}
|
|
1791
|
-
var z =
|
|
1791
|
+
var z = Tn;
|
|
1792
1792
|
function Le(e, n) {
|
|
1793
1793
|
var t = [];
|
|
1794
1794
|
return e[n].forEach(function(r) {
|
|
@@ -1830,17 +1830,17 @@ xe.prototype.extend = function(e) {
|
|
|
1830
1830
|
else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit)))
|
|
1831
1831
|
e.implicit && (n = n.concat(e.implicit)), e.explicit && (t = t.concat(e.explicit));
|
|
1832
1832
|
else
|
|
1833
|
-
throw new
|
|
1833
|
+
throw new W("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
1834
1834
|
n.forEach(function(a) {
|
|
1835
1835
|
if (!(a instanceof z))
|
|
1836
|
-
throw new
|
|
1836
|
+
throw new W("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1837
1837
|
if (a.loadKind && a.loadKind !== "scalar")
|
|
1838
|
-
throw new
|
|
1838
|
+
throw new W("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
1839
1839
|
if (a.multi)
|
|
1840
|
-
throw new
|
|
1840
|
+
throw new W("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
1841
1841
|
}), t.forEach(function(a) {
|
|
1842
1842
|
if (!(a instanceof z))
|
|
1843
|
-
throw new
|
|
1843
|
+
throw new W("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1844
1844
|
});
|
|
1845
1845
|
var r = Object.create(xe.prototype);
|
|
1846
1846
|
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Le(r, "implicit"), r.compiledExplicit = Le(r, "explicit"), r.compiledTypeMap = On(r.compiledImplicit, r.compiledExplicit), r;
|
|
@@ -1903,13 +1903,13 @@ var Kn = new z("tag:yaml.org,2002:null", {
|
|
|
1903
1903
|
},
|
|
1904
1904
|
defaultStyle: "lowercase"
|
|
1905
1905
|
});
|
|
1906
|
-
function
|
|
1906
|
+
function Un(e) {
|
|
1907
1907
|
if (e === null)
|
|
1908
1908
|
return !1;
|
|
1909
1909
|
var n = e.length;
|
|
1910
1910
|
return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1911
1911
|
}
|
|
1912
|
-
function
|
|
1912
|
+
function Vn(e) {
|
|
1913
1913
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1914
1914
|
}
|
|
1915
1915
|
function Rn(e) {
|
|
@@ -1917,8 +1917,8 @@ function Rn(e) {
|
|
|
1917
1917
|
}
|
|
1918
1918
|
var Hn = new z("tag:yaml.org,2002:bool", {
|
|
1919
1919
|
kind: "scalar",
|
|
1920
|
-
resolve:
|
|
1921
|
-
construct:
|
|
1920
|
+
resolve: Un,
|
|
1921
|
+
construct: Vn,
|
|
1922
1922
|
predicate: Rn,
|
|
1923
1923
|
represent: {
|
|
1924
1924
|
lowercase: function(e) {
|
|
@@ -1939,10 +1939,10 @@ function Zn(e) {
|
|
|
1939
1939
|
function Yn(e) {
|
|
1940
1940
|
return 48 <= e && e <= 55;
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1942
|
+
function Gn(e) {
|
|
1943
1943
|
return 48 <= e && e <= 57;
|
|
1944
1944
|
}
|
|
1945
|
-
function
|
|
1945
|
+
function Jn(e) {
|
|
1946
1946
|
if (e === null)
|
|
1947
1947
|
return !1;
|
|
1948
1948
|
var n = e.length, t = 0, r = !1, a;
|
|
@@ -1983,13 +1983,13 @@ function Wn(e) {
|
|
|
1983
1983
|
return !1;
|
|
1984
1984
|
for (; t < n; t++)
|
|
1985
1985
|
if (a = e[t], a !== "_") {
|
|
1986
|
-
if (!
|
|
1986
|
+
if (!Gn(e.charCodeAt(t)))
|
|
1987
1987
|
return !1;
|
|
1988
1988
|
r = !0;
|
|
1989
1989
|
}
|
|
1990
1990
|
return !(!r || a === "_");
|
|
1991
1991
|
}
|
|
1992
|
-
function
|
|
1992
|
+
function Wn(e) {
|
|
1993
1993
|
var n = e, t = 1, r;
|
|
1994
1994
|
if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), r = n[0], (r === "-" || r === "+") && (r === "-" && (t = -1), n = n.slice(1), r = n[0]), n === "0")
|
|
1995
1995
|
return 0;
|
|
@@ -2008,8 +2008,8 @@ function Xn(e) {
|
|
|
2008
2008
|
}
|
|
2009
2009
|
var Qn = new z("tag:yaml.org,2002:int", {
|
|
2010
2010
|
kind: "scalar",
|
|
2011
|
-
resolve:
|
|
2012
|
-
construct:
|
|
2011
|
+
resolve: Jn,
|
|
2012
|
+
construct: Wn,
|
|
2013
2013
|
predicate: Xn,
|
|
2014
2014
|
represent: {
|
|
2015
2015
|
binary: function(e) {
|
|
@@ -2233,13 +2233,13 @@ function Na(e) {
|
|
|
2233
2233
|
return !1;
|
|
2234
2234
|
return !0;
|
|
2235
2235
|
}
|
|
2236
|
-
function
|
|
2236
|
+
function Ia(e) {
|
|
2237
2237
|
return e !== null ? e : {};
|
|
2238
2238
|
}
|
|
2239
|
-
var
|
|
2239
|
+
var Ta = new z("tag:yaml.org,2002:set", {
|
|
2240
2240
|
kind: "mapping",
|
|
2241
2241
|
resolve: Na,
|
|
2242
|
-
construct:
|
|
2242
|
+
construct: Ia
|
|
2243
2243
|
});
|
|
2244
2244
|
sa.extend({
|
|
2245
2245
|
implicit: [
|
|
@@ -2250,7 +2250,7 @@ sa.extend({
|
|
|
2250
2250
|
ya,
|
|
2251
2251
|
Sa,
|
|
2252
2252
|
Ca,
|
|
2253
|
-
|
|
2253
|
+
Ta
|
|
2254
2254
|
]
|
|
2255
2255
|
});
|
|
2256
2256
|
function De(e) {
|
|
@@ -2285,10 +2285,10 @@ const Se = /* @__PURE__ */ q({
|
|
|
2285
2285
|
const n = e, t = Z(void 0), r = P(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
|
|
2286
2286
|
return ge(() => n.authFunction, async () => {
|
|
2287
2287
|
t.value = await n.authFunction();
|
|
2288
|
-
}, { immediate: !0 }), (a, d) => r.value ?
|
|
2288
|
+
}, { immediate: !0 }), (a, d) => r.value ? V(a.$slots, "default", {
|
|
2289
2289
|
key: 0,
|
|
2290
2290
|
isAllowed: t.value
|
|
2291
|
-
}) :
|
|
2291
|
+
}) : U("", !0);
|
|
2292
2292
|
}
|
|
2293
2293
|
}), Pa = (e) => (fe("data-v-98786fd9"), e = e(), he(), e), La = { class: "documentation-display" }, Da = { class: "document-meta" }, Ba = { class: "document-title meta-section" }, Ma = /* @__PURE__ */ Pa(() => /* @__PURE__ */ j("span", { class: "document-title-extension" }, "md", -1)), qa = {
|
|
2294
2294
|
key: 0,
|
|
@@ -2296,7 +2296,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
2296
2296
|
}, za = { class: "meta-label" }, Ka = {
|
|
2297
2297
|
key: 1,
|
|
2298
2298
|
class: "document-create meta-section"
|
|
2299
|
-
},
|
|
2299
|
+
}, Ua = { class: "meta-label" }, Va = { class: "document-display-actions" }, Ra = {
|
|
2300
2300
|
key: 0,
|
|
2301
2301
|
class: "markdown-content-loading",
|
|
2302
2302
|
"data-testid": "markdown-content-loading"
|
|
@@ -2369,20 +2369,20 @@ const Se = /* @__PURE__ */ q({
|
|
|
2369
2369
|
return v(), F("div", La, [
|
|
2370
2370
|
j("div", Da, [
|
|
2371
2371
|
j("div", Ba, [
|
|
2372
|
-
|
|
2373
|
-
j("span", null,
|
|
2372
|
+
V(_.$slots, "document-title", {}, () => [
|
|
2373
|
+
j("span", null, T(s.value), 1),
|
|
2374
2374
|
M("."),
|
|
2375
2375
|
Ma
|
|
2376
2376
|
], !0)
|
|
2377
2377
|
]),
|
|
2378
|
-
e.hidePublishToggle ?
|
|
2379
|
-
j("span", za,
|
|
2378
|
+
e.hidePublishToggle ? U("", !0) : (v(), F("div", qa, [
|
|
2379
|
+
j("span", za, T(w(a).t("documentation.documentation_display.status_label")), 1),
|
|
2380
2380
|
h.value ? (v(), C(k, {
|
|
2381
2381
|
key: 0,
|
|
2382
2382
|
appearance: "success"
|
|
2383
2383
|
}, {
|
|
2384
2384
|
default: A(() => [
|
|
2385
|
-
M(
|
|
2385
|
+
M(T(w(a).t("documentation.common.published")), 1)
|
|
2386
2386
|
]),
|
|
2387
2387
|
_: 1
|
|
2388
2388
|
})) : (v(), C(k, {
|
|
@@ -2390,22 +2390,22 @@ const Se = /* @__PURE__ */ q({
|
|
|
2390
2390
|
appearance: "neutral"
|
|
2391
2391
|
}, {
|
|
2392
2392
|
default: A(() => [
|
|
2393
|
-
M(
|
|
2393
|
+
M(T(w(a).t("documentation.common.unpublished")), 1)
|
|
2394
2394
|
]),
|
|
2395
2395
|
_: 1
|
|
2396
2396
|
}))
|
|
2397
2397
|
])),
|
|
2398
2398
|
o.value ? (v(), F("div", Ka, [
|
|
2399
|
-
j("span",
|
|
2400
|
-
|
|
2399
|
+
j("span", Ua, T(w(a).t("documentation.documentation_display.added_label")), 1),
|
|
2400
|
+
I(k, { appearance: "neutral" }, {
|
|
2401
2401
|
default: A(() => [
|
|
2402
|
-
M(
|
|
2402
|
+
M(T(o.value), 1)
|
|
2403
2403
|
]),
|
|
2404
2404
|
_: 1
|
|
2405
2405
|
})
|
|
2406
|
-
])) :
|
|
2407
|
-
j("div",
|
|
2408
|
-
|
|
2406
|
+
])) : U("", !0),
|
|
2407
|
+
j("div", Va, [
|
|
2408
|
+
I(w(Se), {
|
|
2409
2409
|
"auth-function": () => e.canEdit()
|
|
2410
2410
|
}, {
|
|
2411
2411
|
default: A(() => [
|
|
@@ -2418,7 +2418,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
2418
2418
|
label: f.value,
|
|
2419
2419
|
"label-before": "",
|
|
2420
2420
|
onClick: L
|
|
2421
|
-
}, null, 8, ["modelValue", "label"])) :
|
|
2421
|
+
}, null, 8, ["modelValue", "label"])) : U("", !0)
|
|
2422
2422
|
]),
|
|
2423
2423
|
_: 1
|
|
2424
2424
|
}, 8, ["auth-function"]),
|
|
@@ -2431,15 +2431,15 @@ const Se = /* @__PURE__ */ q({
|
|
|
2431
2431
|
onClick: x
|
|
2432
2432
|
}, {
|
|
2433
2433
|
default: A(() => [
|
|
2434
|
-
M(
|
|
2434
|
+
M(T(w(a).t("documentation.documentation_display.download_button")), 1)
|
|
2435
2435
|
]),
|
|
2436
2436
|
_: 1
|
|
2437
|
-
})) :
|
|
2438
|
-
|
|
2437
|
+
})) : U("", !0),
|
|
2438
|
+
I(w(Se), {
|
|
2439
2439
|
"auth-function": () => e.canEdit()
|
|
2440
2440
|
}, {
|
|
2441
2441
|
default: A(() => [
|
|
2442
|
-
|
|
2442
|
+
I(i, {
|
|
2443
2443
|
appearance: "secondary",
|
|
2444
2444
|
class: "document-edit-button",
|
|
2445
2445
|
"data-testid": "document-edit-button",
|
|
@@ -2447,18 +2447,18 @@ const Se = /* @__PURE__ */ q({
|
|
|
2447
2447
|
onClick: y[1] || (y[1] = (c) => r("edit"))
|
|
2448
2448
|
}, {
|
|
2449
2449
|
default: A(() => [
|
|
2450
|
-
M(
|
|
2450
|
+
M(T(w(a).t("documentation.documentation_display.edit_button")), 1)
|
|
2451
2451
|
]),
|
|
2452
2452
|
_: 1
|
|
2453
2453
|
}),
|
|
2454
|
-
|
|
2454
|
+
I(i, {
|
|
2455
2455
|
appearance: "primary",
|
|
2456
2456
|
"data-testid": "add-new-page-button",
|
|
2457
2457
|
size: "small",
|
|
2458
2458
|
onClick: y[2] || (y[2] = (c) => r("add"))
|
|
2459
2459
|
}, {
|
|
2460
2460
|
default: A(() => [
|
|
2461
|
-
M(
|
|
2461
|
+
M(T(w(a).t("documentation.documentation_display.add_new")), 1)
|
|
2462
2462
|
]),
|
|
2463
2463
|
_: 1
|
|
2464
2464
|
})
|
|
@@ -2482,7 +2482,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
2482
2482
|
E.value ? (v(), C(w(hn), {
|
|
2483
2483
|
key: 0,
|
|
2484
2484
|
document: E.value
|
|
2485
|
-
}, null, 8, ["document"])) :
|
|
2485
|
+
}, null, 8, ["document"])) : U("", !0)
|
|
2486
2486
|
], 2)
|
|
2487
2487
|
]))
|
|
2488
2488
|
]);
|
|
@@ -2498,10 +2498,10 @@ const Se = /* @__PURE__ */ q({
|
|
|
2498
2498
|
for (const [r, a] of n)
|
|
2499
2499
|
t[r] = a;
|
|
2500
2500
|
return t;
|
|
2501
|
-
},
|
|
2501
|
+
}, Ga = (e) => (fe("data-v-98fcb3eb"), e = e(), he(), e), Ja = ["aria-hidden"], Wa = {
|
|
2502
2502
|
key: 0,
|
|
2503
2503
|
"data-testid": "kui-icon-svg-title"
|
|
2504
|
-
}, Xa = /* @__PURE__ */
|
|
2504
|
+
}, Xa = /* @__PURE__ */ Ga(() => /* @__PURE__ */ j("path", {
|
|
2505
2505
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
2506
2506
|
fill: "currentColor"
|
|
2507
2507
|
}, null, -1)), Qa = /* @__PURE__ */ q({
|
|
@@ -2590,21 +2590,21 @@ const Se = /* @__PURE__ */ q({
|
|
|
2590
2590
|
width: "100%",
|
|
2591
2591
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2592
2592
|
}, [
|
|
2593
|
-
e.title ? (v(), F("title",
|
|
2593
|
+
e.title ? (v(), F("title", Wa, T(e.title), 1)) : U("", !0),
|
|
2594
2594
|
Xa
|
|
2595
|
-
], 8,
|
|
2595
|
+
], 8, Ja))
|
|
2596
2596
|
]),
|
|
2597
2597
|
_: 1
|
|
2598
2598
|
}, 8, ["aria-hidden", "style"]));
|
|
2599
2599
|
}
|
|
2600
|
-
}), er = /* @__PURE__ */ Ye(Qa, [["__scopeId", "data-v-
|
|
2600
|
+
}), er = /* @__PURE__ */ Ye(Qa, [["__scopeId", "data-v-98fcb3eb"]]), Ge = (e) => (fe("data-v-6ccc4c21"), e = e(), he(), e), tr = ["aria-hidden"], nr = {
|
|
2601
2601
|
key: 0,
|
|
2602
2602
|
"data-testid": "kui-icon-svg-title"
|
|
2603
|
-
}, ar = /* @__PURE__ */
|
|
2603
|
+
}, ar = /* @__PURE__ */ Ge(() => /* @__PURE__ */ j("path", {
|
|
2604
2604
|
d: "M12 22C10.6333 22 9.34167 21.7375 8.125 21.2125C6.90833 20.6875 5.84583 19.9708 4.9375 19.0625C4.02917 18.1542 3.3125 17.0917 2.7875 15.875C2.2625 14.6583 2 13.3667 2 12C2 10.6167 2.2625 9.32083 2.7875 8.1125C3.3125 6.90417 4.02917 5.84583 4.9375 4.9375C5.84583 4.02917 6.90833 3.3125 8.125 2.7875C9.34167 2.2625 10.6333 2 12 2C12.2833 2 12.5208 2.09583 12.7125 2.2875C12.9042 2.47917 13 2.71667 13 3C13 3.28333 12.9042 3.52083 12.7125 3.7125C12.5208 3.90417 12.2833 4 12 4C9.78333 4 7.89583 4.77917 6.3375 6.3375C4.77917 7.89583 4 9.78333 4 12C4 14.2167 4.77917 16.1042 6.3375 17.6625C7.89583 19.2208 9.78333 20 12 20C14.2167 20 16.1042 19.2208 17.6625 17.6625C19.2208 16.1042 20 14.2167 20 12C20 11.7167 20.0958 11.4792 20.2875 11.2875C20.4792 11.0958 20.7167 11 21 11C21.2833 11 21.5208 11.0958 21.7125 11.2875C21.9042 11.4792 22 11.7167 22 12C22 13.3667 21.7375 14.6583 21.2125 15.875C20.6875 17.0917 19.9708 18.1542 19.0625 19.0625C18.1542 19.9708 17.0958 20.6875 15.8875 21.2125C14.6792 21.7375 13.3833 22 12 22Z",
|
|
2605
2605
|
fill: "currentColor",
|
|
2606
2606
|
"transform-origin": "center"
|
|
2607
|
-
}, null, -1)), rr = /* @__PURE__ */
|
|
2607
|
+
}, null, -1)), rr = /* @__PURE__ */ Ge(() => /* @__PURE__ */ j("animateTransform", {
|
|
2608
2608
|
attributeName: "transform",
|
|
2609
2609
|
attributeType: "XML",
|
|
2610
2610
|
dur: "1.5s",
|
|
@@ -2698,7 +2698,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
2698
2698
|
width: "100%",
|
|
2699
2699
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2700
2700
|
}, [
|
|
2701
|
-
e.title ? (v(), F("title", nr,
|
|
2701
|
+
e.title ? (v(), F("title", nr, T(e.title), 1)) : U("", !0),
|
|
2702
2702
|
ar,
|
|
2703
2703
|
rr
|
|
2704
2704
|
], 8, tr))
|
|
@@ -2706,7 +2706,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
2706
2706
|
_: 1
|
|
2707
2707
|
}, 8, ["aria-hidden", "style"]));
|
|
2708
2708
|
}
|
|
2709
|
-
}), Be = /* @__PURE__ */ Ye(or, [["__scopeId", "data-v-
|
|
2709
|
+
}), Be = /* @__PURE__ */ Ye(or, [["__scopeId", "data-v-6ccc4c21"]]), ir = /* @__PURE__ */ q({
|
|
2710
2710
|
__name: "DocumentationPageEmptyState",
|
|
2711
2711
|
props: {
|
|
2712
2712
|
/**
|
|
@@ -2731,26 +2731,26 @@ const Se = /* @__PURE__ */ q({
|
|
|
2731
2731
|
"icon-size": "96"
|
|
2732
2732
|
}, {
|
|
2733
2733
|
title: A(() => [
|
|
2734
|
-
M(
|
|
2734
|
+
M(T(w(r).t("documentation.show.empty_state.title")), 1)
|
|
2735
2735
|
]),
|
|
2736
2736
|
message: A(() => [
|
|
2737
|
-
M(
|
|
2737
|
+
M(T(w(r).t("documentation.show.empty_state.message")), 1)
|
|
2738
2738
|
]),
|
|
2739
2739
|
cta: A(() => [
|
|
2740
|
-
|
|
2740
|
+
I(w(Se), {
|
|
2741
2741
|
"auth-function": () => e.canEdit()
|
|
2742
2742
|
}, {
|
|
2743
2743
|
default: A(() => [
|
|
2744
|
-
|
|
2744
|
+
I(s, {
|
|
2745
2745
|
appearance: "primary",
|
|
2746
2746
|
"data-testid": "add-new-page-button",
|
|
2747
2747
|
onClick: d[0] || (d[0] = (h) => t("create-documentation"))
|
|
2748
2748
|
}, {
|
|
2749
2749
|
icon: A(() => [
|
|
2750
|
-
|
|
2750
|
+
I(w(er), { size: "22" })
|
|
2751
2751
|
]),
|
|
2752
2752
|
default: A(() => [
|
|
2753
|
-
M(" " +
|
|
2753
|
+
M(" " + T(w(r).t("documentation.show.empty_state.ctaText")), 1)
|
|
2754
2754
|
]),
|
|
2755
2755
|
_: 1
|
|
2756
2756
|
})
|
|
@@ -2841,17 +2841,17 @@ const Se = /* @__PURE__ */ q({
|
|
|
2841
2841
|
}, p = () => {
|
|
2842
2842
|
var m, b, g, S, N;
|
|
2843
2843
|
if (k.value = null, t.editing && ((m = t.record) != null && m.document)) {
|
|
2844
|
-
const D = Pe(t.record),
|
|
2845
|
-
f.fileName = ((b = D.document.file) == null ? void 0 : b.filename) || ((S = (g = D.document.revision) == null ? void 0 : g.file) == null ? void 0 : S.filename), f.pageName = D.document.title || ((N = D.document.revision) == null ? void 0 : N.title), f.urlSlug = D.document.slug, f.parent = D.document.parent_document_id, f.status =
|
|
2844
|
+
const D = Pe(t.record), J = D.status || t.record.document.status || o.value;
|
|
2845
|
+
f.fileName = ((b = D.document.file) == null ? void 0 : b.filename) || ((S = (g = D.document.revision) == null ? void 0 : g.file) == null ? void 0 : S.filename), f.pageName = D.document.title || ((N = D.document.revision) == null ? void 0 : N.title), f.urlSlug = D.document.slug, f.parent = D.document.parent_document_id, f.status = J, o.value = J === "published";
|
|
2846
2846
|
} else
|
|
2847
2847
|
f.fileName = "", f.pageName = "", f.urlSlug = "", f.parent = "", f.status = "";
|
|
2848
2848
|
};
|
|
2849
2849
|
return et(() => {
|
|
2850
2850
|
p();
|
|
2851
2851
|
}), (m, b) => {
|
|
2852
|
-
const g = B("KExternalLink"), S = B("KAlert"), N = B("KFileUpload"), D = B("KInput"),
|
|
2852
|
+
const g = B("KExternalLink"), S = B("KAlert"), N = B("KFileUpload"), D = B("KInput"), J = B("KLabel"), oe = B("KInputSwitch"), ve = B("KSelect"), ne = B("KButton"), ie = B("KPrompt");
|
|
2853
2853
|
return v(), C(tt, { to: "#kong-ui-app-layout-teleport-default-slot" }, [
|
|
2854
|
-
|
|
2854
|
+
I(ie, {
|
|
2855
2855
|
class: "edit-document-modal",
|
|
2856
2856
|
"data-testid": "edit-document-modal",
|
|
2857
2857
|
"is-visible": "",
|
|
@@ -2860,16 +2860,16 @@ const Se = /* @__PURE__ */ q({
|
|
|
2860
2860
|
}, {
|
|
2861
2861
|
"header-content": A(() => [
|
|
2862
2862
|
j("div", ur, [
|
|
2863
|
-
M(
|
|
2863
|
+
M(T(O.value) + " ", 1),
|
|
2864
2864
|
j("div", cr, [
|
|
2865
|
-
M(
|
|
2865
|
+
M(T(w(a).t("documentation.form_modal.subtitle")) + " ", 1),
|
|
2866
2866
|
dr,
|
|
2867
|
-
|
|
2867
|
+
I(g, {
|
|
2868
2868
|
class: "doc-link",
|
|
2869
2869
|
href: w(lr).serviceDocumentationDocs
|
|
2870
2870
|
}, {
|
|
2871
2871
|
default: A(() => [
|
|
2872
|
-
M(
|
|
2872
|
+
M(T(w(a).t("documentation.form_modal.documentation_link_text")), 1)
|
|
2873
2873
|
]),
|
|
2874
2874
|
_: 1
|
|
2875
2875
|
}, 8, ["href"])
|
|
@@ -2882,8 +2882,8 @@ const Se = /* @__PURE__ */ q({
|
|
|
2882
2882
|
"alert-message": e.errorMessage,
|
|
2883
2883
|
appearance: "danger",
|
|
2884
2884
|
class: "bottom-spacing"
|
|
2885
|
-
}, null, 8, ["alert-message"])) :
|
|
2886
|
-
|
|
2885
|
+
}, null, 8, ["alert-message"])) : U("", !0),
|
|
2886
|
+
I(N, {
|
|
2887
2887
|
accept: [".md", ".markdown"],
|
|
2888
2888
|
"button-text": _.value,
|
|
2889
2889
|
class: "document-file-upload",
|
|
@@ -2896,7 +2896,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
2896
2896
|
}, null, 8, ["accept", "button-text", "label", "label-attributes", "placeholder"]),
|
|
2897
2897
|
j("div", pr, [
|
|
2898
2898
|
j("div", mr, [
|
|
2899
|
-
|
|
2899
|
+
I(D, {
|
|
2900
2900
|
modelValue: f.pageName,
|
|
2901
2901
|
"onUpdate:modelValue": b[0] || (b[0] = ($) => f.pageName = $),
|
|
2902
2902
|
modelModifiers: { trim: !0 },
|
|
@@ -2907,7 +2907,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
2907
2907
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
2908
2908
|
]),
|
|
2909
2909
|
j("div", gr, [
|
|
2910
|
-
|
|
2910
|
+
I(D, {
|
|
2911
2911
|
modelValue: f.urlSlug,
|
|
2912
2912
|
"onUpdate:modelValue": b[1] || (b[1] = ($) => f.urlSlug = $),
|
|
2913
2913
|
modelModifiers: { trim: !0 },
|
|
@@ -2920,23 +2920,23 @@ const Se = /* @__PURE__ */ q({
|
|
|
2920
2920
|
}, null, 8, ["modelValue", "error-message", "has-error", "label", "placeholder"])
|
|
2921
2921
|
])
|
|
2922
2922
|
]),
|
|
2923
|
-
e.hidePublishToggle ?
|
|
2923
|
+
e.hidePublishToggle ? U("", !0) : (v(), F("div", fr, [
|
|
2924
2924
|
j("div", null, [
|
|
2925
|
-
|
|
2925
|
+
I(J, null, {
|
|
2926
2926
|
default: A(() => [
|
|
2927
|
-
M(
|
|
2927
|
+
M(T(w(a).t("documentation.form_modal.status_label")), 1)
|
|
2928
2928
|
]),
|
|
2929
2929
|
_: 1
|
|
2930
2930
|
})
|
|
2931
2931
|
]),
|
|
2932
|
-
|
|
2932
|
+
I(oe, {
|
|
2933
2933
|
modelValue: o.value,
|
|
2934
2934
|
"onUpdate:modelValue": b[2] || (b[2] = ($) => o.value = $),
|
|
2935
2935
|
"data-testid": "documentation-status",
|
|
2936
2936
|
label: y.value
|
|
2937
2937
|
}, null, 8, ["modelValue", "label"])
|
|
2938
2938
|
])),
|
|
2939
|
-
|
|
2939
|
+
I(ve, {
|
|
2940
2940
|
modelValue: f.parent,
|
|
2941
2941
|
"onUpdate:modelValue": b[3] || (b[3] = ($) => f.parent = $),
|
|
2942
2942
|
appearance: "select",
|
|
@@ -2957,47 +2957,47 @@ const Se = /* @__PURE__ */ q({
|
|
|
2957
2957
|
"data-testid": "edit-documentation-delete-button",
|
|
2958
2958
|
disabled: e.actionPending,
|
|
2959
2959
|
onClick: b[4] || (b[4] = ($) => r("delete"))
|
|
2960
|
-
},
|
|
2960
|
+
}, Ie({
|
|
2961
2961
|
default: A(() => [
|
|
2962
|
-
M(" " +
|
|
2962
|
+
M(" " + T(w(a).t("documentation.form_modal.delete_button_text")), 1)
|
|
2963
2963
|
]),
|
|
2964
2964
|
_: 2
|
|
2965
2965
|
}, [
|
|
2966
2966
|
e.actionPending ? {
|
|
2967
2967
|
name: "icon",
|
|
2968
2968
|
fn: A(() => [
|
|
2969
|
-
|
|
2969
|
+
I(w(Be), { size: "16" })
|
|
2970
2970
|
]),
|
|
2971
2971
|
key: "0"
|
|
2972
2972
|
} : void 0
|
|
2973
|
-
]), 1032, ["disabled"])) :
|
|
2973
|
+
]), 1032, ["disabled"])) : U("", !0),
|
|
2974
2974
|
j("div", vr, [
|
|
2975
|
-
|
|
2975
|
+
I(ne, {
|
|
2976
2976
|
appearance: "secondary",
|
|
2977
2977
|
class: "edit-documentation-cancel-button",
|
|
2978
2978
|
"data-testid": "edit-documentation-cancel-button",
|
|
2979
2979
|
onClick: u
|
|
2980
2980
|
}, {
|
|
2981
2981
|
default: A(() => [
|
|
2982
|
-
M(
|
|
2982
|
+
M(T(w(a).t("documentation.form_modal.cancel_button_text")), 1)
|
|
2983
2983
|
]),
|
|
2984
2984
|
_: 1
|
|
2985
2985
|
}),
|
|
2986
|
-
|
|
2986
|
+
I(ne, {
|
|
2987
2987
|
appearance: "primary",
|
|
2988
2988
|
"data-testid": "edit-documentation-save-button",
|
|
2989
2989
|
disabled: e.actionPending || R.value,
|
|
2990
2990
|
onClick: c
|
|
2991
|
-
},
|
|
2991
|
+
}, Ie({
|
|
2992
2992
|
default: A(() => [
|
|
2993
|
-
M(" " +
|
|
2993
|
+
M(" " + T(w(a).t("documentation.form_modal.save_button_text")), 1)
|
|
2994
2994
|
]),
|
|
2995
2995
|
_: 2
|
|
2996
2996
|
}, [
|
|
2997
2997
|
e.actionPending ? {
|
|
2998
2998
|
name: "icon",
|
|
2999
2999
|
fn: A(() => [
|
|
3000
|
-
|
|
3000
|
+
I(w(Be), { size: "16" })
|
|
3001
3001
|
]),
|
|
3002
3002
|
key: "0"
|
|
3003
3003
|
} : void 0
|
|
@@ -3115,7 +3115,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
3115
3115
|
onDownload: x[3] || (x[3] = (O) => t("download")),
|
|
3116
3116
|
onEdit: h,
|
|
3117
3117
|
onTogglePublished: x[4] || (x[4] = (O) => t("toggle-published", O))
|
|
3118
|
-
}, null, 8, ["can-edit", "card", "hide-publish-toggle", "selected-document"])) :
|
|
3118
|
+
}, null, 8, ["can-edit", "card", "hide-publish-toggle", "selected-document"])) : U("", !0)
|
|
3119
3119
|
])
|
|
3120
3120
|
]),
|
|
3121
3121
|
_: 1
|
|
@@ -3131,7 +3131,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
3131
3131
|
onCancel: f,
|
|
3132
3132
|
onDelete: x[5] || (x[5] = (O) => t("delete")),
|
|
3133
3133
|
onSave: x[6] || (x[6] = (O, _) => t("save", O, _))
|
|
3134
|
-
}, null, 8, ["action-pending", "documents", "editing", "error-message", "hide-publish-toggle", "record"])) :
|
|
3134
|
+
}, null, 8, ["action-pending", "documents", "editing", "error-message", "hide-publish-toggle", "record"])) : U("", !0)
|
|
3135
3135
|
]);
|
|
3136
3136
|
};
|
|
3137
3137
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
`+e.mark.snippet),r+" "+n):r}function j(e,a){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=a,this.message=ke(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}j.prototype=Object.create(Error.prototype),j.prototype.constructor=j,j.prototype.toString=function(e){return this.name+": "+ke(this,e)};var D=j,nn=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],an=["scalar","sequence","mapping"];function rn(e){var a={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){a[String(r)]=n})}),a}function on(e,a){if(a=a||{},Object.keys(a).forEach(function(n){if(nn.indexOf(n)===-1)throw new D('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=a,this.tag=e,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(n){return n},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=rn(a.styleAliases||null),an.indexOf(this.kind)===-1)throw new D('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var P=on;function Ee(e,a){var n=[];return e[a].forEach(function(r){var o=n.length;n.forEach(function(d,c){d.tag===r.tag&&d.kind===r.kind&&d.multi===r.multi&&(o=c)}),n[o]=r}),n}function ln(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},a,n;function r(o){o.multi?(e.multi[o.kind].push(o),e.multi.fallback.push(o)):e[o.kind][o.tag]=e.fallback[o.tag]=o}for(a=0,n=arguments.length;a<n;a+=1)arguments[a].forEach(r);return e}function re(e){return this.extend(e)}re.prototype.extend=function(e){var a=[],n=[];if(e instanceof P)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(a=a.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new D("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");a.forEach(function(o){if(!(o instanceof P))throw new D("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new D("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new D("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(o){if(!(o instanceof P))throw new D("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(re.prototype);return r.implicit=(this.implicit||[]).concat(a),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=Ee(r,"implicit"),r.compiledExplicit=Ee(r,"explicit"),r.compiledTypeMap=ln(r.compiledImplicit,r.compiledExplicit),r};var sn=re,cn=new P("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),dn=new P("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),un=new P("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),pn=new sn({explicit:[cn,dn,un]});function mn(e){if(e===null)return!0;var a=e.length;return a===1&&e==="~"||a===4&&(e==="null"||e==="Null"||e==="NULL")}function gn(){return null}function fn(e){return e===null}var bn=new P("tag:yaml.org,2002:null",{kind:"scalar",resolve:mn,construct:gn,predicate:fn,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function hn(e){if(e===null)return!1;var a=e.length;return a===4&&(e==="true"||e==="True"||e==="TRUE")||a===5&&(e==="false"||e==="False"||e==="FALSE")}function yn(e){return e==="true"||e==="True"||e==="TRUE"}function kn(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var En=new P("tag:yaml.org,2002:bool",{kind:"scalar",resolve:hn,construct:yn,predicate:kn,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function _n(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Sn(e){return 48<=e&&e<=55}function wn(e){return 48<=e&&e<=57}function An(e){if(e===null)return!1;var a=e.length,n=0,r=!1,o;if(!a)return!1;if(o=e[n],(o==="-"||o==="+")&&(o=e[++n]),o==="0"){if(n+1===a)return!0;if(o=e[++n],o==="b"){for(n++;n<a;n++)if(o=e[n],o!=="_"){if(o!=="0"&&o!=="1")return!1;r=!0}return r&&o!=="_"}if(o==="x"){for(n++;n<a;n++)if(o=e[n],o!=="_"){if(!_n(e.charCodeAt(n)))return!1;r=!0}return r&&o!=="_"}if(o==="o"){for(n++;n<a;n++)if(o=e[n],o!=="_"){if(!Sn(e.charCodeAt(n)))return!1;r=!0}return r&&o!=="_"}}if(o==="_")return!1;for(;n<a;n++)if(o=e[n],o!=="_"){if(!wn(e.charCodeAt(n)))return!1;r=!0}return!(!r||o==="_")}function Tn(e){var a=e,n=1,r;if(a.indexOf("_")!==-1&&(a=a.replace(/_/g,"")),r=a[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),a=a.slice(1),r=a[0]),a==="0")return 0;if(r==="0"){if(a[1]==="b")return n*parseInt(a.slice(2),2);if(a[1]==="x")return n*parseInt(a.slice(2),16);if(a[1]==="o")return n*parseInt(a.slice(2),8)}return n*parseInt(a,10)}function Nn(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!ae.isNegativeZero(e)}var xn=new P("tag:yaml.org,2002:int",{kind:"scalar",resolve:An,construct:Tn,predicate:Nn,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),In=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function On(e){return!(e===null||!In.test(e)||e[e.length-1]==="_")}function Cn(e){var a,n;return a=e.replace(/_/g,"").toLowerCase(),n=a[0]==="-"?-1:1,"+-".indexOf(a[0])>=0&&(a=a.slice(1)),a===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:a===".nan"?NaN:n*parseFloat(a,10)}var Fn=/^[-+]?[0-9]+e/;function Pn(e,a){var n;if(isNaN(e))switch(a){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(a){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(a){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ae.isNegativeZero(e))return"-0.0";return n=e.toString(10),Fn.test(n)?n.replace("e",".e"):n}function Rn(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||ae.isNegativeZero(e))}var $n=new P("tag:yaml.org,2002:float",{kind:"scalar",resolve:On,construct:Cn,predicate:Rn,represent:Pn,defaultStyle:"lowercase"}),vn=pn.extend({implicit:[bn,En,xn,$n]}),Ln=vn,_e=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Se=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Bn(e){return e===null?!1:_e.exec(e)!==null||Se.exec(e)!==null}function Dn(e){var a,n,r,o,d,c,i,m=0,g=null,w,S,I;if(a=_e.exec(e),a===null&&(a=Se.exec(e)),a===null)throw new Error("Date resolve error");if(n=+a[1],r=+a[2]-1,o=+a[3],!a[4])return new Date(Date.UTC(n,r,o));if(d=+a[4],c=+a[5],i=+a[6],a[7]){for(m=a[7].slice(0,3);m.length<3;)m+="0";m=+m}return a[9]&&(w=+a[10],S=+(a[11]||0),g=(w*60+S)*6e4,a[9]==="-"&&(g=-g)),I=new Date(Date.UTC(n,r,o,d,c,i,m)),g&&I.setTime(I.getTime()-g),I}function Mn(e){return e.toISOString()}var zn=new P("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Bn,construct:Dn,instanceOf:Date,represent:Mn});function Un(e){return e==="<<"||e===null}var jn=new P("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Un}),oe=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
13
13
|
\r`;function Vn(e){if(e===null)return!1;var a,n,r=0,o=e.length,d=oe;for(n=0;n<o;n++)if(a=d.indexOf(e.charAt(n)),!(a>64)){if(a<0)return!1;r+=6}return r%8===0}function Hn(e){var a,n,r=e.replace(/[\r\n=]/g,""),o=r.length,d=oe,c=0,i=[];for(a=0;a<o;a++)a%4===0&&a&&(i.push(c>>16&255),i.push(c>>8&255),i.push(c&255)),c=c<<6|d.indexOf(r.charAt(a));return n=o%4*6,n===0?(i.push(c>>16&255),i.push(c>>8&255),i.push(c&255)):n===18?(i.push(c>>10&255),i.push(c>>2&255)):n===12&&i.push(c>>4&255),new Uint8Array(i)}function Gn(e){var a="",n=0,r,o,d=e.length,c=oe;for(r=0;r<d;r++)r%3===0&&r&&(a+=c[n>>18&63],a+=c[n>>12&63],a+=c[n>>6&63],a+=c[n&63]),n=(n<<8)+e[r];return o=d%3,o===0?(a+=c[n>>18&63],a+=c[n>>12&63],a+=c[n>>6&63],a+=c[n&63]):o===2?(a+=c[n>>10&63],a+=c[n>>4&63],a+=c[n<<2&63],a+=c[64]):o===1&&(a+=c[n>>2&63],a+=c[n<<4&63],a+=c[64],a+=c[64]),a}function Kn(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var qn=new P("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Vn,construct:Hn,predicate:Kn,represent:Gn}),Yn=Object.prototype.hasOwnProperty,Xn=Object.prototype.toString;function Zn(e){if(e===null)return!0;var a=[],n,r,o,d,c,i=e;for(n=0,r=i.length;n<r;n+=1){if(o=i[n],c=!1,Xn.call(o)!=="[object Object]")return!1;for(d in o)if(Yn.call(o,d))if(!c)c=!0;else return!1;if(!c)return!1;if(a.indexOf(d)===-1)a.push(d);else return!1}return!0}function Wn(e){return e!==null?e:[]}var Jn=new P("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Zn,construct:Wn}),Qn=Object.prototype.toString;function ea(e){if(e===null)return!0;var a,n,r,o,d,c=e;for(d=new Array(c.length),a=0,n=c.length;a<n;a+=1){if(r=c[a],Qn.call(r)!=="[object Object]"||(o=Object.keys(r),o.length!==1))return!1;d[a]=[o[0],r[o[0]]]}return!0}function ta(e){if(e===null)return[];var a,n,r,o,d,c=e;for(d=new Array(c.length),a=0,n=c.length;a<n;a+=1)r=c[a],o=Object.keys(r),d[a]=[o[0],r[o[0]]];return d}var na=new P("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ea,construct:ta}),aa=Object.prototype.hasOwnProperty;function ra(e){if(e===null)return!0;var a,n=e;for(a in n)if(aa.call(n,a)&&n[a]!==null)return!1;return!0}function oa(e){return e!==null?e:{}}var ia=new P("tag:yaml.org,2002:set",{kind:"mapping",resolve:ra,construct:oa});Ln.extend({implicit:[zn,jn],explicit:[qn,Jn,na,ia]});function we(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
14
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}for(var la=new Array(256),sa=new Array(256),z=0;z<256;z++)la[z]=we(z)?1:0,sa[z]=we(z);const ie=t.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(e){const a=e,n=t.ref(void 0),r=t.computed(()=>n.value===!0||n.value!==void 0&&a.forceShow===!0);return t.watch(()=>a.authFunction,async()=>{n.value=await a.authFunction()},{immediate:!0}),(o,d)=>r.value?t.renderSlot(o.$slots,"default",{key:0,isAllowed:n.value}):t.createCommentVNode("",!0)}}),ca=e=>(t.pushScopeId("data-v-98786fd9"),e=e(),t.popScopeId(),e),da={class:"documentation-display"},ua={class:"document-meta"},pa={class:"document-title meta-section"},ma=ca(()=>t.createElementVNode("span",{class:"document-title-extension"},"md",-1)),ga={key:0,class:"document-status meta-section"},fa={class:"meta-label"},ba={key:1,class:"document-create meta-section"},ha={class:"meta-label"},ya={class:"document-display-actions"},ka={key:0,class:"markdown-content-loading","data-testid":"markdown-content-loading"},Ea={key:1},_a=t.defineComponent({__name:"DocumentationDisplay",props:{canEdit:{type:Function,required:!1,default:async()=>!1},card:{type:Boolean,default:!1},hidePublishToggle:{type:Boolean,default:!1},selectedDocument:{type:Object,default:()=>null}},emits:["add","edit","download","toggle-published"],setup(e,{emit:a}){const n=e,r=a,{i18n:o}=te.useI18n(),d=t.ref(!0),c=t.computed(()=>{var y,k,E,l,s;return((k=(y=n.selectedDocument)==null?void 0:y.document)==null?void 0:k.title)||((s=(l=(E=n.selectedDocument)==null?void 0:E.document)==null?void 0:l.revision)==null?void 0:s.title)||""}),i=t.computed(()=>""),m=t.ref(!1),g=t.ref(o.t("documentation.common.unpublished")),w=t.ref(null);t.watch(()=>n.selectedDocument,y=>{var k;Ht(y)||(n.hidePublishToggle||O((k=y.document)==null?void 0:k.status),y.ast&&T())},{deep:!0});const S=()=>{try{if(!n.selectedDocument.markdown)return;const y=new Blob([n.selectedDocument.markdown],{type:"text/markdown;charset=utf-8"}),k=URL.createObjectURL(y),E=document.createElement("a");E.href=k,E.download=`${(c.value?c.value:"document").replace(/(\.md)+$/g,"")}.md`,E.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),r("download"),setTimeout(()=>{window.URL.revokeObjectURL(k),E.remove()},100)}catch(y){console.error(`Could not download document '${c.value}'`,y)}},I=()=>{const y=!m.value;r("toggle-published",y),m.value=y,g.value=y?o.t("documentation.common.published"):o.t("documentation.common.unpublished")},O=y=>{y==="published"?(m.value=!0,g.value=o.t("documentation.common.published")):(m.value=!1,g.value=o.t("documentation.common.unpublished"))},T=()=>{w.value={children:n.selectedDocument.ast,type:"document",version:1},d.value=!1};return(y,k)=>{const E=t.resolveComponent("KBadge"),l=t.resolveComponent("KInputSwitch"),s=t.resolveComponent("KButton"),u=t.resolveComponent("KSkeleton");return t.openBlock(),t.createElementBlock("div",da,[t.createElementVNode("div",ua,[t.createElementVNode("div",pa,[t.renderSlot(y.$slots,"document-title",{},()=>[t.createElementVNode("span",null,t.toDisplayString(c.value),1),t.createTextVNode("."),ma],!0)]),e.hidePublishToggle?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",ga,[t.createElementVNode("span",fa,t.toDisplayString(t.unref(o).t("documentation.documentation_display.status_label")),1),m.value?(t.openBlock(),t.createBlock(E,{key:0,appearance:"success"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(o).t("documentation.common.published")),1)]),_:1})):(t.openBlock(),t.createBlock(E,{key:1,appearance:"neutral"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(o).t("documentation.common.unpublished")),1)]),_:1}))])),i.value?(t.openBlock(),t.createElementBlock("div",ba,[t.createElementVNode("span",ha,t.toDisplayString(t.unref(o).t("documentation.documentation_display.added_label")),1),t.createVNode(E,{appearance:"neutral"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.value),1)]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",ya,[t.createVNode(t.unref(ie),{"auth-function":()=>e.canEdit()},{default:t.withCtx(()=>[!e.hidePublishToggle&&!e.card?(t.openBlock(),t.createBlock(l,{key:0,modelValue:m.value,"onUpdate:modelValue":k[0]||(k[0]=p=>m.value=p),class:"document-publish-toggle","data-testid":"document-publish-toggle",label:g.value,"label-before":"",onClick:I},null,8,["modelValue","label"])):t.createCommentVNode("",!0)]),_:1},8,["auth-function"]),e.selectedDocument.markdown?(t.openBlock(),t.createBlock(s,{key:0,appearance:"secondary",class:"document-download-button","data-testid":"document-download-button",size:"small",onClick:S},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(o).t("documentation.documentation_display.download_button")),1)]),_:1})):t.createCommentVNode("",!0),t.createVNode(t.unref(ie),{"auth-function":()=>e.canEdit()},{default:t.withCtx(()=>[t.createVNode(s,{appearance:"secondary",class:"document-edit-button","data-testid":"document-edit-button",size:"small",onClick:k[1]||(k[1]=p=>r("edit"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(o).t("documentation.documentation_display.edit_button")),1)]),_:1}),t.createVNode(s,{appearance:"primary","data-testid":"add-new-page-button",size:"small",onClick:k[2]||(k[2]=p=>r("add"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(o).t("documentation.documentation_display.add_new")),1)]),_:1})]),_:1},8,["auth-function"])])]),d.value?(t.openBlock(),t.createElementBlock("div",ka,[e.card?(t.openBlock(),t.createBlock(u,{key:1,type:"card"})):(t.openBlock(),t.createBlock(u,{key:0,class:"markdown-content-loader"}))])):(t.openBlock(),t.createElementBlock("div",Ea,[t.createElementVNode("div",{class:t.normalizeClass(["document-content",{"content-card-view":e.card}])},[w.value?(t.openBlock(),t.createBlock(t.unref(Vt),{key:0,document:w.value},null,8,["document"])):t.createCommentVNode("",!0)],2)]))])}}}),le=(e,a)=>{const n=e.__vccOpts||e;for(const[r,o]of a)n[r]=o;return n},Ae=le(_a,[["__scopeId","data-v-98786fd9"]]),Y="24px",Te=(e,a)=>{const n=e.__vccOpts||e;for(const[r,o]of a)n[r]=o;return n},Sa=e=>(t.pushScopeId("data-v-e68c4d49"),e=e(),t.popScopeId(),e),wa=["aria-hidden"],Aa={key:0,"data-testid":"kui-icon-svg-title"},Ta=Sa(()=>t.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),Na=t.defineComponent({__name:"AddIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:Y,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const a=String(e).replace(/px/gi,""),n=Number(a);if(n&&!isNaN(n)&&Number.isInteger(n)&&n>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const a=e,n=t.computed(()=>{if(typeof a.size=="number"&&a.size>0)return`${a.size}px`;if(typeof a.size=="string"){const o=String(a.size).replace(/px/gi,""),d=Number(o);if(d&&!isNaN(d)&&Number.isInteger(d)&&d>0)return`${d}px`}return Y}),r=t.computed(()=>({boxSizing:"border-box",color:a.color,display:a.display,height:n.value,lineHeight:"0",width:n.value}));return(o,d)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon add-icon","data-testid":"kui-icon-wrapper-add-icon",style:t.normalizeStyle(r.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-add-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Aa,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Ta],8,wa))]),_:1},8,["aria-hidden","style"]))}}),xa=Te(Na,[["__scopeId","data-v-e68c4d49"]]),Ne=e=>(t.pushScopeId("data-v-fb6f389d"),e=e(),t.popScopeId(),e),Ia=["aria-hidden"],Oa={key:0,"data-testid":"kui-icon-svg-title"},Ca=Ne(()=>t.createElementVNode("path",{d:"M12 22C10.6333 22 9.34167 21.7375 8.125 21.2125C6.90833 20.6875 5.84583 19.9708 4.9375 19.0625C4.02917 18.1542 3.3125 17.0917 2.7875 15.875C2.2625 14.6583 2 13.3667 2 12C2 10.6167 2.2625 9.32083 2.7875 8.1125C3.3125 6.90417 4.02917 5.84583 4.9375 4.9375C5.84583 4.02917 6.90833 3.3125 8.125 2.7875C9.34167 2.2625 10.6333 2 12 2C12.2833 2 12.5208 2.09583 12.7125 2.2875C12.9042 2.47917 13 2.71667 13 3C13 3.28333 12.9042 3.52083 12.7125 3.7125C12.5208 3.90417 12.2833 4 12 4C9.78333 4 7.89583 4.77917 6.3375 6.3375C4.77917 7.89583 4 9.78333 4 12C4 14.2167 4.77917 16.1042 6.3375 17.6625C7.89583 19.2208 9.78333 20 12 20C14.2167 20 16.1042 19.2208 17.6625 17.6625C19.2208 16.1042 20 14.2167 20 12C20 11.7167 20.0958 11.4792 20.2875 11.2875C20.4792 11.0958 20.7167 11 21 11C21.2833 11 21.5208 11.0958 21.7125 11.2875C21.9042 11.4792 22 11.7167 22 12C22 13.3667 21.7375 14.6583 21.2125 15.875C20.6875 17.0917 19.9708 18.1542 19.0625 19.0625C18.1542 19.9708 17.0958 20.6875 15.8875 21.2125C14.6792 21.7375 13.3833 22 12 22Z",fill:"currentColor","transform-origin":"center"},null,-1)),Fa=Ne(()=>t.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",dur:"1.5s",from:"0",repeatCount:"indefinite",to:"360",type:"rotate"},null,-1)),Pa=t.defineComponent({__name:"ProgressIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:Y,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const a=String(e).replace(/px/gi,""),n=Number(a);if(n&&!isNaN(n)&&Number.isInteger(n)&&n>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const a=e,n=t.computed(()=>{if(typeof a.size=="number"&&a.size>0)return`${a.size}px`;if(typeof a.size=="string"){const o=String(a.size).replace(/px/gi,""),d=Number(o);if(d&&!isNaN(d)&&Number.isInteger(d)&&d>0)return`${d}px`}return Y}),r=t.computed(()=>({boxSizing:"border-box",color:a.color,display:a.display,height:n.value,lineHeight:"0",width:n.value}));return(o,d)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon progress-icon","data-testid":"kui-icon-wrapper-progress-icon",style:t.normalizeStyle(r.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-progress-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Oa,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Ca,Fa],8,Ia))]),_:1},8,["aria-hidden","style"]))}}),xe=Te(Pa,[["__scopeId","data-v-fb6f389d"]]),Ie=t.defineComponent({__name:"DocumentationPageEmptyState",props:{canEdit:{type:Function,required:!1,default:async()=>!1}},emits:["create-documentation"],setup(e,{emit:a}){const n=a,{i18n:r}=te.useI18n();return(o,d)=>{const c=t.resolveComponent("KButton"),i=t.resolveComponent("KEmptyState");return t.openBlock(),t.createBlock(i,{class:"documentation-page-empty-state","data-testid":"documentation-page-empty-state",icon:"stateGruceo","icon-size":"96"},{title:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("documentation.show.empty_state.title")),1)]),message:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("documentation.show.empty_state.message")),1)]),cta:t.withCtx(()=>[t.createVNode(t.unref(ie),{"auth-function":()=>e.canEdit()},{default:t.withCtx(()=>[t.createVNode(c,{appearance:"primary","data-testid":"add-new-page-button",onClick:d[0]||(d[0]=m=>n("create-documentation"))},{icon:t.withCtx(()=>[t.createVNode(t.unref(xa),{size:"22"})]),default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(t.unref(r).t("documentation.show.empty_state.ctaText")),1)]),_:1})]),_:1},8,["auth-function"])]),_:1})}}}),Ra={serviceDocumentationDocs:"https://docs.konghq.com/konnect/servicehub/service-documentation/#main"},$a=e=>(t.pushScopeId("data-v-ad1a177c"),e=e(),t.popScopeId(),e),va={class:"title"},La={class:"subtitle"},Ba=$a(()=>t.createElementVNode("br",null,null,-1)),Da={class:"document-inputs"},Ma={class:"page-name side-by-side"},za={class:"url-slug side-by-side"},Ua={key:1,class:"documentation-status"},ja={class:"action-buttons"},Va={class:"button-spacing"},Oe=le(t.defineComponent({__name:"ProductDocumentModal",props:{actionPending:{type:Boolean,default:!1},documents:{type:Array,required:!0},editing:{type:Boolean,default:!1},errorMessage:{type:String,default:""},hidePublishToggle:{type:Boolean,default:!1},record:{type:Object,default:null}},emits:["cancel","save","delete"],setup(e,{emit:a}){const n=e,r=a,{i18n:o}=te.useI18n(),d=t.computed(()=>{var b;return(b=n.record.file)==null?void 0:b.filename}),c=t.computed(()=>{var b;return E.value?(b=E.value.name)==null?void 0:b.split(".")[0]:""}),i=t.ref(!0),m=t.computed(()=>i.value?"published":"unpublished"),g=t.reactive({fileName:"",pageName:"",urlSlug:"",status:m.value,parent:""}),w=/^[\w-]+$/,S=t.computed(()=>{var b;return g.urlSlug!==""&&!((b=g.urlSlug)!=null&&b.match(w))}),I=t.computed(()=>{var h;let b=(h=n.documents)==null?void 0:h.filter(A=>{var x;return A.record.id!==((x=n.record)==null?void 0:x.id)&&!A.record.parent_document_id}).map(A=>({label:A.record.title,value:A.record.id,selected:!1}));b||(b=[]);const _=he(b.length);return b.push({label:o.t("documentation.form_modal.parent_document_select_option_none"),value:"none",selected:!_}),b}),O=t.computed(()=>!n.editing&&!E.value||!g.pageName||S.value),T=t.computed(()=>n.editing?o.t("documentation.form_modal.edit_title"):o.t("documentation.form_modal.create_title")),y=t.computed(()=>n.editing?o.t("documentation.form_modal.replace_file_button_text"):o.t("documentation.form_modal.filename_button_text")),k=t.computed(()=>m.value==="published"?o.t("documentation.common.published"):o.t("documentation.common.unpublished")),E=t.ref(null),l=b=>{E.value=b==null?void 0:b[0],g.pageName=c.value,g.urlSlug=c.value,g.fileName=c.value},s=()=>{E.value=null},u=()=>{r("cancel"),f()},p=()=>{r("save",Object.assign(g,{status:m.value}),E)},f=()=>{var b,_,h,A,x;if(E.value=null,n.editing&&((b=n.record)!=null&&b.document)){const C=he(n.record),M=C.status||n.record.document.status||i.value;g.fileName=((_=C.document.file)==null?void 0:_.filename)||((A=(h=C.document.revision)==null?void 0:h.file)==null?void 0:A.filename),g.pageName=C.document.title||((x=C.document.revision)==null?void 0:x.title),g.urlSlug=C.document.slug,g.parent=C.document.parent_document_id,g.status=M,i.value=M==="published"}else g.fileName="",g.pageName="",g.urlSlug="",g.parent="",g.status=""};return t.onMounted(()=>{f()}),(b,_)=>{const h=t.resolveComponent("KExternalLink"),A=t.resolveComponent("KAlert"),x=t.resolveComponent("KFileUpload"),C=t.resolveComponent("KInput"),M=t.resolveComponent("KLabel"),X=t.resolveComponent("KInputSwitch"),se=t.resolveComponent("KSelect"),V=t.resolveComponent("KButton"),Z=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(t.Teleport,{to:"#kong-ui-app-layout-teleport-default-slot"},[t.createVNode(Z,{class:"edit-document-modal","data-testid":"edit-document-modal","is-visible":"",onCanceled:u,onProceed:p},{"header-content":t.withCtx(()=>[t.createElementVNode("div",va,[t.createTextVNode(t.toDisplayString(T.value)+" ",1),t.createElementVNode("div",La,[t.createTextVNode(t.toDisplayString(t.unref(o).t("documentation.form_modal.subtitle"))+" ",1),Ba,t.createVNode(h,{class:"doc-link",href:t.unref(Ra).serviceDocumentationDocs},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(o).t("documentation.form_modal.documentation_link_text")),1)]),_:1},8,["href"])])])]),"body-content":t.withCtx(()=>[e.errorMessage?(t.openBlock(),t.createBlock(A,{key:0,"alert-message":e.errorMessage,appearance:"danger",class:"bottom-spacing"},null,8,["alert-message"])):t.createCommentVNode("",!0),t.createVNode(x,{accept:[".md",".markdown"],"button-text":y.value,class:"document-file-upload","data-testid":"document-file-upload",label:t.unref(o).t("documentation.form_modal.file_label"),"label-attributes":{help:t.unref(o).t("documentation.form_modal.file_tooltip")},placeholder:e.editing?d.value:void 0,onFileAdded:l,onFileRemoved:s},null,8,["accept","button-text","label","label-attributes","placeholder"]),t.createElementVNode("div",Da,[t.createElementVNode("div",Ma,[t.createVNode(C,{modelValue:g.pageName,"onUpdate:modelValue":_[0]||(_[0]=N=>g.pageName=N),modelModifiers:{trim:!0},"data-testid":"documentation-page-name",label:t.unref(o).t("documentation.form_modal.title_label"),placeholder:t.unref(o).t("documentation.form_modal.title_placeholder"),required:""},null,8,["modelValue","label","placeholder"])]),t.createElementVNode("div",za,[t.createVNode(C,{modelValue:g.urlSlug,"onUpdate:modelValue":_[1]||(_[1]=N=>g.urlSlug=N),modelModifiers:{trim:!0},"data-testid":"documentation-url-slug","error-message":t.unref(o).t("documentation.form_modal.slug_error"),"has-error":S.value,label:t.unref(o).t("documentation.form_modal.slug_label"),pattern:w,placeholder:t.unref(o).t("documentation.form_modal.slug_placeholder")},null,8,["modelValue","error-message","has-error","label","placeholder"])])]),e.hidePublishToggle?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Ua,[t.createElementVNode("div",null,[t.createVNode(M,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(o).t("documentation.form_modal.status_label")),1)]),_:1})]),t.createVNode(X,{modelValue:i.value,"onUpdate:modelValue":_[2]||(_[2]=N=>i.value=N),"data-testid":"documentation-status",label:k.value},null,8,["modelValue","label"])])),t.createVNode(se,{modelValue:g.parent,"onUpdate:modelValue":_[3]||(_[3]=N=>g.parent=N),appearance:"select",class:"document-parent-select","data-testid":"documentation-parent","enable-filtering":"",items:I.value,label:t.unref(o).t("documentation.form_modal.parent_document_select_label"),width:"100%"},null,8,["modelValue","items","label"])]),"action-buttons":t.withCtx(()=>[t.createElementVNode("div",ja,[e.editing?(t.openBlock(),t.createBlock(V,{key:0,appearance:"danger",class:"edit-documentation-delete-button","data-testid":"edit-documentation-delete-button",disabled:e.actionPending,onClick:_[4]||(_[4]=N=>r("delete"))},t.createSlots({default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(t.unref(o).t("documentation.form_modal.delete_button_text")),1)]),_:2},[e.actionPending?{name:"icon",fn:t.withCtx(()=>[t.createVNode(t.unref(xe),{size:"16"})]),key:"0"}:void 0]),1032,["disabled"])):t.createCommentVNode("",!0),t.createElementVNode("div",Va,[t.createVNode(V,{appearance:"secondary",class:"edit-documentation-cancel-button","data-testid":"edit-documentation-cancel-button",onClick:u},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(o).t("documentation.form_modal.cancel_button_text")),1)]),_:1}),t.createVNode(V,{appearance:"primary","data-testid":"edit-documentation-save-button",disabled:e.actionPending||O.value,onClick:p},t.createSlots({default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(t.unref(o).t("documentation.form_modal.save_button_text")),1)]),_:2},[e.actionPending?{name:"icon",fn:t.withCtx(()=>[t.createVNode(t.unref(xe),{size:"16"})]),key:"0"}:void 0]),1032,["disabled"])])])]),_:1})])}}}),[["__scopeId","data-v-ad1a177c"]]),Ha={class:"documentation"},Ga={class:"documentation-parent-container"},Ka=le(t.defineComponent({__name:"DocumentationContent",props:{actionPending:{type:Boolean,default:!1},actionSuccess:{type:Boolean,default:!1},cacheKey:{type:Number,default:0},canEdit:{type:Function,required:!1,default:async()=>!1},card:{type:Boolean,default:!1},documentList:{type:Array,required:!0},entityId:{type:String,required:!0},hidePublishToggle:{type:Boolean,default:!1},modalErrorMessage:{type:String,default:""},selectedDocument:{type:Object,default:()=>null}},emits:["child-change","delete","download","edit","document-selection","modal-closed","parent-change","save","toggle-published"],setup(e,{emit:a}){const n=a,r=t.ref(!1),o=t.ref(!1),d=e;t.watch(()=>d.actionSuccess,w=>{w&&g()});const c=t.computed(()=>{var w,S;return`data-display-${d.cacheKey}-${((S=(w=d.selectedDocument)==null?void 0:w.document)==null?void 0:S.id)||""}`}),i=()=>{o.value=!1,r.value=!0},m=()=>{o.value=!0,r.value=!0,n("edit")},g=()=>{r.value=!1,n("modal-closed")};return(w,S)=>{const I=t.resolveComponent("KTreeList"),O=t.resolveComponent("KCard");return t.openBlock(),t.createElementBlock("div",Ha,[e.documentList&&!e.documentList.length?(t.openBlock(),t.createBlock(Ie,{key:0,"can-edit":e.canEdit,onCreateDocumentation:i},null,8,["can-edit"])):(t.openBlock(),t.createBlock(O,{key:1,class:"documentation-card"},{default:t.withCtx(()=>[t.createElementVNode("div",Ga,[(t.openBlock(),t.createBlock(I,{key:`tree-list-${e.cacheKey}`,class:"document-tree-list",items:e.documentList,"max-depth":2,onChange:S[0]||(S[0]=T=>n("parent-change",T)),onChildChange:S[1]||(S[1]=T=>n("child-change",T)),onSelected:S[2]||(S[2]=T=>n("document-selection",T))},null,8,["items"])),e.selectedDocument?(t.openBlock(),t.createBlock(Ae,{key:c.value,"can-edit":e.canEdit,card:e.card,class:"document-holder","hide-publish-toggle":e.hidePublishToggle,"selected-document":e.selectedDocument,onAdd:i,onDownload:S[3]||(S[3]=T=>n("download")),onEdit:m,onTogglePublished:S[4]||(S[4]=T=>n("toggle-published",T))},null,8,["can-edit","card","hide-publish-toggle","selected-document"])):t.createCommentVNode("",!0)])]),_:1})),r.value?(t.openBlock(),t.createBlock(Oe,{key:2,"action-pending":e.actionPending,documents:e.documentList,editing:o.value,"error-message":e.modalErrorMessage,"hide-publish-toggle":e.hidePublishToggle,record:o.value&&e.selectedDocument?e.selectedDocument:void 0,onCancel:g,onDelete:S[5]||(S[5]=T=>n("delete")),onSave:S[6]||(S[6]=(T,y)=>n("save",T,y))},null,8,["action-pending","documents","editing","error-message","hide-publish-toggle","record"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-d231f54f"]]);(function(e){var a="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+a),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+a),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+a),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+a),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],d=r.variable[1].inside,c=0;c<o.length;c++)d[o[c]]=e.languages.bash[o[c]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash})(Prism);const qa=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));(function(e){var a=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+a.source+")*?(?:;|(?=\\s*\\{))"),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+a.source+`|(?:[^\\\\\r
|
|
14
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}for(var la=new Array(256),sa=new Array(256),z=0;z<256;z++)la[z]=we(z)?1:0,sa[z]=we(z);const ie=t.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(e){const a=e,n=t.ref(void 0),r=t.computed(()=>n.value===!0||n.value!==void 0&&a.forceShow===!0);return t.watch(()=>a.authFunction,async()=>{n.value=await a.authFunction()},{immediate:!0}),(o,d)=>r.value?t.renderSlot(o.$slots,"default",{key:0,isAllowed:n.value}):t.createCommentVNode("",!0)}}),ca=e=>(t.pushScopeId("data-v-98786fd9"),e=e(),t.popScopeId(),e),da={class:"documentation-display"},ua={class:"document-meta"},pa={class:"document-title meta-section"},ma=ca(()=>t.createElementVNode("span",{class:"document-title-extension"},"md",-1)),ga={key:0,class:"document-status meta-section"},fa={class:"meta-label"},ba={key:1,class:"document-create meta-section"},ha={class:"meta-label"},ya={class:"document-display-actions"},ka={key:0,class:"markdown-content-loading","data-testid":"markdown-content-loading"},Ea={key:1},_a=t.defineComponent({__name:"DocumentationDisplay",props:{canEdit:{type:Function,required:!1,default:async()=>!1},card:{type:Boolean,default:!1},hidePublishToggle:{type:Boolean,default:!1},selectedDocument:{type:Object,default:()=>null}},emits:["add","edit","download","toggle-published"],setup(e,{emit:a}){const n=e,r=a,{i18n:o}=te.useI18n(),d=t.ref(!0),c=t.computed(()=>{var y,k,E,l,s;return((k=(y=n.selectedDocument)==null?void 0:y.document)==null?void 0:k.title)||((s=(l=(E=n.selectedDocument)==null?void 0:E.document)==null?void 0:l.revision)==null?void 0:s.title)||""}),i=t.computed(()=>""),m=t.ref(!1),g=t.ref(o.t("documentation.common.unpublished")),w=t.ref(null);t.watch(()=>n.selectedDocument,y=>{var k;Ht(y)||(n.hidePublishToggle||O((k=y.document)==null?void 0:k.status),y.ast&&T())},{deep:!0});const S=()=>{try{if(!n.selectedDocument.markdown)return;const y=new Blob([n.selectedDocument.markdown],{type:"text/markdown;charset=utf-8"}),k=URL.createObjectURL(y),E=document.createElement("a");E.href=k,E.download=`${(c.value?c.value:"document").replace(/(\.md)+$/g,"")}.md`,E.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),r("download"),setTimeout(()=>{window.URL.revokeObjectURL(k),E.remove()},100)}catch(y){console.error(`Could not download document '${c.value}'`,y)}},I=()=>{const y=!m.value;r("toggle-published",y),m.value=y,g.value=y?o.t("documentation.common.published"):o.t("documentation.common.unpublished")},O=y=>{y==="published"?(m.value=!0,g.value=o.t("documentation.common.published")):(m.value=!1,g.value=o.t("documentation.common.unpublished"))},T=()=>{w.value={children:n.selectedDocument.ast,type:"document",version:1},d.value=!1};return(y,k)=>{const E=t.resolveComponent("KBadge"),l=t.resolveComponent("KInputSwitch"),s=t.resolveComponent("KButton"),u=t.resolveComponent("KSkeleton");return t.openBlock(),t.createElementBlock("div",da,[t.createElementVNode("div",ua,[t.createElementVNode("div",pa,[t.renderSlot(y.$slots,"document-title",{},()=>[t.createElementVNode("span",null,t.toDisplayString(c.value),1),t.createTextVNode("."),ma],!0)]),e.hidePublishToggle?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",ga,[t.createElementVNode("span",fa,t.toDisplayString(t.unref(o).t("documentation.documentation_display.status_label")),1),m.value?(t.openBlock(),t.createBlock(E,{key:0,appearance:"success"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(o).t("documentation.common.published")),1)]),_:1})):(t.openBlock(),t.createBlock(E,{key:1,appearance:"neutral"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(o).t("documentation.common.unpublished")),1)]),_:1}))])),i.value?(t.openBlock(),t.createElementBlock("div",ba,[t.createElementVNode("span",ha,t.toDisplayString(t.unref(o).t("documentation.documentation_display.added_label")),1),t.createVNode(E,{appearance:"neutral"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.value),1)]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",ya,[t.createVNode(t.unref(ie),{"auth-function":()=>e.canEdit()},{default:t.withCtx(()=>[!e.hidePublishToggle&&!e.card?(t.openBlock(),t.createBlock(l,{key:0,modelValue:m.value,"onUpdate:modelValue":k[0]||(k[0]=p=>m.value=p),class:"document-publish-toggle","data-testid":"document-publish-toggle",label:g.value,"label-before":"",onClick:I},null,8,["modelValue","label"])):t.createCommentVNode("",!0)]),_:1},8,["auth-function"]),e.selectedDocument.markdown?(t.openBlock(),t.createBlock(s,{key:0,appearance:"secondary",class:"document-download-button","data-testid":"document-download-button",size:"small",onClick:S},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(o).t("documentation.documentation_display.download_button")),1)]),_:1})):t.createCommentVNode("",!0),t.createVNode(t.unref(ie),{"auth-function":()=>e.canEdit()},{default:t.withCtx(()=>[t.createVNode(s,{appearance:"secondary",class:"document-edit-button","data-testid":"document-edit-button",size:"small",onClick:k[1]||(k[1]=p=>r("edit"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(o).t("documentation.documentation_display.edit_button")),1)]),_:1}),t.createVNode(s,{appearance:"primary","data-testid":"add-new-page-button",size:"small",onClick:k[2]||(k[2]=p=>r("add"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(o).t("documentation.documentation_display.add_new")),1)]),_:1})]),_:1},8,["auth-function"])])]),d.value?(t.openBlock(),t.createElementBlock("div",ka,[e.card?(t.openBlock(),t.createBlock(u,{key:1,type:"card"})):(t.openBlock(),t.createBlock(u,{key:0,class:"markdown-content-loader"}))])):(t.openBlock(),t.createElementBlock("div",Ea,[t.createElementVNode("div",{class:t.normalizeClass(["document-content",{"content-card-view":e.card}])},[w.value?(t.openBlock(),t.createBlock(t.unref(Vt),{key:0,document:w.value},null,8,["document"])):t.createCommentVNode("",!0)],2)]))])}}}),le=(e,a)=>{const n=e.__vccOpts||e;for(const[r,o]of a)n[r]=o;return n},Ae=le(_a,[["__scopeId","data-v-98786fd9"]]),Y="24px",Te=(e,a)=>{const n=e.__vccOpts||e;for(const[r,o]of a)n[r]=o;return n},Sa=e=>(t.pushScopeId("data-v-98fcb3eb"),e=e(),t.popScopeId(),e),wa=["aria-hidden"],Aa={key:0,"data-testid":"kui-icon-svg-title"},Ta=Sa(()=>t.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),Na=t.defineComponent({__name:"AddIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:Y,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const a=String(e).replace(/px/gi,""),n=Number(a);if(n&&!isNaN(n)&&Number.isInteger(n)&&n>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const a=e,n=t.computed(()=>{if(typeof a.size=="number"&&a.size>0)return`${a.size}px`;if(typeof a.size=="string"){const o=String(a.size).replace(/px/gi,""),d=Number(o);if(d&&!isNaN(d)&&Number.isInteger(d)&&d>0)return`${d}px`}return Y}),r=t.computed(()=>({boxSizing:"border-box",color:a.color,display:a.display,height:n.value,lineHeight:"0",width:n.value}));return(o,d)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon add-icon","data-testid":"kui-icon-wrapper-add-icon",style:t.normalizeStyle(r.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-add-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Aa,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Ta],8,wa))]),_:1},8,["aria-hidden","style"]))}}),xa=Te(Na,[["__scopeId","data-v-98fcb3eb"]]),Ne=e=>(t.pushScopeId("data-v-6ccc4c21"),e=e(),t.popScopeId(),e),Ia=["aria-hidden"],Oa={key:0,"data-testid":"kui-icon-svg-title"},Ca=Ne(()=>t.createElementVNode("path",{d:"M12 22C10.6333 22 9.34167 21.7375 8.125 21.2125C6.90833 20.6875 5.84583 19.9708 4.9375 19.0625C4.02917 18.1542 3.3125 17.0917 2.7875 15.875C2.2625 14.6583 2 13.3667 2 12C2 10.6167 2.2625 9.32083 2.7875 8.1125C3.3125 6.90417 4.02917 5.84583 4.9375 4.9375C5.84583 4.02917 6.90833 3.3125 8.125 2.7875C9.34167 2.2625 10.6333 2 12 2C12.2833 2 12.5208 2.09583 12.7125 2.2875C12.9042 2.47917 13 2.71667 13 3C13 3.28333 12.9042 3.52083 12.7125 3.7125C12.5208 3.90417 12.2833 4 12 4C9.78333 4 7.89583 4.77917 6.3375 6.3375C4.77917 7.89583 4 9.78333 4 12C4 14.2167 4.77917 16.1042 6.3375 17.6625C7.89583 19.2208 9.78333 20 12 20C14.2167 20 16.1042 19.2208 17.6625 17.6625C19.2208 16.1042 20 14.2167 20 12C20 11.7167 20.0958 11.4792 20.2875 11.2875C20.4792 11.0958 20.7167 11 21 11C21.2833 11 21.5208 11.0958 21.7125 11.2875C21.9042 11.4792 22 11.7167 22 12C22 13.3667 21.7375 14.6583 21.2125 15.875C20.6875 17.0917 19.9708 18.1542 19.0625 19.0625C18.1542 19.9708 17.0958 20.6875 15.8875 21.2125C14.6792 21.7375 13.3833 22 12 22Z",fill:"currentColor","transform-origin":"center"},null,-1)),Fa=Ne(()=>t.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",dur:"1.5s",from:"0",repeatCount:"indefinite",to:"360",type:"rotate"},null,-1)),Pa=t.defineComponent({__name:"ProgressIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:Y,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const a=String(e).replace(/px/gi,""),n=Number(a);if(n&&!isNaN(n)&&Number.isInteger(n)&&n>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const a=e,n=t.computed(()=>{if(typeof a.size=="number"&&a.size>0)return`${a.size}px`;if(typeof a.size=="string"){const o=String(a.size).replace(/px/gi,""),d=Number(o);if(d&&!isNaN(d)&&Number.isInteger(d)&&d>0)return`${d}px`}return Y}),r=t.computed(()=>({boxSizing:"border-box",color:a.color,display:a.display,height:n.value,lineHeight:"0",width:n.value}));return(o,d)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon progress-icon","data-testid":"kui-icon-wrapper-progress-icon",style:t.normalizeStyle(r.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-progress-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Oa,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Ca,Fa],8,Ia))]),_:1},8,["aria-hidden","style"]))}}),xe=Te(Pa,[["__scopeId","data-v-6ccc4c21"]]),Ie=t.defineComponent({__name:"DocumentationPageEmptyState",props:{canEdit:{type:Function,required:!1,default:async()=>!1}},emits:["create-documentation"],setup(e,{emit:a}){const n=a,{i18n:r}=te.useI18n();return(o,d)=>{const c=t.resolveComponent("KButton"),i=t.resolveComponent("KEmptyState");return t.openBlock(),t.createBlock(i,{class:"documentation-page-empty-state","data-testid":"documentation-page-empty-state",icon:"stateGruceo","icon-size":"96"},{title:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("documentation.show.empty_state.title")),1)]),message:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("documentation.show.empty_state.message")),1)]),cta:t.withCtx(()=>[t.createVNode(t.unref(ie),{"auth-function":()=>e.canEdit()},{default:t.withCtx(()=>[t.createVNode(c,{appearance:"primary","data-testid":"add-new-page-button",onClick:d[0]||(d[0]=m=>n("create-documentation"))},{icon:t.withCtx(()=>[t.createVNode(t.unref(xa),{size:"22"})]),default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(t.unref(r).t("documentation.show.empty_state.ctaText")),1)]),_:1})]),_:1},8,["auth-function"])]),_:1})}}}),Ra={serviceDocumentationDocs:"https://docs.konghq.com/konnect/servicehub/service-documentation/#main"},$a=e=>(t.pushScopeId("data-v-ad1a177c"),e=e(),t.popScopeId(),e),va={class:"title"},La={class:"subtitle"},Ba=$a(()=>t.createElementVNode("br",null,null,-1)),Da={class:"document-inputs"},Ma={class:"page-name side-by-side"},za={class:"url-slug side-by-side"},Ua={key:1,class:"documentation-status"},ja={class:"action-buttons"},Va={class:"button-spacing"},Oe=le(t.defineComponent({__name:"ProductDocumentModal",props:{actionPending:{type:Boolean,default:!1},documents:{type:Array,required:!0},editing:{type:Boolean,default:!1},errorMessage:{type:String,default:""},hidePublishToggle:{type:Boolean,default:!1},record:{type:Object,default:null}},emits:["cancel","save","delete"],setup(e,{emit:a}){const n=e,r=a,{i18n:o}=te.useI18n(),d=t.computed(()=>{var b;return(b=n.record.file)==null?void 0:b.filename}),c=t.computed(()=>{var b;return E.value?(b=E.value.name)==null?void 0:b.split(".")[0]:""}),i=t.ref(!0),m=t.computed(()=>i.value?"published":"unpublished"),g=t.reactive({fileName:"",pageName:"",urlSlug:"",status:m.value,parent:""}),w=/^[\w-]+$/,S=t.computed(()=>{var b;return g.urlSlug!==""&&!((b=g.urlSlug)!=null&&b.match(w))}),I=t.computed(()=>{var h;let b=(h=n.documents)==null?void 0:h.filter(A=>{var x;return A.record.id!==((x=n.record)==null?void 0:x.id)&&!A.record.parent_document_id}).map(A=>({label:A.record.title,value:A.record.id,selected:!1}));b||(b=[]);const _=he(b.length);return b.push({label:o.t("documentation.form_modal.parent_document_select_option_none"),value:"none",selected:!_}),b}),O=t.computed(()=>!n.editing&&!E.value||!g.pageName||S.value),T=t.computed(()=>n.editing?o.t("documentation.form_modal.edit_title"):o.t("documentation.form_modal.create_title")),y=t.computed(()=>n.editing?o.t("documentation.form_modal.replace_file_button_text"):o.t("documentation.form_modal.filename_button_text")),k=t.computed(()=>m.value==="published"?o.t("documentation.common.published"):o.t("documentation.common.unpublished")),E=t.ref(null),l=b=>{E.value=b==null?void 0:b[0],g.pageName=c.value,g.urlSlug=c.value,g.fileName=c.value},s=()=>{E.value=null},u=()=>{r("cancel"),f()},p=()=>{r("save",Object.assign(g,{status:m.value}),E)},f=()=>{var b,_,h,A,x;if(E.value=null,n.editing&&((b=n.record)!=null&&b.document)){const C=he(n.record),M=C.status||n.record.document.status||i.value;g.fileName=((_=C.document.file)==null?void 0:_.filename)||((A=(h=C.document.revision)==null?void 0:h.file)==null?void 0:A.filename),g.pageName=C.document.title||((x=C.document.revision)==null?void 0:x.title),g.urlSlug=C.document.slug,g.parent=C.document.parent_document_id,g.status=M,i.value=M==="published"}else g.fileName="",g.pageName="",g.urlSlug="",g.parent="",g.status=""};return t.onMounted(()=>{f()}),(b,_)=>{const h=t.resolveComponent("KExternalLink"),A=t.resolveComponent("KAlert"),x=t.resolveComponent("KFileUpload"),C=t.resolveComponent("KInput"),M=t.resolveComponent("KLabel"),X=t.resolveComponent("KInputSwitch"),se=t.resolveComponent("KSelect"),V=t.resolveComponent("KButton"),Z=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(t.Teleport,{to:"#kong-ui-app-layout-teleport-default-slot"},[t.createVNode(Z,{class:"edit-document-modal","data-testid":"edit-document-modal","is-visible":"",onCanceled:u,onProceed:p},{"header-content":t.withCtx(()=>[t.createElementVNode("div",va,[t.createTextVNode(t.toDisplayString(T.value)+" ",1),t.createElementVNode("div",La,[t.createTextVNode(t.toDisplayString(t.unref(o).t("documentation.form_modal.subtitle"))+" ",1),Ba,t.createVNode(h,{class:"doc-link",href:t.unref(Ra).serviceDocumentationDocs},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(o).t("documentation.form_modal.documentation_link_text")),1)]),_:1},8,["href"])])])]),"body-content":t.withCtx(()=>[e.errorMessage?(t.openBlock(),t.createBlock(A,{key:0,"alert-message":e.errorMessage,appearance:"danger",class:"bottom-spacing"},null,8,["alert-message"])):t.createCommentVNode("",!0),t.createVNode(x,{accept:[".md",".markdown"],"button-text":y.value,class:"document-file-upload","data-testid":"document-file-upload",label:t.unref(o).t("documentation.form_modal.file_label"),"label-attributes":{help:t.unref(o).t("documentation.form_modal.file_tooltip")},placeholder:e.editing?d.value:void 0,onFileAdded:l,onFileRemoved:s},null,8,["accept","button-text","label","label-attributes","placeholder"]),t.createElementVNode("div",Da,[t.createElementVNode("div",Ma,[t.createVNode(C,{modelValue:g.pageName,"onUpdate:modelValue":_[0]||(_[0]=N=>g.pageName=N),modelModifiers:{trim:!0},"data-testid":"documentation-page-name",label:t.unref(o).t("documentation.form_modal.title_label"),placeholder:t.unref(o).t("documentation.form_modal.title_placeholder"),required:""},null,8,["modelValue","label","placeholder"])]),t.createElementVNode("div",za,[t.createVNode(C,{modelValue:g.urlSlug,"onUpdate:modelValue":_[1]||(_[1]=N=>g.urlSlug=N),modelModifiers:{trim:!0},"data-testid":"documentation-url-slug","error-message":t.unref(o).t("documentation.form_modal.slug_error"),"has-error":S.value,label:t.unref(o).t("documentation.form_modal.slug_label"),pattern:w,placeholder:t.unref(o).t("documentation.form_modal.slug_placeholder")},null,8,["modelValue","error-message","has-error","label","placeholder"])])]),e.hidePublishToggle?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Ua,[t.createElementVNode("div",null,[t.createVNode(M,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(o).t("documentation.form_modal.status_label")),1)]),_:1})]),t.createVNode(X,{modelValue:i.value,"onUpdate:modelValue":_[2]||(_[2]=N=>i.value=N),"data-testid":"documentation-status",label:k.value},null,8,["modelValue","label"])])),t.createVNode(se,{modelValue:g.parent,"onUpdate:modelValue":_[3]||(_[3]=N=>g.parent=N),appearance:"select",class:"document-parent-select","data-testid":"documentation-parent","enable-filtering":"",items:I.value,label:t.unref(o).t("documentation.form_modal.parent_document_select_label"),width:"100%"},null,8,["modelValue","items","label"])]),"action-buttons":t.withCtx(()=>[t.createElementVNode("div",ja,[e.editing?(t.openBlock(),t.createBlock(V,{key:0,appearance:"danger",class:"edit-documentation-delete-button","data-testid":"edit-documentation-delete-button",disabled:e.actionPending,onClick:_[4]||(_[4]=N=>r("delete"))},t.createSlots({default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(t.unref(o).t("documentation.form_modal.delete_button_text")),1)]),_:2},[e.actionPending?{name:"icon",fn:t.withCtx(()=>[t.createVNode(t.unref(xe),{size:"16"})]),key:"0"}:void 0]),1032,["disabled"])):t.createCommentVNode("",!0),t.createElementVNode("div",Va,[t.createVNode(V,{appearance:"secondary",class:"edit-documentation-cancel-button","data-testid":"edit-documentation-cancel-button",onClick:u},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(o).t("documentation.form_modal.cancel_button_text")),1)]),_:1}),t.createVNode(V,{appearance:"primary","data-testid":"edit-documentation-save-button",disabled:e.actionPending||O.value,onClick:p},t.createSlots({default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(t.unref(o).t("documentation.form_modal.save_button_text")),1)]),_:2},[e.actionPending?{name:"icon",fn:t.withCtx(()=>[t.createVNode(t.unref(xe),{size:"16"})]),key:"0"}:void 0]),1032,["disabled"])])])]),_:1})])}}}),[["__scopeId","data-v-ad1a177c"]]),Ha={class:"documentation"},Ga={class:"documentation-parent-container"},Ka=le(t.defineComponent({__name:"DocumentationContent",props:{actionPending:{type:Boolean,default:!1},actionSuccess:{type:Boolean,default:!1},cacheKey:{type:Number,default:0},canEdit:{type:Function,required:!1,default:async()=>!1},card:{type:Boolean,default:!1},documentList:{type:Array,required:!0},entityId:{type:String,required:!0},hidePublishToggle:{type:Boolean,default:!1},modalErrorMessage:{type:String,default:""},selectedDocument:{type:Object,default:()=>null}},emits:["child-change","delete","download","edit","document-selection","modal-closed","parent-change","save","toggle-published"],setup(e,{emit:a}){const n=a,r=t.ref(!1),o=t.ref(!1),d=e;t.watch(()=>d.actionSuccess,w=>{w&&g()});const c=t.computed(()=>{var w,S;return`data-display-${d.cacheKey}-${((S=(w=d.selectedDocument)==null?void 0:w.document)==null?void 0:S.id)||""}`}),i=()=>{o.value=!1,r.value=!0},m=()=>{o.value=!0,r.value=!0,n("edit")},g=()=>{r.value=!1,n("modal-closed")};return(w,S)=>{const I=t.resolveComponent("KTreeList"),O=t.resolveComponent("KCard");return t.openBlock(),t.createElementBlock("div",Ha,[e.documentList&&!e.documentList.length?(t.openBlock(),t.createBlock(Ie,{key:0,"can-edit":e.canEdit,onCreateDocumentation:i},null,8,["can-edit"])):(t.openBlock(),t.createBlock(O,{key:1,class:"documentation-card"},{default:t.withCtx(()=>[t.createElementVNode("div",Ga,[(t.openBlock(),t.createBlock(I,{key:`tree-list-${e.cacheKey}`,class:"document-tree-list",items:e.documentList,"max-depth":2,onChange:S[0]||(S[0]=T=>n("parent-change",T)),onChildChange:S[1]||(S[1]=T=>n("child-change",T)),onSelected:S[2]||(S[2]=T=>n("document-selection",T))},null,8,["items"])),e.selectedDocument?(t.openBlock(),t.createBlock(Ae,{key:c.value,"can-edit":e.canEdit,card:e.card,class:"document-holder","hide-publish-toggle":e.hidePublishToggle,"selected-document":e.selectedDocument,onAdd:i,onDownload:S[3]||(S[3]=T=>n("download")),onEdit:m,onTogglePublished:S[4]||(S[4]=T=>n("toggle-published",T))},null,8,["can-edit","card","hide-publish-toggle","selected-document"])):t.createCommentVNode("",!0)])]),_:1})),r.value?(t.openBlock(),t.createBlock(Oe,{key:2,"action-pending":e.actionPending,documents:e.documentList,editing:o.value,"error-message":e.modalErrorMessage,"hide-publish-toggle":e.hidePublishToggle,record:o.value&&e.selectedDocument?e.selectedDocument:void 0,onCancel:g,onDelete:S[5]||(S[5]=T=>n("delete")),onSave:S[6]||(S[6]=(T,y)=>n("save",T,y))},null,8,["action-pending","documents","editing","error-message","hide-publish-toggle","record"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-d231f54f"]]);(function(e){var a="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+a),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+a),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+a),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+a),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],d=r.variable[1].inside,c=0;c<o.length;c++)d[o[c]]=e.languages.bash[o[c]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash})(Prism);const qa=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));(function(e){var a=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+a.source+")*?(?:;|(?=\\s*\\{))"),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+a.source+`|(?:[^\\\\\r
|
|
15
15
|
()"']|\\\\[^])*)\\)`,"i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+a.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+a.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:a,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))})(Prism);const Ya=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));(function(e){var a="(?:[ ]+(?![ ])(?:<SP_BS>)?|<SP_BS>)".replace(/<SP_BS>/g,function(){return`\\\\[\r
|
|
16
16
|
](?:\\s|\\\\[\r
|
|
17
17
|
]|#.*(?!.))*(?![\\s#]|\\\\[\r
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/documentation",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/documentation.umd.js",
|
|
6
6
|
"module": "./dist/documentation.es.js",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"@kong-ui-public/i18n": "^2.0.7"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@kong/icons": "^1.8.
|
|
54
|
+
"@kong/icons": "^1.8.12",
|
|
55
55
|
"@kong-ui-public/document-viewer": "^2.0.21",
|
|
56
|
-
"@kong-ui-public/entities-shared": "^2.4.
|
|
56
|
+
"@kong-ui-public/entities-shared": "^2.4.10"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"dev": "cross-env USE_SANDBOX=true vite",
|