golden-logic-ui 1.0.165 → 1.0.166
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/golden-logic-ui.js +693 -686
- package/dist/golden-logic-ui.umd.cjs +22 -22
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as se, createElementBlock as ie, createElementVNode as N, createCommentVNode as Je, createStaticVNode as SK, resolveComponent as Ly, Fragment as Ln, createVNode as Up, normalizeClass as
|
|
1
|
+
import { openBlock as se, createElementBlock as ie, createElementVNode as N, createCommentVNode as Je, createStaticVNode as SK, resolveComponent as Ly, Fragment as Ln, createVNode as Up, normalizeClass as jt, toDisplayString as nt, withModifiers as gi, withDirectives as kr, vModelText as sd, renderList as ps, normalizeStyle as kK, computed as La, renderSlot as ul, ref as Do, onMounted as fm, watch as kA, createTextVNode as Qn, vShow as bC, nextTick as Kq, createBlock as Fy, resolveDynamicComponent as bL, mergeProps as SA, withCtx as yL, vModelDynamic as EK, provide as Yq, inject as Xq, pushScopeId as TK, popScopeId as AK, vModelCheckbox as OK, toHandlers as lG, onUnmounted as DK, reactive as NK, TransitionGroup as $K, unref as PK, resolveDirective as Zq, markRaw as BK } from "vue";
|
|
2
2
|
var RK = { exports: {} };
|
|
3
3
|
(function(O) {
|
|
4
4
|
(function() {
|
|
@@ -39,14 +39,14 @@ var RK = { exports: {} };
|
|
|
39
39
|
return !1;
|
|
40
40
|
return !0;
|
|
41
41
|
});
|
|
42
|
-
},
|
|
42
|
+
}, mt = function(e, n) {
|
|
43
43
|
return oe(Oe(e), function(o) {
|
|
44
44
|
return be(o, n);
|
|
45
45
|
});
|
|
46
|
-
},
|
|
46
|
+
}, Rt = function(e) {
|
|
47
47
|
return U(function(n, o) {
|
|
48
48
|
var r = Object.keys(n), i = Object.keys(o);
|
|
49
|
-
if (!
|
|
49
|
+
if (!mt(J).eq(r, i))
|
|
50
50
|
return !1;
|
|
51
51
|
for (var l = r.length, d = 0; d < l; d++) {
|
|
52
52
|
var g = r[d];
|
|
@@ -59,7 +59,7 @@ var RK = { exports: {} };
|
|
|
59
59
|
if (e === n)
|
|
60
60
|
return !0;
|
|
61
61
|
var o = ee(e), r = ee(n);
|
|
62
|
-
return o !== r ? !1 : G(o) ? e === n : o === "array" ? Oe(xn).eq(e, n) : o === "object" ?
|
|
62
|
+
return o !== r ? !1 : G(o) ? e === n : o === "array" ? Oe(xn).eq(e, n) : o === "object" ? Rt(xn).eq(e, n) : !1;
|
|
63
63
|
});
|
|
64
64
|
const eo = Object.getPrototypeOf, jo = (e, n, o) => {
|
|
65
65
|
var r;
|
|
@@ -67,7 +67,7 @@ var RK = { exports: {} };
|
|
|
67
67
|
}, xa = (e) => {
|
|
68
68
|
const n = typeof e;
|
|
69
69
|
return e === null ? "null" : n === "object" && Array.isArray(e) ? "array" : n === "object" && jo(e, String, (o, r) => r.isPrototypeOf(o)) ? "string" : n;
|
|
70
|
-
}, ko = (e) => (n) => xa(n) === e, Yo = (e) => (n) => typeof n === e, zs = (e) => (n) => e === n,
|
|
70
|
+
}, ko = (e) => (n) => xa(n) === e, Yo = (e) => (n) => typeof n === e, zs = (e) => (n) => e === n, It = (e, n) => Gt(e) && jo(e, n, (o, r) => eo(o) === r), de = ko("string"), Gt = ko("object"), Ri = (e) => It(e, Object), Eo = ko("array"), Q = zs(null), rn = Yo("boolean"), To = zs(void 0), Qe = (e) => e == null, Ae = (e) => !Qe(e), Et = Yo("function"), uo = Yo("number"), kn = (e, n) => {
|
|
71
71
|
if (Eo(e)) {
|
|
72
72
|
for (let o = 0, r = e.length; o < r; ++o)
|
|
73
73
|
if (!n(e[o]))
|
|
@@ -300,7 +300,7 @@ var RK = { exports: {} };
|
|
|
300
300
|
return Ke(e, (r, i) => {
|
|
301
301
|
o.push(n(r, i));
|
|
302
302
|
}), o;
|
|
303
|
-
}, uu = (e) => Fa(e, hs), ro = (e, n) =>
|
|
303
|
+
}, uu = (e) => Fa(e, hs), ro = (e, n) => Mt(e, n) ? $.from(e[n]) : $.none(), Mt = (e, n) => ad.call(e, n), fl = (e, n) => Mt(e, n) && e[n] !== void 0 && e[n] !== null, Kf = (e, n, o = xn) => Rt(o).eq(e, n), gl = (e) => {
|
|
304
304
|
const n = {};
|
|
305
305
|
return ve(e, (o) => {
|
|
306
306
|
n[o] = {};
|
|
@@ -323,7 +323,7 @@ var RK = { exports: {} };
|
|
|
323
323
|
return !1;
|
|
324
324
|
} else
|
|
325
325
|
for (const r in e)
|
|
326
|
-
if (
|
|
326
|
+
if (Mt(e, r) && n.call(o, e[r], r, e) === !1)
|
|
327
327
|
return !1;
|
|
328
328
|
return !0;
|
|
329
329
|
}, xc = (e, n) => {
|
|
@@ -621,11 +621,11 @@ var RK = { exports: {} };
|
|
|
621
621
|
for (; i--; )
|
|
622
622
|
o[r[i]] = {};
|
|
623
623
|
return o;
|
|
624
|
-
}, $o =
|
|
624
|
+
}, $o = Mt, yC = (e, ...n) => {
|
|
625
625
|
for (let o = 0; o < n.length; o++) {
|
|
626
626
|
const r = n[o];
|
|
627
627
|
for (const i in r)
|
|
628
|
-
if (
|
|
628
|
+
if (Mt(r, i)) {
|
|
629
629
|
const l = r[i];
|
|
630
630
|
l !== void 0 && (e[i] = l);
|
|
631
631
|
}
|
|
@@ -1146,7 +1146,7 @@ var RK = { exports: {} };
|
|
|
1146
1146
|
"style"
|
|
1147
1147
|
], Lm = (e) => {
|
|
1148
1148
|
let n;
|
|
1149
|
-
return (o) => (n = n || Co(e, Xe),
|
|
1149
|
+
return (o) => (n = n || Co(e, Xe), Mt(n, Cn(o)));
|
|
1150
1150
|
}, Ya = (e) => Cn(e) === "table", Fm = (e) => Gr(e) && Cn(e) === "br", ae = Lm(uh), Ta = Lm(NA), Vm = Lm(Or), wu = Lm(kl), Xa = Lm(Mn), Fs = Lm(Mm), Vs = (e) => {
|
|
1151
1151
|
const n = [];
|
|
1152
1152
|
let o = e.dom;
|
|
@@ -1351,7 +1351,7 @@ var RK = { exports: {} };
|
|
|
1351
1351
|
}, FA = (e, n, o) => {
|
|
1352
1352
|
const r = (l) => Dn(l, V.fromDom(n)), i = Jy(V.fromDom(o), r);
|
|
1353
1353
|
Ii(i, i.length - 2).filter(Gr).fold(() => hh(e, n), (l) => hh(e, l.dom));
|
|
1354
|
-
}, hv = (e) => e.hasAttribute(gv), bh = (e, n) =>
|
|
1354
|
+
}, hv = (e) => e.hasAttribute(gv), bh = (e, n) => Mt(e.getTransparentElements(), n), yh = (e, n) => lt(n) && bh(e, n.nodeName), pn = (e, n) => yh(e, n) && hv(n), xt = (e, n) => yh(e, n) && !hv(n), ku = (e, n) => n.type === 1 && bh(e, n.name) && de(n.attr(gv)), WC = po().browser, bv = (e) => Lo(e, Gr), BL = (e) => WC.isFirefox() && Cn(e) === "table" ? bv(vs(e)).filter((n) => Cn(n) === "caption").bind((n) => bv(Er(n)).map((o) => {
|
|
1355
1355
|
const r = o.dom.offsetTop, i = n.dom.offsetTop, l = n.dom.offsetHeight;
|
|
1356
1356
|
return r <= i ? -l : 0;
|
|
1357
1357
|
})).getOr(0) : 0, jC = (e, n) => e.children && qt(e.children, n), ho = (e, n, o) => {
|
|
@@ -1739,35 +1739,35 @@ var RK = { exports: {} };
|
|
|
1739
1739
|
var n;
|
|
1740
1740
|
const o = {}, r = {};
|
|
1741
1741
|
let i = [];
|
|
1742
|
-
const l = {}, d = {}, g = (
|
|
1743
|
-
const yo = e[
|
|
1742
|
+
const l = {}, d = {}, g = (Ut, Sn, Jn) => {
|
|
1743
|
+
const yo = e[Ut];
|
|
1744
1744
|
if (yo)
|
|
1745
1745
|
return Od(yo, /[, ]/, Od(yo.toUpperCase(), /[, ]/));
|
|
1746
1746
|
{
|
|
1747
|
-
let So = xv[
|
|
1748
|
-
return So || (So = Cv(Sn, Jn), xv[
|
|
1747
|
+
let So = xv[Ut];
|
|
1748
|
+
return So || (So = Cv(Sn, Jn), xv[Ut] = So), So;
|
|
1749
1749
|
}
|
|
1750
1750
|
}, p = (n = e.schema) !== null && n !== void 0 ? n : "html5", v = UL(p);
|
|
1751
1751
|
e.verify_html === !1 && (e.valid_elements = "*[*]");
|
|
1752
1752
|
const S = hg(e.valid_styles), k = hg(e.invalid_styles, "map"), T = hg(e.valid_classes, "map"), M = g("whitespace_elements", "pre script noscript style textarea video audio iframe object code"), L = g("self_closing_elements", "colgroup dd dt li option p td tfoot th thead tr"), R = g("void_elements", "area base basefont br col frame hr img input isindex link meta param embed source wbr track"), F = g("boolean_attributes", "checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"), K = "td th iframe video audio object script code", Z = g("non_empty_elements", K + " pre svg", R), X = g("move_caret_before_on_enter_elements", K + " table", R), ce = "h1 h2 h3 h4 h5 h6", Te = g("text_block_elements", ce + " p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"), Ie = g("block_elements", "hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary html body multicol listing", Te), qe = g("text_inline_elements", "span strong b em i font s strike u var cite dfn code mark q sup sub samp"), he = g("transparent_elements", "a ins del canvas map"), me = g("wrap_block_elements", "pre " + ce);
|
|
1753
|
-
zc("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "), (
|
|
1754
|
-
d[
|
|
1753
|
+
zc("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "), (Ut) => {
|
|
1754
|
+
d[Ut] = new RegExp("</" + Ut + "[^>]*>", "gi");
|
|
1755
1755
|
});
|
|
1756
|
-
const ke = (
|
|
1756
|
+
const ke = (Ut) => {
|
|
1757
1757
|
const Sn = $.from(o["@"]), Jn = /[*?+]/;
|
|
1758
|
-
ve(pg(Sn,
|
|
1758
|
+
ve(pg(Sn, Ut ?? ""), ({ name: yo, element: So, aliasName: ha }) => {
|
|
1759
1759
|
if (ha && (o[ha] = So), Jn.test(yo)) {
|
|
1760
1760
|
const cl = So;
|
|
1761
1761
|
cl.pattern = at(yo), i.push(cl);
|
|
1762
1762
|
} else
|
|
1763
1763
|
o[yo] = So;
|
|
1764
1764
|
});
|
|
1765
|
-
}, st = (
|
|
1765
|
+
}, st = (Ut) => {
|
|
1766
1766
|
i = [], ve(Is(o), (Sn) => {
|
|
1767
1767
|
delete o[Sn];
|
|
1768
|
-
}), ke(
|
|
1769
|
-
}, pt = (
|
|
1770
|
-
delete xv.text_block_elements, delete xv.block_elements, ve(VL(
|
|
1768
|
+
}), ke(Ut);
|
|
1769
|
+
}, pt = (Ut) => {
|
|
1770
|
+
delete xv.text_block_elements, delete xv.block_elements, ve(VL(Ut ?? ""), ({ inline: Sn, name: Jn, cloneName: yo }) => {
|
|
1771
1771
|
if (r[Jn] = r[yo], l[Jn] = yo, Z[Jn.toUpperCase()] = {}, Z[Jn] = {}, Sn || (Ie[Jn.toUpperCase()] = {}, Ie[Jn] = {}), !o[Jn]) {
|
|
1772
1772
|
let So = o[yo];
|
|
1773
1773
|
So = ZC({}, So), delete So.removeEmptyAttrs, delete So.removeEmpty, o[Jn] = So;
|
|
@@ -1776,42 +1776,42 @@ var RK = { exports: {} };
|
|
|
1776
1776
|
So[yo] && (r[ha] = So = ZC({}, r[ha]), So[Jn] = So[yo]);
|
|
1777
1777
|
});
|
|
1778
1778
|
});
|
|
1779
|
-
}, on = (
|
|
1780
|
-
ve(zL(
|
|
1779
|
+
}, on = (Ut) => {
|
|
1780
|
+
ve(zL(Ut ?? ""), ({ operation: Sn, name: Jn, validChildren: yo }) => {
|
|
1781
1781
|
const So = Sn === "replace" ? { "#comment": {} } : r[Jn];
|
|
1782
1782
|
ve(yo, (ha) => {
|
|
1783
1783
|
Sn === "remove" ? delete So[ha] : So[ha] = {};
|
|
1784
1784
|
}), r[Jn] = So;
|
|
1785
1785
|
});
|
|
1786
|
-
}, en = (
|
|
1787
|
-
const Sn = o[
|
|
1786
|
+
}, en = (Ut) => {
|
|
1787
|
+
const Sn = o[Ut];
|
|
1788
1788
|
if (Sn)
|
|
1789
1789
|
return Sn;
|
|
1790
1790
|
let Jn = i.length;
|
|
1791
1791
|
for (; Jn--; ) {
|
|
1792
1792
|
const yo = i[Jn];
|
|
1793
|
-
if (yo.pattern.test(
|
|
1793
|
+
if (yo.pattern.test(Ut))
|
|
1794
1794
|
return yo;
|
|
1795
1795
|
}
|
|
1796
1796
|
};
|
|
1797
|
-
e.valid_elements ? (st(e.valid_elements), zc(v, (
|
|
1798
|
-
r[Sn] =
|
|
1799
|
-
})) : (zc(v, (
|
|
1797
|
+
e.valid_elements ? (st(e.valid_elements), zc(v, (Ut, Sn) => {
|
|
1798
|
+
r[Sn] = Ut.children;
|
|
1799
|
+
})) : (zc(v, (Ut, Sn) => {
|
|
1800
1800
|
o[Sn] = {
|
|
1801
|
-
attributes:
|
|
1802
|
-
attributesOrder:
|
|
1803
|
-
}, r[Sn] =
|
|
1804
|
-
}), zc(cr("strong/b em/i"), (
|
|
1805
|
-
const Sn = cr(
|
|
1801
|
+
attributes: Ut.attributes,
|
|
1802
|
+
attributesOrder: Ut.attributesOrder
|
|
1803
|
+
}, r[Sn] = Ut.children;
|
|
1804
|
+
}), zc(cr("strong/b em/i"), (Ut) => {
|
|
1805
|
+
const Sn = cr(Ut, "/");
|
|
1806
1806
|
o[Sn[1]].outputName = Sn[0];
|
|
1807
|
-
}), zc(qe, (
|
|
1807
|
+
}), zc(qe, (Ut, Sn) => {
|
|
1808
1808
|
o[Sn] && (e.padd_empty_block_inline_children && (o[Sn].paddInEmptyBlock = !0), o[Sn].removeEmpty = !0);
|
|
1809
|
-
}), zc(cr("ol ul blockquote a table tbody"), (
|
|
1810
|
-
o[
|
|
1811
|
-
}), zc(cr("p h1 h2 h3 h4 h5 h6 th td pre div address caption li summary"), (
|
|
1812
|
-
o[
|
|
1813
|
-
}), zc(cr("span"), (
|
|
1814
|
-
o[
|
|
1809
|
+
}), zc(cr("ol ul blockquote a table tbody"), (Ut) => {
|
|
1810
|
+
o[Ut] && (o[Ut].removeEmpty = !0);
|
|
1811
|
+
}), zc(cr("p h1 h2 h3 h4 h5 h6 th td pre div address caption li summary"), (Ut) => {
|
|
1812
|
+
o[Ut] && (o[Ut].paddEmpty = !0);
|
|
1813
|
+
}), zc(cr("span"), (Ut) => {
|
|
1814
|
+
o[Ut].removeEmptyAttrs = !0;
|
|
1815
1815
|
})), delete o.svg, pt(e.custom_elements), on(e.valid_children), ke(e.extended_valid_elements), on("+ol[ul|ol],+ul[ul|ol]"), zc({
|
|
1816
1816
|
dd: "dl",
|
|
1817
1817
|
dt: "dl",
|
|
@@ -1825,16 +1825,16 @@ var RK = { exports: {} };
|
|
|
1825
1825
|
legend: "fieldset",
|
|
1826
1826
|
area: "map",
|
|
1827
1827
|
param: "video audio object"
|
|
1828
|
-
}, (
|
|
1829
|
-
o[Sn] && (o[Sn].parentsRequired = cr(
|
|
1830
|
-
}), e.invalid_elements && zc(wv(e.invalid_elements), (
|
|
1831
|
-
o[
|
|
1828
|
+
}, (Ut, Sn) => {
|
|
1829
|
+
o[Sn] && (o[Sn].parentsRequired = cr(Ut));
|
|
1830
|
+
}), e.invalid_elements && zc(wv(e.invalid_elements), (Ut) => {
|
|
1831
|
+
o[Ut] && delete o[Ut];
|
|
1832
1832
|
}), en("span") || ke("span[!data-mce-type|*]");
|
|
1833
|
-
const Un = Fe(S), Zn = Fe(k), zo = Fe(T), tr = Fe(F), Fn = Fe(Ie), ze = Fe(Te), dt = Fe(qe), tn = Fe(Object.seal(R)), cn = Fe(L), it = Fe(Z),
|
|
1834
|
-
const Jn = r[
|
|
1833
|
+
const Un = Fe(S), Zn = Fe(k), zo = Fe(T), tr = Fe(F), Fn = Fe(Ie), ze = Fe(Te), dt = Fe(qe), tn = Fe(Object.seal(R)), cn = Fe(L), it = Fe(Z), Lt = Fe(X), Le = Fe(M), Ft = Fe(he), fn = Fe(me), jn = Fe(Object.seal(d)), zn = (Ut, Sn) => {
|
|
1834
|
+
const Jn = r[Ut.toLowerCase()];
|
|
1835
1835
|
return !!(Jn && Jn[Sn.toLowerCase()]);
|
|
1836
|
-
}, Ss = (
|
|
1837
|
-
const Jn = en(
|
|
1836
|
+
}, Ss = (Ut, Sn) => {
|
|
1837
|
+
const Jn = en(Ut);
|
|
1838
1838
|
if (Jn)
|
|
1839
1839
|
if (Sn) {
|
|
1840
1840
|
if (Jn.attributes[Sn])
|
|
@@ -1849,7 +1849,7 @@ var RK = { exports: {} };
|
|
|
1849
1849
|
} else
|
|
1850
1850
|
return !0;
|
|
1851
1851
|
return !1;
|
|
1852
|
-
}, dc = (
|
|
1852
|
+
}, dc = (Ut) => Mt(Fn(), Ut), eu = (Ut) => !Go(Ut, "#") && Ss(Ut) && !dc(Ut), ta = (Ut) => Mt(fn(), Ut) || eu(Ut), Ni = Fe(l);
|
|
1853
1853
|
return {
|
|
1854
1854
|
type: p,
|
|
1855
1855
|
children: r,
|
|
@@ -1865,9 +1865,9 @@ var RK = { exports: {} };
|
|
|
1865
1865
|
getElementRule: en,
|
|
1866
1866
|
getSelfClosingElements: cn,
|
|
1867
1867
|
getNonEmptyElements: it,
|
|
1868
|
-
getMoveCaretBeforeOnEnterElements:
|
|
1868
|
+
getMoveCaretBeforeOnEnterElements: Lt,
|
|
1869
1869
|
getWhitespaceElements: Le,
|
|
1870
|
-
getTransparentElements:
|
|
1870
|
+
getTransparentElements: Ft,
|
|
1871
1871
|
getSpecialElements: jn,
|
|
1872
1872
|
isValidChild: zn,
|
|
1873
1873
|
isValid: Ss,
|
|
@@ -2010,7 +2010,7 @@ var RK = { exports: {} };
|
|
|
2010
2010
|
}, qL = (e) => e instanceof Event || Et(e.initEvent), KL = (e) => e.isDefaultPrevented === Xe || e.isDefaultPrevented === Ne, YL = (e) => Qe(e.preventDefault) || qL(e), _v = (e, n) => {
|
|
2011
2011
|
const o = n ?? {};
|
|
2012
2012
|
for (const r in e)
|
|
2013
|
-
|
|
2013
|
+
Mt(GL, r) || (o[r] = e[r]);
|
|
2014
2014
|
return Ae(e.composedPath) && (o.composedPath = () => e.composedPath()), Ae(e.getModifierState) && (o.getModifierState = (r) => e.getModifierState(r)), Ae(e.getTargetRanges) && (o.getTargetRanges = () => e.getTargetRanges()), o;
|
|
2015
2015
|
}, e_ = (e, n, o, r) => {
|
|
2016
2016
|
var i;
|
|
@@ -2107,7 +2107,7 @@ var RK = { exports: {} };
|
|
|
2107
2107
|
Sv(n, d.fakeName || g, d.nativeHandler, d.capture);
|
|
2108
2108
|
}), l = {};
|
|
2109
2109
|
for (const d in l)
|
|
2110
|
-
if (
|
|
2110
|
+
if (Mt(l, d))
|
|
2111
2111
|
return this;
|
|
2112
2112
|
delete this.events[i];
|
|
2113
2113
|
try {
|
|
@@ -2176,7 +2176,7 @@ var RK = { exports: {} };
|
|
|
2176
2176
|
}, KA = (e, n) => {
|
|
2177
2177
|
const o = qr(n, "style"), r = e.serialize(e.parse(o), Cn(n));
|
|
2178
2178
|
_h(n, o_, r);
|
|
2179
|
-
}, vg = (e, n) => uo(e) ?
|
|
2179
|
+
}, vg = (e, n) => uo(e) ? Mt(tF, n) ? e + "" : e + "px" : e, Ev = (e, n, o) => {
|
|
2180
2180
|
const r = kv(n);
|
|
2181
2181
|
Qe(o) || o === "" ? oh(e, r) : rv(e, r, vg(o, r));
|
|
2182
2182
|
}, YA = (e, n, o) => {
|
|
@@ -2214,7 +2214,7 @@ var RK = { exports: {} };
|
|
|
2214
2214
|
url_converter: n.url_converter,
|
|
2215
2215
|
url_converter_scope: n.url_converter_scope,
|
|
2216
2216
|
force_hex_color: n.force_hex_color
|
|
2217
|
-
}, n.schema), T = n.ownEvents ? new wi() : wi.Event, M = S.getBlockElements(), L = (le) => de(le) ?
|
|
2217
|
+
}, n.schema), T = n.ownEvents ? new wi() : wi.Event, M = S.getBlockElements(), L = (le) => de(le) ? Mt(M, le) : lt(le) && (Mt(M, le.nodeName) || pn(S, le)), R = (le) => le && e && de(le) ? e.getElementById(le) : le, F = (le) => {
|
|
2218
2218
|
const ue = R(le);
|
|
2219
2219
|
return Ae(ue) ? V.fromDom(ue) : null;
|
|
2220
2220
|
}, K = (le, ue, Ue = "") => {
|
|
@@ -2351,11 +2351,11 @@ var RK = { exports: {} };
|
|
|
2351
2351
|
}, it = (le, ue, Ue, Be, gt) => dt(le, (ln) => {
|
|
2352
2352
|
const xo = de(ue) ? e.createElement(ue) : ue;
|
|
2353
2353
|
return Ae(Ue) && tn(xo, Ue), Be && (!de(Be) && Be.nodeType ? xo.appendChild(Be) : de(Be) && cn(xo, Be)), gt ? xo : ln.appendChild(xo);
|
|
2354
|
-
}),
|
|
2354
|
+
}), Lt = (le, ue, Ue) => it(e.createElement(le), le, ue, Ue, !0), Le = Ad.decode, Ft = Ad.encodeAllRaw, fn = (le, ue, Ue = "") => {
|
|
2355
2355
|
let Be = "<" + le;
|
|
2356
2356
|
for (const gt in ue)
|
|
2357
|
-
fl(ue, gt) && (Be += " " + gt + '="' +
|
|
2358
|
-
return Hr(Ue) &&
|
|
2357
|
+
fl(ue, gt) && (Be += " " + gt + '="' + Ft(ue[gt]) + '"');
|
|
2358
|
+
return Hr(Ue) && Mt(S.getVoidElements(), le) ? Be + " />" : Be + ">" + Ue + "</" + le + ">";
|
|
2359
2359
|
}, jn = (le) => {
|
|
2360
2360
|
const ue = e.createElement("div"), Ue = e.createDocumentFragment();
|
|
2361
2361
|
Ue.appendChild(ue), le && (ue.innerHTML = le);
|
|
@@ -2389,7 +2389,7 @@ var RK = { exports: {} };
|
|
|
2389
2389
|
le || (le = ""), ve(le.split(","), (ue) => {
|
|
2390
2390
|
i[ue] = !0, p.load(ue).catch(Ce);
|
|
2391
2391
|
});
|
|
2392
|
-
},
|
|
2392
|
+
}, Ut = (le, ue, Ue) => {
|
|
2393
2393
|
dt(le, (Be) => {
|
|
2394
2394
|
if (lt(Be)) {
|
|
2395
2395
|
const gt = V.fromDom(Be), ln = ue.split(" ");
|
|
@@ -2399,9 +2399,9 @@ var RK = { exports: {} };
|
|
|
2399
2399
|
}
|
|
2400
2400
|
});
|
|
2401
2401
|
}, Sn = (le, ue) => {
|
|
2402
|
-
|
|
2402
|
+
Ut(le, ue, !0);
|
|
2403
2403
|
}, Jn = (le, ue) => {
|
|
2404
|
-
|
|
2404
|
+
Ut(le, ue, !1);
|
|
2405
2405
|
}, yo = (le, ue) => {
|
|
2406
2406
|
const Ue = F(le), Be = ue.split(" ");
|
|
2407
2407
|
return Ae(Ue) && Ts(Be, (gt) => ng(Ue, gt));
|
|
@@ -2433,7 +2433,7 @@ var RK = { exports: {} };
|
|
|
2433
2433
|
}), (gt = Be.parentNode) === null || gt === void 0 || gt.replaceChild(ln, Be), Be;
|
|
2434
2434
|
}), Dy = (le, ue) => {
|
|
2435
2435
|
if (le.nodeName !== ue.toUpperCase()) {
|
|
2436
|
-
const Ue =
|
|
2436
|
+
const Ue = Lt(ue);
|
|
2437
2437
|
return n_(Z(le), (Be) => {
|
|
2438
2438
|
X(Ue, Be.nodeName, K(le, Be.nodeName));
|
|
2439
2439
|
}), Lp(Ue, le, !0), Ue;
|
|
@@ -2560,7 +2560,7 @@ var RK = { exports: {} };
|
|
|
2560
2560
|
select: ze,
|
|
2561
2561
|
is: on,
|
|
2562
2562
|
add: it,
|
|
2563
|
-
create:
|
|
2563
|
+
create: Lt,
|
|
2564
2564
|
createHTML: fn,
|
|
2565
2565
|
createFragment: jn,
|
|
2566
2566
|
remove: zn,
|
|
@@ -2579,7 +2579,7 @@ var RK = { exports: {} };
|
|
|
2579
2579
|
addClass: Sn,
|
|
2580
2580
|
removeClass: Jn,
|
|
2581
2581
|
hasClass: yo,
|
|
2582
|
-
toggleClass:
|
|
2582
|
+
toggleClass: Ut,
|
|
2583
2583
|
show: So,
|
|
2584
2584
|
hide: ha,
|
|
2585
2585
|
isHidden: cl,
|
|
@@ -2588,7 +2588,7 @@ var RK = { exports: {} };
|
|
|
2588
2588
|
getOuterHTML: Oy,
|
|
2589
2589
|
setOuterHTML: Vf,
|
|
2590
2590
|
decode: Le,
|
|
2591
|
-
encode:
|
|
2591
|
+
encode: Ft,
|
|
2592
2592
|
insertAfter: Mp,
|
|
2593
2593
|
replace: Lp,
|
|
2594
2594
|
rename: Dy,
|
|
@@ -2719,7 +2719,7 @@ var RK = { exports: {} };
|
|
|
2719
2719
|
}, ji = (e, n) => {
|
|
2720
2720
|
const o = e.indexOf(n);
|
|
2721
2721
|
return o !== -1 && e.indexOf(n, o + 1) > o;
|
|
2722
|
-
}, oF = (e) => Gt(e) &&
|
|
2722
|
+
}, oF = (e) => Gt(e) && Mt(e, "raw"), sF = (e) => Eo(e) && e.length > 1, Sh = {}, Tv = Zo("en"), Ol = () => ro(Sh, Tv.get()), Gi = {
|
|
2723
2723
|
getData: () => En(Sh, (e) => ({ ...e })),
|
|
2724
2724
|
setCode: (e) => {
|
|
2725
2725
|
e && Tv.set(e);
|
|
@@ -2731,31 +2731,31 @@ var RK = { exports: {} };
|
|
|
2731
2731
|
const r = vt(Is(n), (i) => i.toLowerCase());
|
|
2732
2732
|
Ke(n, (i, l) => {
|
|
2733
2733
|
const d = l.toLowerCase();
|
|
2734
|
-
d !== l && ji(r, d) ? (
|
|
2734
|
+
d !== l && ji(r, d) ? (Mt(n, d) || (o[d] = i), o[l] = i) : o[d] = i;
|
|
2735
2735
|
});
|
|
2736
2736
|
},
|
|
2737
2737
|
translate: (e) => {
|
|
2738
2738
|
const n = Ol().getOr({}), o = (d) => Et(d) ? Object.prototype.toString.call(d) : r(d) ? "" : "" + d, r = (d) => d === "" || d === null || d === void 0, i = (d) => {
|
|
2739
2739
|
const g = o(d);
|
|
2740
|
-
return
|
|
2740
|
+
return Mt(n, g) ? o(n[g]) : ro(n, g.toLowerCase()).map(o).getOr(g);
|
|
2741
2741
|
}, l = (d) => d.replace(/{context:\w+}$/, "");
|
|
2742
2742
|
if (r(e))
|
|
2743
2743
|
return "";
|
|
2744
2744
|
if (oF(e))
|
|
2745
2745
|
return o(e.raw);
|
|
2746
2746
|
if (sF(e)) {
|
|
2747
|
-
const d = e.slice(1), g = i(e[0]).replace(/\{([0-9]+)\}/g, (p, v) =>
|
|
2747
|
+
const d = e.slice(1), g = i(e[0]).replace(/\{([0-9]+)\}/g, (p, v) => Mt(d, v) ? o(d[v]) : p);
|
|
2748
2748
|
return l(g);
|
|
2749
2749
|
}
|
|
2750
2750
|
return l(i(e));
|
|
2751
2751
|
},
|
|
2752
2752
|
isRtl: () => Ol().bind((e) => ro(e, "_dir")).exists((e) => e === "rtl"),
|
|
2753
|
-
hasCode: (e) =>
|
|
2753
|
+
hasCode: (e) => Mt(Sh, e)
|
|
2754
2754
|
}, Xr = () => {
|
|
2755
2755
|
const e = [], n = {}, o = {}, r = [], i = (R, F) => {
|
|
2756
2756
|
const K = Ct(r, (Z) => Z.name === R && Z.state === F);
|
|
2757
2757
|
ve(K, (Z) => Z.resolve());
|
|
2758
|
-
}, l = (R) =>
|
|
2758
|
+
}, l = (R) => Mt(n, R), d = (R) => Mt(o, R), g = (R) => {
|
|
2759
2759
|
if (o[R])
|
|
2760
2760
|
return o[R].instance;
|
|
2761
2761
|
}, p = (R, F) => {
|
|
@@ -3545,7 +3545,7 @@ Required: ` + n.join(", "));
|
|
|
3545
3545
|
const i = r.split("="), l = i[0], d = i.length > 1 ? i[1] : l;
|
|
3546
3546
|
return o[yl(l)] = yl(d), o;
|
|
3547
3547
|
}, {});
|
|
3548
|
-
}, qi = (e) =>
|
|
3548
|
+
}, qi = (e) => It(e, RegExp), et = (e) => (n) => n.options.get(e), si = (e) => de(e) || Gt(e), pO = (e, n = "") => (o) => {
|
|
3549
3549
|
const r = de(o);
|
|
3550
3550
|
if (r)
|
|
3551
3551
|
if (o.indexOf("=") !== -1) {
|
|
@@ -4376,7 +4376,7 @@ Required: ` + n.join(", "));
|
|
|
4376
4376
|
o = o.parentNode;
|
|
4377
4377
|
}
|
|
4378
4378
|
return null;
|
|
4379
|
-
}, D3 = (e) => de(e.start), N3 = (e) =>
|
|
4379
|
+
}, D3 = (e) => de(e.start), N3 = (e) => Mt(e, "rng"), $3 = (e) => Mt(e, "id"), Z_ = (e) => Mt(e, "name"), eD = (e) => Me.isArray(e.start), zh = (e) => !Z_(e) && rn(e.forward) ? e.forward : !0, tD = (e, n) => (lt(n) && e.isBlock(n) && !n.innerHTML && (n.innerHTML = '<br data-mce-bogus="1" />'), n), CG = (e, n) => {
|
|
4380
4380
|
const o = $.from(Zr(e.getRoot(), n.start)), r = $.from(Zr(e.getRoot(), n.end));
|
|
4381
4381
|
return Ls(o, r, (i, l) => {
|
|
4382
4382
|
const d = e.createRng();
|
|
@@ -4953,38 +4953,38 @@ Required: ` + n.join(", "));
|
|
|
4953
4953
|
}, o5 = (e) => e.type === "longpress" || e.type.indexOf("touch") === 0, s5 = (e, n) => {
|
|
4954
4954
|
const o = n.dom, r = n.getDoc(), i = document, l = n.getBody();
|
|
4955
4955
|
let d, g, p, v, S, k, T, M, L, R, F, K, Z, X, ce, Te, Ie;
|
|
4956
|
-
const qe = (Le) => Ae(Le) && (Kr(Le) || o.is(Le, "figure.image")), he = (Le) => rs(Le) || o.hasClass(Le, "mce-preview-object"), me = (Le,
|
|
4956
|
+
const qe = (Le) => Ae(Le) && (Kr(Le) || o.is(Le, "figure.image")), he = (Le) => rs(Le) || o.hasClass(Le, "mce-preview-object"), me = (Le, Ft) => {
|
|
4957
4957
|
if (o5(Le)) {
|
|
4958
4958
|
const fn = Le.touches[0];
|
|
4959
|
-
return qe(Le.target) && !yS(fn.clientX, fn.clientY,
|
|
4959
|
+
return qe(Le.target) && !yS(fn.clientX, fn.clientY, Ft);
|
|
4960
4960
|
} else
|
|
4961
|
-
return qe(Le.target) && !yS(Le.clientX, Le.clientY,
|
|
4961
|
+
return qe(Le.target) && !yS(Le.clientX, Le.clientY, Ft);
|
|
4962
4962
|
}, ke = (Le) => {
|
|
4963
|
-
const
|
|
4964
|
-
me(Le, n.selection.getRng()) && !Le.isDefaultPrevented() && n.selection.select(
|
|
4963
|
+
const Ft = Le.target;
|
|
4964
|
+
me(Le, n.selection.getRng()) && !Le.isDefaultPrevented() && n.selection.select(Ft);
|
|
4965
4965
|
}, st = (Le) => o.hasClass(Le, "mce-preview-object") && Ae(Le.firstElementChild) ? [
|
|
4966
4966
|
Le,
|
|
4967
4967
|
Le.firstElementChild
|
|
4968
4968
|
] : o.is(Le, "figure.image") ? [Le.querySelector("img")] : [Le], pt = (Le) => {
|
|
4969
|
-
const
|
|
4970
|
-
return !
|
|
4971
|
-
}, on = (Le) => he(Le) ? o.create("img", { src: Ze.transparentSrc }) : Le.cloneNode(!0), en = (Le,
|
|
4969
|
+
const Ft = SO(n);
|
|
4970
|
+
return !Ft || Le.getAttribute("data-mce-resize") === "false" || Le === n.getBody() ? !1 : o.hasClass(Le, "mce-preview-object") && Ae(Le.firstElementChild) ? ka(V.fromDom(Le.firstElementChild), Ft) : ka(V.fromDom(Le), Ft);
|
|
4971
|
+
}, on = (Le) => he(Le) ? o.create("img", { src: Ze.transparentSrc }) : Le.cloneNode(!0), en = (Le, Ft, fn) => {
|
|
4972
4972
|
if (Ae(fn)) {
|
|
4973
4973
|
const jn = st(Le);
|
|
4974
4974
|
ve(jn, (zn) => {
|
|
4975
|
-
zn.style[
|
|
4975
|
+
zn.style[Ft] || !n.schema.isValid(zn.nodeName.toLowerCase(), Ft) ? o.setStyle(zn, Ft, fn) : o.setAttrib(zn, Ft, "" + fn);
|
|
4976
4976
|
});
|
|
4977
4977
|
}
|
|
4978
|
-
}, Un = (Le,
|
|
4979
|
-
en(Le, "width",
|
|
4978
|
+
}, Un = (Le, Ft, fn) => {
|
|
4979
|
+
en(Le, "width", Ft), en(Le, "height", fn);
|
|
4980
4980
|
}, Zn = (Le) => {
|
|
4981
|
-
let
|
|
4982
|
-
|
|
4981
|
+
let Ft, fn, jn, zn, Ss;
|
|
4982
|
+
Ft = Le.screenX - k, fn = Le.screenY - T, X = Ft * v[2] + R, ce = fn * v[3] + F, X = X < 5 ? 5 : X, ce = ce < 5 ? 5 : ce, (qe(d) || he(d)) && MF(n) !== !1 ? jn = !ot.modifierPressed(Le) : jn = ot.modifierPressed(Le), jn && (d0(Ft) > d0(fn) ? (ce = Jh(X * K), X = Jh(ce / K)) : (X = Jh(ce / K), ce = Jh(X * K))), Un(g, X, ce), zn = v.startPos.x + Ft, Ss = v.startPos.y + fn, zn = zn > 0 ? zn : 0, Ss = Ss > 0 ? Ss : 0, o.setStyles(p, {
|
|
4983
4983
|
left: zn,
|
|
4984
4984
|
top: Ss,
|
|
4985
4985
|
display: "block"
|
|
4986
|
-
}), p.innerHTML = X + " × " + ce, v[2] < 0 && g.clientWidth <= X && o.setStyle(g, "left", M + (R - X)), v[3] < 0 && g.clientHeight <= ce && o.setStyle(g, "top", L + (F - ce)),
|
|
4987
|
-
left: zn -
|
|
4986
|
+
}), p.innerHTML = X + " × " + ce, v[2] < 0 && g.clientWidth <= X && o.setStyle(g, "left", M + (R - X)), v[3] < 0 && g.clientHeight <= ce && o.setStyle(g, "top", L + (F - ce)), Ft = l.scrollWidth - Te, fn = l.scrollHeight - Ie, Ft + fn !== 0 && o.setStyles(p, {
|
|
4987
|
+
left: zn - Ft,
|
|
4988
4988
|
top: Ss - fn
|
|
4989
4989
|
}), Z || (xS(n, d, R, F, "corner-" + v.name), Z = !0);
|
|
4990
4990
|
}, zo = () => {
|
|
@@ -4992,11 +4992,11 @@ Required: ` + n.join(", "));
|
|
|
4992
4992
|
Z = !1, Le && (en(d, "width", X), en(d, "height", ce)), o.unbind(r, "mousemove", Zn), o.unbind(r, "mouseup", zo), i !== r && (o.unbind(i, "mousemove", Zn), o.unbind(i, "mouseup", zo)), o.remove(g), o.remove(p), o.remove(S), tr(d), Le && (K3(n, d, X, ce, "corner-" + v.name), o.setAttrib(d, "style", o.getAttrib(d, "style"))), n.nodeChanged();
|
|
4993
4993
|
}, tr = (Le) => {
|
|
4994
4994
|
cn();
|
|
4995
|
-
const
|
|
4995
|
+
const Ft = o.getPos(Le, l), fn = Ft.x, jn = Ft.y, zn = Le.getBoundingClientRect(), Ss = zn.width || zn.right - zn.left, dc = zn.height || zn.bottom - zn.top;
|
|
4996
4996
|
d !== Le && (ze(), d = Le, X = ce = 0);
|
|
4997
4997
|
const eu = n.dispatch("ObjectSelected", { target: Le });
|
|
4998
4998
|
pt(Le) && !eu.isDefaultPrevented() ? Ke(AD, (ta, Ni) => {
|
|
4999
|
-
const
|
|
4999
|
+
const Ut = (Jn) => {
|
|
5000
5000
|
const yo = st(d)[0];
|
|
5001
5001
|
k = Jn.screenX, T = Jn.screenY, R = yo.clientWidth, F = yo.clientHeight, K = F / R, v = ta, v.name = Ni, v.startPos = {
|
|
5002
5002
|
x: Ss * ta[0] + fn,
|
|
@@ -5027,21 +5027,21 @@ Required: ` + n.join(", "));
|
|
|
5027
5027
|
unselectable: !0,
|
|
5028
5028
|
style: "cursor:" + Ni + "-resize; margin:0; padding:0"
|
|
5029
5029
|
}), o.bind(Sn, "mousedown", (Jn) => {
|
|
5030
|
-
Jn.stopImmediatePropagation(), Jn.preventDefault(),
|
|
5030
|
+
Jn.stopImmediatePropagation(), Jn.preventDefault(), Ut(Jn);
|
|
5031
5031
|
}), ta.elm = Sn, o.setStyles(Sn, {
|
|
5032
5032
|
left: Ss * ta[0] + fn - Sn.offsetWidth / 2,
|
|
5033
5033
|
top: dc * ta[1] + jn - Sn.offsetHeight / 2
|
|
5034
5034
|
});
|
|
5035
5035
|
}) : ze(!1);
|
|
5036
5036
|
}, Fn = Av(tr, 0), ze = (Le = !0) => {
|
|
5037
|
-
Fn.cancel(), cn(), d && Le && d.removeAttribute(rf), Ke(AD, (
|
|
5037
|
+
Fn.cancel(), cn(), d && Le && d.removeAttribute(rf), Ke(AD, (Ft, fn) => {
|
|
5038
5038
|
const jn = o.get("mceResizeHandle" + fn);
|
|
5039
5039
|
jn && (o.unbind(jn), o.remove(jn));
|
|
5040
5040
|
});
|
|
5041
|
-
}, dt = (Le,
|
|
5041
|
+
}, dt = (Le, Ft) => o.isChildOf(Le, Ft), tn = (Le) => {
|
|
5042
5042
|
if (Z || n.removed || n.composing)
|
|
5043
5043
|
return;
|
|
5044
|
-
const
|
|
5044
|
+
const Ft = Le.type === "mousedown" ? Le.target : e.getNode(), fn = wl(V.fromDom(Ft), CS).map((zn) => zn.dom).filter((zn) => o.isEditable(zn.parentElement) || zn.nodeName === "IMG" && o.isEditable(zn)).getOrUndefined(), jn = Ae(fn) ? o.getAttrib(fn, rf, "1") : "1";
|
|
5045
5045
|
if (ve(o.select(`img[${rf}],hr[${rf}]`), (zn) => {
|
|
5046
5046
|
zn.removeAttribute(rf);
|
|
5047
5047
|
}), Ae(fn) && dt(fn, l) && n.hasFocus()) {
|
|
@@ -5881,7 +5881,7 @@ Required: ` + n.join(", "));
|
|
|
5881
5881
|
const mN = Me.makeMap("NOSCRIPT STYLE SCRIPT XMP IFRAME NOEMBED NOFRAMES PLAINTEXT", " "), fN = (e) => de(e.nodeValue) && e.nodeValue.includes(Js), T0 = (e) => `${e.length === 0 ? "" : `${vt(e, (n) => `[${n}]`).join(",")},`}[data-mce-bogus="all"]`, i4 = (e, n) => n.querySelectorAll(T0(e)), gN = (e) => document.createTreeWalker(e, NodeFilter.SHOW_COMMENT, (n) => fN(n) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP), pN = (e) => document.createTreeWalker(e, NodeFilter.SHOW_TEXT, (n) => {
|
|
5882
5882
|
if (fN(n)) {
|
|
5883
5883
|
const o = n.parentNode;
|
|
5884
|
-
return o &&
|
|
5884
|
+
return o && Mt(mN, o.nodeName) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
5885
5885
|
} else
|
|
5886
5886
|
return NodeFilter.FILTER_SKIP;
|
|
5887
5887
|
}), c4 = (e) => gN(e).nextNode() !== null, l4 = (e) => pN(e).nextNode() !== null, A0 = (e, n) => n.querySelector(T0(e)) !== null, hN = (e, n) => {
|
|
@@ -5895,7 +5895,7 @@ Required: ` + n.join(", "));
|
|
|
5895
5895
|
let n = e.nextNode();
|
|
5896
5896
|
for (; n !== null; )
|
|
5897
5897
|
n.nodeValue = null, n = e.nextNode();
|
|
5898
|
-
}, d4 = w(u4, gN),
|
|
5898
|
+
}, d4 = w(u4, gN), zt = w(u4, pN), bN = (e, n) => {
|
|
5899
5899
|
const o = [
|
|
5900
5900
|
{
|
|
5901
5901
|
condition: rt(A0, n),
|
|
@@ -5907,7 +5907,7 @@ Required: ` + n.join(", "));
|
|
|
5907
5907
|
},
|
|
5908
5908
|
{
|
|
5909
5909
|
condition: l4,
|
|
5910
|
-
action:
|
|
5910
|
+
action: zt
|
|
5911
5911
|
}
|
|
5912
5912
|
];
|
|
5913
5913
|
let r = e, i = !1;
|
|
@@ -6231,7 +6231,7 @@ Required: ` + n.join(", "));
|
|
|
6231
6231
|
}, (r) => {
|
|
6232
6232
|
e.selection.setRng(r.toRange(), n);
|
|
6233
6233
|
});
|
|
6234
|
-
}, JS = (e) => (n) => n.dom === e, H4 = (e, n) => n &&
|
|
6234
|
+
}, JS = (e) => (n) => n.dom === e, H4 = (e, n) => n && Mt(e.schema.getBlockElements(), Cn(n)), U4 = (e, n) => {
|
|
6235
6235
|
if (Ho(e)) {
|
|
6236
6236
|
const o = V.fromHtml('<br data-mce-bogus="1">');
|
|
6237
6237
|
return n ? ve(vs(e), (r) => {
|
|
@@ -6245,7 +6245,7 @@ Required: ` + n.join(", "));
|
|
|
6245
6245
|
const v = d.dom, S = g.dom, k = v.data.length;
|
|
6246
6246
|
return Ps(v, S, o, r), p.container() === S ? pe(v, k) : p;
|
|
6247
6247
|
}).orThunk(() => (r && (i.each((d) => VN(d.dom, d.dom.length, o)), l.each((d) => mf(d.dom, 0, o))), n));
|
|
6248
|
-
}, B0 = (e, n) =>
|
|
6248
|
+
}, B0 = (e, n) => Mt(e.schema.getTextInlineElements(), Cn(n)), Gu = (e, n, o, r = !0, i = !1) => {
|
|
6249
6249
|
const l = V4(n, e.getBody(), o.dom), d = Bo(o, rt(H4, e), JS(e.getBody())), g = ib(o, l, e.schema, B0(e, o));
|
|
6250
6250
|
e.dom.isEmpty(e.getBody()) ? (e.setContent(""), e.selection.setCursorLocation()) : d.bind((p) => U4(p, i)).fold(() => {
|
|
6251
6251
|
r && P0(e, n, g);
|
|
@@ -6455,14 +6455,14 @@ Required: ` + n.join(", "));
|
|
|
6455
6455
|
}), S;
|
|
6456
6456
|
}, p = (v, S) => {
|
|
6457
6457
|
for (const k in v)
|
|
6458
|
-
if (
|
|
6458
|
+
if (Mt(v, k)) {
|
|
6459
6459
|
const T = S[k];
|
|
6460
6460
|
if (To(T) || v[k] !== T)
|
|
6461
6461
|
return !1;
|
|
6462
6462
|
delete S[k];
|
|
6463
6463
|
}
|
|
6464
6464
|
for (const k in S)
|
|
6465
|
-
if (
|
|
6465
|
+
if (Mt(S, k))
|
|
6466
6466
|
return !1;
|
|
6467
6467
|
return !0;
|
|
6468
6468
|
};
|
|
@@ -6889,7 +6889,7 @@ Required: ` + n.join(", "));
|
|
|
6889
6889
|
return !0;
|
|
6890
6890
|
} else
|
|
6891
6891
|
for (const p in d)
|
|
6892
|
-
if (
|
|
6892
|
+
if (Mt(d, p)) {
|
|
6893
6893
|
const v = g ? e.getAttrib(n, p) : qh(e, n, p), S = Rl(d[p], l), k = Qe(v) || Hr(v);
|
|
6894
6894
|
if (k && Qe(S))
|
|
6895
6895
|
continue;
|
|
@@ -7072,11 +7072,11 @@ Required: ` + n.join(", "));
|
|
|
7072
7072
|
if (ri(n.dom))
|
|
7073
7073
|
return !1;
|
|
7074
7074
|
const o = e.schema.getTextInlineElements();
|
|
7075
|
-
return
|
|
7075
|
+
return Mt(o, Cn(n)) && !ri(n.dom) && !Rc(n.dom);
|
|
7076
7076
|
}, _b = {}, nx = Xs(["pre"]), Qo = (e, n) => {
|
|
7077
7077
|
_b[e] || (_b[e] = []), _b[e].push(n);
|
|
7078
7078
|
}, Hk = (e, n) => {
|
|
7079
|
-
|
|
7079
|
+
Mt(_b, e) && ve(_b[e], (o) => {
|
|
7080
7080
|
o(n);
|
|
7081
7081
|
});
|
|
7082
7082
|
};
|
|
@@ -7515,7 +7515,7 @@ Required: ` + n.join(", "));
|
|
|
7515
7515
|
_r(e, n, r, o);
|
|
7516
7516
|
}, j$ = (e, n, o, r) => {
|
|
7517
7517
|
(r || e.selection.isEditable()) && W$(e, n, o, r);
|
|
7518
|
-
}, vf = (e) =>
|
|
7518
|
+
}, vf = (e) => Mt(e, "vars"), OV = (e, n) => {
|
|
7519
7519
|
e.set({}), n.on("NodeChange", (o) => {
|
|
7520
7520
|
Yk(n, o.element, e.get());
|
|
7521
7521
|
}), n.on("FormatApply FormatRemove", (o) => {
|
|
@@ -7608,7 +7608,7 @@ Required: ` + n.join(", "));
|
|
|
7608
7608
|
return {
|
|
7609
7609
|
addFilter: (i, l) => {
|
|
7610
7610
|
ve(Y$(i), (d) => {
|
|
7611
|
-
|
|
7611
|
+
Mt(e, d) || (e[d] = {
|
|
7612
7612
|
name: d,
|
|
7613
7613
|
callbacks: []
|
|
7614
7614
|
}), e[d].callbacks.push(l);
|
|
@@ -7617,7 +7617,7 @@ Required: ` + n.join(", "));
|
|
|
7617
7617
|
getFilters: () => uu(e),
|
|
7618
7618
|
removeFilter: (i, l) => {
|
|
7619
7619
|
ve(Y$(i), (d) => {
|
|
7620
|
-
if (
|
|
7620
|
+
if (Mt(e, d))
|
|
7621
7621
|
if (Ae(l)) {
|
|
7622
7622
|
const g = e[d], p = Ct(g.callbacks, (v) => v !== l);
|
|
7623
7623
|
p.length > 0 ? g.callbacks = p : delete e[d];
|
|
@@ -8575,7 +8575,7 @@ Required: ` + n.join(", "));
|
|
|
8575
8575
|
enumerable: !0,
|
|
8576
8576
|
value: !1
|
|
8577
8577
|
}
|
|
8578
|
-
})), it = null,
|
|
8578
|
+
})), it = null, Lt = null, Le = !0, Ft = !0, fn = !1, jn = !0, zn = !1, Ss = !1, dc = !1, eu = !1, ta = !1, Ni = !1, Ut = !1, Sn = !0, Jn = !1;
|
|
8579
8579
|
const yo = "user-content-";
|
|
8580
8580
|
let So = !0, ha = !1, cl = {}, lm = null;
|
|
8581
8581
|
const Oy = Hn({}, [
|
|
@@ -8647,7 +8647,7 @@ Required: ` + n.join(", "));
|
|
|
8647
8647
|
return fe instanceof RegExp || fe instanceof Function;
|
|
8648
8648
|
}, By = function(fe) {
|
|
8649
8649
|
if (!(um && um === fe)) {
|
|
8650
|
-
if ((!fe || typeof fe != "object") && (fe = {}), fe = dp(fe), nu = lC.indexOf(fe.PARSER_MEDIA_TYPE) === -1 ? nu = $y : nu = fe.PARSER_MEDIA_TYPE, fr = nu === "application/xhtml+xml" ? ux : Yu, Fn = "ALLOWED_TAGS" in fe ? Hn({}, fe.ALLOWED_TAGS, fr) : ze, dt = "ALLOWED_ATTR" in fe ? Hn({}, fe.ALLOWED_ATTR, fr) : tn, Fp = "ALLOWED_NAMESPACES" in fe ? Hn({}, fe.ALLOWED_NAMESPACES, ux) : cC, Lp = "ADD_URI_SAFE_ATTR" in fe ? Hn(dp(Dy), fe.ADD_URI_SAFE_ATTR, fr) : Dy, Vf = "ADD_DATA_URI_TAGS" in fe ? Hn(dp(Mp), fe.ADD_DATA_URI_TAGS, fr) : Mp, lm = "FORBID_CONTENTS" in fe ? Hn({}, fe.FORBID_CONTENTS, fr) : Oy, it = "FORBID_TAGS" in fe ? Hn({}, fe.FORBID_TAGS, fr) : {},
|
|
8650
|
+
if ((!fe || typeof fe != "object") && (fe = {}), fe = dp(fe), nu = lC.indexOf(fe.PARSER_MEDIA_TYPE) === -1 ? nu = $y : nu = fe.PARSER_MEDIA_TYPE, fr = nu === "application/xhtml+xml" ? ux : Yu, Fn = "ALLOWED_TAGS" in fe ? Hn({}, fe.ALLOWED_TAGS, fr) : ze, dt = "ALLOWED_ATTR" in fe ? Hn({}, fe.ALLOWED_ATTR, fr) : tn, Fp = "ALLOWED_NAMESPACES" in fe ? Hn({}, fe.ALLOWED_NAMESPACES, ux) : cC, Lp = "ADD_URI_SAFE_ATTR" in fe ? Hn(dp(Dy), fe.ADD_URI_SAFE_ATTR, fr) : Dy, Vf = "ADD_DATA_URI_TAGS" in fe ? Hn(dp(Mp), fe.ADD_DATA_URI_TAGS, fr) : Mp, lm = "FORBID_CONTENTS" in fe ? Hn({}, fe.FORBID_CONTENTS, fr) : Oy, it = "FORBID_TAGS" in fe ? Hn({}, fe.FORBID_TAGS, fr) : {}, Lt = "FORBID_ATTR" in fe ? Hn({}, fe.FORBID_ATTR, fr) : {}, cl = "USE_PROFILES" in fe ? fe.USE_PROFILES : !1, Le = fe.ALLOW_ARIA_ATTR !== !1, Ft = fe.ALLOW_DATA_ATTR !== !1, fn = fe.ALLOW_UNKNOWN_PROTOCOLS || !1, jn = fe.ALLOW_SELF_CLOSE_IN_ATTR !== !1, zn = fe.SAFE_FOR_TEMPLATES || !1, Ss = fe.WHOLE_DOCUMENT || !1, ta = fe.RETURN_DOM || !1, Ni = fe.RETURN_DOM_FRAGMENT || !1, Ut = fe.RETURN_TRUSTED_TYPE || !1, eu = fe.FORCE_BODY || !1, Sn = fe.SANITIZE_DOM !== !1, Jn = fe.SANITIZE_NAMED_PROPS || !1, So = fe.KEEP_CONTENT !== !1, ha = fe.IN_PLACE || !1, tr = fe.ALLOWED_URI_REGEXP || fP, tu = fe.NAMESPACE || mc, cn = fe.CUSTOM_ELEMENT_HANDLING || {}, fe.CUSTOM_ELEMENT_HANDLING && Py(fe.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (cn.tagNameCheck = fe.CUSTOM_ELEMENT_HANDLING.tagNameCheck), fe.CUSTOM_ELEMENT_HANDLING && Py(fe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (cn.attributeNameCheck = fe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), fe.CUSTOM_ELEMENT_HANDLING && typeof fe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (cn.allowCustomizedBuiltInElements = fe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), zn && (Ft = !1), Ni && (ta = !0), cl && (Fn = Hn({}, [...aP]), dt = [], cl.html === !0 && (Hn(Fn, t1), Hn(dt, s1)), cl.svg === !0 && (Hn(Fn, n1), Hn(dt, r1), Hn(dt, Ob)), cl.svgFilters === !0 && (Hn(Fn, xf), Hn(dt, r1), Hn(dt, Ob)), cl.mathMl === !0 && (Hn(Fn, o1), Hn(dt, iP), Hn(dt, Ob))), fe.ADD_TAGS && (Fn === ze && (Fn = dp(Fn)), Hn(Fn, fe.ADD_TAGS, fr)), fe.ADD_ATTR && (dt === tn && (dt = dp(dt)), Hn(dt, fe.ADD_ATTR, fr)), fe.ADD_URI_SAFE_ATTR && Hn(Lp, fe.ADD_URI_SAFE_ATTR, fr), fe.FORBID_CONTENTS && (lm === Oy && (lm = dp(lm)), Hn(lm, fe.FORBID_CONTENTS, fr)), So && (Fn["#text"] = !0), Ss && Hn(Fn, [
|
|
8651
8651
|
"html",
|
|
8652
8652
|
"head",
|
|
8653
8653
|
"body"
|
|
@@ -8781,9 +8781,9 @@ Required: ` + n.join(", "));
|
|
|
8781
8781
|
}, uC = function(fe, ut, Nt) {
|
|
8782
8782
|
if (Sn && (ut === "id" || ut === "name") && (Nt in i || Nt in hA))
|
|
8783
8783
|
return !1;
|
|
8784
|
-
if (!(
|
|
8784
|
+
if (!(Ft && !Lt[ut] && ki(en, ut))) {
|
|
8785
8785
|
if (!(Le && ki(Un, ut))) {
|
|
8786
|
-
if (!dt[ut] ||
|
|
8786
|
+
if (!dt[ut] || Lt[ut]) {
|
|
8787
8787
|
if (!(yA(fe) && (cn.tagNameCheck instanceof RegExp && ki(cn.tagNameCheck, fe) || cn.tagNameCheck instanceof Function && cn.tagNameCheck(fe)) && (cn.attributeNameCheck instanceof RegExp && ki(cn.attributeNameCheck, ut) || cn.attributeNameCheck instanceof Function && cn.attributeNameCheck(ut)) || ut === "is" && cn.allowCustomizedBuiltInElements && (cn.tagNameCheck instanceof RegExp && ki(cn.tagNameCheck, Nt) || cn.tagNameCheck instanceof Function && cn.tagNameCheck(Nt))))
|
|
8788
8788
|
return !1;
|
|
8789
8789
|
} else if (!Lp[ut]) {
|
|
@@ -8880,9 +8880,9 @@ Required: ` + n.join(", "));
|
|
|
8880
8880
|
ut = xo("<!---->"), Nt = ut.ownerDocument.importNode(sn, !0), Nt.nodeType === 1 && Nt.nodeName === "BODY" || Nt.nodeName === "HTML" ? ut = Nt : ut.appendChild(Nt);
|
|
8881
8881
|
else {
|
|
8882
8882
|
if (!ta && !zn && !Ss && sn.indexOf("<") === -1)
|
|
8883
|
-
return X &&
|
|
8883
|
+
return X && Ut ? X.createHTML(sn) : sn;
|
|
8884
8884
|
if (ut = xo(sn), !ut)
|
|
8885
|
-
return ta ? null :
|
|
8885
|
+
return ta ? null : Ut ? ce : "";
|
|
8886
8886
|
}
|
|
8887
8887
|
ut && eu && gt(ut.firstChild);
|
|
8888
8888
|
const Pi = na(ha ? sn : ut);
|
|
@@ -8900,7 +8900,7 @@ Required: ` + n.join(", "));
|
|
|
8900
8900
|
}
|
|
8901
8901
|
let ks = Ss ? ut.outerHTML : ut.innerHTML;
|
|
8902
8902
|
return Ss && Fn["!doctype"] && ut.ownerDocument && ut.ownerDocument.doctype && ut.ownerDocument.doctype.name && ki(mx, ut.ownerDocument.doctype.name) && (ks = "<!DOCTYPE " + ut.ownerDocument.doctype.name + `>
|
|
8903
|
-
` + ks), zn && (ks = tc(ks, st, " "), ks = tc(ks, pt, " "), ks = tc(ks, on, " ")), X &&
|
|
8903
|
+
` + ks), zn && (ks = tc(ks, st, " "), ks = tc(ks, pt, " "), ks = tc(ks, on, " ")), X && Ut ? X.createHTML(ks) : ks;
|
|
8904
8904
|
}, n.setConfig = function(sn) {
|
|
8905
8905
|
By(sn), dc = !0;
|
|
8906
8906
|
}, n.clearConfig = function() {
|
|
@@ -9103,7 +9103,7 @@ Required: ` + n.join(", "));
|
|
|
9103
9103
|
}
|
|
9104
9104
|
const R = o.getElementRule(k);
|
|
9105
9105
|
if (v && !R) {
|
|
9106
|
-
|
|
9106
|
+
Mt(S, k) ? Pn(T) : ja(T);
|
|
9107
9107
|
return;
|
|
9108
9108
|
} else
|
|
9109
9109
|
Ae(i) && (i.allowedTags[k] = !0);
|
|
@@ -9274,12 +9274,12 @@ Required: ` + n.join(", "));
|
|
|
9274
9274
|
sanitize: !0,
|
|
9275
9275
|
...e
|
|
9276
9276
|
}, l = new DOMParser(), d = tH(i, n), g = (X, ce, Te = "html") => {
|
|
9277
|
-
const Ie = Te === "xhtml" ? "application/xhtml+xml" : "text/html", qe =
|
|
9277
|
+
const Ie = Te === "xhtml" ? "application/xhtml+xml" : "text/html", qe = Mt(n.getSpecialElements(), ce.toLowerCase()), he = qe ? `<${ce}>${X}</${ce}>` : X, me = Te === "xhtml" ? `<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>${he}</body></html>` : `<body>${he}</body>`, ke = l.parseFromString(me, Ie).body;
|
|
9278
9278
|
return d.sanitizeHtmlElement(ke, Ie), qe ? ke.firstChild : ke;
|
|
9279
9279
|
}, p = o.addFilter, v = o.getFilters, S = o.removeFilter, k = r.addFilter, T = r.getFilters, M = r.removeFilter, L = (X, ce) => {
|
|
9280
9280
|
G0(n, X) && ce.push(X);
|
|
9281
9281
|
}, R = (X, ce) => {
|
|
9282
|
-
const Te = de(ce.attr(l1)), Ie = ce.type === 1 && !
|
|
9282
|
+
const Te = de(ce.attr(l1)), Ie = ce.type === 1 && !Mt(X, ce.name) && !ku(n, ce) && !Hc(ce.name);
|
|
9283
9283
|
return ce.type === 3 || Ie && !Te;
|
|
9284
9284
|
}, F = (X, ce) => {
|
|
9285
9285
|
const Te = SP(_P("script,style,head,html,body,title,meta,param"), n.getBlockElements()), Ie = /^[ \t\r\n]+/, qe = /[ \t\r\n]+$/;
|
|
@@ -9820,7 +9820,7 @@ Required: ` + n.join(", "));
|
|
|
9820
9820
|
},
|
|
9821
9821
|
raw: { getModel: Fe($.none()) }
|
|
9822
9822
|
};
|
|
9823
|
-
}, Xu = (e) =>
|
|
9823
|
+
}, Xu = (e) => Mt(e.plugins, "rtc"), OH = (e) => ro(e.plugins, "rtc").bind((n) => $.from(n.setup)), DH = (e) => {
|
|
9824
9824
|
const n = e;
|
|
9825
9825
|
return OH(e).fold(() => (n.rtcInstance = UP(e), $.none()), (o) => (n.rtcInstance = O1(), $.some(() => o().then((r) => (n.rtcInstance = Uo(r), r.rtc.isRemote)))));
|
|
9826
9826
|
}, Gd = (e) => e.rtcInstance ? e.rtcInstance : UP(e), _s = (e) => {
|
|
@@ -9885,7 +9885,7 @@ Required: ` + n.join(", "));
|
|
|
9885
9885
|
KH(d, d.createContextualFragment(l), e.schema), e.selection.setRng(d), nb(e, d), px(e, l, i);
|
|
9886
9886
|
});
|
|
9887
9887
|
}, XP = (e, n, o) => {
|
|
9888
|
-
if (
|
|
9888
|
+
if (Mt(e, n)) {
|
|
9889
9889
|
const r = Ct(e[n], (i) => i !== o);
|
|
9890
9890
|
r.length === 0 ? delete e[n] : e[n] = r;
|
|
9891
9891
|
}
|
|
@@ -9942,9 +9942,9 @@ Required: ` + n.join(", "));
|
|
|
9942
9942
|
dt.collapse(!!ze), ce(dt);
|
|
9943
9943
|
}, Z = () => n.getSelection ? n.getSelection() : n.document.selection, X = () => {
|
|
9944
9944
|
let ze;
|
|
9945
|
-
const dt = (cn, it,
|
|
9945
|
+
const dt = (cn, it, Lt) => {
|
|
9946
9946
|
try {
|
|
9947
|
-
return it.compareBoundaryPoints(cn,
|
|
9947
|
+
return it.compareBoundaryPoints(cn, Lt);
|
|
9948
9948
|
} catch {
|
|
9949
9949
|
return -1;
|
|
9950
9950
|
}
|
|
@@ -10250,13 +10250,13 @@ Required: ` + n.join(", "));
|
|
|
10250
10250
|
},
|
|
10251
10251
|
{ name: "rtc" }
|
|
10252
10252
|
], iB = (e, n) => {
|
|
10253
|
-
const o = Ct(n, (r) =>
|
|
10253
|
+
const o = Ct(n, (r) => Mt(e, r));
|
|
10254
10254
|
return go(o);
|
|
10255
10255
|
}, jG = (e) => {
|
|
10256
10256
|
const n = iB(e, rB), o = e.forced_root_block;
|
|
10257
10257
|
return (o === !1 || o === "") && n.push("forced_root_block (false only)"), go(n);
|
|
10258
10258
|
}, el = (e) => iB(e, aU), Ex = (e, n) => {
|
|
10259
|
-
const o = Me.makeMap(e.plugins, " "), i = Ct(n, (l) =>
|
|
10259
|
+
const o = Me.makeMap(e.plugins, " "), i = Ct(n, (l) => Mt(o, l));
|
|
10260
10260
|
return go(i);
|
|
10261
10261
|
}, cU = (e) => Ex(e, iU), lU = (e) => Ex(e, aB.map((n) => n.name)), uU = (e, n) => {
|
|
10262
10262
|
const o = jG(e), r = cU(n), i = r.length > 0, l = o.length > 0, d = n.theme === "mobile";
|
|
@@ -10318,7 +10318,7 @@ Options:${d}${o.join(d)}` : "";
|
|
|
10318
10318
|
e[i] = l;
|
|
10319
10319
|
},
|
|
10320
10320
|
get: (i) => e[i] ? e[i] : { icons: {} },
|
|
10321
|
-
has: (i) =>
|
|
10321
|
+
has: (i) => Mt(e, i)
|
|
10322
10322
|
};
|
|
10323
10323
|
})(), Ai = Xr.ModelManager, ua = (e, n) => n.dom[e], gp = (e, n) => parseInt(zi(n, e), 10), Kd = rt(ua, "clientWidth"), ql = rt(ua, "clientHeight"), Vb = rt(gp, "margin-top"), I1 = rt(gp, "margin-left"), M1 = (e) => e.dom.getBoundingClientRect(), cB = (e, n, o) => {
|
|
10324
10324
|
const r = Kd(e), i = ql(e);
|
|
@@ -10491,7 +10491,7 @@ Options:${d}${o.join(d)}` : "";
|
|
|
10491
10491
|
return p.hasAttribute("data-mce-bogus") || p.hasAttribute("data-mce-placeholder") || !v || v === Ze.transparentSrc ? !1 : Go(v, "blob:") ? !e.isUploaded(v) && l(p) : Go(v, "data:") ? l(p) : !1;
|
|
10492
10492
|
}), g = vt(d, (p) => {
|
|
10493
10493
|
const v = p.src;
|
|
10494
|
-
if (
|
|
10494
|
+
if (Mt(o, v))
|
|
10495
10495
|
return o[v].then((S) => de(S) ? S : {
|
|
10496
10496
|
image: p,
|
|
10497
10497
|
blobInfo: S.blobInfo
|
|
@@ -11139,7 +11139,7 @@ Options:${d}${o.join(d)}` : "";
|
|
|
11139
11139
|
...sc
|
|
11140
11140
|
}
|
|
11141
11141
|
}, Nx = Fe(Cf), $x = (e) => {
|
|
11142
|
-
const n = {}, o = (d) => Ae(d) ? n[d] : n, r = (d) =>
|
|
11142
|
+
const n = {}, o = (d) => Ae(d) ? n[d] : n, r = (d) => Mt(n, d), i = (d, g) => {
|
|
11143
11143
|
d && (de(d) ? (Eo(g) || (g = [g]), ve(g, (p) => {
|
|
11144
11144
|
To(p.deep) && (p.deep = !$a(p)), To(p.split) && (p.split = !$a(p) || ms(p)), To(p.remove) && $a(p) && !ms(p) && (p.remove = "none"), $a(p) && ms(p) && (p.mixed = !0, p.block_expand = !0), de(p.classes) && (p.classes = p.classes.split(/\s+/));
|
|
11145
11145
|
}), n[d] = g) : Ke(d, (p, v) => {
|
|
@@ -12108,7 +12108,7 @@ Options:${d}${o.join(d)}` : "";
|
|
|
12108
12108
|
});
|
|
12109
12109
|
});
|
|
12110
12110
|
}, !0);
|
|
12111
|
-
}, Qx = (e, n) =>
|
|
12111
|
+
}, Qx = (e, n) => Mt(e, n.nodeName), _R = (e, n) => Pe(n) ? !0 : lt(n) ? !Qx(e.getBlockElements(), n) && !ai(n) && !pn(e, n) && !UC(n) : !1, n8 = (e, n, o) => fo(GS(V.fromDom(o), V.fromDom(n)), (r) => Qx(e, r.dom)), o8 = (e, n) => {
|
|
12112
12112
|
if (Pe(n)) {
|
|
12113
12113
|
if (n.data.length === 0)
|
|
12114
12114
|
return !0;
|
|
@@ -12662,7 +12662,7 @@ Options:${d}${o.join(d)}` : "";
|
|
|
12662
12662
|
for (let r = 0; r < n.length; r++) {
|
|
12663
12663
|
const i = n[r];
|
|
12664
12664
|
for (const l in i)
|
|
12665
|
-
|
|
12665
|
+
Mt(i, l) && (o[l] = e(o[l], i[l]));
|
|
12666
12666
|
}
|
|
12667
12667
|
return o;
|
|
12668
12668
|
}, ly = aI(rI), iI = aI(Z8), cI = () => ({
|
|
@@ -13222,7 +13222,7 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
13222
13222
|
r = i;
|
|
13223
13223
|
}
|
|
13224
13224
|
return !1;
|
|
13225
|
-
}, L6 = (e, n, o) => !n && o.nodeName.toLowerCase() === $r(e) && e.dom.isEmpty(o) && M6(e.getBody(), o, (r) =>
|
|
13225
|
+
}, L6 = (e, n, o) => !n && o.nodeName.toLowerCase() === $r(e) && e.dom.isEmpty(o) && M6(e.getBody(), o, (r) => Mt(e.schema.getTextBlockElements(), r.nodeName.toLowerCase())), F6 = (e, n, o) => {
|
|
13226
13226
|
var r, i, l;
|
|
13227
13227
|
const d = n($r(e)), g = LI(e, o);
|
|
13228
13228
|
g && (e.dom.insertAfter(d, g), vo(e, d), ((l = (i = (r = o.parentElement) === null || r === void 0 ? void 0 : r.childNodes) === null || i === void 0 ? void 0 : i.length) !== null && l !== void 0 ? l : 0) > 1 && e.dom.remove(o));
|
|
@@ -13910,7 +13910,7 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
13910
13910
|
getLastRng: n.get
|
|
13911
13911
|
};
|
|
13912
13912
|
}, hM = (e, n) => (Me.each(n, (o) => {
|
|
13913
|
-
|
|
13913
|
+
It(o, RegExp) ? e = e.replace(o, "") : e = e.replace(o[0], o[1]);
|
|
13914
13914
|
}), e), H9 = (e) => {
|
|
13915
13915
|
const n = Ou(), o = oc({}, n);
|
|
13916
13916
|
let r = "";
|
|
@@ -14169,7 +14169,7 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
14169
14169
|
const i = e.getParent(o, (d) => pn(n, d));
|
|
14170
14170
|
if (!Q(e.getParent(o, "summary")))
|
|
14171
14171
|
return !0;
|
|
14172
|
-
if (i &&
|
|
14172
|
+
if (i && Mt(r, "text/html")) {
|
|
14173
14173
|
const d = new DOMParser().parseFromString(r["text/html"], "text/html").body;
|
|
14174
14174
|
return !Q(d.querySelector(i.nodeName.toLowerCase()));
|
|
14175
14175
|
} else
|
|
@@ -14678,7 +14678,7 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
14678
14678
|
}), K7(e), o2(e), Y7(e);
|
|
14679
14679
|
}, L = (qe) => Dr(qe) || Hm(qe) || dh(qe), R = (qe) => L(qe.startContainer) || L(qe.endContainer), F = (qe) => {
|
|
14680
14680
|
const he = e.schema.getVoidElements(), me = o.createRng(), ke = qe.startContainer, st = qe.startOffset, pt = qe.endContainer, on = qe.endOffset;
|
|
14681
|
-
return
|
|
14681
|
+
return Mt(he, ke.nodeName.toLowerCase()) ? st === 0 ? me.setStartBefore(ke) : me.setStartAfter(ke) : me.setStart(ke, st), Mt(he, pt.nodeName.toLowerCase()) ? on === 0 ? me.setEndBefore(pt) : me.setEndAfter(pt) : me.setEnd(pt, on), me;
|
|
14682
14682
|
}, K = (qe, he) => {
|
|
14683
14683
|
const me = V.fromDom(e.getBody()), ke = e.getDoc(), st = wd(me, "#" + l).getOrThunk(() => {
|
|
14684
14684
|
const en = V.fromHtml('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>', ke);
|
|
@@ -14819,7 +14819,7 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
14819
14819
|
}, Uw = (e, n) => {
|
|
14820
14820
|
const o = e.dom, r = n.pattern, i = J7(o.getRoot(), n.range).getOrDie("Unable to resolve path range"), l = (d, g) => {
|
|
14821
14821
|
const p = g.get(d);
|
|
14822
|
-
return Eo(p) && es(p).exists((v) =>
|
|
14822
|
+
return Eo(p) && es(p).exists((v) => Mt(v, "block"));
|
|
14823
14823
|
};
|
|
14824
14824
|
return Cy(e, i).each((d) => {
|
|
14825
14825
|
r.type === "block-format" ? l(r.format, e.formatter) && e.undoManager.transact(() => {
|
|
@@ -15051,26 +15051,26 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
15051
15051
|
}, dW = (e) => {
|
|
15052
15052
|
uW(e);
|
|
15053
15053
|
}, mW = (e) => {
|
|
15054
|
-
const n = Me.each, o = ot.BACKSPACE, r = ot.DELETE, i = e.dom, l = e.selection, d = e.parser, g = Ze.browser, p = g.isFirefox(), v = g.isChromium() || g.isSafari(), S = Ze.deviceType.isiPhone() || Ze.deviceType.isiPad(), k = Ze.os.isMacOS() || Ze.os.isiOS(), T = (it,
|
|
15054
|
+
const n = Me.each, o = ot.BACKSPACE, r = ot.DELETE, i = e.dom, l = e.selection, d = e.parser, g = Ze.browser, p = g.isFirefox(), v = g.isChromium() || g.isSafari(), S = Ze.deviceType.isiPhone() || Ze.deviceType.isiPad(), k = Ze.os.isMacOS() || Ze.os.isiOS(), T = (it, Lt) => {
|
|
15055
15055
|
try {
|
|
15056
|
-
e.getDoc().execCommand(it, !1, String(
|
|
15056
|
+
e.getDoc().execCommand(it, !1, String(Lt));
|
|
15057
15057
|
} catch {
|
|
15058
15058
|
}
|
|
15059
15059
|
}, M = (it) => it.isDefaultPrevented(), L = () => {
|
|
15060
15060
|
const it = (Le) => {
|
|
15061
|
-
const
|
|
15062
|
-
return
|
|
15063
|
-
},
|
|
15064
|
-
const
|
|
15061
|
+
const Ft = i.create("body"), fn = Le.cloneContents();
|
|
15062
|
+
return Ft.appendChild(fn), l.serializer.serialize(Ft, { format: "html" });
|
|
15063
|
+
}, Lt = (Le) => {
|
|
15064
|
+
const Ft = it(Le), fn = i.createRng();
|
|
15065
15065
|
fn.selectNode(e.getBody());
|
|
15066
15066
|
const jn = it(fn);
|
|
15067
|
-
return
|
|
15067
|
+
return Ft === jn;
|
|
15068
15068
|
};
|
|
15069
15069
|
e.on("keydown", (Le) => {
|
|
15070
|
-
const
|
|
15071
|
-
if (!M(Le) && (
|
|
15070
|
+
const Ft = Le.keyCode;
|
|
15071
|
+
if (!M(Le) && (Ft === r || Ft === o) && e.selection.isEditable()) {
|
|
15072
15072
|
const fn = e.selection.isCollapsed(), jn = e.getBody();
|
|
15073
|
-
if (fn && !Ho(V.fromDom(jn)) || !fn && !
|
|
15073
|
+
if (fn && !Ho(V.fromDom(jn)) || !fn && !Lt(e.selection.getRng()))
|
|
15074
15074
|
return;
|
|
15075
15075
|
Le.preventDefault(), e.setContent(""), jn.firstChild && i.isBlock(jn.firstChild) ? e.selection.setCursorLocation(jn.firstChild, 0) : e.selection.setCursorLocation(jn, 0), e.nodeChanged();
|
|
15076
15076
|
}
|
|
@@ -15079,14 +15079,14 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
15079
15079
|
e.shortcuts.add("meta+a", null, "SelectAll");
|
|
15080
15080
|
}, F = () => {
|
|
15081
15081
|
e.inline || i.bind(e.getDoc(), "mousedown mouseup", (it) => {
|
|
15082
|
-
let
|
|
15082
|
+
let Lt;
|
|
15083
15083
|
if (it.target === e.getDoc().documentElement)
|
|
15084
|
-
if (
|
|
15085
|
-
if (Dr(
|
|
15084
|
+
if (Lt = l.getRng(), e.getBody().focus(), it.type === "mousedown") {
|
|
15085
|
+
if (Dr(Lt.startContainer))
|
|
15086
15086
|
return;
|
|
15087
15087
|
l.placeCaretAt(it.clientX, it.clientY);
|
|
15088
15088
|
} else
|
|
15089
|
-
l.setRng(
|
|
15089
|
+
l.setRng(Lt);
|
|
15090
15090
|
});
|
|
15091
15091
|
}, K = () => {
|
|
15092
15092
|
e.on("keydown", (it) => {
|
|
@@ -15094,9 +15094,9 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
15094
15094
|
if (!e.getBody().getElementsByTagName("hr").length)
|
|
15095
15095
|
return;
|
|
15096
15096
|
if (l.isCollapsed() && l.getRng().startOffset === 0) {
|
|
15097
|
-
const
|
|
15098
|
-
if (
|
|
15099
|
-
i.remove(
|
|
15097
|
+
const Lt = l.getNode(), Le = Lt.previousSibling;
|
|
15098
|
+
if (Lt.nodeName === "HR") {
|
|
15099
|
+
i.remove(Lt), it.preventDefault();
|
|
15100
15100
|
return;
|
|
15101
15101
|
}
|
|
15102
15102
|
Le && Le.nodeName && Le.nodeName.toLowerCase() === "hr" && (i.remove(Le), it.preventDefault());
|
|
@@ -15106,44 +15106,44 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
15106
15106
|
}, Z = () => {
|
|
15107
15107
|
Range.prototype.getClientRects || e.on("mousedown", (it) => {
|
|
15108
15108
|
if (!M(it) && it.target.nodeName === "HTML") {
|
|
15109
|
-
const
|
|
15110
|
-
|
|
15111
|
-
|
|
15109
|
+
const Lt = e.getBody();
|
|
15110
|
+
Lt.blur(), ci.setEditorTimeout(e, () => {
|
|
15111
|
+
Lt.focus();
|
|
15112
15112
|
});
|
|
15113
15113
|
}
|
|
15114
15114
|
});
|
|
15115
15115
|
}, X = () => {
|
|
15116
15116
|
const it = DO(e);
|
|
15117
|
-
e.on("click", (
|
|
15118
|
-
const Le =
|
|
15119
|
-
/^(IMG|HR)$/.test(Le.nodeName) && i.isEditable(Le) && (
|
|
15117
|
+
e.on("click", (Lt) => {
|
|
15118
|
+
const Le = Lt.target;
|
|
15119
|
+
/^(IMG|HR)$/.test(Le.nodeName) && i.isEditable(Le) && (Lt.preventDefault(), e.selection.select(Le), e.nodeChanged()), Le.nodeName === "A" && i.hasClass(Le, it) && Le.childNodes.length === 0 && i.isEditable(Le.parentNode) && (Lt.preventDefault(), l.select(Le));
|
|
15120
15120
|
});
|
|
15121
15121
|
}, ce = () => {
|
|
15122
15122
|
const it = () => {
|
|
15123
15123
|
const Le = i.getAttribs(l.getStart().cloneNode(!1));
|
|
15124
15124
|
return () => {
|
|
15125
|
-
const
|
|
15126
|
-
|
|
15127
|
-
|
|
15125
|
+
const Ft = l.getStart();
|
|
15126
|
+
Ft !== e.getBody() && (i.setAttrib(Ft, "style", null), n(Le, (fn) => {
|
|
15127
|
+
Ft.setAttributeNode(fn.cloneNode(!0));
|
|
15128
15128
|
}));
|
|
15129
15129
|
};
|
|
15130
|
-
},
|
|
15130
|
+
}, Lt = () => !l.isCollapsed() && i.getParent(l.getStart(), i.isBlock) !== i.getParent(l.getEnd(), i.isBlock);
|
|
15131
15131
|
e.on("keypress", (Le) => {
|
|
15132
|
-
let
|
|
15133
|
-
return !M(Le) && (Le.keyCode === 8 || Le.keyCode === 46) &&
|
|
15132
|
+
let Ft;
|
|
15133
|
+
return !M(Le) && (Le.keyCode === 8 || Le.keyCode === 46) && Lt() ? (Ft = it(), e.getDoc().execCommand("delete", !1), Ft(), Le.preventDefault(), !1) : !0;
|
|
15134
15134
|
}), i.bind(e.getDoc(), "cut", (Le) => {
|
|
15135
|
-
if (!M(Le) &&
|
|
15136
|
-
const
|
|
15135
|
+
if (!M(Le) && Lt()) {
|
|
15136
|
+
const Ft = it();
|
|
15137
15137
|
ci.setEditorTimeout(e, () => {
|
|
15138
|
-
|
|
15138
|
+
Ft();
|
|
15139
15139
|
});
|
|
15140
15140
|
}
|
|
15141
15141
|
});
|
|
15142
15142
|
}, Te = () => {
|
|
15143
15143
|
e.on("keydown", (it) => {
|
|
15144
15144
|
if (!M(it) && it.keyCode === o && l.isCollapsed() && l.getRng().startOffset === 0) {
|
|
15145
|
-
const
|
|
15146
|
-
if (
|
|
15145
|
+
const Lt = l.getNode().previousSibling;
|
|
15146
|
+
if (Lt && Lt.nodeName && Lt.nodeName.toLowerCase() === "table")
|
|
15147
15147
|
return it.preventDefault(), !1;
|
|
15148
15148
|
}
|
|
15149
15149
|
return !0;
|
|
@@ -15152,13 +15152,13 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
15152
15152
|
e.on("keydown", (it) => {
|
|
15153
15153
|
if (M(it) || it.keyCode !== ot.BACKSPACE)
|
|
15154
15154
|
return;
|
|
15155
|
-
let
|
|
15156
|
-
const Le =
|
|
15155
|
+
let Lt = l.getRng();
|
|
15156
|
+
const Le = Lt.startContainer, Ft = Lt.startOffset, fn = i.getRoot();
|
|
15157
15157
|
let jn = Le;
|
|
15158
|
-
if (!(!
|
|
15158
|
+
if (!(!Lt.collapsed || Ft !== 0)) {
|
|
15159
15159
|
for (; jn.parentNode && jn.parentNode.firstChild === jn && jn.parentNode !== fn; )
|
|
15160
15160
|
jn = jn.parentNode;
|
|
15161
|
-
jn.nodeName === "BLOCKQUOTE" && (e.formatter.toggle("blockquote", void 0, jn),
|
|
15161
|
+
jn.nodeName === "BLOCKQUOTE" && (e.formatter.toggle("blockquote", void 0, jn), Lt = i.createRng(), Lt.setStart(Le, 0), Lt.setEnd(Le, 0), l.setRng(Lt));
|
|
15162
15162
|
}
|
|
15163
15163
|
});
|
|
15164
15164
|
}, qe = () => {
|
|
@@ -15168,30 +15168,30 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
15168
15168
|
OO(e) || e.on("BeforeExecCommand mousedown", it);
|
|
15169
15169
|
}, he = () => {
|
|
15170
15170
|
const it = () => {
|
|
15171
|
-
n(i.select("a:not([data-mce-block])"), (
|
|
15171
|
+
n(i.select("a:not([data-mce-block])"), (Lt) => {
|
|
15172
15172
|
var Le;
|
|
15173
|
-
let
|
|
15173
|
+
let Ft = Lt.parentNode;
|
|
15174
15174
|
const fn = i.getRoot();
|
|
15175
|
-
if ((
|
|
15176
|
-
for (;
|
|
15177
|
-
if (((Le =
|
|
15175
|
+
if ((Ft == null ? void 0 : Ft.lastChild) === Lt) {
|
|
15176
|
+
for (; Ft && !i.isBlock(Ft); ) {
|
|
15177
|
+
if (((Le = Ft.parentNode) === null || Le === void 0 ? void 0 : Le.lastChild) !== Ft || Ft === fn)
|
|
15178
15178
|
return;
|
|
15179
|
-
|
|
15179
|
+
Ft = Ft.parentNode;
|
|
15180
15180
|
}
|
|
15181
|
-
i.add(
|
|
15181
|
+
i.add(Ft, "br", { "data-mce-bogus": 1 });
|
|
15182
15182
|
}
|
|
15183
15183
|
});
|
|
15184
15184
|
};
|
|
15185
|
-
e.on("SetContent ExecCommand", (
|
|
15186
|
-
(
|
|
15185
|
+
e.on("SetContent ExecCommand", (Lt) => {
|
|
15186
|
+
(Lt.type === "setcontent" || Lt.command === "mceInsertLink") && it();
|
|
15187
15187
|
});
|
|
15188
15188
|
}, me = () => {
|
|
15189
15189
|
e.on("init", () => {
|
|
15190
15190
|
T("DefaultParagraphSeparator", $r(e));
|
|
15191
15191
|
});
|
|
15192
15192
|
}, ke = (it) => {
|
|
15193
|
-
const
|
|
15194
|
-
return Le.startContainer === Le.endContainer && Le.startContainer ===
|
|
15193
|
+
const Lt = it.getBody(), Le = it.selection.getRng();
|
|
15194
|
+
return Le.startContainer === Le.endContainer && Le.startContainer === Lt && Le.startOffset === 0 && Le.endOffset === Lt.childNodes.length;
|
|
15195
15195
|
}, st = () => {
|
|
15196
15196
|
e.on("keyup focusin mouseup", (it) => {
|
|
15197
15197
|
!ot.modifierPressed(it) && !ke(e) && l.normalize();
|
|
@@ -15204,8 +15204,8 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
15204
15204
|
});
|
|
15205
15205
|
}, en = () => {
|
|
15206
15206
|
e.inline || (e.contentStyles.push("body {min-height: 150px}"), e.on("click", (it) => {
|
|
15207
|
-
let
|
|
15208
|
-
it.target.nodeName === "HTML" && (
|
|
15207
|
+
let Lt;
|
|
15208
|
+
it.target.nodeName === "HTML" && (Lt = e.selection.getRng(), e.getBody().focus(), e.selection.setRng(Lt), e.selection.normalize(), e.nodeChanged());
|
|
15209
15209
|
}));
|
|
15210
15210
|
}, Un = () => {
|
|
15211
15211
|
k && e.on("keydown", (it) => {
|
|
@@ -15213,13 +15213,13 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
15213
15213
|
});
|
|
15214
15214
|
}, Zn = () => {
|
|
15215
15215
|
e.on("click", (it) => {
|
|
15216
|
-
let
|
|
15216
|
+
let Lt = it.target;
|
|
15217
15217
|
do
|
|
15218
|
-
if (
|
|
15218
|
+
if (Lt.tagName === "A") {
|
|
15219
15219
|
it.preventDefault();
|
|
15220
15220
|
return;
|
|
15221
15221
|
}
|
|
15222
|
-
while (
|
|
15222
|
+
while (Lt = Lt.parentNode);
|
|
15223
15223
|
}), e.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}");
|
|
15224
15224
|
}, zo = () => {
|
|
15225
15225
|
e.on("init", () => {
|
|
@@ -15229,9 +15229,9 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
15229
15229
|
});
|
|
15230
15230
|
}, tr = () => {
|
|
15231
15231
|
d.addNodeFilter("br", (it) => {
|
|
15232
|
-
let
|
|
15233
|
-
for (;
|
|
15234
|
-
it[
|
|
15232
|
+
let Lt = it.length;
|
|
15233
|
+
for (; Lt--; )
|
|
15234
|
+
it[Lt].attr("class") === "Apple-interchange-newline" && it[Lt].remove();
|
|
15235
15235
|
});
|
|
15236
15236
|
}, Fn = Ce, ze = () => {
|
|
15237
15237
|
if (!p || e.removed)
|
|
@@ -15242,8 +15242,8 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
15242
15242
|
v && (F(), X(), zo(), R(), S && (on(), en(), Zn())), p && (Z(), qe(), pt(), Un());
|
|
15243
15243
|
}, tn = () => {
|
|
15244
15244
|
e.on("drop", (it) => {
|
|
15245
|
-
var
|
|
15246
|
-
const Le = (
|
|
15245
|
+
var Lt;
|
|
15246
|
+
const Le = (Lt = it.dataTransfer) === null || Lt === void 0 ? void 0 : Lt.getData("text/html");
|
|
15247
15247
|
de(Le) && /^<img[^>]*>$/.test(Le) && e.dispatch("dragend", new window.DragEvent("dragend", it));
|
|
15248
15248
|
});
|
|
15249
15249
|
}, cn = () => {
|
|
@@ -15519,7 +15519,7 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
15519
15519
|
...Fb.get(n).icons
|
|
15520
15520
|
};
|
|
15521
15521
|
Ke(r, (i, l) => {
|
|
15522
|
-
|
|
15522
|
+
Mt(o, l) || e.ui.registry.addIcon(l, i);
|
|
15523
15523
|
});
|
|
15524
15524
|
}, AW = (e) => {
|
|
15525
15525
|
const n = Eg(e);
|
|
@@ -15580,7 +15580,7 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
15580
15580
|
}
|
|
15581
15581
|
}, B2 = (e, n) => {
|
|
15582
15582
|
const o = Eg(e);
|
|
15583
|
-
if (de(o) && !P2(o) && !
|
|
15583
|
+
if (de(o) && !P2(o) && !Mt(Zu.urls, o)) {
|
|
15584
15584
|
const r = VF(e), i = r ? e.documentBaseURI.toAbsolute(r) : `themes/${o}/theme${n}.js`;
|
|
15585
15585
|
Zu.load(o, i).catch(() => {
|
|
15586
15586
|
wU(e, i, o);
|
|
@@ -15588,7 +15588,7 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
15588
15588
|
}
|
|
15589
15589
|
}, QT = (e, n) => {
|
|
15590
15590
|
const o = P_(e);
|
|
15591
|
-
if (o !== "plugin" && !
|
|
15591
|
+
if (o !== "plugin" && !Mt(Ai.urls, o)) {
|
|
15592
15592
|
const r = HF(e), i = de(r) ? e.documentBaseURI.toAbsolute(r) : `models/${o}/model${n}.js`;
|
|
15593
15593
|
Ai.load(o, i).catch(() => {
|
|
15594
15594
|
fB(e, i, o);
|
|
@@ -15688,7 +15688,7 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
15688
15688
|
}, HW = (e, n, o = {}) => {
|
|
15689
15689
|
const r = e.sections(), i = ro(r, n).getOr({});
|
|
15690
15690
|
return Me.extend({}, o, i);
|
|
15691
|
-
}, Yw = (e, n) =>
|
|
15691
|
+
}, Yw = (e, n) => Mt(e.sections(), n), UW = (e, n) => Yw(e, n) ? e.sections()[n] : {}, nA = (e, n) => ({
|
|
15692
15692
|
...{
|
|
15693
15693
|
table_grid: !1,
|
|
15694
15694
|
object_resizing: !1,
|
|
@@ -16375,7 +16375,7 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
16375
16375
|
case "object[]":
|
|
16376
16376
|
return (o) => kn(o, Gt);
|
|
16377
16377
|
case "regexp":
|
|
16378
|
-
return (o) =>
|
|
16378
|
+
return (o) => It(o, RegExp);
|
|
16379
16379
|
default:
|
|
16380
16380
|
return Xe;
|
|
16381
16381
|
}
|
|
@@ -16411,7 +16411,7 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
16411
16411
|
default: L,
|
|
16412
16412
|
processor: M
|
|
16413
16413
|
}, ro(r, k).orThunk(() => ro(n, k)).each((F) => i(k, F, M));
|
|
16414
|
-
}, d = (k) =>
|
|
16414
|
+
}, d = (k) => Mt(o, k);
|
|
16415
16415
|
return {
|
|
16416
16416
|
register: l,
|
|
16417
16417
|
isRegistered: d,
|
|
@@ -16427,7 +16427,7 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
16427
16427
|
const T = d(k);
|
|
16428
16428
|
return T && delete r[k], T;
|
|
16429
16429
|
},
|
|
16430
|
-
isSet: (k) =>
|
|
16430
|
+
isSet: (k) => Mt(r, k)
|
|
16431
16431
|
};
|
|
16432
16432
|
}, Dj = [
|
|
16433
16433
|
"design",
|
|
@@ -16443,7 +16443,7 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
16443
16443
|
i.deactivate(), i.editorReadOnly !== l.editorReadOnly && vj(e, l.editorReadOnly), n.set(r), q3(e, r);
|
|
16444
16444
|
}, Nj = (e, n, o, r) => {
|
|
16445
16445
|
if (r !== o.get()) {
|
|
16446
|
-
if (!
|
|
16446
|
+
if (!Mt(n, r))
|
|
16447
16447
|
throw new Error(`Editor mode '${r}' is invalid`);
|
|
16448
16448
|
e.initialized ? tL(e, o, n, r) : e.on("init", () => tL(e, o, n, r));
|
|
16449
16449
|
}
|
|
@@ -17216,8 +17216,8 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
17216
17216
|
}, G = (t) => {
|
|
17217
17217
|
const s = typeof t;
|
|
17218
17218
|
return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" && ee(t, String, (a, c) => c.isPrototypeOf(a)) ? "string" : s;
|
|
17219
|
-
}, be = (t) => (s) => G(s) === t, oe = (t) => (s) => typeof s === t, U = (t) => (s) => t === s, _e = (t, s) => Oe(t) && ee(t, s, (a, c) => O(a) === c), J = be("string"), Oe = be("object"),
|
|
17220
|
-
if (
|
|
17219
|
+
}, be = (t) => (s) => G(s) === t, oe = (t) => (s) => typeof s === t, U = (t) => (s) => t === s, _e = (t, s) => Oe(t) && ee(t, s, (a, c) => O(a) === c), J = be("string"), Oe = be("object"), mt = (t) => _e(t, Object), Rt = be("array"), xn = U(null), eo = oe("boolean"), jo = U(void 0), xa = (t) => t == null, ko = (t) => !xa(t), Yo = oe("function"), zs = oe("number"), It = (t, s) => {
|
|
17220
|
+
if (Rt(t)) {
|
|
17221
17221
|
for (let a = 0, c = t.length; a < c; ++a)
|
|
17222
17222
|
if (!s(t[a]))
|
|
17223
17223
|
return !1;
|
|
@@ -17385,7 +17385,7 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
17385
17385
|
}, vt = (t) => {
|
|
17386
17386
|
const s = [];
|
|
17387
17387
|
for (let a = 0, c = t.length; a < c; ++a) {
|
|
17388
|
-
if (!
|
|
17388
|
+
if (!Rt(t[a]))
|
|
17389
17389
|
throw new Error("Arr.flatten item " + a + " was not an array, input: " + t);
|
|
17390
17390
|
hs.apply(s, t[a]);
|
|
17391
17391
|
}
|
|
@@ -17477,7 +17477,7 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
17477
17477
|
return w.none();
|
|
17478
17478
|
}
|
|
17479
17479
|
return w.some(s);
|
|
17480
|
-
}, Fa = (t, s, a) => t.isSome() && s.isSome() ? w.some(a(t.getOrDie(), s.getOrDie())) : w.none(), uu = (t, s, a, c) => t.isSome() && s.isSome() && a.isSome() ? w.some(c(t.getOrDie(), s.getOrDie(), a.getOrDie())) : w.none(), ro = (t, s) => t != null ? w.some(s(t)) : w.none(),
|
|
17480
|
+
}, Fa = (t, s, a) => t.isSome() && s.isSome() ? w.some(a(t.getOrDie(), s.getOrDie())) : w.none(), uu = (t, s, a, c) => t.isSome() && s.isSome() && a.isSome() ? w.some(c(t.getOrDie(), s.getOrDie(), a.getOrDie())) : w.none(), ro = (t, s) => t != null ? w.some(s(t)) : w.none(), Mt = (t, s) => t ? w.some(s) : w.none(), fl = (t, s) => t + s, Kf = (t, s) => t.substring(s), gl = (t, s, a) => s === "" || t.length >= s.length && t.substr(a, a + s.length) === s, id = (t, s) => pl(t, s) ? Kf(t, s.length) : t, cd = (t, s) => xc(t, s) ? t : fl(t, s), Ms = (t, s, a = 0, c) => {
|
|
17481
17481
|
const u = t.indexOf(s, a);
|
|
17482
17482
|
return u !== -1 ? jo(c) ? !0 : u + s.length <= c : !1;
|
|
17483
17483
|
}, pl = (t, s) => gl(t, s, 0), xc = (t, s) => gl(t, s, t.length - s.length), Yf = ((t) => (s) => s.replace(t, ""))(/^\s+|\s+$/g), wc = (t) => t.length > 0, gm = (t) => !wc(t), sa = (t) => t.style !== void 0 && Yo(t.style.getPropertyValue), Cc = (t, s) => {
|
|
@@ -18170,7 +18170,7 @@ Input object: ` + jE(e.input), KE = (e, n) => sI(e, En(n, qE)), yI = Fe(gI), lw
|
|
|
18170
18170
|
case "custom":
|
|
18171
18171
|
return a(t.newKey, t.instantiator);
|
|
18172
18172
|
}
|
|
18173
|
-
}, ss = (t, s) => s, av = (t, s) =>
|
|
18173
|
+
}, ss = (t, s) => s, av = (t, s) => mt(t) && mt(s) ? Kn(t, s) : s, iv = (t) => (...s) => {
|
|
18174
18174
|
if (s.length === 0)
|
|
18175
18175
|
throw new Error("Can't merge zero objects");
|
|
18176
18176
|
const a = {};
|
|
@@ -18364,7 +18364,7 @@ Input object: ` + sh(t.input), An = (t, s) => Pe(t, go(s, yt)), ch = (t, s) => x
|
|
|
18364
18364
|
}
|
|
18365
18365
|
};
|
|
18366
18366
|
}, Aa = { generate: (t) => {
|
|
18367
|
-
if (!
|
|
18367
|
+
if (!Rt(t))
|
|
18368
18368
|
throw new Error("cases must be an array");
|
|
18369
18369
|
if (t.length === 0)
|
|
18370
18370
|
throw new Error("there must be at least one case");
|
|
@@ -18378,7 +18378,7 @@ Input object: ` + sh(t.input), An = (t, s) => Pe(t, go(s, yt)), ch = (t, s) => x
|
|
|
18378
18378
|
throw new Error("duplicate key detected:" + f);
|
|
18379
18379
|
if (f === "cata")
|
|
18380
18380
|
throw new Error("cannot have a case named cata (sorry)");
|
|
18381
|
-
if (!
|
|
18381
|
+
if (!Rt(h))
|
|
18382
18382
|
throw new Error("case arguments must be an array");
|
|
18383
18383
|
s.push(f), a[f] = (...b) => {
|
|
18384
18384
|
const x = b.length;
|
|
@@ -21394,7 +21394,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
21394
21394
|
set: gN,
|
|
21395
21395
|
contents: A0
|
|
21396
21396
|
});
|
|
21397
|
-
const
|
|
21397
|
+
const zt = Qs({
|
|
21398
21398
|
fields: [Fs("reuseDom", !0)],
|
|
21399
21399
|
name: "replacing",
|
|
21400
21400
|
apis: d4
|
|
@@ -21887,9 +21887,9 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
21887
21887
|
t[t.HighlightMenuAndItem = 0] = "HighlightMenuAndItem", t[t.HighlightJustMenu = 1] = "HighlightJustMenu", t[t.HighlightNone = 2] = "HighlightNone";
|
|
21888
21888
|
})(Rr || (Rr = {}));
|
|
21889
21889
|
const LN = (t, s) => {
|
|
21890
|
-
const a = lo(), c = (je, ct, Bt) => go(Bt, (
|
|
21891
|
-
const
|
|
21892
|
-
...
|
|
21890
|
+
const a = lo(), c = (je, ct, Bt) => go(Bt, (Vt, _t) => {
|
|
21891
|
+
const Wt = () => df.sketch({
|
|
21892
|
+
...Vt,
|
|
21893
21893
|
value: _t,
|
|
21894
21894
|
markers: t.markers,
|
|
21895
21895
|
fakeFocus: t.fakeFocus,
|
|
@@ -21909,50 +21909,50 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
21909
21909
|
});
|
|
21910
21910
|
return _t === ct ? {
|
|
21911
21911
|
type: "prepared",
|
|
21912
|
-
menu: je.getSystem().build(
|
|
21912
|
+
menu: je.getSystem().build(Wt())
|
|
21913
21913
|
} : {
|
|
21914
21914
|
type: "notbuilt",
|
|
21915
|
-
nbMenu:
|
|
21915
|
+
nbMenu: Wt
|
|
21916
21916
|
};
|
|
21917
21917
|
}), u = MN.init(), m = (je) => {
|
|
21918
21918
|
const ct = c(je, t.data.primary, t.data.menus), Bt = b();
|
|
21919
21919
|
return u.setContents(t.data.primary, ct, t.data.expansions, Bt), u.getPrimary();
|
|
21920
|
-
}, f = (je) => Ye.getValue(je).value, h = (je, ct, Bt) => Ts(ct, (
|
|
21921
|
-
if (!
|
|
21920
|
+
}, f = (je) => Ye.getValue(je).value, h = (je, ct, Bt) => Ts(ct, (Vt) => {
|
|
21921
|
+
if (!Vt.getSystem().isConnected())
|
|
21922
21922
|
return w.none();
|
|
21923
|
-
const _t = On.getCandidates(
|
|
21924
|
-
return qt(_t, (
|
|
21925
|
-
}), b = (je) => go(t.data.menus, (ct, Bt) => ve(ct.items, (
|
|
21923
|
+
const _t = On.getCandidates(Vt);
|
|
21924
|
+
return qt(_t, (Wt) => f(Wt) === Bt);
|
|
21925
|
+
}), b = (je) => go(t.data.menus, (ct, Bt) => ve(ct.items, (Vt) => Vt.type === "separator" ? [] : [Vt.data.value])), x = On.highlight, C = (je, ct) => {
|
|
21926
21926
|
x(je, ct), On.getHighlighted(ct).orThunk(() => On.getFirst(ct)).each((Bt) => {
|
|
21927
21927
|
t.fakeFocus ? On.highlight(ct, Bt) : WC(je, Bt.element, Ho());
|
|
21928
21928
|
});
|
|
21929
|
-
}, E = (je, ct) => Ca(Ne(ct, (Bt) => je.lookupMenu(Bt).bind((
|
|
21930
|
-
const
|
|
21931
|
-
Xe(
|
|
21932
|
-
ji(_t.element, [t.markers.backgroundMenu]), t.stayInDom ||
|
|
21929
|
+
}, E = (je, ct) => Ca(Ne(ct, (Bt) => je.lookupMenu(Bt).bind((Vt) => Vt.type === "prepared" ? w.some(Vt.menu) : w.none()))), A = (je, ct, Bt) => {
|
|
21930
|
+
const Vt = E(ct, ct.otherMenus(Bt));
|
|
21931
|
+
Xe(Vt, (_t) => {
|
|
21932
|
+
ji(_t.element, [t.markers.backgroundMenu]), t.stayInDom || zt.remove(je, _t);
|
|
21933
21933
|
});
|
|
21934
21934
|
}, P = (je) => a.get().getOrThunk(() => {
|
|
21935
|
-
const ct = {}, Bt = Ns(je.element, `.${t.markers.item}`),
|
|
21936
|
-
return Xe(
|
|
21937
|
-
je.getSystem().getByDom(_t).each((
|
|
21938
|
-
const Gn = f(
|
|
21939
|
-
ct[Gn] =
|
|
21935
|
+
const ct = {}, Bt = Ns(je.element, `.${t.markers.item}`), Vt = to(Bt, (_t) => Gs(_t, "aria-haspopup") === "true");
|
|
21936
|
+
return Xe(Vt, (_t) => {
|
|
21937
|
+
je.getSystem().getByDom(_t).each((Wt) => {
|
|
21938
|
+
const Gn = f(Wt);
|
|
21939
|
+
ct[Gn] = Wt;
|
|
21940
21940
|
});
|
|
21941
21941
|
}), a.set(ct), ct;
|
|
21942
21942
|
}), I = (je, ct) => {
|
|
21943
21943
|
const Bt = P(je);
|
|
21944
|
-
Co(Bt, (
|
|
21945
|
-
const
|
|
21946
|
-
Ze(
|
|
21944
|
+
Co(Bt, (Vt, _t) => {
|
|
21945
|
+
const Wt = mo(ct, _t);
|
|
21946
|
+
Ze(Vt.element, "aria-expanded", Wt);
|
|
21947
21947
|
});
|
|
21948
|
-
}, z = (je, ct, Bt) => w.from(Bt[0]).bind((
|
|
21948
|
+
}, z = (je, ct, Bt) => w.from(Bt[0]).bind((Vt) => ct.lookupMenu(Vt).bind((_t) => {
|
|
21949
21949
|
if (_t.type === "notbuilt")
|
|
21950
21950
|
return w.none();
|
|
21951
21951
|
{
|
|
21952
|
-
const
|
|
21952
|
+
const Wt = _t.menu, Gn = E(ct, Bt.slice(1));
|
|
21953
21953
|
return Xe(Gn, (vn) => {
|
|
21954
21954
|
is(vn.element, t.markers.backgroundMenu);
|
|
21955
|
-
}), wn(
|
|
21955
|
+
}), wn(Wt.element) || zt.append(je, Ci(Wt)), ji(Wt.element, [t.markers.backgroundMenu]), C(je, Wt), A(je, ct, Bt), w.some(Wt);
|
|
21956
21956
|
}
|
|
21957
21957
|
}));
|
|
21958
21958
|
let re;
|
|
@@ -21961,47 +21961,47 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
21961
21961
|
})(re || (re = {}));
|
|
21962
21962
|
const Y = (je, ct, Bt) => {
|
|
21963
21963
|
if (Bt.type === "notbuilt") {
|
|
21964
|
-
const
|
|
21965
|
-
return u.setMenuBuilt(ct,
|
|
21964
|
+
const Vt = je.getSystem().build(Bt.nbMenu());
|
|
21965
|
+
return u.setMenuBuilt(ct, Vt), Vt;
|
|
21966
21966
|
} else
|
|
21967
21967
|
return Bt.menu;
|
|
21968
21968
|
}, q = (je, ct, Bt = re.HighlightSubmenu) => {
|
|
21969
21969
|
if (ct.hasConfigured(kt) && kt.isDisabled(ct))
|
|
21970
21970
|
return w.some(ct);
|
|
21971
21971
|
{
|
|
21972
|
-
const
|
|
21973
|
-
return u.expand(
|
|
21974
|
-
const vn = Y(je,
|
|
21975
|
-
return wn(vn.element) ||
|
|
21972
|
+
const Vt = f(ct);
|
|
21973
|
+
return u.expand(Vt).bind((_t) => (I(je, _t), w.from(_t[0]).bind((Wt) => u.lookupMenu(Wt).bind((Gn) => {
|
|
21974
|
+
const vn = Y(je, Wt, Gn);
|
|
21975
|
+
return wn(vn.element) || zt.append(je, Ci(vn)), t.onOpenSubmenu(je, ct, vn, oa(_t)), Bt === re.HighlightSubmenu ? (On.highlightFirst(vn), z(je, u, _t)) : (On.dehighlightAll(vn), w.some(ct));
|
|
21976
21976
|
}))));
|
|
21977
21977
|
}
|
|
21978
21978
|
}, ne = (je, ct) => {
|
|
21979
21979
|
const Bt = f(ct);
|
|
21980
|
-
return u.collapse(Bt).bind((
|
|
21980
|
+
return u.collapse(Bt).bind((Vt) => (I(je, Vt), z(je, u, Vt).map((_t) => (t.onCollapseMenu(je, ct, _t), _t))));
|
|
21981
21981
|
}, De = (je, ct) => {
|
|
21982
21982
|
const Bt = f(ct);
|
|
21983
|
-
return u.refresh(Bt).bind((
|
|
21984
|
-
}, we = (je, ct) => sf(ct.element) ? w.none() : q(je, ct, re.HighlightSubmenu), ye = (je, ct) => sf(ct.element) ? w.none() : ne(je, ct), Re = (je, ct) => ne(je, ct).orThunk(() => t.onEscape(je, ct).map(() => je)), We = (je) => (ct, Bt) => jc(Bt.getSource(), `.${t.markers.item}`).bind((
|
|
21983
|
+
return u.refresh(Bt).bind((Vt) => (I(je, Vt), z(je, u, Vt)));
|
|
21984
|
+
}, we = (je, ct) => sf(ct.element) ? w.none() : q(je, ct, re.HighlightSubmenu), ye = (je, ct) => sf(ct.element) ? w.none() : ne(je, ct), Re = (je, ct) => ne(je, ct).orThunk(() => t.onEscape(je, ct).map(() => je)), We = (je) => (ct, Bt) => jc(Bt.getSource(), `.${t.markers.item}`).bind((Vt) => ct.getSystem().getByDom(Vt).toOptional().bind((_t) => je(ct, _t).map(Ce))), Zt = ho([
|
|
21985
21985
|
Se(PN(), (je, ct) => {
|
|
21986
21986
|
const Bt = ct.event.item;
|
|
21987
21987
|
u.lookupItem(f(Bt)).each(() => {
|
|
21988
|
-
const
|
|
21989
|
-
On.highlight(je,
|
|
21988
|
+
const Vt = ct.event.menu;
|
|
21989
|
+
On.highlight(je, Vt);
|
|
21990
21990
|
const _t = f(ct.event.item);
|
|
21991
|
-
u.refresh(_t).each((
|
|
21991
|
+
u.refresh(_t).each((Wt) => A(je, u, Wt));
|
|
21992
21992
|
});
|
|
21993
21993
|
}),
|
|
21994
21994
|
Au((je, ct) => {
|
|
21995
21995
|
const Bt = ct.event.target;
|
|
21996
|
-
je.getSystem().getByDom(Bt).each((
|
|
21997
|
-
f(
|
|
21998
|
-
t.onExecute(je,
|
|
21996
|
+
je.getSystem().getByDom(Bt).each((Vt) => {
|
|
21997
|
+
f(Vt).indexOf("collapse-item") === 0 && ne(je, Vt), q(je, Vt, re.HighlightSubmenu).fold(() => {
|
|
21998
|
+
t.onExecute(je, Vt);
|
|
21999
21999
|
}, de);
|
|
22000
22000
|
});
|
|
22001
22001
|
}),
|
|
22002
22002
|
io((je, ct) => {
|
|
22003
22003
|
m(je).each((Bt) => {
|
|
22004
|
-
|
|
22004
|
+
zt.append(je, Ci(Bt)), t.onOpenMenu(je, Bt), t.highlightOnOpen === Rr.HighlightMenuAndItem ? C(je, Bt) : t.highlightOnOpen === Rr.HighlightJustMenu && x(je, Bt);
|
|
22005
22005
|
});
|
|
22006
22006
|
}),
|
|
22007
22007
|
Se(Kg, (je, ct) => {
|
|
@@ -22026,18 +22026,18 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
22026
22026
|
collapseMenu: Pt,
|
|
22027
22027
|
highlightPrimary: At,
|
|
22028
22028
|
repositionMenus: (je) => {
|
|
22029
|
-
u.getPrimary().bind((Bt) => tt(je).bind((
|
|
22030
|
-
const _t = f(
|
|
22029
|
+
u.getPrimary().bind((Bt) => tt(je).bind((Vt) => {
|
|
22030
|
+
const _t = f(Vt), Wt = ad(u.getMenus()), Gn = Ca(Ne(Wt, MN.extractPreparedMenu));
|
|
22031
22031
|
return u.getTriggeringPath(_t, (vn) => h(je, Gn, vn));
|
|
22032
|
-
}).map((
|
|
22032
|
+
}).map((Vt) => ({
|
|
22033
22033
|
primary: Bt,
|
|
22034
|
-
triggeringPath:
|
|
22034
|
+
triggeringPath: Vt
|
|
22035
22035
|
}))).fold(() => {
|
|
22036
22036
|
$n(je).each((Bt) => {
|
|
22037
22037
|
t.onRepositionMenu(je, Bt, []);
|
|
22038
22038
|
});
|
|
22039
|
-
}, ({ primary: Bt, triggeringPath:
|
|
22040
|
-
t.onRepositionMenu(je, Bt,
|
|
22039
|
+
}, ({ primary: Bt, triggeringPath: Vt }) => {
|
|
22040
|
+
t.onRepositionMenu(je, Bt, Vt);
|
|
22041
22041
|
});
|
|
22042
22042
|
}
|
|
22043
22043
|
};
|
|
@@ -22064,7 +22064,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
22064
22064
|
dn.config({
|
|
22065
22065
|
find: (je) => On.getHighlighted(je)
|
|
22066
22066
|
}),
|
|
22067
|
-
|
|
22067
|
+
zt.config({})
|
|
22068
22068
|
]),
|
|
22069
22069
|
eventOrder: t.eventOrder,
|
|
22070
22070
|
apis: gn,
|
|
@@ -22108,7 +22108,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
22108
22108
|
bt,
|
|
22109
22109
|
On,
|
|
22110
22110
|
dn,
|
|
22111
|
-
|
|
22111
|
+
zt
|
|
22112
22112
|
]),
|
|
22113
22113
|
ae("eventOrder", {})
|
|
22114
22114
|
],
|
|
@@ -23088,7 +23088,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
23088
23088
|
let tt = {};
|
|
23089
23089
|
s.isSupported = typeof XS == "function" && typeof q == "function" && we && we.createHTMLDocument !== void 0;
|
|
23090
23090
|
const { MUSTACHE_EXPR: Pt, ERB_EXPR: At, TMPLIT_EXPR: $n, DATA_ATTR: wt, ARIA_ATTR: gn, IS_SCRIPT_OR_DATA: je, ATTR_WHITESPACE: ct } = M0;
|
|
23091
|
-
let { IS_ALLOWED_URI: Bt } = M0,
|
|
23091
|
+
let { IS_ALLOWED_URI: Bt } = M0, Vt = null;
|
|
23092
23092
|
const _t = mn({}, [
|
|
23093
23093
|
...QS,
|
|
23094
23094
|
...ek,
|
|
@@ -23096,7 +23096,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
23096
23096
|
...tk,
|
|
23097
23097
|
...ub
|
|
23098
23098
|
]);
|
|
23099
|
-
let
|
|
23099
|
+
let Wt = null;
|
|
23100
23100
|
const Gn = mn({}, [
|
|
23101
23101
|
...R0,
|
|
23102
23102
|
...I0,
|
|
@@ -23194,11 +23194,11 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
23194
23194
|
return ge instanceof RegExp || ge instanceof Function;
|
|
23195
23195
|
}, aG = function(ge) {
|
|
23196
23196
|
if (!(hC && hC === ge)) {
|
|
23197
|
-
if ((!ge || typeof ge != "object") && (ge = {}), ge = gf(ge), Iy = hK.indexOf(ge.PARSER_MEDIA_TYPE) === -1 ? Iy = bK : Iy = ge.PARSER_MEDIA_TYPE, ya = Iy === "application/xhtml+xml" ? Gu : B0,
|
|
23197
|
+
if ((!ge || typeof ge != "object") && (ge = {}), ge = gf(ge), Iy = hK.indexOf(ge.PARSER_MEDIA_TYPE) === -1 ? Iy = bK : Iy = ge.PARSER_MEDIA_TYPE, ya = Iy === "application/xhtml+xml" ? Gu : B0, Vt = "ALLOWED_TAGS" in ge ? mn({}, ge.ALLOWED_TAGS, ya) : _t, Wt = "ALLOWED_ATTR" in ge ? mn({}, ge.ALLOWED_ATTR, ya) : Gn, rG = "ALLOWED_NAMESPACES" in ge ? mn({}, ge.ALLOWED_NAMESPACES, Gu) : pK, oG = "ADD_URI_SAFE_ATTR" in ge ? mn(gf(Mq), ge.ADD_URI_SAFE_ATTR, ya) : Mq, Rq = "ADD_DATA_URI_TAGS" in ge ? mn(gf(Iq), ge.ADD_DATA_URI_TAGS, ya) : Iq, gC = "FORBID_CONTENTS" in ge ? mn({}, ge.FORBID_CONTENTS, ya) : Bq, Us = "FORBID_TAGS" in ge ? mn({}, ge.FORBID_TAGS, ya) : {}, ba = "FORBID_ATTR" in ge ? mn({}, ge.FORBID_ATTR, ya) : {}, fC = "USE_PROFILES" in ge ? ge.USE_PROFILES : !1, Bi = ge.ALLOW_ARIA_ATTR !== !1, gc = ge.ALLOW_DATA_ATTR !== !1, mm = ge.ALLOW_UNKNOWN_PROTOCOLS || !1, zf = ge.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ll = ge.SAFE_FOR_TEMPLATES || !1, od = ge.WHOLE_DOCUMENT || !1, Hp = ge.RETURN_DOM || !1, mC = ge.RETURN_DOM_FRAGMENT || !1, mL = ge.RETURN_TRUSTED_TYPE || !1, wA = ge.FORCE_BODY || !1, $q = ge.SANITIZE_DOM !== !1, Pq = ge.SANITIZE_NAMED_PROPS || !1, nG = ge.KEEP_CONTENT !== !1, CA = ge.IN_PLACE || !1, Bt = ge.ALLOWED_URI_REGEXP || sk, pC = ge.NAMESPACE || Wf, vn = ge.CUSTOM_ELEMENT_HANDLING || {}, ge.CUSTOM_ELEMENT_HANDLING && Lq(ge.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (vn.tagNameCheck = ge.CUSTOM_ELEMENT_HANDLING.tagNameCheck), ge.CUSTOM_ELEMENT_HANDLING && Lq(ge.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (vn.attributeNameCheck = ge.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), ge.CUSTOM_ELEMENT_HANDLING && typeof ge.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (vn.allowCustomizedBuiltInElements = ge.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ll && (gc = !1), mC && (Hp = !0), fC && (Vt = mn({}, [...ub]), Wt = [], fC.html === !0 && (mn(Vt, QS), mn(Wt, R0)), fC.svg === !0 && (mn(Vt, ek), mn(Wt, I0), mn(Wt, db)), fC.svgFilters === !0 && (mn(Vt, lb), mn(Wt, I0), mn(Wt, db)), fC.mathMl === !0 && (mn(Vt, tk), mn(Wt, nk), mn(Wt, db))), ge.ADD_TAGS && (Vt === _t && (Vt = gf(Vt)), mn(Vt, ge.ADD_TAGS, ya)), ge.ADD_ATTR && (Wt === Gn && (Wt = gf(Wt)), mn(Wt, ge.ADD_ATTR, ya)), ge.ADD_URI_SAFE_ATTR && mn(oG, ge.ADD_URI_SAFE_ATTR, ya), ge.FORBID_CONTENTS && (gC === Bq && (gC = gf(gC)), mn(gC, ge.FORBID_CONTENTS, ya)), nG && (Vt["#text"] = !0), od && mn(Vt, [
|
|
23198
23198
|
"html",
|
|
23199
23199
|
"head",
|
|
23200
23200
|
"body"
|
|
23201
|
-
]),
|
|
23201
|
+
]), Vt.table && (mn(Vt, ["tbody"]), delete Us.tbody), ge.TRUSTED_TYPES_POLICY) {
|
|
23202
23202
|
if (typeof ge.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
23203
23203
|
throw Ji('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
23204
23204
|
if (typeof ge.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -23230,13 +23230,13 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
23230
23230
|
const iG = mn({}, tk);
|
|
23231
23231
|
mn(iG, G4);
|
|
23232
23232
|
const xK = function(ge) {
|
|
23233
|
-
let
|
|
23234
|
-
(!
|
|
23233
|
+
let ft = q(ge);
|
|
23234
|
+
(!ft || !ft.tagName) && (ft = {
|
|
23235
23235
|
namespaceURI: pC,
|
|
23236
23236
|
tagName: "template"
|
|
23237
23237
|
});
|
|
23238
|
-
const
|
|
23239
|
-
return rG[ge.namespaceURI] ? ge.namespaceURI === gL ?
|
|
23238
|
+
const Ht = B0(ge.tagName), ls = B0(ft.tagName);
|
|
23239
|
+
return rG[ge.namespaceURI] ? ge.namespaceURI === gL ? ft.namespaceURI === Wf ? Ht === "svg" : ft.namespaceURI === fL ? Ht === "svg" && (ls === "annotation-xml" || Fq[ls]) : !!pL[Ht] : ge.namespaceURI === fL ? ft.namespaceURI === Wf ? Ht === "math" : ft.namespaceURI === gL ? Ht === "math" && Vq[ls] : !!iG[Ht] : ge.namespaceURI === Wf ? ft.namespaceURI === gL && !Vq[ls] || ft.namespaceURI === fL && !Fq[ls] ? !1 : !iG[Ht] && (vK[Ht] || !pL[Ht]) : !!(Iy === "application/xhtml+xml" && rG[ge.namespaceURI]) : !1;
|
|
23240
23240
|
}, My = function(ge) {
|
|
23241
23241
|
ib(s.removed, { element: ge });
|
|
23242
23242
|
try {
|
|
@@ -23244,77 +23244,77 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
23244
23244
|
} catch {
|
|
23245
23245
|
ge.remove();
|
|
23246
23246
|
}
|
|
23247
|
-
}, _A = function(ge,
|
|
23247
|
+
}, _A = function(ge, ft) {
|
|
23248
23248
|
try {
|
|
23249
23249
|
ib(s.removed, {
|
|
23250
|
-
attribute:
|
|
23251
|
-
from:
|
|
23250
|
+
attribute: ft.getAttributeNode(ge),
|
|
23251
|
+
from: ft
|
|
23252
23252
|
});
|
|
23253
23253
|
} catch {
|
|
23254
23254
|
ib(s.removed, {
|
|
23255
23255
|
attribute: null,
|
|
23256
|
-
from:
|
|
23256
|
+
from: ft
|
|
23257
23257
|
});
|
|
23258
23258
|
}
|
|
23259
|
-
if (
|
|
23259
|
+
if (ft.removeAttribute(ge), ge === "is" && !Wt[ge])
|
|
23260
23260
|
if (Hp || mC)
|
|
23261
23261
|
try {
|
|
23262
|
-
My(
|
|
23262
|
+
My(ft);
|
|
23263
23263
|
} catch {
|
|
23264
23264
|
}
|
|
23265
23265
|
else
|
|
23266
23266
|
try {
|
|
23267
|
-
|
|
23267
|
+
ft.setAttribute(ge, "");
|
|
23268
23268
|
} catch {
|
|
23269
23269
|
}
|
|
23270
23270
|
}, Hq = function(ge) {
|
|
23271
|
-
let
|
|
23271
|
+
let ft, Ht;
|
|
23272
23272
|
if (wA)
|
|
23273
23273
|
ge = "<remove></remove>" + ge;
|
|
23274
23274
|
else {
|
|
23275
23275
|
const su = z4(ge, /^[\r\n\t ]+/);
|
|
23276
|
-
|
|
23276
|
+
Ht = su && su[0];
|
|
23277
23277
|
}
|
|
23278
23278
|
Iy === "application/xhtml+xml" && pC === Wf && (ge = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + ge + "</body></html>");
|
|
23279
23279
|
const ls = ne ? ne.createHTML(ge) : ge;
|
|
23280
23280
|
if (pC === Wf)
|
|
23281
23281
|
try {
|
|
23282
|
-
|
|
23282
|
+
ft = new A().parseFromString(ls, Iy);
|
|
23283
23283
|
} catch {
|
|
23284
23284
|
}
|
|
23285
|
-
if (!
|
|
23286
|
-
|
|
23285
|
+
if (!ft || !ft.documentElement) {
|
|
23286
|
+
ft = we.createDocument(pC, "template", null);
|
|
23287
23287
|
try {
|
|
23288
|
-
|
|
23288
|
+
ft.documentElement.innerHTML = sG ? De : ls;
|
|
23289
23289
|
} catch {
|
|
23290
23290
|
}
|
|
23291
23291
|
}
|
|
23292
|
-
const va =
|
|
23293
|
-
return ge &&
|
|
23292
|
+
const va = ft.body || ft.documentElement;
|
|
23293
|
+
return ge && Ht && va.insertBefore(u.createTextNode(Ht), va.childNodes[0] || null), pC === Wf ? We.call(ft, od ? "html" : "body")[0] : od ? ft.documentElement : va;
|
|
23294
23294
|
}, Uq = function(ge) {
|
|
23295
23295
|
return ye.call(ge.ownerDocument || ge, ge, x.SHOW_ELEMENT | x.SHOW_COMMENT | x.SHOW_TEXT, null, !1);
|
|
23296
23296
|
}, wK = function(ge) {
|
|
23297
23297
|
return ge instanceof E && (typeof ge.nodeName != "string" || typeof ge.textContent != "string" || typeof ge.removeChild != "function" || !(ge.attributes instanceof C) || typeof ge.removeAttribute != "function" || typeof ge.setAttribute != "function" || typeof ge.namespaceURI != "string" || typeof ge.insertBefore != "function" || typeof ge.hasChildNodes != "function");
|
|
23298
23298
|
}, hL = function(ge) {
|
|
23299
23299
|
return typeof h == "object" ? ge instanceof h : ge && typeof ge == "object" && typeof ge.nodeType == "number" && typeof ge.nodeName == "string";
|
|
23300
|
-
}, jf = function(ge,
|
|
23300
|
+
}, jf = function(ge, ft, Ht) {
|
|
23301
23301
|
tt[ge] && H4(tt[ge], (ls) => {
|
|
23302
|
-
ls.call(s,
|
|
23302
|
+
ls.call(s, ft, Ht, hC);
|
|
23303
23303
|
});
|
|
23304
23304
|
}, zq = function(ge) {
|
|
23305
|
-
let
|
|
23305
|
+
let ft;
|
|
23306
23306
|
if (jf("beforeSanitizeElements", ge, null), wK(ge))
|
|
23307
23307
|
return My(ge), !0;
|
|
23308
|
-
const
|
|
23308
|
+
const Ht = ya(ge.nodeName);
|
|
23309
23309
|
if (jf("uponSanitizeElement", ge, {
|
|
23310
|
-
tagName:
|
|
23311
|
-
allowedTags:
|
|
23310
|
+
tagName: Ht,
|
|
23311
|
+
allowedTags: Vt
|
|
23312
23312
|
}), ge.hasChildNodes() && !hL(ge.firstElementChild) && (!hL(ge.content) || !hL(ge.content.firstElementChild)) && _i(/<[/\w]/g, ge.innerHTML) && _i(/<[/\w]/g, ge.textContent))
|
|
23313
23313
|
return My(ge), !0;
|
|
23314
|
-
if (!
|
|
23315
|
-
if (!Us[
|
|
23314
|
+
if (!Vt[Ht] || Us[Ht]) {
|
|
23315
|
+
if (!Us[Ht] && jq(Ht) && (vn.tagNameCheck instanceof RegExp && _i(vn.tagNameCheck, Ht) || vn.tagNameCheck instanceof Function && vn.tagNameCheck(Ht)))
|
|
23316
23316
|
return !1;
|
|
23317
|
-
if (nG && !gC[
|
|
23317
|
+
if (nG && !gC[Ht]) {
|
|
23318
23318
|
const ls = q(ge) || ge.parentNode, va = Y(ge) || ge.childNodes;
|
|
23319
23319
|
if (va && ls) {
|
|
23320
23320
|
const su = va.length;
|
|
@@ -23324,20 +23324,20 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
23324
23324
|
}
|
|
23325
23325
|
return My(ge), !0;
|
|
23326
23326
|
}
|
|
23327
|
-
return ge instanceof b && !xK(ge) || (
|
|
23328
|
-
}, Wq = function(ge,
|
|
23329
|
-
if ($q && (
|
|
23327
|
+
return ge instanceof b && !xK(ge) || (Ht === "noscript" || Ht === "noembed" || Ht === "noframes") && _i(/<\/no(script|embed|frames)/i, ge.innerHTML) ? (My(ge), !0) : (ll && ge.nodeType === 3 && (ft = ge.textContent, ft = Jc(ft, Pt, " "), ft = Jc(ft, At, " "), ft = Jc(ft, $n, " "), ge.textContent !== ft && (ib(s.removed, { element: ge.cloneNode() }), ge.textContent = ft)), jf("afterSanitizeElements", ge, null), !1);
|
|
23328
|
+
}, Wq = function(ge, ft, Ht) {
|
|
23329
|
+
if ($q && (ft === "id" || ft === "name") && (Ht in u || Ht in yK))
|
|
23330
23330
|
return !1;
|
|
23331
|
-
if (!(gc && !ba[
|
|
23332
|
-
if (!(Bi && _i(gn,
|
|
23333
|
-
if (!
|
|
23334
|
-
if (!(jq(ge) && (vn.tagNameCheck instanceof RegExp && _i(vn.tagNameCheck, ge) || vn.tagNameCheck instanceof Function && vn.tagNameCheck(ge)) && (vn.attributeNameCheck instanceof RegExp && _i(vn.attributeNameCheck,
|
|
23331
|
+
if (!(gc && !ba[ft] && _i(wt, ft))) {
|
|
23332
|
+
if (!(Bi && _i(gn, ft))) {
|
|
23333
|
+
if (!Wt[ft] || ba[ft]) {
|
|
23334
|
+
if (!(jq(ge) && (vn.tagNameCheck instanceof RegExp && _i(vn.tagNameCheck, ge) || vn.tagNameCheck instanceof Function && vn.tagNameCheck(ge)) && (vn.attributeNameCheck instanceof RegExp && _i(vn.attributeNameCheck, ft) || vn.attributeNameCheck instanceof Function && vn.attributeNameCheck(ft)) || ft === "is" && vn.allowCustomizedBuiltInElements && (vn.tagNameCheck instanceof RegExp && _i(vn.tagNameCheck, Ht) || vn.tagNameCheck instanceof Function && vn.tagNameCheck(Ht))))
|
|
23335
23335
|
return !1;
|
|
23336
|
-
} else if (!oG[
|
|
23337
|
-
if (!_i(Bt, Jc(
|
|
23338
|
-
if (!((
|
|
23339
|
-
if (!(mm && !_i(je, Jc(
|
|
23340
|
-
if (
|
|
23336
|
+
} else if (!oG[ft]) {
|
|
23337
|
+
if (!_i(Bt, Jc(Ht, ct, ""))) {
|
|
23338
|
+
if (!((ft === "src" || ft === "xlink:href" || ft === "href") && ge !== "script" && ff(Ht, "data:") === 0 && Rq[ge])) {
|
|
23339
|
+
if (!(mm && !_i(je, Jc(Ht, ct, "")))) {
|
|
23340
|
+
if (Ht)
|
|
23341
23341
|
return !1;
|
|
23342
23342
|
}
|
|
23343
23343
|
}
|
|
@@ -23349,7 +23349,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
23349
23349
|
}, jq = function(ge) {
|
|
23350
23350
|
return ge.indexOf("-") > 0;
|
|
23351
23351
|
}, Gq = function(ge) {
|
|
23352
|
-
let
|
|
23352
|
+
let ft, Ht, ls, va;
|
|
23353
23353
|
jf("beforeSanitizeAttributes", ge, null);
|
|
23354
23354
|
const { attributes: su } = ge;
|
|
23355
23355
|
if (!su)
|
|
@@ -23358,57 +23358,57 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
23358
23358
|
attrName: "",
|
|
23359
23359
|
attrValue: "",
|
|
23360
23360
|
keepAttr: !0,
|
|
23361
|
-
allowedAttributes:
|
|
23361
|
+
allowedAttributes: Wt
|
|
23362
23362
|
};
|
|
23363
23363
|
for (va = su.length; va--; ) {
|
|
23364
|
-
|
|
23365
|
-
const { name: ru, namespaceURI: cG } =
|
|
23366
|
-
|
|
23367
|
-
const _K =
|
|
23368
|
-
if (ls = ya(ru), nr.attrName = ls, nr.attrValue =
|
|
23364
|
+
ft = su[va];
|
|
23365
|
+
const { name: ru, namespaceURI: cG } = ft;
|
|
23366
|
+
Ht = ru === "value" ? ft.value : HN(ft.value);
|
|
23367
|
+
const _K = Ht;
|
|
23368
|
+
if (ls = ya(ru), nr.attrName = ls, nr.attrValue = Ht, nr.keepAttr = !0, nr.forceKeepAttr = void 0, jf("uponSanitizeAttribute", ge, nr), Ht = nr.attrValue, nr.forceKeepAttr)
|
|
23369
23369
|
continue;
|
|
23370
23370
|
if (!nr.keepAttr) {
|
|
23371
23371
|
_A(ru, ge);
|
|
23372
23372
|
continue;
|
|
23373
23373
|
}
|
|
23374
|
-
if (!zf && _i(/\/>/i,
|
|
23374
|
+
if (!zf && _i(/\/>/i, Ht)) {
|
|
23375
23375
|
_A(ru, ge);
|
|
23376
23376
|
continue;
|
|
23377
23377
|
}
|
|
23378
|
-
ll && (
|
|
23378
|
+
ll && (Ht = Jc(Ht, Pt, " "), Ht = Jc(Ht, At, " "), Ht = Jc(Ht, $n, " "));
|
|
23379
23379
|
const qq = ya(ge.nodeName);
|
|
23380
|
-
if (!Wq(qq, ls,
|
|
23380
|
+
if (!Wq(qq, ls, Ht)) {
|
|
23381
23381
|
_A(ru, ge);
|
|
23382
23382
|
continue;
|
|
23383
23383
|
}
|
|
23384
|
-
if (Pq && (ls === "id" || ls === "name") && (_A(ru, ge),
|
|
23384
|
+
if (Pq && (ls === "id" || ls === "name") && (_A(ru, ge), Ht = gK + Ht), ne && typeof P == "object" && typeof P.getAttributeType == "function" && !cG)
|
|
23385
23385
|
switch (P.getAttributeType(qq, ls)) {
|
|
23386
23386
|
case "TrustedHTML": {
|
|
23387
|
-
|
|
23387
|
+
Ht = ne.createHTML(Ht);
|
|
23388
23388
|
break;
|
|
23389
23389
|
}
|
|
23390
23390
|
case "TrustedScriptURL": {
|
|
23391
|
-
|
|
23391
|
+
Ht = ne.createScriptURL(Ht);
|
|
23392
23392
|
break;
|
|
23393
23393
|
}
|
|
23394
23394
|
}
|
|
23395
|
-
if (
|
|
23395
|
+
if (Ht !== _K)
|
|
23396
23396
|
try {
|
|
23397
|
-
cG ? ge.setAttributeNS(cG, ru,
|
|
23397
|
+
cG ? ge.setAttributeNS(cG, ru, Ht) : ge.setAttribute(ru, Ht);
|
|
23398
23398
|
} catch {
|
|
23399
23399
|
_A(ru, ge);
|
|
23400
23400
|
}
|
|
23401
23401
|
}
|
|
23402
23402
|
jf("afterSanitizeAttributes", ge, null);
|
|
23403
23403
|
}, CK = function un(ge) {
|
|
23404
|
-
let
|
|
23405
|
-
const
|
|
23406
|
-
for (jf("beforeSanitizeShadowDOM", ge, null);
|
|
23407
|
-
jf("uponSanitizeShadowNode",
|
|
23404
|
+
let ft;
|
|
23405
|
+
const Ht = Uq(ge);
|
|
23406
|
+
for (jf("beforeSanitizeShadowDOM", ge, null); ft = Ht.nextNode(); )
|
|
23407
|
+
jf("uponSanitizeShadowNode", ft, null), !zq(ft) && (ft.content instanceof m && un(ft.content), Gq(ft));
|
|
23408
23408
|
jf("afterSanitizeShadowDOM", ge, null);
|
|
23409
23409
|
};
|
|
23410
23410
|
return s.sanitize = function(un) {
|
|
23411
|
-
let ge = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
|
23411
|
+
let ge = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, ft, Ht, ls, va;
|
|
23412
23412
|
if (sG = !un, sG && (un = "<!-->"), typeof un != "string" && !hL(un))
|
|
23413
23413
|
if (typeof un.toString == "function") {
|
|
23414
23414
|
if (un = un.toString(), typeof un != "string")
|
|
@@ -23420,42 +23420,42 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
23420
23420
|
if (Ry || aG(ge), s.removed = [], typeof un == "string" && (CA = !1), CA) {
|
|
23421
23421
|
if (un.nodeName) {
|
|
23422
23422
|
const ru = ya(un.nodeName);
|
|
23423
|
-
if (!
|
|
23423
|
+
if (!Vt[ru] || Us[ru])
|
|
23424
23424
|
throw Ji("root node is forbidden and cannot be sanitized in-place");
|
|
23425
23425
|
}
|
|
23426
23426
|
} else if (un instanceof h)
|
|
23427
|
-
|
|
23427
|
+
ft = Hq("<!---->"), Ht = ft.ownerDocument.importNode(un, !0), Ht.nodeType === 1 && Ht.nodeName === "BODY" || Ht.nodeName === "HTML" ? ft = Ht : ft.appendChild(Ht);
|
|
23428
23428
|
else {
|
|
23429
23429
|
if (!Hp && !ll && !od && un.indexOf("<") === -1)
|
|
23430
23430
|
return ne && mL ? ne.createHTML(un) : un;
|
|
23431
|
-
if (
|
|
23431
|
+
if (ft = Hq(un), !ft)
|
|
23432
23432
|
return Hp ? null : mL ? De : "";
|
|
23433
23433
|
}
|
|
23434
|
-
|
|
23435
|
-
const su = Uq(CA ? un :
|
|
23434
|
+
ft && wA && My(ft.firstChild);
|
|
23435
|
+
const su = Uq(CA ? un : ft);
|
|
23436
23436
|
for (; ls = su.nextNode(); )
|
|
23437
23437
|
zq(ls) || (ls.content instanceof m && CK(ls.content), Gq(ls));
|
|
23438
23438
|
if (CA)
|
|
23439
23439
|
return un;
|
|
23440
23440
|
if (Hp) {
|
|
23441
23441
|
if (mC)
|
|
23442
|
-
for (va = Re.call(
|
|
23443
|
-
va.appendChild(
|
|
23442
|
+
for (va = Re.call(ft.ownerDocument); ft.firstChild; )
|
|
23443
|
+
va.appendChild(ft.firstChild);
|
|
23444
23444
|
else
|
|
23445
|
-
va =
|
|
23446
|
-
return (
|
|
23445
|
+
va = ft;
|
|
23446
|
+
return (Wt.shadowroot || Wt.shadowrootmode) && (va = Zt.call(a, va, !0)), va;
|
|
23447
23447
|
}
|
|
23448
|
-
let nr = od ?
|
|
23449
|
-
return od &&
|
|
23448
|
+
let nr = od ? ft.outerHTML : ft.innerHTML;
|
|
23449
|
+
return od && Vt["!doctype"] && ft.ownerDocument && ft.ownerDocument.doctype && ft.ownerDocument.doctype.name && _i(zN, ft.ownerDocument.doctype.name) && (nr = "<!DOCTYPE " + ft.ownerDocument.doctype.name + `>
|
|
23450
23450
|
` + nr), ll && (nr = Jc(nr, Pt, " "), nr = Jc(nr, At, " "), nr = Jc(nr, $n, " ")), ne && mL ? ne.createHTML(nr) : nr;
|
|
23451
23451
|
}, s.setConfig = function(un) {
|
|
23452
23452
|
aG(un), Ry = !0;
|
|
23453
23453
|
}, s.clearConfig = function() {
|
|
23454
23454
|
hC = null, Ry = !1;
|
|
23455
|
-
}, s.isValidAttribute = function(un, ge,
|
|
23455
|
+
}, s.isValidAttribute = function(un, ge, ft) {
|
|
23456
23456
|
hC || aG({});
|
|
23457
|
-
const
|
|
23458
|
-
return Wq(
|
|
23457
|
+
const Ht = ya(un), ls = ya(ge);
|
|
23458
|
+
return Wq(Ht, ls, ft);
|
|
23459
23459
|
}, s.addHook = function(un, ge) {
|
|
23460
23460
|
typeof ge == "function" && (tt[un] = tt[un] || [], ib(tt[un], ge));
|
|
23461
23461
|
}, s.removeHook = function(un) {
|
|
@@ -23526,7 +23526,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
23526
23526
|
factory: (t) => {
|
|
23527
23527
|
const s = Bn({
|
|
23528
23528
|
dom: ju(`<p>${rk(t.translationProvider(t.text))}</p>`),
|
|
23529
|
-
behaviours: He([
|
|
23529
|
+
behaviours: He([zt.config({})])
|
|
23530
23530
|
}), a = (P) => ({
|
|
23531
23531
|
dom: {
|
|
23532
23532
|
tag: "div",
|
|
@@ -23557,11 +23557,11 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
23557
23557
|
},
|
|
23558
23558
|
c(0)
|
|
23559
23559
|
],
|
|
23560
|
-
behaviours: He([
|
|
23560
|
+
behaviours: He([zt.config({})])
|
|
23561
23561
|
}), h = {
|
|
23562
23562
|
updateProgress: (P, I) => {
|
|
23563
23563
|
P.getSystem().isConnected() && u.getOpt(P).each((z) => {
|
|
23564
|
-
|
|
23564
|
+
zt.set(z, [
|
|
23565
23565
|
{
|
|
23566
23566
|
dom: {
|
|
23567
23567
|
tag: "div",
|
|
@@ -23576,7 +23576,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
23576
23576
|
updateText: (P, I) => {
|
|
23577
23577
|
if (P.getSystem().isConnected()) {
|
|
23578
23578
|
const z = s.get(P);
|
|
23579
|
-
|
|
23579
|
+
zt.set(z, [qo(I)]);
|
|
23580
23580
|
}
|
|
23581
23581
|
}
|
|
23582
23582
|
}, b = vt([
|
|
@@ -23610,7 +23610,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
23610
23610
|
classes: ["tox-notification__body"]
|
|
23611
23611
|
},
|
|
23612
23612
|
components: [s.asSpec()],
|
|
23613
|
-
behaviours: He([
|
|
23613
|
+
behaviours: He([zt.config({})])
|
|
23614
23614
|
}, A = [
|
|
23615
23615
|
C,
|
|
23616
23616
|
E
|
|
@@ -23790,7 +23790,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
23790
23790
|
processor: "object",
|
|
23791
23791
|
default: {}
|
|
23792
23792
|
}), c("toolbar", {
|
|
23793
|
-
processor: (f) => eo(f) || J(f) ||
|
|
23793
|
+
processor: (f) => eo(f) || J(f) || Rt(f) ? {
|
|
23794
23794
|
value: f,
|
|
23795
23795
|
valid: !0
|
|
23796
23796
|
} : {
|
|
@@ -23869,14 +23869,14 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
23869
23869
|
return KN.baseURL + "/skins/ui/" + a;
|
|
23870
23870
|
}
|
|
23871
23871
|
}, K0 = (t) => w.from(t.options.get("skin_url")), u$ = (t) => t.options.get("line_height_formats").split(" "), Y0 = (t) => {
|
|
23872
|
-
const s = U0(t), a = J(s), c =
|
|
23872
|
+
const s = U0(t), a = J(s), c = Rt(s) && s.length > 0;
|
|
23873
23873
|
return !vb(t) && (c || a || s === !0);
|
|
23874
23874
|
}, Ck = (t) => {
|
|
23875
23875
|
const s = hc(9, (c) => t.options.get("toolbar" + (c + 1))), a = to(s, J);
|
|
23876
|
-
return
|
|
23876
|
+
return Mt(a.length > 0, a);
|
|
23877
23877
|
}, vb = (t) => Ck(t).fold(() => {
|
|
23878
23878
|
const s = U0(t);
|
|
23879
|
-
return
|
|
23879
|
+
return It(s, J) && s.length > 0;
|
|
23880
23880
|
}, Ce), _k = (t) => yb(t) === pb.bottom, d$ = (t) => {
|
|
23881
23881
|
var s;
|
|
23882
23882
|
if (!t.inline)
|
|
@@ -24461,7 +24461,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
24461
24461
|
hideAllExclusive: Z$,
|
|
24462
24462
|
setComponents: (t, s, a, c) => {
|
|
24463
24463
|
a.getTooltip().each((u) => {
|
|
24464
|
-
u.getSystem().isConnected() &&
|
|
24464
|
+
u.getSystem().isConnected() && zt.set(u, c);
|
|
24465
24465
|
});
|
|
24466
24466
|
}
|
|
24467
24467
|
}), J$ = /* @__PURE__ */ Object.freeze({
|
|
@@ -24485,7 +24485,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
24485
24485
|
pn(u, Ab);
|
|
24486
24486
|
})
|
|
24487
24487
|
] : []),
|
|
24488
|
-
behaviours: He([
|
|
24488
|
+
behaviours: He([zt.config({})])
|
|
24489
24489
|
});
|
|
24490
24490
|
s.setTooltip(f), Id(m, f), t.onShow(u, f), wr.position(m, f, { anchor: t.anchor(u) });
|
|
24491
24491
|
}
|
|
@@ -24666,7 +24666,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
24666
24666
|
]),
|
|
24667
24667
|
cs.item(() => !t.enabled || c.isDisabled()),
|
|
24668
24668
|
fs(),
|
|
24669
|
-
|
|
24669
|
+
zt.config({})
|
|
24670
24670
|
].concat(t.itemBehaviours))
|
|
24671
24671
|
};
|
|
24672
24672
|
}, Yu = (t) => ({
|
|
@@ -25129,7 +25129,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
25129
25129
|
});
|
|
25130
25130
|
return s;
|
|
25131
25131
|
}, Gl = (t) => (s) => s.options.get(t), p1 = "#000000", aH = (t) => {
|
|
25132
|
-
const s = t.options.register, a = (u) =>
|
|
25132
|
+
const s = t.options.register, a = (u) => It(u, J) ? {
|
|
25133
25133
|
value: rH(u),
|
|
25134
25134
|
valid: !0
|
|
25135
25135
|
} : {
|
|
@@ -25215,7 +25215,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
25215
25215
|
}, OP = (t, s = "default") => Math.round(s === bx ? Gl("color_cols_foreground")(t) : s === yx ? Gl("color_cols_background")(t) : Gl("color_cols")(t)), DP = Gl("custom_colors"), iH = Gl("color_default_foreground"), cH = Gl("color_default_background"), NP = "rgba(0, 0, 0, 0)", lH = (t) => i1(t).exists((s) => s.alpha !== 0), uH = (t) => Hm(t, (s) => {
|
|
25216
25216
|
if (Fo(s)) {
|
|
25217
25217
|
const a = ds(s, "background-color");
|
|
25218
|
-
return
|
|
25218
|
+
return Mt(lH(a), a);
|
|
25219
25219
|
} else
|
|
25220
25220
|
return w.none();
|
|
25221
25221
|
}).getOr(NP), $P = (t, s) => {
|
|
@@ -25488,7 +25488,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
25488
25488
|
classes: ["tox-insert-table-picker__label"]
|
|
25489
25489
|
},
|
|
25490
25490
|
components: [f],
|
|
25491
|
-
behaviours: He([
|
|
25491
|
+
behaviours: He([zt.config({})])
|
|
25492
25492
|
});
|
|
25493
25493
|
return {
|
|
25494
25494
|
type: "widget",
|
|
@@ -25507,11 +25507,11 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
25507
25507
|
behaviours: He([
|
|
25508
25508
|
Xt("insert-table-picker", [
|
|
25509
25509
|
io((b) => {
|
|
25510
|
-
|
|
25510
|
+
zt.set(h.get(b), [f]);
|
|
25511
25511
|
}),
|
|
25512
25512
|
KC(LP, (b, x, C) => {
|
|
25513
25513
|
const { row: E, col: A } = C.event;
|
|
25514
|
-
S1(m, E, A, 10, 10),
|
|
25514
|
+
S1(m, E, A, 10, 10), zt.set(h.get(b), [E1(E + 1, A + 1)]);
|
|
25515
25515
|
}),
|
|
25516
25516
|
KC(FP, (b, x, C) => {
|
|
25517
25517
|
const { row: E, col: A } = C.event;
|
|
@@ -26712,7 +26712,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
26712
26712
|
}
|
|
26713
26713
|
}),
|
|
26714
26714
|
fs(),
|
|
26715
|
-
|
|
26715
|
+
zt.config({}),
|
|
26716
26716
|
Ye.config({
|
|
26717
26717
|
store: {
|
|
26718
26718
|
mode: "memory",
|
|
@@ -28168,7 +28168,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
28168
28168
|
};
|
|
28169
28169
|
Jd && c.addEventListener("load", h, { once: !0 }), u.open(), u.write(s), u.close(), Jd || h();
|
|
28170
28170
|
});
|
|
28171
|
-
}, rR =
|
|
28171
|
+
}, rR = Mt(pE, Jd ? 500 : 200).map((t) => Yb(sR, t)), Iz = (t, s) => {
|
|
28172
28172
|
const a = St(t.getOr(""));
|
|
28173
28173
|
return {
|
|
28174
28174
|
getValue: (c) => a.get(),
|
|
@@ -28316,7 +28316,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
28316
28316
|
],
|
|
28317
28317
|
behaviours: He([
|
|
28318
28318
|
ma.self(),
|
|
28319
|
-
|
|
28319
|
+
zt.config({}),
|
|
28320
28320
|
YB(w.none()),
|
|
28321
28321
|
bt.config({ mode: "acyclic" })
|
|
28322
28322
|
])
|
|
@@ -28348,13 +28348,13 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
28348
28348
|
"tox-tbtn__icon-wrap"
|
|
28349
28349
|
],
|
|
28350
28350
|
behaviours: a
|
|
28351
|
-
}, s), vE = (t, s) => yE(t, s, []), Qd = (t, s) => yE(t, s, [
|
|
28351
|
+
}, s), vE = (t, s) => yE(t, s, []), Qd = (t, s) => yE(t, s, [zt.config({})]), iR = (t, s, a) => ({
|
|
28352
28352
|
dom: {
|
|
28353
28353
|
tag: "span",
|
|
28354
28354
|
classes: [`${s}__select-label`]
|
|
28355
28355
|
},
|
|
28356
28356
|
components: [qo(a.translate(t))],
|
|
28357
|
-
behaviours: He([
|
|
28357
|
+
behaviours: He([zt.config({})])
|
|
28358
28358
|
}), fi = at("update-menu-text"), em = at("update-menu-icon"), xE = (t, s, a) => {
|
|
28359
28359
|
const c = St(de), u = t.text.map((A) => Bn(iR(A, s, a.providers))), m = t.icon.map((A) => Bn(Qd(A, a.providers.icons))), f = (A, P) => {
|
|
28360
28360
|
const I = Ye.getValue(A);
|
|
@@ -28395,7 +28395,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
28395
28395
|
cs.button(() => t.disabled || a.providers.isDisabled()),
|
|
28396
28396
|
fs(),
|
|
28397
28397
|
Hb.config({}),
|
|
28398
|
-
|
|
28398
|
+
zt.config({}),
|
|
28399
28399
|
Xt("dropdown-events", [
|
|
28400
28400
|
zd(t, c),
|
|
28401
28401
|
Wl(t, c)
|
|
@@ -28404,12 +28404,12 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
28404
28404
|
Xt("menubutton-update-display-text", [
|
|
28405
28405
|
Se(fi, (A, P) => {
|
|
28406
28406
|
u.bind((I) => I.getOpt(A)).each((I) => {
|
|
28407
|
-
|
|
28407
|
+
zt.set(I, [qo(a.providers.translate(P.event.text))]);
|
|
28408
28408
|
});
|
|
28409
28409
|
}),
|
|
28410
28410
|
Se(em, (A, P) => {
|
|
28411
28411
|
m.bind((I) => I.getOpt(A)).each((I) => {
|
|
28412
|
-
|
|
28412
|
+
zt.set(I, [Qd(P.event.icon, a.providers.icons)]);
|
|
28413
28413
|
});
|
|
28414
28414
|
})
|
|
28415
28415
|
])
|
|
@@ -28524,7 +28524,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
28524
28524
|
type: "nestedmenuitem",
|
|
28525
28525
|
text: u.text,
|
|
28526
28526
|
getSubmenuItems: () => fR(t, s, u.items, c)
|
|
28527
|
-
}), CE = (t, s) => Ts(t, (a) => wE(a) ?
|
|
28527
|
+
}), CE = (t, s) => Ts(t, (a) => wE(a) ? Mt(a.value === s, a) : CE(a.items, s)), _E = (t, s, a) => {
|
|
28528
28528
|
const c = s.shared.providers, u = a.bind((b) => CE(t.items, b)).orThunk(() => sr(t.items).filter(wE)), m = t.label.map((b) => Ai(b, c)), f = Rn.parts.field({
|
|
28529
28529
|
dom: {},
|
|
28530
28530
|
factory: {
|
|
@@ -29432,7 +29432,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
29432
29432
|
shrinkingClass: "tox-tree--directory__children--shrinking",
|
|
29433
29433
|
expanded: a
|
|
29434
29434
|
}),
|
|
29435
|
-
|
|
29435
|
+
zt.config({})
|
|
29436
29436
|
])
|
|
29437
29437
|
}), NR = at("directory-event-id"), $E = ({ directory: t, onLeafAction: s, labelTabstopping: a, treeId: c, backstage: u, expandedIds: m, selectedId: f }) => {
|
|
29438
29438
|
const { children: h } = t, b = St(m), x = (E) => h.map((A) => A.type === "leaf" ? ew({
|
|
@@ -29492,7 +29492,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
29492
29492
|
toggleClass: "tox-tree--directory--expanded",
|
|
29493
29493
|
onToggled: (E, A) => {
|
|
29494
29494
|
const P = E.components()[1], I = x(A);
|
|
29495
|
-
A ? ga.grow(P) : ga.shrink(P),
|
|
29495
|
+
A ? ga.grow(P) : ga.shrink(P), zt.set(P, I);
|
|
29496
29496
|
}
|
|
29497
29497
|
})
|
|
29498
29498
|
])
|
|
@@ -29541,12 +29541,12 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
29541
29541
|
channels: {
|
|
29542
29542
|
[`update-active-item-${h}`]: {
|
|
29543
29543
|
onReceive: (x, C) => {
|
|
29544
|
-
f.set(w.some(C.value)),
|
|
29544
|
+
f.set(w.some(C.value)), zt.set(x, b(w.some(C.value), m.get()));
|
|
29545
29545
|
}
|
|
29546
29546
|
}
|
|
29547
29547
|
}
|
|
29548
29548
|
}),
|
|
29549
|
-
|
|
29549
|
+
zt.config({})
|
|
29550
29550
|
])
|
|
29551
29551
|
};
|
|
29552
29552
|
};
|
|
@@ -29930,7 +29930,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
29930
29930
|
value: {
|
|
29931
29931
|
setIcon: (ne) => {
|
|
29932
29932
|
u.map((De) => De.getOpt(q).each((we) => {
|
|
29933
|
-
|
|
29933
|
+
zt.set(we, [Qd(ne, s.icons)]);
|
|
29934
29934
|
}));
|
|
29935
29935
|
}
|
|
29936
29936
|
}
|
|
@@ -30764,7 +30764,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
30764
30764
|
}, a6 = (t) => Ne(to(t, hI), s6), qE = (t) => Ne(to(t, GE), r6), bI = (t) => t6("h1,h2,h3,h4,h5,h6,a:not([href])", t), i6 = (t) => lI(t.title).length > 0, c6 = { find: (t) => {
|
|
30765
30765
|
const s = bI(t);
|
|
30766
30766
|
return to(a6(s).concat(qE(s)), i6);
|
|
30767
|
-
} }, cw = "tinymce-url-history", KE = 5, yI = (t) => J(t) && /^https?/.test(t), lw = (t) =>
|
|
30767
|
+
} }, cw = "tinymce-url-history", KE = 5, yI = (t) => J(t) && /^https?/.test(t), lw = (t) => Rt(t) && t.length <= KE && In(t, yI), vI = (t) => Oe(t) && Is(t, (s) => !lw(s)).isNone(), uy = () => {
|
|
30768
30768
|
const t = jd.getItem(cw);
|
|
30769
30769
|
if (t === null)
|
|
30770
30770
|
return {};
|
|
@@ -30918,24 +30918,24 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
30918
30918
|
ae("shell", !1),
|
|
30919
30919
|
Ee("makeItem"),
|
|
30920
30920
|
ae("setupItem", de),
|
|
30921
|
-
Yi.field("listBehaviours", [
|
|
30921
|
+
Yi.field("listBehaviours", [zt])
|
|
30922
30922
|
]), g6 = ii({
|
|
30923
30923
|
name: "items",
|
|
30924
|
-
overrides: () => ({ behaviours: He([
|
|
30924
|
+
overrides: () => ({ behaviours: He([zt.config({})]) })
|
|
30925
30925
|
}), p6 = Q([g6]), h6 = Q("CustomList"), JE = (t, s, a, c) => {
|
|
30926
30926
|
const u = (h, b) => {
|
|
30927
30927
|
f(h).fold(() => {
|
|
30928
30928
|
throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"), new Error("Custom List was defined to not be a shell, but no item container was specified in components");
|
|
30929
30929
|
}, (x) => {
|
|
30930
|
-
const C =
|
|
30931
|
-
Xe(I, (re) =>
|
|
30932
|
-
const z =
|
|
30930
|
+
const C = zt.contents(x), E = b.length, A = E - C.length, P = A > 0 ? hc(A, () => t.makeItem()) : [], I = C.slice(E);
|
|
30931
|
+
Xe(I, (re) => zt.remove(x, re)), Xe(P, (re) => zt.append(x, re));
|
|
30932
|
+
const z = zt.contents(x);
|
|
30933
30933
|
Xe(z, (re, Y) => {
|
|
30934
30934
|
t.setupItem(h, re, b[Y], Y);
|
|
30935
30935
|
});
|
|
30936
30936
|
});
|
|
30937
30937
|
}, m = t.shell ? {
|
|
30938
|
-
behaviours: [
|
|
30938
|
+
behaviours: [zt.config({})],
|
|
30939
30939
|
components: []
|
|
30940
30940
|
} : {
|
|
30941
30941
|
behaviours: [],
|
|
@@ -30961,19 +30961,19 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
30961
30961
|
}), Ap = Q([
|
|
30962
30962
|
Ee("dom"),
|
|
30963
30963
|
ae("shell", !0),
|
|
30964
|
-
Cs("toolbarBehaviours", [
|
|
30964
|
+
Cs("toolbarBehaviours", [zt])
|
|
30965
30965
|
]), b6 = Q([ii({
|
|
30966
30966
|
name: "groups",
|
|
30967
|
-
overrides: () => ({ behaviours: He([
|
|
30967
|
+
overrides: () => ({ behaviours: He([zt.config({})]) })
|
|
30968
30968
|
})]), y6 = (t, s, a, c) => {
|
|
30969
30969
|
const u = (h, b) => {
|
|
30970
30970
|
m(h).fold(() => {
|
|
30971
30971
|
throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"), new Error("Toolbar was defined to not be a shell, but no groups container was specified in components");
|
|
30972
30972
|
}, (x) => {
|
|
30973
|
-
|
|
30973
|
+
zt.set(x, b);
|
|
30974
30974
|
});
|
|
30975
30975
|
}, m = (h) => t.shell ? w.some(h) : so(h, t, "groups"), f = t.shell ? {
|
|
30976
|
-
behaviours: [
|
|
30976
|
+
behaviours: [zt.config({})],
|
|
30977
30977
|
components: []
|
|
30978
30978
|
} : {
|
|
30979
30979
|
behaviours: [],
|
|
@@ -31447,7 +31447,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
31447
31447
|
}, x = VI(b).mapError((C) => Yr(C)).getOrDie();
|
|
31448
31448
|
return Qb(x, "tox-mbtn", s.backstage, w.some("menuitem"));
|
|
31449
31449
|
});
|
|
31450
|
-
|
|
31450
|
+
zt.set(u, f);
|
|
31451
31451
|
}, c = {
|
|
31452
31452
|
focus: bt.focusIn,
|
|
31453
31453
|
setMenus: a
|
|
@@ -31457,7 +31457,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
31457
31457
|
dom: t.dom,
|
|
31458
31458
|
components: [],
|
|
31459
31459
|
behaviours: He([
|
|
31460
|
-
|
|
31460
|
+
zt.config({}),
|
|
31461
31461
|
Xt("menubar-events", [
|
|
31462
31462
|
io((u) => {
|
|
31463
31463
|
t.onSetup(u);
|
|
@@ -31645,7 +31645,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
31645
31645
|
slotBehaviours: Tb.unnamedEvents([io((a) => Mr.hideAllSlots(a))])
|
|
31646
31646
|
})), Q6 = (t, s, a) => {
|
|
31647
31647
|
dn.getCurrent(t).each((u) => {
|
|
31648
|
-
|
|
31648
|
+
zt.set(u, [J6(s)]);
|
|
31649
31649
|
const m = a == null ? void 0 : a.toLowerCase();
|
|
31650
31650
|
J(m) && En(s, m) && dn.getCurrent(u).each((f) => {
|
|
31651
31651
|
Mr.showSlot(f, m), ga.immediateGrow(u), Tn(u.element, "width"), vw(t.element, "region");
|
|
@@ -31694,10 +31694,10 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
31694
31694
|
xt(s, hT, { width: br(s.element) + "px" });
|
|
31695
31695
|
}
|
|
31696
31696
|
}),
|
|
31697
|
-
|
|
31697
|
+
zt.config({}),
|
|
31698
31698
|
dn.config({
|
|
31699
31699
|
find: (s) => {
|
|
31700
|
-
const a =
|
|
31700
|
+
const a = zt.contents(s);
|
|
31701
31701
|
return sr(a);
|
|
31702
31702
|
}
|
|
31703
31703
|
})
|
|
@@ -31727,7 +31727,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
31727
31727
|
}),
|
|
31728
31728
|
Tt.config({})
|
|
31729
31729
|
]), f = c(u, m), h = u.getSystem().build(f);
|
|
31730
|
-
|
|
31730
|
+
zt.append(u, Ci(h)), h.hasConfigured(bt) && s.focus && bt.focusIn(h), a.isBlocked() || s.onBlock(t), a.blockWith(() => zt.remove(u, h));
|
|
31731
31731
|
},
|
|
31732
31732
|
unblock: (t, s, a) => {
|
|
31733
31733
|
$o(t.element, "aria-busy"), a.isBlocked() && s.onUnblock(t), a.clear();
|
|
@@ -31791,7 +31791,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
31791
31791
|
styles: { display: "none" }
|
|
31792
31792
|
},
|
|
31793
31793
|
behaviours: He([
|
|
31794
|
-
|
|
31794
|
+
zt.config({}),
|
|
31795
31795
|
lc.config({ focus: !1 }),
|
|
31796
31796
|
dn.config({ find: (s) => sr(s.components()) })
|
|
31797
31797
|
]),
|
|
@@ -31864,7 +31864,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
31864
31864
|
const f = c.concat([m]), h = m9(f);
|
|
31865
31865
|
a([]), JI(u, f);
|
|
31866
31866
|
const b = br(u.element), x = d9(b, s.builtGroups.get(), (C) => br(C.element), m);
|
|
31867
|
-
x.extra.length === 0 ? (
|
|
31867
|
+
x.extra.length === 0 ? (zt.remove(u, m), a([])) : (JI(u, x.within), a(x.extra)), Tn(u.element, "visibility"), Fi(u.element), h.each(Tt.focus);
|
|
31868
31868
|
}, eM = Q([
|
|
31869
31869
|
Cs("splitToolbarBehaviours", [Uo]),
|
|
31870
31870
|
rs("builtGroups", () => St([]))
|
|
@@ -32441,7 +32441,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
32441
32441
|
const u = t.type === "togglebutton", m = t.icon.map((ne) => Qd(ne, s.icons)).map(Bn), h = (ne) => {
|
|
32442
32442
|
const De = (Re) => {
|
|
32443
32443
|
m.map((We) => We.getOpt(ne).each((Zt) => {
|
|
32444
|
-
|
|
32444
|
+
zt.set(Zt, [Qd(Re, s.icons)]);
|
|
32445
32445
|
}));
|
|
32446
32446
|
}, we = (Re) => {
|
|
32447
32447
|
const We = ne.element;
|
|
@@ -32606,7 +32606,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
32606
32606
|
factory: (t, s) => {
|
|
32607
32607
|
const m = {
|
|
32608
32608
|
setViews: (f, h) => {
|
|
32609
|
-
|
|
32609
|
+
zt.set(f, [gM(h, s.backstage.shared.providers)]);
|
|
32610
32610
|
},
|
|
32611
32611
|
whichView: (f) => dn.getCurrent(f).bind(yy),
|
|
32612
32612
|
toggleView: (f, h, b, x) => dn.getCurrent(f).exists((C) => {
|
|
@@ -32624,10 +32624,10 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
32624
32624
|
},
|
|
32625
32625
|
components: [],
|
|
32626
32626
|
behaviours: He([
|
|
32627
|
-
|
|
32627
|
+
zt.config({}),
|
|
32628
32628
|
dn.config({
|
|
32629
32629
|
find: (f) => {
|
|
32630
|
-
const h =
|
|
32630
|
+
const h = zt.contents(f);
|
|
32631
32631
|
return sr(h);
|
|
32632
32632
|
}
|
|
32633
32633
|
})
|
|
@@ -33140,7 +33140,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
33140
33140
|
});
|
|
33141
33141
|
}, EM = (t, s) => {
|
|
33142
33142
|
const a = s(), c = Ne(a, (u) => u.format);
|
|
33143
|
-
return w.from(t.formatter.closest(c)).bind((u) => qt(a, (m) => m.format === u)).orThunk(() =>
|
|
33143
|
+
return w.from(t.formatter.closest(c)).bind((u) => qt(a, (m) => m.format === u)).orThunk(() => Mt(t.formatter.match("p"), {
|
|
33144
33144
|
title: "Paragraph",
|
|
33145
33145
|
format: "p"
|
|
33146
33146
|
}));
|
|
@@ -33197,7 +33197,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
33197
33197
|
matchOpt: qt(C, (I) => {
|
|
33198
33198
|
const z = I.format;
|
|
33199
33199
|
return z.toLowerCase() === E || b(z).toLowerCase() === b(E).toLowerCase();
|
|
33200
|
-
}).orThunk(() =>
|
|
33200
|
+
}).orThunk(() => Mt(r7(E, A), {
|
|
33201
33201
|
title: MT,
|
|
33202
33202
|
format: E
|
|
33203
33203
|
})),
|
|
@@ -33775,12 +33775,12 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
33775
33775
|
io((h, b) => bE(h)),
|
|
33776
33776
|
Se(fi, (h, b) => {
|
|
33777
33777
|
m.bind((x) => x.getOpt(h)).each((x) => {
|
|
33778
|
-
|
|
33778
|
+
zt.set(x, [qo(u.translate(b.event.text))]);
|
|
33779
33779
|
});
|
|
33780
33780
|
}),
|
|
33781
33781
|
Se(em, (h, b) => {
|
|
33782
33782
|
f.bind((x) => x.getOpt(h)).each((x) => {
|
|
33783
|
-
|
|
33783
|
+
zt.set(x, [Qd(b.event.icon, u.icons)]);
|
|
33784
33784
|
});
|
|
33785
33785
|
}),
|
|
33786
33786
|
Se(xs(), (h, b) => {
|
|
@@ -33844,7 +33844,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
33844
33844
|
onSetup: t.onSetup
|
|
33845
33845
|
}, s), $7 = (t, s) => GM(t, s, []), GM = (t, s, a) => WM(t, {
|
|
33846
33846
|
toolbarButtonBehaviours: [
|
|
33847
|
-
|
|
33847
|
+
zt.config({}),
|
|
33848
33848
|
nn.config({
|
|
33849
33849
|
toggleClass: "tox-tbtn--enabled",
|
|
33850
33850
|
aria: { mode: "pressed" },
|
|
@@ -34039,7 +34039,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
34039
34039
|
}, Iw = (t) => {
|
|
34040
34040
|
const s = t.split("|");
|
|
34041
34041
|
return Ne(s, (a) => ({ items: a.trim().split(" ") }));
|
|
34042
|
-
}, YM = (t) =>
|
|
34042
|
+
}, YM = (t) => It(t, (s) => En(s, "name") && En(s, "items")), I7 = (t) => {
|
|
34043
34043
|
const s = t.toolbar, a = t.buttons;
|
|
34044
34044
|
return s === !1 ? [] : s === void 0 || s === !0 ? Rw(a) : J(s) ? Iw(s) : YM(s) ? s : (console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"), []);
|
|
34045
34045
|
}, M7 = (t, s, a, c, u, m) => Ke(s, a.toLowerCase()).orThunk(() => m.bind((f) => Ts(f, (h) => Ke(s, h + a.toLowerCase())))).fold(() => Ke(KM, a.toLowerCase()).map((f) => f(t, u)), (f) => f.type === "grouptoolbarbutton" && !c ? (console.warn(`Ignoring the '${a}' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested.`), w.none()) : Bw(f, u, t)), Mw = (t, s, a, c) => {
|
|
@@ -34053,7 +34053,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
34053
34053
|
return to(m, (f) => f.items.length > 0);
|
|
34054
34054
|
}, XM = (t, s, a, c) => {
|
|
34055
34055
|
const u = s.mainUi.outerContainer, m = a.toolbar, f = a.buttons;
|
|
34056
|
-
if (
|
|
34056
|
+
if (It(m, J)) {
|
|
34057
34057
|
const h = m.map((b) => {
|
|
34058
34058
|
const x = {
|
|
34059
34059
|
toolbar: b,
|
|
@@ -34166,8 +34166,8 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
34166
34166
|
if (Bt.y > ct)
|
|
34167
34167
|
return "top";
|
|
34168
34168
|
{
|
|
34169
|
-
const _t = Ua(s),
|
|
34170
|
-
return Bt.bottom <
|
|
34169
|
+
const _t = Ua(s), Wt = Math.max(_t.dom.scrollHeight, Po(_t));
|
|
34170
|
+
return Bt.bottom < Wt - ct || Ks().bottom < Bt.bottom - ct ? "bottom" : "top";
|
|
34171
34171
|
}
|
|
34172
34172
|
case Pf.bottom:
|
|
34173
34173
|
return "bottom";
|
|
@@ -34191,7 +34191,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
34191
34191
|
});
|
|
34192
34192
|
}, we = (wt) => {
|
|
34193
34193
|
u.on((gn) => {
|
|
34194
|
-
const je = Xn.getToolbar(m.outerContainer), ct = Y(je), Bt = Bo(s), { top:
|
|
34194
|
+
const je = Xn.getToolbar(m.outerContainer), ct = Y(je), Bt = Bo(s), { top: Vt, left: _t } = ye(t, m.outerContainer.element).fold(() => ({
|
|
34195
34195
|
top: A() ? Math.max(Bt.y - Po(gn.element) + ct, 0) : Bt.bottom,
|
|
34196
34196
|
left: Bt.x
|
|
34197
34197
|
}), (vn) => {
|
|
@@ -34201,16 +34201,16 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
34201
34201
|
top: A() ? mm : Bt.bottom,
|
|
34202
34202
|
left: gc ? Bt.x : Bt.x - ba.x
|
|
34203
34203
|
};
|
|
34204
|
-
}),
|
|
34204
|
+
}), Wt = {
|
|
34205
34205
|
position: "absolute",
|
|
34206
34206
|
left: Math.round(_t) + "px",
|
|
34207
|
-
top: Math.round(
|
|
34207
|
+
top: Math.round(Vt) + "px"
|
|
34208
34208
|
}, Gn = wt.map((vn) => {
|
|
34209
34209
|
const Us = Tr(), ba = 150, Bi = window.innerWidth - (_t - Us.left);
|
|
34210
34210
|
return { width: Math.max(Math.min(vn, Bi), ba) + "px" };
|
|
34211
34211
|
}).getOr({});
|
|
34212
34212
|
pd(m.outerContainer.element, {
|
|
34213
|
-
...
|
|
34213
|
+
...Wt,
|
|
34214
34214
|
...Gn
|
|
34215
34215
|
});
|
|
34216
34216
|
});
|
|
@@ -34779,7 +34779,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
34779
34779
|
t.on("remove", z), t.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress", re), t.on("click keyup focus SetContent", Zt.throttle), t.on(o2, z), t.on(K7, (tt) => {
|
|
34780
34780
|
const Pt = q();
|
|
34781
34781
|
Ke(Pt.lookupTable, tt.toolbarKey).each((At) => {
|
|
34782
|
-
Re([At],
|
|
34782
|
+
Re([At], Mt(tt.target !== t, tt.target)), _o.getContent(C).each(bt.focusIn);
|
|
34783
34783
|
});
|
|
34784
34784
|
}), t.on("focusout", (tt) => {
|
|
34785
34785
|
mf.setEditorTimeout(t, () => {
|
|
@@ -35277,7 +35277,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
35277
35277
|
processor: (a) => a === !1 ? {
|
|
35278
35278
|
value: [],
|
|
35279
35279
|
valid: !0
|
|
35280
|
-
} : J(a) ||
|
|
35280
|
+
} : J(a) || It(a, J) ? {
|
|
35281
35281
|
value: CW(a),
|
|
35282
35282
|
valid: !0
|
|
35283
35283
|
} : {
|
|
@@ -35476,7 +35476,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
35476
35476
|
const h = f.update(a);
|
|
35477
35477
|
if (J(h) && wc(Yf(h)))
|
|
35478
35478
|
return eA(u, h.split(" "));
|
|
35479
|
-
if (
|
|
35479
|
+
if (Rt(h) && h.length > 0) {
|
|
35480
35480
|
const b = Ne(h, R2);
|
|
35481
35481
|
return eA(u, b);
|
|
35482
35482
|
} else
|
|
@@ -36021,11 +36021,11 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
36021
36021
|
kt.config({ disabled: a.isDisabled }),
|
|
36022
36022
|
fs(),
|
|
36023
36023
|
bo.config({}),
|
|
36024
|
-
|
|
36024
|
+
zt.config({}),
|
|
36025
36025
|
Xt("elementPathEvents", [io((x, C) => {
|
|
36026
36026
|
t.shortcuts.add("alt+F11", "focus statusbar elementpath", () => bt.focusIn(x)), t.on("NodeChange", (E) => {
|
|
36027
36027
|
const A = b(E.parents), P = A.length > 0 ? h(A) : [];
|
|
36028
|
-
|
|
36028
|
+
zt.set(x, P);
|
|
36029
36029
|
});
|
|
36030
36030
|
})])
|
|
36031
36031
|
]),
|
|
@@ -36081,7 +36081,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
36081
36081
|
]
|
|
36082
36082
|
}, s.icons));
|
|
36083
36083
|
}, xj = (t, s) => {
|
|
36084
|
-
const a = (c, u, m) =>
|
|
36084
|
+
const a = (c, u, m) => zt.set(c, [qo(s.translate([
|
|
36085
36085
|
"{0} " + m,
|
|
36086
36086
|
u[m]
|
|
36087
36087
|
]))]);
|
|
@@ -36095,7 +36095,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
36095
36095
|
cs.button(s.isDisabled),
|
|
36096
36096
|
fs(),
|
|
36097
36097
|
bo.config({}),
|
|
36098
|
-
|
|
36098
|
+
zt.config({}),
|
|
36099
36099
|
Ye.config({
|
|
36100
36100
|
store: {
|
|
36101
36101
|
mode: "memory",
|
|
@@ -36232,7 +36232,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
36232
36232
|
popup: ne,
|
|
36233
36233
|
dialog: q
|
|
36234
36234
|
}, t, De, we), Zt = () => {
|
|
36235
|
-
const _t = { attributes: { [jv]: P ? Pu.BottomToTop : Pu.TopToBottom } },
|
|
36235
|
+
const _t = { attributes: { [jv]: P ? Pu.BottomToTop : Pu.TopToBottom } }, Wt = Xn.parts.menubar({
|
|
36236
36236
|
dom: {
|
|
36237
36237
|
tag: "div",
|
|
36238
36238
|
classes: ["tox-menubar"]
|
|
@@ -36270,8 +36270,8 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
36270
36270
|
type: I
|
|
36271
36271
|
}), Us = vb(t), ba = Y0(t), Bi = Qg(t), gc = c$(t), mm = tt(), zf = Us || ba || Bi, ll = () => Us ? [vn] : ba ? [Gn] : [], od = gc ? [
|
|
36272
36272
|
mm,
|
|
36273
|
-
|
|
36274
|
-
] : [
|
|
36273
|
+
Wt
|
|
36274
|
+
] : [Wt];
|
|
36275
36275
|
return Xn.parts.header({
|
|
36276
36276
|
dom: {
|
|
36277
36277
|
tag: "div",
|
|
@@ -36298,7 +36298,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
36298
36298
|
tag: "div",
|
|
36299
36299
|
classes: ["tox-edit-area"]
|
|
36300
36300
|
}
|
|
36301
|
-
}),
|
|
36301
|
+
}), Wt = Xn.parts.sidebar({
|
|
36302
36302
|
dom: {
|
|
36303
36303
|
tag: "div",
|
|
36304
36304
|
classes: ["tox-sidebar"]
|
|
@@ -36311,11 +36311,11 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
36311
36311
|
},
|
|
36312
36312
|
components: [
|
|
36313
36313
|
_t,
|
|
36314
|
-
|
|
36314
|
+
Wt
|
|
36315
36315
|
]
|
|
36316
36316
|
};
|
|
36317
36317
|
}, At = () => {
|
|
36318
|
-
const _t = Sk(t),
|
|
36318
|
+
const _t = Sk(t), Wt = Vn(Vo(), _t) && ds(_t, "display") === "grid", Gn = {
|
|
36319
36319
|
dom: {
|
|
36320
36320
|
tag: "div",
|
|
36321
36321
|
classes: [
|
|
@@ -36331,7 +36331,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
36331
36331
|
events: ho([Se(ph(), (Bi) => {
|
|
36332
36332
|
Jt(Bi.element, "width", document.body.clientWidth + "px");
|
|
36333
36333
|
})])
|
|
36334
|
-
}, Us = vr(Kn(Gn,
|
|
36334
|
+
}, Us = vr(Kn(Gn, Wt ? vn : {})), ba = Ex(Us);
|
|
36335
36335
|
return h.set(ba), {
|
|
36336
36336
|
sink: Us,
|
|
36337
36337
|
mothership: ba
|
|
@@ -36352,13 +36352,13 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
36352
36352
|
useFixed: () => u.isDocked(Y),
|
|
36353
36353
|
getBounds: () => s.getPopupSinkBounds()
|
|
36354
36354
|
})])
|
|
36355
|
-
},
|
|
36355
|
+
}, Wt = vr(_t), Gn = Ex(Wt);
|
|
36356
36356
|
return b.set(Gn), {
|
|
36357
|
-
sink:
|
|
36357
|
+
sink: Wt,
|
|
36358
36358
|
mothership: Gn
|
|
36359
36359
|
};
|
|
36360
36360
|
}, wt = () => {
|
|
36361
|
-
const _t = Zt(),
|
|
36361
|
+
const _t = Zt(), Wt = Pt(), Gn = Xn.parts.throbber({
|
|
36362
36362
|
dom: {
|
|
36363
36363
|
tag: "div",
|
|
36364
36364
|
classes: ["tox-throbber"]
|
|
@@ -36366,7 +36366,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
36366
36366
|
backstage: We.popup
|
|
36367
36367
|
}), vn = Xn.parts.viewWrapper({ backstage: We.popup }), Us = a$(t) && !a ? w.some(wj(t, We.popup.shared.providers)) : w.none(), ba = vt([
|
|
36368
36368
|
P ? [] : [_t],
|
|
36369
|
-
a ? [] : [
|
|
36369
|
+
a ? [] : [Wt],
|
|
36370
36370
|
P ? [_t] : []
|
|
36371
36371
|
]), Bi = Xn.parts.editorContainer({
|
|
36372
36372
|
components: vt([
|
|
@@ -36415,18 +36415,18 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
36415
36415
|
outerContainer: zf
|
|
36416
36416
|
};
|
|
36417
36417
|
}, gn = (_t) => {
|
|
36418
|
-
const
|
|
36419
|
-
return t.inline || (jp("div", "width", Gn) && Jt(_t.element, "width", Gn), jp("div", "height",
|
|
36418
|
+
const Wt = Fw(V7(t)), Gn = Fw(H7(t));
|
|
36419
|
+
return t.inline || (jp("div", "width", Gn) && Jt(_t.element, "width", Gn), jp("div", "height", Wt) ? Jt(_t.element, "height", Wt) : Jt(_t.element, "height", "400px")), Wt;
|
|
36420
36420
|
}, je = (_t) => {
|
|
36421
36421
|
t.addShortcut("alt+F9", "focus menubar", () => {
|
|
36422
36422
|
Xn.focusMenubar(_t);
|
|
36423
36423
|
}), t.addShortcut("alt+F10", "focus toolbar", () => {
|
|
36424
36424
|
Xn.focusToolbar(_t);
|
|
36425
|
-
}), t.addCommand("ToggleToolbarDrawer", (
|
|
36425
|
+
}), t.addCommand("ToggleToolbarDrawer", (Wt, Gn) => {
|
|
36426
36426
|
Gn != null && Gn.skipFocus ? Xn.toggleToolbarDrawerWithoutFocusing(_t) : Xn.toggleToolbarDrawer(_t);
|
|
36427
36427
|
}), t.addQueryStateHandler("ToggleToolbarDrawer", () => Xn.isToolbarDrawerToggled(_t));
|
|
36428
36428
|
}, ct = (_t) => {
|
|
36429
|
-
const { mainUi:
|
|
36429
|
+
const { mainUi: Wt, popupUi: Gn, uiMotherships: vn } = _t;
|
|
36430
36430
|
go(t$(t), (Hp, mC) => {
|
|
36431
36431
|
t.ui.registry.addGroupToolbarButton(mC, Hp);
|
|
36432
36432
|
});
|
|
@@ -36440,18 +36440,18 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
36440
36440
|
sidebar: gc,
|
|
36441
36441
|
views: mm
|
|
36442
36442
|
};
|
|
36443
|
-
je(
|
|
36444
|
-
const od = t.getElement(), Ry = gn(
|
|
36443
|
+
je(Wt.outerContainer), CI(t, Wt.mothership, vn), u.setup(t, We.popup.shared, Y), _2(t, We.popup), FW(t, We.popup.shared.getSink, We.popup), WI(t), c9(t, Re, We.popup.shared), h2(t, Bi, Gn.sink, { backstage: We.popup }), hj(t, Gn.sink);
|
|
36444
|
+
const od = t.getElement(), Ry = gn(Wt.outerContainer), wA = {
|
|
36445
36445
|
targetNode: od,
|
|
36446
36446
|
height: Ry
|
|
36447
36447
|
};
|
|
36448
36448
|
return c.render(t, _t, ll, We.popup, wA);
|
|
36449
|
-
}, Bt = (_t) => (b.set(_t.mothership), _t),
|
|
36450
|
-
const _t = wt(),
|
|
36451
|
-
m.dialogUi.set(
|
|
36449
|
+
}, Bt = (_t) => (b.set(_t.mothership), _t), Vt = () => {
|
|
36450
|
+
const _t = wt(), Wt = At(), Gn = Fl(t) ? $n() : Bt(Wt);
|
|
36451
|
+
m.dialogUi.set(Wt), m.popupUi.set(Gn), m.mainUi.set(_t);
|
|
36452
36452
|
const vn = {
|
|
36453
36453
|
popupUi: Gn,
|
|
36454
|
-
dialogUi:
|
|
36454
|
+
dialogUi: Wt,
|
|
36455
36455
|
mainUi: _t,
|
|
36456
36456
|
uiMotherships: m.getUiMotherships()
|
|
36457
36457
|
};
|
|
@@ -36466,7 +36466,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
36466
36466
|
backstage: We.dialog,
|
|
36467
36467
|
getMothership: () => Y2("dialogs", h)
|
|
36468
36468
|
},
|
|
36469
|
-
renderUI:
|
|
36469
|
+
renderUI: Vt
|
|
36470
36470
|
};
|
|
36471
36471
|
}, _j = (t, s) => {
|
|
36472
36472
|
const a = qs(t, "id").fold(() => {
|
|
@@ -36587,7 +36587,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
36587
36587
|
}
|
|
36588
36588
|
},
|
|
36589
36589
|
behaviours: $s(t.modalBehaviours, [
|
|
36590
|
-
|
|
36590
|
+
zt.config({}),
|
|
36591
36591
|
bt.config({
|
|
36592
36592
|
mode: "cyclic",
|
|
36593
36593
|
onEnter: t.onExecute,
|
|
@@ -36884,7 +36884,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
36884
36884
|
Vs("onCancel", de),
|
|
36885
36885
|
Vs("onClose", de),
|
|
36886
36886
|
Vs("onMessage", de)
|
|
36887
|
-
]), Ie = (t) => Io("dialog", Te, t), qe = (t) => Oe(t) ? [t].concat(ve(ad(t), qe)) :
|
|
36887
|
+
]), Ie = (t) => Io("dialog", Te, t), qe = (t) => Oe(t) ? [t].concat(ve(ad(t), qe)) : Rt(t) ? ve(t, qe) : [], he = (t) => J(t.type) && J(t.name), me = {
|
|
36888
36888
|
checkbox: tL,
|
|
36889
36889
|
colorinput: Bj,
|
|
36890
36890
|
colorpicker: Mj,
|
|
@@ -37021,7 +37021,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
37021
37021
|
})])
|
|
37022
37022
|
])
|
|
37023
37023
|
};
|
|
37024
|
-
},
|
|
37024
|
+
}, Lt = (t, s) => ({
|
|
37025
37025
|
uid: t.uid,
|
|
37026
37026
|
dom: t.dom,
|
|
37027
37027
|
components: t.components,
|
|
@@ -37062,8 +37062,8 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
37062
37062
|
]),
|
|
37063
37063
|
Ee("view")
|
|
37064
37064
|
],
|
|
37065
|
-
factory:
|
|
37066
|
-
}),
|
|
37065
|
+
factory: Lt
|
|
37066
|
+
}), Ft = Q([
|
|
37067
37067
|
Ee("tabs"),
|
|
37068
37068
|
Ee("dom"),
|
|
37069
37069
|
ae("clickToDismiss", !1),
|
|
@@ -37125,17 +37125,17 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
37125
37125
|
])
|
|
37126
37126
|
}), Ss = _r({
|
|
37127
37127
|
name: "Tabbar",
|
|
37128
|
-
configFields:
|
|
37128
|
+
configFields: Ft(),
|
|
37129
37129
|
partFields: jn(),
|
|
37130
37130
|
factory: zn
|
|
37131
37131
|
}), dc = (t, s) => ({
|
|
37132
37132
|
uid: t.uid,
|
|
37133
37133
|
dom: t.dom,
|
|
37134
|
-
behaviours: $s(t.tabviewBehaviours, [
|
|
37134
|
+
behaviours: $s(t.tabviewBehaviours, [zt.config({})]),
|
|
37135
37135
|
domModification: { attributes: { role: "tabpanel" } }
|
|
37136
37136
|
}), eu = Pa({
|
|
37137
37137
|
name: "Tabview",
|
|
37138
|
-
configFields: [Cs("tabviewBehaviours", [
|
|
37138
|
+
configFields: [Cs("tabviewBehaviours", [zt])],
|
|
37139
37139
|
factory: dc
|
|
37140
37140
|
}), ta = Q([
|
|
37141
37141
|
ae("selectFirst", !0),
|
|
@@ -37154,12 +37154,12 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
37154
37154
|
],
|
|
37155
37155
|
name: "tabbar",
|
|
37156
37156
|
defaults: (t) => ({ tabs: t.tabs })
|
|
37157
|
-
}),
|
|
37157
|
+
}), Ut = Cr({
|
|
37158
37158
|
factory: eu,
|
|
37159
37159
|
name: "tabview"
|
|
37160
37160
|
}), Sn = Q([
|
|
37161
37161
|
Ni,
|
|
37162
|
-
|
|
37162
|
+
Ut
|
|
37163
37163
|
]), Jn = (t, s, a, c) => {
|
|
37164
37164
|
const u = (f) => {
|
|
37165
37165
|
const h = Ye.getValue(f);
|
|
@@ -37168,7 +37168,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
37168
37168
|
const E = C.view();
|
|
37169
37169
|
qs(f.element, "id").each((A) => {
|
|
37170
37170
|
Ze(b.element, "aria-labelledby", A);
|
|
37171
|
-
}),
|
|
37171
|
+
}), zt.set(b, E), t.onChangeTab(b, f, E);
|
|
37172
37172
|
});
|
|
37173
37173
|
});
|
|
37174
37174
|
}, m = (f, h) => {
|
|
@@ -37197,7 +37197,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
37197
37197
|
]
|
|
37198
37198
|
])),
|
|
37199
37199
|
apis: {
|
|
37200
|
-
getViewItems: (f) => so(f, t, "tabview").map((h) =>
|
|
37200
|
+
getViewItems: (f) => so(f, t, "tabview").map((h) => zt.contents(h)).getOr([]),
|
|
37201
37201
|
showTab: (f, h) => {
|
|
37202
37202
|
m(f, (x) => {
|
|
37203
37203
|
const C = On.getCandidates(x);
|
|
@@ -37218,9 +37218,9 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
37218
37218
|
}
|
|
37219
37219
|
}
|
|
37220
37220
|
}), So = (t, s, a) => Ne(t, (c, u) => {
|
|
37221
|
-
|
|
37221
|
+
zt.set(a, t[u].view());
|
|
37222
37222
|
const m = s.dom.getBoundingClientRect();
|
|
37223
|
-
return
|
|
37223
|
+
return zt.set(a, []), m.height;
|
|
37224
37224
|
}), ha = (t) => sr(iu(t, (s, a) => s > a ? -1 : s < a ? 1 : 0)), cl = (t, s, a) => {
|
|
37225
37225
|
const c = Ua(t).dom, u = ti(t, ".tox-dialog-wrap").getOr(t), m = ds(u, "position") === "fixed";
|
|
37226
37226
|
let f;
|
|
@@ -37889,7 +37889,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
37889
37889
|
const c = at("dialog"), u = t.internalDialog, m = Ue(u.title, c, a), f = St(u.size), h = Rs(f.get()).toArray(), b = (q, ne) => (f.set(ne.internalDialog.size), dm(ne.internalDialog.size, q), w.some(ne)), x = Ny({
|
|
37890
37890
|
body: u.body,
|
|
37891
37891
|
initialData: u.initialData
|
|
37892
|
-
}, c, a), C = uC(u.buttons), E = yA(C), A =
|
|
37892
|
+
}, c, a), C = uC(u.buttons), E = yA(C), A = Mt(C.length !== 0, Pi({ buttons: C }, c, a)), P = sn(() => Y, gt(() => z, a.shared.providers, s), a.shared.getSink), I = {
|
|
37893
37893
|
id: c,
|
|
37894
37894
|
header: m,
|
|
37895
37895
|
body: x,
|
|
@@ -37928,7 +37928,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
37928
37928
|
}, m, f, a.shared.providers)), P = Bn(tu({
|
|
37929
37929
|
body: b.body,
|
|
37930
37930
|
initialData: b.initialData
|
|
37931
|
-
}, m, h, a, c)), I = uC(b.buttons), z = yA(I), re =
|
|
37931
|
+
}, m, h, a, c)), I = uC(b.buttons), z = yA(I), re = Mt(I.length !== 0, Bn(Lr({ buttons: I }, m, a))), Y = sn(() => we, {
|
|
37932
37932
|
onBlock: (ye) => {
|
|
37933
37933
|
lc.block(ne, (Re, We) => {
|
|
37934
37934
|
const Zt = A.getOpt(ne).map((tt) => Po(tt.element));
|
|
@@ -37985,7 +37985,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
37985
37985
|
})
|
|
37986
37986
|
])),
|
|
37987
37987
|
lc.config({ getRoot: () => w.some(ne) }),
|
|
37988
|
-
|
|
37988
|
+
zt.config({}),
|
|
37989
37989
|
jx({})
|
|
37990
37990
|
]),
|
|
37991
37991
|
components: [
|
|
@@ -38337,8 +38337,8 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
38337
38337
|
}));
|
|
38338
38338
|
Re.set(At);
|
|
38339
38339
|
const $n = () => t.backstages.popup.shared.getSink().toOptional().bind((wt) => {
|
|
38340
|
-
const gn = qd(s, wt.element), je = 15, ct = gn.map((_t) => fp(_t)).getOr(Ks()), Bt = Bo(Ge.fromDom(s.getContentAreaContainer())),
|
|
38341
|
-
return w.some(os(
|
|
38340
|
+
const gn = qd(s, wt.element), je = 15, ct = gn.map((_t) => fp(_t)).getOr(Ks()), Bt = Bo(Ge.fromDom(s.getContentAreaContainer())), Vt = eh(Bt, ct);
|
|
38341
|
+
return w.some(os(Vt.x, Vt.y, Vt.width, Vt.height - je));
|
|
38342
38342
|
});
|
|
38343
38343
|
return _o.showWithinBounds(At, Ci(Pt.dialog), { anchor: z }, $n), vo.refresh(At), s.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow", tt), Pt.instanceApi.setData(ye), bt.focusIn(Pt.dialog), Pt.instanceApi;
|
|
38344
38344
|
};
|
|
@@ -38399,7 +38399,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
38399
38399
|
}, G = (y) => {
|
|
38400
38400
|
const _ = typeof y;
|
|
38401
38401
|
return y === null ? "null" : _ === "object" && Array.isArray(y) ? "array" : _ === "object" && ee(y, String, (D, H) => H.isPrototypeOf(D)) ? "string" : _;
|
|
38402
|
-
}, be = (y) => (_) => G(_) === y, oe = (y) => (_) => typeof _ === y, U = be("string"), _e = be("object"), J = be("array"), Oe = oe("boolean"),
|
|
38402
|
+
}, be = (y) => (_) => G(_) === y, oe = (y) => (_) => typeof _ === y, U = be("string"), _e = be("object"), J = be("array"), Oe = oe("boolean"), mt = (y) => y == null, Rt = (y) => !mt(y), xn = oe("function"), eo = oe("number"), jo = () => {
|
|
38403
38403
|
}, xa = (y, _) => (D) => y(_(D)), ko = (y) => () => y, Yo = (y, _) => y === _;
|
|
38404
38404
|
function zs(y, ..._) {
|
|
38405
38405
|
return (...D) => {
|
|
@@ -38407,7 +38407,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
38407
38407
|
return y.apply(null, H);
|
|
38408
38408
|
};
|
|
38409
38409
|
}
|
|
38410
|
-
const
|
|
38410
|
+
const It = (y) => (_) => !y(_), de = ko(!1);
|
|
38411
38411
|
class Gt {
|
|
38412
38412
|
constructor(_, D) {
|
|
38413
38413
|
this.tag = _, this.value = D;
|
|
@@ -38460,7 +38460,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
38460
38460
|
throw new Error(_ ?? "Called getOrDie on None");
|
|
38461
38461
|
}
|
|
38462
38462
|
static from(_) {
|
|
38463
|
-
return
|
|
38463
|
+
return Rt(_) ? Gt.some(_) : Gt.none();
|
|
38464
38464
|
}
|
|
38465
38465
|
getOrNull() {
|
|
38466
38466
|
return this.tag ? this.value : null;
|
|
@@ -38608,7 +38608,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
38608
38608
|
}, Co = (y) => y.dom.nodeName.toLowerCase(), go = (y) => y.dom.nodeType, Ii = (y) => (_) => go(_) === y, es = (y) => go(y) === $ || Co(y) === "#comment", wa = (y) => js(y) && cu(y.dom), js = Ii(vc), pi = Ii(us), lu = Ii(yc), Is = Ii(to), ad = (y) => (_) => js(_) && Co(_) === y, Ke = (y) => In.fromDom(y.dom.ownerDocument), En = (y) => lu(y) ? y : Ke(y), gr = (y) => Gt.from(y.dom.parentNode).map(In.fromDom), Vr = (y) => Gt.from(y.dom.parentElement).map(In.fromDom), qf = (y) => Gt.from(y.dom.nextSibling).map(In.fromDom), Ca = (y) => Ae(y.dom.childNodes, In.fromDom), ml = (y, _) => {
|
|
38609
38609
|
const D = y.dom.childNodes;
|
|
38610
38610
|
return Gt.from(D[_]).map(In.fromDom);
|
|
38611
|
-
}, Fa = (y) => ml(y, 0), uu = (y) => ml(y, y.dom.childNodes.length - 1), ro = (y) => Is(y) &&
|
|
38611
|
+
}, Fa = (y) => ml(y, 0), uu = (y) => ml(y, y.dom.childNodes.length - 1), ro = (y) => Is(y) && Rt(y.dom.host), fl = xn(Element.prototype.attachShadow) && xn(Node.prototype.getRootNode) ? (y) => In.fromDom(y.dom.getRootNode()) : En, Kf = (y) => {
|
|
38612
38612
|
const _ = fl(y);
|
|
38613
38613
|
return ro(_) ? Gt.some(_) : Gt.none();
|
|
38614
38614
|
}, gl = (y) => In.fromDom(y.dom.host), id = (y) => {
|
|
@@ -38703,10 +38703,10 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
38703
38703
|
return Xf(D, H), ud(y), D;
|
|
38704
38704
|
};
|
|
38705
38705
|
var Hr = tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"), Va = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
38706
|
-
const mu = (y) => (_) =>
|
|
38706
|
+
const mu = (y) => (_) => Rt(_) && _.nodeName.toLowerCase() === y, Mi = (y) => (_) => Rt(_) && y.test(_.nodeName), bs = (y) => Rt(y) && y.nodeType === 3, vl = (y) => Rt(y) && y.nodeType === 1, pr = Mi(/^(OL|UL|DL)$/), vm = Mi(/^(OL|UL)$/), Vn = mu("ol"), Ha = Mi(/^(LI|DT|DD)$/), Ur = Mi(/^(DT|DD)$/), Sc = Mi(/^(TH|TD)$/), Ua = mu("br"), hi = (y) => {
|
|
38707
38707
|
var _;
|
|
38708
38708
|
return ((_ = y.parentNode) === null || _ === void 0 ? void 0 : _.firstChild) === y;
|
|
38709
|
-
}, hr = (y, _) =>
|
|
38709
|
+
}, hr = (y, _) => Rt(_) && _.nodeName in y.schema.getTextBlockElements(), fd = (y, _) => Rt(y) && y.nodeName in _, za = (y, _) => Rt(_) && _.nodeName in y.schema.getVoidElements(), xm = (y, _) => Ua(_) ? y.isBlock(_.nextSibling) && !Ua(_.previousSibling) : !1, Wa = (y, _, D) => {
|
|
38710
38710
|
const H = y.isEmpty(_);
|
|
38711
38711
|
return D && y.select("span[data-mce-type=bookmark]", _).length > 0 ? !1 : H;
|
|
38712
38712
|
}, wm = (y, _) => y.isChildOf(_, y.getRoot()), zr = (y) => (_) => _.options.get(y), Li = (y) => {
|
|
@@ -38778,7 +38778,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
38778
38778
|
], Vo = wn.join(","), Wr = (y, _) => {
|
|
38779
38779
|
const D = _ || y.selection.getStart(!0);
|
|
38780
38780
|
return y.dom.getParent(D, Vo, xl(y, D));
|
|
38781
|
-
}, Qf = (y, _) =>
|
|
38781
|
+
}, Qf = (y, _) => Rt(y) && _.length === 1 && _[0] === y, Ze = (y) => uo(y.querySelectorAll(Vo), pr), Sm = (y) => {
|
|
38782
38782
|
const _ = Wr(y), D = y.selection.getSelectedBlocks();
|
|
38783
38783
|
return Qf(_, D) ? Ze(_) : uo(D, (H) => pr(H) && _ !== H);
|
|
38784
38784
|
}, Gs = (y, _) => {
|
|
@@ -38997,7 +38997,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
38997
38997
|
Et(uo(y, Sa), (D) => Gy(_, D));
|
|
38998
38998
|
}, yd = (y) => {
|
|
38999
38999
|
const _ = Ae(qs(y), In.fromDom);
|
|
39000
|
-
return Xe(an(_,
|
|
39000
|
+
return Xe(an(_, It(Cn)), an(au(_), It(Cn)), (D, H) => ({
|
|
39001
39001
|
start: D,
|
|
39002
39002
|
end: H
|
|
39003
39003
|
}));
|
|
@@ -39078,7 +39078,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39078
39078
|
Jy(y, _, D), vi(y, _, D);
|
|
39079
39079
|
}, ev = (y, _, D) => {
|
|
39080
39080
|
Va.each(D, (H) => y.setStyle(_, H, ""));
|
|
39081
|
-
}, Er = (y, _) =>
|
|
39081
|
+
}, Er = (y, _) => Rt(_) && !fd(_, y.schema.getBlockElements()), vs = (y, _, D, H) => {
|
|
39082
39082
|
let j = _[D ? "startContainer" : "endContainer"];
|
|
39083
39083
|
const $e = _[D ? "startOffset" : "endOffset"];
|
|
39084
39084
|
vl(j) && (j = j.childNodes[Math.min($e, j.childNodes.length - 1)] || j), !D && Ua(j.nextSibling) && (j = j.nextSibling);
|
|
@@ -39456,7 +39456,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39456
39456
|
});
|
|
39457
39457
|
}, Kn = (y, _) => () => {
|
|
39458
39458
|
const D = Wr(y);
|
|
39459
|
-
return
|
|
39459
|
+
return Rt(D) && D.nodeName === _;
|
|
39460
39460
|
}, Cl = (y) => {
|
|
39461
39461
|
y.addCommand("mceListProps", () => {
|
|
39462
39462
|
iv(y);
|
|
@@ -39547,7 +39547,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39547
39547
|
}, G = (B) => {
|
|
39548
39548
|
const W = typeof B;
|
|
39549
39549
|
return B === null ? "null" : W === "object" && Array.isArray(B) ? "array" : W === "object" && ee(B, String, (te, xe) => xe.isPrototypeOf(te)) ? "string" : W;
|
|
39550
|
-
}, be = (B) => (W) => G(W) === B, oe = (B) => (W) => typeof W === B, U = (B) => (W) => B === W, _e = be("string"), J = be("object"), Oe = be("array"),
|
|
39550
|
+
}, be = (B) => (W) => G(W) === B, oe = (B) => (W) => typeof W === B, U = (B) => (W) => B === W, _e = be("string"), J = be("object"), Oe = be("array"), mt = U(null), Rt = oe("boolean"), xn = (B) => B == null, eo = (B) => !xn(B), jo = oe("function"), xa = (B, W) => {
|
|
39551
39551
|
if (Oe(B)) {
|
|
39552
39552
|
for (let te = 0, xe = B.length; te < xe; ++te)
|
|
39553
39553
|
if (!W(B[te]))
|
|
@@ -39557,15 +39557,15 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39557
39557
|
return !1;
|
|
39558
39558
|
}, ko = () => {
|
|
39559
39559
|
}, Yo = (B) => () => B, zs = (B, W) => B === W;
|
|
39560
|
-
class
|
|
39560
|
+
class It {
|
|
39561
39561
|
constructor(W, te) {
|
|
39562
39562
|
this.tag = W, this.value = te;
|
|
39563
39563
|
}
|
|
39564
39564
|
static some(W) {
|
|
39565
|
-
return new
|
|
39565
|
+
return new It(!0, W);
|
|
39566
39566
|
}
|
|
39567
39567
|
static none() {
|
|
39568
|
-
return
|
|
39568
|
+
return It.singletonNone;
|
|
39569
39569
|
}
|
|
39570
39570
|
fold(W, te) {
|
|
39571
39571
|
return this.tag ? te(this.value) : W();
|
|
@@ -39577,10 +39577,10 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39577
39577
|
return !this.tag;
|
|
39578
39578
|
}
|
|
39579
39579
|
map(W) {
|
|
39580
|
-
return this.tag ?
|
|
39580
|
+
return this.tag ? It.some(W(this.value)) : It.none();
|
|
39581
39581
|
}
|
|
39582
39582
|
bind(W) {
|
|
39583
|
-
return this.tag ? W(this.value) :
|
|
39583
|
+
return this.tag ? W(this.value) : It.none();
|
|
39584
39584
|
}
|
|
39585
39585
|
exists(W) {
|
|
39586
39586
|
return this.tag && W(this.value);
|
|
@@ -39589,7 +39589,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39589
39589
|
return !this.tag || W(this.value);
|
|
39590
39590
|
}
|
|
39591
39591
|
filter(W) {
|
|
39592
|
-
return !this.tag || W(this.value) ? this :
|
|
39592
|
+
return !this.tag || W(this.value) ? this : It.none();
|
|
39593
39593
|
}
|
|
39594
39594
|
getOr(W) {
|
|
39595
39595
|
return this.tag ? this.value : W;
|
|
@@ -39609,7 +39609,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39609
39609
|
throw new Error(W ?? "Called getOrDie on None");
|
|
39610
39610
|
}
|
|
39611
39611
|
static from(W) {
|
|
39612
|
-
return eo(W) ?
|
|
39612
|
+
return eo(W) ? It.some(W) : It.none();
|
|
39613
39613
|
}
|
|
39614
39614
|
getOrNull() {
|
|
39615
39615
|
return this.tag ? this.value : null;
|
|
@@ -39627,7 +39627,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39627
39627
|
return this.tag ? `some(${this.value})` : "none()";
|
|
39628
39628
|
}
|
|
39629
39629
|
}
|
|
39630
|
-
|
|
39630
|
+
It.singletonNone = new It(!1);
|
|
39631
39631
|
const de = Array.prototype.indexOf, Gt = Array.prototype.push, Ri = (B, W) => de.call(B, W), Eo = (B, W) => Ri(B, W) > -1, Q = (B, W) => {
|
|
39632
39632
|
const te = B.length, xe = new Array(te);
|
|
39633
39633
|
for (let Ve = 0; Ve < te; Ve++) {
|
|
@@ -39656,7 +39656,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39656
39656
|
if (xe.isSome())
|
|
39657
39657
|
return xe;
|
|
39658
39658
|
}
|
|
39659
|
-
return
|
|
39659
|
+
return It.none();
|
|
39660
39660
|
}, uo = (B, W, te = zs) => B.exists((xe) => te(xe, W)), kn = (B) => {
|
|
39661
39661
|
const W = [], te = (xe) => {
|
|
39662
39662
|
W.push(xe);
|
|
@@ -39664,11 +39664,11 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39664
39664
|
for (let xe = 0; xe < B.length; xe++)
|
|
39665
39665
|
B[xe].each(te);
|
|
39666
39666
|
return W;
|
|
39667
|
-
}, Ce = (B, W) => B ?
|
|
39667
|
+
}, Ce = (B, W) => B ? It.some(W) : It.none(), w = (B) => (W) => W.options.get(B), an = (B) => {
|
|
39668
39668
|
const W = B.options.register;
|
|
39669
39669
|
W("link_assume_external_targets", {
|
|
39670
39670
|
processor: (te) => {
|
|
39671
|
-
const xe = _e(te) ||
|
|
39671
|
+
const xe = _e(te) || Rt(te);
|
|
39672
39672
|
return xe ? te === !0 ? {
|
|
39673
39673
|
value: 1,
|
|
39674
39674
|
valid: xe
|
|
@@ -39691,7 +39691,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39691
39691
|
processor: "string",
|
|
39692
39692
|
default: "https"
|
|
39693
39693
|
}), W("link_target_list", {
|
|
39694
|
-
processor: (te) =>
|
|
39694
|
+
processor: (te) => Rt(te) || xa(te, J),
|
|
39695
39695
|
default: !0
|
|
39696
39696
|
}), W("link_rel_list", {
|
|
39697
39697
|
processor: "object[]",
|
|
@@ -39729,7 +39729,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39729
39729
|
});
|
|
39730
39730
|
}
|
|
39731
39731
|
}), te;
|
|
39732
|
-
}, Gf = (B = to) => (W) =>
|
|
39732
|
+
}, Gf = (B = to) => (W) => It.from(W).map((te) => us(te, B)), vt = {
|
|
39733
39733
|
sanitize: (B) => Gf(to)(B),
|
|
39734
39734
|
sanitizeWith: Gf,
|
|
39735
39735
|
createUi: (B, W) => (te) => ({
|
|
@@ -39773,7 +39773,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39773
39773
|
}, go = (B, W) => {
|
|
39774
39774
|
const te = ["noopener"], xe = B ? B.split(/\s+/) : [], Ve = (Wn) => yc.trim(Wn.sort().join(" ")), Ot = (Wn) => (Wn = qn(Wn), Wn.length > 0 ? Wn.concat(te) : te), qn = (Wn) => Wn.filter((No) => yc.inArray(te, No) === -1), po = W ? Ot(xe) : qn(xe);
|
|
39775
39775
|
return po.length > 0 ? Ve(po) : "";
|
|
39776
|
-
}, Ii = (B) => B.replace(/\uFEFF/g, ""), es = (B, W) => (W = W || pi(B.selection.getRng())[0] || B.selection.getNode(), En(W) ?
|
|
39776
|
+
}, Ii = (B) => B.replace(/\uFEFF/g, ""), es = (B, W) => (W = W || pi(B.selection.getRng())[0] || B.selection.getNode(), En(W) ? It.from(B.dom.select("a[href]", W)[0]) : It.from(B.dom.getParent(W, "a[href]"))), wa = (B, W) => es(B, W).isSome(), js = (B, W) => {
|
|
39777
39777
|
const te = W.fold(() => B.getContent({ format: "text" }), (xe) => xe.innerText || xe.textContent || "");
|
|
39778
39778
|
return Ii(te);
|
|
39779
39779
|
}, pi = (B) => wo(B, Ts), lu = (B) => yc.grep(B, Ts), Is = (B) => lu(B).length > 0, ad = (B) => pi(B).length > 0, Ke = (B) => {
|
|
@@ -39795,7 +39795,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39795
39795
|
const xe = go(te.rel, te.target === "_blank");
|
|
39796
39796
|
te.rel = xe || null;
|
|
39797
39797
|
}
|
|
39798
|
-
return
|
|
39798
|
+
return It.from(te.target).isNone() && Ws(B) === !1 && (te.target = rt(B)), te.href = Vr(te.href, Fe(B)), te;
|
|
39799
39799
|
}, Ca = (B, W, te, xe) => {
|
|
39800
39800
|
te.each((Ve) => {
|
|
39801
39801
|
iu(W, "innerText") ? W.innerText = Ve : W.textContent = Ve;
|
|
@@ -39824,7 +39824,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39824
39824
|
const W = B.selection.getNode();
|
|
39825
39825
|
En(W) ? id(B, W) : uu(B), B.focus();
|
|
39826
39826
|
});
|
|
39827
|
-
},
|
|
39827
|
+
}, Mt = (B) => {
|
|
39828
39828
|
const {
|
|
39829
39829
|
class: W,
|
|
39830
39830
|
href: te,
|
|
@@ -39840,7 +39840,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39840
39840
|
target: Ve.getOrNull(),
|
|
39841
39841
|
text: Ot.getOrNull(),
|
|
39842
39842
|
title: qn.getOrNull()
|
|
39843
|
-
}, (po, Wn) =>
|
|
39843
|
+
}, (po, Wn) => mt(po) === !1);
|
|
39844
39844
|
}, fl = (B, W) => {
|
|
39845
39845
|
const te = B.options.get, xe = {
|
|
39846
39846
|
allow_html_data_urls: te("allow_html_data_urls"),
|
|
@@ -39853,7 +39853,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39853
39853
|
};
|
|
39854
39854
|
}, Kf = (B, W, te) => {
|
|
39855
39855
|
const xe = fl(B, te);
|
|
39856
|
-
B.hasPlugin("rtc", !0) ? B.execCommand("createlink", !1,
|
|
39856
|
+
B.hasPlugin("rtc", !0) ? B.execCommand("createlink", !1, Mt(xe)) : Fa(B, W, xe);
|
|
39857
39857
|
}, gl = (B) => {
|
|
39858
39858
|
B.hasPlugin("rtc", !0) ? B.execCommand("unlink") : ro(B);
|
|
39859
39859
|
}, id = (B, W) => {
|
|
@@ -39881,24 +39881,24 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39881
39881
|
}
|
|
39882
39882
|
},
|
|
39883
39883
|
text: Ot ? B : qn.text
|
|
39884
|
-
})) :
|
|
39885
|
-
}, ld = (B, W) => W === "link" ? B.link : W === "anchor" ? B.anchor :
|
|
39884
|
+
})) : It.none();
|
|
39885
|
+
}, ld = (B, W) => W === "link" ? B.link : W === "anchor" ? B.anchor : It.none(), wc = {
|
|
39886
39886
|
init: (B, W) => {
|
|
39887
39887
|
const te = {
|
|
39888
39888
|
text: B.text,
|
|
39889
39889
|
title: B.title
|
|
39890
39890
|
}, xe = (Wn) => {
|
|
39891
39891
|
var No;
|
|
39892
|
-
return Ce(te.title.length <= 0,
|
|
39892
|
+
return Ce(te.title.length <= 0, It.from((No = Wn.meta) === null || No === void 0 ? void 0 : No.title).getOr(""));
|
|
39893
39893
|
}, Ve = (Wn) => {
|
|
39894
39894
|
var No;
|
|
39895
|
-
return Ce(te.text.length <= 0,
|
|
39895
|
+
return Ce(te.text.length <= 0, It.from((No = Wn.meta) === null || No === void 0 ? void 0 : No.text).getOr(Wn.value));
|
|
39896
39896
|
}, Ot = (Wn) => {
|
|
39897
39897
|
const No = Ve(Wn.url), wn = xe(Wn.url);
|
|
39898
|
-
return No.isSome() || wn.isSome() ?
|
|
39898
|
+
return No.isSome() || wn.isSome() ? It.some({
|
|
39899
39899
|
...No.map((Vo) => ({ text: Vo })).getOr({}),
|
|
39900
39900
|
...wn.map((Vo) => ({ title: Vo })).getOr({})
|
|
39901
|
-
}) :
|
|
39901
|
+
}) : It.none();
|
|
39902
39902
|
}, qn = (Wn, No) => {
|
|
39903
39903
|
const wn = ld(W, No).getOr([]);
|
|
39904
39904
|
return xc(te.text, No, wn, Wn);
|
|
@@ -39908,7 +39908,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39908
39908
|
return wn === "url" ? Ot(Wn()) : Eo([
|
|
39909
39909
|
"anchor",
|
|
39910
39910
|
"link"
|
|
39911
|
-
], wn) ? qn(Wn(), wn) : ((wn === "text" || wn === "title") && (te[wn] = Wn()[wn]),
|
|
39911
|
+
], wn) ? qn(Wn(), wn) : ((wn === "text" || wn === "title") && (te[wn] = Wn()[wn]), It.none());
|
|
39912
39912
|
} };
|
|
39913
39913
|
},
|
|
39914
39914
|
getDelta: xc
|
|
@@ -39923,22 +39923,22 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39923
39923
|
});
|
|
39924
39924
|
}, Cc = (B) => {
|
|
39925
39925
|
const W = B.href;
|
|
39926
|
-
return W.indexOf("@") > 0 && W.indexOf("/") === -1 && W.indexOf("mailto:") === -1 ?
|
|
39926
|
+
return W.indexOf("@") > 0 && W.indexOf("/") === -1 && W.indexOf("mailto:") === -1 ? It.some({
|
|
39927
39927
|
message: "The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",
|
|
39928
39928
|
preprocess: (xe) => ({
|
|
39929
39929
|
...xe,
|
|
39930
39930
|
href: "mailto:" + W
|
|
39931
39931
|
})
|
|
39932
|
-
}) :
|
|
39932
|
+
}) : It.none();
|
|
39933
39933
|
}, zp = (B, W) => (te) => {
|
|
39934
39934
|
const xe = te.href;
|
|
39935
|
-
return B === 1 && !cu(xe) || B === 0 && /^\s*www(\.|\d\.)/i.test(xe) ?
|
|
39935
|
+
return B === 1 && !cu(xe) || B === 0 && /^\s*www(\.|\d\.)/i.test(xe) ? It.some({
|
|
39936
39936
|
message: `The URL you entered seems to be an external link. Do you want to add the required ${W}:// prefix?`,
|
|
39937
39937
|
preprocess: (Ot) => ({
|
|
39938
39938
|
...Ot,
|
|
39939
39939
|
href: W + "://" + xe
|
|
39940
39940
|
})
|
|
39941
|
-
}) :
|
|
39941
|
+
}) : It.none();
|
|
39942
39942
|
}, du = { preprocess: (B, W) => Et([
|
|
39943
39943
|
Cc,
|
|
39944
39944
|
zp(Fe(B), mo(B))
|
|
@@ -39954,23 +39954,23 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39954
39954
|
value: "#" + Ve
|
|
39955
39955
|
}] : [];
|
|
39956
39956
|
});
|
|
39957
|
-
return te.length > 0 ?
|
|
39957
|
+
return te.length > 0 ? It.some([{
|
|
39958
39958
|
text: "None",
|
|
39959
39959
|
value: ""
|
|
39960
|
-
}].concat(te)) :
|
|
39960
|
+
}].concat(te)) : It.none();
|
|
39961
39961
|
} }, bl = { getClasses: (B) => {
|
|
39962
39962
|
const W = bc(B);
|
|
39963
|
-
return W.length > 0 ? vt.sanitize(W) :
|
|
39963
|
+
return W.length > 0 ? vt.sanitize(W) : It.none();
|
|
39964
39964
|
} }, pm = (B) => {
|
|
39965
39965
|
try {
|
|
39966
|
-
return
|
|
39966
|
+
return It.some(JSON.parse(B));
|
|
39967
39967
|
} catch {
|
|
39968
|
-
return
|
|
39968
|
+
return It.none();
|
|
39969
39969
|
}
|
|
39970
39970
|
}, Zf = { getLinks: (B) => {
|
|
39971
39971
|
const W = (xe) => B.convertURL(xe.value || xe.url || "", "href"), te = au(B);
|
|
39972
39972
|
return new Promise((xe) => {
|
|
39973
|
-
_e(te) ? fetch(te).then((Ve) => Ve.ok ? Ve.text().then(pm) : Promise.reject()).then(xe, () => xe(
|
|
39973
|
+
_e(te) ? fetch(te).then((Ve) => Ve.ok ? Ve.text().then(pm) : Promise.reject()).then(xe, () => xe(It.none())) : jo(te) ? te((Ve) => xe(It.some(Ve))) : xe(It.from(te));
|
|
39974
39974
|
}).then((xe) => xe.bind(vt.sanitizeWith(W)).map((Ve) => Ve.length > 0 ? [{
|
|
39975
39975
|
text: "None",
|
|
39976
39976
|
value: ""
|
|
@@ -39981,7 +39981,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39981
39981
|
const xe = uo(W, "_blank"), Ve = Xe(B) === !1, Ot = (po) => go(vt.getValue(po), xe);
|
|
39982
39982
|
return (Ve ? vt.sanitizeWith(Ot) : vt.sanitize)(te);
|
|
39983
39983
|
}
|
|
39984
|
-
return
|
|
39984
|
+
return It.none();
|
|
39985
39985
|
} }, bm = [
|
|
39986
39986
|
{
|
|
39987
39987
|
text: "Current window",
|
|
@@ -39993,12 +39993,12 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
39993
39993
|
}
|
|
39994
39994
|
], As = { getTargets: (B) => {
|
|
39995
39995
|
const W = Ws(B);
|
|
39996
|
-
return Oe(W) ? vt.sanitize(W).orThunk(() =>
|
|
39996
|
+
return Oe(W) ? vt.sanitize(W).orThunk(() => It.some(bm)) : W === !1 ? It.none() : It.some(bm);
|
|
39997
39997
|
} }, Go = (B, W, te) => {
|
|
39998
39998
|
const xe = B.getAttrib(W, te);
|
|
39999
|
-
return xe !== null && xe.length > 0 ?
|
|
39999
|
+
return xe !== null && xe.length > 0 ? It.some(xe) : It.none();
|
|
40000
40000
|
}, _c = (B, W) => {
|
|
40001
|
-
const te = B.dom, Ve = Ke(B) ?
|
|
40001
|
+
const te = B.dom, Ve = Ke(B) ? It.some(js(B.selection, W)) : It.none(), Ot = W.bind((wn) => It.from(te.getAttrib(wn, "href"))), qn = W.bind((wn) => It.from(te.getAttrib(wn, "target"))), po = W.bind((wn) => Go(te, wn, "rel")), Wn = W.bind((wn) => Go(te, wn, "class")), No = W.bind((wn) => Go(te, wn, "title"));
|
|
40002
40002
|
return {
|
|
40003
40003
|
url: Ot,
|
|
40004
40004
|
text: Ve,
|
|
@@ -40027,7 +40027,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
40027
40027
|
gl(B), te.close();
|
|
40028
40028
|
return;
|
|
40029
40029
|
}
|
|
40030
|
-
const Ve = (po) =>
|
|
40030
|
+
const Ve = (po) => It.from(xe[po]).filter((Wn) => !uo(W.anchor[po], Wn)), Ot = {
|
|
40031
40031
|
href: xe.url.value,
|
|
40032
40032
|
text: Ve("text"),
|
|
40033
40033
|
target: Ve("target"),
|
|
@@ -40074,7 +40074,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
40074
40074
|
name: "title",
|
|
40075
40075
|
type: "input",
|
|
40076
40076
|
label: "Title"
|
|
40077
|
-
}] : [], qn =
|
|
40077
|
+
}] : [], qn = It.from(rt(te)), po = Fo(B, qn), Wn = B.catalogs, No = wc.init(po, Wn);
|
|
40078
40078
|
return {
|
|
40079
40079
|
title: "Insert/Edit Link",
|
|
40080
40080
|
size: "normal",
|
|
@@ -40231,7 +40231,7 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
40231
40231
|
const po = js(B.selection, Ot);
|
|
40232
40232
|
return Ce(po.length === 0, Ve);
|
|
40233
40233
|
} else
|
|
40234
|
-
return
|
|
40234
|
+
return It.none();
|
|
40235
40235
|
};
|
|
40236
40236
|
B.ui.registry.addContextForm("quicklink", {
|
|
40237
40237
|
launch: {
|
|
@@ -40261,10 +40261,10 @@ The conflicting element is` + (wn(E.element) ? " " : " not ") + "already in the
|
|
|
40261
40261
|
}, {
|
|
40262
40262
|
href: Ot,
|
|
40263
40263
|
text: qn,
|
|
40264
|
-
title:
|
|
40265
|
-
rel:
|
|
40266
|
-
target:
|
|
40267
|
-
class:
|
|
40264
|
+
title: It.none(),
|
|
40265
|
+
rel: It.none(),
|
|
40266
|
+
target: It.none(),
|
|
40267
|
+
class: It.none()
|
|
40268
40268
|
}), W(B), Ve.hide();
|
|
40269
40269
|
}
|
|
40270
40270
|
},
|
|
@@ -40532,13 +40532,13 @@ function wY(O, ee, G, be, oe, U) {
|
|
|
40532
40532
|
onCancelDelete: U.closeDeleteModal
|
|
40533
40533
|
}, null, 8, ["isOpen", "onConfirmDelete", "onCancelDelete"]),
|
|
40534
40534
|
N("div", {
|
|
40535
|
-
class:
|
|
40535
|
+
class: jt([{
|
|
40536
40536
|
"border-red-500 dark:border-red-500": oe.error_message_data !== "",
|
|
40537
40537
|
"border-gray-200 dark:border-gray-700": oe.error_message_data == ""
|
|
40538
40538
|
}, "w-full p-4 bg-white border rounded-lg shadow dark:bg-gray-800"])
|
|
40539
40539
|
}, [
|
|
40540
40540
|
N("label", {
|
|
40541
|
-
class:
|
|
40541
|
+
class: jt({
|
|
40542
40542
|
"gl-label-form": oe.error_message_data == "",
|
|
40543
40543
|
"gl-label-form-invalid": oe.error_message_data !== "",
|
|
40544
40544
|
required: G.is_required
|
|
@@ -40608,7 +40608,7 @@ function wY(O, ee, G, be, oe, U) {
|
|
|
40608
40608
|
}, null, 8, vY),
|
|
40609
40609
|
G.is_enable_delete ? (se(), ie("i", {
|
|
40610
40610
|
key: 0,
|
|
40611
|
-
onClick: (
|
|
40611
|
+
onClick: (mt) => {
|
|
40612
40612
|
oe.media_id = J.id, oe.open_delete_modal = !0;
|
|
40613
40613
|
},
|
|
40614
40614
|
class: "text-lg text-red-600 cursor-pointer dark:text-red-400 fas fa-x"
|
|
@@ -40669,7 +40669,7 @@ function EY(O, ee, G, be, oe, U) {
|
|
|
40669
40669
|
}, null, 8, SY),
|
|
40670
40670
|
N("label", {
|
|
40671
40671
|
for: _e + "_" + G.field_name,
|
|
40672
|
-
class:
|
|
40672
|
+
class: jt([{
|
|
40673
40673
|
"border md:!rounded-s-lg": J === 0,
|
|
40674
40674
|
"border md:!rounded-e-lg": J === oe.locals.length - 1,
|
|
40675
40675
|
"border-t border-b": J !== 0 && J !== oe.locals.length - 1
|
|
@@ -40693,7 +40693,7 @@ const dse = /* @__PURE__ */ Es(CY, [["render", EY]]), TY = { class: "bg-white bo
|
|
|
40693
40693
|
setup(O) {
|
|
40694
40694
|
const ee = O, G = La(() => ee.class), be = La(() => ee.body_class);
|
|
40695
40695
|
return (oe, U) => (se(), ie("div", {
|
|
40696
|
-
class:
|
|
40696
|
+
class: jt(["flex flex-col gap-9", G.value])
|
|
40697
40697
|
}, [
|
|
40698
40698
|
N("div", TY, [
|
|
40699
40699
|
N("div", AY, [
|
|
@@ -40703,7 +40703,7 @@ const dse = /* @__PURE__ */ Es(CY, [["render", EY]]), TY = { class: "bg-white bo
|
|
|
40703
40703
|
]),
|
|
40704
40704
|
oe.$slots.body ? (se(), ie("div", {
|
|
40705
40705
|
key: 0,
|
|
40706
|
-
class:
|
|
40706
|
+
class: jt(["p-6", be.value])
|
|
40707
40707
|
}, [
|
|
40708
40708
|
ul(oe.$slots, "body")
|
|
40709
40709
|
], 2)) : Je("", !0)
|
|
@@ -40792,19 +40792,19 @@ const dse = /* @__PURE__ */ Es(CY, [["render", EY]]), TY = { class: "bg-white bo
|
|
|
40792
40792
|
},
|
|
40793
40793
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
40794
40794
|
setup(O, { emit: ee }) {
|
|
40795
|
-
const G = O, be = ee, oe = Do(null), U = Do([]), _e = Do([]), J = Do(0), Oe = Do(!1),
|
|
40795
|
+
const G = O, be = ee, oe = Do(null), U = Do([]), _e = Do([]), J = Do(0), Oe = Do(!1), mt = Do(""), Rt = Do("");
|
|
40796
40796
|
fm(() => {
|
|
40797
|
-
|
|
40797
|
+
Rt.value = ko(), G.show || (document.body.addEventListener("click", (Ce) => {
|
|
40798
40798
|
Eo(Ce);
|
|
40799
40799
|
}), document.addEventListener("keypress", (Ce) => {
|
|
40800
40800
|
Ce.key === "Enter" && Ce.target.form && Ce.preventDefault();
|
|
40801
40801
|
}));
|
|
40802
40802
|
});
|
|
40803
40803
|
const xn = La(() => Qe()), eo = La(() => Ae()), jo = La(() => {
|
|
40804
|
-
const Ce = [], w = new RegExp(
|
|
40804
|
+
const Ce = [], w = new RegExp(mt.value, "ig");
|
|
40805
40805
|
for (const an of xn.value) {
|
|
40806
40806
|
const Fe = String(an.name);
|
|
40807
|
-
(
|
|
40807
|
+
(mt.value.length < 1 || Fe.match(w)) && Ce.length < G.maxItem && Ce.push(an);
|
|
40808
40808
|
}
|
|
40809
40809
|
return Ce;
|
|
40810
40810
|
});
|
|
@@ -40837,7 +40837,7 @@ const dse = /* @__PURE__ */ Es(CY, [["render", EY]]), TY = { class: "bg-white bo
|
|
|
40837
40837
|
function zs(Ce) {
|
|
40838
40838
|
return Ce.every((w) => typeof w == "object" && w !== null);
|
|
40839
40839
|
}
|
|
40840
|
-
function
|
|
40840
|
+
function It(Ce) {
|
|
40841
40841
|
return U.value.findIndex((w) => w.id === Ce) !== -1;
|
|
40842
40842
|
}
|
|
40843
40843
|
function de() {
|
|
@@ -40851,14 +40851,14 @@ const dse = /* @__PURE__ */ Es(CY, [["render", EY]]), TY = { class: "bg-white bo
|
|
|
40851
40851
|
w !== -1 && U.value.splice(w, 1), _e.value = U.value.map((an) => an.id), be("update:modelValue", _e.value), be("selected", U.value), be("selectionChanged", U.value);
|
|
40852
40852
|
}
|
|
40853
40853
|
function Eo(Ce) {
|
|
40854
|
-
Ce.target.id != G.field_name + "search" +
|
|
40854
|
+
Ce.target.id != G.field_name + "search" + Rt.value && Ce.target.id != G.field_name && !Ce.target.classList.contains("showOptions") && (kn(), J.value = 0);
|
|
40855
40855
|
}
|
|
40856
40856
|
function Q(Ce) {
|
|
40857
|
-
const w = `${Ce}${
|
|
40857
|
+
const w = `${Ce}${Rt.value}`, an = document.getElementById(w);
|
|
40858
40858
|
an && an.scrollIntoView();
|
|
40859
40859
|
}
|
|
40860
40860
|
function rn(Ce) {
|
|
40861
|
-
const w = `${Ce}${
|
|
40861
|
+
const w = `${Ce}${Rt.value}`, an = document.getElementById(w);
|
|
40862
40862
|
an && an.click();
|
|
40863
40863
|
}
|
|
40864
40864
|
function To(Ce) {
|
|
@@ -40895,24 +40895,24 @@ const dse = /* @__PURE__ */ Es(CY, [["render", EY]]), TY = { class: "bg-white bo
|
|
|
40895
40895
|
w !== -1 ? U.value.splice(w, 1) : U.value.push(Ce), console.log("selectOption selected", U.value), Oe.value = !1, _e.value = U.value.map((an) => an.id), be("update:modelValue", _e.value), be("selected", U.value), be("selectionChanged", U.value);
|
|
40896
40896
|
}
|
|
40897
40897
|
function uo() {
|
|
40898
|
-
G.show || (
|
|
40898
|
+
G.show || (mt.value = "", Oe.value = !0, Kq(() => {
|
|
40899
40899
|
var Ce = document.getElementById(
|
|
40900
|
-
`${G.field_name}search${
|
|
40900
|
+
`${G.field_name}search${Rt.value}`
|
|
40901
40901
|
);
|
|
40902
40902
|
Ce && Ce.focus();
|
|
40903
40903
|
}));
|
|
40904
40904
|
}
|
|
40905
40905
|
function kn() {
|
|
40906
|
-
|
|
40906
|
+
mt.value = "", be("selected", U.value), Oe.value = !1;
|
|
40907
40907
|
}
|
|
40908
|
-
return kA(
|
|
40908
|
+
return kA(mt, () => {
|
|
40909
40909
|
jo.value.length === 0 && (U.value = []);
|
|
40910
40910
|
}), kA(U, (Ce) => {
|
|
40911
40911
|
Yo(U.value) && (_e.value = U.value.map((w) => w.id), be("update:modelValue", _e.value));
|
|
40912
40912
|
}), (Ce, w) => (se(), ie(Ln, null, [
|
|
40913
40913
|
O.show ? (se(), ie("div", {
|
|
40914
40914
|
key: 0,
|
|
40915
|
-
class:
|
|
40915
|
+
class: jt(O.field_name)
|
|
40916
40916
|
}, [
|
|
40917
40917
|
N("h3", DY, nt(O.label_name), 1),
|
|
40918
40918
|
N("p", NY, [
|
|
@@ -40922,7 +40922,7 @@ const dse = /* @__PURE__ */ Es(CY, [["render", EY]]), TY = { class: "bg-white bo
|
|
|
40922
40922
|
], 2)) : Je("", !0),
|
|
40923
40923
|
O.show ? Je("", !0) : (se(), ie("div", {
|
|
40924
40924
|
key: 1,
|
|
40925
|
-
class:
|
|
40925
|
+
class: jt(O.field_name)
|
|
40926
40926
|
}, [
|
|
40927
40927
|
(se(!0), ie(Ln, null, ps(_e.value, (an, Fe) => (se(), ie("input", {
|
|
40928
40928
|
type: "hidden",
|
|
@@ -40932,7 +40932,7 @@ const dse = /* @__PURE__ */ Es(CY, [["render", EY]]), TY = { class: "bg-white bo
|
|
|
40932
40932
|
}, null, 8, BY))), 128)),
|
|
40933
40933
|
O.options ? (se(), ie("div", RY, [
|
|
40934
40934
|
N("label", {
|
|
40935
|
-
class:
|
|
40935
|
+
class: jt({
|
|
40936
40936
|
"gl-label-form": O.error_message == "",
|
|
40937
40937
|
"gl-label-form-invalid": O.error_message !== "",
|
|
40938
40938
|
required: O.is_required
|
|
@@ -40971,7 +40971,7 @@ const dse = /* @__PURE__ */ Es(CY, [["render", EY]]), TY = { class: "bg-white bo
|
|
|
40971
40971
|
]))), 128))
|
|
40972
40972
|
]),
|
|
40973
40973
|
N("i", {
|
|
40974
|
-
class:
|
|
40974
|
+
class: jt([Oe.value ? "fa-angle-up" : "fa-angle-down", "absolute text-xl text-gray-500 cursor-pointer fas right-2 hover:text-gray-700"]),
|
|
40975
40975
|
style: { top: "11px" }
|
|
40976
40976
|
}, null, 2)
|
|
40977
40977
|
]),
|
|
@@ -40982,29 +40982,29 @@ const dse = /* @__PURE__ */ Es(CY, [["render", EY]]), TY = { class: "bg-white bo
|
|
|
40982
40982
|
zY,
|
|
40983
40983
|
kr(N("input", {
|
|
40984
40984
|
type: "search",
|
|
40985
|
-
"onUpdate:modelValue": w[1] || (w[1] = (an) =>
|
|
40985
|
+
"onUpdate:modelValue": w[1] || (w[1] = (an) => mt.value = an),
|
|
40986
40986
|
ref: oe.value,
|
|
40987
|
-
id: `${O.field_name}search${
|
|
40987
|
+
id: `${O.field_name}search${Rt.value}`,
|
|
40988
40988
|
onKeydown: xa,
|
|
40989
40989
|
onBlur: w[2] || (w[2] = (an) => kn()),
|
|
40990
40990
|
autocomplete: "off",
|
|
40991
40991
|
class: "block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
40992
40992
|
placeholder: "Search ..."
|
|
40993
40993
|
}, null, 40, WY), [
|
|
40994
|
-
[sd,
|
|
40994
|
+
[sd, mt.value]
|
|
40995
40995
|
])
|
|
40996
40996
|
])
|
|
40997
40997
|
]),
|
|
40998
40998
|
N("div", jY, [
|
|
40999
40999
|
(se(!0), ie(Ln, null, ps(jo.value, (an, Fe) => (se(), ie("div", {
|
|
41000
|
-
class:
|
|
41000
|
+
class: jt([
|
|
41001
41001
|
"block px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",
|
|
41002
|
-
Fe + 1 == J.value ||
|
|
41002
|
+
Fe + 1 == J.value || It(an.id) ? "bg-gray-100 dark:bg-gray-600" : ""
|
|
41003
41003
|
]),
|
|
41004
41004
|
onClick: (hs) => Et(an),
|
|
41005
41005
|
onMousedown: (hs) => Et(an),
|
|
41006
41006
|
key: Fe,
|
|
41007
|
-
id: `${Fe + 1}${
|
|
41007
|
+
id: `${Fe + 1}${Rt.value}`
|
|
41008
41008
|
}, nt(an.name || an.id || "-"), 43, GY))), 128))
|
|
41009
41009
|
])
|
|
41010
41010
|
], 512), [
|
|
@@ -41092,7 +41092,7 @@ function YY(O, ee, G, be, oe, U) {
|
|
|
41092
41092
|
return G.is_loading ? (se(), Fy(bL("button"), {
|
|
41093
41093
|
key: 1,
|
|
41094
41094
|
disabled: "",
|
|
41095
|
-
class:
|
|
41095
|
+
class: jt(`flex items-center gap-2 focus:outline-none text-sm px-2 py-2 me-2 font-medium rounded-lg ${U.buttonTypeClass}`)
|
|
41096
41096
|
}, {
|
|
41097
41097
|
default: yL(() => [
|
|
41098
41098
|
KY,
|
|
@@ -41110,7 +41110,7 @@ function YY(O, ee, G, be, oe, U) {
|
|
|
41110
41110
|
default: yL(() => [
|
|
41111
41111
|
G.icon ? (se(), ie("i", {
|
|
41112
41112
|
key: 0,
|
|
41113
|
-
class:
|
|
41113
|
+
class: jt([G.icon, "text-base"])
|
|
41114
41114
|
}, null, 2)) : Je("", !0),
|
|
41115
41115
|
ul(O.$slots, "default")
|
|
41116
41116
|
]),
|
|
@@ -41189,7 +41189,7 @@ const gse = /* @__PURE__ */ Es(qY, [["render", YY]]), XY = { class: "font-bold p
|
|
|
41189
41189
|
}), ee({ focus: () => U.value.focus() }), (J, Oe) => (se(), ie(Ln, null, [
|
|
41190
41190
|
O.show ? (se(), ie("div", {
|
|
41191
41191
|
key: 0,
|
|
41192
|
-
class:
|
|
41192
|
+
class: jt(O.field_name)
|
|
41193
41193
|
}, [
|
|
41194
41194
|
N("h3", XY, nt(O.label_name), 1),
|
|
41195
41195
|
kr(N("input", {
|
|
@@ -41199,7 +41199,7 @@ const gse = /* @__PURE__ */ Es(qY, [["render", YY]]), XY = { class: "font-bold p
|
|
|
41199
41199
|
id: O.field_name + "_i18n",
|
|
41200
41200
|
ref_key: "input_translate",
|
|
41201
41201
|
ref: _e,
|
|
41202
|
-
"onUpdate:modelValue": Oe[0] || (Oe[0] = (
|
|
41202
|
+
"onUpdate:modelValue": Oe[0] || (Oe[0] = (mt) => J.inputTranslateValue = mt)
|
|
41203
41203
|
}, null, 8, ZY), [
|
|
41204
41204
|
[sd, J.inputTranslateValue]
|
|
41205
41205
|
]),
|
|
@@ -41211,10 +41211,10 @@ const gse = /* @__PURE__ */ Es(qY, [["render", YY]]), XY = { class: "font-bold p
|
|
|
41211
41211
|
], 2)) : Je("", !0),
|
|
41212
41212
|
O.show ? Je("", !0) : (se(), ie("div", {
|
|
41213
41213
|
key: 1,
|
|
41214
|
-
class:
|
|
41214
|
+
class: jt(["mb-4", O.field_name])
|
|
41215
41215
|
}, [
|
|
41216
41216
|
N("label", {
|
|
41217
|
-
class:
|
|
41217
|
+
class: jt({
|
|
41218
41218
|
"gl-label-translation-form": O.error_message == "",
|
|
41219
41219
|
"gl-label-translation-form-invalid": O.error_message !== "",
|
|
41220
41220
|
required: O.is_required
|
|
@@ -41228,7 +41228,7 @@ const gse = /* @__PURE__ */ Es(qY, [["render", YY]]), XY = { class: "font-bold p
|
|
|
41228
41228
|
"data-i18n": "true",
|
|
41229
41229
|
name: O.field_name + "_i18n",
|
|
41230
41230
|
id: O.field_name + "_i18n",
|
|
41231
|
-
onInput: Oe[1] || (Oe[1] = (
|
|
41231
|
+
onInput: Oe[1] || (Oe[1] = (mt) => J.$emit("update:modelValueTranslate", mt.target.value)),
|
|
41232
41232
|
ref_key: "input_translate",
|
|
41233
41233
|
ref: _e
|
|
41234
41234
|
}, null, 40, nX),
|
|
@@ -41236,13 +41236,13 @@ const gse = /* @__PURE__ */ Es(qY, [["render", YY]]), XY = { class: "font-bold p
|
|
|
41236
41236
|
required: O.is_required,
|
|
41237
41237
|
name: O.field_name,
|
|
41238
41238
|
id: O.field_name,
|
|
41239
|
-
class:
|
|
41239
|
+
class: jt({
|
|
41240
41240
|
" gl-textarea-form form-input-translation mt-4 ": O.error_message == "",
|
|
41241
41241
|
" gl-textarea-form-invalid form-input-translation mt-4 ": O.error_message !== ""
|
|
41242
41242
|
}),
|
|
41243
41243
|
type: O.type,
|
|
41244
|
-
onInput: Oe[2] || (Oe[2] = (
|
|
41245
|
-
onKeydown: Oe[3] || (Oe[3] = (
|
|
41244
|
+
onInput: Oe[2] || (Oe[2] = (mt) => J.$emit("update:modelValue", mt.target.value)),
|
|
41245
|
+
onKeydown: Oe[3] || (Oe[3] = (mt) => J.$emit("keydown", mt)),
|
|
41246
41246
|
ref_key: "input",
|
|
41247
41247
|
ref: U,
|
|
41248
41248
|
rows: "4"
|
|
@@ -41329,7 +41329,7 @@ const gse = /* @__PURE__ */ Es(qY, [["render", YY]]), XY = { class: "font-bold p
|
|
|
41329
41329
|
}), ee({ focus: () => U.value.focus() }), (J, Oe) => (se(), ie(Ln, null, [
|
|
41330
41330
|
O.show ? (se(), ie("div", {
|
|
41331
41331
|
key: 0,
|
|
41332
|
-
class:
|
|
41332
|
+
class: jt(O.field_name)
|
|
41333
41333
|
}, [
|
|
41334
41334
|
N("h3", aX, nt(O.label_name), 1),
|
|
41335
41335
|
kr(N("input", {
|
|
@@ -41339,7 +41339,7 @@ const gse = /* @__PURE__ */ Es(qY, [["render", YY]]), XY = { class: "font-bold p
|
|
|
41339
41339
|
id: O.field_name + "_i18n",
|
|
41340
41340
|
ref_key: "input_translate",
|
|
41341
41341
|
ref: _e,
|
|
41342
|
-
"onUpdate:modelValue": Oe[0] || (Oe[0] = (
|
|
41342
|
+
"onUpdate:modelValue": Oe[0] || (Oe[0] = (mt) => J.inputTranslateValue = mt)
|
|
41343
41343
|
}, null, 8, iX), [
|
|
41344
41344
|
[sd, J.inputTranslateValue]
|
|
41345
41345
|
]),
|
|
@@ -41351,10 +41351,10 @@ const gse = /* @__PURE__ */ Es(qY, [["render", YY]]), XY = { class: "font-bold p
|
|
|
41351
41351
|
], 2)) : Je("", !0),
|
|
41352
41352
|
O.show ? Je("", !0) : (se(), ie("div", {
|
|
41353
41353
|
key: 1,
|
|
41354
|
-
class:
|
|
41354
|
+
class: jt(["mb-4", O.field_name])
|
|
41355
41355
|
}, [
|
|
41356
41356
|
N("label", {
|
|
41357
|
-
class:
|
|
41357
|
+
class: jt({
|
|
41358
41358
|
"gl-label-translation-form": O.error_message == "",
|
|
41359
41359
|
"gl-label-translation-form-invalid": O.error_message !== "",
|
|
41360
41360
|
required: O.is_required
|
|
@@ -41368,20 +41368,20 @@ const gse = /* @__PURE__ */ Es(qY, [["render", YY]]), XY = { class: "font-bold p
|
|
|
41368
41368
|
"data-i18n": "true",
|
|
41369
41369
|
name: O.field_name + "_i18n",
|
|
41370
41370
|
id: O.field_name + "_i18n",
|
|
41371
|
-
onInput: Oe[1] || (Oe[1] = (
|
|
41371
|
+
onInput: Oe[1] || (Oe[1] = (mt) => J.$emit("update:modelValueTranslate", mt.target.value)),
|
|
41372
41372
|
ref_key: "input_translate",
|
|
41373
41373
|
ref: _e
|
|
41374
41374
|
}, null, 40, mX),
|
|
41375
41375
|
N("textarea", {
|
|
41376
41376
|
name: O.field_name,
|
|
41377
41377
|
id: O.field_name,
|
|
41378
|
-
class:
|
|
41378
|
+
class: jt(["tiny", {
|
|
41379
41379
|
" gl-textarea-form form-input-translation mt-4 ": O.error_message == "",
|
|
41380
41380
|
" gl-textarea-form-invalid form-input-translation mt-4 ": O.error_message !== ""
|
|
41381
41381
|
}]),
|
|
41382
41382
|
type: O.type,
|
|
41383
|
-
onInput: Oe[2] || (Oe[2] = (
|
|
41384
|
-
onKeydown: Oe[3] || (Oe[3] = (
|
|
41383
|
+
onInput: Oe[2] || (Oe[2] = (mt) => J.$emit("update:modelValue", mt.target.value)),
|
|
41384
|
+
onKeydown: Oe[3] || (Oe[3] = (mt) => J.$emit("keydown", mt)),
|
|
41385
41385
|
ref_key: "input",
|
|
41386
41386
|
ref: U,
|
|
41387
41387
|
rows: "4"
|
|
@@ -41464,7 +41464,7 @@ const gse = /* @__PURE__ */ Es(qY, [["render", YY]]), XY = { class: "font-bold p
|
|
|
41464
41464
|
}), ee({ focus: () => U.value.focus() }), (J, Oe) => (se(), ie(Ln, null, [
|
|
41465
41465
|
O.show ? (se(), ie("div", {
|
|
41466
41466
|
key: 0,
|
|
41467
|
-
class:
|
|
41467
|
+
class: jt(O.field_name)
|
|
41468
41468
|
}, [
|
|
41469
41469
|
N("h3", hX, nt(O.label_name), 1),
|
|
41470
41470
|
kr(N("input", {
|
|
@@ -41473,7 +41473,7 @@ const gse = /* @__PURE__ */ Es(qY, [["render", YY]]), XY = { class: "font-bold p
|
|
|
41473
41473
|
name: O.field_name + "_i18n",
|
|
41474
41474
|
id: O.field_name + "_i18n",
|
|
41475
41475
|
ref: "input_translate_s",
|
|
41476
|
-
"onUpdate:modelValue": Oe[0] || (Oe[0] = (
|
|
41476
|
+
"onUpdate:modelValue": Oe[0] || (Oe[0] = (mt) => J.inputTranslateValue = mt)
|
|
41477
41477
|
}, null, 8, bX), [
|
|
41478
41478
|
[sd, J.inputTranslateValue]
|
|
41479
41479
|
]),
|
|
@@ -41485,10 +41485,10 @@ const gse = /* @__PURE__ */ Es(qY, [["render", YY]]), XY = { class: "font-bold p
|
|
|
41485
41485
|
], 2)) : Je("", !0),
|
|
41486
41486
|
O.show ? Je("", !0) : (se(), ie("div", {
|
|
41487
41487
|
key: 1,
|
|
41488
|
-
class:
|
|
41488
|
+
class: jt(["mb-4", O.field_name])
|
|
41489
41489
|
}, [
|
|
41490
41490
|
N("label", {
|
|
41491
|
-
class:
|
|
41491
|
+
class: jt({
|
|
41492
41492
|
"gl-label-translation-form": O.error_message == "",
|
|
41493
41493
|
"gl-label-translation-form-invalid": O.error_message !== "",
|
|
41494
41494
|
required: O.is_required
|
|
@@ -41502,7 +41502,7 @@ const gse = /* @__PURE__ */ Es(qY, [["render", YY]]), XY = { class: "font-bold p
|
|
|
41502
41502
|
"data-i18n": "true",
|
|
41503
41503
|
name: O.field_name + "_i18n",
|
|
41504
41504
|
id: O.field_name + "_i18n",
|
|
41505
|
-
onInput: Oe[1] || (Oe[1] = (
|
|
41505
|
+
onInput: Oe[1] || (Oe[1] = (mt) => J.$emit("update:modelValueTranslate", mt.target.value)),
|
|
41506
41506
|
ref_key: "input_translate",
|
|
41507
41507
|
ref: _e
|
|
41508
41508
|
}, null, 40, CX),
|
|
@@ -41510,13 +41510,13 @@ const gse = /* @__PURE__ */ Es(qY, [["render", YY]]), XY = { class: "font-bold p
|
|
|
41510
41510
|
required: O.is_required,
|
|
41511
41511
|
name: O.field_name,
|
|
41512
41512
|
id: O.field_name,
|
|
41513
|
-
class:
|
|
41513
|
+
class: jt({
|
|
41514
41514
|
" gl-input-form form-input-translation mt-2 ": O.error_message == "",
|
|
41515
41515
|
" gl-input-form-invalid form-input-translation mt-2 ": O.error_message !== ""
|
|
41516
41516
|
}),
|
|
41517
41517
|
type: O.type,
|
|
41518
|
-
onInput: Oe[2] || (Oe[2] = (
|
|
41519
|
-
onKeydown: Oe[3] || (Oe[3] = (
|
|
41518
|
+
onInput: Oe[2] || (Oe[2] = (mt) => J.$emit("update:modelValue", mt.target.value)),
|
|
41519
|
+
onKeydown: Oe[3] || (Oe[3] = (mt) => J.$emit("keydown", mt)),
|
|
41520
41520
|
ref_key: "input",
|
|
41521
41521
|
ref: U
|
|
41522
41522
|
}, null, 42, _X),
|
|
@@ -41586,7 +41586,7 @@ const gse = /* @__PURE__ */ Es(qY, [["render", YY]]), XY = { class: "font-bold p
|
|
|
41586
41586
|
return ee({ focus: () => U.value.focus() }), (J, Oe) => (se(), ie(Ln, null, [
|
|
41587
41587
|
O.show ? (se(), ie("div", {
|
|
41588
41588
|
key: 0,
|
|
41589
|
-
class:
|
|
41589
|
+
class: jt(O.field_name)
|
|
41590
41590
|
}, [
|
|
41591
41591
|
N("h3", EX, nt(O.label_name), 1),
|
|
41592
41592
|
N("p", TX, nt(O.type == "password" ? O.modelValue.replace(/./g, "*") : O.modelValue), 1),
|
|
@@ -41594,10 +41594,10 @@ const gse = /* @__PURE__ */ Es(qY, [["render", YY]]), XY = { class: "font-bold p
|
|
|
41594
41594
|
], 2)) : Je("", !0),
|
|
41595
41595
|
O.show ? Je("", !0) : (se(), ie("div", {
|
|
41596
41596
|
key: 1,
|
|
41597
|
-
class:
|
|
41597
|
+
class: jt(O.field_name)
|
|
41598
41598
|
}, [
|
|
41599
41599
|
N("label", {
|
|
41600
|
-
class:
|
|
41600
|
+
class: jt({
|
|
41601
41601
|
"gl-label-form": O.error_message == "",
|
|
41602
41602
|
"gl-label-form-invalid": O.error_message !== "",
|
|
41603
41603
|
required: O.is_required
|
|
@@ -41608,13 +41608,13 @@ const gse = /* @__PURE__ */ Es(qY, [["render", YY]]), XY = { class: "font-bold p
|
|
|
41608
41608
|
required: O.is_required,
|
|
41609
41609
|
name: O.field_name,
|
|
41610
41610
|
id: O.field_name,
|
|
41611
|
-
class:
|
|
41611
|
+
class: jt({
|
|
41612
41612
|
"gl-input-form": O.error_message == "",
|
|
41613
41613
|
"gl-input-form-invalid": O.error_message !== ""
|
|
41614
41614
|
}),
|
|
41615
41615
|
type: O.type,
|
|
41616
|
-
"onUpdate:modelValue": Oe[0] || (Oe[0] = (
|
|
41617
|
-
onKeydown: Oe[1] || (Oe[1] = (
|
|
41616
|
+
"onUpdate:modelValue": Oe[0] || (Oe[0] = (mt) => _e.value = mt),
|
|
41617
|
+
onKeydown: Oe[1] || (Oe[1] = (mt) => J.$emit("keydown", mt)),
|
|
41618
41618
|
ref_key: "input",
|
|
41619
41619
|
ref: U,
|
|
41620
41620
|
placeholder: O.placeholder
|
|
@@ -41648,10 +41648,10 @@ function HX(O, ee, G, be, oe, U) {
|
|
|
41648
41648
|
class: "flex-auto -mb-px text-center"
|
|
41649
41649
|
}, [
|
|
41650
41650
|
N("a", {
|
|
41651
|
-
class:
|
|
41651
|
+
class: jt([{ "text-slate-600 bg-white dark:bg-meta-4": be.selectedTitle != _e.title, "text-white bg-slate-600 dark:bg-primary": be.selectedTitle === _e.title }, "block px-5 py-3 text-xs font-bold leading-normal rounded shadow-lg hover:text-white tex hover:bg-slate-600 dark:hover:bg-primary dark:text-white tabs_buttons"])
|
|
41652
41652
|
}, [
|
|
41653
41653
|
N("i", {
|
|
41654
|
-
class:
|
|
41654
|
+
class: jt([_e.icon, "mr-1 text-base"])
|
|
41655
41655
|
}, null, 2),
|
|
41656
41656
|
Qn(" " + nt(_e.title), 1)
|
|
41657
41657
|
], 2)
|
|
@@ -41746,8 +41746,8 @@ const xse = /* @__PURE__ */ Es(UX, [["render", WX]]), jX = {
|
|
|
41746
41746
|
const G = (oe) => {
|
|
41747
41747
|
ee.style.cursor = "grabbing";
|
|
41748
41748
|
const U = (J) => {
|
|
41749
|
-
const Oe = J.clientX || J.touches && J.touches[0] && J.touches[0].clientX,
|
|
41750
|
-
Math.abs(
|
|
41749
|
+
const Oe = J.clientX || J.touches && J.touches[0] && J.touches[0].clientX, mt = J.clientY || J.touches && J.touches[0] && J.touches[0].clientY, Rt = Oe - O.initialX, xn = mt - O.initialY;
|
|
41750
|
+
Math.abs(Rt) > Math.abs(xn) ? (J.preventDefault(), Math.abs(Rt) >= 70 && (Rt < 0 ? O.next() : O.prev(), O.initialX = Oe)) : ee.style.cursor = "grab", Math.abs(xn) > Math.abs(Rt) && (ee.style.cursor = "grab");
|
|
41751
41751
|
}, _e = () => {
|
|
41752
41752
|
document.removeEventListener("mousemove", U), document.removeEventListener("touchmove", U), document.removeEventListener("mouseup", _e), document.removeEventListener("touchend", _e), ee.style.cursor = "grab";
|
|
41753
41753
|
};
|
|
@@ -41971,7 +41971,7 @@ const xse = /* @__PURE__ */ Es(UX, [["render", WX]]), jX = {
|
|
|
41971
41971
|
function YZ(O, ee, G, be, oe, U) {
|
|
41972
41972
|
return se(), ie("div", null, [
|
|
41973
41973
|
N("div", {
|
|
41974
|
-
class:
|
|
41974
|
+
class: jt(["", !G.hide_arrow && G.slider_arrows_indicators_position == "arrows_outside_slide" ? "flex" : "relative block"]),
|
|
41975
41975
|
id: "mainSliderContainer_" + O.Random_string
|
|
41976
41976
|
}, [
|
|
41977
41977
|
O.dotsNum > 0 && !G.hide_arrow && G.slider_arrows_indicators_position == "arrows_outside_slider" ? (se(), ie("div", qX, [
|
|
@@ -41986,7 +41986,7 @@ function YZ(O, ee, G, be, oe, U) {
|
|
|
41986
41986
|
])
|
|
41987
41987
|
])) : Je("", !0),
|
|
41988
41988
|
N("div", {
|
|
41989
|
-
class:
|
|
41989
|
+
class: jt(["overflow-hidden", U.sliderContainerAction()]),
|
|
41990
41990
|
id: "sliderContainer_" + O.Random_string
|
|
41991
41991
|
}, [
|
|
41992
41992
|
N("ul", {
|
|
@@ -41995,7 +41995,7 @@ function YZ(O, ee, G, be, oe, U) {
|
|
|
41995
41995
|
}, [
|
|
41996
41996
|
O.dotsNum > 0 && !G.hide_arrow && G.slider_arrows_indicators_position == "arrows_indicators_inside_slider" ? (se(), ie("div", {
|
|
41997
41997
|
key: 0,
|
|
41998
|
-
class:
|
|
41998
|
+
class: jt(["items-center justify-center hidden arrow_button xl:flex xxl:flex md:flex sm:flex", G.direction_property == "rtl" ? "arrow_button_next" : "arrow_button_prev"])
|
|
41999
41999
|
}, [
|
|
42000
42000
|
N("div", oZ, [
|
|
42001
42001
|
N("button", {
|
|
@@ -42010,7 +42010,7 @@ function YZ(O, ee, G, be, oe, U) {
|
|
|
42010
42010
|
ul(O.$slots, "default", {}, void 0, !0),
|
|
42011
42011
|
O.dotsNum > 0 && !G.hide_arrow && G.slider_arrows_indicators_position == "arrows_indicators_inside_slider" ? (se(), ie("div", {
|
|
42012
42012
|
key: 1,
|
|
42013
|
-
class:
|
|
42013
|
+
class: jt(["items-center justify-center hidden xl:flex xxl:flex md:flex sm:flex arrow_button", G.direction_property == "rtl" ? "arrow_button_prev" : "arrow_button_next"])
|
|
42014
42014
|
}, [
|
|
42015
42015
|
N("div", uZ, [
|
|
42016
42016
|
N("button", {
|
|
@@ -42025,22 +42025,22 @@ function YZ(O, ee, G, be, oe, U) {
|
|
|
42025
42025
|
], 8, nZ),
|
|
42026
42026
|
G.slider_arrows_indicators_position != "arrows_indicators_below_slider" ? (se(), ie("div", {
|
|
42027
42027
|
key: 0,
|
|
42028
|
-
class:
|
|
42028
|
+
class: jt(["flex justify-center mb-1 space-x-1", U.sliderIndicatorsAction()])
|
|
42029
42029
|
}, [
|
|
42030
42030
|
(se(!0), ie(Ln, null, ps(O.dotsNum, (_e) => (se(), ie("button", {
|
|
42031
42031
|
role: "button",
|
|
42032
|
-
class:
|
|
42032
|
+
class: jt(["gl-dot", { active: O.currentDot == _e }]),
|
|
42033
42033
|
key: _e,
|
|
42034
42034
|
onClick: (J) => U.setDot(_e)
|
|
42035
42035
|
}, vZ, 10, bZ))), 128))
|
|
42036
42036
|
], 2)) : Je("", !0),
|
|
42037
42037
|
G.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (se(), ie("div", xZ, [
|
|
42038
42038
|
N("div", {
|
|
42039
|
-
class:
|
|
42039
|
+
class: jt(["flex justify-center mb-1 space-x-1", U.sliderIndicatorsAction()])
|
|
42040
42040
|
}, [
|
|
42041
42041
|
(se(!0), ie(Ln, null, ps(O.dotsNum, (_e) => (se(), ie("button", {
|
|
42042
42042
|
role: "button",
|
|
42043
|
-
class:
|
|
42043
|
+
class: jt(["gl-dot", { active: O.currentDot == _e }]),
|
|
42044
42044
|
key: _e,
|
|
42045
42045
|
onClick: (J) => U.setDot(_e)
|
|
42046
42046
|
}, _Z, 10, wZ))), 128))
|
|
@@ -42049,7 +42049,7 @@ function YZ(O, ee, G, be, oe, U) {
|
|
|
42049
42049
|
N("div", kZ, [
|
|
42050
42050
|
N("div", EZ, [
|
|
42051
42051
|
N("button", {
|
|
42052
|
-
class:
|
|
42052
|
+
class: jt(["p-3 rounded-full arrow_button_styles", G.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
42053
42053
|
onClick: ee[3] || (ee[3] = (_e) => U.prev())
|
|
42054
42054
|
}, [
|
|
42055
42055
|
G.direction_property == "ltr" ? (se(), ie("svg", TZ, OZ)) : Je("", !0),
|
|
@@ -42142,7 +42142,7 @@ const wse = /* @__PURE__ */ Es(jX, [["render", YZ], ["__scopeId", "data-v-a94f16
|
|
|
42142
42142
|
{ immediate: !0, deep: !0 }
|
|
42143
42143
|
), (J, Oe) => kr((se(), ie("div", XZ, [
|
|
42144
42144
|
N("div", {
|
|
42145
|
-
class:
|
|
42145
|
+
class: jt(["pointer-events-none relative h-[calc(100%-1rem)] w-auto translate-y-[-50px] transition-all duration-300 ease-in-out min-[576px]:mx-auto min-[576px]:mt-7 min-[576px]:h-[calc(100%-3.5rem)]", O.max_width])
|
|
42146
42146
|
}, [
|
|
42147
42147
|
N("div", ZZ, [
|
|
42148
42148
|
N("div", JZ, [
|
|
@@ -42155,7 +42155,7 @@ const wse = /* @__PURE__ */ Es(jX, [["render", YZ], ["__scopeId", "data-v-a94f16
|
|
|
42155
42155
|
}, tJ)
|
|
42156
42156
|
]),
|
|
42157
42157
|
N("div", {
|
|
42158
|
-
class:
|
|
42158
|
+
class: jt(["relative overflow-y-auto", O.bodyClass])
|
|
42159
42159
|
}, [
|
|
42160
42160
|
ul(J.$slots, "body")
|
|
42161
42161
|
], 2),
|
|
@@ -42233,7 +42233,7 @@ const wse = /* @__PURE__ */ Es(jX, [["render", YZ], ["__scopeId", "data-v-a94f16
|
|
|
42233
42233
|
return (_e, J) => (se(), ie(Ln, null, [
|
|
42234
42234
|
O.show ? (se(), ie("div", {
|
|
42235
42235
|
key: 0,
|
|
42236
|
-
class:
|
|
42236
|
+
class: jt(O.field_name)
|
|
42237
42237
|
}, [
|
|
42238
42238
|
N("div", null, [
|
|
42239
42239
|
N("li", oJ, [
|
|
@@ -42259,7 +42259,7 @@ const wse = /* @__PURE__ */ Es(jX, [["render", YZ], ["__scopeId", "data-v-a94f16
|
|
|
42259
42259
|
], 2)) : Je("", !0),
|
|
42260
42260
|
O.show ? Je("", !0) : (se(), ie("div", {
|
|
42261
42261
|
key: 1,
|
|
42262
|
-
class:
|
|
42262
|
+
class: jt(O.field_name)
|
|
42263
42263
|
}, [
|
|
42264
42264
|
O.has_label_up ? (se(), ie("div", cJ, [
|
|
42265
42265
|
N("label", lJ, nt(O.label_name), 1)
|
|
@@ -42385,17 +42385,17 @@ const wse = /* @__PURE__ */ Es(jX, [["render", YZ], ["__scopeId", "data-v-a94f16
|
|
|
42385
42385
|
},
|
|
42386
42386
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
42387
42387
|
setup(O, { emit: ee }) {
|
|
42388
|
-
const G = O, be = ee, oe = Do(null), U = Do({}), _e = Do(0), J = Do(!1), Oe = Do(""),
|
|
42388
|
+
const G = O, be = ee, oe = Do(null), U = Do({}), _e = Do(0), J = Do(!1), Oe = Do(""), mt = Do("");
|
|
42389
42389
|
fm(() => {
|
|
42390
|
-
|
|
42390
|
+
mt.value = xa(), G.show || (document.body.addEventListener("click", (Qe) => {
|
|
42391
42391
|
Yo(Qe);
|
|
42392
42392
|
}), document.addEventListener("keypress", (Qe) => {
|
|
42393
42393
|
Qe.key === "Enter" && Qe.target.form && Qe.preventDefault();
|
|
42394
42394
|
}));
|
|
42395
42395
|
});
|
|
42396
|
-
const
|
|
42396
|
+
const Rt = La(() => Gt()), xn = La(() => Ri()), eo = La(() => {
|
|
42397
42397
|
const Qe = [], Ae = new RegExp(Oe.value, "ig");
|
|
42398
|
-
for (const Et of
|
|
42398
|
+
for (const Et of Rt.value) {
|
|
42399
42399
|
const uo = String(Et.name);
|
|
42400
42400
|
(Oe.value.length < 1 || uo.match(Ae)) && Qe.length < G.maxItem && Qe.push(Et);
|
|
42401
42401
|
}
|
|
@@ -42428,33 +42428,33 @@ const wse = /* @__PURE__ */ Es(jX, [["render", YZ], ["__scopeId", "data-v-a94f16
|
|
|
42428
42428
|
return Qe !== null && typeof Qe == "object" && Object.keys(Qe).length > 0;
|
|
42429
42429
|
}
|
|
42430
42430
|
function Yo(Qe) {
|
|
42431
|
-
Qe.target.id != G.field_name + "search" +
|
|
42431
|
+
Qe.target.id != G.field_name + "search" + mt.value && Qe.target.id != G.field_name && !Qe.target.classList.contains("showOptions") && (To(), _e.value = 0);
|
|
42432
42432
|
}
|
|
42433
42433
|
function zs(Qe) {
|
|
42434
|
-
const Ae = `${Qe}${
|
|
42434
|
+
const Ae = `${Qe}${mt.value}`, Et = document.getElementById(Ae);
|
|
42435
42435
|
Et && Et.scrollIntoView();
|
|
42436
42436
|
}
|
|
42437
|
-
function
|
|
42438
|
-
const Ae = `${Qe}${
|
|
42437
|
+
function It(Qe) {
|
|
42438
|
+
const Ae = `${Qe}${mt.value}`, Et = document.getElementById(Ae);
|
|
42439
42439
|
Et && Et.click();
|
|
42440
42440
|
}
|
|
42441
42441
|
function de(Qe) {
|
|
42442
|
-
Qe === "ArrowDown" && _e.value < eo.value.length && (_e.value++, zs(_e.value)), Qe === "ArrowUp" && _e.value > 1 && (_e.value--, zs(_e.value)), Qe === "Enter" &&
|
|
42442
|
+
Qe === "ArrowDown" && _e.value < eo.value.length && (_e.value++, zs(_e.value)), Qe === "ArrowUp" && _e.value > 1 && (_e.value--, zs(_e.value)), Qe === "Enter" && It(_e.value);
|
|
42443
42443
|
}
|
|
42444
42444
|
function Gt() {
|
|
42445
42445
|
return G.options.map((Qe, Ae) => typeof Qe == "object" ? Qe : { id: Qe, name: Qe });
|
|
42446
42446
|
}
|
|
42447
42447
|
function Ri() {
|
|
42448
42448
|
if (ko(U.value))
|
|
42449
|
-
return typeof U.value == "object" ?
|
|
42449
|
+
return typeof U.value == "object" ? Rt.value.find(
|
|
42450
42450
|
(Qe) => String(Qe.id) === String(U.value.id)
|
|
42451
|
-
) || {} :
|
|
42451
|
+
) || {} : Rt.value.find(
|
|
42452
42452
|
(Qe) => String(Qe.id) === String(U.value)
|
|
42453
42453
|
) || {};
|
|
42454
42454
|
if (G.modelValue)
|
|
42455
|
-
return typeof G.modelValue == "object" ?
|
|
42455
|
+
return typeof G.modelValue == "object" ? Rt.value.find(
|
|
42456
42456
|
(Qe) => String(Qe.id) === String(G.modelValue.id)
|
|
42457
|
-
) || {} :
|
|
42457
|
+
) || {} : Rt.value.find(
|
|
42458
42458
|
(Qe) => String(Qe.id) === String(G.modelValue)
|
|
42459
42459
|
) || {};
|
|
42460
42460
|
}
|
|
@@ -42464,7 +42464,7 @@ const wse = /* @__PURE__ */ Es(jX, [["render", YZ], ["__scopeId", "data-v-a94f16
|
|
|
42464
42464
|
function Q() {
|
|
42465
42465
|
G.show || (Oe.value = "", J.value = !0, Kq(() => {
|
|
42466
42466
|
var Qe = document.getElementById(
|
|
42467
|
-
`${G.field_name}search${
|
|
42467
|
+
`${G.field_name}search${mt.value}`
|
|
42468
42468
|
);
|
|
42469
42469
|
Qe && Qe.focus();
|
|
42470
42470
|
}));
|
|
@@ -42484,7 +42484,7 @@ const wse = /* @__PURE__ */ Es(jX, [["render", YZ], ["__scopeId", "data-v-a94f16
|
|
|
42484
42484
|
return se(), ie(Ln, null, [
|
|
42485
42485
|
O.show ? (se(), ie("div", {
|
|
42486
42486
|
key: 0,
|
|
42487
|
-
class:
|
|
42487
|
+
class: jt(O.field_name)
|
|
42488
42488
|
}, [
|
|
42489
42489
|
N("h3", hJ, nt(O.label_name), 1),
|
|
42490
42490
|
N("p", bJ, [
|
|
@@ -42494,7 +42494,7 @@ const wse = /* @__PURE__ */ Es(jX, [["render", YZ], ["__scopeId", "data-v-a94f16
|
|
|
42494
42494
|
], 2)) : Je("", !0),
|
|
42495
42495
|
O.show ? Je("", !0) : (se(), ie("div", {
|
|
42496
42496
|
key: 1,
|
|
42497
|
-
class:
|
|
42497
|
+
class: jt(O.field_name)
|
|
42498
42498
|
}, [
|
|
42499
42499
|
N("input", {
|
|
42500
42500
|
type: "hidden",
|
|
@@ -42505,7 +42505,7 @@ const wse = /* @__PURE__ */ Es(jX, [["render", YZ], ["__scopeId", "data-v-a94f16
|
|
|
42505
42505
|
O.options ? (se(), ie("div", wJ, [
|
|
42506
42506
|
O.label_name ? (se(), ie("label", {
|
|
42507
42507
|
key: 0,
|
|
42508
|
-
class:
|
|
42508
|
+
class: jt({
|
|
42509
42509
|
"gl-label-form": O.error_message == "",
|
|
42510
42510
|
"gl-label-form-invalid": O.error_message !== "",
|
|
42511
42511
|
required: O.is_required
|
|
@@ -42514,7 +42514,7 @@ const wse = /* @__PURE__ */ Es(jX, [["render", YZ], ["__scopeId", "data-v-a94f16
|
|
|
42514
42514
|
N("div", CJ, [
|
|
42515
42515
|
N("div", _J, [
|
|
42516
42516
|
N("input", {
|
|
42517
|
-
class:
|
|
42517
|
+
class: jt([{
|
|
42518
42518
|
"gl-input-form": O.error_message == "",
|
|
42519
42519
|
"gl-input-form-invalid": O.error_message !== ""
|
|
42520
42520
|
}, "pl-8 pr-2 showOptions"]),
|
|
@@ -42534,7 +42534,7 @@ const wse = /* @__PURE__ */ Es(jX, [["render", YZ], ["__scopeId", "data-v-a94f16
|
|
|
42534
42534
|
]),
|
|
42535
42535
|
N("i", {
|
|
42536
42536
|
onClick: Ae[2] || (Ae[2] = (Ce) => !J.value && Q()),
|
|
42537
|
-
class:
|
|
42537
|
+
class: jt([J.value ? "fa-angle-up" : "fa-angle-down", "absolute text-xl text-gray-500 cursor-pointer fas right-2 hover:text-gray-700 dark:hover:text-gray-800 showOptions"]),
|
|
42538
42538
|
style: { top: "11px" }
|
|
42539
42539
|
}, null, 2)
|
|
42540
42540
|
]),
|
|
@@ -42547,7 +42547,7 @@ const wse = /* @__PURE__ */ Es(jX, [["render", YZ], ["__scopeId", "data-v-a94f16
|
|
|
42547
42547
|
type: "search",
|
|
42548
42548
|
"onUpdate:modelValue": Ae[3] || (Ae[3] = (Ce) => Oe.value = Ce),
|
|
42549
42549
|
ref: oe.value,
|
|
42550
|
-
id: `${O.field_name}search${
|
|
42550
|
+
id: `${O.field_name}search${mt.value}`,
|
|
42551
42551
|
onKeydown: jo,
|
|
42552
42552
|
onBlur: Ae[4] || (Ae[4] = (Ce) => To()),
|
|
42553
42553
|
autocomplete: "off",
|
|
@@ -42562,11 +42562,11 @@ const wse = /* @__PURE__ */ Es(jX, [["render", YZ], ["__scopeId", "data-v-a94f16
|
|
|
42562
42562
|
(se(!0), ie(Ln, null, ps(eo.value, (Ce, w) => {
|
|
42563
42563
|
var an;
|
|
42564
42564
|
return se(), ie("div", {
|
|
42565
|
-
class:
|
|
42565
|
+
class: jt(["relative px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white", w + 1 == _e.value ? "bg-gray-100 dark:bg-gray-600" : ""]),
|
|
42566
42566
|
onClick: (Fe) => Eo(Ce),
|
|
42567
42567
|
onMousedown: (Fe) => Eo(Ce),
|
|
42568
42568
|
key: w,
|
|
42569
|
-
id: `${w + 1}${
|
|
42569
|
+
id: `${w + 1}${mt.value}`
|
|
42570
42570
|
}, [
|
|
42571
42571
|
N("div", PJ, [
|
|
42572
42572
|
((an = xn.value) == null ? void 0 : an.id) === Ce.id ? (se(), ie("svg", BJ, IJ)) : Je("", !0),
|
|
@@ -42649,7 +42649,7 @@ const wse = /* @__PURE__ */ Es(jX, [["render", YZ], ["__scopeId", "data-v-a94f16
|
|
|
42649
42649
|
return ee({ focus: () => U.value.focus() }), (J, Oe) => (se(), ie(Ln, null, [
|
|
42650
42650
|
O.show ? (se(), ie("div", {
|
|
42651
42651
|
key: 0,
|
|
42652
|
-
class:
|
|
42652
|
+
class: jt(O.field_name)
|
|
42653
42653
|
}, [
|
|
42654
42654
|
N("h3", VJ, nt(O.label_name), 1),
|
|
42655
42655
|
N("p", {
|
|
@@ -42660,10 +42660,10 @@ const wse = /* @__PURE__ */ Es(jX, [["render", YZ], ["__scopeId", "data-v-a94f16
|
|
|
42660
42660
|
], 2)) : Je("", !0),
|
|
42661
42661
|
O.show ? Je("", !0) : (se(), ie("div", {
|
|
42662
42662
|
key: 1,
|
|
42663
|
-
class:
|
|
42663
|
+
class: jt(["mb-4", O.field_name])
|
|
42664
42664
|
}, [
|
|
42665
42665
|
N("label", {
|
|
42666
|
-
class:
|
|
42666
|
+
class: jt({
|
|
42667
42667
|
"gl-label-form": O.error_message == "",
|
|
42668
42668
|
"gl-label-form-invalid": O.error_message !== "",
|
|
42669
42669
|
required: O.is_required
|
|
@@ -42674,13 +42674,13 @@ const wse = /* @__PURE__ */ Es(jX, [["render", YZ], ["__scopeId", "data-v-a94f16
|
|
|
42674
42674
|
required: O.is_required,
|
|
42675
42675
|
name: O.field_name,
|
|
42676
42676
|
id: O.field_name,
|
|
42677
|
-
class:
|
|
42677
|
+
class: jt({
|
|
42678
42678
|
" gl-textarea-form mt-4 ": O.error_message == "",
|
|
42679
42679
|
" gl-textarea-form-invalid mt-4 ": O.error_message !== ""
|
|
42680
42680
|
}),
|
|
42681
42681
|
type: O.type,
|
|
42682
|
-
"onUpdate:modelValue": Oe[0] || (Oe[0] = (
|
|
42683
|
-
onKeydown: Oe[1] || (Oe[1] = (
|
|
42682
|
+
"onUpdate:modelValue": Oe[0] || (Oe[0] = (mt) => _e.value = mt),
|
|
42683
|
+
onKeydown: Oe[1] || (Oe[1] = (mt) => J.$emit("keydown", mt)),
|
|
42684
42684
|
ref_key: "input",
|
|
42685
42685
|
ref: U,
|
|
42686
42686
|
rows: "4",
|
|
@@ -42735,26 +42735,33 @@ const wse = /* @__PURE__ */ Es(jX, [["render", YZ], ["__scopeId", "data-v-a94f16
|
|
|
42735
42735
|
},
|
|
42736
42736
|
emits: ["update:modelValue", "keydown"],
|
|
42737
42737
|
setup(O, { expose: ee, emit: G }) {
|
|
42738
|
-
const be = O, oe = G, U = Do(null)
|
|
42739
|
-
|
|
42740
|
-
tinymce.init({
|
|
42738
|
+
const be = O, oe = G, U = Do(null), _e = async () => {
|
|
42739
|
+
await nextTick(), tinymce.init({
|
|
42741
42740
|
selector: "#" + be.field_name,
|
|
42742
42741
|
width: "100%",
|
|
42743
|
-
height: 300
|
|
42744
|
-
|
|
42742
|
+
height: 300,
|
|
42743
|
+
setup(Oe) {
|
|
42744
|
+
Oe.on("Change", () => {
|
|
42745
|
+
oe("update:modelValue", Oe.getContent());
|
|
42746
|
+
});
|
|
42747
|
+
}
|
|
42748
|
+
});
|
|
42749
|
+
};
|
|
42750
|
+
fm(() => {
|
|
42751
|
+
_e(), console.log("tinymce ", be.modelValue), U.value !== null && U.value.hasAttribute("autofocus") && U.value.focus();
|
|
42745
42752
|
});
|
|
42746
|
-
const
|
|
42753
|
+
const J = La({
|
|
42747
42754
|
get() {
|
|
42748
42755
|
return be.modelValue;
|
|
42749
42756
|
},
|
|
42750
|
-
set(
|
|
42751
|
-
oe("update:modelValue",
|
|
42757
|
+
set(Oe) {
|
|
42758
|
+
oe("update:modelValue", Oe);
|
|
42752
42759
|
}
|
|
42753
42760
|
});
|
|
42754
|
-
return ee({ focus: () => U.value.focus() }), (
|
|
42761
|
+
return ee({ focus: () => U.value.focus() }), (Oe, mt) => (se(), ie(Ln, null, [
|
|
42755
42762
|
O.show ? (se(), ie("div", {
|
|
42756
42763
|
key: 0,
|
|
42757
|
-
class:
|
|
42764
|
+
class: jt(O.field_name)
|
|
42758
42765
|
}, [
|
|
42759
42766
|
N("h3", qJ, nt(O.label_name), 1),
|
|
42760
42767
|
N("p", {
|
|
@@ -42765,10 +42772,10 @@ const wse = /* @__PURE__ */ Es(jX, [["render", YZ], ["__scopeId", "data-v-a94f16
|
|
|
42765
42772
|
], 2)) : Je("", !0),
|
|
42766
42773
|
O.show ? Je("", !0) : (se(), ie("div", {
|
|
42767
42774
|
key: 1,
|
|
42768
|
-
class:
|
|
42775
|
+
class: jt(["mb-4", O.field_name])
|
|
42769
42776
|
}, [
|
|
42770
42777
|
N("label", {
|
|
42771
|
-
class:
|
|
42778
|
+
class: jt({
|
|
42772
42779
|
"gl-label-form": O.error_message == "",
|
|
42773
42780
|
"gl-label-form-invalid": O.error_message !== "",
|
|
42774
42781
|
required: O.is_required
|
|
@@ -42778,19 +42785,19 @@ const wse = /* @__PURE__ */ Es(jX, [["render", YZ], ["__scopeId", "data-v-a94f16
|
|
|
42778
42785
|
kr(N("textarea", {
|
|
42779
42786
|
name: O.field_name,
|
|
42780
42787
|
id: O.field_name,
|
|
42781
|
-
class:
|
|
42788
|
+
class: jt(["tiny", {
|
|
42782
42789
|
" gl-textarea-form mt-4 ": O.error_message == "",
|
|
42783
42790
|
" gl-textarea-form-invalid mt-4 ": O.error_message !== ""
|
|
42784
42791
|
}]),
|
|
42785
42792
|
type: O.type,
|
|
42786
|
-
"onUpdate:modelValue":
|
|
42787
|
-
onKeydown:
|
|
42793
|
+
"onUpdate:modelValue": mt[0] || (mt[0] = (Rt) => J.value = Rt),
|
|
42794
|
+
onKeydown: mt[1] || (mt[1] = (Rt) => Oe.$emit("keydown", Rt)),
|
|
42788
42795
|
ref_key: "input",
|
|
42789
42796
|
ref: U,
|
|
42790
42797
|
rows: "4"
|
|
42791
42798
|
}, `
|
|
42792
42799
|
`, 42, ZJ), [
|
|
42793
|
-
[sd,
|
|
42800
|
+
[sd, J.value]
|
|
42794
42801
|
]),
|
|
42795
42802
|
N("span", JJ, nt(O.error_message), 1),
|
|
42796
42803
|
N("small", QJ, nt(O.description), 1)
|
|
@@ -42851,8 +42858,8 @@ const wse = /* @__PURE__ */ Es(jX, [["render", YZ], ["__scopeId", "data-v-a94f16
|
|
|
42851
42858
|
return this.lastPage;
|
|
42852
42859
|
for (var O = this.currentPage, ee = this.lastPage, G = this.limit, be = O - G, oe = O + G + 1, U = [], _e = [], J, Oe = 1; Oe <= ee; Oe++)
|
|
42853
42860
|
(Oe === 1 || Oe === ee || Oe >= be && Oe < oe) && U.push(Oe);
|
|
42854
|
-
return U.forEach(function(
|
|
42855
|
-
J && (
|
|
42861
|
+
return U.forEach(function(mt) {
|
|
42862
|
+
J && (mt - J === 2 ? _e.push(J + 1) : mt - J !== 1 && _e.push("...")), _e.push(mt), J = mt;
|
|
42856
42863
|
}), _e;
|
|
42857
42864
|
}
|
|
42858
42865
|
},
|
|
@@ -43003,7 +43010,7 @@ function gQ(O, ee, G, be, oe, U) {
|
|
|
43003
43010
|
}), [
|
|
43004
43011
|
J.computed.prevPageUrl || G.showDisabled ? (se(), ie("li", {
|
|
43005
43012
|
key: 0,
|
|
43006
|
-
class:
|
|
43013
|
+
class: jt(["flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 ms-0 border-e-0 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white", { disabled: !J.computed.prevPageUrl }])
|
|
43007
43014
|
}, [
|
|
43008
43015
|
N("a", SA({
|
|
43009
43016
|
class: "page-link",
|
|
@@ -43017,9 +43024,9 @@ function gQ(O, ee, G, be, oe, U) {
|
|
|
43017
43024
|
])
|
|
43018
43025
|
], 16, iQ)
|
|
43019
43026
|
], 2)) : Je("", !0),
|
|
43020
|
-
(se(!0), ie(Ln, null, ps(J.computed.pageRange, (Oe,
|
|
43021
|
-
class:
|
|
43022
|
-
key:
|
|
43027
|
+
(se(!0), ie(Ln, null, ps(J.computed.pageRange, (Oe, mt) => (se(), ie("li", {
|
|
43028
|
+
class: jt(["", { active: Oe == J.computed.currentPage }]),
|
|
43029
|
+
key: mt
|
|
43023
43030
|
}, [
|
|
43024
43031
|
N("a", SA({
|
|
43025
43032
|
class: "",
|
|
@@ -43031,7 +43038,7 @@ function gQ(O, ee, G, be, oe, U) {
|
|
|
43031
43038
|
], 2))), 128)),
|
|
43032
43039
|
J.computed.nextPageUrl || G.showDisabled ? (se(), ie("li", {
|
|
43033
43040
|
key: 1,
|
|
43034
|
-
class:
|
|
43041
|
+
class: jt(["flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white", { disabled: !J.computed.nextPageUrl }])
|
|
43035
43042
|
}, [
|
|
43036
43043
|
N("a", SA({
|
|
43037
43044
|
class: "",
|
|
@@ -43243,9 +43250,9 @@ function FQ(O, ee, G, be, oe, U) {
|
|
|
43243
43250
|
N("table", EQ, [
|
|
43244
43251
|
N("thead", TQ, [
|
|
43245
43252
|
N("tr", null, [
|
|
43246
|
-
(se(!0), ie(Ln, null, ps(G.columns, (Oe,
|
|
43247
|
-
key:
|
|
43248
|
-
onClick: (
|
|
43253
|
+
(se(!0), ie(Ln, null, ps(G.columns, (Oe, mt) => (se(), ie("th", {
|
|
43254
|
+
key: mt,
|
|
43255
|
+
onClick: (Rt) => U.updateSortColumn(Oe.field_name, Oe.sortable),
|
|
43249
43256
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
43250
43257
|
}, [
|
|
43251
43258
|
Qn(nt(Oe.field_label) + " ", 1),
|
|
@@ -43261,27 +43268,27 @@ function FQ(O, ee, G, be, oe, U) {
|
|
|
43261
43268
|
colspan: G.columns.length
|
|
43262
43269
|
}, RQ, 8, PQ)
|
|
43263
43270
|
])) : Je("", !0),
|
|
43264
|
-
oe.isLoading ? Je("", !0) : (se(!0), ie(Ln, { key: 1 }, ps(oe.itemLists.data, (Oe,
|
|
43265
|
-
key:
|
|
43271
|
+
oe.isLoading ? Je("", !0) : (se(!0), ie(Ln, { key: 1 }, ps(oe.itemLists.data, (Oe, mt) => (se(), ie("tr", {
|
|
43272
|
+
key: mt,
|
|
43266
43273
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500"
|
|
43267
43274
|
}, [
|
|
43268
|
-
(se(!0), ie(Ln, null, ps(G.columns, (
|
|
43275
|
+
(se(!0), ie(Ln, null, ps(G.columns, (Rt, xn) => (se(), ie("td", {
|
|
43269
43276
|
key: xn,
|
|
43270
|
-
"data-label":
|
|
43277
|
+
"data-label": Rt.field_label,
|
|
43271
43278
|
class: "text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-2.5 lg:px-4 border dark:border-gray-700"
|
|
43272
43279
|
}, [
|
|
43273
43280
|
N("div", MQ, [
|
|
43274
|
-
|
|
43281
|
+
Rt.tdComp ? (se(), Fy(bL(U.forDynCompIs(Rt.tdComp)), {
|
|
43275
43282
|
key: 0,
|
|
43276
43283
|
row: Oe,
|
|
43277
|
-
field:
|
|
43284
|
+
field: Rt.field_name,
|
|
43278
43285
|
xprops: G.xprops,
|
|
43279
|
-
tdProps:
|
|
43286
|
+
tdProps: Rt.tdProps,
|
|
43280
43287
|
onDeleteAction: ee[3] || (ee[3] = (eo) => U.GetItemLists()),
|
|
43281
43288
|
onEditAction: (eo) => U.editAction(Oe),
|
|
43282
43289
|
onGeneralAction: (eo) => U.generalAction(Oe)
|
|
43283
43290
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (se(), ie(Ln, { key: 1 }, [
|
|
43284
|
-
Qn(nt(Oe[
|
|
43291
|
+
Qn(nt(Oe[Rt.field_name]), 1)
|
|
43285
43292
|
], 64))
|
|
43286
43293
|
])
|
|
43287
43294
|
], 8, IQ))), 128))
|
|
@@ -43502,9 +43509,9 @@ function mee(O, ee, G, be, oe, U) {
|
|
|
43502
43509
|
N("table", ZQ, [
|
|
43503
43510
|
N("thead", JQ, [
|
|
43504
43511
|
N("tr", null, [
|
|
43505
|
-
(se(!0), ie(Ln, null, ps(G.columns, (Oe,
|
|
43506
|
-
key:
|
|
43507
|
-
onClick: (
|
|
43512
|
+
(se(!0), ie(Ln, null, ps(G.columns, (Oe, mt) => (se(), ie("th", {
|
|
43513
|
+
key: mt,
|
|
43514
|
+
onClick: (Rt) => U.updateSortColumn(Oe.field_name, Oe.sortable),
|
|
43508
43515
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
43509
43516
|
}, [
|
|
43510
43517
|
Qn(nt(Oe.field_label) + " ", 1),
|
|
@@ -43520,14 +43527,14 @@ function mee(O, ee, G, be, oe, U) {
|
|
|
43520
43527
|
colspan: G.columns.length
|
|
43521
43528
|
}, aee, 8, see)
|
|
43522
43529
|
])) : Je("", !0),
|
|
43523
|
-
oe.isLoading ? Je("", !0) : (se(!0), ie(Ln, { key: 1 }, ps(U.groupedItems, (Oe,
|
|
43530
|
+
oe.isLoading ? Je("", !0) : (se(!0), ie(Ln, { key: 1 }, ps(U.groupedItems, (Oe, mt) => (se(), ie(Ln, null, [
|
|
43524
43531
|
N("tr", iee, [
|
|
43525
43532
|
N("td", {
|
|
43526
43533
|
colspan: G.columns.length,
|
|
43527
43534
|
class: "text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border dark:border-gray-700"
|
|
43528
|
-
}, nt(
|
|
43535
|
+
}, nt(mt), 9, cee)
|
|
43529
43536
|
]),
|
|
43530
|
-
(se(!0), ie(Ln, null, ps(Oe, (
|
|
43537
|
+
(se(!0), ie(Ln, null, ps(Oe, (Rt, xn) => (se(), ie("tr", {
|
|
43531
43538
|
key: xn,
|
|
43532
43539
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500"
|
|
43533
43540
|
}, [
|
|
@@ -43539,14 +43546,14 @@ function mee(O, ee, G, be, oe, U) {
|
|
|
43539
43546
|
N("div", uee, [
|
|
43540
43547
|
eo.tdComp ? (se(), Fy(bL(U.forDynCompIs(eo.tdComp)), {
|
|
43541
43548
|
key: 0,
|
|
43542
|
-
row:
|
|
43549
|
+
row: Rt,
|
|
43543
43550
|
field: eo.field_name,
|
|
43544
43551
|
xprops: G.xprops,
|
|
43545
43552
|
tdProps: eo.tdProps,
|
|
43546
43553
|
onDeleteAction: ee[3] || (ee[3] = (xa) => U.GetItemLists()),
|
|
43547
|
-
onEditAction: (xa) => U.editAction(
|
|
43554
|
+
onEditAction: (xa) => U.editAction(Rt)
|
|
43548
43555
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (se(), ie(Ln, { key: 1 }, [
|
|
43549
|
-
Qn(nt(
|
|
43556
|
+
Qn(nt(Rt[eo.field_name]), 1)
|
|
43550
43557
|
], 64))
|
|
43551
43558
|
])
|
|
43552
43559
|
], 8, lee))), 128))
|
|
@@ -43752,7 +43759,7 @@ function Qee(O, ee, G, be, oe, U) {
|
|
|
43752
43759
|
N("tr", null, [
|
|
43753
43760
|
(se(!0), ie(Ln, null, ps(G.columns, (J, Oe) => (se(), ie("th", {
|
|
43754
43761
|
key: Oe,
|
|
43755
|
-
onClick: gi((
|
|
43762
|
+
onClick: gi((mt) => U.sort(J), ["prevent"]),
|
|
43756
43763
|
class: "w-full px-4 py-2 lg:w-2/12 capitalize"
|
|
43757
43764
|
}, [
|
|
43758
43765
|
Qn(nt(J) + " ", 1),
|
|
@@ -43767,14 +43774,14 @@ function Qee(O, ee, G, be, oe, U) {
|
|
|
43767
43774
|
key: Oe,
|
|
43768
43775
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500"
|
|
43769
43776
|
}, [
|
|
43770
|
-
(se(!0), ie(Ln, null, ps(G.columns, (
|
|
43771
|
-
key:
|
|
43772
|
-
"data-label":
|
|
43777
|
+
(se(!0), ie(Ln, null, ps(G.columns, (mt, Rt) => (se(), ie("td", {
|
|
43778
|
+
key: Rt,
|
|
43779
|
+
"data-label": mt,
|
|
43773
43780
|
class: "text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-2.5 lg:px-4 border dark:border-gray-700"
|
|
43774
43781
|
}, [
|
|
43775
43782
|
N("p", {
|
|
43776
43783
|
class: "text-pretty",
|
|
43777
|
-
innerHTML: J[
|
|
43784
|
+
innerHTML: J[Rt]
|
|
43778
43785
|
}, null, 8, Nee)
|
|
43779
43786
|
], 8, Dee))), 128))
|
|
43780
43787
|
]))), 128))
|
|
@@ -43887,13 +43894,13 @@ const Dse = /* @__PURE__ */ Es(ete, [["render", tte]]), nte = {
|
|
|
43887
43894
|
},
|
|
43888
43895
|
setup() {
|
|
43889
43896
|
const O = Do(!1), ee = Xq("accordionsWrapper"), be = (() => {
|
|
43890
|
-
var
|
|
43891
|
-
typeof performance < "u" && typeof performance.now == "function" && (
|
|
43892
|
-
var
|
|
43893
|
-
var eo = (
|
|
43894
|
-
return
|
|
43897
|
+
var mt = (/* @__PURE__ */ new Date()).getTime();
|
|
43898
|
+
typeof performance < "u" && typeof performance.now == "function" && (mt += performance.now());
|
|
43899
|
+
var Rt = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(xn) {
|
|
43900
|
+
var eo = (mt + Math.random() * 16) % 16 | 0;
|
|
43901
|
+
return mt = Math.floor(mt / 16), (xn === "x" ? eo : eo & 3 | 8).toString(16);
|
|
43895
43902
|
});
|
|
43896
|
-
return
|
|
43903
|
+
return Rt;
|
|
43897
43904
|
})(), oe = { isOpen: O, id: be }, U = La(() => ee.accordions.value), _e = La(() => U.value.length > 0 && U.value[0].id === be), J = La(() => U.value.length > 0 && U.value[U.value.length - 1].id === be);
|
|
43898
43905
|
return fm(() => {
|
|
43899
43906
|
ee.registerAccordion(oe);
|
|
@@ -43940,7 +43947,7 @@ function ute(O, ee, G, be, oe, U) {
|
|
|
43940
43947
|
N("button", {
|
|
43941
43948
|
onClick: ee[0] || (ee[0] = (..._e) => be.toggle && be.toggle(..._e)),
|
|
43942
43949
|
type: "button",
|
|
43943
|
-
class:
|
|
43950
|
+
class: jt(["flex items-center justify-between w-full gap-3 p-5 font-medium text-gray-500 border border-gray-200 rtl:text-right dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800", {
|
|
43944
43951
|
"rounded-t-xl": be.isFirstAccordion,
|
|
43945
43952
|
"border-b-0": !be.isLastAccordion,
|
|
43946
43953
|
"bg-gray-100 dark:bg-gray-800": be.isOpen
|
|
@@ -43954,7 +43961,7 @@ function ute(O, ee, G, be, oe, U) {
|
|
|
43954
43961
|
]),
|
|
43955
43962
|
be.isOpen ? (se(), ie("div", {
|
|
43956
43963
|
key: 0,
|
|
43957
|
-
class:
|
|
43964
|
+
class: jt([{
|
|
43958
43965
|
"border-b-0": !be.isLastAccordion,
|
|
43959
43966
|
"border-t-0": be.isLastAccordion
|
|
43960
43967
|
}, "p-5 border border-gray-200 dark:border-gray-700 dark:bg-gray-900"])
|
|
@@ -44150,9 +44157,9 @@ const Nse = /* @__PURE__ */ Es(nte, [["render", ute]]), dte = {
|
|
|
44150
44157
|
oe.value = !1;
|
|
44151
44158
|
}, Oe = () => {
|
|
44152
44159
|
oe.value = !0;
|
|
44153
|
-
},
|
|
44160
|
+
}, mt = ee, Rt = () => {
|
|
44154
44161
|
axios.delete(`${G.xprops.route}/${G.row.id}`).then(() => {
|
|
44155
|
-
J(),
|
|
44162
|
+
J(), mt("deleteAction"), vL.methods.add({
|
|
44156
44163
|
message: "Item deleted successfully.",
|
|
44157
44164
|
type: "success",
|
|
44158
44165
|
duration: 5e3
|
|
@@ -44166,7 +44173,7 @@ const Nse = /* @__PURE__ */ Es(nte, [["render", ute]]), dte = {
|
|
|
44166
44173
|
return se(), ie(Ln, null, [
|
|
44167
44174
|
Up(dG, {
|
|
44168
44175
|
isOpen: oe.value,
|
|
44169
|
-
onConfirmDelete:
|
|
44176
|
+
onConfirmDelete: Rt,
|
|
44170
44177
|
onCancelDelete: J
|
|
44171
44178
|
}, null, 8, ["isOpen"]),
|
|
44172
44179
|
O.row && xn.can(`edit_${O.xprops.permission} || delete_${O.xprops.permission}`) ? kr((se(), ie("div", Dte, [
|
|
@@ -44256,9 +44263,9 @@ const Nse = /* @__PURE__ */ Es(nte, [["render", ute]]), dte = {
|
|
|
44256
44263
|
oe.value = !1;
|
|
44257
44264
|
}, Oe = () => {
|
|
44258
44265
|
oe.value = !0;
|
|
44259
|
-
},
|
|
44266
|
+
}, mt = ee, Rt = () => {
|
|
44260
44267
|
axios.delete(`${G.xprops.route}/${G.row.id}`).then(() => {
|
|
44261
|
-
J(),
|
|
44268
|
+
J(), mt("deleteAction"), vL.methods.add({
|
|
44262
44269
|
message: "Item deleted successfully.",
|
|
44263
44270
|
type: "success",
|
|
44264
44271
|
duration: 5e3
|
|
@@ -44272,7 +44279,7 @@ const Nse = /* @__PURE__ */ Es(nte, [["render", ute]]), dte = {
|
|
|
44272
44279
|
return se(), ie(Ln, null, [
|
|
44273
44280
|
Up(dG, {
|
|
44274
44281
|
isOpen: oe.value,
|
|
44275
|
-
onConfirmDelete:
|
|
44282
|
+
onConfirmDelete: Rt,
|
|
44276
44283
|
onCancelDelete: J
|
|
44277
44284
|
}, null, 8, ["isOpen"]),
|
|
44278
44285
|
O.row && xn.can(`delete_${O.xprops.permission}`) ? kr((se(), ie("div", Vte, [
|
|
@@ -44621,35 +44628,35 @@ function zne(O, ee, G, be, oe, U) {
|
|
|
44621
44628
|
return se(), ie("div", Une, [
|
|
44622
44629
|
U.hasLabelColor == "Default" ? (se(), ie("span", {
|
|
44623
44630
|
key: 0,
|
|
44624
|
-
class:
|
|
44631
|
+
class: jt(["bg-blue-100 text-blue-800 font-medium me-2 px-2.5 py-0.5 dark:bg-blue-900 dark:text-blue-300 border-blue-400", U.badgeType])
|
|
44625
44632
|
}, nt(this.row[this.field]), 3)) : Je("", !0),
|
|
44626
44633
|
U.hasLabelColor == "Dark" ? (se(), ie("span", {
|
|
44627
44634
|
key: 1,
|
|
44628
|
-
class:
|
|
44635
|
+
class: jt(["bg-gray-100 text-gray-800 font-medium me-2 px-2.5 py-0.5 dark:bg-gray-700 dark:text-gray-300 border-gray-500", U.badgeType])
|
|
44629
44636
|
}, nt(this.row[this.field]), 3)) : Je("", !0),
|
|
44630
44637
|
U.hasLabelColor == "Red" ? (se(), ie("span", {
|
|
44631
44638
|
key: 2,
|
|
44632
|
-
class:
|
|
44639
|
+
class: jt(["bg-red-100 text-red-800 font-medium me-2 px-2.5 py-0.5 dark:bg-red-900 dark:text-red-300 border-red-400", U.badgeType])
|
|
44633
44640
|
}, nt(this.row[this.field]), 3)) : Je("", !0),
|
|
44634
44641
|
U.hasLabelColor == "Green" ? (se(), ie("span", {
|
|
44635
44642
|
key: 3,
|
|
44636
|
-
class:
|
|
44643
|
+
class: jt(["bg-green-100 text-green-800 font-medium me-2 px-2.5 py-0.5 dark:bg-green-900 dark:text-green-300 border-green-400", U.badgeType])
|
|
44637
44644
|
}, nt(this.row[this.field]), 3)) : Je("", !0),
|
|
44638
44645
|
U.hasLabelColor == "Yellow" ? (se(), ie("span", {
|
|
44639
44646
|
key: 4,
|
|
44640
|
-
class:
|
|
44647
|
+
class: jt(["bg-yellow-100 text-yellow-800 font-medium me-2 px-2.5 py-0.5 dark:bg-yellow-900 dark:text-yellow-300 border-yellow-300", U.badgeType])
|
|
44641
44648
|
}, nt(this.row[this.field]), 3)) : Je("", !0),
|
|
44642
44649
|
U.hasLabelColor == "Indigo" ? (se(), ie("span", {
|
|
44643
44650
|
key: 5,
|
|
44644
|
-
class:
|
|
44651
|
+
class: jt(["bg-indigo-100 text-indigo-800 font-medium me-2 px-2.5 py-0.5 dark:bg-indigo-900 dark:text-indigo-300 border-indigo-400", U.badgeType])
|
|
44645
44652
|
}, nt(this.row[this.field]), 3)) : Je("", !0),
|
|
44646
44653
|
U.hasLabelColor == "Purple" ? (se(), ie("span", {
|
|
44647
44654
|
key: 6,
|
|
44648
|
-
class:
|
|
44655
|
+
class: jt(["bg-purple-100 text-purple-800 font-medium me-2 px-2.5 py-0.5 dark:bg-purple-900 dark:text-purple-300 border-purple-400", U.badgeType])
|
|
44649
44656
|
}, nt(this.row[this.field]), 3)) : Je("", !0),
|
|
44650
44657
|
U.hasLabelColor == "Pink" ? (se(), ie("span", {
|
|
44651
44658
|
key: 7,
|
|
44652
|
-
class:
|
|
44659
|
+
class: jt(["bg-pink-100 text-pink-800 font-medium me-2 px-2.5 py-0.5 dark:bg-pink-900 dark:text-pink-300 border-pink-400", U.badgeType])
|
|
44653
44660
|
}, nt(this.row[this.field]), 3)) : Je("", !0)
|
|
44654
44661
|
]);
|
|
44655
44662
|
}
|