ablok-components 0.1.119 → 0.1.120
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as kA, openBlock as q, createElementBlock as j, normalizeClass as QA, createElementVNode as K, renderSlot as re, ref as GA, resolveComponent as Ct, createBlock as Ho, createCommentVNode as
|
|
1
|
+
import { defineComponent as kA, openBlock as q, createElementBlock as j, normalizeClass as QA, createElementVNode as K, renderSlot as re, ref as GA, resolveComponent as Ct, createBlock as Ho, createCommentVNode as oe, computed as DA, resolveDynamicComponent as lS, withCtx as jr, createTextVNode as uS, toDisplayString as Fe, createVNode as YA, withDirectives as Kn, vModelDynamic as cS, vModelText as Zd, withModifiers as Pn, vModelCheckbox as jd, Fragment as Vn, renderList as Ki, onBeforeMount as sC, reactive as oC, watch as Fn, onMounted as Pi, onBeforeUnmount as ks, h as pr, getCurrentInstance as ou, watchEffect as fS, nextTick as aC, unref as hA, Teleport as dS, shallowRef as Ah, markRaw as hS, customRef as pS, inject as gS, onUnmounted as BS, Text as mS, Transition as lC, vModelRadio as wS, vShow as aB, normalizeStyle as CS } from "vue";
|
|
2
2
|
import { applyStyles as yS, createPopper as vS } from "@popperjs/core";
|
|
3
3
|
const QS = {
|
|
4
4
|
class: "icon",
|
|
@@ -79,7 +79,8 @@ const US = ["src", "alt"], B3 = /* @__PURE__ */ kA({
|
|
|
79
79
|
props: {
|
|
80
80
|
src: {
|
|
81
81
|
type: String,
|
|
82
|
-
default: 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>'
|
|
82
|
+
default: 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>',
|
|
83
|
+
required: !0
|
|
83
84
|
},
|
|
84
85
|
alt: {
|
|
85
86
|
type: String,
|
|
@@ -98,12 +99,13 @@ const US = ["src", "alt"], B3 = /* @__PURE__ */ kA({
|
|
|
98
99
|
const A = GA(!1);
|
|
99
100
|
return (e, n) => {
|
|
100
101
|
const r = Ct("loading-spinner");
|
|
101
|
-
return q(), j("div", {
|
|
102
|
+
return t.src ? (q(), j("div", {
|
|
103
|
+
key: 0,
|
|
102
104
|
class: QA(["base-image", {
|
|
103
105
|
"base-image--zoom": t.zoom
|
|
104
106
|
}])
|
|
105
107
|
}, [
|
|
106
|
-
t.spinner && !A.value ? (q(), Ho(r, { key: 0 })) :
|
|
108
|
+
t.spinner && !A.value ? (q(), Ho(r, { key: 0 })) : oe("", !0),
|
|
107
109
|
K("img", {
|
|
108
110
|
class: QA(["", {
|
|
109
111
|
"opacity-0": !A.value,
|
|
@@ -113,7 +115,7 @@ const US = ["src", "alt"], B3 = /* @__PURE__ */ kA({
|
|
|
113
115
|
alt: t.alt,
|
|
114
116
|
onLoad: n[0] || (n[0] = () => A.value = !0)
|
|
115
117
|
}, null, 42, US)
|
|
116
|
-
], 2);
|
|
118
|
+
], 2)) : oe("", !0);
|
|
117
119
|
};
|
|
118
120
|
}
|
|
119
121
|
});
|
|
@@ -305,17 +307,17 @@ const y3 = /* @__PURE__ */ MS(DS, [["render", NS]]), RS = ["type", "disabled"],
|
|
|
305
307
|
}, [
|
|
306
308
|
t.pending ? re(n.$slots, "pending-icon", { key: 0 }, () => [
|
|
307
309
|
YA(i)
|
|
308
|
-
]) :
|
|
310
|
+
]) : oe("", !0),
|
|
309
311
|
re(n.$slots, "default", {}, () => [
|
|
310
312
|
t.icon ? (q(), Ho(s, {
|
|
311
313
|
key: 0,
|
|
312
314
|
symbol: t.icon,
|
|
313
315
|
class: "base-button__caption"
|
|
314
|
-
}, null, 8, ["symbol"])) :
|
|
316
|
+
}, null, 8, ["symbol"])) : oe("", !0),
|
|
315
317
|
e.value ? (q(), j("span", {
|
|
316
318
|
key: 1,
|
|
317
319
|
class: QA(["base-button__caption", { "icon-padding": t.icon }])
|
|
318
|
-
}, Fe(t.caption), 3)) :
|
|
320
|
+
}, Fe(t.caption), 3)) : oe("", !0)
|
|
319
321
|
])
|
|
320
322
|
], 10, RS);
|
|
321
323
|
};
|
|
@@ -435,7 +437,7 @@ const KS = { class: "input-group input__input-group" }, PS = ["type", "id", "nam
|
|
|
435
437
|
"form-check-label": t.type === "checkbox"
|
|
436
438
|
}]),
|
|
437
439
|
innerHTML: `${t.label}${t.required ? " *" : ""}`
|
|
438
|
-
}, null, 10, VS)) :
|
|
440
|
+
}, null, 10, VS)) : oe("", !0)
|
|
439
441
|
])
|
|
440
442
|
], 2));
|
|
441
443
|
}
|
|
@@ -706,7 +708,7 @@ const zS = { class: "input-group input__input-group" }, qS = ["id", "name", "pla
|
|
|
706
708
|
for: t.id,
|
|
707
709
|
class: "input__label",
|
|
708
710
|
innerHTML: `${t.label}${t.required ? " *" : ""}`
|
|
709
|
-
}, null, 8, ZS)) :
|
|
711
|
+
}, null, 8, ZS)) : oe("", !0)
|
|
710
712
|
])
|
|
711
713
|
], 2));
|
|
712
714
|
}
|
|
@@ -865,7 +867,7 @@ const tT = { class: "input radio-group" }, nT = ["id", "name", "value", "checked
|
|
|
865
867
|
t.label ? (q(), j("label", {
|
|
866
868
|
key: 0,
|
|
867
869
|
for: t.id
|
|
868
|
-
}, Fe(t.label), 9, iT)) :
|
|
870
|
+
}, Fe(t.label), 9, iT)) : oe("", !0)
|
|
869
871
|
])
|
|
870
872
|
]));
|
|
871
873
|
}
|
|
@@ -1417,7 +1419,7 @@ function Tl(t, A) {
|
|
|
1417
1419
|
}
|
|
1418
1420
|
return !0;
|
|
1419
1421
|
}
|
|
1420
|
-
let
|
|
1422
|
+
let le = class Jf {
|
|
1421
1423
|
/**
|
|
1422
1424
|
@internal
|
|
1423
1425
|
*/
|
|
@@ -1521,7 +1523,7 @@ let ae = class Jf {
|
|
|
1521
1523
|
return e.sort((n, r) => n.type.rank - r.type.rank), e;
|
|
1522
1524
|
}
|
|
1523
1525
|
};
|
|
1524
|
-
|
|
1526
|
+
le.none = [];
|
|
1525
1527
|
class _l extends Error {
|
|
1526
1528
|
}
|
|
1527
1529
|
class eA {
|
|
@@ -1820,7 +1822,7 @@ class Mo {
|
|
|
1820
1822
|
marks() {
|
|
1821
1823
|
let A = this.parent, e = this.index();
|
|
1822
1824
|
if (A.content.size == 0)
|
|
1823
|
-
return
|
|
1825
|
+
return le.none;
|
|
1824
1826
|
if (this.textOffset)
|
|
1825
1827
|
return A.child(e).marks;
|
|
1826
1828
|
let n = A.maybeChild(e - 1), r = A.maybeChild(e);
|
|
@@ -1978,7 +1980,7 @@ let Ui = class Yf {
|
|
|
1978
1980
|
/**
|
|
1979
1981
|
@internal
|
|
1980
1982
|
*/
|
|
1981
|
-
constructor(A, e, n, r =
|
|
1983
|
+
constructor(A, e, n, r = le.none) {
|
|
1982
1984
|
this.type = A, this.attrs = e, this.marks = r, this.content = n || z.empty;
|
|
1983
1985
|
}
|
|
1984
1986
|
/**
|
|
@@ -2086,7 +2088,7 @@ let Ui = class Yf {
|
|
|
2086
2088
|
attributes, and marks.
|
|
2087
2089
|
*/
|
|
2088
2090
|
hasMarkup(A, e, n) {
|
|
2089
|
-
return this.type == A && Tl(this.attrs, e || A.defaultAttrs || gT) &&
|
|
2091
|
+
return this.type == A && Tl(this.attrs, e || A.defaultAttrs || gT) && le.sameSet(this.marks, n || le.none);
|
|
2090
2092
|
}
|
|
2091
2093
|
/**
|
|
2092
2094
|
Create a new node with the same markup as this node, containing
|
|
@@ -2296,10 +2298,10 @@ let Ui = class Yf {
|
|
|
2296
2298
|
*/
|
|
2297
2299
|
check() {
|
|
2298
2300
|
this.type.checkContent(this.content);
|
|
2299
|
-
let A =
|
|
2301
|
+
let A = le.none;
|
|
2300
2302
|
for (let e = 0; e < this.marks.length; e++)
|
|
2301
2303
|
A = this.marks[e].addToSet(A);
|
|
2302
|
-
if (!
|
|
2304
|
+
if (!le.sameSet(A, this.marks))
|
|
2303
2305
|
throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map((e) => e.type.name)}`);
|
|
2304
2306
|
this.content.forEach((e) => e.check());
|
|
2305
2307
|
}
|
|
@@ -2826,7 +2828,7 @@ let cB = class QC {
|
|
|
2826
2828
|
create(A = null, e, n) {
|
|
2827
2829
|
if (this.isText)
|
|
2828
2830
|
throw new Error("NodeType.create can't construct text nodes");
|
|
2829
|
-
return new Ui(this, this.computeAttrs(A), z.from(e),
|
|
2831
|
+
return new Ui(this, this.computeAttrs(A), z.from(e), le.setFrom(n));
|
|
2830
2832
|
}
|
|
2831
2833
|
/**
|
|
2832
2834
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
|
|
@@ -2834,7 +2836,7 @@ let cB = class QC {
|
|
|
2834
2836
|
if it doesn't match.
|
|
2835
2837
|
*/
|
|
2836
2838
|
createChecked(A = null, e, n) {
|
|
2837
|
-
return e = z.from(e), this.checkContent(e), new Ui(this, this.computeAttrs(A), e,
|
|
2839
|
+
return e = z.from(e), this.checkContent(e), new Ui(this, this.computeAttrs(A), e, le.setFrom(n));
|
|
2838
2840
|
}
|
|
2839
2841
|
/**
|
|
2840
2842
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
|
|
@@ -2852,7 +2854,7 @@ let cB = class QC {
|
|
|
2852
2854
|
e = s.append(e);
|
|
2853
2855
|
}
|
|
2854
2856
|
let r = this.contentMatch.matchFragment(e), i = r && r.fillBefore(z.empty, !0);
|
|
2855
|
-
return i ? new Ui(this, A, e.append(i),
|
|
2857
|
+
return i ? new Ui(this, A, e.append(i), le.setFrom(n)) : null;
|
|
2856
2858
|
}
|
|
2857
2859
|
/**
|
|
2858
2860
|
Returns true if the given fragment is valid content for this node
|
|
@@ -2902,7 +2904,7 @@ let cB = class QC {
|
|
|
2902
2904
|
let e;
|
|
2903
2905
|
for (let n = 0; n < A.length; n++)
|
|
2904
2906
|
this.allowsMarkType(A[n].type) ? e && e.push(A[n]) : e || (e = A.slice(0, n));
|
|
2905
|
-
return e ? e.length ? e :
|
|
2907
|
+
return e ? e.length ? e : le.none : A;
|
|
2906
2908
|
}
|
|
2907
2909
|
/**
|
|
2908
2910
|
@internal
|
|
@@ -2935,7 +2937,7 @@ class au {
|
|
|
2935
2937
|
constructor(A, e, n, r) {
|
|
2936
2938
|
this.name = A, this.rank = e, this.schema = n, this.spec = r, this.attrs = vC(r.attrs), this.excluded = null;
|
|
2937
2939
|
let i = CC(this.attrs);
|
|
2938
|
-
this.instance = i ? new
|
|
2940
|
+
this.instance = i ? new le(this, i) : null;
|
|
2939
2941
|
}
|
|
2940
2942
|
/**
|
|
2941
2943
|
Create a mark of this type. `attrs` may be `null` or an object
|
|
@@ -2943,7 +2945,7 @@ class au {
|
|
|
2943
2945
|
they have defaults, will be added.
|
|
2944
2946
|
*/
|
|
2945
2947
|
create(A = null) {
|
|
2946
|
-
return !A && this.instance ? this.instance : new
|
|
2948
|
+
return !A && this.instance ? this.instance : new le(this, yC(this.attrs, A));
|
|
2947
2949
|
}
|
|
2948
2950
|
/**
|
|
2949
2951
|
@internal
|
|
@@ -3029,7 +3031,7 @@ class UT {
|
|
|
3029
3031
|
*/
|
|
3030
3032
|
text(A, e) {
|
|
3031
3033
|
let n = this.nodes.text;
|
|
3032
|
-
return new Ll(n, n.defaultAttrs, A,
|
|
3034
|
+
return new Ll(n, n.defaultAttrs, A, le.setFrom(e));
|
|
3033
3035
|
}
|
|
3034
3036
|
/**
|
|
3035
3037
|
Create a mark with the given type and attributes.
|
|
@@ -3049,7 +3051,7 @@ class UT {
|
|
|
3049
3051
|
bound.
|
|
3050
3052
|
*/
|
|
3051
3053
|
markFromJSON(A) {
|
|
3052
|
-
return
|
|
3054
|
+
return le.fromJSON(this, A);
|
|
3053
3055
|
}
|
|
3054
3056
|
/**
|
|
3055
3057
|
@internal
|
|
@@ -3237,7 +3239,7 @@ function dB(t, A, e) {
|
|
|
3237
3239
|
}
|
|
3238
3240
|
class Ja {
|
|
3239
3241
|
constructor(A, e, n, r, i, s, a) {
|
|
3240
|
-
this.type = A, this.attrs = e, this.marks = n, this.pendingMarks = r, this.solid = i, this.options = a, this.content = [], this.activeMarks =
|
|
3242
|
+
this.type = A, this.attrs = e, this.marks = n, this.pendingMarks = r, this.solid = i, this.options = a, this.content = [], this.activeMarks = le.none, this.stashMarks = [], this.match = s || (a & bo ? null : A.contentMatch);
|
|
3241
3243
|
}
|
|
3242
3244
|
findWrapping(A) {
|
|
3243
3245
|
if (!this.match) {
|
|
@@ -3283,7 +3285,7 @@ class hB {
|
|
|
3283
3285
|
constructor(A, e, n) {
|
|
3284
3286
|
this.parser = A, this.options = e, this.isOpen = n, this.open = 0;
|
|
3285
3287
|
let r = e.topNode, i, s = dB(null, e.preserveWhitespace, 0) | (n ? bo : 0);
|
|
3286
|
-
r ? i = new Ja(r.type, r.attrs,
|
|
3288
|
+
r ? i = new Ja(r.type, r.attrs, le.none, le.none, !0, e.topMatch || r.type.contentMatch, s) : n ? i = new Ja(null, null, le.none, le.none, !0, null, s) : i = new Ja(A.schema.topNodeType, null, le.none, le.none, !0, null, s), this.nodes = [i], this.find = e.findPositions, this.needsBlock = !1;
|
|
3287
3289
|
}
|
|
3288
3290
|
get top() {
|
|
3289
3291
|
return this.nodes[this.open];
|
|
@@ -3362,7 +3364,7 @@ class hB {
|
|
|
3362
3364
|
// return an array of marks, or null to indicate some of the styles
|
|
3363
3365
|
// had a rule with `ignore` set.
|
|
3364
3366
|
readStyles(A) {
|
|
3365
|
-
let e =
|
|
3367
|
+
let e = le.none, n = le.none;
|
|
3366
3368
|
for (let r = 0, i = A.length; r < i; r++) {
|
|
3367
3369
|
let s = A.item(r);
|
|
3368
3370
|
for (let a = void 0; ; ) {
|
|
@@ -5175,7 +5177,7 @@ class r_ {
|
|
|
5175
5177
|
position `pos`.
|
|
5176
5178
|
*/
|
|
5177
5179
|
removeNodeMark(A, e) {
|
|
5178
|
-
if (!(e instanceof
|
|
5180
|
+
if (!(e instanceof le)) {
|
|
5179
5181
|
let n = this.doc.nodeAt(A);
|
|
5180
5182
|
if (!n)
|
|
5181
5183
|
throw new RangeError("No node at position " + A);
|
|
@@ -5658,7 +5660,7 @@ class o_ extends r_ {
|
|
|
5658
5660
|
this is already the case.
|
|
5659
5661
|
*/
|
|
5660
5662
|
ensureMarks(A) {
|
|
5661
|
-
return
|
|
5663
|
+
return le.sameSet(this.storedMarks || this.selection.$from.marks(), A) || this.setStoredMarks(A), this;
|
|
5662
5664
|
}
|
|
5663
5665
|
/**
|
|
5664
5666
|
Add a mark to the set of stored marks.
|
|
@@ -5703,7 +5705,7 @@ class o_ extends r_ {
|
|
|
5703
5705
|
*/
|
|
5704
5706
|
replaceSelectionWith(A, e = !0) {
|
|
5705
5707
|
let n = this.selection;
|
|
5706
|
-
return e && (A = A.mark(this.storedMarks || (n.empty ? n.$from.marks() : n.$from.marksAcross(n.$to) ||
|
|
5708
|
+
return e && (A = A.mark(this.storedMarks || (n.empty ? n.$from.marks() : n.$from.marksAcross(n.$to) || le.none))), n.replaceWith(this, A), this;
|
|
5707
5709
|
}
|
|
5708
5710
|
/**
|
|
5709
5711
|
Delete the selection.
|
|
@@ -6961,7 +6963,7 @@ class Xr extends Aa {
|
|
|
6961
6963
|
updateChildren(A, e) {
|
|
6962
6964
|
let n = this.node.inlineContent, r = e, i = A.composing ? this.localCompositionInfo(A, e) : null, s = i && i.pos > -1 ? i : null, a = i && i.pos < 0, u = new D_(this, s && s.node, A);
|
|
6963
6965
|
R_(this.node, this.innerDeco, (c, f, h) => {
|
|
6964
|
-
c.spec.marks ? u.syncToMarks(c.spec.marks, n, A) : c.type.side >= 0 && !h && u.syncToMarks(f == this.node.childCount ?
|
|
6966
|
+
c.spec.marks ? u.syncToMarks(c.spec.marks, n, A) : c.type.side >= 0 && !h && u.syncToMarks(f == this.node.childCount ? le.none : this.node.child(f).marks, n, A), u.placeWidget(c, A, r);
|
|
6965
6967
|
}, (c, f, h, p) => {
|
|
6966
6968
|
u.syncToMarks(c.marks, n, A);
|
|
6967
6969
|
let B;
|
|
@@ -14655,7 +14657,7 @@ function PM(t, A) {
|
|
|
14655
14657
|
show: xA,
|
|
14656
14658
|
hide: ce,
|
|
14657
14659
|
hideWithInteractivity: Ft,
|
|
14658
|
-
enable:
|
|
14660
|
+
enable: ae,
|
|
14659
14661
|
disable: KA,
|
|
14660
14662
|
unmount: Tn,
|
|
14661
14663
|
destroy: zt
|
|
@@ -14954,7 +14956,7 @@ function PM(t, A) {
|
|
|
14954
14956
|
});
|
|
14955
14957
|
}
|
|
14956
14958
|
}
|
|
14957
|
-
function
|
|
14959
|
+
function ae() {
|
|
14958
14960
|
y.state.isEnabled = !0;
|
|
14959
14961
|
}
|
|
14960
14962
|
function KA() {
|
|
@@ -15742,7 +15744,7 @@ const JM = (t = {}) => {
|
|
|
15742
15744
|
}, [
|
|
15743
15745
|
YA(a, { symbol: "align-right" })
|
|
15744
15746
|
], 2)
|
|
15745
|
-
])) :
|
|
15747
|
+
])) : oe("", !0),
|
|
15746
15748
|
YA(hA($M), {
|
|
15747
15749
|
class: "rte-editor__content",
|
|
15748
15750
|
editor: hA(r)
|
|
@@ -16099,9 +16101,9 @@ function TD(t, A = {}) {
|
|
|
16099
16101
|
text: ""
|
|
16100
16102
|
}, c = () => u, { onError: f } = A;
|
|
16101
16103
|
function h(I, T, $, ...lA) {
|
|
16102
|
-
const
|
|
16104
|
+
const ae = c();
|
|
16103
16105
|
if (T.column += $, T.offset += $, f) {
|
|
16104
|
-
const KA = e ? Jl(
|
|
16106
|
+
const KA = e ? Jl(ae.startLoc, T) : null, JA = Ks(I, KA, {
|
|
16105
16107
|
domain: SD,
|
|
16106
16108
|
args: lA
|
|
16107
16109
|
});
|
|
@@ -16158,8 +16160,8 @@ function TD(t, A = {}) {
|
|
|
16158
16160
|
if ($ !== 2)
|
|
16159
16161
|
return !1;
|
|
16160
16162
|
Q(I);
|
|
16161
|
-
const lA = I.currentPeek() === "-" ? I.peek() : I.currentPeek(),
|
|
16162
|
-
return I.resetPeek(),
|
|
16163
|
+
const lA = I.currentPeek() === "-" ? I.peek() : I.currentPeek(), ae = x(lA);
|
|
16164
|
+
return I.resetPeek(), ae;
|
|
16163
16165
|
}
|
|
16164
16166
|
function L(I, T) {
|
|
16165
16167
|
const { currentType: $ } = T;
|
|
@@ -16200,8 +16202,8 @@ function TD(t, A = {}) {
|
|
|
16200
16202
|
const lA = () => {
|
|
16201
16203
|
const KA = I.currentPeek();
|
|
16202
16204
|
return KA === "{" ? U(I.peek()) : KA === "@" || KA === "%" || KA === "|" || KA === ":" || KA === "." || KA === or || !KA ? !1 : KA === gt ? (I.peek(), lA()) : rA(I, !1);
|
|
16203
|
-
},
|
|
16204
|
-
return I.resetPeek(),
|
|
16205
|
+
}, ae = lA();
|
|
16206
|
+
return I.resetPeek(), ae;
|
|
16205
16207
|
}
|
|
16206
16208
|
function aA(I) {
|
|
16207
16209
|
Q(I);
|
|
@@ -16216,9 +16218,9 @@ function TD(t, A = {}) {
|
|
|
16216
16218
|
};
|
|
16217
16219
|
}
|
|
16218
16220
|
function rA(I, T = !0) {
|
|
16219
|
-
const $ = (
|
|
16221
|
+
const $ = (ae = !1, KA = "", JA = !1) => {
|
|
16220
16222
|
const N = I.currentPeek();
|
|
16221
|
-
return N === "{" ? KA === "%" ? !1 :
|
|
16223
|
+
return N === "{" ? KA === "%" ? !1 : ae : N === "@" || !N ? KA === "%" ? !0 : ae : N === "%" ? (I.peek(), $(ae, "%", !0)) : N === "|" ? KA === "%" || JA ? !0 : !(KA === or || KA === gt) : N === or ? (I.peek(), $(!0, or, JA)) : N === gt ? (I.peek(), $(!0, gt, JA)) : !0;
|
|
16222
16224
|
}, lA = $();
|
|
16223
16225
|
return T && I.resetPeek(), lA;
|
|
16224
16226
|
}
|
|
@@ -16340,7 +16342,7 @@ function TD(t, A = {}) {
|
|
|
16340
16342
|
function ft(I, T, $) {
|
|
16341
16343
|
m(I, T);
|
|
16342
16344
|
let lA = "";
|
|
16343
|
-
for (let
|
|
16345
|
+
for (let ae = 0; ae < $; ae++) {
|
|
16344
16346
|
const KA = zA(I);
|
|
16345
16347
|
if (!KA) {
|
|
16346
16348
|
h(CA.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${T}${lA}${I.currentChar()}`);
|
|
@@ -16402,18 +16404,18 @@ function TD(t, A = {}) {
|
|
|
16402
16404
|
case "@":
|
|
16403
16405
|
return T.braceNest > 0 && h(CA.UNTERMINATED_CLOSING_BRACE, i(), 0), $ = xe(I, T) || B(T), T.braceNest = 0, $;
|
|
16404
16406
|
default: {
|
|
16405
|
-
let
|
|
16407
|
+
let ae = !0, KA = !0, JA = !0;
|
|
16406
16408
|
if (aA(I))
|
|
16407
16409
|
return T.braceNest > 0 && h(CA.UNTERMINATED_CLOSING_BRACE, i(), 0), $ = p(T, 1, UA(I)), T.braceNest = 0, T.inLinked = !1, $;
|
|
16408
16410
|
if (T.braceNest > 0 && (T.currentType === 5 || T.currentType === 6 || T.currentType === 7))
|
|
16409
16411
|
return h(CA.UNTERMINATED_CLOSING_BRACE, i(), 0), T.braceNest = 0, pn(I, T);
|
|
16410
|
-
if (
|
|
16412
|
+
if (ae = S(I, T))
|
|
16411
16413
|
return $ = p(T, 5, ZA(I)), E(I), $;
|
|
16412
16414
|
if (KA = y(I, T))
|
|
16413
16415
|
return $ = p(T, 6, we(I)), E(I), $;
|
|
16414
16416
|
if (JA = L(I, T))
|
|
16415
16417
|
return $ = p(T, 7, Yt(I)), E(I), $;
|
|
16416
|
-
if (!
|
|
16418
|
+
if (!ae && !KA && !JA)
|
|
16417
16419
|
return $ = p(T, 13, Dt(I)), h(CA.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, $.value), E(I), $;
|
|
16418
16420
|
break;
|
|
16419
16421
|
}
|
|
@@ -16423,8 +16425,8 @@ function TD(t, A = {}) {
|
|
|
16423
16425
|
function xe(I, T) {
|
|
16424
16426
|
const { currentType: $ } = T;
|
|
16425
16427
|
let lA = null;
|
|
16426
|
-
const
|
|
16427
|
-
switch (($ === 8 || $ === 9 || $ === 12 || $ === 10) && (
|
|
16428
|
+
const ae = I.currentChar();
|
|
16429
|
+
switch (($ === 8 || $ === 9 || $ === 12 || $ === 10) && (ae === gt || ae === or) && h(CA.INVALID_LINKED_FORMAT, i(), 0), ae) {
|
|
16428
16430
|
case "@":
|
|
16429
16431
|
return I.next(), lA = p(
|
|
16430
16432
|
T,
|
|
@@ -16447,7 +16449,7 @@ function TD(t, A = {}) {
|
|
|
16447
16449
|
/* TokenChars.LinkedDelimiter */
|
|
16448
16450
|
);
|
|
16449
16451
|
default:
|
|
16450
|
-
return aA(I) ? (lA = p(T, 1, UA(I)), T.braceNest = 0, T.inLinked = !1, lA) : F(I, T) || P(I, T) ? (E(I), xe(I, T)) : D(I, T) ? (E(I), p(T, 12, hn(I))) : M(I, T) ? (E(I),
|
|
16452
|
+
return aA(I) ? (lA = p(T, 1, UA(I)), T.braceNest = 0, T.inLinked = !1, lA) : F(I, T) || P(I, T) ? (E(I), xe(I, T)) : D(I, T) ? (E(I), p(T, 12, hn(I))) : M(I, T) ? (E(I), ae === "{" ? Sn(I, T) || lA : p(T, 11, Y(I))) : ($ === 8 && h(CA.INVALID_LINKED_FORMAT, i(), 0), T.braceNest = 0, T.inLinked = !1, pn(I, T));
|
|
16451
16453
|
}
|
|
16452
16454
|
}
|
|
16453
16455
|
function pn(I, T) {
|
|
@@ -16474,8 +16476,8 @@ function TD(t, A = {}) {
|
|
|
16474
16476
|
default: {
|
|
16475
16477
|
if (aA(I))
|
|
16476
16478
|
return $ = p(T, 1, UA(I)), T.braceNest = 0, T.inLinked = !1, $;
|
|
16477
|
-
const { isModulo:
|
|
16478
|
-
if (
|
|
16479
|
+
const { isModulo: ae, hasSpace: KA } = yA(I);
|
|
16480
|
+
if (ae)
|
|
16479
16481
|
return KA ? p(T, 0, ie(I)) : p(T, 4, WA(I));
|
|
16480
16482
|
if (rA(I))
|
|
16481
16483
|
return p(T, 0, ie(I));
|
|
@@ -18400,7 +18402,7 @@ function Wk(t = {}, A) {
|
|
|
18400
18402
|
function lA(N) {
|
|
18401
18403
|
return B.value[N] || {};
|
|
18402
18404
|
}
|
|
18403
|
-
function
|
|
18405
|
+
function ae(N, X) {
|
|
18404
18406
|
B.value[N] = X, M.numberFormats = B.value, Zm(M, N, X);
|
|
18405
18407
|
}
|
|
18406
18408
|
function KA(N, X) {
|
|
@@ -18480,7 +18482,7 @@ function Wk(t = {}, A) {
|
|
|
18480
18482
|
setMissingHandler: ee,
|
|
18481
18483
|
[Kk]: hn
|
|
18482
18484
|
};
|
|
18483
|
-
return JA.datetimeFormats = he, JA.numberFormats = $A, JA.rt = ie, JA.te = Y, JA.tm = Sn, JA.d = ZA, JA.n = we, JA.getDateTimeFormat = I, JA.setDateTimeFormat = T, JA.mergeDateTimeFormat = $, JA.getNumberFormat = lA, JA.setNumberFormat =
|
|
18485
|
+
return JA.datetimeFormats = he, JA.numberFormats = $A, JA.rt = ie, JA.te = Y, JA.tm = Sn, JA.d = ZA, JA.n = we, JA.getDateTimeFormat = I, JA.setDateTimeFormat = T, JA.mergeDateTimeFormat = $, JA.getNumberFormat = lA, JA.setNumberFormat = ae, JA.mergeNumberFormat = KA, JA[by] = n, JA[yd] = ft, JA[vd] = Dt, JA[Qd] = Mt, process.env.NODE_ENV !== "production" && (JA[Ed] = (N) => {
|
|
18484
18486
|
M.__v_emitter = N;
|
|
18485
18487
|
}, JA[Fd] = () => {
|
|
18486
18488
|
M.__v_emitter = void 0;
|
|
@@ -18954,7 +18956,7 @@ const tN = { class: "input input-dropdown" }, nN = { class: "dropdown" }, rN = {
|
|
|
18954
18956
|
key: 0,
|
|
18955
18957
|
class: "caption__count",
|
|
18956
18958
|
innerHTML: t.modelValue.length
|
|
18957
|
-
}, null, 8, iN)) :
|
|
18959
|
+
}, null, 8, iN)) : oe("", !0)
|
|
18958
18960
|
]),
|
|
18959
18961
|
_: 1
|
|
18960
18962
|
}),
|
|
@@ -19036,7 +19038,7 @@ zl.exports;
|
|
|
19036
19038
|
["partial", L],
|
|
19037
19039
|
["partialRight", F],
|
|
19038
19040
|
["rearg", P]
|
|
19039
|
-
], ZA = "[object Arguments]", we = "[object Array]", Ke = "[object AsyncFunction]", Yt = "[object Boolean]", Et = "[object Date]", ft = "[object DOMException]", Mt = "[object Error]", Dt = "[object Function]", hn = "[object GeneratorFunction]", Y = "[object Map]", UA = "[object Number]", Sn = "[object Null]", xe = "[object Object]", pn = "[object Promise]", vr = "[object Proxy]", I = "[object RegExp]", T = "[object Set]", $ = "[object String]", lA = "[object Symbol]",
|
|
19041
|
+
], ZA = "[object Arguments]", we = "[object Array]", Ke = "[object AsyncFunction]", Yt = "[object Boolean]", Et = "[object Date]", ft = "[object DOMException]", Mt = "[object Error]", Dt = "[object Function]", hn = "[object GeneratorFunction]", Y = "[object Map]", UA = "[object Number]", Sn = "[object Null]", xe = "[object Object]", pn = "[object Promise]", vr = "[object Proxy]", I = "[object RegExp]", T = "[object Set]", $ = "[object String]", lA = "[object Symbol]", ae = "[object Undefined]", KA = "[object WeakMap]", JA = "[object WeakSet]", N = "[object ArrayBuffer]", X = "[object DataView]", xA = "[object Float32Array]", ce = "[object Float64Array]", Ft = "[object Int8Array]", Tn = "[object Int16Array]", zt = "[object Int32Array]", R = "[object Uint8Array]", sA = "[object Uint8ClampedArray]", dA = "[object Uint16Array]", XA = "[object Uint32Array]", PA = /\b__p \+= '';/g, Ye = /\b(__p \+=) '' \+/g, bt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Yn = /&(?:amp|lt|gt|quot|#39);/g, Vs = /[&<>"']/g, zn = RegExp(Yn.source), Gs = RegExp(Vs.source), Vi = /<%-([\s\S]+?)%>/g, Qr = /<%([\s\S]+?)%>/g, na = /<%=([\s\S]+?)%>/g, Ws = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Gi = /^\w*$/, Nv = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ku = /[\\^$.*+?()[\]{}|]/g, Rv = RegExp(ku.source), Nu = /^\s+/, Kv = /\s/, Pv = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Vv = /\{\n\/\* \[wrapped with (.+)\] \*/, Gv = /,? & /, Wv = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, $v = /[()=,{}\[\]\/\s]/, Jv = /\\(\\)?/g, Xv = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Mh = /\w*$/, Yv = /^[-+]0x[0-9a-f]+$/i, zv = /^0b[01]+$/i, qv = /^\[object .+?Constructor\]$/, Zv = /^0o[0-7]+$/i, jv = /^(?:0|[1-9]\d*)$/, AQ = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, ra = /($^)/, eQ = /['\n\r\u2028\u2029\\]/g, ia = "\\ud800-\\udfff", tQ = "\\u0300-\\u036f", nQ = "\\ufe20-\\ufe2f", rQ = "\\u20d0-\\u20ff", Dh = tQ + nQ + rQ, kh = "\\u2700-\\u27bf", Nh = "a-z\\xdf-\\xf6\\xf8-\\xff", iQ = "\\xac\\xb1\\xd7\\xf7", sQ = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", oQ = "\\u2000-\\u206f", aQ = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Rh = "A-Z\\xc0-\\xd6\\xd8-\\xde", Kh = "\\ufe0e\\ufe0f", Ph = iQ + sQ + oQ + aQ, Ru = "['’]", lQ = "[" + ia + "]", Vh = "[" + Ph + "]", sa = "[" + Dh + "]", Gh = "\\d+", uQ = "[" + kh + "]", Wh = "[" + Nh + "]", $h = "[^" + ia + Ph + Gh + kh + Nh + Rh + "]", Ku = "\\ud83c[\\udffb-\\udfff]", cQ = "(?:" + sa + "|" + Ku + ")", Jh = "[^" + ia + "]", Pu = "(?:\\ud83c[\\udde6-\\uddff]){2}", Vu = "[\\ud800-\\udbff][\\udc00-\\udfff]", Wi = "[" + Rh + "]", Xh = "\\u200d", Yh = "(?:" + Wh + "|" + $h + ")", fQ = "(?:" + Wi + "|" + $h + ")", zh = "(?:" + Ru + "(?:d|ll|m|re|s|t|ve))?", qh = "(?:" + Ru + "(?:D|LL|M|RE|S|T|VE))?", Zh = cQ + "?", jh = "[" + Kh + "]?", dQ = "(?:" + Xh + "(?:" + [Jh, Pu, Vu].join("|") + ")" + jh + Zh + ")*", hQ = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", pQ = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Ap = jh + Zh + dQ, gQ = "(?:" + [uQ, Pu, Vu].join("|") + ")" + Ap, BQ = "(?:" + [Jh + sa + "?", sa, Pu, Vu, lQ].join("|") + ")", mQ = RegExp(Ru, "g"), wQ = RegExp(sa, "g"), Gu = RegExp(Ku + "(?=" + Ku + ")|" + BQ + Ap, "g"), CQ = RegExp([
|
|
19040
19042
|
Wi + "?" + Wh + "+" + zh + "(?=" + [Vh, Wi, "$"].join("|") + ")",
|
|
19041
19043
|
fQ + "+" + qh + "(?=" + [Vh, Wi + Yh, "$"].join("|") + ")",
|
|
19042
19044
|
Wi + "?" + Yh + "+" + zh,
|
|
@@ -20018,7 +20020,7 @@ zl.exports;
|
|
|
20018
20020
|
return EA(o) ? g : Fr(g, d(o));
|
|
20019
20021
|
}
|
|
20020
20022
|
function dt(o) {
|
|
20021
|
-
return o == null ? o === e ?
|
|
20023
|
+
return o == null ? o === e ? ae : Sn : oi && oi in fe(o) ? HF(o) : XF(o);
|
|
20022
20024
|
}
|
|
20023
20025
|
function uc(o, l) {
|
|
20024
20026
|
return o > l;
|
|
@@ -22870,7 +22872,7 @@ const L3 = /* @__PURE__ */ kA({
|
|
|
22870
22872
|
class: QA(["camera", F.value])
|
|
22871
22873
|
}, [
|
|
22872
22874
|
K("div", hN, [
|
|
22873
|
-
u.value ?
|
|
22875
|
+
u.value ? oe("", !0) : (q(), j("div", pN, [
|
|
22874
22876
|
YA(ee, { color: "#000" }, {
|
|
22875
22877
|
default: jr(() => [
|
|
22876
22878
|
K("span", gN, Fe(iA.$t("camera.waitForCameraNotification")), 1)
|
|
@@ -22905,12 +22907,12 @@ const L3 = /* @__PURE__ */ kA({
|
|
|
22905
22907
|
innerHTML: E.value,
|
|
22906
22908
|
"data-countdown": E.value
|
|
22907
22909
|
}, null, 8, CN))
|
|
22908
|
-
])) :
|
|
22910
|
+
])) : oe("", !0),
|
|
22909
22911
|
t.enableGuide && p.value && u.value ? (q(), j("img", {
|
|
22910
22912
|
key: 2,
|
|
22911
22913
|
class: "camera__guide",
|
|
22912
22914
|
src: t.guideSrc
|
|
22913
|
-
}, null, 8, yN)) :
|
|
22915
|
+
}, null, 8, yN)) : oe("", !0)
|
|
22914
22916
|
]),
|
|
22915
22917
|
K("div", vN, [
|
|
22916
22918
|
K("div", QN, [
|
|
@@ -22941,7 +22943,7 @@ const L3 = /* @__PURE__ */ kA({
|
|
|
22941
22943
|
}, [
|
|
22942
22944
|
YA(zA, { symbol: "switch-camera" })
|
|
22943
22945
|
])
|
|
22944
|
-
])) :
|
|
22946
|
+
])) : oe("", !0),
|
|
22945
22947
|
t.enableSelectDevice ? (q(), j("div", TN, [
|
|
22946
22948
|
x.value.length && h.value ? (q(), Ho(qA, {
|
|
22947
22949
|
key: 0,
|
|
@@ -22951,7 +22953,7 @@ const L3 = /* @__PURE__ */ kA({
|
|
|
22951
22953
|
text: WA.label || `Microphone ${ie + 1}`,
|
|
22952
22954
|
value: WA.deviceId
|
|
22953
22955
|
}))
|
|
22954
|
-
}, null, 8, ["modelValue", "options"])) :
|
|
22956
|
+
}, null, 8, ["modelValue", "options"])) : oe("", !0),
|
|
22955
22957
|
U.value.length ? (q(), Ho(qA, {
|
|
22956
22958
|
key: 1,
|
|
22957
22959
|
modelValue: S.value,
|
|
@@ -22960,8 +22962,8 @@ const L3 = /* @__PURE__ */ kA({
|
|
|
22960
22962
|
text: WA.label || `Camera ${ie + 1}`,
|
|
22961
22963
|
value: WA.deviceId
|
|
22962
22964
|
}))
|
|
22963
|
-
}, null, 8, ["modelValue", "options"])) :
|
|
22964
|
-
])) :
|
|
22965
|
+
}, null, 8, ["modelValue", "options"])) : oe("", !0)
|
|
22966
|
+
])) : oe("", !0)
|
|
22965
22967
|
], 2);
|
|
22966
22968
|
};
|
|
22967
22969
|
}
|
|
@@ -23526,7 +23528,7 @@ const H3 = /* @__PURE__ */ kA({
|
|
|
23526
23528
|
]),
|
|
23527
23529
|
YA(lC, { name: "fade" }, {
|
|
23528
23530
|
default: jr(() => [
|
|
23529
|
-
s.value ? (q(), j("span", xR, LR)) :
|
|
23531
|
+
s.value ? (q(), j("span", xR, LR)) : oe("", !0)
|
|
23530
23532
|
]),
|
|
23531
23533
|
_: 1
|
|
23532
23534
|
})
|
|
@@ -23798,7 +23800,7 @@ const JR = { class: "carousel d-flex" }, XR = { class: "carousel__track d-flex j
|
|
|
23798
23800
|
onClick: Pn(r, ["prevent", "stop"])
|
|
23799
23801
|
}, [
|
|
23800
23802
|
YA(c, { symbol: "chevron-left" })
|
|
23801
|
-
])) :
|
|
23803
|
+
])) : oe("", !0),
|
|
23802
23804
|
K("div", {
|
|
23803
23805
|
ref_key: "viewport",
|
|
23804
23806
|
ref: n,
|
|
@@ -23824,7 +23826,7 @@ const JR = { class: "carousel d-flex" }, XR = { class: "carousel__track d-flex j
|
|
|
23824
23826
|
onClick: Pn(i, ["prevent", "stop"])
|
|
23825
23827
|
}, [
|
|
23826
23828
|
YA(c, { symbol: "chevron-right" })
|
|
23827
|
-
])) :
|
|
23829
|
+
])) : oe("", !0)
|
|
23828
23830
|
]);
|
|
23829
23831
|
};
|
|
23830
23832
|
}
|
|
@@ -29000,7 +29002,7 @@ const N3 = /* @__PURE__ */ kA({
|
|
|
29000
29002
|
YA(c, { symbol: "facebook" }),
|
|
29001
29003
|
K("span", NG, Fe(a.$t("sharing.facebook")), 1)
|
|
29002
29004
|
], 8, kG)
|
|
29003
|
-
])) :
|
|
29005
|
+
])) : oe("", !0),
|
|
29004
29006
|
t.services.x ? (q(), j("div", RG, [
|
|
29005
29007
|
K("a", {
|
|
29006
29008
|
class: "link-sharing__link btn btn-primary",
|
|
@@ -29011,7 +29013,7 @@ const N3 = /* @__PURE__ */ kA({
|
|
|
29011
29013
|
YA(c, { symbol: "x-logo" }),
|
|
29012
29014
|
K("span", PG, Fe(a.$t("sharing.x")), 1)
|
|
29013
29015
|
], 8, KG)
|
|
29014
|
-
])) :
|
|
29016
|
+
])) : oe("", !0),
|
|
29015
29017
|
t.services.instagram ? (q(), j("div", VG, [
|
|
29016
29018
|
K("button", {
|
|
29017
29019
|
type: "button",
|
|
@@ -29021,7 +29023,7 @@ const N3 = /* @__PURE__ */ kA({
|
|
|
29021
29023
|
YA(c, { symbol: "instagram" }),
|
|
29022
29024
|
K("span", GG, Fe(a.$t("sharing.instagram")), 1)
|
|
29023
29025
|
])
|
|
29024
|
-
])) :
|
|
29026
|
+
])) : oe("", !0),
|
|
29025
29027
|
t.services.linkedin ? (q(), j("div", WG, [
|
|
29026
29028
|
K("a", {
|
|
29027
29029
|
class: "link-sharing__link btn btn-primary",
|
|
@@ -29032,7 +29034,7 @@ const N3 = /* @__PURE__ */ kA({
|
|
|
29032
29034
|
YA(c, { symbol: "linkedin" }),
|
|
29033
29035
|
K("span", JG, Fe(a.$t("sharing.linkedin")), 1)
|
|
29034
29036
|
], 8, $G)
|
|
29035
|
-
])) :
|
|
29037
|
+
])) : oe("", !0),
|
|
29036
29038
|
t.services.whatsapp && i.value ? (q(), j("div", XG, [
|
|
29037
29039
|
K("a", {
|
|
29038
29040
|
class: "link-sharing__link btn btn-primary",
|
|
@@ -29043,7 +29045,7 @@ const N3 = /* @__PURE__ */ kA({
|
|
|
29043
29045
|
YA(c, { symbol: "whatsapp" }),
|
|
29044
29046
|
K("span", zG, Fe(a.$t("sharing.whatsapp")), 1)
|
|
29045
29047
|
], 8, YG)
|
|
29046
|
-
])) :
|
|
29048
|
+
])) : oe("", !0),
|
|
29047
29049
|
t.services.clipboard ? (q(), j("div", qG, [
|
|
29048
29050
|
K("button", {
|
|
29049
29051
|
type: "button",
|
|
@@ -29053,7 +29055,7 @@ const N3 = /* @__PURE__ */ kA({
|
|
|
29053
29055
|
YA(c, { symbol: "copy" }),
|
|
29054
29056
|
K("span", ZG, Fe(a.$t("sharing.clipboard")), 1)
|
|
29055
29057
|
])
|
|
29056
|
-
])) :
|
|
29058
|
+
])) : oe("", !0),
|
|
29057
29059
|
t.services.mailto ? (q(), j("div", jG, [
|
|
29058
29060
|
K("a", {
|
|
29059
29061
|
class: "link-sharing__link btn btn-primary",
|
|
@@ -29064,7 +29066,7 @@ const N3 = /* @__PURE__ */ kA({
|
|
|
29064
29066
|
YA(c, { symbol: "mail" }),
|
|
29065
29067
|
K("span", e3, Fe(a.$t("sharing.mailto")), 1)
|
|
29066
29068
|
], 8, A3)
|
|
29067
|
-
])) :
|
|
29069
|
+
])) : oe("", !0)
|
|
29068
29070
|
])
|
|
29069
29071
|
]))
|
|
29070
29072
|
]);
|
|
@@ -29201,7 +29203,7 @@ const a3 = { class: "modal-dialog__content d-flex flex-column" }, l3 = { class:
|
|
|
29201
29203
|
}, [
|
|
29202
29204
|
K("div", a3, [
|
|
29203
29205
|
K("div", l3, [
|
|
29204
|
-
t.title ? (q(), j("h5", u3, Fe(t.title), 1)) :
|
|
29206
|
+
t.title ? (q(), j("h5", u3, Fe(t.title), 1)) : oe("", !0),
|
|
29205
29207
|
K("button", {
|
|
29206
29208
|
type: "button",
|
|
29207
29209
|
class: "btn-close ms-auto border-radius-none",
|
|
@@ -29219,7 +29221,7 @@ const a3 = { class: "modal-dialog__content d-flex flex-column" }, l3 = { class:
|
|
|
29219
29221
|
class: "btn ms-auto",
|
|
29220
29222
|
onClick: a
|
|
29221
29223
|
}, Fe(p.$t("common.close")), 1)
|
|
29222
|
-
])) :
|
|
29224
|
+
])) : oe("", !0)
|
|
29223
29225
|
])
|
|
29224
29226
|
], 34));
|
|
29225
29227
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(TA,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("vue"),require("@popperjs/core")):typeof define=="function"&&define.amd?define(["exports","vue","@popperjs/core"],p):(TA=typeof globalThis<"u"?globalThis:TA||self,p(TA.AblokComponents={},TA.Vue,TA.core))})(this,function(TA,p,uh){"use strict";const fE={class:"icon",preserveAspectRatio:"xMaxYMin"},dE=["xlink:href"],hE=p.defineComponent({__name:"svg-icon",props:{basePath:{type:String,default:"/symbol-defs.svg"},prefix:{type:String,default:"icon-"},symbol:{type:String,default:""},size:{type:String,default:"default"}},setup(t){return(A,e)=>(p.openBlock(),p.createElementBlock("i",{class:p.normalizeClass(["svg-icon",{[`svg-icon--${t.size}`]:t.size}])},[(p.openBlock(),p.createElementBlock("svg",fE,[p.createElementVNode("use",{"xlink:href":`${t.basePath}#${t.prefix}${t.symbol}`,"xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0",y:"0"},null,8,dE)]))],2))}}),RG="",pE={class:"loading-spinner d-block"},gE=p.createElementVNode("span",{class:"loading-spinner__animation"},[p.createElementVNode("svg",{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 100"},[p.createElementVNode("path",{d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"},[p.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})])])],-1),BE=p.defineComponent({__name:"loading-spinner",props:{color:{type:String,default:"#fff"}},setup(t){return(A,e)=>(p.openBlock(),p.createElementBlock("span",pE,[gE,p.renderSlot(A.$slots,"default")]))}}),KG="",mE=["src","alt"],wE=p.defineComponent({__name:"base-image",props:{src:{type:String,default:'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>'},alt:{type:String,default:""},spinner:{type:Boolean,default:!1},zoom:{type:Boolean,default:!1}},setup(t){const A=p.ref(!1);return(e,n)=>{const r=p.resolveComponent("loading-spinner");return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["base-image",{"base-image--zoom":t.zoom}])},[t.spinner&&!A.value?(p.openBlock(),p.createBlock(r,{key:0})):p.createCommentVNode("",!0),p.createElementVNode("img",{class:p.normalizeClass(["",{"opacity-0":!A.value,"opacity-1":A.value}]),src:t.src,alt:t.alt,onLoad:n[0]||(n[0]=()=>A.value=!0)},null,42,mE)],2)}}}),PG="",CE=p.defineComponent({__name:"base-headline",props:{tag:{},size:{},variant:{},text:{},className:{}},setup(t){const A=t,e=p.computed(()=>A.tag||"p");return(n,r)=>(p.openBlock(),p.createBlock(p.resolveDynamicComponent(e.value),{class:p.normalizeClass(["headline",`${n.size} headline--${n.size}${n.className||""}`])},{default:p.withCtx(()=>[p.renderSlot(n.$slots,"default",{},()=>[p.createTextVNode(p.toDisplayString(n.text),1)])]),_:3},8,["class"]))}}),yE=["innerHTML"],EE=p.defineComponent({__name:"base-paragraph",props:{size:{},variant:{},text:{},className:{}},setup(t){return(A,e)=>(p.openBlock(),p.createElementBlock("p",{class:p.normalizeClass(["base-paragraph",`${A.size||""} ${A.className||""}`]),innerHTML:A.text},null,10,yE))}});function Be(){return(new Date().valueOf()+Math.random()).toString(36).replace(".","")}const QE={class:"accordion-item"},FE=["id"],bE=["data-bs-target","aria-controls"],UE={class:"flex-grow-1"},vE=["id","aria-labelledby","data-bs-parent"],IE={class:"accordion-body"},SE=["innerHTML"],TE=p.defineComponent({__name:"accordion-item",props:{id:{type:String,default:()=>Be()},modelValue:{type:Boolean,default:!1},title:{type:String,default:"Accordion Title"},body:{type:String,default:"<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nisi aut, nobis inventore repudiandae quo laboriosam. Dicta placeat ullam harum optio expedita. Harum fugiat suscipit sapiente quos, molestias neque eaque omnis?</p>"},parent:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A;function r(){n("update:modelValue",!e.modelValue)}return(i,s)=>(p.openBlock(),p.createElementBlock("div",QE,[p.createElementVNode("div",{class:"accordion-header",id:`heading${t.id}`},[p.createElementVNode("button",{class:p.normalizeClass(["accordion-button",!t.modelValue&&"collapsed"]),type:"button","data-bs-toggle":"collapse","data-bs-target":`#target${t.id}`,"aria-expanded":"true","aria-controls":`target${t.id}`,onClick:r},[p.renderSlot(i.$slots,"toggle",{},()=>[p.createElementVNode("span",UE,p.toDisplayString(t.title),1)])],10,bE)],8,FE),p.createElementVNode("div",{class:p.normalizeClass(["accordion-collapse collapse",t.modelValue&&"show"]),id:`target${t.id}`,"aria-labelledby":`heading${t.id}`,"data-bs-parent":t.parent},[p.createElementVNode("div",IE,[p.renderSlot(i.$slots,"body",{},()=>[p.createElementVNode("article",{innerHTML:t.body},null,8,SE)])])],10,vE)]))}}),VG="",_E=(t,A)=>{const e=t.__vccOpts||t;for(const[n,r]of A)e[n]=r;return e},xE={},OE={class:"accordion"};function LE(t,A){return p.openBlock(),p.createElementBlock("div",OE,[p.renderSlot(t.$slots,"default")])}const HE=_E(xE,[["render",LE]]),kE=["type","disabled"],NE=p.defineComponent({__name:"base-button",props:{type:{type:null},caption:{type:String},variant:{type:String},color:{type:String,default:"primary"},size:{type:String},icon:{type:String},disabled:{type:Boolean,default:!1},pending:{type:Boolean,default:!1},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},circle:{type:Boolean,default:!1}},setup(t){const A=t,e=p.computed(()=>A.caption&&!A.circle);return(n,r)=>{const i=p.resolveComponent("loading-spinner"),s=p.resolveComponent("svg-icon");return p.openBlock(),p.createElementBlock("button",{type:t.type,disabled:t.disabled,class:p.normalizeClass(["btn",{disabled:t.disabled,pending:t.pending,rounded:t.rounded,"rounded-circle":t.circle,[`btn-${t.color}`]:!t.outlined,[`btn-outline-${t.color}`]:t.outlined,"x-large":t.size==="x-large",large:t.size==="large",small:t.size==="small","x-small":t.size==="x-small"}])},[t.pending?p.renderSlot(n.$slots,"pending-icon",{key:0},()=>[p.createVNode(i)]):p.createCommentVNode("",!0),p.renderSlot(n.$slots,"default",{},()=>[t.icon?(p.openBlock(),p.createBlock(s,{key:0,symbol:t.icon,class:"base-button__caption"},null,8,["symbol"])):p.createCommentVNode("",!0),e.value?(p.openBlock(),p.createElementBlock("span",{key:1,class:p.normalizeClass(["base-button__caption",{"icon-padding":t.icon}])},p.toDisplayString(t.caption),3)):p.createCommentVNode("",!0)])],10,kE)}}}),GG="",ME={class:"input-group input__input-group"},DE=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","true-value","false-value","aria-label","role","autocomplete"],RE=["for","innerHTML"],KE=p.defineComponent({__name:"base-input",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},role:{type:String,default:"presentation"},autocomplete:{type:String,default:"off"}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=p.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["input",`input--${t.type}`])},[p.createElementVNode("div",ME,[p.renderSlot(i.$slots,"input-prepend",{slotScope:"props"}),p.withDirectives(p.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,"true-value":t.trueValue,"false-value":t.falseValue,class:p.normalizeClass(["form-control",{"form-check-input":t.type==="checkbox"}]),"aria-label":t.label,role:t.role,autocomplete:t.autocomplete},null,10,DE),[[p.vModelDynamic,r.value]]),p.renderSlot(i.$slots,"input-append",{slotScope:"props"})]),p.renderSlot(i.$slots,"label",{},()=>[t.label?(p.openBlock(),p.createElementBlock("label",{key:0,for:t.id,class:p.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,RE)):p.createCommentVNode("",!0)])],2))}}),WG="",PE={class:"input input--textarea"},VE=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","aria-label"],GE=["for","innerHTML"],WE=p.defineComponent({__name:"input-textarea",props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},checked:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=p.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(p.openBlock(),p.createElementBlock("div",PE,[p.renderSlot(i.$slots,"input-prepend"),p.withDirectives(p.createElementVNode("textarea",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,class:p.normalizeClass(["form-control",{}]),"aria-label":t.label},null,8,VE),[[p.vModelText,r.value]]),p.renderSlot(i.$slots,"input-append"),p.renderSlot(i.$slots,"label",{},()=>[p.createElementVNode("label",{for:t.id,class:p.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,GE)])]))}}),$E=["value","id","name","required","disabled","true-value","false-value"],JE=["for","innerHTML"],XE=p.createElementVNode("span",{class:"input__error"},"error",-1),YE=p.defineComponent({__name:"input-checkbox",props:{id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:[Boolean,Array]},value:{type:[String,Object]},checked:{type:Boolean},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1}},emits:["update:modelValue","update:checked"],setup(t,{emit:A}){const e=t,n=A,r=p.computed({get(){return e.modelValue||e.checked},set(i){n("update:checked",i),n("update:modelValue",i)}});return(i,s)=>(p.openBlock(),p.createElementBlock("div",{class:"form-check input input--checkbox",onClick:s[1]||(s[1]=p.withModifiers(a=>i.void,["stop"]))},[p.withDirectives(p.createElementVNode("input",{ref:"input","onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),value:t.value,id:t.id,name:t.name,type:"checkbox",required:t.required,disabled:t.disabled,class:"form-check-input","true-value":t.trueValue,"false-value":t.falseValue},null,8,$E),[[p.vModelCheckbox,r.value]]),p.createElementVNode("label",{class:"input__label form-check-label",for:t.id,innerHTML:t.label},null,8,JE),XE]))}}),$G=`:root,*:before,*:after{--border-color: #ced4da;--border-radius: .25rem}.input--checkbox{flex-flow:row;gap:.5rem}.input--checkbox input{order:0}
|
|
1
|
+
(function(TA,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("vue"),require("@popperjs/core")):typeof define=="function"&&define.amd?define(["exports","vue","@popperjs/core"],p):(TA=typeof globalThis<"u"?globalThis:TA||self,p(TA.AblokComponents={},TA.Vue,TA.core))})(this,function(TA,p,uh){"use strict";const fE={class:"icon",preserveAspectRatio:"xMaxYMin"},dE=["xlink:href"],hE=p.defineComponent({__name:"svg-icon",props:{basePath:{type:String,default:"/symbol-defs.svg"},prefix:{type:String,default:"icon-"},symbol:{type:String,default:""},size:{type:String,default:"default"}},setup(t){return(A,e)=>(p.openBlock(),p.createElementBlock("i",{class:p.normalizeClass(["svg-icon",{[`svg-icon--${t.size}`]:t.size}])},[(p.openBlock(),p.createElementBlock("svg",fE,[p.createElementVNode("use",{"xlink:href":`${t.basePath}#${t.prefix}${t.symbol}`,"xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0",y:"0"},null,8,dE)]))],2))}}),RG="",pE={class:"loading-spinner d-block"},gE=p.createElementVNode("span",{class:"loading-spinner__animation"},[p.createElementVNode("svg",{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 100"},[p.createElementVNode("path",{d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"},[p.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})])])],-1),BE=p.defineComponent({__name:"loading-spinner",props:{color:{type:String,default:"#fff"}},setup(t){return(A,e)=>(p.openBlock(),p.createElementBlock("span",pE,[gE,p.renderSlot(A.$slots,"default")]))}}),KG="",mE=["src","alt"],wE=p.defineComponent({__name:"base-image",props:{src:{type:String,default:'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>',required:!0},alt:{type:String,default:""},spinner:{type:Boolean,default:!1},zoom:{type:Boolean,default:!1}},setup(t){const A=p.ref(!1);return(e,n)=>{const r=p.resolveComponent("loading-spinner");return t.src?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(["base-image",{"base-image--zoom":t.zoom}])},[t.spinner&&!A.value?(p.openBlock(),p.createBlock(r,{key:0})):p.createCommentVNode("",!0),p.createElementVNode("img",{class:p.normalizeClass(["",{"opacity-0":!A.value,"opacity-1":A.value}]),src:t.src,alt:t.alt,onLoad:n[0]||(n[0]=()=>A.value=!0)},null,42,mE)],2)):p.createCommentVNode("",!0)}}}),PG="",CE=p.defineComponent({__name:"base-headline",props:{tag:{},size:{},variant:{},text:{},className:{}},setup(t){const A=t,e=p.computed(()=>A.tag||"p");return(n,r)=>(p.openBlock(),p.createBlock(p.resolveDynamicComponent(e.value),{class:p.normalizeClass(["headline",`${n.size} headline--${n.size}${n.className||""}`])},{default:p.withCtx(()=>[p.renderSlot(n.$slots,"default",{},()=>[p.createTextVNode(p.toDisplayString(n.text),1)])]),_:3},8,["class"]))}}),yE=["innerHTML"],EE=p.defineComponent({__name:"base-paragraph",props:{size:{},variant:{},text:{},className:{}},setup(t){return(A,e)=>(p.openBlock(),p.createElementBlock("p",{class:p.normalizeClass(["base-paragraph",`${A.size||""} ${A.className||""}`]),innerHTML:A.text},null,10,yE))}});function Be(){return(new Date().valueOf()+Math.random()).toString(36).replace(".","")}const QE={class:"accordion-item"},FE=["id"],bE=["data-bs-target","aria-controls"],UE={class:"flex-grow-1"},vE=["id","aria-labelledby","data-bs-parent"],IE={class:"accordion-body"},SE=["innerHTML"],TE=p.defineComponent({__name:"accordion-item",props:{id:{type:String,default:()=>Be()},modelValue:{type:Boolean,default:!1},title:{type:String,default:"Accordion Title"},body:{type:String,default:"<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nisi aut, nobis inventore repudiandae quo laboriosam. Dicta placeat ullam harum optio expedita. Harum fugiat suscipit sapiente quos, molestias neque eaque omnis?</p>"},parent:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A;function r(){n("update:modelValue",!e.modelValue)}return(i,s)=>(p.openBlock(),p.createElementBlock("div",QE,[p.createElementVNode("div",{class:"accordion-header",id:`heading${t.id}`},[p.createElementVNode("button",{class:p.normalizeClass(["accordion-button",!t.modelValue&&"collapsed"]),type:"button","data-bs-toggle":"collapse","data-bs-target":`#target${t.id}`,"aria-expanded":"true","aria-controls":`target${t.id}`,onClick:r},[p.renderSlot(i.$slots,"toggle",{},()=>[p.createElementVNode("span",UE,p.toDisplayString(t.title),1)])],10,bE)],8,FE),p.createElementVNode("div",{class:p.normalizeClass(["accordion-collapse collapse",t.modelValue&&"show"]),id:`target${t.id}`,"aria-labelledby":`heading${t.id}`,"data-bs-parent":t.parent},[p.createElementVNode("div",IE,[p.renderSlot(i.$slots,"body",{},()=>[p.createElementVNode("article",{innerHTML:t.body},null,8,SE)])])],10,vE)]))}}),VG="",_E=(t,A)=>{const e=t.__vccOpts||t;for(const[n,r]of A)e[n]=r;return e},xE={},OE={class:"accordion"};function LE(t,A){return p.openBlock(),p.createElementBlock("div",OE,[p.renderSlot(t.$slots,"default")])}const HE=_E(xE,[["render",LE]]),kE=["type","disabled"],NE=p.defineComponent({__name:"base-button",props:{type:{type:null},caption:{type:String},variant:{type:String},color:{type:String,default:"primary"},size:{type:String},icon:{type:String},disabled:{type:Boolean,default:!1},pending:{type:Boolean,default:!1},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},circle:{type:Boolean,default:!1}},setup(t){const A=t,e=p.computed(()=>A.caption&&!A.circle);return(n,r)=>{const i=p.resolveComponent("loading-spinner"),s=p.resolveComponent("svg-icon");return p.openBlock(),p.createElementBlock("button",{type:t.type,disabled:t.disabled,class:p.normalizeClass(["btn",{disabled:t.disabled,pending:t.pending,rounded:t.rounded,"rounded-circle":t.circle,[`btn-${t.color}`]:!t.outlined,[`btn-outline-${t.color}`]:t.outlined,"x-large":t.size==="x-large",large:t.size==="large",small:t.size==="small","x-small":t.size==="x-small"}])},[t.pending?p.renderSlot(n.$slots,"pending-icon",{key:0},()=>[p.createVNode(i)]):p.createCommentVNode("",!0),p.renderSlot(n.$slots,"default",{},()=>[t.icon?(p.openBlock(),p.createBlock(s,{key:0,symbol:t.icon,class:"base-button__caption"},null,8,["symbol"])):p.createCommentVNode("",!0),e.value?(p.openBlock(),p.createElementBlock("span",{key:1,class:p.normalizeClass(["base-button__caption",{"icon-padding":t.icon}])},p.toDisplayString(t.caption),3)):p.createCommentVNode("",!0)])],10,kE)}}}),GG="",ME={class:"input-group input__input-group"},DE=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","true-value","false-value","aria-label","role","autocomplete"],RE=["for","innerHTML"],KE=p.defineComponent({__name:"base-input",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},role:{type:String,default:"presentation"},autocomplete:{type:String,default:"off"}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=p.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["input",`input--${t.type}`])},[p.createElementVNode("div",ME,[p.renderSlot(i.$slots,"input-prepend",{slotScope:"props"}),p.withDirectives(p.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,"true-value":t.trueValue,"false-value":t.falseValue,class:p.normalizeClass(["form-control",{"form-check-input":t.type==="checkbox"}]),"aria-label":t.label,role:t.role,autocomplete:t.autocomplete},null,10,DE),[[p.vModelDynamic,r.value]]),p.renderSlot(i.$slots,"input-append",{slotScope:"props"})]),p.renderSlot(i.$slots,"label",{},()=>[t.label?(p.openBlock(),p.createElementBlock("label",{key:0,for:t.id,class:p.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,RE)):p.createCommentVNode("",!0)])],2))}}),WG="",PE={class:"input input--textarea"},VE=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","aria-label"],GE=["for","innerHTML"],WE=p.defineComponent({__name:"input-textarea",props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},checked:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=p.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(p.openBlock(),p.createElementBlock("div",PE,[p.renderSlot(i.$slots,"input-prepend"),p.withDirectives(p.createElementVNode("textarea",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,class:p.normalizeClass(["form-control",{}]),"aria-label":t.label},null,8,VE),[[p.vModelText,r.value]]),p.renderSlot(i.$slots,"input-append"),p.renderSlot(i.$slots,"label",{},()=>[p.createElementVNode("label",{for:t.id,class:p.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,GE)])]))}}),$E=["value","id","name","required","disabled","true-value","false-value"],JE=["for","innerHTML"],XE=p.createElementVNode("span",{class:"input__error"},"error",-1),YE=p.defineComponent({__name:"input-checkbox",props:{id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:[Boolean,Array]},value:{type:[String,Object]},checked:{type:Boolean},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1}},emits:["update:modelValue","update:checked"],setup(t,{emit:A}){const e=t,n=A,r=p.computed({get(){return e.modelValue||e.checked},set(i){n("update:checked",i),n("update:modelValue",i)}});return(i,s)=>(p.openBlock(),p.createElementBlock("div",{class:"form-check input input--checkbox",onClick:s[1]||(s[1]=p.withModifiers(a=>i.void,["stop"]))},[p.withDirectives(p.createElementVNode("input",{ref:"input","onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),value:t.value,id:t.id,name:t.name,type:"checkbox",required:t.required,disabled:t.disabled,class:"form-check-input","true-value":t.trueValue,"false-value":t.falseValue},null,8,$E),[[p.vModelCheckbox,r.value]]),p.createElementVNode("label",{class:"input__label form-check-label",for:t.id,innerHTML:t.label},null,8,JE),XE]))}}),$G=`:root,*:before,*:after{--border-color: #ced4da;--border-radius: .25rem}.input--checkbox{flex-flow:row;gap:.5rem}.input--checkbox input{order:0}
|
|
2
2
|
`,zE={class:"input-group input__input-group"},qE=["id","name","placeholder","pattern","disabled","read-only","required","aria-label"],ZE=["for","innerHTML"],jE=p.defineComponent({__name:"input-datetime",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=p.computed({get(){const i=e.modelValue&&new Date(`${e.modelValue}Z`),s=i&&new Date(i.getTime()+new Date().getTimezoneOffset()*-60*1e3).toISOString();return s&&s.replace("Z","")},set(i){const s=i&&new Date(i);i=s&&s.toISOString(),n("update:modelValue",i&&i.replace("Z",""))}});return(i,s)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["input",`input--${t.type}`])},[p.createElementVNode("div",zE,[p.renderSlot(i.$slots,"input-prepend",{slotScope:"props"}),p.withDirectives(p.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:"datetime-local",id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,class:"form-control","aria-label":t.label},null,8,qE),[[p.vModelText,r.value]]),p.renderSlot(i.$slots,"input-append",{slotScope:"props"})]),p.renderSlot(i.$slots,"label",{},()=>[t.label?(p.openBlock(),p.createElementBlock("label",{key:0,for:t.id,class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,ZE)):p.createCommentVNode("",!0)])],2))}}),AQ={class:"check-group"},eQ=["id","name","value","disabled","read-only","required"],tQ=["for","innerHTML"],nQ=p.defineComponent({__name:"check-group",props:{modelValue:{type:null,default:()=>[]},options:{type:Array,required:!0},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},label:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A;p.ref([]);const r=p.computed({get(){return e.modelValue},set(s){n("update:modelValue",s)}}),i=p.computed(()=>e.options&&e.options.map(s=>(s=typeof s=="string"?{text:s,value:s}:s,{...s,active:e.modelValue&&e.modelValue.includes(s.value)})));return(s,a)=>(p.openBlock(),p.createElementBlock("div",AQ,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.value,(c,u)=>(p.openBlock(),p.createElementBlock("div",{key:u,class:"form-check"},[p.withDirectives(p.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":a[0]||(a[0]=f=>r.value=f),id:`${t.id}-${u}`,name:t.name,class:"form-check-input",value:c.value||c,disabled:t.disabled,"read-only":t.readOnly,required:t.required},null,8,eQ),[[p.vModelCheckbox,r.value]]),p.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${u}`,innerHTML:c.text},null,8,tQ)]))),128))]))}}),JG="",rQ={class:"input radio-group"},iQ=["id","name","value","checked","disabled","read-only","required","onChange"],sQ=["for","innerHTML"],oQ=["for"],aQ=p.defineComponent({__name:"radio-group",props:{modelValue:{default:!1},options:{type:Array,default:[]},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(t,{emit:A}){const e=t,n=A;p.ref(e.options.map(i=>i.value===e.modelValue));function r(i){console.log("asdfa",i),n("update:modelValue",i)}return p.onBeforeMount(()=>{}),(i,s)=>(p.openBlock(),p.createElementBlock("div",rQ,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(t.options,(a,c)=>(p.openBlock(),p.createElementBlock("div",{key:c,class:"form-check"},[p.createElementVNode("input",{type:"radio",id:`${t.id}-${c}`,name:t.name,class:"form-check-input",value:a.value||a,checked:a.value?a.value===t.modelValue:a===t.modelValue,disabled:t.disabled,"read-only":t.readOnly,required:t.required,onChange:u=>r(a)},null,40,iQ),p.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${c}`,innerHTML:t.label},null,8,sQ)]))),128)),p.renderSlot(i.$slots,"label",{},()=>[t.label?(p.openBlock(),p.createElementBlock("label",{key:0,for:t.id},p.toDisplayString(t.label),9,oQ)):p.createCommentVNode("",!0)])]))}}),XG="",lQ=["id","name","multiple","accept","disabled"],cQ={class:"input__input-group input-group"},uQ=["value","id","name","disabled"],fQ=["for","disabled"],dQ=p.createElementVNode("span",{class:"btn btn-outline-dark"},"Select File",-1),hQ=["for"],pQ=["innerHTML"],gQ=p.defineComponent({__name:"input-file",props:{modelValue:{type:Array,default:[]},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},multiple:{type:Boolean,default:!1},accept:{type:String}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A;function r(c){const u=c.target&&c.target.files;u&&(s.splice(0,s.length),Array.from(u).forEach(f=>{s.push(f)}))}const i=p.ref(),s=p.reactive([]),a=p.computed(()=>s&&s.map(c=>c.name));return p.computed(()=>s.map(c=>URL.createObjectURL(c))),p.watch(()=>e.modelValue,(c,u)=>{c.length===0&&(i.value.value=null)},{deep:!0}),p.watch(()=>s,(c,u)=>{n("update:modelValue",c)},{deep:!0}),(c,u)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["input input-file","input-file--primary"])},[p.createElementVNode("input",{ref_key:"input",ref:i,type:"file",id:t.id,name:t.name,class:"d-none",onChange:r,multiple:t.multiple,accept:t.accept,disabled:t.disabled},null,40,lQ),p.createElementVNode("div",cQ,[p.renderSlot(c.$slots,"input-prepend"),p.createElementVNode("input",{type:"text",value:a.value,id:t.id,name:t.name,class:"form-control",disabled:t.disabled},null,8,uQ),p.renderSlot(c.$slots,"input-append",{},()=>[p.createElementVNode("label",{for:t.id,disabled:t.disabled},[p.renderSlot(c.$slots,"button",{},()=>[dQ])],8,fQ)])]),p.createElementVNode("label",{for:t.id},[p.renderSlot(c.$slots,"label",{},()=>[p.createElementVNode("span",{class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,pQ)])],8,hQ)]))}});function De(t){this.content=t}De.prototype={constructor:De,find:function(t){for(var A=0;A<this.content.length;A+=2)if(this.content[A]===t)return A;return-1},get:function(t){var A=this.find(t);return A==-1?void 0:this.content[A+1]},update:function(t,A,e){var n=e&&e!=t?this.remove(e):this,r=n.find(t),i=n.content.slice();return r==-1?i.push(e||t,A):(i[r+1]=A,e&&(i[r]=e)),new De(i)},remove:function(t){var A=this.find(t);if(A==-1)return this;var e=this.content.slice();return e.splice(A,2),new De(e)},addToStart:function(t,A){return new De([t,A].concat(this.remove(t).content))},addToEnd:function(t,A){var e=this.remove(t).content.slice();return e.push(t,A),new De(e)},addBefore:function(t,A,e){var n=this.remove(A),r=n.content.slice(),i=n.find(t);return r.splice(i==-1?r.length:i,0,A,e),new De(r)},forEach:function(t){for(var A=0;A<this.content.length;A+=2)t(this.content[A],this.content[A+1])},prepend:function(t){return t=De.from(t),t.size?new De(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=De.from(t),t.size?new De(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var A=this;t=De.from(t);for(var e=0;e<t.content.length;e+=2)A=A.remove(t.content[e]);return A},toObject:function(){var t={};return this.forEach(function(A,e){t[A]=e}),t},get size(){return this.content.length>>1}},De.from=function(t){if(t instanceof De)return t;var A=[];if(t)for(var e in t)A.push(e,t[e]);return new De(A)};function fh(t,A,e){for(let n=0;;n++){if(n==t.childCount||n==A.childCount)return t.childCount==A.childCount?null:e;let r=t.child(n),i=A.child(n);if(r==i){e+=r.nodeSize;continue}if(!r.sameMarkup(i))return e;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)e++;return e}if(r.content.size||i.content.size){let s=fh(r.content,i.content,e+1);if(s!=null)return s}e+=r.nodeSize}}function dh(t,A,e,n){for(let r=t.childCount,i=A.childCount;;){if(r==0||i==0)return r==i?null:{a:e,b:n};let s=t.child(--r),a=A.child(--i),c=s.nodeSize;if(s==a){e-=c,n-=c;continue}if(!s.sameMarkup(a))return{a:e,b:n};if(s.isText&&s.text!=a.text){let u=0,f=Math.min(s.text.length,a.text.length);for(;u<f&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,e--,n--;return{a:e,b:n}}if(s.content.size||a.content.size){let u=dh(s.content,a.content,e-1,n-1);if(u)return u}e-=c,n-=c}}class Y{constructor(A,e){if(this.content=A,this.size=e||0,e==null)for(let n=0;n<A.length;n++)this.size+=A[n].nodeSize}nodesBetween(A,e,n,r=0,i){for(let s=0,a=0;a<e;s++){let c=this.content[s],u=a+c.nodeSize;if(u>A&&n(c,r+a,i||null,s)!==!1&&c.content.size){let f=a+1;c.nodesBetween(Math.max(0,A-f),Math.min(c.content.size,e-f),n,r+f)}a=u}}descendants(A){this.nodesBetween(0,this.size,A)}textBetween(A,e,n,r){let i="",s=!0;return this.nodesBetween(A,e,(a,c)=>{let u=a.isText?a.text.slice(Math.max(A,c)-c,e-c):a.isLeaf?r?typeof r=="function"?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&u||a.isTextblock)&&n&&(s?s=!1:i+=n),i+=u},0),i}append(A){if(!A.size)return this;if(!this.size)return A;let e=this.lastChild,n=A.firstChild,r=this.content.slice(),i=0;for(e.isText&&e.sameMarkup(n)&&(r[r.length-1]=e.withText(e.text+n.text),i=1);i<A.content.length;i++)r.push(A.content[i]);return new Y(r,this.size+A.size)}cut(A,e=this.size){if(A==0&&e==this.size)return this;let n=[],r=0;if(e>A)for(let i=0,s=0;s<e;i++){let a=this.content[i],c=s+a.nodeSize;c>A&&((s<A||c>e)&&(a.isText?a=a.cut(Math.max(0,A-s),Math.min(a.text.length,e-s)):a=a.cut(Math.max(0,A-s-1),Math.min(a.content.size,e-s-1))),n.push(a),r+=a.nodeSize),s=c}return new Y(n,r)}cutByIndex(A,e){return A==e?Y.empty:A==0&&e==this.content.length?this:new Y(this.content.slice(A,e))}replaceChild(A,e){let n=this.content[A];if(n==e)return this;let r=this.content.slice(),i=this.size+e.nodeSize-n.nodeSize;return r[A]=e,new Y(r,i)}addToStart(A){return new Y([A].concat(this.content),this.size+A.nodeSize)}addToEnd(A){return new Y(this.content.concat(A),this.size+A.nodeSize)}eq(A){if(this.content.length!=A.content.length)return!1;for(let e=0;e<this.content.length;e++)if(!this.content[e].eq(A.content[e]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(A){let e=this.content[A];if(!e)throw new RangeError("Index "+A+" out of range for "+this);return e}maybeChild(A){return this.content[A]||null}forEach(A){for(let e=0,n=0;e<this.content.length;e++){let r=this.content[e];A(r,n,e),n+=r.nodeSize}}findDiffStart(A,e=0){return fh(this,A,e)}findDiffEnd(A,e=this.size,n=A.size){return dh(this,A,e,n)}findIndex(A,e=-1){if(A==0)return ko(0,A);if(A==this.size)return ko(this.content.length,A);if(A>this.size||A<0)throw new RangeError(`Position ${A} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),s=r+i.nodeSize;if(s>=A)return s==A||e>0?ko(n+1,s):ko(n,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(A=>A.toJSON()):null}static fromJSON(A,e){if(!e)return Y.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new Y(e.map(A.nodeFromJSON))}static fromArray(A){if(!A.length)return Y.empty;let e,n=0;for(let r=0;r<A.length;r++){let i=A[r];n+=i.nodeSize,r&&i.isText&&A[r-1].sameMarkup(i)?(e||(e=A.slice(0,r)),e[e.length-1]=i.withText(e[e.length-1].text+i.text)):e&&e.push(i)}return new Y(e||A,n)}static from(A){if(!A)return Y.empty;if(A instanceof Y)return A;if(Array.isArray(A))return this.fromArray(A);if(A.attrs)return new Y([A],A.nodeSize);throw new RangeError("Can not convert "+A+" to a Fragment"+(A.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Y.empty=new Y([],0);const gc={index:0,offset:0};function ko(t,A){return gc.index=t,gc.offset=A,gc}function No(t,A){if(t===A)return!0;if(!(t&&typeof t=="object")||!(A&&typeof A=="object"))return!1;let e=Array.isArray(t);if(Array.isArray(A)!=e)return!1;if(e){if(t.length!=A.length)return!1;for(let n=0;n<t.length;n++)if(!No(t[n],A[n]))return!1}else{for(let n in t)if(!(n in A)||!No(t[n],A[n]))return!1;for(let n in A)if(!(n in t))return!1}return!0}let jA=class ah{constructor(A,e){this.type=A,this.attrs=e}addToSet(A){let e,n=!1;for(let r=0;r<A.length;r++){let i=A[r];if(this.eq(i))return A;if(this.type.excludes(i.type))e||(e=A.slice(0,r));else{if(i.type.excludes(this.type))return A;!n&&i.type.rank>this.type.rank&&(e||(e=A.slice(0,r)),e.push(this),n=!0),e&&e.push(i)}}return e||(e=A.slice()),n||e.push(this),e}removeFromSet(A){for(let e=0;e<A.length;e++)if(this.eq(A[e]))return A.slice(0,e).concat(A.slice(e+1));return A}isInSet(A){for(let e=0;e<A.length;e++)if(this.eq(A[e]))return!0;return!1}eq(A){return this==A||this.type==A.type&&No(this.attrs,A.attrs)}toJSON(){let A={type:this.type.name};for(let e in this.attrs){A.attrs=this.attrs;break}return A}static fromJSON(A,e){if(!e)throw new RangeError("Invalid input for Mark.fromJSON");let n=A.marks[e.type];if(!n)throw new RangeError(`There is no mark type ${e.type} in this schema`);return n.create(e.attrs)}static sameSet(A,e){if(A==e)return!0;if(A.length!=e.length)return!1;for(let n=0;n<A.length;n++)if(!A[n].eq(e[n]))return!1;return!0}static setFrom(A){if(!A||Array.isArray(A)&&A.length==0)return ah.none;if(A instanceof ah)return[A];let e=A.slice();return e.sort((n,r)=>n.type.rank-r.type.rank),e}};jA.none=[];class Mo extends Error{}class j{constructor(A,e,n){this.content=A,this.openStart=e,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(A,e){let n=ph(this.content,A+this.openStart,e);return n&&new j(n,this.openStart,this.openEnd)}removeBetween(A,e){return new j(hh(this.content,A+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(A){return this.content.eq(A.content)&&this.openStart==A.openStart&&this.openEnd==A.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let A={content:this.content.toJSON()};return this.openStart>0&&(A.openStart=this.openStart),this.openEnd>0&&(A.openEnd=this.openEnd),A}static fromJSON(A,e){if(!e)return j.empty;let n=e.openStart||0,r=e.openEnd||0;if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new j(Y.fromJSON(A,e.content),n,r)}static maxOpen(A,e=!0){let n=0,r=0;for(let i=A.firstChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=A.lastChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.lastChild)r++;return new j(A,n,r)}}j.empty=new j(Y.empty,0,0);function hh(t,A,e){let{index:n,offset:r}=t.findIndex(A),i=t.maybeChild(n),{index:s,offset:a}=t.findIndex(e);if(r==A||i.isText){if(a!=e&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,A).append(t.cut(e))}if(n!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(n,i.copy(hh(i.content,A-r-1,e-r-1)))}function ph(t,A,e,n){let{index:r,offset:i}=t.findIndex(A),s=t.maybeChild(r);if(i==A||s.isText)return n&&!n.canReplace(r,r,e)?null:t.cut(0,A).append(e).append(t.cut(A));let a=ph(s.content,A-i-1,e);return a&&t.replaceChild(r,s.copy(a))}function BQ(t,A,e){if(e.openStart>t.depth)throw new Mo("Inserted content deeper than insertion position");if(t.depth-e.openStart!=A.depth-e.openEnd)throw new Mo("Inconsistent open depths");return gh(t,A,e,0)}function gh(t,A,e,n){let r=t.index(n),i=t.node(n);if(r==A.index(n)&&n<t.depth-e.openStart){let s=gh(t,A,e,n+1);return i.copy(i.content.replaceChild(r,s))}else if(e.content.size)if(!e.openStart&&!e.openEnd&&t.depth==n&&A.depth==n){let s=t.parent,a=s.content;return Gr(s,a.cut(0,t.parentOffset).append(e.content).append(a.cut(A.parentOffset)))}else{let{start:s,end:a}=mQ(e,t);return Gr(i,mh(t,s,a,A,n))}else return Gr(i,Do(t,A,n))}function Bh(t,A){if(!A.type.compatibleContent(t.type))throw new Mo("Cannot join "+A.type.name+" onto "+t.type.name)}function Bc(t,A,e){let n=t.node(e);return Bh(n,A.node(e)),n}function Vr(t,A){let e=A.length-1;e>=0&&t.isText&&t.sameMarkup(A[e])?A[e]=t.withText(A[e].text+t.text):A.push(t)}function Qs(t,A,e,n){let r=(A||t).node(e),i=0,s=A?A.index(e):r.childCount;t&&(i=t.index(e),t.depth>e?i++:t.textOffset&&(Vr(t.nodeAfter,n),i++));for(let a=i;a<s;a++)Vr(r.child(a),n);A&&A.depth==e&&A.textOffset&&Vr(A.nodeBefore,n)}function Gr(t,A){return t.type.checkContent(A),t.copy(A)}function mh(t,A,e,n,r){let i=t.depth>r&&Bc(t,A,r+1),s=n.depth>r&&Bc(e,n,r+1),a=[];return Qs(null,t,r,a),i&&s&&A.index(r)==e.index(r)?(Bh(i,s),Vr(Gr(i,mh(t,A,e,n,r+1)),a)):(i&&Vr(Gr(i,Do(t,A,r+1)),a),Qs(A,e,r,a),s&&Vr(Gr(s,Do(e,n,r+1)),a)),Qs(n,null,r,a),new Y(a)}function Do(t,A,e){let n=[];if(Qs(null,t,e,n),t.depth>e){let r=Bc(t,A,e+1);Vr(Gr(r,Do(t,A,e+1)),n)}return Qs(A,null,e,n),new Y(n)}function mQ(t,A){let e=A.depth-t.openStart,r=A.node(e).copy(t.content);for(let i=e-1;i>=0;i--)r=A.node(i).copy(Y.from(r));return{start:r.resolveNoCache(t.openStart+e),end:r.resolveNoCache(r.content.size-t.openEnd-e)}}class Fs{constructor(A,e,n){this.pos=A,this.path=e,this.parentOffset=n,this.depth=e.length/3-1}resolveDepth(A){return A==null?this.depth:A<0?this.depth+A:A}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(A){return this.path[this.resolveDepth(A)*3]}index(A){return this.path[this.resolveDepth(A)*3+1]}indexAfter(A){return A=this.resolveDepth(A),this.index(A)+(A==this.depth&&!this.textOffset?0:1)}start(A){return A=this.resolveDepth(A),A==0?0:this.path[A*3-1]+1}end(A){return A=this.resolveDepth(A),this.start(A)+this.node(A).content.size}before(A){if(A=this.resolveDepth(A),!A)throw new RangeError("There is no position before the top-level node");return A==this.depth+1?this.pos:this.path[A*3-1]}after(A){if(A=this.resolveDepth(A),!A)throw new RangeError("There is no position after the top-level node");return A==this.depth+1?this.pos:this.path[A*3-1]+this.path[A*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let A=this.parent,e=this.index(this.depth);if(e==A.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=A.child(e);return n?A.child(e).cut(n):r}get nodeBefore(){let A=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(A).cut(0,e):A==0?null:this.parent.child(A-1)}posAtIndex(A,e){e=this.resolveDepth(e);let n=this.path[e*3],r=e==0?0:this.path[e*3-1]+1;for(let i=0;i<A;i++)r+=n.child(i).nodeSize;return r}marks(){let A=this.parent,e=this.index();if(A.content.size==0)return jA.none;if(this.textOffset)return A.child(e).marks;let n=A.maybeChild(e-1),r=A.maybeChild(e);if(!n){let a=n;n=r,r=a}let i=n.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!r||!i[s].isInSet(r.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(A){let e=this.parent.maybeChild(this.index());if(!e||!e.isInline)return null;let n=e.marks,r=A.parent.maybeChild(A.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(A){for(let e=this.depth;e>0;e--)if(this.start(e)<=A&&this.end(e)>=A)return e;return 0}blockRange(A=this,e){if(A.pos<this.pos)return A.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==A.pos?1:0);n>=0;n--)if(A.pos<=this.end(n)&&(!e||e(this.node(n))))return new Ro(this,A,n);return null}sameParent(A){return this.pos-this.parentOffset==A.pos-A.parentOffset}max(A){return A.pos>this.pos?A:this}min(A){return A.pos<this.pos?A:this}toString(){let A="";for(let e=1;e<=this.depth;e++)A+=(A?"/":"")+this.node(e).type.name+"_"+this.index(e-1);return A+":"+this.parentOffset}static resolve(A,e){if(!(e>=0&&e<=A.content.size))throw new RangeError("Position "+e+" out of range");let n=[],r=0,i=e;for(let s=A;;){let{index:a,offset:c}=s.content.findIndex(i),u=i-c;if(n.push(s,a,r+c),!u||(s=s.child(a),s.isText))break;i=u-1,r+=c+1}return new Fs(e,n,i)}static resolveCached(A,e){for(let r=0;r<mc.length;r++){let i=mc[r];if(i.pos==e&&i.doc==A)return i}let n=mc[wc]=Fs.resolve(A,e);return wc=(wc+1)%wQ,n}}let mc=[],wc=0,wQ=12;class Ro{constructor(A,e,n){this.$from=A,this.$to=e,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const CQ=Object.create(null);let Wr=class lh{constructor(A,e,n,r=jA.none){this.type=A,this.attrs=e,this.marks=r,this.content=n||Y.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(A){return this.content.child(A)}maybeChild(A){return this.content.maybeChild(A)}forEach(A){this.content.forEach(A)}nodesBetween(A,e,n,r=0){this.content.nodesBetween(A,e,n,r,this)}descendants(A){this.nodesBetween(0,this.content.size,A)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(A,e,n,r){return this.content.textBetween(A,e,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(A){return this==A||this.sameMarkup(A)&&this.content.eq(A.content)}sameMarkup(A){return this.hasMarkup(A.type,A.attrs,A.marks)}hasMarkup(A,e,n){return this.type==A&&No(this.attrs,e||A.defaultAttrs||CQ)&&jA.sameSet(this.marks,n||jA.none)}copy(A=null){return A==this.content?this:new lh(this.type,this.attrs,A,this.marks)}mark(A){return A==this.marks?this:new lh(this.type,this.attrs,this.content,A)}cut(A,e=this.content.size){return A==0&&e==this.content.size?this:this.copy(this.content.cut(A,e))}slice(A,e=this.content.size,n=!1){if(A==e)return j.empty;let r=this.resolve(A),i=this.resolve(e),s=n?0:r.sharedDepth(e),a=r.start(s),u=r.node(s).content.cut(r.pos-a,i.pos-a);return new j(u,r.depth-s,i.depth-s)}replace(A,e,n){return BQ(this.resolve(A),this.resolve(e),n)}nodeAt(A){for(let e=this;;){let{index:n,offset:r}=e.content.findIndex(A);if(e=e.maybeChild(n),!e)return null;if(r==A||e.isText)return e;A-=r+1}}childAfter(A){let{index:e,offset:n}=this.content.findIndex(A);return{node:this.content.maybeChild(e),index:e,offset:n}}childBefore(A){if(A==0)return{node:null,index:0,offset:0};let{index:e,offset:n}=this.content.findIndex(A);if(n<A)return{node:this.content.child(e),index:e,offset:n};let r=this.content.child(e-1);return{node:r,index:e-1,offset:n-r.nodeSize}}resolve(A){return Fs.resolveCached(this,A)}resolveNoCache(A){return Fs.resolve(this,A)}rangeHasMark(A,e,n){let r=!1;return e>A&&this.nodesBetween(A,e,i=>(n.isInSet(i.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let A=this.type.name;return this.content.size&&(A+="("+this.content.toStringInner()+")"),wh(this.marks,A)}contentMatchAt(A){let e=this.type.contentMatch.matchFragment(this.content,0,A);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(A,e,n=Y.empty,r=0,i=n.childCount){let s=this.contentMatchAt(A).matchFragment(n,r,i),a=s&&s.matchFragment(this.content,e);if(!a||!a.validEnd)return!1;for(let c=r;c<i;c++)if(!this.type.allowsMarks(n.child(c).marks))return!1;return!0}canReplaceWith(A,e,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(A).matchType(n),s=i&&i.matchFragment(this.content,e);return s?s.validEnd:!1}canAppend(A){return A.content.size?this.canReplace(this.childCount,this.childCount,A.content):this.type.compatibleContent(A.type)}check(){this.type.checkContent(this.content);let A=jA.none;for(let e=0;e<this.marks.length;e++)A=this.marks[e].addToSet(A);if(!jA.sameSet(A,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let A={type:this.type.name};for(let e in this.attrs){A.attrs=this.attrs;break}return this.content.size&&(A.content=this.content.toJSON()),this.marks.length&&(A.marks=this.marks.map(e=>e.toJSON())),A}static fromJSON(A,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=e.marks.map(A.markFromJSON)}if(e.type=="text"){if(typeof e.text!="string")throw new RangeError("Invalid text node in JSON");return A.text(e.text,n)}let r=Y.fromJSON(A,e.content);return A.nodeType(e.type).create(e.attrs,r,n)}};Wr.prototype.text=void 0;class Ko extends Wr{constructor(A,e,n,r){if(super(A,e,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):wh(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(A,e){return this.text.slice(A,e)}get nodeSize(){return this.text.length}mark(A){return A==this.marks?this:new Ko(this.type,this.attrs,this.text,A)}withText(A){return A==this.text?this:new Ko(this.type,this.attrs,A,this.marks)}cut(A=0,e=this.text.length){return A==0&&e==this.text.length?this:this.withText(this.text.slice(A,e))}eq(A){return this.sameMarkup(A)&&this.text==A.text}toJSON(){let A=super.toJSON();return A.text=this.text,A}}function wh(t,A){for(let e=t.length-1;e>=0;e--)A=t[e].type.name+"("+A+")";return A}class $r{constructor(A){this.validEnd=A,this.next=[],this.wrapCache=[]}static parse(A,e){let n=new yQ(A,e);if(n.next==null)return $r.empty;let r=Ch(n);n.next&&n.err("Unexpected trailing text");let i=IQ(vQ(r));return SQ(i,n),i}matchType(A){for(let e=0;e<this.next.length;e++)if(this.next[e].type==A)return this.next[e].next;return null}matchFragment(A,e=0,n=A.childCount){let r=this;for(let i=e;r&&i<n;i++)r=r.matchType(A.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let A=0;A<this.next.length;A++){let{type:e}=this.next[A];if(!(e.isText||e.hasRequiredAttrs()))return e}return null}compatible(A){for(let e=0;e<this.next.length;e++)for(let n=0;n<A.next.length;n++)if(this.next[e].type==A.next[n].type)return!0;return!1}fillBefore(A,e=!1,n=0){let r=[this];function i(s,a){let c=s.matchFragment(A,n);if(c&&(!e||c.validEnd))return Y.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:f,next:h}=s.next[u];if(!(f.isText||f.hasRequiredAttrs())&&r.indexOf(h)==-1){r.push(h);let g=i(h,a.concat(f));if(g)return g}}return null}return i(this,[])}findWrapping(A){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==A)return this.wrapCache[n+1];let e=this.computeWrapping(A);return this.wrapCache.push(A,e),e}computeWrapping(A){let e=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(A)){let s=[];for(let a=r;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:c}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in e)&&(!r.type||c.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),e[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(A){if(A>=this.next.length)throw new RangeError(`There's no ${A}th edge in this content match`);return this.next[A]}toString(){let A=[];function e(n){A.push(n);for(let r=0;r<n.next.length;r++)A.indexOf(n.next[r].next)==-1&&e(n.next[r].next)}return e(this),A.map((n,r)=>{let i=r+(n.validEnd?"*":" ")+" ";for(let s=0;s<n.next.length;s++)i+=(s?", ":"")+n.next[s].type.name+"->"+A.indexOf(n.next[s].next);return i}).join(`
|
|
3
3
|
`)}}$r.empty=new $r(!0);class yQ{constructor(A,e){this.string=A,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=A.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(A){return this.next==A&&(this.pos++||!0)}err(A){throw new SyntaxError(A+" (in content expression '"+this.string+"')")}}function Ch(t){let A=[];do A.push(EQ(t));while(t.eat("|"));return A.length==1?A[0]:{type:"choice",exprs:A}}function EQ(t){let A=[];do A.push(QQ(t));while(t.next&&t.next!=")"&&t.next!="|");return A.length==1?A[0]:{type:"seq",exprs:A}}function QQ(t){let A=UQ(t);for(;;)if(t.eat("+"))A={type:"plus",expr:A};else if(t.eat("*"))A={type:"star",expr:A};else if(t.eat("?"))A={type:"opt",expr:A};else if(t.eat("{"))A=FQ(t,A);else break;return A}function yh(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let A=Number(t.next);return t.pos++,A}function FQ(t,A){let e=yh(t),n=e;return t.eat(",")&&(t.next!="}"?n=yh(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:e,max:n,expr:A}}function bQ(t,A){let e=t.nodeTypes,n=e[A];if(n)return[n];let r=[];for(let i in e){let s=e[i];s.groups.indexOf(A)>-1&&r.push(s)}return r.length==0&&t.err("No node type or group '"+A+"' found"),r}function UQ(t){if(t.eat("(")){let A=Ch(t);return t.eat(")")||t.err("Missing closing paren"),A}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let A=bQ(t,t.next).map(e=>(t.inline==null?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}));return t.pos++,A.length==1?A[0]:{type:"choice",exprs:A}}}function vQ(t){let A=[[]];return r(i(t,0),e()),A;function e(){return A.push([])-1}function n(s,a,c){let u={term:c,to:a};return A[s].push(u),u}function r(s,a){s.forEach(c=>c.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((c,u)=>c.concat(i(u,a)),[]);if(s.type=="seq")for(let c=0;;c++){let u=i(s.exprs[c],a);if(c==s.exprs.length-1)return u;r(u,a=e())}else if(s.type=="star"){let c=e();return n(a,c),r(i(s.expr,c),c),[n(c)]}else if(s.type=="plus"){let c=e();return r(i(s.expr,a),c),r(i(s.expr,c),c),[n(c)]}else{if(s.type=="opt")return[n(a)].concat(i(s.expr,a));if(s.type=="range"){let c=a;for(let u=0;u<s.min;u++){let f=e();r(i(s.expr,c),f),c=f}if(s.max==-1)r(i(s.expr,c),c);else for(let u=s.min;u<s.max;u++){let f=e();n(c,f),r(i(s.expr,c),f),c=f}return[n(c)]}else{if(s.type=="name")return[n(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function Eh(t,A){return A-t}function Qh(t,A){let e=[];return n(A),e.sort(Eh);function n(r){let i=t[r];if(i.length==1&&!i[0].term)return n(i[0].to);e.push(r);for(let s=0;s<i.length;s++){let{term:a,to:c}=i[s];!a&&e.indexOf(c)==-1&&n(c)}}}function IQ(t){let A=Object.create(null);return e(Qh(t,0));function e(n){let r=[];n.forEach(s=>{t[s].forEach(({term:a,to:c})=>{if(!a)return;let u;for(let f=0;f<r.length;f++)r[f][0]==a&&(u=r[f][1]);Qh(t,c).forEach(f=>{u||r.push([a,u=[]]),u.indexOf(f)==-1&&u.push(f)})})});let i=A[n.join(",")]=new $r(n.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(Eh);i.next.push({type:r[s][0],next:A[a.join(",")]||e(a)})}return i}}function SQ(t,A){for(let e=0,n=[t];e<n.length;e++){let r=n[e],i=!r.validEnd,s=[];for(let a=0;a<r.next.length;a++){let{type:c,next:u}=r.next[a];s.push(c.name),i&&!(c.isText||c.hasRequiredAttrs())&&(i=!1),n.indexOf(u)==-1&&n.push(u)}i&&A.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Fh(t){let A=Object.create(null);for(let e in t){let n=t[e];if(!n.hasDefault)return null;A[e]=n.default}return A}function bh(t,A){let e=Object.create(null);for(let n in t){let r=A&&A[n];if(r===void 0){let i=t[n];if(i.hasDefault)r=i.default;else throw new RangeError("No value supplied for attribute "+n)}e[n]=r}return e}function Uh(t){let A=Object.create(null);if(t)for(let e in t)A[e]=new TQ(t[e]);return A}let vh=class uE{constructor(A,e,n){this.name=A,this.schema=e,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=Uh(n.attrs),this.defaultAttrs=Fh(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||A=="text"),this.isText=A=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==$r.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let A in this.attrs)if(this.attrs[A].isRequired)return!0;return!1}compatibleContent(A){return this==A||this.contentMatch.compatible(A.contentMatch)}computeAttrs(A){return!A&&this.defaultAttrs?this.defaultAttrs:bh(this.attrs,A)}create(A=null,e,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Wr(this,this.computeAttrs(A),Y.from(e),jA.setFrom(n))}createChecked(A=null,e,n){return e=Y.from(e),this.checkContent(e),new Wr(this,this.computeAttrs(A),e,jA.setFrom(n))}createAndFill(A=null,e,n){if(A=this.computeAttrs(A),e=Y.from(e),e.size){let s=this.contentMatch.fillBefore(e);if(!s)return null;e=s.append(e)}let r=this.contentMatch.matchFragment(e),i=r&&r.fillBefore(Y.empty,!0);return i?new Wr(this,A,e.append(i),jA.setFrom(n)):null}validContent(A){let e=this.contentMatch.matchFragment(A);if(!e||!e.validEnd)return!1;for(let n=0;n<A.childCount;n++)if(!this.allowsMarks(A.child(n).marks))return!1;return!0}checkContent(A){if(!this.validContent(A))throw new RangeError(`Invalid content for node ${this.name}: ${A.toString().slice(0,50)}`)}allowsMarkType(A){return this.markSet==null||this.markSet.indexOf(A)>-1}allowsMarks(A){if(this.markSet==null)return!0;for(let e=0;e<A.length;e++)if(!this.allowsMarkType(A[e].type))return!1;return!0}allowedMarks(A){if(this.markSet==null)return A;let e;for(let n=0;n<A.length;n++)this.allowsMarkType(A[n].type)?e&&e.push(A[n]):e||(e=A.slice(0,n));return e?e.length?e:jA.none:A}static compile(A,e){let n=Object.create(null);A.forEach((i,s)=>n[i]=new uE(i,e,s));let r=e.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let i in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}};class TQ{constructor(A){this.hasDefault=Object.prototype.hasOwnProperty.call(A,"default"),this.default=A.default}get isRequired(){return!this.hasDefault}}class Po{constructor(A,e,n,r){this.name=A,this.rank=e,this.schema=n,this.spec=r,this.attrs=Uh(r.attrs),this.excluded=null;let i=Fh(this.attrs);this.instance=i?new jA(this,i):null}create(A=null){return!A&&this.instance?this.instance:new jA(this,bh(this.attrs,A))}static compile(A,e){let n=Object.create(null),r=0;return A.forEach((i,s)=>n[i]=new Po(i,r++,e,s)),n}removeFromSet(A){for(var e=0;e<A.length;e++)A[e].type==this&&(A=A.slice(0,e).concat(A.slice(e+1)),e--);return A}isInSet(A){for(let e=0;e<A.length;e++)if(A[e].type==this)return A[e]}excludes(A){return this.excluded.indexOf(A)>-1}}class _Q{constructor(A){this.linebreakReplacement=null,this.cached=Object.create(null);let e=this.spec={};for(let r in A)e[r]=A[r];e.nodes=De.from(A.nodes),e.marks=De.from(A.marks||{}),this.nodes=vh.compile(this.spec.nodes,this),this.marks=Po.compile(this.spec.marks,this);let n=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let i=this.nodes[r],s=i.spec.content||"",a=i.spec.marks;if(i.contentMatch=n[s]||(n[s]=$r.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=a=="_"?null:a?Ih(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(let r in this.marks){let i=this.marks[r],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:Ih(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(A,e=null,n,r){if(typeof A=="string")A=this.nodeType(A);else if(A instanceof vh){if(A.schema!=this)throw new RangeError("Node type from different schema used ("+A.name+")")}else throw new RangeError("Invalid node type: "+A);return A.createChecked(e,n,r)}text(A,e){let n=this.nodes.text;return new Ko(n,n.defaultAttrs,A,jA.setFrom(e))}mark(A,e){return typeof A=="string"&&(A=this.marks[A]),A.create(e)}nodeFromJSON(A){return Wr.fromJSON(this,A)}markFromJSON(A){return jA.fromJSON(this,A)}nodeType(A){let e=this.nodes[A];if(!e)throw new RangeError("Unknown node type: "+A);return e}}function Ih(t,A){let e=[];for(let n=0;n<A.length;n++){let r=A[n],i=t.marks[r],s=i;if(i)e.push(i);else for(let a in t.marks){let c=t.marks[a];(r=="_"||c.spec.group&&c.spec.group.split(" ").indexOf(r)>-1)&&e.push(s=c)}if(!s)throw new SyntaxError("Unknown mark type: '"+A[n]+"'")}return e}function xQ(t){return t.tag!=null}function OQ(t){return t.style!=null}class Fi{constructor(A,e){this.schema=A,this.rules=e,this.tags=[],this.styles=[],e.forEach(n=>{xQ(n)?this.tags.push(n):OQ(n)&&this.styles.push(n)}),this.normalizeLists=!this.tags.some(n=>{if(!/^(ul|ol)\b/.test(n.tag)||!n.node)return!1;let r=A.nodes[n.node];return r.contentMatch.matchType(r)})}parse(A,e={}){let n=new xh(this,e,!1);return n.addAll(A,e.from,e.to),n.finish()}parseSlice(A,e={}){let n=new xh(this,e,!0);return n.addAll(A,e.from,e.to),j.maxOpen(n.finish())}matchTag(A,e,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(kQ(A,i.tag)&&(i.namespace===void 0||A.namespaceURI==i.namespace)&&(!i.context||e.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(A);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(A,e,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let s=this.styles[i],a=s.style;if(!(a.indexOf(A)!=0||s.context&&!n.matchesContext(s.context)||a.length>A.length&&(a.charCodeAt(A.length)!=61||a.slice(A.length+1)!=e))){if(s.getAttrs){let c=s.getAttrs(e);if(c===!1)continue;s.attrs=c||void 0}return s}}}static schemaRules(A){let e=[];function n(r){let i=r.priority==null?50:r.priority,s=0;for(;s<e.length;s++){let a=e[s];if((a.priority==null?50:a.priority)<i)break}e.splice(s,0,r)}for(let r in A.marks){let i=A.marks[r].spec.parseDOM;i&&i.forEach(s=>{n(s=Oh(s)),s.mark||s.ignore||s.clearMark||(s.mark=r)})}for(let r in A.nodes){let i=A.nodes[r].spec.parseDOM;i&&i.forEach(s=>{n(s=Oh(s)),s.node||s.ignore||s.mark||(s.node=r)})}return e}static fromSchema(A){return A.cached.domParser||(A.cached.domParser=new Fi(A,Fi.schemaRules(A)))}}const Sh={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},LQ={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Th={ol:!0,ul:!0},Vo=1,Go=2,bs=4;function _h(t,A,e){return A!=null?(A?Vo:0)|(A==="full"?Go:0):t&&t.whitespace=="pre"?Vo|Go:e&~bs}class Wo{constructor(A,e,n,r,i,s,a){this.type=A,this.attrs=e,this.marks=n,this.pendingMarks=r,this.solid=i,this.options=a,this.content=[],this.activeMarks=jA.none,this.stashMarks=[],this.match=s||(a&bs?null:A.contentMatch)}findWrapping(A){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(Y.from(A));if(e)this.match=this.type.contentMatch.matchFragment(e);else{let n=this.type.contentMatch,r;return(r=n.findWrapping(A.type))?(this.match=n,r):null}}return this.match.findWrapping(A.type)}finish(A){if(!(this.options&Vo)){let n=this.content[this.content.length-1],r;if(n&&n.isText&&(r=/[ \t\r\n\u000c]+$/.exec(n.text))){let i=n;n.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let e=Y.from(this.content);return!A&&this.match&&(e=e.append(this.match.fillBefore(Y.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}popFromStashMark(A){for(let e=this.stashMarks.length-1;e>=0;e--)if(A.eq(this.stashMarks[e]))return this.stashMarks.splice(e,1)[0]}applyPending(A){for(let e=0,n=this.pendingMarks;e<n.length;e++){let r=n[e];(this.type?this.type.allowsMarkType(r.type):NQ(r.type,A))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}}inlineContext(A){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:A.parentNode&&!Sh.hasOwnProperty(A.parentNode.nodeName.toLowerCase())}}class xh{constructor(A,e,n){this.parser=A,this.options=e,this.isOpen=n,this.open=0;let r=e.topNode,i,s=_h(null,e.preserveWhitespace,0)|(n?bs:0);r?i=new Wo(r.type,r.attrs,jA.none,jA.none,!0,e.topMatch||r.type.contentMatch,s):n?i=new Wo(null,null,jA.none,jA.none,!0,null,s):i=new Wo(A.schema.topNodeType,null,jA.none,jA.none,!0,null,s),this.nodes=[i],this.find=e.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(A){A.nodeType==3?this.addTextNode(A):A.nodeType==1&&this.addElement(A)}withStyleRules(A,e){let n=A.style;if(!n||!n.length)return e();let r=this.readStyles(A.style);if(!r)return;let[i,s]=r,a=this.top;for(let c=0;c<s.length;c++)this.removePendingMark(s[c],a);for(let c=0;c<i.length;c++)this.addPendingMark(i[c]);e();for(let c=0;c<i.length;c++)this.removePendingMark(i[c],a);for(let c=0;c<s.length;c++)this.addPendingMark(s[c])}addTextNode(A){let e=A.nodeValue,n=this.top;if(n.options&Go||n.inlineContext(A)||/[^ \t\r\n\u000c]/.test(e)){if(n.options&Vo)n.options&Go?e=e.replace(/\r\n?/g,`
|
|
4
4
|
`):e=e.replace(/\r?\n|\r/g," ");else if(e=e.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(e)&&this.open==this.nodes.length-1){let r=n.content[n.content.length-1],i=A.previousSibling;(!r||i&&i.nodeName=="BR"||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(e=e.slice(1))}e&&this.insertNode(this.parser.schema.text(e)),this.findInText(A)}else this.findInside(A)}addElement(A,e){let n=A.nodeName.toLowerCase(),r;Th.hasOwnProperty(n)&&this.parser.normalizeLists&&HQ(A);let i=this.options.ruleFromNode&&this.options.ruleFromNode(A)||(r=this.parser.matchTag(A,this,e));if(i?i.ignore:LQ.hasOwnProperty(n))this.findInside(A),this.ignoreFallback(A);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(A=i.skip);let s,a=this.top,c=this.needsBlock;if(Sh.hasOwnProperty(n))a.content.length&&a.content[0].isInline&&this.open&&(this.open--,a=this.top),s=!0,a.type||(this.needsBlock=!0);else if(!A.firstChild){this.leafFallback(A);return}i&&i.skip?this.addAll(A):this.withStyleRules(A,()=>this.addAll(A)),s&&this.sync(a),this.needsBlock=c}else this.withStyleRules(A,()=>{this.addElementByRule(A,i,i.consuming===!1?r:void 0)})}leafFallback(A){A.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(A.ownerDocument.createTextNode(`
|
|
@@ -2,6 +2,7 @@ declare const _sfc_main: import('./vue/dist/vue.esm-bundler.js').DefineComponent
|
|
|
2
2
|
src: {
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
default: string;
|
|
5
|
+
required: true;
|
|
5
6
|
};
|
|
6
7
|
alt: {
|
|
7
8
|
type: StringConstructor;
|
|
@@ -19,6 +20,7 @@ declare const _sfc_main: import('./vue/dist/vue.esm-bundler.js').DefineComponent
|
|
|
19
20
|
src: {
|
|
20
21
|
type: StringConstructor;
|
|
21
22
|
default: string;
|
|
23
|
+
required: true;
|
|
22
24
|
};
|
|
23
25
|
alt: {
|
|
24
26
|
type: StringConstructor;
|