golden-logic-ui 1.0.633 → 1.0.634
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 +537 -537
- package/dist/golden-logic-ui.umd.cjs +24 -24
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -701,9 +701,9 @@ const _xe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
701
701
|
});
|
|
702
702
|
const _e = Iu(() => {
|
|
703
703
|
const Kt = [], It = new RegExp(R.value, "ig");
|
|
704
|
-
for (const
|
|
705
|
-
const st = String(
|
|
706
|
-
(R.value.length < 1 || st.match(It)) && Kt.length < i.maxItem && Kt.push(
|
|
704
|
+
for (const pe of O.value) {
|
|
705
|
+
const st = String(pe.name);
|
|
706
|
+
(R.value.length < 1 || st.match(It)) && Kt.length < i.maxItem && Kt.push(pe);
|
|
707
707
|
}
|
|
708
708
|
return Kt;
|
|
709
709
|
});
|
|
@@ -724,9 +724,9 @@ const _xe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
724
724
|
let Kt = (/* @__PURE__ */ new Date()).getTime();
|
|
725
725
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
|
|
726
726
|
/[xy]/g,
|
|
727
|
-
function(
|
|
727
|
+
function(pe) {
|
|
728
728
|
const st = (Kt + Math.random() * 16) % 16 | 0;
|
|
729
|
-
return Kt = Math.floor(Kt / 16), (
|
|
729
|
+
return Kt = Math.floor(Kt / 16), (pe === "x" ? st : st & 3 | 8).toString(16);
|
|
730
730
|
}
|
|
731
731
|
);
|
|
732
732
|
}
|
|
@@ -746,19 +746,19 @@ const _xe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
746
746
|
m.value = [], c("update:modelValue", []), c("selected", []), c("selectionChanged", []);
|
|
747
747
|
}
|
|
748
748
|
function sn(Kt) {
|
|
749
|
-
let It = m.value.findIndex((
|
|
750
|
-
It !== -1 && m.value.splice(It, 1), w.value = m.value.map((
|
|
749
|
+
let It = m.value.findIndex((pe) => pe.id === Kt.id);
|
|
750
|
+
It !== -1 && m.value.splice(It, 1), w.value = m.value.map((pe) => pe.id), c("update:modelValue", w.value), c("selected", m.value), c("selectionChanged", m.value);
|
|
751
751
|
}
|
|
752
752
|
function dn(Kt) {
|
|
753
753
|
Kt.target.id != i.field_name + "search" + F.value && Kt.target.id != i.field_name && !Kt.target.classList.contains("showOptions") && (Lt(), T.value = 0, P.value = !1);
|
|
754
754
|
}
|
|
755
755
|
function We(Kt) {
|
|
756
|
-
const It = `${Kt}${F.value}`,
|
|
757
|
-
|
|
756
|
+
const It = `${Kt}${F.value}`, pe = document.getElementById(It);
|
|
757
|
+
pe && pe.scrollIntoView();
|
|
758
758
|
}
|
|
759
759
|
function ve(Kt) {
|
|
760
|
-
const It = `${Kt}${F.value}`,
|
|
761
|
-
|
|
760
|
+
const It = `${Kt}${F.value}`, pe = document.getElementById(It);
|
|
761
|
+
pe && pe.click();
|
|
762
762
|
}
|
|
763
763
|
function Yn(Kt) {
|
|
764
764
|
Kt === "ArrowDown" && T.value < _e.value.length && (T.value++, We(T.value)), Kt === "ArrowUp" && T.value > 1 && (T.value--, We(T.value)), Kt === "Enter" && ve(T.value);
|
|
@@ -789,8 +789,8 @@ const _xe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
789
789
|
) || [];
|
|
790
790
|
}
|
|
791
791
|
function Q(Kt) {
|
|
792
|
-
let It = m.value.findIndex((
|
|
793
|
-
It !== -1 ? m.value.splice(It, 1) : m.value.push(Kt), P.value = !1, w.value = m.value.map((
|
|
792
|
+
let It = m.value.findIndex((pe) => pe.id === Kt.id);
|
|
793
|
+
It !== -1 ? m.value.splice(It, 1) : m.value.push(Kt), P.value = !1, w.value = m.value.map((pe) => pe.id), c("update:modelValue", w.value), c("selected", m.value), c("selectionChanged", m.value);
|
|
794
794
|
}
|
|
795
795
|
function io() {
|
|
796
796
|
if (!i.show) {
|
|
@@ -815,8 +815,8 @@ const _xe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
815
815
|
}), Lu(m, (Kt) => {
|
|
816
816
|
if (Xe(Kt)) {
|
|
817
817
|
w.value = Kt.map((st) => st.id);
|
|
818
|
-
const It = Array.isArray(w.value) ? w.value : [],
|
|
819
|
-
JSON.stringify(It) !== JSON.stringify(
|
|
818
|
+
const It = Array.isArray(w.value) ? w.value : [], pe = Array.isArray(i.modelValue) ? i.modelValue : [];
|
|
819
|
+
JSON.stringify(It) !== JSON.stringify(pe) && c("update:modelValue", w.value);
|
|
820
820
|
}
|
|
821
821
|
}), Lu(
|
|
822
822
|
() => i.modelValue,
|
|
@@ -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
|
), (Kt, It) => {
|
|
834
|
-
var
|
|
834
|
+
var pe, st;
|
|
835
835
|
return Ce(), Pe(Qo, null, [
|
|
836
836
|
u.show ? (Ce(), Pe("div", {
|
|
837
837
|
key: 0,
|
|
@@ -866,7 +866,7 @@ const _xe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
866
866
|
onClick: te,
|
|
867
867
|
type: "button",
|
|
868
868
|
class: "px-4 py-0 text-sm font-medium text-gray-900 bg-transparent border border-gray-900 ltr:rounded-tl-lg rtl:rounded-tr-lg 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"
|
|
869
|
-
}, Rt(((
|
|
869
|
+
}, Rt(((pe = u.language) == null ? void 0 : pe.select_all) ?? "Select all"), 1),
|
|
870
870
|
Z("button", {
|
|
871
871
|
onClick: At,
|
|
872
872
|
type: "button",
|
|
@@ -3248,28 +3248,28 @@ 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([]), Be = Mo([]), xe = Mo(null), _e = Mo(null), Je = (
|
|
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([]), Be = Mo([]), xe = Mo(null), _e = Mo(null), Je = (pe) => {
|
|
3252
|
+
console.log("Tab key pressed!", pe.key), pe.key === "Tab" && (pe.preventDefault(), console.log("Tab key pressed!"), at());
|
|
3253
|
+
}, le = async (pe = "down", st = !1) => {
|
|
3254
3254
|
if (!R.value) {
|
|
3255
3255
|
R.value = !0;
|
|
3256
3256
|
try {
|
|
3257
|
-
const jt =
|
|
3257
|
+
const jt = pe === "up" ? Math.max(F.value - 1, K) : F.value, { data: rt } = await axios.get(i.api_url, {
|
|
3258
3258
|
params: { search: T.value, page: jt, per_page: 20 }
|
|
3259
3259
|
});
|
|
3260
3260
|
let rn = Q(rt.data);
|
|
3261
|
-
|
|
3261
|
+
pe === "down" && (he.value.push(...rn), F.value++, H.value = rt.last_page), H.value || (H.value = rt.last_page), K.value || (K.value = 1), h.value = te(), st && (T.value = "", he.value = []);
|
|
3262
3262
|
} catch (jt) {
|
|
3263
3263
|
console.error("Error fetching data:", jt);
|
|
3264
3264
|
}
|
|
3265
3265
|
R.value = !1;
|
|
3266
3266
|
}
|
|
3267
|
-
}, Xe = (
|
|
3268
|
-
if (!
|
|
3269
|
-
const st =
|
|
3267
|
+
}, Xe = (pe) => {
|
|
3268
|
+
if (!pe.target) return;
|
|
3269
|
+
const st = pe.target.scrollTop, jt = pe.target.scrollHeight - pe.target.clientHeight <= st + 10, rt = st <= 10;
|
|
3270
3270
|
jt && F.value <= H.value && le("down"), rt && F.value > K.value;
|
|
3271
|
-
}, qt = (
|
|
3272
|
-
console.log("Tab key pressed!",
|
|
3271
|
+
}, qt = (pe) => {
|
|
3272
|
+
console.log("Tab key pressed!", pe.target.id), console.log("Tab key pressed!", pe.target.form), pe.key === "Tab" && !pe.target.classList.contains("showOptions") && (It(), O.value = 0, w.value = !1), pe.key === "Enter" && pe.target.form && (console.log("Enter key pressed! enter ", pe.target.id), pe.preventDefault());
|
|
3273
3273
|
}, at = () => {
|
|
3274
3274
|
if (!i.show) {
|
|
3275
3275
|
if (w.value) {
|
|
@@ -3277,20 +3277,20 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3277
3277
|
return;
|
|
3278
3278
|
}
|
|
3279
3279
|
T.value = "", w.value = !0, i.api_url && he.value.length === 0 && le("down"), zF(() => {
|
|
3280
|
-
var
|
|
3280
|
+
var pe = document.getElementById(
|
|
3281
3281
|
`${i.field_name}search${P.value}`
|
|
3282
3282
|
);
|
|
3283
|
-
|
|
3283
|
+
pe && pe.focus();
|
|
3284
3284
|
});
|
|
3285
3285
|
}
|
|
3286
3286
|
}, te = () => We(h.value) ? typeof h.value == "object" ? he.value.find(
|
|
3287
|
-
(
|
|
3287
|
+
(pe) => String(pe.id) === String(h.value.id)
|
|
3288
3288
|
) || {} : he.value.find(
|
|
3289
|
-
(
|
|
3289
|
+
(pe) => String(pe.id) === String(h.value)
|
|
3290
3290
|
) || {} : i.modelValue ? typeof i.modelValue == "object" ? he.value.find(
|
|
3291
|
-
(
|
|
3291
|
+
(pe) => String(pe.id) === String(i.modelValue.id)
|
|
3292
3292
|
) || {} : he.value.find(
|
|
3293
|
-
(
|
|
3293
|
+
(pe) => String(pe.id) === String(i.modelValue)
|
|
3294
3294
|
) || {} : {};
|
|
3295
3295
|
Fh(() => {
|
|
3296
3296
|
P.value = dn(), i.show || (document.body.addEventListener("click", ve), document.addEventListener("keydown", qt));
|
|
@@ -3298,61 +3298,61 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3298
3298
|
document.body.removeEventListener("click", ve), document.removeEventListener("keydown", qt);
|
|
3299
3299
|
});
|
|
3300
3300
|
function At() {
|
|
3301
|
-
const
|
|
3301
|
+
const pe = [], st = T.value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), jt = new RegExp(st, "ig");
|
|
3302
3302
|
for (const rt of Be.value) {
|
|
3303
3303
|
const rn = String(rt.name);
|
|
3304
|
-
(T.value.length < 1 || rn.match(jt)) &&
|
|
3304
|
+
(T.value.length < 1 || rn.match(jt)) && pe.length < i.maxItem && pe.push(rt);
|
|
3305
3305
|
}
|
|
3306
|
-
return
|
|
3306
|
+
return pe;
|
|
3307
3307
|
}
|
|
3308
|
-
function sn(
|
|
3308
|
+
function sn(pe) {
|
|
3309
3309
|
if ([
|
|
3310
3310
|
"ArrowLeft",
|
|
3311
3311
|
"ArrowUp",
|
|
3312
3312
|
"ArrowRight",
|
|
3313
3313
|
"ArrowDown",
|
|
3314
3314
|
"Enter"
|
|
3315
|
-
].includes(
|
|
3316
|
-
if (["ArrowUp", "ArrowDown"].includes(
|
|
3315
|
+
].includes(pe.key)) {
|
|
3316
|
+
if (["ArrowUp", "ArrowDown"].includes(pe.key) && pe.preventDefault(), pe.key === "ArrowDown" && i.posts === "")
|
|
3317
3317
|
return;
|
|
3318
|
-
kt(
|
|
3318
|
+
kt(pe.key);
|
|
3319
3319
|
}
|
|
3320
3320
|
}
|
|
3321
3321
|
function dn() {
|
|
3322
|
-
let
|
|
3322
|
+
let pe = (/* @__PURE__ */ new Date()).getTime();
|
|
3323
3323
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
|
|
3324
3324
|
/[xy]/g,
|
|
3325
3325
|
function(jt) {
|
|
3326
|
-
const rt = (
|
|
3327
|
-
return
|
|
3326
|
+
const rt = (pe + Math.random() * 16) % 16 | 0;
|
|
3327
|
+
return pe = Math.floor(pe / 16), (jt === "x" ? rt : rt & 3 | 8).toString(16);
|
|
3328
3328
|
}
|
|
3329
3329
|
);
|
|
3330
3330
|
}
|
|
3331
|
-
function We(
|
|
3332
|
-
return
|
|
3331
|
+
function We(pe) {
|
|
3332
|
+
return pe && typeof pe == "object" && Object.keys(pe).length > 0;
|
|
3333
3333
|
}
|
|
3334
|
-
function ve(
|
|
3335
|
-
|
|
3334
|
+
function ve(pe) {
|
|
3335
|
+
pe.target.id != i.field_name + "search" + P.value && pe.target.id != i.field_name && !pe.target.classList.contains("showOptions") && (It(), O.value = 0, w.value = !1);
|
|
3336
3336
|
}
|
|
3337
|
-
function Yn(
|
|
3338
|
-
const st = `${
|
|
3337
|
+
function Yn(pe) {
|
|
3338
|
+
const st = `${pe}${P.value}`, jt = document.getElementById(st);
|
|
3339
3339
|
jt && jt.scrollIntoView();
|
|
3340
3340
|
}
|
|
3341
|
-
function dt(
|
|
3342
|
-
const st = `${
|
|
3341
|
+
function dt(pe) {
|
|
3342
|
+
const st = `${pe}${P.value}`, jt = document.getElementById(st);
|
|
3343
3343
|
jt && jt.click();
|
|
3344
3344
|
}
|
|
3345
|
-
function kt(
|
|
3346
|
-
|
|
3345
|
+
function kt(pe) {
|
|
3346
|
+
pe === "ArrowDown" && O.value < he.value.length && (O.value++, Yn(O.value)), pe === "ArrowUp" && O.value > 1 && (O.value--, Yn(O.value)), pe === "Enter" && dt(O.value);
|
|
3347
3347
|
}
|
|
3348
|
-
function Q(
|
|
3349
|
-
return
|
|
3348
|
+
function Q(pe) {
|
|
3349
|
+
return pe.map((st, jt) => typeof st == "object" ? st : { id: st, name: st });
|
|
3350
3350
|
}
|
|
3351
3351
|
function io() {
|
|
3352
|
-
return i.options.map((
|
|
3352
|
+
return i.options.map((pe, st) => typeof pe == "object" ? pe : { id: pe, name: pe });
|
|
3353
3353
|
}
|
|
3354
|
-
function Lt(
|
|
3355
|
-
m.value = !0, h.value =
|
|
3354
|
+
function Lt(pe) {
|
|
3355
|
+
m.value = !0, h.value = pe, w.value = !1, c("update:modelValue", h.value.id), c("selected", h.value), c("selectionChanged", h.value);
|
|
3356
3356
|
}
|
|
3357
3357
|
function Kt() {
|
|
3358
3358
|
i.show || (h.value = {}, T.value = "", c("update:modelValue", ""), at());
|
|
@@ -3360,14 +3360,14 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3360
3360
|
function It() {
|
|
3361
3361
|
(!h.value || !h.value.id) && (h.value = {}, T.value = ""), c("selected", h.value);
|
|
3362
3362
|
}
|
|
3363
|
-
return Lu(T, (
|
|
3363
|
+
return Lu(T, (pe) => {
|
|
3364
3364
|
i.api_url ? (F.value = 1, H.value = null, K.value = 1, he.value = [], le("down")) : he.value = At(), he.value.length === 0 && (h.value = {});
|
|
3365
|
-
}), Lu(h, (
|
|
3366
|
-
We(
|
|
3365
|
+
}), Lu(h, (pe) => {
|
|
3366
|
+
We(pe) && pe && pe.id !== i.modelValue && c("update:modelValue", pe.id);
|
|
3367
3367
|
}), Lu(
|
|
3368
3368
|
() => i.modelValue,
|
|
3369
|
-
(
|
|
3370
|
-
|
|
3369
|
+
(pe) => {
|
|
3370
|
+
pe ? (h.value = i.modelValue, i.api_url && m.value == !1 ? (T.value = h.value, le("down", !0)) : h.value = te()) : h.value = {};
|
|
3371
3371
|
},
|
|
3372
3372
|
{ immediate: !0, deep: !0 }
|
|
3373
3373
|
), Lu(
|
|
@@ -3376,7 +3376,7 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3376
3376
|
i.api_url || (he.value = Be.value = io()), h.value = te();
|
|
3377
3377
|
},
|
|
3378
3378
|
{ immediate: !0, deep: !0 }
|
|
3379
|
-
), (
|
|
3379
|
+
), (pe, st) => {
|
|
3380
3380
|
var jt, rt, rn;
|
|
3381
3381
|
return Ce(), Pe(Qo, null, [
|
|
3382
3382
|
u.show ? (Ce(), Pe("div", {
|
|
@@ -3745,7 +3745,7 @@ function ihe() {
|
|
|
3745
3745
|
return !1;
|
|
3746
3746
|
}, kt = () => {
|
|
3747
3747
|
}, Q = (e, n) => (...s) => e(n.apply(null, s)), io = (e, n) => (s) => e(n(s)), Lt = (e) => () => e, Kt = (e) => e, It = (e, n) => e === n;
|
|
3748
|
-
function
|
|
3748
|
+
function pe(e, ...n) {
|
|
3749
3749
|
return (...s) => {
|
|
3750
3750
|
const a = n.concat(s);
|
|
3751
3751
|
return e.apply(null, a);
|
|
@@ -4602,7 +4602,7 @@ function ihe() {
|
|
|
4602
4602
|
e(s) && n(Yh(s));
|
|
4603
4603
|
}, M = (e, n, s, a, d) => {
|
|
4604
4604
|
const p = jm(s, a);
|
|
4605
|
-
return e.dom.addEventListener(n, p, d), { unbind:
|
|
4605
|
+
return e.dom.addEventListener(n, p, d), { unbind: pe(ne, e, n, p, d) };
|
|
4606
4606
|
}, U = (e, n, s, a) => M(e, n, s, a, !1), ne = (e, n, s, a) => {
|
|
4607
4607
|
e.dom.removeEventListener(n, s, a);
|
|
4608
4608
|
}, $e = (e, n) => ({
|
|
@@ -4768,7 +4768,7 @@ function ihe() {
|
|
|
4768
4768
|
checkRootAsContent: !1
|
|
4769
4769
|
}, gc = (e, n, s) => {
|
|
4770
4770
|
const a = Me.fromDom(n), d = Me.fromDom(e), p = s.getWhitespaceElements();
|
|
4771
|
-
return r0(d, (C) => jn(p, Oe(C)),
|
|
4771
|
+
return r0(d, (C) => jn(p, Oe(C)), pe(ks, a));
|
|
4772
4772
|
}, $s = (e) => pn(e) && e.nodeName === "A" && !e.hasAttribute("href") && (e.hasAttribute("name") || e.hasAttribute("id")), xd = (e, n) => pn(e) && jn(n.getNonEmptyElements(), e.nodeName), Wg = ef("data-mce-bookmark"), ti = (e) => Vm(Me.fromDom(e)).exists((n) => !iu(n)), d0 = (e, n, s) => Zc(e.data) && !gc(e, n, s), ah = (e, n, s, a) => Wt(e) && !d0(e, n, s) && (!a.includeZwsp || !Kh(e.data)), jg = (e, n, s, a) => ve(a.isContent) && a.isContent(n) || xd(n, e) || Wg(n) || $s(n) || ah(n, s, e, a) || Ds(n) || $t(n) && ti(n), Ai = (e, n, s) => {
|
|
4773
4773
|
const a = {
|
|
4774
4774
|
...U1,
|
|
@@ -7058,7 +7058,7 @@ function ihe() {
|
|
|
7058
7058
|
id: d,
|
|
7059
7059
|
forward: $
|
|
7060
7060
|
};
|
|
7061
|
-
}, fy = (e, n, s = !1) => n === 2 ? xl(mu, s, e) : n === 3 ? pu(e) : n ? Ik(e) : W2(e, !1), my =
|
|
7061
|
+
}, fy = (e, n, s = !1) => n === 2 ? xl(mu, s, e) : n === 3 ? pu(e) : n ? Ik(e) : W2(e, !1), my = pe(xl, Kt, !0), Qk = (e) => {
|
|
7062
7062
|
const n = (p) => p(e), s = Lt(e), a = () => d, d = {
|
|
7063
7063
|
tag: !0,
|
|
7064
7064
|
inner: e,
|
|
@@ -8071,9 +8071,9 @@ Required: ` + n.join(", "));
|
|
|
8071
8071
|
d = d.parentNode;
|
|
8072
8072
|
}
|
|
8073
8073
|
return null;
|
|
8074
|
-
}, Q0 =
|
|
8074
|
+
}, Q0 = pe(bm, !0), wp = pe(bm, !1), Zy = (e, n, s) => {
|
|
8075
8075
|
let a;
|
|
8076
|
-
const d =
|
|
8076
|
+
const d = pe(Pd, !0, n), p = pe(Pd, !1, n), v = s.startContainer, C = s.startOffset;
|
|
8077
8077
|
if (rg(v)) {
|
|
8078
8078
|
const $ = Mb(v) ? v.parentNode : v, B = $.getAttribute("data-mce-caret");
|
|
8079
8079
|
if (B === "before" && (a = $.nextSibling, Ab(a)))
|
|
@@ -8196,7 +8196,7 @@ Required: ` + n.join(", "));
|
|
|
8196
8196
|
}, fg = (e, n, s) => vu(e, n, s).bind((a) => $d(s, a, n) && Sp(e, s, a) ? vu(e, n, a) : Y.some(a)), wh = (e, n, s, a) => fg(e, n, s).bind((d) => a(d) ? wh(e, n, d, a) : Y.some(d)), Dd = (e, n) => {
|
|
8197
8197
|
const s = e ? n.firstChild : n.lastChild;
|
|
8198
8198
|
return Wt(s) ? Y.some(St(s, e ? 0 : s.data.length)) : s ? vh(s) ? Y.some(e ? St.before(s) : Uy(s)) : wC(e, n, s) : Y.none();
|
|
8199
|
-
}, Cl =
|
|
8199
|
+
}, Cl = pe(vu, !0), dl = pe(vu, !1), ha = pe(Dd, !0), Rd = pe(Dd, !1), Wy = "_mce_caret", wu = (e) => pn(e) && e.id === Wy, kp = (e, n) => {
|
|
8200
8200
|
let s = n;
|
|
8201
8201
|
for (; s && s !== e; ) {
|
|
8202
8202
|
if (wu(s))
|
|
@@ -8315,7 +8315,7 @@ Required: ` + n.join(", "));
|
|
|
8315
8315
|
const n = e.endContainer, s = e.endOffset;
|
|
8316
8316
|
return Wt(n) ? s === n.data.length ? Y.some(Me.fromDom(n)) : Y.none() : Y.from(n.childNodes[s - 1]).map(Me.fromDom);
|
|
8317
8317
|
}, Rw = (e) => Ic(e).fold(Lt([e]), (n) => [e].concat(Rw(n))), z0 = (e) => nl(e).fold(Lt([e]), (n) => Oe(n) === "br" ? bd(n).map((s) => [e].concat(z0(s))).getOr([]) : [e].concat(z0(n))), Mw = (e, n) => Br(Ep(n), SM(n), (s, a) => {
|
|
8318
|
-
const d = Ko(Rw(e),
|
|
8318
|
+
const d = Ko(Rw(e), pe(ks, s)), p = Ko(z0(e), pe(ks, a));
|
|
8319
8319
|
return d.isSome() && p.isSome();
|
|
8320
8320
|
}).getOr(!1), Bw = (e, n, s, a) => {
|
|
8321
8321
|
const d = s, p = new Na(s, d), v = Ts(e.schema.getMoveCaretBeforeOnEnterElements(), ($, B) => !Ne([
|
|
@@ -8678,8 +8678,8 @@ Required: ` + n.join(", "));
|
|
|
8678
8678
|
}
|
|
8679
8679
|
};
|
|
8680
8680
|
}, xh = (e) => ({
|
|
8681
|
-
getBookmark:
|
|
8682
|
-
moveToBookmark:
|
|
8681
|
+
getBookmark: pe(qy, e),
|
|
8682
|
+
moveToBookmark: pe(Dw, e)
|
|
8683
8683
|
});
|
|
8684
8684
|
xh.isBookmarkNode = Uc;
|
|
8685
8685
|
const HC = (e, n, s) => s.collapsed ? !1 : ze(s.getClientRects(), (a) => G4(a, e, n)), UC = () => Me.fromDom(document), jw = (e, n = !1) => e.dom.focus({ preventScroll: n }), ov = (e) => {
|
|
@@ -8835,7 +8835,7 @@ Required: ` + n.join(", "));
|
|
|
8835
8835
|
}, y = (e, n) => {
|
|
8836
8836
|
e.focusedEditor === n.editor && (e.focusedEditor = null), !e.activeEditor && G0 && (nx.unbind(document, "focusin", G0), G0 = null);
|
|
8837
8837
|
}, k = (e) => {
|
|
8838
|
-
e.on("AddEditor",
|
|
8838
|
+
e.on("AddEditor", pe(g, e)), e.on("RemoveEditor", pe(y, e));
|
|
8839
8839
|
}, _ = (e, n) => e.dom.getParent(n, (s) => e.dom.getContentEditable(s) === "true"), N = (e, n) => e.dom.getParent(n, (s) => e.dom.getContentEditable(s) === "false") !== null, z = (e) => e.collapsed ? Y.from(um(e.startContainer, e.startOffset)).map(Me.fromDom) : Y.none(), J = (e, n) => z(n).bind((s) => W4(s) ? Y.some(s) : qr(e, s) ? Y.none() : Y.some(e)), ie = (e, n) => {
|
|
8840
8840
|
J(Me.fromDom(e.getBody()), n).bind((s) => ha(s.dom)).fold(() => {
|
|
8841
8841
|
e.selection.normalize();
|
|
@@ -9660,8 +9660,8 @@ Required: ` + n.join(", "));
|
|
|
9660
9660
|
}, vZ = Q(r8, t8), wZ = Q(r8, n8), i8 = (e, n) => {
|
|
9661
9661
|
const s = [
|
|
9662
9662
|
{
|
|
9663
|
-
condition:
|
|
9664
|
-
action:
|
|
9663
|
+
condition: pe(o8, n),
|
|
9664
|
+
action: pe(s8, n)
|
|
9665
9665
|
},
|
|
9666
9666
|
{
|
|
9667
9667
|
condition: yZ,
|
|
@@ -9920,13 +9920,13 @@ Required: ` + n.join(", "));
|
|
|
9920
9920
|
}, O8 = (e, n, s) => Y.from(s.container()).filter(Wt).exists((a) => {
|
|
9921
9921
|
const d = e ? 0 : -1;
|
|
9922
9922
|
return n(a.data.charAt(s.offset() + d));
|
|
9923
|
-
}), OE =
|
|
9923
|
+
}), OE = pe(O8, !0, ff), yE = pe(O8, !1, ff), $Z = (e) => {
|
|
9924
9924
|
const n = e.container();
|
|
9925
9925
|
return Wt(n) && (n.data.length === 0 || ub(n.data) && xh.isBookmarkNode(n.parentNode));
|
|
9926
|
-
}, J0 = (e, n) => (s) => Nb(e ? 0 : -1, s).filter(n).isSome(), Xn = (e) => c0(e) && ii(Me.fromDom(e), "display") === "block", vE = (e) => Ds(e) && !Ug(e), y8 = J0(!0, Xn), PZ = J0(!1, Xn), Gb = J0(!0, va), hx = J0(!1, va), v8 = J0(!0, Hu), wE = J0(!1, Hu), e1 = J0(!0, vE), t1 = J0(!1, vE), aT = (e) => e.slice(0, -1), w8 = (e, n, s) => qr(n, e) ? aT(zm(e, (a) => s(a) || ks(a, n))) : [], AZ = (e, n) => w8(e, n, je), Dp = (e, n) => [e].concat(AZ(e, n)), wo = (e, n, s) => wh(e, n, s, $Z), DZ = (e) => (n) => e.isBlock(Oe(n)), Po = (e, n, s) => Ko(Dp(Me.fromDom(n.container()), e), DZ(s)), xE = (e, n, s, a) => wo(e, n.dom, s).forall((d) => Po(n, s, a).fold(() => !$d(d, s, n.dom), (p) => !$d(d, s, n.dom) && qr(p, Me.fromDom(d.container())))), RZ = (e, n, s, a) => Po(n, s, a).fold(() => wo(e, n.dom, s).forall((d) => !$d(d, s, n.dom)), (d) => wo(e, d.dom, s).isNone()), x8 =
|
|
9926
|
+
}, J0 = (e, n) => (s) => Nb(e ? 0 : -1, s).filter(n).isSome(), Xn = (e) => c0(e) && ii(Me.fromDom(e), "display") === "block", vE = (e) => Ds(e) && !Ug(e), y8 = J0(!0, Xn), PZ = J0(!1, Xn), Gb = J0(!0, va), hx = J0(!1, va), v8 = J0(!0, Hu), wE = J0(!1, Hu), e1 = J0(!0, vE), t1 = J0(!1, vE), aT = (e) => e.slice(0, -1), w8 = (e, n, s) => qr(n, e) ? aT(zm(e, (a) => s(a) || ks(a, n))) : [], AZ = (e, n) => w8(e, n, je), Dp = (e, n) => [e].concat(AZ(e, n)), wo = (e, n, s) => wh(e, n, s, $Z), DZ = (e) => (n) => e.isBlock(Oe(n)), Po = (e, n, s) => Ko(Dp(Me.fromDom(n.container()), e), DZ(s)), xE = (e, n, s, a) => wo(e, n.dom, s).forall((d) => Po(n, s, a).fold(() => !$d(d, s, n.dom), (p) => !$d(d, s, n.dom) && qr(p, Me.fromDom(d.container())))), RZ = (e, n, s, a) => Po(n, s, a).fold(() => wo(e, n.dom, s).forall((d) => !$d(d, s, n.dom)), (d) => wo(e, d.dom, s).isNone()), x8 = pe(RZ, !1), S8 = pe(RZ, !0), qJ = pe(xE, !1), GJ = pe(xE, !0), MZ = (e) => Vy(e).exists(bh), lT = (e, n, s, a) => {
|
|
9927
9927
|
const d = vn(Dp(Me.fromDom(s.container()), n), (v) => a.isBlock(Oe(v))), p = No(d).getOr(n);
|
|
9928
9928
|
return vu(e, p.dom, s).filter(MZ);
|
|
9929
|
-
}, go = (e, n, s) => Vy(n).exists(bh) || lT(!0, e, n, s).isSome(), cT = (e, n, s) => F5(n).exists(bh) || lT(!1, e, n, s).isSome(), k8 =
|
|
9929
|
+
}, go = (e, n, s) => Vy(n).exists(bh) || lT(!0, e, n, s).isSome(), cT = (e, n, s) => F5(n).exists(bh) || lT(!1, e, n, s).isSome(), k8 = pe(lT, !1), BZ = pe(lT, !0), hv = (e) => St.isTextPosition(e) && !e.isAtStart() && !e.isAtEnd(), SE = (e, n, s) => {
|
|
9930
9930
|
const a = vn(Dp(Me.fromDom(n.container()), e), (d) => s.isBlock(Oe(d)));
|
|
9931
9931
|
return No(a).getOr(e);
|
|
9932
9932
|
}, C8 = (e, n, s) => hv(n) ? yE(n) : yE(n) || dl(SE(e, n, s).dom, n).exists(yE), T8 = (e, n, s) => hv(n) ? OE(n) : OE(n) || Cl(SE(e, n, s).dom, n).exists(OE), NZ = (e) => Ne([
|
|
@@ -9990,7 +9990,7 @@ Required: ` + n.join(", "));
|
|
|
9990
9990
|
}, HZ = (e, n) => {
|
|
9991
9991
|
const s = e.container(), a = e.offset();
|
|
9992
9992
|
return !St.isTextPosition(e) && s === n.parentNode && a > St.before(n).offset();
|
|
9993
|
-
}, UZ = (e, n) => HZ(n, e) ? St(n.container(), n.offset() - 1) : n, AE = (e) => Wt(e) ? St(e, 0) : St.before(e), DE = (e) => Wt(e) ? St(e, e.data.length) : St.after(e), A8 = (e) => vh(e.previousSibling) ? Y.some(DE(e.previousSibling)) : e.previousSibling ? Rd(e.previousSibling) : Y.none(), D8 = (e) => vh(e.nextSibling) ? Y.some(AE(e.nextSibling)) : e.nextSibling ? ha(e.nextSibling) : Y.none(), WZ = (e, n) => Y.from(n.previousSibling ? n.previousSibling : n.parentNode).bind((s) => dl(e, St.before(s))).orThunk(() => Cl(e, St.after(n))), jZ = (e, n) => Cl(e, St.after(n)).orThunk(() => dl(e, St.before(n))), XZ = (e, n) => A8(n).orThunk(() => D8(n)).orThunk(() => WZ(e, n)), qZ = (e, n) => D8(n).orThunk(() => A8(n)).orThunk(() => jZ(e, n)), GZ = (e, n, s) => e ? qZ(n, s) : XZ(n, s), YZ = (e, n, s) => GZ(e, n, s).map(
|
|
9993
|
+
}, UZ = (e, n) => HZ(n, e) ? St(n.container(), n.offset() - 1) : n, AE = (e) => Wt(e) ? St(e, 0) : St.before(e), DE = (e) => Wt(e) ? St(e, e.data.length) : St.after(e), A8 = (e) => vh(e.previousSibling) ? Y.some(DE(e.previousSibling)) : e.previousSibling ? Rd(e.previousSibling) : Y.none(), D8 = (e) => vh(e.nextSibling) ? Y.some(AE(e.nextSibling)) : e.nextSibling ? ha(e.nextSibling) : Y.none(), WZ = (e, n) => Y.from(n.previousSibling ? n.previousSibling : n.parentNode).bind((s) => dl(e, St.before(s))).orThunk(() => Cl(e, St.after(n))), jZ = (e, n) => Cl(e, St.after(n)).orThunk(() => dl(e, St.before(n))), XZ = (e, n) => A8(n).orThunk(() => D8(n)).orThunk(() => WZ(e, n)), qZ = (e, n) => D8(n).orThunk(() => A8(n)).orThunk(() => jZ(e, n)), GZ = (e, n, s) => e ? qZ(n, s) : XZ(n, s), YZ = (e, n, s) => GZ(e, n, s).map(pe(UZ, s)), RE = (e, n, s) => {
|
|
9994
9994
|
s.fold(() => {
|
|
9995
9995
|
e.focus();
|
|
9996
9996
|
}, (a) => {
|
|
@@ -10011,7 +10011,7 @@ Required: ` + n.join(", "));
|
|
|
10011
10011
|
return PE(B, W, s, a), $.container() === W ? St(B, X) : $;
|
|
10012
10012
|
}).orThunk(() => (a && (d.each((v) => $E(v.dom, v.dom.length, s)), p.each((v) => dT(v.dom, 0, s))), n));
|
|
10013
10013
|
}, R8 = (e, n) => jn(e.schema.getTextInlineElements(), Oe(n)), Kb = (e, n, s, a = !0, d = !1) => {
|
|
10014
|
-
const p = YZ(n, e.getBody(), s.dom), v = Qc(s,
|
|
10014
|
+
const p = YZ(n, e.getBody(), s.dom), v = Qc(s, pe(JZ, e), KZ(e.getBody())), C = eV(s, p, e.schema, R8(e, s));
|
|
10015
10015
|
e.dom.isEmpty(e.getBody()) ? (e.setContent(""), e.selection.setCursorLocation()) : v.bind(($) => Yb(e.schema, $, d)).fold(() => {
|
|
10016
10016
|
a && RE(e, n, C);
|
|
10017
10017
|
}, ($) => {
|
|
@@ -10029,7 +10029,7 @@ Required: ` + n.join(", "));
|
|
|
10029
10029
|
}, oV = (e) => up(e) || Oh(e), Sh = (e, n) => {
|
|
10030
10030
|
const s = n.container(), a = n.offset();
|
|
10031
10031
|
return e ? lm(s) ? Wt(s.nextSibling) ? St(s.nextSibling, 0) : St.after(s) : up(n) ? St(s, a + 1) : n : lm(s) ? Wt(s.previousSibling) ? St(s.previousSibling, s.previousSibling.data.length) : St.before(s) : Oh(n) ? St(s, a - 1) : n;
|
|
10032
|
-
}, N8 =
|
|
10032
|
+
}, N8 = pe(Sh, !0), L8 = pe(Sh, !1), o1 = (e, n) => {
|
|
10033
10033
|
const s = (a) => a.stopImmediatePropagation();
|
|
10034
10034
|
e.on("beforeinput input", s, !0), e.getDoc().execCommand(n), e.off("beforeinput input", s);
|
|
10035
10035
|
}, sV = (e) => {
|
|
@@ -10162,7 +10162,7 @@ Required: ` + n.join(", "));
|
|
|
10162
10162
|
}, UE = (e, n, s) => Y.some(() => {
|
|
10163
10163
|
const a = e.selection.getRng(), d = s.bind(({ rng: p, isStartInTable: v }) => {
|
|
10164
10164
|
const C = U8(e, v ? p.endContainer : p.startContainer);
|
|
10165
|
-
p.deleteContents(), W8(e, v, C.filter(
|
|
10165
|
+
p.deleteContents(), W8(e, v, C.filter(pe(Ki, e.schema)));
|
|
10166
10166
|
const $ = v ? n[0] : n[n.length - 1];
|
|
10167
10167
|
return vT(e, $, a, v), Ki(e.schema, $) ? Y.none() : Y.some(v ? n.slice(1) : n.slice(0, -1));
|
|
10168
10168
|
}).getOr(n);
|
|
@@ -10174,7 +10174,7 @@ Required: ` + n.join(", "));
|
|
|
10174
10174
|
zE(C.concat($)), a.deleteContents(), HE(e);
|
|
10175
10175
|
}), wT = (e, n, s, a = !0) => Y.some(() => {
|
|
10176
10176
|
cr(e, n, s, a);
|
|
10177
|
-
}), X8 = (e, n) => Y.some(() => Kb(e, !1, n)), WE = (e, n, s) => H8(n, s).bind((a) => a.fold(
|
|
10177
|
+
}), X8 = (e, n) => Y.some(() => Kb(e, !1, n)), WE = (e, n, s) => H8(n, s).bind((a) => a.fold(pe(wT, e), pe(X8, e), pe(UE, e), pe(j8, e))), q8 = (e, n) => bx(e, n), G8 = (e, n, s, a) => xT(n, a).fold(() => WE(e, n, s), (d) => q8(e, d)), Y8 = (e, n, s) => {
|
|
10178
10178
|
const a = Me.fromDom(e.getBody()), d = e.selection.getRng();
|
|
10179
10179
|
return s.length !== 0 ? UE(e, s, Y.none()) : G8(e, a, d, n);
|
|
10180
10180
|
}, jE = (e, n) => Ko(Dp(n, e), cb), xT = (e, n) => Ko(Dp(n, e), Ba("caption")), K8 = (e, n, s, a, d) => fg(s, e.getBody(), d).bind((p) => jE(n, Me.fromDom(p.getNode())).bind((v) => ks(v, a) ? Y.none() : Y.some(kt))), bx = (e, n) => Y.some(() => {
|
|
@@ -10746,7 +10746,7 @@ Required: ` + n.join(", "));
|
|
|
10746
10746
|
c$(e, n, s);
|
|
10747
10747
|
}, SV = (e, n, s) => {
|
|
10748
10748
|
var a, d;
|
|
10749
|
-
const p = e.dom, v = p.getParent(s,
|
|
10749
|
+
const p = e.dom, v = p.getParent(s, pe(Iw, e.schema));
|
|
10750
10750
|
v && p.isEmpty(v) ? (a = s.parentNode) === null || a === void 0 || a.replaceChild(n, s) : (bk(Me.fromDom(s)), p.isEmpty(s) ? (d = s.parentNode) === null || d === void 0 || d.replaceChild(n, s) : p.insertAfter(n, s));
|
|
10751
10751
|
}, u$ = (e, n) => (e.appendChild(n), n), yv = (e, n) => {
|
|
10752
10752
|
var s;
|
|
@@ -12657,7 +12657,7 @@ Required: ` + n.join(", "));
|
|
|
12657
12657
|
]) : N2(e) ? [e] : [], t3 = (e, n, s) => {
|
|
12658
12658
|
const a = Me.fromDom(n.commonAncestorContainer), d = Dp(a, e), p = vn(d, ($) => s.isWrapper(Oe($))), v = Fx(d, n), C = p.concat(v.length ? v : v7(a));
|
|
12659
12659
|
return Ke(C, rm);
|
|
12660
|
-
}, w7 = () => ix([]), gz = (e, n, s) => y7(Me.fromDom(n.cloneContents()), t3(e, n, s)), lO = (e, n) => Xh(n, "table",
|
|
12660
|
+
}, w7 = () => ix([]), gz = (e, n, s) => y7(Me.fromDom(n.cloneContents()), t3(e, n, s)), lO = (e, n) => Xh(n, "table", pe(ks, e)), q$ = (e, n) => lO(e, n[0]).bind((s) => {
|
|
12661
12661
|
const a = n[0], d = n[n.length - 1], p = hz(s);
|
|
12662
12662
|
return mz(p, a, d).map((v) => ix([fz(v)]));
|
|
12663
12663
|
}).getOrThunk(w7), x7 = (e, n, s) => n.length > 0 && n[0].collapsed ? w7() : gz(e, n[0], s), Zx = (e, n, s) => {
|
|
@@ -13417,7 +13417,7 @@ Required: ` + n.join(", "));
|
|
|
13417
13417
|
serialize: C,
|
|
13418
13418
|
addRules: p.addValidElements,
|
|
13419
13419
|
setRules: p.setValidElements,
|
|
13420
|
-
addTempAttr:
|
|
13420
|
+
addTempAttr: pe(sH, v, s),
|
|
13421
13421
|
getTempAttrs: Lt(s),
|
|
13422
13422
|
getNodeFilters: v.getNodeFilters,
|
|
13423
13423
|
getAttributeFilters: v.getAttributeFilters,
|
|
@@ -13533,7 +13533,7 @@ Options:${v}${s.join(v)}` : "";
|
|
|
13533
13533
|
get: (d) => e[d] ? e[d] : { icons: {} },
|
|
13534
13534
|
has: (d) => jn(e, d)
|
|
13535
13535
|
};
|
|
13536
|
-
})(), Mv = Qa.ModelManager, oB = (e, n) => n.dom[e], sB = (e, n) => parseInt(ii(n, e), 10), rB =
|
|
13536
|
+
})(), Mv = Qa.ModelManager, oB = (e, n) => n.dom[e], sB = (e, n) => parseInt(ii(n, e), 10), rB = pe(oB, "clientWidth"), pH = pe(oB, "clientHeight"), bH = pe(sB, "margin-top"), OH = pe(sB, "margin-left"), a3 = (e) => e.dom.getBoundingClientRect(), yH = (e, n, s) => {
|
|
13537
13537
|
const a = rB(e), d = pH(e);
|
|
13538
13538
|
return n >= 0 && s >= 0 && n <= a && s <= d;
|
|
13539
13539
|
}, vH = (e, n, s, a) => {
|
|
@@ -14608,7 +14608,7 @@ Options:${v}${s.join(v)}` : "";
|
|
|
14608
14608
|
matchNode: (a, d, p, v) => aP(e, a, d, p, v),
|
|
14609
14609
|
canApply: (a) => I7(e, a),
|
|
14610
14610
|
formatChanged: (a, d, p, v) => V7(e, s, a, d, p, v),
|
|
14611
|
-
getCssText:
|
|
14611
|
+
getCssText: pe(QH, e)
|
|
14612
14612
|
};
|
|
14613
14613
|
}, TB = (e) => {
|
|
14614
14614
|
switch (e.toLowerCase()) {
|
|
@@ -14806,7 +14806,7 @@ Options:${v}${s.join(v)}` : "";
|
|
|
14806
14806
|
return Y.from(s[s.length - 1]);
|
|
14807
14807
|
}, MB = (e, n) => qr(n, e) ? RB(n, e) : Y.none(), mO = (e, n) => {
|
|
14808
14808
|
Dd(e, n.dom).bind((s) => Y.from(s.getNode())).map(Me.fromDom).filter(bh).each(sr);
|
|
14809
|
-
}, $P = (e, n, s, a) => (mO(!0, n), mO(!1, s), MB(n, s).fold(
|
|
14809
|
+
}, $P = (e, n, s, a) => (mO(!0, n), mO(!1, s), MB(n, s).fold(pe(EP, e, n, s, a), pe(DB, e, n, s, a))), PP = (e, n, s, a, d) => n ? $P(e, a, s, d) : $P(e, s, a, d), m3 = (e, n) => {
|
|
14810
14810
|
const s = Me.fromDom(e.getBody());
|
|
14811
14811
|
return h3(e.schema, s.dom, n, e.selection.getRng()).map((d) => () => {
|
|
14812
14812
|
PP(s, n, d.from.block, d.to.block, e.schema).each((p) => {
|
|
@@ -14821,7 +14821,7 @@ Options:${v}${s.join(v)}` : "";
|
|
|
14821
14821
|
});
|
|
14822
14822
|
})).getOr(Y.none());
|
|
14823
14823
|
}, AP = (e, n) => {
|
|
14824
|
-
const s = Me.fromDom(n), a =
|
|
14824
|
+
const s = Me.fromDom(n), a = pe(ks, e);
|
|
14825
14825
|
return Qc(s, cb, a).isSome();
|
|
14826
14826
|
}, BB = (e, n) => AP(e, n.startContainer) || AP(e, n.endContainer), NB = (e, n) => {
|
|
14827
14827
|
const s = dl(e.dom, St.fromRangeStart(n)).isNone(), a = Cl(e.dom, St.fromRangeEnd(n)).isNone();
|
|
@@ -14858,7 +14858,7 @@ Options:${v}${s.join(v)}` : "";
|
|
|
14858
14858
|
const s = e.selection.getRng();
|
|
14859
14859
|
if (!Wt(s.commonAncestorContainer))
|
|
14860
14860
|
return Y.none();
|
|
14861
|
-
const a = n ? ul.Forwards : ul.Backwards, d = yu(e.getBody()), p =
|
|
14861
|
+
const a = n ? ul.Forwards : ul.Backwards, d = yu(e.getBody()), p = pe(Aw, n ? d.next : d.prev), v = n ? KH : JH, C = Lb(a, e.getBody(), s), $ = p(C), B = $ && Sh(n, $);
|
|
14862
14862
|
if (!B || !F0(C, B))
|
|
14863
14863
|
return Y.none();
|
|
14864
14864
|
if (v(B))
|
|
@@ -14974,7 +14974,7 @@ Options:${v}${s.join(v)}` : "";
|
|
|
14974
14974
|
const a = jB(e);
|
|
14975
14975
|
return e.nextSibling ? (n = e.parentNode) === null || n === void 0 || n.insertBefore(a, e.nextSibling) : (s = e.parentNode) === null || s === void 0 || s.appendChild(a), a;
|
|
14976
14976
|
}
|
|
14977
|
-
}, v3 = (e, n) => e ? XB(n) : rU(n), HP =
|
|
14977
|
+
}, v3 = (e, n) => e ? XB(n) : rU(n), HP = pe(v3, !0), iU = pe(v3, !1), qB = (e, n) => Wt(e.container()) ? v3(n, e.container()) : v3(n, e.getNode()), GB = (e, n) => {
|
|
14978
14978
|
const s = n.get();
|
|
14979
14979
|
return s && e.container() === s && lm(s);
|
|
14980
14980
|
}, UP = (e, n) => n.fold((s) => {
|
|
@@ -15020,8 +15020,8 @@ Options:${v}${s.join(v)}` : "";
|
|
|
15020
15020
|
return s || e;
|
|
15021
15021
|
}, w3 = (e, n, s) => {
|
|
15022
15022
|
const a = N8(s), d = KB(n, a.container());
|
|
15023
|
-
return Ha(e, d, a).fold(() => Cl(d, a).bind(
|
|
15024
|
-
}, WP = (e, n) => kp(e, n) === null, JB = (e, n, s) => Ha(e, n, s).filter(
|
|
15023
|
+
return Ha(e, d, a).fold(() => Cl(d, a).bind(pe(Ha, e, d)).map((p) => qc.before(p)), Y.none);
|
|
15024
|
+
}, WP = (e, n) => kp(e, n) === null, JB = (e, n, s) => Ha(e, n, s).filter(pe(WP, n)), aU = (e, n, s) => {
|
|
15025
15025
|
const a = L8(s);
|
|
15026
15026
|
return JB(e, n, a).bind((d) => dl(d, a).isNone() ? Y.some(qc.start(d)) : Y.none());
|
|
15027
15027
|
}, lU = (e, n, s) => {
|
|
@@ -15029,7 +15029,7 @@ Options:${v}${s.join(v)}` : "";
|
|
|
15029
15029
|
return JB(e, n, a).bind((d) => Cl(d, a).isNone() ? Y.some(qc.end(d)) : Y.none());
|
|
15030
15030
|
}, cU = (e, n, s) => {
|
|
15031
15031
|
const a = L8(s), d = KB(n, a.container());
|
|
15032
|
-
return Ha(e, d, a).fold(() => dl(d, a).bind(
|
|
15032
|
+
return Ha(e, d, a).fold(() => dl(d, a).bind(pe(Ha, e, d)).map((p) => qc.after(p)), Y.none);
|
|
15033
15033
|
}, jP = (e) => !ME(XP(e)), kg = (e, n, s) => YB([
|
|
15034
15034
|
w3,
|
|
15035
15035
|
aU,
|
|
@@ -15041,10 +15041,10 @@ Options:${v}${s.join(v)}` : "";
|
|
|
15041
15041
|
s
|
|
15042
15042
|
]).filter(jP), XP = (e) => e.fold(Kt, Kt, Kt, Kt), x3 = (e) => e.fold(Lt("before"), Lt("start"), Lt("end"), Lt("after")), S3 = (e) => e.fold(qc.before, qc.before, qc.after, qc.after), qP = (e) => e.fold(qc.start, qc.start, qc.end, qc.end), uU = (e, n) => x3(e) === x3(n) && XP(e) === XP(n), dU = (e, n, s, a, d, p) => Br(Ha(n, s, a), Ha(n, s, d), (v, C) => v !== C && nV(s, v, C) ? qc.after(e ? v : C) : p).getOr(p), hU = (e, n) => e.fold(vt, (s) => !uU(s, n)), fU = (e, n, s, a, d) => {
|
|
15043
15043
|
const p = Sh(e, d);
|
|
15044
|
-
return vu(e, s, p).map(
|
|
15044
|
+
return vu(e, s, p).map(pe(Sh, e)).fold(() => a.map(S3), ($) => kg(n, s, $).map(pe(dU, e, n, s, p, $)).filter(pe(hU, a))).filter(jP);
|
|
15045
15045
|
}, mU = (e, n) => e ? n.fold(Q(Y.some, qc.start), Y.none, Q(Y.some, qc.after), Y.none) : n.fold(Y.none, Q(Y.some, qc.before), Y.none, Q(Y.some, qc.end)), k3 = (e, n, s, a) => {
|
|
15046
15046
|
const d = Sh(e, a), p = kg(n, s, d);
|
|
15047
|
-
return kg(n, s, d).bind(
|
|
15047
|
+
return kg(n, s, d).bind(pe(mU, e)).orThunk(() => fU(e, n, s, p, a));
|
|
15048
15048
|
}, C3 = (e) => ve(e.selection.getSel().modify), eN = (e, n, s) => {
|
|
15049
15049
|
const a = e ? 1 : -1;
|
|
15050
15050
|
return n.setRng(St(s.container(), s.offset() + a).toRange()), n.getSel().modify("move", e ? "forward" : "backward", "word"), !0;
|
|
@@ -15099,7 +15099,7 @@ Options:${v}${s.join(v)}` : "";
|
|
|
15099
15099
|
}).getOr([]), GP = (e, n) => Co(e, (s, a) => s.fold(() => Y.some(a), (d) => Br(No(d.getClientRects()), No(a.getClientRects()), (p, v) => {
|
|
15100
15100
|
const C = Math.abs(n - p.left);
|
|
15101
15101
|
return Math.abs(n - v.left) <= C ? a : d;
|
|
15102
|
-
}).or(s)), Y.none()), _3 = (e, n) => No(n.getClientRects()).bind((s) => GP(e, s.left)), rS =
|
|
15102
|
+
}).or(s)), Y.none()), _3 = (e, n) => No(n.getClientRects()).bind((s) => GP(e, s.left)), rS = pe(tN, St.isAbove, -1), iS = pe(tN, St.isBelow, 1), oN = pe(nN, -1, rS), sN = pe(nN, 1, iS), OU = (e, n) => rS(e, n).breakAt.isNone(), Ah = (e, n) => iS(e, n).breakAt.isNone(), YP = (e) => ha(e).map((n) => [n].concat(iS(e, n).positions)).getOr([]), rN = (e) => Rd(e).map((n) => rS(e, n).positions.concat(n)).getOr([]), iN = (e, n) => _3(oN(e, n), n), yU = (e, n) => _3(sN(e, n), n), aN = Ds, lN = (e, n) => Math.abs(e.left - n), KP = (e, n) => Math.abs(e.right - n), vU = (e) => er(e, "node"), cN = (e, n) => Ae(e, (s, a) => {
|
|
15103
15103
|
const d = Math.min(lN(s, n), KP(s, n)), p = Math.min(lN(a, n), KP(a, n));
|
|
15104
15104
|
return p === d && vU(a) && aN(a.node) || p < d ? a : s;
|
|
15105
15105
|
}), wU = (e) => {
|
|
@@ -15143,7 +15143,7 @@ Options:${v}${s.join(v)}` : "";
|
|
|
15143
15143
|
return C;
|
|
15144
15144
|
const W = p.getNode();
|
|
15145
15145
|
return W && ($(W), uN(e, a, $, W)), C;
|
|
15146
|
-
}, eA = (e, n) => n.line > e, xU = (e, n) => n.line === e, SU =
|
|
15146
|
+
}, eA = (e, n) => n.line > e, xU = (e, n) => n.line === e, SU = pe(JP, Qv.Up, mr, T0), kU = pe(JP, Qv.Down, T0, mr), dN = (e) => ut(e.getClientRects()), Cee = (e, n, s, a) => {
|
|
15147
15147
|
const d = yu(n);
|
|
15148
15148
|
let p, v, C, $;
|
|
15149
15149
|
const B = [];
|
|
@@ -15166,7 +15166,7 @@ Options:${v}${s.join(v)}` : "";
|
|
|
15166
15166
|
}, CU = (e) => (n) => eA(e, n), hN = (e) => (n) => xU(e, n), sc = (e, n) => {
|
|
15167
15167
|
e.selection.setRng(n), uv(e, e.selection.getRng());
|
|
15168
15168
|
}, tA = (e, n, s) => Y.some(DP(e, n, s)), fN = (e, n, s, a, d, p) => {
|
|
15169
|
-
const v = n === ul.Forwards, C = yu(e.getBody()), $ =
|
|
15169
|
+
const v = n === ul.Forwards, C = yu(e.getBody()), $ = pe(Aw, v ? C.next : C.prev), B = v ? a : d;
|
|
15170
15170
|
if (!s.collapsed) {
|
|
15171
15171
|
const ge = iy(s);
|
|
15172
15172
|
if (p(ge))
|
|
@@ -15233,11 +15233,11 @@ Options:${v}${s.join(v)}` : "";
|
|
|
15233
15233
|
return s ? dl(n, d).getOr(d) : Cl(n, a).getOr(a);
|
|
15234
15234
|
}
|
|
15235
15235
|
}, _U = (e, n, s) => {
|
|
15236
|
-
const a = e.getBody(), d = TU(e.selection.getRng(), a, s), p =
|
|
15236
|
+
const a = e.getBody(), d = TU(e.selection.getRng(), a, s), p = pe(n1, e);
|
|
15237
15237
|
return k3(s, p, a, d).bind((C) => pN(e, n, C));
|
|
15238
15238
|
}, bN = (e, n, s) => {
|
|
15239
15239
|
const a = Ke(rl(Me.fromDom(n.getRoot()), '*[data-mce-selected="inline-boundary"]'), (v) => v.dom), d = vn(a, e), p = vn(s, e);
|
|
15240
|
-
ke(Rr(d, p),
|
|
15240
|
+
ke(Rr(d, p), pe(gN, !1)), ke(Rr(p, d), pe(gN, !0));
|
|
15241
15241
|
}, EU = (e, n) => {
|
|
15242
15242
|
const s = n.get();
|
|
15243
15243
|
if (e.selection.isCollapsed() && !e.composing && s) {
|
|
@@ -15253,17 +15253,17 @@ Options:${v}${s.join(v)}` : "";
|
|
|
15253
15253
|
});
|
|
15254
15254
|
}
|
|
15255
15255
|
}, $3 = (e, n, s) => Sb(e) ? _U(e, n, s).isSome() : !1, ON = (e, n, s) => Sb(n) ? gU(e, n) : !1, $U = (e) => {
|
|
15256
|
-
const n = _r(null), s =
|
|
15256
|
+
const n = _r(null), s = pe(n1, e);
|
|
15257
15257
|
return e.on("NodeChange", (a) => {
|
|
15258
15258
|
Sb(e) && (bN(s, e.dom, a.parents), EU(e, n), Fp(s, e, n, a.parents));
|
|
15259
15259
|
}), n;
|
|
15260
|
-
}, PU =
|
|
15260
|
+
}, PU = pe(ON, !0), AU = pe(ON, !1), P3 = (e, n, s) => {
|
|
15261
15261
|
if (Sb(e)) {
|
|
15262
15262
|
const a = E3(e, n).getOrThunk(() => {
|
|
15263
15263
|
const d = e.selection.getRng();
|
|
15264
15264
|
return n ? St.fromRangeEnd(d) : St.fromRangeStart(d);
|
|
15265
15265
|
});
|
|
15266
|
-
return kg(
|
|
15266
|
+
return kg(pe(n1, e), e.getBody(), a).exists((d) => {
|
|
15267
15267
|
const p = S3(d);
|
|
15268
15268
|
return UP(s, p).exists((v) => (pO(e, v), !0));
|
|
15269
15269
|
});
|
|
@@ -15276,7 +15276,7 @@ Options:${v}${s.join(v)}` : "";
|
|
|
15276
15276
|
const a = Sh(!0, n), d = Sh(!1, s);
|
|
15277
15277
|
return Cl(e, a).forall((p) => p.isEqual(d));
|
|
15278
15278
|
}).getOr(!0), A3 = (e, n) => (s) => UP(n, s).map((a) => () => pO(e, a)), sA = (e, n, s, a) => {
|
|
15279
|
-
const d = e.getBody(), p =
|
|
15279
|
+
const d = e.getBody(), p = pe(n1, e);
|
|
15280
15280
|
e.undoManager.ignore(() => {
|
|
15281
15281
|
e.selection.setRng(nA(s, a)), hT(e), kg(p, d, St.fromRangeStart(e.selection.getRng())).map(qP).bind(A3(e, n)).each(rn);
|
|
15282
15282
|
}), e.nodeChanged();
|
|
@@ -15284,7 +15284,7 @@ Options:${v}${s.join(v)}` : "";
|
|
|
15284
15284
|
const s = hf(n, e);
|
|
15285
15285
|
return s || e;
|
|
15286
15286
|
}, vN = (e, n, s, a) => {
|
|
15287
|
-
const d = yN(e.getBody(), a.container()), p =
|
|
15287
|
+
const d = yN(e.getBody(), a.container()), p = pe(n1, e), v = kg(p, d, a);
|
|
15288
15288
|
return v.bind(($) => s ? $.fold(Lt(Y.some(qP($))), Y.none, Lt(Y.some(S3($))), Y.none) : $.fold(Y.none, Lt(Y.some(S3($))), Y.none, Lt(Y.some(qP($))))).map(A3(e, n)).getOrThunk(() => {
|
|
15289
15289
|
const $ = fg(s, d, a), B = $.bind((W) => kg(p, d, W));
|
|
15290
15290
|
return Br(v, B, () => Ha(p, d, a).bind((W) => oA(W) ? Y.some(() => {
|
|
@@ -15303,7 +15303,7 @@ Options:${v}${s.join(v)}` : "";
|
|
|
15303
15303
|
const s = Me.fromDom(e.getBody()), a = Me.fromDom(e.selection.getStart()), d = Dp(a, s);
|
|
15304
15304
|
return Us(d, n).fold(Lt(d), (p) => d.slice(0, p));
|
|
15305
15305
|
}, wN = (e) => sh(e) === 1, xN = (e) => lS(e, (n) => e.schema.isBlock(Oe(n)) || aS(n)), SN = (e) => lS(e, (n) => e.schema.isBlock(Oe(n))), iA = (e, n) => {
|
|
15306
|
-
const s =
|
|
15306
|
+
const s = pe(h$, e);
|
|
15307
15307
|
return Js(n, (a) => s(a) ? [a.dom] : []);
|
|
15308
15308
|
}, cS = (e) => {
|
|
15309
15309
|
const n = SN(e);
|
|
@@ -15553,12 +15553,12 @@ Options:${v}${s.join(v)}` : "";
|
|
|
15553
15553
|
Ok(s) && (IN(e, s), e.undoManager.add());
|
|
15554
15554
|
}
|
|
15555
15555
|
}, eW = (e) => {
|
|
15556
|
-
e.on("keyup compositionstart",
|
|
15556
|
+
e.on("keyup compositionstart", pe(QN, e));
|
|
15557
15557
|
}, FN = Ds, tW = (e, n, s) => fN(n, e, s, e1, t1, FN), ZN = (e, n, s) => g1(n, e, s, (p) => e1(p) || v8(p), (p) => t1(p) || wE(p), FN), nW = (e) => {
|
|
15558
15558
|
const n = e.dom.create(Ri(e));
|
|
15559
15559
|
return n.innerHTML = '<br data-mce-bogus="1">', n;
|
|
15560
15560
|
}, VN = (e, n, s) => {
|
|
15561
|
-
const a = yu(e.getBody()), d =
|
|
15561
|
+
const a = yu(e.getBody()), d = pe(Aw, n === 1 ? a.next : a.prev);
|
|
15562
15562
|
if (s.collapsed) {
|
|
15563
15563
|
const p = e.dom.getParent(s.startContainer, "PRE");
|
|
15564
15564
|
if (!p)
|
|
@@ -15581,7 +15581,7 @@ Options:${v}${s.join(v)}` : "";
|
|
|
15581
15581
|
const a = s.toRange(), d = e.selection.getRng();
|
|
15582
15582
|
return n ? a.setStart(d.startContainer, d.startOffset) : a.setEnd(d.endContainer, d.endOffset), a;
|
|
15583
15583
|
}).exists((s) => (sc(e, s), !0)), oW = (e) => Ne(["figcaption"], Oe(e)), zN = (e, n, s) => {
|
|
15584
|
-
const a =
|
|
15584
|
+
const a = pe(ks, n);
|
|
15585
15585
|
return Gr(Me.fromDom(e.container()), (d) => s.isBlock(Oe(d)), a).filter(oW);
|
|
15586
15586
|
}, HN = (e, n, s) => n ? Ah(e.dom, s) : OU(e.dom, s), sW = (e, n) => {
|
|
15587
15587
|
const s = Me.fromDom(e.getBody()), a = St.fromRangeStart(e.selection.getRng());
|
|
@@ -15685,10 +15685,10 @@ Options:${v}${s.join(v)}` : "";
|
|
|
15685
15685
|
}), Y.none()), eL = (e, n, s, a, d) => {
|
|
15686
15686
|
const p = rl(Me.fromDom(s), "td,th,caption").map((C) => C.dom), v = vn(JN(e, p), (C) => n(C, d));
|
|
15687
15687
|
return Pee(v, a, d).map((C) => C.cell);
|
|
15688
|
-
}, yW = (e) => e.bottom, vW = (e) => e.top, TA = (e, n) => e.y < n, Q3 = (e, n) => e.y > n, tL =
|
|
15688
|
+
}, yW = (e) => e.bottom, vW = (e) => e.top, TA = (e, n) => e.y < n, Q3 = (e, n) => e.y > n, tL = pe(eL, yW, TA), nL = pe(eL, vW, Q3), wW = (e, n) => No(n.getClientRects()).bind((s) => tL(e, s.left, s.top)).bind((s) => _3(rN(s), n)), xW = (e, n) => Ns(n.getClientRects()).bind((s) => nL(e, s.left, s.top)).bind((s) => _3(YP(s), n)), _A = (e, n, s) => s.breakAt.exists((a) => e(n, a).breakAt.isSome()), SW = (e) => e.breakType === Ph.Wrap && e.positions.length === 0, kW = (e) => e.breakType === Ph.Br && e.positions.length === 1, oL = (e, n, s) => {
|
|
15689
15689
|
const a = e(n, s);
|
|
15690
15690
|
return SW(a) || !As(s.getNode()) && kW(a) ? !_A(e, n, a) : a.breakAt.isNone();
|
|
15691
|
-
}, CW =
|
|
15691
|
+
}, CW = pe(oL, rS), _f = pe(oL, iS), sL = (e, n, s) => {
|
|
15692
15692
|
const a = St.fromRangeStart(n);
|
|
15693
15693
|
return Dd(!e, s).exists((d) => d.isEqual(a));
|
|
15694
15694
|
}, rL = (e, n, s, a) => {
|
|
@@ -16874,14 +16874,14 @@ Input object: ` + Zv(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = Lt(PL), OS
|
|
|
16874
16874
|
const s = Me.fromTag("br");
|
|
16875
16875
|
mc(Me.fromDom(n), s), i_(e, s.dom, !1), e.undoManager.add();
|
|
16876
16876
|
}, Zj = (e) => As(e.getNode()), Vj = (e, n) => Zj(St.after(n)) ? !0 : Cl(e, St.after(n)).map((s) => As(s.getNode())).getOr(!1), u9 = (e) => e && e.nodeName === "A" && "href" in e, zj = (e) => e.fold(je, u9, u9, je), d9 = (e) => {
|
|
16877
|
-
const n =
|
|
16877
|
+
const n = pe(n1, e), s = St.fromRangeStart(e.selection.getRng());
|
|
16878
16878
|
return kg(n, e.getBody(), s).filter(zj);
|
|
16879
16879
|
}, Hj = (e, n) => {
|
|
16880
|
-
n.fold(kt,
|
|
16880
|
+
n.fold(kt, pe(a_, e), pe(Fj, e), kt);
|
|
16881
16881
|
}, h9 = {
|
|
16882
16882
|
insert: (e, n) => {
|
|
16883
16883
|
const s = d9(e);
|
|
16884
|
-
s.isSome() ? s.each(
|
|
16884
|
+
s.isSome() ? s.each(pe(Hj, e)) : c9(e, n);
|
|
16885
16885
|
},
|
|
16886
16886
|
fakeEventName: "insertLineBreak"
|
|
16887
16887
|
}, f9 = (e, n) => oD(e).filter((s) => n.length > 0 && Ol(Me.fromDom(s), n)).isSome(), rD = (e) => f9(e, Yl(e)), jj = (e) => f9(e, iw(e)), Zd = Td.generate([
|
|
@@ -17063,12 +17063,12 @@ Input object: ` + Zv(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = Lt(PL), OS
|
|
|
17063
17063
|
const p = Me.fromText(e);
|
|
17064
17064
|
return n.isAtEnd() ? mc(d, p) : yl(d, p), St(p.dom, e.length);
|
|
17065
17065
|
});
|
|
17066
|
-
}, mD =
|
|
17066
|
+
}, mD = pe(w9, Pi), x9 = pe(w9, " "), nX = (e, n, s) => kE(e, n, s) ? mD(n) : x9(n), oX = (e) => (n) => n.fold((s) => dl(e.dom, St.before(s)), (s) => ha(s), (s) => Rd(s), (s) => Cl(e.dom, St.after(s))), sX = (e, n, s) => (a) => kE(e, a, s) ? mD(n) : x9(n), S9 = (e) => (n) => {
|
|
17067
17067
|
e.selection.setRng(n.toRange()), e.nodeChanged();
|
|
17068
17068
|
}, k9 = (e, n) => e.isEditable(e.getParent(n, "summary")), rX = (e) => {
|
|
17069
17069
|
const n = St.fromRangeStart(e.selection.getRng()), s = Me.fromDom(e.getBody());
|
|
17070
17070
|
if (e.selection.isCollapsed()) {
|
|
17071
|
-
const a =
|
|
17071
|
+
const a = pe(n1, e), d = St.fromRangeStart(e.selection.getRng());
|
|
17072
17072
|
return kg(a, e.getBody(), d).bind(oX(s)).map((p) => () => sX(s, n, e.schema)(p).each(S9(e)));
|
|
17073
17073
|
} else
|
|
17074
17074
|
return Y.none();
|
|
@@ -19290,7 +19290,7 @@ Input object: ` + Zv(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = Lt(PL), OS
|
|
|
19290
19290
|
}), dQ = (e) => Y.from(e.selection.getRng()).bind((n) => {
|
|
19291
19291
|
const s = e.getBody();
|
|
19292
19292
|
return n.startContainer === s && n.startOffset === 0 ? Y.none() : Y.from(e.selection.getStart(!0));
|
|
19293
|
-
}), hQ = (e, n) => dQ(e).orThunk(
|
|
19293
|
+
}), hQ = (e, n) => dQ(e).orThunk(pe(uQ, e)).map(Me.fromDom).filter(Io).bind(n), sR = (e, n) => hQ(e, io(Y.some, n)), fQ = (e, n) => {
|
|
19294
19294
|
if (/^[0-9.]+$/.test(n)) {
|
|
19295
19295
|
const s = parseInt(n, 10);
|
|
19296
19296
|
if (s >= 1 && s <= 7) {
|
|
@@ -19309,7 +19309,7 @@ Input object: ` + Zv(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = Lt(PL), OS
|
|
|
19309
19309
|
}, FG = (e) => sR(e, (n) => V_(e.getBody(), n.dom)).getOr(""), ZG = (e, n) => {
|
|
19310
19310
|
e.formatter.toggle("fontsize", { value: fQ(e, n) }), e.nodeChanged();
|
|
19311
19311
|
}, x1 = (e) => sR(e, (n) => oR(e.getBody(), n.dom)).getOr(""), VG = (e) => sR(e, (n) => {
|
|
19312
|
-
const s = Me.fromDom(e.getBody()), a = Cx(n, (p) => Dl(p, "line-height"),
|
|
19312
|
+
const s = Me.fromDom(e.getBody()), a = Cx(n, (p) => Dl(p, "line-height"), pe(ks, s)), d = () => {
|
|
19313
19313
|
const p = parseFloat(ii(n, "line-height")), v = parseFloat(ii(n, "font-size"));
|
|
19314
19314
|
return String(p / v);
|
|
19315
19315
|
};
|
|
@@ -20949,7 +20949,7 @@ function lhe() {
|
|
|
20949
20949
|
}
|
|
20950
20950
|
}
|
|
20951
20951
|
Q.singletonNone = new Q(!1);
|
|
20952
|
-
const io = Array.prototype.slice, Lt = Array.prototype.indexOf, Kt = Array.prototype.push, It = (t, r) => Lt.call(t, r),
|
|
20952
|
+
const io = Array.prototype.slice, Lt = Array.prototype.indexOf, Kt = Array.prototype.push, It = (t, r) => Lt.call(t, r), pe = (t, r) => {
|
|
20953
20953
|
const l = It(t, r);
|
|
20954
20954
|
return l === -1 ? Q.none() : Q.some(l);
|
|
20955
20955
|
}, st = (t, r) => It(t, r) > -1, jt = (t, r) => {
|
|
@@ -22045,7 +22045,7 @@ Input object: ` + Ro(t.input), Gi = (t, r) => ef(t, Bo(r, fo)), qm = (t, r) => z
|
|
|
22045
22045
|
if (r.length !== oe.length)
|
|
22046
22046
|
throw new Error("Wrong number of arguments to match. Expected: " + r.join(",") + `
|
|
22047
22047
|
Actual: ` + oe.join(","));
|
|
22048
|
-
if (!Fn(r, (
|
|
22048
|
+
if (!Fn(r, (be) => st(oe, be)))
|
|
22049
22049
|
throw new Error("Not all branches were specified when using match. Specified: " + oe.join(", ") + `
|
|
22050
22050
|
Required: ` + r.join(", "));
|
|
22051
22051
|
return j[S].apply(null, D);
|
|
@@ -22299,7 +22299,7 @@ Required: ` + r.join(", "));
|
|
|
22299
22299
|
};
|
|
22300
22300
|
},
|
|
22301
22301
|
schema: te(r),
|
|
22302
|
-
exhibit: (j, oe) => Fi(E(j), Xt(f, "exhibit"), (ae,
|
|
22302
|
+
exhibit: (j, oe) => Fi(E(j), Xt(f, "exhibit"), (ae, be) => be(oe, ae.config, ae.state)).getOrThunk(() => fu({})),
|
|
22303
22303
|
name: te(l),
|
|
22304
22304
|
handlers: (j) => E(j).map((oe) => Xt(f, "events").getOr(() => ({}))(oe.config, oe.state)).getOr({})
|
|
22305
22305
|
};
|
|
@@ -23032,8 +23032,8 @@ The behaviours that can trigger it are: ` + JSON.stringify(je(r, (l) => l.name),
|
|
|
23032
23032
|
toRemove: V
|
|
23033
23033
|
} = mb(t.styles, D), j = () => {
|
|
23034
23034
|
vt(V, (He) => Uo(r, He)), ws(r, L);
|
|
23035
|
-
}, oe = Q4(r), ae = vn(oe, t.classes),
|
|
23036
|
-
v0(r,
|
|
23035
|
+
}, oe = Q4(r), ae = vn(oe, t.classes), be = vn(t.classes, oe), Se = () => {
|
|
23036
|
+
v0(r, be), Ku(r, ae);
|
|
23037
23037
|
}, qe = (He) => {
|
|
23038
23038
|
ji(r, He);
|
|
23039
23039
|
}, we = () => {
|
|
@@ -23081,7 +23081,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(je(r, (l) => l.name),
|
|
|
23081
23081
|
f.set(ct);
|
|
23082
23082
|
}, ae = () => {
|
|
23083
23083
|
f.set(_0(l));
|
|
23084
|
-
},
|
|
23084
|
+
}, be = () => {
|
|
23085
23085
|
const ct = Jr(L), gt = ke(ct, (mn) => f.get().getByDom(mn).fold(() => [], Co));
|
|
23086
23086
|
j.set(gt);
|
|
23087
23087
|
}, Se = (ct) => {
|
|
@@ -23100,7 +23100,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(je(r, (l) => l.name),
|
|
|
23100
23100
|
connect: oe,
|
|
23101
23101
|
disconnect: ae,
|
|
23102
23102
|
element: L,
|
|
23103
|
-
syncComponents:
|
|
23103
|
+
syncComponents: be,
|
|
23104
23104
|
components: j.get,
|
|
23105
23105
|
events: V
|
|
23106
23106
|
};
|
|
@@ -23244,8 +23244,8 @@ The behaviours that can trigger it are: ` + JSON.stringify(je(r, (l) => l.name),
|
|
|
23244
23244
|
"bottom"
|
|
23245
23245
|
], (l) => Xt(r, l).map((f) => f5(t, f))), Uk = (t, r, l) => {
|
|
23246
23246
|
const f = (D, L) => r[D].map((V) => {
|
|
23247
|
-
const j = D === "top" || D === "bottom", oe = j ? l.top : l.left,
|
|
23248
|
-
return j ? kd(
|
|
23247
|
+
const j = D === "top" || D === "bottom", oe = j ? l.top : l.left, be = (D === "left" || D === "top" ? Math.max : Math.min)(V, L) + oe;
|
|
23248
|
+
return j ? kd(be, t.y, t.bottom) : kd(be, t.x, t.right);
|
|
23249
23249
|
}).getOr(L), b = f("left", t.x), x = f("top", t.y), S = f("right", t.right), E = f("bottom", t.bottom);
|
|
23250
23250
|
return Gr(b, x, S - b, E - x);
|
|
23251
23251
|
}, fm = "layout", J2 = (t) => t.x, Wk = (t, r) => t.x + t.width / 2 - r.width / 2, ew = (t, r) => t.x + t.width - r.width, tw = (t, r) => t.y - r.height, py = (t) => t.y + t.height, jk = (t, r) => t.y + t.height / 2 - r.height / 2, m5 = (t) => t.x + t.width, nw = (t, r) => t.x - r.width, ua = (t, r, l) => ll(J2(t), py(t), l.southeast(), gy(), "southeast", Sl(t, {
|
|
@@ -23365,8 +23365,8 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
23365
23365
|
]
|
|
23366
23366
|
}
|
|
23367
23367
|
]), aw = (t, r, l, f, b, x) => {
|
|
23368
|
-
const S = r.rect, E = S.x - l, D = S.y - f, L = S.width, V = S.height, j = b - (E + L), oe = x - (D + V), ae = Q.some(E),
|
|
23369
|
-
return Ob(r.direction, () => mh(t, ae,
|
|
23368
|
+
const S = r.rect, E = S.x - l, D = S.y - f, L = S.width, V = S.height, j = b - (E + L), oe = x - (D + V), ae = Q.some(E), be = Q.some(D), Se = Q.some(j), qe = Q.some(oe), we = Q.none();
|
|
23369
|
+
return Ob(r.direction, () => mh(t, ae, be, we, we), () => mh(t, we, be, Se, we), () => mh(t, ae, we, we, qe), () => mh(t, we, we, Se, qe), () => mh(t, ae, be, we, we), () => mh(t, ae, we, we, qe), () => mh(t, ae, be, we, we), () => mh(t, we, be, Se, we));
|
|
23370
23370
|
}, lw = (t, r) => t.fold(() => {
|
|
23371
23371
|
const l = r.rect;
|
|
23372
23372
|
return mh("absolute", Q.some(l.x), Q.some(l.y), Q.none(), Q.none());
|
|
@@ -23408,9 +23408,9 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
23408
23408
|
y: f,
|
|
23409
23409
|
right: b,
|
|
23410
23410
|
bottom: x
|
|
23411
|
-
} = r, { x: S, y: E, right: D, bottom: L, width: V, height: j } = t, oe = S >= l && S <= b, ae = E >= f && E <= x,
|
|
23411
|
+
} = r, { x: S, y: E, right: D, bottom: L, width: V, height: j } = t, oe = S >= l && S <= b, ae = E >= f && E <= x, be = oe && ae, Se = D <= b && D >= l, qe = L <= x && L >= f, we = Se && qe, Ue = Math.min(V, S >= l ? b - S : D - l), He = Math.min(j, E >= f ? x - E : L - f);
|
|
23412
23412
|
return {
|
|
23413
|
-
originInBounds:
|
|
23413
|
+
originInBounds: be,
|
|
23414
23414
|
sizeInBounds: we,
|
|
23415
23415
|
visibleW: Ue,
|
|
23416
23416
|
visibleH: He
|
|
@@ -23421,8 +23421,8 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
23421
23421
|
y: f,
|
|
23422
23422
|
right: b,
|
|
23423
23423
|
bottom: x
|
|
23424
|
-
} = r, { x: S, y: E, width: D, height: L } = t, V = Math.max(l, b - D), j = Math.max(f, x - L), oe = kd(S, l, V), ae = kd(E, f, j),
|
|
23425
|
-
return Gr(oe, ae,
|
|
23424
|
+
} = r, { x: S, y: E, width: D, height: L } = t, V = Math.max(l, b - D), j = Math.max(f, x - L), oe = kd(S, l, V), ae = kd(E, f, j), be = Math.min(oe + D, b) - oe, Se = Math.min(ae + L, x) - ae;
|
|
23425
|
+
return Gr(oe, ae, be, Se);
|
|
23426
23426
|
}, Gk = (t, r, l) => {
|
|
23427
23427
|
const f = te(r.bottom - l.y), b = te(l.bottom - r.y), x = d5(t, b, b, f), S = te(r.right - l.x), E = te(l.right - r.x);
|
|
23428
23428
|
return {
|
|
@@ -23430,7 +23430,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
23430
23430
|
maxHeight: x
|
|
23431
23431
|
};
|
|
23432
23432
|
}, Yk = (t, r, l, f) => {
|
|
23433
|
-
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),
|
|
23433
|
+
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), be = V && j, Se = be ? L : w5(L, S), qe = Se.width > 0 && Se.height > 0, { maxWidth: we, maxHeight: Ue } = Gk(t.direction, Se, f), He = {
|
|
23434
23434
|
rect: Se,
|
|
23435
23435
|
maxHeight: Ue,
|
|
23436
23436
|
maxWidth: we,
|
|
@@ -23443,11 +23443,11 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
23443
23443
|
layout: t.label,
|
|
23444
23444
|
testY: D
|
|
23445
23445
|
};
|
|
23446
|
-
return
|
|
23446
|
+
return be || t.alwaysFit ? gm.fit(He) : gm.nofit(He, oe, ae, qe);
|
|
23447
23447
|
}, x5 = (t, r, l, f, b, x) => {
|
|
23448
|
-
const S = f.width, E = f.height, D = (V, j, oe, ae,
|
|
23448
|
+
const S = f.width, E = f.height, D = (V, j, oe, ae, be) => {
|
|
23449
23449
|
const Se = V(l, f, b, t, x), qe = Yk(Se, S, E, x);
|
|
23450
|
-
return qe.fold(te(qe), (we, Ue, He, ct) => (
|
|
23450
|
+
return qe.fold(te(qe), (we, Ue, He, ct) => (be === ct ? He > ae || Ue > oe : !be && ct) ? qe : gm.nofit(j, oe, ae, be));
|
|
23451
23451
|
};
|
|
23452
23452
|
return Xo(r, (V, j) => {
|
|
23453
23453
|
const oe = dn(D, j);
|
|
@@ -23681,7 +23681,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
23681
23681
|
$s("onBottomLtr"),
|
|
23682
23682
|
$s("onBottomRtl")
|
|
23683
23683
|
]), Py = (t, r, l, f, b, x, S) => {
|
|
23684
|
-
const E = S.map(E5).getOr(!1), D = r.layouts.map((ae) => ae.onLtr(t)), L = r.layouts.map((ae) => ae.onRtl(t)), V = E ? r.layouts.bind((ae) => ae.onBottomLtr.map((
|
|
23684
|
+
const E = S.map(E5).getOr(!1), D = r.layouts.map((ae) => ae.onLtr(t)), L = r.layouts.map((ae) => ae.onRtl(t)), V = E ? r.layouts.bind((ae) => ae.onBottomLtr.map((be) => be(t))).or(D).getOr(b) : D.getOr(l), j = E ? r.layouts.bind((ae) => ae.onBottomRtl.map((be) => be(t))).or(L).getOr(x) : L.getOr(f);
|
|
23685
23685
|
return vw(V, j)(t);
|
|
23686
23686
|
}, bc = (t, r, l) => {
|
|
23687
23687
|
const f = r.hotspot, b = yy(l, f.element), x = Py(t.element, r, A0(), wb(), sw(), An(), Q.some(r.hotspot.element));
|
|
@@ -24069,8 +24069,8 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24069
24069
|
an(D, "visibility", "hidden");
|
|
24070
24070
|
const j = r.useFixed() ? ul() : bC(t);
|
|
24071
24071
|
E.placement(t, E, j).each((oe) => {
|
|
24072
|
-
const ae = x.orThunk(() => r.getBounds.map(Yn)),
|
|
24073
|
-
l.set(f.uid,
|
|
24072
|
+
const ae = x.orThunk(() => r.getBounds.map(Yn)), be = Ad(j, oe, ae, f, L, S.transition);
|
|
24073
|
+
l.set(f.uid, be);
|
|
24074
24074
|
}), V.fold(() => {
|
|
24075
24075
|
Uo(D, "visibility");
|
|
24076
24076
|
}, (oe) => {
|
|
@@ -24886,29 +24886,29 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24886
24886
|
Ir("state", r),
|
|
24887
24887
|
Ir("sendFocusIn", b)
|
|
24888
24888
|
]), S = (L, V, j, oe, ae) => {
|
|
24889
|
-
const
|
|
24890
|
-
return rr(
|
|
24889
|
+
const be = j(L, V, oe, ae);
|
|
24890
|
+
return rr(be, V.event).bind((Se) => Se(L, V, oe, ae));
|
|
24891
24891
|
}, D = {
|
|
24892
24892
|
schema: x,
|
|
24893
24893
|
processKey: S,
|
|
24894
24894
|
toEvents: (L, V) => {
|
|
24895
|
-
const j = L.focusInside !== Ll.OnFocusMode ? Q.none() : b(L).map((
|
|
24896
|
-
|
|
24897
|
-
})), oe = (
|
|
24895
|
+
const j = L.focusInside !== Ll.OnFocusMode ? Q.none() : b(L).map((be) => _t(hh(), (Se, qe) => {
|
|
24896
|
+
be(Se, L, V), qe.stop();
|
|
24897
|
+
})), oe = (be, Se) => {
|
|
24898
24898
|
const qe = Un(Yt.concat(Zt))(Se.event);
|
|
24899
|
-
L.focusInside === Ll.OnEnterOrSpaceMode && qe && Jf(
|
|
24900
|
-
we(
|
|
24899
|
+
L.focusInside === Ll.OnEnterOrSpaceMode && qe && Jf(be, Se) && b(L).each((we) => {
|
|
24900
|
+
we(be, L, V), Se.stop();
|
|
24901
24901
|
});
|
|
24902
24902
|
}, ae = [
|
|
24903
|
-
_t(La(), (
|
|
24904
|
-
S(
|
|
24905
|
-
oe(
|
|
24903
|
+
_t(La(), (be, Se) => {
|
|
24904
|
+
S(be, Se, l, L, V).fold(() => {
|
|
24905
|
+
oe(be, Se);
|
|
24906
24906
|
}, (qe) => {
|
|
24907
24907
|
Se.stop();
|
|
24908
24908
|
});
|
|
24909
24909
|
}),
|
|
24910
|
-
_t(sk(), (
|
|
24911
|
-
S(
|
|
24910
|
+
_t(sk(), (be, Se) => {
|
|
24911
|
+
S(be, Se, f, L, V).each((qe) => {
|
|
24912
24912
|
Se.stop();
|
|
24913
24913
|
});
|
|
24914
24914
|
})
|
|
@@ -24944,7 +24944,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24944
24944
|
}, V = (we, Ue, He) => {
|
|
24945
24945
|
const ct = He.cyclic ? qs : Gs;
|
|
24946
24946
|
return D(we, Ue, He, ct);
|
|
24947
|
-
}, j = (we) => Qu(we).bind(Sc).exists((Ue) => Jo(Ue, we)), oe = (we, Ue, He) => b(we, He).filter((ct) => !He.useTabstopAt(ct)).bind((ct) => (j(ct) ? L : V)(we, Ue, He)), ae = (we, Ue, He) => He.onEnter.bind((ct) => ct(we, Ue)),
|
|
24947
|
+
}, j = (we) => Qu(we).bind(Sc).exists((Ue) => Jo(Ue, we)), oe = (we, Ue, He) => b(we, He).filter((ct) => !He.useTabstopAt(ct)).bind((ct) => (j(ct) ? L : V)(we, Ue, He)), ae = (we, Ue, He) => He.onEnter.bind((ct) => ct(we, Ue)), be = (we, Ue, He) => He.onEscape.bind((ct) => ct(we, Ue)), Se = te([
|
|
24948
24948
|
ms(pr([
|
|
24949
24949
|
Jl,
|
|
24950
24950
|
Un(tt)
|
|
@@ -24955,7 +24955,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24955
24955
|
Un(Zt)
|
|
24956
24956
|
]), ae)
|
|
24957
24957
|
]), qe = te([
|
|
24958
|
-
ms(Un(bn),
|
|
24958
|
+
ms(Un(bn), be),
|
|
24959
24959
|
ms(Un(tt), oe)
|
|
24960
24960
|
]);
|
|
24961
24961
|
return Bd(r, fh.init, Se, qe, () => Q.some(S));
|
|
@@ -25758,12 +25758,12 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25758
25758
|
}, oe = (gt) => Xt(t.get(), gt).map((mn) => {
|
|
25759
25759
|
const Sn = Xt(l.get(), gt).getOr([]);
|
|
25760
25760
|
return [mn].concat(Sn);
|
|
25761
|
-
}), ae = (gt) => Xt(l.get(), gt).bind((mn) => mn.length > 1 ? Q.some(mn.slice(1)) : Q.none()),
|
|
25761
|
+
}), ae = (gt) => Xt(l.get(), gt).bind((mn) => mn.length > 1 ? Q.some(mn.slice(1)) : Q.none()), be = (gt) => Xt(l.get(), gt), Se = (gt) => qe(gt).bind(M8), qe = (gt) => Xt(r.get(), gt), we = (gt) => Xt(t.get(), gt);
|
|
25762
25762
|
return {
|
|
25763
25763
|
setMenuBuilt: E,
|
|
25764
25764
|
setContents: D,
|
|
25765
25765
|
expand: oe,
|
|
25766
|
-
refresh:
|
|
25766
|
+
refresh: be,
|
|
25767
25767
|
collapse: ae,
|
|
25768
25768
|
lookupMenu: qe,
|
|
25769
25769
|
lookupItem: we,
|
|
@@ -25838,7 +25838,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25838
25838
|
On[dr] = Ao;
|
|
25839
25839
|
});
|
|
25840
25840
|
}), l.set(On), On;
|
|
25841
|
-
}),
|
|
25841
|
+
}), be = (Ut, On) => {
|
|
25842
25842
|
const vo = ae(Ut);
|
|
25843
25843
|
Fs(vo, (Zo, eo) => {
|
|
25844
25844
|
const Ao = st(On, eo);
|
|
@@ -25869,17 +25869,17 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25869
25869
|
return Q.some(On);
|
|
25870
25870
|
{
|
|
25871
25871
|
const Zo = S(On);
|
|
25872
|
-
return b.expand(Zo).bind((eo) => (
|
|
25872
|
+
return b.expand(Zo).bind((eo) => (be(Ut, eo), Q.from(eo[0]).bind((Ao) => b.lookupMenu(Ao).bind((dr) => {
|
|
25873
25873
|
const or = we(Ut, Ao, dr);
|
|
25874
25874
|
return Ve(or.element) || wo.append(Ut, pu(or)), t.onOpenSubmenu(Ut, On, or, yo(eo)), vo === qe.HighlightSubmenu ? (ue.highlightFirst(or), Se(Ut, b, eo)) : (ue.dehighlightAll(or), Q.some(On));
|
|
25875
25875
|
}))));
|
|
25876
25876
|
}
|
|
25877
25877
|
}, He = (Ut, On) => {
|
|
25878
25878
|
const vo = S(On);
|
|
25879
|
-
return b.collapse(vo).bind((Zo) => (
|
|
25879
|
+
return b.collapse(vo).bind((Zo) => (be(Ut, Zo), Se(Ut, b, Zo).map((eo) => (t.onCollapseMenu(Ut, On, eo), eo))));
|
|
25880
25880
|
}, ct = (Ut, On) => {
|
|
25881
25881
|
const vo = S(On);
|
|
25882
|
-
return b.refresh(vo).bind((Zo) => (
|
|
25882
|
+
return b.refresh(vo).bind((Zo) => (be(Ut, Zo), Se(Ut, b, Zo)));
|
|
25883
25883
|
}, gt = (Ut, On) => X0(On.element) ? Q.none() : Ue(Ut, On, qe.HighlightSubmenu), mn = (Ut, On) => X0(On.element) ? Q.none() : He(Ut, On), Sn = (Ut, On) => He(Ut, On).orThunk(() => t.onEscape(Ut, On).map(() => Ut)), xt = (Ut) => (On, vo) => _d(vo.getSource(), `.${t.markers.item}`).bind((Zo) => On.getSystem().getByDom(Zo).toOptional().bind((eo) => Ut(On, eo).map(kt))), En = nr([
|
|
25884
25884
|
_t(RE(), (Ut, On) => {
|
|
25885
25885
|
const vo = On.event.item;
|
|
@@ -26059,12 +26059,12 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26059
26059
|
onRepositionMenu: (L, V, j) => {
|
|
26060
26060
|
const oe = x().getOrDie();
|
|
26061
26061
|
kl.positionWithinBounds(oe, V, l, b()), vt(j, (ae) => {
|
|
26062
|
-
const
|
|
26062
|
+
const be = D(ae.triggeringPath);
|
|
26063
26063
|
kl.position(oe, ae.triggeredMenu, {
|
|
26064
26064
|
anchor: {
|
|
26065
26065
|
type: "submenu",
|
|
26066
26066
|
item: ae.triggeringItem,
|
|
26067
|
-
...
|
|
26067
|
+
...be
|
|
26068
26068
|
}
|
|
26069
26069
|
});
|
|
26070
26070
|
});
|
|
@@ -26073,20 +26073,20 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26073
26073
|
}, hT = (t, r) => {
|
|
26074
26074
|
const l = (oe, ae) => t.getRelated(oe).exists((Se) => lg(Se, ae)), f = (oe, ae) => {
|
|
26075
26075
|
_s.setContent(oe, ae);
|
|
26076
|
-
}, b = (oe, ae,
|
|
26076
|
+
}, b = (oe, ae, be) => {
|
|
26077
26077
|
const Se = Q.none;
|
|
26078
|
-
x(oe, ae,
|
|
26079
|
-
}, x = (oe, ae,
|
|
26078
|
+
x(oe, ae, be, Se);
|
|
26079
|
+
}, x = (oe, ae, be, Se) => {
|
|
26080
26080
|
const qe = t.lazySink(oe).getOrDie();
|
|
26081
|
-
_s.openWhileCloaked(oe, ae, () => kl.positionWithinBounds(qe, oe,
|
|
26081
|
+
_s.openWhileCloaked(oe, ae, () => kl.positionWithinBounds(qe, oe, be, Se())), kn.setValue(oe, Q.some({
|
|
26082
26082
|
mode: "position",
|
|
26083
|
-
config:
|
|
26083
|
+
config: be,
|
|
26084
26084
|
getBounds: Se
|
|
26085
26085
|
}));
|
|
26086
|
-
}, S = (oe, ae,
|
|
26087
|
-
E(oe, ae,
|
|
26088
|
-
}, E = (oe, ae,
|
|
26089
|
-
const qe = sV(t, oe, ae,
|
|
26086
|
+
}, S = (oe, ae, be) => {
|
|
26087
|
+
E(oe, ae, be, Q.none);
|
|
26088
|
+
}, E = (oe, ae, be, Se) => {
|
|
26089
|
+
const qe = sV(t, oe, ae, be, Se);
|
|
26090
26090
|
_s.open(oe, qe), kn.setValue(oe, Q.some({
|
|
26091
26091
|
mode: "menu",
|
|
26092
26092
|
menu: qe
|
|
@@ -26100,8 +26100,8 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26100
26100
|
_s.getState(oe).each(o1.repositionMenus);
|
|
26101
26101
|
break;
|
|
26102
26102
|
case "position":
|
|
26103
|
-
const
|
|
26104
|
-
kl.positionWithinBounds(
|
|
26103
|
+
const be = t.lazySink(oe).getOrDie();
|
|
26104
|
+
kl.positionWithinBounds(be, oe, ae.config, ae.getBounds());
|
|
26105
26105
|
break;
|
|
26106
26106
|
}
|
|
26107
26107
|
});
|
|
@@ -26121,7 +26121,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26121
26121
|
dom: t.dom,
|
|
26122
26122
|
behaviours: Mi(t.inlineBehaviours, [
|
|
26123
26123
|
_s.config({
|
|
26124
|
-
isPartOf: (oe, ae,
|
|
26124
|
+
isPartOf: (oe, ae, be) => lg(ae, be) || l(oe, be),
|
|
26125
26125
|
getAttachPoint: (oe) => t.lazySink(oe).getOrDie(),
|
|
26126
26126
|
onOpen: (oe) => {
|
|
26127
26127
|
t.onShow(oe);
|
|
@@ -26890,7 +26890,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26890
26890
|
HTMLFormElement: j,
|
|
26891
26891
|
DOMParser: oe,
|
|
26892
26892
|
trustedTypes: ae
|
|
26893
|
-
} = t,
|
|
26893
|
+
} = t, be = D.prototype, Se = Ov(be, "cloneNode"), qe = Ov(be, "remove"), we = Ov(be, "nextSibling"), Ue = Ov(be, "childNodes"), He = Ov(be, "parentNode");
|
|
26894
26894
|
if (typeof S == "function") {
|
|
26895
26895
|
const ys = l.createElement("template");
|
|
26896
26896
|
ys.content && ys.content.ownerDocument && (l = ys.content.ownerDocument);
|
|
@@ -27316,17 +27316,17 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27316
27316
|
const r = Pn("notification-text"), l = Qs({
|
|
27317
27317
|
dom: km(`<p id=${r}>${f6(t.backstageProvider.translate(t.text))}</p>`),
|
|
27318
27318
|
behaviours: Gt([wo.config({})])
|
|
27319
|
-
}), f = (
|
|
27319
|
+
}), f = (be) => ({
|
|
27320
27320
|
dom: {
|
|
27321
27321
|
tag: "div",
|
|
27322
27322
|
classes: ["tox-bar"],
|
|
27323
|
-
styles: { width: `${
|
|
27323
|
+
styles: { width: `${be}%` }
|
|
27324
27324
|
}
|
|
27325
|
-
}), b = (
|
|
27325
|
+
}), b = (be) => ({
|
|
27326
27326
|
dom: {
|
|
27327
27327
|
tag: "div",
|
|
27328
27328
|
classes: ["tox-text"],
|
|
27329
|
-
innerHtml: `${
|
|
27329
|
+
innerHtml: `${be}%`
|
|
27330
27330
|
}
|
|
27331
27331
|
}), x = Qs({
|
|
27332
27332
|
dom: {
|
|
@@ -27348,8 +27348,8 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27348
27348
|
],
|
|
27349
27349
|
behaviours: Gt([wo.config({})])
|
|
27350
27350
|
}), D = {
|
|
27351
|
-
updateProgress: (
|
|
27352
|
-
|
|
27351
|
+
updateProgress: (be, Se) => {
|
|
27352
|
+
be.getSystem().isConnected() && x.getOpt(be).each((qe) => {
|
|
27353
27353
|
wo.set(qe, [
|
|
27354
27354
|
{
|
|
27355
27355
|
dom: {
|
|
@@ -27362,16 +27362,16 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27362
27362
|
]);
|
|
27363
27363
|
});
|
|
27364
27364
|
},
|
|
27365
|
-
updateText: (
|
|
27366
|
-
if (
|
|
27367
|
-
const qe = l.get(
|
|
27365
|
+
updateText: (be, Se) => {
|
|
27366
|
+
if (be.getSystem().isConnected()) {
|
|
27367
|
+
const qe = l.get(be);
|
|
27368
27368
|
wo.set(qe, [Qr(Se)]);
|
|
27369
27369
|
}
|
|
27370
27370
|
}
|
|
27371
27371
|
}, L = Ke([
|
|
27372
27372
|
t.icon.toArray(),
|
|
27373
27373
|
t.level.toArray(),
|
|
27374
|
-
t.level.bind((
|
|
27374
|
+
t.level.bind((be) => Q.from(EV[be])).toArray()
|
|
27375
27375
|
]), V = Qs(Ta.sketch({
|
|
27376
27376
|
dom: {
|
|
27377
27377
|
tag: "button",
|
|
@@ -27391,8 +27391,8 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27391
27391
|
zr.config({}),
|
|
27392
27392
|
gi.config({ ...t.backstageProvider.tooltips.getConfig({ tooltipText: t.backstageProvider.translate("Close") }) })
|
|
27393
27393
|
]),
|
|
27394
|
-
action: (
|
|
27395
|
-
t.onAction(
|
|
27394
|
+
action: (be) => {
|
|
27395
|
+
t.onAction(be);
|
|
27396
27396
|
}
|
|
27397
27397
|
})), j = _V(L, {
|
|
27398
27398
|
tag: "div",
|
|
@@ -27416,10 +27416,10 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27416
27416
|
role: "alert",
|
|
27417
27417
|
"aria-labelledby": r
|
|
27418
27418
|
},
|
|
27419
|
-
classes: t.level.map((
|
|
27419
|
+
classes: t.level.map((be) => [
|
|
27420
27420
|
"tox-notification",
|
|
27421
27421
|
"tox-notification--in",
|
|
27422
|
-
`tox-notification--${
|
|
27422
|
+
`tox-notification--${be}`
|
|
27423
27423
|
]).getOr([
|
|
27424
27424
|
"tox-notification",
|
|
27425
27425
|
"tox-notification--in"
|
|
@@ -27430,7 +27430,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27430
27430
|
go.config({}),
|
|
27431
27431
|
Xn.config({
|
|
27432
27432
|
mode: "special",
|
|
27433
|
-
onEscape: (
|
|
27433
|
+
onEscape: (be) => (t.onAction(be), Q.some(!0))
|
|
27434
27434
|
})
|
|
27435
27435
|
]),
|
|
27436
27436
|
components: ae.concat(t.progress ? [x.asSpec()] : []).concat([V.asSpec()]),
|
|
@@ -27468,7 +27468,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27468
27468
|
};
|
|
27469
27469
|
return {
|
|
27470
27470
|
open: (j, oe, ae) => {
|
|
27471
|
-
const
|
|
27471
|
+
const be = () => {
|
|
27472
27472
|
const He = (Sn) => {
|
|
27473
27473
|
wo.remove(Sn, qe), we();
|
|
27474
27474
|
}, ct = (Sn, xt) => {
|
|
@@ -27494,7 +27494,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27494
27494
|
], j.type) ? j.type : void 0,
|
|
27495
27495
|
progress: j.progressBar === !0,
|
|
27496
27496
|
icon: j.icon,
|
|
27497
|
-
onAction:
|
|
27497
|
+
onAction: be,
|
|
27498
27498
|
iconProvider: b.providers.icons,
|
|
27499
27499
|
backstageProvider: b.providers
|
|
27500
27500
|
}));
|
|
@@ -27549,7 +27549,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27549
27549
|
f.set(He), l.add(He), ni.showWithinBounds(He, ct, { anchor: mn }, S);
|
|
27550
27550
|
}
|
|
27551
27551
|
_e(j.timeout) && j.timeout > 0 && fT.setEditorTimeout(t, () => {
|
|
27552
|
-
|
|
27552
|
+
be();
|
|
27553
27553
|
}, j.timeout);
|
|
27554
27554
|
const we = () => {
|
|
27555
27555
|
f.on((He) => {
|
|
@@ -27557,7 +27557,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27557
27557
|
});
|
|
27558
27558
|
};
|
|
27559
27559
|
return {
|
|
27560
|
-
close:
|
|
27560
|
+
close: be,
|
|
27561
27561
|
reposition: we,
|
|
27562
27562
|
text: (He) => {
|
|
27563
27563
|
LT.updateText(qe, He);
|
|
@@ -28640,7 +28640,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
28640
28640
|
var Bp = tinymce.util.Tools.resolve("tinymce.util.LocalStorage");
|
|
28641
28641
|
const Hx = {}, $7 = (t, r = 10) => {
|
|
28642
28642
|
const l = Bp.getItem(t), f = w(l) ? JSON.parse(l) : [], x = ((L) => r - L.length < 0 ? L.slice(0, r) : L)(f), S = (L) => {
|
|
28643
|
-
|
|
28643
|
+
pe(x, L).each(E), x.unshift(L), x.length > r && x.pop(), Bp.setItem(t, JSON.stringify(x));
|
|
28644
28644
|
}, E = (L) => {
|
|
28645
28645
|
x.splice(L, 1);
|
|
28646
28646
|
};
|
|
@@ -29327,21 +29327,21 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29327
29327
|
data: V,
|
|
29328
29328
|
highlightOnOpen: S,
|
|
29329
29329
|
onOpenMenu: (oe, ae) => {
|
|
29330
|
-
const
|
|
29331
|
-
kl.position(
|
|
29330
|
+
const be = D().getOrDie();
|
|
29331
|
+
kl.position(be, ae, { anchor: l }), _s.decloak(b);
|
|
29332
29332
|
},
|
|
29333
|
-
onOpenSubmenu: (oe, ae,
|
|
29333
|
+
onOpenSubmenu: (oe, ae, be) => {
|
|
29334
29334
|
const Se = D().getOrDie();
|
|
29335
|
-
kl.position(Se,
|
|
29335
|
+
kl.position(Se, be, {
|
|
29336
29336
|
anchor: {
|
|
29337
29337
|
type: "submenu",
|
|
29338
29338
|
item: ae
|
|
29339
29339
|
}
|
|
29340
29340
|
}), _s.decloak(b);
|
|
29341
29341
|
},
|
|
29342
|
-
onRepositionMenu: (oe, ae,
|
|
29342
|
+
onRepositionMenu: (oe, ae, be) => {
|
|
29343
29343
|
const Se = D().getOrDie();
|
|
29344
|
-
kl.position(Se, ae, { anchor: l }), vt(
|
|
29344
|
+
kl.position(Se, ae, { anchor: l }), vt(be, (qe) => {
|
|
29345
29345
|
kl.position(Se, qe.triggeredMenu, {
|
|
29346
29346
|
anchor: {
|
|
29347
29347
|
type: "submenu",
|
|
@@ -29690,7 +29690,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29690
29690
|
root: bt.fromDom(t.getBody())
|
|
29691
29691
|
}
|
|
29692
29692
|
}, wH(x$("autocompleter-value", !0, Ue, He, { menuType: "normal" }), He, a3.ContentFocus, "normal")), V().each(ue.highlightFirst);
|
|
29693
|
-
},
|
|
29693
|
+
}, be = (we) => {
|
|
29694
29694
|
const Ue = oe(we);
|
|
29695
29695
|
Ue.length > 0 ? (ae(we, Ue), un(bt.fromDom(t.getBody()), "aria-owns", l), t.inline || Se()) : L();
|
|
29696
29696
|
}, Se = () => {
|
|
@@ -29712,8 +29712,8 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29712
29712
|
});
|
|
29713
29713
|
};
|
|
29714
29714
|
t.on("AutocompleterStart", ({ lookupData: we }) => {
|
|
29715
|
-
b.set(!0), f.set(!1),
|
|
29716
|
-
}), t.on("AutocompleterUpdate", ({ lookupData: we }) =>
|
|
29715
|
+
b.set(!0), f.set(!1), be(we);
|
|
29716
|
+
}), t.on("AutocompleterUpdate", ({ lookupData: we }) => be(we)), t.on("AutocompleterUpdateActiveRange", ({ range: we }) => x.set(we)), t.on("AutocompleterEnd", () => {
|
|
29717
29717
|
L(), b.set(!1), f.set(!1), x.clear();
|
|
29718
29718
|
});
|
|
29719
29719
|
const qe = {
|
|
@@ -29810,10 +29810,10 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29810
29810
|
"dragover",
|
|
29811
29811
|
"drop",
|
|
29812
29812
|
"keyup"
|
|
29813
|
-
]), (ae) => Kl(t, ae, (
|
|
29814
|
-
b.fireIfReady(
|
|
29815
|
-
qe &&
|
|
29816
|
-
}), l.triggerEvent(ae,
|
|
29813
|
+
]), (ae) => Kl(t, ae, (be) => {
|
|
29814
|
+
b.fireIfReady(be, ae).each((qe) => {
|
|
29815
|
+
qe && be.kill();
|
|
29816
|
+
}), l.triggerEvent(ae, be) && be.kill();
|
|
29817
29817
|
})), S = Is(), E = Kl(t, "paste", (ae) => {
|
|
29818
29818
|
b.fireIfReady(ae, "paste").each((Se) => {
|
|
29819
29819
|
Se && ae.kill();
|
|
@@ -30013,7 +30013,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30013
30013
|
ae(we, Ue);
|
|
30014
30014
|
},
|
|
30015
30015
|
broadcastEvent: (we, Ue) => {
|
|
30016
|
-
|
|
30016
|
+
be(we, Ue);
|
|
30017
30017
|
},
|
|
30018
30018
|
isConnected: kt
|
|
30019
30019
|
}, S = (we) => {
|
|
@@ -30043,7 +30043,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30043
30043
|
channels: we,
|
|
30044
30044
|
data: Ue
|
|
30045
30045
|
});
|
|
30046
|
-
},
|
|
30046
|
+
}, be = (we, Ue) => {
|
|
30047
30047
|
const He = l.filter(we);
|
|
30048
30048
|
return bP(He, Ue);
|
|
30049
30049
|
}, Se = (we) => l.getById(we).fold(() => Eo.error(new Error('Could not find component with uid: "' + we + '" in system.')), Eo.value), qe = (we) => {
|
|
@@ -30062,7 +30062,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30062
30062
|
removeFromWorld: E,
|
|
30063
30063
|
broadcast: oe,
|
|
30064
30064
|
broadcastOn: ae,
|
|
30065
|
-
broadcastEvent:
|
|
30065
|
+
broadcastEvent: be
|
|
30066
30066
|
};
|
|
30067
30067
|
}, gB = (t, r) => ({
|
|
30068
30068
|
dom: {
|
|
@@ -30181,14 +30181,14 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30181
30181
|
components: [Qr(r.translate(t))]
|
|
30182
30182
|
}), Su = Pn("form-component-change"), OB = Pn("form-component-input"), Kx = Pn("form-close"), Lp = Pn("form-cancel"), wg = Pn("form-action"), Jx = Pn("form-submit"), yP = Pn("form-block"), l3 = Pn("form-unblock"), yB = Pn("form-tabchange"), vB = Pn("form-resize"), NH = (t, r, l) => {
|
|
30183
30183
|
const f = t.label.map((ae) => vg(ae, r)), b = r.icons(), x = (ae) => {
|
|
30184
|
-
var
|
|
30185
|
-
return (
|
|
30186
|
-
}, S = (ae) => (
|
|
30184
|
+
var be;
|
|
30185
|
+
return (be = b[ae]) !== null && be !== void 0 ? be : ae;
|
|
30186
|
+
}, S = (ae) => (be, Se) => {
|
|
30187
30187
|
_d(Se.event.target, "[data-collection-item-value]").each((qe) => {
|
|
30188
|
-
ae(
|
|
30188
|
+
ae(be, Se, qe, mo(qe, "data-collection-item-value"));
|
|
30189
30189
|
});
|
|
30190
|
-
}, E = (ae,
|
|
30191
|
-
const qe = r.checkUiComponentContext("mode:design").shouldDisable || r.isDisabled() ? " tox-collection__item--state-disabled" : "", we = je(
|
|
30190
|
+
}, E = (ae, be) => {
|
|
30191
|
+
const qe = r.checkUiComponentContext("mode:design").shouldDisable || r.isDisabled() ? " tox-collection__item--state-disabled" : "", we = je(be, (ct) => {
|
|
30192
30192
|
const gt = Ch.translate(ct.text), mn = t.columns === 1 ? `<div class="tox-collection__item-label">${gt}</div>` : "", Sn = `<div class="tox-collection__item-icon">${x(ct.icon)}</div>`, xt = {
|
|
30193
30193
|
_: " ",
|
|
30194
30194
|
" - ": " ",
|
|
@@ -30197,34 +30197,34 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30197
30197
|
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>`;
|
|
30198
30198
|
}), Ue = t.columns !== "auto" && t.columns > 1 ? rn(we, t.columns) : [we], He = je(Ue, (ct) => `<div class="tox-collection__group">${ct.join("")}</div>`);
|
|
30199
30199
|
ji(ae.element, He.join(""));
|
|
30200
|
-
}, D = S((ae,
|
|
30201
|
-
|
|
30200
|
+
}, D = S((ae, be, Se, qe) => {
|
|
30201
|
+
be.stop(), r.checkUiComponentContext("mode:design").shouldDisable || r.isDisabled() || Vn(ae, wg, {
|
|
30202
30202
|
name: t.name,
|
|
30203
30203
|
value: qe
|
|
30204
30204
|
});
|
|
30205
30205
|
}), L = [
|
|
30206
|
-
_t(uh(), S((ae,
|
|
30206
|
+
_t(uh(), S((ae, be, Se) => {
|
|
30207
30207
|
bu(Se, !0);
|
|
30208
30208
|
})),
|
|
30209
30209
|
_t(Yg(), D),
|
|
30210
30210
|
_t(j1(), D),
|
|
30211
|
-
_t(dh(), S((ae,
|
|
30211
|
+
_t(dh(), S((ae, be, Se) => {
|
|
30212
30212
|
Er(ae.element, "." + tO).each((qe) => {
|
|
30213
30213
|
Yr(qe, tO);
|
|
30214
30214
|
}), mi(Se, tO);
|
|
30215
30215
|
})),
|
|
30216
30216
|
_t(ok(), S((ae) => {
|
|
30217
|
-
Er(ae.element, "." + tO).each((
|
|
30218
|
-
Yr(
|
|
30217
|
+
Er(ae.element, "." + tO).each((be) => {
|
|
30218
|
+
Yr(be, tO), Ri(be);
|
|
30219
30219
|
});
|
|
30220
30220
|
})),
|
|
30221
|
-
om(S((ae,
|
|
30221
|
+
om(S((ae, be, Se, qe) => {
|
|
30222
30222
|
Vn(ae, wg, {
|
|
30223
30223
|
name: t.name,
|
|
30224
30224
|
value: qe
|
|
30225
30225
|
});
|
|
30226
30226
|
}))
|
|
30227
|
-
], V = (ae,
|
|
30227
|
+
], V = (ae, be) => je(Oc(ae.element, ".tox-collection__item"), be), j = Es.parts.field({
|
|
30228
30228
|
dom: {
|
|
30229
30229
|
tag: "div",
|
|
30230
30230
|
classes: ["tox-collection"].concat(t.columns !== 1 ? ["tox-collection--grid"] : ["tox-collection--list"])
|
|
@@ -30235,13 +30235,13 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30235
30235
|
zn.config({
|
|
30236
30236
|
disabled: () => r.checkUiComponentContext(t.context).shouldDisable,
|
|
30237
30237
|
onDisabled: (ae) => {
|
|
30238
|
-
V(ae, (
|
|
30239
|
-
mi(
|
|
30238
|
+
V(ae, (be) => {
|
|
30239
|
+
mi(be, "tox-collection__item--state-disabled"), un(be, "aria-disabled", !0);
|
|
30240
30240
|
});
|
|
30241
30241
|
},
|
|
30242
30242
|
onEnabled: (ae) => {
|
|
30243
|
-
V(ae, (
|
|
30244
|
-
Yr(
|
|
30243
|
+
V(ae, (be) => {
|
|
30244
|
+
Yr(be, "tox-collection__item--state-disabled"), ce(be, "aria-disabled");
|
|
30245
30245
|
});
|
|
30246
30246
|
}
|
|
30247
30247
|
}),
|
|
@@ -30251,8 +30251,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30251
30251
|
...r.tooltips.getConfig({
|
|
30252
30252
|
tooltipText: "",
|
|
30253
30253
|
onShow: (ae) => {
|
|
30254
|
-
Er(ae.element, "." + tO + "[data-mce-tooltip]").each((
|
|
30255
|
-
is(
|
|
30254
|
+
Er(ae.element, "." + tO + "[data-mce-tooltip]").each((be) => {
|
|
30255
|
+
is(be, "data-mce-tooltip").each((Se) => {
|
|
30256
30256
|
gi.setComponents(ae, r.tooltips.getComponents({ tooltipText: Se }));
|
|
30257
30257
|
});
|
|
30258
30258
|
});
|
|
@@ -30289,8 +30289,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30289
30289
|
mode: "memory",
|
|
30290
30290
|
initialValue: l.getOr([])
|
|
30291
30291
|
},
|
|
30292
|
-
onSetValue: (ae,
|
|
30293
|
-
E(ae,
|
|
30292
|
+
onSetValue: (ae, be) => {
|
|
30293
|
+
E(ae, be), t.columns === "auto" && L$(ae, 5, "tox-collection__item").each(({ numRows: Se, numColumns: qe }) => {
|
|
30294
30294
|
Xn.setGridSize(ae, Se, qe);
|
|
30295
30295
|
}), qo(ae, vB);
|
|
30296
30296
|
}
|
|
@@ -30631,13 +30631,13 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30631
30631
|
const S = (t - x) % f, E = Math.round(S / f), D = Math.floor((t - x) / f), L = Math.floor((l - x) / f), V = Math.min(L, D + E), j = x + V * f;
|
|
30632
30632
|
return Math.max(x, j);
|
|
30633
30633
|
}), FB = (t, r, l) => Math.min(l, Math.max(t, r)) - r, LP = (t) => {
|
|
30634
|
-
const { min: r, max: l, range: f, value: b, step: x, snap: S, snapStart: E, rounded: D, hasMinEdge: L, hasMaxEdge: V, minBound: j, maxBound: oe, screenRange: ae } = t,
|
|
30634
|
+
const { min: r, max: l, range: f, value: b, step: x, snap: S, snapStart: E, rounded: D, hasMinEdge: L, hasMaxEdge: V, minBound: j, maxBound: oe, screenRange: ae } = t, be = L ? r - 1 : r, Se = V ? l + 1 : l;
|
|
30635
30635
|
if (b < j)
|
|
30636
|
-
return
|
|
30636
|
+
return be;
|
|
30637
30637
|
if (b > oe)
|
|
30638
30638
|
return Se;
|
|
30639
30639
|
{
|
|
30640
|
-
const qe = FB(b, j, oe), we = QB(qe / ae * f + r,
|
|
30640
|
+
const qe = FB(b, j, oe), we = QB(qe / ae * f + r, be, Se);
|
|
30641
30641
|
return S && we >= r && we <= l ? nU(we, r, l, x, E) : D ? Math.round(we) : we;
|
|
30642
30642
|
}
|
|
30643
30643
|
}, ZB = (t) => {
|
|
@@ -30925,7 +30925,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30925
30925
|
V.value.set(mn);
|
|
30926
30926
|
const Sn = b(gt);
|
|
30927
30927
|
oe(gt, Sn);
|
|
30928
|
-
},
|
|
30928
|
+
}, be = (gt, mn) => {
|
|
30929
30929
|
ae(gt, mn);
|
|
30930
30930
|
const Sn = b(gt);
|
|
30931
30931
|
return t.onChange(gt, Sn, mn), Q.some(!0);
|
|
@@ -30968,7 +30968,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30968
30968
|
]),
|
|
30969
30969
|
events: nr([
|
|
30970
30970
|
_t(eS(), (gt, mn) => {
|
|
30971
|
-
|
|
30971
|
+
be(gt, mn.event.value);
|
|
30972
30972
|
}),
|
|
30973
30973
|
fr((gt, mn) => {
|
|
30974
30974
|
const Sn = V.getInitialValue();
|
|
@@ -31304,8 +31304,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31304
31304
|
if (ae === null)
|
|
31305
31305
|
return;
|
|
31306
31306
|
ae.fillStyle = V, ae.fillRect(0, 0, j, oe);
|
|
31307
|
-
const
|
|
31308
|
-
|
|
31307
|
+
const be = ae.createLinearGradient(0, 0, j, 0);
|
|
31308
|
+
be.addColorStop(0, "rgba(255,255,255,1)"), be.addColorStop(1, "rgba(255,255,255,0)"), ae.fillStyle = be, ae.fillRect(0, 0, j, oe);
|
|
31309
31309
|
const Se = ae.createLinearGradient(0, 0, 0, oe);
|
|
31310
31310
|
Se.addColorStop(0, "rgba(0,0,0,0)"), Se.addColorStop(1, "rgba(0,0,0,1)"), ae.fillStyle = Se, ae.fillRect(0, 0, j, oe);
|
|
31311
31311
|
}, x = (L, V) => {
|
|
@@ -31327,13 +31327,13 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31327
31327
|
const V = te({
|
|
31328
31328
|
x: 0,
|
|
31329
31329
|
y: 0
|
|
31330
|
-
}), j = (
|
|
31331
|
-
_e(qe) || un(
|
|
31330
|
+
}), j = (be, Se, qe) => {
|
|
31331
|
+
_e(qe) || un(be.element, "aria-valuetext", t([
|
|
31332
31332
|
"Saturation {0}%, Brightness {1}%",
|
|
31333
31333
|
Math.floor(qe.x),
|
|
31334
31334
|
Math.floor(100 - qe.y)
|
|
31335
|
-
])), Vn(
|
|
31336
|
-
}, oe = (
|
|
31335
|
+
])), Vn(be, iN, { value: qe });
|
|
31336
|
+
}, oe = (be, Se, qe, we) => {
|
|
31337
31337
|
b(qe.element.dom, S7(k7));
|
|
31338
31338
|
}, ae = Gt([
|
|
31339
31339
|
Os.config({ find: Q.some }),
|
|
@@ -31383,12 +31383,12 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31383
31383
|
const E = SU(t, r, S.onValidHex, S.onInvalidHex, l, f), D = kU(t, r), L = (xt) => (100 - xt) / 100 * 360, V = (xt) => 100 - xt / 360 * 100, j = {
|
|
31384
31384
|
paletteRgba: In(k7),
|
|
31385
31385
|
paletteHue: In(0)
|
|
31386
|
-
}, oe = Qs(yU(t, r)), ae = Qs(D.sketch({})),
|
|
31386
|
+
}, oe = Qs(yU(t, r)), ae = Qs(D.sketch({})), be = Qs(E.sketch({})), Se = (xt, En, fn) => {
|
|
31387
31387
|
ae.getOpt(xt).each((Bn) => {
|
|
31388
31388
|
D.setHue(Bn, fn);
|
|
31389
31389
|
});
|
|
31390
31390
|
}, qe = (xt, En) => {
|
|
31391
|
-
|
|
31391
|
+
be.getOpt(xt).each((fn) => {
|
|
31392
31392
|
E.updateHex(fn, En);
|
|
31393
31393
|
});
|
|
31394
31394
|
}, we = (xt, En, fn) => {
|
|
@@ -31438,7 +31438,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31438
31438
|
components: [
|
|
31439
31439
|
ae.asSpec(),
|
|
31440
31440
|
oe.asSpec(),
|
|
31441
|
-
|
|
31441
|
+
be.asSpec()
|
|
31442
31442
|
],
|
|
31443
31443
|
behaviours: Gt([
|
|
31444
31444
|
Po("colour-picker-events", [
|
|
@@ -31446,7 +31446,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31446
31446
|
_t(iN, gt()),
|
|
31447
31447
|
_t(rN, mn())
|
|
31448
31448
|
]),
|
|
31449
|
-
Os.config({ find: (xt) =>
|
|
31449
|
+
Os.config({ find: (xt) => be.getOpt(xt) }),
|
|
31450
31450
|
Xn.config({ mode: "acyclic" })
|
|
31451
31451
|
])
|
|
31452
31452
|
};
|
|
@@ -31602,19 +31602,19 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31602
31602
|
}, $U = (t, r, l) => {
|
|
31603
31603
|
const f = (oe, ae) => {
|
|
31604
31604
|
ae.stop();
|
|
31605
|
-
}, b = (oe) => (ae,
|
|
31605
|
+
}, b = (oe) => (ae, be) => {
|
|
31606
31606
|
vt(oe, (Se) => {
|
|
31607
|
-
Se(ae,
|
|
31607
|
+
Se(ae, be);
|
|
31608
31608
|
});
|
|
31609
31609
|
}, x = (oe, ae) => {
|
|
31610
|
-
var
|
|
31610
|
+
var be;
|
|
31611
31611
|
if (!zn.isDisabled(oe)) {
|
|
31612
31612
|
const Se = ae.event.raw;
|
|
31613
|
-
Vn(oe, $3, { files: (
|
|
31613
|
+
Vn(oe, $3, { files: (be = Se.dataTransfer) === null || be === void 0 ? void 0 : be.files });
|
|
31614
31614
|
}
|
|
31615
31615
|
}, S = (oe, ae) => {
|
|
31616
|
-
const
|
|
31617
|
-
Vn(oe, $3, { files:
|
|
31616
|
+
const be = ae.event.raw.target;
|
|
31617
|
+
Vn(oe, $3, { files: be.files });
|
|
31618
31618
|
}, E = (oe, ae) => {
|
|
31619
31619
|
ae && (kn.setValue(oe, ON(ae, r)), Vn(oe, Su, { name: t.name }));
|
|
31620
31620
|
}, D = Qs({
|
|
@@ -31699,8 +31699,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31699
31699
|
}]
|
|
31700
31700
|
};
|
|
31701
31701
|
return Yx(L, j, ["tox-form__group--stretched"], [Po("handle-files", [_t($3, (oe, ae) => {
|
|
31702
|
-
Es.getField(oe).each((
|
|
31703
|
-
E(
|
|
31702
|
+
Es.getField(oe).each((be) => {
|
|
31703
|
+
E(be, ae.event.files);
|
|
31704
31704
|
});
|
|
31705
31705
|
})])]);
|
|
31706
31706
|
}, PU = (t, r) => ({
|
|
@@ -31840,9 +31840,9 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31840
31840
|
channels: {
|
|
31841
31841
|
[cS]: {
|
|
31842
31842
|
onReceive: (oe, ae) => {
|
|
31843
|
-
ae.newFocus.each((
|
|
31843
|
+
ae.newFocus.each((be) => {
|
|
31844
31844
|
Ra(oe.element).each((Se) => {
|
|
31845
|
-
(Jo(oe.element,
|
|
31845
|
+
(Jo(oe.element, be) ? mi : Yr)(Se, "tox-navobj-bordered-focus");
|
|
31846
31846
|
});
|
|
31847
31847
|
});
|
|
31848
31848
|
}
|
|
@@ -31891,9 +31891,9 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31891
31891
|
const V = { url: L.url };
|
|
31892
31892
|
L.zoom.each((oe) => V.zoom = oe), L.cachedWidth.each((oe) => V.cachedWidth = oe), L.cachedHeight.each((oe) => V.cachedHeight = oe), l.set(V);
|
|
31893
31893
|
const j = () => {
|
|
31894
|
-
const { cachedWidth: oe, cachedHeight: ae, zoom:
|
|
31894
|
+
const { cachedWidth: oe, cachedHeight: ae, zoom: be } = V;
|
|
31895
31895
|
if (!K(oe) && !K(ae)) {
|
|
31896
|
-
if (K(
|
|
31896
|
+
if (K(be)) {
|
|
31897
31897
|
const qe = FU(D.element, oe, ae);
|
|
31898
31898
|
V.zoom = qe;
|
|
31899
31899
|
}
|
|
@@ -31905,8 +31905,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31905
31905
|
};
|
|
31906
31906
|
f.getOpt(D).each((oe) => {
|
|
31907
31907
|
const ae = oe.element;
|
|
31908
|
-
L.url !== mo(ae, "src") && (un(ae, "src", L.url), Yr(D.element, "tox-imagepreview__loaded")), j(), IU(ae).then((
|
|
31909
|
-
D.getSystem().isConnected() && (mi(D.element, "tox-imagepreview__loaded"), V.cachedWidth =
|
|
31908
|
+
L.url !== mo(ae, "src") && (un(ae, "src", L.url), Yr(D.element, "tox-imagepreview__loaded")), j(), IU(ae).then((be) => {
|
|
31909
|
+
D.getSystem().isConnected() && (mi(D.element, "tox-imagepreview__loaded"), V.cachedWidth = be.dom.naturalWidth, V.cachedHeight = be.dom.naturalHeight, j());
|
|
31910
31910
|
});
|
|
31911
31911
|
});
|
|
31912
31912
|
}, S = {};
|
|
@@ -32546,7 +32546,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
32546
32546
|
}), ae = ad.parts.field1(V([
|
|
32547
32547
|
Es.parts.label(oe("Width")),
|
|
32548
32548
|
j(!0)
|
|
32549
|
-
])),
|
|
32549
|
+
])), be = ad.parts.field2(V([
|
|
32550
32550
|
Es.parts.label(oe("Height")),
|
|
32551
32551
|
j(!1)
|
|
32552
32552
|
])), Se = In(le), qe = Fi(t.onSetup, t.getApi, (we, Ue) => [
|
|
@@ -32568,7 +32568,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
32568
32568
|
},
|
|
32569
32569
|
components: [
|
|
32570
32570
|
ae,
|
|
32571
|
-
|
|
32571
|
+
be,
|
|
32572
32572
|
V([
|
|
32573
32573
|
oe(Tb),
|
|
32574
32574
|
L
|
|
@@ -32725,20 +32725,20 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
32725
32725
|
execute: (ae) => (qo(ae, Jx), Q.some(!0))
|
|
32726
32726
|
}),
|
|
32727
32727
|
Po("textfield-change", [
|
|
32728
|
-
_t(qu(), (ae,
|
|
32728
|
+
_t(qu(), (ae, be) => {
|
|
32729
32729
|
Vn(ae, Su, { name: t.name });
|
|
32730
32730
|
}),
|
|
32731
|
-
_t(f0(), (ae,
|
|
32731
|
+
_t(f0(), (ae, be) => {
|
|
32732
32732
|
Vn(ae, Su, { name: t.name });
|
|
32733
32733
|
})
|
|
32734
32734
|
]),
|
|
32735
32735
|
zr.config({})
|
|
32736
32736
|
], b = t.validation.map((ae) => xg.config({
|
|
32737
|
-
getRoot: (
|
|
32737
|
+
getRoot: (be) => Ra(be.element),
|
|
32738
32738
|
invalidClass: "tox-invalid",
|
|
32739
32739
|
validator: {
|
|
32740
|
-
validate: (
|
|
32741
|
-
const Se = kn.getValue(
|
|
32740
|
+
validate: (be) => {
|
|
32741
|
+
const Se = kn.getValue(be), qe = ae.validator(Se);
|
|
32742
32742
|
return nc.pure(qe === !0 ? Eo.value(Se) : Eo.error(qe));
|
|
32743
32743
|
},
|
|
32744
32744
|
validateOnLoad: ae.validateOnLoad
|
|
@@ -33042,8 +33042,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33042
33042
|
const V = L.event.raw.code === "ArrowLeft", j = L.event.raw.code === "ArrowRight";
|
|
33043
33043
|
V ? (ca(D.element, ".tox-tree--directory").each((oe) => {
|
|
33044
33044
|
D.getSystem().getByDom(oe).each((ae) => {
|
|
33045
|
-
Td(oe, ".tox-tree--directory__label").each((
|
|
33046
|
-
ae.getSystem().getByDom(
|
|
33045
|
+
Td(oe, ".tox-tree--directory__label").each((be) => {
|
|
33046
|
+
ae.getSystem().getByDom(be).each(go.focus);
|
|
33047
33047
|
});
|
|
33048
33048
|
});
|
|
33049
33049
|
}), L.stop()) : j && L.stop();
|
|
@@ -33107,8 +33107,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33107
33107
|
L && l && D.stop(), (L || V) && ca(E.element, ".tox-tree--directory").each((j) => {
|
|
33108
33108
|
E.getSystem().getByDom(j).each((oe) => {
|
|
33109
33109
|
!Go.isOn(oe) && L || Go.isOn(oe) && V ? (S(E), D.stop()) : V && !Go.isOn(oe) && (ca(oe.element, ".tox-tree--directory").each((ae) => {
|
|
33110
|
-
Td(ae, ".tox-tree--directory__label").each((
|
|
33111
|
-
oe.getSystem().getByDom(
|
|
33110
|
+
Td(ae, ".tox-tree--directory__label").each((be) => {
|
|
33111
|
+
oe.getSystem().getByDom(be).each(go.focus);
|
|
33112
33112
|
});
|
|
33113
33113
|
}), D.stop());
|
|
33114
33114
|
});
|
|
@@ -33194,19 +33194,19 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33194
33194
|
Go.set(j, V);
|
|
33195
33195
|
}),
|
|
33196
33196
|
_t("expand-tree-node", (j, oe) => {
|
|
33197
|
-
const { expanded: ae, node:
|
|
33197
|
+
const { expanded: ae, node: be } = oe.event;
|
|
33198
33198
|
D.set(ae ? [
|
|
33199
33199
|
...D.get(),
|
|
33200
|
-
|
|
33201
|
-
] : D.get().filter((Se) => Se !==
|
|
33200
|
+
be
|
|
33201
|
+
] : D.get().filter((Se) => Se !== be));
|
|
33202
33202
|
})
|
|
33203
33203
|
]),
|
|
33204
33204
|
Go.config({
|
|
33205
33205
|
...t.children.length > 0 ? { aria: { mode: "expanded" } } : {},
|
|
33206
33206
|
toggleClass: "tox-tree--directory--expanded",
|
|
33207
33207
|
onToggled: (j, oe) => {
|
|
33208
|
-
const ae = j.components()[1],
|
|
33209
|
-
oe ? Gc.grow(ae) : Gc.shrink(ae), wo.set(ae,
|
|
33208
|
+
const ae = j.components()[1], be = L(oe);
|
|
33209
|
+
oe ? Gc.grow(ae) : Gc.shrink(ae), wo.set(ae, be);
|
|
33210
33210
|
}
|
|
33211
33211
|
})
|
|
33212
33212
|
])
|
|
@@ -33339,23 +33339,23 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33339
33339
|
}, _A = te("alloy.typeahead.itemexecute"), SW = (t, r, l, f) => {
|
|
33340
33340
|
const b = (j, oe, ae) => {
|
|
33341
33341
|
t.previewing.set(!1);
|
|
33342
|
-
const
|
|
33343
|
-
if (_s.isOpen(
|
|
33344
|
-
Os.getCurrent(
|
|
33342
|
+
const be = Bi.getCoupled(j, "sandbox");
|
|
33343
|
+
if (_s.isOpen(be))
|
|
33344
|
+
Os.getCurrent(be).each((Se) => {
|
|
33345
33345
|
ue.getHighlighted(Se).fold(() => {
|
|
33346
33346
|
ae(Se);
|
|
33347
33347
|
}, () => {
|
|
33348
|
-
JO(
|
|
33348
|
+
JO(be, Se.element, "keydown", oe);
|
|
33349
33349
|
});
|
|
33350
33350
|
});
|
|
33351
33351
|
else {
|
|
33352
33352
|
const Se = (qe) => {
|
|
33353
33353
|
Os.getCurrent(qe).each(ae);
|
|
33354
33354
|
};
|
|
33355
|
-
r3(t, S(j), j,
|
|
33355
|
+
r3(t, S(j), j, be, f, Se, Ha.HighlightMenuAndItem).get(le);
|
|
33356
33356
|
}
|
|
33357
33357
|
}, x = A6(t), S = (j) => (oe) => oe.map((ae) => {
|
|
33358
|
-
const
|
|
33358
|
+
const be = Ka(ae.menus), Se = ke(be, (we) => Oo(we.items, (Ue) => Ue.type === "item"));
|
|
33359
33359
|
return kn.getState(j).update(je(Se, (we) => we.data)), ae;
|
|
33360
33360
|
}), E = (j) => Os.getCurrent(j), D = "typeaheadevents", L = [
|
|
33361
33361
|
go.config({}),
|
|
@@ -33410,10 +33410,10 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33410
33410
|
onEnter: (j) => {
|
|
33411
33411
|
const oe = Bi.getCoupled(j, "sandbox"), ae = _s.isOpen(oe);
|
|
33412
33412
|
if (ae && !t.previewing.get())
|
|
33413
|
-
return E(oe).bind((
|
|
33413
|
+
return E(oe).bind((be) => ue.getHighlighted(be)).map((be) => (Vn(j, _A(), { item: be }), !0));
|
|
33414
33414
|
{
|
|
33415
|
-
const
|
|
33416
|
-
return qo(j, WO()), t.onExecute(oe, j,
|
|
33415
|
+
const be = kn.getValue(j);
|
|
33416
|
+
return qo(j, WO()), t.onExecute(oe, j, be), ae && _s.close(oe), Q.some(!0);
|
|
33417
33417
|
}
|
|
33418
33418
|
}
|
|
33419
33419
|
}),
|
|
@@ -33667,7 +33667,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33667
33667
|
...L,
|
|
33668
33668
|
...Be(l) ? { "data-mce-name": l } : {}
|
|
33669
33669
|
}
|
|
33670
|
-
}, ae = [],
|
|
33670
|
+
}, ae = [], be = r.translate(t.text.getOr("")), Se = Qr(be), we = [
|
|
33671
33671
|
...Ev([x.map((He) => He.asSpec())]),
|
|
33672
33672
|
...t.text.isSome() ? [Se] : []
|
|
33673
33673
|
], Ue = F3(D, Q.some(S), ae, oe, we, t.tooltip, r);
|
|
@@ -33759,7 +33759,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33759
33759
|
});
|
|
33760
33760
|
return nc.pure(ct);
|
|
33761
33761
|
},
|
|
33762
|
-
getHotspot: (Ue) =>
|
|
33762
|
+
getHotspot: (Ue) => be.getOpt(Ue),
|
|
33763
33763
|
onSetValue: (Ue, He) => {
|
|
33764
33764
|
Ue.hasConfigured(xg) && xg.run(Ue).get(le);
|
|
33765
33765
|
},
|
|
@@ -33851,7 +33851,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33851
33851
|
classes: ["tox-control-wrap__status-icon-wrap"]
|
|
33852
33852
|
},
|
|
33853
33853
|
components: [V.asSpec()]
|
|
33854
|
-
}), oe = l.getUrlPicker(t.filetype), ae = Pn("browser.url.event"),
|
|
33854
|
+
}), oe = l.getUrlPicker(t.filetype), ae = Pn("browser.url.event"), be = Qs({
|
|
33855
33855
|
dom: {
|
|
33856
33856
|
tag: "div",
|
|
33857
33857
|
classes: ["tox-control-wrap"]
|
|
@@ -33876,7 +33876,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33876
33876
|
classes: ["tox-form__controls-h-stack"]
|
|
33877
33877
|
},
|
|
33878
33878
|
components: Ke([
|
|
33879
|
-
[
|
|
33879
|
+
[be.asSpec()],
|
|
33880
33880
|
oe.map(() => Se.asSpec()).toArray()
|
|
33881
33881
|
])
|
|
33882
33882
|
}), we = (Ue) => {
|
|
@@ -34652,18 +34652,18 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34652
34652
|
dialog: V,
|
|
34653
34653
|
isContextMenuOpen: j,
|
|
34654
34654
|
setContextMenuState: oe
|
|
34655
|
-
},
|
|
34655
|
+
}, be = (we) => Q.none(), Se = {
|
|
34656
34656
|
...ae,
|
|
34657
34657
|
shared: {
|
|
34658
34658
|
...ae.shared,
|
|
34659
|
-
interpreter: (we) => OL(we, {}, Se,
|
|
34659
|
+
interpreter: (we) => OL(we, {}, Se, be),
|
|
34660
34660
|
getSink: t.popup
|
|
34661
34661
|
}
|
|
34662
34662
|
}, qe = {
|
|
34663
34663
|
...ae,
|
|
34664
34664
|
shared: {
|
|
34665
34665
|
...ae.shared,
|
|
34666
|
-
interpreter: (we) => OL(we, {}, qe,
|
|
34666
|
+
interpreter: (we) => OL(we, {}, qe, be),
|
|
34667
34667
|
getSink: t.dialog
|
|
34668
34668
|
}
|
|
34669
34669
|
};
|
|
@@ -34690,7 +34690,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34690
34690
|
xt.raw.button === 0 && b(qy(), { target: xt.target });
|
|
34691
34691
|
}), oe = (xt) => b(mg(), { target: bt.fromDom(xt.target) }), ae = (xt) => {
|
|
34692
34692
|
xt.button === 0 && b(qy(), { target: bt.fromDom(xt.target) });
|
|
34693
|
-
},
|
|
34693
|
+
}, be = () => {
|
|
34694
34694
|
vt(t.editorManager.get(), (xt) => {
|
|
34695
34695
|
t !== xt && xt.dispatch("DismissPopups", { relatedTarget: t });
|
|
34696
34696
|
});
|
|
@@ -34713,14 +34713,14 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34713
34713
|
b(mg(), { target: bt.fromDom(xt.relatedTarget.getContainer()) });
|
|
34714
34714
|
}, mn = (xt) => t.dispatch("focusin", xt), Sn = (xt) => t.dispatch("focusout", xt);
|
|
34715
34715
|
t.on("PostRender", () => {
|
|
34716
|
-
t.on("click", oe), t.on("tap", oe), t.on("mouseup", ae), t.on("mousedown",
|
|
34716
|
+
t.on("click", oe), t.on("tap", oe), t.on("mouseup", ae), t.on("mousedown", be), t.on("ScrollWindow", Se), t.on("ResizeWindow", qe), t.on("ResizeEditor", He), t.on("AfterProgressState", ct), t.on("DismissPopups", gt), vt([
|
|
34717
34717
|
r,
|
|
34718
34718
|
...l
|
|
34719
34719
|
], (xt) => {
|
|
34720
34720
|
xt.element.dom.addEventListener("focusin", mn), xt.element.dom.addEventListener("focusout", Sn);
|
|
34721
34721
|
});
|
|
34722
34722
|
}), t.on("remove", () => {
|
|
34723
|
-
t.off("click", oe), t.off("tap", oe), t.off("mouseup", ae), t.off("mousedown",
|
|
34723
|
+
t.off("click", oe), t.off("tap", oe), t.off("mouseup", ae), t.off("mousedown", be), t.off("ScrollWindow", Se), t.off("ResizeWindow", qe), t.off("ResizeEditor", He), t.off("AfterProgressState", ct), t.off("DismissPopups", gt), vt([
|
|
34724
34724
|
r,
|
|
34725
34725
|
...l
|
|
34726
34726
|
], (xt) => {
|
|
@@ -34748,8 +34748,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34748
34748
|
S(E).fold(() => {
|
|
34749
34749
|
throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"), new Error("Custom List was defined to not be a shell, but no item container was specified in components");
|
|
34750
34750
|
}, (L) => {
|
|
34751
|
-
const V = wo.contents(L), j = D.length, oe = j - V.length, ae = oe > 0 ? rt(oe, () => t.makeItem()) : [],
|
|
34752
|
-
vt(
|
|
34751
|
+
const V = wo.contents(L), j = D.length, oe = j - V.length, ae = oe > 0 ? rt(oe, () => t.makeItem()) : [], be = V.slice(j);
|
|
34752
|
+
vt(be, (qe) => wo.remove(L, qe)), vt(ae, (qe) => wo.append(L, qe));
|
|
34753
34753
|
const Se = wo.contents(L);
|
|
34754
34754
|
vt(Se, (qe, we) => {
|
|
34755
34755
|
t.setupItem(E, qe, D[we], we);
|
|
@@ -34833,8 +34833,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34833
34833
|
fadeOutClass: "tox-editor-dock-fadeout",
|
|
34834
34834
|
transitionClass: "tox-editor-dock-transition"
|
|
34835
34835
|
}, qL = "tox-tinymce--toolbar-sticky-on", GL = "tox-tinymce--toolbar-sticky-off", pj = (t, r) => {
|
|
34836
|
-
const l = hr(r), b = Hl(r).dom.innerHeight, x = nl(l), S = bt.fromDom(t.elm), E = Ul(S), D = ei(S), L = E.y, V = L + D, j = zi(r), oe = ei(r), ae = j.top,
|
|
34837
|
-
if (Se && L <
|
|
34836
|
+
const l = hr(r), b = Hl(r).dom.innerHeight, x = nl(l), S = bt.fromDom(t.elm), E = Ul(S), D = ei(S), L = E.y, V = L + D, j = zi(r), oe = ei(r), ae = j.top, be = ae + oe, Se = Math.abs(ae - x.top) < 2, qe = Math.abs(be - (x.top + b)) < 2;
|
|
34837
|
+
if (Se && L < be)
|
|
34838
34838
|
sh(x.left, L - oe, l);
|
|
34839
34839
|
else if (qe && V > ae) {
|
|
34840
34840
|
const we = L - b + D + oe;
|
|
@@ -34899,11 +34899,11 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34899
34899
|
return Q.from(L).map((V) => {
|
|
34900
34900
|
const j = xi(bt.fromDom(V));
|
|
34901
34901
|
return a1(t, E.element).fold(() => {
|
|
34902
|
-
const ae = j.height - D,
|
|
34903
|
-
return Gr(j.x,
|
|
34902
|
+
const ae = j.height - D, be = j.y + (e_(E, "top") ? 0 : D);
|
|
34903
|
+
return Gr(j.x, be, j.width, ae);
|
|
34904
34904
|
}, (ae) => {
|
|
34905
|
-
const
|
|
34906
|
-
return Gr(
|
|
34905
|
+
const be = jh(j, l1(ae)), Se = e_(E, "top") ? be.y : be.y + D;
|
|
34906
|
+
return Gr(be.x, Se, be.width, be.height - D);
|
|
34907
34907
|
});
|
|
34908
34908
|
});
|
|
34909
34909
|
},
|
|
@@ -35124,7 +35124,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
35124
35124
|
visible: !1
|
|
35125
35125
|
});
|
|
35126
35126
|
}
|
|
35127
|
-
}, L = b(S, !1), V = b(D), j = x(V), oe = (Se) => j(Se, l()), ae = b(E),
|
|
35127
|
+
}, L = b(S, !1), V = b(D), j = x(V), oe = (Se) => j(Se, l()), ae = b(E), be = {
|
|
35128
35128
|
getSlotNames: l,
|
|
35129
35129
|
getSlot: f,
|
|
35130
35130
|
isShowing: L,
|
|
@@ -35137,7 +35137,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
35137
35137
|
dom: t.dom,
|
|
35138
35138
|
components: r,
|
|
35139
35139
|
behaviours: Gy(t.slotBehaviours),
|
|
35140
|
-
apis:
|
|
35140
|
+
apis: be
|
|
35141
35141
|
};
|
|
35142
35142
|
}, yc = {
|
|
35143
35143
|
...Bo({
|
|
@@ -36063,14 +36063,14 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
36063
36063
|
icon: t.icon,
|
|
36064
36064
|
enabled: !0,
|
|
36065
36065
|
borderless: t.borderless
|
|
36066
|
-
}, 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((He) => ({ "aria-label": r.translate(He) })).getOr({}), ae = x.map((He) => He.asSpec()),
|
|
36066
|
+
}, 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((He) => ({ "aria-label": r.translate(He) })).getOr({}), ae = x.map((He) => He.asSpec()), be = Ev([
|
|
36067
36067
|
ae,
|
|
36068
36068
|
j
|
|
36069
36069
|
]), Se = t.icon.isSome() && j.isSome(), qe = {
|
|
36070
36070
|
tag: "button",
|
|
36071
36071
|
classes: L.concat(...t.icon.isSome() && !Se ? ["tox-button--icon"] : []).concat(...Se ? ["tox-button--icon-and-text"] : []).concat(...t.borderless ? ["tox-button--naked"] : []).concat(...t.type === "togglebutton" && t.active ? ["tox-button--enabled"] : []),
|
|
36072
36072
|
attributes: oe
|
|
36073
|
-
}, we = [], Ue = F3(D, Q.some(E), we, qe,
|
|
36073
|
+
}, we = [], Ue = F3(D, Q.some(E), we, qe, be, t.tooltip, r);
|
|
36074
36074
|
return Ta.sketch(Ue);
|
|
36075
36075
|
}, k9 = (t, r) => S9(t, r), rX = (t, r) => ({
|
|
36076
36076
|
dom: {
|
|
@@ -36217,8 +36217,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
36217
36217
|
},
|
|
36218
36218
|
whichView: (S) => Os.getCurrent(S).bind(_9),
|
|
36219
36219
|
toggleView: (S, E, D, L) => Os.getCurrent(S).exists((V) => {
|
|
36220
|
-
const j = _9(V), oe = j.exists((
|
|
36221
|
-
return ae && (yc.hideAllSlots(V), oe ? (hX(S), E()) : (D(), gD(S), yc.showSlot(V, L), mX(V, L)), j.each((
|
|
36220
|
+
const j = _9(V), oe = j.exists((be) => L === be), ae = yc.getSlot(V, L).isSome();
|
|
36221
|
+
return ae && (yc.hideAllSlots(V), oe ? (hX(S), E()) : (D(), gD(S), yc.showSlot(V, L), mX(V, L)), j.each((be) => E9(V, be))), ae;
|
|
36222
36222
|
})
|
|
36223
36223
|
};
|
|
36224
36224
|
return {
|
|
@@ -36685,8 +36685,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
36685
36685
|
}), V = (j) => {
|
|
36686
36686
|
const oe = (ae) => j.setTooltip(Kv(t, f(ae.value), ae.value));
|
|
36687
36687
|
return t.on(b, oe), cO(uO(t, "NodeChange", (ae) => {
|
|
36688
|
-
const
|
|
36689
|
-
l.updateText(
|
|
36688
|
+
const be = ae.getComponent();
|
|
36689
|
+
l.updateText(be), zn.set(ae.getComponent(), !t.selection.isEditable());
|
|
36690
36690
|
})(j), () => t.off(b, oe));
|
|
36691
36691
|
};
|
|
36692
36692
|
return dA({
|
|
@@ -36836,10 +36836,10 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
36836
36836
|
return !1;
|
|
36837
36837
|
}, q9 = (t) => {
|
|
36838
36838
|
const r = () => {
|
|
36839
|
-
const D = (
|
|
36839
|
+
const D = (be) => be ? ED(be)[0] : "", L = t.queryCommandValue("FontName"), V = E.data, j = L ? L.toLowerCase() : "", oe = K8(t);
|
|
36840
36840
|
return {
|
|
36841
|
-
matchOpt: Ne(V, (
|
|
36842
|
-
const Se =
|
|
36841
|
+
matchOpt: Ne(V, (be) => {
|
|
36842
|
+
const Se = be.format;
|
|
36843
36843
|
return Se.toLowerCase() === j || D(Se).toLowerCase() === D(j).toLowerCase();
|
|
36844
36844
|
}).orThunk(() => jn(X9(j, oe), {
|
|
36845
36845
|
title: n2,
|
|
@@ -36950,7 +36950,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
36950
36950
|
l.onAction(Sn, gt), b.each((Bn) => {
|
|
36951
36951
|
kn.setValue(Bn, Sn), ct && (En.each((ls) => Bn.element.dom.selectionStart = ls), fn.each((ls) => Bn.element.dom.selectionEnd = ls));
|
|
36952
36952
|
});
|
|
36953
|
-
}, j = (He, ct) => V((gt, mn) => gt - mn, He, ct), oe = (He, ct) => V((gt, mn) => gt + mn, He, ct), ae = (He) => Ra(He.element).fold(Q.none, (ct) => (bu(ct), Q.some(!0))),
|
|
36953
|
+
}, j = (He, ct) => V((gt, mn) => gt - mn, He, ct), oe = (He, ct) => V((gt, mn) => gt + mn, He, ct), ae = (He) => Ra(He.element).fold(Q.none, (ct) => (bu(ct), Q.some(!0))), be = (He) => uf(He.element) ? (Sc(He.element).each((ct) => bu(ct)), Q.some(!0)) : Q.none(), Se = (He, ct, gt, mn) => {
|
|
36954
36954
|
const Sn = In(le), xt = r.shared.providers.translate(gt), En = Pn("altExecuting"), fn = uO(t, "NodeChange SwitchMode DisabledStateChange", (ls) => {
|
|
36955
36955
|
zn.set(ls.getComponent(), !t.selection.isEditable() || pT(t));
|
|
36956
36956
|
}), Bn = (ls) => {
|
|
@@ -37047,8 +37047,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37047
37047
|
go.config({}),
|
|
37048
37048
|
Xn.config({
|
|
37049
37049
|
mode: "special",
|
|
37050
|
-
onEnter:
|
|
37051
|
-
onSpace:
|
|
37050
|
+
onEnter: be,
|
|
37051
|
+
onSpace: be,
|
|
37052
37052
|
onEscape: ae
|
|
37053
37053
|
}),
|
|
37054
37054
|
Po("input-wrapper-events", [_t(uh(), (He) => {
|
|
@@ -37110,7 +37110,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37110
37110
|
if (V)
|
|
37111
37111
|
for (let j = 3; D.isNone() && j >= 0; j--) {
|
|
37112
37112
|
const oe = ZX(V, j), ae = eI(oe);
|
|
37113
|
-
D = Ne(L, (
|
|
37113
|
+
D = Ne(L, (be) => be.format === V || be.format === oe || be.format === ae);
|
|
37114
37114
|
}
|
|
37115
37115
|
return {
|
|
37116
37116
|
matchOpt: D,
|
|
@@ -37325,8 +37325,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37325
37325
|
}, D = {
|
|
37326
37326
|
...nr([fr((V, j) => {
|
|
37327
37327
|
gr(V, t, "aria-descriptor").each((ae) => {
|
|
37328
|
-
const
|
|
37329
|
-
un(ae.element, "id",
|
|
37328
|
+
const be = Pn("aria");
|
|
37329
|
+
un(ae.element, "id", be), un(V.element, "aria-describedby", be);
|
|
37330
37330
|
});
|
|
37331
37331
|
})]),
|
|
37332
37332
|
...mv(Q.some(x))
|
|
@@ -37833,7 +37833,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37833
37833
|
const Se = t.getWin().innerWidth;
|
|
37834
37834
|
Se !== E.get() && (ae(), E.set(Se));
|
|
37835
37835
|
});
|
|
37836
|
-
const
|
|
37836
|
+
const be = {
|
|
37837
37837
|
setEnabled: (Se) => {
|
|
37838
37838
|
_v(r, Se ? "setEnabled" : "setDisabled");
|
|
37839
37839
|
},
|
|
@@ -37842,7 +37842,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37842
37842
|
return {
|
|
37843
37843
|
iframeContainer: j.element.dom,
|
|
37844
37844
|
editorContainer: D.element.dom,
|
|
37845
|
-
api:
|
|
37845
|
+
api: be
|
|
37846
37846
|
};
|
|
37847
37847
|
}
|
|
37848
37848
|
});
|
|
@@ -37856,7 +37856,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37856
37856
|
const r = LE(t), l = px(t), f = r1(t);
|
|
37857
37857
|
return bI(r).map((b) => x_(b, l, f));
|
|
37858
37858
|
}, gq = (t) => BD(t).getOr(LE(t)), { ToolbarLocation: ND, ToolbarMode: OI } = iV, pq = 40, yI = (t, r, l, f, b) => {
|
|
37859
|
-
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,
|
|
37859
|
+
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, be = bv(t), Se = be === OI.sliding || be === OI.floating, qe = In(!1), we = () => qe.get() && !t.removed, Ue = (Qn) => Se ? Qn.fold(te(0), (Ut) => Ut.components().length > 1 ? ei(Ut.components()[1].element) : 0) : 0, He = (Qn) => {
|
|
37860
37860
|
switch (OT(t)) {
|
|
37861
37861
|
case ND.auto:
|
|
37862
37862
|
const Ut = Ar.getToolbar(x.outerContainer), On = Ue(Ut), vo = ei(Qn.element) - On, Zo = xi(r);
|
|
@@ -37955,11 +37955,11 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37955
37955
|
const { pos: V, bounds: j } = vI(r, l.isPositionedAtTop()), {
|
|
37956
37956
|
pos: oe,
|
|
37957
37957
|
bounds: ae
|
|
37958
|
-
} = b.get(),
|
|
37958
|
+
} = b.get(), be = j.height !== ae.height || j.width !== ae.width;
|
|
37959
37959
|
b.set({
|
|
37960
37960
|
pos: V,
|
|
37961
37961
|
bounds: j
|
|
37962
|
-
}),
|
|
37962
|
+
}), be && G$(t, L), l.isVisible() && (oe !== V ? l.update(mr.reset) : be && (l.updateMode(), l.repositionPopups()));
|
|
37963
37963
|
};
|
|
37964
37964
|
f || (t.on("activate", l.show), t.on("deactivate", l.hide)), t.on("SkinLoaded ResizeWindow", () => l.update(mr.reset)), t.on("NodeChange keydown", (L) => {
|
|
37965
37965
|
requestAnimationFrame(() => x(L));
|
|
@@ -38370,13 +38370,13 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
38370
38370
|
}
|
|
38371
38371
|
}, $_ = (t, r, l, f) => {
|
|
38372
38372
|
const b = (D) => (L, V, j, oe, ae) => {
|
|
38373
|
-
const
|
|
38373
|
+
const be = E_(t, oe, D, l, ae), Se = {
|
|
38374
38374
|
...L,
|
|
38375
38375
|
y: ae.y,
|
|
38376
38376
|
height: ae.height
|
|
38377
38377
|
};
|
|
38378
38378
|
return {
|
|
38379
|
-
...
|
|
38379
|
+
...be(Se, V, j, oe, ae),
|
|
38380
38380
|
alwaysFit: !0
|
|
38381
38381
|
};
|
|
38382
38382
|
}, x = (D) => wO(f) ? [b(D)] : [];
|
|
@@ -38531,7 +38531,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
38531
38531
|
})), j = () => {
|
|
38532
38532
|
const fn = L.get().getOr("node"), Bn = wO(fn) ? 1 : 0;
|
|
38533
38533
|
return EI(t, x, fn, Bn);
|
|
38534
|
-
}, oe = () => !t.removed && !(S() && b.isContextMenuOpen()), ae = (fn) => Mr(Fi(fn, E.get(), Jo), !0),
|
|
38534
|
+
}, oe = () => !t.removed && !(S() && b.isContextMenuOpen()), ae = (fn) => Mr(Fi(fn, E.get(), Jo), !0), be = () => {
|
|
38535
38535
|
if (oe()) {
|
|
38536
38536
|
const fn = j(), Bn = Mr(L.get(), "node") ? ES(t, E.get()) : VD(t);
|
|
38537
38537
|
return fn.height <= 0 || !TI(Bn, fn, 0.01);
|
|
@@ -38542,7 +38542,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
38542
38542
|
}, qe = () => {
|
|
38543
38543
|
if (ni.isOpen(V)) {
|
|
38544
38544
|
const fn = V.element;
|
|
38545
|
-
Uo(fn, "display"),
|
|
38545
|
+
Uo(fn, "display"), be() ? an(fn, "display", "none") : (D.set(0), ni.reposition(V));
|
|
38546
38546
|
}
|
|
38547
38547
|
}, we = (fn) => ({
|
|
38548
38548
|
dom: {
|
|
@@ -38600,7 +38600,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
38600
38600
|
classes: [A_],
|
|
38601
38601
|
mode: "placement"
|
|
38602
38602
|
}
|
|
38603
|
-
}, () => Q.some(j())), Bn.fold(E.clear, E.set),
|
|
38603
|
+
}, () => Q.some(j())), Bn.fold(E.clear, E.set), be() && an(Qn, "display", "none");
|
|
38604
38604
|
};
|
|
38605
38605
|
let xt = !1;
|
|
38606
38606
|
const En = nA(() => {
|
|
@@ -39372,8 +39372,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
39372
39372
|
if (ZI(t) && D.preventDefault(), cG(t, D) || Kq(t))
|
|
39373
39373
|
return;
|
|
39374
39374
|
const L = dG(t, D), V = () => {
|
|
39375
|
-
const oe = GI(t, D), ae = t.ui.registry.getAll(),
|
|
39376
|
-
return qI(ae.contextMenus,
|
|
39375
|
+
const oe = GI(t, D), ae = t.ui.registry.getAll(), be = VI(t);
|
|
39376
|
+
return qI(ae.contextMenus, be, oe);
|
|
39377
39377
|
};
|
|
39378
39378
|
(b() ? WI : UI)(t, D, V, l, x, L);
|
|
39379
39379
|
};
|
|
@@ -39474,8 +39474,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
39474
39474
|
deltas: Q.some(j),
|
|
39475
39475
|
snap: Q.some(L)
|
|
39476
39476
|
}), (oe) => {
|
|
39477
|
-
const ae = (j.left + j.top) / 2,
|
|
39478
|
-
return ae <=
|
|
39477
|
+
const ae = (j.left + j.top) / 2, be = (oe.left + oe.top) / 2;
|
|
39478
|
+
return ae <= be ? {
|
|
39479
39479
|
deltas: Q.some(j),
|
|
39480
39480
|
snap: Q.some(L)
|
|
39481
39481
|
} : D;
|
|
@@ -39788,7 +39788,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
39788
39788
|
return uQ(ae.getOpt(r), Sn, xt.x, xt.y, xt.width, xt.height);
|
|
39789
39789
|
}, D = () => je(l.get(), (Sn) => E(Sn)), L = (Sn) => {
|
|
39790
39790
|
const xt = Ul(Sn);
|
|
39791
|
-
return uQ(
|
|
39791
|
+
return uQ(be.getOpt(r), Sn, xt.right, xt.bottom, xt.width, xt.height);
|
|
39792
39792
|
}, V = () => je(f.get(), (Sn) => L(Sn)), j = dQ(D, x, (Sn) => {
|
|
39793
39793
|
S.get().each((xt) => {
|
|
39794
39794
|
t.dispatch("TableSelectorChange", {
|
|
@@ -39803,7 +39803,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
39803
39803
|
finish: Sn
|
|
39804
39804
|
});
|
|
39805
39805
|
});
|
|
39806
|
-
}), ae = hQ(j),
|
|
39806
|
+
}), ae = hQ(j), be = hQ(oe), Se = xl(ae.asSpec()), qe = xl(be.asSpec()), we = (Sn, xt, En, fn) => {
|
|
39807
39807
|
const Bn = xt.dom.getBoundingClientRect();
|
|
39808
39808
|
Uo(Sn.element, "display");
|
|
39809
39809
|
const ls = Hl(bt.fromDom(t.getBody())).dom.innerHeight, Dr = En(Bn), Bs = fn(Bn, ls);
|
|
@@ -40073,12 +40073,12 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40073
40073
|
};
|
|
40074
40074
|
}, x = () => {
|
|
40075
40075
|
const E = [], D = xT(t), L = X8(t), V = WE(t) || t.hasPlugin("wordcount"), j = () => {
|
|
40076
|
-
const oe = "tox-statusbar__text-container--flex-start", ae = "tox-statusbar__text-container--flex-end",
|
|
40076
|
+
const oe = "tox-statusbar__text-container--flex-start", ae = "tox-statusbar__text-container--flex-end", be = "tox-statusbar__text-container--space-around";
|
|
40077
40077
|
if (D) {
|
|
40078
40078
|
const Se = "tox-statusbar__text-container-3-cols";
|
|
40079
40079
|
return !V && !L ? [
|
|
40080
40080
|
Se,
|
|
40081
|
-
|
|
40081
|
+
be
|
|
40082
40082
|
] : V && !L ? [
|
|
40083
40083
|
Se,
|
|
40084
40084
|
ae
|
|
@@ -40111,7 +40111,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40111
40111
|
})()
|
|
40112
40112
|
};
|
|
40113
40113
|
}, gQ = (t, r) => r.get().getOrDie(`UI for ${t} has not been rendered`), jG = (t, r) => {
|
|
40114
|
-
const l = t.inline, f = l ? wI : hq, b = i1(t) ? vS : gj, x = bq(), S = Is(), E = Is(), D = Is(), oe = qr().deviceType.isTouch() ? ["tox-platform-touch"] : [], ae = qE(t),
|
|
40114
|
+
const l = t.inline, f = l ? wI : hq, b = i1(t) ? vS : gj, x = bq(), S = Is(), E = Is(), D = Is(), oe = qr().deviceType.isTouch() ? ["tox-platform-touch"] : [], ae = qE(t), be = bv(t), Se = Qs({
|
|
40115
40115
|
dom: {
|
|
40116
40116
|
tag: "div",
|
|
40117
40117
|
classes: ["tox-anchorbar"]
|
|
@@ -40147,7 +40147,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40147
40147
|
onToolbarToggled: (Eg) => {
|
|
40148
40148
|
T7(t, Eg);
|
|
40149
40149
|
},
|
|
40150
|
-
type:
|
|
40150
|
+
type: be,
|
|
40151
40151
|
lazyToolbar: mn,
|
|
40152
40152
|
lazyHeader: () => we().getOrDie("Could not find header element"),
|
|
40153
40153
|
...eo
|
|
@@ -40160,7 +40160,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40160
40160
|
onEscape: () => {
|
|
40161
40161
|
t.focus();
|
|
40162
40162
|
},
|
|
40163
|
-
type:
|
|
40163
|
+
type: be
|
|
40164
40164
|
}), Du = Ox(t), ci = kT(t), Vd = ST(t), ac = jE(t), zd = fn(), Hd = Du || ci || Vd, Nf = () => Du ? [or] : ci ? [dr] : [], HS = ac ? [
|
|
40165
40165
|
zd,
|
|
40166
40166
|
Ao
|
|
@@ -40328,7 +40328,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40328
40328
|
menus: t6(t),
|
|
40329
40329
|
menubar: z8(t),
|
|
40330
40330
|
toolbar: Hd.getOrThunk(() => yT(t)),
|
|
40331
|
-
allowToolbarGroups:
|
|
40331
|
+
allowToolbarGroups: be === Nd.floating,
|
|
40332
40332
|
buttons: Du,
|
|
40333
40333
|
sidebar: ac,
|
|
40334
40334
|
views: zd
|
|
@@ -40433,29 +40433,29 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40433
40433
|
name: "blocker"
|
|
40434
40434
|
})
|
|
40435
40435
|
]), YG = (t, r, l, f) => {
|
|
40436
|
-
const b = Is(), x = (
|
|
40437
|
-
b.set(
|
|
40438
|
-
const Se = t.lazySink(
|
|
40436
|
+
const b = Is(), x = (be) => {
|
|
40437
|
+
b.set(be);
|
|
40438
|
+
const Se = t.lazySink(be).getOrDie(), qe = f.blocker(), we = Se.getSystem().build({
|
|
40439
40439
|
...qe,
|
|
40440
|
-
components: qe.components.concat([pu(
|
|
40440
|
+
components: qe.components.concat([pu(be)]),
|
|
40441
40441
|
behaviours: Gt([
|
|
40442
40442
|
go.config({}),
|
|
40443
40443
|
Po("dialog-blocker-events", [ng(dh(), () => {
|
|
40444
|
-
Rh.isBlocked(
|
|
40444
|
+
Rh.isBlocked(be) ? le() : Xn.focusIn(be);
|
|
40445
40445
|
})])
|
|
40446
40446
|
])
|
|
40447
40447
|
});
|
|
40448
|
-
Sp(Se, we), Xn.focusIn(
|
|
40449
|
-
}, S = (
|
|
40450
|
-
b.clear(), oi(
|
|
40451
|
-
|
|
40448
|
+
Sp(Se, we), Xn.focusIn(be);
|
|
40449
|
+
}, S = (be) => {
|
|
40450
|
+
b.clear(), oi(be.element).each((Se) => {
|
|
40451
|
+
be.getSystem().getByDom(Se).each((qe) => {
|
|
40452
40452
|
wh(qe);
|
|
40453
40453
|
});
|
|
40454
40454
|
});
|
|
40455
|
-
}, E = (
|
|
40456
|
-
Rh.block(
|
|
40457
|
-
}, V = (
|
|
40458
|
-
Rh.unblock(
|
|
40455
|
+
}, E = (be) => xh(be, t, "body"), D = (be) => gr(be, t, "footer"), L = (be, Se) => {
|
|
40456
|
+
Rh.block(be, Se);
|
|
40457
|
+
}, V = (be) => {
|
|
40458
|
+
Rh.unblock(be);
|
|
40459
40459
|
}, j = Pn("modal-events"), oe = {
|
|
40460
40460
|
...t.eventOrder,
|
|
40461
40461
|
[Yu()]: [j].concat(t.eventOrder["alloy.system.attached"] || [])
|
|
@@ -40489,9 +40489,9 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40489
40489
|
firstTabstop: t.firstTabstop
|
|
40490
40490
|
}),
|
|
40491
40491
|
Rh.config({ getRoot: b.get }),
|
|
40492
|
-
Po(j, [fr((
|
|
40493
|
-
const Se = xh(
|
|
40494
|
-
ae.os.isMacOS() && Be(qe) ? un(
|
|
40492
|
+
Po(j, [fr((be) => {
|
|
40493
|
+
const Se = xh(be, t, "title").element, qe = pQ(Se);
|
|
40494
|
+
ae.os.isMacOS() && Be(qe) ? un(be.element, "aria-label", qe) : XG(be.element, Se);
|
|
40495
40495
|
})])
|
|
40496
40496
|
])
|
|
40497
40497
|
};
|
|
@@ -41193,8 +41193,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41193
41193
|
};
|
|
41194
41194
|
}, ic = "send-data-to-section", $u = "send-data-to-view", Gn = (t, r, l, f) => {
|
|
41195
41195
|
const b = In({}), x = (V) => {
|
|
41196
|
-
const j = kn.getValue(V), oe = Kn(j).getOr({}), ae = b.get(),
|
|
41197
|
-
b.set(
|
|
41196
|
+
const j = kn.getValue(V), oe = Kn(j).getOr({}), ae = b.get(), be = wr(ae, oe);
|
|
41197
|
+
b.set(be);
|
|
41198
41198
|
}, S = (V) => {
|
|
41199
41199
|
const j = b.get();
|
|
41200
41200
|
kn.setValue(V, j);
|
|
@@ -41675,12 +41675,12 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41675
41675
|
S.onChange(x, { name: E.name });
|
|
41676
41676
|
}),
|
|
41677
41677
|
f(wg, (x, S, E, D) => {
|
|
41678
|
-
const L = () => D.getSystem().isConnected() ? Xn.focusIn(D) : void 0, V = (ae) => q(ae, "disabled") || is(ae, "aria-disabled").exists((
|
|
41678
|
+
const L = () => D.getSystem().isConnected() ? Xn.focusIn(D) : void 0, V = (ae) => q(ae, "disabled") || is(ae, "aria-disabled").exists((be) => be === "true"), j = Wr(D.element), oe = mm(j);
|
|
41679
41679
|
S.onAction(x, {
|
|
41680
41680
|
name: E.name,
|
|
41681
41681
|
value: E.value
|
|
41682
41682
|
}), mm(j).fold(L, (ae) => {
|
|
41683
|
-
V(ae) || oe.exists((
|
|
41683
|
+
V(ae) || oe.exists((be) => zl(ae, be) && V(be)) ? L() : l().toOptional().filter((be) => !zl(be.element, ae)).each(L);
|
|
41684
41684
|
});
|
|
41685
41685
|
}),
|
|
41686
41686
|
f(yB, (x, S, E) => {
|
|
@@ -41741,54 +41741,54 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41741
41741
|
const l = t.getRoot();
|
|
41742
41742
|
return hn.getState(l).get().map((f) => Wt(Vr("data", f.dataValidator, r))).getOr(r);
|
|
41743
41743
|
}, OR = (t, r, l) => {
|
|
41744
|
-
const f = (
|
|
41744
|
+
const f = (be) => {
|
|
41745
41745
|
const Se = t.getRoot();
|
|
41746
|
-
Se.getSystem().isConnected() &&
|
|
41746
|
+
Se.getSystem().isConnected() && be(Se);
|
|
41747
41747
|
}, ae = {
|
|
41748
41748
|
getData: () => {
|
|
41749
|
-
const
|
|
41749
|
+
const be = t.getRoot(), Se = be.getSystem().isConnected() ? t.getFormWrapper() : be, qe = kn.getValue(Se), we = Bo(l, (Ue) => Ue.get());
|
|
41750
41750
|
return {
|
|
41751
41751
|
...qe,
|
|
41752
41752
|
...we
|
|
41753
41753
|
};
|
|
41754
41754
|
},
|
|
41755
|
-
setData: (
|
|
41755
|
+
setData: (be) => {
|
|
41756
41756
|
f((Se) => {
|
|
41757
|
-
const qe = ae.getData(), we = wr(qe,
|
|
41757
|
+
const qe = ae.getData(), we = wr(qe, be), Ue = Wp(t, we), He = t.getFormWrapper();
|
|
41758
41758
|
kn.setValue(He, Ue), Fs(l, (ct, gt) => {
|
|
41759
41759
|
zo(we, gt) && ct.set(we[gt]);
|
|
41760
41760
|
});
|
|
41761
41761
|
});
|
|
41762
41762
|
},
|
|
41763
|
-
setEnabled: (
|
|
41764
|
-
VS(t,
|
|
41763
|
+
setEnabled: (be, Se) => {
|
|
41764
|
+
VS(t, be).each(Se ? zn.enable : zn.disable);
|
|
41765
41765
|
},
|
|
41766
|
-
focus: (
|
|
41767
|
-
VS(t,
|
|
41766
|
+
focus: (be) => {
|
|
41767
|
+
VS(t, be).each(go.focus);
|
|
41768
41768
|
},
|
|
41769
|
-
block: (
|
|
41770
|
-
if (!w(
|
|
41769
|
+
block: (be) => {
|
|
41770
|
+
if (!w(be))
|
|
41771
41771
|
throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");
|
|
41772
41772
|
f((Se) => {
|
|
41773
|
-
Vn(Se, yP, { message:
|
|
41773
|
+
Vn(Se, yP, { message: be });
|
|
41774
41774
|
});
|
|
41775
41775
|
},
|
|
41776
41776
|
unblock: () => {
|
|
41777
|
-
f((
|
|
41778
|
-
qo(
|
|
41777
|
+
f((be) => {
|
|
41778
|
+
qo(be, l3);
|
|
41779
41779
|
});
|
|
41780
41780
|
},
|
|
41781
|
-
showTab: (
|
|
41781
|
+
showTab: (be) => {
|
|
41782
41782
|
f((Se) => {
|
|
41783
41783
|
const qe = t.getBody();
|
|
41784
41784
|
hn.getState(qe).get().exists((Ue) => Ue.isTabPanel()) && Os.getCurrent(qe).each((Ue) => {
|
|
41785
|
-
jo.showTab(Ue,
|
|
41785
|
+
jo.showTab(Ue, be);
|
|
41786
41786
|
});
|
|
41787
41787
|
});
|
|
41788
41788
|
},
|
|
41789
|
-
redial: (
|
|
41789
|
+
redial: (be) => {
|
|
41790
41790
|
f((Se) => {
|
|
41791
|
-
const qe = t.getId(), we = r(
|
|
41791
|
+
const qe = t.getId(), we = r(be), Ue = ln(we.internalDialog.buttons, l);
|
|
41792
41792
|
Se.getSystem().broadcastOn([`${lS}-${qe}`], we), Se.getSystem().broadcastOn([`${wN}-${qe}`], we.internalDialog), Se.getSystem().broadcastOn([`${xN}-${qe}`], we.internalDialog), Se.getSystem().broadcastOn([`${SN}-${qe}`], {
|
|
41793
41793
|
...we.internalDialog,
|
|
41794
41794
|
buttons: Ue
|
|
@@ -41796,8 +41796,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41796
41796
|
});
|
|
41797
41797
|
},
|
|
41798
41798
|
close: () => {
|
|
41799
|
-
f((
|
|
41800
|
-
qo(
|
|
41799
|
+
f((be) => {
|
|
41800
|
+
qo(be, Kx);
|
|
41801
41801
|
});
|
|
41802
41802
|
},
|
|
41803
41803
|
toggleFullscreen: t.toggleFullscreen
|
|
@@ -41807,7 +41807,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41807
41807
|
const f = Pn("dialog"), b = t.internalDialog, x = $O(b.title, f, l), S = In(b.size), E = (He) => VS(we, He), D = Pu(S.get()).toArray(), L = (He, ct) => (S.set(ct.internalDialog.size), FS(ct.internalDialog.size, He), Q.some(ct)), V = Xa({
|
|
41808
41808
|
body: b.body,
|
|
41809
41809
|
initialData: b.initialData
|
|
41810
|
-
}, f, l, E), j = ln(b.buttons), oe = on(j), ae = jn(j.length !== 0, bR({ buttons: j }, f, l)),
|
|
41810
|
+
}, f, l, E), j = ln(b.buttons), oe = on(j), ae = jn(j.length !== 0, bR({ buttons: j }, f, l)), be = Ci(() => Ue, PO(() => qe, l.shared.providers, r), l.shared.getSink), Se = {
|
|
41811
41811
|
id: f,
|
|
41812
41812
|
header: x,
|
|
41813
41813
|
body: V,
|
|
@@ -41819,7 +41819,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41819
41819
|
initialData: t
|
|
41820
41820
|
})],
|
|
41821
41821
|
extraStyles: {}
|
|
41822
|
-
}, qe = ft(Se,
|
|
41822
|
+
}, qe = ft(Se, be, l), we = (() => {
|
|
41823
41823
|
const He = () => {
|
|
41824
41824
|
const gt = ja.getBody(qe);
|
|
41825
41825
|
return Os.getCurrent(gt).getOr(gt);
|
|
@@ -41843,7 +41843,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41843
41843
|
const x = Pn("dialog"), S = Pn("dialog-label"), E = Pn("dialog-content"), D = t.internalDialog, L = (En) => VS(Sn, En), V = In(D.size), j = Pu(V.get()).toArray(), oe = (En, fn) => (V.set(fn.internalDialog.size), FS(fn.internalDialog.size, En), b(), Q.some(fn)), ae = Qs(T1({
|
|
41844
41844
|
title: D.title,
|
|
41845
41845
|
draggable: !0
|
|
41846
|
-
}, x, S, l.shared.providers)),
|
|
41846
|
+
}, x, S, l.shared.providers)), be = Qs(Li({
|
|
41847
41847
|
body: D.body,
|
|
41848
41848
|
initialData: D.initialData
|
|
41849
41849
|
}, x, E, l, f, L)), Se = ln(D.buttons), qe = on(Se), we = jn(Se.length !== 0, Qs(RQ({ buttons: Se }, x, l))), Ue = Ci(() => xt, {
|
|
@@ -41908,7 +41908,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41908
41908
|
]),
|
|
41909
41909
|
components: [
|
|
41910
41910
|
ae.asSpec(),
|
|
41911
|
-
|
|
41911
|
+
be.asSpec(),
|
|
41912
41912
|
...we.map((En) => En.asSpec()).toArray()
|
|
41913
41913
|
]
|
|
41914
41914
|
}), mn = () => {
|
|
@@ -41917,9 +41917,9 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41917
41917
|
getId: te(x),
|
|
41918
41918
|
getRoot: te(gt),
|
|
41919
41919
|
getFooter: () => we.map((En) => En.get(gt)),
|
|
41920
|
-
getBody: () =>
|
|
41920
|
+
getBody: () => be.get(gt),
|
|
41921
41921
|
getFormWrapper: () => {
|
|
41922
|
-
const En =
|
|
41922
|
+
const En = be.get(gt);
|
|
41923
41923
|
return Os.getCurrent(En).getOr(En);
|
|
41924
41924
|
},
|
|
41925
41925
|
toggleFullscreen: mn
|
|
@@ -41997,10 +41997,10 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41997
41997
|
width: He + "px",
|
|
41998
41998
|
"max-width": He + "px"
|
|
41999
41999
|
}))
|
|
42000
|
-
}, 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(),
|
|
42000
|
+
}, 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(), be = (He, ct) => Q.some(ct), Se = [
|
|
42001
42001
|
hn.config({
|
|
42002
42002
|
channel: `${lS}-${b}`,
|
|
42003
|
-
updateState:
|
|
42003
|
+
updateState: be,
|
|
42004
42004
|
initialData: t
|
|
42005
42005
|
}),
|
|
42006
42006
|
Po("messages", [
|
|
@@ -42134,17 +42134,17 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
42134
42134
|
optScrollEnv: Q.none()
|
|
42135
42135
|
}))
|
|
42136
42136
|
})], Yc = (t) => {
|
|
42137
|
-
const r = t.editor, l = i1(r), f = Au(t.backstages.dialog), b = Ac(t.backstages.dialog), x = (
|
|
42137
|
+
const r = t.editor, l = i1(r), f = Au(t.backstages.dialog), b = Ac(t.backstages.dialog), x = (be, Se, qe) => {
|
|
42138
42138
|
if (!K(Se)) {
|
|
42139
42139
|
if (Se.inline === "toolbar")
|
|
42140
|
-
return L(
|
|
42140
|
+
return L(be, t.backstages.popup.shared.anchors.inlineDialog(), qe, Se);
|
|
42141
42141
|
if (Se.inline === "bottom")
|
|
42142
|
-
return V(
|
|
42142
|
+
return V(be, t.backstages.popup.shared.anchors.inlineBottomDialog(), qe, Se);
|
|
42143
42143
|
if (Se.inline === "cursor")
|
|
42144
|
-
return L(
|
|
42144
|
+
return L(be, t.backstages.popup.shared.anchors.cursor(), qe, Se);
|
|
42145
42145
|
}
|
|
42146
|
-
return D(
|
|
42147
|
-
}, S = (
|
|
42146
|
+
return D(be, qe);
|
|
42147
|
+
}, S = (be, Se) => E(be, Se), E = (be, Se) => {
|
|
42148
42148
|
const qe = (we) => {
|
|
42149
42149
|
const Ue = fa(we, {
|
|
42150
42150
|
closeWindow: () => {
|
|
@@ -42153,8 +42153,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
42153
42153
|
}, r, t.backstages.dialog);
|
|
42154
42154
|
return ja.show(Ue.dialog), Ue.instanceApi;
|
|
42155
42155
|
};
|
|
42156
|
-
return Ge.openUrl(qe,
|
|
42157
|
-
}, D = (
|
|
42156
|
+
return Ge.openUrl(qe, be);
|
|
42157
|
+
}, D = (be, Se) => {
|
|
42158
42158
|
const qe = (we, Ue, He) => {
|
|
42159
42159
|
const ct = Ue, mn = MQ({
|
|
42160
42160
|
dataValidator: He,
|
|
@@ -42168,8 +42168,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
42168
42168
|
}, t.backstages.dialog);
|
|
42169
42169
|
return ja.show(mn.dialog), mn.instanceApi.setData(ct), mn.instanceApi;
|
|
42170
42170
|
};
|
|
42171
|
-
return Ge.open(qe,
|
|
42172
|
-
}, L = (
|
|
42171
|
+
return Ge.open(qe, be);
|
|
42172
|
+
}, L = (be, Se, qe, we) => {
|
|
42173
42173
|
const Ue = (He, ct, gt) => {
|
|
42174
42174
|
const mn = ld(ct, gt), Sn = Is(), xt = t.backstages.popup.shared.header.isPositionedAtTop(), En = {
|
|
42175
42175
|
dataValidator: gt,
|
|
@@ -42205,8 +42205,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
42205
42205
|
};
|
|
42206
42206
|
return ni.showWithinBounds(ls, pu(Bn.dialog), { anchor: Se }, Dr), (!l || !xt) && (mr.refresh(ls), r.on("ResizeEditor", fn)), Bn.instanceApi.setData(mn), Xn.focusIn(Bn.dialog), Bn.instanceApi;
|
|
42207
42207
|
};
|
|
42208
|
-
return Ge.open(Ue,
|
|
42209
|
-
}, V = (
|
|
42208
|
+
return Ge.open(Ue, be);
|
|
42209
|
+
}, V = (be, Se, qe, we) => {
|
|
42210
42210
|
const Ue = (He, ct, gt) => {
|
|
42211
42211
|
const mn = ld(ct, gt), Sn = Is(), xt = t.backstages.popup.shared.header.isPositionedAtTop(), En = {
|
|
42212
42212
|
dataValidator: gt,
|
|
@@ -42263,19 +42263,19 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
42263
42263
|
});
|
|
42264
42264
|
return ni.showWithinBounds(ls, pu(Bn.dialog), { anchor: Se }, Dr), mr.refresh(ls), r.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow", fn), Bn.instanceApi.setData(mn), Xn.focusIn(Bn.dialog), Bn.instanceApi;
|
|
42265
42265
|
};
|
|
42266
|
-
return Ge.open(Ue,
|
|
42266
|
+
return Ge.open(Ue, be);
|
|
42267
42267
|
};
|
|
42268
42268
|
return {
|
|
42269
42269
|
open: x,
|
|
42270
42270
|
openUrl: S,
|
|
42271
|
-
alert: (
|
|
42272
|
-
f.open(
|
|
42271
|
+
alert: (be, Se) => {
|
|
42272
|
+
f.open(be, Se);
|
|
42273
42273
|
},
|
|
42274
|
-
close: (
|
|
42275
|
-
|
|
42274
|
+
close: (be) => {
|
|
42275
|
+
be.close();
|
|
42276
42276
|
},
|
|
42277
|
-
confirm: (
|
|
42278
|
-
b.open(
|
|
42277
|
+
confirm: (be, Se) => {
|
|
42278
|
+
b.open(be, Se);
|
|
42279
42279
|
}
|
|
42280
42280
|
};
|
|
42281
42281
|
}, AY = (t) => {
|
|
@@ -42425,7 +42425,7 @@ function che() {
|
|
|
42425
42425
|
_[N] = y(z, N);
|
|
42426
42426
|
}
|
|
42427
42427
|
return _;
|
|
42428
|
-
},
|
|
42428
|
+
}, pe = (g, y) => {
|
|
42429
42429
|
for (let k = 0, _ = g.length; k < _; k++) {
|
|
42430
42430
|
const N = g[k];
|
|
42431
42431
|
y(N, k);
|
|
@@ -42454,7 +42454,7 @@ function che() {
|
|
|
42454
42454
|
return k;
|
|
42455
42455
|
}, rn = (g, y, k) => (st(g, (_, N) => {
|
|
42456
42456
|
k = y(k, _, N);
|
|
42457
|
-
}), k), je = (g, y, k) => (
|
|
42457
|
+
}), k), je = (g, y, k) => (pe(g, (_, N) => {
|
|
42458
42458
|
k = y(k, _, N);
|
|
42459
42459
|
}), k), vt = (g, y, k) => {
|
|
42460
42460
|
for (let _ = 0, N = g.length; _ < N; _++) {
|
|
@@ -42673,16 +42673,16 @@ function che() {
|
|
|
42673
42673
|
}, pl = (g, y) => {
|
|
42674
42674
|
Oi(g, y), Ks(y, g);
|
|
42675
42675
|
}, eu = (g, y) => {
|
|
42676
|
-
|
|
42676
|
+
pe(y, (k, _) => {
|
|
42677
42677
|
const N = _ === 0 ? g : y[_ - 1];
|
|
42678
42678
|
yi(N, k);
|
|
42679
42679
|
});
|
|
42680
42680
|
}, Jo = (g, y) => {
|
|
42681
|
-
|
|
42681
|
+
pe(y, (k) => {
|
|
42682
42682
|
Ks(g, k);
|
|
42683
42683
|
});
|
|
42684
42684
|
}, zl = (g) => {
|
|
42685
|
-
g.dom.textContent = "",
|
|
42685
|
+
g.dom.textContent = "", pe(So(g), (y) => {
|
|
42686
42686
|
hr(y);
|
|
42687
42687
|
});
|
|
42688
42688
|
}, hr = (g) => {
|
|
@@ -42785,7 +42785,7 @@ function che() {
|
|
|
42785
42785
|
return Dt.fromDom(y);
|
|
42786
42786
|
}, ce = (g, y, k) => rt(Ss(g, k), y), Re = (g, y) => rt(So(g), y), nt = (g, y) => {
|
|
42787
42787
|
let k = [];
|
|
42788
|
-
return
|
|
42788
|
+
return pe(So(g), (_) => {
|
|
42789
42789
|
y(_) && (k = k.concat([_])), k = k.concat(nt(_, y));
|
|
42790
42790
|
}), k;
|
|
42791
42791
|
}, $n = (g, y, k) => ce(g, (_) => bt(_, y), k), an = (g, y) => Re(g, (k) => bt(k, y)), ws = (g, y) => Le(y, g);
|
|
@@ -43146,7 +43146,7 @@ function che() {
|
|
|
43146
43146
|
const _ = It(g.cells, k);
|
|
43147
43147
|
return pa(y(g.element), _, g.section, !0);
|
|
43148
43148
|
}, mc = "data-snooker-locked-cols", Gh = (g) => Ae(g, mc).bind((y) => ve.from(y.match(/\d+/g))).map((y) => Ne(y, We)), Nr = (g) => {
|
|
43149
|
-
const y = je(qi(g).rows, (_, N) => (
|
|
43149
|
+
const y = je(qi(g).rows, (_, N) => (pe(N.cells, (z, J) => {
|
|
43150
43150
|
z.isLocked && (_[J] = !0);
|
|
43151
43151
|
}), _), {}), k = ss(y, (_, N) => parseInt(N, 10));
|
|
43152
43152
|
return ze(k);
|
|
@@ -43159,7 +43159,7 @@ function che() {
|
|
|
43159
43159
|
}, sr = (g) => {
|
|
43160
43160
|
const y = {};
|
|
43161
43161
|
let k = 0;
|
|
43162
|
-
return
|
|
43162
|
+
return pe(g.cells, (_) => {
|
|
43163
43163
|
const N = _.colspan;
|
|
43164
43164
|
Kt(N, (z) => {
|
|
43165
43165
|
const J = k + z;
|
|
@@ -43173,9 +43173,9 @@ function che() {
|
|
|
43173
43173
|
pass: ue,
|
|
43174
43174
|
fail: Ie
|
|
43175
43175
|
} = jt(g, (Yt) => Yt.section === "colgroup");
|
|
43176
|
-
|
|
43176
|
+
pe(Ie, (Yt) => {
|
|
43177
43177
|
const tn = [];
|
|
43178
|
-
|
|
43178
|
+
pe(Yt.cells, (Mn) => {
|
|
43179
43179
|
let zt = 0;
|
|
43180
43180
|
for (; y[Wm(ie, zt)] !== void 0; )
|
|
43181
43181
|
zt++;
|
|
@@ -43477,7 +43477,7 @@ function che() {
|
|
|
43477
43477
|
(J.column < y.minCol || J.column > y.maxCol) && hr(J.element);
|
|
43478
43478
|
});
|
|
43479
43479
|
const N = rt(Vu(g, "tr"), (J) => J.dom.childElementCount === 0);
|
|
43480
|
-
|
|
43480
|
+
pe(N, hr), (y.minCol === y.maxCol || y.minRow === y.maxRow) && pe(Vu(g, "th,td"), (J) => {
|
|
43481
43481
|
Te(J, "rowspan"), Te(J, "colspan");
|
|
43482
43482
|
}), Te(g, mc), Te(g, "data-snooker-col-series"), ee.getTableSize(g).adjustTableWidth(_);
|
|
43483
43483
|
}, ko = (g, y, k, _) => {
|
|
@@ -43487,7 +43487,7 @@ function che() {
|
|
|
43487
43487
|
return k.getCellDelta(ue);
|
|
43488
43488
|
}, Wo = (g, y) => {
|
|
43489
43489
|
const k = (bn) => bt(bn.element, y), _ = oi(g), N = Lg(_), z = ee.getTableSize(g), J = es.generate(N), ie = Qe(J, k), ue = "th:not(" + y + "),td:not(" + y + ")", Ie = Vh(_, "th,td", (bn) => bt(bn, ue));
|
|
43490
|
-
|
|
43490
|
+
pe(Ie, hr), en(N, J, ie, k);
|
|
43491
43491
|
const tt = es.fromTable(g), Zt = ko(g, tt, z, ie);
|
|
43492
43492
|
return Rn(_, ie, J, Zt), _;
|
|
43493
43493
|
}, Xs = " ", Lr = ((g, y) => {
|
|
@@ -43681,7 +43681,7 @@ function che() {
|
|
|
43681
43681
|
}, m0 = (g) => g.inline && XO(g).isSome(), Yu = La("ui_mode"), of = (g) => !m0(g) && Yu(g) === "split", nm = (g) => vi(g, "[contenteditable]"), g0 = (g, y = !1) => mo(g) ? g.dom.isContentEditable : nm(g).fold(le(y), (k) => X1(k) === "true"), X1 = (g) => g.dom.contentEditable, Km = (g) => Dt.fromDom(g.getBody()), ep = (g) => (y) => Ht(y, Km(g)), Jm = (g) => {
|
|
43682
43682
|
Te(g, "data-mce-style");
|
|
43683
43683
|
const y = (k) => Te(k, "data-mce-style");
|
|
43684
|
-
|
|
43684
|
+
pe(eh(g), y), pe(hc(g), y), pe(Yp(g), y);
|
|
43685
43685
|
}, q1 = (g) => Dt.fromDom(g.selection.getStart()), qO = (g) => g.getBoundingClientRect().width, tp = (g) => g.getBoundingClientRect().height, qo = (g) => (y, k) => {
|
|
43686
43686
|
const _ = y.dom.getStyle(k, g) || y.dom.getAttrib(k, g);
|
|
43687
43687
|
return ve.from(_).filter(Oe);
|
|
@@ -44146,7 +44146,7 @@ function che() {
|
|
|
44146
44146
|
const k = [], _ = [], N = (Yt) => It(Yt, (tn) => {
|
|
44147
44147
|
tn.isNew && k.push(tn.element);
|
|
44148
44148
|
const Mn = tn.element;
|
|
44149
|
-
return zl(Mn),
|
|
44149
|
+
return zl(Mn), pe(tn.cells, (zt) => {
|
|
44150
44150
|
zt.isNew && _.push(zt.element), ph(zt.element, "colspan", zt.colspan, 1), ph(zt.element, "rowspan", zt.rowspan, 1), Ks(Mn, zt.element);
|
|
44151
44151
|
}), Mn;
|
|
44152
44152
|
}), z = (Yt) => xo(Yt, (tn) => It(tn.cells, (Mn) => (ph(Mn.element, "span", Mn.colspan, 1), Mn.element))), J = (Yt, tn) => {
|
|
@@ -44157,7 +44157,7 @@ function che() {
|
|
|
44157
44157
|
}, ue = (Yt, tn) => {
|
|
44158
44158
|
Yt.length > 0 ? J(Yt, tn) : ie(tn);
|
|
44159
44159
|
}, Ie = [], tt = [], Zt = [], bn = [];
|
|
44160
|
-
return
|
|
44160
|
+
return pe(y, (Yt) => {
|
|
44161
44161
|
switch (Yt.section) {
|
|
44162
44162
|
case "thead":
|
|
44163
44163
|
Ie.push(Yt);
|
|
@@ -44178,7 +44178,7 @@ function che() {
|
|
|
44178
44178
|
};
|
|
44179
44179
|
}, gk = (g) => It(g, (y) => {
|
|
44180
44180
|
const k = Hl(y.element);
|
|
44181
|
-
return
|
|
44181
|
+
return pe(y.cells, (_) => {
|
|
44182
44182
|
const N = oi(_.element);
|
|
44183
44183
|
ph(N, "colspan", _.colspan, 1), ph(N, "rowspan", _.rowspan, 1), Ks(k, N);
|
|
44184
44184
|
}), k;
|
|
@@ -44211,7 +44211,7 @@ function che() {
|
|
|
44211
44211
|
});
|
|
44212
44212
|
}, lb = (g, y, k) => {
|
|
44213
44213
|
const _ = [];
|
|
44214
|
-
|
|
44214
|
+
pe(g.colgroups, (N) => {
|
|
44215
44215
|
const z = [];
|
|
44216
44216
|
for (let J = 0; J < g.grid.columns; J++) {
|
|
44217
44217
|
const ie = es.getColumnAt(g, J).map((ue) => jr(ue.element, k, !1)).getOrThunk(() => jr(y.colGap(), !0, !1));
|
|
@@ -44281,7 +44281,7 @@ function che() {
|
|
|
44281
44281
|
Zt && !z ? Eo(ue, ie, jr(_(), !0, Ie.isLocked)) : Zt && (z = !1);
|
|
44282
44282
|
}
|
|
44283
44283
|
return g;
|
|
44284
|
-
}, mu = (g, y) => je(g, (k, _) => Lt(k, (N) => y(N.element, _.element)) ? k : k.concat([_]), []), X4 = (g, y, k, _) => (y > 0 && y < g[0].cells.length &&
|
|
44284
|
+
}, mu = (g, y) => je(g, (k, _) => Lt(k, (N) => y(N.element, _.element)) ? k : k.concat([_]), []), X4 = (g, y, k, _) => (y > 0 && y < g[0].cells.length && pe(g, (N) => {
|
|
44285
44285
|
const z = N.cells[y - 1];
|
|
44286
44286
|
let J = 0;
|
|
44287
44287
|
const ie = _();
|
|
@@ -44291,7 +44291,7 @@ function che() {
|
|
|
44291
44291
|
const N = qi(g).rows;
|
|
44292
44292
|
if (y > 0 && y < N.length) {
|
|
44293
44293
|
const z = N[y - 1].cells, J = mu(z, k);
|
|
44294
|
-
|
|
44294
|
+
pe(J, (ie) => {
|
|
44295
44295
|
let ue = ve.none();
|
|
44296
44296
|
for (let Ie = y; Ie < N.length; Ie++)
|
|
44297
44297
|
for (let tt = 0; tt < jl(N[0]); tt++) {
|
|
@@ -44493,7 +44493,7 @@ function che() {
|
|
|
44493
44493
|
return fp(g, J, _, N, ay, Ie, ue);
|
|
44494
44494
|
}, J4 = (g, y, k, _, N, z, J) => {
|
|
44495
44495
|
const { cols: ie, rows: ue } = qi(g), Ie = ue[y[0]], tt = xo(y, (zt) => K4(ue, zt, N)), Zt = It(Ie.cells, (zt, no) => sy(mp(ue, no, N))), bn = [...ue];
|
|
44496
|
-
|
|
44496
|
+
pe(y, (zt) => {
|
|
44497
44497
|
bn[zt] = J.transformRow(ue[zt], k);
|
|
44498
44498
|
});
|
|
44499
44499
|
const Yt = [
|
|
@@ -44510,7 +44510,7 @@ function che() {
|
|
|
44510
44510
|
if (g.length === 0)
|
|
44511
44511
|
throw new Error("there must be at least one case");
|
|
44512
44512
|
const y = [], k = {};
|
|
44513
|
-
return
|
|
44513
|
+
return pe(g, (_, N) => {
|
|
44514
44514
|
const z = vn(_);
|
|
44515
44515
|
if (z.length !== 1)
|
|
44516
44516
|
throw new Error("one and only one name per case");
|
|
@@ -44603,7 +44603,7 @@ Required: ` + y.join(", "));
|
|
|
44603
44603
|
height: y[_]
|
|
44604
44604
|
})), o5 = (g) => rn(g, (y, k) => y + k, 0), fb = (g, y) => es.hasColumns(g) ? n5(g, y) : F2(g, y), Z2 = (g, y, k) => {
|
|
44605
44605
|
const _ = fb(g, y);
|
|
44606
|
-
|
|
44606
|
+
pe(_, (N) => {
|
|
44607
44607
|
k.setElementWidth(N.element, N.width);
|
|
44608
44608
|
});
|
|
44609
44609
|
}, ig = (g, y, k, _, N) => {
|
|
@@ -44611,9 +44611,9 @@ Required: ` + y.join(", "));
|
|
|
44611
44611
|
Z2(z, Zt, N), _.resizeTable(N.adjustTableWidth, Ie, ue);
|
|
44612
44612
|
}, ly = (g, y, k) => {
|
|
44613
44613
|
const _ = es.fromTable(g), N = _r(_, g), z = It(N, (ue, Ie) => k === Ie ? Math.max(y + ue, Hf()) : ue), J = _k(_, z);
|
|
44614
|
-
|
|
44614
|
+
pe(J, (ue) => {
|
|
44615
44615
|
ef(ue.element, ue.height);
|
|
44616
|
-
}),
|
|
44616
|
+
}), pe(es.justCells(_), (ue) => {
|
|
44617
44617
|
Kf(ue.element);
|
|
44618
44618
|
});
|
|
44619
44619
|
const ie = o5(z);
|
|
@@ -44932,9 +44932,9 @@ Required: ` + y.join(", "));
|
|
|
44932
44932
|
section: ue(Ca)
|
|
44933
44933
|
};
|
|
44934
44934
|
return sx(Ca) ? ec(Ca, Sm, uE, ix).bind((ax) => {
|
|
44935
|
-
y.refresh(Ca.dom),
|
|
44935
|
+
y.refresh(Ca.dom), pe(ax.newRows, (qb) => {
|
|
44936
44936
|
ea(g, qb.dom);
|
|
44937
|
-
}),
|
|
44937
|
+
}), pe(ax.newCells, (qb) => {
|
|
44938
44938
|
cl(g, qb.dom);
|
|
44939
44939
|
});
|
|
44940
44940
|
const JC = Ie(Ca, ax);
|
|
@@ -45063,19 +45063,19 @@ Required: ` + y.join(", "));
|
|
|
45063
45063
|
}), k = y.output;
|
|
45064
45064
|
return k.slice(0, k.length - 1).concat([yy(k[k.length - 1], Math.round(y.remainder))]);
|
|
45065
45065
|
}, cw = Ri.from, b5 = (g, y, k) => {
|
|
45066
|
-
|
|
45066
|
+
pe(y, (_) => {
|
|
45067
45067
|
const N = g.slice(_.column, _.colspan + _.column), z = aw(N, Lc());
|
|
45068
45068
|
Io(_.element, "width", z + k);
|
|
45069
45069
|
});
|
|
45070
45070
|
}, O5 = (g, y, k) => {
|
|
45071
|
-
|
|
45071
|
+
pe(y, (_, N) => {
|
|
45072
45072
|
const z = aw([g[N]], Lc());
|
|
45073
45073
|
Io(_.element, "width", z + k);
|
|
45074
45074
|
});
|
|
45075
45075
|
}, y5 = (g, y, k) => {
|
|
45076
|
-
|
|
45076
|
+
pe(k, (_) => {
|
|
45077
45077
|
vr(_.element, "height");
|
|
45078
|
-
}),
|
|
45078
|
+
}), pe(y, (_, N) => {
|
|
45079
45079
|
Io(_.element, "height", g[N]);
|
|
45080
45080
|
});
|
|
45081
45081
|
}, v5 = (g) => cw(g).fold(le("px"), le("px"), le("%")), uw = (g, y, k) => {
|
|
@@ -45101,7 +45101,7 @@ Required: ` + y.join(", "));
|
|
|
45101
45101
|
}, Gk = (g) => {
|
|
45102
45102
|
vr(g, "width");
|
|
45103
45103
|
const y = hc(g), k = y.length > 0 ? y : eh(g);
|
|
45104
|
-
|
|
45104
|
+
pe(k, (_) => {
|
|
45105
45105
|
vr(_, "width"), xb(_);
|
|
45106
45106
|
}), xb(g);
|
|
45107
45107
|
}, Yk = {
|
|
@@ -45143,8 +45143,8 @@ Required: ` + y.join(", "));
|
|
|
45143
45143
|
}, k5 = (g, y) => {
|
|
45144
45144
|
ba(y, "td,th").each(at(fw, g));
|
|
45145
45145
|
}, Sb = (g, y) => {
|
|
45146
|
-
|
|
45147
|
-
ea(g, k.dom),
|
|
45146
|
+
pe(ws(y, "tr"), (k) => {
|
|
45147
|
+
ea(g, k.dom), pe(ws(k, "th,td"), (_) => {
|
|
45148
45148
|
cl(g, _.dom);
|
|
45149
45149
|
});
|
|
45150
45150
|
});
|
|
@@ -45204,7 +45204,7 @@ Required: ` + y.join(", "));
|
|
|
45204
45204
|
}, ue = (zt, no) => {
|
|
45205
45205
|
J((Mt) => {
|
|
45206
45206
|
const Cn = sm(g), Gs = Xo(Cn, (Un) => g.formatter.match("tablecellclass", { value: no }, Un.dom)) ? g.formatter.remove : g.formatter.apply;
|
|
45207
|
-
|
|
45207
|
+
pe(Cn, (Un) => Gs("tablecellclass", { value: no }, Un.dom)), Di(g, Mt.dom, vb);
|
|
45208
45208
|
});
|
|
45209
45209
|
}, Ie = () => {
|
|
45210
45210
|
Ou(g).each((zt) => {
|
|
@@ -45287,7 +45287,7 @@ Required: ` + y.join(", "));
|
|
|
45287
45287
|
const qs = Js(no, (Gs, Un) => g.formatter.has(Mt(Un)) && O(Gs));
|
|
45288
45288
|
Ya(qs) || (Co(qs, (Gs, Un) => {
|
|
45289
45289
|
const pr = Mt(Un);
|
|
45290
|
-
|
|
45290
|
+
pe(Cn, (Jl) => {
|
|
45291
45291
|
Gs === "" ? g.formatter.remove(pr, { value: null }, Jl.dom, !0) : g.formatter.apply(pr, { value: Gs }, Jl.dom);
|
|
45292
45292
|
});
|
|
45293
45293
|
}), z(Cn[0]).each((Gs) => Di(g, Gs.dom, vb)));
|
|
@@ -45843,7 +45843,7 @@ Required: ` + y.join(", "));
|
|
|
45843
45843
|
}, Iw = (g, y) => {
|
|
45844
45844
|
gg(g) ? g.dom.classList.remove(y) : NC(g, y), LC(g);
|
|
45845
45845
|
}, pg = (g, y) => gg(g) && g.dom.classList.contains(y), Qw = (g, y) => {
|
|
45846
|
-
|
|
45846
|
+
pe(y, (k) => {
|
|
45847
45847
|
Iw(g, k);
|
|
45848
45848
|
});
|
|
45849
45849
|
}, kn = (g) => (y) => {
|
|
@@ -45858,13 +45858,13 @@ Required: ` + y.join(", "));
|
|
|
45858
45858
|
g.firstSelected
|
|
45859
45859
|
]), _ = (z) => {
|
|
45860
45860
|
const J = ws(z, g.selectedSelector);
|
|
45861
|
-
|
|
45861
|
+
pe(J, k);
|
|
45862
45862
|
};
|
|
45863
45863
|
return {
|
|
45864
45864
|
clearBeforeUpdate: _,
|
|
45865
45865
|
clear: _,
|
|
45866
45866
|
selectRange: (z, J, ie, ue) => {
|
|
45867
|
-
_(z),
|
|
45867
|
+
_(z), pe(J, y), ym(ie, g.firstSelected), ym(ue, g.lastSelected);
|
|
45868
45868
|
},
|
|
45869
45869
|
selectedSelector: g.selectedSelector,
|
|
45870
45870
|
firstSelectedSelector: g.firstSelectedSelector,
|
|
@@ -45880,13 +45880,13 @@ Required: ` + y.join(", "));
|
|
|
45880
45880
|
J(ue), k();
|
|
45881
45881
|
}, J = (ue) => {
|
|
45882
45882
|
const Ie = ws(ue, `${g.selectedSelector},${g.firstSelectedSelector},${g.lastSelectedSelector}`);
|
|
45883
|
-
|
|
45883
|
+
pe(Ie, _);
|
|
45884
45884
|
};
|
|
45885
45885
|
return {
|
|
45886
45886
|
clearBeforeUpdate: J,
|
|
45887
45887
|
clear: z,
|
|
45888
45888
|
selectRange: (ue, Ie, tt, Zt) => {
|
|
45889
|
-
z(ue),
|
|
45889
|
+
z(ue), pe(Ie, N), Ws(tt, g.firstSelected, "1"), Ws(Zt, g.lastSelected, "1"), y(Ie, tt, Zt);
|
|
45890
45890
|
},
|
|
45891
45891
|
selectedSelector: g.selectedSelector,
|
|
45892
45892
|
firstSelectedSelector: g.firstSelectedSelector,
|
|
@@ -46022,9 +46022,9 @@ Required: ` + y.join(", "));
|
|
|
46022
46022
|
},
|
|
46023
46023
|
trigger: (...z) => {
|
|
46024
46024
|
const J = {};
|
|
46025
|
-
|
|
46025
|
+
pe(g, (ie, ue) => {
|
|
46026
46026
|
J[ie] = z[ue];
|
|
46027
|
-
}),
|
|
46027
|
+
}), pe(y, (ie) => {
|
|
46028
46028
|
ie(J);
|
|
46029
46029
|
});
|
|
46030
46030
|
}
|
|
@@ -46058,7 +46058,7 @@ Required: ` + y.join(", "));
|
|
|
46058
46058
|
}, ZC = (g, y) => {
|
|
46059
46059
|
if (!T(y))
|
|
46060
46060
|
throw new Error("The " + g + " fields must be an array. Was: " + y + ".");
|
|
46061
|
-
|
|
46061
|
+
pe(y, (k) => {
|
|
46062
46062
|
if (!O(k))
|
|
46063
46063
|
throw new Error("The value " + k + " in the " + g + " fields was not a string.");
|
|
46064
46064
|
});
|
|
@@ -46295,10 +46295,10 @@ Required: ` + y.join(", "));
|
|
|
46295
46295
|
});
|
|
46296
46296
|
}, $c = (g) => {
|
|
46297
46297
|
const y = ws(g.parent(), "." + Ub);
|
|
46298
|
-
|
|
46298
|
+
pe(y, hr);
|
|
46299
46299
|
}, Nl = (g, y, k) => {
|
|
46300
46300
|
const _ = g.origin();
|
|
46301
|
-
|
|
46301
|
+
pe(y, (N) => {
|
|
46302
46302
|
N.each((z) => {
|
|
46303
46303
|
const J = k(_, z);
|
|
46304
46304
|
ym(J, Ub), Ks(g.parent(), J);
|
|
@@ -46326,7 +46326,7 @@ Required: ` + y.join(", "));
|
|
|
46326
46326
|
}
|
|
46327
46327
|
}, Os = (g, y) => {
|
|
46328
46328
|
const k = ws(g.parent(), "." + Ub);
|
|
46329
|
-
|
|
46329
|
+
pe(k, y);
|
|
46330
46330
|
}, q0 = (g) => {
|
|
46331
46331
|
Os(g, (y) => {
|
|
46332
46332
|
Io(y, "display", "none");
|
|
@@ -46491,7 +46491,7 @@ Required: ` + y.join(", "));
|
|
|
46491
46491
|
g.inline && hr(y.parent());
|
|
46492
46492
|
}, KC = (g) => K(g) && g.nodeName === "TABLE", tx = "bar-", Wb = (g) => yr(g, "data-mce-resize") !== "false", aE = (g) => {
|
|
46493
46493
|
const y = es.fromTable(g);
|
|
46494
|
-
es.hasColumns(y) ||
|
|
46494
|
+
es.hasColumns(y) || pe(eh(g), (k) => {
|
|
46495
46495
|
const _ = ri(k, "width");
|
|
46496
46496
|
Io(k, "width", _), Te(k, "width");
|
|
46497
46497
|
});
|
|
@@ -46540,7 +46540,7 @@ Required: ` + y.join(", "));
|
|
|
46540
46540
|
const qs = Cn.target;
|
|
46541
46541
|
if (KC(qs) && !g.mode.isReadOnly()) {
|
|
46542
46542
|
const Gs = Dt.fromDom(qs);
|
|
46543
|
-
|
|
46543
|
+
pe(g.dom.select(".mce-clonedresizable"), (Un) => {
|
|
46544
46544
|
g.dom.addClass(Un, "mce-" + ki(g) + "-columns");
|
|
46545
46545
|
}), !wy(Gs) && Gu(g) ? dw(Gs) : !vy(Gs) && f0(g) && gm(Gs), xy(Gs) && zi(Cn.origin, tx) && gm(Gs), N = Cn.width, z = wl(g) ? "" : Vn(g, qs).getOr(""), J = Cn.height, ie = eg(g, qs).getOr("");
|
|
46546
46546
|
}
|
|
@@ -46745,7 +46745,7 @@ function uhe() {
|
|
|
46745
46745
|
}, Kt = (M, U) => Lt(We(M, U)), It = (M) => {
|
|
46746
46746
|
const U = qt.call(M, 0);
|
|
46747
46747
|
return U.reverse(), U;
|
|
46748
|
-
},
|
|
46748
|
+
}, pe = (M, U) => U >= 0 && U < M.length ? Xe.some(M[U]) : Xe.none(), st = (M) => pe(M, 0), jt = (M) => pe(M, M.length - 1), rt = (M, U) => {
|
|
46749
46749
|
const ne = [], $e = F(U) ? (Fe) => dn(ne, (Vt) => U(Vt, Fe)) : (Fe) => sn(ne, Fe);
|
|
46750
46750
|
for (let Fe = 0, Vt = M.length; Fe < Vt; Fe++) {
|
|
46751
46751
|
const to = M[Fe];
|
|
@@ -47923,7 +47923,7 @@ function dhe() {
|
|
|
47923
47923
|
processor: "boolean",
|
|
47924
47924
|
default: !1
|
|
47925
47925
|
});
|
|
47926
|
-
}, Lt = Q("link_assume_external_targets"), Kt = Q("link_context_toolbar"), It = Q("link_list"),
|
|
47926
|
+
}, Lt = Q("link_assume_external_targets"), Kt = Q("link_context_toolbar"), It = Q("link_list"), pe = Q("link_default_target"), st = Q("link_default_protocol"), jt = Q("link_target_list"), rt = Q("link_rel_list"), rn = Q("link_class_list"), je = Q("link_title"), vt = Q("allow_unsafe_link_target"), Y = Q("link_quicklink"), us = Object.keys, Oo = Object.hasOwnProperty, xo = (se, Ee) => {
|
|
47927
47927
|
const Ve = us(se);
|
|
47928
47928
|
for (let wt = 0, Jt = Ve.length; wt < Jt; wt++) {
|
|
47929
47929
|
const Tn = Ve[wt], un = se[Tn];
|
|
@@ -47979,7 +47979,7 @@ function dhe() {
|
|
|
47979
47979
|
const wt = Us(Ve.rel, Ve.target === "_blank");
|
|
47980
47980
|
Ve.rel = wt || null;
|
|
47981
47981
|
}
|
|
47982
|
-
return Je.from(Ve.target).isNone() && jt(se) === !1 && (Ve.target =
|
|
47982
|
+
return Je.from(Ve.target).isNone() && jt(se) === !1 && (Ve.target = pe(se)), Ve.href = pi(Ve.href, Lt(se)), Ve;
|
|
47983
47983
|
}, Lo = (se, Ee, Ve, wt) => {
|
|
47984
47984
|
Ve.each((Jt) => {
|
|
47985
47985
|
ze(Ee, "innerText") ? Ee.innerText = Jt : Ee.textContent = Jt;
|
|
@@ -48286,7 +48286,7 @@ function dhe() {
|
|
|
48286
48286
|
name: "title",
|
|
48287
48287
|
type: "input",
|
|
48288
48288
|
label: "Title"
|
|
48289
|
-
}] : [], un = Je.from(
|
|
48289
|
+
}] : [], un = Je.from(pe(Ve)), co = So(se, un), mo = se.catalogs, is = Ae.init(co, mo);
|
|
48290
48290
|
return {
|
|
48291
48291
|
title: "Insert/Edit Link",
|
|
48292
48292
|
size: "normal",
|
|
@@ -48515,7 +48515,7 @@ function dhe() {
|
|
|
48515
48515
|
text: co,
|
|
48516
48516
|
title: Je.none(),
|
|
48517
48517
|
rel: Je.none(),
|
|
48518
|
-
target: Je.from(
|
|
48518
|
+
target: Je.from(pe(se)),
|
|
48519
48519
|
class: Je.none()
|
|
48520
48520
|
}), Ve(se), Tn.hide();
|
|
48521
48521
|
}
|
|
@@ -48685,7 +48685,7 @@ function hhe() {
|
|
|
48685
48685
|
Lt(q.dom, ce, Re);
|
|
48686
48686
|
}, It = (q, ce) => {
|
|
48687
48687
|
q.dom.removeAttribute(ce);
|
|
48688
|
-
},
|
|
48688
|
+
}, pe = (q, ce) => {
|
|
48689
48689
|
const nt = (ce || document).createElement("div");
|
|
48690
48690
|
if (nt.innerHTML = q, !nt.hasChildNodes() || nt.childNodes.length > 1) {
|
|
48691
48691
|
const $n = "HTML does not have a single root node";
|
|
@@ -48703,7 +48703,7 @@ function hhe() {
|
|
|
48703
48703
|
throw new Error("Node cannot be null or undefined");
|
|
48704
48704
|
return { dom: q };
|
|
48705
48705
|
}, je = {
|
|
48706
|
-
fromHtml:
|
|
48706
|
+
fromHtml: pe,
|
|
48707
48707
|
fromTag: st,
|
|
48708
48708
|
fromText: jt,
|
|
48709
48709
|
fromDom: rt,
|
|
@@ -49583,7 +49583,7 @@ function fhe() {
|
|
|
49583
49583
|
!ut.source && To === "param" && (ut.source = ao.attr("movie")), (To === "iframe" || To === "object" || To === "embed" || To === "video" || To === "audio") && (ut.type || (ut.type = To), ut = dt.extend(ao.attributes.map, ut)), To === "source" && (ut.source ? ut.altsource || (ut.altsource = ao.attr("src")) : ut.source = ao.attr("src")), To === "img" && !ut.poster && (ut.poster = ao.attr("src"));
|
|
49584
49584
|
}
|
|
49585
49585
|
return ut.source = ut.source || ut.src || "", ut.altsource = ut.altsource || "", ut.poster = ut.poster || "", ut;
|
|
49586
|
-
},
|
|
49586
|
+
}, pe = (Ae) => {
|
|
49587
49587
|
var Te;
|
|
49588
49588
|
const ut = {
|
|
49589
49589
|
mp3: "audio/mpeg",
|
|
@@ -49778,7 +49778,7 @@ function fhe() {
|
|
|
49778
49778
|
const pt = dt.extend({}, Te);
|
|
49779
49779
|
if (!pt.source && (dt.extend(pt, It((ut = pt.embed) !== null && ut !== void 0 ? ut : "", Ae.schema)), !pt.source))
|
|
49780
49780
|
return "";
|
|
49781
|
-
pt.altsource || (pt.altsource = ""), pt.poster || (pt.poster = ""), pt.source = Ae.convertURL(pt.source, "source"), pt.altsource = Ae.convertURL(pt.altsource, "source"), pt.sourcemime =
|
|
49781
|
+
pt.altsource || (pt.altsource = ""), pt.poster || (pt.poster = ""), pt.source = Ae.convertURL(pt.source, "source"), pt.altsource = Ae.convertURL(pt.altsource, "source"), pt.sourcemime = pe(pt.source), pt.altsourcemime = pe(pt.altsource), pt.poster = Ae.convertURL(pt.poster, "poster");
|
|
49782
49782
|
const Wn = _i(pt.source);
|
|
49783
49783
|
if (Wn && (pt.source = Wn.url, pt.type = Wn.type, pt.allowfullscreen = Wn.allowFullscreen, pt.width = pt.width || String(Wn.w), pt.height = pt.height || String(Wn.h)), pt.embed)
|
|
49784
49784
|
return us(pt.embed, pt, !0, Ae.schema);
|
|
@@ -50320,7 +50320,7 @@ function mhe() {
|
|
|
50320
50320
|
if (sn.call(A, I))
|
|
50321
50321
|
return !1;
|
|
50322
50322
|
return !0;
|
|
50323
|
-
},
|
|
50323
|
+
}, pe = Array.prototype.indexOf, st = Array.prototype.push, jt = (A, I) => pe.call(A, I), rt = (A, I) => jt(A, I) > -1, rn = (A, I) => {
|
|
50324
50324
|
for (let ee = 0, me = A.length; ee < me; ee++) {
|
|
50325
50325
|
const Qe = A[ee];
|
|
50326
50326
|
if (I(Qe, ee))
|
|
@@ -52575,11 +52575,11 @@ function phe() {
|
|
|
52575
52575
|
}, It = (Ne, ze) => {
|
|
52576
52576
|
const Ke = kt(Ne, ze).join("").replace(/\s/g, "");
|
|
52577
52577
|
return io(Ke);
|
|
52578
|
-
},
|
|
52578
|
+
}, pe = (Ne, ze) => () => ze(Ne.getBody(), Ne.schema), st = (Ne, ze) => () => ze(Ne.selection.getRng().cloneContents(), Ne.schema), jt = (Ne) => pe(Ne, Lt), rt = (Ne) => ({
|
|
52579
52579
|
body: {
|
|
52580
52580
|
getWordCount: jt(Ne),
|
|
52581
|
-
getCharacterCount:
|
|
52582
|
-
getCharacterCountWithoutSpaces:
|
|
52581
|
+
getCharacterCount: pe(Ne, Kt),
|
|
52582
|
+
getCharacterCountWithoutSpaces: pe(Ne, It)
|
|
52583
52583
|
},
|
|
52584
52584
|
selection: {
|
|
52585
52585
|
getWordCount: st(Ne, Lt),
|
|
@@ -52824,7 +52824,7 @@ function bhe() {
|
|
|
52824
52824
|
return Et;
|
|
52825
52825
|
}
|
|
52826
52826
|
return sn.none();
|
|
52827
|
-
},
|
|
52827
|
+
}, pe = (fe, Oe, et) => fe.isSome() && Oe.isSome() ? sn.some(et(fe.getOrDie(), Oe.getOrDie())) : sn.none(), st = (fe) => {
|
|
52828
52828
|
const Oe = u(sn.none()), et = () => Oe.get().each(fe);
|
|
52829
52829
|
return {
|
|
52830
52830
|
clear: () => {
|
|
@@ -53305,7 +53305,7 @@ function bhe() {
|
|
|
53305
53305
|
Ba && vi(fe.dom), ia(Oa.removeClass), zf.unbind(), sn.from(Oe.get()).each((Hi) => Hi.fullscreenChangeHandler.unbind());
|
|
53306
53306
|
};
|
|
53307
53307
|
if (ri)
|
|
53308
|
-
ri.fullscreenChangeHandler.unbind(), Tn(fe) && ce(tr) && q(Mr(tr)), hi.width = ri.iframeWidth, hi.height = ri.iframeHeight, vr.width = ri.containerWidth, vr.height = ri.containerHeight, vr.top = ri.containerTop, vr.left = ri.containerLeft,
|
|
53308
|
+
ri.fullscreenChangeHandler.unbind(), Tn(fe) && ce(tr) && q(Mr(tr)), hi.width = ri.iframeWidth, hi.height = ri.iframeHeight, vr.width = ri.containerWidth, vr.height = ri.containerHeight, vr.top = ri.containerTop, vr.left = ri.containerLeft, pe(Io, ri.sinkCssPosition, (Hi, Vs) => {
|
|
53309
53309
|
bi(Hi, "position", Vs);
|
|
53310
53310
|
}), Zr(), Bc(ri.scrollPos), Oe.set(null), Ve(fe, !1), fe.off("remove", Zr);
|
|
53311
53311
|
else {
|
|
@@ -53438,17 +53438,17 @@ var Gte = {}, Yte;
|
|
|
53438
53438
|
function yhe() {
|
|
53439
53439
|
return Yte || (Yte = 1, function() {
|
|
53440
53440
|
var u = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
53441
|
-
const o = (
|
|
53441
|
+
const o = (pe, st, jt) => {
|
|
53442
53442
|
const rt = st === "UL" ? "InsertUnorderedList" : "InsertOrderedList";
|
|
53443
|
-
|
|
53444
|
-
}, i = (
|
|
53445
|
-
|
|
53446
|
-
o(
|
|
53447
|
-
}),
|
|
53448
|
-
o(
|
|
53443
|
+
pe.execCommand(rt, !1, jt === !1 ? null : { "list-style-type": jt });
|
|
53444
|
+
}, i = (pe) => {
|
|
53445
|
+
pe.addCommand("ApplyUnorderedListStyle", (st, jt) => {
|
|
53446
|
+
o(pe, "UL", jt["list-style-type"]);
|
|
53447
|
+
}), pe.addCommand("ApplyOrderedListStyle", (st, jt) => {
|
|
53448
|
+
o(pe, "OL", jt["list-style-type"]);
|
|
53449
53449
|
});
|
|
53450
|
-
}, c = (
|
|
53451
|
-
const st =
|
|
53450
|
+
}, c = (pe) => (st) => st.options.get(pe), h = (pe) => {
|
|
53451
|
+
const st = pe.options.register;
|
|
53452
53452
|
st("advlist_number_styles", {
|
|
53453
53453
|
processor: "string[]",
|
|
53454
53454
|
default: "default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman".split(",")
|
|
@@ -53456,7 +53456,7 @@ function yhe() {
|
|
|
53456
53456
|
processor: "string[]",
|
|
53457
53457
|
default: "default,circle,square".split(",")
|
|
53458
53458
|
});
|
|
53459
|
-
}, m = c("advlist_number_styles"), O = c("advlist_bullet_styles"), w = (
|
|
53459
|
+
}, m = c("advlist_number_styles"), O = c("advlist_bullet_styles"), w = (pe) => pe == null, T = (pe) => !w(pe);
|
|
53460
53460
|
class P {
|
|
53461
53461
|
constructor(st, jt) {
|
|
53462
53462
|
this.tag = st, this.value = jt;
|
|
@@ -53528,58 +53528,58 @@ function yhe() {
|
|
|
53528
53528
|
}
|
|
53529
53529
|
}
|
|
53530
53530
|
P.singletonNone = new P(!1);
|
|
53531
|
-
const R = Array.prototype.indexOf, F = (
|
|
53532
|
-
for (let rt = 0, rn =
|
|
53533
|
-
const je =
|
|
53531
|
+
const R = Array.prototype.indexOf, F = (pe, st) => R.call(pe, st), H = (pe, st) => F(pe, st) > -1, K = (pe, st, jt) => {
|
|
53532
|
+
for (let rt = 0, rn = pe.length; rt < rn; rt++) {
|
|
53533
|
+
const je = pe[rt];
|
|
53534
53534
|
if (st(je, rt))
|
|
53535
53535
|
return P.some(je);
|
|
53536
53536
|
if (jt(je, rt))
|
|
53537
53537
|
break;
|
|
53538
53538
|
}
|
|
53539
53539
|
return P.none();
|
|
53540
|
-
}, he = Object.keys, Be = (
|
|
53541
|
-
const jt = he(
|
|
53540
|
+
}, he = Object.keys, Be = (pe, st) => {
|
|
53541
|
+
const jt = he(pe);
|
|
53542
53542
|
for (let rt = 0, rn = jt.length; rt < rn; rt++) {
|
|
53543
|
-
const je = jt[rt], vt =
|
|
53543
|
+
const je = jt[rt], vt = pe[je];
|
|
53544
53544
|
st(vt, je);
|
|
53545
53545
|
}
|
|
53546
|
-
}, xe = (
|
|
53546
|
+
}, xe = (pe, st) => _e(pe, (jt, rt) => ({
|
|
53547
53547
|
k: rt,
|
|
53548
53548
|
v: st(jt, rt)
|
|
53549
|
-
})), _e = (
|
|
53549
|
+
})), _e = (pe, st) => {
|
|
53550
53550
|
const jt = {};
|
|
53551
|
-
return Be(
|
|
53551
|
+
return Be(pe, (rt, rn) => {
|
|
53552
53552
|
const je = st(rt, rn);
|
|
53553
53553
|
jt[je.k] = je.v;
|
|
53554
53554
|
}), jt;
|
|
53555
53555
|
};
|
|
53556
53556
|
var Je = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
53557
|
-
const le = (
|
|
53558
|
-
const st =
|
|
53557
|
+
const le = (pe) => /\btox\-/.test(pe.className), Xe = (pe, st) => pe.dom.isChildOf(st, pe.getBody()), qt = (pe) => (st) => T(st) && pe.test(st.nodeName), at = qt(/^(OL|UL|DL)$/), te = qt(/^(TH|TD)$/), At = (pe, st, jt) => K(st, (rt) => at(rt) && !le(rt), te).exists((rt) => rt.nodeName === jt && Xe(pe, rt)), sn = (pe) => {
|
|
53558
|
+
const st = pe.dom.getParent(pe.selection.getNode(), "ol,ul"), jt = pe.dom.getStyle(st, "listStyleType");
|
|
53559
53559
|
return P.from(jt);
|
|
53560
|
-
}, dn = (
|
|
53561
|
-
const jt =
|
|
53562
|
-
return dn(
|
|
53563
|
-
}, ve = (
|
|
53564
|
-
const jt =
|
|
53560
|
+
}, dn = (pe, st) => st !== null && !pe.dom.isEditable(st), We = (pe, st) => {
|
|
53561
|
+
const jt = pe.dom.getParent(st, "ol,ul,dl");
|
|
53562
|
+
return dn(pe, jt) || !pe.selection.isEditable();
|
|
53563
|
+
}, ve = (pe, st) => {
|
|
53564
|
+
const jt = pe.selection.getNode();
|
|
53565
53565
|
return st({
|
|
53566
|
-
parents:
|
|
53566
|
+
parents: pe.dom.getParents(jt),
|
|
53567
53567
|
element: jt
|
|
53568
|
-
}),
|
|
53569
|
-
}, Yn = (
|
|
53568
|
+
}), pe.on("NodeChange", st), () => pe.off("NodeChange", st);
|
|
53569
|
+
}, Yn = (pe) => pe.replace(/\-/g, " ").replace(/\b\w/g, (st) => st.toUpperCase()), dt = (pe) => w(pe) || pe === "default" ? "" : pe, kt = (pe, st) => (jt) => {
|
|
53570
53570
|
const rt = (je, vt) => {
|
|
53571
53571
|
const Y = je.selection.getStart(!0);
|
|
53572
53572
|
jt.setActive(At(je, vt, st)), jt.setEnabled(!We(je, Y));
|
|
53573
53573
|
};
|
|
53574
|
-
return ve(
|
|
53575
|
-
}, Q = (
|
|
53574
|
+
return ve(pe, (je) => rt(pe, je.parents));
|
|
53575
|
+
}, Q = (pe, st, jt, rt, rn, je) => {
|
|
53576
53576
|
const vt = {
|
|
53577
53577
|
"lower-latin": "lower-alpha",
|
|
53578
53578
|
"upper-latin": "upper-alpha",
|
|
53579
53579
|
"lower-alpha": "lower-latin",
|
|
53580
53580
|
"upper-alpha": "upper-latin"
|
|
53581
53581
|
}, Y = xe(vt, (us) => H(je, us));
|
|
53582
|
-
|
|
53582
|
+
pe.ui.registry.addSplitButton(st, {
|
|
53583
53583
|
tooltip: jt,
|
|
53584
53584
|
icon: rn === "OL" ? "ordered-list" : "unordered-list",
|
|
53585
53585
|
presets: "listpreview",
|
|
@@ -53596,29 +53596,29 @@ function yhe() {
|
|
|
53596
53596
|
});
|
|
53597
53597
|
us(Oo);
|
|
53598
53598
|
},
|
|
53599
|
-
onAction: () =>
|
|
53599
|
+
onAction: () => pe.execCommand(rt),
|
|
53600
53600
|
onItemAction: (us, Oo) => {
|
|
53601
|
-
o(
|
|
53601
|
+
o(pe, rn, Oo);
|
|
53602
53602
|
},
|
|
53603
|
-
select: (us) => sn(
|
|
53604
|
-
onSetup: kt(
|
|
53603
|
+
select: (us) => sn(pe).exists((xo) => us === xo || vt[xo] === us && !Y[us]),
|
|
53604
|
+
onSetup: kt(pe, rn)
|
|
53605
53605
|
});
|
|
53606
|
-
}, io = (
|
|
53607
|
-
|
|
53606
|
+
}, io = (pe, st, jt, rt, rn, je) => {
|
|
53607
|
+
pe.ui.registry.addToggleButton(st, {
|
|
53608
53608
|
active: !1,
|
|
53609
53609
|
tooltip: jt,
|
|
53610
53610
|
icon: rn === "OL" ? "ordered-list" : "unordered-list",
|
|
53611
|
-
onSetup: kt(
|
|
53612
|
-
onAction: () =>
|
|
53611
|
+
onSetup: kt(pe, rn),
|
|
53612
|
+
onAction: () => pe.queryCommandState(rt) || je === "" ? pe.execCommand(rt) : o(pe, rn, je)
|
|
53613
53613
|
});
|
|
53614
|
-
}, Lt = (
|
|
53615
|
-
je.length > 1 ? Q(
|
|
53616
|
-
}, Kt = (
|
|
53617
|
-
Lt(
|
|
53614
|
+
}, Lt = (pe, st, jt, rt, rn, je) => {
|
|
53615
|
+
je.length > 1 ? Q(pe, st, jt, rt, rn, je) : io(pe, st, jt, rt, rn, dt(je[0]));
|
|
53616
|
+
}, Kt = (pe) => {
|
|
53617
|
+
Lt(pe, "numlist", "Numbered list", "InsertOrderedList", "OL", m(pe)), Lt(pe, "bullist", "Bullet list", "InsertUnorderedList", "UL", O(pe));
|
|
53618
53618
|
};
|
|
53619
53619
|
var It = () => {
|
|
53620
|
-
u.add("advlist", (
|
|
53621
|
-
|
|
53620
|
+
u.add("advlist", (pe) => {
|
|
53621
|
+
pe.hasPlugin("lists") ? (h(pe), Kt(pe), i(pe)) : console.error("Please use the Lists plugin together with the List Styles plugin.");
|
|
53622
53622
|
});
|
|
53623
53623
|
};
|
|
53624
53624
|
It();
|
|
@@ -53764,7 +53764,7 @@ function vhe() {
|
|
|
53764
53764
|
return Nt.sort(Le), Nt;
|
|
53765
53765
|
}, kt = Object.hasOwnProperty, Q = (De, Le) => kt.call(De, Le);
|
|
53766
53766
|
typeof window < "u" || Function("return this;")();
|
|
53767
|
-
const io = 9, Lt = 11, Kt = 1, It = 3,
|
|
53767
|
+
const io = 9, Lt = 11, Kt = 1, It = 3, pe = (De) => De.dom.nodeType, jt = ((De) => (Le) => pe(Le) === De)(It), rt = (De, Le, Nt) => {
|
|
53768
53768
|
if (O(Nt) || T(Nt) || F(Nt))
|
|
53769
53769
|
De.setAttribute(Le, Nt + "");
|
|
53770
53770
|
else
|
|
@@ -54500,12 +54500,12 @@ function xhe() {
|
|
|
54500
54500
|
}, Kt = (rt) => {
|
|
54501
54501
|
const rn = io(rt, -1);
|
|
54502
54502
|
Be(rn) && Lt(rt, rn);
|
|
54503
|
-
}, It = Kt,
|
|
54503
|
+
}, It = Kt, pe = (rt) => {
|
|
54504
54504
|
const rn = io(rt, 0);
|
|
54505
54505
|
Be(rn) && Lt(rt, rn);
|
|
54506
54506
|
}, st = (rt) => {
|
|
54507
54507
|
rt.on("keydown", (rn) => {
|
|
54508
|
-
rn.keyCode === 13 && !rn.isDefaultPrevented() &&
|
|
54508
|
+
rn.keyCode === 13 && !rn.isDefaultPrevented() && pe(rt);
|
|
54509
54509
|
}), rt.on("keyup", (rn) => {
|
|
54510
54510
|
rn.keyCode === 32 ? Kt(rt) : (rn.keyCode === 48 && rn.shiftKey || rn.keyCode === 221) && It(rt);
|
|
54511
54511
|
});
|
|
@@ -55855,7 +55855,7 @@ function She() {
|
|
|
55855
55855
|
insertChar: (ke) => {
|
|
55856
55856
|
i(Ne, ke);
|
|
55857
55857
|
}
|
|
55858
|
-
}),
|
|
55858
|
+
}), pe = (Ne) => {
|
|
55859
55859
|
let ze = Ne;
|
|
55860
55860
|
return {
|
|
55861
55861
|
get: () => ze,
|
|
@@ -55909,7 +55909,7 @@ function She() {
|
|
|
55909
55909
|
}), yo = () => ({
|
|
55910
55910
|
type: "tabpanel",
|
|
55911
55911
|
tabs: ke()
|
|
55912
|
-
}), vn = ze.length === 1 ?
|
|
55912
|
+
}), vn = ze.length === 1 ? pe(dt) : pe("All"), Ps = (ss, rs) => {
|
|
55913
55913
|
qt(ze, (Rr) => Rr.name === vn.get()).each((Rr) => {
|
|
55914
55914
|
const Fs = je(Rr, rs);
|
|
55915
55915
|
ss.setData({ results: Fs });
|
|
@@ -66352,8 +66352,8 @@ function nge(u) {
|
|
|
66352
66352
|
let { id: We, start: ve, end: Yn, size: dt } = w, kt = R, Q = P;
|
|
66353
66353
|
for (; dt < 0; )
|
|
66354
66354
|
if (w.next(), dt == -1) {
|
|
66355
|
-
let
|
|
66356
|
-
te.push(
|
|
66355
|
+
let pe = m[We];
|
|
66356
|
+
te.push(pe), At.push(ve - qt);
|
|
66357
66357
|
return;
|
|
66358
66358
|
} else if (dt == -3) {
|
|
66359
66359
|
P = We;
|
|
@@ -66365,16 +66365,16 @@ function nge(u) {
|
|
|
66365
66365
|
throw new RangeError(`Unrecognized record size: ${dt}`);
|
|
66366
66366
|
let io = T[We], Lt, Kt, It = ve - qt;
|
|
66367
66367
|
if (Yn - ve <= h && (Kt = xe(w.pos - at, sn))) {
|
|
66368
|
-
let
|
|
66368
|
+
let pe = new Uint16Array(Kt.size - Kt.skip), st = w.pos - Kt.size, jt = pe.length;
|
|
66369
66369
|
for (; w.pos > st; )
|
|
66370
|
-
jt = _e(Kt.start,
|
|
66371
|
-
Lt = new O2(
|
|
66370
|
+
jt = _e(Kt.start, pe, jt);
|
|
66371
|
+
Lt = new O2(pe, Yn - Kt.start, c), It = Kt.start - qt;
|
|
66372
66372
|
} else {
|
|
66373
|
-
let
|
|
66373
|
+
let pe = w.pos - dt;
|
|
66374
66374
|
w.next();
|
|
66375
66375
|
let st = [], jt = [], rt = We >= O ? We : -1, rn = 0, je = Yn;
|
|
66376
|
-
for (; w.pos >
|
|
66377
|
-
rt >= 0 && w.id == rt && w.size >= 0 ? (w.end <= je - h && (he(st, jt, ve, rn, w.end, je, rt, kt, Q), rn = st.length, je = w.end), w.next()) : dn > 2500 ? H(ve,
|
|
66376
|
+
for (; w.pos > pe; )
|
|
66377
|
+
rt >= 0 && w.id == rt && w.size >= 0 ? (w.end <= je - h && (he(st, jt, ve, rn, w.end, je, rt, kt, Q), rn = st.length, je = w.end), w.next()) : dn > 2500 ? H(ve, pe, st, jt) : F(ve, pe, st, jt, rt, dn + 1);
|
|
66378
66378
|
if (rt >= 0 && rn > 0 && rn < st.length && he(st, jt, ve, rn, ve, je, rt, kt, Q), st.reverse(), jt.reverse(), rt > -1 && rn > 0) {
|
|
66379
66379
|
let vt = K(io, Q);
|
|
66380
66380
|
Lt = EJ(io, st, jt, 0, st.length, 0, Yn - ve, vt, vt);
|