golden-logic-ui 1.0.543 → 1.0.545
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/golden-logic-ui.js +433 -434
- package/dist/golden-logic-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -16979,21 +16979,21 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
16979
16979
|
const p = Re.fromText(e);
|
|
16980
16980
|
return n.isAtEnd() ? hc(d, p) : il(d, p), St(p.dom, e.length);
|
|
16981
16981
|
});
|
|
16982
|
-
}, KL = Me(uD, ji), JL = Me(uD, " "),
|
|
16982
|
+
}, KL = Me(uD, ji), JL = Me(uD, " "), e9 = (e, n, s) => OE(e, n, s) ? KL(n) : JL(n), Pj = (e) => (n) => n.fold((s) => ll(e.dom, St.before(s)), (s) => Ll(s), (s) => Nd(s), (s) => Yl(e.dom, St.after(s))), Dj = (e, n, s) => (a) => OE(e, a, s) ? KL(n) : JL(n), t9 = (e) => (n) => {
|
|
16983
16983
|
e.selection.setRng(n.toRange()), e.nodeChanged();
|
|
16984
16984
|
}, Rj = (e, n) => e.isEditable(e.getParent(n, "summary")), Mj = (e) => {
|
|
16985
16985
|
const n = St.fromRangeStart(e.selection.getRng()), s = Re.fromDom(e.getBody());
|
|
16986
16986
|
if (e.selection.isCollapsed()) {
|
|
16987
16987
|
const a = Me(K0, e), d = St.fromRangeStart(e.selection.getRng());
|
|
16988
|
-
return xg(a, e.getBody(), d).bind(Pj(s)).map((p) => () => Dj(s, n, e.schema)(p).each(
|
|
16988
|
+
return xg(a, e.getBody(), d).bind(Pj(s)).map((p) => () => Dj(s, n, e.schema)(p).each(t9(e)));
|
|
16989
16989
|
} else
|
|
16990
16990
|
return Y.none();
|
|
16991
|
-
},
|
|
16991
|
+
}, n9 = (e) => {
|
|
16992
16992
|
const n = () => {
|
|
16993
16993
|
const s = Re.fromDom(e.getBody());
|
|
16994
16994
|
e.selection.isCollapsed() || e.getDoc().execCommand("Delete");
|
|
16995
16995
|
const a = St.fromRangeStart(e.selection.getRng());
|
|
16996
|
-
|
|
16996
|
+
e9(s, a, e.schema).each(t9(e));
|
|
16997
16997
|
};
|
|
16998
16998
|
return Na(ao.browser.isFirefox() && e.selection.isEditable() && Rj(e.dom, e.selection.getRng().startContainer), n);
|
|
16999
16999
|
}, Bj = (e, n) => {
|
|
@@ -17004,12 +17004,12 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17004
17004
|
},
|
|
17005
17005
|
{
|
|
17006
17006
|
keyCode: fn.SPACEBAR,
|
|
17007
|
-
action: _o(
|
|
17007
|
+
action: _o(n9, e)
|
|
17008
17008
|
}
|
|
17009
17009
|
], n).each((s) => {
|
|
17010
17010
|
n.preventDefault(), X4(e, "insertText", { data: " " }).isDefaultPrevented() || (s(), aS(e, "insertText", { data: " " }));
|
|
17011
17011
|
});
|
|
17012
|
-
},
|
|
17012
|
+
}, o9 = (e) => {
|
|
17013
17013
|
e.on("keydown", (n) => {
|
|
17014
17014
|
n.isDefaultPrevented() || Bj(e, n);
|
|
17015
17015
|
});
|
|
@@ -17036,7 +17036,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17036
17036
|
return xr(null);
|
|
17037
17037
|
{
|
|
17038
17038
|
const n = rU(e);
|
|
17039
|
-
return rT(e), $U(e), N4(e, n), nee(e, n), rD(e),
|
|
17039
|
+
return rT(e), $U(e), N4(e, n), nee(e, n), rD(e), o9(e), aD(e), Ij(e), Aj(e, n), $j(e, n), n;
|
|
17040
17040
|
}
|
|
17041
17041
|
};
|
|
17042
17042
|
class Qj {
|
|
@@ -17113,10 +17113,10 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17113
17113
|
}, cT = (e) => (n) => {
|
|
17114
17114
|
const s = n;
|
|
17115
17115
|
s[hD] = e;
|
|
17116
|
-
},
|
|
17116
|
+
}, s9 = (e, n) => cT(n)(e), r9 = cT(0), fD = cT(2), Xj = cT(1), i9 = (e) => (n) => {
|
|
17117
17117
|
const s = n;
|
|
17118
17118
|
return Y.from(s[hD]).exists((a) => a === e);
|
|
17119
|
-
}, XO =
|
|
17119
|
+
}, XO = i9(0), a9 = i9(1), Gj = (e, n) => ({
|
|
17120
17120
|
...n,
|
|
17121
17121
|
get length() {
|
|
17122
17122
|
return n.length;
|
|
@@ -17171,7 +17171,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17171
17171
|
return Gj(a, e.items);
|
|
17172
17172
|
},
|
|
17173
17173
|
get files() {
|
|
17174
|
-
return
|
|
17174
|
+
return a9(a) ? jj() : e.files;
|
|
17175
17175
|
},
|
|
17176
17176
|
get types() {
|
|
17177
17177
|
return e.types;
|
|
@@ -17183,7 +17183,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17183
17183
|
y: O
|
|
17184
17184
|
}), e.setDragImage(d, p, O));
|
|
17185
17185
|
},
|
|
17186
|
-
getData: (d) =>
|
|
17186
|
+
getData: (d) => a9(a) ? "" : e.getData(d),
|
|
17187
17187
|
setData: (d, p) => {
|
|
17188
17188
|
XO(a) && e.setData(d, p);
|
|
17189
17189
|
},
|
|
@@ -17191,27 +17191,27 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17191
17191
|
XO(a) && e.clearData(d);
|
|
17192
17192
|
}
|
|
17193
17193
|
};
|
|
17194
|
-
return
|
|
17195
|
-
},
|
|
17194
|
+
return r9(a), a;
|
|
17195
|
+
}, l9 = (e) => {
|
|
17196
17196
|
const n = mD(), s = qj(e);
|
|
17197
17197
|
return fD(e), dD(n), n.dropEffect = e.dropEffect, n.effectAllowed = e.effectAllowed, Zj(e).each((a) => n.setDragImage(a.image, a.x, a.y)), xe(e.types, (a) => {
|
|
17198
17198
|
a !== "Files" && n.setData(a, e.getData(a));
|
|
17199
17199
|
}), xe(e.files, (a) => n.items.add(a)), Hj(e).each((a) => {
|
|
17200
17200
|
zj(n, a);
|
|
17201
17201
|
}), s.each((a) => {
|
|
17202
|
-
|
|
17202
|
+
s9(e, a), s9(n, a);
|
|
17203
17203
|
}), n;
|
|
17204
17204
|
}, Kj = (e) => {
|
|
17205
17205
|
const n = e.getData("text/html");
|
|
17206
17206
|
return n === "" ? Y.none() : Y.some(n);
|
|
17207
|
-
}, uT = (e, n) => e.setData("text/html", n), gD = "x-tinymce/html", dT = wt(gD), pD = "<!-- " + gD + " -->", Jj = (e) => pD + e,
|
|
17207
|
+
}, uT = (e, n) => e.setData("text/html", n), gD = "x-tinymce/html", dT = wt(gD), pD = "<!-- " + gD + " -->", Jj = (e) => pD + e, c9 = (e) => e.replace(pD, ""), dS = (e) => e.indexOf(pD) !== -1, eq = (e) => !/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(e), tq = (e, n) => {
|
|
17208
17208
|
let s = "<" + e;
|
|
17209
17209
|
const a = Zi(n, (d, p) => p + '="' + Ug.encodeAllRaw(d) + '"');
|
|
17210
17210
|
return a.length && (s += " " + a.join(" ")), s + ">";
|
|
17211
17211
|
}, bD = (e, n, s) => {
|
|
17212
17212
|
const a = e.split(/\n\n/), d = tq(n, s), p = "</" + n + ">", O = Ke(a, (A) => A.split(/\n/).join("<br />")), k = (A) => d + A + p;
|
|
17213
17213
|
return O.length === 1 ? O[0] : Ke(O, k).join("");
|
|
17214
|
-
},
|
|
17214
|
+
}, u9 = "%MCEPASTEBIN%", nq = (e, n) => {
|
|
17215
17215
|
const { dom: s, selection: a } = e, d = e.getBody();
|
|
17216
17216
|
n.set(a.getRng());
|
|
17217
17217
|
const p = s.add(e.getBody(), "div", {
|
|
@@ -17220,7 +17220,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17220
17220
|
contentEditable: !0,
|
|
17221
17221
|
"data-mce-bogus": "all",
|
|
17222
17222
|
style: "position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"
|
|
17223
|
-
},
|
|
17223
|
+
}, u9);
|
|
17224
17224
|
ao.browser.isFirefox() && s.setStyle(p, "left", s.getStyle(d, "direction", !0) === "rtl" ? 65535 : -65535), s.bind(p, "beforedeactivate focusin focusout", (O) => {
|
|
17225
17225
|
O.stopPropagation();
|
|
17226
17226
|
}), p.focus(), a.select(p, !0);
|
|
@@ -17234,10 +17234,10 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17234
17234
|
d && e.selection.setRng(d);
|
|
17235
17235
|
}
|
|
17236
17236
|
n.set(null);
|
|
17237
|
-
}, vD = (e) => e.dom.get("mcepastebin"),
|
|
17237
|
+
}, vD = (e) => e.dom.get("mcepastebin"), d9 = (e) => We(e) && e.id === "mcepastebin", sq = (e) => {
|
|
17238
17238
|
const n = e.dom, s = (O, k) => {
|
|
17239
17239
|
O.appendChild(k), n.remove(k, !0);
|
|
17240
|
-
}, [a, ...d] = wn(e.getBody().childNodes,
|
|
17240
|
+
}, [a, ...d] = wn(e.getBody().childNodes, d9);
|
|
17241
17241
|
xe(d, (O) => {
|
|
17242
17242
|
s(a, O);
|
|
17243
17243
|
});
|
|
@@ -17247,7 +17247,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17247
17247
|
a.insertBefore(k, p[O]), s(k, p[O]);
|
|
17248
17248
|
}
|
|
17249
17249
|
return a ? a.innerHTML : "";
|
|
17250
|
-
},
|
|
17250
|
+
}, h9 = (e) => e === u9, GO = (e) => {
|
|
17251
17251
|
const n = xr(null);
|
|
17252
17252
|
return {
|
|
17253
17253
|
create: () => nq(e, n),
|
|
@@ -17256,7 +17256,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17256
17256
|
getHtml: () => sq(e),
|
|
17257
17257
|
getLastRng: n.get
|
|
17258
17258
|
};
|
|
17259
|
-
},
|
|
17259
|
+
}, f9 = (e, n) => (Bt.each(n, (s) => {
|
|
17260
17260
|
et(s, RegExp) ? e = e.replace(s, "") : e = e.replace(s[0], s[1]);
|
|
17261
17261
|
}), e), YO = (e) => {
|
|
17262
17262
|
const n = er(), s = $O({}, n);
|
|
@@ -17285,8 +17285,8 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17285
17285
|
`));
|
|
17286
17286
|
}
|
|
17287
17287
|
};
|
|
17288
|
-
return e =
|
|
17289
|
-
}, KO = (e) => (e =
|
|
17288
|
+
return e = f9(e, [/<!\[[^\]]+\]>/g]), k(s.parse(e)), a;
|
|
17289
|
+
}, KO = (e) => (e = f9(e, [
|
|
17290
17290
|
/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/ig,
|
|
17291
17291
|
/<!--StartFragment-->|<!--EndFragment-->/g,
|
|
17292
17292
|
[
|
|
@@ -17327,19 +17327,19 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17327
17327
|
isRootContent: !0
|
|
17328
17328
|
});
|
|
17329
17329
|
return q0({ validate: !0 }, e.schema).serialize(a);
|
|
17330
|
-
},
|
|
17330
|
+
}, m9 = (e, n) => ({
|
|
17331
17331
|
content: e,
|
|
17332
17332
|
cancelled: n
|
|
17333
17333
|
}), yD = (e, n, s) => {
|
|
17334
17334
|
const a = e.dom.create("div", { style: "display:none" }, n), d = ka(e, a, s);
|
|
17335
|
-
return
|
|
17335
|
+
return m9(d.node.innerHTML, d.isDefaultPrevented());
|
|
17336
17336
|
}, aq = (e, n, s) => {
|
|
17337
17337
|
const a = ga(e, n, s), d = JO(e, a.content);
|
|
17338
|
-
return e.hasEventListeners("PastePostProcess") && !a.isDefaultPrevented() ? yD(e, d, s) :
|
|
17339
|
-
},
|
|
17338
|
+
return e.hasEventListeners("PastePostProcess") && !a.isDefaultPrevented() ? yD(e, d, s) : m9(d, a.isDefaultPrevented());
|
|
17339
|
+
}, g9 = (e, n, s) => aq(e, n, s), hT = (e, n) => (e.insertContent(n, {
|
|
17340
17340
|
merge: tk(e),
|
|
17341
17341
|
paste: !0
|
|
17342
|
-
}), !0), hS = (e) => /^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(e),
|
|
17342
|
+
}), !0), hS = (e) => /^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(e), p9 = (e, n) => hS(n) && ze(x5(e), (s) => ds(n.toLowerCase(), `.${s.toLowerCase()}`)), lq = (e, n, s) => (e.undoManager.extra(() => {
|
|
17343
17343
|
s(e, n);
|
|
17344
17344
|
}, () => {
|
|
17345
17345
|
e.insertContent('<img src="' + n + '">');
|
|
@@ -17347,30 +17347,30 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17347
17347
|
s(e, n);
|
|
17348
17348
|
}, () => {
|
|
17349
17349
|
e.execCommand("mceInsertLink", !1, n);
|
|
17350
|
-
}), !0),
|
|
17350
|
+
}), !0), b9 = (e, n, s) => !e.selection.isCollapsed() && hS(n) ? cq(e, n, s) : !1, uq = (e, n, s) => p9(e, n) ? lq(e, n, s) : !1, v9 = (e, n) => {
|
|
17351
17351
|
Bt.each([
|
|
17352
|
-
|
|
17352
|
+
b9,
|
|
17353
17353
|
uq,
|
|
17354
17354
|
hT
|
|
17355
17355
|
], (s) => !s(e, n, hT));
|
|
17356
17356
|
}, OD = (e, n, s) => {
|
|
17357
|
-
s || !nk(e) ? hT(e, n) :
|
|
17358
|
-
},
|
|
17357
|
+
s || !nk(e) ? hT(e, n) : v9(e, n);
|
|
17358
|
+
}, y9 = rq("mceclip"), dq = (e) => {
|
|
17359
17359
|
const n = mD();
|
|
17360
17360
|
return uT(n, e), fD(n), n;
|
|
17361
|
-
},
|
|
17362
|
-
const p =
|
|
17361
|
+
}, O9 = (e, n, s, a, d) => {
|
|
17362
|
+
const p = g9(e, n, s);
|
|
17363
17363
|
if (!p.cancelled) {
|
|
17364
17364
|
const O = p.content, k = () => OD(e, O, a);
|
|
17365
17365
|
d ? X4(e, "insertFromPaste", { dataTransfer: dq(O) }).isDefaultPrevented() || (k(), aS(e, "insertFromPaste")) : k();
|
|
17366
17366
|
}
|
|
17367
17367
|
}, fT = (e, n, s, a) => {
|
|
17368
17368
|
const d = s || dS(n);
|
|
17369
|
-
|
|
17369
|
+
O9(e, c9(n), d, !1, a);
|
|
17370
17370
|
}, mT = (e, n, s) => {
|
|
17371
17371
|
const a = e.dom.encode(n).replace(/\r\n/g, `
|
|
17372
17372
|
`), d = gu(a, GR(e)), p = bD(d, ja(e), uf(e));
|
|
17373
|
-
|
|
17373
|
+
O9(e, p, !1, !0, s);
|
|
17374
17374
|
}, gT = (e) => {
|
|
17375
17375
|
const n = {};
|
|
17376
17376
|
if (e && e.types)
|
|
@@ -17383,13 +17383,13 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17383
17383
|
}
|
|
17384
17384
|
}
|
|
17385
17385
|
return n;
|
|
17386
|
-
}, b1 = (e, n) => n in e && e[n].length > 0, wD = (e) => b1(e, "text/html") || b1(e, "text/plain"),
|
|
17386
|
+
}, b1 = (e, n) => n in e && e[n].length > 0, wD = (e) => b1(e, "text/html") || b1(e, "text/plain"), w9 = (e, n) => {
|
|
17387
17387
|
const s = n.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);
|
|
17388
17388
|
return We(s) ? e.dom.encode(s[1]) : void 0;
|
|
17389
17389
|
}, hq = (e, n, s, a) => {
|
|
17390
|
-
const d =
|
|
17390
|
+
const d = y9(), p = Cy(e) && We(s.name), O = p ? w9(e, s.name) : d, k = p ? s.name : void 0, A = n.create(d, s, a, O, k);
|
|
17391
17391
|
return n.add(A), A;
|
|
17392
|
-
},
|
|
17392
|
+
}, x9 = (e, n) => {
|
|
17393
17393
|
wA(n.uri).each(({ data: s, type: a, base64Encoded: d }) => {
|
|
17394
17394
|
const p = d ? s : btoa(s), O = n.file, k = e.editorUpload.blobCache, A = k.getByData(p, a), B = A ?? hq(e, k, O, p);
|
|
17395
17395
|
fT(e, `<img src="${B.blobUri()}">`, !1, !0);
|
|
@@ -17403,14 +17403,14 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17403
17403
|
}, pq = (e, n) => {
|
|
17404
17404
|
const s = n.items ? nr(Zr(n.items), (d) => d.kind === "file" ? [d.getAsFile()] : []) : [], a = n.files ? Zr(n.files) : [];
|
|
17405
17405
|
return wn(s.length > 0 ? s : a, gq(e));
|
|
17406
|
-
},
|
|
17406
|
+
}, S9 = (e, n, s) => {
|
|
17407
17407
|
const a = fq(n) ? n.clipboardData : n.dataTransfer;
|
|
17408
17408
|
if (T0(e) && a) {
|
|
17409
17409
|
const d = pq(e, a);
|
|
17410
17410
|
if (d.length > 0)
|
|
17411
17411
|
return n.preventDefault(), mq(d).then((p) => {
|
|
17412
17412
|
s && e.selection.setRng(s), xe(p, (O) => {
|
|
17413
|
-
|
|
17413
|
+
x9(e, O);
|
|
17414
17414
|
});
|
|
17415
17415
|
}), !0;
|
|
17416
17416
|
}
|
|
@@ -17421,7 +17421,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17421
17421
|
}, bq = (e) => fn.metaKeyPressed(e) && e.keyCode === 86 || e.shiftKey && e.keyCode === 45, bT = (e, n, s, a, d) => {
|
|
17422
17422
|
let p = KO(s);
|
|
17423
17423
|
const O = b1(n, dT()) || dS(s), k = !O && eq(p), A = hS(p);
|
|
17424
|
-
(
|
|
17424
|
+
(h9(p) || !p.length || k && !A) && (a = !0), (a || A) && (b1(n, "text/plain") && k ? p = n["text/plain"] : p = YO(p)), !h9(p) && (a ? mT(e, p, d) : fT(e, p, O, d));
|
|
17425
17425
|
}, vq = (e, n, s) => {
|
|
17426
17426
|
let a;
|
|
17427
17427
|
const d = () => n.getLastRng() || e.selection.getRng();
|
|
@@ -17433,7 +17433,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17433
17433
|
const O = s.get() === "text" || a;
|
|
17434
17434
|
a = !1;
|
|
17435
17435
|
const k = gT(p.clipboardData);
|
|
17436
|
-
!wD(k) &&
|
|
17436
|
+
!wD(k) && S9(e, p, d()) || (b1(k, "text/html") ? (p.preventDefault(), bT(e, k, k["text/html"], O, !0)) : b1(k, "text/plain") && b1(k, "text/uri-list") ? (p.preventDefault(), bT(e, k, k["text/plain"], O, !0)) : (n.create(), zn.setEditorTimeout(e, () => {
|
|
17437
17437
|
const A = n.getHtml();
|
|
17438
17438
|
n.remove(), bT(e, k, A, O, !1);
|
|
17439
17439
|
}, 0)));
|
|
@@ -17450,13 +17450,13 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17450
17450
|
ie(A) && !k.attr("data-mce-object") && A !== ao.transparentSrc && (n(A) || !_0(e) && s(A)) && k.remove();
|
|
17451
17451
|
}
|
|
17452
17452
|
});
|
|
17453
|
-
},
|
|
17453
|
+
}, C9 = (e, n, s) => {
|
|
17454
17454
|
vq(e, n, s), yq(e);
|
|
17455
|
-
},
|
|
17455
|
+
}, k9 = (e, n) => {
|
|
17456
17456
|
n.get() === "text" ? (n.set("html"), ir(e, !1)) : (n.set("text"), ir(e, !0)), e.focus();
|
|
17457
17457
|
}, Oq = (e, n) => {
|
|
17458
17458
|
e.addCommand("mceTogglePlainTextPaste", () => {
|
|
17459
|
-
|
|
17459
|
+
k9(e, n);
|
|
17460
17460
|
}), e.addCommand("mceInsertClipboardContent", (s, a) => {
|
|
17461
17461
|
a.html && fT(e, a.html, a.internal, !1), a.text && mT(e, a.text, !1);
|
|
17462
17462
|
});
|
|
@@ -17469,9 +17469,9 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17469
17469
|
}
|
|
17470
17470
|
else
|
|
17471
17471
|
return !1;
|
|
17472
|
-
},
|
|
17472
|
+
}, T9 = (e, n, s, a) => {
|
|
17473
17473
|
wq(e.clipboardData, n.html, n.text) ? (e.preventDefault(), a()) : s(n.html, a);
|
|
17474
|
-
},
|
|
17474
|
+
}, _9 = (e) => (n, s) => {
|
|
17475
17475
|
const { dom: a, selection: d } = e, p = a.create("div", {
|
|
17476
17476
|
contenteditable: "false",
|
|
17477
17477
|
"data-mce-bogus": "all"
|
|
@@ -17489,11 +17489,11 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17489
17489
|
A.selectNodeContents(O), d.setRng(A), zn.setEditorTimeout(e, () => {
|
|
17490
17490
|
d.setRng(k), a.remove(p), s();
|
|
17491
17491
|
}, 0);
|
|
17492
|
-
},
|
|
17492
|
+
}, E9 = (e) => ({
|
|
17493
17493
|
html: Jj(e.selection.getContent({ contextual: !0 })),
|
|
17494
17494
|
text: e.selection.getContent({ format: "text" })
|
|
17495
|
-
}),
|
|
17496
|
-
!n.isDefaultPrevented() && $
|
|
17495
|
+
}), A9 = (e) => !!e.dom.getParent(e.selection.getStart(), "td[data-mce-selected],th[data-mce-selected]", e.getBody()), $9 = (e) => !e.selection.isCollapsed() || A9(e), xq = (e) => (n) => {
|
|
17496
|
+
!n.isDefaultPrevented() && $9(e) && e.selection.isEditable() && T9(n, E9(e), _9(e), () => {
|
|
17497
17497
|
if (ao.browser.isChromium() || ao.browser.isFirefox()) {
|
|
17498
17498
|
const s = e.selection.getRng();
|
|
17499
17499
|
zn.setEditorTimeout(e, () => {
|
|
@@ -17503,18 +17503,18 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17503
17503
|
e.execCommand("Delete");
|
|
17504
17504
|
});
|
|
17505
17505
|
}, Sq = (e) => (n) => {
|
|
17506
|
-
!n.isDefaultPrevented() && $
|
|
17506
|
+
!n.isDefaultPrevented() && $9(e) && T9(n, E9(e), _9(e), ft);
|
|
17507
17507
|
}, Cq = (e) => {
|
|
17508
17508
|
e.on("cut", xq(e)), e.on("copy", Sq(e));
|
|
17509
|
-
},
|
|
17509
|
+
}, P9 = (e, n) => {
|
|
17510
17510
|
var s, a;
|
|
17511
17511
|
return j0.getCaretRangeFromPoint((s = n.clientX) !== null && s !== void 0 ? s : 0, (a = n.clientY) !== null && a !== void 0 ? a : 0, e.getDoc());
|
|
17512
17512
|
}, kq = (e) => {
|
|
17513
17513
|
const n = e["text/plain"];
|
|
17514
17514
|
return n ? n.indexOf("file://") === 0 : !1;
|
|
17515
|
-
},
|
|
17515
|
+
}, D9 = (e, n) => {
|
|
17516
17516
|
e.focus(), n && e.selection.setRng(n);
|
|
17517
|
-
}, Tq = (e) => ze(e.files, (n) => /^image\//.test(n.type)),
|
|
17517
|
+
}, Tq = (e) => ze(e.files, (n) => /^image\//.test(n.type)), R9 = (e, n, s, a) => {
|
|
17518
17518
|
const d = e.getParent(s, (O) => Ad(n, O));
|
|
17519
17519
|
if (!ee(e.getParent(s, "summary")))
|
|
17520
17520
|
return !0;
|
|
@@ -17523,7 +17523,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17523
17523
|
return !ee(O.querySelector(d.nodeName.toLowerCase()));
|
|
17524
17524
|
} else
|
|
17525
17525
|
return !1;
|
|
17526
|
-
},
|
|
17526
|
+
}, M9 = (e) => {
|
|
17527
17527
|
e.on("input", (n) => {
|
|
17528
17528
|
const s = (a) => ee(a.querySelector("summary"));
|
|
17529
17529
|
if (n.inputType === "deleteByDrag") {
|
|
@@ -17544,16 +17544,16 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17544
17544
|
}), e.on("drop", (s) => {
|
|
17545
17545
|
if (s.isDefaultPrevented())
|
|
17546
17546
|
return;
|
|
17547
|
-
const a =
|
|
17547
|
+
const a = P9(e, s);
|
|
17548
17548
|
if (an(a))
|
|
17549
17549
|
return;
|
|
17550
17550
|
const d = gT(s.dataTransfer), p = b1(d, dT());
|
|
17551
|
-
if ((!wD(d) || kq(d)) &&
|
|
17551
|
+
if ((!wD(d) || kq(d)) && S9(e, s, a))
|
|
17552
17552
|
return;
|
|
17553
|
-
const O = d[dT()], k = O || d["text/html"] || d["text/plain"], A =
|
|
17553
|
+
const O = d[dT()], k = O || d["text/html"] || d["text/plain"], A = R9(e.dom, e.schema, a.startContainer, d), B = n.get();
|
|
17554
17554
|
B && !A || k && (s.preventDefault(), zn.setEditorTimeout(e, () => {
|
|
17555
17555
|
e.undoManager.transact(() => {
|
|
17556
|
-
(O || B && A) && e.execCommand("Delete"),
|
|
17556
|
+
(O || B && A) && e.execCommand("Delete"), D9(e, a);
|
|
17557
17557
|
const U = KO(k);
|
|
17558
17558
|
d["text/html"] ? fT(e, U, p, !0) : mT(e, U, !0);
|
|
17559
17559
|
});
|
|
@@ -17561,8 +17561,8 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17561
17561
|
}), e.on("dragstart", (s) => {
|
|
17562
17562
|
n.set(!0);
|
|
17563
17563
|
}), e.on("dragover dragend", (s) => {
|
|
17564
|
-
T0(e) && !n.get() && (s.preventDefault(),
|
|
17565
|
-
}),
|
|
17564
|
+
T0(e) && !n.get() && (s.preventDefault(), D9(e, P9(e, s))), s.type === "dragend" && n.set(!1);
|
|
17565
|
+
}), M9(e);
|
|
17566
17566
|
}, Eq = (e) => {
|
|
17567
17567
|
const n = (d) => (p) => {
|
|
17568
17568
|
d(e, p);
|
|
@@ -17574,7 +17574,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17574
17574
|
e.on("PastePreProcess", (s) => {
|
|
17575
17575
|
s.content = n(e, s.content, s.internal);
|
|
17576
17576
|
});
|
|
17577
|
-
}, $q = /rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,
|
|
17577
|
+
}, $q = /rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi, B9 = (e) => Bt.trim(e).replace($q, G1).toLowerCase(), Pq = (e, n, s) => {
|
|
17578
17578
|
const a = mw(e);
|
|
17579
17579
|
if (s || a === "all" || !y5(e))
|
|
17580
17580
|
return n;
|
|
@@ -17586,7 +17586,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17586
17586
|
for (let fe = 0; fe < d.length; fe++) {
|
|
17587
17587
|
const ue = q[d[fe]];
|
|
17588
17588
|
let be = ue, Qe = p.getStyle(O, d[fe], !0);
|
|
17589
|
-
/color/.test(d[fe]) && (be =
|
|
17589
|
+
/color/.test(d[fe]) && (be = B9(be), Qe = B9(Qe)), Qe !== be && (G[d[fe]] = ue);
|
|
17590
17590
|
}
|
|
17591
17591
|
const re = p.serializeStyle(G, "span");
|
|
17592
17592
|
return re ? A + ' style="' + re + '"' + U : A + U;
|
|
@@ -17599,9 +17599,9 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17599
17599
|
}, vT = (e) => {
|
|
17600
17600
|
const n = xr(!1), s = xr(gw(e) ? "text" : "html"), a = GO(e);
|
|
17601
17601
|
Dq(e), Oq(e, s), Eq(e), e.addQueryStateHandler("mceTogglePlainTextPaste", () => s.get() === "text"), e.on("PreInit", () => {
|
|
17602
|
-
Cq(e), _q(e, n),
|
|
17602
|
+
Cq(e), _q(e, n), C9(e, a, s);
|
|
17603
17603
|
});
|
|
17604
|
-
},
|
|
17604
|
+
}, N9 = (e) => {
|
|
17605
17605
|
e.on("click", (n) => {
|
|
17606
17606
|
e.dom.getParent(n.target, "details") && n.preventDefault();
|
|
17607
17607
|
});
|
|
@@ -17617,19 +17617,19 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17617
17617
|
s === "expanded" ? a.attr("open", "open") : s === "collapsed" && a.attr("open", null);
|
|
17618
17618
|
});
|
|
17619
17619
|
});
|
|
17620
|
-
},
|
|
17621
|
-
|
|
17622
|
-
},
|
|
17620
|
+
}, L9 = (e) => {
|
|
17621
|
+
N9(e), Rq(e);
|
|
17622
|
+
}, I9 = Ns, yT = zt, Mq = (e) => Ps(e.dom), F9 = (e) => Pt(e.dom), Q9 = (e) => (n) => Cs(Re.fromDom(e), n), Z9 = (e, n, s) => Mr(Re.fromDom(e), (a) => F9(a) || s.isBlock(ge(a)), Q9(n)).getOr(Re.fromDom(n)).dom, V9 = (e, n) => Mr(Re.fromDom(e), Mq, Q9(n)), xD = (e, n, s) => {
|
|
17623
17623
|
const a = new Ha(e, n), d = s ? a.next.bind(a) : a.prev.bind(a);
|
|
17624
17624
|
let p = e;
|
|
17625
|
-
for (let O = s ? e : d(); O && !
|
|
17625
|
+
for (let O = s ? e : d(); O && !I9(O); O = d())
|
|
17626
17626
|
Dd(O) && (p = O);
|
|
17627
17627
|
return p;
|
|
17628
17628
|
}, Bq = (e, n, s) => {
|
|
17629
|
-
const d = St.fromRangeStart(e).getNode(), p =
|
|
17630
|
-
return
|
|
17629
|
+
const d = St.fromRangeStart(e).getNode(), p = Z9(d, n, s), O = xD(d, p, !1), k = xD(d, p, !0), A = document.createRange();
|
|
17630
|
+
return V9(O, p).fold(() => {
|
|
17631
17631
|
yT(O) ? A.setStart(O, 0) : A.setStartBefore(O);
|
|
17632
|
-
}, (B) => A.setStartBefore(B.dom)),
|
|
17632
|
+
}, (B) => A.setStartBefore(B.dom)), V9(k, p).fold(() => {
|
|
17633
17633
|
yT(k) ? A.setEnd(k, k.data.length) : A.setEndAfter(k);
|
|
17634
17634
|
}, (B) => A.setEndAfter(B.dom)), A;
|
|
17635
17635
|
}, Nq = (e) => {
|
|
@@ -17644,11 +17644,11 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17644
17644
|
(function(e) {
|
|
17645
17645
|
e.Before = "before", e.After = "after";
|
|
17646
17646
|
})(kg || (kg = {}));
|
|
17647
|
-
const Iq = (e, n) => Math.abs(e.left - n), Fq = (e, n) => Math.abs(e.right - n),
|
|
17647
|
+
const Iq = (e, n) => Math.abs(e.left - n), Fq = (e, n) => Math.abs(e.right - n), H9 = (e, n) => e >= n.top && e <= n.bottom, Qq = (e, n) => e.top < n.bottom && e.bottom > n.top, Zq = (e, n) => {
|
|
17648
17648
|
const s = Ju(e, n) / Math.min(e.height, n.height);
|
|
17649
17649
|
return Qq(e, n) && s > 0.5;
|
|
17650
17650
|
}, Vq = (e, n) => {
|
|
17651
|
-
const s = wn(e, (a) =>
|
|
17651
|
+
const s = wn(e, (a) => H9(n, a));
|
|
17652
17652
|
return I_(s).fold(() => [
|
|
17653
17653
|
[],
|
|
17654
17654
|
e
|
|
@@ -17674,7 +17674,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17674
17674
|
fail: U
|
|
17675
17675
|
} = vo(A, (q) => q.top < s);
|
|
17676
17676
|
return O(k, zq).orThunk(() => O(U, tp)).orThunk(() => O(B, tp));
|
|
17677
|
-
},
|
|
17677
|
+
}, z9 = (e, n, s, a) => {
|
|
17678
17678
|
const d = (p, O) => {
|
|
17679
17679
|
const k = (B) => vn(B) && B.classList.contains("mce-drag-container"), A = wn(p.dom.childNodes, Dt(k));
|
|
17680
17680
|
return O.fold(() => e2(A, s, a, !0), (B) => {
|
|
@@ -17683,17 +17683,17 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17683
17683
|
}).orThunk(() => (Cs(p, e) ? Y.none() : Uf(p)).bind((U) => d(U, Y.some(p))));
|
|
17684
17684
|
};
|
|
17685
17685
|
return d(n, Y.none());
|
|
17686
|
-
},
|
|
17686
|
+
}, U9 = (e, n, s) => {
|
|
17687
17687
|
const a = Re.fromDom(e), d = Fu(a), O = Re.fromPoint(d, n, s).filter((k) => Gr(a, k)).getOr(a);
|
|
17688
|
-
return
|
|
17689
|
-
},
|
|
17688
|
+
return z9(a, O, n, s);
|
|
17689
|
+
}, W9 = (e, n, s) => U9(e, n, s).filter((a) => Ob(a.node)).map((a) => Hq(a, n)), j9 = (e) => {
|
|
17690
17690
|
var n, s;
|
|
17691
17691
|
const a = e.getBoundingClientRect(), d = e.ownerDocument, p = d.documentElement, O = d.defaultView;
|
|
17692
17692
|
return {
|
|
17693
17693
|
top: a.top + ((n = O == null ? void 0 : O.scrollY) !== null && n !== void 0 ? n : 0) - p.clientTop,
|
|
17694
17694
|
left: a.left + ((s = O == null ? void 0 : O.scrollX) !== null && s !== void 0 ? s : 0) - p.clientLeft
|
|
17695
17695
|
};
|
|
17696
|
-
}, Uq = (e) => e.inline ?
|
|
17696
|
+
}, Uq = (e) => e.inline ? j9(e.getBody()) : {
|
|
17697
17697
|
left: 0,
|
|
17698
17698
|
top: 0
|
|
17699
17699
|
}, lee = (e) => {
|
|
@@ -17714,9 +17714,9 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17714
17714
|
top: n.scrollTop || s.scrollTop
|
|
17715
17715
|
};
|
|
17716
17716
|
return e.inline ? a : d;
|
|
17717
|
-
},
|
|
17717
|
+
}, q9 = (e, n) => {
|
|
17718
17718
|
if (n.target.ownerDocument !== e.getDoc()) {
|
|
17719
|
-
const s =
|
|
17719
|
+
const s = j9(e.getContentAreaContainer()), a = Wq(e);
|
|
17720
17720
|
return {
|
|
17721
17721
|
left: n.pageX - s.left + a.left,
|
|
17722
17722
|
top: n.pageY - s.top + a.top
|
|
@@ -17729,15 +17729,15 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17729
17729
|
}, SD = (e, n, s) => ({
|
|
17730
17730
|
pageX: s.left - e.left + n.left,
|
|
17731
17731
|
pageY: s.top - e.top + n.top
|
|
17732
|
-
}), OT = (e, n) => SD(Uq(e), lee(e),
|
|
17732
|
+
}), OT = (e, n) => SD(Uq(e), lee(e), q9(e, n)), X9 = (e) => ({
|
|
17733
17733
|
target: e,
|
|
17734
17734
|
srcElement: e
|
|
17735
17735
|
}), jq = (e, n, s, a) => ({
|
|
17736
17736
|
...n,
|
|
17737
17737
|
dataTransfer: a,
|
|
17738
17738
|
type: e,
|
|
17739
|
-
...
|
|
17740
|
-
}),
|
|
17739
|
+
...X9(s)
|
|
17740
|
+
}), G9 = (e, n, s) => {
|
|
17741
17741
|
const a = hn("Function not supported on simulated event.");
|
|
17742
17742
|
return {
|
|
17743
17743
|
bubbles: !0,
|
|
@@ -17786,15 +17786,15 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17786
17786
|
initMouseEvent: a,
|
|
17787
17787
|
getModifierState: a,
|
|
17788
17788
|
dataTransfer: s,
|
|
17789
|
-
...
|
|
17789
|
+
...X9(n)
|
|
17790
17790
|
};
|
|
17791
17791
|
}, qq = (e, n) => {
|
|
17792
|
-
const s =
|
|
17793
|
-
return n === "dragstart" ? (dD(s),
|
|
17792
|
+
const s = l9(e);
|
|
17793
|
+
return n === "dragstart" ? (dD(s), r9(s)) : n === "drop" ? (Uj(s), fD(s)) : (Wj(s), Xj(s)), s;
|
|
17794
17794
|
}, CD = (e, n, s, a) => {
|
|
17795
17795
|
const d = qq(s, e);
|
|
17796
|
-
return nn(a) ?
|
|
17797
|
-
}, fS = 32, Xq = 100, wT = 8, mS = 16,
|
|
17796
|
+
return nn(a) ? G9(e, n, d) : jq(e, a, n, d);
|
|
17797
|
+
}, fS = 32, Xq = 100, wT = 8, mS = 16, Y9 = Ps, cee = F_(Y9, Pt), Gq = (e, n, s) => Y9(s) && s !== n && e.isEditable(s.parentElement), Yq = (e, n, s) => an(n) || n === s || e.dom.isChildOf(n, s) ? !1 : e.dom.isEditable(n), Kq = (e, n, s, a) => {
|
|
17798
17798
|
const d = e.dom, p = n.cloneNode(!0);
|
|
17799
17799
|
d.setStyles(p, {
|
|
17800
17800
|
width: s,
|
|
@@ -17819,7 +17819,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17819
17819
|
margin: 0,
|
|
17820
17820
|
boxSizing: "border-box"
|
|
17821
17821
|
}), O.appendChild(p), O;
|
|
17822
|
-
},
|
|
17822
|
+
}, K9 = (e, n) => {
|
|
17823
17823
|
e.parentNode !== n && n.appendChild(e);
|
|
17824
17824
|
}, xT = (e, n) => (s) => () => {
|
|
17825
17825
|
const a = e === "left" ? s.scrollX : s.scrollY;
|
|
@@ -17839,7 +17839,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17839
17839
|
}, Jq = (e, n) => {
|
|
17840
17840
|
const s = e.getParent(n.parentNode, e.isBlock);
|
|
17841
17841
|
kT(n), s && s !== e.getRoot() && e.isEmpty(s) && sf(Re.fromDom(s));
|
|
17842
|
-
}, Mp = (e) => e.button === 0,
|
|
17842
|
+
}, Mp = (e) => e.button === 0, J9 = (e, n) => ({
|
|
17843
17843
|
pageX: n.pageX - e.relX,
|
|
17844
17844
|
pageY: n.pageY + 5
|
|
17845
17845
|
}), eX = (e, n) => (s) => {
|
|
@@ -17865,7 +17865,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17865
17865
|
}
|
|
17866
17866
|
}
|
|
17867
17867
|
}, tX = (e, n, s) => {
|
|
17868
|
-
e._selectionOverrides.hideFakeCaret(),
|
|
17868
|
+
e._selectionOverrides.hideFakeCaret(), W9(e.getBody(), n, s).fold(() => e.selection.placeCaretAt(n, s), (a) => {
|
|
17869
17869
|
const d = e._selectionOverrides.showCaret(1, a.node, a.position === kg.Before, !1);
|
|
17870
17870
|
d ? e.selection.setRng(d) : e.selection.placeCaretAt(n, s);
|
|
17871
17871
|
});
|
|
@@ -17886,11 +17886,11 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17886
17886
|
p.dragging = !0, n.focus();
|
|
17887
17887
|
}
|
|
17888
17888
|
if (p.dragging) {
|
|
17889
|
-
const k = d.currentTarget === n.getDoc().documentElement, A =
|
|
17890
|
-
|
|
17889
|
+
const k = d.currentTarget === n.getDoc().documentElement, A = J9(p, OT(n, d));
|
|
17890
|
+
K9(p.ghost, n.getBody()), _D(p.ghost, A, p.width, p.height, p.maxX, p.maxY, d.clientY, d.clientX, n.getContentAreaContainer(), n.getWin(), a, k), s.throttle(d.clientX, d.clientY);
|
|
17891
17891
|
}
|
|
17892
17892
|
});
|
|
17893
|
-
},
|
|
17893
|
+
}, eI = (e) => {
|
|
17894
17894
|
const n = e.getSel();
|
|
17895
17895
|
if (We(n)) {
|
|
17896
17896
|
const a = n.getRangeAt(0).startContainer;
|
|
@@ -17901,7 +17901,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17901
17901
|
e.on((a) => {
|
|
17902
17902
|
var d;
|
|
17903
17903
|
if (a.intervalId.clear(), a.dragging) {
|
|
17904
|
-
if (Yq(n,
|
|
17904
|
+
if (Yq(n, eI(n.selection), a.element)) {
|
|
17905
17905
|
const p = (d = n.getDoc().elementFromPoint(s.clientX, s.clientY)) !== null && d !== void 0 ? d : n.getBody();
|
|
17906
17906
|
gS(n, "drop", p, a.dataTransfer, s).isDefaultPrevented() || n.undoManager.transact(() => {
|
|
17907
17907
|
Jq(n.dom, a.element), Kj(a.dataTransfer).each((k) => n.insertContent(k)), n._selectionOverrides.hideFakeCaret();
|
|
@@ -17909,12 +17909,12 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17909
17909
|
}
|
|
17910
17910
|
gS(n, "dragend", n.getBody(), a.dataTransfer, s);
|
|
17911
17911
|
}
|
|
17912
|
-
}),
|
|
17912
|
+
}), tI(e);
|
|
17913
17913
|
}, ED = (e, n, s) => {
|
|
17914
17914
|
e.on((a) => {
|
|
17915
17915
|
a.intervalId.clear(), a.dragging && s.fold(() => gS(n, "dragend", a.element, a.dataTransfer), (d) => gS(n, "dragend", a.element, a.dataTransfer, d));
|
|
17916
|
-
}),
|
|
17917
|
-
}, sX = (e, n) => (s) => ED(e, n, Y.some(s)),
|
|
17916
|
+
}), tI(e);
|
|
17917
|
+
}, sX = (e, n) => (s) => ED(e, n, Y.some(s)), tI = (e) => {
|
|
17918
17918
|
e.on((n) => {
|
|
17919
17919
|
n.intervalId.clear(), kT(n.ghost);
|
|
17920
17920
|
}), e.clear();
|
|
@@ -17925,7 +17925,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17925
17925
|
}), e.on("keydown", (A) => {
|
|
17926
17926
|
A.keyCode === fn.ESC && ED(n, e, Y.none());
|
|
17927
17927
|
});
|
|
17928
|
-
},
|
|
17928
|
+
}, nI = (e) => {
|
|
17929
17929
|
const n = (d) => {
|
|
17930
17930
|
if (!d.isDefaultPrevented()) {
|
|
17931
17931
|
const p = d.dataTransfer;
|
|
@@ -17950,7 +17950,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17950
17950
|
zn.setEditorTimeout(e, a, 0);
|
|
17951
17951
|
});
|
|
17952
17952
|
}, uee = (e) => {
|
|
17953
|
-
AD(e), Dy(e) &&
|
|
17953
|
+
AD(e), Dy(e) && nI(e);
|
|
17954
17954
|
}, rX = (e) => {
|
|
17955
17955
|
const n = h0(() => {
|
|
17956
17956
|
if (!e.removed && e.getBody().contains(document.activeElement)) {
|
|
@@ -17966,7 +17966,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17966
17966
|
}), e.on("blur", () => {
|
|
17967
17967
|
n.cancel();
|
|
17968
17968
|
});
|
|
17969
|
-
},
|
|
17969
|
+
}, oI = (e) => {
|
|
17970
17970
|
e.on("init", () => {
|
|
17971
17971
|
e.on("focusin", (n) => {
|
|
17972
17972
|
const s = n.target;
|
|
@@ -17999,7 +17999,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
17999
17999
|
return;
|
|
18000
18000
|
st(), en();
|
|
18001
18001
|
const Qt = TT(e, gt);
|
|
18002
|
-
pS(Qt) ? (Ct.preventDefault(), Hx(e, Qt).each(Ge)) :
|
|
18002
|
+
pS(Qt) ? (Ct.preventDefault(), Hx(e, Qt).each(Ge)) : W9(a, Ct.clientX, Ct.clientY).each(($n) => {
|
|
18003
18003
|
Ct.preventDefault();
|
|
18004
18004
|
const Kn = q(1, $n.node, $n.position === kg.Before, !1);
|
|
18005
18005
|
U(Kn), Xc(Qt) ? Qt.focus() : e.getBody().focus();
|
|
@@ -18024,7 +18024,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18024
18024
|
e.on("AfterSetSelectionRange", (Ct) => {
|
|
18025
18025
|
const gt = Ct.range, Qt = gt.startContainer.parentElement;
|
|
18026
18026
|
!ue(gt) && !Tn(Qt) && en(), A(Qt) || st();
|
|
18027
|
-
}), uee(e), rX(e),
|
|
18027
|
+
}), uee(e), rX(e), oI(e);
|
|
18028
18028
|
}, fe = (Tn) => Ku(Tn) || gs(Tn) || jl(Tn), ue = (Tn) => fe(Tn.startContainer) || fe(Tn.endContainer), be = (Tn) => {
|
|
18029
18029
|
const Ct = e.schema.getVoidElements(), gt = s.createRng(), Qt = Tn.startContainer, $n = Tn.startOffset, Kn = Tn.endContainer, wo = Tn.endOffset;
|
|
18030
18030
|
return jn(Ct, Qt.nodeName.toLowerCase()) ? $n === 0 ? gt.setStartBefore(Qt) : gt.setStartAfter(Qt) : gt.setStart(Qt, $n), jn(Ct, Kn.nodeName.toLowerCase()) ? wo === 0 ? gt.setEndBefore(Kn) : gt.setEndAfter(Kn) : gt.setEnd(Kn, wo), gt;
|
|
@@ -18105,7 +18105,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18105
18105
|
for (let a = e.previousSibling; zt(a); a = a.previousSibling)
|
|
18106
18106
|
s += a.data.length;
|
|
18107
18107
|
return s;
|
|
18108
|
-
},
|
|
18108
|
+
}, sI = (e, n, s, a, d) => {
|
|
18109
18109
|
if (zt(s) && (a < 0 || a > s.data.length))
|
|
18110
18110
|
return [];
|
|
18111
18111
|
const p = d && zt(s) ? [aX(s, a)] : [a];
|
|
@@ -18114,7 +18114,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18114
18114
|
p.push(e.nodeIndex(O, d)), O = O.parentNode;
|
|
18115
18115
|
return O === n ? p.reverse() : [];
|
|
18116
18116
|
}, _T = (e, n, s, a, d, p, O = !1) => {
|
|
18117
|
-
const k =
|
|
18117
|
+
const k = sI(e, n, s, a, O), A = sI(e, n, d, p, O);
|
|
18118
18118
|
return {
|
|
18119
18119
|
start: k,
|
|
18120
18120
|
end: A
|
|
@@ -18134,7 +18134,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18134
18134
|
}) => {
|
|
18135
18135
|
const O = document.createRange();
|
|
18136
18136
|
return O.setStart(s, a), O.setEnd(d, p), O;
|
|
18137
|
-
})),
|
|
18137
|
+
})), rI = (e, n, s, a = !1) => _T(e, n, s.startContainer, s.startOffset, s.endContainer, s.endOffset, a), t2 = (e, n, s) => {
|
|
18138
18138
|
if (n && e.isEmpty(n) && !s(n)) {
|
|
18139
18139
|
const a = n.parentNode;
|
|
18140
18140
|
e.remove(n, zt(n.firstChild) && qc(n.firstChild.data)), t2(e, a, s);
|
|
@@ -18155,25 +18155,25 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18155
18155
|
}, DD = (e, n, s, a) => {
|
|
18156
18156
|
const d = e.createRng();
|
|
18157
18157
|
return d.setStart(n, 0), d.setEnd(s, a), d.toString();
|
|
18158
|
-
},
|
|
18158
|
+
}, iI = (e, n) => e.create("span", {
|
|
18159
18159
|
"data-mce-type": "bookmark",
|
|
18160
18160
|
id: n
|
|
18161
18161
|
}), n2 = (e, n) => {
|
|
18162
18162
|
const s = e.createRng();
|
|
18163
18163
|
return s.setStartAfter(n.start), s.setEndBefore(n.end), s;
|
|
18164
|
-
},
|
|
18164
|
+
}, aI = (e, n, s) => {
|
|
18165
18165
|
const a = $D(e.getRoot(), s).getOrDie("Unable to resolve path range"), d = a.startContainer, p = a.endContainer, O = a.endOffset === 0 ? p : p.splitText(a.endOffset), k = a.startOffset === 0 ? d : d.splitText(a.startOffset), A = k.parentNode, B = O.parentNode;
|
|
18166
18166
|
return {
|
|
18167
18167
|
prefix: n,
|
|
18168
|
-
end: B.insertBefore(
|
|
18169
|
-
start: A.insertBefore(
|
|
18168
|
+
end: B.insertBefore(iI(e, n + "-end"), O),
|
|
18169
|
+
start: A.insertBefore(iI(e, n + "-start"), k)
|
|
18170
18170
|
};
|
|
18171
|
-
},
|
|
18171
|
+
}, lI = (e, n, s) => {
|
|
18172
18172
|
t2(e, e.get(n.prefix + "-end"), s), t2(e, e.get(n.prefix + "-start"), s);
|
|
18173
18173
|
}, RD = (e) => e.start.length === 0, lX = (e) => (n, s) => {
|
|
18174
18174
|
const d = n.data.substring(0, s), p = d.lastIndexOf(e.charAt(e.length - 1)), O = d.lastIndexOf(e);
|
|
18175
18175
|
return O !== -1 ? O + e.length : p !== -1 ? p + 1 : -1;
|
|
18176
|
-
},
|
|
18176
|
+
}, cI = (e, n, s, a) => {
|
|
18177
18177
|
const d = n.start;
|
|
18178
18178
|
return _P(e, a.container, a.offset, lX(d), s).bind((O) => {
|
|
18179
18179
|
var k, A;
|
|
@@ -18186,7 +18186,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18186
18186
|
return F4(O.container, q, s).map((G) => {
|
|
18187
18187
|
const re = e.createRng();
|
|
18188
18188
|
return re.setStart(G.container, G.offset), re.setEnd(O.container, O.offset), re;
|
|
18189
|
-
}).filter((G) => G.toString() === d).orThunk(() =>
|
|
18189
|
+
}).filter((G) => G.toString() === d).orThunk(() => cI(e, n, s, Am(O.container, 0)));
|
|
18190
18190
|
}
|
|
18191
18191
|
});
|
|
18192
18192
|
}, cX = (e, n, s, a, d, p = !1) => {
|
|
@@ -18194,7 +18194,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18194
18194
|
const O = e.createRng();
|
|
18195
18195
|
return O.setStart(s, a), O.setEnd(s, a), Y.some(O);
|
|
18196
18196
|
}
|
|
18197
|
-
return TP(s, a, d).bind((O) =>
|
|
18197
|
+
return TP(s, a, d).bind((O) => cI(e, n, d, O).bind((A) => {
|
|
18198
18198
|
var B;
|
|
18199
18199
|
if (p) {
|
|
18200
18200
|
if (A.endContainer === O.container && A.endOffset === O.offset)
|
|
@@ -18223,7 +18223,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18223
18223
|
position: B
|
|
18224
18224
|
}), re = G.position;
|
|
18225
18225
|
return cX(d, O, re.container, re.offset, n, q.isNone()).map((ue) => {
|
|
18226
|
-
const be =
|
|
18226
|
+
const be = rI(d, p, ue, a);
|
|
18227
18227
|
return {
|
|
18228
18228
|
matches: G.matches.concat([{
|
|
18229
18229
|
pattern: O,
|
|
@@ -18257,13 +18257,13 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18257
18257
|
}
|
|
18258
18258
|
return Y.none();
|
|
18259
18259
|
});
|
|
18260
|
-
},
|
|
18260
|
+
}, uI = (e, n, s) => {
|
|
18261
18261
|
e.selection.setRng(s), n.type === "inline-format" ? xe(n.format, (a) => {
|
|
18262
18262
|
e.formatter.apply(a);
|
|
18263
18263
|
}) : e.execCommand(n.cmd, !1, n.value);
|
|
18264
|
-
},
|
|
18264
|
+
}, dI = (e, n, s, a) => {
|
|
18265
18265
|
const d = n2(e.dom, s);
|
|
18266
|
-
ET(e.dom, d, a),
|
|
18266
|
+
ET(e.dom, d, a), uI(e, n, d);
|
|
18267
18267
|
}, uX = (e, n, s, a, d) => {
|
|
18268
18268
|
const p = e.dom, O = n2(p, a), k = n2(p, s);
|
|
18269
18269
|
ET(p, k, d), ET(p, O, d);
|
|
@@ -18272,17 +18272,17 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18272
18272
|
start: s.end,
|
|
18273
18273
|
end: a.start
|
|
18274
18274
|
}, B = n2(p, A);
|
|
18275
|
-
|
|
18275
|
+
uI(e, n, B);
|
|
18276
18276
|
}, dX = (e, n) => {
|
|
18277
18277
|
const s = Jv("mce_textpattern"), a = Bs(n, (d, p) => {
|
|
18278
|
-
const O =
|
|
18278
|
+
const O = aI(e, s + `_end${d.length}`, p.endRng);
|
|
18279
18279
|
return d.concat([{
|
|
18280
18280
|
...p,
|
|
18281
18281
|
endMarker: O
|
|
18282
18282
|
}]);
|
|
18283
18283
|
}, []);
|
|
18284
18284
|
return Bs(a, (d, p) => {
|
|
18285
|
-
const O = a.length - d.length - 1, k = RD(p.pattern) ? p.endMarker :
|
|
18285
|
+
const O = a.length - d.length - 1, k = RD(p.pattern) ? p.endMarker : aI(e, s + `_start${O}`, p.startRng);
|
|
18286
18286
|
return d.concat([{
|
|
18287
18287
|
...p,
|
|
18288
18288
|
startMarker: k
|
|
@@ -18291,24 +18291,24 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18291
18291
|
}, hX = (e) => No(e, (n, s) => s.end.length - n.end.length), fX = (e, n) => {
|
|
18292
18292
|
const s = rs(e, (a) => ze(n, (d) => a.pattern.start === d.pattern.start && a.pattern.end === d.pattern.end));
|
|
18293
18293
|
return e.length === n.length ? s ? e : n : e.length > n.length ? e : n;
|
|
18294
|
-
},
|
|
18294
|
+
}, hI = (e, n, s, a, d, p) => {
|
|
18295
18295
|
const O = AT(e, d.inlinePatterns, s, a, n, p).fold(() => [], (A) => A.matches), k = AT(e, hX(d.inlinePatterns), s, a, n, p).fold(() => [], (A) => A.matches);
|
|
18296
18296
|
return fX(O, k);
|
|
18297
|
-
},
|
|
18297
|
+
}, fI = (e, n) => {
|
|
18298
18298
|
if (n.length === 0)
|
|
18299
18299
|
return;
|
|
18300
18300
|
const s = e.dom, a = e.selection.getBookmark(), d = dX(s, n);
|
|
18301
18301
|
xe(d, (p) => {
|
|
18302
18302
|
const O = s.getParent(p.startMarker.start, s.isBlock), k = (A) => A === O;
|
|
18303
|
-
RD(p.pattern) ?
|
|
18303
|
+
RD(p.pattern) ? dI(e, p.pattern, p.endMarker, k) : uX(e, p.pattern, p.startMarker, p.endMarker, k), lI(s, p.endMarker, k), lI(s, p.startMarker, k);
|
|
18304
18304
|
}), e.selection.moveToBookmark(a);
|
|
18305
|
-
},
|
|
18305
|
+
}, mI = (e, n, s) => rW(n, 0, n).map((a) => {
|
|
18306
18306
|
const d = a.container;
|
|
18307
18307
|
return HN(d, s.start.length, n).each((p) => {
|
|
18308
18308
|
const O = e.createRng();
|
|
18309
18309
|
O.setStart(d, 0), O.setEnd(p.container, p.offset), ET(e, O, (k) => k === n);
|
|
18310
18310
|
}), d;
|
|
18311
|
-
}),
|
|
18311
|
+
}), gI = (e) => (n, s) => {
|
|
18312
18312
|
const a = n.dom, d = s.pattern, p = $D(a.getRoot(), s.range).getOrDie("Unable to resolve path range"), O = (k, A) => {
|
|
18313
18313
|
const B = A.get(k);
|
|
18314
18314
|
return it(B) && Lo(B).exists((U) => jn(U, "block"));
|
|
@@ -18320,8 +18320,8 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18320
18320
|
e(n.dom, k, d), n.execCommand(d.cmd, !1, d.value);
|
|
18321
18321
|
});
|
|
18322
18322
|
}), !0;
|
|
18323
|
-
},
|
|
18324
|
-
const a =
|
|
18323
|
+
}, pI = (e) => No(e, (n, s) => s.start.length - n.start.length), bI = (e) => (n, s) => {
|
|
18324
|
+
const a = pI(n), d = s.replace(ji, " ");
|
|
18325
18325
|
return es(a, (p) => e(p, s, d));
|
|
18326
18326
|
}, $T = (e, n) => (s, a, d, p, O) => {
|
|
18327
18327
|
var k;
|
|
@@ -18331,16 +18331,16 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18331
18331
|
pattern: U,
|
|
18332
18332
|
range: _T(A, A.getRoot(), a, 0, a, 0, p)
|
|
18333
18333
|
}]).getOr([]) : [];
|
|
18334
|
-
}, mX = (e) => /^\s[^\s]/.test(e), gX =
|
|
18335
|
-
|
|
18334
|
+
}, mX = (e) => /^\s[^\s]/.test(e), gX = gI((e, n, s) => {
|
|
18335
|
+
mI(e, n, s).each((a) => {
|
|
18336
18336
|
const d = Re.fromDom(a), p = p0(d);
|
|
18337
18337
|
mX(p) && sC(d, p.slice(1));
|
|
18338
18338
|
});
|
|
18339
|
-
}), pX =
|
|
18339
|
+
}), pX = bI((e, n, s) => n.indexOf(e.start) === 0 || s.indexOf(e.start) === 0), bX = $T(pX, !0), vX = (e, n) => {
|
|
18340
18340
|
const s = e.selection.getRng();
|
|
18341
18341
|
return vS(e, s).map((a) => {
|
|
18342
18342
|
var d;
|
|
18343
|
-
const p = Math.max(0, s.startOffset), O = PD(n, a, (d = a.textContent) !== null && d !== void 0 ? d : ""), k =
|
|
18343
|
+
const p = Math.max(0, s.startOffset), O = PD(n, a, (d = a.textContent) !== null && d !== void 0 ? d : ""), k = hI(e, a, s.startContainer, p, O, !0), A = bX(e, a, O, !0);
|
|
18344
18344
|
return {
|
|
18345
18345
|
inlineMatches: k,
|
|
18346
18346
|
blockMatches: A
|
|
@@ -18351,7 +18351,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18351
18351
|
return;
|
|
18352
18352
|
const s = e.selection.getBookmark();
|
|
18353
18353
|
xe(n, (a) => gX(e, a)), e.selection.moveToBookmark(s);
|
|
18354
|
-
}, yX =
|
|
18354
|
+
}, yX = gI(mI), OX = bI((e, n, s) => n === e.start || s === e.start), wX = $T(OX, !1), xX = (e, n) => {
|
|
18355
18355
|
const s = e.selection.getRng();
|
|
18356
18356
|
return vS(e, s).map((a) => {
|
|
18357
18357
|
const d = Math.max(0, s.startOffset), p = DD(e.dom, a, s.startContainer, d), O = PD(n, a, p);
|
|
@@ -18362,7 +18362,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18362
18362
|
}, CX = (e, n) => vX(e, n).fold(Ye, ({ inlineMatches: s, blockMatches: a }) => (e.undoManager.add(), e.undoManager.extra(() => {
|
|
18363
18363
|
e.execCommand("mceInsertNewLine");
|
|
18364
18364
|
}, () => {
|
|
18365
|
-
L_(e),
|
|
18365
|
+
L_(e), fI(e, s), PT(e, a);
|
|
18366
18366
|
const d = e.selection.getRng(), p = TP(d.startContainer, d.startOffset, e.dom.getRoot());
|
|
18367
18367
|
e.execCommand("mceInsertNewLine"), p.each((O) => {
|
|
18368
18368
|
const k = O.container;
|
|
@@ -18371,19 +18371,19 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18371
18371
|
}), !0)), kX = (e, n) => {
|
|
18372
18372
|
const s = e.selection.getRng();
|
|
18373
18373
|
vS(e, s).map((a) => {
|
|
18374
|
-
const d = Math.max(0, s.startOffset - 1), p = DD(e.dom, a, s.startContainer, d), O = PD(n, a, p), k =
|
|
18374
|
+
const d = Math.max(0, s.startOffset - 1), p = DD(e.dom, a, s.startContainer, d), O = PD(n, a, p), k = hI(e, a, s.startContainer, d, O, !1);
|
|
18375
18375
|
k.length > 0 && e.undoManager.transact(() => {
|
|
18376
|
-
|
|
18376
|
+
fI(e, k);
|
|
18377
18377
|
});
|
|
18378
18378
|
});
|
|
18379
18379
|
}, TX = (e, n) => xX(e, n).fold(Ye, (s) => (e.undoManager.transact(() => {
|
|
18380
18380
|
SX(e, s);
|
|
18381
|
-
}), !0)),
|
|
18381
|
+
}), !0)), vI = (e, n, s) => {
|
|
18382
18382
|
for (let a = 0; a < e.length; a++)
|
|
18383
18383
|
if (s(e[a], n))
|
|
18384
18384
|
return !0;
|
|
18385
18385
|
return !1;
|
|
18386
|
-
},
|
|
18386
|
+
}, yI = (e, n) => vI(e, n, (s, a) => s === a.keyCode && !fn.modifierPressed(a)), _X = (e, n) => vI(e, n, (s, a) => s.charCodeAt(0) === a.charCode), OI = (e) => {
|
|
18387
18387
|
const n = [
|
|
18388
18388
|
",",
|
|
18389
18389
|
".",
|
|
@@ -18410,12 +18410,12 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18410
18410
|
}
|
|
18411
18411
|
};
|
|
18412
18412
|
e.on("keyup", (O) => {
|
|
18413
|
-
|
|
18413
|
+
yI(s, O) && p();
|
|
18414
18414
|
}), e.on("keypress", (O) => {
|
|
18415
18415
|
_X(n, O) && zn.setEditorTimeout(e, p);
|
|
18416
18416
|
});
|
|
18417
18417
|
}, EX = (e) => {
|
|
18418
|
-
|
|
18418
|
+
OI(e);
|
|
18419
18419
|
}, AX = (e) => {
|
|
18420
18420
|
const n = Bt.each, s = fn.BACKSPACE, a = fn.DELETE, d = e.dom, p = e.selection, O = e.parser, k = ao.browser, A = k.isFirefox(), B = k.isChromium() || k.isSafari(), U = ao.deviceType.isiPhone() || ao.deviceType.isiPad(), q = ao.os.isMacOS() || ao.os.isiOS(), G = (Sn, ho) => {
|
|
18421
18421
|
try {
|
|
@@ -18613,7 +18613,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18613
18613
|
refreshContentEditable: ul,
|
|
18614
18614
|
isHidden: un
|
|
18615
18615
|
};
|
|
18616
|
-
},
|
|
18616
|
+
}, wI = (e) => e.toLowerCase() === "gpl", yS = (e) => e.length >= 64 && e.length <= 255, $X = (e) => wI(e) || yS(e) ? "VALID" : "INVALID", xI = (e) => {
|
|
18617
18617
|
const n = S5(e);
|
|
18618
18618
|
!ie(C5(e)) && (nn(n) || $X(n) === "INVALID") && console.warn("TinyMCE is running in evaluation mode. Provide a valid license key or add license_key: 'gpl' to the init config to agree to the open source license terms. Read more at https://www.tiny.cloud/license-key/");
|
|
18619
18619
|
}, BD = kr.DOM, PX = (e, n) => {
|
|
@@ -18647,7 +18647,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18647
18647
|
blob_cache: s,
|
|
18648
18648
|
document: e.getDoc()
|
|
18649
18649
|
});
|
|
18650
|
-
},
|
|
18650
|
+
}, SI = (e) => {
|
|
18651
18651
|
const n = e.options.get;
|
|
18652
18652
|
return ND({
|
|
18653
18653
|
custom_elements: n("custom_elements"),
|
|
@@ -18662,11 +18662,11 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18662
18662
|
verify_html: n("verify_html"),
|
|
18663
18663
|
padd_empty_block_inline_children: n("format_empty_lines")
|
|
18664
18664
|
});
|
|
18665
|
-
},
|
|
18665
|
+
}, CI = (e) => {
|
|
18666
18666
|
const n = e.options.get;
|
|
18667
18667
|
return {
|
|
18668
18668
|
...LD(e),
|
|
18669
|
-
...
|
|
18669
|
+
...SI(e),
|
|
18670
18670
|
...ND({
|
|
18671
18671
|
remove_trailing_brs: n("remove_trailing_brs"),
|
|
18672
18672
|
pad_empty_with_br: n("pad_empty_with_br"),
|
|
@@ -18743,7 +18743,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18743
18743
|
ID(e).loadAll(d)
|
|
18744
18744
|
];
|
|
18745
18745
|
return e.inline ? O : O.concat([e.ui.styleSheetLoader.loadAll(s)]);
|
|
18746
|
-
},
|
|
18746
|
+
}, kI = (e) => {
|
|
18747
18747
|
const n = ID(e), s = aw(e), a = e.contentCSS, d = () => {
|
|
18748
18748
|
n.unloadAll(a), e.inline || e.ui.styleSheetLoader.unloadAll(s);
|
|
18749
18749
|
}, p = () => {
|
|
@@ -18793,7 +18793,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18793
18793
|
let s = e.getDoc();
|
|
18794
18794
|
e.inline && (BD.addClass(n, "mce-content-body"), e.contentDocument = s = document, e.contentWindow = window, e.bodyElement = n, e.contentAreaContainer = n);
|
|
18795
18795
|
const a = e.getBody();
|
|
18796
|
-
a.disabled = !0, e.readonly = hw(e), e._editableRoot = m5(e), !pb(e) && e.hasEditableRoot() && (e.inline && BD.getStyle(a, "position", !0) === "static" && (a.style.position = "relative"), a.contentEditable = "true"), a.disabled = !1, e.editorUpload = mz(e), e.schema = er(
|
|
18796
|
+
a.disabled = !0, e.readonly = hw(e), e._editableRoot = m5(e), !pb(e) && e.hasEditableRoot() && (e.inline && BD.getStyle(a, "position", !0) === "static" && (a.style.position = "relative"), a.contentEditable = "true"), a.disabled = !1, e.editorUpload = mz(e), e.schema = er(SI(e)), e.dom = kr(s, {
|
|
18797
18797
|
keep_values: !0,
|
|
18798
18798
|
url_converter: e.convertURL,
|
|
18799
18799
|
url_converter_scope: e,
|
|
@@ -18806,17 +18806,17 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18806
18806
|
onSetAttrib: (O) => {
|
|
18807
18807
|
e.dispatch("SetAttrib", O);
|
|
18808
18808
|
}
|
|
18809
|
-
}), e.parser = RX(e), e.serializer = A7(
|
|
18809
|
+
}), e.parser = RX(e), e.serializer = A7(CI(e), e), e.selection = _7(e.dom, e.getWin(), e.serializer, e), e.annotator = pr(e), e.formatter = Ap(e), e.undoManager = rB(e), e._nodeChangeDispatcher = new Qj(e), e._selectionOverrides = iX(e), SU(e), L9(e), mP(e), Rh(e) || (Lq(e), EX(e));
|
|
18810
18810
|
const d = Fj(e);
|
|
18811
18811
|
_4(e, d), _U(e), xz(e), vT(e);
|
|
18812
18812
|
const p = h7(e);
|
|
18813
|
-
IX(e),
|
|
18813
|
+
IX(e), xI(e), p.fold(() => {
|
|
18814
18814
|
const O = FD(e);
|
|
18815
|
-
|
|
18815
|
+
kI(e).then(() => {
|
|
18816
18816
|
DT(e), O();
|
|
18817
18817
|
});
|
|
18818
18818
|
}, (O) => {
|
|
18819
|
-
e.setProgressState(!0),
|
|
18819
|
+
e.setProgressState(!0), kI(e).then(() => {
|
|
18820
18820
|
O().then((k) => {
|
|
18821
18821
|
e.setProgressState(!1), DT(e), w7(e);
|
|
18822
18822
|
}, (k) => {
|
|
@@ -18827,7 +18827,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18827
18827
|
});
|
|
18828
18828
|
});
|
|
18829
18829
|
});
|
|
18830
|
-
},
|
|
18830
|
+
}, TI = xt, QX = (e, n, s) => z(e, n, TI, s), ZD = kr.DOM, ZX = (e, n, s, a) => {
|
|
18831
18831
|
const d = Re.fromTag("iframe");
|
|
18832
18832
|
return a.each((p) => Xr(d, "tabindex", p)), hi(d, s), hi(d, {
|
|
18833
18833
|
id: e + "_ifr",
|
|
@@ -18835,16 +18835,16 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18835
18835
|
allowTransparency: "true",
|
|
18836
18836
|
title: n
|
|
18837
18837
|
}), hu(d, "tox-edit-area__iframe"), d;
|
|
18838
|
-
},
|
|
18838
|
+
}, _I = (e) => {
|
|
18839
18839
|
let n = ip(e) + "<html><head>";
|
|
18840
18840
|
FC(e) !== e.documentBaseUrl && (n += '<base href="' + e.documentBaseURI.getURI() + '" />'), n += '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';
|
|
18841
18841
|
const s = Yc(e), a = XR(e), d = e.translate(fm(e));
|
|
18842
18842
|
return QC(e) && (n += '<meta http-equiv="Content-Security-Policy" content="' + QC(e) + '" />'), n += `</head><body id="${s}" class="mce-content-body ${a}" data-id="${e.id}" aria-label="${d}"><br></body></html>`, n;
|
|
18843
|
-
},
|
|
18843
|
+
}, EI = (e, n) => {
|
|
18844
18844
|
const s = ao.browser.isFirefox() ? fm(e) : "Rich Text Area", a = e.translate(s), d = Vr(Re.fromDom(e.getElement()), "tabindex").bind(di), p = ZX(e.id, a, EQ(e), d).dom;
|
|
18845
18845
|
p.onload = () => {
|
|
18846
18846
|
p.onload = null, e.dispatch("load");
|
|
18847
|
-
}, e.contentAreaContainer = n.iframeContainer, e.iframeElement = p, e.iframeHTML =
|
|
18847
|
+
}, e.contentAreaContainer = n.iframeContainer, e.iframeElement = p, e.iframeHTML = _I(e), ZD.add(n.iframeContainer, p);
|
|
18848
18848
|
}, VX = (e) => {
|
|
18849
18849
|
const n = e.iframeElement, s = () => {
|
|
18850
18850
|
e.contentDocument = n.contentDocument, QD(e);
|
|
@@ -18859,7 +18859,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18859
18859
|
n.srcdoc = e.iframeHTML;
|
|
18860
18860
|
}
|
|
18861
18861
|
}, HX = (e, n) => {
|
|
18862
|
-
|
|
18862
|
+
EI(e, n), n.editorContainer && (n.editorContainer.style.display = e.orgDisplay, e.hidden = ZD.isHidden(n.editorContainer)), e.getElement().style.display = "none", ZD.setAttrib(e.id, "aria-hidden", "true"), e.getElement().style.visibility = e.orgVisibility, VX(e);
|
|
18863
18863
|
}, RT = kr.DOM, MT = (e, n, s) => {
|
|
18864
18864
|
const a = MO.get(s), d = MO.urls[s] || e.documentBaseUrl.replace(/\/$/, "");
|
|
18865
18865
|
if (s = Bt.trim(s), a && Bt.inArray(n, s) === -1) {
|
|
@@ -18892,7 +18892,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18892
18892
|
e.theme = s(e, Tm.urls[n]) || {}, ye(e.theme.init) && e.theme.init(e, Tm.urls[n] || e.documentBaseUrl.replace(/\/$/, ""));
|
|
18893
18893
|
} else
|
|
18894
18894
|
e.theme = {};
|
|
18895
|
-
},
|
|
18895
|
+
}, AI = (e) => {
|
|
18896
18896
|
const n = C0(e), s = RO.get(n);
|
|
18897
18897
|
e.model = s(e, RO.urls[n]);
|
|
18898
18898
|
}, zX = (e) => {
|
|
@@ -18928,13 +18928,13 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18928
18928
|
...s
|
|
18929
18929
|
};
|
|
18930
18930
|
}, fv = async (e) => {
|
|
18931
|
-
e.dispatch("ScriptsLoaded"), NT(e), o2(e),
|
|
18931
|
+
e.dispatch("ScriptsLoaded"), NT(e), o2(e), AI(e), Bp(e);
|
|
18932
18932
|
const n = await IT(e);
|
|
18933
18933
|
v1(e, Y.from(n.api).getOr({})), e.editorContainer = n.editorContainer, yg(e), e.inline ? QD(e) : HX(e, {
|
|
18934
18934
|
editorContainer: n.editorContainer,
|
|
18935
18935
|
iframeContainer: n.iframeContainer
|
|
18936
18936
|
});
|
|
18937
|
-
}, y1 = kr.DOM, $
|
|
18937
|
+
}, y1 = kr.DOM, $I = (e) => e.charAt(0) === "-", jX = (e, n) => {
|
|
18938
18938
|
const s = iw(n), a = a5(n);
|
|
18939
18939
|
if (!xh.hasCode(s) && s !== "en") {
|
|
18940
18940
|
const d = So(a) ? a : `${n.editorManager.baseURL}/langs/${s}.js`;
|
|
@@ -18944,7 +18944,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18944
18944
|
}
|
|
18945
18945
|
}, qX = (e, n) => {
|
|
18946
18946
|
const s = S0(e);
|
|
18947
|
-
if (ie(s) && !$
|
|
18947
|
+
if (ie(s) && !$I(s) && !jn(Tm.urls, s)) {
|
|
18948
18948
|
const a = h5(e), d = a ? e.documentBaseURI.toAbsolute(a) : `themes/${s}/theme${n}.js`;
|
|
18949
18949
|
Tm.load(s, d).catch(() => {
|
|
18950
18950
|
oz(e, d, s);
|
|
@@ -18961,11 +18961,11 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18961
18961
|
}, GX = (e) => Y.from(VC(e)).filter(So).map((n) => ({
|
|
18962
18962
|
url: n,
|
|
18963
18963
|
name: Y.none()
|
|
18964
|
-
})),
|
|
18964
|
+
})), PI = (e, n, s) => Y.from(n).filter((a) => So(a) && !J3.has(a)).map((a) => ({
|
|
18965
18965
|
url: `${e.editorManager.baseURL}/icons/${a}/icons${s}.js`,
|
|
18966
18966
|
name: Y.some(a)
|
|
18967
|
-
})),
|
|
18968
|
-
const a =
|
|
18967
|
+
})), DI = (e, n, s) => {
|
|
18968
|
+
const a = PI(n, "default", s), d = GX(n).orThunk(() => PI(n, ky(n), ""));
|
|
18969
18969
|
xe(uc([
|
|
18970
18970
|
a,
|
|
18971
18971
|
d
|
|
@@ -18983,7 +18983,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18983
18983
|
Xt(Md(e), (a, d) => {
|
|
18984
18984
|
s(d, a), e.options.set("plugins", Py(e).concat(d));
|
|
18985
18985
|
}), xe(Py(e), (a) => {
|
|
18986
|
-
a = Bt.trim(a), a && !MO.urls[a] && !$
|
|
18986
|
+
a = Bt.trim(a), a && !MO.urls[a] && !$I(a) && s(a, `plugins/${a}/plugin${n}.js`);
|
|
18987
18987
|
});
|
|
18988
18988
|
}, KX = (e) => {
|
|
18989
18989
|
const n = S0(e);
|
|
@@ -18995,7 +18995,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
18995
18995
|
const s = vh.ScriptLoader, a = () => {
|
|
18996
18996
|
!e.removed && KX(e) && JX(e) && fv(e);
|
|
18997
18997
|
};
|
|
18998
|
-
qX(e, n), XX(e, n), jX(s, e),
|
|
18998
|
+
qX(e, n), XX(e, n), jX(s, e), DI(s, e, n), YX(e, n), s.loadQueue().then(a, a);
|
|
18999
18999
|
}, eG = (e, n) => xl.forElement(e, {
|
|
19000
19000
|
contentCssCors: $y(n),
|
|
19001
19001
|
referrerPolicy: Ty(n)
|
|
@@ -19036,10 +19036,10 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
19036
19036
|
}, e.editorManager.on("BeforeUnload", e._beforeUnload)), e.editorManager.add(e), hee(e, e.suffix);
|
|
19037
19037
|
}, tG = (e, n) => {
|
|
19038
19038
|
e._editableRoot !== n && (e._editableRoot = n, _p(e) || (e.getBody().contentEditable = String(e.hasEditableRoot()), e.nodeChanged()), Wa(e, n));
|
|
19039
|
-
}, nG = (e) => e._editableRoot,
|
|
19039
|
+
}, nG = (e) => e._editableRoot, RI = (e, n) => ({
|
|
19040
19040
|
sections: wt(e),
|
|
19041
19041
|
options: wt(n)
|
|
19042
|
-
}),
|
|
19042
|
+
}), MI = se().deviceType, zD = MI.isPhone(), oG = MI.isTablet(), mv = (e) => {
|
|
19043
19043
|
if (an(e))
|
|
19044
19044
|
return [];
|
|
19045
19045
|
{
|
|
@@ -19048,11 +19048,11 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
19048
19048
|
}
|
|
19049
19049
|
}, sG = (e, n) => {
|
|
19050
19050
|
const s = Qi(n, (a, d) => Ne(e, d));
|
|
19051
|
-
return
|
|
19051
|
+
return RI(s.t, s.f);
|
|
19052
19052
|
}, rG = (e, n, s = {}) => {
|
|
19053
19053
|
const a = e.sections(), d = xs(a, n).getOr({});
|
|
19054
19054
|
return Bt.extend({}, s, d);
|
|
19055
|
-
}, UD = (e, n) => jn(e.sections(), n), iG = (e, n) => UD(e, n) ? e.sections()[n] : {},
|
|
19055
|
+
}, UD = (e, n) => jn(e.sections(), n), iG = (e, n) => UD(e, n) ? e.sections()[n] : {}, BI = (e, n) => ({
|
|
19056
19056
|
...{
|
|
19057
19057
|
table_grid: !1,
|
|
19058
19058
|
object_resizing: !1,
|
|
@@ -19065,23 +19065,23 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
19065
19065
|
var s;
|
|
19066
19066
|
const a = (s = n.external_plugins) !== null && s !== void 0 ? s : {};
|
|
19067
19067
|
return e && e.external_plugins ? Bt.extend({}, e.external_plugins, a) : a;
|
|
19068
|
-
},
|
|
19068
|
+
}, NI = (e, n) => [
|
|
19069
19069
|
...mv(e),
|
|
19070
19070
|
...mv(n)
|
|
19071
19071
|
], jD = (e, n, s, a) => e && UD(n, "mobile") ? a : s, aG = (e, n, s, a) => {
|
|
19072
|
-
const d = mv(s.forced_plugins), p = mv(a.plugins), O = iG(n, "mobile"), k = O.plugins ? mv(O.plugins) : p, A = jD(e, n, p, k), B =
|
|
19072
|
+
const d = mv(s.forced_plugins), p = mv(a.plugins), O = iG(n, "mobile"), k = O.plugins ? mv(O.plugins) : p, A = jD(e, n, p, k), B = NI(d, A);
|
|
19073
19073
|
return Bt.extend(a, {
|
|
19074
19074
|
forced_plugins: d,
|
|
19075
19075
|
plugins: B
|
|
19076
19076
|
});
|
|
19077
19077
|
}, fee = (e, n) => e && UD(n, "mobile"), mee = (e, n, s, a, d) => {
|
|
19078
19078
|
var p;
|
|
19079
|
-
const O = e ? { mobile:
|
|
19079
|
+
const O = e ? { mobile: BI((p = d.mobile) !== null && p !== void 0 ? p : {}, n) } : {}, k = sG(["mobile"], g1(O, d)), A = Bt.extend(s, a, k.options(), fee(e, k) ? rG(k, "mobile") : {}, { external_plugins: WD(a, k.options()) });
|
|
19080
19080
|
return aG(e, k, a, A);
|
|
19081
19081
|
}, lG = (e, n) => {
|
|
19082
19082
|
const s = oL(n);
|
|
19083
19083
|
return mee(zD || oG, zD, s, e, s);
|
|
19084
|
-
},
|
|
19084
|
+
}, LI = (e, n) => wH(e, n), cG = (e) => {
|
|
19085
19085
|
const n = (a, d) => {
|
|
19086
19086
|
e.formatter.toggle(a, d), e.nodeChanged();
|
|
19087
19087
|
}, s = (a) => () => {
|
|
@@ -19131,7 +19131,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
19131
19131
|
}, pee = (e, n, s, a) => {
|
|
19132
19132
|
const d = Re.fromDom(e.getRoot());
|
|
19133
19133
|
return ex(d, St.fromRangeStart(n), a) ? s = s.replace(/^ /, " ") : s = s.replace(/^ /, " "), hO(d, St.fromRangeEnd(n), a) ? s = s.replace(/( | )(<br( \/)>)?$/, " ") : s = s.replace(/ (<br( \/)?>)?$/, " "), s;
|
|
19134
|
-
},
|
|
19134
|
+
}, II = (e) => {
|
|
19135
19135
|
if (typeof e != "string") {
|
|
19136
19136
|
const n = Bt.extend({
|
|
19137
19137
|
paste: e.paste,
|
|
@@ -19146,15 +19146,15 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
19146
19146
|
content: e,
|
|
19147
19147
|
details: {}
|
|
19148
19148
|
};
|
|
19149
|
-
},
|
|
19149
|
+
}, FI = (e, n) => {
|
|
19150
19150
|
const s = e.selection, a = e.dom;
|
|
19151
19151
|
return /^ | $/.test(n) ? pee(a, s.getRng(), n, e.schema) : n;
|
|
19152
19152
|
}, FT = (e, n) => {
|
|
19153
19153
|
if (e.selection.isEditable()) {
|
|
19154
|
-
const { content: s, details: a } =
|
|
19154
|
+
const { content: s, details: a } = II(n);
|
|
19155
19155
|
QA(e, {
|
|
19156
19156
|
...a,
|
|
19157
|
-
content:
|
|
19157
|
+
content: FI(e, s),
|
|
19158
19158
|
format: "html",
|
|
19159
19159
|
set: !1,
|
|
19160
19160
|
selection: !0
|
|
@@ -19206,7 +19206,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
19206
19206
|
}), QT = (e) => Y.from(e.selection.getRng()).bind((n) => {
|
|
19207
19207
|
const s = e.getBody();
|
|
19208
19208
|
return n.startContainer === s && n.startOffset === 0 ? Y.none() : Y.from(e.selection.getStart(!0));
|
|
19209
|
-
}),
|
|
19209
|
+
}), QI = (e, n) => QT(e).orThunk(Me(qD, e)).map(Re.fromDom).filter(Qo).bind(n), ZT = (e, n) => QI(e, no(Y.some, n)), XD = (e, n) => {
|
|
19210
19210
|
if (/^[0-9.]+$/.test(n)) {
|
|
19211
19211
|
const s = parseInt(n, 10);
|
|
19212
19212
|
if (s >= 1 && s <= 7) {
|
|
@@ -19275,14 +19275,14 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
19275
19275
|
n(d);
|
|
19276
19276
|
}
|
|
19277
19277
|
});
|
|
19278
|
-
},
|
|
19278
|
+
}, ZI = (e) => {
|
|
19279
19279
|
const n = (s) => e.formatter.match(s);
|
|
19280
19280
|
e.editorCommands.addCommands({
|
|
19281
19281
|
"Bold,Italic,Underline,Strikethrough,Superscript,Subscript": (s) => n(s),
|
|
19282
19282
|
mceBlockQuote: () => n("blockquote")
|
|
19283
19283
|
}, "state"), e.editorCommands.addQueryValueHandler("FontName", () => yG(e)), e.editorCommands.addQueryValueHandler("FontSize", () => wG(e)), e.editorCommands.addQueryValueHandler("LineHeight", () => xG(e));
|
|
19284
19284
|
}, CG = (e) => {
|
|
19285
|
-
SG(e),
|
|
19285
|
+
SG(e), ZI(e);
|
|
19286
19286
|
}, VT = (e) => {
|
|
19287
19287
|
e.editorCommands.addCommands({
|
|
19288
19288
|
mceAddUndoLevel: () => {
|
|
@@ -19401,8 +19401,8 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
19401
19401
|
});
|
|
19402
19402
|
}, RG = (e) => {
|
|
19403
19403
|
dG(e), gee(e), VT(e), YD(e), hG(e), TG(e), kG(e), $G(e), PG(e), CG(e), DG(e);
|
|
19404
|
-
}, el = ["toggleview"],
|
|
19405
|
-
class
|
|
19404
|
+
}, el = ["toggleview"], VI = (e) => Ne(el, e.toLowerCase());
|
|
19405
|
+
class HI {
|
|
19406
19406
|
constructor(n) {
|
|
19407
19407
|
this.commands = {
|
|
19408
19408
|
state: {},
|
|
@@ -19426,13 +19426,13 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
19426
19426
|
}), !0) : !1;
|
|
19427
19427
|
}
|
|
19428
19428
|
queryCommandState(n) {
|
|
19429
|
-
if (!
|
|
19429
|
+
if (!VI(n) && this.editor.quirks.isHidden() || this.editor.removed)
|
|
19430
19430
|
return !1;
|
|
19431
19431
|
const s = n.toLowerCase(), a = this.commands.state[s];
|
|
19432
19432
|
return ye(a) ? a(s) : !1;
|
|
19433
19433
|
}
|
|
19434
19434
|
queryCommandValue(n) {
|
|
19435
|
-
if (!
|
|
19435
|
+
if (!VI(n) && this.editor.quirks.isHidden() || this.editor.removed)
|
|
19436
19436
|
return "";
|
|
19437
19437
|
const s = n.toLowerCase(), a = this.commands.value[s];
|
|
19438
19438
|
return ye(a) ? a(s) : "";
|
|
@@ -19590,9 +19590,9 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
19590
19590
|
return e.getDoc().documentElement;
|
|
19591
19591
|
const s = cw(e);
|
|
19592
19592
|
return s ? (e.eventRoot || (e.eventRoot = zT.select(s)[0]), e.eventRoot) : e.getBody();
|
|
19593
|
-
}, MG = (e) => !e.hidden && !_p(e),
|
|
19593
|
+
}, MG = (e) => !e.hidden && !_p(e), zI = (e, n, s) => {
|
|
19594
19594
|
MG(e) ? e.dispatch(n, s) : _p(e) && cz(e, s);
|
|
19595
|
-
},
|
|
19595
|
+
}, UI = (e, n) => {
|
|
19596
19596
|
if (e.delegates || (e.delegates = {}), e.delegates[n] || e.removed)
|
|
19597
19597
|
return;
|
|
19598
19598
|
const s = UT(e, n);
|
|
@@ -19608,27 +19608,27 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
19608
19608
|
let k = O.length;
|
|
19609
19609
|
for (; k--; ) {
|
|
19610
19610
|
const A = O[k].getBody();
|
|
19611
|
-
(A === p || zT.isChildOf(p, A)) &&
|
|
19611
|
+
(A === p || zT.isChildOf(p, A)) && zI(O[k], n, d);
|
|
19612
19612
|
}
|
|
19613
19613
|
};
|
|
19614
19614
|
bv[n] = a, zT.bind(s, n, a);
|
|
19615
19615
|
} else {
|
|
19616
19616
|
const a = (d) => {
|
|
19617
|
-
|
|
19617
|
+
zI(e, n, d);
|
|
19618
19618
|
};
|
|
19619
19619
|
zT.bind(s, n, a), e.delegates[n] = a;
|
|
19620
19620
|
}
|
|
19621
|
-
},
|
|
19621
|
+
}, WI = {
|
|
19622
19622
|
...JD,
|
|
19623
19623
|
bindPendingEventDelegates() {
|
|
19624
19624
|
const e = this;
|
|
19625
19625
|
Bt.each(e._pendingNativeEvents, (n) => {
|
|
19626
|
-
|
|
19626
|
+
UI(e, n);
|
|
19627
19627
|
});
|
|
19628
19628
|
},
|
|
19629
19629
|
toggleNativeEvent(e, n) {
|
|
19630
19630
|
const s = this;
|
|
19631
|
-
e === "focus" || e === "blur" || s.removed || (n ? s.initialized ?
|
|
19631
|
+
e === "focus" || e === "blur" || s.removed || (n ? s.initialized ? UI(s, e) : s._pendingNativeEvents ? s._pendingNativeEvents.push(e) : s._pendingNativeEvents = [e] : s.initialized && s.delegates && (s.dom.unbind(UT(s, e), e, s.delegates[e]), delete s.delegates[e]));
|
|
19632
19632
|
},
|
|
19633
19633
|
unbindAllNativeEvents() {
|
|
19634
19634
|
const e = this, n = e.getBody(), s = e.dom;
|
|
@@ -19671,10 +19671,10 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
19671
19671
|
}
|
|
19672
19672
|
})();
|
|
19673
19673
|
return (s) => eR(s, n, `The value must be a ${e}.`);
|
|
19674
|
-
}, BG = (e) => ie(e.processor),
|
|
19674
|
+
}, BG = (e) => ie(e.processor), jI = (e, n) => {
|
|
19675
19675
|
const s = Fo(n.message) ? "" : `. ${n.message}`;
|
|
19676
19676
|
return e + s;
|
|
19677
|
-
},
|
|
19677
|
+
}, qI = (e) => e.valid, eR = (e, n, s = "") => {
|
|
19678
19678
|
const a = n(e);
|
|
19679
19679
|
return At(a) ? a ? {
|
|
19680
19680
|
value: e,
|
|
@@ -19686,14 +19686,14 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
19686
19686
|
}, NG = (e, n, s) => {
|
|
19687
19687
|
if (!nn(n)) {
|
|
19688
19688
|
const a = eR(n, s);
|
|
19689
|
-
if (
|
|
19689
|
+
if (qI(a))
|
|
19690
19690
|
return a.value;
|
|
19691
|
-
console.error(
|
|
19691
|
+
console.error(jI(`Invalid default value passed for the "${e}" option`, a));
|
|
19692
19692
|
}
|
|
19693
19693
|
}, LG = (e, n, s = n) => {
|
|
19694
19694
|
const a = {}, d = {}, p = (re, fe, ue) => {
|
|
19695
19695
|
const be = eR(fe, ue);
|
|
19696
|
-
return
|
|
19696
|
+
return qI(be) ? (d[re] = be.value, !0) : (console.warn(jI(`Invalid value passed for the ${re} option`, be)), !1);
|
|
19697
19697
|
}, O = (re, fe) => {
|
|
19698
19698
|
const ue = BG(fe) ? $m(fe.processor) : fe.processor, be = NG(re, fe.default, ue);
|
|
19699
19699
|
a[re] = {
|
|
@@ -19750,7 +19750,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
19750
19750
|
}, QG = [
|
|
19751
19751
|
"design",
|
|
19752
19752
|
"readonly"
|
|
19753
|
-
],
|
|
19753
|
+
], XI = (e, n, s, a) => {
|
|
19754
19754
|
const d = s[n.get()], p = s[a];
|
|
19755
19755
|
try {
|
|
19756
19756
|
p.activate();
|
|
@@ -19763,7 +19763,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
19763
19763
|
if (!(a === s.get() || e.initialized && _p(e))) {
|
|
19764
19764
|
if (!jn(n, a))
|
|
19765
19765
|
throw new Error(`Editor mode '${a}' is invalid`);
|
|
19766
|
-
e.initialized ?
|
|
19766
|
+
e.initialized ? XI(e, s, n, a) : e.on("init", () => XI(e, s, n, a));
|
|
19767
19767
|
}
|
|
19768
19768
|
}, VG = (e, n, s) => {
|
|
19769
19769
|
if (Ne(QG, n))
|
|
@@ -19815,18 +19815,18 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
19815
19815
|
f10: 121,
|
|
19816
19816
|
f11: 122,
|
|
19817
19817
|
f12: 123
|
|
19818
|
-
},
|
|
19818
|
+
}, GI = Bt.makeMap("alt,ctrl,shift,meta,access"), UG = (e) => e in GI, WG = (e) => {
|
|
19819
19819
|
const n = {}, s = ao.os.isMacOS() || ao.os.isiOS();
|
|
19820
19820
|
tR(nR(e.toLowerCase(), "+"), (p) => {
|
|
19821
19821
|
UG(p) ? n[p] = !0 : /^[0-9]{2,}$/.test(p) ? n.keyCode = parseInt(p, 10) : (n.charCode = p.charCodeAt(0), n.keyCode = zG[p] || p.toUpperCase().charCodeAt(0));
|
|
19822
19822
|
});
|
|
19823
19823
|
const a = [n.keyCode];
|
|
19824
19824
|
let d;
|
|
19825
|
-
for (d in
|
|
19825
|
+
for (d in GI)
|
|
19826
19826
|
n[d] ? a.push(d) : n[d] = !1;
|
|
19827
19827
|
return n.id = a.join(","), n.access && (n.alt = !0, s ? n.ctrl = !0 : n.shift = !0), n.meta && (s ? n.meta = !0 : (n.ctrl = !0, n.meta = !1)), n;
|
|
19828
19828
|
};
|
|
19829
|
-
class
|
|
19829
|
+
class YI {
|
|
19830
19830
|
constructor(n) {
|
|
19831
19831
|
this.shortcuts = {}, this.pendingPatterns = [], this.editor = n;
|
|
19832
19832
|
const s = this;
|
|
@@ -19940,10 +19940,10 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
19940
19940
|
addContext: e.addContext,
|
|
19941
19941
|
getAll: e.getAll
|
|
19942
19942
|
};
|
|
19943
|
-
}, vv = kr.DOM,
|
|
19943
|
+
}, vv = kr.DOM, KI = Bt.extend, XG = Bt.each;
|
|
19944
19944
|
class WT {
|
|
19945
19945
|
constructor(n, s, a) {
|
|
19946
|
-
this.plugins = {}, this.contentCSS = [], this.contentStyles = [], this.loadedCSS = {}, this.isNotDirty = !1, this.composing = !1, this.destroyed = !1, this.hasHiddenInput = !1, this.iframeElement = null, this.initialized = !1, this.readonly = !1, this.removed = !1, this.startContent = "", this._pendingNativeEvents = [], this._skinLoaded = !1, this._editableRoot = !0, this.editorManager = a, this.documentBaseUrl = a.documentBaseURL,
|
|
19946
|
+
this.plugins = {}, this.contentCSS = [], this.contentStyles = [], this.loadedCSS = {}, this.isNotDirty = !1, this.composing = !1, this.destroyed = !1, this.hasHiddenInput = !1, this.iframeElement = null, this.initialized = !1, this.readonly = !1, this.removed = !1, this.startContent = "", this._pendingNativeEvents = [], this._skinLoaded = !1, this._editableRoot = !0, this.editorManager = a, this.documentBaseUrl = a.documentBaseURL, KI(this, WI);
|
|
19947
19947
|
const d = this;
|
|
19948
19948
|
this.id = n, this.hidden = !1;
|
|
19949
19949
|
const p = lG(a.defaultOptions, s);
|
|
@@ -19957,7 +19957,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
19957
19957
|
const B = Ty(d);
|
|
19958
19958
|
B && (vh.ScriptLoader._setReferrerPolicy(B), kr.DOM.styleSheetLoader._setReferrerPolicy(B));
|
|
19959
19959
|
const U = $y(d);
|
|
19960
|
-
We(U) && kr.DOM.styleSheetLoader._setContentCssCors(U), Wl.languageLoad = O("language_load"), Wl.baseURL = a.baseURL, this.setDirty(!1), this.documentBaseURI = new Al(FC(d), { base_uri: this.baseUri }), this.baseURI = this.baseUri, this.inline = Ey(d), this.hasVisual = Ry(d), this.shortcuts = new
|
|
19960
|
+
We(U) && kr.DOM.styleSheetLoader._setContentCssCors(U), Wl.languageLoad = O("language_load"), Wl.baseURL = a.baseURL, this.setDirty(!1), this.documentBaseURI = new Al(FC(d), { base_uri: this.baseUri }), this.baseURI = this.baseUri, this.inline = Ey(d), this.hasVisual = Ry(d), this.shortcuts = new YI(this), this.editorCommands = new HI(this), RG(this);
|
|
19961
19961
|
const q = O("cache_suffix");
|
|
19962
19962
|
q && (ao.cacheSuffix = q.replace(/^[\?\&]+/, "")), this.ui = {
|
|
19963
19963
|
registry: qG(),
|
|
@@ -20086,7 +20086,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
20086
20086
|
return RJ(this, n);
|
|
20087
20087
|
}
|
|
20088
20088
|
insertContent(n, s) {
|
|
20089
|
-
s && (n =
|
|
20089
|
+
s && (n = KI({ content: n }, s)), this.execCommand("mceInsertContent", !1, n);
|
|
20090
20090
|
}
|
|
20091
20091
|
resetContent(n) {
|
|
20092
20092
|
n === void 0 ? c1(this, this.startContent, { format: "raw" }) : c1(this, n), this.undoManager.reset(), this.setDirty(!1), this.nodeChanged();
|
|
@@ -20139,7 +20139,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
20139
20139
|
return k.protocol !== "http" && k.protocol !== "https" && k.protocol !== "" ? n : p("relative_urls") ? d.documentBaseURI.toRelative(n) : (n = d.documentBaseURI.toAbsolute(n, p("remove_script_host")), n);
|
|
20140
20140
|
}
|
|
20141
20141
|
addVisual(n) {
|
|
20142
|
-
|
|
20142
|
+
LI(this, n);
|
|
20143
20143
|
}
|
|
20144
20144
|
setEditableRoot(n) {
|
|
20145
20145
|
tG(this, n);
|
|
@@ -20161,7 +20161,7 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
20161
20161
|
}
|
|
20162
20162
|
}
|
|
20163
20163
|
const r2 = kr.DOM, jT = Bt.each;
|
|
20164
|
-
let
|
|
20164
|
+
let JI = !1, qT, _u = [];
|
|
20165
20165
|
const wS = (e) => {
|
|
20166
20166
|
const n = e.type;
|
|
20167
20167
|
jT(w1.get(), (s) => {
|
|
@@ -20175,9 +20175,9 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
20175
20175
|
}
|
|
20176
20176
|
});
|
|
20177
20177
|
}, eF = (e) => {
|
|
20178
|
-
if (e !==
|
|
20178
|
+
if (e !== JI) {
|
|
20179
20179
|
const n = kr.DOM;
|
|
20180
|
-
e ? (n.bind(window, "resize", wS), n.bind(window, "scroll", wS)) : (n.unbind(window, "resize", wS), n.unbind(window, "scroll", wS)),
|
|
20180
|
+
e ? (n.bind(window, "resize", wS), n.bind(window, "scroll", wS)) : (n.unbind(window, "resize", wS), n.unbind(window, "scroll", wS)), JI = e;
|
|
20181
20181
|
}
|
|
20182
20182
|
}, tF = (e) => {
|
|
20183
20183
|
const n = _u;
|
|
@@ -20494,11 +20494,11 @@ Input object: ` + QO(e.input), IP = (e, n) => fW(e, Uo(n, sS)), _W = wt(lL), rS
|
|
|
20494
20494
|
Annotator: pr,
|
|
20495
20495
|
Formatter: Ap,
|
|
20496
20496
|
UndoManager: rB,
|
|
20497
|
-
EditorCommands:
|
|
20497
|
+
EditorCommands: HI,
|
|
20498
20498
|
WindowManager: h$,
|
|
20499
20499
|
NotificationManager: JH,
|
|
20500
|
-
EditorObservable:
|
|
20501
|
-
Shortcuts:
|
|
20500
|
+
EditorObservable: WI,
|
|
20501
|
+
Shortcuts: YI,
|
|
20502
20502
|
Editor: WT,
|
|
20503
20503
|
FocusManager: nE,
|
|
20504
20504
|
EditorManager: w1,
|
|
@@ -35965,20 +35965,20 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
35965
35965
|
...uD,
|
|
35966
35966
|
Sa("active", !1),
|
|
35967
35967
|
ha("type", ["togglebutton"])
|
|
35968
|
-
],
|
|
35968
|
+
], e9 = {
|
|
35969
35969
|
button: KL,
|
|
35970
35970
|
togglebutton: JL
|
|
35971
35971
|
}, Pj = [
|
|
35972
35972
|
ha("type", ["group"]),
|
|
35973
|
-
$("buttons", [], Gi("type",
|
|
35973
|
+
$("buttons", [], Gi("type", e9))
|
|
35974
35974
|
], Dj = Gi("type", {
|
|
35975
|
-
...
|
|
35975
|
+
...e9,
|
|
35976
35976
|
group: Pj
|
|
35977
|
-
}),
|
|
35977
|
+
}), t9 = uo([
|
|
35978
35978
|
$("buttons", [], Dj),
|
|
35979
35979
|
bu("onShow"),
|
|
35980
35980
|
bu("onHide")
|
|
35981
|
-
]), Rj = (t) => Yr("view",
|
|
35981
|
+
]), Rj = (t) => Yr("view", t9, t), Mj = (t, r) => {
|
|
35982
35982
|
var l, f;
|
|
35983
35983
|
const b = t.type === "togglebutton", w = t.icon.map((Ue) => h1(Ue, r.icons)).map(Zs), E = (Ue) => {
|
|
35984
35984
|
const ut = (kt) => {
|
|
@@ -36016,15 +36016,15 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36016
36016
|
attributes: oe
|
|
36017
36017
|
}, we = [], Ve = R4(P, F.some(E), we, qe, me, t.tooltip, r);
|
|
36018
36018
|
return _a.sketch(Ve);
|
|
36019
|
-
},
|
|
36019
|
+
}, n9 = (t, r) => Mj(t, r), Bj = (t, r) => ({
|
|
36020
36020
|
dom: {
|
|
36021
36021
|
tag: "div",
|
|
36022
36022
|
classes: ["tox-view__toolbar__group"]
|
|
36023
36023
|
},
|
|
36024
|
-
components: Ye(t.buttons, (l) =>
|
|
36025
|
-
}),
|
|
36024
|
+
components: Ye(t.buttons, (l) => n9(l, r))
|
|
36025
|
+
}), o9 = Gr().deviceType, Nj = o9.isPhone(), Lj = o9.isTablet(), Ij = (t) => {
|
|
36026
36026
|
let r = !1;
|
|
36027
|
-
const l = Ye(t.buttons, (f) => f.type === "group" ? (r = !0, Bj(f, t.providers)) :
|
|
36027
|
+
const l = Ye(t.buttons, (f) => f.type === "group" ? (r = !0, Bj(f, t.providers)) : n9(f, t.providers));
|
|
36028
36028
|
return {
|
|
36029
36029
|
uid: t.uid,
|
|
36030
36030
|
dom: {
|
|
@@ -36312,7 +36312,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36312
36312
|
Pt("dom"),
|
|
36313
36313
|
Pt("onEscape")
|
|
36314
36314
|
]
|
|
36315
|
-
}),
|
|
36315
|
+
}), s9 = Sg.optional({
|
|
36316
36316
|
factory: {
|
|
36317
36317
|
sketch: (t) => {
|
|
36318
36318
|
const r = qj(t), l = {
|
|
@@ -36340,7 +36340,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36340
36340
|
Pt("onEscape"),
|
|
36341
36341
|
Pt("getSink")
|
|
36342
36342
|
]
|
|
36343
|
-
}),
|
|
36343
|
+
}), r9 = Sg.optional({
|
|
36344
36344
|
factory: { sketch: X4 },
|
|
36345
36345
|
name: "header",
|
|
36346
36346
|
schema: [Pt("dom")]
|
|
@@ -36351,7 +36351,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36351
36351
|
}), Xj = Sg.optional({
|
|
36352
36352
|
name: "socket",
|
|
36353
36353
|
schema: [Pt("dom")]
|
|
36354
|
-
}),
|
|
36354
|
+
}), i9 = Sg.optional({
|
|
36355
36355
|
factory: { sketch: lj },
|
|
36356
36356
|
name: "sidebar",
|
|
36357
36357
|
schema: [Pt("dom")]
|
|
@@ -36359,7 +36359,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36359
36359
|
factory: { sketch: mj },
|
|
36360
36360
|
name: "throbber",
|
|
36361
36361
|
schema: [Pt("dom")]
|
|
36362
|
-
}),
|
|
36362
|
+
}), a9 = Sg.optional({
|
|
36363
36363
|
factory: lT,
|
|
36364
36364
|
name: "viewWrapper",
|
|
36365
36365
|
schema: [Pt("backstage")]
|
|
@@ -36383,15 +36383,15 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36383
36383
|
Pt("behaviours")
|
|
36384
36384
|
],
|
|
36385
36385
|
partFields: [
|
|
36386
|
-
|
|
36386
|
+
r9,
|
|
36387
36387
|
hD,
|
|
36388
|
-
|
|
36388
|
+
s9,
|
|
36389
36389
|
cT,
|
|
36390
36390
|
Xj,
|
|
36391
|
-
|
|
36391
|
+
i9,
|
|
36392
36392
|
fD,
|
|
36393
36393
|
XO,
|
|
36394
|
-
|
|
36394
|
+
a9,
|
|
36395
36395
|
Yj
|
|
36396
36396
|
],
|
|
36397
36397
|
apis: {
|
|
@@ -36436,7 +36436,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36436
36436
|
whichView: (t, r) => t.whichView(r)
|
|
36437
36437
|
}
|
|
36438
36438
|
});
|
|
36439
|
-
const mD = "file edit view insert format tools table help",
|
|
36439
|
+
const mD = "file edit view insert format tools table help", l9 = {
|
|
36440
36440
|
file: {
|
|
36441
36441
|
title: "File",
|
|
36442
36442
|
items: "newdocument restoredraft | preview | importword exportpdf exportword | export print | deleteallconversations"
|
|
@@ -36480,10 +36480,10 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36480
36480
|
};
|
|
36481
36481
|
}, uT = (t) => t.split(" "), gD = (t, r) => {
|
|
36482
36482
|
const l = {
|
|
36483
|
-
...
|
|
36483
|
+
...l9,
|
|
36484
36484
|
...r.menus
|
|
36485
36485
|
}, f = is(r.menus).length > 0, b = r.menubar === void 0 || r.menubar === !0 ? uT(mD) : uT(r.menubar === !1 ? "" : r.menubar), w = bo(b, (E) => {
|
|
36486
|
-
const P = Uo(
|
|
36486
|
+
const P = Uo(l9, E);
|
|
36487
36487
|
return f ? P || Xt(r.menus, E).exists((L) => Uo(L, "items")) : P;
|
|
36488
36488
|
}), S = Ye(w, (E) => {
|
|
36489
36489
|
const P = l[E];
|
|
@@ -36506,7 +36506,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36506
36506
|
}, pD = (t, r) => () => jV(t, { message: r }), Jj = (t) => {
|
|
36507
36507
|
const r = sx(t);
|
|
36508
36508
|
return r ? F.from(r) : F.none();
|
|
36509
|
-
},
|
|
36509
|
+
}, c9 = (t, r, l) => (t.on("remove", () => l.unload(r)), l.load(r)), dS = (t, r, l, f) => (t.on("remove", () => f.unloadRawCss(r)), f.loadRawCss(r, l)), eq = (t, r) => "ui/" + t + "/" + r, tq = (t) => F.from(tinymce.Resource.get(t)).filter(x), bD = (t, r, l = "") => {
|
|
36510
36510
|
const f = Jj(t).map((w) => eq(w, `${r}.css`)), b = f.bind(tq);
|
|
36511
36511
|
return Zi(f, b, (w, S) => ({
|
|
36512
36512
|
_kind: "load-raw",
|
|
@@ -36519,7 +36519,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36519
36519
|
url: l + `/${r}${w}.css`
|
|
36520
36520
|
};
|
|
36521
36521
|
});
|
|
36522
|
-
},
|
|
36522
|
+
}, u9 = (t, r) => {
|
|
36523
36523
|
const l = t.ui.styleSheetLoader, f = bD(t, "skin", r);
|
|
36524
36524
|
switch (f._kind) {
|
|
36525
36525
|
case "load-raw":
|
|
@@ -36527,7 +36527,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36527
36527
|
return dS(t, b, w, l), Promise.resolve();
|
|
36528
36528
|
case "load-stylesheet":
|
|
36529
36529
|
const { url: S } = f;
|
|
36530
|
-
return
|
|
36530
|
+
return c9(t, S, l);
|
|
36531
36531
|
default:
|
|
36532
36532
|
return Promise.resolve();
|
|
36533
36533
|
}
|
|
@@ -36540,7 +36540,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36540
36540
|
return dS(t, w, S, f), Promise.resolve();
|
|
36541
36541
|
case "load-stylesheet":
|
|
36542
36542
|
const { url: E } = b;
|
|
36543
|
-
return
|
|
36543
|
+
return c9(t, E, f);
|
|
36544
36544
|
default:
|
|
36545
36545
|
return Promise.resolve();
|
|
36546
36546
|
}
|
|
@@ -36564,13 +36564,13 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36564
36564
|
const l = P6(r);
|
|
36565
36565
|
if (await oq(r, t, l), !zE(r) && x(l))
|
|
36566
36566
|
return Promise.all([
|
|
36567
|
-
|
|
36567
|
+
u9(r, l),
|
|
36568
36568
|
nq(r, l)
|
|
36569
36569
|
]).then();
|
|
36570
|
-
},
|
|
36570
|
+
}, d9 = (t, r) => vD(t, r).then(dT(r), pD(r, "Skin could not be loaded")), sq = an(d9, !1), h9 = an(d9, !0), GO = (t, r, l) => Ce(l) ? t.translate(r) : t.translate([
|
|
36571
36571
|
r,
|
|
36572
36572
|
t.translate(l)
|
|
36573
|
-
]),
|
|
36573
|
+
]), f9 = (t, r) => {
|
|
36574
36574
|
const l = (S, E, P, L) => {
|
|
36575
36575
|
const V = t.shared.providers.translate(S.title);
|
|
36576
36576
|
if (S.type === "separator")
|
|
@@ -36616,7 +36616,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36616
36616
|
}, YO = (t, r) => {
|
|
36617
36617
|
const l = r.dataset, f = l.type === "basic" ? () => Ye(l.data, (b) => dL(b, r.isSelectedFor, r.getPreviewFor)) : l.getData;
|
|
36618
36618
|
return {
|
|
36619
|
-
items:
|
|
36619
|
+
items: f9(t, r),
|
|
36620
36620
|
getStyleItems: f
|
|
36621
36621
|
};
|
|
36622
36622
|
}, KO = (t, r, l, f, b, w) => {
|
|
@@ -36673,13 +36673,13 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36673
36673
|
(function(t) {
|
|
36674
36674
|
t[t.SemiColon = 0] = "SemiColon", t[t.Space = 1] = "Space";
|
|
36675
36675
|
})(JO || (JO = {}));
|
|
36676
|
-
const
|
|
36676
|
+
const m9 = (t, r) => r === JO.SemiColon ? t.replace(/;$/, "").split(";") : t.split(" "), yD = (t, r, l) => {
|
|
36677
36677
|
const f = t.options.get(r);
|
|
36678
36678
|
return {
|
|
36679
36679
|
type: "basic",
|
|
36680
|
-
data: rq(
|
|
36680
|
+
data: rq(m9(f, l))
|
|
36681
36681
|
};
|
|
36682
|
-
}, aq = "Align",
|
|
36682
|
+
}, aq = "Align", g9 = ee("Alignment {0}"), hT = "left", hS = [
|
|
36683
36683
|
{
|
|
36684
36684
|
title: "Left",
|
|
36685
36685
|
icon: "align-left",
|
|
@@ -36704,13 +36704,13 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36704
36704
|
format: "alignjustify",
|
|
36705
36705
|
command: "JustifyFull"
|
|
36706
36706
|
}
|
|
36707
|
-
],
|
|
36707
|
+
], p9 = (t) => {
|
|
36708
36708
|
const r = () => Ne(hS, (E) => t.formatter.match(E.format)), l = (E) => () => t.formatter.match(E), f = (E) => F.none, b = (E) => {
|
|
36709
36709
|
const L = r().fold(ee(hT), (V) => V.title.toLowerCase());
|
|
36710
36710
|
Hn(E, lv, { icon: `align-${L}` }), YV(t, { value: L });
|
|
36711
36711
|
}, w = iq(hS), S = (E) => () => Ne(hS, (P) => P.format === E.format).each((P) => t.execCommand(P.command));
|
|
36712
36712
|
return {
|
|
36713
|
-
tooltip: GO(t,
|
|
36713
|
+
tooltip: GO(t, g9(), hT),
|
|
36714
36714
|
text: F.none(),
|
|
36715
36715
|
icon: F.some("align-left"),
|
|
36716
36716
|
isSelectedFor: l,
|
|
@@ -36722,17 +36722,17 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36722
36722
|
shouldHide: !1,
|
|
36723
36723
|
isInvalid: (E) => !t.formatter.canApply(E.format)
|
|
36724
36724
|
};
|
|
36725
|
-
}, lq = (t, r) => KO(t, r,
|
|
36726
|
-
const l = YO(r,
|
|
36725
|
+
}, lq = (t, r) => KO(t, r, p9(t), g9, "AlignTextUpdate", "align"), cq = (t, r) => {
|
|
36726
|
+
const l = YO(r, p9(t));
|
|
36727
36727
|
t.ui.registry.addNestedMenuItem("align", {
|
|
36728
36728
|
text: r.shared.providers.translate(aq),
|
|
36729
36729
|
onSetup: Jl(t),
|
|
36730
36730
|
getSubmenuItems: () => l.items.validateItems(l.getStyleItems())
|
|
36731
36731
|
});
|
|
36732
|
-
},
|
|
36732
|
+
}, b9 = (t, r) => {
|
|
36733
36733
|
const l = r(), f = Ye(l, (b) => b.format);
|
|
36734
36734
|
return F.from(t.formatter.closest(f)).bind((b) => Ne(l, (w) => w.format === b));
|
|
36735
|
-
}, uq = "Blocks",
|
|
36735
|
+
}, uq = "Blocks", v9 = ee("Block {0}"), OD = "Paragraph", y9 = (t) => {
|
|
36736
36736
|
const r = (w) => () => t.formatter.match(w), l = (w) => () => {
|
|
36737
36737
|
const S = t.formatter.get(w);
|
|
36738
36738
|
return S ? F.some({
|
|
@@ -36740,11 +36740,11 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36740
36740
|
styles: t.dom.parseStyle(t.formatter.getCssText(w))
|
|
36741
36741
|
}) : F.none();
|
|
36742
36742
|
}, f = (w) => {
|
|
36743
|
-
const E =
|
|
36743
|
+
const E = b9(t, () => b.data).fold(ee(OD), (P) => P.title);
|
|
36744
36744
|
Hn(w, Ud, { text: E }), eH(t, { value: E });
|
|
36745
36745
|
}, b = yD(t, "block_formats", JO.SemiColon);
|
|
36746
36746
|
return {
|
|
36747
|
-
tooltip: GO(t,
|
|
36747
|
+
tooltip: GO(t, v9(), OD),
|
|
36748
36748
|
text: F.some(OD),
|
|
36749
36749
|
icon: F.none(),
|
|
36750
36750
|
isSelectedFor: r,
|
|
@@ -36756,8 +36756,8 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36756
36756
|
shouldHide: !1,
|
|
36757
36757
|
isInvalid: (w) => !t.formatter.canApply(w.format)
|
|
36758
36758
|
};
|
|
36759
|
-
}, dq = (t, r) => KO(t, r,
|
|
36760
|
-
const l = YO(r,
|
|
36759
|
+
}, dq = (t, r) => KO(t, r, y9(t), v9, "BlocksTextUpdate", "blocks"), O9 = (t, r) => {
|
|
36760
|
+
const l = YO(r, y9(t));
|
|
36761
36761
|
t.ui.registry.addNestedMenuItem("blocks", {
|
|
36762
36762
|
text: uq,
|
|
36763
36763
|
onSetup: Jl(t),
|
|
@@ -36772,13 +36772,13 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36772
36772
|
], wD = (t) => {
|
|
36773
36773
|
const r = t.split(/\s*,\s*/);
|
|
36774
36774
|
return Ye(r, (l) => l.replace(/^['"]+|['"]+$/g, ""));
|
|
36775
|
-
},
|
|
36775
|
+
}, w9 = (t, r) => r.length > 0 && Qn(r, (l) => t.indexOf(l.toLowerCase()) > -1), hq = (t, r) => {
|
|
36776
36776
|
if (t.indexOf("-apple-system") === 0 || r.length > 0) {
|
|
36777
36777
|
const l = wD(t.toLowerCase());
|
|
36778
|
-
return
|
|
36778
|
+
return w9(l, b1) || w9(l, r);
|
|
36779
36779
|
} else
|
|
36780
36780
|
return !1;
|
|
36781
|
-
},
|
|
36781
|
+
}, x9 = (t) => {
|
|
36782
36782
|
const r = () => {
|
|
36783
36783
|
const P = (me) => me ? wD(me)[0] : "", L = t.queryCommandValue("FontName"), V = E.data, j = L ? L.toLowerCase() : "", oe = $6(t);
|
|
36784
36784
|
return {
|
|
@@ -36818,8 +36818,8 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36818
36818
|
shouldHide: !1,
|
|
36819
36819
|
isInvalid: Je
|
|
36820
36820
|
};
|
|
36821
|
-
}, fq = (t, r) => KO(t, r,
|
|
36822
|
-
const l = YO(r,
|
|
36821
|
+
}, fq = (t, r) => KO(t, r, x9(t), mT, "FontFamilyTextUpdate", "fontfamily"), mq = (t, r) => {
|
|
36822
|
+
const l = YO(r, x9(t));
|
|
36823
36823
|
t.ui.registry.addNestedMenuItem("fontfamily", {
|
|
36824
36824
|
text: r.shared.providers.translate(fT),
|
|
36825
36825
|
onSetup: Jl(t),
|
|
@@ -36863,9 +36863,9 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
36863
36863
|
t + b(l)
|
|
36864
36864
|
].join("|")})`;
|
|
36865
36865
|
return new RegExp(`^(${S})(.*)$`);
|
|
36866
|
-
})(),
|
|
36866
|
+
})(), S9 = (t, r) => hn(r, (l) => hn(gq[l], (f) => t === f)), pT = (t, r) => F.from(pq.exec(t)).bind((f) => {
|
|
36867
36867
|
const b = Number(f[1]), w = f[2];
|
|
36868
|
-
return
|
|
36868
|
+
return S9(w, r) ? F.some({
|
|
36869
36869
|
value: b,
|
|
36870
36870
|
unit: w
|
|
36871
36871
|
}) : F.none();
|
|
@@ -37028,7 +37028,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37028
37028
|
})
|
|
37029
37029
|
])
|
|
37030
37030
|
};
|
|
37031
|
-
}, yq = "Font sizes",
|
|
37031
|
+
}, yq = "Font sizes", C9 = ee("Font size {0}"), k9 = "12pt", Oq = {
|
|
37032
37032
|
"8pt": "1",
|
|
37033
37033
|
"10pt": "2",
|
|
37034
37034
|
"12pt": "3",
|
|
@@ -37044,16 +37044,16 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37044
37044
|
large: "14pt",
|
|
37045
37045
|
"x-large": "18pt",
|
|
37046
37046
|
"xx-large": "24pt"
|
|
37047
|
-
},
|
|
37047
|
+
}, T9 = (t, r) => {
|
|
37048
37048
|
const l = Math.pow(10, r);
|
|
37049
37049
|
return Math.round(t * l) / l;
|
|
37050
|
-
},
|
|
37050
|
+
}, _9 = (t, r) => /[0-9.]+px$/.test(t) ? T9(parseInt(t, 10) * 72 / 96, r || 0) + "pt" : Xt(wq, t).getOr(t), E9 = (t) => Xt(Oq, t).getOr(""), A9 = (t) => {
|
|
37051
37051
|
const r = () => {
|
|
37052
37052
|
let P = F.none();
|
|
37053
37053
|
const L = E.data, V = t.queryCommandValue("FontSize");
|
|
37054
37054
|
if (V)
|
|
37055
37055
|
for (let j = 3; P.isNone() && j >= 0; j--) {
|
|
37056
|
-
const oe =
|
|
37056
|
+
const oe = _9(V, j), ae = E9(oe);
|
|
37057
37057
|
P = Ne(L, (me) => me.format === V || me.format === oe || me.format === ae);
|
|
37058
37058
|
}
|
|
37059
37059
|
return {
|
|
@@ -37072,8 +37072,8 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37072
37072
|
Hn(P, Ud, { text: j }), KV(t, { value: j });
|
|
37073
37073
|
}, E = yD(t, "font_size_formats", JO.Space);
|
|
37074
37074
|
return {
|
|
37075
|
-
tooltip: GO(t,
|
|
37076
|
-
text: F.some(
|
|
37075
|
+
tooltip: GO(t, C9(), k9),
|
|
37076
|
+
text: F.some(k9),
|
|
37077
37077
|
icon: F.none(),
|
|
37078
37078
|
isSelectedFor: l,
|
|
37079
37079
|
getPreviewFor: b,
|
|
@@ -37084,7 +37084,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37084
37084
|
shouldHide: !1,
|
|
37085
37085
|
isInvalid: Je
|
|
37086
37086
|
};
|
|
37087
|
-
}, $
|
|
37087
|
+
}, $9 = (t, r) => KO(t, r, A9(t), C9, "FontSizeTextUpdate", "fontsize"), xq = (t) => {
|
|
37088
37088
|
var r;
|
|
37089
37089
|
const l = { step: 1 };
|
|
37090
37090
|
return (r = {
|
|
@@ -37095,7 +37095,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37095
37095
|
ch: { step: 0.1 },
|
|
37096
37096
|
rem: { step: 0.1 }
|
|
37097
37097
|
}[t]) !== null && r !== void 0 ? r : l;
|
|
37098
|
-
}, Sq = 16, Cq = (t) => t >= 0,
|
|
37098
|
+
}, Sq = 16, Cq = (t) => t >= 0, P9 = (t) => {
|
|
37099
37099
|
const r = () => t.queryCommandValue("FontSize");
|
|
37100
37100
|
return {
|
|
37101
37101
|
updateInputValue: (f) => Hn(f, Ud, { text: r() }),
|
|
@@ -37115,14 +37115,14 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37115
37115
|
return j !== w && JV(t, { value: j }), j;
|
|
37116
37116
|
}
|
|
37117
37117
|
};
|
|
37118
|
-
}, kq = (t, r) => vq(t, r,
|
|
37119
|
-
const l = YO(r,
|
|
37118
|
+
}, kq = (t, r) => vq(t, r, P9(t), "fontsizeinput"), D9 = (t, r) => {
|
|
37119
|
+
const l = YO(r, A9(t));
|
|
37120
37120
|
t.ui.registry.addNestedMenuItem("fontsize", {
|
|
37121
37121
|
text: yq,
|
|
37122
37122
|
onSetup: Jl(t),
|
|
37123
37123
|
getSubmenuItems: () => l.items.validateItems(l.getStyleItems())
|
|
37124
37124
|
});
|
|
37125
|
-
}, Tq = "Formats",
|
|
37125
|
+
}, Tq = "Formats", R9 = (t) => Ce(t) ? "Formats" : "Format {0}", M9 = (t, r) => {
|
|
37126
37126
|
const l = "Formats", f = (S) => () => t.formatter.match(S), b = (S) => () => {
|
|
37127
37127
|
const E = t.formatter.get(S);
|
|
37128
37128
|
return E !== void 0 ? F.some({
|
|
@@ -37133,7 +37133,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37133
37133
|
const E = (j) => lL(j) ? xe(j.items, E) : cL(j) ? [{
|
|
37134
37134
|
title: j.title,
|
|
37135
37135
|
format: j.format
|
|
37136
|
-
}] : [], P = xe(uL(t), E), V =
|
|
37136
|
+
}] : [], P = xe(uL(t), E), V = b9(t, ee(P)).fold(ee({
|
|
37137
37137
|
title: l,
|
|
37138
37138
|
tooltipLabel: ""
|
|
37139
37139
|
}), (j) => ({
|
|
@@ -37143,7 +37143,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37143
37143
|
Hn(S, Ud, { text: V.title }), GV(t, { value: V.tooltipLabel });
|
|
37144
37144
|
};
|
|
37145
37145
|
return {
|
|
37146
|
-
tooltip: GO(t,
|
|
37146
|
+
tooltip: GO(t, R9(""), ""),
|
|
37147
37147
|
text: F.some(l),
|
|
37148
37148
|
icon: F.none(),
|
|
37149
37149
|
isSelectedFor: f,
|
|
@@ -37160,12 +37160,12 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37160
37160
|
type: "advanced",
|
|
37161
37161
|
...r.styles
|
|
37162
37162
|
};
|
|
37163
|
-
return KO(t, r,
|
|
37163
|
+
return KO(t, r, M9(t, l), R9, "StylesTextUpdate", "styles");
|
|
37164
37164
|
}, Eq = (t, r) => {
|
|
37165
37165
|
const l = {
|
|
37166
37166
|
type: "advanced",
|
|
37167
37167
|
...r.styles
|
|
37168
|
-
}, f = YO(r,
|
|
37168
|
+
}, f = YO(r, M9(t, l));
|
|
37169
37169
|
t.ui.registry.addNestedMenuItem("styles", {
|
|
37170
37170
|
text: Tq,
|
|
37171
37171
|
onSetup: Jl(t),
|
|
@@ -37210,7 +37210,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37210
37210
|
toggleClass: t.toggleClass
|
|
37211
37211
|
})])
|
|
37212
37212
|
})
|
|
37213
|
-
}),
|
|
37213
|
+
}), B9 = El({
|
|
37214
37214
|
factory: _a,
|
|
37215
37215
|
schema: [Pt("dom")],
|
|
37216
37216
|
name: "button",
|
|
@@ -37228,7 +37228,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37228
37228
|
})
|
|
37229
37229
|
}), Pq = ee([
|
|
37230
37230
|
$q,
|
|
37231
|
-
|
|
37231
|
+
B9,
|
|
37232
37232
|
Mc({
|
|
37233
37233
|
factory: {
|
|
37234
37234
|
sketch: (t) => ({
|
|
@@ -37334,7 +37334,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37334
37334
|
partFields: Pq(),
|
|
37335
37335
|
factory: Dq,
|
|
37336
37336
|
apis: { repositionMenus: (t, r) => t.repositionMenus(r) }
|
|
37337
|
-
}),
|
|
37337
|
+
}), N9 = (t) => ({
|
|
37338
37338
|
isEnabled: () => !zn.isDisabled(t),
|
|
37339
37339
|
setEnabled: (r) => zn.set(t, !r),
|
|
37340
37340
|
setText: (r) => Hn(t, Ud, { text: r }),
|
|
@@ -37348,14 +37348,14 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37348
37348
|
setEnabled: (r) => zn.set(t, !r),
|
|
37349
37349
|
setText: (r) => Hn(t, Ud, { text: r }),
|
|
37350
37350
|
setIcon: (r) => Hn(t, lv, { icon: r })
|
|
37351
|
-
}),
|
|
37351
|
+
}), L9 = (t, r) => t.map((l) => ({ "aria-label": r.translate(l) })).getOr({}), I9 = An("focus-button"), yT = (t, r, l, f, b, w, S) => {
|
|
37352
37352
|
const E = r.map((L) => Zs(T4(L, "tox-tbtn", b))), P = t.map((L) => Zs(h1(L, b.icons)));
|
|
37353
37353
|
return {
|
|
37354
37354
|
dom: {
|
|
37355
37355
|
tag: "button",
|
|
37356
37356
|
classes: ["tox-tbtn"].concat(r.isSome() ? ["tox-tbtn--select"] : []),
|
|
37357
37357
|
attributes: {
|
|
37358
|
-
...
|
|
37358
|
+
...L9(l, b),
|
|
37359
37359
|
...Fe(S) ? { "data-mce-name": S } : {}
|
|
37360
37360
|
}
|
|
37361
37361
|
},
|
|
@@ -37395,7 +37395,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37395
37395
|
});
|
|
37396
37396
|
}),
|
|
37397
37397
|
_t(ki(), (L, V) => {
|
|
37398
|
-
V.event.prevent(), ns(L,
|
|
37398
|
+
V.event.prevent(), ns(L, I9);
|
|
37399
37399
|
})
|
|
37400
37400
|
])
|
|
37401
37401
|
].concat(f.getOr([])))
|
|
@@ -37403,7 +37403,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37403
37403
|
}, Mq = (t, r, l, f, b) => {
|
|
37404
37404
|
const w = r.shared, S = Zn(ie), E = {
|
|
37405
37405
|
toolbarButtonBehaviours: [],
|
|
37406
|
-
getApi:
|
|
37406
|
+
getApi: N9,
|
|
37407
37407
|
onSetup: t.onSetup
|
|
37408
37408
|
}, P = [
|
|
37409
37409
|
Ao("toolbar-group-button-events", [
|
|
@@ -37429,7 +37429,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37429
37429
|
}
|
|
37430
37430
|
}
|
|
37431
37431
|
});
|
|
37432
|
-
},
|
|
37432
|
+
}, F9 = (t, r, l, f) => {
|
|
37433
37433
|
var b;
|
|
37434
37434
|
const w = Zn(ie), S = yT(t.icon, t.text, t.tooltip, F.none(), l, t.context, f);
|
|
37435
37435
|
return _a.sketch({
|
|
@@ -37453,11 +37453,11 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37453
37453
|
[Tf]: (b = S.buttonBehaviours) === null || b === void 0 ? void 0 : b[Tf]
|
|
37454
37454
|
}
|
|
37455
37455
|
});
|
|
37456
|
-
},
|
|
37456
|
+
}, Q9 = (t, r, l) => Z9(t, r, [], l), Z9 = (t, r, l, f) => F9(t, {
|
|
37457
37457
|
toolbarButtonBehaviours: l.length > 0 ? [Ao("toolbarButtonWith", l)] : [],
|
|
37458
|
-
getApi:
|
|
37458
|
+
getApi: N9,
|
|
37459
37459
|
onSetup: t.onSetup
|
|
37460
|
-
}, r, f),
|
|
37460
|
+
}, r, f), V9 = (t, r, l) => xD(t, r, [], l), xD = (t, r, l, f) => F9(t, {
|
|
37461
37461
|
toolbarButtonBehaviours: [
|
|
37462
37462
|
Oo.config({}),
|
|
37463
37463
|
Ko.config({
|
|
@@ -37508,7 +37508,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37508
37508
|
classes: ["tox-split-button"],
|
|
37509
37509
|
attributes: {
|
|
37510
37510
|
"aria-pressed": !1,
|
|
37511
|
-
...
|
|
37511
|
+
...L9(t.tooltip, r.providers),
|
|
37512
37512
|
...Fe(l) ? { "data-mce-name": l } : {}
|
|
37513
37513
|
}
|
|
37514
37514
|
},
|
|
@@ -37521,7 +37521,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37521
37521
|
splitDropdownBehaviours: Yt([
|
|
37522
37522
|
Ao("split-dropdown-events", [
|
|
37523
37523
|
Lr((E, P) => iP(E)),
|
|
37524
|
-
_t(
|
|
37524
|
+
_t(I9, mo.focus),
|
|
37525
37525
|
Sf(S, w),
|
|
37526
37526
|
Al(S, w)
|
|
37527
37527
|
]),
|
|
@@ -37641,8 +37641,8 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37641
37641
|
const S = t(l).mapError((E) => Wu(E)).getOrDie();
|
|
37642
37642
|
return r(S, f, b, w);
|
|
37643
37643
|
}, Iq = {
|
|
37644
|
-
button: kg(H3, (t, r, l, f) =>
|
|
37645
|
-
togglebutton: kg(kO, (t, r, l, f) =>
|
|
37644
|
+
button: kg(H3, (t, r, l, f) => Q9(t, r.shared.providers, f)),
|
|
37645
|
+
togglebutton: kg(kO, (t, r, l, f) => V9(t, r.shared.providers, f)),
|
|
37646
37646
|
menubutton: kg(ML, (t, r, l, f) => Rp(t, "tox-tbtn", r, F.none(), !1, f)),
|
|
37647
37647
|
splitbutton: kg(KW, (t, r, l, f) => Nq(t, r.shared, f)),
|
|
37648
37648
|
grouptoolbarbutton: kg(DL, (t, r, l, f) => {
|
|
@@ -37658,16 +37658,16 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37658
37658
|
throw new Error("Toolbar groups are only supported when using floating toolbar mode");
|
|
37659
37659
|
}
|
|
37660
37660
|
})
|
|
37661
|
-
}, Fq = (t, r, l, f) => Xt(Iq, t.type).fold(() => (console.error("skipping button defined by", t), F.none()), (b) => F.some(b(t, r, l, f))),
|
|
37661
|
+
}, Fq = (t, r, l, f) => Xt(Iq, t.type).fold(() => (console.error("skipping button defined by", t), F.none()), (b) => F.some(b(t, r, l, f))), H9 = {
|
|
37662
37662
|
styles: _q,
|
|
37663
|
-
fontsize: $
|
|
37663
|
+
fontsize: $9,
|
|
37664
37664
|
fontsizeinput: kq,
|
|
37665
37665
|
fontfamily: fq,
|
|
37666
37666
|
blocks: dq,
|
|
37667
37667
|
align: lq
|
|
37668
37668
|
}, Qq = (t) => {
|
|
37669
37669
|
const r = Ye(Lq, (l) => {
|
|
37670
|
-
const f = bo(l.items, (b) => Uo(t, b) || Uo(
|
|
37670
|
+
const f = bo(l.items, (b) => Uo(t, b) || Uo(H9, b));
|
|
37671
37671
|
return {
|
|
37672
37672
|
name: l.name,
|
|
37673
37673
|
items: f
|
|
@@ -37680,7 +37680,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37680
37680
|
}, Vq = (t) => et(t, (r) => (Uo(r, "name") || Uo(r, "label")) && Uo(r, "items")), Hq = (t) => {
|
|
37681
37681
|
const r = t.toolbar, l = t.buttons;
|
|
37682
37682
|
return r === !1 ? [] : r === void 0 || r === !0 ? Qq(l) : x(r) ? Zq(r) : Vq(r) ? r : (console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"), []);
|
|
37683
|
-
}, zq = (t, r, l, f, b, w) => Xt(r, l.toLowerCase()).orThunk(() => w.bind((S) => rs(S, (E) => Xt(r, E + l.toLowerCase())))).fold(() => Xt(
|
|
37683
|
+
}, zq = (t, r, l, f, b, w) => Xt(r, l.toLowerCase()).orThunk(() => w.bind((S) => rs(S, (E) => Xt(r, E + l.toLowerCase())))).fold(() => Xt(H9, l.toLowerCase()).map((S) => S(t, b)), (S) => S.type === "grouptoolbarbutton" && !f ? (console.warn(`Ignoring the '${l}' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested.`), F.none()) : Fq(S, b, t, l.toLowerCase())), e2 = (t, r, l, f) => {
|
|
37684
37684
|
const b = Hq(r), w = Ye(b, (S) => {
|
|
37685
37685
|
const E = xe(S.items, (P) => P.trim().length === 0 ? [] : zq(t, r.buttons, P, r.allowToolbarGroups, l, f).toArray());
|
|
37686
37686
|
return {
|
|
@@ -37690,7 +37690,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37690
37690
|
};
|
|
37691
37691
|
});
|
|
37692
37692
|
return bo(w, (S) => S.items.length > 0);
|
|
37693
|
-
},
|
|
37693
|
+
}, z9 = (t, r, l, f) => {
|
|
37694
37694
|
const b = r.mainUi.outerContainer, w = l.toolbar, S = l.buttons;
|
|
37695
37695
|
if (et(w, x)) {
|
|
37696
37696
|
const E = w.map((P) => {
|
|
@@ -37704,7 +37704,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37704
37704
|
Ar.setToolbars(b, E);
|
|
37705
37705
|
} else
|
|
37706
37706
|
Ar.setToolbar(b, e2(t, l, f, F.none()));
|
|
37707
|
-
},
|
|
37707
|
+
}, U9 = Gr(), W9 = U9.os.isiOS() && U9.os.version.major <= 12, j9 = (t, r) => {
|
|
37708
37708
|
const { uiMotherships: l } = r, f = t.dom;
|
|
37709
37709
|
let b = t.getWin();
|
|
37710
37710
|
const w = t.getDoc().documentElement, S = Zn(hr(b.innerWidth, b.innerHeight)), E = Zn(hr(w.offsetWidth, w.offsetHeight)), P = () => {
|
|
@@ -37741,10 +37741,10 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37741
37741
|
ll(L, w.mothership), Uq(t, V, r), t.on("PostRender", () => {
|
|
37742
37742
|
Ar.setSidebar(P, l.sidebar, A6(t));
|
|
37743
37743
|
}), t.on("SkinLoaded", () => {
|
|
37744
|
-
|
|
37744
|
+
z9(t, r, l, f), E.set(t.getWin().innerWidth), Ar.setMenubar(P, gD(t, l)), Ar.setViews(P, l.views), j9(t, r);
|
|
37745
37745
|
});
|
|
37746
37746
|
const j = Ar.getSocket(P).getOrDie("Could not find expected socket element");
|
|
37747
|
-
if (
|
|
37747
|
+
if (W9) {
|
|
37748
37748
|
ys(j.element, {
|
|
37749
37749
|
overflow: "scroll",
|
|
37750
37750
|
"-webkit-overflow-scrolling": "touch"
|
|
@@ -37790,17 +37790,17 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37790
37790
|
};
|
|
37791
37791
|
}
|
|
37792
37792
|
});
|
|
37793
|
-
const
|
|
37793
|
+
const q9 = (t) => /^[0-9\.]+(|px)$/i.test("" + t) ? F.some(parseInt("" + t, 10)) : F.none(), SD = (t) => Ae(t) ? t + "px" : t, OT = (t, r, l) => {
|
|
37794
37794
|
const f = r.filter((w) => t < w), b = l.filter((w) => t > w);
|
|
37795
37795
|
return f.or(b).getOr(t);
|
|
37796
|
-
},
|
|
37796
|
+
}, X9 = (t) => {
|
|
37797
37797
|
const r = DE(t), l = ME(t), f = gO(t);
|
|
37798
|
-
return
|
|
37799
|
-
}, jq = (t) =>
|
|
37798
|
+
return q9(r).map((b) => OT(b, l, f));
|
|
37799
|
+
}, jq = (t) => X9(t).getOr(DE(t)), G9 = (t) => {
|
|
37800
37800
|
const r = RE(t), l = ox(t), f = t1(t);
|
|
37801
|
-
return
|
|
37802
|
-
}, qq = (t) =>
|
|
37803
|
-
const { mainUi: w, uiMotherships: S } = l, E = tx.DOM, P = bf(t), L = n1(t), V = t1(t).or(
|
|
37801
|
+
return q9(r).map((b) => OT(b, l, f));
|
|
37802
|
+
}, qq = (t) => G9(t).getOr(RE(t)), { ToolbarLocation: CD, ToolbarMode: fS } = NZ, Xq = 40, wT = (t, r, l, f, b) => {
|
|
37803
|
+
const { mainUi: w, uiMotherships: S } = l, E = tx.DOM, P = bf(t), L = n1(t), V = t1(t).or(G9(t)), j = f.shared.header, oe = j.isPositionedAtTop, ae = 150, me = pO(t), Oe = me === fS.sliding || me === fS.floating, qe = Zn(!1), we = () => qe.get() && !t.removed, Ve = (Fn) => Oe ? Fn.fold(ee(0), (Ut) => Ut.components().length > 1 ? ni(Ut.components()[1].element) : 0) : 0, Ue = (Fn) => {
|
|
37804
37804
|
switch (d3(t)) {
|
|
37805
37805
|
case CD.auto:
|
|
37806
37806
|
const Ut = Ar.getToolbar(w.outerContainer), bn = Ve(Ut), yo = ni(Fn.element) - bn, Ho = Ui(r);
|
|
@@ -37894,7 +37894,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37894
37894
|
pos: r ? l.y : l.bottom,
|
|
37895
37895
|
bounds: l
|
|
37896
37896
|
};
|
|
37897
|
-
},
|
|
37897
|
+
}, Y9 = (t, r, l, f) => {
|
|
37898
37898
|
const b = Zn(mS(r, l.isPositionedAtTop())), w = (L) => {
|
|
37899
37899
|
const { pos: V, bounds: j } = mS(r, l.isPositionedAtTop()), {
|
|
37900
37900
|
pos: oe,
|
|
@@ -37925,7 +37925,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37925
37925
|
__proto__: null,
|
|
37926
37926
|
render: (t, r, l, f, b) => {
|
|
37927
37927
|
const { mainUi: w } = r, S = Qs(), E = vt.fromDom(b.targetNode), P = wT(t, E, r, f, S), L = O6(t);
|
|
37928
|
-
|
|
37928
|
+
h9(t);
|
|
37929
37929
|
const V = () => {
|
|
37930
37930
|
if (S.isSet()) {
|
|
37931
37931
|
P.show();
|
|
@@ -37935,7 +37935,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37935
37935
|
const oe = WE(t);
|
|
37936
37936
|
Cp(t) ? (ll(E, w.mothership), ll(E, r.popupUi.mothership)) : Yl(oe, w.mothership), Yl(oe, r.dialogUi.mothership);
|
|
37937
37937
|
const ae = () => {
|
|
37938
|
-
|
|
37938
|
+
z9(t, r, l, f), Ar.setMenubar(w.outerContainer, gD(t, l)), P.show(), Y9(t, E, P, L), t.nodeChanged();
|
|
37939
37939
|
};
|
|
37940
37940
|
L ? t.once("SkinLoaded", ae) : ae();
|
|
37941
37941
|
};
|
|
@@ -37971,7 +37971,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
37971
37971
|
},
|
|
37972
37972
|
lazyGetInOuterOrDie: (w, S) => () => l.get().bind((E) => S(E.outerContainer)).getOrDie(`Could not find ${w} element in OuterContainer`)
|
|
37973
37973
|
};
|
|
37974
|
-
}, Kq = "contexttoolbar-show",
|
|
37974
|
+
}, Kq = "contexttoolbar-show", K9 = "contexttoolbar-hide", xT = ".tox-toolbar-slider__input,.tox-toolbar-textfield", ST = (t) => {
|
|
37975
37975
|
si.getContent(t).each((r) => {
|
|
37976
37976
|
Hr(r.element, xT).fold(() => Xn.focusIn(r), Dc);
|
|
37977
37977
|
});
|
|
@@ -38057,7 +38057,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
38057
38057
|
r.isSet() ? r.set(l) : Cn.setValue(t, l);
|
|
38058
38058
|
}
|
|
38059
38059
|
};
|
|
38060
|
-
},
|
|
38060
|
+
}, J9 = (t, r) => _t(rN, (l, f) => {
|
|
38061
38061
|
const b = t.get(l), w = Mp(b);
|
|
38062
38062
|
r.onAction(w, f.event.buttonApi);
|
|
38063
38063
|
}), eX = (t, r, l) => {
|
|
@@ -38066,15 +38066,15 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
38066
38066
|
type: "button",
|
|
38067
38067
|
onAction: ie
|
|
38068
38068
|
}));
|
|
38069
|
-
return
|
|
38069
|
+
return Z9(w, l, [J9(t, r)]);
|
|
38070
38070
|
}, tX = (t, r, l) => {
|
|
38071
38071
|
const { primary: f, ...b } = r.original, w = zt(kO({
|
|
38072
38072
|
...b,
|
|
38073
38073
|
type: "togglebutton",
|
|
38074
38074
|
onAction: ie
|
|
38075
38075
|
}));
|
|
38076
|
-
return xD(w, l, [
|
|
38077
|
-
}, gS = (t) => t.type === "contextformtogglebutton", nX = (t, r, l) => gS(r) ? tX(t, r, l) : eX(t, r, l),
|
|
38076
|
+
return xD(w, l, [J9(t, r)]);
|
|
38077
|
+
}, gS = (t) => t.type === "contextformtogglebutton", nX = (t, r, l) => gS(r) ? tX(t, r, l) : eX(t, r, l), eI = (t, r, l) => {
|
|
38078
38078
|
const f = Ye(r, (S) => Zs(nX(t, S, l)));
|
|
38079
38079
|
return {
|
|
38080
38080
|
asSpecs: () => Ye(f, (S) => S.asSpec()),
|
|
@@ -38154,7 +38154,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
38154
38154
|
])
|
|
38155
38155
|
});
|
|
38156
38156
|
return ED(b, w, r);
|
|
38157
|
-
},
|
|
38157
|
+
}, tI = (t, r, l) => {
|
|
38158
38158
|
const f = Zn(ie), b = t.label.map((P) => $s.parts.label({
|
|
38159
38159
|
dom: {
|
|
38160
38160
|
tag: "label",
|
|
@@ -38194,7 +38194,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
38194
38194
|
});
|
|
38195
38195
|
return ED(b, E, r);
|
|
38196
38196
|
}, AD = (t, r, l) => {
|
|
38197
|
-
const b = Zs(t(l, (P) => S.findPrimary(P).orThunk(() => E.findPrimary(P)).map((L) => (eg(L), !0)))), w = ms(r.commands, (P) => P.align === "start"), S =
|
|
38197
|
+
const b = Zs(t(l, (P) => S.findPrimary(P).orThunk(() => E.findPrimary(P)).map((L) => (eg(L), !0)))), w = ms(r.commands, (P) => P.align === "start"), S = eI(b, w.pass, l), E = eI(b, w.fail, l);
|
|
38198
38198
|
return bo([
|
|
38199
38199
|
{
|
|
38200
38200
|
title: F.none(),
|
|
@@ -38212,10 +38212,10 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
38212
38212
|
items: E.asSpecs()
|
|
38213
38213
|
}
|
|
38214
38214
|
], (P) => P.items.length > 0);
|
|
38215
|
-
},
|
|
38215
|
+
}, nI = (t, r) => {
|
|
38216
38216
|
switch (t.type) {
|
|
38217
38217
|
case "contextform":
|
|
38218
|
-
return AD(an(
|
|
38218
|
+
return AD(an(tI, t), t, r);
|
|
38219
38219
|
case "contextsliderform":
|
|
38220
38220
|
return AD(an(sX, t), t, r);
|
|
38221
38221
|
case "contextsizeinputform":
|
|
@@ -38225,13 +38225,13 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
38225
38225
|
renderContextForm: (t, r, l) => rT({
|
|
38226
38226
|
type: t,
|
|
38227
38227
|
uid: An("context-toolbar"),
|
|
38228
|
-
initGroups:
|
|
38228
|
+
initGroups: nI(r, l),
|
|
38229
38229
|
onEscape: F.none,
|
|
38230
38230
|
cyclicKeying: !0,
|
|
38231
38231
|
providers: l
|
|
38232
38232
|
}),
|
|
38233
|
-
buildInitGroups:
|
|
38234
|
-
},
|
|
38233
|
+
buildInitGroups: nI
|
|
38234
|
+
}, oI = (t, r, l) => r.bottom - t.y >= l && t.bottom - r.y >= l, pS = (t) => {
|
|
38235
38235
|
const r = t.getBoundingClientRect();
|
|
38236
38236
|
if (r.height <= 0 && r.width <= 0) {
|
|
38237
38237
|
const l = lc(vt.fromDom(t.startContainer), t.startOffset).element;
|
|
@@ -38253,7 +38253,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
38253
38253
|
x: f,
|
|
38254
38254
|
width: b - f
|
|
38255
38255
|
};
|
|
38256
|
-
},
|
|
38256
|
+
}, sI = (t, r, l, f, b, w) => {
|
|
38257
38257
|
const S = vt.fromDom(t.getContainer()), E = Hr(S, ".tox-editor-header").getOr(S), P = Ui(E), L = P.y >= r.bottom, V = f && !L;
|
|
38258
38258
|
if (t.inline && V)
|
|
38259
38259
|
return {
|
|
@@ -38278,7 +38278,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
38278
38278
|
if (t.inline && !S)
|
|
38279
38279
|
return Mr(E, b.y, P, b.height);
|
|
38280
38280
|
{
|
|
38281
|
-
const L = r.header.isPositionedAtTop(), { y: V, bottom: j } =
|
|
38281
|
+
const L = r.header.isPositionedAtTop(), { y: V, bottom: j } = sI(t, w, b, L, l, f);
|
|
38282
38282
|
return Mr(E, V, P, j - V);
|
|
38283
38283
|
}
|
|
38284
38284
|
}, bS = 12, $D = {
|
|
@@ -38291,7 +38291,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
38291
38291
|
bottom: ["tox-pop--bottom"],
|
|
38292
38292
|
top: ["tox-pop--top"],
|
|
38293
38293
|
inset: ["tox-pop--inset"]
|
|
38294
|
-
},
|
|
38294
|
+
}, rI = {
|
|
38295
38295
|
maxHeightFunction: k0(),
|
|
38296
38296
|
maxWidthFunction: tD()
|
|
38297
38297
|
}, t2 = (t, r) => {
|
|
@@ -38307,7 +38307,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
38307
38307
|
if (t2(t, l))
|
|
38308
38308
|
return S ? tL : Ef;
|
|
38309
38309
|
if (S)
|
|
38310
|
-
return ET(r, f.getMode(), () =>
|
|
38310
|
+
return ET(r, f.getMode(), () => oI(w, Ui(r), -20) && !f.isReposition() ? nL : tL);
|
|
38311
38311
|
{
|
|
38312
38312
|
const E = f.getMode() === "fixed" ? b.y + Za().top : b.y, P = ni(r) + bS;
|
|
38313
38313
|
return E + P <= w.y ? Ef : oS;
|
|
@@ -38359,24 +38359,24 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
38359
38359
|
ma
|
|
38360
38360
|
].concat(w(P))
|
|
38361
38361
|
};
|
|
38362
|
-
},
|
|
38362
|
+
}, iI = (t, r, l, f) => r === "line" ? {
|
|
38363
38363
|
bubble: Md(bS, 0, $D),
|
|
38364
38364
|
layouts: {
|
|
38365
38365
|
onLtr: () => [cb],
|
|
38366
38366
|
onRtl: () => [Sy]
|
|
38367
38367
|
},
|
|
38368
|
-
overrides:
|
|
38368
|
+
overrides: rI
|
|
38369
38369
|
} : {
|
|
38370
38370
|
bubble: Md(0, bS, $D, 1 / bS),
|
|
38371
38371
|
layouts: DD(t, l, f, r),
|
|
38372
|
-
overrides:
|
|
38372
|
+
overrides: rI
|
|
38373
38373
|
}, n2 = (t, r) => {
|
|
38374
38374
|
const l = bo(r, (w) => w.predicate(t.dom)), { pass: f, fail: b } = ms(l, (w) => w.type === "contexttoolbar");
|
|
38375
38375
|
return {
|
|
38376
38376
|
contextToolbars: f,
|
|
38377
38377
|
contextForms: b
|
|
38378
38378
|
};
|
|
38379
|
-
},
|
|
38379
|
+
}, aI = (t) => {
|
|
38380
38380
|
if (t.length <= 1)
|
|
38381
38381
|
return t;
|
|
38382
38382
|
{
|
|
@@ -38393,7 +38393,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
38393
38393
|
else
|
|
38394
38394
|
return l("line");
|
|
38395
38395
|
}
|
|
38396
|
-
},
|
|
38396
|
+
}, lI = (t) => {
|
|
38397
38397
|
if (t.length <= 1)
|
|
38398
38398
|
return t;
|
|
38399
38399
|
{
|
|
@@ -38415,7 +38415,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
38415
38415
|
toolbars: [b.contextForms[0]]
|
|
38416
38416
|
});
|
|
38417
38417
|
if (f.contextToolbars.length > 0 || b.contextToolbars.length > 0) {
|
|
38418
|
-
const w =
|
|
38418
|
+
const w = aI(f.contextToolbars.concat(b.contextToolbars));
|
|
38419
38419
|
return F.some({
|
|
38420
38420
|
elem: t,
|
|
38421
38421
|
toolbars: w
|
|
@@ -38425,14 +38425,14 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
38425
38425
|
}
|
|
38426
38426
|
}, lX = (t, r, l) => t(r) ? F.none() : wl(r, (f) => {
|
|
38427
38427
|
if (Fo(f)) {
|
|
38428
|
-
const { contextToolbars: b, contextForms: w } = n2(f, l.inNodeScope), S = w.length > 0 ? w :
|
|
38428
|
+
const { contextToolbars: b, contextForms: w } = n2(f, l.inNodeScope), S = w.length > 0 ? w : lI(b);
|
|
38429
38429
|
return S.length > 0 ? F.some({
|
|
38430
38430
|
elem: f,
|
|
38431
38431
|
toolbars: S
|
|
38432
38432
|
}) : F.none();
|
|
38433
38433
|
} else
|
|
38434
38434
|
return F.none();
|
|
38435
|
-
}, t),
|
|
38435
|
+
}, t), cI = (t, r) => {
|
|
38436
38436
|
const l = vt.fromDom(r.getBody()), f = (S) => qo(S, l), b = (S) => !f(S) && !ml(l, S), w = vt.fromDom(r.selection.getNode());
|
|
38437
38437
|
return b(w) ? F.none() : RD(w, t.inNodeScope, t.inEditorScope).orThunk(() => lX(f, w, t));
|
|
38438
38438
|
}, cX = (t, r) => {
|
|
@@ -38478,7 +38478,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
38478
38478
|
}, oe = () => !t.removed && !(S() && b.isContextMenuOpen()), ae = (gn) => Dr(Zi(gn, E.get(), qo), !0), me = () => {
|
|
38479
38479
|
if (oe()) {
|
|
38480
38480
|
const gn = j(), Bn = Dr(L.get(), "node") ? iX(t, E.get()) : TT(t);
|
|
38481
|
-
return gn.height <= 0 || !
|
|
38481
|
+
return gn.height <= 0 || !oI(Bn, gn, 0.01);
|
|
38482
38482
|
} else
|
|
38483
38483
|
return !0;
|
|
38484
38484
|
}, Oe = () => {
|
|
@@ -38526,7 +38526,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
38526
38526
|
providers: w.providers
|
|
38527
38527
|
});
|
|
38528
38528
|
}, on = (gn, Bn) => {
|
|
38529
|
-
const cs = gn === "node" ? w.anchors.node(Bn) : w.anchors.cursor(), $r =
|
|
38529
|
+
const cs = gn === "node" ? w.anchors.node(Bn) : w.anchors.cursor(), $r = iI(t, gn, S(), {
|
|
38530
38530
|
lastElement: E.get,
|
|
38531
38531
|
isReposition: () => Dr(P.get(), 0),
|
|
38532
38532
|
getMode: () => Xa.getMode(l)
|
|
@@ -38553,13 +38553,13 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
38553
38553
|
Dn.throttle();
|
|
38554
38554
|
else {
|
|
38555
38555
|
const gn = Ve();
|
|
38556
|
-
|
|
38556
|
+
cI(gn, t).fold(Oe, (Bn) => {
|
|
38557
38557
|
_n(Bn.toolbars, F.some(Bn.elem));
|
|
38558
38558
|
});
|
|
38559
38559
|
}
|
|
38560
38560
|
}, 17);
|
|
38561
38561
|
t.on("init", () => {
|
|
38562
|
-
t.on("remove", Oe), t.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress", qe), t.on("click keyup focus SetContent", Dn.throttle), t.on(
|
|
38562
|
+
t.on("remove", Oe), t.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress", qe), t.on("click keyup focus SetContent", Dn.throttle), t.on(K9, Oe), t.on(Kq, (gn) => {
|
|
38563
38563
|
const Bn = Ve();
|
|
38564
38564
|
Xt(Bn.lookupTable, gn.toolbarKey).each((cs) => {
|
|
38565
38565
|
_n([cs], jn(gn.target !== t, gn.target)), ST(V);
|
|
@@ -38584,7 +38584,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
38584
38584
|
ql(V.element).fold(Dn.throttle, ie);
|
|
38585
38585
|
});
|
|
38586
38586
|
});
|
|
38587
|
-
},
|
|
38587
|
+
}, uI = (t) => {
|
|
38588
38588
|
xt([
|
|
38589
38589
|
{
|
|
38590
38590
|
name: "alignleft",
|
|
@@ -38623,7 +38623,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
38623
38623
|
onSetup: Jl(t),
|
|
38624
38624
|
onAction: nu(t, "JustifyNone")
|
|
38625
38625
|
});
|
|
38626
|
-
},
|
|
38626
|
+
}, dI = (t, r) => {
|
|
38627
38627
|
const l = () => {
|
|
38628
38628
|
const f = r.getOptions(t), b = r.getCurrent(t).map(r.hash), w = Qs();
|
|
38629
38629
|
return Ye(f, (S) => ({
|
|
@@ -38701,18 +38701,18 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
38701
38701
|
},
|
|
38702
38702
|
onMenuSetup: Jl(t)
|
|
38703
38703
|
})), hX = (t) => {
|
|
38704
|
-
|
|
38704
|
+
dI(t, uX(t)), dX(t).each((r) => dI(t, r));
|
|
38705
38705
|
}, fX = (t, r) => {
|
|
38706
|
-
cq(t, r), mq(t, r), Eq(t, r),
|
|
38707
|
-
},
|
|
38706
|
+
cq(t, r), mq(t, r), Eq(t, r), O9(t, r), D9(t, r);
|
|
38707
|
+
}, hI = (t) => {
|
|
38708
38708
|
t.ui.registry.addContext("editable", () => t.selection.isEditable()), t.ui.registry.addContext("mode", (r) => t.mode.get() === r), t.ui.registry.addContext("any", ft), t.ui.registry.addContext("formatting", (r) => t.formatter.canApply(r)), t.ui.registry.addContext("insert", (r) => t.schema.isValidChild(t.selection.getNode().tagName, r));
|
|
38709
|
-
},
|
|
38709
|
+
}, fI = (t) => tv(t, "NodeChange", (r) => {
|
|
38710
38710
|
r.setEnabled(t.queryCommandState("outdent") && t.selection.isEditable());
|
|
38711
|
-
}),
|
|
38711
|
+
}), mI = (t) => {
|
|
38712
38712
|
t.ui.registry.addButton("outdent", {
|
|
38713
38713
|
tooltip: "Decrease indent",
|
|
38714
38714
|
icon: "outdent",
|
|
38715
|
-
onSetup:
|
|
38715
|
+
onSetup: fI(t),
|
|
38716
38716
|
onAction: nu(t, "outdent")
|
|
38717
38717
|
}), t.ui.registry.addButton("indent", {
|
|
38718
38718
|
tooltip: "Increase indent",
|
|
@@ -38720,27 +38720,27 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
38720
38720
|
onSetup: Jl(t),
|
|
38721
38721
|
onAction: nu(t, "indent")
|
|
38722
38722
|
});
|
|
38723
|
-
},
|
|
38724
|
-
|
|
38725
|
-
},
|
|
38723
|
+
}, gI = (t) => {
|
|
38724
|
+
mI(t);
|
|
38725
|
+
}, pI = (t, r) => (l) => {
|
|
38726
38726
|
l.setActive(r.get());
|
|
38727
38727
|
const f = (b) => {
|
|
38728
38728
|
r.set(b.state), l.setActive(b.state);
|
|
38729
38729
|
};
|
|
38730
38730
|
return t.on("PastePlainTextToggle", f), ev(() => t.off("PastePlainTextToggle", f), Jl(t)(l));
|
|
38731
|
-
},
|
|
38731
|
+
}, bI = (t) => {
|
|
38732
38732
|
const r = Zn(E6(t)), l = () => t.execCommand("mceTogglePlainTextPaste");
|
|
38733
38733
|
t.ui.registry.addToggleButton("pastetext", {
|
|
38734
38734
|
active: !1,
|
|
38735
38735
|
icon: "paste-text",
|
|
38736
38736
|
tooltip: "Paste as text",
|
|
38737
38737
|
onAction: l,
|
|
38738
|
-
onSetup:
|
|
38738
|
+
onSetup: pI(t, r)
|
|
38739
38739
|
}), t.ui.registry.addToggleMenuItem("pastetext", {
|
|
38740
38740
|
text: "Paste as text",
|
|
38741
38741
|
icon: "paste-text",
|
|
38742
38742
|
onAction: l,
|
|
38743
|
-
onSetup:
|
|
38743
|
+
onSetup: pI(t, r)
|
|
38744
38744
|
});
|
|
38745
38745
|
}, $T = (t, r) => () => {
|
|
38746
38746
|
t.execCommand("mceToggleFormat", !1, r);
|
|
@@ -39075,8 +39075,8 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39075
39075
|
}, kX = (t) => {
|
|
39076
39076
|
CX(t), SX(t);
|
|
39077
39077
|
}, TX = (t, r) => {
|
|
39078
|
-
|
|
39079
|
-
},
|
|
39078
|
+
uI(t), vX(t), fX(t, r), wX(t), yH(t), kX(t), gI(t), hX(t), bI(t), hI(t);
|
|
39079
|
+
}, vI = (t) => x(t) ? t.split(/[ ,]/) : t, yI = (t) => (r) => r.options.get(t), _X = (t) => {
|
|
39080
39080
|
const r = t.options.register;
|
|
39081
39081
|
r("contextmenu_avoid_overlap", {
|
|
39082
39082
|
processor: "string",
|
|
@@ -39089,7 +39089,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39089
39089
|
value: [],
|
|
39090
39090
|
valid: !0
|
|
39091
39091
|
} : x(l) || et(l, x) ? {
|
|
39092
|
-
value:
|
|
39092
|
+
value: vI(l),
|
|
39093
39093
|
valid: !0
|
|
39094
39094
|
} : {
|
|
39095
39095
|
valid: !1,
|
|
@@ -39097,21 +39097,21 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39097
39097
|
},
|
|
39098
39098
|
default: "link linkchecker image editimage table spellchecker configurepermanentpen"
|
|
39099
39099
|
});
|
|
39100
|
-
},
|
|
39100
|
+
}, OI = yI("contextmenu_never_use_native"), EX = yI("contextmenu_avoid_overlap"), AX = (t) => wI(t).length === 0, wI = (t) => {
|
|
39101
39101
|
const r = t.ui.registry.getAll().contextMenus, l = t.options.get("contextmenu");
|
|
39102
39102
|
return t.options.isSet("contextmenu") ? l : bo(l, (f) => Uo(r, f));
|
|
39103
39103
|
}, yS = (t, r) => ({
|
|
39104
39104
|
type: "makeshift",
|
|
39105
39105
|
x: t,
|
|
39106
39106
|
y: r
|
|
39107
|
-
}), $X = (t, r, l) => yS(t.x + r, t.y + l),
|
|
39108
|
-
if (
|
|
39107
|
+
}), $X = (t, r, l) => yS(t.x + r, t.y + l), xI = (t) => t.type === "longpress" || t.type.indexOf("touch") === 0, BD = (t) => {
|
|
39108
|
+
if (xI(t)) {
|
|
39109
39109
|
const r = t.touches[0];
|
|
39110
39110
|
return yS(r.pageX, r.pageY);
|
|
39111
39111
|
} else
|
|
39112
39112
|
return yS(t.pageX, t.pageY);
|
|
39113
39113
|
}, PX = (t) => {
|
|
39114
|
-
if (
|
|
39114
|
+
if (xI(t)) {
|
|
39115
39115
|
const r = t.touches[0];
|
|
39116
39116
|
return yS(r.clientX, r.clientY);
|
|
39117
39117
|
} else
|
|
@@ -39122,21 +39122,21 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39122
39122
|
}, ND = (t, r) => r.type === "contextmenu" || r.type === "longpress" ? t.inline ? BD(r) : DX(t.getContentAreaContainer(), PX(r)) : LD(t), LD = (t) => ({
|
|
39123
39123
|
type: "selection",
|
|
39124
39124
|
root: vt.fromDom(t.selection.getNode())
|
|
39125
|
-
}),
|
|
39125
|
+
}), SI = (t) => ({
|
|
39126
39126
|
type: "node",
|
|
39127
39127
|
node: F.some(vt.fromDom(t.selection.getNode())),
|
|
39128
39128
|
root: vt.fromDom(t.getBody())
|
|
39129
|
-
}),
|
|
39129
|
+
}), CI = (t, r, l) => {
|
|
39130
39130
|
switch (l) {
|
|
39131
39131
|
case "node":
|
|
39132
|
-
return
|
|
39132
|
+
return SI(t);
|
|
39133
39133
|
case "point":
|
|
39134
39134
|
return ND(t, r);
|
|
39135
39135
|
case "selection":
|
|
39136
39136
|
return LD(t);
|
|
39137
39137
|
}
|
|
39138
39138
|
}, RX = (t, r, l, f, b, w) => {
|
|
39139
|
-
const S = l(), E =
|
|
39139
|
+
const S = l(), E = CI(t, r, w);
|
|
39140
39140
|
FO(S, yf.CLOSE_ON_EXECUTE, f, {
|
|
39141
39141
|
isHorizontalMenu: !1,
|
|
39142
39142
|
search: F.none()
|
|
@@ -39208,8 +39208,8 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39208
39208
|
const w = () => {
|
|
39209
39209
|
t.off("touchend", l), t.off("longpresscancel", b), t.off("mousedown", f);
|
|
39210
39210
|
};
|
|
39211
|
-
},
|
|
39212
|
-
const f =
|
|
39211
|
+
}, kI = (t, r, l) => {
|
|
39212
|
+
const f = CI(t, r, l);
|
|
39213
39213
|
return {
|
|
39214
39214
|
bubble: Md(0, l === "point" ? BX : 0, NX),
|
|
39215
39215
|
layouts: MX,
|
|
@@ -39220,7 +39220,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39220
39220
|
...f
|
|
39221
39221
|
};
|
|
39222
39222
|
}, IX = (t, r, l, f, b, w, S) => {
|
|
39223
|
-
const E =
|
|
39223
|
+
const E = kI(t, r, w);
|
|
39224
39224
|
FO(l, yf.CLOSE_ON_EXECUTE, f, {
|
|
39225
39225
|
isHorizontalMenu: !0,
|
|
39226
39226
|
search: F.none()
|
|
@@ -39234,7 +39234,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39234
39234
|
},
|
|
39235
39235
|
data: P,
|
|
39236
39236
|
type: "horizontal"
|
|
39237
|
-
}, () => F.some(_T(t, f.shared, w === "node" ? "node" : "selection"))), t.dispatch(
|
|
39237
|
+
}, () => F.some(_T(t, f.shared, w === "node" ? "node" : "selection"))), t.dispatch(K9);
|
|
39238
39238
|
});
|
|
39239
39239
|
}, FX = (t, r, l, f, b, w) => {
|
|
39240
39240
|
const S = Gr(), E = S.os.isiOS(), P = S.os.isMacOS(), L = S.os.isAndroid(), V = S.deviceType.isTouch(), j = () => !(L || E || P && V), oe = () => {
|
|
@@ -39277,7 +39277,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39277
39277
|
onAction: je(l.onAction)
|
|
39278
39278
|
};
|
|
39279
39279
|
}
|
|
39280
|
-
},
|
|
39280
|
+
}, TI = (t, r) => {
|
|
39281
39281
|
if (r.length === 0)
|
|
39282
39282
|
return t;
|
|
39283
39283
|
const f = aa(t).filter((b) => !DT(b)).fold(() => [], (b) => [FD]);
|
|
@@ -39286,18 +39286,18 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39286
39286
|
const f = Go(r, (b, w) => Xt(t, w.toLowerCase()).map((S) => {
|
|
39287
39287
|
const E = S.update(l);
|
|
39288
39288
|
if (x(E) && Ee(vr(E)))
|
|
39289
|
-
return
|
|
39289
|
+
return TI(b, E.split(" "));
|
|
39290
39290
|
if (R(E) && E.length > 0) {
|
|
39291
39291
|
const P = Ye(E, QD);
|
|
39292
|
-
return
|
|
39292
|
+
return TI(b, P);
|
|
39293
39293
|
} else
|
|
39294
39294
|
return b;
|
|
39295
39295
|
}).getOrThunk(() => b.concat([w])), []);
|
|
39296
39296
|
return f.length > 0 && DT(f[f.length - 1]) && f.pop(), f;
|
|
39297
|
-
}, ZD = (t, r) => r.ctrlKey && !
|
|
39298
|
-
const l = EX(t), f =
|
|
39297
|
+
}, ZD = (t, r) => r.ctrlKey && !OI(t), ZX = (t) => t.type === "longpress" || Uo(t, "touches"), _I = (t, r) => !ZX(r) && (r.button !== 2 || r.target === t.getBody() && r.pointerType === ""), EI = (t, r) => _I(t, r) ? t.selection.getStart(!0) : r.target, VX = (t, r) => {
|
|
39298
|
+
const l = EX(t), f = _I(t, r) ? "selection" : "point";
|
|
39299
39299
|
if (Ee(l)) {
|
|
39300
|
-
const b =
|
|
39300
|
+
const b = EI(t, r);
|
|
39301
39301
|
return Tm(vt.fromDom(b), l) ? "node" : f;
|
|
39302
39302
|
} else
|
|
39303
39303
|
return f;
|
|
@@ -39313,10 +39313,10 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39313
39313
|
ks.close(P), t.focus();
|
|
39314
39314
|
})])])
|
|
39315
39315
|
})), S = () => si.hide(w), E = (P) => {
|
|
39316
|
-
if (
|
|
39316
|
+
if (OI(t) && P.preventDefault(), ZD(t, P) || AX(t))
|
|
39317
39317
|
return;
|
|
39318
39318
|
const L = VX(t, P), V = () => {
|
|
39319
|
-
const oe =
|
|
39319
|
+
const oe = EI(t, P), ae = t.ui.registry.getAll(), me = wI(t);
|
|
39320
39320
|
return QX(ae.contextMenus, me, oe);
|
|
39321
39321
|
};
|
|
39322
39322
|
(b() ? FX : RX)(t, P, V, l, w, L);
|
|
@@ -39347,7 +39347,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39347
39347
|
]), MT = (t) => (r) => r.translate(-t.left, -t.top), BT = (t) => (r) => r.translate(t.left, t.top), Bp = (t) => (r, l) => Go(t, (f, b) => b(f), hr(r, l)), NT = (t, r, l) => t.fold(Bp([
|
|
39348
39348
|
BT(l),
|
|
39349
39349
|
MT(r)
|
|
39350
|
-
]), Bp([MT(r)]), Bp([])), o2 = (t, r, l) => t.fold(Bp([BT(l)]), Bp([]), Bp([BT(r)])),
|
|
39350
|
+
]), Bp([MT(r)]), Bp([])), o2 = (t, r, l) => t.fold(Bp([BT(l)]), Bp([]), Bp([BT(r)])), AI = (t, r, l) => t.fold(Bp([]), Bp([MT(l)]), Bp([
|
|
39351
39351
|
BT(r),
|
|
39352
39352
|
MT(l)
|
|
39353
39353
|
])), zX = (t, r, l, f, b, w) => {
|
|
@@ -39380,11 +39380,11 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39380
39380
|
const L = w(r, l, f);
|
|
39381
39381
|
return S(E.getOr(L.left), P.getOr(L.top));
|
|
39382
39382
|
};
|
|
39383
|
-
return t.fold(b(
|
|
39383
|
+
return t.fold(b(AI, IT), b(o2, v1), b(NT, fv));
|
|
39384
39384
|
}, IT = RT.offset, v1 = RT.absolute, fv = RT.fixed, y1 = (t, r) => {
|
|
39385
39385
|
const l = fo(t, r);
|
|
39386
39386
|
return te(l) ? NaN : parseInt(l, 10);
|
|
39387
|
-
}, $
|
|
39387
|
+
}, $I = (t, r) => {
|
|
39388
39388
|
const l = t.element, f = y1(l, r.leftAttr), b = y1(l, r.topAttr);
|
|
39389
39389
|
return isNaN(f) || isNaN(b) ? F.none() : F.some(hr(f, b));
|
|
39390
39390
|
}, jX = (t, r, l) => {
|
|
@@ -39393,7 +39393,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39393
39393
|
}, qX = (t, r) => {
|
|
39394
39394
|
const l = t.element;
|
|
39395
39395
|
ce(l, r.leftAttr), ce(l, r.topAttr);
|
|
39396
|
-
}, XX = (t, r, l, f) => $
|
|
39396
|
+
}, XX = (t, r, l, f) => $I(t, r).fold(() => l, (b) => fv(b.left + f.left, b.top + f.top)), GX = (t, r, l, f, b, w) => {
|
|
39397
39397
|
const S = XX(t, r, l, f), E = r.mustSnap ? YX(t, r, S, b, w) : KX(t, r, S, b, w), P = NT(S, b, w);
|
|
39398
39398
|
return jX(t, r, P), E.fold(() => ({
|
|
39399
39399
|
coord: fv(P.left, P.top),
|
|
@@ -39402,9 +39402,9 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39402
39402
|
coord: L.output,
|
|
39403
39403
|
extra: L.extra
|
|
39404
39404
|
}));
|
|
39405
|
-
},
|
|
39405
|
+
}, PI = (t, r) => {
|
|
39406
39406
|
qX(t, r);
|
|
39407
|
-
},
|
|
39407
|
+
}, DI = (t, r, l, f) => rs(t, (b) => {
|
|
39408
39408
|
const w = b.sensor;
|
|
39409
39409
|
return zX(r, w, b.range.left, b.range.top, l, f) ? F.some({
|
|
39410
39410
|
output: LT(b.output, r, l, f),
|
|
@@ -39412,7 +39412,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39412
39412
|
}) : F.none();
|
|
39413
39413
|
}), YX = (t, r, l, f, b) => {
|
|
39414
39414
|
const w = r.getSnapPoints(t);
|
|
39415
|
-
return
|
|
39415
|
+
return DI(w, l, f, b).orThunk(() => Go(w, (P, L) => {
|
|
39416
39416
|
const V = L.sensor, j = UX(l, V, L.range.left, L.range.top, f, b);
|
|
39417
39417
|
return P.deltas.fold(() => ({
|
|
39418
39418
|
deltas: F.some(j),
|
|
@@ -39433,7 +39433,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39433
39433
|
})));
|
|
39434
39434
|
}, KX = (t, r, l, f, b) => {
|
|
39435
39435
|
const w = r.getSnapPoints(t);
|
|
39436
|
-
return
|
|
39436
|
+
return DI(w, l, f, b);
|
|
39437
39437
|
}, JX = (t, r, l) => ({
|
|
39438
39438
|
coord: LT(t.output, t.output, r, l),
|
|
39439
39439
|
extra: t.extra
|
|
@@ -39458,9 +39458,9 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39458
39458
|
cn(r, HD, l);
|
|
39459
39459
|
}), rn(r, "z-index", Bt(t.element, "z-index"));
|
|
39460
39460
|
});
|
|
39461
|
-
},
|
|
39461
|
+
}, RI = (t, r) => {
|
|
39462
39462
|
t.getSystem().addToGui(r), nG(r);
|
|
39463
|
-
},
|
|
39463
|
+
}, MI = (t) => {
|
|
39464
39464
|
tG(t), t.getSystem().removeFromGui(t);
|
|
39465
39465
|
}, zD = (t, r, l) => t.getSystem().build(_m.sketch({
|
|
39466
39466
|
dom: {
|
|
@@ -39499,7 +39499,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39499
39499
|
}), rG = (t, r, l, f, b) => {
|
|
39500
39500
|
const w = b.bounds, S = o2(r, l, f), E = Ju(S.left, w.x, w.x + w.width - b.width), P = Ju(S.top, w.y, w.y + w.height - b.height), L = v1(E, P);
|
|
39501
39501
|
return r.fold(() => {
|
|
39502
|
-
const V =
|
|
39502
|
+
const V = AI(L, l, f);
|
|
39503
39503
|
return IT(V.left, V.top);
|
|
39504
39504
|
}, ee(L), () => {
|
|
39505
39505
|
const V = NT(L, l, f);
|
|
@@ -39523,24 +39523,24 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39523
39523
|
ri(b, V);
|
|
39524
39524
|
}
|
|
39525
39525
|
r.onDrag(t, b, f);
|
|
39526
|
-
},
|
|
39526
|
+
}, BI = (t, r) => ({
|
|
39527
39527
|
bounds: t.getBounds(),
|
|
39528
39528
|
height: Hc(r.element),
|
|
39529
39529
|
width: tt(r.element)
|
|
39530
39530
|
}), WD = (t, r, l, f, b) => {
|
|
39531
|
-
const w = l.update(f, b), S = l.getStartData().getOrThunk(() =>
|
|
39531
|
+
const w = l.update(f, b), S = l.getStartData().getOrThunk(() => BI(r, t));
|
|
39532
39532
|
w.each((E) => {
|
|
39533
39533
|
iG(t, r, S, E);
|
|
39534
39534
|
});
|
|
39535
|
-
},
|
|
39536
|
-
r.each(
|
|
39537
|
-
|
|
39535
|
+
}, NI = (t, r, l, f) => {
|
|
39536
|
+
r.each(MI), l.snaps.each((w) => {
|
|
39537
|
+
PI(t, w);
|
|
39538
39538
|
});
|
|
39539
39539
|
const b = l.getTarget(t.element);
|
|
39540
39540
|
f.reset(), l.onDrop(t, b);
|
|
39541
39541
|
}, jD = (t) => (r, l) => {
|
|
39542
39542
|
const f = (b) => {
|
|
39543
|
-
l.setStartData(
|
|
39543
|
+
l.setStartData(BI(r, b));
|
|
39544
39544
|
};
|
|
39545
39545
|
return er([
|
|
39546
39546
|
_t(U1(), (b) => {
|
|
@@ -39561,11 +39561,11 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39561
39561
|
getData: (t) => F.from(hr(t.x, t.y)),
|
|
39562
39562
|
getDelta: (t, r) => hr(r.left - t.left, r.top - t.top)
|
|
39563
39563
|
});
|
|
39564
|
-
const
|
|
39564
|
+
const LI = (t, r, l) => [_t(ki(), (f, b) => {
|
|
39565
39565
|
if (b.event.raw.button !== 0)
|
|
39566
39566
|
return;
|
|
39567
39567
|
b.stop();
|
|
39568
|
-
const S = () =>
|
|
39568
|
+
const S = () => NI(f, F.some(L), t, r), E = F7(S, 200), P = {
|
|
39569
39569
|
drop: S,
|
|
39570
39570
|
delayDrop: E.schedule,
|
|
39571
39571
|
forceDrop: S,
|
|
@@ -39574,11 +39574,11 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39574
39574
|
}
|
|
39575
39575
|
}, L = zD(f, t.blockerClass, aG(P));
|
|
39576
39576
|
(() => {
|
|
39577
|
-
l(f),
|
|
39577
|
+
l(f), RI(f, L);
|
|
39578
39578
|
})();
|
|
39579
39579
|
})], cG = [
|
|
39580
39580
|
...mv,
|
|
39581
|
-
Ir("dragger", { handlers: jD(
|
|
39581
|
+
Ir("dragger", { handlers: jD(LI) })
|
|
39582
39582
|
], uG = (t) => er([
|
|
39583
39583
|
_t(Xu(), t.forceDrop),
|
|
39584
39584
|
_t(Cr(), t.drop),
|
|
@@ -39590,7 +39590,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39590
39590
|
const r = t[0];
|
|
39591
39591
|
return F.some(hr(r.clientX, r.clientY));
|
|
39592
39592
|
};
|
|
39593
|
-
var
|
|
39593
|
+
var II = /* @__PURE__ */ Object.freeze({
|
|
39594
39594
|
__proto__: null,
|
|
39595
39595
|
getData: (t) => {
|
|
39596
39596
|
const l = t.raw.touches;
|
|
@@ -39598,9 +39598,9 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39598
39598
|
},
|
|
39599
39599
|
getDelta: (t, r) => hr(r.left - t.left, r.top - t.top)
|
|
39600
39600
|
});
|
|
39601
|
-
const
|
|
39601
|
+
const FI = (t, r, l) => {
|
|
39602
39602
|
const f = Qs(), b = (w) => {
|
|
39603
|
-
|
|
39603
|
+
NI(w, f.get(), t, r), f.clear();
|
|
39604
39604
|
};
|
|
39605
39605
|
return [
|
|
39606
39606
|
_t(Xu(), (w, S) => {
|
|
@@ -39610,15 +39610,15 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39610
39610
|
delayDrop: ie,
|
|
39611
39611
|
forceDrop: E,
|
|
39612
39612
|
move: (j) => {
|
|
39613
|
-
WD(w, t, r,
|
|
39613
|
+
WD(w, t, r, II, j);
|
|
39614
39614
|
}
|
|
39615
39615
|
}, L = zD(w, t.blockerClass, uG(P));
|
|
39616
39616
|
f.set(L), (() => {
|
|
39617
|
-
l(w),
|
|
39617
|
+
l(w), RI(w, L);
|
|
39618
39618
|
})();
|
|
39619
39619
|
}),
|
|
39620
39620
|
_t(Os(), (w, S) => {
|
|
39621
|
-
S.stop(), WD(w, t, r,
|
|
39621
|
+
S.stop(), WD(w, t, r, II, S.event);
|
|
39622
39622
|
}),
|
|
39623
39623
|
_t(Cr(), (w, S) => {
|
|
39624
39624
|
S.stop(), b(w);
|
|
@@ -39627,10 +39627,10 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39627
39627
|
];
|
|
39628
39628
|
}, FT = [
|
|
39629
39629
|
...mv,
|
|
39630
|
-
Ir("dragger", { handlers: jD(
|
|
39630
|
+
Ir("dragger", { handlers: jD(FI) })
|
|
39631
39631
|
], hG = (t, r, l) => [
|
|
39632
|
-
...
|
|
39633
|
-
...
|
|
39632
|
+
...LI(t, r, l),
|
|
39633
|
+
...FI(t, r, l)
|
|
39634
39634
|
], fG = [
|
|
39635
39635
|
...mv,
|
|
39636
39636
|
Ir("dragger", { handlers: jD(hG) })
|
|
@@ -39678,7 +39678,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39678
39678
|
},
|
|
39679
39679
|
state: pG,
|
|
39680
39680
|
apis: eG
|
|
39681
|
-
}), qD = 40, QT = qD / 2,
|
|
39681
|
+
}), qD = 40, QT = qD / 2, QI = (t, r, l, f, b, w) => t.fold(() => gv.snap({
|
|
39682
39682
|
sensor: v1(l - QT, f - QT),
|
|
39683
39683
|
range: hr(b, w),
|
|
39684
39684
|
output: v1(F.some(l), F.some(f)),
|
|
@@ -39729,10 +39729,10 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39729
39729
|
})), bG = (t, r) => {
|
|
39730
39730
|
const l = Zn([]), f = Zn([]), b = Zn(!1), w = Qs(), S = Qs(), E = (_n) => {
|
|
39731
39731
|
const kt = bl(_n);
|
|
39732
|
-
return
|
|
39732
|
+
return QI(ae.getOpt(r), _n, kt.x, kt.y, kt.width, kt.height);
|
|
39733
39733
|
}, P = () => Ye(l.get(), (_n) => E(_n)), L = (_n) => {
|
|
39734
39734
|
const kt = bl(_n);
|
|
39735
|
-
return
|
|
39735
|
+
return QI(me.getOpt(r), _n, kt.right, kt.bottom, kt.width, kt.height);
|
|
39736
39736
|
}, V = () => Ye(f.get(), (_n) => L(_n)), j = ZT(P, w, (_n) => {
|
|
39737
39737
|
S.get().each((kt) => {
|
|
39738
39738
|
t.dispatch("TableSelectorChange", {
|
|
@@ -39872,7 +39872,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39872
39872
|
const SG = (t, r, l, f, b) => {
|
|
39873
39873
|
const w = { height: OT(f + r.top, ME(t), gO(t)) };
|
|
39874
39874
|
return l === O1.Both && (w.width = OT(b + r.left, ox(t), t1(t))), w;
|
|
39875
|
-
},
|
|
39875
|
+
}, ZI = (t, r, l) => {
|
|
39876
39876
|
const f = vt.fromDom(t.getContainer()), b = SG(t, r, l, ni(f), ge(f));
|
|
39877
39877
|
Vs(b, (w, S) => {
|
|
39878
39878
|
Ae(w) && rn(f, S, SD(w));
|
|
@@ -39882,7 +39882,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39882
39882
|
return r === !1 ? O1.None : r === "both" ? O1.Both : O1.Vertical;
|
|
39883
39883
|
}, VT = (t, r, l, f) => {
|
|
39884
39884
|
const w = hr(l * 20, f * 20);
|
|
39885
|
-
return
|
|
39885
|
+
return ZI(t, w, r), F.some(!0);
|
|
39886
39886
|
}, kG = (t, r) => {
|
|
39887
39887
|
const l = CG(t);
|
|
39888
39888
|
if (l === O1.None)
|
|
@@ -39899,7 +39899,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
39899
39899
|
gv.config({
|
|
39900
39900
|
mode: "mouse",
|
|
39901
39901
|
repositionTarget: !1,
|
|
39902
|
-
onDrag: (b, w, S) =>
|
|
39902
|
+
onDrag: (b, w, S) => ZI(t, S, l),
|
|
39903
39903
|
blockerClass: "tox-blocker"
|
|
39904
39904
|
}),
|
|
39905
39905
|
Xn.config({
|
|
@@ -40460,10 +40460,10 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
40460
40460
|
t.setIdle(r);
|
|
40461
40461
|
}
|
|
40462
40462
|
}
|
|
40463
|
-
}),
|
|
40463
|
+
}), VI = uo([
|
|
40464
40464
|
ra,
|
|
40465
40465
|
yA
|
|
40466
|
-
].concat(Xb)),
|
|
40466
|
+
].concat(Xb)), HI = Xc, KD = [
|
|
40467
40467
|
V3("button"),
|
|
40468
40468
|
Hd,
|
|
40469
40469
|
xa("align", "end", [
|
|
@@ -40492,7 +40492,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
40492
40492
|
l1,
|
|
40493
40493
|
wO,
|
|
40494
40494
|
Hd,
|
|
40495
|
-
mc("items",
|
|
40495
|
+
mc("items", VI),
|
|
40496
40496
|
...KD
|
|
40497
40497
|
], zT = [
|
|
40498
40498
|
...KD,
|
|
@@ -40518,10 +40518,10 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
40518
40518
|
]),
|
|
40519
40519
|
y8,
|
|
40520
40520
|
nt("url", "")
|
|
40521
|
-
], MG = uo(UT),
|
|
40521
|
+
], MG = uo(UT), zI = (t) => [
|
|
40522
40522
|
ra,
|
|
40523
40523
|
t
|
|
40524
|
-
],
|
|
40524
|
+
], UI = [
|
|
40525
40525
|
ra,
|
|
40526
40526
|
kp,
|
|
40527
40527
|
wf,
|
|
@@ -40535,14 +40535,14 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
40535
40535
|
]),
|
|
40536
40536
|
Z3,
|
|
40537
40537
|
Nr("context", "mode:design")
|
|
40538
|
-
],
|
|
40538
|
+
], WI = uo(UI), s2 = [
|
|
40539
40539
|
ra,
|
|
40540
40540
|
yA
|
|
40541
40541
|
], $m = s2.concat([xA]), BG = s2.concat([
|
|
40542
40542
|
OA,
|
|
40543
40543
|
wf,
|
|
40544
40544
|
Nr("context", "mode:design")
|
|
40545
|
-
]),
|
|
40545
|
+
]), jI = uo(BG), qI = Xc, eR = $m.concat([
|
|
40546
40546
|
x8("auto"),
|
|
40547
40547
|
Nr("context", "mode:design")
|
|
40548
40548
|
]), NG = uo(eR), LG = Yp([
|
|
@@ -40552,7 +40552,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
40552
40552
|
]), IG = $m.concat([
|
|
40553
40553
|
Nr("storageKey", "default"),
|
|
40554
40554
|
Nr("context", "mode:design")
|
|
40555
|
-
]), FG = uo(IG), OS = vn, QG = uo($m),
|
|
40555
|
+
]), FG = uo(IG), OS = vn, QG = uo($m), XI = vn, ZG = s2.concat([
|
|
40556
40556
|
Nr("tag", "textarea"),
|
|
40557
40557
|
Ki("scriptId"),
|
|
40558
40558
|
Ki("scriptUrl"),
|
|
@@ -40561,7 +40561,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
40561
40561
|
]), VG = s2.concat([
|
|
40562
40562
|
Nr("tag", "textarea"),
|
|
40563
40563
|
bu("init")
|
|
40564
|
-
]), HG = Ig((t) => Yr("customeditor.old", za(VG), t).orThunk(() => Yr("customeditor.new", za(ZG), t))), tR = vn, nR = $m.concat([Nr("context", "mode:design")]), zG = uo(nR),
|
|
40564
|
+
]), HG = Ig((t) => Yr("customeditor.old", za(VG), t).orThunk(() => Yr("customeditor.new", za(ZG), t))), tR = vn, nR = $m.concat([Nr("context", "mode:design")]), zG = uo(nR), GI = tm(), UG = (t) => [
|
|
40565
40565
|
ra,
|
|
40566
40566
|
Jp("columns"),
|
|
40567
40567
|
t
|
|
@@ -40574,12 +40574,12 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
40574
40574
|
]),
|
|
40575
40575
|
Us("onInit", ie),
|
|
40576
40576
|
Sa("stretched", !1)
|
|
40577
|
-
],
|
|
40577
|
+
], YI = uo(WG), jG = $m.concat([
|
|
40578
40578
|
Sa("border", !1),
|
|
40579
40579
|
Sa("sandboxed", !0),
|
|
40580
40580
|
Sa("streamContent", !1),
|
|
40581
40581
|
Sa("transparent", !0)
|
|
40582
|
-
]), qG = uo(jG), vv = vn,
|
|
40582
|
+
]), qG = uo(jG), vv = vn, KI = uo(s2.concat([li("height")])), XG = uo([
|
|
40583
40583
|
Ki("url"),
|
|
40584
40584
|
Fg("zoom"),
|
|
40585
40585
|
Fg("cachedWidth"),
|
|
@@ -40590,7 +40590,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
40590
40590
|
Sa("maximized", !1),
|
|
40591
40591
|
wf,
|
|
40592
40592
|
Nr("context", "mode:design")
|
|
40593
|
-
]), r2 = uo(WT), jT = vn,
|
|
40593
|
+
]), r2 = uo(WT), jT = vn, JI = (t) => [
|
|
40594
40594
|
ra,
|
|
40595
40595
|
OA,
|
|
40596
40596
|
t,
|
|
@@ -40678,9 +40678,9 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
40678
40678
|
kA
|
|
40679
40679
|
]), e = (t) => Yi("items", "items", fc(), qc(Ig((r) => Yr(`Checking item of ${t}`, n, r).fold((l) => Po.error(Wu(l)), (l) => Po.value(l))))), n = ji(() => Yh("type", {
|
|
40680
40680
|
alertbanner: MG,
|
|
40681
|
-
bar: uo(
|
|
40682
|
-
button:
|
|
40683
|
-
checkbox:
|
|
40681
|
+
bar: uo(zI(e("bar"))),
|
|
40682
|
+
button: WI,
|
|
40683
|
+
checkbox: jI,
|
|
40684
40684
|
colorinput: FG,
|
|
40685
40685
|
colorpicker: QG,
|
|
40686
40686
|
dropzone: zG,
|
|
@@ -40694,10 +40694,10 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
40694
40694
|
textarea: i2,
|
|
40695
40695
|
urlinput: aY,
|
|
40696
40696
|
customeditor: HG,
|
|
40697
|
-
htmlpanel:
|
|
40698
|
-
imagepreview:
|
|
40697
|
+
htmlpanel: YI,
|
|
40698
|
+
imagepreview: KI,
|
|
40699
40699
|
collection: NG,
|
|
40700
|
-
label: uo(
|
|
40700
|
+
label: uo(JI(e("label"))),
|
|
40701
40701
|
table: tY,
|
|
40702
40702
|
tree: iY,
|
|
40703
40703
|
panel: a
|
|
@@ -40744,10 +40744,10 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
40744
40744
|
Us("onClose", ie),
|
|
40745
40745
|
Us("onMessage", ie)
|
|
40746
40746
|
]), re = (t) => Yr("dialog", G, t), fe = (t) => T(t) ? [t].concat(xe(sl(t), fe)) : R(t) ? xe(t, fe) : [], ue = (t) => x(t.type) && x(t.name), be = {
|
|
40747
|
-
checkbox:
|
|
40747
|
+
checkbox: qI,
|
|
40748
40748
|
colorinput: OS,
|
|
40749
|
-
colorpicker:
|
|
40750
|
-
dropzone:
|
|
40749
|
+
colorpicker: XI,
|
|
40750
|
+
dropzone: GI,
|
|
40751
40751
|
input: jT,
|
|
40752
40752
|
iframe: vv,
|
|
40753
40753
|
imagepreview: XG,
|
|
@@ -40760,7 +40760,7 @@ The conflicting element is` + (He(j.element) ? " " : " not ") + "already in the
|
|
|
40760
40760
|
urlinput: Cee,
|
|
40761
40761
|
customeditor: tR,
|
|
40762
40762
|
collection: LG,
|
|
40763
|
-
togglemenuitem:
|
|
40763
|
+
togglemenuitem: HI
|
|
40764
40764
|
}, Qe = (t) => F.from(be[t.type]), Xe = (t) => bo(fe(t), ue), Ge = (t) => {
|
|
40765
40765
|
const r = Xe(t), l = xe(r, (f) => Qe(f).fold(() => [], (b) => [Ps(f.name, b)]));
|
|
40766
40766
|
return uo(l);
|
|
@@ -75616,10 +75616,9 @@ class DOe {
|
|
|
75616
75616
|
},
|
|
75617
75617
|
loadLang: function(g, y) {
|
|
75618
75618
|
var x = g.dataset.inpUsr, T = g.dataset[y];
|
|
75619
|
-
if (!this.settings.editing)
|
|
75619
|
+
if (console.log("loadLang"), console.log(x), console.log(T), !this.settings.editing)
|
|
75620
75620
|
this.settings.type === "tiny" ? o.getElementById(x).innerHTML = T : o.getElementById(x).textContent = T;
|
|
75621
75621
|
else {
|
|
75622
|
-
o.getElementById(x).value = T;
|
|
75623
75622
|
var D = tinymce.get(x);
|
|
75624
75623
|
if (o.getElementById(x).classList.contains("tiny") && D && D.initialized)
|
|
75625
75624
|
D.setContent(T);
|