@kong-ui-public/documentation 0.1.14 → 0.1.15
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 +754 -755
- package/dist/documentation.umd.js +7 -7
- package/dist/types/components/DocumentationContent.vue.d.ts.map +1 -1
- package/dist/types/components/DocumentationDisplay.vue.d.ts.map +1 -1
- package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +1 -1
- package/dist/types/components/ProductDocumentModal.vue.d.ts.map +1 -1
- package/package.json +7 -7
package/dist/documentation.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as G, openBlock as v, createBlock as F, resolveDynamicComponent as Y, unref as y, withCtx as q, createElementVNode as N, renderSlot as z, normalizeClass as _e, computed as L, createElementBlock as C, toDisplayString as E, createVNode as R, mergeProps as ke, ref as U, Fragment as et, createTextVNode as O, createCommentVNode as H, watch as ge, resolveComponent as $, pushScopeId as fe, popScopeId as he, normalizeStyle as Ge, reactive as tt, onMounted as nt, Teleport as rt, createSlots as je } from "vue";
|
|
2
2
|
import { createI18n as Oe, Translation as Me } from "@kong-ui-public/i18n";
|
|
3
3
|
import "axios";
|
|
4
4
|
import "@kong/kongponents";
|
|
@@ -74,18 +74,18 @@ function ct(e) {
|
|
|
74
74
|
}
|
|
75
75
|
const B = (e, n) => {
|
|
76
76
|
const t = e.__vccOpts || e;
|
|
77
|
-
for (const [
|
|
78
|
-
t[
|
|
77
|
+
for (const [a, r] of n)
|
|
78
|
+
t[a] = r;
|
|
79
79
|
return t;
|
|
80
80
|
}, dt = {};
|
|
81
81
|
function pt(e, n) {
|
|
82
|
-
return
|
|
82
|
+
return v(), C("blockquote", null, [
|
|
83
83
|
z(e.$slots, "default", {}, void 0, !0)
|
|
84
84
|
]);
|
|
85
85
|
}
|
|
86
86
|
const mt = /* @__PURE__ */ B(dt, [["render", pt], ["__scopeId", "data-v-afdbfde6"]]), gt = {};
|
|
87
87
|
function ft(e, n) {
|
|
88
|
-
return
|
|
88
|
+
return v(), C("code", null, [
|
|
89
89
|
z(e.$slots, "default", {}, void 0, !0)
|
|
90
90
|
]);
|
|
91
91
|
}
|
|
@@ -110,8 +110,8 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
110
110
|
* @namespace
|
|
111
111
|
* @public
|
|
112
112
|
*/
|
|
113
|
-
var t = function(
|
|
114
|
-
var
|
|
113
|
+
var t = function(a) {
|
|
114
|
+
var r = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, c = 0, s = {}, l = {
|
|
115
115
|
/**
|
|
116
116
|
* By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
|
|
117
117
|
* current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
|
|
@@ -133,7 +133,7 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
133
133
|
* @memberof Prism
|
|
134
134
|
* @public
|
|
135
135
|
*/
|
|
136
|
-
manual:
|
|
136
|
+
manual: a.Prism && a.Prism.manual,
|
|
137
137
|
/**
|
|
138
138
|
* By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
|
|
139
139
|
* `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
|
|
@@ -155,7 +155,7 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
155
155
|
* @memberof Prism
|
|
156
156
|
* @public
|
|
157
157
|
*/
|
|
158
|
-
disableWorkerMessageHandler:
|
|
158
|
+
disableWorkerMessageHandler: a.Prism && a.Prism.disableWorkerMessageHandler,
|
|
159
159
|
/**
|
|
160
160
|
* A namespace for utility methods.
|
|
161
161
|
*
|
|
@@ -166,8 +166,8 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
166
166
|
* @memberof Prism
|
|
167
167
|
*/
|
|
168
168
|
util: {
|
|
169
|
-
encode: function o
|
|
170
|
-
return
|
|
169
|
+
encode: function i(o) {
|
|
170
|
+
return o instanceof g ? new g(o.type, i(o.content), o.alias) : Array.isArray(o) ? o.map(i) : o.replace(/&/g, "&").replace(/</g, "<").replace(/\u00a0/g, " ");
|
|
171
171
|
},
|
|
172
172
|
/**
|
|
173
173
|
* Returns the name of the type of the given value.
|
|
@@ -185,8 +185,8 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
185
185
|
* type(String) === 'Function'
|
|
186
186
|
* type(/abc+/) === 'RegExp'
|
|
187
187
|
*/
|
|
188
|
-
type: function(
|
|
189
|
-
return Object.prototype.toString.call(
|
|
188
|
+
type: function(i) {
|
|
189
|
+
return Object.prototype.toString.call(i).slice(8, -1);
|
|
190
190
|
},
|
|
191
191
|
/**
|
|
192
192
|
* Returns a unique number for the given object. Later calls will still return the same number.
|
|
@@ -194,8 +194,8 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
194
194
|
* @param {Object} obj
|
|
195
195
|
* @returns {number}
|
|
196
196
|
*/
|
|
197
|
-
objId: function(
|
|
198
|
-
return
|
|
197
|
+
objId: function(i) {
|
|
198
|
+
return i.__id || Object.defineProperty(i, "__id", { value: ++c }), i.__id;
|
|
199
199
|
},
|
|
200
200
|
/**
|
|
201
201
|
* Creates a deep clone of the given object.
|
|
@@ -207,30 +207,30 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
207
207
|
* @returns {T}
|
|
208
208
|
* @template T
|
|
209
209
|
*/
|
|
210
|
-
clone: function o
|
|
211
|
-
|
|
212
|
-
var
|
|
213
|
-
switch (l.util.type(
|
|
210
|
+
clone: function i(o, u) {
|
|
211
|
+
u = u || {};
|
|
212
|
+
var d, p;
|
|
213
|
+
switch (l.util.type(o)) {
|
|
214
214
|
case "Object":
|
|
215
|
-
if (
|
|
216
|
-
return
|
|
217
|
-
|
|
218
|
-
{},
|
|
219
|
-
for (var
|
|
220
|
-
|
|
215
|
+
if (p = l.util.objId(o), u[p])
|
|
216
|
+
return u[p];
|
|
217
|
+
d = /** @type {Record<string, any>} */
|
|
218
|
+
{}, u[p] = d;
|
|
219
|
+
for (var m in o)
|
|
220
|
+
o.hasOwnProperty(m) && (d[m] = i(o[m], u));
|
|
221
221
|
return (
|
|
222
222
|
/** @type {any} */
|
|
223
|
-
|
|
223
|
+
d
|
|
224
224
|
);
|
|
225
225
|
case "Array":
|
|
226
|
-
return
|
|
226
|
+
return p = l.util.objId(o), u[p] ? u[p] : (d = [], u[p] = d, /** @type {Array} */
|
|
227
227
|
/** @type {any} */
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
o.forEach(function(w, f) {
|
|
229
|
+
d[f] = i(w, u);
|
|
230
230
|
}), /** @type {any} */
|
|
231
|
-
|
|
231
|
+
d);
|
|
232
232
|
default:
|
|
233
|
-
return
|
|
233
|
+
return o;
|
|
234
234
|
}
|
|
235
235
|
},
|
|
236
236
|
/**
|
|
@@ -241,12 +241,12 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
241
241
|
* @param {Element} element
|
|
242
242
|
* @returns {string}
|
|
243
243
|
*/
|
|
244
|
-
getLanguage: function(
|
|
245
|
-
for (;
|
|
246
|
-
var
|
|
247
|
-
if (
|
|
248
|
-
return
|
|
249
|
-
|
|
244
|
+
getLanguage: function(i) {
|
|
245
|
+
for (; i; ) {
|
|
246
|
+
var o = r.exec(i.className);
|
|
247
|
+
if (o)
|
|
248
|
+
return o[1].toLowerCase();
|
|
249
|
+
i = i.parentElement;
|
|
250
250
|
}
|
|
251
251
|
return "none";
|
|
252
252
|
},
|
|
@@ -257,8 +257,8 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
257
257
|
* @param {string} language
|
|
258
258
|
* @returns {void}
|
|
259
259
|
*/
|
|
260
|
-
setLanguage: function(
|
|
261
|
-
|
|
260
|
+
setLanguage: function(i, o) {
|
|
261
|
+
i.className = i.className.replace(RegExp(r, "gi"), ""), i.classList.add("language-" + o);
|
|
262
262
|
},
|
|
263
263
|
/**
|
|
264
264
|
* Returns the script element that is currently executing.
|
|
@@ -277,13 +277,13 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
277
277
|
);
|
|
278
278
|
try {
|
|
279
279
|
throw new Error();
|
|
280
|
-
} catch (
|
|
281
|
-
var
|
|
282
|
-
if (
|
|
283
|
-
var
|
|
284
|
-
for (var
|
|
285
|
-
if (
|
|
286
|
-
return
|
|
280
|
+
} catch (d) {
|
|
281
|
+
var i = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(d.stack) || [])[1];
|
|
282
|
+
if (i) {
|
|
283
|
+
var o = document.getElementsByTagName("script");
|
|
284
|
+
for (var u in o)
|
|
285
|
+
if (o[u].src == i)
|
|
286
|
+
return o[u];
|
|
287
287
|
}
|
|
288
288
|
return null;
|
|
289
289
|
}
|
|
@@ -307,16 +307,16 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
307
307
|
* @param {boolean} [defaultActivation=false]
|
|
308
308
|
* @returns {boolean}
|
|
309
309
|
*/
|
|
310
|
-
isActive: function(
|
|
311
|
-
for (var
|
|
312
|
-
var
|
|
313
|
-
if (
|
|
310
|
+
isActive: function(i, o, u) {
|
|
311
|
+
for (var d = "no-" + o; i; ) {
|
|
312
|
+
var p = i.classList;
|
|
313
|
+
if (p.contains(o))
|
|
314
314
|
return !0;
|
|
315
|
-
if (
|
|
315
|
+
if (p.contains(d))
|
|
316
316
|
return !1;
|
|
317
|
-
|
|
317
|
+
i = i.parentElement;
|
|
318
318
|
}
|
|
319
|
-
return !!
|
|
319
|
+
return !!u;
|
|
320
320
|
}
|
|
321
321
|
},
|
|
322
322
|
/**
|
|
@@ -330,10 +330,10 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
330
330
|
/**
|
|
331
331
|
* The grammar for plain, unformatted text.
|
|
332
332
|
*/
|
|
333
|
-
plain:
|
|
334
|
-
plaintext:
|
|
335
|
-
text:
|
|
336
|
-
txt:
|
|
333
|
+
plain: s,
|
|
334
|
+
plaintext: s,
|
|
335
|
+
text: s,
|
|
336
|
+
txt: s,
|
|
337
337
|
/**
|
|
338
338
|
* Creates a deep copy of the language with the given id and appends the given tokens.
|
|
339
339
|
*
|
|
@@ -362,11 +362,11 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
362
362
|
* 'color': /\b(?:red|green|blue)\b/
|
|
363
363
|
* });
|
|
364
364
|
*/
|
|
365
|
-
extend: function(
|
|
366
|
-
var
|
|
367
|
-
for (var
|
|
368
|
-
d
|
|
369
|
-
return
|
|
365
|
+
extend: function(i, o) {
|
|
366
|
+
var u = l.util.clone(l.languages[i]);
|
|
367
|
+
for (var d in o)
|
|
368
|
+
u[d] = o[d];
|
|
369
|
+
return u;
|
|
370
370
|
},
|
|
371
371
|
/**
|
|
372
372
|
* Inserts tokens _before_ another token in a language definition or any other grammar.
|
|
@@ -443,31 +443,31 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
443
443
|
* @returns {Grammar} The new grammar object.
|
|
444
444
|
* @public
|
|
445
445
|
*/
|
|
446
|
-
insertBefore: function(o,
|
|
447
|
-
|
|
446
|
+
insertBefore: function(i, o, u, d) {
|
|
447
|
+
d = d || /** @type {any} */
|
|
448
448
|
l.languages;
|
|
449
|
-
var
|
|
450
|
-
for (var
|
|
451
|
-
if (
|
|
452
|
-
if (
|
|
453
|
-
for (var f in
|
|
454
|
-
|
|
455
|
-
|
|
449
|
+
var p = d[i], m = {};
|
|
450
|
+
for (var w in p)
|
|
451
|
+
if (p.hasOwnProperty(w)) {
|
|
452
|
+
if (w == o)
|
|
453
|
+
for (var f in u)
|
|
454
|
+
u.hasOwnProperty(f) && (m[f] = u[f]);
|
|
455
|
+
u.hasOwnProperty(w) || (m[w] = p[w]);
|
|
456
456
|
}
|
|
457
|
-
var
|
|
458
|
-
return
|
|
459
|
-
|
|
460
|
-
}),
|
|
457
|
+
var _ = d[i];
|
|
458
|
+
return d[i] = m, l.languages.DFS(l.languages, function(j, I) {
|
|
459
|
+
I === _ && j != i && (this[j] = m);
|
|
460
|
+
}), m;
|
|
461
461
|
},
|
|
462
462
|
// Traverse a language definition with Depth First Search
|
|
463
|
-
DFS: function o
|
|
464
|
-
|
|
465
|
-
var
|
|
466
|
-
for (var
|
|
467
|
-
if (
|
|
468
|
-
|
|
469
|
-
var f =
|
|
470
|
-
|
|
463
|
+
DFS: function i(o, u, d, p) {
|
|
464
|
+
p = p || {};
|
|
465
|
+
var m = l.util.objId;
|
|
466
|
+
for (var w in o)
|
|
467
|
+
if (o.hasOwnProperty(w)) {
|
|
468
|
+
u.call(o, w, o[w], d || w);
|
|
469
|
+
var f = o[w], _ = l.util.type(f);
|
|
470
|
+
_ === "Object" && !p[m(f)] ? (p[m(f)] = !0, i(f, u, null, p)) : _ === "Array" && !p[m(f)] && (p[m(f)] = !0, i(f, u, w, p));
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
},
|
|
@@ -484,8 +484,8 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
484
484
|
* @memberof Prism
|
|
485
485
|
* @public
|
|
486
486
|
*/
|
|
487
|
-
highlightAll: function(
|
|
488
|
-
l.highlightAllUnder(document,
|
|
487
|
+
highlightAll: function(i, o) {
|
|
488
|
+
l.highlightAllUnder(document, i, o);
|
|
489
489
|
},
|
|
490
490
|
/**
|
|
491
491
|
* Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
|
|
@@ -502,15 +502,15 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
502
502
|
* @memberof Prism
|
|
503
503
|
* @public
|
|
504
504
|
*/
|
|
505
|
-
highlightAllUnder: function(
|
|
506
|
-
var
|
|
507
|
-
callback:
|
|
508
|
-
container:
|
|
505
|
+
highlightAllUnder: function(i, o, u) {
|
|
506
|
+
var d = {
|
|
507
|
+
callback: u,
|
|
508
|
+
container: i,
|
|
509
509
|
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
510
510
|
};
|
|
511
|
-
l.hooks.run("before-highlightall",
|
|
512
|
-
for (var
|
|
513
|
-
l.highlightElement(
|
|
511
|
+
l.hooks.run("before-highlightall", d), d.elements = Array.prototype.slice.apply(d.container.querySelectorAll(d.selector)), l.hooks.run("before-all-elements-highlight", d);
|
|
512
|
+
for (var p = 0, m; m = d.elements[p++]; )
|
|
513
|
+
l.highlightElement(m, o === !0, d.callback);
|
|
514
514
|
},
|
|
515
515
|
/**
|
|
516
516
|
* Highlights the code inside a single element.
|
|
@@ -540,39 +540,39 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
540
540
|
* @memberof Prism
|
|
541
541
|
* @public
|
|
542
542
|
*/
|
|
543
|
-
highlightElement: function(
|
|
544
|
-
var
|
|
545
|
-
l.util.setLanguage(
|
|
546
|
-
var
|
|
547
|
-
|
|
548
|
-
var
|
|
549
|
-
element:
|
|
550
|
-
language:
|
|
551
|
-
grammar:
|
|
552
|
-
code:
|
|
543
|
+
highlightElement: function(i, o, u) {
|
|
544
|
+
var d = l.util.getLanguage(i), p = l.languages[d];
|
|
545
|
+
l.util.setLanguage(i, d);
|
|
546
|
+
var m = i.parentElement;
|
|
547
|
+
m && m.nodeName.toLowerCase() === "pre" && l.util.setLanguage(m, d);
|
|
548
|
+
var w = i.textContent, f = {
|
|
549
|
+
element: i,
|
|
550
|
+
language: d,
|
|
551
|
+
grammar: p,
|
|
552
|
+
code: w
|
|
553
553
|
};
|
|
554
|
-
function
|
|
555
|
-
f.highlightedCode =
|
|
554
|
+
function _(I) {
|
|
555
|
+
f.highlightedCode = I, l.hooks.run("before-insert", f), f.element.innerHTML = f.highlightedCode, l.hooks.run("after-highlight", f), l.hooks.run("complete", f), u && u.call(f.element);
|
|
556
556
|
}
|
|
557
|
-
if (l.hooks.run("before-sanity-check", f),
|
|
558
|
-
l.hooks.run("complete", f),
|
|
557
|
+
if (l.hooks.run("before-sanity-check", f), m = f.element.parentElement, m && m.nodeName.toLowerCase() === "pre" && !m.hasAttribute("tabindex") && m.setAttribute("tabindex", "0"), !f.code) {
|
|
558
|
+
l.hooks.run("complete", f), u && u.call(f.element);
|
|
559
559
|
return;
|
|
560
560
|
}
|
|
561
561
|
if (l.hooks.run("before-highlight", f), !f.grammar) {
|
|
562
|
-
|
|
562
|
+
_(l.util.encode(f.code));
|
|
563
563
|
return;
|
|
564
564
|
}
|
|
565
|
-
if (
|
|
566
|
-
var
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
},
|
|
565
|
+
if (o && a.Worker) {
|
|
566
|
+
var j = new Worker(l.filename);
|
|
567
|
+
j.onmessage = function(I) {
|
|
568
|
+
_(I.data);
|
|
569
|
+
}, j.postMessage(JSON.stringify({
|
|
570
570
|
language: f.language,
|
|
571
571
|
code: f.code,
|
|
572
572
|
immediateClose: !0
|
|
573
573
|
}));
|
|
574
574
|
} else
|
|
575
|
-
|
|
575
|
+
_(l.highlight(f.code, f.grammar, f.language));
|
|
576
576
|
},
|
|
577
577
|
/**
|
|
578
578
|
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
|
|
@@ -594,15 +594,15 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
594
594
|
* @example
|
|
595
595
|
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
596
596
|
*/
|
|
597
|
-
highlight: function(
|
|
598
|
-
var
|
|
599
|
-
code:
|
|
600
|
-
grammar:
|
|
601
|
-
language:
|
|
597
|
+
highlight: function(i, o, u) {
|
|
598
|
+
var d = {
|
|
599
|
+
code: i,
|
|
600
|
+
grammar: o,
|
|
601
|
+
language: u
|
|
602
602
|
};
|
|
603
|
-
if (l.hooks.run("before-tokenize",
|
|
604
|
-
throw new Error('The language "' +
|
|
605
|
-
return
|
|
603
|
+
if (l.hooks.run("before-tokenize", d), !d.grammar)
|
|
604
|
+
throw new Error('The language "' + d.language + '" has no grammar.');
|
|
605
|
+
return d.tokens = l.tokenize(d.code, d.grammar), l.hooks.run("after-tokenize", d), g.stringify(l.util.encode(d.tokens), d.language);
|
|
606
606
|
},
|
|
607
607
|
/**
|
|
608
608
|
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
|
|
@@ -628,15 +628,15 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
628
628
|
* }
|
|
629
629
|
* });
|
|
630
630
|
*/
|
|
631
|
-
tokenize: function(
|
|
632
|
-
var
|
|
633
|
-
if (
|
|
634
|
-
for (var
|
|
635
|
-
|
|
636
|
-
delete
|
|
631
|
+
tokenize: function(i, o) {
|
|
632
|
+
var u = o.rest;
|
|
633
|
+
if (u) {
|
|
634
|
+
for (var d in u)
|
|
635
|
+
o[d] = u[d];
|
|
636
|
+
delete o.rest;
|
|
637
637
|
}
|
|
638
|
-
var
|
|
639
|
-
return P(
|
|
638
|
+
var p = new k();
|
|
639
|
+
return P(p, p.head, i), A(i, p, o, p.head, 0), x(p);
|
|
640
640
|
},
|
|
641
641
|
/**
|
|
642
642
|
* @namespace
|
|
@@ -657,9 +657,9 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
657
657
|
* @param {HookCallback} callback The callback function which is given environment variables.
|
|
658
658
|
* @public
|
|
659
659
|
*/
|
|
660
|
-
add: function(
|
|
661
|
-
var
|
|
662
|
-
|
|
660
|
+
add: function(i, o) {
|
|
661
|
+
var u = l.hooks.all;
|
|
662
|
+
u[i] = u[i] || [], u[i].push(o);
|
|
663
663
|
},
|
|
664
664
|
/**
|
|
665
665
|
* Runs a hook invoking all registered callbacks with the given environment variables.
|
|
@@ -670,131 +670,131 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
670
670
|
* @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
|
|
671
671
|
* @public
|
|
672
672
|
*/
|
|
673
|
-
run: function(
|
|
674
|
-
var
|
|
675
|
-
if (!(!
|
|
676
|
-
for (var
|
|
677
|
-
|
|
673
|
+
run: function(i, o) {
|
|
674
|
+
var u = l.hooks.all[i];
|
|
675
|
+
if (!(!u || !u.length))
|
|
676
|
+
for (var d = 0, p; p = u[d++]; )
|
|
677
|
+
p(o);
|
|
678
678
|
}
|
|
679
679
|
},
|
|
680
|
-
Token:
|
|
680
|
+
Token: g
|
|
681
681
|
};
|
|
682
|
-
|
|
683
|
-
function
|
|
684
|
-
this.type =
|
|
682
|
+
a.Prism = l;
|
|
683
|
+
function g(i, o, u, d) {
|
|
684
|
+
this.type = i, this.content = o, this.alias = u, this.length = (d || "").length | 0;
|
|
685
685
|
}
|
|
686
|
-
|
|
687
|
-
if (typeof
|
|
688
|
-
return
|
|
689
|
-
if (Array.isArray(
|
|
690
|
-
var
|
|
691
|
-
return
|
|
692
|
-
|
|
693
|
-
}),
|
|
686
|
+
g.stringify = function i(o, u) {
|
|
687
|
+
if (typeof o == "string")
|
|
688
|
+
return o;
|
|
689
|
+
if (Array.isArray(o)) {
|
|
690
|
+
var d = "";
|
|
691
|
+
return o.forEach(function(_) {
|
|
692
|
+
d += i(_, u);
|
|
693
|
+
}), d;
|
|
694
694
|
}
|
|
695
|
-
var
|
|
696
|
-
type:
|
|
697
|
-
content: o
|
|
695
|
+
var p = {
|
|
696
|
+
type: o.type,
|
|
697
|
+
content: i(o.content, u),
|
|
698
698
|
tag: "span",
|
|
699
|
-
classes: ["token",
|
|
699
|
+
classes: ["token", o.type],
|
|
700
700
|
attributes: {},
|
|
701
|
-
language:
|
|
702
|
-
},
|
|
703
|
-
|
|
704
|
-
var
|
|
705
|
-
for (var f in
|
|
706
|
-
|
|
707
|
-
return "<" +
|
|
701
|
+
language: u
|
|
702
|
+
}, m = o.alias;
|
|
703
|
+
m && (Array.isArray(m) ? Array.prototype.push.apply(p.classes, m) : p.classes.push(m)), l.hooks.run("wrap", p);
|
|
704
|
+
var w = "";
|
|
705
|
+
for (var f in p.attributes)
|
|
706
|
+
w += " " + f + '="' + (p.attributes[f] || "").replace(/"/g, """) + '"';
|
|
707
|
+
return "<" + p.tag + ' class="' + p.classes.join(" ") + '"' + w + ">" + p.content + "</" + p.tag + ">";
|
|
708
708
|
};
|
|
709
|
-
function
|
|
710
|
-
|
|
711
|
-
var
|
|
712
|
-
if (
|
|
713
|
-
var
|
|
714
|
-
|
|
709
|
+
function h(i, o, u, d) {
|
|
710
|
+
i.lastIndex = o;
|
|
711
|
+
var p = i.exec(u);
|
|
712
|
+
if (p && d && p[1]) {
|
|
713
|
+
var m = p[1].length;
|
|
714
|
+
p.index += m, p[0] = p[0].slice(m);
|
|
715
715
|
}
|
|
716
|
-
return
|
|
716
|
+
return p;
|
|
717
717
|
}
|
|
718
|
-
function
|
|
719
|
-
for (var
|
|
720
|
-
if (!(!
|
|
721
|
-
var f =
|
|
718
|
+
function A(i, o, u, d, p, m) {
|
|
719
|
+
for (var w in u)
|
|
720
|
+
if (!(!u.hasOwnProperty(w) || !u[w])) {
|
|
721
|
+
var f = u[w];
|
|
722
722
|
f = Array.isArray(f) ? f : [f];
|
|
723
|
-
for (var
|
|
724
|
-
if (
|
|
723
|
+
for (var _ = 0; _ < f.length; ++_) {
|
|
724
|
+
if (m && m.cause == w + "," + _)
|
|
725
725
|
return;
|
|
726
|
-
var
|
|
727
|
-
if (
|
|
728
|
-
var
|
|
729
|
-
|
|
726
|
+
var j = f[_], I = j.inside, Q = !!j.lookbehind, ie = !!j.greedy, ve = j.alias;
|
|
727
|
+
if (ie && !j.pattern.global) {
|
|
728
|
+
var ne = j.pattern.toString().match(/[imsuy]*$/)[0];
|
|
729
|
+
j.pattern = RegExp(j.pattern.source, ne + "g");
|
|
730
730
|
}
|
|
731
|
-
for (var
|
|
732
|
-
var ee =
|
|
733
|
-
if (
|
|
731
|
+
for (var oe = j.pattern || j, T = d.next, J = p; T !== o.tail && !(m && J >= m.reach); J += T.value.length, T = T.next) {
|
|
732
|
+
var ee = T.value;
|
|
733
|
+
if (o.length > i.length)
|
|
734
734
|
return;
|
|
735
|
-
if (!(ee instanceof
|
|
736
|
-
var le = 1,
|
|
737
|
-
if (
|
|
738
|
-
if (
|
|
735
|
+
if (!(ee instanceof g)) {
|
|
736
|
+
var le = 1, V;
|
|
737
|
+
if (ie) {
|
|
738
|
+
if (V = h(oe, J, i, Q), !V || V.index >= i.length)
|
|
739
739
|
break;
|
|
740
|
-
var se =
|
|
741
|
-
for (
|
|
742
|
-
|
|
743
|
-
if (
|
|
740
|
+
var se = V.index, Ze = V.index + V[0].length, W = J;
|
|
741
|
+
for (W += T.value.length; se >= W; )
|
|
742
|
+
T = T.next, W += T.value.length;
|
|
743
|
+
if (W -= T.value.length, J = W, T.value instanceof g)
|
|
744
744
|
continue;
|
|
745
|
-
for (var re =
|
|
746
|
-
le++,
|
|
747
|
-
le--, ee =
|
|
748
|
-
} else if (
|
|
745
|
+
for (var re = T; re !== o.tail && (W < Ze || typeof re.value == "string"); re = re.next)
|
|
746
|
+
le++, W += re.value.length;
|
|
747
|
+
le--, ee = i.slice(J, W), V.index -= J;
|
|
748
|
+
} else if (V = h(oe, 0, ee, Q), !V)
|
|
749
749
|
continue;
|
|
750
|
-
var se =
|
|
751
|
-
|
|
752
|
-
var ce =
|
|
753
|
-
we && (ce = P(
|
|
754
|
-
var Ye = new
|
|
755
|
-
if (
|
|
750
|
+
var se = V.index, ue = V[0], we = ee.slice(0, se), Te = ee.slice(se + ue.length), be = J + ee.length;
|
|
751
|
+
m && be > m.reach && (m.reach = be);
|
|
752
|
+
var ce = T.prev;
|
|
753
|
+
we && (ce = P(o, ce, we), J += we.length), K(o, ce, le);
|
|
754
|
+
var Ye = new g(w, I ? l.tokenize(ue, I) : ue, ve, ue);
|
|
755
|
+
if (T = P(o, ce, Ye), Te && P(o, T, Te), le > 1) {
|
|
756
756
|
var ye = {
|
|
757
|
-
cause:
|
|
757
|
+
cause: w + "," + _,
|
|
758
758
|
reach: be
|
|
759
759
|
};
|
|
760
|
-
|
|
760
|
+
A(i, o, u, T.prev, J, ye), m && ye.reach > m.reach && (m.reach = ye.reach);
|
|
761
761
|
}
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
|
-
function
|
|
768
|
-
var
|
|
769
|
-
|
|
767
|
+
function k() {
|
|
768
|
+
var i = { value: null, prev: null, next: null }, o = { value: null, prev: i, next: null };
|
|
769
|
+
i.next = o, this.head = i, this.tail = o, this.length = 0;
|
|
770
770
|
}
|
|
771
|
-
function P(
|
|
772
|
-
var
|
|
773
|
-
return
|
|
771
|
+
function P(i, o, u) {
|
|
772
|
+
var d = o.next, p = { value: u, prev: o, next: d };
|
|
773
|
+
return o.next = p, d.prev = p, i.length++, p;
|
|
774
774
|
}
|
|
775
|
-
function
|
|
776
|
-
for (var
|
|
777
|
-
|
|
778
|
-
|
|
775
|
+
function K(i, o, u) {
|
|
776
|
+
for (var d = o.next, p = 0; p < u && d !== i.tail; p++)
|
|
777
|
+
d = d.next;
|
|
778
|
+
o.next = d, d.prev = o, i.length -= p;
|
|
779
779
|
}
|
|
780
|
-
function
|
|
781
|
-
for (var
|
|
782
|
-
|
|
783
|
-
return
|
|
780
|
+
function x(i) {
|
|
781
|
+
for (var o = [], u = i.head.next; u !== i.tail; )
|
|
782
|
+
o.push(u.value), u = u.next;
|
|
783
|
+
return o;
|
|
784
784
|
}
|
|
785
|
-
if (!
|
|
786
|
-
return
|
|
787
|
-
var
|
|
788
|
-
|
|
785
|
+
if (!a.document)
|
|
786
|
+
return a.addEventListener && (l.disableWorkerMessageHandler || a.addEventListener("message", function(i) {
|
|
787
|
+
var o = JSON.parse(i.data), u = o.language, d = o.code, p = o.immediateClose;
|
|
788
|
+
a.postMessage(l.highlight(d, l.languages[u], u)), p && a.close();
|
|
789
789
|
}, !1)), l;
|
|
790
|
-
var
|
|
791
|
-
|
|
792
|
-
function
|
|
790
|
+
var b = l.util.currentScript();
|
|
791
|
+
b && (l.filename = b.src, b.hasAttribute("data-manual") && (l.manual = !0));
|
|
792
|
+
function S() {
|
|
793
793
|
l.manual || l.highlightAll();
|
|
794
794
|
}
|
|
795
795
|
if (!l.manual) {
|
|
796
|
-
var
|
|
797
|
-
|
|
796
|
+
var D = document.readyState;
|
|
797
|
+
D === "loading" || D === "interactive" && b && b.defer ? document.addEventListener("DOMContentLoaded", S) : window.requestAnimationFrame ? window.requestAnimationFrame(S) : window.setTimeout(S, 16);
|
|
798
798
|
}
|
|
799
799
|
return l;
|
|
800
800
|
}(n);
|
|
@@ -875,8 +875,8 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
875
875
|
},
|
|
876
876
|
/&#x?[\da-f]{1,8};/i
|
|
877
877
|
]
|
|
878
|
-
}, t.languages.markup.tag.inside["attr-value"].inside.entity = t.languages.markup.entity, t.languages.markup.doctype.inside["internal-subset"].inside = t.languages.markup, t.hooks.add("wrap", function(
|
|
879
|
-
|
|
878
|
+
}, t.languages.markup.tag.inside["attr-value"].inside.entity = t.languages.markup.entity, t.languages.markup.doctype.inside["internal-subset"].inside = t.languages.markup, t.hooks.add("wrap", function(a) {
|
|
879
|
+
a.type === "entity" && (a.attributes.title = a.content.replace(/&/, "&"));
|
|
880
880
|
}), Object.defineProperty(t.languages.markup.tag, "addInlined", {
|
|
881
881
|
/**
|
|
882
882
|
* Adds an inlined language to markup.
|
|
@@ -889,31 +889,31 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
889
889
|
* @example
|
|
890
890
|
* addInlined('style', 'css');
|
|
891
891
|
*/
|
|
892
|
-
value: function(
|
|
893
|
-
var
|
|
894
|
-
|
|
892
|
+
value: function(a, r) {
|
|
893
|
+
var c = {};
|
|
894
|
+
c["language-" + r] = {
|
|
895
895
|
pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
|
|
896
896
|
lookbehind: !0,
|
|
897
|
-
inside: t.languages[
|
|
898
|
-
},
|
|
899
|
-
var
|
|
897
|
+
inside: t.languages[r]
|
|
898
|
+
}, c.cdata = /^<!\[CDATA\[|\]\]>$/i;
|
|
899
|
+
var s = {
|
|
900
900
|
"included-cdata": {
|
|
901
901
|
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
902
|
-
inside:
|
|
902
|
+
inside: c
|
|
903
903
|
}
|
|
904
904
|
};
|
|
905
|
-
|
|
905
|
+
s["language-" + r] = {
|
|
906
906
|
pattern: /[\s\S]+/,
|
|
907
|
-
inside: t.languages[
|
|
907
|
+
inside: t.languages[r]
|
|
908
908
|
};
|
|
909
909
|
var l = {};
|
|
910
|
-
l[
|
|
910
|
+
l[a] = {
|
|
911
911
|
pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
|
|
912
|
-
return
|
|
912
|
+
return a;
|
|
913
913
|
}), "i"),
|
|
914
914
|
lookbehind: !0,
|
|
915
915
|
greedy: !0,
|
|
916
|
-
inside:
|
|
916
|
+
inside: s
|
|
917
917
|
}, t.languages.insertBefore("markup", "cdata", l);
|
|
918
918
|
}
|
|
919
919
|
}), Object.defineProperty(t.languages.markup.tag, "addAttribute", {
|
|
@@ -928,10 +928,10 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
928
928
|
* @example
|
|
929
929
|
* addAttribute('style', 'css');
|
|
930
930
|
*/
|
|
931
|
-
value: function(
|
|
931
|
+
value: function(a, r) {
|
|
932
932
|
t.languages.markup.tag.inside["special-attr"].push({
|
|
933
933
|
pattern: RegExp(
|
|
934
|
-
/(^|["'\s])/.source + "(?:" +
|
|
934
|
+
/(^|["'\s])/.source + "(?:" + a + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
|
|
935
935
|
"i"
|
|
936
936
|
),
|
|
937
937
|
lookbehind: !0,
|
|
@@ -943,8 +943,8 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
943
943
|
value: {
|
|
944
944
|
pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
|
|
945
945
|
lookbehind: !0,
|
|
946
|
-
alias: [
|
|
947
|
-
inside: t.languages[
|
|
946
|
+
alias: [r, "language-" + r],
|
|
947
|
+
inside: t.languages[r]
|
|
948
948
|
},
|
|
949
949
|
punctuation: [
|
|
950
950
|
{
|
|
@@ -958,12 +958,12 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
958
958
|
}
|
|
959
959
|
});
|
|
960
960
|
}
|
|
961
|
-
}), t.languages.html = t.languages.markup, t.languages.mathml = t.languages.markup, t.languages.svg = t.languages.markup, t.languages.xml = t.languages.extend("markup", {}), t.languages.ssml = t.languages.xml, t.languages.atom = t.languages.xml, t.languages.rss = t.languages.xml, function(
|
|
962
|
-
var
|
|
963
|
-
|
|
961
|
+
}), t.languages.html = t.languages.markup, t.languages.mathml = t.languages.markup, t.languages.svg = t.languages.markup, t.languages.xml = t.languages.extend("markup", {}), t.languages.ssml = t.languages.xml, t.languages.atom = t.languages.xml, t.languages.rss = t.languages.xml, function(a) {
|
|
962
|
+
var r = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
963
|
+
a.languages.css = {
|
|
964
964
|
comment: /\/\*[\s\S]*?\*\//,
|
|
965
965
|
atrule: {
|
|
966
|
-
pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" +
|
|
966
|
+
pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + r.source + ")*?" + /(?:;|(?=\s*\{))/.source),
|
|
967
967
|
inside: {
|
|
968
968
|
rule: /^@[\w-]+/,
|
|
969
969
|
"selector-function-argument": {
|
|
@@ -980,23 +980,23 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
980
980
|
},
|
|
981
981
|
url: {
|
|
982
982
|
// https://drafts.csswg.org/css-values-3/#urls
|
|
983
|
-
pattern: RegExp("\\burl\\((?:" +
|
|
983
|
+
pattern: RegExp("\\burl\\((?:" + r.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
|
|
984
984
|
greedy: !0,
|
|
985
985
|
inside: {
|
|
986
986
|
function: /^url/i,
|
|
987
987
|
punctuation: /^\(|\)$/,
|
|
988
988
|
string: {
|
|
989
|
-
pattern: RegExp("^" +
|
|
989
|
+
pattern: RegExp("^" + r.source + "$"),
|
|
990
990
|
alias: "url"
|
|
991
991
|
}
|
|
992
992
|
}
|
|
993
993
|
},
|
|
994
994
|
selector: {
|
|
995
|
-
pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` +
|
|
995
|
+
pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + r.source + ")*(?=\\s*\\{)"),
|
|
996
996
|
lookbehind: !0
|
|
997
997
|
},
|
|
998
998
|
string: {
|
|
999
|
-
pattern:
|
|
999
|
+
pattern: r,
|
|
1000
1000
|
greedy: !0
|
|
1001
1001
|
},
|
|
1002
1002
|
property: {
|
|
@@ -1009,9 +1009,9 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
1009
1009
|
lookbehind: !0
|
|
1010
1010
|
},
|
|
1011
1011
|
punctuation: /[(){};:,]/
|
|
1012
|
-
},
|
|
1013
|
-
var
|
|
1014
|
-
|
|
1012
|
+
}, a.languages.css.atrule.inside.rest = a.languages.css;
|
|
1013
|
+
var c = a.languages.markup;
|
|
1014
|
+
c && (c.tag.addInlined("style", "css"), c.tag.addAttribute("style", "css"));
|
|
1015
1015
|
}(t), t.languages.clike = {
|
|
1016
1016
|
comment: [
|
|
1017
1017
|
{
|
|
@@ -1176,9 +1176,9 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
1176
1176
|
if (typeof t > "u" || typeof document > "u")
|
|
1177
1177
|
return;
|
|
1178
1178
|
Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
|
|
1179
|
-
var
|
|
1180
|
-
return "✖ Error " +
|
|
1181
|
-
},
|
|
1179
|
+
var a = "Loading…", r = function(b, S) {
|
|
1180
|
+
return "✖ Error " + b + " while fetching file: " + S;
|
|
1181
|
+
}, c = "✖ Error: File does not exist or is empty", s = {
|
|
1182
1182
|
js: "javascript",
|
|
1183
1183
|
py: "python",
|
|
1184
1184
|
rb: "ruby",
|
|
@@ -1188,52 +1188,52 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
1188
1188
|
bat: "batch",
|
|
1189
1189
|
h: "c",
|
|
1190
1190
|
tex: "latex"
|
|
1191
|
-
}, l = "data-src-status",
|
|
1192
|
-
function P(
|
|
1193
|
-
var
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
},
|
|
1191
|
+
}, l = "data-src-status", g = "loading", h = "loaded", A = "failed", k = "pre[data-src]:not([" + l + '="' + h + '"]):not([' + l + '="' + g + '"])';
|
|
1192
|
+
function P(b, S, D) {
|
|
1193
|
+
var i = new XMLHttpRequest();
|
|
1194
|
+
i.open("GET", b, !0), i.onreadystatechange = function() {
|
|
1195
|
+
i.readyState == 4 && (i.status < 400 && i.responseText ? S(i.responseText) : i.status >= 400 ? D(r(i.status, i.statusText)) : D(c));
|
|
1196
|
+
}, i.send(null);
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1199
|
-
var
|
|
1200
|
-
if (
|
|
1201
|
-
var
|
|
1202
|
-
return
|
|
1198
|
+
function K(b) {
|
|
1199
|
+
var S = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(b || "");
|
|
1200
|
+
if (S) {
|
|
1201
|
+
var D = Number(S[1]), i = S[2], o = S[3];
|
|
1202
|
+
return i ? o ? [D, Number(o)] : [D, void 0] : [D, D];
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
|
-
t.hooks.add("before-highlightall", function(
|
|
1206
|
-
|
|
1207
|
-
}), t.hooks.add("before-sanity-check", function(
|
|
1208
|
-
var
|
|
1205
|
+
t.hooks.add("before-highlightall", function(b) {
|
|
1206
|
+
b.selector += ", " + k;
|
|
1207
|
+
}), t.hooks.add("before-sanity-check", function(b) {
|
|
1208
|
+
var S = (
|
|
1209
1209
|
/** @type {HTMLPreElement} */
|
|
1210
|
-
|
|
1210
|
+
b.element
|
|
1211
1211
|
);
|
|
1212
|
-
if (
|
|
1213
|
-
|
|
1214
|
-
var
|
|
1215
|
-
|
|
1216
|
-
var
|
|
1217
|
-
if (
|
|
1218
|
-
var
|
|
1219
|
-
|
|
1212
|
+
if (S.matches(k)) {
|
|
1213
|
+
b.code = "", S.setAttribute(l, g);
|
|
1214
|
+
var D = S.appendChild(document.createElement("CODE"));
|
|
1215
|
+
D.textContent = a;
|
|
1216
|
+
var i = S.getAttribute("data-src"), o = b.language;
|
|
1217
|
+
if (o === "none") {
|
|
1218
|
+
var u = (/\.(\w+)$/.exec(i) || [, "none"])[1];
|
|
1219
|
+
o = s[u] || u;
|
|
1220
1220
|
}
|
|
1221
|
-
t.util.setLanguage(
|
|
1222
|
-
var
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
function(
|
|
1226
|
-
|
|
1227
|
-
var
|
|
1228
|
-
if (
|
|
1229
|
-
var
|
|
1230
|
-
f < 0 && (f +=
|
|
1231
|
-
`),
|
|
1221
|
+
t.util.setLanguage(D, o), t.util.setLanguage(S, o);
|
|
1222
|
+
var d = t.plugins.autoloader;
|
|
1223
|
+
d && d.loadLanguages(o), P(
|
|
1224
|
+
i,
|
|
1225
|
+
function(p) {
|
|
1226
|
+
S.setAttribute(l, h);
|
|
1227
|
+
var m = K(S.getAttribute("data-range"));
|
|
1228
|
+
if (m) {
|
|
1229
|
+
var w = p.split(/\r\n?|\n/g), f = m[0], _ = m[1] == null ? w.length : m[1];
|
|
1230
|
+
f < 0 && (f += w.length), f = Math.max(0, Math.min(f - 1, w.length)), _ < 0 && (_ += w.length), _ = Math.max(0, Math.min(_, w.length)), p = w.slice(f, _).join(`
|
|
1231
|
+
`), S.hasAttribute("data-start") || S.setAttribute("data-start", String(f + 1));
|
|
1232
1232
|
}
|
|
1233
|
-
|
|
1233
|
+
D.textContent = p, t.highlightElement(D);
|
|
1234
1234
|
},
|
|
1235
|
-
function(
|
|
1236
|
-
|
|
1235
|
+
function(p) {
|
|
1236
|
+
S.setAttribute(l, A), D.textContent = p;
|
|
1237
1237
|
}
|
|
1238
1238
|
);
|
|
1239
1239
|
}
|
|
@@ -1245,19 +1245,19 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
1245
1245
|
*
|
|
1246
1246
|
* @param {ParentNode} [container=document]
|
|
1247
1247
|
*/
|
|
1248
|
-
highlight: function(
|
|
1249
|
-
for (var
|
|
1250
|
-
t.highlightElement(
|
|
1248
|
+
highlight: function(b) {
|
|
1249
|
+
for (var S = (b || document).querySelectorAll(k), D = 0, i; i = S[D++]; )
|
|
1250
|
+
t.highlightElement(i);
|
|
1251
1251
|
}
|
|
1252
1252
|
};
|
|
1253
|
-
var
|
|
1253
|
+
var x = !1;
|
|
1254
1254
|
t.fileHighlight = function() {
|
|
1255
|
-
|
|
1255
|
+
x || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), x = !0), t.plugins.fileHighlight.highlight.apply(this, arguments);
|
|
1256
1256
|
};
|
|
1257
1257
|
}();
|
|
1258
1258
|
})(ze);
|
|
1259
1259
|
var wt = ze.exports;
|
|
1260
|
-
const de = /* @__PURE__ */ vt(wt), bt = /* @__PURE__ */
|
|
1260
|
+
const de = /* @__PURE__ */ vt(wt), bt = /* @__PURE__ */ G({
|
|
1261
1261
|
__name: "CodeBlock",
|
|
1262
1262
|
props: {
|
|
1263
1263
|
codeBlockIndex: {
|
|
@@ -1278,47 +1278,46 @@ const de = /* @__PURE__ */ vt(wt), bt = /* @__PURE__ */ $({
|
|
|
1278
1278
|
}
|
|
1279
1279
|
},
|
|
1280
1280
|
setup(e) {
|
|
1281
|
-
const n = e;
|
|
1282
1281
|
de.manual = !0;
|
|
1283
|
-
const t =
|
|
1284
|
-
const
|
|
1285
|
-
return [...
|
|
1282
|
+
const n = e, t = U(!1), a = Object.keys(Re.languages).reduce((g, h) => {
|
|
1283
|
+
const A = Re.languages[h].alias || [];
|
|
1284
|
+
return [...g, h, ...Array.isArray(A) ? A : [A]];
|
|
1286
1285
|
}, []).sort();
|
|
1287
|
-
function
|
|
1288
|
-
t.value = !0, de.languages[
|
|
1286
|
+
function r(g) {
|
|
1287
|
+
t.value = !0, de.languages[g.language] || console.warn(`Prism: the language “${g.language}” isn’t enabled.`), g.preElement.classList.contains(`language-${g.language}`) || g.preElement.classList.add(`language-${g.language}`), g.codeElement.innerHTML = c(g.code), de.highlightElement(g.codeElement), t.value = !1;
|
|
1289
1288
|
}
|
|
1290
|
-
const
|
|
1291
|
-
var
|
|
1292
|
-
const
|
|
1293
|
-
return
|
|
1294
|
-
`) && !n.isSingleLine ?
|
|
1289
|
+
const c = (g) => g.replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'"), s = L(() => `document-code-block-${n.codeBlockIndex}`), l = L(() => {
|
|
1290
|
+
var g, h;
|
|
1291
|
+
const A = ((h = (g = n.lines) == null ? void 0 : g.flatMap((k) => k.text)) == null ? void 0 : h.join("")) || "";
|
|
1292
|
+
return A.endsWith(`
|
|
1293
|
+
`) && !n.isSingleLine ? A.slice(0, -1) : A;
|
|
1295
1294
|
});
|
|
1296
|
-
return ge(() => n.lang, async (
|
|
1297
|
-
if (
|
|
1295
|
+
return ge(() => n.lang, async (g) => {
|
|
1296
|
+
if (a.includes(g))
|
|
1298
1297
|
try {
|
|
1299
1298
|
await import(
|
|
1300
1299
|
/* @vite-ignore */
|
|
1301
|
-
`../../../node_modules/prismjs/components/prism-${
|
|
1300
|
+
`../../../node_modules/prismjs/components/prism-${g}.min.js`
|
|
1302
1301
|
);
|
|
1303
1302
|
} catch {
|
|
1304
|
-
console.warn(`Prism does not have a language file for '${
|
|
1303
|
+
console.warn(`Prism does not have a language file for '${g}'`);
|
|
1305
1304
|
}
|
|
1306
1305
|
de.highlightAll();
|
|
1307
|
-
}, { immediate: !0 }), (
|
|
1308
|
-
const
|
|
1309
|
-
return
|
|
1310
|
-
id:
|
|
1306
|
+
}, { immediate: !0 }), (g, h) => {
|
|
1307
|
+
const A = $("KCodeBlock");
|
|
1308
|
+
return v(), F(A, {
|
|
1309
|
+
id: s.value,
|
|
1311
1310
|
class: "document-code-block",
|
|
1312
1311
|
code: l.value,
|
|
1313
1312
|
"is-processing": t.value,
|
|
1314
1313
|
"is-single-line": e.isSingleLine,
|
|
1315
1314
|
language: e.lang,
|
|
1316
1315
|
theme: "light",
|
|
1317
|
-
onCodeBlockRender:
|
|
1316
|
+
onCodeBlockRender: r
|
|
1318
1317
|
}, null, 8, ["id", "code", "is-processing", "is-single-line", "language"]);
|
|
1319
1318
|
};
|
|
1320
1319
|
}
|
|
1321
|
-
}), yt = /* @__PURE__ */ B(bt, [["__scopeId", "data-v-19aebd59"]]), kt = /* @__PURE__ */
|
|
1320
|
+
}), yt = /* @__PURE__ */ B(bt, [["__scopeId", "data-v-19aebd59"]]), kt = /* @__PURE__ */ G({
|
|
1322
1321
|
__name: "Emphasis",
|
|
1323
1322
|
props: {
|
|
1324
1323
|
level: {
|
|
@@ -1334,14 +1333,14 @@ const de = /* @__PURE__ */ vt(wt), bt = /* @__PURE__ */ $({
|
|
|
1334
1333
|
},
|
|
1335
1334
|
setup(e) {
|
|
1336
1335
|
const n = e.level === 1 ? "em" : "strong";
|
|
1337
|
-
return (t,
|
|
1338
|
-
default:
|
|
1336
|
+
return (t, a) => (v(), F(Y(y(n)), null, {
|
|
1337
|
+
default: q(() => [
|
|
1339
1338
|
z(t.$slots, "default")
|
|
1340
1339
|
]),
|
|
1341
1340
|
_: 3
|
|
1342
1341
|
}));
|
|
1343
1342
|
}
|
|
1344
|
-
}), xt = /* @__PURE__ */
|
|
1343
|
+
}), xt = /* @__PURE__ */ G({
|
|
1345
1344
|
__name: "Heading",
|
|
1346
1345
|
props: {
|
|
1347
1346
|
level: {
|
|
@@ -1360,15 +1359,15 @@ const de = /* @__PURE__ */ vt(wt), bt = /* @__PURE__ */ $({
|
|
|
1360
1359
|
}
|
|
1361
1360
|
},
|
|
1362
1361
|
setup(e) {
|
|
1363
|
-
const n = e, t = `${n.slug}`,
|
|
1364
|
-
return (
|
|
1365
|
-
default:
|
|
1366
|
-
z(
|
|
1362
|
+
const n = e, t = `${n.slug}`, a = `h${n.level}`;
|
|
1363
|
+
return (r, c) => (v(), F(Y(a), { id: t }, {
|
|
1364
|
+
default: q(() => [
|
|
1365
|
+
z(r.$slots, "default", {}, void 0, !0)
|
|
1367
1366
|
]),
|
|
1368
1367
|
_: 3
|
|
1369
1368
|
}));
|
|
1370
1369
|
}
|
|
1371
|
-
}), St = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-9ef4ad64"]]), _t = ["alt", "src", "title"], At = /* @__PURE__ */
|
|
1370
|
+
}), St = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-9ef4ad64"]]), _t = ["alt", "src", "title"], At = /* @__PURE__ */ G({
|
|
1372
1371
|
__name: "Image",
|
|
1373
1372
|
props: {
|
|
1374
1373
|
url: {
|
|
@@ -1385,7 +1384,7 @@ const de = /* @__PURE__ */ vt(wt), bt = /* @__PURE__ */ $({
|
|
|
1385
1384
|
}
|
|
1386
1385
|
},
|
|
1387
1386
|
setup(e) {
|
|
1388
|
-
return (n, t) => (
|
|
1387
|
+
return (n, t) => (v(), C("img", {
|
|
1389
1388
|
alt: e.alt,
|
|
1390
1389
|
src: e.url,
|
|
1391
1390
|
title: e.title
|
|
@@ -1393,21 +1392,21 @@ const de = /* @__PURE__ */ vt(wt), bt = /* @__PURE__ */ $({
|
|
|
1393
1392
|
}
|
|
1394
1393
|
}), Dt = /* @__PURE__ */ B(At, [["__scopeId", "data-v-13314abe"]]), qt = {};
|
|
1395
1394
|
function Ct(e, n) {
|
|
1396
|
-
return
|
|
1395
|
+
return v(), C("hr");
|
|
1397
1396
|
}
|
|
1398
1397
|
const Tt = /* @__PURE__ */ B(qt, [["render", Ct], ["__scopeId", "data-v-b6e25b56"]]), jt = {};
|
|
1399
1398
|
function Ft(e, n) {
|
|
1400
|
-
return
|
|
1399
|
+
return v(), C("s", null, [
|
|
1401
1400
|
z(e.$slots, "default")
|
|
1402
1401
|
]);
|
|
1403
1402
|
}
|
|
1404
1403
|
const Rt = /* @__PURE__ */ B(jt, [["render", Ft]]), Nt = {};
|
|
1405
1404
|
function Et(e, n) {
|
|
1406
|
-
return
|
|
1405
|
+
return v(), C("table", null, [
|
|
1407
1406
|
z(e.$slots, "default", {}, void 0, !0)
|
|
1408
1407
|
]);
|
|
1409
1408
|
}
|
|
1410
|
-
const Lt = /* @__PURE__ */ B(Nt, [["render", Et], ["__scopeId", "data-v-c2502730"]]), Pt = /* @__PURE__ */
|
|
1409
|
+
const Lt = /* @__PURE__ */ B(Nt, [["render", Et], ["__scopeId", "data-v-c2502730"]]), Pt = /* @__PURE__ */ G({
|
|
1411
1410
|
__name: "TableRow",
|
|
1412
1411
|
props: {
|
|
1413
1412
|
section: {
|
|
@@ -1418,16 +1417,16 @@ const Lt = /* @__PURE__ */ B(Nt, [["render", Et], ["__scopeId", "data-v-c2502730
|
|
|
1418
1417
|
setup(e) {
|
|
1419
1418
|
const n = e;
|
|
1420
1419
|
let t;
|
|
1421
|
-
return n.section === Z.header ? t = "thead" : n.section === Z.body ? t = "tbody" : n.section === Z.footer && (t = "tfoot"), (
|
|
1422
|
-
default:
|
|
1423
|
-
|
|
1424
|
-
z(
|
|
1420
|
+
return n.section === Z.header ? t = "thead" : n.section === Z.body ? t = "tbody" : n.section === Z.footer && (t = "tfoot"), (a, r) => (v(), F(Y(y(t)), null, {
|
|
1421
|
+
default: q(() => [
|
|
1422
|
+
N("tr", null, [
|
|
1423
|
+
z(a.$slots, "default", {}, void 0, !0)
|
|
1425
1424
|
])
|
|
1426
1425
|
]),
|
|
1427
1426
|
_: 3
|
|
1428
1427
|
}));
|
|
1429
1428
|
}
|
|
1430
|
-
}), Ne = /* @__PURE__ */ B(Pt, [["__scopeId", "data-v-90ab3ded"]]), It = /* @__PURE__ */
|
|
1429
|
+
}), Ne = /* @__PURE__ */ B(Pt, [["__scopeId", "data-v-90ab3ded"]]), It = /* @__PURE__ */ G({
|
|
1431
1430
|
__name: "TableCell",
|
|
1432
1431
|
props: {
|
|
1433
1432
|
alignment: {
|
|
@@ -1441,25 +1440,25 @@ const Lt = /* @__PURE__ */ B(Nt, [["render", Et], ["__scopeId", "data-v-c2502730
|
|
|
1441
1440
|
},
|
|
1442
1441
|
setup(e) {
|
|
1443
1442
|
var n;
|
|
1444
|
-
const t = e,
|
|
1445
|
-
let
|
|
1446
|
-
return t.alignment === pe.center ?
|
|
1447
|
-
class: _e(
|
|
1443
|
+
const t = e, a = ((n = t.parent) == null ? void 0 : n.section) === Z.header ? "th" : "td";
|
|
1444
|
+
let r;
|
|
1445
|
+
return t.alignment === pe.center ? r = "align-center" : t.alignment === pe.right && (r = "align-right"), (c, s) => (v(), F(Y(y(a)), {
|
|
1446
|
+
class: _e(y(r))
|
|
1448
1447
|
}, {
|
|
1449
|
-
default:
|
|
1450
|
-
z(
|
|
1448
|
+
default: q(() => [
|
|
1449
|
+
z(c.$slots, "default", {}, void 0, !0)
|
|
1451
1450
|
]),
|
|
1452
1451
|
_: 3
|
|
1453
1452
|
}, 8, ["class"]));
|
|
1454
1453
|
}
|
|
1455
|
-
}), $t = /* @__PURE__ */ B(It, [["__scopeId", "data-v-6fde1a24"]]), Gt = ["checked"], Ot = /* @__PURE__ */
|
|
1454
|
+
}), $t = /* @__PURE__ */ B(It, [["__scopeId", "data-v-6fde1a24"]]), Gt = ["checked"], Ot = /* @__PURE__ */ G({
|
|
1456
1455
|
__name: "TaskCheckbox",
|
|
1457
1456
|
props: {
|
|
1458
1457
|
checked: { type: Boolean }
|
|
1459
1458
|
},
|
|
1460
1459
|
setup(e) {
|
|
1461
|
-
const n =
|
|
1462
|
-
return (t,
|
|
1460
|
+
const n = U(e.checked);
|
|
1461
|
+
return (t, a) => (v(), C("input", {
|
|
1463
1462
|
"aria-label": "Display-only checkbox for task",
|
|
1464
1463
|
checked: n.value,
|
|
1465
1464
|
type: "checkbox"
|
|
@@ -1467,7 +1466,7 @@ const Lt = /* @__PURE__ */ B(Nt, [["render", Et], ["__scopeId", "data-v-c2502730
|
|
|
1467
1466
|
}
|
|
1468
1467
|
}), Mt = { key: 0 }, Bt = { key: 1 }, zt = {
|
|
1469
1468
|
inheritAttrs: !1
|
|
1470
|
-
}, Ht = /* @__PURE__ */
|
|
1469
|
+
}, Ht = /* @__PURE__ */ G({
|
|
1471
1470
|
...zt,
|
|
1472
1471
|
__name: "Text",
|
|
1473
1472
|
props: {
|
|
@@ -1485,25 +1484,25 @@ const Lt = /* @__PURE__ */ B(Nt, [["render", Et], ["__scopeId", "data-v-c2502730
|
|
|
1485
1484
|
}
|
|
1486
1485
|
},
|
|
1487
1486
|
setup(e) {
|
|
1488
|
-
return (n, t) => (
|
|
1489
|
-
|
|
1490
|
-
e.appendSpace ? (
|
|
1491
|
-
e.hardBreak ? (
|
|
1487
|
+
return (n, t) => (v(), C(et, null, [
|
|
1488
|
+
O(E(e.text), 1),
|
|
1489
|
+
e.appendSpace ? (v(), C("span", Mt, " ")) : H("", !0),
|
|
1490
|
+
e.hardBreak ? (v(), C("br", Bt)) : H("", !0)
|
|
1492
1491
|
], 64));
|
|
1493
1492
|
}
|
|
1494
1493
|
}), Kt = {};
|
|
1495
1494
|
function Vt(e, n) {
|
|
1496
|
-
return
|
|
1495
|
+
return v(), C("span", null, [
|
|
1497
1496
|
z(e.$slots, "default")
|
|
1498
1497
|
]);
|
|
1499
1498
|
}
|
|
1500
1499
|
const Ut = /* @__PURE__ */ B(Kt, [["render", Vt]]), Jt = {};
|
|
1501
1500
|
function Wt(e, n) {
|
|
1502
|
-
return
|
|
1501
|
+
return v(), C("p", null, [
|
|
1503
1502
|
z(e.$slots, "default", {}, void 0, !0)
|
|
1504
1503
|
]);
|
|
1505
1504
|
}
|
|
1506
|
-
const
|
|
1505
|
+
const Qt = /* @__PURE__ */ B(Jt, [["render", Wt], ["__scopeId", "data-v-7b54f530"]]), Xt = /* @__PURE__ */ G({
|
|
1507
1506
|
__name: "List",
|
|
1508
1507
|
props: {
|
|
1509
1508
|
isOrdered: {
|
|
@@ -1517,22 +1516,22 @@ const Xt = /* @__PURE__ */ B(Jt, [["render", Wt], ["__scopeId", "data-v-7b54f530
|
|
|
1517
1516
|
},
|
|
1518
1517
|
setup(e) {
|
|
1519
1518
|
const n = e.isOrdered ? "ol" : "ul";
|
|
1520
|
-
return (t,
|
|
1519
|
+
return (t, a) => (v(), F(Y(y(n)), {
|
|
1521
1520
|
class: _e({ "has-task-items": e.hasTaskItems })
|
|
1522
1521
|
}, {
|
|
1523
|
-
default:
|
|
1522
|
+
default: q(() => [
|
|
1524
1523
|
z(t.$slots, "default", {}, void 0, !0)
|
|
1525
1524
|
]),
|
|
1526
1525
|
_: 3
|
|
1527
1526
|
}, 8, ["class"]));
|
|
1528
1527
|
}
|
|
1529
|
-
}), Zt = /* @__PURE__ */ B(
|
|
1528
|
+
}), Zt = /* @__PURE__ */ B(Xt, [["__scopeId", "data-v-7555911f"]]), Yt = {};
|
|
1530
1529
|
function en(e, n) {
|
|
1531
|
-
return
|
|
1530
|
+
return v(), C("li", null, [
|
|
1532
1531
|
z(e.$slots, "default", {}, void 0, !0)
|
|
1533
1532
|
]);
|
|
1534
1533
|
}
|
|
1535
|
-
const tn = /* @__PURE__ */ B(Yt, [["render", en], ["__scopeId", "data-v-cf238e78"]]), nn = ["href", "title"], rn = /* @__PURE__ */
|
|
1534
|
+
const tn = /* @__PURE__ */ B(Yt, [["render", en], ["__scopeId", "data-v-cf238e78"]]), nn = ["href", "title"], rn = /* @__PURE__ */ G({
|
|
1536
1535
|
__name: "Link",
|
|
1537
1536
|
props: {
|
|
1538
1537
|
href: {
|
|
@@ -1545,7 +1544,7 @@ const tn = /* @__PURE__ */ B(Yt, [["render", en], ["__scopeId", "data-v-cf238e78
|
|
|
1545
1544
|
}
|
|
1546
1545
|
},
|
|
1547
1546
|
setup(e) {
|
|
1548
|
-
return (n, t) => (
|
|
1547
|
+
return (n, t) => (v(), C("a", {
|
|
1549
1548
|
href: e.href,
|
|
1550
1549
|
rel: "noreferrer noopener nofollow",
|
|
1551
1550
|
title: e.title
|
|
@@ -1564,7 +1563,7 @@ const tn = /* @__PURE__ */ B(Yt, [["render", en], ["__scopeId", "data-v-cf238e78
|
|
|
1564
1563
|
link: an,
|
|
1565
1564
|
list: Zt,
|
|
1566
1565
|
list_item: tn,
|
|
1567
|
-
paragraph:
|
|
1566
|
+
paragraph: Qt,
|
|
1568
1567
|
strikethrough: Rt,
|
|
1569
1568
|
table: Lt,
|
|
1570
1569
|
table_header: Ne,
|
|
@@ -1578,41 +1577,41 @@ function ln(e) {
|
|
|
1578
1577
|
Ee.indexOf(e) === -1 && (Ee.push(e), console.warn(`[DocumentViewer] Unable to render an unknown node type "${e}"`));
|
|
1579
1578
|
}
|
|
1580
1579
|
function xe(e, n) {
|
|
1581
|
-
return e.map((t,
|
|
1582
|
-
var
|
|
1580
|
+
return e.map((t, a) => {
|
|
1581
|
+
var r;
|
|
1583
1582
|
if (!t)
|
|
1584
1583
|
return null;
|
|
1585
1584
|
const {
|
|
1586
|
-
type:
|
|
1587
|
-
children:
|
|
1585
|
+
type: c,
|
|
1586
|
+
children: s,
|
|
1588
1587
|
...l
|
|
1589
|
-
} = t,
|
|
1590
|
-
if (!
|
|
1591
|
-
return ln(
|
|
1588
|
+
} = t, g = on[t.type];
|
|
1589
|
+
if (!g)
|
|
1590
|
+
return ln(c), null;
|
|
1592
1591
|
if (lt(t) && (t.section = Z.header), ct(t)) {
|
|
1593
|
-
const
|
|
1594
|
-
var
|
|
1595
|
-
return (
|
|
1596
|
-
var
|
|
1597
|
-
return (
|
|
1592
|
+
const h = (r = t.children) == null ? void 0 : r.some((A) => {
|
|
1593
|
+
var k;
|
|
1594
|
+
return (k = A.children) == null ? void 0 : k.some((P) => {
|
|
1595
|
+
var K;
|
|
1596
|
+
return (K = P.children) == null ? void 0 : K.some((x) => x.type === "task_checkbox");
|
|
1598
1597
|
});
|
|
1599
1598
|
});
|
|
1600
|
-
return
|
|
1601
|
-
hasTaskItems:
|
|
1599
|
+
return R(g, ke({
|
|
1600
|
+
hasTaskItems: h
|
|
1602
1601
|
}, l, {
|
|
1603
1602
|
parent: n
|
|
1604
1603
|
}), {
|
|
1605
|
-
default: () =>
|
|
1604
|
+
default: () => s && xe(s, t)
|
|
1606
1605
|
});
|
|
1607
1606
|
}
|
|
1608
|
-
return (t == null ? void 0 : t.type) === "code_block" ?
|
|
1609
|
-
lines:
|
|
1610
|
-
isSingleLine: (
|
|
1611
|
-
codeBlockIndex:
|
|
1612
|
-
}), null) :
|
|
1607
|
+
return (t == null ? void 0 : t.type) === "code_block" ? R(g, ke(l, {
|
|
1608
|
+
lines: s,
|
|
1609
|
+
isSingleLine: (s == null ? void 0 : s.length) && s.length === 1,
|
|
1610
|
+
codeBlockIndex: a
|
|
1611
|
+
}), null) : R(g, ke(l, {
|
|
1613
1612
|
parent: n
|
|
1614
1613
|
}), {
|
|
1615
|
-
default: () =>
|
|
1614
|
+
default: () => s && xe(s, t)
|
|
1616
1615
|
});
|
|
1617
1616
|
});
|
|
1618
1617
|
}
|
|
@@ -1632,9 +1631,9 @@ function dn() {
|
|
|
1632
1631
|
return {
|
|
1633
1632
|
hasRequiredProps: (e, n) => {
|
|
1634
1633
|
let t = !0;
|
|
1635
|
-
return e.forEach((
|
|
1636
|
-
n.forEach((
|
|
1637
|
-
r
|
|
1634
|
+
return e.forEach((a) => {
|
|
1635
|
+
n.forEach((r) => {
|
|
1636
|
+
a[r] || (t = !1);
|
|
1638
1637
|
});
|
|
1639
1638
|
}), t;
|
|
1640
1639
|
}
|
|
@@ -1651,16 +1650,16 @@ function He(e, n = /* @__PURE__ */ new Map()) {
|
|
|
1651
1650
|
if (!e)
|
|
1652
1651
|
return e;
|
|
1653
1652
|
const t = n || /* @__PURE__ */ new Map();
|
|
1654
|
-
return e.map((
|
|
1653
|
+
return e.map((a) => ut(a) ? gn(a, n) : (a.children && (a.children = He(a.children, t)), a));
|
|
1655
1654
|
}
|
|
1656
1655
|
function gn(e, n, t = "doc-heading-") {
|
|
1657
|
-
var
|
|
1658
|
-
const
|
|
1659
|
-
n.set(
|
|
1660
|
-
const
|
|
1656
|
+
var a;
|
|
1657
|
+
const r = (a = e.children) == null ? void 0 : a[0], c = `level-${e.level}`, s = st(r) && r.text || c, l = n.get(s);
|
|
1658
|
+
n.set(s, (l || 0) + 1);
|
|
1659
|
+
const g = l && l > 1 ? `-${l}` : "", h = t + mn(s, g);
|
|
1661
1660
|
return {
|
|
1662
1661
|
...e,
|
|
1663
|
-
slug:
|
|
1662
|
+
slug: h
|
|
1664
1663
|
};
|
|
1665
1664
|
}
|
|
1666
1665
|
const fn = {
|
|
@@ -1669,7 +1668,7 @@ const fn = {
|
|
|
1669
1668
|
}, hn = {
|
|
1670
1669
|
key: 1,
|
|
1671
1670
|
"data-testid": "document-viewer-error"
|
|
1672
|
-
}, vn = /* @__PURE__ */
|
|
1671
|
+
}, vn = /* @__PURE__ */ G({
|
|
1673
1672
|
__name: "DocumentViewer",
|
|
1674
1673
|
props: {
|
|
1675
1674
|
document: {
|
|
@@ -1679,12 +1678,12 @@ const fn = {
|
|
|
1679
1678
|
},
|
|
1680
1679
|
setup(e) {
|
|
1681
1680
|
var n;
|
|
1682
|
-
const t = e, { i18n:
|
|
1683
|
-
var
|
|
1684
|
-
return (
|
|
1681
|
+
const t = e, { i18n: a } = pn.useI18n(), r = (g) => !g || Object.keys(g).length === 0 && g.constructor === Object, c = L(() => !r(t.document)), s = He((n = t.document) == null ? void 0 : n.children), l = () => {
|
|
1682
|
+
var g;
|
|
1683
|
+
return (g = t.document) != null && g.children ? xe(s) : null;
|
|
1685
1684
|
};
|
|
1686
|
-
return (
|
|
1687
|
-
|
|
1685
|
+
return (g, h) => (v(), C("div", fn, [
|
|
1686
|
+
c.value ? (v(), F(l, { key: 0 })) : (v(), C("div", hn, E(y(a).t("documentViewer.error")), 1))
|
|
1688
1687
|
]));
|
|
1689
1688
|
}
|
|
1690
1689
|
}), wn = /* @__PURE__ */ B(vn, [["__scopeId", "data-v-1ab71c85"]]);
|
|
@@ -1706,15 +1705,15 @@ function kn(e) {
|
|
|
1706
1705
|
return Array.isArray(e) ? e : Ke(e) ? [] : [e];
|
|
1707
1706
|
}
|
|
1708
1707
|
function xn(e, n) {
|
|
1709
|
-
var t,
|
|
1708
|
+
var t, a, r, c;
|
|
1710
1709
|
if (n)
|
|
1711
|
-
for (
|
|
1712
|
-
|
|
1710
|
+
for (c = Object.keys(n), t = 0, a = c.length; t < a; t += 1)
|
|
1711
|
+
r = c[t], e[r] = n[r];
|
|
1713
1712
|
return e;
|
|
1714
1713
|
}
|
|
1715
1714
|
function Sn(e, n) {
|
|
1716
|
-
var t = "",
|
|
1717
|
-
for (
|
|
1715
|
+
var t = "", a;
|
|
1716
|
+
for (a = 0; a < n; a += 1)
|
|
1718
1717
|
t += e;
|
|
1719
1718
|
return t;
|
|
1720
1719
|
}
|
|
@@ -1730,10 +1729,10 @@ var An = Ke, Dn = yn, qn = kn, Cn = Sn, Tn = _n, jn = xn, De = {
|
|
|
1730
1729
|
extend: jn
|
|
1731
1730
|
};
|
|
1732
1731
|
function Ve(e, n) {
|
|
1733
|
-
var t = "",
|
|
1732
|
+
var t = "", a = e.reason || "(unknown reason)";
|
|
1734
1733
|
return e.mark ? (e.mark.name && (t += 'in "' + e.mark.name + '" '), t += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !n && e.mark.snippet && (t += `
|
|
1735
1734
|
|
|
1736
|
-
` + e.mark.snippet),
|
|
1735
|
+
` + e.mark.snippet), a + " " + t) : a;
|
|
1737
1736
|
}
|
|
1738
1737
|
function ae(e, n) {
|
|
1739
1738
|
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = Ve(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
@@ -1743,7 +1742,7 @@ ae.prototype.constructor = ae;
|
|
|
1743
1742
|
ae.prototype.toString = function(e) {
|
|
1744
1743
|
return this.name + ": " + Ve(this, e);
|
|
1745
1744
|
};
|
|
1746
|
-
var
|
|
1745
|
+
var X = ae, Fn = [
|
|
1747
1746
|
"kind",
|
|
1748
1747
|
"multi",
|
|
1749
1748
|
"resolve",
|
|
@@ -1762,30 +1761,30 @@ var Q = ae, Fn = [
|
|
|
1762
1761
|
function Nn(e) {
|
|
1763
1762
|
var n = {};
|
|
1764
1763
|
return e !== null && Object.keys(e).forEach(function(t) {
|
|
1765
|
-
e[t].forEach(function(
|
|
1766
|
-
n[String(
|
|
1764
|
+
e[t].forEach(function(a) {
|
|
1765
|
+
n[String(a)] = t;
|
|
1767
1766
|
});
|
|
1768
1767
|
}), n;
|
|
1769
1768
|
}
|
|
1770
1769
|
function En(e, n) {
|
|
1771
1770
|
if (n = n || {}, Object.keys(n).forEach(function(t) {
|
|
1772
1771
|
if (Fn.indexOf(t) === -1)
|
|
1773
|
-
throw new
|
|
1772
|
+
throw new X('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
1774
1773
|
}), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
|
|
1775
1774
|
return !0;
|
|
1776
1775
|
}, this.construct = n.construct || function(t) {
|
|
1777
1776
|
return t;
|
|
1778
1777
|
}, 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 = Nn(n.styleAliases || null), Rn.indexOf(this.kind) === -1)
|
|
1779
|
-
throw new
|
|
1778
|
+
throw new X('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1780
1779
|
}
|
|
1781
1780
|
var M = En;
|
|
1782
1781
|
function Pe(e, n) {
|
|
1783
1782
|
var t = [];
|
|
1784
|
-
return e[n].forEach(function(
|
|
1785
|
-
var
|
|
1786
|
-
t.forEach(function(
|
|
1787
|
-
|
|
1788
|
-
}), t[
|
|
1783
|
+
return e[n].forEach(function(a) {
|
|
1784
|
+
var r = t.length;
|
|
1785
|
+
t.forEach(function(c, s) {
|
|
1786
|
+
c.tag === a.tag && c.kind === a.kind && c.multi === a.multi && (r = s);
|
|
1787
|
+
}), t[r] = a;
|
|
1789
1788
|
}), t;
|
|
1790
1789
|
}
|
|
1791
1790
|
function Ln() {
|
|
@@ -1801,11 +1800,11 @@ function Ln() {
|
|
|
1801
1800
|
fallback: []
|
|
1802
1801
|
}
|
|
1803
1802
|
}, n, t;
|
|
1804
|
-
function r
|
|
1805
|
-
|
|
1803
|
+
function a(r) {
|
|
1804
|
+
r.multi ? (e.multi[r.kind].push(r), e.multi.fallback.push(r)) : e[r.kind][r.tag] = e.fallback[r.tag] = r;
|
|
1806
1805
|
}
|
|
1807
1806
|
for (n = 0, t = arguments.length; n < t; n += 1)
|
|
1808
|
-
arguments[n].forEach(
|
|
1807
|
+
arguments[n].forEach(a);
|
|
1809
1808
|
return e;
|
|
1810
1809
|
}
|
|
1811
1810
|
function Se(e) {
|
|
@@ -1820,20 +1819,20 @@ Se.prototype.extend = function(e) {
|
|
|
1820
1819
|
else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit)))
|
|
1821
1820
|
e.implicit && (n = n.concat(e.implicit)), e.explicit && (t = t.concat(e.explicit));
|
|
1822
1821
|
else
|
|
1823
|
-
throw new
|
|
1824
|
-
n.forEach(function(
|
|
1825
|
-
if (!(
|
|
1826
|
-
throw new
|
|
1827
|
-
if (
|
|
1828
|
-
throw new
|
|
1829
|
-
if (
|
|
1830
|
-
throw new
|
|
1831
|
-
}), t.forEach(function(
|
|
1832
|
-
if (!(
|
|
1833
|
-
throw new
|
|
1822
|
+
throw new X("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
1823
|
+
n.forEach(function(r) {
|
|
1824
|
+
if (!(r instanceof M))
|
|
1825
|
+
throw new X("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1826
|
+
if (r.loadKind && r.loadKind !== "scalar")
|
|
1827
|
+
throw new X("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
1828
|
+
if (r.multi)
|
|
1829
|
+
throw new X("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
1830
|
+
}), t.forEach(function(r) {
|
|
1831
|
+
if (!(r instanceof M))
|
|
1832
|
+
throw new X("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1834
1833
|
});
|
|
1835
|
-
var
|
|
1836
|
-
return
|
|
1834
|
+
var a = Object.create(Se.prototype);
|
|
1835
|
+
return a.implicit = (this.implicit || []).concat(n), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = Pe(a, "implicit"), a.compiledExplicit = Pe(a, "explicit"), a.compiledTypeMap = Ln(a.compiledImplicit, a.compiledExplicit), a;
|
|
1837
1836
|
};
|
|
1838
1837
|
var Pn = Se, In = new M("tag:yaml.org,2002:str", {
|
|
1839
1838
|
kind: "scalar",
|
|
@@ -1926,64 +1925,64 @@ var Jn = new M("tag:yaml.org,2002:bool", {
|
|
|
1926
1925
|
function Wn(e) {
|
|
1927
1926
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1928
1927
|
}
|
|
1929
|
-
function
|
|
1928
|
+
function Qn(e) {
|
|
1930
1929
|
return 48 <= e && e <= 55;
|
|
1931
1930
|
}
|
|
1932
|
-
function
|
|
1931
|
+
function Xn(e) {
|
|
1933
1932
|
return 48 <= e && e <= 57;
|
|
1934
1933
|
}
|
|
1935
1934
|
function Zn(e) {
|
|
1936
1935
|
if (e === null)
|
|
1937
1936
|
return !1;
|
|
1938
|
-
var n = e.length, t = 0,
|
|
1937
|
+
var n = e.length, t = 0, a = !1, r;
|
|
1939
1938
|
if (!n)
|
|
1940
1939
|
return !1;
|
|
1941
|
-
if (
|
|
1940
|
+
if (r = e[t], (r === "-" || r === "+") && (r = e[++t]), r === "0") {
|
|
1942
1941
|
if (t + 1 === n)
|
|
1943
1942
|
return !0;
|
|
1944
|
-
if (
|
|
1943
|
+
if (r = e[++t], r === "b") {
|
|
1945
1944
|
for (t++; t < n; t++)
|
|
1946
|
-
if (
|
|
1947
|
-
if (
|
|
1945
|
+
if (r = e[t], r !== "_") {
|
|
1946
|
+
if (r !== "0" && r !== "1")
|
|
1948
1947
|
return !1;
|
|
1949
|
-
|
|
1948
|
+
a = !0;
|
|
1950
1949
|
}
|
|
1951
|
-
return
|
|
1950
|
+
return a && r !== "_";
|
|
1952
1951
|
}
|
|
1953
|
-
if (
|
|
1952
|
+
if (r === "x") {
|
|
1954
1953
|
for (t++; t < n; t++)
|
|
1955
|
-
if (
|
|
1954
|
+
if (r = e[t], r !== "_") {
|
|
1956
1955
|
if (!Wn(e.charCodeAt(t)))
|
|
1957
1956
|
return !1;
|
|
1958
|
-
|
|
1957
|
+
a = !0;
|
|
1959
1958
|
}
|
|
1960
|
-
return
|
|
1959
|
+
return a && r !== "_";
|
|
1961
1960
|
}
|
|
1962
|
-
if (
|
|
1961
|
+
if (r === "o") {
|
|
1963
1962
|
for (t++; t < n; t++)
|
|
1964
|
-
if (
|
|
1965
|
-
if (!
|
|
1963
|
+
if (r = e[t], r !== "_") {
|
|
1964
|
+
if (!Qn(e.charCodeAt(t)))
|
|
1966
1965
|
return !1;
|
|
1967
|
-
|
|
1966
|
+
a = !0;
|
|
1968
1967
|
}
|
|
1969
|
-
return
|
|
1968
|
+
return a && r !== "_";
|
|
1970
1969
|
}
|
|
1971
1970
|
}
|
|
1972
|
-
if (
|
|
1971
|
+
if (r === "_")
|
|
1973
1972
|
return !1;
|
|
1974
1973
|
for (; t < n; t++)
|
|
1975
|
-
if (
|
|
1976
|
-
if (!
|
|
1974
|
+
if (r = e[t], r !== "_") {
|
|
1975
|
+
if (!Xn(e.charCodeAt(t)))
|
|
1977
1976
|
return !1;
|
|
1978
|
-
|
|
1977
|
+
a = !0;
|
|
1979
1978
|
}
|
|
1980
|
-
return !(!
|
|
1979
|
+
return !(!a || r === "_");
|
|
1981
1980
|
}
|
|
1982
1981
|
function Yn(e) {
|
|
1983
|
-
var n = e, t = 1,
|
|
1984
|
-
if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")),
|
|
1982
|
+
var n = e, t = 1, a;
|
|
1983
|
+
if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), a = n[0], (a === "-" || a === "+") && (a === "-" && (t = -1), n = n.slice(1), a = n[0]), n === "0")
|
|
1985
1984
|
return 0;
|
|
1986
|
-
if (
|
|
1985
|
+
if (a === "0") {
|
|
1987
1986
|
if (n[1] === "b")
|
|
1988
1987
|
return t * parseInt(n.slice(2), 2);
|
|
1989
1988
|
if (n[1] === "x")
|
|
@@ -2096,17 +2095,17 @@ function dr(e) {
|
|
|
2096
2095
|
return e === null ? !1 : Ue.exec(e) !== null || Je.exec(e) !== null;
|
|
2097
2096
|
}
|
|
2098
2097
|
function pr(e) {
|
|
2099
|
-
var n, t,
|
|
2098
|
+
var n, t, a, r, c, s, l, g = 0, h = null, A, k, P;
|
|
2100
2099
|
if (n = Ue.exec(e), n === null && (n = Je.exec(e)), n === null)
|
|
2101
2100
|
throw new Error("Date resolve error");
|
|
2102
|
-
if (t = +n[1],
|
|
2103
|
-
return new Date(Date.UTC(t,
|
|
2104
|
-
if (
|
|
2105
|
-
for (
|
|
2106
|
-
|
|
2107
|
-
|
|
2101
|
+
if (t = +n[1], a = +n[2] - 1, r = +n[3], !n[4])
|
|
2102
|
+
return new Date(Date.UTC(t, a, r));
|
|
2103
|
+
if (c = +n[4], s = +n[5], l = +n[6], n[7]) {
|
|
2104
|
+
for (g = n[7].slice(0, 3); g.length < 3; )
|
|
2105
|
+
g += "0";
|
|
2106
|
+
g = +g;
|
|
2108
2107
|
}
|
|
2109
|
-
return n[9] && (
|
|
2108
|
+
return n[9] && (A = +n[10], k = +(n[11] || 0), h = (A * 60 + k) * 6e4, n[9] === "-" && (h = -h)), P = new Date(Date.UTC(t, a, r, c, s, l, g)), h && P.setTime(P.getTime() - h), P;
|
|
2110
2109
|
}
|
|
2111
2110
|
function mr(e) {
|
|
2112
2111
|
return e.toISOString();
|
|
@@ -2129,26 +2128,26 @@ var hr = new M("tag:yaml.org,2002:merge", {
|
|
|
2129
2128
|
function vr(e) {
|
|
2130
2129
|
if (e === null)
|
|
2131
2130
|
return !1;
|
|
2132
|
-
var n, t,
|
|
2133
|
-
for (t = 0; t <
|
|
2134
|
-
if (n =
|
|
2131
|
+
var n, t, a = 0, r = e.length, c = qe;
|
|
2132
|
+
for (t = 0; t < r; t++)
|
|
2133
|
+
if (n = c.indexOf(e.charAt(t)), !(n > 64)) {
|
|
2135
2134
|
if (n < 0)
|
|
2136
2135
|
return !1;
|
|
2137
|
-
|
|
2136
|
+
a += 6;
|
|
2138
2137
|
}
|
|
2139
|
-
return
|
|
2138
|
+
return a % 8 === 0;
|
|
2140
2139
|
}
|
|
2141
2140
|
function wr(e) {
|
|
2142
|
-
var n, t,
|
|
2143
|
-
for (n = 0; n <
|
|
2144
|
-
n % 4 === 0 && n && (l.push(
|
|
2145
|
-
return t =
|
|
2141
|
+
var n, t, a = e.replace(/[\r\n=]/g, ""), r = a.length, c = qe, s = 0, l = [];
|
|
2142
|
+
for (n = 0; n < r; n++)
|
|
2143
|
+
n % 4 === 0 && n && (l.push(s >> 16 & 255), l.push(s >> 8 & 255), l.push(s & 255)), s = s << 6 | c.indexOf(a.charAt(n));
|
|
2144
|
+
return t = r % 4 * 6, t === 0 ? (l.push(s >> 16 & 255), l.push(s >> 8 & 255), l.push(s & 255)) : t === 18 ? (l.push(s >> 10 & 255), l.push(s >> 2 & 255)) : t === 12 && l.push(s >> 4 & 255), new Uint8Array(l);
|
|
2146
2145
|
}
|
|
2147
2146
|
function br(e) {
|
|
2148
|
-
var n = "", t = 0,
|
|
2149
|
-
for (
|
|
2150
|
-
|
|
2151
|
-
return
|
|
2147
|
+
var n = "", t = 0, a, r, c = e.length, s = qe;
|
|
2148
|
+
for (a = 0; a < c; a++)
|
|
2149
|
+
a % 3 === 0 && a && (n += s[t >> 18 & 63], n += s[t >> 12 & 63], n += s[t >> 6 & 63], n += s[t & 63]), t = (t << 8) + e[a];
|
|
2150
|
+
return r = c % 3, r === 0 ? (n += s[t >> 18 & 63], n += s[t >> 12 & 63], n += s[t >> 6 & 63], n += s[t & 63]) : r === 2 ? (n += s[t >> 10 & 63], n += s[t >> 4 & 63], n += s[t << 2 & 63], n += s[64]) : r === 1 && (n += s[t >> 2 & 63], n += s[t << 4 & 63], n += s[64], n += s[64]), n;
|
|
2152
2151
|
}
|
|
2153
2152
|
function yr(e) {
|
|
2154
2153
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
@@ -2163,20 +2162,20 @@ var kr = new M("tag:yaml.org,2002:binary", {
|
|
|
2163
2162
|
function _r(e) {
|
|
2164
2163
|
if (e === null)
|
|
2165
2164
|
return !0;
|
|
2166
|
-
var n = [], t,
|
|
2167
|
-
for (t = 0,
|
|
2168
|
-
if (
|
|
2165
|
+
var n = [], t, a, r, c, s, l = e;
|
|
2166
|
+
for (t = 0, a = l.length; t < a; t += 1) {
|
|
2167
|
+
if (r = l[t], s = !1, Sr.call(r) !== "[object Object]")
|
|
2169
2168
|
return !1;
|
|
2170
|
-
for (
|
|
2171
|
-
if (xr.call(
|
|
2172
|
-
if (!
|
|
2173
|
-
|
|
2169
|
+
for (c in r)
|
|
2170
|
+
if (xr.call(r, c))
|
|
2171
|
+
if (!s)
|
|
2172
|
+
s = !0;
|
|
2174
2173
|
else
|
|
2175
2174
|
return !1;
|
|
2176
|
-
if (!
|
|
2175
|
+
if (!s)
|
|
2177
2176
|
return !1;
|
|
2178
|
-
if (n.indexOf(
|
|
2179
|
-
n.push(
|
|
2177
|
+
if (n.indexOf(c) === -1)
|
|
2178
|
+
n.push(c);
|
|
2180
2179
|
else
|
|
2181
2180
|
return !1;
|
|
2182
2181
|
}
|
|
@@ -2193,21 +2192,21 @@ var Dr = new M("tag:yaml.org,2002:omap", {
|
|
|
2193
2192
|
function Cr(e) {
|
|
2194
2193
|
if (e === null)
|
|
2195
2194
|
return !0;
|
|
2196
|
-
var n, t,
|
|
2197
|
-
for (
|
|
2198
|
-
if (
|
|
2195
|
+
var n, t, a, r, c, s = e;
|
|
2196
|
+
for (c = new Array(s.length), n = 0, t = s.length; n < t; n += 1) {
|
|
2197
|
+
if (a = s[n], qr.call(a) !== "[object Object]" || (r = Object.keys(a), r.length !== 1))
|
|
2199
2198
|
return !1;
|
|
2200
|
-
|
|
2199
|
+
c[n] = [r[0], a[r[0]]];
|
|
2201
2200
|
}
|
|
2202
2201
|
return !0;
|
|
2203
2202
|
}
|
|
2204
2203
|
function Tr(e) {
|
|
2205
2204
|
if (e === null)
|
|
2206
2205
|
return [];
|
|
2207
|
-
var n, t,
|
|
2208
|
-
for (
|
|
2209
|
-
|
|
2210
|
-
return
|
|
2206
|
+
var n, t, a, r, c, s = e;
|
|
2207
|
+
for (c = new Array(s.length), n = 0, t = s.length; n < t; n += 1)
|
|
2208
|
+
a = s[n], r = Object.keys(a), c[n] = [r[0], a[r[0]]];
|
|
2209
|
+
return c;
|
|
2211
2210
|
}
|
|
2212
2211
|
var jr = new M("tag:yaml.org,2002:pairs", {
|
|
2213
2212
|
kind: "sequence",
|
|
@@ -2250,7 +2249,7 @@ function Ie(e) {
|
|
|
2250
2249
|
var Lr = new Array(256), Pr = new Array(256);
|
|
2251
2250
|
for (var te = 0; te < 256; te++)
|
|
2252
2251
|
Lr[te] = Ie(te) ? 1 : 0, Pr[te] = Ie(te);
|
|
2253
|
-
const We = /* @__PURE__ */
|
|
2252
|
+
const We = /* @__PURE__ */ G({
|
|
2254
2253
|
__name: "PermissionsWrapper",
|
|
2255
2254
|
props: {
|
|
2256
2255
|
/**
|
|
@@ -2272,15 +2271,15 @@ const We = /* @__PURE__ */ $({
|
|
|
2272
2271
|
}
|
|
2273
2272
|
},
|
|
2274
2273
|
setup(e) {
|
|
2275
|
-
const n = e, t =
|
|
2274
|
+
const n = e, t = U(void 0), a = L(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
|
|
2276
2275
|
return ge(() => n.authFunction, async () => {
|
|
2277
2276
|
t.value = await n.authFunction();
|
|
2278
|
-
}, { immediate: !0 }), (
|
|
2277
|
+
}, { immediate: !0 }), (r, c) => a.value ? z(r.$slots, "default", {
|
|
2279
2278
|
key: 0,
|
|
2280
2279
|
isAllowed: t.value
|
|
2281
2280
|
}) : H("", !0);
|
|
2282
2281
|
}
|
|
2283
|
-
}), Ir = (e) => (fe("data-v-cb31890c"), e = e(), he(), e), $r = { class: "documentation-display" }, Gr = { class: "document-meta" }, Or = { class: "document-title meta-section" }, Mr = /* @__PURE__ */ Ir(() => /* @__PURE__ */
|
|
2282
|
+
}), Ir = (e) => (fe("data-v-cb31890c"), e = e(), he(), e), $r = { class: "documentation-display" }, Gr = { class: "document-meta" }, Or = { class: "document-title meta-section" }, Mr = /* @__PURE__ */ Ir(() => /* @__PURE__ */ N("span", { class: "document-title-extension" }, "md", -1)), Br = {
|
|
2284
2283
|
key: 0,
|
|
2285
2284
|
class: "document-status meta-section"
|
|
2286
2285
|
}, zr = { class: "meta-label" }, Hr = {
|
|
@@ -2290,7 +2289,7 @@ const We = /* @__PURE__ */ $({
|
|
|
2290
2289
|
key: 0,
|
|
2291
2290
|
class: "markdown-content-loading",
|
|
2292
2291
|
"data-testid": "markdown-content-loading"
|
|
2293
|
-
}, Jr = { key: 1 }, Wr = /* @__PURE__ */
|
|
2292
|
+
}, Jr = { key: 1 }, Wr = /* @__PURE__ */ G({
|
|
2294
2293
|
__name: "DocumentationDisplay",
|
|
2295
2294
|
props: {
|
|
2296
2295
|
/**
|
|
@@ -2317,101 +2316,101 @@ const We = /* @__PURE__ */ $({
|
|
|
2317
2316
|
},
|
|
2318
2317
|
emits: ["add", "edit", "toggle-published"],
|
|
2319
2318
|
setup(e, { emit: n }) {
|
|
2320
|
-
const t = e, { i18n: r } = Ae.useI18n(),
|
|
2321
|
-
var x,
|
|
2322
|
-
return ((
|
|
2323
|
-
}),
|
|
2319
|
+
const t = e, a = n, { i18n: r } = Ae.useI18n(), c = U(!0), s = L(() => {
|
|
2320
|
+
var x, b, S, D, i;
|
|
2321
|
+
return ((b = (x = t.selectedDocument) == null ? void 0 : x.document) == null ? void 0 : b.title) || ((i = (D = (S = t.selectedDocument) == null ? void 0 : S.document) == null ? void 0 : D.revision) == null ? void 0 : i.title) || "";
|
|
2322
|
+
}), l = L(() => ""), g = U(!1), h = U(r.t("documentation.common.unpublished")), A = U(null);
|
|
2324
2323
|
ge(() => t.selectedDocument, (x) => {
|
|
2325
|
-
var
|
|
2326
|
-
bn(x) || (t.hidePublishToggle ||
|
|
2324
|
+
var b;
|
|
2325
|
+
bn(x) || (t.hidePublishToggle || P((b = x.document) == null ? void 0 : b.status), x.ast && K());
|
|
2327
2326
|
}, { deep: !0 });
|
|
2328
|
-
const
|
|
2329
|
-
const x = !
|
|
2330
|
-
|
|
2331
|
-
},
|
|
2332
|
-
x === "published" ? (
|
|
2333
|
-
},
|
|
2334
|
-
|
|
2327
|
+
const k = () => {
|
|
2328
|
+
const x = !g.value;
|
|
2329
|
+
a("toggle-published", x), g.value = x, h.value = x ? r.t("documentation.common.published") : r.t("documentation.common.unpublished");
|
|
2330
|
+
}, P = (x) => {
|
|
2331
|
+
x === "published" ? (g.value = !0, h.value = r.t("documentation.common.published")) : (g.value = !1, h.value = r.t("documentation.common.unpublished"));
|
|
2332
|
+
}, K = () => {
|
|
2333
|
+
A.value = {
|
|
2335
2334
|
children: t.selectedDocument.ast,
|
|
2336
2335
|
type: "document",
|
|
2337
2336
|
version: 1
|
|
2338
|
-
},
|
|
2337
|
+
}, c.value = !1;
|
|
2339
2338
|
};
|
|
2340
|
-
return (x,
|
|
2341
|
-
const
|
|
2342
|
-
return
|
|
2343
|
-
|
|
2344
|
-
|
|
2339
|
+
return (x, b) => {
|
|
2340
|
+
const S = $("KBadge"), D = $("KInputSwitch"), i = $("KButton"), o = $("KSkeleton");
|
|
2341
|
+
return v(), C("div", $r, [
|
|
2342
|
+
N("div", Gr, [
|
|
2343
|
+
N("div", Or, [
|
|
2345
2344
|
z(x.$slots, "document-title", {}, () => [
|
|
2346
|
-
|
|
2347
|
-
|
|
2345
|
+
N("span", null, E(s.value), 1),
|
|
2346
|
+
O("."),
|
|
2348
2347
|
Mr
|
|
2349
2348
|
], !0)
|
|
2350
2349
|
]),
|
|
2351
|
-
e.hidePublishToggle ? H("", !0) : (
|
|
2352
|
-
|
|
2353
|
-
|
|
2350
|
+
e.hidePublishToggle ? H("", !0) : (v(), C("div", Br, [
|
|
2351
|
+
N("span", zr, E(y(r).t("documentation.documentation_display.status_label")), 1),
|
|
2352
|
+
g.value ? (v(), F(S, {
|
|
2354
2353
|
key: 0,
|
|
2355
2354
|
appearance: "success"
|
|
2356
2355
|
}, {
|
|
2357
|
-
default:
|
|
2358
|
-
|
|
2356
|
+
default: q(() => [
|
|
2357
|
+
O(E(y(r).t("documentation.common.published")), 1)
|
|
2359
2358
|
]),
|
|
2360
2359
|
_: 1
|
|
2361
|
-
})) : (
|
|
2360
|
+
})) : (v(), F(S, {
|
|
2362
2361
|
key: 1,
|
|
2363
2362
|
appearance: "neutral"
|
|
2364
2363
|
}, {
|
|
2365
|
-
default:
|
|
2366
|
-
|
|
2364
|
+
default: q(() => [
|
|
2365
|
+
O(E(y(r).t("documentation.common.unpublished")), 1)
|
|
2367
2366
|
]),
|
|
2368
2367
|
_: 1
|
|
2369
2368
|
}))
|
|
2370
2369
|
])),
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
default:
|
|
2375
|
-
|
|
2370
|
+
l.value ? (v(), C("div", Hr, [
|
|
2371
|
+
N("span", Kr, E(y(r).t("documentation.documentation_display.added_label")), 1),
|
|
2372
|
+
R(S, { appearance: "neutral" }, {
|
|
2373
|
+
default: q(() => [
|
|
2374
|
+
O(E(l.value), 1)
|
|
2376
2375
|
]),
|
|
2377
2376
|
_: 1
|
|
2378
2377
|
})
|
|
2379
2378
|
])) : H("", !0),
|
|
2380
|
-
|
|
2381
|
-
|
|
2379
|
+
N("div", Vr, [
|
|
2380
|
+
R(y(We), {
|
|
2382
2381
|
"auth-function": () => e.canEdit()
|
|
2383
2382
|
}, {
|
|
2384
|
-
default:
|
|
2385
|
-
!e.hidePublishToggle && !e.card ? (
|
|
2383
|
+
default: q(() => [
|
|
2384
|
+
!e.hidePublishToggle && !e.card ? (v(), F(D, {
|
|
2386
2385
|
key: 0,
|
|
2387
|
-
modelValue:
|
|
2388
|
-
"onUpdate:modelValue":
|
|
2386
|
+
modelValue: g.value,
|
|
2387
|
+
"onUpdate:modelValue": b[0] || (b[0] = (u) => g.value = u),
|
|
2389
2388
|
class: "document-publish-toggle",
|
|
2390
2389
|
"data-testid": "document-publish-toggle",
|
|
2391
|
-
label:
|
|
2390
|
+
label: h.value,
|
|
2392
2391
|
"label-before": "",
|
|
2393
|
-
onClick:
|
|
2392
|
+
onClick: k
|
|
2394
2393
|
}, null, 8, ["modelValue", "label"])) : H("", !0),
|
|
2395
|
-
|
|
2394
|
+
R(i, {
|
|
2396
2395
|
appearance: "secondary",
|
|
2397
2396
|
class: "document-edit-button",
|
|
2398
2397
|
"data-testid": "document-edit-button",
|
|
2399
2398
|
size: "small",
|
|
2400
|
-
onClick:
|
|
2399
|
+
onClick: b[1] || (b[1] = (u) => a("edit"))
|
|
2401
2400
|
}, {
|
|
2402
|
-
default:
|
|
2403
|
-
|
|
2401
|
+
default: q(() => [
|
|
2402
|
+
O(E(y(r).t("documentation.documentation_display.edit_button")), 1)
|
|
2404
2403
|
]),
|
|
2405
2404
|
_: 1
|
|
2406
2405
|
}),
|
|
2407
|
-
|
|
2406
|
+
R(i, {
|
|
2408
2407
|
appearance: "primary",
|
|
2409
2408
|
"data-testid": "add-new-page-button",
|
|
2410
2409
|
size: "small",
|
|
2411
|
-
onClick:
|
|
2410
|
+
onClick: b[2] || (b[2] = (u) => a("add"))
|
|
2412
2411
|
}, {
|
|
2413
|
-
default:
|
|
2414
|
-
|
|
2412
|
+
default: q(() => [
|
|
2413
|
+
O(E(y(r).t("documentation.documentation_display.add_new")), 1)
|
|
2415
2414
|
]),
|
|
2416
2415
|
_: 1
|
|
2417
2416
|
})
|
|
@@ -2420,21 +2419,21 @@ const We = /* @__PURE__ */ $({
|
|
|
2420
2419
|
}, 8, ["auth-function"])
|
|
2421
2420
|
])
|
|
2422
2421
|
]),
|
|
2423
|
-
|
|
2424
|
-
e.card ? (
|
|
2422
|
+
c.value ? (v(), C("div", Ur, [
|
|
2423
|
+
e.card ? (v(), F(o, {
|
|
2425
2424
|
key: 1,
|
|
2426
2425
|
type: "card"
|
|
2427
|
-
})) : (
|
|
2426
|
+
})) : (v(), F(o, {
|
|
2428
2427
|
key: 0,
|
|
2429
2428
|
class: "markdown-content-loader"
|
|
2430
2429
|
}))
|
|
2431
|
-
])) : (
|
|
2432
|
-
|
|
2430
|
+
])) : (v(), C("div", Jr, [
|
|
2431
|
+
N("div", {
|
|
2433
2432
|
class: _e(["document-content", { "content-card-view": e.card }])
|
|
2434
2433
|
}, [
|
|
2435
|
-
|
|
2434
|
+
A.value ? (v(), F(y(wn), {
|
|
2436
2435
|
key: 0,
|
|
2437
|
-
document:
|
|
2436
|
+
document: A.value
|
|
2438
2437
|
}, null, 8, ["document"])) : H("", !0)
|
|
2439
2438
|
], 2)
|
|
2440
2439
|
]))
|
|
@@ -2443,21 +2442,21 @@ const We = /* @__PURE__ */ $({
|
|
|
2443
2442
|
}
|
|
2444
2443
|
}), Ce = (e, n) => {
|
|
2445
2444
|
const t = e.__vccOpts || e;
|
|
2446
|
-
for (const [
|
|
2447
|
-
t[
|
|
2445
|
+
for (const [a, r] of n)
|
|
2446
|
+
t[a] = r;
|
|
2448
2447
|
return t;
|
|
2449
|
-
},
|
|
2448
|
+
}, Qr = /* @__PURE__ */ Ce(Wr, [["__scopeId", "data-v-cb31890c"]]), me = "24px", Qe = (e, n) => {
|
|
2450
2449
|
const t = e.__vccOpts || e;
|
|
2451
|
-
for (const [
|
|
2452
|
-
t[
|
|
2450
|
+
for (const [a, r] of n)
|
|
2451
|
+
t[a] = r;
|
|
2453
2452
|
return t;
|
|
2454
|
-
},
|
|
2453
|
+
}, Xr = (e) => (fe("data-v-97c8c2aa"), e = e(), he(), e), Zr = ["aria-hidden"], Yr = {
|
|
2455
2454
|
key: 0,
|
|
2456
2455
|
"data-testid": "kui-icon-svg-title"
|
|
2457
|
-
}, ea = /* @__PURE__ */
|
|
2456
|
+
}, ea = /* @__PURE__ */ Xr(() => /* @__PURE__ */ N("path", {
|
|
2458
2457
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
2459
2458
|
fill: "currentColor"
|
|
2460
|
-
}, null, -1)), ta = /* @__PURE__ */
|
|
2459
|
+
}, null, -1)), ta = /* @__PURE__ */ G({
|
|
2461
2460
|
__name: "AddIcon",
|
|
2462
2461
|
props: {
|
|
2463
2462
|
/** The accessibility text provided to screen readers */
|
|
@@ -2509,16 +2508,16 @@ const We = /* @__PURE__ */ $({
|
|
|
2509
2508
|
}
|
|
2510
2509
|
},
|
|
2511
2510
|
setup(e) {
|
|
2512
|
-
const n = e, t =
|
|
2511
|
+
const n = e, t = L(() => {
|
|
2513
2512
|
if (typeof n.size == "number" && n.size > 0)
|
|
2514
2513
|
return `${n.size}px`;
|
|
2515
2514
|
if (typeof n.size == "string") {
|
|
2516
|
-
const
|
|
2517
|
-
if (
|
|
2518
|
-
return `${
|
|
2515
|
+
const r = String(n.size).replace(/px/gi, ""), c = Number(r);
|
|
2516
|
+
if (c && !isNaN(c) && Number.isInteger(c) && c > 0)
|
|
2517
|
+
return `${c}px`;
|
|
2519
2518
|
}
|
|
2520
2519
|
return me;
|
|
2521
|
-
}),
|
|
2520
|
+
}), a = L(() => ({
|
|
2522
2521
|
boxSizing: "border-box",
|
|
2523
2522
|
color: n.color,
|
|
2524
2523
|
display: n.display,
|
|
@@ -2526,14 +2525,14 @@ const We = /* @__PURE__ */ $({
|
|
|
2526
2525
|
lineHeight: "0",
|
|
2527
2526
|
width: t.value
|
|
2528
2527
|
}));
|
|
2529
|
-
return (
|
|
2528
|
+
return (r, c) => (v(), F(Y(e.as), {
|
|
2530
2529
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2531
2530
|
class: "kui-icon add-icon",
|
|
2532
2531
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
2533
|
-
style: Ge(
|
|
2532
|
+
style: Ge(a.value)
|
|
2534
2533
|
}, {
|
|
2535
|
-
default:
|
|
2536
|
-
(
|
|
2534
|
+
default: q(() => [
|
|
2535
|
+
(v(), C("svg", {
|
|
2537
2536
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2538
2537
|
"data-testid": "kui-icon-svg-add-icon",
|
|
2539
2538
|
fill: "none",
|
|
@@ -2543,21 +2542,21 @@ const We = /* @__PURE__ */ $({
|
|
|
2543
2542
|
width: "100%",
|
|
2544
2543
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2545
2544
|
}, [
|
|
2546
|
-
e.title ? (
|
|
2545
|
+
e.title ? (v(), C("title", Yr, E(e.title), 1)) : H("", !0),
|
|
2547
2546
|
ea
|
|
2548
2547
|
], 8, Zr))
|
|
2549
2548
|
]),
|
|
2550
2549
|
_: 1
|
|
2551
2550
|
}, 8, ["aria-hidden", "style"]));
|
|
2552
2551
|
}
|
|
2553
|
-
}), na = /* @__PURE__ */
|
|
2552
|
+
}), na = /* @__PURE__ */ Qe(ta, [["__scopeId", "data-v-97c8c2aa"]]), Xe = (e) => (fe("data-v-336ae8cf"), e = e(), he(), e), ra = ["aria-hidden"], aa = {
|
|
2554
2553
|
key: 0,
|
|
2555
2554
|
"data-testid": "kui-icon-svg-title"
|
|
2556
|
-
}, ia = /* @__PURE__ */
|
|
2555
|
+
}, ia = /* @__PURE__ */ Xe(() => /* @__PURE__ */ N("path", {
|
|
2557
2556
|
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",
|
|
2558
2557
|
fill: "currentColor",
|
|
2559
2558
|
"transform-origin": "center"
|
|
2560
|
-
}, null, -1)), oa = /* @__PURE__ */
|
|
2559
|
+
}, null, -1)), oa = /* @__PURE__ */ Xe(() => /* @__PURE__ */ N("animateTransform", {
|
|
2561
2560
|
attributeName: "transform",
|
|
2562
2561
|
attributeType: "XML",
|
|
2563
2562
|
dur: "1.5s",
|
|
@@ -2565,7 +2564,7 @@ const We = /* @__PURE__ */ $({
|
|
|
2565
2564
|
repeatCount: "indefinite",
|
|
2566
2565
|
to: "360",
|
|
2567
2566
|
type: "rotate"
|
|
2568
|
-
}, null, -1)), la = /* @__PURE__ */
|
|
2567
|
+
}, null, -1)), la = /* @__PURE__ */ G({
|
|
2569
2568
|
__name: "ProgressIcon",
|
|
2570
2569
|
props: {
|
|
2571
2570
|
/** The accessibility text provided to screen readers */
|
|
@@ -2617,16 +2616,16 @@ const We = /* @__PURE__ */ $({
|
|
|
2617
2616
|
}
|
|
2618
2617
|
},
|
|
2619
2618
|
setup(e) {
|
|
2620
|
-
const n = e, t =
|
|
2619
|
+
const n = e, t = L(() => {
|
|
2621
2620
|
if (typeof n.size == "number" && n.size > 0)
|
|
2622
2621
|
return `${n.size}px`;
|
|
2623
2622
|
if (typeof n.size == "string") {
|
|
2624
|
-
const
|
|
2625
|
-
if (
|
|
2626
|
-
return `${
|
|
2623
|
+
const r = String(n.size).replace(/px/gi, ""), c = Number(r);
|
|
2624
|
+
if (c && !isNaN(c) && Number.isInteger(c) && c > 0)
|
|
2625
|
+
return `${c}px`;
|
|
2627
2626
|
}
|
|
2628
2627
|
return me;
|
|
2629
|
-
}),
|
|
2628
|
+
}), a = L(() => ({
|
|
2630
2629
|
boxSizing: "border-box",
|
|
2631
2630
|
color: n.color,
|
|
2632
2631
|
display: n.display,
|
|
@@ -2634,14 +2633,14 @@ const We = /* @__PURE__ */ $({
|
|
|
2634
2633
|
lineHeight: "0",
|
|
2635
2634
|
width: t.value
|
|
2636
2635
|
}));
|
|
2637
|
-
return (
|
|
2636
|
+
return (r, c) => (v(), F(Y(e.as), {
|
|
2638
2637
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2639
2638
|
class: "kui-icon progress-icon",
|
|
2640
2639
|
"data-testid": "kui-icon-wrapper-progress-icon",
|
|
2641
|
-
style: Ge(
|
|
2640
|
+
style: Ge(a.value)
|
|
2642
2641
|
}, {
|
|
2643
|
-
default:
|
|
2644
|
-
(
|
|
2642
|
+
default: q(() => [
|
|
2643
|
+
(v(), C("svg", {
|
|
2645
2644
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2646
2645
|
"data-testid": "kui-icon-svg-progress-icon",
|
|
2647
2646
|
fill: "none",
|
|
@@ -2651,7 +2650,7 @@ const We = /* @__PURE__ */ $({
|
|
|
2651
2650
|
width: "100%",
|
|
2652
2651
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2653
2652
|
}, [
|
|
2654
|
-
e.title ? (
|
|
2653
|
+
e.title ? (v(), C("title", aa, E(e.title), 1)) : H("", !0),
|
|
2655
2654
|
ia,
|
|
2656
2655
|
oa
|
|
2657
2656
|
], 8, ra))
|
|
@@ -2659,7 +2658,7 @@ const We = /* @__PURE__ */ $({
|
|
|
2659
2658
|
_: 1
|
|
2660
2659
|
}, 8, ["aria-hidden", "style"]));
|
|
2661
2660
|
}
|
|
2662
|
-
}), $e = /* @__PURE__ */
|
|
2661
|
+
}), $e = /* @__PURE__ */ Qe(la, [["__scopeId", "data-v-336ae8cf"]]), sa = /* @__PURE__ */ G({
|
|
2663
2662
|
__name: "DocumentationPageEmptyState",
|
|
2664
2663
|
props: {
|
|
2665
2664
|
/**
|
|
@@ -2674,36 +2673,36 @@ const We = /* @__PURE__ */ $({
|
|
|
2674
2673
|
},
|
|
2675
2674
|
emits: ["create-documentation"],
|
|
2676
2675
|
setup(e, { emit: n }) {
|
|
2677
|
-
const { i18n:
|
|
2678
|
-
return (r,
|
|
2679
|
-
const
|
|
2680
|
-
return
|
|
2676
|
+
const t = n, { i18n: a } = Ae.useI18n();
|
|
2677
|
+
return (r, c) => {
|
|
2678
|
+
const s = $("KButton"), l = $("KEmptyState");
|
|
2679
|
+
return v(), F(l, {
|
|
2681
2680
|
class: "documentation-page-empty-state",
|
|
2682
2681
|
"data-testid": "documentation-page-empty-state",
|
|
2683
2682
|
icon: "stateGruceo",
|
|
2684
2683
|
"icon-size": "96"
|
|
2685
2684
|
}, {
|
|
2686
|
-
title:
|
|
2687
|
-
|
|
2685
|
+
title: q(() => [
|
|
2686
|
+
O(E(y(a).t("documentation.show.empty_state.title")), 1)
|
|
2688
2687
|
]),
|
|
2689
|
-
message:
|
|
2690
|
-
|
|
2688
|
+
message: q(() => [
|
|
2689
|
+
O(E(y(a).t("documentation.show.empty_state.message")), 1)
|
|
2691
2690
|
]),
|
|
2692
|
-
cta:
|
|
2693
|
-
|
|
2691
|
+
cta: q(() => [
|
|
2692
|
+
R(y(We), {
|
|
2694
2693
|
"auth-function": () => e.canEdit()
|
|
2695
2694
|
}, {
|
|
2696
|
-
default:
|
|
2697
|
-
|
|
2695
|
+
default: q(() => [
|
|
2696
|
+
R(s, {
|
|
2698
2697
|
appearance: "primary",
|
|
2699
2698
|
"data-testid": "add-new-page-button",
|
|
2700
|
-
onClick:
|
|
2699
|
+
onClick: c[0] || (c[0] = (g) => t("create-documentation"))
|
|
2701
2700
|
}, {
|
|
2702
|
-
icon:
|
|
2703
|
-
|
|
2701
|
+
icon: q(() => [
|
|
2702
|
+
R(y(na), { size: "22" })
|
|
2704
2703
|
]),
|
|
2705
|
-
default:
|
|
2706
|
-
|
|
2704
|
+
default: q(() => [
|
|
2705
|
+
O(" " + E(y(a).t("documentation.show.empty_state.ctaText")), 1)
|
|
2707
2706
|
]),
|
|
2708
2707
|
_: 1
|
|
2709
2708
|
})
|
|
@@ -2718,10 +2717,10 @@ const We = /* @__PURE__ */ $({
|
|
|
2718
2717
|
}), ua = {
|
|
2719
2718
|
// @ts-ignore
|
|
2720
2719
|
serviceDocumentationDocs: "https://docs.konghq.com/konnect/servicehub/service-documentation/#main"
|
|
2721
|
-
}, ca = (e) => (fe("data-v-ad1a177c"), e = e(), he(), e), da = { class: "title" }, pa = { class: "subtitle" }, ma = /* @__PURE__ */ ca(() => /* @__PURE__ */
|
|
2720
|
+
}, ca = (e) => (fe("data-v-ad1a177c"), e = e(), he(), e), da = { class: "title" }, pa = { class: "subtitle" }, ma = /* @__PURE__ */ ca(() => /* @__PURE__ */ N("br", null, null, -1)), ga = { class: "document-inputs" }, fa = { class: "page-name side-by-side" }, ha = { class: "url-slug side-by-side" }, va = {
|
|
2722
2721
|
key: 1,
|
|
2723
2722
|
class: "documentation-status"
|
|
2724
|
-
}, wa = { class: "action-buttons" }, ba = { class: "button-spacing" }, ya = /* @__PURE__ */
|
|
2723
|
+
}, wa = { class: "action-buttons" }, ba = { class: "button-spacing" }, ya = /* @__PURE__ */ G({
|
|
2725
2724
|
__name: "ProductDocumentModal",
|
|
2726
2725
|
props: {
|
|
2727
2726
|
actionPending: {
|
|
@@ -2751,206 +2750,206 @@ const We = /* @__PURE__ */ $({
|
|
|
2751
2750
|
},
|
|
2752
2751
|
emits: ["cancel", "save", "delete"],
|
|
2753
2752
|
setup(e, { emit: n }) {
|
|
2754
|
-
const t = e, { i18n: r } = Ae.useI18n(),
|
|
2755
|
-
var
|
|
2756
|
-
return (
|
|
2757
|
-
}),
|
|
2758
|
-
var
|
|
2759
|
-
return
|
|
2760
|
-
}),
|
|
2753
|
+
const t = e, a = n, { i18n: r } = Ae.useI18n(), c = L(() => {
|
|
2754
|
+
var m;
|
|
2755
|
+
return (m = t.record.file) == null ? void 0 : m.filename;
|
|
2756
|
+
}), s = L(() => {
|
|
2757
|
+
var m;
|
|
2758
|
+
return D.value ? (m = D.value.name) == null ? void 0 : m.split(".")[0] : "";
|
|
2759
|
+
}), l = U(!0), g = L(() => l.value ? "published" : "unpublished"), h = tt({
|
|
2761
2760
|
fileName: "",
|
|
2762
2761
|
pageName: "",
|
|
2763
2762
|
urlSlug: "",
|
|
2764
|
-
status:
|
|
2763
|
+
status: g.value,
|
|
2765
2764
|
parent: ""
|
|
2766
|
-
}),
|
|
2767
|
-
var
|
|
2768
|
-
return
|
|
2769
|
-
}),
|
|
2770
|
-
var
|
|
2771
|
-
let
|
|
2772
|
-
var
|
|
2773
|
-
return
|
|
2774
|
-
}).map((
|
|
2775
|
-
label:
|
|
2776
|
-
value:
|
|
2765
|
+
}), A = /^[\w-]+$/, k = L(() => {
|
|
2766
|
+
var m;
|
|
2767
|
+
return h.urlSlug !== "" && !((m = h.urlSlug) != null && m.match(A));
|
|
2768
|
+
}), P = L(() => {
|
|
2769
|
+
var f;
|
|
2770
|
+
let m = (f = t.documents) == null ? void 0 : f.filter((_) => {
|
|
2771
|
+
var j;
|
|
2772
|
+
return _.record.id !== ((j = t.record) == null ? void 0 : j.id) && !_.record.parent_document_id;
|
|
2773
|
+
}).map((_) => ({
|
|
2774
|
+
label: _.record.title,
|
|
2775
|
+
value: _.record.id,
|
|
2777
2776
|
selected: !1
|
|
2778
2777
|
}));
|
|
2779
|
-
|
|
2780
|
-
const
|
|
2781
|
-
return
|
|
2778
|
+
m || (m = []);
|
|
2779
|
+
const w = Le(m.length);
|
|
2780
|
+
return m.push({
|
|
2782
2781
|
label: r.t("documentation.form_modal.parent_document_select_option_none"),
|
|
2783
2782
|
value: "none",
|
|
2784
|
-
selected: !
|
|
2785
|
-
}),
|
|
2786
|
-
}),
|
|
2787
|
-
|
|
2783
|
+
selected: !w
|
|
2784
|
+
}), m;
|
|
2785
|
+
}), K = L(() => !t.editing && !D.value || !h.pageName || k.value), x = L(() => t.editing ? r.t("documentation.form_modal.edit_title") : r.t("documentation.form_modal.create_title")), b = L(() => t.editing ? r.t("documentation.form_modal.replace_file_button_text") : r.t("documentation.form_modal.filename_button_text")), S = L(() => g.value === "published" ? r.t("documentation.common.published") : r.t("documentation.common.unpublished")), D = U(null), i = (m) => {
|
|
2786
|
+
D.value = m == null ? void 0 : m[0], h.pageName = s.value, h.urlSlug = s.value, h.fileName = s.value;
|
|
2788
2787
|
}, o = () => {
|
|
2789
|
-
|
|
2790
|
-
},
|
|
2791
|
-
|
|
2788
|
+
D.value = null;
|
|
2789
|
+
}, u = () => {
|
|
2790
|
+
a("cancel"), p();
|
|
2792
2791
|
}, d = () => {
|
|
2793
|
-
|
|
2794
|
-
},
|
|
2795
|
-
var
|
|
2796
|
-
if (
|
|
2797
|
-
const
|
|
2798
|
-
|
|
2792
|
+
a("save", Object.assign(h, { status: g.value }), D);
|
|
2793
|
+
}, p = () => {
|
|
2794
|
+
var m, w, f, _, j;
|
|
2795
|
+
if (D.value = null, t.editing && ((m = t.record) != null && m.document)) {
|
|
2796
|
+
const I = Le(t.record), Q = I.status || t.record.document.status || l.value;
|
|
2797
|
+
h.fileName = ((w = I.document.file) == null ? void 0 : w.filename) || ((_ = (f = I.document.revision) == null ? void 0 : f.file) == null ? void 0 : _.filename), h.pageName = I.document.title || ((j = I.document.revision) == null ? void 0 : j.title), h.urlSlug = I.document.slug, h.parent = I.document.parent_document_id, h.status = Q, l.value = Q === "published";
|
|
2799
2798
|
} else
|
|
2800
|
-
|
|
2799
|
+
h.fileName = "", h.pageName = "", h.urlSlug = "", h.parent = "", h.status = "";
|
|
2801
2800
|
};
|
|
2802
2801
|
return nt(() => {
|
|
2803
|
-
|
|
2804
|
-
}), (
|
|
2805
|
-
const
|
|
2806
|
-
return
|
|
2807
|
-
|
|
2802
|
+
p();
|
|
2803
|
+
}), (m, w) => {
|
|
2804
|
+
const f = $("KExternalLink"), _ = $("KAlert"), j = $("KFileUpload"), I = $("KInput"), Q = $("KLabel"), ie = $("KInputSwitch"), ve = $("KSelect"), ne = $("KButton"), oe = $("KPrompt");
|
|
2805
|
+
return v(), F(rt, { to: "#kong-ui-app-layout-teleport-default-slot" }, [
|
|
2806
|
+
R(oe, {
|
|
2808
2807
|
class: "edit-document-modal",
|
|
2809
2808
|
"data-testid": "edit-document-modal",
|
|
2810
2809
|
"is-visible": "",
|
|
2811
|
-
onCanceled:
|
|
2810
|
+
onCanceled: u,
|
|
2812
2811
|
onProceed: d
|
|
2813
2812
|
}, {
|
|
2814
|
-
"header-content":
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2813
|
+
"header-content": q(() => [
|
|
2814
|
+
N("div", da, [
|
|
2815
|
+
O(E(x.value) + " ", 1),
|
|
2816
|
+
N("div", pa, [
|
|
2817
|
+
O(E(y(r).t("documentation.form_modal.subtitle")) + " ", 1),
|
|
2819
2818
|
ma,
|
|
2820
|
-
|
|
2819
|
+
R(f, {
|
|
2821
2820
|
class: "doc-link",
|
|
2822
|
-
href:
|
|
2821
|
+
href: y(ua).serviceDocumentationDocs
|
|
2823
2822
|
}, {
|
|
2824
|
-
default:
|
|
2825
|
-
|
|
2823
|
+
default: q(() => [
|
|
2824
|
+
O(E(y(r).t("documentation.form_modal.documentation_link_text")), 1)
|
|
2826
2825
|
]),
|
|
2827
2826
|
_: 1
|
|
2828
2827
|
}, 8, ["href"])
|
|
2829
2828
|
])
|
|
2830
2829
|
])
|
|
2831
2830
|
]),
|
|
2832
|
-
"body-content":
|
|
2833
|
-
e.errorMessage ? (
|
|
2831
|
+
"body-content": q(() => [
|
|
2832
|
+
e.errorMessage ? (v(), F(_, {
|
|
2834
2833
|
key: 0,
|
|
2835
2834
|
"alert-message": e.errorMessage,
|
|
2836
2835
|
appearance: "danger",
|
|
2837
2836
|
class: "bottom-spacing"
|
|
2838
2837
|
}, null, 8, ["alert-message"])) : H("", !0),
|
|
2839
|
-
|
|
2838
|
+
R(j, {
|
|
2840
2839
|
accept: [".md", ".markdown"],
|
|
2841
|
-
"button-text":
|
|
2840
|
+
"button-text": b.value,
|
|
2842
2841
|
class: "document-file-upload",
|
|
2843
2842
|
"data-testid": "document-file-upload",
|
|
2844
|
-
label:
|
|
2845
|
-
"label-attributes": { help:
|
|
2846
|
-
placeholder: e.editing ?
|
|
2847
|
-
onFileAdded:
|
|
2843
|
+
label: y(r).t("documentation.form_modal.file_label"),
|
|
2844
|
+
"label-attributes": { help: y(r).t("documentation.form_modal.file_tooltip") },
|
|
2845
|
+
placeholder: e.editing ? c.value : void 0,
|
|
2846
|
+
onFileAdded: i,
|
|
2848
2847
|
onFileRemoved: o
|
|
2849
2848
|
}, null, 8, ["accept", "button-text", "label", "label-attributes", "placeholder"]),
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
modelValue:
|
|
2854
|
-
"onUpdate:modelValue":
|
|
2849
|
+
N("div", ga, [
|
|
2850
|
+
N("div", fa, [
|
|
2851
|
+
R(I, {
|
|
2852
|
+
modelValue: h.pageName,
|
|
2853
|
+
"onUpdate:modelValue": w[0] || (w[0] = (T) => h.pageName = T),
|
|
2855
2854
|
modelModifiers: { trim: !0 },
|
|
2856
2855
|
"data-testid": "documentation-page-name",
|
|
2857
|
-
label:
|
|
2858
|
-
placeholder:
|
|
2856
|
+
label: y(r).t("documentation.form_modal.title_label"),
|
|
2857
|
+
placeholder: y(r).t("documentation.form_modal.title_placeholder"),
|
|
2859
2858
|
required: ""
|
|
2860
2859
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
2861
2860
|
]),
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
modelValue:
|
|
2865
|
-
"onUpdate:modelValue":
|
|
2861
|
+
N("div", ha, [
|
|
2862
|
+
R(I, {
|
|
2863
|
+
modelValue: h.urlSlug,
|
|
2864
|
+
"onUpdate:modelValue": w[1] || (w[1] = (T) => h.urlSlug = T),
|
|
2866
2865
|
modelModifiers: { trim: !0 },
|
|
2867
2866
|
"data-testid": "documentation-url-slug",
|
|
2868
|
-
"error-message":
|
|
2869
|
-
"has-error":
|
|
2870
|
-
label:
|
|
2871
|
-
pattern:
|
|
2872
|
-
placeholder:
|
|
2867
|
+
"error-message": y(r).t("documentation.form_modal.slug_error"),
|
|
2868
|
+
"has-error": k.value,
|
|
2869
|
+
label: y(r).t("documentation.form_modal.slug_label"),
|
|
2870
|
+
pattern: A,
|
|
2871
|
+
placeholder: y(r).t("documentation.form_modal.slug_placeholder")
|
|
2873
2872
|
}, null, 8, ["modelValue", "error-message", "has-error", "label", "placeholder"])
|
|
2874
2873
|
])
|
|
2875
2874
|
]),
|
|
2876
|
-
e.hidePublishToggle ? H("", !0) : (
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
default:
|
|
2880
|
-
|
|
2875
|
+
e.hidePublishToggle ? H("", !0) : (v(), C("div", va, [
|
|
2876
|
+
N("div", null, [
|
|
2877
|
+
R(Q, null, {
|
|
2878
|
+
default: q(() => [
|
|
2879
|
+
O(E(y(r).t("documentation.form_modal.status_label")), 1)
|
|
2881
2880
|
]),
|
|
2882
2881
|
_: 1
|
|
2883
2882
|
})
|
|
2884
2883
|
]),
|
|
2885
|
-
|
|
2886
|
-
modelValue:
|
|
2887
|
-
"onUpdate:modelValue":
|
|
2884
|
+
R(ie, {
|
|
2885
|
+
modelValue: l.value,
|
|
2886
|
+
"onUpdate:modelValue": w[2] || (w[2] = (T) => l.value = T),
|
|
2888
2887
|
"data-testid": "documentation-status",
|
|
2889
|
-
label:
|
|
2888
|
+
label: S.value
|
|
2890
2889
|
}, null, 8, ["modelValue", "label"])
|
|
2891
2890
|
])),
|
|
2892
|
-
|
|
2893
|
-
modelValue:
|
|
2894
|
-
"onUpdate:modelValue":
|
|
2891
|
+
R(ve, {
|
|
2892
|
+
modelValue: h.parent,
|
|
2893
|
+
"onUpdate:modelValue": w[3] || (w[3] = (T) => h.parent = T),
|
|
2895
2894
|
appearance: "select",
|
|
2896
2895
|
class: "document-parent-select",
|
|
2897
2896
|
"data-testid": "documentation-parent",
|
|
2898
2897
|
"enable-filtering": "",
|
|
2899
|
-
items:
|
|
2900
|
-
label:
|
|
2898
|
+
items: P.value,
|
|
2899
|
+
label: y(r).t("documentation.form_modal.parent_document_select_label"),
|
|
2901
2900
|
width: "100%"
|
|
2902
2901
|
}, null, 8, ["modelValue", "items", "label"])
|
|
2903
2902
|
]),
|
|
2904
|
-
"action-buttons":
|
|
2905
|
-
|
|
2906
|
-
e.editing ? (
|
|
2903
|
+
"action-buttons": q(() => [
|
|
2904
|
+
N("div", wa, [
|
|
2905
|
+
e.editing ? (v(), F(ne, {
|
|
2907
2906
|
key: 0,
|
|
2908
2907
|
appearance: "danger",
|
|
2909
2908
|
class: "edit-documentation-delete-button",
|
|
2910
2909
|
"data-testid": "edit-documentation-delete-button",
|
|
2911
2910
|
disabled: e.actionPending,
|
|
2912
|
-
onClick:
|
|
2911
|
+
onClick: w[4] || (w[4] = (T) => a("delete"))
|
|
2913
2912
|
}, je({
|
|
2914
|
-
default:
|
|
2915
|
-
|
|
2913
|
+
default: q(() => [
|
|
2914
|
+
O(" " + E(y(r).t("documentation.form_modal.delete_button_text")), 1)
|
|
2916
2915
|
]),
|
|
2917
2916
|
_: 2
|
|
2918
2917
|
}, [
|
|
2919
2918
|
e.actionPending ? {
|
|
2920
2919
|
name: "icon",
|
|
2921
|
-
fn:
|
|
2922
|
-
|
|
2920
|
+
fn: q(() => [
|
|
2921
|
+
R(y($e), { size: "16" })
|
|
2923
2922
|
]),
|
|
2924
2923
|
key: "0"
|
|
2925
2924
|
} : void 0
|
|
2926
2925
|
]), 1032, ["disabled"])) : H("", !0),
|
|
2927
|
-
|
|
2928
|
-
|
|
2926
|
+
N("div", ba, [
|
|
2927
|
+
R(ne, {
|
|
2929
2928
|
appearance: "secondary",
|
|
2930
2929
|
class: "edit-documentation-cancel-button",
|
|
2931
2930
|
"data-testid": "edit-documentation-cancel-button",
|
|
2932
|
-
onClick:
|
|
2931
|
+
onClick: u
|
|
2933
2932
|
}, {
|
|
2934
|
-
default:
|
|
2935
|
-
|
|
2933
|
+
default: q(() => [
|
|
2934
|
+
O(E(y(r).t("documentation.form_modal.cancel_button_text")), 1)
|
|
2936
2935
|
]),
|
|
2937
2936
|
_: 1
|
|
2938
2937
|
}),
|
|
2939
|
-
|
|
2938
|
+
R(ne, {
|
|
2940
2939
|
appearance: "primary",
|
|
2941
2940
|
"data-testid": "edit-documentation-save-button",
|
|
2942
|
-
disabled: e.actionPending ||
|
|
2941
|
+
disabled: e.actionPending || K.value,
|
|
2943
2942
|
onClick: d
|
|
2944
2943
|
}, je({
|
|
2945
|
-
default:
|
|
2946
|
-
|
|
2944
|
+
default: q(() => [
|
|
2945
|
+
O(" " + E(y(r).t("documentation.form_modal.save_button_text")), 1)
|
|
2947
2946
|
]),
|
|
2948
2947
|
_: 2
|
|
2949
2948
|
}, [
|
|
2950
2949
|
e.actionPending ? {
|
|
2951
2950
|
name: "icon",
|
|
2952
|
-
fn:
|
|
2953
|
-
|
|
2951
|
+
fn: q(() => [
|
|
2952
|
+
R(y($e), { size: "16" })
|
|
2954
2953
|
]),
|
|
2955
2954
|
key: "0"
|
|
2956
2955
|
} : void 0
|
|
@@ -2963,7 +2962,7 @@ const We = /* @__PURE__ */ $({
|
|
|
2963
2962
|
]);
|
|
2964
2963
|
};
|
|
2965
2964
|
}
|
|
2966
|
-
}), ka = /* @__PURE__ */ Ce(ya, [["__scopeId", "data-v-ad1a177c"]]), xa = { class: "documentation" }, Sa = { class: "documentation-parent-container" }, _a = /* @__PURE__ */
|
|
2965
|
+
}), ka = /* @__PURE__ */ Ce(ya, [["__scopeId", "data-v-ad1a177c"]]), xa = { class: "documentation" }, Sa = { class: "documentation-parent-container" }, _a = /* @__PURE__ */ G({
|
|
2967
2966
|
__name: "DocumentationContent",
|
|
2968
2967
|
props: {
|
|
2969
2968
|
actionPending: {
|
|
@@ -3021,68 +3020,68 @@ const We = /* @__PURE__ */ $({
|
|
|
3021
3020
|
},
|
|
3022
3021
|
emits: ["child-change", "delete", "edit", "document-selection", "modal-closed", "parent-change", "save", "toggle-published"],
|
|
3023
3022
|
setup(e, { emit: n }) {
|
|
3024
|
-
const t =
|
|
3025
|
-
ge(() =>
|
|
3026
|
-
|
|
3023
|
+
const t = n, a = U(!1), r = U(!1), c = e;
|
|
3024
|
+
ge(() => c.actionSuccess, (A) => {
|
|
3025
|
+
A && h();
|
|
3027
3026
|
});
|
|
3028
|
-
const
|
|
3029
|
-
var
|
|
3030
|
-
return `data-display-${
|
|
3031
|
-
}),
|
|
3032
|
-
|
|
3033
|
-
},
|
|
3034
|
-
|
|
3035
|
-
},
|
|
3036
|
-
|
|
3027
|
+
const s = L(() => {
|
|
3028
|
+
var A, k;
|
|
3029
|
+
return `data-display-${c.cacheKey}-${((k = (A = c.selectedDocument) == null ? void 0 : A.document) == null ? void 0 : k.id) || ""}`;
|
|
3030
|
+
}), l = () => {
|
|
3031
|
+
r.value = !1, a.value = !0;
|
|
3032
|
+
}, g = () => {
|
|
3033
|
+
r.value = !0, a.value = !0, t("edit");
|
|
3034
|
+
}, h = () => {
|
|
3035
|
+
a.value = !1, t("modal-closed");
|
|
3037
3036
|
};
|
|
3038
|
-
return (
|
|
3039
|
-
const
|
|
3040
|
-
return
|
|
3041
|
-
e.documentList && !e.documentList.length ? (
|
|
3037
|
+
return (A, k) => {
|
|
3038
|
+
const P = $("KTreeList"), K = $("KCard");
|
|
3039
|
+
return v(), C("div", xa, [
|
|
3040
|
+
e.documentList && !e.documentList.length ? (v(), F(sa, {
|
|
3042
3041
|
key: 0,
|
|
3043
3042
|
"can-edit": e.canEdit,
|
|
3044
|
-
onCreateDocumentation:
|
|
3045
|
-
}, null, 8, ["can-edit"])) : (
|
|
3043
|
+
onCreateDocumentation: l
|
|
3044
|
+
}, null, 8, ["can-edit"])) : (v(), F(K, {
|
|
3046
3045
|
key: 1,
|
|
3047
3046
|
class: "documentation-card"
|
|
3048
3047
|
}, {
|
|
3049
|
-
default:
|
|
3050
|
-
|
|
3051
|
-
(
|
|
3048
|
+
default: q(() => [
|
|
3049
|
+
N("div", Sa, [
|
|
3050
|
+
(v(), F(P, {
|
|
3052
3051
|
key: `tree-list-${e.cacheKey}`,
|
|
3053
3052
|
class: "document-tree-list",
|
|
3054
3053
|
items: e.documentList,
|
|
3055
3054
|
"max-depth": 2,
|
|
3056
|
-
onChange:
|
|
3057
|
-
onChildChange:
|
|
3058
|
-
onSelected:
|
|
3055
|
+
onChange: k[0] || (k[0] = (x) => t("parent-change", x)),
|
|
3056
|
+
onChildChange: k[1] || (k[1] = (x) => t("child-change", x)),
|
|
3057
|
+
onSelected: k[2] || (k[2] = (x) => t("document-selection", x))
|
|
3059
3058
|
}, null, 8, ["items"])),
|
|
3060
|
-
e.selectedDocument ? (
|
|
3061
|
-
key:
|
|
3059
|
+
e.selectedDocument ? (v(), F(Qr, {
|
|
3060
|
+
key: s.value,
|
|
3062
3061
|
"can-edit": e.canEdit,
|
|
3063
3062
|
card: e.card,
|
|
3064
3063
|
class: "document-holder",
|
|
3065
3064
|
"hide-publish-toggle": e.hidePublishToggle,
|
|
3066
3065
|
"selected-document": e.selectedDocument,
|
|
3067
|
-
onAdd:
|
|
3068
|
-
onEdit:
|
|
3069
|
-
onTogglePublished:
|
|
3066
|
+
onAdd: l,
|
|
3067
|
+
onEdit: g,
|
|
3068
|
+
onTogglePublished: k[3] || (k[3] = (x) => t("toggle-published", x))
|
|
3070
3069
|
}, null, 8, ["can-edit", "card", "hide-publish-toggle", "selected-document"])) : H("", !0)
|
|
3071
3070
|
])
|
|
3072
3071
|
]),
|
|
3073
3072
|
_: 1
|
|
3074
3073
|
})),
|
|
3075
|
-
|
|
3074
|
+
a.value ? (v(), F(ka, {
|
|
3076
3075
|
key: 2,
|
|
3077
3076
|
"action-pending": e.actionPending,
|
|
3078
3077
|
documents: e.documentList,
|
|
3079
|
-
editing:
|
|
3078
|
+
editing: r.value,
|
|
3080
3079
|
"error-message": e.modalErrorMessage,
|
|
3081
3080
|
"hide-publish-toggle": e.hidePublishToggle,
|
|
3082
|
-
record:
|
|
3083
|
-
onCancel:
|
|
3084
|
-
onDelete:
|
|
3085
|
-
onSave:
|
|
3081
|
+
record: r.value && e.selectedDocument ? e.selectedDocument : void 0,
|
|
3082
|
+
onCancel: h,
|
|
3083
|
+
onDelete: k[4] || (k[4] = (x) => t("delete")),
|
|
3084
|
+
onSave: k[5] || (k[5] = (x, b) => t("save", x, b))
|
|
3086
3085
|
}, null, 8, ["action-pending", "documents", "editing", "error-message", "hide-publish-toggle", "record"])) : H("", !0)
|
|
3087
3086
|
]);
|
|
3088
3087
|
};
|
|
@@ -3090,7 +3089,7 @@ const We = /* @__PURE__ */ $({
|
|
|
3090
3089
|
}), ja = /* @__PURE__ */ Ce(_a, [["__scopeId", "data-v-28dad1b5"]]);
|
|
3091
3090
|
export {
|
|
3092
3091
|
ja as DocumentationContent,
|
|
3093
|
-
|
|
3092
|
+
Qr as DocumentationDisplay,
|
|
3094
3093
|
sa as DocumentationPageEmptyState,
|
|
3095
3094
|
ka as ProductDocumentModal
|
|
3096
3095
|
};
|