golden-logic-ui 1.0.212 → 1.0.213
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 +491 -491
- package/dist/golden-logic-ui.umd.cjs +24 -24
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -494,9 +494,9 @@ const tre = /* @__PURE__ */ Ta(SK, [["render", EK]]), AK = { class: "bg-white bo
|
|
|
494
494
|
},
|
|
495
495
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
496
496
|
setup(B, { emit: ve }) {
|
|
497
|
-
const ce = B, $e = ve, ye = Xo(null), Q = Xo([]), De = Xo([]), ee = Xo(0), Ue = Xo(!1), Ct = Xo(""),
|
|
497
|
+
const ce = B, $e = ve, ye = Xo(null), Q = Xo([]), De = Xo([]), ee = Xo(0), Ue = Xo(!1), Ct = Xo(""), Gt = Xo("");
|
|
498
498
|
b1(() => {
|
|
499
|
-
|
|
499
|
+
Gt.value = $o(), ce.show || (document.body.addEventListener("click", (Ge) => {
|
|
500
500
|
Xn(Ge);
|
|
501
501
|
}), document.addEventListener("keypress", (Ge) => {
|
|
502
502
|
Ge.key === "Enter" && Ge.target.form && Ge.preventDefault();
|
|
@@ -504,9 +504,9 @@ const tre = /* @__PURE__ */ Ta(SK, [["render", EK]]), AK = { class: "bg-white bo
|
|
|
504
504
|
});
|
|
505
505
|
const Sn = ii(() => wt()), zn = ii(() => Fe()), Uo = ii(() => {
|
|
506
506
|
const Ge = [], A = new RegExp(Ct.value, "ig");
|
|
507
|
-
for (const
|
|
508
|
-
const nt = String(
|
|
509
|
-
(Ct.value.length < 1 || nt.match(A)) && Ge.length < ce.maxItem && Ge.push(
|
|
507
|
+
for (const Jt of Sn.value) {
|
|
508
|
+
const nt = String(Jt.name);
|
|
509
|
+
(Ct.value.length < 1 || nt.match(A)) && Ge.length < ce.maxItem && Ge.push(Jt);
|
|
510
510
|
}
|
|
511
511
|
return Ge;
|
|
512
512
|
});
|
|
@@ -527,9 +527,9 @@ const tre = /* @__PURE__ */ Ta(SK, [["render", EK]]), AK = { class: "bg-white bo
|
|
|
527
527
|
let Ge = (/* @__PURE__ */ new Date()).getTime();
|
|
528
528
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
|
|
529
529
|
/[xy]/g,
|
|
530
|
-
function(
|
|
530
|
+
function(Jt) {
|
|
531
531
|
const nt = (Ge + Math.random() * 16) % 16 | 0;
|
|
532
|
-
return Ge = Math.floor(Ge / 16), (
|
|
532
|
+
return Ge = Math.floor(Ge / 16), (Jt === "x" ? nt : nt & 3 | 8).toString(16);
|
|
533
533
|
}
|
|
534
534
|
);
|
|
535
535
|
}
|
|
@@ -549,19 +549,19 @@ const tre = /* @__PURE__ */ Ta(SK, [["render", EK]]), AK = { class: "bg-white bo
|
|
|
549
549
|
Q.value = [], $e("update:modelValue", []), $e("selected", []), $e("selectionChanged", []);
|
|
550
550
|
}
|
|
551
551
|
function Ea(Ge) {
|
|
552
|
-
let A = Q.value.findIndex((
|
|
553
|
-
A !== -1 && Q.value.splice(A, 1), De.value = Q.value.map((
|
|
552
|
+
let A = Q.value.findIndex((Jt) => Jt.id === Ge.id);
|
|
553
|
+
A !== -1 && Q.value.splice(A, 1), De.value = Q.value.map((Jt) => Jt.id), $e("update:modelValue", De.value), $e("selected", Q.value), $e("selectionChanged", Q.value);
|
|
554
554
|
}
|
|
555
555
|
function Xn(Ge) {
|
|
556
|
-
Ge.target.id != ce.field_name + "search" +
|
|
556
|
+
Ge.target.id != ce.field_name + "search" + Gt.value && Ge.target.id != ce.field_name && !Ge.target.classList.contains("showOptions") && (Jn(), ee.value = 0);
|
|
557
557
|
}
|
|
558
558
|
function oe(Ge) {
|
|
559
|
-
const A = `${Ge}${
|
|
560
|
-
|
|
559
|
+
const A = `${Ge}${Gt.value}`, Jt = document.getElementById(A);
|
|
560
|
+
Jt && Jt.scrollIntoView();
|
|
561
561
|
}
|
|
562
562
|
function Nn(Ge) {
|
|
563
|
-
const A = `${Ge}${
|
|
564
|
-
|
|
563
|
+
const A = `${Ge}${Gt.value}`, Jt = document.getElementById(A);
|
|
564
|
+
Jt && Jt.click();
|
|
565
565
|
}
|
|
566
566
|
function ns(Ge) {
|
|
567
567
|
Ge === "ArrowDown" && ee.value < Uo.value.length && (ee.value++, oe(ee.value)), Ge === "ArrowUp" && ee.value > 1 && (ee.value--, oe(ee.value)), Ge === "Enter" && Nn(ee.value);
|
|
@@ -593,13 +593,13 @@ const tre = /* @__PURE__ */ Ta(SK, [["render", EK]]), AK = { class: "bg-white bo
|
|
|
593
593
|
}
|
|
594
594
|
function ie(Ge) {
|
|
595
595
|
console.log("selectOption", Ge);
|
|
596
|
-
let A = Q.value.findIndex((
|
|
597
|
-
A !== -1 ? Q.value.splice(A, 1) : Q.value.push(Ge), console.log("selectOption selected", Q.value), Ue.value = !1, De.value = Q.value.map((
|
|
596
|
+
let A = Q.value.findIndex((Jt) => Jt.id === Ge.id);
|
|
597
|
+
A !== -1 ? Q.value.splice(A, 1) : Q.value.push(Ge), console.log("selectOption selected", Q.value), Ue.value = !1, De.value = Q.value.map((Jt) => Jt.id), $e("update:modelValue", De.value), $e("selected", Q.value), $e("selectionChanged", Q.value);
|
|
598
598
|
}
|
|
599
599
|
function Mo() {
|
|
600
600
|
ce.show || (Ct.value = "", Ue.value = !0, Oj(() => {
|
|
601
601
|
var Ge = document.getElementById(
|
|
602
|
-
`${ce.field_name}search${
|
|
602
|
+
`${ce.field_name}search${Gt.value}`
|
|
603
603
|
);
|
|
604
604
|
Ge && Ge.focus();
|
|
605
605
|
}));
|
|
@@ -618,7 +618,7 @@ const tre = /* @__PURE__ */ Ta(SK, [["render", EK]]), AK = { class: "bg-white bo
|
|
|
618
618
|
}, [
|
|
619
619
|
V("h3", RK, At(B.label_name), 1),
|
|
620
620
|
V("p", $K, [
|
|
621
|
-
(ke(!0), Ae(zo, null, aa(zn.value, (
|
|
621
|
+
(ke(!0), Ae(zo, null, aa(zn.value, (Jt, nt) => (ke(), Ae("span", MK, At(Jt == null ? void 0 : Jt.name), 1))), 256))
|
|
622
622
|
]),
|
|
623
623
|
NK
|
|
624
624
|
], 2)) : $t("", !0),
|
|
@@ -626,11 +626,11 @@ const tre = /* @__PURE__ */ Ta(SK, [["render", EK]]), AK = { class: "bg-white bo
|
|
|
626
626
|
key: 1,
|
|
627
627
|
class: bn(B.field_name)
|
|
628
628
|
}, [
|
|
629
|
-
(ke(!0), Ae(zo, null, aa(De.value, (
|
|
629
|
+
(ke(!0), Ae(zo, null, aa(De.value, (Jt, nt) => (ke(), Ae("input", {
|
|
630
630
|
type: "hidden",
|
|
631
631
|
name: B.field_name + "[]",
|
|
632
632
|
key: nt,
|
|
633
|
-
value:
|
|
633
|
+
value: Jt
|
|
634
634
|
}, null, 8, BK))), 128)),
|
|
635
635
|
B.options ? (ke(), Ae("div", PK, [
|
|
636
636
|
V("label", {
|
|
@@ -659,15 +659,15 @@ const tre = /* @__PURE__ */ Ta(SK, [["render", EK]]), AK = { class: "bg-white bo
|
|
|
659
659
|
V("div", LK, [
|
|
660
660
|
V("div", {
|
|
661
661
|
class: "flex flex-wrap gap-2 pl-8 pr-2 gl-multi-dropdown showOptions",
|
|
662
|
-
onClick: A[0] || (A[0] = (
|
|
662
|
+
onClick: A[0] || (A[0] = (Jt) => Mo())
|
|
663
663
|
}, [
|
|
664
|
-
(ke(!0), Ae(zo, null, aa(zn.value, (
|
|
664
|
+
(ke(!0), Ae(zo, null, aa(zn.value, (Jt, nt) => (ke(), Ae("span", {
|
|
665
665
|
key: nt,
|
|
666
666
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded pointer-events-none dark:bg-blue-900 dark:text-blue-300"
|
|
667
667
|
}, [
|
|
668
|
-
is(At(
|
|
668
|
+
is(At(Jt == null ? void 0 : Jt.name) + " ", 1),
|
|
669
669
|
V("i", {
|
|
670
|
-
onClick: Uu((No) => Ea(
|
|
670
|
+
onClick: Uu((No) => Ea(Jt), ["stop"]),
|
|
671
671
|
class: "cursor-pointer pointer-events-auto hover:text-red-600 dark:hover:text-red-400 fas fa-times"
|
|
672
672
|
}, null, 8, FK)
|
|
673
673
|
]))), 128))
|
|
@@ -684,11 +684,11 @@ const tre = /* @__PURE__ */ Ta(SK, [["render", EK]]), AK = { class: "bg-white bo
|
|
|
684
684
|
WK,
|
|
685
685
|
nl(V("input", {
|
|
686
686
|
type: "search",
|
|
687
|
-
"onUpdate:modelValue": A[1] || (A[1] = (
|
|
687
|
+
"onUpdate:modelValue": A[1] || (A[1] = (Jt) => Ct.value = Jt),
|
|
688
688
|
ref: ye.value,
|
|
689
|
-
id: `${B.field_name}search${
|
|
689
|
+
id: `${B.field_name}search${Gt.value}`,
|
|
690
690
|
onKeydown: ir,
|
|
691
|
-
onBlur: A[2] || (A[2] = (
|
|
691
|
+
onBlur: A[2] || (A[2] = (Jt) => Jn()),
|
|
692
692
|
autocomplete: "off",
|
|
693
693
|
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",
|
|
694
694
|
placeholder: "Search ..."
|
|
@@ -698,16 +698,16 @@ const tre = /* @__PURE__ */ Ta(SK, [["render", EK]]), AK = { class: "bg-white bo
|
|
|
698
698
|
])
|
|
699
699
|
]),
|
|
700
700
|
V("div", jK, [
|
|
701
|
-
(ke(!0), Ae(zo, null, aa(Uo.value, (
|
|
701
|
+
(ke(!0), Ae(zo, null, aa(Uo.value, (Jt, nt) => (ke(), Ae("div", {
|
|
702
702
|
class: bn([
|
|
703
703
|
"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",
|
|
704
|
-
nt + 1 == ee.value || dn(
|
|
704
|
+
nt + 1 == ee.value || dn(Jt.id) ? "bg-gray-100 dark:bg-gray-600" : ""
|
|
705
705
|
]),
|
|
706
|
-
onClick: (No) => ie(
|
|
707
|
-
onMousedown: (No) => ie(
|
|
706
|
+
onClick: (No) => ie(Jt),
|
|
707
|
+
onMousedown: (No) => ie(Jt),
|
|
708
708
|
key: nt,
|
|
709
|
-
id: `${nt + 1}${
|
|
710
|
-
}, At(
|
|
709
|
+
id: `${nt + 1}${Gt.value}`
|
|
710
|
+
}, At(Jt.name || Jt.id || "-"), 43, GK))), 128))
|
|
711
711
|
])
|
|
712
712
|
], 512), [
|
|
713
713
|
[n5, Ue.value]
|
|
@@ -1385,10 +1385,10 @@ const sre = /* @__PURE__ */ Ta(qK, [["render", YK]]), XK = { class: "font-bold p
|
|
|
1385
1385
|
set(Ct) {
|
|
1386
1386
|
Q.value.end = Ct, Ue(Q.value.start, Q.value.end), $e("update:modelValue", { start: Q.value.start, end: Q.value.end }), $e("keydown", { start: Q.value.start, end: Q.value.end });
|
|
1387
1387
|
}
|
|
1388
|
-
}), Ue = (Ct,
|
|
1389
|
-
new Date(Ct) > new Date(
|
|
1388
|
+
}), Ue = (Ct, Gt) => {
|
|
1389
|
+
Ct && Gt && new Date(Ct) > new Date(Gt) ? (ye.value = "Start date cannot be after end date.", Q.value.start = "", Q.value.end = "", $e("update:modelValue", { start: Q.value.start, end: Q.value.end }), $e("keydown", { start: Q.value.start, end: Q.value.end })) : Ct && Gt && new Date(Gt) < new Date(Ct) ? (ye.value = "End date cannot be before start date.", Q.value.start = "", Q.value.end = "", $e("update:modelValue", { start: Q.value.start, end: Q.value.end }), $e("keydown", { start: Q.value.start, end: Q.value.end })) : ye.value = "";
|
|
1390
1390
|
};
|
|
1391
|
-
return (Ct,
|
|
1391
|
+
return (Ct, Gt) => (ke(), Ae(zo, null, [
|
|
1392
1392
|
B.show ? (ke(), Ae("div", {
|
|
1393
1393
|
key: 0,
|
|
1394
1394
|
class: bn(B.field_name)
|
|
@@ -1419,7 +1419,7 @@ const sre = /* @__PURE__ */ Ta(qK, [["render", YK]]), XK = { class: "font-bold p
|
|
|
1419
1419
|
"gl-input-form-invalid": B.error_message !== "" || ye.value !== ""
|
|
1420
1420
|
}),
|
|
1421
1421
|
type: "date",
|
|
1422
|
-
"onUpdate:modelValue":
|
|
1422
|
+
"onUpdate:modelValue": Gt[0] || (Gt[0] = (Sn) => De.value = Sn),
|
|
1423
1423
|
placeholder: B.placeholder
|
|
1424
1424
|
}, null, 10, FY), [
|
|
1425
1425
|
[bf, De.value]
|
|
@@ -1434,7 +1434,7 @@ const sre = /* @__PURE__ */ Ta(qK, [["render", YK]]), XK = { class: "font-bold p
|
|
|
1434
1434
|
"gl-input-form-invalid": B.error_message !== "" || ye.value !== ""
|
|
1435
1435
|
}),
|
|
1436
1436
|
type: "date",
|
|
1437
|
-
"onUpdate:modelValue":
|
|
1437
|
+
"onUpdate:modelValue": Gt[1] || (Gt[1] = (Sn) => ee.value = Sn),
|
|
1438
1438
|
placeholder: B.placeholder
|
|
1439
1439
|
}, null, 10, VY), [
|
|
1440
1440
|
[bf, ee.value]
|
|
@@ -1655,8 +1655,8 @@ const mre = /* @__PURE__ */ Ta(aX, [["render", lX]]), iX = {
|
|
|
1655
1655
|
const ce = (ye) => {
|
|
1656
1656
|
ve.style.cursor = "grabbing";
|
|
1657
1657
|
const Q = (ee) => {
|
|
1658
|
-
const Ue = ee.clientX || ee.touches && ee.touches[0] && ee.touches[0].clientX, Ct = ee.clientY || ee.touches && ee.touches[0] && ee.touches[0].clientY,
|
|
1659
|
-
Math.abs(
|
|
1658
|
+
const Ue = ee.clientX || ee.touches && ee.touches[0] && ee.touches[0].clientX, Ct = ee.clientY || ee.touches && ee.touches[0] && ee.touches[0].clientY, Gt = Ue - B.initialX, Sn = Ct - B.initialY;
|
|
1659
|
+
Math.abs(Gt) > Math.abs(Sn) ? (ee.preventDefault(), Math.abs(Gt) >= 70 && (Gt < 0 ? B.next() : B.prev(), B.initialX = Ue)) : ve.style.cursor = "grab", Math.abs(Sn) > Math.abs(Gt) && (ve.style.cursor = "grab");
|
|
1660
1660
|
}, De = () => {
|
|
1661
1661
|
document.removeEventListener("mousemove", Q), document.removeEventListener("touchmove", Q), document.removeEventListener("mouseup", De), document.removeEventListener("touchend", De), ve.style.cursor = "grab";
|
|
1662
1662
|
};
|
|
@@ -2301,9 +2301,9 @@ const fre = /* @__PURE__ */ Ta(iX, [["render", fJ], ["__scopeId", "data-v-a94f16
|
|
|
2301
2301
|
wt.key === "Enter" && wt.target.form && wt.preventDefault();
|
|
2302
2302
|
}));
|
|
2303
2303
|
});
|
|
2304
|
-
const
|
|
2304
|
+
const Gt = ii(() => _t()), Sn = ii(() => Ea()), zn = ii(() => {
|
|
2305
2305
|
const wt = [], Fe = new RegExp(Ue.value, "ig");
|
|
2306
|
-
for (const ie of
|
|
2306
|
+
for (const ie of Gt.value) {
|
|
2307
2307
|
const Mo = String(ie.name);
|
|
2308
2308
|
(Ue.value.length < 1 || Mo.match(Fe)) && wt.length < ce.maxItem && wt.push(ie);
|
|
2309
2309
|
}
|
|
@@ -2354,15 +2354,15 @@ const fre = /* @__PURE__ */ Ta(iX, [["render", fJ], ["__scopeId", "data-v-a94f16
|
|
|
2354
2354
|
}
|
|
2355
2355
|
function Ea() {
|
|
2356
2356
|
if ($o(Q.value))
|
|
2357
|
-
return typeof Q.value == "object" ?
|
|
2357
|
+
return typeof Q.value == "object" ? Gt.value.find(
|
|
2358
2358
|
(wt) => String(wt.id) === String(Q.value.id)
|
|
2359
|
-
) || {} :
|
|
2359
|
+
) || {} : Gt.value.find(
|
|
2360
2360
|
(wt) => String(wt.id) === String(Q.value)
|
|
2361
2361
|
) || {};
|
|
2362
2362
|
if (ce.modelValue)
|
|
2363
|
-
return typeof ce.modelValue == "object" ?
|
|
2363
|
+
return typeof ce.modelValue == "object" ? Gt.value.find(
|
|
2364
2364
|
(wt) => String(wt.id) === String(ce.modelValue.id)
|
|
2365
|
-
) || {} :
|
|
2365
|
+
) || {} : Gt.value.find(
|
|
2366
2366
|
(wt) => String(wt.id) === String(ce.modelValue)
|
|
2367
2367
|
) || {};
|
|
2368
2368
|
}
|
|
@@ -2468,7 +2468,7 @@ const fre = /* @__PURE__ */ Ta(iX, [["render", fJ], ["__scopeId", "data-v-a94f16
|
|
|
2468
2468
|
]),
|
|
2469
2469
|
V("div", KJ, [
|
|
2470
2470
|
(ke(!0), Ae(zo, null, aa(zn.value, (Ge, A) => {
|
|
2471
|
-
var
|
|
2471
|
+
var Jt;
|
|
2472
2472
|
return ke(), Ae("div", {
|
|
2473
2473
|
class: bn(["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", A + 1 == De.value ? "bg-gray-100 dark:bg-gray-600" : ""]),
|
|
2474
2474
|
onClick: (nt) => Xn(Ge),
|
|
@@ -2477,7 +2477,7 @@ const fre = /* @__PURE__ */ Ta(iX, [["render", fJ], ["__scopeId", "data-v-a94f16
|
|
|
2477
2477
|
id: `${A + 1}${Ct.value}`
|
|
2478
2478
|
}, [
|
|
2479
2479
|
V("div", XJ, [
|
|
2480
|
-
((
|
|
2480
|
+
((Jt = Sn.value) == null ? void 0 : Jt.id) === Ge.id ? (ke(), Ae("svg", JJ, eQ)) : $t("", !0),
|
|
2481
2481
|
V("span", {
|
|
2482
2482
|
innerHTML: Ge.name || Ge.id || "-"
|
|
2483
2483
|
}, null, 8, tQ)
|
|
@@ -2649,7 +2649,7 @@ var QG = { exports: {} };
|
|
|
2649
2649
|
return ye(Ue(e), function(o) {
|
|
2650
2650
|
return $e(o, n);
|
|
2651
2651
|
});
|
|
2652
|
-
},
|
|
2652
|
+
}, Gt = function(e) {
|
|
2653
2653
|
return Q(function(n, o) {
|
|
2654
2654
|
var r = Object.keys(n), c = Object.keys(o);
|
|
2655
2655
|
if (!Ct(ee).eq(r, c))
|
|
@@ -2665,7 +2665,7 @@ var QG = { exports: {} };
|
|
|
2665
2665
|
if (e === n)
|
|
2666
2666
|
return !0;
|
|
2667
2667
|
var o = ve(e), r = ve(n);
|
|
2668
|
-
return o !== r ? !1 : ce(o) ? e === n : o === "array" ? Ue(Sn).eq(e, n) : o === "object" ?
|
|
2668
|
+
return o !== r ? !1 : ce(o) ? e === n : o === "array" ? Ue(Sn).eq(e, n) : o === "object" ? Gt(Sn).eq(e, n) : !1;
|
|
2669
2669
|
});
|
|
2670
2670
|
const zn = Object.getPrototypeOf, Uo = (e, n, o) => {
|
|
2671
2671
|
var r;
|
|
@@ -2682,7 +2682,7 @@ var QG = { exports: {} };
|
|
|
2682
2682
|
}
|
|
2683
2683
|
return !1;
|
|
2684
2684
|
}, Ge = () => {
|
|
2685
|
-
}, A = (e, n) => (...o) => e(n.apply(null, o)),
|
|
2685
|
+
}, A = (e, n) => (...o) => e(n.apply(null, o)), Jt = (e, n) => (o) => e(n(o)), nt = (e) => () => e, No = (e) => e, mn = (e, n) => e === n;
|
|
2686
2686
|
function ot(e, ...n) {
|
|
2687
2687
|
return (...o) => {
|
|
2688
2688
|
const r = n.concat(o);
|
|
@@ -2906,7 +2906,7 @@ var QG = { exports: {} };
|
|
|
2906
2906
|
return ht(e, (r, c) => {
|
|
2907
2907
|
o.push(n(r, c));
|
|
2908
2908
|
}), o;
|
|
2909
|
-
}, pc = (e) => ec(e, No), qo = (e, n) => fn(e, n) ? z.from(e[n]) : z.none(), fn = (e, n) => ji.call(e, n), Er = (e, n) => fn(e, n) && e[n] !== void 0 && e[n] !== null, Bc = (e, n, o = Sn) =>
|
|
2909
|
+
}, pc = (e) => ec(e, No), qo = (e, n) => fn(e, n) ? z.from(e[n]) : z.none(), fn = (e, n) => ji.call(e, n), Er = (e, n) => fn(e, n) && e[n] !== void 0 && e[n] !== null, Bc = (e, n, o = Sn) => Gt(o).eq(e, n), Ll = (e) => {
|
|
2910
2910
|
const n = {};
|
|
2911
2911
|
return Ce(e, (o) => {
|
|
2912
2912
|
n[o] = {};
|
|
@@ -3422,7 +3422,7 @@ var QG = { exports: {} };
|
|
|
3422
3422
|
if (n == null || n.ownerDocument === null)
|
|
3423
3423
|
return !1;
|
|
3424
3424
|
const o = n.ownerDocument;
|
|
3425
|
-
return $g(ae.fromDom(n)).fold(() => o.body.contains(n),
|
|
3425
|
+
return $g(ae.fromDom(n)).fold(() => o.body.contains(n), Jt(Md, Mg));
|
|
3426
3426
|
};
|
|
3427
3427
|
var Ns = (e, n, o, r, c) => e(o, r) ? z.some(o) : ie(c) && c(o) ? z.none() : n(o, r, c);
|
|
3428
3428
|
const Gs = (e, n, o) => {
|
|
@@ -3571,7 +3571,7 @@ var QG = { exports: {} };
|
|
|
3571
3571
|
}, lt = (e) => {
|
|
3572
3572
|
const n = e.dom, r = n.ownerDocument.body;
|
|
3573
3573
|
return r === n ? R(r.offsetLeft, r.offsetTop) : Md(e) ? U(n) : R(0, 0);
|
|
3574
|
-
},
|
|
3574
|
+
}, qt = (e) => {
|
|
3575
3575
|
const n = e !== void 0 ? e.dom : document, o = n.body.scrollLeft || n.documentElement.scrollLeft, r = n.body.scrollTop || n.documentElement.scrollTop;
|
|
3576
3576
|
return R(o, r);
|
|
3577
3577
|
}, On = (e, n, o) => {
|
|
@@ -3590,7 +3590,7 @@ var QG = { exports: {} };
|
|
|
3590
3590
|
right: e + o,
|
|
3591
3591
|
bottom: n + r
|
|
3592
3592
|
}), ea = (e) => {
|
|
3593
|
-
const n = e === void 0 ? window : e, o = n.document, r =
|
|
3593
|
+
const n = e === void 0 ? window : e, o = n.document, r = qt(ae.fromDom(o));
|
|
3594
3594
|
return hn(n).fold(() => {
|
|
3595
3595
|
const c = n.document.documentElement, u = c.clientWidth, f = c.clientHeight;
|
|
3596
3596
|
return zs(r.left, r.top, u, f);
|
|
@@ -4436,7 +4436,7 @@ var QG = { exports: {} };
|
|
|
4436
4436
|
}), e.invalid_elements && cd(lu(e.invalid_elements), (Bn) => {
|
|
4437
4437
|
o[Bn] && delete o[Bn];
|
|
4438
4438
|
}), Wn("span") || st("span[!data-mce-type|*]");
|
|
4439
|
-
const fs = nt($), Ds = nt(M), Lr = nt(L), Rc = nt(ne), ls = nt(bt), St = nt(rt), en = nt(It), Zn = nt(Object.seal(G)), oo = nt(te),
|
|
4439
|
+
const fs = nt($), Ds = nt(M), Lr = nt(L), Rc = nt(ne), ls = nt(bt), St = nt(rt), en = nt(It), Zn = nt(Object.seal(G)), oo = nt(te), Kt = nt(xe), Dn = nt(we), yt = nt(X), Rn = nt(We), xo = nt(He), Ss = nt(Object.seal(f)), gs = (Bn, Ao) => {
|
|
4440
4440
|
const Rs = r[Bn.toLowerCase()];
|
|
4441
4441
|
return !!(Rs && Rs[Ao.toLowerCase()]);
|
|
4442
4442
|
}, Fa = (Bn, Ao) => {
|
|
@@ -4470,7 +4470,7 @@ var QG = { exports: {} };
|
|
|
4470
4470
|
getBoolAttrs: Rc,
|
|
4471
4471
|
getElementRule: Wn,
|
|
4472
4472
|
getSelfClosingElements: oo,
|
|
4473
|
-
getNonEmptyElements:
|
|
4473
|
+
getNonEmptyElements: Kt,
|
|
4474
4474
|
getMoveCaretBeforeOnEnterElements: Dn,
|
|
4475
4475
|
getWhitespaceElements: yt,
|
|
4476
4476
|
getTransparentElements: Rn,
|
|
@@ -4954,10 +4954,10 @@ var QG = { exports: {} };
|
|
|
4954
4954
|
const ft = ae.fromDom(xt);
|
|
4955
4955
|
ed(ft, Le);
|
|
4956
4956
|
});
|
|
4957
|
-
},
|
|
4957
|
+
}, Kt = (Ne, Le, xt, ft, sn) => en(Ne, (so) => {
|
|
4958
4958
|
const tr = me(Le) ? e.createElement(Le) : Le;
|
|
4959
4959
|
return Fe(xt) && Zn(tr, xt), ft && (!me(ft) && ft.nodeType ? tr.appendChild(ft) : me(ft) && oo(tr, ft)), sn ? tr : so.appendChild(tr);
|
|
4960
|
-
}), Dn = (Ne, Le, xt) =>
|
|
4960
|
+
}), Dn = (Ne, Le, xt) => Kt(e.createElement(Ne), Ne, Le, xt, !0), yt = Mf.decode, Rn = Mf.encodeAllRaw, xo = (Ne, Le, xt = "") => {
|
|
4961
4961
|
let ft = "<" + Ne;
|
|
4962
4962
|
for (const sn in Le)
|
|
4963
4963
|
Er(Le, sn) && (ft += " " + sn + '="' + Rn(Le[sn]) + '"');
|
|
@@ -5165,7 +5165,7 @@ var QG = { exports: {} };
|
|
|
5165
5165
|
getPrev: Rc,
|
|
5166
5166
|
select: St,
|
|
5167
5167
|
is: qn,
|
|
5168
|
-
add:
|
|
5168
|
+
add: Kt,
|
|
5169
5169
|
create: Dn,
|
|
5170
5170
|
createHTML: xo,
|
|
5171
5171
|
createFragment: Ss,
|
|
@@ -7649,7 +7649,7 @@ Required: ` + n.join(", "));
|
|
|
7649
7649
|
if (Ce(o.select(`img[${Qf}],hr[${Qf}]`), (gs) => {
|
|
7650
7650
|
gs.removeAttribute(Qf);
|
|
7651
7651
|
}), Fe(xo) && en(xo, u) && n.hasFocus()) {
|
|
7652
|
-
|
|
7652
|
+
Kt();
|
|
7653
7653
|
const gs = e.getStart(!0);
|
|
7654
7654
|
if (en(gs, xo) && en(e.getEnd(!0), xo)) {
|
|
7655
7655
|
o.setAttrib(xo, Qf, Ss), ls.throttle(xo);
|
|
@@ -7661,14 +7661,14 @@ Required: ` + n.join(", "));
|
|
|
7661
7661
|
ht(e4, (yt) => {
|
|
7662
7662
|
yt.elm && (o.unbind(yt.elm), delete yt.elm);
|
|
7663
7663
|
});
|
|
7664
|
-
},
|
|
7664
|
+
}, Kt = () => {
|
|
7665
7665
|
try {
|
|
7666
7666
|
n.getDoc().execCommand("enableObjectResizing", !1, "false");
|
|
7667
7667
|
} catch {
|
|
7668
7668
|
}
|
|
7669
7669
|
};
|
|
7670
7670
|
return n.on("init", () => {
|
|
7671
|
-
|
|
7671
|
+
Kt(), n.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop", Zn), n.on("keyup compositionend", (yt) => {
|
|
7672
7672
|
f && f.nodeName === "TABLE" && Zn(yt);
|
|
7673
7673
|
}), n.on("hide blur", St), n.on("contextmenu longpress", st, !0);
|
|
7674
7674
|
}), n.on("remove", oo), {
|
|
@@ -8013,8 +8013,8 @@ Required: ` + n.join(", "));
|
|
|
8013
8013
|
},
|
|
8014
8014
|
owner: (e) => ll(e)
|
|
8015
8015
|
});
|
|
8016
|
-
const
|
|
8017
|
-
const n = at(), o =
|
|
8016
|
+
const Xt = (e) => {
|
|
8017
|
+
const n = at(), o = qt(n), r = Rt(e, Ye), c = lt(e), u = kr(r, (f, b) => {
|
|
8018
8018
|
const y = lt(b);
|
|
8019
8019
|
return {
|
|
8020
8020
|
left: f.left + y.left,
|
|
@@ -8076,7 +8076,7 @@ Required: ` + n.join(", "));
|
|
|
8076
8076
|
};
|
|
8077
8077
|
if (Un(e, u))
|
|
8078
8078
|
return;
|
|
8079
|
-
const f =
|
|
8079
|
+
const f = qt(n).top;
|
|
8080
8080
|
o(e, n, f, r, c), js(e, u);
|
|
8081
8081
|
}, kv = (e, n, o, r) => {
|
|
8082
8082
|
const c = ae.fromDom(e.getBody()), u = ae.fromDom(e.getDoc());
|
|
@@ -8108,7 +8108,7 @@ Required: ` + n.join(", "));
|
|
|
8108
8108
|
}, eg = (e, n, o, r, c) => {
|
|
8109
8109
|
const u = _l(n).dom.innerHeight;
|
|
8110
8110
|
$i(e, n, o, u, r, c);
|
|
8111
|
-
const f =
|
|
8111
|
+
const f = Xt(r.element), b = ea(window);
|
|
8112
8112
|
f.top < b.y ? _n(r.element, c !== !1) : f.top > b.bottom && _n(r.element, c === !0);
|
|
8113
8113
|
}, hl = (e, n, o) => gh(e, ri, n, o), iw = (e, n, o) => ds(e, n, ri, o), S0 = (e, n, o) => gh(e, eg, n, o), em = (e, n, o) => ds(e, n, eg, o), Oc = (e, n, o) => {
|
|
8114
8114
|
(e.inline ? iw : em)(e, n, o);
|
|
@@ -11178,7 +11178,7 @@ Required: ` + n.join(", "));
|
|
|
11178
11178
|
enumerable: !0,
|
|
11179
11179
|
value: !1
|
|
11180
11180
|
}
|
|
11181
|
-
})),
|
|
11181
|
+
})), Kt = null, Dn = null, yt = !0, Rn = !0, xo = !1, Ss = !0, gs = !1, Fa = !1, gm = !1, bg = !1, ci = !1, _d = !1, Bn = !1, Ao = !0, Rs = !1;
|
|
11182
11182
|
const Xs = "user-content-";
|
|
11183
11183
|
let lr = !0, Hi = !1, hf = {}, f1 = null;
|
|
11184
11184
|
const Px = ms({}, [
|
|
@@ -11250,11 +11250,11 @@ Required: ` + n.join(", "));
|
|
|
11250
11250
|
return Ve instanceof RegExp || Ve instanceof Function;
|
|
11251
11251
|
}, Vx = function(Ve) {
|
|
11252
11252
|
if (!(g1 && g1 === Ve)) {
|
|
11253
|
-
if ((!Ve || typeof Ve != "object") && (Ve = {}), Ve = Gv(Ve), yg = hT.indexOf(Ve.PARSER_MEDIA_TYPE) === -1 ? yg = Fx : yg = Ve.PARSER_MEDIA_TYPE, tl = yg === "application/xhtml+xml" ? p_ : xh, ls = "ALLOWED_TAGS" in Ve ? ms({}, Ve.ALLOWED_TAGS, tl) : St, en = "ALLOWED_ATTR" in Ve ? ms({}, Ve.ALLOWED_ATTR, tl) : Zn, xy = "ALLOWED_NAMESPACES" in Ve ? ms({}, Ve.ALLOWED_NAMESPACES, p_) : gT, wy = "ADD_URI_SAFE_ATTR" in Ve ? ms(Gv(Ix), Ve.ADD_URI_SAFE_ATTR, tl) : Ix, nb = "ADD_DATA_URI_TAGS" in Ve ? ms(Gv(yy), Ve.ADD_DATA_URI_TAGS, tl) : yy, f1 = "FORBID_CONTENTS" in Ve ? ms({}, Ve.FORBID_CONTENTS, tl) : Px,
|
|
11253
|
+
if ((!Ve || typeof Ve != "object") && (Ve = {}), Ve = Gv(Ve), yg = hT.indexOf(Ve.PARSER_MEDIA_TYPE) === -1 ? yg = Fx : yg = Ve.PARSER_MEDIA_TYPE, tl = yg === "application/xhtml+xml" ? p_ : xh, ls = "ALLOWED_TAGS" in Ve ? ms({}, Ve.ALLOWED_TAGS, tl) : St, en = "ALLOWED_ATTR" in Ve ? ms({}, Ve.ALLOWED_ATTR, tl) : Zn, xy = "ALLOWED_NAMESPACES" in Ve ? ms({}, Ve.ALLOWED_NAMESPACES, p_) : gT, wy = "ADD_URI_SAFE_ATTR" in Ve ? ms(Gv(Ix), Ve.ADD_URI_SAFE_ATTR, tl) : Ix, nb = "ADD_DATA_URI_TAGS" in Ve ? ms(Gv(yy), Ve.ADD_DATA_URI_TAGS, tl) : yy, f1 = "FORBID_CONTENTS" in Ve ? ms({}, Ve.FORBID_CONTENTS, tl) : Px, Kt = "FORBID_TAGS" in Ve ? ms({}, Ve.FORBID_TAGS, tl) : {}, Dn = "FORBID_ATTR" in Ve ? ms({}, Ve.FORBID_ATTR, tl) : {}, hf = "USE_PROFILES" in Ve ? Ve.USE_PROFILES : !1, yt = Ve.ALLOW_ARIA_ATTR !== !1, Rn = Ve.ALLOW_DATA_ATTR !== !1, xo = Ve.ALLOW_UNKNOWN_PROTOCOLS || !1, Ss = Ve.ALLOW_SELF_CLOSE_IN_ATTR !== !1, gs = Ve.SAFE_FOR_TEMPLATES || !1, Fa = Ve.WHOLE_DOCUMENT || !1, ci = Ve.RETURN_DOM || !1, _d = Ve.RETURN_DOM_FRAGMENT || !1, Bn = Ve.RETURN_TRUSTED_TYPE || !1, bg = Ve.FORCE_BODY || !1, Ao = Ve.SANITIZE_DOM !== !1, Rs = Ve.SANITIZE_NAMED_PROPS || !1, lr = Ve.KEEP_CONTENT !== !1, Hi = Ve.IN_PLACE || !1, Rc = Ve.ALLOWED_URI_REGEXP || I$, vg = Ve.NAMESPACE || hm, oo = Ve.CUSTOM_ELEMENT_HANDLING || {}, Ve.CUSTOM_ELEMENT_HANDLING && Hx(Ve.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (oo.tagNameCheck = Ve.CUSTOM_ELEMENT_HANDLING.tagNameCheck), Ve.CUSTOM_ELEMENT_HANDLING && Hx(Ve.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (oo.attributeNameCheck = Ve.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), Ve.CUSTOM_ELEMENT_HANDLING && typeof Ve.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (oo.allowCustomizedBuiltInElements = Ve.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), gs && (Rn = !1), _d && (ci = !0), hf && (ls = ms({}, [...D$]), en = [], hf.html === !0 && (ms(ls, $3), ms(en, B3)), hf.svg === !0 && (ms(ls, M3), ms(en, P3), ms(en, Pw)), hf.svgFilters === !0 && (ms(ls, P0), ms(en, P3), ms(en, Pw)), hf.mathMl === !0 && (ms(ls, N3), ms(en, R$), ms(en, Pw))), Ve.ADD_TAGS && (ls === St && (ls = Gv(ls)), ms(ls, Ve.ADD_TAGS, tl)), Ve.ADD_ATTR && (en === Zn && (en = Gv(en)), ms(en, Ve.ADD_ATTR, tl)), Ve.ADD_URI_SAFE_ATTR && ms(wy, Ve.ADD_URI_SAFE_ATTR, tl), Ve.FORBID_CONTENTS && (f1 === Px && (f1 = Gv(f1)), ms(f1, Ve.FORBID_CONTENTS, tl)), lr && (ls["#text"] = !0), Fa && ms(ls, [
|
|
11254
11254
|
"html",
|
|
11255
11255
|
"head",
|
|
11256
11256
|
"body"
|
|
11257
|
-
]), ls.table && (ms(ls, ["tbody"]), delete
|
|
11257
|
+
]), ls.table && (ms(ls, ["tbody"]), delete Kt.tbody), Ve.TRUSTED_TYPES_POLICY) {
|
|
11258
11258
|
if (typeof Ve.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
11259
11259
|
throw jv('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
11260
11260
|
if (typeof Ve.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -11286,13 +11286,13 @@ Required: ` + n.join(", "));
|
|
|
11286
11286
|
const xt = ms({}, N3);
|
|
11287
11287
|
ms(xt, O$);
|
|
11288
11288
|
const ft = function(Ve) {
|
|
11289
|
-
let
|
|
11290
|
-
(!
|
|
11289
|
+
let Qt = xe(Ve);
|
|
11290
|
+
(!Qt || !Qt.tagName) && (Qt = {
|
|
11291
11291
|
namespaceURI: vg,
|
|
11292
11292
|
tagName: "template"
|
|
11293
11293
|
});
|
|
11294
|
-
const Cn = xh(Ve.tagName), Fr = xh(
|
|
11295
|
-
return xy[Ve.namespaceURI] ? Ve.namespaceURI === sb ?
|
|
11294
|
+
const Cn = xh(Ve.tagName), Fr = xh(Qt.tagName);
|
|
11295
|
+
return xy[Ve.namespaceURI] ? Ve.namespaceURI === sb ? Qt.namespaceURI === hm ? Cn === "svg" : Qt.namespaceURI === ob ? Cn === "svg" && (Fr === "annotation-xml" || wg[Fr]) : !!Le[Cn] : Ve.namespaceURI === ob ? Qt.namespaceURI === hm ? Cn === "math" : Qt.namespaceURI === sb ? Cn === "math" && Cy[Fr] : !!xt[Cn] : Ve.namespaceURI === hm ? Qt.namespaceURI === sb && !Cy[Fr] || Qt.namespaceURI === ob && !wg[Fr] ? !1 : !xt[Cn] && (Ne[Cn] || !Le[Cn]) : !!(yg === "application/xhtml+xml" && xy[Ve.namespaceURI]) : !1;
|
|
11296
11296
|
}, sn = function(Ve) {
|
|
11297
11297
|
lg(n.removed, { element: Ve });
|
|
11298
11298
|
try {
|
|
@@ -11300,31 +11300,31 @@ Required: ` + n.join(", "));
|
|
|
11300
11300
|
} catch {
|
|
11301
11301
|
Ve.remove();
|
|
11302
11302
|
}
|
|
11303
|
-
}, so = function(Ve,
|
|
11303
|
+
}, so = function(Ve, Qt) {
|
|
11304
11304
|
try {
|
|
11305
11305
|
lg(n.removed, {
|
|
11306
|
-
attribute:
|
|
11307
|
-
from:
|
|
11306
|
+
attribute: Qt.getAttributeNode(Ve),
|
|
11307
|
+
from: Qt
|
|
11308
11308
|
});
|
|
11309
11309
|
} catch {
|
|
11310
11310
|
lg(n.removed, {
|
|
11311
11311
|
attribute: null,
|
|
11312
|
-
from:
|
|
11312
|
+
from: Qt
|
|
11313
11313
|
});
|
|
11314
11314
|
}
|
|
11315
|
-
if (
|
|
11315
|
+
if (Qt.removeAttribute(Ve), Ve === "is" && !en[Ve])
|
|
11316
11316
|
if (ci || _d)
|
|
11317
11317
|
try {
|
|
11318
|
-
sn(
|
|
11318
|
+
sn(Qt);
|
|
11319
11319
|
} catch {
|
|
11320
11320
|
}
|
|
11321
11321
|
else
|
|
11322
11322
|
try {
|
|
11323
|
-
|
|
11323
|
+
Qt.setAttribute(Ve, "");
|
|
11324
11324
|
} catch {
|
|
11325
11325
|
}
|
|
11326
11326
|
}, tr = function(Ve) {
|
|
11327
|
-
let
|
|
11327
|
+
let Qt, Cn;
|
|
11328
11328
|
if (bg)
|
|
11329
11329
|
Ve = "<remove></remove>" + Ve;
|
|
11330
11330
|
else {
|
|
@@ -11335,30 +11335,30 @@ Required: ` + n.join(", "));
|
|
|
11335
11335
|
const Fr = we ? we.createHTML(Ve) : Ve;
|
|
11336
11336
|
if (vg === hm)
|
|
11337
11337
|
try {
|
|
11338
|
-
|
|
11338
|
+
Qt = new L().parseFromString(Fr, yg);
|
|
11339
11339
|
} catch {
|
|
11340
11340
|
}
|
|
11341
|
-
if (!
|
|
11342
|
-
|
|
11341
|
+
if (!Qt || !Qt.documentElement) {
|
|
11342
|
+
Qt = rt.createDocument(vg, "template", null);
|
|
11343
11343
|
try {
|
|
11344
|
-
|
|
11344
|
+
Qt.documentElement.innerHTML = Lx ? Me : Fr;
|
|
11345
11345
|
} catch {
|
|
11346
11346
|
}
|
|
11347
11347
|
}
|
|
11348
|
-
const Il =
|
|
11349
|
-
return Ve && Cn && Il.insertBefore(c.createTextNode(Cn), Il.childNodes[0] || null), vg === hm ? We.call(
|
|
11348
|
+
const Il = Qt.body || Qt.documentElement;
|
|
11349
|
+
return Ve && Cn && Il.insertBefore(c.createTextNode(Cn), Il.childNodes[0] || null), vg === hm ? We.call(Qt, Fa ? "html" : "body")[0] : Fa ? Qt.documentElement : Il;
|
|
11350
11350
|
}, li = function(Ve) {
|
|
11351
11351
|
return bt.call(Ve.ownerDocument || Ve, Ve, k.SHOW_ELEMENT | k.SHOW_COMMENT | k.SHOW_TEXT, null, !1);
|
|
11352
11352
|
}, Ja = function(Ve) {
|
|
11353
11353
|
return Ve instanceof M && (typeof Ve.nodeName != "string" || typeof Ve.textContent != "string" || typeof Ve.removeChild != "function" || !(Ve.attributes instanceof $) || typeof Ve.removeAttribute != "function" || typeof Ve.setAttribute != "function" || typeof Ve.namespaceURI != "string" || typeof Ve.insertBefore != "function" || typeof Ve.hasChildNodes != "function");
|
|
11354
11354
|
}, h1 = function(Ve) {
|
|
11355
11355
|
return typeof b == "object" ? Ve instanceof b : Ve && typeof Ve == "object" && typeof Ve.nodeType == "number" && typeof Ve.nodeName == "string";
|
|
11356
|
-
}, kd = function(Ve,
|
|
11356
|
+
}, kd = function(Ve, Qt, Cn) {
|
|
11357
11357
|
st[Ve] && lL(st[Ve], (Fr) => {
|
|
11358
|
-
Fr.call(n,
|
|
11358
|
+
Fr.call(n, Qt, Cn, g1);
|
|
11359
11359
|
});
|
|
11360
11360
|
}, qD = function(Ve) {
|
|
11361
|
-
let
|
|
11361
|
+
let Qt;
|
|
11362
11362
|
if (kd("beforeSanitizeElements", Ve, null), Ja(Ve))
|
|
11363
11363
|
return sn(Ve), !0;
|
|
11364
11364
|
const Cn = tl(Ve.nodeName);
|
|
@@ -11367,8 +11367,8 @@ Required: ` + n.join(", "));
|
|
|
11367
11367
|
allowedTags: ls
|
|
11368
11368
|
}), Ve.hasChildNodes() && !h1(Ve.firstElementChild) && (!h1(Ve.content) || !h1(Ve.content.firstElementChild)) && vd(/<[/\w]/g, Ve.innerHTML) && vd(/<[/\w]/g, Ve.textContent))
|
|
11369
11369
|
return sn(Ve), !0;
|
|
11370
|
-
if (!ls[Cn] ||
|
|
11371
|
-
if (!
|
|
11370
|
+
if (!ls[Cn] || Kt[Cn]) {
|
|
11371
|
+
if (!Kt[Cn] && KD(Cn) && (oo.tagNameCheck instanceof RegExp && vd(oo.tagNameCheck, Cn) || oo.tagNameCheck instanceof Function && oo.tagNameCheck(Cn)))
|
|
11372
11372
|
return !1;
|
|
11373
11373
|
if (lr && !f1[Cn]) {
|
|
11374
11374
|
const Fr = xe(Ve) || Ve.parentNode, Il = pe(Ve) || Ve.childNodes;
|
|
@@ -11380,17 +11380,17 @@ Required: ` + n.join(", "));
|
|
|
11380
11380
|
}
|
|
11381
11381
|
return sn(Ve), !0;
|
|
11382
11382
|
}
|
|
11383
|
-
return Ve instanceof y && !ft(Ve) || (Cn === "noscript" || Cn === "noembed" || Cn === "noframes") && vd(/<\/no(script|embed|frames)/i, Ve.innerHTML) ? (sn(Ve), !0) : (gs && Ve.nodeType === 3 && (
|
|
11384
|
-
}, pT = function(Ve,
|
|
11385
|
-
if (Ao && (
|
|
11383
|
+
return Ve instanceof y && !ft(Ve) || (Cn === "noscript" || Cn === "noembed" || Cn === "noframes") && vd(/<\/no(script|embed|frames)/i, Ve.innerHTML) ? (sn(Ve), !0) : (gs && Ve.nodeType === 3 && (Qt = Ve.textContent, Qt = sm(Qt, Zt, " "), Qt = sm(Qt, rn, " "), Qt = sm(Qt, qn, " "), Ve.textContent !== Qt && (lg(n.removed, { element: Ve.cloneNode() }), Ve.textContent = Qt)), kd("afterSanitizeElements", Ve, null), !1);
|
|
11384
|
+
}, pT = function(Ve, Qt, Cn) {
|
|
11385
|
+
if (Ao && (Qt === "id" || Qt === "name") && (Cn in c || Cn in GD))
|
|
11386
11386
|
return !1;
|
|
11387
|
-
if (!(Rn && !Dn[
|
|
11388
|
-
if (!(yt && vd(fs,
|
|
11389
|
-
if (!en[
|
|
11390
|
-
if (!(KD(Ve) && (oo.tagNameCheck instanceof RegExp && vd(oo.tagNameCheck, Ve) || oo.tagNameCheck instanceof Function && oo.tagNameCheck(Ve)) && (oo.attributeNameCheck instanceof RegExp && vd(oo.attributeNameCheck,
|
|
11391
|
-
} else if (!wy[
|
|
11387
|
+
if (!(Rn && !Dn[Qt] && vd(Wn, Qt))) {
|
|
11388
|
+
if (!(yt && vd(fs, Qt))) {
|
|
11389
|
+
if (!en[Qt] || Dn[Qt]) {
|
|
11390
|
+
if (!(KD(Ve) && (oo.tagNameCheck instanceof RegExp && vd(oo.tagNameCheck, Ve) || oo.tagNameCheck instanceof Function && oo.tagNameCheck(Ve)) && (oo.attributeNameCheck instanceof RegExp && vd(oo.attributeNameCheck, Qt) || oo.attributeNameCheck instanceof Function && oo.attributeNameCheck(Qt)) || Qt === "is" && oo.allowCustomizedBuiltInElements && (oo.tagNameCheck instanceof RegExp && vd(oo.tagNameCheck, Cn) || oo.tagNameCheck instanceof Function && oo.tagNameCheck(Cn)))) return !1;
|
|
11391
|
+
} else if (!wy[Qt]) {
|
|
11392
11392
|
if (!vd(Rc, sm(Cn, Lr, ""))) {
|
|
11393
|
-
if (!((
|
|
11393
|
+
if (!((Qt === "src" || Qt === "xlink:href" || Qt === "href") && Ve !== "script" && E$(Cn, "data:") === 0 && nb[Ve])) {
|
|
11394
11394
|
if (!(xo && !vd(Ds, sm(Cn, Lr, "")))) {
|
|
11395
11395
|
if (Cn)
|
|
11396
11396
|
return !1;
|
|
@@ -11404,7 +11404,7 @@ Required: ` + n.join(", "));
|
|
|
11404
11404
|
}, KD = function(Ve) {
|
|
11405
11405
|
return Ve.indexOf("-") > 0;
|
|
11406
11406
|
}, YD = function(Ve) {
|
|
11407
|
-
let
|
|
11407
|
+
let Qt, Cn, Fr, Il;
|
|
11408
11408
|
kd("beforeSanitizeAttributes", Ve, null);
|
|
11409
11409
|
const { attributes: Td } = Ve;
|
|
11410
11410
|
if (!Td)
|
|
@@ -11416,9 +11416,9 @@ Required: ` + n.join(", "));
|
|
|
11416
11416
|
allowedAttributes: en
|
|
11417
11417
|
};
|
|
11418
11418
|
for (Il = Td.length; Il--; ) {
|
|
11419
|
-
|
|
11420
|
-
const { name: pm, namespaceURI: bT } =
|
|
11421
|
-
Cn = pm === "value" ?
|
|
11419
|
+
Qt = Td[Il];
|
|
11420
|
+
const { name: pm, namespaceURI: bT } = Qt;
|
|
11421
|
+
Cn = pm === "value" ? Qt.value : iL(Qt.value);
|
|
11422
11422
|
const yj = Cn;
|
|
11423
11423
|
if (Fr = tl(pm), Ha.attrName = Fr, Ha.attrValue = Cn, Ha.keepAttr = !0, Ha.forceKeepAttr = void 0, kd("uponSanitizeAttribute", Ve, Ha), Cn = Ha.attrValue, Ha.forceKeepAttr)
|
|
11424
11424
|
continue;
|
|
@@ -11456,14 +11456,14 @@ Required: ` + n.join(", "));
|
|
|
11456
11456
|
}
|
|
11457
11457
|
kd("afterSanitizeAttributes", Ve, null);
|
|
11458
11458
|
}, vj = function to(Ve) {
|
|
11459
|
-
let
|
|
11459
|
+
let Qt;
|
|
11460
11460
|
const Cn = li(Ve);
|
|
11461
|
-
for (kd("beforeSanitizeShadowDOM", Ve, null);
|
|
11462
|
-
kd("uponSanitizeShadowNode",
|
|
11461
|
+
for (kd("beforeSanitizeShadowDOM", Ve, null); Qt = Cn.nextNode(); )
|
|
11462
|
+
kd("uponSanitizeShadowNode", Qt, null), !qD(Qt) && (Qt.content instanceof u && to(Qt.content), YD(Qt));
|
|
11463
11463
|
kd("afterSanitizeShadowDOM", Ve, null);
|
|
11464
11464
|
};
|
|
11465
11465
|
return n.sanitize = function(to) {
|
|
11466
|
-
let Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
|
11466
|
+
let Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Qt, Cn, Fr, Il;
|
|
11467
11467
|
if (Lx = !to, Lx && (to = "<!-->"), typeof to != "string" && !h1(to))
|
|
11468
11468
|
if (typeof to.toString == "function") {
|
|
11469
11469
|
if (to = to.toString(), typeof to != "string")
|
|
@@ -11475,42 +11475,42 @@ Required: ` + n.join(", "));
|
|
|
11475
11475
|
if (gm || Vx(Ve), n.removed = [], typeof to == "string" && (Hi = !1), Hi) {
|
|
11476
11476
|
if (to.nodeName) {
|
|
11477
11477
|
const pm = tl(to.nodeName);
|
|
11478
|
-
if (!ls[pm] ||
|
|
11478
|
+
if (!ls[pm] || Kt[pm])
|
|
11479
11479
|
throw jv("root node is forbidden and cannot be sanitized in-place");
|
|
11480
11480
|
}
|
|
11481
11481
|
} else if (to instanceof b)
|
|
11482
|
-
|
|
11482
|
+
Qt = tr("<!---->"), Cn = Qt.ownerDocument.importNode(to, !0), Cn.nodeType === 1 && Cn.nodeName === "BODY" || Cn.nodeName === "HTML" ? Qt = Cn : Qt.appendChild(Cn);
|
|
11483
11483
|
else {
|
|
11484
11484
|
if (!ci && !gs && !Fa && to.indexOf("<") === -1)
|
|
11485
11485
|
return we && Bn ? we.createHTML(to) : to;
|
|
11486
|
-
if (
|
|
11486
|
+
if (Qt = tr(to), !Qt)
|
|
11487
11487
|
return ci ? null : Bn ? Me : "";
|
|
11488
11488
|
}
|
|
11489
|
-
|
|
11490
|
-
const Td = li(Hi ? to :
|
|
11489
|
+
Qt && bg && sn(Qt.firstChild);
|
|
11490
|
+
const Td = li(Hi ? to : Qt);
|
|
11491
11491
|
for (; Fr = Td.nextNode(); )
|
|
11492
11492
|
qD(Fr) || (Fr.content instanceof u && vj(Fr.content), YD(Fr));
|
|
11493
11493
|
if (Hi)
|
|
11494
11494
|
return to;
|
|
11495
11495
|
if (ci) {
|
|
11496
11496
|
if (_d)
|
|
11497
|
-
for (Il = It.call(
|
|
11498
|
-
Il.appendChild(
|
|
11497
|
+
for (Il = It.call(Qt.ownerDocument); Qt.firstChild; )
|
|
11498
|
+
Il.appendChild(Qt.firstChild);
|
|
11499
11499
|
else
|
|
11500
|
-
Il =
|
|
11500
|
+
Il = Qt;
|
|
11501
11501
|
return (en.shadowroot || en.shadowrootmode) && (Il = He.call(o, Il, !0)), Il;
|
|
11502
11502
|
}
|
|
11503
|
-
let Ha = Fa ?
|
|
11504
|
-
return Fa && ls["!doctype"] &&
|
|
11503
|
+
let Ha = Fa ? Qt.outerHTML : Qt.innerHTML;
|
|
11504
|
+
return Fa && ls["!doctype"] && Qt.ownerDocument && Qt.ownerDocument.doctype && Qt.ownerDocument.doctype.name && vd(v_, Qt.ownerDocument.doctype.name) && (Ha = "<!DOCTYPE " + Qt.ownerDocument.doctype.name + `>
|
|
11505
11505
|
` + Ha), gs && (Ha = sm(Ha, Zt, " "), Ha = sm(Ha, rn, " "), Ha = sm(Ha, qn, " ")), we && Bn ? we.createHTML(Ha) : Ha;
|
|
11506
11506
|
}, n.setConfig = function(to) {
|
|
11507
11507
|
Vx(to), gm = !0;
|
|
11508
11508
|
}, n.clearConfig = function() {
|
|
11509
11509
|
g1 = null, gm = !1;
|
|
11510
|
-
}, n.isValidAttribute = function(to, Ve,
|
|
11510
|
+
}, n.isValidAttribute = function(to, Ve, Qt) {
|
|
11511
11511
|
g1 || Vx({});
|
|
11512
11512
|
const Cn = tl(to), Fr = tl(Ve);
|
|
11513
|
-
return pT(Cn, Fr,
|
|
11513
|
+
return pT(Cn, Fr, Qt);
|
|
11514
11514
|
}, n.addHook = function(to, Ve) {
|
|
11515
11515
|
typeof Ve == "function" && (st[to] = st[to] || [], lg(st[to], Ve));
|
|
11516
11516
|
}, n.removeHook = function(to) {
|
|
@@ -12543,9 +12543,9 @@ Required: ` + n.join(", "));
|
|
|
12543
12543
|
en.collapse(!!St), Me(en);
|
|
12544
12544
|
}, xe = () => n.getSelection ? n.getSelection() : n.document.selection, we = () => {
|
|
12545
12545
|
let St;
|
|
12546
|
-
const en = (oo,
|
|
12546
|
+
const en = (oo, Kt, Dn) => {
|
|
12547
12547
|
try {
|
|
12548
|
-
return
|
|
12548
|
+
return Kt.compareBoundaryPoints(oo, Dn);
|
|
12549
12549
|
} catch {
|
|
12550
12550
|
return -1;
|
|
12551
12551
|
}
|
|
@@ -12553,7 +12553,7 @@ Required: ` + n.join(", "));
|
|
|
12553
12553
|
if (Fe(r.bookmark) && !Up(r)) {
|
|
12554
12554
|
const oo = f4(r);
|
|
12555
12555
|
if (oo.isSome())
|
|
12556
|
-
return oo.map((
|
|
12556
|
+
return oo.map((Kt) => y4(r, [Kt])[0]).getOr(Zn.createRange());
|
|
12557
12557
|
}
|
|
12558
12558
|
try {
|
|
12559
12559
|
const oo = xe();
|
|
@@ -12581,8 +12581,8 @@ Required: ` + n.join(", "));
|
|
|
12581
12581
|
en === !1 && Zn.extend && (Zn.collapse(St.endContainer, St.endOffset), Zn.extend(St.startContainer, St.startOffset)), c = Zn.rangeCount > 0 ? Zn.getRangeAt(0) : null;
|
|
12582
12582
|
}
|
|
12583
12583
|
if (!St.collapsed && St.startContainer === St.endContainer && (Zn != null && Zn.setBaseAndExtent) && St.endOffset - St.startOffset < 2 && St.startContainer.hasChildNodes()) {
|
|
12584
|
-
const
|
|
12585
|
-
|
|
12584
|
+
const Kt = St.startContainer.childNodes[St.startOffset];
|
|
12585
|
+
Kt && Kt.nodeName === "IMG" && (Zn.setBaseAndExtent(St.startContainer, St.startOffset, St.endContainer, St.endOffset), (Zn.anchorNode !== St.startContainer || Zn.focusNode !== St.endContainer) && Zn.setBaseAndExtent(Kt, 0, Kt, 1));
|
|
12586
12586
|
}
|
|
12587
12587
|
r.dispatch("AfterSetSelectionRange", {
|
|
12588
12588
|
range: St,
|
|
@@ -12592,13 +12592,13 @@ Required: ` + n.join(", "));
|
|
|
12592
12592
|
const St = xe(), en = St == null ? void 0 : St.anchorNode, Zn = St == null ? void 0 : St.focusNode;
|
|
12593
12593
|
if (!St || !en || !Zn || Su(en) || Su(Zn))
|
|
12594
12594
|
return !0;
|
|
12595
|
-
const oo = e.createRng(),
|
|
12595
|
+
const oo = e.createRng(), Kt = e.createRng();
|
|
12596
12596
|
try {
|
|
12597
|
-
oo.setStart(en, St.anchorOffset), oo.collapse(!0),
|
|
12597
|
+
oo.setStart(en, St.anchorOffset), oo.collapse(!0), Kt.setStart(Zn, St.focusOffset), Kt.collapse(!0);
|
|
12598
12598
|
} catch {
|
|
12599
12599
|
return !0;
|
|
12600
12600
|
}
|
|
12601
|
-
return oo.compareBoundaryPoints(oo.START_TO_START,
|
|
12601
|
+
return oo.compareBoundaryPoints(oo.START_TO_START, Kt) <= 0;
|
|
12602
12602
|
}, Lr = {
|
|
12603
12603
|
dom: e,
|
|
12604
12604
|
win: n,
|
|
@@ -17652,19 +17652,19 @@ Input object: ` + CO(e.input), kO = (e, n) => AB(e, mo(n, _O)), zB = nt(LB), hk
|
|
|
17652
17652
|
}, OW = (e) => {
|
|
17653
17653
|
AW(e);
|
|
17654
17654
|
}, DW = (e) => {
|
|
17655
|
-
const n = ct.each, o = Vt.BACKSPACE, r = Vt.DELETE, c = e.dom, u = e.selection, f = e.parser, b = Bt.browser, y = b.isFirefox(), k = b.isChromium() || b.isSafari(), $ = Bt.deviceType.isiPhone() || Bt.deviceType.isiPad(), M = Bt.os.isMacOS() || Bt.os.isiOS(), L = (
|
|
17655
|
+
const n = ct.each, o = Vt.BACKSPACE, r = Vt.DELETE, c = e.dom, u = e.selection, f = e.parser, b = Bt.browser, y = b.isFirefox(), k = b.isChromium() || b.isSafari(), $ = Bt.deviceType.isiPhone() || Bt.deviceType.isiPad(), M = Bt.os.isMacOS() || Bt.os.isiOS(), L = (Kt, Dn) => {
|
|
17656
17656
|
try {
|
|
17657
|
-
e.getDoc().execCommand(
|
|
17657
|
+
e.getDoc().execCommand(Kt, !1, String(Dn));
|
|
17658
17658
|
} catch {
|
|
17659
17659
|
}
|
|
17660
|
-
}, X = (
|
|
17661
|
-
const
|
|
17660
|
+
}, X = (Kt) => Kt.isDefaultPrevented(), te = () => {
|
|
17661
|
+
const Kt = (yt) => {
|
|
17662
17662
|
const Rn = c.create("body"), xo = yt.cloneContents();
|
|
17663
17663
|
return Rn.appendChild(xo), u.serializer.serialize(Rn, { format: "html" });
|
|
17664
17664
|
}, Dn = (yt) => {
|
|
17665
|
-
const Rn =
|
|
17665
|
+
const Rn = Kt(yt), xo = c.createRng();
|
|
17666
17666
|
xo.selectNode(e.getBody());
|
|
17667
|
-
const Ss =
|
|
17667
|
+
const Ss = Kt(xo);
|
|
17668
17668
|
return Rn === Ss;
|
|
17669
17669
|
};
|
|
17670
17670
|
e.on("keydown", (yt) => {
|
|
@@ -17679,34 +17679,34 @@ Input object: ` + CO(e.input), kO = (e, n) => AB(e, mo(n, _O)), zB = nt(LB), hk
|
|
|
17679
17679
|
}, G = () => {
|
|
17680
17680
|
e.shortcuts.add("meta+a", null, "SelectAll");
|
|
17681
17681
|
}, ne = () => {
|
|
17682
|
-
e.inline || c.bind(e.getDoc(), "mousedown mouseup", (
|
|
17682
|
+
e.inline || c.bind(e.getDoc(), "mousedown mouseup", (Kt) => {
|
|
17683
17683
|
let Dn;
|
|
17684
|
-
if (
|
|
17685
|
-
if (Dn = u.getRng(), e.getBody().focus(),
|
|
17684
|
+
if (Kt.target === e.getDoc().documentElement)
|
|
17685
|
+
if (Dn = u.getRng(), e.getBody().focus(), Kt.type === "mousedown") {
|
|
17686
17686
|
if (on(Dn.startContainer))
|
|
17687
17687
|
return;
|
|
17688
|
-
u.placeCaretAt(
|
|
17688
|
+
u.placeCaretAt(Kt.clientX, Kt.clientY);
|
|
17689
17689
|
} else
|
|
17690
17690
|
u.setRng(Dn);
|
|
17691
17691
|
});
|
|
17692
17692
|
}, pe = () => {
|
|
17693
|
-
e.on("keydown", (
|
|
17694
|
-
if (!X(
|
|
17693
|
+
e.on("keydown", (Kt) => {
|
|
17694
|
+
if (!X(Kt) && Kt.keyCode === o) {
|
|
17695
17695
|
if (!e.getBody().getElementsByTagName("hr").length)
|
|
17696
17696
|
return;
|
|
17697
17697
|
if (u.isCollapsed() && u.getRng().startOffset === 0) {
|
|
17698
17698
|
const Dn = u.getNode(), yt = Dn.previousSibling;
|
|
17699
17699
|
if (Dn.nodeName === "HR") {
|
|
17700
|
-
c.remove(Dn),
|
|
17700
|
+
c.remove(Dn), Kt.preventDefault();
|
|
17701
17701
|
return;
|
|
17702
17702
|
}
|
|
17703
|
-
yt && yt.nodeName && yt.nodeName.toLowerCase() === "hr" && (c.remove(yt),
|
|
17703
|
+
yt && yt.nodeName && yt.nodeName.toLowerCase() === "hr" && (c.remove(yt), Kt.preventDefault());
|
|
17704
17704
|
}
|
|
17705
17705
|
}
|
|
17706
17706
|
});
|
|
17707
17707
|
}, xe = () => {
|
|
17708
|
-
Range.prototype.getClientRects || e.on("mousedown", (
|
|
17709
|
-
if (!X(
|
|
17708
|
+
Range.prototype.getClientRects || e.on("mousedown", (Kt) => {
|
|
17709
|
+
if (!X(Kt) && Kt.target.nodeName === "HTML") {
|
|
17710
17710
|
const Dn = e.getBody();
|
|
17711
17711
|
Dn.blur(), Iu.setEditorTimeout(e, () => {
|
|
17712
17712
|
Dn.focus();
|
|
@@ -17714,13 +17714,13 @@ Input object: ` + CO(e.input), kO = (e, n) => AB(e, mo(n, _O)), zB = nt(LB), hk
|
|
|
17714
17714
|
}
|
|
17715
17715
|
});
|
|
17716
17716
|
}, we = () => {
|
|
17717
|
-
const
|
|
17717
|
+
const Kt = MC(e);
|
|
17718
17718
|
e.on("click", (Dn) => {
|
|
17719
17719
|
const yt = Dn.target;
|
|
17720
|
-
/^(IMG|HR)$/.test(yt.nodeName) && c.isEditable(yt) && (Dn.preventDefault(), e.selection.select(yt), e.nodeChanged()), yt.nodeName === "A" && c.hasClass(yt,
|
|
17720
|
+
/^(IMG|HR)$/.test(yt.nodeName) && c.isEditable(yt) && (Dn.preventDefault(), e.selection.select(yt), e.nodeChanged()), yt.nodeName === "A" && c.hasClass(yt, Kt) && yt.childNodes.length === 0 && c.isEditable(yt.parentNode) && (Dn.preventDefault(), u.select(yt));
|
|
17721
17721
|
});
|
|
17722
17722
|
}, Me = () => {
|
|
17723
|
-
const
|
|
17723
|
+
const Kt = () => {
|
|
17724
17724
|
const yt = c.getAttribs(u.getStart().cloneNode(!1));
|
|
17725
17725
|
return () => {
|
|
17726
17726
|
const Rn = u.getStart();
|
|
@@ -17731,27 +17731,27 @@ Input object: ` + CO(e.input), kO = (e, n) => AB(e, mo(n, _O)), zB = nt(LB), hk
|
|
|
17731
17731
|
}, Dn = () => !u.isCollapsed() && c.getParent(u.getStart(), c.isBlock) !== c.getParent(u.getEnd(), c.isBlock);
|
|
17732
17732
|
e.on("keypress", (yt) => {
|
|
17733
17733
|
let Rn;
|
|
17734
|
-
return !X(yt) && (yt.keyCode === 8 || yt.keyCode === 46) && Dn() ? (Rn =
|
|
17734
|
+
return !X(yt) && (yt.keyCode === 8 || yt.keyCode === 46) && Dn() ? (Rn = Kt(), e.getDoc().execCommand("delete", !1), Rn(), yt.preventDefault(), !1) : !0;
|
|
17735
17735
|
}), c.bind(e.getDoc(), "cut", (yt) => {
|
|
17736
17736
|
if (!X(yt) && Dn()) {
|
|
17737
|
-
const Rn =
|
|
17737
|
+
const Rn = Kt();
|
|
17738
17738
|
Iu.setEditorTimeout(e, () => {
|
|
17739
17739
|
Rn();
|
|
17740
17740
|
});
|
|
17741
17741
|
}
|
|
17742
17742
|
});
|
|
17743
17743
|
}, rt = () => {
|
|
17744
|
-
e.on("keydown", (
|
|
17745
|
-
if (!X(
|
|
17744
|
+
e.on("keydown", (Kt) => {
|
|
17745
|
+
if (!X(Kt) && Kt.keyCode === o && u.isCollapsed() && u.getRng().startOffset === 0) {
|
|
17746
17746
|
const Dn = u.getNode().previousSibling;
|
|
17747
17747
|
if (Dn && Dn.nodeName && Dn.nodeName.toLowerCase() === "table")
|
|
17748
|
-
return
|
|
17748
|
+
return Kt.preventDefault(), !1;
|
|
17749
17749
|
}
|
|
17750
17750
|
return !0;
|
|
17751
17751
|
});
|
|
17752
17752
|
}, bt = () => {
|
|
17753
|
-
e.on("keydown", (
|
|
17754
|
-
if (X(
|
|
17753
|
+
e.on("keydown", (Kt) => {
|
|
17754
|
+
if (X(Kt) || Kt.keyCode !== Vt.BACKSPACE)
|
|
17755
17755
|
return;
|
|
17756
17756
|
let Dn = u.getRng();
|
|
17757
17757
|
const yt = Dn.startContainer, Rn = Dn.startOffset, xo = c.getRoot();
|
|
@@ -17763,12 +17763,12 @@ Input object: ` + CO(e.input), kO = (e, n) => AB(e, mo(n, _O)), zB = nt(LB), hk
|
|
|
17763
17763
|
}
|
|
17764
17764
|
});
|
|
17765
17765
|
}, It = () => {
|
|
17766
|
-
const
|
|
17766
|
+
const Kt = () => {
|
|
17767
17767
|
L("StyleWithCSS", !1), L("enableInlineTableEditing", !1), hp(e) || L("enableObjectResizing", !1);
|
|
17768
17768
|
};
|
|
17769
|
-
q1(e) || e.on("BeforeExecCommand mousedown",
|
|
17769
|
+
q1(e) || e.on("BeforeExecCommand mousedown", Kt);
|
|
17770
17770
|
}, We = () => {
|
|
17771
|
-
const
|
|
17771
|
+
const Kt = () => {
|
|
17772
17772
|
n(c.select("a:not([data-mce-block])"), (Dn) => {
|
|
17773
17773
|
var yt;
|
|
17774
17774
|
let Rn = Dn.parentNode;
|
|
@@ -17784,18 +17784,18 @@ Input object: ` + CO(e.input), kO = (e, n) => AB(e, mo(n, _O)), zB = nt(LB), hk
|
|
|
17784
17784
|
});
|
|
17785
17785
|
};
|
|
17786
17786
|
e.on("SetContent ExecCommand", (Dn) => {
|
|
17787
|
-
(Dn.type === "setcontent" || Dn.command === "mceInsertLink") &&
|
|
17787
|
+
(Dn.type === "setcontent" || Dn.command === "mceInsertLink") && Kt();
|
|
17788
17788
|
});
|
|
17789
17789
|
}, He = () => {
|
|
17790
17790
|
e.on("init", () => {
|
|
17791
17791
|
L("DefaultParagraphSeparator", Kc(e));
|
|
17792
17792
|
});
|
|
17793
|
-
}, st = (
|
|
17794
|
-
const Dn =
|
|
17793
|
+
}, st = (Kt) => {
|
|
17794
|
+
const Dn = Kt.getBody(), yt = Kt.selection.getRng();
|
|
17795
17795
|
return yt.startContainer === yt.endContainer && yt.startContainer === Dn && yt.startOffset === 0 && yt.endOffset === Dn.childNodes.length;
|
|
17796
17796
|
}, Zt = () => {
|
|
17797
|
-
e.on("keyup focusin mouseup", (
|
|
17798
|
-
!Vt.modifierPressed(
|
|
17797
|
+
e.on("keyup focusin mouseup", (Kt) => {
|
|
17798
|
+
!Vt.modifierPressed(Kt) && !st(e) && u.normalize();
|
|
17799
17799
|
}, !0);
|
|
17800
17800
|
}, rn = () => {
|
|
17801
17801
|
e.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}");
|
|
@@ -17804,48 +17804,48 @@ Input object: ` + CO(e.input), kO = (e, n) => AB(e, mo(n, _O)), zB = nt(LB), hk
|
|
|
17804
17804
|
document.activeElement === document.body && e.getWin().focus();
|
|
17805
17805
|
});
|
|
17806
17806
|
}, Wn = () => {
|
|
17807
|
-
e.inline || (e.contentStyles.push("body {min-height: 150px}"), e.on("click", (
|
|
17807
|
+
e.inline || (e.contentStyles.push("body {min-height: 150px}"), e.on("click", (Kt) => {
|
|
17808
17808
|
let Dn;
|
|
17809
|
-
|
|
17809
|
+
Kt.target.nodeName === "HTML" && (Dn = e.selection.getRng(), e.getBody().focus(), e.selection.setRng(Dn), e.selection.normalize(), e.nodeChanged());
|
|
17810
17810
|
}));
|
|
17811
17811
|
}, fs = () => {
|
|
17812
|
-
M && e.on("keydown", (
|
|
17813
|
-
Vt.metaKeyPressed(
|
|
17812
|
+
M && e.on("keydown", (Kt) => {
|
|
17813
|
+
Vt.metaKeyPressed(Kt) && !Kt.shiftKey && (Kt.keyCode === 37 || Kt.keyCode === 39) && (Kt.preventDefault(), e.selection.getSel().modify("move", Kt.keyCode === 37 ? "backward" : "forward", "lineboundary"));
|
|
17814
17814
|
});
|
|
17815
17815
|
}, Ds = () => {
|
|
17816
|
-
e.on("click", (
|
|
17817
|
-
let Dn =
|
|
17816
|
+
e.on("click", (Kt) => {
|
|
17817
|
+
let Dn = Kt.target;
|
|
17818
17818
|
do
|
|
17819
17819
|
if (Dn.tagName === "A") {
|
|
17820
|
-
|
|
17820
|
+
Kt.preventDefault();
|
|
17821
17821
|
return;
|
|
17822
17822
|
}
|
|
17823
17823
|
while (Dn = Dn.parentNode);
|
|
17824
17824
|
}), e.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}");
|
|
17825
17825
|
}, Lr = () => {
|
|
17826
17826
|
e.on("init", () => {
|
|
17827
|
-
e.dom.bind(e.getBody(), "submit", (
|
|
17828
|
-
|
|
17827
|
+
e.dom.bind(e.getBody(), "submit", (Kt) => {
|
|
17828
|
+
Kt.preventDefault();
|
|
17829
17829
|
});
|
|
17830
17830
|
});
|
|
17831
17831
|
}, Rc = () => {
|
|
17832
|
-
f.addNodeFilter("br", (
|
|
17833
|
-
let Dn =
|
|
17832
|
+
f.addNodeFilter("br", (Kt) => {
|
|
17833
|
+
let Dn = Kt.length;
|
|
17834
17834
|
for (; Dn--; )
|
|
17835
|
-
|
|
17835
|
+
Kt[Dn].attr("class") === "Apple-interchange-newline" && Kt[Dn].remove();
|
|
17836
17836
|
});
|
|
17837
17837
|
}, ls = Ge, St = () => {
|
|
17838
17838
|
if (!y || e.removed)
|
|
17839
17839
|
return !1;
|
|
17840
|
-
const
|
|
17841
|
-
return !
|
|
17840
|
+
const Kt = e.selection.getSel();
|
|
17841
|
+
return !Kt || !Kt.rangeCount || Kt.rangeCount === 0;
|
|
17842
17842
|
}, en = () => {
|
|
17843
17843
|
k && (ne(), we(), Lr(), G(), $ && (qn(), Wn(), Ds())), y && (xe(), It(), rn(), fs());
|
|
17844
17844
|
}, Zn = () => {
|
|
17845
|
-
e.on("drop", (
|
|
17845
|
+
e.on("drop", (Kt) => {
|
|
17846
17846
|
var Dn;
|
|
17847
|
-
const yt = (Dn =
|
|
17848
|
-
me(yt) && /^<img[^>]*>$/.test(yt) && e.dispatch("dragend", new window.DragEvent("dragend",
|
|
17847
|
+
const yt = (Dn = Kt.dataTransfer) === null || Dn === void 0 ? void 0 : Dn.getData("text/html");
|
|
17848
|
+
me(yt) && /^<img[^>]*>$/.test(yt) && e.dispatch("dragend", new window.DragEvent("dragend", Kt));
|
|
17849
17849
|
});
|
|
17850
17850
|
}, oo = () => {
|
|
17851
17851
|
bt(), te(), Bt.windowsPhone || Zt(), k && (ne(), we(), He(), Lr(), rt(), Rc(), $ ? (qn(), Wn(), Ds()) : G()), y && (pe(), xe(), Me(), It(), We(), rn(), fs(), rt(), Zn());
|
|
@@ -18440,7 +18440,7 @@ Input object: ` + CO(e.input), kO = (e, n) => AB(e, mo(n, _O)), zB = nt(LB), hk
|
|
|
18440
18440
|
}), xZ = (e) => z.from(e.selection.getRng()).bind((n) => {
|
|
18441
18441
|
const o = e.getBody();
|
|
18442
18442
|
return n.startContainer === o && n.startOffset === 0 ? z.none() : z.from(e.selection.getStart(!0));
|
|
18443
|
-
}), CZ = (e, n) => xZ(e).orThunk(ot(wZ, e)).map(ae.fromDom).filter(Na).bind(n), sT = (e, n) => CZ(e,
|
|
18443
|
+
}), CZ = (e, n) => xZ(e).orThunk(ot(wZ, e)).map(ae.fromDom).filter(Na).bind(n), sT = (e, n) => CZ(e, Jt(z.some, n)), rT = (e, n) => {
|
|
18444
18444
|
if (/^[0-9.]+$/.test(n)) {
|
|
18445
18445
|
const o = parseInt(n, 10);
|
|
18446
18446
|
if (o >= 1 && o <= 7) {
|
|
@@ -20012,8 +20012,8 @@ tinymce.IconManager.add("default", {
|
|
|
20012
20012
|
}, ce = (t) => {
|
|
20013
20013
|
const s = typeof t;
|
|
20014
20014
|
return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" && ve(t, String, (a, l) => l.isPrototypeOf(a)) ? "string" : s;
|
|
20015
|
-
}, $e = (t) => (s) => ce(s) === t, ye = (t) => (s) => typeof s === t, Q = (t) => (s) => t === s, De = (t, s) => Ue(t) && ve(t, s, (a, l) => B(a) === l), ee = $e("string"), Ue = $e("object"), Ct = (t) => De(t, Object),
|
|
20016
|
-
if (
|
|
20015
|
+
}, $e = (t) => (s) => ce(s) === t, ye = (t) => (s) => typeof s === t, Q = (t) => (s) => t === s, De = (t, s) => Ue(t) && ve(t, s, (a, l) => B(a) === l), ee = $e("string"), Ue = $e("object"), Ct = (t) => De(t, Object), Gt = $e("array"), Sn = Q(null), zn = ye("boolean"), Uo = Q(void 0), ir = (t) => t == null, $o = (t) => !ir(t), Mt = ye("function"), ur = ye("number"), dn = (t, s) => {
|
|
20016
|
+
if (Gt(t)) {
|
|
20017
20017
|
for (let a = 0, l = t.length; a < l; ++a)
|
|
20018
20018
|
if (!s(t[a]))
|
|
20019
20019
|
return !1;
|
|
@@ -20102,7 +20102,7 @@ tinymce.IconManager.add("default", {
|
|
|
20102
20102
|
}
|
|
20103
20103
|
}
|
|
20104
20104
|
A.singletonNone = new A(!1);
|
|
20105
|
-
const
|
|
20105
|
+
const Jt = Array.prototype.slice, nt = Array.prototype.indexOf, No = Array.prototype.push, mn = (t, s) => nt.call(t, s), ot = (t, s) => {
|
|
20106
20106
|
const a = mn(t, s);
|
|
20107
20107
|
return a === -1 ? A.none() : A.some(a);
|
|
20108
20108
|
}, Wo = (t, s) => mn(t, s) > -1, dr = (t, s) => {
|
|
@@ -20120,7 +20120,7 @@ tinymce.IconManager.add("default", {
|
|
|
20120
20120
|
}, pr = (t, s) => {
|
|
20121
20121
|
const a = [];
|
|
20122
20122
|
for (let l = 0; l < t.length; l += s) {
|
|
20123
|
-
const d =
|
|
20123
|
+
const d = Jt.call(t, l, l + s);
|
|
20124
20124
|
a.push(d);
|
|
20125
20125
|
}
|
|
20126
20126
|
return a;
|
|
@@ -20181,7 +20181,7 @@ tinymce.IconManager.add("default", {
|
|
|
20181
20181
|
}, Ke = (t) => {
|
|
20182
20182
|
const s = [];
|
|
20183
20183
|
for (let a = 0, l = t.length; a < l; ++a) {
|
|
20184
|
-
if (!
|
|
20184
|
+
if (!Gt(t[a]))
|
|
20185
20185
|
throw new Error("Arr.flatten item " + a + " was not an array, input: " + t);
|
|
20186
20186
|
No.apply(s, t[a]);
|
|
20187
20187
|
}
|
|
@@ -20194,7 +20194,7 @@ tinymce.IconManager.add("default", {
|
|
|
20194
20194
|
}
|
|
20195
20195
|
return !0;
|
|
20196
20196
|
}, Zo = (t) => {
|
|
20197
|
-
const s =
|
|
20197
|
+
const s = Jt.call(t, 0);
|
|
20198
20198
|
return s.reverse(), s;
|
|
20199
20199
|
}, Ft = (t, s) => Qn(t, (a) => !Wo(s, a)), kr = (t, s) => {
|
|
20200
20200
|
const a = {};
|
|
@@ -20204,9 +20204,9 @@ tinymce.IconManager.add("default", {
|
|
|
20204
20204
|
}
|
|
20205
20205
|
return a;
|
|
20206
20206
|
}, Bo = (t) => [t], Va = (t, s) => {
|
|
20207
|
-
const a =
|
|
20207
|
+
const a = Jt.call(t, 0);
|
|
20208
20208
|
return a.sort(s), a;
|
|
20209
|
-
}, hs = (t, s) => s >= 0 && s < t.length ? A.some(t[s]) : A.none(), br = (t) => hs(t, 0), bl = (t) => hs(t, t.length - 1), vr = Mt(Array.from) ? Array.from : (t) =>
|
|
20209
|
+
}, hs = (t, s) => s >= 0 && s < t.length ? A.some(t[s]) : A.none(), br = (t) => hs(t, 0), bl = (t) => hs(t, t.length - 1), vr = Mt(Array.from) ? Array.from : (t) => Jt.call(t), Js = (t, s) => {
|
|
20210
20210
|
for (let a = 0; a < t.length; a++) {
|
|
20211
20211
|
const l = s(t[a], a);
|
|
20212
20212
|
if (l.isSome())
|
|
@@ -21007,13 +21007,13 @@ tinymce.IconManager.add("default", {
|
|
|
21007
21007
|
}, S = (t, s) => sr.serror([{
|
|
21008
21008
|
path: t,
|
|
21009
21009
|
getErrorInfo: s
|
|
21010
|
-
}]), R = (t, s, a) => S(t, () => 'Could not find valid *required* value for "' + s + '" in ' + Lg(a)), U = (t, s) => S(t, () => 'Choice schema did not contain choice key: "' + s + '"'), re = (t, s, a) => S(t, () => 'The chosen schema: "' + a + '" did not exist in branches: ' + Lg(s)), fe = (t, s) => S(t, () => "There are unsupported fields: [" + s.join(", ") + "] specified"), lt = (t, s) => S(t, oe(s)),
|
|
21010
|
+
}]), R = (t, s, a) => S(t, () => 'Could not find valid *required* value for "' + s + '" in ' + Lg(a)), U = (t, s) => S(t, () => 'Choice schema did not contain choice key: "' + s + '"'), re = (t, s, a) => S(t, () => 'The chosen schema: "' + a + '" did not exist in branches: ' + Lg(s)), fe = (t, s) => S(t, () => "There are unsupported fields: [" + s.join(", ") + "] specified"), lt = (t, s) => S(t, oe(s)), qt = (t) => {
|
|
21011
21011
|
const s = (l, d) => sr.bindError(t(d), (g) => lt(l, g)), a = oe("val");
|
|
21012
21012
|
return {
|
|
21013
21013
|
extract: s,
|
|
21014
21014
|
toString: a
|
|
21015
21015
|
};
|
|
21016
|
-
}, On =
|
|
21016
|
+
}, On = qt(sr.svalue), _n = (t, s, a, l) => ht(s, a).fold(() => R(t, a, s), l), hn = (t, s, a, l) => {
|
|
21017
21017
|
const d = ht(t, s).getOrThunk(() => a(t));
|
|
21018
21018
|
return l(d);
|
|
21019
21019
|
}, zs = (t, s, a) => a(ht(t, s)), ea = (t, s, a, l) => {
|
|
@@ -21095,7 +21095,7 @@ tinymce.IconManager.add("default", {
|
|
|
21095
21095
|
toString: () => "oneOf(" + et(t, (g) => g.toString()).join(", ") + ")"
|
|
21096
21096
|
};
|
|
21097
21097
|
}, ou = (t, s) => {
|
|
21098
|
-
const a = (g, p) => Su(
|
|
21098
|
+
const a = (g, p) => Su(qt(t)).extract(g, p);
|
|
21099
21099
|
return {
|
|
21100
21100
|
extract: (g, p) => {
|
|
21101
21101
|
const w = ps(p), C = a(g, w);
|
|
@@ -21112,7 +21112,7 @@ tinymce.IconManager.add("default", {
|
|
|
21112
21112
|
extract: (g, p) => a().extract(g, p),
|
|
21113
21113
|
toString: () => a().toString()
|
|
21114
21114
|
};
|
|
21115
|
-
}, _u = Ea(Su, nn), $r = oe(On), td = (t, s) =>
|
|
21115
|
+
}, _u = Ea(Su, nn), $r = oe(On), td = (t, s) => qt((a) => {
|
|
21116
21116
|
const l = typeof a;
|
|
21117
21117
|
return t(a) ? sr.svalue(a) : sr.serror(`Expected type: ${s} but got: ${l}`);
|
|
21118
21118
|
}), Fg = td(ur, "number"), pa = td(ee, "string"), su = td(zn, "boolean"), zh = td(Mt, "function"), ku = (t) => {
|
|
@@ -21136,10 +21136,10 @@ tinymce.IconManager.add("default", {
|
|
|
21136
21136
|
default:
|
|
21137
21137
|
return !1;
|
|
21138
21138
|
}
|
|
21139
|
-
}, ub =
|
|
21139
|
+
}, ub = qt((t) => ku(t) ? sr.svalue(t) : sr.serror("Expected value to be acceptable for sending via postMessage")), Hg = (t, s, a, l) => ht(a, l).fold(() => re(t, a, l), (g) => g.extract(t.concat(["branch: " + l]), s)), it = (t, s) => ({
|
|
21140
21140
|
extract: (d, g) => ht(g, t).fold(() => U(d, t), (w) => Hg(d, g, s, w)),
|
|
21141
21141
|
toString: () => "chooseOn(" + t + "). Possible values: " + ps(s)
|
|
21142
|
-
}), db = () => Su(On), Pd = (t) =>
|
|
21142
|
+
}), db = () => Su(On), Pd = (t) => qt((s) => t(s).fold(sr.serror, sr.svalue)), nd = (t, s) => ou((a) => sr.fromResult(t(a)), s), Vg = (t, s, a) => {
|
|
21143
21143
|
const l = s.extract([t], a);
|
|
21144
21144
|
return sr.mapError(l, (d) => ({
|
|
21145
21145
|
input: a,
|
|
@@ -21151,7 +21151,7 @@ tinymce.IconManager.add("default", {
|
|
|
21151
21151
|
` + Em(t.errors).join(`
|
|
21152
21152
|
`) + `
|
|
21153
21153
|
|
|
21154
|
-
Input object: ` + Lg(t.input), lo = (t, s) => it(t, jo(s, nn)), kf = (t, s) => ib(t, s), Pa = Ur, gr = Zl, Uh = (t) => Pd((s) => Wo(t, s) ? Ln.value(s) : Ln.error(`Unsupported value: "${s}", choose one of "${t.join(", ")}".`)), tt = (t) => Pa(t, t, vo(), $r()), ul = (t, s) => Pa(t, t, vo(), s), zg = (t) => ul(t, Fg), To = (t) => ul(t, pa), ru = (t, s) => Pa(t, t, vo(), Uh(s)), mb = (t) => ul(t, su), au = (t) => ul(t, zh), w1 = (t, s) => Pa(t, t, tu(),
|
|
21154
|
+
Input object: ` + Lg(t.input), lo = (t, s) => it(t, jo(s, nn)), kf = (t, s) => ib(t, s), Pa = Ur, gr = Zl, Uh = (t) => Pd((s) => Wo(t, s) ? Ln.value(s) : Ln.error(`Unsupported value: "${s}", choose one of "${t.join(", ")}".`)), tt = (t) => Pa(t, t, vo(), $r()), ul = (t, s) => Pa(t, t, vo(), s), zg = (t) => ul(t, Fg), To = (t) => ul(t, pa), ru = (t, s) => Pa(t, t, vo(), Uh(s)), mb = (t) => ul(t, su), au = (t) => ul(t, zh), w1 = (t, s) => Pa(t, t, tu(), qt((a) => sr.serror("The field: " + t + " is forbidden. " + s))), Ci = (t, s) => Pa(t, t, vo(), nn(s)), x1 = (t, s) => Pa(t, t, vo(), _u(s)), Tl = (t, s) => Pa(t, t, vo(), Su(s)), Io = (t) => Pa(t, t, tu(), $r()), Tu = (t, s) => Pa(t, t, tu(), s), Am = (t) => Tu(t, Fg), Ia = (t) => Tu(t, pa), C1 = (t, s) => Tu(t, Uh(s)), Om = (t) => Tu(t, zh), Dm = (t, s) => Tu(t, Su(s)), Sc = (t, s) => Tu(t, nn(s)), Id = (t, s) => Tu(t, Ts(s)), Oe = (t, s) => Pa(t, t, Cu(s), $r()), Uc = (t, s, a) => Pa(t, t, Cu(s), a), Gl = (t, s) => Uc(t, s, Fg), ql = (t, s) => Uc(t, s, pa), Wc = (t, s, a) => Uc(t, s, Uh(a)), qr = (t, s) => Uc(t, s, su), ta = (t, s) => Uc(t, s, zh), fb = (t, s) => Uc(t, s, ub), Zc = (t, s, a) => Uc(t, s, Su(a)), Eu = (t, s, a) => Uc(t, s, nn(a)), un = (t) => {
|
|
21155
21155
|
let s = t;
|
|
21156
21156
|
return {
|
|
21157
21157
|
get: () => s,
|
|
@@ -21160,7 +21160,7 @@ Input object: ` + Lg(t.input), lo = (t, s) => it(t, jo(s, nn)), kf = (t, s) => i
|
|
|
21160
21160
|
}
|
|
21161
21161
|
};
|
|
21162
21162
|
}, T = { generate: (t) => {
|
|
21163
|
-
if (!
|
|
21163
|
+
if (!Gt(t))
|
|
21164
21164
|
throw new Error("cases must be an array");
|
|
21165
21165
|
if (t.length === 0)
|
|
21166
21166
|
throw new Error("there must be at least one case");
|
|
@@ -21174,7 +21174,7 @@ Input object: ` + Lg(t.input), lo = (t, s) => it(t, jo(s, nn)), kf = (t, s) => i
|
|
|
21174
21174
|
throw new Error("duplicate key detected:" + p);
|
|
21175
21175
|
if (p === "cata")
|
|
21176
21176
|
throw new Error("cannot have a case named cata (sorry)");
|
|
21177
|
-
if (!
|
|
21177
|
+
if (!Gt(w))
|
|
21178
21178
|
throw new Error("case arguments must be an array");
|
|
21179
21179
|
s.push(p), a[p] = (...C) => {
|
|
21180
21180
|
const E = C.length;
|
|
@@ -23895,7 +23895,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
23895
23895
|
getNumColumns: () => t.get().map((d) => d.numColumns)
|
|
23896
23896
|
});
|
|
23897
23897
|
};
|
|
23898
|
-
var
|
|
23898
|
+
var Xt = /* @__PURE__ */ Object.freeze({
|
|
23899
23899
|
__proto__: null,
|
|
23900
23900
|
flatgrid: Pt,
|
|
23901
23901
|
init: (t) => t.state(t)
|
|
@@ -24146,7 +24146,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
24146
24146
|
_7(a) ? a.setGridSize(l, d) : console.error("Layout does not support setGridSize");
|
|
24147
24147
|
}
|
|
24148
24148
|
},
|
|
24149
|
-
state:
|
|
24149
|
+
state: Xt
|
|
24150
24150
|
}), Ml = (t, s) => {
|
|
24151
24151
|
Ht(() => {
|
|
24152
24152
|
ME(t, s, () => et(s, t.getSystem().build));
|
|
@@ -24683,7 +24683,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
24683
24683
|
t[t.HighlightMenuAndItem = 0] = "HighlightMenuAndItem", t[t.HighlightJustMenu = 1] = "HighlightJustMenu", t[t.HighlightNone = 2] = "HighlightNone";
|
|
24684
24684
|
})(Nl || (Nl = {}));
|
|
24685
24685
|
const lR = (t, s) => {
|
|
24686
|
-
const a = eo(), l = (Tt,
|
|
24686
|
+
const a = eo(), l = (Tt, Yt, An) => jo(An, ($n, pn) => {
|
|
24687
24687
|
const In = () => E0.sketch({
|
|
24688
24688
|
...$n,
|
|
24689
24689
|
value: pn,
|
|
@@ -24703,7 +24703,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
24703
24703
|
},
|
|
24704
24704
|
focusManager: t.fakeFocus ? m() : i()
|
|
24705
24705
|
});
|
|
24706
|
-
return pn ===
|
|
24706
|
+
return pn === Yt ? {
|
|
24707
24707
|
type: "prepared",
|
|
24708
24708
|
menu: Tt.getSystem().build(In())
|
|
24709
24709
|
} : {
|
|
@@ -24711,114 +24711,114 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
24711
24711
|
nbMenu: In
|
|
24712
24712
|
};
|
|
24713
24713
|
}), d = cR.init(), g = (Tt) => {
|
|
24714
|
-
const
|
|
24715
|
-
return d.setContents(t.data.primary,
|
|
24716
|
-
}, p = (Tt) => Lt.getValue(Tt).value, w = (Tt,
|
|
24714
|
+
const Yt = l(Tt, t.data.primary, t.data.menus), An = C();
|
|
24715
|
+
return d.setContents(t.data.primary, Yt, t.data.expansions, An), d.getPrimary();
|
|
24716
|
+
}, p = (Tt) => Lt.getValue(Tt).value, w = (Tt, Yt, An) => Js(Yt, ($n) => {
|
|
24717
24717
|
if (!$n.getSystem().isConnected())
|
|
24718
24718
|
return A.none();
|
|
24719
24719
|
const pn = Ro.getCandidates($n);
|
|
24720
24720
|
return qe(pn, (In) => p(In) === An);
|
|
24721
|
-
}), C = (Tt) => jo(t.data.menus, (
|
|
24722
|
-
E(Tt,
|
|
24723
|
-
t.fakeFocus ? Ro.highlight(
|
|
24721
|
+
}), C = (Tt) => jo(t.data.menus, (Yt, An) => Ce(Yt.items, ($n) => $n.type === "separator" ? [] : [$n.data.value])), E = Ro.highlight, D = (Tt, Yt) => {
|
|
24722
|
+
E(Tt, Yt), Ro.getHighlighted(Yt).orThunk(() => Ro.getFirst(Yt)).each((An) => {
|
|
24723
|
+
t.fakeFocus ? Ro.highlight(Yt, An) : yb(Tt, An.element, hr());
|
|
24724
24724
|
});
|
|
24725
|
-
}, N = (Tt,
|
|
24726
|
-
const $n = N(
|
|
24725
|
+
}, N = (Tt, Yt) => Oa(et(Yt, (An) => Tt.lookupMenu(An).bind(($n) => $n.type === "prepared" ? A.some($n.menu) : A.none()))), F = (Tt, Yt, An) => {
|
|
24726
|
+
const $n = N(Yt, Yt.otherMenus(An));
|
|
24727
24727
|
gt($n, (pn) => {
|
|
24728
24728
|
_i(pn.element, [t.markers.backgroundMenu]), t.stayInDom || Pn.remove(Tt, pn);
|
|
24729
24729
|
});
|
|
24730
24730
|
}, W = (Tt) => a.get().getOrThunk(() => {
|
|
24731
|
-
const
|
|
24731
|
+
const Yt = {}, An = Ca(Tt.element, `.${t.markers.item}`), $n = Qn(An, (pn) => Ws(pn, "aria-haspopup") === "true");
|
|
24732
24732
|
return gt($n, (pn) => {
|
|
24733
24733
|
Tt.getSystem().getByDom(pn).each((In) => {
|
|
24734
24734
|
const _s = p(In);
|
|
24735
|
-
|
|
24735
|
+
Yt[_s] = In;
|
|
24736
24736
|
});
|
|
24737
|
-
}), a.set(
|
|
24738
|
-
}), Y = (Tt,
|
|
24737
|
+
}), a.set(Yt), Yt;
|
|
24738
|
+
}), Y = (Tt, Yt) => {
|
|
24739
24739
|
const An = W(Tt);
|
|
24740
24740
|
us(An, ($n, pn) => {
|
|
24741
|
-
const In = Wo(
|
|
24741
|
+
const In = Wo(Yt, pn);
|
|
24742
24742
|
Bt($n.element, "aria-expanded", In);
|
|
24743
24743
|
});
|
|
24744
|
-
}, le = (Tt,
|
|
24744
|
+
}, le = (Tt, Yt, An) => A.from(An[0]).bind(($n) => Yt.lookupMenu($n).bind((pn) => {
|
|
24745
24745
|
if (pn.type === "notbuilt")
|
|
24746
24746
|
return A.none();
|
|
24747
24747
|
{
|
|
24748
|
-
const In = pn.menu, _s = N(
|
|
24748
|
+
const In = pn.menu, _s = N(Yt, An.slice(1));
|
|
24749
24749
|
return gt(_s, (_o) => {
|
|
24750
24750
|
Nr(_o.element, t.markers.backgroundMenu);
|
|
24751
|
-
}), ao(In.element) || Pn.append(Tt, ki(In)), _i(In.element, [t.markers.backgroundMenu]), D(Tt, In), F(Tt,
|
|
24751
|
+
}), ao(In.element) || Pn.append(Tt, ki(In)), _i(In.element, [t.markers.backgroundMenu]), D(Tt, In), F(Tt, Yt, An), A.some(In);
|
|
24752
24752
|
}
|
|
24753
24753
|
}));
|
|
24754
24754
|
let Re;
|
|
24755
24755
|
(function(Tt) {
|
|
24756
24756
|
Tt[Tt.HighlightSubmenu = 0] = "HighlightSubmenu", Tt[Tt.HighlightParent = 1] = "HighlightParent";
|
|
24757
24757
|
})(Re || (Re = {}));
|
|
24758
|
-
const be = (Tt,
|
|
24758
|
+
const be = (Tt, Yt, An) => {
|
|
24759
24759
|
if (An.type === "notbuilt") {
|
|
24760
24760
|
const $n = Tt.getSystem().build(An.nbMenu());
|
|
24761
|
-
return d.setMenuBuilt(
|
|
24761
|
+
return d.setMenuBuilt(Yt, $n), $n;
|
|
24762
24762
|
} else
|
|
24763
24763
|
return An.menu;
|
|
24764
|
-
}, ge = (Tt,
|
|
24765
|
-
if (
|
|
24766
|
-
return A.some(
|
|
24764
|
+
}, ge = (Tt, Yt, An = Re.HighlightSubmenu) => {
|
|
24765
|
+
if (Yt.hasConfigured(yn) && yn.isDisabled(Yt))
|
|
24766
|
+
return A.some(Yt);
|
|
24767
24767
|
{
|
|
24768
|
-
const $n = p(
|
|
24768
|
+
const $n = p(Yt);
|
|
24769
24769
|
return d.expand($n).bind((pn) => (Y(Tt, pn), A.from(pn[0]).bind((In) => d.lookupMenu(In).bind((_s) => {
|
|
24770
24770
|
const _o = be(Tt, In, _s);
|
|
24771
|
-
return ao(_o.element) || Pn.append(Tt, ki(_o)), t.onOpenSubmenu(Tt,
|
|
24771
|
+
return ao(_o.element) || Pn.append(Tt, ki(_o)), t.onOpenSubmenu(Tt, Yt, _o, Zo(pn)), An === Re.HighlightSubmenu ? (Ro.highlightFirst(_o), le(Tt, d, pn)) : (Ro.dehighlightAll(_o), A.some(Yt));
|
|
24772
24772
|
}))));
|
|
24773
24773
|
}
|
|
24774
|
-
}, Ee = (Tt,
|
|
24775
|
-
const An = p(
|
|
24776
|
-
return d.collapse(An).bind(($n) => (Y(Tt, $n), le(Tt, d, $n).map((pn) => (t.onCollapseMenu(Tt,
|
|
24777
|
-
}, ut = (Tt,
|
|
24778
|
-
const An = p(
|
|
24774
|
+
}, Ee = (Tt, Yt) => {
|
|
24775
|
+
const An = p(Yt);
|
|
24776
|
+
return d.collapse(An).bind(($n) => (Y(Tt, $n), le(Tt, d, $n).map((pn) => (t.onCollapseMenu(Tt, Yt, pn), pn))));
|
|
24777
|
+
}, ut = (Tt, Yt) => {
|
|
24778
|
+
const An = p(Yt);
|
|
24779
24779
|
return d.refresh(An).bind(($n) => (Y(Tt, $n), le(Tt, d, $n)));
|
|
24780
|
-
}, Xe = (Tt,
|
|
24781
|
-
Je(oR(), (Tt,
|
|
24782
|
-
const An =
|
|
24780
|
+
}, Xe = (Tt, Yt) => mh(Yt.element) ? A.none() : ge(Tt, Yt, Re.HighlightSubmenu), je = (Tt, Yt) => mh(Yt.element) ? A.none() : Ee(Tt, Yt), pt = (Tt, Yt) => Ee(Tt, Yt).orThunk(() => t.onEscape(Tt, Yt).map(() => Tt)), kt = (Tt) => (Yt, An) => ld(An.getSource(), `.${t.markers.item}`).bind(($n) => Yt.getSystem().getByDom($n).toOptional().bind((pn) => Tt(Yt, pn).map(Ge))), Vn = Es([
|
|
24781
|
+
Je(oR(), (Tt, Yt) => {
|
|
24782
|
+
const An = Yt.event.item;
|
|
24783
24783
|
d.lookupItem(p(An)).each(() => {
|
|
24784
|
-
const $n =
|
|
24784
|
+
const $n = Yt.event.menu;
|
|
24785
24785
|
Ro.highlight(Tt, $n);
|
|
24786
|
-
const pn = p(
|
|
24786
|
+
const pn = p(Yt.event.item);
|
|
24787
24787
|
d.refresh(pn).each((In) => F(Tt, d, In));
|
|
24788
24788
|
});
|
|
24789
24789
|
}),
|
|
24790
|
-
Ou((Tt,
|
|
24791
|
-
const An =
|
|
24790
|
+
Ou((Tt, Yt) => {
|
|
24791
|
+
const An = Yt.event.target;
|
|
24792
24792
|
Tt.getSystem().getByDom(An).each(($n) => {
|
|
24793
24793
|
p($n).indexOf("collapse-item") === 0 && Ee(Tt, $n), ge(Tt, $n, Re.HighlightSubmenu).fold(() => {
|
|
24794
24794
|
t.onExecute(Tt, $n);
|
|
24795
24795
|
}, me);
|
|
24796
24796
|
});
|
|
24797
24797
|
}),
|
|
24798
|
-
xs((Tt,
|
|
24798
|
+
xs((Tt, Yt) => {
|
|
24799
24799
|
g(Tt).each((An) => {
|
|
24800
24800
|
Pn.append(Tt, ki(An)), t.onOpenMenu(Tt, An), t.highlightOnOpen === Nl.HighlightMenuAndItem ? D(Tt, An) : t.highlightOnOpen === Nl.HighlightJustMenu && E(Tt, An);
|
|
24801
24801
|
});
|
|
24802
24802
|
}),
|
|
24803
|
-
Je(Dv, (Tt,
|
|
24804
|
-
t.onHighlightItem(Tt,
|
|
24803
|
+
Je(Dv, (Tt, Yt) => {
|
|
24804
|
+
t.onHighlightItem(Tt, Yt.event.menuComp, Yt.event.itemComp);
|
|
24805
24805
|
}),
|
|
24806
|
-
Je(LS, (Tt,
|
|
24807
|
-
t.onDehighlightItem(Tt,
|
|
24806
|
+
Je(LS, (Tt, Yt) => {
|
|
24807
|
+
t.onDehighlightItem(Tt, Yt.event.menuComp, Yt.event.itemComp);
|
|
24808
24808
|
}),
|
|
24809
|
-
...t.navigateOnHover ? [Je(_4(), (Tt,
|
|
24810
|
-
const An =
|
|
24809
|
+
...t.navigateOnHover ? [Je(_4(), (Tt, Yt) => {
|
|
24810
|
+
const An = Yt.event.item;
|
|
24811
24811
|
ut(Tt, An), ge(Tt, An, Re.HighlightParent), t.onHover(Tt, An);
|
|
24812
24812
|
})] : []
|
|
24813
24813
|
]), zt = (Tt) => Ro.getHighlighted(Tt).bind(Ro.getHighlighted), En = (Tt) => {
|
|
24814
|
-
zt(Tt).each((
|
|
24815
|
-
Ee(Tt,
|
|
24814
|
+
zt(Tt).each((Yt) => {
|
|
24815
|
+
Ee(Tt, Yt);
|
|
24816
24816
|
});
|
|
24817
24817
|
}, xn = (Tt) => {
|
|
24818
|
-
d.getPrimary().each((
|
|
24819
|
-
D(Tt,
|
|
24818
|
+
d.getPrimary().each((Yt) => {
|
|
24819
|
+
D(Tt, Yt);
|
|
24820
24820
|
});
|
|
24821
|
-
}, Go = (Tt) => A.from(Tt.components()[0]).filter((
|
|
24821
|
+
}, Go = (Tt) => A.from(Tt.components()[0]).filter((Yt) => Ws(Yt.element, "role") === "menu"), Co = {
|
|
24822
24822
|
collapseMenu: En,
|
|
24823
24823
|
highlightPrimary: xn,
|
|
24824
24824
|
repositionMenus: (Tt) => {
|
|
@@ -24847,7 +24847,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
24847
24847
|
onRight: kt(Xe),
|
|
24848
24848
|
onLeft: kt(je),
|
|
24849
24849
|
onEscape: kt(pt),
|
|
24850
|
-
focusIn: (Tt,
|
|
24850
|
+
focusIn: (Tt, Yt) => {
|
|
24851
24851
|
d.getPrimary().each((An) => {
|
|
24852
24852
|
yb(Tt, An.element, hr());
|
|
24853
24853
|
});
|
|
@@ -25883,7 +25883,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
25883
25883
|
const { implementation: Xe, createNodeIterator: je, createDocumentFragment: pt, getElementsByTagName: kt } = d, { importNode: Vn } = a;
|
|
25884
25884
|
let zt = {};
|
|
25885
25885
|
s.isSupported = typeof E4 == "function" && typeof ge == "function" && Xe && Xe.createHTMLDocument !== void 0;
|
|
25886
|
-
const { MUSTACHE_EXPR: En, ERB_EXPR: xn, TMPLIT_EXPR: Go, DATA_ATTR: gn, ARIA_ATTR: Co, IS_SCRIPT_OR_DATA: Tt, ATTR_WHITESPACE:
|
|
25886
|
+
const { MUSTACHE_EXPR: En, ERB_EXPR: xn, TMPLIT_EXPR: Go, DATA_ATTR: gn, ARIA_ATTR: Co, IS_SCRIPT_OR_DATA: Tt, ATTR_WHITESPACE: Yt } = US;
|
|
25887
25887
|
let { IS_ALLOWED_URI: An } = US, $n = null;
|
|
25888
25888
|
const pn = wo({}, [
|
|
25889
25889
|
...D4,
|
|
@@ -26129,9 +26129,9 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
26129
26129
|
if (!In[tn] || Vi[tn]) {
|
|
26130
26130
|
if (!(GG(ze) && (_o.tagNameCheck instanceof RegExp && pd(_o.tagNameCheck, ze) || _o.tagNameCheck instanceof Function && _o.tagNameCheck(ze)) && (_o.attributeNameCheck instanceof RegExp && pd(_o.attributeNameCheck, tn) || _o.attributeNameCheck instanceof Function && _o.attributeNameCheck(tn)) || tn === "is" && _o.allowCustomizedBuiltInElements && (_o.tagNameCheck instanceof RegExp && pd(_o.tagNameCheck, Mn) || _o.tagNameCheck instanceof Function && _o.tagNameCheck(Mn)))) return !1;
|
|
26131
26131
|
} else if (!xj[tn]) {
|
|
26132
|
-
if (!pd(An, sf(Mn,
|
|
26132
|
+
if (!pd(An, sf(Mn, Yt, ""))) {
|
|
26133
26133
|
if (!((tn === "src" || tn === "xlink:href" || tn === "href") && ze !== "script" && O0(Mn, "data:") === 0 && IG[ze])) {
|
|
26134
|
-
if (!(p1 && !pd(Tt, sf(Mn,
|
|
26134
|
+
if (!(p1 && !pd(Tt, sf(Mn, Yt, "")))) {
|
|
26135
26135
|
if (Mn)
|
|
26136
26136
|
return !1;
|
|
26137
26137
|
}
|
|
@@ -26585,7 +26585,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
26585
26585
|
processor: "object",
|
|
26586
26586
|
default: {}
|
|
26587
26587
|
}), l("toolbar", {
|
|
26588
|
-
processor: (p) => zn(p) || ee(p) ||
|
|
26588
|
+
processor: (p) => zn(p) || ee(p) || Gt(p) ? {
|
|
26589
26589
|
value: p,
|
|
26590
26590
|
valid: !0
|
|
26591
26591
|
} : {
|
|
@@ -26664,7 +26664,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
26664
26664
|
return vR.baseURL + "/skins/ui/" + a;
|
|
26665
26665
|
}
|
|
26666
26666
|
}, e_ = (t) => A.from(t.options.get("skin_url")), NR = (t) => t.options.get("line_height_formats").split(" "), t_ = (t) => {
|
|
26667
|
-
const s = qS(t), a = ee(s), l =
|
|
26667
|
+
const s = qS(t), a = ee(s), l = Gt(s) && s.length > 0;
|
|
26668
26668
|
return !Tw(t) && (l || a || s === !0);
|
|
26669
26669
|
}, Q4 = (t) => {
|
|
26670
26670
|
const s = ro(9, (l) => t.options.get("toolbar" + (l + 1))), a = Qn(s, ee);
|
|
@@ -30422,8 +30422,8 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
30422
30422
|
}, ut = (xn, Go, gn) => {
|
|
30423
30423
|
const Co = parseInt(gn, 10);
|
|
30424
30424
|
le(Go, A.some(Co)), Re().each((Tt) => {
|
|
30425
|
-
const
|
|
30426
|
-
an(xn, Qw, { hex:
|
|
30425
|
+
const Yt = p(xn, Tt);
|
|
30426
|
+
an(xn, Qw, { hex: Yt }), E(xn, Yt);
|
|
30427
30427
|
});
|
|
30428
30428
|
}, Xe = (xn) => xn.type === "hex", je = (xn, Go) => {
|
|
30429
30429
|
const gn = Go.event;
|
|
@@ -33559,7 +33559,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
33559
33559
|
}, _V = (t) => et(Qn(t, HB), CV), _O = (t) => et(Qn(t, SO), SV), VB = (t) => yV("h1,h2,h3,h4,h5,h6,a:not([href])", t), kV = (t) => MB(t.title).length > 0, TV = { find: (t) => {
|
|
33560
33560
|
const s = VB(t);
|
|
33561
33561
|
return Qn(_V(s).concat(_O(s)), kV);
|
|
33562
|
-
} }, gk = "tinymce-url-history", kO = 5, zB = (t) => ee(t) && /^https?/.test(t), hk = (t) =>
|
|
33562
|
+
} }, gk = "tinymce-url-history", kO = 5, zB = (t) => ee(t) && /^https?/.test(t), hk = (t) => Gt(t) && t.length <= kO && vn(t, zB), UB = (t) => Ue(t) && Jo(t, (s) => !hk(s)).isNone(), bx = () => {
|
|
33563
33563
|
const t = Kp.getItem(gk);
|
|
33564
33564
|
if (t === null)
|
|
33565
33565
|
return {};
|
|
@@ -36957,12 +36957,12 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
36957
36957
|
const { mainUi: g, uiMotherships: p } = a, w = R0.DOM, C = Pv(t), E = Ew(t), D = jS(t).or(k6(t)), N = l.shared.header, F = N.isPositionedAtTop, W = Mv(t), Y = W === T6.sliding || W === T6.floating, le = un(!1), Re = () => le.get() && !t.removed, be = (gn) => Y ? gn.fold(oe(0), (Co) => Co.components().length > 1 ? Vs(Co.components()[1].element) : 0) : 0, ge = (gn) => {
|
|
36958
36958
|
switch (kw(t)) {
|
|
36959
36959
|
case K0.auto:
|
|
36960
|
-
const Co = Os.getToolbar(g.outerContainer), Tt = be(Co),
|
|
36961
|
-
if (An.y >
|
|
36960
|
+
const Co = Os.getToolbar(g.outerContainer), Tt = be(Co), Yt = Vs(gn.element) - Tt, An = Gs(s);
|
|
36961
|
+
if (An.y > Yt)
|
|
36962
36962
|
return "top";
|
|
36963
36963
|
{
|
|
36964
36964
|
const pn = vc(s), In = Math.max(pn.dom.scrollHeight, Vs(pn));
|
|
36965
|
-
return An.bottom < In -
|
|
36965
|
+
return An.bottom < In - Yt || Qr().bottom < An.bottom - Yt ? "bottom" : "top";
|
|
36966
36966
|
}
|
|
36967
36967
|
case K0.bottom:
|
|
36968
36968
|
return "bottom";
|
|
@@ -36986,12 +36986,12 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
36986
36986
|
});
|
|
36987
36987
|
}, Xe = (gn) => {
|
|
36988
36988
|
d.on((Co) => {
|
|
36989
|
-
const Tt = Os.getToolbar(g.outerContainer),
|
|
36990
|
-
top: F() ? Math.max(An.y - Vs(Co.element) +
|
|
36989
|
+
const Tt = Os.getToolbar(g.outerContainer), Yt = be(Tt), An = Gs(s), { top: $n, left: pn } = je(t, g.outerContainer.element).fold(() => ({
|
|
36990
|
+
top: F() ? Math.max(An.y - Vs(Co.element) + Yt, 0) : An.bottom,
|
|
36991
36991
|
left: An.x
|
|
36992
36992
|
}), (_o) => {
|
|
36993
36993
|
var hc;
|
|
36994
|
-
const Vi = Gs(_o), Ed = (hc = _o.dom.scrollTop) !== null && hc !== void 0 ? hc : 0, bm = Po(_o, Fs()), p1 = bm ? Math.max(An.y - Vs(Co.element) +
|
|
36994
|
+
const Vi = Gs(_o), Ed = (hc = _o.dom.scrollTop) !== null && hc !== void 0 ? hc : 0, bm = Po(_o, Fs()), p1 = bm ? Math.max(An.y - Vs(Co.element) + Yt, 0) : An.y - Vi.y + Ed - Vs(Co.element) + Yt;
|
|
36995
36995
|
return {
|
|
36996
36996
|
top: F() ? p1 : An.bottom,
|
|
36997
36997
|
left: bm ? An.x : An.x - Vi.x
|
|
@@ -38271,7 +38271,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
38271
38271
|
const w = p.update(a);
|
|
38272
38272
|
if (ee(w) && ca(Hr(w)))
|
|
38273
38273
|
return RD(d, w.split(" "));
|
|
38274
|
-
if (
|
|
38274
|
+
if (Gt(w) && w.length > 0) {
|
|
38275
38275
|
const C = et(w, r8);
|
|
38276
38276
|
return RD(d, C);
|
|
38277
38277
|
} else
|
|
@@ -39220,7 +39220,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
39220
39220
|
}), t.addCommand("ToggleToolbarDrawer", (In, _s) => {
|
|
39221
39221
|
_s != null && _s.skipFocus ? Os.toggleToolbarDrawerWithoutFocusing(pn) : Os.toggleToolbarDrawer(pn);
|
|
39222
39222
|
}), t.addQueryStateHandler("ToggleToolbarDrawer", () => Os.isToolbarDrawerToggled(pn));
|
|
39223
|
-
},
|
|
39223
|
+
}, Yt = (pn) => {
|
|
39224
39224
|
const { mainUi: In, popupUi: _s, uiMotherships: _o } = pn;
|
|
39225
39225
|
jo(kR(t), (Sy, vT) => {
|
|
39226
39226
|
t.ui.registry.addGroupToolbarButton(vT, Sy);
|
|
@@ -39250,7 +39250,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
39250
39250
|
mainUi: pn,
|
|
39251
39251
|
uiMotherships: g.getUiMotherships()
|
|
39252
39252
|
};
|
|
39253
|
-
return
|
|
39253
|
+
return Yt(_o);
|
|
39254
39254
|
};
|
|
39255
39255
|
return {
|
|
39256
39256
|
popups: {
|
|
@@ -39679,7 +39679,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
39679
39679
|
ta("onCancel", me),
|
|
39680
39680
|
ta("onClose", me),
|
|
39681
39681
|
ta("onMessage", me)
|
|
39682
|
-
]), bt = (t) => qs("dialog", rt, t), It = (t) => Ue(t) ? [t].concat(Ce(ji(t), It)) :
|
|
39682
|
+
]), bt = (t) => qs("dialog", rt, t), It = (t) => Ue(t) ? [t].concat(Ce(ji(t), It)) : Gt(t) ? Ce(t, It) : [], We = (t) => ee(t.type) && ee(t.name), He = {
|
|
39683
39683
|
checkbox: k8,
|
|
39684
39684
|
colorinput: JZ,
|
|
39685
39685
|
colorpicker: tj,
|
|
@@ -39782,7 +39782,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
39782
39782
|
a[d] = g;
|
|
39783
39783
|
});
|
|
39784
39784
|
}), s.length > 0 ? Ln.error(s) : Ln.value(a);
|
|
39785
|
-
},
|
|
39785
|
+
}, Kt = (t, s, a) => {
|
|
39786
39786
|
const l = Ko(ty.sketch((d) => ({
|
|
39787
39787
|
dom: {
|
|
39788
39788
|
tag: "div",
|
|
@@ -40165,7 +40165,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
40165
40165
|
case "tabpanel":
|
|
40166
40166
|
return [sb(E, C.initialData, l)];
|
|
40167
40167
|
default:
|
|
40168
|
-
return [
|
|
40168
|
+
return [Kt(E, C.initialData, l)];
|
|
40169
40169
|
}
|
|
40170
40170
|
}, p = (C, E) => A.some({ isTabPanel: () => E.body.type === "tabpanel" }), w = { "aria-live": "polite" };
|
|
40171
40171
|
return {
|
|
@@ -40571,7 +40571,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
40571
40571
|
Lt.setValue(g, p.getData());
|
|
40572
40572
|
})
|
|
40573
40573
|
];
|
|
40574
|
-
}, Ve = (t, s) => uk(t, t.type, s),
|
|
40574
|
+
}, Ve = (t, s) => uk(t, t.type, s), Qt = (t, s, a) => qe(s, (l) => l.name === a).bind((l) => l.memento.getOpt(t)), Cn = (t, s) => {
|
|
40575
40575
|
const a = s.map((w) => w.footerButtons).getOr([]), l = Qa(a, (w) => w.align === "start"), d = (w, C) => af.sketch({
|
|
40576
40576
|
dom: {
|
|
40577
40577
|
tag: "div",
|
|
@@ -40592,7 +40592,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
40592
40592
|
align: C.align,
|
|
40593
40593
|
memento: E
|
|
40594
40594
|
};
|
|
40595
|
-
}), w = (C) =>
|
|
40595
|
+
}), w = (C) => Qt(d, p, C);
|
|
40596
40596
|
return A.some({
|
|
40597
40597
|
lookupByName: w,
|
|
40598
40598
|
footerButtons: p
|
|
@@ -41132,7 +41132,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
41132
41132
|
}));
|
|
41133
41133
|
pt.set(xn);
|
|
41134
41134
|
const Go = () => t.backstages.popup.shared.getSink().toOptional().bind((gn) => {
|
|
41135
|
-
const Co = Xp(s, gn.element), Tt = 15,
|
|
41135
|
+
const Co = Xp(s, gn.element), Tt = 15, Yt = Co.map((pn) => Kv(pn)).getOr(Qr()), An = Gs(_e.fromDom(s.getContentAreaContainer())), $n = Ng(An, Yt);
|
|
41136
41136
|
return A.some(Ns($n.x, $n.y, $n.width, $n.height - Tt));
|
|
41137
41137
|
});
|
|
41138
41138
|
return cr.showWithinBounds(xn, ki(En.dialog), { anchor: le }, Go), er.refresh(xn), s.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow", zt), En.instanceApi.setData(je), cn.focusIn(En.dialog), En.instanceApi;
|
|
@@ -41194,7 +41194,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
41194
41194
|
}, ce = (i) => {
|
|
41195
41195
|
const m = typeof i;
|
|
41196
41196
|
return i === null ? "null" : m === "object" && Array.isArray(i) ? "array" : m === "object" && ve(i, String, (h, v) => v.isPrototypeOf(h)) ? "string" : m;
|
|
41197
|
-
}, $e = (i) => (m) => ce(m) === i, ye = (i) => (m) => typeof m === i, Q = (i) => (m) => i === m, De = $e("string"), ee = $e("object"), Ue = $e("array"), Ct = Q(null),
|
|
41197
|
+
}, $e = (i) => (m) => ce(m) === i, ye = (i) => (m) => typeof m === i, Q = (i) => (m) => i === m, De = $e("string"), ee = $e("object"), Ue = $e("array"), Ct = Q(null), Gt = ye("boolean"), Sn = Q(void 0), zn = (i) => i == null, Uo = (i) => !zn(i), ir = ye("function"), $o = ye("number"), Mt = () => {
|
|
41198
41198
|
}, ur = (i, m) => (...h) => i(m.apply(null, h)), dn = (i, m) => (h) => i(m(h)), me = (i) => () => i, _t = (i) => i, Ea = (i, m) => i === m;
|
|
41199
41199
|
function Xn(i, ...m) {
|
|
41200
41200
|
return (...h) => {
|
|
@@ -41276,7 +41276,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
41276
41276
|
}
|
|
41277
41277
|
}
|
|
41278
41278
|
ie.singletonNone = new ie(!1);
|
|
41279
|
-
const Mo = Array.prototype.slice, Jn = Array.prototype.indexOf, Ge = Array.prototype.push, A = (i, m) => Jn.call(i, m),
|
|
41279
|
+
const Mo = Array.prototype.slice, Jn = Array.prototype.indexOf, Ge = Array.prototype.push, A = (i, m) => Jn.call(i, m), Jt = (i, m) => A(i, m) > -1, nt = (i, m) => {
|
|
41280
41280
|
for (let h = 0, v = i.length; h < v; h++) {
|
|
41281
41281
|
const _ = i[h];
|
|
41282
41282
|
if (m(_, h))
|
|
@@ -41428,7 +41428,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
41428
41428
|
const m = yr("ownerDocument.defaultView", i);
|
|
41429
41429
|
return ee(i) && (ji(m).prototype.isPrototypeOf(i) || /^HTML\w*Element$/.test(Jo(i).constructor.name));
|
|
41430
41430
|
}, mo = 8, Tr = 9, Aa = 11, Nc = 1, Oa = 3, Qo = (i) => i.dom.nodeName.toLowerCase(), ec = (i) => i.dom.nodeType, pc = (i) => (m) => ec(m) === i, qo = (i) => ec(i) === mo || Qo(i) === "#comment", fn = (i) => Er(i) && ht(i.dom), Er = pc(Nc), Bc = pc(Oa), Ll = pc(Tr), di = pc(Aa), wr = (i) => (m) => Er(m) && Qo(m) === i, mr = (i, m, h) => {
|
|
41431
|
-
if (De(h) ||
|
|
41431
|
+
if (De(h) || Gt(h) || $o(h))
|
|
41432
41432
|
i.setAttribute(m, h + "");
|
|
41433
41433
|
else
|
|
41434
41434
|
throw console.error("Invalid call to Attribute.set. Key ", m, ":: Value ", h, ":: Element ", i), new Error("Attribute value was not simple");
|
|
@@ -41577,7 +41577,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
41577
41577
|
"thead",
|
|
41578
41578
|
"tbody",
|
|
41579
41579
|
"colgroup"
|
|
41580
|
-
], $a = (i) =>
|
|
41580
|
+
], $a = (i) => Jt(Xi, i), xl = (i, m) => ({
|
|
41581
41581
|
rows: i,
|
|
41582
41582
|
columns: m
|
|
41583
41583
|
}), gi = (i, m) => ({
|
|
@@ -41730,7 +41730,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
41730
41730
|
}, ws = (i, m, h = 0) => ca(i, m).map((v) => parseInt(v, 10)).getOr(h), Cl = (i, m) => ws(i, m, 1), Za = (i) => wr("col")(i) ? ws(i, "span", 1) > 1 : Cl(i, "colspan") > 1, pi = (i) => Cl(i, "rowspan") > 1, zr = (i, m) => parseInt(ma(i, m), 10), or = me(10), Sl = me(10), qu = (i, m) => Ku(i, m, Fe), Ku = (i, m, h) => os(ko(i), (v) => Gr(v, m) ? h(v) ? [v] : [] : Ku(v, m, h)), wf = (i, m, h = wt) => {
|
|
41731
41731
|
if (h(m))
|
|
41732
41732
|
return ie.none();
|
|
41733
|
-
if (
|
|
41733
|
+
if (Jt(i, Qo(m)))
|
|
41734
41734
|
return ie.some(m);
|
|
41735
41735
|
const v = (_) => Gr(_, "table") || h(_);
|
|
41736
41736
|
return Vl(m, i.join(","), v);
|
|
@@ -42063,7 +42063,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
42063
42063
|
let Ye = 0;
|
|
42064
42064
|
for (; m[Zl(Z, Ye)] !== void 0; )
|
|
42065
42065
|
Ye++;
|
|
42066
|
-
const
|
|
42066
|
+
const Xt = jo(_, Ye.toString()), kn = j(Pt.element, Pt.rowspan, Pt.colspan, Z, Ye, Xt);
|
|
42067
42067
|
for (let Un = 0; Un < Pt.colspan; Un++)
|
|
42068
42068
|
for (let js = 0; js < Pt.rowspan; js++) {
|
|
42069
42069
|
const Sa = Z + js, _r = Ye + Un, $l = Zl(Sa, _r);
|
|
@@ -42147,7 +42147,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
42147
42147
|
}), re = U, fe = (i) => {
|
|
42148
42148
|
const m = i.getBoundingClientRect();
|
|
42149
42149
|
return re(m.left, m.top);
|
|
42150
|
-
}, lt = (i, m) => i !== void 0 ? i : m !== void 0 ? m : 0,
|
|
42150
|
+
}, lt = (i, m) => i !== void 0 ? i : m !== void 0 ? m : 0, qt = (i) => {
|
|
42151
42151
|
const m = i.dom.ownerDocument, h = m.body, v = m.defaultView, _ = m.documentElement;
|
|
42152
42152
|
if (h === i.dom)
|
|
42153
42153
|
return re(h.offsetLeft, h.offsetTop);
|
|
@@ -42162,7 +42162,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
42162
42162
|
}), hn = (i, m) => ({
|
|
42163
42163
|
col: i,
|
|
42164
42164
|
x: m
|
|
42165
|
-
}), zs = (i) =>
|
|
42165
|
+
}), zs = (i) => qt(i).left + xi(i), ea = (i) => qt(i).left, zc = (i, m) => hn(i, ea(m)), nu = (i, m) => hn(i, zs(m)), ha = (i) => qt(i).top, ky = (i, m) => _n(i, ha(m)), Ts = (i, m) => _n(i, ha(m) + S(m)), nn = (i, m, h) => {
|
|
42166
42166
|
if (h.length === 0)
|
|
42167
42167
|
return [];
|
|
42168
42168
|
const v = mn(h.slice(1), (O, I) => O.map((Z) => i(I, Z))), _ = h[h.length - 1].map((O) => m(h.length - 1, O));
|
|
@@ -42390,7 +42390,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
42390
42390
|
})(Bc, "text"), on = (i) => Dt.get(i), Fn = (i) => Dt.getOption(i), rr = (i, m) => Dt.set(i, m), Do = (i) => Qo(i) === "img" ? 1 : Fn(i).fold(() => ko(i).length, (m) => m.length), Bs = (i) => Fn(i).filter((m) => m.trim().length !== 0 || m.indexOf(Ze) > -1).isSome(), dl = (i) => fn(i) && Hr(i, "contenteditable") === "false", jc = [
|
|
42391
42391
|
"img",
|
|
42392
42392
|
"br"
|
|
42393
|
-
], Kl = (i) => Bs(i) ||
|
|
42393
|
+
], Kl = (i) => Bs(i) || Jt(jc, Qo(i)) || dl(i), Ld = (i) => xr(i, Kl), cu = (i) => Ug(i, Kl), Ug = (i, m) => {
|
|
42394
42394
|
const h = (v) => {
|
|
42395
42395
|
const _ = ko(v);
|
|
42396
42396
|
for (let O = _.length - 1; O >= 0; O--) {
|
|
@@ -42424,7 +42424,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
42424
42424
|
return ts(Z, ue), ue;
|
|
42425
42425
|
}, m);
|
|
42426
42426
|
}).getOr(m), no = (i, m) => {
|
|
42427
|
-
Bo(Tf, (h, v) => ca(i, v).filter((_) =>
|
|
42427
|
+
Bo(Tf, (h, v) => ca(i, v).filter((_) => Jt(h, _)).each((_) => Us(m, v, _)));
|
|
42428
42428
|
}, ba = (i, m, h) => {
|
|
42429
42429
|
const v = (I, Z) => {
|
|
42430
42430
|
yf(I.element, Z), al(Z, "height"), I.colspan !== 1 && al(Z, "width");
|
|
@@ -42493,7 +42493,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
42493
42493
|
default: !0
|
|
42494
42494
|
}), m("table_header_type", {
|
|
42495
42495
|
processor: (h) => {
|
|
42496
|
-
const v =
|
|
42496
|
+
const v = Jt([
|
|
42497
42497
|
"section",
|
|
42498
42498
|
"cells",
|
|
42499
42499
|
"sectionCells",
|
|
@@ -42519,7 +42519,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
42519
42519
|
default: { "border-collapse": "collapse" }
|
|
42520
42520
|
}), m("table_column_resizing", {
|
|
42521
42521
|
processor: (h) => {
|
|
42522
|
-
const v =
|
|
42522
|
+
const v = Jt([
|
|
42523
42523
|
"preservetable",
|
|
42524
42524
|
"resizetable"
|
|
42525
42525
|
], h);
|
|
@@ -42544,7 +42544,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
42544
42544
|
});
|
|
42545
42545
|
}, Nm = (i) => ie.from(i.options.get("table_clone_elements")), _T = (i) => {
|
|
42546
42546
|
const m = i.options.get("object_resizing");
|
|
42547
|
-
return
|
|
42547
|
+
return Jt(m.split(","), "table");
|
|
42548
42548
|
}, jg = ic("table_header_type"), Ty = ic("table_column_resizing"), Gx = (i) => Ty(i) === "preservetable", Mr = (i) => Ty(i) === "resizetable", Zh = ic("table_sizing_mode"), sd = (i) => Zh(i) === "relative", Of = (i) => Zh(i) === "fixed", Gg = (i) => Zh(i) === "responsive", qg = ic("table_resize_bars"), Xl = ic("table_style_by_css"), hr = ic("table_merge_content_on_paste"), rd = (i) => {
|
|
42549
42549
|
const m = i.options, h = m.get("table_default_attributes");
|
|
42550
42550
|
return m.isSet("table_default_attributes") ? h : Zg(i, h);
|
|
@@ -42626,7 +42626,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
42626
42626
|
"pre",
|
|
42627
42627
|
"address"
|
|
42628
42628
|
], Je = () => {
|
|
42629
|
-
const i = (ue) => _e.fromDom(ue.dom.cloneNode(!1)), m = (ue) => Ki(ue).dom, h = (ue) => Er(ue) ? Qo(ue) === "body" ? !0 :
|
|
42629
|
+
const i = (ue) => _e.fromDom(ue.dom.cloneNode(!1)), m = (ue) => Ki(ue).dom, h = (ue) => Er(ue) ? Qo(ue) === "body" ? !0 : Jt(Ry, Qo(ue)) : !1, v = (ue) => Er(ue) ? Jt([
|
|
42630
42630
|
"br",
|
|
42631
42631
|
"img",
|
|
42632
42632
|
"hr",
|
|
@@ -42636,7 +42636,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
42636
42636
|
bc(Te, at);
|
|
42637
42637
|
}, Z = (ue) => {
|
|
42638
42638
|
const Te = Qo(ue);
|
|
42639
|
-
return
|
|
42639
|
+
return Jt([
|
|
42640
42640
|
"script",
|
|
42641
42641
|
"noscript",
|
|
42642
42642
|
"iframe",
|
|
@@ -42950,11 +42950,11 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
42950
42950
|
const m = ro(i, (h) => Qh(h.element));
|
|
42951
42951
|
return m.length === 0 ? ie.some("td") : m.length === i.length ? ie.some("th") : ie.none();
|
|
42952
42952
|
}, PT = (i) => {
|
|
42953
|
-
const m = mn(i, (_) => Eb(_).type), h =
|
|
42953
|
+
const m = mn(i, (_) => Eb(_).type), h = Jt(m, "header"), v = Jt(m, "footer");
|
|
42954
42954
|
if (!h && !v)
|
|
42955
42955
|
return ie.some("body");
|
|
42956
42956
|
{
|
|
42957
|
-
const _ =
|
|
42957
|
+
const _ = Jt(m, "body");
|
|
42958
42958
|
return h && !_ && !v ? ie.some("header") : !h && !_ && v ? ie.some("footer") : ie.none();
|
|
42959
42959
|
}
|
|
42960
42960
|
}, M1 = (i) => Zo(i.all, (m) => {
|
|
@@ -43009,8 +43009,8 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
43009
43009
|
Ye.isNew && v.push(Ye.element), Ud(Ye.element, "colspan", Ye.colspan, 1), Ud(Ye.element, "rowspan", Ye.rowspan, 1), ts(Pt, Ye.element);
|
|
43010
43010
|
}), Pt;
|
|
43011
43011
|
}), O = (Rt) => os(Rt, (Qe) => mn(Qe.cells, (Pt) => (Ud(Pt.element, "span", Pt.colspan, 1), Pt.element))), I = (Rt, Qe) => {
|
|
43012
|
-
const Pt = tp(i, Qe),
|
|
43013
|
-
Or(Pt,
|
|
43012
|
+
const Pt = tp(i, Qe), Xt = (Qe === "colgroup" ? O : _)(Rt);
|
|
43013
|
+
Or(Pt, Xt);
|
|
43014
43014
|
}, Z = (Rt) => {
|
|
43015
43015
|
fo(i, Rt).each(nr);
|
|
43016
43016
|
}, J = (Rt, Qe) => {
|
|
@@ -43261,8 +43261,8 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
43261
43261
|
continue;
|
|
43262
43262
|
}
|
|
43263
43263
|
lC(m, Rt, Pt, _) && Gc(m, fr(m[Rt], Pt), _, v.cell);
|
|
43264
|
-
const Ye = Pt - Z - Qe,
|
|
43265
|
-
Nd(m[Rt], Pt, Be(Un, !0,
|
|
43264
|
+
const Ye = Pt - Z - Qe, Xt = ga(h[Rt - I], Ye), kn = Xt.element, Un = v.replace(kn);
|
|
43265
|
+
Nd(m[Rt], Pt, Be(Un, !0, Xt.isLocked));
|
|
43266
43266
|
}
|
|
43267
43267
|
}
|
|
43268
43268
|
return m;
|
|
@@ -43351,7 +43351,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
43351
43351
|
const O = Rr(i).rows, I = os(m, (Te) => mC(O, Te, v)), Z = mn(O, (Te) => Tb(Te.cells)), J = th(I, Z), ue = nh(h, Z);
|
|
43352
43352
|
return oh(i, I, v, _, Lf, ue, J);
|
|
43353
43353
|
}, UT = (i, m, h, v, _, O, I) => {
|
|
43354
|
-
const { cols: Z, rows: J } = Rr(i), ue = J[m[0]], Te = os(m, (Ye) => zT(J, Ye, _)), at = mn(ue.cells, (Ye,
|
|
43354
|
+
const { cols: Z, rows: J } = Rr(i), ue = J[m[0]], Te = os(m, (Ye) => zT(J, Ye, _)), at = mn(ue.cells, (Ye, Xt) => Tb(mC(J, Xt, _))), Nt = [...J];
|
|
43355
43355
|
ot(m, (Ye) => {
|
|
43356
43356
|
Nt[Ye] = I.transformRow(J[Ye], h);
|
|
43357
43357
|
});
|
|
@@ -43395,7 +43395,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
43395
43395
|
if (m.length !== Nt.length)
|
|
43396
43396
|
throw new Error("Wrong number of arguments to match. Expected: " + m.join(",") + `
|
|
43397
43397
|
Actual: ` + Nt.join(","));
|
|
43398
|
-
if (!Lo(m, (Qe) =>
|
|
43398
|
+
if (!Lo(m, (Qe) => Jt(Nt, Qe)))
|
|
43399
43399
|
throw new Error("Not all branches were specified when using match. Specified: " + Nt.join(", ") + `
|
|
43400
43400
|
Required: ` + m.join(", "));
|
|
43401
43401
|
return at[I].apply(null, J);
|
|
@@ -43555,7 +43555,7 @@ Required: ` + m.join(", "));
|
|
|
43555
43555
|
"row",
|
|
43556
43556
|
"col"
|
|
43557
43557
|
];
|
|
43558
|
-
return nt(O, (ue) => ue !== I &&
|
|
43558
|
+
return nt(O, (ue) => ue !== I && Jt(Z, ue)) ? ie.none() : ie.from(I);
|
|
43559
43559
|
}
|
|
43560
43560
|
};
|
|
43561
43561
|
return al(v[0], "width"), _().fold(() => Is(v[0], "scope"), (O) => Us(v[0], "scope", O + "group")), me(v[0]);
|
|
@@ -43594,14 +43594,14 @@ Required: ` + m.join(", "));
|
|
|
43594
43594
|
"address"
|
|
43595
43595
|
], dp = (i, m) => {
|
|
43596
43596
|
const h = i.property().name(m);
|
|
43597
|
-
return
|
|
43597
|
+
return Jt([
|
|
43598
43598
|
"ol",
|
|
43599
43599
|
"ul"
|
|
43600
43600
|
], h);
|
|
43601
43601
|
}, Ti = (i, m) => {
|
|
43602
43602
|
const h = i.property().name(m);
|
|
43603
|
-
return
|
|
43604
|
-
}, Xy = (i, m) =>
|
|
43603
|
+
return Jt(F1, h);
|
|
43604
|
+
}, Xy = (i, m) => Jt([
|
|
43605
43605
|
"br",
|
|
43606
43606
|
"img",
|
|
43607
43607
|
"hr",
|
|
@@ -43812,7 +43812,7 @@ Required: ` + m.join(", "));
|
|
|
43812
43812
|
effect: em
|
|
43813
43813
|
}));
|
|
43814
43814
|
}) : ie.none();
|
|
43815
|
-
}, at = Te(wC, _, Mt, eo), Nt = Te(Ei, O, Mt, eo), Rt = Te(U1, Fe, Mt, eo), Qe = Te(qd, Fe, Mt, eo), Pt = Te($u, Fe, Z, eo), Ye = Te(Ht, Fe, Z, eo),
|
|
43815
|
+
}, at = Te(wC, _, Mt, eo), Nt = Te(Ei, O, Mt, eo), Rt = Te(U1, Fe, Mt, eo), Qe = Te(qd, Fe, Mt, eo), Pt = Te($u, Fe, Z, eo), Ye = Te(Ht, Fe, Z, eo), Xt = Te(JT, Fe, Mt, eo), kn = Te(Kc, Fe, Mt, eo), Un = Te(QT, Fe, Mt, eo), js = Te(eE, Fe, Mt, eo), Sa = Te(d2, Fe, Mt, eo), _r = Te(tE, Fe, Mt, eo), $l = Te(W1, Fe, Mt, g2), fh = Te(XT, Fe, Mt, eo), gh = Te(u2, Fe, Mt, eo), lw = Te(xC, Fe, Mt, eo), kv = Te(c2, Fe, Mt, eo), ds = Te(CC, Fe, Mt, eo), Jc = Te(l2, Fe, Mt, eo), gc = Te(i2, Fe, Mt, eo);
|
|
43816
43816
|
return {
|
|
43817
43817
|
deleteRow: at,
|
|
43818
43818
|
deleteColumn: Nt,
|
|
@@ -43820,7 +43820,7 @@ Required: ` + m.join(", "));
|
|
|
43820
43820
|
insertRowsAfter: Qe,
|
|
43821
43821
|
insertColumnsBefore: Pt,
|
|
43822
43822
|
insertColumnsAfter: Ye,
|
|
43823
|
-
mergeCells:
|
|
43823
|
+
mergeCells: Xt,
|
|
43824
43824
|
unmergeCells: kn,
|
|
43825
43825
|
pasteColsBefore: Un,
|
|
43826
43826
|
pasteColsAfter: js,
|
|
@@ -44051,57 +44051,57 @@ Required: ` + m.join(", "));
|
|
|
44051
44051
|
i.fold(xE, (m) => IC({ [C2]: m }));
|
|
44052
44052
|
}, LC = () => S2(C2), xE = () => yE(C2), k2 = (i) => cd(Si(i), Fd(i)).filter(bb), CE = (i) => $1(Si(i), Fd(i)).filter(bb), wp = (i, m) => {
|
|
44053
44053
|
const h = Fd(i), v = () => k2(i).each((Ye) => {
|
|
44054
|
-
oc(Ye, h).filter(oe(h)).each((
|
|
44054
|
+
oc(Ye, h).filter(oe(h)).each((Xt) => {
|
|
44055
44055
|
const kn = _e.fromText("");
|
|
44056
|
-
if (ia(
|
|
44056
|
+
if (ia(Xt, kn), nr(Xt), i.dom.isEmpty(i.getBody()))
|
|
44057
44057
|
i.setContent(""), i.selection.setCursorLocation();
|
|
44058
44058
|
else {
|
|
44059
44059
|
const Un = i.dom.createRng();
|
|
44060
44060
|
Un.setStart(kn.dom, 0), Un.setEnd(kn.dom, 0), i.selection.setRng(Un), i.nodeChanged();
|
|
44061
44061
|
}
|
|
44062
44062
|
});
|
|
44063
|
-
}), _ = (Ye) => k2(i).each((
|
|
44064
|
-
Gg(i) || Of(i) || sd(i) || oc(
|
|
44063
|
+
}), _ = (Ye) => k2(i).each((Xt) => {
|
|
44064
|
+
Gg(i) || Of(i) || sd(i) || oc(Xt, h).each((Un) => {
|
|
44065
44065
|
Ye === "relative" && !j1(Un) ? iu(Un) : Ye === "fixed" && !G1(Un) ? vp(Un) : Ye === "responsive" && !qb(Un) && K1(Un), ad(Un), sh(i, Un.dom, eo);
|
|
44066
44066
|
});
|
|
44067
|
-
}), O = (Ye) => oc(Ye, h), I = (Ye) => CE(i).bind((
|
|
44067
|
+
}), O = (Ye) => oc(Ye, h), I = (Ye) => CE(i).bind((Xt) => O(Xt).map((kn) => Ye(kn, Xt))), Z = (Ye, Xt) => {
|
|
44068
44068
|
I((kn) => {
|
|
44069
|
-
i.formatter.toggle("tableclass", { value:
|
|
44069
|
+
i.formatter.toggle("tableclass", { value: Xt }, kn.dom), sh(i, kn.dom, Wm);
|
|
44070
44070
|
});
|
|
44071
|
-
}, J = (Ye,
|
|
44071
|
+
}, J = (Ye, Xt) => {
|
|
44072
44072
|
I((kn) => {
|
|
44073
|
-
const Un = lu(i), Sa = Lo(Un, (_r) => i.formatter.match("tablecellclass", { value:
|
|
44074
|
-
ot(Un, (_r) => Sa("tablecellclass", { value:
|
|
44073
|
+
const Un = lu(i), Sa = Lo(Un, (_r) => i.formatter.match("tablecellclass", { value: Xt }, _r.dom)) ? i.formatter.remove : i.formatter.apply;
|
|
44074
|
+
ot(Un, (_r) => Sa("tablecellclass", { value: Xt }, _r.dom)), sh(i, kn.dom, Wm);
|
|
44075
44075
|
});
|
|
44076
44076
|
}, ue = () => {
|
|
44077
44077
|
k2(i).each((Ye) => {
|
|
44078
|
-
oc(Ye, h).each((
|
|
44079
|
-
fo(
|
|
44078
|
+
oc(Ye, h).each((Xt) => {
|
|
44079
|
+
fo(Xt, "caption").fold(() => {
|
|
44080
44080
|
const kn = _e.fromTag("caption");
|
|
44081
|
-
ts(kn, _e.fromText("Caption")), Ra(
|
|
44081
|
+
ts(kn, _e.fromText("Caption")), Ra(Xt, kn, 0), i.selection.setCursorLocation(kn.dom, 0);
|
|
44082
44082
|
}, (kn) => {
|
|
44083
|
-
wr("caption")(Ye) && qi("td",
|
|
44084
|
-
}), sh(i,
|
|
44083
|
+
wr("caption")(Ye) && qi("td", Xt).each((Un) => i.selection.setCursorLocation(Un.dom, 0)), nr(kn);
|
|
44084
|
+
}), sh(i, Xt.dom, eo);
|
|
44085
44085
|
});
|
|
44086
44086
|
});
|
|
44087
44087
|
}, Te = (Ye) => {
|
|
44088
44088
|
i.focus();
|
|
44089
|
-
}, at = (Ye,
|
|
44089
|
+
}, at = (Ye, Xt = !1) => I((kn, Un) => {
|
|
44090
44090
|
const js = Gh(lu(i), kn, Un);
|
|
44091
|
-
Ye(kn, js,
|
|
44092
|
-
}), Nt = () => I((Ye,
|
|
44093
|
-
const kn = Gh(lu(i), Ye,
|
|
44091
|
+
Ye(kn, js, Xt).each(Te);
|
|
44092
|
+
}), Nt = () => I((Ye, Xt) => {
|
|
44093
|
+
const kn = Gh(lu(i), Ye, Xt), Un = ba(Mt, _e.fromDom(i.getDoc()), ie.none());
|
|
44094
44094
|
return aE(Ye, kn, Un);
|
|
44095
|
-
}), Rt = () => I((Ye,
|
|
44096
|
-
const kn = Gh(lu(i), Ye,
|
|
44095
|
+
}), Rt = () => I((Ye, Xt) => {
|
|
44096
|
+
const kn = Gh(lu(i), Ye, Xt);
|
|
44097
44097
|
return rE(Ye, kn);
|
|
44098
|
-
}), Qe = (Ye,
|
|
44098
|
+
}), Qe = (Ye, Xt) => Xt().each((kn) => {
|
|
44099
44099
|
const Un = mn(kn, (js) => Fc(js));
|
|
44100
44100
|
I((js, Sa) => {
|
|
44101
44101
|
const _r = lc(_e.fromDom(i.getDoc())), $l = qh(lu(i), Sa, Un, _r);
|
|
44102
44102
|
Ye(js, $l).each(Te);
|
|
44103
44103
|
});
|
|
44104
|
-
}), Pt = (Ye) => (
|
|
44104
|
+
}), Pt = (Ye) => (Xt, kn) => Zi(kn, "type").each((Un) => {
|
|
44105
44105
|
at(Ye(Un), kn.no_events);
|
|
44106
44106
|
});
|
|
44107
44107
|
Bo({
|
|
@@ -44129,7 +44129,7 @@ Required: ` + m.join(", "));
|
|
|
44129
44129
|
mceTableCellToggleClass: J,
|
|
44130
44130
|
mceTableToggleClass: Z,
|
|
44131
44131
|
mceTableToggleCaption: ue,
|
|
44132
|
-
mceTableSizingMode: (Ye,
|
|
44132
|
+
mceTableSizingMode: (Ye, Xt) => _(Xt),
|
|
44133
44133
|
mceTableCellType: Pt((Ye) => Ye === "th" ? m.makeCellsHeader : m.unmakeCellsHeader),
|
|
44134
44134
|
mceTableColType: Pt((Ye) => Ye === "th" ? m.makeColumnsHeader : m.unmakeColumnsHeader),
|
|
44135
44135
|
mceTableRowType: Pt((Ye) => {
|
|
@@ -44142,16 +44142,16 @@ Required: ` + m.join(", "));
|
|
|
44142
44142
|
return m.makeRowsBody;
|
|
44143
44143
|
}
|
|
44144
44144
|
})
|
|
44145
|
-
}, (Ye,
|
|
44146
|
-
PC(i,
|
|
44147
|
-
}), i.addCommand("mceTableApplyCellStyle", (Ye,
|
|
44145
|
+
}, (Ye, Xt) => i.addCommand(Xt, Ye)), i.addCommand("mceInsertTable", (Ye, Xt) => {
|
|
44146
|
+
PC(i, Xt.rows, Xt.columns, Xt.options);
|
|
44147
|
+
}), i.addCommand("mceTableApplyCellStyle", (Ye, Xt) => {
|
|
44148
44148
|
const kn = (Sa) => "tablecell" + Sa.toLowerCase().replace("-", "");
|
|
44149
|
-
if (!ee(
|
|
44149
|
+
if (!ee(Xt))
|
|
44150
44150
|
return;
|
|
44151
44151
|
const Un = ro(lu(i), bb);
|
|
44152
44152
|
if (Un.length === 0)
|
|
44153
44153
|
return;
|
|
44154
|
-
const js = vr(
|
|
44154
|
+
const js = vr(Xt, (Sa, _r) => i.formatter.has(kn(_r)) && De(Sa));
|
|
44155
44155
|
vl(js) || (Bo(js, (Sa, _r) => {
|
|
44156
44156
|
const $l = kn(_r);
|
|
44157
44157
|
ot(Un, (fh) => {
|
|
@@ -44450,8 +44450,8 @@ Required: ` + m.join(", "));
|
|
|
44450
44450
|
Ou(at, Nt, h).each((Rt) => {
|
|
44451
44451
|
const Qe = Rt.boxes.getOr([]);
|
|
44452
44452
|
if (Qe.length === 1) {
|
|
44453
|
-
const Pt = Qe[0], Ye = k1(Pt) === "false",
|
|
44454
|
-
Ye &&
|
|
44453
|
+
const Pt = Qe[0], Ye = k1(Pt) === "false", Xt = hi(gb(Te.target), Pt, es);
|
|
44454
|
+
Ye && Xt && (v.selectRange(m, Qe, Pt, Pt), i.selectContents(Pt));
|
|
44455
44455
|
} else Qe.length > 1 && (v.selectRange(m, Qe, Rt.start, Rt.finish), i.selectContents(Nt));
|
|
44456
44456
|
});
|
|
44457
44457
|
});
|
|
@@ -44539,7 +44539,7 @@ Required: ` + m.join(", "));
|
|
|
44539
44539
|
return W2(v, m, h).map((_) => Cp.create(_e.fromDom(_.startContainer), _.startOffset, _e.fromDom(_.endContainer), _.endOffset));
|
|
44540
44540
|
}, l0 = (i, m) => {
|
|
44541
44541
|
const h = Qo(i);
|
|
44542
|
-
return h === "input" ? qa.after(i) :
|
|
44542
|
+
return h === "input" ? qa.after(i) : Jt([
|
|
44543
44543
|
"br",
|
|
44544
44544
|
"img"
|
|
44545
44545
|
], h) ? m === 0 ? qa.before(i) : qa.after(i) : qa.on(i, m);
|
|
@@ -44610,23 +44610,23 @@ Required: ` + m.join(", "));
|
|
|
44610
44610
|
}, hd = (i, m, h) => UE(i, m, h), hv = (i) => {
|
|
44611
44611
|
Zr(i).each((m) => m.removeAllRanges());
|
|
44612
44612
|
}, Bp = (i) => ({
|
|
44613
|
-
elementFromPoint: (Ye,
|
|
44613
|
+
elementFromPoint: (Ye, Xt) => _e.fromPoint(_e.fromDom(i.document), Ye, Xt),
|
|
44614
44614
|
getRect: (Ye) => Ye.dom.getBoundingClientRect(),
|
|
44615
|
-
getRangedRect: (Ye,
|
|
44616
|
-
const js = Xf.exact(Ye,
|
|
44615
|
+
getRangedRect: (Ye, Xt, kn, Un) => {
|
|
44616
|
+
const js = Xf.exact(Ye, Xt, kn, Un);
|
|
44617
44617
|
return ZE(i, js);
|
|
44618
44618
|
},
|
|
44619
44619
|
getSelection: () => j2(i).map((Ye) => D2(i, Ye)),
|
|
44620
44620
|
fromSitus: (Ye) => {
|
|
44621
|
-
const
|
|
44622
|
-
return D2(i,
|
|
44621
|
+
const Xt = Xf.relative(Ye.start, Ye.finish);
|
|
44622
|
+
return D2(i, Xt);
|
|
44623
44623
|
},
|
|
44624
|
-
situsFromPoint: (Ye,
|
|
44624
|
+
situsFromPoint: (Ye, Xt) => hd(i, Ye, Xt).map((kn) => ZC.create(kn.start, kn.soffset, kn.finish, kn.foffset)),
|
|
44625
44625
|
clearSelection: () => {
|
|
44626
44626
|
hv(i);
|
|
44627
44627
|
},
|
|
44628
44628
|
collapseSelection: (Ye = !1) => {
|
|
44629
|
-
j2(i).each((
|
|
44629
|
+
j2(i).each((Xt) => Xt.fold((kn) => kn.collapse(Ye), (kn, Un) => {
|
|
44630
44630
|
const js = Ye ? kn : Un;
|
|
44631
44631
|
gv(i, js, js);
|
|
44632
44632
|
}, (kn, Un, js, Sa) => {
|
|
@@ -44637,8 +44637,8 @@ Required: ` + m.join(", "));
|
|
|
44637
44637
|
setSelection: (Ye) => {
|
|
44638
44638
|
fv(i, Ye.start, Ye.soffset, Ye.finish, Ye.foffset);
|
|
44639
44639
|
},
|
|
44640
|
-
setRelativeSelection: (Ye,
|
|
44641
|
-
gv(i, Ye,
|
|
44640
|
+
setRelativeSelection: (Ye, Xt) => {
|
|
44641
|
+
gv(i, Ye, Xt);
|
|
44642
44642
|
},
|
|
44643
44643
|
selectNode: (Ye) => {
|
|
44644
44644
|
u0(i, Ye, !1);
|
|
@@ -44648,8 +44648,8 @@ Required: ` + m.join(", "));
|
|
|
44648
44648
|
},
|
|
44649
44649
|
getInnerHeight: () => i.innerHeight,
|
|
44650
44650
|
getScrollY: () => HE(_e.fromDom(i.document)).top,
|
|
44651
|
-
scrollBy: (Ye,
|
|
44652
|
-
Mp(Ye,
|
|
44651
|
+
scrollBy: (Ye, Xt) => {
|
|
44652
|
+
Mp(Ye, Xt, _e.fromDom(i.document));
|
|
44653
44653
|
}
|
|
44654
44654
|
}), fc = (i, m) => ({
|
|
44655
44655
|
rows: i,
|
|
@@ -44830,7 +44830,7 @@ Required: ` + m.join(", "));
|
|
|
44830
44830
|
]).fold(() => O.clear(Te), Mt);
|
|
44831
44831
|
}, Rt = Kr(ue, Te, at, O), Qe = bv(ue, Te, at, O), Pt = m0(ue, Te, at, O), Ye = (ds) => ds.raw.shiftKey === !0;
|
|
44832
44832
|
i.on("TableSelectorChange", (ds) => Pt(ds.start, ds.finish));
|
|
44833
|
-
const
|
|
44833
|
+
const Xt = (ds, Jc) => {
|
|
44834
44834
|
Ye(ds) && (Jc.kill && ds.kill(), Jc.selection.each((gc) => {
|
|
44835
44835
|
const $i = Xf.relative(gc.start, gc.finish), ri = O2(ue, $i);
|
|
44836
44836
|
i.selection.setRng(ri);
|
|
@@ -44840,7 +44840,7 @@ Required: ` + m.join(", "));
|
|
|
44840
44840
|
if (Jc.raw.shiftKey && uh(Jc.raw.which)) {
|
|
44841
44841
|
const gc = i.selection.getRng(), $i = _e.fromDom(gc.startContainer), ri = _e.fromDom(gc.endContainer);
|
|
44842
44842
|
Qe.keyup(Jc, $i, gc.startOffset, ri, gc.endOffset).each((eg) => {
|
|
44843
|
-
|
|
44843
|
+
Xt(Jc, eg);
|
|
44844
44844
|
});
|
|
44845
44845
|
}
|
|
44846
44846
|
}, Un = (ds) => {
|
|
@@ -44848,7 +44848,7 @@ Required: ` + m.join(", "));
|
|
|
44848
44848
|
m.hide();
|
|
44849
44849
|
const gc = i.selection.getRng(), $i = _e.fromDom(gc.startContainer), ri = _e.fromDom(gc.endContainer), eg = Vh(FE, nS)(_e.fromDom(i.selection.getStart()));
|
|
44850
44850
|
Qe.keydown(Jc, $i, gc.startOffset, ri, gc.endOffset, eg).each((hl) => {
|
|
44851
|
-
|
|
44851
|
+
Xt(Jc, hl);
|
|
44852
44852
|
}), m.show();
|
|
44853
44853
|
}, js = (ds) => ds.button === 0, Sa = (ds) => ds.buttons === void 0 ? !0 : (ds.buttons & 1) !== 0, _r = (ds) => {
|
|
44854
44854
|
Rt.clearstate();
|
|
@@ -44944,12 +44944,12 @@ Required: ` + m.join(", "));
|
|
|
44944
44944
|
throw new Error("You must specify at least one required field.");
|
|
44945
44945
|
return Ac("required", m), h5(m), (v) => {
|
|
44946
44946
|
const _ = Ft(v);
|
|
44947
|
-
Lo(m, (Z) =>
|
|
44947
|
+
Lo(m, (Z) => Jt(_, Z)) || KE(m, _), i(m, _);
|
|
44948
44948
|
const I = ro(m, (Z) => !h.validate(v[Z], Z));
|
|
44949
44949
|
return I.length > 0 && mh(I, h.label), v;
|
|
44950
44950
|
};
|
|
44951
44951
|
}, io = (i, m) => {
|
|
44952
|
-
const h = ro(m, (v) => !
|
|
44952
|
+
const h = ro(m, (v) => !Jt(i, v));
|
|
44953
44953
|
h.length > 0 && si(h);
|
|
44954
44954
|
}, tw = (i) => gS(io, i), hS = tw([
|
|
44955
44955
|
"compare",
|
|
@@ -45027,8 +45027,8 @@ Required: ` + m.join(", "));
|
|
|
45027
45027
|
v = !0;
|
|
45028
45028
|
}, at = () => {
|
|
45029
45029
|
v = !1;
|
|
45030
|
-
}, Nt = () => v, Rt = (Ye) => (...
|
|
45031
|
-
v && Ye.apply(null,
|
|
45030
|
+
}, Nt = () => v, Rt = (Ye) => (...Xt) => {
|
|
45031
|
+
v && Ye.apply(null, Xt);
|
|
45032
45032
|
}, Qe = m.sink(XE({
|
|
45033
45033
|
forceDrop: I,
|
|
45034
45034
|
drop: Rt(I),
|
|
@@ -45182,7 +45182,7 @@ Required: ` + m.join(", "));
|
|
|
45182
45182
|
return du(I, ow), I;
|
|
45183
45183
|
});
|
|
45184
45184
|
}, c4 = (i, m, h, v, _) => {
|
|
45185
|
-
const O =
|
|
45185
|
+
const O = qt(h), I = m.isResizable, Z = v.length > 0 ? Wt.positions(v, h) : [], J = Z.length > 0 ? s4(i, I) : [], ue = ro(Z, (Rt, Qe) => nt(J, (Pt) => Qe === Pt));
|
|
45186
45186
|
a4(m, ue, O, xi(h));
|
|
45187
45187
|
const Te = _.length > 0 ? $r.positions(_, h) : [], at = Te.length > 0 ? r4(i, I) : [], Nt = ro(Te, (Rt, Qe) => nt(at, (Pt) => Qe === Pt));
|
|
45188
45188
|
CS(m, Nt, O, S(h));
|
|
@@ -45216,18 +45216,18 @@ Required: ` + m.join(", "));
|
|
|
45216
45216
|
});
|
|
45217
45217
|
});
|
|
45218
45218
|
const O = (Qe, Pt) => {
|
|
45219
|
-
const Ye = zr(Qe, Pt),
|
|
45220
|
-
return Ye -
|
|
45219
|
+
const Ye = zr(Qe, Pt), Xt = ws(Qe, "data-initial-" + Pt, 0);
|
|
45220
|
+
return Ye - Xt;
|
|
45221
45221
|
};
|
|
45222
45222
|
h.events.stop.bind(() => {
|
|
45223
45223
|
m.get().each((Qe) => {
|
|
45224
45224
|
v.each((Pt) => {
|
|
45225
45225
|
_(Qe, "data-row").each((Ye) => {
|
|
45226
|
-
const
|
|
45227
|
-
Is(Qe, "data-initial-top"), Rt.trigger.adjustHeight(Pt,
|
|
45226
|
+
const Xt = O(Qe, "top");
|
|
45227
|
+
Is(Qe, "data-initial-top"), Rt.trigger.adjustHeight(Pt, Xt, parseInt(Ye, 10));
|
|
45228
45228
|
}), _(Qe, "data-column").each((Ye) => {
|
|
45229
|
-
const
|
|
45230
|
-
Is(Qe, "data-initial-left"), Rt.trigger.adjustWidth(Pt,
|
|
45229
|
+
const Xt = O(Qe, "left");
|
|
45230
|
+
Is(Qe, "data-initial-left"), Rt.trigger.adjustWidth(Pt, Xt, parseInt(Ye, 10));
|
|
45231
45231
|
}), xv(i, Pt);
|
|
45232
45232
|
});
|
|
45233
45233
|
});
|
|
@@ -45312,7 +45312,7 @@ Required: ` + m.join(", "));
|
|
|
45312
45312
|
};
|
|
45313
45313
|
},
|
|
45314
45314
|
detached: (i, m, h) => {
|
|
45315
|
-
const v = () =>
|
|
45315
|
+
const v = () => qt(m);
|
|
45316
45316
|
return {
|
|
45317
45317
|
parent: me(m),
|
|
45318
45318
|
view: me(i),
|
|
@@ -45348,10 +45348,10 @@ Required: ` + m.join(", "));
|
|
|
45348
45348
|
const m = Rp(), h = Rp(), v = Rp();
|
|
45349
45349
|
let _, O;
|
|
45350
45350
|
const I = (Qe) => Yc(i, Qe), Z = () => Gx(i) ? Hy() : tC(), J = (Qe) => Jh(Qe).columns, ue = (Qe, Pt, Ye) => {
|
|
45351
|
-
const
|
|
45351
|
+
const Xt = Ji(Pt, "e");
|
|
45352
45352
|
if (O === "" && iu(Qe), Ye !== _ && O !== "") {
|
|
45353
45353
|
Zs(Qe, "width", O);
|
|
45354
|
-
const kn = Z(), Un = I(Qe), js = Gx(i) ||
|
|
45354
|
+
const kn = Z(), Un = I(Qe), js = Gx(i) || Xt ? J(Qe) - 1 : 0;
|
|
45355
45355
|
I1(Qe, Ye - _, js, kn, Un);
|
|
45356
45356
|
} else if (pb(O)) {
|
|
45357
45357
|
const kn = parseFloat(O.replace("%", "")), Un = Ye * kn / _;
|
|
@@ -45369,31 +45369,31 @@ Required: ` + m.join(", "));
|
|
|
45369
45369
|
const Qe = aw(i, tf);
|
|
45370
45370
|
if (v.set(Qe), _T(i) && qg(i)) {
|
|
45371
45371
|
const Pt = Z(), Ye = _v.create(Qe, Pt, I);
|
|
45372
|
-
Ye.on(), Ye.events.startDrag.bind((
|
|
45372
|
+
Ye.on(), Ye.events.startDrag.bind((Xt) => {
|
|
45373
45373
|
m.set(i.selection.getRng());
|
|
45374
|
-
}), Ye.events.beforeResize.bind((
|
|
45375
|
-
const kn =
|
|
45376
|
-
f2(i, kn, Rf(kn), $f(kn), Ri +
|
|
45377
|
-
}), Ye.events.afterResize.bind((
|
|
45378
|
-
const kn =
|
|
45374
|
+
}), Ye.events.beforeResize.bind((Xt) => {
|
|
45375
|
+
const kn = Xt.table.dom;
|
|
45376
|
+
f2(i, kn, Rf(kn), $f(kn), Ri + Xt.type);
|
|
45377
|
+
}), Ye.events.afterResize.bind((Xt) => {
|
|
45378
|
+
const kn = Xt.table, Un = kn.dom;
|
|
45379
45379
|
ad(kn), m.on((js) => {
|
|
45380
45380
|
i.selection.setRng(js), i.focus();
|
|
45381
|
-
}), sE(i, Un, Rf(Un), $f(Un), Ri +
|
|
45381
|
+
}), sE(i, Un, Rf(Un), $f(Un), Ri + Xt.type), i.undoManager.add();
|
|
45382
45382
|
}), h.set(Ye);
|
|
45383
45383
|
}
|
|
45384
45384
|
}), i.on("ObjectResizeStart", (Qe) => {
|
|
45385
45385
|
const Pt = Qe.target;
|
|
45386
45386
|
if (po(Pt)) {
|
|
45387
45387
|
const Ye = _e.fromDom(Pt);
|
|
45388
|
-
ot(i.dom.select(".mce-clonedresizable"), (
|
|
45389
|
-
i.dom.addClass(
|
|
45388
|
+
ot(i.dom.select(".mce-clonedresizable"), (Xt) => {
|
|
45389
|
+
i.dom.addClass(Xt, "mce-" + Ty(i) + "-columns");
|
|
45390
45390
|
}), !G1(Ye) && Of(i) ? vp(Ye) : !j1(Ye) && sd(i) && iu(Ye), qb(Ye) && zl(Qe.origin, Ri) && iu(Ye), _ = Qe.width, O = Gg(i) ? "" : qx(i, Pt).getOr("");
|
|
45391
45391
|
}
|
|
45392
45392
|
}), i.on("ObjectResized", (Qe) => {
|
|
45393
45393
|
const Pt = Qe.target;
|
|
45394
45394
|
if (po(Pt)) {
|
|
45395
|
-
const Ye = _e.fromDom(Pt),
|
|
45396
|
-
zl(
|
|
45395
|
+
const Ye = _e.fromDom(Pt), Xt = Qe.origin;
|
|
45396
|
+
zl(Xt, "corner-") && ue(Ye, Xt, Qe.width), ad(Ye), sh(i, Ye.dom, Wm);
|
|
45397
45397
|
}
|
|
45398
45398
|
}), i.on("SwitchMode", () => {
|
|
45399
45399
|
h.on((Qe) => {
|
|
@@ -45437,7 +45437,7 @@ Required: ` + m.join(", "));
|
|
|
45437
45437
|
}, ce = (S) => {
|
|
45438
45438
|
const R = typeof S;
|
|
45439
45439
|
return S === null ? "null" : R === "object" && Array.isArray(S) ? "array" : R === "object" && ve(S, String, (U, re) => re.isPrototypeOf(U)) ? "string" : R;
|
|
45440
|
-
}, $e = (S) => (R) => ce(R) === S, ye = (S) => (R) => typeof R === S, Q = $e("string"), De = $e("object"), ee = $e("array"), Ue = ye("boolean"), Ct = (S) => S == null,
|
|
45440
|
+
}, $e = (S) => (R) => ce(R) === S, ye = (S) => (R) => typeof R === S, Q = $e("string"), De = $e("object"), ee = $e("array"), Ue = ye("boolean"), Ct = (S) => S == null, Gt = (S) => !Ct(S), Sn = ye("function"), zn = ye("number"), Uo = () => {
|
|
45441
45441
|
}, ir = (S, R) => (U) => S(R(U)), $o = (S) => () => S, Mt = (S, R) => S === R;
|
|
45442
45442
|
function ur(S, ...R) {
|
|
45443
45443
|
return (...U) => {
|
|
@@ -45498,7 +45498,7 @@ Required: ` + m.join(", "));
|
|
|
45498
45498
|
throw new Error(R ?? "Called getOrDie on None");
|
|
45499
45499
|
}
|
|
45500
45500
|
static from(R) {
|
|
45501
|
-
return
|
|
45501
|
+
return Gt(R) ? _t.some(R) : _t.none();
|
|
45502
45502
|
}
|
|
45503
45503
|
getOrNull() {
|
|
45504
45504
|
return this.tag ? this.value : null;
|
|
@@ -45550,7 +45550,7 @@ Required: ` + m.join(", "));
|
|
|
45550
45550
|
let U = R(S[0]);
|
|
45551
45551
|
const re = [];
|
|
45552
45552
|
let fe = [];
|
|
45553
|
-
for (let lt = 0,
|
|
45553
|
+
for (let lt = 0, qt = S.length; lt < qt; lt++) {
|
|
45554
45554
|
const On = S[lt], _n = R(On);
|
|
45555
45555
|
_n !== U && (re.push(fe), fe = []), U = _n, fe.push(On);
|
|
45556
45556
|
}
|
|
@@ -45567,7 +45567,7 @@ Required: ` + m.join(", "));
|
|
|
45567
45567
|
break;
|
|
45568
45568
|
}
|
|
45569
45569
|
return _t.none();
|
|
45570
|
-
},
|
|
45570
|
+
}, Jt = (S, R) => A(S, R, me), nt = (S) => {
|
|
45571
45571
|
const R = [];
|
|
45572
45572
|
for (let U = 0, re = S.length; U < re; ++U) {
|
|
45573
45573
|
if (!ee(S[U]))
|
|
@@ -45581,8 +45581,8 @@ Required: ` + m.join(", "));
|
|
|
45581
45581
|
}, ot = (S, R) => R >= 0 && R < S.length ? _t.some(S[R]) : _t.none(), Wo = (S) => ot(S, 0), dr = (S) => ot(S, S.length - 1), ro = (S, R) => {
|
|
45582
45582
|
const U = [], re = Sn(R) ? (fe) => wt(U, (lt) => R(lt, fe)) : (fe) => ns(U, fe);
|
|
45583
45583
|
for (let fe = 0, lt = S.length; fe < lt; fe++) {
|
|
45584
|
-
const
|
|
45585
|
-
re(
|
|
45584
|
+
const qt = S[fe];
|
|
45585
|
+
re(qt) || U.push(qt);
|
|
45586
45586
|
}
|
|
45587
45587
|
return U;
|
|
45588
45588
|
}, pr = (S, R, U = Mt) => S.exists((re) => U(re, R)), et = (S, R, U = Mt) => gt(S, R, U).getOr(S.isNone() && R.isNone()), gt = (S, R, U) => S.isSome() && R.isSome() ? _t.some(U(S.getOrDie(), R.getOrDie())) : _t.none(), z = 8, Qa = 9, Qn = 11, os = 1, Lo = 3, Wi = (S, R) => {
|
|
@@ -45646,7 +45646,7 @@ Required: ` + m.join(", "));
|
|
|
45646
45646
|
}, us = (S) => S.dom.nodeName.toLowerCase(), jo = (S) => S.dom.nodeType, vl = (S) => (R) => jo(R) === S, Yn = (S) => jo(S) === z || us(S) === "#comment", bs = (S) => yr(S) && Zi(S.dom), yr = vl(os), Mc = vl(Lo), ui = vl(Qa), Jo = vl(Qn), ji = (S) => (R) => yr(R) && us(R) === S, ht = (S) => vn.fromDom(S.dom.ownerDocument), mo = (S) => ui(S) ? S : ht(S), Tr = (S) => _t.from(S.dom.parentNode).map(vn.fromDom), Aa = (S) => _t.from(S.dom.parentElement).map(vn.fromDom), Nc = (S) => _t.from(S.dom.nextSibling).map(vn.fromDom), Oa = (S) => Fe(S.dom.childNodes, vn.fromDom), Qo = (S, R) => {
|
|
45647
45647
|
const U = S.dom.childNodes;
|
|
45648
45648
|
return _t.from(U[R]).map(vn.fromDom);
|
|
45649
|
-
}, ec = (S) => Qo(S, 0), pc = (S) => Qo(S, S.dom.childNodes.length - 1), qo = (S) => Jo(S) &&
|
|
45649
|
+
}, ec = (S) => Qo(S, 0), pc = (S) => Qo(S, S.dom.childNodes.length - 1), qo = (S) => Jo(S) && Gt(S.dom.host), Er = Sn(Element.prototype.attachShadow) && Sn(Node.prototype.getRootNode) ? (S) => vn.fromDom(S.dom.getRootNode()) : mo, Bc = (S) => {
|
|
45650
45650
|
const R = Er(S);
|
|
45651
45651
|
return qo(R) ? _t.some(R) : _t.none();
|
|
45652
45652
|
}, Ll = (S) => vn.fromDom(S.dom.host), di = (S) => {
|
|
@@ -45709,8 +45709,8 @@ Required: ` + m.join(", "));
|
|
|
45709
45709
|
const es = (S) => Fe(S, vn.fromDom), ym = Object.keys, Ad = (S, R) => {
|
|
45710
45710
|
const U = ym(S);
|
|
45711
45711
|
for (let re = 0, fe = U.length; re < fe; re++) {
|
|
45712
|
-
const lt = U[re],
|
|
45713
|
-
R(
|
|
45712
|
+
const lt = U[re], qt = S[lt];
|
|
45713
|
+
R(qt, lt);
|
|
45714
45714
|
}
|
|
45715
45715
|
}, tc = (S) => (R, U) => {
|
|
45716
45716
|
S[U] = R;
|
|
@@ -45741,10 +45741,10 @@ Required: ` + m.join(", "));
|
|
|
45741
45741
|
return mi(U, re), Gr(S), U;
|
|
45742
45742
|
};
|
|
45743
45743
|
var Xr = tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"), la = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
45744
|
-
const Hl = (S) => (R) =>
|
|
45744
|
+
const Hl = (S) => (R) => Gt(R) && R.nodeName.toLowerCase() === S, ia = (S) => (R) => Gt(R) && S.test(R.nodeName), Ls = (S) => Gt(S) && S.nodeType === 3, ts = (S) => Gt(S) && S.nodeType === 1, Ra = ia(/^(OL|UL|DL)$/), Yi = ia(/^(OL|UL)$/), Po = Hl("ol"), Or = ia(/^(LI|DT|DD)$/), ua = ia(/^(DT|DD)$/), nr = ia(/^(TH|TD)$/), vc = Hl("br"), Lc = (S) => {
|
|
45745
45745
|
var R;
|
|
45746
45746
|
return ((R = S.parentNode) === null || R === void 0 ? void 0 : R.firstChild) === S;
|
|
45747
|
-
}, Jr = (S, R) =>
|
|
45747
|
+
}, Jr = (S, R) => Gt(R) && R.nodeName in S.schema.getTextBlockElements(), Fc = (S, R) => Gt(S) && S.nodeName in R, Hc = (S, R) => Gt(R) && R.nodeName in S.schema.getVoidElements(), Zu = (S, R) => vc(R) ? S.isBlock(R.nextSibling) && !vc(R.previousSibling) : !1, yc = (S, R, U) => {
|
|
45748
45748
|
const re = S.isEmpty(R);
|
|
45749
45749
|
return U && S.select("span[data-mce-type=bookmark]", R).length > 0 ? !1 : re;
|
|
45750
45750
|
}, Xi = (S, R) => S.isChildOf(R, S.getRoot()), $a = (S) => (R) => R.options.get(S), xl = (S) => {
|
|
@@ -45754,11 +45754,11 @@ Required: ` + m.join(", "));
|
|
|
45754
45754
|
default: !0
|
|
45755
45755
|
});
|
|
45756
45756
|
}, gi = $a("lists_indent_on_tab"), hu = $a("forced_root_block"), ju = $a("forced_root_block_attrs"), j = (S, R) => {
|
|
45757
|
-
const U = S.dom, re = S.schema.getBlockElements(), fe = U.createFragment(), lt = hu(S),
|
|
45757
|
+
const U = S.dom, re = S.schema.getBlockElements(), fe = U.createFragment(), lt = hu(S), qt = ju(S);
|
|
45758
45758
|
let On, _n, hn = !1;
|
|
45759
|
-
for (_n = U.create(lt,
|
|
45759
|
+
for (_n = U.create(lt, qt), Fc(R.firstChild, re) || fe.appendChild(_n); On = R.firstChild; ) {
|
|
45760
45760
|
const zs = On.nodeName;
|
|
45761
|
-
!hn && (zs !== "SPAN" || On.getAttribute("data-mce-type") !== "bookmark") && (hn = !0), Fc(On, re) ? (fe.appendChild(On), _n = null) : (_n || (_n = U.create(lt,
|
|
45761
|
+
!hn && (zs !== "SPAN" || On.getAttribute("data-mce-type") !== "bookmark") && (hn = !0), Fc(On, re) ? (fe.appendChild(On), _n = null) : (_n || (_n = U.create(lt, qt), fe.appendChild(_n)), _n.appendChild(On));
|
|
45762
45762
|
}
|
|
45763
45763
|
return !hn && _n && _n.appendChild(U.create("br", { "data-mce-bogus": "1" })), fe;
|
|
45764
45764
|
}, de = Xr.DOM, Se = (S, R, U) => {
|
|
@@ -45767,9 +45767,9 @@ Required: ` + m.join(", "));
|
|
|
45767
45767
|
zs && la.each(fe, (ea) => {
|
|
45768
45768
|
zs.insertBefore(ea, U.parentNode);
|
|
45769
45769
|
}), de.remove(hn);
|
|
45770
|
-
}, fe = de.select('span[data-mce-type="bookmark"]', R), lt = j(S, U),
|
|
45771
|
-
|
|
45772
|
-
const On =
|
|
45770
|
+
}, fe = de.select('span[data-mce-type="bookmark"]', R), lt = j(S, U), qt = de.createRng();
|
|
45771
|
+
qt.setStartAfter(U), qt.setEndAfter(R);
|
|
45772
|
+
const On = qt.extractContents();
|
|
45773
45773
|
for (let hn = On.firstChild; hn; hn = hn.firstChild)
|
|
45774
45774
|
if (hn.nodeName === "LI" && S.dom.isEmpty(hn)) {
|
|
45775
45775
|
de.remove(hn);
|
|
@@ -45816,7 +45816,7 @@ Required: ` + m.join(", "));
|
|
|
45816
45816
|
], Fs = ao.join(","), Ma = (S, R) => {
|
|
45817
45817
|
const U = R || S.selection.getStart(!0);
|
|
45818
45818
|
return S.dom.getParent(U, Fs, Ot(S, U));
|
|
45819
|
-
}, pu = (S, R) =>
|
|
45819
|
+
}, pu = (S, R) => Gt(S) && R.length === 1 && R[0] === S, Bt = (S) => Mo(S.querySelectorAll(Fs), Ra), Gu = (S) => {
|
|
45820
45820
|
const R = Ma(S), U = S.selection.getSelectedBlocks();
|
|
45821
45821
|
return pu(R, U) ? Bt(R) : Mo(U, (re) => Ra(re) && R !== re);
|
|
45822
45822
|
}, Ws = (S, R) => {
|
|
@@ -45833,7 +45833,7 @@ Required: ` + m.join(", "));
|
|
|
45833
45833
|
return U.length > 0 ? U[0] : S.getBody();
|
|
45834
45834
|
}, Ie = (S, R) => !Ra(R) && !Or(R) && wt(ao, (U) => S.isValidChild(R.nodeName, U)), Ot = (S, R) => {
|
|
45835
45835
|
const U = S.dom.getParents(R, S.dom.isBlock);
|
|
45836
|
-
return
|
|
45836
|
+
return Jt(U, (fe) => Ie(S.schema, fe)).getOr(S.getBody());
|
|
45837
45837
|
}, Kn = (S) => Tr(S).exists((R) => Or(R.dom) && ec(R).exists((U) => !Ra(U.dom)) && pc(R).exists((U) => !Ra(U.dom))), jt = (S, R) => {
|
|
45838
45838
|
const U = S.dom.getParents(R, "ol,ul", Ot(S, R));
|
|
45839
45839
|
return dr(U);
|
|
@@ -45845,7 +45845,7 @@ Required: ` + m.join(", "));
|
|
|
45845
45845
|
return S.dom.getParents(R, "ol,ul", Ot(S, R));
|
|
45846
45846
|
}, rs = (S) => {
|
|
45847
45847
|
const R = $s(S), U = ct(S);
|
|
45848
|
-
return
|
|
45848
|
+
return Jt(U, (re) => Kn(vn.fromDom(re))).fold(() => Ua(S, R), (re) => [re]);
|
|
45849
45849
|
}, Ua = (S, R) => {
|
|
45850
45850
|
const U = Fe(R, (re) => jt(S, re).getOr(re));
|
|
45851
45851
|
return ro(U);
|
|
@@ -45937,11 +45937,11 @@ Required: ` + m.join(", "));
|
|
|
45937
45937
|
return yf(re), pi(re, U), ws(R, re), R.concat(re);
|
|
45938
45938
|
}, wf = (S, R) => {
|
|
45939
45939
|
let U = _t.none();
|
|
45940
|
-
const re = Ge(R, (fe, lt,
|
|
45940
|
+
const re = Ge(R, (fe, lt, qt) => $h(lt) ? qt === 0 ? (U = _t.some(lt), fe) : qu(S, fe, lt) : lt.depth > fe.length ? Ku(S, fe, lt) : qu(S, fe, lt), []);
|
|
45941
45941
|
return U.each((fe) => {
|
|
45942
45942
|
const lt = vn.fromHtml(`<!--${fe.content}-->`);
|
|
45943
|
-
Wo(re).each((
|
|
45944
|
-
Fl(
|
|
45943
|
+
Wo(re).each((qt) => {
|
|
45944
|
+
Fl(qt.list, lt);
|
|
45945
45945
|
});
|
|
45946
45946
|
}), Wo(re).map((fe) => fe.list);
|
|
45947
45947
|
}, xm = (S, R) => {
|
|
@@ -45992,14 +45992,14 @@ Required: ` + m.join(", "));
|
|
|
45992
45992
|
R.each((On) => {
|
|
45993
45993
|
Ft(On.end, re) && U.set(!1);
|
|
45994
45994
|
});
|
|
45995
|
-
const
|
|
45996
|
-
return lt.toArray().concat(
|
|
45995
|
+
const qt = pc(re).filter(rl).map((On) => bi(S, R, U, On)).getOr([]);
|
|
45996
|
+
return lt.toArray().concat(qt);
|
|
45997
45997
|
}, _m = (S, R, U, re) => ec(re).filter(rl).fold(() => bu(S, R, U, re), (fe) => {
|
|
45998
|
-
const lt = Ge(Oa(re), (
|
|
45998
|
+
const lt = Ge(Oa(re), (qt, On, _n) => {
|
|
45999
45999
|
if (_n === 0)
|
|
46000
|
-
return
|
|
46000
|
+
return qt;
|
|
46001
46001
|
if (wm(On))
|
|
46002
|
-
return
|
|
46002
|
+
return qt.concat(bu(S, R, U, On));
|
|
46003
46003
|
{
|
|
46004
46004
|
const hn = {
|
|
46005
46005
|
isFragment: !0,
|
|
@@ -46009,13 +46009,13 @@ Required: ` + m.join(", "));
|
|
|
46009
46009
|
dirty: !1,
|
|
46010
46010
|
parentListType: us(fe)
|
|
46011
46011
|
};
|
|
46012
|
-
return
|
|
46012
|
+
return qt.concat(hn);
|
|
46013
46013
|
}
|
|
46014
46014
|
}, []);
|
|
46015
46015
|
return bi(S, R, U, fe).concat(lt);
|
|
46016
46016
|
}), bi = (S, R, U, re) => No(Oa(re), (fe) => {
|
|
46017
|
-
const lt = rl(fe) ? bi : _m,
|
|
46018
|
-
return lt(
|
|
46017
|
+
const lt = rl(fe) ? bi : _m, qt = S + 1;
|
|
46018
|
+
return lt(qt, R, U, fe);
|
|
46019
46019
|
}), _g = (S, R) => {
|
|
46020
46020
|
const U = Sm(!1), re = 0;
|
|
46021
46021
|
return Fe(S, (fe) => ({
|
|
@@ -46035,7 +46035,7 @@ Required: ` + m.join(", "));
|
|
|
46035
46035
|
ie(Mo(S, ma), (U) => xm(R, U));
|
|
46036
46036
|
}, Yu = (S) => {
|
|
46037
46037
|
const R = Fe(P(S), vn.fromDom);
|
|
46038
|
-
return gt(
|
|
46038
|
+
return gt(Jt(R, dn(co)), Jt(mn(R), dn(co)), (U, re) => ({
|
|
46039
46039
|
start: U,
|
|
46040
46040
|
end: re
|
|
46041
46041
|
}));
|
|
@@ -46044,8 +46044,8 @@ Required: ` + m.join(", "));
|
|
|
46044
46044
|
ie(re, (fe) => {
|
|
46045
46045
|
Eg(fe.entries, U);
|
|
46046
46046
|
const lt = Tg(S, fe.entries);
|
|
46047
|
-
ie(lt, (
|
|
46048
|
-
Vs(S, U === "Indent" ? "IndentList" : "OutdentList",
|
|
46047
|
+
ie(lt, (qt) => {
|
|
46048
|
+
Vs(S, U === "Indent" ? "IndentList" : "OutdentList", qt.dom);
|
|
46049
46049
|
}), Pc(fe.sourceList, lt), Gr(fe.sourceList);
|
|
46050
46050
|
});
|
|
46051
46051
|
}, ae = (S, R) => {
|
|
@@ -46062,8 +46062,8 @@ Required: ` + m.join(", "));
|
|
|
46062
46062
|
const R = {}, U = (re) => {
|
|
46063
46063
|
let fe = S[re ? "startContainer" : "endContainer"], lt = S[re ? "startOffset" : "endOffset"];
|
|
46064
46064
|
if (ts(fe)) {
|
|
46065
|
-
const
|
|
46066
|
-
fe.hasChildNodes() ? (lt = Math.min(lt, fe.childNodes.length - 1), re ? fe.insertBefore(
|
|
46065
|
+
const qt = yu.create("span", { "data-mce-type": "bookmark" });
|
|
46066
|
+
fe.hasChildNodes() ? (lt = Math.min(lt, fe.childNodes.length - 1), re ? fe.insertBefore(qt, fe.childNodes[lt]) : yu.insertAfter(qt, fe.childNodes[lt])) : fe.appendChild(qt), fe = qt, lt = 0;
|
|
46067
46067
|
}
|
|
46068
46068
|
R[re ? "startContainer" : "endContainer"] = fe, R[re ? "startOffset" : "endOffset"] = lt;
|
|
46069
46069
|
};
|
|
@@ -46080,13 +46080,13 @@ Required: ` + m.join(", "));
|
|
|
46080
46080
|
}
|
|
46081
46081
|
return -1;
|
|
46082
46082
|
};
|
|
46083
|
-
let lt = S[re ? "startContainer" : "endContainer"],
|
|
46083
|
+
let lt = S[re ? "startContainer" : "endContainer"], qt = S[re ? "startOffset" : "endOffset"];
|
|
46084
46084
|
if (lt) {
|
|
46085
46085
|
if (ts(lt) && lt.parentNode) {
|
|
46086
46086
|
const On = lt;
|
|
46087
|
-
|
|
46087
|
+
qt = fe(lt), lt = lt.parentNode, yu.remove(On), !lt.hasChildNodes() && yu.isBlock(lt) && lt.appendChild(yu.create("br"));
|
|
46088
46088
|
}
|
|
46089
|
-
S[re ? "startContainer" : "endContainer"] = lt, S[re ? "startOffset" : "endOffset"] =
|
|
46089
|
+
S[re ? "startContainer" : "endContainer"] = lt, S[re ? "startOffset" : "endOffset"] = qt;
|
|
46090
46090
|
}
|
|
46091
46091
|
};
|
|
46092
46092
|
R(!0), R();
|
|
@@ -46116,17 +46116,17 @@ Required: ` + m.join(", "));
|
|
|
46116
46116
|
Og(S, R, U), il(S, R, U);
|
|
46117
46117
|
}, Dg = (S, R, U) => {
|
|
46118
46118
|
la.each(U, (re) => S.setStyle(R, re, ""));
|
|
46119
|
-
}, ja = (S, R) =>
|
|
46119
|
+
}, ja = (S, R) => Gt(R) && !Fc(R, S.schema.getBlockElements()), Dr = (S, R, U, re) => {
|
|
46120
46120
|
let fe = R[U ? "startContainer" : "endContainer"];
|
|
46121
46121
|
const lt = R[U ? "startOffset" : "endOffset"];
|
|
46122
46122
|
ts(fe) && (fe = fe.childNodes[Math.min(lt, fe.childNodes.length - 1)] || fe), !U && vc(fe.nextSibling) && (fe = fe.nextSibling);
|
|
46123
|
-
const
|
|
46123
|
+
const qt = (_n) => {
|
|
46124
46124
|
for (; !S.dom.isBlock(_n) && _n.parentNode && re !== _n; )
|
|
46125
46125
|
_n = _n.parentNode;
|
|
46126
46126
|
return _n;
|
|
46127
46127
|
}, On = (_n, hn) => {
|
|
46128
46128
|
var zs;
|
|
46129
|
-
const ea = new Wu(_n,
|
|
46129
|
+
const ea = new Wu(_n, qt(_n)), zc = hn ? "next" : "prev";
|
|
46130
46130
|
let nu;
|
|
46131
46131
|
for (; nu = ea[zc](); )
|
|
46132
46132
|
if (!(Hc(S, nu) || bo(nu.textContent) || ((zs = nu.textContent) === null || zs === void 0 ? void 0 : zs.length) === 0))
|
|
@@ -46153,10 +46153,10 @@ Required: ` + m.join(", "));
|
|
|
46153
46153
|
}
|
|
46154
46154
|
return fe;
|
|
46155
46155
|
}, wu = (S, R, U) => {
|
|
46156
|
-
const re = [], fe = S.dom, lt = Dr(S, R, !0, U),
|
|
46156
|
+
const re = [], fe = S.dom, lt = Dr(S, R, !0, U), qt = Dr(S, R, !1, U);
|
|
46157
46157
|
let On;
|
|
46158
46158
|
const _n = [];
|
|
46159
|
-
for (let hn = lt; hn && (_n.push(hn), hn !==
|
|
46159
|
+
for (let hn = lt; hn && (_n.push(hn), hn !== qt); hn = hn.nextSibling)
|
|
46160
46160
|
;
|
|
46161
46161
|
return la.each(_n, (hn) => {
|
|
46162
46162
|
var zs;
|
|
@@ -46185,15 +46185,15 @@ Required: ` + m.join(", "));
|
|
|
46185
46185
|
}, Ga = (S, R, U) => {
|
|
46186
46186
|
const re = S.selection.getRng();
|
|
46187
46187
|
let fe = "LI";
|
|
46188
|
-
const lt = Ot(S, kl(S, re)),
|
|
46189
|
-
if (
|
|
46188
|
+
const lt = Ot(S, kl(S, re)), qt = S.dom;
|
|
46189
|
+
if (qt.getContentEditable(S.selection.getNode()) === "false")
|
|
46190
46190
|
return;
|
|
46191
46191
|
R = R.toUpperCase(), R === "DL" && (fe = "DT");
|
|
46192
46192
|
const On = _l(re), _n = Mo(wu(S, re, lt), S.dom.isEditable);
|
|
46193
46193
|
la.each(_n, (hn) => {
|
|
46194
46194
|
let zs;
|
|
46195
46195
|
const ea = hn.previousSibling, zc = hn.parentNode;
|
|
46196
|
-
Or(zc) || (ea && Ra(ea) && ea.nodeName === R && Rd(
|
|
46196
|
+
Or(zc) || (ea && Ra(ea) && ea.nodeName === R && Rd(qt, ea, U) ? (zs = ea, hn = qt.rename(hn, fe), ea.appendChild(hn)) : (zs = qt.create(R), zc.insertBefore(zs, hn), zs.appendChild(hn), hn = qt.rename(hn, fe)), Dg(qt, hn, [
|
|
46197
46197
|
"margin",
|
|
46198
46198
|
"margin-right",
|
|
46199
46199
|
"margin-bottom",
|
|
@@ -46204,7 +46204,7 @@ Required: ` + m.join(", "));
|
|
|
46204
46204
|
"padding-bottom",
|
|
46205
46205
|
"padding-left",
|
|
46206
46206
|
"padding-top"
|
|
46207
|
-
]), yi(
|
|
46207
|
+
]), yi(qt, zs, U), $d(S.dom, zs));
|
|
46208
46208
|
}), S.selection.setRng(fa(On));
|
|
46209
46209
|
}, Rg = (S, R) => Ra(S) && S.nodeName === (R == null ? void 0 : R.nodeName), Ph = (S, R, U) => {
|
|
46210
46210
|
const re = S.getStyle(R, "list-style-type", !0), fe = S.getStyle(U, "list-style-type", !0);
|
|
@@ -46230,8 +46230,8 @@ Required: ` + m.join(", "));
|
|
|
46230
46230
|
} else
|
|
46231
46231
|
yi(S.dom, R, re), Vs(S, Wl(U), R);
|
|
46232
46232
|
}, Ih = (S, R, U, re) => {
|
|
46233
|
-
if (R.classList.forEach((fe, lt,
|
|
46234
|
-
fe.startsWith("tox-") && (
|
|
46233
|
+
if (R.classList.forEach((fe, lt, qt) => {
|
|
46234
|
+
fe.startsWith("tox-") && (qt.remove(fe), qt.length === 0 && R.removeAttribute("class"));
|
|
46235
46235
|
}), R.nodeName !== U) {
|
|
46236
46236
|
const fe = S.dom.rename(R, U);
|
|
46237
46237
|
yi(S.dom, fe, re), Vs(S, Wl(U), fe);
|
|
@@ -46243,13 +46243,13 @@ Required: ` + m.join(", "));
|
|
|
46243
46243
|
Ag(S);
|
|
46244
46244
|
else {
|
|
46245
46245
|
Ga(S, re, fe);
|
|
46246
|
-
const
|
|
46246
|
+
const qt = _l(S.selection.getRng()), On = lt ? [
|
|
46247
46247
|
R,
|
|
46248
46248
|
...U
|
|
46249
46249
|
] : U, _n = lt && Hs(R) ? Ih : wi;
|
|
46250
46250
|
la.each(On, (hn) => {
|
|
46251
46251
|
_n(S, hn, re, fe);
|
|
46252
|
-
}), S.selection.setRng(fa(
|
|
46252
|
+
}), S.selection.setRng(fa(qt));
|
|
46253
46253
|
}
|
|
46254
46254
|
}, $g = (S) => "list-style-type" in S, Mg = (S, R, U, re) => {
|
|
46255
46255
|
if (R !== S.getBody())
|
|
@@ -46258,8 +46258,8 @@ Required: ` + m.join(", "));
|
|
|
46258
46258
|
Ag(S);
|
|
46259
46259
|
else {
|
|
46260
46260
|
const fe = _l(S.selection.getRng());
|
|
46261
|
-
Hs(R) && R.classList.forEach((
|
|
46262
|
-
|
|
46261
|
+
Hs(R) && R.classList.forEach((qt, On, _n) => {
|
|
46262
|
+
qt.startsWith("tox-") && (_n.remove(qt), _n.length === 0 && R.removeAttribute("class"));
|
|
46263
46263
|
}), yi(S.dom, R, re);
|
|
46264
46264
|
const lt = S.dom.rename(R, U);
|
|
46265
46265
|
$d(S.dom, lt), S.selection.setRng(fa(fe)), Ga(S, U, re), Vs(S, Wl(U), lt);
|
|
@@ -46292,13 +46292,13 @@ Required: ` + m.join(", "));
|
|
|
46292
46292
|
const lt = R.startOffset;
|
|
46293
46293
|
if (Ls(fe) && (U ? lt < fe.data.length : lt > 0))
|
|
46294
46294
|
return fe;
|
|
46295
|
-
const
|
|
46295
|
+
const qt = S.schema.getNonEmptyElements();
|
|
46296
46296
|
ts(fe) && (fe = Ic.getNode(fe, lt));
|
|
46297
46297
|
const On = new Wu(fe, re);
|
|
46298
46298
|
U && Zu(S.dom, fe) && On.next();
|
|
46299
46299
|
const _n = U ? On.next.bind(On) : On.prev2.bind(On);
|
|
46300
46300
|
for (; fe = _n(); )
|
|
46301
|
-
if (fe.nodeName === "LI" && !fe.hasChildNodes() ||
|
|
46301
|
+
if (fe.nodeName === "LI" && !fe.hasChildNodes() || qt[fe.nodeName] || Ls(fe) && fe.data.length > 0)
|
|
46302
46302
|
return fe;
|
|
46303
46303
|
return null;
|
|
46304
46304
|
}, sc = (S, R) => {
|
|
@@ -46340,17 +46340,17 @@ Required: ` + m.join(", "));
|
|
|
46340
46340
|
const lt = fa(fe);
|
|
46341
46341
|
S.selection.setRng(lt);
|
|
46342
46342
|
}, Ln = (S, R) => {
|
|
46343
|
-
const U = S.dom, re = S.selection, fe = re.getStart(), lt = se(S, fe),
|
|
46344
|
-
if (
|
|
46345
|
-
const On =
|
|
46343
|
+
const U = S.dom, re = S.selection, fe = re.getStart(), lt = se(S, fe), qt = U.getParent(re.getStart(), "LI", lt);
|
|
46344
|
+
if (qt) {
|
|
46345
|
+
const On = qt.parentElement;
|
|
46346
46346
|
if (On === S.getBody() && yc(U, On))
|
|
46347
46347
|
return !0;
|
|
46348
|
-
const _n = ys(re.getRng()), hn = U.getParent(Gs(S, _n, R, lt), "LI", lt), zs = hn && (R ? U.isChildOf(
|
|
46349
|
-
if (hn && hn !==
|
|
46348
|
+
const _n = ys(re.getRng()), hn = U.getParent(Gs(S, _n, R, lt), "LI", lt), zs = hn && (R ? U.isChildOf(qt, hn) : U.isChildOf(hn, qt));
|
|
46349
|
+
if (hn && hn !== qt && !zs)
|
|
46350
46350
|
return S.undoManager.transact(() => {
|
|
46351
|
-
R ? xi(S, _n, hn,
|
|
46351
|
+
R ? xi(S, _n, hn, qt) : Lc(qt) ? Dd(S) : Cf(S, _n, qt, hn);
|
|
46352
46352
|
}), !0;
|
|
46353
|
-
if (zs && !R && hn !==
|
|
46353
|
+
if (zs && !R && hn !== qt)
|
|
46354
46354
|
return S.undoManager.transact(() => {
|
|
46355
46355
|
if (_n.commonAncestorContainer.parentElement) {
|
|
46356
46356
|
const ea = _l(_n), zc = _n.commonAncestorContainer.parentElement;
|
|
@@ -46371,13 +46371,13 @@ Required: ` + m.join(", "));
|
|
|
46371
46371
|
}, xu = (S, R) => {
|
|
46372
46372
|
const U = S.dom, re = S.selection.getStart(), fe = se(S, re), lt = U.getParent(re, U.isBlock, fe);
|
|
46373
46373
|
if (lt && U.isEmpty(lt)) {
|
|
46374
|
-
const
|
|
46374
|
+
const qt = ys(S.selection.getRng()), On = U.getParent(Gs(S, qt, R, fe), "LI", fe);
|
|
46375
46375
|
if (On) {
|
|
46376
46376
|
const _n = (zc) => ns([
|
|
46377
46377
|
"td",
|
|
46378
46378
|
"th",
|
|
46379
46379
|
"caption"
|
|
46380
|
-
], us(zc)), hn = (zc) => zc.dom === fe, zs = Us(vn.fromDom(On), _n, hn), ea = Us(vn.fromDom(
|
|
46380
|
+
], us(zc)), hn = (zc) => zc.dom === fe, zs = Us(vn.fromDom(On), _n, hn), ea = Us(vn.fromDom(qt.startContainer), _n, hn);
|
|
46381
46381
|
return et(zs, ea, Ft) ? (S.undoManager.transact(() => {
|
|
46382
46382
|
const zc = On.parentNode;
|
|
46383
46383
|
xc(U, lt, fe), $d(U, zc), S.selection.select(On, !0), S.selection.collapse(R);
|
|
@@ -46494,7 +46494,7 @@ Required: ` + m.join(", "));
|
|
|
46494
46494
|
});
|
|
46495
46495
|
}, Vo = (S, R) => () => {
|
|
46496
46496
|
const U = Ma(S);
|
|
46497
|
-
return
|
|
46497
|
+
return Gt(U) && U.nodeName === R;
|
|
46498
46498
|
}, jl = (S) => {
|
|
46499
46499
|
S.addCommand("mceListProps", () => {
|
|
46500
46500
|
Hh(S);
|
|
@@ -46518,8 +46518,8 @@ Required: ` + m.join(", "));
|
|
|
46518
46518
|
var ac = tinymce.util.Tools.resolve("tinymce.html.Node");
|
|
46519
46519
|
const Cu = (S) => S.type === 3, tu = (S) => S.length === 0, jn = (S) => {
|
|
46520
46520
|
const R = (fe, lt) => {
|
|
46521
|
-
const
|
|
46522
|
-
ie(fe, (On) =>
|
|
46521
|
+
const qt = ac.create("li");
|
|
46522
|
+
ie(fe, (On) => qt.append(On)), lt ? S.insert(qt, lt, !0) : S.append(qt);
|
|
46523
46523
|
}, U = (fe, lt) => Cu(lt) ? [
|
|
46524
46524
|
...fe,
|
|
46525
46525
|
lt
|
|
@@ -46585,7 +46585,7 @@ Required: ` + m.join(", "));
|
|
|
46585
46585
|
}, ce = (j) => {
|
|
46586
46586
|
const de = typeof j;
|
|
46587
46587
|
return j === null ? "null" : de === "object" && Array.isArray(j) ? "array" : de === "object" && ve(j, String, (Se, Be) => Be.isPrototypeOf(Se)) ? "string" : de;
|
|
46588
|
-
}, $e = (j) => (de) => ce(de) === j, ye = (j) => (de) => typeof de === j, Q = (j) => (de) => j === de, De = $e("string"), ee = $e("object"), Ue = $e("array"), Ct = Q(null),
|
|
46588
|
+
}, $e = (j) => (de) => ce(de) === j, ye = (j) => (de) => typeof de === j, Q = (j) => (de) => j === de, De = $e("string"), ee = $e("object"), Ue = $e("array"), Ct = Q(null), Gt = ye("boolean"), Sn = (j) => j == null, zn = (j) => !Sn(j), Uo = ye("function"), ir = (j, de) => {
|
|
46589
46589
|
if (Ue(j)) {
|
|
46590
46590
|
for (let Se = 0, Be = j.length; Se < Be; ++Se)
|
|
46591
46591
|
if (!de(j[Se]))
|
|
@@ -46702,11 +46702,11 @@ Required: ` + m.join(", "));
|
|
|
46702
46702
|
for (let Be = 0; Be < j.length; Be++)
|
|
46703
46703
|
j[Be].each(Se);
|
|
46704
46704
|
return de;
|
|
46705
|
-
}, Ge = (j, de) => j ? dn.some(de) : dn.none(), A = (j) => (de) => de.options.get(j),
|
|
46705
|
+
}, Ge = (j, de) => j ? dn.some(de) : dn.none(), A = (j) => (de) => de.options.get(j), Jt = (j) => {
|
|
46706
46706
|
const de = j.options.register;
|
|
46707
46707
|
de("link_assume_external_targets", {
|
|
46708
46708
|
processor: (Se) => {
|
|
46709
|
-
const Be = De(Se) ||
|
|
46709
|
+
const Be = De(Se) || Gt(Se);
|
|
46710
46710
|
return Be ? Se === !0 ? {
|
|
46711
46711
|
value: 1,
|
|
46712
46712
|
valid: Be
|
|
@@ -46729,7 +46729,7 @@ Required: ` + m.join(", "));
|
|
|
46729
46729
|
processor: "string",
|
|
46730
46730
|
default: "https"
|
|
46731
46731
|
}), de("link_target_list", {
|
|
46732
|
-
processor: (Se) =>
|
|
46732
|
+
processor: (Se) => Gt(Se) || ir(Se, ee),
|
|
46733
46733
|
default: !0
|
|
46734
46734
|
}), de("link_rel_list", {
|
|
46735
46735
|
processor: "object[]",
|
|
@@ -47329,7 +47329,7 @@ Required: ` + m.join(", "));
|
|
|
47329
47329
|
};
|
|
47330
47330
|
var ju = () => {
|
|
47331
47331
|
B.add("link", (j) => {
|
|
47332
|
-
|
|
47332
|
+
Jt(j), $a(j), xl(j), gi(j), hu(j), vc(j), Hl(j), Xi(j);
|
|
47333
47333
|
});
|
|
47334
47334
|
};
|
|
47335
47335
|
ju();
|
|
@@ -47342,7 +47342,7 @@ Required: ` + m.join(", "));
|
|
|
47342
47342
|
}, $e = (P) => {
|
|
47343
47343
|
const K = typeof P;
|
|
47344
47344
|
return P === null ? "null" : K === "object" && Array.isArray(P) ? "array" : K === "object" && ce(P, String, (se, Ie) => Ie.isPrototypeOf(se)) ? "string" : K;
|
|
47345
|
-
}, ye = (P) => (K) => $e(K) === P, Q = (P) => (K) => typeof K === P, De = (P) => (K) => P === K, ee = (P, K) => Ct(P) && ce(P, K, (se, Ie) => ve(se) === Ie), Ue = ye("string"), Ct = ye("object"),
|
|
47345
|
+
}, ye = (P) => (K) => $e(K) === P, Q = (P) => (K) => typeof K === P, De = (P) => (K) => P === K, ee = (P, K) => Ct(P) && ce(P, K, (se, Ie) => ve(se) === Ie), Ue = ye("string"), Ct = ye("object"), Gt = (P) => ee(P, Object), Sn = ye("array"), zn = De(null), Uo = Q("boolean"), ir = (P) => P == null, $o = (P) => !ir(P), Mt = Q("function"), ur = Q("number"), dn = (P, K) => {
|
|
47346
47346
|
if (Sn(P)) {
|
|
47347
47347
|
for (let se = 0, Ie = P.length; se < Ie; ++se)
|
|
47348
47348
|
if (!K(P[se]))
|
|
@@ -47446,7 +47446,7 @@ Required: ` + m.join(", "));
|
|
|
47446
47446
|
Mo.apply(K, P[se]);
|
|
47447
47447
|
}
|
|
47448
47448
|
return K;
|
|
47449
|
-
}, Ge = (P, K) => K >= 0 && K < P.length ? _t.some(P[K]) : _t.none(), A = (P) => Ge(P, 0),
|
|
47449
|
+
}, Ge = (P, K) => K >= 0 && K < P.length ? _t.some(P[K]) : _t.none(), A = (P) => Ge(P, 0), Jt = (P, K) => {
|
|
47450
47450
|
for (let se = 0; se < P.length; se++) {
|
|
47451
47451
|
const Ie = K(P[se], se);
|
|
47452
47452
|
if (Ie.isSome())
|
|
@@ -47753,7 +47753,7 @@ Required: ` + m.join(", "));
|
|
|
47753
47753
|
Fe(Ot, Kn) && (se[Kn] = P(se[Kn], Ot[Kn]));
|
|
47754
47754
|
}
|
|
47755
47755
|
return se;
|
|
47756
|
-
})((P, K) =>
|
|
47756
|
+
})((P, K) => Gt(P) && Gt(K) ? tc(P, K) : K);
|
|
47757
47757
|
var Ki = tinymce.util.Tools.resolve("tinymce.util.ImageUploader"), vs = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
47758
47758
|
const ks = (P) => Ue(P.value) ? P.value : "", za = (P) => Ue(P.text) ? P.text : Ue(P.title) ? P.title : "", Da = (P, K) => {
|
|
47759
47759
|
const se = [];
|
|
@@ -47773,7 +47773,7 @@ Required: ` + m.join(", "));
|
|
|
47773
47773
|
});
|
|
47774
47774
|
}
|
|
47775
47775
|
}), se;
|
|
47776
|
-
}, yl = (P = ks) => (K) => K ? _t.from(K).map((se) => Da(se, P)) : _t.none(), fi = (P) => yl(ks)(P), wl = (P) => Fe(P, "items"), ko = (P, K) =>
|
|
47776
|
+
}, yl = (P = ks) => (K) => K ? _t.from(K).map((se) => Da(se, P)) : _t.none(), fi = (P) => yl(ks)(P), wl = (P) => Fe(P, "items"), ko = (P, K) => Jt(P, (se) => wl(se) ? ko(se.items, K) : se.value === K ? _t.some(se) : _t.none()), la = {
|
|
47777
47777
|
sanitizer: yl,
|
|
47778
47778
|
sanitize: fi,
|
|
47779
47779
|
findEntry: (P, K) => P.bind((se) => ko(se, K))
|
|
@@ -48211,7 +48211,7 @@ Required: ` + m.join(", "));
|
|
|
48211
48211
|
}, ce = (x) => {
|
|
48212
48212
|
const T = typeof x;
|
|
48213
48213
|
return x === null ? "null" : T === "object" && Array.isArray(x) ? "array" : T === "object" && ve(x, String, (H, q) => q.isPrototypeOf(H)) ? "string" : T;
|
|
48214
|
-
}, $e = (x) => (T) => ce(T) === x, ye = (x) => (T) => typeof T === x, Q = (x) => (T) => x === T, De = $e("string"), ee = $e("array"), Ue = ye("boolean"), Ct = Q(void 0),
|
|
48214
|
+
}, $e = (x) => (T) => ce(T) === x, ye = (x) => (T) => typeof T === x, Q = (x) => (T) => x === T, De = $e("string"), ee = $e("array"), Ue = ye("boolean"), Ct = Q(void 0), Gt = (x) => x == null, Sn = (x) => !Gt(x), zn = ye("function"), Uo = ye("number"), ir = () => {
|
|
48215
48215
|
}, $o = (x, T) => (H) => x(T(H)), Mt = (x) => () => x, ur = (x) => x, dn = (x, T) => x === T;
|
|
48216
48216
|
function me(x, ...T) {
|
|
48217
48217
|
return (...H) => {
|
|
@@ -48313,7 +48313,7 @@ Required: ` + m.join(", "));
|
|
|
48313
48313
|
return wt(x, (q, he) => {
|
|
48314
48314
|
H.push(T(q, he));
|
|
48315
48315
|
}), H;
|
|
48316
|
-
}, Ge = (x) => Jn(x, ur), A = (x) => Nn(x).length,
|
|
48316
|
+
}, Ge = (x) => Jn(x, ur), A = (x) => Nn(x).length, Jt = (x, T) => nt(x, T) ? oe.from(x[T]) : oe.none(), nt = (x, T) => ns.call(x, T), No = (x, T) => nt(x, T) && x[T] !== void 0 && x[T] !== null, mn = (x) => {
|
|
48317
48317
|
for (const T in x)
|
|
48318
48318
|
if (ns.call(x, T))
|
|
48319
48319
|
return !1;
|
|
@@ -49296,10 +49296,10 @@ Required: ` + m.join(", "));
|
|
|
49296
49296
|
}, lt = (x) => {
|
|
49297
49297
|
let T = !1, H;
|
|
49298
49298
|
return (...q) => (T || (T = !0, H = x.apply(null, q)), H);
|
|
49299
|
-
},
|
|
49300
|
-
const q = gt(T.selection, (Ze) => K(Ze).bind((mt) =>
|
|
49299
|
+
}, qt = (x, T) => Va(x.all, (H) => Et(H.cells, (q) => Jo(T, q.element))), On = (x, T, H) => {
|
|
49300
|
+
const q = gt(T.selection, (Ze) => K(Ze).bind((mt) => qt(x, mt)).filter(H)), he = Po(q);
|
|
49301
49301
|
return nr(he.length > 0, he);
|
|
49302
|
-
}, _n = (x, T) => T.mergable, hn = (x, T) => T.unmergable, zs = (x, T) => On(x, T, Xn), ea = (x, T) =>
|
|
49302
|
+
}, _n = (x, T) => T.mergable, hn = (x, T) => T.unmergable, zs = (x, T) => On(x, T, Xn), ea = (x, T) => qt(x, T).exists((H) => !H.isLocked), zc = (x, T) => vn(T, (H) => ea(x, H)), nu = (x, T) => _n(x, T).filter((H) => zc(x, H.cells)), ha = (x, T) => hn(x, T).filter((H) => zc(x, H));
|
|
49303
49303
|
({ ...{ generate: (x) => {
|
|
49304
49304
|
if (!ee(x))
|
|
49305
49305
|
throw new Error("cases must be an array");
|
|
@@ -49404,9 +49404,9 @@ Required: ` + T.join(", "));
|
|
|
49404
49404
|
"bottom"
|
|
49405
49405
|
], "valign"), pa = (x, T) => {
|
|
49406
49406
|
const H = Eg(x), q = Yu(x), he = () => ({
|
|
49407
|
-
borderstyle:
|
|
49408
|
-
bordercolor: ou(
|
|
49409
|
-
backgroundcolor: ou(
|
|
49407
|
+
borderstyle: Jt(H, "border-style").getOr(""),
|
|
49408
|
+
bordercolor: ou(Jt(H, "border-color").getOr("")),
|
|
49409
|
+
backgroundcolor: ou(Jt(H, "background-color").getOr(""))
|
|
49410
49410
|
}), Ze = {
|
|
49411
49411
|
height: "",
|
|
49412
49412
|
width: "100%",
|
|
@@ -49418,9 +49418,9 @@ Required: ` + T.join(", "));
|
|
|
49418
49418
|
border: ""
|
|
49419
49419
|
}, mt = () => {
|
|
49420
49420
|
const rr = H["border-width"];
|
|
49421
|
-
return Ul(x) && rr ? { border: rr } :
|
|
49421
|
+
return Ul(x) && rr ? { border: rr } : Jt(q, "border").fold(() => ({}), (Do) => ({ border: Do }));
|
|
49422
49422
|
}, Dt = T ? he() : {}, on = () => {
|
|
49423
|
-
const rr =
|
|
49423
|
+
const rr = Jt(H, "border-spacing").or(Jt(q, "cellspacing")).fold(() => ({}), (Bs) => ({ cellspacing: Bs })), Do = Jt(H, "border-padding").or(Jt(q, "cellpadding")).fold(() => ({}), (Bs) => ({ cellpadding: Bs }));
|
|
49424
49424
|
return {
|
|
49425
49425
|
...rr,
|
|
49426
49426
|
...Do
|
|
@@ -50477,7 +50477,7 @@ Required: ` + T.join(", "));
|
|
|
50477
50477
|
new RegExp(De.katakana),
|
|
50478
50478
|
new RegExp(De.extendnumlet),
|
|
50479
50479
|
new RegExp("@")
|
|
50480
|
-
], Ct = "",
|
|
50480
|
+
], Ct = "", Gt = new RegExp("^" + De.punctuation + "$"), Sn = /^\s+$/, zn = Ue, Uo = ee.OTHER, ir = (qe) => {
|
|
50481
50481
|
let Et = Uo;
|
|
50482
50482
|
const Ke = zn.length;
|
|
50483
50483
|
for (let Ce = 0; Ce < Ke; ++Ce) {
|
|
@@ -50510,7 +50510,7 @@ Required: ` + T.join(", "));
|
|
|
50510
50510
|
return !1;
|
|
50511
50511
|
const Zo = qe[Et - 1];
|
|
50512
50512
|
return (Ke === ee.MIDLETTER || Ke === ee.MIDNUMLET || Ce === ee.AT) && Ce === ee.ALETTER && Zo === ee.ALETTER || (Ke === ee.NUMERIC || Ke === ee.ALETTER) && (Ce === ee.NUMERIC || Ce === ee.ALETTER) || (Ke === ee.MIDNUM || Ke === ee.MIDNUMLET) && Ce === ee.NUMERIC && Zo === ee.NUMERIC || Ke === ee.NUMERIC && (Ce === ee.MIDNUM || Ce === ee.MIDNUMLET) && vn === ee.NUMERIC || (Ke === ee.EXTEND || Ke === ee.FORMAT) && (Ce === ee.ALETTER || Ce === ee.NUMERIC || Ce === ee.KATAKANA || Ce === ee.EXTEND || Ce === ee.FORMAT) || (Ce === ee.EXTEND || Ce === ee.FORMAT && (vn === ee.ALETTER || vn === ee.NUMERIC || vn === ee.KATAKANA || vn === ee.EXTEND || vn === ee.FORMAT)) && (Ke === ee.ALETTER || Ke === ee.NUMERIC || Ke === ee.KATAKANA || Ke === ee.EXTEND || Ke === ee.FORMAT) || Ke === ee.CR && Ce === ee.LF ? !1 : Ke === ee.NEWLINE || Ke === ee.CR || Ke === ee.LF || Ce === ee.NEWLINE || Ce === ee.CR || Ce === ee.LF ? !0 : !(Ke === ee.KATAKANA && Ce === ee.KATAKANA || Ce === ee.EXTENDNUMLET && (Ke === ee.ALETTER || Ke === ee.NUMERIC || Ke === ee.KATAKANA || Ke === ee.EXTENDNUMLET) || Ke === ee.EXTENDNUMLET && (Ce === ee.ALETTER || Ce === ee.NUMERIC || Ce === ee.KATAKANA) || Ke === ee.AT);
|
|
50513
|
-
}, dn = Ct, me = Sn, _t =
|
|
50513
|
+
}, dn = Ct, me = Sn, _t = Gt, Ea = (qe) => qe === "http" || qe === "https", Xn = (qe, Et) => {
|
|
50514
50514
|
let Ke;
|
|
50515
50515
|
for (Ke = Et; Ke < qe.length && !me.test(qe[Ke]); Ke++)
|
|
50516
50516
|
;
|
|
@@ -50561,16 +50561,16 @@ Required: ` + T.join(", "));
|
|
|
50561
50561
|
for (; Bo = kr.next(); )
|
|
50562
50562
|
Bo.nodeType === 3 ? Ft += Mo(Bo.data) : vn(Bo) && Ft.length && (Zo.push(Ft), Ft = "");
|
|
50563
50563
|
return Ft.length && Zo.push(Ft), Zo;
|
|
50564
|
-
}, A = (qe) => qe.replace(/\u200B/g, ""),
|
|
50564
|
+
}, A = (qe) => qe.replace(/\u200B/g, ""), Jt = (qe) => qe.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "_").length, nt = (qe, Et) => {
|
|
50565
50565
|
const Ke = A(Ge(qe, Et).join(`
|
|
50566
50566
|
`));
|
|
50567
50567
|
return ie(Ke.split(""), $e).length;
|
|
50568
50568
|
}, No = (qe, Et) => {
|
|
50569
50569
|
const Ke = Ge(qe, Et).join("");
|
|
50570
|
-
return
|
|
50570
|
+
return Jt(Ke);
|
|
50571
50571
|
}, mn = (qe, Et) => {
|
|
50572
50572
|
const Ke = Ge(qe, Et).join("").replace(/\s/g, "");
|
|
50573
|
-
return
|
|
50573
|
+
return Jt(Ke);
|
|
50574
50574
|
}, ot = (qe, Et) => () => Et(qe.getBody(), qe.schema), Wo = (qe, Et) => () => Et(qe.selection.getRng().cloneContents(), qe.schema), dr = (qe) => ot(qe, nt), ro = (qe) => ({
|
|
50575
50575
|
body: {
|
|
50576
50576
|
getWordCount: dr(qe),
|
|
@@ -50727,7 +50727,7 @@ const gQ = { class: "font-bold ptext-lg dark:text-white" }, hQ = ["id"], pQ = /*
|
|
|
50727
50727
|
ye("update:modelValue", Ct);
|
|
50728
50728
|
}
|
|
50729
50729
|
});
|
|
50730
|
-
return ve({ focus: () => Q.value.focus() }), (Ct,
|
|
50730
|
+
return ve({ focus: () => Q.value.focus() }), (Ct, Gt) => (ke(), Ae(zo, null, [
|
|
50731
50731
|
B.show ? (ke(), Ae("div", {
|
|
50732
50732
|
key: 0,
|
|
50733
50733
|
class: bn(B.field_name)
|
|
@@ -50759,8 +50759,8 @@ const gQ = { class: "font-bold ptext-lg dark:text-white" }, hQ = ["id"], pQ = /*
|
|
|
50759
50759
|
"gl-textarea-form-invalid mt-4": B.error_message !== ""
|
|
50760
50760
|
}]),
|
|
50761
50761
|
type: B.type,
|
|
50762
|
-
"onUpdate:modelValue":
|
|
50763
|
-
onKeydown:
|
|
50762
|
+
"onUpdate:modelValue": Gt[0] || (Gt[0] = (Sn) => Ue.value = Sn),
|
|
50763
|
+
onKeydown: Gt[1] || (Gt[1] = (Sn) => Ct.$emit("keydown", Sn)),
|
|
50764
50764
|
ref_key: "input",
|
|
50765
50765
|
ref: Q,
|
|
50766
50766
|
rows: "4"
|
|
@@ -51220,7 +51220,7 @@ function aee(B, ve, ce, $e, ye, Q) {
|
|
|
51220
51220
|
V("tr", null, [
|
|
51221
51221
|
(ke(!0), Ae(zo, null, aa(ce.columns, (Ue, Ct) => (ke(), Ae("th", {
|
|
51222
51222
|
key: Ct,
|
|
51223
|
-
onClick: (
|
|
51223
|
+
onClick: (Gt) => Q.updateSortColumn(Ue.field_name, Ue.sortable),
|
|
51224
51224
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
51225
51225
|
}, [
|
|
51226
51226
|
is(At(Ue.field_label) + " ", 1),
|
|
@@ -51240,26 +51240,26 @@ function aee(B, ve, ce, $e, ye, Q) {
|
|
|
51240
51240
|
key: Ct,
|
|
51241
51241
|
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"
|
|
51242
51242
|
}, [
|
|
51243
|
-
(ke(!0), Ae(zo, null, aa(ce.columns, (
|
|
51243
|
+
(ke(!0), Ae(zo, null, aa(ce.columns, (Gt, Sn) => (ke(), Ae("td", {
|
|
51244
51244
|
key: Sn,
|
|
51245
|
-
"data-label":
|
|
51245
|
+
"data-label": Gt.field_label,
|
|
51246
51246
|
class: bn(["text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border-[0.3px] dark:border-gray-700", {
|
|
51247
51247
|
"rounded-t-lg lg:rounded-t-none": Sn === 0,
|
|
51248
51248
|
"rounded-b-lg lg:rounded-b-none": Sn === ce.columns.length - 1
|
|
51249
51249
|
}])
|
|
51250
51250
|
}, [
|
|
51251
51251
|
V("div", see, [
|
|
51252
|
-
|
|
51252
|
+
Gt.tdComp ? (ke(), jx(V8(Q.forDynCompIs(Gt.tdComp)), {
|
|
51253
51253
|
key: 0,
|
|
51254
51254
|
row: Ue,
|
|
51255
|
-
field:
|
|
51255
|
+
field: Gt.field_name,
|
|
51256
51256
|
xprops: ce.xprops,
|
|
51257
|
-
tdProps:
|
|
51257
|
+
tdProps: Gt.tdProps,
|
|
51258
51258
|
onDeleteAction: ve[3] || (ve[3] = (zn) => Q.GetItemLists()),
|
|
51259
51259
|
onEditAction: (zn) => Q.editAction(Ue),
|
|
51260
51260
|
onGeneralAction: (zn) => Q.generalAction(Ue)
|
|
51261
51261
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (ke(), Ae(zo, { key: 1 }, [
|
|
51262
|
-
is(At(Ue[
|
|
51262
|
+
is(At(Ue[Gt.field_name]), 1)
|
|
51263
51263
|
], 64))
|
|
51264
51264
|
])
|
|
51265
51265
|
], 10, oee))), 128))
|
|
@@ -51482,7 +51482,7 @@ function Mee(B, ve, ce, $e, ye, Q) {
|
|
|
51482
51482
|
V("tr", null, [
|
|
51483
51483
|
(ke(!0), Ae(zo, null, aa(ce.columns, (Ue, Ct) => (ke(), Ae("th", {
|
|
51484
51484
|
key: Ct,
|
|
51485
|
-
onClick: (
|
|
51485
|
+
onClick: (Gt) => Q.updateSortColumn(Ue.field_name, Ue.sortable),
|
|
51486
51486
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
51487
51487
|
}, [
|
|
51488
51488
|
is(At(Ue.field_label) + " ", 1),
|
|
@@ -51505,7 +51505,7 @@ function Mee(B, ve, ce, $e, ye, Q) {
|
|
|
51505
51505
|
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"
|
|
51506
51506
|
}, At(Ct), 9, Oee)
|
|
51507
51507
|
]),
|
|
51508
|
-
(ke(!0), Ae(zo, null, aa(Ue, (
|
|
51508
|
+
(ke(!0), Ae(zo, null, aa(Ue, (Gt, Sn) => (ke(), Ae("tr", {
|
|
51509
51509
|
key: Sn,
|
|
51510
51510
|
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"
|
|
51511
51511
|
}, [
|
|
@@ -51517,14 +51517,14 @@ function Mee(B, ve, ce, $e, ye, Q) {
|
|
|
51517
51517
|
V("div", Ree, [
|
|
51518
51518
|
zn.tdComp ? (ke(), jx(V8(Q.forDynCompIs(zn.tdComp)), {
|
|
51519
51519
|
key: 0,
|
|
51520
|
-
row:
|
|
51520
|
+
row: Gt,
|
|
51521
51521
|
field: zn.field_name,
|
|
51522
51522
|
xprops: ce.xprops,
|
|
51523
51523
|
tdProps: zn.tdProps,
|
|
51524
51524
|
onDeleteAction: ve[3] || (ve[3] = (ir) => Q.GetItemLists()),
|
|
51525
|
-
onEditAction: (ir) => Q.editAction(
|
|
51525
|
+
onEditAction: (ir) => Q.editAction(Gt)
|
|
51526
51526
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (ke(), Ae(zo, { key: 1 }, [
|
|
51527
|
-
is(At(
|
|
51527
|
+
is(At(Gt[zn.field_name]), 1)
|
|
51528
51528
|
], 64))
|
|
51529
51529
|
])
|
|
51530
51530
|
], 8, Dee))), 128))
|
|
@@ -51745,14 +51745,14 @@ function wte(B, ve, ce, $e, ye, Q) {
|
|
|
51745
51745
|
key: Ue,
|
|
51746
51746
|
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"
|
|
51747
51747
|
}, [
|
|
51748
|
-
(ke(!0), Ae(zo, null, aa(ce.columns, (Ct,
|
|
51749
|
-
key:
|
|
51748
|
+
(ke(!0), Ae(zo, null, aa(ce.columns, (Ct, Gt) => (ke(), Ae("td", {
|
|
51749
|
+
key: Gt,
|
|
51750
51750
|
"data-label": Ct,
|
|
51751
51751
|
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"
|
|
51752
51752
|
}, [
|
|
51753
51753
|
V("p", {
|
|
51754
51754
|
class: "text-pretty",
|
|
51755
|
-
innerHTML: ee[
|
|
51755
|
+
innerHTML: ee[Gt]
|
|
51756
51756
|
}, null, 8, Jee)
|
|
51757
51757
|
], 8, Xee))), 128))
|
|
51758
51758
|
]))), 128))
|
|
@@ -51867,11 +51867,11 @@ const Cre = /* @__PURE__ */ Ta(xte, [["render", Cte]]), Ste = {
|
|
|
51867
51867
|
const B = Xo(!1), ve = XG("accordionsWrapper"), $e = (() => {
|
|
51868
51868
|
var Ct = (/* @__PURE__ */ new Date()).getTime();
|
|
51869
51869
|
typeof performance < "u" && typeof performance.now == "function" && (Ct += performance.now());
|
|
51870
|
-
var
|
|
51870
|
+
var Gt = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(Sn) {
|
|
51871
51871
|
var zn = (Ct + Math.random() * 16) % 16 | 0;
|
|
51872
51872
|
return Ct = Math.floor(Ct / 16), (Sn === "x" ? zn : zn & 3 | 8).toString(16);
|
|
51873
51873
|
});
|
|
51874
|
-
return
|
|
51874
|
+
return Gt;
|
|
51875
51875
|
})(), ye = { isOpen: B, id: $e }, Q = ii(() => ve.accordions.value), De = ii(() => Q.value.length > 0 && Q.value[0].id === $e), ee = ii(() => Q.value.length > 0 && Q.value[Q.value.length - 1].id === $e);
|
|
51876
51876
|
return b1(() => {
|
|
51877
51877
|
ve.registerAccordion(ye);
|
|
@@ -52128,7 +52128,7 @@ const Sre = /* @__PURE__ */ Ta(Ste, [["render", Rte]]), $te = {
|
|
|
52128
52128
|
ye.value = !1;
|
|
52129
52129
|
}, Ue = () => {
|
|
52130
52130
|
ye.value = !0;
|
|
52131
|
-
}, Ct = ve,
|
|
52131
|
+
}, Ct = ve, Gt = () => {
|
|
52132
52132
|
axios.delete(`${ce.xprops.route}/${ce.row.id}`).then(() => {
|
|
52133
52133
|
ee(), Ct("deleteAction"), U8.methods.add({
|
|
52134
52134
|
message: "Item deleted successfully.",
|
|
@@ -52144,7 +52144,7 @@ const Sre = /* @__PURE__ */ Ta(Ste, [["render", Rte]]), $te = {
|
|
|
52144
52144
|
return ke(), Ae(zo, null, [
|
|
52145
52145
|
_y(Dj, {
|
|
52146
52146
|
isOpen: ye.value,
|
|
52147
|
-
onConfirmDelete:
|
|
52147
|
+
onConfirmDelete: Gt,
|
|
52148
52148
|
onCancelDelete: ee
|
|
52149
52149
|
}, null, 8, ["isOpen"]),
|
|
52150
52150
|
B.row && Sn.can(`edit_${B.xprops.permission} || delete_${B.xprops.permission}`) ? nl((ke(), Ae("div", Xte, [
|
|
@@ -52234,7 +52234,7 @@ const Sre = /* @__PURE__ */ Ta(Ste, [["render", Rte]]), $te = {
|
|
|
52234
52234
|
ye.value = !1;
|
|
52235
52235
|
}, Ue = () => {
|
|
52236
52236
|
ye.value = !0;
|
|
52237
|
-
}, Ct = ve,
|
|
52237
|
+
}, Ct = ve, Gt = () => {
|
|
52238
52238
|
axios.delete(`${ce.xprops.route}/${ce.row.id}`).then(() => {
|
|
52239
52239
|
ee(), Ct("deleteAction"), U8.methods.add({
|
|
52240
52240
|
message: "Item deleted successfully.",
|
|
@@ -52250,7 +52250,7 @@ const Sre = /* @__PURE__ */ Ta(Ste, [["render", Rte]]), $te = {
|
|
|
52250
52250
|
return ke(), Ae(zo, null, [
|
|
52251
52251
|
_y(Dj, {
|
|
52252
52252
|
isOpen: ye.value,
|
|
52253
|
-
onConfirmDelete:
|
|
52253
|
+
onConfirmDelete: Gt,
|
|
52254
52254
|
onCancelDelete: ee
|
|
52255
52255
|
}, null, 8, ["isOpen"]),
|
|
52256
52256
|
B.row && Sn.can(`delete_${B.xprops.permission}`) ? nl((ke(), Ae("div", cne, [
|
|
@@ -52862,7 +52862,7 @@ const Hre = /* @__PURE__ */ Ta(Woe, [["render", nse]]), ose = {
|
|
|
52862
52862
|
setup(B, { expose: ve }) {
|
|
52863
52863
|
const ce = Xo(""), $e = Xo(""), ye = Xo(""), Q = Xo("Cancel"), De = Xo(!1), ee = Xo(void 0), Ue = Xo(void 0), Ct = (zn = {}) => (ce.value = zn.title, $e.value = zn.message, ye.value = zn.okButton, zn.cancelButton && (Q.value = zn.cancelButton), De.value = !0, new Promise((Uo, ir) => {
|
|
52864
52864
|
ee.value = Uo, Ue.value = ir;
|
|
52865
|
-
})),
|
|
52865
|
+
})), Gt = () => {
|
|
52866
52866
|
De.value = !1, ee.value(!0);
|
|
52867
52867
|
}, Sn = () => {
|
|
52868
52868
|
De.value = !1, ee.value(!1);
|
|
@@ -52886,7 +52886,7 @@ const Hre = /* @__PURE__ */ Ta(Woe, [["render", nse]]), ose = {
|
|
|
52886
52886
|
]),
|
|
52887
52887
|
V("div", gse, [
|
|
52888
52888
|
V("button", {
|
|
52889
|
-
onClick:
|
|
52889
|
+
onClick: Gt,
|
|
52890
52890
|
type: "button",
|
|
52891
52891
|
class: "inline-flex justify-center w-full px-4 py-2 text-base font-medium text-white bg-red-600 border border-transparent rounded-md shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
|
|
52892
52892
|
}, At(ye.value), 1),
|