golden-logic-ui 1.0.478 → 1.0.480
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 +677 -662
- package/dist/golden-logic-ui.umd.cjs +18 -18
- package/dist/style.css +1 -1
- package/package.json +8 -3
package/dist/golden-logic-ui.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { openBlock as ue, createBlock as Zu, resolveDynamicComponent as A4, mergeProps as aO, withCtx as Cm, createElementBlock as fe, normalizeClass as Zt, createCommentVNode as Ye, renderSlot as ju, createTextVNode as Zn, createElementVNode as R, resolveComponent as Rd, createVNode as ui, createStaticVNode as $j, reactive as Pq, Fragment as jn, toDisplayString as mt, withModifiers as za, withDirectives as Tr, vModelText as _m, renderList as Ks, normalizeStyle as Mj, computed as pu, ref as co, onMounted as Dg, onBeforeUnmount as Z7, watch as Ag, vShow as Ih, nextTick as Pj, vModelDynamic as nq, useSlots as Bq, provide as oq, inject as sq, pushScopeId as rq, popScopeId as aq, vModelCheckbox as lq, toHandlers as Oj, onUnmounted as Nq, TransitionGroup as Iq, unref as Lq, resolveDirective as Bj, markRaw as Fq } from "vue";
|
|
2
|
-
const zr = (A,
|
|
2
|
+
const zr = (A, oe) => {
|
|
3
3
|
const G = A.__vccOpts || A;
|
|
4
|
-
for (const [_e, ne] of
|
|
4
|
+
for (const [_e, ne] of oe)
|
|
5
5
|
G[_e] = ne;
|
|
6
6
|
return G;
|
|
7
7
|
}, Hq = {
|
|
@@ -87,7 +87,7 @@ const zr = (A, re) => {
|
|
|
87
87
|
fill: "#1C64F2"
|
|
88
88
|
})
|
|
89
89
|
], -1);
|
|
90
|
-
function zq(A,
|
|
90
|
+
function zq(A, oe, G, _e, ne, Z) {
|
|
91
91
|
return G.is_loading ? (ue(), Zu(A4("button"), {
|
|
92
92
|
key: 1,
|
|
93
93
|
disabled: "",
|
|
@@ -142,7 +142,7 @@ const Nj = /* @__PURE__ */ zr(Hq, [["render", zq]]), Uq = {
|
|
|
142
142
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
143
143
|
"aria-hidden": "true"
|
|
144
144
|
}, "", -1), qq = { class: "inline-block overflow-hidden text-left align-bottom transition-all transform bg-white dark:bg-gray-800 rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, Kq = /* @__PURE__ */ $j('<div class="px-4 pt-5 pb-4 sm:p-6 sm:pb-4"><div class="sm:flex sm:items-start"><div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"><h3 class="text-lg font-medium leading-6" id="modal-title"> Confirm Deletion </h3><div class="mt-2"><p class="text-sm"> Are you sure you want to delete this item? This action cannot be undone. </p></div></div></div></div>', 1), Yq = { class: "border-t border-gray-200 rounded-b dark:border-gray-600 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse gap-2" };
|
|
145
|
-
function Xq(A,
|
|
145
|
+
function Xq(A, oe, G, _e, ne, Z) {
|
|
146
146
|
const xe = Rd("gl-button");
|
|
147
147
|
return G.isOpen ? (ue(), fe("div", Wq, [
|
|
148
148
|
R("div", Zq, [
|
|
@@ -268,10 +268,10 @@ const j7 = /* @__PURE__ */ zr(Uq, [["render", Xq]]), Rj = Pq({
|
|
|
268
268
|
},
|
|
269
269
|
deleteAction() {
|
|
270
270
|
axios.delete(this.route_url + "/destroyMedia/" + this.media_id).then((A) => {
|
|
271
|
-
let
|
|
271
|
+
let oe = this.uploadFileList.findIndex(
|
|
272
272
|
(G) => G.id === this.media_id
|
|
273
273
|
);
|
|
274
|
-
|
|
274
|
+
oe !== -1 && this.uploadFileList.splice(oe, 1), this.closeDeleteModal(), Ry.methods.add({
|
|
275
275
|
message: "Item deleted successfully.",
|
|
276
276
|
type: "success",
|
|
277
277
|
duration: 5e3
|
|
@@ -285,8 +285,8 @@ const j7 = /* @__PURE__ */ zr(Uq, [["render", Xq]]), Rj = Pq({
|
|
|
285
285
|
},
|
|
286
286
|
formatFileSize(A) {
|
|
287
287
|
if (A === 0) return "0 Bytes";
|
|
288
|
-
const
|
|
289
|
-
return parseFloat((A / Math.pow(
|
|
288
|
+
const oe = 1024, G = ["Bytes", "KB", "MB", "GB", "TB"], _e = Math.floor(Math.log(A) / Math.log(oe));
|
|
289
|
+
return parseFloat((A / Math.pow(oe, _e)).toFixed(2)) + " " + G[_e];
|
|
290
290
|
},
|
|
291
291
|
onDragOver(A) {
|
|
292
292
|
A.preventDefault(), this.isDragging = !0, A.dataTransfer.dropEffect = "copy";
|
|
@@ -296,23 +296,23 @@ const j7 = /* @__PURE__ */ zr(Uq, [["render", Xq]]), Rj = Pq({
|
|
|
296
296
|
},
|
|
297
297
|
onDrop(A) {
|
|
298
298
|
A.preventDefault(), this.isDragging = !1;
|
|
299
|
-
const
|
|
300
|
-
Array.from(
|
|
299
|
+
const oe = A.dataTransfer.files;
|
|
300
|
+
Array.from(oe).forEach((G) => {
|
|
301
301
|
this.uploadFile(G);
|
|
302
302
|
});
|
|
303
303
|
},
|
|
304
304
|
async uploadFiles(A) {
|
|
305
|
-
const
|
|
305
|
+
const oe = A.target.files, G = Array.from(oe).map(
|
|
306
306
|
(_e) => this.uploadFile(_e)
|
|
307
307
|
);
|
|
308
308
|
await Promise.all(G), this.$emit("uploaded"), this.$emit("update:modelValue", this.uploadFileList), console.log("uploadFileList", this.uploadFileList);
|
|
309
309
|
},
|
|
310
|
-
getFirstError(A,
|
|
311
|
-
return A.hasOwnProperty(
|
|
310
|
+
getFirstError(A, oe) {
|
|
311
|
+
return A.hasOwnProperty(oe) ? A[oe][0] : "";
|
|
312
312
|
},
|
|
313
313
|
async uploadFile(A) {
|
|
314
|
-
return new Promise((
|
|
315
|
-
A ||
|
|
314
|
+
return new Promise((oe, G) => {
|
|
315
|
+
A || oe();
|
|
316
316
|
const _e = new FormData();
|
|
317
317
|
_e.append(this.field_name, A), _e.append("accepts_file_types", this.accepts_file_types), _e.append("max_file_size", this.max_file_size), _e.append("field_name", this.field_name), Object.entries(this.file_config).forEach(([ne, Z]) => {
|
|
318
318
|
_e.append(ne, Z);
|
|
@@ -331,7 +331,7 @@ const j7 = /* @__PURE__ */ zr(Uq, [["render", Xq]]), Rj = Pq({
|
|
|
331
331
|
size: ne.data.size,
|
|
332
332
|
id: ne.data.id,
|
|
333
333
|
url: ne.data.url
|
|
334
|
-
}), this.error_message_data = "",
|
|
334
|
+
}), this.error_message_data = "", oe();
|
|
335
335
|
}).catch((ne) => {
|
|
336
336
|
ne.response.status === 422 ? this.error_message_data = this.getFirstError(
|
|
337
337
|
ne.response.data.errors,
|
|
@@ -340,7 +340,7 @@ const j7 = /* @__PURE__ */ zr(Uq, [["render", Xq]]), Rj = Pq({
|
|
|
340
340
|
let Z = this.files.findIndex(
|
|
341
341
|
(xe) => xe.file_name === A.name
|
|
342
342
|
);
|
|
343
|
-
Z !== -1 && this.files.splice(Z, 1), console.log(ne),
|
|
343
|
+
Z !== -1 && this.files.splice(Z, 1), console.log(ne), oe();
|
|
344
344
|
});
|
|
345
345
|
});
|
|
346
346
|
}
|
|
@@ -379,7 +379,7 @@ const j7 = /* @__PURE__ */ zr(Uq, [["render", Xq]]), Rj = Pq({
|
|
|
379
379
|
class: "text-3xl fas fa-file-alt",
|
|
380
380
|
"aria-hidden": "true"
|
|
381
381
|
}, null, -1), _K = { class: "flex flex-col ml-3" }, SK = { class: "text-xs" }, kK = { class: "text-xs" }, TK = { class: "flex gap-2" }, EK = ["href"], AK = ["onClick"];
|
|
382
|
-
function DK(A,
|
|
382
|
+
function DK(A, oe, G, _e, ne, Z) {
|
|
383
383
|
const xe = Rd("DeleteConfirmationModal");
|
|
384
384
|
return ue(), fe(jn, null, [
|
|
385
385
|
ui(xe, {
|
|
@@ -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:
|
|
405
|
-
onDragleave:
|
|
406
|
-
onDrop:
|
|
404
|
+
onDragover: oe[3] || (oe[3] = za((...X) => Z.onDragOver && Z.onDragOver(...X), ["prevent"])),
|
|
405
|
+
onDragleave: oe[4] || (oe[4] = za((...X) => Z.onDragLeave && Z.onDragLeave(...X), ["prevent"])),
|
|
406
|
+
onDrop: oe[5] || (oe[5] = za((...X) => Z.onDrop && Z.onDrop(...X), ["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,19 +412,19 @@ 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:
|
|
415
|
+
onChange: oe[0] || (oe[0] = (...X) => Z.uploadFiles && Z.uploadFiles(...X))
|
|
416
416
|
}, null, 40, tK),
|
|
417
417
|
Tr(R("input", {
|
|
418
418
|
type: "hidden",
|
|
419
419
|
name: G.field_name,
|
|
420
|
-
"onUpdate:modelValue":
|
|
420
|
+
"onUpdate:modelValue": oe[1] || (oe[1] = (X) => Z.uploadFileListFinal = X)
|
|
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:
|
|
427
|
+
onClick: oe[2] || (oe[2] = (X) => A.$refs["file_input" + this.field_name].click())
|
|
428
428
|
}, rK))
|
|
429
429
|
])
|
|
430
430
|
], 32),
|
|
@@ -498,10 +498,10 @@ const yce = /* @__PURE__ */ zr(Qq, [["render", DK]]), OK = {
|
|
|
498
498
|
const A = {
|
|
499
499
|
id: this.menu_id
|
|
500
500
|
};
|
|
501
|
-
axios.get("/admin/get_locals", { params: A }).then((
|
|
502
|
-
this.locals =
|
|
503
|
-
}).catch((
|
|
504
|
-
console.error(
|
|
501
|
+
axios.get("/admin/get_locals", { params: A }).then((oe) => {
|
|
502
|
+
this.locals = oe.data.locals, this.default_language = oe.data.default_language;
|
|
503
|
+
}).catch((oe) => {
|
|
504
|
+
console.error(oe);
|
|
505
505
|
});
|
|
506
506
|
}
|
|
507
507
|
},
|
|
@@ -511,7 +511,7 @@ const yce = /* @__PURE__ */ zr(Qq, [["render", DK]]), OK = {
|
|
|
511
511
|
mounted() {
|
|
512
512
|
}
|
|
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
|
-
function PK(A,
|
|
514
|
+
function PK(A, oe, G, _e, ne, Z) {
|
|
515
515
|
return ue(), fe("ul", RK, [
|
|
516
516
|
(ue(!0), fe(jn, null, Ks(ne.locals, (xe, X) => (ue(), fe("li", null, [
|
|
517
517
|
R("input", {
|
|
@@ -547,7 +547,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
547
547
|
}
|
|
548
548
|
},
|
|
549
549
|
setup(A) {
|
|
550
|
-
const
|
|
550
|
+
const oe = A, G = pu(() => oe.class), _e = pu(() => oe.body_class);
|
|
551
551
|
return (ne, Z) => (ue(), fe("div", {
|
|
552
552
|
class: Zt(["flex flex-col gap-9", G.value])
|
|
553
553
|
}, [
|
|
@@ -663,8 +663,8 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
663
663
|
}
|
|
664
664
|
},
|
|
665
665
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
666
|
-
setup(A, { emit:
|
|
667
|
-
const G = A, _e =
|
|
666
|
+
setup(A, { emit: oe }) {
|
|
667
|
+
const G = A, _e = oe, ne = co(null), Z = co([]), xe = co([]), X = co([]), $e = co(0), lt = 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();
|
|
@@ -971,13 +971,13 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
971
971
|
}
|
|
972
972
|
},
|
|
973
973
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
974
|
-
setup(A, { expose:
|
|
974
|
+
setup(A, { expose: oe, emit: G }) {
|
|
975
975
|
const _e = A, ne = G, Z = co(null), xe = co(null), X = () => {
|
|
976
976
|
xe.value && ne("update:modelValueTranslate", xe.value.value);
|
|
977
977
|
};
|
|
978
978
|
return Dg(() => {
|
|
979
979
|
Z.value !== null && Z.value.hasAttribute("autofocus") && Z.value.focus(), _e.modelValue && (ne("update:modelValue", _e.modelValue), Z.value.value = _e.modelValue), _e.modelValueTranslate && (ne("update:modelValueTranslate", _e.modelValueTranslate), xe.value.value = _e.modelValueTranslate);
|
|
980
|
-
}),
|
|
980
|
+
}), oe({ focus: () => Z.value.focus() }), ($e, lt) => (ue(), fe(jn, null, [
|
|
981
981
|
A.show ? (ue(), fe("div", {
|
|
982
982
|
key: 0,
|
|
983
983
|
class: Zt(A.field_name)
|
|
@@ -1101,7 +1101,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1101
1101
|
}
|
|
1102
1102
|
},
|
|
1103
1103
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1104
|
-
setup(A, { expose:
|
|
1104
|
+
setup(A, { expose: oe, emit: G }) {
|
|
1105
1105
|
const _e = A, ne = G, Z = co(null), xe = co(null), X = () => {
|
|
1106
1106
|
xe.value && ne("update:modelValueTranslate", xe.value.value);
|
|
1107
1107
|
};
|
|
@@ -1121,7 +1121,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1121
1121
|
}).catch(($e) => {
|
|
1122
1122
|
console.log($e);
|
|
1123
1123
|
});
|
|
1124
|
-
}),
|
|
1124
|
+
}), oe({ focus: () => Z.value.focus() }), ($e, lt) => (ue(), fe(jn, null, [
|
|
1125
1125
|
A.show ? (ue(), fe("div", {
|
|
1126
1126
|
key: 0,
|
|
1127
1127
|
class: Zt(A.field_name)
|
|
@@ -1236,13 +1236,13 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1236
1236
|
}
|
|
1237
1237
|
},
|
|
1238
1238
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1239
|
-
setup(A, { expose:
|
|
1239
|
+
setup(A, { expose: oe, emit: G }) {
|
|
1240
1240
|
const _e = A, ne = G, Z = co(null), xe = co(null), X = () => {
|
|
1241
1241
|
xe.value && ne("update:modelValueTranslate", xe.value.value);
|
|
1242
1242
|
};
|
|
1243
1243
|
return Dg(() => {
|
|
1244
1244
|
Z.value !== null && Z.value.hasAttribute("autofocus") && Z.value.focus(), _e.modelValue && (ne("update:modelValue", _e.modelValue), Z.value.value = _e.modelValue), _e.modelValueTranslate && (ne("update:modelValueTranslate", _e.modelValueTranslate), xe.value.value = _e.modelValueTranslate);
|
|
1245
|
-
}),
|
|
1245
|
+
}), oe({ focus: () => Z.value.focus() }), ($e, lt) => (ue(), fe(jn, null, [
|
|
1246
1246
|
A.show ? (ue(), fe("div", {
|
|
1247
1247
|
key: 0,
|
|
1248
1248
|
class: Zt(A.field_name)
|
|
@@ -1348,7 +1348,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1348
1348
|
}
|
|
1349
1349
|
},
|
|
1350
1350
|
emits: ["update:modelValue", "keydown"],
|
|
1351
|
-
setup(A, { expose:
|
|
1351
|
+
setup(A, { expose: oe, emit: G }) {
|
|
1352
1352
|
const _e = A, ne = G, Z = co(null);
|
|
1353
1353
|
Dg(() => {
|
|
1354
1354
|
Z.value !== null && Z.value.hasAttribute("autofocus") && Z.value.focus();
|
|
@@ -1361,7 +1361,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1361
1361
|
ne("update:modelValue", X);
|
|
1362
1362
|
}
|
|
1363
1363
|
});
|
|
1364
|
-
return
|
|
1364
|
+
return oe({ focus: () => Z.value.focus() }), (X, $e) => (ue(), fe(jn, null, [
|
|
1365
1365
|
A.show ? (ue(), fe("div", {
|
|
1366
1366
|
key: 0,
|
|
1367
1367
|
class: Zt(A.field_name)
|
|
@@ -1454,7 +1454,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1454
1454
|
}
|
|
1455
1455
|
},
|
|
1456
1456
|
emits: ["update:modelValue", "keydown"],
|
|
1457
|
-
setup(A, { expose:
|
|
1457
|
+
setup(A, { expose: oe, emit: G }) {
|
|
1458
1458
|
const _e = A, ne = G, Z = co(null);
|
|
1459
1459
|
Dg(() => {
|
|
1460
1460
|
Z.value !== null && Z.value.hasAttribute("autofocus") && Z.value.focus();
|
|
@@ -1467,7 +1467,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1467
1467
|
ne("update:modelValue", X);
|
|
1468
1468
|
}
|
|
1469
1469
|
});
|
|
1470
|
-
return
|
|
1470
|
+
return oe({ focus: () => Z.value.focus() }), (X, $e) => (ue(), fe(jn, null, [
|
|
1471
1471
|
A.show ? (ue(), fe("div", {
|
|
1472
1472
|
key: 0,
|
|
1473
1473
|
class: Zt(A.field_name)
|
|
@@ -1553,8 +1553,8 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1553
1553
|
}
|
|
1554
1554
|
},
|
|
1555
1555
|
emits: ["update:modelValue", "keydown"],
|
|
1556
|
-
setup(A, { emit:
|
|
1557
|
-
const G = A, _e =
|
|
1556
|
+
setup(A, { emit: oe }) {
|
|
1557
|
+
const G = A, _e = oe, ne = co(""), Z = co({
|
|
1558
1558
|
start: G.modelValue.start,
|
|
1559
1559
|
end: G.modelValue.end
|
|
1560
1560
|
});
|
|
@@ -1680,8 +1680,8 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1680
1680
|
}
|
|
1681
1681
|
},
|
|
1682
1682
|
emits: ["update:modelValue", "keydown"],
|
|
1683
|
-
setup(A, { emit:
|
|
1684
|
-
const G =
|
|
1683
|
+
setup(A, { emit: oe }) {
|
|
1684
|
+
const G = oe, _e = co(null), ne = (Z) => {
|
|
1685
1685
|
const xe = Z.target.files[0];
|
|
1686
1686
|
console.log(xe), G("keydown", Z), xe && G("update:modelValue", xe);
|
|
1687
1687
|
};
|
|
@@ -1729,8 +1729,8 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1729
1729
|
__name: "GlTabsWrapper",
|
|
1730
1730
|
props: {},
|
|
1731
1731
|
emits: ["TabChange"],
|
|
1732
|
-
setup(A, { emit:
|
|
1733
|
-
const G =
|
|
1732
|
+
setup(A, { emit: oe }) {
|
|
1733
|
+
const G = oe, _e = Bq(), ne = co(_e.default().map(($e) => $e.props)), Z = co("");
|
|
1734
1734
|
oq("selectedTitle", Z);
|
|
1735
1735
|
const xe = ($e) => {
|
|
1736
1736
|
window.location.hash = encodeURIComponent($e), G("TabChange", $e);
|
|
@@ -1785,7 +1785,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1785
1785
|
key: 0,
|
|
1786
1786
|
class: "block"
|
|
1787
1787
|
};
|
|
1788
|
-
function CX(A,
|
|
1788
|
+
function CX(A, oe, G, _e, ne, Z) {
|
|
1789
1789
|
return G.title == _e.selectedTitle ? (ue(), fe("div", xX, [
|
|
1790
1790
|
ju(A.$slots, "default")
|
|
1791
1791
|
])) : Ye("", !0);
|
|
@@ -1841,27 +1841,27 @@ const Oce = /* @__PURE__ */ zr(wX, [["render", CX]]), _X = {
|
|
|
1841
1841
|
return !this.hide_arrow && this.slider_arrows_indicators_position == "arrows_outside_slider" ? A += " w-12/12 xl:w-8/12 xxl:w-8/12 md:w-8/12 sm:w-8/12" : this.slider_arrows_indicators_position != "arrows_outside_slider" && (A += " w-12/12 "), A;
|
|
1842
1842
|
},
|
|
1843
1843
|
generateRandomString(A) {
|
|
1844
|
-
let
|
|
1844
|
+
let oe = "";
|
|
1845
1845
|
const G = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", _e = G.length;
|
|
1846
1846
|
for (let ne = 0; ne < A; ne++)
|
|
1847
|
-
|
|
1848
|
-
return
|
|
1847
|
+
oe += G.charAt(Math.floor(Math.random() * _e));
|
|
1848
|
+
return oe;
|
|
1849
1849
|
},
|
|
1850
1850
|
movingActions() {
|
|
1851
|
-
let A = this,
|
|
1851
|
+
let A = this, oe = document.getElementById("slider_" + this.Random_string);
|
|
1852
1852
|
const G = (ne) => {
|
|
1853
|
-
|
|
1853
|
+
oe.style.cursor = "grabbing";
|
|
1854
1854
|
const Z = (X) => {
|
|
1855
1855
|
const $e = X.clientX || X.touches && X.touches[0] && X.touches[0].clientX, lt = X.clientY || X.touches && X.touches[0] && X.touches[0].clientY, yt = $e - A.initialX, hn = lt - A.initialY;
|
|
1856
|
-
Math.abs(yt) > Math.abs(hn) ? (X.preventDefault(), Math.abs(yt) >= 70 && (yt < 0 ? A.next() : A.prev(), A.initialX = $e)) :
|
|
1856
|
+
Math.abs(yt) > Math.abs(hn) ? (X.preventDefault(), Math.abs(yt) >= 70 && (yt < 0 ? A.next() : A.prev(), A.initialX = $e)) : oe.style.cursor = "grab", Math.abs(hn) > Math.abs(yt) && (oe.style.cursor = "grab");
|
|
1857
1857
|
}, xe = () => {
|
|
1858
|
-
document.removeEventListener("mousemove", Z), document.removeEventListener("touchmove", Z), document.removeEventListener("mouseup", xe), document.removeEventListener("touchend", xe),
|
|
1858
|
+
document.removeEventListener("mousemove", Z), document.removeEventListener("touchmove", Z), document.removeEventListener("mouseup", xe), document.removeEventListener("touchend", xe), oe.style.cursor = "grab";
|
|
1859
1859
|
};
|
|
1860
1860
|
document.addEventListener("mousemove", Z), document.addEventListener("touchmove", Z, { passive: !1 }), document.addEventListener("mouseup", xe), document.addEventListener("touchend", xe), A.initialX = ne.clientX || ne.touches && ne.touches[0] && ne.touches[0].clientX, A.initialY = ne.clientY || ne.touches && ne.touches[0] && ne.touches[0].clientY;
|
|
1861
1861
|
}, _e = (ne) => {
|
|
1862
1862
|
ne.key === "ArrowLeft" ? A.prev() : ne.key === "ArrowRight" && A.next();
|
|
1863
1863
|
};
|
|
1864
|
-
|
|
1864
|
+
oe.addEventListener("mousedown", G), oe.addEventListener("touchstart", G), document.addEventListener("keydown", _e);
|
|
1865
1865
|
},
|
|
1866
1866
|
next() {
|
|
1867
1867
|
this.currentDot < this.dotsNavigation.length && (this.currentDot++, this.setDot(this.currentDot));
|
|
@@ -1870,8 +1870,8 @@ 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),
|
|
1874
|
-
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, xe = this.hide_arrow ?
|
|
1873
|
+
let A = document.getElementById("sliderContainer_" + this.Random_string), oe = document.getElementById("mainSliderContainer_" + this.Random_string), G = document.getElementById("slider_" + this.Random_string), _e = G.querySelectorAll("li"), ne = Array.from(_e).filter((X) => X.parentNode === G), Z = A.clientWidth, xe = Z / this.elementsToShow;
|
|
1874
|
+
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, xe = this.hide_arrow ? oe.clientWidth : Z) : document.body.clientWidth < 1500 && (this.elementsToShow = 2) : (this.elementsToShow = 1, xe = this.hide_arrow ? oe.clientWidth : Z), ne.length > 1) {
|
|
1875
1875
|
this.dotsNum = this.elementsToShow == 1 ? ne.length : ne.length - this.elementsToShow + 1;
|
|
1876
1876
|
let X = this.elementsToShow == 1 ? xe * ne.length / this.dotsNum : xe * (ne.length - this.elementsToShow) / (this.dotsNum - 1);
|
|
1877
1877
|
this.dotsNavigation = [];
|
|
@@ -1885,8 +1885,8 @@ const Oce = /* @__PURE__ */ zr(wX, [["render", CX]]), _X = {
|
|
|
1885
1885
|
}
|
|
1886
1886
|
},
|
|
1887
1887
|
setDot(A) {
|
|
1888
|
-
let
|
|
1889
|
-
this.direction_property == "rtl" ?
|
|
1888
|
+
let oe = document.getElementById("slider_" + this.Random_string);
|
|
1889
|
+
this.direction_property == "rtl" ? oe.style.marginRight = -this.dotsNavigation[A - 1] + "px" : oe.style.marginLeft = -this.dotsNavigation[A - 1] + "px", this.currentDot = A;
|
|
1890
1890
|
}
|
|
1891
1891
|
}
|
|
1892
1892
|
}, Sm = (A) => (rq("data-v-205c6327"), A = A(), aq(), A), SX = ["id"], kX = {
|
|
@@ -2074,7 +2074,7 @@ const Oce = /* @__PURE__ */ zr(wX, [["render", CX]]), _X = {
|
|
|
2074
2074
|
}, null, -1)), TJ = [
|
|
2075
2075
|
kJ
|
|
2076
2076
|
];
|
|
2077
|
-
function EJ(A,
|
|
2077
|
+
function EJ(A, oe, G, _e, ne, Z) {
|
|
2078
2078
|
return ue(), fe("div", null, [
|
|
2079
2079
|
R("div", {
|
|
2080
2080
|
class: Zt(["", !G.hide_arrow && G.slider_arrows_indicators_position == "arrows_outside_slider" ? "flex" : "relative block"]),
|
|
@@ -2084,7 +2084,7 @@ function EJ(A, re, G, _e, ne, Z) {
|
|
|
2084
2084
|
R("div", TX, [
|
|
2085
2085
|
R("button", {
|
|
2086
2086
|
class: "p-3 mr-5 rounded-full shadow-lg arrow_button_styles",
|
|
2087
|
-
onClick:
|
|
2087
|
+
onClick: oe[0] || (oe[0] = (xe) => Z.prev())
|
|
2088
2088
|
}, [
|
|
2089
2089
|
G.direction_property == "ltr" ? (ue(), fe("svg", EX, DX)) : Ye("", !0),
|
|
2090
2090
|
G.direction_property == "rtl" ? (ue(), fe("svg", OX, $X)) : Ye("", !0)
|
|
@@ -2106,7 +2106,7 @@ function EJ(A, re, G, _e, ne, Z) {
|
|
|
2106
2106
|
R("div", BX, [
|
|
2107
2107
|
R("button", {
|
|
2108
2108
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2109
|
-
onClick:
|
|
2109
|
+
onClick: oe[1] || (oe[1] = za((xe) => Z.prev(), ["stop"]))
|
|
2110
2110
|
}, [
|
|
2111
2111
|
G.direction_property == "ltr" ? (ue(), fe("svg", NX, LX)) : Ye("", !0),
|
|
2112
2112
|
G.direction_property == "rtl" ? (ue(), fe("svg", FX, VX)) : Ye("", !0)
|
|
@@ -2121,7 +2121,7 @@ function EJ(A, re, G, _e, ne, Z) {
|
|
|
2121
2121
|
R("div", zX, [
|
|
2122
2122
|
R("button", {
|
|
2123
2123
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2124
|
-
onClick:
|
|
2124
|
+
onClick: oe[2] || (oe[2] = za((xe) => Z.next(), ["stop"]))
|
|
2125
2125
|
}, [
|
|
2126
2126
|
G.direction_property == "ltr" ? (ue(), fe("svg", UX, ZX)) : Ye("", !0),
|
|
2127
2127
|
G.direction_property == "rtl" ? (ue(), fe("svg", jX, qX)) : Ye("", !0)
|
|
@@ -2156,7 +2156,7 @@ function EJ(A, re, G, _e, ne, Z) {
|
|
|
2156
2156
|
R("div", sJ, [
|
|
2157
2157
|
R("button", {
|
|
2158
2158
|
class: Zt(["p-3 rounded-full arrow_button_styles", G.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
2159
|
-
onClick:
|
|
2159
|
+
onClick: oe[3] || (oe[3] = (xe) => Z.prev())
|
|
2160
2160
|
}, [
|
|
2161
2161
|
G.direction_property == "ltr" ? (ue(), fe("svg", rJ, lJ)) : Ye("", !0),
|
|
2162
2162
|
G.direction_property == "rtl" ? (ue(), fe("svg", cJ, uJ)) : Ye("", !0)
|
|
@@ -2167,7 +2167,7 @@ function EJ(A, re, G, _e, ne, Z) {
|
|
|
2167
2167
|
R("div", mJ, [
|
|
2168
2168
|
R("button", {
|
|
2169
2169
|
class: "p-3 rounded-full arrow_button_styles",
|
|
2170
|
-
onClick:
|
|
2170
|
+
onClick: oe[4] || (oe[4] = (xe) => Z.next())
|
|
2171
2171
|
}, [
|
|
2172
2172
|
G.direction_property == "ltr" ? (ue(), fe("svg", fJ, hJ)) : Ye("", !0),
|
|
2173
2173
|
G.direction_property == "rtl" ? (ue(), fe("svg", pJ, vJ)) : Ye("", !0)
|
|
@@ -2181,7 +2181,7 @@ function EJ(A, re, G, _e, ne, Z) {
|
|
|
2181
2181
|
R("div", wJ, [
|
|
2182
2182
|
R("button", {
|
|
2183
2183
|
class: "p-3 ml-5 rounded-full shadow-lg arrow_button_styles",
|
|
2184
|
-
onClick:
|
|
2184
|
+
onClick: oe[5] || (oe[5] = (xe) => Z.next())
|
|
2185
2185
|
}, [
|
|
2186
2186
|
G.direction_property == "ltr" ? (ue(), fe("svg", xJ, _J)) : Ye("", !0),
|
|
2187
2187
|
G.direction_property == "rtl" ? (ue(), fe("svg", SJ, TJ)) : Ye("", !0)
|
|
@@ -2226,6 +2226,7 @@ const Rce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-205c63
|
|
|
2226
2226
|
},
|
|
2227
2227
|
data: function() {
|
|
2228
2228
|
return {
|
|
2229
|
+
mutationObserver: null,
|
|
2229
2230
|
elementsToShow: 3,
|
|
2230
2231
|
dotsNum: 0,
|
|
2231
2232
|
currentDot: 1,
|
|
@@ -2239,9 +2240,23 @@ const Rce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-205c63
|
|
|
2239
2240
|
};
|
|
2240
2241
|
},
|
|
2241
2242
|
mounted() {
|
|
2242
|
-
this.elementsToShow = this.elements_to_show_prop, this.initSlider(), this.disable_touch || this.movingActions();
|
|
2243
|
+
this.elementsToShow = this.elements_to_show_prop, this.observeSlotChanges(), this.initSlider(), this.disable_touch || this.movingActions();
|
|
2244
|
+
},
|
|
2245
|
+
beforeUnmount() {
|
|
2246
|
+
this.mutationObserver && this.mutationObserver.disconnect();
|
|
2243
2247
|
},
|
|
2244
2248
|
methods: {
|
|
2249
|
+
observeSlotChanges() {
|
|
2250
|
+
const A = this.$refs.slotContent;
|
|
2251
|
+
console.log("slotContent:", A), A && (this.mutationObserver = new MutationObserver((oe) => {
|
|
2252
|
+
oe.forEach((G) => {
|
|
2253
|
+
console.log("Slot content changed:", G), this.initSlider();
|
|
2254
|
+
});
|
|
2255
|
+
}), this.mutationObserver.observe(A, {
|
|
2256
|
+
childList: !0,
|
|
2257
|
+
subtree: !0
|
|
2258
|
+
}));
|
|
2259
|
+
},
|
|
2245
2260
|
sliderIndicatorsAction() {
|
|
2246
2261
|
var A = "";
|
|
2247
2262
|
return this.direction_property == "rtl" && (A += " space-x-reverse "), this.slider_arrows_indicators_position == "arrows_indicators_inside_slider" && (A += " slider_indicators "), A;
|
|
@@ -2251,27 +2266,27 @@ const Rce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-205c63
|
|
|
2251
2266
|
return !this.hide_arrow && this.slider_arrows_indicators_position == "arrows_outside_slider" || this.slider_arrows_indicators_position != "arrows_outside_slider", A;
|
|
2252
2267
|
},
|
|
2253
2268
|
generateRandomString(A) {
|
|
2254
|
-
let
|
|
2269
|
+
let oe = "";
|
|
2255
2270
|
const G = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", _e = G.length;
|
|
2256
2271
|
for (let ne = 0; ne < A; ne++)
|
|
2257
|
-
|
|
2258
|
-
return
|
|
2272
|
+
oe += G.charAt(Math.floor(Math.random() * _e));
|
|
2273
|
+
return oe;
|
|
2259
2274
|
},
|
|
2260
2275
|
movingActions() {
|
|
2261
|
-
let A = this,
|
|
2276
|
+
let A = this, oe = document.getElementById("slider_" + this.Random_string);
|
|
2262
2277
|
const G = (ne) => {
|
|
2263
|
-
|
|
2278
|
+
oe.style.cursor = "grabbing";
|
|
2264
2279
|
const Z = (X) => {
|
|
2265
2280
|
const $e = X.clientX || X.touches && X.touches[0] && X.touches[0].clientX, lt = X.clientY || X.touches && X.touches[0] && X.touches[0].clientY, yt = $e - A.initialX, hn = lt - A.initialY;
|
|
2266
|
-
Math.abs(yt) > Math.abs(hn) ? (X.preventDefault(), Math.abs(yt) >= 70 && (yt < 0 ? A.next() : A.prev(), A.initialX = $e)) :
|
|
2281
|
+
Math.abs(yt) > Math.abs(hn) ? (X.preventDefault(), Math.abs(yt) >= 70 && (yt < 0 ? A.next() : A.prev(), A.initialX = $e)) : oe.style.cursor = "grab", Math.abs(hn) > Math.abs(yt) && (oe.style.cursor = "grab");
|
|
2267
2282
|
}, xe = () => {
|
|
2268
|
-
document.removeEventListener("mousemove", Z), document.removeEventListener("touchmove", Z), document.removeEventListener("mouseup", xe), document.removeEventListener("touchend", xe),
|
|
2283
|
+
document.removeEventListener("mousemove", Z), document.removeEventListener("touchmove", Z), document.removeEventListener("mouseup", xe), document.removeEventListener("touchend", xe), oe.style.cursor = "grab";
|
|
2269
2284
|
};
|
|
2270
2285
|
document.addEventListener("mousemove", Z), document.addEventListener("touchmove", Z, { passive: !1 }), document.addEventListener("mouseup", xe), document.addEventListener("touchend", xe), A.initialX = ne.clientX || ne.touches && ne.touches[0] && ne.touches[0].clientX, A.initialY = ne.clientY || ne.touches && ne.touches[0] && ne.touches[0].clientY;
|
|
2271
2286
|
}, _e = (ne) => {
|
|
2272
2287
|
ne.key === "ArrowLeft" ? A.prev() : ne.key === "ArrowRight" && A.next();
|
|
2273
2288
|
};
|
|
2274
|
-
|
|
2289
|
+
oe.addEventListener("mousedown", G), oe.addEventListener("touchstart", G), document.addEventListener("keydown", _e);
|
|
2275
2290
|
},
|
|
2276
2291
|
next() {
|
|
2277
2292
|
this.currentDot < this.dotsNavigation.length && (this.currentDot++, this.setDot(this.currentDot));
|
|
@@ -2280,14 +2295,14 @@ const Rce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-205c63
|
|
|
2280
2295
|
this.currentDot > 1 && (this.currentDot--, this.setDot(this.currentDot));
|
|
2281
2296
|
},
|
|
2282
2297
|
initSlider() {
|
|
2283
|
-
let A = document.getElementById("sliderContainer_" + this.Random_string),
|
|
2298
|
+
let A = document.getElementById("sliderContainer_" + this.Random_string), oe = document.getElementById("mainSliderContainer_" + this.Random_string), G = document.getElementById("slider_" + this.Random_string), _e = G.querySelectorAll("li"), ne = Array.from(_e).filter((X) => X.parentNode === G);
|
|
2284
2299
|
ne[0];
|
|
2285
2300
|
let Z = this.element_size + 28;
|
|
2286
2301
|
console.log("cardwidth", Z);
|
|
2287
2302
|
let xe = A.clientWidth;
|
|
2288
|
-
if (console.log("sliderContainerWidth ", xe), console.log("mainSliderContainer ",
|
|
2303
|
+
if (console.log("sliderContainerWidth ", xe), console.log("mainSliderContainer ", oe.clientWidth), this.elementsToShow = Math.floor(this.hide_arrow ? oe.clientWidth / Z : xe / Z), console.log("elementsToShow", this.elementsToShow), console.log("elementsToShow new", this.elementsToShow), Z = (this.hide_arrow ? oe.clientWidth : xe) / this.elementsToShow - 28, console.log("cardwidth new last ", Z), ne.length > 1) {
|
|
2289
2304
|
this.dotsNum = Math.ceil(ne.length / this.elementsToShow), console.log("dotsNum", this.dotsNum);
|
|
2290
|
-
let X = this.hide_arrow ?
|
|
2305
|
+
let X = this.hide_arrow ? oe.clientWidth : xe;
|
|
2291
2306
|
console.log("navigation_no_between_slides", X), this.dotsNavigation = [];
|
|
2292
2307
|
for (let $e = 0; $e < this.dotsNum; $e++)
|
|
2293
2308
|
this.dotsNavigation.push(X * $e);
|
|
@@ -2300,11 +2315,11 @@ const Rce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-205c63
|
|
|
2300
2315
|
}
|
|
2301
2316
|
},
|
|
2302
2317
|
setDot(A) {
|
|
2303
|
-
let
|
|
2304
|
-
this.direction_property == "rtl" ?
|
|
2318
|
+
let oe = document.getElementById("slider_" + this.Random_string);
|
|
2319
|
+
this.direction_property == "rtl" ? oe.style.marginRight = -this.dotsNavigation[A - 1] + "px" : oe.style.marginLeft = -this.dotsNavigation[A - 1] + "px", this.currentDot = A;
|
|
2305
2320
|
}
|
|
2306
2321
|
}
|
|
2307
|
-
}, km = (A) => (rq("data-v-
|
|
2322
|
+
}, km = (A) => (rq("data-v-5bc331c6"), A = A(), aq(), A), DJ = ["id"], OJ = {
|
|
2308
2323
|
key: 0,
|
|
2309
2324
|
class: "items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"
|
|
2310
2325
|
}, RJ = { class: "w-full" }, $J = {
|
|
@@ -2489,7 +2504,7 @@ const Rce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-205c63
|
|
|
2489
2504
|
}, null, -1)), RQ = [
|
|
2490
2505
|
OQ
|
|
2491
2506
|
];
|
|
2492
|
-
function $Q(A,
|
|
2507
|
+
function $Q(A, oe, G, _e, ne, Z) {
|
|
2493
2508
|
return ue(), fe("div", null, [
|
|
2494
2509
|
R("div", {
|
|
2495
2510
|
class: Zt(["w-full", !G.hide_arrow && G.slider_arrows_indicators_position == "arrows_outside_slider" ? "flex" : "relative block"]),
|
|
@@ -2499,7 +2514,7 @@ function $Q(A, re, G, _e, ne, Z) {
|
|
|
2499
2514
|
R("div", RJ, [
|
|
2500
2515
|
R("button", {
|
|
2501
2516
|
class: "p-3 mr-5 rounded-full shadow-lg arrow_button_styles",
|
|
2502
|
-
onClick:
|
|
2517
|
+
onClick: oe[0] || (oe[0] = (xe) => Z.prev())
|
|
2503
2518
|
}, [
|
|
2504
2519
|
G.direction_property == "ltr" ? (ue(), fe("svg", $J, PJ)) : Ye("", !0),
|
|
2505
2520
|
G.direction_property == "rtl" ? (ue(), fe("svg", BJ, IJ)) : Ye("", !0)
|
|
@@ -2521,14 +2536,14 @@ function $Q(A, re, G, _e, ne, Z) {
|
|
|
2521
2536
|
R("div", HJ, [
|
|
2522
2537
|
R("button", {
|
|
2523
2538
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2524
|
-
onClick:
|
|
2539
|
+
onClick: oe[1] || (oe[1] = za((xe) => Z.prev(), ["stop"]))
|
|
2525
2540
|
}, [
|
|
2526
2541
|
G.direction_property == "ltr" ? (ue(), fe("svg", VJ, UJ)) : Ye("", !0),
|
|
2527
2542
|
G.direction_property == "rtl" ? (ue(), fe("svg", WJ, jJ)) : Ye("", !0)
|
|
2528
2543
|
])
|
|
2529
2544
|
])
|
|
2530
2545
|
], 2)) : Ye("", !0),
|
|
2531
|
-
ju(A.$slots, "default", {}, void 0, !0),
|
|
2546
|
+
ju(A.$slots, "default", { ref: "slotContent" }, void 0, !0),
|
|
2532
2547
|
A.dotsNum > 0 && !G.hide_arrow && G.slider_arrows_indicators_position == "arrows_indicators_inside_slider" ? (ue(), fe("div", {
|
|
2533
2548
|
key: 1,
|
|
2534
2549
|
class: Zt(["items-center justify-center hidden xl:flex xxl:flex md:flex sm:flex arrow_button", G.direction_property == "rtl" ? "arrow_button_prev" : "arrow_button_next"])
|
|
@@ -2536,7 +2551,7 @@ function $Q(A, re, G, _e, ne, Z) {
|
|
|
2536
2551
|
R("div", GJ, [
|
|
2537
2552
|
R("button", {
|
|
2538
2553
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2539
|
-
onClick:
|
|
2554
|
+
onClick: oe[2] || (oe[2] = za((xe) => Z.next(), ["stop"]))
|
|
2540
2555
|
}, [
|
|
2541
2556
|
G.direction_property == "ltr" ? (ue(), fe("svg", qJ, YJ)) : Ye("", !0),
|
|
2542
2557
|
G.direction_property == "rtl" ? (ue(), fe("svg", XJ, QJ)) : Ye("", !0)
|
|
@@ -2571,7 +2586,7 @@ function $Q(A, re, G, _e, ne, Z) {
|
|
|
2571
2586
|
R("div", iQ, [
|
|
2572
2587
|
R("button", {
|
|
2573
2588
|
class: Zt(["p-3 rounded-full arrow_button_styles", G.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
2574
|
-
onClick:
|
|
2589
|
+
onClick: oe[3] || (oe[3] = (xe) => Z.prev())
|
|
2575
2590
|
}, [
|
|
2576
2591
|
G.direction_property == "ltr" ? (ue(), fe("svg", uQ, mQ)) : Ye("", !0),
|
|
2577
2592
|
G.direction_property == "rtl" ? (ue(), fe("svg", fQ, hQ)) : Ye("", !0)
|
|
@@ -2582,7 +2597,7 @@ function $Q(A, re, G, _e, ne, Z) {
|
|
|
2582
2597
|
R("div", bQ, [
|
|
2583
2598
|
R("button", {
|
|
2584
2599
|
class: "p-3 rounded-full arrow_button_styles",
|
|
2585
|
-
onClick:
|
|
2600
|
+
onClick: oe[4] || (oe[4] = (xe) => Z.next())
|
|
2586
2601
|
}, [
|
|
2587
2602
|
G.direction_property == "ltr" ? (ue(), fe("svg", vQ, wQ)) : Ye("", !0),
|
|
2588
2603
|
G.direction_property == "rtl" ? (ue(), fe("svg", xQ, _Q)) : Ye("", !0)
|
|
@@ -2596,7 +2611,7 @@ function $Q(A, re, G, _e, ne, Z) {
|
|
|
2596
2611
|
R("div", kQ, [
|
|
2597
2612
|
R("button", {
|
|
2598
2613
|
class: "p-3 ml-5 rounded-full shadow-lg arrow_button_styles",
|
|
2599
|
-
onClick:
|
|
2614
|
+
onClick: oe[5] || (oe[5] = (xe) => Z.next())
|
|
2600
2615
|
}, [
|
|
2601
2616
|
G.direction_property == "ltr" ? (ue(), fe("svg", TQ, AQ)) : Ye("", !0),
|
|
2602
2617
|
G.direction_property == "rtl" ? (ue(), fe("svg", DQ, RQ)) : Ye("", !0)
|
|
@@ -2606,7 +2621,7 @@ function $Q(A, re, G, _e, ne, Z) {
|
|
|
2606
2621
|
], 10, DJ)
|
|
2607
2622
|
]);
|
|
2608
2623
|
}
|
|
2609
|
-
const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-
|
|
2624
|
+
const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-5bc331c6"]]), 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" }, [
|
|
2610
2625
|
/* @__PURE__ */ R("svg", {
|
|
2611
2626
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2612
2627
|
fill: "currentColor",
|
|
@@ -2657,8 +2672,8 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-d8bc41
|
|
|
2657
2672
|
}
|
|
2658
2673
|
},
|
|
2659
2674
|
emits: ["closeModal"],
|
|
2660
|
-
setup(A, { emit:
|
|
2661
|
-
const G = A, _e =
|
|
2675
|
+
setup(A, { emit: oe }) {
|
|
2676
|
+
const G = A, _e = oe, ne = () => {
|
|
2662
2677
|
document.documentElement.style.overflow = "hidden", document.documentElement.style.paddingRight = "0px";
|
|
2663
2678
|
}, Z = () => {
|
|
2664
2679
|
document.documentElement.style.overflow = "", document.documentElement.style.paddingRight = "";
|
|
@@ -2763,8 +2778,8 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-d8bc41
|
|
|
2763
2778
|
}
|
|
2764
2779
|
},
|
|
2765
2780
|
emits: ["closeModal"],
|
|
2766
|
-
setup(A, { emit:
|
|
2767
|
-
const G = A, _e =
|
|
2781
|
+
setup(A, { emit: oe }) {
|
|
2782
|
+
const G = A, _e = oe, ne = () => {
|
|
2768
2783
|
document.documentElement.style.overflow = "hidden", document.documentElement.style.paddingRight = "0px";
|
|
2769
2784
|
}, Z = () => {
|
|
2770
2785
|
document.documentElement.style.overflow = "", document.documentElement.style.paddingRight = "";
|
|
@@ -2867,8 +2882,8 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-d8bc41
|
|
|
2867
2882
|
}
|
|
2868
2883
|
},
|
|
2869
2884
|
emits: ["update:modelValue"],
|
|
2870
|
-
setup(A, { emit:
|
|
2871
|
-
const G = A, _e =
|
|
2885
|
+
setup(A, { emit: oe }) {
|
|
2886
|
+
const G = A, _e = oe, ne = co(null), Z = pu({
|
|
2872
2887
|
get() {
|
|
2873
2888
|
return G.modelValue;
|
|
2874
2889
|
},
|
|
@@ -2978,8 +2993,8 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-d8bc41
|
|
|
2978
2993
|
}
|
|
2979
2994
|
},
|
|
2980
2995
|
emits: ["update:modelValue"],
|
|
2981
|
-
setup(A, { emit:
|
|
2982
|
-
const G = A, _e =
|
|
2996
|
+
setup(A, { emit: oe }) {
|
|
2997
|
+
const G = A, _e = oe, ne = co(null), Z = pu({
|
|
2983
2998
|
get() {
|
|
2984
2999
|
return G.modelValue;
|
|
2985
3000
|
},
|
|
@@ -3153,8 +3168,8 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-d8bc41
|
|
|
3153
3168
|
}
|
|
3154
3169
|
},
|
|
3155
3170
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
3156
|
-
setup(A, { emit:
|
|
3157
|
-
const G = A, _e =
|
|
3171
|
+
setup(A, { emit: oe }) {
|
|
3172
|
+
const G = A, _e = oe;
|
|
3158
3173
|
co(null);
|
|
3159
3174
|
const ne = co({}), Z = co([]), xe = co(0), X = co(!1), $e = co(""), lt = co(""), yt = co(null), hn = co(0), Et = co(0), io = () => {
|
|
3160
3175
|
if (yt.value) {
|
|
@@ -3440,7 +3455,7 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-d8bc41
|
|
|
3440
3455
|
}
|
|
3441
3456
|
},
|
|
3442
3457
|
emits: ["update:modelValue", "keydown"],
|
|
3443
|
-
setup(A, { expose:
|
|
3458
|
+
setup(A, { expose: oe, emit: G }) {
|
|
3444
3459
|
const _e = A, ne = G, Z = co(null);
|
|
3445
3460
|
Dg(() => {
|
|
3446
3461
|
Z.value !== null && Z.value.hasAttribute("autofocus") && Z.value.focus();
|
|
@@ -3453,7 +3468,7 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-d8bc41
|
|
|
3453
3468
|
ne("update:modelValue", X);
|
|
3454
3469
|
}
|
|
3455
3470
|
});
|
|
3456
|
-
return
|
|
3471
|
+
return oe({ focus: () => Z.value.focus() }), (X, $e) => (ue(), fe(jn, null, [
|
|
3457
3472
|
A.show ? (ue(), fe("div", {
|
|
3458
3473
|
key: 0,
|
|
3459
3474
|
class: Zt(A.field_name)
|
|
@@ -3507,7 +3522,7 @@ function tte(A) {
|
|
|
3507
3522
|
var cq = { exports: {} };
|
|
3508
3523
|
(function(A) {
|
|
3509
3524
|
(function() {
|
|
3510
|
-
var
|
|
3525
|
+
var oe = function(e) {
|
|
3511
3526
|
if (e === null)
|
|
3512
3527
|
return "null";
|
|
3513
3528
|
if (e === void 0)
|
|
@@ -3563,7 +3578,7 @@ var cq = { exports: {} };
|
|
|
3563
3578
|
}, hn = Z(function(e, n) {
|
|
3564
3579
|
if (e === n)
|
|
3565
3580
|
return !0;
|
|
3566
|
-
var o =
|
|
3581
|
+
var o = oe(e), r = oe(n);
|
|
3567
3582
|
return o !== r ? !1 : G(o) ? e === n : o === "array" ? $e(hn).eq(e, n) : o === "object" ? yt(hn).eq(e, n) : !1;
|
|
3568
3583
|
});
|
|
3569
3584
|
const Et = Object.getPrototypeOf, io = (e, n, o) => {
|
|
@@ -4935,7 +4950,7 @@ var cq = { exports: {} };
|
|
|
4935
4950
|
}, ee = (we) => Promise.allSettled(Ke(we, (Se) => B(Se).then(ot(Se)))).then((Se) => {
|
|
4936
4951
|
const Be = qo(Se, (rt) => rt.status === "fulfilled");
|
|
4937
4952
|
return Be.fail.length > 0 ? Promise.reject(Ke(Be.fail, (rt) => rt.reason)) : Ke(Be.pass, (rt) => rt.value);
|
|
4938
|
-
}),
|
|
4953
|
+
}), se = (we) => {
|
|
4939
4954
|
const ke = ct._addCacheSuffix(we);
|
|
4940
4955
|
Xo(r, ke).each((Se) => {
|
|
4941
4956
|
--Se.count === 0 && (delete r[ke], k(Se.id));
|
|
@@ -4945,7 +4960,7 @@ var cq = { exports: {} };
|
|
|
4945
4960
|
load: B,
|
|
4946
4961
|
loadRawCss: F,
|
|
4947
4962
|
loadAll: ee,
|
|
4948
|
-
unload:
|
|
4963
|
+
unload: se,
|
|
4949
4964
|
unloadRawCss: (we) => {
|
|
4950
4965
|
Xo(r, we).each((ke) => {
|
|
4951
4966
|
--ke.count === 0 && (delete r[we], k(ke.id));
|
|
@@ -4953,7 +4968,7 @@ var cq = { exports: {} };
|
|
|
4953
4968
|
},
|
|
4954
4969
|
unloadAll: (we) => {
|
|
4955
4970
|
Te(we, (ke) => {
|
|
4956
|
-
|
|
4971
|
+
se(ke);
|
|
4957
4972
|
});
|
|
4958
4973
|
},
|
|
4959
4974
|
_setReferrerPolicy: f,
|
|
@@ -5103,19 +5118,19 @@ var cq = { exports: {} };
|
|
|
5103
5118
|
}, f = (y, k = "", P = "") => {
|
|
5104
5119
|
const B = ml(P), F = ml(y);
|
|
5105
5120
|
let ee = F.length;
|
|
5106
|
-
const
|
|
5121
|
+
const se = ml([
|
|
5107
5122
|
n,
|
|
5108
5123
|
k
|
|
5109
5124
|
].join(" "));
|
|
5110
5125
|
for (; ee--; )
|
|
5111
|
-
u(F[ee],
|
|
5126
|
+
u(F[ee], se.slice(), B);
|
|
5112
5127
|
}, b = (y, k) => {
|
|
5113
5128
|
const P = ml(y), B = ml(k);
|
|
5114
5129
|
let F = P.length;
|
|
5115
5130
|
for (; F--; ) {
|
|
5116
5131
|
const ee = l[P[F]];
|
|
5117
|
-
for (let
|
|
5118
|
-
ee.attributes[B[
|
|
5132
|
+
for (let se = 0, K = B.length; se < K; se++)
|
|
5133
|
+
ee.attributes[B[se]] = {}, ee.attributesOrder.push(B[se]);
|
|
5119
5134
|
}
|
|
5120
5135
|
};
|
|
5121
5136
|
return e !== "html5-strict" && (Te(ml("acronym applet basefont big font strike tt"), (P) => {
|
|
@@ -5254,7 +5269,7 @@ var cq = { exports: {} };
|
|
|
5254
5269
|
}
|
|
5255
5270
|
}, y = (n = e.schema) !== null && n !== void 0 ? n : "html5", k = N4(y);
|
|
5256
5271
|
e.verify_html === !1 && (e.valid_elements = "*[*]");
|
|
5257
|
-
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"),
|
|
5272
|
+
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"), se = 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"), re = 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);
|
|
5258
5273
|
ud("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "), (Ln) => {
|
|
5259
5274
|
f[Ln] = new RegExp("</" + Ln + "[^>]*>", "gi");
|
|
5260
5275
|
});
|
|
@@ -5335,7 +5350,7 @@ var cq = { exports: {} };
|
|
|
5335
5350
|
}), e.invalid_elements && ud(iu(e.invalid_elements), (Ln) => {
|
|
5336
5351
|
o[Ln] && delete o[Ln];
|
|
5337
5352
|
}), qn("span") || st("span[!data-mce-type|*]");
|
|
5338
|
-
const gs = ot(P), Rs = ot(B), Hr = ot(F), Ml = ot(
|
|
5353
|
+
const gs = ot(P), Rs = ot(B), Hr = ot(F), Ml = ot(re), us = ot(wt), Tt = ot(rt), on = ot(Ft), Kn = ot(Object.seal(K)), mo = ot(se), Qt = ot(ke), $n = ot(Se), Ct = ot(ee), Mn = ot(We), Oo = ot(Ve), Ss = ot(Object.seal(f)), hs = (Ln, Io) => {
|
|
5339
5354
|
const $s = r[Ln.toLowerCase()];
|
|
5340
5355
|
return !!($s && $s[Io.toLowerCase()]);
|
|
5341
5356
|
}, Ha = (Ln, Io) => {
|
|
@@ -5419,7 +5434,7 @@ var cq = { exports: {} };
|
|
|
5419
5434
|
parse: (B) => {
|
|
5420
5435
|
const F = {};
|
|
5421
5436
|
let ee = !1;
|
|
5422
|
-
const
|
|
5437
|
+
const se = e.url_converter, K = e.url_converter_scope || P, re = (We, Ve, st) => {
|
|
5423
5438
|
const Kt = F[We + "-top" + Ve];
|
|
5424
5439
|
if (!Kt)
|
|
5425
5440
|
return;
|
|
@@ -5462,7 +5477,7 @@ var cq = { exports: {} };
|
|
|
5462
5477
|
if (/(java|vb)script:/i.test(qn) || !e.allow_svg_data_urls && /^data:image\/svg/i.test(qn))
|
|
5463
5478
|
return "";
|
|
5464
5479
|
}
|
|
5465
|
-
return
|
|
5480
|
+
return se && (Ve = se.call(K, Ve, "style")), "url('" + Ve.replace(/\'/g, "\\'") + "')";
|
|
5466
5481
|
};
|
|
5467
5482
|
if (B) {
|
|
5468
5483
|
B = B.replace(/[\u0000-\u001F]/g, ""), B = B.replace(/\\[\"\';:\uFEFF]/g, Se).replace(/\"[^\"]+\"|\'[^\']+\'/g, (Ve) => Ve.replace(/[;:]/g, Se));
|
|
@@ -5478,27 +5493,27 @@ var cq = { exports: {} };
|
|
|
5478
5493
|
}), st = st.replace(o, Ft), F[Ve] = ee ? Be(st, !0) : st;
|
|
5479
5494
|
}
|
|
5480
5495
|
}
|
|
5481
|
-
|
|
5496
|
+
re("border", "", !0), re("border", "-width"), re("border", "-color"), re("border", "-style"), re("padding", ""), re("margin", ""), ke("border", "border-width", "border-style", "border-color"), F.border === "medium none" && delete F.border, F["border-image"] === "none" && delete F["border-image"];
|
|
5482
5497
|
}
|
|
5483
5498
|
return F;
|
|
5484
5499
|
},
|
|
5485
5500
|
serialize: (B, F) => {
|
|
5486
5501
|
let ee = "";
|
|
5487
|
-
const
|
|
5488
|
-
const ke = we[
|
|
5502
|
+
const se = (re, we) => {
|
|
5503
|
+
const ke = we[re];
|
|
5489
5504
|
if (ke)
|
|
5490
5505
|
for (let Se = 0, Be = ke.length; Se < Be; Se++) {
|
|
5491
5506
|
const rt = ke[Se], wt = B[rt];
|
|
5492
5507
|
wt && (ee += (ee.length > 0 ? " " : "") + rt + ": " + wt + ";");
|
|
5493
5508
|
}
|
|
5494
|
-
}, K = (
|
|
5509
|
+
}, K = (re, we) => {
|
|
5495
5510
|
if (!b || !we)
|
|
5496
5511
|
return !0;
|
|
5497
5512
|
let ke = b["*"];
|
|
5498
|
-
return ke && ke[
|
|
5513
|
+
return ke && ke[re] ? !1 : (ke = b[we], !(ke && ke[re]));
|
|
5499
5514
|
};
|
|
5500
|
-
return F && f ? (
|
|
5501
|
-
|
|
5515
|
+
return F && f ? (se("*", f), se(F, f)) : bt(B, (re, we) => {
|
|
5516
|
+
re && K(we, F) && (ee += (ee.length > 0 ? " " : "") + we + ": " + re + ";");
|
|
5502
5517
|
}), ee;
|
|
5503
5518
|
}
|
|
5504
5519
|
};
|
|
@@ -5566,13 +5581,13 @@ var cq = { exports: {} };
|
|
|
5566
5581
|
const P = o.split(" ");
|
|
5567
5582
|
let B = P.length;
|
|
5568
5583
|
for (; B--; ) {
|
|
5569
|
-
let F = P[B], ee = y,
|
|
5584
|
+
let F = P[B], ee = y, se = !1, K = !1;
|
|
5570
5585
|
if (F === "DOMContentLoaded" && (F = "ready"), u.domLoaded && F === "ready" && n.readyState === "complete") {
|
|
5571
5586
|
r.call(l, H0({ type: F }));
|
|
5572
5587
|
continue;
|
|
5573
5588
|
}
|
|
5574
|
-
!u.hasFocusIn && (F === "focusin" || F === "focusout") && (
|
|
5575
|
-
const we = H0(
|
|
5589
|
+
!u.hasFocusIn && (F === "focusin" || F === "focusout") && (se = !0, K = F === "focusin" ? "focus" : "blur", ee = (re) => {
|
|
5590
|
+
const we = H0(re || b.event);
|
|
5576
5591
|
we.type = we.type === "focus" ? "focusin" : "focusout", u.executeHandlers(we, k);
|
|
5577
5592
|
}), f = u.events[k][F], f ? F === "ready" && u.domLoaded ? r(H0({ type: F })) : f.push({
|
|
5578
5593
|
func: r,
|
|
@@ -5580,7 +5595,7 @@ var cq = { exports: {} };
|
|
|
5580
5595
|
}) : (u.events[k][F] = f = [{
|
|
5581
5596
|
func: r,
|
|
5582
5597
|
scope: l
|
|
5583
|
-
}], f.fakeName = K, f.capture =
|
|
5598
|
+
}], f.fakeName = K, f.capture = se, f.nativeHandler = ee, F === "ready" ? qy(n, ee, u) : Pb(n, K || F, ee, se));
|
|
5584
5599
|
}
|
|
5585
5600
|
return n = f = null, r;
|
|
5586
5601
|
}
|
|
@@ -5600,8 +5615,8 @@ var cq = { exports: {} };
|
|
|
5600
5615
|
let P = k.length;
|
|
5601
5616
|
for (; P--; )
|
|
5602
5617
|
if (k[P].func === r) {
|
|
5603
|
-
const B = k.nativeHandler, F = k.fakeName, ee = k.capture,
|
|
5604
|
-
|
|
5618
|
+
const B = k.nativeHandler, F = k.fakeName, ee = k.capture, se = k.slice(0, P).concat(k.slice(P + 1));
|
|
5619
|
+
se.nativeHandler = B, se.fakeName = F, se.capture = ee, u[y] = se;
|
|
5605
5620
|
}
|
|
5606
5621
|
}
|
|
5607
5622
|
(!r || k.length === 0) && (delete u[y], cp(n, k.fakeName || y, k.nativeHandler, k.capture));
|
|
@@ -5719,12 +5734,12 @@ var cq = { exports: {} };
|
|
|
5719
5734
|
url_converter: n.url_converter,
|
|
5720
5735
|
url_converter_scope: n.url_converter_scope,
|
|
5721
5736
|
force_hex_color: n.force_hex_color
|
|
5722
|
-
}, n.schema), F = n.ownEvents ? new ti() : ti.Event, ee = P.getBlockElements(),
|
|
5737
|
+
}, n.schema), F = n.ownEvents ? new ti() : ti.Event, ee = P.getBlockElements(), se = (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, re = (Ne) => {
|
|
5723
5738
|
const He = K(Ne);
|
|
5724
5739
|
return Ze(He) ? ie.fromDom(He) : null;
|
|
5725
5740
|
}, we = (Ne, He, St = "") => {
|
|
5726
5741
|
let ht;
|
|
5727
|
-
const ln =
|
|
5742
|
+
const ln = re(Ne);
|
|
5728
5743
|
if (Ze(ln) && Ba(ln)) {
|
|
5729
5744
|
const fo = Dy[He];
|
|
5730
5745
|
fo && fo.get ? ht = fo.get(ln.dom, He) : ht = Ga(ln, He);
|
|
@@ -5908,17 +5923,17 @@ var cq = { exports: {} };
|
|
|
5908
5923
|
}, $s = (Ne, He) => {
|
|
5909
5924
|
Ln(Ne, He, !1);
|
|
5910
5925
|
}, tr = (Ne, He) => {
|
|
5911
|
-
const St =
|
|
5926
|
+
const St = re(Ne), ht = He.split(" ");
|
|
5912
5927
|
return Ze(St) && nr(ht, (ln) => eu(St, ln));
|
|
5913
5928
|
}, mr = (Ne) => {
|
|
5914
5929
|
on(Ne, (He) => td(ie.fromDom(He), "display"));
|
|
5915
5930
|
}, Vi = (Ne) => {
|
|
5916
5931
|
on(Ne, (He) => Gh(ie.fromDom(He), "display", "none"));
|
|
5917
5932
|
}, Cf = (Ne) => {
|
|
5918
|
-
const He =
|
|
5933
|
+
const He = re(Ne);
|
|
5919
5934
|
return Ze(He) && ls(Mr(He, "display"), "none");
|
|
5920
5935
|
}, x0 = (Ne) => (Ne || "mce_") + u++, Ux = (Ne) => {
|
|
5921
|
-
const He =
|
|
5936
|
+
const He = re(Ne);
|
|
5922
5937
|
return Ze(He) ? qt(He.dom) ? He.dom.outerHTML : Ug(He) : "";
|
|
5923
5938
|
}, ib = (Ne, He) => {
|
|
5924
5939
|
on(Ne, (St) => {
|
|
@@ -6050,7 +6065,7 @@ var cq = { exports: {} };
|
|
|
6050
6065
|
styles: B,
|
|
6051
6066
|
schema: P,
|
|
6052
6067
|
events: F,
|
|
6053
|
-
isBlock:
|
|
6068
|
+
isBlock: se,
|
|
6054
6069
|
root: null,
|
|
6055
6070
|
clone: Be,
|
|
6056
6071
|
getRoot: rt,
|
|
@@ -6257,38 +6272,38 @@ var cq = { exports: {} };
|
|
|
6257
6272
|
isRtl: () => qd().bind((e) => Xo(e, "_dir")).exists((e) => e === "rtl"),
|
|
6258
6273
|
hasCode: (e) => pn(V0, e)
|
|
6259
6274
|
}, Kl = () => {
|
|
6260
|
-
const e = [], n = {}, o = {}, r = [], l = (K,
|
|
6261
|
-
const we = zt(r, (ke) => ke.name === K && ke.state ===
|
|
6275
|
+
const e = [], n = {}, o = {}, r = [], l = (K, re) => {
|
|
6276
|
+
const we = zt(r, (ke) => ke.name === K && ke.state === re);
|
|
6262
6277
|
Te(we, (ke) => ke.resolve());
|
|
6263
6278
|
}, u = (K) => pn(n, K), f = (K) => pn(o, K), b = (K) => {
|
|
6264
6279
|
if (o[K])
|
|
6265
6280
|
return o[K].instance;
|
|
6266
|
-
}, y = (K,
|
|
6267
|
-
const we = Mu.getCode(), ke = "," + (
|
|
6268
|
-
!we ||
|
|
6269
|
-
}, k = (K,
|
|
6270
|
-
Kl.languageLoad !== !1 && (u(K) ? y(K,
|
|
6271
|
-
}, P = (K,
|
|
6281
|
+
}, y = (K, re) => {
|
|
6282
|
+
const we = Mu.getCode(), ke = "," + (re || "") + ",";
|
|
6283
|
+
!we || re && ke.indexOf("," + we + ",") === -1 || ra.ScriptLoader.add(n[K] + "/langs/" + we + ".js");
|
|
6284
|
+
}, k = (K, re) => {
|
|
6285
|
+
Kl.languageLoad !== !1 && (u(K) ? y(K, re) : se(K, "loaded").then(() => y(K, re)));
|
|
6286
|
+
}, P = (K, re) => (e.push(re), o[K] = { instance: re }, l(K, "added"), re), B = (K) => {
|
|
6272
6287
|
delete n[K], delete o[K];
|
|
6273
|
-
}, F = (K,
|
|
6288
|
+
}, F = (K, re) => he(re) ? he(K) ? {
|
|
6274
6289
|
prefix: "",
|
|
6275
|
-
resource:
|
|
6290
|
+
resource: re,
|
|
6276
6291
|
suffix: ""
|
|
6277
6292
|
} : {
|
|
6278
6293
|
prefix: K.prefix,
|
|
6279
|
-
resource:
|
|
6294
|
+
resource: re,
|
|
6280
6295
|
suffix: K.suffix
|
|
6281
|
-
} :
|
|
6296
|
+
} : re, ee = (K, re) => {
|
|
6282
6297
|
if (n[K])
|
|
6283
6298
|
return Promise.resolve();
|
|
6284
|
-
let we = he(
|
|
6299
|
+
let we = he(re) ? re : re.prefix + re.resource + re.suffix;
|
|
6285
6300
|
we.indexOf("/") !== 0 && we.indexOf("://") === -1 && (we = Kl.baseURL + "/" + we), n[K] = we.substring(0, we.lastIndexOf("/"));
|
|
6286
6301
|
const ke = () => (l(K, "loaded"), Promise.resolve());
|
|
6287
6302
|
return o[K] ? ke() : ra.ScriptLoader.add(we).then(ke);
|
|
6288
|
-
},
|
|
6303
|
+
}, se = (K, re = "added") => re === "added" && f(K) || re === "loaded" && u(K) ? Promise.resolve() : new Promise((we) => {
|
|
6289
6304
|
r.push({
|
|
6290
6305
|
name: K,
|
|
6291
|
-
state:
|
|
6306
|
+
state: re,
|
|
6292
6307
|
resolve: we
|
|
6293
6308
|
});
|
|
6294
6309
|
});
|
|
@@ -6302,7 +6317,7 @@ var cq = { exports: {} };
|
|
|
6302
6317
|
remove: B,
|
|
6303
6318
|
createUrl: F,
|
|
6304
6319
|
load: ee,
|
|
6305
|
-
waitFor:
|
|
6320
|
+
waitFor: se
|
|
6306
6321
|
};
|
|
6307
6322
|
};
|
|
6308
6323
|
Kl.languageLoad = !0, Kl.baseURL = "", Kl.PluginManager = Kl(), Kl.ThemeManager = Kl(), Kl.ModelManager = Kl();
|
|
@@ -6389,13 +6404,13 @@ var cq = { exports: {} };
|
|
|
6389
6404
|
}), l = (B, F) => {
|
|
6390
6405
|
u(B, (ee) => (F(ee), ee));
|
|
6391
6406
|
}, u = (B, F) => {
|
|
6392
|
-
const ee = o.get(),
|
|
6407
|
+
const ee = o.get(), se = Xo(ee, B).getOrThunk(r), K = F(se);
|
|
6393
6408
|
ee[B] = K, o.set(ee);
|
|
6394
6409
|
}, f = (B, F, ee) => {
|
|
6395
|
-
l(B, (
|
|
6396
|
-
Te(
|
|
6410
|
+
l(B, (se) => {
|
|
6411
|
+
Te(se.listeners, (K) => K(!0, B, {
|
|
6397
6412
|
uid: F,
|
|
6398
|
-
nodes: Ke(ee, (
|
|
6413
|
+
nodes: Ke(ee, (re) => re.dom)
|
|
6399
6414
|
}));
|
|
6400
6415
|
});
|
|
6401
6416
|
}, b = (B) => {
|
|
@@ -6410,13 +6425,13 @@ var cq = { exports: {} };
|
|
|
6410
6425
|
const B = Ko(n.getNames());
|
|
6411
6426
|
Te(B, (F) => {
|
|
6412
6427
|
u(F, (ee) => {
|
|
6413
|
-
const
|
|
6428
|
+
const se = ee.previous.get();
|
|
6414
6429
|
return Sr(e, z.some(F)).fold(() => {
|
|
6415
|
-
|
|
6430
|
+
se.each((K) => {
|
|
6416
6431
|
b(F), ee.previous.clear(), y(K, !1);
|
|
6417
6432
|
});
|
|
6418
|
-
}, ({ uid: K, name:
|
|
6419
|
-
ls(
|
|
6433
|
+
}, ({ uid: K, name: re, elements: we }) => {
|
|
6434
|
+
ls(se, K) || (se.each((ke) => y(ke, !1)), f(re, K, we), ee.previous.set(K), y(K, !0));
|
|
6420
6435
|
}), {
|
|
6421
6436
|
previous: ee.previous,
|
|
6422
6437
|
listeners: ee.listeners
|
|
@@ -6922,7 +6937,7 @@ var cq = { exports: {} };
|
|
|
6922
6937
|
if (n.length !== F.length)
|
|
6923
6938
|
throw new Error("Wrong number of arguments to match. Expected: " + n.join(",") + `
|
|
6924
6939
|
Actual: ` + F.join(","));
|
|
6925
|
-
if (!nr(n, (
|
|
6940
|
+
if (!nr(n, (se) => qe(F, se)))
|
|
6926
6941
|
throw new Error("Not all branches were specified when using match. Specified: " + F.join(", ") + `
|
|
6927
6942
|
Required: ` + n.join(", "));
|
|
6928
6943
|
return B[f].apply(null, y);
|
|
@@ -7646,12 +7661,12 @@ Required: ` + n.join(", "));
|
|
|
7646
7661
|
}, I2 = (e, n, o, r) => {
|
|
7647
7662
|
const l = Vf();
|
|
7648
7663
|
let u, f;
|
|
7649
|
-
const b = Xl(e), y = e.dom, k = (K,
|
|
7664
|
+
const b = Xl(e), y = e.dom, k = (K, re) => {
|
|
7650
7665
|
let we;
|
|
7651
|
-
if (P(), hO(
|
|
7666
|
+
if (P(), hO(re))
|
|
7652
7667
|
return null;
|
|
7653
|
-
if (o(
|
|
7654
|
-
const ke = mc(b,
|
|
7668
|
+
if (o(re)) {
|
|
7669
|
+
const ke = mc(b, re, K), Se = B3(n, re, K);
|
|
7655
7670
|
y.setStyle(ke, "top", Se.top), f = ke;
|
|
7656
7671
|
const Be = y.create("div", {
|
|
7657
7672
|
class: "mce-visual-caret",
|
|
@@ -7659,11 +7674,11 @@ Required: ` + n.join(", "));
|
|
|
7659
7674
|
});
|
|
7660
7675
|
y.setStyles(Be, { ...Se }), y.add(n, Be), l.set({
|
|
7661
7676
|
caret: Be,
|
|
7662
|
-
element:
|
|
7677
|
+
element: re,
|
|
7663
7678
|
before: K
|
|
7664
|
-
}), K && y.addClass(Be, "mce-visual-caret-before"), B(), we =
|
|
7679
|
+
}), K && y.addClass(Be, "mce-visual-caret-before"), B(), we = re.ownerDocument.createRange(), we.setStart(ke, 0), we.setEnd(ke, 0);
|
|
7665
7680
|
} else
|
|
7666
|
-
return f = ir(
|
|
7681
|
+
return f = ir(re, K), we = re.ownerDocument.createRange(), lv(f.nextSibling) ? (we.setStart(f, 0), we.setEnd(f, 0)) : (we.setStart(f, 1), we.setEnd(f, 1)), we;
|
|
7667
7682
|
return we;
|
|
7668
7683
|
}, P = () => {
|
|
7669
7684
|
YC(n), f && (ka(f), f = null), l.on((K) => {
|
|
@@ -7682,8 +7697,8 @@ Required: ` + n.join(", "));
|
|
|
7682
7697
|
getCss: () => ".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}",
|
|
7683
7698
|
reposition: () => {
|
|
7684
7699
|
l.on((K) => {
|
|
7685
|
-
const
|
|
7686
|
-
y.setStyles(K.caret, { ...
|
|
7700
|
+
const re = B3(n, K.element, K.before);
|
|
7701
|
+
y.setStyles(K.caret, { ...re });
|
|
7687
7702
|
});
|
|
7688
7703
|
},
|
|
7689
7704
|
destroy: () => clearInterval(u)
|
|
@@ -8146,8 +8161,8 @@ Required: ` + n.join(", "));
|
|
|
8146
8161
|
}, 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) => {
|
|
8147
8162
|
let f;
|
|
8148
8163
|
const b = e.getParent(o, e.isBlock) || n, y = (P, B, F) => {
|
|
8149
|
-
const ee = zf(e),
|
|
8150
|
-
return z.from(
|
|
8164
|
+
const ee = zf(e), se = l ? ee.backwards : ee.forwards;
|
|
8165
|
+
return z.from(se(P, B, (K, re) => Wp(K.parentNode) ? -1 : (f = K, F(l, K, re)), b));
|
|
8151
8166
|
};
|
|
8152
8167
|
return y(o, r, Dl).bind((P) => u ? y(P.container, P.offset + (l ? -1 : 0), Iu) : z.some(P)).orThunk(() => f ? z.some({
|
|
8153
8168
|
container: f,
|
|
@@ -8214,21 +8229,21 @@ Required: ` + n.join(", "));
|
|
|
8214
8229
|
};
|
|
8215
8230
|
}, S1 = (e, n, o) => {
|
|
8216
8231
|
var r;
|
|
8217
|
-
const l = n.startOffset, u = oi(n.startContainer, l), f = n.endOffset, b = oi(n.endContainer, f - 1), y = (
|
|
8218
|
-
const we =
|
|
8219
|
-
ut(we) && we === u && l >= we.data.length &&
|
|
8220
|
-
const ke =
|
|
8221
|
-
return f === 0 &&
|
|
8222
|
-
}, k = (
|
|
8232
|
+
const l = n.startOffset, u = oi(n.startContainer, l), f = n.endOffset, b = oi(n.endContainer, f - 1), y = (re) => {
|
|
8233
|
+
const we = re[0];
|
|
8234
|
+
ut(we) && we === u && l >= we.data.length && re.splice(0, 1);
|
|
8235
|
+
const ke = re[re.length - 1];
|
|
8236
|
+
return f === 0 && re.length > 0 && ke === b && ut(ke) && re.splice(re.length - 1, 1), re;
|
|
8237
|
+
}, k = (re, we, ke) => {
|
|
8223
8238
|
const Se = [];
|
|
8224
|
-
for (;
|
|
8225
|
-
Se.push(
|
|
8239
|
+
for (; re && re !== ke; re = re[we])
|
|
8240
|
+
Se.push(re);
|
|
8226
8241
|
return Se;
|
|
8227
|
-
}, P = (
|
|
8242
|
+
}, P = (re, we) => e.getParent(re, (ke) => ke.parentNode === we, we), B = (re, we, ke) => {
|
|
8228
8243
|
const Se = ke ? "nextSibling" : "previousSibling";
|
|
8229
|
-
for (let Be =
|
|
8244
|
+
for (let Be = re, rt = Be.parentNode; Be && Be !== we; Be = rt) {
|
|
8230
8245
|
rt = Be.parentNode;
|
|
8231
|
-
const wt = k(Be ===
|
|
8246
|
+
const wt = k(Be === re ? Be : Be[Se], Se);
|
|
8232
8247
|
wt.length && (ke || wt.reverse(), o(y(wt)));
|
|
8233
8248
|
}
|
|
8234
8249
|
};
|
|
@@ -8239,10 +8254,10 @@ Required: ` + n.join(", "));
|
|
|
8239
8254
|
return B(u, F, !0);
|
|
8240
8255
|
if (e.isChildOf(b, u))
|
|
8241
8256
|
return B(b, F);
|
|
8242
|
-
const ee = P(u, F) || u,
|
|
8257
|
+
const ee = P(u, F) || u, se = P(b, F) || b;
|
|
8243
8258
|
B(u, ee, !0);
|
|
8244
|
-
const K = k(ee === u ? ee : ee.nextSibling, "nextSibling",
|
|
8245
|
-
K.length && o(y(K)), B(b,
|
|
8259
|
+
const K = k(ee === u ? ee : ee.nextSibling, "nextSibling", se === b ? se.nextSibling : se);
|
|
8260
|
+
K.length && o(y(K)), B(b, se);
|
|
8246
8261
|
}, ew = [
|
|
8247
8262
|
'pre[class*=language-][contenteditable="false"]',
|
|
8248
8263
|
"figure.image",
|
|
@@ -8273,34 +8288,34 @@ Required: ` + n.join(", "));
|
|
|
8273
8288
|
const f = [], b = sf(e.getDoc(), o, u, r, l), y = Vf(), k = () => {
|
|
8274
8289
|
y.clear();
|
|
8275
8290
|
}, P = () => y.get().getOrThunk(() => {
|
|
8276
|
-
const
|
|
8277
|
-
return f.push(
|
|
8278
|
-
}), B = (
|
|
8279
|
-
Te(
|
|
8280
|
-
}, F = (
|
|
8281
|
-
switch (b_(e,
|
|
8291
|
+
const se = ni(b);
|
|
8292
|
+
return f.push(se), y.set(se), se;
|
|
8293
|
+
}), B = (se) => {
|
|
8294
|
+
Te(se, F);
|
|
8295
|
+
}, F = (se) => {
|
|
8296
|
+
switch (b_(e, se, "span", bo(se))) {
|
|
8282
8297
|
case "invalid-child": {
|
|
8283
8298
|
k();
|
|
8284
|
-
const
|
|
8285
|
-
B(
|
|
8299
|
+
const re = $r(se);
|
|
8300
|
+
B(re), k();
|
|
8286
8301
|
break;
|
|
8287
8302
|
}
|
|
8288
8303
|
case "valid-block": {
|
|
8289
|
-
k(), Tv(
|
|
8304
|
+
k(), Tv(se, o, u, r, l, !0);
|
|
8290
8305
|
break;
|
|
8291
8306
|
}
|
|
8292
8307
|
case "valid": {
|
|
8293
|
-
const
|
|
8294
|
-
zg(
|
|
8308
|
+
const re = P();
|
|
8309
|
+
zg(se, re);
|
|
8295
8310
|
break;
|
|
8296
8311
|
}
|
|
8297
8312
|
}
|
|
8298
|
-
}, ee = (
|
|
8299
|
-
const K = Ke(
|
|
8313
|
+
}, ee = (se) => {
|
|
8314
|
+
const K = Ke(se, ie.fromDom);
|
|
8300
8315
|
B(K);
|
|
8301
8316
|
};
|
|
8302
|
-
return S1(e.dom, n, (
|
|
8303
|
-
k(), ee(
|
|
8317
|
+
return S1(e.dom, n, (se) => {
|
|
8318
|
+
k(), ee(se);
|
|
8304
8319
|
}), f;
|
|
8305
8320
|
}, nw = (e, n, o, r) => {
|
|
8306
8321
|
e.undoManager.transact(() => {
|
|
@@ -8455,7 +8470,7 @@ Required: ` + n.join(", "));
|
|
|
8455
8470
|
]
|
|
8456
8471
|
}, wO = (e) => e.type === "longpress" || e.type.indexOf("touch") === 0, xO = (e, n) => {
|
|
8457
8472
|
const o = n.dom, r = n.getDoc(), l = document, u = n.getBody();
|
|
8458
|
-
let f, b, y, k, P, B, F, ee,
|
|
8473
|
+
let f, b, y, k, P, B, F, ee, se, K, re, we, ke, Se, Be, rt, wt;
|
|
8459
8474
|
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) => {
|
|
8460
8475
|
if (wO(Ct)) {
|
|
8461
8476
|
const Oo = Ct.touches[0];
|
|
@@ -8482,14 +8497,14 @@ Required: ` + n.join(", "));
|
|
|
8482
8497
|
qn(Ct, "width", Mn), qn(Ct, "height", Oo);
|
|
8483
8498
|
}, Rs = (Ct) => {
|
|
8484
8499
|
let Mn, Oo, Ss, hs, Ha;
|
|
8485
|
-
Mn = Ct.screenX - B, Oo = Ct.screenY - F, Se = Mn * k[2] + K, Be = Oo * k[3] +
|
|
8500
|
+
Mn = Ct.screenX - B, Oo = Ct.screenY - F, Se = Mn * k[2] + K, Be = Oo * k[3] + re, Se = Se < 5 ? 5 : Se, Be = Be < 5 ? 5 : Be, (Ft(f) || We(f)) && $C(n) !== !1 ? Ss = !Wt.modifierPressed(Ct) : Ss = Wt.modifierPressed(Ct), Ss && (T1(Mn) > T1(Oo) ? (Be = E1(Se * we), Se = E1(Be / we)) : (Se = E1(Be / we), Be = E1(Se * we))), gs(b, Se, Be), hs = k.startPos.x + Mn, Ha = k.startPos.y + Oo, hs = hs > 0 ? hs : 0, Ha = Ha > 0 ? Ha : 0, o.setStyles(y, {
|
|
8486
8501
|
left: hs,
|
|
8487
8502
|
top: Ha,
|
|
8488
8503
|
display: "block"
|
|
8489
|
-
}), 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",
|
|
8504
|
+
}), 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", se + (re - Be)), Mn = u.scrollWidth - rt, Oo = u.scrollHeight - wt, Mn + Oo !== 0 && o.setStyles(y, {
|
|
8490
8505
|
left: hs - Mn,
|
|
8491
8506
|
top: Ha - Oo
|
|
8492
|
-
}), ke || (lw(n, f, K,
|
|
8507
|
+
}), ke || (lw(n, f, K, re, "corner-" + k.name), ke = !0);
|
|
8493
8508
|
}, Hr = () => {
|
|
8494
8509
|
const Ct = ke;
|
|
8495
8510
|
ke = !1, Ct && (qn(f, "width", Se), qn(f, "height", Be)), o.unbind(r, "mousemove", Rs), o.unbind(r, "mouseup", Hr), l !== r && (o.unbind(l, "mousemove", Rs), o.unbind(l, "mouseup", Hr)), o.remove(b), o.remove(y), o.remove(P), Ml(f), Ct && (Lu(n, f, Se, Be, "corner-" + k.name), o.setAttrib(f, "style", o.getAttrib(f, "style"))), n.nodeChanged();
|
|
@@ -8501,7 +8516,7 @@ Required: ` + n.join(", "));
|
|
|
8501
8516
|
cn(Ct) && !Cg.isDefaultPrevented() ? bt(rT, (ci, Ed) => {
|
|
8502
8517
|
const Ln = ($s) => {
|
|
8503
8518
|
const tr = Kt(f)[0];
|
|
8504
|
-
B = $s.screenX, F = $s.screenY, K = tr.clientWidth,
|
|
8519
|
+
B = $s.screenX, F = $s.screenY, K = tr.clientWidth, re = tr.clientHeight, we = re / K, k = ci, k.name = Ed, k.startPos = {
|
|
8505
8520
|
x: Ha * ci[0] + Oo,
|
|
8506
8521
|
y: vm * ci[1] + Ss
|
|
8507
8522
|
}, rt = u.scrollWidth, wt = u.scrollHeight, P = o.add(u, "div", {
|
|
@@ -8520,7 +8535,7 @@ Required: ` + n.join(", "));
|
|
|
8520
8535
|
}), gs(b, Ha, vm), b.removeAttribute(sg), u.appendChild(b), o.bind(r, "mousemove", Rs), o.bind(r, "mouseup", Hr), l !== r && (o.bind(l, "mousemove", Rs), o.bind(l, "mouseup", Hr)), y = o.add(u, "div", {
|
|
8521
8536
|
class: "mce-resize-helper",
|
|
8522
8537
|
"data-mce-bogus": "all"
|
|
8523
|
-
}, K + " × " +
|
|
8538
|
+
}, K + " × " + re);
|
|
8524
8539
|
};
|
|
8525
8540
|
let Io = o.get("mceResizeHandle" + Ed);
|
|
8526
8541
|
Io && o.remove(Io), Io = o.add(u, "div", {
|
|
@@ -9539,44 +9554,44 @@ Required: ` + n.join(", "));
|
|
|
9539
9554
|
const B = y.name, F = B in n.getVoidElements();
|
|
9540
9555
|
let ee = y.attributes;
|
|
9541
9556
|
if (u && ee && ee.length > 1) {
|
|
9542
|
-
const
|
|
9543
|
-
|
|
9557
|
+
const se = [];
|
|
9558
|
+
se.map = {};
|
|
9544
9559
|
const K = n.getElementRule(y.name);
|
|
9545
9560
|
if (K) {
|
|
9546
|
-
for (let
|
|
9547
|
-
const ke = K.attributesOrder[
|
|
9561
|
+
for (let re = 0, we = K.attributesOrder.length; re < we; re++) {
|
|
9562
|
+
const ke = K.attributesOrder[re];
|
|
9548
9563
|
if (ke in ee.map) {
|
|
9549
9564
|
const Se = ee.map[ke];
|
|
9550
|
-
|
|
9565
|
+
se.map[ke] = Se, se.push({
|
|
9551
9566
|
name: ke,
|
|
9552
9567
|
value: Se
|
|
9553
9568
|
});
|
|
9554
9569
|
}
|
|
9555
9570
|
}
|
|
9556
|
-
for (let
|
|
9557
|
-
const ke = ee[
|
|
9558
|
-
if (!(ke in
|
|
9571
|
+
for (let re = 0, we = ee.length; re < we; re++) {
|
|
9572
|
+
const ke = ee[re].name;
|
|
9573
|
+
if (!(ke in se.map)) {
|
|
9559
9574
|
const Se = ee.map[ke];
|
|
9560
|
-
|
|
9575
|
+
se.map[ke] = Se, se.push({
|
|
9561
9576
|
name: ke,
|
|
9562
9577
|
value: Se
|
|
9563
9578
|
});
|
|
9564
9579
|
}
|
|
9565
9580
|
}
|
|
9566
|
-
ee =
|
|
9581
|
+
ee = se;
|
|
9567
9582
|
}
|
|
9568
9583
|
}
|
|
9569
9584
|
if (o.start(B, ee, F), cd(B))
|
|
9570
9585
|
he(y.value) && o.text(y.value, !0), o.end(B);
|
|
9571
9586
|
else if (!F) {
|
|
9572
|
-
let
|
|
9573
|
-
if (
|
|
9574
|
-
(B === "pre" || B === "textarea") &&
|
|
9587
|
+
let se = y.firstChild;
|
|
9588
|
+
if (se) {
|
|
9589
|
+
(B === "pre" || B === "textarea") && se.type === 3 && ((k = se.value) === null || k === void 0 ? void 0 : k[0]) === `
|
|
9575
9590
|
` && o.text(`
|
|
9576
9591
|
`, !0);
|
|
9577
9592
|
do
|
|
9578
|
-
b(
|
|
9579
|
-
while (
|
|
9593
|
+
b(se);
|
|
9594
|
+
while (se = se.next);
|
|
9580
9595
|
}
|
|
9581
9596
|
o.end(B);
|
|
9582
9597
|
}
|
|
@@ -10071,14 +10086,14 @@ Required: ` + n.join(", "));
|
|
|
10071
10086
|
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];
|
|
10072
10087
|
for (let P = 0; P < e.length; P++) {
|
|
10073
10088
|
const B = e[P];
|
|
10074
|
-
let F, ee,
|
|
10089
|
+
let F, ee, se;
|
|
10075
10090
|
if (!B.parent || y.has(B))
|
|
10076
10091
|
continue;
|
|
10077
10092
|
if (l[B.name] && B.parent.name === "li") {
|
|
10078
|
-
let
|
|
10079
|
-
for (;
|
|
10080
|
-
|
|
10081
|
-
|
|
10093
|
+
let re = B.next;
|
|
10094
|
+
for (; re && l[re.name]; ) {
|
|
10095
|
+
re.name = "li", y.add(re), B.parent.insert(re, B.parent);
|
|
10096
|
+
re = re.next;
|
|
10082
10097
|
}
|
|
10083
10098
|
B.unwrap();
|
|
10084
10099
|
continue;
|
|
@@ -10091,26 +10106,26 @@ Required: ` + n.join(", "));
|
|
|
10091
10106
|
tS(B, n);
|
|
10092
10107
|
else {
|
|
10093
10108
|
K.reverse(), ee = K[0].clone(), r(ee);
|
|
10094
|
-
let
|
|
10109
|
+
let re = ee;
|
|
10095
10110
|
for (let we = 0; we < K.length - 1; we++) {
|
|
10096
|
-
n.isValidChild(
|
|
10111
|
+
n.isValidChild(re.name, K[we].name) && we > 0 ? (se = K[we].clone(), r(se), re.append(se)) : se = re;
|
|
10097
10112
|
for (let ke = K[we].firstChild; ke && ke !== K[we + 1]; ) {
|
|
10098
10113
|
const Se = ke.next;
|
|
10099
|
-
|
|
10114
|
+
se.append(ke), ke = Se;
|
|
10100
10115
|
}
|
|
10101
|
-
|
|
10116
|
+
re = se;
|
|
10102
10117
|
}
|
|
10103
10118
|
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();
|
|
10104
10119
|
}
|
|
10105
10120
|
else if (B.parent) {
|
|
10106
10121
|
if (B.name === "li") {
|
|
10107
|
-
let
|
|
10108
|
-
if (
|
|
10109
|
-
|
|
10122
|
+
let re = B.prev;
|
|
10123
|
+
if (re && (re.name === "ul" || re.name === "ol")) {
|
|
10124
|
+
re.append(B);
|
|
10110
10125
|
continue;
|
|
10111
10126
|
}
|
|
10112
|
-
if (
|
|
10113
|
-
|
|
10127
|
+
if (re = B.next, re && (re.name === "ul" || re.name === "ol") && re.firstChild) {
|
|
10128
|
+
re.insert(B, re.firstChild, !0);
|
|
10114
10129
|
continue;
|
|
10115
10130
|
}
|
|
10116
10131
|
const we = new Pc("ul", 1);
|
|
@@ -10118,8 +10133,8 @@ Required: ` + n.join(", "));
|
|
|
10118
10133
|
continue;
|
|
10119
10134
|
}
|
|
10120
10135
|
if (n.isValidChild(B.parent.name, "div") && n.isValidChild("div", B.name)) {
|
|
10121
|
-
const
|
|
10122
|
-
r(
|
|
10136
|
+
const re = new Pc("div", 1);
|
|
10137
|
+
r(re), B.wrap(re);
|
|
10123
10138
|
} else
|
|
10124
10139
|
tS(B, n);
|
|
10125
10140
|
}
|
|
@@ -10181,7 +10196,7 @@ Required: ` + n.join(", "));
|
|
|
10181
10196
|
}), VR(e, o);
|
|
10182
10197
|
}, TI = (e, n, o, r) => (r.insertAfter(n.reverse(), e), cE(n[0], o)), iE = (e, n, o, r) => {
|
|
10183
10198
|
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) => {
|
|
10184
|
-
const F = Le.fromRangeStart(o), ee = hd(n.getRoot()),
|
|
10199
|
+
const F = Le.fromRangeStart(o), ee = hd(n.getRoot()), se = B === b ? ee.prev(F) : ee.next(F), K = se == null ? void 0 : se.getNode();
|
|
10185
10200
|
return K ? lg(n, K) !== u : !0;
|
|
10186
10201
|
};
|
|
10187
10202
|
return u ? P(b) ? Vj(u, f, k) : P(y) ? TI(u, f, k, n) : kI(u, f, k, o) : null;
|
|
@@ -10252,8 +10267,8 @@ Required: ` + n.join(", "));
|
|
|
10252
10267
|
} else
|
|
10253
10268
|
k.setStartBefore(n), k.setEndBefore(n);
|
|
10254
10269
|
const B = (ee) => {
|
|
10255
|
-
let
|
|
10256
|
-
return
|
|
10270
|
+
let se = Le.fromRangeStart(ee);
|
|
10271
|
+
return se = hd(e.getBody()).next(se), se == null ? void 0 : se.toRange();
|
|
10257
10272
|
}, F = f.getParent(n, f.isBlock);
|
|
10258
10273
|
if (f.remove(n), F && f.isEmpty(F)) {
|
|
10259
10274
|
const ee = Wv(F);
|
|
@@ -10280,15 +10295,15 @@ Required: ` + n.join(", "));
|
|
|
10280
10295
|
let B = u.getRng();
|
|
10281
10296
|
const F = B.startContainer, ee = e.getBody();
|
|
10282
10297
|
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);
|
|
10283
|
-
const
|
|
10284
|
-
context:
|
|
10298
|
+
const se = u.getNode(), K = {
|
|
10299
|
+
context: se.nodeName.toLowerCase(),
|
|
10285
10300
|
data: o.data,
|
|
10286
10301
|
insert: !0
|
|
10287
|
-
},
|
|
10288
|
-
if (o.paste === !0 && sE(e.schema,
|
|
10289
|
-
return B = iE(k, f, u.getRng(),
|
|
10290
|
-
o.paste === !0 && uE(f,
|
|
10291
|
-
let we =
|
|
10302
|
+
}, re = b.parse(n, K);
|
|
10303
|
+
if (o.paste === !0 && sE(e.schema, re) && HR(f, se))
|
|
10304
|
+
return B = iE(k, f, u.getRng(), re), B && u.setRng(B), n;
|
|
10305
|
+
o.paste === !0 && uE(f, re, se, e.getBody()) && ((r = re.firstChild) === null || r === void 0 || r.unwrap()), UR(re);
|
|
10306
|
+
let we = re.lastChild;
|
|
10292
10307
|
if (we && we.attr("id") === "mce_marker") {
|
|
10293
10308
|
const ke = we;
|
|
10294
10309
|
for (we = we.prev; we; we = we.walk(!0))
|
|
@@ -10297,8 +10312,8 @@ Required: ` + n.join(", "));
|
|
|
10297
10312
|
break;
|
|
10298
10313
|
}
|
|
10299
10314
|
}
|
|
10300
|
-
if (e._selectionOverrides.showBlockCaretContainer(
|
|
10301
|
-
n = k.serialize(
|
|
10315
|
+
if (e._selectionOverrides.showBlockCaretContainer(se), !K.invalid && !RI(f, se, re))
|
|
10316
|
+
n = k.serialize(re), EI(e, n, se);
|
|
10302
10317
|
else {
|
|
10303
10318
|
e.selection.setContent(P);
|
|
10304
10319
|
let ke = u.getNode(), Se;
|
|
@@ -10307,9 +10322,9 @@ Required: ` + n.join(", "));
|
|
|
10307
10322
|
ke = Se, Se = Se.parentNode;
|
|
10308
10323
|
n = ke === Be ? Be.innerHTML : f.getOuterHTML(ke);
|
|
10309
10324
|
const rt = b.parse(n), wt = ZR(rt), Ft = wt.bind(BR).getOr(rt);
|
|
10310
|
-
wt.each((Kt) => Kt.replace(
|
|
10311
|
-
const We =
|
|
10312
|
-
|
|
10325
|
+
wt.each((Kt) => Kt.replace(re));
|
|
10326
|
+
const We = re.children(), Ve = (l = re.parent) !== null && l !== void 0 ? l : rt;
|
|
10327
|
+
re.unwrap();
|
|
10313
10328
|
const st = zt(We, (Kt) => oS(e.schema, Kt, Ve));
|
|
10314
10329
|
nS(st, e.schema, Ft), eE(b.getNodeFilters(), b.getAttributeFilters(), rt), n = k.serialize(rt), ke === Be ? f.setHTML(Be, n) : f.setOuterHTML(ke, n);
|
|
10315
10330
|
}
|
|
@@ -10538,19 +10553,19 @@ Required: ` + n.join(", "));
|
|
|
10538
10553
|
}
|
|
10539
10554
|
if (ee)
|
|
10540
10555
|
if (f) {
|
|
10541
|
-
const
|
|
10556
|
+
const se = u.getBookmark();
|
|
10542
10557
|
y.collapse(!0);
|
|
10543
10558
|
let K = of(l, y, b, !0);
|
|
10544
|
-
K = L(K), e.formatter.remove(n, o, K, r), u.moveToBookmark(
|
|
10559
|
+
K = L(K), e.formatter.remove(n, o, K, r), u.moveToBookmark(se);
|
|
10545
10560
|
} else {
|
|
10546
|
-
const
|
|
10547
|
-
uS(e,
|
|
10548
|
-
const we = NI(e,
|
|
10561
|
+
const se = hh(e.getBody(), ee), K = Ze(se) ? l.getParents(ee.parentNode, pt, se) : [], re = vE(!1).dom;
|
|
10562
|
+
uS(e, re, se ?? ee);
|
|
10563
|
+
const we = NI(e, re, ee, n, o, r), ke = dS([
|
|
10549
10564
|
...F,
|
|
10550
10565
|
...we.toArray(),
|
|
10551
10566
|
...K
|
|
10552
|
-
],
|
|
10553
|
-
|
|
10567
|
+
], re);
|
|
10568
|
+
se && yE(e, se, Ze(se)), u.setCursorLocation(ke, 1), l.isEmpty(ee) && l.remove(ee);
|
|
10554
10569
|
}
|
|
10555
10570
|
}, CE = (e, n, o) => {
|
|
10556
10571
|
const r = e.selection, l = e.getBody();
|
|
@@ -10734,17 +10749,17 @@ Required: ` + n.join(", "));
|
|
|
10734
10749
|
DE(u, y, n, o, l), Fw(n.attributes, (B, F) => {
|
|
10735
10750
|
const {
|
|
10736
10751
|
name: ee,
|
|
10737
|
-
value:
|
|
10752
|
+
value: se
|
|
10738
10753
|
} = Yv(F, B, o);
|
|
10739
|
-
if (n.remove_similar || ae(
|
|
10754
|
+
if (n.remove_similar || ae(se) || !qt(l) || Kv(u.getAttrib(l, ee), se)) {
|
|
10740
10755
|
if (ee === "class") {
|
|
10741
10756
|
const K = u.getAttrib(y, ee);
|
|
10742
10757
|
if (K) {
|
|
10743
|
-
let
|
|
10758
|
+
let re = "";
|
|
10744
10759
|
if (Te(K.split(/\s+/), (we) => {
|
|
10745
|
-
/mce\-\w+/.test(we) && (
|
|
10746
|
-
}),
|
|
10747
|
-
u.setAttrib(y, ee,
|
|
10760
|
+
/mce\-\w+/.test(we) && (re += (re ? " " : "") + we);
|
|
10761
|
+
}), re) {
|
|
10762
|
+
u.setAttrib(y, ee, re);
|
|
10748
10763
|
return;
|
|
10749
10764
|
}
|
|
10750
10765
|
}
|
|
@@ -10780,9 +10795,9 @@ Required: ` + n.join(", "));
|
|
|
10780
10795
|
const F = e.dom;
|
|
10781
10796
|
if (o) {
|
|
10782
10797
|
const ee = o.parentNode;
|
|
10783
|
-
for (let
|
|
10784
|
-
let K = F.clone(
|
|
10785
|
-
for (let
|
|
10798
|
+
for (let se = r.parentNode; se && se !== ee; se = se.parentNode) {
|
|
10799
|
+
let K = F.clone(se, !1);
|
|
10800
|
+
for (let re = 0; re < n.length && (K = g$(e, n[re], b, K), K !== null); re++)
|
|
10786
10801
|
;
|
|
10787
10802
|
K && (P && K.appendChild(P), B || (B = K), P = K);
|
|
10788
10803
|
}
|
|
@@ -10791,13 +10806,13 @@ Required: ` + n.join(", "));
|
|
|
10791
10806
|
return r;
|
|
10792
10807
|
}, UI = (e, n, o, r, l) => {
|
|
10793
10808
|
const u = e.formatter.get(n), f = u[0], b = e.dom, y = e.selection, k = (K) => {
|
|
10794
|
-
const
|
|
10795
|
-
return zI(e, u,
|
|
10796
|
-
}, P = (K) => Oi(K) && qt(K) && (K.id === "_start" || K.id === "_end"), B = (K) => Rt(u, (
|
|
10797
|
-
const
|
|
10798
|
-
if (!ke && Ze(Se) && v1(f) && B(Se), f.deep &&
|
|
10799
|
-
for (let rt = 0; rt <
|
|
10800
|
-
F(
|
|
10809
|
+
const re = f$(e, K, n, o, l);
|
|
10810
|
+
return zI(e, u, re, K, K, !0, f, o);
|
|
10811
|
+
}, P = (K) => Oi(K) && qt(K) && (K.id === "_start" || K.id === "_end"), B = (K) => Rt(u, (re) => Hw(e, re, o, K, K)), F = (K) => {
|
|
10812
|
+
const re = wr(K.childNodes), ke = B(K) || Rt(u, (rt) => Nw(b, K, rt)), Se = K.parentNode;
|
|
10813
|
+
if (!ke && Ze(Se) && v1(f) && B(Se), f.deep && re.length)
|
|
10814
|
+
for (let rt = 0; rt < re.length; rt++)
|
|
10815
|
+
F(re[rt]);
|
|
10801
10816
|
Te([
|
|
10802
10817
|
"underline",
|
|
10803
10818
|
"line-through",
|
|
@@ -10811,25 +10826,25 @@ Required: ` + n.join(", "));
|
|
|
10811
10826
|
}, void 0, K);
|
|
10812
10827
|
});
|
|
10813
10828
|
}, ee = (K) => {
|
|
10814
|
-
const
|
|
10815
|
-
if (
|
|
10816
|
-
let we =
|
|
10817
|
-
return P(we) && (we = we[K ? "firstChild" : "lastChild"]), ut(we) && we.data.length === 0 && (we = K ?
|
|
10829
|
+
const re = b.get(K ? "_start" : "_end");
|
|
10830
|
+
if (re) {
|
|
10831
|
+
let we = re[K ? "firstChild" : "lastChild"];
|
|
10832
|
+
return P(we) && (we = we[K ? "firstChild" : "lastChild"]), ut(we) && we.data.length === 0 && (we = K ? re.previousSibling || re.nextSibling : re.nextSibling || re.previousSibling), b.remove(re, !0), we;
|
|
10818
10833
|
} else
|
|
10819
10834
|
return null;
|
|
10820
|
-
},
|
|
10821
|
-
let
|
|
10835
|
+
}, se = (K) => {
|
|
10836
|
+
let re, we, ke = of(b, K, u, K.collapsed);
|
|
10822
10837
|
if (f.split) {
|
|
10823
|
-
if (ke = L(ke),
|
|
10824
|
-
if (
|
|
10825
|
-
const Be = z.from(
|
|
10838
|
+
if (ke = L(ke), re = c$(e, ke, !0), we = c$(e, ke), re !== we) {
|
|
10839
|
+
if (re = EE(re, !0), we = EE(we, !1), bS(b, re, we)) {
|
|
10840
|
+
const Be = z.from(re.firstChild).getOr(re);
|
|
10826
10841
|
k(i$(b, Be, !0, "span", {
|
|
10827
10842
|
id: "_start",
|
|
10828
10843
|
"data-mce-type": "bookmark"
|
|
10829
10844
|
})), ee(!0);
|
|
10830
10845
|
return;
|
|
10831
10846
|
}
|
|
10832
|
-
if (bS(b, we,
|
|
10847
|
+
if (bS(b, we, re)) {
|
|
10833
10848
|
const Be = z.from(we.lastChild).getOr(we);
|
|
10834
10849
|
k(i$(b, Be, !1, "span", {
|
|
10835
10850
|
id: "_end",
|
|
@@ -10837,7 +10852,7 @@ Required: ` + n.join(", "));
|
|
|
10837
10852
|
})), ee(!1);
|
|
10838
10853
|
return;
|
|
10839
10854
|
}
|
|
10840
|
-
|
|
10855
|
+
re = AE(b, re, "span", {
|
|
10841
10856
|
id: "_start",
|
|
10842
10857
|
"data-mce-type": "bookmark"
|
|
10843
10858
|
}), we = AE(b, we, "span", {
|
|
@@ -10845,14 +10860,14 @@ Required: ` + n.join(", "));
|
|
|
10845
10860
|
"data-mce-type": "bookmark"
|
|
10846
10861
|
});
|
|
10847
10862
|
const Se = b.createRng();
|
|
10848
|
-
Se.setStartAfter(
|
|
10863
|
+
Se.setStartAfter(re), Se.setEndBefore(we), S1(b, Se, (Be) => {
|
|
10849
10864
|
Te(Be, (rt) => {
|
|
10850
10865
|
!Oi(rt) && !Oi(rt.parentNode) && k(rt);
|
|
10851
10866
|
});
|
|
10852
|
-
}), k(
|
|
10867
|
+
}), k(re), k(we), re = ee(!0), we = ee();
|
|
10853
10868
|
} else
|
|
10854
|
-
|
|
10855
|
-
ke.startContainer =
|
|
10869
|
+
re = we = k(re);
|
|
10870
|
+
ke.startContainer = re.parentNode ? re.parentNode : re, ke.startOffset = b.nodeIndex(re), ke.endContainer = we.parentNode ? we.parentNode : we, ke.endOffset = b.nodeIndex(we) + 1;
|
|
10856
10871
|
}
|
|
10857
10872
|
S1(b, ke, (Se) => {
|
|
10858
10873
|
Te(Se, F);
|
|
@@ -10861,13 +10876,13 @@ Required: ` + n.join(", "));
|
|
|
10861
10876
|
if (r) {
|
|
10862
10877
|
if (g1(r)) {
|
|
10863
10878
|
const K = b.createRng();
|
|
10864
|
-
K.setStartBefore(r), K.setEndAfter(r),
|
|
10879
|
+
K.setStartBefore(r), K.setEndAfter(r), se(K);
|
|
10865
10880
|
} else
|
|
10866
|
-
|
|
10881
|
+
se(r);
|
|
10867
10882
|
yh(e, n, r, o);
|
|
10868
10883
|
return;
|
|
10869
10884
|
}
|
|
10870
|
-
!y.isCollapsed() || !Jr(f) || Vp(e).length ? (h1(e, () => ng(e,
|
|
10885
|
+
!y.isCollapsed() || !Jr(f) || Vp(e).length ? (h1(e, () => ng(e, se), (K) => Jr(f) && cS(e, n, o, K)), e.nodeChanged()) : QR(e, n, o, l), OE(e, n, o), yh(e, n, r, o);
|
|
10871
10886
|
}, h$ = (e, n, o, r, l) => {
|
|
10872
10887
|
(r || e.selection.isEditable()) && UI(e, n, o, r, l);
|
|
10873
10888
|
}, Hw = (e, n, o, r, l) => m$(e, n, o, r, l).fold(tt, (u) => (e.dom.rename(r, u), !0), pt), p$ = ct.each, WI = (e, n, o, r) => {
|
|
@@ -10913,41 +10928,41 @@ Required: ` + n.join(", "));
|
|
|
10913
10928
|
l && e.setAttrib(n, "data-mce-style", l);
|
|
10914
10929
|
}
|
|
10915
10930
|
}, v$ = (e, n, o, r) => {
|
|
10916
|
-
const l = e.formatter.get(n), u = l[0], f = !r && e.selection.isCollapsed(), b = e.dom, y = e.selection, k = (
|
|
10917
|
-
pe(K.onformat) && K.onformat(
|
|
10918
|
-
b.setAttrib(
|
|
10919
|
-
}), vS(K.classes, (
|
|
10920
|
-
const we = bd(
|
|
10921
|
-
b.hasClass(
|
|
10922
|
-
});
|
|
10923
|
-
}, P = (
|
|
10924
|
-
let
|
|
10925
|
-
return vS(
|
|
10926
|
-
}, B = (
|
|
10927
|
-
if (he(
|
|
10928
|
-
const K = b.create(
|
|
10931
|
+
const l = e.formatter.get(n), u = l[0], f = !r && e.selection.isCollapsed(), b = e.dom, y = e.selection, k = (se, K = u) => {
|
|
10932
|
+
pe(K.onformat) && K.onformat(se, K, o, r), b$(b, se, K, o), vS(K.attributes, (re, we) => {
|
|
10933
|
+
b.setAttrib(se, we, bd(re, o));
|
|
10934
|
+
}), vS(K.classes, (re) => {
|
|
10935
|
+
const we = bd(re, o);
|
|
10936
|
+
b.hasClass(se, we) || b.addClass(se, we);
|
|
10937
|
+
});
|
|
10938
|
+
}, P = (se, K) => {
|
|
10939
|
+
let re = !1;
|
|
10940
|
+
return vS(se, (we) => hl(we) ? b.getContentEditable(K) === "false" && !we.ceFalseOverride || Ze(we.collapsed) && we.collapsed !== f ? !0 : b.is(K, we.selector) && !Di(K) ? (k(K, we), re = !0, !1) : !0 : !1), re;
|
|
10941
|
+
}, B = (se) => {
|
|
10942
|
+
if (he(se)) {
|
|
10943
|
+
const K = b.create(se);
|
|
10929
10944
|
return k(K), K;
|
|
10930
10945
|
} else
|
|
10931
10946
|
return null;
|
|
10932
|
-
}, F = (
|
|
10947
|
+
}, F = (se, K, re) => {
|
|
10933
10948
|
const we = [];
|
|
10934
10949
|
let ke = !0;
|
|
10935
10950
|
const Se = u.inline || u.block, Be = B(Se), rt = (We) => Cv(u) && cg(e, We, n, o), wt = (We, Ve, st) => {
|
|
10936
10951
|
const Kt = Up(u) && aa(e.schema, We) && nf(e, Ve, Se);
|
|
10937
10952
|
return st && Kt;
|
|
10938
10953
|
}, Ft = (We, Ve, st, Kt) => {
|
|
10939
|
-
const cn = We.nodeName.toLowerCase(), Jn = nf(e, Se, cn) && nf(e, Ve, Se), qn = !
|
|
10954
|
+
const cn = We.nodeName.toLowerCase(), Jn = nf(e, Se, cn) && nf(e, Ve, Se), qn = !re && ut(We) && T(We.data), gs = Di(We), Rs = !Jr(u) || !se.isBlock(We);
|
|
10940
10955
|
return (st || Kt) && Jn && !qn && !gs && Rs;
|
|
10941
10956
|
};
|
|
10942
|
-
S1(
|
|
10957
|
+
S1(se, K, (We) => {
|
|
10943
10958
|
let Ve;
|
|
10944
10959
|
const st = (Kt) => {
|
|
10945
10960
|
let cn = !1, Jn = ke, qn = !1;
|
|
10946
|
-
const gs = Kt.parentNode, Rs = gs.nodeName.toLowerCase(), Hr =
|
|
10961
|
+
const gs = Kt.parentNode, Rs = gs.nodeName.toLowerCase(), Hr = se.getContentEditable(Kt);
|
|
10947
10962
|
Ze(Hr) && (Jn = ke, ke = Hr === "true", cn = !0, qn = p1(e, Kt));
|
|
10948
10963
|
const Ml = ke && !cn;
|
|
10949
10964
|
if (cs(Kt) && !KI(e, u, Kt, Rs)) {
|
|
10950
|
-
Ve = null, vd(u) &&
|
|
10965
|
+
Ve = null, vd(u) && se.remove(Kt);
|
|
10951
10966
|
return;
|
|
10952
10967
|
}
|
|
10953
10968
|
if (rt(Kt)) {
|
|
@@ -10955,7 +10970,7 @@ Required: ` + n.join(", "));
|
|
|
10955
10970
|
return;
|
|
10956
10971
|
}
|
|
10957
10972
|
if (wt(Kt, Rs, Ml)) {
|
|
10958
|
-
const us =
|
|
10973
|
+
const us = se.rename(Kt, Se);
|
|
10959
10974
|
k(us), we.push(us), Ve = null;
|
|
10960
10975
|
return;
|
|
10961
10976
|
}
|
|
@@ -10966,7 +10981,7 @@ Required: ` + n.join(", "));
|
|
|
10966
10981
|
return;
|
|
10967
10982
|
}
|
|
10968
10983
|
}
|
|
10969
|
-
Ze(Be) && Ft(Kt, Rs, Ml, qn) ? (Ve || (Ve =
|
|
10984
|
+
Ze(Be) && Ft(Kt, Rs, Ml, qn) ? (Ve || (Ve = se.clone(Be, !1), gs.insertBefore(Ve, Kt), we.push(Ve)), qn && cn && (ke = Jn), Ve.appendChild(Kt)) : (Ve = null, Te(wr(Kt.childNodes), st), cn && (ke = Jn), Ve = null);
|
|
10970
10985
|
};
|
|
10971
10986
|
Te(We, st);
|
|
10972
10987
|
}), u.links === !0 && Te(we, (We) => {
|
|
@@ -10980,15 +10995,15 @@ Required: ` + n.join(", "));
|
|
|
10980
10995
|
return Te(cn.childNodes, (qn) => {
|
|
10981
10996
|
!du(qn) && !Oi(qn) && Jn++;
|
|
10982
10997
|
}), Jn;
|
|
10983
|
-
}, st = (cn) => ps(cn.childNodes, X2).filter((qn) =>
|
|
10984
|
-
const gs =
|
|
10985
|
-
return k(gs),
|
|
10998
|
+
}, st = (cn) => ps(cn.childNodes, X2).filter((qn) => se.getContentEditable(qn) !== "false" && Nw(se, qn, u)).map((qn) => {
|
|
10999
|
+
const gs = se.clone(qn, !1);
|
|
11000
|
+
return k(gs), se.replace(gs, cn, !0), se.remove(qn, !0), gs;
|
|
10986
11001
|
}).getOr(cn), Kt = Ve(We);
|
|
10987
|
-
if ((we.length > 1 || !
|
|
10988
|
-
|
|
11002
|
+
if ((we.length > 1 || !se.isBlock(We)) && Kt === 0) {
|
|
11003
|
+
se.remove(We, !0);
|
|
10989
11004
|
return;
|
|
10990
11005
|
}
|
|
10991
|
-
(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(
|
|
11006
|
+
(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(se, u, o, We), WI(se, u, o, We), jI(se, u, o, We), hS(e, u, o, We));
|
|
10992
11007
|
});
|
|
10993
11008
|
}, ee = g1(r) ? r : y.getNode();
|
|
10994
11009
|
if (b.getContentEditable(ee) === "false" && !p1(e, ee)) {
|
|
@@ -10999,19 +11014,19 @@ Required: ` + n.join(", "));
|
|
|
10999
11014
|
if (r)
|
|
11000
11015
|
if (g1(r)) {
|
|
11001
11016
|
if (!P(l, r)) {
|
|
11002
|
-
const
|
|
11003
|
-
|
|
11017
|
+
const se = b.createRng();
|
|
11018
|
+
se.setStartBefore(r), se.setEndAfter(r), F(b, of(b, se, l), !0);
|
|
11004
11019
|
}
|
|
11005
11020
|
} else
|
|
11006
11021
|
F(b, r, !0);
|
|
11007
11022
|
else
|
|
11008
11023
|
!f || !Jr(u) || Vp(e).length ? (y.setRng(zv(y.getRng())), h1(e, () => {
|
|
11009
|
-
ng(e, (
|
|
11010
|
-
const
|
|
11011
|
-
F(b,
|
|
11024
|
+
ng(e, (se, K) => {
|
|
11025
|
+
const re = K ? se : of(b, se, l);
|
|
11026
|
+
F(b, re, !1);
|
|
11012
11027
|
});
|
|
11013
|
-
}, pt), e.nodeChanged()) : II(e, n, o), SE(e.formatter, n).each((
|
|
11014
|
-
Te(FI(e.selection), (K) => b$(b, K,
|
|
11028
|
+
}, pt), e.nodeChanged()) : II(e, n, o), SE(e.formatter, n).each((se) => {
|
|
11029
|
+
Te(FI(e.selection), (K) => b$(b, K, se, o));
|
|
11015
11030
|
});
|
|
11016
11031
|
_E(n, e);
|
|
11017
11032
|
}
|
|
@@ -11172,24 +11187,24 @@ Required: ` + n.join(", "));
|
|
|
11172
11187
|
for (let P = 0, B = r.length; P < B; P++) {
|
|
11173
11188
|
let F = r[P], ee = F.parent;
|
|
11174
11189
|
if (ee && k(ee) && F === ee.lastChild) {
|
|
11175
|
-
let
|
|
11176
|
-
for (;
|
|
11177
|
-
const K =
|
|
11178
|
-
if (K !== "span" ||
|
|
11190
|
+
let se = F.prev;
|
|
11191
|
+
for (; se; ) {
|
|
11192
|
+
const K = se.name;
|
|
11193
|
+
if (K !== "span" || se.attr("data-mce-type") !== "bookmark") {
|
|
11179
11194
|
K === "br" && (F = null);
|
|
11180
11195
|
break;
|
|
11181
11196
|
}
|
|
11182
|
-
|
|
11197
|
+
se = se.prev;
|
|
11183
11198
|
}
|
|
11184
11199
|
if (F && (F.remove(), Vv(o, b, y, ee))) {
|
|
11185
11200
|
const K = o.getElementRule(ee.name);
|
|
11186
11201
|
K && (K.removeEmpty ? ee.remove() : K.paddEmpty && eS(e, u, k, ee));
|
|
11187
11202
|
}
|
|
11188
11203
|
} else {
|
|
11189
|
-
let
|
|
11190
|
-
for (; ee && ee.firstChild ===
|
|
11204
|
+
let se = F;
|
|
11205
|
+
for (; ee && ee.firstChild === se && ee.lastChild === se && (se = ee, !f[ee.name]); )
|
|
11191
11206
|
ee = ee.parent;
|
|
11192
|
-
if (
|
|
11207
|
+
if (se === ee) {
|
|
11193
11208
|
const K = new Pc("#text", 3);
|
|
11194
11209
|
K.value = Bo, F.replace(K);
|
|
11195
11210
|
}
|
|
@@ -11312,8 +11327,8 @@ Required: ` + n.join(", "));
|
|
|
11312
11327
|
let P = "";
|
|
11313
11328
|
for (let B = 0; B < k.length; B++) {
|
|
11314
11329
|
const F = k[B];
|
|
11315
|
-
let ee = !1,
|
|
11316
|
-
|
|
11330
|
+
let ee = !1, se = r["*"];
|
|
11331
|
+
se && se[F] && (ee = !0), se = r[b.name], !ee && se && se[F] && (ee = !0), ee && (P && (P += " "), P += F);
|
|
11317
11332
|
}
|
|
11318
11333
|
P.length || (P = null), b.attr("class", P);
|
|
11319
11334
|
}
|
|
@@ -12033,7 +12048,7 @@ Required: ` + n.join(", "));
|
|
|
12033
12048
|
return n.isSupported = !1, n;
|
|
12034
12049
|
const o = e.document, r = o.currentScript;
|
|
12035
12050
|
let { document: l } = e;
|
|
12036
|
-
const { DocumentFragment: u, HTMLTemplateElement: f, Node: b, Element: y, NodeFilter: k, NamedNodeMap: P = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: B, DOMParser: F, trustedTypes: ee } = e,
|
|
12051
|
+
const { DocumentFragment: u, HTMLTemplateElement: f, Node: b, Element: y, NodeFilter: k, NamedNodeMap: P = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: B, DOMParser: F, trustedTypes: ee } = e, se = y.prototype, K = CS(se, "cloneNode"), re = CS(se, "nextSibling"), we = CS(se, "childNodes"), ke = CS(se, "parentNode");
|
|
12037
12052
|
if (typeof f == "function") {
|
|
12038
12053
|
const ao = l.createElement("template");
|
|
12039
12054
|
ao.content && ao.content.ownerDocument && (l = ao.content.ownerDocument);
|
|
@@ -12274,7 +12289,7 @@ Required: ` + n.join(", "));
|
|
|
12274
12289
|
if (Lc && Vr) {
|
|
12275
12290
|
const Dd = Lc.length;
|
|
12276
12291
|
for (let Va = Dd - 1; Va >= 0; --Va)
|
|
12277
|
-
Vr.insertBefore(K(Lc[Va], !0),
|
|
12292
|
+
Vr.insertBefore(K(Lc[Va], !0), re(ze));
|
|
12278
12293
|
}
|
|
12279
12294
|
}
|
|
12280
12295
|
return ln(ze), !0;
|
|
@@ -12597,9 +12612,9 @@ Required: ` + n.join(", "));
|
|
|
12597
12612
|
}
|
|
12598
12613
|
if (e.nodeType !== ac || B === "body")
|
|
12599
12614
|
return;
|
|
12600
|
-
const F = ie.fromDom(e), ee = Zr(F, ZE),
|
|
12601
|
-
if (!ee && he(
|
|
12602
|
-
|
|
12615
|
+
const F = ie.fromDom(e), ee = Zr(F, ZE), se = Ga(F, "data-mce-bogus");
|
|
12616
|
+
if (!ee && he(se)) {
|
|
12617
|
+
se === "all" ? Eo(F) : cl(F);
|
|
12603
12618
|
return;
|
|
12604
12619
|
}
|
|
12605
12620
|
const K = o.getElementRule(B);
|
|
@@ -12609,11 +12624,11 @@ Required: ` + n.join(", "));
|
|
|
12609
12624
|
} else
|
|
12610
12625
|
Ze(l) && (l.allowedTags[B] = !0);
|
|
12611
12626
|
if (k && K && !ee) {
|
|
12612
|
-
if (Te((b = K.attributesForced) !== null && b !== void 0 ? b : [], (
|
|
12613
|
-
xs(F,
|
|
12614
|
-
}), Te((y = K.attributesDefault) !== null && y !== void 0 ? y : [], (
|
|
12615
|
-
Zr(F,
|
|
12616
|
-
}), K.attributesRequired && !Rt(K.attributesRequired, (
|
|
12627
|
+
if (Te((b = K.attributesForced) !== null && b !== void 0 ? b : [], (re) => {
|
|
12628
|
+
xs(F, re.name, re.value === "{$uid}" ? `mce_${q$++}` : re.value);
|
|
12629
|
+
}), Te((y = K.attributesDefault) !== null && y !== void 0 ? y : [], (re) => {
|
|
12630
|
+
Zr(F, re.name) || xs(F, re.name, re.value === "{$uid}" ? `mce_${q$++}` : re.value);
|
|
12631
|
+
}), K.attributesRequired && !Rt(K.attributesRequired, (re) => Zr(F, re))) {
|
|
12617
12632
|
cl(F);
|
|
12618
12633
|
return;
|
|
12619
12634
|
}
|
|
@@ -12703,8 +12718,8 @@ Required: ` + n.join(", "));
|
|
|
12703
12718
|
if (qt(k)) {
|
|
12704
12719
|
const B = k.attributes;
|
|
12705
12720
|
for (let F = 0, ee = B.length; F < ee; F++) {
|
|
12706
|
-
const
|
|
12707
|
-
P.attr(
|
|
12721
|
+
const se = B[F];
|
|
12722
|
+
P.attr(se.name, se.value);
|
|
12708
12723
|
}
|
|
12709
12724
|
cd(P.name) && (r(k), P.value = k.innerHTML);
|
|
12710
12725
|
} else ut(k) ? (P.value = k.data, u && (P.raw = !0)) : (rd(k) || vb(k) || Hd(k)) && (P.value = k.data);
|
|
@@ -12737,16 +12752,16 @@ Required: ` + n.join(", "));
|
|
|
12737
12752
|
Se = Se.parent;
|
|
12738
12753
|
}
|
|
12739
12754
|
return !1;
|
|
12740
|
-
},
|
|
12755
|
+
}, se = (ke) => ke.name in b || zm(n, ke) || cd(ke.name) && ke.parent === e, K = (ke, Se) => {
|
|
12741
12756
|
const Be = Se ? ke.prev : ke.next;
|
|
12742
|
-
return Ze(Be) || In(ke.parent) ? !1 :
|
|
12757
|
+
return Ze(Be) || In(ke.parent) ? !1 : se(ke.parent) && (ke.parent !== e || r.isRootContent === !0);
|
|
12743
12758
|
};
|
|
12744
12759
|
return [
|
|
12745
12760
|
(ke) => {
|
|
12746
12761
|
var Se;
|
|
12747
12762
|
if (ke.type === 3 && !F(ke)) {
|
|
12748
12763
|
let Be = (Se = ke.value) !== null && Se !== void 0 ? Se : "";
|
|
12749
|
-
Be = Be.replace(k, " "), (nE(ke.prev,
|
|
12764
|
+
Be = Be.replace(k, " "), (nE(ke.prev, se) || K(ke, !0)) && (Be = Be.replace(P, "")), Be.length === 0 ? ke.remove() : ke.value = Be;
|
|
12750
12765
|
}
|
|
12751
12766
|
},
|
|
12752
12767
|
(ke) => {
|
|
@@ -12755,11 +12770,11 @@ Required: ` + n.join(", "));
|
|
|
12755
12770
|
const Be = n.getElementRule(ke.name);
|
|
12756
12771
|
if (l && Be) {
|
|
12757
12772
|
const rt = Vv(n, u, f, ke);
|
|
12758
|
-
Be.paddInEmptyBlock && rt && ee(ke) ? eS(o, r,
|
|
12773
|
+
Be.paddInEmptyBlock && rt && ee(ke) ? eS(o, r, se, ke) : Be.removeEmpty && rt ? se(ke) ? ke.remove() : ke.unwrap() : Be.paddEmpty && (rt || MR(ke)) && eS(o, r, se, ke);
|
|
12759
12774
|
}
|
|
12760
12775
|
} else if (ke.type === 3 && !F(ke)) {
|
|
12761
12776
|
let Be = (Se = ke.value) !== null && Se !== void 0 ? Se : "";
|
|
12762
|
-
(ke.next &&
|
|
12777
|
+
(ke.next && se(ke.next) || K(ke, !1)) && (Be = Be.replace(B, "")), Be.length === 0 ? ke.remove() : ke.value = Be;
|
|
12763
12778
|
}
|
|
12764
12779
|
}
|
|
12765
12780
|
];
|
|
@@ -12776,12 +12791,12 @@ Required: ` + n.join(", "));
|
|
|
12776
12791
|
}, u = new DOMParser(), f = CL(l, n), b = (Se, Be, rt = "html") => {
|
|
12777
12792
|
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;
|
|
12778
12793
|
return f.sanitizeHtmlElement(st, wt), Ft ? st.firstChild : st;
|
|
12779
|
-
}, y = o.addFilter, k = o.getFilters, P = o.removeFilter, B = r.addFilter, F = r.getFilters, ee = r.removeFilter,
|
|
12794
|
+
}, y = o.addFilter, k = o.getFilters, P = o.removeFilter, B = r.addFilter, F = r.getFilters, ee = r.removeFilter, se = (Se, Be) => {
|
|
12780
12795
|
oS(n, Se) && Be.push(Se);
|
|
12781
12796
|
}, K = (Se, Be) => {
|
|
12782
12797
|
const rt = he(Be.attr(ZE)), wt = Be.type === 1 && !pn(Se, Be.name) && !zm(n, Be) && !cd(Be.name);
|
|
12783
12798
|
return Be.type === 3 || wt && !rt;
|
|
12784
|
-
},
|
|
12799
|
+
}, re = (Se, Be) => {
|
|
12785
12800
|
const rt = J$(X$("script,style,head,html,body,title,meta,param"), n.getBlockElements()), wt = /^[ \t\r\n]+/, Ft = /[ \t\r\n]+$/;
|
|
12786
12801
|
let We = Se.firstChild, Ve = null;
|
|
12787
12802
|
const st = (Kt) => {
|
|
@@ -12809,7 +12824,7 @@ Required: ` + n.join(", "));
|
|
|
12809
12824
|
M0(n, We);
|
|
12810
12825
|
const Ve = new Pc(Ft, 11);
|
|
12811
12826
|
jw(Ve, We, n.getSpecialElements(), f.sanitizeNamespaceElement), We.innerHTML = "";
|
|
12812
|
-
const [st, Kt] = _L(Ve, n, l, Be), cn = [], Jn = wt ? (Hr) =>
|
|
12827
|
+
const [st, Kt] = _L(Ve, n, l, Be), cn = [], Jn = wt ? (Hr) => se(Hr, cn) : Nt, qn = {
|
|
12813
12828
|
nodes: {},
|
|
12814
12829
|
attributes: {}
|
|
12815
12830
|
}, gs = (Hr) => JT(k(), F(), Hr, qn);
|
|
@@ -12829,7 +12844,7 @@ Required: ` + n.join(", "));
|
|
|
12829
12844
|
} else
|
|
12830
12845
|
nS(cn, n, Ve, gs);
|
|
12831
12846
|
const Rs = kS(l, Be);
|
|
12832
|
-
return Rs && (Ve.name === "body" || Be.isRootContent) &&
|
|
12847
|
+
return Rs && (Ve.name === "body" || Be.isRootContent) && re(Ve, Rs), Be.invalid || QT(qn, Be), Ve;
|
|
12833
12848
|
}
|
|
12834
12849
|
};
|
|
12835
12850
|
return O$(ke, l), $E(ke, l, n), ke;
|
|
@@ -12984,8 +12999,8 @@ Required: ` + n.join(", "));
|
|
|
12984
12999
|
if (F === -1)
|
|
12985
13000
|
return y;
|
|
12986
13001
|
{
|
|
12987
|
-
const ee = RS(B, F - 1),
|
|
12988
|
-
return (ee ? " " : "") + y + (
|
|
13002
|
+
const ee = RS(B, F - 1), se = RS(B, F + y.length);
|
|
13003
|
+
return (ee ? " " : "") + y + (se ? " " : "");
|
|
12989
13004
|
}
|
|
12990
13005
|
} else
|
|
12991
13006
|
return y;
|
|
@@ -13016,53 +13031,53 @@ Required: ` + n.join(", "));
|
|
|
13016
13031
|
start: P,
|
|
13017
13032
|
end: B,
|
|
13018
13033
|
diag: F
|
|
13019
|
-
}), f = (P, B, F, ee,
|
|
13034
|
+
}), f = (P, B, F, ee, se) => {
|
|
13020
13035
|
const K = y(P, B, F, ee);
|
|
13021
13036
|
if (K === null || K.start === B && K.diag === B - ee || K.end === P && K.diag === P - F) {
|
|
13022
|
-
let
|
|
13023
|
-
for (;
|
|
13024
|
-
|
|
13037
|
+
let re = P, we = F;
|
|
13038
|
+
for (; re < B || we < ee; )
|
|
13039
|
+
re < B && we < ee && e[re] === n[we] ? (se.push([
|
|
13025
13040
|
qw,
|
|
13026
|
-
e[
|
|
13027
|
-
]), ++
|
|
13041
|
+
e[re]
|
|
13042
|
+
]), ++re, ++we) : B - P > ee - F ? (se.push([
|
|
13028
13043
|
s5,
|
|
13029
|
-
e[
|
|
13030
|
-
]), ++
|
|
13044
|
+
e[re]
|
|
13045
|
+
]), ++re) : (se.push([
|
|
13031
13046
|
o5,
|
|
13032
13047
|
n[we]
|
|
13033
13048
|
]), ++we);
|
|
13034
13049
|
} else {
|
|
13035
|
-
f(P, K.start, F, K.start - K.diag,
|
|
13036
|
-
for (let
|
|
13037
|
-
|
|
13050
|
+
f(P, K.start, F, K.start - K.diag, se);
|
|
13051
|
+
for (let re = K.start; re < K.end; ++re)
|
|
13052
|
+
se.push([
|
|
13038
13053
|
qw,
|
|
13039
|
-
e[
|
|
13054
|
+
e[re]
|
|
13040
13055
|
]);
|
|
13041
|
-
f(K.end, B, K.end - K.diag, ee,
|
|
13056
|
+
f(K.end, B, K.end - K.diag, ee, se);
|
|
13042
13057
|
}
|
|
13043
13058
|
}, b = (P, B, F, ee) => {
|
|
13044
|
-
let
|
|
13045
|
-
for (;
|
|
13046
|
-
++
|
|
13047
|
-
return u(P,
|
|
13059
|
+
let se = P;
|
|
13060
|
+
for (; se - B < ee && se < F && e[se] === n[se - B]; )
|
|
13061
|
+
++se;
|
|
13062
|
+
return u(P, se, B);
|
|
13048
13063
|
}, y = (P, B, F, ee) => {
|
|
13049
|
-
const
|
|
13050
|
-
if (
|
|
13064
|
+
const se = B - P, K = ee - F;
|
|
13065
|
+
if (se === 0 || K === 0)
|
|
13051
13066
|
return null;
|
|
13052
|
-
const
|
|
13067
|
+
const re = se - K, we = K + se, ke = (we % 2 === 0 ? we : we + 1) / 2;
|
|
13053
13068
|
r[1 + ke] = P, l[1 + ke] = B + 1;
|
|
13054
13069
|
let Se, Be, rt, wt, Ft;
|
|
13055
13070
|
for (Se = 0; Se <= ke; ++Se) {
|
|
13056
13071
|
for (Be = -Se; Be <= Se; Be += 2) {
|
|
13057
13072
|
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]; )
|
|
13058
13073
|
r[rt] = ++wt, ++Ft;
|
|
13059
|
-
if (
|
|
13060
|
-
return b(l[rt -
|
|
13074
|
+
if (re % 2 !== 0 && re - Se <= Be && Be <= re + Se && l[rt - re] <= r[rt])
|
|
13075
|
+
return b(l[rt - re], Be + P - F, B, ee);
|
|
13061
13076
|
}
|
|
13062
|
-
for (Be =
|
|
13063
|
-
for (rt = Be + ke -
|
|
13077
|
+
for (Be = re - Se; Be <= re + Se; Be += 2) {
|
|
13078
|
+
for (rt = Be + ke - re, Be === re - Se || Be !== re + 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]; )
|
|
13064
13079
|
l[rt] = wt--, Ft--;
|
|
13065
|
-
if (
|
|
13080
|
+
if (re % 2 === 0 && -Se <= Be && Be <= Se && l[rt] <= r[rt + re])
|
|
13066
13081
|
return b(l[rt], Be + P - F, B, ee);
|
|
13067
13082
|
}
|
|
13068
13083
|
}
|
|
@@ -13397,8 +13412,8 @@ Required: ` + n.join(", "));
|
|
|
13397
13412
|
const y = b.element, k = u(y), P = {};
|
|
13398
13413
|
bt(o, (B, F) => {
|
|
13399
13414
|
l(F, k).each((ee) => {
|
|
13400
|
-
r[F] || (Te(B, (
|
|
13401
|
-
|
|
13415
|
+
r[F] || (Te(B, (se) => {
|
|
13416
|
+
se(!0, {
|
|
13402
13417
|
node: ee,
|
|
13403
13418
|
selector: F,
|
|
13404
13419
|
parents: k
|
|
@@ -13431,10 +13446,10 @@ Required: ` + n.join(", "));
|
|
|
13431
13446
|
const { selectorChangedWithUnbind: f } = k6(e, r), b = (Tt, on) => {
|
|
13432
13447
|
const Kn = e.createRng();
|
|
13433
13448
|
Ze(Tt) && Ze(on) ? (Kn.setStart(Tt, on), Kn.setEnd(Tt, on), Be(Kn), we(!1)) : (Y2(e, Kn, r.getBody(), !0), Be(Kn));
|
|
13434
|
-
}, 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),
|
|
13449
|
+
}, 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), se = (Tt, on) => (hN(e, Tt, on).each(Be), Tt), K = () => {
|
|
13435
13450
|
const Tt = Se(), on = ke();
|
|
13436
13451
|
return !Tt || Tt.item ? !1 : Tt.compareEndPoints ? Tt.compareEndPoints("StartToEnd", Tt) === 0 : !on || Tt.collapsed;
|
|
13437
|
-
},
|
|
13452
|
+
}, re = () => {
|
|
13438
13453
|
const Tt = Se(), on = r.getBody().querySelectorAll('[data-mce-selected="1"]');
|
|
13439
13454
|
return on.length > 0 ? nr(on, (Kn) => e.isEditable(Kn.parentElement)) : MO(e, Tt);
|
|
13440
13455
|
}, we = (Tt) => {
|
|
@@ -13510,9 +13525,9 @@ Required: ` + n.join(", "));
|
|
|
13510
13525
|
setContent: k,
|
|
13511
13526
|
getBookmark: F,
|
|
13512
13527
|
moveToBookmark: ee,
|
|
13513
|
-
select:
|
|
13528
|
+
select: se,
|
|
13514
13529
|
isCollapsed: K,
|
|
13515
|
-
isEditable:
|
|
13530
|
+
isEditable: re,
|
|
13516
13531
|
isForward: We,
|
|
13517
13532
|
setNode: rt,
|
|
13518
13533
|
getNode: wt,
|
|
@@ -13860,12 +13875,12 @@ Options:${f}${o.join(f)}` : "";
|
|
|
13860
13875
|
vr(n, (ee) => ee === F).each((ee) => {
|
|
13861
13876
|
n.splice(ee, 1);
|
|
13862
13877
|
});
|
|
13863
|
-
}, y = (F, ee = !0) => e.removed || !L6(e) ? {} : (ee && e.dispatch("BeforeOpenNotification", { notification: F }), ps(n, (
|
|
13878
|
+
}, y = (F, ee = !0) => e.removed || !L6(e) ? {} : (ee && e.dispatch("BeforeOpenNotification", { notification: F }), ps(n, (se) => l(o().getArgs(se), F)).getOrThunk(() => {
|
|
13864
13879
|
e.editorManager.setActive(e);
|
|
13865
|
-
const
|
|
13866
|
-
b(
|
|
13880
|
+
const se = o().open(F, () => {
|
|
13881
|
+
b(se), u(), $O(e) && r().fold(() => e.focus(), (K) => A_(ie.fromDom(K.getEl())));
|
|
13867
13882
|
});
|
|
13868
|
-
return f(
|
|
13883
|
+
return f(se), u(), e.dispatch("OpenNotification", { notification: { ...se } }), se;
|
|
13869
13884
|
})), k = () => {
|
|
13870
13885
|
r().each((F) => {
|
|
13871
13886
|
o().close(F), b(F), u();
|
|
@@ -13909,25 +13924,25 @@ Options:${f}${o.join(f)}` : "";
|
|
|
13909
13924
|
const o = () => {
|
|
13910
13925
|
const K = e.theme;
|
|
13911
13926
|
return K && K.getWindowManagerImpl ? K.getWindowManagerImpl() : nG();
|
|
13912
|
-
}, r = (K,
|
|
13927
|
+
}, r = (K, re) => (...we) => re ? re.apply(K, we) : void 0, l = (K) => {
|
|
13913
13928
|
e.dispatch("OpenWindow", { dialog: K });
|
|
13914
13929
|
}, u = (K) => {
|
|
13915
13930
|
e.dispatch("CloseWindow", { dialog: K });
|
|
13916
13931
|
}, f = (K) => {
|
|
13917
13932
|
n.push(K), l(K);
|
|
13918
13933
|
}, b = (K) => {
|
|
13919
|
-
u(K), n = zt(n, (
|
|
13934
|
+
u(K), n = zt(n, (re) => re !== K), n.length === 0 && e.focus();
|
|
13920
13935
|
}, y = () => z.from(n[n.length - 1]), k = (K) => {
|
|
13921
13936
|
e.editorManager.setActive(e), Pv(e), e.ui.show();
|
|
13922
|
-
const
|
|
13923
|
-
return f(
|
|
13924
|
-
}, P = (K,
|
|
13937
|
+
const re = K();
|
|
13938
|
+
return f(re), re;
|
|
13939
|
+
}, P = (K, re) => k(() => o().open(K, re, b)), B = (K) => k(() => o().openUrl(K, b)), F = (K, re, we) => {
|
|
13925
13940
|
const ke = o();
|
|
13926
|
-
ke.alert(K, r(we || ke,
|
|
13927
|
-
}, ee = (K,
|
|
13941
|
+
ke.alert(K, r(we || ke, re));
|
|
13942
|
+
}, ee = (K, re, we) => {
|
|
13928
13943
|
const ke = o();
|
|
13929
|
-
ke.confirm(K, r(we || ke,
|
|
13930
|
-
},
|
|
13944
|
+
ke.confirm(K, r(we || ke, re));
|
|
13945
|
+
}, se = () => {
|
|
13931
13946
|
y().each((K) => {
|
|
13932
13947
|
o().close(K), b(K);
|
|
13933
13948
|
});
|
|
@@ -13941,7 +13956,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
13941
13956
|
openUrl: B,
|
|
13942
13957
|
alert: F,
|
|
13943
13958
|
confirm: ee,
|
|
13944
|
-
close:
|
|
13959
|
+
close: se
|
|
13945
13960
|
};
|
|
13946
13961
|
}, FF = (e, n) => {
|
|
13947
13962
|
e.notificationManager.open({
|
|
@@ -14051,11 +14066,11 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14051
14066
|
"image/webp": "webp",
|
|
14052
14067
|
"image/bmp": "bmp",
|
|
14053
14068
|
"image/tiff": "tiff"
|
|
14054
|
-
})[B.toLowerCase()] || "dat", o = (B, F, ee,
|
|
14069
|
+
})[B.toLowerCase()] || "dat", o = (B, F, ee, se, K) => {
|
|
14055
14070
|
if (he(B))
|
|
14056
14071
|
return r({
|
|
14057
14072
|
id: B,
|
|
14058
|
-
name:
|
|
14073
|
+
name: se,
|
|
14059
14074
|
filename: K,
|
|
14060
14075
|
blob: F,
|
|
14061
14076
|
base64: ee
|
|
@@ -14066,14 +14081,14 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14066
14081
|
}, r = (B) => {
|
|
14067
14082
|
if (!B.blob || !B.base64)
|
|
14068
14083
|
throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");
|
|
14069
|
-
const F = B.id || VS("blobid"), ee = B.name || F,
|
|
14084
|
+
const F = B.id || VS("blobid"), ee = B.name || F, se = B.blob;
|
|
14070
14085
|
return {
|
|
14071
14086
|
id: ot(F),
|
|
14072
14087
|
name: ot(ee),
|
|
14073
|
-
filename: ot(B.filename || ee + "." + n(
|
|
14074
|
-
blob: ot(
|
|
14088
|
+
filename: ot(B.filename || ee + "." + n(se.type)),
|
|
14089
|
+
blob: ot(se),
|
|
14075
14090
|
base64: ot(B.base64),
|
|
14076
|
-
blobUri: ot(B.blobUri || URL.createObjectURL(
|
|
14091
|
+
blobUri: ot(B.blobUri || URL.createObjectURL(se)),
|
|
14077
14092
|
uri: ot(B.uri)
|
|
14078
14093
|
};
|
|
14079
14094
|
}, l = (B) => {
|
|
@@ -14096,10 +14111,10 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14096
14111
|
}
|
|
14097
14112
|
};
|
|
14098
14113
|
}, JF = (e, n) => {
|
|
14099
|
-
const o = {}, r = (K,
|
|
14114
|
+
const o = {}, r = (K, re) => K ? K.replace(/\/$/, "") + "/" + re.replace(/^\//, "") : re, l = (K, re) => new Promise((we, ke) => {
|
|
14100
14115
|
const Se = new XMLHttpRequest();
|
|
14101
14116
|
Se.open("POST", n.url), Se.withCredentials = n.credentials, Se.upload.onprogress = (rt) => {
|
|
14102
|
-
|
|
14117
|
+
re(rt.loaded / rt.total * 100);
|
|
14103
14118
|
}, Se.onerror = () => {
|
|
14104
14119
|
ke("Image upload failed due to a XHR Transport error. Code: " + Se.status);
|
|
14105
14120
|
}, Se.onload = () => {
|
|
@@ -14118,20 +14133,20 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14118
14133
|
Be.append("file", K.blob(), K.filename()), Se.send(Be);
|
|
14119
14134
|
}), u = pe(n.handler) ? n.handler : l, f = () => new Promise((K) => {
|
|
14120
14135
|
K([]);
|
|
14121
|
-
}), b = (K,
|
|
14122
|
-
url:
|
|
14136
|
+
}), b = (K, re) => ({
|
|
14137
|
+
url: re,
|
|
14123
14138
|
blobInfo: K,
|
|
14124
14139
|
status: !0
|
|
14125
|
-
}), y = (K,
|
|
14140
|
+
}), y = (K, re) => ({
|
|
14126
14141
|
url: "",
|
|
14127
14142
|
blobInfo: K,
|
|
14128
14143
|
status: !1,
|
|
14129
|
-
error:
|
|
14130
|
-
}), k = (K,
|
|
14144
|
+
error: re
|
|
14145
|
+
}), k = (K, re) => {
|
|
14131
14146
|
ct.each(o[K], (we) => {
|
|
14132
|
-
we(
|
|
14147
|
+
we(re);
|
|
14133
14148
|
}), delete o[K];
|
|
14134
|
-
}, P = (K,
|
|
14149
|
+
}, P = (K, re, we) => (e.markPending(K.blobUri()), new Promise((ke) => {
|
|
14135
14150
|
let Se, Be;
|
|
14136
14151
|
try {
|
|
14137
14152
|
const rt = () => {
|
|
@@ -14145,19 +14160,19 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14145
14160
|
We < 0 || We > 100 || z.from(Se).orThunk(() => z.from(we).map(ho)).each((Ve) => {
|
|
14146
14161
|
Se = Ve, Ve.progressBar.value(We);
|
|
14147
14162
|
});
|
|
14148
|
-
},
|
|
14163
|
+
}, re(K, Be).then(wt, (We) => {
|
|
14149
14164
|
Ft(he(We) ? { message: We } : We);
|
|
14150
14165
|
});
|
|
14151
14166
|
} catch (rt) {
|
|
14152
14167
|
ke(y(K, rt));
|
|
14153
14168
|
}
|
|
14154
14169
|
})), B = (K) => K === l, F = (K) => {
|
|
14155
|
-
const
|
|
14170
|
+
const re = K.blobUri();
|
|
14156
14171
|
return new Promise((we) => {
|
|
14157
|
-
o[
|
|
14172
|
+
o[re] = o[re] || [], o[re].push(we);
|
|
14158
14173
|
});
|
|
14159
|
-
}, ee = (K,
|
|
14160
|
-
return { upload: (K,
|
|
14174
|
+
}, ee = (K, re) => (K = ct.grep(K, (we) => !e.isUploaded(we.blobUri())), Promise.all(ct.map(K, (we) => e.isPending(we.blobUri()) ? F(we) : P(we, u, re))));
|
|
14175
|
+
return { upload: (K, re) => !n.url && B(u) ? f() : ee(K, re) };
|
|
14161
14176
|
}, QF = (e) => () => e.notificationManager.open({
|
|
14162
14177
|
text: e.translate("Image uploading..."),
|
|
14163
14178
|
type: "info",
|
|
@@ -14195,7 +14210,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14195
14210
|
src: J0(e) ? b(Be) : Be,
|
|
14196
14211
|
"data-mce-src": rt
|
|
14197
14212
|
});
|
|
14198
|
-
}, F = () => (o || (o = sy(e, l)),
|
|
14213
|
+
}, F = () => (o || (o = sy(e, l)), re().then(f((Se) => {
|
|
14199
14214
|
const Be = Ke(Se, (rt) => rt.blobInfo);
|
|
14200
14215
|
return o.upload(Be, QF(e)).then(f((rt) => {
|
|
14201
14216
|
const wt = [];
|
|
@@ -14218,9 +14233,9 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14218
14233
|
});
|
|
14219
14234
|
}) : Ft && e.undoManager.dispatchChange(), We;
|
|
14220
14235
|
}));
|
|
14221
|
-
}))), ee = () => DC(e) ? F() : Promise.resolve([]),
|
|
14236
|
+
}))), ee = () => DC(e) ? F() : Promise.resolve([]), se = (Se) => nr(u, (Be) => Be(Se)), K = (Se) => {
|
|
14222
14237
|
u.push(Se);
|
|
14223
|
-
},
|
|
14238
|
+
}, re = () => (r || (r = qF(l, n)), r.findAll(e.getBody(), se).then(f((Se) => {
|
|
14224
14239
|
const Be = zt(Se, (rt) => he(rt) ? (FS(e, rt), !1) : rt.uriType !== "blob");
|
|
14225
14240
|
return Dh(e) || Te(Be, (rt) => {
|
|
14226
14241
|
P(rt.image.src, rt.blobInfo.blobUri()), rt.image.src = rt.blobInfo.blobUri(), rt.image.removeAttribute("data-mce-src");
|
|
@@ -14235,7 +14250,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14235
14250
|
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;
|
|
14236
14251
|
});
|
|
14237
14252
|
return e.on("SetContent", () => {
|
|
14238
|
-
DC(e) ? ee() :
|
|
14253
|
+
DC(e) ? ee() : re();
|
|
14239
14254
|
}), e.on("RawSaveContent", (Se) => {
|
|
14240
14255
|
Se.content = ke(Se.content);
|
|
14241
14256
|
}), e.on("GetContent", (Se) => {
|
|
@@ -14255,7 +14270,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14255
14270
|
addFilter: K,
|
|
14256
14271
|
uploadImages: F,
|
|
14257
14272
|
uploadImagesAuto: ee,
|
|
14258
|
-
scanForImages:
|
|
14273
|
+
scanForImages: re,
|
|
14259
14274
|
destroy: we
|
|
14260
14275
|
};
|
|
14261
14276
|
}, o9 = (e) => {
|
|
@@ -14667,9 +14682,9 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14667
14682
|
return B && B.length ? k && qe(B, k) ? k : B[0] : !1;
|
|
14668
14683
|
}, f = (y, k, P) => {
|
|
14669
14684
|
let B;
|
|
14670
|
-
const F = k[0], ee = ry(F) ? F.name : void 0,
|
|
14671
|
-
if (
|
|
14672
|
-
ee ===
|
|
14685
|
+
const F = k[0], ee = ry(F) ? F.name : void 0, se = u(y, ee);
|
|
14686
|
+
if (se)
|
|
14687
|
+
ee === se ? (B = F, k = k.slice(1)) : B = se;
|
|
14673
14688
|
else if (F)
|
|
14674
14689
|
B = F, k = k.slice(1);
|
|
14675
14690
|
else if (!P)
|
|
@@ -14679,8 +14694,8 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14679
14694
|
const ke = l(we);
|
|
14680
14695
|
K.insertBefore(ke, y);
|
|
14681
14696
|
});
|
|
14682
|
-
const
|
|
14683
|
-
return f(K, k,
|
|
14697
|
+
const re = ry(B) ? B.siblings : void 0;
|
|
14698
|
+
return f(K, k, re);
|
|
14684
14699
|
}, b = bc.create("div");
|
|
14685
14700
|
if (e.length > 0) {
|
|
14686
14701
|
const y = e[0], k = l(y), P = ry(y) ? y.siblings : void 0;
|
|
@@ -14739,11 +14754,11 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14739
14754
|
y.length > 0 ? (y[0].name || (y[0].name = f), f = n.selector, b = ox(y, e)) : b = ox([f], e);
|
|
14740
14755
|
const k = bc.select(f, b)[0] || b.firstChild;
|
|
14741
14756
|
pg(n.styles, (F, ee) => {
|
|
14742
|
-
const
|
|
14743
|
-
|
|
14757
|
+
const se = l(F);
|
|
14758
|
+
se && bc.setStyle(k, ee, se);
|
|
14744
14759
|
}), pg(n.attributes, (F, ee) => {
|
|
14745
|
-
const
|
|
14746
|
-
|
|
14760
|
+
const se = l(F);
|
|
14761
|
+
se && bc.setAttrib(k, ee, se);
|
|
14747
14762
|
}), pg(n.classes, (F) => {
|
|
14748
14763
|
const ee = l(F);
|
|
14749
14764
|
bc.hasClass(k, ee) || bc.addClass(k, ee);
|
|
@@ -15286,11 +15301,11 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15286
15301
|
let F = EM([B]);
|
|
15287
15302
|
e === -1 && (F = F.reverse());
|
|
15288
15303
|
for (let ee = 0; ee < F.length; ee++) {
|
|
15289
|
-
const
|
|
15290
|
-
if (!o(
|
|
15291
|
-
if (b.length > 0 && n(
|
|
15304
|
+
const se = F[ee];
|
|
15305
|
+
if (!o(se, k)) {
|
|
15306
|
+
if (b.length > 0 && n(se, Or(b)) && f++, se.line = f, l(se))
|
|
15292
15307
|
return !0;
|
|
15293
|
-
b.push(
|
|
15308
|
+
b.push(se);
|
|
15294
15309
|
}
|
|
15295
15310
|
}
|
|
15296
15311
|
return !1;
|
|
@@ -15324,9 +15339,9 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15324
15339
|
}, sk = (e, n, o) => z.some(XS(e, n, o)), K5 = (e, n, o, r, l, u) => {
|
|
15325
15340
|
const f = n === Lr.Forwards, b = hd(e.getBody()), y = Pe(e_, f ? b.next : b.prev), k = f ? r : l;
|
|
15326
15341
|
if (!o.collapsed) {
|
|
15327
|
-
const
|
|
15328
|
-
if (u(
|
|
15329
|
-
return bg(n, e,
|
|
15342
|
+
const se = Qy(o);
|
|
15343
|
+
if (u(se))
|
|
15344
|
+
return bg(n, e, se, n === Lr.Backwards, !1);
|
|
15330
15345
|
if (I5(e)) {
|
|
15331
15346
|
const K = o.cloneRange();
|
|
15332
15347
|
return K.collapse(n === Lr.Backwards), z.from(K);
|
|
@@ -15350,22 +15365,22 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15350
15365
|
if (!b)
|
|
15351
15366
|
return z.none();
|
|
15352
15367
|
if (I5(e)) {
|
|
15353
|
-
const
|
|
15354
|
-
return (y ? q9 : G9)(k,
|
|
15368
|
+
const re = y ? Le.fromRangeEnd(o) : Le.fromRangeStart(o);
|
|
15369
|
+
return (y ? q9 : G9)(k, re).orThunk(() => z.from(re)).map((ke) => ke.toRange());
|
|
15355
15370
|
}
|
|
15356
|
-
const B = (y ? DM : AM)(k, uy(1), f), F = zt(B, dy(1)), ee = b.left,
|
|
15357
|
-
if (
|
|
15358
|
-
const
|
|
15359
|
-
return bg(n, e,
|
|
15371
|
+
const B = (y ? DM : AM)(k, uy(1), f), F = zt(B, dy(1)), ee = b.left, se = TM(F, ee);
|
|
15372
|
+
if (se && u(se.node)) {
|
|
15373
|
+
const re = Math.abs(ee - se.left), we = Math.abs(ee - se.right);
|
|
15374
|
+
return bg(n, e, se.node, re < we, !1);
|
|
15360
15375
|
}
|
|
15361
15376
|
let K;
|
|
15362
15377
|
if (r(f) ? K = f.getNode() : l(f) ? K = f.getNode(!0) : K = Qy(o), K) {
|
|
15363
|
-
const
|
|
15364
|
-
let we = TM(zt(
|
|
15365
|
-
if (we || (we = Or(zt(
|
|
15378
|
+
const re = J9(n, k, uy(1), K);
|
|
15379
|
+
let we = TM(zt(re, dy(1)), ee);
|
|
15380
|
+
if (we || (we = Or(zt(re, dy(0))), we))
|
|
15366
15381
|
return sk(e, we.position.toRange(), !1);
|
|
15367
15382
|
}
|
|
15368
|
-
return F.length === 0 ? my(e, y).filter(y ? l : r).map((
|
|
15383
|
+
return F.length === 0 ? my(e, y).filter(y ? l : r).map((re) => XS(e, re.toRange(), !1)) : z.none();
|
|
15369
15384
|
}, my = (e, n) => {
|
|
15370
15385
|
const o = e.selection.getRng(), r = n ? Le.fromRangeEnd(o) : Le.fromRangeStart(o), l = H2(r.container(), e.getBody());
|
|
15371
15386
|
if (n) {
|
|
@@ -15625,7 +15640,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15625
15640
|
const B = f.nodeName.toLowerCase();
|
|
15626
15641
|
if (!r.isValidChild(B, P.toLowerCase()) || _H(l, f, u))
|
|
15627
15642
|
return;
|
|
15628
|
-
const F = o.getRng(), { startContainer: ee, startOffset:
|
|
15643
|
+
const F = o.getRng(), { startContainer: ee, startOffset: se, endContainer: K, endOffset: re } = F, we = Xp(e);
|
|
15629
15644
|
let ke = f.firstChild;
|
|
15630
15645
|
for (; ke; )
|
|
15631
15646
|
if (qt(ke) && Sb(r, ke), XM(r, ke)) {
|
|
@@ -15636,7 +15651,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15636
15651
|
b || (b = JM(e), f.insertBefore(b, ke), k = !0), y = ke, ke = ke.nextSibling, b.appendChild(y);
|
|
15637
15652
|
} else
|
|
15638
15653
|
b = null, ke = ke.nextSibling;
|
|
15639
|
-
k && we && (F.setStart(ee,
|
|
15654
|
+
k && we && (F.setStart(ee, se), F.setEnd(K, re), o.setRng(F), e.nodeChanged());
|
|
15640
15655
|
}, QM = (e, n, o) => {
|
|
15641
15656
|
const r = ie.fromDom(JM(e)), l = Gl();
|
|
15642
15657
|
_r(r, l), o(n, r);
|
|
@@ -16400,7 +16415,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16400
16415
|
const { dom: r, selection: l } = e, u = e.getBody();
|
|
16401
16416
|
if (o === "character") {
|
|
16402
16417
|
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);
|
|
16403
|
-
return k && (n ? B : P) && ef(!n, u, f).exists((
|
|
16418
|
+
return k && (n ? B : P) && ef(!n, u, f).exists((se) => aP(r, se) && !Za(y, Ex(r, se))) ? !0 : ef(n, u, f).fold(tt, (F) => {
|
|
16404
16419
|
const ee = Ex(r, F);
|
|
16405
16420
|
if (aP(r, F) && !Za(y, ee)) {
|
|
16406
16421
|
if (n || UA(e, F, !1), b && k) {
|
|
@@ -16428,12 +16443,12 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16428
16443
|
Ze(y) && Ze(k) && Ze(P) && Ze(B) && (b == null || b.setBaseAndExtent(y, k, P, B));
|
|
16429
16444
|
}, ee = () => {
|
|
16430
16445
|
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;
|
|
16431
|
-
},
|
|
16432
|
-
Te(
|
|
16446
|
+
}, se = (re, we) => {
|
|
16447
|
+
Te(re.childNodes, (ke) => {
|
|
16433
16448
|
g1(ke) && we.appendChild(ke);
|
|
16434
16449
|
});
|
|
16435
16450
|
}, K = e.dom.create("span", { "data-mce-bogus": "1" });
|
|
16436
|
-
|
|
16451
|
+
se(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(), se(K, l), F()), e.dom.remove(K);
|
|
16437
16452
|
}), !0) : !1;
|
|
16438
16453
|
}, g0 = (e, n, o) => XV(e, n, o) || HA && kk(e, n, o) ? z.some(Nt) : z.none(), WA = (e) => (n, o, r = {}) => {
|
|
16439
16454
|
const l = n.getBody(), u = {
|
|
@@ -16700,7 +16715,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16700
16715
|
const F = y.getTextInlineElements();
|
|
16701
16716
|
let ee;
|
|
16702
16717
|
u || P === "TABLE" || P === "HR" ? ee = b.create(u || k, f || {}) : ee = o.cloneNode(!1);
|
|
16703
|
-
let
|
|
16718
|
+
let se = ee;
|
|
16704
16719
|
if (!l)
|
|
16705
16720
|
b.setAttrib(ee, "style", null), b.setAttrib(ee, "class", null);
|
|
16706
16721
|
else
|
|
@@ -16709,10 +16724,10 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16709
16724
|
if (Di(B) || Oi(B))
|
|
16710
16725
|
continue;
|
|
16711
16726
|
const K = B.cloneNode(!1);
|
|
16712
|
-
b.setAttrib(K, "id", ""), ee.hasChildNodes() ? (K.appendChild(ee.firstChild), ee.appendChild(K)) : (
|
|
16727
|
+
b.setAttrib(K, "id", ""), ee.hasChildNodes() ? (K.appendChild(ee.firstChild), ee.appendChild(K)) : (se = K, ee.appendChild(K));
|
|
16713
16728
|
}
|
|
16714
16729
|
while ((B = B.parentNode) && B !== r);
|
|
16715
|
-
return X1(e, ee), ZA(
|
|
16730
|
+
return X1(e, ee), ZA(se), ee;
|
|
16716
16731
|
}, mP = (e, n) => e.dom.getParent(n, nt), sz = (e, n, o) => {
|
|
16717
16732
|
let r = n;
|
|
16718
16733
|
for (; r && r !== e && ae(r.nextSibling); ) {
|
|
@@ -16817,10 +16832,10 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16817
16832
|
B = P, P = P.previousSibling;
|
|
16818
16833
|
const F = (f = B == null ? void 0 : B.parentElement) === null || f === void 0 ? void 0 : f.nodeName;
|
|
16819
16834
|
if (B && F && e.schema.isValidChild(F, n.toLowerCase())) {
|
|
16820
|
-
const ee = B.parentNode,
|
|
16821
|
-
for (X1(e,
|
|
16835
|
+
const ee = B.parentNode, se = b.create(n);
|
|
16836
|
+
for (X1(e, se), ee.insertBefore(se, B), P = B; P && !b.isBlock(P); ) {
|
|
16822
16837
|
const K = P.nextSibling;
|
|
16823
|
-
|
|
16838
|
+
se.appendChild(P), P = K;
|
|
16824
16839
|
}
|
|
16825
16840
|
o.setStart(r, l), o.setEnd(r, l);
|
|
16826
16841
|
}
|
|
@@ -16836,7 +16851,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16836
16851
|
}, bP = {
|
|
16837
16852
|
insert: (e, n) => {
|
|
16838
16853
|
let o, r, l, u, f = !1;
|
|
16839
|
-
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),
|
|
16854
|
+
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), se = ee.exists((st) => Gs(st) && !Vn(st)), K = P.collapsed && se, re = (st, Kt) => jA(e, o, wt, rt, a3(e), st, Kt), we = (st) => {
|
|
16840
16855
|
const Kt = XA(st, o, r);
|
|
16841
16856
|
if (ut(o) && (st ? Kt > 0 : Kt < o.data.length))
|
|
16842
16857
|
return !1;
|
|
@@ -16861,7 +16876,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16861
16876
|
return !0;
|
|
16862
16877
|
}, ke = () => {
|
|
16863
16878
|
let st;
|
|
16864
|
-
return /^(H[1-6]|PRE|FIGURE)$/.test(l) && Ft !== "HGROUP" ? st =
|
|
16879
|
+
return /^(H[1-6]|PRE|FIGURE)$/.test(l) && Ft !== "HGROUP" ? st = re(B) : st = re(), hz(e, u) && YA(b, u) && b.isEmpty(wt, void 0, { includeZwsp: !0 }) ? st = b.split(u, wt) : b.insertAfter(st, wt), sr(e, st), st;
|
|
16865
16880
|
};
|
|
16866
16881
|
S(b, P).each((st) => {
|
|
16867
16882
|
P.setStart(st.startContainer, st.startOffset), P.setEnd(st.endContainer, st.endOffset);
|
|
@@ -16880,9 +16895,9 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16880
16895
|
wt = st, u = st.parentNode, l = Ft;
|
|
16881
16896
|
}
|
|
16882
16897
|
if (qt(u) && rz(e, Se, wt))
|
|
16883
|
-
return az(e,
|
|
16898
|
+
return az(e, re, wt);
|
|
16884
16899
|
if (/^(LI|DT|DD)$/.test(l) && qt(u) && b.isEmpty(wt)) {
|
|
16885
|
-
gP(e,
|
|
16900
|
+
gP(e, re, u, wt, B);
|
|
16886
16901
|
return;
|
|
16887
16902
|
}
|
|
16888
16903
|
if (!K && (wt === e.getBody() || !YA(b, wt)))
|
|
@@ -16890,7 +16905,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16890
16905
|
const We = wt.parentNode;
|
|
16891
16906
|
let Ve;
|
|
16892
16907
|
if (K)
|
|
16893
|
-
Ve =
|
|
16908
|
+
Ve = re(B), ee.fold(() => {
|
|
16894
16909
|
_r(F, ie.fromDom(Ve));
|
|
16895
16910
|
}, (st) => {
|
|
16896
16911
|
jr(st, ie.fromDom(Ve));
|
|
@@ -16900,7 +16915,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16900
16915
|
else if (we(!1))
|
|
16901
16916
|
Ve = ke();
|
|
16902
16917
|
else if (we(!0) && We) {
|
|
16903
|
-
Ve = We.insertBefore(
|
|
16918
|
+
Ve = We.insertBefore(re(), wt);
|
|
16904
16919
|
const st = Lg(ie.fromDom(P.startContainer)) && P.collapsed;
|
|
16905
16920
|
sr(e, Dx(wt, "HR") || st ? Ve : wt);
|
|
16906
16921
|
} else {
|
|
@@ -17734,10 +17749,10 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
17734
17749
|
const u = e.dom, f = e.selection.getNode();
|
|
17735
17750
|
n = n.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi, (b, y, k, P) => {
|
|
17736
17751
|
const B = u.parseStyle(u.decode(k)), F = {};
|
|
17737
|
-
for (let
|
|
17738
|
-
const K = B[l[
|
|
17739
|
-
let
|
|
17740
|
-
/color/.test(l[
|
|
17752
|
+
for (let se = 0; se < l.length; se++) {
|
|
17753
|
+
const K = B[l[se]];
|
|
17754
|
+
let re = K, we = u.getStyle(f, l[se], !0);
|
|
17755
|
+
/color/.test(l[se]) && (re = uB(re), we = uB(we)), we !== re && (F[l[se]] = K);
|
|
17741
17756
|
}
|
|
17742
17757
|
const ee = u.serializeStyle(F, "span");
|
|
17743
17758
|
return ee ? y + ' style="' + ee + '"' + P : y + P;
|
|
@@ -17817,9 +17832,9 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
17817
17832
|
node: e.node,
|
|
17818
17833
|
position: UU(e, n) < WU(e, n) ? tb.Before : tb.After
|
|
17819
17834
|
}), 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) => {
|
|
17820
|
-
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((
|
|
17821
|
-
const ee = Ko(B, (
|
|
17822
|
-
return Bl(ee, l).map((
|
|
17835
|
+
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((se) => Math.abs(ee(B, n, o) - ee(se, n, o)) < 2 && ut(se.node)), f = (B, F) => {
|
|
17836
|
+
const ee = Ko(B, (se, K) => F(se, n, o) - F(K, n, o));
|
|
17837
|
+
return Bl(ee, l).map((se) => r && !ut(se.node) && ee.length > 1 ? u(se, ee[1], F).getOr(se) : se);
|
|
17823
17838
|
}, [b, y] = qU(EM(e), o), {
|
|
17824
17839
|
pass: k,
|
|
17825
17840
|
fail: P
|
|
@@ -17981,9 +17996,9 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
17981
17996
|
}, 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) => {
|
|
17982
17997
|
let F = 0, ee = 0;
|
|
17983
17998
|
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";
|
|
17984
|
-
const
|
|
17999
|
+
const se = y.clientHeight, K = y.clientWidth, re = f + y.getBoundingClientRect().top, we = b + y.getBoundingClientRect().left;
|
|
17985
18000
|
P.on((ke) => {
|
|
17986
|
-
ke.intervalId.clear(), ke.dragging && B && (f + jk >=
|
|
18001
|
+
ke.intervalId.clear(), ke.dragging && B && (f + jk >= se ? 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)) : re + Gk >= window.innerHeight ? ke.intervalId.set(AB(window)) : re - Gk <= 0 ? ke.intervalId.set(rW(window)) : we + Gk >= window.innerWidth ? ke.intervalId.set(EB(window)) : we - Gk <= 0 && ke.intervalId.set(TB(window)));
|
|
17987
18002
|
});
|
|
17988
18003
|
}, Yk = (e) => {
|
|
17989
18004
|
e && e.parentNode && e.parentNode.removeChild(e);
|
|
@@ -18167,7 +18182,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18167
18182
|
Ve = Ve.cloneRange(), Ve.selectNode(b), We.range = Ve;
|
|
18168
18183
|
}
|
|
18169
18184
|
}), e.on("SetSelectionRange", (We) => {
|
|
18170
|
-
We.range =
|
|
18185
|
+
We.range = re(We.range);
|
|
18171
18186
|
const Ve = Se(We.range, We.forward);
|
|
18172
18187
|
Ve && (We.range = Ve);
|
|
18173
18188
|
});
|
|
@@ -18176,7 +18191,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18176
18191
|
const Ve = We.range, st = Ve.startContainer.parentElement;
|
|
18177
18192
|
!K(Ve) && !Ft(st) && wt(), y(st) || Be();
|
|
18178
18193
|
}), hW(e), RB(e), pW(e);
|
|
18179
|
-
},
|
|
18194
|
+
}, se = (Ft) => an(Ft) || ql(Ft) || Yc(Ft), K = (Ft) => se(Ft.startContainer) || se(Ft.endContainer), re = (Ft) => {
|
|
18180
18195
|
const We = e.schema.getVoidElements(), Ve = o.createRng(), st = Ft.startContainer, Kt = Ft.startOffset, cn = Ft.endContainer, Jn = Ft.endOffset;
|
|
18181
18196
|
return pn(We, st.nodeName.toLowerCase()) ? Kt === 0 ? Ve.setStartBefore(st) : Ve.setStartAfter(st) : Ve.setStart(st, Kt), pn(We, cn.nodeName.toLowerCase()) ? Jn === 0 ? Ve.setEndBefore(cn) : Ve.setEndAfter(cn) : Ve.setEnd(cn, Jn), Ve;
|
|
18182
18197
|
}, we = (Ft, We) => {
|
|
@@ -18414,11 +18429,11 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18414
18429
|
position: k
|
|
18415
18430
|
}), ee = F.position;
|
|
18416
18431
|
return kW(l, f, ee.container, ee.offset, n, B.isNone()).map((K) => {
|
|
18417
|
-
const
|
|
18432
|
+
const re = wW(l, u, K, r);
|
|
18418
18433
|
return {
|
|
18419
18434
|
matches: F.matches.concat([{
|
|
18420
18435
|
pattern: f,
|
|
18421
|
-
startRng:
|
|
18436
|
+
startRng: re,
|
|
18422
18437
|
endRng: P
|
|
18423
18438
|
}]),
|
|
18424
18439
|
position: bf(K.startContainer, K.startOffset)
|
|
@@ -18556,7 +18571,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18556
18571
|
e.getDoc().execCommand(Qt, !1, String($n));
|
|
18557
18572
|
} catch {
|
|
18558
18573
|
}
|
|
18559
|
-
}, ee = (Qt) => Qt.isDefaultPrevented(),
|
|
18574
|
+
}, ee = (Qt) => Qt.isDefaultPrevented(), se = () => {
|
|
18560
18575
|
const Qt = (Ct) => {
|
|
18561
18576
|
const Mn = l.create("body"), Oo = Ct.cloneContents();
|
|
18562
18577
|
return Mn.appendChild(Oo), u.serializer.serialize(Mn, { format: "html" });
|
|
@@ -18577,7 +18592,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18577
18592
|
});
|
|
18578
18593
|
}, K = () => {
|
|
18579
18594
|
e.shortcuts.add("meta+a", null, "SelectAll");
|
|
18580
|
-
},
|
|
18595
|
+
}, re = () => {
|
|
18581
18596
|
e.inline || l.bind(e.getDoc(), "mousedown mouseup", (Qt) => {
|
|
18582
18597
|
let $n;
|
|
18583
18598
|
if (Qt.target === e.getDoc().documentElement)
|
|
@@ -18739,7 +18754,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18739
18754
|
const Qt = e.selection.getSel();
|
|
18740
18755
|
return !Qt || !Qt.rangeCount || Qt.rangeCount === 0;
|
|
18741
18756
|
}, on = () => {
|
|
18742
|
-
k && (
|
|
18757
|
+
k && (re(), Se(), Hr(), K(), P && (Jn(), qn(), Rs())), y && (ke(), Ft(), cn(), gs());
|
|
18743
18758
|
}, Kn = () => {
|
|
18744
18759
|
e.on("drop", (Qt) => {
|
|
18745
18760
|
var $n;
|
|
@@ -18747,7 +18762,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18747
18762
|
he(Ct) && /^<img[^>]*>$/.test(Ct) && e.dispatch("dragend", new window.DragEvent("dragend", Qt));
|
|
18748
18763
|
});
|
|
18749
18764
|
}, mo = () => {
|
|
18750
|
-
wt(),
|
|
18765
|
+
wt(), se(), It.windowsPhone || Kt(), k && (re(), Se(), Ve(), Hr(), rt(), Ml(), P ? (Jn(), qn(), Rs()) : K()), y && (we(), ke(), Be(), Ft(), We(), cn(), gs(), rt(), Kn());
|
|
18751
18766
|
};
|
|
18752
18767
|
return Dh(e) ? on() : mo(), {
|
|
18753
18768
|
refreshContentEditable: us,
|
|
@@ -19901,15 +19916,15 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
19901
19916
|
}
|
|
19902
19917
|
}, YZ = (e, n) => {
|
|
19903
19918
|
const o = {}, r = {}, l = (B, F, ee) => {
|
|
19904
|
-
const
|
|
19905
|
-
return A7(
|
|
19919
|
+
const se = y0(F, ee);
|
|
19920
|
+
return A7(se) ? (r[B] = se.value, !0) : (console.warn(E7(`Invalid value passed for the ${B} option`, se)), !1);
|
|
19906
19921
|
}, u = (B, F) => {
|
|
19907
|
-
const ee = KZ(F) ? qZ(F.processor) : F.processor,
|
|
19922
|
+
const ee = KZ(F) ? qZ(F.processor) : F.processor, se = xf(B, F.default, ee);
|
|
19908
19923
|
o[B] = {
|
|
19909
19924
|
...F,
|
|
19910
|
-
default:
|
|
19925
|
+
default: se,
|
|
19911
19926
|
processor: ee
|
|
19912
|
-
}, Xo(r, B).orThunk(() => Xo(n, B)).each((
|
|
19927
|
+
}, Xo(r, B).orThunk(() => Xo(n, B)).each((re) => l(B, re, ee));
|
|
19913
19928
|
}, f = (B) => pn(o, B);
|
|
19914
19929
|
return {
|
|
19915
19930
|
register: u,
|
|
@@ -20424,16 +20439,16 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
20424
20439
|
let P = 0;
|
|
20425
20440
|
const B = [];
|
|
20426
20441
|
let F;
|
|
20427
|
-
const ee = (
|
|
20428
|
-
const we = new g4(
|
|
20442
|
+
const ee = (se, K, re) => {
|
|
20443
|
+
const we = new g4(se, K, n);
|
|
20429
20444
|
B.push(we), we.on("init", () => {
|
|
20430
20445
|
++P === F.length && y(B);
|
|
20431
|
-
}), we.targetElm = we.targetElm ||
|
|
20446
|
+
}), we.targetElm = we.targetElm || re, we.render();
|
|
20432
20447
|
};
|
|
20433
|
-
Sy.unbind(window, "ready", k), f("onpageload"), F = di(b(e)), ct.each(F, (
|
|
20434
|
-
ij(n.get(
|
|
20435
|
-
}), F = ct.grep(F, (
|
|
20436
|
-
l(e,
|
|
20448
|
+
Sy.unbind(window, "ready", k), f("onpageload"), F = di(b(e)), ct.each(F, (se) => {
|
|
20449
|
+
ij(n.get(se.id));
|
|
20450
|
+
}), F = ct.grep(F, (se) => !n.get(se.id)), F.length === 0 ? y([]) : h4(F, (se) => {
|
|
20451
|
+
l(e, se) ? nx("Could not initialize inline editor on invalid inline target element", se) : ee(u(se), e, se);
|
|
20437
20452
|
});
|
|
20438
20453
|
};
|
|
20439
20454
|
return Sy.bind(window, "ready", k), new Promise((P) => {
|
|
@@ -20577,8 +20592,8 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
20577
20592
|
if (e[y] !== void 0)
|
|
20578
20593
|
return e[y];
|
|
20579
20594
|
{
|
|
20580
|
-
const F = new Promise((ee,
|
|
20581
|
-
const K = pj(ee,
|
|
20595
|
+
const F = new Promise((ee, se) => {
|
|
20596
|
+
const K = pj(ee, se);
|
|
20582
20597
|
n[y] = K.resolve, ra.ScriptLoader.loadScript(k).then(() => K.start(B), () => K.reject(P));
|
|
20583
20598
|
});
|
|
20584
20599
|
return e[y] = F, F;
|
|
@@ -20905,13 +20920,13 @@ tinymce.IconManager.add("default", {
|
|
|
20905
20920
|
}
|
|
20906
20921
|
});
|
|
20907
20922
|
(function() {
|
|
20908
|
-
const A = Object.getPrototypeOf,
|
|
20923
|
+
const A = Object.getPrototypeOf, oe = (t, s, a) => {
|
|
20909
20924
|
var c;
|
|
20910
20925
|
return a(t, s.prototype) ? !0 : ((c = t.constructor) === null || c === void 0 ? void 0 : c.name) === s.name;
|
|
20911
20926
|
}, G = (t) => {
|
|
20912
20927
|
const s = typeof t;
|
|
20913
|
-
return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" &&
|
|
20914
|
-
}, _e = (t) => (s) => G(s) === t, ne = (t) => (s) => typeof s === t, Z = (t) => (s) => t === s, xe = (t, s) => $e(t) &&
|
|
20928
|
+
return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" && oe(t, String, (a, c) => c.isPrototypeOf(a)) ? "string" : s;
|
|
20929
|
+
}, _e = (t) => (s) => G(s) === t, ne = (t) => (s) => typeof s === t, Z = (t) => (s) => t === s, xe = (t, s) => $e(t) && oe(t, s, (a, c) => A(a) === c), X = _e("string"), $e = _e("object"), lt = (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) => {
|
|
20915
20930
|
if (yt(t)) {
|
|
20916
20931
|
for (let a = 0, c = t.length; a < c; ++a)
|
|
20917
20932
|
if (!s(t[a]))
|
|
@@ -40544,10 +40559,10 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
40544
40559
|
bS("tab"),
|
|
40545
40560
|
o$,
|
|
40546
40561
|
Ec("items", P)
|
|
40547
|
-
],
|
|
40562
|
+
], se = [
|
|
40548
40563
|
Qr,
|
|
40549
40564
|
A0("tabs", ee)
|
|
40550
|
-
], K = rn(
|
|
40565
|
+
], K = rn(se), re = Vx, we = T7, ke = rn([
|
|
40551
40566
|
Bo("title"),
|
|
40552
40567
|
dc("body", ut("type", {
|
|
40553
40568
|
panel: F,
|
|
@@ -40567,7 +40582,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
40567
40582
|
"cancel",
|
|
40568
40583
|
"custom"
|
|
40569
40584
|
]),
|
|
40570
|
-
...
|
|
40585
|
+
...re
|
|
40571
40586
|
]), rt = rn([
|
|
40572
40587
|
Bo("title"),
|
|
40573
40588
|
Bo("url"),
|
|
@@ -42087,12 +42102,12 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
42087
42102
|
})();
|
|
42088
42103
|
(function() {
|
|
42089
42104
|
var A = tinymce.util.Tools.resolve("tinymce.ModelManager");
|
|
42090
|
-
const
|
|
42105
|
+
const oe = (i, m, h) => {
|
|
42091
42106
|
var v;
|
|
42092
42107
|
return h(i, m.prototype) ? !0 : ((v = i.constructor) === null || v === void 0 ? void 0 : v.name) === m.name;
|
|
42093
42108
|
}, G = (i) => {
|
|
42094
42109
|
const m = typeof i;
|
|
42095
|
-
return i === null ? "null" : m === "object" && Array.isArray(i) ? "array" : m === "object" &&
|
|
42110
|
+
return i === null ? "null" : m === "object" && Array.isArray(i) ? "array" : m === "object" && oe(i, String, (h, v) => v.isPrototypeOf(h)) ? "string" : m;
|
|
42096
42111
|
}, _e = (i) => (m) => G(m) === i, ne = (i) => (m) => typeof m === i, Z = (i) => (m) => i === m, xe = _e("string"), X = _e("object"), $e = _e("array"), lt = Z(null), yt = ne("boolean"), hn = Z(void 0), Et = (i) => i == null, io = (i) => !Et(i), lo = ne("function"), eo = ne("number"), Ot = () => {
|
|
42097
42112
|
}, 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;
|
|
42098
42113
|
function oo(i, ...m) {
|
|
@@ -46330,12 +46345,12 @@ Required: ` + m.join(", "));
|
|
|
46330
46345
|
})();
|
|
46331
46346
|
(function() {
|
|
46332
46347
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
46333
|
-
const
|
|
46348
|
+
const oe = (_, M, U) => {
|
|
46334
46349
|
var ce;
|
|
46335
46350
|
return U(_, M.prototype) ? !0 : ((ce = _.constructor) === null || ce === void 0 ? void 0 : ce.name) === M.name;
|
|
46336
46351
|
}, G = (_) => {
|
|
46337
46352
|
const M = typeof _;
|
|
46338
|
-
return _ === null ? "null" : M === "object" && Array.isArray(_) ? "array" : M === "object" &&
|
|
46353
|
+
return _ === null ? "null" : M === "object" && Array.isArray(_) ? "array" : M === "object" && oe(_, String, (U, ce) => ce.isPrototypeOf(U)) ? "string" : M;
|
|
46339
46354
|
}, _e = (_) => (M) => G(M) === _, ne = (_) => (M) => typeof M === _, Z = _e("string"), xe = _e("object"), X = _e("array"), $e = ne("boolean"), lt = (_) => _ == null, yt = (_) => !lt(_), hn = ne("function"), Et = ne("number"), io = () => {
|
|
46340
46355
|
}, lo = (_, M) => (U) => _(M(U)), eo = (_) => () => _, Ot = (_, M) => _ === M;
|
|
46341
46356
|
function Ls(_, ...M) {
|
|
@@ -47478,12 +47493,12 @@ Required: ` + m.join(", "));
|
|
|
47478
47493
|
})();
|
|
47479
47494
|
(function() {
|
|
47480
47495
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
47481
|
-
const
|
|
47496
|
+
const oe = (q, ge, Ee) => {
|
|
47482
47497
|
var Ie;
|
|
47483
47498
|
return Ee(q, ge.prototype) ? !0 : ((Ie = q.constructor) === null || Ie === void 0 ? void 0 : Ie.name) === ge.name;
|
|
47484
47499
|
}, G = (q) => {
|
|
47485
47500
|
const ge = typeof q;
|
|
47486
|
-
return q === null ? "null" : ge === "object" && Array.isArray(q) ? "array" : ge === "object" &&
|
|
47501
|
+
return q === null ? "null" : ge === "object" && Array.isArray(q) ? "array" : ge === "object" && oe(q, String, (Ee, Ie) => Ie.isPrototypeOf(Ee)) ? "string" : ge;
|
|
47487
47502
|
}, _e = (q) => (ge) => G(ge) === q, ne = (q) => (ge) => typeof ge === q, Z = (q) => (ge) => q === ge, xe = _e("string"), X = _e("object"), $e = _e("array"), lt = Z(null), yt = ne("boolean"), hn = (q) => q == null, Et = (q) => !hn(q), io = ne("function"), lo = (q, ge) => {
|
|
47488
47503
|
if ($e(q)) {
|
|
47489
47504
|
for (let Ee = 0, Ie = q.length; Ee < Ie; ++Ee)
|
|
@@ -48235,13 +48250,13 @@ Required: ` + m.join(", "));
|
|
|
48235
48250
|
})();
|
|
48236
48251
|
(function() {
|
|
48237
48252
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
48238
|
-
const
|
|
48253
|
+
const oe = Object.getPrototypeOf, G = (I, J, le) => {
|
|
48239
48254
|
var Fe;
|
|
48240
48255
|
return le(I, J.prototype) ? !0 : ((Fe = I.constructor) === null || Fe === void 0 ? void 0 : Fe.name) === J.name;
|
|
48241
48256
|
}, _e = (I) => {
|
|
48242
48257
|
const J = typeof I;
|
|
48243
48258
|
return I === null ? "null" : J === "object" && Array.isArray(I) ? "array" : J === "object" && G(I, String, (le, Fe) => Fe.isPrototypeOf(le)) ? "string" : J;
|
|
48244
|
-
}, ne = (I) => (J) => _e(J) === I, Z = (I) => (J) => typeof J === I, xe = (I) => (J) => I === J, X = (I, J) => lt(I) && G(I, J, (le, Fe) =>
|
|
48259
|
+
}, ne = (I) => (J) => _e(J) === I, Z = (I) => (J) => typeof J === I, xe = (I) => (J) => I === J, X = (I, J) => lt(I) && G(I, J, (le, Fe) => oe(le) === Fe), $e = ne("string"), lt = ne("object"), yt = (I) => X(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, J) => {
|
|
48245
48260
|
if (hn(I)) {
|
|
48246
48261
|
for (let le = 0, Fe = I.length; le < Fe; ++le)
|
|
48247
48262
|
if (!J(I[le]))
|
|
@@ -49104,12 +49119,12 @@ Required: ` + m.join(", "));
|
|
|
49104
49119
|
})();
|
|
49105
49120
|
(function() {
|
|
49106
49121
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
49107
|
-
const
|
|
49122
|
+
const oe = (x, T, V) => {
|
|
49108
49123
|
var Y;
|
|
49109
49124
|
return V(x, T.prototype) ? !0 : ((Y = x.constructor) === null || Y === void 0 ? void 0 : Y.name) === T.name;
|
|
49110
49125
|
}, G = (x) => {
|
|
49111
49126
|
const T = typeof x;
|
|
49112
|
-
return x === null ? "null" : T === "object" && Array.isArray(x) ? "array" : T === "object" &&
|
|
49127
|
+
return x === null ? "null" : T === "object" && Array.isArray(x) ? "array" : T === "object" && oe(x, String, (V, Y) => Y.isPrototypeOf(V)) ? "string" : T;
|
|
49113
49128
|
}, _e = (x) => (T) => G(T) === x, ne = (x) => (T) => typeof T === x, Z = (x) => (T) => x === T, xe = _e("string"), X = _e("array"), $e = ne("boolean"), lt = Z(void 0), yt = (x) => x == null, hn = (x) => !yt(x), Et = ne("function"), io = ne("number"), lo = () => {
|
|
49114
49129
|
}, eo = (x, T) => (V) => x(T(V)), Ot = (x) => () => x, Ls = (x) => x, un = (x, T) => x === T;
|
|
49115
49130
|
function he(x, ...T) {
|
|
@@ -51269,7 +51284,7 @@ Required: ` + T.join(", "));
|
|
|
51269
51284
|
})();
|
|
51270
51285
|
(function() {
|
|
51271
51286
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
51272
|
-
const
|
|
51287
|
+
const oe = (X, $e) => {
|
|
51273
51288
|
X.focus(), X.undoManager.transact(() => {
|
|
51274
51289
|
X.setContent($e);
|
|
51275
51290
|
}), X.selection.setCursorLocation(), X.nodeChanged();
|
|
@@ -51300,7 +51315,7 @@ Required: ` + T.join(", "));
|
|
|
51300
51315
|
],
|
|
51301
51316
|
initialData: { code: $e },
|
|
51302
51317
|
onSubmit: (lt) => {
|
|
51303
|
-
|
|
51318
|
+
oe(X, lt.getData().code), lt.close();
|
|
51304
51319
|
}
|
|
51305
51320
|
});
|
|
51306
51321
|
}, ne = (X) => {
|
|
@@ -51587,7 +51602,7 @@ const ste = { class: "font-bold ptext-lg dark:text-white" }, rte = ["id"], ate =
|
|
|
51587
51602
|
description: { type: String, default: "" }
|
|
51588
51603
|
},
|
|
51589
51604
|
emits: ["update:modelValue", "keydown"],
|
|
51590
|
-
setup(A, { expose:
|
|
51605
|
+
setup(A, { expose: oe, emit: G }) {
|
|
51591
51606
|
const _e = A, ne = G, Z = co(null);
|
|
51592
51607
|
let xe = null;
|
|
51593
51608
|
Dg(async () => {
|
|
@@ -51626,7 +51641,7 @@ const ste = { class: "font-bold ptext-lg dark:text-white" }, rte = ["id"], ate =
|
|
|
51626
51641
|
ne("update:modelValue", lt);
|
|
51627
51642
|
}
|
|
51628
51643
|
});
|
|
51629
|
-
return
|
|
51644
|
+
return oe({ focus: () => Z.value.focus() }), (lt, yt) => (ue(), fe(jn, null, [
|
|
51630
51645
|
A.show ? (ue(), fe("div", {
|
|
51631
51646
|
key: 0,
|
|
51632
51647
|
class: Zt(A.field_name)
|
|
@@ -51723,8 +51738,8 @@ const ste = { class: "font-bold ptext-lg dark:text-white" }, rte = ["id"], ate =
|
|
|
51723
51738
|
return 0;
|
|
51724
51739
|
if (this.limit === 0)
|
|
51725
51740
|
return this.lastPage;
|
|
51726
|
-
for (var A = this.currentPage,
|
|
51727
|
-
($e === 1 || $e ===
|
|
51741
|
+
for (var A = this.currentPage, oe = this.lastPage, G = this.limit, _e = A - G, ne = A + G + 1, Z = [], xe = [], X, $e = 1; $e <= oe; $e++)
|
|
51742
|
+
($e === 1 || $e === oe || $e >= _e && $e < ne) && Z.push($e);
|
|
51728
51743
|
return Z.forEach(function(lt) {
|
|
51729
51744
|
X && (lt - X === 2 ? xe.push(X + 1) : lt - X !== 1 && xe.push("...")), xe.push(lt), X = lt;
|
|
51730
51745
|
}), xe;
|
|
@@ -51770,8 +51785,8 @@ const ste = { class: "font-bold ptext-lg dark:text-white" }, rte = ["id"], ate =
|
|
|
51770
51785
|
}
|
|
51771
51786
|
},
|
|
51772
51787
|
pageButtonEvents: (A) => ({
|
|
51773
|
-
click: (
|
|
51774
|
-
|
|
51788
|
+
click: (oe) => {
|
|
51789
|
+
oe.preventDefault(), this.selectPage(A);
|
|
51775
51790
|
}
|
|
51776
51791
|
})
|
|
51777
51792
|
});
|
|
@@ -51849,7 +51864,7 @@ const ste = { class: "font-bold ptext-lg dark:text-white" }, rte = ["id"], ate =
|
|
|
51849
51864
|
d: "m1 9 4-4-4-4"
|
|
51850
51865
|
})
|
|
51851
51866
|
], -1);
|
|
51852
|
-
function kte(A,
|
|
51867
|
+
function kte(A, oe, G, _e, ne, Z) {
|
|
51853
51868
|
const xe = Rd("RenderlessPagination");
|
|
51854
51869
|
return ue(), Zu(xe, {
|
|
51855
51870
|
data: G.data,
|
|
@@ -51960,7 +51975,7 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
51960
51975
|
default: !1
|
|
51961
51976
|
}
|
|
51962
51977
|
},
|
|
51963
|
-
setup(A, { expose:
|
|
51978
|
+
setup(A, { expose: oe }) {
|
|
51964
51979
|
const G = co(""), _e = co(""), ne = co(""), Z = co("Cancel"), xe = co(!1), X = co(!1), $e = co(void 0), lt = 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) => {
|
|
51965
51980
|
$e.value = Ot, lt.value = Ls;
|
|
51966
51981
|
})), hn = () => {
|
|
@@ -51972,7 +51987,7 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
51972
51987
|
}, lo = () => {
|
|
51973
51988
|
xe.value = !1, $e.value(!1);
|
|
51974
51989
|
};
|
|
51975
|
-
return
|
|
51990
|
+
return oe({
|
|
51976
51991
|
show: yt,
|
|
51977
51992
|
showLoading: hn,
|
|
51978
51993
|
hideLoading: Et
|
|
@@ -52094,8 +52109,8 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
52094
52109
|
message: "Are you sure you want to delete the selected items?",
|
|
52095
52110
|
okButton: "Yes, delete it"
|
|
52096
52111
|
}))
|
|
52097
|
-
this.$refs.ConfirmationDelete.showLoading(), this.checkedIds.forEach((
|
|
52098
|
-
axios.delete(`${this.xprops.route}/${
|
|
52112
|
+
this.$refs.ConfirmationDelete.showLoading(), this.checkedIds.forEach((oe) => {
|
|
52113
|
+
axios.delete(`${this.xprops.route}/${oe}`).then(() => {
|
|
52099
52114
|
}).catch((G) => {
|
|
52100
52115
|
console.log(G);
|
|
52101
52116
|
});
|
|
@@ -52114,7 +52129,7 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
52114
52129
|
this.checkedIds = [];
|
|
52115
52130
|
},
|
|
52116
52131
|
toggleCheck(A) {
|
|
52117
|
-
this.checkedIds.includes(A) ? this.checkedIds = this.checkedIds.filter((
|
|
52132
|
+
this.checkedIds.includes(A) ? this.checkedIds = this.checkedIds.filter((oe) => oe !== A) : this.checkedIds.push(A);
|
|
52118
52133
|
},
|
|
52119
52134
|
editAction(A) {
|
|
52120
52135
|
this.$emit("editAction", A);
|
|
@@ -52127,7 +52142,7 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
52127
52142
|
},
|
|
52128
52143
|
GetItemLists(A = 1) {
|
|
52129
52144
|
this.isLoading = !0, this.page = A;
|
|
52130
|
-
const
|
|
52145
|
+
const oe = {
|
|
52131
52146
|
sort: this.sortField,
|
|
52132
52147
|
order: this.sortOrder,
|
|
52133
52148
|
s: this.search,
|
|
@@ -52135,14 +52150,14 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
52135
52150
|
page: this.page,
|
|
52136
52151
|
...this.dynamicFilters
|
|
52137
52152
|
};
|
|
52138
|
-
axios.get(this.xprops.route_get_data, { params:
|
|
52153
|
+
axios.get(this.xprops.route_get_data, { params: oe }).then((G) => {
|
|
52139
52154
|
this.itemLists = G.data, this.isLoading = !1;
|
|
52140
52155
|
}).catch((G) => {
|
|
52141
52156
|
console.error(G), this.isLoading = !1;
|
|
52142
52157
|
});
|
|
52143
52158
|
},
|
|
52144
|
-
updateSortColumn(A,
|
|
52145
|
-
|
|
52159
|
+
updateSortColumn(A, oe) {
|
|
52160
|
+
oe && (A === this.sortField ? this.sortOrder = this.sortOrder === "asc" ? "desc" : "asc" : (this.sortField = A, this.sortOrder = "asc"), this.GetItemLists(this.page));
|
|
52146
52161
|
},
|
|
52147
52162
|
handleSearch() {
|
|
52148
52163
|
this.sortField = this.columns[0].field_name, this.sortOrder = "asc", this.page = 1, this.GetItemLists(this.page);
|
|
@@ -52158,8 +52173,8 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
52158
52173
|
perPage(A) {
|
|
52159
52174
|
this.page = 1, this.perPage = A, this.GetItemLists(this.page);
|
|
52160
52175
|
},
|
|
52161
|
-
refreshData(A,
|
|
52162
|
-
this.isMounted && A !==
|
|
52176
|
+
refreshData(A, oe) {
|
|
52177
|
+
this.isMounted && A !== oe && this.GetItemLists();
|
|
52163
52178
|
},
|
|
52164
52179
|
dynamicFilters: {
|
|
52165
52180
|
handler(A) {
|
|
@@ -52240,7 +52255,7 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
52240
52255
|
class: "text-center rounded-t-lg lg:rounded-t-none text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border-[1px] dark:border-gray-700",
|
|
52241
52256
|
"data-label": ""
|
|
52242
52257
|
}, 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" };
|
|
52243
|
-
function hne(A,
|
|
52258
|
+
function hne(A, oe, G, _e, ne, Z) {
|
|
52244
52259
|
const xe = Rd("DynamicConfirmation"), X = Rd("dropdown"), $e = Rd("GlDropdown"), lt = Rd("GlTextInput"), yt = Rd("gl-button"), hn = Rd("TailwindPagination");
|
|
52245
52260
|
return ue(), fe(jn, null, [
|
|
52246
52261
|
ui(xe, { ref: "ConfirmationDelete" }, null, 512),
|
|
@@ -52253,7 +52268,7 @@ function hne(A, re, G, _e, ne, Z) {
|
|
|
52253
52268
|
has_cancel: !1,
|
|
52254
52269
|
options: ne.pageOptions,
|
|
52255
52270
|
modelValue: ne.perPage,
|
|
52256
|
-
"onUpdate:modelValue":
|
|
52271
|
+
"onUpdate:modelValue": oe[0] || (oe[0] = (Et) => ne.perPage = Et),
|
|
52257
52272
|
is_required: !1,
|
|
52258
52273
|
field_name: "perPage",
|
|
52259
52274
|
label_name: "",
|
|
@@ -52269,8 +52284,8 @@ function hne(A, re, G, _e, ne, Z) {
|
|
|
52269
52284
|
Kte,
|
|
52270
52285
|
Tr(R("input", {
|
|
52271
52286
|
type: "text",
|
|
52272
|
-
"onUpdate:modelValue":
|
|
52273
|
-
onInput:
|
|
52287
|
+
"onUpdate:modelValue": oe[1] || (oe[1] = (Et) => ne.search = Et),
|
|
52288
|
+
onInput: oe[2] || (oe[2] = (Et) => Z.handleSearch()),
|
|
52274
52289
|
class: "block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 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",
|
|
52275
52290
|
placeholder: "Search ..."
|
|
52276
52291
|
}, null, 544), [
|
|
@@ -52437,7 +52452,7 @@ function hne(A, re, G, _e, ne, Z) {
|
|
|
52437
52452
|
field: lo.field_name,
|
|
52438
52453
|
xprops: G.xprops,
|
|
52439
52454
|
tdProps: lo.tdProps,
|
|
52440
|
-
onDeleteAction:
|
|
52455
|
+
onDeleteAction: oe[3] || (oe[3] = (Ot) => Z.GetItemLists()),
|
|
52441
52456
|
onEditAction: (Ot) => Z.editAction(Et),
|
|
52442
52457
|
onGeneralAction: (Ot) => Z.generalAction(Et)
|
|
52443
52458
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (ue(), fe(jn, { key: 1 }, [
|
|
@@ -52498,16 +52513,16 @@ const Fce = /* @__PURE__ */ zr(Hte, [["render", hne]]), pne = {
|
|
|
52498
52513
|
return Math.ceil(this.filteredData.length / this.itemsPerPage);
|
|
52499
52514
|
},
|
|
52500
52515
|
paginatedData() {
|
|
52501
|
-
const A = (this.currentPage - 1) * this.itemsPerPage,
|
|
52502
|
-
return this.filteredData.slice(A,
|
|
52516
|
+
const A = (this.currentPage - 1) * this.itemsPerPage, oe = A + this.itemsPerPage;
|
|
52517
|
+
return this.filteredData.slice(A, oe);
|
|
52503
52518
|
},
|
|
52504
52519
|
displayedPageNumbers() {
|
|
52505
52520
|
let A = Math.max(
|
|
52506
52521
|
this.currentPage - Math.floor(this.maxDisplayedPages / 2),
|
|
52507
52522
|
1
|
|
52508
|
-
),
|
|
52509
|
-
return
|
|
52510
|
-
{ length:
|
|
52523
|
+
), oe = A + this.maxDisplayedPages - 1;
|
|
52524
|
+
return oe > this.totalPages && (oe = this.totalPages, A = Math.max(oe - this.maxDisplayedPages + 1, 1)), Array.from(
|
|
52525
|
+
{ length: oe - A + 1 },
|
|
52511
52526
|
(G, _e) => A + _e
|
|
52512
52527
|
);
|
|
52513
52528
|
},
|
|
@@ -52542,7 +52557,7 @@ const Fce = /* @__PURE__ */ zr(Hte, [["render", hne]]), pne = {
|
|
|
52542
52557
|
A === this.sortKey ? this.sortOrder *= -1 : (this.sortKey = A, this.sortOrder = 1);
|
|
52543
52558
|
},
|
|
52544
52559
|
sortData(A) {
|
|
52545
|
-
return this.sortKey ? A.slice().sort((
|
|
52560
|
+
return this.sortKey ? A.slice().sort((oe, G) => (oe[this.sortKey] < G[this.sortKey] ? -1 : 1) * this.sortOrder) : A;
|
|
52546
52561
|
},
|
|
52547
52562
|
previousPage() {
|
|
52548
52563
|
this.currentPage > 1 && this.currentPage--;
|
|
@@ -52676,7 +52691,7 @@ const Fce = /* @__PURE__ */ zr(Hte, [["render", hne]]), pne = {
|
|
|
52676
52691
|
ooe,
|
|
52677
52692
|
soe
|
|
52678
52693
|
];
|
|
52679
|
-
function aoe(A,
|
|
52694
|
+
function aoe(A, oe, G, _e, ne, Z) {
|
|
52680
52695
|
const xe = Rd("dropdown");
|
|
52681
52696
|
return ue(), fe("div", bne, [
|
|
52682
52697
|
R("div", vne, [
|
|
@@ -52687,7 +52702,7 @@ function aoe(A, re, G, _e, ne, Z) {
|
|
|
52687
52702
|
has_cancel: !1,
|
|
52688
52703
|
options: ne.showNoOfEntries,
|
|
52689
52704
|
modelValue: ne.itemsPerPage,
|
|
52690
|
-
"onUpdate:modelValue":
|
|
52705
|
+
"onUpdate:modelValue": oe[0] || (oe[0] = (X) => ne.itemsPerPage = X),
|
|
52691
52706
|
is_required: !1,
|
|
52692
52707
|
field_name: "NoOfEntries",
|
|
52693
52708
|
label_name: "",
|
|
@@ -52703,7 +52718,7 @@ function aoe(A, re, G, _e, ne, Z) {
|
|
|
52703
52718
|
kne,
|
|
52704
52719
|
Tr(R("input", {
|
|
52705
52720
|
type: "text",
|
|
52706
|
-
"onUpdate:modelValue":
|
|
52721
|
+
"onUpdate:modelValue": oe[1] || (oe[1] = (X) => ne.search = X),
|
|
52707
52722
|
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",
|
|
52708
52723
|
placeholder: "Search ..."
|
|
52709
52724
|
}, null, 512), [
|
|
@@ -52752,7 +52767,7 @@ function aoe(A, re, G, _e, ne, Z) {
|
|
|
52752
52767
|
field: lt.field_name,
|
|
52753
52768
|
xprops: G.xprops,
|
|
52754
52769
|
tdProps: lt.tdProps,
|
|
52755
|
-
onDeleteAction:
|
|
52770
|
+
onDeleteAction: oe[2] || (oe[2] = (hn) => Z.GetItemLists()),
|
|
52756
52771
|
onEditAction: (hn) => Z.editAction(X),
|
|
52757
52772
|
onGeneralAction: (hn) => Z.generalAction(X)
|
|
52758
52773
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (ue(), fe(jn, { key: 1 }, [
|
|
@@ -52768,13 +52783,13 @@ function aoe(A, re, G, _e, ne, Z) {
|
|
|
52768
52783
|
R("div", Hne, [
|
|
52769
52784
|
R("a", {
|
|
52770
52785
|
href: "#",
|
|
52771
|
-
onClick:
|
|
52786
|
+
onClick: oe[3] || (oe[3] = za((...X) => Z.previousPage && Z.previousPage(...X), ["prevent"])),
|
|
52772
52787
|
disabled: ne.currentPage === 1,
|
|
52773
52788
|
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"
|
|
52774
52789
|
}, "Previous", 8, Vne),
|
|
52775
52790
|
R("a", {
|
|
52776
52791
|
href: "#",
|
|
52777
|
-
onClick:
|
|
52792
|
+
onClick: oe[4] || (oe[4] = za((...X) => Z.nextPage && Z.nextPage(...X), ["prevent"])),
|
|
52778
52793
|
disabled: ne.currentPage === Z.totalPages,
|
|
52779
52794
|
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"
|
|
52780
52795
|
}, "Next", 8, zne)
|
|
@@ -52797,7 +52812,7 @@ function aoe(A, re, G, _e, ne, Z) {
|
|
|
52797
52812
|
R("li", null, [
|
|
52798
52813
|
R("a", {
|
|
52799
52814
|
href: "#",
|
|
52800
|
-
onClick:
|
|
52815
|
+
onClick: oe[5] || (oe[5] = za((...X) => Z.previousPage && Z.previousPage(...X), ["prevent"])),
|
|
52801
52816
|
disabled: ne.currentPage === 1,
|
|
52802
52817
|
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"
|
|
52803
52818
|
}, Qne, 8, Yne)
|
|
@@ -52824,7 +52839,7 @@ function aoe(A, re, G, _e, ne, Z) {
|
|
|
52824
52839
|
R("li", null, [
|
|
52825
52840
|
R("a", {
|
|
52826
52841
|
href: "#",
|
|
52827
|
-
onClick:
|
|
52842
|
+
onClick: oe[6] || (oe[6] = za((...X) => Z.nextPage && Z.nextPage(...X), ["prevent"])),
|
|
52828
52843
|
disabled: ne.currentPage === Z.totalPages,
|
|
52829
52844
|
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"
|
|
52830
52845
|
}, roe, 8, noe)
|
|
@@ -52879,11 +52894,11 @@ const Hce = /* @__PURE__ */ zr(pne, [["render", aoe]]), loe = {
|
|
|
52879
52894
|
},
|
|
52880
52895
|
methods: {
|
|
52881
52896
|
groupBy(A) {
|
|
52882
|
-
return this.itemLists.data ? this.itemLists.data.reduce((
|
|
52897
|
+
return this.itemLists.data ? this.itemLists.data.reduce((oe, G) => {
|
|
52883
52898
|
const _e = G[A];
|
|
52884
|
-
|
|
52899
|
+
oe[_e] || (oe[_e] = []);
|
|
52885
52900
|
const ne = { ...G };
|
|
52886
|
-
return delete ne[A],
|
|
52901
|
+
return delete ne[A], oe[_e].push(ne), oe;
|
|
52887
52902
|
}, {}) : [];
|
|
52888
52903
|
},
|
|
52889
52904
|
editAction(A) {
|
|
@@ -52894,21 +52909,21 @@ const Hce = /* @__PURE__ */ zr(pne, [["render", aoe]]), loe = {
|
|
|
52894
52909
|
},
|
|
52895
52910
|
GetItemLists(A = 1) {
|
|
52896
52911
|
this.isLoading = !0, this.page = A;
|
|
52897
|
-
const
|
|
52912
|
+
const oe = {
|
|
52898
52913
|
sort: this.sortField,
|
|
52899
52914
|
order: this.sortOrder,
|
|
52900
52915
|
s: this.search,
|
|
52901
52916
|
limit: this.perPage,
|
|
52902
52917
|
page: this.page
|
|
52903
52918
|
};
|
|
52904
|
-
axios.get(this.xprops.route_get_data, { params:
|
|
52919
|
+
axios.get(this.xprops.route_get_data, { params: oe }).then((G) => {
|
|
52905
52920
|
this.itemLists = G.data, this.isLoading = !1;
|
|
52906
52921
|
}).catch((G) => {
|
|
52907
52922
|
console.error(G), this.isLoading = !1;
|
|
52908
52923
|
});
|
|
52909
52924
|
},
|
|
52910
|
-
updateSortColumn(A,
|
|
52911
|
-
|
|
52925
|
+
updateSortColumn(A, oe) {
|
|
52926
|
+
oe && (A === this.sortField ? this.sortOrder = this.sortOrder === "asc" ? "desc" : "asc" : (this.sortField = A, this.sortOrder = "asc"), this.GetItemLists(this.page));
|
|
52912
52927
|
},
|
|
52913
52928
|
handleSearch() {
|
|
52914
52929
|
this.sortField = this.columns[0].field_name, this.sortOrder = "asc", this.page = 1, this.GetItemLists(this.page);
|
|
@@ -52924,8 +52939,8 @@ const Hce = /* @__PURE__ */ zr(pne, [["render", aoe]]), loe = {
|
|
|
52924
52939
|
perPage(A) {
|
|
52925
52940
|
this.page = 1, this.perPage = A, this.GetItemLists(this.page);
|
|
52926
52941
|
},
|
|
52927
|
-
refreshData(A,
|
|
52928
|
-
this.isMounted && A !==
|
|
52942
|
+
refreshData(A, oe) {
|
|
52943
|
+
this.isMounted && A !== oe && this.GetItemLists();
|
|
52929
52944
|
}
|
|
52930
52945
|
}
|
|
52931
52946
|
}, coe = { class: "p-2" }, ioe = { class: "flex flex-col flex-wrap pb-4 space-y-4 xl:flex-row xl:items-center xl:justify-between flex-column sm:space-y-0" }, uoe = { class: "flex items-center gap-2" }, doe = /* @__PURE__ */ R("span", { class: "font-medium" }, " Show ", -1), moe = { style: { "margin-top": "9px" } }, foe = /* @__PURE__ */ R("span", { class: "font-medium" }, " Entries ", -1), goe = /* @__PURE__ */ R("label", {
|
|
@@ -52997,7 +53012,7 @@ const Hce = /* @__PURE__ */ zr(pne, [["render", aoe]]), loe = {
|
|
|
52997
53012
|
], -1), Eoe = [
|
|
52998
53013
|
Toe
|
|
52999
53014
|
], 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" };
|
|
53000
|
-
function Moe(A,
|
|
53015
|
+
function Moe(A, oe, G, _e, ne, Z) {
|
|
53001
53016
|
const xe = Rd("dropdown"), X = Rd("TailwindPagination");
|
|
53002
53017
|
return ue(), fe("div", coe, [
|
|
53003
53018
|
R("div", ioe, [
|
|
@@ -53008,7 +53023,7 @@ function Moe(A, re, G, _e, ne, Z) {
|
|
|
53008
53023
|
has_cancel: !1,
|
|
53009
53024
|
options: ne.pageOptions,
|
|
53010
53025
|
modelValue: ne.perPage,
|
|
53011
|
-
"onUpdate:modelValue":
|
|
53026
|
+
"onUpdate:modelValue": oe[0] || (oe[0] = ($e) => ne.perPage = $e),
|
|
53012
53027
|
is_required: !1,
|
|
53013
53028
|
field_name: "perPage",
|
|
53014
53029
|
label_name: "",
|
|
@@ -53024,8 +53039,8 @@ function Moe(A, re, G, _e, ne, Z) {
|
|
|
53024
53039
|
poe,
|
|
53025
53040
|
Tr(R("input", {
|
|
53026
53041
|
type: "text",
|
|
53027
|
-
"onUpdate:modelValue":
|
|
53028
|
-
onInput:
|
|
53042
|
+
"onUpdate:modelValue": oe[1] || (oe[1] = ($e) => ne.search = $e),
|
|
53043
|
+
onInput: oe[2] || (oe[2] = ($e) => Z.handleSearch()),
|
|
53029
53044
|
class: "block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 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",
|
|
53030
53045
|
placeholder: "Search ..."
|
|
53031
53046
|
}, null, 544), [
|
|
@@ -53078,7 +53093,7 @@ function Moe(A, re, G, _e, ne, Z) {
|
|
|
53078
53093
|
field: Et.field_name,
|
|
53079
53094
|
xprops: G.xprops,
|
|
53080
53095
|
tdProps: Et.tdProps,
|
|
53081
|
-
onDeleteAction:
|
|
53096
|
+
onDeleteAction: oe[3] || (oe[3] = (lo) => Z.GetItemLists()),
|
|
53082
53097
|
onEditAction: (lo) => Z.editAction(yt)
|
|
53083
53098
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (ue(), fe(jn, { key: 1 }, [
|
|
53084
53099
|
Zn(mt(yt[Et.field_name]), 1)
|
|
@@ -53132,16 +53147,16 @@ const Vce = /* @__PURE__ */ zr(loe, [["render", Moe]]), Poe = {
|
|
|
53132
53147
|
return Math.ceil(this.filteredData.length / this.itemsPerPage);
|
|
53133
53148
|
},
|
|
53134
53149
|
paginatedData() {
|
|
53135
|
-
const A = (this.currentPage - 1) * this.itemsPerPage,
|
|
53136
|
-
return this.filteredData.slice(A,
|
|
53150
|
+
const A = (this.currentPage - 1) * this.itemsPerPage, oe = A + this.itemsPerPage;
|
|
53151
|
+
return this.filteredData.slice(A, oe);
|
|
53137
53152
|
},
|
|
53138
53153
|
displayedPageNumbers() {
|
|
53139
53154
|
let A = Math.max(
|
|
53140
53155
|
this.currentPage - Math.floor(this.maxDisplayedPages / 2),
|
|
53141
53156
|
1
|
|
53142
|
-
),
|
|
53143
|
-
return
|
|
53144
|
-
{ length:
|
|
53157
|
+
), oe = A + this.maxDisplayedPages - 1;
|
|
53158
|
+
return oe > this.totalPages && (oe = this.totalPages, A = Math.max(oe - this.maxDisplayedPages + 1, 1)), Array.from(
|
|
53159
|
+
{ length: oe - A + 1 },
|
|
53145
53160
|
(G, _e) => A + _e
|
|
53146
53161
|
);
|
|
53147
53162
|
},
|
|
@@ -53164,7 +53179,7 @@ const Vce = /* @__PURE__ */ zr(loe, [["render", Moe]]), Poe = {
|
|
|
53164
53179
|
A === this.sortKey ? this.sortOrder *= -1 : (this.sortKey = A, this.sortOrder = 1);
|
|
53165
53180
|
},
|
|
53166
53181
|
sortData(A) {
|
|
53167
|
-
return this.sortKey ? A.slice().sort((
|
|
53182
|
+
return this.sortKey ? A.slice().sort((oe, G) => (oe[this.sortKey] < G[this.sortKey] ? -1 : 1) * this.sortOrder) : A;
|
|
53168
53183
|
},
|
|
53169
53184
|
previousPage() {
|
|
53170
53185
|
this.currentPage > 1 && this.currentPage--;
|
|
@@ -53246,7 +53261,7 @@ const Vce = /* @__PURE__ */ zr(loe, [["render", Moe]]), Poe = {
|
|
|
53246
53261
|
bse,
|
|
53247
53262
|
vse
|
|
53248
53263
|
];
|
|
53249
|
-
function wse(A,
|
|
53264
|
+
function wse(A, oe, G, _e, ne, Z) {
|
|
53250
53265
|
const xe = Rd("dropdown");
|
|
53251
53266
|
return ue(), fe("div", Boe, [
|
|
53252
53267
|
R("div", Noe, [
|
|
@@ -53257,7 +53272,7 @@ function wse(A, re, G, _e, ne, Z) {
|
|
|
53257
53272
|
has_cancel: !1,
|
|
53258
53273
|
options: ne.showNoOfEntries,
|
|
53259
53274
|
modelValue: ne.itemsPerPage,
|
|
53260
|
-
"onUpdate:modelValue":
|
|
53275
|
+
"onUpdate:modelValue": oe[0] || (oe[0] = (X) => ne.itemsPerPage = X),
|
|
53261
53276
|
is_required: !1,
|
|
53262
53277
|
field_name: "NoOfEntries",
|
|
53263
53278
|
label_name: "",
|
|
@@ -53273,7 +53288,7 @@ function wse(A, re, G, _e, ne, Z) {
|
|
|
53273
53288
|
Uoe,
|
|
53274
53289
|
Tr(R("input", {
|
|
53275
53290
|
type: "text",
|
|
53276
|
-
"onUpdate:modelValue":
|
|
53291
|
+
"onUpdate:modelValue": oe[1] || (oe[1] = (X) => ne.search = X),
|
|
53277
53292
|
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",
|
|
53278
53293
|
placeholder: "Search ..."
|
|
53279
53294
|
}, null, 512), [
|
|
@@ -53320,13 +53335,13 @@ function wse(A, re, G, _e, ne, Z) {
|
|
|
53320
53335
|
R("div", ese, [
|
|
53321
53336
|
R("a", {
|
|
53322
53337
|
href: "#",
|
|
53323
|
-
onClick:
|
|
53338
|
+
onClick: oe[2] || (oe[2] = za((...X) => Z.previousPage && Z.previousPage(...X), ["prevent"])),
|
|
53324
53339
|
disabled: ne.currentPage === 1,
|
|
53325
53340
|
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"
|
|
53326
53341
|
}, "Previous", 8, tse),
|
|
53327
53342
|
R("a", {
|
|
53328
53343
|
href: "#",
|
|
53329
|
-
onClick:
|
|
53344
|
+
onClick: oe[3] || (oe[3] = za((...X) => Z.nextPage && Z.nextPage(...X), ["prevent"])),
|
|
53330
53345
|
disabled: ne.currentPage === Z.totalPages,
|
|
53331
53346
|
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"
|
|
53332
53347
|
}, "Next", 8, nse)
|
|
@@ -53349,7 +53364,7 @@ function wse(A, re, G, _e, ne, Z) {
|
|
|
53349
53364
|
R("li", null, [
|
|
53350
53365
|
R("a", {
|
|
53351
53366
|
href: "#",
|
|
53352
|
-
onClick:
|
|
53367
|
+
onClick: oe[4] || (oe[4] = za((...X) => Z.previousPage && Z.previousPage(...X), ["prevent"])),
|
|
53353
53368
|
disabled: ne.currentPage === 1,
|
|
53354
53369
|
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"
|
|
53355
53370
|
}, fse, 8, use)
|
|
@@ -53376,7 +53391,7 @@ function wse(A, re, G, _e, ne, Z) {
|
|
|
53376
53391
|
R("li", null, [
|
|
53377
53392
|
R("a", {
|
|
53378
53393
|
href: "#",
|
|
53379
|
-
onClick:
|
|
53394
|
+
onClick: oe[5] || (oe[5] = za((...X) => Z.nextPage && Z.nextPage(...X), ["prevent"])),
|
|
53380
53395
|
disabled: ne.currentPage === Z.totalPages,
|
|
53381
53396
|
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"
|
|
53382
53397
|
}, yse, 8, pse)
|
|
@@ -53392,10 +53407,10 @@ const zce = /* @__PURE__ */ zr(Poe, [["render", wse]]), xse = {
|
|
|
53392
53407
|
props: ["field", "row", "tdProps"],
|
|
53393
53408
|
methods: {
|
|
53394
53409
|
convertCronToHuman(A) {
|
|
53395
|
-
const [
|
|
53396
|
-
if (
|
|
53410
|
+
const [oe, G, _e, ne, Z] = A.split(" ");
|
|
53411
|
+
if (oe === "*" && G === "*" && _e === "*" && ne === "*" && Z === "*")
|
|
53397
53412
|
return "Runs every minute.";
|
|
53398
|
-
if (
|
|
53413
|
+
if (oe === "0" && G === "0" && _e === "*" && ne === "*" && Z !== "*")
|
|
53399
53414
|
return `Runs at 12:00 AM every ${this.convertDayOfWeek(Z)}.`;
|
|
53400
53415
|
const xe = {
|
|
53401
53416
|
0: "Sunday",
|
|
@@ -53420,24 +53435,24 @@ const zce = /* @__PURE__ */ zr(Poe, [["render", wse]]), xse = {
|
|
|
53420
53435
|
11: "November",
|
|
53421
53436
|
12: "December",
|
|
53422
53437
|
"*": "every month"
|
|
53423
|
-
}, $e = this.convertField(
|
|
53438
|
+
}, $e = this.convertField(oe, "minute", 59), lt = this.convertField(G, "hour", 23), yt = this.convertField(_e, "day of the month", 31), hn = this.convertField(ne, "month", 12, X), Et = this.convertField(Z, "day", 6, xe);
|
|
53424
53439
|
return `Runs ${$e} ${lt} ${yt} ${hn} on ${Et}.`;
|
|
53425
53440
|
},
|
|
53426
|
-
convertField(A,
|
|
53427
|
-
if (A === "*") return `every ${
|
|
53441
|
+
convertField(A, oe, G, _e = {}) {
|
|
53442
|
+
if (A === "*") return `every ${oe}`;
|
|
53428
53443
|
if (A.includes("/")) {
|
|
53429
53444
|
const [ne, Z] = A.split("/");
|
|
53430
|
-
return `every ${Z} ${
|
|
53445
|
+
return `every ${Z} ${oe}${Z > 1 ? "s" : ""} starting at ${ne}`;
|
|
53431
53446
|
}
|
|
53432
53447
|
if (A.includes("-")) {
|
|
53433
53448
|
const [ne, Z] = A.split("-");
|
|
53434
|
-
return `${
|
|
53449
|
+
return `${oe}s from ${ne} to ${Z}`;
|
|
53435
53450
|
}
|
|
53436
53451
|
if (A.includes(",")) {
|
|
53437
53452
|
const ne = A.split(",").map((Z) => _e[Z] || Z);
|
|
53438
|
-
return `${
|
|
53453
|
+
return `${oe}s on ${ne.join(", ")}`;
|
|
53439
53454
|
}
|
|
53440
|
-
return _e[A] || `${
|
|
53455
|
+
return _e[A] || `${oe} ${A}`;
|
|
53441
53456
|
},
|
|
53442
53457
|
convertDayOfWeek(A) {
|
|
53443
53458
|
return {
|
|
@@ -53451,15 +53466,15 @@ const zce = /* @__PURE__ */ zr(Poe, [["render", wse]]), xse = {
|
|
|
53451
53466
|
}[A] || "Invalid day";
|
|
53452
53467
|
},
|
|
53453
53468
|
formatHour(A) {
|
|
53454
|
-
const
|
|
53455
|
-
return `${(
|
|
53469
|
+
const oe = parseInt(A, 10), G = oe >= 12 ? "PM" : "AM";
|
|
53470
|
+
return `${(oe % 12 || 12).toString().padStart(2, "0")}:00 ${G}`;
|
|
53456
53471
|
}
|
|
53457
53472
|
}
|
|
53458
53473
|
}, Cse = {
|
|
53459
53474
|
key: 0,
|
|
53460
53475
|
class: "flex flex-wrap gap-2"
|
|
53461
53476
|
}, _se = { class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300" };
|
|
53462
|
-
function Sse(A,
|
|
53477
|
+
function Sse(A, oe, G, _e, ne, Z) {
|
|
53463
53478
|
return G.row[G.field] ? (ue(), fe("div", Cse, [
|
|
53464
53479
|
R("span", _se, mt(Z.convertCronToHuman(G.row[G.field])), 1)
|
|
53465
53480
|
])) : Ye("", !0);
|
|
@@ -53484,7 +53499,7 @@ const Uce = /* @__PURE__ */ zr(xse, [["render", Sse]]), kse = {
|
|
|
53484
53499
|
}), {};
|
|
53485
53500
|
}
|
|
53486
53501
|
};
|
|
53487
|
-
function Tse(A,
|
|
53502
|
+
function Tse(A, oe, G, _e, ne, Z) {
|
|
53488
53503
|
return ue(), fe("div", null, [
|
|
53489
53504
|
ju(A.$slots, "default")
|
|
53490
53505
|
]);
|
|
@@ -53497,7 +53512,7 @@ const Wce = /* @__PURE__ */ zr(kse, [["render", Tse]]), Ese = {
|
|
|
53497
53512
|
}
|
|
53498
53513
|
},
|
|
53499
53514
|
setup() {
|
|
53500
|
-
const A = co(!1),
|
|
53515
|
+
const A = co(!1), oe = sq("accordionsWrapper"), _e = (() => {
|
|
53501
53516
|
var lt = (/* @__PURE__ */ new Date()).getTime();
|
|
53502
53517
|
typeof performance < "u" && typeof performance.now == "function" && (lt += performance.now());
|
|
53503
53518
|
var yt = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(hn) {
|
|
@@ -53505,13 +53520,13 @@ const Wce = /* @__PURE__ */ zr(kse, [["render", Tse]]), Ese = {
|
|
|
53505
53520
|
return lt = Math.floor(lt / 16), (hn === "x" ? Et : Et & 3 | 8).toString(16);
|
|
53506
53521
|
});
|
|
53507
53522
|
return yt;
|
|
53508
|
-
})(), ne = { isOpen: A, id: _e }, Z = pu(() =>
|
|
53523
|
+
})(), ne = { isOpen: A, id: _e }, Z = pu(() => oe.accordions.value), xe = pu(() => Z.value.length > 0 && Z.value[0].id === _e), X = pu(() => Z.value.length > 0 && Z.value[Z.value.length - 1].id === _e);
|
|
53509
53524
|
return Dg(() => {
|
|
53510
|
-
|
|
53525
|
+
oe.registerAccordion(ne);
|
|
53511
53526
|
}), Nq(() => {
|
|
53512
|
-
|
|
53527
|
+
oe.unregisterAccordion(ne);
|
|
53513
53528
|
}), { isOpen: A, isFirstAccordion: xe, isLastAccordion: X, toggle: () => {
|
|
53514
|
-
|
|
53529
|
+
oe.toggleAccordion(ne);
|
|
53515
53530
|
} };
|
|
53516
53531
|
}
|
|
53517
53532
|
}, Ase = { class: "flex items-center" }, Dse = {
|
|
@@ -53545,11 +53560,11 @@ const Wce = /* @__PURE__ */ zr(kse, [["render", Tse]]), Ese = {
|
|
|
53545
53560
|
}, null, -1), Pse = [
|
|
53546
53561
|
Mse
|
|
53547
53562
|
];
|
|
53548
|
-
function Bse(A,
|
|
53563
|
+
function Bse(A, oe, G, _e, ne, Z) {
|
|
53549
53564
|
return ue(), fe("div", null, [
|
|
53550
53565
|
R("h2", null, [
|
|
53551
53566
|
R("button", {
|
|
53552
|
-
onClick:
|
|
53567
|
+
onClick: oe[0] || (oe[0] = (...xe) => _e.toggle && _e.toggle(...xe)),
|
|
53553
53568
|
type: "button",
|
|
53554
53569
|
class: Zt(["flex items-center justify-between w-full gap-3 p-5 font-medium text-gray-500 border border-gray-200 rtl:text-right dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800", {
|
|
53555
53570
|
"rounded-t-xl": _e.isFirstAccordion,
|
|
@@ -53648,12 +53663,12 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53648
53663
|
}
|
|
53649
53664
|
},
|
|
53650
53665
|
emits: ["remove"],
|
|
53651
|
-
setup(A, { emit:
|
|
53666
|
+
setup(A, { emit: oe }) {
|
|
53652
53667
|
const G = A;
|
|
53653
53668
|
Dg(() => {
|
|
53654
53669
|
setTimeout(() => _e("remove"), G.duration);
|
|
53655
53670
|
});
|
|
53656
|
-
const _e =
|
|
53671
|
+
const _e = oe;
|
|
53657
53672
|
return (ne, Z) => (ue(), fe("div", Nse, [
|
|
53658
53673
|
G.type === "success" ? (ue(), fe("div", Ise, Hse)) : Ye("", !0),
|
|
53659
53674
|
G.type === "error" ? (ue(), fe("div", Vse, Wse)) : Ye("", !0),
|
|
@@ -53671,7 +53686,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53671
53686
|
}, jce = {
|
|
53672
53687
|
__name: "GlToastList",
|
|
53673
53688
|
setup(A) {
|
|
53674
|
-
function
|
|
53689
|
+
function oe(G) {
|
|
53675
53690
|
Ry.methods.remove(G);
|
|
53676
53691
|
}
|
|
53677
53692
|
return (G, _e) => (ue(), Zu(Iq, {
|
|
@@ -53688,7 +53703,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53688
53703
|
message: ne.message,
|
|
53689
53704
|
type: ne.type,
|
|
53690
53705
|
duration: ne.duration,
|
|
53691
|
-
onRemove: (xe) =>
|
|
53706
|
+
onRemove: (xe) => oe(Z)
|
|
53692
53707
|
}, null, 8, ["message", "type", "duration", "onRemove"]))), 128))
|
|
53693
53708
|
]),
|
|
53694
53709
|
_: 1
|
|
@@ -53735,7 +53750,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53735
53750
|
}
|
|
53736
53751
|
},
|
|
53737
53752
|
emits: ["deleteAction"],
|
|
53738
|
-
setup(A, { emit:
|
|
53753
|
+
setup(A, { emit: oe }) {
|
|
53739
53754
|
const G = A, _e = co(!1), ne = co(!1), Z = () => {
|
|
53740
53755
|
_e.value = !1;
|
|
53741
53756
|
}, xe = () => {
|
|
@@ -53744,7 +53759,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53744
53759
|
ne.value = !1;
|
|
53745
53760
|
}, $e = () => {
|
|
53746
53761
|
ne.value = !0;
|
|
53747
|
-
}, lt =
|
|
53762
|
+
}, lt = oe, yt = () => {
|
|
53748
53763
|
axios.delete(`${G.xprops.route}/${G.row.id}`).then(() => {
|
|
53749
53764
|
X(), lt("deleteAction"), Ry.methods.add({
|
|
53750
53765
|
message: "Item deleted successfully.",
|
|
@@ -53841,7 +53856,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53841
53856
|
}
|
|
53842
53857
|
},
|
|
53843
53858
|
emits: ["deleteAction"],
|
|
53844
|
-
setup(A, { emit:
|
|
53859
|
+
setup(A, { emit: oe }) {
|
|
53845
53860
|
const G = A, _e = co(!1), ne = co(!1), Z = () => {
|
|
53846
53861
|
_e.value = !1;
|
|
53847
53862
|
}, xe = () => {
|
|
@@ -53850,7 +53865,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53850
53865
|
ne.value = !1;
|
|
53851
53866
|
}, $e = () => {
|
|
53852
53867
|
ne.value = !0;
|
|
53853
|
-
}, lt =
|
|
53868
|
+
}, lt = oe, yt = () => {
|
|
53854
53869
|
axios.delete(`${G.xprops.route}/${G.row.id}`).then(() => {
|
|
53855
53870
|
X(), lt("deleteAction"), Ry.methods.add({
|
|
53856
53871
|
message: "Item deleted successfully.",
|
|
@@ -53938,7 +53953,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53938
53953
|
}
|
|
53939
53954
|
},
|
|
53940
53955
|
emits: ["deleteAction", "editAction"],
|
|
53941
|
-
setup(A, { emit:
|
|
53956
|
+
setup(A, { emit: oe }) {
|
|
53942
53957
|
const G = A, _e = co(!1), ne = co(!1), Z = () => {
|
|
53943
53958
|
ne.value = !1;
|
|
53944
53959
|
}, xe = () => {
|
|
@@ -53947,7 +53962,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53947
53962
|
_e.value = !1;
|
|
53948
53963
|
}, $e = () => {
|
|
53949
53964
|
_e.value = !0;
|
|
53950
|
-
}, lt =
|
|
53965
|
+
}, lt = oe, yt = (Et) => {
|
|
53951
53966
|
lt("editAction", Et);
|
|
53952
53967
|
}, hn = () => {
|
|
53953
53968
|
axios.delete(`${G.xprops.route}/${G.row.id}`).then(() => {
|
|
@@ -54059,7 +54074,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
54059
54074
|
"clip-rule": "evenodd"
|
|
54060
54075
|
})
|
|
54061
54076
|
], -1);
|
|
54062
|
-
function $re(A,
|
|
54077
|
+
function $re(A, oe, G, _e, ne, Z) {
|
|
54063
54078
|
return ue(), fe("div", null, [
|
|
54064
54079
|
Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(G.row, (xe, X) => (ue(), fe("div", {
|
|
54065
54080
|
key: X,
|
|
@@ -54135,7 +54150,7 @@ const Yce = /* @__PURE__ */ zr(Tre, [["render", $re]]), Mre = {
|
|
|
54135
54150
|
"clip-rule": "evenodd"
|
|
54136
54151
|
})
|
|
54137
54152
|
], -1);
|
|
54138
|
-
function Fre(A,
|
|
54153
|
+
function Fre(A, oe, G, _e, ne, Z) {
|
|
54139
54154
|
return Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(G.row[G.field], (xe) => (ue(), fe("div", {
|
|
54140
54155
|
key: xe.id,
|
|
54141
54156
|
class: "m-1 d-inline-block"
|
|
@@ -54164,7 +54179,7 @@ function Fre(A, re, G, _e, ne, Z) {
|
|
|
54164
54179
|
const Xce = /* @__PURE__ */ zr(Mre, [["render", Fre]]), Hre = {
|
|
54165
54180
|
props: ["field", "row", "tdProps"]
|
|
54166
54181
|
}, Vre = { key: 0 }, zre = ["innerHTML"];
|
|
54167
|
-
function Ure(A,
|
|
54182
|
+
function Ure(A, oe, G, _e, ne, Z) {
|
|
54168
54183
|
return G.row[G.field] ? (ue(), fe("div", Vre, [
|
|
54169
54184
|
R("div", {
|
|
54170
54185
|
class: "w-full",
|
|
@@ -54176,8 +54191,8 @@ const Jce = /* @__PURE__ */ zr(Hre, [["render", Ure]]), Wre = {
|
|
|
54176
54191
|
props: ["field", "row", "tdProps"],
|
|
54177
54192
|
computed: {
|
|
54178
54193
|
entry() {
|
|
54179
|
-
const [A,
|
|
54180
|
-
return Fq({ key: A, field:
|
|
54194
|
+
const [A, oe] = this.field.split(".");
|
|
54195
|
+
return Fq({ key: A, field: oe });
|
|
54181
54196
|
},
|
|
54182
54197
|
isArray() {
|
|
54183
54198
|
return Array.isArray(this.row[this.entry.key]);
|
|
@@ -54193,7 +54208,7 @@ const Jce = /* @__PURE__ */ zr(Hre, [["render", Ure]]), Wre = {
|
|
|
54193
54208
|
key: 1,
|
|
54194
54209
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
54195
54210
|
};
|
|
54196
|
-
function Gre(A,
|
|
54211
|
+
function Gre(A, oe, G, _e, ne, Z) {
|
|
54197
54212
|
return this.row[this.entry.key] ? (ue(), fe("div", Zre, [
|
|
54198
54213
|
Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(G.row[Z.entry.key], (xe, X) => (ue(), fe("span", {
|
|
54199
54214
|
key: X,
|
|
@@ -54205,8 +54220,8 @@ const Qce = /* @__PURE__ */ zr(Wre, [["render", Gre]]), qre = {
|
|
|
54205
54220
|
props: ["field", "row", "tdProps"],
|
|
54206
54221
|
computed: {
|
|
54207
54222
|
entry() {
|
|
54208
|
-
const A = this.field.split("."),
|
|
54209
|
-
return { keys: A, field:
|
|
54223
|
+
const A = this.field.split("."), oe = A.pop();
|
|
54224
|
+
return { keys: A, field: oe };
|
|
54210
54225
|
},
|
|
54211
54226
|
isArray() {
|
|
54212
54227
|
return Array.isArray(this.getNestedValue(this.row, this.entry.keys));
|
|
@@ -54216,15 +54231,15 @@ const Qce = /* @__PURE__ */ zr(Wre, [["render", Gre]]), qre = {
|
|
|
54216
54231
|
}
|
|
54217
54232
|
},
|
|
54218
54233
|
methods: {
|
|
54219
|
-
getNestedValue(A,
|
|
54220
|
-
return
|
|
54234
|
+
getNestedValue(A, oe) {
|
|
54235
|
+
return oe.reduce((G, _e) => (G || {})[_e], A);
|
|
54221
54236
|
}
|
|
54222
54237
|
}
|
|
54223
54238
|
}, Kre = { class: "flex flex-wrap gap-2" }, Yre = {
|
|
54224
54239
|
key: 1,
|
|
54225
54240
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
54226
54241
|
};
|
|
54227
|
-
function Xre(A,
|
|
54242
|
+
function Xre(A, oe, G, _e, ne, Z) {
|
|
54228
54243
|
return ue(), fe("div", Kre, [
|
|
54229
54244
|
Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(Z.getNestedValue(G.row, Z.entry.keys), (xe, X) => (ue(), fe("span", {
|
|
54230
54245
|
key: X,
|
|
@@ -54235,7 +54250,7 @@ function Xre(A, re, G, _e, ne, Z) {
|
|
|
54235
54250
|
const eie = /* @__PURE__ */ zr(qre, [["render", Xre]]), Jre = {
|
|
54236
54251
|
props: ["field", "row", "tdProps"]
|
|
54237
54252
|
}, Qre = { key: 0 }, eae = { class: "m-1 d-inline-block" }, tae = ["href", "title"], nae = ["src", "alt", "title"];
|
|
54238
|
-
function oae(A,
|
|
54253
|
+
function oae(A, oe, G, _e, ne, Z) {
|
|
54239
54254
|
return G.row[G.field] ? (ue(), fe("div", Qre, [
|
|
54240
54255
|
R("div", eae, [
|
|
54241
54256
|
R("a", {
|
|
@@ -54266,7 +54281,7 @@ const tie = /* @__PURE__ */ zr(Jre, [["render", oae], ["__scopeId", "data-v-3a28
|
|
|
54266
54281
|
key: 0,
|
|
54267
54282
|
class: "grid grid-cols-2 gap-4"
|
|
54268
54283
|
}, aae = ["src", "alt"], lae = { key: 1 }, cae = ["src", "alt"];
|
|
54269
|
-
function iae(A,
|
|
54284
|
+
function iae(A, oe, G, _e, ne, Z) {
|
|
54270
54285
|
return Z.isArray ? (ue(), fe("div", rae, [
|
|
54271
54286
|
(ue(!0), fe(jn, null, Ks(G.row[G.field], (xe) => (ue(), fe("div", {
|
|
54272
54287
|
key: xe.id
|
|
@@ -54299,7 +54314,7 @@ const nie = /* @__PURE__ */ zr(sae, [["render", iae]]), uae = {
|
|
|
54299
54314
|
key: 1,
|
|
54300
54315
|
class: "inline-flex items-center px-2 py-1 bg-red-100 text-red-800 text-xs font-medium rounded-full dark:bg-red-900 dark:text-red-300"
|
|
54301
54316
|
}, hae = /* @__PURE__ */ R("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1);
|
|
54302
|
-
function pae(A,
|
|
54317
|
+
function pae(A, oe, G, _e, ne, Z) {
|
|
54303
54318
|
return ue(), fe("div", dae, [
|
|
54304
54319
|
Z.isActive ? (ue(), fe("span", mae, [
|
|
54305
54320
|
fae,
|
|
@@ -54314,10 +54329,10 @@ const oie = /* @__PURE__ */ zr(uae, [["render", pae]]), bae = {
|
|
|
54314
54329
|
props: ["field", "row", "tdProps"],
|
|
54315
54330
|
computed: {
|
|
54316
54331
|
hasLabelColor(A) {
|
|
54317
|
-
const
|
|
54332
|
+
const oe = this.tdProps.status_general_labels_color.find(
|
|
54318
54333
|
(G) => G.label === this.row[this.field]
|
|
54319
54334
|
);
|
|
54320
|
-
return
|
|
54335
|
+
return oe ? oe.class : "";
|
|
54321
54336
|
}
|
|
54322
54337
|
}
|
|
54323
54338
|
}, vae = { class: "flex flex-wrap gap-2 text-nowrap" }, yae = {
|
|
@@ -54339,7 +54354,7 @@ const oie = /* @__PURE__ */ zr(uae, [["render", pae]]), bae = {
|
|
|
54339
54354
|
/* @__PURE__ */ R("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
54340
54355
|
/* @__PURE__ */ R("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
54341
54356
|
], -1);
|
|
54342
|
-
function Dae(A,
|
|
54357
|
+
function Dae(A, oe, G, _e, ne, Z) {
|
|
54343
54358
|
return ue(), fe("div", vae, [
|
|
54344
54359
|
Z.hasLabelColor == "green" ? (ue(), fe("span", yae, [
|
|
54345
54360
|
wae,
|
|
@@ -54385,7 +54400,7 @@ const sie = /* @__PURE__ */ zr(bae, [["render", Dae]]), Oae = {
|
|
|
54385
54400
|
}
|
|
54386
54401
|
}
|
|
54387
54402
|
}, Rae = { class: "flex flex-wrap gap-2 text-nowrap lg:justify-center" };
|
|
54388
|
-
function $ae(A,
|
|
54403
|
+
function $ae(A, oe, G, _e, ne, Z) {
|
|
54389
54404
|
return ue(), fe("div", Rae, [
|
|
54390
54405
|
Z.hasLabelColor == "Default" ? (ue(), fe("span", {
|
|
54391
54406
|
key: 0,
|
|
@@ -54425,8 +54440,8 @@ const rie = /* @__PURE__ */ zr(Oae, [["render", $ae]]), Mae = {
|
|
|
54425
54440
|
props: ["field", "row", "tdProps"],
|
|
54426
54441
|
computed: {
|
|
54427
54442
|
entry() {
|
|
54428
|
-
const A = this.field.split("."),
|
|
54429
|
-
return { keys: A, field:
|
|
54443
|
+
const A = this.field.split("."), oe = A.pop();
|
|
54444
|
+
return { keys: A, field: oe };
|
|
54430
54445
|
},
|
|
54431
54446
|
isArray() {
|
|
54432
54447
|
return Array.isArray(this.getNestedValue(this.row, this.entry.keys));
|
|
@@ -54435,14 +54450,14 @@ const rie = /* @__PURE__ */ zr(Oae, [["render", $ae]]), Mae = {
|
|
|
54435
54450
|
return typeof this.getNestedValue(this.row, this.entry.keys) == "object";
|
|
54436
54451
|
},
|
|
54437
54452
|
hasLabelColor(A) {
|
|
54438
|
-
const
|
|
54453
|
+
const oe = this.tdProps.status_general_labels_color.find(
|
|
54439
54454
|
(G) => G.text === this.getValue()
|
|
54440
54455
|
);
|
|
54441
|
-
return
|
|
54456
|
+
return oe ? oe.class : "";
|
|
54442
54457
|
},
|
|
54443
54458
|
getLabel() {
|
|
54444
54459
|
const A = this.tdProps.status_general_labels_color.find(
|
|
54445
|
-
(
|
|
54460
|
+
(oe) => oe.text === this.getValue()
|
|
54446
54461
|
);
|
|
54447
54462
|
return A ? A.label : "";
|
|
54448
54463
|
}
|
|
@@ -54451,8 +54466,8 @@ const rie = /* @__PURE__ */ zr(Oae, [["render", $ae]]), Mae = {
|
|
|
54451
54466
|
getValue() {
|
|
54452
54467
|
return this.isObject ? this.getNestedValue(this.row, this.entry.keys)[this.entry.field] : this.row[this.field];
|
|
54453
54468
|
},
|
|
54454
|
-
getNestedValue(A,
|
|
54455
|
-
return
|
|
54469
|
+
getNestedValue(A, oe) {
|
|
54470
|
+
return oe.reduce((G, _e) => (G || {})[_e], A);
|
|
54456
54471
|
}
|
|
54457
54472
|
}
|
|
54458
54473
|
}, Pae = { class: "flex flex-wrap gap-2 text-nowrap" }, Bae = {
|
|
@@ -54474,7 +54489,7 @@ const rie = /* @__PURE__ */ zr(Oae, [["render", $ae]]), Mae = {
|
|
|
54474
54489
|
/* @__PURE__ */ R("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
54475
54490
|
/* @__PURE__ */ R("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
54476
54491
|
], -1);
|
|
54477
|
-
function Zae(A,
|
|
54492
|
+
function Zae(A, oe, G, _e, ne, Z) {
|
|
54478
54493
|
return ue(), fe("div", Pae, [
|
|
54479
54494
|
Z.hasLabelColor == "green" ? (ue(), fe("span", Bae, [
|
|
54480
54495
|
Nae,
|
|
@@ -54504,14 +54519,14 @@ const aie = /* @__PURE__ */ zr(Mae, [["render", Zae]]), jae = {
|
|
|
54504
54519
|
formattedDate() {
|
|
54505
54520
|
if (!this.row[this.field])
|
|
54506
54521
|
return "";
|
|
54507
|
-
const A = new Date(this.row[this.field]),
|
|
54522
|
+
const A = new Date(this.row[this.field]), oe = A.getFullYear(), G = A.toLocaleString("default", { month: "long" }), _e = A.getDate();
|
|
54508
54523
|
let ne = A.getHours();
|
|
54509
54524
|
const Z = A.getMinutes(), xe = A.getSeconds(), X = ne >= 12 ? "pm" : "am";
|
|
54510
|
-
return ne = ne % 12, ne = ne || 12, `${G} ${_e}, ${
|
|
54525
|
+
return ne = ne % 12, ne = ne || 12, `${G} ${_e}, ${oe}, ${ne}:${Z}:${xe} ${X}`;
|
|
54511
54526
|
}
|
|
54512
54527
|
}
|
|
54513
54528
|
}, Gae = { class: "w-full" };
|
|
54514
|
-
function qae(A,
|
|
54529
|
+
function qae(A, oe, G, _e, ne, Z) {
|
|
54515
54530
|
return ue(), fe("div", Gae, mt(Z.formattedDate), 1);
|
|
54516
54531
|
}
|
|
54517
54532
|
const lie = /* @__PURE__ */ zr(jae, [["render", qae]]), Kae = {
|
|
@@ -54520,12 +54535,12 @@ const lie = /* @__PURE__ */ zr(jae, [["render", qae]]), Kae = {
|
|
|
54520
54535
|
formattedDate() {
|
|
54521
54536
|
if (!this.row[this.field])
|
|
54522
54537
|
return "";
|
|
54523
|
-
const A = new Date(this.row[this.field]),
|
|
54524
|
-
return `${G} ${_e}, ${
|
|
54538
|
+
const A = new Date(this.row[this.field]), oe = A.getFullYear(), G = A.toLocaleString("default", { month: "long" }), _e = A.getDate();
|
|
54539
|
+
return `${G} ${_e}, ${oe}`;
|
|
54525
54540
|
}
|
|
54526
54541
|
}
|
|
54527
54542
|
}, Yae = { class: "w-full" };
|
|
54528
|
-
function Xae(A,
|
|
54543
|
+
function Xae(A, oe, G, _e, ne, Z) {
|
|
54529
54544
|
return ue(), fe("div", Yae, mt(Z.formattedDate), 1);
|
|
54530
54545
|
}
|
|
54531
54546
|
const cie = /* @__PURE__ */ zr(Kae, [["render", Xae]]), Jae = {
|
|
@@ -54543,7 +54558,7 @@ const cie = /* @__PURE__ */ zr(Kae, [["render", Xae]]), Jae = {
|
|
|
54543
54558
|
key: 2,
|
|
54544
54559
|
class: "inline-flex items-center px-2 py-1 text-xs font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"
|
|
54545
54560
|
}, rle = /* @__PURE__ */ R("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1);
|
|
54546
|
-
function ale(A,
|
|
54561
|
+
function ale(A, oe, G, _e, ne, Z) {
|
|
54547
54562
|
return ue(), fe("div", Qae, [
|
|
54548
54563
|
G.row[G.field] === 0 ? (ue(), fe("span", ele, [
|
|
54549
54564
|
tle,
|
|
@@ -54565,7 +54580,7 @@ const iie = /* @__PURE__ */ zr(Jae, [["render", ale]]), lle = {
|
|
|
54565
54580
|
key: 0,
|
|
54566
54581
|
class: "text-nowrap w-full"
|
|
54567
54582
|
}, ile = { class: "w-full h-full p-3 mx-0 mt-0 overflow-auto font-mono text-left break-words rounded cursor-default whitespace-nowrap console_styles" };
|
|
54568
|
-
function ule(A,
|
|
54583
|
+
function ule(A, oe, G, _e, ne, Z) {
|
|
54569
54584
|
return G.row[G.field] ? (ue(), fe("div", cle, [
|
|
54570
54585
|
R("pre", ile, " " + mt(G.row[G.field]) + `
|
|
54571
54586
|
`, 1)
|
|
@@ -54596,7 +54611,7 @@ const uie = /* @__PURE__ */ zr(lle, [["render", ule]]), dle = {
|
|
|
54596
54611
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
54597
54612
|
"aria-hidden": "true"
|
|
54598
54613
|
}, "", -1), ple = { class: "inline-block overflow-hidden text-left align-bottom transition-all transform bg-white dark:bg-gray-800 rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, ble = { class: "px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, vle = { class: "sm:flex sm:items-start" }, yle = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, wle = { class: "text-lg font-medium leading-6" }, xle = { class: "mt-2" }, Cle = { class: "border-t border-gray-200 rounded-b dark:border-gray-600 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse gap-2" };
|
|
54599
|
-
function _le(A,
|
|
54614
|
+
function _le(A, oe, G, _e, ne, Z) {
|
|
54600
54615
|
const xe = Rd("gl-button");
|
|
54601
54616
|
return G.isOpen ? (ue(), fe("div", mle, [
|
|
54602
54617
|
R("div", fle, [
|
|
@@ -54690,7 +54705,7 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54690
54705
|
}
|
|
54691
54706
|
},
|
|
54692
54707
|
setup(A) {
|
|
54693
|
-
const
|
|
54708
|
+
const oe = A, G = co(!1), _e = (Z) => {
|
|
54694
54709
|
navigator.clipboard.writeText(Z).then(function() {
|
|
54695
54710
|
G.value = !0, setTimeout(() => {
|
|
54696
54711
|
G.value = !1;
|
|
@@ -54698,7 +54713,7 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54698
54713
|
}).catch(function(xe) {
|
|
54699
54714
|
console.error("Error copying to clipboard: ", xe);
|
|
54700
54715
|
});
|
|
54701
|
-
}, ne = pu(() =>
|
|
54716
|
+
}, ne = pu(() => oe.code);
|
|
54702
54717
|
return (Z, xe) => (ue(), fe("div", Sle, [
|
|
54703
54718
|
R("div", kle, [
|
|
54704
54719
|
R("p", Tle, mt(A.label_name), 1)
|
|
@@ -54770,7 +54785,7 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54770
54785
|
}
|
|
54771
54786
|
},
|
|
54772
54787
|
setup(A) {
|
|
54773
|
-
const
|
|
54788
|
+
const oe = A, G = co(!1), _e = (Z) => {
|
|
54774
54789
|
navigator.clipboard.writeText(Z).then(function() {
|
|
54775
54790
|
G.value = !0, setTimeout(() => {
|
|
54776
54791
|
G.value = !1;
|
|
@@ -54778,7 +54793,7 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54778
54793
|
}).catch(function(xe) {
|
|
54779
54794
|
console.error("Error copying to clipboard: ", xe);
|
|
54780
54795
|
});
|
|
54781
|
-
}, ne = pu(() =>
|
|
54796
|
+
}, ne = pu(() => oe.code);
|
|
54782
54797
|
return (Z, xe) => (ue(), fe("div", Hle, [
|
|
54783
54798
|
R("div", Vle, [
|
|
54784
54799
|
R("label", zle, mt(A.label_name), 1)
|
|
@@ -54829,7 +54844,7 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54829
54844
|
}
|
|
54830
54845
|
},
|
|
54831
54846
|
setup(A) {
|
|
54832
|
-
return (
|
|
54847
|
+
return (oe, G) => (ue(), fe("div", ece, [
|
|
54833
54848
|
A.status === 0 ? (ue(), fe("span", tce, [
|
|
54834
54849
|
nce,
|
|
54835
54850
|
Zn(" Running")
|
|
@@ -54877,8 +54892,8 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54877
54892
|
}
|
|
54878
54893
|
},
|
|
54879
54894
|
emits: ["reconnect"],
|
|
54880
|
-
setup(A, { emit:
|
|
54881
|
-
const G =
|
|
54895
|
+
setup(A, { emit: oe }) {
|
|
54896
|
+
const G = oe, _e = () => {
|
|
54882
54897
|
G("reconnect");
|
|
54883
54898
|
};
|
|
54884
54899
|
return (ne, Z) => (ue(), fe("div", lce, [
|
|
@@ -54903,9 +54918,9 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54903
54918
|
]));
|
|
54904
54919
|
}
|
|
54905
54920
|
}, pie = {
|
|
54906
|
-
beforeMount: (A,
|
|
54921
|
+
beforeMount: (A, oe) => {
|
|
54907
54922
|
A.clickOutsideEvent = (G) => {
|
|
54908
|
-
A == G.target || A.contains(G.target) ||
|
|
54923
|
+
A == G.target || A.contains(G.target) || oe.value(G, A);
|
|
54909
54924
|
}, document.addEventListener("click", A.clickOutsideEvent);
|
|
54910
54925
|
},
|
|
54911
54926
|
unmounted: (A) => {
|