golden-logic-ui 1.0.306 → 1.0.307
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 +433 -433
- package/dist/golden-logic-ui.umd.cjs +22 -22
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -514,17 +514,17 @@ const Rae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
|
|
|
514
514
|
},
|
|
515
515
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
516
516
|
setup(R, { emit: me }) {
|
|
517
|
-
const se = R, Ee = me, fe = No(null), G = No([]), Ae = No([]), Q = No(0), Pe = No(!1), it = No(""),
|
|
517
|
+
const se = R, Ee = me, fe = No(null), G = No([]), Ae = No([]), Q = No(0), Pe = No(!1), it = No(""), Dt = No("");
|
|
518
518
|
Oh(() => {
|
|
519
|
-
|
|
519
|
+
Dt.value = Oo(), se.show || (document.body.addEventListener("click", (Ue) => {
|
|
520
520
|
Qn(Ue);
|
|
521
521
|
}), document.addEventListener("keypress", (Ue) => {
|
|
522
522
|
Ue.key === "Enter" && Ue.target.form && Ue.preventDefault();
|
|
523
523
|
}));
|
|
524
524
|
});
|
|
525
|
-
const
|
|
525
|
+
const Cn = vc(() => Bn()), jn = vc(() => We()), Vo = vc(() => {
|
|
526
526
|
const Ue = [], A = new RegExp(it.value, "ig");
|
|
527
|
-
for (const Gt of
|
|
527
|
+
for (const Gt of Cn.value) {
|
|
528
528
|
const nt = String(Gt.name);
|
|
529
529
|
(it.value.length < 1 || nt.match(A)) && Ue.length < se.maxItem && Ue.push(Gt);
|
|
530
530
|
}
|
|
@@ -573,14 +573,14 @@ const Rae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
|
|
|
573
573
|
A !== -1 && G.value.splice(A, 1), Ae.value = G.value.map((Gt) => Gt.id), Ee("update:modelValue", Ae.value), Ee("selected", G.value), Ee("selectionChanged", G.value);
|
|
574
574
|
}
|
|
575
575
|
function Qn(Ue) {
|
|
576
|
-
Ue.target.id != se.field_name + "search" +
|
|
576
|
+
Ue.target.id != se.field_name + "search" + Dt.value && Ue.target.id != se.field_name && !Ue.target.classList.contains("showOptions") && (Pt(), Q.value = 0, Pe.value = !1);
|
|
577
577
|
}
|
|
578
578
|
function oe(Ue) {
|
|
579
|
-
const A = `${Ue}${
|
|
579
|
+
const A = `${Ue}${Dt.value}`, Gt = document.getElementById(A);
|
|
580
580
|
Gt && Gt.scrollIntoView();
|
|
581
581
|
}
|
|
582
582
|
function Pn(Ue) {
|
|
583
|
-
const A = `${Ue}${
|
|
583
|
+
const A = `${Ue}${Dt.value}`, Gt = document.getElementById(A);
|
|
584
584
|
Gt && Gt.click();
|
|
585
585
|
}
|
|
586
586
|
function is(Ue) {
|
|
@@ -591,21 +591,21 @@ const Rae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
|
|
|
591
591
|
}
|
|
592
592
|
function We() {
|
|
593
593
|
if (Mt(G.value))
|
|
594
|
-
return pr(G.value) ?
|
|
594
|
+
return pr(G.value) ? Cn.value.filter(
|
|
595
595
|
(Ue) => G.value.some(
|
|
596
596
|
(A) => String(A.id) === String(Ue.id)
|
|
597
597
|
)
|
|
598
|
-
) || [] :
|
|
598
|
+
) || [] : Cn.value.filter(
|
|
599
599
|
(Ue) => G.value.some(
|
|
600
600
|
(A) => String(A) === String(Ue.id)
|
|
601
601
|
)
|
|
602
602
|
) || [];
|
|
603
603
|
if (se.modelValue)
|
|
604
|
-
return pr(se.modelValue) ? G.value =
|
|
604
|
+
return pr(se.modelValue) ? G.value = Cn.value.filter(
|
|
605
605
|
(Ue) => se.modelValue.some(
|
|
606
606
|
(A) => String(A.id) === String(Ue.id)
|
|
607
607
|
)
|
|
608
|
-
) || [] : G.value =
|
|
608
|
+
) || [] : G.value = Cn.value.filter(
|
|
609
609
|
(Ue) => se.modelValue.some(
|
|
610
610
|
(A) => String(A) === String(Ue.id)
|
|
611
611
|
)
|
|
@@ -623,7 +623,7 @@ const Rae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
|
|
|
623
623
|
}
|
|
624
624
|
it.value = "", Pe.value = !0, Dj(() => {
|
|
625
625
|
var Ue = document.getElementById(
|
|
626
|
-
`${se.field_name}search${
|
|
626
|
+
`${se.field_name}search${Dt.value}`
|
|
627
627
|
);
|
|
628
628
|
Ue && Ue.focus();
|
|
629
629
|
});
|
|
@@ -711,7 +711,7 @@ const Rae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
|
|
|
711
711
|
type: "search",
|
|
712
712
|
"onUpdate:modelValue": A[2] || (A[2] = (Gt) => it.value = Gt),
|
|
713
713
|
ref: fe.value,
|
|
714
|
-
id: `${R.field_name}search${
|
|
714
|
+
id: `${R.field_name}search${Dt.value}`,
|
|
715
715
|
onKeydown: Us,
|
|
716
716
|
onBlur: A[3] || (A[3] = (Gt) => Pt()),
|
|
717
717
|
autocomplete: "off",
|
|
@@ -731,7 +731,7 @@ const Rae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
|
|
|
731
731
|
onClick: (Jn) => ge(Gt),
|
|
732
732
|
onMousedown: (Jn) => ge(Gt),
|
|
733
733
|
key: nt,
|
|
734
|
-
id: `${nt + 1}${
|
|
734
|
+
id: `${nt + 1}${Dt.value}`
|
|
735
735
|
}, ft(Gt.name || Gt.id || "-"), 43, KK))), 128))
|
|
736
736
|
])
|
|
737
737
|
], 512), [
|
|
@@ -923,7 +923,7 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
923
923
|
id: R.field_name + "_i18n",
|
|
924
924
|
ref_key: "input_translate",
|
|
925
925
|
ref: Ae,
|
|
926
|
-
"onUpdate:modelValue": it[0] || (it[0] = (
|
|
926
|
+
"onUpdate:modelValue": it[0] || (it[0] = (Dt) => Pe.inputTranslateValue = Dt)
|
|
927
927
|
}, null, 8, eY), [
|
|
928
928
|
[vm, Pe.inputTranslateValue]
|
|
929
929
|
]),
|
|
@@ -965,8 +965,8 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
965
965
|
" gl-textarea-form-invalid form-input-translation mt-4 ": R.error_message !== ""
|
|
966
966
|
}),
|
|
967
967
|
type: R.type,
|
|
968
|
-
onInput: it[1] || (it[1] = (
|
|
969
|
-
onKeydown: it[2] || (it[2] = (
|
|
968
|
+
onInput: it[1] || (it[1] = (Dt) => Pe.$emit("update:modelValue", Dt.target.value)),
|
|
969
|
+
onKeydown: it[2] || (it[2] = (Dt) => Pe.$emit("keydown", Dt)),
|
|
970
970
|
ref_key: "input",
|
|
971
971
|
ref: G,
|
|
972
972
|
rows: "4"
|
|
@@ -1067,7 +1067,7 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1067
1067
|
id: R.field_name + "_i18n",
|
|
1068
1068
|
ref_key: "input_translate",
|
|
1069
1069
|
ref: Ae,
|
|
1070
|
-
"onUpdate:modelValue": it[0] || (it[0] = (
|
|
1070
|
+
"onUpdate:modelValue": it[0] || (it[0] = (Dt) => Pe.inputTranslateValue = Dt)
|
|
1071
1071
|
}, null, 8, uY), [
|
|
1072
1072
|
[vm, Pe.inputTranslateValue]
|
|
1073
1073
|
]),
|
|
@@ -1108,8 +1108,8 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1108
1108
|
" gl-textarea-form-invalid form-input-translation mt-4 ": R.error_message !== ""
|
|
1109
1109
|
}]),
|
|
1110
1110
|
type: R.type,
|
|
1111
|
-
onInput: it[1] || (it[1] = (
|
|
1112
|
-
onKeydown: it[2] || (it[2] = (
|
|
1111
|
+
onInput: it[1] || (it[1] = (Dt) => Pe.$emit("update:modelValue", Dt.target.value)),
|
|
1112
|
+
onKeydown: it[2] || (it[2] = (Dt) => Pe.$emit("keydown", Dt)),
|
|
1113
1113
|
ref_key: "input",
|
|
1114
1114
|
ref: G,
|
|
1115
1115
|
rows: "4"
|
|
@@ -1197,7 +1197,7 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1197
1197
|
name: R.field_name + "_i18n",
|
|
1198
1198
|
id: R.field_name + "_i18n",
|
|
1199
1199
|
ref: "input_translate_s",
|
|
1200
|
-
"onUpdate:modelValue": it[0] || (it[0] = (
|
|
1200
|
+
"onUpdate:modelValue": it[0] || (it[0] = (Dt) => Pe.inputTranslateValue = Dt)
|
|
1201
1201
|
}, null, 8, wY), [
|
|
1202
1202
|
[vm, Pe.inputTranslateValue]
|
|
1203
1203
|
]),
|
|
@@ -1239,8 +1239,8 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1239
1239
|
" gl-input-form-invalid form-input-translation mt-2 ": R.error_message !== ""
|
|
1240
1240
|
}),
|
|
1241
1241
|
type: R.type,
|
|
1242
|
-
onInput: it[1] || (it[1] = (
|
|
1243
|
-
onKeydown: it[2] || (it[2] = (
|
|
1242
|
+
onInput: it[1] || (it[1] = (Dt) => Pe.$emit("update:modelValue", Dt.target.value)),
|
|
1243
|
+
onKeydown: it[2] || (it[2] = (Dt) => Pe.$emit("keydown", Dt)),
|
|
1244
1244
|
ref_key: "input",
|
|
1245
1245
|
ref: G
|
|
1246
1246
|
}, null, 42, TY),
|
|
@@ -1519,10 +1519,10 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1519
1519
|
set(it) {
|
|
1520
1520
|
G.value.end = it, Pe(G.value.start, G.value.end), Ee("update:modelValue", { start: G.value.start, end: G.value.end }), Ee("keydown", { start: G.value.start, end: G.value.end });
|
|
1521
1521
|
}
|
|
1522
|
-
}), Pe = (it,
|
|
1523
|
-
it &&
|
|
1522
|
+
}), Pe = (it, Dt) => {
|
|
1523
|
+
it && Dt && new Date(it) > new Date(Dt) ? (fe.value = "Start date cannot be after end date.", G.value.start = "", G.value.end = "", Ee("update:modelValue", { start: G.value.start, end: G.value.end }), Ee("keydown", { start: G.value.start, end: G.value.end })) : it && Dt && new Date(Dt) < new Date(it) ? (fe.value = "End date cannot be before start date.", G.value.start = "", G.value.end = "", Ee("update:modelValue", { start: G.value.start, end: G.value.end }), Ee("keydown", { start: G.value.start, end: G.value.end })) : fe.value = "";
|
|
1524
1524
|
};
|
|
1525
|
-
return (it,
|
|
1525
|
+
return (it, Dt) => (ve(), we(fo, null, [
|
|
1526
1526
|
R.show ? (ve(), we("div", {
|
|
1527
1527
|
key: 0,
|
|
1528
1528
|
class: rn(R.field_name)
|
|
@@ -1553,7 +1553,7 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1553
1553
|
"gl-input-form-invalid": R.error_message !== "" || fe.value !== ""
|
|
1554
1554
|
}),
|
|
1555
1555
|
type: "date",
|
|
1556
|
-
"onUpdate:modelValue":
|
|
1556
|
+
"onUpdate:modelValue": Dt[0] || (Dt[0] = (Cn) => Ae.value = Cn),
|
|
1557
1557
|
placeholder: R.placeholder
|
|
1558
1558
|
}, null, 10, XY), [
|
|
1559
1559
|
[vm, Ae.value]
|
|
@@ -1568,7 +1568,7 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1568
1568
|
"gl-input-form-invalid": R.error_message !== "" || fe.value !== ""
|
|
1569
1569
|
}),
|
|
1570
1570
|
type: "date",
|
|
1571
|
-
"onUpdate:modelValue":
|
|
1571
|
+
"onUpdate:modelValue": Dt[1] || (Dt[1] = (Cn) => Q.value = Cn),
|
|
1572
1572
|
placeholder: R.placeholder
|
|
1573
1573
|
}, null, 10, QY), [
|
|
1574
1574
|
[vm, Q.value]
|
|
@@ -1689,7 +1689,7 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1689
1689
|
P("ul", mX, [
|
|
1690
1690
|
(ve(!0), we(fo, null, hr(fe.value, (it) => (ve(), we("li", {
|
|
1691
1691
|
key: it.title,
|
|
1692
|
-
onClick: (
|
|
1692
|
+
onClick: (Dt) => G.value = it.title,
|
|
1693
1693
|
class: "flex-auto -mb-px text-center"
|
|
1694
1694
|
}, [
|
|
1695
1695
|
P("a", {
|
|
@@ -1791,8 +1791,8 @@ const Uae = /* @__PURE__ */ Jr(bX, [["render", yX]]), wX = {
|
|
|
1791
1791
|
const se = (fe) => {
|
|
1792
1792
|
me.style.cursor = "grabbing";
|
|
1793
1793
|
const G = (Q) => {
|
|
1794
|
-
const Pe = Q.clientX || Q.touches && Q.touches[0] && Q.touches[0].clientX, it = Q.clientY || Q.touches && Q.touches[0] && Q.touches[0].clientY,
|
|
1795
|
-
Math.abs(
|
|
1794
|
+
const Pe = Q.clientX || Q.touches && Q.touches[0] && Q.touches[0].clientX, it = Q.clientY || Q.touches && Q.touches[0] && Q.touches[0].clientY, Dt = Pe - R.initialX, Cn = it - R.initialY;
|
|
1795
|
+
Math.abs(Dt) > Math.abs(Cn) ? (Q.preventDefault(), Math.abs(Dt) >= 70 && (Dt < 0 ? R.next() : R.prev(), R.initialX = Pe)) : me.style.cursor = "grab", Math.abs(Cn) > Math.abs(Dt) && (me.style.cursor = "grab");
|
|
1796
1796
|
}, Ae = () => {
|
|
1797
1797
|
document.removeEventListener("mousemove", G), document.removeEventListener("touchmove", G), document.removeEventListener("mouseup", Ae), document.removeEventListener("touchend", Ae), me.style.cursor = "grab";
|
|
1798
1798
|
};
|
|
@@ -2537,8 +2537,8 @@ const Wae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
|
|
|
2537
2537
|
},
|
|
2538
2538
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
2539
2539
|
setup(R, { emit: me }) {
|
|
2540
|
-
const se = R, Ee = me, fe = No(null), G = No({}), Ae = No(0), Q = No(!1), Pe = No(""), it = No(""),
|
|
2541
|
-
console.log("myDivDropDown",
|
|
2540
|
+
const se = R, Ee = me, fe = No(null), G = No({}), Ae = No(0), Q = No(!1), Pe = No(""), it = No(""), Dt = No(null), Cn = No(0), jn = () => {
|
|
2541
|
+
console.log("myDivDropDown", Dt.value), Cn.value = Dt.value.offsetWidth, Dt.value && (Cn.value = Dt.value.offsetWidth);
|
|
2542
2542
|
}, Vo = () => {
|
|
2543
2543
|
jn();
|
|
2544
2544
|
};
|
|
@@ -2669,7 +2669,7 @@ const Wae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
|
|
|
2669
2669
|
R.options ? (ve(), we("div", {
|
|
2670
2670
|
key: 0,
|
|
2671
2671
|
ref_key: "myDivDropDown",
|
|
2672
|
-
ref:
|
|
2672
|
+
ref: Dt,
|
|
2673
2673
|
class: "dropdown"
|
|
2674
2674
|
}, [
|
|
2675
2675
|
R.label_name ? (ve(), we("label", {
|
|
@@ -2708,7 +2708,7 @@ const Wae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
|
|
|
2708
2708
|
}, null, 2),
|
|
2709
2709
|
Qa(P("div", {
|
|
2710
2710
|
class: "text-gray-700 bg-white dark:border-strokedark dark:bg-boxdark dark:text-gray-200 !border-b !border-t-0 !border-r !border-l fixed w-full z-[999999999] rounded-b-lg",
|
|
2711
|
-
style: YG({ maxWidth:
|
|
2711
|
+
style: YG({ maxWidth: Cn.value + "px" })
|
|
2712
2712
|
}, [
|
|
2713
2713
|
P("div", dQ, [
|
|
2714
2714
|
mQ,
|
|
@@ -2913,7 +2913,7 @@ var oq = { exports: {} };
|
|
|
2913
2913
|
return fe(Pe(e), function(o) {
|
|
2914
2914
|
return Ee(o, n);
|
|
2915
2915
|
});
|
|
2916
|
-
},
|
|
2916
|
+
}, Dt = function(e) {
|
|
2917
2917
|
return G(function(n, o) {
|
|
2918
2918
|
var r = Object.keys(n), l = Object.keys(o);
|
|
2919
2919
|
if (!it(Q).eq(r, l))
|
|
@@ -2925,11 +2925,11 @@ var oq = { exports: {} };
|
|
|
2925
2925
|
}
|
|
2926
2926
|
return !0;
|
|
2927
2927
|
});
|
|
2928
|
-
},
|
|
2928
|
+
}, Cn = G(function(e, n) {
|
|
2929
2929
|
if (e === n)
|
|
2930
2930
|
return !0;
|
|
2931
2931
|
var o = me(e), r = me(n);
|
|
2932
|
-
return o !== r ? !1 : se(o) ? e === n : o === "array" ? Pe(
|
|
2932
|
+
return o !== r ? !1 : se(o) ? e === n : o === "array" ? Pe(Cn).eq(e, n) : o === "object" ? Dt(Cn).eq(e, n) : !1;
|
|
2933
2933
|
});
|
|
2934
2934
|
const jn = Object.getPrototypeOf, Vo = (e, n, o) => {
|
|
2935
2935
|
var r;
|
|
@@ -3170,7 +3170,7 @@ var oq = { exports: {} };
|
|
|
3170
3170
|
return vt(e, (r, l) => {
|
|
3171
3171
|
o.push(n(r, l));
|
|
3172
3172
|
}), o;
|
|
3173
|
-
}, bl = (e) => tl(e, Jn), Ko = (e, n) => gn(e, n) ? z.from(e[n]) : z.none(), gn = (e, n) => Gi.call(e, n), Ar = (e, n) => gn(e, n) && e[n] !== void 0 && e[n] !== null, Nl = (e, n, o =
|
|
3173
|
+
}, bl = (e) => tl(e, Jn), Ko = (e, n) => gn(e, n) ? z.from(e[n]) : z.none(), gn = (e, n) => Gi.call(e, n), Ar = (e, n) => gn(e, n) && e[n] !== void 0 && e[n] !== null, Nl = (e, n, o = Cn) => Dt(o).eq(e, n), Hc = (e) => {
|
|
3174
3174
|
const n = {};
|
|
3175
3175
|
return _e(e, (o) => {
|
|
3176
3176
|
n[o] = {};
|
|
@@ -3501,8 +3501,8 @@ var oq = { exports: {} };
|
|
|
3501
3501
|
}
|
|
3502
3502
|
}
|
|
3503
3503
|
return e;
|
|
3504
|
-
},
|
|
3505
|
-
r = r || this, e && (o && (e = e[o]), Ws(e, (l, u) => n.call(r, l, u, o) === !1 ? !1 : (
|
|
3504
|
+
}, Ot = function(e, n, o, r) {
|
|
3505
|
+
r = r || this, e && (o && (e = e[o]), Ws(e, (l, u) => n.call(r, l, u, o) === !1 ? !1 : (Ot(l, n, o, r), !0)));
|
|
3506
3506
|
}, lt = {
|
|
3507
3507
|
trim: Zs,
|
|
3508
3508
|
isArray: xr,
|
|
@@ -3515,7 +3515,7 @@ var oq = { exports: {} };
|
|
|
3515
3515
|
inArray: Vr,
|
|
3516
3516
|
hasOwn: re,
|
|
3517
3517
|
extend: Le,
|
|
3518
|
-
walk:
|
|
3518
|
+
walk: Ot,
|
|
3519
3519
|
resolve: (e, n = window) => {
|
|
3520
3520
|
const o = e.split(".");
|
|
3521
3521
|
for (let r = 0, l = o.length; r < l && (n = n[o[r]], !!n); r++)
|
|
@@ -4037,7 +4037,7 @@ var oq = { exports: {} };
|
|
|
4037
4037
|
n.isBlock(co(e)) && Id(o) && n.isBlock(co(r)) && wo(o);
|
|
4038
4038
|
});
|
|
4039
4039
|
});
|
|
4040
|
-
}, x = zg, T = au, V = fb, K = (e) => e.insertContent(x, { preserve_zwsp: !0 }), be = Zt, je = ut, gt = (e) => (je(e) && (e = e.parentNode), be(e) && e.hasAttribute("data-mce-caret")),
|
|
4040
|
+
}, x = zg, T = au, V = fb, K = (e) => e.insertContent(x, { preserve_zwsp: !0 }), be = Zt, je = ut, gt = (e) => (je(e) && (e = e.parentNode), be(e) && e.hasAttribute("data-mce-caret")), Rt = (e) => je(e) && T(e.data), on = (e) => gt(e) || Rt(e), Hn = (e) => e.firstChild !== e.lastChild || !as(e.firstChild), ar = (e, n) => {
|
|
4041
4041
|
var o;
|
|
4042
4042
|
const l = ((o = e.ownerDocument) !== null && o !== void 0 ? o : document).createTextNode(x), u = e.parentNode;
|
|
4043
4043
|
if (n) {
|
|
@@ -4062,10 +4062,10 @@ var oq = { exports: {} };
|
|
|
4062
4062
|
return l;
|
|
4063
4063
|
}, Po = (e) => {
|
|
4064
4064
|
const n = e.container();
|
|
4065
|
-
return ut(n) ? n.data.charAt(e.offset()) === x || e.isAtStart() &&
|
|
4065
|
+
return ut(n) ? n.data.charAt(e.offset()) === x || e.isAtStart() && Rt(n.previousSibling) : !1;
|
|
4066
4066
|
}, Bs = (e) => {
|
|
4067
4067
|
const n = e.container();
|
|
4068
|
-
return ut(n) ? n.data.charAt(e.offset() - 1) === x || e.isAtEnd() &&
|
|
4068
|
+
return ut(n) ? n.data.charAt(e.offset() - 1) === x || e.isAtEnd() && Rt(n.nextSibling) : !1;
|
|
4069
4069
|
}, mc = (e, n, o) => {
|
|
4070
4070
|
var r;
|
|
4071
4071
|
const u = ((r = n.ownerDocument) !== null && r !== void 0 ? r : document).createElement(e);
|
|
@@ -8265,7 +8265,7 @@ Required: ` + n.join(", "));
|
|
|
8265
8265
|
}), De = (e) => ie.get(e), at = () => le.fromDom(document), Bt = (e, n) => e.view(n).fold(nt([]), (r) => {
|
|
8266
8266
|
const l = e.owner(r), u = Bt(e, l);
|
|
8267
8267
|
return [r].concat(u);
|
|
8268
|
-
}),
|
|
8268
|
+
}), $t = (e, n) => {
|
|
8269
8269
|
const o = n.owner(e);
|
|
8270
8270
|
return Bt(n, o);
|
|
8271
8271
|
};
|
|
@@ -8278,7 +8278,7 @@ Required: ` + n.join(", "));
|
|
|
8278
8278
|
owner: (e) => ic(e)
|
|
8279
8279
|
});
|
|
8280
8280
|
const Jt = (e) => {
|
|
8281
|
-
const n = at(), o = Kt(n), r =
|
|
8281
|
+
const n = at(), o = Kt(n), r = $t(e, Ye), l = ct(e), u = Tr(r, (f, b) => {
|
|
8282
8282
|
const y = ct(b);
|
|
8283
8283
|
return {
|
|
8284
8284
|
left: f.left + y.left,
|
|
@@ -9131,7 +9131,7 @@ Required: ` + n.join(", "));
|
|
|
9131
9131
|
return We(r) && r === l;
|
|
9132
9132
|
}, cI = (e) => Po(e) || Bs(e), Co = (e, n) => {
|
|
9133
9133
|
const o = n.container(), r = n.offset();
|
|
9134
|
-
return e ?
|
|
9134
|
+
return e ? Rt(o) ? ut(o.nextSibling) ? Ie(o.nextSibling, 0) : Ie.after(o) : Po(n) ? Ie(o, r + 1) : n : Rt(o) ? ut(o.previousSibling) ? Ie(o.previousSibling, o.previousSibling.data.length) : Ie.before(o) : Bs(n) ? Ie(o, r - 1) : n;
|
|
9135
9135
|
}, O0 = et(Co, !0), bw = et(Co, !1), O4 = (e, n) => {
|
|
9136
9136
|
const o = (r) => r.stopImmediatePropagation();
|
|
9137
9137
|
e.on("beforeinput input", o, !0), e.getDoc().execCommand(n), e.off("beforeinput input", o);
|
|
@@ -11555,8 +11555,8 @@ Required: ` + n.join(", "));
|
|
|
11555
11555
|
namespaceURI: vg,
|
|
11556
11556
|
tagName: "template"
|
|
11557
11557
|
});
|
|
11558
|
-
const
|
|
11559
|
-
return Cy[Ve.namespaceURI] ? Ve.namespaceURI === sb ? Qt.namespaceURI === hm ?
|
|
11558
|
+
const Sn = xh(Ve.tagName), Hr = xh(Qt.tagName);
|
|
11559
|
+
return Cy[Ve.namespaceURI] ? Ve.namespaceURI === sb ? Qt.namespaceURI === hm ? Sn === "svg" : Qt.namespaceURI === ob ? Sn === "svg" && (Hr === "annotation-xml" || wg[Hr]) : !!Fe[Sn] : Ve.namespaceURI === ob ? Qt.namespaceURI === hm ? Sn === "math" : Qt.namespaceURI === sb ? Sn === "math" && Sy[Hr] : !!St[Sn] : Ve.namespaceURI === hm ? Qt.namespaceURI === sb && !Sy[Hr] || Qt.namespaceURI === ob && !wg[Hr] ? !1 : !St[Sn] && (Be[Sn] || !Fe[Sn]) : !!(yg === "application/xhtml+xml" && Cy[Ve.namespaceURI]) : !1;
|
|
11560
11560
|
}, sn = function(Ve) {
|
|
11561
11561
|
cg(n.removed, { element: Ve });
|
|
11562
11562
|
try {
|
|
@@ -11588,12 +11588,12 @@ Required: ` + n.join(", "));
|
|
|
11588
11588
|
} catch {
|
|
11589
11589
|
}
|
|
11590
11590
|
}, nr = function(Ve) {
|
|
11591
|
-
let Qt,
|
|
11591
|
+
let Qt, Sn;
|
|
11592
11592
|
if (bg)
|
|
11593
11593
|
Ve = "<remove></remove>" + Ve;
|
|
11594
11594
|
else {
|
|
11595
11595
|
const Td = R3(Ve, /^[\r\n\t ]+/);
|
|
11596
|
-
|
|
11596
|
+
Sn = Td && Td[0];
|
|
11597
11597
|
}
|
|
11598
11598
|
yg === "application/xhtml+xml" && vg === hm && (Ve = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + Ve + "</body></html>");
|
|
11599
11599
|
const Hr = Ce ? Ce.createHTML(Ve) : Ve;
|
|
@@ -11610,31 +11610,31 @@ Required: ` + n.join(", "));
|
|
|
11610
11610
|
}
|
|
11611
11611
|
}
|
|
11612
11612
|
const Fc = Qt.body || Qt.documentElement;
|
|
11613
|
-
return Ve &&
|
|
11613
|
+
return Ve && Sn && Fc.insertBefore(l.createTextNode(Sn), Fc.childNodes[0] || null), vg === hm ? Ze.call(Qt, Fa ? "html" : "body")[0] : Fa ? Qt.documentElement : Fc;
|
|
11614
11614
|
}, ui = function(Ve) {
|
|
11615
11615
|
return wt.call(Ve.ownerDocument || Ve, Ve, k.SHOW_ELEMENT | k.SHOW_COMMENT | k.SHOW_TEXT, null, !1);
|
|
11616
11616
|
}, Ja = function(Ve) {
|
|
11617
11617
|
return Ve instanceof B && (typeof Ve.nodeName != "string" || typeof Ve.textContent != "string" || typeof Ve.removeChild != "function" || !(Ve.attributes instanceof M) || typeof Ve.removeAttribute != "function" || typeof Ve.setAttribute != "function" || typeof Ve.namespaceURI != "string" || typeof Ve.insertBefore != "function" || typeof Ve.hasChildNodes != "function");
|
|
11618
11618
|
}, p1 = function(Ve) {
|
|
11619
11619
|
return typeof b == "object" ? Ve instanceof b : Ve && typeof Ve == "object" && typeof Ve.nodeType == "number" && typeof Ve.nodeName == "string";
|
|
11620
|
-
}, kd = function(Ve, Qt,
|
|
11620
|
+
}, kd = function(Ve, Qt, Sn) {
|
|
11621
11621
|
st[Ve] && cL(st[Ve], (Hr) => {
|
|
11622
|
-
Hr.call(n, Qt,
|
|
11622
|
+
Hr.call(n, Qt, Sn, h1);
|
|
11623
11623
|
});
|
|
11624
11624
|
}, qO = function(Ve) {
|
|
11625
11625
|
let Qt;
|
|
11626
11626
|
if (kd("beforeSanitizeElements", Ve, null), Ja(Ve))
|
|
11627
11627
|
return sn(Ve), !0;
|
|
11628
|
-
const
|
|
11628
|
+
const Sn = nc(Ve.nodeName);
|
|
11629
11629
|
if (kd("uponSanitizeElement", Ve, {
|
|
11630
|
-
tagName:
|
|
11630
|
+
tagName: Sn,
|
|
11631
11631
|
allowedTags: cs
|
|
11632
11632
|
}), Ve.hasChildNodes() && !p1(Ve.firstElementChild) && (!p1(Ve.content) || !p1(Ve.content.firstElementChild)) && vd(/<[/\w]/g, Ve.innerHTML) && vd(/<[/\w]/g, Ve.textContent))
|
|
11633
11633
|
return sn(Ve), !0;
|
|
11634
|
-
if (!cs[
|
|
11635
|
-
if (!Yt[
|
|
11634
|
+
if (!cs[Sn] || Yt[Sn]) {
|
|
11635
|
+
if (!Yt[Sn] && KO(Sn) && (so.tagNameCheck instanceof RegExp && vd(so.tagNameCheck, Sn) || so.tagNameCheck instanceof Function && so.tagNameCheck(Sn)))
|
|
11636
11636
|
return !1;
|
|
11637
|
-
if (ir && !g1[
|
|
11637
|
+
if (ir && !g1[Sn]) {
|
|
11638
11638
|
const Hr = Se(Ve) || Ve.parentNode, Fc = ye(Ve) || Ve.childNodes;
|
|
11639
11639
|
if (Fc && Hr) {
|
|
11640
11640
|
const Td = Fc.length;
|
|
@@ -11644,19 +11644,19 @@ Required: ` + n.join(", "));
|
|
|
11644
11644
|
}
|
|
11645
11645
|
return sn(Ve), !0;
|
|
11646
11646
|
}
|
|
11647
|
-
return Ve instanceof y && !ht(Ve) || (
|
|
11648
|
-
}, bT = function(Ve, Qt,
|
|
11649
|
-
if ($o && (Qt === "id" || Qt === "name") && (
|
|
11647
|
+
return Ve instanceof y && !ht(Ve) || (Sn === "noscript" || Sn === "noembed" || Sn === "noframes") && vd(/<\/no(script|embed|frames)/i, Ve.innerHTML) ? (sn(Ve), !0) : (gs && Ve.nodeType === 3 && (Qt = Ve.textContent, Qt = sm(Qt, jt, " "), Qt = sm(Qt, an, " "), Qt = sm(Qt, Kn, " "), Ve.textContent !== Qt && (cg(n.removed, { element: Ve.cloneNode() }), Ve.textContent = Qt)), kd("afterSanitizeElements", Ve, null), !1);
|
|
11648
|
+
}, bT = function(Ve, Qt, Sn) {
|
|
11649
|
+
if ($o && (Qt === "id" || Qt === "name") && (Sn in l || Sn in GO))
|
|
11650
11650
|
return !1;
|
|
11651
11651
|
if (!(Rn && !On[Qt] && vd(Wn, Qt))) {
|
|
11652
11652
|
if (!(Ct && vd(fs, Qt))) {
|
|
11653
11653
|
if (!en[Qt] || On[Qt]) {
|
|
11654
|
-
if (!(KO(Ve) && (so.tagNameCheck instanceof RegExp && vd(so.tagNameCheck, Ve) || so.tagNameCheck instanceof Function && so.tagNameCheck(Ve)) && (so.attributeNameCheck instanceof RegExp && vd(so.attributeNameCheck, Qt) || so.attributeNameCheck instanceof Function && so.attributeNameCheck(Qt)) || Qt === "is" && so.allowCustomizedBuiltInElements && (so.tagNameCheck instanceof RegExp && vd(so.tagNameCheck,
|
|
11654
|
+
if (!(KO(Ve) && (so.tagNameCheck instanceof RegExp && vd(so.tagNameCheck, Ve) || so.tagNameCheck instanceof Function && so.tagNameCheck(Ve)) && (so.attributeNameCheck instanceof RegExp && vd(so.attributeNameCheck, Qt) || so.attributeNameCheck instanceof Function && so.attributeNameCheck(Qt)) || Qt === "is" && so.allowCustomizedBuiltInElements && (so.tagNameCheck instanceof RegExp && vd(so.tagNameCheck, Sn) || so.tagNameCheck instanceof Function && so.tagNameCheck(Sn)))) return !1;
|
|
11655
11655
|
} else if (!xy[Qt]) {
|
|
11656
|
-
if (!vd($l, sm(
|
|
11657
|
-
if (!((Qt === "src" || Qt === "xlink:href" || Qt === "href") && Ve !== "script" && D$(
|
|
11658
|
-
if (!(So && !vd(Os, sm(
|
|
11659
|
-
if (
|
|
11656
|
+
if (!vd($l, sm(Sn, Fr, ""))) {
|
|
11657
|
+
if (!((Qt === "src" || Qt === "xlink:href" || Qt === "href") && Ve !== "script" && D$(Sn, "data:") === 0 && nb[Ve])) {
|
|
11658
|
+
if (!(So && !vd(Os, sm(Sn, Fr, "")))) {
|
|
11659
|
+
if (Sn)
|
|
11660
11660
|
return !1;
|
|
11661
11661
|
}
|
|
11662
11662
|
}
|
|
@@ -11668,7 +11668,7 @@ Required: ` + n.join(", "));
|
|
|
11668
11668
|
}, KO = function(Ve) {
|
|
11669
11669
|
return Ve.indexOf("-") > 0;
|
|
11670
11670
|
}, YO = function(Ve) {
|
|
11671
|
-
let Qt,
|
|
11671
|
+
let Qt, Sn, Hr, Fc;
|
|
11672
11672
|
kd("beforeSanitizeAttributes", Ve, null);
|
|
11673
11673
|
const { attributes: Td } = Ve;
|
|
11674
11674
|
if (!Td)
|
|
@@ -11682,38 +11682,38 @@ Required: ` + n.join(", "));
|
|
|
11682
11682
|
for (Fc = Td.length; Fc--; ) {
|
|
11683
11683
|
Qt = Td[Fc];
|
|
11684
11684
|
const { name: pm, namespaceURI: vT } = Qt;
|
|
11685
|
-
|
|
11686
|
-
const yj =
|
|
11687
|
-
if (Hr = nc(pm), Ha.attrName = Hr, Ha.attrValue =
|
|
11685
|
+
Sn = pm === "value" ? Qt.value : iL(Qt.value);
|
|
11686
|
+
const yj = Sn;
|
|
11687
|
+
if (Hr = nc(pm), Ha.attrName = Hr, Ha.attrValue = Sn, Ha.keepAttr = !0, Ha.forceKeepAttr = void 0, kd("uponSanitizeAttribute", Ve, Ha), Sn = Ha.attrValue, Ha.forceKeepAttr)
|
|
11688
11688
|
continue;
|
|
11689
11689
|
if (!Ha.keepAttr) {
|
|
11690
11690
|
ro(pm, Ve);
|
|
11691
11691
|
continue;
|
|
11692
11692
|
}
|
|
11693
|
-
if (!Ss && vd(/\/>/i,
|
|
11693
|
+
if (!Ss && vd(/\/>/i, Sn)) {
|
|
11694
11694
|
ro(pm, Ve);
|
|
11695
11695
|
continue;
|
|
11696
11696
|
}
|
|
11697
|
-
gs && (
|
|
11697
|
+
gs && (Sn = sm(Sn, jt, " "), Sn = sm(Sn, an, " "), Sn = sm(Sn, Kn, " "));
|
|
11698
11698
|
const XO = nc(Ve.nodeName);
|
|
11699
|
-
if (!bT(XO, Hr,
|
|
11699
|
+
if (!bT(XO, Hr, Sn)) {
|
|
11700
11700
|
ro(pm, Ve);
|
|
11701
11701
|
continue;
|
|
11702
11702
|
}
|
|
11703
|
-
if (Rs && (Hr === "id" || Hr === "name") && (ro(pm, Ve),
|
|
11703
|
+
if (Rs && (Hr === "id" || Hr === "name") && (ro(pm, Ve), Sn = Js + Sn), Ce && typeof J == "object" && typeof J.getAttributeType == "function" && !vT)
|
|
11704
11704
|
switch (J.getAttributeType(XO, Hr)) {
|
|
11705
11705
|
case "TrustedHTML": {
|
|
11706
|
-
|
|
11706
|
+
Sn = Ce.createHTML(Sn);
|
|
11707
11707
|
break;
|
|
11708
11708
|
}
|
|
11709
11709
|
case "TrustedScriptURL": {
|
|
11710
|
-
|
|
11710
|
+
Sn = Ce.createScriptURL(Sn);
|
|
11711
11711
|
break;
|
|
11712
11712
|
}
|
|
11713
11713
|
}
|
|
11714
|
-
if (
|
|
11714
|
+
if (Sn !== yj)
|
|
11715
11715
|
try {
|
|
11716
|
-
vT ? Ve.setAttributeNS(vT, pm,
|
|
11716
|
+
vT ? Ve.setAttributeNS(vT, pm, Sn) : Ve.setAttribute(pm, Sn);
|
|
11717
11717
|
} catch {
|
|
11718
11718
|
ro(pm, Ve);
|
|
11719
11719
|
}
|
|
@@ -11721,13 +11721,13 @@ Required: ` + n.join(", "));
|
|
|
11721
11721
|
kd("afterSanitizeAttributes", Ve, null);
|
|
11722
11722
|
}, vj = function no(Ve) {
|
|
11723
11723
|
let Qt;
|
|
11724
|
-
const
|
|
11725
|
-
for (kd("beforeSanitizeShadowDOM", Ve, null); Qt =
|
|
11724
|
+
const Sn = ui(Ve);
|
|
11725
|
+
for (kd("beforeSanitizeShadowDOM", Ve, null); Qt = Sn.nextNode(); )
|
|
11726
11726
|
kd("uponSanitizeShadowNode", Qt, null), !qO(Qt) && (Qt.content instanceof u && no(Qt.content), YO(Qt));
|
|
11727
11727
|
kd("afterSanitizeShadowDOM", Ve, null);
|
|
11728
11728
|
};
|
|
11729
11729
|
return n.sanitize = function(no) {
|
|
11730
|
-
let Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Qt,
|
|
11730
|
+
let Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Qt, Sn, Hr, Fc;
|
|
11731
11731
|
if (Hx = !no, Hx && (no = "<!-->"), typeof no != "string" && !p1(no))
|
|
11732
11732
|
if (typeof no.toString == "function") {
|
|
11733
11733
|
if (no = no.toString(), typeof no != "string")
|
|
@@ -11743,7 +11743,7 @@ Required: ` + n.join(", "));
|
|
|
11743
11743
|
throw Gv("root node is forbidden and cannot be sanitized in-place");
|
|
11744
11744
|
}
|
|
11745
11745
|
} else if (no instanceof b)
|
|
11746
|
-
Qt = nr("<!---->"),
|
|
11746
|
+
Qt = nr("<!---->"), Sn = Qt.ownerDocument.importNode(no, !0), Sn.nodeType === 1 && Sn.nodeName === "BODY" || Sn.nodeName === "HTML" ? Qt = Sn : Qt.appendChild(Sn);
|
|
11747
11747
|
else {
|
|
11748
11748
|
if (!ii && !gs && !Fa && no.indexOf("<") === -1)
|
|
11749
11749
|
return Ce && Nn ? Ce.createHTML(no) : no;
|
|
@@ -11773,8 +11773,8 @@ Required: ` + n.join(", "));
|
|
|
11773
11773
|
h1 = null, gm = !1;
|
|
11774
11774
|
}, n.isValidAttribute = function(no, Ve, Qt) {
|
|
11775
11775
|
h1 || Ux({});
|
|
11776
|
-
const
|
|
11777
|
-
return bT(
|
|
11776
|
+
const Sn = nc(no), Hr = nc(Ve);
|
|
11777
|
+
return bT(Sn, Hr, Qt);
|
|
11778
11778
|
}, n.addHook = function(no, Ve) {
|
|
11779
11779
|
typeof Ve == "function" && (st[no] = st[no] || [], cg(st[no], Ve));
|
|
11780
11780
|
}, n.removeHook = function(no) {
|
|
@@ -14497,7 +14497,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14497
14497
|
}
|
|
14498
14498
|
}, H0 = (e, n) => e ? E9(n) : X_(n), A9 = et(H0, !0), D9 = et(H0, !1), ex = (e, n) => ut(e.container()) ? H0(n, e.container()) : H0(n, e.getNode()), dP = (e, n) => {
|
|
14499
14499
|
const o = n.get();
|
|
14500
|
-
return o && e.container() === o &&
|
|
14500
|
+
return o && e.container() === o && Rt(o);
|
|
14501
14501
|
}, BA = (e, n) => n.fold((o) => {
|
|
14502
14502
|
_a(e.get());
|
|
14503
14503
|
const r = A9(o);
|
|
@@ -17576,7 +17576,7 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, go(n, _D)), WB = nt(HB), pk
|
|
|
17576
17576
|
if (We(Wn)) {
|
|
17577
17577
|
if (_p(Wn))
|
|
17578
17578
|
return B(an, Wn, Ze ? !Kn.isAtEnd() : !1, !1);
|
|
17579
|
-
if (
|
|
17579
|
+
if (Rt(Wn) && io(Wn.nextSibling)) {
|
|
17580
17580
|
const Os = o.createRng();
|
|
17581
17581
|
return Os.setStart(Wn, 0), Os.setEnd(Wn, 0), Os;
|
|
17582
17582
|
}
|
|
@@ -17585,7 +17585,7 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, go(n, _D)), WB = nt(HB), pk
|
|
|
17585
17585
|
if (We(fs)) {
|
|
17586
17586
|
if (_p(fs))
|
|
17587
17587
|
return B(an, fs, Ze ? !1 : !Kn.isAtEnd(), !1);
|
|
17588
|
-
if (
|
|
17588
|
+
if (Rt(fs) && io(fs.previousSibling)) {
|
|
17589
17589
|
const Os = o.createRng();
|
|
17590
17590
|
return Os.setStart(fs, 1), Os.setEnd(fs, 1), Os;
|
|
17591
17591
|
}
|
|
@@ -20276,8 +20276,8 @@ tinymce.IconManager.add("default", {
|
|
|
20276
20276
|
}, se = (t) => {
|
|
20277
20277
|
const s = typeof t;
|
|
20278
20278
|
return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" && me(t, String, (a, c) => c.isPrototypeOf(a)) ? "string" : s;
|
|
20279
|
-
}, Ee = (t) => (s) => se(s) === t, fe = (t) => (s) => typeof s === t, G = (t) => (s) => t === s, Ae = (t, s) => Pe(t) && me(t, s, (a, c) => R(a) === c), Q = Ee("string"), Pe = Ee("object"), it = (t) => Ae(t, Object),
|
|
20280
|
-
if (
|
|
20279
|
+
}, Ee = (t) => (s) => se(s) === t, fe = (t) => (s) => typeof s === t, G = (t) => (s) => t === s, Ae = (t, s) => Pe(t) && me(t, s, (a, c) => R(a) === c), Q = Ee("string"), Pe = Ee("object"), it = (t) => Ae(t, Object), Dt = Ee("array"), Cn = G(null), jn = fe("boolean"), Vo = G(void 0), Us = (t) => t == null, Oo = (t) => !Us(t), Mt = fe("function"), pr = fe("number"), fn = (t, s) => {
|
|
20280
|
+
if (Dt(t)) {
|
|
20281
20281
|
for (let a = 0, c = t.length; a < c; ++a)
|
|
20282
20282
|
if (!s(t[a]))
|
|
20283
20283
|
return !1;
|
|
@@ -20445,7 +20445,7 @@ tinymce.IconManager.add("default", {
|
|
|
20445
20445
|
}, Ke = (t) => {
|
|
20446
20446
|
const s = [];
|
|
20447
20447
|
for (let a = 0, c = t.length; a < c; ++a) {
|
|
20448
|
-
if (
|
|
20448
|
+
if (!Dt(t[a]))
|
|
20449
20449
|
throw new Error("Arr.flatten item " + a + " was not an array, input: " + t);
|
|
20450
20450
|
Jn.apply(s, t[a]);
|
|
20451
20451
|
}
|
|
@@ -20668,7 +20668,7 @@ tinymce.IconManager.add("default", {
|
|
|
20668
20668
|
return a && a.hasAttribute ? a.hasAttribute(s) : !1;
|
|
20669
20669
|
}, re = (t, s) => {
|
|
20670
20670
|
t.dom.removeAttribute(s);
|
|
20671
|
-
}, Le = (t) => zo(t.dom.attributes, (s, a) => (s[a.name] = a.value, s), {}),
|
|
20671
|
+
}, Le = (t) => zo(t.dom.attributes, (s, a) => (s[a.name] = a.value, s), {}), Ot = (t, s, a) => {
|
|
20672
20672
|
if (!Q(a))
|
|
20673
20673
|
throw console.error("Invalid call to CSS.set. Property ", s, ":: Value ", a, ":: Element ", t), new Error("CSS value must be a string: " + a);
|
|
20674
20674
|
Dr(t) && t.style.setProperty(s, a);
|
|
@@ -20676,11 +20676,11 @@ tinymce.IconManager.add("default", {
|
|
|
20676
20676
|
Dr(t) && t.style.removeProperty(s);
|
|
20677
20677
|
}, qt = (t, s, a) => {
|
|
20678
20678
|
const c = t.dom;
|
|
20679
|
-
|
|
20679
|
+
Ot(c, s, a);
|
|
20680
20680
|
}, $s = (t, s) => {
|
|
20681
20681
|
const a = t.dom;
|
|
20682
20682
|
us(s, (c, d) => {
|
|
20683
|
-
|
|
20683
|
+
Ot(a, d, c);
|
|
20684
20684
|
});
|
|
20685
20685
|
}, lt = (t, s) => {
|
|
20686
20686
|
const a = t.dom;
|
|
@@ -20688,7 +20688,7 @@ tinymce.IconManager.add("default", {
|
|
|
20688
20688
|
c.fold(() => {
|
|
20689
20689
|
Yn(a, d);
|
|
20690
20690
|
}, (g) => {
|
|
20691
|
-
|
|
20691
|
+
Ot(a, d, g);
|
|
20692
20692
|
});
|
|
20693
20693
|
});
|
|
20694
20694
|
}, rs = (t, s) => {
|
|
@@ -21424,7 +21424,7 @@ Input object: ` + Lg(t.input), io = (t, s) => ut(t, Go(s, nn)), kf = (t, s) => u
|
|
|
21424
21424
|
}
|
|
21425
21425
|
};
|
|
21426
21426
|
}, T = { generate: (t) => {
|
|
21427
|
-
if (
|
|
21427
|
+
if (!Dt(t))
|
|
21428
21428
|
throw new Error("cases must be an array");
|
|
21429
21429
|
if (t.length === 0)
|
|
21430
21430
|
throw new Error("there must be at least one case");
|
|
@@ -21438,7 +21438,7 @@ Input object: ` + Lg(t.input), io = (t, s) => ut(t, Go(s, nn)), kf = (t, s) => u
|
|
|
21438
21438
|
throw new Error("duplicate key detected:" + p);
|
|
21439
21439
|
if (p === "cata")
|
|
21440
21440
|
throw new Error("cannot have a case named cata (sorry)");
|
|
21441
|
-
if (
|
|
21441
|
+
if (!Dt(w))
|
|
21442
21442
|
throw new Error("case arguments must be an array");
|
|
21443
21443
|
s.push(p), a[p] = (...C) => {
|
|
21444
21444
|
const E = C.length;
|
|
@@ -21519,7 +21519,7 @@ Required: ` + s.join(", "));
|
|
|
21519
21519
|
return bt(t, (a) => {
|
|
21520
21520
|
s[a.key] = a.value;
|
|
21521
21521
|
}), s;
|
|
21522
|
-
}, gt = (t, s) => K(t, s),
|
|
21522
|
+
}, gt = (t, s) => K(t, s), Rt = (t, s) => be(t, s), on = (t) => je(t), Hn = (t, s) => t.length === 0 ? Fn.value(s) : Fn.value(Zo(s, qc.apply(void 0, t))), ar = (t) => Fn.error(Ke(t)), Po = (t, s) => {
|
|
21523
21523
|
const a = V(t);
|
|
21524
21524
|
return a.errors.length > 0 ? ar(a.errors) : Hn(a.values, s);
|
|
21525
21525
|
}, Bs = (t) => Mt(t) ? t : Pt, mc = (t, s, a) => {
|
|
@@ -21720,7 +21720,7 @@ Check the ` + sd() + " event handlers"), !1) : !0;
|
|
|
21720
21720
|
}, Yh = Wt("alloy-premade"), Hm = (t) => (Object.defineProperty(t.element.dom, Yh, {
|
|
21721
21721
|
value: t.uid,
|
|
21722
21722
|
writable: !0
|
|
21723
|
-
}),
|
|
21723
|
+
}), Rt(Yh, t)), $T = (t) => go(t.dom, Yh), Xh = (t) => vt(t, Yh), Xg = (t) => Qx((s, ...a) => t(s.getApis(), s, ...a), t), Ru = { init: () => ei({ readState: oe("No State required") }) }, ei = (t) => t, MT = (t, s) => {
|
|
21724
21724
|
const a = tt(s, (d) => _l(d.name(), [
|
|
21725
21725
|
ot("config"),
|
|
21726
21726
|
Re("state", Ru)
|
|
@@ -21838,7 +21838,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(tt(s, (a) => a.name),
|
|
|
21838
21838
|
}, Uy = (t, s) => {
|
|
21839
21839
|
const a = di(t, (c, d) => (c.length === 1 ? Fn.value(c[0].handler) : M1(c, s, d)).map((p) => {
|
|
21840
21840
|
const w = tp(p), C = c.length > 1 ? eo(s[d], (E) => ur(c, (O) => O.name === E)).join(" > ") : c[0].name;
|
|
21841
|
-
return
|
|
21841
|
+
return Rt(d, PT(w, C));
|
|
21842
21842
|
}));
|
|
21843
21843
|
return Po(a, {});
|
|
21844
21844
|
}, ni = "alloy.base.behaviour", Db = nn([
|
|
@@ -24137,8 +24137,8 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
24137
24137
|
d4,
|
|
24138
24138
|
vo(Qd)
|
|
24139
24139
|
]), at)] : []);
|
|
24140
|
-
},
|
|
24141
|
-
var Qe = v(De, Ru.init, Bt,
|
|
24140
|
+
}, $t = (t, s, a, c) => a.useSpace && !mh(t.element) ? [To(vo(Ri), ie)] : [];
|
|
24141
|
+
var Qe = v(De, Ru.init, Bt, $t, () => A.none());
|
|
24142
24142
|
const It = () => {
|
|
24143
24143
|
const t = to();
|
|
24144
24144
|
return ei({
|
|
@@ -25136,7 +25136,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
25136
25136
|
expansions: a
|
|
25137
25137
|
}), dR = (t, s) => ({
|
|
25138
25138
|
primary: t,
|
|
25139
|
-
menus:
|
|
25139
|
+
menus: Rt(t, s),
|
|
25140
25140
|
expansions: {}
|
|
25141
25141
|
}), Y7 = (t) => ({
|
|
25142
25142
|
value: Wt(q7()),
|
|
@@ -26849,7 +26849,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
26849
26849
|
processor: "object",
|
|
26850
26850
|
default: {}
|
|
26851
26851
|
}), c("toolbar", {
|
|
26852
|
-
processor: (p) => jn(p) || Q(p) ||
|
|
26852
|
+
processor: (p) => jn(p) || Q(p) || Dt(p) ? {
|
|
26853
26853
|
value: p,
|
|
26854
26854
|
valid: !0
|
|
26855
26855
|
} : {
|
|
@@ -26928,7 +26928,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
26928
26928
|
return wR.baseURL + "/skins/ui/" + a;
|
|
26929
26929
|
}
|
|
26930
26930
|
}, t_ = (t) => A.from(t.options.get("skin_url")), NR = (t) => t.options.get("line_height_formats").split(" "), n_ = (t) => {
|
|
26931
|
-
const s = KS(t), a = Q(s), c =
|
|
26931
|
+
const s = KS(t), a = Q(s), c = Dt(s) && s.length > 0;
|
|
26932
26932
|
return !Aw(t) && (c || a || s === !0);
|
|
26933
26933
|
}, Q4 = (t) => {
|
|
26934
26934
|
const s = ao(9, (c) => t.options.get("toolbar" + (c + 1))), a = eo(s, Q);
|
|
@@ -31138,10 +31138,10 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
31138
31138
|
let a = null, c = null;
|
|
31139
31139
|
return {
|
|
31140
31140
|
cancel: () => {
|
|
31141
|
-
|
|
31141
|
+
Cn(a) || (clearTimeout(a), a = null, c = null);
|
|
31142
31142
|
},
|
|
31143
31143
|
throttle: (...p) => {
|
|
31144
|
-
c = p,
|
|
31144
|
+
c = p, Cn(a) && (a = setTimeout(() => {
|
|
31145
31145
|
const w = c;
|
|
31146
31146
|
a = null, c = null, t.apply(null, w);
|
|
31147
31147
|
}, s));
|
|
@@ -31151,10 +31151,10 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
31151
31151
|
let a = null;
|
|
31152
31152
|
return {
|
|
31153
31153
|
cancel: () => {
|
|
31154
|
-
|
|
31154
|
+
Cn(a) || (clearTimeout(a), a = null);
|
|
31155
31155
|
},
|
|
31156
31156
|
throttle: (...g) => {
|
|
31157
|
-
|
|
31157
|
+
Cn(a) && (a = setTimeout(() => {
|
|
31158
31158
|
a = null, t.apply(null, g);
|
|
31159
31159
|
}, s));
|
|
31160
31160
|
}
|
|
@@ -31162,7 +31162,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
31162
31162
|
}, Q_ = (t, s) => {
|
|
31163
31163
|
let a = null;
|
|
31164
31164
|
const c = () => {
|
|
31165
|
-
|
|
31165
|
+
Cn(a) || (clearTimeout(a), a = null);
|
|
31166
31166
|
};
|
|
31167
31167
|
return {
|
|
31168
31168
|
cancel: c,
|
|
@@ -31569,7 +31569,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
31569
31569
|
const d = Wt("primary-menu"), g = IP(t, a.shared.providers.menuItems());
|
|
31570
31570
|
if (g.items.length === 0)
|
|
31571
31571
|
return A.none();
|
|
31572
|
-
const p = uH(c), w = xM(d, g.items, s, a, c.isHorizontalMenu, p), C = dH(c), E = Go(g.menus, (N, H) => xM(H, N, s, a, !1, C)), O = Zo(E,
|
|
31572
|
+
const p = uH(c), w = xM(d, g.items, s, a, c.isHorizontalMenu, p), C = dH(c), E = Go(g.menus, (N, H) => xM(H, N, s, a, !1, C)), O = Zo(E, Rt(d, w));
|
|
31573
31573
|
return A.from(jp.tieredData(d, O, g.expansions));
|
|
31574
31574
|
}, JA = (t) => !go(t, "items"), LP = "data-value", FP = (t, s, a, c) => tt(a, (d) => JA(d) ? {
|
|
31575
31575
|
type: "togglemenuitem",
|
|
@@ -31654,7 +31654,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
31654
31654
|
value: d.value,
|
|
31655
31655
|
innerHtml: d.text
|
|
31656
31656
|
}
|
|
31657
|
-
})), c = t.data.map((d) =>
|
|
31657
|
+
})), c = t.data.map((d) => Rt("initialValue", d)).getOr({});
|
|
31658
31658
|
return {
|
|
31659
31659
|
uid: t.uid,
|
|
31660
31660
|
dom: {
|
|
@@ -32226,7 +32226,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
32226
32226
|
styles: {}
|
|
32227
32227
|
} : {
|
|
32228
32228
|
classes: [s.closedClass],
|
|
32229
|
-
styles:
|
|
32229
|
+
styles: Rt(s.dimension.property, "0px")
|
|
32230
32230
|
});
|
|
32231
32231
|
},
|
|
32232
32232
|
events: (t, s) => Es([Hd(jg(), (a, c) => {
|
|
@@ -32716,7 +32716,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
32716
32716
|
setValue: (N, H) => {
|
|
32717
32717
|
rp(N.element, t.model.getDisplayText(H));
|
|
32718
32718
|
},
|
|
32719
|
-
...t.initialData.map((N) =>
|
|
32719
|
+
...t.initialData.map((N) => Rt("initialValue", N)).getOr({})
|
|
32720
32720
|
}
|
|
32721
32721
|
}),
|
|
32722
32722
|
Tn.config({
|
|
@@ -33823,7 +33823,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
33823
33823
|
}, _V = (t) => tt(eo(t, zB), CV), _D = (t) => tt(eo(t, SD), SV), UB = (t) => yV("h1,h2,h3,h4,h5,h6,a:not([href])", t), kV = (t) => BB(t.title).length > 0, TV = { find: (t) => {
|
|
33824
33824
|
const s = UB(t);
|
|
33825
33825
|
return eo(_V(s).concat(_D(s)), kV);
|
|
33826
|
-
} }, hk = "tinymce-url-history", kD = 5, WB = (t) => Q(t) && /^https?/.test(t), pk = (t) =>
|
|
33826
|
+
} }, hk = "tinymce-url-history", kD = 5, WB = (t) => Q(t) && /^https?/.test(t), pk = (t) => Dt(t) && t.length <= kD && vn(t, WB), ZB = (t) => Pe(t) && Qo(t, (s) => !pk(s)).isNone(), yx = () => {
|
|
33827
33827
|
const t = Yp.getItem(hk);
|
|
33828
33828
|
if (t === null)
|
|
33829
33829
|
return {};
|
|
@@ -37182,7 +37182,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
37182
37182
|
const xe = C.element;
|
|
37183
37183
|
g.mothership.broadcastOn([fd()], { target: xe }), bt(p, (pe) => {
|
|
37184
37184
|
pe.broadcastOn([fd()], { target: xe });
|
|
37185
|
-
}),
|
|
37185
|
+
}), Cn(Ds.whichView(C)) && (t.focus(), t.nodeChanged(), Ds.refreshToolbar(C));
|
|
37186
37186
|
}
|
|
37187
37187
|
}), t.addQueryValueHandler("ToggleView", () => {
|
|
37188
37188
|
var ce;
|
|
@@ -38535,7 +38535,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
38535
38535
|
const w = p.update(a);
|
|
38536
38536
|
if (Q(w) && ia(Vr(w)))
|
|
38537
38537
|
return RO(d, w.split(" "));
|
|
38538
|
-
if (
|
|
38538
|
+
if (Dt(w) && w.length > 0) {
|
|
38539
38539
|
const C = tt(w, l8);
|
|
38540
38540
|
return RO(d, C);
|
|
38541
38541
|
} else
|
|
@@ -39943,7 +39943,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
39943
39943
|
oa("onCancel", de),
|
|
39944
39944
|
oa("onClose", de),
|
|
39945
39945
|
oa("onMessage", de)
|
|
39946
|
-
]), wt = (t) => Ks("dialog", rt, t), Lt = (t) => Pe(t) ? [t].concat(_e(Gi(t), Lt)) :
|
|
39946
|
+
]), wt = (t) => Ks("dialog", rt, t), Lt = (t) => Pe(t) ? [t].concat(_e(Gi(t), Lt)) : Dt(t) ? _e(t, Lt) : [], Ze = (t) => Q(t.type) && Q(t.name), He = {
|
|
39947
39947
|
checkbox: E8,
|
|
39948
39948
|
colorinput: JZ,
|
|
39949
39949
|
colorpicker: tj,
|
|
@@ -40835,7 +40835,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
40835
40835
|
Ft.setValue(g, p.getData());
|
|
40836
40836
|
})
|
|
40837
40837
|
];
|
|
40838
|
-
}, Ve = (t, s) => dk(t, t.type, s), Qt = (t, s, a) => qe(s, (c) => c.name === a).bind((c) => c.memento.getOpt(t)),
|
|
40838
|
+
}, Ve = (t, s) => dk(t, t.type, s), Qt = (t, s, a) => qe(s, (c) => c.name === a).bind((c) => c.memento.getOpt(t)), Sn = (t, s) => {
|
|
40839
40839
|
const a = s.map((w) => w.footerButtons).getOr([]), c = el(a, (w) => w.align === "start"), d = (w, C) => lf.sketch({
|
|
40840
40840
|
dom: {
|
|
40841
40841
|
tag: "div",
|
|
@@ -40869,7 +40869,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
40869
40869
|
channel: `${WA}-${s}`,
|
|
40870
40870
|
initialData: t,
|
|
40871
40871
|
updateState: c,
|
|
40872
|
-
renderComponents:
|
|
40872
|
+
renderComponents: Sn
|
|
40873
40873
|
})])
|
|
40874
40874
|
};
|
|
40875
40875
|
}, Fc = (t, s, a) => Hr(t, s, a), Td = (t, s, a) => Gr.parts.footer(Hr(t, s, a)), Ha = (t, s) => {
|
|
@@ -41458,7 +41458,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
41458
41458
|
}, se = (i) => {
|
|
41459
41459
|
const m = typeof i;
|
|
41460
41460
|
return i === null ? "null" : m === "object" && Array.isArray(i) ? "array" : m === "object" && me(i, String, (h, v) => v.isPrototypeOf(h)) ? "string" : m;
|
|
41461
|
-
}, Ee = (i) => (m) => se(m) === i, fe = (i) => (m) => typeof m === i, G = (i) => (m) => i === m, Ae = Ee("string"), Q = Ee("object"), Pe = Ee("array"), it = G(null),
|
|
41461
|
+
}, Ee = (i) => (m) => se(m) === i, fe = (i) => (m) => typeof m === i, G = (i) => (m) => i === m, Ae = Ee("string"), Q = Ee("object"), Pe = Ee("array"), it = G(null), Dt = fe("boolean"), Cn = G(void 0), jn = (i) => i == null, Vo = (i) => !jn(i), Us = fe("function"), Oo = fe("number"), Mt = () => {
|
|
41462
41462
|
}, pr = (i, m) => (...h) => i(m.apply(null, h)), fn = (i, m) => (h) => i(m(h)), de = (i) => () => i, kt = (i) => i, ca = (i, m) => i === m;
|
|
41463
41463
|
function Qn(i, ...m) {
|
|
41464
41464
|
return (...h) => {
|
|
@@ -41692,7 +41692,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
41692
41692
|
const m = wr("ownerDocument.defaultView", i);
|
|
41693
41693
|
return Q(i) && (Gi(m).prototype.isPrototypeOf(i) || /^HTML\w*Element$/.test(Qo(i).constructor.name));
|
|
41694
41694
|
}, go = 8, Er = 9, Aa = 11, Bl = 1, Da = 3, es = (i) => i.dom.nodeName.toLowerCase(), tl = (i) => i.dom.nodeType, bl = (i) => (m) => tl(m) === i, Ko = (i) => tl(i) === go || es(i) === "#comment", gn = (i) => Ar(i) && vt(i.dom), Ar = bl(Bl), Nl = bl(Da), Hc = bl(Er), mi = bl(Aa), xr = (i) => (m) => Ar(m) && es(m) === i, dr = (i, m, h) => {
|
|
41695
|
-
if (Ae(h) ||
|
|
41695
|
+
if (Ae(h) || Dt(h) || Oo(h))
|
|
41696
41696
|
i.setAttribute(m, h + "");
|
|
41697
41697
|
else
|
|
41698
41698
|
throw console.error("Invalid call to Attribute.set. Key ", m, ":: Value ", h, ":: Element ", i), new Error("Attribute value was not simple");
|
|
@@ -41917,10 +41917,10 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
41917
41917
|
if (m == null)
|
|
41918
41918
|
throw new Error("Body is not available yet");
|
|
41919
41919
|
return Te.fromDom(m);
|
|
41920
|
-
}, re = (i, m, h) => ao(xc(i, h), m), Le = (i, m) => ao(Ao(i), m),
|
|
41920
|
+
}, re = (i, m, h) => ao(xc(i, h), m), Le = (i, m) => ao(Ao(i), m), Ot = (i, m) => {
|
|
41921
41921
|
let h = [];
|
|
41922
41922
|
return et(Ao(i), (v) => {
|
|
41923
|
-
m(v) && (h = h.concat([v])), h = h.concat(
|
|
41923
|
+
m(v) && (h = h.concat([v])), h = h.concat(Ot(v, m));
|
|
41924
41924
|
}), h;
|
|
41925
41925
|
}, Yn = (i, m, h) => re(i, (v) => qr(v, m), h), qt = (i, m) => Le(i, (h) => qr(h, m)), $s = (i, m) => Wu(m, i);
|
|
41926
41926
|
var lt = (i, m, h, v, _) => i(h, v) ? ge.some(h) : Us(_) && _(h) ? ge.none() : m(h, v, _);
|
|
@@ -41961,7 +41961,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
41961
41961
|
return m;
|
|
41962
41962
|
}, Dd = (i, m) => i != null ? m(i) : ge.none(), Rh = (i, m) => i ? ge.some(m) : ge.none(), $h = (i, m, h) => m === "" || i.length >= m.length && i.substr(h, h + m.length) === m, Mo = (i, m, h = 0, v) => {
|
|
41963
41963
|
const _ = i.indexOf(m, h);
|
|
41964
|
-
return _ !== -1 ?
|
|
41964
|
+
return _ !== -1 ? Cn(v) ? !0 : _ + m.length <= v : !1;
|
|
41965
41965
|
}, Wc = (i, m) => $h(i, m, 0), Qi = (i, m) => $h(i, m, i.length - m.length), ac = ((i) => (m) => m.replace(i, ""))(/^\s+|\s+$/g), xm = (i) => i.length > 0, co = (i) => {
|
|
41966
41966
|
const m = parseFloat(i);
|
|
41967
41967
|
return isNaN(m) ? ge.none() : ge.some(m);
|
|
@@ -42315,15 +42315,15 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
42315
42315
|
}), h += _;
|
|
42316
42316
|
}), m;
|
|
42317
42317
|
}, Zo = (i) => {
|
|
42318
|
-
const m = {}, h = [], _ = _e(i).map((
|
|
42318
|
+
const m = {}, h = [], _ = _e(i).map(($t) => $t.element).bind(sl).bind(rr).getOr({});
|
|
42319
42319
|
let D = 0, L = 0, Z = 0;
|
|
42320
42320
|
const {
|
|
42321
42321
|
pass: ee,
|
|
42322
42322
|
fail: ie
|
|
42323
|
-
} = ur(i, (
|
|
42324
|
-
et(ie, (
|
|
42323
|
+
} = ur(i, ($t) => $t.section === "colgroup");
|
|
42324
|
+
et(ie, ($t) => {
|
|
42325
42325
|
const Qe = [];
|
|
42326
|
-
et(
|
|
42326
|
+
et($t.cells, (It) => {
|
|
42327
42327
|
let Ye = 0;
|
|
42328
42328
|
for (; m[Gc(Z, Ye)] !== void 0; )
|
|
42329
42329
|
Ye++;
|
|
@@ -42334,12 +42334,12 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
42334
42334
|
m[Pc] = kn, L = Math.max(L, kr + 1);
|
|
42335
42335
|
}
|
|
42336
42336
|
Qe.push(kn);
|
|
42337
|
-
}), D++, h.push(ue(
|
|
42337
|
+
}), D++, h.push(ue($t.element, Qe, $t.section)), Z++;
|
|
42338
42338
|
});
|
|
42339
|
-
const { columns: De, colgroups: at } = vn(ee).map((
|
|
42340
|
-
const Qe = Vh(
|
|
42339
|
+
const { columns: De, colgroups: at } = vn(ee).map(($t) => {
|
|
42340
|
+
const Qe = Vh($t);
|
|
42341
42341
|
return {
|
|
42342
|
-
colgroups: [ss(
|
|
42342
|
+
colgroups: [ss($t.element, ps(Qe))],
|
|
42343
42343
|
columns: Qe
|
|
42344
42344
|
};
|
|
42345
42345
|
}).getOrThunk(() => ({
|
|
@@ -42604,8 +42604,8 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
42604
42604
|
return Lo(i.access, (De) => {
|
|
42605
42605
|
if (ee.push(De), m(De)) {
|
|
42606
42606
|
ie.push(De);
|
|
42607
|
-
const at = De.row, Bt = at + De.rowspan - 1,
|
|
42608
|
-
at < _ ? _ = at : Bt > L && (L = Bt),
|
|
42607
|
+
const at = De.row, Bt = at + De.rowspan - 1, $t = De.column, Qe = $t + De.colspan - 1;
|
|
42608
|
+
at < _ ? _ = at : Bt > L && (L = Bt), $t < D ? D = $t : Qe > Z && (Z = Qe);
|
|
42609
42609
|
}
|
|
42610
42610
|
}), Au(_, D, L, Z, ee, ie);
|
|
42611
42611
|
}, x = (i, m, h) => {
|
|
@@ -42636,7 +42636,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
42636
42636
|
et(ie, or), T(_, L, Z, h);
|
|
42637
42637
|
const De = Gn.fromTable(i), at = K(i, De, D, Z);
|
|
42638
42638
|
return V(v, Z, L, at), v;
|
|
42639
|
-
}, je = " ",
|
|
42639
|
+
}, je = " ", Rt = ((i, m) => {
|
|
42640
42640
|
const h = (D) => {
|
|
42641
42641
|
if (!i(D))
|
|
42642
42642
|
throw new Error("Can only get " + m + " value of a " + m + " node");
|
|
@@ -42651,7 +42651,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
42651
42651
|
D.dom.nodeValue = L;
|
|
42652
42652
|
}
|
|
42653
42653
|
};
|
|
42654
|
-
})(Nl, "text"), on = (i) =>
|
|
42654
|
+
})(Nl, "text"), on = (i) => Rt.get(i), Hn = (i) => Rt.getOption(i), ar = (i, m) => Rt.set(i, m), Po = (i) => es(i) === "img" ? 1 : Hn(i).fold(() => Ao(i).length, (m) => m.length), Bs = (i) => Hn(i).filter((m) => m.trim().length !== 0 || m.indexOf(je) > -1).isSome(), mc = (i) => gn(i) && Vr(i, "contenteditable") === "false", Gl = [
|
|
42655
42655
|
"img",
|
|
42656
42656
|
"br"
|
|
42657
42657
|
], Xc = (i) => Bs(i) || Gt(Gl, es(i)) || mc(i), Ld = (i) => Cr(i, Xc), cu = (i) => Ug(i, Xc), Ug = (i, m) => {
|
|
@@ -42921,7 +42921,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
42921
42921
|
}),
|
|
42922
42922
|
down: de({
|
|
42923
42923
|
selector: $s,
|
|
42924
|
-
predicate:
|
|
42924
|
+
predicate: Ot
|
|
42925
42925
|
}),
|
|
42926
42926
|
styles: de({
|
|
42927
42927
|
get: ga,
|
|
@@ -43137,27 +43137,27 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
43137
43137
|
], ti);
|
|
43138
43138
|
}, m = (Z, ee, ie, De) => {
|
|
43139
43139
|
const at = (100 + ie) / 100, Bt = Math.max(De, (Z[ee] + ie) / at);
|
|
43140
|
-
return ln(Z, (
|
|
43140
|
+
return ln(Z, ($t, Qe) => (Qe === ee ? Bt : $t / at) - $t);
|
|
43141
43141
|
}, h = (Z, ee, ie, De, at, Bt) => Bt ? m(Z, ee, De, at) : i(Z, ee, ie, De, at);
|
|
43142
43142
|
return {
|
|
43143
43143
|
resizeTable: (Z, ee) => Z(ee),
|
|
43144
43144
|
clampTableDelta: Tb,
|
|
43145
43145
|
calcLeftEdgeDeltas: h,
|
|
43146
|
-
calcMiddleDeltas: (Z, ee, ie, De, at, Bt,
|
|
43146
|
+
calcMiddleDeltas: (Z, ee, ie, De, at, Bt, $t) => h(Z, ie, De, at, Bt, $t),
|
|
43147
43147
|
calcRightEdgeDeltas: (Z, ee, ie, De, at, Bt) => {
|
|
43148
43148
|
if (Bt)
|
|
43149
43149
|
return m(Z, ie, De, at);
|
|
43150
43150
|
{
|
|
43151
|
-
const
|
|
43152
|
-
return ti(Z.slice(0, ie)).concat([
|
|
43151
|
+
const $t = Tb(Z, ie, De, at);
|
|
43152
|
+
return ti(Z.slice(0, ie)).concat([$t]);
|
|
43153
43153
|
}
|
|
43154
43154
|
},
|
|
43155
43155
|
calcRedestributedWidths: (Z, ee, ie, De) => {
|
|
43156
43156
|
if (De) {
|
|
43157
|
-
const Bt = (ee + ie) / ee,
|
|
43157
|
+
const Bt = (ee + ie) / ee, $t = ln(Z, (Qe) => Qe / Bt);
|
|
43158
43158
|
return {
|
|
43159
43159
|
delta: Bt * 100 - 100,
|
|
43160
|
-
newSizes:
|
|
43160
|
+
newSizes: $t
|
|
43161
43161
|
};
|
|
43162
43162
|
} else
|
|
43163
43163
|
return {
|
|
@@ -43183,7 +43183,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
43183
43183
|
if (ee >= 0)
|
|
43184
43184
|
return ee;
|
|
43185
43185
|
{
|
|
43186
|
-
const at = tt(L, (Bt,
|
|
43186
|
+
const at = tt(L, (Bt, $t) => Bt + $t - ie, 0);
|
|
43187
43187
|
return Math.max(-at, ee);
|
|
43188
43188
|
}
|
|
43189
43189
|
} else
|
|
@@ -43266,33 +43266,33 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
43266
43266
|
});
|
|
43267
43267
|
return ma(h), h;
|
|
43268
43268
|
}, $b = (i, m) => {
|
|
43269
|
-
const h = [], v = [], _ = (
|
|
43269
|
+
const h = [], v = [], _ = ($t) => ln($t, (Qe) => {
|
|
43270
43270
|
Qe.isNew && h.push(Qe.element);
|
|
43271
43271
|
const It = Qe.element;
|
|
43272
43272
|
return ma(It), et(Qe.cells, (Ye) => {
|
|
43273
43273
|
Ye.isNew && v.push(Ye.element), Ud(Ye.element, "colspan", Ye.colspan, 1), Ud(Ye.element, "rowspan", Ye.rowspan, 1), ns(It, Ye.element);
|
|
43274
43274
|
}), It;
|
|
43275
|
-
}), D = (
|
|
43276
|
-
const It = np(i, Qe), Jt = (Qe === "colgroup" ? D : _)(
|
|
43275
|
+
}), D = ($t) => os($t, (Qe) => ln(Qe.cells, (It) => (Ud(It.element, "span", It.colspan, 1), It.element))), L = ($t, Qe) => {
|
|
43276
|
+
const It = np(i, Qe), Jt = (Qe === "colgroup" ? D : _)($t);
|
|
43277
43277
|
Or(It, Jt);
|
|
43278
|
-
}, Z = (
|
|
43279
|
-
ho(i,
|
|
43280
|
-
}, ee = (
|
|
43281
|
-
|
|
43278
|
+
}, Z = ($t) => {
|
|
43279
|
+
ho(i, $t).each(or);
|
|
43280
|
+
}, ee = ($t, Qe) => {
|
|
43281
|
+
$t.length > 0 ? L($t, Qe) : Z(Qe);
|
|
43282
43282
|
}, ie = [], De = [], at = [], Bt = [];
|
|
43283
|
-
return et(m, (
|
|
43284
|
-
switch (
|
|
43283
|
+
return et(m, ($t) => {
|
|
43284
|
+
switch ($t.section) {
|
|
43285
43285
|
case "thead":
|
|
43286
|
-
ie.push(
|
|
43286
|
+
ie.push($t);
|
|
43287
43287
|
break;
|
|
43288
43288
|
case "tbody":
|
|
43289
|
-
De.push(
|
|
43289
|
+
De.push($t);
|
|
43290
43290
|
break;
|
|
43291
43291
|
case "tfoot":
|
|
43292
|
-
at.push(
|
|
43292
|
+
at.push($t);
|
|
43293
43293
|
break;
|
|
43294
43294
|
case "colgroup":
|
|
43295
|
-
Bt.push(
|
|
43295
|
+
Bt.push($t);
|
|
43296
43296
|
break;
|
|
43297
43297
|
}
|
|
43298
43298
|
}), ee(Bt, "colgroup"), ee(ie, "thead"), ee(De, "tbody"), ee(at, "tfoot"), {
|
|
@@ -43358,7 +43358,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
43358
43358
|
}, ml = (i, m, h, v, _) => (D, L, Z, ee) => {
|
|
43359
43359
|
const ie = Gn.fromTable(D), De = ge.from(ee == null ? void 0 : ee.section).getOrThunk(Pf.fallback);
|
|
43360
43360
|
return m(ie, L).map((Bt) => {
|
|
43361
|
-
const
|
|
43361
|
+
const $t = sa(ie, Z), Qe = i($t, Bt, ts, _(Z), De), It = Wr(Qe.grid), Ye = lr(Qe.grid);
|
|
43362
43362
|
return {
|
|
43363
43363
|
info: Bt,
|
|
43364
43364
|
grid: Ye,
|
|
@@ -43366,15 +43366,15 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
43366
43366
|
lockedColumns: It
|
|
43367
43367
|
};
|
|
43368
43368
|
}).bind((Bt) => {
|
|
43369
|
-
const
|
|
43369
|
+
const $t = $b(D, Bt.grid), Qe = ge.from(ee == null ? void 0 : ee.sizing).getOrThunk(() => jl.getTableSize(D)), It = ge.from(ee == null ? void 0 : ee.resize).getOrThunk(zy);
|
|
43370
43370
|
return h(D, Bt.grid, Bt.info, {
|
|
43371
43371
|
sizing: Qe,
|
|
43372
43372
|
resize: It,
|
|
43373
43373
|
section: De
|
|
43374
43374
|
}), v(D), Is(D, Ju), Bt.lockedColumns.length > 0 && Ws(D, Ju, Bt.lockedColumns.join(",")), ge.some({
|
|
43375
43375
|
cursor: Bt.cursor,
|
|
43376
|
-
newRows:
|
|
43377
|
-
newCells:
|
|
43376
|
+
newRows: $t.newRows,
|
|
43377
|
+
newCells: $t.newCells
|
|
43378
43378
|
});
|
|
43379
43379
|
});
|
|
43380
43380
|
}, P1 = (i, m) => Cm(m.element).bind((h) => ki(i, h).map((v) => ({
|
|
@@ -43517,16 +43517,16 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
43517
43517
|
return i.length > 1 && zl(L) > 1 && (h > 0 && D(mr(L, h - 1)) || h < L.cells.length - 1 && D(mr(L, h + 1)) || m > 0 && D(mr(i[m - 1], h)) || m < i.length - 1 && D(mr(i[m + 1], h)));
|
|
43518
43518
|
}, Bb = (i, m, h, v, _, D) => {
|
|
43519
43519
|
const L = i.row, Z = i.column, ee = h.length, ie = zl(h[0]), De = L + ee, at = Z + ie + D.length, Bt = qe(D, We);
|
|
43520
|
-
for (let
|
|
43520
|
+
for (let $t = L; $t < De; $t++) {
|
|
43521
43521
|
let Qe = 0;
|
|
43522
43522
|
for (let It = Z; It < at; It++) {
|
|
43523
43523
|
if (Bt[It]) {
|
|
43524
43524
|
Qe++;
|
|
43525
43525
|
continue;
|
|
43526
43526
|
}
|
|
43527
|
-
iC(m,
|
|
43528
|
-
const Ye = It - Z - Qe, Jt = pa(h[
|
|
43529
|
-
Pd(m[
|
|
43527
|
+
iC(m, $t, It, _) && ql(m, mr(m[$t], It), _, v.cell);
|
|
43528
|
+
const Ye = It - Z - Qe, Jt = pa(h[$t - L], Ye), kn = Jt.element, Un = v.replace(kn);
|
|
43529
|
+
Pd(m[$t], It, Ne(Un, !0, Jt.isLocked));
|
|
43530
43530
|
}
|
|
43531
43531
|
}
|
|
43532
43532
|
return m;
|
|
@@ -43542,7 +43542,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
43542
43542
|
const at = {
|
|
43543
43543
|
...De,
|
|
43544
43544
|
colDelta: De.colDelta - ee.length
|
|
43545
|
-
}, Bt = ip(m, at, v),
|
|
43545
|
+
}, Bt = ip(m, at, v), $t = Wr(Bt), Qe = Ti(L, Z, $t);
|
|
43546
43546
|
return Bb(L, Bt, Z, v, _, Qe);
|
|
43547
43547
|
});
|
|
43548
43548
|
}, Nb = (i, m, h, v, _) => {
|
|
@@ -43557,10 +43557,10 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
43557
43557
|
}, ee = ip(m, Z, v), {
|
|
43558
43558
|
cols: ie,
|
|
43559
43559
|
rows: De
|
|
43560
|
-
} = $r(ee), at = Wr(ee), Bt = lp(h, m),
|
|
43560
|
+
} = $r(ee), at = Wr(ee), Bt = lp(h, m), $t = {
|
|
43561
43561
|
...Bt,
|
|
43562
43562
|
colDelta: Bt.colDelta + at.length
|
|
43563
|
-
}, Qe = cC(h, v, at), It = ip(Qe,
|
|
43563
|
+
}, Qe = cC(h, v, at), It = ip(Qe, $t, v);
|
|
43564
43564
|
return [
|
|
43565
43565
|
...ie,
|
|
43566
43566
|
...De.slice(0, i),
|
|
@@ -43602,8 +43602,8 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
43602
43602
|
return ln(i, (ee, ie) => Hh(ee, (De, at) => {
|
|
43603
43603
|
if (Z(De)) {
|
|
43604
43604
|
const Bt = L(De, ie, at) ? _(De, h, v) : De;
|
|
43605
|
-
return D(Bt, ie, at).each((
|
|
43606
|
-
qi(Bt.element, { scope: ge.from(
|
|
43605
|
+
return D(Bt, ie, at).each(($t) => {
|
|
43606
|
+
qi(Bt.element, { scope: ge.from($t) });
|
|
43607
43607
|
}), Bt;
|
|
43608
43608
|
} else
|
|
43609
43609
|
return De;
|
|
@@ -43619,11 +43619,11 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
|
|
|
43619
43619
|
et(m, (Ye) => {
|
|
43620
43620
|
Bt[Ye] = L.transformRow(ee[Ye], h);
|
|
43621
43621
|
});
|
|
43622
|
-
const
|
|
43622
|
+
const $t = [
|
|
43623
43623
|
...Z,
|
|
43624
43624
|
...Bt
|
|
43625
43625
|
], Qe = eh(ie, at), It = mC(v, at);
|
|
43626
|
-
return oh(
|
|
43626
|
+
return oh($t, De, _, D, L.transformCell, It, Qe);
|
|
43627
43627
|
}, Lb = (i, m, h, v) => {
|
|
43628
43628
|
const _ = $r(i).rows, D = ln(m, (L) => pa(_[L.row], L.column));
|
|
43629
43629
|
return oh(i, D, h, v, Lf, ge.none, We);
|
|
@@ -43697,7 +43697,7 @@ Required: ` + m.join(", "));
|
|
|
43697
43697
|
]
|
|
43698
43698
|
}
|
|
43699
43699
|
]) }, hC = (i, m) => i.length === 0 ? dp.none() : i.length === 1 ? dp.only(0) : m === 0 ? dp.left(0, 1) : m === i.length - 1 ? dp.right(m - 1, m) : m > 0 && m < i.length - 1 ? dp.middle(m - 1, m, m + 1) : dp.none(), WT = (i, m, h, v, _) => {
|
|
43700
|
-
const D = i.slice(0), L = hC(i, m), Z = de(ln(D, de(0))), ee = (Bt) => v.singleColumnWidth(D[Bt], h), ie = (Bt,
|
|
43700
|
+
const D = i.slice(0), L = hC(i, m), Z = de(ln(D, de(0))), ee = (Bt) => v.singleColumnWidth(D[Bt], h), ie = (Bt, $t) => _.calcLeftEdgeDeltas(D, Bt, $t, h, v.minCellWidth(), v.isRelative), De = (Bt, $t, Qe) => _.calcMiddleDeltas(D, Bt, $t, Qe, h, v.minCellWidth(), v.isRelative), at = (Bt, $t) => _.calcRightEdgeDeltas(D, Bt, $t, h, v.minCellWidth(), v.isRelative);
|
|
43701
43701
|
return L.fold(Z, ee, ie, De, at);
|
|
43702
43702
|
}, N1 = (i, m, h) => {
|
|
43703
43703
|
let v = 0;
|
|
@@ -43740,7 +43740,7 @@ Required: ` + m.join(", "));
|
|
|
43740
43740
|
h.setElementWidth(_.element, _.width);
|
|
43741
43741
|
});
|
|
43742
43742
|
}, I1 = (i, m, h, v, _) => {
|
|
43743
|
-
const D = Gn.fromTable(i), L = _.getCellDelta(m), Z = _.getWidths(D, _), ee = h === D.grid.columns - 1, ie = v.clampTableDelta(Z, h, L, _.minCellWidth(), ee), De = WT(Z, h, ie, _, v), at = ln(De, (Bt,
|
|
43743
|
+
const D = Gn.fromTable(i), L = _.getCellDelta(m), Z = _.getWidths(D, _), ee = h === D.grid.columns - 1, ie = v.clampTableDelta(Z, h, L, _.minCellWidth(), ee), De = WT(Z, h, ie, _, v), at = ln(De, (Bt, $t) => Bt + Z[$t]);
|
|
43744
43744
|
ls(D, at, _), v.resizeTable(_.adjustTableWidth, ie, ee);
|
|
43745
43745
|
}, Yy = (i, m, h, v) => {
|
|
43746
43746
|
const _ = Gn.fromTable(i), D = Re(_, i, v), L = ln(D, (De, at) => h === at ? Math.max(m + De, kc()) : De), Z = xo(_, L), ee = ri(_, L);
|
|
@@ -44076,11 +44076,11 @@ Required: ` + m.join(", "));
|
|
|
44076
44076
|
effect: em
|
|
44077
44077
|
}));
|
|
44078
44078
|
}) : ge.none();
|
|
44079
|
-
}, at = De(xC, _, Mt, to), Bt = De(Ai, D, Mt, to),
|
|
44079
|
+
}, at = De(xC, _, Mt, to), Bt = De(Ai, D, Mt, to), $t = De(U1, We, Mt, to), Qe = De(qd, We, Mt, to), It = De(Mu, We, Z, to), Ye = De(Vt, We, Z, to), Jt = De(JT, We, Mt, to), kn = De(Yl, We, Mt, to), Un = De(QT, We, Mt, to), Gs = De(eE, We, Mt, to), ka = De(f2, We, Mt, to), kr = De(tE, We, Mt, to), Pc = De(W1, We, Mt, p2), fh = De(XT, We, Mt, to), gh = De(m2, We, Mt, to), uw = De(CC, We, Mt, to), Tv = De(i2, We, Mt, to), ds = De(SC, We, Mt, to), Ql = De(u2, We, Mt, to), hl = De(d2, We, Mt, to);
|
|
44080
44080
|
return {
|
|
44081
44081
|
deleteRow: at,
|
|
44082
44082
|
deleteColumn: Bt,
|
|
44083
|
-
insertRowsBefore:
|
|
44083
|
+
insertRowsBefore: $t,
|
|
44084
44084
|
insertRowsAfter: Qe,
|
|
44085
44085
|
insertColumnsBefore: It,
|
|
44086
44086
|
insertColumnsAfter: Ye,
|
|
@@ -44136,7 +44136,7 @@ Required: ` + m.join(", "));
|
|
|
44136
44136
|
const v = Gn.fromTable(i);
|
|
44137
44137
|
return Bf(v, m).bind((D) => {
|
|
44138
44138
|
const L = op(v, h, !1), ee = $r(L).rows.slice(D[0].row, D[D.length - 1].row + D[D.length - 1].rowspan), ie = os(ee, (at) => {
|
|
44139
|
-
const Bt = ao(at.cells, (
|
|
44139
|
+
const Bt = ao(at.cells, ($t) => !$t.isLocked);
|
|
44140
44140
|
return Bt.length > 0 ? [{
|
|
44141
44141
|
...at,
|
|
44142
44142
|
cells: Bt
|
|
@@ -44257,10 +44257,10 @@ Required: ` + m.join(", "));
|
|
|
44257
44257
|
Pa(L, D.styles), vl(L, D.attributes), D.colGroups && ns(L, fE(m));
|
|
44258
44258
|
const ee = Math.min(i, h);
|
|
44259
44259
|
if (Z && h > 0) {
|
|
44260
|
-
const
|
|
44261
|
-
ns(L,
|
|
44260
|
+
const $t = Te.fromTag("thead");
|
|
44261
|
+
ns(L, $t);
|
|
44262
44262
|
const It = x2(h, m, _ === "sectionCells" ? ee : 0, v);
|
|
44263
|
-
Or(
|
|
44263
|
+
Or($t, It);
|
|
44264
44264
|
}
|
|
44265
44265
|
const ie = Te.fromTag("tbody");
|
|
44266
44266
|
ns(L, ie);
|
|
@@ -44356,7 +44356,7 @@ Required: ` + m.join(", "));
|
|
|
44356
44356
|
}), Bt = () => L((Ye, Jt) => {
|
|
44357
44357
|
const kn = qh(iu(i), Ye, Jt), Un = ya(Mt, Te.fromDom(i.getDoc()), ge.none());
|
|
44358
44358
|
return aE(Ye, kn, Un);
|
|
44359
|
-
}),
|
|
44359
|
+
}), $t = () => L((Ye, Jt) => {
|
|
44360
44360
|
const kn = qh(iu(i), Ye, Jt);
|
|
44361
44361
|
return rE(Ye, kn);
|
|
44362
44362
|
}), Qe = (Ye, Jt) => Jt().each((kn) => {
|
|
@@ -44377,13 +44377,13 @@ Required: ` + m.join(", "));
|
|
|
44377
44377
|
mceTableInsertColAfter: () => at(m.insertColumnsAfter),
|
|
44378
44378
|
mceTableDeleteCol: () => at(m.deleteColumn),
|
|
44379
44379
|
mceTableDeleteRow: () => at(m.deleteRow),
|
|
44380
|
-
mceTableCutCol: () =>
|
|
44380
|
+
mceTableCutCol: () => $t().each((Ye) => {
|
|
44381
44381
|
T2(Ye), at(m.deleteColumn);
|
|
44382
44382
|
}),
|
|
44383
44383
|
mceTableCutRow: () => Bt().each((Ye) => {
|
|
44384
44384
|
Jb(Ye), at(m.deleteRow);
|
|
44385
44385
|
}),
|
|
44386
|
-
mceTableCopyCol: () =>
|
|
44386
|
+
mceTableCopyCol: () => $t().each((Ye) => T2(Ye)),
|
|
44387
44387
|
mceTableCopyRow: () => Bt().each((Ye) => Jb(Ye)),
|
|
44388
44388
|
mceTablePasteColBefore: () => Qe(m.pasteColsBefore, FC),
|
|
44389
44389
|
mceTablePasteColAfter: () => Qe(m.pasteColsAfter, FC),
|
|
@@ -44711,12 +44711,12 @@ Required: ` + m.join(", "));
|
|
|
44711
44711
|
const _ = $p(), D = _.clear, L = (De) => {
|
|
44712
44712
|
_.on((at) => {
|
|
44713
44713
|
v.clearBeforeUpdate(m), cv(De.target, h).each((Bt) => {
|
|
44714
|
-
Ou(at, Bt, h).each((
|
|
44715
|
-
const Qe =
|
|
44714
|
+
Ou(at, Bt, h).each(($t) => {
|
|
44715
|
+
const Qe = $t.boxes.getOr([]);
|
|
44716
44716
|
if (Qe.length === 1) {
|
|
44717
44717
|
const It = Qe[0], Ye = k1(It) === "false", Jt = pi(hb(De.target), It, ts);
|
|
44718
44718
|
Ye && Jt && (v.selectRange(m, Qe, It, It), i.selectContents(It));
|
|
44719
|
-
} else Qe.length > 1 && (v.selectRange(m, Qe,
|
|
44719
|
+
} else Qe.length > 1 && (v.selectRange(m, Qe, $t.start, $t.finish), i.selectContents(Bt));
|
|
44720
44720
|
});
|
|
44721
44721
|
});
|
|
44722
44722
|
});
|
|
@@ -44929,25 +44929,25 @@ Required: ` + m.join(", "));
|
|
|
44929
44929
|
}, bv = (i) => Ua(i, gn).exists(Of), d0 = (i, m) => bv(i) || bv(m), vv = (i, m, h, v) => {
|
|
44930
44930
|
const _ = Np(i), D = () => (v.clear(m), ge.none());
|
|
44931
44931
|
return {
|
|
44932
|
-
keydown: (ee, ie, De, at, Bt,
|
|
44932
|
+
keydown: (ee, ie, De, at, Bt, $t) => {
|
|
44933
44933
|
const Qe = ee.raw, It = Qe.which, Ye = Qe.shiftKey === !0;
|
|
44934
44934
|
return Lm(m, v.selectedSelector).fold(() => (uh(It) && !Ye && v.clearBeforeUpdate(m), uh(It) && Ye && !d0(ie, at) ? ge.none : dv(It) && Ye ? Qn(nS, _, m, h, iv, at, ie, v.selectRange) : uv(It) && Ye ? Qn(nS, _, m, h, Mp, at, ie, v.selectRange) : dv(It) ? Qn(fd, _, h, iv, at, ie, z2) : uv(It) ? Qn(fd, _, h, Mp, at, ie, ih) : ge.none), (kn) => {
|
|
44935
44935
|
const Un = (Gs) => () => jo(Gs, (kr) => RE(kr.rows, kr.cols, m, kn, v)).fold(() => Kg(m, v.firstSelectedSelector, v.lastSelectedSelector).map((kr) => {
|
|
44936
|
-
const Pc = dv(It) ||
|
|
44936
|
+
const Pc = dv(It) || $t.isForward(It) ? qa.after : qa.before;
|
|
44937
44937
|
return _.setRelativeSelection(qa.on(kr.first, 0), Pc(kr.table)), v.clear(m), Cp.create(ge.none(), !0);
|
|
44938
44938
|
}), (kr) => ge.some(Cp.create(ge.none(), !0)));
|
|
44939
|
-
return uh(It) && Ye && !d0(ie, at) ? ge.none : dv(It) && Ye ? Un([gl(1, 0)]) : uv(It) && Ye ? Un([gl(-1, 0)]) :
|
|
44939
|
+
return uh(It) && Ye && !d0(ie, at) ? ge.none : dv(It) && Ye ? Un([gl(1, 0)]) : uv(It) && Ye ? Un([gl(-1, 0)]) : $t.isBackward(It) && Ye ? Un([
|
|
44940
44940
|
gl(0, -1),
|
|
44941
44941
|
gl(-1, 0)
|
|
44942
|
-
]) :
|
|
44942
|
+
]) : $t.isForward(It) && Ye ? Un([
|
|
44943
44943
|
gl(0, 1),
|
|
44944
44944
|
gl(1, 0)
|
|
44945
44945
|
]) : uh(It) && !Ye ? D : ge.none;
|
|
44946
44946
|
})();
|
|
44947
44947
|
},
|
|
44948
44948
|
keyup: (ee, ie, De, at, Bt) => Lm(m, v.selectedSelector).fold(() => {
|
|
44949
|
-
const
|
|
44950
|
-
return
|
|
44949
|
+
const $t = ee.raw, Qe = $t.which;
|
|
44950
|
+
return $t.shiftKey === !0 && uh(Qe) && d0(ie, at) ? tv(m, h, ie, De, at, Bt, v.selectRange) : ge.none();
|
|
44951
44951
|
}, ge.none)
|
|
44952
44952
|
};
|
|
44953
44953
|
}, m0 = (i, m, h, v) => {
|
|
@@ -45081,7 +45081,7 @@ Required: ` + m.join(", "));
|
|
|
45081
45081
|
}, GE = We, Lp = (i, m, h) => Q2(i, m, GE, h), Fp = X2, tw = (i) => !Mc(Te.fromDom(i.target), "ephox-snooker-resizer-bar"), nw = (i, m) => {
|
|
45082
45082
|
const h = Y2(() => Te.fromDom(i.getBody()), () => $1(_i(i), Fd(i)), Yg.selectedSelector), v = (ee, ie, De) => {
|
|
45083
45083
|
sl(ie).each((Bt) => {
|
|
45084
|
-
const
|
|
45084
|
+
const $t = Bm(i), Qe = ya(Mt, Te.fromDom(i.getDoc()), $t), It = iu(i), Ye = Jm(Bt, { selection: It }, Qe);
|
|
45085
45085
|
nE(i, ee, ie, De, Ye);
|
|
45086
45086
|
});
|
|
45087
45087
|
}, _ = () => oE(i), D = Xm.byAttr(Yg, v, _);
|
|
@@ -45092,7 +45092,7 @@ Required: ` + m.join(", "));
|
|
|
45092
45092
|
Ql,
|
|
45093
45093
|
hl
|
|
45094
45094
|
]).fold(() => D.clear(De), Mt);
|
|
45095
|
-
},
|
|
45095
|
+
}, $t = Yr(ie, De, at, D), Qe = vv(ie, De, at, D), It = m0(ie, De, at, D), Ye = (ds) => ds.raw.shiftKey === !0;
|
|
45096
45096
|
i.on("TableSelectorChange", (ds) => It(ds.start, ds.finish));
|
|
45097
45097
|
const Jt = (ds, Ql) => {
|
|
45098
45098
|
Ye(ds) && (Ql.kill && ds.kill(), Ql.selection.each((hl) => {
|
|
@@ -45115,13 +45115,13 @@ Required: ` + m.join(", "));
|
|
|
45115
45115
|
Jt(Ql, pc);
|
|
45116
45116
|
}), m.show();
|
|
45117
45117
|
}, Gs = (ds) => ds.button === 0, ka = (ds) => ds.buttons === void 0 ? !0 : (ds.buttons & 1) !== 0, kr = (ds) => {
|
|
45118
|
-
|
|
45118
|
+
$t.clearstate();
|
|
45119
45119
|
}, Pc = (ds) => {
|
|
45120
|
-
Gs(ds) && tw(ds) &&
|
|
45120
|
+
Gs(ds) && tw(ds) && $t.mousedown(Fp(ds));
|
|
45121
45121
|
}, fh = (ds) => {
|
|
45122
|
-
ka(ds) && tw(ds) &&
|
|
45122
|
+
ka(ds) && tw(ds) && $t.mouseover(Fp(ds));
|
|
45123
45123
|
}, gh = (ds) => {
|
|
45124
|
-
Gs(ds) && tw(ds) &&
|
|
45124
|
+
Gs(ds) && tw(ds) && $t.mouseup(Fp(ds));
|
|
45125
45125
|
}, Tv = (() => {
|
|
45126
45126
|
const ds = a0(Te.fromDom(De)), Ql = a0(0);
|
|
45127
45127
|
return { touchEnd: (Mi) => {
|
|
@@ -45291,13 +45291,13 @@ Required: ` + m.join(", "));
|
|
|
45291
45291
|
v = !0;
|
|
45292
45292
|
}, at = () => {
|
|
45293
45293
|
v = !1;
|
|
45294
|
-
}, Bt = () => v,
|
|
45294
|
+
}, Bt = () => v, $t = (Ye) => (...Jt) => {
|
|
45295
45295
|
v && Ye.apply(null, Jt);
|
|
45296
45296
|
}, Qe = m.sink(XE({
|
|
45297
45297
|
forceDrop: L,
|
|
45298
|
-
drop:
|
|
45299
|
-
move:
|
|
45300
|
-
delayDrop:
|
|
45298
|
+
drop: $t(L),
|
|
45299
|
+
move: $t(ie),
|
|
45300
|
+
delayDrop: $t(Z.throttle)
|
|
45301
45301
|
}), h), It = () => {
|
|
45302
45302
|
Qe.destroy();
|
|
45303
45303
|
};
|
|
@@ -45446,9 +45446,9 @@ Required: ` + m.join(", "));
|
|
|
45446
45446
|
return mu(L, rw), L;
|
|
45447
45447
|
});
|
|
45448
45448
|
}, l4 = (i, m, h, v, _) => {
|
|
45449
|
-
const D = Kt(h), L = m.isResizable, Z = v.length > 0 ? Zt.positions(v, h) : [], ee = Z.length > 0 ? s4(i, L) : [], ie = ao(Z, (
|
|
45449
|
+
const D = Kt(h), L = m.isResizable, Z = v.length > 0 ? Zt.positions(v, h) : [], ee = Z.length > 0 ? s4(i, L) : [], ie = ao(Z, ($t, Qe) => nt(ee, (It) => Qe === It));
|
|
45450
45450
|
a4(m, ie, D, Ci(h));
|
|
45451
|
-
const De = _.length > 0 ? Mr.positions(_, h) : [], at = De.length > 0 ? r4(i, L) : [], Bt = ao(De, (
|
|
45451
|
+
const De = _.length > 0 ? Mr.positions(_, h) : [], at = De.length > 0 ? r4(i, L) : [], Bt = ao(De, ($t, Qe) => nt(at, (It) => Qe === It));
|
|
45452
45452
|
SS(m, Bt, D, S(h));
|
|
45453
45453
|
}, Cv = (i, m) => {
|
|
45454
45454
|
if (Hp(i), i.isResizable(m)) {
|
|
@@ -45488,16 +45488,16 @@ Required: ` + m.join(", "));
|
|
|
45488
45488
|
v.each((It) => {
|
|
45489
45489
|
_(Qe, "data-row").each((Ye) => {
|
|
45490
45490
|
const Jt = D(Qe, "top");
|
|
45491
|
-
Is(Qe, "data-initial-top"),
|
|
45491
|
+
Is(Qe, "data-initial-top"), $t.trigger.adjustHeight(It, Jt, parseInt(Ye, 10));
|
|
45492
45492
|
}), _(Qe, "data-column").each((Ye) => {
|
|
45493
45493
|
const Jt = D(Qe, "left");
|
|
45494
|
-
Is(Qe, "data-initial-left"),
|
|
45494
|
+
Is(Qe, "data-initial-left"), $t.trigger.adjustWidth(It, Jt, parseInt(Ye, 10));
|
|
45495
45495
|
}), Cv(i, It);
|
|
45496
45496
|
});
|
|
45497
45497
|
});
|
|
45498
45498
|
});
|
|
45499
45499
|
const L = (Qe, It) => {
|
|
45500
|
-
|
|
45500
|
+
$t.trigger.startAdjust(), m.assign(Qe), Ws(Qe, "data-initial-" + It, Ur(Qe, It)), mu(Qe, Qd), js(Qe, "opacity", "0.2"), h.go(i.parent());
|
|
45501
45501
|
}, Z = Lp(i.parent(), "mousedown", (Qe) => {
|
|
45502
45502
|
c4(Qe.target) && L(Qe.target, "top"), ef(Qe.target) && L(Qe.target, "left");
|
|
45503
45503
|
}), ee = (Qe) => ts(Qe, i.view()), ie = (Qe) => Ms(Qe, "table", ee).filter(Of), De = Lp(i.view(), "mouseover", (Qe) => {
|
|
@@ -45510,7 +45510,7 @@ Required: ` + m.join(", "));
|
|
|
45510
45510
|
Z.unbind(), De.unbind(), h.destroy(), Hp(i);
|
|
45511
45511
|
}, Bt = (Qe) => {
|
|
45512
45512
|
Cv(i, Qe);
|
|
45513
|
-
},
|
|
45513
|
+
}, $t = Jf({
|
|
45514
45514
|
adjustHeight: Iu([
|
|
45515
45515
|
"table",
|
|
45516
45516
|
"delta",
|
|
@@ -45530,7 +45530,7 @@ Required: ` + m.join(", "));
|
|
|
45530
45530
|
off: h.off,
|
|
45531
45531
|
hideBars: Qn(Sv, i),
|
|
45532
45532
|
showBars: Qn(Bo, i),
|
|
45533
|
-
events:
|
|
45533
|
+
events: $t.registry
|
|
45534
45534
|
};
|
|
45535
45535
|
}, kv = { create: (i, m, h) => {
|
|
45536
45536
|
const v = Zt, _ = Mr, D = _v(i), L = Jf({
|
|
@@ -45701,7 +45701,7 @@ Required: ` + m.join(", "));
|
|
|
45701
45701
|
}, se = (S) => {
|
|
45702
45702
|
const $ = typeof S;
|
|
45703
45703
|
return S === null ? "null" : $ === "object" && Array.isArray(S) ? "array" : $ === "object" && me(S, String, (U, ae) => ae.isPrototypeOf(U)) ? "string" : $;
|
|
45704
|
-
}, Ee = (S) => ($) => se($) === S, fe = (S) => ($) => typeof $ === S, G = Ee("string"), Ae = Ee("object"), Q = Ee("array"), Pe = fe("boolean"), it = (S) => S == null,
|
|
45704
|
+
}, Ee = (S) => ($) => se($) === S, fe = (S) => ($) => typeof $ === S, G = Ee("string"), Ae = Ee("object"), Q = Ee("array"), Pe = fe("boolean"), it = (S) => S == null, Dt = (S) => !it(S), Cn = fe("function"), jn = fe("number"), Vo = () => {
|
|
45705
45705
|
}, Us = (S, $) => (U) => S($(U)), Oo = (S) => () => S, Mt = (S, $) => S === $;
|
|
45706
45706
|
function pr(S, ...$) {
|
|
45707
45707
|
return (...U) => {
|
|
@@ -45762,7 +45762,7 @@ Required: ` + m.join(", "));
|
|
|
45762
45762
|
throw new Error($ ?? "Called getOrDie on None");
|
|
45763
45763
|
}
|
|
45764
45764
|
static from($) {
|
|
45765
|
-
return
|
|
45765
|
+
return Dt($) ? kt.some($) : kt.none();
|
|
45766
45766
|
}
|
|
45767
45767
|
getOrNull() {
|
|
45768
45768
|
return this.tag ? this.value : null;
|
|
@@ -45843,7 +45843,7 @@ Required: ` + m.join(", "));
|
|
|
45843
45843
|
const $ = ca.call(S, 0);
|
|
45844
45844
|
return $.reverse(), $;
|
|
45845
45845
|
}, et = (S, $) => $ >= 0 && $ < S.length ? kt.some(S[$]) : kt.none(), Io = (S) => et(S, 0), ur = (S) => et(S, S.length - 1), ao = (S, $) => {
|
|
45846
|
-
const U = [], ae =
|
|
45846
|
+
const U = [], ae = Cn($) ? (he) => Bn(U, (ct) => $(ct, he)) : (he) => is(U, he);
|
|
45847
45847
|
for (let he = 0, ct = S.length; he < ct; he++) {
|
|
45848
45848
|
const Kt = S[he];
|
|
45849
45849
|
ae(Kt) || U.push(Kt);
|
|
@@ -45910,7 +45910,7 @@ Required: ` + m.join(", "));
|
|
|
45910
45910
|
}, us = (S) => S.dom.nodeName.toLowerCase(), Go = (S) => S.dom.nodeType, wc = (S) => ($) => Go($) === S, Xn = (S) => Go(S) === z || us(S) === "#comment", bs = (S) => wr(S) && ji(S.dom), wr = wc(os), Pl = wc(zo), di = wc(el), Qo = wc(eo), Gi = (S) => ($) => wr($) && us($) === S, vt = (S) => vn.fromDom(S.dom.ownerDocument), go = (S) => di(S) ? S : vt(S), Er = (S) => kt.from(S.dom.parentNode).map(vn.fromDom), Aa = (S) => kt.from(S.dom.parentElement).map(vn.fromDom), Bl = (S) => kt.from(S.dom.nextSibling).map(vn.fromDom), Da = (S) => We(S.dom.childNodes, vn.fromDom), es = (S, $) => {
|
|
45911
45911
|
const U = S.dom.childNodes;
|
|
45912
45912
|
return kt.from(U[$]).map(vn.fromDom);
|
|
45913
|
-
}, tl = (S) => es(S, 0), bl = (S) => es(S, S.dom.childNodes.length - 1), Ko = (S) => Qo(S) &&
|
|
45913
|
+
}, tl = (S) => es(S, 0), bl = (S) => es(S, S.dom.childNodes.length - 1), Ko = (S) => Qo(S) && Dt(S.dom.host), Ar = Cn(Element.prototype.attachShadow) && Cn(Node.prototype.getRootNode) ? (S) => vn.fromDom(S.dom.getRootNode()) : go, Nl = (S) => {
|
|
45914
45914
|
const $ = Ar(S);
|
|
45915
45915
|
return Ko($) ? kt.some($) : kt.none();
|
|
45916
45916
|
}, Hc = (S) => vn.fromDom(S.dom.host), mi = (S) => {
|
|
@@ -45920,10 +45920,10 @@ Required: ` + m.join(", "));
|
|
|
45920
45920
|
const U = $.ownerDocument;
|
|
45921
45921
|
return Nl(vn.fromDom($)).fold(() => U.body.contains($), Us(mi, Hc));
|
|
45922
45922
|
};
|
|
45923
|
-
var xr = (S, $, U, ae, he) => S(U, ae) ? kt.some(U) :
|
|
45923
|
+
var xr = (S, $, U, ae, he) => S(U, ae) ? kt.some(U) : Cn(he) && he(U) ? kt.none() : $(U, ae, he);
|
|
45924
45924
|
const dr = (S, $, U) => {
|
|
45925
45925
|
let ae = S.dom;
|
|
45926
|
-
const he =
|
|
45926
|
+
const he = Cn(U) ? U : de;
|
|
45927
45927
|
for (; ae.parentNode; ) {
|
|
45928
45928
|
ae = ae.parentNode;
|
|
45929
45929
|
const ct = vn.fromDom(ae);
|
|
@@ -46005,10 +46005,10 @@ Required: ` + m.join(", "));
|
|
|
46005
46005
|
return fi(U, ae), qr(S), U;
|
|
46006
46006
|
};
|
|
46007
46007
|
var Qr = tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"), ua = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
46008
|
-
const zc = (S) => ($) =>
|
|
46008
|
+
const zc = (S) => ($) => Dt($) && $.nodeName.toLowerCase() === S, da = (S) => ($) => Dt($) && S.test($.nodeName), Ls = (S) => Dt(S) && S.nodeType === 3, ns = (S) => Dt(S) && S.nodeType === 1, Ra = da(/^(OL|UL|DL)$/), Xi = da(/^(OL|UL)$/), Fo = zc("ol"), Or = da(/^(LI|DT|DD)$/), ma = da(/^(DT|DD)$/), or = da(/^(TH|TD)$/), yl = zc("br"), Fl = (S) => {
|
|
46009
46009
|
var $;
|
|
46010
46010
|
return (($ = S.parentNode) === null || $ === void 0 ? void 0 : $.firstChild) === S;
|
|
46011
|
-
}, ea = (S, $) =>
|
|
46011
|
+
}, ea = (S, $) => Dt($) && $.nodeName in S.schema.getTextBlockElements(), Hl = (S, $) => Dt(S) && S.nodeName in $, Vl = (S, $) => Dt($) && $.nodeName in S.schema.getVoidElements(), Zu = (S, $) => yl($) ? S.isBlock($.nextSibling) && !yl($.previousSibling) : !1, wl = (S, $, U) => {
|
|
46012
46012
|
const ae = S.isEmpty($);
|
|
46013
46013
|
return U && S.select("span[data-mce-type=bookmark]", $).length > 0 ? !1 : ae;
|
|
46014
46014
|
}, Ji = (S, $) => S.isChildOf($, S.getRoot()), $a = (S) => ($) => $.options.get(S), Sc = (S) => {
|
|
@@ -46079,13 +46079,13 @@ Required: ` + m.join(", "));
|
|
|
46079
46079
|
"DL"
|
|
46080
46080
|
], Fs = lo.join(","), Ma = (S, $) => {
|
|
46081
46081
|
const U = $ || S.selection.getStart(!0);
|
|
46082
|
-
return S.dom.getParent(U, Fs,
|
|
46083
|
-
}, bu = (S, $) =>
|
|
46082
|
+
return S.dom.getParent(U, Fs, Ot(S, U));
|
|
46083
|
+
}, bu = (S, $) => Dt(S) && $.length === 1 && $[0] === S, Nt = (S) => Jo(S.querySelectorAll(Fs), Ra), Gu = (S) => {
|
|
46084
46084
|
const $ = Ma(S), U = S.selection.getSelectedBlocks();
|
|
46085
46085
|
return bu($, U) ? Nt($) : Jo(U, (ae) => Ra(ae) && $ !== ae);
|
|
46086
46086
|
}, Zs = (S, $) => {
|
|
46087
46087
|
const U = ua.map($, (ae) => {
|
|
46088
|
-
const he = S.dom.getParent(ae, "li,dd,dt",
|
|
46088
|
+
const he = S.dom.getParent(ae, "li,dd,dt", Ot(S, ae));
|
|
46089
46089
|
return he || ae;
|
|
46090
46090
|
});
|
|
46091
46091
|
return ao(U);
|
|
@@ -46095,18 +46095,18 @@ Required: ` + m.join(", "));
|
|
|
46095
46095
|
}, Y = (S) => Jo(I(S), ma), re = (S, $) => {
|
|
46096
46096
|
const U = S.dom.getParents($, "TD,TH");
|
|
46097
46097
|
return U.length > 0 ? U[0] : S.getBody();
|
|
46098
|
-
}, Le = (S, $) => !Ra($) && !Or($) && Bn(lo, (U) => S.isValidChild($.nodeName, U)),
|
|
46098
|
+
}, Le = (S, $) => !Ra($) && !Or($) && Bn(lo, (U) => S.isValidChild($.nodeName, U)), Ot = (S, $) => {
|
|
46099
46099
|
const U = S.dom.getParents($, S.dom.isBlock);
|
|
46100
46100
|
return Gt(U, (he) => Le(S.schema, he)).getOr(S.getBody());
|
|
46101
46101
|
}, Yn = (S) => Er(S).exists(($) => Or($.dom) && tl($).exists((U) => !Ra(U.dom)) && bl($).exists((U) => !Ra(U.dom))), qt = (S, $) => {
|
|
46102
|
-
const U = S.dom.getParents($, "ol,ul",
|
|
46102
|
+
const U = S.dom.getParents($, "ol,ul", Ot(S, $));
|
|
46103
46103
|
return ur(U);
|
|
46104
46104
|
}, $s = (S) => {
|
|
46105
46105
|
const $ = qt(S, S.selection.getStart()), U = Jo(S.selection.getSelectedBlocks(), Xi);
|
|
46106
46106
|
return $.toArray().concat(U);
|
|
46107
46107
|
}, lt = (S) => {
|
|
46108
46108
|
const $ = S.selection.getStart();
|
|
46109
|
-
return S.dom.getParents($, "ol,ul",
|
|
46109
|
+
return S.dom.getParents($, "ol,ul", Ot(S, $));
|
|
46110
46110
|
}, rs = (S) => {
|
|
46111
46111
|
const $ = $s(S), U = lt(S);
|
|
46112
46112
|
return Gt(U, (ae) => Yn(vn.fromDom(ae))).fold(() => Ua(S, $), (ae) => [ae]);
|
|
@@ -46133,7 +46133,7 @@ Required: ` + m.join(", "));
|
|
|
46133
46133
|
}, Vs = (S, $, U) => S.dispatch("ListMutation", {
|
|
46134
46134
|
action: $,
|
|
46135
46135
|
element: U
|
|
46136
|
-
}), Rh = ((S) => ($) => $.replace(S, ""))(/^\s+|\s+$/g), $h = (S) => S.length > 0, Mo = (S) => !$h(S), Wc = (S) => S.style !== void 0 &&
|
|
46136
|
+
}), Rh = ((S) => ($) => $.replace(S, ""))(/^\s+|\s+$/g), $h = (S) => S.length > 0, Mo = (S) => !$h(S), Wc = (S) => S.style !== void 0 && Cn(S.style.getPropertyValue), Qi = (S, $, U) => {
|
|
46137
46137
|
if (!G(U))
|
|
46138
46138
|
throw console.error("Invalid call to CSS.set. Property ", $, ":: Value ", U, ":: Element ", S), new Error("CSS value must be a string: " + U);
|
|
46139
46139
|
Wc(S) && S.style.setProperty($, U);
|
|
@@ -46380,7 +46380,7 @@ Required: ` + m.join(", "));
|
|
|
46380
46380
|
Dg(S, $, U), uc(S, $, U);
|
|
46381
46381
|
}, Og = (S, $, U) => {
|
|
46382
46382
|
ua.each(U, (ae) => S.setStyle($, ae, ""));
|
|
46383
|
-
}, ja = (S, $) =>
|
|
46383
|
+
}, ja = (S, $) => Dt($) && !Hl($, S.schema.getBlockElements()), Rr = (S, $, U, ae) => {
|
|
46384
46384
|
let he = $[U ? "startContainer" : "endContainer"];
|
|
46385
46385
|
const ct = $[U ? "startOffset" : "endOffset"];
|
|
46386
46386
|
ns(he) && (he = he.childNodes[Math.min(ct, he.childNodes.length - 1)] || he), !U && yl(he.nextSibling) && (he = he.nextSibling);
|
|
@@ -46449,7 +46449,7 @@ Required: ` + m.join(", "));
|
|
|
46449
46449
|
}, Ga = (S, $, U) => {
|
|
46450
46450
|
const ae = S.selection.getRng();
|
|
46451
46451
|
let he = "LI";
|
|
46452
|
-
const ct =
|
|
46452
|
+
const ct = Ot(S, Ec(S, ae)), Kt = S.dom;
|
|
46453
46453
|
if (Kt.getContentEditable(S.selection.getNode()) === "false")
|
|
46454
46454
|
return;
|
|
46455
46455
|
$ = $.toUpperCase(), $ === "DL" && (he = "DT");
|
|
@@ -46758,7 +46758,7 @@ Required: ` + m.join(", "));
|
|
|
46758
46758
|
});
|
|
46759
46759
|
}, Zo = (S, $) => () => {
|
|
46760
46760
|
const U = Ma(S);
|
|
46761
|
-
return
|
|
46761
|
+
return Dt(U) && U.nodeName === $;
|
|
46762
46762
|
}, qc = (S) => {
|
|
46763
46763
|
S.addCommand("mceListProps", () => {
|
|
46764
46764
|
Vh(S);
|
|
@@ -46849,7 +46849,7 @@ Required: ` + m.join(", "));
|
|
|
46849
46849
|
}, se = (j) => {
|
|
46850
46850
|
const ue = typeof j;
|
|
46851
46851
|
return j === null ? "null" : ue === "object" && Array.isArray(j) ? "array" : ue === "object" && me(j, String, (ke, Ne) => Ne.isPrototypeOf(ke)) ? "string" : ue;
|
|
46852
|
-
}, Ee = (j) => (ue) => se(ue) === j, fe = (j) => (ue) => typeof ue === j, G = (j) => (ue) => j === ue, Ae = Ee("string"), Q = Ee("object"), Pe = Ee("array"), it = G(null),
|
|
46852
|
+
}, Ee = (j) => (ue) => se(ue) === j, fe = (j) => (ue) => typeof ue === j, G = (j) => (ue) => j === ue, Ae = Ee("string"), Q = Ee("object"), Pe = Ee("array"), it = G(null), Dt = fe("boolean"), Cn = (j) => j == null, jn = (j) => !Cn(j), Vo = fe("function"), Us = (j, ue) => {
|
|
46853
46853
|
if (Pe(j)) {
|
|
46854
46854
|
for (let ke = 0, Ne = j.length; ke < Ne; ++ke)
|
|
46855
46855
|
if (!ue(j[ke]))
|
|
@@ -46970,7 +46970,7 @@ Required: ` + m.join(", "));
|
|
|
46970
46970
|
const ue = j.options.register;
|
|
46971
46971
|
ue("link_assume_external_targets", {
|
|
46972
46972
|
processor: (ke) => {
|
|
46973
|
-
const Ne = Ae(ke) ||
|
|
46973
|
+
const Ne = Ae(ke) || Dt(ke);
|
|
46974
46974
|
return Ne ? ke === !0 ? {
|
|
46975
46975
|
value: 1,
|
|
46976
46976
|
valid: Ne
|
|
@@ -46993,7 +46993,7 @@ Required: ` + m.join(", "));
|
|
|
46993
46993
|
processor: "string",
|
|
46994
46994
|
default: "https"
|
|
46995
46995
|
}), ue("link_target_list", {
|
|
46996
|
-
processor: (ke) =>
|
|
46996
|
+
processor: (ke) => Dt(ke) || Us(ke, Q),
|
|
46997
46997
|
default: !0
|
|
46998
46998
|
}), ue("link_rel_list", {
|
|
46999
46999
|
processor: "object[]",
|
|
@@ -47606,8 +47606,8 @@ Required: ` + m.join(", "));
|
|
|
47606
47606
|
}, Ee = (I) => {
|
|
47607
47607
|
const Y = typeof I;
|
|
47608
47608
|
return I === null ? "null" : Y === "object" && Array.isArray(I) ? "array" : Y === "object" && se(I, String, (re, Le) => Le.isPrototypeOf(re)) ? "string" : Y;
|
|
47609
|
-
}, fe = (I) => (Y) => Ee(Y) === I, G = (I) => (Y) => typeof Y === I, Ae = (I) => (Y) => I === Y, Q = (I, Y) => it(I) && se(I, Y, (re, Le) => me(re) === Le), Pe = fe("string"), it = fe("object"),
|
|
47610
|
-
if (
|
|
47609
|
+
}, fe = (I) => (Y) => Ee(Y) === I, G = (I) => (Y) => typeof Y === I, Ae = (I) => (Y) => I === Y, Q = (I, Y) => it(I) && se(I, Y, (re, Le) => me(re) === Le), Pe = fe("string"), it = fe("object"), Dt = (I) => Q(I, Object), Cn = fe("array"), jn = Ae(null), Vo = G("boolean"), Us = (I) => I == null, Oo = (I) => !Us(I), Mt = G("function"), pr = G("number"), fn = (I, Y) => {
|
|
47610
|
+
if (Cn(I)) {
|
|
47611
47611
|
for (let re = 0, Le = I.length; re < Le; ++re)
|
|
47612
47612
|
if (!Y(I[re]))
|
|
47613
47613
|
return !1;
|
|
@@ -47689,15 +47689,15 @@ Required: ` + m.join(", "));
|
|
|
47689
47689
|
kt.singletonNone = new kt(!1);
|
|
47690
47690
|
const ca = Object.keys, Qn = Object.hasOwnProperty, oe = (I, Y) => {
|
|
47691
47691
|
const re = ca(I);
|
|
47692
|
-
for (let Le = 0,
|
|
47692
|
+
for (let Le = 0, Ot = re.length; Le < Ot; Le++) {
|
|
47693
47693
|
const Yn = re[Le], qt = I[Yn];
|
|
47694
47694
|
Y(qt, Yn);
|
|
47695
47695
|
}
|
|
47696
47696
|
}, Pn = (I) => (Y, re) => {
|
|
47697
47697
|
I[re] = Y;
|
|
47698
47698
|
}, is = (I, Y, re, Le) => {
|
|
47699
|
-
oe(I, (
|
|
47700
|
-
(Y(
|
|
47699
|
+
oe(I, (Ot, Yn) => {
|
|
47700
|
+
(Y(Ot, Yn) ? re : Le)(Ot, Yn);
|
|
47701
47701
|
});
|
|
47702
47702
|
}, Bn = (I, Y) => {
|
|
47703
47703
|
const re = {};
|
|
@@ -47705,7 +47705,7 @@ Required: ` + m.join(", "));
|
|
|
47705
47705
|
}, We = (I, Y) => Qn.call(I, Y), ge = (I, Y) => We(I, Y) && I[Y] !== void 0 && I[Y] !== null, Jo = Array.prototype.push, Pt = (I) => {
|
|
47706
47706
|
const Y = [];
|
|
47707
47707
|
for (let re = 0, Le = I.length; re < Le; ++re) {
|
|
47708
|
-
if (!
|
|
47708
|
+
if (!Cn(I[re]))
|
|
47709
47709
|
throw new Error("Arr.flatten item " + re + " was not an array, input: " + I);
|
|
47710
47710
|
Jo.apply(Y, I[re]);
|
|
47711
47711
|
}
|
|
@@ -47731,8 +47731,8 @@ Required: ` + m.join(", "));
|
|
|
47731
47731
|
}, et = (I, Y) => {
|
|
47732
47732
|
const Le = (Y || document).createElement("div");
|
|
47733
47733
|
if (Le.innerHTML = I, !Le.hasChildNodes() || Le.childNodes.length > 1) {
|
|
47734
|
-
const
|
|
47735
|
-
throw console.error(
|
|
47734
|
+
const Ot = "HTML does not have a single root node";
|
|
47735
|
+
throw console.error(Ot, I), new Error(Ot);
|
|
47736
47736
|
}
|
|
47737
47737
|
return ao(Le.childNodes[0]);
|
|
47738
47738
|
}, Io = (I, Y) => {
|
|
@@ -47802,8 +47802,8 @@ Required: ` + m.join(", "));
|
|
|
47802
47802
|
}, re.onerror = () => {
|
|
47803
47803
|
Le(Promise.reject(`Failed to get image dimensions for: ${I}`));
|
|
47804
47804
|
};
|
|
47805
|
-
const
|
|
47806
|
-
|
|
47805
|
+
const Ot = re.style;
|
|
47806
|
+
Ot.visibility = "hidden", Ot.position = "fixed", Ot.bottom = Ot.left = "0px", Ot.width = Ot.height = "auto", document.body.appendChild(re), re.src = I;
|
|
47807
47807
|
}), yr = (I) => (I && (I = I.replace(/px$/, "")), I), Qs = (I) => (I.length > 0 && /^[0-9]+$/.test(I) && (I += "px"), I), ps = (I) => {
|
|
47808
47808
|
if (I.margin) {
|
|
47809
47809
|
const Y = String(I.margin).split(" ");
|
|
@@ -47843,8 +47843,8 @@ Required: ` + m.join(", "));
|
|
|
47843
47843
|
Le.onload = () => {
|
|
47844
47844
|
Y(Le.result);
|
|
47845
47845
|
}, Le.onerror = () => {
|
|
47846
|
-
var
|
|
47847
|
-
re((
|
|
47846
|
+
var Ot;
|
|
47847
|
+
re((Ot = Le.error) === null || Ot === void 0 ? void 0 : Ot.message);
|
|
47848
47848
|
}, Le.readAsDataURL(I);
|
|
47849
47849
|
}), wc = (I) => I.nodeName === "IMG" && (I.hasAttribute("data-mce-object") || I.hasAttribute("data-mce-placeholder")), Xn = (I, Y) => {
|
|
47850
47850
|
const re = I.options.get;
|
|
@@ -47869,9 +47869,9 @@ Required: ` + m.join(", "));
|
|
|
47869
47869
|
}, Bl = (I, Y) => {
|
|
47870
47870
|
const re = I.getAttribute("style"), Le = Y(re !== null ? re : "");
|
|
47871
47871
|
Le.length > 0 ? (I.setAttribute("style", Le), I.setAttribute("data-mce-style", Le)) : I.removeAttribute("style");
|
|
47872
|
-
}, Da = (I, Y) => (re, Le,
|
|
47872
|
+
}, Da = (I, Y) => (re, Le, Ot) => {
|
|
47873
47873
|
const Yn = re.style;
|
|
47874
|
-
Yn[Le] ? (Yn[Le] = Qs(
|
|
47874
|
+
Yn[Le] ? (Yn[Le] = Qs(Ot), Bl(re, Y)) : vt(re, Le, Ot);
|
|
47875
47875
|
}, es = (I, Y) => I.style[Y] ? yr(I.style[Y]) : Qo(I, Y), tl = (I, Y) => {
|
|
47876
47876
|
const re = Qs(Y);
|
|
47877
47877
|
I.style.marginLeft = re, I.style.marginRight = re;
|
|
@@ -47928,8 +47928,8 @@ Required: ` + m.join(", "));
|
|
|
47928
47928
|
border: di(Y),
|
|
47929
47929
|
borderStyle: Ar(Y),
|
|
47930
47930
|
isDecorative: mi(Y)
|
|
47931
|
-
}), Vr = (I, Y, re, Le,
|
|
47932
|
-
re[Le] !== Y[Le] &&
|
|
47931
|
+
}), Vr = (I, Y, re, Le, Ot) => {
|
|
47932
|
+
re[Le] !== Y[Le] && Ot(I, Le, String(re[Le]));
|
|
47933
47933
|
}, ia = (I, Y, re) => {
|
|
47934
47934
|
if (re) {
|
|
47935
47935
|
bs.setAttrib(I, "role", "presentation");
|
|
@@ -47947,31 +47947,31 @@ Required: ` + m.join(", "));
|
|
|
47947
47947
|
}
|
|
47948
47948
|
}, Is = (I, Y, re) => {
|
|
47949
47949
|
(re.alt !== Y.alt || re.isDecorative !== Y.isDecorative) && ia(I, re.alt, re.isDecorative);
|
|
47950
|
-
}, Dr = (I, Y) => (re, Le,
|
|
47951
|
-
I(re,
|
|
47950
|
+
}, Dr = (I, Y) => (re, Le, Ot) => {
|
|
47951
|
+
I(re, Ot), Bl(re, Y);
|
|
47952
47952
|
}, sc = (I, Y, re) => {
|
|
47953
47953
|
const Le = qi(I, re);
|
|
47954
|
-
Vr(re, Le, Y, "caption", (
|
|
47954
|
+
Vr(re, Le, Y, "caption", (Ot, Yn, qt) => Aa(Ot)), Vr(re, Le, Y, "src", vt), Vr(re, Le, Y, "title", vt), Vr(re, Le, Y, "width", Da("width", I)), Vr(re, Le, Y, "height", Da("height", I)), Vr(re, Le, Y, "class", vt), Vr(re, Le, Y, "style", Dr((Ot, Yn) => vt(Ot, "style", Yn), I)), Vr(re, Le, Y, "hspace", Dr(tl, I)), Vr(re, Le, Y, "vspace", Dr(bl, I)), Vr(re, Le, Y, "border", Dr(Ko, I)), Vr(re, Le, Y, "borderStyle", Dr(gn, I)), Is(re, Le, Y);
|
|
47955
47955
|
}, Vc = (I, Y) => {
|
|
47956
|
-
const re = I.dom.styles.parse(Y), Le = ps(re),
|
|
47957
|
-
return I.dom.styles.serialize(
|
|
47956
|
+
const re = I.dom.styles.parse(Y), Le = ps(re), Ot = I.dom.styles.parse(I.dom.styles.serialize(Le));
|
|
47957
|
+
return I.dom.styles.serialize(Ot);
|
|
47958
47958
|
}, rc = (I) => {
|
|
47959
47959
|
const Y = I.selection.getNode(), re = I.dom.getParent(Y, "figure.image");
|
|
47960
47960
|
return re ? I.dom.select("img", re)[0] : Y && (Y.nodeName !== "IMG" || wc(Y)) ? null : Y;
|
|
47961
47961
|
}, Il = (I, Y) => {
|
|
47962
47962
|
var re;
|
|
47963
|
-
const Le = I.dom,
|
|
47963
|
+
const Le = I.dom, Ot = Bn(I.schema.getTextBlockElements(), (qt, $s) => !I.schema.isValidChild($s, "figure")), Yn = Le.getParent(Y.parentNode, (qt) => ge(Ot, qt.nodeName), I.getBody());
|
|
47964
47964
|
return Yn && (re = Le.split(Yn, Y)) !== null && re !== void 0 ? re : Y;
|
|
47965
47965
|
}, fi = (I) => {
|
|
47966
47966
|
const Y = rc(I);
|
|
47967
47967
|
return Y ? qi((re) => Vc(I, re), Y) : dr();
|
|
47968
47968
|
}, Te = (I, Y) => {
|
|
47969
|
-
const re = vl((
|
|
47969
|
+
const re = vl((Ot) => Vc(I, Ot), Y);
|
|
47970
47970
|
I.dom.setAttrib(re, "data-mce-id", "__mcenew"), I.focus(), I.selection.setContent(re.outerHTML);
|
|
47971
47971
|
const Le = I.dom.select('*[data-mce-id="__mcenew"]')[0];
|
|
47972
47972
|
if (I.dom.setAttrib(Le, "data-mce-id", null), Nl(Le)) {
|
|
47973
|
-
const
|
|
47974
|
-
I.selection.select(
|
|
47973
|
+
const Ot = Il(I, Le);
|
|
47974
|
+
I.selection.select(Ot);
|
|
47975
47975
|
} else
|
|
47976
47976
|
I.selection.select(Le);
|
|
47977
47977
|
}, qr = (I, Y) => {
|
|
@@ -47998,11 +47998,11 @@ Required: ` + m.join(", "));
|
|
|
47998
47998
|
}, ts = (I, Y) => {
|
|
47999
47999
|
const re = rc(I);
|
|
48000
48000
|
if (re) {
|
|
48001
|
-
const
|
|
48001
|
+
const Ot = {
|
|
48002
48002
|
...qi((qt) => Vc(I, qt), re),
|
|
48003
48003
|
...Y
|
|
48004
|
-
}, Yn = Ki(I,
|
|
48005
|
-
|
|
48004
|
+
}, Yn = Ki(I, Ot);
|
|
48005
|
+
Ot.src ? Wu(I, Yn) : Ll(I, re);
|
|
48006
48006
|
} else Y.src && Te(I, {
|
|
48007
48007
|
...dr(),
|
|
48008
48008
|
...Y
|
|
@@ -48012,27 +48012,27 @@ Required: ` + m.join(", "));
|
|
|
48012
48012
|
throw new Error("Can't merge zero objects");
|
|
48013
48013
|
const re = {};
|
|
48014
48014
|
for (let Le = 0; Le < Y.length; Le++) {
|
|
48015
|
-
const
|
|
48016
|
-
for (const Yn in
|
|
48017
|
-
We(
|
|
48015
|
+
const Ot = Y[Le];
|
|
48016
|
+
for (const Yn in Ot)
|
|
48017
|
+
We(Ot, Yn) && (re[Yn] = I(re[Yn], Ot[Yn]));
|
|
48018
48018
|
}
|
|
48019
48019
|
return re;
|
|
48020
|
-
})((I, Y) =>
|
|
48020
|
+
})((I, Y) => Dt(I) && Dt(Y) ? nl(I, Y) : Y);
|
|
48021
48021
|
var Yi = tinymce.util.Tools.resolve("tinymce.util.ImageUploader"), vs = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
48022
48022
|
const ks = (I) => Pe(I.value) ? I.value : "", za = (I) => Pe(I.text) ? I.text : Pe(I.title) ? I.title : "", Oa = (I, Y) => {
|
|
48023
48023
|
const re = [];
|
|
48024
48024
|
return vs.each(I, (Le) => {
|
|
48025
|
-
const
|
|
48025
|
+
const Ot = za(Le);
|
|
48026
48026
|
if (Le.menu !== void 0) {
|
|
48027
48027
|
const Yn = Oa(Le.menu, Y);
|
|
48028
48028
|
re.push({
|
|
48029
|
-
text:
|
|
48029
|
+
text: Ot,
|
|
48030
48030
|
items: Yn
|
|
48031
48031
|
});
|
|
48032
48032
|
} else {
|
|
48033
48033
|
const Yn = Y(Le);
|
|
48034
48034
|
re.push({
|
|
48035
|
-
text:
|
|
48035
|
+
text: Ot,
|
|
48036
48036
|
value: Yn
|
|
48037
48037
|
});
|
|
48038
48038
|
}
|
|
@@ -48130,12 +48130,12 @@ Required: ` + m.join(", "));
|
|
|
48130
48130
|
Vs
|
|
48131
48131
|
])));
|
|
48132
48132
|
});
|
|
48133
|
-
}), Le = ua.sanitize(Ke(I)),
|
|
48133
|
+
}), Le = ua.sanitize(Ke(I)), Ot = Zi(I), Yn = qe(I), qt = Va(I), $s = hs(I), lt = fi(I), rs = _e(I), Ua = vn(I), Hs = zo(I), Cr = jo(I), Uc = Tr(I), ho = Lo(I), Wa = kt.some(At(I)).filter((Ms) => Pe(Ms) && Ms.length > 0);
|
|
48134
48134
|
return re.then((Ms) => ({
|
|
48135
48135
|
image: lt,
|
|
48136
48136
|
imageList: Ms,
|
|
48137
48137
|
classList: Le,
|
|
48138
|
-
hasAdvTab:
|
|
48138
|
+
hasAdvTab: Ot,
|
|
48139
48139
|
hasUploadTab: Yn,
|
|
48140
48140
|
hasUploadUrl: qt,
|
|
48141
48141
|
hasUploadHandler: $s,
|
|
@@ -48164,7 +48164,7 @@ Required: ` + m.join(", "));
|
|
|
48164
48164
|
type: "input",
|
|
48165
48165
|
label: "Alternative description",
|
|
48166
48166
|
enabled: !(I.hasAccessibilityOptions && I.image.isDecorative)
|
|
48167
|
-
},
|
|
48167
|
+
}, Ot = {
|
|
48168
48168
|
name: "title",
|
|
48169
48169
|
type: "input",
|
|
48170
48170
|
label: "Image title"
|
|
@@ -48201,7 +48201,7 @@ Required: ` + m.join(", "));
|
|
|
48201
48201
|
re.toArray(),
|
|
48202
48202
|
I.hasAccessibilityOptions && I.hasDescription ? [qt] : [],
|
|
48203
48203
|
I.hasDescription ? [Le] : [],
|
|
48204
|
-
I.hasImageTitle ? [
|
|
48204
|
+
I.hasImageTitle ? [Ot] : [],
|
|
48205
48205
|
I.hasDimensions ? [Yn] : [],
|
|
48206
48206
|
[{
|
|
48207
48207
|
...rs(I.classList.isSome() && I.hasImageCaption),
|
|
@@ -48281,11 +48281,11 @@ Required: ` + m.join(", "));
|
|
|
48281
48281
|
}, Vl = (I, Y) => {
|
|
48282
48282
|
const re = Y.getData(), Le = re.src.meta;
|
|
48283
48283
|
if (Le !== void 0) {
|
|
48284
|
-
const
|
|
48285
|
-
Hl(I,
|
|
48284
|
+
const Ot = nl({}, re);
|
|
48285
|
+
Hl(I, Ot, Le), Y.setData(Ot);
|
|
48286
48286
|
}
|
|
48287
48287
|
}, Zu = (I, Y, re, Le) => {
|
|
48288
|
-
const
|
|
48288
|
+
const Ot = Le.getData(), Yn = Ot.src.value, qt = Ot.src.meta || {};
|
|
48289
48289
|
!qt.width && !qt.height && Y.hasDimensions && (el(Yn) ? I.imageSize(Yn).then(($s) => {
|
|
48290
48290
|
re.open && Le.setData({ dimensions: $s });
|
|
48291
48291
|
}).catch(($s) => console.error($s)) : Le.setData({
|
|
@@ -48295,14 +48295,14 @@ Required: ` + m.join(", "));
|
|
|
48295
48295
|
}
|
|
48296
48296
|
}));
|
|
48297
48297
|
}, wl = (I, Y, re) => {
|
|
48298
|
-
const Le = re.getData(),
|
|
48299
|
-
Y.prevImage =
|
|
48298
|
+
const Le = re.getData(), Ot = ua.findEntry(I.imageList, Le.src.value);
|
|
48299
|
+
Y.prevImage = Ot, re.setData({ images: Ot.map((Yn) => Yn.value).getOr("") });
|
|
48300
48300
|
}, Ji = (I, Y, re, Le) => {
|
|
48301
48301
|
ea(Y, Le), Vl(Y, Le), Zu(I, Y, re, Le), wl(Y, re, Le);
|
|
48302
48302
|
}, $a = (I, Y, re, Le) => {
|
|
48303
|
-
const
|
|
48303
|
+
const Ot = Le.getData(), Yn = ua.findEntry(Y.imageList, Ot.images);
|
|
48304
48304
|
Yn.each((qt) => {
|
|
48305
|
-
|
|
48305
|
+
Ot.alt === "" || re.prevImage.map((lt) => lt.text === Ot.alt).getOr(!1) ? qt.value === "" ? Le.setData({
|
|
48306
48306
|
src: qt,
|
|
48307
48307
|
alt: re.prevAlt
|
|
48308
48308
|
}) : Le.setData({
|
|
@@ -48311,8 +48311,8 @@ Required: ` + m.join(", "));
|
|
|
48311
48311
|
}) : Le.setData({ src: qt });
|
|
48312
48312
|
}), re.prevImage = Yn, Ji(I, Y, re, Le);
|
|
48313
48313
|
}, Sc = (I, Y, re, Le) => {
|
|
48314
|
-
const
|
|
48315
|
-
Le.block("Uploading image"), A(
|
|
48314
|
+
const Ot = Le.getData();
|
|
48315
|
+
Le.block("Uploading image"), A(Ot.fileinput).fold(() => {
|
|
48316
48316
|
Le.unblock();
|
|
48317
48317
|
}, (Yn) => {
|
|
48318
48318
|
const qt = URL.createObjectURL(Yn), $s = () => {
|
|
@@ -48334,8 +48334,8 @@ Required: ` + m.join(", "));
|
|
|
48334
48334
|
}) : (I.addToBlobCache(Ua), lt(Ua.blobUri()), Le.unblock());
|
|
48335
48335
|
});
|
|
48336
48336
|
});
|
|
48337
|
-
}, hi = (I, Y, re) => (Le,
|
|
48338
|
-
|
|
48337
|
+
}, hi = (I, Y, re) => (Le, Ot) => {
|
|
48338
|
+
Ot.name === "src" ? Ji(I, Y, re, Le) : Ot.name === "images" ? $a(I, Y, re, Le) : Ot.name === "alt" ? re.prevAlt = Le.getData().alt : Ot.name === "fileinput" ? Sc(I, Y, re, Le) : Ot.name === "isDecorative" && Le.setEnabled("alt", !Le.getData().isDecorative);
|
|
48339
48339
|
}, pu = (I) => () => {
|
|
48340
48340
|
I.open = !1;
|
|
48341
48341
|
}, ju = (I) => I.hasAdvTab || I.hasUploadUrl || I.hasUploadHandler ? {
|
|
@@ -48349,9 +48349,9 @@ Required: ` + m.join(", "));
|
|
|
48349
48349
|
type: "panel",
|
|
48350
48350
|
items: Xi.makeItems(I)
|
|
48351
48351
|
}, j = (I, Y, re) => (Le) => {
|
|
48352
|
-
const
|
|
48353
|
-
...
|
|
48354
|
-
style: Ws(re.normalizeCss, yl(
|
|
48352
|
+
const Ot = nl(or(Y.image), Le.getData()), Yn = {
|
|
48353
|
+
...Ot,
|
|
48354
|
+
style: Ws(re.normalizeCss, yl(Ot, !1))
|
|
48355
48355
|
};
|
|
48356
48356
|
I.execCommand("mceUpdateImage", !1, yl(Yn, Y.hasAccessibilityOptions)), I.editorUpload.uploadImagesAuto(), Le.close();
|
|
48357
48357
|
}, ue = (I) => (Y) => Xn(I, Y) ? yc(I.documentBaseURI.toAbsolute(Y)).then((re) => ({
|
|
@@ -48361,11 +48361,11 @@ Required: ` + m.join(", "));
|
|
|
48361
48361
|
width: "",
|
|
48362
48362
|
height: ""
|
|
48363
48363
|
}), ke = (I) => (Y, re, Le) => {
|
|
48364
|
-
var
|
|
48364
|
+
var Ot;
|
|
48365
48365
|
return I.editorUpload.blobCache.create({
|
|
48366
48366
|
blob: Y,
|
|
48367
48367
|
blobUri: re,
|
|
48368
|
-
name: (
|
|
48368
|
+
name: (Ot = Y.name) === null || Ot === void 0 ? void 0 : Ot.replace(/\.[^\.]+$/, ""),
|
|
48369
48369
|
filename: Y.name,
|
|
48370
48370
|
base64: Le.split(",")[1]
|
|
48371
48371
|
});
|
|
@@ -48389,7 +48389,7 @@ Required: ` + m.join(", "));
|
|
|
48389
48389
|
};
|
|
48390
48390
|
return { open: () => {
|
|
48391
48391
|
Ls(I).then((Le) => {
|
|
48392
|
-
const
|
|
48392
|
+
const Ot = ma(Le);
|
|
48393
48393
|
return {
|
|
48394
48394
|
title: "Insert/Edit Image",
|
|
48395
48395
|
size: "normal",
|
|
@@ -48409,8 +48409,8 @@ Required: ` + m.join(", "));
|
|
|
48409
48409
|
],
|
|
48410
48410
|
initialData: or(Le.image),
|
|
48411
48411
|
onSubmit: j(I, Le, Y),
|
|
48412
|
-
onChange: hi(Y, Le,
|
|
48413
|
-
onClose: pu(
|
|
48412
|
+
onChange: hi(Y, Le, Ot),
|
|
48413
|
+
onClose: pu(Ot)
|
|
48414
48414
|
};
|
|
48415
48415
|
}).then(I.windowManager.open);
|
|
48416
48416
|
} };
|
|
@@ -48423,12 +48423,12 @@ Required: ` + m.join(", "));
|
|
|
48423
48423
|
return Oo(Y) && /\bimage\b/.test(Y);
|
|
48424
48424
|
}, Ma = (I) => (Y) => {
|
|
48425
48425
|
let re = Y.length;
|
|
48426
|
-
const Le = (
|
|
48427
|
-
|
|
48426
|
+
const Le = (Ot) => {
|
|
48427
|
+
Ot.attr("contenteditable", I ? "true" : null);
|
|
48428
48428
|
};
|
|
48429
48429
|
for (; re--; ) {
|
|
48430
|
-
const
|
|
48431
|
-
Fs(
|
|
48430
|
+
const Ot = Y[re];
|
|
48431
|
+
Fs(Ot) && (Ot.attr("contenteditable", I ? "false" : null), vs.each(Ot.getAll("figcaption"), Le));
|
|
48432
48432
|
}
|
|
48433
48433
|
}, bu = (I) => {
|
|
48434
48434
|
I.on("PreInit", () => {
|
|
@@ -48475,7 +48475,7 @@ Required: ` + m.join(", "));
|
|
|
48475
48475
|
}, se = (x) => {
|
|
48476
48476
|
const T = typeof x;
|
|
48477
48477
|
return x === null ? "null" : T === "object" && Array.isArray(x) ? "array" : T === "object" && me(x, String, (V, K) => K.isPrototypeOf(V)) ? "string" : T;
|
|
48478
|
-
}, Ee = (x) => (T) => se(T) === x, fe = (x) => (T) => typeof T === x, G = (x) => (T) => x === T, Ae = Ee("string"), Q = Ee("array"), Pe = fe("boolean"), it = G(void 0),
|
|
48478
|
+
}, Ee = (x) => (T) => se(T) === x, fe = (x) => (T) => typeof T === x, G = (x) => (T) => x === T, Ae = Ee("string"), Q = Ee("array"), Pe = fe("boolean"), it = G(void 0), Dt = (x) => x == null, Cn = (x) => !Dt(x), jn = fe("function"), Vo = fe("number"), Us = () => {
|
|
48479
48479
|
}, Oo = (x, T) => (V) => x(T(V)), Mt = (x) => () => x, pr = (x) => x, fn = (x, T) => x === T;
|
|
48480
48480
|
function de(x, ...T) {
|
|
48481
48481
|
return (...V) => {
|
|
@@ -48538,7 +48538,7 @@ Required: ` + m.join(", "));
|
|
|
48538
48538
|
throw new Error(T ?? "Called getOrDie on None");
|
|
48539
48539
|
}
|
|
48540
48540
|
static from(T) {
|
|
48541
|
-
return
|
|
48541
|
+
return Cn(T) ? oe.some(T) : oe.none();
|
|
48542
48542
|
}
|
|
48543
48543
|
getOrNull() {
|
|
48544
48544
|
return this.tag ? this.value : null;
|
|
@@ -48731,7 +48731,7 @@ Required: ` + m.join(", "));
|
|
|
48731
48731
|
}, Hc = (x) => oe.from(x.dom.previousSibling).map(Xn.fromDom), mi = (x) => oe.from(x.dom.nextSibling).map(Xn.fromDom), xr = (x) => bt(x.dom.childNodes, Xn.fromDom), dr = (x, T) => {
|
|
48732
48732
|
const V = x.dom.childNodes;
|
|
48733
48733
|
return oe.from(V[T]).map(Xn.fromDom);
|
|
48734
|
-
}, Ws = (x) => dr(x, 0), vl = (x) => tl(x) &&
|
|
48734
|
+
}, Ws = (x) => dr(x, 0), vl = (x) => tl(x) && Cn(x.dom.host), Vr = jn(Element.prototype.attachShadow) && jn(Node.prototype.getRootNode) ? (x) => Xn.fromDom(x.dom.getRootNode()) : gn, ia = (x) => {
|
|
48735
48735
|
const T = Vr(x);
|
|
48736
48736
|
return vl(T) ? oe.some(T) : oe.none();
|
|
48737
48737
|
}, Is = (x) => Xn.fromDom(x.dom.host), Dr = (x) => {
|
|
@@ -48855,7 +48855,7 @@ Required: ` + m.join(", "));
|
|
|
48855
48855
|
}, Y = (x, T) => I([
|
|
48856
48856
|
"td",
|
|
48857
48857
|
"th"
|
|
48858
|
-
], x, T), re = (x) => Uo(x, "th,td"), Le = (x) => bs(x, "colgroup") ? Cc(x, "col") : _e(qt(x), (T) => Cc(T, "col")),
|
|
48858
|
+
], x, T), re = (x) => Uo(x, "th,td"), Le = (x) => bs(x, "colgroup") ? Cc(x, "col") : _e(qt(x), (T) => Cc(T, "col")), Ot = (x, T) => Ll(x, "table", T), Yn = (x) => Uo(x, "tr"), qt = (x) => Ot(x).fold(Mt([]), (T) => Cc(T, "colgroup")), $s = (x, T) => bt(x, (V) => {
|
|
48859
48859
|
if (vt(V) === "colgroup") {
|
|
48860
48860
|
const K = bt(Le(V), (be) => {
|
|
48861
48861
|
const je = dn(be, "span", 1);
|
|
@@ -48895,8 +48895,8 @@ Required: ` + m.join(", "));
|
|
|
48895
48895
|
}), V += be;
|
|
48896
48896
|
}), T;
|
|
48897
48897
|
}, pi = (x) => {
|
|
48898
|
-
const T = {}, V = [], be = Tr(x).map((mc) => mc.element).bind(
|
|
48899
|
-
let je = 0, gt = 0,
|
|
48898
|
+
const T = {}, V = [], be = Tr(x).map((mc) => mc.element).bind(Ot).bind(Hs).getOr({});
|
|
48899
|
+
let je = 0, gt = 0, Rt = 0;
|
|
48900
48900
|
const {
|
|
48901
48901
|
pass: on,
|
|
48902
48902
|
fail: Hn
|
|
@@ -48905,16 +48905,16 @@ Required: ` + m.join(", "));
|
|
|
48905
48905
|
const Gl = [];
|
|
48906
48906
|
z(mc.cells, (Xc) => {
|
|
48907
48907
|
let Ld = 0;
|
|
48908
|
-
for (; T[Cr(
|
|
48908
|
+
for (; T[Cr(Rt, Ld)] !== void 0; )
|
|
48909
48909
|
Ld++;
|
|
48910
|
-
const cu = Jn(be, Ld.toString()), Ug = Ma(Xc.element, Xc.rowspan, Xc.colspan,
|
|
48910
|
+
const cu = Jn(be, Ld.toString()), Ug = Ma(Xc.element, Xc.rowspan, Xc.colspan, Rt, Ld, cu);
|
|
48911
48911
|
for (let Tf = 0; Tf < Xc.colspan; Tf++)
|
|
48912
48912
|
for (let $m = 0; $m < Xc.rowspan; $m++) {
|
|
48913
|
-
const Wg =
|
|
48913
|
+
const Wg = Rt + $m, Zr = Ld + Tf, Jc = Cr(Wg, Zr);
|
|
48914
48914
|
T[Jc] = Ug, gt = Math.max(gt, Zr + 1);
|
|
48915
48915
|
}
|
|
48916
48916
|
Gl.push(Ug);
|
|
48917
|
-
}), je++, V.push(bu(mc.element, Gl, mc.section)),
|
|
48917
|
+
}), je++, V.push(bu(mc.element, Gl, mc.section)), Rt++;
|
|
48918
48918
|
});
|
|
48919
48919
|
const { columns: ar, colgroups: Po } = Lo(on).map((mc) => {
|
|
48920
48920
|
const Gl = Ms(mc);
|
|
@@ -48971,8 +48971,8 @@ Required: ` + m.join(", "));
|
|
|
48971
48971
|
table: T
|
|
48972
48972
|
});
|
|
48973
48973
|
}, zr = (x, T) => Sc(x).getOr(T), fa = (x, T, V) => zr(ue(x, T), V), Mh = (x, T, V, K) => {
|
|
48974
|
-
const be = fa(x, `padding-${V}`, 0), je = fa(x, `padding-${K}`, 0), gt = fa(x, `border-${V}-width`, 0),
|
|
48975
|
-
return T - be - je - gt -
|
|
48974
|
+
const be = fa(x, `padding-${V}`, 0), je = fa(x, `padding-${K}`, 0), gt = fa(x, `border-${V}-width`, 0), Rt = fa(x, `border-${K}-width`, 0);
|
|
48975
|
+
return T - be - je - gt - Rt;
|
|
48976
48976
|
}, js = (x, T) => {
|
|
48977
48977
|
const V = x.dom, K = V.getBoundingClientRect().width || V.offsetWidth;
|
|
48978
48978
|
return T === "border-box" ? K : Mh(x, K, "left", "right");
|
|
@@ -49169,7 +49169,7 @@ Required: ` + m.join(", "));
|
|
|
49169
49169
|
], vt(Hn)) : !1, be = (Hn) => Bl(Hn) && da(Hn, "contenteditable") === "false", je = (Hn, ar) => Hn.dom.compareDocumentPosition(ar.dom), gt = (Hn, ar) => {
|
|
49170
49170
|
const Po = Ra(Hn);
|
|
49171
49171
|
zc(ar, Po);
|
|
49172
|
-
},
|
|
49172
|
+
}, Rt = (Hn) => {
|
|
49173
49173
|
const ar = vt(Hn);
|
|
49174
49174
|
return ao([
|
|
49175
49175
|
"script",
|
|
@@ -49237,7 +49237,7 @@ Required: ` + m.join(", "));
|
|
|
49237
49237
|
isText: Da,
|
|
49238
49238
|
isComment: Aa,
|
|
49239
49239
|
isElement: Bl,
|
|
49240
|
-
isSpecial:
|
|
49240
|
+
isSpecial: Rt,
|
|
49241
49241
|
getLanguage: on,
|
|
49242
49242
|
getText: wi,
|
|
49243
49243
|
setText: Og,
|
|
@@ -49255,8 +49255,8 @@ Required: ` + m.join(", "));
|
|
|
49255
49255
|
}, Rd = (x, T, V) => V.length > 0 ? xu(x, T, V, Ec) : oe.none(), Ec = (x, T, V, K) => {
|
|
49256
49256
|
const be = T(x, V);
|
|
49257
49257
|
return zo(K, (je, gt) => {
|
|
49258
|
-
const
|
|
49259
|
-
return Ga(x, je,
|
|
49258
|
+
const Rt = T(x, gt);
|
|
49259
|
+
return Ga(x, je, Rt);
|
|
49260
49260
|
}, be);
|
|
49261
49261
|
}, Ga = (x, T, V) => T.bind((K) => V.filter(de(x.eq, K))), Rg = Rd, Ih = Rr(), Tm = (x, T) => Rg(Ih, (V, K) => x(K), T), xf = (x) => fi(x, "table"), $d = (x, T) => {
|
|
49262
49262
|
const V = Ao(x, T);
|
|
@@ -49269,8 +49269,8 @@ Required: ` + m.join(", "));
|
|
|
49269
49269
|
last: be,
|
|
49270
49270
|
table: je
|
|
49271
49271
|
})))), Lh = (x, T) => $d(x, T), ib = (x, T, V) => xi(x, T, V).bind((K) => {
|
|
49272
|
-
const be = (on) => Qo(x, on), je = "thead,tfoot,tbody,table", gt = fi(K.first, je, be),
|
|
49273
|
-
return gt.bind((on) =>
|
|
49272
|
+
const be = (on) => Qo(x, on), je = "thead,tfoot,tbody,table", gt = fi(K.first, je, be), Rt = fi(K.last, je, be);
|
|
49273
|
+
return gt.bind((on) => Rt.bind((Hn) => Qo(on, Hn) ? Ag(K.table, K.first, K.last) : oe.none()));
|
|
49274
49274
|
}), $g = (x) => bt(x, Xn.fromDom), Mg = "data-mce-selected", Xu = "td[" + Mg + "],th[" + Mg + "]", Em = "data-mce-first-selected", Md = "td[" + Em + "],th[" + Em + "]", Ps = "data-mce-last-selected", qs = "td[" + Ps + "],th[" + Ps + "]", rl = {
|
|
49275
49275
|
selected: Mg,
|
|
49276
49276
|
selectedSelector: Xu,
|
|
@@ -49278,12 +49278,12 @@ Required: ` + m.join(", "));
|
|
|
49278
49278
|
firstSelectedSelector: Md,
|
|
49279
49279
|
lastSelected: Ps,
|
|
49280
49280
|
lastSelectedSelector: qs
|
|
49281
|
-
}, Pg = (x) =>
|
|
49281
|
+
}, Pg = (x) => Ot(x).bind((T) => Lh(T, rl.firstSelectedSelector)).fold(Mt(x), (T) => T[0]), Fh = (x) => (T, V) => {
|
|
49282
49282
|
const K = vt(T), be = K === "col" || K === "colgroup" ? Pg(T) : T;
|
|
49283
49283
|
return Ll(be, x, V);
|
|
49284
49284
|
}, ta = Fh("th,td,caption"), tu = Fh("th,td"), al = (x) => $g(x.model.table.getSelectedCells()), Ci = (x, T) => {
|
|
49285
|
-
const V = tu(x), K = V.bind((be) =>
|
|
49286
|
-
return Or(V, K, (be, je) => os(je, (gt) => br($g(gt.dom.cells), (
|
|
49285
|
+
const V = tu(x), K = V.bind((be) => Ot(be)).map((be) => Yn(be));
|
|
49286
|
+
return Or(V, K, (be, je) => os(je, (gt) => br($g(gt.dom.cells), (Rt) => da(Rt, T) === "1" || Qo(Rt, be)))).getOr([]);
|
|
49287
49287
|
}, Cf = [
|
|
49288
49288
|
{
|
|
49289
49289
|
text: "None",
|
|
@@ -49313,8 +49313,8 @@ Required: ` + m.join(", "));
|
|
|
49313
49313
|
blue: V,
|
|
49314
49314
|
alpha: K
|
|
49315
49315
|
}), Ju = (x, T, V, K) => {
|
|
49316
|
-
const be = parseInt(x, 10), je = parseInt(T, 10), gt = parseInt(V, 10),
|
|
49317
|
-
return Bd(be, je, gt,
|
|
49316
|
+
const be = parseInt(x, 10), je = parseInt(T, 10), gt = parseInt(V, 10), Rt = parseFloat(K);
|
|
49317
|
+
return Bd(be, je, gt, Rt);
|
|
49318
49318
|
}, rr = (x) => {
|
|
49319
49319
|
if (x === "transparent")
|
|
49320
49320
|
return oe.some(Bd(0, 0, 0, 0));
|
|
@@ -49328,8 +49328,8 @@ Required: ` + m.join(", "));
|
|
|
49328
49328
|
T.height = 1, T.width = 1;
|
|
49329
49329
|
const V = T.getContext("2d");
|
|
49330
49330
|
V.clearRect(0, 0, T.width, T.height), V.fillStyle = "#FFFFFF", V.fillStyle = x, V.fillRect(0, 0, 1, 1);
|
|
49331
|
-
const K = V.getImageData(0, 0, 1, 1).data, be = K[0], je = K[1], gt = K[2],
|
|
49332
|
-
return mr(Bd(be, je, gt,
|
|
49331
|
+
const K = V.getImageData(0, 0, 1, 1).data, be = K[0], je = K[1], gt = K[2], Rt = K[3];
|
|
49332
|
+
return mr(Bd(be, je, gt, Rt));
|
|
49333
49333
|
}), Gc = (x) => rr(x).map(mr).map((T) => "#" + T.value).getOr(x), Qu = (x) => {
|
|
49334
49334
|
let T = x;
|
|
49335
49335
|
return {
|
|
@@ -49346,14 +49346,14 @@ Required: ` + m.join(", "));
|
|
|
49346
49346
|
},
|
|
49347
49347
|
isSet: () => T.get().isSome(),
|
|
49348
49348
|
get: () => T.get(),
|
|
49349
|
-
set: (
|
|
49350
|
-
V(), T.set(oe.some(
|
|
49349
|
+
set: (Rt) => {
|
|
49350
|
+
V(), T.set(oe.some(Rt));
|
|
49351
49351
|
}
|
|
49352
49352
|
};
|
|
49353
49353
|
}, Bg = () => Sr((x) => x.unbind()), Vh = (x, T, V) => (K) => {
|
|
49354
49354
|
const be = Bg(), je = Ji(V), gt = () => {
|
|
49355
|
-
const
|
|
49356
|
-
je ? (K.setActive(!br(
|
|
49355
|
+
const Rt = al(x), on = (Hn) => x.formatter.match(T, { value: V }, Hn.dom, je);
|
|
49356
|
+
je ? (K.setActive(!br(Rt, on)), be.set(x.formatter.formatChanged(T, (Hn) => K.setActive(!Hn), !0))) : (K.setActive(vn(Rt, on)), be.set(x.formatter.formatChanged(T, K.setActive, !1, { value: V })));
|
|
49357
49357
|
};
|
|
49358
49358
|
return x.initialized ? gt() : x.on("init", gt), be.clear;
|
|
49359
49359
|
}, Zo = (x) => Jn(x, "menu"), qc = (x) => bt(x, (T) => {
|
|
@@ -49530,14 +49530,14 @@ Required: ` + m.join(", "));
|
|
|
49530
49530
|
}, Am = { normal: (x, T) => {
|
|
49531
49531
|
const V = x.dom;
|
|
49532
49532
|
return {
|
|
49533
|
-
setAttrib: (gt,
|
|
49534
|
-
V.setAttrib(T, gt,
|
|
49533
|
+
setAttrib: (gt, Rt) => {
|
|
49534
|
+
V.setAttrib(T, gt, Rt);
|
|
49535
49535
|
},
|
|
49536
|
-
setStyle: (gt,
|
|
49537
|
-
V.setStyle(T, gt,
|
|
49536
|
+
setStyle: (gt, Rt) => {
|
|
49537
|
+
V.setStyle(T, gt, Rt);
|
|
49538
49538
|
},
|
|
49539
|
-
setFormat: (gt,
|
|
49540
|
-
|
|
49539
|
+
setFormat: (gt, Rt) => {
|
|
49540
|
+
Rt === "" ? x.formatter.remove(gt, { value: null }, T, !0) : x.formatter.apply(gt, { value: Rt }, T);
|
|
49541
49541
|
}
|
|
49542
49542
|
};
|
|
49543
49543
|
} }, S = bl("th"), $ = (x, T) => x && T ? "sectionCells" : x ? "section" : "cells", U = (x) => {
|
|
@@ -49574,17 +49574,17 @@ Required: ` + m.join(", "));
|
|
|
49574
49574
|
const je = Pn(K);
|
|
49575
49575
|
if (je.length !== 1)
|
|
49576
49576
|
throw new Error("one and only one name per case");
|
|
49577
|
-
const gt = je[0],
|
|
49577
|
+
const gt = je[0], Rt = K[gt];
|
|
49578
49578
|
if (V[gt] !== void 0)
|
|
49579
49579
|
throw new Error("duplicate key detected:" + gt);
|
|
49580
49580
|
if (gt === "cata")
|
|
49581
49581
|
throw new Error("cannot have a case named cata (sorry)");
|
|
49582
|
-
if (!Q(
|
|
49582
|
+
if (!Q(Rt))
|
|
49583
49583
|
throw new Error("case arguments must be an array");
|
|
49584
49584
|
T.push(gt), V[gt] = (...on) => {
|
|
49585
49585
|
const Hn = on.length;
|
|
49586
|
-
if (Hn !==
|
|
49587
|
-
throw new Error("Wrong number of arguments to case " + gt + ". Expected " +
|
|
49586
|
+
if (Hn !== Rt.length)
|
|
49587
|
+
throw new Error("Wrong number of arguments to case " + gt + ". Expected " + Rt.length + " (" + Rt + "), got " + Hn);
|
|
49588
49588
|
return {
|
|
49589
49589
|
fold: (...Po) => {
|
|
49590
49590
|
if (Po.length !== x.length)
|
|
@@ -49637,7 +49637,7 @@ Required: ` + T.join(", "));
|
|
|
49637
49637
|
const Zt = (x, T) => {
|
|
49638
49638
|
const V = Wc.fromTable(x);
|
|
49639
49639
|
return zs(V, T).bind((be) => {
|
|
49640
|
-
const je = be[be.length - 1], gt = be[0].row,
|
|
49640
|
+
const je = be[be.length - 1], gt = be[0].row, Rt = je.row + je.rowspan, on = V.all.slice(gt, Rt);
|
|
49641
49641
|
return he(on);
|
|
49642
49642
|
}).getOr("");
|
|
49643
49643
|
}, su = (x) => Hl(x, "rgb") ? Gc(x) : x, ub = (x) => {
|
|
@@ -49653,8 +49653,8 @@ Required: ` + T.join(", "));
|
|
|
49653
49653
|
return z(V, (K) => {
|
|
49654
49654
|
z(Pn(T), (be) => {
|
|
49655
49655
|
Bn(K, (je, gt) => {
|
|
49656
|
-
const
|
|
49657
|
-
|
|
49656
|
+
const Rt = T[be];
|
|
49657
|
+
Rt !== "" && be === gt && Rt !== je && (T[be] = "");
|
|
49658
49658
|
});
|
|
49659
49659
|
});
|
|
49660
49660
|
}), T;
|
|
@@ -49683,7 +49683,7 @@ Required: ` + T.join(", "));
|
|
|
49683
49683
|
}, gt = () => {
|
|
49684
49684
|
const ar = V["border-width"];
|
|
49685
49685
|
return Zc(x) && ar ? { border: ar } : Gt(K, "border").fold(() => ({}), (Po) => ({ border: Po }));
|
|
49686
|
-
},
|
|
49686
|
+
}, Rt = T ? be() : {}, on = () => {
|
|
49687
49687
|
const ar = Gt(V, "border-spacing").or(Gt(K, "cellspacing")).fold(() => ({}), (Bs) => ({ cellspacing: Bs })), Po = Gt(V, "border-padding").or(Gt(K, "cellpadding")).fold(() => ({}), (Bs) => ({ cellpadding: Bs }));
|
|
49688
49688
|
return {
|
|
49689
49689
|
...ar,
|
|
@@ -49694,17 +49694,17 @@ Required: ` + T.join(", "));
|
|
|
49694
49694
|
...je,
|
|
49695
49695
|
...V,
|
|
49696
49696
|
...K,
|
|
49697
|
-
...
|
|
49697
|
+
...Rt,
|
|
49698
49698
|
...gt(),
|
|
49699
49699
|
...on()
|
|
49700
49700
|
};
|
|
49701
|
-
}, ru = (x) =>
|
|
49701
|
+
}, ru = (x) => Ot(Xn.fromDom(x)).map((T) => {
|
|
49702
49702
|
const V = { selection: $g(x.cells) };
|
|
49703
49703
|
return Zt(T, V);
|
|
49704
49704
|
}).getOr(""), Uh = (x, T, V) => {
|
|
49705
|
-
const K = (
|
|
49705
|
+
const K = (Rt, on) => {
|
|
49706
49706
|
const Hn = Ne(Xn.fromDom(on), "border-width");
|
|
49707
|
-
return Zc(x) && Hn.isSome() ? Hn.getOr("") :
|
|
49707
|
+
return Zc(x) && Hn.isSome() ? Hn.getOr("") : Rt.getAttrib(on, "border") || xl(x.dom, on, "border-width") || xl(x.dom, on, "border") || "";
|
|
49708
49708
|
}, be = x.dom, je = Zc(x) ? be.getStyle(T, "border-spacing") || be.getAttrib(T, "cellspacing") : be.getAttrib(T, "cellspacing") || be.getStyle(T, "border-spacing"), gt = Zc(x) ? xl(be, T, "padding") || be.getAttrib(T, "cellpadding") : be.getAttrib(T, "cellpadding") || xl(be, T, "padding");
|
|
49709
49709
|
return {
|
|
49710
49710
|
width: be.getStyle(T, "width") || be.getAttrib(T, "width"),
|
|
@@ -49727,7 +49727,7 @@ Required: ` + T.join(", "));
|
|
|
49727
49727
|
...V ? ub(T) : {}
|
|
49728
49728
|
};
|
|
49729
49729
|
}, db = (x, T, V, K) => {
|
|
49730
|
-
const be = x.dom, je = K.getOr(T), gt = (
|
|
49730
|
+
const be = x.dom, je = K.getOr(T), gt = (Rt, on) => be.getStyle(Rt, on) || be.getAttrib(Rt, on);
|
|
49731
49731
|
return {
|
|
49732
49732
|
width: gt(je, "width"),
|
|
49733
49733
|
height: gt(T, "height"),
|
|
@@ -49751,8 +49751,8 @@ Required: ` + T.join(", "));
|
|
|
49751
49751
|
}, Nd = (x, T, V, K) => {
|
|
49752
49752
|
const be = T.length === 1;
|
|
49753
49753
|
z(T, (je) => {
|
|
49754
|
-
const gt = je.element,
|
|
49755
|
-
ut(on, Hn, V,
|
|
49754
|
+
const gt = je.element, Rt = be ? Qn : K, on = Am.normal(x, gt), Hn = je.column.map((ar) => Am.normal(x, ar)).getOr(on);
|
|
49755
|
+
ut(on, Hn, V, Rt), wf(x) && mb(on, V, Rt), K("halign") && ac(x, gt, V.halign), K("valign") && xm(x, gt, V.valign);
|
|
49756
49756
|
});
|
|
49757
49757
|
}, nd = (x, T) => {
|
|
49758
49758
|
x.execCommand("mceTableCellType", !1, {
|
|
@@ -49761,11 +49761,11 @@ Required: ` + T.join(", "));
|
|
|
49761
49761
|
});
|
|
49762
49762
|
}, Vg = (x, T, V, K) => {
|
|
49763
49763
|
const be = Jo(K, (je, gt) => V[gt] !== je);
|
|
49764
|
-
A(be) > 0 && T.length >= 1 &&
|
|
49765
|
-
const gt = Hg(je, T),
|
|
49766
|
-
(
|
|
49764
|
+
A(be) > 0 && T.length >= 1 && Ot(T[0]).each((je) => {
|
|
49765
|
+
const gt = Hg(je, T), Rt = A(Jo(be, (Hn, ar) => ar !== "scope" && ar !== "celltype")) > 0, on = nt(be, "celltype");
|
|
49766
|
+
(Rt || nt(be, "scope")) && Nd(x, gt, K, de(nt, be)), on && nd(x, K), co(x, je.dom, {
|
|
49767
49767
|
structure: on,
|
|
49768
|
-
style:
|
|
49768
|
+
style: Rt
|
|
49769
49769
|
});
|
|
49770
49770
|
});
|
|
49771
49771
|
}, Ks = (x, T, V, K) => {
|
|
@@ -49774,7 +49774,7 @@ Required: ` + T.join(", "));
|
|
|
49774
49774
|
Vg(x, T, V, be), x.focus();
|
|
49775
49775
|
});
|
|
49776
49776
|
}, as = (x, T) => {
|
|
49777
|
-
const V =
|
|
49777
|
+
const V = Ot(T[0]).map((K) => bt(Hg(K, T), (be) => db(x, be.element, wf(x), be.column)));
|
|
49778
49778
|
return ku(V.getOrDie());
|
|
49779
49779
|
}, Sl = (x) => {
|
|
49780
49780
|
const T = al(x);
|
|
@@ -49881,8 +49881,8 @@ Required: ` + T.join(", "));
|
|
|
49881
49881
|
}, Wh = (x, T, V, K) => {
|
|
49882
49882
|
const je = T.length === 1 ? Qn : K;
|
|
49883
49883
|
z(T, (gt) => {
|
|
49884
|
-
const
|
|
49885
|
-
Na(
|
|
49884
|
+
const Rt = Am.normal(x, gt);
|
|
49885
|
+
Na(Rt, V, je), Cm(x) && fr(Rt, V, je), K("align") && ac(x, gt, V.align);
|
|
49886
49886
|
});
|
|
49887
49887
|
}, ot = (x, T) => {
|
|
49888
49888
|
x.execCommand("mceTableRowType", !1, {
|
|
@@ -49893,7 +49893,7 @@ Required: ` + T.join(", "));
|
|
|
49893
49893
|
const be = Jo(K, (je, gt) => V[gt] !== je);
|
|
49894
49894
|
if (A(be) > 0) {
|
|
49895
49895
|
const je = nt(be, "type"), gt = je ? A(be) > 1 : !0;
|
|
49896
|
-
gt && Wh(x, T, K, de(nt, be)), je && ot(x, K),
|
|
49896
|
+
gt && Wh(x, T, K, de(nt, be)), je && ot(x, K), Ot(Xn.fromDom(T[0])).each((Rt) => co(x, Rt.dom, {
|
|
49897
49897
|
structure: je,
|
|
49898
49898
|
style: gt
|
|
49899
49899
|
}));
|
|
@@ -50019,22 +50019,22 @@ Required: ` + T.join(", "));
|
|
|
50019
50019
|
value: "right"
|
|
50020
50020
|
}
|
|
50021
50021
|
]
|
|
50022
|
-
}],
|
|
50022
|
+
}], Rt = T.length > 0 ? [{
|
|
50023
50023
|
type: "listbox",
|
|
50024
50024
|
name: "class",
|
|
50025
50025
|
label: "Class",
|
|
50026
50026
|
items: T
|
|
50027
50027
|
}] : [];
|
|
50028
|
-
return K.concat(be).concat(je).concat(gt).concat(
|
|
50028
|
+
return K.concat(be).concat(je).concat(gt).concat(Rt);
|
|
50029
50029
|
}, fb = (x, T, V, K) => {
|
|
50030
50030
|
if (T.tagName === "TD" || T.tagName === "TH")
|
|
50031
|
-
Ae(V) &&
|
|
50031
|
+
Ae(V) && Cn(K) ? x.setStyle(T, V, K) : x.setStyles(T, V);
|
|
50032
50032
|
else if (T.children)
|
|
50033
50033
|
for (let be = 0; be < T.children.length; be++)
|
|
50034
50034
|
fb(x, T.children[be], V, K);
|
|
50035
50035
|
}, lu = (x, T, V, K) => {
|
|
50036
|
-
const be = x.dom, je = {}, gt = {},
|
|
50037
|
-
if (it(V.class) || (je.class = V.class), gt.height = vs(V.height),
|
|
50036
|
+
const be = x.dom, je = {}, gt = {}, Rt = Zc(x), on = ol(x);
|
|
50037
|
+
if (it(V.class) || (je.class = V.class), gt.height = vs(V.height), Rt ? gt.width = vs(V.width) : be.getAttrib(T, "width") && (je.width = Yi(V.width)), Rt ? (gt["border-width"] = vs(V.border), gt["border-spacing"] = vs(V.cellspacing)) : (je.border = V.border, je.cellpadding = V.cellpadding, je.cellspacing = V.cellspacing), Rt && T.children) {
|
|
50038
50038
|
const Hn = {};
|
|
50039
50039
|
if (K.border && (Hn["border-width"] = vs(V.border)), K.cellpadding && (Hn.padding = vs(V.cellpadding)), on && K.bordercolor && (Hn["border-color"] = V.bordercolor), !ln(Hn))
|
|
50040
50040
|
for (let ar = 0; ar < T.children.length; ar++)
|
|
@@ -50052,29 +50052,29 @@ Required: ` + T.join(", "));
|
|
|
50052
50052
|
...je
|
|
50053
50053
|
});
|
|
50054
50054
|
}, w1 = (x, T, V, K) => {
|
|
50055
|
-
const be = x.dom, je = K.getData(), gt = Jo(je, (
|
|
50055
|
+
const be = x.dom, je = K.getData(), gt = Jo(je, (Rt, on) => V[on] !== Rt);
|
|
50056
50056
|
K.close(), je.class === "" && delete je.class, x.undoManager.transact(() => {
|
|
50057
50057
|
if (!T) {
|
|
50058
|
-
const
|
|
50058
|
+
const Rt = $a(je.cols).getOr(1), on = $a(je.rows).getOr(1);
|
|
50059
50059
|
x.execCommand("mceInsertTable", !1, {
|
|
50060
50060
|
rows: on,
|
|
50061
|
-
columns:
|
|
50062
|
-
}), T = tu(ks(x), nl(x)).bind((Hn) =>
|
|
50061
|
+
columns: Rt
|
|
50062
|
+
}), T = tu(ks(x), nl(x)).bind((Hn) => Ot(Hn, nl(x))).map((Hn) => Hn.dom).getOrDie();
|
|
50063
50063
|
}
|
|
50064
50064
|
if (A(gt) > 0) {
|
|
50065
|
-
const
|
|
50065
|
+
const Rt = {
|
|
50066
50066
|
border: nt(gt, "border"),
|
|
50067
50067
|
bordercolor: nt(gt, "bordercolor"),
|
|
50068
50068
|
cellpadding: nt(gt, "cellpadding")
|
|
50069
50069
|
};
|
|
50070
|
-
lu(x, T, je,
|
|
50070
|
+
lu(x, T, je, Rt);
|
|
50071
50071
|
const on = be.select("caption", T)[0];
|
|
50072
50072
|
(on && !je.caption || !on && je.caption) && x.execCommand("mceTableToggleCaption"), ac(x, T, je.align);
|
|
50073
50073
|
}
|
|
50074
50074
|
if (x.focus(), x.addVisual(), A(gt) > 0) {
|
|
50075
|
-
const
|
|
50075
|
+
const Rt = nt(gt, "caption"), on = Rt ? A(gt) > 1 : !0;
|
|
50076
50076
|
co(x, T, {
|
|
50077
|
-
structure:
|
|
50077
|
+
structure: Rt,
|
|
50078
50078
|
style: on
|
|
50079
50079
|
});
|
|
50080
50080
|
}
|
|
@@ -50089,7 +50089,7 @@ Required: ` + T.join(", "));
|
|
|
50089
50089
|
type: "grid",
|
|
50090
50090
|
columns: 2,
|
|
50091
50091
|
items: au(x, je, T)
|
|
50092
|
-
},
|
|
50092
|
+
}, Rt = () => ({
|
|
50093
50093
|
type: "panel",
|
|
50094
50094
|
items: [gt]
|
|
50095
50095
|
}), on = () => ({
|
|
@@ -50102,7 +50102,7 @@ Required: ` + T.join(", "));
|
|
|
50102
50102
|
},
|
|
50103
50103
|
_f(x, "table")
|
|
50104
50104
|
]
|
|
50105
|
-
}), Hn = ol(x) ? on() :
|
|
50105
|
+
}), Hn = ol(x) ? on() : Rt();
|
|
50106
50106
|
x.windowManager.open({
|
|
50107
50107
|
title: "Table Properties",
|
|
50108
50108
|
size: "normal",
|
|
@@ -50152,7 +50152,7 @@ Required: ` + T.join(", "));
|
|
|
50152
50152
|
}), Om = (x) => {
|
|
50153
50153
|
const T = Qu(oe.none()), V = Qu([]);
|
|
50154
50154
|
let K = oe.none();
|
|
50155
|
-
const be = bl("caption"), je = (Ro) => K.forall((oo) => !oo[Ro]), gt = () => ta(ks(x), nl(x)),
|
|
50155
|
+
const be = bl("caption"), je = (Ro) => K.forall((oo) => !oo[Ro]), gt = () => ta(ks(x), nl(x)), Rt = () => ta(za(x), nl(x)), on = () => gt().bind((Ro) => ma(Or(Ot(Ro), Rt().bind(Ot), (oo, ya) => Qo(oo, ya) ? be(Ro) ? oe.some(Ia(Ro)) : oe.some(C1(al(x), oo, Ro)) : oe.none()))), Hn = (Ro) => Ot(Ro.element).map((ya) => {
|
|
50156
50156
|
const il = Wc.fromTable(ya), S1 = zs(il, Ro).getOr([]), od = Zi(S1, (ul, Pm) => (Pm.isLocked && (ul.onAny = !0, Pm.column === 0 ? ul.onFirst = !0 : Pm.column + Pm.colspan >= il.grid.columns && (ul.onLast = !0)), ul), {
|
|
50157
50157
|
onAny: !1,
|
|
50158
50158
|
onFirst: !1,
|
|
@@ -50175,7 +50175,7 @@ Required: ` + T.join(", "));
|
|
|
50175
50175
|
Ro.setEnabled(!1), Ro.setActive(!1);
|
|
50176
50176
|
}, (il) => {
|
|
50177
50177
|
Ro.setEnabled(!oo(il) && x.selection.isEditable()), Ro.setActive(ya(il));
|
|
50178
|
-
})), Gl = (Ro) => K.exists((oo) => oo.locked[Ro]), Xc = (Ro) => Bs(Ro, (oo) => !1), Ld = (Ro) => Bs(Ro, (oo) => be(oo.element)), cu = (Ro) => (oo) => Bs(oo, (ya) => be(ya.element) || Gl(Ro)), Ug = (Ro) => (oo) => Bs(oo, (ya) => be(ya.element) || Ro().isNone()), Tf = (Ro, oo) => (ya) => Bs(ya, (il) => be(il.element) || Ro().isNone() || Gl(oo)), $m = (Ro) => Bs(Ro, (oo) => je("mergeable")), Wg = (Ro) => Bs(Ro, (oo) => je("unmergeable")), Zr = (Ro) => mc(Ro, ca, (oo) =>
|
|
50178
|
+
})), Gl = (Ro) => K.exists((oo) => oo.locked[Ro]), Xc = (Ro) => Bs(Ro, (oo) => !1), Ld = (Ro) => Bs(Ro, (oo) => be(oo.element)), cu = (Ro) => (oo) => Bs(oo, (ya) => be(ya.element) || Gl(Ro)), Ug = (Ro) => (oo) => Bs(oo, (ya) => be(ya.element) || Ro().isNone()), Tf = (Ro, oo) => (ya) => Bs(ya, (il) => be(il.element) || Ro().isNone() || Gl(oo)), $m = (Ro) => Bs(Ro, (oo) => je("mergeable")), Wg = (Ro) => Bs(Ro, (oo) => je("unmergeable")), Zr = (Ro) => mc(Ro, ca, (oo) => Ot(oo.element, nl(x)).exists((il) => Ac(il, "caption"))), Jc = (Ro, oo) => (ya) => mc(ya, (il) => be(il.element), () => x.queryCommandValue(Ro) === oo), Ef = Jc("mceTableRowType", "header"), Mm = Jc("mceTableColType", "th");
|
|
50179
50179
|
return x.on("NodeChange ExecCommand TableSelectorChange", ar), {
|
|
50180
50180
|
onSetupTable: Xc,
|
|
50181
50181
|
onSetupCellOrRow: Ld,
|
|
@@ -50208,15 +50208,15 @@ Required: ` + T.join(", "));
|
|
|
50208
50208
|
tooltip: "Table",
|
|
50209
50209
|
icon: "table",
|
|
50210
50210
|
onSetup: Zl(x),
|
|
50211
|
-
fetch: (
|
|
50211
|
+
fetch: (Rt) => Rt("inserttable | cell row column | advtablesort | tableprops deletetable")
|
|
50212
50212
|
});
|
|
50213
|
-
const V = (
|
|
50214
|
-
x.queryCommandSupported(on.command) && x.ui.registry.addButton(
|
|
50213
|
+
const V = (Rt) => () => x.execCommand(Rt), K = (Rt, on) => {
|
|
50214
|
+
x.queryCommandSupported(on.command) && x.ui.registry.addButton(Rt, {
|
|
50215
50215
|
...on,
|
|
50216
50216
|
onAction: jn(on.onAction) ? on.onAction : V(on.command)
|
|
50217
50217
|
});
|
|
50218
|
-
}, be = (
|
|
50219
|
-
x.queryCommandSupported(on.command) && x.ui.registry.addToggleButton(
|
|
50218
|
+
}, be = (Rt, on) => {
|
|
50219
|
+
x.queryCommandSupported(on.command) && x.ui.registry.addToggleButton(Rt, {
|
|
50220
50220
|
...on,
|
|
50221
50221
|
onAction: jn(on.onAction) ? on.onAction : V(on.command)
|
|
50222
50222
|
});
|
|
@@ -50331,14 +50331,14 @@ Required: ` + T.join(", "));
|
|
|
50331
50331
|
je.length !== 0 && x.queryCommandSupported("mceTableToggleClass") && x.ui.registry.addMenuButton("tableclass", {
|
|
50332
50332
|
icon: "table-classes",
|
|
50333
50333
|
tooltip: "Table styles",
|
|
50334
|
-
fetch: nu(x, je, "tableclass", (
|
|
50334
|
+
fetch: nu(x, je, "tableclass", (Rt) => x.execCommand("mceTableToggleClass", !1, Rt)),
|
|
50335
50335
|
onSetup: T.onSetupTable
|
|
50336
50336
|
});
|
|
50337
50337
|
const gt = Su(_m(x));
|
|
50338
50338
|
gt.length !== 0 && x.queryCommandSupported("mceTableCellToggleClass") && x.ui.registry.addMenuButton("tablecellclass", {
|
|
50339
50339
|
icon: "table-cell-classes",
|
|
50340
50340
|
tooltip: "Cell styles",
|
|
50341
|
-
fetch: nu(x, gt, "tablecellclass", (
|
|
50341
|
+
fetch: nu(x, gt, "tablecellclass", (Rt) => x.execCommand("mceTableCellToggleClass", !1, Rt)),
|
|
50342
50342
|
onSetup: T.onSetupCellOrRow
|
|
50343
50343
|
}), x.queryCommandSupported("mceTableApplyCellStyle") && (x.ui.registry.addMenuButton("tablecellvalign", {
|
|
50344
50344
|
icon: "vertical-align",
|
|
@@ -50358,12 +50358,12 @@ Required: ` + T.join(", "));
|
|
|
50358
50358
|
}), x.ui.registry.addMenuButton("tablecellbackgroundcolor", {
|
|
50359
50359
|
icon: "cell-background-color",
|
|
50360
50360
|
tooltip: "Background color",
|
|
50361
|
-
fetch: (
|
|
50361
|
+
fetch: (Rt) => Rt(Gn(x, _g(x), "background-color")),
|
|
50362
50362
|
onSetup: T.onSetupCellOrRow
|
|
50363
50363
|
}), x.ui.registry.addMenuButton("tablecellbordercolor", {
|
|
50364
50364
|
icon: "cell-border-color",
|
|
50365
50365
|
tooltip: "Border color",
|
|
50366
|
-
fetch: (
|
|
50366
|
+
fetch: (Rt) => Rt(Gn(x, eu(x), "border-color")),
|
|
50367
50367
|
onSetup: T.onSetupCellOrRow
|
|
50368
50368
|
})), be("tablecaption", {
|
|
50369
50369
|
tooltip: "Table caption",
|
|
@@ -50461,7 +50461,7 @@ Required: ` + T.join(", "));
|
|
|
50461
50461
|
command: "mceTablePasteRowAfter",
|
|
50462
50462
|
onSetup: T.onSetupPasteable(Kc)
|
|
50463
50463
|
})
|
|
50464
|
-
],
|
|
50464
|
+
], Rt = [
|
|
50465
50465
|
K("tableinsertcolumnbefore", {
|
|
50466
50466
|
text: "Insert column before",
|
|
50467
50467
|
icon: "table-insert-column-before",
|
|
@@ -50556,7 +50556,7 @@ Required: ` + T.join(", "));
|
|
|
50556
50556
|
type: "nestedmenuitem",
|
|
50557
50557
|
text: "Row",
|
|
50558
50558
|
getSubmenuItems: Mt("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")
|
|
50559
|
-
}), ao(
|
|
50559
|
+
}), ao(Rt, !0) && x.ui.registry.addNestedMenuItem("column", {
|
|
50560
50560
|
type: "nestedmenuitem",
|
|
50561
50561
|
text: "Column",
|
|
50562
50562
|
getSubmenuItems: Mt("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")
|
|
@@ -50741,7 +50741,7 @@ Required: ` + T.join(", "));
|
|
|
50741
50741
|
new RegExp(Ae.katakana),
|
|
50742
50742
|
new RegExp(Ae.extendnumlet),
|
|
50743
50743
|
new RegExp("@")
|
|
50744
|
-
], it = "",
|
|
50744
|
+
], it = "", Dt = new RegExp("^" + Ae.punctuation + "$"), Cn = /^\s+$/, jn = Pe, Vo = Q.OTHER, Us = (qe) => {
|
|
50745
50745
|
let At = Vo;
|
|
50746
50746
|
const Ke = jn.length;
|
|
50747
50747
|
for (let _e = 0; _e < Ke; ++_e) {
|
|
@@ -50774,7 +50774,7 @@ Required: ` + T.join(", "));
|
|
|
50774
50774
|
return !1;
|
|
50775
50775
|
const jo = qe[At - 1];
|
|
50776
50776
|
return (Ke === Q.MIDLETTER || Ke === Q.MIDNUMLET || _e === Q.AT) && _e === Q.ALETTER && jo === Q.ALETTER || (Ke === Q.NUMERIC || Ke === Q.ALETTER) && (_e === Q.NUMERIC || _e === Q.ALETTER) || (Ke === Q.MIDNUM || Ke === Q.MIDNUMLET) && _e === Q.NUMERIC && jo === Q.NUMERIC || Ke === Q.NUMERIC && (_e === Q.MIDNUM || _e === Q.MIDNUMLET) && vn === Q.NUMERIC || (Ke === Q.EXTEND || Ke === Q.FORMAT) && (_e === Q.ALETTER || _e === Q.NUMERIC || _e === Q.KATAKANA || _e === Q.EXTEND || _e === Q.FORMAT) || (_e === Q.EXTEND || _e === Q.FORMAT && (vn === Q.ALETTER || vn === Q.NUMERIC || vn === Q.KATAKANA || vn === Q.EXTEND || vn === Q.FORMAT)) && (Ke === Q.ALETTER || Ke === Q.NUMERIC || Ke === Q.KATAKANA || Ke === Q.EXTEND || Ke === Q.FORMAT) || Ke === Q.CR && _e === Q.LF ? !1 : Ke === Q.NEWLINE || Ke === Q.CR || Ke === Q.LF || _e === Q.NEWLINE || _e === Q.CR || _e === Q.LF ? !0 : !(Ke === Q.KATAKANA && _e === Q.KATAKANA || _e === Q.EXTENDNUMLET && (Ke === Q.ALETTER || Ke === Q.NUMERIC || Ke === Q.KATAKANA || Ke === Q.EXTENDNUMLET) || Ke === Q.EXTENDNUMLET && (_e === Q.ALETTER || _e === Q.NUMERIC || _e === Q.KATAKANA) || Ke === Q.AT);
|
|
50777
|
-
}, fn = it, de =
|
|
50777
|
+
}, fn = it, de = Cn, kt = Dt, ca = (qe) => qe === "http" || qe === "https", Qn = (qe, At) => {
|
|
50778
50778
|
let Ke;
|
|
50779
50779
|
for (Ke = At; Ke < qe.length && !de.test(qe[Ke]); Ke++)
|
|
50780
50780
|
;
|
|
@@ -50991,7 +50991,7 @@ const BQ = { class: "font-bold ptext-lg dark:text-white" }, NQ = ["id"], IQ = /*
|
|
|
50991
50991
|
fe("update:modelValue", it);
|
|
50992
50992
|
}
|
|
50993
50993
|
});
|
|
50994
|
-
return me({ focus: () => G.value.focus() }), (it,
|
|
50994
|
+
return me({ focus: () => G.value.focus() }), (it, Dt) => (ve(), we(fo, null, [
|
|
50995
50995
|
R.show ? (ve(), we("div", {
|
|
50996
50996
|
key: 0,
|
|
50997
50997
|
class: rn(R.field_name)
|
|
@@ -51023,8 +51023,8 @@ const BQ = { class: "font-bold ptext-lg dark:text-white" }, NQ = ["id"], IQ = /*
|
|
|
51023
51023
|
"gl-textarea-form-invalid mt-4": R.error_message !== ""
|
|
51024
51024
|
}]),
|
|
51025
51025
|
type: R.type,
|
|
51026
|
-
"onUpdate:modelValue":
|
|
51027
|
-
onKeydown:
|
|
51026
|
+
"onUpdate:modelValue": Dt[0] || (Dt[0] = (Cn) => Pe.value = Cn),
|
|
51027
|
+
onKeydown: Dt[1] || (Dt[1] = (Cn) => it.$emit("keydown", Cn)),
|
|
51028
51028
|
ref_key: "input",
|
|
51029
51029
|
ref: G,
|
|
51030
51030
|
rows: "4"
|
|
@@ -51484,7 +51484,7 @@ function Eee(R, me, se, Ee, fe, G) {
|
|
|
51484
51484
|
P("tr", null, [
|
|
51485
51485
|
(ve(!0), we(fo, null, hr(se.columns, (Pe, it) => (ve(), we("th", {
|
|
51486
51486
|
key: it,
|
|
51487
|
-
onClick: (
|
|
51487
|
+
onClick: (Dt) => G.updateSortColumn(Pe.field_name, Pe.sortable),
|
|
51488
51488
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
51489
51489
|
}, [
|
|
51490
51490
|
_o(ft(Pe.field_label) + " ", 1),
|
|
@@ -51504,26 +51504,26 @@ function Eee(R, me, se, Ee, fe, G) {
|
|
|
51504
51504
|
key: it,
|
|
51505
51505
|
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"
|
|
51506
51506
|
}, [
|
|
51507
|
-
(ve(!0), we(fo, null, hr(se.columns, (
|
|
51508
|
-
key:
|
|
51509
|
-
"data-label":
|
|
51507
|
+
(ve(!0), we(fo, null, hr(se.columns, (Dt, Cn) => (ve(), we("td", {
|
|
51508
|
+
key: Cn,
|
|
51509
|
+
"data-label": Dt.field_label,
|
|
51510
51510
|
class: rn(["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", {
|
|
51511
|
-
"rounded-t-lg lg:rounded-t-none":
|
|
51512
|
-
"rounded-b-lg lg:rounded-b-none":
|
|
51511
|
+
"rounded-t-lg lg:rounded-t-none": Cn === 0,
|
|
51512
|
+
"rounded-b-lg lg:rounded-b-none": Cn === se.columns.length - 1
|
|
51513
51513
|
}])
|
|
51514
51514
|
}, [
|
|
51515
51515
|
P("div", kee, [
|
|
51516
|
-
|
|
51516
|
+
Dt.tdComp ? (ve(), Ty(o5(G.forDynCompIs(Dt.tdComp)), {
|
|
51517
51517
|
key: 0,
|
|
51518
51518
|
row: Pe,
|
|
51519
|
-
field:
|
|
51519
|
+
field: Dt.field_name,
|
|
51520
51520
|
xprops: se.xprops,
|
|
51521
|
-
tdProps:
|
|
51521
|
+
tdProps: Dt.tdProps,
|
|
51522
51522
|
onDeleteAction: me[3] || (me[3] = (jn) => G.GetItemLists()),
|
|
51523
51523
|
onEditAction: (jn) => G.editAction(Pe),
|
|
51524
51524
|
onGeneralAction: (jn) => G.generalAction(Pe)
|
|
51525
51525
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (ve(), we(fo, { key: 1 }, [
|
|
51526
|
-
_o(ft(Pe[
|
|
51526
|
+
_o(ft(Pe[Dt.field_name]), 1)
|
|
51527
51527
|
], 64))
|
|
51528
51528
|
])
|
|
51529
51529
|
], 10, _ee))), 128))
|
|
@@ -51818,12 +51818,12 @@ function vte(R, me, se, Ee, fe, G) {
|
|
|
51818
51818
|
key: Pe,
|
|
51819
51819
|
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"
|
|
51820
51820
|
}, [
|
|
51821
|
-
(ve(!0), we(fo, null, hr(se.columns, (it,
|
|
51822
|
-
key:
|
|
51821
|
+
(ve(!0), we(fo, null, hr(se.columns, (it, Dt) => (ve(), we("td", {
|
|
51822
|
+
key: Dt,
|
|
51823
51823
|
"data-label": it.field_label,
|
|
51824
51824
|
class: rn(["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", {
|
|
51825
|
-
"rounded-t-lg lg:rounded-t-none":
|
|
51826
|
-
"rounded-b-lg lg:rounded-b-none":
|
|
51825
|
+
"rounded-t-lg lg:rounded-t-none": Dt === 0,
|
|
51826
|
+
"rounded-b-lg lg:rounded-b-none": Dt === se.columns.length - 1
|
|
51827
51827
|
}])
|
|
51828
51828
|
}, [
|
|
51829
51829
|
P("div", Yee, [
|
|
@@ -51833,9 +51833,9 @@ function vte(R, me, se, Ee, fe, G) {
|
|
|
51833
51833
|
field: it.field_name,
|
|
51834
51834
|
xprops: se.xprops,
|
|
51835
51835
|
tdProps: it.tdProps,
|
|
51836
|
-
onDeleteAction: me[2] || (me[2] = (
|
|
51837
|
-
onEditAction: (
|
|
51838
|
-
onGeneralAction: (
|
|
51836
|
+
onDeleteAction: me[2] || (me[2] = (Cn) => G.GetItemLists()),
|
|
51837
|
+
onEditAction: (Cn) => G.editAction(Q),
|
|
51838
|
+
onGeneralAction: (Cn) => G.generalAction(Q)
|
|
51839
51839
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (ve(), we(fo, { key: 1 }, [
|
|
51840
51840
|
_o(ft(Q[it.field_name]), 1)
|
|
51841
51841
|
], 64))
|
|
@@ -52120,7 +52120,7 @@ function Zte(R, me, se, Ee, fe, G) {
|
|
|
52120
52120
|
P("tr", null, [
|
|
52121
52121
|
(ve(!0), we(fo, null, hr(se.columns, (Pe, it) => (ve(), we("th", {
|
|
52122
52122
|
key: it,
|
|
52123
|
-
onClick: (
|
|
52123
|
+
onClick: (Dt) => G.updateSortColumn(Pe.field_name, Pe.sortable),
|
|
52124
52124
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
52125
52125
|
}, [
|
|
52126
52126
|
_o(ft(Pe.field_label) + " ", 1),
|
|
@@ -52143,8 +52143,8 @@ function Zte(R, me, se, Ee, fe, G) {
|
|
|
52143
52143
|
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"
|
|
52144
52144
|
}, ft(it), 9, Vte)
|
|
52145
52145
|
]),
|
|
52146
|
-
(ve(!0), we(fo, null, hr(Pe, (
|
|
52147
|
-
key:
|
|
52146
|
+
(ve(!0), we(fo, null, hr(Pe, (Dt, Cn) => (ve(), we("tr", {
|
|
52147
|
+
key: Cn,
|
|
52148
52148
|
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"
|
|
52149
52149
|
}, [
|
|
52150
52150
|
(ve(!0), we(fo, null, hr(se.columns, (jn, Vo) => (ve(), we("td", {
|
|
@@ -52155,14 +52155,14 @@ function Zte(R, me, se, Ee, fe, G) {
|
|
|
52155
52155
|
P("div", Ute, [
|
|
52156
52156
|
jn.tdComp ? (ve(), Ty(o5(G.forDynCompIs(jn.tdComp)), {
|
|
52157
52157
|
key: 0,
|
|
52158
|
-
row:
|
|
52158
|
+
row: Dt,
|
|
52159
52159
|
field: jn.field_name,
|
|
52160
52160
|
xprops: se.xprops,
|
|
52161
52161
|
tdProps: jn.tdProps,
|
|
52162
52162
|
onDeleteAction: me[3] || (me[3] = (Us) => G.GetItemLists()),
|
|
52163
|
-
onEditAction: (Us) => G.editAction(
|
|
52163
|
+
onEditAction: (Us) => G.editAction(Dt)
|
|
52164
52164
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (ve(), we(fo, { key: 1 }, [
|
|
52165
|
-
_o(ft(
|
|
52165
|
+
_o(ft(Dt[jn.field_name]), 1)
|
|
52166
52166
|
], 64))
|
|
52167
52167
|
])
|
|
52168
52168
|
], 8, zte))), 128))
|
|
@@ -52383,14 +52383,14 @@ function $ne(R, me, se, Ee, fe, G) {
|
|
|
52383
52383
|
key: Pe,
|
|
52384
52384
|
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"
|
|
52385
52385
|
}, [
|
|
52386
|
-
(ve(!0), we(fo, null, hr(se.columns, (it,
|
|
52387
|
-
key:
|
|
52386
|
+
(ve(!0), we(fo, null, hr(se.columns, (it, Dt) => (ve(), we("td", {
|
|
52387
|
+
key: Dt,
|
|
52388
52388
|
"data-label": it,
|
|
52389
52389
|
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"
|
|
52390
52390
|
}, [
|
|
52391
52391
|
P("p", {
|
|
52392
52392
|
class: "text-pretty",
|
|
52393
|
-
innerHTML: Q[
|
|
52393
|
+
innerHTML: Q[Dt]
|
|
52394
52394
|
}, null, 8, une)
|
|
52395
52395
|
], 8, ine))), 128))
|
|
52396
52396
|
]))), 128))
|
|
@@ -52505,11 +52505,11 @@ const tle = /* @__PURE__ */ Jr(Mne, [["render", Pne]]), Bne = {
|
|
|
52505
52505
|
const R = No(!1), me = QG("accordionsWrapper"), Ee = (() => {
|
|
52506
52506
|
var it = (/* @__PURE__ */ new Date()).getTime();
|
|
52507
52507
|
typeof performance < "u" && typeof performance.now == "function" && (it += performance.now());
|
|
52508
|
-
var
|
|
52508
|
+
var Dt = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(Cn) {
|
|
52509
52509
|
var jn = (it + Math.random() * 16) % 16 | 0;
|
|
52510
|
-
return it = Math.floor(it / 16), (
|
|
52510
|
+
return it = Math.floor(it / 16), (Cn === "x" ? jn : jn & 3 | 8).toString(16);
|
|
52511
52511
|
});
|
|
52512
|
-
return
|
|
52512
|
+
return Dt;
|
|
52513
52513
|
})(), fe = { isOpen: R, id: Ee }, G = vc(() => me.accordions.value), Ae = vc(() => G.value.length > 0 && G.value[0].id === Ee), Q = vc(() => G.value.length > 0 && G.value[G.value.length - 1].id === Ee);
|
|
52514
52514
|
return Oh(() => {
|
|
52515
52515
|
me.registerAccordion(fe);
|
|
@@ -52749,26 +52749,26 @@ const nle = /* @__PURE__ */ Jr(Bne, [["render", Une]]), Wne = {
|
|
|
52749
52749
|
fe.value = !1;
|
|
52750
52750
|
}, Pe = () => {
|
|
52751
52751
|
fe.value = !0;
|
|
52752
|
-
}, it = me,
|
|
52752
|
+
}, it = me, Dt = () => {
|
|
52753
52753
|
axios.delete(`${se.xprops.route}/${se.row.id}`).then(() => {
|
|
52754
52754
|
Q(), it("deleteAction"), s5.methods.add({
|
|
52755
52755
|
message: "Item deleted successfully.",
|
|
52756
52756
|
type: "success",
|
|
52757
52757
|
duration: 5e3
|
|
52758
52758
|
});
|
|
52759
|
-
}).catch((
|
|
52760
|
-
console.log(
|
|
52759
|
+
}).catch((Cn) => {
|
|
52760
|
+
console.log(Cn);
|
|
52761
52761
|
});
|
|
52762
52762
|
};
|
|
52763
|
-
return (
|
|
52763
|
+
return (Cn, jn) => {
|
|
52764
52764
|
const Vo = nq("click-outside");
|
|
52765
52765
|
return ve(), we(fo, null, [
|
|
52766
52766
|
cb(Oj, {
|
|
52767
52767
|
isOpen: fe.value,
|
|
52768
|
-
onConfirmDelete:
|
|
52768
|
+
onConfirmDelete: Dt,
|
|
52769
52769
|
onCancelDelete: Q
|
|
52770
52770
|
}, null, 8, ["isOpen"]),
|
|
52771
|
-
R.row &&
|
|
52771
|
+
R.row && Cn.can(`edit_${R.xprops.permission} || delete_${R.xprops.permission}`) ? Qa((ve(), we("div", coe, [
|
|
52772
52772
|
P("button", {
|
|
52773
52773
|
onClick: Ae,
|
|
52774
52774
|
class: "inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-white rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",
|
|
@@ -52776,7 +52776,7 @@ const nle = /* @__PURE__ */ Jr(Bne, [["render", Une]]), Wne = {
|
|
|
52776
52776
|
}, uoe),
|
|
52777
52777
|
Qa(P("div", doe, [
|
|
52778
52778
|
P("ul", moe, [
|
|
52779
|
-
|
|
52779
|
+
Cn.can(`edit_${R.xprops.permission}`) ? (ve(), we("li", foe, [
|
|
52780
52780
|
P("a", {
|
|
52781
52781
|
href: R.xprops.route + "/" + R.row.id + "/edit",
|
|
52782
52782
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
@@ -52785,7 +52785,7 @@ const nle = /* @__PURE__ */ Jr(Bne, [["render", Une]]), Wne = {
|
|
|
52785
52785
|
_o(" Edit")
|
|
52786
52786
|
], 8, goe)
|
|
52787
52787
|
])) : pt("", !0),
|
|
52788
|
-
|
|
52788
|
+
Cn.can(`delete_${R.xprops.permission}`) ? (ve(), we("li", poe, [
|
|
52789
52789
|
P("a", {
|
|
52790
52790
|
href: "#",
|
|
52791
52791
|
onClick: oc(Pe, ["prevent"]),
|
|
@@ -52855,26 +52855,26 @@ const nle = /* @__PURE__ */ Jr(Bne, [["render", Une]]), Wne = {
|
|
|
52855
52855
|
fe.value = !1;
|
|
52856
52856
|
}, Pe = () => {
|
|
52857
52857
|
fe.value = !0;
|
|
52858
|
-
}, it = me,
|
|
52858
|
+
}, it = me, Dt = () => {
|
|
52859
52859
|
axios.delete(`${se.xprops.route}/${se.row.id}`).then(() => {
|
|
52860
52860
|
Q(), it("deleteAction"), s5.methods.add({
|
|
52861
52861
|
message: "Item deleted successfully.",
|
|
52862
52862
|
type: "success",
|
|
52863
52863
|
duration: 5e3
|
|
52864
52864
|
});
|
|
52865
|
-
}).catch((
|
|
52866
|
-
console.log(
|
|
52865
|
+
}).catch((Cn) => {
|
|
52866
|
+
console.log(Cn);
|
|
52867
52867
|
});
|
|
52868
52868
|
};
|
|
52869
|
-
return (
|
|
52869
|
+
return (Cn, jn) => {
|
|
52870
52870
|
const Vo = nq("click-outside");
|
|
52871
52871
|
return ve(), we(fo, null, [
|
|
52872
52872
|
cb(Oj, {
|
|
52873
52873
|
isOpen: fe.value,
|
|
52874
|
-
onConfirmDelete:
|
|
52874
|
+
onConfirmDelete: Dt,
|
|
52875
52875
|
onCancelDelete: Q
|
|
52876
52876
|
}, null, 8, ["isOpen"]),
|
|
52877
|
-
R.row &&
|
|
52877
|
+
R.row && Cn.can(`delete_${R.xprops.permission}`) ? Qa((ve(), we("div", voe, [
|
|
52878
52878
|
P("button", {
|
|
52879
52879
|
onClick: Ae,
|
|
52880
52880
|
class: "inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-white rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",
|
|
@@ -52882,7 +52882,7 @@ const nle = /* @__PURE__ */ Jr(Bne, [["render", Une]]), Wne = {
|
|
|
52882
52882
|
}, woe),
|
|
52883
52883
|
Qa(P("div", xoe, [
|
|
52884
52884
|
P("ul", Coe, [
|
|
52885
|
-
|
|
52885
|
+
Cn.can(`delete_${R.xprops.permission}`) ? (ve(), we("li", Soe, [
|
|
52886
52886
|
P("a", {
|
|
52887
52887
|
href: "#",
|
|
52888
52888
|
onClick: oc(Pe, ["prevent"]),
|
|
@@ -53525,9 +53525,9 @@ const xle = /* @__PURE__ */ Jr(ure, [["render", Cre]]), Sre = {
|
|
|
53525
53525
|
setup(R, { expose: me }) {
|
|
53526
53526
|
const se = No(""), Ee = No(""), fe = No(""), G = No("Cancel"), Ae = No(!1), Q = No(void 0), Pe = No(void 0), it = (jn = {}) => (se.value = jn.title, Ee.value = jn.message, fe.value = jn.okButton, jn.cancelButton && (G.value = jn.cancelButton), Ae.value = !0, new Promise((Vo, Us) => {
|
|
53527
53527
|
Q.value = Vo, Pe.value = Us;
|
|
53528
|
-
})),
|
|
53528
|
+
})), Dt = () => {
|
|
53529
53529
|
Ae.value = !1, Q.value(!0);
|
|
53530
|
-
},
|
|
53530
|
+
}, Cn = () => {
|
|
53531
53531
|
Ae.value = !1, Q.value(!1);
|
|
53532
53532
|
};
|
|
53533
53533
|
return me({
|
|
@@ -53549,12 +53549,12 @@ const xle = /* @__PURE__ */ Jr(ure, [["render", Cre]]), Sre = {
|
|
|
53549
53549
|
]),
|
|
53550
53550
|
P("div", Pre, [
|
|
53551
53551
|
P("button", {
|
|
53552
|
-
onClick:
|
|
53552
|
+
onClick: Dt,
|
|
53553
53553
|
type: "button",
|
|
53554
53554
|
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"
|
|
53555
53555
|
}, ft(fe.value), 1),
|
|
53556
53556
|
P("button", {
|
|
53557
|
-
onClick:
|
|
53557
|
+
onClick: Cn,
|
|
53558
53558
|
type: "button",
|
|
53559
53559
|
class: "inline-flex justify-center w-full px-4 py-2 mt-3 text-base font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
53560
53560
|
}, ft(G.value), 1)
|