iking-web-ui-pro 0.2.35 → 0.2.36
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/IKPreviewFile/ik.index.es.js +10 -6
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +10 -6
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkDescription/ik.index.es.js +10 -6
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +254 -250
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/index.es.js +893 -889
- package/dist/index.umd.js +36 -36
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1289,7 +1289,7 @@ const Zle = /* @__PURE__ */ fo({
|
|
|
1289
1289
|
default:
|
|
1290
1290
|
return Ze(wo, null, null);
|
|
1291
1291
|
}
|
|
1292
|
-
},
|
|
1292
|
+
}, q = no(() => {
|
|
1293
1293
|
const G = [];
|
|
1294
1294
|
return i.forEach((le, Z) => {
|
|
1295
1295
|
let Y;
|
|
@@ -1303,7 +1303,7 @@ const Zle = /* @__PURE__ */ fo({
|
|
|
1303
1303
|
}));
|
|
1304
1304
|
}), G;
|
|
1305
1305
|
});
|
|
1306
|
-
return () => Ze(wo, null, [
|
|
1306
|
+
return () => Ze(wo, null, [q.value]);
|
|
1307
1307
|
}
|
|
1308
1308
|
}), qle = { class: "ik-head-left" }, Kle = { class: "ik-head-right" }, Yle = /* @__PURE__ */ fo({
|
|
1309
1309
|
__name: "IKSearchHead",
|
|
@@ -1431,10 +1431,10 @@ const tr = (c, r) => {
|
|
|
1431
1431
|
setup(c, { emit: r }) {
|
|
1432
1432
|
const a = c, l = r, i = {}, f = {}, p = Tn([]), y = Tn({ ...f }), S = Tn(null), k = Tn(!1);
|
|
1433
1433
|
Ei(p, (z, U) => {
|
|
1434
|
-
const
|
|
1435
|
-
if (
|
|
1434
|
+
const q = U.filter((G) => !z.includes(G));
|
|
1435
|
+
if (q.length) {
|
|
1436
1436
|
let G = !1;
|
|
1437
|
-
|
|
1437
|
+
q.forEach((le) => {
|
|
1438
1438
|
y.value[le] !== void 0 && (G = !0), y.value[le] = void 0;
|
|
1439
1439
|
}), G && l("search", y.value);
|
|
1440
1440
|
}
|
|
@@ -1460,9 +1460,9 @@ const tr = (c, r) => {
|
|
|
1460
1460
|
return (z, U) => (pe(), He("div", null, [
|
|
1461
1461
|
Ze(Soe, {
|
|
1462
1462
|
rowData: a.rowData,
|
|
1463
|
-
onDelete: U[0] || (U[0] = (
|
|
1464
|
-
onImport: U[1] || (U[1] = (
|
|
1465
|
-
onExport: U[2] || (U[2] = (
|
|
1463
|
+
onDelete: U[0] || (U[0] = (q) => l("delete", c.rowData)),
|
|
1464
|
+
onImport: U[1] || (U[1] = (q) => l("import", c.rowData)),
|
|
1465
|
+
onExport: U[2] || (U[2] = (q) => l("export", c.rowData))
|
|
1466
1466
|
}, null, 8, ["rowData"]),
|
|
1467
1467
|
Ze(Ge(loe), {
|
|
1468
1468
|
class: Jo(["gl-search-card", k.value ? "pack-up-search" : "ik-unfold-search"]),
|
|
@@ -1477,7 +1477,7 @@ const tr = (c, r) => {
|
|
|
1477
1477
|
"status-icon": c.statusIcon,
|
|
1478
1478
|
"label-width": `${c.labelWidth}px`,
|
|
1479
1479
|
class: "in-label",
|
|
1480
|
-
onKeydown: U[5] || (U[5] = kie(Tu((
|
|
1480
|
+
onKeydown: U[5] || (U[5] = kie(Tu((q) => l("search", y.value), ["prevent"]), ["enter"]))
|
|
1481
1481
|
}, {
|
|
1482
1482
|
default: Rt(() => [
|
|
1483
1483
|
Ze(Ge(coe), { gutter: 10 }, {
|
|
@@ -1485,20 +1485,20 @@ const tr = (c, r) => {
|
|
|
1485
1485
|
(pe(!0), He(
|
|
1486
1486
|
wo,
|
|
1487
1487
|
null,
|
|
1488
|
-
qr(R.value, (
|
|
1488
|
+
qr(R.value, (q, G) => (pe(), Nn(Ge(uoe), {
|
|
1489
1489
|
key: G,
|
|
1490
1490
|
class: Jo(
|
|
1491
1491
|
[
|
|
1492
1492
|
"el-col",
|
|
1493
1493
|
"el-col-24",
|
|
1494
|
-
`el-col-sm-${12 * (
|
|
1495
|
-
`el-col-md-${8 * (
|
|
1496
|
-
`el-col-lg-${6 * (
|
|
1497
|
-
`el-col-xl-${4 * (
|
|
1494
|
+
`el-col-sm-${12 * (q.col || 1) * (G === R.value.length - 1 ? 2 : 1)}`,
|
|
1495
|
+
`el-col-md-${8 * (q.col || 1) * (G === R.value.length - 1 ? 2 : 1)}`,
|
|
1496
|
+
`el-col-lg-${6 * (q.col || 1) * (G === R.value.length - 1 ? 2 : 1)}`,
|
|
1497
|
+
`el-col-xl-${4 * (q.col || 1) * (G === R.value.length - 1 ? 2 : 1)}`,
|
|
1498
1498
|
"is-guttered",
|
|
1499
1499
|
"el-col-4",
|
|
1500
|
-
`el-col-l-${4 * (
|
|
1501
|
-
`el-col-sl-${5 * (
|
|
1500
|
+
`el-col-l-${4 * (q.col || 1) * (G === R.value.length - 1 ? 2 : 1)}`,
|
|
1501
|
+
`el-col-sl-${5 * (q.col || 1) * (G === R.value.length - 1 ? 2 : 1)}`,
|
|
1502
1502
|
`${G === R.value.length - 1 ? "last-col" : ""}`
|
|
1503
1503
|
].join(" ")
|
|
1504
1504
|
)
|
|
@@ -1510,8 +1510,8 @@ const tr = (c, r) => {
|
|
|
1510
1510
|
class: Jo(["last-with-btn", G === R.value.length - 1 ? "last-form" : ""])
|
|
1511
1511
|
},
|
|
1512
1512
|
[
|
|
1513
|
-
|
|
1514
|
-
|
|
1513
|
+
q != null && q.slot ? dr(z.$slots, q == null ? void 0 : q.slot, { key: 0 }, void 0, !0) : bt("v-if", !0),
|
|
1514
|
+
q != null && q.slot ? bt("v-if", !0) : (pe(), Nn(Ge(Zle), {
|
|
1515
1515
|
key: 1,
|
|
1516
1516
|
onHandleChange: U[3] || (U[3] = (le) => l("search", y.value)),
|
|
1517
1517
|
list: [c.list[G]]
|
|
@@ -1666,8 +1666,8 @@ const Jle = /* @__PURE__ */ tr(Qle, [["__scopeId", "data-v-403809ec"]]), Axe = f
|
|
|
1666
1666
|
let z = "", U = V + 1;
|
|
1667
1667
|
return U < i.value ? z = "before-style" : U < a.list.length && (z = "after-style"), `${z} bottom`;
|
|
1668
1668
|
}, k = (V, z) => {
|
|
1669
|
-
let U = "",
|
|
1670
|
-
return
|
|
1669
|
+
let U = "", q = V + 1, G = z + 1;
|
|
1670
|
+
return q < i.value ? U = "before-text" : q === i.value ? G < f.value ? U = "before-text" : G === f.value ? U = "active-text" : G > f.value && (U = "after-text") : q > i.value && (U = "after-text"), `${U} child-text`;
|
|
1671
1671
|
}, R = (V, z) => {
|
|
1672
1672
|
a.needClick && (V[a.propsField.children] || (l("update:active", z + ""), l("click", V)));
|
|
1673
1673
|
}, $ = (V, z) => {
|
|
@@ -1679,26 +1679,26 @@ const Jle = /* @__PURE__ */ tr(Qle, [["__scopeId", "data-v-403809ec"]]), Axe = f
|
|
|
1679
1679
|
(pe(!0), He(
|
|
1680
1680
|
wo,
|
|
1681
1681
|
null,
|
|
1682
|
-
qr(c.list, (U,
|
|
1682
|
+
qr(c.list, (U, q) => {
|
|
1683
1683
|
var G, le;
|
|
1684
1684
|
return pe(), He("div", {
|
|
1685
1685
|
class: "line-block",
|
|
1686
|
-
key:
|
|
1686
|
+
key: q
|
|
1687
1687
|
}, [
|
|
1688
1688
|
Ae("div", tce, [
|
|
1689
1689
|
Ae(
|
|
1690
1690
|
"div",
|
|
1691
1691
|
{
|
|
1692
|
-
class: Jo(p(
|
|
1692
|
+
class: Jo(p(q))
|
|
1693
1693
|
},
|
|
1694
|
-
Pn(
|
|
1694
|
+
Pn(q + 1),
|
|
1695
1695
|
3
|
|
1696
1696
|
/* TEXT, CLASS */
|
|
1697
1697
|
),
|
|
1698
1698
|
Ae("div", {
|
|
1699
|
-
class: Jo(y(
|
|
1699
|
+
class: Jo(y(q)),
|
|
1700
1700
|
style: si(c.needClick ? "cursor: pointer;" : ""),
|
|
1701
|
-
onClick: (Z) => R(U,
|
|
1701
|
+
onClick: (Z) => R(U, q + 1)
|
|
1702
1702
|
}, [
|
|
1703
1703
|
_s(
|
|
1704
1704
|
Pn(U[c.propsField.name]) + " ",
|
|
@@ -1713,7 +1713,7 @@ const Jle = /* @__PURE__ */ tr(Qle, [["__scopeId", "data-v-403809ec"]]), Axe = f
|
|
|
1713
1713
|
(G = U[c.propsField.children]) != null && G.length && !U.show ? (pe(), Nn(Ge(Or), {
|
|
1714
1714
|
key: 0,
|
|
1715
1715
|
class: "ikapprove",
|
|
1716
|
-
onClick: (Z) => $(U,
|
|
1716
|
+
onClick: (Z) => $(U, q),
|
|
1717
1717
|
name: "iksvg_zhankai"
|
|
1718
1718
|
}, null, 8, ["onClick"])) : bt("v-if", !0),
|
|
1719
1719
|
bt(` <i\r
|
|
@@ -1724,7 +1724,7 @@ const Jle = /* @__PURE__ */ tr(Qle, [["__scopeId", "data-v-403809ec"]]), Axe = f
|
|
|
1724
1724
|
(le = U[c.propsField.children]) != null && le.length && U.show ? (pe(), Nn(Ge(Or), {
|
|
1725
1725
|
key: 1,
|
|
1726
1726
|
class: "ikapprove",
|
|
1727
|
-
onClick: (Z) => $(U,
|
|
1727
|
+
onClick: (Z) => $(U, q),
|
|
1728
1728
|
name: "iksvg_shouqi"
|
|
1729
1729
|
}, null, 8, ["onClick"])) : bt("v-if", !0)
|
|
1730
1730
|
], 14, nce)
|
|
@@ -1732,20 +1732,20 @@ const Jle = /* @__PURE__ */ tr(Qle, [["__scopeId", "data-v-403809ec"]]), Axe = f
|
|
|
1732
1732
|
Ae(
|
|
1733
1733
|
"ul",
|
|
1734
1734
|
{
|
|
1735
|
-
class: Jo(S(
|
|
1735
|
+
class: Jo(S(q))
|
|
1736
1736
|
},
|
|
1737
1737
|
[
|
|
1738
1738
|
Ae("div", {
|
|
1739
|
-
id: `children${
|
|
1739
|
+
id: `children${q}`
|
|
1740
1740
|
}, [
|
|
1741
1741
|
(pe(!0), He(
|
|
1742
1742
|
wo,
|
|
1743
1743
|
null,
|
|
1744
1744
|
qr(U[c.propsField.children], (Z, Y) => (pe(), He("li", {
|
|
1745
|
-
class: Jo(k(
|
|
1745
|
+
class: Jo(k(q, Y)),
|
|
1746
1746
|
style: si(c.needClick ? "cursor: pointer;" : ""),
|
|
1747
1747
|
key: Y,
|
|
1748
|
-
onClick: (_e) => R(Z,
|
|
1748
|
+
onClick: (_e) => R(Z, q + 1 + "-" + (Y + 1))
|
|
1749
1749
|
}, Pn(Z.name), 15, sce))),
|
|
1750
1750
|
128
|
|
1751
1751
|
/* KEYED_FRAGMENT */
|
|
@@ -2095,16 +2095,16 @@ const xoe = (c) => ({
|
|
|
2095
2095
|
}
|
|
2096
2096
|
}, p = (R) => {
|
|
2097
2097
|
var le, Z, Y;
|
|
2098
|
-
let $ = document.createElement("div"), V = document.getElementById("approveProcess"), z = 0, U = (le = document.getElementById(`${R[0]}`)) == null ? void 0 : le.offsetWidth,
|
|
2098
|
+
let $ = document.createElement("div"), V = document.getElementById("approveProcess"), z = 0, U = (le = document.getElementById(`${R[0]}`)) == null ? void 0 : le.offsetWidth, q = (Z = document.getElementById(`${R[0]}`)) == null ? void 0 : Z.offsetLeft, G = (Y = document.getElementById(`${R[0]}`)) == null ? void 0 : Y.offsetTop;
|
|
2099
2099
|
R.forEach((_e) => {
|
|
2100
2100
|
let at = document.getElementById(`${_e}`);
|
|
2101
2101
|
z += at.offsetHeight;
|
|
2102
2102
|
}), setTimeout(() => {
|
|
2103
|
-
$.style.width = U + 32 + "px", $.style.height = z + "px", $.style.background = "#f9f9f9", $.style.position = "absolute", $.style.top = G - 16 + "px", $.style.left =
|
|
2103
|
+
$.style.width = U + 32 + "px", $.style.height = z + "px", $.style.background = "#f9f9f9", $.style.position = "absolute", $.style.top = G - 16 + "px", $.style.left = q - 16 + "px", $.style.zIndex = -1, V == null || V.appendChild($);
|
|
2104
2104
|
});
|
|
2105
2105
|
}, y = (R, $, V) => {
|
|
2106
|
-
var
|
|
2107
|
-
let z = (
|
|
2106
|
+
var q, G;
|
|
2107
|
+
let z = (q = i.listData) == null ? void 0 : q.findIndex((le) => le.lineType == "dashed"), U = "";
|
|
2108
2108
|
if (V && ((G = V[i.defaultFile.approvePersonList]) == null ? void 0 : G.findIndex((Z) => Z[i.defaultFile.approveStatus] === i.statusOption.执行中)) > -1)
|
|
2109
2109
|
return "ikapprove ikapprove-dengdai orange";
|
|
2110
2110
|
switch (R) {
|
|
@@ -2146,7 +2146,7 @@ const xoe = (c) => ({
|
|
|
2146
2146
|
(pe(!0), He(
|
|
2147
2147
|
wo,
|
|
2148
2148
|
null,
|
|
2149
|
-
qr(i.listData, (U,
|
|
2149
|
+
qr(i.listData, (U, q) => {
|
|
2150
2150
|
var G, le, Z, Y, _e, at, Pe, J, ke, ot;
|
|
2151
2151
|
return pe(), He("div", {
|
|
2152
2152
|
class: "approveBlock",
|
|
@@ -2193,7 +2193,7 @@ const xoe = (c) => ({
|
|
|
2193
2193
|
"i",
|
|
2194
2194
|
{
|
|
2195
2195
|
class: Jo(
|
|
2196
|
-
y(U[i.defaultFile.approveStatus],
|
|
2196
|
+
y(U[i.defaultFile.approveStatus], q, U)
|
|
2197
2197
|
)
|
|
2198
2198
|
},
|
|
2199
2199
|
null,
|
|
@@ -2356,7 +2356,7 @@ const xoe = (c) => ({
|
|
|
2356
2356
|
{
|
|
2357
2357
|
class: "bottomBlock",
|
|
2358
2358
|
style: si({
|
|
2359
|
-
borderLeft:
|
|
2359
|
+
borderLeft: q == i.listData.length - 1 ? "" : `2px ${U[i.defaultFile.lineType] || "dashed"} var(--el-border-color)`
|
|
2360
2360
|
})
|
|
2361
2361
|
},
|
|
2362
2362
|
[
|
|
@@ -2547,29 +2547,29 @@ const rue = /* @__PURE__ */ tr(sue, [["__scopeId", "data-v-48f27627"]]), Dxe = f
|
|
|
2547
2547
|
},
|
|
2548
2548
|
setup(c, { expose: r }) {
|
|
2549
2549
|
const a = c, { cLoadUrl: l } = mS(a), i = iS.local.getItem("token") || "Bearer 841b7a7b0d9c4021b1655192c28ac61b", f = Tn("sys");
|
|
2550
|
-
function p(
|
|
2550
|
+
function p(q) {
|
|
2551
2551
|
const G = window.location.search;
|
|
2552
|
-
return new URLSearchParams(G).get(
|
|
2552
|
+
return new URLSearchParams(G).get(q);
|
|
2553
2553
|
}
|
|
2554
2554
|
function y() {
|
|
2555
2555
|
var G;
|
|
2556
|
-
const
|
|
2557
|
-
|
|
2556
|
+
const q = p("xTenant") || ((G = iS.local.getItem("tenant")) == null ? void 0 : G.code);
|
|
2557
|
+
q && (f.value = q);
|
|
2558
2558
|
}
|
|
2559
2559
|
y();
|
|
2560
|
-
const S = Zp(xoe(a)), k = async (
|
|
2560
|
+
const S = Zp(xoe(a)), k = async (q) => {
|
|
2561
2561
|
var G;
|
|
2562
|
-
if (
|
|
2563
|
-
|
|
2562
|
+
if (q.multiple = !q[S.defaultFile.singleApproval] || q[S.defaultFile.isShowAddCopy], q.handList = q[S.defaultFile.approvePersonList] ? q[S.defaultFile.approvePersonList] : [], q[S.defaultFile.nodeType] === S.nodeType.抄送节点)
|
|
2563
|
+
q.handList.forEach((le) => {
|
|
2564
2564
|
le.elementName || (le.elementName = le.userName, le.elementId = le.userId, le.avatar = le.userAvatar), le.elementType = "USER", le.disabled = !0;
|
|
2565
|
-
}),
|
|
2565
|
+
}), q.chooseType = ["user"], q.userList = [], q.depList = [];
|
|
2566
2566
|
else
|
|
2567
|
-
switch (
|
|
2567
|
+
switch (q[S.defaultFile.initiatorSpecifiedScopeType]) {
|
|
2568
2568
|
case "ALL":
|
|
2569
|
-
|
|
2569
|
+
q.chooseType = ["dep_user"], q.userList = [], q.depList = [];
|
|
2570
2570
|
break;
|
|
2571
2571
|
default:
|
|
2572
|
-
|
|
2572
|
+
q.chooseType = ["user"], q.userList = q.userList ? q.userList : (G = q[S.defaultFile.initiatorSpecifiedScope]) == null ? void 0 : G.map((le) => ({
|
|
2573
2573
|
...le,
|
|
2574
2574
|
elementName: (le == null ? void 0 : le.executorName) || (le == null ? void 0 : le.userName),
|
|
2575
2575
|
elementId: (le == null ? void 0 : le.executorId) || (le == null ? void 0 : le.userId),
|
|
@@ -2578,28 +2578,28 @@ const rue = /* @__PURE__ */ tr(sue, [["__scopeId", "data-v-48f27627"]]), Dxe = f
|
|
|
2578
2578
|
}));
|
|
2579
2579
|
}
|
|
2580
2580
|
Qu(() => {
|
|
2581
|
-
|
|
2581
|
+
q.isShow = !0;
|
|
2582
2582
|
});
|
|
2583
|
-
}, R = (
|
|
2583
|
+
}, R = (q) => {
|
|
2584
2584
|
let G = "";
|
|
2585
|
-
return
|
|
2586
|
-
}, $ = (
|
|
2587
|
-
a.dataList[G].handList =
|
|
2588
|
-
let Z = (a.dataList[G][S.defaultFile.approvePersonList] || []).filter((_e) => !_e.canDele), Y =
|
|
2585
|
+
return q.includes("http") || q.includes("https") ? G = q : G = l.value ? `${q.includes(l.value) ? "" : l.value}${q}` : `${location.origin + location.pathname}server/oss/download?fileUrl=${q}`, G;
|
|
2586
|
+
}, $ = (q, G) => {
|
|
2587
|
+
a.dataList[G].handList = q.list;
|
|
2588
|
+
let Z = (a.dataList[G][S.defaultFile.approvePersonList] || []).filter((_e) => !_e.canDele), Y = q.list.map((_e) => ({
|
|
2589
2589
|
..._e,
|
|
2590
2590
|
userName: _e.elementName,
|
|
2591
2591
|
userAvatar: _e.avatar,
|
|
2592
2592
|
canDele: !0
|
|
2593
2593
|
}));
|
|
2594
2594
|
a.dataList[G][S.defaultFile.approvePersonList] = Z.concat(Y);
|
|
2595
|
-
}, V = (
|
|
2596
|
-
a.dataList[
|
|
2595
|
+
}, V = (q, G) => {
|
|
2596
|
+
a.dataList[q][S.defaultFile.approvePersonList].splice(G, 1), a.dataList[q].handList = a.dataList[q][S.defaultFile.approvePersonList];
|
|
2597
2597
|
}, z = () => {
|
|
2598
|
-
let
|
|
2598
|
+
let q = !0;
|
|
2599
2599
|
return a.dataList.forEach((G) => {
|
|
2600
2600
|
var le;
|
|
2601
|
-
G.required = !1, G[S.defaultFile.nodeType] == S.nodeType.审批节点 && G[S.defaultFile.isShowAdd] && ((le = G[S.defaultFile.approvePersonList]) != null && le.length || (
|
|
2602
|
-
}),
|
|
2601
|
+
G.required = !1, G[S.defaultFile.nodeType] == S.nodeType.审批节点 && G[S.defaultFile.isShowAdd] && ((le = G[S.defaultFile.approvePersonList]) != null && le.length || (q = !1, G.required = !0));
|
|
2602
|
+
}), q;
|
|
2603
2603
|
}, U = no(() => ({
|
|
2604
2604
|
propOption: {
|
|
2605
2605
|
name: "elementName",
|
|
@@ -2623,7 +2623,7 @@ const rue = /* @__PURE__ */ tr(sue, [["__scopeId", "data-v-48f27627"]]), Dxe = f
|
|
|
2623
2623
|
}
|
|
2624
2624
|
}
|
|
2625
2625
|
}));
|
|
2626
|
-
return r({ requiredVerification: z }), (
|
|
2626
|
+
return r({ requiredVerification: z }), (q, G) => {
|
|
2627
2627
|
const le = Ho("IkApprovalProcess");
|
|
2628
2628
|
return pe(), He("div", iue, [
|
|
2629
2629
|
(pe(!0), He(
|
|
@@ -3008,7 +3008,7 @@ function i$() {
|
|
|
3008
3008
|
i$.__r = 0;
|
|
3009
3009
|
}
|
|
3010
3010
|
function Noe(c, r, a, l, i, f, p, y, S, k) {
|
|
3011
|
-
var R, $, V, z, U,
|
|
3011
|
+
var R, $, V, z, U, q, G, le = l && l.__k || Ioe, Z = le.length;
|
|
3012
3012
|
for (a.__k = [], R = 0; R < r.length; R++)
|
|
3013
3013
|
if ((z = a.__k[R] = (z = r[R]) == null || typeof z == "boolean" ? null : typeof z == "string" || typeof z == "number" || typeof z == "bigint" ? QF(null, z, null, null, z) : Array.isArray(z) ? QF(Dl, { children: z }, null, null, null) : z.__b > 0 ? QF(z.type, z.props, z.key, z.ref ? z.ref : null, z.__v) : z) != null) {
|
|
3014
3014
|
if (z.__ = a, z.__b = a.__b + 1, (V = le[R]) === null || V && z.key == V.key && z.type === V.type)
|
|
@@ -3021,9 +3021,9 @@ function Noe(c, r, a, l, i, f, p, y, S, k) {
|
|
|
3021
3021
|
}
|
|
3022
3022
|
V = null;
|
|
3023
3023
|
}
|
|
3024
|
-
RQ(c, z, V = V || s$, i, f, p, y, S, k), U = z.__e, ($ = z.ref) && V.ref != $ && (G || (G = []), V.ref && G.push(V.ref, null, z), G.push($, z.__c || U, z)), U != null ? (
|
|
3024
|
+
RQ(c, z, V = V || s$, i, f, p, y, S, k), U = z.__e, ($ = z.ref) && V.ref != $ && (G || (G = []), V.ref && G.push(V.ref, null, z), G.push($, z.__c || U, z)), U != null ? (q == null && (q = U), typeof z.type == "function" && z.__k === V.__k ? z.__d = S = Boe(z, S, c) : S = Loe(c, z, V, le, U, S), typeof a.type == "function" && (a.__d = S)) : S && V.__e == S && S.parentNode != c && (S = yR(V));
|
|
3025
3025
|
}
|
|
3026
|
-
for (a.__e =
|
|
3026
|
+
for (a.__e = q, R = Z; R--; )
|
|
3027
3027
|
le[R] != null && (typeof a.type == "function" && le[R].__e != null && le[R].__e == a.__d && (a.__d = Foe(l).nextSibling), zoe(le[R], le[R]));
|
|
3028
3028
|
if (G)
|
|
3029
3029
|
for (R = 0; R < G.length; R++)
|
|
@@ -3067,14 +3067,14 @@ function Foe(c) {
|
|
|
3067
3067
|
return null;
|
|
3068
3068
|
}
|
|
3069
3069
|
function RQ(c, r, a, l, i, f, p, y, S) {
|
|
3070
|
-
var k, R, $, V, z, U,
|
|
3070
|
+
var k, R, $, V, z, U, q, G, le, Z, Y, _e, at, Pe, J, ke = r.type;
|
|
3071
3071
|
if (r.constructor !== void 0)
|
|
3072
3072
|
return null;
|
|
3073
3073
|
a.__h != null && (S = a.__h, y = r.__e = a.__e, r.__h = null, f = [y]), (k = Vs.__b) && k(r);
|
|
3074
3074
|
try {
|
|
3075
3075
|
e:
|
|
3076
3076
|
if (typeof ke == "function") {
|
|
3077
|
-
if (G = r.props, le = (k = ke.contextType) && l[k.__c], Z = k ? le ? le.props.value : k.__ : l, a.__c ?
|
|
3077
|
+
if (G = r.props, le = (k = ke.contextType) && l[k.__c], Z = k ? le ? le.props.value : k.__ : l, a.__c ? q = (R = r.__c = a.__c).__ = R.__E : ("prototype" in ke && ke.prototype.render ? r.__c = R = new ke(G, Z) : (r.__c = R = new gm(G, Z), R.constructor = ke, R.render = $ue), le && le.sub(R), R.props = G, R.state || (R.state = {}), R.context = Z, R.__n = l, $ = R.__d = !0, R.__h = [], R._sb = []), R.__s == null && (R.__s = R.state), ke.getDerivedStateFromProps != null && (R.__s == R.state && (R.__s = s_({}, R.__s)), s_(R.__s, ke.getDerivedStateFromProps(G, R.__s))), V = R.props, z = R.state, R.__v = r, $)
|
|
3078
3078
|
ke.getDerivedStateFromProps == null && R.componentWillMount != null && R.componentWillMount(), R.componentDidMount != null && R.__h.push(R.componentDidMount);
|
|
3079
3079
|
else {
|
|
3080
3080
|
if (ke.getDerivedStateFromProps == null && G !== V && R.componentWillReceiveProps != null && R.componentWillReceiveProps(G, Z), !R.__e && R.shouldComponentUpdate != null && R.shouldComponentUpdate(G, R.__s, Z) === !1 || r.__v === a.__v) {
|
|
@@ -3097,7 +3097,7 @@ function RQ(c, r, a, l, i, f, p, y, S) {
|
|
|
3097
3097
|
do
|
|
3098
3098
|
R.__d = !1, _e && _e(r), k = R.render(R.props, R.state, R.context), R.state = R.__s;
|
|
3099
3099
|
while (R.__d && ++at < 25);
|
|
3100
|
-
R.state = R.__s, R.getChildContext != null && (l = s_(s_({}, l), R.getChildContext())), $ || R.getSnapshotBeforeUpdate == null || (U = R.getSnapshotBeforeUpdate(V, z)), J = k != null && k.type === Dl && k.key == null ? k.props.children : k, Noe(c, Array.isArray(J) ? J : [J], r, a, l, i, f, p, y, S), R.base = r.__e, r.__h = null, R.__h.length && p.push(R),
|
|
3100
|
+
R.state = R.__s, R.getChildContext != null && (l = s_(s_({}, l), R.getChildContext())), $ || R.getSnapshotBeforeUpdate == null || (U = R.getSnapshotBeforeUpdate(V, z)), J = k != null && k.type === Dl && k.key == null ? k.props.children : k, Noe(c, Array.isArray(J) ? J : [J], r, a, l, i, f, p, y, S), R.base = r.__e, r.__h = null, R.__h.length && p.push(R), q && (R.__E = R.__ = null), R.__e = !1;
|
|
3101
3101
|
} else
|
|
3102
3102
|
f == null && r.__v === a.__v ? (r.__k = a.__k, r.__e = a.__e) : r.__e = Fue(a.__e, r, a, l, i, f, p, S);
|
|
3103
3103
|
(k = Vs.diffed) && k(r);
|
|
@@ -4040,8 +4040,8 @@ class Zde {
|
|
|
4040
4040
|
let k = this.format(r, l), R = this.format(a, l);
|
|
4041
4041
|
if (k === R)
|
|
4042
4042
|
return k;
|
|
4043
|
-
let $ = efe(f, S), V = Ite($, p, l), z = V(r), U = V(a),
|
|
4044
|
-
return
|
|
4043
|
+
let $ = efe(f, S), V = Ite($, p, l), z = V(r), U = V(a), q = tfe(k, z, R, U), G = p.separator || i || l.defaultSeparator || "";
|
|
4044
|
+
return q ? q.before + z + G + U + q.after : k + G + R;
|
|
4045
4045
|
}
|
|
4046
4046
|
getLargestUnit() {
|
|
4047
4047
|
switch (this.severity) {
|
|
@@ -6010,23 +6010,23 @@ function Vte(c, r, a, l) {
|
|
|
6010
6010
|
k[$.defId].display === "inverse-background" && ($.groupId ? (i[$.groupId] = [], p[$.groupId] || (p[$.groupId] = $)) : f[R] = []);
|
|
6011
6011
|
}
|
|
6012
6012
|
for (let R in c.instances) {
|
|
6013
|
-
let $ = c.instances[R], V = c.defs[$.defId], z = k[V.defId], U = $.range,
|
|
6013
|
+
let $ = c.instances[R], V = c.defs[$.defId], z = k[V.defId], U = $.range, q = !V.allDay && l ? cse(U, l) : U, G = dS(q, a);
|
|
6014
6014
|
G && (z.display === "inverse-background" ? V.groupId ? i[V.groupId].push(G) : f[$.defId].push(G) : z.display !== "none" && (z.display === "background" ? y : S).push({
|
|
6015
6015
|
def: V,
|
|
6016
6016
|
ui: z,
|
|
6017
6017
|
instance: $,
|
|
6018
6018
|
range: G,
|
|
6019
|
-
isStart:
|
|
6020
|
-
isEnd:
|
|
6019
|
+
isStart: q.start && q.start.valueOf() === G.start.valueOf(),
|
|
6020
|
+
isEnd: q.end && q.end.valueOf() === G.end.valueOf()
|
|
6021
6021
|
}));
|
|
6022
6022
|
}
|
|
6023
6023
|
for (let R in i) {
|
|
6024
6024
|
let $ = i[R], V = Lte($, a);
|
|
6025
6025
|
for (let z of V) {
|
|
6026
|
-
let U = p[R],
|
|
6026
|
+
let U = p[R], q = k[U.defId];
|
|
6027
6027
|
y.push({
|
|
6028
6028
|
def: U,
|
|
6029
|
-
ui:
|
|
6029
|
+
ui: q,
|
|
6030
6030
|
instance: null,
|
|
6031
6031
|
range: z,
|
|
6032
6032
|
isStart: !1,
|
|
@@ -6095,11 +6095,11 @@ function rhe(c, r) {
|
|
|
6095
6095
|
function Sse(c, r, a, l, i, f, p) {
|
|
6096
6096
|
let { dateEnv: y, options: S } = a, { displayEventTime: k, displayEventEnd: R } = S, $ = c.eventRange.def, V = c.eventRange.instance;
|
|
6097
6097
|
k == null && (k = l !== !1), R == null && (R = i !== !1);
|
|
6098
|
-
let z = V.range.start, U = V.range.end,
|
|
6099
|
-
return k && !$.allDay && (le || Z) ? (
|
|
6098
|
+
let z = V.range.start, U = V.range.end, q = f || c.start || c.eventRange.range.start, G = p || c.end || c.eventRange.range.end, le = fl(z).valueOf() === fl(q).valueOf(), Z = fl(f_(U, -1)).valueOf() === fl(f_(G, -1)).valueOf();
|
|
6099
|
+
return k && !$.allDay && (le || Z) ? (q = le ? z : q, G = Z ? U : G, R && $.hasEnd ? y.formatRange(q, G, r, {
|
|
6100
6100
|
forcedStartTzo: f ? null : V.forcedStartTzo,
|
|
6101
6101
|
forcedEndTzo: p ? null : V.forcedEndTzo
|
|
6102
|
-
}) : y.format(
|
|
6102
|
+
}) : y.format(q, r, {
|
|
6103
6103
|
forcedTzo: f ? null : V.forcedStartTzo
|
|
6104
6104
|
// nooooo, same
|
|
6105
6105
|
})) : "";
|
|
@@ -7023,8 +7023,8 @@ class Pse {
|
|
|
7023
7023
|
findInsertion(r) {
|
|
7024
7024
|
let { levelCoords: a, entriesByLevel: l, strictOrder: i, stackCnts: f } = this, p = a.length, y = 0, S = -1, k = -1, R = null, $ = 0;
|
|
7025
7025
|
for (let U = 0; U < p; U += 1) {
|
|
7026
|
-
const
|
|
7027
|
-
if (!i &&
|
|
7026
|
+
const q = a[U];
|
|
7027
|
+
if (!i && q >= y + this.getEntryThickness(r))
|
|
7028
7028
|
break;
|
|
7029
7029
|
let G = l[U], le, Z = uQ(G, r.span.start, cQ), Y = Z[0] + Z[1];
|
|
7030
7030
|
for (
|
|
@@ -7033,7 +7033,7 @@ class Pse {
|
|
|
7033
7033
|
(le = G[Y]) && // but not past the whole entry list
|
|
7034
7034
|
le.span.start < r.span.end;
|
|
7035
7035
|
) {
|
|
7036
|
-
let _e =
|
|
7036
|
+
let _e = q + this.getEntryThickness(le);
|
|
7037
7037
|
_e > y && (y = _e, R = le, S = U, k = Y), _e === y && ($ = Math.max($, f[lS(le)] + 1)), Y += 1;
|
|
7038
7038
|
}
|
|
7039
7039
|
}
|
|
@@ -7429,7 +7429,7 @@ function Zhe(c, r, a, l) {
|
|
|
7429
7429
|
l && (k = wb(k, l));
|
|
7430
7430
|
let R = jfe(c.eventStore, f.affectedEvents.instances), $ = R.defs, V = R.instances, z = p$($, c.eventUiBases);
|
|
7431
7431
|
for (let U in S) {
|
|
7432
|
-
let
|
|
7432
|
+
let q = S[U], G = q.range, le = k[q.defId], Z = y[q.defId];
|
|
7433
7433
|
if (!Vse(le.constraints, G, R, c.businessHours, r))
|
|
7434
7434
|
return !1;
|
|
7435
7435
|
let { eventOverlap: Y } = r.options, _e = typeof Y == "function" ? Y : null;
|
|
@@ -7438,13 +7438,13 @@ function Zhe(c, r, a, l) {
|
|
|
7438
7438
|
if (WQ(G, J.range) && (z[J.defId].overlap === !1 && f.isEvent || le.overlap === !1 || _e && !_e(
|
|
7439
7439
|
new Vl(r, $[J.defId], J),
|
|
7440
7440
|
// still event
|
|
7441
|
-
new Vl(r, Z,
|
|
7441
|
+
new Vl(r, Z, q)
|
|
7442
7442
|
)))
|
|
7443
7443
|
return !1;
|
|
7444
7444
|
}
|
|
7445
7445
|
let at = i.eventStore;
|
|
7446
7446
|
for (let Pe of le.allows) {
|
|
7447
|
-
let J = Object.assign(Object.assign({}, a), { range:
|
|
7447
|
+
let J = Object.assign(Object.assign({}, a), { range: q.range, allDay: Z.allDay }), ke = at.defs[Z.defId], ot = at.instances[U], st;
|
|
7448
7448
|
if (ke ? st = new Vl(r, ke, ot) : st = new Vl(r, Z), !Pe(KQ(J, r), st))
|
|
7449
7449
|
return !1;
|
|
7450
7450
|
}
|
|
@@ -7665,12 +7665,12 @@ class oJ extends da {
|
|
|
7665
7665
|
for (; k < S && (R = i[k]).type === "footer"; )
|
|
7666
7666
|
z.push(this.renderSection(R, p, !0)), k += 1;
|
|
7667
7667
|
let U = !Tse();
|
|
7668
|
-
const
|
|
7668
|
+
const q = { role: "rowgroup" };
|
|
7669
7669
|
return lt("table", {
|
|
7670
7670
|
role: "grid",
|
|
7671
7671
|
className: y.join(" "),
|
|
7672
7672
|
style: { height: r.height }
|
|
7673
|
-
}, !!(!U && $.length) && lt("thead",
|
|
7673
|
+
}, !!(!U && $.length) && lt("thead", q, ...$), !!(!U && V.length) && lt("tbody", q, ...V), !!(!U && z.length) && lt("tfoot", q, ...z), U && lt("tbody", q, ...$, ...V, ...z));
|
|
7674
7674
|
}
|
|
7675
7675
|
renderSection(r, a, l) {
|
|
7676
7676
|
return "outerContent" in r ? lt(Dl, { key: r.key }, r.outerContent) : lt("tr", { key: r.key, role: "presentation", className: ime(r, this.props.liquid).join(" ") }, this.renderChunkTd(r, a, r.chunk, l));
|
|
@@ -8941,14 +8941,14 @@ class bge {
|
|
|
8941
8941
|
this.data && this.data.dateProfileGenerator !== S.dateProfileGenerator && ($ = S.dateProfileGenerator.build(R)), R = kfe(R, r), $ = Lme($, r, R, S.dateProfileGenerator), (r.type === "PREV" || // TODO: move this logic into DateProfileGenerator
|
|
8942
8942
|
r.type === "NEXT" || // "
|
|
8943
8943
|
!_b($.currentRange, R)) && (R = $.currentRange.start);
|
|
8944
|
-
let V = $me(l.eventSources, r, $, k), z = zfe(l.eventStore, r, V, $, k),
|
|
8944
|
+
let V = $me(l.eventSources, r, $, k), z = zfe(l.eventStore, r, V, $, k), q = tre(V) && !S.options.progressiveEventRendering && l.renderableEventStore || z, { eventUiSingleBase: G, selectionConfig: le } = this.buildViewUiProps(k), Z = this.buildEventUiBySource(V), Y = this.buildEventUiBases(q.defs, G, Z), _e = {
|
|
8945
8945
|
dynamicOptionOverrides: f,
|
|
8946
8946
|
currentViewType: y,
|
|
8947
8947
|
currentDate: R,
|
|
8948
8948
|
dateProfile: $,
|
|
8949
8949
|
eventSources: V,
|
|
8950
8950
|
eventStore: z,
|
|
8951
|
-
renderableEventStore:
|
|
8951
|
+
renderableEventStore: q,
|
|
8952
8952
|
selectionConfig: le,
|
|
8953
8953
|
eventUiBases: Y,
|
|
8954
8954
|
businessHours: this.parseContextBusinessHours(k),
|
|
@@ -8999,10 +8999,10 @@ class bge {
|
|
|
8999
8999
|
y,
|
|
9000
9000
|
r,
|
|
9001
9001
|
a
|
|
9002
|
-
]), V = {}, z = this.currentCalendarOptionsInput, U = this.currentCalendarOptionsRefined,
|
|
9002
|
+
]), V = {}, z = this.currentCalendarOptionsInput, U = this.currentCalendarOptionsRefined, q = !1;
|
|
9003
9003
|
for (let G in $)
|
|
9004
|
-
this.optionsForRefining.indexOf(G) === -1 && ($[G] === z[G] || Q3[G] && G in z && Q3[G](z[G], $[G])) ? V[G] = U[G] : k[G] ? (V[G] = k[G]($[G]),
|
|
9005
|
-
return
|
|
9004
|
+
this.optionsForRefining.indexOf(G) === -1 && ($[G] === z[G] || Q3[G] && G in z && Q3[G](z[G], $[G])) ? V[G] = U[G] : k[G] ? (V[G] = k[G]($[G]), q = !0) : R[G] = z[G];
|
|
9005
|
+
return q && (this.currentCalendarOptionsInput = $, this.currentCalendarOptionsRefined = V, this.stableOptionOverrides = r, this.stableDynamicOptionOverrides = a), this.optionsForHandling.push(...this.optionsForRefining), this.optionsForRefining = [], {
|
|
9006
9006
|
rawOptions: this.currentCalendarOptionsInput,
|
|
9007
9007
|
refinedOptions: this.currentCalendarOptionsRefined,
|
|
9008
9008
|
pluginHooks: S,
|
|
@@ -9772,7 +9772,7 @@ function Yge(c, r, a, l, i, f, p) {
|
|
|
9772
9772
|
}
|
|
9773
9773
|
}) : k.push(Z);
|
|
9774
9774
|
}
|
|
9775
|
-
let R = y.addSegs(S), $ = y.toRects(), { singleColPlacements: V, multiColPlacements: z, leftoverMargins: U } = Xge($, c, p),
|
|
9775
|
+
let R = y.addSegs(S), $ = y.toRects(), { singleColPlacements: V, multiColPlacements: z, leftoverMargins: U } = Xge($, c, p), q = [], G = [];
|
|
9776
9776
|
for (let le of k) {
|
|
9777
9777
|
z[le.firstCol].push({
|
|
9778
9778
|
seg: le,
|
|
@@ -9791,7 +9791,7 @@ function Yge(c, r, a, l, i, f, p) {
|
|
|
9791
9791
|
});
|
|
9792
9792
|
}
|
|
9793
9793
|
for (let le = 0; le < p.length; le += 1)
|
|
9794
|
-
|
|
9794
|
+
q.push(0);
|
|
9795
9795
|
for (let le of R) {
|
|
9796
9796
|
let Z = c[le.index], Y = le.span;
|
|
9797
9797
|
z[Y.start].push({
|
|
@@ -9802,7 +9802,7 @@ function Yge(c, r, a, l, i, f, p) {
|
|
|
9802
9802
|
marginTop: 0
|
|
9803
9803
|
});
|
|
9804
9804
|
for (let _e = Y.start; _e < Y.end; _e += 1)
|
|
9805
|
-
|
|
9805
|
+
q[_e] += 1, V[_e].push({
|
|
9806
9806
|
seg: $k(Z, _e, _e + 1, p),
|
|
9807
9807
|
isVisible: !1,
|
|
9808
9808
|
isAbsolute: !1,
|
|
@@ -9812,7 +9812,7 @@ function Yge(c, r, a, l, i, f, p) {
|
|
|
9812
9812
|
}
|
|
9813
9813
|
for (let le = 0; le < p.length; le += 1)
|
|
9814
9814
|
G.push(U[le]);
|
|
9815
|
-
return { singleColPlacements: V, multiColPlacements: z, moreCnts:
|
|
9815
|
+
return { singleColPlacements: V, multiColPlacements: z, moreCnts: q, moreMarginTops: G };
|
|
9816
9816
|
}
|
|
9817
9817
|
function Xge(c, r, a) {
|
|
9818
9818
|
let l = Qge(c, a.length), i = [], f = [], p = [];
|
|
@@ -9831,8 +9831,8 @@ function Xge(c, r, a) {
|
|
|
9831
9831
|
let V = [];
|
|
9832
9832
|
R = 0, $ = 0;
|
|
9833
9833
|
for (let z of S) {
|
|
9834
|
-
let U = r[z.index],
|
|
9835
|
-
$ += z.levelCoord - R, R = z.levelCoord + z.thickness,
|
|
9834
|
+
let U = r[z.index], q = z.span.end - z.span.start > 1, G = z.span.start === y;
|
|
9835
|
+
$ += z.levelCoord - R, R = z.levelCoord + z.thickness, q ? ($ += z.thickness, G && V.push({
|
|
9836
9836
|
seg: $k(U, z.span.start, z.span.end, a),
|
|
9837
9837
|
isVisible: !0,
|
|
9838
9838
|
isAbsolute: !0,
|
|
@@ -9917,9 +9917,9 @@ class hre extends w1 {
|
|
|
9917
9917
|
"tr",
|
|
9918
9918
|
{ ref: this.rootElRef, role: "row" },
|
|
9919
9919
|
r.renderIntro && r.renderIntro(),
|
|
9920
|
-
r.cells.map((
|
|
9920
|
+
r.cells.map((q, G) => {
|
|
9921
9921
|
let le = this.renderFgSegs(G, r.forPrint ? R[G] : $[G], r.todayRange, U), Z = this.renderFgSegs(G, epe(k[G], $), r.todayRange, {}, !!r.eventDrag, !!r.eventResize, !1);
|
|
9922
|
-
return lt(Zge, { key:
|
|
9922
|
+
return lt(Zge, { key: q.key, elRef: this.cellElRefs.createRef(q.key), innerElRef: this.frameElRefs.createRef(q.key), dateProfile: r.dateProfile, date: q.date, showDayNumber: r.showDayNumbers, showWeekNumber: r.showWeekNumbers && G === 0, forceDayTop: r.showWeekNumbers, todayRange: r.todayRange, eventSelection: r.eventSelection, eventDrag: r.eventDrag, eventResize: r.eventResize, extraRenderProps: q.extraRenderProps, extraDataAttrs: q.extraDataAttrs, extraClassNames: q.extraClassNames, extraDateSpan: q.extraDateSpan, moreCnt: V[G], moreMarginTop: z[G], singlePlacements: R[G], fgContentElRef: this.fgElRefs.createRef(q.key), fgContent: (
|
|
9923
9923
|
// Fragment scopes the keys
|
|
9924
9924
|
lt(
|
|
9925
9925
|
Dl,
|
|
@@ -9962,14 +9962,14 @@ class hre extends w1 {
|
|
|
9962
9962
|
let { context: S } = this, { eventSelection: k } = this.props, { framePositions: R } = this.state, $ = this.props.cells.length === 1, V = f || p || y, z = [];
|
|
9963
9963
|
if (R)
|
|
9964
9964
|
for (let U of a) {
|
|
9965
|
-
let { seg:
|
|
9966
|
-
Z && (S.isRtl ? (_e = 0, Y = R.lefts[
|
|
9965
|
+
let { seg: q } = U, { instanceId: G } = q.eventRange.instance, le = U.isVisible && !i[G], Z = U.isAbsolute, Y = "", _e = "";
|
|
9966
|
+
Z && (S.isRtl ? (_e = 0, Y = R.lefts[q.lastCol] - R.lefts[q.firstCol]) : (Y = 0, _e = R.rights[q.firstCol] - R.rights[q.lastCol])), z.push(lt("div", { className: "fc-daygrid-event-harness" + (Z ? " fc-daygrid-event-harness-abs" : ""), key: dre(q), ref: V ? null : this.segHarnessRefs.createRef(fre(q)), style: {
|
|
9967
9967
|
visibility: le ? "" : "hidden",
|
|
9968
9968
|
marginTop: Z ? "" : U.marginTop,
|
|
9969
9969
|
top: Z ? U.absoluteTop : "",
|
|
9970
9970
|
left: Y,
|
|
9971
9971
|
right: _e
|
|
9972
|
-
} }, lre(
|
|
9972
|
+
} }, lre(q) ? lt(ure, Object.assign({ seg: q, isDragging: f, isSelected: G === k, defaultDisplayEventEnd: $ }, a_(q, l))) : lt(cre, Object.assign({ seg: q, isDragging: f, isResizing: p, isDateSelecting: y, isSelected: G === k, defaultDisplayEventEnd: $ }, a_(q, l)))));
|
|
9973
9973
|
}
|
|
9974
9974
|
return z;
|
|
9975
9975
|
}
|
|
@@ -10481,7 +10481,7 @@ class bpe extends w1 {
|
|
|
10481
10481
|
chunks: [
|
|
10482
10482
|
{
|
|
10483
10483
|
key: "axis",
|
|
10484
|
-
rowContent: (
|
|
10484
|
+
rowContent: (q) => lt("tr", { role: "presentation" }, this.renderHeadAxis("day", q.rowSyncHeights[0]))
|
|
10485
10485
|
},
|
|
10486
10486
|
{
|
|
10487
10487
|
key: "cols",
|
|
@@ -10497,7 +10497,7 @@ class bpe extends w1 {
|
|
|
10497
10497
|
chunks: [
|
|
10498
10498
|
{
|
|
10499
10499
|
key: "axis",
|
|
10500
|
-
rowContent: (
|
|
10500
|
+
rowContent: (q) => lt("tr", { role: "presentation" }, this.renderTableRowAxis(q.rowSyncHeights[0]))
|
|
10501
10501
|
},
|
|
10502
10502
|
{
|
|
10503
10503
|
key: "cols",
|
|
@@ -10525,15 +10525,15 @@ class bpe extends w1 {
|
|
|
10525
10525
|
chunks: [
|
|
10526
10526
|
{
|
|
10527
10527
|
key: "axis",
|
|
10528
|
-
content: (
|
|
10528
|
+
content: (q) => (
|
|
10529
10529
|
// TODO: make this now-indicator arrow more DRY with TimeColsContent
|
|
10530
10530
|
lt(
|
|
10531
10531
|
"div",
|
|
10532
10532
|
{ className: "fc-timegrid-axis-chunk" },
|
|
10533
10533
|
lt(
|
|
10534
10534
|
"table",
|
|
10535
|
-
{ "aria-hidden": !0, style: { height:
|
|
10536
|
-
|
|
10535
|
+
{ "aria-hidden": !0, style: { height: q.expandRows ? q.clientHeight : "" } },
|
|
10536
|
+
q.tableColGroupNode,
|
|
10537
10537
|
lt(
|
|
10538
10538
|
"tbody",
|
|
10539
10539
|
null,
|
|
@@ -10903,7 +10903,7 @@ class Npe extends da {
|
|
|
10903
10903
|
return y.forPrint ? bre(r, y) : this.renderPositionedFgSegs(r, a, l, i, f, p);
|
|
10904
10904
|
}
|
|
10905
10905
|
renderPositionedFgSegs(r, a, l, i, f, p) {
|
|
10906
|
-
let { eventMaxStack: y, eventShortHeight: S, eventOrderStrict: k, eventMinHeight: R } = this.context.options, { date: $, slatCoords: V, eventSelection: z, todayRange: U, nowDate:
|
|
10906
|
+
let { eventMaxStack: y, eventShortHeight: S, eventOrderStrict: k, eventMinHeight: R } = this.context.options, { date: $, slatCoords: V, eventSelection: z, todayRange: U, nowDate: q } = this.props, G = l || i || f, le = one(r, $, V, R), { segPlacements: Z, hiddenGroups: Y } = Ppe(r, le, k, y);
|
|
10907
10907
|
return lt(
|
|
10908
10908
|
Dl,
|
|
10909
10909
|
null,
|
|
@@ -10913,7 +10913,7 @@ class Npe extends da {
|
|
|
10913
10913
|
return lt(
|
|
10914
10914
|
"div",
|
|
10915
10915
|
{ className: "fc-timegrid-event-harness" + (qe ? " fc-timegrid-event-harness-inset" : ""), key: p || J, style: Object.assign(Object.assign({ visibility: ke ? "" : "hidden" }, ot), st) },
|
|
10916
|
-
lt(vre, Object.assign({ seg: at, isDragging: l, isResizing: i, isDateSelecting: f, isSelected: J === z, isShort: ye }, a_(at, U,
|
|
10916
|
+
lt(vre, Object.assign({ seg: at, isDragging: l, isResizing: i, isDateSelecting: f, isSelected: J === z, isShort: ye }, a_(at, U, q)))
|
|
10917
10917
|
);
|
|
10918
10918
|
})
|
|
10919
10919
|
);
|
|
@@ -11088,7 +11088,7 @@ class $pe extends w1 {
|
|
|
11088
11088
|
queryHit(r, a) {
|
|
11089
11089
|
let { dateEnv: l, options: i } = this.context, { colCoords: f } = this, { dateProfile: p } = this.props, { slatCoords: y } = this.state, { snapDuration: S, snapsPerSlot: k } = this.processSlotOptions(this.props.slotDuration, i.snapDuration), R = f.leftToIndex(r), $ = y.positions.topToIndex(a);
|
|
11090
11090
|
if (R != null && $ != null) {
|
|
11091
|
-
let V = this.props.cells[R], z = y.positions.tops[$], U = y.positions.getHeight($),
|
|
11091
|
+
let V = this.props.cells[R], z = y.positions.tops[$], U = y.positions.getHeight($), q = (a - z) / U, G = Math.floor(q * k), le = $ * k + G, Z = this.props.cells[R].date, Y = nQ(p.slotMinTime, Ade(S, le)), _e = l.add(Z, Y), at = l.add(_e, S);
|
|
11092
11092
|
return {
|
|
11093
11093
|
dateProfile: p,
|
|
11094
11094
|
dateSpan: Object.assign({ range: { start: _e, end: at }, allDay: !1 }, V.extraDateSpan),
|
|
@@ -11176,7 +11176,7 @@ class Gpe extends bpe {
|
|
|
11176
11176
|
super(...arguments), this.buildTimeColsModel = Zs(Zpe), this.buildSlatMetas = Zs(Wpe);
|
|
11177
11177
|
}
|
|
11178
11178
|
render() {
|
|
11179
|
-
let { options: r, dateEnv: a, dateProfileGenerator: l } = this.context, { props: i } = this, { dateProfile: f } = i, p = this.buildTimeColsModel(f, l), y = this.allDaySplitter.splitProps(i), S = this.buildSlatMetas(f.slotMinTime, f.slotMaxTime, r.slotLabelInterval, r.slotDuration, a), { dayMinWidth: k } = r, R = !k, $ = k, V = r.dayHeaders && lt(Bse, { dates: p.headerDates, dateProfile: f, datesRepDistinctDays: !0, renderIntro: R ? this.renderHeadAxis : null }), z = r.allDaySlot !== !1 && ((
|
|
11179
|
+
let { options: r, dateEnv: a, dateProfileGenerator: l } = this.context, { props: i } = this, { dateProfile: f } = i, p = this.buildTimeColsModel(f, l), y = this.allDaySplitter.splitProps(i), S = this.buildSlatMetas(f.slotMinTime, f.slotMaxTime, r.slotLabelInterval, r.slotDuration, a), { dayMinWidth: k } = r, R = !k, $ = k, V = r.dayHeaders && lt(Bse, { dates: p.headerDates, dateProfile: f, datesRepDistinctDays: !0, renderIntro: R ? this.renderHeadAxis : null }), z = r.allDaySlot !== !1 && ((q) => lt(mre, Object.assign({}, y.allDay, { dateProfile: f, dayTableModel: p, nextDayThreshold: r.nextDayThreshold, tableMinWidth: q.tableMinWidth, colGroupNode: q.tableColGroupNode, renderRowIntro: R ? this.renderTableRowAxis : null, showWeekNumbers: !1, expandRows: !1, headerAlignElRef: this.headerElRef, clientWidth: q.clientWidth, clientHeight: q.clientHeight, forPrint: i.forPrint }, this.getAllDayMaxEventProps()))), U = (q) => lt(Vpe, Object.assign({}, y.timed, { dayTableModel: p, dateProfile: f, axis: R, slotDuration: r.slotDuration, slatMetas: S, forPrint: i.forPrint, tableColGroupNode: q.tableColGroupNode, tableMinWidth: q.tableMinWidth, clientWidth: q.clientWidth, clientHeight: q.clientHeight, onSlatCoords: this.handleSlatCoords, expandRows: q.expandRows, onScrollTopRequest: this.handleScrollTopRequest }));
|
|
11180
11180
|
return $ ? this.renderHScrollLayout(V, z, U, p.colCnt, k, S, this.state.slatCoords) : this.renderSimpleLayout(V, z, U);
|
|
11181
11181
|
}
|
|
11182
11182
|
}
|
|
@@ -11666,12 +11666,12 @@ class $$ {
|
|
|
11666
11666
|
let y = l[p].component, S = i[p];
|
|
11667
11667
|
if (S && // wasn't destroyed mid-drag
|
|
11668
11668
|
S.isWithinClipping(r, a)) {
|
|
11669
|
-
let k = S.computeLeft(), R = S.computeTop(), $ = r - k, V = a - R, { origRect: z } = S, U = z.right - z.left,
|
|
11669
|
+
let k = S.computeLeft(), R = S.computeTop(), $ = r - k, V = a - R, { origRect: z } = S, U = z.right - z.left, q = z.bottom - z.top;
|
|
11670
11670
|
if (
|
|
11671
11671
|
// must be within the element's bounds
|
|
11672
|
-
$ >= 0 && $ < U && V >= 0 && V <
|
|
11672
|
+
$ >= 0 && $ < U && V >= 0 && V < q
|
|
11673
11673
|
) {
|
|
11674
|
-
let G = y.queryHit($, V, U,
|
|
11674
|
+
let G = y.queryHit($, V, U, q);
|
|
11675
11675
|
G && // make sure the hit is within activeRange, meaning it's not a dead cell
|
|
11676
11676
|
B$(G.dateProfile.activeRange, G.dateSpan.range) && // Ensure the component we are querying for the hit is accessibly my the pointer
|
|
11677
11677
|
// Prevents obscured calendars (ex: under a modal dialog) from accepting hit
|
|
@@ -11777,9 +11777,9 @@ class IR extends jk {
|
|
|
11777
11777
|
super(r), this.subjectEl = null, this.subjectSeg = null, this.isDragging = !1, this.eventRange = null, this.relevantEvents = null, this.receivingContext = null, this.validMutation = null, this.mutatedRelevantEvents = null, this.handlePointerDown = (p) => {
|
|
11778
11778
|
let y = p.origEvent.target, { component: S, dragging: k } = this, { mirror: R } = k, { options: $ } = S.context, V = S.context;
|
|
11779
11779
|
this.subjectEl = p.subjectEl;
|
|
11780
|
-
let z = this.subjectSeg = Vk(p.subjectEl),
|
|
11781
|
-
this.relevantEvents = ZQ(V.getCurrentData().eventStore,
|
|
11782
|
-
p.isTouch &&
|
|
11780
|
+
let z = this.subjectSeg = Vk(p.subjectEl), q = (this.eventRange = z.eventRange).instance.instanceId;
|
|
11781
|
+
this.relevantEvents = ZQ(V.getCurrentData().eventStore, q), k.minDistance = p.isTouch ? 0 : $.eventDragMinDistance, k.delay = // only do a touch delay if touch and this event hasn't been selected yet
|
|
11782
|
+
p.isTouch && q !== S.props.eventSelection ? dve(S) : null, $.fixedMirrorParent ? R.parentNode = $.fixedMirrorParent : R.parentNode = tf(y, ".fc"), R.revertDuration = $.dragRevertDuration;
|
|
11783
11783
|
let G = S.isValidSegDownEl(y) && !tf(y, ".fc-event-resizer");
|
|
11784
11784
|
k.setIgnoreMove(!G), this.isDragging = G && p.subjectEl.classList.contains("fc-event-draggable");
|
|
11785
11785
|
}, this.handleDragStart = (p) => {
|
|
@@ -11793,7 +11793,7 @@ class IR extends jk {
|
|
|
11793
11793
|
}, this.handleHitUpdate = (p, y) => {
|
|
11794
11794
|
if (!this.isDragging)
|
|
11795
11795
|
return;
|
|
11796
|
-
let S = this.relevantEvents, k = this.hitDragging.initialHit, R = this.component.context, $ = null, V = null, z = null, U = !1,
|
|
11796
|
+
let S = this.relevantEvents, k = this.hitDragging.initialHit, R = this.component.context, $ = null, V = null, z = null, U = !1, q = {
|
|
11797
11797
|
affectedEvents: S,
|
|
11798
11798
|
mutatedEvents: pm(),
|
|
11799
11799
|
isEvent: !0
|
|
@@ -11801,15 +11801,15 @@ class IR extends jk {
|
|
|
11801
11801
|
if (p) {
|
|
11802
11802
|
$ = p.context;
|
|
11803
11803
|
let G = $.options;
|
|
11804
|
-
R === $ || G.editable && G.droppable ? (V = uve(k, p, this.eventRange.instance.range.start, $.getCurrentData().pluginHooks.eventDragMutationMassagers), V && (z = YQ(S, $.getCurrentData().eventUiBases, V, $),
|
|
11804
|
+
R === $ || G.editable && G.droppable ? (V = uve(k, p, this.eventRange.instance.range.start, $.getCurrentData().pluginHooks.eventDragMutationMassagers), V && (z = YQ(S, $.getCurrentData().eventUiBases, V, $), q.mutatedEvents = z, Hse(q, p.dateProfile, $) || (U = !0, V = null, z = null, q.mutatedEvents = pm()))) : $ = null;
|
|
11805
11805
|
}
|
|
11806
|
-
this.displayDrag($,
|
|
11806
|
+
this.displayDrag($, q), U ? NQ() : BQ(), y || (R === $ && // TODO: write test for this
|
|
11807
11807
|
H$(k, p) && (V = null), this.dragging.setMirrorNeedsRevert(!V), this.dragging.setMirrorIsVisible(!p || !this.subjectEl.getRootNode().querySelector(".fc-event-mirror")), this.receivingContext = $, this.validMutation = V, this.mutatedRelevantEvents = z);
|
|
11808
11808
|
}, this.handlePointerUp = () => {
|
|
11809
11809
|
this.isDragging || this.cleanup();
|
|
11810
11810
|
}, this.handleDragEnd = (p) => {
|
|
11811
11811
|
if (this.isDragging) {
|
|
11812
|
-
let y = this.component.context, S = y.viewApi, { receivingContext: k, validMutation: R } = this, $ = this.eventRange.def, V = this.eventRange.instance, z = new Vl(y, $, V), U = this.relevantEvents,
|
|
11812
|
+
let y = this.component.context, S = y.viewApi, { receivingContext: k, validMutation: R } = this, $ = this.eventRange.def, V = this.eventRange.instance, z = new Vl(y, $, V), U = this.relevantEvents, q = this.mutatedRelevantEvents, { finalHit: G } = this.hitDragging;
|
|
11813
11813
|
if (this.clearDrag(), y.emitter.trigger("eventDragStop", {
|
|
11814
11814
|
el: this.subjectEl,
|
|
11815
11815
|
event: z,
|
|
@@ -11817,15 +11817,15 @@ class IR extends jk {
|
|
|
11817
11817
|
view: S
|
|
11818
11818
|
}), R) {
|
|
11819
11819
|
if (k === y) {
|
|
11820
|
-
let le = new Vl(y,
|
|
11820
|
+
let le = new Vl(y, q.defs[$.defId], V ? q.instances[V.instanceId] : null);
|
|
11821
11821
|
y.dispatch({
|
|
11822
11822
|
type: "MERGE_EVENTS",
|
|
11823
|
-
eventStore:
|
|
11823
|
+
eventStore: q
|
|
11824
11824
|
});
|
|
11825
11825
|
let Z = {
|
|
11826
11826
|
oldEvent: z,
|
|
11827
11827
|
event: le,
|
|
11828
|
-
relatedEvents: aS(
|
|
11828
|
+
relatedEvents: aS(q, y, V),
|
|
11829
11829
|
revert() {
|
|
11830
11830
|
y.dispatch({
|
|
11831
11831
|
type: "MERGE_EVENTS",
|
|
@@ -11852,18 +11852,18 @@ class IR extends jk {
|
|
|
11852
11852
|
type: "REMOVE_EVENTS",
|
|
11853
11853
|
eventStore: U
|
|
11854
11854
|
}), y.emitter.trigger("eventRemove", le);
|
|
11855
|
-
let Z =
|
|
11855
|
+
let Z = q.defs[$.defId], Y = q.instances[V.instanceId], _e = new Vl(k, Z, Y);
|
|
11856
11856
|
k.dispatch({
|
|
11857
11857
|
type: "MERGE_EVENTS",
|
|
11858
|
-
eventStore:
|
|
11858
|
+
eventStore: q
|
|
11859
11859
|
});
|
|
11860
11860
|
let at = {
|
|
11861
11861
|
event: _e,
|
|
11862
|
-
relatedEvents: aS(
|
|
11862
|
+
relatedEvents: aS(q, k, Y),
|
|
11863
11863
|
revert() {
|
|
11864
11864
|
k.dispatch({
|
|
11865
11865
|
type: "REMOVE_EVENTS",
|
|
11866
|
-
eventStore:
|
|
11866
|
+
eventStore: q
|
|
11867
11867
|
});
|
|
11868
11868
|
}
|
|
11869
11869
|
};
|
|
@@ -11939,14 +11939,14 @@ class fve extends jk {
|
|
|
11939
11939
|
view: p.viewApi
|
|
11940
11940
|
});
|
|
11941
11941
|
}, this.handleHitUpdate = (f, p, y) => {
|
|
11942
|
-
let { context: S } = this.component, k = this.relevantEvents, R = this.hitDragging.initialHit, $ = this.eventRange.instance, V = null, z = null, U = !1,
|
|
11942
|
+
let { context: S } = this.component, k = this.relevantEvents, R = this.hitDragging.initialHit, $ = this.eventRange.instance, V = null, z = null, U = !1, q = {
|
|
11943
11943
|
affectedEvents: k,
|
|
11944
11944
|
mutatedEvents: pm(),
|
|
11945
11945
|
isEvent: !0
|
|
11946
11946
|
};
|
|
11947
|
-
f && (f.componentId === R.componentId && this.isHitComboAllowed && !this.isHitComboAllowed(R, f) || (V = hve(R, f, y.subjectEl.classList.contains("fc-event-resizer-start"), $.range))), V && (z = YQ(k, S.getCurrentData().eventUiBases, V, S),
|
|
11947
|
+
f && (f.componentId === R.componentId && this.isHitComboAllowed && !this.isHitComboAllowed(R, f) || (V = hve(R, f, y.subjectEl.classList.contains("fc-event-resizer-start"), $.range))), V && (z = YQ(k, S.getCurrentData().eventUiBases, V, S), q.mutatedEvents = z, Hse(q, f.dateProfile, S) || (U = !0, V = null, z = null, q.mutatedEvents = null)), z ? S.dispatch({
|
|
11948
11948
|
type: "SET_EVENT_RESIZE",
|
|
11949
|
-
state:
|
|
11949
|
+
state: q
|
|
11950
11950
|
}) : S.dispatch({ type: "UNSET_EVENT_RESIZE" }), U ? NQ() : BQ(), p || (V && H$(R, f) && (V = null), this.validMutation = V, this.mutatedRelevantEvents = z);
|
|
11951
11951
|
}, this.handleDragEnd = (f) => {
|
|
11952
11952
|
let { context: p } = this.component, y = this.eventRange.def, S = this.eventRange.instance, k = new Vl(p, y, S), R = this.relevantEvents, $ = this.mutatedRelevantEvents;
|
|
@@ -12147,22 +12147,22 @@ const PR = (c) => (Rg("data-v-1fa0e0e1"), c = c(), Ig(), c), Cve = { class: "dem
|
|
|
12147
12147
|
},
|
|
12148
12148
|
emits: ["delete", "success"],
|
|
12149
12149
|
setup(c, { emit: r }) {
|
|
12150
|
-
const a = r, l = (
|
|
12151
|
-
if (y.selectInfo =
|
|
12152
|
-
let le =
|
|
12153
|
-
y.timeType = "month", y.form.startDate = $c.toYMD(
|
|
12150
|
+
const a = r, l = (q) => {
|
|
12151
|
+
if (y.selectInfo = q, f(), q.view.type == "dayGridMonth") {
|
|
12152
|
+
let le = q.end.getTime() - 864e5;
|
|
12153
|
+
y.timeType = "month", y.form.startDate = $c.toYMD(q.start), y.form.endDate = $c.toYMD(new Date(le));
|
|
12154
12154
|
} else
|
|
12155
|
-
|
|
12156
|
-
|
|
12155
|
+
q.view.type == "timeGridWeek" ? (y.timeType = "week", y.form.startDate = $c.toYMDHM(q.start), y.form.endDate = $c.toYMDHM(q.end)) : q.view.type == "timeGridDay" && (y.timeType = "day", y.form.startDate = $c.toYMD(q.start), y.form.endDate = $c.toYMD(q.start), y.form.startTime = $c.toDateTime(q.start), y.form.endTime = $c.toDateTime(q.end));
|
|
12156
|
+
q.view.calendar.unselect(), Qu(() => {
|
|
12157
12157
|
y.title = "新建日程", y.dialogVisible = !0;
|
|
12158
12158
|
});
|
|
12159
|
-
}, i = (
|
|
12159
|
+
}, i = (q, G) => {
|
|
12160
12160
|
y.title = "修改日程", y.dialogVisible = !0;
|
|
12161
|
-
}, f = (
|
|
12161
|
+
}, f = (q) => {
|
|
12162
12162
|
fetch("http://192.168.2.45:6002/component/pick/mix", {
|
|
12163
12163
|
method: "POST",
|
|
12164
12164
|
body: JSON.stringify({
|
|
12165
|
-
parentDepartmentId:
|
|
12165
|
+
parentDepartmentId: q || "",
|
|
12166
12166
|
name: ""
|
|
12167
12167
|
}),
|
|
12168
12168
|
headers: {
|
|
@@ -12229,15 +12229,15 @@ const PR = (c) => (Rg("data-v-1fa0e0e1"), c = c(), Ig(), c), Cve = { class: "dem
|
|
|
12229
12229
|
weekends: !0,
|
|
12230
12230
|
// height: 'auto',
|
|
12231
12231
|
select: l,
|
|
12232
|
-
eventClick: (
|
|
12233
|
-
eventsSet: (
|
|
12234
|
-
y.currentEvents =
|
|
12232
|
+
eventClick: (q) => i(),
|
|
12233
|
+
eventsSet: (q) => {
|
|
12234
|
+
y.currentEvents = q;
|
|
12235
12235
|
}
|
|
12236
12236
|
},
|
|
12237
12237
|
currentEvents: []
|
|
12238
12238
|
}), S = () => {
|
|
12239
|
-
var
|
|
12240
|
-
(
|
|
12239
|
+
var q;
|
|
12240
|
+
(q = y.formRef) == null || q.resetFields(), y.form = {
|
|
12241
12241
|
title: "",
|
|
12242
12242
|
type: 1,
|
|
12243
12243
|
startDate: "",
|
|
@@ -12249,16 +12249,16 @@ const PR = (c) => (Rg("data-v-1fa0e0e1"), c = c(), Ig(), c), Cve = { class: "dem
|
|
|
12249
12249
|
}, y.dialogVisible = !1;
|
|
12250
12250
|
}, k = async () => {
|
|
12251
12251
|
var le, Z, Y, _e;
|
|
12252
|
-
let
|
|
12252
|
+
let q = (Z = (le = y.selectInfo) == null ? void 0 : le.view) == null ? void 0 : Z.calendar, G = {
|
|
12253
12253
|
id: (/* @__PURE__ */ new Date()).getTime(),
|
|
12254
12254
|
title: y.form.title,
|
|
12255
12255
|
start: (Y = y.selectInfo) == null ? void 0 : Y.startStr,
|
|
12256
12256
|
end: (_e = y.selectInfo) == null ? void 0 : _e.endStr,
|
|
12257
12257
|
allDay: y.allDay
|
|
12258
12258
|
};
|
|
12259
|
-
await
|
|
12260
|
-
}, R = (
|
|
12261
|
-
foe.confirm(`你确定删除事件'${
|
|
12259
|
+
await q.addEvent(G), a("success", G), S();
|
|
12260
|
+
}, R = (q) => {
|
|
12261
|
+
foe.confirm(`你确定删除事件'${q.event.title}'?`, "Warning", {
|
|
12262
12262
|
confirmButtonText: "OK",
|
|
12263
12263
|
cancelButtonText: "Cancel",
|
|
12264
12264
|
type: "warning"
|
|
@@ -12266,18 +12266,18 @@ const PR = (c) => (Rg("data-v-1fa0e0e1"), c = c(), Ig(), c), Cve = { class: "dem
|
|
|
12266
12266
|
hm({
|
|
12267
12267
|
type: "success",
|
|
12268
12268
|
message: "删除成功"
|
|
12269
|
-
}),
|
|
12269
|
+
}), q.event.remove(), a("delete", q.event);
|
|
12270
12270
|
});
|
|
12271
|
-
}, $ = (
|
|
12272
|
-
y.handList =
|
|
12271
|
+
}, $ = (q) => {
|
|
12272
|
+
y.handList = q.list, y.form.personList = q.list;
|
|
12273
12273
|
}, V = () => {
|
|
12274
12274
|
y.isShow = !0;
|
|
12275
|
-
}, z = (
|
|
12276
|
-
f(
|
|
12277
|
-
}, U = (
|
|
12278
|
-
y.form.personList.splice(
|
|
12275
|
+
}, z = (q) => {
|
|
12276
|
+
f(q == null ? void 0 : q.elementId);
|
|
12277
|
+
}, U = (q) => {
|
|
12278
|
+
y.form.personList.splice(q, 1), y.handList = y.form.personList;
|
|
12279
12279
|
};
|
|
12280
|
-
return (
|
|
12280
|
+
return (q, G) => {
|
|
12281
12281
|
const le = Ho("el-checkbox");
|
|
12282
12282
|
return pe(), He("div", Cve, [
|
|
12283
12283
|
Ae("div", wve, [
|
|
@@ -12634,8 +12634,8 @@ const Hve = /* @__PURE__ */ tr($ve, [["__scopeId", "data-v-1fa0e0e1"]]), Ixe = f
|
|
|
12634
12634
|
const a = c, l = r, i = Tn(!1), f = Tn(), p = Tn(), y = Tn(!1);
|
|
12635
12635
|
Ei(
|
|
12636
12636
|
() => a.active,
|
|
12637
|
-
(
|
|
12638
|
-
let G = document.getElementById("stepItemContent"), le = document.getElementById(`stepItem${
|
|
12637
|
+
(q) => {
|
|
12638
|
+
let G = document.getElementById("stepItemContent"), le = document.getElementById(`stepItem${q}`), Z = document.getElementById("stepItem0");
|
|
12639
12639
|
const Y = le && Z ? (le == null ? void 0 : le.offsetLeft) - (Z == null ? void 0 : Z.offsetLeft) : 0;
|
|
12640
12640
|
G && le && (G.scrollLeft = Y > (G == null ? void 0 : G.clientWidth) ? Y - (G == null ? void 0 : G.offsetLeft) : 0);
|
|
12641
12641
|
}
|
|
@@ -12644,9 +12644,9 @@ const Hve = /* @__PURE__ */ tr($ve, [["__scopeId", "data-v-1fa0e0e1"]]), Ixe = f
|
|
|
12644
12644
|
() => {
|
|
12645
12645
|
Qu(() => {
|
|
12646
12646
|
let G = document.getElementById("stepItemContent"), le = (G == null ? void 0 : G.scrollWidth) > (G == null ? void 0 : G.clientWidth);
|
|
12647
|
-
i.value = le, window.addEventListener("resize",
|
|
12647
|
+
i.value = le, window.addEventListener("resize", q, !0);
|
|
12648
12648
|
});
|
|
12649
|
-
const
|
|
12649
|
+
const q = () => {
|
|
12650
12650
|
let G = document.getElementById("stepItemContent"), le = (G == null ? void 0 : G.scrollWidth) > (G == null ? void 0 : G.clientWidth);
|
|
12651
12651
|
i.value = le;
|
|
12652
12652
|
};
|
|
@@ -12655,44 +12655,44 @@ const Hve = /* @__PURE__ */ tr($ve, [["__scopeId", "data-v-1fa0e0e1"]]), Ixe = f
|
|
|
12655
12655
|
), C1(() => {
|
|
12656
12656
|
Qu(() => {
|
|
12657
12657
|
let G = document.getElementById("stepItemContent"), le = (G == null ? void 0 : G.scrollWidth) > (G == null ? void 0 : G.clientWidth);
|
|
12658
|
-
i.value = le, window.addEventListener("resize",
|
|
12658
|
+
i.value = le, window.addEventListener("resize", q, !0);
|
|
12659
12659
|
});
|
|
12660
|
-
const
|
|
12660
|
+
const q = () => {
|
|
12661
12661
|
let G = document.getElementById("stepItemContent"), le = (G == null ? void 0 : G.scrollWidth) > (G == null ? void 0 : G.clientWidth);
|
|
12662
12662
|
i.value = le;
|
|
12663
12663
|
};
|
|
12664
12664
|
});
|
|
12665
|
-
const S = (
|
|
12665
|
+
const S = (q, G) => {
|
|
12666
12666
|
if (!a.needClick)
|
|
12667
12667
|
return;
|
|
12668
|
-
l("update:active", G), l("click",
|
|
12668
|
+
l("update:active", G), l("click", q);
|
|
12669
12669
|
let le = document.getElementById("stepItemContent"), Z = document.getElementById(`stepItem${G}`), Y = document.getElementById("stepItem0");
|
|
12670
12670
|
const _e = Z && Y ? (Z == null ? void 0 : Z.offsetLeft) - (Y == null ? void 0 : Y.offsetLeft) : 0;
|
|
12671
12671
|
le && Z && (le.scrollLeft = _e > (le == null ? void 0 : le.clientWidth) ? _e - (le == null ? void 0 : le.offsetLeft) : 0);
|
|
12672
12672
|
}, k = () => {
|
|
12673
|
-
let
|
|
12674
|
-
|
|
12673
|
+
let q = document.getElementById("stepItemContent");
|
|
12674
|
+
q && (q.scrollLeft = q.scrollLeft - 20);
|
|
12675
12675
|
}, R = () => {
|
|
12676
|
-
let
|
|
12677
|
-
|
|
12676
|
+
let q = document.getElementById("stepItemContent");
|
|
12677
|
+
q && (q.scrollLeft = q.scrollLeft + 20);
|
|
12678
12678
|
}, $ = () => {
|
|
12679
12679
|
clearInterval(p.value);
|
|
12680
|
-
let
|
|
12680
|
+
let q = document.getElementById("stepItemContent");
|
|
12681
12681
|
y.value = !1, p.value = setInterval(() => {
|
|
12682
|
-
y.value = !0,
|
|
12682
|
+
y.value = !0, q && (q.scrollLeft = q.scrollLeft - 20);
|
|
12683
12683
|
}, 100);
|
|
12684
12684
|
}, V = () => {
|
|
12685
12685
|
clearInterval(p.value), y.value || k();
|
|
12686
12686
|
}, z = () => {
|
|
12687
12687
|
clearInterval(f.value);
|
|
12688
|
-
let
|
|
12688
|
+
let q = document.getElementById("stepItemContent");
|
|
12689
12689
|
y.value = !1, f.value = setInterval(() => {
|
|
12690
|
-
y.value = !0,
|
|
12690
|
+
y.value = !0, q && (q.scrollLeft = q.scrollLeft + 20);
|
|
12691
12691
|
}, 100);
|
|
12692
12692
|
}, U = () => {
|
|
12693
12693
|
clearInterval(f.value), y.value || R();
|
|
12694
12694
|
};
|
|
12695
|
-
return (
|
|
12695
|
+
return (q, G) => {
|
|
12696
12696
|
const le = Ho("el-icon");
|
|
12697
12697
|
return pe(), He("div", Vve, [
|
|
12698
12698
|
i.value ? (pe(), He(
|
|
@@ -12767,7 +12767,7 @@ const Hve = /* @__PURE__ */ tr($ve, [["__scopeId", "data-v-1fa0e0e1"]]), Ixe = f
|
|
|
12767
12767
|
cursor: Z && Z.disabled ? "not-allowed" : c.needClick ? "pointer" : "context-menu"
|
|
12768
12768
|
})
|
|
12769
12769
|
}, [
|
|
12770
|
-
dr(
|
|
12770
|
+
dr(q.$slots, "icon", {
|
|
12771
12771
|
data: { item: Z, index: Y }
|
|
12772
12772
|
}, () => [
|
|
12773
12773
|
_s(
|
|
@@ -12921,13 +12921,13 @@ const Yve = /* @__PURE__ */ tr(Kve, [["__scopeId", "data-v-a26cdcaf"]]), Pxe = f
|
|
|
12921
12921
|
size: "size",
|
|
12922
12922
|
...a.field
|
|
12923
12923
|
})), S = Tn({}), k = Tn(!1), R = (U) => {
|
|
12924
|
-
var
|
|
12924
|
+
var q, G;
|
|
12925
12925
|
S.value = {
|
|
12926
12926
|
...U,
|
|
12927
12927
|
name: U.name,
|
|
12928
12928
|
url: u_(
|
|
12929
12929
|
l.value,
|
|
12930
|
-
(U == null ? void 0 : U.url) || ((G = (
|
|
12930
|
+
(U == null ? void 0 : U.url) || ((G = (q = U == null ? void 0 : U.response) == null ? void 0 : q.data) == null ? void 0 : G.id) || (U == null ? void 0 : U.id)
|
|
12931
12931
|
)
|
|
12932
12932
|
}, a.isOnlyOfficePreview && (k.value = !0), p("handPreview", S.value);
|
|
12933
12933
|
}, $ = (U) => {
|
|
@@ -12938,13 +12938,17 @@ const Yve = /* @__PURE__ */ tr(Kve, [["__scopeId", "data-v-a26cdcaf"]]), Pxe = f
|
|
|
12938
12938
|
),
|
|
12939
12939
|
U[y.value.name] || U.attachmentName
|
|
12940
12940
|
);
|
|
12941
|
-
}, V = no(() => Bk.isNumber(a.width) ? `${a.width}px` : a.width), z = no(() => a.list.map((U) =>
|
|
12942
|
-
|
|
12943
|
-
|
|
12944
|
-
|
|
12945
|
-
|
|
12946
|
-
|
|
12947
|
-
|
|
12941
|
+
}, V = no(() => Bk.isNumber(a.width) ? `${a.width}px` : a.width), z = no(() => a.list.map((U) => {
|
|
12942
|
+
var G;
|
|
12943
|
+
const q = U[y.value.name] || U.attachmentName;
|
|
12944
|
+
return {
|
|
12945
|
+
...U,
|
|
12946
|
+
name: q,
|
|
12947
|
+
size: U[y.value.size] || (U == null ? void 0 : U.fileSize) || (U == null ? void 0 : U.attachmentSize),
|
|
12948
|
+
suffix: U[y.value.suffix] || (U == null ? void 0 : U.attachmentSuffix) || ((G = q.split(".")) == null ? void 0 : G.at(-1))
|
|
12949
|
+
};
|
|
12950
|
+
}));
|
|
12951
|
+
return (U, q) => {
|
|
12948
12952
|
var le, Z, Y;
|
|
12949
12953
|
const G = Ho("tmplate");
|
|
12950
12954
|
return pe(), He(
|
|
@@ -13088,7 +13092,7 @@ const Yve = /* @__PURE__ */ tr(Kve, [["__scopeId", "data-v-a26cdcaf"]]), Pxe = f
|
|
|
13088
13092
|
)) : bt("v-if", !0),
|
|
13089
13093
|
Ze(Ge(Are), {
|
|
13090
13094
|
show: k.value,
|
|
13091
|
-
"onUpdate:show":
|
|
13095
|
+
"onUpdate:show": q[0] || (q[0] = (_e) => k.value = _e),
|
|
13092
13096
|
loadUrl: Ge(l),
|
|
13093
13097
|
file: S.value,
|
|
13094
13098
|
onlyofficeServer: ((Z = Ge(i)) == null ? void 0 : Z.serverUrl) || c.onlyofficeServer,
|
|
@@ -13150,7 +13154,7 @@ const uJ = fr(o1e), s1e = /* @__PURE__ */ fo({
|
|
|
13150
13154
|
office: !1,
|
|
13151
13155
|
video: !1
|
|
13152
13156
|
}), y = (k) => {
|
|
13153
|
-
var R, $, V, z, U,
|
|
13157
|
+
var R, $, V, z, U, q, G;
|
|
13154
13158
|
try {
|
|
13155
13159
|
const le = ((R = k == null ? void 0 : k.response) == null ? void 0 : R.data) || k, Z = le[l.value.url] || (le == null ? void 0 : le.id) || le.attachmentId, Y = ($ = le[l.value.suffix] || le.attachmentSuffix) == null ? void 0 : $.toLowerCase(), _e = le[l.value.name] || (le == null ? void 0 : le.attachmentName) || (le == null ? void 0 : le.originName);
|
|
13156
13160
|
if (f.value = {
|
|
@@ -13169,7 +13173,7 @@ const uJ = fr(o1e), s1e = /* @__PURE__ */ fo({
|
|
|
13169
13173
|
editorConfig: {
|
|
13170
13174
|
...((z = r.onlyOfficeConfig) == null ? void 0 : z.editorConfig) || {},
|
|
13171
13175
|
customization: {
|
|
13172
|
-
...((
|
|
13176
|
+
...((q = (U = r.onlyOfficeConfig) == null ? void 0 : U.editorConfig) == null ? void 0 : q.customization) || {},
|
|
13173
13177
|
review: {
|
|
13174
13178
|
reviewDisplay: "final"
|
|
13175
13179
|
}
|
|
@@ -13425,7 +13429,7 @@ const Are = fr(s1e), r1e = "data:image/webp;base64,UklGRnoEAABXRUJQVlA4WAoAAAAwA
|
|
|
13425
13429
|
size: "size"
|
|
13426
13430
|
},
|
|
13427
13431
|
...a.defaultFileds
|
|
13428
|
-
}, { cLoadUrl: y, cUploadUrl: S, cOnlyofficeConfig: k, cOnlyofficePreviewType: R } = mS(a), $ = no(() => a.size), V = Tn(null), z = Tn([]), U = Tn({}),
|
|
13432
|
+
}, { cLoadUrl: y, cUploadUrl: S, cOnlyofficeConfig: k, cOnlyofficePreviewType: R } = mS(a), $ = no(() => a.size), V = Tn(null), z = Tn([]), U = Tn({}), q = Tn(!1), G = (N) => {
|
|
13429
13433
|
const qt = N.size / 1024 / 1024;
|
|
13430
13434
|
return qt < $.value ? !0 : (l("outSize"), hm({
|
|
13431
13435
|
message: `上传文件大小(${qt.toFixed(4)}MB)超出允许最大值(${a.size}MB),请重新选择`,
|
|
@@ -13478,7 +13482,7 @@ const Are = fr(s1e), r1e = "data:image/webp;base64,UklGRnoEAABXRUJQVlA4WAoAAAAwA
|
|
|
13478
13482
|
y.value,
|
|
13479
13483
|
N[p.url] || ((ct = (qt = N == null ? void 0 : N.response) == null ? void 0 : qt.data) == null ? void 0 : ct.id)
|
|
13480
13484
|
)
|
|
13481
|
-
}, a.isOnlyOfficePreview && (
|
|
13485
|
+
}, a.isOnlyOfficePreview && (q.value = !0), l("handPreview", U.value);
|
|
13482
13486
|
}, ot = (N) => {
|
|
13483
13487
|
xQ.downloadByOnlineUrl(
|
|
13484
13488
|
N[p.url],
|
|
@@ -13970,8 +13974,8 @@ const Are = fr(s1e), r1e = "data:image/webp;base64,UklGRnoEAABXRUJQVlA4WAoAAAAwA
|
|
|
13970
13974
|
/* STABLE_FRAGMENT */
|
|
13971
13975
|
)),
|
|
13972
13976
|
Ze(Ge(Are), {
|
|
13973
|
-
show:
|
|
13974
|
-
"onUpdate:show": qt[2] || (qt[2] = (Ut) =>
|
|
13977
|
+
show: q.value,
|
|
13978
|
+
"onUpdate:show": qt[2] || (qt[2] = (Ut) => q.value = Ut),
|
|
13975
13979
|
loadUrl: Ge(y),
|
|
13976
13980
|
file: U.value,
|
|
13977
13981
|
onlyofficeServer: ((ct = Ge(k)) == null ? void 0 : ct.serverUrl) || c.onlyofficeServer,
|
|
@@ -14215,7 +14219,7 @@ const q1e = /* @__PURE__ */ tr(B1e, [["render", Z1e]]), kre = (c) => (Rg("data-v
|
|
|
14215
14219
|
},
|
|
14216
14220
|
{ deep: !0 }
|
|
14217
14221
|
);
|
|
14218
|
-
const f = r, { cLoadUrl: p, cUploadUrl: y } = mS(a), S = no(() => `${a.width}px`), k = no(() => `${a.height}px`), R = no(() => a.size), $ = Tn(null), V = Tn(i(l.value)), z = Tn([]), U = Tn(!1),
|
|
14222
|
+
const f = r, { cLoadUrl: p, cUploadUrl: y } = mS(a), S = no(() => `${a.width}px`), k = no(() => `${a.height}px`), R = no(() => a.size), $ = Tn(null), V = Tn(i(l.value)), z = Tn([]), U = Tn(!1), q = Tn(0), G = no(
|
|
14219
14223
|
() => a.tipText || `最多可上传${a.limit}张图片, 每张图片不能超过${a.size}MB`
|
|
14220
14224
|
), le = (dt, N) => {
|
|
14221
14225
|
}, Z = (dt) => {
|
|
@@ -14254,7 +14258,7 @@ const q1e = /* @__PURE__ */ tr(B1e, [["render", Z1e]]), kre = (c) => (Rg("data-v
|
|
|
14254
14258
|
});
|
|
14255
14259
|
}, ke = (dt) => {
|
|
14256
14260
|
var N;
|
|
14257
|
-
U.value = !0,
|
|
14261
|
+
U.value = !0, q.value = Array.isArray(l == null ? void 0 : l.value) ? (N = l == null ? void 0 : l.value) == null ? void 0 : N.findIndex((qt) => qt.url === dt.url) : 0;
|
|
14258
14262
|
}, ot = (dt) => {
|
|
14259
14263
|
xQ.downloadFile(dt.__url || dt.url, dt.name || dt.url);
|
|
14260
14264
|
}, st = (dt) => {
|
|
@@ -14475,7 +14479,7 @@ const q1e = /* @__PURE__ */ tr(B1e, [["render", Z1e]]), kre = (c) => (Rg("data-v
|
|
|
14475
14479
|
U.value = !1;
|
|
14476
14480
|
}),
|
|
14477
14481
|
"url-list": i(V.value).map((qt) => qt.__url),
|
|
14478
|
-
"initial-index":
|
|
14482
|
+
"initial-index": q.value
|
|
14479
14483
|
}, null, 8, ["url-list", "initial-index"])) : bt("v-if", !0)
|
|
14480
14484
|
])
|
|
14481
14485
|
],
|
|
@@ -14650,7 +14654,7 @@ const a0e = /* @__PURE__ */ tr(i0e, [["__scopeId", "data-v-633498bc"]]), Nxe = f
|
|
|
14650
14654
|
}), z = Zp({
|
|
14651
14655
|
timeType: "month",
|
|
14652
14656
|
options: V()
|
|
14653
|
-
}), U = Tn(null),
|
|
14657
|
+
}), U = Tn(null), q = () => {
|
|
14654
14658
|
var Z;
|
|
14655
14659
|
z.options = V(), (Z = p.value) == null || Z.buildOptions(z.options);
|
|
14656
14660
|
};
|
|
@@ -14687,7 +14691,7 @@ const a0e = /* @__PURE__ */ tr(i0e, [["__scopeId", "data-v-633498bc"]]), Nxe = f
|
|
|
14687
14691
|
}
|
|
14688
14692
|
}
|
|
14689
14693
|
}), Ei(() => i.value, () => {
|
|
14690
|
-
|
|
14694
|
+
q();
|
|
14691
14695
|
});
|
|
14692
14696
|
const le = () => {
|
|
14693
14697
|
var Z;
|
|
@@ -15086,7 +15090,7 @@ const P0e = /* @__PURE__ */ tr(I0e, [["__scopeId", "data-v-52806adf"]]), Or = fr
|
|
|
15086
15090
|
}, U = () => {
|
|
15087
15091
|
var ke;
|
|
15088
15092
|
(ke = k.value) == null || ke.today(), $();
|
|
15089
|
-
},
|
|
15093
|
+
}, q = (ke) => S.currentView === ke, G = Tn(null), le = {
|
|
15090
15094
|
createDefaultForm: () => ({
|
|
15091
15095
|
title: "",
|
|
15092
15096
|
allDay: !1,
|
|
@@ -15219,7 +15223,7 @@ const P0e = /* @__PURE__ */ tr(I0e, [["__scopeId", "data-v-52806adf"]]), Or = fr
|
|
|
15219
15223
|
default: Rt(() => [
|
|
15220
15224
|
Ze(st, {
|
|
15221
15225
|
onClick: ot[0] || (ot[0] = (Ye) => R("dayGridMonth")),
|
|
15222
|
-
type:
|
|
15226
|
+
type: q("dayGridMonth") ? "primary" : ""
|
|
15223
15227
|
}, {
|
|
15224
15228
|
default: Rt(() => [
|
|
15225
15229
|
_s("月")
|
|
@@ -15229,7 +15233,7 @@ const P0e = /* @__PURE__ */ tr(I0e, [["__scopeId", "data-v-52806adf"]]), Or = fr
|
|
|
15229
15233
|
}, 8, ["type"]),
|
|
15230
15234
|
Ze(st, {
|
|
15231
15235
|
onClick: ot[1] || (ot[1] = (Ye) => R("timeGridWeek")),
|
|
15232
|
-
type:
|
|
15236
|
+
type: q("timeGridWeek") ? "primary" : ""
|
|
15233
15237
|
}, {
|
|
15234
15238
|
default: Rt(() => [
|
|
15235
15239
|
_s("周")
|
|
@@ -15239,7 +15243,7 @@ const P0e = /* @__PURE__ */ tr(I0e, [["__scopeId", "data-v-52806adf"]]), Or = fr
|
|
|
15239
15243
|
}, 8, ["type"]),
|
|
15240
15244
|
Ze(st, {
|
|
15241
15245
|
onClick: ot[2] || (ot[2] = (Ye) => R("timeGridDay")),
|
|
15242
|
-
type:
|
|
15246
|
+
type: q("timeGridDay") ? "primary" : ""
|
|
15243
15247
|
}, {
|
|
15244
15248
|
default: Rt(() => [
|
|
15245
15249
|
_s("日")
|
|
@@ -15703,7 +15707,7 @@ const ebe = /* @__PURE__ */ fo({
|
|
|
15703
15707
|
r("search", y.value), (vt = c.search) == null || vt.call(c, y.value);
|
|
15704
15708
|
}, U = (vt) => {
|
|
15705
15709
|
vt.key === "Enter" && R();
|
|
15706
|
-
},
|
|
15710
|
+
}, q = () => {
|
|
15707
15711
|
var vt;
|
|
15708
15712
|
(vt = l.value) == null || vt.resetFields(), R();
|
|
15709
15713
|
};
|
|
@@ -16060,7 +16064,7 @@ const ebe = /* @__PURE__ */ fo({
|
|
|
16060
16064
|
size: "big",
|
|
16061
16065
|
"show-bg": !0,
|
|
16062
16066
|
width: 40,
|
|
16063
|
-
onClick: () =>
|
|
16067
|
+
onClick: () => q()
|
|
16064
16068
|
}, null)])
|
|
16065
16069
|
) : Ze(oS, {
|
|
16066
16070
|
label: Wt.type === "select-input" ? "" : Wt.label,
|
|
@@ -16506,10 +16510,10 @@ const ube = /* @__PURE__ */ tr(cbe, [["__scopeId", "data-v-e7b4fc6e"]]), dbe = /
|
|
|
16506
16510
|
page: ((V = f.page) == null ? void 0 : V.page) || 1,
|
|
16507
16511
|
rows: 15
|
|
16508
16512
|
}), y = no(() => {
|
|
16509
|
-
const { page: z, rows: U } = (f == null ? void 0 : f.page) || p.value,
|
|
16510
|
-
return
|
|
16513
|
+
const { page: z, rows: U } = (f == null ? void 0 : f.page) || p.value, q = zl.cloneDeep(l.tableData);
|
|
16514
|
+
return q.forEach((G, le) => {
|
|
16511
16515
|
G.__index = z === 1 ? le + 1 : (z - 1) * U + le + 1;
|
|
16512
|
-
}),
|
|
16516
|
+
}), q;
|
|
16513
16517
|
}), S = (z) => {
|
|
16514
16518
|
p.value = z, i("page-change", z), l.search();
|
|
16515
16519
|
}, k = Tn([]), R = (z) => {
|
|
@@ -16517,7 +16521,7 @@ const ube = /* @__PURE__ */ tr(cbe, [["__scopeId", "data-v-e7b4fc6e"]]), dbe = /
|
|
|
16517
16521
|
}, $ = Tn();
|
|
16518
16522
|
return r({ table: $ }), (z, U) => {
|
|
16519
16523
|
var Z, Y, _e;
|
|
16520
|
-
const
|
|
16524
|
+
const q = Ho("el-table-column"), G = Ho("el-table"), le = xR("loading");
|
|
16521
16525
|
return pe(), He(
|
|
16522
16526
|
wo,
|
|
16523
16527
|
null,
|
|
@@ -16539,13 +16543,13 @@ const ube = /* @__PURE__ */ tr(cbe, [["__scopeId", "data-v-e7b4fc6e"]]), dbe = /
|
|
|
16539
16543
|
onSelectionChange: R
|
|
16540
16544
|
}), {
|
|
16541
16545
|
default: Rt(() => [
|
|
16542
|
-
z.selection ? (pe(), Nn(
|
|
16546
|
+
z.selection ? (pe(), Nn(q, {
|
|
16543
16547
|
key: 0,
|
|
16544
16548
|
type: "selection",
|
|
16545
16549
|
align: "center",
|
|
16546
16550
|
width: "56"
|
|
16547
16551
|
})) : bt("v-if", !0),
|
|
16548
|
-
z.serial ? (pe(), Nn(
|
|
16552
|
+
z.serial ? (pe(), Nn(q, {
|
|
16549
16553
|
key: 1,
|
|
16550
16554
|
prop: "__index",
|
|
16551
16555
|
label: "序号",
|
|
@@ -16620,12 +16624,12 @@ const fbe = /* @__PURE__ */ tr(dbe, [["__scopeId", "data-v-7e61d7f1"]]), hbe = {
|
|
|
16620
16624
|
});
|
|
16621
16625
|
}, k = Tn([]), R = (Pe) => {
|
|
16622
16626
|
k.value = Pe, i("selection-change", Pe);
|
|
16623
|
-
}, $ = no(() => k.value.length || l.chooseLen), V = Tn(l.fields), z = no(() => "light"), U = Tn(),
|
|
16627
|
+
}, $ = no(() => k.value.length || l.chooseLen), V = Tn(l.fields), z = no(() => "light"), U = Tn(), q = Tn(), G = Tn(), le = Tn(!1), Z = Tn(void 0), Y = Tn(l.title || ""), _e = (Pe) => {
|
|
16624
16628
|
Z.value = Pe ? { ...Pe } : null, l.title ? l.title.includes("新增") || l.title.includes("修改") ? Y.value = Pe ? l.title.replace(/新增/g, "修改") : l.title.replace(/修改/g, "新增") : Y.value = Pe ? `修改${l.title}` : `新增${l.title}` : Y.value = Pe ? "修改" : "新增", le.value = !0;
|
|
16625
16629
|
}, at = no(() => l.fields.find((Pe) => Pe.isEdit));
|
|
16626
16630
|
return r({
|
|
16627
16631
|
table: U,
|
|
16628
|
-
header:
|
|
16632
|
+
header: q,
|
|
16629
16633
|
chooseList: k,
|
|
16630
16634
|
srotFields: V,
|
|
16631
16635
|
pageData: f,
|
|
@@ -16640,7 +16644,7 @@ const fbe = /* @__PURE__ */ tr(dbe, [["__scopeId", "data-v-7e61d7f1"]]), hbe = {
|
|
|
16640
16644
|
bt(" 标题 + 搜索表单 "),
|
|
16641
16645
|
Ze(ibe, vi({
|
|
16642
16646
|
ref_key: "refHeader",
|
|
16643
|
-
ref:
|
|
16647
|
+
ref: q
|
|
16644
16648
|
}, { ...Pe.$attrs, ...l }, {
|
|
16645
16649
|
modelValue: V.value,
|
|
16646
16650
|
"onUpdate:modelValue": J[1] || (J[1] = (ye) => V.value = ye),
|
|
@@ -17137,28 +17141,28 @@ const mm = /* @__PURE__ */ tr(tye, [["__scopeId", "data-v-8031ce9b"]]), fJ = "da
|
|
|
17137
17141
|
setup(c, { emit: r }) {
|
|
17138
17142
|
var V, z;
|
|
17139
17143
|
const a = c, l = no(() => {
|
|
17140
|
-
var U,
|
|
17141
|
-
return ((U = a.handList) == null ? void 0 : U.length) === ((
|
|
17144
|
+
var U, q;
|
|
17145
|
+
return ((U = a.handList) == null ? void 0 : U.length) === ((q = a.list) == null ? void 0 : q.length);
|
|
17142
17146
|
}), i = no(() => {
|
|
17143
17147
|
var G, le, Z, Y;
|
|
17144
|
-
const U = (G = a.handList) == null ? void 0 : G.length,
|
|
17145
|
-
return a.multiple ? f.value = a.handList.map((_e) => _e[a.fixPropOpt.id]) : p.value = (Y = (Z = a.handList) == null ? void 0 : Z[0]) == null ? void 0 : Y[a.fixPropOpt.id], U > 0 && U <
|
|
17148
|
+
const U = (G = a.handList) == null ? void 0 : G.length, q = (le = a.list) == null ? void 0 : le.length;
|
|
17149
|
+
return a.multiple ? f.value = a.handList.map((_e) => _e[a.fixPropOpt.id]) : p.value = (Y = (Z = a.handList) == null ? void 0 : Z[0]) == null ? void 0 : Y[a.fixPropOpt.id], U > 0 && U < q;
|
|
17146
17150
|
}), f = Tn(
|
|
17147
17151
|
a.handList.map((U) => U[a.fixPropOpt.id])
|
|
17148
17152
|
), p = Tn((z = (V = a.handList) == null ? void 0 : V[0]) == null ? void 0 : z[a.fixPropOpt.id]), y = r, S = (U) => {
|
|
17149
|
-
const
|
|
17153
|
+
const q = U ? a.list.map((G) => {
|
|
17150
17154
|
if (a.chooseType.includes(G[a.fixPropOpt.type].toLowerCase()) && G.available !== !1)
|
|
17151
17155
|
return G[a.fixPropOpt.id];
|
|
17152
17156
|
}) : [];
|
|
17153
|
-
y("change",
|
|
17157
|
+
y("change", q, U ? a.list : []);
|
|
17154
17158
|
}, k = (U) => {
|
|
17155
17159
|
y("change", U, a.list);
|
|
17156
17160
|
}, R = (U) => {
|
|
17157
17161
|
y("change", U, a.list);
|
|
17158
|
-
}, $ = (U,
|
|
17159
|
-
|
|
17162
|
+
}, $ = (U, q) => {
|
|
17163
|
+
q || y("handChild", U);
|
|
17160
17164
|
};
|
|
17161
|
-
return (U,
|
|
17165
|
+
return (U, q) => (pe(), He(
|
|
17162
17166
|
wo,
|
|
17163
17167
|
null,
|
|
17164
17168
|
[
|
|
@@ -17167,7 +17171,7 @@ const mm = /* @__PURE__ */ tr(tye, [["__scopeId", "data-v-8031ce9b"]]), fJ = "da
|
|
|
17167
17171
|
U.multiple && U.list && U.list.length ? (pe(), Nn(Ge(c_), {
|
|
17168
17172
|
key: 0,
|
|
17169
17173
|
modelValue: l.value,
|
|
17170
|
-
"onUpdate:modelValue":
|
|
17174
|
+
"onUpdate:modelValue": q[0] || (q[0] = (G) => l.value = G),
|
|
17171
17175
|
indeterminate: i.value,
|
|
17172
17176
|
onChange: S
|
|
17173
17177
|
}, {
|
|
@@ -17181,7 +17185,7 @@ const mm = /* @__PURE__ */ tr(tye, [["__scopeId", "data-v-8031ce9b"]]), fJ = "da
|
|
|
17181
17185
|
U.multiple ? (pe(), Nn(Ge(kR), {
|
|
17182
17186
|
key: 0,
|
|
17183
17187
|
modelValue: f.value,
|
|
17184
|
-
"onUpdate:modelValue":
|
|
17188
|
+
"onUpdate:modelValue": q[1] || (q[1] = (G) => f.value = G),
|
|
17185
17189
|
onChange: k
|
|
17186
17190
|
}, {
|
|
17187
17191
|
default: Rt(() => [
|
|
@@ -17284,7 +17288,7 @@ const mm = /* @__PURE__ */ tr(tye, [["__scopeId", "data-v-8031ce9b"]]), fJ = "da
|
|
|
17284
17288
|
key: 1,
|
|
17285
17289
|
isIndeterminate: i.value,
|
|
17286
17290
|
modelValue: p.value,
|
|
17287
|
-
"onUpdate:modelValue":
|
|
17291
|
+
"onUpdate:modelValue": q[2] || (q[2] = (G) => p.value = G),
|
|
17288
17292
|
onChange: R
|
|
17289
17293
|
}, {
|
|
17290
17294
|
default: Rt(() => [
|
|
@@ -17442,13 +17446,13 @@ const Rye = /* @__PURE__ */ tr(Oye, [["__scopeId", "data-v-8c34a55d"]]), gJ = (c
|
|
|
17442
17446
|
var z, U;
|
|
17443
17447
|
return ((z = a.handList) == null ? void 0 : z.length) === ((U = a.list) == null ? void 0 : U.length);
|
|
17444
17448
|
}), i = no(() => {
|
|
17445
|
-
var
|
|
17446
|
-
const z = (
|
|
17449
|
+
var q, G, le, Z;
|
|
17450
|
+
const z = (q = a.handList) == null ? void 0 : q.length, U = (G = a.list) == null ? void 0 : G.length;
|
|
17447
17451
|
return a.multiple ? f.value = a.handList.map((Y) => Y[a.fixPropOpt.id]) : p.value = (Z = (le = a.handList) == null ? void 0 : le[0]) == null ? void 0 : Z[a.fixPropOpt.id], z > 0 && z < U;
|
|
17448
17452
|
}), f = Tn(
|
|
17449
17453
|
a.handList.map((z) => z[a.fixPropOpt.id])
|
|
17450
17454
|
), p = Tn((V = ($ = a.handList) == null ? void 0 : $[0]) == null ? void 0 : V[a.fixPropOpt.id]), y = r, S = (z) => {
|
|
17451
|
-
const U = z ? a.list.map((
|
|
17455
|
+
const U = z ? a.list.map((q) => q[a.fixPropOpt.id]) : [];
|
|
17452
17456
|
y("change", U, z ? a.list : []);
|
|
17453
17457
|
}, k = (z) => {
|
|
17454
17458
|
y("change", z, a.list);
|
|
@@ -17464,7 +17468,7 @@ const Rye = /* @__PURE__ */ tr(Oye, [["__scopeId", "data-v-8c34a55d"]]), gJ = (c
|
|
|
17464
17468
|
z.multiple && z.chooseType.includes("post") && z.list && z.list.length ? (pe(), Nn(Ge(c_), {
|
|
17465
17469
|
key: 0,
|
|
17466
17470
|
modelValue: l.value,
|
|
17467
|
-
"onUpdate:modelValue": U[0] || (U[0] = (
|
|
17471
|
+
"onUpdate:modelValue": U[0] || (U[0] = (q) => l.value = q),
|
|
17468
17472
|
indeterminate: i.value,
|
|
17469
17473
|
onChange: S
|
|
17470
17474
|
}, {
|
|
@@ -17478,33 +17482,33 @@ const Rye = /* @__PURE__ */ tr(Oye, [["__scopeId", "data-v-8c34a55d"]]), gJ = (c
|
|
|
17478
17482
|
z.multiple ? (pe(), Nn(Ge(kR), {
|
|
17479
17483
|
key: 0,
|
|
17480
17484
|
modelValue: f.value,
|
|
17481
|
-
"onUpdate:modelValue": U[1] || (U[1] = (
|
|
17485
|
+
"onUpdate:modelValue": U[1] || (U[1] = (q) => f.value = q),
|
|
17482
17486
|
onChange: k
|
|
17483
17487
|
}, {
|
|
17484
17488
|
default: Rt(() => [
|
|
17485
17489
|
(pe(!0), He(
|
|
17486
17490
|
wo,
|
|
17487
17491
|
null,
|
|
17488
|
-
qr(z.list, (
|
|
17489
|
-
key:
|
|
17492
|
+
qr(z.list, (q) => (pe(), He("li", {
|
|
17493
|
+
key: q[a.fixPropOpt.id]
|
|
17490
17494
|
}, [
|
|
17491
|
-
z.chooseType.includes(
|
|
17495
|
+
z.chooseType.includes(q[a.fixPropOpt.type].toLowerCase()) ? (pe(), Nn(Ge(c_), {
|
|
17492
17496
|
key: 0,
|
|
17493
|
-
label:
|
|
17497
|
+
label: q[a.fixPropOpt.id]
|
|
17494
17498
|
}, {
|
|
17495
17499
|
default: Rt(() => [
|
|
17496
17500
|
Ae("div", Mye, [
|
|
17497
17501
|
Ze(mm, {
|
|
17498
17502
|
fixTypeOpt: a.fixTypeOpt,
|
|
17499
17503
|
fixPropOpt: a.fixPropOpt,
|
|
17500
|
-
element:
|
|
17504
|
+
element: q,
|
|
17501
17505
|
imageBaseUrl: a.imageBaseUrl
|
|
17502
17506
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
17503
17507
|
]),
|
|
17504
17508
|
Ae(
|
|
17505
17509
|
"p",
|
|
17506
17510
|
null,
|
|
17507
|
-
Pn(
|
|
17511
|
+
Pn(q[a.fixPropOpt.name]),
|
|
17508
17512
|
1
|
|
17509
17513
|
/* TEXT */
|
|
17510
17514
|
)
|
|
@@ -17517,14 +17521,14 @@ const Rye = /* @__PURE__ */ tr(Oye, [["__scopeId", "data-v-8c34a55d"]]), gJ = (c
|
|
|
17517
17521
|
Ze(mm, {
|
|
17518
17522
|
fixTypeOpt: a.fixTypeOpt,
|
|
17519
17523
|
fixPropOpt: a.fixPropOpt,
|
|
17520
|
-
element:
|
|
17524
|
+
element: q,
|
|
17521
17525
|
imageBaseUrl: a.imageBaseUrl
|
|
17522
17526
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
17523
17527
|
]),
|
|
17524
17528
|
Ae(
|
|
17525
17529
|
"div",
|
|
17526
17530
|
Fye,
|
|
17527
|
-
Pn(
|
|
17531
|
+
Pn(q[a.fixPropOpt.name]),
|
|
17528
17532
|
1
|
|
17529
17533
|
/* TEXT */
|
|
17530
17534
|
)
|
|
@@ -17540,20 +17544,20 @@ const Rye = /* @__PURE__ */ tr(Oye, [["__scopeId", "data-v-8c34a55d"]]), gJ = (c
|
|
|
17540
17544
|
key: 1,
|
|
17541
17545
|
isIndeterminate: i.value,
|
|
17542
17546
|
modelValue: p.value,
|
|
17543
|
-
"onUpdate:modelValue": U[2] || (U[2] = (
|
|
17547
|
+
"onUpdate:modelValue": U[2] || (U[2] = (q) => p.value = q),
|
|
17544
17548
|
onChange: R
|
|
17545
17549
|
}, {
|
|
17546
17550
|
default: Rt(() => [
|
|
17547
17551
|
(pe(!0), He(
|
|
17548
17552
|
wo,
|
|
17549
17553
|
null,
|
|
17550
|
-
qr(z.list, (
|
|
17554
|
+
qr(z.list, (q) => (pe(), He("li", {
|
|
17551
17555
|
class: "w-full",
|
|
17552
|
-
key:
|
|
17556
|
+
key: q[a.fixPropOpt.id]
|
|
17553
17557
|
}, [
|
|
17554
|
-
z.chooseType.includes(
|
|
17558
|
+
z.chooseType.includes(q[a.fixPropOpt.type].toLowerCase()) ? (pe(), Nn(Ge(AR), {
|
|
17555
17559
|
key: 0,
|
|
17556
|
-
label:
|
|
17560
|
+
label: q[a.fixPropOpt.id]
|
|
17557
17561
|
}, {
|
|
17558
17562
|
default: Rt(() => [
|
|
17559
17563
|
Ae("div", $ye, [
|
|
@@ -17561,14 +17565,14 @@ const Rye = /* @__PURE__ */ tr(Oye, [["__scopeId", "data-v-8c34a55d"]]), gJ = (c
|
|
|
17561
17565
|
Ze(mm, {
|
|
17562
17566
|
fixTypeOpt: a.fixTypeOpt,
|
|
17563
17567
|
fixPropOpt: a.fixPropOpt,
|
|
17564
|
-
element:
|
|
17568
|
+
element: q,
|
|
17565
17569
|
imageBaseUrl: a.imageBaseUrl
|
|
17566
17570
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
17567
17571
|
]),
|
|
17568
17572
|
Ae(
|
|
17569
17573
|
"p",
|
|
17570
17574
|
null,
|
|
17571
|
-
Pn(
|
|
17575
|
+
Pn(q[a.fixPropOpt.name]),
|
|
17572
17576
|
1
|
|
17573
17577
|
/* TEXT */
|
|
17574
17578
|
)
|
|
@@ -17582,14 +17586,14 @@ const Rye = /* @__PURE__ */ tr(Oye, [["__scopeId", "data-v-8c34a55d"]]), gJ = (c
|
|
|
17582
17586
|
Ze(mm, {
|
|
17583
17587
|
fixTypeOpt: a.fixTypeOpt,
|
|
17584
17588
|
fixPropOpt: a.fixPropOpt,
|
|
17585
|
-
element:
|
|
17589
|
+
element: q,
|
|
17586
17590
|
imageBaseUrl: a.imageBaseUrl
|
|
17587
17591
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
17588
17592
|
]),
|
|
17589
17593
|
Ae(
|
|
17590
17594
|
"div",
|
|
17591
17595
|
Wye,
|
|
17592
|
-
Pn(
|
|
17596
|
+
Pn(q[a.fixPropOpt.name]),
|
|
17593
17597
|
1
|
|
17594
17598
|
/* TEXT */
|
|
17595
17599
|
)
|
|
@@ -17662,13 +17666,13 @@ const qye = /* @__PURE__ */ tr(Zye, [["__scopeId", "data-v-e03f0d36"]]), pJ = (c
|
|
|
17662
17666
|
var z, U;
|
|
17663
17667
|
return ((z = a.handList) == null ? void 0 : z.length) === ((U = a.list) == null ? void 0 : U.length);
|
|
17664
17668
|
}), i = no(() => {
|
|
17665
|
-
var
|
|
17666
|
-
const z = (
|
|
17669
|
+
var q, G, le, Z;
|
|
17670
|
+
const z = (q = a.handList) == null ? void 0 : q.length, U = (G = a.list) == null ? void 0 : G.length;
|
|
17667
17671
|
return a.multiple ? f.value = a.handList.map((Y) => Y[a.fixPropOpt.id]) : p.value = (Z = (le = a.handList) == null ? void 0 : le[0]) == null ? void 0 : Z[a.fixPropOpt.id], z > 0 && z < U;
|
|
17668
17672
|
}), f = Tn(
|
|
17669
17673
|
a.handList.map((z) => z[a.fixPropOpt.id])
|
|
17670
17674
|
), p = Tn((V = ($ = a.handList) == null ? void 0 : $[0]) == null ? void 0 : V[a.fixPropOpt.id]), y = r, S = (z) => {
|
|
17671
|
-
const U = z ? a.list.map((
|
|
17675
|
+
const U = z ? a.list.map((q) => q[a.fixPropOpt.id]) : [];
|
|
17672
17676
|
y("change", U, z ? a.list : []);
|
|
17673
17677
|
}, k = (z) => {
|
|
17674
17678
|
y("change", z, a.list);
|
|
@@ -17684,7 +17688,7 @@ const qye = /* @__PURE__ */ tr(Zye, [["__scopeId", "data-v-e03f0d36"]]), pJ = (c
|
|
|
17684
17688
|
z.multiple && z.chooseType.includes("role") && z.list && z.list.length ? (pe(), Nn(Ge(c_), {
|
|
17685
17689
|
key: 0,
|
|
17686
17690
|
modelValue: l.value,
|
|
17687
|
-
"onUpdate:modelValue": U[0] || (U[0] = (
|
|
17691
|
+
"onUpdate:modelValue": U[0] || (U[0] = (q) => l.value = q),
|
|
17688
17692
|
indeterminate: i.value,
|
|
17689
17693
|
onChange: S
|
|
17690
17694
|
}, {
|
|
@@ -17698,34 +17702,34 @@ const qye = /* @__PURE__ */ tr(Zye, [["__scopeId", "data-v-e03f0d36"]]), pJ = (c
|
|
|
17698
17702
|
z.multiple ? (pe(), Nn(Ge(kR), {
|
|
17699
17703
|
key: 0,
|
|
17700
17704
|
modelValue: f.value,
|
|
17701
|
-
"onUpdate:modelValue": U[1] || (U[1] = (
|
|
17705
|
+
"onUpdate:modelValue": U[1] || (U[1] = (q) => f.value = q),
|
|
17702
17706
|
onChange: k
|
|
17703
17707
|
}, {
|
|
17704
17708
|
default: Rt(() => [
|
|
17705
17709
|
(pe(!0), He(
|
|
17706
17710
|
wo,
|
|
17707
17711
|
null,
|
|
17708
|
-
qr(z.list, (
|
|
17709
|
-
key:
|
|
17712
|
+
qr(z.list, (q) => (pe(), He("li", {
|
|
17713
|
+
key: q[z.fixPropOpt.id]
|
|
17710
17714
|
}, [
|
|
17711
|
-
z.chooseType.includes(
|
|
17715
|
+
z.chooseType.includes(q[a.fixPropOpt.type].toLowerCase()) ? (pe(), Nn(Ge(c_), {
|
|
17712
17716
|
key: 0,
|
|
17713
|
-
label:
|
|
17714
|
-
value:
|
|
17715
|
-
disabled:
|
|
17717
|
+
label: q[z.fixPropOpt.id],
|
|
17718
|
+
value: q[z.fixPropOpt.id],
|
|
17719
|
+
disabled: q.disabled
|
|
17716
17720
|
}, {
|
|
17717
17721
|
default: Rt(() => [
|
|
17718
17722
|
Ae("div", Xye, [
|
|
17719
17723
|
Ze(mm, {
|
|
17720
17724
|
fixTypeOpt: a.fixTypeOpt,
|
|
17721
17725
|
fixPropOpt: a.fixPropOpt,
|
|
17722
|
-
element:
|
|
17726
|
+
element: q,
|
|
17723
17727
|
imageBaseUrl: a.imageBaseUrl
|
|
17724
17728
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
17725
17729
|
]),
|
|
17726
17730
|
Ae("p", {
|
|
17727
|
-
title:
|
|
17728
|
-
}, Pn(
|
|
17731
|
+
title: q[z.fixPropOpt.name]
|
|
17732
|
+
}, Pn(q[z.fixPropOpt.name]), 9, Qye)
|
|
17729
17733
|
]),
|
|
17730
17734
|
_: 2
|
|
17731
17735
|
/* DYNAMIC */
|
|
@@ -17735,14 +17739,14 @@ const qye = /* @__PURE__ */ tr(Zye, [["__scopeId", "data-v-e03f0d36"]]), pJ = (c
|
|
|
17735
17739
|
Ze(mm, {
|
|
17736
17740
|
fixTypeOpt: a.fixTypeOpt,
|
|
17737
17741
|
fixPropOpt: a.fixPropOpt,
|
|
17738
|
-
element:
|
|
17742
|
+
element: q,
|
|
17739
17743
|
imageBaseUrl: a.imageBaseUrl
|
|
17740
17744
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
17741
17745
|
]),
|
|
17742
17746
|
Ae("div", {
|
|
17743
17747
|
class: "title",
|
|
17744
|
-
title:
|
|
17745
|
-
}, Pn(
|
|
17748
|
+
title: q[z.fixPropOpt.name]
|
|
17749
|
+
}, Pn(q[z.fixPropOpt.name]), 9, n2e)
|
|
17746
17750
|
]))
|
|
17747
17751
|
]))),
|
|
17748
17752
|
128
|
|
@@ -17755,22 +17759,22 @@ const qye = /* @__PURE__ */ tr(Zye, [["__scopeId", "data-v-e03f0d36"]]), pJ = (c
|
|
|
17755
17759
|
key: 1,
|
|
17756
17760
|
indeterminate: i.value,
|
|
17757
17761
|
modelValue: p.value,
|
|
17758
|
-
"onUpdate:modelValue": U[2] || (U[2] = (
|
|
17762
|
+
"onUpdate:modelValue": U[2] || (U[2] = (q) => p.value = q),
|
|
17759
17763
|
onChange: R
|
|
17760
17764
|
}, {
|
|
17761
17765
|
default: Rt(() => [
|
|
17762
17766
|
(pe(!0), He(
|
|
17763
17767
|
wo,
|
|
17764
17768
|
null,
|
|
17765
|
-
qr(z.list, (
|
|
17769
|
+
qr(z.list, (q) => (pe(), He("li", {
|
|
17766
17770
|
class: "w-full",
|
|
17767
|
-
key:
|
|
17771
|
+
key: q[z.fixPropOpt.id]
|
|
17768
17772
|
}, [
|
|
17769
|
-
z.chooseType.includes(
|
|
17773
|
+
z.chooseType.includes(q[a.fixPropOpt.type].toLowerCase()) ? (pe(), Nn(Ge(AR), {
|
|
17770
17774
|
key: 0,
|
|
17771
|
-
label:
|
|
17772
|
-
value:
|
|
17773
|
-
disabled:
|
|
17775
|
+
label: q[z.fixPropOpt.id],
|
|
17776
|
+
value: q[z.fixPropOpt.id],
|
|
17777
|
+
disabled: q.disabled
|
|
17774
17778
|
}, {
|
|
17775
17779
|
default: Rt(() => [
|
|
17776
17780
|
Ae("div", o2e, [
|
|
@@ -17778,13 +17782,13 @@ const qye = /* @__PURE__ */ tr(Zye, [["__scopeId", "data-v-e03f0d36"]]), pJ = (c
|
|
|
17778
17782
|
Ze(mm, {
|
|
17779
17783
|
fixTypeOpt: a.fixTypeOpt,
|
|
17780
17784
|
fixPropOpt: a.fixPropOpt,
|
|
17781
|
-
element:
|
|
17785
|
+
element: q,
|
|
17782
17786
|
imageBaseUrl: a.imageBaseUrl
|
|
17783
17787
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
17784
17788
|
]),
|
|
17785
17789
|
Ae("p", {
|
|
17786
|
-
title:
|
|
17787
|
-
}, Pn(
|
|
17790
|
+
title: q[z.fixPropOpt.name]
|
|
17791
|
+
}, Pn(q[z.fixPropOpt.name]), 9, r2e)
|
|
17788
17792
|
])
|
|
17789
17793
|
]),
|
|
17790
17794
|
_: 2
|
|
@@ -17795,14 +17799,14 @@ const qye = /* @__PURE__ */ tr(Zye, [["__scopeId", "data-v-e03f0d36"]]), pJ = (c
|
|
|
17795
17799
|
Ze(mm, {
|
|
17796
17800
|
fixTypeOpt: a.fixTypeOpt,
|
|
17797
17801
|
fixPropOpt: a.fixPropOpt,
|
|
17798
|
-
element:
|
|
17802
|
+
element: q,
|
|
17799
17803
|
imageBaseUrl: a.imageBaseUrl
|
|
17800
17804
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
17801
17805
|
]),
|
|
17802
17806
|
Ae("div", {
|
|
17803
17807
|
class: "title",
|
|
17804
|
-
title:
|
|
17805
|
-
}, Pn(
|
|
17808
|
+
title: q[z.fixPropOpt.name]
|
|
17809
|
+
}, Pn(q[z.fixPropOpt.name]), 9, c2e)
|
|
17806
17810
|
]))
|
|
17807
17811
|
]))),
|
|
17808
17812
|
128
|
|
@@ -18036,7 +18040,7 @@ const m2e = {
|
|
|
18036
18040
|
data: JSON.stringify($)
|
|
18037
18041
|
};
|
|
18038
18042
|
p2e(V.headers);
|
|
18039
|
-
const z = await kQ(V), { success: U, data:
|
|
18043
|
+
const z = await kQ(V), { success: U, data: q } = z.data;
|
|
18040
18044
|
if (!U)
|
|
18041
18045
|
return {
|
|
18042
18046
|
groupList: [],
|
|
@@ -18053,7 +18057,7 @@ const m2e = {
|
|
|
18053
18057
|
users: Y,
|
|
18054
18058
|
rootOrganization: _e,
|
|
18055
18059
|
rootDepartment: at
|
|
18056
|
-
} =
|
|
18060
|
+
} = q, Pe = _e || at;
|
|
18057
18061
|
return a.value.length === 0 && (a.value[0] = r.org ? {
|
|
18058
18062
|
...r.org,
|
|
18059
18063
|
id: r.elementId,
|
|
@@ -18119,7 +18123,7 @@ const m2e = {
|
|
|
18119
18123
|
post: "POST",
|
|
18120
18124
|
group: "DEPT",
|
|
18121
18125
|
...l.typeOption
|
|
18122
|
-
})), U = Tn([]),
|
|
18126
|
+
})), U = Tn([]), q = v2e(Die(l, "api"), l), G = q.handData, le = q.bannerList;
|
|
18123
18127
|
l.immediate && G(f.value, i.value);
|
|
18124
18128
|
const Z = (Ot) => (Ot.forEach((At) => {
|
|
18125
18129
|
var Gn, xn;
|
|
@@ -18707,8 +18711,8 @@ const O2e = /* @__PURE__ */ fo({
|
|
|
18707
18711
|
link: !0
|
|
18708
18712
|
}), {
|
|
18709
18713
|
default: () => {
|
|
18710
|
-
var U,
|
|
18711
|
-
return [((U = R == null ? void 0 : R.props) == null ? void 0 : U.title) || ((
|
|
18714
|
+
var U, q;
|
|
18715
|
+
return [((U = R == null ? void 0 : R.props) == null ? void 0 : U.title) || ((q = R == null ? void 0 : R.props) == null ? void 0 : q.label)];
|
|
18712
18716
|
}
|
|
18713
18717
|
}), [[xR("role"), (z = (V = R == null ? void 0 : R.dirs) == null ? void 0 : V[0]) == null ? void 0 : z.value]])];
|
|
18714
18718
|
}
|
|
@@ -19046,8 +19050,8 @@ const U2e = /* @__PURE__ */ tr(V2e, [["__scopeId", "data-v-75852e7e"]]), Wxe = f
|
|
|
19046
19050
|
const V = [];
|
|
19047
19051
|
let z = 0;
|
|
19048
19052
|
for (const U of l.value) {
|
|
19049
|
-
const
|
|
19050
|
-
$ +=
|
|
19053
|
+
const q = AQ.useTextWidth(String((U == null ? void 0 : U.title) || U));
|
|
19054
|
+
$ += q + 40, ($ <= R || !z) && V.push(U), z++;
|
|
19051
19055
|
}
|
|
19052
19056
|
return V;
|
|
19053
19057
|
}
|
|
@@ -19077,7 +19081,7 @@ const U2e = /* @__PURE__ */ tr(V2e, [["__scopeId", "data-v-75852e7e"]]), Wxe = f
|
|
|
19077
19081
|
U.title !== "--" ? (pe(), Nn(Ge(lne), vi({
|
|
19078
19082
|
key: 0,
|
|
19079
19083
|
title: U.title,
|
|
19080
|
-
onClose: (
|
|
19084
|
+
onClose: (q) => k(U),
|
|
19081
19085
|
color: U.color,
|
|
19082
19086
|
background: U.background,
|
|
19083
19087
|
type: U.type,
|
|
@@ -19137,7 +19141,7 @@ const U2e = /* @__PURE__ */ tr(V2e, [["__scopeId", "data-v-75852e7e"]]), Wxe = f
|
|
|
19137
19141
|
key: U.title,
|
|
19138
19142
|
title: U.title,
|
|
19139
19143
|
color: U.color,
|
|
19140
|
-
onClose: (
|
|
19144
|
+
onClose: (q) => k(U),
|
|
19141
19145
|
background: U.background,
|
|
19142
19146
|
type: U.type,
|
|
19143
19147
|
circle: !1,
|
|
@@ -19358,7 +19362,7 @@ const K2e = /* @__PURE__ */ tr(q2e, [["__scopeId", "data-v-e9fdca57"]]), Gxe = f
|
|
|
19358
19362
|
}),
|
|
19359
19363
|
emits: /* @__PURE__ */ zc(["sort"], ["update:modelValue"]),
|
|
19360
19364
|
setup(c, { emit: r }) {
|
|
19361
|
-
const a = c, l = r, i = Th(c, "modelValue"), { t: f, dialog: p, path: y, user: S } = a.config, k = no(() => `${S == null ? void 0 : S.id}_${y}${a.tab !== "" ? `_${a.tab}` : ""}`), R = Tn([]), $ = Tn([]), V = Tn([]), z = /* @__PURE__ */ new Map(), U = Tn(!1),
|
|
19365
|
+
const a = c, l = r, i = Th(c, "modelValue"), { t: f, dialog: p, path: y, user: S } = a.config, k = no(() => `${S == null ? void 0 : S.id}_${y}${a.tab !== "" ? `_${a.tab}` : ""}`), R = Tn([]), $ = Tn([]), V = Tn([]), z = /* @__PURE__ */ new Map(), U = Tn(!1), q = no(() => {
|
|
19362
19366
|
const J = $.value.length && $.value.length !== a.list.length;
|
|
19363
19367
|
return !J && $.value.length && (U.value = !0), !!J;
|
|
19364
19368
|
}), G = (J) => {
|
|
@@ -19548,7 +19552,7 @@ const K2e = /* @__PURE__ */ tr(q2e, [["__scopeId", "data-v-e9fdca57"]]), Gxe = f
|
|
|
19548
19552
|
modelValue: U.value,
|
|
19549
19553
|
"onUpdate:modelValue": ke[0] || (ke[0] = (pn) => U.value = pn),
|
|
19550
19554
|
class: "single-line",
|
|
19551
|
-
indeterminate:
|
|
19555
|
+
indeterminate: q.value,
|
|
19552
19556
|
onChange: le
|
|
19553
19557
|
}, {
|
|
19554
19558
|
default: Rt(() => [
|
|
@@ -22586,7 +22590,7 @@ const d_e = fr(u_e), f_e = "4383166", h_e = "中台-双色图标", m_e = "iconfo
|
|
|
22586
22590
|
});
|
|
22587
22591
|
const R = Tn("double");
|
|
22588
22592
|
return ($, V) => {
|
|
22589
|
-
const z = Ho("el-input"), U = Ho("el-tab-pane"),
|
|
22593
|
+
const z = Ho("el-input"), U = Ho("el-tab-pane"), q = Ho("el-tabs"), G = Ho("el-popover");
|
|
22590
22594
|
return pe(), Nn(
|
|
22591
22595
|
G,
|
|
22592
22596
|
{
|
|
@@ -22637,7 +22641,7 @@ const d_e = fr(u_e), f_e = "4383166", h_e = "中台-双色图标", m_e = "iconfo
|
|
|
22637
22641
|
_: 1
|
|
22638
22642
|
/* STABLE */
|
|
22639
22643
|
}, 8, ["modelValue"]),
|
|
22640
|
-
Ze(
|
|
22644
|
+
Ze(q, {
|
|
22641
22645
|
modelValue: R.value,
|
|
22642
22646
|
"onUpdate:modelValue": V[1] || (V[1] = (le) => R.value = le)
|
|
22643
22647
|
}, {
|
|
@@ -23340,7 +23344,7 @@ const SCe = fo({
|
|
|
23340
23344
|
S.value = !S.value, S.value && Qu(() => {
|
|
23341
23345
|
z();
|
|
23342
23346
|
});
|
|
23343
|
-
},
|
|
23347
|
+
}, q = () => {
|
|
23344
23348
|
p && (f && !c.readOnly && (f.setValue(p.getValue()), f.focus()), p.dispose());
|
|
23345
23349
|
};
|
|
23346
23350
|
return Ei(
|
|
@@ -23381,7 +23385,7 @@ const SCe = fo({
|
|
|
23381
23385
|
copyData: k,
|
|
23382
23386
|
switchFullScreen: U,
|
|
23383
23387
|
openedFullScreenDialog: z,
|
|
23384
|
-
closedFullScreenDialog:
|
|
23388
|
+
closedFullScreenDialog: q
|
|
23385
23389
|
};
|
|
23386
23390
|
}
|
|
23387
23391
|
}), xCe = ["id"], ECe = {
|
|
@@ -23522,15 +23526,15 @@ const OCe = /* @__PURE__ */ tr(SCe, [["render", DCe]]), Kxe = fr(OCe), RCe = { c
|
|
|
23522
23526
|
G("next");
|
|
23523
23527
|
};
|
|
23524
23528
|
Tn(l.ids);
|
|
23525
|
-
const
|
|
23529
|
+
const q = Tn(1), G = (at) => {
|
|
23526
23530
|
at === "next" ? Z() : _e();
|
|
23527
23531
|
}, le = Tn(!1), Z = async () => {
|
|
23528
23532
|
var ke, ot;
|
|
23529
|
-
Y.value = !1, f != null && f.value && (
|
|
23533
|
+
Y.value = !1, f != null && f.value && (q.value = Math.ceil((y == null ? void 0 : y.value) / ((ke = f.value) == null ? void 0 : ke.rows)));
|
|
23530
23534
|
const at = l.ids, Pe = at == null ? void 0 : at.findIndex((st) => st === l.rowId);
|
|
23531
23535
|
if (Pe === at.length - 1) {
|
|
23532
23536
|
if (f != null && f.value) {
|
|
23533
|
-
if (
|
|
23537
|
+
if (q.value === ((ot = f.value) == null ? void 0 : ot.page)) {
|
|
23534
23538
|
hm.warning("已经是最后一条数据"), le.value = !0;
|
|
23535
23539
|
return;
|
|
23536
23540
|
}
|
|
@@ -23780,10 +23784,10 @@ const FCe = /* @__PURE__ */ tr(LCe, [["__scopeId", "data-v-0b9b46e8"]]), Xxe = f
|
|
|
23780
23784
|
(pe(!0), He(
|
|
23781
23785
|
wo,
|
|
23782
23786
|
null,
|
|
23783
|
-
qr(a.value, (U,
|
|
23787
|
+
qr(a.value, (U, q) => (pe(), He(
|
|
23784
23788
|
"div",
|
|
23785
23789
|
{
|
|
23786
|
-
key:
|
|
23790
|
+
key: q,
|
|
23787
23791
|
class: "files-item",
|
|
23788
23792
|
style: si({
|
|
23789
23793
|
width: r.fileWidth,
|
|
@@ -23832,8 +23836,8 @@ const FCe = /* @__PURE__ */ tr(LCe, [["__scopeId", "data-v-0b9b46e8"]]), Xxe = f
|
|
|
23832
23836
|
(pe(!0), He(
|
|
23833
23837
|
wo,
|
|
23834
23838
|
null,
|
|
23835
|
-
qr(a.value, (U,
|
|
23836
|
-
key:
|
|
23839
|
+
qr(a.value, (U, q) => (pe(), He("div", {
|
|
23840
|
+
key: q,
|
|
23837
23841
|
class: "preview-img"
|
|
23838
23842
|
}, [
|
|
23839
23843
|
Ze($, {
|
|
@@ -23932,7 +23936,7 @@ var Pre = { exports: {} };
|
|
|
23932
23936
|
}, U = (e) => {
|
|
23933
23937
|
const n = typeof e;
|
|
23934
23938
|
return e === null ? "null" : n === "object" && Array.isArray(e) ? "array" : n === "object" && z(e, String, (o, u) => u.isPrototypeOf(o)) ? "string" : n;
|
|
23935
|
-
},
|
|
23939
|
+
}, q = (e) => (n) => U(n) === e, G = (e) => (n) => typeof n === e, le = (e) => (n) => e === n, Z = (e, n) => _e(e) && z(e, n, (o, u) => V(o) === u), Y = q("string"), _e = q("object"), at = (e) => Z(e, Object), Pe = q("array"), J = le(null), ke = G("boolean"), ot = le(void 0), st = (e) => e == null, qe = (e) => !st(e), ye = G("function"), In = G("number"), pn = (e, n) => {
|
|
23936
23940
|
if (Pe(e)) {
|
|
23937
23941
|
for (let o = 0, u = e.length; o < u; ++o)
|
|
23938
23942
|
if (!n(e[o]))
|
|
@@ -24818,7 +24822,7 @@ var Pre = { exports: {} };
|
|
|
24818
24822
|
left: e,
|
|
24819
24823
|
top: n,
|
|
24820
24824
|
translate: (u, h) => tv(e + u, n + h)
|
|
24821
|
-
}), M = tv,
|
|
24825
|
+
}), M = tv, K = (e) => {
|
|
24822
24826
|
const n = e.getBoundingClientRect();
|
|
24823
24827
|
return M(n.left, n.top);
|
|
24824
24828
|
}, ae = (e, n) => e !== void 0 ? e : n !== void 0 ? n : 0, Ie = (e) => {
|
|
@@ -24829,7 +24833,7 @@ var Pre = { exports: {} };
|
|
|
24829
24833
|
return Ve(e).translate(C - O, v - A);
|
|
24830
24834
|
}, Ve = (e) => {
|
|
24831
24835
|
const n = e.dom, u = n.ownerDocument.body;
|
|
24832
|
-
return u === n ? M(u.offsetLeft, u.offsetTop) : td(e) ?
|
|
24836
|
+
return u === n ? M(u.offsetLeft, u.offsetTop) : td(e) ? K(n) : M(0, 0);
|
|
24833
24837
|
}, Ht = (e) => {
|
|
24834
24838
|
const n = e !== void 0 ? e.dom : document, o = n.body.scrollLeft || n.documentElement.scrollLeft, u = n.body.scrollTop || n.documentElement.scrollTop;
|
|
24835
24839
|
return M(o, u);
|
|
@@ -41424,14 +41428,14 @@ var JCe = [
|
|
|
41424
41428
|
}, MX = { selector: void 0, target: void 0 }, hwe = fo({
|
|
41425
41429
|
props: uwe,
|
|
41426
41430
|
setup: function(c, r) {
|
|
41427
|
-
var a = c.init ? v1(v1({}, c.init), MX) : v1({}, MX), l = Rie(c), i = l.disabled, f = l.modelValue, p = l.tagName, y = Tn(null), S = null, k = c.id || Mre("tiny-vue"), R = c.init && c.init.inline || c.inline, $ = !!r.attrs["onUpdate:modelValue"], V = !0, z = c.initialValue ? c.initialValue : "", U = "",
|
|
41431
|
+
var a = c.init ? v1(v1({}, c.init), MX) : v1({}, MX), l = Rie(c), i = l.disabled, f = l.modelValue, p = l.tagName, y = Tn(null), S = null, k = c.id || Mre("tiny-vue"), R = c.init && c.init.inline || c.inline, $ = !!r.attrs["onUpdate:modelValue"], V = !0, z = c.initialValue ? c.initialValue : "", U = "", q = function(Z) {
|
|
41428
41432
|
return $ ? function() {
|
|
41429
41433
|
return f != null && f.value ? f.value : "";
|
|
41430
41434
|
} : function() {
|
|
41431
41435
|
return Z ? z : U;
|
|
41432
41436
|
};
|
|
41433
41437
|
}, G = function() {
|
|
41434
|
-
var Z =
|
|
41438
|
+
var Z = q(V), Y = v1(v1({}, a), { readonly: c.disabled, target: y.value, plugins: rwe(a.plugins, c.plugins), toolbar: c.toolbar || a.toolbar, inline: R, setup: function(_e) {
|
|
41435
41439
|
S = _e, _e.on("init", function(at) {
|
|
41436
41440
|
return owe(at, c, r, _e, f, Z);
|
|
41437
41441
|
}), typeof a.setup == "function" && a.setup(_e);
|
|
@@ -41684,7 +41688,7 @@ tinymce.IconManager.add("default", {
|
|
|
41684
41688
|
}, a = (g) => {
|
|
41685
41689
|
const _ = typeof g;
|
|
41686
41690
|
return g === null ? "null" : _ === "object" && Array.isArray(g) ? "array" : _ === "object" && r(g, String, (E, T) => T.isPrototypeOf(E)) ? "string" : _;
|
|
41687
|
-
}, l = (g) => (_) => a(_) === g, i = (g) => (_) => typeof _ === g, f = (g) => (_) => g === _, p = l("string"), y = l("object"), S = l("array"), k = f(null), R = i("boolean"), $ = f(void 0), V = (g) => g == null, z = (g) => !V(g), U = i("function"),
|
|
41691
|
+
}, l = (g) => (_) => a(_) === g, i = (g) => (_) => typeof _ === g, f = (g) => (_) => g === _, p = l("string"), y = l("object"), S = l("array"), k = f(null), R = i("boolean"), $ = f(void 0), V = (g) => g == null, z = (g) => !V(g), U = i("function"), q = i("number"), G = () => {
|
|
41688
41692
|
}, le = (g, _) => (...E) => g(_.apply(null, E)), Z = (g, _) => (E) => g(_(E)), Y = (g) => () => g, _e = (g) => g, at = (g, _) => g === _;
|
|
41689
41693
|
function Pe(g, ..._) {
|
|
41690
41694
|
return (...E) => {
|
|
@@ -41918,7 +41922,7 @@ tinymce.IconManager.add("default", {
|
|
|
41918
41922
|
const _ = Kr("ownerDocument.defaultView", g);
|
|
41919
41923
|
return y(g) && (Wr(_).prototype.isPrototypeOf(g) || /^HTML\w*Element$/.test(Js(g).constructor.name));
|
|
41920
41924
|
}, cs = 8, ui = 9, Li = 11, Pi = 1, Ai = 3, Ts = (g) => g.dom.nodeName.toLowerCase(), Zi = (g) => g.dom.nodeType, Mi = (g) => (_) => Zi(_) === g, Ps = (g) => Zi(g) === cs || Ts(g) === "#comment", Qn = (g) => Br(g) && nn(g.dom), Br = Mi(Pi), qi = Mi(Ai), Ul = Mi(ui), Wl = Mi(Li), Ls = (g) => (_) => Br(_) && Ts(_) === g, wr = (g, _, E) => {
|
|
41921
|
-
if (p(E) || R(E) ||
|
|
41925
|
+
if (p(E) || R(E) || q(E))
|
|
41922
41926
|
g.setAttribute(_, E + "");
|
|
41923
41927
|
else
|
|
41924
41928
|
throw console.error("Invalid call to Attribute.set. Key ", _, ":: Value ", E, ":: Element ", g), new Error("Attribute value was not simple");
|
|
@@ -42470,7 +42474,7 @@ tinymce.IconManager.add("default", {
|
|
|
42470
42474
|
let td = of(() => Am.detect(navigator.userAgent, ye.from(navigator.userAgentData), Ih));
|
|
42471
42475
|
const $g = () => td(), zr = (g, _) => {
|
|
42472
42476
|
const E = (de, we) => {
|
|
42473
|
-
if (!
|
|
42477
|
+
if (!q(we) && !we.match(/^[0-9]+$/))
|
|
42474
42478
|
throw new Error(g + ".set accepts only positive integer values. Value was " + we);
|
|
42475
42479
|
const $e = de.dom;
|
|
42476
42480
|
ge($e) && ($e.style[g] = we + "px");
|
|
@@ -42630,7 +42634,7 @@ tinymce.IconManager.add("default", {
|
|
|
42630
42634
|
}, Om = (g, _) => (E) => tv(E) === "rtl" ? _ : g, tv = (g) => ts(g, "direction") === "rtl" ? "rtl" : "ltr", M = zr("height", (g) => {
|
|
42631
42635
|
const _ = g.dom;
|
|
42632
42636
|
return rr(g) ? _.getBoundingClientRect().height : _.offsetHeight;
|
|
42633
|
-
}),
|
|
42637
|
+
}), K = (g) => M.get(g), ae = (g) => M.getOuter(g), Ie = Ki, Ve = (g, _) => ({
|
|
42634
42638
|
left: g,
|
|
42635
42639
|
top: _,
|
|
42636
42640
|
translate: (T, B) => Ve(g + T, _ + B)
|
|
@@ -42739,17 +42743,17 @@ tinymce.IconManager.add("default", {
|
|
|
42739
42743
|
return Ua(g, "%") && Ts(_) !== "table" ? od(_, B, E, T) : B;
|
|
42740
42744
|
}, gi = (g) => {
|
|
42741
42745
|
const _ = jg(g);
|
|
42742
|
-
return _ ? Db(_, g,
|
|
42746
|
+
return _ ? Db(_, g, K, Kf) : K(g);
|
|
42743
42747
|
}, Kt = (g, _, E) => {
|
|
42744
42748
|
const T = E(g), B = yi(g, _);
|
|
42745
42749
|
return T / B;
|
|
42746
|
-
}, Yl = (g, _) => ra(g, _).orThunk(() => Be(g, _).map((E) => E + "px")), sd = (g) => Yl(g, "width"), Ia = (g) => Yl(g, "height"), Pm = (g) => Nh(g, ia, af), Ca = (g) => qc(g) ? ia(g) : Vg(g), Ws = (g) => T1(g) ?
|
|
42750
|
+
}, Yl = (g, _) => ra(g, _).orThunk(() => Be(g, _).map((E) => E + "px")), sd = (g) => Yl(g, "width"), Ia = (g) => Yl(g, "height"), Pm = (g) => Nh(g, ia, af), Ca = (g) => qc(g) ? ia(g) : Vg(g), Ws = (g) => T1(g) ? K(g) : Kt(g, "rowspan", gi), sv = (g) => sd(g).bind((E) => Id(E, [
|
|
42747
42751
|
"fixed",
|
|
42748
42752
|
"relative",
|
|
42749
42753
|
"empty"
|
|
42750
42754
|
])), Nt = (g, _, E) => {
|
|
42751
42755
|
yt(g, "width", _ + E);
|
|
42752
|
-
}, $s = (g) => ia(g) + "px", rv = (g) =>
|
|
42756
|
+
}, $s = (g) => ia(g) + "px", rv = (g) => K(g) + "px", aa = (g) => Nh(g, ia, af) + "%", _l = (g) => sd(g).exists((_) => qf.test(_)), b_ = (g) => sd(g).exists((_) => An.test(_)), Kc = (g) => sd(g).isNone(), y_ = Y(qf), cf = Ls("col"), Ob = (g) => sd(g).getOrThunk(() => Ca(g) + "px"), Yc = (g) => Ia(g).getOrThunk(() => Ws(g) + "px"), Hs = (g) => Gt(is.justColumns(g), (_) => ye.from(_.element)), Pd = (g) => {
|
|
42753
42757
|
const _ = $g().browser, E = _.isChromium() || _.isFirefox();
|
|
42754
42758
|
return cf(g) ? E : !0;
|
|
42755
42759
|
}, Lh = (g, _, E, T, B, j) => g.filter(T).fold(() => j(ev(E, _)), (se) => B(se)), la = (g, _, E, T) => {
|
|
@@ -44435,7 +44439,7 @@ Required: ` + _.join(", "));
|
|
|
44435
44439
|
const we = dp(de), $e = ia(g), ut = Md(T, g), Qt = Bu(ut, $e, de);
|
|
44436
44440
|
is.hasColumns(T) ? ly(Qt, se, we) : mC(Qt, j, we), yt(g, "width", de);
|
|
44437
44441
|
}), E.each((de) => {
|
|
44438
|
-
const we =
|
|
44442
|
+
const we = K(g), $e = du(T, g), ut = Bu($e, we, de);
|
|
44439
44443
|
fx(ut, B, j), yt(g, "height", de);
|
|
44440
44444
|
});
|
|
44441
44445
|
}, pC = _l, hx = b_, mx = Kc, e0 = (g) => {
|
|
@@ -44512,7 +44516,7 @@ Required: ` + _.join(", "));
|
|
|
44512
44516
|
g.insertContent(we), g.addVisual();
|
|
44513
44517
|
}), Va(qg(g), 'table[data-mce-id="__mce"]').map((de) => ($h(g) ? vC(de) : ad(g) ? gx(de) : (Lm(g) || uy(j.width)) && fp(de), Ec(de), Oe(de, "data-mce-id"), CC(g, de), _C(g, de), de.dom)).getOrNull();
|
|
44514
44518
|
}, N4 = (g, _, E, T = {}) => {
|
|
44515
|
-
const B = (j) =>
|
|
44519
|
+
const B = (j) => q(j) && j > 0;
|
|
44516
44520
|
if (B(_) && B(E)) {
|
|
44517
44521
|
const j = T.headerRows || 0, se = T.headerColumns || 0;
|
|
44518
44522
|
return M4(g, E, _, se, j);
|
|
@@ -45935,7 +45939,7 @@ Required: ` + _.join(", "));
|
|
|
45935
45939
|
}, k = (gt) => {
|
|
45936
45940
|
const Wt = typeof gt;
|
|
45937
45941
|
return gt === null ? "null" : Wt === "object" && Array.isArray(gt) ? "array" : Wt === "object" && S(gt, String, (Ke, ft) => ft.isPrototypeOf(Ke)) ? "string" : Wt;
|
|
45938
|
-
}, R = (gt) => (Wt) => k(Wt) === gt, $ = (gt) => (Wt) => gt === Wt, V = R("string"), z = $(void 0), U = (gt) => gt == null,
|
|
45942
|
+
}, R = (gt) => (Wt) => k(Wt) === gt, $ = (gt) => (Wt) => gt === Wt, V = R("string"), z = $(void 0), U = (gt) => gt == null, q = (gt) => !U(gt), G = (gt) => (Wt) => !gt(Wt), le = Object.hasOwnProperty, Z = (gt, Wt) => le.call(gt, Wt), Y = (gt, Wt, Ke) => Wt === "" || gt.length >= Wt.length && gt.substr(Ke, Ke + Wt.length) === Wt, _e = (gt, Wt, Ke = 0, ft) => {
|
|
45939
45943
|
const ne = gt.indexOf(Wt, Ke);
|
|
45940
45944
|
return ne !== -1 ? z(ft) ? !0 : ne + Wt.length <= ft : !1;
|
|
45941
45945
|
}, at = (gt, Wt) => Y(gt, Wt, 0), Pe = "\uFEFF", J = (gt) => gt === Pe, ke = (gt) => gt.replace(/\uFEFF/g, "");
|
|
@@ -46004,10 +46008,10 @@ Required: ` + _.join(", "));
|
|
|
46004
46008
|
ft.moveToBookmark(Hn), gt.nodeChanged();
|
|
46005
46009
|
}, Ut = (gt) => {
|
|
46006
46010
|
const Wt = qt(gt, -1);
|
|
46007
|
-
|
|
46011
|
+
q(Wt) && ct(gt, Wt);
|
|
46008
46012
|
}, Gt = Ut, Ye = (gt) => {
|
|
46009
46013
|
const Wt = qt(gt, 0);
|
|
46010
|
-
|
|
46014
|
+
q(Wt) && ct(gt, Wt);
|
|
46011
46015
|
}, vt = (gt) => {
|
|
46012
46016
|
gt.on("keydown", (Wt) => {
|
|
46013
46017
|
Wt.keyCode === 13 && !Wt.isDefaultPrevented() && Ye(gt);
|
|
@@ -46086,7 +46090,7 @@ Required: ` + _.join(", "));
|
|
|
46086
46090
|
}
|
|
46087
46091
|
Z.hasFocus() && z(_e) && Z.selection.scrollIntoView(), (a.browser.isSafari() || a.browser.isChromium()) && Ye < 0 && U(Z, Y, _e, at);
|
|
46088
46092
|
}
|
|
46089
|
-
},
|
|
46093
|
+
}, q = (Z, Y) => {
|
|
46090
46094
|
const _e = () => k(Z);
|
|
46091
46095
|
Z.on("init", (at) => {
|
|
46092
46096
|
const Pe = S(Z), J = Z.dom;
|
|
@@ -46114,7 +46118,7 @@ Required: ` + _.join(", "));
|
|
|
46114
46118
|
contentHeight: 0,
|
|
46115
46119
|
set: !1
|
|
46116
46120
|
});
|
|
46117
|
-
G(Z, Y),
|
|
46121
|
+
G(Z, Y), q(Z, Y);
|
|
46118
46122
|
}
|
|
46119
46123
|
});
|
|
46120
46124
|
};
|
|
@@ -46194,7 +46198,7 @@ Required: ` + _.join(", "));
|
|
|
46194
46198
|
}, i = (ge) => {
|
|
46195
46199
|
const Te = typeof ge;
|
|
46196
46200
|
return ge === null ? "null" : Te === "object" && Array.isArray(ge) ? "array" : Te === "object" && l(ge, String, (rt, yt) => yt.isPrototypeOf(rt)) ? "string" : Te;
|
|
46197
|
-
}, f = (ge) => (Te) => i(Te) === ge, p = (ge) => (Te) => typeof Te === ge, y = (ge) => (Te) => ge === Te, S = f("string"), k = f("object"), R = f("array"), $ = y(null), V = p("boolean"), z = y(void 0), U = (ge) => ge == null,
|
|
46201
|
+
}, f = (ge) => (Te) => i(Te) === ge, p = (ge) => (Te) => typeof Te === ge, y = (ge) => (Te) => ge === Te, S = f("string"), k = f("object"), R = f("array"), $ = y(null), V = p("boolean"), z = y(void 0), U = (ge) => ge == null, q = (ge) => !U(ge), G = p("function"), le = p("number"), Z = () => {
|
|
46198
46202
|
}, Y = (ge, Te) => (...rt) => ge(Te.apply(null, rt)), _e = (ge, Te) => (rt) => ge(Te(rt)), at = (ge) => () => ge;
|
|
46199
46203
|
function Pe(ge, ...Te) {
|
|
46200
46204
|
return (...rt) => {
|
|
@@ -46255,7 +46259,7 @@ Required: ` + _.join(", "));
|
|
|
46255
46259
|
throw new Error(Te ?? "Called getOrDie on None");
|
|
46256
46260
|
}
|
|
46257
46261
|
static from(Te) {
|
|
46258
|
-
return
|
|
46262
|
+
return q(Te) ? ot.some(Te) : ot.none();
|
|
46259
46263
|
}
|
|
46260
46264
|
getOrNull() {
|
|
46261
46265
|
return this.tag ? this.value : null;
|
|
@@ -46440,11 +46444,11 @@ Required: ` + _.join(", "));
|
|
|
46440
46444
|
}, Mi = (ge) => {
|
|
46441
46445
|
const Te = (rt) => In(rt, (yt) => !Li(ge, yt));
|
|
46442
46446
|
return Ts(ge).map(Qn).map(Te).getOr([]);
|
|
46443
|
-
}, Ps = (ge) => ot.from(ge.dom.nextSibling).map(Wr.fromDom), Qn = (ge) => qe(ge.dom.childNodes, Wr.fromDom), Br = (ge) => fa(ge) &&
|
|
46447
|
+
}, Ps = (ge) => ot.from(ge.dom.nextSibling).map(Wr.fromDom), Qn = (ge) => qe(ge.dom.childNodes, Wr.fromDom), Br = (ge) => fa(ge) && q(ge.dom.host), qi = G(Element.prototype.attachShadow) && G(Node.prototype.getRootNode), Ul = at(qi), Wl = qi ? (ge) => Wr.fromDom(ge.dom.getRootNode()) : Ai, Ls = (ge) => {
|
|
46444
46448
|
const Te = Wl(ge);
|
|
46445
46449
|
return Br(Te) ? ot.some(Te) : ot.none();
|
|
46446
46450
|
}, wr = (ge) => Wr.fromDom(ge.dom.host), gr = (ge) => {
|
|
46447
|
-
if (Ul() &&
|
|
46451
|
+
if (Ul() && q(ge.target)) {
|
|
46448
46452
|
const Te = Wr.fromDom(ge.target);
|
|
46449
46453
|
if ($o(Te) && ta(Te) && ge.composed && ge.composedPath) {
|
|
46450
46454
|
const rt = ge.composedPath();
|
|
@@ -46453,7 +46457,7 @@ Required: ` + _.join(", "));
|
|
|
46453
46457
|
}
|
|
46454
46458
|
}
|
|
46455
46459
|
return ot.from(ge.target);
|
|
46456
|
-
}, ta = (ge) =>
|
|
46460
|
+
}, ta = (ge) => q(ge.dom.shadowRoot), qa = (ge) => {
|
|
46457
46461
|
const Te = jo(ge) ? ge.dom.parentNode : ge.dom;
|
|
46458
46462
|
if (Te == null || Te.ownerDocument === null)
|
|
46459
46463
|
return !1;
|
|
@@ -46881,7 +46885,7 @@ Required: ` + _.join(", "));
|
|
|
46881
46885
|
}, l = (oe) => {
|
|
46882
46886
|
const be = typeof oe;
|
|
46883
46887
|
return oe === null ? "null" : be === "object" && Array.isArray(oe) ? "array" : be === "object" && a(oe, String, (De, pt) => pt.isPrototypeOf(De)) ? "string" : be;
|
|
46884
|
-
}, i = (oe) => (be) => l(be) === oe, f = (oe) => (be) => typeof be === oe, p = (oe) => (be) => oe === be, y = (oe, be) => k(oe) && a(oe, be, (De, pt) => r(De) === pt), S = i("string"), k = i("object"), R = (oe) => y(oe, Object), $ = i("array"), V = p(null), z = f("boolean"), U = (oe) => oe == null,
|
|
46888
|
+
}, i = (oe) => (be) => l(be) === oe, f = (oe) => (be) => typeof be === oe, p = (oe) => (be) => oe === be, y = (oe, be) => k(oe) && a(oe, be, (De, pt) => r(De) === pt), S = i("string"), k = i("object"), R = (oe) => y(oe, Object), $ = i("array"), V = p(null), z = f("boolean"), U = (oe) => oe == null, q = (oe) => !U(oe), G = f("function"), le = f("number"), Z = (oe, be) => {
|
|
46885
46889
|
if ($(oe)) {
|
|
46886
46890
|
for (let De = 0, pt = oe.length; De < pt; ++De)
|
|
46887
46891
|
if (!be(oe[De]))
|
|
@@ -46943,7 +46947,7 @@ Required: ` + _.join(", "));
|
|
|
46943
46947
|
throw new Error(be ?? "Called getOrDie on None");
|
|
46944
46948
|
}
|
|
46945
46949
|
static from(be) {
|
|
46946
|
-
return
|
|
46950
|
+
return q(be) ? _e.some(be) : _e.none();
|
|
46947
46951
|
}
|
|
46948
46952
|
getOrNull() {
|
|
46949
46953
|
return this.tag ? this.value : null;
|
|
@@ -47064,7 +47068,7 @@ Required: ` + _.join(", "));
|
|
|
47064
47068
|
},
|
|
47065
47069
|
default: !1
|
|
47066
47070
|
});
|
|
47067
|
-
}, qo = Hn("image_dimensions"), Ii = Hn("image_advtab"), St = Hn("image_uploadtab"), Yt = Hn("image_prepend_url"), Dt = Hn("image_class_list"), je = Hn("image_description"), zn = Hn("image_title"), Ot = Hn("image_caption"), At = Hn("image_list"), Gn = Hn("a11y_advanced_options"), xn = Hn("automatic_uploads"), $o = (oe) => ko(oe.options.get("images_upload_url")), jo = (oe) =>
|
|
47071
|
+
}, qo = Hn("image_dimensions"), Ii = Hn("image_advtab"), St = Hn("image_uploadtab"), Yt = Hn("image_prepend_url"), Dt = Hn("image_class_list"), je = Hn("image_description"), zn = Hn("image_title"), Ot = Hn("image_caption"), At = Hn("image_list"), Gn = Hn("a11y_advanced_options"), xn = Hn("automatic_uploads"), $o = (oe) => ko(oe.options.get("images_upload_url")), jo = (oe) => q(oe.options.get("images_upload_handler")), Us = (oe, be) => Math.max(parseInt(oe, 10), parseInt(be, 10)), fa = (oe) => new Promise((be) => {
|
|
47068
47072
|
const De = document.createElement("img"), pt = (Xo) => {
|
|
47069
47073
|
De.onload = De.onerror = null, De.parentNode && De.parentNode.removeChild(De), be(Xo);
|
|
47070
47074
|
};
|
|
@@ -47138,7 +47142,7 @@ Required: ` + _.join(", "));
|
|
|
47138
47142
|
Qs.insertAfter(be, oe), be.appendChild(oe), be.appendChild(Qs.create("figcaption", { contentEditable: "true" }, "Caption")), be.contentEditable = "false";
|
|
47139
47143
|
}, ui = (oe) => {
|
|
47140
47144
|
const be = oe.parentNode;
|
|
47141
|
-
|
|
47145
|
+
q(be) && (Qs.insertAfter(oe, be), Qs.remove(be));
|
|
47142
47146
|
}, Li = (oe) => {
|
|
47143
47147
|
Wr(oe) ? ui(oe) : cs(oe);
|
|
47144
47148
|
}, Pi = (oe, be) => {
|
|
@@ -47161,7 +47165,7 @@ Required: ` + _.join(", "));
|
|
|
47161
47165
|
}, Br = (oe) => {
|
|
47162
47166
|
var be;
|
|
47163
47167
|
return (be = oe.style.borderStyle) !== null && be !== void 0 ? be : "";
|
|
47164
|
-
}, qi = (oe) =>
|
|
47168
|
+
}, qi = (oe) => q(oe) && oe.nodeName === "FIGURE", Ul = (oe) => oe.nodeName === "IMG", Wl = (oe) => Qs.getAttrib(oe, "alt").length === 0 && Qs.getAttrib(oe, "role") === "presentation", Ls = (oe) => Wl(oe) ? "" : Js(oe, "alt"), wr = () => ({
|
|
47165
47169
|
src: "",
|
|
47166
47170
|
alt: "",
|
|
47167
47171
|
title: "",
|
|
@@ -47696,7 +47700,7 @@ Required: ` + _.join(", "));
|
|
|
47696
47700
|
});
|
|
47697
47701
|
}, Wo = (oe) => {
|
|
47698
47702
|
const be = oe.attr("class");
|
|
47699
|
-
return
|
|
47703
|
+
return q(be) && /\bimage\b/.test(be);
|
|
47700
47704
|
}, Ys = (oe) => (be) => {
|
|
47701
47705
|
let De = be.length;
|
|
47702
47706
|
const pt = (_n) => {
|
|
@@ -47723,7 +47727,7 @@ Required: ` + _.join(", "));
|
|
|
47723
47727
|
tooltip: "Insert/edit image",
|
|
47724
47728
|
onAction: ss(oe).open,
|
|
47725
47729
|
onSetup: (be) => {
|
|
47726
|
-
be.setActive(
|
|
47730
|
+
be.setActive(q(io(oe)));
|
|
47727
47731
|
const De = oe.selection.selectorChangedWithUnbind("img:not([data-mce-object]):not([data-mce-placeholder]),figure.image", be.setActive).unbind, pt = ln(oe)(be);
|
|
47728
47732
|
return () => {
|
|
47729
47733
|
De(), pt();
|
|
@@ -47776,7 +47780,7 @@ Required: ` + _.join(", "));
|
|
|
47776
47780
|
}, z = (Pe, J, ke = /* @__PURE__ */ new Date()) => (J = J.replace("%D", "%m/%d/%Y"), J = J.replace("%r", "%I:%M:%S %p"), J = J.replace("%Y", "" + ke.getFullYear()), J = J.replace("%y", "" + ke.getYear()), J = J.replace("%m", V(ke.getMonth() + 1, 2)), J = J.replace("%d", V(ke.getDate(), 2)), J = J.replace("%H", "" + V(ke.getHours(), 2)), J = J.replace("%M", "" + V(ke.getMinutes(), 2)), J = J.replace("%S", "" + V(ke.getSeconds(), 2)), J = J.replace("%I", "" + ((ke.getHours() + 11) % 12 + 1)), J = J.replace("%p", ke.getHours() < 12 ? "AM" : "PM"), J = J.replace("%B", "" + Pe.translate($[ke.getMonth()])), J = J.replace("%b", "" + Pe.translate(R[ke.getMonth()])), J = J.replace("%A", "" + Pe.translate(k[ke.getDay()])), J = J.replace("%a", "" + Pe.translate(S[ke.getDay()])), J = J.replace("%%", "%"), J), U = (Pe, J, ke, ot) => {
|
|
47777
47781
|
const st = Pe.dom.create("time", { datetime: ke }, ot);
|
|
47778
47782
|
Pe.dom.replace(st, J), Pe.selection.select(st, !0), Pe.selection.collapse(!1);
|
|
47779
|
-
},
|
|
47783
|
+
}, q = (Pe, J) => {
|
|
47780
47784
|
if (p(Pe)) {
|
|
47781
47785
|
const ke = z(Pe, J);
|
|
47782
47786
|
let ot;
|
|
@@ -47787,9 +47791,9 @@ Required: ` + _.join(", "));
|
|
|
47787
47791
|
Pe.insertContent(z(Pe, J));
|
|
47788
47792
|
}, G = (Pe) => {
|
|
47789
47793
|
Pe.addCommand("mceInsertDate", (J, ke) => {
|
|
47790
|
-
|
|
47794
|
+
q(Pe, ke ?? l(Pe));
|
|
47791
47795
|
}), Pe.addCommand("mceInsertTime", (J, ke) => {
|
|
47792
|
-
|
|
47796
|
+
q(Pe, ke ?? i(Pe));
|
|
47793
47797
|
});
|
|
47794
47798
|
}, le = (Pe) => {
|
|
47795
47799
|
let J = Pe;
|
|
@@ -47866,7 +47870,7 @@ Required: ` + _.join(", "));
|
|
|
47866
47870
|
return !0;
|
|
47867
47871
|
}
|
|
47868
47872
|
return !1;
|
|
47869
|
-
},
|
|
47873
|
+
}, q = () => {
|
|
47870
47874
|
}, G = (ue) => () => ue, le = (ue, Re) => ue === Re;
|
|
47871
47875
|
class Z {
|
|
47872
47876
|
constructor(Re, Qe) {
|
|
@@ -48034,7 +48038,7 @@ Required: ` + _.join(", "));
|
|
|
48034
48038
|
});
|
|
48035
48039
|
}, St = (ue, Re) => {
|
|
48036
48040
|
const Qe = {};
|
|
48037
|
-
return Ii(ue, Re, qo(Qe),
|
|
48041
|
+
return Ii(ue, Re, qo(Qe), q), Qe;
|
|
48038
48042
|
}, Yt = (ue, Re) => Hn.call(ue, Re), Dt = (ue, Re) => Yt(ue, Re) && ue[Re] !== void 0 && ue[Re] !== null;
|
|
48039
48043
|
var je = tinymce.util.Tools.resolve("tinymce.util.URI"), zn = tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"), Ot = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
48040
48044
|
const At = (ue) => V(ue) && ue.nodeName.toLowerCase() === "a", Gn = (ue) => At(ue) && !!jo(ue), xn = (ue, Re) => {
|
|
@@ -48186,7 +48190,7 @@ Required: ` + _.join(", "));
|
|
|
48186
48190
|
value: ss.value,
|
|
48187
48191
|
meta: {
|
|
48188
48192
|
text: Wn ? ue : ss.text,
|
|
48189
|
-
attach:
|
|
48193
|
+
attach: q
|
|
48190
48194
|
}
|
|
48191
48195
|
},
|
|
48192
48196
|
text: Wn ? ue : ss.text
|
|
@@ -48345,7 +48349,7 @@ Required: ` + _.join(", "));
|
|
|
48345
48349
|
title: tn("title")
|
|
48346
48350
|
}, ss = {
|
|
48347
48351
|
href: Mt.url.value,
|
|
48348
|
-
attach: Mt.url.meta !== void 0 && Mt.url.meta.attach ? Mt.url.meta.attach :
|
|
48352
|
+
attach: Mt.url.meta !== void 0 && Mt.url.meta.attach ? Mt.url.meta.attach : q
|
|
48349
48353
|
};
|
|
48350
48354
|
Bo.preprocess(ue, Wn).then((fs) => {
|
|
48351
48355
|
Ai(ue, ss, fs);
|
|
@@ -48459,7 +48463,7 @@ Required: ` + _.join(", "));
|
|
|
48459
48463
|
}
|
|
48460
48464
|
};
|
|
48461
48465
|
}, Da = () => {
|
|
48462
|
-
const ue = or(
|
|
48466
|
+
const ue = or(q);
|
|
48463
48467
|
return {
|
|
48464
48468
|
...ue,
|
|
48465
48469
|
on: (Qe) => ue.get().each(Qe)
|
|
@@ -48573,7 +48577,7 @@ Required: ` + _.join(", "));
|
|
|
48573
48577
|
Wn.selection.collapse(!1);
|
|
48574
48578
|
}, Mt = (Wn) => {
|
|
48575
48579
|
const ss = ue.selection.getNode();
|
|
48576
|
-
return Wn.setEnabled(Ss(ue, ss)),
|
|
48580
|
+
return Wn.setEnabled(Ss(ue, ss)), q;
|
|
48577
48581
|
}, tn = (Wn) => {
|
|
48578
48582
|
const ss = vs(ue), fs = Go(ue);
|
|
48579
48583
|
if (ss.isNone() && fs) {
|
|
@@ -48606,7 +48610,7 @@ Required: ` + _.join(", "));
|
|
|
48606
48610
|
const ss = Wn.getValue(), fs = tn(ss);
|
|
48607
48611
|
Ai(ue, {
|
|
48608
48612
|
href: ss,
|
|
48609
|
-
attach:
|
|
48613
|
+
attach: q
|
|
48610
48614
|
}, {
|
|
48611
48615
|
href: ss,
|
|
48612
48616
|
text: fs,
|
|
@@ -48650,33 +48654,33 @@ Required: ` + _.join(", "));
|
|
|
48650
48654
|
})();
|
|
48651
48655
|
(function() {
|
|
48652
48656
|
var c = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
48653
|
-
const r = (M,
|
|
48657
|
+
const r = (M, K, ae) => {
|
|
48654
48658
|
var Ie;
|
|
48655
|
-
return ae(M,
|
|
48659
|
+
return ae(M, K.prototype) ? !0 : ((Ie = M.constructor) === null || Ie === void 0 ? void 0 : Ie.name) === K.name;
|
|
48656
48660
|
}, a = (M) => {
|
|
48657
|
-
const
|
|
48658
|
-
return M === null ? "null" :
|
|
48659
|
-
}, l = (M) => (
|
|
48660
|
-
}, U = (M,
|
|
48661
|
-
function le(M, ...
|
|
48661
|
+
const K = typeof M;
|
|
48662
|
+
return M === null ? "null" : K === "object" && Array.isArray(M) ? "array" : K === "object" && r(M, String, (ae, Ie) => Ie.isPrototypeOf(ae)) ? "string" : K;
|
|
48663
|
+
}, l = (M) => (K) => a(K) === M, i = (M) => (K) => typeof K === M, f = l("string"), p = l("object"), y = l("array"), S = i("boolean"), k = (M) => M == null, R = (M) => !k(M), $ = i("function"), V = i("number"), z = () => {
|
|
48664
|
+
}, U = (M, K) => (ae) => M(K(ae)), q = (M) => () => M, G = (M, K) => M === K;
|
|
48665
|
+
function le(M, ...K) {
|
|
48662
48666
|
return (...ae) => {
|
|
48663
|
-
const Ie =
|
|
48667
|
+
const Ie = K.concat(ae);
|
|
48664
48668
|
return M.apply(null, Ie);
|
|
48665
48669
|
};
|
|
48666
48670
|
}
|
|
48667
|
-
const Z = (M) => (
|
|
48671
|
+
const Z = (M) => (K) => !M(K), Y = q(!1);
|
|
48668
48672
|
class _e {
|
|
48669
|
-
constructor(
|
|
48670
|
-
this.tag =
|
|
48673
|
+
constructor(K, ae) {
|
|
48674
|
+
this.tag = K, this.value = ae;
|
|
48671
48675
|
}
|
|
48672
|
-
static some(
|
|
48673
|
-
return new _e(!0,
|
|
48676
|
+
static some(K) {
|
|
48677
|
+
return new _e(!0, K);
|
|
48674
48678
|
}
|
|
48675
48679
|
static none() {
|
|
48676
48680
|
return _e.singletonNone;
|
|
48677
48681
|
}
|
|
48678
|
-
fold(
|
|
48679
|
-
return this.tag ? ae(this.value) :
|
|
48682
|
+
fold(K, ae) {
|
|
48683
|
+
return this.tag ? ae(this.value) : K();
|
|
48680
48684
|
}
|
|
48681
48685
|
isSome() {
|
|
48682
48686
|
return this.tag;
|
|
@@ -48684,40 +48688,40 @@ Required: ` + _.join(", "));
|
|
|
48684
48688
|
isNone() {
|
|
48685
48689
|
return !this.tag;
|
|
48686
48690
|
}
|
|
48687
|
-
map(
|
|
48688
|
-
return this.tag ? _e.some(
|
|
48691
|
+
map(K) {
|
|
48692
|
+
return this.tag ? _e.some(K(this.value)) : _e.none();
|
|
48689
48693
|
}
|
|
48690
|
-
bind(
|
|
48691
|
-
return this.tag ?
|
|
48694
|
+
bind(K) {
|
|
48695
|
+
return this.tag ? K(this.value) : _e.none();
|
|
48692
48696
|
}
|
|
48693
|
-
exists(
|
|
48694
|
-
return this.tag &&
|
|
48697
|
+
exists(K) {
|
|
48698
|
+
return this.tag && K(this.value);
|
|
48695
48699
|
}
|
|
48696
|
-
forall(
|
|
48697
|
-
return !this.tag ||
|
|
48700
|
+
forall(K) {
|
|
48701
|
+
return !this.tag || K(this.value);
|
|
48698
48702
|
}
|
|
48699
|
-
filter(
|
|
48700
|
-
return !this.tag ||
|
|
48703
|
+
filter(K) {
|
|
48704
|
+
return !this.tag || K(this.value) ? this : _e.none();
|
|
48701
48705
|
}
|
|
48702
|
-
getOr(
|
|
48703
|
-
return this.tag ? this.value :
|
|
48706
|
+
getOr(K) {
|
|
48707
|
+
return this.tag ? this.value : K;
|
|
48704
48708
|
}
|
|
48705
|
-
or(
|
|
48706
|
-
return this.tag ? this :
|
|
48709
|
+
or(K) {
|
|
48710
|
+
return this.tag ? this : K;
|
|
48707
48711
|
}
|
|
48708
|
-
getOrThunk(
|
|
48709
|
-
return this.tag ? this.value :
|
|
48712
|
+
getOrThunk(K) {
|
|
48713
|
+
return this.tag ? this.value : K();
|
|
48710
48714
|
}
|
|
48711
|
-
orThunk(
|
|
48712
|
-
return this.tag ? this :
|
|
48715
|
+
orThunk(K) {
|
|
48716
|
+
return this.tag ? this : K();
|
|
48713
48717
|
}
|
|
48714
|
-
getOrDie(
|
|
48718
|
+
getOrDie(K) {
|
|
48715
48719
|
if (this.tag)
|
|
48716
48720
|
return this.value;
|
|
48717
|
-
throw new Error(
|
|
48721
|
+
throw new Error(K ?? "Called getOrDie on None");
|
|
48718
48722
|
}
|
|
48719
|
-
static from(
|
|
48720
|
-
return R(
|
|
48723
|
+
static from(K) {
|
|
48724
|
+
return R(K) ? _e.some(K) : _e.none();
|
|
48721
48725
|
}
|
|
48722
48726
|
getOrNull() {
|
|
48723
48727
|
return this.tag ? this.value : null;
|
|
@@ -48725,8 +48729,8 @@ Required: ` + _.join(", "));
|
|
|
48725
48729
|
getOrUndefined() {
|
|
48726
48730
|
return this.value;
|
|
48727
48731
|
}
|
|
48728
|
-
each(
|
|
48729
|
-
this.tag &&
|
|
48732
|
+
each(K) {
|
|
48733
|
+
this.tag && K(this.value);
|
|
48730
48734
|
}
|
|
48731
48735
|
toArray() {
|
|
48732
48736
|
return this.tag ? [this.value] : [];
|
|
@@ -48736,86 +48740,86 @@ Required: ` + _.join(", "));
|
|
|
48736
48740
|
}
|
|
48737
48741
|
}
|
|
48738
48742
|
_e.singletonNone = new _e(!1);
|
|
48739
|
-
const at = Array.prototype.slice, Pe = Array.prototype.indexOf, J = Array.prototype.push, ke = (M,
|
|
48743
|
+
const at = Array.prototype.slice, Pe = Array.prototype.indexOf, J = Array.prototype.push, ke = (M, K) => Pe.call(M, K), ot = (M, K) => ke(M, K) > -1, st = (M, K) => {
|
|
48740
48744
|
for (let ae = 0, Ie = M.length; ae < Ie; ae++) {
|
|
48741
48745
|
const Ve = M[ae];
|
|
48742
|
-
if (
|
|
48746
|
+
if (K(Ve, ae))
|
|
48743
48747
|
return !0;
|
|
48744
48748
|
}
|
|
48745
48749
|
return !1;
|
|
48746
|
-
}, qe = (M,
|
|
48750
|
+
}, qe = (M, K) => {
|
|
48747
48751
|
const ae = M.length, Ie = new Array(ae);
|
|
48748
48752
|
for (let Ve = 0; Ve < ae; Ve++) {
|
|
48749
48753
|
const Ht = M[Ve];
|
|
48750
|
-
Ie[Ve] =
|
|
48754
|
+
Ie[Ve] = K(Ht, Ve);
|
|
48751
48755
|
}
|
|
48752
48756
|
return Ie;
|
|
48753
|
-
}, ye = (M,
|
|
48757
|
+
}, ye = (M, K) => {
|
|
48754
48758
|
for (let ae = 0, Ie = M.length; ae < Ie; ae++) {
|
|
48755
48759
|
const Ve = M[ae];
|
|
48756
|
-
|
|
48760
|
+
K(Ve, ae);
|
|
48757
48761
|
}
|
|
48758
|
-
}, In = (M,
|
|
48762
|
+
}, In = (M, K) => {
|
|
48759
48763
|
const ae = [];
|
|
48760
48764
|
for (let Ie = 0, Ve = M.length; Ie < Ve; Ie++) {
|
|
48761
48765
|
const Ht = M[Ie];
|
|
48762
|
-
|
|
48766
|
+
K(Ht, Ie) && ae.push(Ht);
|
|
48763
48767
|
}
|
|
48764
48768
|
return ae;
|
|
48765
|
-
}, pn = (M,
|
|
48769
|
+
}, pn = (M, K) => {
|
|
48766
48770
|
if (M.length === 0)
|
|
48767
48771
|
return [];
|
|
48768
48772
|
{
|
|
48769
|
-
let ae =
|
|
48773
|
+
let ae = K(M[0]);
|
|
48770
48774
|
const Ie = [];
|
|
48771
48775
|
let Ve = [];
|
|
48772
48776
|
for (let Ht = 0, vo = M.length; Ht < vo; Ht++) {
|
|
48773
|
-
const Lo = M[Ht], Po =
|
|
48777
|
+
const Lo = M[Ht], Po = K(Lo);
|
|
48774
48778
|
Po !== ae && (Ie.push(Ve), Ve = []), ae = Po, Ve.push(Lo);
|
|
48775
48779
|
}
|
|
48776
48780
|
return Ve.length !== 0 && Ie.push(Ve), Ie;
|
|
48777
48781
|
}
|
|
48778
|
-
}, dt = (M,
|
|
48779
|
-
ae =
|
|
48780
|
-
}), ae), N = (M,
|
|
48782
|
+
}, dt = (M, K, ae) => (ye(M, (Ie, Ve) => {
|
|
48783
|
+
ae = K(ae, Ie, Ve);
|
|
48784
|
+
}), ae), N = (M, K, ae) => {
|
|
48781
48785
|
for (let Ie = 0, Ve = M.length; Ie < Ve; Ie++) {
|
|
48782
48786
|
const Ht = M[Ie];
|
|
48783
|
-
if (
|
|
48787
|
+
if (K(Ht, Ie))
|
|
48784
48788
|
return _e.some(Ht);
|
|
48785
48789
|
if (ae(Ht, Ie))
|
|
48786
48790
|
break;
|
|
48787
48791
|
}
|
|
48788
48792
|
return _e.none();
|
|
48789
|
-
}, qt = (M,
|
|
48790
|
-
const
|
|
48793
|
+
}, qt = (M, K) => N(M, K, Y), ct = (M) => {
|
|
48794
|
+
const K = [];
|
|
48791
48795
|
for (let ae = 0, Ie = M.length; ae < Ie; ++ae) {
|
|
48792
48796
|
if (!y(M[ae]))
|
|
48793
48797
|
throw new Error("Arr.flatten item " + ae + " was not an array, input: " + M);
|
|
48794
|
-
J.apply(
|
|
48795
|
-
}
|
|
48796
|
-
return
|
|
48797
|
-
}, Ut = (M,
|
|
48798
|
-
const
|
|
48799
|
-
return
|
|
48800
|
-
}, Ye = (M,
|
|
48801
|
-
const ae = [], Ie = $(
|
|
48798
|
+
J.apply(K, M[ae]);
|
|
48799
|
+
}
|
|
48800
|
+
return K;
|
|
48801
|
+
}, Ut = (M, K) => ct(qe(M, K)), Gt = (M) => {
|
|
48802
|
+
const K = at.call(M, 0);
|
|
48803
|
+
return K.reverse(), K;
|
|
48804
|
+
}, Ye = (M, K) => K >= 0 && K < M.length ? _e.some(M[K]) : _e.none(), vt = (M) => Ye(M, 0), Bn = (M) => Ye(M, M.length - 1), gt = (M, K) => {
|
|
48805
|
+
const ae = [], Ie = $(K) ? (Ve) => st(ae, (Ht) => K(Ht, Ve)) : (Ve) => ot(ae, Ve);
|
|
48802
48806
|
for (let Ve = 0, Ht = M.length; Ve < Ht; Ve++) {
|
|
48803
48807
|
const vo = M[Ve];
|
|
48804
48808
|
Ie(vo) || ae.push(vo);
|
|
48805
48809
|
}
|
|
48806
48810
|
return ae;
|
|
48807
|
-
}, Wt = (M,
|
|
48808
|
-
const Ie = (
|
|
48811
|
+
}, Wt = (M, K, ae = G) => M.exists((Ie) => ae(Ie, K)), Ke = (M, K, ae = G) => ft(M, K, ae).getOr(M.isNone() && K.isNone()), ft = (M, K, ae) => M.isSome() && K.isSome() ? _e.some(ae(M.getOrDie(), K.getOrDie())) : _e.none(), ne = 8, ko = 9, Hn = 11, Do = 1, qo = 3, Ii = (M, K) => {
|
|
48812
|
+
const Ie = (K || document).createElement("div");
|
|
48809
48813
|
if (Ie.innerHTML = M, !Ie.hasChildNodes() || Ie.childNodes.length > 1) {
|
|
48810
48814
|
const Ve = "HTML does not have a single root node";
|
|
48811
48815
|
throw console.error(Ve, M), new Error(Ve);
|
|
48812
48816
|
}
|
|
48813
48817
|
return Dt(Ie.childNodes[0]);
|
|
48814
|
-
}, St = (M,
|
|
48815
|
-
const Ie = (
|
|
48818
|
+
}, St = (M, K) => {
|
|
48819
|
+
const Ie = (K || document).createElement(M);
|
|
48816
48820
|
return Dt(Ie);
|
|
48817
|
-
}, Yt = (M,
|
|
48818
|
-
const Ie = (
|
|
48821
|
+
}, Yt = (M, K) => {
|
|
48822
|
+
const Ie = (K || document).createTextNode(M);
|
|
48819
48823
|
return Dt(Ie);
|
|
48820
48824
|
}, Dt = (M) => {
|
|
48821
48825
|
if (M == null)
|
|
@@ -48826,196 +48830,196 @@ Required: ` + _.join(", "));
|
|
|
48826
48830
|
fromTag: St,
|
|
48827
48831
|
fromText: Yt,
|
|
48828
48832
|
fromDom: Dt,
|
|
48829
|
-
fromPoint: (M,
|
|
48830
|
-
}, Ot = (M,
|
|
48833
|
+
fromPoint: (M, K, ae) => _e.from(M.dom.elementFromPoint(K, ae)).map(Dt)
|
|
48834
|
+
}, Ot = (M, K) => {
|
|
48831
48835
|
const ae = M.dom;
|
|
48832
48836
|
if (ae.nodeType !== Do)
|
|
48833
48837
|
return !1;
|
|
48834
48838
|
{
|
|
48835
48839
|
const Ie = ae;
|
|
48836
48840
|
if (Ie.matches !== void 0)
|
|
48837
|
-
return Ie.matches(
|
|
48841
|
+
return Ie.matches(K);
|
|
48838
48842
|
if (Ie.msMatchesSelector !== void 0)
|
|
48839
|
-
return Ie.msMatchesSelector(
|
|
48843
|
+
return Ie.msMatchesSelector(K);
|
|
48840
48844
|
if (Ie.webkitMatchesSelector !== void 0)
|
|
48841
|
-
return Ie.webkitMatchesSelector(
|
|
48845
|
+
return Ie.webkitMatchesSelector(K);
|
|
48842
48846
|
if (Ie.mozMatchesSelector !== void 0)
|
|
48843
|
-
return Ie.mozMatchesSelector(
|
|
48847
|
+
return Ie.mozMatchesSelector(K);
|
|
48844
48848
|
throw new Error("Browser lacks native selectors");
|
|
48845
48849
|
}
|
|
48846
|
-
}, At = (M,
|
|
48847
|
-
const ae = M.dom, Ie =
|
|
48850
|
+
}, At = (M, K) => M.dom === K.dom, Gn = (M, K) => {
|
|
48851
|
+
const ae = M.dom, Ie = K.dom;
|
|
48848
48852
|
return ae === Ie ? !1 : ae.contains(Ie);
|
|
48849
|
-
}, xn = Ot, $o = typeof window < "u" ? window : Function("return this;")(), jo = (M,
|
|
48850
|
-
let ae =
|
|
48853
|
+
}, xn = Ot, $o = typeof window < "u" ? window : Function("return this;")(), jo = (M, K) => {
|
|
48854
|
+
let ae = K ?? $o;
|
|
48851
48855
|
for (let Ie = 0; Ie < M.length && ae !== void 0 && ae !== null; ++Ie)
|
|
48852
48856
|
ae = ae[M[Ie]];
|
|
48853
48857
|
return ae;
|
|
48854
|
-
}, Us = (M,
|
|
48858
|
+
}, Us = (M, K) => {
|
|
48855
48859
|
const ae = M.split(".");
|
|
48856
|
-
return jo(ae,
|
|
48857
|
-
}, fa = (M,
|
|
48858
|
-
const ae = fa(M,
|
|
48860
|
+
return jo(ae, K);
|
|
48861
|
+
}, fa = (M, K) => Us(M, K), vs = (M, K) => {
|
|
48862
|
+
const ae = fa(M, K);
|
|
48859
48863
|
if (ae == null)
|
|
48860
48864
|
throw new Error(M + " not available on this browser");
|
|
48861
48865
|
return ae;
|
|
48862
48866
|
}, Ss = Object.getPrototypeOf, qs = (M) => vs("HTMLElement", M), ha = (M) => {
|
|
48863
|
-
const
|
|
48864
|
-
return p(M) && (qs(
|
|
48865
|
-
}, Bs = (M) => M.dom.nodeName.toLowerCase(), Is = (M) => M.dom.nodeType, Ur = (M) => (
|
|
48867
|
+
const K = Us("ownerDocument.defaultView", M);
|
|
48868
|
+
return p(M) && (qs(K).prototype.isPrototypeOf(M) || /^HTML\w*Element$/.test(Ss(M).constructor.name));
|
|
48869
|
+
}, Bs = (M) => M.dom.nodeName.toLowerCase(), Is = (M) => M.dom.nodeType, Ur = (M) => (K) => Is(K) === M, Go = (M) => Is(M) === ne || Bs(M) === "#comment", Qs = (M) => Kr(M) && ha(M.dom), Kr = Ur(Do), Ta = Ur(qo), ea = Ur(ko), Js = Ur(Hn), Wr = (M) => (K) => Kr(K) && Bs(K) === M, nn = (M) => zn.fromDom(M.dom.ownerDocument), cs = (M) => ea(M) ? M : nn(M), ui = (M) => _e.from(M.dom.parentNode).map(zn.fromDom), Li = (M) => _e.from(M.dom.parentElement).map(zn.fromDom), Pi = (M) => _e.from(M.dom.nextSibling).map(zn.fromDom), Ai = (M) => qe(M.dom.childNodes, zn.fromDom), Ts = (M, K) => {
|
|
48866
48870
|
const ae = M.dom.childNodes;
|
|
48867
|
-
return _e.from(ae[
|
|
48871
|
+
return _e.from(ae[K]).map(zn.fromDom);
|
|
48868
48872
|
}, Zi = (M) => Ts(M, 0), Mi = (M) => Ts(M, M.dom.childNodes.length - 1), Ps = (M) => Js(M) && R(M.dom.host), Br = $(Element.prototype.attachShadow) && $(Node.prototype.getRootNode) ? (M) => zn.fromDom(M.dom.getRootNode()) : cs, qi = (M) => {
|
|
48869
|
-
const
|
|
48870
|
-
return Ps(
|
|
48873
|
+
const K = Br(M);
|
|
48874
|
+
return Ps(K) ? _e.some(K) : _e.none();
|
|
48871
48875
|
}, Ul = (M) => zn.fromDom(M.dom.host), Wl = (M) => {
|
|
48872
|
-
const
|
|
48873
|
-
if (
|
|
48876
|
+
const K = Ta(M) ? M.dom.parentNode : M.dom;
|
|
48877
|
+
if (K == null || K.ownerDocument === null)
|
|
48874
48878
|
return !1;
|
|
48875
|
-
const ae =
|
|
48876
|
-
return qi(zn.fromDom(
|
|
48879
|
+
const ae = K.ownerDocument;
|
|
48880
|
+
return qi(zn.fromDom(K)).fold(() => ae.body.contains(K), U(Wl, Ul));
|
|
48877
48881
|
};
|
|
48878
|
-
var Ls = (M,
|
|
48879
|
-
const wr = (M,
|
|
48882
|
+
var Ls = (M, K, ae, Ie, Ve) => M(ae, Ie) ? _e.some(ae) : $(Ve) && Ve(ae) ? _e.none() : K(ae, Ie, Ve);
|
|
48883
|
+
const wr = (M, K, ae) => {
|
|
48880
48884
|
let Ie = M.dom;
|
|
48881
48885
|
const Ve = $(ae) ? ae : Y;
|
|
48882
48886
|
for (; Ie.parentNode; ) {
|
|
48883
48887
|
Ie = Ie.parentNode;
|
|
48884
48888
|
const Ht = zn.fromDom(Ie);
|
|
48885
|
-
if (
|
|
48889
|
+
if (K(Ht))
|
|
48886
48890
|
return _e.some(Ht);
|
|
48887
48891
|
if (Ve(Ht))
|
|
48888
48892
|
break;
|
|
48889
48893
|
}
|
|
48890
48894
|
return _e.none();
|
|
48891
|
-
}, gr = (M,
|
|
48895
|
+
}, gr = (M, K, ae) => Ls((Ve, Ht) => Ht(Ve), wr, M, K, ae), ta = (M, K, ae) => wr(M, (Ie) => Ot(Ie, K), ae), qa = (M, K, ae) => Ls((Ve, Ht) => Ot(Ve, Ht), ta, M, K, ae), Yr = (M) => qa(M, "[contenteditable]"), Be = (M, K = !1) => Wl(M) ? M.dom.isContentEditable : Yr(M).fold(q(K), (ae) => Oe(ae) === "true"), Oe = (M) => M.dom.contentEditable, ht = (M, K) => {
|
|
48892
48896
|
ui(M).each((Ie) => {
|
|
48893
|
-
Ie.dom.insertBefore(
|
|
48897
|
+
Ie.dom.insertBefore(K.dom, M.dom);
|
|
48894
48898
|
});
|
|
48895
|
-
}, kt = (M,
|
|
48899
|
+
}, kt = (M, K) => {
|
|
48896
48900
|
Pi(M).fold(() => {
|
|
48897
48901
|
ui(M).each((Ve) => {
|
|
48898
|
-
io(Ve,
|
|
48902
|
+
io(Ve, K);
|
|
48899
48903
|
});
|
|
48900
48904
|
}, (Ie) => {
|
|
48901
|
-
ht(Ie,
|
|
48905
|
+
ht(Ie, K);
|
|
48902
48906
|
});
|
|
48903
|
-
}, Kn = (M,
|
|
48907
|
+
}, Kn = (M, K) => {
|
|
48904
48908
|
Zi(M).fold(() => {
|
|
48905
|
-
io(M,
|
|
48909
|
+
io(M, K);
|
|
48906
48910
|
}, (Ie) => {
|
|
48907
|
-
M.dom.insertBefore(
|
|
48911
|
+
M.dom.insertBefore(K.dom, Ie.dom);
|
|
48908
48912
|
});
|
|
48909
|
-
}, io = (M,
|
|
48910
|
-
M.dom.appendChild(
|
|
48911
|
-
}, Bo = (M,
|
|
48912
|
-
ye(
|
|
48913
|
+
}, io = (M, K) => {
|
|
48914
|
+
M.dom.appendChild(K.dom);
|
|
48915
|
+
}, Bo = (M, K) => {
|
|
48916
|
+
ye(K, (ae) => {
|
|
48913
48917
|
ht(M, ae);
|
|
48914
48918
|
});
|
|
48915
|
-
}, nr = (M,
|
|
48916
|
-
ye(
|
|
48919
|
+
}, nr = (M, K) => {
|
|
48920
|
+
ye(K, (ae) => {
|
|
48917
48921
|
io(M, ae);
|
|
48918
48922
|
});
|
|
48919
48923
|
}, Ue = (M) => {
|
|
48920
|
-
M.dom.textContent = "", ye(Ai(M), (
|
|
48921
|
-
Oo(
|
|
48924
|
+
M.dom.textContent = "", ye(Ai(M), (K) => {
|
|
48925
|
+
Oo(K);
|
|
48922
48926
|
});
|
|
48923
48927
|
}, Oo = (M) => {
|
|
48924
|
-
const
|
|
48925
|
-
|
|
48928
|
+
const K = M.dom;
|
|
48929
|
+
K.parentNode !== null && K.parentNode.removeChild(K);
|
|
48926
48930
|
};
|
|
48927
48931
|
var Ne = tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"), Fe = tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"), $t = tinymce.util.Tools.resolve("tinymce.util.VK");
|
|
48928
|
-
const Zt = (M) => qe(M, zn.fromDom), wn = Object.keys, Jn = (M,
|
|
48932
|
+
const Zt = (M) => qe(M, zn.fromDom), wn = Object.keys, Jn = (M, K) => {
|
|
48929
48933
|
const ae = wn(M);
|
|
48930
48934
|
for (let Ie = 0, Ve = ae.length; Ie < Ve; Ie++) {
|
|
48931
48935
|
const Ht = ae[Ie], vo = M[Ht];
|
|
48932
|
-
|
|
48936
|
+
K(vo, Ht);
|
|
48933
48937
|
}
|
|
48934
|
-
}, Zn = (M) => (
|
|
48935
|
-
M[ae] =
|
|
48936
|
-
}, qn = (M,
|
|
48938
|
+
}, Zn = (M) => (K, ae) => {
|
|
48939
|
+
M[ae] = K;
|
|
48940
|
+
}, qn = (M, K, ae, Ie) => {
|
|
48937
48941
|
Jn(M, (Ve, Ht) => {
|
|
48938
|
-
(
|
|
48942
|
+
(K(Ve, Ht) ? ae : Ie)(Ve, Ht);
|
|
48939
48943
|
});
|
|
48940
|
-
}, Xn = (M,
|
|
48944
|
+
}, Xn = (M, K) => {
|
|
48941
48945
|
const ae = {};
|
|
48942
|
-
return qn(M,
|
|
48943
|
-
}, ao = (M,
|
|
48946
|
+
return qn(M, K, Zn(ae), z), ae;
|
|
48947
|
+
}, ao = (M, K, ae) => {
|
|
48944
48948
|
if (f(ae) || S(ae) || V(ae))
|
|
48945
|
-
M.setAttribute(
|
|
48949
|
+
M.setAttribute(K, ae + "");
|
|
48946
48950
|
else
|
|
48947
|
-
throw console.error("Invalid call to Attribute.set. Key ",
|
|
48948
|
-
}, es = (M,
|
|
48951
|
+
throw console.error("Invalid call to Attribute.set. Key ", K, ":: Value ", ae, ":: Element ", M), new Error("Attribute value was not simple");
|
|
48952
|
+
}, es = (M, K) => {
|
|
48949
48953
|
const ae = M.dom;
|
|
48950
|
-
Jn(
|
|
48954
|
+
Jn(K, (Ie, Ve) => {
|
|
48951
48955
|
ao(ae, Ve, Ie);
|
|
48952
48956
|
});
|
|
48953
|
-
}, Ks = (M) => dt(M.dom.attributes, (
|
|
48954
|
-
const ae = zn.fromTag(
|
|
48957
|
+
}, Ks = (M) => dt(M.dom.attributes, (K, ae) => (K[ae.name] = ae.value, K), {}), ma = (M, K) => zn.fromDom(M.dom.cloneNode(K)), Ka = (M) => ma(M, !0), Ya = (M, K) => {
|
|
48958
|
+
const ae = zn.fromTag(K), Ie = Ks(M);
|
|
48955
48959
|
return es(ae, Ie), ae;
|
|
48956
|
-
}, xo = (M,
|
|
48957
|
-
const ae = Ya(M,
|
|
48960
|
+
}, xo = (M, K) => {
|
|
48961
|
+
const ae = Ya(M, K);
|
|
48958
48962
|
kt(M, ae);
|
|
48959
48963
|
const Ie = Ai(M);
|
|
48960
48964
|
return nr(ae, Ie), Oo(M), ae;
|
|
48961
48965
|
};
|
|
48962
48966
|
var Ko = tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"), Ds = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
48963
|
-
const na = (M) => (
|
|
48964
|
-
var
|
|
48965
|
-
return ((
|
|
48966
|
-
}, ga = (M,
|
|
48967
|
-
const Ie = M.isEmpty(
|
|
48968
|
-
return ae && M.select("span[data-mce-type=bookmark]",
|
|
48969
|
-
}, rc = (M,
|
|
48970
|
-
const
|
|
48971
|
-
|
|
48967
|
+
const na = (M) => (K) => R(K) && K.nodeName.toLowerCase() === M, bi = (M) => (K) => R(K) && M.test(K.nodeName), Sr = (M) => R(M) && M.nodeType === 3, or = (M) => R(M) && M.nodeType === 1, Da = bi(/^(OL|UL|DL)$/), Vc = bi(/^(OL|UL)$/), Ms = na("ol"), Fi = bi(/^(LI|DT|DD)$/), Oa = bi(/^(DT|DD)$/), di = bi(/^(TH|TD)$/), Xa = na("br"), Ol = (M) => {
|
|
48968
|
+
var K;
|
|
48969
|
+
return ((K = M.parentNode) === null || K === void 0 ? void 0 : K.firstChild) === M;
|
|
48970
|
+
}, ga = (M, K) => R(K) && K.nodeName in M.schema.getTextBlockElements(), Qa = (M, K) => R(M) && M.nodeName in K, ml = (M, K) => R(K) && K.nodeName in M.schema.getVoidElements(), Du = (M, K) => Xa(K) ? M.isBlock(K.nextSibling) && !Xa(K.previousSibling) : !1, $a = (M, K, ae) => {
|
|
48971
|
+
const Ie = M.isEmpty(K);
|
|
48972
|
+
return ae && M.select("span[data-mce-type=bookmark]", K).length > 0 ? !1 : Ie;
|
|
48973
|
+
}, rc = (M, K) => M.isChildOf(K, M.getRoot()), oa = (M) => (K) => K.options.get(M), gl = (M) => {
|
|
48974
|
+
const K = M.options.register;
|
|
48975
|
+
K("lists_indent_on_tab", {
|
|
48972
48976
|
processor: "boolean",
|
|
48973
48977
|
default: !0
|
|
48974
48978
|
});
|
|
48975
|
-
}, vc = oa("lists_indent_on_tab"), Uc = oa("forced_root_block"), xd = oa("forced_root_block_attrs"), Ou = (M,
|
|
48979
|
+
}, vc = oa("lists_indent_on_tab"), Uc = oa("forced_root_block"), xd = oa("forced_root_block_attrs"), Ou = (M, K, ae = {}) => {
|
|
48976
48980
|
const Ie = M.dom, Ve = M.schema.getBlockElements(), Ht = Ie.createFragment(), vo = Uc(M), Lo = xd(M);
|
|
48977
48981
|
let Po, po, Qr = !1;
|
|
48978
48982
|
for (po = Ie.create(vo, {
|
|
48979
48983
|
...Lo,
|
|
48980
48984
|
...ae.style ? { style: ae.style } : {}
|
|
48981
|
-
}), Qa(
|
|
48985
|
+
}), Qa(K.firstChild, Ve) || Ht.appendChild(po); Po = K.firstChild; ) {
|
|
48982
48986
|
const Ci = Po.nodeName;
|
|
48983
48987
|
!Qr && (Ci !== "SPAN" || Po.getAttribute("data-mce-type") !== "bookmark") && (Qr = !0), Qa(Po, Ve) ? (Ht.appendChild(Po), po = null) : (po || (po = Ie.create(vo, Lo), Ht.appendChild(po)), po.appendChild(Po));
|
|
48984
48988
|
}
|
|
48985
48989
|
return !Qr && po && po.appendChild(Ie.create("br", { "data-mce-bogus": "1" })), Ht;
|
|
48986
|
-
}, Ha = Ko.DOM, Ju = (M,
|
|
48990
|
+
}, Ha = Ko.DOM, Ju = (M, K, ae) => {
|
|
48987
48991
|
const Ie = (po) => {
|
|
48988
48992
|
const Qr = po.parentNode;
|
|
48989
48993
|
Qr && Ds.each(Ve, (Ci) => {
|
|
48990
48994
|
Qr.insertBefore(Ci, ae.parentNode);
|
|
48991
48995
|
}), Ha.remove(po);
|
|
48992
|
-
}, Ve = Ha.select('span[data-mce-type="bookmark"]',
|
|
48993
|
-
vo.setStartAfter(ae), vo.setEndAfter(
|
|
48996
|
+
}, Ve = Ha.select('span[data-mce-type="bookmark"]', K), Ht = Ou(M, ae), vo = Ha.createRng();
|
|
48997
|
+
vo.setStartAfter(ae), vo.setEndAfter(K);
|
|
48994
48998
|
const Lo = vo.extractContents();
|
|
48995
48999
|
for (let po = Lo.firstChild; po; po = po.firstChild)
|
|
48996
49000
|
if (po.nodeName === "LI" && M.dom.isEmpty(po)) {
|
|
48997
49001
|
Ha.remove(po);
|
|
48998
49002
|
break;
|
|
48999
49003
|
}
|
|
49000
|
-
M.dom.isEmpty(Lo) || Ha.insertAfter(Lo,
|
|
49004
|
+
M.dom.isEmpty(Lo) || Ha.insertAfter(Lo, K), Ha.insertAfter(Ht, K);
|
|
49001
49005
|
const Po = ae.parentElement;
|
|
49002
|
-
Po && $a(M.dom, Po) && Ie(Po), Ha.remove(ae), $a(M.dom,
|
|
49003
|
-
}, ue = Wr("dd"), Re = Wr("dt"), Qe = (M,
|
|
49004
|
-
ue(
|
|
49006
|
+
Po && $a(M.dom, Po) && Ie(Po), Ha.remove(ae), $a(M.dom, K) && Ha.remove(K);
|
|
49007
|
+
}, ue = Wr("dd"), Re = Wr("dt"), Qe = (M, K) => {
|
|
49008
|
+
ue(K) ? xo(K, "dt") : Re(K) && Li(K).each((ae) => Ju(M, ae.dom, K.dom));
|
|
49005
49009
|
}, Mt = (M) => {
|
|
49006
49010
|
Re(M) && xo(M, "dd");
|
|
49007
|
-
}, tn = (M,
|
|
49008
|
-
|
|
49009
|
-
}, Wn = (M,
|
|
49011
|
+
}, tn = (M, K, ae) => {
|
|
49012
|
+
K === "Indent" ? ye(ae, Mt) : ye(ae, (Ie) => Qe(M, Ie));
|
|
49013
|
+
}, Wn = (M, K) => {
|
|
49010
49014
|
if (Sr(M))
|
|
49011
49015
|
return {
|
|
49012
49016
|
container: M,
|
|
49013
|
-
offset:
|
|
49017
|
+
offset: K
|
|
49014
49018
|
};
|
|
49015
|
-
const ae = Ne.getNode(M,
|
|
49019
|
+
const ae = Ne.getNode(M, K);
|
|
49016
49020
|
return Sr(ae) ? {
|
|
49017
49021
|
container: ae,
|
|
49018
|
-
offset:
|
|
49022
|
+
offset: K >= M.childNodes.length ? ae.data.length : 0
|
|
49019
49023
|
} : ae.previousSibling && Sr(ae.previousSibling) ? {
|
|
49020
49024
|
container: ae.previousSibling,
|
|
49021
49025
|
offset: ae.previousSibling.data.length
|
|
@@ -49024,85 +49028,85 @@ Required: ` + _.join(", "));
|
|
|
49024
49028
|
offset: 0
|
|
49025
49029
|
} : {
|
|
49026
49030
|
container: M,
|
|
49027
|
-
offset:
|
|
49031
|
+
offset: K
|
|
49028
49032
|
};
|
|
49029
49033
|
}, ss = (M) => {
|
|
49030
|
-
const
|
|
49031
|
-
|
|
49034
|
+
const K = M.cloneRange(), ae = Wn(M.startContainer, M.startOffset);
|
|
49035
|
+
K.setStart(ae.container, ae.offset);
|
|
49032
49036
|
const Ie = Wn(M.endContainer, M.endOffset);
|
|
49033
|
-
return
|
|
49037
|
+
return K.setEnd(Ie.container, Ie.offset), K;
|
|
49034
49038
|
}, fs = [
|
|
49035
49039
|
"OL",
|
|
49036
49040
|
"UL",
|
|
49037
49041
|
"DL"
|
|
49038
|
-
], Wo = fs.join(","), Ys = (M,
|
|
49039
|
-
const ae =
|
|
49042
|
+
], Wo = fs.join(","), Ys = (M, K) => {
|
|
49043
|
+
const ae = K || M.selection.getStart(!0);
|
|
49040
49044
|
return M.dom.getParent(ae, Wo, _n(M, ae));
|
|
49041
|
-
}, Lr = (M,
|
|
49042
|
-
const
|
|
49043
|
-
return Lr(
|
|
49044
|
-
}, rr = (M,
|
|
49045
|
-
const ae = Ds.map(
|
|
49045
|
+
}, Lr = (M, K) => R(M) && K.length === 1 && K[0] === M, ln = (M) => In(M.querySelectorAll(Wo), Da), Ed = (M) => {
|
|
49046
|
+
const K = Ys(M), ae = M.selection.getSelectedBlocks();
|
|
49047
|
+
return Lr(K, ae) ? ln(K) : In(ae, (Ie) => Da(Ie) && K !== Ie);
|
|
49048
|
+
}, rr = (M, K) => {
|
|
49049
|
+
const ae = Ds.map(K, (Ie) => {
|
|
49046
49050
|
const Ve = M.dom.getParent(Ie, "li,dd,dt", _n(M, Ie));
|
|
49047
49051
|
return Ve || Ie;
|
|
49048
49052
|
});
|
|
49049
49053
|
return gt(ae);
|
|
49050
49054
|
}, oe = (M) => {
|
|
49051
|
-
const
|
|
49052
|
-
return In(rr(M,
|
|
49053
|
-
}, be = (M) => In(oe(M), Oa), De = (M,
|
|
49054
|
-
const ae = M.dom.getParents(
|
|
49055
|
+
const K = M.selection.getSelectedBlocks();
|
|
49056
|
+
return In(rr(M, K), Fi);
|
|
49057
|
+
}, be = (M) => In(oe(M), Oa), De = (M, K) => {
|
|
49058
|
+
const ae = M.dom.getParents(K, "TD,TH");
|
|
49055
49059
|
return ae.length > 0 ? ae[0] : M.getBody();
|
|
49056
|
-
}, pt = (M,
|
|
49057
|
-
const ae = M.dom.getParents(
|
|
49060
|
+
}, pt = (M, K) => !Da(K) && !Fi(K) && st(fs, (ae) => M.isValidChild(K.nodeName, ae)), _n = (M, K) => {
|
|
49061
|
+
const ae = M.dom.getParents(K, M.dom.isBlock), Ie = (Ht) => Ht.nodeName.toLowerCase() !== Uc(M);
|
|
49058
49062
|
return qt(ae, (Ht) => Ie(Ht) && pt(M.schema, Ht)).getOr(M.getBody());
|
|
49059
|
-
}, Xo = (M) => ui(M).exists((
|
|
49060
|
-
const ae = M.dom.getParents(
|
|
49063
|
+
}, Xo = (M) => ui(M).exists((K) => Fi(K.dom) && Zi(K).exists((ae) => !Da(ae.dom)) && Mi(K).exists((ae) => !Da(ae.dom))), Fn = (M, K) => {
|
|
49064
|
+
const ae = M.dom.getParents(K, "ol,ul", _n(M, K));
|
|
49061
49065
|
return Bn(ae);
|
|
49062
49066
|
}, Fr = (M) => {
|
|
49063
|
-
const
|
|
49064
|
-
return
|
|
49067
|
+
const K = Fn(M, M.selection.getStart()), ae = In(M.selection.getSelectedBlocks(), Vc);
|
|
49068
|
+
return K.toArray().concat(ae);
|
|
49065
49069
|
}, Xt = (M) => {
|
|
49066
|
-
const
|
|
49067
|
-
return M.dom.getParents(
|
|
49070
|
+
const K = M.selection.getStart();
|
|
49071
|
+
return M.dom.getParents(K, "ol,ul", _n(M, K));
|
|
49068
49072
|
}, pr = (M) => {
|
|
49069
|
-
const
|
|
49070
|
-
return qt(ae, (Ie) => Xo(zn.fromDom(Ie))).fold(() => za(M,
|
|
49071
|
-
}, za = (M,
|
|
49072
|
-
const ae = qe(
|
|
49073
|
+
const K = Fr(M), ae = Xt(M);
|
|
49074
|
+
return qt(ae, (Ie) => Xo(zn.fromDom(Ie))).fold(() => za(M, K), (Ie) => [Ie]);
|
|
49075
|
+
}, za = (M, K) => {
|
|
49076
|
+
const ae = qe(K, (Ie) => Fn(M, Ie).getOr(Ie));
|
|
49073
49077
|
return gt(ae);
|
|
49074
|
-
}, Dr = (M) => /\btox\-/.test(M.className), ki = (M,
|
|
49075
|
-
const
|
|
49076
|
-
return ic(M,
|
|
49077
|
-
}, Va = (M,
|
|
49078
|
-
const ae = M.dom.getParent(
|
|
49078
|
+
}, Dr = (M) => /\btox\-/.test(M.className), ki = (M, K) => N(M, Da, di).exists((ae) => ae.nodeName === K && !Dr(ae)), ic = (M, K) => K !== null && !M.dom.isEditable(K), hs = (M) => {
|
|
49079
|
+
const K = Ys(M);
|
|
49080
|
+
return ic(M, K);
|
|
49081
|
+
}, Va = (M, K) => {
|
|
49082
|
+
const ae = M.dom.getParent(K, "ol,ul,dl");
|
|
49079
49083
|
return ic(M, ae);
|
|
49080
|
-
}, $r = (M,
|
|
49084
|
+
}, $r = (M, K) => {
|
|
49081
49085
|
const ae = M.selection.getNode();
|
|
49082
|
-
return
|
|
49086
|
+
return K({
|
|
49083
49087
|
parents: M.dom.getParents(ae),
|
|
49084
49088
|
element: ae
|
|
49085
|
-
}), M.on("NodeChange",
|
|
49086
|
-
}, Wc = (M,
|
|
49087
|
-
const Ie = (
|
|
49089
|
+
}), M.on("NodeChange", K), () => M.off("NodeChange", K);
|
|
49090
|
+
}, Wc = (M, K) => {
|
|
49091
|
+
const Ie = (K || document).createDocumentFragment();
|
|
49088
49092
|
return ye(M, (Ve) => {
|
|
49089
49093
|
Ie.appendChild(Ve.dom);
|
|
49090
49094
|
}), zn.fromDom(Ie);
|
|
49091
|
-
}, jr = (M,
|
|
49092
|
-
action:
|
|
49095
|
+
}, jr = (M, K, ae) => M.dispatch("ListMutation", {
|
|
49096
|
+
action: K,
|
|
49093
49097
|
element: ae
|
|
49094
|
-
}), Dh = ((M) => (
|
|
49098
|
+
}), Dh = ((M) => (K) => K.replace(M, ""))(/^\s+|\s+$/g), Pg = (M) => M.length > 0, Xr = (M) => !Pg(M), bc = (M) => M.style !== void 0 && $(M.style.getPropertyValue), sa = (M, K, ae) => {
|
|
49095
49099
|
if (!f(ae))
|
|
49096
|
-
throw console.error("Invalid call to CSS.set. Property ",
|
|
49097
|
-
bc(M) && M.style.setProperty(
|
|
49098
|
-
}, pa = (M,
|
|
49100
|
+
throw console.error("Invalid call to CSS.set. Property ", K, ":: Value ", ae, ":: Element ", M), new Error("CSS value must be a string: " + ae);
|
|
49101
|
+
bc(M) && M.style.setProperty(K, ae);
|
|
49102
|
+
}, pa = (M, K, ae) => {
|
|
49099
49103
|
const Ie = M.dom;
|
|
49100
|
-
sa(Ie,
|
|
49104
|
+
sa(Ie, K, ae);
|
|
49101
49105
|
}, Ua = (M) => xn(M, "OL,UL"), Vf = (M) => xn(M, "LI"), us = (M) => Zi(M).exists(Ua), Ja = (M) => Mi(M).exists(Ua), Ra = (M) => "listAttributes" in M, ge = (M) => "isComment" in M, Te = (M) => "isFragment" in M, rt = (M) => M.depth > 0, yt = (M) => M.isSelected, eo = (M) => {
|
|
49102
|
-
const
|
|
49106
|
+
const K = Ai(M), ae = Ja(M) ? K.slice(0, -1) : K;
|
|
49103
49107
|
return qe(ae, Ka);
|
|
49104
|
-
}, ts = (M,
|
|
49105
|
-
depth:
|
|
49108
|
+
}, ts = (M, K, ae) => ui(M).filter(Kr).map((Ie) => ({
|
|
49109
|
+
depth: K,
|
|
49106
49110
|
dirty: !1,
|
|
49107
49111
|
isSelected: ae,
|
|
49108
49112
|
content: eo(M),
|
|
@@ -49110,39 +49114,39 @@ Required: ` + _.join(", "));
|
|
|
49110
49114
|
listAttributes: Ks(Ie),
|
|
49111
49115
|
listType: Bs(Ie),
|
|
49112
49116
|
isInPreviousLi: !1
|
|
49113
|
-
})), Rr = (M,
|
|
49114
|
-
io(M.item,
|
|
49117
|
+
})), Rr = (M, K) => {
|
|
49118
|
+
io(M.item, K.list);
|
|
49115
49119
|
}, ra = (M) => {
|
|
49116
|
-
for (let
|
|
49117
|
-
Rr(M[
|
|
49118
|
-
}, rs = (M,
|
|
49119
|
-
ft(Bn(M), vt(
|
|
49120
|
-
}, $i = (M,
|
|
49120
|
+
for (let K = 1; K < M.length; K++)
|
|
49121
|
+
Rr(M[K - 1], M[K]);
|
|
49122
|
+
}, rs = (M, K) => {
|
|
49123
|
+
ft(Bn(M), vt(K), Rr);
|
|
49124
|
+
}, $i = (M, K) => {
|
|
49121
49125
|
const ae = {
|
|
49122
|
-
list: zn.fromTag(
|
|
49126
|
+
list: zn.fromTag(K, M),
|
|
49123
49127
|
item: zn.fromTag("li", M)
|
|
49124
49128
|
};
|
|
49125
49129
|
return io(ae.list, ae.item), ae;
|
|
49126
|
-
}, Hr = (M,
|
|
49130
|
+
}, Hr = (M, K, ae) => {
|
|
49127
49131
|
const Ie = [];
|
|
49128
49132
|
for (let Ve = 0; Ve < ae; Ve++)
|
|
49129
|
-
Ie.push($i(M, Ra(
|
|
49133
|
+
Ie.push($i(M, Ra(K) ? K.listType : K.parentListType));
|
|
49130
49134
|
return Ie;
|
|
49131
|
-
}, yi = (M,
|
|
49135
|
+
}, yi = (M, K) => {
|
|
49132
49136
|
for (let ae = 0; ae < M.length - 1; ae++)
|
|
49133
49137
|
pa(M[ae].item, "list-style-type", "none");
|
|
49134
49138
|
Bn(M).each((ae) => {
|
|
49135
|
-
Ra(
|
|
49139
|
+
Ra(K) && (es(ae.list, K.listAttributes), es(ae.item, K.itemAttributes)), nr(ae.item, K.content);
|
|
49136
49140
|
});
|
|
49137
|
-
}, hi = (M,
|
|
49138
|
-
Bs(M.list) !==
|
|
49139
|
-
}, fi = (M,
|
|
49141
|
+
}, hi = (M, K) => {
|
|
49142
|
+
Bs(M.list) !== K.listType && (M.list = xo(M.list, K.listType)), es(M.list, K.listAttributes);
|
|
49143
|
+
}, fi = (M, K, ae) => {
|
|
49140
49144
|
const Ie = zn.fromTag("li", M);
|
|
49141
|
-
return es(Ie,
|
|
49142
|
-
}, Rl = (M,
|
|
49143
|
-
io(M.list,
|
|
49144
|
-
}, jc = (M,
|
|
49145
|
-
const Ie =
|
|
49145
|
+
return es(Ie, K), nr(Ie, ae), Ie;
|
|
49146
|
+
}, Rl = (M, K) => {
|
|
49147
|
+
io(M.list, K), M.item = K;
|
|
49148
|
+
}, jc = (M, K, ae) => {
|
|
49149
|
+
const Ie = K.slice(0, ae.depth);
|
|
49146
49150
|
return Bn(Ie).each((Ve) => {
|
|
49147
49151
|
if (Ra(ae)) {
|
|
49148
49152
|
const Ht = fi(M, ae.itemAttributes, ae.content);
|
|
@@ -49154,50 +49158,50 @@ Required: ` + _.join(", "));
|
|
|
49154
49158
|
io(Ve.list, Ht);
|
|
49155
49159
|
}
|
|
49156
49160
|
}), Ie;
|
|
49157
|
-
}, va = (M,
|
|
49158
|
-
const Ie = Hr(M, ae, ae.depth -
|
|
49159
|
-
return ra(Ie), yi(Ie, ae), rs(
|
|
49160
|
-
}, Il = (M,
|
|
49161
|
+
}, va = (M, K, ae) => {
|
|
49162
|
+
const Ie = Hr(M, ae, ae.depth - K.length);
|
|
49163
|
+
return ra(Ie), yi(Ie, ae), rs(K, Ie), K.concat(Ie);
|
|
49164
|
+
}, Il = (M, K) => {
|
|
49161
49165
|
let ae = _e.none();
|
|
49162
|
-
const Ie = dt(
|
|
49166
|
+
const Ie = dt(K, (Ve, Ht, vo) => ge(Ht) ? vo === 0 ? (ae = _e.some(Ht), Ve) : jc(M, Ve, Ht) : Ht.depth > Ve.length ? va(M, Ve, Ht) : jc(M, Ve, Ht), []);
|
|
49163
49167
|
return ae.each((Ve) => {
|
|
49164
49168
|
const Ht = zn.fromHtml(`<!--${Ve.content}-->`);
|
|
49165
49169
|
vt(Ie).each((vo) => {
|
|
49166
49170
|
Kn(vo.list, Ht);
|
|
49167
49171
|
});
|
|
49168
49172
|
}), vt(Ie).map((Ve) => Ve.list);
|
|
49169
|
-
}, ou = (M,
|
|
49173
|
+
}, ou = (M, K) => {
|
|
49170
49174
|
switch (M) {
|
|
49171
49175
|
case "Indent":
|
|
49172
|
-
|
|
49176
|
+
K.depth++;
|
|
49173
49177
|
break;
|
|
49174
49178
|
case "Outdent":
|
|
49175
|
-
|
|
49179
|
+
K.depth--;
|
|
49176
49180
|
break;
|
|
49177
49181
|
case "Flatten":
|
|
49178
|
-
|
|
49182
|
+
K.depth = 0;
|
|
49179
49183
|
}
|
|
49180
|
-
|
|
49181
|
-
}, su = (M,
|
|
49182
|
-
Ra(M) && Ra(
|
|
49184
|
+
K.dirty = !0;
|
|
49185
|
+
}, su = (M, K) => {
|
|
49186
|
+
Ra(M) && Ra(K) && (M.listType = K.listType, M.listAttributes = { ...K.listAttributes });
|
|
49183
49187
|
}, _m = (M) => {
|
|
49184
|
-
M.listAttributes = Xn(M.listAttributes, (
|
|
49185
|
-
}, kd = (M,
|
|
49186
|
-
const ae = M[
|
|
49187
|
-
return N(Gt(M.slice(0,
|
|
49188
|
-
}, Gc = (M) => (ye(M, (
|
|
49188
|
+
M.listAttributes = Xn(M.listAttributes, (K, ae) => ae !== "start");
|
|
49189
|
+
}, kd = (M, K) => {
|
|
49190
|
+
const ae = M[K].depth, Ie = (Ht) => Ht.depth === ae && !Ht.dirty, Ve = (Ht) => Ht.depth < ae;
|
|
49191
|
+
return N(Gt(M.slice(0, K)), Ie, Ve).orThunk(() => N(M.slice(K + 1), Ie, Ve));
|
|
49192
|
+
}, Gc = (M) => (ye(M, (K, ae) => {
|
|
49189
49193
|
kd(M, ae).fold(() => {
|
|
49190
|
-
|
|
49191
|
-
}, (Ie) => su(
|
|
49194
|
+
K.dirty && Ra(K) && _m(K);
|
|
49195
|
+
}, (Ie) => su(K, Ie));
|
|
49192
49196
|
}), M), pl = (M) => {
|
|
49193
|
-
let
|
|
49197
|
+
let K = M;
|
|
49194
49198
|
return {
|
|
49195
|
-
get: () =>
|
|
49199
|
+
get: () => K,
|
|
49196
49200
|
set: (Ve) => {
|
|
49197
|
-
|
|
49201
|
+
K = Ve;
|
|
49198
49202
|
}
|
|
49199
49203
|
};
|
|
49200
|
-
}, Td = (M,
|
|
49204
|
+
}, Td = (M, K, ae, Ie) => {
|
|
49201
49205
|
var Ve;
|
|
49202
49206
|
if (Go(Ie))
|
|
49203
49207
|
return [{
|
|
@@ -49207,21 +49211,21 @@ Required: ` + _.join(", "));
|
|
|
49207
49211
|
isSelected: !1,
|
|
49208
49212
|
isComment: !0
|
|
49209
49213
|
}];
|
|
49210
|
-
|
|
49214
|
+
K.each((Lo) => {
|
|
49211
49215
|
At(Lo.start, Ie) && ae.set(!0);
|
|
49212
49216
|
});
|
|
49213
49217
|
const Ht = ts(Ie, M, ae.get());
|
|
49214
|
-
|
|
49218
|
+
K.each((Lo) => {
|
|
49215
49219
|
At(Lo.end, Ie) && ae.set(!1);
|
|
49216
49220
|
});
|
|
49217
|
-
const vo = Mi(Ie).filter(Ua).map((Lo) => Ru(M,
|
|
49221
|
+
const vo = Mi(Ie).filter(Ua).map((Lo) => Ru(M, K, ae, Lo)).getOr([]);
|
|
49218
49222
|
return Ht.toArray().concat(vo);
|
|
49219
|
-
}, Uf = (M,
|
|
49223
|
+
}, Uf = (M, K, ae, Ie) => Zi(Ie).filter(Ua).fold(() => Td(M, K, ae, Ie), (Ve) => {
|
|
49220
49224
|
const Ht = dt(Ai(Ie), (vo, Lo, Po) => {
|
|
49221
49225
|
if (Po === 0)
|
|
49222
49226
|
return vo;
|
|
49223
49227
|
if (Vf(Lo))
|
|
49224
|
-
return vo.concat(Td(M,
|
|
49228
|
+
return vo.concat(Td(M, K, ae, Lo));
|
|
49225
49229
|
{
|
|
49226
49230
|
const po = {
|
|
49227
49231
|
isFragment: !0,
|
|
@@ -49234,35 +49238,35 @@ Required: ` + _.join(", "));
|
|
|
49234
49238
|
return vo.concat(po);
|
|
49235
49239
|
}
|
|
49236
49240
|
}, []);
|
|
49237
|
-
return Ru(M,
|
|
49238
|
-
}), Ru = (M,
|
|
49241
|
+
return Ru(M, K, ae, Ve).concat(Ht);
|
|
49242
|
+
}), Ru = (M, K, ae, Ie) => Ut(Ai(Ie), (Ve) => {
|
|
49239
49243
|
const Ht = Ua(Ve) ? Ru : Uf, vo = M + 1;
|
|
49240
|
-
return Ht(vo,
|
|
49241
|
-
}), Mg = (M,
|
|
49244
|
+
return Ht(vo, K, ae, Ve);
|
|
49245
|
+
}), Mg = (M, K) => {
|
|
49242
49246
|
const ae = pl(!1), Ie = 0;
|
|
49243
49247
|
return qe(M, (Ve) => ({
|
|
49244
49248
|
sourceList: Ve,
|
|
49245
|
-
entries: Ru(Ie,
|
|
49249
|
+
entries: Ru(Ie, K, ae, Ve)
|
|
49246
49250
|
}));
|
|
49247
|
-
}, Wf = (M,
|
|
49248
|
-
const ae = Gc(
|
|
49251
|
+
}, Wf = (M, K) => {
|
|
49252
|
+
const ae = Gc(K);
|
|
49249
49253
|
return qe(ae, (Ie) => {
|
|
49250
49254
|
const Ve = ge(Ie) ? Wc([zn.fromHtml(`<!--${Ie.content}-->`)]) : Wc(Ie.content), Ht = Ra(Ie) ? Ie.itemAttributes : {};
|
|
49251
49255
|
return zn.fromDom(Ou(M, Ve.dom, Ht));
|
|
49252
49256
|
});
|
|
49253
|
-
}, Ng = (M,
|
|
49254
|
-
const ae = Gc(
|
|
49257
|
+
}, Ng = (M, K) => {
|
|
49258
|
+
const ae = Gc(K);
|
|
49255
49259
|
return Il(M.contentDocument, ae).toArray();
|
|
49256
|
-
}, of = (M,
|
|
49257
|
-
ye(In(M, yt), (ae) => ou(
|
|
49260
|
+
}, of = (M, K) => Ut(pn(K, rt), (ae) => vt(ae).exists(rt) ? Ng(M, ae) : Wf(M, ae)), Bg = (M, K) => {
|
|
49261
|
+
ye(In(M, yt), (ae) => ou(K, ae));
|
|
49258
49262
|
}, sf = (M) => {
|
|
49259
|
-
const
|
|
49260
|
-
return ft(qt(
|
|
49263
|
+
const K = qe(oe(M), zn.fromDom);
|
|
49264
|
+
return ft(qt(K, Z(us)), qt(Gt(K), Z(us)), (ae, Ie) => ({
|
|
49261
49265
|
start: ae,
|
|
49262
49266
|
end: Ie
|
|
49263
49267
|
}));
|
|
49264
|
-
}, S1 = (M,
|
|
49265
|
-
const Ie = Mg(
|
|
49268
|
+
}, S1 = (M, K, ae) => {
|
|
49269
|
+
const Ie = Mg(K, sf(M));
|
|
49266
49270
|
ye(Ie, (Ve) => {
|
|
49267
49271
|
Bg(Ve.entries, ae);
|
|
49268
49272
|
const Ht = of(M, Ve.entries);
|
|
@@ -49270,28 +49274,28 @@ Required: ` + _.join(", "));
|
|
|
49270
49274
|
jr(M, ae === "Indent" ? "IndentList" : "OutdentList", vo.dom);
|
|
49271
49275
|
}), Bo(Ve.sourceList, Ht), Oo(Ve.sourceList);
|
|
49272
49276
|
});
|
|
49273
|
-
}, Le = (M,
|
|
49277
|
+
}, Le = (M, K) => {
|
|
49274
49278
|
const ae = Zt(pr(M)), Ie = Zt(be(M));
|
|
49275
49279
|
let Ve = !1;
|
|
49276
49280
|
if (ae.length || Ie.length) {
|
|
49277
49281
|
const Ht = M.selection.getBookmark();
|
|
49278
|
-
S1(M, ae,
|
|
49282
|
+
S1(M, ae, K), tn(M, K, Ie), M.selection.moveToBookmark(Ht), M.selection.setRng(ss(M.selection.getRng())), M.nodeChanged(), Ve = !0;
|
|
49279
49283
|
}
|
|
49280
49284
|
return Ve;
|
|
49281
|
-
}, Oh = (M,
|
|
49285
|
+
}, Oh = (M, K) => !hs(M) && Le(M, K), jl = (M) => Oh(M, "Indent"), ed = (M) => Oh(M, "Outdent"), Lg = (M) => Oh(M, "Flatten"), Kp = "\uFEFF", Fs = (M) => M === Kp, vl = (M, K, ae) => wr(M, K, ae).isSome(), ac = (M, K) => vl(M, le(At, K));
|
|
49282
49286
|
var ba = tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager");
|
|
49283
49287
|
const rf = Ko.DOM, ru = (M) => {
|
|
49284
|
-
const
|
|
49288
|
+
const K = {}, ae = (Ie) => {
|
|
49285
49289
|
let Ve = M[Ie ? "startContainer" : "endContainer"], Ht = M[Ie ? "startOffset" : "endOffset"];
|
|
49286
49290
|
if (or(Ve)) {
|
|
49287
49291
|
const vo = rf.create("span", { "data-mce-type": "bookmark" });
|
|
49288
49292
|
Ve.hasChildNodes() ? (Ht = Math.min(Ht, Ve.childNodes.length - 1), Ie ? Ve.insertBefore(vo, Ve.childNodes[Ht]) : rf.insertAfter(vo, Ve.childNodes[Ht])) : Ve.appendChild(vo), Ve = vo, Ht = 0;
|
|
49289
49293
|
}
|
|
49290
|
-
|
|
49294
|
+
K[Ie ? "startContainer" : "endContainer"] = Ve, K[Ie ? "startOffset" : "endOffset"] = Ht;
|
|
49291
49295
|
};
|
|
49292
|
-
return ae(!0), M.collapsed || ae(),
|
|
49296
|
+
return ae(!0), M.collapsed || ae(), K;
|
|
49293
49297
|
}, el = (M) => {
|
|
49294
|
-
const
|
|
49298
|
+
const K = (Ie) => {
|
|
49295
49299
|
const Ve = (Lo) => {
|
|
49296
49300
|
var Po;
|
|
49297
49301
|
let po = (Po = Lo.parentNode) === null || Po === void 0 ? void 0 : Po.firstChild, Qr = 0;
|
|
@@ -49311,7 +49315,7 @@ Required: ` + _.join(", "));
|
|
|
49311
49315
|
M[Ie ? "startContainer" : "endContainer"] = Ht, M[Ie ? "startOffset" : "endOffset"] = vo;
|
|
49312
49316
|
}
|
|
49313
49317
|
};
|
|
49314
|
-
|
|
49318
|
+
K(!0), K();
|
|
49315
49319
|
const ae = rf.createRng();
|
|
49316
49320
|
return ae.setStart(M.startContainer, M.startOffset), M.endContainer && ae.setEnd(M.endContainer, M.endOffset), ss(ae);
|
|
49317
49321
|
}, iu = (M) => {
|
|
@@ -49323,24 +49327,24 @@ Required: ` + _.join(", "));
|
|
|
49323
49327
|
case "DL":
|
|
49324
49328
|
return "ToggleDLList";
|
|
49325
49329
|
}
|
|
49326
|
-
}, Fg = (M,
|
|
49330
|
+
}, Fg = (M, K, ae) => {
|
|
49327
49331
|
const Ie = ae["list-style-type"] ? ae["list-style-type"] : null;
|
|
49328
|
-
M.setStyle(
|
|
49329
|
-
}, Yp = (M,
|
|
49330
|
-
Ds.each(
|
|
49332
|
+
M.setStyle(K, "list-style-type", Ie);
|
|
49333
|
+
}, Yp = (M, K) => {
|
|
49334
|
+
Ds.each(K, (ae, Ie) => {
|
|
49331
49335
|
M.setAttribute(Ie, ae);
|
|
49332
49336
|
});
|
|
49333
|
-
}, yc = (M,
|
|
49334
|
-
Yp(
|
|
49337
|
+
}, yc = (M, K, ae) => {
|
|
49338
|
+
Yp(K, ae["list-attributes"]), Ds.each(M.select("li", K), (Ie) => {
|
|
49335
49339
|
Yp(Ie, ae["list-item-attributes"]);
|
|
49336
49340
|
});
|
|
49337
|
-
}, au = (M,
|
|
49338
|
-
Fg(M,
|
|
49339
|
-
}, Cm = (M,
|
|
49340
|
-
Ds.each(ae, (Ie) => M.setStyle(
|
|
49341
|
-
}, bl = (M,
|
|
49342
|
-
let Ve =
|
|
49343
|
-
const Ht =
|
|
49341
|
+
}, au = (M, K, ae) => {
|
|
49342
|
+
Fg(M, K, ae), yc(M, K, ae);
|
|
49343
|
+
}, Cm = (M, K, ae) => {
|
|
49344
|
+
Ds.each(ae, (Ie) => M.setStyle(K, Ie, ""));
|
|
49345
|
+
}, bl = (M, K) => R(K) && !Qa(K, M.schema.getBlockElements()), ya = (M, K, ae, Ie) => {
|
|
49346
|
+
let Ve = K[ae ? "startContainer" : "endContainer"];
|
|
49347
|
+
const Ht = K[ae ? "startOffset" : "endOffset"];
|
|
49344
49348
|
or(Ve) && (Ve = Ve.childNodes[Math.min(Ht, Ve.childNodes.length - 1)] || Ve), !ae && Xa(Ve.nextSibling) && (Ve = Ve.nextSibling);
|
|
49345
49349
|
const vo = (Po) => {
|
|
49346
49350
|
for (; !M.dom.isBlock(Po) && Po.parentNode && Ie !== Po; )
|
|
@@ -49374,8 +49378,8 @@ Required: ` + _.join(", "));
|
|
|
49374
49378
|
Ve = Po;
|
|
49375
49379
|
}
|
|
49376
49380
|
return Ve;
|
|
49377
|
-
}, Dd = (M,
|
|
49378
|
-
const Ie = [], Ve = M.dom, Ht = ya(M,
|
|
49381
|
+
}, Dd = (M, K, ae) => {
|
|
49382
|
+
const Ie = [], Ve = M.dom, Ht = ya(M, K, !0, ae), vo = ya(M, K, !1, ae);
|
|
49379
49383
|
let Lo;
|
|
49380
49384
|
const Po = [];
|
|
49381
49385
|
for (let po = Ht; po && (Po.push(po), po !== vo); po = po.nextSibling)
|
|
@@ -49397,25 +49401,25 @@ Required: ` + _.join(", "));
|
|
|
49397
49401
|
}
|
|
49398
49402
|
Lo || (Lo = Ve.create("p"), (Qr = po.parentNode) === null || Qr === void 0 || Qr.insertBefore(Lo, po), Ie.push(Lo)), Lo.appendChild(po);
|
|
49399
49403
|
}), Ie;
|
|
49400
|
-
}, jf = (M,
|
|
49401
|
-
const Ie = M.getStyle(
|
|
49404
|
+
}, jf = (M, K, ae) => {
|
|
49405
|
+
const Ie = M.getStyle(K, "list-style-type");
|
|
49402
49406
|
let Ve = ae ? ae["list-style-type"] : "";
|
|
49403
49407
|
return Ve = Ve === null ? "" : Ve, Ie === Ve;
|
|
49404
|
-
}, Zc = (M,
|
|
49405
|
-
const ae = M.selection.getStart(!0), Ie = ya(M,
|
|
49406
|
-
return ac(zn.fromDom(Ie), zn.fromDom(
|
|
49407
|
-
}, Wa = (M,
|
|
49408
|
+
}, Zc = (M, K) => {
|
|
49409
|
+
const ae = M.selection.getStart(!0), Ie = ya(M, K, !0, M.getBody());
|
|
49410
|
+
return ac(zn.fromDom(Ie), zn.fromDom(K.commonAncestorContainer)) ? K.commonAncestorContainer : ae;
|
|
49411
|
+
}, Wa = (M, K, ae) => {
|
|
49408
49412
|
const Ie = M.selection.getRng();
|
|
49409
49413
|
let Ve = "LI";
|
|
49410
49414
|
const Ht = _n(M, Zc(M, Ie)), vo = M.dom;
|
|
49411
49415
|
if (vo.getContentEditable(M.selection.getNode()) === "false")
|
|
49412
49416
|
return;
|
|
49413
|
-
|
|
49417
|
+
K = K.toUpperCase(), K === "DL" && (Ve = "DT");
|
|
49414
49418
|
const Lo = ru(Ie), Po = In(Dd(M, Ie, Ht), M.dom.isEditable);
|
|
49415
49419
|
Ds.each(Po, (po) => {
|
|
49416
49420
|
let Qr;
|
|
49417
49421
|
const Ci = po.previousSibling, Kl = po.parentNode;
|
|
49418
|
-
Fi(Kl) || (Ci && Da(Ci) && Ci.nodeName ===
|
|
49422
|
+
Fi(Kl) || (Ci && Da(Ci) && Ci.nodeName === K && jf(vo, Ci, ae) ? (Qr = Ci, po = vo.rename(po, Ve), Ci.appendChild(po)) : (Qr = vo.create(K), Kl.insertBefore(Qr, po), Qr.appendChild(po), po = vo.rename(po, Ve)), Cm(vo, po, [
|
|
49419
49423
|
"margin",
|
|
49420
49424
|
"margin-right",
|
|
49421
49425
|
"margin-bottom",
|
|
@@ -49428,90 +49432,90 @@ Required: ` + _.join(", "));
|
|
|
49428
49432
|
"padding-top"
|
|
49429
49433
|
]), au(vo, Qr, ae), _c(M.dom, Qr));
|
|
49430
49434
|
}), M.selection.setRng(el(Lo));
|
|
49431
|
-
}, wm = (M,
|
|
49432
|
-
const Ie = M.getStyle(
|
|
49435
|
+
}, wm = (M, K) => Da(M) && M.nodeName === (K == null ? void 0 : K.nodeName), Sm = (M, K, ae) => {
|
|
49436
|
+
const Ie = M.getStyle(K, "list-style-type", !0), Ve = M.getStyle(ae, "list-style-type", !0);
|
|
49433
49437
|
return Ie === Ve;
|
|
49434
|
-
}, xm = (M,
|
|
49435
|
-
let ae, Ie =
|
|
49436
|
-
if (Rh(M,
|
|
49438
|
+
}, xm = (M, K) => M.className === K.className, Rh = (M, K, ae) => wm(K, ae) && Sm(M, K, ae) && xm(K, ae), _c = (M, K) => {
|
|
49439
|
+
let ae, Ie = K.nextSibling;
|
|
49440
|
+
if (Rh(M, K, Ie)) {
|
|
49437
49441
|
const Ve = Ie;
|
|
49438
49442
|
for (; ae = Ve.firstChild; )
|
|
49439
|
-
|
|
49443
|
+
K.appendChild(ae);
|
|
49440
49444
|
M.remove(Ve);
|
|
49441
49445
|
}
|
|
49442
|
-
if (Ie =
|
|
49446
|
+
if (Ie = K.previousSibling, Rh(M, K, Ie)) {
|
|
49443
49447
|
const Ve = Ie;
|
|
49444
49448
|
for (; ae = Ve.lastChild; )
|
|
49445
|
-
|
|
49449
|
+
K.insertBefore(ae, K.firstChild);
|
|
49446
49450
|
M.remove(Ve);
|
|
49447
49451
|
}
|
|
49448
|
-
}, Em = (M,
|
|
49449
|
-
if (
|
|
49450
|
-
const Ve = M.dom.rename(
|
|
49452
|
+
}, Em = (M, K, ae, Ie) => {
|
|
49453
|
+
if (K.nodeName !== ae) {
|
|
49454
|
+
const Ve = M.dom.rename(K, ae);
|
|
49451
49455
|
au(M.dom, Ve, Ie), jr(M, iu(ae), Ve);
|
|
49452
49456
|
} else
|
|
49453
|
-
au(M.dom,
|
|
49454
|
-
}, Xp = (M,
|
|
49455
|
-
if (
|
|
49456
|
-
Ve.startsWith("tox-") && (vo.remove(Ve), vo.length === 0 &&
|
|
49457
|
-
}),
|
|
49458
|
-
const Ve = M.dom.rename(
|
|
49457
|
+
au(M.dom, K, Ie), jr(M, iu(ae), K);
|
|
49458
|
+
}, Xp = (M, K, ae, Ie) => {
|
|
49459
|
+
if (K.classList.forEach((Ve, Ht, vo) => {
|
|
49460
|
+
Ve.startsWith("tox-") && (vo.remove(Ve), vo.length === 0 && K.removeAttribute("class"));
|
|
49461
|
+
}), K.nodeName !== ae) {
|
|
49462
|
+
const Ve = M.dom.rename(K, ae);
|
|
49459
49463
|
au(M.dom, Ve, Ie), jr(M, iu(ae), Ve);
|
|
49460
49464
|
} else
|
|
49461
|
-
au(M.dom,
|
|
49462
|
-
}, x1 = (M,
|
|
49463
|
-
const Ht = Da(
|
|
49464
|
-
if (Ht &&
|
|
49465
|
+
au(M.dom, K, Ie), jr(M, iu(ae), K);
|
|
49466
|
+
}, x1 = (M, K, ae, Ie, Ve) => {
|
|
49467
|
+
const Ht = Da(K);
|
|
49468
|
+
if (Ht && K.nodeName === Ie && !Qp(Ve) && !Dr(K))
|
|
49465
49469
|
Lg(M);
|
|
49466
49470
|
else {
|
|
49467
49471
|
Wa(M, Ie, Ve);
|
|
49468
49472
|
const vo = ru(M.selection.getRng()), Lo = Ht ? [
|
|
49469
|
-
|
|
49473
|
+
K,
|
|
49470
49474
|
...ae
|
|
49471
|
-
] : ae, Po = Ht && Dr(
|
|
49475
|
+
] : ae, Po = Ht && Dr(K) ? Xp : Em;
|
|
49472
49476
|
Ds.each(Lo, (po) => {
|
|
49473
49477
|
Po(M, po, Ie, Ve);
|
|
49474
49478
|
}), M.selection.setRng(el(vo));
|
|
49475
49479
|
}
|
|
49476
|
-
}, Qp = (M) => "list-style-type" in M, Am = (M,
|
|
49477
|
-
if (
|
|
49478
|
-
if (
|
|
49479
|
-
if (
|
|
49480
|
+
}, Qp = (M) => "list-style-type" in M, Am = (M, K, ae, Ie) => {
|
|
49481
|
+
if (K !== M.getBody())
|
|
49482
|
+
if (K)
|
|
49483
|
+
if (K.nodeName === ae && !Qp(Ie) && !Dr(K))
|
|
49480
49484
|
Lg(M);
|
|
49481
49485
|
else {
|
|
49482
49486
|
const Ve = ru(M.selection.getRng());
|
|
49483
|
-
Dr(
|
|
49484
|
-
vo.startsWith("tox-") && (Po.remove(vo), Po.length === 0 &&
|
|
49485
|
-
}), au(M.dom,
|
|
49486
|
-
const Ht = M.dom.rename(
|
|
49487
|
+
Dr(K) && K.classList.forEach((vo, Lo, Po) => {
|
|
49488
|
+
vo.startsWith("tox-") && (Po.remove(vo), Po.length === 0 && K.removeAttribute("class"));
|
|
49489
|
+
}), au(M.dom, K, Ie);
|
|
49490
|
+
const Ht = M.dom.rename(K, ae);
|
|
49487
49491
|
_c(M.dom, Ht), M.selection.setRng(el(Ve)), Wa(M, ae, Ie), jr(M, iu(ae), Ht);
|
|
49488
49492
|
}
|
|
49489
49493
|
else
|
|
49490
|
-
Wa(M, ae, Ie), jr(M, iu(ae),
|
|
49491
|
-
}, Ih = (M,
|
|
49494
|
+
Wa(M, ae, Ie), jr(M, iu(ae), K);
|
|
49495
|
+
}, Ih = (M, K, ae) => {
|
|
49492
49496
|
const Ie = Ys(M);
|
|
49493
49497
|
if (Va(M, Ie))
|
|
49494
49498
|
return;
|
|
49495
49499
|
const Ve = Ed(M), Ht = p(ae) ? ae : {};
|
|
49496
|
-
Ve.length > 0 ? x1(M, Ie, Ve,
|
|
49497
|
-
}, td = Ko.DOM, $g = (M,
|
|
49498
|
-
const ae =
|
|
49499
|
-
if (ae && ae.nodeName === "LI" && ae.firstChild ===
|
|
49500
|
+
Ve.length > 0 ? x1(M, Ie, Ve, K, Ht) : Am(M, Ie, K, Ht);
|
|
49501
|
+
}, td = Ko.DOM, $g = (M, K) => {
|
|
49502
|
+
const ae = K.parentElement;
|
|
49503
|
+
if (ae && ae.nodeName === "LI" && ae.firstChild === K) {
|
|
49500
49504
|
const Ie = ae.previousSibling;
|
|
49501
|
-
Ie && Ie.nodeName === "LI" ? (Ie.appendChild(
|
|
49505
|
+
Ie && Ie.nodeName === "LI" ? (Ie.appendChild(K), $a(M, ae) && td.remove(ae)) : td.setStyle(ae, "listStyleType", "none");
|
|
49502
49506
|
}
|
|
49503
49507
|
if (Da(ae)) {
|
|
49504
49508
|
const Ie = ae.previousSibling;
|
|
49505
|
-
Ie && Ie.nodeName === "LI" && Ie.appendChild(
|
|
49509
|
+
Ie && Ie.nodeName === "LI" && Ie.appendChild(K);
|
|
49506
49510
|
}
|
|
49507
|
-
}, zr = (M,
|
|
49508
|
-
const ae = Ds.grep(M.select("ol,ul",
|
|
49511
|
+
}, zr = (M, K) => {
|
|
49512
|
+
const ae = Ds.grep(M.select("ol,ul", K));
|
|
49509
49513
|
Ds.each(ae, (Ie) => {
|
|
49510
49514
|
$g(M, Ie);
|
|
49511
49515
|
});
|
|
49512
|
-
}, mi = (M,
|
|
49513
|
-
let Ve =
|
|
49514
|
-
const Ht =
|
|
49516
|
+
}, mi = (M, K, ae, Ie) => {
|
|
49517
|
+
let Ve = K.startContainer;
|
|
49518
|
+
const Ht = K.startOffset;
|
|
49515
49519
|
if (Sr(Ve) && (ae ? Ht < Ve.data.length : Ht > 0))
|
|
49516
49520
|
return Ve;
|
|
49517
49521
|
const vo = M.schema.getNonEmptyElements();
|
|
@@ -49523,56 +49527,56 @@ Required: ` + _.join(", "));
|
|
|
49523
49527
|
if (Ve.nodeName === "LI" && !Ve.hasChildNodes() || vo[Ve.nodeName] || Sr(Ve) && Ve.data.length > 0)
|
|
49524
49528
|
return Ve;
|
|
49525
49529
|
return null;
|
|
49526
|
-
}, Gl = (M,
|
|
49527
|
-
const ae =
|
|
49530
|
+
}, Gl = (M, K) => {
|
|
49531
|
+
const ae = K.childNodes;
|
|
49528
49532
|
return ae.length === 1 && !Da(ae[0]) && M.isBlock(ae[0]);
|
|
49529
|
-
}, Hg = (M) => _e.from(M).map(zn.fromDom).filter(Qs).exists((
|
|
49530
|
-
Gl(M,
|
|
49531
|
-
}, Ki = (M,
|
|
49533
|
+
}, Hg = (M) => _e.from(M).map(zn.fromDom).filter(Qs).exists((K) => Be(K) && !ot(["details"], Bs(K))), zg = (M, K) => {
|
|
49534
|
+
Gl(M, K) && Hg(K.firstChild) && M.remove(K.firstChild, !0);
|
|
49535
|
+
}, Ki = (M, K, ae) => {
|
|
49532
49536
|
let Ie;
|
|
49533
49537
|
const Ve = Gl(M, ae) ? ae.firstChild : ae;
|
|
49534
|
-
if (zg(M,
|
|
49535
|
-
for (; Ie =
|
|
49538
|
+
if (zg(M, K), !$a(M, K, !0))
|
|
49539
|
+
for (; Ie = K.firstChild; )
|
|
49536
49540
|
Ve.appendChild(Ie);
|
|
49537
|
-
}, to = (M,
|
|
49541
|
+
}, to = (M, K, ae) => {
|
|
49538
49542
|
let Ie;
|
|
49539
|
-
const Ve =
|
|
49540
|
-
if (!rc(M,
|
|
49543
|
+
const Ve = K.parentNode;
|
|
49544
|
+
if (!rc(M, K) || !rc(M, ae))
|
|
49541
49545
|
return;
|
|
49542
49546
|
Da(ae.lastChild) && (Ie = ae.lastChild), Ve === ae.lastChild && Xa(Ve.previousSibling) && M.remove(Ve.previousSibling);
|
|
49543
49547
|
const Ht = ae.lastChild;
|
|
49544
|
-
Ht && Xa(Ht) &&
|
|
49545
|
-
const Lo = Gn(zn.fromDom(ae), zn.fromDom(
|
|
49546
|
-
M.remove(
|
|
49548
|
+
Ht && Xa(Ht) && K.hasChildNodes() && M.remove(Ht), $a(M, ae, !0) && Ue(zn.fromDom(ae)), Ki(M, K, ae), Ie && ae.appendChild(Ie);
|
|
49549
|
+
const Lo = Gn(zn.fromDom(ae), zn.fromDom(K)) ? M.getParents(K, Da, ae) : [];
|
|
49550
|
+
M.remove(K), ye(Lo, (Po) => {
|
|
49547
49551
|
$a(M, Po) && Po !== M.getRoot() && M.remove(Po);
|
|
49548
49552
|
});
|
|
49549
|
-
}, Iu = (M,
|
|
49550
|
-
Ue(zn.fromDom(ae)), to(M.dom,
|
|
49551
|
-
}, Jp = (M,
|
|
49553
|
+
}, Iu = (M, K, ae) => {
|
|
49554
|
+
Ue(zn.fromDom(ae)), to(M.dom, K, ae), M.selection.setCursorLocation(ae, 0);
|
|
49555
|
+
}, Jp = (M, K, ae, Ie) => {
|
|
49552
49556
|
const Ve = M.dom;
|
|
49553
49557
|
if (Ve.isEmpty(Ie))
|
|
49554
49558
|
Iu(M, ae, Ie);
|
|
49555
49559
|
else {
|
|
49556
|
-
const Ht = ru(
|
|
49560
|
+
const Ht = ru(K);
|
|
49557
49561
|
to(Ve, ae, Ie), M.selection.setRng(el(Ht));
|
|
49558
49562
|
}
|
|
49559
|
-
}, ia = (M,
|
|
49560
|
-
const Ve = ru(
|
|
49563
|
+
}, ia = (M, K, ae, Ie) => {
|
|
49564
|
+
const Ve = ru(K);
|
|
49561
49565
|
to(M.dom, ae, Ie);
|
|
49562
49566
|
const Ht = el(Ve);
|
|
49563
49567
|
M.selection.setRng(Ht);
|
|
49564
|
-
}, vr = (M,
|
|
49568
|
+
}, vr = (M, K) => {
|
|
49565
49569
|
const ae = M.dom, Ie = M.selection, Ve = Ie.getStart(), Ht = De(M, Ve), vo = ae.getParent(Ie.getStart(), "LI", Ht);
|
|
49566
49570
|
if (vo) {
|
|
49567
49571
|
const Lo = vo.parentElement;
|
|
49568
49572
|
if (Lo === M.getBody() && $a(ae, Lo))
|
|
49569
49573
|
return !0;
|
|
49570
|
-
const Po = ss(Ie.getRng()), po = ae.getParent(mi(M, Po,
|
|
49574
|
+
const Po = ss(Ie.getRng()), po = ae.getParent(mi(M, Po, K, Ht), "LI", Ht), Qr = po && (K ? ae.isChildOf(vo, po) : ae.isChildOf(po, vo));
|
|
49571
49575
|
if (po && po !== vo && !Qr)
|
|
49572
49576
|
return M.undoManager.transact(() => {
|
|
49573
|
-
|
|
49577
|
+
K ? Jp(M, Po, po, vo) : Ol(vo) ? ed(M) : ia(M, Po, vo, po);
|
|
49574
49578
|
}), !0;
|
|
49575
|
-
if (Qr && !
|
|
49579
|
+
if (Qr && !K && po !== vo)
|
|
49576
49580
|
return M.undoManager.transact(() => {
|
|
49577
49581
|
if (Po.commonAncestorContainer.parentElement) {
|
|
49578
49582
|
const Ci = ru(Po), Kl = Po.commonAncestorContainer.parentElement;
|
|
@@ -49581,19 +49585,19 @@ Required: ` + _.join(", "));
|
|
|
49581
49585
|
M.selection.setRng(Ti);
|
|
49582
49586
|
}
|
|
49583
49587
|
}), !0;
|
|
49584
|
-
if (!po && !
|
|
49588
|
+
if (!po && !K && Po.startOffset === 0 && Po.endOffset === 0)
|
|
49585
49589
|
return M.undoManager.transact(() => {
|
|
49586
49590
|
Lg(M);
|
|
49587
49591
|
}), !0;
|
|
49588
49592
|
}
|
|
49589
49593
|
return !1;
|
|
49590
|
-
}, af = (M,
|
|
49591
|
-
const Ie = M.getParent(
|
|
49592
|
-
M.remove(
|
|
49593
|
-
}, Vg = (M,
|
|
49594
|
+
}, af = (M, K, ae) => {
|
|
49595
|
+
const Ie = M.getParent(K.parentNode, M.isBlock, ae);
|
|
49596
|
+
M.remove(K), Ie && M.isEmpty(Ie) && M.remove(Ie);
|
|
49597
|
+
}, Vg = (M, K) => {
|
|
49594
49598
|
const ae = M.dom, Ie = M.selection.getStart(), Ve = De(M, Ie), Ht = ae.getParent(Ie, ae.isBlock, Ve);
|
|
49595
49599
|
if (Ht && ae.isEmpty(Ht, void 0, { checkRootAsContent: !0 })) {
|
|
49596
|
-
const vo = ss(M.selection.getRng()), Lo = ae.getParent(mi(M, vo,
|
|
49600
|
+
const vo = ss(M.selection.getRng()), Lo = ae.getParent(mi(M, vo, K, Ve), "LI", Ve);
|
|
49597
49601
|
if (Lo) {
|
|
49598
49602
|
const Po = (Kl) => ot([
|
|
49599
49603
|
"td",
|
|
@@ -49602,37 +49606,37 @@ Required: ` + _.join(", "));
|
|
|
49602
49606
|
], Bs(Kl)), po = (Kl) => Kl.dom === Ve, Qr = gr(zn.fromDom(Lo), Po, po), Ci = gr(zn.fromDom(vo.startContainer), Po, po);
|
|
49603
49607
|
return Ke(Qr, Ci, At) ? (M.undoManager.transact(() => {
|
|
49604
49608
|
const Kl = Lo.parentNode;
|
|
49605
|
-
af(ae, Ht, Ve), _c(ae, Kl), M.selection.select(Lo, !0), M.selection.collapse(
|
|
49609
|
+
af(ae, Ht, Ve), _c(ae, Kl), M.selection.select(Lo, !0), M.selection.collapse(K);
|
|
49606
49610
|
}), !0) : !1;
|
|
49607
49611
|
}
|
|
49608
49612
|
}
|
|
49609
49613
|
return !1;
|
|
49610
|
-
}, km = (M,
|
|
49611
|
-
const
|
|
49612
|
-
return M.dom.getParent(
|
|
49614
|
+
}, km = (M, K) => vr(M, K) || Vg(M, K), Tm = (M) => {
|
|
49615
|
+
const K = M.selection.getStart(), ae = De(M, K);
|
|
49616
|
+
return M.dom.getParent(K, "LI,DT,DD", ae) || oe(M).length > 0;
|
|
49613
49617
|
}, zo = (M) => Tm(M) ? (M.undoManager.transact(() => {
|
|
49614
49618
|
M.execCommand("Delete"), zr(M.dom, M.getBody());
|
|
49615
|
-
}), !0) : !1, _i = (M,
|
|
49619
|
+
}), !0) : !1, _i = (M, K) => {
|
|
49616
49620
|
const ae = M.selection;
|
|
49617
|
-
return !Va(M, ae.getNode()) && (ae.isCollapsed() ? km(M,
|
|
49621
|
+
return !Va(M, ae.getNode()) && (ae.isCollapsed() ? km(M, K) : zo(M));
|
|
49618
49622
|
}, Gf = (M) => {
|
|
49619
|
-
M.on("ExecCommand", (
|
|
49620
|
-
const ae =
|
|
49623
|
+
M.on("ExecCommand", (K) => {
|
|
49624
|
+
const ae = K.command.toLowerCase();
|
|
49621
49625
|
(ae === "delete" || ae === "forwarddelete") && Tm(M) && zr(M.dom, M.getBody());
|
|
49622
|
-
}), M.on("keydown", (
|
|
49623
|
-
|
|
49626
|
+
}), M.on("keydown", (K) => {
|
|
49627
|
+
K.keyCode === $t.BACKSPACE ? _i(M, !1) && K.preventDefault() : K.keyCode === $t.DELETE && _i(M, !0) && K.preventDefault();
|
|
49624
49628
|
});
|
|
49625
49629
|
}, Zl = (M) => ({
|
|
49626
|
-
backspaceDelete: (
|
|
49627
|
-
_i(M,
|
|
49630
|
+
backspaceDelete: (K) => {
|
|
49631
|
+
_i(M, K);
|
|
49628
49632
|
}
|
|
49629
|
-
}), Pl = (M,
|
|
49633
|
+
}), Pl = (M, K) => {
|
|
49630
49634
|
const ae = Ys(M);
|
|
49631
49635
|
ae === null || Va(M, ae) || M.undoManager.transact(() => {
|
|
49632
|
-
p(
|
|
49636
|
+
p(K.styles) && M.dom.setStyles(ae, K.styles), p(K.attrs) && Jn(K.attrs, (Ie, Ve) => M.dom.setAttrib(ae, Ve, Ie));
|
|
49633
49637
|
});
|
|
49634
49638
|
}, ql = (M) => {
|
|
49635
|
-
const
|
|
49639
|
+
const K = Gt(Dh(M).split("")), ae = qe(K, (Ie, Ve) => {
|
|
49636
49640
|
const Ht = Ie.toUpperCase().charCodeAt(0) - "A".charCodeAt(0) + 1;
|
|
49637
49641
|
return Math.pow(26, Ve) * Ht;
|
|
49638
49642
|
});
|
|
@@ -49641,7 +49645,7 @@ Required: ` + _.join(", "));
|
|
|
49641
49645
|
if (M--, M < 0)
|
|
49642
49646
|
return "";
|
|
49643
49647
|
{
|
|
49644
|
-
const
|
|
49648
|
+
const K = M % 26, ae = Math.floor(M / 26), Ie = Yi(ae), Ve = String.fromCharCode("A".charCodeAt(0) + K);
|
|
49645
49649
|
return Ie + Ve;
|
|
49646
49650
|
}
|
|
49647
49651
|
}, yl = (M) => /^[A-Z]+$/.test(M), Cc = (M) => /^[a-z]+$/.test(M), Ph = (M) => /^[0-9]+$/.test(M), ri = (M) => Ph(M) ? 2 : yl(M) ? 0 : Cc(M) ? 1 : Xr(M) ? 3 : 4, Ug = (M) => {
|
|
@@ -49670,11 +49674,11 @@ Required: ` + _.join(", "));
|
|
|
49670
49674
|
return _e.none();
|
|
49671
49675
|
}
|
|
49672
49676
|
}, Ni = (M) => {
|
|
49673
|
-
const
|
|
49674
|
-
return Wt(M.listStyleType, "upper-alpha") ? Yi(
|
|
49677
|
+
const K = parseInt(M.start, 10);
|
|
49678
|
+
return Wt(M.listStyleType, "upper-alpha") ? Yi(K) : Wt(M.listStyleType, "lower-alpha") ? Yi(K).toLowerCase() : M.start;
|
|
49675
49679
|
}, Od = (M) => {
|
|
49676
|
-
const
|
|
49677
|
-
!Ms(
|
|
49680
|
+
const K = Ys(M);
|
|
49681
|
+
!Ms(K) || Va(M, K) || M.windowManager.open({
|
|
49678
49682
|
title: "List Properties",
|
|
49679
49683
|
body: {
|
|
49680
49684
|
type: "panel",
|
|
@@ -49687,8 +49691,8 @@ Required: ` + _.join(", "));
|
|
|
49687
49691
|
},
|
|
49688
49692
|
initialData: {
|
|
49689
49693
|
start: Ni({
|
|
49690
|
-
start: M.dom.getAttrib(
|
|
49691
|
-
listStyleType: _e.from(M.dom.getStyle(
|
|
49694
|
+
start: M.dom.getAttrib(K, "start", "1"),
|
|
49695
|
+
listStyleType: _e.from(M.dom.getStyle(K, "list-style-type"))
|
|
49692
49696
|
})
|
|
49693
49697
|
},
|
|
49694
49698
|
buttons: [
|
|
@@ -49714,80 +49718,80 @@ Required: ` + _.join(", "));
|
|
|
49714
49718
|
}), ae.close();
|
|
49715
49719
|
}
|
|
49716
49720
|
});
|
|
49717
|
-
}, lu = (M,
|
|
49721
|
+
}, lu = (M, K) => () => {
|
|
49718
49722
|
const ae = Ys(M);
|
|
49719
|
-
return R(ae) && ae.nodeName ===
|
|
49723
|
+
return R(ae) && ae.nodeName === K;
|
|
49720
49724
|
}, xr = (M) => {
|
|
49721
49725
|
M.addCommand("mceListProps", () => {
|
|
49722
49726
|
Od(M);
|
|
49723
49727
|
});
|
|
49724
49728
|
}, cu = (M) => {
|
|
49725
|
-
M.on("BeforeExecCommand", (
|
|
49726
|
-
const ae =
|
|
49729
|
+
M.on("BeforeExecCommand", (K) => {
|
|
49730
|
+
const ae = K.command.toLowerCase();
|
|
49727
49731
|
ae === "indent" ? jl(M) : ae === "outdent" && ed(M);
|
|
49728
|
-
}), M.addCommand("InsertUnorderedList", (
|
|
49732
|
+
}), M.addCommand("InsertUnorderedList", (K, ae) => {
|
|
49729
49733
|
Ih(M, "UL", ae);
|
|
49730
|
-
}), M.addCommand("InsertOrderedList", (
|
|
49734
|
+
}), M.addCommand("InsertOrderedList", (K, ae) => {
|
|
49731
49735
|
Ih(M, "OL", ae);
|
|
49732
|
-
}), M.addCommand("InsertDefinitionList", (
|
|
49736
|
+
}), M.addCommand("InsertDefinitionList", (K, ae) => {
|
|
49733
49737
|
Ih(M, "DL", ae);
|
|
49734
49738
|
}), M.addCommand("RemoveList", () => {
|
|
49735
49739
|
Lg(M);
|
|
49736
|
-
}), xr(M), M.addCommand("mceListUpdate", (
|
|
49740
|
+
}), xr(M), M.addCommand("mceListUpdate", (K, ae) => {
|
|
49737
49741
|
p(ae) && Pl(M, ae);
|
|
49738
49742
|
}), M.addQueryStateHandler("InsertUnorderedList", lu(M, "UL")), M.addQueryStateHandler("InsertOrderedList", lu(M, "OL")), M.addQueryStateHandler("InsertDefinitionList", lu(M, "DL"));
|
|
49739
49743
|
};
|
|
49740
49744
|
var Zf = tinymce.util.Tools.resolve("tinymce.html.Node");
|
|
49741
49745
|
const nd = (M) => M.type === 3, Vr = (M) => M.length === 0, Rd = (M) => {
|
|
49742
|
-
const
|
|
49746
|
+
const K = (Ve, Ht) => {
|
|
49743
49747
|
const vo = Zf.create("li");
|
|
49744
49748
|
ye(Ve, (Lo) => vo.append(Lo)), Ht ? M.insert(vo, Ht, !0) : M.append(vo);
|
|
49745
49749
|
}, ae = (Ve, Ht) => nd(Ht) ? [
|
|
49746
49750
|
...Ve,
|
|
49747
49751
|
Ht
|
|
49748
|
-
] : !Vr(Ve) && !nd(Ht) ? (
|
|
49749
|
-
Vr(Ie) ||
|
|
49752
|
+
] : !Vr(Ve) && !nd(Ht) ? (K(Ve, Ht), []) : Ve, Ie = dt(M.children(), ae, []);
|
|
49753
|
+
Vr(Ie) || K(Ie);
|
|
49750
49754
|
}, wc = (M) => {
|
|
49751
49755
|
M.on("PreInit", () => {
|
|
49752
|
-
const { parser:
|
|
49753
|
-
|
|
49756
|
+
const { parser: K } = M;
|
|
49757
|
+
K.addNodeFilter("ul,ol", (ae) => ye(ae, Rd));
|
|
49754
49758
|
});
|
|
49755
49759
|
}, is = (M) => {
|
|
49756
|
-
M.on("keydown", (
|
|
49757
|
-
|
|
49758
|
-
(
|
|
49760
|
+
M.on("keydown", (K) => {
|
|
49761
|
+
K.keyCode !== $t.TAB || $t.metaKeyPressed(K) || M.undoManager.transact(() => {
|
|
49762
|
+
(K.shiftKey ? ed(M) : jl(M)) && K.preventDefault();
|
|
49759
49763
|
});
|
|
49760
49764
|
});
|
|
49761
49765
|
}, lf = (M) => {
|
|
49762
49766
|
vc(M) && is(M), Gf(M);
|
|
49763
|
-
}, Mh = (M,
|
|
49767
|
+
}, Mh = (M, K) => (ae) => {
|
|
49764
49768
|
const Ie = (Ve) => {
|
|
49765
|
-
ae.setActive(ki(Ve.parents,
|
|
49769
|
+
ae.setActive(ki(Ve.parents, K)), ae.setEnabled(!Va(M, Ve.element) && M.selection.isEditable());
|
|
49766
49770
|
};
|
|
49767
49771
|
return ae.setEnabled(M.selection.isEditable()), $r(M, Ie);
|
|
49768
49772
|
}, Dm = (M) => {
|
|
49769
|
-
const
|
|
49773
|
+
const K = (ae) => () => M.execCommand(ae);
|
|
49770
49774
|
M.hasPlugin("advlist") || (M.ui.registry.addToggleButton("numlist", {
|
|
49771
49775
|
icon: "ordered-list",
|
|
49772
49776
|
active: !1,
|
|
49773
49777
|
tooltip: "Numbered list",
|
|
49774
|
-
onAction:
|
|
49778
|
+
onAction: K("InsertOrderedList"),
|
|
49775
49779
|
onSetup: Mh(M, "OL")
|
|
49776
49780
|
}), M.ui.registry.addToggleButton("bullist", {
|
|
49777
49781
|
icon: "unordered-list",
|
|
49778
49782
|
active: !1,
|
|
49779
49783
|
tooltip: "Bullet list",
|
|
49780
|
-
onAction:
|
|
49784
|
+
onAction: K("InsertUnorderedList"),
|
|
49781
49785
|
onSetup: Mh(M, "UL")
|
|
49782
49786
|
}));
|
|
49783
|
-
}, ev = (M,
|
|
49784
|
-
const
|
|
49787
|
+
}, ev = (M, K) => (ae) => $r(M, (Ve) => ae.setEnabled(ki(Ve.parents, K) && !Va(M, Ve.element))), Om = (M) => {
|
|
49788
|
+
const K = {
|
|
49785
49789
|
text: "List properties...",
|
|
49786
49790
|
icon: "ordered-list",
|
|
49787
49791
|
onAction: () => M.execCommand("mceListProps"),
|
|
49788
49792
|
onSetup: ev(M, "OL")
|
|
49789
49793
|
};
|
|
49790
|
-
M.ui.registry.addMenuItem("listprops",
|
|
49794
|
+
M.ui.registry.addMenuItem("listprops", K), M.ui.registry.addContextMenu("lists", {
|
|
49791
49795
|
update: (ae) => {
|
|
49792
49796
|
const Ie = Ys(M, ae);
|
|
49793
49797
|
return Ms(Ie) ? ["listprops"] : [];
|
|
@@ -49900,13 +49904,13 @@ Required: ` + _.join(", "));
|
|
|
49900
49904
|
Oe = Kn;
|
|
49901
49905
|
}
|
|
49902
49906
|
};
|
|
49903
|
-
}, U = Object.keys,
|
|
49907
|
+
}, U = Object.keys, q = Object.hasOwnProperty, G = (Be, Oe) => {
|
|
49904
49908
|
const ht = U(Be);
|
|
49905
49909
|
for (let kt = 0, Kn = ht.length; kt < Kn; kt++) {
|
|
49906
49910
|
const io = ht[kt], Bo = Be[io];
|
|
49907
49911
|
Oe(Bo, io);
|
|
49908
49912
|
}
|
|
49909
|
-
}, le = (Be, Oe) => Z(Be, Oe) ? k.from(Be[Oe]) : k.none(), Z = (Be, Oe) =>
|
|
49913
|
+
}, le = (Be, Oe) => Z(Be, Oe) ? k.from(Be[Oe]) : k.none(), Z = (Be, Oe) => q.call(Be, Oe), Y = (Be) => (Oe) => Oe.options.get(Be), _e = (Be) => {
|
|
49910
49914
|
const Oe = Be.options.register;
|
|
49911
49915
|
Oe("audio_template_callback", { processor: "function" }), Oe("video_template_callback", { processor: "function" }), Oe("iframe_template_callback", { processor: "function" }), Oe("media_live_embeds", {
|
|
49912
49916
|
processor: "boolean",
|
|
@@ -50574,15 +50578,15 @@ Required: ` + _.join(", "));
|
|
|
50574
50578
|
var c = tinymce.util.Tools.resolve("tinymce.PluginManager"), r = tinymce.util.Tools.resolve("tinymce.Env"), a = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
50575
50579
|
const l = (z) => (U) => U.options.get(z), i = l("content_style"), f = l("content_css_cors"), p = l("body_class"), y = l("body_id"), S = (z) => {
|
|
50576
50580
|
var U;
|
|
50577
|
-
let
|
|
50581
|
+
let q = "";
|
|
50578
50582
|
const G = z.dom.encode, le = (U = i(z)) !== null && U !== void 0 ? U : "";
|
|
50579
|
-
|
|
50583
|
+
q += '<base href="' + G(z.documentBaseURI.getURI()) + '">';
|
|
50580
50584
|
const Z = f(z) ? ' crossorigin="anonymous"' : "";
|
|
50581
50585
|
a.each(z.contentCSS, (st) => {
|
|
50582
|
-
|
|
50583
|
-
}), le && (
|
|
50586
|
+
q += '<link type="text/css" rel="stylesheet" href="' + G(z.documentBaseURI.toAbsolute(st)) + '"' + Z + ">";
|
|
50587
|
+
}), le && (q += '<style type="text/css">' + le + "</style>");
|
|
50584
50588
|
const Y = y(z), _e = p(z), Pe = '<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A" && !(' + (r.os.isMacOS() || r.os.isiOS() ? "e.metaKey" : "e.ctrlKey && !e.altKey") + ")) {e.preventDefault();}}}, false);<\/script> ", J = z.getBody().dir, ke = J ? ' dir="' + G(J) + '"' : "";
|
|
50585
|
-
return "<!DOCTYPE html><html><head>" +
|
|
50589
|
+
return "<!DOCTYPE html><html><head>" + q + '</head><body id="' + G(Y) + '" class="mce-content-body ' + G(_e) + '"' + ke + ">" + z.getContent() + Pe + "</body></html>";
|
|
50586
50590
|
}, k = (z) => {
|
|
50587
50591
|
const U = S(z);
|
|
50588
50592
|
z.windowManager.open({
|
|
@@ -51300,7 +51304,7 @@ Required: ` + _.join(", "));
|
|
|
51300
51304
|
const F = typeof P;
|
|
51301
51305
|
return P === null ? "null" : F === "object" && Array.isArray(P) ? "array" : F === "object" && r(P, String, (re, ve) => ve.isPrototypeOf(re)) ? "string" : F;
|
|
51302
51306
|
}, l = (P) => (F) => a(F) === P, i = (P) => (F) => typeof F === P, f = (P) => (F) => P === F, p = l("string"), y = l("array"), S = i("boolean"), k = f(void 0), R = (P) => P == null, $ = (P) => !R(P), V = i("function"), z = i("number"), U = () => {
|
|
51303
|
-
},
|
|
51307
|
+
}, q = (P, F) => (re) => P(F(re)), G = (P) => () => P, le = (P) => P, Z = (P, F) => P === F;
|
|
51304
51308
|
function Y(P, ...F) {
|
|
51305
51309
|
return (...re) => {
|
|
51306
51310
|
const ve = F.concat(re);
|
|
@@ -51563,7 +51567,7 @@ Required: ` + _.join(", "));
|
|
|
51563
51567
|
if (F == null || F.ownerDocument === null)
|
|
51564
51568
|
return !1;
|
|
51565
51569
|
const re = F.ownerDocument;
|
|
51566
|
-
return Be(Go.fromDom(F)).fold(() => re.body.contains(F),
|
|
51570
|
+
return Be(Go.fromDom(F)).fold(() => re.body.contains(F), q(ht, Oe));
|
|
51567
51571
|
};
|
|
51568
51572
|
var kt = (P, F, re, ve, ze) => P(re, ve) ? J.some(re) : V(ze) && ze(re) ? J.none() : F(re, ve, ze);
|
|
51569
51573
|
const Kn = (P, F, re) => {
|
|
@@ -52360,14 +52364,14 @@ Required: ` + _.join(", "));
|
|
|
52360
52364
|
$n === "" ? P.formatter.remove(cn, { value: null }, F, !0) : P.formatter.apply(cn, { value: $n }, F);
|
|
52361
52365
|
}
|
|
52362
52366
|
};
|
|
52363
|
-
} },
|
|
52367
|
+
} }, K = Mi("th"), ae = (P, F) => P && F ? "sectionCells" : P ? "section" : "cells", Ie = (P) => {
|
|
52364
52368
|
const F = P.section === "thead", re = Vc(Ve(P.cells), "th");
|
|
52365
52369
|
return P.section === "tfoot" ? { type: "footer" } : F || re ? {
|
|
52366
52370
|
type: "header",
|
|
52367
52371
|
subType: ae(F, re)
|
|
52368
52372
|
} : { type: "body" };
|
|
52369
52373
|
}, Ve = (P) => {
|
|
52370
|
-
const F = Do(P, (re) =>
|
|
52374
|
+
const F = Do(P, (re) => K(re.element));
|
|
52371
52375
|
return F.length === 0 ? J.some("td") : F.length === P.length ? J.some("th") : J.none();
|
|
52372
52376
|
}, Ht = (P) => {
|
|
52373
52377
|
const F = ft(P, (ze) => Ie(ze).type), re = gt(F, "header"), ve = gt(F, "footer");
|
|
@@ -53513,7 +53517,7 @@ Required: ` + F.join(", "));
|
|
|
53513
53517
|
}
|
|
53514
53518
|
}
|
|
53515
53519
|
return Yt;
|
|
53516
|
-
},
|
|
53520
|
+
}, q = (St) => {
|
|
53517
53521
|
const Yt = {};
|
|
53518
53522
|
return (Dt) => {
|
|
53519
53523
|
if (Yt[Dt])
|
|
@@ -53524,7 +53528,7 @@ Required: ` + F.join(", "));
|
|
|
53524
53528
|
}
|
|
53525
53529
|
};
|
|
53526
53530
|
}, G = (St) => {
|
|
53527
|
-
const Yt =
|
|
53531
|
+
const Yt = q(U);
|
|
53528
53532
|
return i(St, Yt);
|
|
53529
53533
|
}, le = (St, Yt) => {
|
|
53530
53534
|
const Dt = St[Yt], je = St[Yt + 1];
|
|
@@ -53709,7 +53713,7 @@ Required: ` + F.join(", "));
|
|
|
53709
53713
|
}, a = (t) => {
|
|
53710
53714
|
const s = typeof t;
|
|
53711
53715
|
return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" && r(t, String, (d, m) => m.isPrototypeOf(d)) ? "string" : s;
|
|
53712
|
-
}, l = (t) => (s) => a(s) === t, i = (t) => (s) => typeof s === t, f = (t) => (s) => t === s, p = (t, s) => S(t) && r(t, s, (d, m) => c(d) === m), y = l("string"), S = l("object"), k = (t) => p(t, Object), R = l("array"), $ = f(null), V = i("boolean"), z = f(void 0), U = (t) => t == null,
|
|
53716
|
+
}, l = (t) => (s) => a(s) === t, i = (t) => (s) => typeof s === t, f = (t) => (s) => t === s, p = (t, s) => S(t) && r(t, s, (d, m) => c(d) === m), y = l("string"), S = l("object"), k = (t) => p(t, Object), R = l("array"), $ = f(null), V = i("boolean"), z = f(void 0), U = (t) => t == null, q = (t) => !U(t), G = i("function"), le = i("number"), Z = (t, s) => {
|
|
53713
53717
|
if (R(t)) {
|
|
53714
53718
|
for (let d = 0, m = t.length; d < m; ++d)
|
|
53715
53719
|
if (!s(t[d]))
|
|
@@ -53780,7 +53784,7 @@ Required: ` + F.join(", "));
|
|
|
53780
53784
|
throw new Error(s ?? "Called getOrDie on None");
|
|
53781
53785
|
}
|
|
53782
53786
|
static from(s) {
|
|
53783
|
-
return
|
|
53787
|
+
return q(s) ? N.some(s) : N.none();
|
|
53784
53788
|
}
|
|
53785
53789
|
getOrNull() {
|
|
53786
53790
|
return this.tag ? this.value : null;
|
|
@@ -54057,11 +54061,11 @@ Required: ` + F.join(", "));
|
|
|
54057
54061
|
}), xd = (t, s) => {
|
|
54058
54062
|
const d = oa(t);
|
|
54059
54063
|
return d.length > 0 && s < d.length ? Uc(d[s], 0) : Uc(t, s);
|
|
54060
|
-
}, Ou = (t) => na(t) &&
|
|
54064
|
+
}, Ou = (t) => na(t) && q(t.dom.host), Ha = G(Element.prototype.attachShadow) && G(Node.prototype.getRootNode), Ju = J(Ha), ue = Ha ? (t) => Ue.fromDom(t.dom.getRootNode()) : di, Re = (t) => Ou(t) ? t : Ue.fromDom(di(t).dom.body), Qe = (t) => Mt(t).isSome(), Mt = (t) => {
|
|
54061
54065
|
const s = ue(t);
|
|
54062
54066
|
return Ou(s) ? N.some(s) : N.none();
|
|
54063
54067
|
}, tn = (t) => Ue.fromDom(t.dom.host), Wn = (t) => {
|
|
54064
|
-
if (Ju() &&
|
|
54068
|
+
if (Ju() && q(t.target)) {
|
|
54065
54069
|
const s = Ue.fromDom(t.target);
|
|
54066
54070
|
if (xo(s) && ss(s) && t.composed && t.composedPath) {
|
|
54067
54071
|
const d = t.composedPath();
|
|
@@ -54070,7 +54074,7 @@ Required: ` + F.join(", "));
|
|
|
54070
54074
|
}
|
|
54071
54075
|
}
|
|
54072
54076
|
return N.from(t.target);
|
|
54073
|
-
}, ss = (t) =>
|
|
54077
|
+
}, ss = (t) => q(t.dom.shadowRoot), fs = (t) => {
|
|
54074
54078
|
const s = Ko(t) ? t.dom.parentNode : t.dom;
|
|
54075
54079
|
if (s == null || s.ownerDocument === null)
|
|
54076
54080
|
return !1;
|
|
@@ -54779,7 +54783,7 @@ Required: ` + F.join(", "));
|
|
|
54779
54783
|
}, _a = (t) => ({
|
|
54780
54784
|
extract: (m, b) => t().extract(m, b),
|
|
54781
54785
|
toString: () => t().toString()
|
|
54782
|
-
}), A1 = (t) => qs(Ta(t,
|
|
54786
|
+
}), A1 = (t) => qs(Ta(t, q)), nl = (t) => {
|
|
54783
54787
|
const s = _o(t), d = Do(t, (b, w) => xr(w, (x) => Vr(b, { [x]: !0 }), J(b)), {});
|
|
54784
54788
|
return {
|
|
54785
54789
|
extract: (b, w) => {
|
|
@@ -55921,7 +55925,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ke(s, (d) => d.name),
|
|
|
55921
55925
|
const s = nn(t, "behaviours").getOr({});
|
|
55922
55926
|
return je(qs(s), (d) => {
|
|
55923
55927
|
const m = s[d];
|
|
55924
|
-
return
|
|
55928
|
+
return q(m) ? [m.me] : [];
|
|
55925
55929
|
});
|
|
55926
55930
|
}, QS = (t, s) => h4(t, s), C4 = (t) => {
|
|
55927
55931
|
const s = _4(t);
|
|
@@ -56959,7 +56963,7 @@ Receiver: ` + vu(s.element), H, w.data);
|
|
|
56959
56963
|
return mu({
|
|
56960
56964
|
readState: () => t,
|
|
56961
56965
|
clear: (b) => {
|
|
56962
|
-
|
|
56966
|
+
q(b) ? delete t[b] : t = {};
|
|
56963
56967
|
},
|
|
56964
56968
|
set: (b, w) => {
|
|
56965
56969
|
t[b] = w;
|
|
@@ -59204,7 +59208,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
59204
59208
|
if (d.length > 0)
|
|
59205
59209
|
return ar(Wo(), d);
|
|
59206
59210
|
const m = ez(t);
|
|
59207
|
-
return
|
|
59211
|
+
return q(m) ? N.some(Ue.fromDom(m)) : N.none();
|
|
59208
59212
|
}, a2 = (t) => t.inline && wI(t).isSome(), Ew = (t) => wI(t).getOrThunk(() => Re(ue(Ue.fromDom(t.getElement())))), $6 = (t) => t.inline && !B6(t) && !F6(t) && !O0(t), l2 = (t) => (t.options.get("toolbar_sticky") || t.inline) && !a2(t) && !$6(t), Qv = (t) => !a2(t) && t.options.get("ui_mode") === "split", g5 = (t) => {
|
|
59209
59213
|
const s = t.options.get("menu");
|
|
59210
59214
|
return Is(s, (d) => ({
|
|
@@ -61703,7 +61707,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
61703
61707
|
"tox-swatch--remove"
|
|
61704
61708
|
],
|
|
61705
61709
|
innerHtml: W
|
|
61706
|
-
} :
|
|
61710
|
+
} : q(w) ? {
|
|
61707
61711
|
...te,
|
|
61708
61712
|
attributes: {
|
|
61709
61713
|
...te.attributes,
|
|
@@ -62014,7 +62018,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
62014
62018
|
const s = `tinymce-custom-colors-${t}`, d = z0.getItem(s);
|
|
62015
62019
|
if (U(d)) {
|
|
62016
62020
|
const b = z0.getItem("tinymce-custom-colors");
|
|
62017
|
-
z0.setItem(s,
|
|
62021
|
+
z0.setItem(s, q(b) ? b : "[]");
|
|
62018
62022
|
}
|
|
62019
62023
|
const m = CV(s, 10);
|
|
62020
62024
|
return zP[t] = m, m;
|
|
@@ -65094,14 +65098,14 @@ The conflicting element is` + (fs(te.element) ? " " : " not ") + "already in the
|
|
|
65094
65098
|
"." + u8
|
|
65095
65099
|
].join(","), pn), d3 = On("update-dialog"), E9 = On("update-title"), A9 = On("update-body"), k9 = On("update-footer"), T9 = On("body-send-message"), f3 = On("dialog-focus-shifted"), f8 = ac().browser, R2 = f8.isSafari(), BW = f8.isFirefox(), D9 = R2 || BW, LW = f8.isChromium(), FW = ({ scrollTop: t, scrollHeight: s, clientHeight: d }) => Math.ceil(t) + d >= s, O9 = (t, s) => t.scrollTo(0, s === "bottom" ? 99999999 : s), $W = (t, s) => {
|
|
65096
65100
|
const d = t.body;
|
|
65097
|
-
return N.from(!/^<!DOCTYPE (html|HTML)/.test(s) && (!LW && !R2 ||
|
|
65101
|
+
return N.from(!/^<!DOCTYPE (html|HTML)/.test(s) && (!LW && !R2 || q(d) && (d.scrollTop !== 0 || Math.abs(d.scrollHeight - d.clientHeight) > 1)) ? d : t.documentElement);
|
|
65098
65102
|
}, R9 = (t, s, d) => {
|
|
65099
65103
|
const m = t.dom;
|
|
65100
65104
|
N.from(m.contentDocument).fold(d, (b) => {
|
|
65101
65105
|
let w = 0;
|
|
65102
65106
|
const x = $W(b, s).map((I) => (w = I.scrollTop, I)).forall(FW), D = () => {
|
|
65103
65107
|
const I = m.contentWindow;
|
|
65104
|
-
|
|
65108
|
+
q(I) && (x ? O9(I, "bottom") : !x && D9 && w !== 0 && O9(I, w));
|
|
65105
65109
|
};
|
|
65106
65110
|
R2 && m.addEventListener("load", D, { once: !0 }), b.open(), b.write(s), b.close(), R2 || D();
|
|
65107
65111
|
});
|
|
@@ -65329,7 +65333,7 @@ The conflicting element is` + (fs(te.element) ? " " : " not ") + "already in the
|
|
|
65329
65333
|
].concat(Ke(t.classes, (Ee) => `${s}--${Ee}`)),
|
|
65330
65334
|
attributes: {
|
|
65331
65335
|
...W,
|
|
65332
|
-
...
|
|
65336
|
+
...q(m) ? { "data-mce-name": m } : {}
|
|
65333
65337
|
}
|
|
65334
65338
|
},
|
|
65335
65339
|
components: L0([
|
|
@@ -66923,7 +66927,7 @@ The conflicting element is` + (fs(te.element) ? " " : " not ") + "already in the
|
|
|
66923
66927
|
],
|
|
66924
66928
|
attributes: {
|
|
66925
66929
|
...H,
|
|
66926
|
-
...
|
|
66930
|
+
...q(d) ? { "data-mce-name": d } : {}
|
|
66927
66931
|
}
|
|
66928
66932
|
}, ce = [], he = s.translate(t.text.getOr("")), Ee = Vi(he), Me = [
|
|
66929
66933
|
...L0([w.map((Je) => Je.asSpec())]),
|
|
@@ -67791,7 +67795,7 @@ The conflicting element is` + (fs(te.element) ? " " : " not ") + "already in the
|
|
|
67791
67795
|
}),
|
|
67792
67796
|
getComponents: w
|
|
67793
67797
|
};
|
|
67794
|
-
}, aG = (t) =>
|
|
67798
|
+
}, aG = (t) => q(t) && t.nodeType === 1, z8 = Ch.trim, N2 = (t) => (s) => !!(aG(s) && (s.contentEditable === t || s.getAttribute("data-mce-contenteditable") === t)), BN = N2("true"), lG = N2("false"), V8 = (t, s, d, m, b) => ({
|
|
67795
67799
|
type: t,
|
|
67796
67800
|
title: s,
|
|
67797
67801
|
url: d,
|
|
@@ -70261,7 +70265,7 @@ The conflicting element is` + (fs(te.element) ? " " : " not ") + "already in the
|
|
|
70261
70265
|
dom: {
|
|
70262
70266
|
tag: "div",
|
|
70263
70267
|
classes: ["tox-number-input"],
|
|
70264
|
-
attributes: { ...
|
|
70268
|
+
attributes: { ...q(m) ? { "data-mce-name": m } : {} }
|
|
70265
70269
|
},
|
|
70266
70270
|
components: [
|
|
70267
70271
|
it.asSpec(),
|
|
@@ -70607,7 +70611,7 @@ The conflicting element is` + (fs(te.element) ? " " : " not ") + "already in the
|
|
|
70607
70611
|
classes: ["tox-tbtn"].concat(s.isSome() ? ["tox-tbtn--select"] : []),
|
|
70608
70612
|
attributes: {
|
|
70609
70613
|
...dL(d, b),
|
|
70610
|
-
...
|
|
70614
|
+
...q(w) ? { "data-mce-name": w } : {}
|
|
70611
70615
|
}
|
|
70612
70616
|
},
|
|
70613
70617
|
components: L0([
|
|
@@ -70752,7 +70756,7 @@ The conflicting element is` + (fs(te.element) ? " " : " not ") + "already in the
|
|
|
70752
70756
|
attributes: {
|
|
70753
70757
|
"aria-pressed": !1,
|
|
70754
70758
|
...dL(t.tooltip, s.providers),
|
|
70755
|
-
...
|
|
70759
|
+
...q(d) ? { "data-mce-name": d } : {}
|
|
70756
70760
|
}
|
|
70757
70761
|
},
|
|
70758
70762
|
onExecute: (D) => {
|
|
@@ -73504,7 +73508,7 @@ The conflicting element is` + (fs(te.element) ? " " : " not ") + "already in the
|
|
|
73504
73508
|
um.config({ getRoot: b.get }),
|
|
73505
73509
|
Zo(te, [ai((he) => {
|
|
73506
73510
|
const Ee = Ic(he, t, "title").element, it = dY(Ee);
|
|
73507
|
-
ce.os.isMacOS() &&
|
|
73511
|
+
ce.os.isMacOS() && q(it) ? ln(he.element, "aria-label", it) : mF(he.element, Ee);
|
|
73508
73512
|
})])
|
|
73509
73513
|
])
|
|
73510
73514
|
};
|
|
@@ -75017,7 +75021,7 @@ The conflicting element is` + (fs(te.element) ? " " : " not ") + "already in the
|
|
|
75017
75021
|
onReceive: (Je, Ft) => {
|
|
75018
75022
|
ar(Je.element, "iframe").each((Ct) => {
|
|
75019
75023
|
const rn = Ct.dom.contentWindow;
|
|
75020
|
-
|
|
75024
|
+
q(rn) && rn.postMessage(Ft, ie);
|
|
75021
75025
|
});
|
|
75022
75026
|
}
|
|
75023
75027
|
}
|
|
@@ -75420,8 +75424,8 @@ const mwe = { class: "editor" }, gwe = /* @__PURE__ */ fo({
|
|
|
75420
75424
|
// 图片上传
|
|
75421
75425
|
images_upload_handler: (k, R, $, V) => new Promise((z, U) => {
|
|
75422
75426
|
if (a.callback) {
|
|
75423
|
-
a.callback(k, V).then((
|
|
75424
|
-
z(
|
|
75427
|
+
a.callback(k, V).then((q) => {
|
|
75428
|
+
z(q);
|
|
75425
75429
|
});
|
|
75426
75430
|
return;
|
|
75427
75431
|
}
|
|
@@ -75432,15 +75436,15 @@ const mwe = { class: "editor" }, gwe = /* @__PURE__ */ fo({
|
|
|
75432
75436
|
U(new Error("请传入uploadUrl"));
|
|
75433
75437
|
return;
|
|
75434
75438
|
}
|
|
75435
|
-
const
|
|
75436
|
-
|
|
75439
|
+
const q = new FormData();
|
|
75440
|
+
q.append("file", k.blob());
|
|
75437
75441
|
const G = {
|
|
75438
75442
|
headers: {
|
|
75439
75443
|
"Content-Type": "multipart/form-data",
|
|
75440
75444
|
...a.header
|
|
75441
75445
|
}
|
|
75442
75446
|
};
|
|
75443
|
-
kQ.post(a.uploadUrl,
|
|
75447
|
+
kQ.post(a.uploadUrl, q, G).then((le) => {
|
|
75444
75448
|
le.data.code === 0 ? z(a.loadUrl + le.data.data.id) : U(new Error(`HTTP Error: 上传失败${le.data.code}`));
|
|
75445
75449
|
}).catch(() => {
|
|
75446
75450
|
U(new Error("上传出错,服务器开小差了呢"));
|
|
@@ -76371,7 +76375,7 @@ const Qwe = {
|
|
|
76371
76375
|
name: "original",
|
|
76372
76376
|
icon: Kee(Ile)
|
|
76373
76377
|
}
|
|
76374
|
-
}, f = c, p = a, { t: y } = Gie(), S = hoe("image-viewer"), { nextZIndex: k } = Zie(), R = Tn(), $ = Tn([]), V = Lie(), z = Tn(!0), U = Tn(f.initialIndex),
|
|
76378
|
+
}, f = c, p = a, { t: y } = Gie(), S = hoe("image-viewer"), { nextZIndex: k } = Zie(), R = Tn(), $ = Tn([]), V = Lie(), z = Tn(!0), U = Tn(f.initialIndex), q = Fie(i.CONTAIN), G = Tn({
|
|
76375
76379
|
scale: 1,
|
|
76376
76380
|
deg: 0,
|
|
76377
76381
|
offsetX: 0,
|
|
@@ -76397,7 +76401,7 @@ const Qwe = {
|
|
|
76397
76401
|
transform: `scale(${Ye}) rotate(${vt}deg) translate(${Ke}px, ${ft}px)`,
|
|
76398
76402
|
transition: Wt ? "transform .3s" : ""
|
|
76399
76403
|
};
|
|
76400
|
-
return
|
|
76404
|
+
return q.value.name === i.CONTAIN.name && (Do.maxWidth = Do.maxHeight = "100%"), Do;
|
|
76401
76405
|
});
|
|
76402
76406
|
function ot() {
|
|
76403
76407
|
qe(), p("close");
|
|
@@ -76471,8 +76475,8 @@ const Qwe = {
|
|
|
76471
76475
|
function N() {
|
|
76472
76476
|
if (z.value)
|
|
76473
76477
|
return;
|
|
76474
|
-
const Ye = l(i), vt = Object.values(i), Bn =
|
|
76475
|
-
|
|
76478
|
+
const Ye = l(i), vt = Object.values(i), Bn = q.value.name, Wt = ((vt == null ? void 0 : vt.findIndex((Ke) => Ke.name === Bn)) + 1) % Ye.length;
|
|
76479
|
+
q.value = i[Ye[Wt]], dt();
|
|
76476
76480
|
}
|
|
76477
76481
|
function qt(Ye) {
|
|
76478
76482
|
const vt = f.urlList.length;
|
|
@@ -76660,7 +76664,7 @@ const Qwe = {
|
|
|
76660
76664
|
),
|
|
76661
76665
|
Ze(Ge(dl), { onClick: N }, {
|
|
76662
76666
|
default: Rt(() => [
|
|
76663
|
-
(pe(), Nn($ie(
|
|
76667
|
+
(pe(), Nn($ie(q.value.icon)))
|
|
76664
76668
|
]),
|
|
76665
76669
|
_: 1
|
|
76666
76670
|
/* STABLE */
|
|
@@ -76990,10 +76994,10 @@ var $re = { exports: {} };
|
|
|
76990
76994
|
var R = a ? a + k : k, $ = this._events[R];
|
|
76991
76995
|
return $ ? $.fn ? 1 : $.length : 0;
|
|
76992
76996
|
}, y.prototype.emit = function(k, R, $, V, z, U) {
|
|
76993
|
-
var
|
|
76994
|
-
if (!this._events[
|
|
76997
|
+
var q = a ? a + k : k;
|
|
76998
|
+
if (!this._events[q])
|
|
76995
76999
|
return !1;
|
|
76996
|
-
var G = this._events[
|
|
77000
|
+
var G = this._events[q], le = arguments.length, Z, Y;
|
|
76997
77001
|
if (G.fn) {
|
|
76998
77002
|
switch (G.once && this.removeListener(k, G.fn, void 0, !0), le) {
|
|
76999
77003
|
case 1:
|
|
@@ -77050,8 +77054,8 @@ var $re = { exports: {} };
|
|
|
77050
77054
|
if (U.fn)
|
|
77051
77055
|
U.fn === R && (!V || U.once) && (!$ || U.context === $) && p(this, z);
|
|
77052
77056
|
else {
|
|
77053
|
-
for (var
|
|
77054
|
-
(U[
|
|
77057
|
+
for (var q = 0, G = [], le = U.length; q < le; q++)
|
|
77058
|
+
(U[q].fn !== R || V && !U[q].once || $ && U[q].context !== $) && G.push(U[q]);
|
|
77055
77059
|
G.length ? this._events[z] = G.length === 1 ? G[0] : G : p(this, z);
|
|
77056
77060
|
}
|
|
77057
77061
|
return this;
|
|
@@ -77550,7 +77554,7 @@ function m3e(c, r, a) {
|
|
|
77550
77554
|
var qe = l, ye = i;
|
|
77551
77555
|
return l = i = void 0, k = st, p = c.apply(ye, qe), p;
|
|
77552
77556
|
}
|
|
77553
|
-
function
|
|
77557
|
+
function q(st, qe) {
|
|
77554
77558
|
return z ? (window.cancelAnimationFrame(y), window.requestAnimationFrame(st)) : setTimeout(st, qe);
|
|
77555
77559
|
}
|
|
77556
77560
|
function G(st) {
|
|
@@ -77559,7 +77563,7 @@ function m3e(c, r, a) {
|
|
|
77559
77563
|
clearTimeout(st);
|
|
77560
77564
|
}
|
|
77561
77565
|
function le(st) {
|
|
77562
|
-
return k = st, y =
|
|
77566
|
+
return k = st, y = q(_e, r), R ? U(st) : p;
|
|
77563
77567
|
}
|
|
77564
77568
|
function Z(st) {
|
|
77565
77569
|
var qe = st - S, ye = st - k, In = r - qe;
|
|
@@ -77573,7 +77577,7 @@ function m3e(c, r, a) {
|
|
|
77573
77577
|
var st = Date.now();
|
|
77574
77578
|
if (Y(st))
|
|
77575
77579
|
return at(st);
|
|
77576
|
-
y =
|
|
77580
|
+
y = q(_e, Z(st));
|
|
77577
77581
|
}
|
|
77578
77582
|
function at(st) {
|
|
77579
77583
|
return y = void 0, V && l ? U(st) : (l = i = void 0, p);
|
|
@@ -77594,9 +77598,9 @@ function m3e(c, r, a) {
|
|
|
77594
77598
|
if (y === void 0)
|
|
77595
77599
|
return le(S);
|
|
77596
77600
|
if ($)
|
|
77597
|
-
return y =
|
|
77601
|
+
return y = q(_e, r), U(S);
|
|
77598
77602
|
}
|
|
77599
|
-
return y === void 0 && (y =
|
|
77603
|
+
return y === void 0 && (y = q(_e, r)), p;
|
|
77600
77604
|
}
|
|
77601
77605
|
return ot.cancel = Pe, ot.flush = J, ot.pending = ke, ot;
|
|
77602
77606
|
}
|
|
@@ -77773,12 +77777,12 @@ var Rne = {
|
|
|
77773
77777
|
U[Z] = a.ext[Z];
|
|
77774
77778
|
}), U;
|
|
77775
77779
|
} else if (arguments.length > 1) {
|
|
77776
|
-
for (var
|
|
77780
|
+
for (var q = {
|
|
77777
77781
|
playerVersion: bQ,
|
|
77778
77782
|
domain: document.domain
|
|
77779
77783
|
}, G = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], le = 0; le < arguments.length; le++)
|
|
77780
|
-
|
|
77781
|
-
return
|
|
77784
|
+
q[G[le]] = arguments[le];
|
|
77785
|
+
return q.ex = l ? (l[arguments[0]] || {}).msg : "", q;
|
|
77782
77786
|
}
|
|
77783
77787
|
}
|
|
77784
77788
|
), bm = "play", yJ = "playing", bS = "ended", Gk = "pause", NR = "error", W$ = "seeking", Cb = "seeked", vm = "timeupdate", BR = "waiting", yb = "canplay", y3e = "canplaythrough", p_ = "durationchange", Ure = "volumechange", xb = "loadeddata", _3e = "loadedmetadata", Wre = "ratechange", jre = "progress", _J = "loadstart", yS = "emptied", C3e = "stalled", w3e = "suspend", S3e = "abort", x3e = "bufferedChange", CJ = "focus", Gre = "blur", wJ = "ready", Zre = "urlNull", cS = "autoplay_started", SJ = "autoplay_was_prevented", j$ = "complete", w$ = "replay", xJ = "destroy", G$ = "urlchange", yQ = "download_speed_change", qre = "leaveplayer", Kre = "enterplayer", Yre = "loading", pb = "fullscreen_change", S$ = "cssFullscreen_change", x$ = "mini_state_change", EJ = "definition_change", E3e = "before_definition_change", _Q = "after_definition_change", A3e = "SEI_PARSED", k3e = "retry", h_ = "video_resize", CQ = "pip_change", Xre = "rotate", Qre = "screenShot", E$ = "playnext", Jre = "shortcut", eie = "xglog", A$ = "user_action", Z$ = "reset", tie = "source_error", nie = "source_success", T3e = "switch_subtitle", oie = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], sie = {
|
|
@@ -79448,8 +79452,8 @@ var q3e = function(r, a) {
|
|
|
79448
79452
|
r.config.plugins || (r.config.plugins = []), r.config.ignores || (r.config.ignores = []), (l = r.config.plugins).push.apply(l, Gp(S)), (i = r.config.ignores).push.apply(i, Gp(R)), Object.keys(V).map(function(G) {
|
|
79449
79453
|
r.config.icons[G] || (r.config.icons[G] = V[G]);
|
|
79450
79454
|
});
|
|
79451
|
-
var
|
|
79452
|
-
U.push.apply(U, Gp(
|
|
79455
|
+
var q = r.config.i18n || [];
|
|
79456
|
+
U.push.apply(U, Gp(q)), r.config.i18n = U;
|
|
79453
79457
|
}, K3e = /* @__PURE__ */ function(c) {
|
|
79454
79458
|
hr(a, c);
|
|
79455
79459
|
var r = mr(a);
|
|
@@ -79868,10 +79872,10 @@ var eSe = ["play", "pause", "replay", "retry"], Wne = 0, jne = 0, e_ = null, q$
|
|
|
79868
79872
|
var f = Ce.deepMerge(Vne(), l);
|
|
79869
79873
|
i = r.call(this, f), En(en(i), "canPlayFunc", function() {
|
|
79870
79874
|
if (i.config) {
|
|
79871
|
-
var U = i.config,
|
|
79872
|
-
Ri.logInfo("player", "canPlayFunc, startTime", i.__startTime), i.__startTime > 0 && i.duration > 0 && (i.currentTime = i.__startTime > i.duration ? i.duration : i.__startTime, i.__startTime = -1), i.playbackRate = G, (
|
|
79875
|
+
var U = i.config, q = U.autoplay, G = U.defaultPlaybackRate;
|
|
79876
|
+
Ri.logInfo("player", "canPlayFunc, startTime", i.__startTime), i.__startTime > 0 && i.duration > 0 && (i.currentTime = i.__startTime > i.duration ? i.duration : i.__startTime, i.__startTime = -1), i.playbackRate = G, (q || i._useAutoplay) && i.mediaPlay(), i.off(yb, i.canPlayFunc), i.removeClass(ho.ENTER);
|
|
79873
79877
|
}
|
|
79874
|
-
}), En(en(i), "onFullscreenChange", function(U,
|
|
79878
|
+
}), En(en(i), "onFullscreenChange", function(U, q) {
|
|
79875
79879
|
var G = function() {
|
|
79876
79880
|
Ce.setTimeout(en(i), function() {
|
|
79877
79881
|
i.resize();
|
|
@@ -79890,7 +79894,7 @@ var eSe = ["play", "pause", "replay", "retry"], Wne = 0, jne = 0, e_ = null, q$
|
|
|
79890
79894
|
}]
|
|
79891
79895
|
});
|
|
79892
79896
|
var Z = v3e(le, i.playerId, tS);
|
|
79893
|
-
if (
|
|
79897
|
+
if (q || le && (le === i._fullscreenEl || Z))
|
|
79894
79898
|
G(), !i.config.closeFocusVideoFocus && i.media.focus(), i.fullscreen = !0, i.changeFullStyle(i.root, le, ho.FULLSCREEN), i.emit(pb, !0, i._fullScreenOffset), i.cssfullscreen && i.exitCssFullscreen();
|
|
79895
79899
|
else if (i.fullscreen) {
|
|
79896
79900
|
G();
|
|
@@ -79987,13 +79991,13 @@ var eSe = ["play", "pause", "replay", "retry"], Wne = 0, jne = 0, e_ = null, q$
|
|
|
79987
79991
|
}
|
|
79988
79992
|
var z = this.config.isMobileSimulateMode === "mobile" ? "mobile" : ci.device;
|
|
79989
79993
|
if (this.addClass("".concat(ho.DEFAULT, " ").concat(ho.INACTIVE, " xgplayer-").concat(z, " ").concat(this.config.controls ? "" : ho.NO_CONTROLS)), this.config.autoplay ? this.addClass(ho.ENTER) : this.addClass(ho.NO_START), this.config.fluid) {
|
|
79990
|
-
var U = this.config,
|
|
79991
|
-
(typeof
|
|
79994
|
+
var U = this.config, q = U.width, G = U.height;
|
|
79995
|
+
(typeof q != "number" || typeof G != "number") && (q = 600, G = 337.5);
|
|
79992
79996
|
var le = {
|
|
79993
79997
|
width: "100%",
|
|
79994
79998
|
height: "0",
|
|
79995
79999
|
"max-width": "100%",
|
|
79996
|
-
"padding-top": "".concat(G * 100 /
|
|
80000
|
+
"padding-top": "".concat(G * 100 / q, "%")
|
|
79997
80001
|
};
|
|
79998
80002
|
Object.keys(le).forEach(function(J) {
|
|
79999
80003
|
f.root.style[J] = le[J];
|
|
@@ -80206,8 +80210,8 @@ var eSe = ["play", "pause", "replay", "retry"], Wne = 0, jne = 0, e_ = null, q$
|
|
|
80206
80210
|
this.__startTime = S;
|
|
80207
80211
|
var k = this.paused && !this.isError;
|
|
80208
80212
|
return this.src = y, new Promise(function(R, $) {
|
|
80209
|
-
var V = function(
|
|
80210
|
-
p.off("timeupdate", z), p.off("canplay", z), $(
|
|
80213
|
+
var V = function(q) {
|
|
80214
|
+
p.off("timeupdate", z), p.off("canplay", z), $(q);
|
|
80211
80215
|
}, z = function() {
|
|
80212
80216
|
p.duration > 0 && p.__startTime > 0 && (p.currentTime = p.__startTime, p.__startTime = -1), k && p.pause(), p.off("error", V), R(!0);
|
|
80213
80217
|
};
|
|
@@ -80340,8 +80344,8 @@ var eSe = ["play", "pause", "replay", "retry"], Wne = 0, jne = 0, e_ = null, q$
|
|
|
80340
80344
|
key: "resetState",
|
|
80341
80345
|
value: function() {
|
|
80342
80346
|
var i = this, f = ho.NOT_ALLOW_AUTOPLAY, p = ho.PLAYING, y = ho.NO_START, S = ho.PAUSED, k = ho.REPLAY, R = ho.ENTER, $ = ho.ENDED, V = ho.ERROR, z = ho.LOADING, U = [f, p, y, S, k, R, $, V, z];
|
|
80343
|
-
this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0, U.forEach(function(
|
|
80344
|
-
i.removeClass(
|
|
80347
|
+
this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0, U.forEach(function(q) {
|
|
80348
|
+
i.removeClass(q);
|
|
80345
80349
|
}), this.addClass(ho.NO_START), this.emit(Z$);
|
|
80346
80350
|
}
|
|
80347
80351
|
}, {
|
|
@@ -80686,13 +80690,13 @@ var eSe = ["play", "pause", "replay", "retry"], Wne = 0, jne = 0, e_ = null, q$
|
|
|
80686
80690
|
this.videoPos.pi = R, k = k < 0 ? 0 : k;
|
|
80687
80691
|
var $ = {
|
|
80688
80692
|
rotate: k
|
|
80689
|
-
}, V = 0, z = 0, U = 1,
|
|
80690
|
-
if (
|
|
80691
|
-
U = y > 0 ? 100 / y : S > 0 ? 100 / S : 1, $.scale = U, V = f > 0 ? (100 - y) / 2 - f : 0, $.y =
|
|
80692
|
-
else if (
|
|
80693
|
+
}, V = 0, z = 0, U = 1, q = Math.abs(k / 90), G = this.root, le = this.innerContainer, Z = G.offsetWidth, Y = le ? le.offsetHeight : G.offsetHeight, _e = Y, at = Z;
|
|
80694
|
+
if (q % 2 === 0)
|
|
80695
|
+
U = y > 0 ? 100 / y : S > 0 ? 100 / S : 1, $.scale = U, V = f > 0 ? (100 - y) / 2 - f : 0, $.y = q === 2 ? 0 - V : V, z = p > 0 ? (100 - S) / 2 - p : 0, $.x = q === 2 ? 0 - z : z, this.media.style.width = "".concat(at, "px"), this.media.style.height = "".concat(_e, "px");
|
|
80696
|
+
else if (q % 2 === 1) {
|
|
80693
80697
|
at = Y, _e = Z;
|
|
80694
80698
|
var Pe = Y - Z;
|
|
80695
|
-
z = -Pe / 2 / at * 100, $.x =
|
|
80699
|
+
z = -Pe / 2 / at * 100, $.x = q === 3 ? z + f / 2 : z - f / 2, V = Pe / 2 / _e * 100, $.y = q === 3 ? V + p / 2 : V - p / 2, $.scale = U, this.media.style.width = "".concat(at, "px"), this.media.style.height = "".concat(_e, "px");
|
|
80696
80700
|
}
|
|
80697
80701
|
var J = Ce.getTransformStyle($, this.media.style.transform || this.media.style.webkitTransform);
|
|
80698
80702
|
this.media.style.transform = J, this.media.style.webkitTransform = J;
|
|
@@ -80743,12 +80747,12 @@ var eSe = ["play", "pause", "replay", "retry"], Wne = 0, jne = 0, e_ = null, q$
|
|
|
80743
80747
|
var p = this.media, y = p.videoWidth, S = p.videoHeight, k = this.config, R = k.fitVideoSize, $ = k.videoFillMode;
|
|
80744
80748
|
if (($ === "fill" || $ === "cover" || $ === "contain") && this.setAttribute("data-xgfill", $), !(!S || !y)) {
|
|
80745
80749
|
this._videoHeight = S, this._videoWidth = y;
|
|
80746
|
-
var V = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, z = f.width, U = f.height - V,
|
|
80747
|
-
R === "auto" && G >
|
|
80750
|
+
var V = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, z = f.width, U = f.height - V, q = parseInt(y / S * 1e3, 10), G = parseInt(z / U * 1e3, 10), le = z, Z = U, Y = {};
|
|
80751
|
+
R === "auto" && G > q || R === "fixWidth" ? (Z = z / q * 1e3, this.config.fluid ? Y.paddingTop = "".concat(Z * 100 / le, "%") : Y.height = "".concat(Z + V, "px")) : (R === "auto" && G < q || R === "fixHeight") && (le = q * U / 1e3, Y.width = "".concat(le, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(Y).forEach(function(at) {
|
|
80748
80752
|
i.root.style[at] = Y[at];
|
|
80749
|
-
}), ($ === "fillHeight" && G <
|
|
80753
|
+
}), ($ === "fillHeight" && G < q || $ === "fillWidth" && G > q) && this.setAttribute("data-xgfill", "cover");
|
|
80750
80754
|
var _e = {
|
|
80751
|
-
videoScale:
|
|
80755
|
+
videoScale: q,
|
|
80752
80756
|
vWidth: le,
|
|
80753
80757
|
vHeight: Z,
|
|
80754
80758
|
cWidth: le,
|
|
@@ -81752,8 +81756,8 @@ function Kne(c) {
|
|
|
81752
81756
|
var f = DJ[i], p = r[f], y = parseFloat(p);
|
|
81753
81757
|
a[f] = Number.isNaN(y) ? 0 : y;
|
|
81754
81758
|
}
|
|
81755
|
-
var S = a.paddingLeft + a.paddingRight, k = a.paddingTop + a.paddingBottom, R = a.marginLeft + a.marginRight, $ = a.marginTop + a.marginBottom, V = a.borderLeftWidth + a.borderRightWidth, z = a.borderTopWidth + a.borderBottomWidth, U = l,
|
|
81756
|
-
|
|
81759
|
+
var S = a.paddingLeft + a.paddingRight, k = a.paddingTop + a.paddingBottom, R = a.marginLeft + a.marginRight, $ = a.marginTop + a.marginBottom, V = a.borderLeftWidth + a.borderRightWidth, z = a.borderTopWidth + a.borderBottomWidth, U = l, q = qne(r.width);
|
|
81760
|
+
q !== !1 && (a.width = q + (U ? 0 : S + V));
|
|
81757
81761
|
var G = qne(r.height);
|
|
81758
81762
|
return G !== !1 && (a.height = G + (U ? 0 : k + z)), a.innerWidth = a.width - (S + V), a.innerHeight = a.height - (k + z), a.outerWidth = a.width + R, a.outerHeight = a.height + $, a;
|
|
81759
81763
|
}
|
|
@@ -82410,14 +82414,14 @@ var kk = {
|
|
|
82410
82414
|
}), En(en(i), "onTouchMove", function(f) {
|
|
82411
82415
|
var p = i.getTouche(f), y = en(i), S = y.pos, k = y.config, R = y.player;
|
|
82412
82416
|
if (!(!p || k.disableGesture || !i.duration || !S.isStart)) {
|
|
82413
|
-
var $ = k.miniMoveStep, V = k.hideControlsActive, z = parseInt(p.pageX - S.left, 10), U = parseInt(p.pageY - S.top, 10),
|
|
82414
|
-
if (Math.abs(
|
|
82415
|
-
var le =
|
|
82416
|
-
if (Y === -1 && (Y = i.checkScope(
|
|
82417
|
+
var $ = k.miniMoveStep, V = k.hideControlsActive, z = parseInt(p.pageX - S.left, 10), U = parseInt(p.pageY - S.top, 10), q = R.rotateDeg === 90 ? U : z, G = R.rotateDeg === 90 ? z : U;
|
|
82418
|
+
if (Math.abs(q - S.x) > $ || Math.abs(G - S.y) > $) {
|
|
82419
|
+
var le = q - S.x, Z = G - S.y, Y = S.scope;
|
|
82420
|
+
if (Y === -1 && (Y = i.checkScope(q, G, le, Z, S), Y === 0 && (V ? R.blur() : R.focus({
|
|
82417
82421
|
autoHide: !1
|
|
82418
82422
|
}), !S.time && (S.time = parseInt(R.currentTime * 1e3, 10) + i.timeOffset * 1e3)), S.scope = Y), Y === -1 || Y > 0 && !k.gestureY || Y === 0 && !k.gestureX)
|
|
82419
82423
|
return;
|
|
82420
|
-
i.executeMove(le, Z, Y, S.width, S.height), S.x =
|
|
82424
|
+
i.executeMove(le, Z, Y, S.width, S.height), S.x = q, S.y = G;
|
|
82421
82425
|
}
|
|
82422
82426
|
}
|
|
82423
82427
|
}), En(en(i), "onTouchEnd", function(f) {
|
|
@@ -82839,8 +82843,8 @@ var Jne = /* @__PURE__ */ function(c) {
|
|
|
82839
82843
|
f[p] = arguments[p];
|
|
82840
82844
|
return l = r.call.apply(r, [this].concat(f)), En(en(l), "onBodyKeyDown", function(y) {
|
|
82841
82845
|
if (l.player) {
|
|
82842
|
-
var S = y || window.event, k = S.keyCode, R = en(l), $ = R._keyState, V = R.player, z = l.config, U = z.disable,
|
|
82843
|
-
if (U ||
|
|
82846
|
+
var S = y || window.event, k = S.keyCode, R = en(l), $ = R._keyState, V = R.player, z = l.config, U = z.disable, q = z.disableBodyTrigger, G = z.isIgnoreUserActive;
|
|
82847
|
+
if (U || q || !(V.isUserActive || G) || Qne(S.target) || !l.checkIsVisible() || S.metaKey || S.altKey || S.ctrlKey) {
|
|
82844
82848
|
$.isBodyKeyDown = !1;
|
|
82845
82849
|
return;
|
|
82846
82850
|
}
|
|
@@ -82987,14 +82991,14 @@ var Jne = /* @__PURE__ */ function(c) {
|
|
|
82987
82991
|
value: function(i) {
|
|
82988
82992
|
var f = this.player, p = f.currentTime, y = f.offsetCurrentTime, S = f.duration, k = f.offsetDuration, R = f.timeSegments, $ = y > -1 ? y : p, V = k || S, z = i.repeat && this.seekStep >= 4 ? parseInt(this.seekStep / 2, 10) : this.seekStep;
|
|
82989
82993
|
$ + z <= V ? $ = $ + z : $ = V;
|
|
82990
|
-
var U = Ce.getCurrentTimeByOffset($, R),
|
|
82994
|
+
var U = Ce.getCurrentTimeByOffset($, R), q = {
|
|
82991
82995
|
currentTime: {
|
|
82992
82996
|
from: p,
|
|
82993
82997
|
to: U
|
|
82994
82998
|
}
|
|
82995
82999
|
};
|
|
82996
83000
|
this.emitUserAction(i, "seek", {
|
|
82997
|
-
props:
|
|
83001
|
+
props: q
|
|
82998
83002
|
}), this.player.currentTime = U;
|
|
82999
83003
|
}
|
|
83000
83004
|
}, {
|
|
@@ -83064,8 +83068,8 @@ var Jne = /* @__PURE__ */ function(c) {
|
|
|
83064
83068
|
var k = this.keyCodeMap[y[S]], R = k.action, $ = k.keyCode, V = k.disable, z = k.pressAction, U = k.disablePress;
|
|
83065
83069
|
if ($ === i) {
|
|
83066
83070
|
if (!V && !(p && U)) {
|
|
83067
|
-
var
|
|
83068
|
-
typeof
|
|
83071
|
+
var q = p && z || R;
|
|
83072
|
+
typeof q == "function" ? R(f, this.player, p) : typeof q == "string" && typeof this[q] == "function" && this[q](f, this.player, p), this.emit(Jre, Hc({
|
|
83069
83073
|
key: y[S],
|
|
83070
83074
|
target: f.target,
|
|
83071
83075
|
isPress: p
|
|
@@ -83406,8 +83410,8 @@ var _Se = /* @__PURE__ */ function(c) {
|
|
|
83406
83410
|
}), i.isProgressMoving = !0, Ce.addClass(i.progressBtn, "active");
|
|
83407
83411
|
var U = i.computeTime(f, z);
|
|
83408
83412
|
U.prePlayTime = y.prePlayTime, i._mouseDownHandlerHook(f, U);
|
|
83409
|
-
var
|
|
83410
|
-
return
|
|
83413
|
+
var q = f.type;
|
|
83414
|
+
return q === "touchstart" ? (i.root.addEventListener("touchmove", i.onMouseMove), i.root.addEventListener("touchend", i.onMouseUp), i.root.addEventListener("touchcancel", i.onMouseUp)) : (i.unbind("mousemove", i.onMoveOnly), document.addEventListener("mousemove", i.onMouseMove, !1), document.addEventListener("mouseup", i.onMouseUp, !1)), !0;
|
|
83411
83415
|
}
|
|
83412
83416
|
}), En(en(i), "onMouseUp", function(f) {
|
|
83413
83417
|
var p = en(i), y = p.player, S = p.config, k = p.pos, R = p.playerConfig, $ = p._state;
|
|
@@ -83640,16 +83644,16 @@ var _Se = /* @__PURE__ */ function(c) {
|
|
|
83640
83644
|
value: function(i, f) {
|
|
83641
83645
|
var p = this.player, y = this.root.getBoundingClientRect(), S = y.width, k = y.height, R = y.top, $ = y.left, V, z, U = f;
|
|
83642
83646
|
p.rotateDeg === 90 ? (V = k, z = R) : (V = S, z = $);
|
|
83643
|
-
var
|
|
83644
|
-
|
|
83645
|
-
var G =
|
|
83647
|
+
var q = U - z;
|
|
83648
|
+
q = q > V ? V : q < 0 ? 0 : q;
|
|
83649
|
+
var G = q / V;
|
|
83646
83650
|
G = G < 0 ? 0 : G > 1 ? 1 : G;
|
|
83647
83651
|
var le = parseInt(G * this.offsetDuration * 1e3, 10) / 1e3, Z = Ce.getCurrentTimeByOffset(le, p.timeSegments);
|
|
83648
83652
|
return {
|
|
83649
83653
|
percent: G,
|
|
83650
83654
|
currentTime: le,
|
|
83651
83655
|
seekTime: Z,
|
|
83652
|
-
offset:
|
|
83656
|
+
offset: q,
|
|
83653
83657
|
width: V,
|
|
83654
83658
|
left: z,
|
|
83655
83659
|
e: i
|
|
@@ -84293,8 +84297,8 @@ var DSe = /* @__PURE__ */ function(c) {
|
|
|
84293
84297
|
$ !== l.curIndex && l.changeIndex($, k);
|
|
84294
84298
|
var V = Ce.getOffsetCurrentTime(S, k, $);
|
|
84295
84299
|
if (l.player.offsetCurrentTime = V, !!l.curPos) {
|
|
84296
|
-
var z = l.curPos, U = z.start,
|
|
84297
|
-
S < U ? l.player.currentTime = U : S >
|
|
84300
|
+
var z = l.curPos, U = z.start, q = z.end;
|
|
84301
|
+
S < U ? l.player.currentTime = U : S > q && $ >= R - 1 && l.player.pause();
|
|
84298
84302
|
}
|
|
84299
84303
|
}
|
|
84300
84304
|
}), En(en(l), "_onSeeking", function() {
|
|
@@ -84669,13 +84673,13 @@ var LSe = /* @__PURE__ */ function(c) {
|
|
|
84669
84673
|
this.player.videoRotateDeg = i;
|
|
84670
84674
|
return;
|
|
84671
84675
|
}
|
|
84672
|
-
var p = this.player, y = this.rootWidth, S = this.rootHeight, k = p.root, R = p.innerContainer, $ = p.media, V = k.offsetWidth, z = R && f ? R.offsetHeight : k.offsetHeight, U = y,
|
|
84673
|
-
(i === 0.75 || i === 0.25) && (U = "".concat(z, "px"),
|
|
84676
|
+
var p = this.player, y = this.rootWidth, S = this.rootHeight, k = p.root, R = p.innerContainer, $ = p.media, V = k.offsetWidth, z = R && f ? R.offsetHeight : k.offsetHeight, U = y, q = S, G = 0, le = 0;
|
|
84677
|
+
(i === 0.75 || i === 0.25) && (U = "".concat(z, "px"), q = "".concat(V, "px"), G = -(z - V) / 2, le = -(V - z) / 2);
|
|
84674
84678
|
var Z = "translate(".concat(G, "px,").concat(le, "px) rotate(").concat(i, "turn)"), Y = {
|
|
84675
84679
|
transformOrigin: "center center",
|
|
84676
84680
|
transform: Z,
|
|
84677
84681
|
webKitTransform: Z,
|
|
84678
|
-
height:
|
|
84682
|
+
height: q,
|
|
84679
84683
|
width: U
|
|
84680
84684
|
}, _e = f ? $ : k, at = f ? p.getPlugin("poster") : null;
|
|
84681
84685
|
Object.keys(Y).map(function(Pe) {
|
|
@@ -84854,7 +84858,7 @@ var Tk = {
|
|
|
84854
84858
|
documentPictureInPicture.requestWindow(k).then(function($) {
|
|
84855
84859
|
var V = y.docPiPNode, z = y.docPiPStyle;
|
|
84856
84860
|
i.enterPIPCallback();
|
|
84857
|
-
var U = V || f.root,
|
|
84861
|
+
var U = V || f.root, q = U.parentElement, G = U.previousSibling, le = U.nextSibling;
|
|
84858
84862
|
i.copyStyleIntoPiPWindow($);
|
|
84859
84863
|
var Z = document.createElement("style");
|
|
84860
84864
|
if (Z.append("body{padding:0; margin:0;}"), z) {
|
|
@@ -84865,7 +84869,7 @@ var Tk = {
|
|
|
84865
84869
|
.xgplayer{width: 100%!important; height: 100%!important;}
|
|
84866
84870
|
`);
|
|
84867
84871
|
$.document.head.append(Z), $.document.body.append(U), $.addEventListener("pagehide", function(_e) {
|
|
84868
|
-
|
|
84872
|
+
q && (le ? q.insertBefore(U, le) : G ? q.insertBefore(U, G.nextSibling) : q.appendChild(U)), i.leavePIPCallback();
|
|
84869
84873
|
}, {
|
|
84870
84874
|
once: !0
|
|
84871
84875
|
});
|
|
@@ -85033,7 +85037,7 @@ var VSe = /* @__PURE__ */ function(c) {
|
|
|
85033
85037
|
return function a(l, i, f) {
|
|
85034
85038
|
var p = window, y = "application/octet-stream", S = f || y, k = l, R = !i && !f && k, $ = document.createElement("a"), V = function(J) {
|
|
85035
85039
|
return String(J);
|
|
85036
|
-
}, z = p.Blob || p.MozBlob || p.WebKitBlob || V, U = i || "download",
|
|
85040
|
+
}, z = p.Blob || p.MozBlob || p.WebKitBlob || V, U = i || "download", q, G;
|
|
85037
85041
|
if (z = z.call ? z.bind(p) : Blob, String(this) === "true" && (k = [k, S], S = k[0], k = k[1]), R && R.length < 2048 && (U = R.split("/").pop().split("?")[0], $.href = R, $.href.indexOf(R) !== -1)) {
|
|
85038
85042
|
var le = new XMLHttpRequest();
|
|
85039
85043
|
return le.open("GET", R, !0), le.responseType = "blob", le.onload = function(J) {
|
|
@@ -85056,7 +85060,7 @@ var VSe = /* @__PURE__ */ function(c) {
|
|
|
85056
85060
|
Y[Z] = k.charCodeAt(Z);
|
|
85057
85061
|
k = new z([Y], { type: S });
|
|
85058
85062
|
}
|
|
85059
|
-
|
|
85063
|
+
q = k instanceof z ? k : new z([k], { type: S });
|
|
85060
85064
|
function at(J) {
|
|
85061
85065
|
var ke = J.split(/[:;,]/), ot = ke[1], st = ke[2] == "base64" ? atob : decodeURIComponent, qe = st(ke.pop()), ye = qe.length, In = 0, pn = new Uint8Array(ye);
|
|
85062
85066
|
for (In; In < ye; ++In)
|
|
@@ -85080,19 +85084,19 @@ Use Save As... to download, then click back to return to this page.`) && (locati
|
|
|
85080
85084
|
}, 333);
|
|
85081
85085
|
}
|
|
85082
85086
|
if (navigator.msSaveBlob)
|
|
85083
|
-
return navigator.msSaveBlob(
|
|
85087
|
+
return navigator.msSaveBlob(q, U);
|
|
85084
85088
|
if (p.URL)
|
|
85085
|
-
Pe(p.URL.createObjectURL(
|
|
85089
|
+
Pe(p.URL.createObjectURL(q), !0);
|
|
85086
85090
|
else {
|
|
85087
|
-
if (typeof
|
|
85091
|
+
if (typeof q == "string" || q.constructor === V)
|
|
85088
85092
|
try {
|
|
85089
|
-
return Pe("data:" + S + ";base64," + p.btoa(
|
|
85093
|
+
return Pe("data:" + S + ";base64," + p.btoa(q));
|
|
85090
85094
|
} catch {
|
|
85091
|
-
return Pe("data:" + S + "," + encodeURIComponent(
|
|
85095
|
+
return Pe("data:" + S + "," + encodeURIComponent(q));
|
|
85092
85096
|
}
|
|
85093
85097
|
G = new FileReader(), G.onload = function(J) {
|
|
85094
85098
|
Pe(this.result);
|
|
85095
|
-
}, G.readAsDataURL(
|
|
85099
|
+
}, G.readAsDataURL(q);
|
|
85096
85100
|
}
|
|
85097
85101
|
return !0;
|
|
85098
85102
|
};
|
|
@@ -85255,13 +85259,13 @@ var GSe = /* @__PURE__ */ function(c) {
|
|
|
85255
85259
|
type: "image/png"
|
|
85256
85260
|
}, S = this.config, k = this.player, R = y.quality || S.quality, $ = y.type || S.type;
|
|
85257
85261
|
return new Promise(function(V, z) {
|
|
85258
|
-
var U = null,
|
|
85262
|
+
var U = null, q;
|
|
85259
85263
|
if (k.media.canvas)
|
|
85260
85264
|
U = k.media.canvas;
|
|
85261
85265
|
else {
|
|
85262
|
-
p.canvas ? (p.canvas.width = i || S.width, p.canvas.height = f || S.height) : p.createCanvas(i, f), U = p.canvas,
|
|
85266
|
+
p.canvas ? (p.canvas.width = i || S.width, p.canvas.height = f || S.height) : p.createCanvas(i, f), U = p.canvas, q = p.canvasCtx;
|
|
85263
85267
|
var G = k.media.videoWidth / k.media.videoHeight, le = U.width / U.height, Z = 0, Y = 0, _e = k.media.videoWidth, at = k.media.videoHeight, Pe, J, ke, ot;
|
|
85264
|
-
G > le ? (ke = U.width, ot = U.width / G, Pe = 0, J = Math.round((U.height - ot) / 2)) : G === le ? (ke = U.width, ot = U.height, Pe = 0, J = 0) : G < le && (ke = U.height * G, ot = U.height, Pe = Math.round((U.width - ke) / 2), J = 0),
|
|
85268
|
+
G > le ? (ke = U.width, ot = U.width / G, Pe = 0, J = Math.round((U.height - ot) / 2)) : G === le ? (ke = U.width, ot = U.height, Pe = 0, J = 0) : G < le && (ke = U.height * G, ot = U.height, Pe = Math.round((U.width - ke) / 2), J = 0), q.drawImage(k.media, Z, Y, _e, at, Pe, J, ke, ot);
|
|
85265
85269
|
}
|
|
85266
85270
|
var st = U.toDataURL($, R).replace($, "image/octet-stream");
|
|
85267
85271
|
st = st.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), V(st);
|
|
@@ -85510,8 +85514,8 @@ var Y3 = ci.device === "mobile", O$ = /* @__PURE__ */ function(c) {
|
|
|
85510
85514
|
config: {
|
|
85511
85515
|
data: i || [],
|
|
85512
85516
|
className: KSe(y.listType, y.position),
|
|
85513
|
-
onItemClick: function(
|
|
85514
|
-
p.onItemClick(
|
|
85517
|
+
onItemClick: function(q, G) {
|
|
85518
|
+
p.onItemClick(q, G);
|
|
85515
85519
|
},
|
|
85516
85520
|
domEventType: Y3 ? "touch" : "mouse"
|
|
85517
85521
|
},
|
|
@@ -86524,7 +86528,7 @@ var Ok = {
|
|
|
86524
86528
|
this.interval = Math.round(this.player.duration / S);
|
|
86525
86529
|
var z = Math.ceil(i / this.interval);
|
|
86526
86530
|
z = z > S ? S : z;
|
|
86527
|
-
var U = z < k * R ? 0 : Math.ceil(z / (k * R)) - 1,
|
|
86531
|
+
var U = z < k * R ? 0 : Math.ceil(z / (k * R)) - 1, q = z - U * (R * k), G = q > 0 ? Math.ceil(q / R) - 1 : 0, le = q > 0 ? q - G * R - 1 : 0, Z = 0, Y = 0;
|
|
86528
86532
|
if (f && p) {
|
|
86529
86533
|
var _e = f / p;
|
|
86530
86534
|
_e < $ / V ? (Y = p, Z = Y * ($ / V)) : (Z = f, Y = Z / ($ / V));
|
|
@@ -87142,15 +87146,15 @@ var YF = null, lxe = /* @__PURE__ */ function(c) {
|
|
|
87142
87146
|
var R = S.media.buffered, $ = k.smallGapLimit || 0.5, V = k.gapDetectionThreshold || 0.3, z = S.media.currentTime, U = l._getIndex(R, z, V);
|
|
87143
87147
|
if (!(U === null || U === 0)) {
|
|
87144
87148
|
console.log("GapJump bufferRange ", R.start(U), R.end(U));
|
|
87145
|
-
var
|
|
87146
|
-
if (!(
|
|
87147
|
-
var le =
|
|
87148
|
-
le < a.BROWSER_GAP_TOLERANCE || Z && (k.useGapJump !== !1 && (S.media.currentTime = l.isSafari ?
|
|
87149
|
+
var q = R.start(U) + 0.1, G = S.media.duration;
|
|
87150
|
+
if (!(q > G)) {
|
|
87151
|
+
var le = q - z, Z = le <= $;
|
|
87152
|
+
le < a.BROWSER_GAP_TOLERANCE || Z && (k.useGapJump !== !1 && (S.media.currentTime = l.isSafari ? q + 0.1 : q), l.player && l.player.emit("detectGap"), console.log("gapJump gapIndex", U, " isGapSamll:", Z, " currentTime:", S.media.currentTime, " jumpSize:", z - S.media.currentTime), q !== 0.08 && S && S.emit("log", {
|
|
87149
87153
|
type: "oneevent",
|
|
87150
87154
|
end_type: "gap",
|
|
87151
87155
|
vid: S.config.vid,
|
|
87152
87156
|
ext: {
|
|
87153
|
-
video_postion: Math.floor(
|
|
87157
|
+
video_postion: Math.floor(q * 1e3)
|
|
87154
87158
|
}
|
|
87155
87159
|
}));
|
|
87156
87160
|
}
|
|
@@ -87288,18 +87292,18 @@ var dxe = /* @__PURE__ */ function(c) {
|
|
|
87288
87292
|
if (!(l.cnt >= R)) {
|
|
87289
87293
|
l.cnt++;
|
|
87290
87294
|
try {
|
|
87291
|
-
var z = (/* @__PURE__ */ new Date()).getTime(), U = null,
|
|
87292
|
-
l.xhr =
|
|
87295
|
+
var z = (/* @__PURE__ */ new Date()).getTime(), U = null, q = new XMLHttpRequest();
|
|
87296
|
+
l.xhr = q, q.open("GET", V);
|
|
87293
87297
|
var G = {}, le = Math.floor(Math.random() * 10);
|
|
87294
87298
|
G.Range = "bytes=" + le + "-" + (k + le), G && Object.keys(G).forEach(function(Z) {
|
|
87295
|
-
|
|
87296
|
-
}),
|
|
87297
|
-
if (
|
|
87299
|
+
q.setRequestHeader(Z, G[Z]);
|
|
87300
|
+
}), q.onreadystatechange = function() {
|
|
87301
|
+
if (q.readyState === 4) {
|
|
87298
87302
|
l.xhr = null, U = (/* @__PURE__ */ new Date()).getTime();
|
|
87299
|
-
var Z =
|
|
87303
|
+
var Z = q.getResponseHeader("Content-Length") / 1024 * 8, Y = Math.round(Z * 1e3 / (U - z));
|
|
87300
87304
|
l.appendList(Y), l.timer = setTimeout(l.testSpeed, $);
|
|
87301
87305
|
}
|
|
87302
|
-
},
|
|
87306
|
+
}, q.send();
|
|
87303
87307
|
} catch (Z) {
|
|
87304
87308
|
console.error(Z);
|
|
87305
87309
|
}
|
|
@@ -87443,8 +87447,8 @@ var dxe = /* @__PURE__ */ function(c) {
|
|
|
87443
87447
|
value: function(i, f, p, y) {
|
|
87444
87448
|
var S = this.player.media || this.player.video, k = document.hidden, R = S.paused, $ = S.readyState, V = S.currentTime, z = S.buffered;
|
|
87445
87449
|
if (!(k || R || $ < 4)) {
|
|
87446
|
-
var U = this._checkBuffer(V, z),
|
|
87447
|
-
|
|
87450
|
+
var U = this._checkBuffer(V, z), q = U.enoughBuffer, G = U.buffers;
|
|
87451
|
+
q && (i <= this.config.reportFrame ? (this._currentStuckCount++, this._payload.push({
|
|
87448
87452
|
currentTime: V,
|
|
87449
87453
|
buffers: G,
|
|
87450
87454
|
curDecodedFrames: i,
|
|
@@ -87593,7 +87597,7 @@ const gxe = ["id"], pxe = /* @__PURE__ */ fo({
|
|
|
87593
87597
|
});
|
|
87594
87598
|
});
|
|
87595
87599
|
}), (z, U) => {
|
|
87596
|
-
const
|
|
87600
|
+
const q = Ho("el-icon");
|
|
87597
87601
|
return k.value ? (pe(), Nn(wQ, {
|
|
87598
87602
|
key: 0,
|
|
87599
87603
|
to: "body"
|
|
@@ -87637,7 +87641,7 @@ const gxe = ["id"], pxe = /* @__PURE__ */ fo({
|
|
|
87637
87641
|
onClick: V
|
|
87638
87642
|
},
|
|
87639
87643
|
[
|
|
87640
|
-
Ze(
|
|
87644
|
+
Ze(q, { onClick: V }, {
|
|
87641
87645
|
default: Rt(() => [
|
|
87642
87646
|
Ze(Ge(I$))
|
|
87643
87647
|
]),
|