golden-logic-ui 1.0.616 → 1.0.618
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 +845 -845
- 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,36 +3244,36 @@ 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
|
-
const
|
|
3274
|
-
qt && R.value <= F.value && le("down"), rt && R.value > H.value && le("up");
|
|
3275
|
-
}, Xt = (
|
|
3276
|
-
|
|
3271
|
+
}, Xe = (be) => {
|
|
3272
|
+
if (!be.target) return;
|
|
3273
|
+
const ot = be.target.scrollTop, qt = be.target.scrollHeight - be.target.clientHeight <= ot + 10, rt = ot <= 10;
|
|
3274
|
+
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), qt && R.value <= F.value && le("down"), rt && R.value > H.value && le("up");
|
|
3275
|
+
}, Xt = (be) => {
|
|
3276
|
+
be.key === "Enter" && be.target.form && be.preventDefault();
|
|
3277
3277
|
}, at = () => {
|
|
3278
3278
|
if (!i.show) {
|
|
3279
3279
|
if (O.value) {
|
|
@@ -3282,10 +3282,10 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3282
3282
|
}
|
|
3283
3283
|
w.value = "", O.value = !0, i.api_url && Y.value.length === 0 && le("down"), HR(() => {
|
|
3284
3284
|
Je();
|
|
3285
|
-
var
|
|
3285
|
+
var be = document.getElementById(
|
|
3286
3286
|
`${i.field_name}search${T.value}`
|
|
3287
3287
|
);
|
|
3288
|
-
|
|
3288
|
+
be && be.focus();
|
|
3289
3289
|
});
|
|
3290
3290
|
}
|
|
3291
3291
|
};
|
|
@@ -3295,72 +3295,72 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3295
3295
|
window.removeEventListener("scroll", Je), document.body.removeEventListener("click", je), document.removeEventListener("keypress", Xt);
|
|
3296
3296
|
});
|
|
3297
3297
|
function oe() {
|
|
3298
|
-
const
|
|
3298
|
+
const be = [], ot = w.value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), qt = new RegExp(ot, "ig");
|
|
3299
3299
|
for (const rt of Y.value) {
|
|
3300
3300
|
const sn = String(rt.name);
|
|
3301
|
-
(w.value.length < 1 || sn.match(qt)) &&
|
|
3301
|
+
(w.value.length < 1 || sn.match(qt)) && be.length < i.maxItem && be.push(rt);
|
|
3302
3302
|
}
|
|
3303
|
-
return
|
|
3303
|
+
return be;
|
|
3304
3304
|
}
|
|
3305
|
-
function At(
|
|
3305
|
+
function At(be) {
|
|
3306
3306
|
if ([
|
|
3307
3307
|
"ArrowLeft",
|
|
3308
3308
|
"ArrowUp",
|
|
3309
3309
|
"ArrowRight",
|
|
3310
3310
|
"ArrowDown",
|
|
3311
3311
|
"Enter"
|
|
3312
|
-
].includes(
|
|
3313
|
-
if (["ArrowUp", "ArrowDown"].includes(
|
|
3312
|
+
].includes(be.key)) {
|
|
3313
|
+
if (["ArrowUp", "ArrowDown"].includes(be.key) && be.preventDefault(), be.key === "ArrowDown" && i.posts === "")
|
|
3314
3314
|
return;
|
|
3315
|
-
dt(
|
|
3315
|
+
dt(be.key);
|
|
3316
3316
|
}
|
|
3317
3317
|
}
|
|
3318
3318
|
function rn() {
|
|
3319
|
-
let
|
|
3319
|
+
let be = (/* @__PURE__ */ new Date()).getTime();
|
|
3320
3320
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
|
|
3321
3321
|
/[xy]/g,
|
|
3322
3322
|
function(qt) {
|
|
3323
|
-
const rt = (
|
|
3324
|
-
return
|
|
3323
|
+
const rt = (be + Math.random() * 16) % 16 | 0;
|
|
3324
|
+
return be = Math.floor(be / 16), (qt === "x" ? rt : rt & 3 | 8).toString(16);
|
|
3325
3325
|
}
|
|
3326
3326
|
);
|
|
3327
3327
|
}
|
|
3328
|
-
function cn(
|
|
3329
|
-
return
|
|
3328
|
+
function cn(be) {
|
|
3329
|
+
return be && typeof be == "object" && Object.keys(be).length > 0;
|
|
3330
3330
|
}
|
|
3331
|
-
function je(
|
|
3332
|
-
|
|
3331
|
+
function je(be) {
|
|
3332
|
+
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);
|
|
3333
3333
|
}
|
|
3334
|
-
function ye(
|
|
3335
|
-
const
|
|
3334
|
+
function ye(be) {
|
|
3335
|
+
const ot = `${be}${T.value}`, qt = document.getElementById(ot);
|
|
3336
3336
|
qt && qt.scrollIntoView();
|
|
3337
3337
|
}
|
|
3338
|
-
function Kn(
|
|
3339
|
-
const
|
|
3338
|
+
function Kn(be) {
|
|
3339
|
+
const ot = `${be}${T.value}`, qt = document.getElementById(ot);
|
|
3340
3340
|
qt && qt.click();
|
|
3341
3341
|
}
|
|
3342
|
-
function dt(
|
|
3343
|
-
|
|
3342
|
+
function dt(be) {
|
|
3343
|
+
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);
|
|
3344
3344
|
}
|
|
3345
|
-
function kt(
|
|
3346
|
-
return
|
|
3345
|
+
function kt(be) {
|
|
3346
|
+
return be.map((ot, qt) => typeof ot == "object" ? ot : { id: ot, name: ot });
|
|
3347
3347
|
}
|
|
3348
3348
|
function Q() {
|
|
3349
|
-
return i.options.map((
|
|
3349
|
+
return i.options.map((be, ot) => typeof be == "object" ? be : { id: be, name: be });
|
|
3350
3350
|
}
|
|
3351
3351
|
function to() {
|
|
3352
3352
|
return cn(h.value) ? typeof h.value == "object" ? Y.value.find(
|
|
3353
|
-
(
|
|
3353
|
+
(be) => String(be.id) === String(h.value.id)
|
|
3354
3354
|
) || {} : Y.value.find(
|
|
3355
|
-
(
|
|
3355
|
+
(be) => String(be.id) === String(h.value)
|
|
3356
3356
|
) || {} : i.modelValue ? typeof i.modelValue == "object" ? Y.value.find(
|
|
3357
|
-
(
|
|
3357
|
+
(be) => String(be.id) === String(i.modelValue.id)
|
|
3358
3358
|
) || {} : Y.value.find(
|
|
3359
|
-
(
|
|
3359
|
+
(be) => String(be.id) === String(i.modelValue)
|
|
3360
3360
|
) || {} : {};
|
|
3361
3361
|
}
|
|
3362
|
-
function Lt(
|
|
3363
|
-
h.value =
|
|
3362
|
+
function Lt(be) {
|
|
3363
|
+
h.value = be, O.value = !1, c("update:modelValue", h.value.id), c("selected", h.value), c("selectionChanged", h.value);
|
|
3364
3364
|
}
|
|
3365
3365
|
function Kt() {
|
|
3366
3366
|
i.show || (h.value = {}, w.value = "", c("update:modelValue", ""), at());
|
|
@@ -3368,14 +3368,14 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3368
3368
|
function Qt() {
|
|
3369
3369
|
(!h.value || !h.value.id) && (h.value = {}, w.value = ""), c("selected", h.value);
|
|
3370
3370
|
}
|
|
3371
|
-
return Lu(w, (
|
|
3371
|
+
return Lu(w, (be) => {
|
|
3372
3372
|
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 = {});
|
|
3373
|
-
}), Lu(h, (
|
|
3374
|
-
cn(
|
|
3373
|
+
}), Lu(h, (be) => {
|
|
3374
|
+
cn(be) && be && be.id !== i.modelValue && c("update:modelValue", be.id);
|
|
3375
3375
|
}), Lu(
|
|
3376
3376
|
() => i.modelValue,
|
|
3377
|
-
(
|
|
3378
|
-
|
|
3377
|
+
(be) => {
|
|
3378
|
+
be ? (h.value = i.modelValue, i.api_url && Y.value.length === 0 ? le("down", h.value) : h.value = to()) : h.value = {};
|
|
3379
3379
|
},
|
|
3380
3380
|
{ immediate: !0, deep: !0 }
|
|
3381
3381
|
), Lu(
|
|
@@ -3384,7 +3384,7 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3384
3384
|
i.api_url || (Y.value = Q()), h.value = to();
|
|
3385
3385
|
},
|
|
3386
3386
|
{ immediate: !0, deep: !0 }
|
|
3387
|
-
), (
|
|
3387
|
+
), (be, ot) => {
|
|
3388
3388
|
var qt, rt, sn;
|
|
3389
3389
|
return Ce(), Ae(Qo, null, [
|
|
3390
3390
|
u.show ? (Ce(), Ae("div", {
|
|
@@ -3395,7 +3395,7 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3395
3395
|
Z("p", Mde, [
|
|
3396
3396
|
Z("span", Bde, Rt((qt = h.value) == null ? void 0 : qt.name), 1)
|
|
3397
3397
|
]),
|
|
3398
|
-
|
|
3398
|
+
ot[5] || (ot[5] = Z("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1))
|
|
3399
3399
|
], 2)) : Tt("", !0),
|
|
3400
3400
|
u.show ? Tt("", !0) : (Ce(), Ae("div", {
|
|
3401
3401
|
key: 1,
|
|
@@ -3427,17 +3427,17 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3427
3427
|
"gl-input-form": u.error_message == "",
|
|
3428
3428
|
"gl-input-form-invalid": u.error_message !== ""
|
|
3429
3429
|
}, "pr-2 showOptions"]),
|
|
3430
|
-
onClick:
|
|
3430
|
+
onClick: ot[0] || (ot[0] = (Ue) => at()),
|
|
3431
3431
|
value: (sn = h.value) == null ? void 0 : sn.name,
|
|
3432
3432
|
placeholder: u.placeholder,
|
|
3433
3433
|
autocomplete: "off",
|
|
3434
3434
|
readonly: ""
|
|
3435
3435
|
}, null, 10, Qde),
|
|
3436
3436
|
Ur(Z("i", {
|
|
3437
|
-
onClick:
|
|
3437
|
+
onClick: ot[1] || (ot[1] = ma((Ue) => Kt(), ["stop"])),
|
|
3438
3438
|
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",
|
|
3439
3439
|
style: { top: "13px" }
|
|
3440
|
-
},
|
|
3440
|
+
}, ot[6] || (ot[6] = [
|
|
3441
3441
|
Z("svg", {
|
|
3442
3442
|
class: "w-[10px] h-[16px]",
|
|
3443
3443
|
"aria-hidden": "true",
|
|
@@ -3457,7 +3457,7 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3457
3457
|
[Vf, cn(h.value) && u.has_cancel]
|
|
3458
3458
|
]),
|
|
3459
3459
|
Z("i", {
|
|
3460
|
-
onClick:
|
|
3460
|
+
onClick: ot[2] || (ot[2] = ma((Ue) => at(), ["stop"])),
|
|
3461
3461
|
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",
|
|
3462
3462
|
style: { top: "13px" }
|
|
3463
3463
|
}, [
|
|
@@ -3467,7 +3467,7 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3467
3467
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3468
3468
|
fill: "none",
|
|
3469
3469
|
viewBox: "0 0 10 6"
|
|
3470
|
-
},
|
|
3470
|
+
}, ot[7] || (ot[7] = [
|
|
3471
3471
|
Z("path", {
|
|
3472
3472
|
stroke: "currentColor",
|
|
3473
3473
|
"stroke-linecap": "round",
|
|
@@ -3485,12 +3485,12 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3485
3485
|
})
|
|
3486
3486
|
}, [
|
|
3487
3487
|
Z("div", Fde, [
|
|
3488
|
-
|
|
3488
|
+
ot[9] || (ot[9] = Z("label", {
|
|
3489
3489
|
for: "default-search",
|
|
3490
3490
|
class: "mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"
|
|
3491
3491
|
}, "Search", -1)),
|
|
3492
3492
|
Z("div", Zde, [
|
|
3493
|
-
|
|
3493
|
+
ot[8] || (ot[8] = Z("div", { class: "absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3" }, [
|
|
3494
3494
|
Z("svg", {
|
|
3495
3495
|
class: "w-4 h-4 text-gray-500 dark:text-gray-400",
|
|
3496
3496
|
"aria-hidden": "true",
|
|
@@ -3509,10 +3509,10 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3509
3509
|
], -1)),
|
|
3510
3510
|
Ur(Z("input", {
|
|
3511
3511
|
type: "search",
|
|
3512
|
-
"onUpdate:modelValue":
|
|
3512
|
+
"onUpdate:modelValue": ot[3] || (ot[3] = (Ue) => w.value = Ue),
|
|
3513
3513
|
id: `${u.field_name}search${T.value}`,
|
|
3514
3514
|
onKeydown: At,
|
|
3515
|
-
onBlur:
|
|
3515
|
+
onBlur: ot[4] || (ot[4] = (Ue) => Qt()),
|
|
3516
3516
|
autocomplete: "off",
|
|
3517
3517
|
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",
|
|
3518
3518
|
placeholder: u.search_input_placeholder
|
|
@@ -3540,7 +3540,7 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3540
3540
|
id: `${pt + 1}${T.value}`
|
|
3541
3541
|
}, [
|
|
3542
3542
|
Z("div", Hde, [
|
|
3543
|
-
((K = h.value) == null ? void 0 : K.id) === Ue.id ? (Ce(), Ae("svg", Ude,
|
|
3543
|
+
((K = h.value) == null ? void 0 : K.id) === Ue.id ? (Ce(), Ae("svg", Ude, ot[10] || (ot[10] = [
|
|
3544
3544
|
Z("path", {
|
|
3545
3545
|
stroke: "currentColor",
|
|
3546
3546
|
"stroke-linecap": "round",
|
|
@@ -3758,13 +3758,13 @@ function rhe() {
|
|
|
3758
3758
|
return !1;
|
|
3759
3759
|
}, kt = () => {
|
|
3760
3760
|
}, 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;
|
|
3761
|
-
function
|
|
3761
|
+
function be(e, ...n) {
|
|
3762
3762
|
return (...s) => {
|
|
3763
3763
|
const a = n.concat(s);
|
|
3764
3764
|
return e.apply(null, a);
|
|
3765
3765
|
};
|
|
3766
3766
|
}
|
|
3767
|
-
const
|
|
3767
|
+
const ot = (e) => (n) => !e(n), qt = (e) => () => {
|
|
3768
3768
|
throw new Error(e);
|
|
3769
3769
|
}, rt = (e) => e(), sn = (e) => {
|
|
3770
3770
|
e();
|
|
@@ -4347,7 +4347,7 @@ function rhe() {
|
|
|
4347
4347
|
}, Im = Object.getPrototypeOf, lr = (e) => zf("HTMLElement", e), Nc = (e) => {
|
|
4348
4348
|
const n = ei("ownerDocument.defaultView", e);
|
|
4349
4349
|
return Xe(e) && (lr(n).prototype.isPrototypeOf(e) || /^HTML\w*Element$/.test(Im(e).constructor.name));
|
|
4350
|
-
}, wi = 8, zi = 9, Ma = 11, nu = 1, he = 3,
|
|
4350
|
+
}, 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) => {
|
|
4351
4351
|
if (le(s) || At(s) || Kn(s))
|
|
4352
4352
|
e.setAttribute(n, s + "");
|
|
4353
4353
|
else
|
|
@@ -4615,7 +4615,7 @@ function rhe() {
|
|
|
4615
4615
|
e(s) && n(Yh(s));
|
|
4616
4616
|
}, M = (e, n, s, a, d) => {
|
|
4617
4617
|
const p = jm(s, a);
|
|
4618
|
-
return e.dom.addEventListener(n, p, d), { unbind:
|
|
4618
|
+
return e.dom.addEventListener(n, p, d), { unbind: be(te, e, n, p, d) };
|
|
4619
4619
|
}, U = (e, n, s, a) => M(e, n, s, a, !1), te = (e, n, s, a) => {
|
|
4620
4620
|
e.dom.removeEventListener(n, s, a);
|
|
4621
4621
|
}, $e = (e, n) => ({
|
|
@@ -4781,7 +4781,7 @@ function rhe() {
|
|
|
4781
4781
|
checkRootAsContent: !1
|
|
4782
4782
|
}, gc = (e, n, s) => {
|
|
4783
4783
|
const a = Be.fromDom(n), d = Be.fromDom(e), p = s.getWhitespaceElements();
|
|
4784
|
-
return r0(d, (C) => jn(p,
|
|
4784
|
+
return r0(d, (C) => jn(p, Oe(C)), be(ks, a));
|
|
4785
4785
|
}, $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) => {
|
|
4786
4786
|
const a = {
|
|
4787
4787
|
...U1,
|
|
@@ -4817,7 +4817,7 @@ function rhe() {
|
|
|
4817
4817
|
}, Ki = (e, n, s) => Ai(e, n.dom, {
|
|
4818
4818
|
checkRootAsContent: !0,
|
|
4819
4819
|
...s
|
|
4820
|
-
}),
|
|
4820
|
+
}), st = (e, n, s) => jg(e, n, n, {
|
|
4821
4821
|
includeZwsp: U1.includeZwsp,
|
|
4822
4822
|
...s
|
|
4823
4823
|
}), _r = (e) => {
|
|
@@ -4897,10 +4897,10 @@ function rhe() {
|
|
|
4897
4897
|
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);
|
|
4898
4898
|
}
|
|
4899
4899
|
}, Hs = (e, n, s) => {
|
|
4900
|
-
const a = e.getBlockElements(), d = Be.fromDom(n), p = (C) =>
|
|
4900
|
+
const a = e.getBlockElements(), d = Be.fromDom(n), p = (C) => Oe(C) in a, y = (C) => ks(C, d);
|
|
4901
4901
|
ke(ih(s), (C) => {
|
|
4902
4902
|
Qc(C, p, y).each(($) => {
|
|
4903
|
-
const B = Gf(C, (W) => p(W) && !e.isValidChild(
|
|
4903
|
+
const B = Gf(C, (W) => p(W) && !e.isValidChild(Oe($), Oe(W)));
|
|
4904
4904
|
if (B.length > 0) {
|
|
4905
4905
|
const W = Vm($);
|
|
4906
4906
|
ke(B, (X) => {
|
|
@@ -4929,7 +4929,7 @@ function rhe() {
|
|
|
4929
4929
|
}, lh = (e, n, s) => {
|
|
4930
4930
|
const a = (p) => ks(p, Be.fromDom(n)), d = zm(Be.fromDom(s), a);
|
|
4931
4931
|
Ya(d, d.length - 2).filter(Io).fold(() => yl(e, n), (p) => yl(e, p.dom));
|
|
4932
|
-
}, 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() &&
|
|
4932
|
+
}, 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) => {
|
|
4933
4933
|
const a = s.dom.offsetTop, d = n.dom.offsetTop, p = n.dom.offsetHeight;
|
|
4934
4934
|
return a <= d ? -p : 0;
|
|
4935
4935
|
})).getOr(0) : 0, Ji = (e, n) => e.children && Ne(e.children, n), hs = (e, n, s) => {
|
|
@@ -5042,7 +5042,7 @@ function rhe() {
|
|
|
5042
5042
|
return e.set(p, y), y;
|
|
5043
5043
|
});
|
|
5044
5044
|
} };
|
|
5045
|
-
})(), kc = (e) => e.nodeName.toLowerCase() === "span", Gg = (e, n) => je(e) && (
|
|
5045
|
+
})(), kc = (e) => e.nodeName.toLowerCase() === "span", Gg = (e, n) => je(e) && (st(n, e) || n.isInline(e.nodeName.toLowerCase())), em = (e, n, s) => {
|
|
5046
5046
|
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);
|
|
5047
5047
|
return p && y;
|
|
5048
5048
|
}, 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) => {
|
|
@@ -5057,7 +5057,7 @@ function rhe() {
|
|
|
5057
5057
|
const C = n.childNodes;
|
|
5058
5058
|
C.length === 1 && ch(C[0]) && ((d = n.parentNode) === null || d === void 0 || d.insertBefore(C[0], n));
|
|
5059
5059
|
}
|
|
5060
|
-
return !ok(n) && !
|
|
5060
|
+
return !ok(n) && !st(s, n) && !dh(n) && !uh(n, p, s) && e.remove(n), n;
|
|
5061
5061
|
}, 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 = {
|
|
5062
5062
|
128: "€",
|
|
5063
5063
|
130: "‚",
|
|
@@ -5837,7 +5837,7 @@ function rhe() {
|
|
|
5837
5837
|
}
|
|
5838
5838
|
return s;
|
|
5839
5839
|
}, xa = (e, n) => {
|
|
5840
|
-
const s = ia(n, "style"), a = e.serialize(e.parse(s),
|
|
5840
|
+
const s = ia(n, "style"), a = e.serialize(e.parse(s), Oe(n));
|
|
5841
5841
|
Xl(n, eb, a);
|
|
5842
5842
|
}, L4 = (e, n) => Kn(e) ? jn(fh, n) ? e + "" : e + "px" : e, _2 = (e, n, s) => {
|
|
5843
5843
|
const a = Gt(n);
|
|
@@ -5862,7 +5862,7 @@ function rhe() {
|
|
|
5862
5862
|
},
|
|
5863
5863
|
get: (y) => {
|
|
5864
5864
|
const C = Be.fromDom(y), $ = ia(C, eb) || ia(C, "style");
|
|
5865
|
-
return e.serialize(e.parse($),
|
|
5865
|
+
return e.serialize(e.parse($), Oe(C));
|
|
5866
5866
|
}
|
|
5867
5867
|
}
|
|
5868
5868
|
};
|
|
@@ -6671,8 +6671,8 @@ function rhe() {
|
|
|
6671
6671
|
"style"
|
|
6672
6672
|
], im = (e) => {
|
|
6673
6673
|
let n;
|
|
6674
|
-
return (s) => (n = n || Fs(e, pt), jn(n,
|
|
6675
|
-
}, B2 = (e) =>
|
|
6674
|
+
return (s) => (n = n || Fs(e, pt), jn(n, Oe(s)));
|
|
6675
|
+
}, 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) => {
|
|
6676
6676
|
const n = [];
|
|
6677
6677
|
let s = e.dom;
|
|
6678
6678
|
for (; s; )
|
|
@@ -6689,7 +6689,7 @@ function rhe() {
|
|
|
6689
6689
|
}, j4 = (e, n) => {
|
|
6690
6690
|
nl(e).each((s) => {
|
|
6691
6691
|
bd(s).each((a) => {
|
|
6692
|
-
n.isBlock(
|
|
6692
|
+
n.isBlock(Oe(e)) && bh(s) && n.isBlock(Oe(a)) && sr(s);
|
|
6693
6693
|
});
|
|
6694
6694
|
});
|
|
6695
6695
|
}, 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) => {
|
|
@@ -6805,7 +6805,7 @@ function rhe() {
|
|
|
6805
6805
|
return !0;
|
|
6806
6806
|
}
|
|
6807
6807
|
return !0;
|
|
6808
|
-
}, 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,
|
|
6808
|
+
}, 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) => {
|
|
6809
6809
|
const n = e.startContainer, s = e.startOffset;
|
|
6810
6810
|
if (uv(e.toString()) && Z2(n.parentNode) && Wt(n)) {
|
|
6811
6811
|
const a = n.data;
|
|
@@ -6917,7 +6917,7 @@ function rhe() {
|
|
|
6917
6917
|
}
|
|
6918
6918
|
s.push(Rk(a));
|
|
6919
6919
|
let y = Tc(e, a);
|
|
6920
|
-
return y = sa(y,
|
|
6920
|
+
return y = sa(y, ot(Kf)), s = s.concat(bi(y, (C) => Rk(C))), s.reverse().join("/") + "," + p;
|
|
6921
6921
|
}, a5 = (e, n, s) => {
|
|
6922
6922
|
let a = mb(e);
|
|
6923
6923
|
return a = sa(a, (d, p) => !gu(d) || !gu(a[p - 1])), a = sa(a, du([n])), a[s];
|
|
@@ -7071,7 +7071,7 @@ function rhe() {
|
|
|
7071
7071
|
id: d,
|
|
7072
7072
|
forward: $
|
|
7073
7073
|
};
|
|
7074
|
-
}, fv = (e, n, s = !1) => n === 2 ? xl(mu, s, e) : n === 3 ? pu(e) : n ? Ik(e) : W2(e, !1), mv =
|
|
7074
|
+
}, 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) => {
|
|
7075
7075
|
const n = (p) => p(e), s = Lt(e), a = () => d, d = {
|
|
7076
7076
|
tag: !0,
|
|
7077
7077
|
inner: e,
|
|
@@ -8084,9 +8084,9 @@ Required: ` + n.join(", "));
|
|
|
8084
8084
|
d = d.parentNode;
|
|
8085
8085
|
}
|
|
8086
8086
|
return null;
|
|
8087
|
-
}, Q0 =
|
|
8087
|
+
}, Q0 = be(bm, !0), wp = be(bm, !1), Zv = (e, n, s) => {
|
|
8088
8088
|
let a;
|
|
8089
|
-
const d =
|
|
8089
|
+
const d = be(Pd, !0, n), p = be(Pd, !1, n), y = s.startContainer, C = s.startOffset;
|
|
8090
8090
|
if (rg(y)) {
|
|
8091
8091
|
const $ = Mb(y) ? y.parentNode : y, B = $.getAttribute("data-mce-caret");
|
|
8092
8092
|
if (B === "before" && (a = $.nextSibling, Ab(a)))
|
|
@@ -8209,7 +8209,7 @@ Required: ` + n.join(", "));
|
|
|
8209
8209
|
}, 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) => {
|
|
8210
8210
|
const s = e ? n.firstChild : n.lastChild;
|
|
8211
8211
|
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();
|
|
8212
|
-
}, Cl =
|
|
8212
|
+
}, 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) => {
|
|
8213
8213
|
let s = n;
|
|
8214
8214
|
for (; s && s !== e; ) {
|
|
8215
8215
|
if (wu(s))
|
|
@@ -8327,8 +8327,8 @@ Required: ` + n.join(", "));
|
|
|
8327
8327
|
}, kM = (e) => {
|
|
8328
8328
|
const n = e.endContainer, s = e.endOffset;
|
|
8329
8329
|
return Wt(n) ? s === n.data.length ? K.some(Be.fromDom(n)) : K.none() : K.from(n.childNodes[s - 1]).map(Be.fromDom);
|
|
8330
|
-
}, Rw = (e) => Ic(e).fold(Lt([e]), (n) => [e].concat(Rw(n))), z0 = (e) => nl(e).fold(Lt([e]), (n) =>
|
|
8331
|
-
const d = Ko(Rw(e),
|
|
8330
|
+
}, 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) => {
|
|
8331
|
+
const d = Ko(Rw(e), be(ks, s)), p = Ko(z0(e), be(ks, a));
|
|
8332
8332
|
return d.isSome() && p.isSome();
|
|
8333
8333
|
}).getOr(!1), Bw = (e, n, s, a) => {
|
|
8334
8334
|
const d = s, p = new Na(s, d), y = Ts(e.schema.getMoveCaretBeforeOnEnterElements(), ($, B) => !Ne([
|
|
@@ -8588,7 +8588,7 @@ Required: ` + n.join(", "));
|
|
|
8588
8588
|
"div.tiny-pageembed",
|
|
8589
8589
|
"div.mce-toc",
|
|
8590
8590
|
"div[data-mce-toc]"
|
|
8591
|
-
], 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,
|
|
8591
|
+
], 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) => {
|
|
8592
8592
|
const s = wm(e.dom, n, [{ inline: "span" }]);
|
|
8593
8593
|
n.setStart(s.startContainer, s.startOffset), n.setEnd(s.endContainer, s.endOffset), e.selection.setRng(n);
|
|
8594
8594
|
}, ty = (e, n, s, a, d, p) => {
|
|
@@ -8616,7 +8616,7 @@ Required: ` + n.join(", "));
|
|
|
8616
8616
|
}), X = (ge) => {
|
|
8617
8617
|
ke(ge, G);
|
|
8618
8618
|
}, G = (ge) => {
|
|
8619
|
-
switch (Hw(e, ge, "span",
|
|
8619
|
+
switch (Hw(e, ge, "span", Oe(ge))) {
|
|
8620
8620
|
case "invalid-child": {
|
|
8621
8621
|
B();
|
|
8622
8622
|
const ve = aa(ge);
|
|
@@ -8691,8 +8691,8 @@ Required: ` + n.join(", "));
|
|
|
8691
8691
|
}
|
|
8692
8692
|
};
|
|
8693
8693
|
}, xh = (e) => ({
|
|
8694
|
-
getBookmark:
|
|
8695
|
-
moveToBookmark:
|
|
8694
|
+
getBookmark: be(qv, e),
|
|
8695
|
+
moveToBookmark: be(Dw, e)
|
|
8696
8696
|
});
|
|
8697
8697
|
xh.isBookmarkNode = Uc;
|
|
8698
8698
|
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) => {
|
|
@@ -8848,7 +8848,7 @@ Required: ` + n.join(", "));
|
|
|
8848
8848
|
}, v = (e, n) => {
|
|
8849
8849
|
e.focusedEditor === n.editor && (e.focusedEditor = null), !e.activeEditor && G0 && (nx.unbind(document, "focusin", G0), G0 = null);
|
|
8850
8850
|
}, k = (e) => {
|
|
8851
|
-
e.on("AddEditor",
|
|
8851
|
+
e.on("AddEditor", be(g, e)), e.on("RemoveEditor", be(v, e));
|
|
8852
8852
|
}, _ = (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) => {
|
|
8853
8853
|
J(Be.fromDom(e.getBody()), n).bind((s) => ha(s.dom)).fold(() => {
|
|
8854
8854
|
e.selection.normalize();
|
|
@@ -9140,7 +9140,7 @@ Required: ` + n.join(", "));
|
|
|
9140
9140
|
const a = e.document;
|
|
9141
9141
|
return pf(a, n, s).map((d) => WC.create(Be.fromDom(d.startContainer), d.startOffset, Be.fromDom(d.endContainer), d.endOffset));
|
|
9142
9142
|
}, Sm = (e, n) => {
|
|
9143
|
-
const s =
|
|
9143
|
+
const s = Oe(e);
|
|
9144
9144
|
return s === "input" ? xm.after(e) : Ne([
|
|
9145
9145
|
"br",
|
|
9146
9146
|
"img"
|
|
@@ -9360,7 +9360,7 @@ Required: ` + n.join(", "));
|
|
|
9360
9360
|
top: 0
|
|
9361
9361
|
});
|
|
9362
9362
|
return Fe(p.left + d.left + s.left, p.top + d.top + s.top);
|
|
9363
|
-
}, gE = (e) =>
|
|
9363
|
+
}, gE = (e) => Oe(e) === "textarea", uZ = (e, n) => e.dispatch("ScrollIntoView", n).isDefaultPrevented(), nT = (e, n) => {
|
|
9364
9364
|
e.dispatch("AfterScrollIntoView", n);
|
|
9365
9365
|
}, NM = (e, n) => {
|
|
9366
9366
|
const s = aa(e);
|
|
@@ -9379,7 +9379,7 @@ Required: ` + n.join(", "));
|
|
|
9379
9379
|
return gE(a) ? {
|
|
9380
9380
|
element: e,
|
|
9381
9381
|
offset: n
|
|
9382
|
-
} :
|
|
9382
|
+
} : Oe(a) === "img" ? {
|
|
9383
9383
|
element: a,
|
|
9384
9384
|
offset: 1
|
|
9385
9385
|
} : tr(a) ? {
|
|
@@ -9673,8 +9673,8 @@ Required: ` + n.join(", "));
|
|
|
9673
9673
|
}, yZ = Q(i8, n8), wZ = Q(i8, o8), a8 = (e, n) => {
|
|
9674
9674
|
const s = [
|
|
9675
9675
|
{
|
|
9676
|
-
condition:
|
|
9677
|
-
action:
|
|
9676
|
+
condition: be(s8, n),
|
|
9677
|
+
action: be(r8, n)
|
|
9678
9678
|
},
|
|
9679
9679
|
{
|
|
9680
9680
|
condition: vZ,
|
|
@@ -9933,14 +9933,14 @@ Required: ` + n.join(", "));
|
|
|
9933
9933
|
}, v8 = (e, n, s) => K.from(s.container()).filter(Wt).exists((a) => {
|
|
9934
9934
|
const d = e ? 0 : -1;
|
|
9935
9935
|
return n(a.data.charAt(s.offset() + d));
|
|
9936
|
-
}), OE =
|
|
9936
|
+
}), OE = be(v8, !0, ff), vE = be(v8, !1, ff), $Z = (e) => {
|
|
9937
9937
|
const n = e.container();
|
|
9938
9938
|
return Wt(n) && (n.data.length === 0 || ub(n.data) && xh.isBookmarkNode(n.parentNode));
|
|
9939
|
-
}, 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(
|
|
9940
|
-
const d = yn(Dp(Be.fromDom(s.container()), n), (y) => a.isBlock(
|
|
9939
|
+
}, 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) => {
|
|
9940
|
+
const d = yn(Dp(Be.fromDom(s.container()), n), (y) => a.isBlock(Oe(y))), p = No(d).getOr(n);
|
|
9941
9941
|
return yu(e, p.dom, s).filter(MZ);
|
|
9942
|
-
}, 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 =
|
|
9943
|
-
const a = yn(Dp(Be.fromDom(n.container()), e), (d) => s.isBlock(
|
|
9942
|
+
}, 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) => {
|
|
9943
|
+
const a = yn(Dp(Be.fromDom(n.container()), e), (d) => s.isBlock(Oe(d)));
|
|
9944
9944
|
return No(a).getOr(e);
|
|
9945
9945
|
}, 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([
|
|
9946
9946
|
"pre",
|
|
@@ -9989,7 +9989,7 @@ Required: ` + n.join(", "));
|
|
|
9989
9989
|
}, A8 = (e, n, s, a) => {
|
|
9990
9990
|
if (s === 0)
|
|
9991
9991
|
return;
|
|
9992
|
-
const d = Be.fromDom(e), p = Qc(d, (B) => a.isBlock(
|
|
9992
|
+
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);
|
|
9993
9993
|
e.replaceData(n, s, cu(y, 4, $, C));
|
|
9994
9994
|
}, dT = (e, n, s) => {
|
|
9995
9995
|
const a = e.data.slice(n), d = a.length - Da(a).length;
|
|
@@ -10003,13 +10003,13 @@ Required: ` + n.join(", "));
|
|
|
10003
10003
|
}, HZ = (e, n) => {
|
|
10004
10004
|
const s = e.container(), a = e.offset();
|
|
10005
10005
|
return !St.isTextPosition(e) && s === n.parentNode && a > St.before(n).offset();
|
|
10006
|
-
}, 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(
|
|
10006
|
+
}, 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) => {
|
|
10007
10007
|
s.fold(() => {
|
|
10008
10008
|
e.focus();
|
|
10009
10009
|
}, (a) => {
|
|
10010
10010
|
e.selection.setRng(a.toRange(), n);
|
|
10011
10011
|
});
|
|
10012
|
-
}, KZ = (e) => (n) => n.dom === e, JZ = (e, n) => n && jn(e.schema.getBlockElements(),
|
|
10012
|
+
}, KZ = (e) => (n) => n.dom === e, JZ = (e, n) => n && jn(e.schema.getBlockElements(), Oe(n)), Yb = (e, n, s) => {
|
|
10013
10013
|
if (Ki(e, n)) {
|
|
10014
10014
|
const a = Be.fromHtml('<br data-mce-bogus="1">');
|
|
10015
10015
|
return s ? ke(aa(n), (d) => {
|
|
@@ -10023,8 +10023,8 @@ Required: ` + n.join(", "));
|
|
|
10023
10023
|
const B = y.dom, W = C.dom, X = B.data.length;
|
|
10024
10024
|
return PE(B, W, s, a), $.container() === W ? St(B, X) : $;
|
|
10025
10025
|
}).orThunk(() => (a && (d.each((y) => $E(y.dom, y.dom.length, s)), p.each((y) => dT(y.dom, 0, s))), n));
|
|
10026
|
-
}, M8 = (e, n) => jn(e.schema.getTextInlineElements(),
|
|
10027
|
-
const p = YZ(n, e.getBody(), s.dom), y = Qc(s,
|
|
10026
|
+
}, M8 = (e, n) => jn(e.schema.getTextInlineElements(), Oe(n)), Kb = (e, n, s, a = !0, d = !1) => {
|
|
10027
|
+
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));
|
|
10028
10028
|
e.dom.isEmpty(e.getBody()) ? (e.setContent(""), e.selection.setCursorLocation()) : y.bind(($) => Yb(e.schema, $, d)).fold(() => {
|
|
10029
10029
|
a && RE(e, n, C);
|
|
10030
10030
|
}, ($) => {
|
|
@@ -10042,7 +10042,7 @@ Required: ` + n.join(", "));
|
|
|
10042
10042
|
}, oV = (e) => up(e) || Oh(e), Sh = (e, n) => {
|
|
10043
10043
|
const s = n.container(), a = n.offset();
|
|
10044
10044
|
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;
|
|
10045
|
-
}, L8 =
|
|
10045
|
+
}, L8 = be(Sh, !0), I8 = be(Sh, !1), o1 = (e, n) => {
|
|
10046
10046
|
const s = (a) => a.stopImmediatePropagation();
|
|
10047
10047
|
e.on("beforeinput input", s, !0), e.getDoc().execCommand(n), e.off("beforeinput input", s);
|
|
10048
10048
|
}, sV = (e) => {
|
|
@@ -10175,7 +10175,7 @@ Required: ` + n.join(", "));
|
|
|
10175
10175
|
}, UE = (e, n, s) => K.some(() => {
|
|
10176
10176
|
const a = e.selection.getRng(), d = s.bind(({ rng: p, isStartInTable: y }) => {
|
|
10177
10177
|
const C = W8(e, y ? p.endContainer : p.startContainer);
|
|
10178
|
-
p.deleteContents(), j8(e, y, C.filter(
|
|
10178
|
+
p.deleteContents(), j8(e, y, C.filter(be(Ki, e.schema)));
|
|
10179
10179
|
const $ = y ? n[0] : n[n.length - 1];
|
|
10180
10180
|
return yT(e, $, a, y), Ki(e.schema, $) ? K.none() : K.some(y ? n.slice(1) : n.slice(0, -1));
|
|
10181
10181
|
}).getOr(n);
|
|
@@ -10187,7 +10187,7 @@ Required: ` + n.join(", "));
|
|
|
10187
10187
|
zE(C.concat($)), a.deleteContents(), HE(e);
|
|
10188
10188
|
}), wT = (e, n, s, a = !0) => K.some(() => {
|
|
10189
10189
|
cr(e, n, s, a);
|
|
10190
|
-
}), q8 = (e, n) => K.some(() => Kb(e, !1, n)), WE = (e, n, s) => U8(n, s).bind((a) => a.fold(
|
|
10190
|
+
}), 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) => {
|
|
10191
10191
|
const a = Be.fromDom(e.getBody()), d = e.selection.getRng();
|
|
10192
10192
|
return s.length !== 0 ? UE(e, s, K.none()) : Y8(e, a, d, n);
|
|
10193
10193
|
}, 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(() => {
|
|
@@ -10759,7 +10759,7 @@ Required: ` + n.join(", "));
|
|
|
10759
10759
|
c$(e, n, s);
|
|
10760
10760
|
}, SV = (e, n, s) => {
|
|
10761
10761
|
var a, d;
|
|
10762
|
-
const p = e.dom, y = p.getParent(s,
|
|
10762
|
+
const p = e.dom, y = p.getParent(s, be(Iw, e.schema));
|
|
10763
10763
|
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));
|
|
10764
10764
|
}, u$ = (e, n) => (e.appendChild(n), n), vy = (e, n) => {
|
|
10765
10765
|
var s;
|
|
@@ -10861,7 +10861,7 @@ Required: ` + n.join(", "));
|
|
|
10861
10861
|
if (wu(n.dom))
|
|
10862
10862
|
return !1;
|
|
10863
10863
|
const s = e.schema.getTextInlineElements();
|
|
10864
|
-
return jn(s,
|
|
10864
|
+
return jn(s, Oe(n)) && !wu(n.dom) && !Kf(n.dom);
|
|
10865
10865
|
}, Px = {}, b6 = du(["pre"]), O6 = (e, n) => {
|
|
10866
10866
|
Px[e] || (Px[e] = []), Px[e].push(n);
|
|
10867
10867
|
}, v6 = (e, n) => {
|
|
@@ -12655,8 +12655,8 @@ Required: ` + n.join(", "));
|
|
|
12655
12655
|
p7(n, dz(n, p, a), a, s, d);
|
|
12656
12656
|
});
|
|
12657
12657
|
}), e3(n.element, U$(n.rows), n.rows);
|
|
12658
|
-
}, 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) =>
|
|
12659
|
-
const d = Be.fromTag(
|
|
12658
|
+
}, 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) => {
|
|
12659
|
+
const d = Be.fromTag(Oe(a)), p = Ts(ol(a), (y, C) => lo(C, "list-style"));
|
|
12660
12660
|
return Eo(d, p), [
|
|
12661
12661
|
Be.fromTag("li"),
|
|
12662
12662
|
d
|
|
@@ -12668,9 +12668,9 @@ Required: ` + n.join(", "));
|
|
|
12668
12668
|
e,
|
|
12669
12669
|
n
|
|
12670
12670
|
]) : N2(e) ? [e] : [], t3 = (e, n, s) => {
|
|
12671
|
-
const a = Be.fromDom(n.commonAncestorContainer), d = Dp(a, e), p = yn(d, ($) => s.isWrapper(
|
|
12671
|
+
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));
|
|
12672
12672
|
return Ke(C, rm);
|
|
12673
|
-
}, x7 = () => ix([]), gz = (e, n, s) => y7(Be.fromDom(n.cloneContents()), t3(e, n, s)), lO = (e, n) => Xh(n, "table",
|
|
12673
|
+
}, 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) => {
|
|
12674
12674
|
const a = n[0], d = n[n.length - 1], p = hz(s);
|
|
12675
12675
|
return mz(p, a, d).map((y) => ix([fz(y)]));
|
|
12676
12676
|
}).getOrThunk(x7), S7 = (e, n, s) => n.length > 0 && n[0].collapsed ? x7() : gz(e, n[0], s), Zx = (e, n, s) => {
|
|
@@ -13430,7 +13430,7 @@ Required: ` + n.join(", "));
|
|
|
13430
13430
|
serialize: C,
|
|
13431
13431
|
addRules: p.addValidElements,
|
|
13432
13432
|
setRules: p.setValidElements,
|
|
13433
|
-
addTempAttr:
|
|
13433
|
+
addTempAttr: be(sH, y, s),
|
|
13434
13434
|
getTempAttrs: Lt(s),
|
|
13435
13435
|
getNodeFilters: y.getNodeFilters,
|
|
13436
13436
|
getAttributeFilters: y.getAttributeFilters,
|
|
@@ -13546,7 +13546,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
13546
13546
|
get: (d) => e[d] ? e[d] : { icons: {} },
|
|
13547
13547
|
has: (d) => jn(e, d)
|
|
13548
13548
|
};
|
|
13549
|
-
})(), My = Qa.ModelManager, sB = (e, n) => n.dom[e], rB = (e, n) => parseInt(ii(n, e), 10), iB =
|
|
13549
|
+
})(), 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) => {
|
|
13550
13550
|
const a = iB(e), d = pH(e);
|
|
13551
13551
|
return n >= 0 && s >= 0 && n <= a && s <= d;
|
|
13552
13552
|
}, yH = (e, n, s, a) => {
|
|
@@ -13966,7 +13966,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
13966
13966
|
}), SB = (e) => {
|
|
13967
13967
|
const n = l3(), s = wP(e, n);
|
|
13968
13968
|
return { upload: (a, d = !0) => s.upload(a, d ? yP(e) : void 0) };
|
|
13969
|
-
}, xP = (e, n) => e.dom.isEmpty(n.dom) && je(e.schema.getTextBlockElements()[
|
|
13969
|
+
}, xP = (e, n) => e.dom.isEmpty(n.dom) && je(e.schema.getTextBlockElements()[Oe(n)]), wee = (e) => (n) => {
|
|
13970
13970
|
xP(e, n) && Nr(n, Be.fromHtml('<br data-mce-bogus="1" />'));
|
|
13971
13971
|
}, IH = (e) => {
|
|
13972
13972
|
const n = LH();
|
|
@@ -14621,7 +14621,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
14621
14621
|
matchNode: (a, d, p, y) => aP(e, a, d, p, y),
|
|
14622
14622
|
canApply: (a) => Q7(e, a),
|
|
14623
14623
|
formatChanged: (a, d, p, y) => z7(e, s, a, d, p, y),
|
|
14624
|
-
getCssText:
|
|
14624
|
+
getCssText: be(QH, e)
|
|
14625
14625
|
};
|
|
14626
14626
|
}, _B = (e) => {
|
|
14627
14627
|
switch (e.toLowerCase()) {
|
|
@@ -14784,7 +14784,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
14784
14784
|
return Br(d, p, eS).filter((y) => jH(y) && XH(n, y) && qH(y) && dO(y) && TP(y));
|
|
14785
14785
|
}, h3 = (e, n, s, a) => a.collapsed ? d3(e, n, s, a) : K.none(), fO = (e, n) => {
|
|
14786
14786
|
const s = aa(e);
|
|
14787
|
-
return Us(s, (a) => n.isBlock(
|
|
14787
|
+
return Us(s, (a) => n.isBlock(Oe(a))).fold(Lt(s), (a) => s.slice(0, a));
|
|
14788
14788
|
}, m1 = (e, n) => {
|
|
14789
14789
|
const s = fO(e, n);
|
|
14790
14790
|
return ke(s, sr), s;
|
|
@@ -14799,7 +14799,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
14799
14799
|
return ke(m1(n, a), (y) => {
|
|
14800
14800
|
vl(d, y);
|
|
14801
14801
|
}), tS(a, e, n), p;
|
|
14802
|
-
}, _P = (e, n) => e.isInline(
|
|
14802
|
+
}, _P = (e, n) => e.isInline(Oe(n)), EP = (e, n, s, a) => {
|
|
14803
14803
|
if (Ki(a, s)) {
|
|
14804
14804
|
if (Ki(a, n)) {
|
|
14805
14805
|
const y = Ps(((C) => {
|
|
@@ -14819,7 +14819,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
14819
14819
|
return K.from(s[s.length - 1]);
|
|
14820
14820
|
}, BB = (e, n) => qr(n, e) ? MB(n, e) : K.none(), mO = (e, n) => {
|
|
14821
14821
|
Dd(e, n.dom).bind((s) => K.from(s.getNode())).map(Be.fromDom).filter(bh).each(sr);
|
|
14822
|
-
}, $P = (e, n, s, a) => (mO(!0, n), mO(!1, s), BB(n, s).fold(
|
|
14822
|
+
}, $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) => {
|
|
14823
14823
|
const s = Be.fromDom(e.getBody());
|
|
14824
14824
|
return h3(e.schema, s.dom, n, e.selection.getRng()).map((d) => () => {
|
|
14825
14825
|
PP(s, n, d.from.block, d.to.block, e.schema).each((p) => {
|
|
@@ -14834,7 +14834,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
14834
14834
|
});
|
|
14835
14835
|
})).getOr(K.none());
|
|
14836
14836
|
}, AP = (e, n) => {
|
|
14837
|
-
const s = Be.fromDom(n), a =
|
|
14837
|
+
const s = Be.fromDom(n), a = be(ks, e);
|
|
14838
14838
|
return Qc(s, cb, a).isSome();
|
|
14839
14839
|
}, NB = (e, n) => AP(e, n.startContainer) || AP(e, n.endContainer), LB = (e, n) => {
|
|
14840
14840
|
const s = dl(e.dom, St.fromRangeStart(n)).isNone(), a = Cl(e.dom, St.fromRangeEnd(n)).isNone();
|
|
@@ -14871,7 +14871,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
14871
14871
|
const s = e.selection.getRng();
|
|
14872
14872
|
if (!Wt(s.commonAncestorContainer))
|
|
14873
14873
|
return K.none();
|
|
14874
|
-
const a = n ? ul.Forwards : ul.Backwards, d = vu(e.getBody()), p =
|
|
14874
|
+
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, $);
|
|
14875
14875
|
if (!B || !F0(C, B))
|
|
14876
14876
|
return K.none();
|
|
14877
14877
|
if (y(B))
|
|
@@ -14987,7 +14987,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
14987
14987
|
const a = XB(e);
|
|
14988
14988
|
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;
|
|
14989
14989
|
}
|
|
14990
|
-
}, y3 = (e, n) => e ? qB(n) : rU(n), HP =
|
|
14990
|
+
}, 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) => {
|
|
14991
14991
|
const s = n.get();
|
|
14992
14992
|
return s && e.container() === s && lm(s);
|
|
14993
14993
|
}, UP = (e, n) => n.fold((s) => {
|
|
@@ -15033,8 +15033,8 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15033
15033
|
return s || e;
|
|
15034
15034
|
}, w3 = (e, n, s) => {
|
|
15035
15035
|
const a = L8(s), d = JB(n, a.container());
|
|
15036
|
-
return Ha(e, d, a).fold(() => Cl(d, a).bind(
|
|
15037
|
-
}, WP = (e, n) => kp(e, n) === null, eN = (e, n, s) => Ha(e, n, s).filter(
|
|
15036
|
+
return Ha(e, d, a).fold(() => Cl(d, a).bind(be(Ha, e, d)).map((p) => qc.before(p)), K.none);
|
|
15037
|
+
}, WP = (e, n) => kp(e, n) === null, eN = (e, n, s) => Ha(e, n, s).filter(be(WP, n)), aU = (e, n, s) => {
|
|
15038
15038
|
const a = I8(s);
|
|
15039
15039
|
return eN(e, n, a).bind((d) => dl(d, a).isNone() ? K.some(qc.start(d)) : K.none());
|
|
15040
15040
|
}, lU = (e, n, s) => {
|
|
@@ -15042,7 +15042,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15042
15042
|
return eN(e, n, a).bind((d) => Cl(d, a).isNone() ? K.some(qc.end(d)) : K.none());
|
|
15043
15043
|
}, cU = (e, n, s) => {
|
|
15044
15044
|
const a = I8(s), d = JB(n, a.container());
|
|
15045
|
-
return Ha(e, d, a).fold(() => dl(d, a).bind(
|
|
15045
|
+
return Ha(e, d, a).fold(() => dl(d, a).bind(be(Ha, e, d)).map((p) => qc.after(p)), K.none);
|
|
15046
15046
|
}, jP = (e) => !ME(XP(e)), kg = (e, n, s) => KB([
|
|
15047
15047
|
w3,
|
|
15048
15048
|
aU,
|
|
@@ -15054,10 +15054,10 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15054
15054
|
s
|
|
15055
15055
|
]).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) => {
|
|
15056
15056
|
const p = Sh(e, d);
|
|
15057
|
-
return yu(e, s, p).map(
|
|
15057
|
+
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);
|
|
15058
15058
|
}, 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) => {
|
|
15059
15059
|
const d = Sh(e, a), p = kg(n, s, d);
|
|
15060
|
-
return kg(n, s, d).bind(
|
|
15060
|
+
return kg(n, s, d).bind(be(mU, e)).orThunk(() => fU(e, n, s, p, a));
|
|
15061
15061
|
}, C3 = (e) => ye(e.selection.getSel().modify), tN = (e, n, s) => {
|
|
15062
15062
|
const a = e ? 1 : -1;
|
|
15063
15063
|
return n.setRng(St(s.container(), s.offset() + a).toRange()), n.getSel().modify("move", e ? "forward" : "backward", "word"), !0;
|
|
@@ -15112,7 +15112,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15112
15112
|
}).getOr([]), GP = (e, n) => Co(e, (s, a) => s.fold(() => K.some(a), (d) => Br(No(d.getClientRects()), No(a.getClientRects()), (p, y) => {
|
|
15113
15113
|
const C = Math.abs(n - p.left);
|
|
15114
15114
|
return Math.abs(n - y.left) <= C ? a : d;
|
|
15115
|
-
}).or(s)), K.none()), _3 = (e, n) => No(n.getClientRects()).bind((s) => GP(e, s.left)), rS =
|
|
15115
|
+
}).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) => {
|
|
15116
15116
|
const d = Math.min(cN(s, n), KP(s, n)), p = Math.min(cN(a, n), KP(a, n));
|
|
15117
15117
|
return p === d && yU(a) && lN(a.node) || p < d ? a : s;
|
|
15118
15118
|
}), wU = (e) => {
|
|
@@ -15156,7 +15156,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15156
15156
|
return C;
|
|
15157
15157
|
const W = p.getNode();
|
|
15158
15158
|
return W && ($(W), dN(e, a, $, W)), C;
|
|
15159
|
-
}, eA = (e, n) => n.line > e, xU = (e, n) => n.line === e, SU =
|
|
15159
|
+
}, 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) => {
|
|
15160
15160
|
const d = vu(n);
|
|
15161
15161
|
let p, y, C, $;
|
|
15162
15162
|
const B = [];
|
|
@@ -15179,7 +15179,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15179
15179
|
}, CU = (e) => (n) => eA(e, n), fN = (e) => (n) => xU(e, n), sc = (e, n) => {
|
|
15180
15180
|
e.selection.setRng(n), uy(e, e.selection.getRng());
|
|
15181
15181
|
}, tA = (e, n, s) => K.some(DP(e, n, s)), mN = (e, n, s, a, d, p) => {
|
|
15182
|
-
const y = n === ul.Forwards, C = vu(e.getBody()), $ =
|
|
15182
|
+
const y = n === ul.Forwards, C = vu(e.getBody()), $ = be(Aw, y ? C.next : C.prev), B = y ? a : d;
|
|
15183
15183
|
if (!s.collapsed) {
|
|
15184
15184
|
const ge = iv(s);
|
|
15185
15185
|
if (p(ge))
|
|
@@ -15246,11 +15246,11 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15246
15246
|
return s ? dl(n, d).getOr(d) : Cl(n, a).getOr(a);
|
|
15247
15247
|
}
|
|
15248
15248
|
}, _U = (e, n, s) => {
|
|
15249
|
-
const a = e.getBody(), d = TU(e.selection.getRng(), a, s), p =
|
|
15249
|
+
const a = e.getBody(), d = TU(e.selection.getRng(), a, s), p = be(n1, e);
|
|
15250
15250
|
return k3(s, p, a, d).bind((C) => bN(e, n, C));
|
|
15251
15251
|
}, ON = (e, n, s) => {
|
|
15252
15252
|
const a = Ke(rl(Be.fromDom(n.getRoot()), '*[data-mce-selected="inline-boundary"]'), (y) => y.dom), d = yn(a, e), p = yn(s, e);
|
|
15253
|
-
ke(Rr(d, p),
|
|
15253
|
+
ke(Rr(d, p), be(pN, !1)), ke(Rr(p, d), be(pN, !0));
|
|
15254
15254
|
}, EU = (e, n) => {
|
|
15255
15255
|
const s = n.get();
|
|
15256
15256
|
if (e.selection.isCollapsed() && !e.composing && s) {
|
|
@@ -15266,17 +15266,17 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15266
15266
|
});
|
|
15267
15267
|
}
|
|
15268
15268
|
}, $3 = (e, n, s) => Sb(e) ? _U(e, n, s).isSome() : !1, vN = (e, n, s) => Sb(n) ? gU(e, n) : !1, $U = (e) => {
|
|
15269
|
-
const n = _r(null), s =
|
|
15269
|
+
const n = _r(null), s = be(n1, e);
|
|
15270
15270
|
return e.on("NodeChange", (a) => {
|
|
15271
15271
|
Sb(e) && (ON(s, e.dom, a.parents), EU(e, n), Fp(s, e, n, a.parents));
|
|
15272
15272
|
}), n;
|
|
15273
|
-
}, PU =
|
|
15273
|
+
}, PU = be(vN, !0), AU = be(vN, !1), P3 = (e, n, s) => {
|
|
15274
15274
|
if (Sb(e)) {
|
|
15275
15275
|
const a = E3(e, n).getOrThunk(() => {
|
|
15276
15276
|
const d = e.selection.getRng();
|
|
15277
15277
|
return n ? St.fromRangeEnd(d) : St.fromRangeStart(d);
|
|
15278
15278
|
});
|
|
15279
|
-
return kg(
|
|
15279
|
+
return kg(be(n1, e), e.getBody(), a).exists((d) => {
|
|
15280
15280
|
const p = S3(d);
|
|
15281
15281
|
return UP(s, p).exists((y) => (pO(e, y), !0));
|
|
15282
15282
|
});
|
|
@@ -15289,7 +15289,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15289
15289
|
const a = Sh(!0, n), d = Sh(!1, s);
|
|
15290
15290
|
return Cl(e, a).forall((p) => p.isEqual(d));
|
|
15291
15291
|
}).getOr(!0), A3 = (e, n) => (s) => UP(n, s).map((a) => () => pO(e, a)), sA = (e, n, s, a) => {
|
|
15292
|
-
const d = e.getBody(), p =
|
|
15292
|
+
const d = e.getBody(), p = be(n1, e);
|
|
15293
15293
|
e.undoManager.ignore(() => {
|
|
15294
15294
|
e.selection.setRng(nA(s, a)), hT(e), kg(p, d, St.fromRangeStart(e.selection.getRng())).map(qP).bind(A3(e, n)).each(sn);
|
|
15295
15295
|
}), e.nodeChanged();
|
|
@@ -15297,7 +15297,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15297
15297
|
const s = hf(n, e);
|
|
15298
15298
|
return s || e;
|
|
15299
15299
|
}, wN = (e, n, s, a) => {
|
|
15300
|
-
const d = yN(e.getBody(), a.container()), p =
|
|
15300
|
+
const d = yN(e.getBody(), a.container()), p = be(n1, e), y = kg(p, d, a);
|
|
15301
15301
|
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(() => {
|
|
15302
15302
|
const $ = fg(s, d, a), B = $.bind((W) => kg(p, d, W));
|
|
15303
15303
|
return Br(y, B, () => Ha(p, d, a).bind((W) => oA(W) ? K.some(() => {
|
|
@@ -15315,8 +15315,8 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15315
15315
|
}, aS = (e) => sh(e) > 1, lS = (e, n) => {
|
|
15316
15316
|
const s = Be.fromDom(e.getBody()), a = Be.fromDom(e.selection.getStart()), d = Dp(a, s);
|
|
15317
15317
|
return Us(d, n).fold(Lt(d), (p) => d.slice(0, p));
|
|
15318
|
-
}, xN = (e) => sh(e) === 1, SN = (e) => lS(e, (n) => e.schema.isBlock(
|
|
15319
|
-
const s =
|
|
15318
|
+
}, 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) => {
|
|
15319
|
+
const s = be(h$, e);
|
|
15320
15320
|
return Js(n, (a) => s(a) ? [a.dom] : []);
|
|
15321
15321
|
}, cS = (e) => {
|
|
15322
15322
|
const n = kN(e);
|
|
@@ -15364,7 +15364,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15364
15364
|
});
|
|
15365
15365
|
} else
|
|
15366
15366
|
return K.none();
|
|
15367
|
-
}, cA = (e, n) => e.selection.isCollapsed() ? uS(e, n) : FU(e), ZU = (e, n) => r0(e, (s) => wu(s.dom), (s) => n.isBlock(
|
|
15367
|
+
}, 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) => {
|
|
15368
15368
|
const n = e.selection.getRng();
|
|
15369
15369
|
return n.collapsed && (lA(n) || e.dom.isEmpty(n.startContainer)) && !EN(e);
|
|
15370
15370
|
}, Tf = (e) => (VU(e) && TN(e, []), !0), D3 = (e, n, s) => je(s) ? K.some(() => {
|
|
@@ -15566,12 +15566,12 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15566
15566
|
Ok(s) && (QN(e, s), e.undoManager.add());
|
|
15567
15567
|
}
|
|
15568
15568
|
}, eW = (e) => {
|
|
15569
|
-
e.on("keyup compositionstart",
|
|
15569
|
+
e.on("keyup compositionstart", be(FN, e));
|
|
15570
15570
|
}, 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) => {
|
|
15571
15571
|
const n = e.dom.create(Ri(e));
|
|
15572
15572
|
return n.innerHTML = '<br data-mce-bogus="1">', n;
|
|
15573
15573
|
}, zN = (e, n, s) => {
|
|
15574
|
-
const a = vu(e.getBody()), d =
|
|
15574
|
+
const a = vu(e.getBody()), d = be(Aw, n === 1 ? a.next : a.prev);
|
|
15575
15575
|
if (s.collapsed) {
|
|
15576
15576
|
const p = e.dom.getParent(s.startContainer, "PRE");
|
|
15577
15577
|
if (!p)
|
|
@@ -15593,9 +15593,9 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15593
15593
|
}, 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) => {
|
|
15594
15594
|
const a = s.toRange(), d = e.selection.getRng();
|
|
15595
15595
|
return n ? a.setStart(d.startContainer, d.startOffset) : a.setEnd(d.endContainer, d.endOffset), a;
|
|
15596
|
-
}).exists((s) => (sc(e, s), !0)), oW = (e) => Ne(["figcaption"],
|
|
15597
|
-
const a =
|
|
15598
|
-
return Gr(Be.fromDom(e.container()), (d) => s.isBlock(
|
|
15596
|
+
}).exists((s) => (sc(e, s), !0)), oW = (e) => Ne(["figcaption"], Oe(e)), HN = (e, n, s) => {
|
|
15597
|
+
const a = be(ks, n);
|
|
15598
|
+
return Gr(Be.fromDom(e.container()), (d) => s.isBlock(Oe(d)), a).filter(oW);
|
|
15599
15599
|
}, UN = (e, n, s) => n ? Ah(e.dom, s) : OU(e.dom, s), sW = (e, n) => {
|
|
15600
15600
|
const s = Be.fromDom(e.getBody()), a = St.fromRangeStart(e.selection.getRng());
|
|
15601
15601
|
return HN(a, s, e.schema).exists(() => {
|
|
@@ -15645,7 +15645,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15645
15645
|
}, 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) => {
|
|
15646
15646
|
if (s(n))
|
|
15647
15647
|
return K.none();
|
|
15648
|
-
if (Ne(e,
|
|
15648
|
+
if (Ne(e, Oe(n)))
|
|
15649
15649
|
return K.some(n);
|
|
15650
15650
|
const a = (d) => Ol(d, "table") || s(d);
|
|
15651
15651
|
return Xh(n, e.join(","), a);
|
|
@@ -15671,7 +15671,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15671
15671
|
}), 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 = [
|
|
15672
15672
|
"img",
|
|
15673
15673
|
"br"
|
|
15674
|
-
], bW = (e) => gW(e) || Ne(pW,
|
|
15674
|
+
], bW = (e) => gW(e) || Ne(pW, Oe(e)) || CA(e), Pee = (e) => jh(e, bW), OW = (e, n) => ({
|
|
15675
15675
|
left: e.left - n,
|
|
15676
15676
|
top: e.top - n,
|
|
15677
15677
|
right: e.right + n * 2,
|
|
@@ -15698,10 +15698,10 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15698
15698
|
}), K.none()), tL = (e, n, s, a, d) => {
|
|
15699
15699
|
const p = rl(Be.fromDom(s), "td,th,caption").map((C) => C.dom), y = yn(eL(e, p), (C) => n(C, d));
|
|
15700
15700
|
return Aee(y, a, d).map((C) => C.cell);
|
|
15701
|
-
}, vW = (e) => e.bottom, yW = (e) => e.top, TA = (e, n) => e.y < n, Q3 = (e, n) => e.y > n, nL =
|
|
15701
|
+
}, 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) => {
|
|
15702
15702
|
const a = e(n, s);
|
|
15703
15703
|
return SW(a) || !As(s.getNode()) && kW(a) ? !_A(e, n, a) : a.breakAt.isNone();
|
|
15704
|
-
}, CW =
|
|
15704
|
+
}, CW = be(sL, rS), _f = be(sL, iS), rL = (e, n, s) => {
|
|
15705
15705
|
const a = St.fromRangeStart(n);
|
|
15706
15706
|
return Dd(!e, s).exists((d) => d.isEqual(a));
|
|
15707
15707
|
}, iL = (e, n, s, a) => {
|
|
@@ -15739,7 +15739,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15739
15739
|
"li",
|
|
15740
15740
|
"dl"
|
|
15741
15741
|
], a = Be.fromDom(e.getBody()), d = (C) => {
|
|
15742
|
-
const $ =
|
|
15742
|
+
const $ = Oe(C);
|
|
15743
15743
|
return ks(C, a) || Ne(s, $);
|
|
15744
15744
|
}, p = e.selection.getRng(), y = Be.fromDom(n ? p.endContainer : p.startContainer);
|
|
15745
15745
|
return JN(y, d).map((C) => (xA(C, d).each((W) => {
|
|
@@ -16704,7 +16704,7 @@ Input object: ` + Zy(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = Lt(AL), OS
|
|
|
16704
16704
|
W.setStartAfter(a), W.setEndAfter(s);
|
|
16705
16705
|
const X = W.extractContents();
|
|
16706
16706
|
if (d === "LI" && $j(X, "LI")) {
|
|
16707
|
-
const G = yn(Ke(B.children, Be.fromDom),
|
|
16707
|
+
const G = yn(Ke(B.children, Be.fromDom), ot(Ba("br")));
|
|
16708
16708
|
B = X.firstChild, p.insertAfter(X, s), ke(G, (re) => Gh(Be.fromDom(B), re)), $ && B.setAttribute("style", $);
|
|
16709
16709
|
} else
|
|
16710
16710
|
p.insertAfter(X, s), p.insertAfter(B, s);
|
|
@@ -16887,14 +16887,14 @@ Input object: ` + Zy(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = Lt(AL), OS
|
|
|
16887
16887
|
const s = Be.fromTag("br");
|
|
16888
16888
|
mc(Be.fromDom(n), s), i_(e, s.dom, !1), e.undoManager.add();
|
|
16889
16889
|
}, 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) => {
|
|
16890
|
-
const n =
|
|
16890
|
+
const n = be(n1, e), s = St.fromRangeStart(e.selection.getRng());
|
|
16891
16891
|
return kg(n, e.getBody(), s).filter(zj);
|
|
16892
16892
|
}, Hj = (e, n) => {
|
|
16893
|
-
n.fold(kt,
|
|
16893
|
+
n.fold(kt, be(a_, e), be(Fj, e), kt);
|
|
16894
16894
|
}, f9 = {
|
|
16895
16895
|
insert: (e, n) => {
|
|
16896
16896
|
const s = h9(e);
|
|
16897
|
-
s.isSome() ? s.each(
|
|
16897
|
+
s.isSome() ? s.each(be(Hj, e)) : u9(e, n);
|
|
16898
16898
|
},
|
|
16899
16899
|
fakeEventName: "insertLineBreak"
|
|
16900
16900
|
}, 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([
|
|
@@ -17076,12 +17076,12 @@ Input object: ` + Zy(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = Lt(AL), OS
|
|
|
17076
17076
|
const p = Be.fromText(e);
|
|
17077
17077
|
return n.isAtEnd() ? mc(d, p) : vl(d, p), St(p.dom, e.length);
|
|
17078
17078
|
});
|
|
17079
|
-
}, mD =
|
|
17079
|
+
}, 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) => {
|
|
17080
17080
|
e.selection.setRng(n.toRange()), e.nodeChanged();
|
|
17081
17081
|
}, C9 = (e, n) => e.isEditable(e.getParent(n, "summary")), rX = (e) => {
|
|
17082
17082
|
const n = St.fromRangeStart(e.selection.getRng()), s = Be.fromDom(e.getBody());
|
|
17083
17083
|
if (e.selection.isCollapsed()) {
|
|
17084
|
-
const a =
|
|
17084
|
+
const a = be(n1, e), d = St.fromRangeStart(e.selection.getRng());
|
|
17085
17085
|
return kg(a, e.getBody(), d).bind(oX(s)).map((p) => () => sX(s, n, e.schema)(p).each(k9(e)));
|
|
17086
17086
|
} else
|
|
17087
17087
|
return K.none();
|
|
@@ -17716,7 +17716,7 @@ Input object: ` + Zy(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = Lt(AL), OS
|
|
|
17716
17716
|
});
|
|
17717
17717
|
}, DD = (e) => {
|
|
17718
17718
|
lI(e), cI(e);
|
|
17719
|
-
}, 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(
|
|
17719
|
+
}, 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) => {
|
|
17720
17720
|
const a = new Na(e, n), d = s ? a.next.bind(a) : a.prev.bind(a);
|
|
17721
17721
|
let p = e;
|
|
17722
17722
|
for (let y = s ? e : d(); y && !eq(y); y = d())
|
|
@@ -17773,7 +17773,7 @@ Input object: ` + Zy(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = Lt(AL), OS
|
|
|
17773
17773
|
return y(C, pI).orThunk(() => y(W, hp)).orThunk(() => y(B, hp));
|
|
17774
17774
|
}, cq = (e, n, s, a) => {
|
|
17775
17775
|
const d = (p, y) => {
|
|
17776
|
-
const C = (B) => pn(B) && B.classList.contains("mce-drag-container"), $ = yn(p.dom.childNodes,
|
|
17776
|
+
const C = (B) => pn(B) && B.classList.contains("mce-drag-container"), $ = yn(p.dom.childNodes, ot(C));
|
|
17777
17777
|
return y.fold(() => w_($, s, a, !0), (B) => {
|
|
17778
17778
|
const W = yn($, (X) => X !== B.dom);
|
|
17779
17779
|
return w_(W, s, a, !0);
|
|
@@ -19303,7 +19303,7 @@ Input object: ` + Zy(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = Lt(AL), OS
|
|
|
19303
19303
|
}), hQ = (e) => K.from(e.selection.getRng()).bind((n) => {
|
|
19304
19304
|
const s = e.getBody();
|
|
19305
19305
|
return n.startContainer === s && n.startOffset === 0 ? K.none() : K.from(e.selection.getStart(!0));
|
|
19306
|
-
}), fQ = (e, n) => hQ(e).orThunk(
|
|
19306
|
+
}), 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) => {
|
|
19307
19307
|
if (/^[0-9.]+$/.test(n)) {
|
|
19308
19308
|
const s = parseInt(n, 10);
|
|
19309
19309
|
if (s >= 1 && s <= 7) {
|
|
@@ -19322,7 +19322,7 @@ Input object: ` + Zy(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = Lt(AL), OS
|
|
|
19322
19322
|
}, FG = (e) => sR(e, (n) => V_(e.getBody(), n.dom)).getOr(""), ZG = (e, n) => {
|
|
19323
19323
|
e.formatter.toggle("fontsize", { value: mQ(e, n) }), e.nodeChanged();
|
|
19324
19324
|
}, x1 = (e) => sR(e, (n) => oR(e.getBody(), n.dom)).getOr(""), VG = (e) => sR(e, (n) => {
|
|
19325
|
-
const s = Be.fromDom(e.getBody()), a = Cx(n, (p) => Dl(p, "line-height"),
|
|
19325
|
+
const s = Be.fromDom(e.getBody()), a = Cx(n, (p) => Dl(p, "line-height"), be(ks, s)), d = () => {
|
|
19326
19326
|
const p = parseFloat(ii(n, "line-height")), y = parseFloat(ii(n, "font-size"));
|
|
19327
19327
|
return String(p / y);
|
|
19328
19328
|
};
|
|
@@ -20962,10 +20962,10 @@ function ahe() {
|
|
|
20962
20962
|
}
|
|
20963
20963
|
}
|
|
20964
20964
|
Q.singletonNone = new Q(!1);
|
|
20965
|
-
const to = Array.prototype.slice, Lt = Array.prototype.indexOf, Kt = Array.prototype.push, Qt = (t, r) => Lt.call(t, r),
|
|
20965
|
+
const to = Array.prototype.slice, Lt = Array.prototype.indexOf, Kt = Array.prototype.push, Qt = (t, r) => Lt.call(t, r), be = (t, r) => {
|
|
20966
20966
|
const l = Qt(t, r);
|
|
20967
20967
|
return l === -1 ? Q.none() : Q.some(l);
|
|
20968
|
-
},
|
|
20968
|
+
}, ot = (t, r) => Qt(t, r) > -1, qt = (t, r) => {
|
|
20969
20969
|
for (let l = 0, f = t.length; l < f; l++) {
|
|
20970
20970
|
const b = t[l];
|
|
20971
20971
|
if (r(b, l))
|
|
@@ -21056,7 +21056,7 @@ function ahe() {
|
|
|
21056
21056
|
}, vo = (t) => {
|
|
21057
21057
|
const r = to.call(t, 0);
|
|
21058
21058
|
return r.reverse(), r;
|
|
21059
|
-
}, yn = (t, r) => Oo(t, (l) => !
|
|
21059
|
+
}, yn = (t, r) => Oo(t, (l) => !ot(r, l)), Ps = (t, r) => {
|
|
21060
21060
|
const l = {};
|
|
21061
21061
|
for (let f = 0, b = t.length; f < b; f++) {
|
|
21062
21062
|
const x = t[f];
|
|
@@ -21366,7 +21366,7 @@ function ahe() {
|
|
|
21366
21366
|
}, Ma = (t) => {
|
|
21367
21367
|
const r = t.dom, f = r.ownerDocument.body;
|
|
21368
21368
|
return f === r ? lr(f.offsetLeft, f.offsetTop) : Ve(t) ? Nc(r) : lr(0, 0);
|
|
21369
|
-
}, nu = yi("width", (t) => t.dom.offsetWidth), he = (t, r) => nu.set(t, r),
|
|
21369
|
+
}, 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) => {
|
|
21370
21370
|
const l = [
|
|
21371
21371
|
"margin-left",
|
|
21372
21372
|
"border-left-width",
|
|
@@ -22026,7 +22026,7 @@ function ahe() {
|
|
|
22026
22026
|
` + $o(t.errors).join(`
|
|
22027
22027
|
`) + `
|
|
22028
22028
|
|
|
22029
|
-
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) =>
|
|
22029
|
+
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) => {
|
|
22030
22030
|
if (!R(t))
|
|
22031
22031
|
throw new Error("cases must be an array");
|
|
22032
22032
|
if (t.length === 0)
|
|
@@ -22058,7 +22058,7 @@ Input object: ` + Ro(t.input), Gi = (t, r) => ef(t, Bo(r, fo)), qm = (t, r) => z
|
|
|
22058
22058
|
if (r.length !== ne.length)
|
|
22059
22059
|
throw new Error("Wrong number of arguments to match. Expected: " + r.join(",") + `
|
|
22060
22060
|
Actual: ` + ne.join(","));
|
|
22061
|
-
if (!Fn(r, (pe) =>
|
|
22061
|
+
if (!Fn(r, (pe) => ot(ne, pe)))
|
|
22062
22062
|
throw new Error("Not all branches were specified when using match. Specified: " + ne.join(", ") + `
|
|
22063
22063
|
Required: ` + r.join(", "));
|
|
22064
22064
|
return j[S].apply(null, D);
|
|
@@ -22115,7 +22115,7 @@ Required: ` + r.join(", "));
|
|
|
22115
22115
|
}, en = (t, r) => {
|
|
22116
22116
|
const l = {};
|
|
22117
22117
|
return Fs(t, (f, b) => {
|
|
22118
|
-
|
|
22118
|
+
ot(r, b) || (l[b] = f);
|
|
22119
22119
|
}), l;
|
|
22120
22120
|
}, Rn = (t, r) => ({ [t]: r }), ko = (t) => {
|
|
22121
22121
|
const r = {};
|
|
@@ -22320,10 +22320,10 @@ Required: ` + r.join(", "));
|
|
|
22320
22320
|
}, fh = { init: () => Xl({ readState: oe("No State required") }) }, Xl = (t) => t, Gt = (t) => Hs(t), O0 = il([
|
|
22321
22321
|
$t("fields"),
|
|
22322
22322
|
$t("name"),
|
|
22323
|
-
|
|
22324
|
-
|
|
22325
|
-
|
|
22326
|
-
|
|
22323
|
+
st("active", {}),
|
|
22324
|
+
st("apis", {}),
|
|
22325
|
+
st("state", fh),
|
|
22326
|
+
st("extra", {})
|
|
22327
22327
|
]), xa = (t) => {
|
|
22328
22328
|
const r = Ml("Creating behaviour: " + t.name, O0, t);
|
|
22329
22329
|
return T2(r.fields, r.name, r.active, r.apis, r.extra, r.state);
|
|
@@ -22331,10 +22331,10 @@ Required: ` + r.join(", "));
|
|
|
22331
22331
|
$t("branchKey"),
|
|
22332
22332
|
$t("branches"),
|
|
22333
22333
|
$t("name"),
|
|
22334
|
-
|
|
22335
|
-
|
|
22336
|
-
|
|
22337
|
-
|
|
22334
|
+
st("active", {}),
|
|
22335
|
+
st("apis", {}),
|
|
22336
|
+
st("state", fh),
|
|
22337
|
+
st("extra", {})
|
|
22338
22338
|
]), _2 = (t) => {
|
|
22339
22339
|
const r = Ml("Creating behaviour: " + t.name, L4, t);
|
|
22340
22340
|
return rf(Gi(r.branchKey, r.branches), r.name, r.active, r.apis, r.extra, r.state);
|
|
@@ -22347,7 +22347,7 @@ Required: ` + r.join(", "));
|
|
|
22347
22347
|
}, E2 = (t, r, l) => {
|
|
22348
22348
|
const f = Oo(kr(t, r), (b) => b !== l);
|
|
22349
22349
|
return f.length > 0 ? dn(t, r, f.join(" ")) : ce(t, r), !1;
|
|
22350
|
-
}, 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) =>
|
|
22350
|
+
}, 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) => {
|
|
22351
22351
|
v0(t) ? t.dom.classList.add(r) : $2(t, r);
|
|
22352
22352
|
}, uk = (t) => {
|
|
22353
22353
|
(v0(t) ? t.dom.classList : og(t)).length === 0 && ce(t, "class");
|
|
@@ -22438,7 +22438,7 @@ Required: ` + r.join(", "));
|
|
|
22438
22438
|
}, lp = (t, r, l) => l.getInitialPos().map((f) => {
|
|
22439
22439
|
const b = A2(f, r);
|
|
22440
22440
|
return {
|
|
22441
|
-
box: Gr(b.left, b.top,
|
|
22441
|
+
box: Gr(b.left, b.top, Oe(t), ei(t)),
|
|
22442
22442
|
location: f.location
|
|
22443
22443
|
};
|
|
22444
22444
|
}), rb = (t, r, l, f, b) => {
|
|
@@ -22661,7 +22661,7 @@ Required: ` + r.join(", "));
|
|
|
22661
22661
|
},
|
|
22662
22662
|
write: () => {
|
|
22663
22663
|
const b = (/* @__PURE__ */ new Date()).getTime();
|
|
22664
|
-
|
|
22664
|
+
ot([
|
|
22665
22665
|
"mousemove",
|
|
22666
22666
|
"mouseover",
|
|
22667
22667
|
"mouseout",
|
|
@@ -22670,7 +22670,7 @@ Required: ` + r.join(", "));
|
|
|
22670
22670
|
event: t,
|
|
22671
22671
|
time: b - f,
|
|
22672
22672
|
target: r.dom,
|
|
22673
|
-
sequence: Ue(l, (x) =>
|
|
22673
|
+
sequence: Ue(l, (x) => ot([
|
|
22674
22674
|
"cut",
|
|
22675
22675
|
"stopped",
|
|
22676
22676
|
"response"
|
|
@@ -22828,7 +22828,7 @@ Check the ` + hh() + " event handlers"), !1) : !0;
|
|
|
22828
22828
|
}), 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) => {
|
|
22829
22829
|
const l = Ue(r, (b) => Ai(b.name(), [
|
|
22830
22830
|
$t("config"),
|
|
22831
|
-
|
|
22831
|
+
st("state", fh)
|
|
22832
22832
|
])), f = Vr("component.behaviours", fo(l), t.behaviours).fold((b) => {
|
|
22833
22833
|
throw new Error(Uu(b) + `
|
|
22834
22834
|
Complete spec:
|
|
@@ -22934,16 +22934,16 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ue(r, (l) => l.name),
|
|
|
22934
22934
|
}, pp = "alloy.base.behaviour", $k = fo([
|
|
22935
22935
|
Yi("dom", "dom", Fc(), fo([
|
|
22936
22936
|
$t("tag"),
|
|
22937
|
-
|
|
22938
|
-
|
|
22939
|
-
|
|
22937
|
+
st("styles", {}),
|
|
22938
|
+
st("classes", []),
|
|
22939
|
+
st("attributes", {}),
|
|
22940
22940
|
$s("value"),
|
|
22941
22941
|
$s("innerHtml")
|
|
22942
22942
|
])),
|
|
22943
22943
|
$t("components"),
|
|
22944
22944
|
$t("uid"),
|
|
22945
|
-
|
|
22946
|
-
|
|
22945
|
+
st("events", {}),
|
|
22946
|
+
st("apis", {}),
|
|
22947
22947
|
Yi("eventOrder", "eventOrder", U({
|
|
22948
22948
|
[wl()]: [
|
|
22949
22949
|
"disabling",
|
|
@@ -23319,7 +23319,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ue(r, (l) => l.name),
|
|
|
23319
23319
|
cl,
|
|
23320
23320
|
da,
|
|
23321
23321
|
Za
|
|
23322
|
-
], Xk = (t, r) => r.universal ? t : Oo(t, (l) =>
|
|
23322
|
+
], Xk = (t, r) => r.universal ? t : Oo(t, (l) => ot(r.channels, l));
|
|
23323
23323
|
var g5 = /* @__PURE__ */ Object.freeze({
|
|
23324
23324
|
__proto__: null,
|
|
23325
23325
|
events: (t) => nr([_t(Gu(), (r, l) => {
|
|
@@ -23332,7 +23332,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
23332
23332
|
})])
|
|
23333
23333
|
}), qk = [Ds("channels", Hu(Eo.value, il([
|
|
23334
23334
|
vh("onReceive"),
|
|
23335
|
-
|
|
23335
|
+
st("schema", cu())
|
|
23336
23336
|
])))];
|
|
23337
23337
|
const Hc = xa({
|
|
23338
23338
|
fields: qk,
|
|
@@ -23513,7 +23513,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
23513
23513
|
const x = (L) => {
|
|
23514
23514
|
var V;
|
|
23515
23515
|
const j = (V = L.raw.pseudoElement) !== null && V !== void 0 ? V : "";
|
|
23516
|
-
return Jo(L.target, t) && Te(j) &&
|
|
23516
|
+
return Jo(L.target, t) && Te(j) && ot(Sv, L.raw.propertyName);
|
|
23517
23517
|
}, S = (L) => {
|
|
23518
23518
|
if (me(L) || x(L)) {
|
|
23519
23519
|
l.clear(), f.clear();
|
|
@@ -23708,7 +23708,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
23708
23708
|
var gM = [
|
|
23709
23709
|
$t("hotspot"),
|
|
23710
23710
|
$s("bubble"),
|
|
23711
|
-
|
|
23711
|
+
st("overrides", {}),
|
|
23712
23712
|
cg(),
|
|
23713
23713
|
Ir("placement", bc)
|
|
23714
23714
|
];
|
|
@@ -23724,10 +23724,10 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
23724
23724
|
var Av = [
|
|
23725
23725
|
$t("x"),
|
|
23726
23726
|
$t("y"),
|
|
23727
|
-
|
|
23728
|
-
|
|
23729
|
-
|
|
23730
|
-
|
|
23727
|
+
st("height", 0),
|
|
23728
|
+
st("width", 0),
|
|
23729
|
+
st("bubble", _v()),
|
|
23730
|
+
st("overrides", {}),
|
|
23731
23731
|
cg(),
|
|
23732
23732
|
Ir("placement", R0)
|
|
23733
23733
|
];
|
|
@@ -23781,8 +23781,8 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
23781
23781
|
$t("root"),
|
|
23782
23782
|
$s("bubble"),
|
|
23783
23783
|
cg(),
|
|
23784
|
-
|
|
23785
|
-
|
|
23784
|
+
st("overrides", {}),
|
|
23785
|
+
st("showAbove", !1),
|
|
23786
23786
|
Ir("placement", kw)
|
|
23787
23787
|
];
|
|
23788
23788
|
const pM = "\uFEFF", Tb = " ", M0 = { create: (t, r, l, f) => ({
|
|
@@ -24002,8 +24002,8 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24002
24002
|
$t("root"),
|
|
24003
24003
|
$s("bubble"),
|
|
24004
24004
|
cg(),
|
|
24005
|
-
|
|
24006
|
-
|
|
24005
|
+
st("overrides", {}),
|
|
24006
|
+
st("showAbove", !1),
|
|
24007
24007
|
Ir("placement", yp)
|
|
24008
24008
|
];
|
|
24009
24009
|
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, {
|
|
@@ -24040,7 +24040,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24040
24040
|
var Lb = [
|
|
24041
24041
|
$t("item"),
|
|
24042
24042
|
cg(),
|
|
24043
|
-
|
|
24043
|
+
st("overrides", {}),
|
|
24044
24044
|
Ir("placement", Q5)
|
|
24045
24045
|
], Vv = Gi("type", {
|
|
24046
24046
|
selection: Fv,
|
|
@@ -24057,7 +24057,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24057
24057
|
"placement"
|
|
24058
24058
|
])
|
|
24059
24059
|
], Aw = [
|
|
24060
|
-
|
|
24060
|
+
st("useFixed", dt),
|
|
24061
24061
|
$s("getBounds")
|
|
24062
24062
|
], F0 = [
|
|
24063
24063
|
Ds("anchor", Vv),
|
|
@@ -24155,7 +24155,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24155
24155
|
}, SC = (t, r, l) => {
|
|
24156
24156
|
const f = t.components(), b = ke(r, (E) => Q2(E).toArray());
|
|
24157
24157
|
pt(f, (E) => {
|
|
24158
|
-
|
|
24158
|
+
ot(b, E) || Uv(E);
|
|
24159
24159
|
});
|
|
24160
24160
|
const x = l(r), S = yn(f, x);
|
|
24161
24161
|
pt(S, (E) => {
|
|
@@ -24249,7 +24249,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24249
24249
|
bs("onClose"),
|
|
24250
24250
|
$t("isPartOf"),
|
|
24251
24251
|
$t("getAttachPoint"),
|
|
24252
|
-
|
|
24252
|
+
st("cloakVisibilityAttr", "data-precloak-visibility")
|
|
24253
24253
|
], H5 = /* @__PURE__ */ Object.freeze({
|
|
24254
24254
|
__proto__: null,
|
|
24255
24255
|
init: () => {
|
|
@@ -24270,8 +24270,8 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24270
24270
|
apis: Z5,
|
|
24271
24271
|
state: H5
|
|
24272
24272
|
}), mg = oe("dismiss.popups"), Om = oe("reposition.popups"), qv = oe("mouse.released"), Dw = il([
|
|
24273
|
-
|
|
24274
|
-
Ai("fireEventInstead", [
|
|
24273
|
+
st("isExtraPart", dt),
|
|
24274
|
+
Ai("fireEventInstead", [st("event", nm())])
|
|
24275
24275
|
]), Uc = (t) => {
|
|
24276
24276
|
const r = Ml("Dismissal", Dw, t);
|
|
24277
24277
|
return {
|
|
@@ -24283,7 +24283,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24283
24283
|
}
|
|
24284
24284
|
};
|
|
24285
24285
|
}, U5 = il([
|
|
24286
|
-
Ai("fireEventInstead", [
|
|
24286
|
+
Ai("fireEventInstead", [st("event", g0())]),
|
|
24287
24287
|
hu("doReposition")
|
|
24288
24288
|
]), Cp = (t) => {
|
|
24289
24289
|
const r = Ml("Reposition", U5, t);
|
|
@@ -24408,7 +24408,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24408
24408
|
};
|
|
24409
24409
|
var j5 = [
|
|
24410
24410
|
$t("getValue"),
|
|
24411
|
-
|
|
24411
|
+
st("setValue", le),
|
|
24412
24412
|
$s("initialValue"),
|
|
24413
24413
|
Ir("manager", {
|
|
24414
24414
|
setValue: gg,
|
|
@@ -24443,7 +24443,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24443
24443
|
dataset: Nw
|
|
24444
24444
|
})),
|
|
24445
24445
|
bs("onSetValue"),
|
|
24446
|
-
|
|
24446
|
+
st("resetOnDom", !1)
|
|
24447
24447
|
];
|
|
24448
24448
|
const kn = xa({
|
|
24449
24449
|
fields: Qw,
|
|
@@ -24520,7 +24520,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24520
24520
|
{ external: ["data"] },
|
|
24521
24521
|
{ optional: ["data"] },
|
|
24522
24522
|
{ group: ["data"] }
|
|
24523
|
-
]), U0 =
|
|
24523
|
+
]), 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([
|
|
24524
24524
|
U0,
|
|
24525
24525
|
Vw,
|
|
24526
24526
|
gf,
|
|
@@ -24653,10 +24653,10 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24653
24653
|
});
|
|
24654
24654
|
const WC = (t, r) => (t.length > 0 ? [tf("parts", t)] : []).concat([
|
|
24655
24655
|
$t("uid"),
|
|
24656
|
-
|
|
24657
|
-
|
|
24656
|
+
st("dom", {}),
|
|
24657
|
+
st("components", []),
|
|
24658
24658
|
dp("originalSpec"),
|
|
24659
|
-
|
|
24659
|
+
st("debug.sketcher", {})
|
|
24660
24660
|
]).concat(r), sy = (t, r, l, f, b) => {
|
|
24661
24661
|
const x = WC(f, b);
|
|
24662
24662
|
return Ml(t + " [SpecSchema]", il(x.concat(r)), l);
|
|
@@ -24673,15 +24673,15 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24673
24673
|
$t("name"),
|
|
24674
24674
|
$t("factory"),
|
|
24675
24675
|
$t("configFields"),
|
|
24676
|
-
|
|
24677
|
-
|
|
24676
|
+
st("apis", {}),
|
|
24677
|
+
st("extraApis", {})
|
|
24678
24678
|
]), ry = il([
|
|
24679
24679
|
$t("name"),
|
|
24680
24680
|
$t("factory"),
|
|
24681
24681
|
$t("configFields"),
|
|
24682
24682
|
$t("partFields"),
|
|
24683
|
-
|
|
24684
|
-
|
|
24683
|
+
st("apis", {}),
|
|
24684
|
+
st("extraApis", {})
|
|
24685
24685
|
]), $c = (t) => {
|
|
24686
24686
|
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));
|
|
24687
24687
|
return {
|
|
@@ -24718,7 +24718,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24718
24718
|
"select"
|
|
24719
24719
|
], Yw = (t, r, l) => {
|
|
24720
24720
|
(r.disabled() ? iy : Jw)(t, r);
|
|
24721
|
-
}, Kw = (t, r) => r.useNative === !0 &&
|
|
24721
|
+
}, Kw = (t, r) => r.useNative === !0 && ot(q0, Ss(t.element)), qC = (t) => q(t.element, "disabled"), GC = (t) => {
|
|
24722
24722
|
dn(t.element, "disabled", "disabled");
|
|
24723
24723
|
}, tE = (t) => {
|
|
24724
24724
|
ce(t.element, "disabled");
|
|
@@ -24753,7 +24753,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24753
24753
|
])
|
|
24754
24754
|
}), iE = [
|
|
24755
24755
|
zs("disabled", dt),
|
|
24756
|
-
|
|
24756
|
+
st("useNative", !0),
|
|
24757
24757
|
$s("disableClass"),
|
|
24758
24758
|
bs("onDisabled"),
|
|
24759
24759
|
bs("onEnabled")
|
|
@@ -24849,7 +24849,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24849
24849
|
return Ne(f, l);
|
|
24850
24850
|
}, Un = (t) => (r) => {
|
|
24851
24851
|
const l = r.raw;
|
|
24852
|
-
return
|
|
24852
|
+
return ot(t, l.which);
|
|
24853
24853
|
}, 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) => ({
|
|
24854
24854
|
matches: t,
|
|
24855
24855
|
classification: r
|
|
@@ -24889,8 +24889,8 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24889
24889
|
})(Ll || (Ll = {}));
|
|
24890
24890
|
const Bd = (t, r, l, f, b) => {
|
|
24891
24891
|
const x = () => t.concat([
|
|
24892
|
-
|
|
24893
|
-
_r("focusInside", "onFocus", Ug((L) =>
|
|
24892
|
+
st("focusManager", ka()),
|
|
24893
|
+
_r("focusInside", "onFocus", Ug((L) => ot([
|
|
24894
24894
|
"onFocus",
|
|
24895
24895
|
"onEnterOrSpace",
|
|
24896
24896
|
"onApi"
|
|
@@ -24934,9 +24934,9 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24934
24934
|
const r = [
|
|
24935
24935
|
$s("onEscape"),
|
|
24936
24936
|
$s("onEnter"),
|
|
24937
|
-
|
|
24938
|
-
|
|
24939
|
-
|
|
24937
|
+
st("selector", '[data-alloy-tabstop="true"]:not(:disabled)'),
|
|
24938
|
+
st("firstTabstop", 0),
|
|
24939
|
+
st("useTabstopAt", kt),
|
|
24940
24940
|
$s("visibilitySelector")
|
|
24941
24941
|
].concat([t]), l = (we, We) => {
|
|
24942
24942
|
const He = we.visibilitySelector.bind((ct) => _d(We, ct)).getOr(We);
|
|
@@ -24975,11 +24975,11 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24975
24975
|
};
|
|
24976
24976
|
var sx = ec(As("cyclic", dt)), Xb = ec(As("cyclic", kt));
|
|
24977
24977
|
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 = [
|
|
24978
|
-
|
|
24979
|
-
|
|
24980
|
-
|
|
24981
|
-
|
|
24982
|
-
|
|
24978
|
+
st("execute", Ca),
|
|
24979
|
+
st("useSpace", !1),
|
|
24980
|
+
st("useEnter", !0),
|
|
24981
|
+
st("useControlEnter", !1),
|
|
24982
|
+
st("useDown", !1)
|
|
24983
24983
|
], rx = (t, r, l) => l.execute(t, r, t.element), uE = (t, r, l, f) => {
|
|
24984
24984
|
const b = l.useSpace && !X0(t.element) ? Yt : [], x = l.useEnter ? Zt : [], S = l.useDown ? oo : [], E = b.concat(x).concat(S);
|
|
24985
24985
|
return [ms(Un(E), rx)].concat(l.useControlEnter ? [ms(pr([
|
|
@@ -25048,9 +25048,9 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25048
25048
|
});
|
|
25049
25049
|
}), 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 = [
|
|
25050
25050
|
$t("selector"),
|
|
25051
|
-
|
|
25051
|
+
st("execute", Ca),
|
|
25052
25052
|
Gl("onEscape"),
|
|
25053
|
-
|
|
25053
|
+
st("captureTab", !1),
|
|
25054
25054
|
cm()
|
|
25055
25055
|
], cZ = (t, r, l) => {
|
|
25056
25056
|
Er(t.element, r.selector).each((f) => {
|
|
@@ -25089,13 +25089,13 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25089
25089
|
return j === b ? Q.none() : V(j);
|
|
25090
25090
|
}), zM = [
|
|
25091
25091
|
$t("selector"),
|
|
25092
|
-
|
|
25093
|
-
|
|
25092
|
+
st("getInitial", Q.none),
|
|
25093
|
+
st("execute", Ca),
|
|
25094
25094
|
Gl("onEscape"),
|
|
25095
|
-
|
|
25096
|
-
|
|
25097
|
-
|
|
25098
|
-
|
|
25095
|
+
st("executeOnMove", !1),
|
|
25096
|
+
st("allowVertical", !0),
|
|
25097
|
+
st("allowHorizontal", !0),
|
|
25098
|
+
st("cycles", !0)
|
|
25099
25099
|
], 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) => {
|
|
25100
25100
|
r.getInitial(t).orThunk(() => Er(t.element, r.selector)).each((f) => {
|
|
25101
25101
|
r.focusManager.set(t, f);
|
|
@@ -25134,9 +25134,9 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25134
25134
|
$t("row"),
|
|
25135
25135
|
$t("cell")
|
|
25136
25136
|
]),
|
|
25137
|
-
|
|
25138
|
-
|
|
25139
|
-
|
|
25137
|
+
st("cycles", !0),
|
|
25138
|
+
st("previousSelector", Q.none),
|
|
25139
|
+
st("execute", Ca)
|
|
25140
25140
|
], n8 = (t, r, l) => {
|
|
25141
25141
|
r.previousSelector(t).orThunk(() => {
|
|
25142
25142
|
const b = r.selectors;
|
|
@@ -25166,8 +25166,8 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25166
25166
|
var l8 = Bd(OZ, fh.init, wZ, a8, () => Q.some(n8));
|
|
25167
25167
|
const c8 = [
|
|
25168
25168
|
$t("selector"),
|
|
25169
|
-
|
|
25170
|
-
|
|
25169
|
+
st("execute", Ca),
|
|
25170
|
+
st("moveOnTab", !1)
|
|
25171
25171
|
], u8 = (t, r, l) => l.focusManager.get(t).bind((f) => l.execute(t, r, f)), xZ = (t, r, l) => {
|
|
25172
25172
|
Er(t.element, r.selector).each((f) => {
|
|
25173
25173
|
r.focusManager.set(t, f);
|
|
@@ -25198,7 +25198,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25198
25198
|
Gl("onUp"),
|
|
25199
25199
|
Gl("onDown"),
|
|
25200
25200
|
Gl("onEscape"),
|
|
25201
|
-
|
|
25201
|
+
st("stopSpaceKeyup", !1),
|
|
25202
25202
|
$s("focusIn")
|
|
25203
25203
|
], SZ = (t, r, l) => [
|
|
25204
25204
|
ms(Un(Yt), l.onSpace),
|
|
@@ -25349,8 +25349,8 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25349
25349
|
})] : []))
|
|
25350
25350
|
}), lT = [
|
|
25351
25351
|
bs("onFocus"),
|
|
25352
|
-
|
|
25353
|
-
|
|
25352
|
+
st("stopMousedown", !1),
|
|
25353
|
+
st("ignore", !1)
|
|
25354
25354
|
];
|
|
25355
25355
|
const go = xa({
|
|
25356
25356
|
fields: lT,
|
|
@@ -25413,13 +25413,13 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25413
25413
|
dn(t.element, "aria-expanded", l);
|
|
25414
25414
|
};
|
|
25415
25415
|
var fx = [
|
|
25416
|
-
|
|
25416
|
+
st("selected", !1),
|
|
25417
25417
|
$s("toggleClass"),
|
|
25418
|
-
|
|
25418
|
+
st("toggleOnExecute", !0),
|
|
25419
25419
|
bs("onToggled"),
|
|
25420
25420
|
_r("aria", { mode: "none" }, Gi("mode", {
|
|
25421
25421
|
pressed: [
|
|
25422
|
-
|
|
25422
|
+
st("syncWithExpanded", !1),
|
|
25423
25423
|
Ir("update", E8)
|
|
25424
25424
|
],
|
|
25425
25425
|
checked: [Ir("update", FZ)],
|
|
@@ -25506,7 +25506,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25506
25506
|
$t("data"),
|
|
25507
25507
|
$t("components"),
|
|
25508
25508
|
$t("dom"),
|
|
25509
|
-
|
|
25509
|
+
st("hasSubmenu", !1),
|
|
25510
25510
|
$s("toggling"),
|
|
25511
25511
|
$s("role"),
|
|
25512
25512
|
xu.field("itemBehaviours", [
|
|
@@ -25515,10 +25515,10 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25515
25515
|
Xn,
|
|
25516
25516
|
kn
|
|
25517
25517
|
]),
|
|
25518
|
-
|
|
25519
|
-
|
|
25518
|
+
st("ignoreFocus", !1),
|
|
25519
|
+
st("domModification", {}),
|
|
25520
25520
|
Ir("builder", $E),
|
|
25521
|
-
|
|
25521
|
+
st("eventOrder", {})
|
|
25522
25522
|
], HZ = (t) => ({
|
|
25523
25523
|
dom: t.dom,
|
|
25524
25524
|
components: t.components,
|
|
@@ -25584,14 +25584,14 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25584
25584
|
$t("data"),
|
|
25585
25585
|
$t("components"),
|
|
25586
25586
|
$t("dom"),
|
|
25587
|
-
|
|
25588
|
-
|
|
25587
|
+
st("autofocus", !1),
|
|
25588
|
+
st("ignoreFocus", !1),
|
|
25589
25589
|
xu.field("widgetBehaviours", [
|
|
25590
25590
|
kn,
|
|
25591
25591
|
go,
|
|
25592
25592
|
Xn
|
|
25593
25593
|
]),
|
|
25594
|
-
|
|
25594
|
+
st("domModification", {}),
|
|
25595
25595
|
j0(DE()),
|
|
25596
25596
|
Ir("builder", D8)
|
|
25597
25597
|
], WZ = Gi("type", {
|
|
@@ -25643,7 +25643,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25643
25643
|
$t("items"),
|
|
25644
25644
|
$t("dom"),
|
|
25645
25645
|
$t("components"),
|
|
25646
|
-
|
|
25646
|
+
st("eventOrder", {}),
|
|
25647
25647
|
za("menuBehaviours", [
|
|
25648
25648
|
ue,
|
|
25649
25649
|
kn,
|
|
@@ -25661,19 +25661,19 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25661
25661
|
matrix: [
|
|
25662
25662
|
Ir("config", XZ),
|
|
25663
25663
|
$t("rowSelector"),
|
|
25664
|
-
|
|
25664
|
+
st("previousSelector", Q.none)
|
|
25665
25665
|
],
|
|
25666
25666
|
menu: [
|
|
25667
|
-
|
|
25667
|
+
st("moveOnTab", !0),
|
|
25668
25668
|
Ir("config", qZ)
|
|
25669
25669
|
]
|
|
25670
25670
|
})),
|
|
25671
25671
|
vk(),
|
|
25672
|
-
|
|
25673
|
-
|
|
25672
|
+
st("fakeFocus", !1),
|
|
25673
|
+
st("focusManager", ka()),
|
|
25674
25674
|
bs("onHighlight"),
|
|
25675
25675
|
bs("onDehighlight"),
|
|
25676
|
-
|
|
25676
|
+
st("showMenuRole", !0)
|
|
25677
25677
|
]), RE = oe("alloy.menu-focus"), KZ = (t, r) => {
|
|
25678
25678
|
const l = Oc(t.element, '[role="menuitemradio"][aria-checked="true"]');
|
|
25679
25679
|
pt(l, (f) => {
|
|
@@ -25854,7 +25854,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25854
25854
|
}), pe = (Ut, On) => {
|
|
25855
25855
|
const yo = ae(Ut);
|
|
25856
25856
|
Fs(yo, (Zo, eo) => {
|
|
25857
|
-
const Ao =
|
|
25857
|
+
const Ao = ot(On, eo);
|
|
25858
25858
|
dn(Zo.element, "aria-expanded", Ao);
|
|
25859
25859
|
});
|
|
25860
25860
|
}, Se = (Ut, On, yo) => Q.from(yo[0]).bind((Zo) => On.lookupMenu(Zo).bind((eo) => {
|
|
@@ -26002,27 +26002,27 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26002
26002
|
vh("onOpenSubmenu"),
|
|
26003
26003
|
bs("onRepositionMenu"),
|
|
26004
26004
|
bs("onCollapseMenu"),
|
|
26005
|
-
|
|
26005
|
+
st("highlightOnOpen", Ha.HighlightMenuAndItem),
|
|
26006
26006
|
tf("data", [
|
|
26007
26007
|
$t("primary"),
|
|
26008
26008
|
$t("menus"),
|
|
26009
26009
|
$t("expansions")
|
|
26010
26010
|
]),
|
|
26011
|
-
|
|
26011
|
+
st("fakeFocus", !1),
|
|
26012
26012
|
bs("onHighlightItem"),
|
|
26013
26013
|
bs("onDehighlightItem"),
|
|
26014
26014
|
bs("onHover"),
|
|
26015
26015
|
up(),
|
|
26016
26016
|
$t("dom"),
|
|
26017
|
-
|
|
26018
|
-
|
|
26017
|
+
st("navigateOnHover", !0),
|
|
26018
|
+
st("stayInDom", !1),
|
|
26019
26019
|
za("tmenuBehaviours", [
|
|
26020
26020
|
Xn,
|
|
26021
26021
|
ue,
|
|
26022
26022
|
Os,
|
|
26023
26023
|
wo
|
|
26024
26024
|
]),
|
|
26025
|
-
|
|
26025
|
+
st("eventOrder", {})
|
|
26026
26026
|
],
|
|
26027
26027
|
apis: {
|
|
26028
26028
|
collapseMenu: (t, r) => {
|
|
@@ -26177,11 +26177,11 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26177
26177
|
kn,
|
|
26178
26178
|
Hc
|
|
26179
26179
|
]),
|
|
26180
|
-
Ai("fireDismissalEventInstead", [
|
|
26181
|
-
Ai("fireRepositionEventInstead", [
|
|
26182
|
-
|
|
26183
|
-
|
|
26184
|
-
|
|
26180
|
+
Ai("fireDismissalEventInstead", [st("event", nm())]),
|
|
26181
|
+
Ai("fireRepositionEventInstead", [st("event", g0())]),
|
|
26182
|
+
st("getRelated", Q.none),
|
|
26183
|
+
st("isExtraPart", dt),
|
|
26184
|
+
st("eventOrder", Q.none)
|
|
26185
26185
|
],
|
|
26186
26186
|
factory: hT,
|
|
26187
26187
|
apis: {
|
|
@@ -26433,7 +26433,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26433
26433
|
"visible",
|
|
26434
26434
|
"hidden",
|
|
26435
26435
|
"clip"
|
|
26436
|
-
], s6 = (t) => vr(t).length > 0 && !
|
|
26436
|
+
], s6 = (t) => vr(t).length > 0 && !ot(o6, t), KE = (t) => {
|
|
26437
26437
|
if (So(t)) {
|
|
26438
26438
|
const r = Bt(t, "overflow-x"), l = Bt(t, "overflow-y");
|
|
26439
26439
|
return s6(r) || s6(l);
|
|
@@ -26483,16 +26483,16 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26483
26483
|
};
|
|
26484
26484
|
},
|
|
26485
26485
|
configFields: [
|
|
26486
|
-
|
|
26486
|
+
st("uid", void 0),
|
|
26487
26487
|
$t("dom"),
|
|
26488
|
-
|
|
26488
|
+
st("components", []),
|
|
26489
26489
|
xu.field("buttonBehaviours", [
|
|
26490
26490
|
go,
|
|
26491
26491
|
Xn
|
|
26492
26492
|
]),
|
|
26493
26493
|
$s("action"),
|
|
26494
26494
|
$s("role"),
|
|
26495
|
-
|
|
26495
|
+
st("eventOrder", {})
|
|
26496
26496
|
]
|
|
26497
26497
|
}), aV = (t) => {
|
|
26498
26498
|
const r = t.dom.attributes !== void 0 ? t.dom.attributes : [];
|
|
@@ -26527,7 +26527,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26527
26527
|
value: "true"
|
|
26528
26528
|
}])
|
|
26529
26529
|
})
|
|
26530
|
-
}), cV = [
|
|
26530
|
+
}), cV = [st("tabAttr", "data-alloy-tabstop")];
|
|
26531
26531
|
const zr = xa({
|
|
26532
26532
|
fields: cV,
|
|
26533
26533
|
name: "tabstopping",
|
|
@@ -26679,7 +26679,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26679
26679
|
}),
|
|
26680
26680
|
_t(Gu(), (S, E) => {
|
|
26681
26681
|
const D = E;
|
|
26682
|
-
D.universal ||
|
|
26682
|
+
D.universal || ot(D.channels, _T) && l(S);
|
|
26683
26683
|
}),
|
|
26684
26684
|
sf((S) => {
|
|
26685
26685
|
l(S);
|
|
@@ -26691,8 +26691,8 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26691
26691
|
}), n$ = [
|
|
26692
26692
|
$t("lazySink"),
|
|
26693
26693
|
$t("tooltipDom"),
|
|
26694
|
-
|
|
26695
|
-
|
|
26694
|
+
st("exclusive", !0),
|
|
26695
|
+
st("tooltipComponents", []),
|
|
26696
26696
|
zs("delayForShow", oe(300)),
|
|
26697
26697
|
zs("delayForHide", oe(300)),
|
|
26698
26698
|
zs("onSetup", le),
|
|
@@ -26702,7 +26702,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26702
26702
|
"children-keyboard-focus",
|
|
26703
26703
|
"children-normal"
|
|
26704
26704
|
]),
|
|
26705
|
-
|
|
26705
|
+
st("anchor", (t) => ({
|
|
26706
26706
|
type: "hotspot",
|
|
26707
26707
|
hotspot: t,
|
|
26708
26708
|
layouts: {
|
|
@@ -27475,7 +27475,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27475
27475
|
}, E = (j) => {
|
|
27476
27476
|
S().each((ne) => {
|
|
27477
27477
|
pt(j, (ae) => {
|
|
27478
|
-
Uo(ae.element, "width"),
|
|
27478
|
+
Uo(ae.element, "width"), Oe(ae.element) > ne.width && an(ae.element, "width", ne.width + "px");
|
|
27479
27479
|
});
|
|
27480
27480
|
});
|
|
27481
27481
|
};
|
|
@@ -27498,7 +27498,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27498
27498
|
});
|
|
27499
27499
|
}, Se = () => !i1(t) || !b.header.isPositionedAtTop(), qe = xl(LT.sketch({
|
|
27500
27500
|
text: j.text,
|
|
27501
|
-
level:
|
|
27501
|
+
level: ot([
|
|
27502
27502
|
"success",
|
|
27503
27503
|
"error",
|
|
27504
27504
|
"warning",
|
|
@@ -27655,20 +27655,20 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27655
27655
|
}, A6 = oe([
|
|
27656
27656
|
xr("type", "text"),
|
|
27657
27657
|
$s("data"),
|
|
27658
|
-
|
|
27659
|
-
|
|
27660
|
-
|
|
27661
|
-
|
|
27658
|
+
st("inputAttributes", {}),
|
|
27659
|
+
st("inputStyles", {}),
|
|
27660
|
+
st("tag", "input"),
|
|
27661
|
+
st("inputClasses", []),
|
|
27662
27662
|
bs("onSetValue"),
|
|
27663
27663
|
zs("fromInputValue", At),
|
|
27664
27664
|
zs("toInputValue", At),
|
|
27665
|
-
|
|
27666
|
-
|
|
27665
|
+
st("styles", {}),
|
|
27666
|
+
st("eventOrder", {}),
|
|
27667
27667
|
za("inputBehaviours", [
|
|
27668
27668
|
kn,
|
|
27669
27669
|
go
|
|
27670
27670
|
]),
|
|
27671
|
-
|
|
27671
|
+
st("selectOnFocus", !0)
|
|
27672
27672
|
]), D6 = (t) => Gt([go.config({
|
|
27673
27673
|
onFocus: t.selectOnFocus ? (r) => {
|
|
27674
27674
|
const l = r.element, f = Cd(l);
|
|
@@ -27951,7 +27951,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27951
27951
|
components: RV,
|
|
27952
27952
|
items: l
|
|
27953
27953
|
};
|
|
27954
|
-
}, 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) =>
|
|
27954
|
+
}, 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([
|
|
27955
27955
|
ta,
|
|
27956
27956
|
h1
|
|
27957
27957
|
]), HV = (t) => Vr("separatormenuitem", j6, t), UV = fo([
|
|
@@ -28096,7 +28096,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
28096
28096
|
ta,
|
|
28097
28097
|
Wi("fancytype"),
|
|
28098
28098
|
P$
|
|
28099
|
-
], KV = [
|
|
28099
|
+
], KV = [st("initData", {})].concat(e7), JV = [
|
|
28100
28100
|
ah("select"),
|
|
28101
28101
|
ee("initData", {}, [
|
|
28102
28102
|
wa("allowCustomColors", !0),
|
|
@@ -28197,7 +28197,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
28197
28197
|
return;
|
|
28198
28198
|
}
|
|
28199
28199
|
const { contextType: f, shouldDisable: b } = t();
|
|
28200
|
-
f === "mode" && !
|
|
28200
|
+
f === "mode" && !ot(l7, l) || zn.set(r, b);
|
|
28201
28201
|
}
|
|
28202
28202
|
}
|
|
28203
28203
|
}
|
|
@@ -28442,7 +28442,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
28442
28442
|
case "cardimage":
|
|
28443
28443
|
return d7(l.src, l.classes, l.alt);
|
|
28444
28444
|
case "cardtext":
|
|
28445
|
-
const b = l.name.exists((x) =>
|
|
28445
|
+
const b = l.name.exists((x) => ot(r.cardText.highlightOn, x)) ? Q.from(r.cardText.matchText).getOr("") : "";
|
|
28446
28446
|
return V$(m7(l.text, b), l.classes);
|
|
28447
28447
|
}
|
|
28448
28448
|
}), uz = (t, r, l, f) => {
|
|
@@ -28653,7 +28653,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
28653
28653
|
var Bp = tinymce.util.Tools.resolve("tinymce.util.LocalStorage");
|
|
28654
28654
|
const Hx = {}, P7 = (t, r = 10) => {
|
|
28655
28655
|
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) => {
|
|
28656
|
-
|
|
28656
|
+
be(x, L).each(E), x.unshift(L), x.length > r && x.pop(), Bp.setItem(t, JSON.stringify(x));
|
|
28657
28657
|
}, E = (L) => {
|
|
28658
28658
|
x.splice(L, 1);
|
|
28659
28659
|
};
|
|
@@ -29377,7 +29377,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29377
29377
|
const S = Bi.getCoupled(l, "sandbox");
|
|
29378
29378
|
return (_s.isOpen(S) ? dH : r3)(t, r, l, S, f, b, x);
|
|
29379
29379
|
}, hH = (t, r, l) => {
|
|
29380
|
-
const f = Os.getCurrent(r).getOr(r), b =
|
|
29380
|
+
const f = Os.getCurrent(r).getOr(r), b = Oe(t.element);
|
|
29381
29381
|
l ? an(f.element, "min-width", b + "px") : he(f.element, b);
|
|
29382
29382
|
}, 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) => {
|
|
29383
29383
|
_s.getState(t).each((r) => {
|
|
@@ -29424,7 +29424,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29424
29424
|
const r = Bi.getCoupled(t, "sandbox");
|
|
29425
29425
|
nB(r);
|
|
29426
29426
|
}, Ry = () => [
|
|
29427
|
-
|
|
29427
|
+
st("sandboxClasses", []),
|
|
29428
29428
|
xu.field("sandboxBehaviours", [
|
|
29429
29429
|
Os,
|
|
29430
29430
|
Hc,
|
|
@@ -29436,8 +29436,8 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29436
29436
|
$t("fetch"),
|
|
29437
29437
|
bs("onOpen"),
|
|
29438
29438
|
Gl("onExecute"),
|
|
29439
|
-
|
|
29440
|
-
|
|
29439
|
+
st("getHotspot", Q.some),
|
|
29440
|
+
st("getAnchorOverrides", oe({})),
|
|
29441
29441
|
cg(),
|
|
29442
29442
|
za("dropdownBehaviours", [
|
|
29443
29443
|
Go,
|
|
@@ -29446,17 +29446,17 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29446
29446
|
go
|
|
29447
29447
|
]),
|
|
29448
29448
|
$t("toggleClass"),
|
|
29449
|
-
|
|
29449
|
+
st("eventOrder", {}),
|
|
29450
29450
|
$s("lazySink"),
|
|
29451
|
-
|
|
29452
|
-
|
|
29451
|
+
st("matchWidth", !1),
|
|
29452
|
+
st("useMinWidth", !1),
|
|
29453
29453
|
$s("role"),
|
|
29454
29454
|
$s("listRole")
|
|
29455
29455
|
].concat(Ry())), mH = oe([
|
|
29456
29456
|
td({
|
|
29457
29457
|
schema: [
|
|
29458
29458
|
up(),
|
|
29459
|
-
|
|
29459
|
+
st("fakeFocus", !1)
|
|
29460
29460
|
],
|
|
29461
29461
|
name: "menu",
|
|
29462
29462
|
defaults: (t) => ({ onExecute: t.onExecute })
|
|
@@ -29789,7 +29789,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29789
29789
|
}
|
|
29790
29790
|
]);
|
|
29791
29791
|
return { fireIfReady: (L, V) => jt(E, V).bind((j) => j(L)) };
|
|
29792
|
-
}, Xx = (t) => t.raw.which === Ie[0] && !
|
|
29792
|
+
}, Xx = (t) => t.raw.which === Ie[0] && !ot([
|
|
29793
29793
|
"input",
|
|
29794
29794
|
"textarea"
|
|
29795
29795
|
], Ss(t.target)) && !_m(t.target, '[contenteditable="true"]'), CH = (t, r) => {
|
|
@@ -29974,11 +29974,11 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
29974
29974
|
};
|
|
29975
29975
|
},
|
|
29976
29976
|
configFields: [
|
|
29977
|
-
|
|
29977
|
+
st("components", []),
|
|
29978
29978
|
za("containerBehaviours", []),
|
|
29979
|
-
|
|
29980
|
-
|
|
29981
|
-
|
|
29979
|
+
st("events", {}),
|
|
29980
|
+
st("domModification", {}),
|
|
29981
|
+
st("eventOrder", {})
|
|
29982
29982
|
]
|
|
29983
29983
|
}), OP = (t) => {
|
|
29984
29984
|
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, {
|
|
@@ -30087,7 +30087,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30087
30087
|
},
|
|
30088
30088
|
components: Ue(t.items, r.interpreter)
|
|
30089
30089
|
}), PH = oe([
|
|
30090
|
-
|
|
30090
|
+
st("prefix", "form-field"),
|
|
30091
30091
|
za("fieldBehaviours", [
|
|
30092
30092
|
Os,
|
|
30093
30093
|
kn
|
|
@@ -30330,7 +30330,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30330
30330
|
"textarea"
|
|
30331
30331
|
], xB = (t) => {
|
|
30332
30332
|
const r = Ss(t);
|
|
30333
|
-
return
|
|
30333
|
+
return ot(LH, r);
|
|
30334
30334
|
}, yP = (t, r) => {
|
|
30335
30335
|
const l = r.getRoot(t).getOr(t.element);
|
|
30336
30336
|
Yr(l, r.invalidClass), r.notify.each((f) => {
|
|
@@ -30367,19 +30367,19 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30367
30367
|
})] : []))).getOr({})
|
|
30368
30368
|
}), Ly = [
|
|
30369
30369
|
$t("invalidClass"),
|
|
30370
|
-
|
|
30370
|
+
st("getRoot", Q.none),
|
|
30371
30371
|
Ai("notify", [
|
|
30372
|
-
|
|
30373
|
-
|
|
30374
|
-
|
|
30372
|
+
st("aria", "alert"),
|
|
30373
|
+
st("getContainer", Q.none),
|
|
30374
|
+
st("validHtml", ""),
|
|
30375
30375
|
bs("onValid"),
|
|
30376
30376
|
bs("onInvalid"),
|
|
30377
30377
|
bs("onValidate")
|
|
30378
30378
|
]),
|
|
30379
30379
|
Ai("validator", [
|
|
30380
30380
|
$t("validate"),
|
|
30381
|
-
|
|
30382
|
-
|
|
30381
|
+
st("onEvent", "input"),
|
|
30382
|
+
st("validateOnLoad", !0)
|
|
30383
30383
|
])
|
|
30384
30384
|
];
|
|
30385
30385
|
const xg = xa({
|
|
@@ -30730,7 +30730,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30730
30730
|
const S = y3(r, x, l, f, b);
|
|
30731
30731
|
return p3(r) - p3(t) + S;
|
|
30732
30732
|
}, iU = (t, r, l, f) => {
|
|
30733
|
-
const b = Qp(l), x = HP(t, f.getSpectrum(t), b, f.getLeftEdge(t), f.getRightEdge(t), l), S =
|
|
30733
|
+
const b = Qp(l), x = HP(t, f.getSpectrum(t), b, f.getLeftEdge(t), f.getRightEdge(t), l), S = Oe(r.element) / 2;
|
|
30734
30734
|
an(r.element, "left", x - S + "px");
|
|
30735
30735
|
}, GB = qB(-1), YB = qB(1), UP = Q.none, KB = Q.none, qc = {
|
|
30736
30736
|
"top-left": Q.none(),
|
|
@@ -30852,7 +30852,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30852
30852
|
const l = fO(r), f = m1(r);
|
|
30853
30853
|
k3(t, C3(l, f));
|
|
30854
30854
|
}, bU = (t) => TP(t), nN = (t, r, l, f) => {
|
|
30855
|
-
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 =
|
|
30855
|
+
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;
|
|
30856
30856
|
an(r.element, "left", x - E + "px"), an(r.element, "top", S - D + "px");
|
|
30857
30857
|
}, oN = Ph(-1, !1), GP = Ph(1, !1), _3 = Ph(-1, !0), rS = Ph(1, !0), iS = {
|
|
30858
30858
|
"top-left": Q.some(GH),
|
|
@@ -30878,36 +30878,36 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30878
30878
|
edgeActions: iS
|
|
30879
30879
|
});
|
|
30880
30880
|
const rN = [
|
|
30881
|
-
|
|
30882
|
-
|
|
30883
|
-
|
|
30884
|
-
|
|
30885
|
-
|
|
30886
|
-
|
|
30887
|
-
|
|
30888
|
-
|
|
30889
|
-
|
|
30881
|
+
st("stepSize", 1),
|
|
30882
|
+
st("speedMultiplier", 10),
|
|
30883
|
+
st("onChange", le),
|
|
30884
|
+
st("onChoose", le),
|
|
30885
|
+
st("onInit", le),
|
|
30886
|
+
st("onDragStart", le),
|
|
30887
|
+
st("onDragEnd", le),
|
|
30888
|
+
st("snapToGrid", !1),
|
|
30889
|
+
st("rounded", !0),
|
|
30890
30890
|
$s("snapStart"),
|
|
30891
30891
|
Ds("model", Gi("mode", {
|
|
30892
30892
|
x: [
|
|
30893
|
-
|
|
30894
|
-
|
|
30893
|
+
st("minX", 0),
|
|
30894
|
+
st("maxX", 100),
|
|
30895
30895
|
As("value", (t) => In(t.mode.minX)),
|
|
30896
30896
|
$t("getInitialValue"),
|
|
30897
30897
|
Ir("manager", JB)
|
|
30898
30898
|
],
|
|
30899
30899
|
y: [
|
|
30900
|
-
|
|
30901
|
-
|
|
30900
|
+
st("minY", 0),
|
|
30901
|
+
st("maxY", 100),
|
|
30902
30902
|
As("value", (t) => In(t.mode.minY)),
|
|
30903
30903
|
$t("getInitialValue"),
|
|
30904
30904
|
Ir("manager", mU)
|
|
30905
30905
|
],
|
|
30906
30906
|
xy: [
|
|
30907
|
-
|
|
30908
|
-
|
|
30909
|
-
|
|
30910
|
-
|
|
30907
|
+
st("minX", 0),
|
|
30908
|
+
st("maxX", 100),
|
|
30909
|
+
st("minY", 0),
|
|
30910
|
+
st("maxY", 100),
|
|
30911
30911
|
As("value", (t) => In({
|
|
30912
30912
|
x: t.mode.minX,
|
|
30913
30913
|
y: t.mode.minY
|
|
@@ -31468,8 +31468,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31468
31468
|
name: "ColourPicker",
|
|
31469
31469
|
configFields: [
|
|
31470
31470
|
$t("dom"),
|
|
31471
|
-
|
|
31472
|
-
|
|
31471
|
+
st("onValidHex", le),
|
|
31472
|
+
st("onInvalidHex", le)
|
|
31473
31473
|
],
|
|
31474
31474
|
factory: b
|
|
31475
31475
|
});
|
|
@@ -31478,8 +31478,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31478
31478
|
memento: (t) => Os.config({ find: t.getOpt }),
|
|
31479
31479
|
childAt: (t) => Os.config({ find: (r) => Al(r.element, t).bind((l) => r.getSystem().getByDom(l).toOptional()) })
|
|
31480
31480
|
}, tA = fo([
|
|
31481
|
-
|
|
31482
|
-
|
|
31481
|
+
st("preprocess", At),
|
|
31482
|
+
st("postprocess", At)
|
|
31483
31483
|
]), mN = (t, r) => {
|
|
31484
31484
|
const l = Ml("RepresentingConfigs.memento processors", tA, r);
|
|
31485
31485
|
return kn.config({
|
|
@@ -31884,7 +31884,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31884
31884
|
height: S.toString() + "px"
|
|
31885
31885
|
};
|
|
31886
31886
|
}, FU = (t, r, l) => {
|
|
31887
|
-
const f =
|
|
31887
|
+
const f = Oe(t), b = ei(t);
|
|
31888
31888
|
return Math.min(f / r, b / l, 1);
|
|
31889
31889
|
}, cA = (t, r) => {
|
|
31890
31890
|
const l = In(r.getOr({ url: "" })), f = Qs({
|
|
@@ -31910,7 +31910,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31910
31910
|
const qe = FU(D.element, ne, ae);
|
|
31911
31911
|
V.zoom = qe;
|
|
31912
31912
|
}
|
|
31913
|
-
const Se = QU(
|
|
31913
|
+
const Se = QU(Oe(D.element), ei(D.element), ne, ae, V.zoom);
|
|
31914
31914
|
b.getOpt(D).each((qe) => {
|
|
31915
31915
|
ws(qe.element, Se);
|
|
31916
31916
|
});
|
|
@@ -32303,8 +32303,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
32303
32303
|
go,
|
|
32304
32304
|
kn
|
|
32305
32305
|
]),
|
|
32306
|
-
|
|
32307
|
-
|
|
32306
|
+
st("selectClasses", []),
|
|
32307
|
+
st("selectAttributes", {}),
|
|
32308
32308
|
$s("data")
|
|
32309
32309
|
],
|
|
32310
32310
|
factory: gA
|
|
@@ -32361,11 +32361,11 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
32361
32361
|
])
|
|
32362
32362
|
});
|
|
32363
32363
|
}, GU = oe([
|
|
32364
|
-
|
|
32365
|
-
|
|
32364
|
+
st("field1Name", "field1"),
|
|
32365
|
+
st("field2Name", "field2"),
|
|
32366
32366
|
vh("onLockedChange"),
|
|
32367
32367
|
Oh(["lockClass"]),
|
|
32368
|
-
|
|
32368
|
+
st("locked", !1),
|
|
32369
32369
|
xu.field("coupledFieldBehaviours", [
|
|
32370
32370
|
Os,
|
|
32371
32371
|
kn
|
|
@@ -32907,11 +32907,11 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
32907
32907
|
bs("onStartShrink"),
|
|
32908
32908
|
bs("onGrown"),
|
|
32909
32909
|
bs("onStartGrow"),
|
|
32910
|
-
|
|
32910
|
+
st("expanded", !1),
|
|
32911
32911
|
Ds("dimension", Gi("property", {
|
|
32912
32912
|
width: [
|
|
32913
32913
|
Ir("property", "width"),
|
|
32914
|
-
Ir("getDimension", (t) =>
|
|
32914
|
+
Ir("getDimension", (t) => Oe(t) + "px")
|
|
32915
32915
|
],
|
|
32916
32916
|
height: [
|
|
32917
32917
|
Ir("property", "height"),
|
|
@@ -33315,14 +33315,14 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33315
33315
|
Ds("stream", Gi("mode", {
|
|
33316
33316
|
throttle: [
|
|
33317
33317
|
$t("delay"),
|
|
33318
|
-
|
|
33318
|
+
st("stopEvent", !0),
|
|
33319
33319
|
Ir("streams", {
|
|
33320
33320
|
setup: vW,
|
|
33321
33321
|
state: eL
|
|
33322
33322
|
})
|
|
33323
33323
|
]
|
|
33324
33324
|
})),
|
|
33325
|
-
|
|
33325
|
+
st("event", "input"),
|
|
33326
33326
|
$s("cancelEvent"),
|
|
33327
33327
|
vh("onStream")
|
|
33328
33328
|
];
|
|
@@ -33489,27 +33489,27 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33489
33489
|
}, kW = oe([
|
|
33490
33490
|
$s("lazySink"),
|
|
33491
33491
|
$t("fetch"),
|
|
33492
|
-
|
|
33493
|
-
|
|
33492
|
+
st("minChars", 5),
|
|
33493
|
+
st("responseTime", 1e3),
|
|
33494
33494
|
bs("onOpen"),
|
|
33495
|
-
|
|
33496
|
-
|
|
33497
|
-
|
|
33498
|
-
|
|
33495
|
+
st("getHotspot", Q.some),
|
|
33496
|
+
st("getAnchorOverrides", oe({})),
|
|
33497
|
+
st("layouts", Q.none()),
|
|
33498
|
+
st("eventOrder", {}),
|
|
33499
33499
|
ee("model", {}, [
|
|
33500
|
-
|
|
33501
|
-
|
|
33502
|
-
|
|
33500
|
+
st("getDisplayText", (t) => t.meta !== void 0 && t.meta.text !== void 0 ? t.meta.text : t.value),
|
|
33501
|
+
st("selectsOver", !0),
|
|
33502
|
+
st("populateFromBrowse", !0)
|
|
33503
33503
|
]),
|
|
33504
33504
|
bs("onSetValue"),
|
|
33505
33505
|
Gl("onExecute"),
|
|
33506
33506
|
bs("onItemExecute"),
|
|
33507
|
-
|
|
33508
|
-
|
|
33509
|
-
|
|
33510
|
-
|
|
33511
|
-
|
|
33512
|
-
|
|
33507
|
+
st("inputClasses", []),
|
|
33508
|
+
st("inputAttributes", {}),
|
|
33509
|
+
st("inputStyles", {}),
|
|
33510
|
+
st("matchWidth", !0),
|
|
33511
|
+
st("useMinWidth", !1),
|
|
33512
|
+
st("dismissOnBlur", !0),
|
|
33513
33513
|
Oh(["openClass"]),
|
|
33514
33514
|
$s("initialData"),
|
|
33515
33515
|
$s("listRole"),
|
|
@@ -34470,7 +34470,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34470
34470
|
return FE(t) ? FA.concat(l) : l;
|
|
34471
34471
|
}).getOr(FA), XW = (t) => {
|
|
34472
34472
|
const r = rs(t);
|
|
34473
|
-
return r.length === 1 &&
|
|
34473
|
+
return r.length === 1 && ot(r, "title");
|
|
34474
34474
|
}, ML = (t, r, l) => ({
|
|
34475
34475
|
...t,
|
|
34476
34476
|
type: "formatter",
|
|
@@ -34749,9 +34749,9 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34749
34749
|
], (xt) => xt.destroy());
|
|
34750
34750
|
});
|
|
34751
34751
|
}, hl = CM, Cg = Hb, uj = oe([
|
|
34752
|
-
|
|
34752
|
+
st("shell", !1),
|
|
34753
34753
|
$t("makeItem"),
|
|
34754
|
-
|
|
34754
|
+
st("setupItem", le),
|
|
34755
34755
|
xu.field("listBehaviours", [wo])
|
|
34756
34756
|
]), YA = Ec({
|
|
34757
34757
|
name: "items",
|
|
@@ -34794,7 +34794,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34794
34794
|
}
|
|
34795
34795
|
}), Uy = oe([
|
|
34796
34796
|
$t("dom"),
|
|
34797
|
-
|
|
34797
|
+
st("shell", !0),
|
|
34798
34798
|
za("toolbarBehaviours", [wo])
|
|
34799
34799
|
]), Qee = oe([Ec({
|
|
34800
34800
|
name: "groups",
|
|
@@ -34853,12 +34853,12 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34853
34853
|
const we = L - b + D + ne;
|
|
34854
34854
|
sh(x.left, we, l);
|
|
34855
34855
|
}
|
|
34856
|
-
}, e_ = (t, r) =>
|
|
34856
|
+
}, e_ = (t, r) => ot(mr.getModes(t), r), t_ = (t) => {
|
|
34857
34857
|
const r = (f) => Bc(f) + (parseInt(Bt(f, "margin-top"), 10) || 0) + (parseInt(Bt(f, "margin-bottom"), 10) || 0), l = t.element;
|
|
34858
34858
|
Ra(l).each((f) => {
|
|
34859
34859
|
const b = "padding-" + mr.getModes(t)[0];
|
|
34860
34860
|
if (mr.isDocked(t)) {
|
|
34861
|
-
const x =
|
|
34861
|
+
const x = Oe(f);
|
|
34862
34862
|
an(l, "width", x + "px"), an(f, b, r(l) + "px");
|
|
34863
34863
|
} else
|
|
34864
34864
|
Uo(l, "width"), Uo(f, b);
|
|
@@ -35079,7 +35079,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
35079
35079
|
$t("uid"),
|
|
35080
35080
|
$t("onEscape"),
|
|
35081
35081
|
$t("backstage"),
|
|
35082
|
-
|
|
35082
|
+
st("onSetup", le)
|
|
35083
35083
|
],
|
|
35084
35084
|
apis: {
|
|
35085
35085
|
focus: (t, r) => {
|
|
@@ -35273,7 +35273,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
35273
35273
|
Vn(r, Xy, { width: Zs(r.element, "width").getOr("") });
|
|
35274
35274
|
},
|
|
35275
35275
|
onStartShrink: (r) => {
|
|
35276
|
-
Vn(r, Xy, { width:
|
|
35276
|
+
Vn(r, Xy, { width: Oe(r.element) + "px" });
|
|
35277
35277
|
}
|
|
35278
35278
|
}),
|
|
35279
35279
|
wo.config({}),
|
|
@@ -35445,7 +35445,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
35445
35445
|
an(b.element, "visibility", "hidden");
|
|
35446
35446
|
const S = f.concat([x]), E = Hj(S);
|
|
35447
35447
|
l([]), h9(b, S);
|
|
35448
|
-
const D =
|
|
35448
|
+
const D = Oe(b.element), L = zj(D, r.builtGroups.get(), (V) => Math.ceil(V.element.dom.getBoundingClientRect().width), x);
|
|
35449
35449
|
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);
|
|
35450
35450
|
}, Wj = oe([
|
|
35451
35451
|
za("splitToolbarBehaviours", [Bi]),
|
|
@@ -35476,7 +35476,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
35476
35476
|
$t("lazySink"),
|
|
35477
35477
|
hu("fetch"),
|
|
35478
35478
|
ah("getBounds"),
|
|
35479
|
-
Ai("fireDismissalEventInstead", [
|
|
35479
|
+
Ai("fireDismissalEventInstead", [st("event", nm())]),
|
|
35480
35480
|
cg(),
|
|
35481
35481
|
bs("onToggled")
|
|
35482
35482
|
]), Zd = oe([
|
|
@@ -37244,8 +37244,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37244
37244
|
$t("toggleClass"),
|
|
37245
37245
|
$t("fetch"),
|
|
37246
37246
|
vh("onExecute"),
|
|
37247
|
-
|
|
37248
|
-
|
|
37247
|
+
st("getHotspot", Q.some),
|
|
37248
|
+
st("getAnchorOverrides", oe({})),
|
|
37249
37249
|
cg(),
|
|
37250
37250
|
vh("onItemExecute"),
|
|
37251
37251
|
$s("lazySink"),
|
|
@@ -37256,9 +37256,9 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37256
37256
|
Xn,
|
|
37257
37257
|
go
|
|
37258
37258
|
]),
|
|
37259
|
-
|
|
37260
|
-
|
|
37261
|
-
|
|
37259
|
+
st("matchWidth", !1),
|
|
37260
|
+
st("useMinWidth", !1),
|
|
37261
|
+
st("eventOrder", {}),
|
|
37262
37262
|
$s("role"),
|
|
37263
37263
|
$s("listRole")
|
|
37264
37264
|
].concat(Ry())), GX = Tl({
|
|
@@ -38072,9 +38072,9 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
38072
38072
|
_t(C_, (l, f) => {
|
|
38073
38073
|
const b = l.element;
|
|
38074
38074
|
Uo(b, "width");
|
|
38075
|
-
const x =
|
|
38075
|
+
const x = Oe(b);
|
|
38076
38076
|
Uo(b, "left"), Uo(b, "right"), Uo(b, "max-width"), ni.setContent(l, f.event.contents), mi(b, T_);
|
|
38077
|
-
const S =
|
|
38077
|
+
const S = Oe(b);
|
|
38078
38078
|
an(b, "transition", "none"), ni.reposition(l), Uo(b, "transition"), an(b, "width", x + "px"), f.event.focus.fold(() => ID(l), (E) => {
|
|
38079
38079
|
bu(E), Yl(b).isNone() && ID(l);
|
|
38080
38080
|
}), setTimeout(() => {
|
|
@@ -39550,16 +39550,16 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
39550
39550
|
bs("onSensor"),
|
|
39551
39551
|
$t("leftAttr"),
|
|
39552
39552
|
$t("topAttr"),
|
|
39553
|
-
|
|
39554
|
-
|
|
39553
|
+
st("lazyViewport", Ui),
|
|
39554
|
+
st("mustSnap", !1)
|
|
39555
39555
|
]);
|
|
39556
39556
|
const Q_ = [
|
|
39557
|
-
|
|
39557
|
+
st("useFixed", dt),
|
|
39558
39558
|
$t("blockerClass"),
|
|
39559
|
-
|
|
39560
|
-
|
|
39561
|
-
|
|
39562
|
-
|
|
39559
|
+
st("getTarget", At),
|
|
39560
|
+
st("onDrag", le),
|
|
39561
|
+
st("repositionTarget", !0),
|
|
39562
|
+
st("onDrop", le),
|
|
39563
39563
|
zs("getBounds", Ui),
|
|
39564
39564
|
iQ
|
|
39565
39565
|
], 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(() => {
|
|
@@ -39942,7 +39942,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
39942
39942
|
const x = { height: x_(f + r.top, IE(t), py(t)) };
|
|
39943
39943
|
return l === x1.Both && (x.width = x_(b + r.left, px(t), r1(t))), x;
|
|
39944
39944
|
}, gQ = (t, r, l) => {
|
|
39945
|
-
const f = Ot.fromDom(t.getContainer()), b = VG(t, r, l, ei(f),
|
|
39945
|
+
const f = Ot.fromDom(t.getContainer()), b = VG(t, r, l, ei(f), Oe(f));
|
|
39946
39946
|
Fs(b, (x, S) => {
|
|
39947
39947
|
_e(x) && an(f, S, MD(x));
|
|
39948
39948
|
}), Oz(t);
|
|
@@ -40384,9 +40384,9 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40384
40384
|
$t("lazySink"),
|
|
40385
40385
|
$s("dragBlockClass"),
|
|
40386
40386
|
zs("getBounds", Ui),
|
|
40387
|
-
|
|
40388
|
-
|
|
40389
|
-
|
|
40387
|
+
st("useTabstopAt", kt),
|
|
40388
|
+
st("firstTabstop", 0),
|
|
40389
|
+
st("eventOrder", {}),
|
|
40390
40390
|
za("modalBehaviours", [Xn]),
|
|
40391
40391
|
Gl("onExecute"),
|
|
40392
40392
|
db("onEscape")
|
|
@@ -40431,7 +40431,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40431
40431
|
})
|
|
40432
40432
|
},
|
|
40433
40433
|
schema: [
|
|
40434
|
-
|
|
40434
|
+
st("dom", {
|
|
40435
40435
|
tag: "div",
|
|
40436
40436
|
styles: {
|
|
40437
40437
|
position: "fixed",
|
|
@@ -40441,7 +40441,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40441
40441
|
bottom: "0px"
|
|
40442
40442
|
}
|
|
40443
40443
|
}),
|
|
40444
|
-
|
|
40444
|
+
st("components", [])
|
|
40445
40445
|
],
|
|
40446
40446
|
name: "blocker"
|
|
40447
40447
|
})
|
|
@@ -40586,7 +40586,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40586
40586
|
"success"
|
|
40587
40587
|
]),
|
|
40588
40588
|
V6,
|
|
40589
|
-
|
|
40589
|
+
st("url", "")
|
|
40590
40590
|
], kO = fo(U_), W_ = (t) => [
|
|
40591
40591
|
ta,
|
|
40592
40592
|
t
|
|
@@ -40772,7 +40772,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40772
40772
|
panel: n
|
|
40773
40773
|
})), e = [
|
|
40774
40774
|
ta,
|
|
40775
|
-
|
|
40775
|
+
st("classes", []),
|
|
40776
40776
|
gc("items", RQ)
|
|
40777
40777
|
], n = fo(e), s = [
|
|
40778
40778
|
qT("tab"),
|
|
@@ -40789,7 +40789,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40789
40789
|
})),
|
|
40790
40790
|
xr("size", "normal"),
|
|
40791
40791
|
I("buttons", [], y),
|
|
40792
|
-
|
|
40792
|
+
st("initialData", {}),
|
|
40793
40793
|
zs("onAction", le),
|
|
40794
40794
|
zs("onChange", le),
|
|
40795
40795
|
zs("onSubmit", le),
|
|
@@ -40869,7 +40869,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40869
40869
|
const x = b;
|
|
40870
40870
|
if (!x.universal) {
|
|
40871
40871
|
const S = t.channel;
|
|
40872
|
-
|
|
40872
|
+
ot(x.channels, S) && l(f, x.data);
|
|
40873
40873
|
}
|
|
40874
40874
|
}),
|
|
40875
40875
|
fr((f, b) => {
|
|
@@ -40972,7 +40972,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40972
40972
|
}), Ys = $c({
|
|
40973
40973
|
name: "TabButton",
|
|
40974
40974
|
configFields: [
|
|
40975
|
-
|
|
40975
|
+
st("uid", void 0),
|
|
40976
40976
|
$t("value"),
|
|
40977
40977
|
Yi("dom", "dom", M(() => ({
|
|
40978
40978
|
attributes: {
|
|
@@ -40982,7 +40982,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40982
40982
|
}
|
|
40983
40983
|
})), cu()),
|
|
40984
40984
|
$s("action"),
|
|
40985
|
-
|
|
40985
|
+
st("domModification", {}),
|
|
40986
40986
|
za("tabButtonBehaviours", [
|
|
40987
40987
|
go,
|
|
40988
40988
|
Xn,
|
|
@@ -40994,7 +40994,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40994
40994
|
}), ir = oe([
|
|
40995
40995
|
$t("tabs"),
|
|
40996
40996
|
$t("dom"),
|
|
40997
|
-
|
|
40997
|
+
st("clickToDismiss", !1),
|
|
40998
40998
|
za("tabbarBehaviours", [
|
|
40999
40999
|
ue,
|
|
41000
41000
|
Xn
|
|
@@ -41066,10 +41066,10 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41066
41066
|
configFields: [za("tabviewBehaviours", [wo])],
|
|
41067
41067
|
factory: qn
|
|
41068
41068
|
}), xn = oe([
|
|
41069
|
-
|
|
41069
|
+
st("selectFirst", !0),
|
|
41070
41070
|
bs("onChangeTab"),
|
|
41071
41071
|
bs("onDismissTab"),
|
|
41072
|
-
|
|
41072
|
+
st("tabs", []),
|
|
41073
41073
|
za("tabSectionBehaviours", [])
|
|
41074
41074
|
]), uo = Tl({
|
|
41075
41075
|
factory: un,
|
|
@@ -41153,7 +41153,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41153
41153
|
const f = bl(t).dom, b = ca(t, ".tox-dialog-wrap").getOr(t), x = Bt(b, "position") === "fixed";
|
|
41154
41154
|
let S;
|
|
41155
41155
|
x ? S = Math.max(f.clientHeight, window.innerHeight) : S = Math.max(f.offsetHeight, f.scrollHeight);
|
|
41156
|
-
const E = ei(r), L = r.dom.offsetLeft >= l.dom.offsetLeft +
|
|
41156
|
+
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;
|
|
41157
41157
|
return S - ae;
|
|
41158
41158
|
}, _u = (t, r) => {
|
|
41159
41159
|
Us(t).each((l) => jo.showTab(r, l.value));
|
|
@@ -42438,12 +42438,12 @@ function lhe() {
|
|
|
42438
42438
|
_[N] = v(z, N);
|
|
42439
42439
|
}
|
|
42440
42440
|
return _;
|
|
42441
|
-
},
|
|
42441
|
+
}, be = (g, v) => {
|
|
42442
42442
|
for (let k = 0, _ = g.length; k < _; k++) {
|
|
42443
42443
|
const N = g[k];
|
|
42444
42444
|
v(N, k);
|
|
42445
42445
|
}
|
|
42446
|
-
},
|
|
42446
|
+
}, ot = (g, v) => {
|
|
42447
42447
|
for (let k = g.length - 1; k >= 0; k--) {
|
|
42448
42448
|
const _ = g[k];
|
|
42449
42449
|
v(_, k);
|
|
@@ -42465,9 +42465,9 @@ function lhe() {
|
|
|
42465
42465
|
v(z, _) && k.push(z);
|
|
42466
42466
|
}
|
|
42467
42467
|
return k;
|
|
42468
|
-
}, sn = (g, v, k) => (
|
|
42468
|
+
}, sn = (g, v, k) => (ot(g, (_, N) => {
|
|
42469
42469
|
k = v(k, _, N);
|
|
42470
|
-
}), k), Ue = (g, v, k) => (
|
|
42470
|
+
}), k), Ue = (g, v, k) => (be(g, (_, N) => {
|
|
42471
42471
|
k = v(k, _, N);
|
|
42472
42472
|
}), k), pt = (g, v, k) => {
|
|
42473
42473
|
for (let _ = 0, N = g.length; _ < N; _++) {
|
|
@@ -42686,16 +42686,16 @@ function lhe() {
|
|
|
42686
42686
|
}, pl = (g, v) => {
|
|
42687
42687
|
Oi(g, v), Ks(v, g);
|
|
42688
42688
|
}, eu = (g, v) => {
|
|
42689
|
-
|
|
42689
|
+
be(v, (k, _) => {
|
|
42690
42690
|
const N = _ === 0 ? g : v[_ - 1];
|
|
42691
42691
|
vi(N, k);
|
|
42692
42692
|
});
|
|
42693
42693
|
}, Jo = (g, v) => {
|
|
42694
|
-
|
|
42694
|
+
be(v, (k) => {
|
|
42695
42695
|
Ks(g, k);
|
|
42696
42696
|
});
|
|
42697
42697
|
}, zl = (g) => {
|
|
42698
|
-
g.dom.textContent = "",
|
|
42698
|
+
g.dom.textContent = "", be(So(g), (v) => {
|
|
42699
42699
|
hr(v);
|
|
42700
42700
|
});
|
|
42701
42701
|
}, hr = (g) => {
|
|
@@ -42798,7 +42798,7 @@ function lhe() {
|
|
|
42798
42798
|
return Dt.fromDom(v);
|
|
42799
42799
|
}, ce = (g, v, k) => rt(Ss(g, k), v), Me = (g, v) => rt(So(g), v), nt = (g, v) => {
|
|
42800
42800
|
let k = [];
|
|
42801
|
-
return
|
|
42801
|
+
return be(So(g), (_) => {
|
|
42802
42802
|
v(_) && (k = k.concat([_])), k = k.concat(nt(_, v));
|
|
42803
42803
|
}), k;
|
|
42804
42804
|
}, $n = (g, v, k) => ce(g, (_) => Ot(_, v), k), an = (g, v) => Me(g, (k) => Ot(k, v)), ws = (g, v) => Le(v, g);
|
|
@@ -42841,7 +42841,7 @@ function lhe() {
|
|
|
42841
42841
|
}, 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, _) => {
|
|
42842
42842
|
const N = g.indexOf(v, k);
|
|
42843
42843
|
return N !== -1 ? F(_) ? !0 : N + v.length <= _ : !1;
|
|
42844
|
-
}, 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),
|
|
42844
|
+
}, 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) => {
|
|
42845
42845
|
const v = parseFloat(g);
|
|
42846
42846
|
return isNaN(v) ? ye.none() : ye.some(v);
|
|
42847
42847
|
}, Et = (g) => g.style !== void 0 && me(g.style.getPropertyValue), Hn = (g, v, k) => {
|
|
@@ -43159,7 +43159,7 @@ function lhe() {
|
|
|
43159
43159
|
const _ = Qt(g.cells, k);
|
|
43160
43160
|
return pa(v(g.element), _, g.section, !0);
|
|
43161
43161
|
}, 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) => {
|
|
43162
|
-
const v = Ue(qi(g).rows, (_, N) => (
|
|
43162
|
+
const v = Ue(qi(g).rows, (_, N) => (be(N.cells, (z, J) => {
|
|
43163
43163
|
z.isLocked && (_[J] = !0);
|
|
43164
43164
|
}), _), {}), k = ss(v, (_, N) => parseInt(N, 10));
|
|
43165
43165
|
return ze(k);
|
|
@@ -43172,7 +43172,7 @@ function lhe() {
|
|
|
43172
43172
|
}, sr = (g) => {
|
|
43173
43173
|
const v = {};
|
|
43174
43174
|
let k = 0;
|
|
43175
|
-
return
|
|
43175
|
+
return be(g.cells, (_) => {
|
|
43176
43176
|
const N = _.colspan;
|
|
43177
43177
|
Kt(N, (z) => {
|
|
43178
43178
|
const J = k + z;
|
|
@@ -43186,9 +43186,9 @@ function lhe() {
|
|
|
43186
43186
|
pass: ue,
|
|
43187
43187
|
fail: Ie
|
|
43188
43188
|
} = qt(g, (Yt) => Yt.section === "colgroup");
|
|
43189
|
-
|
|
43189
|
+
be(Ie, (Yt) => {
|
|
43190
43190
|
const tn = [];
|
|
43191
|
-
|
|
43191
|
+
be(Yt.cells, (Mn) => {
|
|
43192
43192
|
let zt = 0;
|
|
43193
43193
|
for (; v[Wm(ie, zt)] !== void 0; )
|
|
43194
43194
|
zt++;
|
|
@@ -43401,10 +43401,10 @@ function lhe() {
|
|
|
43401
43401
|
return ti(Zt, Ie, J, ie, (bn) => _(ye.some(Wl(bn))), _);
|
|
43402
43402
|
}
|
|
43403
43403
|
}, _));
|
|
43404
|
-
}, 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)),
|
|
43404
|
+
}, 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, _) => {
|
|
43405
43405
|
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)));
|
|
43406
43406
|
return Qt(z, (ie, ue) => ti(ie, ue, J, je, k, _));
|
|
43407
|
-
}, _r = (g, v) =>
|
|
43407
|
+
}, _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) => {
|
|
43408
43408
|
const v = xr(g, Wl), k = le(0);
|
|
43409
43409
|
return {
|
|
43410
43410
|
width: v,
|
|
@@ -43490,7 +43490,7 @@ function lhe() {
|
|
|
43490
43490
|
(J.column < v.minCol || J.column > v.maxCol) && hr(J.element);
|
|
43491
43491
|
});
|
|
43492
43492
|
const N = rt(Vu(g, "tr"), (J) => J.dom.childElementCount === 0);
|
|
43493
|
-
|
|
43493
|
+
be(N, hr), (v.minCol === v.maxCol || v.minRow === v.maxRow) && be(Vu(g, "th,td"), (J) => {
|
|
43494
43494
|
Te(J, "rowspan"), Te(J, "colspan");
|
|
43495
43495
|
}), Te(g, mc), Te(g, "data-snooker-col-series"), ee.getTableSize(g).adjustTableWidth(_);
|
|
43496
43496
|
}, ko = (g, v, k, _) => {
|
|
@@ -43500,7 +43500,7 @@ function lhe() {
|
|
|
43500
43500
|
return k.getCellDelta(ue);
|
|
43501
43501
|
}, Wo = (g, v) => {
|
|
43502
43502
|
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));
|
|
43503
|
-
|
|
43503
|
+
be(Ie, hr), en(N, J, ie, k);
|
|
43504
43504
|
const tt = es.fromTable(g), Zt = ko(g, tt, z, ie);
|
|
43505
43505
|
return Rn(_, ie, J, Zt), _;
|
|
43506
43506
|
}, Xs = " ", Lr = ((g, v) => {
|
|
@@ -43694,10 +43694,10 @@ function lhe() {
|
|
|
43694
43694
|
}, 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) => {
|
|
43695
43695
|
Te(g, "data-mce-style");
|
|
43696
43696
|
const v = (k) => Te(k, "data-mce-style");
|
|
43697
|
-
|
|
43697
|
+
be(eh(g), v), be(hc(g), v), be(Yp(g), v);
|
|
43698
43698
|
}, q1 = (g) => Dt.fromDom(g.selection.getStart()), qO = (g) => g.getBoundingClientRect().width, tp = (g) => g.getBoundingClientRect().height, qo = (g) => (v, k) => {
|
|
43699
43699
|
const _ = v.dom.getStyle(k, g) || v.dom.getAttrib(k, g);
|
|
43700
|
-
return ye.from(_).filter(
|
|
43700
|
+
return ye.from(_).filter(Oe);
|
|
43701
43701
|
}, 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) => {
|
|
43702
43702
|
const k = v.column, _ = v.column + v.colspan - 1, N = v.row, z = v.row + v.rowspan - 1;
|
|
43703
43703
|
return k <= g.finishCol && _ >= g.startCol && N <= g.finishRow && z >= g.startRow;
|
|
@@ -44159,7 +44159,7 @@ function lhe() {
|
|
|
44159
44159
|
const k = [], _ = [], N = (Yt) => Qt(Yt, (tn) => {
|
|
44160
44160
|
tn.isNew && k.push(tn.element);
|
|
44161
44161
|
const Mn = tn.element;
|
|
44162
|
-
return zl(Mn),
|
|
44162
|
+
return zl(Mn), be(tn.cells, (zt) => {
|
|
44163
44163
|
zt.isNew && _.push(zt.element), ph(zt.element, "colspan", zt.colspan, 1), ph(zt.element, "rowspan", zt.rowspan, 1), Ks(Mn, zt.element);
|
|
44164
44164
|
}), Mn;
|
|
44165
44165
|
}), z = (Yt) => xo(Yt, (tn) => Qt(tn.cells, (Mn) => (ph(Mn.element, "span", Mn.colspan, 1), Mn.element))), J = (Yt, tn) => {
|
|
@@ -44170,7 +44170,7 @@ function lhe() {
|
|
|
44170
44170
|
}, ue = (Yt, tn) => {
|
|
44171
44171
|
Yt.length > 0 ? J(Yt, tn) : ie(tn);
|
|
44172
44172
|
}, Ie = [], tt = [], Zt = [], bn = [];
|
|
44173
|
-
return
|
|
44173
|
+
return be(v, (Yt) => {
|
|
44174
44174
|
switch (Yt.section) {
|
|
44175
44175
|
case "thead":
|
|
44176
44176
|
Ie.push(Yt);
|
|
@@ -44191,7 +44191,7 @@ function lhe() {
|
|
|
44191
44191
|
};
|
|
44192
44192
|
}, gk = (g) => Qt(g, (v) => {
|
|
44193
44193
|
const k = Hl(v.element);
|
|
44194
|
-
return
|
|
44194
|
+
return be(v.cells, (_) => {
|
|
44195
44195
|
const N = oi(_.element);
|
|
44196
44196
|
ph(N, "colspan", _.colspan, 1), ph(N, "rowspan", _.rowspan, 1), Ks(k, N);
|
|
44197
44197
|
}), k;
|
|
@@ -44224,7 +44224,7 @@ function lhe() {
|
|
|
44224
44224
|
});
|
|
44225
44225
|
}, lb = (g, v, k) => {
|
|
44226
44226
|
const _ = [];
|
|
44227
|
-
|
|
44227
|
+
be(g.colgroups, (N) => {
|
|
44228
44228
|
const z = [];
|
|
44229
44229
|
for (let J = 0; J < g.grid.columns; J++) {
|
|
44230
44230
|
const ie = es.getColumnAt(g, J).map((ue) => jr(ue.element, k, !1)).getOrThunk(() => jr(v.colGap(), !0, !1));
|
|
@@ -44294,7 +44294,7 @@ function lhe() {
|
|
|
44294
44294
|
Zt && !z ? Eo(ue, ie, jr(_(), !0, Ie.isLocked)) : Zt && (z = !1);
|
|
44295
44295
|
}
|
|
44296
44296
|
return g;
|
|
44297
|
-
}, 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 &&
|
|
44297
|
+
}, 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) => {
|
|
44298
44298
|
const z = N.cells[v - 1];
|
|
44299
44299
|
let J = 0;
|
|
44300
44300
|
const ie = _();
|
|
@@ -44304,7 +44304,7 @@ function lhe() {
|
|
|
44304
44304
|
const N = qi(g).rows;
|
|
44305
44305
|
if (v > 0 && v < N.length) {
|
|
44306
44306
|
const z = N[v - 1].cells, J = mu(z, k);
|
|
44307
|
-
|
|
44307
|
+
be(J, (ie) => {
|
|
44308
44308
|
let ue = ye.none();
|
|
44309
44309
|
for (let Ie = v; Ie < N.length; Ie++)
|
|
44310
44310
|
for (let tt = 0; tt < jl(N[0]); tt++) {
|
|
@@ -44506,7 +44506,7 @@ function lhe() {
|
|
|
44506
44506
|
return fp(g, J, _, N, av, Ie, ue);
|
|
44507
44507
|
}, J4 = (g, v, k, _, N, z, J) => {
|
|
44508
44508
|
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];
|
|
44509
|
-
|
|
44509
|
+
be(v, (zt) => {
|
|
44510
44510
|
bn[zt] = J.transformRow(ue[zt], k);
|
|
44511
44511
|
});
|
|
44512
44512
|
const Yt = [
|
|
@@ -44523,7 +44523,7 @@ function lhe() {
|
|
|
44523
44523
|
if (g.length === 0)
|
|
44524
44524
|
throw new Error("there must be at least one case");
|
|
44525
44525
|
const v = [], k = {};
|
|
44526
|
-
return
|
|
44526
|
+
return be(g, (_, N) => {
|
|
44527
44527
|
const z = yn(_);
|
|
44528
44528
|
if (z.length !== 1)
|
|
44529
44529
|
throw new Error("one and only one name per case");
|
|
@@ -44616,7 +44616,7 @@ Required: ` + v.join(", "));
|
|
|
44616
44616
|
height: v[_]
|
|
44617
44617
|
})), 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) => {
|
|
44618
44618
|
const _ = fb(g, v);
|
|
44619
|
-
|
|
44619
|
+
be(_, (N) => {
|
|
44620
44620
|
k.setElementWidth(N.element, N.width);
|
|
44621
44621
|
});
|
|
44622
44622
|
}, ig = (g, v, k, _, N) => {
|
|
@@ -44624,9 +44624,9 @@ Required: ` + v.join(", "));
|
|
|
44624
44624
|
Z2(z, Zt, N), _.resizeTable(N.adjustTableWidth, Ie, ue);
|
|
44625
44625
|
}, lv = (g, v, k) => {
|
|
44626
44626
|
const _ = es.fromTable(g), N = _r(_, g), z = Qt(N, (ue, Ie) => k === Ie ? Math.max(v + ue, Hf()) : ue), J = _k(_, z);
|
|
44627
|
-
|
|
44627
|
+
be(J, (ue) => {
|
|
44628
44628
|
ef(ue.element, ue.height);
|
|
44629
|
-
}),
|
|
44629
|
+
}), be(es.justCells(_), (ue) => {
|
|
44630
44630
|
Kf(ue.element);
|
|
44631
44631
|
});
|
|
44632
44632
|
const ie = o5(z);
|
|
@@ -44945,9 +44945,9 @@ Required: ` + v.join(", "));
|
|
|
44945
44945
|
section: ue(Ca)
|
|
44946
44946
|
};
|
|
44947
44947
|
return sx(Ca) ? ec(Ca, Sm, uE, ix).bind((ax) => {
|
|
44948
|
-
v.refresh(Ca.dom),
|
|
44948
|
+
v.refresh(Ca.dom), be(ax.newRows, (qb) => {
|
|
44949
44949
|
ea(g, qb.dom);
|
|
44950
|
-
}),
|
|
44950
|
+
}), be(ax.newCells, (qb) => {
|
|
44951
44951
|
cl(g, qb.dom);
|
|
44952
44952
|
});
|
|
44953
44953
|
const JC = Ie(Ca, ax);
|
|
@@ -45076,19 +45076,19 @@ Required: ` + v.join(", "));
|
|
|
45076
45076
|
}), k = v.output;
|
|
45077
45077
|
return k.slice(0, k.length - 1).concat([vv(k[k.length - 1], Math.round(v.remainder))]);
|
|
45078
45078
|
}, cw = Ri.from, b5 = (g, v, k) => {
|
|
45079
|
-
|
|
45079
|
+
be(v, (_) => {
|
|
45080
45080
|
const N = g.slice(_.column, _.colspan + _.column), z = aw(N, Lc());
|
|
45081
45081
|
Io(_.element, "width", z + k);
|
|
45082
45082
|
});
|
|
45083
45083
|
}, O5 = (g, v, k) => {
|
|
45084
|
-
|
|
45084
|
+
be(v, (_, N) => {
|
|
45085
45085
|
const z = aw([g[N]], Lc());
|
|
45086
45086
|
Io(_.element, "width", z + k);
|
|
45087
45087
|
});
|
|
45088
45088
|
}, v5 = (g, v, k) => {
|
|
45089
|
-
|
|
45089
|
+
be(k, (_) => {
|
|
45090
45090
|
yr(_.element, "height");
|
|
45091
|
-
}),
|
|
45091
|
+
}), be(v, (_, N) => {
|
|
45092
45092
|
Io(_.element, "height", g[N]);
|
|
45093
45093
|
});
|
|
45094
45094
|
}, y5 = (g) => cw(g).fold(le("px"), le("px"), le("%")), uw = (g, v, k) => {
|
|
@@ -45114,7 +45114,7 @@ Required: ` + v.join(", "));
|
|
|
45114
45114
|
}, Gk = (g) => {
|
|
45115
45115
|
yr(g, "width");
|
|
45116
45116
|
const v = hc(g), k = v.length > 0 ? v : eh(g);
|
|
45117
|
-
|
|
45117
|
+
be(k, (_) => {
|
|
45118
45118
|
yr(_, "width"), xb(_);
|
|
45119
45119
|
}), xb(g);
|
|
45120
45120
|
}, Yk = {
|
|
@@ -45156,8 +45156,8 @@ Required: ` + v.join(", "));
|
|
|
45156
45156
|
}, k5 = (g, v) => {
|
|
45157
45157
|
ba(v, "td,th").each(at(fw, g));
|
|
45158
45158
|
}, Sb = (g, v) => {
|
|
45159
|
-
|
|
45160
|
-
ea(g, k.dom),
|
|
45159
|
+
be(ws(v, "tr"), (k) => {
|
|
45160
|
+
ea(g, k.dom), be(ws(k, "th,td"), (_) => {
|
|
45161
45161
|
cl(g, _.dom);
|
|
45162
45162
|
});
|
|
45163
45163
|
});
|
|
@@ -45217,7 +45217,7 @@ Required: ` + v.join(", "));
|
|
|
45217
45217
|
}, ue = (zt, oo) => {
|
|
45218
45218
|
J((Mt) => {
|
|
45219
45219
|
const Cn = sm(g), Gs = Xo(Cn, (Un) => g.formatter.match("tablecellclass", { value: oo }, Un.dom)) ? g.formatter.remove : g.formatter.apply;
|
|
45220
|
-
|
|
45220
|
+
be(Cn, (Un) => Gs("tablecellclass", { value: oo }, Un.dom)), Di(g, Mt.dom, yb);
|
|
45221
45221
|
});
|
|
45222
45222
|
}, Ie = () => {
|
|
45223
45223
|
Ou(g).each((zt) => {
|
|
@@ -45300,7 +45300,7 @@ Required: ` + v.join(", "));
|
|
|
45300
45300
|
const qs = Js(oo, (Gs, Un) => g.formatter.has(Mt(Un)) && O(Gs));
|
|
45301
45301
|
Ya(qs) || (Co(qs, (Gs, Un) => {
|
|
45302
45302
|
const pr = Mt(Un);
|
|
45303
|
-
|
|
45303
|
+
be(Cn, (Jl) => {
|
|
45304
45304
|
Gs === "" ? g.formatter.remove(pr, { value: null }, Jl.dom, !0) : g.formatter.apply(pr, { value: Gs }, Jl.dom);
|
|
45305
45305
|
});
|
|
45306
45306
|
}), z(Cn[0]).each((Gs) => Di(g, Gs.dom, yb)));
|
|
@@ -45856,7 +45856,7 @@ Required: ` + v.join(", "));
|
|
|
45856
45856
|
}, Iw = (g, v) => {
|
|
45857
45857
|
gg(g) ? g.dom.classList.remove(v) : NC(g, v), LC(g);
|
|
45858
45858
|
}, pg = (g, v) => gg(g) && g.dom.classList.contains(v), Qw = (g, v) => {
|
|
45859
|
-
|
|
45859
|
+
be(v, (k) => {
|
|
45860
45860
|
Iw(g, k);
|
|
45861
45861
|
});
|
|
45862
45862
|
}, kn = (g) => (v) => {
|
|
@@ -45871,13 +45871,13 @@ Required: ` + v.join(", "));
|
|
|
45871
45871
|
g.firstSelected
|
|
45872
45872
|
]), _ = (z) => {
|
|
45873
45873
|
const J = ws(z, g.selectedSelector);
|
|
45874
|
-
|
|
45874
|
+
be(J, k);
|
|
45875
45875
|
};
|
|
45876
45876
|
return {
|
|
45877
45877
|
clearBeforeUpdate: _,
|
|
45878
45878
|
clear: _,
|
|
45879
45879
|
selectRange: (z, J, ie, ue) => {
|
|
45880
|
-
_(z),
|
|
45880
|
+
_(z), be(J, v), vm(ie, g.firstSelected), vm(ue, g.lastSelected);
|
|
45881
45881
|
},
|
|
45882
45882
|
selectedSelector: g.selectedSelector,
|
|
45883
45883
|
firstSelectedSelector: g.firstSelectedSelector,
|
|
@@ -45893,13 +45893,13 @@ Required: ` + v.join(", "));
|
|
|
45893
45893
|
J(ue), k();
|
|
45894
45894
|
}, J = (ue) => {
|
|
45895
45895
|
const Ie = ws(ue, `${g.selectedSelector},${g.firstSelectedSelector},${g.lastSelectedSelector}`);
|
|
45896
|
-
|
|
45896
|
+
be(Ie, _);
|
|
45897
45897
|
};
|
|
45898
45898
|
return {
|
|
45899
45899
|
clearBeforeUpdate: J,
|
|
45900
45900
|
clear: z,
|
|
45901
45901
|
selectRange: (ue, Ie, tt, Zt) => {
|
|
45902
|
-
z(ue),
|
|
45902
|
+
z(ue), be(Ie, N), Ws(tt, g.firstSelected, "1"), Ws(Zt, g.lastSelected, "1"), v(Ie, tt, Zt);
|
|
45903
45903
|
},
|
|
45904
45904
|
selectedSelector: g.selectedSelector,
|
|
45905
45905
|
firstSelectedSelector: g.firstSelectedSelector,
|
|
@@ -46035,9 +46035,9 @@ Required: ` + v.join(", "));
|
|
|
46035
46035
|
},
|
|
46036
46036
|
trigger: (...z) => {
|
|
46037
46037
|
const J = {};
|
|
46038
|
-
|
|
46038
|
+
be(g, (ie, ue) => {
|
|
46039
46039
|
J[ie] = z[ue];
|
|
46040
|
-
}),
|
|
46040
|
+
}), be(v, (ie) => {
|
|
46041
46041
|
ie(J);
|
|
46042
46042
|
});
|
|
46043
46043
|
}
|
|
@@ -46071,7 +46071,7 @@ Required: ` + v.join(", "));
|
|
|
46071
46071
|
}, ZC = (g, v) => {
|
|
46072
46072
|
if (!T(v))
|
|
46073
46073
|
throw new Error("The " + g + " fields must be an array. Was: " + v + ".");
|
|
46074
|
-
|
|
46074
|
+
be(v, (k) => {
|
|
46075
46075
|
if (!O(k))
|
|
46076
46076
|
throw new Error("The value " + k + " in the " + g + " fields was not a string.");
|
|
46077
46077
|
});
|
|
@@ -46308,10 +46308,10 @@ Required: ` + v.join(", "));
|
|
|
46308
46308
|
});
|
|
46309
46309
|
}, $c = (g) => {
|
|
46310
46310
|
const v = ws(g.parent(), "." + Ub);
|
|
46311
|
-
|
|
46311
|
+
be(v, hr);
|
|
46312
46312
|
}, Nl = (g, v, k) => {
|
|
46313
46313
|
const _ = g.origin();
|
|
46314
|
-
|
|
46314
|
+
be(v, (N) => {
|
|
46315
46315
|
N.each((z) => {
|
|
46316
46316
|
const J = k(_, z);
|
|
46317
46317
|
vm(J, Ub), Ks(g.parent(), J);
|
|
@@ -46339,7 +46339,7 @@ Required: ` + v.join(", "));
|
|
|
46339
46339
|
}
|
|
46340
46340
|
}, Os = (g, v) => {
|
|
46341
46341
|
const k = ws(g.parent(), "." + Ub);
|
|
46342
|
-
|
|
46342
|
+
be(k, v);
|
|
46343
46343
|
}, q0 = (g) => {
|
|
46344
46344
|
Os(g, (v) => {
|
|
46345
46345
|
Io(v, "display", "none");
|
|
@@ -46504,7 +46504,7 @@ Required: ` + v.join(", "));
|
|
|
46504
46504
|
g.inline && hr(v.parent());
|
|
46505
46505
|
}, KC = (g) => Y(g) && g.nodeName === "TABLE", tx = "bar-", Wb = (g) => vr(g, "data-mce-resize") !== "false", aE = (g) => {
|
|
46506
46506
|
const v = es.fromTable(g);
|
|
46507
|
-
es.hasColumns(v) ||
|
|
46507
|
+
es.hasColumns(v) || be(eh(g), (k) => {
|
|
46508
46508
|
const _ = ri(k, "width");
|
|
46509
46509
|
Io(k, "width", _), Te(k, "width");
|
|
46510
46510
|
});
|
|
@@ -46553,7 +46553,7 @@ Required: ` + v.join(", "));
|
|
|
46553
46553
|
const qs = Cn.target;
|
|
46554
46554
|
if (KC(qs) && !g.mode.isReadOnly()) {
|
|
46555
46555
|
const Gs = Dt.fromDom(qs);
|
|
46556
|
-
|
|
46556
|
+
be(g.dom.select(".mce-clonedresizable"), (Un) => {
|
|
46557
46557
|
g.dom.addClass(Un, "mce-" + ki(g) + "-columns");
|
|
46558
46558
|
}), !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("");
|
|
46559
46559
|
}
|
|
@@ -46758,7 +46758,7 @@ function che() {
|
|
|
46758
46758
|
}, Kt = (M, U) => Lt(je(M, U)), Qt = (M) => {
|
|
46759
46759
|
const U = Xt.call(M, 0);
|
|
46760
46760
|
return U.reverse(), U;
|
|
46761
|
-
},
|
|
46761
|
+
}, 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) => {
|
|
46762
46762
|
const te = [], $e = F(U) ? (Fe) => cn(te, (Vt) => U(Vt, Fe)) : (Fe) => rn(te, Fe);
|
|
46763
46763
|
for (let Fe = 0, Vt = M.length; Fe < Vt; Fe++) {
|
|
46764
46764
|
const no = M[Fe];
|
|
@@ -47059,7 +47059,7 @@ function che() {
|
|
|
47059
47059
|
}, Im = (M, U, te) => {
|
|
47060
47060
|
const $e = M.dom;
|
|
47061
47061
|
zf($e, U, te);
|
|
47062
|
-
}, 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,
|
|
47062
|
+
}, 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) => {
|
|
47063
47063
|
const U = zo(M), te = zi(M) ? U.slice(0, -1) : U;
|
|
47064
47064
|
return je(te, Jn);
|
|
47065
47065
|
}, Hn = (M, U, te) => Lo(M).filter(Ns).map(($e) => ({
|
|
@@ -47077,7 +47077,7 @@ function che() {
|
|
|
47077
47077
|
for (let U = 1; U < M.length; U++)
|
|
47078
47078
|
as(M[U - 1], M[U]);
|
|
47079
47079
|
}, tr = (M, U) => {
|
|
47080
|
-
pt(qt(M),
|
|
47080
|
+
pt(qt(M), ot(U), as);
|
|
47081
47081
|
}, ri = (M, U) => {
|
|
47082
47082
|
const te = {
|
|
47083
47083
|
list: ke.fromTag(U, M),
|
|
@@ -47123,10 +47123,10 @@ function che() {
|
|
|
47123
47123
|
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), []);
|
|
47124
47124
|
return te.each((Fe) => {
|
|
47125
47125
|
const Vt = ke.fromHtml(`<!--${Fe.content}-->`);
|
|
47126
|
-
|
|
47126
|
+
ot($e).each((no) => {
|
|
47127
47127
|
vr(no.list, Vt);
|
|
47128
47128
|
});
|
|
47129
|
-
}),
|
|
47129
|
+
}), ot($e).map((Fe) => Fe.list);
|
|
47130
47130
|
}, Vs = (M, U) => {
|
|
47131
47131
|
switch (M) {
|
|
47132
47132
|
case "Indent":
|
|
@@ -47214,7 +47214,7 @@ function che() {
|
|
|
47214
47214
|
}, ou = (M, U) => {
|
|
47215
47215
|
const te = Vh(U);
|
|
47216
47216
|
return Hi(M.contentDocument, te).toArray();
|
|
47217
|
-
}, Qm = (M, U) => Kt(dt(U,
|
|
47217
|
+
}, Qm = (M, U) => Kt(dt(U, Oe), (te) => ot(te).exists(Oe) ? ou(M, te) : Yp(M, te)), Hh = (M, U) => {
|
|
47218
47218
|
ye(Kn(M, et), (te) => Vs(U, te));
|
|
47219
47219
|
}, Lg = (M) => {
|
|
47220
47220
|
const U = je(Tn(M), ke.fromDom);
|
|
@@ -47936,7 +47936,7 @@ function uhe() {
|
|
|
47936
47936
|
processor: "boolean",
|
|
47937
47937
|
default: !1
|
|
47938
47938
|
});
|
|
47939
|
-
}, Lt = Q("link_assume_external_targets"), Kt = Q("link_context_toolbar"), Qt = Q("link_list"),
|
|
47939
|
+
}, 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) => {
|
|
47940
47940
|
const Ve = us(se);
|
|
47941
47941
|
for (let wt = 0, Jt = Ve.length; wt < Jt; wt++) {
|
|
47942
47942
|
const Tn = Ve[wt], dn = se[Tn];
|
|
@@ -47992,7 +47992,7 @@ function uhe() {
|
|
|
47992
47992
|
const wt = Us(Ve.rel, Ve.target === "_blank");
|
|
47993
47993
|
Ve.rel = wt || null;
|
|
47994
47994
|
}
|
|
47995
|
-
return Je.from(Ve.target).isNone() && qt(se) === !1 && (Ve.target =
|
|
47995
|
+
return Je.from(Ve.target).isNone() && qt(se) === !1 && (Ve.target = be(se)), Ve.href = pi(Ve.href, Lt(se)), Ve;
|
|
47996
47996
|
}, Lo = (se, Ee, Ve, wt) => {
|
|
47997
47997
|
Ve.each((Jt) => {
|
|
47998
47998
|
ze(Ee, "innerText") ? Ee.innerText = Jt : Ee.textContent = Jt;
|
|
@@ -48166,7 +48166,7 @@ function uhe() {
|
|
|
48166
48166
|
}) : Je.none();
|
|
48167
48167
|
}, To = { preprocess: (se, Ee) => ye([
|
|
48168
48168
|
bt,
|
|
48169
|
-
Wn(Lt(se),
|
|
48169
|
+
Wn(Lt(se), ot(se))
|
|
48170
48170
|
], (Ve) => Ve(Ee)).fold(() => Promise.resolve(Ee), (Ve) => new Promise((wt) => {
|
|
48171
48171
|
ut(se, Ve.message, (Jt) => {
|
|
48172
48172
|
wt(Jt ? Ve.preprocess(Ee) : Ee);
|
|
@@ -48299,7 +48299,7 @@ function uhe() {
|
|
|
48299
48299
|
name: "title",
|
|
48300
48300
|
type: "input",
|
|
48301
48301
|
label: "Title"
|
|
48302
|
-
}] : [], dn = Je.from(
|
|
48302
|
+
}] : [], dn = Je.from(be(Ve)), co = So(se, dn), mo = se.catalogs, is = Pe.init(co, mo);
|
|
48303
48303
|
return {
|
|
48304
48304
|
title: "Insert/Edit Link",
|
|
48305
48305
|
size: "normal",
|
|
@@ -48528,7 +48528,7 @@ function uhe() {
|
|
|
48528
48528
|
text: co,
|
|
48529
48529
|
title: Je.none(),
|
|
48530
48530
|
rel: Je.none(),
|
|
48531
|
-
target: Je.from(
|
|
48531
|
+
target: Je.from(be(se)),
|
|
48532
48532
|
class: Je.none()
|
|
48533
48533
|
}), Ve(se), Tn.hide();
|
|
48534
48534
|
}
|
|
@@ -48698,14 +48698,14 @@ function dhe() {
|
|
|
48698
48698
|
Lt(q.dom, ce, Me);
|
|
48699
48699
|
}, Qt = (q, ce) => {
|
|
48700
48700
|
q.dom.removeAttribute(ce);
|
|
48701
|
-
},
|
|
48701
|
+
}, be = (q, ce) => {
|
|
48702
48702
|
const nt = (ce || document).createElement("div");
|
|
48703
48703
|
if (nt.innerHTML = q, !nt.hasChildNodes() || nt.childNodes.length > 1) {
|
|
48704
48704
|
const $n = "HTML does not have a single root node";
|
|
48705
48705
|
throw console.error($n, q), new Error($n);
|
|
48706
48706
|
}
|
|
48707
48707
|
return rt(nt.childNodes[0]);
|
|
48708
|
-
},
|
|
48708
|
+
}, ot = (q, ce) => {
|
|
48709
48709
|
const nt = (ce || document).createElement(q);
|
|
48710
48710
|
return rt(nt);
|
|
48711
48711
|
}, qt = (q, ce) => {
|
|
@@ -48716,8 +48716,8 @@ function dhe() {
|
|
|
48716
48716
|
throw new Error("Node cannot be null or undefined");
|
|
48717
48717
|
return { dom: q };
|
|
48718
48718
|
}, Ue = {
|
|
48719
|
-
fromHtml:
|
|
48720
|
-
fromTag:
|
|
48719
|
+
fromHtml: be,
|
|
48720
|
+
fromTag: ot,
|
|
48721
48721
|
fromText: qt,
|
|
48722
48722
|
fromDom: rt,
|
|
48723
48723
|
fromPoint: (q, ce, Me) => Xe.from(q.dom.elementFromPoint(ce, Me)).map(rt)
|
|
@@ -49596,7 +49596,7 @@ function hhe() {
|
|
|
49596
49596
|
!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"));
|
|
49597
49597
|
}
|
|
49598
49598
|
return ut.source = ut.source || ut.src || "", ut.altsource = ut.altsource || "", ut.poster = ut.poster || "", ut;
|
|
49599
|
-
},
|
|
49599
|
+
}, be = (Pe) => {
|
|
49600
49600
|
var Te;
|
|
49601
49601
|
const ut = {
|
|
49602
49602
|
mp3: "audio/mpeg",
|
|
@@ -49609,7 +49609,7 @@ function hhe() {
|
|
|
49609
49609
|
}, bt = (Te = Pe.toLowerCase().split(".").pop()) !== null && Te !== void 0 ? Te : "";
|
|
49610
49610
|
return _e(ut, bt).getOr("");
|
|
49611
49611
|
};
|
|
49612
|
-
var
|
|
49612
|
+
var ot = tinymce.util.Tools.resolve("tinymce.html.Node"), qt = tinymce.util.Tools.resolve("tinymce.html.Serializer");
|
|
49613
49613
|
const rt = (Pe, Te = {}) => Q({
|
|
49614
49614
|
forced_root_block: !1,
|
|
49615
49615
|
validate: !1,
|
|
@@ -49648,7 +49648,7 @@ function hhe() {
|
|
|
49648
49648
|
Dt.attr("poster", Te.poster), Dt.attr("src", null);
|
|
49649
49649
|
for (let Le = Wn; Le < 2; Le++)
|
|
49650
49650
|
if (Te[K[Le]]) {
|
|
49651
|
-
const Nt = new
|
|
49651
|
+
const Nt = new ot("source", 1);
|
|
49652
49652
|
Nt.attr("src", Te[K[Le]]), Nt.attr("type", Te[K[Le] + "mime"] || null), Dt.append(Nt);
|
|
49653
49653
|
}
|
|
49654
49654
|
break;
|
|
@@ -49659,7 +49659,7 @@ function hhe() {
|
|
|
49659
49659
|
const Re = Dt.getAll("img").length > 0;
|
|
49660
49660
|
if (Te.poster && !Re) {
|
|
49661
49661
|
Dt.attr("src", Te.poster);
|
|
49662
|
-
const Le = new
|
|
49662
|
+
const Le = new ot("img", 1);
|
|
49663
49663
|
Le.attr("src", Te.poster), Le.attr("width", Te.width), Le.attr("height", Te.height), Dt.append(Le);
|
|
49664
49664
|
}
|
|
49665
49665
|
break;
|
|
@@ -49791,7 +49791,7 @@ function hhe() {
|
|
|
49791
49791
|
const bt = dt.extend({}, Te);
|
|
49792
49792
|
if (!bt.source && (dt.extend(bt, Qt((ut = bt.embed) !== null && ut !== void 0 ? ut : "", Pe.schema)), !bt.source))
|
|
49793
49793
|
return "";
|
|
49794
|
-
bt.altsource || (bt.altsource = ""), bt.poster || (bt.poster = ""), bt.source = Pe.convertURL(bt.source, "source"), bt.altsource = Pe.convertURL(bt.altsource, "source"), bt.sourcemime =
|
|
49794
|
+
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");
|
|
49795
49795
|
const Wn = _i(bt.source);
|
|
49796
49796
|
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)
|
|
49797
49797
|
return us(bt.embed, bt, !0, Pe.schema);
|
|
@@ -50050,7 +50050,7 @@ function hhe() {
|
|
|
50050
50050
|
for (; Wn.firstChild; )
|
|
50051
50051
|
ut.append(Wn.firstChild);
|
|
50052
50052
|
}, xs = (Pe, Te) => {
|
|
50053
|
-
const ut = Te.name, bt = new
|
|
50053
|
+
const ut = Te.name, bt = new ot("img", 1);
|
|
50054
50054
|
return er(Pe, Te, bt), Fi(Te, bt, {}), bt.attr({
|
|
50055
50055
|
style: Te.attr("style"),
|
|
50056
50056
|
src: Ei.transparentSrc,
|
|
@@ -50059,14 +50059,14 @@ function hhe() {
|
|
|
50059
50059
|
}), bt;
|
|
50060
50060
|
}, jn = (Pe, Te) => {
|
|
50061
50061
|
var ut;
|
|
50062
|
-
const bt = Te.name, Wn = new
|
|
50062
|
+
const bt = Te.name, Wn = new ot("span", 1);
|
|
50063
50063
|
Wn.attr({
|
|
50064
50064
|
contentEditable: "false",
|
|
50065
50065
|
style: Te.attr("style"),
|
|
50066
50066
|
"data-mce-object": bt,
|
|
50067
50067
|
class: "mce-preview-object mce-object-" + bt
|
|
50068
50068
|
}), er(Pe, Te, Wn);
|
|
50069
|
-
const ao = Pe.dom.parseStyle((ut = Te.attr("style")) !== null && ut !== void 0 ? ut : ""), To = new
|
|
50069
|
+
const ao = Pe.dom.parseStyle((ut = Te.attr("style")) !== null && ut !== void 0 ? ut : ""), To = new ot(bt, 1);
|
|
50070
50070
|
if (Fi(Te, To, ao), To.attr({
|
|
50071
50071
|
src: Te.attr("src"),
|
|
50072
50072
|
style: Te.attr("style"),
|
|
@@ -50093,7 +50093,7 @@ function hhe() {
|
|
|
50093
50093
|
const Ot = Wn.attr("data-mce-html");
|
|
50094
50094
|
T(Ot) && $i(Pe, bt, To, unescape(Ot));
|
|
50095
50095
|
}
|
|
50096
|
-
const js = new
|
|
50096
|
+
const js = new ot("span", 1);
|
|
50097
50097
|
return js.attr("class", "mce-shim"), Wn.append(To), Wn.append(js), Wn;
|
|
50098
50098
|
}, er = (Pe, Te, ut) => {
|
|
50099
50099
|
var bt;
|
|
@@ -50104,7 +50104,7 @@ function hhe() {
|
|
|
50104
50104
|
let Re = Wn[ao].value;
|
|
50105
50105
|
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));
|
|
50106
50106
|
}
|
|
50107
|
-
const To = qt({ inner: !0 }, Pe.schema), js = new
|
|
50107
|
+
const To = qt({ inner: !0 }, Pe.schema), js = new ot("div", 1);
|
|
50108
50108
|
F(Te.children(), (Ot) => js.append(Ot));
|
|
50109
50109
|
const Dt = To.serialize(js);
|
|
50110
50110
|
Dt && (ut.attr("data-mce-html", escape(Dt)), ut.empty());
|
|
@@ -50144,7 +50144,7 @@ function hhe() {
|
|
|
50144
50144
|
const Ot = ao[Dt];
|
|
50145
50145
|
if (!Ot.parent)
|
|
50146
50146
|
continue;
|
|
50147
|
-
const Re = Ot.attr(To), Le = new
|
|
50147
|
+
const Re = Ot.attr(To), Le = new ot(Re, 1);
|
|
50148
50148
|
if (Re !== "audio") {
|
|
50149
50149
|
const Nn = Ot.attr("class");
|
|
50150
50150
|
Nn && Nn.indexOf("mce-preview-object") !== -1 && Ot.firstChild ? Le.attr({
|
|
@@ -50333,7 +50333,7 @@ function fhe() {
|
|
|
50333
50333
|
if (rn.call(A, I))
|
|
50334
50334
|
return !1;
|
|
50335
50335
|
return !0;
|
|
50336
|
-
},
|
|
50336
|
+
}, 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) => {
|
|
50337
50337
|
for (let ee = 0, fe = A.length; ee < fe; ee++) {
|
|
50338
50338
|
const Qe = A[ee];
|
|
50339
50339
|
if (I(Qe, ee))
|
|
@@ -50397,7 +50397,7 @@ function fhe() {
|
|
|
50397
50397
|
for (let ee = 0, fe = A.length; ee < fe; ++ee) {
|
|
50398
50398
|
if (!w(A[ee]))
|
|
50399
50399
|
throw new Error("Arr.flatten item " + ee + " was not an array, input: " + A);
|
|
50400
|
-
|
|
50400
|
+
ot.apply(I, A[ee]);
|
|
50401
50401
|
}
|
|
50402
50402
|
return I;
|
|
50403
50403
|
}, ke = (A, I) => Ke(pt(A, I)), Fn = (A, I) => {
|
|
@@ -50721,7 +50721,7 @@ function fhe() {
|
|
|
50721
50721
|
...ee,
|
|
50722
50722
|
table: I
|
|
50723
50723
|
});
|
|
50724
|
-
},
|
|
50724
|
+
}, Oe = (A, I) => Kd(A).getOr(I), et = (A, I, ee) => Oe(cc(A, I), ee), Et = (A, I, ee, fe) => {
|
|
50725
50725
|
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);
|
|
50726
50726
|
return I - Qe - Pt - en - Rn;
|
|
50727
50727
|
}, Hn = (A, I) => {
|
|
@@ -51938,7 +51938,7 @@ Required: ` + I.join(", "));
|
|
|
51938
51938
|
var I;
|
|
51939
51939
|
const ee = (I = Wg.read()) !== null && I !== void 0 ? I : [];
|
|
51940
51940
|
return ur(ee, (fe) => oe.from(fe.getType(A)));
|
|
51941
|
-
}, Ai = () => jg(d0), Ki = () => jg(ah),
|
|
51941
|
+
}, Ai = () => jg(d0), Ki = () => jg(ah), st = (A) => (I) => {
|
|
51942
51942
|
const ee = () => {
|
|
51943
51943
|
I.setEnabled(A.selection.isEditable());
|
|
51944
51944
|
};
|
|
@@ -51949,7 +51949,7 @@ Required: ` + I.join(", "));
|
|
|
51949
51949
|
A.ui.registry.addMenuButton("table", {
|
|
51950
51950
|
tooltip: "Table",
|
|
51951
51951
|
icon: "table",
|
|
51952
|
-
onSetup:
|
|
51952
|
+
onSetup: st(A),
|
|
51953
51953
|
fetch: (Rn) => Rn("inserttable | cell row column | advtablesort | tableprops deletetable")
|
|
51954
51954
|
});
|
|
51955
51955
|
const ee = (Rn) => () => A.execCommand(Rn), fe = (Rn, ko) => {
|
|
@@ -52067,7 +52067,7 @@ Required: ` + I.join(", "));
|
|
|
52067
52067
|
tooltip: "Insert table",
|
|
52068
52068
|
command: "mceInsertTableDialog",
|
|
52069
52069
|
icon: "table",
|
|
52070
|
-
onSetup:
|
|
52070
|
+
onSetup: st(A)
|
|
52071
52071
|
});
|
|
52072
52072
|
const Pt = ih(ou(A));
|
|
52073
52073
|
Pt.length !== 0 && A.queryCommandSupported("mceTableToggleClass") && A.ui.registry.addMenuButton("tableclass", {
|
|
@@ -52588,16 +52588,16 @@ function ghe() {
|
|
|
52588
52588
|
}, Qt = (Ne, ze) => {
|
|
52589
52589
|
const Ke = kt(Ne, ze).join("").replace(/\s/g, "");
|
|
52590
52590
|
return to(Ke);
|
|
52591
|
-
},
|
|
52591
|
+
}, 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) => ({
|
|
52592
52592
|
body: {
|
|
52593
52593
|
getWordCount: qt(Ne),
|
|
52594
|
-
getCharacterCount:
|
|
52595
|
-
getCharacterCountWithoutSpaces:
|
|
52594
|
+
getCharacterCount: be(Ne, Kt),
|
|
52595
|
+
getCharacterCountWithoutSpaces: be(Ne, Qt)
|
|
52596
52596
|
},
|
|
52597
52597
|
selection: {
|
|
52598
|
-
getWordCount:
|
|
52599
|
-
getCharacterCount:
|
|
52600
|
-
getCharacterCountWithoutSpaces:
|
|
52598
|
+
getWordCount: ot(Ne, Lt),
|
|
52599
|
+
getCharacterCount: ot(Ne, Kt),
|
|
52600
|
+
getCharacterCountWithoutSpaces: ot(Ne, Qt)
|
|
52601
52601
|
},
|
|
52602
52602
|
getCount: qt(Ne)
|
|
52603
52603
|
}), sn = (Ne, ze) => {
|
|
@@ -52699,42 +52699,42 @@ var jte = {}, Xte;
|
|
|
52699
52699
|
function phe() {
|
|
52700
52700
|
return Xte || (Xte = 1, function() {
|
|
52701
52701
|
const u = (he) => {
|
|
52702
|
-
let
|
|
52702
|
+
let Oe = he;
|
|
52703
52703
|
return {
|
|
52704
|
-
get: () =>
|
|
52704
|
+
get: () => Oe,
|
|
52705
52705
|
set: (Hn) => {
|
|
52706
|
-
|
|
52706
|
+
Oe = Hn;
|
|
52707
52707
|
}
|
|
52708
52708
|
};
|
|
52709
52709
|
};
|
|
52710
52710
|
var o = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
52711
|
-
const i = (he) => ({ isFullscreen: () => he.get() !== null }), c = (he,
|
|
52711
|
+
const i = (he) => ({ isFullscreen: () => he.get() !== null }), c = (he, Oe, et) => {
|
|
52712
52712
|
var Et;
|
|
52713
|
-
return et(he,
|
|
52713
|
+
return et(he, Oe.prototype) ? !0 : ((Et = he.constructor) === null || Et === void 0 ? void 0 : Et.name) === Oe.name;
|
|
52714
52714
|
}, h = (he) => {
|
|
52715
|
-
const
|
|
52716
|
-
return he === null ? "null" :
|
|
52717
|
-
}, m = (he) => (
|
|
52718
|
-
}, le = (he,
|
|
52719
|
-
function at(he, ...
|
|
52715
|
+
const Oe = typeof he;
|
|
52716
|
+
return he === null ? "null" : Oe === "object" && Array.isArray(he) ? "array" : Oe === "object" && c(he, String, (et, Et) => Et.isPrototypeOf(et)) ? "string" : Oe;
|
|
52717
|
+
}, 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 = () => {
|
|
52718
|
+
}, le = (he, Oe) => (...et) => he(Oe.apply(null, et)), Xe = (he, Oe) => (et) => he(Oe(et)), Xt = (he) => () => he;
|
|
52719
|
+
function at(he, ...Oe) {
|
|
52720
52720
|
return (...et) => {
|
|
52721
|
-
const Et =
|
|
52721
|
+
const Et = Oe.concat(et);
|
|
52722
52722
|
return he.apply(null, Et);
|
|
52723
52723
|
};
|
|
52724
52724
|
}
|
|
52725
52725
|
const oe = Xt(!1), At = Xt(!0);
|
|
52726
52726
|
class rn {
|
|
52727
|
-
constructor(
|
|
52728
|
-
this.tag =
|
|
52727
|
+
constructor(Oe, et) {
|
|
52728
|
+
this.tag = Oe, this.value = et;
|
|
52729
52729
|
}
|
|
52730
|
-
static some(
|
|
52731
|
-
return new rn(!0,
|
|
52730
|
+
static some(Oe) {
|
|
52731
|
+
return new rn(!0, Oe);
|
|
52732
52732
|
}
|
|
52733
52733
|
static none() {
|
|
52734
52734
|
return rn.singletonNone;
|
|
52735
52735
|
}
|
|
52736
|
-
fold(
|
|
52737
|
-
return this.tag ? et(this.value) :
|
|
52736
|
+
fold(Oe, et) {
|
|
52737
|
+
return this.tag ? et(this.value) : Oe();
|
|
52738
52738
|
}
|
|
52739
52739
|
isSome() {
|
|
52740
52740
|
return this.tag;
|
|
@@ -52742,40 +52742,40 @@ function phe() {
|
|
|
52742
52742
|
isNone() {
|
|
52743
52743
|
return !this.tag;
|
|
52744
52744
|
}
|
|
52745
|
-
map(
|
|
52746
|
-
return this.tag ? rn.some(
|
|
52745
|
+
map(Oe) {
|
|
52746
|
+
return this.tag ? rn.some(Oe(this.value)) : rn.none();
|
|
52747
52747
|
}
|
|
52748
|
-
bind(
|
|
52749
|
-
return this.tag ?
|
|
52748
|
+
bind(Oe) {
|
|
52749
|
+
return this.tag ? Oe(this.value) : rn.none();
|
|
52750
52750
|
}
|
|
52751
|
-
exists(
|
|
52752
|
-
return this.tag &&
|
|
52751
|
+
exists(Oe) {
|
|
52752
|
+
return this.tag && Oe(this.value);
|
|
52753
52753
|
}
|
|
52754
|
-
forall(
|
|
52755
|
-
return !this.tag ||
|
|
52754
|
+
forall(Oe) {
|
|
52755
|
+
return !this.tag || Oe(this.value);
|
|
52756
52756
|
}
|
|
52757
|
-
filter(
|
|
52758
|
-
return !this.tag ||
|
|
52757
|
+
filter(Oe) {
|
|
52758
|
+
return !this.tag || Oe(this.value) ? this : rn.none();
|
|
52759
52759
|
}
|
|
52760
|
-
getOr(
|
|
52761
|
-
return this.tag ? this.value :
|
|
52760
|
+
getOr(Oe) {
|
|
52761
|
+
return this.tag ? this.value : Oe;
|
|
52762
52762
|
}
|
|
52763
|
-
or(
|
|
52764
|
-
return this.tag ? this :
|
|
52763
|
+
or(Oe) {
|
|
52764
|
+
return this.tag ? this : Oe;
|
|
52765
52765
|
}
|
|
52766
|
-
getOrThunk(
|
|
52767
|
-
return this.tag ? this.value :
|
|
52766
|
+
getOrThunk(Oe) {
|
|
52767
|
+
return this.tag ? this.value : Oe();
|
|
52768
52768
|
}
|
|
52769
|
-
orThunk(
|
|
52770
|
-
return this.tag ? this :
|
|
52769
|
+
orThunk(Oe) {
|
|
52770
|
+
return this.tag ? this : Oe();
|
|
52771
52771
|
}
|
|
52772
|
-
getOrDie(
|
|
52772
|
+
getOrDie(Oe) {
|
|
52773
52773
|
if (this.tag)
|
|
52774
52774
|
return this.value;
|
|
52775
|
-
throw new Error(
|
|
52775
|
+
throw new Error(Oe ?? "Called getOrDie on None");
|
|
52776
52776
|
}
|
|
52777
|
-
static from(
|
|
52778
|
-
return De(
|
|
52777
|
+
static from(Oe) {
|
|
52778
|
+
return De(Oe) ? rn.some(Oe) : rn.none();
|
|
52779
52779
|
}
|
|
52780
52780
|
getOrNull() {
|
|
52781
52781
|
return this.tag ? this.value : null;
|
|
@@ -52783,8 +52783,8 @@ function phe() {
|
|
|
52783
52783
|
getOrUndefined() {
|
|
52784
52784
|
return this.value;
|
|
52785
52785
|
}
|
|
52786
|
-
each(
|
|
52787
|
-
this.tag &&
|
|
52786
|
+
each(Oe) {
|
|
52787
|
+
this.tag && Oe(this.value);
|
|
52788
52788
|
}
|
|
52789
52789
|
toArray() {
|
|
52790
52790
|
return this.tag ? [this.value] : [];
|
|
@@ -52794,68 +52794,68 @@ function phe() {
|
|
|
52794
52794
|
}
|
|
52795
52795
|
}
|
|
52796
52796
|
rn.singletonNone = new rn(!1);
|
|
52797
|
-
const cn = Array.prototype.push, je = (he,
|
|
52797
|
+
const cn = Array.prototype.push, je = (he, Oe) => {
|
|
52798
52798
|
const et = he.length, Et = new Array(et);
|
|
52799
52799
|
for (let Hn = 0; Hn < et; Hn++) {
|
|
52800
52800
|
const as = he[Hn];
|
|
52801
|
-
Et[Hn] =
|
|
52801
|
+
Et[Hn] = Oe(as, Hn);
|
|
52802
52802
|
}
|
|
52803
52803
|
return Et;
|
|
52804
|
-
}, ye = (he,
|
|
52804
|
+
}, ye = (he, Oe) => {
|
|
52805
52805
|
for (let et = 0, Et = he.length; et < Et; et++) {
|
|
52806
52806
|
const Hn = he[et];
|
|
52807
|
-
|
|
52807
|
+
Oe(Hn, et);
|
|
52808
52808
|
}
|
|
52809
|
-
}, Kn = (he,
|
|
52809
|
+
}, Kn = (he, Oe) => {
|
|
52810
52810
|
const et = [];
|
|
52811
52811
|
for (let Et = 0, Hn = he.length; Et < Hn; Et++) {
|
|
52812
52812
|
const as = he[Et];
|
|
52813
|
-
|
|
52813
|
+
Oe(as, Et) && et.push(as);
|
|
52814
52814
|
}
|
|
52815
52815
|
return et;
|
|
52816
|
-
}, dt = (he,
|
|
52816
|
+
}, dt = (he, Oe, et) => {
|
|
52817
52817
|
for (let Et = 0, Hn = he.length; Et < Hn; Et++) {
|
|
52818
52818
|
const as = he[Et];
|
|
52819
|
-
if (
|
|
52819
|
+
if (Oe(as, Et))
|
|
52820
52820
|
return rn.some(as);
|
|
52821
52821
|
if (et(as, Et))
|
|
52822
52822
|
break;
|
|
52823
52823
|
}
|
|
52824
52824
|
return rn.none();
|
|
52825
|
-
}, kt = (he,
|
|
52826
|
-
const
|
|
52825
|
+
}, kt = (he, Oe) => dt(he, Oe, oe), Q = (he) => {
|
|
52826
|
+
const Oe = [];
|
|
52827
52827
|
for (let et = 0, Et = he.length; et < Et; ++et) {
|
|
52828
52828
|
if (!R(he[et]))
|
|
52829
52829
|
throw new Error("Arr.flatten item " + et + " was not an array, input: " + he);
|
|
52830
|
-
cn.apply(
|
|
52830
|
+
cn.apply(Oe, he[et]);
|
|
52831
52831
|
}
|
|
52832
|
-
return
|
|
52833
|
-
}, to = (he,
|
|
52832
|
+
return Oe;
|
|
52833
|
+
}, 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) => {
|
|
52834
52834
|
for (let et = 0; et < he.length; et++) {
|
|
52835
|
-
const Et =
|
|
52835
|
+
const Et = Oe(he[et], et);
|
|
52836
52836
|
if (Et.isSome())
|
|
52837
52837
|
return Et;
|
|
52838
52838
|
}
|
|
52839
52839
|
return rn.none();
|
|
52840
|
-
},
|
|
52841
|
-
const
|
|
52840
|
+
}, be = (he, Oe, et) => he.isSome() && Oe.isSome() ? rn.some(et(he.getOrDie(), Oe.getOrDie())) : rn.none(), ot = (he) => {
|
|
52841
|
+
const Oe = u(rn.none()), et = () => Oe.get().each(he);
|
|
52842
52842
|
return {
|
|
52843
52843
|
clear: () => {
|
|
52844
|
-
et(),
|
|
52844
|
+
et(), Oe.set(rn.none());
|
|
52845
52845
|
},
|
|
52846
|
-
isSet: () =>
|
|
52847
|
-
get: () =>
|
|
52846
|
+
isSet: () => Oe.get().isSome(),
|
|
52847
|
+
get: () => Oe.get(),
|
|
52848
52848
|
set: (tr) => {
|
|
52849
|
-
et(),
|
|
52849
|
+
et(), Oe.set(rn.some(tr));
|
|
52850
52850
|
}
|
|
52851
52851
|
};
|
|
52852
|
-
}, qt = () =>
|
|
52853
|
-
const he =
|
|
52852
|
+
}, qt = () => ot((he) => he.unbind()), rt = () => {
|
|
52853
|
+
const he = ot(Je);
|
|
52854
52854
|
return {
|
|
52855
52855
|
...he,
|
|
52856
52856
|
on: (et) => he.get().each(et)
|
|
52857
52857
|
};
|
|
52858
|
-
}, sn = (he,
|
|
52858
|
+
}, sn = (he, Oe) => {
|
|
52859
52859
|
let et = null;
|
|
52860
52860
|
return {
|
|
52861
52861
|
cancel: () => {
|
|
@@ -52864,58 +52864,58 @@ function phe() {
|
|
|
52864
52864
|
throttle: (...as) => {
|
|
52865
52865
|
F(et) && (et = setTimeout(() => {
|
|
52866
52866
|
et = null, he.apply(null, as);
|
|
52867
|
-
},
|
|
52867
|
+
}, Oe));
|
|
52868
52868
|
}
|
|
52869
52869
|
};
|
|
52870
|
-
}, Ue = Object.keys, pt = (he,
|
|
52870
|
+
}, Ue = Object.keys, pt = (he, Oe) => {
|
|
52871
52871
|
const et = Ue(he);
|
|
52872
52872
|
for (let Et = 0, Hn = et.length; Et < Hn; Et++) {
|
|
52873
52873
|
const as = et[Et], Io = he[as];
|
|
52874
|
-
|
|
52874
|
+
Oe(Io, as);
|
|
52875
52875
|
}
|
|
52876
|
-
}, K = typeof window < "u" ? window : Function("return this;")(), us = (he,
|
|
52877
|
-
let et =
|
|
52876
|
+
}, K = typeof window < "u" ? window : Function("return this;")(), us = (he, Oe) => {
|
|
52877
|
+
let et = Oe ?? K;
|
|
52878
52878
|
for (let Et = 0; Et < he.length && et !== void 0 && et !== null; ++Et)
|
|
52879
52879
|
et = et[he[Et]];
|
|
52880
52880
|
return et;
|
|
52881
|
-
}, Oo = (he,
|
|
52881
|
+
}, Oo = (he, Oe) => {
|
|
52882
52882
|
const et = he.split(".");
|
|
52883
|
-
return us(et,
|
|
52884
|
-
}, xo = (he,
|
|
52885
|
-
const et = xo(he,
|
|
52883
|
+
return us(et, Oe);
|
|
52884
|
+
}, xo = (he, Oe) => Oo(he, Oe), Xo = (he, Oe) => {
|
|
52885
|
+
const et = xo(he, Oe);
|
|
52886
52886
|
if (et == null)
|
|
52887
52887
|
throw new Error(he + " not available on this browser");
|
|
52888
52888
|
return et;
|
|
52889
52889
|
}, _i = Object.getPrototypeOf, Ne = (he) => Xo("HTMLElement", he), ze = (he) => {
|
|
52890
|
-
const
|
|
52891
|
-
return P(he) && (Ne(
|
|
52892
|
-
}, Ke = 9, ke = 11, Fn = 1, vo = 3, yn = (he) => he.dom.nodeType, Ps = (he) => (
|
|
52890
|
+
const Oe = Oo("ownerDocument.defaultView", he);
|
|
52891
|
+
return P(he) && (Ne(Oe).prototype.isPrototypeOf(he) || /^HTML\w*Element$/.test(_i(he).constructor.name));
|
|
52892
|
+
}, 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) => {
|
|
52893
52893
|
if (T(et) || H(et) || _e(et))
|
|
52894
|
-
he.setAttribute(
|
|
52894
|
+
he.setAttribute(Oe, et + "");
|
|
52895
52895
|
else
|
|
52896
|
-
throw console.error("Invalid call to Attribute.set. Key ",
|
|
52897
|
-
}, Js = (he,
|
|
52898
|
-
oa(he.dom,
|
|
52899
|
-
}, ss = (he,
|
|
52900
|
-
const et = he.dom.getAttribute(
|
|
52896
|
+
throw console.error("Invalid call to Attribute.set. Key ", Oe, ":: Value ", et, ":: Element ", he), new Error("Attribute value was not simple");
|
|
52897
|
+
}, Js = (he, Oe, et) => {
|
|
52898
|
+
oa(he.dom, Oe, et);
|
|
52899
|
+
}, ss = (he, Oe) => {
|
|
52900
|
+
const et = he.dom.getAttribute(Oe);
|
|
52901
52901
|
return et === null ? void 0 : et;
|
|
52902
|
-
}, rs = (he,
|
|
52903
|
-
he.dom.removeAttribute(
|
|
52904
|
-
}, Rr = (he) => he.dom.classList !== void 0, Fs = (he,
|
|
52905
|
-
const Hn = he.indexOf(
|
|
52906
|
-
return Hn !== -1 ? Y(Et) ? !0 : Hn +
|
|
52907
|
-
}, Ya = (he) => he.style !== void 0 && xe(he.style.getPropertyValue), No = (he,
|
|
52908
|
-
const Et = (
|
|
52902
|
+
}, rs = (he, Oe) => {
|
|
52903
|
+
he.dom.removeAttribute(Oe);
|
|
52904
|
+
}, Rr = (he) => he.dom.classList !== void 0, Fs = (he, Oe) => Rr(he) && he.dom.classList.contains(Oe), Bo = (he, Oe, et = 0, Et) => {
|
|
52905
|
+
const Hn = he.indexOf(Oe, et);
|
|
52906
|
+
return Hn !== -1 ? Y(Et) ? !0 : Hn + Oe.length <= Et : !1;
|
|
52907
|
+
}, Ya = (he) => he.style !== void 0 && xe(he.style.getPropertyValue), No = (he, Oe) => {
|
|
52908
|
+
const Et = (Oe || document).createElement("div");
|
|
52909
52909
|
if (Et.innerHTML = he, !Et.hasChildNodes() || Et.childNodes.length > 1) {
|
|
52910
52910
|
const Hn = "HTML does not have a single root node";
|
|
52911
52911
|
throw console.error(Hn, he), new Error(Hn);
|
|
52912
52912
|
}
|
|
52913
52913
|
return pi(Et.childNodes[0]);
|
|
52914
|
-
}, Ns = (he,
|
|
52915
|
-
const Et = (
|
|
52914
|
+
}, Ns = (he, Oe) => {
|
|
52915
|
+
const Et = (Oe || document).createElement(he);
|
|
52916
52916
|
return pi(Et);
|
|
52917
|
-
}, Fr = (he,
|
|
52918
|
-
const Et = (
|
|
52917
|
+
}, Fr = (he, Oe) => {
|
|
52918
|
+
const Et = (Oe || document).createTextNode(he);
|
|
52919
52919
|
return pi(Et);
|
|
52920
52920
|
}, pi = (he) => {
|
|
52921
52921
|
if (he == null)
|
|
@@ -52926,28 +52926,28 @@ function phe() {
|
|
|
52926
52926
|
fromTag: Ns,
|
|
52927
52927
|
fromText: Fr,
|
|
52928
52928
|
fromDom: pi,
|
|
52929
|
-
fromPoint: (he,
|
|
52930
|
-
}, Ka = (he,
|
|
52929
|
+
fromPoint: (he, Oe, et) => rn.from(he.dom.elementFromPoint(Oe, et)).map(pi)
|
|
52930
|
+
}, Ka = (he, Oe) => {
|
|
52931
52931
|
const et = he.dom;
|
|
52932
52932
|
if (et.nodeType !== Fn)
|
|
52933
52933
|
return !1;
|
|
52934
52934
|
{
|
|
52935
52935
|
const Et = et;
|
|
52936
52936
|
if (Et.matches !== void 0)
|
|
52937
|
-
return Et.matches(
|
|
52937
|
+
return Et.matches(Oe);
|
|
52938
52938
|
if (Et.msMatchesSelector !== void 0)
|
|
52939
|
-
return Et.msMatchesSelector(
|
|
52939
|
+
return Et.msMatchesSelector(Oe);
|
|
52940
52940
|
if (Et.webkitMatchesSelector !== void 0)
|
|
52941
|
-
return Et.webkitMatchesSelector(
|
|
52941
|
+
return Et.webkitMatchesSelector(Oe);
|
|
52942
52942
|
if (Et.mozMatchesSelector !== void 0)
|
|
52943
|
-
return Et.mozMatchesSelector(
|
|
52943
|
+
return Et.mozMatchesSelector(Oe);
|
|
52944
52944
|
throw new Error("Browser lacks native selectors");
|
|
52945
52945
|
}
|
|
52946
|
-
}, jt = (he) => he.nodeType !== Fn && he.nodeType !== Ke && he.nodeType !== ke || he.childElementCount === 0, zo = (he,
|
|
52946
|
+
}, jt = (he) => he.nodeType !== Fn && he.nodeType !== Ke && he.nodeType !== ke || he.childElementCount === 0, zo = (he, Oe) => {
|
|
52947
52947
|
const et = document;
|
|
52948
52948
|
return jt(et) ? [] : je(et.querySelectorAll(he), Lo.fromDom);
|
|
52949
|
-
}, Kr = (he,
|
|
52950
|
-
const et = xe(
|
|
52949
|
+
}, 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) => {
|
|
52950
|
+
const et = xe(Oe) ? Oe : oe;
|
|
52951
52951
|
let Et = he.dom;
|
|
52952
52952
|
const Hn = [];
|
|
52953
52953
|
for (; Et.parentNode !== null && Et.parentNode !== void 0; ) {
|
|
@@ -52958,15 +52958,15 @@ function phe() {
|
|
|
52958
52958
|
}
|
|
52959
52959
|
return Hn;
|
|
52960
52960
|
}, Ts = (he) => {
|
|
52961
|
-
const
|
|
52962
|
-
return Ei(he).map($i).map(
|
|
52961
|
+
const Oe = (et) => Kn(et, (Et) => !Kr(he, Et));
|
|
52962
|
+
return Ei(he).map($i).map(Oe).getOr([]);
|
|
52963
52963
|
}, 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) => {
|
|
52964
|
-
const
|
|
52965
|
-
return xs(
|
|
52964
|
+
const Oe = jn(he);
|
|
52965
|
+
return xs(Oe) ? rn.some(Oe) : rn.none();
|
|
52966
52966
|
}, di = (he) => Lo.fromDom(he.dom.host), Pl = (he) => {
|
|
52967
52967
|
if (De(he.target)) {
|
|
52968
|
-
const
|
|
52969
|
-
if (ur(
|
|
52968
|
+
const Oe = Lo.fromDom(he.target);
|
|
52969
|
+
if (ur(Oe) && Vl(Oe) && he.composed && he.composedPath) {
|
|
52970
52970
|
const et = he.composedPath();
|
|
52971
52971
|
if (et)
|
|
52972
52972
|
return Kt(et);
|
|
@@ -52974,54 +52974,54 @@ function phe() {
|
|
|
52974
52974
|
}
|
|
52975
52975
|
return rn.from(he.target);
|
|
52976
52976
|
}, Vl = (he) => De(he.dom.shadowRoot), Ls = (he) => {
|
|
52977
|
-
const
|
|
52978
|
-
if (
|
|
52977
|
+
const Oe = Ko(he) ? he.dom.parentNode : he.dom;
|
|
52978
|
+
if (Oe == null || Oe.ownerDocument === null)
|
|
52979
52979
|
return !1;
|
|
52980
|
-
const et =
|
|
52981
|
-
return er(Lo.fromDom(
|
|
52980
|
+
const et = Oe.ownerDocument;
|
|
52981
|
+
return er(Lo.fromDom(Oe)).fold(() => et.body.contains(Oe), Xe(Ls, di));
|
|
52982
52982
|
}, Or = (he) => {
|
|
52983
|
-
const
|
|
52984
|
-
if (
|
|
52983
|
+
const Oe = he.dom.body;
|
|
52984
|
+
if (Oe == null)
|
|
52985
52985
|
throw new Error("Body is not available yet");
|
|
52986
|
-
return Lo.fromDom(
|
|
52987
|
-
}, Ws = (he,
|
|
52986
|
+
return Lo.fromDom(Oe);
|
|
52987
|
+
}, Ws = (he, Oe, et) => {
|
|
52988
52988
|
if (!T(et))
|
|
52989
|
-
throw console.error("Invalid call to CSS.set. Property ",
|
|
52990
|
-
Ya(he) && he.style.setProperty(
|
|
52991
|
-
}, bi = (he,
|
|
52989
|
+
throw console.error("Invalid call to CSS.set. Property ", Oe, ":: Value ", et, ":: Element ", he), new Error("CSS value must be a string: " + et);
|
|
52990
|
+
Ya(he) && he.style.setProperty(Oe, et);
|
|
52991
|
+
}, bi = (he, Oe, et) => {
|
|
52992
52992
|
const Et = he.dom;
|
|
52993
|
-
Ws(Et,
|
|
52994
|
-
}, sa = (he,
|
|
52993
|
+
Ws(Et, Oe, et);
|
|
52994
|
+
}, sa = (he, Oe) => {
|
|
52995
52995
|
const et = he.dom;
|
|
52996
|
-
pt(
|
|
52996
|
+
pt(Oe, (Et, Hn) => {
|
|
52997
52997
|
Ws(et, Hn, Et);
|
|
52998
52998
|
});
|
|
52999
|
-
}, vr = (he,
|
|
53000
|
-
const et = he.dom, Hn = window.getComputedStyle(et).getPropertyValue(
|
|
53001
|
-
return Hn === "" && !Ls(he) ? Pe(et,
|
|
53002
|
-
}, Pe = (he,
|
|
52999
|
+
}, vr = (he, Oe) => {
|
|
53000
|
+
const et = he.dom, Hn = window.getComputedStyle(et).getPropertyValue(Oe);
|
|
53001
|
+
return Hn === "" && !Ls(he) ? Pe(et, Oe) : Hn;
|
|
53002
|
+
}, Pe = (he, Oe) => Ya(he) ? he.style.getPropertyValue(Oe) : "", Te = (he, Oe, et, Et, Hn, as, Io) => ({
|
|
53003
53003
|
target: he,
|
|
53004
|
-
x:
|
|
53004
|
+
x: Oe,
|
|
53005
53005
|
y: et,
|
|
53006
53006
|
stop: Et,
|
|
53007
53007
|
prevent: Hn,
|
|
53008
53008
|
kill: as,
|
|
53009
53009
|
raw: Io
|
|
53010
53010
|
}), ut = (he) => {
|
|
53011
|
-
const
|
|
53012
|
-
return Te(
|
|
53013
|
-
}, bt = (he,
|
|
53014
|
-
he(et) &&
|
|
53015
|
-
}, Wn = (he,
|
|
53011
|
+
const Oe = Lo.fromDom(Pl(he).getOr(he.target)), et = () => he.stopPropagation(), Et = () => he.preventDefault(), Hn = le(Et, et);
|
|
53012
|
+
return Te(Oe, he.clientX, he.clientY, et, Et, Hn, he);
|
|
53013
|
+
}, bt = (he, Oe) => (et) => {
|
|
53014
|
+
he(et) && Oe(ut(et));
|
|
53015
|
+
}, Wn = (he, Oe, et, Et, Hn) => {
|
|
53016
53016
|
const as = bt(et, Et);
|
|
53017
|
-
return he.dom.addEventListener(
|
|
53018
|
-
}, ao = (he,
|
|
53019
|
-
he.dom.removeEventListener(
|
|
53020
|
-
}, js = At, Dt = (he,
|
|
53021
|
-
let
|
|
53022
|
-
return (...Et) => (
|
|
53023
|
-
}, Re = (he,
|
|
53024
|
-
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 =
|
|
53017
|
+
return he.dom.addEventListener(Oe, as, Hn), { unbind: at(To, he, Oe, as, Hn) };
|
|
53018
|
+
}, ao = (he, Oe, et, Et) => Wn(he, Oe, et, Et, !1), To = (he, Oe, et, Et) => {
|
|
53019
|
+
he.dom.removeEventListener(Oe, et, Et);
|
|
53020
|
+
}, js = At, Dt = (he, Oe, et) => ao(he, Oe, js, et), Ot = (he) => {
|
|
53021
|
+
let Oe = !1, et;
|
|
53022
|
+
return (...Et) => (Oe || (Oe = !0, et = he.apply(null, Et)), et);
|
|
53023
|
+
}, Re = (he, Oe, et, Et) => {
|
|
53024
|
+
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;
|
|
53025
53025
|
return {
|
|
53026
53026
|
isiPad: Xt(Hn),
|
|
53027
53027
|
isiPhone: Xt(as),
|
|
@@ -53033,32 +53033,32 @@ function phe() {
|
|
|
53033
53033
|
isWebView: Xt(Ba),
|
|
53034
53034
|
isDesktop: Xt(yr)
|
|
53035
53035
|
};
|
|
53036
|
-
}, Le = (he,
|
|
53036
|
+
}, Le = (he, Oe) => {
|
|
53037
53037
|
for (let et = 0; et < he.length; et++) {
|
|
53038
53038
|
const Et = he[et];
|
|
53039
|
-
if (Et.test(
|
|
53039
|
+
if (Et.test(Oe))
|
|
53040
53040
|
return Et;
|
|
53041
53041
|
}
|
|
53042
|
-
}, Nt = (he,
|
|
53043
|
-
const et = Le(he,
|
|
53042
|
+
}, Nt = (he, Oe) => {
|
|
53043
|
+
const et = Le(he, Oe);
|
|
53044
53044
|
if (!et)
|
|
53045
53045
|
return {
|
|
53046
53046
|
major: 0,
|
|
53047
53047
|
minor: 0
|
|
53048
53048
|
};
|
|
53049
|
-
const Et = (Hn) => Number(
|
|
53049
|
+
const Et = (Hn) => Number(Oe.replace(et, "$" + Hn));
|
|
53050
53050
|
return Nn(Et(1), Et(2));
|
|
53051
|
-
}, Ht = (he,
|
|
53052
|
-
const et = String(
|
|
53051
|
+
}, Ht = (he, Oe) => {
|
|
53052
|
+
const et = String(Oe).toLowerCase();
|
|
53053
53053
|
return he.length === 0 ? gn() : Nt(he, et);
|
|
53054
|
-
}, gn = () => Nn(0, 0), Nn = (he,
|
|
53054
|
+
}, gn = () => Nn(0, 0), Nn = (he, Oe) => ({
|
|
53055
53055
|
major: he,
|
|
53056
|
-
minor:
|
|
53056
|
+
minor: Oe
|
|
53057
53057
|
}), Ln = {
|
|
53058
53058
|
nu: Nn,
|
|
53059
53059
|
detect: Ht,
|
|
53060
53060
|
unknown: gn
|
|
53061
|
-
}, Dn = (he,
|
|
53061
|
+
}, Dn = (he, Oe) => Qt(Oe.brands, (et) => {
|
|
53062
53062
|
const Et = et.brand.toLowerCase();
|
|
53063
53063
|
return kt(he, (Hn) => {
|
|
53064
53064
|
var as;
|
|
@@ -53067,22 +53067,22 @@ function phe() {
|
|
|
53067
53067
|
current: Hn.name,
|
|
53068
53068
|
version: Ln.nu(parseInt(et.version, 10), 0)
|
|
53069
53069
|
}));
|
|
53070
|
-
}), Jn = (he,
|
|
53071
|
-
const et = String(
|
|
53070
|
+
}), Jn = (he, Oe) => {
|
|
53071
|
+
const et = String(Oe).toLowerCase();
|
|
53072
53072
|
return kt(he, (Et) => Et.search(et));
|
|
53073
|
-
}, lo = (he,
|
|
53074
|
-
const Et = Ln.detect(et.versionRegexes,
|
|
53073
|
+
}, lo = (he, Oe) => Jn(he, Oe).map((et) => {
|
|
53074
|
+
const Et = Ln.detect(et.versionRegexes, Oe);
|
|
53075
53075
|
return {
|
|
53076
53076
|
current: et.name,
|
|
53077
53077
|
version: Et
|
|
53078
53078
|
};
|
|
53079
|
-
}), ds = (he,
|
|
53080
|
-
const Et = Ln.detect(et.versionRegexes,
|
|
53079
|
+
}), ds = (he, Oe) => Jn(he, Oe).map((et) => {
|
|
53080
|
+
const Et = Ln.detect(et.versionRegexes, Oe);
|
|
53081
53081
|
return {
|
|
53082
53082
|
current: et.name,
|
|
53083
53083
|
version: Et
|
|
53084
53084
|
};
|
|
53085
|
-
}), ar = /.*?version\/\ ?([0-9]+)\.([0-9]+).*/, Ss = (he) => (
|
|
53085
|
+
}), ar = /.*?version\/\ ?([0-9]+)\.([0-9]+).*/, Ss = (he) => (Oe) => Bo(Oe, he), Da = [
|
|
53086
53086
|
{
|
|
53087
53087
|
name: "Edge",
|
|
53088
53088
|
versionRegexes: [/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],
|
|
@@ -53178,9 +53178,9 @@ function phe() {
|
|
|
53178
53178
|
current: void 0,
|
|
53179
53179
|
version: Ln.unknown()
|
|
53180
53180
|
}), pl = (he) => {
|
|
53181
|
-
const
|
|
53181
|
+
const Oe = he.current, et = he.version, Et = (Hn) => () => Oe === Hn;
|
|
53182
53182
|
return {
|
|
53183
|
-
current:
|
|
53183
|
+
current: Oe,
|
|
53184
53184
|
version: et,
|
|
53185
53185
|
isEdge: Et(Fo),
|
|
53186
53186
|
isChromium: Et(Ho),
|
|
@@ -53196,9 +53196,9 @@ function phe() {
|
|
|
53196
53196
|
current: void 0,
|
|
53197
53197
|
version: Ln.unknown()
|
|
53198
53198
|
}), Fu = (he) => {
|
|
53199
|
-
const
|
|
53199
|
+
const Oe = he.current, et = he.version, Et = (Hn) => () => Oe === Hn;
|
|
53200
53200
|
return {
|
|
53201
|
-
current:
|
|
53201
|
+
current: Oe,
|
|
53202
53202
|
version: et,
|
|
53203
53203
|
isWindows: Et(Jo),
|
|
53204
53204
|
isiOS: Et(zl),
|
|
@@ -53212,8 +53212,8 @@ function phe() {
|
|
|
53212
53212
|
}, lc = {
|
|
53213
53213
|
unknown: Ra,
|
|
53214
53214
|
nu: Fu
|
|
53215
|
-
}, Jr = { detect: (he,
|
|
53216
|
-
const Et = So.browsers(), Hn = So.oses(), as =
|
|
53215
|
+
}, Jr = { detect: (he, Oe, et) => {
|
|
53216
|
+
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);
|
|
53217
53217
|
return {
|
|
53218
53218
|
browser: as,
|
|
53219
53219
|
os: Io,
|
|
@@ -53221,63 +53221,63 @@ function phe() {
|
|
|
53221
53221
|
};
|
|
53222
53222
|
} }, Al = (he) => window.matchMedia(he).matches;
|
|
53223
53223
|
let Sc = Ot(() => Jr.detect(window.navigator.userAgent, rn.from(window.navigator.userAgentData), Al));
|
|
53224
|
-
const Zu = () => Sc(), cc = (he,
|
|
53224
|
+
const Zu = () => Sc(), cc = (he, Oe) => ({
|
|
53225
53225
|
left: he,
|
|
53226
|
-
top:
|
|
53227
|
-
translate: (Et, Hn) => cc(he + Et,
|
|
53226
|
+
top: Oe,
|
|
53227
|
+
translate: (Et, Hn) => cc(he + Et, Oe + Hn)
|
|
53228
53228
|
}), uc = cc, Wr = (he) => {
|
|
53229
|
-
const
|
|
53229
|
+
const Oe = he !== void 0 ? he.dom : document, et = Oe.body.scrollLeft || Oe.documentElement.scrollLeft, Et = Oe.body.scrollTop || Oe.documentElement.scrollTop;
|
|
53230
53230
|
return uc(et, Et);
|
|
53231
53231
|
}, jr = (he) => {
|
|
53232
|
-
const
|
|
53233
|
-
return Zu().browser.isFirefox() ? rn.none() : rn.from(
|
|
53234
|
-
}, pa = (he,
|
|
53232
|
+
const Oe = he === void 0 ? window : he;
|
|
53233
|
+
return Zu().browser.isFirefox() ? rn.none() : rn.from(Oe.visualViewport);
|
|
53234
|
+
}, pa = (he, Oe, et, Et) => ({
|
|
53235
53235
|
x: he,
|
|
53236
|
-
y:
|
|
53236
|
+
y: Oe,
|
|
53237
53237
|
width: et,
|
|
53238
53238
|
height: Et,
|
|
53239
53239
|
right: he + et,
|
|
53240
|
-
bottom:
|
|
53240
|
+
bottom: Oe + Et
|
|
53241
53241
|
}), Rc = (he) => {
|
|
53242
|
-
const
|
|
53243
|
-
return jr(
|
|
53244
|
-
const Hn =
|
|
53242
|
+
const Oe = he === void 0 ? window : he, et = Oe.document, Et = Wr(Lo.fromDom(et));
|
|
53243
|
+
return jr(Oe).fold(() => {
|
|
53244
|
+
const Hn = Oe.document.documentElement, as = Hn.clientWidth, Io = Hn.clientHeight;
|
|
53245
53245
|
return pa(Et.left, Et.top, as, Io);
|
|
53246
53246
|
}, (Hn) => pa(Math.max(Hn.pageLeft, Et.left), Math.max(Hn.pageTop, Et.top), Hn.width, Hn.height));
|
|
53247
|
-
}, Mc = (he,
|
|
53248
|
-
const Hn = (as) =>
|
|
53247
|
+
}, Mc = (he, Oe, et) => jr(et).map((Et) => {
|
|
53248
|
+
const Hn = (as) => Oe(ut(as));
|
|
53249
53249
|
return Et.addEventListener(he, Hn), { unbind: () => Et.removeEventListener(he, Hn) };
|
|
53250
53250
|
}).getOrThunk(() => ({ unbind: Je }));
|
|
53251
53251
|
var se = tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"), Ee = tinymce.util.Tools.resolve("tinymce.Env");
|
|
53252
|
-
const Ve = (he,
|
|
53253
|
-
he.dispatch("FullscreenStateChanged", { state:
|
|
53254
|
-
}, wt = (he) => (
|
|
53255
|
-
const
|
|
53256
|
-
|
|
53252
|
+
const Ve = (he, Oe) => {
|
|
53253
|
+
he.dispatch("FullscreenStateChanged", { state: Oe }), he.dispatch("ResizeEditor");
|
|
53254
|
+
}, wt = (he) => (Oe) => Oe.options.get(he), Jt = (he) => {
|
|
53255
|
+
const Oe = he.options.register;
|
|
53256
|
+
Oe("fullscreen_native", {
|
|
53257
53257
|
processor: "boolean",
|
|
53258
53258
|
default: !1
|
|
53259
53259
|
});
|
|
53260
53260
|
}, Tn = wt("fullscreen_native"), dn = (he) => {
|
|
53261
|
-
const
|
|
53262
|
-
return er(
|
|
53261
|
+
const Oe = Lo.fromDom(he.getElement());
|
|
53262
|
+
return er(Oe).map(di).getOrThunk(() => Or(Mr(Oe)));
|
|
53263
53263
|
}, 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) => {
|
|
53264
|
-
const
|
|
53265
|
-
|
|
53264
|
+
const Oe = he.dom;
|
|
53265
|
+
Oe.requestFullscreen ? Oe.requestFullscreen() : Oe.msRequestFullscreen ? Oe.msRequestFullscreen() : Oe.webkitRequestFullScreen && Oe.webkitRequestFullScreen();
|
|
53266
53266
|
}, q = (he) => {
|
|
53267
|
-
const
|
|
53268
|
-
|
|
53269
|
-
}, ce = (he) => he.dom === co(Mr(he).dom), Me = (he,
|
|
53270
|
-
const
|
|
53271
|
-
return
|
|
53272
|
-
}, ba = (he,
|
|
53267
|
+
const Oe = he.dom;
|
|
53268
|
+
Oe.exitFullscreen ? Oe.exitFullscreen() : Oe.msExitFullscreen ? Oe.msExitFullscreen() : Oe.webkitCancelFullScreen && Oe.webkitCancelFullScreen();
|
|
53269
|
+
}, 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) => {
|
|
53270
|
+
const Oe = vr(he, "background-color");
|
|
53271
|
+
return Oe !== void 0 && Oe !== "" ? "background-color:" + Oe + "!important" : dc;
|
|
53272
|
+
}, ba = (he, Oe, et) => {
|
|
53273
53273
|
const Et = (Ja) => ws(Ja, "*:not(.tox-silver-sink)"), Hn = (Ja) => (Ba) => {
|
|
53274
53274
|
const yr = ss(Ba, "style"), Xr = yr === void 0 ? "no-styles" : yr.trim();
|
|
53275
53275
|
Xr !== Ja && (Js(Ba, si, Xr), sa(Ba, he.parseStyle(Ja)));
|
|
53276
|
-
}, as = an(
|
|
53277
|
-
ye(Io, Hn(Bt)), ye(as, Hn(ra + Zs + tr)), Hn((Br === !0 ? "" : ra) + Zs + tr)(
|
|
53276
|
+
}, as = an(Oe, "*"), Io = to(as, Et), tr = Uo(et);
|
|
53277
|
+
ye(Io, Hn(Bt)), ye(as, Hn(ra + Zs + tr)), Hn((Br === !0 ? "" : ra) + Zs + tr)(Oe);
|
|
53278
53278
|
}, yi = (he) => {
|
|
53279
|
-
const
|
|
53280
|
-
ye(
|
|
53279
|
+
const Oe = $n("[" + si + "]");
|
|
53280
|
+
ye(Oe, (et) => {
|
|
53281
53281
|
const Et = ss(et, si);
|
|
53282
53282
|
Et && Et !== "no-styles" ? sa(et, he.parseStyle(Et)) : rs(et, "style"), rs(et, si);
|
|
53283
53283
|
});
|
|
@@ -53285,11 +53285,11 @@ function phe() {
|
|
|
53285
53285
|
bind: Je,
|
|
53286
53286
|
unbind: Je
|
|
53287
53287
|
}), (he) => {
|
|
53288
|
-
const
|
|
53288
|
+
const Oe = rt(), et = qt(), Et = qt(), Hn = () => {
|
|
53289
53289
|
document.body.scrollTop = 0, document.documentElement.scrollTop = 0;
|
|
53290
53290
|
}, as = () => {
|
|
53291
53291
|
window.requestAnimationFrame(() => {
|
|
53292
|
-
|
|
53292
|
+
Oe.on((Ja) => sa(Ja, {
|
|
53293
53293
|
top: he.offsetTop + "px",
|
|
53294
53294
|
left: he.offsetLeft + "px",
|
|
53295
53295
|
height: he.height + "px",
|
|
@@ -53301,29 +53301,29 @@ function phe() {
|
|
|
53301
53301
|
}, 50);
|
|
53302
53302
|
return {
|
|
53303
53303
|
bind: (Ja) => {
|
|
53304
|
-
|
|
53304
|
+
Oe.set(Ja), Io.throttle(), et.set(Mc("resize", Io.throttle)), Et.set(Mc("scroll", Io.throttle));
|
|
53305
53305
|
},
|
|
53306
53306
|
unbind: () => {
|
|
53307
|
-
|
|
53307
|
+
Oe.on(() => {
|
|
53308
53308
|
et.clear(), Et.clear();
|
|
53309
|
-
}),
|
|
53309
|
+
}), Oe.clear();
|
|
53310
53310
|
}
|
|
53311
53311
|
};
|
|
53312
|
-
}), Im = (he,
|
|
53313
|
-
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 =
|
|
53312
|
+
}), Im = (he, Oe) => {
|
|
53313
|
+
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) => {
|
|
53314
53314
|
Hi(et, "tox-fullscreen"), Hi(Et, "tox-fullscreen"), Hi(Hn, "tox-fullscreen"), er(as).map((Vs) => di(Vs).dom).each((Vs) => {
|
|
53315
53315
|
Hi(Vs, "tox-fullscreen"), Hi(Vs, "tox-shadowhost");
|
|
53316
53316
|
});
|
|
53317
53317
|
}, Zr = () => {
|
|
53318
|
-
Ba && yi(he.dom), ia(Oa.removeClass), zf.unbind(), rn.from(
|
|
53318
|
+
Ba && yi(he.dom), ia(Oa.removeClass), zf.unbind(), rn.from(Oe.get()).each((Hi) => Hi.fullscreenChangeHandler.unbind());
|
|
53319
53319
|
};
|
|
53320
53320
|
if (ri)
|
|
53321
|
-
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,
|
|
53321
|
+
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) => {
|
|
53322
53322
|
bi(Hi, "position", Vs);
|
|
53323
|
-
}), Zr(), Bc(ri.scrollPos),
|
|
53323
|
+
}), Zr(), Bc(ri.scrollPos), Oe.set(null), Ve(he, !1), he.off("remove", Zr);
|
|
53324
53324
|
else {
|
|
53325
53325
|
const Hi = Dt(Mr(tr), mo(), (Lc) => {
|
|
53326
|
-
Tn(he) && !ce(tr) &&
|
|
53326
|
+
Tn(he) && !ce(tr) && Oe.get() !== null && Im(he, Oe);
|
|
53327
53327
|
}), Vs = {
|
|
53328
53328
|
scrollPos: ei(),
|
|
53329
53329
|
containerWidth: yr.width,
|
|
@@ -53337,46 +53337,46 @@ function phe() {
|
|
|
53337
53337
|
};
|
|
53338
53338
|
Ba && ba(he.dom, as, Ja), hi.width = hi.height = "100%", yr.width = yr.height = "", ia(Oa.addClass), Io.each((Lc) => {
|
|
53339
53339
|
bi(Lc, "position", "fixed");
|
|
53340
|
-
}), zf.bind(as), he.on("remove", Zr),
|
|
53340
|
+
}), zf.bind(as), he.on("remove", Zr), Oe.set(Vs), Tn(he) && is(tr), Ve(he, !0);
|
|
53341
53341
|
}
|
|
53342
|
-
}, lr = (he,
|
|
53342
|
+
}, lr = (he, Oe) => {
|
|
53343
53343
|
he.addCommand("mceFullScreen", () => {
|
|
53344
|
-
Im(he,
|
|
53344
|
+
Im(he, Oe);
|
|
53345
53345
|
});
|
|
53346
53346
|
};
|
|
53347
53347
|
var Nc = tinymce.util.Tools.resolve("tinymce.util.VK");
|
|
53348
|
-
const wi = (he,
|
|
53348
|
+
const wi = (he, Oe) => {
|
|
53349
53349
|
he.on("init", () => {
|
|
53350
53350
|
he.on("keydown", (et) => {
|
|
53351
|
-
et.keyCode === Nc.TAB && !(et.metaKey || et.ctrlKey) &&
|
|
53351
|
+
et.keyCode === Nc.TAB && !(et.metaKey || et.ctrlKey) && Oe.get() && et.preventDefault();
|
|
53352
53352
|
});
|
|
53353
53353
|
});
|
|
53354
|
-
}, zi = (he,
|
|
53355
|
-
et.setActive(
|
|
53354
|
+
}, zi = (he, Oe) => (et) => {
|
|
53355
|
+
et.setActive(Oe.get() !== null);
|
|
53356
53356
|
const Et = (Hn) => et.setActive(Hn.state);
|
|
53357
53357
|
return he.on("FullscreenStateChanged", Et), () => he.off("FullscreenStateChanged", Et);
|
|
53358
|
-
}, Ma = (he,
|
|
53358
|
+
}, Ma = (he, Oe) => {
|
|
53359
53359
|
const et = () => he.execCommand("mceFullScreen");
|
|
53360
53360
|
he.ui.registry.addToggleMenuItem("fullscreen", {
|
|
53361
53361
|
text: "Fullscreen",
|
|
53362
53362
|
icon: "fullscreen",
|
|
53363
53363
|
shortcut: "Meta+Shift+F",
|
|
53364
53364
|
onAction: et,
|
|
53365
|
-
onSetup: zi(he,
|
|
53365
|
+
onSetup: zi(he, Oe),
|
|
53366
53366
|
context: "any"
|
|
53367
53367
|
}), he.ui.registry.addToggleButton("fullscreen", {
|
|
53368
53368
|
tooltip: "Fullscreen",
|
|
53369
53369
|
icon: "fullscreen",
|
|
53370
53370
|
onAction: et,
|
|
53371
|
-
onSetup: zi(he,
|
|
53371
|
+
onSetup: zi(he, Oe),
|
|
53372
53372
|
shortcut: "Meta+Shift+F",
|
|
53373
53373
|
context: "any"
|
|
53374
53374
|
});
|
|
53375
53375
|
};
|
|
53376
53376
|
var nu = () => {
|
|
53377
53377
|
o.add("fullscreen", (he) => {
|
|
53378
|
-
const
|
|
53379
|
-
return he.inline || (Jt(he), lr(he,
|
|
53378
|
+
const Oe = u(null);
|
|
53379
|
+
return he.inline || (Jt(he), lr(he, Oe), Ma(he, Oe), wi(he, Oe), he.addShortcut("Meta+Shift+F", "", "mceFullScreen")), i(Oe);
|
|
53380
53380
|
});
|
|
53381
53381
|
};
|
|
53382
53382
|
nu();
|
|
@@ -53451,37 +53451,37 @@ var Yte = {}, Kte;
|
|
|
53451
53451
|
function Ohe() {
|
|
53452
53452
|
return Kte || (Kte = 1, function() {
|
|
53453
53453
|
var u = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
53454
|
-
const o = (
|
|
53455
|
-
const rt =
|
|
53456
|
-
|
|
53457
|
-
}, i = (
|
|
53458
|
-
|
|
53459
|
-
o(
|
|
53460
|
-
}),
|
|
53461
|
-
o(
|
|
53454
|
+
const o = (be, ot, qt) => {
|
|
53455
|
+
const rt = ot === "UL" ? "InsertUnorderedList" : "InsertOrderedList";
|
|
53456
|
+
be.execCommand(rt, !1, qt === !1 ? null : { "list-style-type": qt });
|
|
53457
|
+
}, i = (be) => {
|
|
53458
|
+
be.addCommand("ApplyUnorderedListStyle", (ot, qt) => {
|
|
53459
|
+
o(be, "UL", qt["list-style-type"]);
|
|
53460
|
+
}), be.addCommand("ApplyOrderedListStyle", (ot, qt) => {
|
|
53461
|
+
o(be, "OL", qt["list-style-type"]);
|
|
53462
53462
|
});
|
|
53463
|
-
}, c = (
|
|
53464
|
-
const
|
|
53465
|
-
|
|
53463
|
+
}, c = (be) => (ot) => ot.options.get(be), h = (be) => {
|
|
53464
|
+
const ot = be.options.register;
|
|
53465
|
+
ot("advlist_number_styles", {
|
|
53466
53466
|
processor: "string[]",
|
|
53467
53467
|
default: "default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman".split(",")
|
|
53468
|
-
}),
|
|
53468
|
+
}), ot("advlist_bullet_styles", {
|
|
53469
53469
|
processor: "string[]",
|
|
53470
53470
|
default: "default,circle,square".split(",")
|
|
53471
53471
|
});
|
|
53472
|
-
}, m = c("advlist_number_styles"), O = c("advlist_bullet_styles"), w = (
|
|
53472
|
+
}, m = c("advlist_number_styles"), O = c("advlist_bullet_styles"), w = (be) => be == null, T = (be) => !w(be);
|
|
53473
53473
|
class P {
|
|
53474
|
-
constructor(
|
|
53475
|
-
this.tag =
|
|
53474
|
+
constructor(ot, qt) {
|
|
53475
|
+
this.tag = ot, this.value = qt;
|
|
53476
53476
|
}
|
|
53477
|
-
static some(
|
|
53478
|
-
return new P(!0,
|
|
53477
|
+
static some(ot) {
|
|
53478
|
+
return new P(!0, ot);
|
|
53479
53479
|
}
|
|
53480
53480
|
static none() {
|
|
53481
53481
|
return P.singletonNone;
|
|
53482
53482
|
}
|
|
53483
|
-
fold(
|
|
53484
|
-
return this.tag ? qt(this.value) :
|
|
53483
|
+
fold(ot, qt) {
|
|
53484
|
+
return this.tag ? qt(this.value) : ot();
|
|
53485
53485
|
}
|
|
53486
53486
|
isSome() {
|
|
53487
53487
|
return this.tag;
|
|
@@ -53489,40 +53489,40 @@ function Ohe() {
|
|
|
53489
53489
|
isNone() {
|
|
53490
53490
|
return !this.tag;
|
|
53491
53491
|
}
|
|
53492
|
-
map(
|
|
53493
|
-
return this.tag ? P.some(
|
|
53492
|
+
map(ot) {
|
|
53493
|
+
return this.tag ? P.some(ot(this.value)) : P.none();
|
|
53494
53494
|
}
|
|
53495
|
-
bind(
|
|
53496
|
-
return this.tag ?
|
|
53495
|
+
bind(ot) {
|
|
53496
|
+
return this.tag ? ot(this.value) : P.none();
|
|
53497
53497
|
}
|
|
53498
|
-
exists(
|
|
53499
|
-
return this.tag &&
|
|
53498
|
+
exists(ot) {
|
|
53499
|
+
return this.tag && ot(this.value);
|
|
53500
53500
|
}
|
|
53501
|
-
forall(
|
|
53502
|
-
return !this.tag ||
|
|
53501
|
+
forall(ot) {
|
|
53502
|
+
return !this.tag || ot(this.value);
|
|
53503
53503
|
}
|
|
53504
|
-
filter(
|
|
53505
|
-
return !this.tag ||
|
|
53504
|
+
filter(ot) {
|
|
53505
|
+
return !this.tag || ot(this.value) ? this : P.none();
|
|
53506
53506
|
}
|
|
53507
|
-
getOr(
|
|
53508
|
-
return this.tag ? this.value :
|
|
53507
|
+
getOr(ot) {
|
|
53508
|
+
return this.tag ? this.value : ot;
|
|
53509
53509
|
}
|
|
53510
|
-
or(
|
|
53511
|
-
return this.tag ? this :
|
|
53510
|
+
or(ot) {
|
|
53511
|
+
return this.tag ? this : ot;
|
|
53512
53512
|
}
|
|
53513
|
-
getOrThunk(
|
|
53514
|
-
return this.tag ? this.value :
|
|
53513
|
+
getOrThunk(ot) {
|
|
53514
|
+
return this.tag ? this.value : ot();
|
|
53515
53515
|
}
|
|
53516
|
-
orThunk(
|
|
53517
|
-
return this.tag ? this :
|
|
53516
|
+
orThunk(ot) {
|
|
53517
|
+
return this.tag ? this : ot();
|
|
53518
53518
|
}
|
|
53519
|
-
getOrDie(
|
|
53519
|
+
getOrDie(ot) {
|
|
53520
53520
|
if (this.tag)
|
|
53521
53521
|
return this.value;
|
|
53522
|
-
throw new Error(
|
|
53522
|
+
throw new Error(ot ?? "Called getOrDie on None");
|
|
53523
53523
|
}
|
|
53524
|
-
static from(
|
|
53525
|
-
return T(
|
|
53524
|
+
static from(ot) {
|
|
53525
|
+
return T(ot) ? P.some(ot) : P.none();
|
|
53526
53526
|
}
|
|
53527
53527
|
getOrNull() {
|
|
53528
53528
|
return this.tag ? this.value : null;
|
|
@@ -53530,8 +53530,8 @@ function Ohe() {
|
|
|
53530
53530
|
getOrUndefined() {
|
|
53531
53531
|
return this.value;
|
|
53532
53532
|
}
|
|
53533
|
-
each(
|
|
53534
|
-
this.tag &&
|
|
53533
|
+
each(ot) {
|
|
53534
|
+
this.tag && ot(this.value);
|
|
53535
53535
|
}
|
|
53536
53536
|
toArray() {
|
|
53537
53537
|
return this.tag ? [this.value] : [];
|
|
@@ -53541,58 +53541,58 @@ function Ohe() {
|
|
|
53541
53541
|
}
|
|
53542
53542
|
}
|
|
53543
53543
|
P.singletonNone = new P(!1);
|
|
53544
|
-
const R = Array.prototype.indexOf, F = (
|
|
53545
|
-
for (let rt = 0, sn =
|
|
53546
|
-
const Ue =
|
|
53547
|
-
if (
|
|
53544
|
+
const R = Array.prototype.indexOf, F = (be, ot) => R.call(be, ot), H = (be, ot) => F(be, ot) > -1, Y = (be, ot, qt) => {
|
|
53545
|
+
for (let rt = 0, sn = be.length; rt < sn; rt++) {
|
|
53546
|
+
const Ue = be[rt];
|
|
53547
|
+
if (ot(Ue, rt))
|
|
53548
53548
|
return P.some(Ue);
|
|
53549
53549
|
if (qt(Ue, rt))
|
|
53550
53550
|
break;
|
|
53551
53551
|
}
|
|
53552
53552
|
return P.none();
|
|
53553
|
-
}, me = Object.keys, De = (
|
|
53554
|
-
const qt = me(
|
|
53553
|
+
}, me = Object.keys, De = (be, ot) => {
|
|
53554
|
+
const qt = me(be);
|
|
53555
53555
|
for (let rt = 0, sn = qt.length; rt < sn; rt++) {
|
|
53556
|
-
const Ue = qt[rt], pt =
|
|
53557
|
-
|
|
53556
|
+
const Ue = qt[rt], pt = be[Ue];
|
|
53557
|
+
ot(pt, Ue);
|
|
53558
53558
|
}
|
|
53559
|
-
}, xe = (
|
|
53559
|
+
}, xe = (be, ot) => _e(be, (qt, rt) => ({
|
|
53560
53560
|
k: rt,
|
|
53561
|
-
v:
|
|
53562
|
-
})), _e = (
|
|
53561
|
+
v: ot(qt, rt)
|
|
53562
|
+
})), _e = (be, ot) => {
|
|
53563
53563
|
const qt = {};
|
|
53564
|
-
return De(
|
|
53565
|
-
const Ue =
|
|
53564
|
+
return De(be, (rt, sn) => {
|
|
53565
|
+
const Ue = ot(rt, sn);
|
|
53566
53566
|
qt[Ue.k] = Ue.v;
|
|
53567
53567
|
}), qt;
|
|
53568
53568
|
};
|
|
53569
53569
|
var Je = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
53570
|
-
const le = (
|
|
53571
|
-
const
|
|
53570
|
+
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) => {
|
|
53571
|
+
const ot = be.dom.getParent(be.selection.getNode(), "ol,ul"), qt = be.dom.getStyle(ot, "listStyleType");
|
|
53572
53572
|
return P.from(qt);
|
|
53573
|
-
}, cn = (
|
|
53574
|
-
const qt =
|
|
53575
|
-
return cn(
|
|
53576
|
-
}, ye = (
|
|
53577
|
-
const qt =
|
|
53578
|
-
return
|
|
53579
|
-
parents:
|
|
53573
|
+
}, cn = (be, ot) => ot !== null && !be.dom.isEditable(ot), je = (be, ot) => {
|
|
53574
|
+
const qt = be.dom.getParent(ot, "ol,ul,dl");
|
|
53575
|
+
return cn(be, qt) || !be.selection.isEditable();
|
|
53576
|
+
}, ye = (be, ot) => {
|
|
53577
|
+
const qt = be.selection.getNode();
|
|
53578
|
+
return ot({
|
|
53579
|
+
parents: be.dom.getParents(qt),
|
|
53580
53580
|
element: qt
|
|
53581
|
-
}),
|
|
53582
|
-
}, Kn = (
|
|
53581
|
+
}), be.on("NodeChange", ot), () => be.off("NodeChange", ot);
|
|
53582
|
+
}, Kn = (be) => be.replace(/\-/g, " ").replace(/\b\w/g, (ot) => ot.toUpperCase()), dt = (be) => w(be) || be === "default" ? "" : be, kt = (be, ot) => (qt) => {
|
|
53583
53583
|
const rt = (Ue, pt) => {
|
|
53584
53584
|
const K = Ue.selection.getStart(!0);
|
|
53585
|
-
qt.setActive(At(Ue, pt,
|
|
53585
|
+
qt.setActive(At(Ue, pt, ot)), qt.setEnabled(!je(Ue, K));
|
|
53586
53586
|
};
|
|
53587
|
-
return ye(
|
|
53588
|
-
}, Q = (
|
|
53587
|
+
return ye(be, (Ue) => rt(be, Ue.parents));
|
|
53588
|
+
}, Q = (be, ot, qt, rt, sn, Ue) => {
|
|
53589
53589
|
const pt = {
|
|
53590
53590
|
"lower-latin": "lower-alpha",
|
|
53591
53591
|
"upper-latin": "upper-alpha",
|
|
53592
53592
|
"lower-alpha": "lower-latin",
|
|
53593
53593
|
"upper-alpha": "upper-latin"
|
|
53594
53594
|
}, K = xe(pt, (us) => H(Ue, us));
|
|
53595
|
-
|
|
53595
|
+
be.ui.registry.addSplitButton(ot, {
|
|
53596
53596
|
tooltip: qt,
|
|
53597
53597
|
icon: sn === "OL" ? "ordered-list" : "unordered-list",
|
|
53598
53598
|
presets: "listpreview",
|
|
@@ -53609,29 +53609,29 @@ function Ohe() {
|
|
|
53609
53609
|
});
|
|
53610
53610
|
us(Oo);
|
|
53611
53611
|
},
|
|
53612
|
-
onAction: () =>
|
|
53612
|
+
onAction: () => be.execCommand(rt),
|
|
53613
53613
|
onItemAction: (us, Oo) => {
|
|
53614
|
-
o(
|
|
53614
|
+
o(be, sn, Oo);
|
|
53615
53615
|
},
|
|
53616
|
-
select: (us) => rn(
|
|
53617
|
-
onSetup: kt(
|
|
53616
|
+
select: (us) => rn(be).exists((xo) => us === xo || pt[xo] === us && !K[us]),
|
|
53617
|
+
onSetup: kt(be, sn)
|
|
53618
53618
|
});
|
|
53619
|
-
}, to = (
|
|
53620
|
-
|
|
53619
|
+
}, to = (be, ot, qt, rt, sn, Ue) => {
|
|
53620
|
+
be.ui.registry.addToggleButton(ot, {
|
|
53621
53621
|
active: !1,
|
|
53622
53622
|
tooltip: qt,
|
|
53623
53623
|
icon: sn === "OL" ? "ordered-list" : "unordered-list",
|
|
53624
|
-
onSetup: kt(
|
|
53625
|
-
onAction: () =>
|
|
53624
|
+
onSetup: kt(be, sn),
|
|
53625
|
+
onAction: () => be.queryCommandState(rt) || Ue === "" ? be.execCommand(rt) : o(be, sn, Ue)
|
|
53626
53626
|
});
|
|
53627
|
-
}, Lt = (
|
|
53628
|
-
Ue.length > 1 ? Q(
|
|
53629
|
-
}, Kt = (
|
|
53630
|
-
Lt(
|
|
53627
|
+
}, Lt = (be, ot, qt, rt, sn, Ue) => {
|
|
53628
|
+
Ue.length > 1 ? Q(be, ot, qt, rt, sn, Ue) : to(be, ot, qt, rt, sn, dt(Ue[0]));
|
|
53629
|
+
}, Kt = (be) => {
|
|
53630
|
+
Lt(be, "numlist", "Numbered list", "InsertOrderedList", "OL", m(be)), Lt(be, "bullist", "Bullet list", "InsertUnorderedList", "UL", O(be));
|
|
53631
53631
|
};
|
|
53632
53632
|
var Qt = () => {
|
|
53633
|
-
u.add("advlist", (
|
|
53634
|
-
|
|
53633
|
+
u.add("advlist", (be) => {
|
|
53634
|
+
be.hasPlugin("lists") ? (h(be), Kt(be), i(be)) : console.error("Please use the Lists plugin together with the List Styles plugin.");
|
|
53635
53635
|
});
|
|
53636
53636
|
};
|
|
53637
53637
|
Qt();
|
|
@@ -53777,7 +53777,7 @@ function vhe() {
|
|
|
53777
53777
|
return Nt.sort(Le), Nt;
|
|
53778
53778
|
}, kt = Object.hasOwnProperty, Q = (Re, Le) => kt.call(Re, Le);
|
|
53779
53779
|
typeof window < "u" || Function("return this;")();
|
|
53780
|
-
const to = 9, Lt = 11, Kt = 1, Qt = 3,
|
|
53780
|
+
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) => {
|
|
53781
53781
|
if (O(Nt) || T(Nt) || F(Nt))
|
|
53782
53782
|
Re.setAttribute(Le, Nt + "");
|
|
53783
53783
|
else
|
|
@@ -54513,19 +54513,19 @@ function whe() {
|
|
|
54513
54513
|
}, Kt = (rt) => {
|
|
54514
54514
|
const sn = to(rt, -1);
|
|
54515
54515
|
De(sn) && Lt(rt, sn);
|
|
54516
|
-
}, Qt = Kt,
|
|
54516
|
+
}, Qt = Kt, be = (rt) => {
|
|
54517
54517
|
const sn = to(rt, 0);
|
|
54518
54518
|
De(sn) && Lt(rt, sn);
|
|
54519
|
-
},
|
|
54519
|
+
}, ot = (rt) => {
|
|
54520
54520
|
rt.on("keydown", (sn) => {
|
|
54521
|
-
sn.keyCode === 13 && !sn.isDefaultPrevented() &&
|
|
54521
|
+
sn.keyCode === 13 && !sn.isDefaultPrevented() && be(rt);
|
|
54522
54522
|
}), rt.on("keyup", (sn) => {
|
|
54523
54523
|
sn.keyCode === 32 ? Kt(rt) : (sn.keyCode === 48 && sn.shiftKey || sn.keyCode === 221) && Qt(rt);
|
|
54524
54524
|
});
|
|
54525
54525
|
};
|
|
54526
54526
|
var qt = () => {
|
|
54527
54527
|
u.add("autolink", (rt) => {
|
|
54528
|
-
c(rt),
|
|
54528
|
+
c(rt), ot(rt);
|
|
54529
54529
|
});
|
|
54530
54530
|
};
|
|
54531
54531
|
qt();
|
|
@@ -55868,7 +55868,7 @@ function xhe() {
|
|
|
55868
55868
|
insertChar: (ke) => {
|
|
55869
55869
|
i(Ne, ke);
|
|
55870
55870
|
}
|
|
55871
|
-
}),
|
|
55871
|
+
}), be = (Ne) => {
|
|
55872
55872
|
let ze = Ne;
|
|
55873
55873
|
return {
|
|
55874
55874
|
get: () => ze,
|
|
@@ -55876,7 +55876,7 @@ function xhe() {
|
|
|
55876
55876
|
ze = Fn;
|
|
55877
55877
|
}
|
|
55878
55878
|
};
|
|
55879
|
-
},
|
|
55879
|
+
}, ot = (Ne, ze) => {
|
|
55880
55880
|
let Ke = null;
|
|
55881
55881
|
const ke = () => {
|
|
55882
55882
|
P(Ke) || (clearTimeout(Ke), Ke = null);
|
|
@@ -55922,12 +55922,12 @@ function xhe() {
|
|
|
55922
55922
|
}), vo = () => ({
|
|
55923
55923
|
type: "tabpanel",
|
|
55924
55924
|
tabs: ke()
|
|
55925
|
-
}), yn = ze.length === 1 ?
|
|
55925
|
+
}), yn = ze.length === 1 ? be(dt) : be("All"), Ps = (ss, rs) => {
|
|
55926
55926
|
Xt(ze, (Rr) => Rr.name === yn.get()).each((Rr) => {
|
|
55927
55927
|
const Fs = Ue(Rr, rs);
|
|
55928
55928
|
ss.setData({ results: Fs });
|
|
55929
55929
|
});
|
|
55930
|
-
}, ur =
|
|
55930
|
+
}, ur = ot((ss) => {
|
|
55931
55931
|
const rs = ss.getData().pattern;
|
|
55932
55932
|
Ps(ss, rs);
|
|
55933
55933
|
}, 40), Ko = ze.length === 1 ? Fn() : vo(), Us = {
|
|
@@ -66365,8 +66365,8 @@ function tge(u) {
|
|
|
66365
66365
|
let { id: je, start: ye, end: Kn, size: dt } = w, kt = R, Q = P;
|
|
66366
66366
|
for (; dt < 0; )
|
|
66367
66367
|
if (w.next(), dt == -1) {
|
|
66368
|
-
let
|
|
66369
|
-
oe.push(
|
|
66368
|
+
let be = m[je];
|
|
66369
|
+
oe.push(be), At.push(ye - Xt);
|
|
66370
66370
|
return;
|
|
66371
66371
|
} else if (dt == -3) {
|
|
66372
66372
|
P = je;
|
|
@@ -66378,21 +66378,21 @@ function tge(u) {
|
|
|
66378
66378
|
throw new RangeError(`Unrecognized record size: ${dt}`);
|
|
66379
66379
|
let to = T[je], Lt, Kt, Qt = ye - Xt;
|
|
66380
66380
|
if (Kn - ye <= h && (Kt = xe(w.pos - at, rn))) {
|
|
66381
|
-
let
|
|
66382
|
-
for (; w.pos >
|
|
66383
|
-
qt = _e(Kt.start,
|
|
66384
|
-
Lt = new O2(
|
|
66381
|
+
let be = new Uint16Array(Kt.size - Kt.skip), ot = w.pos - Kt.size, qt = be.length;
|
|
66382
|
+
for (; w.pos > ot; )
|
|
66383
|
+
qt = _e(Kt.start, be, qt);
|
|
66384
|
+
Lt = new O2(be, Kn - Kt.start, c), Qt = Kt.start - Xt;
|
|
66385
66385
|
} else {
|
|
66386
|
-
let
|
|
66386
|
+
let be = w.pos - dt;
|
|
66387
66387
|
w.next();
|
|
66388
|
-
let
|
|
66389
|
-
for (; w.pos >
|
|
66390
|
-
rt >= 0 && w.id == rt && w.size >= 0 ? (w.end <= Ue - h && (me(
|
|
66391
|
-
if (rt >= 0 && sn > 0 && sn <
|
|
66388
|
+
let ot = [], qt = [], rt = je >= O ? je : -1, sn = 0, Ue = Kn;
|
|
66389
|
+
for (; w.pos > be; )
|
|
66390
|
+
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);
|
|
66391
|
+
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) {
|
|
66392
66392
|
let pt = Y(to, Q);
|
|
66393
|
-
Lt = $J(to,
|
|
66393
|
+
Lt = $J(to, ot, qt, 0, ot.length, 0, Kn - ye, pt, pt);
|
|
66394
66394
|
} else
|
|
66395
|
-
Lt = De(to,
|
|
66395
|
+
Lt = De(to, ot, qt, Kn - ye, kt - Kn, Q);
|
|
66396
66396
|
}
|
|
66397
66397
|
oe.push(Lt), At.push(Qt);
|
|
66398
66398
|
}
|