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