golden-logic-ui 1.0.445 → 1.0.446
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 +515 -515
- package/dist/golden-logic-ui.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -401,9 +401,9 @@ function DK(A, re, G, _e, ne, Z) {
|
|
|
401
401
|
})
|
|
402
402
|
}, mt(G.label_name), 3),
|
|
403
403
|
R("div", {
|
|
404
|
-
onDragover: re[3] || (re[3] = za((...
|
|
405
|
-
onDragleave: re[4] || (re[4] = za((...
|
|
406
|
-
onDrop: re[5] || (re[5] = za((...
|
|
404
|
+
onDragover: re[3] || (re[3] = za((...Q) => Z.onDragOver && Z.onDragOver(...Q), ["prevent"])),
|
|
405
|
+
onDragleave: re[4] || (re[4] = za((...Q) => Z.onDragLeave && Z.onDragLeave(...Q), ["prevent"])),
|
|
406
|
+
onDrop: re[5] || (re[5] = za((...Q) => Z.onDrop && Z.onDrop(...Q), ["prevent"])),
|
|
407
407
|
class: "flex flex-col items-center justify-center w-full h-40 mt-3 mb-3 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 dark:hover:bg-bray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600"
|
|
408
408
|
}, [
|
|
409
409
|
R("div", eK, [
|
|
@@ -412,60 +412,60 @@ function DK(A, re, G, _e, ne, Z) {
|
|
|
412
412
|
ref: "file_input" + G.field_name,
|
|
413
413
|
hidden: "",
|
|
414
414
|
multiple: G.has_multiple_file,
|
|
415
|
-
onChange: re[0] || (re[0] = (...
|
|
415
|
+
onChange: re[0] || (re[0] = (...Q) => Z.uploadFiles && Z.uploadFiles(...Q))
|
|
416
416
|
}, null, 40, tK),
|
|
417
417
|
Tr(R("input", {
|
|
418
418
|
type: "hidden",
|
|
419
419
|
name: G.field_name,
|
|
420
|
-
"onUpdate:modelValue": re[1] || (re[1] = (
|
|
420
|
+
"onUpdate:modelValue": re[1] || (re[1] = (Q) => Z.uploadFileListFinal = Q)
|
|
421
421
|
}, null, 8, nK), [
|
|
422
422
|
[_m, Z.uploadFileListFinal]
|
|
423
423
|
]),
|
|
424
424
|
ne.isDragging ? (ue(), fe("div", aK, cK)) : (ue(), fe("div", {
|
|
425
425
|
key: 0,
|
|
426
426
|
class: "flex flex-col items-center justify-center",
|
|
427
|
-
onClick: re[2] || (re[2] = (
|
|
427
|
+
onClick: re[2] || (re[2] = (Q) => A.$refs["file_input" + this.field_name].click())
|
|
428
428
|
}, rK))
|
|
429
429
|
])
|
|
430
430
|
], 32),
|
|
431
431
|
R("span", iK, mt(ne.error_message_data), 1),
|
|
432
432
|
R("small", uK, mt(G.description), 1),
|
|
433
433
|
ne.files.length > 0 ? (ue(), fe("section", dK, [
|
|
434
|
-
(ue(!0), fe(jn, null, Ks(ne.files, (
|
|
434
|
+
(ue(!0), fe(jn, null, Ks(ne.files, (Q, $e) => (ue(), fe("li", mK, [
|
|
435
435
|
fK,
|
|
436
436
|
R("div", gK, [
|
|
437
437
|
R("div", hK, [
|
|
438
|
-
R("span", pK, mt(Z.getFileName(
|
|
439
|
-
R("span", bK, mt(
|
|
438
|
+
R("span", pK, mt(Z.getFileName(Q.file_name)), 1),
|
|
439
|
+
R("span", bK, mt(Q.loading), 1)
|
|
440
440
|
]),
|
|
441
441
|
R("div", vK, [
|
|
442
442
|
R("div", {
|
|
443
443
|
class: "h-full bg-gray-500 rounded-full dark:bg-gray-400",
|
|
444
|
-
style: Mj({ width:
|
|
444
|
+
style: Mj({ width: Q.loading + "%" })
|
|
445
445
|
}, null, 4)
|
|
446
446
|
])
|
|
447
447
|
])
|
|
448
448
|
]))), 256))
|
|
449
449
|
])) : Ye("", !0),
|
|
450
450
|
R("section", yK, [
|
|
451
|
-
(ue(!0), fe(jn, null, Ks(Z.uploadFileListFinal, (
|
|
451
|
+
(ue(!0), fe(jn, null, Ks(Z.uploadFileListFinal, (Q, $e) => (ue(), fe("li", wK, [
|
|
452
452
|
R("div", xK, [
|
|
453
453
|
CK,
|
|
454
454
|
R("div", _K, [
|
|
455
|
-
R("span", SK, mt(Z.getFileName(
|
|
456
|
-
R("span", kK, mt(Z.formatFileSize(
|
|
455
|
+
R("span", SK, mt(Z.getFileName(Q.file_name)), 1),
|
|
456
|
+
R("span", kK, mt(Z.formatFileSize(Q.size)), 1)
|
|
457
457
|
])
|
|
458
458
|
]),
|
|
459
459
|
R("div", TK, [
|
|
460
460
|
R("a", {
|
|
461
|
-
href:
|
|
461
|
+
href: Q.url,
|
|
462
462
|
target: "_blank",
|
|
463
463
|
class: "text-lg text-blue-600 cursor-pointer dark:text-blue-400 fas fa-download"
|
|
464
464
|
}, null, 8, EK),
|
|
465
465
|
G.is_enable_delete ? (ue(), fe("i", {
|
|
466
466
|
key: 0,
|
|
467
467
|
onClick: (at) => {
|
|
468
|
-
ne.media_id =
|
|
468
|
+
ne.media_id = Q.id, ne.open_delete_modal = !0;
|
|
469
469
|
},
|
|
470
470
|
class: "text-lg text-red-600 cursor-pointer dark:text-red-400 fas fa-x"
|
|
471
471
|
}, null, 8, AK)) : Ye("", !0)
|
|
@@ -513,7 +513,7 @@ const yce = /* @__PURE__ */ zr(Qq, [["render", DK]]), OK = {
|
|
|
513
513
|
}, RK = { class: "grid w-full gap-1 mt-5 mb-5 md:gap-0 md:grid-cols-10 language-selector" }, $K = ["name", "value", "id", "checked"], MK = ["for"];
|
|
514
514
|
function PK(A, re, G, _e, ne, Z) {
|
|
515
515
|
return ue(), fe("ul", RK, [
|
|
516
|
-
(ue(!0), fe(jn, null, Ks(ne.locals, (xe,
|
|
516
|
+
(ue(!0), fe(jn, null, Ks(ne.locals, (xe, Q) => (ue(), fe("li", null, [
|
|
517
517
|
R("input", {
|
|
518
518
|
type: "radio",
|
|
519
519
|
name: G.trans_selector_name,
|
|
@@ -526,9 +526,9 @@ function PK(A, re, G, _e, ne, Z) {
|
|
|
526
526
|
R("label", {
|
|
527
527
|
for: xe + "_" + G.field_name,
|
|
528
528
|
class: Zt([{
|
|
529
|
-
"border md:!rounded-s-lg":
|
|
530
|
-
"border md:!rounded-e-lg":
|
|
531
|
-
"border-t border-b":
|
|
529
|
+
"border md:!rounded-s-lg": Q === 0,
|
|
530
|
+
"border md:!rounded-e-lg": Q === ne.locals.length - 1,
|
|
531
|
+
"border-t border-b": Q !== 0 && Q !== ne.locals.length - 1
|
|
532
532
|
}, "block w-full p-1 font-bold text-center text-gray-500 uppercase bg-white border-gray-200 rounded-lg cursor-pointer md:rounded-none dark:hover:text-gray-300 dark:border-gray-700 dark:peer-checked:text-blue-500 peer-checked:border-blue-600 peer-checked:text-blue-600 hover:text-gray-600 hover:bg-gray-100 dark:text-gray-400 dark:bg-gray-800 dark:hover:bg-gray-700"])
|
|
533
533
|
}, mt(xe), 11, MK)
|
|
534
534
|
]))), 256))
|
|
@@ -664,7 +664,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
664
664
|
},
|
|
665
665
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
666
666
|
setup(A, { emit: re }) {
|
|
667
|
-
const G = A, _e = re, ne = co(null), Z = co([]), xe = co([]),
|
|
667
|
+
const G = A, _e = re, ne = co(null), Z = co([]), xe = co([]), Q = co([]), $e = co(0), at = co(!1), yt = co(""), hn = co(""), Et = co(null), io = co(0), lo = co(0), eo = () => {
|
|
668
668
|
if (Et.value) {
|
|
669
669
|
io.value = Et.value.offsetWidth;
|
|
670
670
|
var Ht = Et.value.getBoundingClientRect();
|
|
@@ -726,7 +726,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
726
726
|
}
|
|
727
727
|
function ss(Ht) {
|
|
728
728
|
let _t = Z.value.findIndex((Pe) => Pe.id === Ht.id);
|
|
729
|
-
_t !== -1 && Z.value.splice(_t, 1),
|
|
729
|
+
_t !== -1 && Z.value.splice(_t, 1), Q.value = Z.value.map((Pe) => Pe.id), _e("update:modelValue", Q.value), _e("selected", Z.value), _e("selectionChanged", Z.value);
|
|
730
730
|
}
|
|
731
731
|
function In(Ht) {
|
|
732
732
|
Ht.target.id != G.field_name + "search" + hn.value && Ht.target.id != G.field_name && !Ht.target.classList.contains("showOptions") && (ot(), $e.value = 0, at.value = !1);
|
|
@@ -769,7 +769,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
769
769
|
}
|
|
770
770
|
function D(Ht) {
|
|
771
771
|
let _t = Z.value.findIndex((Pe) => Pe.id === Ht.id);
|
|
772
|
-
_t !== -1 ? Z.value.splice(_t, 1) : Z.value.push(Ht), at.value = !1,
|
|
772
|
+
_t !== -1 ? Z.value.splice(_t, 1) : Z.value.push(Ht), at.value = !1, Q.value = Z.value.map((Pe) => Pe.id), _e("update:modelValue", Q.value), _e("selected", Z.value), _e("selectionChanged", Z.value);
|
|
773
773
|
}
|
|
774
774
|
function go() {
|
|
775
775
|
if (!G.show) {
|
|
@@ -792,7 +792,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
792
792
|
return Ag(yt, () => {
|
|
793
793
|
Ls.value.length === 0 && (Z.value = []);
|
|
794
794
|
}), Ag(Z, (Ht) => {
|
|
795
|
-
kt(Z.value) && (
|
|
795
|
+
kt(Z.value) && (Q.value = Z.value.map((_t) => _t.id), _e("update:modelValue", Q.value));
|
|
796
796
|
}), Ag(
|
|
797
797
|
() => G.modelValue,
|
|
798
798
|
() => {
|
|
@@ -820,7 +820,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
820
820
|
key: 1,
|
|
821
821
|
class: Zt(A.field_name)
|
|
822
822
|
}, [
|
|
823
|
-
(ue(!0), fe(jn, null, Ks(
|
|
823
|
+
(ue(!0), fe(jn, null, Ks(Q.value, (Pe, no) => (ue(), fe("input", {
|
|
824
824
|
type: "hidden",
|
|
825
825
|
name: A.field_name + "[]",
|
|
826
826
|
key: no,
|
|
@@ -972,7 +972,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
972
972
|
},
|
|
973
973
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
974
974
|
setup(A, { expose: re, emit: G }) {
|
|
975
|
-
const _e = A, ne = G, Z = co(null), xe = co(null),
|
|
975
|
+
const _e = A, ne = G, Z = co(null), xe = co(null), Q = () => {
|
|
976
976
|
xe.value && ne("update:modelValueTranslate", xe.value.value);
|
|
977
977
|
};
|
|
978
978
|
return Dg(() => {
|
|
@@ -1019,7 +1019,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1019
1019
|
"data-i18n": "true",
|
|
1020
1020
|
name: A.field_name + "_i18n",
|
|
1021
1021
|
id: A.field_name + "_i18n",
|
|
1022
|
-
onChange:
|
|
1022
|
+
onChange: Q,
|
|
1023
1023
|
ref_key: "input_translate",
|
|
1024
1024
|
ref: xe
|
|
1025
1025
|
}, null, 40, lY),
|
|
@@ -1102,7 +1102,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1102
1102
|
},
|
|
1103
1103
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1104
1104
|
setup(A, { expose: re, emit: G }) {
|
|
1105
|
-
const _e = A, ne = G, Z = co(null), xe = co(null),
|
|
1105
|
+
const _e = A, ne = G, Z = co(null), xe = co(null), Q = () => {
|
|
1106
1106
|
xe.value && ne("update:modelValueTranslate", xe.value.value);
|
|
1107
1107
|
};
|
|
1108
1108
|
return Dg(() => {
|
|
@@ -1163,7 +1163,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1163
1163
|
"data-i18n": "true",
|
|
1164
1164
|
name: A.field_name + "_i18n",
|
|
1165
1165
|
id: A.field_name + "_i18n",
|
|
1166
|
-
onChange:
|
|
1166
|
+
onChange: Q,
|
|
1167
1167
|
ref_key: "input_translate",
|
|
1168
1168
|
ref: xe
|
|
1169
1169
|
}, null, 40, bY),
|
|
@@ -1237,7 +1237,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1237
1237
|
},
|
|
1238
1238
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1239
1239
|
setup(A, { expose: re, emit: G }) {
|
|
1240
|
-
const _e = A, ne = G, Z = co(null), xe = co(null),
|
|
1240
|
+
const _e = A, ne = G, Z = co(null), xe = co(null), Q = () => {
|
|
1241
1241
|
xe.value && ne("update:modelValueTranslate", xe.value.value);
|
|
1242
1242
|
};
|
|
1243
1243
|
return Dg(() => {
|
|
@@ -1284,7 +1284,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1284
1284
|
"data-i18n": "true",
|
|
1285
1285
|
name: A.field_name + "_i18n",
|
|
1286
1286
|
id: A.field_name + "_i18n",
|
|
1287
|
-
onChange:
|
|
1287
|
+
onChange: Q,
|
|
1288
1288
|
ref_key: "input_translate",
|
|
1289
1289
|
ref: xe
|
|
1290
1290
|
}, null, 40, EY),
|
|
@@ -1357,11 +1357,11 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1357
1357
|
get() {
|
|
1358
1358
|
return _e.modelValue;
|
|
1359
1359
|
},
|
|
1360
|
-
set(
|
|
1361
|
-
ne("update:modelValue",
|
|
1360
|
+
set(Q) {
|
|
1361
|
+
ne("update:modelValue", Q);
|
|
1362
1362
|
}
|
|
1363
1363
|
});
|
|
1364
|
-
return re({ focus: () => Z.value.focus() }), (
|
|
1364
|
+
return re({ focus: () => Z.value.focus() }), (Q, $e) => (ue(), fe(jn, null, [
|
|
1365
1365
|
A.show ? (ue(), fe("div", {
|
|
1366
1366
|
key: 0,
|
|
1367
1367
|
class: Zt(A.field_name)
|
|
@@ -1393,7 +1393,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1393
1393
|
}),
|
|
1394
1394
|
type: A.type,
|
|
1395
1395
|
"onUpdate:modelValue": $e[0] || ($e[0] = (at) => xe.value = at),
|
|
1396
|
-
onKeydown: $e[1] || ($e[1] = (at) =>
|
|
1396
|
+
onKeydown: $e[1] || ($e[1] = (at) => Q.$emit("keydown", at)),
|
|
1397
1397
|
ref_key: "input",
|
|
1398
1398
|
ref: Z,
|
|
1399
1399
|
placeholder: A.placeholder
|
|
@@ -1463,11 +1463,11 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1463
1463
|
get() {
|
|
1464
1464
|
return _e.modelValue;
|
|
1465
1465
|
},
|
|
1466
|
-
set(
|
|
1467
|
-
ne("update:modelValue",
|
|
1466
|
+
set(Q) {
|
|
1467
|
+
ne("update:modelValue", Q);
|
|
1468
1468
|
}
|
|
1469
1469
|
});
|
|
1470
|
-
return re({ focus: () => Z.value.focus() }), (
|
|
1470
|
+
return re({ focus: () => Z.value.focus() }), (Q, $e) => (ue(), fe(jn, null, [
|
|
1471
1471
|
A.show ? (ue(), fe("div", {
|
|
1472
1472
|
key: 0,
|
|
1473
1473
|
class: Zt(A.field_name)
|
|
@@ -1501,7 +1501,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1501
1501
|
}, "!border-e-0 !rounded-s-lg"]),
|
|
1502
1502
|
type: A.type,
|
|
1503
1503
|
"onUpdate:modelValue": $e[0] || ($e[0] = (at) => xe.value = at),
|
|
1504
|
-
onKeydown: $e[1] || ($e[1] = (at) =>
|
|
1504
|
+
onKeydown: $e[1] || ($e[1] = (at) => Q.$emit("keydown", at)),
|
|
1505
1505
|
ref_key: "input",
|
|
1506
1506
|
ref: Z,
|
|
1507
1507
|
placeholder: A.placeholder
|
|
@@ -1566,7 +1566,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1566
1566
|
set(at) {
|
|
1567
1567
|
Z.value.start = at, $e(Z.value.start, Z.value.end), _e("update:modelValue", { start: Z.value.start, end: Z.value.end }), _e("keydown", { start: Z.value.start, end: Z.value.end });
|
|
1568
1568
|
}
|
|
1569
|
-
}),
|
|
1569
|
+
}), Q = pu({
|
|
1570
1570
|
get() {
|
|
1571
1571
|
return G.modelValue.end;
|
|
1572
1572
|
},
|
|
@@ -1622,10 +1622,10 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1622
1622
|
"gl-input-form-invalid": A.error_message !== "" || ne.value !== ""
|
|
1623
1623
|
}),
|
|
1624
1624
|
type: "date",
|
|
1625
|
-
"onUpdate:modelValue": yt[1] || (yt[1] = (hn) =>
|
|
1625
|
+
"onUpdate:modelValue": yt[1] || (yt[1] = (hn) => Q.value = hn),
|
|
1626
1626
|
placeholder: A.placeholder
|
|
1627
1627
|
}, null, 10, nX), [
|
|
1628
|
-
[_m,
|
|
1628
|
+
[_m, Q.value]
|
|
1629
1629
|
])
|
|
1630
1630
|
]),
|
|
1631
1631
|
R("div", oX, [
|
|
@@ -1734,16 +1734,16 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1734
1734
|
oq("selectedTitle", Z);
|
|
1735
1735
|
const xe = ($e) => {
|
|
1736
1736
|
window.location.hash = encodeURIComponent($e), G("TabChange", $e);
|
|
1737
|
-
},
|
|
1737
|
+
}, Q = () => {
|
|
1738
1738
|
const $e = decodeURIComponent(window.location.hash.replace("#", "")), at = ne.value.find((yt) => yt.title === $e);
|
|
1739
1739
|
at && (Z.value = at.title);
|
|
1740
1740
|
};
|
|
1741
1741
|
return Ag(Z, ($e) => {
|
|
1742
1742
|
xe($e);
|
|
1743
1743
|
}), Dg(() => {
|
|
1744
|
-
|
|
1744
|
+
Q(), window.addEventListener("hashchange", Q);
|
|
1745
1745
|
}), Z7(() => {
|
|
1746
|
-
window.removeEventListener("hashchange",
|
|
1746
|
+
window.removeEventListener("hashchange", Q);
|
|
1747
1747
|
}), ($e, at) => (ue(), fe(jn, null, [
|
|
1748
1748
|
R("div", fX, [
|
|
1749
1749
|
R("div", gX, [
|
|
@@ -1851,9 +1851,9 @@ const Oce = /* @__PURE__ */ zr(wX, [["render", CX]]), _X = {
|
|
|
1851
1851
|
let A = this, re = document.getElementById("slider_" + this.Random_string);
|
|
1852
1852
|
const G = (ne) => {
|
|
1853
1853
|
re.style.cursor = "grabbing";
|
|
1854
|
-
const Z = (
|
|
1855
|
-
const $e =
|
|
1856
|
-
Math.abs(yt) > Math.abs(hn) ? (
|
|
1854
|
+
const Z = (Q) => {
|
|
1855
|
+
const $e = Q.clientX || Q.touches && Q.touches[0] && Q.touches[0].clientX, at = Q.clientY || Q.touches && Q.touches[0] && Q.touches[0].clientY, yt = $e - A.initialX, hn = at - A.initialY;
|
|
1856
|
+
Math.abs(yt) > Math.abs(hn) ? (Q.preventDefault(), Math.abs(yt) >= 70 && (yt < 0 ? A.next() : A.prev(), A.initialX = $e)) : re.style.cursor = "grab", Math.abs(hn) > Math.abs(yt) && (re.style.cursor = "grab");
|
|
1857
1857
|
}, xe = () => {
|
|
1858
1858
|
document.removeEventListener("mousemove", Z), document.removeEventListener("touchmove", Z), document.removeEventListener("mouseup", xe), document.removeEventListener("touchend", xe), re.style.cursor = "grab";
|
|
1859
1859
|
};
|
|
@@ -1870,17 +1870,17 @@ const Oce = /* @__PURE__ */ zr(wX, [["render", CX]]), _X = {
|
|
|
1870
1870
|
this.currentDot > 1 && (this.currentDot--, this.setDot(this.currentDot));
|
|
1871
1871
|
},
|
|
1872
1872
|
initSlider() {
|
|
1873
|
-
let A = document.getElementById("sliderContainer_" + this.Random_string), re = document.getElementById("mainSliderContainer_" + this.Random_string), G = document.getElementById("slider_" + this.Random_string), _e = G.querySelectorAll("li"), ne = Array.from(_e).filter((
|
|
1873
|
+
let A = document.getElementById("sliderContainer_" + this.Random_string), re = document.getElementById("mainSliderContainer_" + this.Random_string), G = document.getElementById("slider_" + this.Random_string), _e = G.querySelectorAll("li"), ne = Array.from(_e).filter((Q) => Q.parentNode === G), Z = A.clientWidth, xe = Z / this.elementsToShow;
|
|
1874
1874
|
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, xe = this.hide_arrow ? re.clientWidth : Z) : document.body.clientWidth < 1500 && (this.elementsToShow = 2) : (this.elementsToShow = 1, xe = this.hide_arrow ? re.clientWidth : Z), ne.length > 1) {
|
|
1875
1875
|
this.dotsNum = this.elementsToShow == 1 ? ne.length : ne.length - this.elementsToShow + 1;
|
|
1876
|
-
let
|
|
1876
|
+
let Q = this.elementsToShow == 1 ? xe * ne.length / this.dotsNum : xe * (ne.length - this.elementsToShow) / (this.dotsNum - 1);
|
|
1877
1877
|
this.dotsNavigation = [];
|
|
1878
1878
|
for (let $e = 0; $e < this.dotsNum; $e++)
|
|
1879
|
-
this.dotsNavigation.push(
|
|
1879
|
+
this.dotsNavigation.push(Q * $e);
|
|
1880
1880
|
}
|
|
1881
1881
|
G.style.width = ne.length * xe + "px", G.style.transition = "margin", G.style.transitionDuration = "1s";
|
|
1882
|
-
for (let
|
|
1883
|
-
const $e = ne[
|
|
1882
|
+
for (let Q = 0; Q < ne.length; Q++) {
|
|
1883
|
+
const $e = ne[Q];
|
|
1884
1884
|
$e.style.width = xe + "px";
|
|
1885
1885
|
}
|
|
1886
1886
|
},
|
|
@@ -2137,7 +2137,7 @@ function EJ(A, re, G, _e, ne, Z) {
|
|
|
2137
2137
|
role: "button",
|
|
2138
2138
|
class: Zt(["gl-dot", { active: A.currentDot == xe }]),
|
|
2139
2139
|
key: xe,
|
|
2140
|
-
onClick: (
|
|
2140
|
+
onClick: (Q) => Z.setDot(xe)
|
|
2141
2141
|
}, XX, 10, KX))), 128))
|
|
2142
2142
|
], 2)) : Ye("", !0),
|
|
2143
2143
|
G.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (ue(), fe("div", JX, [
|
|
@@ -2148,7 +2148,7 @@ function EJ(A, re, G, _e, ne, Z) {
|
|
|
2148
2148
|
role: "button",
|
|
2149
2149
|
class: Zt(["gl-dot", { active: A.currentDot == xe }]),
|
|
2150
2150
|
key: xe,
|
|
2151
|
-
onClick: (
|
|
2151
|
+
onClick: (Q) => Z.setDot(xe)
|
|
2152
2152
|
}, tJ, 10, QX))), 128))
|
|
2153
2153
|
], 2),
|
|
2154
2154
|
A.dotsNum > 0 ? (ue(), fe("div", nJ, [
|
|
@@ -2253,9 +2253,9 @@ const Rce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-37dd4e
|
|
|
2253
2253
|
let A = this, re = document.getElementById("slider_" + this.Random_string);
|
|
2254
2254
|
const G = (ne) => {
|
|
2255
2255
|
re.style.cursor = "grabbing";
|
|
2256
|
-
const Z = (
|
|
2257
|
-
const $e =
|
|
2258
|
-
Math.abs(yt) > Math.abs(hn) ? (
|
|
2256
|
+
const Z = (Q) => {
|
|
2257
|
+
const $e = Q.clientX || Q.touches && Q.touches[0] && Q.touches[0].clientX, at = Q.clientY || Q.touches && Q.touches[0] && Q.touches[0].clientY, yt = $e - A.initialX, hn = at - A.initialY;
|
|
2258
|
+
Math.abs(yt) > Math.abs(hn) ? (Q.preventDefault(), Math.abs(yt) >= 70 && (yt < 0 ? A.next() : A.prev(), A.initialX = $e)) : re.style.cursor = "grab", Math.abs(hn) > Math.abs(yt) && (re.style.cursor = "grab");
|
|
2259
2259
|
}, xe = () => {
|
|
2260
2260
|
document.removeEventListener("mousemove", Z), document.removeEventListener("touchmove", Z), document.removeEventListener("mouseup", xe), document.removeEventListener("touchend", xe), re.style.cursor = "grab";
|
|
2261
2261
|
};
|
|
@@ -2274,8 +2274,8 @@ const Rce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-37dd4e
|
|
|
2274
2274
|
initSlider() {
|
|
2275
2275
|
let A = document.getElementById("sliderContainer_" + this.Random_string), re = document.getElementById("mainSliderContainer_" + this.Random_string), G = document.getElementById("slider_" + this.Random_string), _e = G.querySelectorAll("li"), ne = Array.from(_e).filter(($e) => $e.parentNode === G), xe = ne[0].clientWidth + 28;
|
|
2276
2276
|
console.log("cardwidth", xe);
|
|
2277
|
-
let
|
|
2278
|
-
if (this.elementsToShow = Math.floor(this.hide_arrow ? re.clientWidth / xe :
|
|
2277
|
+
let Q = A.clientWidth;
|
|
2278
|
+
if (console.log("sliderContainerWidth ", Q), this.elementsToShow = Math.floor(this.hide_arrow ? re.clientWidth / xe : Q / xe), console.log("elementsToShow", this.elementsToShow), this.elementsToShow = this.elementsToShow > 1 ? this.elementsToShow - 1 : this.elementsToShow, console.log("elementsToShow new", this.elementsToShow), ne.length > 1) {
|
|
2279
2279
|
this.dotsNum = Math.ceil(ne.length / this.elementsToShow), console.log("dotsNum", this.dotsNum);
|
|
2280
2280
|
let $e = this.elementsToShow * xe;
|
|
2281
2281
|
console.log("navigation_no_between_slides", $e), this.dotsNavigation = [];
|
|
@@ -2292,7 +2292,7 @@ const Rce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-37dd4e
|
|
|
2292
2292
|
this.direction_property == "rtl" ? re.style.marginRight = -this.dotsNavigation[A - 1] + "px" : re.style.marginLeft = -this.dotsNavigation[A - 1] + "px", this.currentDot = A;
|
|
2293
2293
|
}
|
|
2294
2294
|
}
|
|
2295
|
-
}, km = (A) => (rq("data-v-
|
|
2295
|
+
}, km = (A) => (rq("data-v-b076e098"), A = A(), aq(), A), DJ = ["id"], OJ = {
|
|
2296
2296
|
key: 0,
|
|
2297
2297
|
class: "items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"
|
|
2298
2298
|
}, RJ = { class: "w-full" }, $J = {
|
|
@@ -2540,7 +2540,7 @@ function $Q(A, re, G, _e, ne, Z) {
|
|
|
2540
2540
|
role: "button",
|
|
2541
2541
|
class: Zt(["gl-dot", { active: A.currentDot == xe }]),
|
|
2542
2542
|
key: xe,
|
|
2543
|
-
onClick: (
|
|
2543
|
+
onClick: (Q) => Z.setDot(xe)
|
|
2544
2544
|
}, nQ, 10, eQ))), 128))
|
|
2545
2545
|
], 2)) : Ye("", !0),
|
|
2546
2546
|
G.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (ue(), fe("div", oQ, [
|
|
@@ -2551,7 +2551,7 @@ function $Q(A, re, G, _e, ne, Z) {
|
|
|
2551
2551
|
role: "button",
|
|
2552
2552
|
class: Zt(["gl-dot", { active: A.currentDot == xe }]),
|
|
2553
2553
|
key: xe,
|
|
2554
|
-
onClick: (
|
|
2554
|
+
onClick: (Q) => Z.setDot(xe)
|
|
2555
2555
|
}, aQ, 10, sQ))), 128))
|
|
2556
2556
|
], 2),
|
|
2557
2557
|
A.dotsNum > 0 ? (ue(), fe("div", lQ, [
|
|
@@ -2594,7 +2594,7 @@ function $Q(A, re, G, _e, ne, Z) {
|
|
|
2594
2594
|
], 10, DJ)
|
|
2595
2595
|
]);
|
|
2596
2596
|
}
|
|
2597
|
-
const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-
|
|
2597
|
+
const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-b076e098"]]), MQ = { class: "pointer-events-auto relative flex max-h-[100%] w-full flex-col overflow-hidden text-current shadow-4 outline-none bg-white border rounded-lg border-stroke dark:border-strokedark dark:bg-boxdark" }, PQ = { class: "flex items-center justify-between flex-shrink-0 pt-10 pb-3 pl-3 pr-3 border-b-2 dark:border-gray-600" }, BQ = { class: "text-xl font-medium leading-normal text-surface dark:text-white" }, NQ = /* @__PURE__ */ R("span", { class: "[&>svg]:h-6 [&>svg]:w-6" }, [
|
|
2598
2598
|
/* @__PURE__ */ R("svg", {
|
|
2599
2599
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2600
2600
|
fill: "currentColor",
|
|
@@ -2655,11 +2655,11 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-8b9d01
|
|
|
2655
2655
|
};
|
|
2656
2656
|
return Ag(
|
|
2657
2657
|
() => G.is_open,
|
|
2658
|
-
(
|
|
2659
|
-
|
|
2658
|
+
(Q, $e) => {
|
|
2659
|
+
Q ? ne() : Z();
|
|
2660
2660
|
},
|
|
2661
2661
|
{ immediate: !0, deep: !0 }
|
|
2662
|
-
), (
|
|
2662
|
+
), (Q, $e) => A.is_open ? (ue(), fe("div", {
|
|
2663
2663
|
key: 0,
|
|
2664
2664
|
class: Zt(["fixed left-0 top-13 h-full w-full overflow-y-auto overflow-x-hidden outline-none inset-0 bg-black !bg-opacity-80", A.has_large_z_index ? "z-[9999]" : "z-[1055]"]),
|
|
2665
2665
|
tabindex: "-1",
|
|
@@ -2682,12 +2682,12 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-8b9d01
|
|
|
2682
2682
|
Tr(R("div", {
|
|
2683
2683
|
class: Zt(["relative overflow-y-auto", A.bodyClass])
|
|
2684
2684
|
}, [
|
|
2685
|
-
ju(
|
|
2685
|
+
ju(Q.$slots, "body")
|
|
2686
2686
|
], 2), [
|
|
2687
2687
|
[Ih, !A.is_loading]
|
|
2688
2688
|
]),
|
|
2689
2689
|
Tr(R("div", VQ, [
|
|
2690
|
-
ju(
|
|
2690
|
+
ju(Q.$slots, "buttons"),
|
|
2691
2691
|
R("button", {
|
|
2692
2692
|
onClick: xe,
|
|
2693
2693
|
type: "button",
|
|
@@ -2761,11 +2761,11 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-8b9d01
|
|
|
2761
2761
|
};
|
|
2762
2762
|
return Ag(
|
|
2763
2763
|
() => G.is_open,
|
|
2764
|
-
(
|
|
2765
|
-
|
|
2764
|
+
(Q, $e) => {
|
|
2765
|
+
Q ? ne() : Z();
|
|
2766
2766
|
},
|
|
2767
2767
|
{ immediate: !0, deep: !0 }
|
|
2768
|
-
), (
|
|
2768
|
+
), (Q, $e) => Tr((ue(), fe("div", {
|
|
2769
2769
|
class: Zt(["fixed left-0 top-13 h-full w-full overflow-y-auto overflow-x-hidden outline-none inset-0 bg-black !bg-opacity-80", A.has_large_z_index ? "z-[9999]" : "z-[1055]"]),
|
|
2770
2770
|
tabindex: "-1",
|
|
2771
2771
|
"aria-hidden": "true"
|
|
@@ -2787,12 +2787,12 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-8b9d01
|
|
|
2787
2787
|
Tr(R("div", {
|
|
2788
2788
|
class: Zt(["relative overflow-y-auto", A.bodyClass])
|
|
2789
2789
|
}, [
|
|
2790
|
-
ju(
|
|
2790
|
+
ju(Q.$slots, "body")
|
|
2791
2791
|
], 2), [
|
|
2792
2792
|
[Ih, !A.is_loading]
|
|
2793
2793
|
]),
|
|
2794
2794
|
Tr(R("div", YQ, [
|
|
2795
|
-
ju(
|
|
2795
|
+
ju(Q.$slots, "buttons"),
|
|
2796
2796
|
R("button", {
|
|
2797
2797
|
onClick: xe,
|
|
2798
2798
|
type: "button",
|
|
@@ -2864,7 +2864,7 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-8b9d01
|
|
|
2864
2864
|
_e("update:modelValue", xe);
|
|
2865
2865
|
}
|
|
2866
2866
|
});
|
|
2867
|
-
return (xe,
|
|
2867
|
+
return (xe, Q) => (ue(), fe(jn, null, [
|
|
2868
2868
|
A.show ? (ue(), fe("div", {
|
|
2869
2869
|
key: 0,
|
|
2870
2870
|
class: Zt(A.field_name)
|
|
@@ -2910,7 +2910,7 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-8b9d01
|
|
|
2910
2910
|
"false-value": 0,
|
|
2911
2911
|
ref_key: "input",
|
|
2912
2912
|
ref: ne,
|
|
2913
|
-
"onUpdate:modelValue":
|
|
2913
|
+
"onUpdate:modelValue": Q[0] || (Q[0] = ($e) => Z.value = $e)
|
|
2914
2914
|
}, null, 8, aee), [
|
|
2915
2915
|
[lq, Z.value]
|
|
2916
2916
|
]),
|
|
@@ -2975,7 +2975,7 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-8b9d01
|
|
|
2975
2975
|
_e("update:modelValue", xe);
|
|
2976
2976
|
}
|
|
2977
2977
|
});
|
|
2978
|
-
return (xe,
|
|
2978
|
+
return (xe, Q) => (ue(), fe(jn, null, [
|
|
2979
2979
|
A.show ? (ue(), fe("div", {
|
|
2980
2980
|
key: 0,
|
|
2981
2981
|
class: Zt(A.field_name)
|
|
@@ -3017,7 +3017,7 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-8b9d01
|
|
|
3017
3017
|
id: A.field_name,
|
|
3018
3018
|
ref_key: "input",
|
|
3019
3019
|
ref: ne,
|
|
3020
|
-
"onUpdate:modelValue":
|
|
3020
|
+
"onUpdate:modelValue": Q[0] || (Q[0] = ($e) => Z.value = $e)
|
|
3021
3021
|
}, null, 8, yee), [
|
|
3022
3022
|
[lq, Z.value]
|
|
3023
3023
|
]),
|
|
@@ -3144,7 +3144,7 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-8b9d01
|
|
|
3144
3144
|
setup(A, { emit: re }) {
|
|
3145
3145
|
const G = A, _e = re;
|
|
3146
3146
|
co(null);
|
|
3147
|
-
const ne = co({}), Z = co([]), xe = co(0),
|
|
3147
|
+
const ne = co({}), Z = co([]), xe = co(0), Q = co(!1), $e = co(""), at = co(""), yt = co(null), hn = co(0), Et = co(0), io = () => {
|
|
3148
3148
|
if (yt.value) {
|
|
3149
3149
|
hn.value = yt.value.offsetWidth;
|
|
3150
3150
|
var Xt = yt.value.getBoundingClientRect();
|
|
@@ -3193,7 +3193,7 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-8b9d01
|
|
|
3193
3193
|
return Xt !== null && typeof Xt == "object" && Object.keys(Xt).length > 0;
|
|
3194
3194
|
}
|
|
3195
3195
|
function he(Xt) {
|
|
3196
|
-
Xt.target.id != G.field_name + "search" + at.value && Xt.target.id != G.field_name && !Xt.target.classList.contains("showOptions") && (pe(), xe.value = 0,
|
|
3196
|
+
Xt.target.id != G.field_name + "search" + at.value && Xt.target.id != G.field_name && !Xt.target.classList.contains("showOptions") && (pe(), xe.value = 0, Q.value = !1);
|
|
3197
3197
|
}
|
|
3198
3198
|
function kt(Xt) {
|
|
3199
3199
|
const Cn = `${Xt}${at.value}`, Nt = document.getElementById(Cn);
|
|
@@ -3224,15 +3224,15 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-8b9d01
|
|
|
3224
3224
|
) || {};
|
|
3225
3225
|
}
|
|
3226
3226
|
function ss(Xt) {
|
|
3227
|
-
ne.value = Xt,
|
|
3227
|
+
ne.value = Xt, Q.value = !1, _e("update:modelValue", ne.value.id), _e("selected", ne.value), _e("selectionChanged", ne.value);
|
|
3228
3228
|
}
|
|
3229
3229
|
function In() {
|
|
3230
3230
|
if (!G.show) {
|
|
3231
|
-
if (
|
|
3232
|
-
|
|
3231
|
+
if (Q.value) {
|
|
3232
|
+
Q.value = !1;
|
|
3233
3233
|
return;
|
|
3234
3234
|
}
|
|
3235
|
-
$e.value = "",
|
|
3235
|
+
$e.value = "", Q.value = !0, Pj(() => {
|
|
3236
3236
|
io();
|
|
3237
3237
|
var Xt = document.getElementById(
|
|
3238
3238
|
`${G.field_name}search${at.value}`
|
|
@@ -3321,7 +3321,7 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-8b9d01
|
|
|
3321
3321
|
]),
|
|
3322
3322
|
R("i", {
|
|
3323
3323
|
onClick: Cn[2] || (Cn[2] = (ot) => In()),
|
|
3324
|
-
class: Zt([
|
|
3324
|
+
class: Zt([Q.value ? "fa-angle-up" : "fa-angle-down", "absolute text-xl text-gray-500 cursor-pointer fas ltr:right-2 rtl:left-2 hover:text-gray-700 dark:hover:text-gray-800 showOptions"]),
|
|
3325
3325
|
style: { top: "11px" }
|
|
3326
3326
|
}, null, 2),
|
|
3327
3327
|
Tr(R("div", {
|
|
@@ -3372,7 +3372,7 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-8b9d01
|
|
|
3372
3372
|
}), 128))
|
|
3373
3373
|
])
|
|
3374
3374
|
], 4), [
|
|
3375
|
-
[Ih,
|
|
3375
|
+
[Ih, Q.value]
|
|
3376
3376
|
])
|
|
3377
3377
|
])
|
|
3378
3378
|
], 512)
|
|
@@ -3437,11 +3437,11 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-8b9d01
|
|
|
3437
3437
|
get() {
|
|
3438
3438
|
return _e.modelValue;
|
|
3439
3439
|
},
|
|
3440
|
-
set(
|
|
3441
|
-
ne("update:modelValue",
|
|
3440
|
+
set(Q) {
|
|
3441
|
+
ne("update:modelValue", Q);
|
|
3442
3442
|
}
|
|
3443
3443
|
});
|
|
3444
|
-
return re({ focus: () => Z.value.focus() }), (
|
|
3444
|
+
return re({ focus: () => Z.value.focus() }), (Q, $e) => (ue(), fe(jn, null, [
|
|
3445
3445
|
A.show ? (ue(), fe("div", {
|
|
3446
3446
|
key: 0,
|
|
3447
3447
|
class: Zt(A.field_name)
|
|
@@ -3475,7 +3475,7 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-8b9d01
|
|
|
3475
3475
|
}),
|
|
3476
3476
|
type: A.type,
|
|
3477
3477
|
"onUpdate:modelValue": $e[0] || ($e[0] = (at) => xe.value = at),
|
|
3478
|
-
onKeydown: $e[1] || ($e[1] = (at) =>
|
|
3478
|
+
onKeydown: $e[1] || ($e[1] = (at) => Q.$emit("keydown", at)),
|
|
3479
3479
|
ref_key: "input",
|
|
3480
3480
|
ref: Z,
|
|
3481
3481
|
rows: "4",
|
|
@@ -3523,7 +3523,7 @@ var cq = { exports: {} };
|
|
|
3523
3523
|
return { eq: e };
|
|
3524
3524
|
}, xe = Z(function(e, n) {
|
|
3525
3525
|
return e === n;
|
|
3526
|
-
}),
|
|
3526
|
+
}), Q = xe, $e = function(e) {
|
|
3527
3527
|
return Z(function(n, o) {
|
|
3528
3528
|
if (n.length !== o.length)
|
|
3529
3529
|
return !1;
|
|
@@ -3539,7 +3539,7 @@ var cq = { exports: {} };
|
|
|
3539
3539
|
}, yt = function(e) {
|
|
3540
3540
|
return Z(function(n, o) {
|
|
3541
3541
|
var r = Object.keys(n), l = Object.keys(o);
|
|
3542
|
-
if (!at(
|
|
3542
|
+
if (!at(Q).eq(r, l))
|
|
3543
3543
|
return !1;
|
|
3544
3544
|
for (var u = r.length, f = 0; f < u; f++) {
|
|
3545
3545
|
var b = r[f];
|
|
@@ -4920,7 +4920,7 @@ var cq = { exports: {} };
|
|
|
4920
4920
|
type: "text/css",
|
|
4921
4921
|
id: Se.id
|
|
4922
4922
|
}), Be.dom.innerHTML = ke, y(Be);
|
|
4923
|
-
},
|
|
4923
|
+
}, ee = (we) => Promise.allSettled(Ke(we, (Se) => B(Se).then(ot(Se)))).then((Se) => {
|
|
4924
4924
|
const Be = qo(Se, (rt) => rt.status === "fulfilled");
|
|
4925
4925
|
return Be.fail.length > 0 ? Promise.reject(Ke(Be.fail, (rt) => rt.reason)) : Ke(Be.pass, (rt) => rt.value);
|
|
4926
4926
|
}), oe = (we) => {
|
|
@@ -4932,7 +4932,7 @@ var cq = { exports: {} };
|
|
|
4932
4932
|
return {
|
|
4933
4933
|
load: B,
|
|
4934
4934
|
loadRawCss: F,
|
|
4935
|
-
loadAll:
|
|
4935
|
+
loadAll: ee,
|
|
4936
4936
|
unload: oe,
|
|
4937
4937
|
unloadRawCss: (we) => {
|
|
4938
4938
|
Xo(r, we).each((ke) => {
|
|
@@ -5090,20 +5090,20 @@ var cq = { exports: {} };
|
|
|
5090
5090
|
};
|
|
5091
5091
|
}, f = (y, k = "", P = "") => {
|
|
5092
5092
|
const B = ml(P), F = ml(y);
|
|
5093
|
-
let
|
|
5093
|
+
let ee = F.length;
|
|
5094
5094
|
const oe = ml([
|
|
5095
5095
|
n,
|
|
5096
5096
|
k
|
|
5097
5097
|
].join(" "));
|
|
5098
|
-
for (;
|
|
5099
|
-
u(F[
|
|
5098
|
+
for (; ee--; )
|
|
5099
|
+
u(F[ee], oe.slice(), B);
|
|
5100
5100
|
}, b = (y, k) => {
|
|
5101
5101
|
const P = ml(y), B = ml(k);
|
|
5102
5102
|
let F = P.length;
|
|
5103
5103
|
for (; F--; ) {
|
|
5104
|
-
const
|
|
5104
|
+
const ee = l[P[F]];
|
|
5105
5105
|
for (let oe = 0, K = B.length; oe < K; oe++)
|
|
5106
|
-
|
|
5106
|
+
ee.attributes[B[oe]] = {}, ee.attributesOrder.push(B[oe]);
|
|
5107
5107
|
}
|
|
5108
5108
|
};
|
|
5109
5109
|
return e !== "html5-strict" && (Te(ml("acronym applet basefont big font strike tt"), (P) => {
|
|
@@ -5182,8 +5182,8 @@ var cq = { exports: {} };
|
|
|
5182
5182
|
name: P,
|
|
5183
5183
|
value: F
|
|
5184
5184
|
}), y.forcedValue = F) : B === "<" && (y.validValues = ct.makeMap(F, "?"))), r.test(P)) {
|
|
5185
|
-
const
|
|
5186
|
-
n.attributePatterns = n.attributePatterns || [],
|
|
5185
|
+
const ee = y;
|
|
5186
|
+
n.attributePatterns = n.attributePatterns || [], ee.pattern = Gt(P), n.attributePatterns.push(ee);
|
|
5187
5187
|
} else
|
|
5188
5188
|
l[P] || u.push(P), l[P] = y;
|
|
5189
5189
|
}
|
|
@@ -5242,7 +5242,7 @@ var cq = { exports: {} };
|
|
|
5242
5242
|
}
|
|
5243
5243
|
}, y = (n = e.schema) !== null && n !== void 0 ? n : "html5", k = N4(y);
|
|
5244
5244
|
e.verify_html === !1 && (e.valid_elements = "*[*]");
|
|
5245
|
-
const P = op(e.valid_styles), B = op(e.invalid_styles, "map"), F = op(e.valid_classes, "map"),
|
|
5245
|
+
const P = op(e.valid_styles), B = op(e.invalid_styles, "map"), F = op(e.valid_classes, "map"), ee = b("whitespace_elements", "pre script noscript style textarea video audio iframe object code"), oe = b("self_closing_elements", "colgroup dd dt li option p td tfoot th thead tr"), K = b("void_elements", "area base basefont br col frame hr img input isindex link meta param embed source wbr track"), se = b("boolean_attributes", "checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"), we = "td th iframe video audio object script code", ke = b("non_empty_elements", we + " pre svg", K), Se = b("move_caret_before_on_enter_elements", we + " table", K), Be = "h1 h2 h3 h4 h5 h6", rt = b("text_block_elements", Be + " p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"), wt = b("block_elements", "hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary html body multicol listing", rt), Ft = b("text_inline_elements", "span strong b em i font s strike u var cite dfn code mark q sup sub samp"), We = b("transparent_elements", "a ins del canvas map"), Ve = b("wrap_block_elements", "pre " + Be);
|
|
5246
5246
|
ud("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "), (Ln) => {
|
|
5247
5247
|
f[Ln] = new RegExp("</" + Ln + "[^>]*>", "gi");
|
|
5248
5248
|
});
|
|
@@ -5323,7 +5323,7 @@ var cq = { exports: {} };
|
|
|
5323
5323
|
}), e.invalid_elements && ud(iu(e.invalid_elements), (Ln) => {
|
|
5324
5324
|
o[Ln] && delete o[Ln];
|
|
5325
5325
|
}), qn("span") || st("span[!data-mce-type|*]");
|
|
5326
|
-
const gs = ot(P), Rs = ot(B), Hr = ot(F), Ml = ot(se), us = ot(wt), Tt = ot(rt), on = ot(Ft), Kn = ot(Object.seal(K)), mo = ot(oe), Qt = ot(ke), $n = ot(Se), Ct = ot(
|
|
5326
|
+
const gs = ot(P), Rs = ot(B), Hr = ot(F), Ml = ot(se), us = ot(wt), Tt = ot(rt), on = ot(Ft), Kn = ot(Object.seal(K)), mo = ot(oe), Qt = ot(ke), $n = ot(Se), Ct = ot(ee), Mn = ot(We), Oo = ot(Ve), Ss = ot(Object.seal(f)), hs = (Ln, Io) => {
|
|
5327
5327
|
const $s = r[Ln.toLowerCase()];
|
|
5328
5328
|
return !!($s && $s[Io.toLowerCase()]);
|
|
5329
5329
|
}, Ha = (Ln, Io) => {
|
|
@@ -5406,7 +5406,7 @@ var cq = { exports: {} };
|
|
|
5406
5406
|
const P = {
|
|
5407
5407
|
parse: (B) => {
|
|
5408
5408
|
const F = {};
|
|
5409
|
-
let
|
|
5409
|
+
let ee = !1;
|
|
5410
5410
|
const oe = e.url_converter, K = e.url_converter_scope || P, se = (We, Ve, st) => {
|
|
5411
5411
|
const Kt = F[We + "-top" + Ve];
|
|
5412
5412
|
if (!Kt)
|
|
@@ -5442,7 +5442,7 @@ var cq = { exports: {} };
|
|
|
5442
5442
|
return F[We] = st[0], !0;
|
|
5443
5443
|
}, ke = (We, Ve, st, Kt) => {
|
|
5444
5444
|
we(Ve) && we(st) && we(Kt) && (F[We] = F[Ve] + " " + F[st] + " " + F[Kt], delete F[Ve], delete F[st], delete F[Kt]);
|
|
5445
|
-
}, Se = (We) => (
|
|
5445
|
+
}, Se = (We) => (ee = !0, u[We]), Be = (We, Ve) => (ee && (We = We.replace(/\uFEFF[0-9]/g, (st) => u[st])), Ve || (We = We.replace(/\\([\'\";:])/g, "$1")), We), rt = (We) => String.fromCharCode(parseInt(We.slice(1), 16)), wt = (We) => We.replace(/\\[0-9a-f]+/gi, rt), Ft = (We, Ve, st, Kt, cn, Jn) => {
|
|
5446
5446
|
if (cn = cn || Jn, cn)
|
|
5447
5447
|
return cn = Be(cn), "'" + cn.replace(/\'/g, "\\'") + "'";
|
|
5448
5448
|
if (Ve = Be(Ve || st || Kt || ""), !e.allow_script_urls) {
|
|
@@ -5463,7 +5463,7 @@ var cq = { exports: {} };
|
|
|
5463
5463
|
continue;
|
|
5464
5464
|
Ve === "font-weight" && st === "700" ? st = "bold" : (Ve === "color" || Ve === "background-color") && (st = st.toLowerCase()), he(e.force_hex_color) && e.force_hex_color !== "off" && jy(st).each((Kt) => {
|
|
5465
5465
|
(e.force_hex_color === "always" || Kt.alpha === 1) && (st = rp(ei(Kt)));
|
|
5466
|
-
}), st = st.replace(o, Ft), F[Ve] =
|
|
5466
|
+
}), st = st.replace(o, Ft), F[Ve] = ee ? Be(st, !0) : st;
|
|
5467
5467
|
}
|
|
5468
5468
|
}
|
|
5469
5469
|
se("border", "", !0), se("border", "-width"), se("border", "-color"), se("border", "-style"), se("padding", ""), se("margin", ""), ke("border", "border-width", "border-style", "border-color"), F.border === "medium none" && delete F.border, F["border-image"] === "none" && delete F["border-image"];
|
|
@@ -5471,13 +5471,13 @@ var cq = { exports: {} };
|
|
|
5471
5471
|
return F;
|
|
5472
5472
|
},
|
|
5473
5473
|
serialize: (B, F) => {
|
|
5474
|
-
let
|
|
5474
|
+
let ee = "";
|
|
5475
5475
|
const oe = (se, we) => {
|
|
5476
5476
|
const ke = we[se];
|
|
5477
5477
|
if (ke)
|
|
5478
5478
|
for (let Se = 0, Be = ke.length; Se < Be; Se++) {
|
|
5479
5479
|
const rt = ke[Se], wt = B[rt];
|
|
5480
|
-
wt && (
|
|
5480
|
+
wt && (ee += (ee.length > 0 ? " " : "") + rt + ": " + wt + ";");
|
|
5481
5481
|
}
|
|
5482
5482
|
}, K = (se, we) => {
|
|
5483
5483
|
if (!b || !we)
|
|
@@ -5486,8 +5486,8 @@ var cq = { exports: {} };
|
|
|
5486
5486
|
return ke && ke[se] ? !1 : (ke = b[we], !(ke && ke[se]));
|
|
5487
5487
|
};
|
|
5488
5488
|
return F && f ? (oe("*", f), oe(F, f)) : bt(B, (se, we) => {
|
|
5489
|
-
se && K(we, F) && (
|
|
5490
|
-
}),
|
|
5489
|
+
se && K(we, F) && (ee += (ee.length > 0 ? " " : "") + we + ": " + se + ";");
|
|
5490
|
+
}), ee;
|
|
5491
5491
|
}
|
|
5492
5492
|
};
|
|
5493
5493
|
return P;
|
|
@@ -5554,12 +5554,12 @@ var cq = { exports: {} };
|
|
|
5554
5554
|
const P = o.split(" ");
|
|
5555
5555
|
let B = P.length;
|
|
5556
5556
|
for (; B--; ) {
|
|
5557
|
-
let F = P[B],
|
|
5557
|
+
let F = P[B], ee = y, oe = !1, K = !1;
|
|
5558
5558
|
if (F === "DOMContentLoaded" && (F = "ready"), u.domLoaded && F === "ready" && n.readyState === "complete") {
|
|
5559
5559
|
r.call(l, H0({ type: F }));
|
|
5560
5560
|
continue;
|
|
5561
5561
|
}
|
|
5562
|
-
!u.hasFocusIn && (F === "focusin" || F === "focusout") && (oe = !0, K = F === "focusin" ? "focus" : "blur",
|
|
5562
|
+
!u.hasFocusIn && (F === "focusin" || F === "focusout") && (oe = !0, K = F === "focusin" ? "focus" : "blur", ee = (se) => {
|
|
5563
5563
|
const we = H0(se || b.event);
|
|
5564
5564
|
we.type = we.type === "focus" ? "focusin" : "focusout", u.executeHandlers(we, k);
|
|
5565
5565
|
}), f = u.events[k][F], f ? F === "ready" && u.domLoaded ? r(H0({ type: F })) : f.push({
|
|
@@ -5568,7 +5568,7 @@ var cq = { exports: {} };
|
|
|
5568
5568
|
}) : (u.events[k][F] = f = [{
|
|
5569
5569
|
func: r,
|
|
5570
5570
|
scope: l
|
|
5571
|
-
}], f.fakeName = K, f.capture = oe, f.nativeHandler =
|
|
5571
|
+
}], f.fakeName = K, f.capture = oe, f.nativeHandler = ee, F === "ready" ? qy(n, ee, u) : Pb(n, K || F, ee, oe));
|
|
5572
5572
|
}
|
|
5573
5573
|
return n = f = null, r;
|
|
5574
5574
|
}
|
|
@@ -5588,8 +5588,8 @@ var cq = { exports: {} };
|
|
|
5588
5588
|
let P = k.length;
|
|
5589
5589
|
for (; P--; )
|
|
5590
5590
|
if (k[P].func === r) {
|
|
5591
|
-
const B = k.nativeHandler, F = k.fakeName,
|
|
5592
|
-
oe.nativeHandler = B, oe.fakeName = F, oe.capture =
|
|
5591
|
+
const B = k.nativeHandler, F = k.fakeName, ee = k.capture, oe = k.slice(0, P).concat(k.slice(P + 1));
|
|
5592
|
+
oe.nativeHandler = B, oe.fakeName = F, oe.capture = ee, u[y] = oe;
|
|
5593
5593
|
}
|
|
5594
5594
|
}
|
|
5595
5595
|
(!r || k.length === 0) && (delete u[y], cp(n, k.fakeName || y, k.nativeHandler, k.capture));
|
|
@@ -5707,7 +5707,7 @@ var cq = { exports: {} };
|
|
|
5707
5707
|
url_converter: n.url_converter,
|
|
5708
5708
|
url_converter_scope: n.url_converter_scope,
|
|
5709
5709
|
force_hex_color: n.force_hex_color
|
|
5710
|
-
}, n.schema), F = n.ownEvents ? new ti() : ti.Event,
|
|
5710
|
+
}, n.schema), F = n.ownEvents ? new ti() : ti.Event, ee = P.getBlockElements(), oe = (Ne) => he(Ne) ? pn(ee, Ne) : qt(Ne) && (pn(ee, Ne.nodeName) || _o(P, Ne)), K = (Ne) => Ne && e && he(Ne) ? e.getElementById(Ne) : Ne, se = (Ne) => {
|
|
5711
5711
|
const He = K(Ne);
|
|
5712
5712
|
return Ze(He) ? ie.fromDom(He) : null;
|
|
5713
5713
|
}, we = (Ne, He, St = "") => {
|
|
@@ -6266,7 +6266,7 @@ var cq = { exports: {} };
|
|
|
6266
6266
|
prefix: K.prefix,
|
|
6267
6267
|
resource: se,
|
|
6268
6268
|
suffix: K.suffix
|
|
6269
|
-
} : se,
|
|
6269
|
+
} : se, ee = (K, se) => {
|
|
6270
6270
|
if (n[K])
|
|
6271
6271
|
return Promise.resolve();
|
|
6272
6272
|
let we = he(se) ? se : se.prefix + se.resource + se.suffix;
|
|
@@ -6289,7 +6289,7 @@ var cq = { exports: {} };
|
|
|
6289
6289
|
add: P,
|
|
6290
6290
|
remove: B,
|
|
6291
6291
|
createUrl: F,
|
|
6292
|
-
load:
|
|
6292
|
+
load: ee,
|
|
6293
6293
|
waitFor: oe
|
|
6294
6294
|
};
|
|
6295
6295
|
};
|
|
@@ -6375,39 +6375,39 @@ var cq = { exports: {} };
|
|
|
6375
6375
|
listeners: [],
|
|
6376
6376
|
previous: Vf()
|
|
6377
6377
|
}), l = (B, F) => {
|
|
6378
|
-
u(B, (
|
|
6378
|
+
u(B, (ee) => (F(ee), ee));
|
|
6379
6379
|
}, u = (B, F) => {
|
|
6380
|
-
const
|
|
6381
|
-
|
|
6382
|
-
}, f = (B, F,
|
|
6380
|
+
const ee = o.get(), oe = Xo(ee, B).getOrThunk(r), K = F(oe);
|
|
6381
|
+
ee[B] = K, o.set(ee);
|
|
6382
|
+
}, f = (B, F, ee) => {
|
|
6383
6383
|
l(B, (oe) => {
|
|
6384
6384
|
Te(oe.listeners, (K) => K(!0, B, {
|
|
6385
6385
|
uid: F,
|
|
6386
|
-
nodes: Ke(
|
|
6386
|
+
nodes: Ke(ee, (se) => se.dom)
|
|
6387
6387
|
}));
|
|
6388
6388
|
});
|
|
6389
6389
|
}, b = (B) => {
|
|
6390
6390
|
l(B, (F) => {
|
|
6391
|
-
Te(F.listeners, (
|
|
6391
|
+
Te(F.listeners, (ee) => ee(!1, B));
|
|
6392
6392
|
});
|
|
6393
6393
|
}, y = (B, F) => {
|
|
6394
|
-
Te(fC(e, B), (
|
|
6395
|
-
F ? xs(
|
|
6394
|
+
Te(fC(e, B), (ee) => {
|
|
6395
|
+
F ? xs(ee, gp(), "true") : lr(ee, gp());
|
|
6396
6396
|
});
|
|
6397
6397
|
}, k = Fb(() => {
|
|
6398
6398
|
const B = Ko(n.getNames());
|
|
6399
6399
|
Te(B, (F) => {
|
|
6400
|
-
u(F, (
|
|
6401
|
-
const oe =
|
|
6400
|
+
u(F, (ee) => {
|
|
6401
|
+
const oe = ee.previous.get();
|
|
6402
6402
|
return Sr(e, z.some(F)).fold(() => {
|
|
6403
6403
|
oe.each((K) => {
|
|
6404
|
-
b(F),
|
|
6404
|
+
b(F), ee.previous.clear(), y(K, !1);
|
|
6405
6405
|
});
|
|
6406
6406
|
}, ({ uid: K, name: se, elements: we }) => {
|
|
6407
|
-
ls(oe, K) || (oe.each((ke) => y(ke, !1)), f(se, K, we),
|
|
6407
|
+
ls(oe, K) || (oe.each((ke) => y(ke, !1)), f(se, K, we), ee.previous.set(K), y(K, !0));
|
|
6408
6408
|
}), {
|
|
6409
|
-
previous:
|
|
6410
|
-
listeners:
|
|
6409
|
+
previous: ee.previous,
|
|
6410
|
+
listeners: ee.listeners
|
|
6411
6411
|
};
|
|
6412
6412
|
});
|
|
6413
6413
|
});
|
|
@@ -6417,9 +6417,9 @@ var cq = { exports: {} };
|
|
|
6417
6417
|
}), e.on("NodeChange", () => {
|
|
6418
6418
|
k.throttle();
|
|
6419
6419
|
}), { addListener: (B, F) => {
|
|
6420
|
-
u(B, (
|
|
6421
|
-
previous:
|
|
6422
|
-
listeners:
|
|
6420
|
+
u(B, (ee) => ({
|
|
6421
|
+
previous: ee.previous,
|
|
6422
|
+
listeners: ee.listeners.concat([F])
|
|
6423
6423
|
}));
|
|
6424
6424
|
} };
|
|
6425
6425
|
}, Ti = (e, n) => {
|
|
@@ -8134,7 +8134,7 @@ Required: ` + n.join(", "));
|
|
|
8134
8134
|
}, Dl = (e, n, o) => mu(e, n, o, (r) => hv(r) || Hp(r)), Iu = (e, n, o) => mu(e, n, o, tg), $c = (e, n, o, r, l, u) => {
|
|
8135
8135
|
let f;
|
|
8136
8136
|
const b = e.getParent(o, e.isBlock) || n, y = (P, B, F) => {
|
|
8137
|
-
const
|
|
8137
|
+
const ee = zf(e), oe = l ? ee.backwards : ee.forwards;
|
|
8138
8138
|
return z.from(oe(P, B, (K, se) => Wp(K.parentNode) ? -1 : (f = K, F(l, K, se)), b));
|
|
8139
8139
|
};
|
|
8140
8140
|
return y(o, r, Dl).bind((P) => u ? y(P.container, P.offset + (l ? -1 : 0), Iu) : z.some(P)).orThunk(() => f ? z.some({
|
|
@@ -8227,9 +8227,9 @@ Required: ` + n.join(", "));
|
|
|
8227
8227
|
return B(u, F, !0);
|
|
8228
8228
|
if (e.isChildOf(b, u))
|
|
8229
8229
|
return B(b, F);
|
|
8230
|
-
const
|
|
8231
|
-
B(u,
|
|
8232
|
-
const K = k(
|
|
8230
|
+
const ee = P(u, F) || u, oe = P(b, F) || b;
|
|
8231
|
+
B(u, ee, !0);
|
|
8232
|
+
const K = k(ee === u ? ee : ee.nextSibling, "nextSibling", oe === b ? oe.nextSibling : oe);
|
|
8233
8233
|
K.length && o(y(K)), B(b, oe);
|
|
8234
8234
|
}, ew = [
|
|
8235
8235
|
'pre[class*=language-][contenteditable="false"]',
|
|
@@ -8283,12 +8283,12 @@ Required: ` + n.join(", "));
|
|
|
8283
8283
|
break;
|
|
8284
8284
|
}
|
|
8285
8285
|
}
|
|
8286
|
-
},
|
|
8286
|
+
}, ee = (oe) => {
|
|
8287
8287
|
const K = Ke(oe, ie.fromDom);
|
|
8288
8288
|
B(K);
|
|
8289
8289
|
};
|
|
8290
8290
|
return S1(e.dom, n, (oe) => {
|
|
8291
|
-
k(),
|
|
8291
|
+
k(), ee(oe);
|
|
8292
8292
|
}), f;
|
|
8293
8293
|
}, nw = (e, n, o, r) => {
|
|
8294
8294
|
e.undoManager.transact(() => {
|
|
@@ -8443,7 +8443,7 @@ Required: ` + n.join(", "));
|
|
|
8443
8443
|
]
|
|
8444
8444
|
}, wO = (e) => e.type === "longpress" || e.type.indexOf("touch") === 0, xO = (e, n) => {
|
|
8445
8445
|
const o = n.dom, r = n.getDoc(), l = document, u = n.getBody();
|
|
8446
|
-
let f, b, y, k, P, B, F,
|
|
8446
|
+
let f, b, y, k, P, B, F, ee, oe, K, se, we, ke, Se, Be, rt, wt;
|
|
8447
8447
|
const Ft = (Ct) => Ze(Ct) && (Sl(Ct) || o.is(Ct, "figure.image")), We = (Ct) => hr(Ct) || o.hasClass(Ct, "mce-preview-object"), Ve = (Ct, Mn) => {
|
|
8448
8448
|
if (wO(Ct)) {
|
|
8449
8449
|
const Oo = Ct.touches[0];
|
|
@@ -8474,7 +8474,7 @@ Required: ` + n.join(", "));
|
|
|
8474
8474
|
left: hs,
|
|
8475
8475
|
top: Ha,
|
|
8476
8476
|
display: "block"
|
|
8477
|
-
}), y.innerHTML = Se + " × " + Be, k[2] < 0 && b.clientWidth <= Se && o.setStyle(b, "left",
|
|
8477
|
+
}), y.innerHTML = Se + " × " + Be, k[2] < 0 && b.clientWidth <= Se && o.setStyle(b, "left", ee + (K - Se)), k[3] < 0 && b.clientHeight <= Be && o.setStyle(b, "top", oe + (se - Be)), Mn = u.scrollWidth - rt, Oo = u.scrollHeight - wt, Mn + Oo !== 0 && o.setStyles(y, {
|
|
8478
8478
|
left: hs - Mn,
|
|
8479
8479
|
top: Ha - Oo
|
|
8480
8480
|
}), ke || (lw(n, f, K, se, "corner-" + k.name), ke = !0);
|
|
@@ -9525,36 +9525,36 @@ Required: ` + n.join(", "));
|
|
|
9525
9525
|
P(y);
|
|
9526
9526
|
else {
|
|
9527
9527
|
const B = y.name, F = B in n.getVoidElements();
|
|
9528
|
-
let
|
|
9529
|
-
if (u &&
|
|
9528
|
+
let ee = y.attributes;
|
|
9529
|
+
if (u && ee && ee.length > 1) {
|
|
9530
9530
|
const oe = [];
|
|
9531
9531
|
oe.map = {};
|
|
9532
9532
|
const K = n.getElementRule(y.name);
|
|
9533
9533
|
if (K) {
|
|
9534
9534
|
for (let se = 0, we = K.attributesOrder.length; se < we; se++) {
|
|
9535
9535
|
const ke = K.attributesOrder[se];
|
|
9536
|
-
if (ke in
|
|
9537
|
-
const Se =
|
|
9536
|
+
if (ke in ee.map) {
|
|
9537
|
+
const Se = ee.map[ke];
|
|
9538
9538
|
oe.map[ke] = Se, oe.push({
|
|
9539
9539
|
name: ke,
|
|
9540
9540
|
value: Se
|
|
9541
9541
|
});
|
|
9542
9542
|
}
|
|
9543
9543
|
}
|
|
9544
|
-
for (let se = 0, we =
|
|
9545
|
-
const ke =
|
|
9544
|
+
for (let se = 0, we = ee.length; se < we; se++) {
|
|
9545
|
+
const ke = ee[se].name;
|
|
9546
9546
|
if (!(ke in oe.map)) {
|
|
9547
|
-
const Se =
|
|
9547
|
+
const Se = ee.map[ke];
|
|
9548
9548
|
oe.map[ke] = Se, oe.push({
|
|
9549
9549
|
name: ke,
|
|
9550
9550
|
value: Se
|
|
9551
9551
|
});
|
|
9552
9552
|
}
|
|
9553
9553
|
}
|
|
9554
|
-
|
|
9554
|
+
ee = oe;
|
|
9555
9555
|
}
|
|
9556
9556
|
}
|
|
9557
|
-
if (o.start(B,
|
|
9557
|
+
if (o.start(B, ee, F), cd(B))
|
|
9558
9558
|
he(y.value) && o.text(y.value, !0), o.end(B);
|
|
9559
9559
|
else if (!F) {
|
|
9560
9560
|
let oe = y.firstChild;
|
|
@@ -10059,7 +10059,7 @@ Required: ` + n.join(", "));
|
|
|
10059
10059
|
const l = n.getTextBlockElements(), u = n.getNonEmptyElements(), f = n.getWhitespaceElements(), b = ct.makeMap("tr,td,th,tbody,thead,tfoot,table,summary"), y = /* @__PURE__ */ new Set(), k = (P) => P !== o && !b[P.name];
|
|
10060
10060
|
for (let P = 0; P < e.length; P++) {
|
|
10061
10061
|
const B = e[P];
|
|
10062
|
-
let F,
|
|
10062
|
+
let F, ee, oe;
|
|
10063
10063
|
if (!B.parent || y.has(B))
|
|
10064
10064
|
continue;
|
|
10065
10065
|
if (l[B.name] && B.parent.name === "li") {
|
|
@@ -10078,8 +10078,8 @@ Required: ` + n.join(", "));
|
|
|
10078
10078
|
if (oS(n, B, F))
|
|
10079
10079
|
tS(B, n);
|
|
10080
10080
|
else {
|
|
10081
|
-
K.reverse(),
|
|
10082
|
-
let se =
|
|
10081
|
+
K.reverse(), ee = K[0].clone(), r(ee);
|
|
10082
|
+
let se = ee;
|
|
10083
10083
|
for (let we = 0; we < K.length - 1; we++) {
|
|
10084
10084
|
n.isValidChild(se.name, K[we].name) && we > 0 ? (oe = K[we].clone(), r(oe), se.append(oe)) : oe = se;
|
|
10085
10085
|
for (let ke = K[we].firstChild; ke && ke !== K[we + 1]; ) {
|
|
@@ -10088,7 +10088,7 @@ Required: ` + n.join(", "));
|
|
|
10088
10088
|
}
|
|
10089
10089
|
se = oe;
|
|
10090
10090
|
}
|
|
10091
|
-
Vv(n, u, f,
|
|
10091
|
+
Vv(n, u, f, ee) ? F.insert(B, K[0], !0) : (F.insert(ee, K[0], !0), F.insert(B, ee)), F = K[0], (Vv(n, u, f, F) || tE(F, "br")) && F.empty().remove();
|
|
10092
10092
|
}
|
|
10093
10093
|
else if (B.parent) {
|
|
10094
10094
|
if (B.name === "li") {
|
|
@@ -10169,7 +10169,7 @@ Required: ` + n.join(", "));
|
|
|
10169
10169
|
}), VR(e, o);
|
|
10170
10170
|
}, TI = (e, n, o, r) => (r.insertAfter(n.reverse(), e), cE(n[0], o)), iE = (e, n, o, r) => {
|
|
10171
10171
|
const l = rE(n, e, r), u = lg(n, o.startContainer), f = Pw(FR(l.firstChild)), b = 1, y = 2, k = n.getRoot(), P = (B) => {
|
|
10172
|
-
const F = Le.fromRangeStart(o),
|
|
10172
|
+
const F = Le.fromRangeStart(o), ee = hd(n.getRoot()), oe = B === b ? ee.prev(F) : ee.next(F), K = oe == null ? void 0 : oe.getNode();
|
|
10173
10173
|
return K ? lg(n, K) !== u : !0;
|
|
10174
10174
|
};
|
|
10175
10175
|
return u ? P(b) ? Vj(u, f, k) : P(y) ? TI(u, f, k, n) : kI(u, f, k, o) : null;
|
|
@@ -10235,17 +10235,17 @@ Required: ` + n.join(", "));
|
|
|
10235
10235
|
const P = n.previousSibling;
|
|
10236
10236
|
if (ut(P)) {
|
|
10237
10237
|
k.setStart(P, (r = (o = P.nodeValue) === null || o === void 0 ? void 0 : o.length) !== null && r !== void 0 ? r : 0);
|
|
10238
|
-
const
|
|
10239
|
-
ut(
|
|
10238
|
+
const ee = n.nextSibling;
|
|
10239
|
+
ut(ee) && (P.appendData(ee.data), (l = ee.parentNode) === null || l === void 0 || l.removeChild(ee));
|
|
10240
10240
|
} else
|
|
10241
10241
|
k.setStartBefore(n), k.setEndBefore(n);
|
|
10242
|
-
const B = (
|
|
10243
|
-
let oe = Le.fromRangeStart(
|
|
10242
|
+
const B = (ee) => {
|
|
10243
|
+
let oe = Le.fromRangeStart(ee);
|
|
10244
10244
|
return oe = hd(e.getBody()).next(oe), oe == null ? void 0 : oe.toRange();
|
|
10245
10245
|
}, F = f.getParent(n, f.isBlock);
|
|
10246
10246
|
if (f.remove(n), F && f.isEmpty(F)) {
|
|
10247
|
-
const
|
|
10248
|
-
Gc(ie.fromDom(F)), k.setStart(F, 0), k.setEnd(F, 0), !
|
|
10247
|
+
const ee = Wv(F);
|
|
10248
|
+
Gc(ie.fromDom(F)), k.setStart(F, 0), k.setEnd(F, 0), !ee && !DI(F) && (u = B(k)) ? (k = u, f.remove(F)) : f.add(F, f.create("br", ee ? {} : { "data-mce-bogus": "1" }));
|
|
10249
10249
|
}
|
|
10250
10250
|
b.setRng(k);
|
|
10251
10251
|
}, Bw = (e) => {
|
|
@@ -10266,8 +10266,8 @@ Required: ` + n.join(", "));
|
|
|
10266
10266
|
const u = e.selection, f = e.dom, b = e.parser, y = o.merge, k = Jp({ validate: !0 }, e.schema), P = '<span id="mce_marker" data-mce-type="bookmark"></span>';
|
|
10267
10267
|
o.preserve_zwsp || (n = V(n)), n.indexOf("{$caret}") === -1 && (n += "{$caret}"), n = n.replace(/\{\$caret\}/, P);
|
|
10268
10268
|
let B = u.getRng();
|
|
10269
|
-
const F = B.startContainer,
|
|
10270
|
-
F ===
|
|
10269
|
+
const F = B.startContainer, ee = e.getBody();
|
|
10270
|
+
F === ee && u.isCollapsed() && f.isBlock(ee.firstChild) && WR(e, ee.firstChild) && f.isEmpty(ee.firstChild) && (B = f.createRng(), B.setStart(ee.firstChild, 0), B.setEnd(ee.firstChild, 0), u.setRng(B)), u.isCollapsed() || Bw(e);
|
|
10271
10271
|
const oe = u.getNode(), K = {
|
|
10272
10272
|
context: oe.nodeName.toLowerCase(),
|
|
10273
10273
|
data: o.data,
|
|
@@ -10516,29 +10516,29 @@ Required: ` + n.join(", "));
|
|
|
10516
10516
|
let B = k;
|
|
10517
10517
|
ut(k) && (P !== k.data.length && (f = !0), B = B.parentNode);
|
|
10518
10518
|
const F = [];
|
|
10519
|
-
let
|
|
10519
|
+
let ee;
|
|
10520
10520
|
for (; B; ) {
|
|
10521
10521
|
if (cg(e, B, n, o, r)) {
|
|
10522
|
-
|
|
10522
|
+
ee = B;
|
|
10523
10523
|
break;
|
|
10524
10524
|
}
|
|
10525
10525
|
B.nextSibling && (f = !0), F.push(B), B = B.parentNode;
|
|
10526
10526
|
}
|
|
10527
|
-
if (
|
|
10527
|
+
if (ee)
|
|
10528
10528
|
if (f) {
|
|
10529
10529
|
const oe = u.getBookmark();
|
|
10530
10530
|
y.collapse(!0);
|
|
10531
10531
|
let K = of(l, y, b, !0);
|
|
10532
10532
|
K = L(K), e.formatter.remove(n, o, K, r), u.moveToBookmark(oe);
|
|
10533
10533
|
} else {
|
|
10534
|
-
const oe = hh(e.getBody(),
|
|
10535
|
-
uS(e, se, oe ??
|
|
10536
|
-
const we = NI(e, se,
|
|
10534
|
+
const oe = hh(e.getBody(), ee), K = Ze(oe) ? l.getParents(ee.parentNode, pt, oe) : [], se = vE(!1).dom;
|
|
10535
|
+
uS(e, se, oe ?? ee);
|
|
10536
|
+
const we = NI(e, se, ee, n, o, r), ke = dS([
|
|
10537
10537
|
...F,
|
|
10538
10538
|
...we.toArray(),
|
|
10539
10539
|
...K
|
|
10540
10540
|
], se);
|
|
10541
|
-
oe && yE(e, oe, Ze(oe)), u.setCursorLocation(ke, 1), l.isEmpty(
|
|
10541
|
+
oe && yE(e, oe, Ze(oe)), u.setCursorLocation(ke, 1), l.isEmpty(ee) && l.remove(ee);
|
|
10542
10542
|
}
|
|
10543
10543
|
}, CE = (e, n, o) => {
|
|
10544
10544
|
const r = e.selection, l = e.getBody();
|
|
@@ -10721,27 +10721,27 @@ Required: ` + n.join(", "));
|
|
|
10721
10721
|
if (n.remove !== "all") {
|
|
10722
10722
|
DE(u, y, n, o, l), Fw(n.attributes, (B, F) => {
|
|
10723
10723
|
const {
|
|
10724
|
-
name:
|
|
10724
|
+
name: ee,
|
|
10725
10725
|
value: oe
|
|
10726
10726
|
} = Yv(F, B, o);
|
|
10727
|
-
if (n.remove_similar || ae(oe) || !qt(l) || Kv(u.getAttrib(l,
|
|
10728
|
-
if (
|
|
10729
|
-
const K = u.getAttrib(y,
|
|
10727
|
+
if (n.remove_similar || ae(oe) || !qt(l) || Kv(u.getAttrib(l, ee), oe)) {
|
|
10728
|
+
if (ee === "class") {
|
|
10729
|
+
const K = u.getAttrib(y, ee);
|
|
10730
10730
|
if (K) {
|
|
10731
10731
|
let se = "";
|
|
10732
10732
|
if (Te(K.split(/\s+/), (we) => {
|
|
10733
10733
|
/mce\-\w+/.test(we) && (se += (se ? " " : "") + we);
|
|
10734
10734
|
}), se) {
|
|
10735
|
-
u.setAttrib(y,
|
|
10735
|
+
u.setAttrib(y, ee, se);
|
|
10736
10736
|
return;
|
|
10737
10737
|
}
|
|
10738
10738
|
}
|
|
10739
10739
|
}
|
|
10740
|
-
if (l$.test(
|
|
10741
|
-
y.removeAttribute(
|
|
10740
|
+
if (l$.test(ee) && y.removeAttribute("data-mce-" + ee), ee === "style" && Pr(["li"])(y) && u.getStyle(y, "list-style-type") === "none") {
|
|
10741
|
+
y.removeAttribute(ee), u.setStyle(y, "list-style-type", "none");
|
|
10742
10742
|
return;
|
|
10743
10743
|
}
|
|
10744
|
-
|
|
10744
|
+
ee === "class" && y.removeAttribute("className"), y.removeAttribute(ee);
|
|
10745
10745
|
}
|
|
10746
10746
|
}), Fw(n.classes, (B) => {
|
|
10747
10747
|
B = bd(B, o), (!qt(l) || u.hasClass(l, B)) && u.removeClass(y, B);
|
|
@@ -10767,8 +10767,8 @@ Required: ` + n.join(", "));
|
|
|
10767
10767
|
let P, B;
|
|
10768
10768
|
const F = e.dom;
|
|
10769
10769
|
if (o) {
|
|
10770
|
-
const
|
|
10771
|
-
for (let oe = r.parentNode; oe && oe !==
|
|
10770
|
+
const ee = o.parentNode;
|
|
10771
|
+
for (let oe = r.parentNode; oe && oe !== ee; oe = oe.parentNode) {
|
|
10772
10772
|
let K = F.clone(oe, !1);
|
|
10773
10773
|
for (let se = 0; se < n.length && (K = g$(e, n[se], b, K), K !== null); se++)
|
|
10774
10774
|
;
|
|
@@ -10798,7 +10798,7 @@ Required: ` + n.join(", "));
|
|
|
10798
10798
|
styles: { textDecoration: rt }
|
|
10799
10799
|
}, void 0, K);
|
|
10800
10800
|
});
|
|
10801
|
-
},
|
|
10801
|
+
}, ee = (K) => {
|
|
10802
10802
|
const se = b.get(K ? "_start" : "_end");
|
|
10803
10803
|
if (se) {
|
|
10804
10804
|
let we = se[K ? "firstChild" : "lastChild"];
|
|
@@ -10814,7 +10814,7 @@ Required: ` + n.join(", "));
|
|
|
10814
10814
|
k(i$(b, Be, !0, "span", {
|
|
10815
10815
|
id: "_start",
|
|
10816
10816
|
"data-mce-type": "bookmark"
|
|
10817
|
-
})),
|
|
10817
|
+
})), ee(!0);
|
|
10818
10818
|
return;
|
|
10819
10819
|
}
|
|
10820
10820
|
if (bS(b, we, se)) {
|
|
@@ -10822,7 +10822,7 @@ Required: ` + n.join(", "));
|
|
|
10822
10822
|
k(i$(b, Be, !1, "span", {
|
|
10823
10823
|
id: "_end",
|
|
10824
10824
|
"data-mce-type": "bookmark"
|
|
10825
|
-
})),
|
|
10825
|
+
})), ee(!1);
|
|
10826
10826
|
return;
|
|
10827
10827
|
}
|
|
10828
10828
|
se = AE(b, se, "span", {
|
|
@@ -10837,7 +10837,7 @@ Required: ` + n.join(", "));
|
|
|
10837
10837
|
Te(Be, (rt) => {
|
|
10838
10838
|
!Oi(rt) && !Oi(rt.parentNode) && k(rt);
|
|
10839
10839
|
});
|
|
10840
|
-
}), k(se), k(we), se =
|
|
10840
|
+
}), k(se), k(we), se = ee(!0), we = ee();
|
|
10841
10841
|
} else
|
|
10842
10842
|
se = we = k(se);
|
|
10843
10843
|
ke.startContainer = se.parentNode ? se.parentNode : se, ke.startOffset = b.nodeIndex(se), ke.endContainer = we.parentNode ? we.parentNode : we, ke.endOffset = b.nodeIndex(we) + 1;
|
|
@@ -10978,9 +10978,9 @@ Required: ` + n.join(", "));
|
|
|
10978
10978
|
}
|
|
10979
10979
|
(Jr(u) || vd(u) && u.wrapper) && (!u.exact && Kt === 1 && (We = st(We)), GI(e, l, o, We), qI(e, u, n, o, We), ZI(oe, u, o, We), WI(oe, u, o, We), jI(oe, u, o, We), hS(e, u, o, We));
|
|
10980
10980
|
});
|
|
10981
|
-
},
|
|
10982
|
-
if (b.getContentEditable(
|
|
10983
|
-
r =
|
|
10981
|
+
}, ee = g1(r) ? r : y.getNode();
|
|
10982
|
+
if (b.getContentEditable(ee) === "false" && !p1(e, ee)) {
|
|
10983
|
+
r = ee, P(l, r), Ol(e, n, r, o);
|
|
10984
10984
|
return;
|
|
10985
10985
|
}
|
|
10986
10986
|
if (u) {
|
|
@@ -11158,8 +11158,8 @@ Required: ` + n.join(", "));
|
|
|
11158
11158
|
f.body = 1;
|
|
11159
11159
|
const k = (P) => P.name in f || zm(o, P);
|
|
11160
11160
|
for (let P = 0, B = r.length; P < B; P++) {
|
|
11161
|
-
let F = r[P],
|
|
11162
|
-
if (
|
|
11161
|
+
let F = r[P], ee = F.parent;
|
|
11162
|
+
if (ee && k(ee) && F === ee.lastChild) {
|
|
11163
11163
|
let oe = F.prev;
|
|
11164
11164
|
for (; oe; ) {
|
|
11165
11165
|
const K = oe.name;
|
|
@@ -11169,15 +11169,15 @@ Required: ` + n.join(", "));
|
|
|
11169
11169
|
}
|
|
11170
11170
|
oe = oe.prev;
|
|
11171
11171
|
}
|
|
11172
|
-
if (F && (F.remove(), Vv(o, b, y,
|
|
11173
|
-
const K = o.getElementRule(
|
|
11174
|
-
K && (K.removeEmpty ?
|
|
11172
|
+
if (F && (F.remove(), Vv(o, b, y, ee))) {
|
|
11173
|
+
const K = o.getElementRule(ee.name);
|
|
11174
|
+
K && (K.removeEmpty ? ee.remove() : K.paddEmpty && eS(e, u, k, ee));
|
|
11175
11175
|
}
|
|
11176
11176
|
} else {
|
|
11177
11177
|
let oe = F;
|
|
11178
|
-
for (;
|
|
11179
|
-
|
|
11180
|
-
if (oe ===
|
|
11178
|
+
for (; ee && ee.firstChild === oe && ee.lastChild === oe && (oe = ee, !f[ee.name]); )
|
|
11179
|
+
ee = ee.parent;
|
|
11180
|
+
if (oe === ee) {
|
|
11181
11181
|
const K = new Pc("#text", 3);
|
|
11182
11182
|
K.value = Bo, F.replace(K);
|
|
11183
11183
|
}
|
|
@@ -11300,8 +11300,8 @@ Required: ` + n.join(", "));
|
|
|
11300
11300
|
let P = "";
|
|
11301
11301
|
for (let B = 0; B < k.length; B++) {
|
|
11302
11302
|
const F = k[B];
|
|
11303
|
-
let
|
|
11304
|
-
oe && oe[F] && (
|
|
11303
|
+
let ee = !1, oe = r["*"];
|
|
11304
|
+
oe && oe[F] && (ee = !0), oe = r[b.name], !ee && oe && oe[F] && (ee = !0), ee && (P && (P += " "), P += F);
|
|
11305
11305
|
}
|
|
11306
11306
|
P.length || (P = null), b.attr("class", P);
|
|
11307
11307
|
}
|
|
@@ -12021,7 +12021,7 @@ Required: ` + n.join(", "));
|
|
|
12021
12021
|
return n.isSupported = !1, n;
|
|
12022
12022
|
const o = e.document, r = o.currentScript;
|
|
12023
12023
|
let { document: l } = e;
|
|
12024
|
-
const { DocumentFragment: u, HTMLTemplateElement: f, Node: b, Element: y, NodeFilter: k, NamedNodeMap: P = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: B, DOMParser: F, trustedTypes:
|
|
12024
|
+
const { DocumentFragment: u, HTMLTemplateElement: f, Node: b, Element: y, NodeFilter: k, NamedNodeMap: P = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: B, DOMParser: F, trustedTypes: ee } = e, oe = y.prototype, K = CS(oe, "cloneNode"), se = CS(oe, "nextSibling"), we = CS(oe, "childNodes"), ke = CS(oe, "parentNode");
|
|
12025
12025
|
if (typeof f == "function") {
|
|
12026
12026
|
const ao = l.createElement("template");
|
|
12027
12027
|
ao.content && ao.content.ownerDocument && (l = ao.content.ownerDocument);
|
|
@@ -12148,7 +12148,7 @@ Required: ` + n.join(", "));
|
|
|
12148
12148
|
throw Qv('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
12149
12149
|
Se = ze.TRUSTED_TYPES_POLICY, Be = Se.createHTML("");
|
|
12150
12150
|
} else
|
|
12151
|
-
Se === void 0 && (Se = U$(
|
|
12151
|
+
Se === void 0 && (Se = U$(ee, r)), Se !== null && typeof Be == "string" && (Be = Se.createHTML(""));
|
|
12152
12152
|
la && la(ze), C0 = ze;
|
|
12153
12153
|
}
|
|
12154
12154
|
}, kg = fs({}, [
|
|
@@ -12323,8 +12323,8 @@ Required: ` + n.join(", "));
|
|
|
12323
12323
|
fo(wm, ze);
|
|
12324
12324
|
continue;
|
|
12325
12325
|
}
|
|
12326
|
-
if ($s && (Vr === "id" || Vr === "name") && (fo(wm, ze), kn = tr + kn), Se && typeof
|
|
12327
|
-
switch (
|
|
12326
|
+
if ($s && (Vr === "id" || Vr === "name") && (fo(wm, ze), kn = tr + kn), Se && typeof ee == "object" && typeof ee.getAttributeType == "function" && !C4)
|
|
12327
|
+
switch (ee.getAttributeType(nO, Vr)) {
|
|
12328
12328
|
case "TrustedHTML": {
|
|
12329
12329
|
kn = Se.createHTML(kn);
|
|
12330
12330
|
break;
|
|
@@ -12585,8 +12585,8 @@ Required: ` + n.join(", "));
|
|
|
12585
12585
|
}
|
|
12586
12586
|
if (e.nodeType !== ac || B === "body")
|
|
12587
12587
|
return;
|
|
12588
|
-
const F = ie.fromDom(e),
|
|
12589
|
-
if (!
|
|
12588
|
+
const F = ie.fromDom(e), ee = Zr(F, ZE), oe = Ga(F, "data-mce-bogus");
|
|
12589
|
+
if (!ee && he(oe)) {
|
|
12590
12590
|
oe === "all" ? Eo(F) : cl(F);
|
|
12591
12591
|
return;
|
|
12592
12592
|
}
|
|
@@ -12596,7 +12596,7 @@ Required: ` + n.join(", "));
|
|
|
12596
12596
|
return;
|
|
12597
12597
|
} else
|
|
12598
12598
|
Ze(l) && (l.allowedTags[B] = !0);
|
|
12599
|
-
if (k && K && !
|
|
12599
|
+
if (k && K && !ee) {
|
|
12600
12600
|
if (Te((b = K.attributesForced) !== null && b !== void 0 ? b : [], (se) => {
|
|
12601
12601
|
xs(F, se.name, se.value === "{$uid}" ? `mce_${q$++}` : se.value);
|
|
12602
12602
|
}), Te((y = K.attributesDefault) !== null && y !== void 0 ? y : [], (se) => {
|
|
@@ -12690,7 +12690,7 @@ Required: ` + n.join(", "));
|
|
|
12690
12690
|
const k = f[b], P = new Pc(k.nodeName.toLowerCase(), k.nodeType);
|
|
12691
12691
|
if (qt(k)) {
|
|
12692
12692
|
const B = k.attributes;
|
|
12693
|
-
for (let F = 0,
|
|
12693
|
+
for (let F = 0, ee = B.length; F < ee; F++) {
|
|
12694
12694
|
const oe = B[F];
|
|
12695
12695
|
P.attr(oe.name, oe.value);
|
|
12696
12696
|
}
|
|
@@ -12717,7 +12717,7 @@ Required: ` + n.join(", "));
|
|
|
12717
12717
|
Se = Se.parent;
|
|
12718
12718
|
}
|
|
12719
12719
|
return !1;
|
|
12720
|
-
},
|
|
12720
|
+
}, ee = (ke) => {
|
|
12721
12721
|
let Se = ke;
|
|
12722
12722
|
for (; Ze(Se); ) {
|
|
12723
12723
|
if (Se.name in y)
|
|
@@ -12743,7 +12743,7 @@ Required: ` + n.join(", "));
|
|
|
12743
12743
|
const Be = n.getElementRule(ke.name);
|
|
12744
12744
|
if (l && Be) {
|
|
12745
12745
|
const rt = Vv(n, u, f, ke);
|
|
12746
|
-
Be.paddInEmptyBlock && rt &&
|
|
12746
|
+
Be.paddInEmptyBlock && rt && ee(ke) ? eS(o, r, oe, ke) : Be.removeEmpty && rt ? oe(ke) ? ke.remove() : ke.unwrap() : Be.paddEmpty && (rt || MR(ke)) && eS(o, r, oe, ke);
|
|
12747
12747
|
}
|
|
12748
12748
|
} else if (ke.type === 3 && !F(ke)) {
|
|
12749
12749
|
let Be = (Se = ke.value) !== null && Se !== void 0 ? Se : "";
|
|
@@ -12764,7 +12764,7 @@ Required: ` + n.join(", "));
|
|
|
12764
12764
|
}, u = new DOMParser(), f = CL(l, n), b = (Se, Be, rt = "html") => {
|
|
12765
12765
|
const wt = rt === "xhtml" ? "application/xhtml+xml" : "text/html", Ft = pn(n.getSpecialElements(), Be.toLowerCase()), We = Ft ? `<${Be}>${Se}</${Be}>` : Se, Ve = rt === "xhtml" ? `<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>${We}</body></html>` : `<body>${We}</body>`, st = u.parseFromString(Ve, wt).body;
|
|
12766
12766
|
return f.sanitizeHtmlElement(st, wt), Ft ? st.firstChild : st;
|
|
12767
|
-
}, y = o.addFilter, k = o.getFilters, P = o.removeFilter, B = r.addFilter, F = r.getFilters,
|
|
12767
|
+
}, y = o.addFilter, k = o.getFilters, P = o.removeFilter, B = r.addFilter, F = r.getFilters, ee = r.removeFilter, oe = (Se, Be) => {
|
|
12768
12768
|
oS(n, Se) && Be.push(Se);
|
|
12769
12769
|
}, K = (Se, Be) => {
|
|
12770
12770
|
const rt = he(Be.attr(ZE)), wt = Be.type === 1 && !pn(Se, Be.name) && !zm(n, Be) && !cd(Be.name);
|
|
@@ -12787,7 +12787,7 @@ Required: ` + n.join(", "));
|
|
|
12787
12787
|
schema: n,
|
|
12788
12788
|
addAttributeFilter: B,
|
|
12789
12789
|
getAttributeFilters: F,
|
|
12790
|
-
removeAttributeFilter:
|
|
12790
|
+
removeAttributeFilter: ee,
|
|
12791
12791
|
addNodeFilter: y,
|
|
12792
12792
|
getNodeFilters: k,
|
|
12793
12793
|
removeNodeFilter: P,
|
|
@@ -12972,8 +12972,8 @@ Required: ` + n.join(", "));
|
|
|
12972
12972
|
if (F === -1)
|
|
12973
12973
|
return y;
|
|
12974
12974
|
{
|
|
12975
|
-
const
|
|
12976
|
-
return (
|
|
12975
|
+
const ee = RS(B, F - 1), oe = RS(B, F + y.length);
|
|
12976
|
+
return (ee ? " " : "") + y + (oe ? " " : "");
|
|
12977
12977
|
}
|
|
12978
12978
|
} else
|
|
12979
12979
|
return y;
|
|
@@ -13004,15 +13004,15 @@ Required: ` + n.join(", "));
|
|
|
13004
13004
|
start: P,
|
|
13005
13005
|
end: B,
|
|
13006
13006
|
diag: F
|
|
13007
|
-
}), f = (P, B, F,
|
|
13008
|
-
const K = y(P, B, F,
|
|
13009
|
-
if (K === null || K.start === B && K.diag === B -
|
|
13007
|
+
}), f = (P, B, F, ee, oe) => {
|
|
13008
|
+
const K = y(P, B, F, ee);
|
|
13009
|
+
if (K === null || K.start === B && K.diag === B - ee || K.end === P && K.diag === P - F) {
|
|
13010
13010
|
let se = P, we = F;
|
|
13011
|
-
for (; se < B || we <
|
|
13012
|
-
se < B && we <
|
|
13011
|
+
for (; se < B || we < ee; )
|
|
13012
|
+
se < B && we < ee && e[se] === n[we] ? (oe.push([
|
|
13013
13013
|
qw,
|
|
13014
13014
|
e[se]
|
|
13015
|
-
]), ++se, ++we) : B - P >
|
|
13015
|
+
]), ++se, ++we) : B - P > ee - F ? (oe.push([
|
|
13016
13016
|
s5,
|
|
13017
13017
|
e[se]
|
|
13018
13018
|
]), ++se) : (oe.push([
|
|
@@ -13026,15 +13026,15 @@ Required: ` + n.join(", "));
|
|
|
13026
13026
|
qw,
|
|
13027
13027
|
e[se]
|
|
13028
13028
|
]);
|
|
13029
|
-
f(K.end, B, K.end - K.diag,
|
|
13029
|
+
f(K.end, B, K.end - K.diag, ee, oe);
|
|
13030
13030
|
}
|
|
13031
|
-
}, b = (P, B, F,
|
|
13031
|
+
}, b = (P, B, F, ee) => {
|
|
13032
13032
|
let oe = P;
|
|
13033
|
-
for (; oe - B <
|
|
13033
|
+
for (; oe - B < ee && oe < F && e[oe] === n[oe - B]; )
|
|
13034
13034
|
++oe;
|
|
13035
13035
|
return u(P, oe, B);
|
|
13036
|
-
}, y = (P, B, F,
|
|
13037
|
-
const oe = B - P, K =
|
|
13036
|
+
}, y = (P, B, F, ee) => {
|
|
13037
|
+
const oe = B - P, K = ee - F;
|
|
13038
13038
|
if (oe === 0 || K === 0)
|
|
13039
13039
|
return null;
|
|
13040
13040
|
const se = oe - K, we = K + oe, ke = (we % 2 === 0 ? we : we + 1) / 2;
|
|
@@ -13042,16 +13042,16 @@ Required: ` + n.join(", "));
|
|
|
13042
13042
|
let Se, Be, rt, wt, Ft;
|
|
13043
13043
|
for (Se = 0; Se <= ke; ++Se) {
|
|
13044
13044
|
for (Be = -Se; Be <= Se; Be += 2) {
|
|
13045
|
-
for (rt = Be + ke, Be === -Se || Be !== Se && r[rt - 1] < r[rt + 1] ? r[rt] = r[rt + 1] : r[rt] = r[rt - 1] + 1, wt = r[rt], Ft = wt - P + F - Be; wt < B && Ft <
|
|
13045
|
+
for (rt = Be + ke, Be === -Se || Be !== Se && r[rt - 1] < r[rt + 1] ? r[rt] = r[rt + 1] : r[rt] = r[rt - 1] + 1, wt = r[rt], Ft = wt - P + F - Be; wt < B && Ft < ee && e[wt] === n[Ft]; )
|
|
13046
13046
|
r[rt] = ++wt, ++Ft;
|
|
13047
13047
|
if (se % 2 !== 0 && se - Se <= Be && Be <= se + Se && l[rt - se] <= r[rt])
|
|
13048
|
-
return b(l[rt - se], Be + P - F, B,
|
|
13048
|
+
return b(l[rt - se], Be + P - F, B, ee);
|
|
13049
13049
|
}
|
|
13050
13050
|
for (Be = se - Se; Be <= se + Se; Be += 2) {
|
|
13051
13051
|
for (rt = Be + ke - se, Be === se - Se || Be !== se + Se && l[rt + 1] <= l[rt - 1] ? l[rt] = l[rt + 1] - 1 : l[rt] = l[rt - 1], wt = l[rt] - 1, Ft = wt - P + F - Be; wt >= P && Ft >= F && e[wt] === n[Ft]; )
|
|
13052
13052
|
l[rt] = wt--, Ft--;
|
|
13053
13053
|
if (se % 2 === 0 && -Se <= Be && Be <= Se && l[rt] <= r[rt + se])
|
|
13054
|
-
return b(l[rt], Be + P - F, B,
|
|
13054
|
+
return b(l[rt], Be + P - F, B, ee);
|
|
13055
13055
|
}
|
|
13056
13056
|
}
|
|
13057
13057
|
return null;
|
|
@@ -13246,7 +13246,7 @@ Required: ` + n.join(", "));
|
|
|
13246
13246
|
apply: (k, P, B) => l.apply(k, n(P)),
|
|
13247
13247
|
remove: (k, P, B, F) => l.remove(k, n(P)),
|
|
13248
13248
|
toggle: (k, P, B) => l.toggle(k, n(P)),
|
|
13249
|
-
formatChanged: (k, P, B, F,
|
|
13249
|
+
formatChanged: (k, P, B, F, ee) => l.formatChanged(P, B, F, ee)
|
|
13250
13250
|
},
|
|
13251
13251
|
editor: {
|
|
13252
13252
|
getContent: (k) => u.getContent(k),
|
|
@@ -13384,18 +13384,18 @@ Required: ` + n.join(", "));
|
|
|
13384
13384
|
o = {}, r = {}, n.on("NodeChange", (b) => {
|
|
13385
13385
|
const y = b.element, k = u(y), P = {};
|
|
13386
13386
|
bt(o, (B, F) => {
|
|
13387
|
-
l(F, k).each((
|
|
13387
|
+
l(F, k).each((ee) => {
|
|
13388
13388
|
r[F] || (Te(B, (oe) => {
|
|
13389
13389
|
oe(!0, {
|
|
13390
|
-
node:
|
|
13390
|
+
node: ee,
|
|
13391
13391
|
selector: F,
|
|
13392
13392
|
parents: k
|
|
13393
13393
|
});
|
|
13394
13394
|
}), r[F] = B), P[F] = B;
|
|
13395
13395
|
});
|
|
13396
13396
|
}), bt(r, (B, F) => {
|
|
13397
|
-
P[F] || (delete r[F], Te(B, (
|
|
13398
|
-
|
|
13397
|
+
P[F] || (delete r[F], Te(B, (ee) => {
|
|
13398
|
+
ee(!1, {
|
|
13399
13399
|
node: y,
|
|
13400
13400
|
selector: F,
|
|
13401
13401
|
parents: k
|
|
@@ -13419,7 +13419,7 @@ Required: ` + n.join(", "));
|
|
|
13419
13419
|
const { selectorChangedWithUnbind: f } = k6(e, r), b = (Tt, on) => {
|
|
13420
13420
|
const Kn = e.createRng();
|
|
13421
13421
|
Ze(Tt) && Ze(on) ? (Kn.setStart(Tt, on), Kn.setEnd(Tt, on), Be(Kn), we(!1)) : (Y2(e, Kn, r.getBody(), !0), Be(Kn));
|
|
13422
|
-
}, y = (Tt) => mF(r, Tt), k = (Tt, on) => bF(r, Tt, on), P = (Tt) => CT(r.getBody(), Se(), Tt), B = (Tt) => BO(r.getBody(), Se(), Tt), F = (Tt, on) => Ml.getBookmark(Tt, on),
|
|
13422
|
+
}, y = (Tt) => mF(r, Tt), k = (Tt, on) => bF(r, Tt, on), P = (Tt) => CT(r.getBody(), Se(), Tt), B = (Tt) => BO(r.getBody(), Se(), Tt), F = (Tt, on) => Ml.getBookmark(Tt, on), ee = (Tt) => Ml.moveToBookmark(Tt), oe = (Tt, on) => (hN(e, Tt, on).each(Be), Tt), K = () => {
|
|
13423
13423
|
const Tt = Se(), on = ke();
|
|
13424
13424
|
return !Tt || Tt.item ? !1 : Tt.compareEndPoints ? Tt.compareEndPoints("StartToEnd", Tt) === 0 : !on || Tt.collapsed;
|
|
13425
13425
|
}, se = () => {
|
|
@@ -13497,7 +13497,7 @@ Required: ` + n.join(", "));
|
|
|
13497
13497
|
getContent: y,
|
|
13498
13498
|
setContent: k,
|
|
13499
13499
|
getBookmark: F,
|
|
13500
|
-
moveToBookmark:
|
|
13500
|
+
moveToBookmark: ee,
|
|
13501
13501
|
select: oe,
|
|
13502
13502
|
isCollapsed: K,
|
|
13503
13503
|
isEditable: se,
|
|
@@ -13676,8 +13676,8 @@ Required: ` + n.join(", "));
|
|
|
13676
13676
|
const P = {
|
|
13677
13677
|
format: "html",
|
|
13678
13678
|
...k
|
|
13679
|
-
}, B = yF(n, y, P), F = xF(l, B, P),
|
|
13680
|
-
return P.format === "tree" ?
|
|
13679
|
+
}, B = yF(n, y, P), F = xF(l, B, P), ee = CF(f, F, P);
|
|
13680
|
+
return P.format === "tree" ? ee : D6(n, r, u, ee, P);
|
|
13681
13681
|
};
|
|
13682
13682
|
return {
|
|
13683
13683
|
schema: u,
|
|
@@ -13838,17 +13838,17 @@ Options:${f}${o.join(f)}` : "";
|
|
|
13838
13838
|
const n = [], o = () => {
|
|
13839
13839
|
const F = e.theme;
|
|
13840
13840
|
return F && F.getNotificationManagerImpl ? F.getNotificationManagerImpl() : F6();
|
|
13841
|
-
}, r = () => z.from(n[0]), l = (F,
|
|
13841
|
+
}, r = () => z.from(n[0]), l = (F, ee) => F.type === ee.type && F.text === ee.text && !F.progressBar && !F.timeout && !ee.progressBar && !ee.timeout, u = () => {
|
|
13842
13842
|
Te(n, (F) => {
|
|
13843
13843
|
F.reposition();
|
|
13844
13844
|
});
|
|
13845
13845
|
}, f = (F) => {
|
|
13846
13846
|
n.push(F);
|
|
13847
13847
|
}, b = (F) => {
|
|
13848
|
-
vr(n, (
|
|
13849
|
-
n.splice(
|
|
13848
|
+
vr(n, (ee) => ee === F).each((ee) => {
|
|
13849
|
+
n.splice(ee, 1);
|
|
13850
13850
|
});
|
|
13851
|
-
}, y = (F,
|
|
13851
|
+
}, y = (F, ee = !0) => e.removed || !L6(e) ? {} : (ee && e.dispatch("BeforeOpenNotification", { notification: F }), ps(n, (oe) => l(o().getArgs(oe), F)).getOrThunk(() => {
|
|
13852
13852
|
e.editorManager.setActive(e);
|
|
13853
13853
|
const oe = o().open(F, () => {
|
|
13854
13854
|
b(oe), u(), $O(e) && r().fold(() => e.focus(), (K) => A_(ie.fromDom(K.getEl())));
|
|
@@ -13861,17 +13861,17 @@ Options:${f}${o.join(f)}` : "";
|
|
|
13861
13861
|
}, P = ot(n);
|
|
13862
13862
|
return ((F) => {
|
|
13863
13863
|
F.on("SkinLoaded", () => {
|
|
13864
|
-
const
|
|
13865
|
-
|
|
13866
|
-
text:
|
|
13864
|
+
const ee = m3(F);
|
|
13865
|
+
ee && y({
|
|
13866
|
+
text: ee,
|
|
13867
13867
|
type: "warning",
|
|
13868
13868
|
timeout: 0
|
|
13869
13869
|
}, !1), u();
|
|
13870
13870
|
}), F.on("show ResizeEditor ResizeWindow NodeChange", () => {
|
|
13871
13871
|
requestAnimationFrame(u);
|
|
13872
13872
|
}), F.on("remove", () => {
|
|
13873
|
-
Te(n.slice(), (
|
|
13874
|
-
o().close(
|
|
13873
|
+
Te(n.slice(), (ee) => {
|
|
13874
|
+
o().close(ee);
|
|
13875
13875
|
});
|
|
13876
13876
|
});
|
|
13877
13877
|
})(e), {
|
|
@@ -13912,7 +13912,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
13912
13912
|
}, P = (K, se) => k(() => o().open(K, se, b)), B = (K) => k(() => o().openUrl(K, b)), F = (K, se, we) => {
|
|
13913
13913
|
const ke = o();
|
|
13914
13914
|
ke.alert(K, r(we || ke, se));
|
|
13915
|
-
},
|
|
13915
|
+
}, ee = (K, se, we) => {
|
|
13916
13916
|
const ke = o();
|
|
13917
13917
|
ke.confirm(K, r(we || ke, se));
|
|
13918
13918
|
}, oe = () => {
|
|
@@ -13928,7 +13928,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
13928
13928
|
open: P,
|
|
13929
13929
|
openUrl: B,
|
|
13930
13930
|
alert: F,
|
|
13931
|
-
confirm:
|
|
13931
|
+
confirm: ee,
|
|
13932
13932
|
close: oe
|
|
13933
13933
|
};
|
|
13934
13934
|
}, FF = (e, n) => {
|
|
@@ -13996,23 +13996,23 @@ Options:${f}${o.join(f)}` : "";
|
|
|
13996
13996
|
} };
|
|
13997
13997
|
}, W6 = () => {
|
|
13998
13998
|
let o = {};
|
|
13999
|
-
const r = (F,
|
|
13999
|
+
const r = (F, ee) => ({
|
|
14000
14000
|
status: F,
|
|
14001
|
-
resultUri:
|
|
14001
|
+
resultUri: ee
|
|
14002
14002
|
}), l = (F) => F in o;
|
|
14003
14003
|
return {
|
|
14004
14004
|
hasBlobUri: l,
|
|
14005
14005
|
getResultUri: (F) => {
|
|
14006
|
-
const
|
|
14007
|
-
return
|
|
14006
|
+
const ee = o[F];
|
|
14007
|
+
return ee ? ee.resultUri : null;
|
|
14008
14008
|
},
|
|
14009
14009
|
isPending: (F) => l(F) ? o[F].status === 1 : !1,
|
|
14010
14010
|
isUploaded: (F) => l(F) ? o[F].status === 2 : !1,
|
|
14011
14011
|
markPending: (F) => {
|
|
14012
14012
|
o[F] = r(1, null);
|
|
14013
14013
|
},
|
|
14014
|
-
markUploaded: (F,
|
|
14015
|
-
o[F] = r(2,
|
|
14014
|
+
markUploaded: (F, ee) => {
|
|
14015
|
+
o[F] = r(2, ee);
|
|
14016
14016
|
},
|
|
14017
14017
|
removeFailed: (F) => {
|
|
14018
14018
|
delete o[F];
|
|
@@ -14039,14 +14039,14 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14039
14039
|
"image/webp": "webp",
|
|
14040
14040
|
"image/bmp": "bmp",
|
|
14041
14041
|
"image/tiff": "tiff"
|
|
14042
|
-
})[B.toLowerCase()] || "dat", o = (B, F,
|
|
14042
|
+
})[B.toLowerCase()] || "dat", o = (B, F, ee, oe, K) => {
|
|
14043
14043
|
if (he(B))
|
|
14044
14044
|
return r({
|
|
14045
14045
|
id: B,
|
|
14046
14046
|
name: oe,
|
|
14047
14047
|
filename: K,
|
|
14048
14048
|
blob: F,
|
|
14049
|
-
base64:
|
|
14049
|
+
base64: ee
|
|
14050
14050
|
});
|
|
14051
14051
|
if (kt(B))
|
|
14052
14052
|
return r(B);
|
|
@@ -14054,11 +14054,11 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14054
14054
|
}, r = (B) => {
|
|
14055
14055
|
if (!B.blob || !B.base64)
|
|
14056
14056
|
throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");
|
|
14057
|
-
const F = B.id || VS("blobid"),
|
|
14057
|
+
const F = B.id || VS("blobid"), ee = B.name || F, oe = B.blob;
|
|
14058
14058
|
return {
|
|
14059
14059
|
id: ot(F),
|
|
14060
|
-
name: ot(
|
|
14061
|
-
filename: ot(B.filename ||
|
|
14060
|
+
name: ot(ee),
|
|
14061
|
+
filename: ot(B.filename || ee + "." + n(oe.type)),
|
|
14062
14062
|
blob: ot(oe),
|
|
14063
14063
|
base64: ot(B.base64),
|
|
14064
14064
|
blobUri: ot(B.blobUri || URL.createObjectURL(oe)),
|
|
@@ -14072,7 +14072,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14072
14072
|
add: l,
|
|
14073
14073
|
get: f,
|
|
14074
14074
|
getByUri: (B) => u((F) => F.blobUri() === B),
|
|
14075
|
-
getByData: (B, F) => u((
|
|
14075
|
+
getByData: (B, F) => u((ee) => ee.base64() === B && ee.blob().type === F),
|
|
14076
14076
|
findFirst: u,
|
|
14077
14077
|
removeByUri: (B) => {
|
|
14078
14078
|
e = zt(e, (F) => F.blobUri() === B ? (URL.revokeObjectURL(F.blobUri()), !1) : !0);
|
|
@@ -14144,8 +14144,8 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14144
14144
|
return new Promise((we) => {
|
|
14145
14145
|
o[se] = o[se] || [], o[se].push(we);
|
|
14146
14146
|
});
|
|
14147
|
-
},
|
|
14148
|
-
return { upload: (K, se) => !n.url && B(u) ? f() :
|
|
14147
|
+
}, ee = (K, se) => (K = ct.grep(K, (we) => !e.isUploaded(we.blobUri())), Promise.all(ct.map(K, (we) => e.isPending(we.blobUri()) ? F(we) : P(we, u, se))));
|
|
14148
|
+
return { upload: (K, se) => !n.url && B(u) ? f() : ee(K, se) };
|
|
14149
14149
|
}, QF = (e) => () => e.notificationManager.open({
|
|
14150
14150
|
text: e.translate("Image uploading..."),
|
|
14151
14151
|
type: "info",
|
|
@@ -14206,7 +14206,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14206
14206
|
});
|
|
14207
14207
|
}) : Ft && e.undoManager.dispatchChange(), We;
|
|
14208
14208
|
}));
|
|
14209
|
-
}))),
|
|
14209
|
+
}))), ee = () => DC(e) ? F() : Promise.resolve([]), oe = (Se) => nr(u, (Be) => Be(Se)), K = (Se) => {
|
|
14210
14210
|
u.push(Se);
|
|
14211
14211
|
}, se = () => (r || (r = qF(l, n)), r.findAll(e.getBody(), oe).then(f((Se) => {
|
|
14212
14212
|
const Be = zt(Se, (rt) => he(rt) ? (FS(e, rt), !1) : rt.uriType !== "blob");
|
|
@@ -14223,7 +14223,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14223
14223
|
return Ft || (Ft = Vo(e.editorManager.get(), (We, Ve) => We || Ve.editorUpload && Ve.editorUpload.blobCache.getByUri(rt), void 0)), Ft ? 'src="data:' + Ft.blob().type + ";base64," + Ft.base64() + '"' : Be;
|
|
14224
14224
|
});
|
|
14225
14225
|
return e.on("SetContent", () => {
|
|
14226
|
-
DC(e) ?
|
|
14226
|
+
DC(e) ? ee() : se();
|
|
14227
14227
|
}), e.on("RawSaveContent", (Se) => {
|
|
14228
14228
|
Se.content = ke(Se.content);
|
|
14229
14229
|
}), e.on("GetContent", (Se) => {
|
|
@@ -14242,7 +14242,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14242
14242
|
blobCache: n,
|
|
14243
14243
|
addFilter: K,
|
|
14244
14244
|
uploadImages: F,
|
|
14245
|
-
uploadImagesAuto:
|
|
14245
|
+
uploadImagesAuto: ee,
|
|
14246
14246
|
scanForImages: se,
|
|
14247
14247
|
destroy: we
|
|
14248
14248
|
};
|
|
@@ -14655,9 +14655,9 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14655
14655
|
return B && B.length ? k && qe(B, k) ? k : B[0] : !1;
|
|
14656
14656
|
}, f = (y, k, P) => {
|
|
14657
14657
|
let B;
|
|
14658
|
-
const F = k[0],
|
|
14658
|
+
const F = k[0], ee = ry(F) ? F.name : void 0, oe = u(y, ee);
|
|
14659
14659
|
if (oe)
|
|
14660
|
-
|
|
14660
|
+
ee === oe ? (B = F, k = k.slice(1)) : B = oe;
|
|
14661
14661
|
else if (F)
|
|
14662
14662
|
B = F, k = k.slice(1);
|
|
14663
14663
|
else if (!P)
|
|
@@ -14709,7 +14709,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14709
14709
|
let o = "", r = PC(e);
|
|
14710
14710
|
if (r === "")
|
|
14711
14711
|
return "";
|
|
14712
|
-
const l = (F) => he(F) ? F.replace(/%(\w+)/g, "") : "", u = (F,
|
|
14712
|
+
const l = (F) => he(F) ? F.replace(/%(\w+)/g, "") : "", u = (F, ee) => bc.getStyle(ee ?? e.getBody(), F, !0);
|
|
14713
14713
|
if (he(n)) {
|
|
14714
14714
|
const F = e.formatter.get(n);
|
|
14715
14715
|
if (!F)
|
|
@@ -14726,29 +14726,29 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14726
14726
|
const y = _5(n.selector);
|
|
14727
14727
|
y.length > 0 ? (y[0].name || (y[0].name = f), f = n.selector, b = ox(y, e)) : b = ox([f], e);
|
|
14728
14728
|
const k = bc.select(f, b)[0] || b.firstChild;
|
|
14729
|
-
pg(n.styles, (F,
|
|
14729
|
+
pg(n.styles, (F, ee) => {
|
|
14730
14730
|
const oe = l(F);
|
|
14731
|
-
oe && bc.setStyle(k,
|
|
14732
|
-
}), pg(n.attributes, (F,
|
|
14731
|
+
oe && bc.setStyle(k, ee, oe);
|
|
14732
|
+
}), pg(n.attributes, (F, ee) => {
|
|
14733
14733
|
const oe = l(F);
|
|
14734
|
-
oe && bc.setAttrib(k,
|
|
14734
|
+
oe && bc.setAttrib(k, ee, oe);
|
|
14735
14735
|
}), pg(n.classes, (F) => {
|
|
14736
|
-
const
|
|
14737
|
-
bc.hasClass(k,
|
|
14736
|
+
const ee = l(F);
|
|
14737
|
+
bc.hasClass(k, ee) || bc.addClass(k, ee);
|
|
14738
14738
|
}), e.dispatch("PreviewFormats"), bc.setStyles(b, {
|
|
14739
14739
|
position: "absolute",
|
|
14740
14740
|
left: -65535
|
|
14741
14741
|
}), e.getBody().appendChild(b);
|
|
14742
14742
|
const P = u("fontSize"), B = /px$/.test(P) ? parseInt(P, 10) : 0;
|
|
14743
14743
|
return pg(r.split(" "), (F) => {
|
|
14744
|
-
let
|
|
14745
|
-
if (!(F === "background-color" && /transparent|rgba\s*\([^)]+,\s*0\)/.test(
|
|
14746
|
-
if (F === "font-size" && /em|%$/.test(
|
|
14744
|
+
let ee = u(F, k);
|
|
14745
|
+
if (!(F === "background-color" && /transparent|rgba\s*\([^)]+,\s*0\)/.test(ee) && (ee = u(F), rp(ee).toLowerCase() === "#ffffff")) && !(F === "color" && rp(ee).toLowerCase() === "#000000")) {
|
|
14746
|
+
if (F === "font-size" && /em|%$/.test(ee)) {
|
|
14747
14747
|
if (B === 0)
|
|
14748
14748
|
return;
|
|
14749
|
-
|
|
14749
|
+
ee = parseFloat(ee) / (/%$/.test(ee) ? 100 : 1) * B + "px";
|
|
14750
14750
|
}
|
|
14751
|
-
F === "border" &&
|
|
14751
|
+
F === "border" && ee && (o += "padding:0 2px;"), o += F + ":" + ee + ";";
|
|
14752
14752
|
}
|
|
14753
14753
|
}), e.dispatch("AfterPreviewFormats"), bc.remove(b), o;
|
|
14754
14754
|
}, G6 = (e) => {
|
|
@@ -15273,8 +15273,8 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15273
15273
|
const b = [], y = (B) => {
|
|
15274
15274
|
let F = EM([B]);
|
|
15275
15275
|
e === -1 && (F = F.reverse());
|
|
15276
|
-
for (let
|
|
15277
|
-
const oe = F[
|
|
15276
|
+
for (let ee = 0; ee < F.length; ee++) {
|
|
15277
|
+
const oe = F[ee];
|
|
15278
15278
|
if (!o(oe, k)) {
|
|
15279
15279
|
if (b.length > 0 && n(oe, Or(b)) && f++, oe.line = f, l(oe))
|
|
15280
15280
|
return !0;
|
|
@@ -15301,10 +15301,10 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15301
15301
|
if (b(F, B))
|
|
15302
15302
|
continue;
|
|
15303
15303
|
k.length > 0 && f(F, Or(k)) && P++;
|
|
15304
|
-
const
|
|
15305
|
-
if (
|
|
15304
|
+
const ee = ch(F);
|
|
15305
|
+
if (ee.position = y, ee.line = P, o(ee))
|
|
15306
15306
|
return k;
|
|
15307
|
-
k.push(
|
|
15307
|
+
k.push(ee);
|
|
15308
15308
|
} while (y = u(y));
|
|
15309
15309
|
return k;
|
|
15310
15310
|
}, uy = (e) => (n) => j5(e, n), dy = (e) => (n) => G5(e, n), vg = (e, n) => {
|
|
@@ -15331,8 +15331,8 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15331
15331
|
return F ? z.some(o) : z.none();
|
|
15332
15332
|
if (k(B))
|
|
15333
15333
|
return bg(n, e, B.getNode(!f), f, !1);
|
|
15334
|
-
const
|
|
15335
|
-
return
|
|
15334
|
+
const ee = y(B);
|
|
15335
|
+
return ee && k(ee) && U2(B, ee) ? bg(n, e, ee.getNode(!f), f, !1) : F ? sk(e, B.toRange(), !1) : z.none();
|
|
15336
15336
|
}, Y5 = (e, n, o, r, l, u) => {
|
|
15337
15337
|
const f = Jf(n, e.getBody(), o), b = Or(f.getClientRects()), y = n === ix.Down, k = e.getBody();
|
|
15338
15338
|
if (!b)
|
|
@@ -15341,15 +15341,15 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15341
15341
|
const se = y ? Le.fromRangeEnd(o) : Le.fromRangeStart(o);
|
|
15342
15342
|
return (y ? q9 : G9)(k, se).orThunk(() => z.from(se)).map((ke) => ke.toRange());
|
|
15343
15343
|
}
|
|
15344
|
-
const B = (y ? DM : AM)(k, uy(1), f), F = zt(B, dy(1)),
|
|
15344
|
+
const B = (y ? DM : AM)(k, uy(1), f), F = zt(B, dy(1)), ee = b.left, oe = TM(F, ee);
|
|
15345
15345
|
if (oe && u(oe.node)) {
|
|
15346
|
-
const se = Math.abs(
|
|
15346
|
+
const se = Math.abs(ee - oe.left), we = Math.abs(ee - oe.right);
|
|
15347
15347
|
return bg(n, e, oe.node, se < we, !1);
|
|
15348
15348
|
}
|
|
15349
15349
|
let K;
|
|
15350
15350
|
if (r(f) ? K = f.getNode() : l(f) ? K = f.getNode(!0) : K = Qy(o), K) {
|
|
15351
15351
|
const se = J9(n, k, uy(1), K);
|
|
15352
|
-
let we = TM(zt(se, dy(1)),
|
|
15352
|
+
let we = TM(zt(se, dy(1)), ee);
|
|
15353
15353
|
if (we || (we = Or(zt(se, dy(0))), we))
|
|
15354
15354
|
return sk(e, we.position.toRange(), !1);
|
|
15355
15355
|
}
|
|
@@ -15613,7 +15613,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15613
15613
|
const B = f.nodeName.toLowerCase();
|
|
15614
15614
|
if (!r.isValidChild(B, P.toLowerCase()) || _H(l, f, u))
|
|
15615
15615
|
return;
|
|
15616
|
-
const F = o.getRng(), { startContainer:
|
|
15616
|
+
const F = o.getRng(), { startContainer: ee, startOffset: oe, endContainer: K, endOffset: se } = F, we = Xp(e);
|
|
15617
15617
|
let ke = f.firstChild;
|
|
15618
15618
|
for (; ke; )
|
|
15619
15619
|
if (qt(ke) && Sb(r, ke), XM(r, ke)) {
|
|
@@ -15624,7 +15624,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15624
15624
|
b || (b = JM(e), f.insertBefore(b, ke), k = !0), y = ke, ke = ke.nextSibling, b.appendChild(y);
|
|
15625
15625
|
} else
|
|
15626
15626
|
b = null, ke = ke.nextSibling;
|
|
15627
|
-
k && we && (F.setStart(
|
|
15627
|
+
k && we && (F.setStart(ee, oe), F.setEnd(K, se), o.setRng(F), e.nodeChanged());
|
|
15628
15628
|
}, QM = (e, n, o) => {
|
|
15629
15629
|
const r = ie.fromDom(JM(e)), l = Gl();
|
|
15630
15630
|
_r(r, l), o(n, r);
|
|
@@ -16341,10 +16341,10 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16341
16341
|
b(k).fold(l, (P) => {
|
|
16342
16342
|
u(P.context), P.lookupData.then((B) => {
|
|
16343
16343
|
n.get().map((F) => {
|
|
16344
|
-
const
|
|
16345
|
-
F.trigger ===
|
|
16344
|
+
const ee = P.context;
|
|
16345
|
+
F.trigger === ee.trigger && (ee.text.length - F.matchLength >= 10 ? l() : (n.set({
|
|
16346
16346
|
...F,
|
|
16347
|
-
matchLength:
|
|
16347
|
+
matchLength: ee.text.length
|
|
16348
16348
|
}), o.get() ? w_(e, { lookupData: B }) : (o.set(!0), cw(e, { lookupData: B }))));
|
|
16349
16349
|
});
|
|
16350
16350
|
});
|
|
@@ -16389,8 +16389,8 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16389
16389
|
if (o === "character") {
|
|
16390
16390
|
const f = Le.fromRangeStart(l.getRng()), b = r.getParent(f.container(), r.isBlock), y = Ex(r, f), k = b && r.isEmpty(b), P = ae(b == null ? void 0 : b.previousSibling), B = ae(b == null ? void 0 : b.nextSibling);
|
|
16391
16391
|
return k && (n ? B : P) && ef(!n, u, f).exists((oe) => aP(r, oe) && !Za(y, Ex(r, oe))) ? !0 : ef(n, u, f).fold(tt, (F) => {
|
|
16392
|
-
const
|
|
16393
|
-
if (aP(r, F) && !Za(y,
|
|
16392
|
+
const ee = Ex(r, F);
|
|
16393
|
+
if (aP(r, F) && !Za(y, ee)) {
|
|
16394
16394
|
if (n || UA(e, F, !1), b && k) {
|
|
16395
16395
|
if (n && P)
|
|
16396
16396
|
return !0;
|
|
@@ -16414,14 +16414,14 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16414
16414
|
let { anchorNode: y, anchorOffset: k, focusNode: P, focusOffset: B } = b ?? {};
|
|
16415
16415
|
const F = () => {
|
|
16416
16416
|
Ze(y) && Ze(k) && Ze(P) && Ze(B) && (b == null || b.setBaseAndExtent(y, k, P, B));
|
|
16417
|
-
},
|
|
16417
|
+
}, ee = () => {
|
|
16418
16418
|
y = b == null ? void 0 : b.anchorNode, k = b == null ? void 0 : b.anchorOffset, P = b == null ? void 0 : b.focusNode, B = b == null ? void 0 : b.focusOffset;
|
|
16419
16419
|
}, oe = (se, we) => {
|
|
16420
16420
|
Te(se.childNodes, (ke) => {
|
|
16421
16421
|
g1(ke) && we.appendChild(ke);
|
|
16422
16422
|
});
|
|
16423
16423
|
}, K = e.dom.create("span", { "data-mce-bogus": "1" });
|
|
16424
|
-
oe(l, K), l.appendChild(K), F(), (o === "word" || o === "line") && (b == null || b.modify("extend", n ? "right" : "left", o)), !r.isCollapsed() && rP(r.getRng(), K) ? VA(l) : (e.execCommand(n ? "ForwardDelete" : "Delete"),
|
|
16424
|
+
oe(l, K), l.appendChild(K), F(), (o === "word" || o === "line") && (b == null || b.modify("extend", n ? "right" : "left", o)), !r.isCollapsed() && rP(r.getRng(), K) ? VA(l) : (e.execCommand(n ? "ForwardDelete" : "Delete"), ee(), oe(K, l), F()), e.dom.remove(K);
|
|
16425
16425
|
}), !0) : !1;
|
|
16426
16426
|
}, g0 = (e, n, o) => XV(e, n, o) || HA && kk(e, n, o) ? z.some(Nt) : z.none(), WA = (e) => (n, o, r = {}) => {
|
|
16427
16427
|
const l = n.getBody(), u = {
|
|
@@ -16686,21 +16686,21 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16686
16686
|
const b = e.dom, y = e.schema, k = Xl(e), P = o ? o.nodeName.toUpperCase() : "";
|
|
16687
16687
|
let B = n;
|
|
16688
16688
|
const F = y.getTextInlineElements();
|
|
16689
|
-
let
|
|
16690
|
-
u || P === "TABLE" || P === "HR" ?
|
|
16691
|
-
let oe =
|
|
16689
|
+
let ee;
|
|
16690
|
+
u || P === "TABLE" || P === "HR" ? ee = b.create(u || k, f || {}) : ee = o.cloneNode(!1);
|
|
16691
|
+
let oe = ee;
|
|
16692
16692
|
if (!l)
|
|
16693
|
-
b.setAttrib(
|
|
16693
|
+
b.setAttrib(ee, "style", null), b.setAttrib(ee, "class", null);
|
|
16694
16694
|
else
|
|
16695
16695
|
do
|
|
16696
16696
|
if (F[B.nodeName]) {
|
|
16697
16697
|
if (Di(B) || Oi(B))
|
|
16698
16698
|
continue;
|
|
16699
16699
|
const K = B.cloneNode(!1);
|
|
16700
|
-
b.setAttrib(K, "id", ""),
|
|
16700
|
+
b.setAttrib(K, "id", ""), ee.hasChildNodes() ? (K.appendChild(ee.firstChild), ee.appendChild(K)) : (oe = K, ee.appendChild(K));
|
|
16701
16701
|
}
|
|
16702
16702
|
while ((B = B.parentNode) && B !== r);
|
|
16703
|
-
return X1(e,
|
|
16703
|
+
return X1(e, ee), ZA(oe), ee;
|
|
16704
16704
|
}, mP = (e, n) => e.dom.getParent(n, nt), sz = (e, n, o) => {
|
|
16705
16705
|
let r = n;
|
|
16706
16706
|
for (; r && r !== e && ae(r.nextSibling); ) {
|
|
@@ -16752,7 +16752,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16752
16752
|
const B = P.extractContents();
|
|
16753
16753
|
if (l === "LI" && lz(B, "LI")) {
|
|
16754
16754
|
const F = zt(Ke(k.children, ie.fromDom), no(lc("br")));
|
|
16755
|
-
k = B.firstChild, u.insertAfter(B, o), Te(F, (
|
|
16755
|
+
k = B.firstChild, u.insertAfter(B, o), Te(F, (ee) => nd(ie.fromDom(k), ee)), y && k.setAttribute("style", y);
|
|
16756
16756
|
} else
|
|
16757
16757
|
u.insertAfter(B, o), u.insertAfter(k, o);
|
|
16758
16758
|
u.remove(r);
|
|
@@ -16794,8 +16794,8 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16794
16794
|
let k = b.getParent(r, b.isBlock);
|
|
16795
16795
|
if (!k || !YA(b, k)) {
|
|
16796
16796
|
if (k = k || y, !k.hasChildNodes()) {
|
|
16797
|
-
const
|
|
16798
|
-
return X1(e,
|
|
16797
|
+
const ee = b.create(n);
|
|
16798
|
+
return X1(e, ee), k.appendChild(ee), o.setStart(ee, 0), o.setEnd(ee, 0), ee;
|
|
16799
16799
|
}
|
|
16800
16800
|
let P = r;
|
|
16801
16801
|
for (; P && P.parentNode !== k; )
|
|
@@ -16805,8 +16805,8 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16805
16805
|
B = P, P = P.previousSibling;
|
|
16806
16806
|
const F = (f = B == null ? void 0 : B.parentElement) === null || f === void 0 ? void 0 : f.nodeName;
|
|
16807
16807
|
if (B && F && e.schema.isValidChild(F, n.toLowerCase())) {
|
|
16808
|
-
const
|
|
16809
|
-
for (X1(e, oe),
|
|
16808
|
+
const ee = B.parentNode, oe = b.create(n);
|
|
16809
|
+
for (X1(e, oe), ee.insertBefore(oe, B), P = B; P && !b.isBlock(P); ) {
|
|
16810
16810
|
const K = P.nextSibling;
|
|
16811
16811
|
oe.appendChild(P), P = K;
|
|
16812
16812
|
}
|
|
@@ -16824,7 +16824,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16824
16824
|
}, bP = {
|
|
16825
16825
|
insert: (e, n) => {
|
|
16826
16826
|
let o, r, l, u, f = !1;
|
|
16827
|
-
const b = e.dom, y = e.schema, k = y.getNonEmptyElements(), P = e.selection.getRng(), B = Xl(e), F = ie.fromDom(P.startContainer),
|
|
16827
|
+
const b = e.dom, y = e.schema, k = y.getNonEmptyElements(), P = e.selection.getRng(), B = Xl(e), F = ie.fromDom(P.startContainer), ee = Cu(F, P.startOffset), oe = ee.exists((st) => Gs(st) && !Vn(st)), K = P.collapsed && oe, se = (st, Kt) => jA(e, o, wt, rt, a3(e), st, Kt), we = (st) => {
|
|
16828
16828
|
const Kt = XA(st, o, r);
|
|
16829
16829
|
if (ut(o) && (st ? Kt > 0 : Kt < o.data.length))
|
|
16830
16830
|
return !1;
|
|
@@ -16878,7 +16878,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16878
16878
|
const We = wt.parentNode;
|
|
16879
16879
|
let Ve;
|
|
16880
16880
|
if (K)
|
|
16881
|
-
Ve = se(B),
|
|
16881
|
+
Ve = se(B), ee.fold(() => {
|
|
16882
16882
|
_r(F, ie.fromDom(Ve));
|
|
16883
16883
|
}, (st) => {
|
|
16884
16884
|
jr(st, ie.fromDom(Ve));
|
|
@@ -16914,13 +16914,13 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16914
16914
|
}, bz = (e, n) => {
|
|
16915
16915
|
const o = e.selection, r = e.dom, l = o.getRng();
|
|
16916
16916
|
let u, f = !1;
|
|
16917
|
-
S(r, l).each((
|
|
16918
|
-
l.setStart(
|
|
16917
|
+
S(r, l).each((ee) => {
|
|
16918
|
+
l.setStart(ee.startContainer, ee.startOffset), l.setEnd(ee.endContainer, ee.endOffset);
|
|
16919
16919
|
});
|
|
16920
16920
|
let b = l.startOffset, y = l.startContainer;
|
|
16921
16921
|
if (qt(y) && y.hasChildNodes()) {
|
|
16922
|
-
const
|
|
16923
|
-
y = y.childNodes[Math.min(b, y.childNodes.length - 1)] || y,
|
|
16922
|
+
const ee = b > y.childNodes.length - 1;
|
|
16923
|
+
y = y.childNodes[Math.min(b, y.childNodes.length - 1)] || y, ee && ut(y) ? b = y.data.length : b = 0;
|
|
16924
16924
|
}
|
|
16925
16925
|
let k = r.getParent(y, r.isBlock);
|
|
16926
16926
|
const P = k && k.parentNode ? r.getParent(k.parentNode, r.isBlock) : null, B = P ? P.nodeName.toUpperCase() : "", F = !!(n && n.ctrlKey);
|
|
@@ -17727,8 +17727,8 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
17727
17727
|
let se = K, we = u.getStyle(f, l[oe], !0);
|
|
17728
17728
|
/color/.test(l[oe]) && (se = uB(se), we = uB(we)), we !== se && (F[l[oe]] = K);
|
|
17729
17729
|
}
|
|
17730
|
-
const
|
|
17731
|
-
return
|
|
17730
|
+
const ee = u.serializeStyle(F, "span");
|
|
17731
|
+
return ee ? y + ' style="' + ee + '"' + P : y + P;
|
|
17732
17732
|
});
|
|
17733
17733
|
} else
|
|
17734
17734
|
n = n.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi, "$1$3");
|
|
@@ -17805,9 +17805,9 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
17805
17805
|
node: e.node,
|
|
17806
17806
|
position: UU(e, n) < WU(e, n) ? tb.Before : tb.After
|
|
17807
17807
|
}), zk = (e, n, o) => n > e.left && n < e.right ? 0 : Math.min(Math.abs(e.left - n), Math.abs(e.right - n)), Uk = (e, n, o, r) => {
|
|
17808
|
-
const l = (B) => uo(B.node) ? z.some(B) : qt(B.node) ? Uk(wr(B.node.childNodes), n, o, !1) : z.none(), u = (B, F,
|
|
17809
|
-
const
|
|
17810
|
-
return Bl(
|
|
17808
|
+
const l = (B) => uo(B.node) ? z.some(B) : qt(B.node) ? Uk(wr(B.node.childNodes), n, o, !1) : z.none(), u = (B, F, ee) => l(F).filter((oe) => Math.abs(ee(B, n, o) - ee(oe, n, o)) < 2 && ut(oe.node)), f = (B, F) => {
|
|
17809
|
+
const ee = Ko(B, (oe, K) => F(oe, n, o) - F(K, n, o));
|
|
17810
|
+
return Bl(ee, l).map((oe) => r && !ut(oe.node) && ee.length > 1 ? u(oe, ee[1], F).getOr(oe) : oe);
|
|
17811
17811
|
}, [b, y] = qU(EM(e), o), {
|
|
17812
17812
|
pass: k,
|
|
17813
17813
|
fail: P
|
|
@@ -17967,8 +17967,8 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
17967
17967
|
behavior: "smooth"
|
|
17968
17968
|
});
|
|
17969
17969
|
}, TB = Kk("left", -Zk), EB = Kk("left", Zk), rW = Kk("top", -Zk), AB = Kk("top", Zk), _D = (e, n, o, r, l, u, f, b, y, k, P, B) => {
|
|
17970
|
-
let F = 0,
|
|
17971
|
-
e.style.left = n.pageX + "px", e.style.top = n.pageY + "px", n.pageX + o > l && (F = n.pageX + o - l), n.pageY + r > u && (
|
|
17970
|
+
let F = 0, ee = 0;
|
|
17971
|
+
e.style.left = n.pageX + "px", e.style.top = n.pageY + "px", n.pageX + o > l && (F = n.pageX + o - l), n.pageY + r > u && (ee = n.pageY + r - u), e.style.width = o - F + "px", e.style.height = r - ee + "px";
|
|
17972
17972
|
const oe = y.clientHeight, K = y.clientWidth, se = f + y.getBoundingClientRect().top, we = b + y.getBoundingClientRect().left;
|
|
17973
17973
|
P.on((ke) => {
|
|
17974
17974
|
ke.intervalId.clear(), ke.dragging && B && (f + jk >= oe ? ke.intervalId.set(AB(k)) : f - jk <= 0 ? ke.intervalId.set(rW(k)) : b + jk >= K ? ke.intervalId.set(EB(k)) : b - jk <= 0 ? ke.intervalId.set(TB(k)) : se + Gk >= window.innerHeight ? ke.intervalId.set(AB(window)) : se - Gk <= 0 ? ke.intervalId.set(rW(window)) : we + Gk >= window.innerWidth ? ke.intervalId.set(EB(window)) : we - Gk <= 0 && ke.intervalId.set(TB(window)));
|
|
@@ -18126,7 +18126,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18126
18126
|
before: Ve
|
|
18127
18127
|
}).isDefaultPrevented() ? null : (st && n.scrollIntoView(We, Ft === -1), l.show(Ve, We)), F = (Ft) => {
|
|
18128
18128
|
Ft.hasAttribute("data-mce-caret") && (cu(Ft), n.scrollIntoView(Ft));
|
|
18129
|
-
},
|
|
18129
|
+
}, ee = () => {
|
|
18130
18130
|
e.on("click", (We) => {
|
|
18131
18131
|
o.isEditable(We.target) || (We.preventDefault(), e.focus());
|
|
18132
18132
|
}), e.on("blur NewBlock", Be), e.on("ResizeWindow FullscreenStateChanged", l.reposition), e.on("tap", (We) => {
|
|
@@ -18233,7 +18233,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18233
18233
|
}, wt = () => {
|
|
18234
18234
|
l.hide();
|
|
18235
18235
|
};
|
|
18236
|
-
return Dh(e) ||
|
|
18236
|
+
return Dh(e) || ee(), {
|
|
18237
18237
|
showCaret: B,
|
|
18238
18238
|
showBlockCaretContainer: F,
|
|
18239
18239
|
hideFakeCaret: wt,
|
|
@@ -18363,8 +18363,8 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18363
18363
|
} else {
|
|
18364
18364
|
const B = f.offset - l.length;
|
|
18365
18365
|
return bk(f.container, B, o).map((F) => {
|
|
18366
|
-
const
|
|
18367
|
-
return
|
|
18366
|
+
const ee = e.createRng();
|
|
18367
|
+
return ee.setStart(F.container, F.offset), ee.setEnd(f.container, f.offset), ee;
|
|
18368
18368
|
}).filter((F) => F.toString() === l).orThunk(() => HB(e, n, o, bf(f.container, 0)));
|
|
18369
18369
|
}
|
|
18370
18370
|
});
|
|
@@ -18400,8 +18400,8 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18400
18400
|
const B = t4(e, o.remainingPatterns, k.container, k.offset, n, r), F = B.getOr({
|
|
18401
18401
|
matches: [],
|
|
18402
18402
|
position: k
|
|
18403
|
-
}),
|
|
18404
|
-
return kW(l, f,
|
|
18403
|
+
}), ee = F.position;
|
|
18404
|
+
return kW(l, f, ee.container, ee.offset, n, B.isNone()).map((K) => {
|
|
18405
18405
|
const se = wW(l, u, K, r);
|
|
18406
18406
|
return {
|
|
18407
18407
|
matches: F.matches.concat([{
|
|
@@ -18493,7 +18493,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18493
18493
|
const k = e.selection.getRng(), P = yg(k.startContainer, k.startOffset, e.dom.getRoot());
|
|
18494
18494
|
e.execCommand("mceInsertNewLine"), P.each((B) => {
|
|
18495
18495
|
const F = B.container;
|
|
18496
|
-
F.data.charAt(B.offset - 1) === Kg && (F.deleteData(B.offset - 1, 1), ob(e.dom, F.parentNode, (
|
|
18496
|
+
F.data.charAt(B.offset - 1) === Kg && (F.deleteData(B.offset - 1, 1), ob(e.dom, F.parentNode, (ee) => ee === e.dom.getRoot()));
|
|
18497
18497
|
});
|
|
18498
18498
|
}), !0) : !1;
|
|
18499
18499
|
}).getOr(!1);
|
|
@@ -18544,7 +18544,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18544
18544
|
e.getDoc().execCommand(Qt, !1, String($n));
|
|
18545
18545
|
} catch {
|
|
18546
18546
|
}
|
|
18547
|
-
},
|
|
18547
|
+
}, ee = (Qt) => Qt.isDefaultPrevented(), oe = () => {
|
|
18548
18548
|
const Qt = (Ct) => {
|
|
18549
18549
|
const Mn = l.create("body"), Oo = Ct.cloneContents();
|
|
18550
18550
|
return Mn.appendChild(Oo), u.serializer.serialize(Mn, { format: "html" });
|
|
@@ -18556,7 +18556,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18556
18556
|
};
|
|
18557
18557
|
e.on("keydown", (Ct) => {
|
|
18558
18558
|
const Mn = Ct.keyCode;
|
|
18559
|
-
if (!
|
|
18559
|
+
if (!ee(Ct) && (Mn === r || Mn === o) && e.selection.isEditable()) {
|
|
18560
18560
|
const Oo = e.selection.isCollapsed(), Ss = e.getBody();
|
|
18561
18561
|
if (Oo && !pr(ie.fromDom(Ss)) || !Oo && !$n(e.selection.getRng()))
|
|
18562
18562
|
return;
|
|
@@ -18578,7 +18578,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18578
18578
|
});
|
|
18579
18579
|
}, we = () => {
|
|
18580
18580
|
e.on("keydown", (Qt) => {
|
|
18581
|
-
if (!
|
|
18581
|
+
if (!ee(Qt) && Qt.keyCode === o) {
|
|
18582
18582
|
if (!e.getBody().getElementsByTagName("hr").length)
|
|
18583
18583
|
return;
|
|
18584
18584
|
if (u.isCollapsed() && u.getRng().startOffset === 0) {
|
|
@@ -18593,7 +18593,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18593
18593
|
});
|
|
18594
18594
|
}, ke = () => {
|
|
18595
18595
|
Range.prototype.getClientRects || e.on("mousedown", (Qt) => {
|
|
18596
|
-
if (!
|
|
18596
|
+
if (!ee(Qt) && Qt.target.nodeName === "HTML") {
|
|
18597
18597
|
const $n = e.getBody();
|
|
18598
18598
|
$n.blur(), Fu.setEditorTimeout(e, () => {
|
|
18599
18599
|
$n.focus();
|
|
@@ -18618,9 +18618,9 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18618
18618
|
}, $n = () => !u.isCollapsed() && l.getParent(u.getStart(), l.isBlock) !== l.getParent(u.getEnd(), l.isBlock);
|
|
18619
18619
|
e.on("keypress", (Ct) => {
|
|
18620
18620
|
let Mn;
|
|
18621
|
-
return !
|
|
18621
|
+
return !ee(Ct) && (Ct.keyCode === 8 || Ct.keyCode === 46) && $n() ? (Mn = Qt(), e.getDoc().execCommand("delete", !1), Mn(), Ct.preventDefault(), !1) : !0;
|
|
18622
18622
|
}), l.bind(e.getDoc(), "cut", (Ct) => {
|
|
18623
|
-
if (!
|
|
18623
|
+
if (!ee(Ct) && $n()) {
|
|
18624
18624
|
const Mn = Qt();
|
|
18625
18625
|
Fu.setEditorTimeout(e, () => {
|
|
18626
18626
|
Mn();
|
|
@@ -18629,7 +18629,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18629
18629
|
});
|
|
18630
18630
|
}, rt = () => {
|
|
18631
18631
|
e.on("keydown", (Qt) => {
|
|
18632
|
-
if (!
|
|
18632
|
+
if (!ee(Qt) && Qt.keyCode === o && u.isCollapsed() && u.getRng().startOffset === 0) {
|
|
18633
18633
|
const $n = u.getNode().previousSibling;
|
|
18634
18634
|
if ($n && $n.nodeName && $n.nodeName.toLowerCase() === "table")
|
|
18635
18635
|
return Qt.preventDefault(), !1;
|
|
@@ -18638,7 +18638,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18638
18638
|
});
|
|
18639
18639
|
}, wt = () => {
|
|
18640
18640
|
e.on("keydown", (Qt) => {
|
|
18641
|
-
if (
|
|
18641
|
+
if (ee(Qt) || Qt.keyCode !== Wt.BACKSPACE)
|
|
18642
18642
|
return;
|
|
18643
18643
|
let $n = u.getRng();
|
|
18644
18644
|
const Ct = $n.startContainer, Mn = $n.startOffset, Oo = l.getRoot();
|
|
@@ -19888,16 +19888,16 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
19888
19888
|
console.error(E7(`Invalid default value passed for the "${e}" option`, r));
|
|
19889
19889
|
}
|
|
19890
19890
|
}, YZ = (e, n) => {
|
|
19891
|
-
const o = {}, r = {}, l = (B, F,
|
|
19892
|
-
const oe = y0(F,
|
|
19891
|
+
const o = {}, r = {}, l = (B, F, ee) => {
|
|
19892
|
+
const oe = y0(F, ee);
|
|
19893
19893
|
return A7(oe) ? (r[B] = oe.value, !0) : (console.warn(E7(`Invalid value passed for the ${B} option`, oe)), !1);
|
|
19894
19894
|
}, u = (B, F) => {
|
|
19895
|
-
const
|
|
19895
|
+
const ee = KZ(F) ? qZ(F.processor) : F.processor, oe = xf(B, F.default, ee);
|
|
19896
19896
|
o[B] = {
|
|
19897
19897
|
...F,
|
|
19898
19898
|
default: oe,
|
|
19899
|
-
processor:
|
|
19900
|
-
}, Xo(r, B).orThunk(() => Xo(n, B)).each((se) => l(B, se,
|
|
19899
|
+
processor: ee
|
|
19900
|
+
}, Xo(r, B).orThunk(() => Xo(n, B)).each((se) => l(B, se, ee));
|
|
19901
19901
|
}, f = (B) => pn(o, B);
|
|
19902
19902
|
return {
|
|
19903
19903
|
register: u,
|
|
@@ -19905,8 +19905,8 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
19905
19905
|
get: (B) => Xo(r, B).orThunk(() => Xo(o, B).map((F) => F.default)).getOrUndefined(),
|
|
19906
19906
|
set: (B, F) => {
|
|
19907
19907
|
if (f(B)) {
|
|
19908
|
-
const
|
|
19909
|
-
return
|
|
19908
|
+
const ee = o[B];
|
|
19909
|
+
return ee.immutable ? (console.error(`"${B}" is an immutable option and cannot be updated`), !1) : l(B, F, ee.processor);
|
|
19910
19910
|
} else
|
|
19911
19911
|
return console.warn(`"${B}" is not a registered option. Ensure the option has been registered before setting a value.`), !1;
|
|
19912
19912
|
},
|
|
@@ -20048,9 +20048,9 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
20048
20048
|
}
|
|
20049
20049
|
}
|
|
20050
20050
|
const rj = () => {
|
|
20051
|
-
const e = {}, n = {}, o = {}, r = {}, l = {}, u = {}, f = {}, b = {}, y = (P, B) => (F,
|
|
20051
|
+
const e = {}, n = {}, o = {}, r = {}, l = {}, u = {}, f = {}, b = {}, y = (P, B) => (F, ee) => {
|
|
20052
20052
|
P[F.toLowerCase()] = {
|
|
20053
|
-
...
|
|
20053
|
+
...ee,
|
|
20054
20054
|
type: B
|
|
20055
20055
|
};
|
|
20056
20056
|
}, k = (P, B) => r[P.toLowerCase()] = B;
|
|
@@ -20412,7 +20412,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
20412
20412
|
let P = 0;
|
|
20413
20413
|
const B = [];
|
|
20414
20414
|
let F;
|
|
20415
|
-
const
|
|
20415
|
+
const ee = (oe, K, se) => {
|
|
20416
20416
|
const we = new g4(oe, K, n);
|
|
20417
20417
|
B.push(we), we.on("init", () => {
|
|
20418
20418
|
++P === F.length && y(B);
|
|
@@ -20421,7 +20421,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
20421
20421
|
Sy.unbind(window, "ready", k), f("onpageload"), F = di(b(e)), ct.each(F, (oe) => {
|
|
20422
20422
|
ij(n.get(oe.id));
|
|
20423
20423
|
}), F = ct.grep(F, (oe) => !n.get(oe.id)), F.length === 0 ? y([]) : h4(F, (oe) => {
|
|
20424
|
-
l(e, oe) ? nx("Could not initialize inline editor on invalid inline target element", oe) :
|
|
20424
|
+
l(e, oe) ? nx("Could not initialize inline editor on invalid inline target element", oe) : ee(u(oe), e, oe);
|
|
20425
20425
|
});
|
|
20426
20426
|
};
|
|
20427
20427
|
return Sy.bind(window, "ready", k), new Promise((P) => {
|
|
@@ -20565,8 +20565,8 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
20565
20565
|
if (e[y] !== void 0)
|
|
20566
20566
|
return e[y];
|
|
20567
20567
|
{
|
|
20568
|
-
const F = new Promise((
|
|
20569
|
-
const K = pj(
|
|
20568
|
+
const F = new Promise((ee, oe) => {
|
|
20569
|
+
const K = pj(ee, oe);
|
|
20570
20570
|
n[y] = K.resolve, ra.ScriptLoader.loadScript(k).then(() => K.start(B), () => K.reject(P));
|
|
20571
20571
|
});
|
|
20572
20572
|
return e[y] = F, F;
|
|
@@ -20899,7 +20899,7 @@ tinymce.IconManager.add("default", {
|
|
|
20899
20899
|
}, G = (t) => {
|
|
20900
20900
|
const s = typeof t;
|
|
20901
20901
|
return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" && re(t, String, (a, c) => c.isPrototypeOf(a)) ? "string" : s;
|
|
20902
|
-
}, _e = (t) => (s) => G(s) === t, ne = (t) => (s) => typeof s === t, Z = (t) => (s) => t === s, xe = (t, s) => $e(t) && re(t, s, (a, c) => A(a) === c),
|
|
20902
|
+
}, _e = (t) => (s) => G(s) === t, ne = (t) => (s) => typeof s === t, Z = (t) => (s) => t === s, xe = (t, s) => $e(t) && re(t, s, (a, c) => A(a) === c), Q = _e("string"), $e = _e("object"), at = (t) => xe(t, Object), yt = _e("array"), hn = Z(null), Et = ne("boolean"), io = Z(void 0), lo = (t) => t == null, eo = (t) => !lo(t), Ot = ne("function"), Ls = ne("number"), un = (t, s) => {
|
|
20903
20903
|
if (yt(t)) {
|
|
20904
20904
|
for (let a = 0, c = t.length; a < c; ++a)
|
|
20905
20905
|
if (!s(t[a]))
|
|
@@ -21272,7 +21272,7 @@ tinymce.IconManager.add("default", {
|
|
|
21272
21272
|
throw new Error("Body is not available yet");
|
|
21273
21273
|
return Ae.fromDom(s);
|
|
21274
21274
|
}, vu = (t, s, a) => {
|
|
21275
|
-
if (
|
|
21275
|
+
if (Q(a) || Et(a) || Ls(a))
|
|
21276
21276
|
t.setAttribute(s, a + "");
|
|
21277
21277
|
else
|
|
21278
21278
|
throw console.error("Invalid call to Attribute.set. Key ", s, ":: Value ", a, ":: Element ", t), new Error("Attribute value was not simple");
|
|
@@ -21292,7 +21292,7 @@ tinymce.IconManager.add("default", {
|
|
|
21292
21292
|
}, le = (t, s) => {
|
|
21293
21293
|
t.dom.removeAttribute(s);
|
|
21294
21294
|
}, Fe = (t) => Wo(t.dom.attributes, (s, a) => (s[a.name] = a.value, s), {}), $t = (t, s, a) => {
|
|
21295
|
-
if (!
|
|
21295
|
+
if (!Q(a))
|
|
21296
21296
|
throw console.error("Invalid call to CSS.set. Property ", s, ":: Value ", a, ":: Element ", t), new Error("CSS value must be a string: " + a);
|
|
21297
21297
|
Or(t) && t.style.setProperty(s, a);
|
|
21298
21298
|
}, Qn = (t, s) => {
|
|
@@ -22002,7 +22002,7 @@ tinymce.IconManager.add("default", {
|
|
|
22002
22002
|
}, Tu = ia(ku, rn), Pr = ae(Rn), sd = (t, s) => Jt((a) => {
|
|
22003
22003
|
const c = typeof a;
|
|
22004
22004
|
return t(a) ? cr.svalue(a) : cr.serror(`Expected type: ${s} but got: ${c}`);
|
|
22005
|
-
}), jg = sd(Ls, "number"), ya = sd(
|
|
22005
|
+
}), jg = sd(Ls, "number"), ya = sd(Q, "string"), ru = sd(Et, "boolean"), Yh = sd(Ot, "function"), Eu = (t) => {
|
|
22006
22006
|
if (Object(t) !== t)
|
|
22007
22007
|
return !0;
|
|
22008
22008
|
switch ({}.toString.call(t).slice(8, -1)) {
|
|
@@ -23271,7 +23271,7 @@ Receiver: ` + jd(s.element), E, g.data);
|
|
|
23271
23271
|
const w = ls(t, g).split(/\s*,\s*/);
|
|
23272
23272
|
return so(w, ua);
|
|
23273
23273
|
}, a = (g) => {
|
|
23274
|
-
if (
|
|
23274
|
+
if (Q(g) && /^[\d.]+/.test(g)) {
|
|
23275
23275
|
const p = parseFloat(g);
|
|
23276
23276
|
return yl(g, "ms") ? p : p * 1e3;
|
|
23277
23277
|
} else
|
|
@@ -27428,9 +27428,9 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
27428
27428
|
t.auto = "auto", t.top = "top", t.bottom = "bottom";
|
|
27429
27429
|
})(Dw || (Dw = {}));
|
|
27430
27430
|
const Ds = (t) => (s) => s.options.get(t), Ow = (t) => (s) => D.from(t(s)), _R = (t) => {
|
|
27431
|
-
const s = Lv.deviceType.isPhone(), a = Lv.deviceType.isTablet() || s, c = t.options.register, d = (p) =>
|
|
27431
|
+
const s = Lv.deviceType.isPhone(), a = Lv.deviceType.isTablet() || s, c = t.options.register, d = (p) => Q(p) || p === !1, g = (p) => Q(p) || Ls(p);
|
|
27432
27432
|
c("skin", {
|
|
27433
|
-
processor: (p) =>
|
|
27433
|
+
processor: (p) => Q(p) || p === !1,
|
|
27434
27434
|
default: "oxide"
|
|
27435
27435
|
}), c("skin_url", { processor: "string" }), c("height", {
|
|
27436
27436
|
processor: g,
|
|
@@ -27466,13 +27466,13 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
27466
27466
|
processor: "string",
|
|
27467
27467
|
default: ""
|
|
27468
27468
|
}), c("menubar", {
|
|
27469
|
-
processor: (p) =>
|
|
27469
|
+
processor: (p) => Q(p) || Et(p),
|
|
27470
27470
|
default: !s
|
|
27471
27471
|
}), c("menu", {
|
|
27472
27472
|
processor: "object",
|
|
27473
27473
|
default: {}
|
|
27474
27474
|
}), c("toolbar", {
|
|
27475
|
-
processor: (p) => Et(p) ||
|
|
27475
|
+
processor: (p) => Et(p) || Q(p) || yt(p) ? {
|
|
27476
27476
|
value: p,
|
|
27477
27477
|
valid: !0
|
|
27478
27478
|
} : {
|
|
@@ -27551,14 +27551,14 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
27551
27551
|
return CR.baseURL + "/skins/ui/" + a;
|
|
27552
27552
|
}
|
|
27553
27553
|
}, rS = (t) => D.from(t.options.get("skin_url")), LR = (t) => t.options.get("line_height_formats").split(" "), aS = (t) => {
|
|
27554
|
-
const s = Q_(t), a =
|
|
27554
|
+
const s = Q_(t), a = Q(s), c = yt(s) && s.length > 0;
|
|
27555
27555
|
return !Mw(t) && (c || a || s === !0);
|
|
27556
27556
|
}, sE = (t) => {
|
|
27557
|
-
const s = ho(9, (c) => t.options.get("toolbar" + (c + 1))), a = so(s,
|
|
27557
|
+
const s = ho(9, (c) => t.options.get("toolbar" + (c + 1))), a = so(s, Q);
|
|
27558
27558
|
return pn(a.length > 0, a);
|
|
27559
27559
|
}, Mw = (t) => sE(t).fold(() => {
|
|
27560
27560
|
const s = Q_(t);
|
|
27561
|
-
return un(s,
|
|
27561
|
+
return un(s, Q) && s.length > 0;
|
|
27562
27562
|
}, Nt), rE = (t) => $w(t) === Dw.bottom, FR = (t) => {
|
|
27563
27563
|
var s;
|
|
27564
27564
|
if (!t.inline)
|
|
@@ -28758,7 +28758,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
28758
28758
|
}, Pi = (t, s) => () => t.execCommand(s);
|
|
28759
28759
|
var o0 = tinymce.util.Tools.resolve("tinymce.util.LocalStorage");
|
|
28760
28760
|
const GE = {}, qE = (t, s = 10) => {
|
|
28761
|
-
const a = o0.getItem(t), c =
|
|
28761
|
+
const a = o0.getItem(t), c = Q(a) ? JSON.parse(a) : [], g = ((E) => s - E.length < 0 ? E.slice(0, s) : E)(c), p = (E) => {
|
|
28762
28762
|
Pe(g, E).each(w), g.unshift(E), g.length > s && g.pop(), o0.setItem(t, JSON.stringify(g));
|
|
28763
28763
|
}, w = (E) => {
|
|
28764
28764
|
g.splice(E, 1);
|
|
@@ -28811,7 +28811,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
28811
28811
|
});
|
|
28812
28812
|
return s;
|
|
28813
28813
|
}, gg = (t) => (s) => s.options.get(t), XE = "#000000", EL = (t) => {
|
|
28814
|
-
const s = t.options.register, a = (d) => un(d,
|
|
28814
|
+
const s = t.options.register, a = (d) => un(d, Q) ? {
|
|
28815
28815
|
value: TL(d),
|
|
28816
28816
|
valid: !0
|
|
28817
28817
|
} : {
|
|
@@ -31578,7 +31578,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
31578
31578
|
"colorcustom.rgb.range": "Range 0 to 255",
|
|
31579
31579
|
"aria.color.picker": "Color Picker",
|
|
31580
31580
|
"aria.input.invalid": "Invalid input"
|
|
31581
|
-
}, G9 = (t) => (s) =>
|
|
31581
|
+
}, G9 = (t) => (s) => Q(s) ? t.translate(j9[s]) : t.translate(s), q9 = (t, s, a) => {
|
|
31582
31582
|
const c = (C) => "tox-" + C, d = wM(G9(s), c), g = (C) => {
|
|
31583
31583
|
dn(C, hg, {
|
|
31584
31584
|
name: "hex-valid",
|
|
@@ -32146,7 +32146,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
32146
32146
|
}),
|
|
32147
32147
|
fetch: (H) => tc.nu(In(t.fetch, H))
|
|
32148
32148
|
})).asSpec();
|
|
32149
|
-
}, iH = (t) =>
|
|
32149
|
+
}, iH = (t) => Q(t), NM = (t) => t.type === "separator", uH = (t) => xo(t, "getSubmenuItems"), IM = { type: "separator" }, dH = (t, s) => {
|
|
32150
32150
|
const a = Wo(t, (c, d) => iH(d) ? d === "" ? c : d === "|" ? c.length > 0 && !NM(c[c.length - 1]) ? c.concat([IM]) : c : xo(s, d.toLowerCase()) ? c.concat([s[d.toLowerCase()]]) : c : c.concat([d]), []);
|
|
32151
32151
|
return a.length > 0 && NM(a[a.length - 1]) && a.pop(), a;
|
|
32152
32152
|
}, LM = (t, s) => {
|
|
@@ -32160,7 +32160,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
32160
32160
|
const s = bt(t, "value").getOrThunk(() => Gt("generated-menu-item"));
|
|
32161
32161
|
return Go({ value: s }, t);
|
|
32162
32162
|
}, FM = (t, s) => {
|
|
32163
|
-
const a = dH(
|
|
32163
|
+
const a = dH(Q(t) ? t.split(" ") : t, s);
|
|
32164
32164
|
return rs(a, (c, d) => {
|
|
32165
32165
|
if (uH(d)) {
|
|
32166
32166
|
const g = mH(d), p = LM(g, s);
|
|
@@ -34340,7 +34340,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
34340
34340
|
}])
|
|
34341
34341
|
};
|
|
34342
34342
|
} else if (pV(a) || hV(a) || bV(a)) {
|
|
34343
|
-
const d = `custom-${
|
|
34343
|
+
const d = `custom-${Q(a.name) ? a.name : a.title.toLowerCase()}`;
|
|
34344
34344
|
return {
|
|
34345
34345
|
customFormats: s.customFormats.concat([{
|
|
34346
34346
|
name: d,
|
|
@@ -34389,7 +34389,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
34389
34389
|
getStyleItems: ae(E)
|
|
34390
34390
|
};
|
|
34391
34391
|
}, p = (C) => {
|
|
34392
|
-
const E =
|
|
34392
|
+
const E = Q(C.name) ? C.name : Gt(C.title), $ = `custom-${E}`, N = {
|
|
34393
34393
|
...C,
|
|
34394
34394
|
type: "formatter",
|
|
34395
34395
|
format: $,
|
|
@@ -34446,7 +34446,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
34446
34446
|
}, EV = (t) => tt(so(t, W8), kV), DA = (t) => tt(so(t, AA), TV), Z8 = (t) => CV("h1,h2,h3,h4,h5,h6,a:not([href])", t), AV = (t) => I8(t.title).length > 0, DV = { find: (t) => {
|
|
34447
34447
|
const s = Z8(t);
|
|
34448
34448
|
return so(EV(s).concat(DA(s)), AV);
|
|
34449
|
-
} }, yk = "tinymce-url-history", OA = 5, j8 = (t) =>
|
|
34449
|
+
} }, yk = "tinymce-url-history", OA = 5, j8 = (t) => Q(t) && /^https?/.test(t), wk = (t) => yt(t) && t.length <= OA && wn(t, j8), G8 = (t) => $e(t) && es(t, (s) => !wk(s)).isNone(), Sx = () => {
|
|
34450
34450
|
const t = o0.getItem(yk);
|
|
34451
34451
|
if (t === null)
|
|
34452
34452
|
return {};
|
|
@@ -34480,7 +34480,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
34480
34480
|
return Et(a) ? a ? xk(t) : D.none() : a[s] ? xk(t) : D.none();
|
|
34481
34481
|
}, $V = (t, s) => K8(t, s).map((a) => (c) => tc.nu((d) => {
|
|
34482
34482
|
const g = (w, C) => {
|
|
34483
|
-
if (!
|
|
34483
|
+
if (!Q(w))
|
|
34484
34484
|
throw new Error("Expected value to be string");
|
|
34485
34485
|
if (C !== void 0 && !$e(C))
|
|
34486
34486
|
throw new Error("Expected meta to be a object");
|
|
@@ -34494,7 +34494,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
34494
34494
|
...D.from(c.meta).getOr({})
|
|
34495
34495
|
};
|
|
34496
34496
|
a.call(t, g, c.value, p);
|
|
34497
|
-
})), Ck = (t) => D.from(t).filter(
|
|
34497
|
+
})), Ck = (t) => D.from(t).filter(Q).getOrUndefined(), _k = (t) => eE(t) ? D.some({
|
|
34498
34498
|
targets: DV.find(t.getBody()),
|
|
34499
34499
|
anchorTop: Ck(eS(t)),
|
|
34500
34500
|
anchorBottom: Ck(MR(t))
|
|
@@ -35329,7 +35329,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
35329
35329
|
yo.getCurrent(t).each((d) => {
|
|
35330
35330
|
Fn.set(d, [yz(s)]);
|
|
35331
35331
|
const g = a == null ? void 0 : a.toLowerCase();
|
|
35332
|
-
|
|
35332
|
+
Q(g) && xo(s, g) && yo.getCurrent(d).each((p) => {
|
|
35333
35333
|
Ic.showSlot(p, g), Fi.immediateGrow(d), Co(d.element, "width"), Ok(t.element, "region");
|
|
35334
35334
|
});
|
|
35335
35335
|
});
|
|
@@ -36620,7 +36620,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
36620
36620
|
}, s, t);
|
|
36621
36621
|
});
|
|
36622
36622
|
return so(p, (w) => {
|
|
36623
|
-
const C = (E) =>
|
|
36623
|
+
const C = (E) => Q(E) || E.type !== "separator";
|
|
36624
36624
|
return w.getItems().length > 0 && Ys(w.getItems(), C);
|
|
36625
36625
|
});
|
|
36626
36626
|
}, gU = (t) => {
|
|
@@ -36632,7 +36632,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
36632
36632
|
};
|
|
36633
36633
|
}, hU = (t, s) => () => ZE(t, { message: s }), GP = (t, s, a) => (t.on("remove", () => a.unload(s)), a.load(s)), fD = (t, s, a, c) => (t.on("remove", () => c.unloadRawCss(s)), c.loadRawCss(s, a)), pU = async (t, s) => {
|
|
36634
36634
|
const c = "ui/" + rS(t).getOr("default") + "/skin.css", d = tinymce.Resource.get(c);
|
|
36635
|
-
if (
|
|
36635
|
+
if (Q(d))
|
|
36636
36636
|
return Promise.resolve(fD(t, c, d, t.ui.styleSheetLoader));
|
|
36637
36637
|
{
|
|
36638
36638
|
const g = s + "/skin.min.css";
|
|
@@ -36641,7 +36641,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
36641
36641
|
}, bU = async (t, s) => {
|
|
36642
36642
|
if (fn(Ae.fromDom(t.getElement()))) {
|
|
36643
36643
|
const d = "ui/" + rS(t).getOr("default") + "/skin.shadowdom.css", g = tinymce.Resource.get(d);
|
|
36644
|
-
if (
|
|
36644
|
+
if (Q(g))
|
|
36645
36645
|
return fD(t, d, g, L1.DOM.styleSheetLoader), Promise.resolve();
|
|
36646
36646
|
{
|
|
36647
36647
|
const p = s + "/skin.shadowdom.min.css";
|
|
@@ -36654,7 +36654,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
36654
36654
|
c && s.contentCSS.push(c + (t ? "/content.inline" : "/content") + ".min.css");
|
|
36655
36655
|
}, (c) => {
|
|
36656
36656
|
const d = "ui/" + c + (t ? "/content.inline" : "/content") + ".css", g = tinymce.Resource.get(d);
|
|
36657
|
-
if (
|
|
36657
|
+
if (Q(g))
|
|
36658
36658
|
fD(s, d, g, s.ui.styleSheetLoader);
|
|
36659
36659
|
else {
|
|
36660
36660
|
const p = sS(s);
|
|
@@ -36662,7 +36662,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
36662
36662
|
}
|
|
36663
36663
|
});
|
|
36664
36664
|
const a = sS(s);
|
|
36665
|
-
if (!oE(s) &&
|
|
36665
|
+
if (!oE(s) && Q(a))
|
|
36666
36666
|
return Promise.all([
|
|
36667
36667
|
pU(s, a),
|
|
36668
36668
|
bU(s, a)
|
|
@@ -37723,7 +37723,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
37723
37723
|
return tt(s, (a) => ({ items: a.trim().split(" ") }));
|
|
37724
37724
|
}, _B = (t) => un(t, (s) => xo(s, "name") && xo(s, "items")), oW = (t) => {
|
|
37725
37725
|
const s = t.toolbar, a = t.buttons;
|
|
37726
|
-
return s === !1 ? [] : s === void 0 || s === !0 ? jk(a) :
|
|
37726
|
+
return s === !1 ? [] : s === void 0 || s === !0 ? jk(a) : Q(s) ? Gk(s) : _B(s) ? s : (console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"), []);
|
|
37727
37727
|
}, sW = (t, s, a, c, d, g) => bt(s, a.toLowerCase()).orThunk(() => g.bind((p) => nr(p, (w) => bt(s, w + a.toLowerCase())))).fold(() => bt(CB, a.toLowerCase()).map((p) => p(t, d)), (p) => p.type === "grouptoolbarbutton" && !c ? (console.warn(`Ignoring the '${a}' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested.`), D.none()) : Zk(p, d, t)), qk = (t, s, a, c) => {
|
|
37728
37728
|
const d = oW(s), g = tt(d, (p) => {
|
|
37729
37729
|
const w = Te(p.items, (C) => C.trim().length === 0 ? [] : sW(t, s.buttons, C, s.allowToolbarGroups, a, c).toArray());
|
|
@@ -37735,7 +37735,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
37735
37735
|
return so(g, (p) => p.items.length > 0);
|
|
37736
37736
|
}, SB = (t, s, a, c) => {
|
|
37737
37737
|
const d = s.mainUi.outerContainer, g = a.toolbar, p = a.buttons;
|
|
37738
|
-
if (un(g,
|
|
37738
|
+
if (un(g, Q)) {
|
|
37739
37739
|
const w = g.map((C) => {
|
|
37740
37740
|
const E = {
|
|
37741
37741
|
toolbar: C,
|
|
@@ -38947,7 +38947,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
38947
38947
|
MD(t), VW(t);
|
|
38948
38948
|
}, XB = (t, s) => {
|
|
38949
38949
|
AW(t), LW(t), RW(t, s), YB(t), d6(t), zW(t), RD(t), OW(t), PW(t);
|
|
38950
|
-
}, UW = (t) =>
|
|
38950
|
+
}, UW = (t) => Q(t) ? t.split(/[ ,]/) : t, JB = (t) => (s) => s.options.get(t), PD = (t) => {
|
|
38951
38951
|
const s = t.options.register;
|
|
38952
38952
|
s("contextmenu_avoid_overlap", {
|
|
38953
38953
|
processor: "string",
|
|
@@ -38959,7 +38959,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
38959
38959
|
processor: (a) => a === !1 ? {
|
|
38960
38960
|
value: [],
|
|
38961
38961
|
valid: !0
|
|
38962
|
-
} :
|
|
38962
|
+
} : Q(a) || un(a, Q) ? {
|
|
38963
38963
|
value: UW(a),
|
|
38964
38964
|
valid: !0
|
|
38965
38965
|
} : {
|
|
@@ -39119,14 +39119,14 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
39119
39119
|
QW(t, s) ? W() : (t.once("selectionchange", W), t.once("touchend", () => t.off("selectionchange", W)));
|
|
39120
39120
|
} else
|
|
39121
39121
|
H();
|
|
39122
|
-
}, c7 = (t) =>
|
|
39122
|
+
}, c7 = (t) => Q(t) ? t === "|" : t.type === "separator", BD = { type: "separator" }, i7 = (t) => {
|
|
39123
39123
|
const s = (a) => ({
|
|
39124
39124
|
text: a.text,
|
|
39125
39125
|
icon: a.icon,
|
|
39126
39126
|
enabled: a.enabled,
|
|
39127
39127
|
shortcut: a.shortcut
|
|
39128
39128
|
});
|
|
39129
|
-
if (
|
|
39129
|
+
if (Q(t))
|
|
39130
39130
|
return t;
|
|
39131
39131
|
switch (t.type) {
|
|
39132
39132
|
case "separator":
|
|
@@ -39137,7 +39137,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
39137
39137
|
...s(t),
|
|
39138
39138
|
getSubmenuItems: () => {
|
|
39139
39139
|
const c = t.getSubmenuItems();
|
|
39140
|
-
return
|
|
39140
|
+
return Q(c) ? c : tt(c, i7);
|
|
39141
39141
|
}
|
|
39142
39142
|
};
|
|
39143
39143
|
default:
|
|
@@ -39156,7 +39156,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
39156
39156
|
}, nZ = (t, s, a) => {
|
|
39157
39157
|
const c = Wo(s, (d, g) => bt(t, g.toLowerCase()).map((p) => {
|
|
39158
39158
|
const w = p.update(a);
|
|
39159
|
-
if (
|
|
39159
|
+
if (Q(w) && ua(Ur(w)))
|
|
39160
39160
|
return ND(d, w.split(" "));
|
|
39161
39161
|
if (yt(w) && w.length > 0) {
|
|
39162
39162
|
const C = tt(w, i7);
|
|
@@ -40528,13 +40528,13 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
40528
40528
|
Qr,
|
|
40529
40529
|
Re("classes", []),
|
|
40530
40530
|
Ec("items", P)
|
|
40531
|
-
], F = rn(B),
|
|
40531
|
+
], F = rn(B), ee = [
|
|
40532
40532
|
bS("tab"),
|
|
40533
40533
|
o$,
|
|
40534
40534
|
Ec("items", P)
|
|
40535
40535
|
], oe = [
|
|
40536
40536
|
Qr,
|
|
40537
|
-
A0("tabs",
|
|
40537
|
+
A0("tabs", ee)
|
|
40538
40538
|
], K = rn(oe), se = Vx, we = T7, ke = rn([
|
|
40539
40539
|
Bo("title"),
|
|
40540
40540
|
dc("body", ut("type", {
|
|
@@ -40566,7 +40566,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
40566
40566
|
sa("onCancel", he),
|
|
40567
40567
|
sa("onClose", he),
|
|
40568
40568
|
sa("onMessage", he)
|
|
40569
|
-
]), wt = (t) => Js("dialog", rt, t), Ft = (t) => $e(t) ? [t].concat(Te(Gi(t), Ft)) : yt(t) ? Te(t, Ft) : [], We = (t) =>
|
|
40569
|
+
]), wt = (t) => Js("dialog", rt, t), Ft = (t) => $e(t) ? [t].concat(Te(Gi(t), Ft)) : yt(t) ? Te(t, Ft) : [], We = (t) => Q(t.type) && Q(t.name), Ve = {
|
|
40570
40570
|
checkbox: D7,
|
|
40571
40571
|
colorinput: tj,
|
|
40572
40572
|
colorpicker: sj,
|
|
@@ -41531,7 +41531,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41531
41531
|
Va(t, J).each(_n.focus);
|
|
41532
41532
|
},
|
|
41533
41533
|
block: (J) => {
|
|
41534
|
-
if (!
|
|
41534
|
+
if (!Q(J))
|
|
41535
41535
|
throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");
|
|
41536
41536
|
c((de) => {
|
|
41537
41537
|
dn(de, v5, { message: J });
|
|
@@ -41700,7 +41700,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41700
41700
|
};
|
|
41701
41701
|
return {
|
|
41702
41702
|
block: (p) => {
|
|
41703
|
-
if (!
|
|
41703
|
+
if (!Q(p))
|
|
41704
41704
|
throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");
|
|
41705
41705
|
s((w) => {
|
|
41706
41706
|
dn(w, v5, { message: p });
|
|
@@ -42081,7 +42081,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
42081
42081
|
}, G = (i) => {
|
|
42082
42082
|
const m = typeof i;
|
|
42083
42083
|
return i === null ? "null" : m === "object" && Array.isArray(i) ? "array" : m === "object" && re(i, String, (h, v) => v.isPrototypeOf(h)) ? "string" : m;
|
|
42084
|
-
}, _e = (i) => (m) => G(m) === i, ne = (i) => (m) => typeof m === i, Z = (i) => (m) => i === m, xe = _e("string"),
|
|
42084
|
+
}, _e = (i) => (m) => G(m) === i, ne = (i) => (m) => typeof m === i, Z = (i) => (m) => i === m, xe = _e("string"), Q = _e("object"), $e = _e("array"), at = Z(null), yt = ne("boolean"), hn = Z(void 0), Et = (i) => i == null, io = (i) => !Et(i), lo = ne("function"), eo = ne("number"), Ot = () => {
|
|
42085
42085
|
}, Ls = (i, m) => (...h) => i(m.apply(null, h)), un = (i, m) => (h) => i(m(h)), he = (i) => () => i, kt = (i) => i, ia = (i, m) => i === m;
|
|
42086
42086
|
function oo(i, ...m) {
|
|
42087
42087
|
return (...h) => {
|
|
@@ -42313,7 +42313,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
42313
42313
|
return h;
|
|
42314
42314
|
}, es = Object.getPrototypeOf, Gi = (i) => di("HTMLElement", i), bt = (i) => {
|
|
42315
42315
|
const m = wr("ownerDocument.defaultView", i);
|
|
42316
|
-
return
|
|
42316
|
+
return Q(i) && (Gi(m).prototype.isPrototypeOf(i) || /^HTML\w*Element$/.test(es(i).constructor.name));
|
|
42317
42317
|
}, xo = 8, Ar = 9, Da = 11, Nl = 1, Oa = 3, ts = (i) => i.dom.nodeName.toLowerCase(), nl = (i) => i.dom.nodeType, vl = (i) => (m) => nl(m) === i, Xo = (i) => nl(i) === xo || ts(i) === "#comment", pn = (i) => Dr(i) && bt(i.dom), Dr = vl(Nl), Il = vl(Oa), Fc = vl(Ar), mi = vl(Da), xr = (i) => (m) => Dr(m) && ts(m) === i, fr = (i, m, h) => {
|
|
42318
42318
|
if (xe(h) || yt(h) || eo(h))
|
|
42319
42319
|
i.setAttribute(m, h + "");
|
|
@@ -45033,7 +45033,7 @@ Required: ` + m.join(", "));
|
|
|
45033
45033
|
VC(i, tn.rows, tn.columns, tn.options);
|
|
45034
45034
|
}), i.addCommand("mceTableApplyCellStyle", (Xe, tn) => {
|
|
45035
45035
|
const En = (Ta) => "tablecell" + Ta.toLowerCase().replace("-", "");
|
|
45036
|
-
if (!
|
|
45036
|
+
if (!Q(tn))
|
|
45037
45037
|
return;
|
|
45038
45038
|
const Gn = ho(iu(i), Sb);
|
|
45039
45039
|
if (Gn.length === 0)
|
|
@@ -46324,7 +46324,7 @@ Required: ` + m.join(", "));
|
|
|
46324
46324
|
}, G = (_) => {
|
|
46325
46325
|
const M = typeof _;
|
|
46326
46326
|
return _ === null ? "null" : M === "object" && Array.isArray(_) ? "array" : M === "object" && re(_, String, (U, ce) => ce.isPrototypeOf(U)) ? "string" : M;
|
|
46327
|
-
}, _e = (_) => (M) => G(M) === _, ne = (_) => (M) => typeof M === _, Z = _e("string"), xe = _e("object"),
|
|
46327
|
+
}, _e = (_) => (M) => G(M) === _, ne = (_) => (M) => typeof M === _, Z = _e("string"), xe = _e("object"), Q = _e("array"), $e = ne("boolean"), at = (_) => _ == null, yt = (_) => !at(_), hn = ne("function"), Et = ne("number"), io = () => {
|
|
46328
46328
|
}, lo = (_, M) => (U) => _(M(U)), eo = (_) => () => _, Ot = (_, M) => _ === M;
|
|
46329
46329
|
function Ls(_, ...M) {
|
|
46330
46330
|
return (...U) => {
|
|
@@ -46457,7 +46457,7 @@ Required: ` + m.join(", "));
|
|
|
46457
46457
|
}, go = (_, M) => D(_, M, he), ot = (_) => {
|
|
46458
46458
|
const M = [];
|
|
46459
46459
|
for (let U = 0, ce = _.length; U < ce; ++U) {
|
|
46460
|
-
if (!
|
|
46460
|
+
if (!Q(_[U]))
|
|
46461
46461
|
throw new Error("Arr.flatten item " + U + " was not an array, input: " + _);
|
|
46462
46462
|
ae.apply(M, _[U]);
|
|
46463
46463
|
}
|
|
@@ -47472,7 +47472,7 @@ Required: ` + m.join(", "));
|
|
|
47472
47472
|
}, G = (q) => {
|
|
47473
47473
|
const ge = typeof q;
|
|
47474
47474
|
return q === null ? "null" : ge === "object" && Array.isArray(q) ? "array" : ge === "object" && re(q, String, (Ee, Ie) => Ie.isPrototypeOf(Ee)) ? "string" : ge;
|
|
47475
|
-
}, _e = (q) => (ge) => G(ge) === q, ne = (q) => (ge) => typeof ge === q, Z = (q) => (ge) => q === ge, xe = _e("string"),
|
|
47475
|
+
}, _e = (q) => (ge) => G(ge) === q, ne = (q) => (ge) => typeof ge === q, Z = (q) => (ge) => q === ge, xe = _e("string"), Q = _e("object"), $e = _e("array"), at = Z(null), yt = ne("boolean"), hn = (q) => q == null, Et = (q) => !hn(q), io = ne("function"), lo = (q, ge) => {
|
|
47476
47476
|
if ($e(q)) {
|
|
47477
47477
|
for (let Ee = 0, Ie = q.length; Ee < Ie; ++Ee)
|
|
47478
47478
|
if (!ge(q[Ee]))
|
|
@@ -47612,11 +47612,11 @@ Required: ` + m.join(", "));
|
|
|
47612
47612
|
}), ge("link_context_toolbar", {
|
|
47613
47613
|
processor: "boolean",
|
|
47614
47614
|
default: !1
|
|
47615
|
-
}), ge("link_list", { processor: (Ee) => xe(Ee) || io(Ee) || lo(Ee,
|
|
47615
|
+
}), ge("link_list", { processor: (Ee) => xe(Ee) || io(Ee) || lo(Ee, Q) }), ge("link_default_target", { processor: "string" }), ge("link_default_protocol", {
|
|
47616
47616
|
processor: "string",
|
|
47617
47617
|
default: "https"
|
|
47618
47618
|
}), ge("link_target_list", {
|
|
47619
|
-
processor: (Ee) => yt(Ee) || lo(Ee,
|
|
47619
|
+
processor: (Ee) => yt(Ee) || lo(Ee, Q),
|
|
47620
47620
|
default: !0
|
|
47621
47621
|
}), ge("link_rel_list", {
|
|
47622
47622
|
processor: "object[]",
|
|
@@ -48229,7 +48229,7 @@ Required: ` + m.join(", "));
|
|
|
48229
48229
|
}, _e = (I) => {
|
|
48230
48230
|
const X = typeof I;
|
|
48231
48231
|
return I === null ? "null" : X === "object" && Array.isArray(I) ? "array" : X === "object" && G(I, String, (le, Fe) => Fe.isPrototypeOf(le)) ? "string" : X;
|
|
48232
|
-
}, ne = (I) => (X) => _e(X) === I, Z = (I) => (X) => typeof X === I, xe = (I) => (X) => I === X,
|
|
48232
|
+
}, ne = (I) => (X) => _e(X) === I, Z = (I) => (X) => typeof X === I, xe = (I) => (X) => I === X, Q = (I, X) => at(I) && G(I, X, (le, Fe) => re(le) === Fe), $e = ne("string"), at = ne("object"), yt = (I) => Q(I, Object), hn = ne("array"), Et = xe(null), io = Z("boolean"), lo = (I) => I == null, eo = (I) => !lo(I), Ot = Z("function"), Ls = Z("number"), un = (I, X) => {
|
|
48233
48233
|
if (hn(I)) {
|
|
48234
48234
|
for (let le = 0, Fe = I.length; le < Fe; ++le)
|
|
48235
48235
|
if (!X(I[le]))
|
|
@@ -49098,7 +49098,7 @@ Required: ` + m.join(", "));
|
|
|
49098
49098
|
}, G = (x) => {
|
|
49099
49099
|
const T = typeof x;
|
|
49100
49100
|
return x === null ? "null" : T === "object" && Array.isArray(x) ? "array" : T === "object" && re(x, String, (V, Y) => Y.isPrototypeOf(V)) ? "string" : T;
|
|
49101
|
-
}, _e = (x) => (T) => G(T) === x, ne = (x) => (T) => typeof T === x, Z = (x) => (T) => x === T, xe = _e("string"),
|
|
49101
|
+
}, _e = (x) => (T) => G(T) === x, ne = (x) => (T) => typeof T === x, Z = (x) => (T) => x === T, xe = _e("string"), Q = _e("array"), $e = ne("boolean"), at = Z(void 0), yt = (x) => x == null, hn = (x) => !yt(x), Et = ne("function"), io = ne("number"), lo = () => {
|
|
49102
49102
|
}, eo = (x, T) => (V) => x(T(V)), Ot = (x) => () => x, Ls = (x) => x, un = (x, T) => x === T;
|
|
49103
49103
|
function he(x, ...T) {
|
|
49104
49104
|
return (...V) => {
|
|
@@ -49267,7 +49267,7 @@ Required: ` + m.join(", "));
|
|
|
49267
49267
|
}, Rt = (x, T) => qe(x, T, ia), Ke = (x) => {
|
|
49268
49268
|
const T = [];
|
|
49269
49269
|
for (let V = 0, Y = x.length; V < Y; ++V) {
|
|
49270
|
-
if (!
|
|
49270
|
+
if (!Q(x[V]))
|
|
49271
49271
|
throw new Error("Arr.flatten item " + V + " was not an array, input: " + x);
|
|
49272
49272
|
no.apply(T, x[V]);
|
|
49273
49273
|
}
|
|
@@ -50188,7 +50188,7 @@ Required: ` + m.join(", "));
|
|
|
50188
50188
|
return ar(ye.length > 0, ye);
|
|
50189
50189
|
}, Tn = (x, T) => T.mergable, vn = (x, T) => T.unmergable, Ws = (x, T) => Rn(x, T, oo), oa = (x, T) => Jt(x, T).exists((V) => !V.isLocked), Wl = (x, T) => wn(T, (V) => oa(x, V)), ou = (x, T) => Tn(x, T).filter((V) => Wl(x, V.cells)), va = (x, T) => vn(x, T).filter((V) => Wl(x, V));
|
|
50190
50190
|
({ ...{ generate: (x) => {
|
|
50191
|
-
if (!
|
|
50191
|
+
if (!Q(x))
|
|
50192
50192
|
throw new Error("cases must be an array");
|
|
50193
50193
|
if (x.length === 0)
|
|
50194
50194
|
throw new Error("there must be at least one case");
|
|
@@ -50202,7 +50202,7 @@ Required: ` + m.join(", "));
|
|
|
50202
50202
|
throw new Error("duplicate key detected:" + gt);
|
|
50203
50203
|
if (gt === "cata")
|
|
50204
50204
|
throw new Error("cannot have a case named cata (sorry)");
|
|
50205
|
-
if (!
|
|
50205
|
+
if (!Q(Mt))
|
|
50206
50206
|
throw new Error("case arguments must be an array");
|
|
50207
50207
|
T.push(gt), V[gt] = (...an) => {
|
|
50208
50208
|
const zn = an.length;
|
|
@@ -51257,13 +51257,13 @@ Required: ` + T.join(", "));
|
|
|
51257
51257
|
})();
|
|
51258
51258
|
(function() {
|
|
51259
51259
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
51260
|
-
const re = (
|
|
51261
|
-
|
|
51262
|
-
|
|
51263
|
-
}),
|
|
51264
|
-
}, G = (
|
|
51265
|
-
const $e = G(
|
|
51266
|
-
|
|
51260
|
+
const re = (Q, $e) => {
|
|
51261
|
+
Q.focus(), Q.undoManager.transact(() => {
|
|
51262
|
+
Q.setContent($e);
|
|
51263
|
+
}), Q.selection.setCursorLocation(), Q.nodeChanged();
|
|
51264
|
+
}, G = (Q) => Q.getContent({ source_view: !0 }), _e = (Q) => {
|
|
51265
|
+
const $e = G(Q);
|
|
51266
|
+
Q.windowManager.open({
|
|
51267
51267
|
title: "Source Code",
|
|
51268
51268
|
size: "large",
|
|
51269
51269
|
body: {
|
|
@@ -51288,27 +51288,27 @@ Required: ` + T.join(", "));
|
|
|
51288
51288
|
],
|
|
51289
51289
|
initialData: { code: $e },
|
|
51290
51290
|
onSubmit: (at) => {
|
|
51291
|
-
re(
|
|
51291
|
+
re(Q, at.getData().code), at.close();
|
|
51292
51292
|
}
|
|
51293
51293
|
});
|
|
51294
|
-
}, ne = (
|
|
51295
|
-
|
|
51296
|
-
_e(
|
|
51294
|
+
}, ne = (Q) => {
|
|
51295
|
+
Q.addCommand("mceCodeEditor", () => {
|
|
51296
|
+
_e(Q);
|
|
51297
51297
|
});
|
|
51298
|
-
}, Z = (
|
|
51299
|
-
const $e = () =>
|
|
51300
|
-
|
|
51298
|
+
}, Z = (Q) => {
|
|
51299
|
+
const $e = () => Q.execCommand("mceCodeEditor");
|
|
51300
|
+
Q.ui.registry.addButton("code", {
|
|
51301
51301
|
icon: "sourcecode",
|
|
51302
51302
|
tooltip: "Source code",
|
|
51303
51303
|
onAction: $e
|
|
51304
|
-
}),
|
|
51304
|
+
}), Q.ui.registry.addMenuItem("code", {
|
|
51305
51305
|
icon: "sourcecode",
|
|
51306
51306
|
text: "Source code",
|
|
51307
51307
|
onAction: $e
|
|
51308
51308
|
});
|
|
51309
51309
|
};
|
|
51310
51310
|
var xe = () => {
|
|
51311
|
-
A.add("code", (
|
|
51311
|
+
A.add("code", (Q) => (ne(Q), Z(Q), {}));
|
|
51312
51312
|
};
|
|
51313
51313
|
xe();
|
|
51314
51314
|
})();
|
|
@@ -51335,7 +51335,7 @@ Required: ` + T.join(", "));
|
|
|
51335
51335
|
katakana: "[〱-〵゛゜゠-ヺー-ヿㇰ-ㇿ㋐-㋾㌀-㍗ヲ-ン]",
|
|
51336
51336
|
extendnumlet: "[=_‿⁀⁔︳︴﹍-﹏_∀-⋿<>]",
|
|
51337
51337
|
punctuation: "[~№|!-*+-\\/:;?@\\[-`{}¡«·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰෴๏๚๛༄-༒༺-༽྅࿐-࿔࿙࿚၊-၏჻፡-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰⸱、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫!-#%-*,-/:;?@[-]_{}⦅-・]"
|
|
51338
|
-
},
|
|
51338
|
+
}, Q = {
|
|
51339
51339
|
ALETTER: 0,
|
|
51340
51340
|
MIDNUMLET: 1,
|
|
51341
51341
|
MIDLETTER: 2,
|
|
@@ -51364,7 +51364,7 @@ Required: ` + T.join(", "));
|
|
|
51364
51364
|
new RegExp(xe.katakana),
|
|
51365
51365
|
new RegExp(xe.extendnumlet),
|
|
51366
51366
|
new RegExp("@")
|
|
51367
|
-
], at = "", yt = new RegExp("^" + xe.punctuation + "$"), hn = /^\s+$/, Et = $e, io =
|
|
51367
|
+
], at = "", yt = new RegExp("^" + xe.punctuation + "$"), hn = /^\s+$/, Et = $e, io = Q.OTHER, lo = (qe) => {
|
|
51368
51368
|
let Rt = io;
|
|
51369
51369
|
const Ke = Et.length;
|
|
51370
51370
|
for (let Te = 0; Te < Ke; ++Te) {
|
|
@@ -51390,13 +51390,13 @@ Required: ` + T.join(", "));
|
|
|
51390
51390
|
return ne(qe, Rt);
|
|
51391
51391
|
}, Ls = (qe, Rt) => {
|
|
51392
51392
|
const Ke = qe[Rt], Te = qe[Rt + 1];
|
|
51393
|
-
if (Rt < 0 || Rt > qe.length - 1 && Rt !== 0 || Ke ===
|
|
51393
|
+
if (Rt < 0 || Rt > qe.length - 1 && Rt !== 0 || Ke === Q.ALETTER && Te === Q.ALETTER)
|
|
51394
51394
|
return !1;
|
|
51395
51395
|
const wn = qe[Rt + 2];
|
|
51396
|
-
if (Ke ===
|
|
51396
|
+
if (Ke === Q.ALETTER && (Te === Q.MIDLETTER || Te === Q.MIDNUMLET || Te === Q.AT) && wn === Q.ALETTER)
|
|
51397
51397
|
return !1;
|
|
51398
51398
|
const qo = qe[Rt - 1];
|
|
51399
|
-
return (Ke ===
|
|
51399
|
+
return (Ke === Q.MIDLETTER || Ke === Q.MIDNUMLET || Te === Q.AT) && Te === Q.ALETTER && qo === Q.ALETTER || (Ke === Q.NUMERIC || Ke === Q.ALETTER) && (Te === Q.NUMERIC || Te === Q.ALETTER) || (Ke === Q.MIDNUM || Ke === Q.MIDNUMLET) && Te === Q.NUMERIC && qo === Q.NUMERIC || Ke === Q.NUMERIC && (Te === Q.MIDNUM || Te === Q.MIDNUMLET) && wn === Q.NUMERIC || (Ke === Q.EXTEND || Ke === Q.FORMAT) && (Te === Q.ALETTER || Te === Q.NUMERIC || Te === Q.KATAKANA || Te === Q.EXTEND || Te === Q.FORMAT) || (Te === Q.EXTEND || Te === Q.FORMAT && (wn === Q.ALETTER || wn === Q.NUMERIC || wn === Q.KATAKANA || wn === Q.EXTEND || wn === Q.FORMAT)) && (Ke === Q.ALETTER || Ke === Q.NUMERIC || Ke === Q.KATAKANA || Ke === Q.EXTEND || Ke === Q.FORMAT) || Ke === Q.CR && Te === Q.LF ? !1 : Ke === Q.NEWLINE || Ke === Q.CR || Ke === Q.LF || Te === Q.NEWLINE || Te === Q.CR || Te === Q.LF ? !0 : !(Ke === Q.KATAKANA && Te === Q.KATAKANA || Te === Q.EXTENDNUMLET && (Ke === Q.ALETTER || Ke === Q.NUMERIC || Ke === Q.KATAKANA || Ke === Q.EXTENDNUMLET) || Ke === Q.EXTENDNUMLET && (Te === Q.ALETTER || Te === Q.NUMERIC || Te === Q.KATAKANA) || Ke === Q.AT);
|
|
51400
51400
|
}, un = at, he = hn, kt = yt, ia = (qe) => qe === "http" || qe === "https", oo = (qe, Rt) => {
|
|
51401
51401
|
let Ke;
|
|
51402
51402
|
for (Ke = Rt; Ke < qe.length && !he.test(qe[Ke]); Ke++)
|
|
@@ -51711,10 +51711,10 @@ const ste = { class: "font-bold ptext-lg dark:text-white" }, rte = ["id"], ate =
|
|
|
51711
51711
|
return 0;
|
|
51712
51712
|
if (this.limit === 0)
|
|
51713
51713
|
return this.lastPage;
|
|
51714
|
-
for (var A = this.currentPage, re = this.lastPage, G = this.limit, _e = A - G, ne = A + G + 1, Z = [], xe = [],
|
|
51714
|
+
for (var A = this.currentPage, re = this.lastPage, G = this.limit, _e = A - G, ne = A + G + 1, Z = [], xe = [], Q, $e = 1; $e <= re; $e++)
|
|
51715
51715
|
($e === 1 || $e === re || $e >= _e && $e < ne) && Z.push($e);
|
|
51716
51716
|
return Z.forEach(function(at) {
|
|
51717
|
-
|
|
51717
|
+
Q && (at - Q === 2 ? xe.push(Q + 1) : at - Q !== 1 && xe.push("...")), xe.push(at), Q = at;
|
|
51718
51718
|
}), xe;
|
|
51719
51719
|
}
|
|
51720
51720
|
},
|
|
@@ -51844,18 +51844,18 @@ function kte(A, re, G, _e, ne, Z) {
|
|
|
51844
51844
|
limit: G.limit,
|
|
51845
51845
|
onPaginationChangePage: Z.onPaginationChangePage
|
|
51846
51846
|
}, {
|
|
51847
|
-
default: Cm((
|
|
51847
|
+
default: Cm((Q) => [
|
|
51848
51848
|
R("div", fte, [
|
|
51849
|
-
|
|
51849
|
+
Q.computed.total > Q.computed.perPage ? (ue(), fe("span", gte, [
|
|
51850
51850
|
Zn(" Showing "),
|
|
51851
|
-
R("span", hte, mt(
|
|
51851
|
+
R("span", hte, mt(Q.computed.from), 1),
|
|
51852
51852
|
Zn(" to "),
|
|
51853
|
-
R("span", pte, mt(
|
|
51853
|
+
R("span", pte, mt(Q.computed.to), 1),
|
|
51854
51854
|
Zn(" of "),
|
|
51855
|
-
R("span", bte, mt(
|
|
51855
|
+
R("span", bte, mt(Q.computed.total), 1),
|
|
51856
51856
|
Zn(" Entries ")
|
|
51857
51857
|
])) : Ye("", !0),
|
|
51858
|
-
|
|
51858
|
+
Q.computed.total > Q.computed.perPage ? (ue(), fe("ul", aO({ key: 1 }, A.$attrs, {
|
|
51859
51859
|
class: ["flex items-center h-8 -space-x-px text-sm", {
|
|
51860
51860
|
"pagination-sm": G.size == "small",
|
|
51861
51861
|
"pagination-lg": G.size == "large",
|
|
@@ -51863,44 +51863,44 @@ function kte(A, re, G, _e, ne, Z) {
|
|
|
51863
51863
|
"justify-content-end": G.align == "right"
|
|
51864
51864
|
}]
|
|
51865
51865
|
}), [
|
|
51866
|
-
|
|
51866
|
+
Q.computed.prevPageUrl || G.showDisabled ? (ue(), fe("li", {
|
|
51867
51867
|
key: 0,
|
|
51868
|
-
class: Zt(["flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 ms-0 border-e-0 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white", { disabled: !
|
|
51868
|
+
class: Zt(["flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 ms-0 border-e-0 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white", { disabled: !Q.computed.prevPageUrl }])
|
|
51869
51869
|
}, [
|
|
51870
51870
|
R("a", aO({
|
|
51871
51871
|
class: "page-link",
|
|
51872
51872
|
href: "#",
|
|
51873
51873
|
"aria-label": "Previous",
|
|
51874
|
-
tabindex: !
|
|
51875
|
-
}, Oj(
|
|
51874
|
+
tabindex: !Q.computed.prevPageUrl && -1
|
|
51875
|
+
}, Oj(Q.prevButtonEvents, !0)), [
|
|
51876
51876
|
ju(A.$slots, "prev-nav", {}, () => [
|
|
51877
51877
|
yte,
|
|
51878
51878
|
wte
|
|
51879
51879
|
])
|
|
51880
51880
|
], 16, vte)
|
|
51881
51881
|
], 2)) : Ye("", !0),
|
|
51882
|
-
(ue(!0), fe(jn, null, Ks(
|
|
51883
|
-
class: Zt(["", { active: $e ==
|
|
51882
|
+
(ue(!0), fe(jn, null, Ks(Q.computed.pageRange, ($e, at) => (ue(), fe("li", {
|
|
51883
|
+
class: Zt(["", { active: $e == Q.computed.currentPage }]),
|
|
51884
51884
|
key: at
|
|
51885
51885
|
}, [
|
|
51886
51886
|
R("a", aO({
|
|
51887
51887
|
class: "",
|
|
51888
51888
|
href: "#"
|
|
51889
|
-
}, Oj(
|
|
51890
|
-
"aria-current": $e ==
|
|
51891
|
-
class: $e ==
|
|
51889
|
+
}, Oj(Q.pageButtonEvents($e), !0), {
|
|
51890
|
+
"aria-current": $e == Q.computed.currentPage ? "page" : null,
|
|
51891
|
+
class: $e == Q.computed.currentPage ? "z-10 flex items-center justify-center px-3 h-8 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white" : "flex items-center justify-center px-3 h-8 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
51892
51892
|
}), mt($e), 17, xte)
|
|
51893
51893
|
], 2))), 128)),
|
|
51894
|
-
|
|
51894
|
+
Q.computed.nextPageUrl || G.showDisabled ? (ue(), fe("li", {
|
|
51895
51895
|
key: 1,
|
|
51896
|
-
class: Zt(["flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white", { disabled: !
|
|
51896
|
+
class: Zt(["flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white", { disabled: !Q.computed.nextPageUrl }])
|
|
51897
51897
|
}, [
|
|
51898
51898
|
R("a", aO({
|
|
51899
51899
|
class: "",
|
|
51900
51900
|
href: "#",
|
|
51901
51901
|
"aria-label": "Next",
|
|
51902
|
-
tabindex: !
|
|
51903
|
-
}, Oj(
|
|
51902
|
+
tabindex: !Q.computed.nextPageUrl && -1
|
|
51903
|
+
}, Oj(Q.nextButtonEvents, !0)), [
|
|
51904
51904
|
ju(A.$slots, "next-nav", {}, () => [
|
|
51905
51905
|
_te,
|
|
51906
51906
|
Ste
|
|
@@ -51949,12 +51949,12 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
51949
51949
|
}
|
|
51950
51950
|
},
|
|
51951
51951
|
setup(A, { expose: re }) {
|
|
51952
|
-
const G = co(""), _e = co(""), ne = co(""), Z = co("Cancel"), xe = co(!1),
|
|
51952
|
+
const G = co(""), _e = co(""), ne = co(""), Z = co("Cancel"), xe = co(!1), Q = co(!1), $e = co(void 0), at = co(void 0), yt = (eo = {}) => (G.value = eo.title, _e.value = eo.message, ne.value = eo.okButton, eo.cancelButton && (Z.value = eo.cancelButton), xe.value = !0, new Promise((Ot, Ls) => {
|
|
51953
51953
|
$e.value = Ot, at.value = Ls;
|
|
51954
51954
|
})), hn = () => {
|
|
51955
|
-
|
|
51955
|
+
Q.value = !0;
|
|
51956
51956
|
}, Et = () => {
|
|
51957
|
-
|
|
51957
|
+
Q.value = !1;
|
|
51958
51958
|
}, io = () => {
|
|
51959
51959
|
xe.value = !1, $e.value(!0);
|
|
51960
51960
|
}, lo = () => {
|
|
@@ -51982,7 +51982,7 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
51982
51982
|
])
|
|
51983
51983
|
]),
|
|
51984
51984
|
R("div", Ite, [
|
|
51985
|
-
|
|
51985
|
+
Q.value ? (ue(), Zu(A4("button"), {
|
|
51986
51986
|
key: 1,
|
|
51987
51987
|
disabled: "",
|
|
51988
51988
|
class: Zt("inline-flex justify-center w-full px-4 py-2 text-base font-medium text-white bg-red-600 border border-transparent rounded-md shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm")
|
|
@@ -52229,7 +52229,7 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
52229
52229
|
"data-label": ""
|
|
52230
52230
|
}, dne = ["checked", "onChange"], mne = ["data-label"], fne = { class: "overflow-auto max-h-40" }, gne = { class: "flex items-center justify-between px-4 py-3 bg-white border-gray-200 sm:px-6 dark:text-gray-400 dark:bg-gray-800" };
|
|
52231
52231
|
function hne(A, re, G, _e, ne, Z) {
|
|
52232
|
-
const xe = Rd("DynamicConfirmation"),
|
|
52232
|
+
const xe = Rd("DynamicConfirmation"), Q = Rd("dropdown"), $e = Rd("GlDropdown"), at = Rd("GlTextInput"), yt = Rd("gl-button"), hn = Rd("TailwindPagination");
|
|
52233
52233
|
return ue(), fe(jn, null, [
|
|
52234
52234
|
ui(xe, { ref: "ConfirmationDelete" }, null, 512),
|
|
52235
52235
|
R("div", Vte, [
|
|
@@ -52237,7 +52237,7 @@ function hne(A, re, G, _e, ne, Z) {
|
|
|
52237
52237
|
R("div", Ute, [
|
|
52238
52238
|
Wte,
|
|
52239
52239
|
R("div", Zte, [
|
|
52240
|
-
ui(
|
|
52240
|
+
ui(Q, {
|
|
52241
52241
|
has_cancel: !1,
|
|
52242
52242
|
options: ne.pageOptions,
|
|
52243
52243
|
modelValue: ne.perPage,
|
|
@@ -52675,7 +52675,7 @@ function aoe(A, re, G, _e, ne, Z) {
|
|
|
52675
52675
|
has_cancel: !1,
|
|
52676
52676
|
options: ne.showNoOfEntries,
|
|
52677
52677
|
modelValue: ne.itemsPerPage,
|
|
52678
|
-
"onUpdate:modelValue": re[0] || (re[0] = (
|
|
52678
|
+
"onUpdate:modelValue": re[0] || (re[0] = (Q) => ne.itemsPerPage = Q),
|
|
52679
52679
|
is_required: !1,
|
|
52680
52680
|
field_name: "NoOfEntries",
|
|
52681
52681
|
label_name: "",
|
|
@@ -52691,7 +52691,7 @@ function aoe(A, re, G, _e, ne, Z) {
|
|
|
52691
52691
|
kne,
|
|
52692
52692
|
Tr(R("input", {
|
|
52693
52693
|
type: "text",
|
|
52694
|
-
"onUpdate:modelValue": re[1] || (re[1] = (
|
|
52694
|
+
"onUpdate:modelValue": re[1] || (re[1] = (Q) => ne.search = Q),
|
|
52695
52695
|
class: "block p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 w-80 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
52696
52696
|
placeholder: "Search ..."
|
|
52697
52697
|
}, null, 512), [
|
|
@@ -52703,13 +52703,13 @@ function aoe(A, re, G, _e, ne, Z) {
|
|
|
52703
52703
|
R("table", Ene, [
|
|
52704
52704
|
R("thead", Ane, [
|
|
52705
52705
|
R("tr", null, [
|
|
52706
|
-
(ue(!0), fe(jn, null, Ks(G.columns, (
|
|
52706
|
+
(ue(!0), fe(jn, null, Ks(G.columns, (Q, $e) => (ue(), fe("th", {
|
|
52707
52707
|
key: $e,
|
|
52708
|
-
onClick: (at) => Z.sort(
|
|
52708
|
+
onClick: (at) => Z.sort(Q.field_name, Q.sortable),
|
|
52709
52709
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
52710
52710
|
}, [
|
|
52711
|
-
Zn(mt(
|
|
52712
|
-
ne.sortKey ===
|
|
52711
|
+
Zn(mt(Q.field_label) + " ", 1),
|
|
52712
|
+
ne.sortKey === Q.field_name ? (ue(), fe("span", One, [
|
|
52713
52713
|
ne.sortOrder === 1 ? (ue(), fe("i", Rne)) : (ue(), fe("i", $ne))
|
|
52714
52714
|
])) : Ye("", !0)
|
|
52715
52715
|
], 8, Dne))), 128))
|
|
@@ -52721,7 +52721,7 @@ function aoe(A, re, G, _e, ne, Z) {
|
|
|
52721
52721
|
colspan: G.columns.length
|
|
52722
52722
|
}, Nne, 8, Pne)
|
|
52723
52723
|
])) : Ye("", !0),
|
|
52724
|
-
ne.isLoading ? Ye("", !0) : (ue(!0), fe(jn, { key: 1 }, Ks(Z.paginatedData, (
|
|
52724
|
+
ne.isLoading ? Ye("", !0) : (ue(!0), fe(jn, { key: 1 }, Ks(Z.paginatedData, (Q, $e) => (ue(), fe("tr", {
|
|
52725
52725
|
key: $e,
|
|
52726
52726
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500"
|
|
52727
52727
|
}, [
|
|
@@ -52736,15 +52736,15 @@ function aoe(A, re, G, _e, ne, Z) {
|
|
|
52736
52736
|
R("div", Lne, [
|
|
52737
52737
|
at.tdComp ? (ue(), Zu(A4(Z.forDynCompIs(at.tdComp)), {
|
|
52738
52738
|
key: 0,
|
|
52739
|
-
row:
|
|
52739
|
+
row: Q,
|
|
52740
52740
|
field: at.field_name,
|
|
52741
52741
|
xprops: G.xprops,
|
|
52742
52742
|
tdProps: at.tdProps,
|
|
52743
52743
|
onDeleteAction: re[2] || (re[2] = (hn) => Z.GetItemLists()),
|
|
52744
|
-
onEditAction: (hn) => Z.editAction(
|
|
52745
|
-
onGeneralAction: (hn) => Z.generalAction(
|
|
52744
|
+
onEditAction: (hn) => Z.editAction(Q),
|
|
52745
|
+
onGeneralAction: (hn) => Z.generalAction(Q)
|
|
52746
52746
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (ue(), fe(jn, { key: 1 }, [
|
|
52747
|
-
Zn(mt(
|
|
52747
|
+
Zn(mt(Q[at.field_name]), 1)
|
|
52748
52748
|
], 64))
|
|
52749
52749
|
])
|
|
52750
52750
|
], 10, Ine))), 128))
|
|
@@ -52756,13 +52756,13 @@ function aoe(A, re, G, _e, ne, Z) {
|
|
|
52756
52756
|
R("div", Hne, [
|
|
52757
52757
|
R("a", {
|
|
52758
52758
|
href: "#",
|
|
52759
|
-
onClick: re[3] || (re[3] = za((...
|
|
52759
|
+
onClick: re[3] || (re[3] = za((...Q) => Z.previousPage && Z.previousPage(...Q), ["prevent"])),
|
|
52760
52760
|
disabled: ne.currentPage === 1,
|
|
52761
52761
|
class: "relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"
|
|
52762
52762
|
}, "Previous", 8, Vne),
|
|
52763
52763
|
R("a", {
|
|
52764
52764
|
href: "#",
|
|
52765
|
-
onClick: re[4] || (re[4] = za((...
|
|
52765
|
+
onClick: re[4] || (re[4] = za((...Q) => Z.nextPage && Z.nextPage(...Q), ["prevent"])),
|
|
52766
52766
|
disabled: ne.currentPage === Z.totalPages,
|
|
52767
52767
|
class: "relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"
|
|
52768
52768
|
}, "Next", 8, zne)
|
|
@@ -52785,34 +52785,34 @@ function aoe(A, re, G, _e, ne, Z) {
|
|
|
52785
52785
|
R("li", null, [
|
|
52786
52786
|
R("a", {
|
|
52787
52787
|
href: "#",
|
|
52788
|
-
onClick: re[5] || (re[5] = za((...
|
|
52788
|
+
onClick: re[5] || (re[5] = za((...Q) => Z.previousPage && Z.previousPage(...Q), ["prevent"])),
|
|
52789
52789
|
disabled: ne.currentPage === 1,
|
|
52790
52790
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 ms-0 border-e-0 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
52791
52791
|
}, Qne, 8, Yne)
|
|
52792
52792
|
]),
|
|
52793
|
-
(ue(!0), fe(jn, null, Ks(Z.displayedPageNumbers, (
|
|
52793
|
+
(ue(!0), fe(jn, null, Ks(Z.displayedPageNumbers, (Q) => (ue(), fe(jn, { key: Q }, [
|
|
52794
52794
|
R("li", null, [
|
|
52795
|
-
ne.currentPage !==
|
|
52795
|
+
ne.currentPage !== Q ? (ue(), fe("a", {
|
|
52796
52796
|
key: 0,
|
|
52797
52797
|
href: "#",
|
|
52798
|
-
onClick: za(($e) => Z.goToPage(
|
|
52798
|
+
onClick: za(($e) => Z.goToPage(Q), ["prevent"]),
|
|
52799
52799
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
52800
|
-
}, mt(
|
|
52800
|
+
}, mt(Q), 9, eoe)) : Ye("", !0)
|
|
52801
52801
|
]),
|
|
52802
52802
|
R("li", null, [
|
|
52803
|
-
ne.currentPage ===
|
|
52803
|
+
ne.currentPage === Q ? (ue(), fe("a", {
|
|
52804
52804
|
key: 0,
|
|
52805
52805
|
href: "#",
|
|
52806
|
-
onClick: za(($e) => Z.goToPage(
|
|
52806
|
+
onClick: za(($e) => Z.goToPage(Q), ["prevent"]),
|
|
52807
52807
|
"aria-current": "page",
|
|
52808
52808
|
class: "z-10 flex items-center justify-center h-8 px-3 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white"
|
|
52809
|
-
}, mt(
|
|
52809
|
+
}, mt(Q), 9, toe)) : Ye("", !0)
|
|
52810
52810
|
])
|
|
52811
52811
|
], 64))), 128)),
|
|
52812
52812
|
R("li", null, [
|
|
52813
52813
|
R("a", {
|
|
52814
52814
|
href: "#",
|
|
52815
|
-
onClick: re[6] || (re[6] = za((...
|
|
52815
|
+
onClick: re[6] || (re[6] = za((...Q) => Z.nextPage && Z.nextPage(...Q), ["prevent"])),
|
|
52816
52816
|
disabled: ne.currentPage === Z.totalPages,
|
|
52817
52817
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
52818
52818
|
}, roe, 8, noe)
|
|
@@ -52986,7 +52986,7 @@ const Hce = /* @__PURE__ */ zr(pne, [["render", aoe]]), loe = {
|
|
|
52986
52986
|
Toe
|
|
52987
52987
|
], Aoe = { class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500" }, Doe = ["colspan"], Ooe = ["data-label"], Roe = { class: "overflow-auto max-h-40" }, $oe = { class: "flex items-center justify-between px-4 py-3 bg-white border-gray-200 sm:px-6 dark:text-gray-400 dark:bg-gray-800" };
|
|
52988
52988
|
function Moe(A, re, G, _e, ne, Z) {
|
|
52989
|
-
const xe = Rd("dropdown"),
|
|
52989
|
+
const xe = Rd("dropdown"), Q = Rd("TailwindPagination");
|
|
52990
52990
|
return ue(), fe("div", coe, [
|
|
52991
52991
|
R("div", ioe, [
|
|
52992
52992
|
R("div", uoe, [
|
|
@@ -53079,7 +53079,7 @@ function Moe(A, re, G, _e, ne, Z) {
|
|
|
53079
53079
|
])
|
|
53080
53080
|
]),
|
|
53081
53081
|
R("div", $oe, [
|
|
53082
|
-
ui(
|
|
53082
|
+
ui(Q, {
|
|
53083
53083
|
class: "mt-3 mb-0",
|
|
53084
53084
|
data: ne.itemLists,
|
|
53085
53085
|
limit: ne.limit,
|
|
@@ -53245,7 +53245,7 @@ function wse(A, re, G, _e, ne, Z) {
|
|
|
53245
53245
|
has_cancel: !1,
|
|
53246
53246
|
options: ne.showNoOfEntries,
|
|
53247
53247
|
modelValue: ne.itemsPerPage,
|
|
53248
|
-
"onUpdate:modelValue": re[0] || (re[0] = (
|
|
53248
|
+
"onUpdate:modelValue": re[0] || (re[0] = (Q) => ne.itemsPerPage = Q),
|
|
53249
53249
|
is_required: !1,
|
|
53250
53250
|
field_name: "NoOfEntries",
|
|
53251
53251
|
label_name: "",
|
|
@@ -53261,7 +53261,7 @@ function wse(A, re, G, _e, ne, Z) {
|
|
|
53261
53261
|
Uoe,
|
|
53262
53262
|
Tr(R("input", {
|
|
53263
53263
|
type: "text",
|
|
53264
|
-
"onUpdate:modelValue": re[1] || (re[1] = (
|
|
53264
|
+
"onUpdate:modelValue": re[1] || (re[1] = (Q) => ne.search = Q),
|
|
53265
53265
|
class: "block p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 w-80 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
53266
53266
|
placeholder: "Search ..."
|
|
53267
53267
|
}, null, 512), [
|
|
@@ -53273,20 +53273,20 @@ function wse(A, re, G, _e, ne, Z) {
|
|
|
53273
53273
|
R("table", Zoe, [
|
|
53274
53274
|
R("thead", joe, [
|
|
53275
53275
|
R("tr", null, [
|
|
53276
|
-
(ue(!0), fe(jn, null, Ks(G.columns, (
|
|
53276
|
+
(ue(!0), fe(jn, null, Ks(G.columns, (Q, $e) => (ue(), fe("th", {
|
|
53277
53277
|
key: $e,
|
|
53278
|
-
onClick: za((at) => Z.sort(
|
|
53278
|
+
onClick: za((at) => Z.sort(Q), ["prevent"]),
|
|
53279
53279
|
class: "w-full px-4 py-2 lg:w-2/12 capitalize"
|
|
53280
53280
|
}, [
|
|
53281
|
-
Zn(mt(
|
|
53282
|
-
ne.sortKey ===
|
|
53281
|
+
Zn(mt(Q) + " ", 1),
|
|
53282
|
+
ne.sortKey === Q ? (ue(), fe("span", qoe, [
|
|
53283
53283
|
ne.sortOrder === 1 ? (ue(), fe("i", Koe)) : (ue(), fe("i", Yoe))
|
|
53284
53284
|
])) : Ye("", !0)
|
|
53285
53285
|
], 8, Goe))), 128))
|
|
53286
53286
|
])
|
|
53287
53287
|
]),
|
|
53288
53288
|
R("tbody", null, [
|
|
53289
|
-
(ue(!0), fe(jn, null, Ks(Z.paginatedData, (
|
|
53289
|
+
(ue(!0), fe(jn, null, Ks(Z.paginatedData, (Q, $e) => (ue(), fe("tr", {
|
|
53290
53290
|
key: $e,
|
|
53291
53291
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500"
|
|
53292
53292
|
}, [
|
|
@@ -53297,7 +53297,7 @@ function wse(A, re, G, _e, ne, Z) {
|
|
|
53297
53297
|
}, [
|
|
53298
53298
|
R("p", {
|
|
53299
53299
|
class: "text-pretty",
|
|
53300
|
-
innerHTML:
|
|
53300
|
+
innerHTML: Q[yt]
|
|
53301
53301
|
}, null, 8, Joe)
|
|
53302
53302
|
], 8, Xoe))), 128))
|
|
53303
53303
|
]))), 128))
|
|
@@ -53308,13 +53308,13 @@ function wse(A, re, G, _e, ne, Z) {
|
|
|
53308
53308
|
R("div", ese, [
|
|
53309
53309
|
R("a", {
|
|
53310
53310
|
href: "#",
|
|
53311
|
-
onClick: re[2] || (re[2] = za((...
|
|
53311
|
+
onClick: re[2] || (re[2] = za((...Q) => Z.previousPage && Z.previousPage(...Q), ["prevent"])),
|
|
53312
53312
|
disabled: ne.currentPage === 1,
|
|
53313
53313
|
class: "relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"
|
|
53314
53314
|
}, "Previous", 8, tse),
|
|
53315
53315
|
R("a", {
|
|
53316
53316
|
href: "#",
|
|
53317
|
-
onClick: re[3] || (re[3] = za((...
|
|
53317
|
+
onClick: re[3] || (re[3] = za((...Q) => Z.nextPage && Z.nextPage(...Q), ["prevent"])),
|
|
53318
53318
|
disabled: ne.currentPage === Z.totalPages,
|
|
53319
53319
|
class: "relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"
|
|
53320
53320
|
}, "Next", 8, nse)
|
|
@@ -53337,34 +53337,34 @@ function wse(A, re, G, _e, ne, Z) {
|
|
|
53337
53337
|
R("li", null, [
|
|
53338
53338
|
R("a", {
|
|
53339
53339
|
href: "#",
|
|
53340
|
-
onClick: re[4] || (re[4] = za((...
|
|
53340
|
+
onClick: re[4] || (re[4] = za((...Q) => Z.previousPage && Z.previousPage(...Q), ["prevent"])),
|
|
53341
53341
|
disabled: ne.currentPage === 1,
|
|
53342
53342
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 ms-0 border-e-0 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
53343
53343
|
}, fse, 8, use)
|
|
53344
53344
|
]),
|
|
53345
|
-
(ue(!0), fe(jn, null, Ks(Z.displayedPageNumbers, (
|
|
53345
|
+
(ue(!0), fe(jn, null, Ks(Z.displayedPageNumbers, (Q) => (ue(), fe(jn, { key: Q }, [
|
|
53346
53346
|
R("li", null, [
|
|
53347
|
-
ne.currentPage !==
|
|
53347
|
+
ne.currentPage !== Q ? (ue(), fe("a", {
|
|
53348
53348
|
key: 0,
|
|
53349
53349
|
href: "#",
|
|
53350
|
-
onClick: za(($e) => Z.goToPage(
|
|
53350
|
+
onClick: za(($e) => Z.goToPage(Q), ["prevent"]),
|
|
53351
53351
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
53352
|
-
}, mt(
|
|
53352
|
+
}, mt(Q), 9, gse)) : Ye("", !0)
|
|
53353
53353
|
]),
|
|
53354
53354
|
R("li", null, [
|
|
53355
|
-
ne.currentPage ===
|
|
53355
|
+
ne.currentPage === Q ? (ue(), fe("a", {
|
|
53356
53356
|
key: 0,
|
|
53357
53357
|
href: "#",
|
|
53358
|
-
onClick: za(($e) => Z.goToPage(
|
|
53358
|
+
onClick: za(($e) => Z.goToPage(Q), ["prevent"]),
|
|
53359
53359
|
"aria-current": "page",
|
|
53360
53360
|
class: "z-10 flex items-center justify-center h-8 px-3 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white"
|
|
53361
|
-
}, mt(
|
|
53361
|
+
}, mt(Q), 9, hse)) : Ye("", !0)
|
|
53362
53362
|
])
|
|
53363
53363
|
], 64))), 128)),
|
|
53364
53364
|
R("li", null, [
|
|
53365
53365
|
R("a", {
|
|
53366
53366
|
href: "#",
|
|
53367
|
-
onClick: re[5] || (re[5] = za((...
|
|
53367
|
+
onClick: re[5] || (re[5] = za((...Q) => Z.nextPage && Z.nextPage(...Q), ["prevent"])),
|
|
53368
53368
|
disabled: ne.currentPage === Z.totalPages,
|
|
53369
53369
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
53370
53370
|
}, yse, 8, pse)
|
|
@@ -53394,7 +53394,7 @@ const zce = /* @__PURE__ */ zr(Poe, [["render", wse]]), xse = {
|
|
|
53394
53394
|
5: "Friday",
|
|
53395
53395
|
6: "Saturday",
|
|
53396
53396
|
"*": "every day"
|
|
53397
|
-
},
|
|
53397
|
+
}, Q = {
|
|
53398
53398
|
1: "January",
|
|
53399
53399
|
2: "February",
|
|
53400
53400
|
3: "March",
|
|
@@ -53408,7 +53408,7 @@ const zce = /* @__PURE__ */ zr(Poe, [["render", wse]]), xse = {
|
|
|
53408
53408
|
11: "November",
|
|
53409
53409
|
12: "December",
|
|
53410
53410
|
"*": "every month"
|
|
53411
|
-
}, $e = this.convertField(re, "minute", 59), at = this.convertField(G, "hour", 23), yt = this.convertField(_e, "day of the month", 31), hn = this.convertField(ne, "month", 12,
|
|
53411
|
+
}, $e = this.convertField(re, "minute", 59), at = this.convertField(G, "hour", 23), yt = this.convertField(_e, "day of the month", 31), hn = this.convertField(ne, "month", 12, Q), Et = this.convertField(Z, "day", 6, xe);
|
|
53412
53412
|
return `Runs ${$e} ${at} ${yt} ${hn} on ${Et}.`;
|
|
53413
53413
|
},
|
|
53414
53414
|
convertField(A, re, G, _e = {}) {
|
|
@@ -53493,12 +53493,12 @@ const Wce = /* @__PURE__ */ zr(kse, [["render", Tse]]), Ese = {
|
|
|
53493
53493
|
return at = Math.floor(at / 16), (hn === "x" ? Et : Et & 3 | 8).toString(16);
|
|
53494
53494
|
});
|
|
53495
53495
|
return yt;
|
|
53496
|
-
})(), ne = { isOpen: A, id: _e }, Z = pu(() => re.accordions.value), xe = pu(() => Z.value.length > 0 && Z.value[0].id === _e),
|
|
53496
|
+
})(), ne = { isOpen: A, id: _e }, Z = pu(() => re.accordions.value), xe = pu(() => Z.value.length > 0 && Z.value[0].id === _e), Q = pu(() => Z.value.length > 0 && Z.value[Z.value.length - 1].id === _e);
|
|
53497
53497
|
return Dg(() => {
|
|
53498
53498
|
re.registerAccordion(ne);
|
|
53499
53499
|
}), Nq(() => {
|
|
53500
53500
|
re.unregisterAccordion(ne);
|
|
53501
|
-
}), { isOpen: A, isFirstAccordion: xe, isLastAccordion:
|
|
53501
|
+
}), { isOpen: A, isFirstAccordion: xe, isLastAccordion: Q, toggle: () => {
|
|
53502
53502
|
re.toggleAccordion(ne);
|
|
53503
53503
|
} };
|
|
53504
53504
|
}
|
|
@@ -53728,13 +53728,13 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53728
53728
|
_e.value = !1;
|
|
53729
53729
|
}, xe = () => {
|
|
53730
53730
|
_e.value = !0;
|
|
53731
|
-
},
|
|
53731
|
+
}, Q = () => {
|
|
53732
53732
|
ne.value = !1;
|
|
53733
53733
|
}, $e = () => {
|
|
53734
53734
|
ne.value = !0;
|
|
53735
53735
|
}, at = re, yt = () => {
|
|
53736
53736
|
axios.delete(`${G.xprops.route}/${G.row.id}`).then(() => {
|
|
53737
|
-
|
|
53737
|
+
Q(), at("deleteAction"), Ry.methods.add({
|
|
53738
53738
|
message: "Item deleted successfully.",
|
|
53739
53739
|
type: "success",
|
|
53740
53740
|
duration: 5e3
|
|
@@ -53749,7 +53749,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53749
53749
|
ui(j7, {
|
|
53750
53750
|
isOpen: ne.value,
|
|
53751
53751
|
onConfirmDelete: yt,
|
|
53752
|
-
onCancelDelete:
|
|
53752
|
+
onCancelDelete: Q
|
|
53753
53753
|
}, null, 8, ["isOpen"]),
|
|
53754
53754
|
A.row && hn.can(`edit_${A.xprops.permission} || delete_${A.xprops.permission}`) ? Tr((ue(), fe("div", ere, [
|
|
53755
53755
|
R("button", {
|
|
@@ -53834,13 +53834,13 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53834
53834
|
_e.value = !1;
|
|
53835
53835
|
}, xe = () => {
|
|
53836
53836
|
_e.value = !0;
|
|
53837
|
-
},
|
|
53837
|
+
}, Q = () => {
|
|
53838
53838
|
ne.value = !1;
|
|
53839
53839
|
}, $e = () => {
|
|
53840
53840
|
ne.value = !0;
|
|
53841
53841
|
}, at = re, yt = () => {
|
|
53842
53842
|
axios.delete(`${G.xprops.route}/${G.row.id}`).then(() => {
|
|
53843
|
-
|
|
53843
|
+
Q(), at("deleteAction"), Ry.methods.add({
|
|
53844
53844
|
message: "Item deleted successfully.",
|
|
53845
53845
|
type: "success",
|
|
53846
53846
|
duration: 5e3
|
|
@@ -53855,7 +53855,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53855
53855
|
ui(j7, {
|
|
53856
53856
|
isOpen: ne.value,
|
|
53857
53857
|
onConfirmDelete: yt,
|
|
53858
|
-
onCancelDelete:
|
|
53858
|
+
onCancelDelete: Q
|
|
53859
53859
|
}, null, 8, ["isOpen"]),
|
|
53860
53860
|
A.row && hn.can(`delete_${A.xprops.permission}`) ? Tr((ue(), fe("div", ure, [
|
|
53861
53861
|
R("button", {
|
|
@@ -53931,7 +53931,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53931
53931
|
ne.value = !1;
|
|
53932
53932
|
}, xe = () => {
|
|
53933
53933
|
ne.value = !0;
|
|
53934
|
-
},
|
|
53934
|
+
}, Q = () => {
|
|
53935
53935
|
_e.value = !1;
|
|
53936
53936
|
}, $e = () => {
|
|
53937
53937
|
_e.value = !0;
|
|
@@ -53989,7 +53989,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53989
53989
|
[Ih, _e.value]
|
|
53990
53990
|
])
|
|
53991
53991
|
])), [
|
|
53992
|
-
[lo,
|
|
53992
|
+
[lo, Q]
|
|
53993
53993
|
]) : Ye("", !0)
|
|
53994
53994
|
], 64);
|
|
53995
53995
|
};
|
|
@@ -54049,8 +54049,8 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
54049
54049
|
], -1);
|
|
54050
54050
|
function $re(A, re, G, _e, ne, Z) {
|
|
54051
54051
|
return ue(), fe("div", null, [
|
|
54052
|
-
Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(G.row, (xe,
|
|
54053
|
-
key:
|
|
54052
|
+
Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(G.row, (xe, Q) => (ue(), fe("div", {
|
|
54053
|
+
key: Q,
|
|
54054
54054
|
class: "m-1 d-inline-block"
|
|
54055
54055
|
}, [
|
|
54056
54056
|
R("a", {
|
|
@@ -54183,8 +54183,8 @@ const Jce = /* @__PURE__ */ zr(Hre, [["render", Ure]]), Wre = {
|
|
|
54183
54183
|
};
|
|
54184
54184
|
function Gre(A, re, G, _e, ne, Z) {
|
|
54185
54185
|
return this.row[this.entry.key] ? (ue(), fe("div", Zre, [
|
|
54186
|
-
Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(G.row[Z.entry.key], (xe,
|
|
54187
|
-
key:
|
|
54186
|
+
Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(G.row[Z.entry.key], (xe, Q) => (ue(), fe("span", {
|
|
54187
|
+
key: Q,
|
|
54188
54188
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
54189
54189
|
}, mt(xe[Z.entry.field]), 1))), 128)) : Z.isObject ? (ue(), fe("span", jre, mt(G.row[Z.entry.key][Z.entry.field]), 1)) : Ye("", !0)
|
|
54190
54190
|
])) : Ye("", !0);
|
|
@@ -54214,8 +54214,8 @@ const Qce = /* @__PURE__ */ zr(Wre, [["render", Gre]]), qre = {
|
|
|
54214
54214
|
};
|
|
54215
54215
|
function Xre(A, re, G, _e, ne, Z) {
|
|
54216
54216
|
return ue(), fe("div", Kre, [
|
|
54217
|
-
Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(Z.getNestedValue(G.row, Z.entry.keys), (xe,
|
|
54218
|
-
key:
|
|
54217
|
+
Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(Z.getNestedValue(G.row, Z.entry.keys), (xe, Q) => (ue(), fe("span", {
|
|
54218
|
+
key: Q,
|
|
54219
54219
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
54220
54220
|
}, mt(xe[Z.entry.field]), 1))), 128)) : Z.isObject ? (ue(), fe("span", Yre, mt(Z.getNestedValue(G.row, Z.entry.keys)[Z.entry.field]), 1)) : Ye("", !0)
|
|
54221
54221
|
]);
|
|
@@ -54494,8 +54494,8 @@ const aie = /* @__PURE__ */ zr(Mae, [["render", Zae]]), jae = {
|
|
|
54494
54494
|
return "";
|
|
54495
54495
|
const A = new Date(this.row[this.field]), re = A.getFullYear(), G = A.toLocaleString("default", { month: "long" }), _e = A.getDate();
|
|
54496
54496
|
let ne = A.getHours();
|
|
54497
|
-
const Z = A.getMinutes(), xe = A.getSeconds(),
|
|
54498
|
-
return ne = ne % 12, ne = ne || 12, `${G} ${_e}, ${re}, ${ne}:${Z}:${xe} ${
|
|
54497
|
+
const Z = A.getMinutes(), xe = A.getSeconds(), Q = ne >= 12 ? "pm" : "am";
|
|
54498
|
+
return ne = ne % 12, ne = ne || 12, `${G} ${_e}, ${re}, ${ne}:${Z}:${xe} ${Q}`;
|
|
54499
54499
|
}
|
|
54500
54500
|
}
|
|
54501
54501
|
}, Gae = { class: "w-full" };
|
|
@@ -54697,7 +54697,7 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54697
54697
|
]),
|
|
54698
54698
|
R("div", Ole, [
|
|
54699
54699
|
R("button", {
|
|
54700
|
-
onClick: xe[0] || (xe[0] = (
|
|
54700
|
+
onClick: xe[0] || (xe[0] = (Q) => _e(ne.value)),
|
|
54701
54701
|
class: "text-gray-900 dark:text-gray-400 m-1 hover:bg-gray-100 dark:bg-gray-800 dark:border-gray-600 dark:hover:bg-gray-700 rounded-lg py-2 px-3 inline-flex items-center justify-center bg-white border-gray-200 border"
|
|
54702
54702
|
}, [
|
|
54703
54703
|
G.value ? Ye("", !0) : (ue(), fe("span", Rle, Ple)),
|
|
@@ -54785,7 +54785,7 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54785
54785
|
]),
|
|
54786
54786
|
R("button", {
|
|
54787
54787
|
style: { padding: ".61rem" },
|
|
54788
|
-
onClick: xe[0] || (xe[0] = (
|
|
54788
|
+
onClick: xe[0] || (xe[0] = (Q) => _e(ne.value)),
|
|
54789
54789
|
class: "flex-shrink-0 z-10 inline-flex items-center px-4 text-sm font-medium text-center text-white bg-blue-700 rounded-e-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 border border-blue-700 dark:border-blue-600 hover:border-blue-800 dark:hover:border-blue-700",
|
|
54790
54790
|
type: "button"
|
|
54791
54791
|
}, [
|