golden-logic-ui 1.0.636 → 1.0.638
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 +367 -367
- package/dist/golden-logic-ui.umd.cjs +20 -20
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -702,8 +702,8 @@ const _xe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
702
702
|
const Te = Iu(() => {
|
|
703
703
|
const Gt = [], Ft = new RegExp(R.value, "ig");
|
|
704
704
|
for (const Be of O.value) {
|
|
705
|
-
const
|
|
706
|
-
(R.value.length < 1 ||
|
|
705
|
+
const He = String(Be.name);
|
|
706
|
+
(R.value.length < 1 || He.match(Ft)) && Gt.length < i.maxItem && Gt.push(Be);
|
|
707
707
|
}
|
|
708
708
|
return Gt;
|
|
709
709
|
});
|
|
@@ -725,8 +725,8 @@ const _xe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
725
725
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
|
|
726
726
|
/[xy]/g,
|
|
727
727
|
function(Be) {
|
|
728
|
-
const
|
|
729
|
-
return Gt = Math.floor(Gt / 16), (Be === "x" ?
|
|
728
|
+
const He = (Gt + Math.random() * 16) % 16 | 0;
|
|
729
|
+
return Gt = Math.floor(Gt / 16), (Be === "x" ? He : He & 3 | 8).toString(16);
|
|
730
730
|
}
|
|
731
731
|
);
|
|
732
732
|
}
|
|
@@ -814,7 +814,7 @@ const _xe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
814
814
|
Te.value.length === 0 && (m.value = []);
|
|
815
815
|
}), Lu(m, (Gt) => {
|
|
816
816
|
if (Xe(Gt)) {
|
|
817
|
-
w.value = Gt.map((
|
|
817
|
+
w.value = Gt.map((He) => He.id);
|
|
818
818
|
const Ft = Array.isArray(w.value) ? w.value : [], Be = Array.isArray(i.modelValue) ? i.modelValue : [];
|
|
819
819
|
JSON.stringify(Ft) !== JSON.stringify(Be) && c("update:modelValue", w.value);
|
|
820
820
|
}
|
|
@@ -831,7 +831,7 @@ const _xe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
831
831
|
},
|
|
832
832
|
{ immediate: !0, deep: !0 }
|
|
833
833
|
), (Gt, Ft) => {
|
|
834
|
-
var Be,
|
|
834
|
+
var Be, He;
|
|
835
835
|
return ke(), $e(Qo, null, [
|
|
836
836
|
u.show ? (ke(), $e("div", {
|
|
837
837
|
key: 0,
|
|
@@ -871,7 +871,7 @@ const _xe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
871
871
|
onClick: _t,
|
|
872
872
|
type: "button",
|
|
873
873
|
class: "ltr:rounded-tr-lg rtl:!rounded-tl-lg px-4 py-0 text-sm font-medium text-gray-900 bg-transparent border border-gray-900 hover:bg-gray-900 hover:text-white focus:z-10 focus:bg-gray-900 focus:text-white dark:border-white dark:text-white dark:hover:text-white dark:hover:bg-gray-700 dark:focus:bg-gray-700"
|
|
874
|
-
}, Rt(((
|
|
874
|
+
}, Rt(((He = u.language) == null ? void 0 : He.deselect_all) ?? "Deselect all"), 1)
|
|
875
875
|
]),
|
|
876
876
|
Z("div", {
|
|
877
877
|
ref_key: "myDivDropDown",
|
|
@@ -3248,30 +3248,30 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3248
3248
|
setup(u, { emit: o }) {
|
|
3249
3249
|
const i = u, c = o;
|
|
3250
3250
|
Mo(null);
|
|
3251
|
-
const h = Mo({}), m = Mo(!1), O = Mo(0), w = Mo(!1), T = Mo(""), P = Mo(""), R = Mo(!1), F = Mo(1), H = Mo(null), K = Mo(1), he = Mo([]), Me = Mo([]), we = Mo(null), Te = Mo(null), et = (
|
|
3252
|
-
console.log("Tab key pressed!",
|
|
3253
|
-
}, le = async (
|
|
3251
|
+
const h = Mo({}), m = Mo(!1), O = Mo(0), w = Mo(!1), T = Mo(""), P = Mo(""), R = Mo(!1), F = Mo(1), H = Mo(null), K = Mo(1), he = Mo([]), Me = Mo([]), we = Mo(null), Te = Mo(null), et = (He) => {
|
|
3252
|
+
console.log("Tab key pressed!", He.key), He.key === "Tab" && (He.preventDefault(), console.log("Tab key pressed!"), te());
|
|
3253
|
+
}, le = async (He = "down", Bt = !1) => {
|
|
3254
3254
|
if (!R.value) {
|
|
3255
3255
|
R.value = !0;
|
|
3256
3256
|
try {
|
|
3257
|
-
const ot =
|
|
3257
|
+
const ot = He === "up" ? Math.max(F.value - 1, K) : F.value, { data: Jt } = await axios.get(i.api_url, {
|
|
3258
3258
|
params: { search: T.value, page: ot, per_page: 20 }
|
|
3259
3259
|
});
|
|
3260
3260
|
let Ge = io(Jt.data);
|
|
3261
|
-
|
|
3261
|
+
He === "down" && (he.value.push(...Ge), F.value++, H.value = Jt.last_page), H.value || (H.value = Jt.last_page), K.value || (K.value = 1), h.value = _t(), Bt && (T.value = "", he.value = []);
|
|
3262
3262
|
} catch (ot) {
|
|
3263
3263
|
console.error("Error fetching data:", ot);
|
|
3264
3264
|
}
|
|
3265
3265
|
R.value = !1;
|
|
3266
3266
|
}
|
|
3267
|
-
}, Xe = (
|
|
3268
|
-
if (!
|
|
3269
|
-
const Bt =
|
|
3267
|
+
}, Xe = (He) => {
|
|
3268
|
+
if (!He.target) return;
|
|
3269
|
+
const Bt = He.target.scrollTop, ot = He.target.scrollHeight - He.target.clientHeight <= Bt + 10, Jt = Bt <= 10;
|
|
3270
3270
|
ot && F.value <= H.value && le("down"), Jt && F.value > K.value;
|
|
3271
|
-
}, qt = (
|
|
3272
|
-
console.log("Tab key pressed!",
|
|
3273
|
-
}, at = (
|
|
3274
|
-
|
|
3271
|
+
}, qt = (He) => {
|
|
3272
|
+
console.log("Tab key pressed!", He.target.id, He.target), He.key === "Tab" && !He.target.classList.contains("showOptions") && (Be(), O.value = 0, w.value = !1), He.key === "Enter" && He.target.form && (console.log("Enter key pressed! enter ", He.target.id), He.preventDefault());
|
|
3273
|
+
}, at = (He) => {
|
|
3274
|
+
He.target && He.target.classList.contains("showOptions") && (w.value || te());
|
|
3275
3275
|
}, te = () => {
|
|
3276
3276
|
if (!i.show) {
|
|
3277
3277
|
if (w.value) {
|
|
@@ -3279,20 +3279,20 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3279
3279
|
return;
|
|
3280
3280
|
}
|
|
3281
3281
|
T.value = "", w.value = !0, i.api_url && he.value.length === 0 && le("down"), zF(() => {
|
|
3282
|
-
var
|
|
3282
|
+
var He = document.getElementById(
|
|
3283
3283
|
`${i.field_name}search${P.value}`
|
|
3284
3284
|
);
|
|
3285
|
-
|
|
3285
|
+
He && He.focus();
|
|
3286
3286
|
});
|
|
3287
3287
|
}
|
|
3288
3288
|
}, _t = () => Oe(h.value) ? typeof h.value == "object" ? he.value.find(
|
|
3289
|
-
(
|
|
3289
|
+
(He) => String(He.id) === String(h.value.id)
|
|
3290
3290
|
) || {} : he.value.find(
|
|
3291
|
-
(
|
|
3291
|
+
(He) => String(He.id) === String(h.value)
|
|
3292
3292
|
) || {} : i.modelValue ? typeof i.modelValue == "object" ? he.value.find(
|
|
3293
|
-
(
|
|
3293
|
+
(He) => String(He.id) === String(i.modelValue.id)
|
|
3294
3294
|
) || {} : he.value.find(
|
|
3295
|
-
(
|
|
3295
|
+
(He) => String(He.id) === String(i.modelValue)
|
|
3296
3296
|
) || {} : {};
|
|
3297
3297
|
Fh(() => {
|
|
3298
3298
|
P.value = je(), i.show || (document.body.addEventListener("click", Yn), document.addEventListener("keydown", qt), document.addEventListener("focusin", at));
|
|
@@ -3300,61 +3300,61 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3300
3300
|
document.body.removeEventListener("click", Yn), document.removeEventListener("keydown", qt), document.removeEventListener("focusin", at);
|
|
3301
3301
|
});
|
|
3302
3302
|
function rn() {
|
|
3303
|
-
const
|
|
3303
|
+
const He = [], Bt = T.value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ot = new RegExp(Bt, "ig");
|
|
3304
3304
|
for (const Jt of Me.value) {
|
|
3305
3305
|
const Ge = String(Jt.name);
|
|
3306
|
-
(T.value.length < 1 || Ge.match(ot)) &&
|
|
3306
|
+
(T.value.length < 1 || Ge.match(ot)) && He.length < i.maxItem && He.push(Jt);
|
|
3307
3307
|
}
|
|
3308
|
-
return
|
|
3308
|
+
return He;
|
|
3309
3309
|
}
|
|
3310
|
-
function dn(
|
|
3310
|
+
function dn(He) {
|
|
3311
3311
|
if ([
|
|
3312
3312
|
"ArrowLeft",
|
|
3313
3313
|
"ArrowUp",
|
|
3314
3314
|
"ArrowRight",
|
|
3315
3315
|
"ArrowDown",
|
|
3316
3316
|
"Enter"
|
|
3317
|
-
].includes(
|
|
3318
|
-
if (["ArrowUp", "ArrowDown"].includes(
|
|
3317
|
+
].includes(He.key)) {
|
|
3318
|
+
if (["ArrowUp", "ArrowDown"].includes(He.key) && He.preventDefault(), He.key === "ArrowDown" && i.posts === "")
|
|
3319
3319
|
return;
|
|
3320
|
-
Q(
|
|
3320
|
+
Q(He.key);
|
|
3321
3321
|
}
|
|
3322
3322
|
}
|
|
3323
3323
|
function je() {
|
|
3324
|
-
let
|
|
3324
|
+
let He = (/* @__PURE__ */ new Date()).getTime();
|
|
3325
3325
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
|
|
3326
3326
|
/[xy]/g,
|
|
3327
3327
|
function(ot) {
|
|
3328
|
-
const Jt = (
|
|
3329
|
-
return
|
|
3328
|
+
const Jt = (He + Math.random() * 16) % 16 | 0;
|
|
3329
|
+
return He = Math.floor(He / 16), (ot === "x" ? Jt : Jt & 3 | 8).toString(16);
|
|
3330
3330
|
}
|
|
3331
3331
|
);
|
|
3332
3332
|
}
|
|
3333
|
-
function Oe(
|
|
3334
|
-
return
|
|
3333
|
+
function Oe(He) {
|
|
3334
|
+
return He && typeof He == "object" && Object.keys(He).length > 0;
|
|
3335
3335
|
}
|
|
3336
|
-
function Yn(
|
|
3337
|
-
|
|
3336
|
+
function Yn(He) {
|
|
3337
|
+
He.target.id != i.field_name + "search" + P.value && He.target.id != i.field_name && !He.target.classList.contains("showOptions") && (Be(), O.value = 0, w.value = !1);
|
|
3338
3338
|
}
|
|
3339
|
-
function ut(
|
|
3340
|
-
const Bt = `${
|
|
3339
|
+
function ut(He) {
|
|
3340
|
+
const Bt = `${He}${P.value}`, ot = document.getElementById(Bt);
|
|
3341
3341
|
ot && ot.scrollIntoView();
|
|
3342
3342
|
}
|
|
3343
|
-
function kt(
|
|
3344
|
-
const Bt = `${
|
|
3343
|
+
function kt(He) {
|
|
3344
|
+
const Bt = `${He}${P.value}`, ot = document.getElementById(Bt);
|
|
3345
3345
|
ot && ot.click();
|
|
3346
3346
|
}
|
|
3347
|
-
function Q(
|
|
3348
|
-
|
|
3347
|
+
function Q(He) {
|
|
3348
|
+
He === "ArrowDown" && O.value < he.value.length && (O.value++, ut(O.value)), He === "ArrowUp" && O.value > 1 && (O.value--, ut(O.value)), He === "Enter" && kt(O.value);
|
|
3349
3349
|
}
|
|
3350
|
-
function io(
|
|
3351
|
-
return
|
|
3350
|
+
function io(He) {
|
|
3351
|
+
return He.map((Bt, ot) => typeof Bt == "object" ? Bt : { id: Bt, name: Bt });
|
|
3352
3352
|
}
|
|
3353
3353
|
function It() {
|
|
3354
|
-
return i.options.map((
|
|
3354
|
+
return i.options.map((He, Bt) => typeof He == "object" ? He : { id: He, name: He });
|
|
3355
3355
|
}
|
|
3356
|
-
function Gt(
|
|
3357
|
-
m.value = !0, h.value =
|
|
3356
|
+
function Gt(He) {
|
|
3357
|
+
m.value = !0, h.value = He, w.value = !1, c("update:modelValue", h.value.id), c("selected", h.value), c("selectionChanged", h.value);
|
|
3358
3358
|
}
|
|
3359
3359
|
function Ft() {
|
|
3360
3360
|
i.show || (h.value = {}, T.value = "", c("update:modelValue", ""), te());
|
|
@@ -3362,14 +3362,14 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3362
3362
|
function Be() {
|
|
3363
3363
|
(!h.value || !h.value.id) && (h.value = {}, T.value = ""), c("selected", h.value);
|
|
3364
3364
|
}
|
|
3365
|
-
return Lu(T, (
|
|
3365
|
+
return Lu(T, (He) => {
|
|
3366
3366
|
i.api_url ? (F.value = 1, H.value = null, K.value = 1, he.value = [], le("down")) : he.value = rn(), he.value.length === 0 && (h.value = {});
|
|
3367
|
-
}), Lu(h, (
|
|
3368
|
-
Oe(
|
|
3367
|
+
}), Lu(h, (He) => {
|
|
3368
|
+
Oe(He) && He && He.id !== i.modelValue && c("update:modelValue", He.id);
|
|
3369
3369
|
}), Lu(
|
|
3370
3370
|
() => i.modelValue,
|
|
3371
|
-
(
|
|
3372
|
-
|
|
3371
|
+
(He) => {
|
|
3372
|
+
He ? (h.value = i.modelValue, i.api_url && m.value == !1 ? (T.value = h.value, le("down", !0)) : h.value = _t()) : h.value = {};
|
|
3373
3373
|
},
|
|
3374
3374
|
{ immediate: !0, deep: !0 }
|
|
3375
3375
|
), Lu(
|
|
@@ -3378,7 +3378,7 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3378
3378
|
i.api_url || (he.value = Me.value = It()), h.value = _t();
|
|
3379
3379
|
},
|
|
3380
3380
|
{ immediate: !0, deep: !0 }
|
|
3381
|
-
), (
|
|
3381
|
+
), (He, Bt) => {
|
|
3382
3382
|
var ot, Jt, Ge;
|
|
3383
3383
|
return ke(), $e(Qo, null, [
|
|
3384
3384
|
u.show ? (ke(), $e("div", {
|
|
@@ -3753,7 +3753,7 @@ function ihe() {
|
|
|
3753
3753
|
return e.apply(null, a);
|
|
3754
3754
|
};
|
|
3755
3755
|
}
|
|
3756
|
-
const
|
|
3756
|
+
const He = (e) => (n) => !e(n), Bt = (e) => () => {
|
|
3757
3757
|
throw new Error(e);
|
|
3758
3758
|
}, ot = (e) => e(), Jt = (e) => {
|
|
3759
3759
|
e();
|
|
@@ -6794,7 +6794,7 @@ function ihe() {
|
|
|
6794
6794
|
return !0;
|
|
6795
6795
|
}
|
|
6796
6796
|
return !0;
|
|
6797
|
-
}, e5 = (e) => Q2(e) ? !Co(Fr(e.getElementsByTagName("*")), (n, s) => n || Ck(s), !1) : !1, t5 = (e) => _0(e) || e5(e), Tk = (e, n) => vh(e) && dm(e, n), F2 = pn, n5 = vh, _k = Hg("display", "block table"), o5 = Hg("float", "left right"), fb = kk(F2, n5,
|
|
6797
|
+
}, e5 = (e) => Q2(e) ? !Co(Fr(e.getElementsByTagName("*")), (n, s) => n || Ck(s), !1) : !1, t5 = (e) => _0(e) || e5(e), Tk = (e, n) => vh(e) && dm(e, n), F2 = pn, n5 = vh, _k = Hg("display", "block table"), o5 = Hg("float", "left right"), fb = kk(F2, n5, He(o5)), Z2 = He(Hg("white-space", "pre pre-line pre-wrap")), ig = jt, ly = As, Ek = kr.nodeIndex, cy = Pn, ag = (e) => e ? e.createRange() : kr.DOM.createRng(), uy = (e) => le(e) && /[\r\n\t ]/.test(e), V2 = (e) => !!e.setStart && !!e.setEnd, dy = (e) => {
|
|
6798
6798
|
const n = e.startContainer, s = e.startOffset;
|
|
6799
6799
|
if (uy(e.toString()) && Z2(n.parentNode) && jt(n)) {
|
|
6800
6800
|
const a = n.data;
|
|
@@ -6906,7 +6906,7 @@ function ihe() {
|
|
|
6906
6906
|
}
|
|
6907
6907
|
s.push(Rk(a));
|
|
6908
6908
|
let v = Tc(e, a);
|
|
6909
|
-
return v = sa(v,
|
|
6909
|
+
return v = sa(v, He(Kf)), s = s.concat(bi(v, (C) => Rk(C))), s.reverse().join("/") + "," + p;
|
|
6910
6910
|
}, a5 = (e, n, s) => {
|
|
6911
6911
|
let a = mb(e);
|
|
6912
6912
|
return a = sa(a, (d, p) => !gu(d) || !gu(a[p - 1])), a = sa(a, du([n])), a[s];
|
|
@@ -16693,7 +16693,7 @@ Input object: ` + Zv(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = It(PL), OS
|
|
|
16693
16693
|
W.setStartAfter(a), W.setEndAfter(s);
|
|
16694
16694
|
const X = W.extractContents();
|
|
16695
16695
|
if (d === "LI" && $j(X, "LI")) {
|
|
16696
|
-
const G = vn(Je(B.children, Re.fromDom),
|
|
16696
|
+
const G = vn(Je(B.children, Re.fromDom), He(Ba("br")));
|
|
16697
16697
|
B = X.firstChild, p.insertAfter(X, s), Se(G, (re) => Gh(Re.fromDom(B), re)), $ && B.setAttribute("style", $);
|
|
16698
16698
|
} else
|
|
16699
16699
|
p.insertAfter(X, s), p.insertAfter(B, s);
|
|
@@ -17762,7 +17762,7 @@ Input object: ` + Zv(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = It(PL), OS
|
|
|
17762
17762
|
return v(C, gI).orThunk(() => v(W, hp)).orThunk(() => v(B, hp));
|
|
17763
17763
|
}, cq = (e, n, s, a) => {
|
|
17764
17764
|
const d = (p, v) => {
|
|
17765
|
-
const C = (B) => pn(B) && B.classList.contains("mce-drag-container"), $ = vn(p.dom.childNodes,
|
|
17765
|
+
const C = (B) => pn(B) && B.classList.contains("mce-drag-container"), $ = vn(p.dom.childNodes, He(C));
|
|
17766
17766
|
return v.fold(() => w_($, s, a, !0), (B) => {
|
|
17767
17767
|
const W = vn($, (X) => X !== B.dom);
|
|
17768
17768
|
return w_(W, s, a, !0);
|
|
@@ -20954,7 +20954,7 @@ function lhe() {
|
|
|
20954
20954
|
const io = Array.prototype.slice, It = Array.prototype.indexOf, Gt = Array.prototype.push, Ft = (t, r) => It.call(t, r), Be = (t, r) => {
|
|
20955
20955
|
const l = Ft(t, r);
|
|
20956
20956
|
return l === -1 ? Q.none() : Q.some(l);
|
|
20957
|
-
},
|
|
20957
|
+
}, He = (t, r) => Ft(t, r) > -1, Bt = (t, r) => {
|
|
20958
20958
|
for (let l = 0, f = t.length; l < f; l++) {
|
|
20959
20959
|
const b = t[l];
|
|
20960
20960
|
if (r(b, l))
|
|
@@ -21045,7 +21045,7 @@ function lhe() {
|
|
|
21045
21045
|
}, yo = (t) => {
|
|
21046
21046
|
const r = io.call(t, 0);
|
|
21047
21047
|
return r.reverse(), r;
|
|
21048
|
-
}, vn = (t, r) => mo(t, (l) => !
|
|
21048
|
+
}, vn = (t, r) => mo(t, (l) => !He(r, l)), Ps = (t, r) => {
|
|
21049
21049
|
const l = {};
|
|
21050
21050
|
for (let f = 0, b = t.length; f < b; f++) {
|
|
21051
21051
|
const x = t[f];
|
|
@@ -22015,7 +22015,7 @@ function lhe() {
|
|
|
22015
22015
|
` + $o(t.errors).join(`
|
|
22016
22016
|
`) + `
|
|
22017
22017
|
|
|
22018
|
-
Input object: ` + Ro(t.input), Gi = (t, r) => ef(t, Bo(r, fo)), qm = (t, r) => zO(t, r), Yi = au, As = lu, c0 = (t) => Ug((r) =>
|
|
22018
|
+
Input object: ` + Ro(t.input), Gi = (t, r) => ef(t, Bo(r, fo)), qm = (t, r) => zO(t, r), Yi = au, As = lu, c0 = (t) => Ug((r) => He(t, r) ? Eo.value(r) : Eo.error(`Unsupported value: "${r}", choose one of "${t.join(", ")}".`)), Pt = (t) => Yi(t, t, Fc(), cu()), Ds = (t, r) => Yi(t, t, Fc(), r), u0 = (t) => Ds(t, Jh), Wi = (t) => Ds(t, pn), va = (t, r) => Yi(t, t, Fc(), c0(r)), hu = (t) => Ds(t, z1), H1 = (t, r) => Yi(t, t, jm(), Gf((l) => fi.serror("The field: " + t + " is forbidden. " + r))), tf = (t, r) => Yi(t, t, Fc(), fo(r)), U1 = (t, r) => Yi(t, t, Fc(), l0(r)), gc = (t, r) => Yi(t, t, Fc(), Zc(r)), $s = (t) => Yi(t, t, jm(), cu()), xd = (t, r) => Yi(t, t, jm(), r), Wg = (t) => xd(t, Jh), ti = (t) => xd(t, pn), d0 = (t, r) => xd(t, c0(r)), ah = (t) => xd(t, z1), jg = (t, r) => xd(t, Zc(r)), Ai = (t, r) => xd(t, fo(r)), Ki = (t, r) => xd(t, il(r)), rt = (t, r) => Yi(t, t, Yh(r), cu()), _r = (t, r, l) => Yi(t, t, Yh(r), l), W1 = (t, r) => _r(t, r, Jh), xr = (t, r) => _r(t, r, pn), al = (t, r, l) => _r(t, r, c0(l)), wa = (t, r) => _r(t, r, uu), zs = (t, r) => _r(t, r, z1), A = (t, r) => _r(t, r, du), I = (t, r, l) => _r(t, r, Zc(l)), ee = (t, r, l) => _r(t, r, fo(l)), Qe = { generate: (t) => {
|
|
22019
22019
|
if (!R(t))
|
|
22020
22020
|
throw new Error("cases must be an array");
|
|
22021
22021
|
if (t.length === 0)
|
|
@@ -22047,7 +22047,7 @@ Input object: ` + Ro(t.input), Gi = (t, r) => ef(t, Bo(r, fo)), qm = (t, r) => z
|
|
|
22047
22047
|
if (r.length !== oe.length)
|
|
22048
22048
|
throw new Error("Wrong number of arguments to match. Expected: " + r.join(",") + `
|
|
22049
22049
|
Actual: ` + oe.join(","));
|
|
22050
|
-
if (!Fn(r, (pe) =>
|
|
22050
|
+
if (!Fn(r, (pe) => He(oe, pe)))
|
|
22051
22051
|
throw new Error("Not all branches were specified when using match. Specified: " + oe.join(", ") + `
|
|
22052
22052
|
Required: ` + r.join(", "));
|
|
22053
22053
|
return j[S].apply(null, D);
|
|
@@ -22104,7 +22104,7 @@ Required: ` + r.join(", "));
|
|
|
22104
22104
|
}, tn = (t, r) => {
|
|
22105
22105
|
const l = {};
|
|
22106
22106
|
return Fs(t, (f, b) => {
|
|
22107
|
-
|
|
22107
|
+
He(r, b) || (l[b] = f);
|
|
22108
22108
|
}), l;
|
|
22109
22109
|
}, Rn = (t, r) => ({ [t]: r }), ko = (t) => {
|
|
22110
22110
|
const r = {};
|
|
@@ -22336,7 +22336,7 @@ Required: ` + r.join(", "));
|
|
|
22336
22336
|
}, E2 = (t, r, l) => {
|
|
22337
22337
|
const f = mo(kr(t, r), (b) => b !== l);
|
|
22338
22338
|
return f.length > 0 ? un(t, r, f.join(" ")) : ce(t, r), !1;
|
|
22339
|
-
}, y0 = (t) => t.dom.classList !== void 0, og = (t) => kr(t, "class"), $2 = (t, r) => I4(t, "class", r), af = (t, r) => E2(t, "class", r), sp = (t, r) =>
|
|
22339
|
+
}, y0 = (t) => t.dom.classList !== void 0, og = (t) => kr(t, "class"), $2 = (t, r) => I4(t, "class", r), af = (t, r) => E2(t, "class", r), sp = (t, r) => He(og(t), r) ? af(t, r) : $2(t, r), mi = (t, r) => {
|
|
22340
22340
|
y0(t) ? t.dom.classList.add(r) : $2(t, r);
|
|
22341
22341
|
}, uk = (t) => {
|
|
22342
22342
|
(y0(t) ? t.dom.classList : og(t)).length === 0 && ce(t, "class");
|
|
@@ -22650,7 +22650,7 @@ Required: ` + r.join(", "));
|
|
|
22650
22650
|
},
|
|
22651
22651
|
write: () => {
|
|
22652
22652
|
const b = (/* @__PURE__ */ new Date()).getTime();
|
|
22653
|
-
|
|
22653
|
+
He([
|
|
22654
22654
|
"mousemove",
|
|
22655
22655
|
"mouseover",
|
|
22656
22656
|
"mouseout",
|
|
@@ -22659,7 +22659,7 @@ Required: ` + r.join(", "));
|
|
|
22659
22659
|
event: t,
|
|
22660
22660
|
time: b - f,
|
|
22661
22661
|
target: r.dom,
|
|
22662
|
-
sequence: Ge(l, (x) =>
|
|
22662
|
+
sequence: Ge(l, (x) => He([
|
|
22663
22663
|
"cut",
|
|
22664
22664
|
"stopped",
|
|
22665
22665
|
"response"
|
|
@@ -23028,22 +23028,22 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ge(r, (l) => l.name),
|
|
|
23028
23028
|
toSet: x,
|
|
23029
23029
|
toRemove: S
|
|
23030
23030
|
} = mb(t.attributes, b), E = () => {
|
|
23031
|
-
ht(S, (
|
|
23031
|
+
ht(S, (Ue) => ce(r, Ue)), co(r, x);
|
|
23032
23032
|
}, D = dc(r), {
|
|
23033
23033
|
toSet: L,
|
|
23034
23034
|
toRemove: V
|
|
23035
23035
|
} = mb(t.styles, D), j = () => {
|
|
23036
|
-
ht(V, (
|
|
23036
|
+
ht(V, (Ue) => Uo(r, Ue)), ws(r, L);
|
|
23037
23037
|
}, oe = Q4(r), ae = vn(oe, t.classes), pe = vn(t.classes, oe), xe = () => {
|
|
23038
23038
|
v0(r, pe), Ku(r, ae);
|
|
23039
|
-
}, qe = (
|
|
23040
|
-
ji(r,
|
|
23039
|
+
}, qe = (Ue) => {
|
|
23040
|
+
ji(r, Ue);
|
|
23041
23041
|
}, ve = () => {
|
|
23042
|
-
const
|
|
23043
|
-
Ak(r,
|
|
23042
|
+
const Ue = t.domChildren;
|
|
23043
|
+
Ak(r, Ue);
|
|
23044
23044
|
}, We = () => {
|
|
23045
|
-
const
|
|
23046
|
-
ct !== Cd(
|
|
23045
|
+
const Ue = r, ct = t.value.getOrUndefined();
|
|
23046
|
+
ct !== Cd(Ue) && bp(Ue, ct ?? "");
|
|
23047
23047
|
};
|
|
23048
23048
|
return E(), xe(), j(), t.innerHtml.fold(ve, qe), We(), r;
|
|
23049
23049
|
}, gb = (t) => {
|
|
@@ -23079,7 +23079,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ge(r, (l) => l.name),
|
|
|
23079
23079
|
const f = { "alloy.base.behaviour": St(t) };
|
|
23080
23080
|
return ag(l, t.eventOrder, r, f).getOrDie();
|
|
23081
23081
|
}, c5 = (t, r) => {
|
|
23082
|
-
const l = () =>
|
|
23082
|
+
const l = () => Ue, f = In(J4), b = jt(hm(t)), x = l5(t), S = t5(x), E = Tk(x), D = Mk(b, S, E), L = Tc(D, r), V = hy(b, S, E), j = In(b.components), oe = (ct) => {
|
|
23083
23083
|
f.set(ct);
|
|
23084
23084
|
}, ae = () => {
|
|
23085
23085
|
f.set(_0(l));
|
|
@@ -23091,7 +23091,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ge(r, (l) => l.name),
|
|
|
23091
23091
|
return (we(pt[ct.name()]) ? pt[ct.name()] : () => {
|
|
23092
23092
|
throw new Error("Could not find " + ct.name() + " in " + JSON.stringify(t, null, 2));
|
|
23093
23093
|
})();
|
|
23094
|
-
}, qe = (ct) => we(E[ct.name()]), ve = () => b.apis, We = (ct) => E[ct]().map((pt) => pt.state.readState()).getOr("not enabled"),
|
|
23094
|
+
}, qe = (ct) => we(E[ct.name()]), ve = () => b.apis, We = (ct) => E[ct]().map((pt) => pt.state.readState()).getOr("not enabled"), Ue = {
|
|
23095
23095
|
uid: t.uid,
|
|
23096
23096
|
getSystem: f.get,
|
|
23097
23097
|
config: xe,
|
|
@@ -23106,7 +23106,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ge(r, (l) => l.name),
|
|
|
23106
23106
|
components: j.get,
|
|
23107
23107
|
events: V
|
|
23108
23108
|
};
|
|
23109
|
-
return
|
|
23109
|
+
return Ue;
|
|
23110
23110
|
}, Bk = (t, r) => {
|
|
23111
23111
|
const l = Xt(t, "components").getOr([]);
|
|
23112
23112
|
return r.fold(() => Ge(l, xl), (f) => Ge(l, (b, x) => H2(b, Al(f, x))));
|
|
@@ -23308,7 +23308,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ge(r, (l) => l.name),
|
|
|
23308
23308
|
cl,
|
|
23309
23309
|
da,
|
|
23310
23310
|
Za
|
|
23311
|
-
], Xk = (t, r) => r.universal ? t : mo(t, (l) =>
|
|
23311
|
+
], Xk = (t, r) => r.universal ? t : mo(t, (l) => He(r.channels, l));
|
|
23312
23312
|
var g5 = /* @__PURE__ */ Object.freeze({
|
|
23313
23313
|
__proto__: null,
|
|
23314
23314
|
events: (t) => nr([Et(Gu(), (r, l) => {
|
|
@@ -23410,12 +23410,12 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
23410
23410
|
y: f,
|
|
23411
23411
|
right: b,
|
|
23412
23412
|
bottom: x
|
|
23413
|
-
} = r, { x: S, y: E, right: D, bottom: L, width: V, height: j } = t, oe = S >= l && S <= b, ae = E >= f && E <= x, pe = oe && ae, xe = D <= b && D >= l, qe = L <= x && L >= f, ve = xe && qe, We = Math.min(V, S >= l ? b - S : D - l),
|
|
23413
|
+
} = r, { x: S, y: E, right: D, bottom: L, width: V, height: j } = t, oe = S >= l && S <= b, ae = E >= f && E <= x, pe = oe && ae, xe = D <= b && D >= l, qe = L <= x && L >= f, ve = xe && qe, We = Math.min(V, S >= l ? b - S : D - l), Ue = Math.min(j, E >= f ? x - E : L - f);
|
|
23414
23414
|
return {
|
|
23415
23415
|
originInBounds: pe,
|
|
23416
23416
|
sizeInBounds: ve,
|
|
23417
23417
|
visibleW: We,
|
|
23418
|
-
visibleH:
|
|
23418
|
+
visibleH: Ue
|
|
23419
23419
|
};
|
|
23420
23420
|
}, w5 = (t, r) => {
|
|
23421
23421
|
const {
|
|
@@ -23432,7 +23432,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
23432
23432
|
maxHeight: x
|
|
23433
23433
|
};
|
|
23434
23434
|
}, Yk = (t, r, l, f) => {
|
|
23435
|
-
const b = t.bubble, x = b.offset, S = Uk(f, t.restriction, x), E = t.x + x.left, D = t.y + x.top, L = Gr(E, D, r, l), { originInBounds: V, sizeInBounds: j, visibleW: oe, visibleH: ae } = dw(L, S), pe = V && j, xe = pe ? L : w5(L, S), qe = xe.width > 0 && xe.height > 0, { maxWidth: ve, maxHeight: We } = Gk(t.direction, xe, f),
|
|
23435
|
+
const b = t.bubble, x = b.offset, S = Uk(f, t.restriction, x), E = t.x + x.left, D = t.y + x.top, L = Gr(E, D, r, l), { originInBounds: V, sizeInBounds: j, visibleW: oe, visibleH: ae } = dw(L, S), pe = V && j, xe = pe ? L : w5(L, S), qe = xe.width > 0 && xe.height > 0, { maxWidth: ve, maxHeight: We } = Gk(t.direction, xe, f), Ue = {
|
|
23436
23436
|
rect: xe,
|
|
23437
23437
|
maxHeight: We,
|
|
23438
23438
|
maxWidth: ve,
|
|
@@ -23445,11 +23445,11 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
23445
23445
|
layout: t.label,
|
|
23446
23446
|
testY: D
|
|
23447
23447
|
};
|
|
23448
|
-
return pe || t.alwaysFit ? gm.fit(
|
|
23448
|
+
return pe || t.alwaysFit ? gm.fit(Ue) : gm.nofit(Ue, oe, ae, qe);
|
|
23449
23449
|
}, x5 = (t, r, l, f, b, x) => {
|
|
23450
23450
|
const S = f.width, E = f.height, D = (V, j, oe, ae, pe) => {
|
|
23451
23451
|
const xe = V(l, f, b, t, x), qe = Yk(xe, S, E, x);
|
|
23452
|
-
return qe.fold(te(qe), (ve, We,
|
|
23452
|
+
return qe.fold(te(qe), (ve, We, Ue, ct) => (pe === ct ? Ue > ae || We > oe : !pe && ct) ? qe : gm.nofit(j, oe, ae, pe));
|
|
23453
23453
|
};
|
|
23454
23454
|
return Xo(r, (V, j) => {
|
|
23455
23455
|
const oe = dn(D, j);
|
|
@@ -23502,7 +23502,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
23502
23502
|
const x = (L) => {
|
|
23503
23503
|
var V;
|
|
23504
23504
|
const j = (V = L.raw.pseudoElement) !== null && V !== void 0 ? V : "";
|
|
23505
|
-
return Jo(L.target, t) && Ce(j) &&
|
|
23505
|
+
return Jo(L.target, t) && Ce(j) && He(Sy, L.raw.propertyName);
|
|
23506
23506
|
}, S = (L) => {
|
|
23507
23507
|
if (he(L) || x(L)) {
|
|
23508
23508
|
l.clear(), f.clear();
|
|
@@ -24144,7 +24144,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24144
24144
|
}, SC = (t, r, l) => {
|
|
24145
24145
|
const f = t.components(), b = Se(r, (E) => Q2(E).toArray());
|
|
24146
24146
|
ht(f, (E) => {
|
|
24147
|
-
|
|
24147
|
+
He(b, E) || Uy(E);
|
|
24148
24148
|
});
|
|
24149
24149
|
const x = l(r), S = vn(f, x);
|
|
24150
24150
|
ht(S, (E) => {
|
|
@@ -24707,7 +24707,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24707
24707
|
"select"
|
|
24708
24708
|
], Yw = (t, r, l) => {
|
|
24709
24709
|
(r.disabled() ? iv : Jw)(t, r);
|
|
24710
|
-
}, Kw = (t, r) => r.useNative === !0 &&
|
|
24710
|
+
}, Kw = (t, r) => r.useNative === !0 && He(q0, Ss(t.element)), qC = (t) => q(t.element, "disabled"), GC = (t) => {
|
|
24711
24711
|
un(t.element, "disabled", "disabled");
|
|
24712
24712
|
}, tE = (t) => {
|
|
24713
24713
|
ce(t.element, "disabled");
|
|
@@ -24838,7 +24838,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24838
24838
|
return Ne(f, l);
|
|
24839
24839
|
}, Un = (t) => (r) => {
|
|
24840
24840
|
const l = r.raw;
|
|
24841
|
-
return
|
|
24841
|
+
return He(t, l.which);
|
|
24842
24842
|
}, pr = (t) => (r) => Fn(t, (l) => l(r)), Jl = (t) => t.raw.shiftKey === !0, Og = (t) => t.raw.ctrlKey === !0, Md = je(Jl), ms = (t, r) => ({
|
|
24843
24843
|
matches: t,
|
|
24844
24844
|
classification: r
|
|
@@ -24879,7 +24879,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24879
24879
|
const Bd = (t, r, l, f, b) => {
|
|
24880
24880
|
const x = () => t.concat([
|
|
24881
24881
|
rt("focusManager", ka()),
|
|
24882
|
-
_r("focusInside", "onFocus", Ug((L) =>
|
|
24882
|
+
_r("focusInside", "onFocus", Ug((L) => He([
|
|
24883
24883
|
"onFocus",
|
|
24884
24884
|
"onEnterOrSpace",
|
|
24885
24885
|
"onApi"
|
|
@@ -24928,25 +24928,25 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24928
24928
|
rt("useTabstopAt", kt),
|
|
24929
24929
|
$s("visibilitySelector")
|
|
24930
24930
|
].concat([t]), l = (ve, We) => {
|
|
24931
|
-
const
|
|
24932
|
-
return ei(
|
|
24931
|
+
const Ue = ve.visibilitySelector.bind((ct) => _d(We, ct)).getOr(We);
|
|
24932
|
+
return ei(Ue) > 0;
|
|
24933
24933
|
}, f = (ve, We) => {
|
|
24934
|
-
const
|
|
24934
|
+
const Ue = Oc(ve.element, We.selector), ct = mo(Ue, (pt) => l(We, pt));
|
|
24935
24935
|
return Q.from(ct[We.firstTabstop]);
|
|
24936
|
-
}, b = (ve, We) => We.focusManager.get(ve).bind((
|
|
24936
|
+
}, b = (ve, We) => We.focusManager.get(ve).bind((Ue) => _d(Ue, We.selector)), x = (ve, We) => l(ve, We) && ve.useTabstopAt(We), S = (ve, We, Ue) => {
|
|
24937
24937
|
f(ve, We).each((ct) => {
|
|
24938
24938
|
We.focusManager.set(ve, ct);
|
|
24939
24939
|
});
|
|
24940
|
-
}, E = (ve, We,
|
|
24941
|
-
const pt = Oc(ve.element,
|
|
24942
|
-
return b(ve,
|
|
24943
|
-
}, L = (ve, We,
|
|
24944
|
-
const ct =
|
|
24945
|
-
return D(ve, We,
|
|
24946
|
-
}, V = (ve, We,
|
|
24947
|
-
const ct =
|
|
24948
|
-
return D(ve, We,
|
|
24949
|
-
}, j = (ve) => Qu(ve).bind(Sc).exists((We) => Jo(We, ve)), oe = (ve, We,
|
|
24940
|
+
}, E = (ve, We, Ue, ct, pt) => pt(We, Ue, (mn) => x(ct, mn)).fold(() => ct.cyclic ? Q.some(!0) : Q.none(), (mn) => (ct.focusManager.set(ve, mn), Q.some(!0))), D = (ve, We, Ue, ct) => {
|
|
24941
|
+
const pt = Oc(ve.element, Ue.selector);
|
|
24942
|
+
return b(ve, Ue).bind((mn) => ze(pt, dn(Jo, mn)).bind((xt) => E(ve, pt, xt, Ue, ct)));
|
|
24943
|
+
}, L = (ve, We, Ue) => {
|
|
24944
|
+
const ct = Ue.cyclic ? Mt : Cn;
|
|
24945
|
+
return D(ve, We, Ue, ct);
|
|
24946
|
+
}, V = (ve, We, Ue) => {
|
|
24947
|
+
const ct = Ue.cyclic ? qs : Gs;
|
|
24948
|
+
return D(ve, We, Ue, ct);
|
|
24949
|
+
}, j = (ve) => Qu(ve).bind(Sc).exists((We) => Jo(We, ve)), oe = (ve, We, Ue) => b(ve, Ue).filter((ct) => !Ue.useTabstopAt(ct)).bind((ct) => (j(ct) ? L : V)(ve, We, Ue)), ae = (ve, We, Ue) => Ue.onEnter.bind((ct) => ct(ve, We)), pe = (ve, We, Ue) => Ue.onEscape.bind((ct) => ct(ve, We)), xe = te([
|
|
24950
24950
|
ms(pr([
|
|
24951
24951
|
Jl,
|
|
24952
24952
|
Un(nt)
|
|
@@ -25843,7 +25843,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25843
25843
|
}), pe = (Wt, On) => {
|
|
25844
25844
|
const vo = ae(Wt);
|
|
25845
25845
|
Fs(vo, (Zo, eo) => {
|
|
25846
|
-
const Ao =
|
|
25846
|
+
const Ao = He(On, eo);
|
|
25847
25847
|
un(Zo.element, "aria-expanded", Ao);
|
|
25848
25848
|
});
|
|
25849
25849
|
}, xe = (Wt, On, vo) => Q.from(vo[0]).bind((Zo) => On.lookupMenu(Zo).bind((eo) => {
|
|
@@ -25876,13 +25876,13 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25876
25876
|
return Ve(or.element) || wo.append(Wt, pu(or)), t.onOpenSubmenu(Wt, On, or, yo(eo)), vo === qe.HighlightSubmenu ? (ue.highlightFirst(or), xe(Wt, b, eo)) : (ue.dehighlightAll(or), Q.some(On));
|
|
25877
25877
|
}))));
|
|
25878
25878
|
}
|
|
25879
|
-
},
|
|
25879
|
+
}, Ue = (Wt, On) => {
|
|
25880
25880
|
const vo = S(On);
|
|
25881
25881
|
return b.collapse(vo).bind((Zo) => (pe(Wt, Zo), xe(Wt, b, Zo).map((eo) => (t.onCollapseMenu(Wt, On, eo), eo))));
|
|
25882
25882
|
}, ct = (Wt, On) => {
|
|
25883
25883
|
const vo = S(On);
|
|
25884
25884
|
return b.refresh(vo).bind((Zo) => (pe(Wt, Zo), xe(Wt, b, Zo)));
|
|
25885
|
-
}, pt = (Wt, On) => X0(On.element) ? Q.none() : We(Wt, On, qe.HighlightSubmenu), mn = (Wt, On) => X0(On.element) ? Q.none() :
|
|
25885
|
+
}, pt = (Wt, On) => X0(On.element) ? Q.none() : We(Wt, On, qe.HighlightSubmenu), mn = (Wt, On) => X0(On.element) ? Q.none() : Ue(Wt, On), Sn = (Wt, On) => Ue(Wt, On).orThunk(() => t.onEscape(Wt, On).map(() => Wt)), xt = (Wt) => (On, vo) => _d(vo.getSource(), `.${t.markers.item}`).bind((Zo) => On.getSystem().getByDom(Zo).toOptional().bind((eo) => Wt(On, eo).map(kt))), En = nr([
|
|
25886
25886
|
Et(RE(), (Wt, On) => {
|
|
25887
25887
|
const vo = On.event.item;
|
|
25888
25888
|
b.lookupItem(S(vo)).each(() => {
|
|
@@ -25895,7 +25895,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25895
25895
|
om((Wt, On) => {
|
|
25896
25896
|
const vo = On.event.target;
|
|
25897
25897
|
Wt.getSystem().getByDom(vo).each((Zo) => {
|
|
25898
|
-
S(Zo).indexOf("collapse-item") === 0 &&
|
|
25898
|
+
S(Zo).indexOf("collapse-item") === 0 && Ue(Wt, Zo), We(Wt, Zo, qe.HighlightSubmenu).fold(() => {
|
|
25899
25899
|
t.onExecute(Wt, Zo);
|
|
25900
25900
|
}, le);
|
|
25901
25901
|
});
|
|
@@ -25917,7 +25917,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25917
25917
|
})] : []
|
|
25918
25918
|
]), fn = (Wt) => ue.getHighlighted(Wt).bind(ue.getHighlighted), Bn = (Wt) => {
|
|
25919
25919
|
fn(Wt).each((On) => {
|
|
25920
|
-
|
|
25920
|
+
Ue(Wt, On);
|
|
25921
25921
|
});
|
|
25922
25922
|
}, cs = (Wt) => {
|
|
25923
25923
|
b.getPrimary().each((On) => {
|
|
@@ -26422,7 +26422,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26422
26422
|
"visible",
|
|
26423
26423
|
"hidden",
|
|
26424
26424
|
"clip"
|
|
26425
|
-
], o6 = (t) => yr(t).length > 0 && !
|
|
26425
|
+
], o6 = (t) => yr(t).length > 0 && !He(n6, t), KE = (t) => {
|
|
26426
26426
|
if (So(t)) {
|
|
26427
26427
|
const r = Nt(t, "overflow-x"), l = Nt(t, "overflow-y");
|
|
26428
26428
|
return o6(r) || o6(l);
|
|
@@ -26668,7 +26668,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26668
26668
|
}),
|
|
26669
26669
|
Et(Gu(), (S, E) => {
|
|
26670
26670
|
const D = E;
|
|
26671
|
-
D.universal ||
|
|
26671
|
+
D.universal || He(D.channels, _T) && l(S);
|
|
26672
26672
|
}),
|
|
26673
26673
|
sf((S) => {
|
|
26674
26674
|
l(S);
|
|
@@ -26892,7 +26892,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26892
26892
|
HTMLFormElement: j,
|
|
26893
26893
|
DOMParser: oe,
|
|
26894
26894
|
trustedTypes: ae
|
|
26895
|
-
} = t, pe = D.prototype, xe = Ov(pe, "cloneNode"), qe = Ov(pe, "remove"), ve = Ov(pe, "nextSibling"), We = Ov(pe, "childNodes"),
|
|
26895
|
+
} = t, pe = D.prototype, xe = Ov(pe, "cloneNode"), qe = Ov(pe, "remove"), ve = Ov(pe, "nextSibling"), We = Ov(pe, "childNodes"), Ue = Ov(pe, "parentNode");
|
|
26896
26896
|
if (typeof S == "function") {
|
|
26897
26897
|
const ys = l.createElement("template");
|
|
26898
26898
|
ys.content && ys.content.ownerDocument && (l = ys.content.ownerDocument);
|
|
@@ -26907,7 +26907,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26907
26907
|
importNode: fn
|
|
26908
26908
|
} = f;
|
|
26909
26909
|
let Bn = {};
|
|
26910
|
-
r.isSupported = typeof o$ == "function" && typeof
|
|
26910
|
+
r.isSupported = typeof o$ == "function" && typeof Ue == "function" && mn && mn.createHTMLDocument !== void 0;
|
|
26911
26911
|
const {
|
|
26912
26912
|
MUSTACHE_EXPR: cs,
|
|
26913
26913
|
ERB_EXPR: Dr,
|
|
@@ -26987,7 +26987,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26987
26987
|
od && od(vt), o4 = vt;
|
|
26988
26988
|
}
|
|
26989
26989
|
}, fte = $r({}, ["mi", "mo", "mn", "ms", "mtext"]), mte = $r({}, ["annotation-xml"]), Sae = $r({}, ["title", "style", "font", "a", "script"]), gte = $r({}, [...Cx, ...Tx, ...c6]), pte = $r({}, [..._x, ...AT]), kae = function(vt) {
|
|
26990
|
-
let ro =
|
|
26990
|
+
let ro = Ue(vt);
|
|
26991
26991
|
(!ro || !ro.tagName) && (ro = {
|
|
26992
26992
|
namespaceURI: n4,
|
|
26993
26993
|
tagName: "template"
|
|
@@ -26999,7 +26999,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26999
26999
|
element: vt
|
|
27000
27000
|
});
|
|
27001
27001
|
try {
|
|
27002
|
-
|
|
27002
|
+
Ue(vt).removeChild(vt);
|
|
27003
27003
|
} catch {
|
|
27004
27004
|
qe(vt);
|
|
27005
27005
|
}
|
|
@@ -27080,7 +27080,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27080
27080
|
if (!Vd[us] && Ste(us) && (ci.tagNameCheck instanceof RegExp && sd(ci.tagNameCheck, us) || ci.tagNameCheck instanceof Function && ci.tagNameCheck(us)))
|
|
27081
27081
|
return !1;
|
|
27082
27082
|
if (RY && !t4[us]) {
|
|
27083
|
-
const qa =
|
|
27083
|
+
const qa = Ue(vt) || vt.parentNode, Ud = We(vt) || vt.childNodes;
|
|
27084
27084
|
if (Ud && qa) {
|
|
27085
27085
|
const Mu = Ud.length;
|
|
27086
27086
|
for (let Lf = Mu - 1; Lf >= 0; --Lf) {
|
|
@@ -27471,7 +27471,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27471
27471
|
return {
|
|
27472
27472
|
open: (j, oe, ae) => {
|
|
27473
27473
|
const pe = () => {
|
|
27474
|
-
const
|
|
27474
|
+
const Ue = (Sn) => {
|
|
27475
27475
|
wo.remove(Sn, qe), ve();
|
|
27476
27476
|
}, ct = (Sn, xt) => {
|
|
27477
27477
|
Jr(Sn.element).length === 0 ? pt(Sn, xt) : mn(Sn, xt);
|
|
@@ -27483,11 +27483,11 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27483
27483
|
f.on((Sn) => {
|
|
27484
27484
|
oe();
|
|
27485
27485
|
const xt = ae();
|
|
27486
|
-
|
|
27486
|
+
Ue(Sn), ct(Sn, xt);
|
|
27487
27487
|
});
|
|
27488
27488
|
}, xe = () => !i1(t) || !b.header.isPositionedAtTop(), qe = xl(LT.sketch({
|
|
27489
27489
|
text: j.text,
|
|
27490
|
-
level:
|
|
27490
|
+
level: He([
|
|
27491
27491
|
"success",
|
|
27492
27492
|
"error",
|
|
27493
27493
|
"warning",
|
|
@@ -27501,12 +27501,12 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27501
27501
|
backstageProvider: b.providers
|
|
27502
27502
|
}));
|
|
27503
27503
|
if (f.isSet()) {
|
|
27504
|
-
const
|
|
27504
|
+
const Ue = pu(qe);
|
|
27505
27505
|
f.on((ct) => {
|
|
27506
|
-
wo.append(ct,
|
|
27506
|
+
wo.append(ct, Ue), ni.reposition(ct), qe.hasConfigured(mr) && mr.refresh(ct), E(ct.components());
|
|
27507
27507
|
});
|
|
27508
27508
|
} else {
|
|
27509
|
-
const
|
|
27509
|
+
const Ue = xl(ni.sketch({
|
|
27510
27510
|
dom: {
|
|
27511
27511
|
tag: "div",
|
|
27512
27512
|
classes: ["tox-notifications-container"],
|
|
@@ -27548,27 +27548,27 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27548
27548
|
...b.anchors.banner(),
|
|
27549
27549
|
overrides: pt
|
|
27550
27550
|
};
|
|
27551
|
-
f.set(
|
|
27551
|
+
f.set(Ue), l.add(Ue), ni.showWithinBounds(Ue, ct, { anchor: mn }, S);
|
|
27552
27552
|
}
|
|
27553
27553
|
Te(j.timeout) && j.timeout > 0 && fT.setEditorTimeout(t, () => {
|
|
27554
27554
|
pe();
|
|
27555
27555
|
}, j.timeout);
|
|
27556
27556
|
const ve = () => {
|
|
27557
|
-
f.on((
|
|
27558
|
-
ni.reposition(
|
|
27557
|
+
f.on((Ue) => {
|
|
27558
|
+
ni.reposition(Ue), Ue.hasConfigured(mr) && mr.refresh(Ue), E(Ue.components());
|
|
27559
27559
|
});
|
|
27560
27560
|
};
|
|
27561
27561
|
return {
|
|
27562
27562
|
close: pe,
|
|
27563
27563
|
reposition: ve,
|
|
27564
|
-
text: (
|
|
27565
|
-
LT.updateText(qe,
|
|
27564
|
+
text: (Ue) => {
|
|
27565
|
+
LT.updateText(qe, Ue);
|
|
27566
27566
|
},
|
|
27567
27567
|
settings: j,
|
|
27568
27568
|
getEl: () => qe.element.dom,
|
|
27569
27569
|
progressBar: {
|
|
27570
|
-
value: (
|
|
27571
|
-
LT.updateProgress(qe,
|
|
27570
|
+
value: (Ue) => {
|
|
27571
|
+
LT.updateProgress(qe, Ue);
|
|
27572
27572
|
}
|
|
27573
27573
|
}
|
|
27574
27574
|
};
|
|
@@ -28186,7 +28186,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
28186
28186
|
return;
|
|
28187
28187
|
}
|
|
28188
28188
|
const { contextType: f, shouldDisable: b } = t();
|
|
28189
|
-
f === "mode" && !
|
|
28189
|
+
f === "mode" && !He(a7, l) || zn.set(r, b);
|
|
28190
28190
|
}
|
|
28191
28191
|
}
|
|
28192
28192
|
}
|
|
@@ -28431,7 +28431,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
28431
28431
|
case "cardimage":
|
|
28432
28432
|
return u7(l.src, l.classes, l.alt);
|
|
28433
28433
|
case "cardtext":
|
|
28434
|
-
const b = l.name.exists((x) =>
|
|
28434
|
+
const b = l.name.exists((x) => He(r.cardText.highlightOn, x)) ? Q.from(r.cardText.matchText).getOr("") : "";
|
|
28435
28435
|
return V$(f7(l.text, b), l.classes);
|
|
28436
28436
|
}
|
|
28437
28437
|
}), uz = (t, r, l, f) => {
|
|
@@ -29655,7 +29655,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29655
29655
|
inlineBehaviours: Yt([Po("dismissAutocompleter", [
|
|
29656
29656
|
Et(nm(), () => j()),
|
|
29657
29657
|
Et(qO(), (ve, We) => {
|
|
29658
|
-
as(We.event.target, "id").each((
|
|
29658
|
+
as(We.event.target, "id").each((Ue) => un(Ot.fromDom(t.getBody()), "aria-activedescendant", Ue));
|
|
29659
29659
|
})
|
|
29660
29660
|
])]),
|
|
29661
29661
|
lazySink: r.getSink
|
|
@@ -29668,10 +29668,10 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29668
29668
|
});
|
|
29669
29669
|
}
|
|
29670
29670
|
}, V = () => ni.getContent(S).bind((ve) => Ko(ve.components(), 0)), j = () => t.execCommand("mceAutocompleterClose"), oe = (ve) => {
|
|
29671
|
-
const We = rs(ve, (
|
|
29672
|
-
return Se(ve, (
|
|
29673
|
-
const ct =
|
|
29674
|
-
return vH(ct,
|
|
29671
|
+
const We = rs(ve, (Ue) => Q.from(Ue.columns)).getOr(1);
|
|
29672
|
+
return Se(ve, (Ue) => {
|
|
29673
|
+
const ct = Ue.items;
|
|
29674
|
+
return vH(ct, Ue.matchText, (pt, mn) => {
|
|
29675
29675
|
const Sn = {
|
|
29676
29676
|
hide: () => j(),
|
|
29677
29677
|
reload: (xt) => {
|
|
@@ -29679,26 +29679,26 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29679
29679
|
}
|
|
29680
29680
|
};
|
|
29681
29681
|
t.execCommand("mceAutocompleterRefreshActiveRange"), x.get().each((xt) => {
|
|
29682
|
-
f.set(!0),
|
|
29682
|
+
f.set(!0), Ue.onAction(Sn, xt, pt, mn), f.set(!1);
|
|
29683
29683
|
});
|
|
29684
|
-
}, We, yf.BUBBLE_TO_SANDBOX, r,
|
|
29684
|
+
}, We, yf.BUBBLE_TO_SANDBOX, r, Ue.highlightOn);
|
|
29685
29685
|
});
|
|
29686
29686
|
}, ae = (ve, We) => {
|
|
29687
|
-
const
|
|
29687
|
+
const Ue = rs(ve, (ct) => Q.from(ct.columns)).getOr(1);
|
|
29688
29688
|
ni.showMenuAt(S, {
|
|
29689
29689
|
anchor: {
|
|
29690
29690
|
type: "selection",
|
|
29691
29691
|
getSelection: () => x.get().map(xH),
|
|
29692
29692
|
root: Ot.fromDom(t.getBody())
|
|
29693
29693
|
}
|
|
29694
|
-
}, wH(x$("autocompleter-value", !0, We,
|
|
29694
|
+
}, wH(x$("autocompleter-value", !0, We, Ue, { menuType: "normal" }), Ue, a3.ContentFocus, "normal")), V().each(ue.highlightFirst);
|
|
29695
29695
|
}, pe = (ve) => {
|
|
29696
29696
|
const We = oe(ve);
|
|
29697
29697
|
We.length > 0 ? (ae(ve, We), un(Ot.fromDom(t.getBody()), "aria-owns", l), t.inline || xe()) : L();
|
|
29698
29698
|
}, xe = () => {
|
|
29699
29699
|
t.dom.get(l) && t.dom.remove(l, !1);
|
|
29700
|
-
const ve = t.getDoc().documentElement, We = t.selection.getNode(),
|
|
29701
|
-
ws(
|
|
29700
|
+
const ve = t.getDoc().documentElement, We = t.selection.getNode(), Ue = cb(S.element);
|
|
29701
|
+
ws(Ue, {
|
|
29702
29702
|
border: "0",
|
|
29703
29703
|
clip: "rect(0 0 0 0)",
|
|
29704
29704
|
height: "1px",
|
|
@@ -29709,7 +29709,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29709
29709
|
width: "1px",
|
|
29710
29710
|
top: `${We.offsetTop}px`,
|
|
29711
29711
|
left: `${We.offsetLeft}px`
|
|
29712
|
-
}), t.dom.add(ve,
|
|
29712
|
+
}), t.dom.add(ve, Ue.dom), Er(Ue, '[role="menu"]').each((ct) => {
|
|
29713
29713
|
Uo(ct, "position"), Uo(ct, "max-height");
|
|
29714
29714
|
});
|
|
29715
29715
|
};
|
|
@@ -29778,7 +29778,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29778
29778
|
}
|
|
29779
29779
|
]);
|
|
29780
29780
|
return { fireIfReady: (L, V) => Xt(E, V).bind((j) => j(L)) };
|
|
29781
|
-
}, Xx = (t) => t.raw.which === Ie[0] && !
|
|
29781
|
+
}, Xx = (t) => t.raw.which === Ie[0] && !He([
|
|
29782
29782
|
"input",
|
|
29783
29783
|
"textarea"
|
|
29784
29784
|
], Ss(t.target)) && !_m(t.target, '[contenteditable="true"]'), CH = (t, r) => {
|
|
@@ -29971,16 +29971,16 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
29971
29971
|
]
|
|
29972
29972
|
}), OP = (t) => {
|
|
29973
29973
|
const r = (ve) => oi(t.element).fold(kt, (We) => Jo(ve, We)), l = Np(), f = (ve, We) => l.find(r, ve, We), b = CH(t.element, {
|
|
29974
|
-
triggerEvent: (ve, We) => L2(ve, We.target, (
|
|
29974
|
+
triggerEvent: (ve, We) => L2(ve, We.target, (Ue) => $H(f, ve, We, Ue))
|
|
29975
29975
|
}), x = {
|
|
29976
29976
|
debugInfo: te("real"),
|
|
29977
|
-
triggerEvent: (ve, We,
|
|
29978
|
-
L2(ve, We, (ct) => dB(f, ve,
|
|
29977
|
+
triggerEvent: (ve, We, Ue) => {
|
|
29978
|
+
L2(ve, We, (ct) => dB(f, ve, Ue, We, ct));
|
|
29979
29979
|
},
|
|
29980
29980
|
triggerFocus: (ve, We) => {
|
|
29981
29981
|
fp(ve).fold(() => {
|
|
29982
29982
|
bu(ve);
|
|
29983
|
-
}, (
|
|
29983
|
+
}, (Ue) => {
|
|
29984
29984
|
L2(hh(), ve, (ct) => (EH(f, hh(), {
|
|
29985
29985
|
originator: We,
|
|
29986
29986
|
kill: le,
|
|
@@ -30030,8 +30030,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30030
30030
|
b.unbind(), Ic(t.element);
|
|
30031
30031
|
}, j = (ve) => {
|
|
30032
30032
|
const We = l.filter(Gu());
|
|
30033
|
-
ht(We, (
|
|
30034
|
-
const ct =
|
|
30033
|
+
ht(We, (Ue) => {
|
|
30034
|
+
const ct = Ue.descHandler;
|
|
30035
30035
|
ig(ct)(ve);
|
|
30036
30036
|
});
|
|
30037
30037
|
}, oe = (ve) => {
|
|
@@ -30046,8 +30046,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30046
30046
|
data: We
|
|
30047
30047
|
});
|
|
30048
30048
|
}, pe = (ve, We) => {
|
|
30049
|
-
const
|
|
30050
|
-
return bP(
|
|
30049
|
+
const Ue = l.filter(ve);
|
|
30050
|
+
return bP(Ue, We);
|
|
30051
30051
|
}, xe = (ve) => l.getById(ve).fold(() => Eo.error(new Error('Could not find component with uid: "' + ve + '" in system.')), Eo.value), qe = (ve) => {
|
|
30052
30052
|
const We = fp(ve).getOr("not found");
|
|
30053
30053
|
return xe(We);
|
|
@@ -30197,8 +30197,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30197
30197
|
"-": " "
|
|
30198
30198
|
}, En = pt.replace(/\_| \- |\-/g, (fn) => xt[fn]);
|
|
30199
30199
|
return `<div data-mce-tooltip="${En}" class="tox-collection__item${qe}" tabindex="-1" data-collection-item-value="${DH.encodeAllRaw(ct.value)}" aria-label="${En}">${Sn}${mn}</div>`;
|
|
30200
|
-
}), We = t.columns !== "auto" && t.columns > 1 ? Jt(ve, t.columns) : [ve],
|
|
30201
|
-
ji(ae.element,
|
|
30200
|
+
}), We = t.columns !== "auto" && t.columns > 1 ? Jt(ve, t.columns) : [ve], Ue = Ge(We, (ct) => `<div class="tox-collection__group">${ct.join("")}</div>`);
|
|
30201
|
+
ji(ae.element, Ue.join(""));
|
|
30202
30202
|
}, D = S((ae, pe, xe, qe) => {
|
|
30203
30203
|
pe.stop(), r.checkUiComponentContext("mode:design").shouldDisable || r.isDisabled() || Vn(ae, wg, {
|
|
30204
30204
|
name: t.name,
|
|
@@ -30319,7 +30319,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30319
30319
|
"textarea"
|
|
30320
30320
|
], wB = (t) => {
|
|
30321
30321
|
const r = Ss(t);
|
|
30322
|
-
return
|
|
30322
|
+
return He(LH, r);
|
|
30323
30323
|
}, vP = (t, r) => {
|
|
30324
30324
|
const l = r.getRoot(t).getOr(t.element);
|
|
30325
30325
|
Yr(l, r.invalidClass), r.notify.each((f) => {
|
|
@@ -30945,7 +30945,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30945
30945
|
t.mouseIsDown.set(!1), Sn && mn();
|
|
30946
30946
|
}, We = (pt, mn) => {
|
|
30947
30947
|
mn.stop(), t.mouseIsDown.set(!0), t.onDragStart(pt, b(pt));
|
|
30948
|
-
},
|
|
30948
|
+
}, Ue = (pt, mn) => {
|
|
30949
30949
|
mn.stop(), t.onDragEnd(pt, b(pt)), ve(pt);
|
|
30950
30950
|
}, ct = (pt) => {
|
|
30951
30951
|
gr(pt, t, "spectrum").map(Xn.focusIn);
|
|
@@ -30981,11 +30981,11 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30981
30981
|
t.onInit(pt, xt, En, V.value.get());
|
|
30982
30982
|
}),
|
|
30983
30983
|
Et(hs(), We),
|
|
30984
|
-
Et(la(),
|
|
30984
|
+
Et(la(), Ue),
|
|
30985
30985
|
Et(kc(), (pt, mn) => {
|
|
30986
30986
|
ct(pt), We(pt, mn);
|
|
30987
30987
|
}),
|
|
30988
|
-
Et(ch(),
|
|
30988
|
+
Et(ch(), Ue)
|
|
30989
30989
|
]),
|
|
30990
30990
|
apis: {
|
|
30991
30991
|
resetToMin: xe,
|
|
@@ -31122,17 +31122,17 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31122
31122
|
},
|
|
31123
31123
|
validator: {
|
|
31124
31124
|
validate: (We) => {
|
|
31125
|
-
const
|
|
31125
|
+
const Ue = kn.getValue(We), ct = qe(Ue) ? Eo.value(!0) : Eo.error(t("aria.input.invalid"));
|
|
31126
31126
|
return nc.pure(ct);
|
|
31127
31127
|
},
|
|
31128
31128
|
validateOnLoad: !1
|
|
31129
31129
|
}
|
|
31130
|
-
}), D = (xe, qe, ve, We,
|
|
31130
|
+
}), D = (xe, qe, ve, We, Ue) => {
|
|
31131
31131
|
const ct = In(xU), pt = t(eA + "range"), mn = Es.parts.label({
|
|
31132
31132
|
dom: { tag: "label" },
|
|
31133
31133
|
components: [Qr(ve)]
|
|
31134
31134
|
}), Sn = Es.parts.field({
|
|
31135
|
-
data:
|
|
31135
|
+
data: Ue,
|
|
31136
31136
|
factory: vf,
|
|
31137
31137
|
inputAttributes: {
|
|
31138
31138
|
type: "text",
|
|
@@ -31194,11 +31194,11 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31194
31194
|
po.isFocused(We) || kn.setValue(xe, { hex: ve.value });
|
|
31195
31195
|
}), ve;
|
|
31196
31196
|
}, V = (xe, qe) => {
|
|
31197
|
-
const ve = qe.red, We = qe.green,
|
|
31197
|
+
const ve = qe.red, We = qe.green, Ue = qe.blue;
|
|
31198
31198
|
kn.setValue(xe, {
|
|
31199
31199
|
red: ve,
|
|
31200
31200
|
green: We,
|
|
31201
|
-
blue:
|
|
31201
|
+
blue: Ue
|
|
31202
31202
|
});
|
|
31203
31203
|
}, j = Qs({
|
|
31204
31204
|
dom: {
|
|
@@ -31224,7 +31224,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31224
31224
|
V(Qn, On), ct(On);
|
|
31225
31225
|
}, ve = (Qn) => xe[Qn].get(), We = (Qn, Wt) => {
|
|
31226
31226
|
xe[Qn].set(Wt);
|
|
31227
|
-
},
|
|
31227
|
+
}, Ue = () => ve("red").bind((Qn) => ve("green").bind((Wt) => ve("blue").map((On) => lO(Qn, Wt, On, 1)))), ct = (Qn) => {
|
|
31228
31228
|
const Wt = Qn.red, On = Qn.green, vo = Qn.blue;
|
|
31229
31229
|
We("red", Q.some(Wt)), We("green", Q.some(On)), We("blue", Q.some(vo));
|
|
31230
31230
|
}, pt = (Qn, Wt) => {
|
|
@@ -31238,7 +31238,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31238
31238
|
V(Qn, vo), ct(vo), Vn(Qn, YP, { hex: On }), oe(Qn, On);
|
|
31239
31239
|
}, Sn = (Qn, Wt, On) => {
|
|
31240
31240
|
const vo = parseInt(On, 10);
|
|
31241
|
-
We(Wt, Q.some(vo)),
|
|
31241
|
+
We(Wt, Q.some(vo)), Ue().each((Zo) => {
|
|
31242
31242
|
const eo = L(Qn, Zo);
|
|
31243
31243
|
Vn(Qn, YP, { hex: eo }), oe(Qn, eo);
|
|
31244
31244
|
});
|
|
@@ -31401,11 +31401,11 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31401
31401
|
ae.getOpt(xt).each((fn) => {
|
|
31402
31402
|
D.setThumb(fn, En);
|
|
31403
31403
|
});
|
|
31404
|
-
},
|
|
31404
|
+
}, Ue = (xt, En) => {
|
|
31405
31405
|
const fn = Zx(xt);
|
|
31406
31406
|
j.paletteRgba.set(fn), j.paletteHue.set(En);
|
|
31407
31407
|
}, ct = (xt, En, fn, Bn) => {
|
|
31408
|
-
|
|
31408
|
+
Ue(En, fn), ht(Bn, (cs) => {
|
|
31409
31409
|
cs(xt, En, fn);
|
|
31410
31410
|
});
|
|
31411
31411
|
}, pt = () => {
|
|
@@ -32526,10 +32526,10 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
32526
32526
|
...S.toArray(),
|
|
32527
32527
|
zr.config({}),
|
|
32528
32528
|
Po("size-input-events", [
|
|
32529
|
-
Et(dh(), (We,
|
|
32529
|
+
Et(dh(), (We, Ue) => {
|
|
32530
32530
|
Vn(We, f, { isField1: ve });
|
|
32531
32531
|
}),
|
|
32532
|
-
Et(tm(), (We,
|
|
32532
|
+
Et(tm(), (We, Ue) => {
|
|
32533
32533
|
t.name.each((ct) => Vn(We, Su, { name: ct }));
|
|
32534
32534
|
})
|
|
32535
32535
|
]),
|
|
@@ -32581,7 +32581,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
32581
32581
|
field2Name: "height",
|
|
32582
32582
|
locked: !0,
|
|
32583
32583
|
markers: { lockClass: "tox-locked" },
|
|
32584
|
-
onLockedChange: (ve, We,
|
|
32584
|
+
onLockedChange: (ve, We, Ue) => {
|
|
32585
32585
|
bA(kn.getValue(ve)).each((ct) => {
|
|
32586
32586
|
l(ct).each((pt) => {
|
|
32587
32587
|
kn.setValue(We, KU(pt));
|
|
@@ -32602,7 +32602,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
32602
32602
|
na(() => r.checkUiComponentContext("mode:design")),
|
|
32603
32603
|
Po("size-input-events", [
|
|
32604
32604
|
Et(f, (ve, We) => {
|
|
32605
|
-
const
|
|
32605
|
+
const Ue = We.event.isField1, ct = Ue ? ad.getField1(ve) : ad.getField2(ve), pt = Ue ? ad.getField2(ve) : ad.getField1(ve), mn = ct.map(kn.getValue).getOr(""), Sn = pt.map(kn.getValue).getOr("");
|
|
32606
32606
|
l = IN(mn, Sn);
|
|
32607
32607
|
}),
|
|
32608
32608
|
Et(OB, (ve) => {
|
|
@@ -33391,8 +33391,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33391
33391
|
E(ae).each((We) => {
|
|
33392
33392
|
xe.fold(() => {
|
|
33393
33393
|
t.model.selectsOver && ue.highlightFirst(We);
|
|
33394
|
-
}, (
|
|
33395
|
-
ue.highlightBy(We, (ct) => kn.getValue(ct).value ===
|
|
33394
|
+
}, (Ue) => {
|
|
33395
|
+
ue.highlightBy(We, (ct) => kn.getValue(ct).value === Ue.value), ue.getHighlighted(We).orThunk(() => (ue.highlightFirst(We), Q.none()));
|
|
33396
33396
|
});
|
|
33397
33397
|
});
|
|
33398
33398
|
};
|
|
@@ -33642,12 +33642,12 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33642
33642
|
}) : r === "submit" ? qo(l, Jx) : r === "cancel" ? qo(l, Lp) : console.error("Unknown button type: ", r);
|
|
33643
33643
|
}, cL = (t, r) => r === "menu", _W = (t, r) => r === "custom" || r === "cancel" || r === "submit", uL = (t, r) => r === "togglebutton", EW = (t, r, l) => {
|
|
33644
33644
|
var f, b;
|
|
33645
|
-
const x = t.icon.map((
|
|
33646
|
-
Vn(
|
|
33645
|
+
const x = t.icon.map((Ue) => p1(Ue, r.icons)).map(Qs), S = (Ue) => {
|
|
33646
|
+
Vn(Ue, wg, {
|
|
33647
33647
|
name: t.name,
|
|
33648
33648
|
value: {
|
|
33649
33649
|
setIcon: (ct) => {
|
|
33650
|
-
x.map((pt) => pt.getOpt(
|
|
33650
|
+
x.map((pt) => pt.getOpt(Ue).each((mn) => {
|
|
33651
33651
|
wo.set(mn, [p1(ct, r.icons)]);
|
|
33652
33652
|
}));
|
|
33653
33653
|
}
|
|
@@ -33658,7 +33658,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33658
33658
|
name: (f = t.name) !== null && f !== void 0 ? f : "",
|
|
33659
33659
|
tooltip: t.tooltip,
|
|
33660
33660
|
enabled: (b = t.enabled) !== null && b !== void 0 ? b : !1
|
|
33661
|
-
}, L = D.tooltip.or(t.text).map((
|
|
33661
|
+
}, L = D.tooltip.or(t.text).map((Ue) => ({ "aria-label": r.translate(Ue) })).getOr({}), V = Z3(E ?? "secondary"), j = t.icon.isSome() && t.text.isSome(), oe = {
|
|
33662
33662
|
tag: "button",
|
|
33663
33663
|
classes: [
|
|
33664
33664
|
...V.concat(t.icon.isSome() ? ["tox-button--icon"] : []),
|
|
@@ -33670,7 +33670,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33670
33670
|
...Me(l) ? { "data-mce-name": l } : {}
|
|
33671
33671
|
}
|
|
33672
33672
|
}, ae = [], pe = r.translate(t.text.getOr("")), xe = Qr(pe), ve = [
|
|
33673
|
-
...Ev([x.map((
|
|
33673
|
+
...Ev([x.map((Ue) => Ue.asSpec())]),
|
|
33674
33674
|
...t.text.isSome() ? [xe] : []
|
|
33675
33675
|
], We = F3(D, Q.some(S), ae, oe, ve, t.tooltip, r);
|
|
33676
33676
|
return Ta.sketch(We);
|
|
@@ -33741,8 +33741,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33741
33741
|
});
|
|
33742
33742
|
}, fL = Pn("aria-invalid"), RW = (t, r, l, f) => {
|
|
33743
33743
|
const b = r.shared.providers, x = (We) => {
|
|
33744
|
-
const
|
|
33745
|
-
l.addToHistory(
|
|
33744
|
+
const Ue = kn.getValue(We);
|
|
33745
|
+
l.addToHistory(Ue.value, t.filetype);
|
|
33746
33746
|
}, S = {
|
|
33747
33747
|
...f.map((We) => ({ initialData: We })).getOr({}),
|
|
33748
33748
|
dismissOnBlur: !0,
|
|
@@ -33755,30 +33755,30 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33755
33755
|
minChars: 0,
|
|
33756
33756
|
responseTime: 0,
|
|
33757
33757
|
fetch: (We) => {
|
|
33758
|
-
const
|
|
33758
|
+
const Ue = RA(t.filetype, We, l), ct = Fv(Ue, yf.BUBBLE_TO_SANDBOX, r, {
|
|
33759
33759
|
isHorizontalMenu: !1,
|
|
33760
33760
|
search: Q.none()
|
|
33761
33761
|
});
|
|
33762
33762
|
return nc.pure(ct);
|
|
33763
33763
|
},
|
|
33764
33764
|
getHotspot: (We) => pe.getOpt(We),
|
|
33765
|
-
onSetValue: (We,
|
|
33765
|
+
onSetValue: (We, Ue) => {
|
|
33766
33766
|
We.hasConfigured(xg) && xg.run(We).get(le);
|
|
33767
33767
|
},
|
|
33768
33768
|
typeaheadBehaviours: Yt([
|
|
33769
33769
|
...l.getValidationHandler().map((We) => xg.config({
|
|
33770
|
-
getRoot: (
|
|
33770
|
+
getRoot: (Ue) => Ra(Ue.element),
|
|
33771
33771
|
invalidClass: "tox-control-wrap--status-invalid",
|
|
33772
33772
|
notify: {
|
|
33773
|
-
onInvalid: (
|
|
33774
|
-
V.getOpt(
|
|
33773
|
+
onInvalid: (Ue, ct) => {
|
|
33774
|
+
V.getOpt(Ue).each((pt) => {
|
|
33775
33775
|
un(pt.element, "title", b.translate(ct));
|
|
33776
33776
|
});
|
|
33777
33777
|
}
|
|
33778
33778
|
},
|
|
33779
33779
|
validator: {
|
|
33780
|
-
validate: (
|
|
33781
|
-
const ct = kn.getValue(
|
|
33780
|
+
validate: (Ue) => {
|
|
33781
|
+
const ct = kn.getValue(Ue);
|
|
33782
33782
|
return iL.nu((pt) => {
|
|
33783
33783
|
We({
|
|
33784
33784
|
type: t.filetype,
|
|
@@ -33801,8 +33801,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33801
33801
|
zr.config({}),
|
|
33802
33802
|
Po("urlinput-events", [
|
|
33803
33803
|
Et(qu(), (We) => {
|
|
33804
|
-
const
|
|
33805
|
-
ct !==
|
|
33804
|
+
const Ue = Cd(We.element), ct = Ue.trim();
|
|
33805
|
+
ct !== Ue && bp(We.element, ct), t.filetype === "file" && Vn(We, Su, { name: t.name });
|
|
33806
33806
|
}),
|
|
33807
33807
|
Et(tm(), (We) => {
|
|
33808
33808
|
Vn(We, Su, { name: t.name }), x(We);
|
|
@@ -33827,16 +33827,16 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33827
33827
|
markers: { openClass: "tox-textfield--popup-open" },
|
|
33828
33828
|
lazySink: r.shared.getSink,
|
|
33829
33829
|
parts: { menu: Dx(!1, 1, "normal") },
|
|
33830
|
-
onExecute: (We,
|
|
33831
|
-
Vn(
|
|
33830
|
+
onExecute: (We, Ue, ct) => {
|
|
33831
|
+
Vn(Ue, Jx, {});
|
|
33832
33832
|
},
|
|
33833
|
-
onItemExecute: (We,
|
|
33833
|
+
onItemExecute: (We, Ue, ct, pt) => {
|
|
33834
33834
|
x(We), Vn(We, Su, { name: t.name });
|
|
33835
33835
|
}
|
|
33836
33836
|
}, E = Es.parts.field({
|
|
33837
33837
|
...S,
|
|
33838
33838
|
factory: CW
|
|
33839
|
-
}), D = t.label.map((We) => vg(We, b)), V = Qs(((We,
|
|
33839
|
+
}), D = t.label.map((We) => vg(We, b)), V = Qs(((We, Ue, ct = We, pt = We) => Ld(ct, {
|
|
33840
33840
|
tag: "div",
|
|
33841
33841
|
classes: [
|
|
33842
33842
|
"tox-icon",
|
|
@@ -33845,7 +33845,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33845
33845
|
attributes: {
|
|
33846
33846
|
title: b.translate(pt),
|
|
33847
33847
|
"aria-live": "polite",
|
|
33848
|
-
...
|
|
33848
|
+
...Ue.fold(() => ({}), (mn) => ({ id: mn }))
|
|
33849
33849
|
}
|
|
33850
33850
|
}, b.icons))("invalid", Q.some(fL), "warning")), j = Qs({
|
|
33851
33851
|
dom: {
|
|
@@ -33882,14 +33882,14 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33882
33882
|
oe.map(() => xe.asSpec()).toArray()
|
|
33883
33883
|
])
|
|
33884
33884
|
}), ve = (We) => {
|
|
33885
|
-
Os.getCurrent(We).each((
|
|
33886
|
-
const ct = kn.getValue(
|
|
33885
|
+
Os.getCurrent(We).each((Ue) => {
|
|
33886
|
+
const ct = kn.getValue(Ue), pt = {
|
|
33887
33887
|
fieldname: t.name,
|
|
33888
33888
|
...ct
|
|
33889
33889
|
};
|
|
33890
33890
|
oe.each((mn) => {
|
|
33891
33891
|
mn(pt).get((Sn) => {
|
|
33892
|
-
kn.setValue(
|
|
33892
|
+
kn.setValue(Ue, Sn), Vn(We, Su, { name: t.name });
|
|
33893
33893
|
});
|
|
33894
33894
|
});
|
|
33895
33895
|
});
|
|
@@ -34459,7 +34459,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34459
34459
|
return FE(t) ? FA.concat(l) : l;
|
|
34460
34460
|
}).getOr(FA), XW = (t) => {
|
|
34461
34461
|
const r = is(t);
|
|
34462
|
-
return r.length === 1 &&
|
|
34462
|
+
return r.length === 1 && He(r, "title");
|
|
34463
34463
|
}, RL = (t, r, l) => ({
|
|
34464
34464
|
...t,
|
|
34465
34465
|
type: "formatter",
|
|
@@ -34636,7 +34636,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34636
34636
|
contextType: "disabled",
|
|
34637
34637
|
shouldDisable: !0
|
|
34638
34638
|
};
|
|
34639
|
-
const [We,
|
|
34639
|
+
const [We, Ue = ""] = ve.split(":"), ct = r.ui.registry.getAll().contexts, pt = Xt(ct, We).fold(() => Xt(ct, "mode").map((mn) => mn("design")).getOr(!1), (mn) => Ue.charAt(0) === "!" ? !mn(Ue.slice(1)) : mn(Ue));
|
|
34640
34640
|
return {
|
|
34641
34641
|
contextType: We,
|
|
34642
34642
|
shouldDisable: !pt
|
|
@@ -34709,20 +34709,20 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34709
34709
|
Bt(Bn, (cs) => Jo(cs, xt.target)) && (t.dispatch("ElementScroll", { target: xt.target.dom }), f(ep(), xt));
|
|
34710
34710
|
}
|
|
34711
34711
|
});
|
|
34712
|
-
}),
|
|
34712
|
+
}), Ue = () => b(Om(), {}), ct = (xt) => {
|
|
34713
34713
|
xt.state && b(mg(), { target: Ot.fromDom(t.getContainer()) });
|
|
34714
34714
|
}, pt = (xt) => {
|
|
34715
34715
|
b(mg(), { target: Ot.fromDom(xt.relatedTarget.getContainer()) });
|
|
34716
34716
|
}, mn = (xt) => t.dispatch("focusin", xt), Sn = (xt) => t.dispatch("focusout", xt);
|
|
34717
34717
|
t.on("PostRender", () => {
|
|
34718
|
-
t.on("click", oe), t.on("tap", oe), t.on("mouseup", ae), t.on("mousedown", pe), t.on("ScrollWindow", xe), t.on("ResizeWindow", qe), t.on("ResizeEditor",
|
|
34718
|
+
t.on("click", oe), t.on("tap", oe), t.on("mouseup", ae), t.on("mousedown", pe), t.on("ScrollWindow", xe), t.on("ResizeWindow", qe), t.on("ResizeEditor", Ue), t.on("AfterProgressState", ct), t.on("DismissPopups", pt), ht([
|
|
34719
34719
|
r,
|
|
34720
34720
|
...l
|
|
34721
34721
|
], (xt) => {
|
|
34722
34722
|
xt.element.dom.addEventListener("focusin", mn), xt.element.dom.addEventListener("focusout", Sn);
|
|
34723
34723
|
});
|
|
34724
34724
|
}), t.on("remove", () => {
|
|
34725
|
-
t.off("click", oe), t.off("tap", oe), t.off("mouseup", ae), t.off("mousedown", pe), t.off("ScrollWindow", xe), t.off("ResizeWindow", qe), t.off("ResizeEditor",
|
|
34725
|
+
t.off("click", oe), t.off("tap", oe), t.off("mouseup", ae), t.off("mousedown", pe), t.off("ScrollWindow", xe), t.off("ResizeWindow", qe), t.off("ResizeEditor", Ue), t.off("AfterProgressState", ct), t.off("DismissPopups", pt), ht([
|
|
34726
34726
|
r,
|
|
34727
34727
|
...l
|
|
34728
34728
|
], (xt) => {
|
|
@@ -34842,7 +34842,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34842
34842
|
const ve = L - b + D + oe;
|
|
34843
34843
|
sh(x.left, ve, l);
|
|
34844
34844
|
}
|
|
34845
|
-
}, e_ = (t, r) =>
|
|
34845
|
+
}, e_ = (t, r) => He(mr.getModes(t), r), t_ = (t) => {
|
|
34846
34846
|
const r = (f) => Bc(f) + (parseInt(Nt(f, "margin-top"), 10) || 0) + (parseInt(Nt(f, "margin-bottom"), 10) || 0), l = t.element;
|
|
34847
34847
|
Ra(l).each((f) => {
|
|
34848
34848
|
const b = "padding-" + mr.getModes(t)[0];
|
|
@@ -35108,7 +35108,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
35108
35108
|
}));
|
|
35109
35109
|
return Ub(o9, Sj, b, xS, l);
|
|
35110
35110
|
}, xS = (t, r) => {
|
|
35111
|
-
const l = (xe) => jw(t), f = (xe, qe) => gr(xe, t, qe), b = (xe, qe) => (ve, We) => gr(ve, t, We).map((
|
|
35111
|
+
const l = (xe) => jw(t), f = (xe, qe) => gr(xe, t, qe), b = (xe, qe) => (ve, We) => gr(ve, t, We).map((Ue) => xe(Ue, We)).getOr(qe), x = (xe) => (qe, ve) => {
|
|
35112
35112
|
ht(ve, (We) => xe(qe, We));
|
|
35113
35113
|
}, S = (xe, qe) => go(xe.element, "aria-hidden") !== "true", E = (xe, qe) => {
|
|
35114
35114
|
if (!S(xe)) {
|
|
@@ -36038,15 +36038,15 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
36038
36038
|
hu("onHide")
|
|
36039
36039
|
]), sX = (t) => Vr("view", oX, t), S9 = (t, r) => {
|
|
36040
36040
|
var l, f;
|
|
36041
|
-
const b = t.type === "togglebutton", x = t.icon.map((
|
|
36041
|
+
const b = t.type === "togglebutton", x = t.icon.map((Ue) => p1(Ue, r.icons)).map(Qs), E = (Ue) => {
|
|
36042
36042
|
const ct = (xt) => {
|
|
36043
|
-
x.map((En) => En.getOpt(
|
|
36043
|
+
x.map((En) => En.getOpt(Ue).each((fn) => {
|
|
36044
36044
|
wo.set(fn, [p1(xt, r.icons)]);
|
|
36045
36045
|
}));
|
|
36046
36046
|
}, pt = (xt) => {
|
|
36047
|
-
const En =
|
|
36047
|
+
const En = Ue.element;
|
|
36048
36048
|
xt ? (mi(En, "tox-button--enabled"), un(En, "aria-pressed", !0)) : (Yr(En, "tox-button--enabled"), ce(En, "aria-pressed"));
|
|
36049
|
-
}, mn = () => ql(
|
|
36049
|
+
}, mn = () => ql(Ue.element, "tox-button--enabled"), Sn = () => bu(Ue.element);
|
|
36050
36050
|
if (b)
|
|
36051
36051
|
return t.onAction({
|
|
36052
36052
|
setIcon: ct,
|
|
@@ -36065,7 +36065,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
36065
36065
|
icon: t.icon,
|
|
36066
36066
|
enabled: !0,
|
|
36067
36067
|
borderless: t.borderless
|
|
36068
|
-
}, L = Z3((f = t.buttonType) !== null && f !== void 0 ? f : "secondary"), V = b ? t.text.map(r.translate) : Q.some(r.translate(t.text)), j = V.map(Qr), oe = D.tooltip.or(V).map((
|
|
36068
|
+
}, L = Z3((f = t.buttonType) !== null && f !== void 0 ? f : "secondary"), V = b ? t.text.map(r.translate) : Q.some(r.translate(t.text)), j = V.map(Qr), oe = D.tooltip.or(V).map((Ue) => ({ "aria-label": r.translate(Ue) })).getOr({}), ae = x.map((Ue) => Ue.asSpec()), pe = Ev([
|
|
36069
36069
|
ae,
|
|
36070
36070
|
j
|
|
36071
36071
|
]), xe = t.icon.isSome() && j.isSome(), qe = {
|
|
@@ -36944,19 +36944,19 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
36944
36944
|
pageDown: te(34)
|
|
36945
36945
|
}, LX = (t, r, l, f) => {
|
|
36946
36946
|
let b = Q.none();
|
|
36947
|
-
const x = (
|
|
36948
|
-
const ct =
|
|
36947
|
+
const x = (Ue) => Ue.map((ct) => kn.getValue(ct)).getOr(""), S = uO(t, "NodeChange SwitchMode DisabledStateChange", (Ue) => {
|
|
36948
|
+
const ct = Ue.getComponent();
|
|
36949
36949
|
b = Q.some(ct), l.updateInputValue(ct), zn.set(ct, !t.selection.isEditable() || pT(t));
|
|
36950
|
-
}), E = (
|
|
36951
|
-
const mn = x(b), Sn = l.getNewValue(mn,
|
|
36950
|
+
}), E = (Ue) => ({ getComponent: te(Ue) }), D = In(le), L = Pn("custom-number-input-events"), V = (Ue, ct, pt) => {
|
|
36951
|
+
const mn = x(b), Sn = l.getNewValue(mn, Ue), xt = mn.length - `${Sn}`.length, En = b.map((Bn) => Bn.element.dom.selectionStart - xt), fn = b.map((Bn) => Bn.element.dom.selectionEnd - xt);
|
|
36952
36952
|
l.onAction(Sn, pt), b.each((Bn) => {
|
|
36953
36953
|
kn.setValue(Bn, Sn), ct && (En.each((cs) => Bn.element.dom.selectionStart = cs), fn.each((cs) => Bn.element.dom.selectionEnd = cs));
|
|
36954
36954
|
});
|
|
36955
|
-
}, j = (
|
|
36955
|
+
}, j = (Ue, ct) => V((pt, mn) => pt - mn, Ue, ct), oe = (Ue, ct) => V((pt, mn) => pt + mn, Ue, ct), ae = (Ue) => Ra(Ue.element).fold(Q.none, (ct) => (bu(ct), Q.some(!0))), pe = (Ue) => uf(Ue.element) ? (Sc(Ue.element).each((ct) => bu(ct)), Q.some(!0)) : Q.none(), xe = (Ue, ct, pt, mn) => {
|
|
36956
36956
|
const Sn = In(le), xt = r.shared.providers.translate(pt), En = Pn("altExecuting"), fn = uO(t, "NodeChange SwitchMode DisabledStateChange", (cs) => {
|
|
36957
36957
|
zn.set(cs.getComponent(), !t.selection.isEditable() || pT(t));
|
|
36958
36958
|
}), Bn = (cs) => {
|
|
36959
|
-
zn.isDisabled(cs) ||
|
|
36959
|
+
zn.isDisabled(cs) || Ue(!0);
|
|
36960
36960
|
};
|
|
36961
36961
|
return Ta.sketch({
|
|
36962
36962
|
dom: {
|
|
@@ -36978,7 +36978,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
36978
36978
|
}, Sn),
|
|
36979
36979
|
El({ getApi: E }, Sn),
|
|
36980
36980
|
Et(La(), (cs, Dr) => {
|
|
36981
|
-
(Dr.event.raw.keyCode === Y9.space() || Dr.event.raw.keyCode === Y9.enter()) && (zn.isDisabled(cs) ||
|
|
36981
|
+
(Dr.event.raw.keyCode === Y9.space() || Dr.event.raw.keyCode === Y9.enter()) && (zn.isDisabled(cs) || Ue(!1));
|
|
36982
36982
|
}),
|
|
36983
36983
|
Et(Yg(), Bn),
|
|
36984
36984
|
Et(la(), Bn)
|
|
@@ -37008,7 +37008,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37008
37008
|
]
|
|
37009
37009
|
}
|
|
37010
37010
|
});
|
|
37011
|
-
}, qe = Qs(xe((
|
|
37011
|
+
}, qe = Qs(xe((Ue) => j(!1, Ue), "minus", "Decrease font size", [])), ve = Qs(xe((Ue) => oe(!1, Ue), "plus", "Increase font size", [])), We = Qs({
|
|
37012
37012
|
dom: {
|
|
37013
37013
|
tag: "div",
|
|
37014
37014
|
classes: ["tox-input-wrapper"]
|
|
@@ -37024,24 +37024,24 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37024
37024
|
El({ getApi: E }, D)
|
|
37025
37025
|
]),
|
|
37026
37026
|
Po("input-update-display-text", [
|
|
37027
|
-
Et(Fd, (
|
|
37028
|
-
kn.setValue(
|
|
37027
|
+
Et(Fd, (Ue, ct) => {
|
|
37028
|
+
kn.setValue(Ue, ct.event.text);
|
|
37029
37029
|
}),
|
|
37030
|
-
Et(ok(), (
|
|
37031
|
-
l.onAction(kn.getValue(
|
|
37030
|
+
Et(ok(), (Ue) => {
|
|
37031
|
+
l.onAction(kn.getValue(Ue));
|
|
37032
37032
|
}),
|
|
37033
|
-
Et(tm(), (
|
|
37034
|
-
l.onAction(kn.getValue(
|
|
37033
|
+
Et(tm(), (Ue) => {
|
|
37034
|
+
l.onAction(kn.getValue(Ue));
|
|
37035
37035
|
})
|
|
37036
37036
|
]),
|
|
37037
37037
|
Xn.config({
|
|
37038
37038
|
mode: "special",
|
|
37039
|
-
onEnter: (
|
|
37039
|
+
onEnter: (Ue) => (V(_t, !0, !0), Q.some(!0)),
|
|
37040
37040
|
onEscape: ae,
|
|
37041
|
-
onUp: (
|
|
37042
|
-
onDown: (
|
|
37043
|
-
onLeft: (
|
|
37044
|
-
onRight: (
|
|
37041
|
+
onUp: (Ue) => (oe(!0, !1), Q.some(!0)),
|
|
37042
|
+
onDown: (Ue) => (j(!0, !1), Q.some(!0)),
|
|
37043
|
+
onLeft: (Ue, ct) => (ct.cut(), Q.none()),
|
|
37044
|
+
onRight: (Ue, ct) => (ct.cut(), Q.none())
|
|
37045
37045
|
})
|
|
37046
37046
|
])
|
|
37047
37047
|
})],
|
|
@@ -37053,12 +37053,12 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37053
37053
|
onSpace: pe,
|
|
37054
37054
|
onEscape: ae
|
|
37055
37055
|
}),
|
|
37056
|
-
Po("input-wrapper-events", [Et(uh(), (
|
|
37056
|
+
Po("input-wrapper-events", [Et(uh(), (Ue) => {
|
|
37057
37057
|
ht([
|
|
37058
37058
|
qe,
|
|
37059
37059
|
ve
|
|
37060
37060
|
], (ct) => {
|
|
37061
|
-
const pt = Ot.fromDom(ct.get(
|
|
37061
|
+
const pt = Ot.fromDom(ct.get(Ue).element.dom);
|
|
37062
37062
|
uf(pt) && Ri(pt);
|
|
37063
37063
|
});
|
|
37064
37064
|
})])
|
|
@@ -37082,7 +37082,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37082
37082
|
focusInside: Ll.OnEnterOrSpaceMode,
|
|
37083
37083
|
cycles: !1,
|
|
37084
37084
|
selector: "button, .tox-input-wrapper",
|
|
37085
|
-
onEscape: (
|
|
37085
|
+
onEscape: (Ue) => uf(Ue.element) ? Q.none() : (bu(Ue.element), Q.some(!0))
|
|
37086
37086
|
})
|
|
37087
37087
|
])
|
|
37088
37088
|
};
|
|
@@ -37858,7 +37858,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37858
37858
|
const r = LE(t), l = px(t), f = r1(t);
|
|
37859
37859
|
return bI(r).map((b) => x_(b, l, f));
|
|
37860
37860
|
}, gq = (t) => BD(t).getOr(LE(t)), { ToolbarLocation: ND, ToolbarMode: OI } = iV, pq = 40, yI = (t, r, l, f, b) => {
|
|
37861
|
-
const { mainUi: x, uiMotherships: S } = l, E = mx.DOM, D = bf(t), L = i1(t), V = r1(t).or(BD(t)), j = f.shared.header, oe = j.isPositionedAtTop, ae = 150, pe = bv(t), xe = pe === OI.sliding || pe === OI.floating, qe = In(!1), ve = () => qe.get() && !t.removed, We = (Qn) => xe ? Qn.fold(te(0), (Wt) => Wt.components().length > 1 ? ei(Wt.components()[1].element) : 0) : 0,
|
|
37861
|
+
const { mainUi: x, uiMotherships: S } = l, E = mx.DOM, D = bf(t), L = i1(t), V = r1(t).or(BD(t)), j = f.shared.header, oe = j.isPositionedAtTop, ae = 150, pe = bv(t), xe = pe === OI.sliding || pe === OI.floating, qe = In(!1), ve = () => qe.get() && !t.removed, We = (Qn) => xe ? Qn.fold(te(0), (Wt) => Wt.components().length > 1 ? ei(Wt.components()[1].element) : 0) : 0, Ue = (Qn) => {
|
|
37862
37862
|
switch (OT(t)) {
|
|
37863
37863
|
case ND.auto:
|
|
37864
37864
|
const Wt = Ar.getToolbar(x.outerContainer), On = We(Wt), vo = ei(Qn.element) - On, Zo = xi(r);
|
|
@@ -37924,7 +37924,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37924
37924
|
}
|
|
37925
37925
|
L && b.on(Qn), xt();
|
|
37926
37926
|
}, Bn = () => D || !L || !ve() ? !1 : b.get().exists((Qn) => {
|
|
37927
|
-
const Wt = j.getDockingMode(), On =
|
|
37927
|
+
const Wt = j.getDockingMode(), On = Ue(Qn);
|
|
37928
37928
|
return On !== Wt ? (ct(On), !0) : !1;
|
|
37929
37929
|
});
|
|
37930
37930
|
return {
|
|
@@ -38566,7 +38566,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
38566
38566
|
}), We = Hn(() => Aq(r, (fn) => {
|
|
38567
38567
|
const Bn = pt([fn]);
|
|
38568
38568
|
Vn(V, QD, { forwardContents: ve(Bn) });
|
|
38569
|
-
})),
|
|
38569
|
+
})), Ue = (fn, Bn) => v_(t, {
|
|
38570
38570
|
buttons: fn,
|
|
38571
38571
|
toolbar: Bn.items,
|
|
38572
38572
|
allowToolbarGroups: !1
|
|
@@ -38574,7 +38574,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
38574
38574
|
const { buttons: Bn } = t.ui.registry.getAll(), cs = We(), Dr = {
|
|
38575
38575
|
...Bn,
|
|
38576
38576
|
...cs.formNavigators
|
|
38577
|
-
}, Bs = bv(t) === Nd.scrolling ? Nd.scrolling : Nd.default, Qn = Je(Ge(fn, (Wt) => Wt.type === "contexttoolbar" ?
|
|
38577
|
+
}, Bs = bv(t) === Nd.scrolling ? Nd.scrolling : Nd.default, Qn = Je(Ge(fn, (Wt) => Wt.type === "contexttoolbar" ? Ue(Dr, Ix(Wt)) : ct(Wt, x.providers)));
|
|
38578
38578
|
return kS({
|
|
38579
38579
|
type: Bs,
|
|
38580
38580
|
uid: Pn("context-toolbar"),
|
|
@@ -39813,14 +39813,14 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
39813
39813
|
}, We = (Sn, xt, En, fn) => {
|
|
39814
39814
|
const Bn = En(xt);
|
|
39815
39815
|
w1.snapTo(Sn, Bn), ve(Sn, xt, (Bs) => Bs[fn] < 0, (Bs, Qn) => Bs[fn] > Qn);
|
|
39816
|
-
},
|
|
39816
|
+
}, Ue = (Sn) => We(xe, Sn, E, "top"), ct = () => x.get().each(Ue), pt = (Sn) => We(qe, Sn, L, "bottom"), mn = () => S.get().each(pt);
|
|
39817
39817
|
if (qr().deviceType.isTouch()) {
|
|
39818
39818
|
const Sn = (xt) => Ge(xt, Ot.fromDom);
|
|
39819
39819
|
t.on("TableSelectionChange", (xt) => {
|
|
39820
39820
|
b.get() || (Sp(r, xe), Sp(r, qe), b.set(!0));
|
|
39821
39821
|
const En = Ot.fromDom(xt.start), fn = Ot.fromDom(xt.finish);
|
|
39822
39822
|
x.set(En), S.set(fn), Q.from(xt.otherCells).each((Bn) => {
|
|
39823
|
-
l.set(Sn(Bn.upOrLeftCells)), f.set(Sn(Bn.downOrRightCells)),
|
|
39823
|
+
l.set(Sn(Bn.upOrLeftCells)), f.set(Sn(Bn.downOrRightCells)), Ue(En), pt(fn);
|
|
39824
39824
|
});
|
|
39825
39825
|
}), t.on("ResizeEditor ResizeWindow ScrollContent", () => {
|
|
39826
39826
|
ct(), mn();
|
|
@@ -40123,8 +40123,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40123
40123
|
tag: "div",
|
|
40124
40124
|
classes: ["tox-bottom-anchorbar"]
|
|
40125
40125
|
}
|
|
40126
|
-
}), ve = () => x.mainUi.get().map((eo) => eo.outerContainer).bind(Ar.getHeader), We = () => Eo.fromOption(x.dialogUi.get().map((eo) => eo.sink), "UI has not been rendered"),
|
|
40127
|
-
popup:
|
|
40126
|
+
}), ve = () => x.mainUi.get().map((eo) => eo.outerContainer).bind(Ar.getHeader), We = () => Eo.fromOption(x.dialogUi.get().map((eo) => eo.sink), "UI has not been rendered"), Ue = () => Eo.fromOption(x.popupUi.get().map((eo) => eo.sink), "(popup) UI has not been rendered"), ct = x.lazyGetInOuterOrDie("anchor bar", xe.getOpt), pt = x.lazyGetInOuterOrDie("bottom anchor bar", qe.getOpt), mn = x.lazyGetInOuterOrDie("toolbar", Ar.getToolbar), Sn = x.lazyGetInOuterOrDie("throbber", Ar.getThrobber), xt = K3({
|
|
40127
|
+
popup: Ue,
|
|
40128
40128
|
dialog: We
|
|
40129
40129
|
}, t, ct, pt), En = () => {
|
|
40130
40130
|
const eo = { attributes: { [ww]: ae ? df.BottomToTop : df.TopToBottom } }, Ao = Ar.parts.menubar({
|
|
@@ -40858,7 +40858,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40858
40858
|
const x = b;
|
|
40859
40859
|
if (!x.universal) {
|
|
40860
40860
|
const S = t.channel;
|
|
40861
|
-
|
|
40861
|
+
He(x.channels, S) && l(f, x.data);
|
|
40862
40862
|
}
|
|
40863
40863
|
}),
|
|
40864
40864
|
fr((f, b) => {
|
|
@@ -41756,8 +41756,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41756
41756
|
},
|
|
41757
41757
|
setData: (pe) => {
|
|
41758
41758
|
f((xe) => {
|
|
41759
|
-
const qe = ae.getData(), ve = wr(qe, pe), We = Wp(t, ve),
|
|
41760
|
-
kn.setValue(
|
|
41759
|
+
const qe = ae.getData(), ve = wr(qe, pe), We = Wp(t, ve), Ue = t.getFormWrapper();
|
|
41760
|
+
kn.setValue(Ue, We), Fs(l, (ct, pt) => {
|
|
41761
41761
|
zo(ve, pt) && ct.set(ve[pt]);
|
|
41762
41762
|
});
|
|
41763
41763
|
});
|
|
@@ -41806,7 +41806,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41806
41806
|
};
|
|
41807
41807
|
return ae;
|
|
41808
41808
|
}, MQ = (t, r, l) => {
|
|
41809
|
-
const f = Pn("dialog"), b = t.internalDialog, x = $O(b.title, f, l), S = In(b.size), E = (
|
|
41809
|
+
const f = Pn("dialog"), b = t.internalDialog, x = $O(b.title, f, l), S = In(b.size), E = (Ue) => VS(ve, Ue), D = Pu(S.get()).toArray(), L = (Ue, ct) => (S.set(ct.internalDialog.size), FS(ct.internalDialog.size, Ue), Q.some(ct)), V = Xa({
|
|
41810
41810
|
body: b.body,
|
|
41811
41811
|
initialData: b.initialData
|
|
41812
41812
|
}, f, l, E), j = ln(b.buttons), oe = sn(j), ae = jn(j.length !== 0, bR({ buttons: j }, f, l)), pe = Ci(() => We, PO(() => qe, l.shared.providers, r), l.shared.getSink), xe = {
|
|
@@ -41822,7 +41822,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41822
41822
|
})],
|
|
41823
41823
|
extraStyles: {}
|
|
41824
41824
|
}, qe = mt(xe, pe, l), ve = (() => {
|
|
41825
|
-
const
|
|
41825
|
+
const Ue = () => {
|
|
41826
41826
|
const pt = ja.getBody(qe);
|
|
41827
41827
|
return Os.getCurrent(pt).getOr(pt);
|
|
41828
41828
|
}, ct = () => {
|
|
@@ -41833,7 +41833,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41833
41833
|
getRoot: te(qe),
|
|
41834
41834
|
getBody: () => ja.getBody(qe),
|
|
41835
41835
|
getFooter: () => ja.getFooter(qe),
|
|
41836
|
-
getFormWrapper:
|
|
41836
|
+
getFormWrapper: Ue,
|
|
41837
41837
|
toggleFullscreen: ct
|
|
41838
41838
|
};
|
|
41839
41839
|
})(), We = OR(ve, r.redial, oe);
|
|
@@ -41859,12 +41859,12 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41859
41859
|
Rh.unblock(pt);
|
|
41860
41860
|
},
|
|
41861
41861
|
onClose: () => r.closeWindow()
|
|
41862
|
-
}, l.shared.getSink),
|
|
41862
|
+
}, l.shared.getSink), Ue = "tox-dialog-inline", ct = qr().os, pt = xl({
|
|
41863
41863
|
dom: {
|
|
41864
41864
|
tag: "div",
|
|
41865
41865
|
classes: [
|
|
41866
41866
|
"tox-dialog",
|
|
41867
|
-
|
|
41867
|
+
Ue,
|
|
41868
41868
|
...j
|
|
41869
41869
|
],
|
|
41870
41870
|
attributes: {
|
|
@@ -41990,16 +41990,16 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41990
41990
|
break;
|
|
41991
41991
|
}
|
|
41992
41992
|
}, fa = (t, r, l, f) => {
|
|
41993
|
-
const b = Pn("dialog"), x = $O(t.title, b, f), S = ml(t), E = t.buttons.bind((
|
|
41994
|
-
...t.height.fold(() => ({}), (
|
|
41995
|
-
height:
|
|
41996
|
-
"max-height":
|
|
41993
|
+
const b = Pn("dialog"), x = $O(t.title, b, f), S = ml(t), E = t.buttons.bind((Ue) => Ue.length === 0 ? Q.none() : Q.some(bR({ buttons: Ue }, b, f))), D = Ms(() => We, PO(() => ve, f.shared.providers, r)), L = {
|
|
41994
|
+
...t.height.fold(() => ({}), (Ue) => ({
|
|
41995
|
+
height: Ue + "px",
|
|
41996
|
+
"max-height": Ue + "px"
|
|
41997
41997
|
})),
|
|
41998
|
-
...t.width.fold(() => ({}), (
|
|
41999
|
-
width:
|
|
42000
|
-
"max-width":
|
|
41998
|
+
...t.width.fold(() => ({}), (Ue) => ({
|
|
41999
|
+
width: Ue + "px",
|
|
42000
|
+
"max-width": Ue + "px"
|
|
42001
42001
|
}))
|
|
42002
|
-
}, V = t.width.isNone() && t.height.isNone() ? ["tox-dialog--width-lg"] : [], j = new K_(t.url, { base_uri: new K_(window.location.href) }), oe = `${j.protocol}://${j.host}${j.port ? ":" + j.port : ""}`, ae = Wl(), pe = (
|
|
42002
|
+
}, V = t.width.isNone() && t.height.isNone() ? ["tox-dialog--width-lg"] : [], j = new K_(t.url, { base_uri: new K_(window.location.href) }), oe = `${j.protocol}://${j.host}${j.port ? ":" + j.port : ""}`, ae = Wl(), pe = (Ue, ct) => Q.some(ct), xe = [
|
|
42003
42003
|
hn.config({
|
|
42004
42004
|
channel: `${lS}-${b}`,
|
|
42005
42005
|
updateState: pe,
|
|
@@ -42007,21 +42007,21 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
42007
42007
|
}),
|
|
42008
42008
|
Po("messages", [
|
|
42009
42009
|
fr(() => {
|
|
42010
|
-
const
|
|
42010
|
+
const Ue = Kl(Ot.fromDom(window), "message", (ct) => {
|
|
42011
42011
|
if (j.isSameOrigin(new K_(ct.raw.origin))) {
|
|
42012
42012
|
const pt = ct.raw.data;
|
|
42013
42013
|
gt(pt) ? Yo(l, We, pt) : oo(pt) && t.onMessage(We, pt);
|
|
42014
42014
|
}
|
|
42015
42015
|
});
|
|
42016
|
-
ae.set(
|
|
42016
|
+
ae.set(Ue);
|
|
42017
42017
|
}),
|
|
42018
42018
|
sf(ae.clear)
|
|
42019
42019
|
]),
|
|
42020
42020
|
Hc.config({
|
|
42021
42021
|
channels: {
|
|
42022
42022
|
[iA]: {
|
|
42023
|
-
onReceive: (
|
|
42024
|
-
Er(
|
|
42023
|
+
onReceive: (Ue, ct) => {
|
|
42024
|
+
Er(Ue.element, "iframe").each((pt) => {
|
|
42025
42025
|
const mn = pt.dom.contentWindow;
|
|
42026
42026
|
Me(mn) && mn.postMessage(ct, oe);
|
|
42027
42027
|
});
|
|
@@ -42157,9 +42157,9 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
42157
42157
|
};
|
|
42158
42158
|
return Ye.openUrl(qe, pe);
|
|
42159
42159
|
}, D = (pe, xe) => {
|
|
42160
|
-
const qe = (ve, We,
|
|
42160
|
+
const qe = (ve, We, Ue) => {
|
|
42161
42161
|
const ct = We, mn = MQ({
|
|
42162
|
-
dataValidator:
|
|
42162
|
+
dataValidator: Ue,
|
|
42163
42163
|
initialData: ct,
|
|
42164
42164
|
internalDialog: ve
|
|
42165
42165
|
}, {
|
|
@@ -42172,11 +42172,11 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
42172
42172
|
};
|
|
42173
42173
|
return Ye.open(qe, pe);
|
|
42174
42174
|
}, L = (pe, xe, qe, ve) => {
|
|
42175
|
-
const We = (
|
|
42175
|
+
const We = (Ue, ct, pt) => {
|
|
42176
42176
|
const mn = ld(ct, pt), Sn = Is(), xt = t.backstages.popup.shared.header.isPositionedAtTop(), En = {
|
|
42177
42177
|
dataValidator: pt,
|
|
42178
42178
|
initialData: mn,
|
|
42179
|
-
internalDialog:
|
|
42179
|
+
internalDialog: Ue
|
|
42180
42180
|
}, fn = () => Sn.on((Bs) => {
|
|
42181
42181
|
ni.reposition(Bs), (!l || !xt) && mr.refresh(Bs);
|
|
42182
42182
|
}), Bn = yR(En, {
|
|
@@ -42209,11 +42209,11 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
42209
42209
|
};
|
|
42210
42210
|
return Ye.open(We, pe);
|
|
42211
42211
|
}, V = (pe, xe, qe, ve) => {
|
|
42212
|
-
const We = (
|
|
42212
|
+
const We = (Ue, ct, pt) => {
|
|
42213
42213
|
const mn = ld(ct, pt), Sn = Is(), xt = t.backstages.popup.shared.header.isPositionedAtTop(), En = {
|
|
42214
42214
|
dataValidator: pt,
|
|
42215
42215
|
initialData: mn,
|
|
42216
|
-
internalDialog:
|
|
42216
|
+
internalDialog: Ue
|
|
42217
42217
|
}, fn = () => Sn.on((Bs) => {
|
|
42218
42218
|
ni.reposition(Bs), mr.refresh(Bs);
|
|
42219
42219
|
}), Bn = yR(En, {
|
|
@@ -42432,7 +42432,7 @@ function che() {
|
|
|
42432
42432
|
const N = g[k];
|
|
42433
42433
|
y(N, k);
|
|
42434
42434
|
}
|
|
42435
|
-
},
|
|
42435
|
+
}, He = (g, y) => {
|
|
42436
42436
|
for (let k = g.length - 1; k >= 0; k--) {
|
|
42437
42437
|
const _ = g[k];
|
|
42438
42438
|
y(_, k);
|
|
@@ -42454,7 +42454,7 @@ function che() {
|
|
|
42454
42454
|
y(z, _) && k.push(z);
|
|
42455
42455
|
}
|
|
42456
42456
|
return k;
|
|
42457
|
-
}, Jt = (g, y, k) => (
|
|
42457
|
+
}, Jt = (g, y, k) => (He(g, (_, N) => {
|
|
42458
42458
|
k = y(k, _, N);
|
|
42459
42459
|
}), k), Ge = (g, y, k) => (Be(g, (_, N) => {
|
|
42460
42460
|
k = y(k, _, N);
|
|
@@ -46747,7 +46747,7 @@ function uhe() {
|
|
|
46747
46747
|
}, Gt = (M, U) => It(je(M, U)), Ft = (M) => {
|
|
46748
46748
|
const U = qt.call(M, 0);
|
|
46749
46749
|
return U.reverse(), U;
|
|
46750
|
-
}, Be = (M, U) => U >= 0 && U < M.length ? Xe.some(M[U]) : Xe.none(),
|
|
46750
|
+
}, Be = (M, U) => U >= 0 && U < M.length ? Xe.some(M[U]) : Xe.none(), He = (M) => Be(M, 0), Bt = (M) => Be(M, M.length - 1), ot = (M, U) => {
|
|
46751
46751
|
const ne = [], Ee = F(U) ? (Fe) => dn(ne, (zt) => U(zt, Fe)) : (Fe) => rn(ne, Fe);
|
|
46752
46752
|
for (let Fe = 0, zt = M.length; Fe < zt; Fe++) {
|
|
46753
46753
|
const to = M[Fe];
|
|
@@ -47066,7 +47066,7 @@ function uhe() {
|
|
|
47066
47066
|
for (let U = 1; U < M.length; U++)
|
|
47067
47067
|
ls(M[U - 1], M[U]);
|
|
47068
47068
|
}, tr = (M, U) => {
|
|
47069
|
-
ht(Bt(M),
|
|
47069
|
+
ht(Bt(M), He(U), ls);
|
|
47070
47070
|
}, ri = (M, U) => {
|
|
47071
47071
|
const ne = {
|
|
47072
47072
|
list: Se.fromTag(U, M),
|
|
@@ -47112,10 +47112,10 @@ function uhe() {
|
|
|
47112
47112
|
const Ee = kt(U, (Fe, zt, to) => nu(zt) ? to === 0 ? (ne = Xe.some(zt), Fe) : ia(M, Fe, zt) : zt.depth > Fe.length ? Zr(M, Fe, zt) : ia(M, Fe, zt), []);
|
|
47113
47113
|
return ne.each((Fe) => {
|
|
47114
47114
|
const zt = Se.fromHtml(`<!--${Fe.content}-->`);
|
|
47115
|
-
|
|
47115
|
+
He(Ee).each((to) => {
|
|
47116
47116
|
yr(to.list, zt);
|
|
47117
47117
|
});
|
|
47118
|
-
}),
|
|
47118
|
+
}), He(Ee).map((Fe) => Fe.list);
|
|
47119
47119
|
}, Vs = (M, U) => {
|
|
47120
47120
|
switch (M) {
|
|
47121
47121
|
case "Indent":
|
|
@@ -47203,7 +47203,7 @@ function uhe() {
|
|
|
47203
47203
|
}, ou = (M, U) => {
|
|
47204
47204
|
const ne = Vh(U);
|
|
47205
47205
|
return Hi(M.contentDocument, ne).toArray();
|
|
47206
|
-
}, Qm = (M, U) => Gt(ut(U, be), (ne) =>
|
|
47206
|
+
}, Qm = (M, U) => Gt(ut(U, be), (ne) => He(ne).exists(be) ? ou(M, ne) : Yp(M, ne)), Hh = (M, U) => {
|
|
47207
47207
|
Oe(Yn(M, tt), (ne) => Vs(U, ne));
|
|
47208
47208
|
}, Lg = (M) => {
|
|
47209
47209
|
const U = je(Tn(M), Se.fromDom);
|
|
@@ -47925,7 +47925,7 @@ function dhe() {
|
|
|
47925
47925
|
processor: "boolean",
|
|
47926
47926
|
default: !1
|
|
47927
47927
|
});
|
|
47928
|
-
}, It = Q("link_assume_external_targets"), Gt = Q("link_context_toolbar"), Ft = Q("link_list"), Be = Q("link_default_target"),
|
|
47928
|
+
}, It = Q("link_assume_external_targets"), Gt = Q("link_context_toolbar"), Ft = Q("link_list"), Be = Q("link_default_target"), He = Q("link_default_protocol"), Bt = Q("link_target_list"), ot = Q("link_rel_list"), Jt = Q("link_class_list"), Ge = Q("link_title"), ht = Q("allow_unsafe_link_target"), Y = Q("link_quicklink"), ss = Object.keys, mo = Object.hasOwnProperty, xo = (se, _e) => {
|
|
47929
47929
|
const Ve = ss(se);
|
|
47930
47930
|
for (let wt = 0, en = Ve.length; wt < en; wt++) {
|
|
47931
47931
|
const Tn = Ve[wt], un = se[Tn];
|
|
@@ -48155,7 +48155,7 @@ function dhe() {
|
|
|
48155
48155
|
}) : et.none();
|
|
48156
48156
|
}, To = { preprocess: (se, _e) => Oe([
|
|
48157
48157
|
bt,
|
|
48158
|
-
Wn(It(se),
|
|
48158
|
+
Wn(It(se), He(se))
|
|
48159
48159
|
], (Ve) => Ve(_e)).fold(() => Promise.resolve(_e), (Ve) => new Promise((wt) => {
|
|
48160
48160
|
dt(se, Ve.message, (en) => {
|
|
48161
48161
|
wt(en ? Ve.preprocess(_e) : _e);
|
|
@@ -48694,7 +48694,7 @@ function hhe() {
|
|
|
48694
48694
|
throw console.error($n, q), new Error($n);
|
|
48695
48695
|
}
|
|
48696
48696
|
return ot(st.childNodes[0]);
|
|
48697
|
-
},
|
|
48697
|
+
}, He = (q, ce) => {
|
|
48698
48698
|
const st = (ce || document).createElement(q);
|
|
48699
48699
|
return ot(st);
|
|
48700
48700
|
}, Bt = (q, ce) => {
|
|
@@ -48706,7 +48706,7 @@ function hhe() {
|
|
|
48706
48706
|
return { dom: q };
|
|
48707
48707
|
}, Ge = {
|
|
48708
48708
|
fromHtml: Be,
|
|
48709
|
-
fromTag:
|
|
48709
|
+
fromTag: He,
|
|
48710
48710
|
fromText: Bt,
|
|
48711
48711
|
fromDom: ot,
|
|
48712
48712
|
fromPoint: (q, ce, De) => Xe.from(q.dom.elementFromPoint(ce, De)).map(ot)
|
|
@@ -49598,7 +49598,7 @@ function fhe() {
|
|
|
49598
49598
|
}, bt = (Ce = Pe.toLowerCase().split(".").pop()) !== null && Ce !== void 0 ? Ce : "";
|
|
49599
49599
|
return Te(dt, bt).getOr("");
|
|
49600
49600
|
};
|
|
49601
|
-
var
|
|
49601
|
+
var He = tinymce.util.Tools.resolve("tinymce.html.Node"), Bt = tinymce.util.Tools.resolve("tinymce.html.Serializer");
|
|
49602
49602
|
const ot = (Pe, Ce = {}) => Q({
|
|
49603
49603
|
forced_root_block: !1,
|
|
49604
49604
|
validate: !1,
|
|
@@ -49637,7 +49637,7 @@ function fhe() {
|
|
|
49637
49637
|
Dt.attr("poster", Ce.poster), Dt.attr("src", null);
|
|
49638
49638
|
for (let Le = Wn; Le < 2; Le++)
|
|
49639
49639
|
if (Ce[Y[Le]]) {
|
|
49640
|
-
const Lt = new
|
|
49640
|
+
const Lt = new He("source", 1);
|
|
49641
49641
|
Lt.attr("src", Ce[Y[Le]]), Lt.attr("type", Ce[Y[Le] + "mime"] || null), Dt.append(Lt);
|
|
49642
49642
|
}
|
|
49643
49643
|
break;
|
|
@@ -49648,7 +49648,7 @@ function fhe() {
|
|
|
49648
49648
|
const Ae = Dt.getAll("img").length > 0;
|
|
49649
49649
|
if (Ce.poster && !Ae) {
|
|
49650
49650
|
Dt.attr("src", Ce.poster);
|
|
49651
|
-
const Le = new
|
|
49651
|
+
const Le = new He("img", 1);
|
|
49652
49652
|
Le.attr("src", Ce.poster), Le.attr("width", Ce.width), Le.attr("height", Ce.height), Dt.append(Le);
|
|
49653
49653
|
}
|
|
49654
49654
|
break;
|
|
@@ -50039,7 +50039,7 @@ function fhe() {
|
|
|
50039
50039
|
for (; Wn.firstChild; )
|
|
50040
50040
|
dt.append(Wn.firstChild);
|
|
50041
50041
|
}, xs = (Pe, Ce) => {
|
|
50042
|
-
const dt = Ce.name, bt = new
|
|
50042
|
+
const dt = Ce.name, bt = new He("img", 1);
|
|
50043
50043
|
return er(Pe, Ce, bt), Fi(Ce, bt, {}), bt.attr({
|
|
50044
50044
|
style: Ce.attr("style"),
|
|
50045
50045
|
src: Ei.transparentSrc,
|
|
@@ -50048,14 +50048,14 @@ function fhe() {
|
|
|
50048
50048
|
}), bt;
|
|
50049
50049
|
}, jn = (Pe, Ce) => {
|
|
50050
50050
|
var dt;
|
|
50051
|
-
const bt = Ce.name, Wn = new
|
|
50051
|
+
const bt = Ce.name, Wn = new He("span", 1);
|
|
50052
50052
|
Wn.attr({
|
|
50053
50053
|
contentEditable: "false",
|
|
50054
50054
|
style: Ce.attr("style"),
|
|
50055
50055
|
"data-mce-object": bt,
|
|
50056
50056
|
class: "mce-preview-object mce-object-" + bt
|
|
50057
50057
|
}), er(Pe, Ce, Wn);
|
|
50058
|
-
const ao = Pe.dom.parseStyle((dt = Ce.attr("style")) !== null && dt !== void 0 ? dt : ""), To = new
|
|
50058
|
+
const ao = Pe.dom.parseStyle((dt = Ce.attr("style")) !== null && dt !== void 0 ? dt : ""), To = new He(bt, 1);
|
|
50059
50059
|
if (Fi(Ce, To, ao), To.attr({
|
|
50060
50060
|
src: Ce.attr("src"),
|
|
50061
50061
|
style: Ce.attr("style"),
|
|
@@ -50082,7 +50082,7 @@ function fhe() {
|
|
|
50082
50082
|
const Ot = Wn.attr("data-mce-html");
|
|
50083
50083
|
T(Ot) && $i(Pe, bt, To, unescape(Ot));
|
|
50084
50084
|
}
|
|
50085
|
-
const js = new
|
|
50085
|
+
const js = new He("span", 1);
|
|
50086
50086
|
return js.attr("class", "mce-shim"), Wn.append(To), Wn.append(js), Wn;
|
|
50087
50087
|
}, er = (Pe, Ce, dt) => {
|
|
50088
50088
|
var bt;
|
|
@@ -50093,7 +50093,7 @@ function fhe() {
|
|
|
50093
50093
|
let Ae = Wn[ao].value;
|
|
50094
50094
|
Ot !== "width" && Ot !== "height" && Ot !== "style" && !Mr(Ot, "data-mce-") && ((Ot === "data" || Ot === "src") && (Ae = Pe.convertURL(Ae, Ot)), dt.attr("data-mce-p-" + Ot, Ae));
|
|
50095
50095
|
}
|
|
50096
|
-
const To = Bt({ inner: !0 }, Pe.schema), js = new
|
|
50096
|
+
const To = Bt({ inner: !0 }, Pe.schema), js = new He("div", 1);
|
|
50097
50097
|
F(Ce.children(), (Ot) => js.append(Ot));
|
|
50098
50098
|
const Dt = To.serialize(js);
|
|
50099
50099
|
Dt && (dt.attr("data-mce-html", escape(Dt)), dt.empty());
|
|
@@ -50133,7 +50133,7 @@ function fhe() {
|
|
|
50133
50133
|
const Ot = ao[Dt];
|
|
50134
50134
|
if (!Ot.parent)
|
|
50135
50135
|
continue;
|
|
50136
|
-
const Ae = Ot.attr(To), Le = new
|
|
50136
|
+
const Ae = Ot.attr(To), Le = new He(Ae, 1);
|
|
50137
50137
|
if (Ae !== "audio") {
|
|
50138
50138
|
const Nn = Ot.attr("class");
|
|
50139
50139
|
Nn && Nn.indexOf("mce-preview-object") !== -1 && Ot.firstChild ? Le.attr({
|
|
@@ -50322,7 +50322,7 @@ function mhe() {
|
|
|
50322
50322
|
if (rn.call(A, I))
|
|
50323
50323
|
return !1;
|
|
50324
50324
|
return !0;
|
|
50325
|
-
}, Be = Array.prototype.indexOf,
|
|
50325
|
+
}, Be = Array.prototype.indexOf, He = Array.prototype.push, Bt = (A, I) => Be.call(A, I), ot = (A, I) => Bt(A, I) > -1, Jt = (A, I) => {
|
|
50326
50326
|
for (let ee = 0, me = A.length; ee < me; ee++) {
|
|
50327
50327
|
const Qe = A[ee];
|
|
50328
50328
|
if (I(Qe, ee))
|
|
@@ -50386,7 +50386,7 @@ function mhe() {
|
|
|
50386
50386
|
for (let ee = 0, me = A.length; ee < me; ++ee) {
|
|
50387
50387
|
if (!w(A[ee]))
|
|
50388
50388
|
throw new Error("Arr.flatten item " + ee + " was not an array, input: " + A);
|
|
50389
|
-
|
|
50389
|
+
He.apply(I, A[ee]);
|
|
50390
50390
|
}
|
|
50391
50391
|
return I;
|
|
50392
50392
|
}, Se = (A, I) => Je(ht(A, I)), Fn = (A, I) => {
|
|
@@ -52577,16 +52577,16 @@ function phe() {
|
|
|
52577
52577
|
}, Ft = (Ne, ze) => {
|
|
52578
52578
|
const Je = kt(Ne, ze).join("").replace(/\s/g, "");
|
|
52579
52579
|
return io(Je);
|
|
52580
|
-
}, Be = (Ne, ze) => () => ze(Ne.getBody(), Ne.schema),
|
|
52580
|
+
}, Be = (Ne, ze) => () => ze(Ne.getBody(), Ne.schema), He = (Ne, ze) => () => ze(Ne.selection.getRng().cloneContents(), Ne.schema), Bt = (Ne) => Be(Ne, It), ot = (Ne) => ({
|
|
52581
52581
|
body: {
|
|
52582
52582
|
getWordCount: Bt(Ne),
|
|
52583
52583
|
getCharacterCount: Be(Ne, Gt),
|
|
52584
52584
|
getCharacterCountWithoutSpaces: Be(Ne, Ft)
|
|
52585
52585
|
},
|
|
52586
52586
|
selection: {
|
|
52587
|
-
getWordCount:
|
|
52588
|
-
getCharacterCount:
|
|
52589
|
-
getCharacterCountWithoutSpaces:
|
|
52587
|
+
getWordCount: He(Ne, It),
|
|
52588
|
+
getCharacterCount: He(Ne, Gt),
|
|
52589
|
+
getCharacterCountWithoutSpaces: He(Ne, Ft)
|
|
52590
52590
|
},
|
|
52591
52591
|
getCount: Bt(Ne)
|
|
52592
52592
|
}), Jt = (Ne, ze) => {
|
|
@@ -52826,7 +52826,7 @@ function bhe() {
|
|
|
52826
52826
|
return $t;
|
|
52827
52827
|
}
|
|
52828
52828
|
return rn.none();
|
|
52829
|
-
}, Be = (fe, be, tt) => fe.isSome() && be.isSome() ? rn.some(tt(fe.getOrDie(), be.getOrDie())) : rn.none(),
|
|
52829
|
+
}, Be = (fe, be, tt) => fe.isSome() && be.isSome() ? rn.some(tt(fe.getOrDie(), be.getOrDie())) : rn.none(), He = (fe) => {
|
|
52830
52830
|
const be = u(rn.none()), tt = () => be.get().each(fe);
|
|
52831
52831
|
return {
|
|
52832
52832
|
clear: () => {
|
|
@@ -52838,8 +52838,8 @@ function bhe() {
|
|
|
52838
52838
|
tt(), be.set(rn.some(tr));
|
|
52839
52839
|
}
|
|
52840
52840
|
};
|
|
52841
|
-
}, Bt = () =>
|
|
52842
|
-
const fe =
|
|
52841
|
+
}, Bt = () => He((fe) => fe.unbind()), ot = () => {
|
|
52842
|
+
const fe = He(et);
|
|
52843
52843
|
return {
|
|
52844
52844
|
...fe,
|
|
52845
52845
|
on: (tt) => fe.get().each(tt)
|
|
@@ -53440,37 +53440,37 @@ var Gte = {}, Yte;
|
|
|
53440
53440
|
function yhe() {
|
|
53441
53441
|
return Yte || (Yte = 1, function() {
|
|
53442
53442
|
var u = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
53443
|
-
const o = (Be,
|
|
53444
|
-
const ot =
|
|
53443
|
+
const o = (Be, He, Bt) => {
|
|
53444
|
+
const ot = He === "UL" ? "InsertUnorderedList" : "InsertOrderedList";
|
|
53445
53445
|
Be.execCommand(ot, !1, Bt === !1 ? null : { "list-style-type": Bt });
|
|
53446
53446
|
}, i = (Be) => {
|
|
53447
|
-
Be.addCommand("ApplyUnorderedListStyle", (
|
|
53447
|
+
Be.addCommand("ApplyUnorderedListStyle", (He, Bt) => {
|
|
53448
53448
|
o(Be, "UL", Bt["list-style-type"]);
|
|
53449
|
-
}), Be.addCommand("ApplyOrderedListStyle", (
|
|
53449
|
+
}), Be.addCommand("ApplyOrderedListStyle", (He, Bt) => {
|
|
53450
53450
|
o(Be, "OL", Bt["list-style-type"]);
|
|
53451
53451
|
});
|
|
53452
|
-
}, c = (Be) => (
|
|
53453
|
-
const
|
|
53454
|
-
|
|
53452
|
+
}, c = (Be) => (He) => He.options.get(Be), h = (Be) => {
|
|
53453
|
+
const He = Be.options.register;
|
|
53454
|
+
He("advlist_number_styles", {
|
|
53455
53455
|
processor: "string[]",
|
|
53456
53456
|
default: "default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman".split(",")
|
|
53457
|
-
}),
|
|
53457
|
+
}), He("advlist_bullet_styles", {
|
|
53458
53458
|
processor: "string[]",
|
|
53459
53459
|
default: "default,circle,square".split(",")
|
|
53460
53460
|
});
|
|
53461
53461
|
}, m = c("advlist_number_styles"), O = c("advlist_bullet_styles"), w = (Be) => Be == null, T = (Be) => !w(Be);
|
|
53462
53462
|
class P {
|
|
53463
|
-
constructor(
|
|
53464
|
-
this.tag =
|
|
53463
|
+
constructor(He, Bt) {
|
|
53464
|
+
this.tag = He, this.value = Bt;
|
|
53465
53465
|
}
|
|
53466
|
-
static some(
|
|
53467
|
-
return new P(!0,
|
|
53466
|
+
static some(He) {
|
|
53467
|
+
return new P(!0, He);
|
|
53468
53468
|
}
|
|
53469
53469
|
static none() {
|
|
53470
53470
|
return P.singletonNone;
|
|
53471
53471
|
}
|
|
53472
|
-
fold(
|
|
53473
|
-
return this.tag ? Bt(this.value) :
|
|
53472
|
+
fold(He, Bt) {
|
|
53473
|
+
return this.tag ? Bt(this.value) : He();
|
|
53474
53474
|
}
|
|
53475
53475
|
isSome() {
|
|
53476
53476
|
return this.tag;
|
|
@@ -53478,40 +53478,40 @@ function yhe() {
|
|
|
53478
53478
|
isNone() {
|
|
53479
53479
|
return !this.tag;
|
|
53480
53480
|
}
|
|
53481
|
-
map(
|
|
53482
|
-
return this.tag ? P.some(
|
|
53481
|
+
map(He) {
|
|
53482
|
+
return this.tag ? P.some(He(this.value)) : P.none();
|
|
53483
53483
|
}
|
|
53484
|
-
bind(
|
|
53485
|
-
return this.tag ?
|
|
53484
|
+
bind(He) {
|
|
53485
|
+
return this.tag ? He(this.value) : P.none();
|
|
53486
53486
|
}
|
|
53487
|
-
exists(
|
|
53488
|
-
return this.tag &&
|
|
53487
|
+
exists(He) {
|
|
53488
|
+
return this.tag && He(this.value);
|
|
53489
53489
|
}
|
|
53490
|
-
forall(
|
|
53491
|
-
return !this.tag ||
|
|
53490
|
+
forall(He) {
|
|
53491
|
+
return !this.tag || He(this.value);
|
|
53492
53492
|
}
|
|
53493
|
-
filter(
|
|
53494
|
-
return !this.tag ||
|
|
53493
|
+
filter(He) {
|
|
53494
|
+
return !this.tag || He(this.value) ? this : P.none();
|
|
53495
53495
|
}
|
|
53496
|
-
getOr(
|
|
53497
|
-
return this.tag ? this.value :
|
|
53496
|
+
getOr(He) {
|
|
53497
|
+
return this.tag ? this.value : He;
|
|
53498
53498
|
}
|
|
53499
|
-
or(
|
|
53500
|
-
return this.tag ? this :
|
|
53499
|
+
or(He) {
|
|
53500
|
+
return this.tag ? this : He;
|
|
53501
53501
|
}
|
|
53502
|
-
getOrThunk(
|
|
53503
|
-
return this.tag ? this.value :
|
|
53502
|
+
getOrThunk(He) {
|
|
53503
|
+
return this.tag ? this.value : He();
|
|
53504
53504
|
}
|
|
53505
|
-
orThunk(
|
|
53506
|
-
return this.tag ? this :
|
|
53505
|
+
orThunk(He) {
|
|
53506
|
+
return this.tag ? this : He();
|
|
53507
53507
|
}
|
|
53508
|
-
getOrDie(
|
|
53508
|
+
getOrDie(He) {
|
|
53509
53509
|
if (this.tag)
|
|
53510
53510
|
return this.value;
|
|
53511
|
-
throw new Error(
|
|
53511
|
+
throw new Error(He ?? "Called getOrDie on None");
|
|
53512
53512
|
}
|
|
53513
|
-
static from(
|
|
53514
|
-
return T(
|
|
53513
|
+
static from(He) {
|
|
53514
|
+
return T(He) ? P.some(He) : P.none();
|
|
53515
53515
|
}
|
|
53516
53516
|
getOrNull() {
|
|
53517
53517
|
return this.tag ? this.value : null;
|
|
@@ -53519,8 +53519,8 @@ function yhe() {
|
|
|
53519
53519
|
getOrUndefined() {
|
|
53520
53520
|
return this.value;
|
|
53521
53521
|
}
|
|
53522
|
-
each(
|
|
53523
|
-
this.tag &&
|
|
53522
|
+
each(He) {
|
|
53523
|
+
this.tag && He(this.value);
|
|
53524
53524
|
}
|
|
53525
53525
|
toArray() {
|
|
53526
53526
|
return this.tag ? [this.value] : [];
|
|
@@ -53530,58 +53530,58 @@ function yhe() {
|
|
|
53530
53530
|
}
|
|
53531
53531
|
}
|
|
53532
53532
|
P.singletonNone = new P(!1);
|
|
53533
|
-
const R = Array.prototype.indexOf, F = (Be,
|
|
53533
|
+
const R = Array.prototype.indexOf, F = (Be, He) => R.call(Be, He), H = (Be, He) => F(Be, He) > -1, K = (Be, He, Bt) => {
|
|
53534
53534
|
for (let ot = 0, Jt = Be.length; ot < Jt; ot++) {
|
|
53535
53535
|
const Ge = Be[ot];
|
|
53536
|
-
if (
|
|
53536
|
+
if (He(Ge, ot))
|
|
53537
53537
|
return P.some(Ge);
|
|
53538
53538
|
if (Bt(Ge, ot))
|
|
53539
53539
|
break;
|
|
53540
53540
|
}
|
|
53541
53541
|
return P.none();
|
|
53542
|
-
}, he = Object.keys, Me = (Be,
|
|
53542
|
+
}, he = Object.keys, Me = (Be, He) => {
|
|
53543
53543
|
const Bt = he(Be);
|
|
53544
53544
|
for (let ot = 0, Jt = Bt.length; ot < Jt; ot++) {
|
|
53545
53545
|
const Ge = Bt[ot], ht = Be[Ge];
|
|
53546
|
-
|
|
53546
|
+
He(ht, Ge);
|
|
53547
53547
|
}
|
|
53548
|
-
}, we = (Be,
|
|
53548
|
+
}, we = (Be, He) => Te(Be, (Bt, ot) => ({
|
|
53549
53549
|
k: ot,
|
|
53550
|
-
v:
|
|
53551
|
-
})), Te = (Be,
|
|
53550
|
+
v: He(Bt, ot)
|
|
53551
|
+
})), Te = (Be, He) => {
|
|
53552
53552
|
const Bt = {};
|
|
53553
53553
|
return Me(Be, (ot, Jt) => {
|
|
53554
|
-
const Ge =
|
|
53554
|
+
const Ge = He(ot, Jt);
|
|
53555
53555
|
Bt[Ge.k] = Ge.v;
|
|
53556
53556
|
}), Bt;
|
|
53557
53557
|
};
|
|
53558
53558
|
var et = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
53559
|
-
const le = (Be) => /\btox\-/.test(Be.className), Xe = (Be,
|
|
53560
|
-
const
|
|
53559
|
+
const le = (Be) => /\btox\-/.test(Be.className), Xe = (Be, He) => Be.dom.isChildOf(He, Be.getBody()), qt = (Be) => (He) => T(He) && Be.test(He.nodeName), at = qt(/^(OL|UL|DL)$/), te = qt(/^(TH|TD)$/), _t = (Be, He, Bt) => K(He, (ot) => at(ot) && !le(ot), te).exists((ot) => ot.nodeName === Bt && Xe(Be, ot)), rn = (Be) => {
|
|
53560
|
+
const He = Be.dom.getParent(Be.selection.getNode(), "ol,ul"), Bt = Be.dom.getStyle(He, "listStyleType");
|
|
53561
53561
|
return P.from(Bt);
|
|
53562
|
-
}, dn = (Be,
|
|
53563
|
-
const Bt = Be.dom.getParent(
|
|
53562
|
+
}, dn = (Be, He) => He !== null && !Be.dom.isEditable(He), je = (Be, He) => {
|
|
53563
|
+
const Bt = Be.dom.getParent(He, "ol,ul,dl");
|
|
53564
53564
|
return dn(Be, Bt) || !Be.selection.isEditable();
|
|
53565
|
-
}, Oe = (Be,
|
|
53565
|
+
}, Oe = (Be, He) => {
|
|
53566
53566
|
const Bt = Be.selection.getNode();
|
|
53567
|
-
return
|
|
53567
|
+
return He({
|
|
53568
53568
|
parents: Be.dom.getParents(Bt),
|
|
53569
53569
|
element: Bt
|
|
53570
|
-
}), Be.on("NodeChange",
|
|
53571
|
-
}, Yn = (Be) => Be.replace(/\-/g, " ").replace(/\b\w/g, (
|
|
53570
|
+
}), Be.on("NodeChange", He), () => Be.off("NodeChange", He);
|
|
53571
|
+
}, Yn = (Be) => Be.replace(/\-/g, " ").replace(/\b\w/g, (He) => He.toUpperCase()), ut = (Be) => w(Be) || Be === "default" ? "" : Be, kt = (Be, He) => (Bt) => {
|
|
53572
53572
|
const ot = (Ge, ht) => {
|
|
53573
53573
|
const Y = Ge.selection.getStart(!0);
|
|
53574
|
-
Bt.setActive(_t(Ge, ht,
|
|
53574
|
+
Bt.setActive(_t(Ge, ht, He)), Bt.setEnabled(!je(Ge, Y));
|
|
53575
53575
|
};
|
|
53576
53576
|
return Oe(Be, (Ge) => ot(Be, Ge.parents));
|
|
53577
|
-
}, Q = (Be,
|
|
53577
|
+
}, Q = (Be, He, Bt, ot, Jt, Ge) => {
|
|
53578
53578
|
const ht = {
|
|
53579
53579
|
"lower-latin": "lower-alpha",
|
|
53580
53580
|
"upper-latin": "upper-alpha",
|
|
53581
53581
|
"lower-alpha": "lower-latin",
|
|
53582
53582
|
"upper-alpha": "upper-latin"
|
|
53583
53583
|
}, Y = we(ht, (ss) => H(Ge, ss));
|
|
53584
|
-
Be.ui.registry.addSplitButton(
|
|
53584
|
+
Be.ui.registry.addSplitButton(He, {
|
|
53585
53585
|
tooltip: Bt,
|
|
53586
53586
|
icon: Jt === "OL" ? "ordered-list" : "unordered-list",
|
|
53587
53587
|
presets: "listpreview",
|
|
@@ -53605,16 +53605,16 @@ function yhe() {
|
|
|
53605
53605
|
select: (ss) => rn(Be).exists((xo) => ss === xo || ht[xo] === ss && !Y[ss]),
|
|
53606
53606
|
onSetup: kt(Be, Jt)
|
|
53607
53607
|
});
|
|
53608
|
-
}, io = (Be,
|
|
53609
|
-
Be.ui.registry.addToggleButton(
|
|
53608
|
+
}, io = (Be, He, Bt, ot, Jt, Ge) => {
|
|
53609
|
+
Be.ui.registry.addToggleButton(He, {
|
|
53610
53610
|
active: !1,
|
|
53611
53611
|
tooltip: Bt,
|
|
53612
53612
|
icon: Jt === "OL" ? "ordered-list" : "unordered-list",
|
|
53613
53613
|
onSetup: kt(Be, Jt),
|
|
53614
53614
|
onAction: () => Be.queryCommandState(ot) || Ge === "" ? Be.execCommand(ot) : o(Be, Jt, Ge)
|
|
53615
53615
|
});
|
|
53616
|
-
}, It = (Be,
|
|
53617
|
-
Ge.length > 1 ? Q(Be,
|
|
53616
|
+
}, It = (Be, He, Bt, ot, Jt, Ge) => {
|
|
53617
|
+
Ge.length > 1 ? Q(Be, He, Bt, ot, Jt, Ge) : io(Be, He, Bt, ot, Jt, ut(Ge[0]));
|
|
53618
53618
|
}, Gt = (Be) => {
|
|
53619
53619
|
It(Be, "numlist", "Numbered list", "InsertOrderedList", "OL", m(Be)), It(Be, "bullist", "Bullet list", "InsertUnorderedList", "UL", O(Be));
|
|
53620
53620
|
};
|
|
@@ -54505,7 +54505,7 @@ function xhe() {
|
|
|
54505
54505
|
}, Ft = Gt, Be = (ot) => {
|
|
54506
54506
|
const Jt = io(ot, 0);
|
|
54507
54507
|
Me(Jt) && It(ot, Jt);
|
|
54508
|
-
},
|
|
54508
|
+
}, He = (ot) => {
|
|
54509
54509
|
ot.on("keydown", (Jt) => {
|
|
54510
54510
|
Jt.keyCode === 13 && !Jt.isDefaultPrevented() && Be(ot);
|
|
54511
54511
|
}), ot.on("keyup", (Jt) => {
|
|
@@ -54514,7 +54514,7 @@ function xhe() {
|
|
|
54514
54514
|
};
|
|
54515
54515
|
var Bt = () => {
|
|
54516
54516
|
u.add("autolink", (ot) => {
|
|
54517
|
-
c(ot),
|
|
54517
|
+
c(ot), He(ot);
|
|
54518
54518
|
});
|
|
54519
54519
|
};
|
|
54520
54520
|
Bt();
|
|
@@ -55865,7 +55865,7 @@ function She() {
|
|
|
55865
55865
|
ze = Fn;
|
|
55866
55866
|
}
|
|
55867
55867
|
};
|
|
55868
|
-
},
|
|
55868
|
+
}, He = (Ne, ze) => {
|
|
55869
55869
|
let Je = null;
|
|
55870
55870
|
const Se = () => {
|
|
55871
55871
|
P(Je) || (clearTimeout(Je), Je = null);
|
|
@@ -55916,7 +55916,7 @@ function She() {
|
|
|
55916
55916
|
const Fs = Ge(Rr, is);
|
|
55917
55917
|
rs.setData({ results: Fs });
|
|
55918
55918
|
});
|
|
55919
|
-
}, ur =
|
|
55919
|
+
}, ur = He((rs) => {
|
|
55920
55920
|
const is = rs.getData().pattern;
|
|
55921
55921
|
Ps(rs, is);
|
|
55922
55922
|
}, 40), Ko = ze.length === 1 ? Fn() : yo(), Us = {
|
|
@@ -66367,21 +66367,21 @@ function nge(u) {
|
|
|
66367
66367
|
throw new RangeError(`Unrecognized record size: ${ut}`);
|
|
66368
66368
|
let io = T[je], It, Gt, Ft = Oe - qt;
|
|
66369
66369
|
if (Yn - Oe <= h && (Gt = we(w.pos - at, rn))) {
|
|
66370
|
-
let Be = new Uint16Array(Gt.size - Gt.skip),
|
|
66371
|
-
for (; w.pos >
|
|
66370
|
+
let Be = new Uint16Array(Gt.size - Gt.skip), He = w.pos - Gt.size, Bt = Be.length;
|
|
66371
|
+
for (; w.pos > He; )
|
|
66372
66372
|
Bt = Te(Gt.start, Be, Bt);
|
|
66373
66373
|
It = new O2(Be, Yn - Gt.start, c), Ft = Gt.start - qt;
|
|
66374
66374
|
} else {
|
|
66375
66375
|
let Be = w.pos - ut;
|
|
66376
66376
|
w.next();
|
|
66377
|
-
let
|
|
66377
|
+
let He = [], Bt = [], ot = je >= O ? je : -1, Jt = 0, Ge = Yn;
|
|
66378
66378
|
for (; w.pos > Be; )
|
|
66379
|
-
ot >= 0 && w.id == ot && w.size >= 0 ? (w.end <= Ge - h && (he(
|
|
66380
|
-
if (ot >= 0 && Jt > 0 && Jt <
|
|
66379
|
+
ot >= 0 && w.id == ot && w.size >= 0 ? (w.end <= Ge - h && (he(He, Bt, Oe, Jt, w.end, Ge, ot, kt, Q), Jt = He.length, Ge = w.end), w.next()) : dn > 2500 ? H(Oe, Be, He, Bt) : F(Oe, Be, He, Bt, ot, dn + 1);
|
|
66380
|
+
if (ot >= 0 && Jt > 0 && Jt < He.length && he(He, Bt, Oe, Jt, Oe, Ge, ot, kt, Q), He.reverse(), Bt.reverse(), ot > -1 && Jt > 0) {
|
|
66381
66381
|
let ht = K(io, Q);
|
|
66382
|
-
It = EJ(io,
|
|
66382
|
+
It = EJ(io, He, Bt, 0, He.length, 0, Yn - Oe, ht, ht);
|
|
66383
66383
|
} else
|
|
66384
|
-
It = Me(io,
|
|
66384
|
+
It = Me(io, He, Bt, Yn - Oe, kt - Yn, Q);
|
|
66385
66385
|
}
|
|
66386
66386
|
te.push(It), _t.push(Ft);
|
|
66387
66387
|
}
|