golden-logic-ui 1.0.615 → 1.0.617
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 +846 -852
- package/dist/golden-logic-ui.umd.cjs +28 -28
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -701,9 +701,9 @@ const Txe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
701
701
|
});
|
|
702
702
|
const _e = Iu(() => {
|
|
703
703
|
const Kt = [], Qt = new RegExp(R.value, "ig");
|
|
704
|
-
for (const
|
|
705
|
-
const
|
|
706
|
-
(R.value.length < 1 ||
|
|
704
|
+
for (const be of O.value) {
|
|
705
|
+
const ot = String(be.name);
|
|
706
|
+
(R.value.length < 1 || ot.match(Qt)) && Kt.length < i.maxItem && Kt.push(be);
|
|
707
707
|
}
|
|
708
708
|
return Kt;
|
|
709
709
|
});
|
|
@@ -724,9 +724,9 @@ const Txe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
724
724
|
let Kt = (/* @__PURE__ */ new Date()).getTime();
|
|
725
725
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
|
|
726
726
|
/[xy]/g,
|
|
727
|
-
function(
|
|
728
|
-
const
|
|
729
|
-
return Kt = Math.floor(Kt / 16), (
|
|
727
|
+
function(be) {
|
|
728
|
+
const ot = (Kt + Math.random() * 16) % 16 | 0;
|
|
729
|
+
return Kt = Math.floor(Kt / 16), (be === "x" ? ot : ot & 3 | 8).toString(16);
|
|
730
730
|
}
|
|
731
731
|
);
|
|
732
732
|
}
|
|
@@ -746,19 +746,19 @@ const Txe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
746
746
|
m.value = [], c("update:modelValue", []), c("selected", []), c("selectionChanged", []);
|
|
747
747
|
}
|
|
748
748
|
function rn(Kt) {
|
|
749
|
-
let Qt = m.value.findIndex((
|
|
750
|
-
Qt !== -1 && m.value.splice(Qt, 1), w.value = m.value.map((
|
|
749
|
+
let Qt = m.value.findIndex((be) => be.id === Kt.id);
|
|
750
|
+
Qt !== -1 && m.value.splice(Qt, 1), w.value = m.value.map((be) => be.id), c("update:modelValue", w.value), c("selected", m.value), c("selectionChanged", m.value);
|
|
751
751
|
}
|
|
752
752
|
function cn(Kt) {
|
|
753
753
|
Kt.target.id != i.field_name + "search" + F.value && Kt.target.id != i.field_name && !Kt.target.classList.contains("showOptions") && (Lt(), T.value = 0, P.value = !1);
|
|
754
754
|
}
|
|
755
755
|
function je(Kt) {
|
|
756
|
-
const Qt = `${Kt}${F.value}`,
|
|
757
|
-
|
|
756
|
+
const Qt = `${Kt}${F.value}`, be = document.getElementById(Qt);
|
|
757
|
+
be && be.scrollIntoView();
|
|
758
758
|
}
|
|
759
759
|
function ye(Kt) {
|
|
760
|
-
const Qt = `${Kt}${F.value}`,
|
|
761
|
-
|
|
760
|
+
const Qt = `${Kt}${F.value}`, be = document.getElementById(Qt);
|
|
761
|
+
be && be.click();
|
|
762
762
|
}
|
|
763
763
|
function Kn(Kt) {
|
|
764
764
|
Kt === "ArrowDown" && T.value < _e.value.length && (T.value++, je(T.value)), Kt === "ArrowUp" && T.value > 1 && (T.value--, je(T.value)), Kt === "Enter" && ye(T.value);
|
|
@@ -789,8 +789,8 @@ const Txe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
789
789
|
) || [];
|
|
790
790
|
}
|
|
791
791
|
function Q(Kt) {
|
|
792
|
-
let Qt = m.value.findIndex((
|
|
793
|
-
Qt !== -1 ? m.value.splice(Qt, 1) : m.value.push(Kt), P.value = !1, w.value = m.value.map((
|
|
792
|
+
let Qt = m.value.findIndex((be) => be.id === Kt.id);
|
|
793
|
+
Qt !== -1 ? m.value.splice(Qt, 1) : m.value.push(Kt), P.value = !1, w.value = m.value.map((be) => be.id), c("update:modelValue", w.value), c("selected", m.value), c("selectionChanged", m.value);
|
|
794
794
|
}
|
|
795
795
|
function to() {
|
|
796
796
|
if (!i.show) {
|
|
@@ -814,9 +814,9 @@ const Txe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
814
814
|
_e.value.length === 0 && (m.value = []);
|
|
815
815
|
}), Lu(m, (Kt) => {
|
|
816
816
|
if (Xe(Kt)) {
|
|
817
|
-
w.value = Kt.map((
|
|
818
|
-
const Qt = Array.isArray(w.value) ? w.value : [],
|
|
819
|
-
JSON.stringify(Qt) !== JSON.stringify(
|
|
817
|
+
w.value = Kt.map((ot) => ot.id);
|
|
818
|
+
const Qt = Array.isArray(w.value) ? w.value : [], be = Array.isArray(i.modelValue) ? i.modelValue : [];
|
|
819
|
+
JSON.stringify(Qt) !== JSON.stringify(be) && c("update:modelValue", w.value);
|
|
820
820
|
}
|
|
821
821
|
}), Lu(
|
|
822
822
|
() => i.modelValue,
|
|
@@ -831,7 +831,7 @@ const Txe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
831
831
|
},
|
|
832
832
|
{ immediate: !0, deep: !0 }
|
|
833
833
|
), (Kt, Qt) => {
|
|
834
|
-
var
|
|
834
|
+
var be, ot;
|
|
835
835
|
return Ce(), Ae(Qo, null, [
|
|
836
836
|
u.show ? (Ce(), Ae("div", {
|
|
837
837
|
key: 0,
|
|
@@ -866,12 +866,12 @@ const Txe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
866
866
|
onClick: oe,
|
|
867
867
|
type: "button",
|
|
868
868
|
class: "px-4 py-0 text-sm font-medium text-gray-900 bg-transparent border border-gray-900 ltr:rounded-tl-lg rtl:rounded-tr-lg hover:bg-gray-900 hover:text-white focus:z-10 focus:bg-gray-900 focus:text-white dark:border-white dark:text-white dark:hover:text-white dark:hover:bg-gray-700 dark:focus:bg-gray-700"
|
|
869
|
-
}, Rt(((
|
|
869
|
+
}, Rt(((be = u.language) == null ? void 0 : be.select_all) ?? "Select all"), 1),
|
|
870
870
|
Z("button", {
|
|
871
871
|
onClick: At,
|
|
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(((ot = u.language) == null ? void 0 : ot.deselect_all) ?? "Deselect all"), 1)
|
|
875
875
|
]),
|
|
876
876
|
Z("div", {
|
|
877
877
|
ref_key: "myDivDropDown",
|
|
@@ -3244,43 +3244,37 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3244
3244
|
const h = Mo({}), m = Mo(0), O = Mo(!1), w = Mo(""), T = Mo(""), P = Mo(!1), R = Mo(1), F = Mo(null), H = Mo(1), Y = Mo([]), me = Mo(null), De = Mo(null), xe = Mo(0), _e = Mo(0), Je = () => {
|
|
3245
3245
|
if (me.value) {
|
|
3246
3246
|
xe.value = me.value.offsetWidth;
|
|
3247
|
-
var
|
|
3248
|
-
_e.value =
|
|
3247
|
+
var be = me.value.getBoundingClientRect();
|
|
3248
|
+
_e.value = be.top + 41 + (i.label_name ? 22 : 0);
|
|
3249
3249
|
}
|
|
3250
|
-
}, le = async (
|
|
3250
|
+
}, le = async (be = "down", ot = "") => {
|
|
3251
3251
|
var rt;
|
|
3252
3252
|
if (P.value) return;
|
|
3253
|
-
let qt =
|
|
3253
|
+
let qt = ot || w.value;
|
|
3254
3254
|
P.value = !0;
|
|
3255
3255
|
try {
|
|
3256
|
-
const sn =
|
|
3256
|
+
const sn = be === "up" ? Math.max(R.value - 1, H) : R.value, { data: Ue } = await axios.get(i.api_url, {
|
|
3257
3257
|
params: { search: qt, page: sn, per_page: 20 }
|
|
3258
3258
|
});
|
|
3259
3259
|
let pt = kt(Ue.data);
|
|
3260
|
-
if (
|
|
3261
|
-
Y.value
|
|
3262
|
-
else if (
|
|
3260
|
+
if (be === "down")
|
|
3261
|
+
Y.value.push(...pt), R.value++, F.value = Ue.last_page;
|
|
3262
|
+
else if (be === "up") {
|
|
3263
3263
|
const K = ((rt = De.value) == null ? void 0 : rt.scrollHeight) || 0;
|
|
3264
|
-
Y.value
|
|
3264
|
+
Y.value.push(...pt), R.value--, await HR(), De.value.scrollTop += De.value.scrollHeight - K;
|
|
3265
3265
|
}
|
|
3266
3266
|
F.value || (F.value = Ue.last_page), H.value || (H.value = 1), h.value = to();
|
|
3267
3267
|
} catch (sn) {
|
|
3268
3268
|
console.error("Error fetching data:", sn);
|
|
3269
3269
|
}
|
|
3270
3270
|
P.value = !1;
|
|
3271
|
-
}, Xe = (
|
|
3272
|
-
if (!
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
if (rt && R.value > H.value) {
|
|
3279
|
-
if (P.value) return;
|
|
3280
|
-
le("up"), R.value--;
|
|
3281
|
-
}
|
|
3282
|
-
}, Xt = (Oe) => {
|
|
3283
|
-
Oe.key === "Enter" && Oe.target.form && Oe.preventDefault();
|
|
3271
|
+
}, Xe = (be) => {
|
|
3272
|
+
if (!be.target) return;
|
|
3273
|
+
console.log("scrollTop", be.target.scrollTop), console.log("scrollHeight", be.target.scrollHeight), console.log("clientHeight", be.target.clientHeight), console.log("scrollTop + 10", ot + 10), console.log("scrollHeight - clientHeight", be.target.scrollHeight - be.target.clientHeight);
|
|
3274
|
+
const ot = be.target.scrollTop, qt = be.target.scrollHeight - be.target.clientHeight <= ot + 10, rt = ot <= 10;
|
|
3275
|
+
qt && R.value <= F.value && le("down"), rt && R.value > H.value && le("up");
|
|
3276
|
+
}, Xt = (be) => {
|
|
3277
|
+
be.key === "Enter" && be.target.form && be.preventDefault();
|
|
3284
3278
|
}, at = () => {
|
|
3285
3279
|
if (!i.show) {
|
|
3286
3280
|
if (O.value) {
|
|
@@ -3289,10 +3283,10 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3289
3283
|
}
|
|
3290
3284
|
w.value = "", O.value = !0, i.api_url && Y.value.length === 0 && le("down"), HR(() => {
|
|
3291
3285
|
Je();
|
|
3292
|
-
var
|
|
3286
|
+
var be = document.getElementById(
|
|
3293
3287
|
`${i.field_name}search${T.value}`
|
|
3294
3288
|
);
|
|
3295
|
-
|
|
3289
|
+
be && be.focus();
|
|
3296
3290
|
});
|
|
3297
3291
|
}
|
|
3298
3292
|
};
|
|
@@ -3302,72 +3296,72 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3302
3296
|
window.removeEventListener("scroll", Je), document.body.removeEventListener("click", je), document.removeEventListener("keypress", Xt);
|
|
3303
3297
|
});
|
|
3304
3298
|
function oe() {
|
|
3305
|
-
const
|
|
3299
|
+
const be = [], ot = w.value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), qt = new RegExp(ot, "ig");
|
|
3306
3300
|
for (const rt of Y.value) {
|
|
3307
3301
|
const sn = String(rt.name);
|
|
3308
|
-
(w.value.length < 1 || sn.match(qt)) &&
|
|
3302
|
+
(w.value.length < 1 || sn.match(qt)) && be.length < i.maxItem && be.push(rt);
|
|
3309
3303
|
}
|
|
3310
|
-
return
|
|
3304
|
+
return be;
|
|
3311
3305
|
}
|
|
3312
|
-
function At(
|
|
3306
|
+
function At(be) {
|
|
3313
3307
|
if ([
|
|
3314
3308
|
"ArrowLeft",
|
|
3315
3309
|
"ArrowUp",
|
|
3316
3310
|
"ArrowRight",
|
|
3317
3311
|
"ArrowDown",
|
|
3318
3312
|
"Enter"
|
|
3319
|
-
].includes(
|
|
3320
|
-
if (["ArrowUp", "ArrowDown"].includes(
|
|
3313
|
+
].includes(be.key)) {
|
|
3314
|
+
if (["ArrowUp", "ArrowDown"].includes(be.key) && be.preventDefault(), be.key === "ArrowDown" && i.posts === "")
|
|
3321
3315
|
return;
|
|
3322
|
-
dt(
|
|
3316
|
+
dt(be.key);
|
|
3323
3317
|
}
|
|
3324
3318
|
}
|
|
3325
3319
|
function rn() {
|
|
3326
|
-
let
|
|
3320
|
+
let be = (/* @__PURE__ */ new Date()).getTime();
|
|
3327
3321
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
|
|
3328
3322
|
/[xy]/g,
|
|
3329
3323
|
function(qt) {
|
|
3330
|
-
const rt = (
|
|
3331
|
-
return
|
|
3324
|
+
const rt = (be + Math.random() * 16) % 16 | 0;
|
|
3325
|
+
return be = Math.floor(be / 16), (qt === "x" ? rt : rt & 3 | 8).toString(16);
|
|
3332
3326
|
}
|
|
3333
3327
|
);
|
|
3334
3328
|
}
|
|
3335
|
-
function cn(
|
|
3336
|
-
return
|
|
3329
|
+
function cn(be) {
|
|
3330
|
+
return be && typeof be == "object" && Object.keys(be).length > 0;
|
|
3337
3331
|
}
|
|
3338
|
-
function je(
|
|
3339
|
-
|
|
3332
|
+
function je(be) {
|
|
3333
|
+
be.target.id != i.field_name + "search" + T.value && be.target.id != i.field_name && !be.target.classList.contains("showOptions") && (Qt(), m.value = 0, O.value = !1);
|
|
3340
3334
|
}
|
|
3341
|
-
function ye(
|
|
3342
|
-
const
|
|
3335
|
+
function ye(be) {
|
|
3336
|
+
const ot = `${be}${T.value}`, qt = document.getElementById(ot);
|
|
3343
3337
|
qt && qt.scrollIntoView();
|
|
3344
3338
|
}
|
|
3345
|
-
function Kn(
|
|
3346
|
-
const
|
|
3339
|
+
function Kn(be) {
|
|
3340
|
+
const ot = `${be}${T.value}`, qt = document.getElementById(ot);
|
|
3347
3341
|
qt && qt.click();
|
|
3348
3342
|
}
|
|
3349
|
-
function dt(
|
|
3350
|
-
|
|
3343
|
+
function dt(be) {
|
|
3344
|
+
be === "ArrowDown" && m.value < Y.value.length && (m.value++, ye(m.value)), be === "ArrowUp" && m.value > 1 && (m.value--, ye(m.value)), be === "Enter" && Kn(m.value);
|
|
3351
3345
|
}
|
|
3352
|
-
function kt(
|
|
3353
|
-
return
|
|
3346
|
+
function kt(be) {
|
|
3347
|
+
return be.map((ot, qt) => typeof ot == "object" ? ot : { id: ot, name: ot });
|
|
3354
3348
|
}
|
|
3355
3349
|
function Q() {
|
|
3356
|
-
return i.options.map((
|
|
3350
|
+
return i.options.map((be, ot) => typeof be == "object" ? be : { id: be, name: be });
|
|
3357
3351
|
}
|
|
3358
3352
|
function to() {
|
|
3359
3353
|
return cn(h.value) ? typeof h.value == "object" ? Y.value.find(
|
|
3360
|
-
(
|
|
3354
|
+
(be) => String(be.id) === String(h.value.id)
|
|
3361
3355
|
) || {} : Y.value.find(
|
|
3362
|
-
(
|
|
3356
|
+
(be) => String(be.id) === String(h.value)
|
|
3363
3357
|
) || {} : i.modelValue ? typeof i.modelValue == "object" ? Y.value.find(
|
|
3364
|
-
(
|
|
3358
|
+
(be) => String(be.id) === String(i.modelValue.id)
|
|
3365
3359
|
) || {} : Y.value.find(
|
|
3366
|
-
(
|
|
3360
|
+
(be) => String(be.id) === String(i.modelValue)
|
|
3367
3361
|
) || {} : {};
|
|
3368
3362
|
}
|
|
3369
|
-
function Lt(
|
|
3370
|
-
h.value =
|
|
3363
|
+
function Lt(be) {
|
|
3364
|
+
h.value = be, O.value = !1, c("update:modelValue", h.value.id), c("selected", h.value), c("selectionChanged", h.value);
|
|
3371
3365
|
}
|
|
3372
3366
|
function Kt() {
|
|
3373
3367
|
i.show || (h.value = {}, w.value = "", c("update:modelValue", ""), at());
|
|
@@ -3375,14 +3369,14 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3375
3369
|
function Qt() {
|
|
3376
3370
|
(!h.value || !h.value.id) && (h.value = {}, w.value = ""), c("selected", h.value);
|
|
3377
3371
|
}
|
|
3378
|
-
return Lu(w, (
|
|
3372
|
+
return Lu(w, (be) => {
|
|
3379
3373
|
i.api_url ? (R.value = 1, F.value = null, H.value = 1, Y.value = [], le("down")) : Y.value = oe(), Y.value.length === 0 && (h.value = {});
|
|
3380
|
-
}), Lu(h, (
|
|
3381
|
-
cn(
|
|
3374
|
+
}), Lu(h, (be) => {
|
|
3375
|
+
cn(be) && be && be.id !== i.modelValue && c("update:modelValue", be.id);
|
|
3382
3376
|
}), Lu(
|
|
3383
3377
|
() => i.modelValue,
|
|
3384
|
-
(
|
|
3385
|
-
|
|
3378
|
+
(be) => {
|
|
3379
|
+
be ? (h.value = i.modelValue, i.api_url && Y.value.length === 0 ? le("down", h.value) : h.value = to()) : h.value = {};
|
|
3386
3380
|
},
|
|
3387
3381
|
{ immediate: !0, deep: !0 }
|
|
3388
3382
|
), Lu(
|
|
@@ -3391,7 +3385,7 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3391
3385
|
i.api_url || (Y.value = Q()), h.value = to();
|
|
3392
3386
|
},
|
|
3393
3387
|
{ immediate: !0, deep: !0 }
|
|
3394
|
-
), (
|
|
3388
|
+
), (be, ot) => {
|
|
3395
3389
|
var qt, rt, sn;
|
|
3396
3390
|
return Ce(), Ae(Qo, null, [
|
|
3397
3391
|
u.show ? (Ce(), Ae("div", {
|
|
@@ -3402,7 +3396,7 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3402
3396
|
Z("p", Mde, [
|
|
3403
3397
|
Z("span", Bde, Rt((qt = h.value) == null ? void 0 : qt.name), 1)
|
|
3404
3398
|
]),
|
|
3405
|
-
|
|
3399
|
+
ot[5] || (ot[5] = Z("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1))
|
|
3406
3400
|
], 2)) : Tt("", !0),
|
|
3407
3401
|
u.show ? Tt("", !0) : (Ce(), Ae("div", {
|
|
3408
3402
|
key: 1,
|
|
@@ -3434,17 +3428,17 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3434
3428
|
"gl-input-form": u.error_message == "",
|
|
3435
3429
|
"gl-input-form-invalid": u.error_message !== ""
|
|
3436
3430
|
}, "pr-2 showOptions"]),
|
|
3437
|
-
onClick:
|
|
3431
|
+
onClick: ot[0] || (ot[0] = (Ue) => at()),
|
|
3438
3432
|
value: (sn = h.value) == null ? void 0 : sn.name,
|
|
3439
3433
|
placeholder: u.placeholder,
|
|
3440
3434
|
autocomplete: "off",
|
|
3441
3435
|
readonly: ""
|
|
3442
3436
|
}, null, 10, Qde),
|
|
3443
3437
|
Ur(Z("i", {
|
|
3444
|
-
onClick:
|
|
3438
|
+
onClick: ot[1] || (ot[1] = ma((Ue) => Kt(), ["stop"])),
|
|
3445
3439
|
class: "absolute text-gray-500 cursor-pointer pointer-events-auto ltr:right-8 rtl:left-8 hover:text-red-600 dark:hover:text-red-400",
|
|
3446
3440
|
style: { top: "13px" }
|
|
3447
|
-
},
|
|
3441
|
+
}, ot[6] || (ot[6] = [
|
|
3448
3442
|
Z("svg", {
|
|
3449
3443
|
class: "w-[10px] h-[16px]",
|
|
3450
3444
|
"aria-hidden": "true",
|
|
@@ -3464,7 +3458,7 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3464
3458
|
[Vf, cn(h.value) && u.has_cancel]
|
|
3465
3459
|
]),
|
|
3466
3460
|
Z("i", {
|
|
3467
|
-
onClick:
|
|
3461
|
+
onClick: ot[2] || (ot[2] = ma((Ue) => at(), ["stop"])),
|
|
3468
3462
|
class: "absolute text-xl text-gray-500 cursor-pointer ltr:right-2 rtl:left-2 hover:text-gray-700 dark:hover:text-gray-800 showOptions",
|
|
3469
3463
|
style: { top: "13px" }
|
|
3470
3464
|
}, [
|
|
@@ -3474,7 +3468,7 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3474
3468
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3475
3469
|
fill: "none",
|
|
3476
3470
|
viewBox: "0 0 10 6"
|
|
3477
|
-
},
|
|
3471
|
+
}, ot[7] || (ot[7] = [
|
|
3478
3472
|
Z("path", {
|
|
3479
3473
|
stroke: "currentColor",
|
|
3480
3474
|
"stroke-linecap": "round",
|
|
@@ -3492,12 +3486,12 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3492
3486
|
})
|
|
3493
3487
|
}, [
|
|
3494
3488
|
Z("div", Fde, [
|
|
3495
|
-
|
|
3489
|
+
ot[9] || (ot[9] = Z("label", {
|
|
3496
3490
|
for: "default-search",
|
|
3497
3491
|
class: "mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"
|
|
3498
3492
|
}, "Search", -1)),
|
|
3499
3493
|
Z("div", Zde, [
|
|
3500
|
-
|
|
3494
|
+
ot[8] || (ot[8] = Z("div", { class: "absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3" }, [
|
|
3501
3495
|
Z("svg", {
|
|
3502
3496
|
class: "w-4 h-4 text-gray-500 dark:text-gray-400",
|
|
3503
3497
|
"aria-hidden": "true",
|
|
@@ -3516,10 +3510,10 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3516
3510
|
], -1)),
|
|
3517
3511
|
Ur(Z("input", {
|
|
3518
3512
|
type: "search",
|
|
3519
|
-
"onUpdate:modelValue":
|
|
3513
|
+
"onUpdate:modelValue": ot[3] || (ot[3] = (Ue) => w.value = Ue),
|
|
3520
3514
|
id: `${u.field_name}search${T.value}`,
|
|
3521
3515
|
onKeydown: At,
|
|
3522
|
-
onBlur:
|
|
3516
|
+
onBlur: ot[4] || (ot[4] = (Ue) => Qt()),
|
|
3523
3517
|
autocomplete: "off",
|
|
3524
3518
|
class: "block w-full p-2 text-sm text-gray-900 border rounded-lg outline-none border-primary ps-10 bg-gray-50 focus:border-primary dark:bg-gray-700 dark:border-primaryDark dark:placeholder-primaryDark dark:text-white dark:focus:border-primaryDark",
|
|
3525
3519
|
placeholder: u.search_input_placeholder
|
|
@@ -3547,7 +3541,7 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3547
3541
|
id: `${pt + 1}${T.value}`
|
|
3548
3542
|
}, [
|
|
3549
3543
|
Z("div", Hde, [
|
|
3550
|
-
((K = h.value) == null ? void 0 : K.id) === Ue.id ? (Ce(), Ae("svg", Ude,
|
|
3544
|
+
((K = h.value) == null ? void 0 : K.id) === Ue.id ? (Ce(), Ae("svg", Ude, ot[10] || (ot[10] = [
|
|
3551
3545
|
Z("path", {
|
|
3552
3546
|
stroke: "currentColor",
|
|
3553
3547
|
"stroke-linecap": "round",
|
|
@@ -3765,13 +3759,13 @@ function rhe() {
|
|
|
3765
3759
|
return !1;
|
|
3766
3760
|
}, kt = () => {
|
|
3767
3761
|
}, Q = (e, n) => (...s) => e(n.apply(null, s)), to = (e, n) => (s) => e(n(s)), Lt = (e) => () => e, Kt = (e) => e, Qt = (e, n) => e === n;
|
|
3768
|
-
function
|
|
3762
|
+
function be(e, ...n) {
|
|
3769
3763
|
return (...s) => {
|
|
3770
3764
|
const a = n.concat(s);
|
|
3771
3765
|
return e.apply(null, a);
|
|
3772
3766
|
};
|
|
3773
3767
|
}
|
|
3774
|
-
const
|
|
3768
|
+
const ot = (e) => (n) => !e(n), qt = (e) => () => {
|
|
3775
3769
|
throw new Error(e);
|
|
3776
3770
|
}, rt = (e) => e(), sn = (e) => {
|
|
3777
3771
|
e();
|
|
@@ -4354,7 +4348,7 @@ function rhe() {
|
|
|
4354
4348
|
}, Im = Object.getPrototypeOf, lr = (e) => zf("HTMLElement", e), Nc = (e) => {
|
|
4355
4349
|
const n = ei("ownerDocument.defaultView", e);
|
|
4356
4350
|
return Xe(e) && (lr(n).prototype.isPrototypeOf(e) || /^HTML\w*Element$/.test(Im(e).constructor.name));
|
|
4357
|
-
}, wi = 8, zi = 9, Ma = 11, nu = 1, he = 3,
|
|
4351
|
+
}, wi = 8, zi = 9, Ma = 11, nu = 1, he = 3, Oe = (e) => e.dom.nodeName.toLowerCase(), et = (e) => e.dom.nodeType, Et = (e) => (n) => et(n) === e, Hn = (e) => et(e) === wi || Oe(e) === "#comment", as = (e) => Io(e) && Nc(e.dom), Io = Et(nu), tr = Et(he), ri = Et(zi), Ja = Et(Ma), Ba = (e) => (n) => Io(n) && Oe(n) === e, yr = (e, n, s) => {
|
|
4358
4352
|
if (le(s) || At(s) || Kn(s))
|
|
4359
4353
|
e.setAttribute(n, s + "");
|
|
4360
4354
|
else
|
|
@@ -4622,7 +4616,7 @@ function rhe() {
|
|
|
4622
4616
|
e(s) && n(Yh(s));
|
|
4623
4617
|
}, M = (e, n, s, a, d) => {
|
|
4624
4618
|
const p = jm(s, a);
|
|
4625
|
-
return e.dom.addEventListener(n, p, d), { unbind:
|
|
4619
|
+
return e.dom.addEventListener(n, p, d), { unbind: be(te, e, n, p, d) };
|
|
4626
4620
|
}, U = (e, n, s, a) => M(e, n, s, a, !1), te = (e, n, s, a) => {
|
|
4627
4621
|
e.dom.removeEventListener(n, s, a);
|
|
4628
4622
|
}, $e = (e, n) => ({
|
|
@@ -4788,7 +4782,7 @@ function rhe() {
|
|
|
4788
4782
|
checkRootAsContent: !1
|
|
4789
4783
|
}, gc = (e, n, s) => {
|
|
4790
4784
|
const a = Be.fromDom(n), d = Be.fromDom(e), p = s.getWhitespaceElements();
|
|
4791
|
-
return r0(d, (C) => jn(p,
|
|
4785
|
+
return r0(d, (C) => jn(p, Oe(C)), be(ks, a));
|
|
4792
4786
|
}, $s = (e) => pn(e) && e.nodeName === "A" && !e.hasAttribute("href") && (e.hasAttribute("name") || e.hasAttribute("id")), xd = (e, n) => pn(e) && jn(n.getNonEmptyElements(), e.nodeName), Wg = ef("data-mce-bookmark"), ti = (e) => Vm(Be.fromDom(e)).exists((n) => !iu(n)), d0 = (e, n, s) => Zc(e.data) && !gc(e, n, s), ah = (e, n, s, a) => Wt(e) && !d0(e, n, s) && (!a.includeZwsp || !Kh(e.data)), jg = (e, n, s, a) => ye(a.isContent) && a.isContent(n) || xd(n, e) || Wg(n) || $s(n) || ah(n, s, e, a) || Ds(n) || $t(n) && ti(n), Ai = (e, n, s) => {
|
|
4793
4787
|
const a = {
|
|
4794
4788
|
...U1,
|
|
@@ -4824,7 +4818,7 @@ function rhe() {
|
|
|
4824
4818
|
}, Ki = (e, n, s) => Ai(e, n.dom, {
|
|
4825
4819
|
checkRootAsContent: !0,
|
|
4826
4820
|
...s
|
|
4827
|
-
}),
|
|
4821
|
+
}), st = (e, n, s) => jg(e, n, n, {
|
|
4828
4822
|
includeZwsp: U1.includeZwsp,
|
|
4829
4823
|
...s
|
|
4830
4824
|
}), _r = (e) => {
|
|
@@ -4904,10 +4898,10 @@ function rhe() {
|
|
|
4904
4898
|
Wo(e, y, !1), Ai(e, p, { checkRootAsContent: !0 }) || d.insertBefore(p, n), Ai(e, s, { checkRootAsContent: !0 }) || d.insertBefore(s, n), Ai(e, y, { checkRootAsContent: !0 }) || d.insertBefore(y, n), d.removeChild(n);
|
|
4905
4899
|
}
|
|
4906
4900
|
}, Hs = (e, n, s) => {
|
|
4907
|
-
const a = e.getBlockElements(), d = Be.fromDom(n), p = (C) =>
|
|
4901
|
+
const a = e.getBlockElements(), d = Be.fromDom(n), p = (C) => Oe(C) in a, y = (C) => ks(C, d);
|
|
4908
4902
|
ke(ih(s), (C) => {
|
|
4909
4903
|
Qc(C, p, y).each(($) => {
|
|
4910
|
-
const B = Gf(C, (W) => p(W) && !e.isValidChild(
|
|
4904
|
+
const B = Gf(C, (W) => p(W) && !e.isValidChild(Oe($), Oe(W)));
|
|
4911
4905
|
if (B.length > 0) {
|
|
4912
4906
|
const W = Vm($);
|
|
4913
4907
|
ke(B, (X) => {
|
|
@@ -4936,7 +4930,7 @@ function rhe() {
|
|
|
4936
4930
|
}, lh = (e, n, s) => {
|
|
4937
4931
|
const a = (p) => ks(p, Be.fromDom(n)), d = zm(Be.fromDom(s), a);
|
|
4938
4932
|
Ya(d, d.length - 2).filter(Io).fold(() => yl(e, n), (p) => yl(e, p.dom));
|
|
4939
|
-
}, Bl = (e) => e.hasAttribute(Qe), nf = (e, n) => jn(e.getTransparentElements(), n), Jf = (e, n) => pn(n) && nf(e, n.nodeName), ju = (e, n) => Jf(e, n) && Bl(n), Xu = (e, n) => Jf(e, n) && !Bl(n), Gm = (e, n) => n.type === 1 && nf(e, n.name) && le(n.attr(Qe)), Xg = se().browser, qg = (e) => Ko(e, Io), w2 = (e) => Xg.isFirefox() &&
|
|
4933
|
+
}, Bl = (e) => e.hasAttribute(Qe), nf = (e, n) => jn(e.getTransparentElements(), n), Jf = (e, n) => pn(n) && nf(e, n.nodeName), ju = (e, n) => Jf(e, n) && Bl(n), Xu = (e, n) => Jf(e, n) && !Bl(n), Gm = (e, n) => n.type === 1 && nf(e, n.name) && le(n.attr(Qe)), Xg = se().browser, qg = (e) => Ko(e, Io), w2 = (e) => Xg.isFirefox() && Oe(e) === "table" ? qg(aa(e)).filter((n) => Oe(n) === "caption").bind((n) => qg(Wf(n)).map((s) => {
|
|
4940
4934
|
const a = s.dom.offsetTop, d = n.dom.offsetTop, p = n.dom.offsetHeight;
|
|
4941
4935
|
return a <= d ? -p : 0;
|
|
4942
4936
|
})).getOr(0) : 0, Ji = (e, n) => e.children && Ne(e.children, n), hs = (e, n, s) => {
|
|
@@ -5049,7 +5043,7 @@ function rhe() {
|
|
|
5049
5043
|
return e.set(p, y), y;
|
|
5050
5044
|
});
|
|
5051
5045
|
} };
|
|
5052
|
-
})(), kc = (e) => e.nodeName.toLowerCase() === "span", Gg = (e, n) => je(e) && (
|
|
5046
|
+
})(), kc = (e) => e.nodeName.toLowerCase() === "span", Gg = (e, n) => je(e) && (st(n, e) || n.isInline(e.nodeName.toLowerCase())), em = (e, n, s) => {
|
|
5053
5047
|
const a = new Na(e, n).prev(!1), d = new Na(e, n).next(!1), p = rn(a) || Gg(a, s), y = rn(d) || Gg(d, s);
|
|
5054
5048
|
return p && y;
|
|
5055
5049
|
}, ch = (e) => kc(e) && e.getAttribute("data-mce-type") === "bookmark", uh = (e, n, s) => Wt(e) && e.data.length > 0 && em(e, n, s), dh = (e) => pn(e) ? e.childNodes.length > 0 : !1, ok = (e) => Yi(e) || qm(e), La = (e, n, s, a) => {
|
|
@@ -5064,7 +5058,7 @@ function rhe() {
|
|
|
5064
5058
|
const C = n.childNodes;
|
|
5065
5059
|
C.length === 1 && ch(C[0]) && ((d = n.parentNode) === null || d === void 0 || d.insertBefore(C[0], n));
|
|
5066
5060
|
}
|
|
5067
|
-
return !ok(n) && !
|
|
5061
|
+
return !ok(n) && !st(s, n) && !dh(n) && !uh(n, p, s) && e.remove(n), n;
|
|
5068
5062
|
}, sk = Bt.makeMap, qu = /[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g, tm = /[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g, Yg = /[<>&\"\']/g, A4 = /&#([a-z0-9]+);?|&([a-z0-9]+);/gi, h0 = {
|
|
5069
5063
|
128: "€",
|
|
5070
5064
|
130: "‚",
|
|
@@ -5844,7 +5838,7 @@ function rhe() {
|
|
|
5844
5838
|
}
|
|
5845
5839
|
return s;
|
|
5846
5840
|
}, xa = (e, n) => {
|
|
5847
|
-
const s = ia(n, "style"), a = e.serialize(e.parse(s),
|
|
5841
|
+
const s = ia(n, "style"), a = e.serialize(e.parse(s), Oe(n));
|
|
5848
5842
|
Xl(n, eb, a);
|
|
5849
5843
|
}, L4 = (e, n) => Kn(e) ? jn(fh, n) ? e + "" : e + "px" : e, _2 = (e, n, s) => {
|
|
5850
5844
|
const a = Gt(n);
|
|
@@ -5869,7 +5863,7 @@ function rhe() {
|
|
|
5869
5863
|
},
|
|
5870
5864
|
get: (y) => {
|
|
5871
5865
|
const C = Be.fromDom(y), $ = ia(C, eb) || ia(C, "style");
|
|
5872
|
-
return e.serialize(e.parse($),
|
|
5866
|
+
return e.serialize(e.parse($), Oe(C));
|
|
5873
5867
|
}
|
|
5874
5868
|
}
|
|
5875
5869
|
};
|
|
@@ -6678,8 +6672,8 @@ function rhe() {
|
|
|
6678
6672
|
"style"
|
|
6679
6673
|
], im = (e) => {
|
|
6680
6674
|
let n;
|
|
6681
|
-
return (s) => (n = n || Fs(e, pt), jn(n,
|
|
6682
|
-
}, B2 = (e) =>
|
|
6675
|
+
return (s) => (n = n || Fs(e, pt), jn(n, Oe(s)));
|
|
6676
|
+
}, B2 = (e) => Oe(e) === "table", bh = (e) => Io(e) && Oe(e) === "br", ji = im(cM), N2 = im(lb), am = im(uM), W4 = im(U4), cb = im(H4), Vc = im(dM), Ju = (e) => {
|
|
6683
6677
|
const n = [];
|
|
6684
6678
|
let s = e.dom;
|
|
6685
6679
|
for (; s; )
|
|
@@ -6696,7 +6690,7 @@ function rhe() {
|
|
|
6696
6690
|
}, j4 = (e, n) => {
|
|
6697
6691
|
nl(e).each((s) => {
|
|
6698
6692
|
bd(s).each((a) => {
|
|
6699
|
-
n.isBlock(
|
|
6693
|
+
n.isBlock(Oe(e)) && bh(s) && n.isBlock(Oe(a)) && sr(s);
|
|
6700
6694
|
});
|
|
6701
6695
|
});
|
|
6702
6696
|
}, Fa = i0, ub = Xm, mu = il, X4 = (e) => e.insertContent(Fa, { preserve_zwsp: !0 }), L2 = pn, cp = Wt, rg = (e) => (cp(e) && (e = e.parentNode), L2(e) && e.hasAttribute("data-mce-caret")), lm = (e) => cp(e) && ub(e.data), Cc = (e) => rg(e) || lm(e), Ok = (e) => e.firstChild !== e.lastChild || !As(e.firstChild), vk = (e, n) => {
|
|
@@ -6812,7 +6806,7 @@ function rhe() {
|
|
|
6812
6806
|
return !0;
|
|
6813
6807
|
}
|
|
6814
6808
|
return !0;
|
|
6815
|
-
}, e5 = (e) => Q2(e) ? !Co(Fr(e.getElementsByTagName("*")), (n, s) => n || Ck(s), !1) : !1, t5 = (e) => _0(e) || e5(e), Tk = (e, n) => yh(e) && dm(e, n), F2 = pn, n5 = yh, _k = Hg("display", "block table"), o5 = Hg("float", "left right"), fb = kk(F2, n5,
|
|
6809
|
+
}, e5 = (e) => Q2(e) ? !Co(Fr(e.getElementsByTagName("*")), (n, s) => n || Ck(s), !1) : !1, t5 = (e) => _0(e) || e5(e), Tk = (e, n) => yh(e) && dm(e, n), F2 = pn, n5 = yh, _k = Hg("display", "block table"), o5 = Hg("float", "left right"), fb = kk(F2, n5, ot(o5)), Z2 = ot(Hg("white-space", "pre pre-line pre-wrap")), ig = Wt, lv = As, Ek = kr.nodeIndex, cv = Pn, ag = (e) => e ? e.createRange() : kr.DOM.createRng(), uv = (e) => le(e) && /[\r\n\t ]/.test(e), V2 = (e) => !!e.setStart && !!e.setEnd, dv = (e) => {
|
|
6816
6810
|
const n = e.startContainer, s = e.startOffset;
|
|
6817
6811
|
if (uv(e.toString()) && Z2(n.parentNode) && Wt(n)) {
|
|
6818
6812
|
const a = n.data;
|
|
@@ -6924,7 +6918,7 @@ function rhe() {
|
|
|
6924
6918
|
}
|
|
6925
6919
|
s.push(Rk(a));
|
|
6926
6920
|
let y = Tc(e, a);
|
|
6927
|
-
return y = sa(y,
|
|
6921
|
+
return y = sa(y, ot(Kf)), s = s.concat(bi(y, (C) => Rk(C))), s.reverse().join("/") + "," + p;
|
|
6928
6922
|
}, a5 = (e, n, s) => {
|
|
6929
6923
|
let a = mb(e);
|
|
6930
6924
|
return a = sa(a, (d, p) => !gu(d) || !gu(a[p - 1])), a = sa(a, du([n])), a[s];
|
|
@@ -7078,7 +7072,7 @@ function rhe() {
|
|
|
7078
7072
|
id: d,
|
|
7079
7073
|
forward: $
|
|
7080
7074
|
};
|
|
7081
|
-
}, fv = (e, n, s = !1) => n === 2 ? xl(mu, s, e) : n === 3 ? pu(e) : n ? Ik(e) : W2(e, !1), mv =
|
|
7075
|
+
}, fv = (e, n, s = !1) => n === 2 ? xl(mu, s, e) : n === 3 ? pu(e) : n ? Ik(e) : W2(e, !1), mv = be(xl, Kt, !0), Qk = (e) => {
|
|
7082
7076
|
const n = (p) => p(e), s = Lt(e), a = () => d, d = {
|
|
7083
7077
|
tag: !0,
|
|
7084
7078
|
inner: e,
|
|
@@ -8091,9 +8085,9 @@ Required: ` + n.join(", "));
|
|
|
8091
8085
|
d = d.parentNode;
|
|
8092
8086
|
}
|
|
8093
8087
|
return null;
|
|
8094
|
-
}, Q0 =
|
|
8088
|
+
}, Q0 = be(bm, !0), wp = be(bm, !1), Zv = (e, n, s) => {
|
|
8095
8089
|
let a;
|
|
8096
|
-
const d =
|
|
8090
|
+
const d = be(Pd, !0, n), p = be(Pd, !1, n), y = s.startContainer, C = s.startOffset;
|
|
8097
8091
|
if (rg(y)) {
|
|
8098
8092
|
const $ = Mb(y) ? y.parentNode : y, B = $.getAttribute("data-mce-caret");
|
|
8099
8093
|
if (B === "before" && (a = $.nextSibling, Ab(a)))
|
|
@@ -8216,7 +8210,7 @@ Required: ` + n.join(", "));
|
|
|
8216
8210
|
}, fg = (e, n, s) => yu(e, n, s).bind((a) => $d(s, a, n) && Sp(e, s, a) ? yu(e, n, a) : K.some(a)), wh = (e, n, s, a) => fg(e, n, s).bind((d) => a(d) ? wh(e, n, d, a) : K.some(d)), Dd = (e, n) => {
|
|
8217
8211
|
const s = e ? n.firstChild : n.lastChild;
|
|
8218
8212
|
return Wt(s) ? K.some(St(s, e ? 0 : s.data.length)) : s ? yh(s) ? K.some(e ? St.before(s) : Uv(s)) : wC(e, n, s) : K.none();
|
|
8219
|
-
}, Cl =
|
|
8213
|
+
}, Cl = be(yu, !0), dl = be(yu, !1), ha = be(Dd, !0), Rd = be(Dd, !1), Wv = "_mce_caret", wu = (e) => pn(e) && e.id === Wv, kp = (e, n) => {
|
|
8220
8214
|
let s = n;
|
|
8221
8215
|
for (; s && s !== e; ) {
|
|
8222
8216
|
if (wu(s))
|
|
@@ -8334,8 +8328,8 @@ Required: ` + n.join(", "));
|
|
|
8334
8328
|
}, kM = (e) => {
|
|
8335
8329
|
const n = e.endContainer, s = e.endOffset;
|
|
8336
8330
|
return Wt(n) ? s === n.data.length ? K.some(Be.fromDom(n)) : K.none() : K.from(n.childNodes[s - 1]).map(Be.fromDom);
|
|
8337
|
-
}, Rw = (e) => Ic(e).fold(Lt([e]), (n) => [e].concat(Rw(n))), z0 = (e) => nl(e).fold(Lt([e]), (n) =>
|
|
8338
|
-
const d = Ko(Rw(e),
|
|
8331
|
+
}, Rw = (e) => Ic(e).fold(Lt([e]), (n) => [e].concat(Rw(n))), z0 = (e) => nl(e).fold(Lt([e]), (n) => Oe(n) === "br" ? bd(n).map((s) => [e].concat(z0(s))).getOr([]) : [e].concat(z0(n))), Mw = (e, n) => Br(Ep(n), kM(n), (s, a) => {
|
|
8332
|
+
const d = Ko(Rw(e), be(ks, s)), p = Ko(z0(e), be(ks, a));
|
|
8339
8333
|
return d.isSome() && p.isSome();
|
|
8340
8334
|
}).getOr(!1), Bw = (e, n, s, a) => {
|
|
8341
8335
|
const d = s, p = new Na(s, d), y = Ts(e.schema.getMoveCaretBeforeOnEnterElements(), ($, B) => !Ne([
|
|
@@ -8595,7 +8589,7 @@ Required: ` + n.join(", "));
|
|
|
8595
8589
|
"div.tiny-pageembed",
|
|
8596
8590
|
"div.mce-toc",
|
|
8597
8591
|
"div[data-mce-toc]"
|
|
8598
|
-
], Y5 = (e) => tr(e) && C0(e) === Fa, Hw = (e, n, s, a) => tl(n).fold(() => "skipping", (d) => a === "br" || Y5(n) ? "valid" : F4(n) ? "existing" : wu(n.dom) ? "caret" : ze(zw, (p) => Ol(n, p)) ? "valid-block" : !pg(e, s, a) || !pg(e,
|
|
8592
|
+
], Y5 = (e) => tr(e) && C0(e) === Fa, Hw = (e, n, s, a) => tl(n).fold(() => "skipping", (d) => a === "br" || Y5(n) ? "valid" : F4(n) ? "existing" : wu(n.dom) ? "caret" : ze(zw, (p) => Ol(n, p)) ? "valid-block" : !pg(e, s, a) || !pg(e, Oe(d), s) ? "invalid-child" : "valid"), K5 = (e, n) => {
|
|
8599
8593
|
const s = wm(e.dom, n, [{ inline: "span" }]);
|
|
8600
8594
|
n.setStart(s.startContainer, s.startOffset), n.setEnd(s.endContainer, s.endOffset), e.selection.setRng(n);
|
|
8601
8595
|
}, ty = (e, n, s, a, d, p) => {
|
|
@@ -8623,7 +8617,7 @@ Required: ` + n.join(", "));
|
|
|
8623
8617
|
}), X = (ge) => {
|
|
8624
8618
|
ke(ge, G);
|
|
8625
8619
|
}, G = (ge) => {
|
|
8626
|
-
switch (Hw(e, ge, "span",
|
|
8620
|
+
switch (Hw(e, ge, "span", Oe(ge))) {
|
|
8627
8621
|
case "invalid-child": {
|
|
8628
8622
|
B();
|
|
8629
8623
|
const ve = aa(ge);
|
|
@@ -8698,8 +8692,8 @@ Required: ` + n.join(", "));
|
|
|
8698
8692
|
}
|
|
8699
8693
|
};
|
|
8700
8694
|
}, xh = (e) => ({
|
|
8701
|
-
getBookmark:
|
|
8702
|
-
moveToBookmark:
|
|
8695
|
+
getBookmark: be(qv, e),
|
|
8696
|
+
moveToBookmark: be(Dw, e)
|
|
8703
8697
|
});
|
|
8704
8698
|
xh.isBookmarkNode = Uc;
|
|
8705
8699
|
const HC = (e, n, s) => s.collapsed ? !1 : ze(s.getClientRects(), (a) => G4(a, e, n)), UC = () => Be.fromDom(document), jw = (e, n = !1) => e.dom.focus({ preventScroll: n }), oy = (e) => {
|
|
@@ -8855,7 +8849,7 @@ Required: ` + n.join(", "));
|
|
|
8855
8849
|
}, v = (e, n) => {
|
|
8856
8850
|
e.focusedEditor === n.editor && (e.focusedEditor = null), !e.activeEditor && G0 && (nx.unbind(document, "focusin", G0), G0 = null);
|
|
8857
8851
|
}, k = (e) => {
|
|
8858
|
-
e.on("AddEditor",
|
|
8852
|
+
e.on("AddEditor", be(g, e)), e.on("RemoveEditor", be(v, e));
|
|
8859
8853
|
}, _ = (e, n) => e.dom.getParent(n, (s) => e.dom.getContentEditable(s) === "true"), N = (e, n) => e.dom.getParent(n, (s) => e.dom.getContentEditable(s) === "false") !== null, z = (e) => e.collapsed ? K.from(um(e.startContainer, e.startOffset)).map(Be.fromDom) : K.none(), J = (e, n) => z(n).bind((s) => W4(s) ? K.some(s) : qr(e, s) ? K.none() : K.some(e)), ie = (e, n) => {
|
|
8860
8854
|
J(Be.fromDom(e.getBody()), n).bind((s) => ha(s.dom)).fold(() => {
|
|
8861
8855
|
e.selection.normalize();
|
|
@@ -9147,7 +9141,7 @@ Required: ` + n.join(", "));
|
|
|
9147
9141
|
const a = e.document;
|
|
9148
9142
|
return pf(a, n, s).map((d) => WC.create(Be.fromDom(d.startContainer), d.startOffset, Be.fromDom(d.endContainer), d.endOffset));
|
|
9149
9143
|
}, Sm = (e, n) => {
|
|
9150
|
-
const s =
|
|
9144
|
+
const s = Oe(e);
|
|
9151
9145
|
return s === "input" ? xm.after(e) : Ne([
|
|
9152
9146
|
"br",
|
|
9153
9147
|
"img"
|
|
@@ -9367,7 +9361,7 @@ Required: ` + n.join(", "));
|
|
|
9367
9361
|
top: 0
|
|
9368
9362
|
});
|
|
9369
9363
|
return Fe(p.left + d.left + s.left, p.top + d.top + s.top);
|
|
9370
|
-
}, gE = (e) =>
|
|
9364
|
+
}, gE = (e) => Oe(e) === "textarea", uZ = (e, n) => e.dispatch("ScrollIntoView", n).isDefaultPrevented(), nT = (e, n) => {
|
|
9371
9365
|
e.dispatch("AfterScrollIntoView", n);
|
|
9372
9366
|
}, NM = (e, n) => {
|
|
9373
9367
|
const s = aa(e);
|
|
@@ -9386,7 +9380,7 @@ Required: ` + n.join(", "));
|
|
|
9386
9380
|
return gE(a) ? {
|
|
9387
9381
|
element: e,
|
|
9388
9382
|
offset: n
|
|
9389
|
-
} :
|
|
9383
|
+
} : Oe(a) === "img" ? {
|
|
9390
9384
|
element: a,
|
|
9391
9385
|
offset: 1
|
|
9392
9386
|
} : tr(a) ? {
|
|
@@ -9680,8 +9674,8 @@ Required: ` + n.join(", "));
|
|
|
9680
9674
|
}, yZ = Q(i8, n8), wZ = Q(i8, o8), a8 = (e, n) => {
|
|
9681
9675
|
const s = [
|
|
9682
9676
|
{
|
|
9683
|
-
condition:
|
|
9684
|
-
action:
|
|
9677
|
+
condition: be(s8, n),
|
|
9678
|
+
action: be(r8, n)
|
|
9685
9679
|
},
|
|
9686
9680
|
{
|
|
9687
9681
|
condition: vZ,
|
|
@@ -9940,14 +9934,14 @@ Required: ` + n.join(", "));
|
|
|
9940
9934
|
}, v8 = (e, n, s) => K.from(s.container()).filter(Wt).exists((a) => {
|
|
9941
9935
|
const d = e ? 0 : -1;
|
|
9942
9936
|
return n(a.data.charAt(s.offset() + d));
|
|
9943
|
-
}), OE =
|
|
9937
|
+
}), OE = be(v8, !0, ff), vE = be(v8, !1, ff), $Z = (e) => {
|
|
9944
9938
|
const n = e.container();
|
|
9945
9939
|
return Wt(n) && (n.data.length === 0 || ub(n.data) && xh.isBookmarkNode(n.parentNode));
|
|
9946
|
-
}, J0 = (e, n) => (s) => Nb(e ? 0 : -1, s).filter(n).isSome(), Xn = (e) => c0(e) && ii(Be.fromDom(e), "display") === "block", yE = (e) => Ds(e) && !Ug(e), y8 = J0(!0, Xn), PZ = J0(!1, Xn), Gb = J0(!0, ya), hx = J0(!1, ya), w8 = J0(!0, Hu), wE = J0(!1, Hu), e1 = J0(!0, yE), t1 = J0(!1, yE), aT = (e) => e.slice(0, -1), x8 = (e, n, s) => qr(n, e) ? aT(zm(e, (a) => s(a) || ks(a, n))) : [], AZ = (e, n) => x8(e, n, Ue), Dp = (e, n) => [e].concat(AZ(e, n)), wo = (e, n, s) => wh(e, n, s, $Z), DZ = (e) => (n) => e.isBlock(
|
|
9947
|
-
const d = yn(Dp(Be.fromDom(s.container()), n), (y) => a.isBlock(
|
|
9940
|
+
}, J0 = (e, n) => (s) => Nb(e ? 0 : -1, s).filter(n).isSome(), Xn = (e) => c0(e) && ii(Be.fromDom(e), "display") === "block", yE = (e) => Ds(e) && !Ug(e), y8 = J0(!0, Xn), PZ = J0(!1, Xn), Gb = J0(!0, ya), hx = J0(!1, ya), w8 = J0(!0, Hu), wE = J0(!1, Hu), e1 = J0(!0, yE), t1 = J0(!1, yE), aT = (e) => e.slice(0, -1), x8 = (e, n, s) => qr(n, e) ? aT(zm(e, (a) => s(a) || ks(a, n))) : [], AZ = (e, n) => x8(e, n, Ue), Dp = (e, n) => [e].concat(AZ(e, n)), wo = (e, n, s) => wh(e, n, s, $Z), DZ = (e) => (n) => e.isBlock(Oe(n)), Po = (e, n, s) => Ko(Dp(Be.fromDom(n.container()), e), DZ(s)), xE = (e, n, s, a) => wo(e, n.dom, s).forall((d) => Po(n, s, a).fold(() => !$d(d, s, n.dom), (p) => !$d(d, s, n.dom) && qr(p, Be.fromDom(d.container())))), RZ = (e, n, s, a) => Po(n, s, a).fold(() => wo(e, n.dom, s).forall((d) => !$d(d, s, n.dom)), (d) => wo(e, d.dom, s).isNone()), S8 = be(RZ, !1), k8 = be(RZ, !0), GJ = be(xE, !1), YJ = be(xE, !0), MZ = (e) => Vv(e).exists(bh), lT = (e, n, s, a) => {
|
|
9941
|
+
const d = yn(Dp(Be.fromDom(s.container()), n), (y) => a.isBlock(Oe(y))), p = No(d).getOr(n);
|
|
9948
9942
|
return yu(e, p.dom, s).filter(MZ);
|
|
9949
|
-
}, go = (e, n, s) => Vv(n).exists(bh) || lT(!0, e, n, s).isSome(), cT = (e, n, s) => F5(n).exists(bh) || lT(!1, e, n, s).isSome(), C8 =
|
|
9950
|
-
const a = yn(Dp(Be.fromDom(n.container()), e), (d) => s.isBlock(
|
|
9943
|
+
}, go = (e, n, s) => Vv(n).exists(bh) || lT(!0, e, n, s).isSome(), cT = (e, n, s) => F5(n).exists(bh) || lT(!1, e, n, s).isSome(), C8 = be(lT, !1), BZ = be(lT, !0), hy = (e) => St.isTextPosition(e) && !e.isAtStart() && !e.isAtEnd(), SE = (e, n, s) => {
|
|
9944
|
+
const a = yn(Dp(Be.fromDom(n.container()), e), (d) => s.isBlock(Oe(d)));
|
|
9951
9945
|
return No(a).getOr(e);
|
|
9952
9946
|
}, T8 = (e, n, s) => hy(n) ? vE(n) : vE(n) || dl(SE(e, n, s).dom, n).exists(vE), _8 = (e, n, s) => hy(n) ? OE(n) : OE(n) || Cl(SE(e, n, s).dom, n).exists(OE), NZ = (e) => Ne([
|
|
9953
9947
|
"pre",
|
|
@@ -9996,7 +9990,7 @@ Required: ` + n.join(", "));
|
|
|
9996
9990
|
}, A8 = (e, n, s, a) => {
|
|
9997
9991
|
if (s === 0)
|
|
9998
9992
|
return;
|
|
9999
|
-
const d = Be.fromDom(e), p = Qc(d, (B) => a.isBlock(
|
|
9993
|
+
const d = Be.fromDom(e), p = Qc(d, (B) => a.isBlock(Oe(B))).getOr(d), y = e.data.slice(n, n + s), C = n + s >= e.data.length && fy(p, St(e, e.data.length), a), $ = n === 0 && fx(p, St(e, 0), a);
|
|
10000
9994
|
e.replaceData(n, s, cu(y, 4, $, C));
|
|
10001
9995
|
}, dT = (e, n, s) => {
|
|
10002
9996
|
const a = e.data.slice(n), d = a.length - Da(a).length;
|
|
@@ -10010,13 +10004,13 @@ Required: ` + n.join(", "));
|
|
|
10010
10004
|
}, HZ = (e, n) => {
|
|
10011
10005
|
const s = e.container(), a = e.offset();
|
|
10012
10006
|
return !St.isTextPosition(e) && s === n.parentNode && a > St.before(n).offset();
|
|
10013
|
-
}, UZ = (e, n) => HZ(n, e) ? St(n.container(), n.offset() - 1) : n, AE = (e) => Wt(e) ? St(e, 0) : St.before(e), DE = (e) => Wt(e) ? St(e, e.data.length) : St.after(e), D8 = (e) => yh(e.previousSibling) ? K.some(DE(e.previousSibling)) : e.previousSibling ? Rd(e.previousSibling) : K.none(), R8 = (e) => yh(e.nextSibling) ? K.some(AE(e.nextSibling)) : e.nextSibling ? ha(e.nextSibling) : K.none(), WZ = (e, n) => K.from(n.previousSibling ? n.previousSibling : n.parentNode).bind((s) => dl(e, St.before(s))).orThunk(() => Cl(e, St.after(n))), jZ = (e, n) => Cl(e, St.after(n)).orThunk(() => dl(e, St.before(n))), XZ = (e, n) => D8(n).orThunk(() => R8(n)).orThunk(() => WZ(e, n)), qZ = (e, n) => R8(n).orThunk(() => D8(n)).orThunk(() => jZ(e, n)), GZ = (e, n, s) => e ? qZ(n, s) : XZ(n, s), YZ = (e, n, s) => GZ(e, n, s).map(
|
|
10007
|
+
}, UZ = (e, n) => HZ(n, e) ? St(n.container(), n.offset() - 1) : n, AE = (e) => Wt(e) ? St(e, 0) : St.before(e), DE = (e) => Wt(e) ? St(e, e.data.length) : St.after(e), D8 = (e) => yh(e.previousSibling) ? K.some(DE(e.previousSibling)) : e.previousSibling ? Rd(e.previousSibling) : K.none(), R8 = (e) => yh(e.nextSibling) ? K.some(AE(e.nextSibling)) : e.nextSibling ? ha(e.nextSibling) : K.none(), WZ = (e, n) => K.from(n.previousSibling ? n.previousSibling : n.parentNode).bind((s) => dl(e, St.before(s))).orThunk(() => Cl(e, St.after(n))), jZ = (e, n) => Cl(e, St.after(n)).orThunk(() => dl(e, St.before(n))), XZ = (e, n) => D8(n).orThunk(() => R8(n)).orThunk(() => WZ(e, n)), qZ = (e, n) => R8(n).orThunk(() => D8(n)).orThunk(() => jZ(e, n)), GZ = (e, n, s) => e ? qZ(n, s) : XZ(n, s), YZ = (e, n, s) => GZ(e, n, s).map(be(UZ, s)), RE = (e, n, s) => {
|
|
10014
10008
|
s.fold(() => {
|
|
10015
10009
|
e.focus();
|
|
10016
10010
|
}, (a) => {
|
|
10017
10011
|
e.selection.setRng(a.toRange(), n);
|
|
10018
10012
|
});
|
|
10019
|
-
}, KZ = (e) => (n) => n.dom === e, JZ = (e, n) => n && jn(e.schema.getBlockElements(),
|
|
10013
|
+
}, KZ = (e) => (n) => n.dom === e, JZ = (e, n) => n && jn(e.schema.getBlockElements(), Oe(n)), Yb = (e, n, s) => {
|
|
10020
10014
|
if (Ki(e, n)) {
|
|
10021
10015
|
const a = Be.fromHtml('<br data-mce-bogus="1">');
|
|
10022
10016
|
return s ? ke(aa(n), (d) => {
|
|
@@ -10030,8 +10024,8 @@ Required: ` + n.join(", "));
|
|
|
10030
10024
|
const B = y.dom, W = C.dom, X = B.data.length;
|
|
10031
10025
|
return PE(B, W, s, a), $.container() === W ? St(B, X) : $;
|
|
10032
10026
|
}).orThunk(() => (a && (d.each((y) => $E(y.dom, y.dom.length, s)), p.each((y) => dT(y.dom, 0, s))), n));
|
|
10033
|
-
}, M8 = (e, n) => jn(e.schema.getTextInlineElements(),
|
|
10034
|
-
const p = YZ(n, e.getBody(), s.dom), y = Qc(s,
|
|
10027
|
+
}, M8 = (e, n) => jn(e.schema.getTextInlineElements(), Oe(n)), Kb = (e, n, s, a = !0, d = !1) => {
|
|
10028
|
+
const p = YZ(n, e.getBody(), s.dom), y = Qc(s, be(JZ, e), KZ(e.getBody())), C = eV(s, p, e.schema, M8(e, s));
|
|
10035
10029
|
e.dom.isEmpty(e.getBody()) ? (e.setContent(""), e.selection.setCursorLocation()) : y.bind(($) => Yb(e.schema, $, d)).fold(() => {
|
|
10036
10030
|
a && RE(e, n, C);
|
|
10037
10031
|
}, ($) => {
|
|
@@ -10049,7 +10043,7 @@ Required: ` + n.join(", "));
|
|
|
10049
10043
|
}, oV = (e) => up(e) || Oh(e), Sh = (e, n) => {
|
|
10050
10044
|
const s = n.container(), a = n.offset();
|
|
10051
10045
|
return e ? lm(s) ? Wt(s.nextSibling) ? St(s.nextSibling, 0) : St.after(s) : up(n) ? St(s, a + 1) : n : lm(s) ? Wt(s.previousSibling) ? St(s.previousSibling, s.previousSibling.data.length) : St.before(s) : Oh(n) ? St(s, a - 1) : n;
|
|
10052
|
-
}, L8 =
|
|
10046
|
+
}, L8 = be(Sh, !0), I8 = be(Sh, !1), o1 = (e, n) => {
|
|
10053
10047
|
const s = (a) => a.stopImmediatePropagation();
|
|
10054
10048
|
e.on("beforeinput input", s, !0), e.getDoc().execCommand(n), e.off("beforeinput input", s);
|
|
10055
10049
|
}, sV = (e) => {
|
|
@@ -10182,7 +10176,7 @@ Required: ` + n.join(", "));
|
|
|
10182
10176
|
}, UE = (e, n, s) => K.some(() => {
|
|
10183
10177
|
const a = e.selection.getRng(), d = s.bind(({ rng: p, isStartInTable: y }) => {
|
|
10184
10178
|
const C = W8(e, y ? p.endContainer : p.startContainer);
|
|
10185
|
-
p.deleteContents(), j8(e, y, C.filter(
|
|
10179
|
+
p.deleteContents(), j8(e, y, C.filter(be(Ki, e.schema)));
|
|
10186
10180
|
const $ = y ? n[0] : n[n.length - 1];
|
|
10187
10181
|
return yT(e, $, a, y), Ki(e.schema, $) ? K.none() : K.some(y ? n.slice(1) : n.slice(0, -1));
|
|
10188
10182
|
}).getOr(n);
|
|
@@ -10194,7 +10188,7 @@ Required: ` + n.join(", "));
|
|
|
10194
10188
|
zE(C.concat($)), a.deleteContents(), HE(e);
|
|
10195
10189
|
}), wT = (e, n, s, a = !0) => K.some(() => {
|
|
10196
10190
|
cr(e, n, s, a);
|
|
10197
|
-
}), q8 = (e, n) => K.some(() => Kb(e, !1, n)), WE = (e, n, s) => U8(n, s).bind((a) => a.fold(
|
|
10191
|
+
}), q8 = (e, n) => K.some(() => Kb(e, !1, n)), WE = (e, n, s) => U8(n, s).bind((a) => a.fold(be(wT, e), be(q8, e), be(UE, e), be(X8, e))), G8 = (e, n) => bx(e, n), Y8 = (e, n, s, a) => xT(n, a).fold(() => WE(e, n, s), (d) => G8(e, d)), K8 = (e, n, s) => {
|
|
10198
10192
|
const a = Be.fromDom(e.getBody()), d = e.selection.getRng();
|
|
10199
10193
|
return s.length !== 0 ? UE(e, s, K.none()) : Y8(e, a, d, n);
|
|
10200
10194
|
}, jE = (e, n) => Ko(Dp(n, e), cb), xT = (e, n) => Ko(Dp(n, e), Ba("caption")), J8 = (e, n, s, a, d) => fg(s, e.getBody(), d).bind((p) => jE(n, Be.fromDom(p.getNode())).bind((y) => ks(y, a) ? K.none() : K.some(kt))), bx = (e, n) => K.some(() => {
|
|
@@ -10766,7 +10760,7 @@ Required: ` + n.join(", "));
|
|
|
10766
10760
|
c$(e, n, s);
|
|
10767
10761
|
}, SV = (e, n, s) => {
|
|
10768
10762
|
var a, d;
|
|
10769
|
-
const p = e.dom, y = p.getParent(s,
|
|
10763
|
+
const p = e.dom, y = p.getParent(s, be(Iw, e.schema));
|
|
10770
10764
|
y && p.isEmpty(y) ? (a = s.parentNode) === null || a === void 0 || a.replaceChild(n, s) : (bk(Be.fromDom(s)), p.isEmpty(s) ? (d = s.parentNode) === null || d === void 0 || d.replaceChild(n, s) : p.insertAfter(n, s));
|
|
10771
10765
|
}, u$ = (e, n) => (e.appendChild(n), n), vy = (e, n) => {
|
|
10772
10766
|
var s;
|
|
@@ -10868,7 +10862,7 @@ Required: ` + n.join(", "));
|
|
|
10868
10862
|
if (wu(n.dom))
|
|
10869
10863
|
return !1;
|
|
10870
10864
|
const s = e.schema.getTextInlineElements();
|
|
10871
|
-
return jn(s,
|
|
10865
|
+
return jn(s, Oe(n)) && !wu(n.dom) && !Kf(n.dom);
|
|
10872
10866
|
}, Px = {}, b6 = du(["pre"]), O6 = (e, n) => {
|
|
10873
10867
|
Px[e] || (Px[e] = []), Px[e].push(n);
|
|
10874
10868
|
}, v6 = (e, n) => {
|
|
@@ -12662,8 +12656,8 @@ Required: ` + n.join(", "));
|
|
|
12662
12656
|
p7(n, dz(n, p, a), a, s, d);
|
|
12663
12657
|
});
|
|
12664
12658
|
}), e3(n.element, U$(n.rows), n.rows);
|
|
12665
|
-
}, fz = (e) => O7(e, v7(e)), mz = (e, n, s) => W$(e, n).bind((a) => W$(e, s).map((d) => b7(e, a, d))), X$ = (e) => Ko(e, (n) =>
|
|
12666
|
-
const d = Be.fromTag(
|
|
12659
|
+
}, fz = (e) => O7(e, v7(e)), mz = (e, n, s) => W$(e, n).bind((a) => W$(e, s).map((d) => b7(e, a, d))), X$ = (e) => Ko(e, (n) => Oe(n) === "ul" || Oe(n) === "ol"), Fx = (e, n) => Ko(e, (s) => Oe(s) === "li" && Mw(s, n)).fold(Lt([]), (s) => X$(e).map((a) => {
|
|
12660
|
+
const d = Be.fromTag(Oe(a)), p = Ts(ol(a), (y, C) => lo(C, "list-style"));
|
|
12667
12661
|
return Eo(d, p), [
|
|
12668
12662
|
Be.fromTag("li"),
|
|
12669
12663
|
d
|
|
@@ -12675,9 +12669,9 @@ Required: ` + n.join(", "));
|
|
|
12675
12669
|
e,
|
|
12676
12670
|
n
|
|
12677
12671
|
]) : N2(e) ? [e] : [], t3 = (e, n, s) => {
|
|
12678
|
-
const a = Be.fromDom(n.commonAncestorContainer), d = Dp(a, e), p = yn(d, ($) => s.isWrapper(
|
|
12672
|
+
const a = Be.fromDom(n.commonAncestorContainer), d = Dp(a, e), p = yn(d, ($) => s.isWrapper(Oe($))), y = Fx(d, n), C = p.concat(y.length ? y : w7(a));
|
|
12679
12673
|
return Ke(C, rm);
|
|
12680
|
-
}, x7 = () => ix([]), gz = (e, n, s) => y7(Be.fromDom(n.cloneContents()), t3(e, n, s)), lO = (e, n) => Xh(n, "table",
|
|
12674
|
+
}, x7 = () => ix([]), gz = (e, n, s) => y7(Be.fromDom(n.cloneContents()), t3(e, n, s)), lO = (e, n) => Xh(n, "table", be(ks, e)), q$ = (e, n) => lO(e, n[0]).bind((s) => {
|
|
12681
12675
|
const a = n[0], d = n[n.length - 1], p = hz(s);
|
|
12682
12676
|
return mz(p, a, d).map((y) => ix([fz(y)]));
|
|
12683
12677
|
}).getOrThunk(x7), S7 = (e, n, s) => n.length > 0 && n[0].collapsed ? x7() : gz(e, n[0], s), Zx = (e, n, s) => {
|
|
@@ -13437,7 +13431,7 @@ Required: ` + n.join(", "));
|
|
|
13437
13431
|
serialize: C,
|
|
13438
13432
|
addRules: p.addValidElements,
|
|
13439
13433
|
setRules: p.setValidElements,
|
|
13440
|
-
addTempAttr:
|
|
13434
|
+
addTempAttr: be(sH, y, s),
|
|
13441
13435
|
getTempAttrs: Lt(s),
|
|
13442
13436
|
getNodeFilters: y.getNodeFilters,
|
|
13443
13437
|
getAttributeFilters: y.getAttributeFilters,
|
|
@@ -13553,7 +13547,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
13553
13547
|
get: (d) => e[d] ? e[d] : { icons: {} },
|
|
13554
13548
|
has: (d) => jn(e, d)
|
|
13555
13549
|
};
|
|
13556
|
-
})(), My = Qa.ModelManager, sB = (e, n) => n.dom[e], rB = (e, n) => parseInt(ii(n, e), 10), iB =
|
|
13550
|
+
})(), My = Qa.ModelManager, sB = (e, n) => n.dom[e], rB = (e, n) => parseInt(ii(n, e), 10), iB = be(sB, "clientWidth"), pH = be(sB, "clientHeight"), bH = be(rB, "margin-top"), OH = be(rB, "margin-left"), a3 = (e) => e.dom.getBoundingClientRect(), vH = (e, n, s) => {
|
|
13557
13551
|
const a = iB(e), d = pH(e);
|
|
13558
13552
|
return n >= 0 && s >= 0 && n <= a && s <= d;
|
|
13559
13553
|
}, yH = (e, n, s, a) => {
|
|
@@ -13973,7 +13967,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
13973
13967
|
}), SB = (e) => {
|
|
13974
13968
|
const n = l3(), s = wP(e, n);
|
|
13975
13969
|
return { upload: (a, d = !0) => s.upload(a, d ? yP(e) : void 0) };
|
|
13976
|
-
}, xP = (e, n) => e.dom.isEmpty(n.dom) && je(e.schema.getTextBlockElements()[
|
|
13970
|
+
}, xP = (e, n) => e.dom.isEmpty(n.dom) && je(e.schema.getTextBlockElements()[Oe(n)]), wee = (e) => (n) => {
|
|
13977
13971
|
xP(e, n) && Nr(n, Be.fromHtml('<br data-mce-bogus="1" />'));
|
|
13978
13972
|
}, IH = (e) => {
|
|
13979
13973
|
const n = LH();
|
|
@@ -14628,7 +14622,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
14628
14622
|
matchNode: (a, d, p, y) => aP(e, a, d, p, y),
|
|
14629
14623
|
canApply: (a) => Q7(e, a),
|
|
14630
14624
|
formatChanged: (a, d, p, y) => z7(e, s, a, d, p, y),
|
|
14631
|
-
getCssText:
|
|
14625
|
+
getCssText: be(QH, e)
|
|
14632
14626
|
};
|
|
14633
14627
|
}, _B = (e) => {
|
|
14634
14628
|
switch (e.toLowerCase()) {
|
|
@@ -14791,7 +14785,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
14791
14785
|
return Br(d, p, eS).filter((y) => jH(y) && XH(n, y) && qH(y) && dO(y) && TP(y));
|
|
14792
14786
|
}, h3 = (e, n, s, a) => a.collapsed ? d3(e, n, s, a) : K.none(), fO = (e, n) => {
|
|
14793
14787
|
const s = aa(e);
|
|
14794
|
-
return Us(s, (a) => n.isBlock(
|
|
14788
|
+
return Us(s, (a) => n.isBlock(Oe(a))).fold(Lt(s), (a) => s.slice(0, a));
|
|
14795
14789
|
}, m1 = (e, n) => {
|
|
14796
14790
|
const s = fO(e, n);
|
|
14797
14791
|
return ke(s, sr), s;
|
|
@@ -14806,7 +14800,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
14806
14800
|
return ke(m1(n, a), (y) => {
|
|
14807
14801
|
vl(d, y);
|
|
14808
14802
|
}), tS(a, e, n), p;
|
|
14809
|
-
}, _P = (e, n) => e.isInline(
|
|
14803
|
+
}, _P = (e, n) => e.isInline(Oe(n)), EP = (e, n, s, a) => {
|
|
14810
14804
|
if (Ki(a, s)) {
|
|
14811
14805
|
if (Ki(a, n)) {
|
|
14812
14806
|
const y = Ps(((C) => {
|
|
@@ -14826,7 +14820,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
14826
14820
|
return K.from(s[s.length - 1]);
|
|
14827
14821
|
}, BB = (e, n) => qr(n, e) ? MB(n, e) : K.none(), mO = (e, n) => {
|
|
14828
14822
|
Dd(e, n.dom).bind((s) => K.from(s.getNode())).map(Be.fromDom).filter(bh).each(sr);
|
|
14829
|
-
}, $P = (e, n, s, a) => (mO(!0, n), mO(!1, s), BB(n, s).fold(
|
|
14823
|
+
}, $P = (e, n, s, a) => (mO(!0, n), mO(!1, s), BB(n, s).fold(be(EP, e, n, s, a), be(RB, e, n, s, a))), PP = (e, n, s, a, d) => n ? $P(e, a, s, d) : $P(e, s, a, d), m3 = (e, n) => {
|
|
14830
14824
|
const s = Be.fromDom(e.getBody());
|
|
14831
14825
|
return h3(e.schema, s.dom, n, e.selection.getRng()).map((d) => () => {
|
|
14832
14826
|
PP(s, n, d.from.block, d.to.block, e.schema).each((p) => {
|
|
@@ -14841,7 +14835,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
14841
14835
|
});
|
|
14842
14836
|
})).getOr(K.none());
|
|
14843
14837
|
}, AP = (e, n) => {
|
|
14844
|
-
const s = Be.fromDom(n), a =
|
|
14838
|
+
const s = Be.fromDom(n), a = be(ks, e);
|
|
14845
14839
|
return Qc(s, cb, a).isSome();
|
|
14846
14840
|
}, NB = (e, n) => AP(e, n.startContainer) || AP(e, n.endContainer), LB = (e, n) => {
|
|
14847
14841
|
const s = dl(e.dom, St.fromRangeStart(n)).isNone(), a = Cl(e.dom, St.fromRangeEnd(n)).isNone();
|
|
@@ -14878,7 +14872,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
14878
14872
|
const s = e.selection.getRng();
|
|
14879
14873
|
if (!Wt(s.commonAncestorContainer))
|
|
14880
14874
|
return K.none();
|
|
14881
|
-
const a = n ? ul.Forwards : ul.Backwards, d = vu(e.getBody()), p =
|
|
14875
|
+
const a = n ? ul.Forwards : ul.Backwards, d = vu(e.getBody()), p = be(Aw, n ? d.next : d.prev), y = n ? KH : JH, C = Lb(a, e.getBody(), s), $ = p(C), B = $ && Sh(n, $);
|
|
14882
14876
|
if (!B || !F0(C, B))
|
|
14883
14877
|
return K.none();
|
|
14884
14878
|
if (y(B))
|
|
@@ -14994,7 +14988,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
14994
14988
|
const a = XB(e);
|
|
14995
14989
|
return e.nextSibling ? (n = e.parentNode) === null || n === void 0 || n.insertBefore(a, e.nextSibling) : (s = e.parentNode) === null || s === void 0 || s.appendChild(a), a;
|
|
14996
14990
|
}
|
|
14997
|
-
}, y3 = (e, n) => e ? qB(n) : rU(n), HP =
|
|
14991
|
+
}, y3 = (e, n) => e ? qB(n) : rU(n), HP = be(y3, !0), iU = be(y3, !1), GB = (e, n) => Wt(e.container()) ? y3(n, e.container()) : y3(n, e.getNode()), YB = (e, n) => {
|
|
14998
14992
|
const s = n.get();
|
|
14999
14993
|
return s && e.container() === s && lm(s);
|
|
15000
14994
|
}, UP = (e, n) => n.fold((s) => {
|
|
@@ -15040,8 +15034,8 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15040
15034
|
return s || e;
|
|
15041
15035
|
}, w3 = (e, n, s) => {
|
|
15042
15036
|
const a = L8(s), d = JB(n, a.container());
|
|
15043
|
-
return Ha(e, d, a).fold(() => Cl(d, a).bind(
|
|
15044
|
-
}, WP = (e, n) => kp(e, n) === null, eN = (e, n, s) => Ha(e, n, s).filter(
|
|
15037
|
+
return Ha(e, d, a).fold(() => Cl(d, a).bind(be(Ha, e, d)).map((p) => qc.before(p)), K.none);
|
|
15038
|
+
}, WP = (e, n) => kp(e, n) === null, eN = (e, n, s) => Ha(e, n, s).filter(be(WP, n)), aU = (e, n, s) => {
|
|
15045
15039
|
const a = I8(s);
|
|
15046
15040
|
return eN(e, n, a).bind((d) => dl(d, a).isNone() ? K.some(qc.start(d)) : K.none());
|
|
15047
15041
|
}, lU = (e, n, s) => {
|
|
@@ -15049,7 +15043,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15049
15043
|
return eN(e, n, a).bind((d) => Cl(d, a).isNone() ? K.some(qc.end(d)) : K.none());
|
|
15050
15044
|
}, cU = (e, n, s) => {
|
|
15051
15045
|
const a = I8(s), d = JB(n, a.container());
|
|
15052
|
-
return Ha(e, d, a).fold(() => dl(d, a).bind(
|
|
15046
|
+
return Ha(e, d, a).fold(() => dl(d, a).bind(be(Ha, e, d)).map((p) => qc.after(p)), K.none);
|
|
15053
15047
|
}, jP = (e) => !ME(XP(e)), kg = (e, n, s) => KB([
|
|
15054
15048
|
w3,
|
|
15055
15049
|
aU,
|
|
@@ -15061,10 +15055,10 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15061
15055
|
s
|
|
15062
15056
|
]).filter(jP), XP = (e) => e.fold(Kt, Kt, Kt, Kt), x3 = (e) => e.fold(Lt("before"), Lt("start"), Lt("end"), Lt("after")), S3 = (e) => e.fold(qc.before, qc.before, qc.after, qc.after), qP = (e) => e.fold(qc.start, qc.start, qc.end, qc.end), uU = (e, n) => x3(e) === x3(n) && XP(e) === XP(n), dU = (e, n, s, a, d, p) => Br(Ha(n, s, a), Ha(n, s, d), (y, C) => y !== C && nV(s, y, C) ? qc.after(e ? y : C) : p).getOr(p), hU = (e, n) => e.fold(pt, (s) => !uU(s, n)), fU = (e, n, s, a, d) => {
|
|
15063
15057
|
const p = Sh(e, d);
|
|
15064
|
-
return yu(e, s, p).map(
|
|
15058
|
+
return yu(e, s, p).map(be(Sh, e)).fold(() => a.map(S3), ($) => kg(n, s, $).map(be(dU, e, n, s, p, $)).filter(be(hU, a))).filter(jP);
|
|
15065
15059
|
}, mU = (e, n) => e ? n.fold(Q(K.some, qc.start), K.none, Q(K.some, qc.after), K.none) : n.fold(K.none, Q(K.some, qc.before), K.none, Q(K.some, qc.end)), k3 = (e, n, s, a) => {
|
|
15066
15060
|
const d = Sh(e, a), p = kg(n, s, d);
|
|
15067
|
-
return kg(n, s, d).bind(
|
|
15061
|
+
return kg(n, s, d).bind(be(mU, e)).orThunk(() => fU(e, n, s, p, a));
|
|
15068
15062
|
}, C3 = (e) => ye(e.selection.getSel().modify), tN = (e, n, s) => {
|
|
15069
15063
|
const a = e ? 1 : -1;
|
|
15070
15064
|
return n.setRng(St(s.container(), s.offset() + a).toRange()), n.getSel().modify("move", e ? "forward" : "backward", "word"), !0;
|
|
@@ -15119,7 +15113,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15119
15113
|
}).getOr([]), GP = (e, n) => Co(e, (s, a) => s.fold(() => K.some(a), (d) => Br(No(d.getClientRects()), No(a.getClientRects()), (p, y) => {
|
|
15120
15114
|
const C = Math.abs(n - p.left);
|
|
15121
15115
|
return Math.abs(n - y.left) <= C ? a : d;
|
|
15122
|
-
}).or(s)), K.none()), _3 = (e, n) => No(n.getClientRects()).bind((s) => GP(e, s.left)), rS =
|
|
15116
|
+
}).or(s)), K.none()), _3 = (e, n) => No(n.getClientRects()).bind((s) => GP(e, s.left)), rS = be(nN, St.isAbove, -1), iS = be(nN, St.isBelow, 1), sN = be(oN, -1, rS), rN = be(oN, 1, iS), OU = (e, n) => rS(e, n).breakAt.isNone(), Ah = (e, n) => iS(e, n).breakAt.isNone(), YP = (e) => ha(e).map((n) => [n].concat(iS(e, n).positions)).getOr([]), iN = (e) => Rd(e).map((n) => rS(e, n).positions.concat(n)).getOr([]), aN = (e, n) => _3(sN(e, n), n), vU = (e, n) => _3(rN(e, n), n), lN = Ds, cN = (e, n) => Math.abs(e.left - n), KP = (e, n) => Math.abs(e.right - n), yU = (e) => er(e, "node"), uN = (e, n) => Pe(e, (s, a) => {
|
|
15123
15117
|
const d = Math.min(cN(s, n), KP(s, n)), p = Math.min(cN(a, n), KP(a, n));
|
|
15124
15118
|
return p === d && yU(a) && lN(a.node) || p < d ? a : s;
|
|
15125
15119
|
}), wU = (e) => {
|
|
@@ -15163,7 +15157,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15163
15157
|
return C;
|
|
15164
15158
|
const W = p.getNode();
|
|
15165
15159
|
return W && ($(W), dN(e, a, $, W)), C;
|
|
15166
|
-
}, eA = (e, n) => n.line > e, xU = (e, n) => n.line === e, SU =
|
|
15160
|
+
}, eA = (e, n) => n.line > e, xU = (e, n) => n.line === e, SU = be(JP, Qy.Up, mr, T0), kU = be(JP, Qy.Down, T0, mr), hN = (e) => ut(e.getClientRects()), Tee = (e, n, s, a) => {
|
|
15167
15161
|
const d = vu(n);
|
|
15168
15162
|
let p, y, C, $;
|
|
15169
15163
|
const B = [];
|
|
@@ -15186,7 +15180,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15186
15180
|
}, CU = (e) => (n) => eA(e, n), fN = (e) => (n) => xU(e, n), sc = (e, n) => {
|
|
15187
15181
|
e.selection.setRng(n), uy(e, e.selection.getRng());
|
|
15188
15182
|
}, tA = (e, n, s) => K.some(DP(e, n, s)), mN = (e, n, s, a, d, p) => {
|
|
15189
|
-
const y = n === ul.Forwards, C = vu(e.getBody()), $ =
|
|
15183
|
+
const y = n === ul.Forwards, C = vu(e.getBody()), $ = be(Aw, y ? C.next : C.prev), B = y ? a : d;
|
|
15190
15184
|
if (!s.collapsed) {
|
|
15191
15185
|
const ge = iv(s);
|
|
15192
15186
|
if (p(ge))
|
|
@@ -15253,11 +15247,11 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15253
15247
|
return s ? dl(n, d).getOr(d) : Cl(n, a).getOr(a);
|
|
15254
15248
|
}
|
|
15255
15249
|
}, _U = (e, n, s) => {
|
|
15256
|
-
const a = e.getBody(), d = TU(e.selection.getRng(), a, s), p =
|
|
15250
|
+
const a = e.getBody(), d = TU(e.selection.getRng(), a, s), p = be(n1, e);
|
|
15257
15251
|
return k3(s, p, a, d).bind((C) => bN(e, n, C));
|
|
15258
15252
|
}, ON = (e, n, s) => {
|
|
15259
15253
|
const a = Ke(rl(Be.fromDom(n.getRoot()), '*[data-mce-selected="inline-boundary"]'), (y) => y.dom), d = yn(a, e), p = yn(s, e);
|
|
15260
|
-
ke(Rr(d, p),
|
|
15254
|
+
ke(Rr(d, p), be(pN, !1)), ke(Rr(p, d), be(pN, !0));
|
|
15261
15255
|
}, EU = (e, n) => {
|
|
15262
15256
|
const s = n.get();
|
|
15263
15257
|
if (e.selection.isCollapsed() && !e.composing && s) {
|
|
@@ -15273,17 +15267,17 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15273
15267
|
});
|
|
15274
15268
|
}
|
|
15275
15269
|
}, $3 = (e, n, s) => Sb(e) ? _U(e, n, s).isSome() : !1, vN = (e, n, s) => Sb(n) ? gU(e, n) : !1, $U = (e) => {
|
|
15276
|
-
const n = _r(null), s =
|
|
15270
|
+
const n = _r(null), s = be(n1, e);
|
|
15277
15271
|
return e.on("NodeChange", (a) => {
|
|
15278
15272
|
Sb(e) && (ON(s, e.dom, a.parents), EU(e, n), Fp(s, e, n, a.parents));
|
|
15279
15273
|
}), n;
|
|
15280
|
-
}, PU =
|
|
15274
|
+
}, PU = be(vN, !0), AU = be(vN, !1), P3 = (e, n, s) => {
|
|
15281
15275
|
if (Sb(e)) {
|
|
15282
15276
|
const a = E3(e, n).getOrThunk(() => {
|
|
15283
15277
|
const d = e.selection.getRng();
|
|
15284
15278
|
return n ? St.fromRangeEnd(d) : St.fromRangeStart(d);
|
|
15285
15279
|
});
|
|
15286
|
-
return kg(
|
|
15280
|
+
return kg(be(n1, e), e.getBody(), a).exists((d) => {
|
|
15287
15281
|
const p = S3(d);
|
|
15288
15282
|
return UP(s, p).exists((y) => (pO(e, y), !0));
|
|
15289
15283
|
});
|
|
@@ -15296,7 +15290,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15296
15290
|
const a = Sh(!0, n), d = Sh(!1, s);
|
|
15297
15291
|
return Cl(e, a).forall((p) => p.isEqual(d));
|
|
15298
15292
|
}).getOr(!0), A3 = (e, n) => (s) => UP(n, s).map((a) => () => pO(e, a)), sA = (e, n, s, a) => {
|
|
15299
|
-
const d = e.getBody(), p =
|
|
15293
|
+
const d = e.getBody(), p = be(n1, e);
|
|
15300
15294
|
e.undoManager.ignore(() => {
|
|
15301
15295
|
e.selection.setRng(nA(s, a)), hT(e), kg(p, d, St.fromRangeStart(e.selection.getRng())).map(qP).bind(A3(e, n)).each(sn);
|
|
15302
15296
|
}), e.nodeChanged();
|
|
@@ -15304,7 +15298,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15304
15298
|
const s = hf(n, e);
|
|
15305
15299
|
return s || e;
|
|
15306
15300
|
}, wN = (e, n, s, a) => {
|
|
15307
|
-
const d = yN(e.getBody(), a.container()), p =
|
|
15301
|
+
const d = yN(e.getBody(), a.container()), p = be(n1, e), y = kg(p, d, a);
|
|
15308
15302
|
return y.bind(($) => s ? $.fold(Lt(K.some(qP($))), K.none, Lt(K.some(S3($))), K.none) : $.fold(K.none, Lt(K.some(S3($))), K.none, Lt(K.some(qP($))))).map(A3(e, n)).getOrThunk(() => {
|
|
15309
15303
|
const $ = fg(s, d, a), B = $.bind((W) => kg(p, d, W));
|
|
15310
15304
|
return Br(y, B, () => Ha(p, d, a).bind((W) => oA(W) ? K.some(() => {
|
|
@@ -15322,8 +15316,8 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15322
15316
|
}, aS = (e) => sh(e) > 1, lS = (e, n) => {
|
|
15323
15317
|
const s = Be.fromDom(e.getBody()), a = Be.fromDom(e.selection.getStart()), d = Dp(a, s);
|
|
15324
15318
|
return Us(d, n).fold(Lt(d), (p) => d.slice(0, p));
|
|
15325
|
-
}, xN = (e) => sh(e) === 1, SN = (e) => lS(e, (n) => e.schema.isBlock(
|
|
15326
|
-
const s =
|
|
15319
|
+
}, xN = (e) => sh(e) === 1, SN = (e) => lS(e, (n) => e.schema.isBlock(Oe(n)) || aS(n)), kN = (e) => lS(e, (n) => e.schema.isBlock(Oe(n))), iA = (e, n) => {
|
|
15320
|
+
const s = be(h$, e);
|
|
15327
15321
|
return Js(n, (a) => s(a) ? [a.dom] : []);
|
|
15328
15322
|
}, cS = (e) => {
|
|
15329
15323
|
const n = kN(e);
|
|
@@ -15371,7 +15365,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15371
15365
|
});
|
|
15372
15366
|
} else
|
|
15373
15367
|
return K.none();
|
|
15374
|
-
}, cA = (e, n) => e.selection.isCollapsed() ? uS(e, n) : FU(e), ZU = (e, n) => r0(e, (s) => wu(s.dom), (s) => n.isBlock(
|
|
15368
|
+
}, cA = (e, n) => e.selection.isCollapsed() ? uS(e, n) : FU(e), ZU = (e, n) => r0(e, (s) => wu(s.dom), (s) => n.isBlock(Oe(s))), EN = (e) => ZU(Be.fromDom(e.selection.getStart()), e.schema), VU = (e) => {
|
|
15375
15369
|
const n = e.selection.getRng();
|
|
15376
15370
|
return n.collapsed && (lA(n) || e.dom.isEmpty(n.startContainer)) && !EN(e);
|
|
15377
15371
|
}, Tf = (e) => (VU(e) && TN(e, []), !0), D3 = (e, n, s) => je(s) ? K.some(() => {
|
|
@@ -15573,12 +15567,12 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15573
15567
|
Ok(s) && (QN(e, s), e.undoManager.add());
|
|
15574
15568
|
}
|
|
15575
15569
|
}, eW = (e) => {
|
|
15576
|
-
e.on("keyup compositionstart",
|
|
15570
|
+
e.on("keyup compositionstart", be(FN, e));
|
|
15577
15571
|
}, ZN = Ds, tW = (e, n, s) => mN(n, e, s, e1, t1, ZN), VN = (e, n, s) => g1(n, e, s, (p) => e1(p) || w8(p), (p) => t1(p) || wE(p), ZN), nW = (e) => {
|
|
15578
15572
|
const n = e.dom.create(Ri(e));
|
|
15579
15573
|
return n.innerHTML = '<br data-mce-bogus="1">', n;
|
|
15580
15574
|
}, zN = (e, n, s) => {
|
|
15581
|
-
const a = vu(e.getBody()), d =
|
|
15575
|
+
const a = vu(e.getBody()), d = be(Aw, n === 1 ? a.next : a.prev);
|
|
15582
15576
|
if (s.collapsed) {
|
|
15583
15577
|
const p = e.dom.getParent(s.startContainer, "PRE");
|
|
15584
15578
|
if (!p)
|
|
@@ -15600,9 +15594,9 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15600
15594
|
}, fS = (e, n) => hS(e, OO(e.selection, n)).exists((s) => (sc(e, s), !0)), N3 = (e, n) => Zp(e, n).exists((s) => (sc(e, s), !0)), L3 = (e, n) => gN(e, n, n ? t1 : e1), mS = (e, n) => MP(e, !n).map((s) => {
|
|
15601
15595
|
const a = s.toRange(), d = e.selection.getRng();
|
|
15602
15596
|
return n ? a.setStart(d.startContainer, d.startOffset) : a.setEnd(d.endContainer, d.endOffset), a;
|
|
15603
|
-
}).exists((s) => (sc(e, s), !0)), oW = (e) => Ne(["figcaption"],
|
|
15604
|
-
const a =
|
|
15605
|
-
return Gr(Be.fromDom(e.container()), (d) => s.isBlock(
|
|
15597
|
+
}).exists((s) => (sc(e, s), !0)), oW = (e) => Ne(["figcaption"], Oe(e)), HN = (e, n, s) => {
|
|
15598
|
+
const a = be(ks, n);
|
|
15599
|
+
return Gr(Be.fromDom(e.container()), (d) => s.isBlock(Oe(d)), a).filter(oW);
|
|
15606
15600
|
}, UN = (e, n, s) => n ? Ah(e.dom, s) : OU(e.dom, s), sW = (e, n) => {
|
|
15607
15601
|
const s = Be.fromDom(e.getBody()), a = St.fromRangeStart(e.selection.getRng());
|
|
15608
15602
|
return HN(a, s, e.schema).exists(() => {
|
|
@@ -15652,7 +15646,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15652
15646
|
}, hW = (e, n) => yA(e, n, pt), yA = (e, n, s) => Js(aa(e), (a) => Ol(a, n) ? s(a) ? [a] : [] : yA(a, n, s)), KN = (e, n, s = Ue) => {
|
|
15653
15647
|
if (s(n))
|
|
15654
15648
|
return K.none();
|
|
15655
|
-
if (Ne(e,
|
|
15649
|
+
if (Ne(e, Oe(n)))
|
|
15656
15650
|
return K.some(n);
|
|
15657
15651
|
const a = (d) => Ol(d, "table") || s(d);
|
|
15658
15652
|
return Xh(n, e.join(","), a);
|
|
@@ -15678,7 +15672,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15678
15672
|
}), fW = (e, n, s) => kA(e, s).fold(() => Vp.none(e), (d) => SA(d.all, e, d.index, 1, n)), mW = (e, n, s) => kA(e, s).fold(() => Vp.none(), (d) => SA(d.all, e, d.index, -1, n)), gW = (e) => gk(e).filter((n) => n.trim().length !== 0 || n.indexOf(Pi) > -1).isSome(), CA = (e) => as(e) && ia(e, "contenteditable") === "false", pW = [
|
|
15679
15673
|
"img",
|
|
15680
15674
|
"br"
|
|
15681
|
-
], bW = (e) => gW(e) || Ne(pW,
|
|
15675
|
+
], bW = (e) => gW(e) || Ne(pW, Oe(e)) || CA(e), Pee = (e) => jh(e, bW), OW = (e, n) => ({
|
|
15682
15676
|
left: e.left - n,
|
|
15683
15677
|
top: e.top - n,
|
|
15684
15678
|
right: e.right + n * 2,
|
|
@@ -15705,10 +15699,10 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15705
15699
|
}), K.none()), tL = (e, n, s, a, d) => {
|
|
15706
15700
|
const p = rl(Be.fromDom(s), "td,th,caption").map((C) => C.dom), y = yn(eL(e, p), (C) => n(C, d));
|
|
15707
15701
|
return Aee(y, a, d).map((C) => C.cell);
|
|
15708
|
-
}, vW = (e) => e.bottom, yW = (e) => e.top, TA = (e, n) => e.y < n, Q3 = (e, n) => e.y > n, nL =
|
|
15702
|
+
}, vW = (e) => e.bottom, yW = (e) => e.top, TA = (e, n) => e.y < n, Q3 = (e, n) => e.y > n, nL = be(tL, vW, TA), oL = be(tL, yW, Q3), wW = (e, n) => No(n.getClientRects()).bind((s) => nL(e, s.left, s.top)).bind((s) => _3(iN(s), n)), xW = (e, n) => Ns(n.getClientRects()).bind((s) => oL(e, s.left, s.top)).bind((s) => _3(YP(s), n)), _A = (e, n, s) => s.breakAt.exists((a) => e(n, a).breakAt.isSome()), SW = (e) => e.breakType === Ph.Wrap && e.positions.length === 0, kW = (e) => e.breakType === Ph.Br && e.positions.length === 1, sL = (e, n, s) => {
|
|
15709
15703
|
const a = e(n, s);
|
|
15710
15704
|
return SW(a) || !As(s.getNode()) && kW(a) ? !_A(e, n, a) : a.breakAt.isNone();
|
|
15711
|
-
}, CW =
|
|
15705
|
+
}, CW = be(sL, rS), _f = be(sL, iS), rL = (e, n, s) => {
|
|
15712
15706
|
const a = St.fromRangeStart(n);
|
|
15713
15707
|
return Dd(!e, s).exists((d) => d.isEqual(a));
|
|
15714
15708
|
}, iL = (e, n, s, a) => {
|
|
@@ -15746,7 +15740,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15746
15740
|
"li",
|
|
15747
15741
|
"dl"
|
|
15748
15742
|
], a = Be.fromDom(e.getBody()), d = (C) => {
|
|
15749
|
-
const $ =
|
|
15743
|
+
const $ = Oe(C);
|
|
15750
15744
|
return ks(C, a) || Ne(s, $);
|
|
15751
15745
|
}, p = e.selection.getRng(), y = Be.fromDom(n ? p.endContainer : p.startContainer);
|
|
15752
15746
|
return JN(y, d).map((C) => (xA(C, d).each((W) => {
|
|
@@ -16711,7 +16705,7 @@ Input object: ` + Zy(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = Lt(AL), OS
|
|
|
16711
16705
|
W.setStartAfter(a), W.setEndAfter(s);
|
|
16712
16706
|
const X = W.extractContents();
|
|
16713
16707
|
if (d === "LI" && $j(X, "LI")) {
|
|
16714
|
-
const G = yn(Ke(B.children, Be.fromDom),
|
|
16708
|
+
const G = yn(Ke(B.children, Be.fromDom), ot(Ba("br")));
|
|
16715
16709
|
B = X.firstChild, p.insertAfter(X, s), ke(G, (re) => Gh(Be.fromDom(B), re)), $ && B.setAttribute("style", $);
|
|
16716
16710
|
} else
|
|
16717
16711
|
p.insertAfter(X, s), p.insertAfter(B, s);
|
|
@@ -16894,14 +16888,14 @@ Input object: ` + Zy(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = Lt(AL), OS
|
|
|
16894
16888
|
const s = Be.fromTag("br");
|
|
16895
16889
|
mc(Be.fromDom(n), s), i_(e, s.dom, !1), e.undoManager.add();
|
|
16896
16890
|
}, Zj = (e) => As(e.getNode()), Vj = (e, n) => Zj(St.after(n)) ? !0 : Cl(e, St.after(n)).map((s) => As(s.getNode())).getOr(!1), d9 = (e) => e && e.nodeName === "A" && "href" in e, zj = (e) => e.fold(Ue, d9, d9, Ue), h9 = (e) => {
|
|
16897
|
-
const n =
|
|
16891
|
+
const n = be(n1, e), s = St.fromRangeStart(e.selection.getRng());
|
|
16898
16892
|
return kg(n, e.getBody(), s).filter(zj);
|
|
16899
16893
|
}, Hj = (e, n) => {
|
|
16900
|
-
n.fold(kt,
|
|
16894
|
+
n.fold(kt, be(a_, e), be(Fj, e), kt);
|
|
16901
16895
|
}, f9 = {
|
|
16902
16896
|
insert: (e, n) => {
|
|
16903
16897
|
const s = h9(e);
|
|
16904
|
-
s.isSome() ? s.each(
|
|
16898
|
+
s.isSome() ? s.each(be(Hj, e)) : u9(e, n);
|
|
16905
16899
|
},
|
|
16906
16900
|
fakeEventName: "insertLineBreak"
|
|
16907
16901
|
}, m9 = (e, n) => oD(e).filter((s) => n.length > 0 && Ol(Be.fromDom(s), n)).isSome(), rD = (e) => m9(e, Yl(e)), jj = (e) => m9(e, iw(e)), Zd = Td.generate([
|
|
@@ -17083,12 +17077,12 @@ Input object: ` + Zy(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = Lt(AL), OS
|
|
|
17083
17077
|
const p = Be.fromText(e);
|
|
17084
17078
|
return n.isAtEnd() ? mc(d, p) : vl(d, p), St(p.dom, e.length);
|
|
17085
17079
|
});
|
|
17086
|
-
}, mD =
|
|
17080
|
+
}, mD = be(x9, Pi), S9 = be(x9, " "), nX = (e, n, s) => kE(e, n, s) ? mD(n) : S9(n), oX = (e) => (n) => n.fold((s) => dl(e.dom, St.before(s)), (s) => ha(s), (s) => Rd(s), (s) => Cl(e.dom, St.after(s))), sX = (e, n, s) => (a) => kE(e, a, s) ? mD(n) : S9(n), k9 = (e) => (n) => {
|
|
17087
17081
|
e.selection.setRng(n.toRange()), e.nodeChanged();
|
|
17088
17082
|
}, C9 = (e, n) => e.isEditable(e.getParent(n, "summary")), rX = (e) => {
|
|
17089
17083
|
const n = St.fromRangeStart(e.selection.getRng()), s = Be.fromDom(e.getBody());
|
|
17090
17084
|
if (e.selection.isCollapsed()) {
|
|
17091
|
-
const a =
|
|
17085
|
+
const a = be(n1, e), d = St.fromRangeStart(e.selection.getRng());
|
|
17092
17086
|
return kg(a, e.getBody(), d).bind(oX(s)).map((p) => () => sX(s, n, e.schema)(p).each(k9(e)));
|
|
17093
17087
|
} else
|
|
17094
17088
|
return K.none();
|
|
@@ -17723,7 +17717,7 @@ Input object: ` + Zy(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = Lt(AL), OS
|
|
|
17723
17717
|
});
|
|
17724
17718
|
}, DD = (e) => {
|
|
17725
17719
|
lI(e), cI(e);
|
|
17726
|
-
}, eq = As, RD = Wt, tq = (e) => Ds(e.dom), uI = (e) => $t(e.dom), dI = (e) => (n) => ks(Be.fromDom(e), n), hI = (e, n, s) => Gr(Be.fromDom(e), (a) => uI(a) || s.isBlock(
|
|
17720
|
+
}, eq = As, RD = Wt, tq = (e) => Ds(e.dom), uI = (e) => $t(e.dom), dI = (e) => (n) => ks(Be.fromDom(e), n), hI = (e, n, s) => Gr(Be.fromDom(e), (a) => uI(a) || s.isBlock(Oe(a)), dI(n)).getOr(Be.fromDom(n)).dom, fI = (e, n) => Gr(Be.fromDom(e), tq, dI(n)), mI = (e, n, s) => {
|
|
17727
17721
|
const a = new Na(e, n), d = s ? a.next.bind(a) : a.prev.bind(a);
|
|
17728
17722
|
let p = e;
|
|
17729
17723
|
for (let y = s ? e : d(); y && !eq(y); y = d())
|
|
@@ -17780,7 +17774,7 @@ Input object: ` + Zy(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = Lt(AL), OS
|
|
|
17780
17774
|
return y(C, pI).orThunk(() => y(W, hp)).orThunk(() => y(B, hp));
|
|
17781
17775
|
}, cq = (e, n, s, a) => {
|
|
17782
17776
|
const d = (p, y) => {
|
|
17783
|
-
const C = (B) => pn(B) && B.classList.contains("mce-drag-container"), $ = yn(p.dom.childNodes,
|
|
17777
|
+
const C = (B) => pn(B) && B.classList.contains("mce-drag-container"), $ = yn(p.dom.childNodes, ot(C));
|
|
17784
17778
|
return y.fold(() => w_($, s, a, !0), (B) => {
|
|
17785
17779
|
const W = yn($, (X) => X !== B.dom);
|
|
17786
17780
|
return w_(W, s, a, !0);
|
|
@@ -19310,7 +19304,7 @@ Input object: ` + Zy(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = Lt(AL), OS
|
|
|
19310
19304
|
}), hQ = (e) => K.from(e.selection.getRng()).bind((n) => {
|
|
19311
19305
|
const s = e.getBody();
|
|
19312
19306
|
return n.startContainer === s && n.startOffset === 0 ? K.none() : K.from(e.selection.getStart(!0));
|
|
19313
|
-
}), fQ = (e, n) => hQ(e).orThunk(
|
|
19307
|
+
}), fQ = (e, n) => hQ(e).orThunk(be(dQ, e)).map(Be.fromDom).filter(Io).bind(n), sR = (e, n) => fQ(e, to(K.some, n)), mQ = (e, n) => {
|
|
19314
19308
|
if (/^[0-9.]+$/.test(n)) {
|
|
19315
19309
|
const s = parseInt(n, 10);
|
|
19316
19310
|
if (s >= 1 && s <= 7) {
|
|
@@ -19329,7 +19323,7 @@ Input object: ` + Zy(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = Lt(AL), OS
|
|
|
19329
19323
|
}, FG = (e) => sR(e, (n) => V_(e.getBody(), n.dom)).getOr(""), ZG = (e, n) => {
|
|
19330
19324
|
e.formatter.toggle("fontsize", { value: mQ(e, n) }), e.nodeChanged();
|
|
19331
19325
|
}, x1 = (e) => sR(e, (n) => oR(e.getBody(), n.dom)).getOr(""), VG = (e) => sR(e, (n) => {
|
|
19332
|
-
const s = Be.fromDom(e.getBody()), a = Cx(n, (p) => Dl(p, "line-height"),
|
|
19326
|
+
const s = Be.fromDom(e.getBody()), a = Cx(n, (p) => Dl(p, "line-height"), be(ks, s)), d = () => {
|
|
19333
19327
|
const p = parseFloat(ii(n, "line-height")), y = parseFloat(ii(n, "font-size"));
|
|
19334
19328
|
return String(p / y);
|
|
19335
19329
|
};
|
|
@@ -20969,10 +20963,10 @@ function ahe() {
|
|
|
20969
20963
|
}
|
|
20970
20964
|
}
|
|
20971
20965
|
Q.singletonNone = new Q(!1);
|
|
20972
|
-
const to = Array.prototype.slice, Lt = Array.prototype.indexOf, Kt = Array.prototype.push, Qt = (t, r) => Lt.call(t, r),
|
|
20966
|
+
const to = Array.prototype.slice, Lt = Array.prototype.indexOf, Kt = Array.prototype.push, Qt = (t, r) => Lt.call(t, r), be = (t, r) => {
|
|
20973
20967
|
const l = Qt(t, r);
|
|
20974
20968
|
return l === -1 ? Q.none() : Q.some(l);
|
|
20975
|
-
},
|
|
20969
|
+
}, ot = (t, r) => Qt(t, r) > -1, qt = (t, r) => {
|
|
20976
20970
|
for (let l = 0, f = t.length; l < f; l++) {
|
|
20977
20971
|
const b = t[l];
|
|
20978
20972
|
if (r(b, l))
|
|
@@ -21063,7 +21057,7 @@ function ahe() {
|
|
|
21063
21057
|
}, vo = (t) => {
|
|
21064
21058
|
const r = to.call(t, 0);
|
|
21065
21059
|
return r.reverse(), r;
|
|
21066
|
-
}, yn = (t, r) => Oo(t, (l) => !
|
|
21060
|
+
}, yn = (t, r) => Oo(t, (l) => !ot(r, l)), Ps = (t, r) => {
|
|
21067
21061
|
const l = {};
|
|
21068
21062
|
for (let f = 0, b = t.length; f < b; f++) {
|
|
21069
21063
|
const x = t[f];
|
|
@@ -21373,7 +21367,7 @@ function ahe() {
|
|
|
21373
21367
|
}, Ma = (t) => {
|
|
21374
21368
|
const r = t.dom, f = r.ownerDocument.body;
|
|
21375
21369
|
return f === r ? lr(f.offsetLeft, f.offsetTop) : Ve(t) ? Nc(r) : lr(0, 0);
|
|
21376
|
-
}, nu = yi("width", (t) => t.dom.offsetWidth), he = (t, r) => nu.set(t, r),
|
|
21370
|
+
}, nu = yi("width", (t) => t.dom.offsetWidth), he = (t, r) => nu.set(t, r), Oe = (t) => nu.get(t), et = (t) => nu.getOuter(t), Et = (t, r) => {
|
|
21377
21371
|
const l = [
|
|
21378
21372
|
"margin-left",
|
|
21379
21373
|
"border-left-width",
|
|
@@ -22033,7 +22027,7 @@ function ahe() {
|
|
|
22033
22027
|
` + $o(t.errors).join(`
|
|
22034
22028
|
`) + `
|
|
22035
22029
|
|
|
22036
|
-
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) =>
|
|
22030
|
+
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) => ot(t, r) ? Eo.value(r) : Eo.error(`Unsupported value: "${r}", choose one of "${t.join(", ")}".`)), $t = (t) => Yi(t, t, Fc(), cu()), Ds = (t, r) => Yi(t, t, Fc(), r), u0 = (t) => Ds(t, Jh), Wi = (t) => Ds(t, pn), ya = (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)), st = (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) => {
|
|
22037
22031
|
if (!R(t))
|
|
22038
22032
|
throw new Error("cases must be an array");
|
|
22039
22033
|
if (t.length === 0)
|
|
@@ -22065,7 +22059,7 @@ Input object: ` + Ro(t.input), Gi = (t, r) => ef(t, Bo(r, fo)), qm = (t, r) => z
|
|
|
22065
22059
|
if (r.length !== ne.length)
|
|
22066
22060
|
throw new Error("Wrong number of arguments to match. Expected: " + r.join(",") + `
|
|
22067
22061
|
Actual: ` + ne.join(","));
|
|
22068
|
-
if (!Fn(r, (pe) =>
|
|
22062
|
+
if (!Fn(r, (pe) => ot(ne, pe)))
|
|
22069
22063
|
throw new Error("Not all branches were specified when using match. Specified: " + ne.join(", ") + `
|
|
22070
22064
|
Required: ` + r.join(", "));
|
|
22071
22065
|
return j[S].apply(null, D);
|
|
@@ -22122,7 +22116,7 @@ Required: ` + r.join(", "));
|
|
|
22122
22116
|
}, en = (t, r) => {
|
|
22123
22117
|
const l = {};
|
|
22124
22118
|
return Fs(t, (f, b) => {
|
|
22125
|
-
|
|
22119
|
+
ot(r, b) || (l[b] = f);
|
|
22126
22120
|
}), l;
|
|
22127
22121
|
}, Rn = (t, r) => ({ [t]: r }), ko = (t) => {
|
|
22128
22122
|
const r = {};
|
|
@@ -22327,10 +22321,10 @@ Required: ` + r.join(", "));
|
|
|
22327
22321
|
}, fh = { init: () => Xl({ readState: oe("No State required") }) }, Xl = (t) => t, Gt = (t) => Hs(t), O0 = il([
|
|
22328
22322
|
$t("fields"),
|
|
22329
22323
|
$t("name"),
|
|
22330
|
-
|
|
22331
|
-
|
|
22332
|
-
|
|
22333
|
-
|
|
22324
|
+
st("active", {}),
|
|
22325
|
+
st("apis", {}),
|
|
22326
|
+
st("state", fh),
|
|
22327
|
+
st("extra", {})
|
|
22334
22328
|
]), xa = (t) => {
|
|
22335
22329
|
const r = Ml("Creating behaviour: " + t.name, O0, t);
|
|
22336
22330
|
return T2(r.fields, r.name, r.active, r.apis, r.extra, r.state);
|
|
@@ -22338,10 +22332,10 @@ Required: ` + r.join(", "));
|
|
|
22338
22332
|
$t("branchKey"),
|
|
22339
22333
|
$t("branches"),
|
|
22340
22334
|
$t("name"),
|
|
22341
|
-
|
|
22342
|
-
|
|
22343
|
-
|
|
22344
|
-
|
|
22335
|
+
st("active", {}),
|
|
22336
|
+
st("apis", {}),
|
|
22337
|
+
st("state", fh),
|
|
22338
|
+
st("extra", {})
|
|
22345
22339
|
]), _2 = (t) => {
|
|
22346
22340
|
const r = Ml("Creating behaviour: " + t.name, L4, t);
|
|
22347
22341
|
return rf(Gi(r.branchKey, r.branches), r.name, r.active, r.apis, r.extra, r.state);
|
|
@@ -22354,7 +22348,7 @@ Required: ` + r.join(", "));
|
|
|
22354
22348
|
}, E2 = (t, r, l) => {
|
|
22355
22349
|
const f = Oo(kr(t, r), (b) => b !== l);
|
|
22356
22350
|
return f.length > 0 ? dn(t, r, f.join(" ")) : ce(t, r), !1;
|
|
22357
|
-
}, v0 = (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) =>
|
|
22351
|
+
}, v0 = (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) => ot(og(t), r) ? af(t, r) : $2(t, r), mi = (t, r) => {
|
|
22358
22352
|
v0(t) ? t.dom.classList.add(r) : $2(t, r);
|
|
22359
22353
|
}, uk = (t) => {
|
|
22360
22354
|
(v0(t) ? t.dom.classList : og(t)).length === 0 && ce(t, "class");
|
|
@@ -22445,7 +22439,7 @@ Required: ` + r.join(", "));
|
|
|
22445
22439
|
}, lp = (t, r, l) => l.getInitialPos().map((f) => {
|
|
22446
22440
|
const b = A2(f, r);
|
|
22447
22441
|
return {
|
|
22448
|
-
box: Gr(b.left, b.top,
|
|
22442
|
+
box: Gr(b.left, b.top, Oe(t), ei(t)),
|
|
22449
22443
|
location: f.location
|
|
22450
22444
|
};
|
|
22451
22445
|
}), rb = (t, r, l, f, b) => {
|
|
@@ -22668,7 +22662,7 @@ Required: ` + r.join(", "));
|
|
|
22668
22662
|
},
|
|
22669
22663
|
write: () => {
|
|
22670
22664
|
const b = (/* @__PURE__ */ new Date()).getTime();
|
|
22671
|
-
|
|
22665
|
+
ot([
|
|
22672
22666
|
"mousemove",
|
|
22673
22667
|
"mouseover",
|
|
22674
22668
|
"mouseout",
|
|
@@ -22677,7 +22671,7 @@ Required: ` + r.join(", "));
|
|
|
22677
22671
|
event: t,
|
|
22678
22672
|
time: b - f,
|
|
22679
22673
|
target: r.dom,
|
|
22680
|
-
sequence: Ue(l, (x) =>
|
|
22674
|
+
sequence: Ue(l, (x) => ot([
|
|
22681
22675
|
"cut",
|
|
22682
22676
|
"stopped",
|
|
22683
22677
|
"response"
|
|
@@ -22835,7 +22829,7 @@ Check the ` + hh() + " event handlers"), !1) : !0;
|
|
|
22835
22829
|
}), Xs(hb, t)), gp = (t) => zo(t.dom, hb), Q2 = (t) => jt(t, hb), dm = (t) => B4((r, ...l) => t(r.getApis(), r, ...l), t), e5 = (t, r) => {
|
|
22836
22830
|
const l = Ue(r, (b) => Ai(b.name(), [
|
|
22837
22831
|
$t("config"),
|
|
22838
|
-
|
|
22832
|
+
st("state", fh)
|
|
22839
22833
|
])), f = Vr("component.behaviours", fo(l), t.behaviours).fold((b) => {
|
|
22840
22834
|
throw new Error(Uu(b) + `
|
|
22841
22835
|
Complete spec:
|
|
@@ -22941,16 +22935,16 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ue(r, (l) => l.name),
|
|
|
22941
22935
|
}, pp = "alloy.base.behaviour", $k = fo([
|
|
22942
22936
|
Yi("dom", "dom", Fc(), fo([
|
|
22943
22937
|
$t("tag"),
|
|
22944
|
-
|
|
22945
|
-
|
|
22946
|
-
|
|
22938
|
+
st("styles", {}),
|
|
22939
|
+
st("classes", []),
|
|
22940
|
+
st("attributes", {}),
|
|
22947
22941
|
$s("value"),
|
|
22948
22942
|
$s("innerHtml")
|
|
22949
22943
|
])),
|
|
22950
22944
|
$t("components"),
|
|
22951
22945
|
$t("uid"),
|
|
22952
|
-
|
|
22953
|
-
|
|
22946
|
+
st("events", {}),
|
|
22947
|
+
st("apis", {}),
|
|
22954
22948
|
Yi("eventOrder", "eventOrder", U({
|
|
22955
22949
|
[wl()]: [
|
|
22956
22950
|
"disabling",
|
|
@@ -23326,7 +23320,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ue(r, (l) => l.name),
|
|
|
23326
23320
|
cl,
|
|
23327
23321
|
da,
|
|
23328
23322
|
Za
|
|
23329
|
-
], Xk = (t, r) => r.universal ? t : Oo(t, (l) =>
|
|
23323
|
+
], Xk = (t, r) => r.universal ? t : Oo(t, (l) => ot(r.channels, l));
|
|
23330
23324
|
var g5 = /* @__PURE__ */ Object.freeze({
|
|
23331
23325
|
__proto__: null,
|
|
23332
23326
|
events: (t) => nr([_t(Gu(), (r, l) => {
|
|
@@ -23339,7 +23333,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
23339
23333
|
})])
|
|
23340
23334
|
}), qk = [Ds("channels", Hu(Eo.value, il([
|
|
23341
23335
|
vh("onReceive"),
|
|
23342
|
-
|
|
23336
|
+
st("schema", cu())
|
|
23343
23337
|
])))];
|
|
23344
23338
|
const Hc = xa({
|
|
23345
23339
|
fields: qk,
|
|
@@ -23520,7 +23514,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
23520
23514
|
const x = (L) => {
|
|
23521
23515
|
var V;
|
|
23522
23516
|
const j = (V = L.raw.pseudoElement) !== null && V !== void 0 ? V : "";
|
|
23523
|
-
return Jo(L.target, t) && Te(j) &&
|
|
23517
|
+
return Jo(L.target, t) && Te(j) && ot(Sv, L.raw.propertyName);
|
|
23524
23518
|
}, S = (L) => {
|
|
23525
23519
|
if (me(L) || x(L)) {
|
|
23526
23520
|
l.clear(), f.clear();
|
|
@@ -23715,7 +23709,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
23715
23709
|
var gM = [
|
|
23716
23710
|
$t("hotspot"),
|
|
23717
23711
|
$s("bubble"),
|
|
23718
|
-
|
|
23712
|
+
st("overrides", {}),
|
|
23719
23713
|
cg(),
|
|
23720
23714
|
Ir("placement", bc)
|
|
23721
23715
|
];
|
|
@@ -23731,10 +23725,10 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
23731
23725
|
var Av = [
|
|
23732
23726
|
$t("x"),
|
|
23733
23727
|
$t("y"),
|
|
23734
|
-
|
|
23735
|
-
|
|
23736
|
-
|
|
23737
|
-
|
|
23728
|
+
st("height", 0),
|
|
23729
|
+
st("width", 0),
|
|
23730
|
+
st("bubble", _v()),
|
|
23731
|
+
st("overrides", {}),
|
|
23738
23732
|
cg(),
|
|
23739
23733
|
Ir("placement", R0)
|
|
23740
23734
|
];
|
|
@@ -23788,8 +23782,8 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
23788
23782
|
$t("root"),
|
|
23789
23783
|
$s("bubble"),
|
|
23790
23784
|
cg(),
|
|
23791
|
-
|
|
23792
|
-
|
|
23785
|
+
st("overrides", {}),
|
|
23786
|
+
st("showAbove", !1),
|
|
23793
23787
|
Ir("placement", kw)
|
|
23794
23788
|
];
|
|
23795
23789
|
const pM = "\uFEFF", Tb = " ", M0 = { create: (t, r, l, f) => ({
|
|
@@ -24009,8 +24003,8 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24009
24003
|
$t("root"),
|
|
24010
24004
|
$s("bubble"),
|
|
24011
24005
|
cg(),
|
|
24012
|
-
|
|
24013
|
-
|
|
24006
|
+
st("overrides", {}),
|
|
24007
|
+
st("showAbove", !1),
|
|
24014
24008
|
Ir("placement", yp)
|
|
24015
24009
|
];
|
|
24016
24010
|
const dg = "link-layout", Bb = (t) => t.x + t.width, hf = (t, r) => t.x - r.width, $d = (t, r) => t.y - r.height + t.height, Nb = (t) => t.y, bm = (t, r, l) => ll(Bb(t), Nb(t), l.southeast(), gv(), "southeast", Sl(t, {
|
|
@@ -24047,7 +24041,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24047
24041
|
var Lb = [
|
|
24048
24042
|
$t("item"),
|
|
24049
24043
|
cg(),
|
|
24050
|
-
|
|
24044
|
+
st("overrides", {}),
|
|
24051
24045
|
Ir("placement", Q5)
|
|
24052
24046
|
], Vv = Gi("type", {
|
|
24053
24047
|
selection: Fv,
|
|
@@ -24064,7 +24058,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24064
24058
|
"placement"
|
|
24065
24059
|
])
|
|
24066
24060
|
], Aw = [
|
|
24067
|
-
|
|
24061
|
+
st("useFixed", dt),
|
|
24068
24062
|
$s("getBounds")
|
|
24069
24063
|
], F0 = [
|
|
24070
24064
|
Ds("anchor", Vv),
|
|
@@ -24162,7 +24156,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24162
24156
|
}, SC = (t, r, l) => {
|
|
24163
24157
|
const f = t.components(), b = ke(r, (E) => Q2(E).toArray());
|
|
24164
24158
|
pt(f, (E) => {
|
|
24165
|
-
|
|
24159
|
+
ot(b, E) || Uv(E);
|
|
24166
24160
|
});
|
|
24167
24161
|
const x = l(r), S = yn(f, x);
|
|
24168
24162
|
pt(S, (E) => {
|
|
@@ -24256,7 +24250,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24256
24250
|
bs("onClose"),
|
|
24257
24251
|
$t("isPartOf"),
|
|
24258
24252
|
$t("getAttachPoint"),
|
|
24259
|
-
|
|
24253
|
+
st("cloakVisibilityAttr", "data-precloak-visibility")
|
|
24260
24254
|
], H5 = /* @__PURE__ */ Object.freeze({
|
|
24261
24255
|
__proto__: null,
|
|
24262
24256
|
init: () => {
|
|
@@ -24277,8 +24271,8 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24277
24271
|
apis: Z5,
|
|
24278
24272
|
state: H5
|
|
24279
24273
|
}), mg = oe("dismiss.popups"), Om = oe("reposition.popups"), qv = oe("mouse.released"), Dw = il([
|
|
24280
|
-
|
|
24281
|
-
Ai("fireEventInstead", [
|
|
24274
|
+
st("isExtraPart", dt),
|
|
24275
|
+
Ai("fireEventInstead", [st("event", nm())])
|
|
24282
24276
|
]), Uc = (t) => {
|
|
24283
24277
|
const r = Ml("Dismissal", Dw, t);
|
|
24284
24278
|
return {
|
|
@@ -24290,7 +24284,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24290
24284
|
}
|
|
24291
24285
|
};
|
|
24292
24286
|
}, U5 = il([
|
|
24293
|
-
Ai("fireEventInstead", [
|
|
24287
|
+
Ai("fireEventInstead", [st("event", g0())]),
|
|
24294
24288
|
hu("doReposition")
|
|
24295
24289
|
]), Cp = (t) => {
|
|
24296
24290
|
const r = Ml("Reposition", U5, t);
|
|
@@ -24415,7 +24409,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24415
24409
|
};
|
|
24416
24410
|
var j5 = [
|
|
24417
24411
|
$t("getValue"),
|
|
24418
|
-
|
|
24412
|
+
st("setValue", le),
|
|
24419
24413
|
$s("initialValue"),
|
|
24420
24414
|
Ir("manager", {
|
|
24421
24415
|
setValue: gg,
|
|
@@ -24450,7 +24444,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24450
24444
|
dataset: Nw
|
|
24451
24445
|
})),
|
|
24452
24446
|
bs("onSetValue"),
|
|
24453
|
-
|
|
24447
|
+
st("resetOnDom", !1)
|
|
24454
24448
|
];
|
|
24455
24449
|
const kn = xa({
|
|
24456
24450
|
fields: Qw,
|
|
@@ -24527,7 +24521,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24527
24521
|
{ external: ["data"] },
|
|
24528
24522
|
{ optional: ["data"] },
|
|
24529
24523
|
{ group: ["data"] }
|
|
24530
|
-
]), U0 =
|
|
24524
|
+
]), U0 = st("factory", { sketch: At }), Vw = st("schema", []), gf = $t("name"), ym = Yi("pname", "pname", es((t) => "<alloy." + Pn(t.name) + ">"), cu()), bg = As("schema", () => [$s("preprocess")]), Vb = st("defaults", oe({})), _c = st("overrides", oe({})), Pp = fo([
|
|
24531
24525
|
U0,
|
|
24532
24526
|
Vw,
|
|
24533
24527
|
gf,
|
|
@@ -24660,10 +24654,10 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24660
24654
|
});
|
|
24661
24655
|
const WC = (t, r) => (t.length > 0 ? [tf("parts", t)] : []).concat([
|
|
24662
24656
|
$t("uid"),
|
|
24663
|
-
|
|
24664
|
-
|
|
24657
|
+
st("dom", {}),
|
|
24658
|
+
st("components", []),
|
|
24665
24659
|
dp("originalSpec"),
|
|
24666
|
-
|
|
24660
|
+
st("debug.sketcher", {})
|
|
24667
24661
|
]).concat(r), sy = (t, r, l, f, b) => {
|
|
24668
24662
|
const x = WC(f, b);
|
|
24669
24663
|
return Ml(t + " [SpecSchema]", il(x.concat(r)), l);
|
|
@@ -24680,15 +24674,15 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24680
24674
|
$t("name"),
|
|
24681
24675
|
$t("factory"),
|
|
24682
24676
|
$t("configFields"),
|
|
24683
|
-
|
|
24684
|
-
|
|
24677
|
+
st("apis", {}),
|
|
24678
|
+
st("extraApis", {})
|
|
24685
24679
|
]), ry = il([
|
|
24686
24680
|
$t("name"),
|
|
24687
24681
|
$t("factory"),
|
|
24688
24682
|
$t("configFields"),
|
|
24689
24683
|
$t("partFields"),
|
|
24690
|
-
|
|
24691
|
-
|
|
24684
|
+
st("apis", {}),
|
|
24685
|
+
st("extraApis", {})
|
|
24692
24686
|
]), $c = (t) => {
|
|
24693
24687
|
const r = Ml("Sketcher for " + t.name, xm, t), l = (x) => J5(r.name, r.configFields, r.factory, x), f = Bo(r.apis, dm), b = Bo(r.extraApis, (x, S) => k2(x, S));
|
|
24694
24688
|
return {
|
|
@@ -24725,7 +24719,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24725
24719
|
"select"
|
|
24726
24720
|
], Yw = (t, r, l) => {
|
|
24727
24721
|
(r.disabled() ? iy : Jw)(t, r);
|
|
24728
|
-
}, Kw = (t, r) => r.useNative === !0 &&
|
|
24722
|
+
}, Kw = (t, r) => r.useNative === !0 && ot(q0, Ss(t.element)), qC = (t) => q(t.element, "disabled"), GC = (t) => {
|
|
24729
24723
|
dn(t.element, "disabled", "disabled");
|
|
24730
24724
|
}, tE = (t) => {
|
|
24731
24725
|
ce(t.element, "disabled");
|
|
@@ -24760,7 +24754,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24760
24754
|
])
|
|
24761
24755
|
}), iE = [
|
|
24762
24756
|
zs("disabled", dt),
|
|
24763
|
-
|
|
24757
|
+
st("useNative", !0),
|
|
24764
24758
|
$s("disableClass"),
|
|
24765
24759
|
bs("onDisabled"),
|
|
24766
24760
|
bs("onEnabled")
|
|
@@ -24856,7 +24850,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24856
24850
|
return Ne(f, l);
|
|
24857
24851
|
}, Un = (t) => (r) => {
|
|
24858
24852
|
const l = r.raw;
|
|
24859
|
-
return
|
|
24853
|
+
return ot(t, l.which);
|
|
24860
24854
|
}, 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) => ({
|
|
24861
24855
|
matches: t,
|
|
24862
24856
|
classification: r
|
|
@@ -24896,8 +24890,8 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24896
24890
|
})(Ll || (Ll = {}));
|
|
24897
24891
|
const Bd = (t, r, l, f, b) => {
|
|
24898
24892
|
const x = () => t.concat([
|
|
24899
|
-
|
|
24900
|
-
_r("focusInside", "onFocus", Ug((L) =>
|
|
24893
|
+
st("focusManager", ka()),
|
|
24894
|
+
_r("focusInside", "onFocus", Ug((L) => ot([
|
|
24901
24895
|
"onFocus",
|
|
24902
24896
|
"onEnterOrSpace",
|
|
24903
24897
|
"onApi"
|
|
@@ -24941,9 +24935,9 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24941
24935
|
const r = [
|
|
24942
24936
|
$s("onEscape"),
|
|
24943
24937
|
$s("onEnter"),
|
|
24944
|
-
|
|
24945
|
-
|
|
24946
|
-
|
|
24938
|
+
st("selector", '[data-alloy-tabstop="true"]:not(:disabled)'),
|
|
24939
|
+
st("firstTabstop", 0),
|
|
24940
|
+
st("useTabstopAt", kt),
|
|
24947
24941
|
$s("visibilitySelector")
|
|
24948
24942
|
].concat([t]), l = (we, We) => {
|
|
24949
24943
|
const He = we.visibilitySelector.bind((ct) => _d(We, ct)).getOr(We);
|
|
@@ -24982,11 +24976,11 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24982
24976
|
};
|
|
24983
24977
|
var sx = ec(As("cyclic", dt)), Xb = ec(As("cyclic", kt));
|
|
24984
24978
|
const pf = (t, r, l) => (GO(t, l, wl()), Q.some(!0)), Ca = (t, r, l) => X0(l) && Un(Yt)(r.event) ? Q.none() : pf(t, r, l), Sm = (t, r) => Q.some(!0), cE = [
|
|
24985
|
-
|
|
24986
|
-
|
|
24987
|
-
|
|
24988
|
-
|
|
24989
|
-
|
|
24979
|
+
st("execute", Ca),
|
|
24980
|
+
st("useSpace", !1),
|
|
24981
|
+
st("useEnter", !0),
|
|
24982
|
+
st("useControlEnter", !1),
|
|
24983
|
+
st("useDown", !1)
|
|
24990
24984
|
], rx = (t, r, l) => l.execute(t, r, t.element), uE = (t, r, l, f) => {
|
|
24991
24985
|
const b = l.useSpace && !X0(t.element) ? Yt : [], x = l.useEnter ? Zt : [], S = l.useDown ? oo : [], E = b.concat(x).concat(S);
|
|
24992
24986
|
return [ms(Un(E), rx)].concat(l.useControlEnter ? [ms(pr([
|
|
@@ -25055,9 +25049,9 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25055
25049
|
});
|
|
25056
25050
|
}), BM = (t, r, l, f) => RM(t, r, l, f, 1), aZ = (t, r, l, f) => RM(t, r, l, f, -1), XJ = (t, r, l, f) => MM(t, r, l, f, -1), qJ = (t, r, l, f) => MM(t, r, l, f, 1), lZ = [
|
|
25057
25051
|
$t("selector"),
|
|
25058
|
-
|
|
25052
|
+
st("execute", Ca),
|
|
25059
25053
|
Gl("onEscape"),
|
|
25060
|
-
|
|
25054
|
+
st("captureTab", !1),
|
|
25061
25055
|
cm()
|
|
25062
25056
|
], cZ = (t, r, l) => {
|
|
25063
25057
|
Er(t.element, r.selector).each((f) => {
|
|
@@ -25096,13 +25090,13 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25096
25090
|
return j === b ? Q.none() : V(j);
|
|
25097
25091
|
}), zM = [
|
|
25098
25092
|
$t("selector"),
|
|
25099
|
-
|
|
25100
|
-
|
|
25093
|
+
st("getInitial", Q.none),
|
|
25094
|
+
st("execute", Ca),
|
|
25101
25095
|
Gl("onEscape"),
|
|
25102
|
-
|
|
25103
|
-
|
|
25104
|
-
|
|
25105
|
-
|
|
25096
|
+
st("executeOnMove", !1),
|
|
25097
|
+
st("allowVertical", !0),
|
|
25098
|
+
st("allowHorizontal", !0),
|
|
25099
|
+
st("cycles", !0)
|
|
25106
25100
|
], fZ = (t, r) => r.focusManager.get(t).bind((l) => _d(l, r.selector)), bE = (t, r, l) => fZ(t, l).bind((f) => l.execute(t, r, f)), mZ = (t, r, l) => {
|
|
25107
25101
|
r.getInitial(t).orThunk(() => Er(t.element, r.selector)).each((f) => {
|
|
25108
25102
|
r.focusManager.set(t, f);
|
|
@@ -25141,9 +25135,9 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25141
25135
|
$t("row"),
|
|
25142
25136
|
$t("cell")
|
|
25143
25137
|
]),
|
|
25144
|
-
|
|
25145
|
-
|
|
25146
|
-
|
|
25138
|
+
st("cycles", !0),
|
|
25139
|
+
st("previousSelector", Q.none),
|
|
25140
|
+
st("execute", Ca)
|
|
25147
25141
|
], n8 = (t, r, l) => {
|
|
25148
25142
|
r.previousSelector(t).orThunk(() => {
|
|
25149
25143
|
const b = r.selectors;
|
|
@@ -25173,8 +25167,8 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25173
25167
|
var l8 = Bd(OZ, fh.init, wZ, a8, () => Q.some(n8));
|
|
25174
25168
|
const c8 = [
|
|
25175
25169
|
$t("selector"),
|
|
25176
|
-
|
|
25177
|
-
|
|
25170
|
+
st("execute", Ca),
|
|
25171
|
+
st("moveOnTab", !1)
|
|
25178
25172
|
], u8 = (t, r, l) => l.focusManager.get(t).bind((f) => l.execute(t, r, f)), xZ = (t, r, l) => {
|
|
25179
25173
|
Er(t.element, r.selector).each((f) => {
|
|
25180
25174
|
r.focusManager.set(t, f);
|
|
@@ -25205,7 +25199,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25205
25199
|
Gl("onUp"),
|
|
25206
25200
|
Gl("onDown"),
|
|
25207
25201
|
Gl("onEscape"),
|
|
25208
|
-
|
|
25202
|
+
st("stopSpaceKeyup", !1),
|
|
25209
25203
|
$s("focusIn")
|
|
25210
25204
|
], SZ = (t, r, l) => [
|
|
25211
25205
|
ms(Un(Yt), l.onSpace),
|
|
@@ -25356,8 +25350,8 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25356
25350
|
})] : []))
|
|
25357
25351
|
}), lT = [
|
|
25358
25352
|
bs("onFocus"),
|
|
25359
|
-
|
|
25360
|
-
|
|
25353
|
+
st("stopMousedown", !1),
|
|
25354
|
+
st("ignore", !1)
|
|
25361
25355
|
];
|
|
25362
25356
|
const go = xa({
|
|
25363
25357
|
fields: lT,
|
|
@@ -25420,13 +25414,13 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25420
25414
|
dn(t.element, "aria-expanded", l);
|
|
25421
25415
|
};
|
|
25422
25416
|
var fx = [
|
|
25423
|
-
|
|
25417
|
+
st("selected", !1),
|
|
25424
25418
|
$s("toggleClass"),
|
|
25425
|
-
|
|
25419
|
+
st("toggleOnExecute", !0),
|
|
25426
25420
|
bs("onToggled"),
|
|
25427
25421
|
_r("aria", { mode: "none" }, Gi("mode", {
|
|
25428
25422
|
pressed: [
|
|
25429
|
-
|
|
25423
|
+
st("syncWithExpanded", !1),
|
|
25430
25424
|
Ir("update", E8)
|
|
25431
25425
|
],
|
|
25432
25426
|
checked: [Ir("update", FZ)],
|
|
@@ -25513,7 +25507,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25513
25507
|
$t("data"),
|
|
25514
25508
|
$t("components"),
|
|
25515
25509
|
$t("dom"),
|
|
25516
|
-
|
|
25510
|
+
st("hasSubmenu", !1),
|
|
25517
25511
|
$s("toggling"),
|
|
25518
25512
|
$s("role"),
|
|
25519
25513
|
xu.field("itemBehaviours", [
|
|
@@ -25522,10 +25516,10 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25522
25516
|
Xn,
|
|
25523
25517
|
kn
|
|
25524
25518
|
]),
|
|
25525
|
-
|
|
25526
|
-
|
|
25519
|
+
st("ignoreFocus", !1),
|
|
25520
|
+
st("domModification", {}),
|
|
25527
25521
|
Ir("builder", $E),
|
|
25528
|
-
|
|
25522
|
+
st("eventOrder", {})
|
|
25529
25523
|
], HZ = (t) => ({
|
|
25530
25524
|
dom: t.dom,
|
|
25531
25525
|
components: t.components,
|
|
@@ -25591,14 +25585,14 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25591
25585
|
$t("data"),
|
|
25592
25586
|
$t("components"),
|
|
25593
25587
|
$t("dom"),
|
|
25594
|
-
|
|
25595
|
-
|
|
25588
|
+
st("autofocus", !1),
|
|
25589
|
+
st("ignoreFocus", !1),
|
|
25596
25590
|
xu.field("widgetBehaviours", [
|
|
25597
25591
|
kn,
|
|
25598
25592
|
go,
|
|
25599
25593
|
Xn
|
|
25600
25594
|
]),
|
|
25601
|
-
|
|
25595
|
+
st("domModification", {}),
|
|
25602
25596
|
j0(DE()),
|
|
25603
25597
|
Ir("builder", D8)
|
|
25604
25598
|
], WZ = Gi("type", {
|
|
@@ -25650,7 +25644,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25650
25644
|
$t("items"),
|
|
25651
25645
|
$t("dom"),
|
|
25652
25646
|
$t("components"),
|
|
25653
|
-
|
|
25647
|
+
st("eventOrder", {}),
|
|
25654
25648
|
za("menuBehaviours", [
|
|
25655
25649
|
ue,
|
|
25656
25650
|
kn,
|
|
@@ -25668,19 +25662,19 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25668
25662
|
matrix: [
|
|
25669
25663
|
Ir("config", XZ),
|
|
25670
25664
|
$t("rowSelector"),
|
|
25671
|
-
|
|
25665
|
+
st("previousSelector", Q.none)
|
|
25672
25666
|
],
|
|
25673
25667
|
menu: [
|
|
25674
|
-
|
|
25668
|
+
st("moveOnTab", !0),
|
|
25675
25669
|
Ir("config", qZ)
|
|
25676
25670
|
]
|
|
25677
25671
|
})),
|
|
25678
25672
|
vk(),
|
|
25679
|
-
|
|
25680
|
-
|
|
25673
|
+
st("fakeFocus", !1),
|
|
25674
|
+
st("focusManager", ka()),
|
|
25681
25675
|
bs("onHighlight"),
|
|
25682
25676
|
bs("onDehighlight"),
|
|
25683
|
-
|
|
25677
|
+
st("showMenuRole", !0)
|
|
25684
25678
|
]), RE = oe("alloy.menu-focus"), KZ = (t, r) => {
|
|
25685
25679
|
const l = Oc(t.element, '[role="menuitemradio"][aria-checked="true"]');
|
|
25686
25680
|
pt(l, (f) => {
|
|
@@ -25861,7 +25855,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25861
25855
|
}), pe = (Ut, On) => {
|
|
25862
25856
|
const yo = ae(Ut);
|
|
25863
25857
|
Fs(yo, (Zo, eo) => {
|
|
25864
|
-
const Ao =
|
|
25858
|
+
const Ao = ot(On, eo);
|
|
25865
25859
|
dn(Zo.element, "aria-expanded", Ao);
|
|
25866
25860
|
});
|
|
25867
25861
|
}, Se = (Ut, On, yo) => Q.from(yo[0]).bind((Zo) => On.lookupMenu(Zo).bind((eo) => {
|
|
@@ -26009,27 +26003,27 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26009
26003
|
vh("onOpenSubmenu"),
|
|
26010
26004
|
bs("onRepositionMenu"),
|
|
26011
26005
|
bs("onCollapseMenu"),
|
|
26012
|
-
|
|
26006
|
+
st("highlightOnOpen", Ha.HighlightMenuAndItem),
|
|
26013
26007
|
tf("data", [
|
|
26014
26008
|
$t("primary"),
|
|
26015
26009
|
$t("menus"),
|
|
26016
26010
|
$t("expansions")
|
|
26017
26011
|
]),
|
|
26018
|
-
|
|
26012
|
+
st("fakeFocus", !1),
|
|
26019
26013
|
bs("onHighlightItem"),
|
|
26020
26014
|
bs("onDehighlightItem"),
|
|
26021
26015
|
bs("onHover"),
|
|
26022
26016
|
up(),
|
|
26023
26017
|
$t("dom"),
|
|
26024
|
-
|
|
26025
|
-
|
|
26018
|
+
st("navigateOnHover", !0),
|
|
26019
|
+
st("stayInDom", !1),
|
|
26026
26020
|
za("tmenuBehaviours", [
|
|
26027
26021
|
Xn,
|
|
26028
26022
|
ue,
|
|
26029
26023
|
Os,
|
|
26030
26024
|
wo
|
|
26031
26025
|
]),
|
|
26032
|
-
|
|
26026
|
+
st("eventOrder", {})
|
|
26033
26027
|
],
|
|
26034
26028
|
apis: {
|
|
26035
26029
|
collapseMenu: (t, r) => {
|
|
@@ -26184,11 +26178,11 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26184
26178
|
kn,
|
|
26185
26179
|
Hc
|
|
26186
26180
|
]),
|
|
26187
|
-
Ai("fireDismissalEventInstead", [
|
|
26188
|
-
Ai("fireRepositionEventInstead", [
|
|
26189
|
-
|
|
26190
|
-
|
|
26191
|
-
|
|
26181
|
+
Ai("fireDismissalEventInstead", [st("event", nm())]),
|
|
26182
|
+
Ai("fireRepositionEventInstead", [st("event", g0())]),
|
|
26183
|
+
st("getRelated", Q.none),
|
|
26184
|
+
st("isExtraPart", dt),
|
|
26185
|
+
st("eventOrder", Q.none)
|
|
26192
26186
|
],
|
|
26193
26187
|
factory: hT,
|
|
26194
26188
|
apis: {
|
|
@@ -26440,7 +26434,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26440
26434
|
"visible",
|
|
26441
26435
|
"hidden",
|
|
26442
26436
|
"clip"
|
|
26443
|
-
], s6 = (t) => vr(t).length > 0 && !
|
|
26437
|
+
], s6 = (t) => vr(t).length > 0 && !ot(o6, t), KE = (t) => {
|
|
26444
26438
|
if (So(t)) {
|
|
26445
26439
|
const r = Bt(t, "overflow-x"), l = Bt(t, "overflow-y");
|
|
26446
26440
|
return s6(r) || s6(l);
|
|
@@ -26490,16 +26484,16 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26490
26484
|
};
|
|
26491
26485
|
},
|
|
26492
26486
|
configFields: [
|
|
26493
|
-
|
|
26487
|
+
st("uid", void 0),
|
|
26494
26488
|
$t("dom"),
|
|
26495
|
-
|
|
26489
|
+
st("components", []),
|
|
26496
26490
|
xu.field("buttonBehaviours", [
|
|
26497
26491
|
go,
|
|
26498
26492
|
Xn
|
|
26499
26493
|
]),
|
|
26500
26494
|
$s("action"),
|
|
26501
26495
|
$s("role"),
|
|
26502
|
-
|
|
26496
|
+
st("eventOrder", {})
|
|
26503
26497
|
]
|
|
26504
26498
|
}), aV = (t) => {
|
|
26505
26499
|
const r = t.dom.attributes !== void 0 ? t.dom.attributes : [];
|
|
@@ -26534,7 +26528,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26534
26528
|
value: "true"
|
|
26535
26529
|
}])
|
|
26536
26530
|
})
|
|
26537
|
-
}), cV = [
|
|
26531
|
+
}), cV = [st("tabAttr", "data-alloy-tabstop")];
|
|
26538
26532
|
const zr = xa({
|
|
26539
26533
|
fields: cV,
|
|
26540
26534
|
name: "tabstopping",
|
|
@@ -26686,7 +26680,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26686
26680
|
}),
|
|
26687
26681
|
_t(Gu(), (S, E) => {
|
|
26688
26682
|
const D = E;
|
|
26689
|
-
D.universal ||
|
|
26683
|
+
D.universal || ot(D.channels, _T) && l(S);
|
|
26690
26684
|
}),
|
|
26691
26685
|
sf((S) => {
|
|
26692
26686
|
l(S);
|
|
@@ -26698,8 +26692,8 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26698
26692
|
}), n$ = [
|
|
26699
26693
|
$t("lazySink"),
|
|
26700
26694
|
$t("tooltipDom"),
|
|
26701
|
-
|
|
26702
|
-
|
|
26695
|
+
st("exclusive", !0),
|
|
26696
|
+
st("tooltipComponents", []),
|
|
26703
26697
|
zs("delayForShow", oe(300)),
|
|
26704
26698
|
zs("delayForHide", oe(300)),
|
|
26705
26699
|
zs("onSetup", le),
|
|
@@ -26709,7 +26703,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26709
26703
|
"children-keyboard-focus",
|
|
26710
26704
|
"children-normal"
|
|
26711
26705
|
]),
|
|
26712
|
-
|
|
26706
|
+
st("anchor", (t) => ({
|
|
26713
26707
|
type: "hotspot",
|
|
26714
26708
|
hotspot: t,
|
|
26715
26709
|
layouts: {
|
|
@@ -27482,7 +27476,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27482
27476
|
}, E = (j) => {
|
|
27483
27477
|
S().each((ne) => {
|
|
27484
27478
|
pt(j, (ae) => {
|
|
27485
|
-
Uo(ae.element, "width"),
|
|
27479
|
+
Uo(ae.element, "width"), Oe(ae.element) > ne.width && an(ae.element, "width", ne.width + "px");
|
|
27486
27480
|
});
|
|
27487
27481
|
});
|
|
27488
27482
|
};
|
|
@@ -27505,7 +27499,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27505
27499
|
});
|
|
27506
27500
|
}, Se = () => !i1(t) || !b.header.isPositionedAtTop(), qe = xl(LT.sketch({
|
|
27507
27501
|
text: j.text,
|
|
27508
|
-
level:
|
|
27502
|
+
level: ot([
|
|
27509
27503
|
"success",
|
|
27510
27504
|
"error",
|
|
27511
27505
|
"warning",
|
|
@@ -27662,20 +27656,20 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27662
27656
|
}, A6 = oe([
|
|
27663
27657
|
xr("type", "text"),
|
|
27664
27658
|
$s("data"),
|
|
27665
|
-
|
|
27666
|
-
|
|
27667
|
-
|
|
27668
|
-
|
|
27659
|
+
st("inputAttributes", {}),
|
|
27660
|
+
st("inputStyles", {}),
|
|
27661
|
+
st("tag", "input"),
|
|
27662
|
+
st("inputClasses", []),
|
|
27669
27663
|
bs("onSetValue"),
|
|
27670
27664
|
zs("fromInputValue", At),
|
|
27671
27665
|
zs("toInputValue", At),
|
|
27672
|
-
|
|
27673
|
-
|
|
27666
|
+
st("styles", {}),
|
|
27667
|
+
st("eventOrder", {}),
|
|
27674
27668
|
za("inputBehaviours", [
|
|
27675
27669
|
kn,
|
|
27676
27670
|
go
|
|
27677
27671
|
]),
|
|
27678
|
-
|
|
27672
|
+
st("selectOnFocus", !0)
|
|
27679
27673
|
]), D6 = (t) => Gt([go.config({
|
|
27680
27674
|
onFocus: t.selectOnFocus ? (r) => {
|
|
27681
27675
|
const l = r.element, f = Cd(l);
|
|
@@ -27958,7 +27952,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27958
27952
|
components: RV,
|
|
27959
27953
|
items: l
|
|
27960
27954
|
};
|
|
27961
|
-
}, ta = Wi("type"), S$ = Wi("name"), k$ = Wi("label"), Mp = Wi("text"), Z6 = Wi("title"), V6 = Wi("icon"), Mx = Wi("value"), C$ = hu("fetch"), z6 = hu("getSubmenuItems"), wy = hu("onAction"), ZV = hu("onItemAction"), d1 = zs("onSetup", () => le), VV = ti("name"), h1 = ti("text"), H6 = ti("role"), Id = ti("icon"), xy = ti("tooltip"), T$ = ti("label"), _$ = ti("shortcut"), zV = ah("select"), Bx = wa("active", !1), E$ = wa("borderless", !1), wf = wa("enabled", !0), XT = wa("primary", !1), U6 = (t) =>
|
|
27955
|
+
}, ta = Wi("type"), S$ = Wi("name"), k$ = Wi("label"), Mp = Wi("text"), Z6 = Wi("title"), V6 = Wi("icon"), Mx = Wi("value"), C$ = hu("fetch"), z6 = hu("getSubmenuItems"), wy = hu("onAction"), ZV = hu("onItemAction"), d1 = zs("onSetup", () => le), VV = ti("name"), h1 = ti("text"), H6 = ti("role"), Id = ti("icon"), xy = ti("tooltip"), T$ = ti("label"), _$ = ti("shortcut"), zV = ah("select"), Bx = wa("active", !1), E$ = wa("borderless", !1), wf = wa("enabled", !0), XT = wa("primary", !1), U6 = (t) => st("columns", t), $$ = st("meta", {}), P$ = zs("onAction", le), Sy = (t) => xr("type", t), qT = (t) => Yi("name", "name", es(() => Pn(`${t}-name`)), pn), W6 = (t) => Yi("value", "value", es(() => Pn(`${t}-value`)), cu()), j6 = fo([
|
|
27962
27956
|
ta,
|
|
27963
27957
|
h1
|
|
27964
27958
|
]), HV = (t) => Vr("separatormenuitem", j6, t), UV = fo([
|
|
@@ -28103,7 +28097,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
28103
28097
|
ta,
|
|
28104
28098
|
Wi("fancytype"),
|
|
28105
28099
|
P$
|
|
28106
|
-
], KV = [
|
|
28100
|
+
], KV = [st("initData", {})].concat(e7), JV = [
|
|
28107
28101
|
ah("select"),
|
|
28108
28102
|
ee("initData", {}, [
|
|
28109
28103
|
wa("allowCustomColors", !0),
|
|
@@ -28204,7 +28198,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
28204
28198
|
return;
|
|
28205
28199
|
}
|
|
28206
28200
|
const { contextType: f, shouldDisable: b } = t();
|
|
28207
|
-
f === "mode" && !
|
|
28201
|
+
f === "mode" && !ot(l7, l) || zn.set(r, b);
|
|
28208
28202
|
}
|
|
28209
28203
|
}
|
|
28210
28204
|
}
|
|
@@ -28449,7 +28443,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
28449
28443
|
case "cardimage":
|
|
28450
28444
|
return d7(l.src, l.classes, l.alt);
|
|
28451
28445
|
case "cardtext":
|
|
28452
|
-
const b = l.name.exists((x) =>
|
|
28446
|
+
const b = l.name.exists((x) => ot(r.cardText.highlightOn, x)) ? Q.from(r.cardText.matchText).getOr("") : "";
|
|
28453
28447
|
return V$(m7(l.text, b), l.classes);
|
|
28454
28448
|
}
|
|
28455
28449
|
}), uz = (t, r, l, f) => {
|
|
@@ -28660,7 +28654,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
28660
28654
|
var Bp = tinymce.util.Tools.resolve("tinymce.util.LocalStorage");
|
|
28661
28655
|
const Hx = {}, P7 = (t, r = 10) => {
|
|
28662
28656
|
const l = Bp.getItem(t), f = w(l) ? JSON.parse(l) : [], x = ((L) => r - L.length < 0 ? L.slice(0, r) : L)(f), S = (L) => {
|
|
28663
|
-
|
|
28657
|
+
be(x, L).each(E), x.unshift(L), x.length > r && x.pop(), Bp.setItem(t, JSON.stringify(x));
|
|
28664
28658
|
}, E = (L) => {
|
|
28665
28659
|
x.splice(L, 1);
|
|
28666
28660
|
};
|
|
@@ -29384,7 +29378,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29384
29378
|
const S = Bi.getCoupled(l, "sandbox");
|
|
29385
29379
|
return (_s.isOpen(S) ? dH : r3)(t, r, l, S, f, b, x);
|
|
29386
29380
|
}, hH = (t, r, l) => {
|
|
29387
|
-
const f = Os.getCurrent(r).getOr(r), b =
|
|
29381
|
+
const f = Os.getCurrent(r).getOr(r), b = Oe(t.element);
|
|
29388
29382
|
l ? an(f.element, "min-width", b + "px") : he(f.element, b);
|
|
29389
29383
|
}, tB = (t, r) => t.getSystem().getByUid(r.uid + "-" + hP()).map((l) => () => Eo.value(l)).getOrThunk(() => r.lazySink.fold(() => () => Eo.error(new Error("No internal sink is specified, nor could an external sink be found")), (l) => () => l(t))), nB = (t) => {
|
|
29390
29384
|
_s.getState(t).each((r) => {
|
|
@@ -29431,7 +29425,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29431
29425
|
const r = Bi.getCoupled(t, "sandbox");
|
|
29432
29426
|
nB(r);
|
|
29433
29427
|
}, Ry = () => [
|
|
29434
|
-
|
|
29428
|
+
st("sandboxClasses", []),
|
|
29435
29429
|
xu.field("sandboxBehaviours", [
|
|
29436
29430
|
Os,
|
|
29437
29431
|
Hc,
|
|
@@ -29443,8 +29437,8 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29443
29437
|
$t("fetch"),
|
|
29444
29438
|
bs("onOpen"),
|
|
29445
29439
|
Gl("onExecute"),
|
|
29446
|
-
|
|
29447
|
-
|
|
29440
|
+
st("getHotspot", Q.some),
|
|
29441
|
+
st("getAnchorOverrides", oe({})),
|
|
29448
29442
|
cg(),
|
|
29449
29443
|
za("dropdownBehaviours", [
|
|
29450
29444
|
Go,
|
|
@@ -29453,17 +29447,17 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29453
29447
|
go
|
|
29454
29448
|
]),
|
|
29455
29449
|
$t("toggleClass"),
|
|
29456
|
-
|
|
29450
|
+
st("eventOrder", {}),
|
|
29457
29451
|
$s("lazySink"),
|
|
29458
|
-
|
|
29459
|
-
|
|
29452
|
+
st("matchWidth", !1),
|
|
29453
|
+
st("useMinWidth", !1),
|
|
29460
29454
|
$s("role"),
|
|
29461
29455
|
$s("listRole")
|
|
29462
29456
|
].concat(Ry())), mH = oe([
|
|
29463
29457
|
td({
|
|
29464
29458
|
schema: [
|
|
29465
29459
|
up(),
|
|
29466
|
-
|
|
29460
|
+
st("fakeFocus", !1)
|
|
29467
29461
|
],
|
|
29468
29462
|
name: "menu",
|
|
29469
29463
|
defaults: (t) => ({ onExecute: t.onExecute })
|
|
@@ -29796,7 +29790,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29796
29790
|
}
|
|
29797
29791
|
]);
|
|
29798
29792
|
return { fireIfReady: (L, V) => jt(E, V).bind((j) => j(L)) };
|
|
29799
|
-
}, Xx = (t) => t.raw.which === Ie[0] && !
|
|
29793
|
+
}, Xx = (t) => t.raw.which === Ie[0] && !ot([
|
|
29800
29794
|
"input",
|
|
29801
29795
|
"textarea"
|
|
29802
29796
|
], Ss(t.target)) && !_m(t.target, '[contenteditable="true"]'), CH = (t, r) => {
|
|
@@ -29981,11 +29975,11 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
29981
29975
|
};
|
|
29982
29976
|
},
|
|
29983
29977
|
configFields: [
|
|
29984
|
-
|
|
29978
|
+
st("components", []),
|
|
29985
29979
|
za("containerBehaviours", []),
|
|
29986
|
-
|
|
29987
|
-
|
|
29988
|
-
|
|
29980
|
+
st("events", {}),
|
|
29981
|
+
st("domModification", {}),
|
|
29982
|
+
st("eventOrder", {})
|
|
29989
29983
|
]
|
|
29990
29984
|
}), OP = (t) => {
|
|
29991
29985
|
const r = (we) => oi(t.element).fold(kt, (We) => Jo(we, We)), l = Np(), f = (we, We) => l.find(r, we, We), b = CH(t.element, {
|
|
@@ -30094,7 +30088,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30094
30088
|
},
|
|
30095
30089
|
components: Ue(t.items, r.interpreter)
|
|
30096
30090
|
}), PH = oe([
|
|
30097
|
-
|
|
30091
|
+
st("prefix", "form-field"),
|
|
30098
30092
|
za("fieldBehaviours", [
|
|
30099
30093
|
Os,
|
|
30100
30094
|
kn
|
|
@@ -30337,7 +30331,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30337
30331
|
"textarea"
|
|
30338
30332
|
], xB = (t) => {
|
|
30339
30333
|
const r = Ss(t);
|
|
30340
|
-
return
|
|
30334
|
+
return ot(LH, r);
|
|
30341
30335
|
}, yP = (t, r) => {
|
|
30342
30336
|
const l = r.getRoot(t).getOr(t.element);
|
|
30343
30337
|
Yr(l, r.invalidClass), r.notify.each((f) => {
|
|
@@ -30374,19 +30368,19 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30374
30368
|
})] : []))).getOr({})
|
|
30375
30369
|
}), Ly = [
|
|
30376
30370
|
$t("invalidClass"),
|
|
30377
|
-
|
|
30371
|
+
st("getRoot", Q.none),
|
|
30378
30372
|
Ai("notify", [
|
|
30379
|
-
|
|
30380
|
-
|
|
30381
|
-
|
|
30373
|
+
st("aria", "alert"),
|
|
30374
|
+
st("getContainer", Q.none),
|
|
30375
|
+
st("validHtml", ""),
|
|
30382
30376
|
bs("onValid"),
|
|
30383
30377
|
bs("onInvalid"),
|
|
30384
30378
|
bs("onValidate")
|
|
30385
30379
|
]),
|
|
30386
30380
|
Ai("validator", [
|
|
30387
30381
|
$t("validate"),
|
|
30388
|
-
|
|
30389
|
-
|
|
30382
|
+
st("onEvent", "input"),
|
|
30383
|
+
st("validateOnLoad", !0)
|
|
30390
30384
|
])
|
|
30391
30385
|
];
|
|
30392
30386
|
const xg = xa({
|
|
@@ -30737,7 +30731,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30737
30731
|
const S = y3(r, x, l, f, b);
|
|
30738
30732
|
return p3(r) - p3(t) + S;
|
|
30739
30733
|
}, iU = (t, r, l, f) => {
|
|
30740
|
-
const b = Qp(l), x = HP(t, f.getSpectrum(t), b, f.getLeftEdge(t), f.getRightEdge(t), l), S =
|
|
30734
|
+
const b = Qp(l), x = HP(t, f.getSpectrum(t), b, f.getLeftEdge(t), f.getRightEdge(t), l), S = Oe(r.element) / 2;
|
|
30741
30735
|
an(r.element, "left", x - S + "px");
|
|
30742
30736
|
}, GB = qB(-1), YB = qB(1), UP = Q.none, KB = Q.none, qc = {
|
|
30743
30737
|
"top-left": Q.none(),
|
|
@@ -30859,7 +30853,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30859
30853
|
const l = fO(r), f = m1(r);
|
|
30860
30854
|
k3(t, C3(l, f));
|
|
30861
30855
|
}, bU = (t) => TP(t), nN = (t, r, l, f) => {
|
|
30862
|
-
const b = Qp(l), x = HP(t, f.getSpectrum(t), b.x, f.getLeftEdge(t), f.getRightEdge(t), l), S = x3(t, f.getSpectrum(t), b.y, f.getTopEdge(t), f.getBottomEdge(t), l), E =
|
|
30856
|
+
const b = Qp(l), x = HP(t, f.getSpectrum(t), b.x, f.getLeftEdge(t), f.getRightEdge(t), l), S = x3(t, f.getSpectrum(t), b.y, f.getTopEdge(t), f.getBottomEdge(t), l), E = Oe(r.element) / 2, D = ei(r.element) / 2;
|
|
30863
30857
|
an(r.element, "left", x - E + "px"), an(r.element, "top", S - D + "px");
|
|
30864
30858
|
}, oN = Ph(-1, !1), GP = Ph(1, !1), _3 = Ph(-1, !0), rS = Ph(1, !0), iS = {
|
|
30865
30859
|
"top-left": Q.some(GH),
|
|
@@ -30885,36 +30879,36 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30885
30879
|
edgeActions: iS
|
|
30886
30880
|
});
|
|
30887
30881
|
const rN = [
|
|
30888
|
-
|
|
30889
|
-
|
|
30890
|
-
|
|
30891
|
-
|
|
30892
|
-
|
|
30893
|
-
|
|
30894
|
-
|
|
30895
|
-
|
|
30896
|
-
|
|
30882
|
+
st("stepSize", 1),
|
|
30883
|
+
st("speedMultiplier", 10),
|
|
30884
|
+
st("onChange", le),
|
|
30885
|
+
st("onChoose", le),
|
|
30886
|
+
st("onInit", le),
|
|
30887
|
+
st("onDragStart", le),
|
|
30888
|
+
st("onDragEnd", le),
|
|
30889
|
+
st("snapToGrid", !1),
|
|
30890
|
+
st("rounded", !0),
|
|
30897
30891
|
$s("snapStart"),
|
|
30898
30892
|
Ds("model", Gi("mode", {
|
|
30899
30893
|
x: [
|
|
30900
|
-
|
|
30901
|
-
|
|
30894
|
+
st("minX", 0),
|
|
30895
|
+
st("maxX", 100),
|
|
30902
30896
|
As("value", (t) => In(t.mode.minX)),
|
|
30903
30897
|
$t("getInitialValue"),
|
|
30904
30898
|
Ir("manager", JB)
|
|
30905
30899
|
],
|
|
30906
30900
|
y: [
|
|
30907
|
-
|
|
30908
|
-
|
|
30901
|
+
st("minY", 0),
|
|
30902
|
+
st("maxY", 100),
|
|
30909
30903
|
As("value", (t) => In(t.mode.minY)),
|
|
30910
30904
|
$t("getInitialValue"),
|
|
30911
30905
|
Ir("manager", mU)
|
|
30912
30906
|
],
|
|
30913
30907
|
xy: [
|
|
30914
|
-
|
|
30915
|
-
|
|
30916
|
-
|
|
30917
|
-
|
|
30908
|
+
st("minX", 0),
|
|
30909
|
+
st("maxX", 100),
|
|
30910
|
+
st("minY", 0),
|
|
30911
|
+
st("maxY", 100),
|
|
30918
30912
|
As("value", (t) => In({
|
|
30919
30913
|
x: t.mode.minX,
|
|
30920
30914
|
y: t.mode.minY
|
|
@@ -31475,8 +31469,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31475
31469
|
name: "ColourPicker",
|
|
31476
31470
|
configFields: [
|
|
31477
31471
|
$t("dom"),
|
|
31478
|
-
|
|
31479
|
-
|
|
31472
|
+
st("onValidHex", le),
|
|
31473
|
+
st("onInvalidHex", le)
|
|
31480
31474
|
],
|
|
31481
31475
|
factory: b
|
|
31482
31476
|
});
|
|
@@ -31485,8 +31479,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31485
31479
|
memento: (t) => Os.config({ find: t.getOpt }),
|
|
31486
31480
|
childAt: (t) => Os.config({ find: (r) => Al(r.element, t).bind((l) => r.getSystem().getByDom(l).toOptional()) })
|
|
31487
31481
|
}, tA = fo([
|
|
31488
|
-
|
|
31489
|
-
|
|
31482
|
+
st("preprocess", At),
|
|
31483
|
+
st("postprocess", At)
|
|
31490
31484
|
]), mN = (t, r) => {
|
|
31491
31485
|
const l = Ml("RepresentingConfigs.memento processors", tA, r);
|
|
31492
31486
|
return kn.config({
|
|
@@ -31891,7 +31885,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31891
31885
|
height: S.toString() + "px"
|
|
31892
31886
|
};
|
|
31893
31887
|
}, FU = (t, r, l) => {
|
|
31894
|
-
const f =
|
|
31888
|
+
const f = Oe(t), b = ei(t);
|
|
31895
31889
|
return Math.min(f / r, b / l, 1);
|
|
31896
31890
|
}, cA = (t, r) => {
|
|
31897
31891
|
const l = In(r.getOr({ url: "" })), f = Qs({
|
|
@@ -31917,7 +31911,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31917
31911
|
const qe = FU(D.element, ne, ae);
|
|
31918
31912
|
V.zoom = qe;
|
|
31919
31913
|
}
|
|
31920
|
-
const Se = QU(
|
|
31914
|
+
const Se = QU(Oe(D.element), ei(D.element), ne, ae, V.zoom);
|
|
31921
31915
|
b.getOpt(D).each((qe) => {
|
|
31922
31916
|
ws(qe.element, Se);
|
|
31923
31917
|
});
|
|
@@ -32310,8 +32304,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
32310
32304
|
go,
|
|
32311
32305
|
kn
|
|
32312
32306
|
]),
|
|
32313
|
-
|
|
32314
|
-
|
|
32307
|
+
st("selectClasses", []),
|
|
32308
|
+
st("selectAttributes", {}),
|
|
32315
32309
|
$s("data")
|
|
32316
32310
|
],
|
|
32317
32311
|
factory: gA
|
|
@@ -32368,11 +32362,11 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
32368
32362
|
])
|
|
32369
32363
|
});
|
|
32370
32364
|
}, GU = oe([
|
|
32371
|
-
|
|
32372
|
-
|
|
32365
|
+
st("field1Name", "field1"),
|
|
32366
|
+
st("field2Name", "field2"),
|
|
32373
32367
|
vh("onLockedChange"),
|
|
32374
32368
|
Oh(["lockClass"]),
|
|
32375
|
-
|
|
32369
|
+
st("locked", !1),
|
|
32376
32370
|
xu.field("coupledFieldBehaviours", [
|
|
32377
32371
|
Os,
|
|
32378
32372
|
kn
|
|
@@ -32914,11 +32908,11 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
32914
32908
|
bs("onStartShrink"),
|
|
32915
32909
|
bs("onGrown"),
|
|
32916
32910
|
bs("onStartGrow"),
|
|
32917
|
-
|
|
32911
|
+
st("expanded", !1),
|
|
32918
32912
|
Ds("dimension", Gi("property", {
|
|
32919
32913
|
width: [
|
|
32920
32914
|
Ir("property", "width"),
|
|
32921
|
-
Ir("getDimension", (t) =>
|
|
32915
|
+
Ir("getDimension", (t) => Oe(t) + "px")
|
|
32922
32916
|
],
|
|
32923
32917
|
height: [
|
|
32924
32918
|
Ir("property", "height"),
|
|
@@ -33322,14 +33316,14 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33322
33316
|
Ds("stream", Gi("mode", {
|
|
33323
33317
|
throttle: [
|
|
33324
33318
|
$t("delay"),
|
|
33325
|
-
|
|
33319
|
+
st("stopEvent", !0),
|
|
33326
33320
|
Ir("streams", {
|
|
33327
33321
|
setup: vW,
|
|
33328
33322
|
state: eL
|
|
33329
33323
|
})
|
|
33330
33324
|
]
|
|
33331
33325
|
})),
|
|
33332
|
-
|
|
33326
|
+
st("event", "input"),
|
|
33333
33327
|
$s("cancelEvent"),
|
|
33334
33328
|
vh("onStream")
|
|
33335
33329
|
];
|
|
@@ -33496,27 +33490,27 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33496
33490
|
}, kW = oe([
|
|
33497
33491
|
$s("lazySink"),
|
|
33498
33492
|
$t("fetch"),
|
|
33499
|
-
|
|
33500
|
-
|
|
33493
|
+
st("minChars", 5),
|
|
33494
|
+
st("responseTime", 1e3),
|
|
33501
33495
|
bs("onOpen"),
|
|
33502
|
-
|
|
33503
|
-
|
|
33504
|
-
|
|
33505
|
-
|
|
33496
|
+
st("getHotspot", Q.some),
|
|
33497
|
+
st("getAnchorOverrides", oe({})),
|
|
33498
|
+
st("layouts", Q.none()),
|
|
33499
|
+
st("eventOrder", {}),
|
|
33506
33500
|
ee("model", {}, [
|
|
33507
|
-
|
|
33508
|
-
|
|
33509
|
-
|
|
33501
|
+
st("getDisplayText", (t) => t.meta !== void 0 && t.meta.text !== void 0 ? t.meta.text : t.value),
|
|
33502
|
+
st("selectsOver", !0),
|
|
33503
|
+
st("populateFromBrowse", !0)
|
|
33510
33504
|
]),
|
|
33511
33505
|
bs("onSetValue"),
|
|
33512
33506
|
Gl("onExecute"),
|
|
33513
33507
|
bs("onItemExecute"),
|
|
33514
|
-
|
|
33515
|
-
|
|
33516
|
-
|
|
33517
|
-
|
|
33518
|
-
|
|
33519
|
-
|
|
33508
|
+
st("inputClasses", []),
|
|
33509
|
+
st("inputAttributes", {}),
|
|
33510
|
+
st("inputStyles", {}),
|
|
33511
|
+
st("matchWidth", !0),
|
|
33512
|
+
st("useMinWidth", !1),
|
|
33513
|
+
st("dismissOnBlur", !0),
|
|
33520
33514
|
Oh(["openClass"]),
|
|
33521
33515
|
$s("initialData"),
|
|
33522
33516
|
$s("listRole"),
|
|
@@ -34477,7 +34471,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34477
34471
|
return FE(t) ? FA.concat(l) : l;
|
|
34478
34472
|
}).getOr(FA), XW = (t) => {
|
|
34479
34473
|
const r = rs(t);
|
|
34480
|
-
return r.length === 1 &&
|
|
34474
|
+
return r.length === 1 && ot(r, "title");
|
|
34481
34475
|
}, ML = (t, r, l) => ({
|
|
34482
34476
|
...t,
|
|
34483
34477
|
type: "formatter",
|
|
@@ -34756,9 +34750,9 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34756
34750
|
], (xt) => xt.destroy());
|
|
34757
34751
|
});
|
|
34758
34752
|
}, hl = CM, Cg = Hb, uj = oe([
|
|
34759
|
-
|
|
34753
|
+
st("shell", !1),
|
|
34760
34754
|
$t("makeItem"),
|
|
34761
|
-
|
|
34755
|
+
st("setupItem", le),
|
|
34762
34756
|
xu.field("listBehaviours", [wo])
|
|
34763
34757
|
]), YA = Ec({
|
|
34764
34758
|
name: "items",
|
|
@@ -34801,7 +34795,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34801
34795
|
}
|
|
34802
34796
|
}), Uy = oe([
|
|
34803
34797
|
$t("dom"),
|
|
34804
|
-
|
|
34798
|
+
st("shell", !0),
|
|
34805
34799
|
za("toolbarBehaviours", [wo])
|
|
34806
34800
|
]), Qee = oe([Ec({
|
|
34807
34801
|
name: "groups",
|
|
@@ -34860,12 +34854,12 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34860
34854
|
const we = L - b + D + ne;
|
|
34861
34855
|
sh(x.left, we, l);
|
|
34862
34856
|
}
|
|
34863
|
-
}, e_ = (t, r) =>
|
|
34857
|
+
}, e_ = (t, r) => ot(mr.getModes(t), r), t_ = (t) => {
|
|
34864
34858
|
const r = (f) => Bc(f) + (parseInt(Bt(f, "margin-top"), 10) || 0) + (parseInt(Bt(f, "margin-bottom"), 10) || 0), l = t.element;
|
|
34865
34859
|
Ra(l).each((f) => {
|
|
34866
34860
|
const b = "padding-" + mr.getModes(t)[0];
|
|
34867
34861
|
if (mr.isDocked(t)) {
|
|
34868
|
-
const x =
|
|
34862
|
+
const x = Oe(f);
|
|
34869
34863
|
an(l, "width", x + "px"), an(f, b, r(l) + "px");
|
|
34870
34864
|
} else
|
|
34871
34865
|
Uo(l, "width"), Uo(f, b);
|
|
@@ -35086,7 +35080,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
35086
35080
|
$t("uid"),
|
|
35087
35081
|
$t("onEscape"),
|
|
35088
35082
|
$t("backstage"),
|
|
35089
|
-
|
|
35083
|
+
st("onSetup", le)
|
|
35090
35084
|
],
|
|
35091
35085
|
apis: {
|
|
35092
35086
|
focus: (t, r) => {
|
|
@@ -35280,7 +35274,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
35280
35274
|
Vn(r, Xy, { width: Zs(r.element, "width").getOr("") });
|
|
35281
35275
|
},
|
|
35282
35276
|
onStartShrink: (r) => {
|
|
35283
|
-
Vn(r, Xy, { width:
|
|
35277
|
+
Vn(r, Xy, { width: Oe(r.element) + "px" });
|
|
35284
35278
|
}
|
|
35285
35279
|
}),
|
|
35286
35280
|
wo.config({}),
|
|
@@ -35452,7 +35446,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
35452
35446
|
an(b.element, "visibility", "hidden");
|
|
35453
35447
|
const S = f.concat([x]), E = Hj(S);
|
|
35454
35448
|
l([]), h9(b, S);
|
|
35455
|
-
const D =
|
|
35449
|
+
const D = Oe(b.element), L = zj(D, r.builtGroups.get(), (V) => Math.ceil(V.element.dom.getBoundingClientRect().width), x);
|
|
35456
35450
|
L.extra.length === 0 ? (wo.remove(b, x), l([])) : (h9(b, L.within), l(L.extra)), Uo(b.element, "visibility"), ba(b.element), E.each(go.focus);
|
|
35457
35451
|
}, Wj = oe([
|
|
35458
35452
|
za("splitToolbarBehaviours", [Bi]),
|
|
@@ -35483,7 +35477,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
35483
35477
|
$t("lazySink"),
|
|
35484
35478
|
hu("fetch"),
|
|
35485
35479
|
ah("getBounds"),
|
|
35486
|
-
Ai("fireDismissalEventInstead", [
|
|
35480
|
+
Ai("fireDismissalEventInstead", [st("event", nm())]),
|
|
35487
35481
|
cg(),
|
|
35488
35482
|
bs("onToggled")
|
|
35489
35483
|
]), Zd = oe([
|
|
@@ -37251,8 +37245,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37251
37245
|
$t("toggleClass"),
|
|
37252
37246
|
$t("fetch"),
|
|
37253
37247
|
vh("onExecute"),
|
|
37254
|
-
|
|
37255
|
-
|
|
37248
|
+
st("getHotspot", Q.some),
|
|
37249
|
+
st("getAnchorOverrides", oe({})),
|
|
37256
37250
|
cg(),
|
|
37257
37251
|
vh("onItemExecute"),
|
|
37258
37252
|
$s("lazySink"),
|
|
@@ -37263,9 +37257,9 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37263
37257
|
Xn,
|
|
37264
37258
|
go
|
|
37265
37259
|
]),
|
|
37266
|
-
|
|
37267
|
-
|
|
37268
|
-
|
|
37260
|
+
st("matchWidth", !1),
|
|
37261
|
+
st("useMinWidth", !1),
|
|
37262
|
+
st("eventOrder", {}),
|
|
37269
37263
|
$s("role"),
|
|
37270
37264
|
$s("listRole")
|
|
37271
37265
|
].concat(Ry())), GX = Tl({
|
|
@@ -38079,9 +38073,9 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
38079
38073
|
_t(C_, (l, f) => {
|
|
38080
38074
|
const b = l.element;
|
|
38081
38075
|
Uo(b, "width");
|
|
38082
|
-
const x =
|
|
38076
|
+
const x = Oe(b);
|
|
38083
38077
|
Uo(b, "left"), Uo(b, "right"), Uo(b, "max-width"), ni.setContent(l, f.event.contents), mi(b, T_);
|
|
38084
|
-
const S =
|
|
38078
|
+
const S = Oe(b);
|
|
38085
38079
|
an(b, "transition", "none"), ni.reposition(l), Uo(b, "transition"), an(b, "width", x + "px"), f.event.focus.fold(() => ID(l), (E) => {
|
|
38086
38080
|
bu(E), Yl(b).isNone() && ID(l);
|
|
38087
38081
|
}), setTimeout(() => {
|
|
@@ -39557,16 +39551,16 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
39557
39551
|
bs("onSensor"),
|
|
39558
39552
|
$t("leftAttr"),
|
|
39559
39553
|
$t("topAttr"),
|
|
39560
|
-
|
|
39561
|
-
|
|
39554
|
+
st("lazyViewport", Ui),
|
|
39555
|
+
st("mustSnap", !1)
|
|
39562
39556
|
]);
|
|
39563
39557
|
const Q_ = [
|
|
39564
|
-
|
|
39558
|
+
st("useFixed", dt),
|
|
39565
39559
|
$t("blockerClass"),
|
|
39566
|
-
|
|
39567
|
-
|
|
39568
|
-
|
|
39569
|
-
|
|
39560
|
+
st("getTarget", At),
|
|
39561
|
+
st("onDrag", le),
|
|
39562
|
+
st("repositionTarget", !0),
|
|
39563
|
+
st("onDrop", le),
|
|
39570
39564
|
zs("getBounds", Ui),
|
|
39571
39565
|
iQ
|
|
39572
39566
|
], TG = (t) => $i(Zs(t, "left"), Zs(t, "top"), Zs(t, "position"), (r, l, f) => (f === "fixed" ? xO : I_)(parseInt(r, 10), parseInt(l, 10))).getOrThunk(() => {
|
|
@@ -39949,7 +39943,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
39949
39943
|
const x = { height: x_(f + r.top, IE(t), py(t)) };
|
|
39950
39944
|
return l === x1.Both && (x.width = x_(b + r.left, px(t), r1(t))), x;
|
|
39951
39945
|
}, gQ = (t, r, l) => {
|
|
39952
|
-
const f = Ot.fromDom(t.getContainer()), b = VG(t, r, l, ei(f),
|
|
39946
|
+
const f = Ot.fromDom(t.getContainer()), b = VG(t, r, l, ei(f), Oe(f));
|
|
39953
39947
|
Fs(b, (x, S) => {
|
|
39954
39948
|
_e(x) && an(f, S, MD(x));
|
|
39955
39949
|
}), Oz(t);
|
|
@@ -40391,9 +40385,9 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40391
40385
|
$t("lazySink"),
|
|
40392
40386
|
$s("dragBlockClass"),
|
|
40393
40387
|
zs("getBounds", Ui),
|
|
40394
|
-
|
|
40395
|
-
|
|
40396
|
-
|
|
40388
|
+
st("useTabstopAt", kt),
|
|
40389
|
+
st("firstTabstop", 0),
|
|
40390
|
+
st("eventOrder", {}),
|
|
40397
40391
|
za("modalBehaviours", [Xn]),
|
|
40398
40392
|
Gl("onExecute"),
|
|
40399
40393
|
db("onEscape")
|
|
@@ -40438,7 +40432,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40438
40432
|
})
|
|
40439
40433
|
},
|
|
40440
40434
|
schema: [
|
|
40441
|
-
|
|
40435
|
+
st("dom", {
|
|
40442
40436
|
tag: "div",
|
|
40443
40437
|
styles: {
|
|
40444
40438
|
position: "fixed",
|
|
@@ -40448,7 +40442,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40448
40442
|
bottom: "0px"
|
|
40449
40443
|
}
|
|
40450
40444
|
}),
|
|
40451
|
-
|
|
40445
|
+
st("components", [])
|
|
40452
40446
|
],
|
|
40453
40447
|
name: "blocker"
|
|
40454
40448
|
})
|
|
@@ -40593,7 +40587,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40593
40587
|
"success"
|
|
40594
40588
|
]),
|
|
40595
40589
|
V6,
|
|
40596
|
-
|
|
40590
|
+
st("url", "")
|
|
40597
40591
|
], kO = fo(U_), W_ = (t) => [
|
|
40598
40592
|
ta,
|
|
40599
40593
|
t
|
|
@@ -40779,7 +40773,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40779
40773
|
panel: n
|
|
40780
40774
|
})), e = [
|
|
40781
40775
|
ta,
|
|
40782
|
-
|
|
40776
|
+
st("classes", []),
|
|
40783
40777
|
gc("items", RQ)
|
|
40784
40778
|
], n = fo(e), s = [
|
|
40785
40779
|
qT("tab"),
|
|
@@ -40796,7 +40790,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40796
40790
|
})),
|
|
40797
40791
|
xr("size", "normal"),
|
|
40798
40792
|
I("buttons", [], y),
|
|
40799
|
-
|
|
40793
|
+
st("initialData", {}),
|
|
40800
40794
|
zs("onAction", le),
|
|
40801
40795
|
zs("onChange", le),
|
|
40802
40796
|
zs("onSubmit", le),
|
|
@@ -40876,7 +40870,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40876
40870
|
const x = b;
|
|
40877
40871
|
if (!x.universal) {
|
|
40878
40872
|
const S = t.channel;
|
|
40879
|
-
|
|
40873
|
+
ot(x.channels, S) && l(f, x.data);
|
|
40880
40874
|
}
|
|
40881
40875
|
}),
|
|
40882
40876
|
fr((f, b) => {
|
|
@@ -40979,7 +40973,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40979
40973
|
}), Ys = $c({
|
|
40980
40974
|
name: "TabButton",
|
|
40981
40975
|
configFields: [
|
|
40982
|
-
|
|
40976
|
+
st("uid", void 0),
|
|
40983
40977
|
$t("value"),
|
|
40984
40978
|
Yi("dom", "dom", M(() => ({
|
|
40985
40979
|
attributes: {
|
|
@@ -40989,7 +40983,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40989
40983
|
}
|
|
40990
40984
|
})), cu()),
|
|
40991
40985
|
$s("action"),
|
|
40992
|
-
|
|
40986
|
+
st("domModification", {}),
|
|
40993
40987
|
za("tabButtonBehaviours", [
|
|
40994
40988
|
go,
|
|
40995
40989
|
Xn,
|
|
@@ -41001,7 +40995,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41001
40995
|
}), ir = oe([
|
|
41002
40996
|
$t("tabs"),
|
|
41003
40997
|
$t("dom"),
|
|
41004
|
-
|
|
40998
|
+
st("clickToDismiss", !1),
|
|
41005
40999
|
za("tabbarBehaviours", [
|
|
41006
41000
|
ue,
|
|
41007
41001
|
Xn
|
|
@@ -41073,10 +41067,10 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41073
41067
|
configFields: [za("tabviewBehaviours", [wo])],
|
|
41074
41068
|
factory: qn
|
|
41075
41069
|
}), xn = oe([
|
|
41076
|
-
|
|
41070
|
+
st("selectFirst", !0),
|
|
41077
41071
|
bs("onChangeTab"),
|
|
41078
41072
|
bs("onDismissTab"),
|
|
41079
|
-
|
|
41073
|
+
st("tabs", []),
|
|
41080
41074
|
za("tabSectionBehaviours", [])
|
|
41081
41075
|
]), uo = Tl({
|
|
41082
41076
|
factory: un,
|
|
@@ -41160,7 +41154,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41160
41154
|
const f = bl(t).dom, b = ca(t, ".tox-dialog-wrap").getOr(t), x = Bt(b, "position") === "fixed";
|
|
41161
41155
|
let S;
|
|
41162
41156
|
x ? S = Math.max(f.clientHeight, window.innerHeight) : S = Math.max(f.offsetHeight, f.scrollHeight);
|
|
41163
|
-
const E = ei(r), L = r.dom.offsetLeft >= l.dom.offsetLeft +
|
|
41157
|
+
const E = ei(r), L = r.dom.offsetLeft >= l.dom.offsetLeft + Oe(l) ? Math.max(ei(l), E) : E, V = parseInt(Bt(t, "margin-top"), 10) || 0, j = parseInt(Bt(t, "margin-bottom"), 10) || 0, ae = ei(t) + V + j - L;
|
|
41164
41158
|
return S - ae;
|
|
41165
41159
|
}, _u = (t, r) => {
|
|
41166
41160
|
Us(t).each((l) => jo.showTab(r, l.value));
|
|
@@ -42445,12 +42439,12 @@ function lhe() {
|
|
|
42445
42439
|
_[N] = v(z, N);
|
|
42446
42440
|
}
|
|
42447
42441
|
return _;
|
|
42448
|
-
},
|
|
42442
|
+
}, be = (g, v) => {
|
|
42449
42443
|
for (let k = 0, _ = g.length; k < _; k++) {
|
|
42450
42444
|
const N = g[k];
|
|
42451
42445
|
v(N, k);
|
|
42452
42446
|
}
|
|
42453
|
-
},
|
|
42447
|
+
}, ot = (g, v) => {
|
|
42454
42448
|
for (let k = g.length - 1; k >= 0; k--) {
|
|
42455
42449
|
const _ = g[k];
|
|
42456
42450
|
v(_, k);
|
|
@@ -42472,9 +42466,9 @@ function lhe() {
|
|
|
42472
42466
|
v(z, _) && k.push(z);
|
|
42473
42467
|
}
|
|
42474
42468
|
return k;
|
|
42475
|
-
}, sn = (g, v, k) => (
|
|
42469
|
+
}, sn = (g, v, k) => (ot(g, (_, N) => {
|
|
42476
42470
|
k = v(k, _, N);
|
|
42477
|
-
}), k), Ue = (g, v, k) => (
|
|
42471
|
+
}), k), Ue = (g, v, k) => (be(g, (_, N) => {
|
|
42478
42472
|
k = v(k, _, N);
|
|
42479
42473
|
}), k), pt = (g, v, k) => {
|
|
42480
42474
|
for (let _ = 0, N = g.length; _ < N; _++) {
|
|
@@ -42693,16 +42687,16 @@ function lhe() {
|
|
|
42693
42687
|
}, pl = (g, v) => {
|
|
42694
42688
|
Oi(g, v), Ks(v, g);
|
|
42695
42689
|
}, eu = (g, v) => {
|
|
42696
|
-
|
|
42690
|
+
be(v, (k, _) => {
|
|
42697
42691
|
const N = _ === 0 ? g : v[_ - 1];
|
|
42698
42692
|
vi(N, k);
|
|
42699
42693
|
});
|
|
42700
42694
|
}, Jo = (g, v) => {
|
|
42701
|
-
|
|
42695
|
+
be(v, (k) => {
|
|
42702
42696
|
Ks(g, k);
|
|
42703
42697
|
});
|
|
42704
42698
|
}, zl = (g) => {
|
|
42705
|
-
g.dom.textContent = "",
|
|
42699
|
+
g.dom.textContent = "", be(So(g), (v) => {
|
|
42706
42700
|
hr(v);
|
|
42707
42701
|
});
|
|
42708
42702
|
}, hr = (g) => {
|
|
@@ -42805,7 +42799,7 @@ function lhe() {
|
|
|
42805
42799
|
return Dt.fromDom(v);
|
|
42806
42800
|
}, ce = (g, v, k) => rt(Ss(g, k), v), Me = (g, v) => rt(So(g), v), nt = (g, v) => {
|
|
42807
42801
|
let k = [];
|
|
42808
|
-
return
|
|
42802
|
+
return be(So(g), (_) => {
|
|
42809
42803
|
v(_) && (k = k.concat([_])), k = k.concat(nt(_, v));
|
|
42810
42804
|
}), k;
|
|
42811
42805
|
}, $n = (g, v, k) => ce(g, (_) => Ot(_, v), k), an = (g, v) => Me(g, (k) => Ot(k, v)), ws = (g, v) => Le(v, g);
|
|
@@ -42848,7 +42842,7 @@ function lhe() {
|
|
|
42848
42842
|
}, Bc = (g, v) => g != null ? v(g) : ye.none(), zf = (g, v) => g ? ye.some(v) : ye.none(), Im = (g, v) => g.substring(v), lr = (g, v, k) => v === "" || g.length >= v.length && g.substr(k, k + v.length) === v, Nc = (g, v) => zi(g, v) ? Im(g, v.length) : g, wi = (g, v, k = 0, _) => {
|
|
42849
42843
|
const N = g.indexOf(v, k);
|
|
42850
42844
|
return N !== -1 ? F(_) ? !0 : N + v.length <= _ : !1;
|
|
42851
|
-
}, zi = (g, v) => lr(g, v, 0), Ma = (g, v) => lr(g, v, g.length - v.length), he = ((g) => (v) => v.replace(g, ""))(/^\s+|\s+$/g),
|
|
42845
|
+
}, zi = (g, v) => lr(g, v, 0), Ma = (g, v) => lr(g, v, g.length - v.length), he = ((g) => (v) => v.replace(g, ""))(/^\s+|\s+$/g), Oe = (g) => g.length > 0, et = (g) => {
|
|
42852
42846
|
const v = parseFloat(g);
|
|
42853
42847
|
return isNaN(v) ? ye.none() : ye.some(v);
|
|
42854
42848
|
}, Et = (g) => g.style !== void 0 && me(g.style.getPropertyValue), Hn = (g, v, k) => {
|
|
@@ -43166,7 +43160,7 @@ function lhe() {
|
|
|
43166
43160
|
const _ = Qt(g.cells, k);
|
|
43167
43161
|
return pa(v(g.element), _, g.section, !0);
|
|
43168
43162
|
}, mc = "data-snooker-locked-cols", Gh = (g) => Pe(g, mc).bind((v) => ye.from(v.match(/\d+/g))).map((v) => Ne(v, je)), Nr = (g) => {
|
|
43169
|
-
const v = Ue(qi(g).rows, (_, N) => (
|
|
43163
|
+
const v = Ue(qi(g).rows, (_, N) => (be(N.cells, (z, J) => {
|
|
43170
43164
|
z.isLocked && (_[J] = !0);
|
|
43171
43165
|
}), _), {}), k = ss(v, (_, N) => parseInt(N, 10));
|
|
43172
43166
|
return ze(k);
|
|
@@ -43179,7 +43173,7 @@ function lhe() {
|
|
|
43179
43173
|
}, sr = (g) => {
|
|
43180
43174
|
const v = {};
|
|
43181
43175
|
let k = 0;
|
|
43182
|
-
return
|
|
43176
|
+
return be(g.cells, (_) => {
|
|
43183
43177
|
const N = _.colspan;
|
|
43184
43178
|
Kt(N, (z) => {
|
|
43185
43179
|
const J = k + z;
|
|
@@ -43193,9 +43187,9 @@ function lhe() {
|
|
|
43193
43187
|
pass: ue,
|
|
43194
43188
|
fail: Ie
|
|
43195
43189
|
} = qt(g, (Yt) => Yt.section === "colgroup");
|
|
43196
|
-
|
|
43190
|
+
be(Ie, (Yt) => {
|
|
43197
43191
|
const tn = [];
|
|
43198
|
-
|
|
43192
|
+
be(Yt.cells, (Mn) => {
|
|
43199
43193
|
let zt = 0;
|
|
43200
43194
|
for (; v[Wm(ie, zt)] !== void 0; )
|
|
43201
43195
|
zt++;
|
|
@@ -43408,10 +43402,10 @@ function lhe() {
|
|
|
43408
43402
|
return ti(Zt, Ie, J, ie, (bn) => _(ye.some(Wl(bn))), _);
|
|
43409
43403
|
}
|
|
43410
43404
|
}, _));
|
|
43411
|
-
}, ah = (g) => g.map((v) => v + "px").getOr(""), jg = (g, v) => d0(g, v, gc, ah), Ai = (g, v, k) => d0(g, v, qm, (_) => _.fold(() => k.minCellWidth(), (N) => N / k.pixelWidth() * 100)), Ki = (g, v, k) => d0(g, v, Yi, (_) => _.getOrThunk(k.minCellWidth)),
|
|
43405
|
+
}, ah = (g) => g.map((v) => v + "px").getOr(""), jg = (g, v) => d0(g, v, gc, ah), Ai = (g, v, k) => d0(g, v, qm, (_) => _.fold(() => k.minCellWidth(), (N) => N / k.pixelWidth() * 100)), Ki = (g, v, k) => d0(g, v, Yi, (_) => _.getOrThunk(k.minCellWidth)), st = (g, v, k, _) => {
|
|
43412
43406
|
const N = M(g), z = Qt(g.all, (ie) => ye.some(ie.element)), J = [ye.some(il.edge(v))].concat(Qt(il.positions(N, v), (ie) => ie.map((ue) => ue.y)));
|
|
43413
43407
|
return Qt(z, (ie, ue) => ti(ie, ue, J, je, k, _));
|
|
43414
|
-
}, _r = (g, v) =>
|
|
43408
|
+
}, _r = (g, v) => st(g, v, As, (k) => k.getOrThunk(Hf)), W1 = (g, v) => st(g, v, $s, ah), xr = (g, v) => () => mo(g) ? v(g) : parseFloat(Ba(g, "width").getOr("0")), al = (g) => {
|
|
43415
43409
|
const v = xr(g, Wl), k = le(0);
|
|
43416
43410
|
return {
|
|
43417
43411
|
width: v,
|
|
@@ -43497,7 +43491,7 @@ function lhe() {
|
|
|
43497
43491
|
(J.column < v.minCol || J.column > v.maxCol) && hr(J.element);
|
|
43498
43492
|
});
|
|
43499
43493
|
const N = rt(Vu(g, "tr"), (J) => J.dom.childElementCount === 0);
|
|
43500
|
-
|
|
43494
|
+
be(N, hr), (v.minCol === v.maxCol || v.minRow === v.maxRow) && be(Vu(g, "th,td"), (J) => {
|
|
43501
43495
|
Te(J, "rowspan"), Te(J, "colspan");
|
|
43502
43496
|
}), Te(g, mc), Te(g, "data-snooker-col-series"), ee.getTableSize(g).adjustTableWidth(_);
|
|
43503
43497
|
}, ko = (g, v, k, _) => {
|
|
@@ -43507,7 +43501,7 @@ function lhe() {
|
|
|
43507
43501
|
return k.getCellDelta(ue);
|
|
43508
43502
|
}, Wo = (g, v) => {
|
|
43509
43503
|
const k = (bn) => Ot(bn.element, v), _ = oi(g), N = Lg(_), z = ee.getTableSize(g), J = es.generate(N), ie = Qe(J, k), ue = "th:not(" + v + "),td:not(" + v + ")", Ie = Vh(_, "th,td", (bn) => Ot(bn, ue));
|
|
43510
|
-
|
|
43504
|
+
be(Ie, hr), en(N, J, ie, k);
|
|
43511
43505
|
const tt = es.fromTable(g), Zt = ko(g, tt, z, ie);
|
|
43512
43506
|
return Rn(_, ie, J, Zt), _;
|
|
43513
43507
|
}, Xs = " ", Lr = ((g, v) => {
|
|
@@ -43701,10 +43695,10 @@ function lhe() {
|
|
|
43701
43695
|
}, m0 = (g) => g.inline && XO(g).isSome(), Yu = La("ui_mode"), of = (g) => !m0(g) && Yu(g) === "split", nm = (g) => yi(g, "[contenteditable]"), g0 = (g, v = !1) => mo(g) ? g.dom.isContentEditable : nm(g).fold(le(v), (k) => X1(k) === "true"), X1 = (g) => g.dom.contentEditable, Km = (g) => Dt.fromDom(g.getBody()), ep = (g) => (v) => Ht(v, Km(g)), Jm = (g) => {
|
|
43702
43696
|
Te(g, "data-mce-style");
|
|
43703
43697
|
const v = (k) => Te(k, "data-mce-style");
|
|
43704
|
-
|
|
43698
|
+
be(eh(g), v), be(hc(g), v), be(Yp(g), v);
|
|
43705
43699
|
}, q1 = (g) => Dt.fromDom(g.selection.getStart()), qO = (g) => g.getBoundingClientRect().width, tp = (g) => g.getBoundingClientRect().height, qo = (g) => (v, k) => {
|
|
43706
43700
|
const _ = v.dom.getStyle(k, g) || v.dom.getAttrib(k, g);
|
|
43707
|
-
return ye.from(_).filter(
|
|
43701
|
+
return ye.from(_).filter(Oe);
|
|
43708
43702
|
}, Vn = qo("width"), eg = qo("height"), GO = (g) => /^(\d+(\.\d+)?)%$/.test(g), YO = (g) => /^(\d+(\.\d+)?)px$/.test(g), KO = (g) => ra(g, Ls("table")).exists(g0), JO = (g, v) => {
|
|
43709
43703
|
const k = v.column, _ = v.column + v.colspan - 1, N = v.row, z = v.row + v.rowspan - 1;
|
|
43710
43704
|
return k <= g.finishCol && _ >= g.startCol && N <= g.finishRow && z >= g.startRow;
|
|
@@ -44166,7 +44160,7 @@ function lhe() {
|
|
|
44166
44160
|
const k = [], _ = [], N = (Yt) => Qt(Yt, (tn) => {
|
|
44167
44161
|
tn.isNew && k.push(tn.element);
|
|
44168
44162
|
const Mn = tn.element;
|
|
44169
|
-
return zl(Mn),
|
|
44163
|
+
return zl(Mn), be(tn.cells, (zt) => {
|
|
44170
44164
|
zt.isNew && _.push(zt.element), ph(zt.element, "colspan", zt.colspan, 1), ph(zt.element, "rowspan", zt.rowspan, 1), Ks(Mn, zt.element);
|
|
44171
44165
|
}), Mn;
|
|
44172
44166
|
}), z = (Yt) => xo(Yt, (tn) => Qt(tn.cells, (Mn) => (ph(Mn.element, "span", Mn.colspan, 1), Mn.element))), J = (Yt, tn) => {
|
|
@@ -44177,7 +44171,7 @@ function lhe() {
|
|
|
44177
44171
|
}, ue = (Yt, tn) => {
|
|
44178
44172
|
Yt.length > 0 ? J(Yt, tn) : ie(tn);
|
|
44179
44173
|
}, Ie = [], tt = [], Zt = [], bn = [];
|
|
44180
|
-
return
|
|
44174
|
+
return be(v, (Yt) => {
|
|
44181
44175
|
switch (Yt.section) {
|
|
44182
44176
|
case "thead":
|
|
44183
44177
|
Ie.push(Yt);
|
|
@@ -44198,7 +44192,7 @@ function lhe() {
|
|
|
44198
44192
|
};
|
|
44199
44193
|
}, gk = (g) => Qt(g, (v) => {
|
|
44200
44194
|
const k = Hl(v.element);
|
|
44201
|
-
return
|
|
44195
|
+
return be(v.cells, (_) => {
|
|
44202
44196
|
const N = oi(_.element);
|
|
44203
44197
|
ph(N, "colspan", _.colspan, 1), ph(N, "rowspan", _.rowspan, 1), Ks(k, N);
|
|
44204
44198
|
}), k;
|
|
@@ -44231,7 +44225,7 @@ function lhe() {
|
|
|
44231
44225
|
});
|
|
44232
44226
|
}, lb = (g, v, k) => {
|
|
44233
44227
|
const _ = [];
|
|
44234
|
-
|
|
44228
|
+
be(g.colgroups, (N) => {
|
|
44235
44229
|
const z = [];
|
|
44236
44230
|
for (let J = 0; J < g.grid.columns; J++) {
|
|
44237
44231
|
const ie = es.getColumnAt(g, J).map((ue) => jr(ue.element, k, !1)).getOrThunk(() => jr(v.colGap(), !0, !1));
|
|
@@ -44301,7 +44295,7 @@ function lhe() {
|
|
|
44301
44295
|
Zt && !z ? Eo(ue, ie, jr(_(), !0, Ie.isLocked)) : Zt && (z = !1);
|
|
44302
44296
|
}
|
|
44303
44297
|
return g;
|
|
44304
|
-
}, mu = (g, v) => Ue(g, (k, _) => Lt(k, (N) => v(N.element, _.element)) ? k : k.concat([_]), []), X4 = (g, v, k, _) => (v > 0 && v < g[0].cells.length &&
|
|
44298
|
+
}, mu = (g, v) => Ue(g, (k, _) => Lt(k, (N) => v(N.element, _.element)) ? k : k.concat([_]), []), X4 = (g, v, k, _) => (v > 0 && v < g[0].cells.length && be(g, (N) => {
|
|
44305
44299
|
const z = N.cells[v - 1];
|
|
44306
44300
|
let J = 0;
|
|
44307
44301
|
const ie = _();
|
|
@@ -44311,7 +44305,7 @@ function lhe() {
|
|
|
44311
44305
|
const N = qi(g).rows;
|
|
44312
44306
|
if (v > 0 && v < N.length) {
|
|
44313
44307
|
const z = N[v - 1].cells, J = mu(z, k);
|
|
44314
|
-
|
|
44308
|
+
be(J, (ie) => {
|
|
44315
44309
|
let ue = ye.none();
|
|
44316
44310
|
for (let Ie = v; Ie < N.length; Ie++)
|
|
44317
44311
|
for (let tt = 0; tt < jl(N[0]); tt++) {
|
|
@@ -44513,7 +44507,7 @@ function lhe() {
|
|
|
44513
44507
|
return fp(g, J, _, N, av, Ie, ue);
|
|
44514
44508
|
}, J4 = (g, v, k, _, N, z, J) => {
|
|
44515
44509
|
const { cols: ie, rows: ue } = qi(g), Ie = ue[v[0]], tt = xo(v, (zt) => K4(ue, zt, N)), Zt = Qt(Ie.cells, (zt, oo) => sv(mp(ue, oo, N))), bn = [...ue];
|
|
44516
|
-
|
|
44510
|
+
be(v, (zt) => {
|
|
44517
44511
|
bn[zt] = J.transformRow(ue[zt], k);
|
|
44518
44512
|
});
|
|
44519
44513
|
const Yt = [
|
|
@@ -44530,7 +44524,7 @@ function lhe() {
|
|
|
44530
44524
|
if (g.length === 0)
|
|
44531
44525
|
throw new Error("there must be at least one case");
|
|
44532
44526
|
const v = [], k = {};
|
|
44533
|
-
return
|
|
44527
|
+
return be(g, (_, N) => {
|
|
44534
44528
|
const z = yn(_);
|
|
44535
44529
|
if (z.length !== 1)
|
|
44536
44530
|
throw new Error("one and only one name per case");
|
|
@@ -44623,7 +44617,7 @@ Required: ` + v.join(", "));
|
|
|
44623
44617
|
height: v[_]
|
|
44624
44618
|
})), o5 = (g) => sn(g, (v, k) => v + k, 0), fb = (g, v) => es.hasColumns(g) ? n5(g, v) : F2(g, v), Z2 = (g, v, k) => {
|
|
44625
44619
|
const _ = fb(g, v);
|
|
44626
|
-
|
|
44620
|
+
be(_, (N) => {
|
|
44627
44621
|
k.setElementWidth(N.element, N.width);
|
|
44628
44622
|
});
|
|
44629
44623
|
}, ig = (g, v, k, _, N) => {
|
|
@@ -44631,9 +44625,9 @@ Required: ` + v.join(", "));
|
|
|
44631
44625
|
Z2(z, Zt, N), _.resizeTable(N.adjustTableWidth, Ie, ue);
|
|
44632
44626
|
}, lv = (g, v, k) => {
|
|
44633
44627
|
const _ = es.fromTable(g), N = _r(_, g), z = Qt(N, (ue, Ie) => k === Ie ? Math.max(v + ue, Hf()) : ue), J = _k(_, z);
|
|
44634
|
-
|
|
44628
|
+
be(J, (ue) => {
|
|
44635
44629
|
ef(ue.element, ue.height);
|
|
44636
|
-
}),
|
|
44630
|
+
}), be(es.justCells(_), (ue) => {
|
|
44637
44631
|
Kf(ue.element);
|
|
44638
44632
|
});
|
|
44639
44633
|
const ie = o5(z);
|
|
@@ -44952,9 +44946,9 @@ Required: ` + v.join(", "));
|
|
|
44952
44946
|
section: ue(Ca)
|
|
44953
44947
|
};
|
|
44954
44948
|
return sx(Ca) ? ec(Ca, Sm, uE, ix).bind((ax) => {
|
|
44955
|
-
v.refresh(Ca.dom),
|
|
44949
|
+
v.refresh(Ca.dom), be(ax.newRows, (qb) => {
|
|
44956
44950
|
ea(g, qb.dom);
|
|
44957
|
-
}),
|
|
44951
|
+
}), be(ax.newCells, (qb) => {
|
|
44958
44952
|
cl(g, qb.dom);
|
|
44959
44953
|
});
|
|
44960
44954
|
const JC = Ie(Ca, ax);
|
|
@@ -45083,19 +45077,19 @@ Required: ` + v.join(", "));
|
|
|
45083
45077
|
}), k = v.output;
|
|
45084
45078
|
return k.slice(0, k.length - 1).concat([vv(k[k.length - 1], Math.round(v.remainder))]);
|
|
45085
45079
|
}, cw = Ri.from, b5 = (g, v, k) => {
|
|
45086
|
-
|
|
45080
|
+
be(v, (_) => {
|
|
45087
45081
|
const N = g.slice(_.column, _.colspan + _.column), z = aw(N, Lc());
|
|
45088
45082
|
Io(_.element, "width", z + k);
|
|
45089
45083
|
});
|
|
45090
45084
|
}, O5 = (g, v, k) => {
|
|
45091
|
-
|
|
45085
|
+
be(v, (_, N) => {
|
|
45092
45086
|
const z = aw([g[N]], Lc());
|
|
45093
45087
|
Io(_.element, "width", z + k);
|
|
45094
45088
|
});
|
|
45095
45089
|
}, v5 = (g, v, k) => {
|
|
45096
|
-
|
|
45090
|
+
be(k, (_) => {
|
|
45097
45091
|
yr(_.element, "height");
|
|
45098
|
-
}),
|
|
45092
|
+
}), be(v, (_, N) => {
|
|
45099
45093
|
Io(_.element, "height", g[N]);
|
|
45100
45094
|
});
|
|
45101
45095
|
}, y5 = (g) => cw(g).fold(le("px"), le("px"), le("%")), uw = (g, v, k) => {
|
|
@@ -45121,7 +45115,7 @@ Required: ` + v.join(", "));
|
|
|
45121
45115
|
}, Gk = (g) => {
|
|
45122
45116
|
yr(g, "width");
|
|
45123
45117
|
const v = hc(g), k = v.length > 0 ? v : eh(g);
|
|
45124
|
-
|
|
45118
|
+
be(k, (_) => {
|
|
45125
45119
|
yr(_, "width"), xb(_);
|
|
45126
45120
|
}), xb(g);
|
|
45127
45121
|
}, Yk = {
|
|
@@ -45163,8 +45157,8 @@ Required: ` + v.join(", "));
|
|
|
45163
45157
|
}, k5 = (g, v) => {
|
|
45164
45158
|
ba(v, "td,th").each(at(fw, g));
|
|
45165
45159
|
}, Sb = (g, v) => {
|
|
45166
|
-
|
|
45167
|
-
ea(g, k.dom),
|
|
45160
|
+
be(ws(v, "tr"), (k) => {
|
|
45161
|
+
ea(g, k.dom), be(ws(k, "th,td"), (_) => {
|
|
45168
45162
|
cl(g, _.dom);
|
|
45169
45163
|
});
|
|
45170
45164
|
});
|
|
@@ -45224,7 +45218,7 @@ Required: ` + v.join(", "));
|
|
|
45224
45218
|
}, ue = (zt, oo) => {
|
|
45225
45219
|
J((Mt) => {
|
|
45226
45220
|
const Cn = sm(g), Gs = Xo(Cn, (Un) => g.formatter.match("tablecellclass", { value: oo }, Un.dom)) ? g.formatter.remove : g.formatter.apply;
|
|
45227
|
-
|
|
45221
|
+
be(Cn, (Un) => Gs("tablecellclass", { value: oo }, Un.dom)), Di(g, Mt.dom, yb);
|
|
45228
45222
|
});
|
|
45229
45223
|
}, Ie = () => {
|
|
45230
45224
|
Ou(g).each((zt) => {
|
|
@@ -45307,7 +45301,7 @@ Required: ` + v.join(", "));
|
|
|
45307
45301
|
const qs = Js(oo, (Gs, Un) => g.formatter.has(Mt(Un)) && O(Gs));
|
|
45308
45302
|
Ya(qs) || (Co(qs, (Gs, Un) => {
|
|
45309
45303
|
const pr = Mt(Un);
|
|
45310
|
-
|
|
45304
|
+
be(Cn, (Jl) => {
|
|
45311
45305
|
Gs === "" ? g.formatter.remove(pr, { value: null }, Jl.dom, !0) : g.formatter.apply(pr, { value: Gs }, Jl.dom);
|
|
45312
45306
|
});
|
|
45313
45307
|
}), z(Cn[0]).each((Gs) => Di(g, Gs.dom, yb)));
|
|
@@ -45863,7 +45857,7 @@ Required: ` + v.join(", "));
|
|
|
45863
45857
|
}, Iw = (g, v) => {
|
|
45864
45858
|
gg(g) ? g.dom.classList.remove(v) : NC(g, v), LC(g);
|
|
45865
45859
|
}, pg = (g, v) => gg(g) && g.dom.classList.contains(v), Qw = (g, v) => {
|
|
45866
|
-
|
|
45860
|
+
be(v, (k) => {
|
|
45867
45861
|
Iw(g, k);
|
|
45868
45862
|
});
|
|
45869
45863
|
}, kn = (g) => (v) => {
|
|
@@ -45878,13 +45872,13 @@ Required: ` + v.join(", "));
|
|
|
45878
45872
|
g.firstSelected
|
|
45879
45873
|
]), _ = (z) => {
|
|
45880
45874
|
const J = ws(z, g.selectedSelector);
|
|
45881
|
-
|
|
45875
|
+
be(J, k);
|
|
45882
45876
|
};
|
|
45883
45877
|
return {
|
|
45884
45878
|
clearBeforeUpdate: _,
|
|
45885
45879
|
clear: _,
|
|
45886
45880
|
selectRange: (z, J, ie, ue) => {
|
|
45887
|
-
_(z),
|
|
45881
|
+
_(z), be(J, v), vm(ie, g.firstSelected), vm(ue, g.lastSelected);
|
|
45888
45882
|
},
|
|
45889
45883
|
selectedSelector: g.selectedSelector,
|
|
45890
45884
|
firstSelectedSelector: g.firstSelectedSelector,
|
|
@@ -45900,13 +45894,13 @@ Required: ` + v.join(", "));
|
|
|
45900
45894
|
J(ue), k();
|
|
45901
45895
|
}, J = (ue) => {
|
|
45902
45896
|
const Ie = ws(ue, `${g.selectedSelector},${g.firstSelectedSelector},${g.lastSelectedSelector}`);
|
|
45903
|
-
|
|
45897
|
+
be(Ie, _);
|
|
45904
45898
|
};
|
|
45905
45899
|
return {
|
|
45906
45900
|
clearBeforeUpdate: J,
|
|
45907
45901
|
clear: z,
|
|
45908
45902
|
selectRange: (ue, Ie, tt, Zt) => {
|
|
45909
|
-
z(ue),
|
|
45903
|
+
z(ue), be(Ie, N), Ws(tt, g.firstSelected, "1"), Ws(Zt, g.lastSelected, "1"), v(Ie, tt, Zt);
|
|
45910
45904
|
},
|
|
45911
45905
|
selectedSelector: g.selectedSelector,
|
|
45912
45906
|
firstSelectedSelector: g.firstSelectedSelector,
|
|
@@ -46042,9 +46036,9 @@ Required: ` + v.join(", "));
|
|
|
46042
46036
|
},
|
|
46043
46037
|
trigger: (...z) => {
|
|
46044
46038
|
const J = {};
|
|
46045
|
-
|
|
46039
|
+
be(g, (ie, ue) => {
|
|
46046
46040
|
J[ie] = z[ue];
|
|
46047
|
-
}),
|
|
46041
|
+
}), be(v, (ie) => {
|
|
46048
46042
|
ie(J);
|
|
46049
46043
|
});
|
|
46050
46044
|
}
|
|
@@ -46078,7 +46072,7 @@ Required: ` + v.join(", "));
|
|
|
46078
46072
|
}, ZC = (g, v) => {
|
|
46079
46073
|
if (!T(v))
|
|
46080
46074
|
throw new Error("The " + g + " fields must be an array. Was: " + v + ".");
|
|
46081
|
-
|
|
46075
|
+
be(v, (k) => {
|
|
46082
46076
|
if (!O(k))
|
|
46083
46077
|
throw new Error("The value " + k + " in the " + g + " fields was not a string.");
|
|
46084
46078
|
});
|
|
@@ -46315,10 +46309,10 @@ Required: ` + v.join(", "));
|
|
|
46315
46309
|
});
|
|
46316
46310
|
}, $c = (g) => {
|
|
46317
46311
|
const v = ws(g.parent(), "." + Ub);
|
|
46318
|
-
|
|
46312
|
+
be(v, hr);
|
|
46319
46313
|
}, Nl = (g, v, k) => {
|
|
46320
46314
|
const _ = g.origin();
|
|
46321
|
-
|
|
46315
|
+
be(v, (N) => {
|
|
46322
46316
|
N.each((z) => {
|
|
46323
46317
|
const J = k(_, z);
|
|
46324
46318
|
vm(J, Ub), Ks(g.parent(), J);
|
|
@@ -46346,7 +46340,7 @@ Required: ` + v.join(", "));
|
|
|
46346
46340
|
}
|
|
46347
46341
|
}, Os = (g, v) => {
|
|
46348
46342
|
const k = ws(g.parent(), "." + Ub);
|
|
46349
|
-
|
|
46343
|
+
be(k, v);
|
|
46350
46344
|
}, q0 = (g) => {
|
|
46351
46345
|
Os(g, (v) => {
|
|
46352
46346
|
Io(v, "display", "none");
|
|
@@ -46511,7 +46505,7 @@ Required: ` + v.join(", "));
|
|
|
46511
46505
|
g.inline && hr(v.parent());
|
|
46512
46506
|
}, KC = (g) => Y(g) && g.nodeName === "TABLE", tx = "bar-", Wb = (g) => vr(g, "data-mce-resize") !== "false", aE = (g) => {
|
|
46513
46507
|
const v = es.fromTable(g);
|
|
46514
|
-
es.hasColumns(v) ||
|
|
46508
|
+
es.hasColumns(v) || be(eh(g), (k) => {
|
|
46515
46509
|
const _ = ri(k, "width");
|
|
46516
46510
|
Io(k, "width", _), Te(k, "width");
|
|
46517
46511
|
});
|
|
@@ -46560,7 +46554,7 @@ Required: ` + v.join(", "));
|
|
|
46560
46554
|
const qs = Cn.target;
|
|
46561
46555
|
if (KC(qs) && !g.mode.isReadOnly()) {
|
|
46562
46556
|
const Gs = Dt.fromDom(qs);
|
|
46563
|
-
|
|
46557
|
+
be(g.dom.select(".mce-clonedresizable"), (Un) => {
|
|
46564
46558
|
g.dom.addClass(Un, "mce-" + ki(g) + "-columns");
|
|
46565
46559
|
}), !wv(Gs) && Gu(g) ? dw(Gs) : !yv(Gs) && f0(g) && gm(Gs), xv(Gs) && zi(Cn.origin, tx) && gm(Gs), N = Cn.width, z = wl(g) ? "" : Vn(g, qs).getOr(""), J = Cn.height, ie = eg(g, qs).getOr("");
|
|
46566
46560
|
}
|
|
@@ -46765,7 +46759,7 @@ function che() {
|
|
|
46765
46759
|
}, Kt = (M, U) => Lt(je(M, U)), Qt = (M) => {
|
|
46766
46760
|
const U = Xt.call(M, 0);
|
|
46767
46761
|
return U.reverse(), U;
|
|
46768
|
-
},
|
|
46762
|
+
}, be = (M, U) => U >= 0 && U < M.length ? Xe.some(M[U]) : Xe.none(), ot = (M) => be(M, 0), qt = (M) => be(M, M.length - 1), rt = (M, U) => {
|
|
46769
46763
|
const te = [], $e = F(U) ? (Fe) => cn(te, (Vt) => U(Vt, Fe)) : (Fe) => rn(te, Fe);
|
|
46770
46764
|
for (let Fe = 0, Vt = M.length; Fe < Vt; Fe++) {
|
|
46771
46765
|
const no = M[Fe];
|
|
@@ -47066,7 +47060,7 @@ function che() {
|
|
|
47066
47060
|
}, Im = (M, U, te) => {
|
|
47067
47061
|
const $e = M.dom;
|
|
47068
47062
|
zf($e, U, te);
|
|
47069
|
-
}, lr = (M) => Ps(M, "OL,UL"), Nc = (M) => Ps(M, "LI"), wi = (M) => Mr(M).exists(lr), zi = (M) => Ei(M).exists(lr), Ma = (M) => "listAttributes" in M, nu = (M) => "isComment" in M, he = (M) => "isFragment" in M,
|
|
47063
|
+
}, lr = (M) => Ps(M, "OL,UL"), Nc = (M) => Ps(M, "LI"), wi = (M) => Mr(M).exists(lr), zi = (M) => Ei(M).exists(lr), Ma = (M) => "listAttributes" in M, nu = (M) => "isComment" in M, he = (M) => "isFragment" in M, Oe = (M) => M.depth > 0, et = (M) => M.isSelected, Et = (M) => {
|
|
47070
47064
|
const U = zo(M), te = zi(M) ? U.slice(0, -1) : U;
|
|
47071
47065
|
return je(te, Jn);
|
|
47072
47066
|
}, Hn = (M, U, te) => Lo(M).filter(Ns).map(($e) => ({
|
|
@@ -47084,7 +47078,7 @@ function che() {
|
|
|
47084
47078
|
for (let U = 1; U < M.length; U++)
|
|
47085
47079
|
as(M[U - 1], M[U]);
|
|
47086
47080
|
}, tr = (M, U) => {
|
|
47087
|
-
pt(qt(M),
|
|
47081
|
+
pt(qt(M), ot(U), as);
|
|
47088
47082
|
}, ri = (M, U) => {
|
|
47089
47083
|
const te = {
|
|
47090
47084
|
list: ke.fromTag(U, M),
|
|
@@ -47130,10 +47124,10 @@ function che() {
|
|
|
47130
47124
|
const $e = kt(U, (Fe, Vt, no) => nu(Vt) ? no === 0 ? (te = Xe.some(Vt), Fe) : ia(M, Fe, Vt) : Vt.depth > Fe.length ? Zr(M, Fe, Vt) : ia(M, Fe, Vt), []);
|
|
47131
47125
|
return te.each((Fe) => {
|
|
47132
47126
|
const Vt = ke.fromHtml(`<!--${Fe.content}-->`);
|
|
47133
|
-
|
|
47127
|
+
ot($e).each((no) => {
|
|
47134
47128
|
vr(no.list, Vt);
|
|
47135
47129
|
});
|
|
47136
|
-
}),
|
|
47130
|
+
}), ot($e).map((Fe) => Fe.list);
|
|
47137
47131
|
}, Vs = (M, U) => {
|
|
47138
47132
|
switch (M) {
|
|
47139
47133
|
case "Indent":
|
|
@@ -47221,7 +47215,7 @@ function che() {
|
|
|
47221
47215
|
}, ou = (M, U) => {
|
|
47222
47216
|
const te = Vh(U);
|
|
47223
47217
|
return Hi(M.contentDocument, te).toArray();
|
|
47224
|
-
}, Qm = (M, U) => Kt(dt(U,
|
|
47218
|
+
}, Qm = (M, U) => Kt(dt(U, Oe), (te) => ot(te).exists(Oe) ? ou(M, te) : Yp(M, te)), Hh = (M, U) => {
|
|
47225
47219
|
ye(Kn(M, et), (te) => Vs(U, te));
|
|
47226
47220
|
}, Lg = (M) => {
|
|
47227
47221
|
const U = je(Tn(M), ke.fromDom);
|
|
@@ -47943,7 +47937,7 @@ function uhe() {
|
|
|
47943
47937
|
processor: "boolean",
|
|
47944
47938
|
default: !1
|
|
47945
47939
|
});
|
|
47946
|
-
}, Lt = Q("link_assume_external_targets"), Kt = Q("link_context_toolbar"), Qt = Q("link_list"),
|
|
47940
|
+
}, Lt = Q("link_assume_external_targets"), Kt = Q("link_context_toolbar"), Qt = Q("link_list"), be = Q("link_default_target"), ot = Q("link_default_protocol"), qt = Q("link_target_list"), rt = Q("link_rel_list"), sn = Q("link_class_list"), Ue = Q("link_title"), pt = Q("allow_unsafe_link_target"), K = Q("link_quicklink"), us = Object.keys, Oo = Object.hasOwnProperty, xo = (se, Ee) => {
|
|
47947
47941
|
const Ve = us(se);
|
|
47948
47942
|
for (let wt = 0, Jt = Ve.length; wt < Jt; wt++) {
|
|
47949
47943
|
const Tn = Ve[wt], dn = se[Tn];
|
|
@@ -47999,7 +47993,7 @@ function uhe() {
|
|
|
47999
47993
|
const wt = Us(Ve.rel, Ve.target === "_blank");
|
|
48000
47994
|
Ve.rel = wt || null;
|
|
48001
47995
|
}
|
|
48002
|
-
return Je.from(Ve.target).isNone() && qt(se) === !1 && (Ve.target =
|
|
47996
|
+
return Je.from(Ve.target).isNone() && qt(se) === !1 && (Ve.target = be(se)), Ve.href = pi(Ve.href, Lt(se)), Ve;
|
|
48003
47997
|
}, Lo = (se, Ee, Ve, wt) => {
|
|
48004
47998
|
Ve.each((Jt) => {
|
|
48005
47999
|
ze(Ee, "innerText") ? Ee.innerText = Jt : Ee.textContent = Jt;
|
|
@@ -48173,7 +48167,7 @@ function uhe() {
|
|
|
48173
48167
|
}) : Je.none();
|
|
48174
48168
|
}, To = { preprocess: (se, Ee) => ye([
|
|
48175
48169
|
bt,
|
|
48176
|
-
Wn(Lt(se),
|
|
48170
|
+
Wn(Lt(se), ot(se))
|
|
48177
48171
|
], (Ve) => Ve(Ee)).fold(() => Promise.resolve(Ee), (Ve) => new Promise((wt) => {
|
|
48178
48172
|
ut(se, Ve.message, (Jt) => {
|
|
48179
48173
|
wt(Jt ? Ve.preprocess(Ee) : Ee);
|
|
@@ -48306,7 +48300,7 @@ function uhe() {
|
|
|
48306
48300
|
name: "title",
|
|
48307
48301
|
type: "input",
|
|
48308
48302
|
label: "Title"
|
|
48309
|
-
}] : [], dn = Je.from(
|
|
48303
|
+
}] : [], dn = Je.from(be(Ve)), co = So(se, dn), mo = se.catalogs, is = Pe.init(co, mo);
|
|
48310
48304
|
return {
|
|
48311
48305
|
title: "Insert/Edit Link",
|
|
48312
48306
|
size: "normal",
|
|
@@ -48535,7 +48529,7 @@ function uhe() {
|
|
|
48535
48529
|
text: co,
|
|
48536
48530
|
title: Je.none(),
|
|
48537
48531
|
rel: Je.none(),
|
|
48538
|
-
target: Je.from(
|
|
48532
|
+
target: Je.from(be(se)),
|
|
48539
48533
|
class: Je.none()
|
|
48540
48534
|
}), Ve(se), Tn.hide();
|
|
48541
48535
|
}
|
|
@@ -48705,14 +48699,14 @@ function dhe() {
|
|
|
48705
48699
|
Lt(q.dom, ce, Me);
|
|
48706
48700
|
}, Qt = (q, ce) => {
|
|
48707
48701
|
q.dom.removeAttribute(ce);
|
|
48708
|
-
},
|
|
48702
|
+
}, be = (q, ce) => {
|
|
48709
48703
|
const nt = (ce || document).createElement("div");
|
|
48710
48704
|
if (nt.innerHTML = q, !nt.hasChildNodes() || nt.childNodes.length > 1) {
|
|
48711
48705
|
const $n = "HTML does not have a single root node";
|
|
48712
48706
|
throw console.error($n, q), new Error($n);
|
|
48713
48707
|
}
|
|
48714
48708
|
return rt(nt.childNodes[0]);
|
|
48715
|
-
},
|
|
48709
|
+
}, ot = (q, ce) => {
|
|
48716
48710
|
const nt = (ce || document).createElement(q);
|
|
48717
48711
|
return rt(nt);
|
|
48718
48712
|
}, qt = (q, ce) => {
|
|
@@ -48723,8 +48717,8 @@ function dhe() {
|
|
|
48723
48717
|
throw new Error("Node cannot be null or undefined");
|
|
48724
48718
|
return { dom: q };
|
|
48725
48719
|
}, Ue = {
|
|
48726
|
-
fromHtml:
|
|
48727
|
-
fromTag:
|
|
48720
|
+
fromHtml: be,
|
|
48721
|
+
fromTag: ot,
|
|
48728
48722
|
fromText: qt,
|
|
48729
48723
|
fromDom: rt,
|
|
48730
48724
|
fromPoint: (q, ce, Me) => Xe.from(q.dom.elementFromPoint(ce, Me)).map(rt)
|
|
@@ -49603,7 +49597,7 @@ function hhe() {
|
|
|
49603
49597
|
!ut.source && To === "param" && (ut.source = ao.attr("movie")), (To === "iframe" || To === "object" || To === "embed" || To === "video" || To === "audio") && (ut.type || (ut.type = To), ut = dt.extend(ao.attributes.map, ut)), To === "source" && (ut.source ? ut.altsource || (ut.altsource = ao.attr("src")) : ut.source = ao.attr("src")), To === "img" && !ut.poster && (ut.poster = ao.attr("src"));
|
|
49604
49598
|
}
|
|
49605
49599
|
return ut.source = ut.source || ut.src || "", ut.altsource = ut.altsource || "", ut.poster = ut.poster || "", ut;
|
|
49606
|
-
},
|
|
49600
|
+
}, be = (Pe) => {
|
|
49607
49601
|
var Te;
|
|
49608
49602
|
const ut = {
|
|
49609
49603
|
mp3: "audio/mpeg",
|
|
@@ -49616,7 +49610,7 @@ function hhe() {
|
|
|
49616
49610
|
}, bt = (Te = Pe.toLowerCase().split(".").pop()) !== null && Te !== void 0 ? Te : "";
|
|
49617
49611
|
return _e(ut, bt).getOr("");
|
|
49618
49612
|
};
|
|
49619
|
-
var
|
|
49613
|
+
var ot = tinymce.util.Tools.resolve("tinymce.html.Node"), qt = tinymce.util.Tools.resolve("tinymce.html.Serializer");
|
|
49620
49614
|
const rt = (Pe, Te = {}) => Q({
|
|
49621
49615
|
forced_root_block: !1,
|
|
49622
49616
|
validate: !1,
|
|
@@ -49655,7 +49649,7 @@ function hhe() {
|
|
|
49655
49649
|
Dt.attr("poster", Te.poster), Dt.attr("src", null);
|
|
49656
49650
|
for (let Le = Wn; Le < 2; Le++)
|
|
49657
49651
|
if (Te[K[Le]]) {
|
|
49658
|
-
const Nt = new
|
|
49652
|
+
const Nt = new ot("source", 1);
|
|
49659
49653
|
Nt.attr("src", Te[K[Le]]), Nt.attr("type", Te[K[Le] + "mime"] || null), Dt.append(Nt);
|
|
49660
49654
|
}
|
|
49661
49655
|
break;
|
|
@@ -49666,7 +49660,7 @@ function hhe() {
|
|
|
49666
49660
|
const Re = Dt.getAll("img").length > 0;
|
|
49667
49661
|
if (Te.poster && !Re) {
|
|
49668
49662
|
Dt.attr("src", Te.poster);
|
|
49669
|
-
const Le = new
|
|
49663
|
+
const Le = new ot("img", 1);
|
|
49670
49664
|
Le.attr("src", Te.poster), Le.attr("width", Te.width), Le.attr("height", Te.height), Dt.append(Le);
|
|
49671
49665
|
}
|
|
49672
49666
|
break;
|
|
@@ -49798,7 +49792,7 @@ function hhe() {
|
|
|
49798
49792
|
const bt = dt.extend({}, Te);
|
|
49799
49793
|
if (!bt.source && (dt.extend(bt, Qt((ut = bt.embed) !== null && ut !== void 0 ? ut : "", Pe.schema)), !bt.source))
|
|
49800
49794
|
return "";
|
|
49801
|
-
bt.altsource || (bt.altsource = ""), bt.poster || (bt.poster = ""), bt.source = Pe.convertURL(bt.source, "source"), bt.altsource = Pe.convertURL(bt.altsource, "source"), bt.sourcemime =
|
|
49795
|
+
bt.altsource || (bt.altsource = ""), bt.poster || (bt.poster = ""), bt.source = Pe.convertURL(bt.source, "source"), bt.altsource = Pe.convertURL(bt.altsource, "source"), bt.sourcemime = be(bt.source), bt.altsourcemime = be(bt.altsource), bt.poster = Pe.convertURL(bt.poster, "poster");
|
|
49802
49796
|
const Wn = _i(bt.source);
|
|
49803
49797
|
if (Wn && (bt.source = Wn.url, bt.type = Wn.type, bt.allowfullscreen = Wn.allowFullscreen, bt.width = bt.width || String(Wn.w), bt.height = bt.height || String(Wn.h)), bt.embed)
|
|
49804
49798
|
return us(bt.embed, bt, !0, Pe.schema);
|
|
@@ -50057,7 +50051,7 @@ function hhe() {
|
|
|
50057
50051
|
for (; Wn.firstChild; )
|
|
50058
50052
|
ut.append(Wn.firstChild);
|
|
50059
50053
|
}, xs = (Pe, Te) => {
|
|
50060
|
-
const ut = Te.name, bt = new
|
|
50054
|
+
const ut = Te.name, bt = new ot("img", 1);
|
|
50061
50055
|
return er(Pe, Te, bt), Fi(Te, bt, {}), bt.attr({
|
|
50062
50056
|
style: Te.attr("style"),
|
|
50063
50057
|
src: Ei.transparentSrc,
|
|
@@ -50066,14 +50060,14 @@ function hhe() {
|
|
|
50066
50060
|
}), bt;
|
|
50067
50061
|
}, jn = (Pe, Te) => {
|
|
50068
50062
|
var ut;
|
|
50069
|
-
const bt = Te.name, Wn = new
|
|
50063
|
+
const bt = Te.name, Wn = new ot("span", 1);
|
|
50070
50064
|
Wn.attr({
|
|
50071
50065
|
contentEditable: "false",
|
|
50072
50066
|
style: Te.attr("style"),
|
|
50073
50067
|
"data-mce-object": bt,
|
|
50074
50068
|
class: "mce-preview-object mce-object-" + bt
|
|
50075
50069
|
}), er(Pe, Te, Wn);
|
|
50076
|
-
const ao = Pe.dom.parseStyle((ut = Te.attr("style")) !== null && ut !== void 0 ? ut : ""), To = new
|
|
50070
|
+
const ao = Pe.dom.parseStyle((ut = Te.attr("style")) !== null && ut !== void 0 ? ut : ""), To = new ot(bt, 1);
|
|
50077
50071
|
if (Fi(Te, To, ao), To.attr({
|
|
50078
50072
|
src: Te.attr("src"),
|
|
50079
50073
|
style: Te.attr("style"),
|
|
@@ -50100,7 +50094,7 @@ function hhe() {
|
|
|
50100
50094
|
const Ot = Wn.attr("data-mce-html");
|
|
50101
50095
|
T(Ot) && $i(Pe, bt, To, unescape(Ot));
|
|
50102
50096
|
}
|
|
50103
|
-
const js = new
|
|
50097
|
+
const js = new ot("span", 1);
|
|
50104
50098
|
return js.attr("class", "mce-shim"), Wn.append(To), Wn.append(js), Wn;
|
|
50105
50099
|
}, er = (Pe, Te, ut) => {
|
|
50106
50100
|
var bt;
|
|
@@ -50111,7 +50105,7 @@ function hhe() {
|
|
|
50111
50105
|
let Re = Wn[ao].value;
|
|
50112
50106
|
Ot !== "width" && Ot !== "height" && Ot !== "style" && !Mr(Ot, "data-mce-") && ((Ot === "data" || Ot === "src") && (Re = Pe.convertURL(Re, Ot)), ut.attr("data-mce-p-" + Ot, Re));
|
|
50113
50107
|
}
|
|
50114
|
-
const To = qt({ inner: !0 }, Pe.schema), js = new
|
|
50108
|
+
const To = qt({ inner: !0 }, Pe.schema), js = new ot("div", 1);
|
|
50115
50109
|
F(Te.children(), (Ot) => js.append(Ot));
|
|
50116
50110
|
const Dt = To.serialize(js);
|
|
50117
50111
|
Dt && (ut.attr("data-mce-html", escape(Dt)), ut.empty());
|
|
@@ -50151,7 +50145,7 @@ function hhe() {
|
|
|
50151
50145
|
const Ot = ao[Dt];
|
|
50152
50146
|
if (!Ot.parent)
|
|
50153
50147
|
continue;
|
|
50154
|
-
const Re = Ot.attr(To), Le = new
|
|
50148
|
+
const Re = Ot.attr(To), Le = new ot(Re, 1);
|
|
50155
50149
|
if (Re !== "audio") {
|
|
50156
50150
|
const Nn = Ot.attr("class");
|
|
50157
50151
|
Nn && Nn.indexOf("mce-preview-object") !== -1 && Ot.firstChild ? Le.attr({
|
|
@@ -50340,7 +50334,7 @@ function fhe() {
|
|
|
50340
50334
|
if (rn.call(A, I))
|
|
50341
50335
|
return !1;
|
|
50342
50336
|
return !0;
|
|
50343
|
-
},
|
|
50337
|
+
}, be = Array.prototype.indexOf, ot = Array.prototype.push, qt = (A, I) => be.call(A, I), rt = (A, I) => qt(A, I) > -1, sn = (A, I) => {
|
|
50344
50338
|
for (let ee = 0, fe = A.length; ee < fe; ee++) {
|
|
50345
50339
|
const Qe = A[ee];
|
|
50346
50340
|
if (I(Qe, ee))
|
|
@@ -50404,7 +50398,7 @@ function fhe() {
|
|
|
50404
50398
|
for (let ee = 0, fe = A.length; ee < fe; ++ee) {
|
|
50405
50399
|
if (!w(A[ee]))
|
|
50406
50400
|
throw new Error("Arr.flatten item " + ee + " was not an array, input: " + A);
|
|
50407
|
-
|
|
50401
|
+
ot.apply(I, A[ee]);
|
|
50408
50402
|
}
|
|
50409
50403
|
return I;
|
|
50410
50404
|
}, ke = (A, I) => Ke(pt(A, I)), Fn = (A, I) => {
|
|
@@ -50728,7 +50722,7 @@ function fhe() {
|
|
|
50728
50722
|
...ee,
|
|
50729
50723
|
table: I
|
|
50730
50724
|
});
|
|
50731
|
-
},
|
|
50725
|
+
}, Oe = (A, I) => Kd(A).getOr(I), et = (A, I, ee) => Oe(cc(A, I), ee), Et = (A, I, ee, fe) => {
|
|
50732
50726
|
const Qe = et(A, `padding-${ee}`, 0), Pt = et(A, `padding-${fe}`, 0), en = et(A, `border-${ee}-width`, 0), Rn = et(A, `border-${fe}-width`, 0);
|
|
50733
50727
|
return I - Qe - Pt - en - Rn;
|
|
50734
50728
|
}, Hn = (A, I) => {
|
|
@@ -51945,7 +51939,7 @@ Required: ` + I.join(", "));
|
|
|
51945
51939
|
var I;
|
|
51946
51940
|
const ee = (I = Wg.read()) !== null && I !== void 0 ? I : [];
|
|
51947
51941
|
return ur(ee, (fe) => oe.from(fe.getType(A)));
|
|
51948
|
-
}, Ai = () => jg(d0), Ki = () => jg(ah),
|
|
51942
|
+
}, Ai = () => jg(d0), Ki = () => jg(ah), st = (A) => (I) => {
|
|
51949
51943
|
const ee = () => {
|
|
51950
51944
|
I.setEnabled(A.selection.isEditable());
|
|
51951
51945
|
};
|
|
@@ -51956,7 +51950,7 @@ Required: ` + I.join(", "));
|
|
|
51956
51950
|
A.ui.registry.addMenuButton("table", {
|
|
51957
51951
|
tooltip: "Table",
|
|
51958
51952
|
icon: "table",
|
|
51959
|
-
onSetup:
|
|
51953
|
+
onSetup: st(A),
|
|
51960
51954
|
fetch: (Rn) => Rn("inserttable | cell row column | advtablesort | tableprops deletetable")
|
|
51961
51955
|
});
|
|
51962
51956
|
const ee = (Rn) => () => A.execCommand(Rn), fe = (Rn, ko) => {
|
|
@@ -52074,7 +52068,7 @@ Required: ` + I.join(", "));
|
|
|
52074
52068
|
tooltip: "Insert table",
|
|
52075
52069
|
command: "mceInsertTableDialog",
|
|
52076
52070
|
icon: "table",
|
|
52077
|
-
onSetup:
|
|
52071
|
+
onSetup: st(A)
|
|
52078
52072
|
});
|
|
52079
52073
|
const Pt = ih(ou(A));
|
|
52080
52074
|
Pt.length !== 0 && A.queryCommandSupported("mceTableToggleClass") && A.ui.registry.addMenuButton("tableclass", {
|
|
@@ -52595,16 +52589,16 @@ function ghe() {
|
|
|
52595
52589
|
}, Qt = (Ne, ze) => {
|
|
52596
52590
|
const Ke = kt(Ne, ze).join("").replace(/\s/g, "");
|
|
52597
52591
|
return to(Ke);
|
|
52598
|
-
},
|
|
52592
|
+
}, be = (Ne, ze) => () => ze(Ne.getBody(), Ne.schema), ot = (Ne, ze) => () => ze(Ne.selection.getRng().cloneContents(), Ne.schema), qt = (Ne) => be(Ne, Lt), rt = (Ne) => ({
|
|
52599
52593
|
body: {
|
|
52600
52594
|
getWordCount: qt(Ne),
|
|
52601
|
-
getCharacterCount:
|
|
52602
|
-
getCharacterCountWithoutSpaces:
|
|
52595
|
+
getCharacterCount: be(Ne, Kt),
|
|
52596
|
+
getCharacterCountWithoutSpaces: be(Ne, Qt)
|
|
52603
52597
|
},
|
|
52604
52598
|
selection: {
|
|
52605
|
-
getWordCount:
|
|
52606
|
-
getCharacterCount:
|
|
52607
|
-
getCharacterCountWithoutSpaces:
|
|
52599
|
+
getWordCount: ot(Ne, Lt),
|
|
52600
|
+
getCharacterCount: ot(Ne, Kt),
|
|
52601
|
+
getCharacterCountWithoutSpaces: ot(Ne, Qt)
|
|
52608
52602
|
},
|
|
52609
52603
|
getCount: qt(Ne)
|
|
52610
52604
|
}), sn = (Ne, ze) => {
|
|
@@ -52706,42 +52700,42 @@ var jte = {}, Xte;
|
|
|
52706
52700
|
function phe() {
|
|
52707
52701
|
return Xte || (Xte = 1, function() {
|
|
52708
52702
|
const u = (he) => {
|
|
52709
|
-
let
|
|
52703
|
+
let Oe = he;
|
|
52710
52704
|
return {
|
|
52711
|
-
get: () =>
|
|
52705
|
+
get: () => Oe,
|
|
52712
52706
|
set: (Hn) => {
|
|
52713
|
-
|
|
52707
|
+
Oe = Hn;
|
|
52714
52708
|
}
|
|
52715
52709
|
};
|
|
52716
52710
|
};
|
|
52717
52711
|
var o = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
52718
|
-
const i = (he) => ({ isFullscreen: () => he.get() !== null }), c = (he,
|
|
52712
|
+
const i = (he) => ({ isFullscreen: () => he.get() !== null }), c = (he, Oe, et) => {
|
|
52719
52713
|
var Et;
|
|
52720
|
-
return et(he,
|
|
52714
|
+
return et(he, Oe.prototype) ? !0 : ((Et = he.constructor) === null || Et === void 0 ? void 0 : Et.name) === Oe.name;
|
|
52721
52715
|
}, h = (he) => {
|
|
52722
|
-
const
|
|
52723
|
-
return he === null ? "null" :
|
|
52724
|
-
}, m = (he) => (
|
|
52725
|
-
}, le = (he,
|
|
52726
|
-
function at(he, ...
|
|
52716
|
+
const Oe = typeof he;
|
|
52717
|
+
return he === null ? "null" : Oe === "object" && Array.isArray(he) ? "array" : Oe === "object" && c(he, String, (et, Et) => Et.isPrototypeOf(et)) ? "string" : Oe;
|
|
52718
|
+
}, m = (he) => (Oe) => h(Oe) === he, O = (he) => (Oe) => typeof Oe === he, w = (he) => (Oe) => he === Oe, T = m("string"), P = m("object"), R = m("array"), F = w(null), H = O("boolean"), Y = w(void 0), me = (he) => he == null, De = (he) => !me(he), xe = O("function"), _e = O("number"), Je = () => {
|
|
52719
|
+
}, le = (he, Oe) => (...et) => he(Oe.apply(null, et)), Xe = (he, Oe) => (et) => he(Oe(et)), Xt = (he) => () => he;
|
|
52720
|
+
function at(he, ...Oe) {
|
|
52727
52721
|
return (...et) => {
|
|
52728
|
-
const Et =
|
|
52722
|
+
const Et = Oe.concat(et);
|
|
52729
52723
|
return he.apply(null, Et);
|
|
52730
52724
|
};
|
|
52731
52725
|
}
|
|
52732
52726
|
const oe = Xt(!1), At = Xt(!0);
|
|
52733
52727
|
class rn {
|
|
52734
|
-
constructor(
|
|
52735
|
-
this.tag =
|
|
52728
|
+
constructor(Oe, et) {
|
|
52729
|
+
this.tag = Oe, this.value = et;
|
|
52736
52730
|
}
|
|
52737
|
-
static some(
|
|
52738
|
-
return new rn(!0,
|
|
52731
|
+
static some(Oe) {
|
|
52732
|
+
return new rn(!0, Oe);
|
|
52739
52733
|
}
|
|
52740
52734
|
static none() {
|
|
52741
52735
|
return rn.singletonNone;
|
|
52742
52736
|
}
|
|
52743
|
-
fold(
|
|
52744
|
-
return this.tag ? et(this.value) :
|
|
52737
|
+
fold(Oe, et) {
|
|
52738
|
+
return this.tag ? et(this.value) : Oe();
|
|
52745
52739
|
}
|
|
52746
52740
|
isSome() {
|
|
52747
52741
|
return this.tag;
|
|
@@ -52749,40 +52743,40 @@ function phe() {
|
|
|
52749
52743
|
isNone() {
|
|
52750
52744
|
return !this.tag;
|
|
52751
52745
|
}
|
|
52752
|
-
map(
|
|
52753
|
-
return this.tag ? rn.some(
|
|
52746
|
+
map(Oe) {
|
|
52747
|
+
return this.tag ? rn.some(Oe(this.value)) : rn.none();
|
|
52754
52748
|
}
|
|
52755
|
-
bind(
|
|
52756
|
-
return this.tag ?
|
|
52749
|
+
bind(Oe) {
|
|
52750
|
+
return this.tag ? Oe(this.value) : rn.none();
|
|
52757
52751
|
}
|
|
52758
|
-
exists(
|
|
52759
|
-
return this.tag &&
|
|
52752
|
+
exists(Oe) {
|
|
52753
|
+
return this.tag && Oe(this.value);
|
|
52760
52754
|
}
|
|
52761
|
-
forall(
|
|
52762
|
-
return !this.tag ||
|
|
52755
|
+
forall(Oe) {
|
|
52756
|
+
return !this.tag || Oe(this.value);
|
|
52763
52757
|
}
|
|
52764
|
-
filter(
|
|
52765
|
-
return !this.tag ||
|
|
52758
|
+
filter(Oe) {
|
|
52759
|
+
return !this.tag || Oe(this.value) ? this : rn.none();
|
|
52766
52760
|
}
|
|
52767
|
-
getOr(
|
|
52768
|
-
return this.tag ? this.value :
|
|
52761
|
+
getOr(Oe) {
|
|
52762
|
+
return this.tag ? this.value : Oe;
|
|
52769
52763
|
}
|
|
52770
|
-
or(
|
|
52771
|
-
return this.tag ? this :
|
|
52764
|
+
or(Oe) {
|
|
52765
|
+
return this.tag ? this : Oe;
|
|
52772
52766
|
}
|
|
52773
|
-
getOrThunk(
|
|
52774
|
-
return this.tag ? this.value :
|
|
52767
|
+
getOrThunk(Oe) {
|
|
52768
|
+
return this.tag ? this.value : Oe();
|
|
52775
52769
|
}
|
|
52776
|
-
orThunk(
|
|
52777
|
-
return this.tag ? this :
|
|
52770
|
+
orThunk(Oe) {
|
|
52771
|
+
return this.tag ? this : Oe();
|
|
52778
52772
|
}
|
|
52779
|
-
getOrDie(
|
|
52773
|
+
getOrDie(Oe) {
|
|
52780
52774
|
if (this.tag)
|
|
52781
52775
|
return this.value;
|
|
52782
|
-
throw new Error(
|
|
52776
|
+
throw new Error(Oe ?? "Called getOrDie on None");
|
|
52783
52777
|
}
|
|
52784
|
-
static from(
|
|
52785
|
-
return De(
|
|
52778
|
+
static from(Oe) {
|
|
52779
|
+
return De(Oe) ? rn.some(Oe) : rn.none();
|
|
52786
52780
|
}
|
|
52787
52781
|
getOrNull() {
|
|
52788
52782
|
return this.tag ? this.value : null;
|
|
@@ -52790,8 +52784,8 @@ function phe() {
|
|
|
52790
52784
|
getOrUndefined() {
|
|
52791
52785
|
return this.value;
|
|
52792
52786
|
}
|
|
52793
|
-
each(
|
|
52794
|
-
this.tag &&
|
|
52787
|
+
each(Oe) {
|
|
52788
|
+
this.tag && Oe(this.value);
|
|
52795
52789
|
}
|
|
52796
52790
|
toArray() {
|
|
52797
52791
|
return this.tag ? [this.value] : [];
|
|
@@ -52801,68 +52795,68 @@ function phe() {
|
|
|
52801
52795
|
}
|
|
52802
52796
|
}
|
|
52803
52797
|
rn.singletonNone = new rn(!1);
|
|
52804
|
-
const cn = Array.prototype.push, je = (he,
|
|
52798
|
+
const cn = Array.prototype.push, je = (he, Oe) => {
|
|
52805
52799
|
const et = he.length, Et = new Array(et);
|
|
52806
52800
|
for (let Hn = 0; Hn < et; Hn++) {
|
|
52807
52801
|
const as = he[Hn];
|
|
52808
|
-
Et[Hn] =
|
|
52802
|
+
Et[Hn] = Oe(as, Hn);
|
|
52809
52803
|
}
|
|
52810
52804
|
return Et;
|
|
52811
|
-
}, ye = (he,
|
|
52805
|
+
}, ye = (he, Oe) => {
|
|
52812
52806
|
for (let et = 0, Et = he.length; et < Et; et++) {
|
|
52813
52807
|
const Hn = he[et];
|
|
52814
|
-
|
|
52808
|
+
Oe(Hn, et);
|
|
52815
52809
|
}
|
|
52816
|
-
}, Kn = (he,
|
|
52810
|
+
}, Kn = (he, Oe) => {
|
|
52817
52811
|
const et = [];
|
|
52818
52812
|
for (let Et = 0, Hn = he.length; Et < Hn; Et++) {
|
|
52819
52813
|
const as = he[Et];
|
|
52820
|
-
|
|
52814
|
+
Oe(as, Et) && et.push(as);
|
|
52821
52815
|
}
|
|
52822
52816
|
return et;
|
|
52823
|
-
}, dt = (he,
|
|
52817
|
+
}, dt = (he, Oe, et) => {
|
|
52824
52818
|
for (let Et = 0, Hn = he.length; Et < Hn; Et++) {
|
|
52825
52819
|
const as = he[Et];
|
|
52826
|
-
if (
|
|
52820
|
+
if (Oe(as, Et))
|
|
52827
52821
|
return rn.some(as);
|
|
52828
52822
|
if (et(as, Et))
|
|
52829
52823
|
break;
|
|
52830
52824
|
}
|
|
52831
52825
|
return rn.none();
|
|
52832
|
-
}, kt = (he,
|
|
52833
|
-
const
|
|
52826
|
+
}, kt = (he, Oe) => dt(he, Oe, oe), Q = (he) => {
|
|
52827
|
+
const Oe = [];
|
|
52834
52828
|
for (let et = 0, Et = he.length; et < Et; ++et) {
|
|
52835
52829
|
if (!R(he[et]))
|
|
52836
52830
|
throw new Error("Arr.flatten item " + et + " was not an array, input: " + he);
|
|
52837
|
-
cn.apply(
|
|
52831
|
+
cn.apply(Oe, he[et]);
|
|
52838
52832
|
}
|
|
52839
|
-
return
|
|
52840
|
-
}, to = (he,
|
|
52833
|
+
return Oe;
|
|
52834
|
+
}, to = (he, Oe) => Q(je(he, Oe)), Lt = (he, Oe) => Oe >= 0 && Oe < he.length ? rn.some(he[Oe]) : rn.none(), Kt = (he) => Lt(he, 0), Qt = (he, Oe) => {
|
|
52841
52835
|
for (let et = 0; et < he.length; et++) {
|
|
52842
|
-
const Et =
|
|
52836
|
+
const Et = Oe(he[et], et);
|
|
52843
52837
|
if (Et.isSome())
|
|
52844
52838
|
return Et;
|
|
52845
52839
|
}
|
|
52846
52840
|
return rn.none();
|
|
52847
|
-
},
|
|
52848
|
-
const
|
|
52841
|
+
}, be = (he, Oe, et) => he.isSome() && Oe.isSome() ? rn.some(et(he.getOrDie(), Oe.getOrDie())) : rn.none(), ot = (he) => {
|
|
52842
|
+
const Oe = u(rn.none()), et = () => Oe.get().each(he);
|
|
52849
52843
|
return {
|
|
52850
52844
|
clear: () => {
|
|
52851
|
-
et(),
|
|
52845
|
+
et(), Oe.set(rn.none());
|
|
52852
52846
|
},
|
|
52853
|
-
isSet: () =>
|
|
52854
|
-
get: () =>
|
|
52847
|
+
isSet: () => Oe.get().isSome(),
|
|
52848
|
+
get: () => Oe.get(),
|
|
52855
52849
|
set: (tr) => {
|
|
52856
|
-
et(),
|
|
52850
|
+
et(), Oe.set(rn.some(tr));
|
|
52857
52851
|
}
|
|
52858
52852
|
};
|
|
52859
|
-
}, qt = () =>
|
|
52860
|
-
const he =
|
|
52853
|
+
}, qt = () => ot((he) => he.unbind()), rt = () => {
|
|
52854
|
+
const he = ot(Je);
|
|
52861
52855
|
return {
|
|
52862
52856
|
...he,
|
|
52863
52857
|
on: (et) => he.get().each(et)
|
|
52864
52858
|
};
|
|
52865
|
-
}, sn = (he,
|
|
52859
|
+
}, sn = (he, Oe) => {
|
|
52866
52860
|
let et = null;
|
|
52867
52861
|
return {
|
|
52868
52862
|
cancel: () => {
|
|
@@ -52871,58 +52865,58 @@ function phe() {
|
|
|
52871
52865
|
throttle: (...as) => {
|
|
52872
52866
|
F(et) && (et = setTimeout(() => {
|
|
52873
52867
|
et = null, he.apply(null, as);
|
|
52874
|
-
},
|
|
52868
|
+
}, Oe));
|
|
52875
52869
|
}
|
|
52876
52870
|
};
|
|
52877
|
-
}, Ue = Object.keys, pt = (he,
|
|
52871
|
+
}, Ue = Object.keys, pt = (he, Oe) => {
|
|
52878
52872
|
const et = Ue(he);
|
|
52879
52873
|
for (let Et = 0, Hn = et.length; Et < Hn; Et++) {
|
|
52880
52874
|
const as = et[Et], Io = he[as];
|
|
52881
|
-
|
|
52875
|
+
Oe(Io, as);
|
|
52882
52876
|
}
|
|
52883
|
-
}, K = typeof window < "u" ? window : Function("return this;")(), us = (he,
|
|
52884
|
-
let et =
|
|
52877
|
+
}, K = typeof window < "u" ? window : Function("return this;")(), us = (he, Oe) => {
|
|
52878
|
+
let et = Oe ?? K;
|
|
52885
52879
|
for (let Et = 0; Et < he.length && et !== void 0 && et !== null; ++Et)
|
|
52886
52880
|
et = et[he[Et]];
|
|
52887
52881
|
return et;
|
|
52888
|
-
}, Oo = (he,
|
|
52882
|
+
}, Oo = (he, Oe) => {
|
|
52889
52883
|
const et = he.split(".");
|
|
52890
|
-
return us(et,
|
|
52891
|
-
}, xo = (he,
|
|
52892
|
-
const et = xo(he,
|
|
52884
|
+
return us(et, Oe);
|
|
52885
|
+
}, xo = (he, Oe) => Oo(he, Oe), Xo = (he, Oe) => {
|
|
52886
|
+
const et = xo(he, Oe);
|
|
52893
52887
|
if (et == null)
|
|
52894
52888
|
throw new Error(he + " not available on this browser");
|
|
52895
52889
|
return et;
|
|
52896
52890
|
}, _i = Object.getPrototypeOf, Ne = (he) => Xo("HTMLElement", he), ze = (he) => {
|
|
52897
|
-
const
|
|
52898
|
-
return P(he) && (Ne(
|
|
52899
|
-
}, Ke = 9, ke = 11, Fn = 1, vo = 3, yn = (he) => he.dom.nodeType, Ps = (he) => (
|
|
52891
|
+
const Oe = Oo("ownerDocument.defaultView", he);
|
|
52892
|
+
return P(he) && (Ne(Oe).prototype.isPrototypeOf(he) || /^HTML\w*Element$/.test(_i(he).constructor.name));
|
|
52893
|
+
}, Ke = 9, ke = 11, Fn = 1, vo = 3, yn = (he) => he.dom.nodeType, Ps = (he) => (Oe) => yn(Oe) === he, Co = (he) => ur(he) && ze(he.dom), ur = Ps(Fn), Ko = Ps(vo), Us = Ps(ke), oa = (he, Oe, et) => {
|
|
52900
52894
|
if (T(et) || H(et) || _e(et))
|
|
52901
|
-
he.setAttribute(
|
|
52895
|
+
he.setAttribute(Oe, et + "");
|
|
52902
52896
|
else
|
|
52903
|
-
throw console.error("Invalid call to Attribute.set. Key ",
|
|
52904
|
-
}, Js = (he,
|
|
52905
|
-
oa(he.dom,
|
|
52906
|
-
}, ss = (he,
|
|
52907
|
-
const et = he.dom.getAttribute(
|
|
52897
|
+
throw console.error("Invalid call to Attribute.set. Key ", Oe, ":: Value ", et, ":: Element ", he), new Error("Attribute value was not simple");
|
|
52898
|
+
}, Js = (he, Oe, et) => {
|
|
52899
|
+
oa(he.dom, Oe, et);
|
|
52900
|
+
}, ss = (he, Oe) => {
|
|
52901
|
+
const et = he.dom.getAttribute(Oe);
|
|
52908
52902
|
return et === null ? void 0 : et;
|
|
52909
|
-
}, rs = (he,
|
|
52910
|
-
he.dom.removeAttribute(
|
|
52911
|
-
}, Rr = (he) => he.dom.classList !== void 0, Fs = (he,
|
|
52912
|
-
const Hn = he.indexOf(
|
|
52913
|
-
return Hn !== -1 ? Y(Et) ? !0 : Hn +
|
|
52914
|
-
}, Ya = (he) => he.style !== void 0 && xe(he.style.getPropertyValue), No = (he,
|
|
52915
|
-
const Et = (
|
|
52903
|
+
}, rs = (he, Oe) => {
|
|
52904
|
+
he.dom.removeAttribute(Oe);
|
|
52905
|
+
}, Rr = (he) => he.dom.classList !== void 0, Fs = (he, Oe) => Rr(he) && he.dom.classList.contains(Oe), Bo = (he, Oe, et = 0, Et) => {
|
|
52906
|
+
const Hn = he.indexOf(Oe, et);
|
|
52907
|
+
return Hn !== -1 ? Y(Et) ? !0 : Hn + Oe.length <= Et : !1;
|
|
52908
|
+
}, Ya = (he) => he.style !== void 0 && xe(he.style.getPropertyValue), No = (he, Oe) => {
|
|
52909
|
+
const Et = (Oe || document).createElement("div");
|
|
52916
52910
|
if (Et.innerHTML = he, !Et.hasChildNodes() || Et.childNodes.length > 1) {
|
|
52917
52911
|
const Hn = "HTML does not have a single root node";
|
|
52918
52912
|
throw console.error(Hn, he), new Error(Hn);
|
|
52919
52913
|
}
|
|
52920
52914
|
return pi(Et.childNodes[0]);
|
|
52921
|
-
}, Ns = (he,
|
|
52922
|
-
const Et = (
|
|
52915
|
+
}, Ns = (he, Oe) => {
|
|
52916
|
+
const Et = (Oe || document).createElement(he);
|
|
52923
52917
|
return pi(Et);
|
|
52924
|
-
}, Fr = (he,
|
|
52925
|
-
const Et = (
|
|
52918
|
+
}, Fr = (he, Oe) => {
|
|
52919
|
+
const Et = (Oe || document).createTextNode(he);
|
|
52926
52920
|
return pi(Et);
|
|
52927
52921
|
}, pi = (he) => {
|
|
52928
52922
|
if (he == null)
|
|
@@ -52933,28 +52927,28 @@ function phe() {
|
|
|
52933
52927
|
fromTag: Ns,
|
|
52934
52928
|
fromText: Fr,
|
|
52935
52929
|
fromDom: pi,
|
|
52936
|
-
fromPoint: (he,
|
|
52937
|
-
}, Ka = (he,
|
|
52930
|
+
fromPoint: (he, Oe, et) => rn.from(he.dom.elementFromPoint(Oe, et)).map(pi)
|
|
52931
|
+
}, Ka = (he, Oe) => {
|
|
52938
52932
|
const et = he.dom;
|
|
52939
52933
|
if (et.nodeType !== Fn)
|
|
52940
52934
|
return !1;
|
|
52941
52935
|
{
|
|
52942
52936
|
const Et = et;
|
|
52943
52937
|
if (Et.matches !== void 0)
|
|
52944
|
-
return Et.matches(
|
|
52938
|
+
return Et.matches(Oe);
|
|
52945
52939
|
if (Et.msMatchesSelector !== void 0)
|
|
52946
|
-
return Et.msMatchesSelector(
|
|
52940
|
+
return Et.msMatchesSelector(Oe);
|
|
52947
52941
|
if (Et.webkitMatchesSelector !== void 0)
|
|
52948
|
-
return Et.webkitMatchesSelector(
|
|
52942
|
+
return Et.webkitMatchesSelector(Oe);
|
|
52949
52943
|
if (Et.mozMatchesSelector !== void 0)
|
|
52950
|
-
return Et.mozMatchesSelector(
|
|
52944
|
+
return Et.mozMatchesSelector(Oe);
|
|
52951
52945
|
throw new Error("Browser lacks native selectors");
|
|
52952
52946
|
}
|
|
52953
|
-
}, jt = (he) => he.nodeType !== Fn && he.nodeType !== Ke && he.nodeType !== ke || he.childElementCount === 0, zo = (he,
|
|
52947
|
+
}, jt = (he) => he.nodeType !== Fn && he.nodeType !== Ke && he.nodeType !== ke || he.childElementCount === 0, zo = (he, Oe) => {
|
|
52954
52948
|
const et = document;
|
|
52955
52949
|
return jt(et) ? [] : je(et.querySelectorAll(he), Lo.fromDom);
|
|
52956
|
-
}, Kr = (he,
|
|
52957
|
-
const et = xe(
|
|
52950
|
+
}, Kr = (he, Oe) => he.dom === Oe.dom, Mr = (he) => Lo.fromDom(he.dom.ownerDocument), Ei = (he) => rn.from(he.dom.parentNode).map(Lo.fromDom), Qi = (he, Oe) => {
|
|
52951
|
+
const et = xe(Oe) ? Oe : oe;
|
|
52958
52952
|
let Et = he.dom;
|
|
52959
52953
|
const Hn = [];
|
|
52960
52954
|
for (; Et.parentNode !== null && Et.parentNode !== void 0; ) {
|
|
@@ -52965,15 +52959,15 @@ function phe() {
|
|
|
52965
52959
|
}
|
|
52966
52960
|
return Hn;
|
|
52967
52961
|
}, Ts = (he) => {
|
|
52968
|
-
const
|
|
52969
|
-
return Ei(he).map($i).map(
|
|
52962
|
+
const Oe = (et) => Kn(et, (Et) => !Kr(he, Et));
|
|
52963
|
+
return Ei(he).map($i).map(Oe).getOr([]);
|
|
52970
52964
|
}, Fi = (he) => rn.from(he.dom.nextSibling).map(Lo.fromDom), $i = (he) => je(he.dom.childNodes, Lo.fromDom), xs = (he) => Us(he) && De(he.dom.host), jn = (he) => Lo.fromDom(he.dom.getRootNode()), er = (he) => {
|
|
52971
|
-
const
|
|
52972
|
-
return xs(
|
|
52965
|
+
const Oe = jn(he);
|
|
52966
|
+
return xs(Oe) ? rn.some(Oe) : rn.none();
|
|
52973
52967
|
}, di = (he) => Lo.fromDom(he.dom.host), Pl = (he) => {
|
|
52974
52968
|
if (De(he.target)) {
|
|
52975
|
-
const
|
|
52976
|
-
if (ur(
|
|
52969
|
+
const Oe = Lo.fromDom(he.target);
|
|
52970
|
+
if (ur(Oe) && Vl(Oe) && he.composed && he.composedPath) {
|
|
52977
52971
|
const et = he.composedPath();
|
|
52978
52972
|
if (et)
|
|
52979
52973
|
return Kt(et);
|
|
@@ -52981,54 +52975,54 @@ function phe() {
|
|
|
52981
52975
|
}
|
|
52982
52976
|
return rn.from(he.target);
|
|
52983
52977
|
}, Vl = (he) => De(he.dom.shadowRoot), Ls = (he) => {
|
|
52984
|
-
const
|
|
52985
|
-
if (
|
|
52978
|
+
const Oe = Ko(he) ? he.dom.parentNode : he.dom;
|
|
52979
|
+
if (Oe == null || Oe.ownerDocument === null)
|
|
52986
52980
|
return !1;
|
|
52987
|
-
const et =
|
|
52988
|
-
return er(Lo.fromDom(
|
|
52981
|
+
const et = Oe.ownerDocument;
|
|
52982
|
+
return er(Lo.fromDom(Oe)).fold(() => et.body.contains(Oe), Xe(Ls, di));
|
|
52989
52983
|
}, Or = (he) => {
|
|
52990
|
-
const
|
|
52991
|
-
if (
|
|
52984
|
+
const Oe = he.dom.body;
|
|
52985
|
+
if (Oe == null)
|
|
52992
52986
|
throw new Error("Body is not available yet");
|
|
52993
|
-
return Lo.fromDom(
|
|
52994
|
-
}, Ws = (he,
|
|
52987
|
+
return Lo.fromDom(Oe);
|
|
52988
|
+
}, Ws = (he, Oe, et) => {
|
|
52995
52989
|
if (!T(et))
|
|
52996
|
-
throw console.error("Invalid call to CSS.set. Property ",
|
|
52997
|
-
Ya(he) && he.style.setProperty(
|
|
52998
|
-
}, bi = (he,
|
|
52990
|
+
throw console.error("Invalid call to CSS.set. Property ", Oe, ":: Value ", et, ":: Element ", he), new Error("CSS value must be a string: " + et);
|
|
52991
|
+
Ya(he) && he.style.setProperty(Oe, et);
|
|
52992
|
+
}, bi = (he, Oe, et) => {
|
|
52999
52993
|
const Et = he.dom;
|
|
53000
|
-
Ws(Et,
|
|
53001
|
-
}, sa = (he,
|
|
52994
|
+
Ws(Et, Oe, et);
|
|
52995
|
+
}, sa = (he, Oe) => {
|
|
53002
52996
|
const et = he.dom;
|
|
53003
|
-
pt(
|
|
52997
|
+
pt(Oe, (Et, Hn) => {
|
|
53004
52998
|
Ws(et, Hn, Et);
|
|
53005
52999
|
});
|
|
53006
|
-
}, vr = (he,
|
|
53007
|
-
const et = he.dom, Hn = window.getComputedStyle(et).getPropertyValue(
|
|
53008
|
-
return Hn === "" && !Ls(he) ? Pe(et,
|
|
53009
|
-
}, Pe = (he,
|
|
53000
|
+
}, vr = (he, Oe) => {
|
|
53001
|
+
const et = he.dom, Hn = window.getComputedStyle(et).getPropertyValue(Oe);
|
|
53002
|
+
return Hn === "" && !Ls(he) ? Pe(et, Oe) : Hn;
|
|
53003
|
+
}, Pe = (he, Oe) => Ya(he) ? he.style.getPropertyValue(Oe) : "", Te = (he, Oe, et, Et, Hn, as, Io) => ({
|
|
53010
53004
|
target: he,
|
|
53011
|
-
x:
|
|
53005
|
+
x: Oe,
|
|
53012
53006
|
y: et,
|
|
53013
53007
|
stop: Et,
|
|
53014
53008
|
prevent: Hn,
|
|
53015
53009
|
kill: as,
|
|
53016
53010
|
raw: Io
|
|
53017
53011
|
}), ut = (he) => {
|
|
53018
|
-
const
|
|
53019
|
-
return Te(
|
|
53020
|
-
}, bt = (he,
|
|
53021
|
-
he(et) &&
|
|
53022
|
-
}, Wn = (he,
|
|
53012
|
+
const Oe = Lo.fromDom(Pl(he).getOr(he.target)), et = () => he.stopPropagation(), Et = () => he.preventDefault(), Hn = le(Et, et);
|
|
53013
|
+
return Te(Oe, he.clientX, he.clientY, et, Et, Hn, he);
|
|
53014
|
+
}, bt = (he, Oe) => (et) => {
|
|
53015
|
+
he(et) && Oe(ut(et));
|
|
53016
|
+
}, Wn = (he, Oe, et, Et, Hn) => {
|
|
53023
53017
|
const as = bt(et, Et);
|
|
53024
|
-
return he.dom.addEventListener(
|
|
53025
|
-
}, ao = (he,
|
|
53026
|
-
he.dom.removeEventListener(
|
|
53027
|
-
}, js = At, Dt = (he,
|
|
53028
|
-
let
|
|
53029
|
-
return (...Et) => (
|
|
53030
|
-
}, Re = (he,
|
|
53031
|
-
const Hn = he.isiOS() && /ipad/i.test(et) === !0, as = he.isiOS() && !Hn, Io = he.isiOS() || he.isAndroid(), tr = Io || Et("(pointer:coarse)"), ri = Hn || !as && Io && Et("(min-device-width:768px)"), Ja = as || Io && !ri, Ba =
|
|
53018
|
+
return he.dom.addEventListener(Oe, as, Hn), { unbind: at(To, he, Oe, as, Hn) };
|
|
53019
|
+
}, ao = (he, Oe, et, Et) => Wn(he, Oe, et, Et, !1), To = (he, Oe, et, Et) => {
|
|
53020
|
+
he.dom.removeEventListener(Oe, et, Et);
|
|
53021
|
+
}, js = At, Dt = (he, Oe, et) => ao(he, Oe, js, et), Ot = (he) => {
|
|
53022
|
+
let Oe = !1, et;
|
|
53023
|
+
return (...Et) => (Oe || (Oe = !0, et = he.apply(null, Et)), et);
|
|
53024
|
+
}, Re = (he, Oe, et, Et) => {
|
|
53025
|
+
const Hn = he.isiOS() && /ipad/i.test(et) === !0, as = he.isiOS() && !Hn, Io = he.isiOS() || he.isAndroid(), tr = Io || Et("(pointer:coarse)"), ri = Hn || !as && Io && Et("(min-device-width:768px)"), Ja = as || Io && !ri, Ba = Oe.isSafari() && he.isiOS() && /safari/i.test(et) === !1, yr = !Ja && !ri && !Ba;
|
|
53032
53026
|
return {
|
|
53033
53027
|
isiPad: Xt(Hn),
|
|
53034
53028
|
isiPhone: Xt(as),
|
|
@@ -53040,32 +53034,32 @@ function phe() {
|
|
|
53040
53034
|
isWebView: Xt(Ba),
|
|
53041
53035
|
isDesktop: Xt(yr)
|
|
53042
53036
|
};
|
|
53043
|
-
}, Le = (he,
|
|
53037
|
+
}, Le = (he, Oe) => {
|
|
53044
53038
|
for (let et = 0; et < he.length; et++) {
|
|
53045
53039
|
const Et = he[et];
|
|
53046
|
-
if (Et.test(
|
|
53040
|
+
if (Et.test(Oe))
|
|
53047
53041
|
return Et;
|
|
53048
53042
|
}
|
|
53049
|
-
}, Nt = (he,
|
|
53050
|
-
const et = Le(he,
|
|
53043
|
+
}, Nt = (he, Oe) => {
|
|
53044
|
+
const et = Le(he, Oe);
|
|
53051
53045
|
if (!et)
|
|
53052
53046
|
return {
|
|
53053
53047
|
major: 0,
|
|
53054
53048
|
minor: 0
|
|
53055
53049
|
};
|
|
53056
|
-
const Et = (Hn) => Number(
|
|
53050
|
+
const Et = (Hn) => Number(Oe.replace(et, "$" + Hn));
|
|
53057
53051
|
return Nn(Et(1), Et(2));
|
|
53058
|
-
}, Ht = (he,
|
|
53059
|
-
const et = String(
|
|
53052
|
+
}, Ht = (he, Oe) => {
|
|
53053
|
+
const et = String(Oe).toLowerCase();
|
|
53060
53054
|
return he.length === 0 ? gn() : Nt(he, et);
|
|
53061
|
-
}, gn = () => Nn(0, 0), Nn = (he,
|
|
53055
|
+
}, gn = () => Nn(0, 0), Nn = (he, Oe) => ({
|
|
53062
53056
|
major: he,
|
|
53063
|
-
minor:
|
|
53057
|
+
minor: Oe
|
|
53064
53058
|
}), Ln = {
|
|
53065
53059
|
nu: Nn,
|
|
53066
53060
|
detect: Ht,
|
|
53067
53061
|
unknown: gn
|
|
53068
|
-
}, Dn = (he,
|
|
53062
|
+
}, Dn = (he, Oe) => Qt(Oe.brands, (et) => {
|
|
53069
53063
|
const Et = et.brand.toLowerCase();
|
|
53070
53064
|
return kt(he, (Hn) => {
|
|
53071
53065
|
var as;
|
|
@@ -53074,22 +53068,22 @@ function phe() {
|
|
|
53074
53068
|
current: Hn.name,
|
|
53075
53069
|
version: Ln.nu(parseInt(et.version, 10), 0)
|
|
53076
53070
|
}));
|
|
53077
|
-
}), Jn = (he,
|
|
53078
|
-
const et = String(
|
|
53071
|
+
}), Jn = (he, Oe) => {
|
|
53072
|
+
const et = String(Oe).toLowerCase();
|
|
53079
53073
|
return kt(he, (Et) => Et.search(et));
|
|
53080
|
-
}, lo = (he,
|
|
53081
|
-
const Et = Ln.detect(et.versionRegexes,
|
|
53074
|
+
}, lo = (he, Oe) => Jn(he, Oe).map((et) => {
|
|
53075
|
+
const Et = Ln.detect(et.versionRegexes, Oe);
|
|
53082
53076
|
return {
|
|
53083
53077
|
current: et.name,
|
|
53084
53078
|
version: Et
|
|
53085
53079
|
};
|
|
53086
|
-
}), ds = (he,
|
|
53087
|
-
const Et = Ln.detect(et.versionRegexes,
|
|
53080
|
+
}), ds = (he, Oe) => Jn(he, Oe).map((et) => {
|
|
53081
|
+
const Et = Ln.detect(et.versionRegexes, Oe);
|
|
53088
53082
|
return {
|
|
53089
53083
|
current: et.name,
|
|
53090
53084
|
version: Et
|
|
53091
53085
|
};
|
|
53092
|
-
}), ar = /.*?version\/\ ?([0-9]+)\.([0-9]+).*/, Ss = (he) => (
|
|
53086
|
+
}), ar = /.*?version\/\ ?([0-9]+)\.([0-9]+).*/, Ss = (he) => (Oe) => Bo(Oe, he), Da = [
|
|
53093
53087
|
{
|
|
53094
53088
|
name: "Edge",
|
|
53095
53089
|
versionRegexes: [/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],
|
|
@@ -53185,9 +53179,9 @@ function phe() {
|
|
|
53185
53179
|
current: void 0,
|
|
53186
53180
|
version: Ln.unknown()
|
|
53187
53181
|
}), pl = (he) => {
|
|
53188
|
-
const
|
|
53182
|
+
const Oe = he.current, et = he.version, Et = (Hn) => () => Oe === Hn;
|
|
53189
53183
|
return {
|
|
53190
|
-
current:
|
|
53184
|
+
current: Oe,
|
|
53191
53185
|
version: et,
|
|
53192
53186
|
isEdge: Et(Fo),
|
|
53193
53187
|
isChromium: Et(Ho),
|
|
@@ -53203,9 +53197,9 @@ function phe() {
|
|
|
53203
53197
|
current: void 0,
|
|
53204
53198
|
version: Ln.unknown()
|
|
53205
53199
|
}), Fu = (he) => {
|
|
53206
|
-
const
|
|
53200
|
+
const Oe = he.current, et = he.version, Et = (Hn) => () => Oe === Hn;
|
|
53207
53201
|
return {
|
|
53208
|
-
current:
|
|
53202
|
+
current: Oe,
|
|
53209
53203
|
version: et,
|
|
53210
53204
|
isWindows: Et(Jo),
|
|
53211
53205
|
isiOS: Et(zl),
|
|
@@ -53219,8 +53213,8 @@ function phe() {
|
|
|
53219
53213
|
}, lc = {
|
|
53220
53214
|
unknown: Ra,
|
|
53221
53215
|
nu: Fu
|
|
53222
|
-
}, Jr = { detect: (he,
|
|
53223
|
-
const Et = So.browsers(), Hn = So.oses(), as =
|
|
53216
|
+
}, Jr = { detect: (he, Oe, et) => {
|
|
53217
|
+
const Et = So.browsers(), Hn = So.oses(), as = Oe.bind((ri) => Dn(Et, ri)).orThunk(() => lo(Et, he)).fold(eu.unknown, eu.nu), Io = ds(Hn, he).fold(lc.unknown, lc.nu), tr = Re(Io, as, he, et);
|
|
53224
53218
|
return {
|
|
53225
53219
|
browser: as,
|
|
53226
53220
|
os: Io,
|
|
@@ -53228,63 +53222,63 @@ function phe() {
|
|
|
53228
53222
|
};
|
|
53229
53223
|
} }, Al = (he) => window.matchMedia(he).matches;
|
|
53230
53224
|
let Sc = Ot(() => Jr.detect(window.navigator.userAgent, rn.from(window.navigator.userAgentData), Al));
|
|
53231
|
-
const Zu = () => Sc(), cc = (he,
|
|
53225
|
+
const Zu = () => Sc(), cc = (he, Oe) => ({
|
|
53232
53226
|
left: he,
|
|
53233
|
-
top:
|
|
53234
|
-
translate: (Et, Hn) => cc(he + Et,
|
|
53227
|
+
top: Oe,
|
|
53228
|
+
translate: (Et, Hn) => cc(he + Et, Oe + Hn)
|
|
53235
53229
|
}), uc = cc, Wr = (he) => {
|
|
53236
|
-
const
|
|
53230
|
+
const Oe = he !== void 0 ? he.dom : document, et = Oe.body.scrollLeft || Oe.documentElement.scrollLeft, Et = Oe.body.scrollTop || Oe.documentElement.scrollTop;
|
|
53237
53231
|
return uc(et, Et);
|
|
53238
53232
|
}, jr = (he) => {
|
|
53239
|
-
const
|
|
53240
|
-
return Zu().browser.isFirefox() ? rn.none() : rn.from(
|
|
53241
|
-
}, pa = (he,
|
|
53233
|
+
const Oe = he === void 0 ? window : he;
|
|
53234
|
+
return Zu().browser.isFirefox() ? rn.none() : rn.from(Oe.visualViewport);
|
|
53235
|
+
}, pa = (he, Oe, et, Et) => ({
|
|
53242
53236
|
x: he,
|
|
53243
|
-
y:
|
|
53237
|
+
y: Oe,
|
|
53244
53238
|
width: et,
|
|
53245
53239
|
height: Et,
|
|
53246
53240
|
right: he + et,
|
|
53247
|
-
bottom:
|
|
53241
|
+
bottom: Oe + Et
|
|
53248
53242
|
}), Rc = (he) => {
|
|
53249
|
-
const
|
|
53250
|
-
return jr(
|
|
53251
|
-
const Hn =
|
|
53243
|
+
const Oe = he === void 0 ? window : he, et = Oe.document, Et = Wr(Lo.fromDom(et));
|
|
53244
|
+
return jr(Oe).fold(() => {
|
|
53245
|
+
const Hn = Oe.document.documentElement, as = Hn.clientWidth, Io = Hn.clientHeight;
|
|
53252
53246
|
return pa(Et.left, Et.top, as, Io);
|
|
53253
53247
|
}, (Hn) => pa(Math.max(Hn.pageLeft, Et.left), Math.max(Hn.pageTop, Et.top), Hn.width, Hn.height));
|
|
53254
|
-
}, Mc = (he,
|
|
53255
|
-
const Hn = (as) =>
|
|
53248
|
+
}, Mc = (he, Oe, et) => jr(et).map((Et) => {
|
|
53249
|
+
const Hn = (as) => Oe(ut(as));
|
|
53256
53250
|
return Et.addEventListener(he, Hn), { unbind: () => Et.removeEventListener(he, Hn) };
|
|
53257
53251
|
}).getOrThunk(() => ({ unbind: Je }));
|
|
53258
53252
|
var se = tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"), Ee = tinymce.util.Tools.resolve("tinymce.Env");
|
|
53259
|
-
const Ve = (he,
|
|
53260
|
-
he.dispatch("FullscreenStateChanged", { state:
|
|
53261
|
-
}, wt = (he) => (
|
|
53262
|
-
const
|
|
53263
|
-
|
|
53253
|
+
const Ve = (he, Oe) => {
|
|
53254
|
+
he.dispatch("FullscreenStateChanged", { state: Oe }), he.dispatch("ResizeEditor");
|
|
53255
|
+
}, wt = (he) => (Oe) => Oe.options.get(he), Jt = (he) => {
|
|
53256
|
+
const Oe = he.options.register;
|
|
53257
|
+
Oe("fullscreen_native", {
|
|
53264
53258
|
processor: "boolean",
|
|
53265
53259
|
default: !1
|
|
53266
53260
|
});
|
|
53267
53261
|
}, Tn = wt("fullscreen_native"), dn = (he) => {
|
|
53268
|
-
const
|
|
53269
|
-
return er(
|
|
53262
|
+
const Oe = Lo.fromDom(he.getElement());
|
|
53263
|
+
return er(Oe).map(di).getOrThunk(() => Or(Mr(Oe)));
|
|
53270
53264
|
}, co = (he) => he.fullscreenElement !== void 0 ? he.fullscreenElement : he.msFullscreenElement !== void 0 ? he.msFullscreenElement : he.webkitFullscreenElement !== void 0 ? he.webkitFullscreenElement : null, mo = () => document.fullscreenElement !== void 0 ? "fullscreenchange" : document.msFullscreenElement !== void 0 ? "MSFullscreenChange" : document.webkitFullscreenElement !== void 0 ? "webkitfullscreenchange" : "fullscreenchange", is = (he) => {
|
|
53271
|
-
const
|
|
53272
|
-
|
|
53265
|
+
const Oe = he.dom;
|
|
53266
|
+
Oe.requestFullscreen ? Oe.requestFullscreen() : Oe.msRequestFullscreen ? Oe.msRequestFullscreen() : Oe.webkitRequestFullScreen && Oe.webkitRequestFullScreen();
|
|
53273
53267
|
}, q = (he) => {
|
|
53274
|
-
const
|
|
53275
|
-
|
|
53276
|
-
}, ce = (he) => he.dom === co(Mr(he).dom), Me = (he,
|
|
53277
|
-
const
|
|
53278
|
-
return
|
|
53279
|
-
}, ba = (he,
|
|
53268
|
+
const Oe = he.dom;
|
|
53269
|
+
Oe.exitFullscreen ? Oe.exitFullscreen() : Oe.msExitFullscreen ? Oe.msExitFullscreen() : Oe.webkitCancelFullScreen && Oe.webkitCancelFullScreen();
|
|
53270
|
+
}, ce = (he) => he.dom === co(Mr(he).dom), Me = (he, Oe, et) => Kn(Qi(he, et), Oe), nt = (he, Oe) => Kn(Ts(he), Oe), $n = (he) => zo(he), an = (he, Oe, et) => Me(he, (Et) => Ka(Et, Oe), et), ws = (he, Oe) => nt(he, (et) => Ka(et, Oe)), si = "data-ephox-mobile-fullscreen-style", Bt = "display:none!important;", ra = "position:absolute!important;", Zs = "top:0!important;left:0!important;margin:0!important;padding:0!important;width:100%!important;height:100%!important;overflow:visible!important;", dc = "background-color:rgb(255,255,255)!important;", Br = Ee.os.isAndroid(), Uo = (he) => {
|
|
53271
|
+
const Oe = vr(he, "background-color");
|
|
53272
|
+
return Oe !== void 0 && Oe !== "" ? "background-color:" + Oe + "!important" : dc;
|
|
53273
|
+
}, ba = (he, Oe, et) => {
|
|
53280
53274
|
const Et = (Ja) => ws(Ja, "*:not(.tox-silver-sink)"), Hn = (Ja) => (Ba) => {
|
|
53281
53275
|
const yr = ss(Ba, "style"), Xr = yr === void 0 ? "no-styles" : yr.trim();
|
|
53282
53276
|
Xr !== Ja && (Js(Ba, si, Xr), sa(Ba, he.parseStyle(Ja)));
|
|
53283
|
-
}, as = an(
|
|
53284
|
-
ye(Io, Hn(Bt)), ye(as, Hn(ra + Zs + tr)), Hn((Br === !0 ? "" : ra) + Zs + tr)(
|
|
53277
|
+
}, as = an(Oe, "*"), Io = to(as, Et), tr = Uo(et);
|
|
53278
|
+
ye(Io, Hn(Bt)), ye(as, Hn(ra + Zs + tr)), Hn((Br === !0 ? "" : ra) + Zs + tr)(Oe);
|
|
53285
53279
|
}, yi = (he) => {
|
|
53286
|
-
const
|
|
53287
|
-
ye(
|
|
53280
|
+
const Oe = $n("[" + si + "]");
|
|
53281
|
+
ye(Oe, (et) => {
|
|
53288
53282
|
const Et = ss(et, si);
|
|
53289
53283
|
Et && Et !== "no-styles" ? sa(et, he.parseStyle(Et)) : rs(et, "style"), rs(et, si);
|
|
53290
53284
|
});
|
|
@@ -53292,11 +53286,11 @@ function phe() {
|
|
|
53292
53286
|
bind: Je,
|
|
53293
53287
|
unbind: Je
|
|
53294
53288
|
}), (he) => {
|
|
53295
|
-
const
|
|
53289
|
+
const Oe = rt(), et = qt(), Et = qt(), Hn = () => {
|
|
53296
53290
|
document.body.scrollTop = 0, document.documentElement.scrollTop = 0;
|
|
53297
53291
|
}, as = () => {
|
|
53298
53292
|
window.requestAnimationFrame(() => {
|
|
53299
|
-
|
|
53293
|
+
Oe.on((Ja) => sa(Ja, {
|
|
53300
53294
|
top: he.offsetTop + "px",
|
|
53301
53295
|
left: he.offsetLeft + "px",
|
|
53302
53296
|
height: he.height + "px",
|
|
@@ -53308,29 +53302,29 @@ function phe() {
|
|
|
53308
53302
|
}, 50);
|
|
53309
53303
|
return {
|
|
53310
53304
|
bind: (Ja) => {
|
|
53311
|
-
|
|
53305
|
+
Oe.set(Ja), Io.throttle(), et.set(Mc("resize", Io.throttle)), Et.set(Mc("scroll", Io.throttle));
|
|
53312
53306
|
},
|
|
53313
53307
|
unbind: () => {
|
|
53314
|
-
|
|
53308
|
+
Oe.on(() => {
|
|
53315
53309
|
et.clear(), Et.clear();
|
|
53316
|
-
}),
|
|
53310
|
+
}), Oe.clear();
|
|
53317
53311
|
}
|
|
53318
53312
|
};
|
|
53319
|
-
}), Im = (he,
|
|
53320
|
-
const et = document.body, Et = document.documentElement, Hn = he.getContainer(), as = Lo.fromDom(Hn), Io = Fi(as).filter((Hi) => Co(Hi) && Fs(Hi, "tox-silver-sink")), tr = dn(he), ri =
|
|
53313
|
+
}), Im = (he, Oe) => {
|
|
53314
|
+
const et = document.body, Et = document.documentElement, Hn = he.getContainer(), as = Lo.fromDom(Hn), Io = Fi(as).filter((Hi) => Co(Hi) && Fs(Hi, "tox-silver-sink")), tr = dn(he), ri = Oe.get(), Ja = Lo.fromDom(he.getBody()), Ba = Ee.deviceType.isTouch(), yr = Hn.style, Xr = he.iframeElement, hi = Xr == null ? void 0 : Xr.style, ia = (Hi) => {
|
|
53321
53315
|
Hi(et, "tox-fullscreen"), Hi(Et, "tox-fullscreen"), Hi(Hn, "tox-fullscreen"), er(as).map((Vs) => di(Vs).dom).each((Vs) => {
|
|
53322
53316
|
Hi(Vs, "tox-fullscreen"), Hi(Vs, "tox-shadowhost");
|
|
53323
53317
|
});
|
|
53324
53318
|
}, Zr = () => {
|
|
53325
|
-
Ba && yi(he.dom), ia(Oa.removeClass), zf.unbind(), rn.from(
|
|
53319
|
+
Ba && yi(he.dom), ia(Oa.removeClass), zf.unbind(), rn.from(Oe.get()).each((Hi) => Hi.fullscreenChangeHandler.unbind());
|
|
53326
53320
|
};
|
|
53327
53321
|
if (ri)
|
|
53328
|
-
ri.fullscreenChangeHandler.unbind(), Tn(he) && ce(tr) && q(Mr(tr)), hi.width = ri.iframeWidth, hi.height = ri.iframeHeight, yr.width = ri.containerWidth, yr.height = ri.containerHeight, yr.top = ri.containerTop, yr.left = ri.containerLeft,
|
|
53322
|
+
ri.fullscreenChangeHandler.unbind(), Tn(he) && ce(tr) && q(Mr(tr)), hi.width = ri.iframeWidth, hi.height = ri.iframeHeight, yr.width = ri.containerWidth, yr.height = ri.containerHeight, yr.top = ri.containerTop, yr.left = ri.containerLeft, be(Io, ri.sinkCssPosition, (Hi, Vs) => {
|
|
53329
53323
|
bi(Hi, "position", Vs);
|
|
53330
|
-
}), Zr(), Bc(ri.scrollPos),
|
|
53324
|
+
}), Zr(), Bc(ri.scrollPos), Oe.set(null), Ve(he, !1), he.off("remove", Zr);
|
|
53331
53325
|
else {
|
|
53332
53326
|
const Hi = Dt(Mr(tr), mo(), (Lc) => {
|
|
53333
|
-
Tn(he) && !ce(tr) &&
|
|
53327
|
+
Tn(he) && !ce(tr) && Oe.get() !== null && Im(he, Oe);
|
|
53334
53328
|
}), Vs = {
|
|
53335
53329
|
scrollPos: ei(),
|
|
53336
53330
|
containerWidth: yr.width,
|
|
@@ -53344,46 +53338,46 @@ function phe() {
|
|
|
53344
53338
|
};
|
|
53345
53339
|
Ba && ba(he.dom, as, Ja), hi.width = hi.height = "100%", yr.width = yr.height = "", ia(Oa.addClass), Io.each((Lc) => {
|
|
53346
53340
|
bi(Lc, "position", "fixed");
|
|
53347
|
-
}), zf.bind(as), he.on("remove", Zr),
|
|
53341
|
+
}), zf.bind(as), he.on("remove", Zr), Oe.set(Vs), Tn(he) && is(tr), Ve(he, !0);
|
|
53348
53342
|
}
|
|
53349
|
-
}, lr = (he,
|
|
53343
|
+
}, lr = (he, Oe) => {
|
|
53350
53344
|
he.addCommand("mceFullScreen", () => {
|
|
53351
|
-
Im(he,
|
|
53345
|
+
Im(he, Oe);
|
|
53352
53346
|
});
|
|
53353
53347
|
};
|
|
53354
53348
|
var Nc = tinymce.util.Tools.resolve("tinymce.util.VK");
|
|
53355
|
-
const wi = (he,
|
|
53349
|
+
const wi = (he, Oe) => {
|
|
53356
53350
|
he.on("init", () => {
|
|
53357
53351
|
he.on("keydown", (et) => {
|
|
53358
|
-
et.keyCode === Nc.TAB && !(et.metaKey || et.ctrlKey) &&
|
|
53352
|
+
et.keyCode === Nc.TAB && !(et.metaKey || et.ctrlKey) && Oe.get() && et.preventDefault();
|
|
53359
53353
|
});
|
|
53360
53354
|
});
|
|
53361
|
-
}, zi = (he,
|
|
53362
|
-
et.setActive(
|
|
53355
|
+
}, zi = (he, Oe) => (et) => {
|
|
53356
|
+
et.setActive(Oe.get() !== null);
|
|
53363
53357
|
const Et = (Hn) => et.setActive(Hn.state);
|
|
53364
53358
|
return he.on("FullscreenStateChanged", Et), () => he.off("FullscreenStateChanged", Et);
|
|
53365
|
-
}, Ma = (he,
|
|
53359
|
+
}, Ma = (he, Oe) => {
|
|
53366
53360
|
const et = () => he.execCommand("mceFullScreen");
|
|
53367
53361
|
he.ui.registry.addToggleMenuItem("fullscreen", {
|
|
53368
53362
|
text: "Fullscreen",
|
|
53369
53363
|
icon: "fullscreen",
|
|
53370
53364
|
shortcut: "Meta+Shift+F",
|
|
53371
53365
|
onAction: et,
|
|
53372
|
-
onSetup: zi(he,
|
|
53366
|
+
onSetup: zi(he, Oe),
|
|
53373
53367
|
context: "any"
|
|
53374
53368
|
}), he.ui.registry.addToggleButton("fullscreen", {
|
|
53375
53369
|
tooltip: "Fullscreen",
|
|
53376
53370
|
icon: "fullscreen",
|
|
53377
53371
|
onAction: et,
|
|
53378
|
-
onSetup: zi(he,
|
|
53372
|
+
onSetup: zi(he, Oe),
|
|
53379
53373
|
shortcut: "Meta+Shift+F",
|
|
53380
53374
|
context: "any"
|
|
53381
53375
|
});
|
|
53382
53376
|
};
|
|
53383
53377
|
var nu = () => {
|
|
53384
53378
|
o.add("fullscreen", (he) => {
|
|
53385
|
-
const
|
|
53386
|
-
return he.inline || (Jt(he), lr(he,
|
|
53379
|
+
const Oe = u(null);
|
|
53380
|
+
return he.inline || (Jt(he), lr(he, Oe), Ma(he, Oe), wi(he, Oe), he.addShortcut("Meta+Shift+F", "", "mceFullScreen")), i(Oe);
|
|
53387
53381
|
});
|
|
53388
53382
|
};
|
|
53389
53383
|
nu();
|
|
@@ -53458,37 +53452,37 @@ var Yte = {}, Kte;
|
|
|
53458
53452
|
function Ohe() {
|
|
53459
53453
|
return Kte || (Kte = 1, function() {
|
|
53460
53454
|
var u = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
53461
|
-
const o = (
|
|
53462
|
-
const rt =
|
|
53463
|
-
|
|
53464
|
-
}, i = (
|
|
53465
|
-
|
|
53466
|
-
o(
|
|
53467
|
-
}),
|
|
53468
|
-
o(
|
|
53455
|
+
const o = (be, ot, qt) => {
|
|
53456
|
+
const rt = ot === "UL" ? "InsertUnorderedList" : "InsertOrderedList";
|
|
53457
|
+
be.execCommand(rt, !1, qt === !1 ? null : { "list-style-type": qt });
|
|
53458
|
+
}, i = (be) => {
|
|
53459
|
+
be.addCommand("ApplyUnorderedListStyle", (ot, qt) => {
|
|
53460
|
+
o(be, "UL", qt["list-style-type"]);
|
|
53461
|
+
}), be.addCommand("ApplyOrderedListStyle", (ot, qt) => {
|
|
53462
|
+
o(be, "OL", qt["list-style-type"]);
|
|
53469
53463
|
});
|
|
53470
|
-
}, c = (
|
|
53471
|
-
const
|
|
53472
|
-
|
|
53464
|
+
}, c = (be) => (ot) => ot.options.get(be), h = (be) => {
|
|
53465
|
+
const ot = be.options.register;
|
|
53466
|
+
ot("advlist_number_styles", {
|
|
53473
53467
|
processor: "string[]",
|
|
53474
53468
|
default: "default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman".split(",")
|
|
53475
|
-
}),
|
|
53469
|
+
}), ot("advlist_bullet_styles", {
|
|
53476
53470
|
processor: "string[]",
|
|
53477
53471
|
default: "default,circle,square".split(",")
|
|
53478
53472
|
});
|
|
53479
|
-
}, m = c("advlist_number_styles"), O = c("advlist_bullet_styles"), w = (
|
|
53473
|
+
}, m = c("advlist_number_styles"), O = c("advlist_bullet_styles"), w = (be) => be == null, T = (be) => !w(be);
|
|
53480
53474
|
class P {
|
|
53481
|
-
constructor(
|
|
53482
|
-
this.tag =
|
|
53475
|
+
constructor(ot, qt) {
|
|
53476
|
+
this.tag = ot, this.value = qt;
|
|
53483
53477
|
}
|
|
53484
|
-
static some(
|
|
53485
|
-
return new P(!0,
|
|
53478
|
+
static some(ot) {
|
|
53479
|
+
return new P(!0, ot);
|
|
53486
53480
|
}
|
|
53487
53481
|
static none() {
|
|
53488
53482
|
return P.singletonNone;
|
|
53489
53483
|
}
|
|
53490
|
-
fold(
|
|
53491
|
-
return this.tag ? qt(this.value) :
|
|
53484
|
+
fold(ot, qt) {
|
|
53485
|
+
return this.tag ? qt(this.value) : ot();
|
|
53492
53486
|
}
|
|
53493
53487
|
isSome() {
|
|
53494
53488
|
return this.tag;
|
|
@@ -53496,40 +53490,40 @@ function Ohe() {
|
|
|
53496
53490
|
isNone() {
|
|
53497
53491
|
return !this.tag;
|
|
53498
53492
|
}
|
|
53499
|
-
map(
|
|
53500
|
-
return this.tag ? P.some(
|
|
53493
|
+
map(ot) {
|
|
53494
|
+
return this.tag ? P.some(ot(this.value)) : P.none();
|
|
53501
53495
|
}
|
|
53502
|
-
bind(
|
|
53503
|
-
return this.tag ?
|
|
53496
|
+
bind(ot) {
|
|
53497
|
+
return this.tag ? ot(this.value) : P.none();
|
|
53504
53498
|
}
|
|
53505
|
-
exists(
|
|
53506
|
-
return this.tag &&
|
|
53499
|
+
exists(ot) {
|
|
53500
|
+
return this.tag && ot(this.value);
|
|
53507
53501
|
}
|
|
53508
|
-
forall(
|
|
53509
|
-
return !this.tag ||
|
|
53502
|
+
forall(ot) {
|
|
53503
|
+
return !this.tag || ot(this.value);
|
|
53510
53504
|
}
|
|
53511
|
-
filter(
|
|
53512
|
-
return !this.tag ||
|
|
53505
|
+
filter(ot) {
|
|
53506
|
+
return !this.tag || ot(this.value) ? this : P.none();
|
|
53513
53507
|
}
|
|
53514
|
-
getOr(
|
|
53515
|
-
return this.tag ? this.value :
|
|
53508
|
+
getOr(ot) {
|
|
53509
|
+
return this.tag ? this.value : ot;
|
|
53516
53510
|
}
|
|
53517
|
-
or(
|
|
53518
|
-
return this.tag ? this :
|
|
53511
|
+
or(ot) {
|
|
53512
|
+
return this.tag ? this : ot;
|
|
53519
53513
|
}
|
|
53520
|
-
getOrThunk(
|
|
53521
|
-
return this.tag ? this.value :
|
|
53514
|
+
getOrThunk(ot) {
|
|
53515
|
+
return this.tag ? this.value : ot();
|
|
53522
53516
|
}
|
|
53523
|
-
orThunk(
|
|
53524
|
-
return this.tag ? this :
|
|
53517
|
+
orThunk(ot) {
|
|
53518
|
+
return this.tag ? this : ot();
|
|
53525
53519
|
}
|
|
53526
|
-
getOrDie(
|
|
53520
|
+
getOrDie(ot) {
|
|
53527
53521
|
if (this.tag)
|
|
53528
53522
|
return this.value;
|
|
53529
|
-
throw new Error(
|
|
53523
|
+
throw new Error(ot ?? "Called getOrDie on None");
|
|
53530
53524
|
}
|
|
53531
|
-
static from(
|
|
53532
|
-
return T(
|
|
53525
|
+
static from(ot) {
|
|
53526
|
+
return T(ot) ? P.some(ot) : P.none();
|
|
53533
53527
|
}
|
|
53534
53528
|
getOrNull() {
|
|
53535
53529
|
return this.tag ? this.value : null;
|
|
@@ -53537,8 +53531,8 @@ function Ohe() {
|
|
|
53537
53531
|
getOrUndefined() {
|
|
53538
53532
|
return this.value;
|
|
53539
53533
|
}
|
|
53540
|
-
each(
|
|
53541
|
-
this.tag &&
|
|
53534
|
+
each(ot) {
|
|
53535
|
+
this.tag && ot(this.value);
|
|
53542
53536
|
}
|
|
53543
53537
|
toArray() {
|
|
53544
53538
|
return this.tag ? [this.value] : [];
|
|
@@ -53548,58 +53542,58 @@ function Ohe() {
|
|
|
53548
53542
|
}
|
|
53549
53543
|
}
|
|
53550
53544
|
P.singletonNone = new P(!1);
|
|
53551
|
-
const R = Array.prototype.indexOf, F = (
|
|
53552
|
-
for (let rt = 0, sn =
|
|
53553
|
-
const Ue =
|
|
53554
|
-
if (
|
|
53545
|
+
const R = Array.prototype.indexOf, F = (be, ot) => R.call(be, ot), H = (be, ot) => F(be, ot) > -1, Y = (be, ot, qt) => {
|
|
53546
|
+
for (let rt = 0, sn = be.length; rt < sn; rt++) {
|
|
53547
|
+
const Ue = be[rt];
|
|
53548
|
+
if (ot(Ue, rt))
|
|
53555
53549
|
return P.some(Ue);
|
|
53556
53550
|
if (qt(Ue, rt))
|
|
53557
53551
|
break;
|
|
53558
53552
|
}
|
|
53559
53553
|
return P.none();
|
|
53560
|
-
}, me = Object.keys, De = (
|
|
53561
|
-
const qt = me(
|
|
53554
|
+
}, me = Object.keys, De = (be, ot) => {
|
|
53555
|
+
const qt = me(be);
|
|
53562
53556
|
for (let rt = 0, sn = qt.length; rt < sn; rt++) {
|
|
53563
|
-
const Ue = qt[rt], pt =
|
|
53564
|
-
|
|
53557
|
+
const Ue = qt[rt], pt = be[Ue];
|
|
53558
|
+
ot(pt, Ue);
|
|
53565
53559
|
}
|
|
53566
|
-
}, xe = (
|
|
53560
|
+
}, xe = (be, ot) => _e(be, (qt, rt) => ({
|
|
53567
53561
|
k: rt,
|
|
53568
|
-
v:
|
|
53569
|
-
})), _e = (
|
|
53562
|
+
v: ot(qt, rt)
|
|
53563
|
+
})), _e = (be, ot) => {
|
|
53570
53564
|
const qt = {};
|
|
53571
|
-
return De(
|
|
53572
|
-
const Ue =
|
|
53565
|
+
return De(be, (rt, sn) => {
|
|
53566
|
+
const Ue = ot(rt, sn);
|
|
53573
53567
|
qt[Ue.k] = Ue.v;
|
|
53574
53568
|
}), qt;
|
|
53575
53569
|
};
|
|
53576
53570
|
var Je = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
53577
|
-
const le = (
|
|
53578
|
-
const
|
|
53571
|
+
const le = (be) => /\btox\-/.test(be.className), Xe = (be, ot) => be.dom.isChildOf(ot, be.getBody()), Xt = (be) => (ot) => T(ot) && be.test(ot.nodeName), at = Xt(/^(OL|UL|DL)$/), oe = Xt(/^(TH|TD)$/), At = (be, ot, qt) => Y(ot, (rt) => at(rt) && !le(rt), oe).exists((rt) => rt.nodeName === qt && Xe(be, rt)), rn = (be) => {
|
|
53572
|
+
const ot = be.dom.getParent(be.selection.getNode(), "ol,ul"), qt = be.dom.getStyle(ot, "listStyleType");
|
|
53579
53573
|
return P.from(qt);
|
|
53580
|
-
}, cn = (
|
|
53581
|
-
const qt =
|
|
53582
|
-
return cn(
|
|
53583
|
-
}, ye = (
|
|
53584
|
-
const qt =
|
|
53585
|
-
return
|
|
53586
|
-
parents:
|
|
53574
|
+
}, cn = (be, ot) => ot !== null && !be.dom.isEditable(ot), je = (be, ot) => {
|
|
53575
|
+
const qt = be.dom.getParent(ot, "ol,ul,dl");
|
|
53576
|
+
return cn(be, qt) || !be.selection.isEditable();
|
|
53577
|
+
}, ye = (be, ot) => {
|
|
53578
|
+
const qt = be.selection.getNode();
|
|
53579
|
+
return ot({
|
|
53580
|
+
parents: be.dom.getParents(qt),
|
|
53587
53581
|
element: qt
|
|
53588
|
-
}),
|
|
53589
|
-
}, Kn = (
|
|
53582
|
+
}), be.on("NodeChange", ot), () => be.off("NodeChange", ot);
|
|
53583
|
+
}, Kn = (be) => be.replace(/\-/g, " ").replace(/\b\w/g, (ot) => ot.toUpperCase()), dt = (be) => w(be) || be === "default" ? "" : be, kt = (be, ot) => (qt) => {
|
|
53590
53584
|
const rt = (Ue, pt) => {
|
|
53591
53585
|
const K = Ue.selection.getStart(!0);
|
|
53592
|
-
qt.setActive(At(Ue, pt,
|
|
53586
|
+
qt.setActive(At(Ue, pt, ot)), qt.setEnabled(!je(Ue, K));
|
|
53593
53587
|
};
|
|
53594
|
-
return ye(
|
|
53595
|
-
}, Q = (
|
|
53588
|
+
return ye(be, (Ue) => rt(be, Ue.parents));
|
|
53589
|
+
}, Q = (be, ot, qt, rt, sn, Ue) => {
|
|
53596
53590
|
const pt = {
|
|
53597
53591
|
"lower-latin": "lower-alpha",
|
|
53598
53592
|
"upper-latin": "upper-alpha",
|
|
53599
53593
|
"lower-alpha": "lower-latin",
|
|
53600
53594
|
"upper-alpha": "upper-latin"
|
|
53601
53595
|
}, K = xe(pt, (us) => H(Ue, us));
|
|
53602
|
-
|
|
53596
|
+
be.ui.registry.addSplitButton(ot, {
|
|
53603
53597
|
tooltip: qt,
|
|
53604
53598
|
icon: sn === "OL" ? "ordered-list" : "unordered-list",
|
|
53605
53599
|
presets: "listpreview",
|
|
@@ -53616,29 +53610,29 @@ function Ohe() {
|
|
|
53616
53610
|
});
|
|
53617
53611
|
us(Oo);
|
|
53618
53612
|
},
|
|
53619
|
-
onAction: () =>
|
|
53613
|
+
onAction: () => be.execCommand(rt),
|
|
53620
53614
|
onItemAction: (us, Oo) => {
|
|
53621
|
-
o(
|
|
53615
|
+
o(be, sn, Oo);
|
|
53622
53616
|
},
|
|
53623
|
-
select: (us) => rn(
|
|
53624
|
-
onSetup: kt(
|
|
53617
|
+
select: (us) => rn(be).exists((xo) => us === xo || pt[xo] === us && !K[us]),
|
|
53618
|
+
onSetup: kt(be, sn)
|
|
53625
53619
|
});
|
|
53626
|
-
}, to = (
|
|
53627
|
-
|
|
53620
|
+
}, to = (be, ot, qt, rt, sn, Ue) => {
|
|
53621
|
+
be.ui.registry.addToggleButton(ot, {
|
|
53628
53622
|
active: !1,
|
|
53629
53623
|
tooltip: qt,
|
|
53630
53624
|
icon: sn === "OL" ? "ordered-list" : "unordered-list",
|
|
53631
|
-
onSetup: kt(
|
|
53632
|
-
onAction: () =>
|
|
53625
|
+
onSetup: kt(be, sn),
|
|
53626
|
+
onAction: () => be.queryCommandState(rt) || Ue === "" ? be.execCommand(rt) : o(be, sn, Ue)
|
|
53633
53627
|
});
|
|
53634
|
-
}, Lt = (
|
|
53635
|
-
Ue.length > 1 ? Q(
|
|
53636
|
-
}, Kt = (
|
|
53637
|
-
Lt(
|
|
53628
|
+
}, Lt = (be, ot, qt, rt, sn, Ue) => {
|
|
53629
|
+
Ue.length > 1 ? Q(be, ot, qt, rt, sn, Ue) : to(be, ot, qt, rt, sn, dt(Ue[0]));
|
|
53630
|
+
}, Kt = (be) => {
|
|
53631
|
+
Lt(be, "numlist", "Numbered list", "InsertOrderedList", "OL", m(be)), Lt(be, "bullist", "Bullet list", "InsertUnorderedList", "UL", O(be));
|
|
53638
53632
|
};
|
|
53639
53633
|
var Qt = () => {
|
|
53640
|
-
u.add("advlist", (
|
|
53641
|
-
|
|
53634
|
+
u.add("advlist", (be) => {
|
|
53635
|
+
be.hasPlugin("lists") ? (h(be), Kt(be), i(be)) : console.error("Please use the Lists plugin together with the List Styles plugin.");
|
|
53642
53636
|
});
|
|
53643
53637
|
};
|
|
53644
53638
|
Qt();
|
|
@@ -53784,7 +53778,7 @@ function vhe() {
|
|
|
53784
53778
|
return Nt.sort(Le), Nt;
|
|
53785
53779
|
}, kt = Object.hasOwnProperty, Q = (Re, Le) => kt.call(Re, Le);
|
|
53786
53780
|
typeof window < "u" || Function("return this;")();
|
|
53787
|
-
const to = 9, Lt = 11, Kt = 1, Qt = 3,
|
|
53781
|
+
const to = 9, Lt = 11, Kt = 1, Qt = 3, be = (Re) => Re.dom.nodeType, qt = ((Re) => (Le) => be(Le) === Re)(Qt), rt = (Re, Le, Nt) => {
|
|
53788
53782
|
if (O(Nt) || T(Nt) || F(Nt))
|
|
53789
53783
|
Re.setAttribute(Le, Nt + "");
|
|
53790
53784
|
else
|
|
@@ -54520,19 +54514,19 @@ function whe() {
|
|
|
54520
54514
|
}, Kt = (rt) => {
|
|
54521
54515
|
const sn = to(rt, -1);
|
|
54522
54516
|
De(sn) && Lt(rt, sn);
|
|
54523
|
-
}, Qt = Kt,
|
|
54517
|
+
}, Qt = Kt, be = (rt) => {
|
|
54524
54518
|
const sn = to(rt, 0);
|
|
54525
54519
|
De(sn) && Lt(rt, sn);
|
|
54526
|
-
},
|
|
54520
|
+
}, ot = (rt) => {
|
|
54527
54521
|
rt.on("keydown", (sn) => {
|
|
54528
|
-
sn.keyCode === 13 && !sn.isDefaultPrevented() &&
|
|
54522
|
+
sn.keyCode === 13 && !sn.isDefaultPrevented() && be(rt);
|
|
54529
54523
|
}), rt.on("keyup", (sn) => {
|
|
54530
54524
|
sn.keyCode === 32 ? Kt(rt) : (sn.keyCode === 48 && sn.shiftKey || sn.keyCode === 221) && Qt(rt);
|
|
54531
54525
|
});
|
|
54532
54526
|
};
|
|
54533
54527
|
var qt = () => {
|
|
54534
54528
|
u.add("autolink", (rt) => {
|
|
54535
|
-
c(rt),
|
|
54529
|
+
c(rt), ot(rt);
|
|
54536
54530
|
});
|
|
54537
54531
|
};
|
|
54538
54532
|
qt();
|
|
@@ -55875,7 +55869,7 @@ function xhe() {
|
|
|
55875
55869
|
insertChar: (ke) => {
|
|
55876
55870
|
i(Ne, ke);
|
|
55877
55871
|
}
|
|
55878
|
-
}),
|
|
55872
|
+
}), be = (Ne) => {
|
|
55879
55873
|
let ze = Ne;
|
|
55880
55874
|
return {
|
|
55881
55875
|
get: () => ze,
|
|
@@ -55883,7 +55877,7 @@ function xhe() {
|
|
|
55883
55877
|
ze = Fn;
|
|
55884
55878
|
}
|
|
55885
55879
|
};
|
|
55886
|
-
},
|
|
55880
|
+
}, ot = (Ne, ze) => {
|
|
55887
55881
|
let Ke = null;
|
|
55888
55882
|
const ke = () => {
|
|
55889
55883
|
P(Ke) || (clearTimeout(Ke), Ke = null);
|
|
@@ -55929,12 +55923,12 @@ function xhe() {
|
|
|
55929
55923
|
}), vo = () => ({
|
|
55930
55924
|
type: "tabpanel",
|
|
55931
55925
|
tabs: ke()
|
|
55932
|
-
}), yn = ze.length === 1 ?
|
|
55926
|
+
}), yn = ze.length === 1 ? be(dt) : be("All"), Ps = (ss, rs) => {
|
|
55933
55927
|
Xt(ze, (Rr) => Rr.name === yn.get()).each((Rr) => {
|
|
55934
55928
|
const Fs = Ue(Rr, rs);
|
|
55935
55929
|
ss.setData({ results: Fs });
|
|
55936
55930
|
});
|
|
55937
|
-
}, ur =
|
|
55931
|
+
}, ur = ot((ss) => {
|
|
55938
55932
|
const rs = ss.getData().pattern;
|
|
55939
55933
|
Ps(ss, rs);
|
|
55940
55934
|
}, 40), Ko = ze.length === 1 ? Fn() : vo(), Us = {
|
|
@@ -66372,8 +66366,8 @@ function tge(u) {
|
|
|
66372
66366
|
let { id: je, start: ye, end: Kn, size: dt } = w, kt = R, Q = P;
|
|
66373
66367
|
for (; dt < 0; )
|
|
66374
66368
|
if (w.next(), dt == -1) {
|
|
66375
|
-
let
|
|
66376
|
-
oe.push(
|
|
66369
|
+
let be = m[je];
|
|
66370
|
+
oe.push(be), At.push(ye - Xt);
|
|
66377
66371
|
return;
|
|
66378
66372
|
} else if (dt == -3) {
|
|
66379
66373
|
P = je;
|
|
@@ -66385,21 +66379,21 @@ function tge(u) {
|
|
|
66385
66379
|
throw new RangeError(`Unrecognized record size: ${dt}`);
|
|
66386
66380
|
let to = T[je], Lt, Kt, Qt = ye - Xt;
|
|
66387
66381
|
if (Kn - ye <= h && (Kt = xe(w.pos - at, rn))) {
|
|
66388
|
-
let
|
|
66389
|
-
for (; w.pos >
|
|
66390
|
-
qt = _e(Kt.start,
|
|
66391
|
-
Lt = new O2(
|
|
66382
|
+
let be = new Uint16Array(Kt.size - Kt.skip), ot = w.pos - Kt.size, qt = be.length;
|
|
66383
|
+
for (; w.pos > ot; )
|
|
66384
|
+
qt = _e(Kt.start, be, qt);
|
|
66385
|
+
Lt = new O2(be, Kn - Kt.start, c), Qt = Kt.start - Xt;
|
|
66392
66386
|
} else {
|
|
66393
|
-
let
|
|
66387
|
+
let be = w.pos - dt;
|
|
66394
66388
|
w.next();
|
|
66395
|
-
let
|
|
66396
|
-
for (; w.pos >
|
|
66397
|
-
rt >= 0 && w.id == rt && w.size >= 0 ? (w.end <= Ue - h && (me(
|
|
66398
|
-
if (rt >= 0 && sn > 0 && sn <
|
|
66389
|
+
let ot = [], qt = [], rt = je >= O ? je : -1, sn = 0, Ue = Kn;
|
|
66390
|
+
for (; w.pos > be; )
|
|
66391
|
+
rt >= 0 && w.id == rt && w.size >= 0 ? (w.end <= Ue - h && (me(ot, qt, ye, sn, w.end, Ue, rt, kt, Q), sn = ot.length, Ue = w.end), w.next()) : cn > 2500 ? H(ye, be, ot, qt) : F(ye, be, ot, qt, rt, cn + 1);
|
|
66392
|
+
if (rt >= 0 && sn > 0 && sn < ot.length && me(ot, qt, ye, sn, ye, Ue, rt, kt, Q), ot.reverse(), qt.reverse(), rt > -1 && sn > 0) {
|
|
66399
66393
|
let pt = Y(to, Q);
|
|
66400
|
-
Lt = $J(to,
|
|
66394
|
+
Lt = $J(to, ot, qt, 0, ot.length, 0, Kn - ye, pt, pt);
|
|
66401
66395
|
} else
|
|
66402
|
-
Lt = De(to,
|
|
66396
|
+
Lt = De(to, ot, qt, Kn - ye, kt - Kn, Q);
|
|
66403
66397
|
}
|
|
66404
66398
|
oe.push(Lt), At.push(Qt);
|
|
66405
66399
|
}
|