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